diff --git a/dist/apps/admin-gui/202-es2015.21b4da1032193d03d59a.js b/dist/apps/admin-gui/202-es2015.21b4da1032193d03d59a.js deleted file mode 100644 index 47086948d..000000000 --- a/dist/apps/admin-gui/202-es2015.21b4da1032193d03d59a.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkperun_web_apps=self.webpackChunkperun_web_apps||[]).push([[202],{4359:function(t,e,a){"use strict";a.d(e,{D:function(){return w}});var i=a(4230),n=a(58623),s=a(67033),o=a(84140),l=a(68416),c=a(31572),r=a(82819),u=a(61511),d=a(29236),h=a(39571),m=a(48160),p=a(99373);function f(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"th",15),c.TgZ(1,"mat-checkbox",16),c.NdJ("change",function(e){c.CHM(t);const a=c.oxw();return e?a.masterToggle():null}),c.qZA(),c.qZA()}if(2&t){const t=c.oxw();c.xp6(1),c.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function g(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"td",17),c.TgZ(1,"mat-checkbox",18),c.NdJ("change",function(e){const a=c.CHM(t).$implicit,i=c.oxw();return e?i.selection.toggle(a):null})("click",function(t){return t.stopPropagation()}),c.qZA(),c.qZA()}if(2&t){const t=e.$implicit,a=c.oxw();c.xp6(1),c.Q6J("aria-label",a.checkboxLabel(t))("checked",a.selection.isSelected(t))}}function S(t,e){1&t&&(c.TgZ(0,"th",19),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&t&&(c.xp6(1),c.Oqu(c.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.ID")))}function b(t,e){if(1&t&&(c.TgZ(0,"td",20),c._uU(1),c.qZA()),2&t){const t=e.$implicit;c.xp6(1),c.Oqu(t.id)}}function x(t,e){1&t&&(c.TgZ(0,"th",19),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&t&&(c.xp6(1),c.Oqu(c.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NAME")))}function Z(t,e){if(1&t&&(c.TgZ(0,"td",21),c._uU(1),c.qZA()),2&t){const t=e.$implicit;c.xp6(1),c.Oqu(t.name)}}function A(t,e){1&t&&(c.TgZ(0,"th",19),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&t&&(c.xp6(1),c.Oqu(c.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.TYPE")))}function C(t,e){if(1&t&&(c.TgZ(0,"td",21),c._uU(1),c.ALo(2,"extSourceType"),c.qZA()),2&t){const t=e.$implicit;c.xp6(1),c.Oqu(c.lcZ(2,1,t.type))}}function E(t,e){1&t&&c._UZ(0,"tr",22)}function T(t,e){1&t&&c._UZ(0,"tr",23)}function D(t,e){1&t&&(c.TgZ(0,"app-alert",24),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NO_EXT_SOURCES"),"\n"))}function N(t,e){1&t&&(c.TgZ(0,"app-alert",24),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NO_FILTER_RESULTS"),"\n"))}let w=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.selection=new i.Ov,this.filterValue="",this.displayedColumns=["select","id","name","type"],this.exporting=!1,this.pageSizeOptions=o.f7}set matSort(t){this.sort=t,this.setDataSource()}ngAfterViewInit(){this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new s.by(this.extSources),this.setDataSource()}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"type":return t.type.substring(40);case"name":return t.name;default:return""}}exportData(t){(0,o.O6)((0,o.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>(0,o.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,o.pR)(t,e,this.getDataForColumn,this),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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(l.x4),c.Y36(l.UA))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-ext-sources-list"]],viewQuery:function(t,e){if(1&t&&(c.Gf(o.l9,7),c.Gf(n.YE,7)),2&t){let t;c.iGM(t=c.CRH())&&(e.child=t.first),c.iGM(t=c.CRH())&&(e.matSort=t.first)}},inputs:{extSources:"extSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId"},features:[c.TTD],decls:19,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","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(t,e){1&t&&(c.TgZ(0,"div",0),c.TgZ(1,"perun-web-apps-table-wrapper",1),c.NdJ("exportData",function(t){return e.exportData(t)}),c.TgZ(2,"table",2),c.ynx(3,3),c.YNc(4,f,2,3,"th",4),c.YNc(5,g,2,2,"td",5),c.BQk(),c.ynx(6,6),c.YNc(7,S,3,3,"th",7),c.YNc(8,b,2,1,"td",8),c.BQk(),c.ynx(9,9),c.YNc(10,x,3,3,"th",7),c.YNc(11,Z,2,1,"td",10),c.BQk(),c.ynx(12,11),c.YNc(13,A,3,3,"th",7),c.YNc(14,C,3,3,"td",10),c.BQk(),c.YNc(15,E,1,0,"tr",12),c.YNc(16,T,1,0,"tr",13),c.qZA(),c.qZA(),c.qZA(),c.YNc(17,D,3,3,"app-alert",14),c.YNc(18,N,3,3,"app-alert",14)),2&t&&(c.Q6J("hidden",0===e.extSources.length||0===e.dataSource.filteredData.length),c.xp6(1),c.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),c.xp6(1),c.Q6J("dataSource",e.dataSource),c.xp6(13),c.Q6J("matHeaderRowDef",e.displayedColumns),c.xp6(1),c.Q6J("matRowDefColumns",e.displayedColumns),c.xp6(1),c.Q6J("ngIf",0===e.extSources.length),c.xp6(1),c.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.extSources.length))},directives:[r.l,s.BZ,n.YE,s.w1,s.fO,s.Dz,s.as,s.nj,u.O5,s.ge,d.oG,s.ev,n.nU,s.XQ,s.Gk,h.w],pipes:[m.X$,p.A],styles:[""]}),t})()},64737:function(t,e,a){"use strict";a.d(e,{b:function(){return _}});var i=a(65249),n=a(84140),s=a(6527),o=a(67033),l=a(68416),c=a(67004),r=a(31572),u=a(84608),d=a(48160),h=a(27439),m=a(61511),p=a(67806),f=a(15980),g=a(43691),S=a(74842),b=a(37043),x=a(73669),Z=a(58506);function A(t,e){1&t&&r._UZ(0,"mat-spinner",4)}function C(t,e){1&t&&r._UZ(0,"th",12)}function E(t,e){if(1&t&&(r.TgZ(0,"td",13),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.hij(" ",t,": ")}}function T(t,e){1&t&&r._UZ(0,"th",12)}function D(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",17),r.NdJ("click",function(){return r.CHM(t),r.oxw(4).changeStatus()}),r.TgZ(1,"mat-icon"),r._uU(2,"edit"),r.qZA(),r.qZA()}}function N(t,e){if(1&t&&(r.TgZ(0,"div"),r.TgZ(1,"i"),r.ALo(2,"memberStatusIconColor"),r._uU(3),r.ALo(4,"memberStatusIcon"),r.qZA(),r.TgZ(5,"b",15),r._uU(6),r.ALo(7,"transformMemberStatus"),r.qZA(),r.YNc(8,D,3,0,"button",16),r.qZA()),2&t){const t=r.oxw(3);r.xp6(1),r.Gre("material-icons vert-center mr-1 ",r.lcZ(2,6,t.member.status),""),r.xp6(2),r.hij(" ",r.lcZ(4,8,t.member.status)," "),r.xp6(3),r.hij(" ",r.lcZ(7,10,t.member.status)," "),r.xp6(2),r.Q6J("ngIf",t.authResolver.isThisVoAdmin(t.vo.id))}}function w(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",17),r.NdJ("click",function(){return r.CHM(t),r.oxw(4).changeVoExpiration(!1)}),r.TgZ(1,"mat-icon"),r._uU(2,"edit"),r.qZA(),r.qZA()}}function v(t,e){if(1&t&&(r.TgZ(0,"div"),r.TgZ(1,"i",18),r._uU(2),r.ALo(3,"parseDate"),r.qZA(),r.YNc(4,w,3,0,"button",16),r.qZA()),2&t){const t=r.oxw(3);r.xp6(2),r.hij(" ",r.lcZ(3,2,t.voExpiration)," "),r.xp6(2),r.Q6J("ngIf",t.authResolver.isThisVoAdmin(t.vo.id))}}function R(t,e){if(1&t&&(r.TgZ(0,"td",14),r.YNc(1,N,9,12,"div",3),r.YNc(2,v,5,4,"div",3),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.Q6J("ngIf","Status"===t),r.xp6(1),r.Q6J("ngIf","Expiration"===t)}}function O(t,e){1&t&&r._UZ(0,"tr",19)}function I(t,e){if(1&t&&(r.TgZ(0,"div"),r.TgZ(1,"table",5),r.ynx(2,6),r.YNc(3,C,1,0,"th",7),r.YNc(4,E,2,1,"td",8),r.BQk(),r.ynx(5,9),r.YNc(6,T,1,0,"th",7),r.YNc(7,R,3,2,"td",10),r.BQk(),r.YNc(8,O,1,0,"tr",11),r.qZA(),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Q6J("dataSource",t.voMembershipDataSource),r.xp6(7),r.Q6J("matRowDefColumns",t.displayedColumns)}}let _=(()=>{class t{constructor(t,e,a,i,n,s){this.dialog=t,this.authResolver=e,this.apiRequest=a,this.attributesManager=i,this.translate=n,this.notificator=s,this.voMembershipDataSource=new o.by,this.voExpiration="",this.displayedColumns=["attName","attValue"]}ngOnChanges(){this.voMembershipDataSource=new o.by(["Status","Expiration"]),this.refreshVoExpiration()}changeStatus(){const t=(0,n.kZ)();t.width="600px",t.data={member:this.member,voId:this.vo.id};const e=this.member.status;this.dialog.open(s.pf,t).afterClosed().subscribe(t=>{t&&(this.member=t,("VALID"!==e||"EXPIRED"!==t.status&&"DISABLED"!==t.status)&&"VALID"!==t.status||this.changeVoExpiration(!0))})}changeVoExpiration(t){const e=(0,n.kZ)();e.width="400px",e.data={voId:this.vo.id,memberId:this.member.id,expirationAttr:this.voExpirationAtt,status:this.member.status,statusChanged:t},this.dialog.open(s.kZ,e).afterClosed().subscribe(t=>{t.success&&(t.member&&(this.member=t.member),this.refreshVoExpiration())})}refreshVoExpiration(){this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getMemberAttributeByName(this.member.id,c.r.MEMBER_DEF_EXPIRATION).subscribe(t=>{this.voExpirationAtt=t,this.voExpiration=t.value?t.value:this.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES"),this.loading=!1},t=>{"PrivilegeException"!==t.error.name?this.notificator.showError(t):this.voMembershipDataSource=new o.by(["Status"]),this.loading=!1})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(u.uw),r.Y36(l.x4),r.Y36(l.F5),r.Y36(i.H8),r.Y36(d.sK),r.Y36(l.V6))},t.\u0275cmp=r.Xpm({type:t,selectors:[["app-member-overview-membership"]],inputs:{member:"member",vo:"vo"},features:[r.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(t,e){1&t&&(r.TgZ(0,"mat-card",0),r.TgZ(1,"mat-card-header"),r.TgZ(2,"mat-card-title"),r.TgZ(3,"h1",1),r._uU(4),r.ALo(5,"translate"),r.qZA(),r.qZA(),r.qZA(),r.TgZ(6,"mat-card-content"),r.YNc(7,A,1,0,"mat-spinner",2),r.YNc(8,I,9,2,"div",3),r.qZA(),r.qZA()),2&t&&(r.xp6(4),r.Oqu(r.lcZ(5,3,"MEMBER_DETAIL.OVERVIEW.ORGANIZATION_MEMBERSHIP")),r.xp6(3),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading))},directives:[h.a8,h.dk,h.n5,h.dn,m.O5,p.$g,o.BZ,o.w1,o.fO,o.Dz,o.nj,o.ge,o.ev,f.lW,g.Hw,o.Gk],pipes:[d.X$,S.u,b.f,x.r,Z.M],styles:[".membership-card[_ngcontent-%COMP%]{max-width:400px}.vert-center[_ngcontent-%COMP%]{vertical-align:middle!important}"]}),t})()},91721:function(t,e,a){"use strict";a.d(e,{Q:function(){return Y}});var i=a(31572),n=a(58623),s=a(67033),o=a(4230),l=a(84140),c=a(68416),r=a(82819),u=a(61511),d=a(29236),h=a(43691),m=a(36922),p=a(84534),f=a(57629),g=a(39571),S=a(48160);function b(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"th",18),i.TgZ(1,"mat-checkbox",19),i.NdJ("change",function(e){i.CHM(t);const a=i.oxw();return e?a.masterToggle():null}),i.qZA(),i.qZA()}if(2&t){const t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function x(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"td",20),i.TgZ(1,"mat-checkbox",21),i.NdJ("change",function(e){const a=i.CHM(t).$implicit,n=i.oxw();return e?n.selection.toggle(a):null})("click",function(t){return t.stopPropagation()}),i.qZA(),i.qZA()}if(2&t){const t=e.$implicit,a=i.oxw();i.xp6(1),i.Q6J("aria-label",a.checkboxLabel(t))("checked",a.selection.isSelected(t))}}function Z(t,e){1&t&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.ID")))}function A(t,e){if(1&t&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Oqu(t.id)}}function C(t,e){1&t&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NAME")))}function E(t,e){if(1&t&&(i.TgZ(0,"td",24),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Oqu(t.name)}}function T(t,e){1&t&&i._UZ(0,"th",25)}function D(t,e){1&t&&(i.TgZ(0,"mat-icon",27),i.ALo(1,"translate"),i._uU(2," check_circle_outline "),i.qZA()),2&t&&i.s9C("matTooltip",i.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.ENABLED"))}function N(t,e){1&t&&(i.TgZ(0,"mat-icon",27),i.ALo(1,"translate"),i._uU(2," block "),i.qZA()),2&t&&i.s9C("matTooltip",i.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.DISABLED"))}function w(t,e){if(1&t&&(i.TgZ(0,"td",24),i.YNc(1,D,3,3,"mat-icon",26),i.YNc(2,N,3,3,"mat-icon",26),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Q6J("ngIf",t.enabled),i.xp6(1),i.Q6J("ngIf",!t.enabled)}}function v(t,e){1&t&&(i.TgZ(0,"th",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.SCRIPT")))}function R(t,e){if(1&t&&(i.TgZ(0,"td",24),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Oqu(t.script)}}function O(t,e){1&t&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.DESCRIPTION")))}function I(t,e){if(1&t&&(i.TgZ(0,"td",24),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Oqu(t.description)}}function _(t,e){1&t&&i._UZ(0,"tr",28)}const k=function(t){return["/admin/services",t]};function q(t,e){if(1&t&&i._UZ(0,"tr",29),2&t){const t=e.$implicit,a=i.oxw();i.ekj("cursor-pointer",!a.disableRouting)("disable-outline",a.disableRouting),i.Q6J("perunWebAppsMiddleClickRouterLink",a.disableRouting?null:i.VKq(6,k,t.id))("routerLink",a.disableRouting?null:i.VKq(8,k,t.id))}}function L(t,e){1&t&&(i.TgZ(0,"app-alert",30),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function y(t,e){1&t&&(i.TgZ(0,"app-alert",30),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NO_SERVICES_WARNING"),"\n"))}let Y=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.services=[],this.filterValue="",this.displayedColumns=["select","id","name","enabled","script","description"],this.selection=new o.Ov(!0,[]),this.disableRouting=!1,this.selectionChanged=new i.vpe,this.pageSizeOptions=l.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new s.by(this.services),this.setDataSource(),this.selection.changed.subscribe(()=>{this.selectionChanged.emit()})}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return t.name;case"enabled":return t.enabled?"true":"false";case"script":return t.script;case"description":return t.description;default:return""}}exportData(t){(0,l.O6)((0,l.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>(0,l.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,l.pR)(t,e,this.getDataForColumn,this),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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(c.x4),i.Y36(c.UA))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-services-list"]],viewQuery:function(t,e){if(1&t&&(i.Gf(n.YE,7),i.Gf(l.l9,7)),2&t){let t;i.iGM(t=i.CRH())&&(e.matSort=t.first),i.iGM(t=i.CRH())&&(e.child=t.first)}},inputs:{services:"services",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",selection:"selection",disableRouting:"disableRouting"},outputs:{selectionChanged:"selectionChanged"},features:[i.TTD],decls:25,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"],["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",3,"matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(t){return e.exportData(t)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,b,2,3,"th",4),i.YNc(5,x,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,Z,3,3,"th",7),i.YNc(8,A,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,C,3,3,"th",7),i.YNc(11,E,2,1,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,T,1,0,"th",12),i.YNc(14,w,3,2,"td",10),i.BQk(),i.ynx(15,13),i.YNc(16,v,3,3,"th",12),i.YNc(17,R,2,1,"td",10),i.BQk(),i.ynx(18,14),i.YNc(19,O,3,3,"th",7),i.YNc(20,I,2,1,"td",10),i.BQk(),i.YNc(21,_,1,0,"tr",15),i.YNc(22,q,1,10,"tr",16),i.qZA(),i.qZA(),i.qZA(),i.YNc(23,L,3,3,"app-alert",17),i.YNc(24,y,3,3,"app-alert",17)),2&t&&(i.Q6J("hidden",void 0===e.services||0===e.services.length||0===e.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",e.dataSource),i.xp6(19),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===e.dataSource.filteredData.length&&void 0!==e.services&&0!==e.services.length),i.xp6(1),i.Q6J("ngIf",void 0===e.services||0===e.services.length))},directives:[r.l,s.BZ,n.YE,s.w1,s.fO,s.Dz,s.as,s.nj,u.O5,s.ge,d.oG,s.ev,n.nU,h.Hw,m.gM,s.XQ,s.Gk,p.YH,f.rH,g.w],pipes:[S.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),t})()},73669:function(t,e,a){"use strict";a.d(e,{r:function(){return n}});var i=a(31572);let n=(()=>{class t{transform(t,e){return"valid"!==t.toLowerCase()||e&&"valid"!==t.toLowerCase()?t:"ACTIVE"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Yjl({name:"transformMemberStatus",type:t,pure:!0}),t})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/202-es2015.b0fc40b33eca685afcf9.js b/dist/apps/admin-gui/202-es2015.b0fc40b33eca685afcf9.js new file mode 100644 index 000000000..7b591923a --- /dev/null +++ b/dist/apps/admin-gui/202-es2015.b0fc40b33eca685afcf9.js @@ -0,0 +1 @@ +(self.webpackChunkperun_web_apps=self.webpackChunkperun_web_apps||[]).push([[202],{4359:function(t,e,a){"use strict";a.d(e,{D:function(){return w}});var i=a(4230),n=a(58623),s=a(67033),o=a(84140),l=a(68416),c=a(31572),r=a(82819),u=a(61511),d=a(29236),h=a(39571),m=a(48160),p=a(99373);function f(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"th",15),c.TgZ(1,"mat-checkbox",16),c.NdJ("change",function(e){c.CHM(t);const a=c.oxw();return e?a.masterToggle():null}),c.qZA(),c.qZA()}if(2&t){const t=c.oxw();c.xp6(1),c.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function g(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"td",17),c.TgZ(1,"mat-checkbox",18),c.NdJ("change",function(e){const a=c.CHM(t).$implicit,i=c.oxw();return e?i.selection.toggle(a):null})("click",function(t){return t.stopPropagation()}),c.qZA(),c.qZA()}if(2&t){const t=e.$implicit,a=c.oxw();c.xp6(1),c.Q6J("aria-label",a.checkboxLabel(t))("checked",a.selection.isSelected(t))}}function S(t,e){1&t&&(c.TgZ(0,"th",19),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.ID")," "))}function b(t,e){if(1&t&&(c.TgZ(0,"td",20),c._uU(1),c.qZA()),2&t){const t=e.$implicit;c.xp6(1),c.Oqu(t.id)}}function x(t,e){1&t&&(c.TgZ(0,"th",19),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NAME")," "))}function Z(t,e){if(1&t&&(c.TgZ(0,"td",21),c._uU(1),c.qZA()),2&t){const t=e.$implicit;c.xp6(1),c.Oqu(t.name)}}function A(t,e){1&t&&(c.TgZ(0,"th",19),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.TYPE")," "))}function C(t,e){if(1&t&&(c.TgZ(0,"td",21),c._uU(1),c.ALo(2,"extSourceType"),c.qZA()),2&t){const t=e.$implicit;c.xp6(1),c.Oqu(c.lcZ(2,1,t.type))}}function E(t,e){1&t&&c._UZ(0,"tr",22)}function T(t,e){1&t&&c._UZ(0,"tr",23)}function D(t,e){1&t&&(c.TgZ(0,"app-alert",24),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NO_EXT_SOURCES"),"\n"))}function N(t,e){1&t&&(c.TgZ(0,"app-alert",24),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NO_FILTER_RESULTS"),"\n"))}let w=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.selection=new i.Ov,this.filterValue="",this.displayedColumns=["select","id","name","type"],this.exporting=!1,this.pageSizeOptions=o.f7}set matSort(t){this.sort=t,this.setDataSource()}ngAfterViewInit(){this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new s.by(this.extSources),this.setDataSource()}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"type":return t.type.substring(40);case"name":return t.name;default:return""}}exportData(t){(0,o.O6)((0,o.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>(0,o.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,o.pR)(t,e,this.getDataForColumn,this),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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(l.x4),c.Y36(l.UA))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-ext-sources-list"]],viewQuery:function(t,e){if(1&t&&(c.Gf(o.l9,7),c.Gf(n.YE,7)),2&t){let t;c.iGM(t=c.CRH())&&(e.child=t.first),c.iGM(t=c.CRH())&&(e.matSort=t.first)}},inputs:{extSources:"extSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId"},features:[c.TTD],decls:19,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","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(t,e){1&t&&(c.TgZ(0,"div",0),c.TgZ(1,"perun-web-apps-table-wrapper",1),c.NdJ("exportData",function(t){return e.exportData(t)}),c.TgZ(2,"table",2),c.ynx(3,3),c.YNc(4,f,2,3,"th",4),c.YNc(5,g,2,2,"td",5),c.BQk(),c.ynx(6,6),c.YNc(7,S,3,3,"th",7),c.YNc(8,b,2,1,"td",8),c.BQk(),c.ynx(9,9),c.YNc(10,x,3,3,"th",7),c.YNc(11,Z,2,1,"td",10),c.BQk(),c.ynx(12,11),c.YNc(13,A,3,3,"th",7),c.YNc(14,C,3,3,"td",10),c.BQk(),c.YNc(15,E,1,0,"tr",12),c.YNc(16,T,1,0,"tr",13),c.qZA(),c.qZA(),c.qZA(),c.YNc(17,D,3,3,"app-alert",14),c.YNc(18,N,3,3,"app-alert",14)),2&t&&(c.Q6J("hidden",0===e.extSources.length||0===e.dataSource.filteredData.length),c.xp6(1),c.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),c.xp6(1),c.Q6J("dataSource",e.dataSource),c.xp6(13),c.Q6J("matHeaderRowDef",e.displayedColumns),c.xp6(1),c.Q6J("matRowDefColumns",e.displayedColumns),c.xp6(1),c.Q6J("ngIf",0===e.extSources.length),c.xp6(1),c.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.extSources.length))},directives:[r.l,s.BZ,n.YE,s.w1,s.fO,s.Dz,s.as,s.nj,u.O5,s.ge,d.oG,s.ev,n.nU,s.XQ,s.Gk,h.w],pipes:[m.X$,p.A],styles:[""]}),t})()},64737:function(t,e,a){"use strict";a.d(e,{b:function(){return k}});var i=a(65249),n=a(84140),s=a(6527),o=a(67033),l=a(68416),c=a(67004),r=a(31572),u=a(84608),d=a(48160),h=a(27439),m=a(61511),p=a(67806),f=a(15980),g=a(43691),S=a(74842),b=a(37043),x=a(73669),Z=a(58506);function A(t,e){1&t&&r._UZ(0,"mat-spinner",4)}function C(t,e){1&t&&r._UZ(0,"th",12)}function E(t,e){if(1&t&&(r.TgZ(0,"td",13),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.hij("",t,":")}}function T(t,e){1&t&&r._UZ(0,"th",12)}function D(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",17),r.NdJ("click",function(){return r.CHM(t),r.oxw(4).changeStatus()}),r.TgZ(1,"mat-icon"),r._uU(2,"edit"),r.qZA(),r.qZA()}}function N(t,e){if(1&t&&(r.TgZ(0,"div"),r.TgZ(1,"i"),r.ALo(2,"memberStatusIconColor"),r._uU(3),r.ALo(4,"memberStatusIcon"),r.qZA(),r.TgZ(5,"b",15),r._uU(6),r.ALo(7,"transformMemberStatus"),r.qZA(),r.YNc(8,D,3,0,"button",16),r.qZA()),2&t){const t=r.oxw(3);r.xp6(1),r.Gre("material-icons vert-center mr-1 ",r.lcZ(2,6,t.member.status),""),r.xp6(2),r.hij(" ",r.lcZ(4,8,t.member.status)," "),r.xp6(3),r.hij(" ",r.lcZ(7,10,t.member.status)," "),r.xp6(2),r.Q6J("ngIf",t.authResolver.isThisVoAdmin(t.vo.id))}}function w(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",17),r.NdJ("click",function(){return r.CHM(t),r.oxw(4).changeVoExpiration(!1)}),r.TgZ(1,"mat-icon"),r._uU(2,"edit"),r.qZA(),r.qZA()}}function v(t,e){if(1&t&&(r.TgZ(0,"div"),r.TgZ(1,"i",18),r._uU(2),r.ALo(3,"parseDate"),r.qZA(),r.YNc(4,w,3,0,"button",16),r.qZA()),2&t){const t=r.oxw(3);r.xp6(2),r.hij(" ",r.lcZ(3,2,t.voExpiration)," "),r.xp6(2),r.Q6J("ngIf",t.authResolver.isThisVoAdmin(t.vo.id))}}function R(t,e){if(1&t&&(r.TgZ(0,"td",14),r.YNc(1,N,9,12,"div",3),r.YNc(2,v,5,4,"div",3),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.Q6J("ngIf","Status"===t),r.xp6(1),r.Q6J("ngIf","Expiration"===t)}}function I(t,e){1&t&&r._UZ(0,"tr",19)}function _(t,e){if(1&t&&(r.TgZ(0,"div"),r.TgZ(1,"table",5),r.ynx(2,6),r.YNc(3,C,1,0,"th",7),r.YNc(4,E,2,1,"td",8),r.BQk(),r.ynx(5,9),r.YNc(6,T,1,0,"th",7),r.YNc(7,R,3,2,"td",10),r.BQk(),r.YNc(8,I,1,0,"tr",11),r.qZA(),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Q6J("dataSource",t.voMembershipDataSource),r.xp6(7),r.Q6J("matRowDefColumns",t.displayedColumns)}}let k=(()=>{class t{constructor(t,e,a,i,n,s){this.dialog=t,this.authResolver=e,this.apiRequest=a,this.attributesManager=i,this.translate=n,this.notificator=s,this.voMembershipDataSource=new o.by,this.voExpiration="",this.displayedColumns=["attName","attValue"]}ngOnChanges(){this.voMembershipDataSource=new o.by(["Status","Expiration"]),this.refreshVoExpiration()}changeStatus(){const t=(0,n.kZ)();t.width="600px",t.data={member:this.member,voId:this.vo.id};const e=this.member.status;this.dialog.open(s.pf,t).afterClosed().subscribe(t=>{t&&(this.member=t,("VALID"!==e||"EXPIRED"!==t.status&&"DISABLED"!==t.status)&&"VALID"!==t.status||this.changeVoExpiration(!0))})}changeVoExpiration(t){const e=(0,n.kZ)();e.width="400px",e.data={voId:this.vo.id,memberId:this.member.id,expirationAttr:this.voExpirationAtt,status:this.member.status,statusChanged:t},this.dialog.open(s.kZ,e).afterClosed().subscribe(t=>{t.success&&(t.member&&(this.member=t.member),this.refreshVoExpiration())})}refreshVoExpiration(){this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getMemberAttributeByName(this.member.id,c.r.MEMBER_DEF_EXPIRATION).subscribe(t=>{this.voExpirationAtt=t,this.voExpiration=t.value?t.value:this.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES"),this.loading=!1},t=>{"PrivilegeException"!==t.error.name?this.notificator.showError(t):this.voMembershipDataSource=new o.by(["Status"]),this.loading=!1})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(u.uw),r.Y36(l.x4),r.Y36(l.F5),r.Y36(i.H8),r.Y36(d.sK),r.Y36(l.V6))},t.\u0275cmp=r.Xpm({type:t,selectors:[["app-member-overview-membership"]],inputs:{member:"member",vo:"vo"},features:[r.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(t,e){1&t&&(r.TgZ(0,"mat-card",0),r.TgZ(1,"mat-card-header"),r.TgZ(2,"mat-card-title"),r.TgZ(3,"h1",1),r._uU(4),r.ALo(5,"translate"),r.qZA(),r.qZA(),r.qZA(),r.TgZ(6,"mat-card-content"),r.YNc(7,A,1,0,"mat-spinner",2),r.YNc(8,_,9,2,"div",3),r.qZA(),r.qZA()),2&t&&(r.xp6(4),r.hij(" ",r.lcZ(5,3,"MEMBER_DETAIL.OVERVIEW.ORGANIZATION_MEMBERSHIP")," "),r.xp6(3),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading))},directives:[h.a8,h.dk,h.n5,h.dn,m.O5,p.$g,o.BZ,o.w1,o.fO,o.Dz,o.nj,o.ge,o.ev,f.lW,g.Hw,o.Gk],pipes:[d.X$,S.u,b.f,x.r,Z.M],styles:[".membership-card[_ngcontent-%COMP%]{max-width:400px}.vert-center[_ngcontent-%COMP%]{vertical-align:middle!important}"]}),t})()},91721:function(t,e,a){"use strict";a.d(e,{Q:function(){return Y}});var i=a(31572),n=a(58623),s=a(67033),o=a(4230),l=a(84140),c=a(68416),r=a(82819),u=a(61511),d=a(29236),h=a(43691),m=a(36922),p=a(84534),f=a(57629),g=a(39571),S=a(48160);function b(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"th",18),i.TgZ(1,"mat-checkbox",19),i.NdJ("change",function(e){i.CHM(t);const a=i.oxw();return e?a.masterToggle():null}),i.qZA(),i.qZA()}if(2&t){const t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function x(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"td",20),i.TgZ(1,"mat-checkbox",21),i.NdJ("change",function(e){const a=i.CHM(t).$implicit,n=i.oxw();return e?n.selection.toggle(a):null})("click",function(t){return t.stopPropagation()}),i.qZA(),i.qZA()}if(2&t){const t=e.$implicit,a=i.oxw();i.xp6(1),i.Q6J("aria-label",a.checkboxLabel(t))("checked",a.selection.isSelected(t))}}function Z(t,e){1&t&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.ID")," "))}function A(t,e){if(1&t&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Oqu(t.id)}}function C(t,e){1&t&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NAME")," "))}function E(t,e){if(1&t&&(i.TgZ(0,"td",24),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Oqu(t.name)}}function T(t,e){1&t&&i._UZ(0,"th",25)}function D(t,e){1&t&&(i.TgZ(0,"mat-icon",27),i.ALo(1,"translate"),i._uU(2," check_circle_outline "),i.qZA()),2&t&&i.s9C("matTooltip",i.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.ENABLED"))}function N(t,e){1&t&&(i.TgZ(0,"mat-icon",27),i.ALo(1,"translate"),i._uU(2," block "),i.qZA()),2&t&&i.s9C("matTooltip",i.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.DISABLED"))}function w(t,e){if(1&t&&(i.TgZ(0,"td",24),i.YNc(1,D,3,3,"mat-icon",26),i.YNc(2,N,3,3,"mat-icon",26),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Q6J("ngIf",t.enabled),i.xp6(1),i.Q6J("ngIf",!t.enabled)}}function v(t,e){1&t&&(i.TgZ(0,"th",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.SCRIPT")," "))}function R(t,e){if(1&t&&(i.TgZ(0,"td",24),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Oqu(t.script)}}function I(t,e){1&t&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.DESCRIPTION")," "))}function _(t,e){if(1&t&&(i.TgZ(0,"td",24),i._uU(1),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Oqu(t.description)}}function k(t,e){1&t&&i._UZ(0,"tr",28)}const O=function(t){return["/admin/services",t]};function q(t,e){if(1&t&&i._UZ(0,"tr",29),2&t){const t=e.$implicit,a=i.oxw();i.ekj("cursor-pointer",!a.disableRouting)("disable-outline",a.disableRouting),i.Q6J("perunWebAppsMiddleClickRouterLink",a.disableRouting?null:i.VKq(6,O,t.id))("routerLink",a.disableRouting?null:i.VKq(8,O,t.id))}}function L(t,e){1&t&&(i.TgZ(0,"app-alert",30),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function y(t,e){1&t&&(i.TgZ(0,"app-alert",30),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&t&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NO_SERVICES_WARNING"),"\n"))}let Y=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.services=[],this.filterValue="",this.displayedColumns=["select","id","name","enabled","script","description"],this.selection=new o.Ov(!0,[]),this.disableRouting=!1,this.selectionChanged=new i.vpe,this.pageSizeOptions=l.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new s.by(this.services),this.setDataSource(),this.selection.changed.subscribe(()=>{this.selectionChanged.emit()})}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return t.name;case"enabled":return t.enabled?"true":"false";case"script":return t.script;case"description":return t.description;default:return""}}exportData(t){(0,l.O6)((0,l.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>(0,l.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,l.pR)(t,e,this.getDataForColumn,this),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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(c.x4),i.Y36(c.UA))},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-services-list"]],viewQuery:function(t,e){if(1&t&&(i.Gf(n.YE,7),i.Gf(l.l9,7)),2&t){let t;i.iGM(t=i.CRH())&&(e.matSort=t.first),i.iGM(t=i.CRH())&&(e.child=t.first)}},inputs:{services:"services",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",selection:"selection",disableRouting:"disableRouting"},outputs:{selectionChanged:"selectionChanged"},features:[i.TTD],decls:25,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"],["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",3,"matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(t){return e.exportData(t)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,b,2,3,"th",4),i.YNc(5,x,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,Z,3,3,"th",7),i.YNc(8,A,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,C,3,3,"th",7),i.YNc(11,E,2,1,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,T,1,0,"th",12),i.YNc(14,w,3,2,"td",10),i.BQk(),i.ynx(15,13),i.YNc(16,v,3,3,"th",12),i.YNc(17,R,2,1,"td",10),i.BQk(),i.ynx(18,14),i.YNc(19,I,3,3,"th",7),i.YNc(20,_,2,1,"td",10),i.BQk(),i.YNc(21,k,1,0,"tr",15),i.YNc(22,q,1,10,"tr",16),i.qZA(),i.qZA(),i.qZA(),i.YNc(23,L,3,3,"app-alert",17),i.YNc(24,y,3,3,"app-alert",17)),2&t&&(i.Q6J("hidden",void 0===e.services||0===e.services.length||0===e.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",e.dataSource),i.xp6(19),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===e.dataSource.filteredData.length&&void 0!==e.services&&0!==e.services.length),i.xp6(1),i.Q6J("ngIf",void 0===e.services||0===e.services.length))},directives:[r.l,s.BZ,n.YE,s.w1,s.fO,s.Dz,s.as,s.nj,u.O5,s.ge,d.oG,s.ev,n.nU,h.Hw,m.gM,s.XQ,s.Gk,p.YH,f.rH,g.w],pipes:[S.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),t})()},73669:function(t,e,a){"use strict";a.d(e,{r:function(){return n}});var i=a(31572);let n=(()=>{class t{transform(t,e){return"valid"!==t.toLowerCase()||e&&"valid"!==t.toLowerCase()?t:"ACTIVE"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Yjl({name:"transformMemberStatus",type:t,pure:!0}),t})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/202-es5.21b4da1032193d03d59a.js b/dist/apps/admin-gui/202-es5.21b4da1032193d03d59a.js deleted file mode 100644 index 62690fade..000000000 --- a/dist/apps/admin-gui/202-es5.21b4da1032193d03d59a.js +++ /dev/null @@ -1 +0,0 @@ -!function(){function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var a=0;a{class t{constructor(t,e,i,o,s,a,n,r,l,c){this.sideMenuService=t,this.voService=e,this.route=i,this.sideMenuItemService=o,this.groupService=s,this.dialog=a,this.guiAuthResolver=n,this.router=r,this.entityStorageService=l,this.reloadEntityDetail=c,this.editAuth=!1,this.deleteAuth=!1,this.loading=!1,this.syncAuth=!1,this.syncEnabled=!1,this.attrNames=[p.r.GROUP_SYNC_ENABLED,p.r.GROUP_LAST_SYNC_STATE,p.r.GROUP_LAST_SYNC_TIMESTAMP,p.r.GROUP_STRUCTURE_SYNC_ENABLED,p.r.GROUP_LAST_STRUCTURE_SYNC_STATE,p.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]}ngOnInit(){this.reloadEntityDetail.entityDetailChange.subscribe(()=>{this.reloadData()}),this.reloadData()}isSynchronized(){return this.group.attributes.some(t=>"synchronizationEnabled"===t.friendlyName&&null!==t.value&&"true"===t.value.toString())}onSyncDetail(){const t=(0,c.kZ)();t.data={groupId:this.group.id,theme:"group-theme"},this.dialog.open(d.Bp,t)}editGroup(){const t=(0,c.kZ)();t.width="450px",t.data={theme:"group-theme",group:this.group,dialogType:d.Eg.GROUP},this.dialog.open(d.rd,t).afterClosed().subscribe(t=>{t&&this.groupService.getGroupById(this.group.id).subscribe(t=>{this.group=t,this.setMenuItems()})})}reloadData(){this.loading=!0,this.route.params.subscribe(t=>{const e=t.groupId;this.voService.getVoById(t.voId).subscribe(t=>{this.vo=t,this.groupService.getGroupById(e).subscribe(i=>{this.group=i,this.entityStorageService.setEntity({id:i.id,voId:t.id,parentGroupId:i.parentGroupId,beanName:i.beanName}),(0,c.sF)("groups",this.group),(0,c.XI)(this.group,t.name),this.guiAuthResolver.isAuthorized("getRichGroupByIdWithAttributesByNames_int_List_policy",[this.group])?this.groupService.getRichGroupByIdWithAttributesByNames(e,this.attrNames).subscribe(t=>{this.group=t,this.syncEnabled=this.isSynchronized(),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 t=this.sideMenuItemService.parseVo(this.vo),e=this.sideMenuItemService.parseGroup(this.group);this.sideMenuService.setAccessMenuItems([t,e])}deleteGroup(){const t=(0,c.kZ)();t.width="500px",t.data={theme:"group-theme",groups:[this.group]},this.dialog.open(g.P,t).afterClosed().subscribe(t=>{t&&this.router.navigate(["../"],{relativeTo:this.route})})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(m.D),h.Y36(l.YF),h.Y36(s.gz),h.Y36(n.V),h.Y36(l.ff),h.Y36(A.uw),h.Y36(u.x4),h.Y36(s.F0),h.Y36(u.fb),h.Y36(I.G))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-detail-page"]],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"],["mat-icon-button","","aria-label","Edit group",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","","aria-label","Edit group",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(t,e){1&t&&(h.TgZ(0,"div",0),h._UZ(1,"perun-web-apps-back-button"),h.YNc(2,x,1,0,"mat-spinner",1),h.YNc(3,P,25,32,"div",2),h.qZA()),2&t&&(h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading&&void 0!==e.vo&&void 0!==e.group))},directives:[T.W,o.O5,f.$g,E.Hw,Z.gM,o.PC,s.yS,_.A,b.lW],pipes:[S.X$,N.r,O.J,v.F],styles:[""],data:{animation:[r.Ji]}}),t})();function y(t,e){1&t&&h._UZ(0,"mat-spinner",3)}const G=function(t){return["/admin","users",t]};function Y(t,e){if(1&t&&(h.TgZ(0,"a",8),h._uU(1),h.qZA()),2&t){const t=h.oxw(2);h.Q6J("routerLink",h.VKq(2,G,t.member.userId)),h.xp6(1),h.hij(" ",t.member.userId," ")}}function J(t,e){if(1&t&&(h.TgZ(0,"span"),h._uU(1),h.qZA()),2&t){const t=h.oxw(2);h.xp6(1),h.Oqu(t.member.userId)}}const V=function(){return{color:"black"}},F=function(t,e){return["/organizations",t,"members",e]};function Q(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"div",4),h._UZ(2,"mat-icon",5),h.ALo(3,"translate"),h.TgZ(4,"div",6),h.TgZ(5,"div",7),h.TgZ(6,"a",8),h._uU(7),h.qZA(),h.TgZ(8,"span",9),h._uU(9),h.qZA(),h.qZA(),h.TgZ(10,"span",10),h._uU(11),h.ALo(12,"translate"),h.ALo(13,"translate"),h.YNc(14,Y,2,4,"a",11),h.YNc(15,J,2,1,"span",2),h.qZA(),h.qZA(),h.qZA(),h._UZ(16,"app-animated-router-outlet"),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.s9C("matTooltip",h.lcZ(3,9,"MEMBER_DETAIL.ENTITY")),h.Q6J("ngStyle",h.DdM(15,V)),h.xp6(4),h.Q6J("routerLink",h.WLB(16,F,t.vo.id,t.member.id)),h.xp6(1),h.hij(" ",t.fullName," "),h.xp6(2),h.hij(" \xa0#",t.member.id," "),h.xp6(2),h.AsE(" ",h.lcZ(12,11,"MEMBER_DETAIL.ENTITY"),", ",h.lcZ(13,13,"MEMBER_DETAIL.USER_ID"),": "),h.xp6(3),h.Q6J("ngIf",t.isAuthorized),h.xp6(1),h.Q6J("ngIf",!t.isAuthorized)}}let k=(()=>{class t{constructor(t,e,i,o,s,a,n){this.sideMenuItemService=t,this.translate=e,this.sideMenuService=i,this.membersService=o,this.voService=s,this.route=a,this.authResolver=n,this.fullName="",this.isAuthorized=!1,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(t=>{const e=t.voId,i=t.memberId;this.isAuthorized=this.authResolver.isPerunAdminOrObserver(),this.voService.getVoById(e).subscribe(t=>{this.vo=t,this.membersService.getRichMemberWithAttributes(i).subscribe(t=>{this.member=t;const e=this.sideMenuItemService.parseVo(this.vo),i=this.sideMenuItemService.parseMember(this.member,this.vo);this.fullName=i.label,this.sideMenuService.setAccessMenuItems([e,i]),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(n.V),h.Y36(S.sK),h.Y36(m.D),h.Y36(l.uq),h.Y36(l.YF),h.Y36(s.gz),h.Y36(u.x4))},t.\u0275cmp=h.Xpm({type:t,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(t,e){1&t&&(h.TgZ(0,"div",0),h._UZ(1,"perun-web-apps-back-button"),h.YNc(2,y,1,0,"mat-spinner",1),h.YNc(3,Q,17,19,"div",2),h.qZA()),2&t&&(h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading&&void 0!==e.vo&&void 0!==e.member))},directives:[T.W,o.O5,f.$g,E.Hw,Z.gM,o.PC,s.yS,_.A],pipes:[S.X$],styles:[""],data:{animation:[r.Ji]}}),t})();var B=i(8557);function j(t,e){1&t&&h._UZ(0,"mat-spinner",2)}function H(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"perun-web-apps-menu-buttons-field",3),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("items",t.navItems)("size","small")}}let $=(()=>{class t{constructor(t,e,i,o,s){this.sideMenuService=t,this.voService=e,this.router=i,this.authResolver=o,this.entityStorageService=s,this.items=[],this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.initNavItems(),this.loading=!1}initNavItems(){this.authResolver.isAuthorized("getCompleteRichMembers_Vo_List_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.vo.id}/members`,label:"MENU_ITEMS.VO.MEMBERS",style:"vo-btn"}),this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.vo.id}/groups`,label:"MENU_ITEMS.VO.GROUPS",style:"vo-btn"}),this.authResolver.isAuthorized("getRichResources_Vo_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/organizations/${this.vo.id}/resources`,label:"MENU_ITEMS.VO.RESOURCES",style:"vo-btn"}),this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.vo.id}/applications`,label:"MENU_ITEMS.VO.APPLICATIONS",style:"vo-btn"}),this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.vo.id}/sponsoredMembers`,label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",style:"vo-btn"}),this.authResolver.isAuthorized("createSpecificMember_Vo_Candidate_List_SpecificUserType_List_policy",[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.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.vo.id}/attributes`,label:"MENU_ITEMS.VO.ATTRIBUTES",style:"vo-btn"}),this.authResolver.isAuthorized("getMembersCount_Vo_Status_policy",[this.vo])&&this.authResolver.isAuthorized("getMembersCount_Vo_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-statistics",url:`/organizations/${this.vo.id}/statistics`,label:"MENU_ITEMS.VO.STATISTICS",style:"vo-btn"}),(this.authResolver.isManagerPagePrivileged(this.vo)||this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[this.vo])||this.authResolver.isThisVoAdminOrObserver(this.vo.id))&&this.navItems.push({cssIcon:"perun-settings2",url:`/organizations/${this.vo.id}/settings`,label:"MENU_ITEMS.VO.SETTINGS",style:"vo-btn"})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(m.D),h.Y36(l.YF),h.Y36(s.F0),h.Y36(u.x4),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,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(t,e){1&t&&(h.YNc(0,j,1,0,"mat-spinner",0),h.YNc(1,H,2,2,"div",1)),2&t&&(h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,f.$g,B.L],styles:[""]}),t})();var z=i(48002),X=i(28940),W=i(99608);function K(t,e){1&t&&h._UZ(0,"mat-spinner",3)}function tt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",13),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).editVo()}),h.TgZ(1,"mat-icon"),h._uU(2,"edit"),h.qZA(),h.qZA()}}function et(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",14),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).removeVo()}),h.TgZ(1,"mat-icon"),h._uU(2,"delete_forever"),h.qZA(),h.qZA()}}const it=function(){return{color:"black"}},ot=function(t){return["/organizations/",t]};function st(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"div",4),h._UZ(2,"mat-icon",5),h.ALo(3,"translate"),h.TgZ(4,"div",6),h.TgZ(5,"div",7),h.TgZ(6,"a",8),h._uU(7),h.qZA(),h.TgZ(8,"span",9),h._uU(9),h.qZA(),h.YNc(10,tt,3,0,"button",10),h.YNc(11,et,3,0,"button",11),h.qZA(),h.TgZ(12,"span",12),h._uU(13),h.ALo(14,"translate"),h.ALo(15,"translate"),h.qZA(),h.qZA(),h.qZA(),h._UZ(16,"app-animated-router-outlet"),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.s9C("matTooltip",h.lcZ(3,10,"VO_DETAIL.ENTITY")),h.Q6J("ngStyle",h.DdM(16,it)),h.xp6(4),h.Q6J("routerLink",h.VKq(17,ot,t.vo.id)),h.xp6(1),h.hij(" ",t.vo.name," "),h.xp6(2),h.hij(" \xa0#",t.vo.id," "),h.xp6(1),h.Q6J("ngIf",t.editAuth),h.xp6(1),h.Q6J("ngIf",t.removeAuth),h.xp6(2),h.lnq(" ",h.lcZ(14,12,"VO_DETAIL.ENTITY"),", ",h.lcZ(15,14,"VO_DETAIL.SHORT_NAME"),": ",t.vo.shortName," ")}}let at=(()=>{class t{constructor(t,e,i,o,s,a,n,r,l){this.sideMenuService=t,this.voService=e,this.route=i,this.router=o,this.sideMenuItemService=s,this.dialog=a,this.authResolver=n,this.entityStorageService=r,this.reloadEntityDetail=l,this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.subscribe(()=>{this.reloadData()})}reloadData(){this.loading=!0,this.route.params.subscribe(t=>{this.voService.getVoById(t.voId).subscribe(t=>{this.vo=t,this.entityStorageService.setEntity({id:t.id,beanName:t.beanName}),this.editAuth=this.authResolver.isAuthorized("updateVo_Vo_policy",[this.vo]),this.removeAuth=this.authResolver.isAuthorized("deleteVo_Vo_policy",[this.vo]),this.setMenuItems(),(0,c.sF)("vos",this.vo),(0,c.XI)(this.vo),this.loading=!1},()=>this.loading=!1)})}editVo(){const t=(0,c.kZ)();t.width="450px",t.data={theme:"vo-theme",vo:this.vo,dialogType:d.Eg.VO},this.dialog.open(d.rd,t).afterClosed().subscribe(t=>{t&&this.voService.getVoById(this.vo.id).subscribe(t=>{this.vo=t,this.setMenuItems()})})}setMenuItems(){const t=this.sideMenuItemService.parseVo(this.vo);this.sideMenuService.setAccessMenuItems([t])}removeVo(){const t=(0,c.kZ)();t.width="500px",t.data={theme:"vo-theme",vos:[this.vo]},this.dialog.open(W.o,t).afterClosed().subscribe(t=>{t&&this.router.navigate([""])})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(m.D),h.Y36(l.YF),h.Y36(s.gz),h.Y36(s.F0),h.Y36(n.V),h.Y36(A.uw),h.Y36(u.x4),h.Y36(u.fb),h.Y36(I.G))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-detail-page"]],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"],["svgIcon","perun-vo-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","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"],["mat-icon-button","","aria-label","Edit Vo",3,"click"],["mat-icon-button","","aria-label","Remove Vo","data-cy","delete-vo",3,"click"]],template:function(t,e){1&t&&(h.TgZ(0,"div",0),h._UZ(1,"perun-web-apps-back-button"),h.YNc(2,K,1,0,"mat-spinner",1),h.YNc(3,st,17,19,"div",2),h.qZA()),2&t&&(h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading&&void 0!==e.vo))},directives:[T.W,o.O5,f.$g,E.Hw,Z.gM,o.PC,s.yS,_.A,b.lW],pipes:[S.X$],styles:[".shortname[_ngcontent-%COMP%]{font-size:medium}"],data:{animation:[r.Ji]}}),t})();var nt=i(67033),rt=i(95121),lt=i(79592),ct=i(27439),ut=i(64737),pt=i(37665),dt=i(39571),gt=i(74842),ht=i(37043),mt=i(73669),At=i(58506);function It(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"perun-web-apps-group-search-select",7),h.NdJ("groupSelected",function(e){return h.CHM(t),h.oxw().groupIsSelected(e)}),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("groups",t.groups)("firstSelectedGroup",t.selectedGroup)}}function Tt(t,e){1&t&&h._UZ(0,"mat-spinner",8)}function ft(t,e){1&t&&(h.TgZ(0,"app-alert",9),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.NO_GROUPS_FOUND")))}function Et(t,e){1&t&&h._UZ(0,"th",17)}function Zt(t,e){if(1&t&&(h.TgZ(0,"td",18),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.hij(" ",t,": ")}}function _t(t,e){1&t&&h._UZ(0,"th",17)}function bt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",22),h.NdJ("click",function(){return h.CHM(t),h.oxw(4).changeStatus()}),h.TgZ(1,"mat-icon"),h._uU(2,"edit"),h.qZA(),h.qZA()}}function St(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"i"),h.ALo(2,"memberStatusIconColor"),h._uU(3),h.ALo(4,"memberStatusIcon"),h.qZA(),h.TgZ(5,"b",20),h._uU(6),h.ALo(7,"transformMemberStatus"),h.qZA(),h.YNc(8,bt,3,0,"button",21),h.qZA()),2&t){const t=h.oxw(3);h.xp6(1),h.Gre("material-icons vert-center mr-1 ",h.lcZ(2,6,t.selectedMember.groupStatus),""),h.xp6(2),h.hij(" ",h.lcZ(4,8,t.selectedMember.groupStatus)," "),h.xp6(3),h.hij(" ",h.lcZ(7,10,t.selectedMember.groupStatus)," "),h.xp6(2),h.Q6J("ngIf",t.authResolver.isThisVoAdmin(t.vo.id)||t.authResolver.isThisGroupAdmin(t.selectedGroup.id))}}function Nt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",22),h.NdJ("click",function(){return h.CHM(t),h.oxw(4).changeExpiration()}),h.TgZ(1,"mat-icon"),h._uU(2,"edit"),h.qZA(),h.qZA()}}function Ot(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"i",2),h._uU(2),h.ALo(3,"parseDate"),h.qZA(),h.YNc(4,Nt,3,0,"button",21),h.qZA()),2&t){const t=h.oxw(3);h.xp6(2),h.hij(" ",h.lcZ(3,2,t.expiration)," "),h.xp6(2),h.Q6J("ngIf",t.authResolver.isThisVoAdmin(t.vo.id)||t.authResolver.isThisGroupAdmin(t.selectedGroup.id))}}function vt(t,e){if(1&t&&(h.TgZ(0,"td",19),h.YNc(1,St,9,12,"div",6),h.YNc(2,Ot,5,4,"div",6),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.Q6J("ngIf","Status"===t),h.xp6(1),h.Q6J("ngIf","Expiration"===t)}}function xt(t,e){1&t&&h._UZ(0,"tr",23)}function Lt(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"table",10),h.ynx(2,11),h.YNc(3,Et,1,0,"th",12),h.YNc(4,Zt,2,1,"td",13),h.BQk(),h.ynx(5,14),h.YNc(6,_t,1,0,"th",12),h.YNc(7,vt,3,2,"td",15),h.BQk(),h.YNc(8,xt,1,0,"tr",16),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("dataSource",t.groupMembershipDataSource),h.xp6(7),h.Q6J("matRowDefColumns",t.displayedColumns)}}let Ct=(()=>{class t{constructor(t,e,i,o){this.groupsManager=t,this.authResolver=e,this.translate=i,this.dialog=o,this.noGroups=!1,this.groupMembershipDataSource=new nt.by,this.expiration="",this.displayedColumns=["attName","attValue"]}ngOnChanges(){this.loading=!0,this.initLoading=!0,this.groupMembershipDataSource=new nt.by(["Status","Expiration"]),this.groupsManager.getMemberGroups(this.member.id).subscribe(t=>{if(this.groups=t,0===this.groups.length)return void(this.noGroups=!0);const e=this.findInitiallySelectedGroupId();this.groupIsSelected(e),this.initLoading=!1})}findInitiallySelectedGroupId(){if(this.recentIds=(0,c.vL)("groups"),this.recentIds){const t=this.groups.find(t=>t.id===this.recentIds[0]);if(t)return t}return this.groups[0]}groupIsSelected(t){this.loading=!0,this.selectedGroup=t,this.groupsManager.getGroupRichMembersByIds(this.selectedGroup.id,[this.member.id],[p.r.MEMBER_DEF_GROUP_EXPIRATION]).subscribe(t=>{this.selectedMember=t[0],this.expirationAtt=this.selectedMember.memberAttributes.find(t=>"groupMembershipExpiration"===t.baseFriendlyName),this.expirationAtt?(this.groupMembershipDataSource=new nt.by(["Status","Expiration"]),this.expiration=this.expirationAtt.value?this.expirationAtt.value:this.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES")):this.groupMembershipDataSource=new nt.by(["Status"]),this.loading=!1})}changeExpiration(t=!1){const e=(0,c.kZ)();e.width="400px",e.data={memberId:this.member.id,groupId:this.selectedGroup.id,expirationAttr:this.expirationAtt,status:this.selectedMember.groupStatus,statusChanged:t},this.dialog.open(d.u3,e).afterClosed().subscribe(t=>{t&&this.groupIsSelected(this.selectedGroup)})}changeStatus(){const t=(0,c.kZ)();t.width="600px",t.data={member:this.selectedMember,voId:this.vo.id,groupId:this.selectedGroup.id},this.dialog.open(d.pf,t).afterClosed().subscribe(t=>{t&&(this.selectedMember=t,this.changeExpiration(!0))})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.ff),h.Y36(u.x4),h.Y36(S.sK),h.Y36(A.uw))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-member-overview-groups"]],inputs:{vo:"vo",member:"member"},features:[h.TTD],decls:11,vars:7,consts:[[1,"mat-elevation-z3","groups-card","mt-4"],[1,"page-subtitle"],[1,"column-center"],[3,"groups","firstSelectedGroup","groupSelected",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[3,"groups","firstSelectedGroup","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(t,e){1&t&&(h.TgZ(0,"mat-card",0),h.TgZ(1,"mat-card-header"),h.TgZ(2,"mat-card-title"),h.TgZ(3,"h1",1),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(6,"mat-card-content",2),h.YNc(7,It,1,2,"perun-web-apps-group-search-select",3),h.YNc(8,Tt,1,0,"mat-spinner",4),h.YNc(9,ft,3,3,"app-alert",5),h.YNc(10,Lt,9,2,"div",6),h.qZA(),h.qZA()),2&t&&(h.xp6(4),h.Oqu(h.lcZ(5,5,"MEMBER_DETAIL.OVERVIEW.GROUP_MEMBERSHIP")),h.xp6(3),h.Q6J("ngIf",!e.initLoading),h.xp6(1),h.Q6J("ngIf",(e.loading||e.initLoading)&&!e.noGroups),h.xp6(1),h.Q6J("ngIf",e.noGroups),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[ct.a8,ct.dk,ct.n5,ct.dn,o.O5,pt.h,f.$g,dt.w,nt.BZ,nt.w1,nt.fO,nt.Dz,nt.nj,nt.ge,nt.ev,b.lW,E.Hw,nt.Gk],pipes:[S.X$,gt.u,ht.f,mt.r,At.M],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}"]}),t})(),Rt=(()=>{class t{transform(t){return(0,c.Cz)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=h.Yjl({name:"attributeFriendlyName",type:t,pure:!0}),t})();var Mt=i(22196);function Dt(t,e){1&t&&h._UZ(0,"mat-spinner",2)}function Ut(t,e){1&t&&h._UZ(0,"th",17)}function qt(t,e){if(1&t&&(h.TgZ(0,"span"),h._uU(1),h.qZA()),2&t){const t=h.oxw().$implicit,e=h.oxw(2);h.xp6(1),h.hij(" ",e.attributes.get(t)[0],": ")}}function Pt(t,e){if(1&t&&(h.TgZ(0,"span"),h._uU(1),h.ALo(2,"attributeFriendlyName"),h.qZA()),2&t){const t=h.oxw().$implicit;h.xp6(1),h.hij(" ",h.lcZ(2,1,t),": ")}}function wt(t,e){if(1&t&&(h.TgZ(0,"td",18),h.YNc(1,qt,2,1,"span",1),h.YNc(2,Pt,3,3,"span",1),h.qZA()),2&t){const t=e.$implicit,i=h.oxw(2);h.xp6(1),h.Q6J("ngIf",null!==i.attributes.get(t)[0]),h.xp6(1),h.Q6J("ngIf",null===i.attributes.get(t)[0])}}function yt(t,e){1&t&&h._UZ(0,"th",17)}function Gt(t,e){if(1&t&&(h.TgZ(0,"td",19),h._uU(1),h.qZA()),2&t){const t=e.$implicit,i=h.oxw(2);h.xp6(1),h.hij(" ",i.attributes.get(t)[1]," ")}}function Yt(t,e){1&t&&h._UZ(0,"tr",20)}function Jt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"mat-card",5),h.TgZ(1,"mat-card-header"),h.TgZ(2,"mat-card-title"),h.TgZ(3,"h1",6),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(6,"mat-card-content",21),h.TgZ(7,"div",22),h.ALo(8,"translate"),h.TgZ(9,"button",23),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).requestPwdReset()}),h._uU(10),h.ALo(11,"translate"),h.qZA(),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(2);h.xp6(4),h.Oqu(h.lcZ(5,5,"MEMBER_DETAIL.OVERVIEW.RESET_PASSWORD")),h.xp6(3),h.Q6J("matTooltip",h.lcZ(8,7,"MEMBER_DETAIL.OVERVIEW.RESET_DISABLED"))("matTooltipDisabled",t.logins.length>0),h.xp6(2),h.Q6J("disabled",!t.logins.length),h.xp6(1),h.hij(" ",h.lcZ(11,9,"MEMBER_DETAIL.OVERVIEW.SEND_REQUEST")," ")}}function Vt(t,e){1&t&&(h.TgZ(0,"th",17),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.SPONSOR_NAME")))}function Ft(t,e){if(1&t&&(h.TgZ(0,"td",33),h._uU(1),h.ALo(2,"userFullName"),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.hij(" ",h.lcZ(2,1,t.user)," ")}}function Qt(t,e){1&t&&(h.TgZ(0,"th",17),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.EXPIRATION_TABLE")))}function kt(t,e){if(1&t&&(h.TgZ(0,"td",33),h.TgZ(1,"span",34),h._uU(2),h.ALo(3,"parseDate"),h.qZA(),h.qZA()),2&t){const t=e.$implicit;h.xp6(2),h.Oqu(h.lcZ(3,1,t.validityTo))}}function Bt(t,e){1&t&&h._UZ(0,"tr",35)}function jt(t,e){1&t&&h._UZ(0,"tr",20)}const Ht=function(){return["sponsors","expiration"]};function $t(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"mat-card-content"),h.TgZ(1,"h6",26),h._uU(2),h.ALo(3,"translate"),h.TgZ(4,"button",27),h.NdJ("click",function(){return h.CHM(t),h.oxw(3).changeSponsors()}),h.TgZ(5,"mat-icon"),h._uU(6,"edit"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(7,"table",28),h.ynx(8,29),h.YNc(9,Vt,3,3,"th",9),h.YNc(10,Ft,3,3,"td",30),h.BQk(),h.ynx(11,31),h.YNc(12,Qt,3,3,"th",9),h.YNc(13,kt,4,3,"td",30),h.BQk(),h.YNc(14,Bt,1,0,"tr",32),h.YNc(15,jt,1,0,"tr",13),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(3);h.xp6(2),h.hij(" ",h.lcZ(3,4,"MEMBER_DETAIL.OVERVIEW.SPONSORS"),": "),h.xp6(5),h.Q6J("dataSource",t.sponsorsDataSource),h.xp6(7),h.Q6J("matHeaderRowDef",h.DdM(6,Ht)),h.xp6(1),h.Q6J("matRowDefColumns",h.DdM(7,Ht))}}function zt(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"mat-card",24),h.TgZ(2,"mat-card-header"),h.TgZ(3,"mat-card-title"),h.TgZ(4,"h1",6),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.qZA(),h.TgZ(7,"mat-card-subtitle",25),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.qZA(),h.YNc(10,$t,16,8,"mat-card-content",1),h.qZA(),h.qZA()),2&t){const t=h.oxw(2);h.xp6(5),h.Oqu(h.lcZ(6,3,"MEMBER_DETAIL.OVERVIEW.SPONSORSHIP")),h.xp6(3),h.hij(" ",h.lcZ(9,5,"MEMBER_DETAIL.OVERVIEW.SPONSORED_BY")," "),h.xp6(2),h.Q6J("ngIf",0!==t.sponsors.length)}}function Xt(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"div",3),h.TgZ(2,"div",4),h.TgZ(3,"mat-card",5),h.TgZ(4,"mat-card-header"),h.TgZ(5,"mat-card-title"),h.TgZ(6,"h1",6),h._uU(7),h.ALo(8,"translate"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(9,"mat-card-content"),h.TgZ(10,"table",7),h.ynx(11,8),h.YNc(12,Ut,1,0,"th",9),h.YNc(13,wt,3,2,"td",10),h.BQk(),h.ynx(14,11),h.YNc(15,yt,1,0,"th",9),h.YNc(16,Gt,2,1,"td",12),h.BQk(),h.YNc(17,Yt,1,0,"tr",13),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(18,"div",4),h._UZ(19,"app-member-overview-membership",14),h._UZ(20,"app-member-overview-groups",14),h.qZA(),h.TgZ(21,"div",4),h.YNc(22,Jt,12,11,"mat-card",15),h.YNc(23,zt,11,7,"div",1),h.qZA(),h.qZA(),h.TgZ(24,"div"),h._UZ(25,"perun-web-apps-menu-buttons-field",16),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(7),h.Oqu(h.lcZ(8,11,"MEMBER_DETAIL.OVERVIEW.PERSONAL")),h.xp6(3),h.Q6J("dataSource",t.dataSource),h.xp6(7),h.Q6J("matRowDefColumns",t.displayedColumns),h.xp6(2),h.Q6J("member",t.member)("vo",t.vo),h.xp6(1),h.Q6J("member",t.member)("vo",t.vo),h.xp6(2),h.Q6J("ngIf",t.pwdResetAuth),h.xp6(1),h.Q6J("ngIf",t.member.sponsored),h.xp6(2),h.Q6J("items",t.navItems)("size","small")}}let Wt=(()=>{class t{constructor(t,e,i,o,s,a,n){this.attributesManager=t,this.membersService=e,this.usersManager=i,this.route=o,this.dialog=s,this.authResolver=a,this.storeService=n,this.expiration="",this.logins=[],this.member=null,this.navItems=[],this.attributeNames=[],this.attributes=new Map,this.dataSource=new nt.by,this.displayedColumns=["attName","attValue"],this.sponsors=[],this.sponsorsDataSource=new nt.by,this.loading=!1}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(t=>{const e=t.memberId;this.attributeNames=this.storeService.getMemberProfileAttributeNames(),this.membersService.getRichMemberWithAttributes(e).subscribe(t=>{const e=this.storeService.get("password_namespace_attributes").map(t=>(t=t.split(":"))[t.length-1]);this.attributesManager.getLogins(t.userId).subscribe(i=>{this.logins=i.filter(t=>e.includes(t.friendlyNameParameter)),this.member=t,this.initAttributes(),this.dataSource=new nt.by(Array.from(this.attributes.keys())),this.vo={id:t.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(t=>{this.sponsors=t,this.sponsorsDataSource=new nt.by(this.sponsors),this.initNavItems(),this.refreshData()}):(this.initNavItems(),this.refreshData())},()=>this.loading=!1)})})}initAttributes(){this.attributeNames.forEach(t=>{this.attributes.set(t,[null,"-"])}),this.filterAttributes()}filterAttributes(){null!==this.member.memberAttributes&&this.member.memberAttributes.forEach(t=>{this.attributeNames.includes(t.friendlyName)&&this.attributes.set(t.friendlyName,[t.displayName,t.value.toString()])}),null!==this.member.userAttributes&&this.member.userAttributes.forEach(t=>{this.attributeNames.includes(t.friendlyName)&&this.attributes.set(t.friendlyName,[t.displayName,t.value.toString()])})}initNavItems(){this.navItems=[],this.authResolver.isAuthorized("getMemberGroups_Member_policy",[this.vo])&&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.authResolver.isAuthorized("vo-getApplicationsForMember_Group_Member_policy",[this.vo])&&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.authResolver.isAuthorized("getAssignedRichResources_Member_policy",[this.vo])&&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.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(t=>{this.member=t,this.loading=!1},()=>this.loading=!1)}requestPwdReset(){const t=(0,c.kZ)();t.width="400px",t.data={userId:this.member.userId,memberId:this.member.id,logins:this.logins},this.dialog.open(rt.m,t)}changeSponsors(){const t=(0,c.kZ)();t.width="650px",t.data={sponsors:this.sponsors,member:this.member,theme:"member-theme"},this.dialog.open(lt.H,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.membersService.getRichMemberWithAttributes(this.member.id).subscribe(t=>{this.member=t,this.member.sponsored&&this.usersManager.getSponsorsForMember(this.member.id,null).subscribe(t=>{this.sponsors=t,this.sponsorsDataSource.data=this.sponsors}),this.loading=!1}))})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.H8),h.Y36(l.uq),h.Y36(l.Fv),h.Y36(s.gz),h.Y36(A.uw),h.Y36(u.x4),h.Y36(u.d6))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-member-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.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,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent",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(t,e){1&t&&(h.YNc(0,Dt,1,0,"mat-spinner",0),h.YNc(1,Xt,26,13,"div",1)),2&t&&(h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,f.$g,ct.a8,ct.dk,ct.n5,ct.dn,nt.BZ,nt.w1,nt.fO,nt.Dz,nt.nj,ut.b,Ct,B.L,nt.ge,nt.ev,nt.Gk,Z.gM,b.lW,ct.$j,E.Hw,nt.as,nt.XQ],pipes:[S.X$,Rt,Mt.d,At.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}"]}),t})();var Kt=i(81835);function te(t,e){1&t&&h._UZ(0,"mat-spinner",2)}const ee=function(t,e){return["/organizations",t,"groups",e]};function ie(t,e){if(1&t&&(h.TgZ(0,"p"),h._uU(1),h.ALo(2,"translate"),h.TgZ(3,"a",4),h._uU(4),h.qZA(),h.qZA()),2&t){const t=h.oxw(2);h.xp6(1),h.hij(" ",h.lcZ(2,3,"GROUP_DETAIL.SUBGROUP_INFO")," "),h.xp6(2),h.Q6J("routerLink",h.WLB(5,ee,t.parentGroup.voId,t.parentGroup.id)),h.xp6(1),h.hij(" ",t.parentGroup.name," ")}}function oe(t,e){if(1&t&&(h.TgZ(0,"div"),h.YNc(1,ie,5,8,"p",1),h._UZ(2,"perun-web-apps-menu-buttons-field",3),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("ngIf",null!==t.parentGroup),h.xp6(1),h.Q6J("items",t.navItems)("size","small")}}let se=(()=>{class t{constructor(t,e,i,o,s,a,n,r){this.route=t,this.groupService=e,this.voService=i,this.guiAuthResolver=o,this.apiRequest=s,this.attributesManager=a,this.notificator=n,this.entityStorageService=r,this.navItems=[],this.parentGroup=null,this.loading=!1}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),null!==this.group.parentGroupId?this.loadParentGroupData():(this.parentGroup=null,this.initNavItems(),this.loading=!1)}loadParentGroupData(){this.groupService.getGroupById(this.group.parentGroupId).subscribe(t=>{this.parentGroup=t,this.initNavItems(),this.loading=!1},()=>this.loading=!1)}initNavItems(){this.navItems=[],this.guiAuthResolver.isAuthorized("getCompleteRichMembers_Group_List_boolean_policy",[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.guiAuthResolver.isAuthorized("getAllRichSubGroupsWithAttributesByNames_Group_List_policy",[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.guiAuthResolver.isAuthorized("getAssignedRichResources_Group_policy",[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.guiAuthResolver.isAuthorized("getApplicationsForGroup_Group_List_policy",[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.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.group.voId}/groups/${this.group.id}/attributes`,label:"MENU_ITEMS.GROUP.ATTRIBUTES",style:"group-btn"});const t=this.guiAuthResolver.isAuthorized("getGroupMembersCount_Group_policy",[this.group]),e=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByVoStatus_Group_policy",[this.group]),i=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByGroupStatus_Group_policy",[this.group]);t&&i&&e&&this.navItems.push({cssIcon:"perun-statistics",url:`/organizations/${this.group.voId}/groups/${this.group.id}/statistics`,label:"MENU_ITEMS.GROUP.STATISTICS",style:"group-btn"});let o=!1;this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,p.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{o=!0},t=>{"HttpErrorResponse"!==t.name&&this.notificator.showRPCError(t)});const s=this.guiAuthResolver.isManagerPagePrivileged(this.group),a=this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group]),n=this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group]),r=this.guiAuthResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[this.group]);(o||s||a||n||r)&&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 t.\u0275fac=function(e){return new(e||t)(h.Y36(s.gz),h.Y36(l.ff),h.Y36(l.YF),h.Y36(u.x4),h.Y36(u.F5),h.Y36(l.H8),h.Y36(u.V6),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.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(t,e){1&t&&(h.YNc(0,te,1,0,"mat-spinner",0),h.YNc(1,oe,3,3,"div",1)),2&t&&(h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,f.$g,B.L,s.yS],pipes:[S.X$],styles:[""]}),t})();var ae=i(82044);let ne=(()=>{class t{constructor(t){this.route=t}ngOnInit(){this.route.parent.params.subscribe(t=>{this.voId=t.voId})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(s.gz))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-resources"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&h._UZ(0,"app-animated-router-outlet")},directives:[_.A],styles:[""],data:{animation:[r.Ji]}}),t})();var re=i(40659);let le=(()=>{class t{constructor(t,e){this.route=t,this.router=e,this.backButtonRegex=new RegExp("/organizations/\\d+/settings/\\w+$"),this.backButtonDisplayed=!1,this.currentUrl=e.url,this.backButtonDisplayed=this.backButtonRegex.test(this.currentUrl),e.events.subscribe(t=>{t instanceof s.m2&&(this.currentUrl=t.url,this.backButtonDisplayed=this.backButtonRegex.test(this.currentUrl))})}ngOnInit(){this.route.parent.params.subscribe(t=>{this.voId=t.voId})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(s.gz),h.Y36(s.F0))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&h._UZ(0,"app-animated-router-outlet")},directives:[_.A],styles:[""],data:{animation:[r.Ji]}}),t})();var ce=i(541);let ue=(()=>{class t{constructor(t){this.entityStorageService=t}ngOnInit(){this.vo=this.entityStorageService.getEntity()}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-attributes"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],[3,"entityId","entity"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h._UZ(4,"app-one-entity-attribute-page",1),h.qZA()),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,3,"VO_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),h.xp6(2),h.Q6J("entityId",e.vo.id)("entity","vo"))},directives:[ce.t],pipes:[S.X$],styles:[""]}),t})();function pe(t,e){1&t&&h._UZ(0,"mat-spinner",2)}function de(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"perun-web-apps-menu-buttons-field",3),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("items",t.items)("size","small")}}let ge=(()=>{class t{constructor(t,e,i,o,s){this.sideMenuService=t,this.voService=e,this.authResolver=i,this.router=o,this.entityStorageService=s,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.items=[];const t=this.authResolver.isThisVoAdminOrObserver(this.vo.id);t&&this.items.push({cssIcon:"perun-group",url:`/organizations/${this.vo.id}/settings/expiration`,label:"MENU_ITEMS.VO.EXPIRATION",style:"vo-btn"}),this.authResolver.isManagerPagePrivileged(this.vo)&&this.items.push({cssIcon:"perun-manager",url:`/organizations/${this.vo.id}/settings/managers`,label:"MENU_ITEMS.VO.MANAGERS",style:"vo-btn"}),t&&this.items.push({cssIcon:"perun-application-form",url:`/organizations/${this.vo.id}/settings/applicationForm`,label:"MENU_ITEMS.VO.APPLICATION_FORM",style:"vo-btn"}),t&&this.items.push({cssIcon:"perun-notification",url:`/organizations/${this.vo.id}/settings/notifications`,label:"MENU_ITEMS.VO.NOTIFICATIONS",style:"vo-btn"}),this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[this.vo])&&this.items.push({cssIcon:"perun-external-sources",url:`/organizations/${this.vo.id}/settings/extsources`,label:"MENU_ITEMS.VO.EXTSOURCES",style:"vo-btn"})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(m.D),h.Y36(l.YF),h.Y36(u.x4),h.Y36(s.F0),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-settings-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.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(t,e){1&t&&(h.YNc(0,pe,1,0,"mat-spinner",0),h.YNc(1,de,2,2,"div",1)),2&t&&(h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,f.$g,B.L],styles:[""]}),t})();var he=i(27521),me=i(16073),Ae=i(54810);const Ie=["*"];let Te=(()=>{class t{constructor(){this.modelChange=new h.vpe}get model(){return this.modelValue}set model(t){this.modelValue=t}ngAfterViewInit(){this.toggle.change.subscribe(()=>this.valueChanged())}valueChanged(){this.modelChange.emit(this.toggle.checked)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-settings-toggle-item"]],viewQuery:function(t,e){if(1&t&&h.Gf(he.Rr,7),2&t){let t;h.iGM(t=h.CRH())&&(e.toggle=t.first)}},inputs:{title:"title",model:"model"},outputs:{modelChange:"modelChange"},ngContentSelectors:Ie,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(t,e){if(1&t){const t=h.EpF();h.F$t(),h.TgZ(0,"div",0),h.TgZ(1,"div",1),h.TgZ(2,"label",2),h.NdJ("click",function(){return h.CHM(t),h.MAs(5).toggle()||e.valueChanged()}),h._uU(3),h.qZA(),h.TgZ(4,"mat-slide-toggle",3,4),h.NdJ("ngModelChange",function(t){return e.modelValue=t}),h.qZA(),h.qZA(),h.TgZ(6,"div",5),h.Hsn(7),h.qZA(),h.qZA()}if(2&t){const t=h.MAs(5);h.xp6(2),h.ekj("unselected-setting",!t.checked),h.xp6(1),h.hij(" ",e.title," "),h.xp6(1),h.Q6J("ngModel",e.modelValue),h.xp6(2),h.Q6J("@openClose",t.checked?"open":"closed")}},directives:[he.Rr,me.JJ,me.On],styles:[""],data:{animation:[r.BQ]}}),t})();var fe=i(66283),Ee=i(4786),Ze=i(80340),_e=i(71522),be=i(29236);function Se(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",25),h.TgZ(1,"mat-form-field",26),h.TgZ(2,"input",20),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(2).currentConfiguration.periodStatic=e}),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"mat-hint"),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(2);h.xp6(2),h.s9C("pattern",t.datePattern),h.s9C("placeholder",h.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),h.Q6J("ngModel",t.currentConfiguration.periodStatic),h.xp6(3),h.Oqu(h.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function Ne(t,e){if(1&t&&(h.TgZ(0,"mat-option",27),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t.value),h.xp6(1),h.Oqu(t.text)}}function Oe(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",18),h.TgZ(1,"mat-form-field",19),h.TgZ(2,"input",20),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(2).currentConfiguration.periodDynamic=e}),h.ALo(3,"translate"),h.qZA(),h.qZA(),h.TgZ(4,"mat-form-field"),h.TgZ(5,"mat-label"),h._uU(6),h.ALo(7,"translate"),h.qZA(),h.TgZ(8,"mat-select",8),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(2).currentConfiguration.periodDynamicUnit=e}),h.YNc(9,Ne,2,2,"mat-option",17),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(2);h.xp6(2),h.s9C("pattern",t.dynamicAmountPattern),h.s9C("placeholder",h.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),h.Q6J("ngModel",t.currentConfiguration.periodDynamic),h.xp6(4),h.Oqu(h.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),h.xp6(2),h.Q6J("ngModel",t.currentConfiguration.periodDynamicUnit),h.xp6(1),h.Q6J("ngForOf",t.amountOptions)}}function ve(t,e){if(1&t&&(h.TgZ(0,"mat-option",27),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t),h.xp6(1),h.Oqu(t)}}function xe(t,e){if(1&t&&(h.TgZ(0,"mat-option",27),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t),h.xp6(1),h.Oqu(t)}}function Le(t,e){if(1&t&&(h.TgZ(0,"mat-option",27),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t.value),h.xp6(1),h.Oqu(t.text)}}function Ce(t,e){if(1&t&&(h.TgZ(0,"mat-option",27),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t),h.xp6(1),h.hij(" ",t," ")}}function Re(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",25),h.TgZ(1,"mat-form-field",26),h.TgZ(2,"input",20),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(3).currentConfiguration.specialLoaPeriodStatic=e}),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"mat-hint"),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(3);h.xp6(2),h.s9C("pattern",t.datePattern),h.s9C("placeholder",h.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),h.Q6J("ngModel",t.currentConfiguration.specialLoaPeriodStatic),h.xp6(3),h.Oqu(h.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function Me(t,e){if(1&t&&(h.TgZ(0,"mat-option",27),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t.value),h.xp6(1),h.Oqu(t.text)}}function De(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",18),h.TgZ(1,"mat-form-field",19),h.TgZ(2,"input",20),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(3).currentConfiguration.specialLoaPeriodDynamic=e}),h.ALo(3,"translate"),h.qZA(),h.qZA(),h.TgZ(4,"mat-form-field"),h.TgZ(5,"mat-label"),h._uU(6),h.ALo(7,"translate"),h.qZA(),h.TgZ(8,"mat-select",8),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(3).currentConfiguration.specialLoaPeriodDynamicUnit=e}),h.YNc(9,Me,2,2,"mat-option",17),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(3);h.xp6(2),h.s9C("pattern",t.dynamicAmountPattern),h.s9C("placeholder",h.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),h.Q6J("ngModel",t.currentConfiguration.specialLoaPeriodDynamic),h.xp6(4),h.Oqu(h.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),h.xp6(2),h.Q6J("ngModel",t.currentConfiguration.specialLoaPeriodDynamicUnit),h.xp6(1),h.Q6J("ngForOf",t.amountOptions)}}function Ue(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",28),h.TgZ(1,"mat-radio-group",8),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(2).currentConfiguration.specialLoaPeriodType=e}),h.TgZ(2,"mat-radio-button",9,29),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.TgZ(6,"mat-radio-button",11,30),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.qZA(),h.YNc(10,Re,7,8,"div",13),h.YNc(11,De,10,10,"div",14),h.TgZ(12,"div"),h.TgZ(13,"mat-checkbox",31),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(2).currentConfiguration.specialLoaPeriodExtendExpiredMembers=e}),h._uU(14),h.ALo(15,"translate"),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.MAs(3),e=h.MAs(7),i=h.oxw(2);h.xp6(1),h.Q6J("ngModel",i.currentConfiguration.specialLoaPeriodType),h.xp6(3),h.hij(" ",h.lcZ(5,7,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_STATIC")," "),h.xp6(4),h.hij(" ",h.lcZ(9,9,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_DYNAMIC")," "),h.xp6(2),h.Q6J("ngIf",t.checked),h.xp6(1),h.Q6J("ngIf",e.checked),h.xp6(2),h.Q6J("ngModel",i.currentConfiguration.specialLoaPeriodExtendExpiredMembers),h.xp6(1),h.hij(" ",h.lcZ(15,11,"VO_MANAGEMENT.SETTINGS.EXPIRATION.EXTEND_EXPIRED_MEMBERS_CHECKBOX")," ")}}function qe(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",1),h.TgZ(1,"div",2),h.TgZ(2,"h1",3),h.NdJ("click",function(){return h.CHM(t),h.MAs(6).toggle()}),h._uU(3),h.ALo(4,"translate"),h.qZA(),h.TgZ(5,"mat-slide-toggle",4,5),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.enabled=e}),h.qZA(),h.qZA(),h.TgZ(7,"div"),h.TgZ(8,"label",6),h._uU(9),h.ALo(10,"translate"),h.qZA(),h.TgZ(11,"div",7),h.TgZ(12,"mat-radio-group",8),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.periodType=e}),h.TgZ(13,"mat-radio-button",9,10),h._uU(15),h.ALo(16,"translate"),h.qZA(),h.TgZ(17,"mat-radio-button",11,12),h._uU(19),h.ALo(20,"translate"),h.qZA(),h.qZA(),h.YNc(21,Se,7,8,"div",13),h.YNc(22,Oe,10,10,"div",14),h.qZA(),h.TgZ(23,"app-settings-toggle-item",15),h.NdJ("modelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.doNotAllowLoasEnabled=e}),h.ALo(24,"translate"),h.TgZ(25,"mat-form-field"),h.TgZ(26,"mat-placeholder"),h._uU(27),h.ALo(28,"translate"),h.qZA(),h.TgZ(29,"mat-select",16),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.doNotAllowLoas=e}),h.YNc(30,ve,2,2,"mat-option",17),h.qZA(),h.qZA(),h.qZA(),h.TgZ(31,"app-settings-toggle-item",15),h.NdJ("modelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.doNotExtendLoasEnabled=e}),h.ALo(32,"translate"),h.TgZ(33,"mat-form-field"),h.TgZ(34,"mat-placeholder"),h._uU(35),h.ALo(36,"translate"),h.qZA(),h.TgZ(37,"mat-select",16),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.doNotExtendLoas=e}),h.YNc(38,xe,2,2,"mat-option",17),h.qZA(),h.qZA(),h.qZA(),h.TgZ(39,"app-settings-toggle-item",15),h.NdJ("modelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.gracePeriodEnabled=e}),h.ALo(40,"translate"),h.TgZ(41,"div",18),h.TgZ(42,"mat-form-field",19),h.TgZ(43,"input",20),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.gracePeriod=e}),h.ALo(44,"translate"),h.qZA(),h.qZA(),h.TgZ(45,"mat-form-field"),h.TgZ(46,"mat-label"),h._uU(47),h.ALo(48,"translate"),h.qZA(),h.TgZ(49,"mat-select",8),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.gracePeriodUnit=e}),h.YNc(50,Le,2,2,"mat-option",17),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(51,"app-settings-toggle-item",15),h.NdJ("modelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.specialLoaPeriodEnabled=e}),h.ALo(52,"translate"),h.TgZ(53,"div",7),h.TgZ(54,"div"),h.TgZ(55,"mat-form-field"),h.TgZ(56,"mat-label"),h._uU(57),h.ALo(58,"translate"),h.qZA(),h.TgZ(59,"mat-select",8,21),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.specialLoa=e}),h.YNc(61,Ce,2,2,"mat-option",17),h.qZA(),h.qZA(),h.YNc(62,Ue,16,13,"div",22),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(63,"div",23),h.ALo(64,"translate"),h.TgZ(65,"button",24),h.NdJ("click",function(){return h.CHM(t),h.oxw().saveChanges()}),h._uU(66),h.ALo(67,"translate"),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.MAs(6),e=h.MAs(14),i=h.MAs(18),o=h.oxw();h.xp6(2),h.ekj("unselected-setting",!t.checked),h.xp6(1),h.hij(" ",h.lcZ(4,40,"VO_MANAGEMENT.SETTINGS.EXPIRATION.TITLE")," "),h.xp6(2),h.Q6J("ngModel",o.currentConfiguration.enabled),h.xp6(2),h.Q6J("@openClose",t.checked?"open":"closed"),h.xp6(2),h.Oqu(h.lcZ(10,42,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_LABEL")),h.xp6(3),h.Q6J("ngModel",o.currentConfiguration.periodType),h.xp6(3),h.hij(" ",h.lcZ(16,44,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_STATIC")," "),h.xp6(4),h.hij(" ",h.lcZ(20,46,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_DYNAMIC")," "),h.xp6(2),h.Q6J("ngIf",e.checked),h.xp6(1),h.Q6J("ngIf",i.checked),h.xp6(1),h.Q6J("model",o.currentConfiguration.doNotAllowLoasEnabled)("title",h.lcZ(24,48,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_LABEL")),h.xp6(4),h.Oqu(h.lcZ(28,50,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_SELECT")),h.xp6(2),h.Q6J("ngModel",o.currentConfiguration.doNotAllowLoas),h.xp6(1),h.Q6J("ngForOf",o.loas),h.xp6(1),h.Q6J("model",o.currentConfiguration.doNotExtendLoasEnabled)("title",h.lcZ(32,52,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_LABEL")),h.xp6(4),h.Oqu(h.lcZ(36,54,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_SELECT")),h.xp6(2),h.Q6J("ngModel",o.currentConfiguration.doNotExtendLoas),h.xp6(1),h.Q6J("ngForOf",o.loas),h.xp6(1),h.Q6J("model",o.currentConfiguration.gracePeriodEnabled)("title",h.lcZ(40,56,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_PERIOD_LABEL")),h.xp6(4),h.s9C("pattern",o.dynamicAmountPattern),h.s9C("placeholder",h.lcZ(44,58,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_VALUE")),h.Q6J("ngModel",o.currentConfiguration.gracePeriod),h.xp6(4),h.Oqu(h.lcZ(48,60,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_TYPE")),h.xp6(2),h.Q6J("ngModel",o.currentConfiguration.gracePeriodUnit),h.xp6(1),h.Q6J("ngForOf",o.amountOptions),h.xp6(1),h.Q6J("model",o.currentConfiguration.specialLoaPeriodEnabled)("title",h.lcZ(52,62,"VO_MANAGEMENT.SETTINGS.EXPIRATION.LOA_PERIOD_LABEL")),h.xp6(6),h.Oqu(h.lcZ(58,64,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SPECIAL_LOA_SELECT")),h.xp6(2),h.Q6J("ngModel",o.currentConfiguration.specialLoa),h.xp6(2),h.Q6J("ngForOf",o.loas),h.xp6(1),h.Q6J("ngIf",null!==o.currentConfiguration.specialLoa),h.xp6(1),h.s9C("matTooltip",h.lcZ(64,66,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERMISSION_DENIED_HINT")),h.Q6J("matTooltipDisabled",o.expirationAttribute.writable)("matTooltipPosition","above"),h.xp6(2),h.Q6J("disabled",!o.areChangesMade()||!o.expirationAttribute.writable),h.xp6(1),h.hij(" ",h.lcZ(67,68,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SAVE")," ")}}let Pe=(()=>{class t{constructor(){this.saveAttribute=new h.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 t=new Map;this.loas.forEach(e=>t.set(e,"")),this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value),this.currentConfiguration=this.unParseAttrValue(this.expirationAttribute.value)}ngOnChanges(t){t.expirationAttribute&&(this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value))}saveChanges(){this.saveAttribute.emit(this.parseExpirationRulesAttribute())}areChangesMade(){const t=this.parseAttributeValueFromConfig(this.currentConfiguration),e=this.parseAttributeValueFromConfig(this.initialConfiguration);return null===e?null!==t:null===t||t.period!==e.period||t.gracePeriod!==e.gracePeriod||t.doNotExtendLoa!==e.doNotExtendLoa||t.doNotAllowLoa!==e.doNotAllowLoa||t.periodLoa!==e.periodLoa}parseExpirationRulesAttribute(){return this.expirationAttribute.value=this.parseAttributeValueFromConfig(this.currentConfiguration),this.expirationAttribute}parsePeriod(t){switch(t.periodType){case"dynamic":return this.parseDynamicPeriod(t);case"static":return this.parseStaticPeriod(t)}}createInitConfiguration(){const t=new Map;return this.loas.forEach(e=>t.set(e,"")),{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(t){let e=this.createInitConfiguration();return null==t||(void 0!==t.period&&t.period.length>0&&(e=this.setPeriodValues(t,e)),void 0!==t.doNotAllowLoa&&t.doNotAllowLoa.length>0&&(e=this.setDoNotAllowLoasValues(t,e)),void 0!==t.doNotExtendLoa&&t.doNotExtendLoa.length>0&&(e=this.setDoNotExtendLoasValues(t,e)),void 0!==t.gracePeriod&&t.gracePeriod.length>0&&(e=this.setGracePeriodValues(t,e)),void 0!==t.periodLoa&&t.periodLoa.length>0&&(e=this.setSpecialLoaPeriodValues(t,e))),e}setPeriodValues(t,e){if(e.enabled=!0,t.period.startsWith("+")){e.periodType="dynamic";const i=t.period.charAt(t.period.length-1);e.periodDynamic=t.period.substring(1,t.period.length-1),e.periodDynamicUnit=i}else e.periodType="static",e.periodStatic=t.period;return e}setDoNotAllowLoasValues(t,e){const i=[];return t.doNotAllowLoa.split(",").forEach(t=>i.push(parseInt(t.trim(),10))),e.doNotAllowLoas=i,i.length>0&&(e.doNotAllowLoasEnabled=!0),e}setDoNotExtendLoasValues(t,e){const i=[];return t.doNotExtendLoa.split(",").forEach(t=>i.push(parseInt(t.trim(),10))),e.doNotExtendLoas=i,i.length>0&&(e.doNotExtendLoasEnabled=!0),e}setGracePeriodValues(t,e){e.gracePeriodEnabled=!0;const i=t.gracePeriod.charAt(t.gracePeriod.length-1);return e.gracePeriod=t.gracePeriod.substring(0,t.gracePeriod.length-1),e.gracePeriodUnit=i,e}setSpecialLoaPeriodValues(t,e){e.specialLoa=parseInt(t.periodLoa.substring(0,t.periodLoa.indexOf("|")),10),e.specialLoaPeriodEnabled=!0;let i=t.periodLoa.substring(t.periodLoa.indexOf("|")+1,t.periodLoa.length);if(i.startsWith("+")){i.endsWith(".")&&(e.specialLoaPeriodExtendExpiredMembers=!0,i=i.substring(0,i.length-1)),e.specialLoaPeriodType="dynamic";const t=i.charAt(i.length-1);e.specialLoaPeriodDynamic=i.substring(1,i.length-1),e.specialLoaPeriodDynamicUnit=t}else i.endsWith("..")&&(e.specialLoaPeriodExtendExpiredMembers=!0,i=i.substring(0,i.length-1)),e.specialLoaPeriodType="static",e.specialLoaPeriodStatic=i;return e}parseDynamicPeriod(t){return"+"+t.periodDynamic+t.periodDynamicUnit}parseStaticPeriod(t){return t.periodStatic}parseDontAllowLoas(t){if(!t.doNotAllowLoasEnabled)return null;let e="";return t.doNotAllowLoas.forEach(t=>e+=t+","),e.length>0&&(e=e.substring(0,e.length-1)),e.length>0?e:null}parseDontExtendLoas(t){if(!t.doNotExtendLoasEnabled)return null;let e="";return t.doNotExtendLoas.forEach(t=>e+=t+","),e.length>0&&(e=e.substring(0,e.length-1)),e.length>0?e:null}parseGracePeriod(t){return t.gracePeriodEnabled?t.gracePeriod+t.gracePeriodUnit:null}parseSpecialLoaPeriod(t){if(!t.specialLoaPeriodEnabled)return null;let e=t.specialLoa+"|";switch(t.specialLoaPeriodType){case"static":e+=this.parseSpecialLoaPeriodStatic(t);break;case"dynamic":e+=this.parseSpecialLoaPeriodDynamic(t)}return null!=e&&t.specialLoaPeriodExtendExpiredMembers&&(e+="."),e}parseSpecialLoaPeriodStatic(t){return t.specialLoaPeriodStatic}parseSpecialLoaPeriodDynamic(t){return"+"+t.specialLoaPeriodDynamic+t.specialLoaPeriodDynamicUnit}parseAttributeValueFromConfig(t){if(!t.enabled)return null;const e=this.parsePeriod(t),i=this.parseDontAllowLoas(t),o=this.parseDontExtendLoas(t),s=this.parseGracePeriod(t),a=this.parseSpecialLoaPeriod(t),n={period:e};return null!==o&&(n.doNotExtendLoa=o),null!==i&&(n.doNotAllowLoa=i),null!==s&&(n.gracePeriod=s),null!==a&&(n.periodLoa=a),n}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-expiration-settings"]],inputs:{expirationAttribute:"expirationAttribute"},outputs:{saveAttribute:"saveAttribute"},features:[h.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"],[3,"model","title","modelChange"],["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"],["mat-flat-button","","color","primary",1,"ml-auto",3,"disabled","click"],[1,"form-container"],[1,"date-field"],[3,"value"],[1,"mt-2"],["loaStaticRadioButton",""],["loaDynamicRadioButton",""],["color","primary",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&h.YNc(0,qe,68,70,"div",0),2&t&&h.Q6J("ngIf",e.currentConfiguration)},directives:[o.O5,he.Rr,me.JJ,me.On,Ae.VQ,Ae.U0,Te,fe.KE,fe.UY,Ee.gD,o.sg,Ze.Nt,me.Fj,me.c5,fe.hX,Z.gM,b.lW,fe.bx,_e.ey,be.oG],pipes:[S.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:[r.BQ]}}),t})();function we(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"app-expiration-settings",1),h.NdJ("saveAttribute",function(e){return h.CHM(t),h.oxw().saveExpirationAttribute(e)}),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("expirationAttribute",t.expirationAttribute)}}let ye=(()=>{class t{constructor(t,e,i,o,s){this.attributesManager=t,this.translate=e,this.notificator=i,this.apiRequest=o,this.entityStorageService=s,this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(t=>this.successMessage=t),this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(t=>this.errorMessage=t)}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.loadSettings()}loadSettings(){this.attributesManager.getVoAttributeByName(this.vo.id,p.r.VO_DEF_EXPIRATION_RULES).subscribe(t=>{this.expirationAttribute=t})}saveExpirationAttribute(t){this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setVoAttribute({vo:this.vo.id,attribute:t}).subscribe(()=>{this.loadSettings(),this.notificator.showSuccess(this.successMessage)},t=>{console.log(t),this.notificator.showRPCError(t.error,this.errorMessage)})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.H8),h.Y36(S.sK),h.Y36(u.V6),h.Y36(u.F5),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-settings-expiration"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(t,e){1&t&&h.YNc(0,we,1,1,"app-expiration-settings",0),2&t&&h.Q6J("ngIf",void 0!==e.expirationAttribute)},directives:[o.O5,Pe],styles:[""],data:{animation:[r.BQ]}}),t})();var Ge=i(62284),Ye=i(489);let Je=(()=>{class t{constructor(t,e,i,o){this.dialog=t,this.voService=e,this.guiAuthResolver=i,this.entityStorageService=o,this.availableRoles=[],this.selected="user",this.type="Vo",this.theme="vo-theme"}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Vo")}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.uw),h.Y36(l.YF),h.Y36(u.x4),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-settings-managers"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:1,vars:4,consts:[[3,"complementaryObject","complementaryObjectType","theme","availableRoles"]],template:function(t,e){1&t&&h._UZ(0,"app-managers-page",0),2&t&&h.Q6J("complementaryObject",e.vo)("complementaryObjectType",e.type)("theme",e.theme)("availableRoles",e.availableRoles)},directives:[Ye.s],styles:[""]}),t})();function Ve(t,e){1&t&&h._UZ(0,"mat-spinner",6)}function Fe(t,e){1&t&&(h.TgZ(0,"mat-option",18),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APPROVABLE_GROUP_APP_USER")))}function Qe(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div"),h._uU(1),h.ALo(2,"translate"),h.TgZ(3,"mat-form-field",8),h.TgZ(4,"textarea",19),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(2).reason=e}),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(2);h.xp6(1),h.hij(" ",h.lcZ(2,2,"DIALOGS.RE_SEND_NOTIFICATION.REASON"),": "),h.xp6(3),h.Q6J("ngModel",t.reason)}}function ke(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",7),h._uU(1),h.ALo(2,"translate"),h.TgZ(3,"mat-form-field",8),h.TgZ(4,"mat-select",9),h.NdJ("valueChange",function(e){return h.CHM(t),h.oxw().mailType=e}),h.TgZ(5,"mat-option",10),h._uU(6),h.ALo(7,"translate"),h.qZA(),h.YNc(8,Fe,3,3,"mat-option",11),h.TgZ(9,"mat-option",12),h._uU(10),h.ALo(11,"translate"),h.qZA(),h.TgZ(12,"mat-option",13),h._uU(13),h.ALo(14,"translate"),h.qZA(),h.TgZ(15,"mat-option",14),h._uU(16),h.ALo(17,"translate"),h.qZA(),h.TgZ(18,"mat-option",15),h._uU(19),h.ALo(20,"translate"),h.qZA(),h.TgZ(21,"mat-option",16),h._uU(22),h.ALo(23,"translate"),h.qZA(),h.qZA(),h.qZA(),h.YNc(24,Qe,5,4,"div",17),h.qZA()}if(2&t){const t=h.oxw();h.xp6(1),h.hij(" ",h.lcZ(2,10,"DIALOGS.RE_SEND_NOTIFICATION.SELECT"),": "),h.xp6(3),h.Q6J("value",t.mailType),h.xp6(2),h.Oqu(h.lcZ(7,12,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_USER")),h.xp6(2),h.Q6J("ngIf",t.data.groupId),h.xp6(2),h.Oqu(h.lcZ(11,14,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_VO_ADMIN")),h.xp6(3),h.Oqu(h.lcZ(14,16,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.MAIL_VALIDATION")),h.xp6(3),h.Oqu(h.lcZ(17,18,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_APPROVED_USER")),h.xp6(3),h.Oqu(h.lcZ(20,20,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_REJECTED_USER")),h.xp6(3),h.Oqu(h.lcZ(23,22,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_ERROR_VO_ADMIN")),h.xp6(2),h.Q6J("ngIf","APP_REJECTED_USER"===t.mailType)}}let Be=(()=>{class t{constructor(t,e,i,o,s){this.dialogRef=t,this.data=e,this.translate=i,this.notificator=o,this.registrarManager=s,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(t=>{this.notificator.showSuccess(t),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(t=>{this.notificator.showSuccess(t),this.dialogRef.close()})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(S.sK),h.Y36(u.V6),h.Y36(l.tk))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-flat-button","","color","accent",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(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,Ve,1,0,"mat-spinner",1),h.YNc(5,ke,25,24,"div",2),h.TgZ(6,"div",3),h.TgZ(7,"button",4),h.NdJ("click",function(){return e.onCancel()}),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"button",5),h.NdJ("click",function(){return e.onSubmit()}),h._uU(11),h.ALo(12,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Gre("",e.theme,"}"),h.xp6(2),h.Oqu(h.lcZ(3,9,"DIALOGS.RE_SEND_NOTIFICATION.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(9,11,"DIALOGS.RE_SEND_NOTIFICATION.CANCEL")," "),h.xp6(2),h.Q6J("disabled",e.loading),h.xp6(1),h.hij(" ",h.lcZ(12,13,"DIALOGS.RE_SEND_NOTIFICATION.SEND")," "))},directives:[A.uh,o.O5,A.H8,b.lW,f.$g,A.xY,fe.KE,Ee.gD,_e.ey,Ze.Nt,me.Fj,me.JJ,me.On],pipes:[S.X$],styles:[""]}),t})();function je(t,e){1&t&&h._UZ(0,"mat-spinner",6)}function He(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",7),h._uU(1),h.ALo(2,"translate"),h.TgZ(3,"mat-form-field",8),h.TgZ(4,"textarea",9),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().reason=e}),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.xp6(1),h.hij(" ",h.lcZ(2,2,"DIALOGS.REJECT_APPLICATION.TEXT")," "),h.xp6(3),h.Q6J("ngModel",t.reason)}}let $e=(()=>{class t{constructor(t,e,i,o,s){this.dialogRef=t,this.data=e,this.translate=i,this.notificator=o,this.registrarManager=s,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(t=>{this.notificator.showSuccess(t),this.dialogRef.close()})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(S.sK),h.Y36(u.V6),h.Y36(l.tk))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"w-100"],["matInput","",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,je,1,0,"mat-spinner",1),h.YNc(5,He,5,4,"div",2),h.TgZ(6,"div",3),h.TgZ(7,"button",4),h.NdJ("click",function(){return e.onCancel()}),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"button",5),h.NdJ("click",function(){return e.onSubmit()}),h._uU(11),h.ALo(12,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.Oqu(h.lcZ(3,9,"DIALOGS.REJECT_APPLICATION.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(9,11,"DIALOGS.REJECT_APPLICATION.CANCEL")," "),h.xp6(2),h.Q6J("disabled",e.loading),h.xp6(1),h.hij(" ",h.lcZ(12,13,"DIALOGS.REJECT_APPLICATION.SUBMIT")," "))},directives:[A.uh,o.O5,A.H8,b.lW,f.$g,A.xY,fe.KE,Ze.Nt,me.Fj,me.JJ,me.On],pipes:[S.X$],styles:[""]}),t})();function ze(t,e){1&t&&h._UZ(0,"mat-spinner",6)}function Xe(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.INVALID_EMAIL")))}function We(t,e){if(1&t&&(h.TgZ(0,"mat-form-field"),h.TgZ(1,"label"),h._UZ(2,"input",9),h.qZA(),h.YNc(3,Xe,3,3,"mat-error",8),h.qZA()),2&t){const t=h.oxw(2);h.xp6(2),h.Q6J("formControl",t.emailControl),h.xp6(1),h.Q6J("ngIf",t.emailControl.invalid)}}function Ke(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.EMPTY_INPUT")))}function ti(t,e){if(1&t&&(h.TgZ(0,"mat-form-field"),h._UZ(1,"input",10),h.YNc(2,Ke,3,3,"mat-error",8),h.qZA()),2&t){const t=h.oxw(2);h.xp6(1),h.Q6J("formControl",t.inputControl),h.xp6(1),h.Q6J("ngIf",t.inputControl.invalid)}}function ei(t,e){if(1&t&&(h.TgZ(0,"div",7),h.YNc(1,We,4,2,"mat-form-field",8),h.YNc(2,ti,3,2,"mat-form-field",8),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("ngIf",null!==t.emailControl),h.xp6(1),h.Q6J("ngIf",null!==t.inputControl)}}let ii=(()=>{class t{constructor(t,e,i,o,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translateService=o,this.registrarService=s,this.loading=!1,this.inputControl=null,this.emailControl=null}ngOnInit(){this.theme=this.data.theme,this.formItemData=this.data.formItemData,this.itemName=this.getLabel(this.formItemData.formItem),this.itemName.toLowerCase().includes("mail")?this.emailControl=new me.NI(this.formItemData.value,[me.kI.required,me.kI.email]):this.inputControl=new me.NI(this.formItemData.value,[me.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)}getLabel(t){return null!==t.i18n.en.label&&0!==t.i18n.en.label.length?t.i18n.en.label:t.shortname}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(u.V6),h.Y36(S.sK),h.Y36(l.tk))},t.\u0275cmp=h.Xpm({type:t,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"],["type","text","matInput","","required","",3,"formControl"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,ze,1,0,"mat-spinner",1),h.YNc(5,ei,3,2,"div",2),h.TgZ(6,"div",3),h.TgZ(7,"button",4),h.NdJ("click",function(){return e.onCancel()}),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"button",5),h.NdJ("click",function(){return e.onSubmit()}),h._uU(11),h.ALo(12,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.AsE("",h.lcZ(3,10,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.TITLE")," ",e.itemName,""),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(9,12,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.CANCEL")," "),h.xp6(2),h.Q6J("disabled",e.loading||null!==e.inputControl&&e.inputControl.invalid||null!==e.emailControl&&e.emailControl.invalid),h.xp6(1),h.hij(" ",h.lcZ(12,14,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.SUBMIT")," "))},directives:[A.uh,o.O5,A.H8,b.lW,f.$g,A.xY,fe.KE,Ze.Nt,me.Fj,me.Q7,me.JJ,me.oH,fe.TO],pipes:[S.X$],styles:[""]}),t})();var oi=i(27679),si=i(84650);function ai(t,e){if(1&t&&(h.TgZ(0,"span",5),h._uU(1),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.hij(" #",t.application.id," ")}}function ni(t,e){1&t&&h._UZ(0,"mat-spinner",6)}function ri(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",17),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).verifyApplication()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VERIFY")," "))}function li(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",17),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).approveApplication()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVE")," "))}function ci(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",18),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).rejectApplication()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECT")," "))}function ui(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",18),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).deleteApplication()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE")," "))}function pi(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",19),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).resendNotification()}),h.TgZ(1,"i",14),h._uU(2," mail_outline "),h.qZA(),h._uU(3),h.ALo(4,"translate"),h.qZA()}2&t&&(h.xp6(3),h.hij(" ",h.lcZ(4,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SEND_NOTIFICATION")," "))}function di(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"span",10),h._uU(2),h.ALo(3,"translate"),h.qZA(),h._uU(4),h.qZA()),2&t){const t=h.oxw(2);h.xp6(2),h.Oqu(h.lcZ(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_VO")),h.xp6(2),h.hij(": ",t.application.vo.name," ")}}function gi(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"span",10),h._uU(2),h.ALo(3,"translate"),h.qZA(),h._uU(4),h.TgZ(5,"span",10),h._uU(6),h.ALo(7,"translate"),h.qZA(),h._uU(8),h.qZA()),2&t){const t=h.oxw(2);h.xp6(2),h.Oqu(h.lcZ(3,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_GROUP")),h.xp6(2),h.hij(": ",t.application.group.name," "),h.xp6(2),h.Oqu(h.lcZ(7,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_IN_VO")),h.xp6(2),h.hij(": ",t.application.vo.name," ")}}function hi(t,e){1&t&&(h.TgZ(0,"span"),h.TgZ(1,"mat-icon",20),h._uU(2,"arrow_right_alt"),h.qZA(),h._uU(3," Initial "),h.qZA())}function mi(t,e){1&t&&(h.TgZ(0,"span"),h.TgZ(1,"mat-icon",20),h._uU(2,"restore"),h.qZA(),h._uU(3," Extension "),h.qZA())}function Ai(t,e){1&t&&(h.TgZ(0,"span"),h.TgZ(1,"mat-icon",20),h._uU(2,"nat"),h.qZA(),h._uU(3," Embedded "),h.qZA())}function Ii(t,e){if(1&t&&(h.TgZ(0,"div",21),h.TgZ(1,"mat-card-title"),h.TgZ(2,"i",22),h._uU(3,"clear"),h.qZA(),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.TgZ(6,"div"),h.TgZ(7,"span",10),h._uU(8),h.ALo(9,"translate"),h.qZA(),h._uU(10),h.ALo(11,"date"),h.qZA(),h.qZA()),2&t){const t=h.oxw(2);h.xp6(4),h.AsE(" ",h.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECTED_BY"),": ",t.getModifiedAtName(t.application.modifiedBy),""),h.xp6(4),h.Oqu(h.lcZ(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),h.xp6(2),h.hij(": ",h.xi3(11,8,t.application.modifiedAt,"d.M.y H:mm:ss"),"")}}function Ti(t,e){if(1&t&&(h.TgZ(0,"div",21),h.TgZ(1,"mat-card-title"),h.TgZ(2,"i",23),h._uU(3,"done"),h.qZA(),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.TgZ(6,"div"),h.TgZ(7,"span",10),h._uU(8),h.ALo(9,"translate"),h.qZA(),h._uU(10),h.ALo(11,"date"),h.qZA(),h.qZA()),2&t){const t=h.oxw(2);h.xp6(4),h.AsE(" ",h.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVED_BY"),": ",t.getModifiedAtName(t.application.modifiedBy),""),h.xp6(4),h.Oqu(h.lcZ(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),h.xp6(2),h.hij(": ",h.xi3(11,8,t.application.modifiedAt,"d.M.y H:mm:ss"),"")}}function fi(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"span",10),h._uU(2),h.ALo(3,"translate"),h.qZA(),h._uU(4),h.qZA()),2&t){const t=h.oxw(2);h.xp6(2),h.Oqu(h.lcZ(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.MAIL")),h.xp6(2),h.hij(": ",t.userMail,"")}}function Ei(t,e){1&t&&h._UZ(0,"th",32)}function Zi(t,e){if(1&t&&(h.TgZ(0,"td",33),h._uU(1),h.qZA()),2&t){const t=e.$implicit,i=h.oxw(3);h.xp6(1),h.AsE("",i.getLabel(t.formItem),"",t.formItem.type.startsWith("FROM_FEDERATION")?"*":"","")}}function _i(t,e){1&t&&h._UZ(0,"th",32)}function bi(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",36),h.NdJ("click",function(){h.CHM(t);const e=h.oxw().$implicit;return h.oxw(3).editApplicationData(e)}),h.TgZ(1,"mat-icon"),h._uU(2,"edit"),h.qZA(),h.qZA()}}function Si(t,e){if(1&t&&(h.TgZ(0,"td",34),h._uU(1),h.YNc(2,bi,3,0,"button",35),h.qZA()),2&t){const t=e.$implicit,i=h.oxw(3);h.xp6(1),h.hij(" ",t.value," "),h.xp6(1),h.Q6J("ngIf",!t.formItem.type.startsWith("FROM_FEDERATION")&&("NEW"===i.application.state||"VERIFIED"===i.application.state)&&"EMBEDDED_GROUP_APPLICATION"!==t.formItem.type)}}function Ni(t,e){1&t&&h._UZ(0,"tr",37)}function Oi(t,e){1&t&&h._UZ(0,"tr",38)}function vi(t,e){if(1&t&&(h.TgZ(0,"table",24),h.ynx(1,25),h.YNc(2,Ei,1,0,"th",26),h.YNc(3,Zi,2,2,"td",27),h.BQk(),h.ynx(4,28),h.YNc(5,_i,1,0,"th",26),h.YNc(6,Si,3,2,"td",29),h.BQk(),h.YNc(7,Ni,1,0,"tr",30),h.YNc(8,Oi,1,0,"tr",31),h.qZA()),2&t){const t=h.oxw(2);h.Q6J("dataSource",t.dataSource),h.xp6(7),h.Q6J("matHeaderRowDef",t.displayedColumns),h.xp6(1),h.Q6J("matRowDefColumns",t.displayedColumns)}}function xi(t,e){1&t&&(h.TgZ(0,"div",39),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij("*",h.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VALUE_BY_EXTERNALS"),""))}function Li(t,e){if(1&t&&(h.TgZ(0,"div"),h.YNc(1,ri,3,3,"button",7),h.YNc(2,li,3,3,"button",7),h.YNc(3,ci,3,3,"button",8),h.YNc(4,ui,3,3,"button",8),h.YNc(5,pi,5,3,"button",9),h.YNc(6,di,5,4,"div",4),h.YNc(7,gi,9,8,"div",4),h.TgZ(8,"div"),h.TgZ(9,"span",10),h._uU(10),h.ALo(11,"translate"),h.qZA(),h._uU(12,": "),h._UZ(13,"span",11),h.ALo(14,"applicationState"),h.qZA(),h.TgZ(15,"div"),h.TgZ(16,"span",10),h._uU(17),h.ALo(18,"translate"),h.qZA(),h._uU(19,": "),h.YNc(20,hi,4,0,"span",4),h.YNc(21,mi,4,0,"span",4),h.YNc(22,Ai,4,0,"span",4),h.qZA(),h.YNc(23,Ii,12,11,"div",12),h.YNc(24,Ti,12,11,"div",12),h.TgZ(25,"div",13),h.TgZ(26,"mat-card-title"),h.TgZ(27,"i",14),h._uU(28,"redo"),h.qZA(),h._uU(29),h.ALo(30,"translate"),h.ALo(31,"userFullName"),h.qZA(),h.YNc(32,fi,5,4,"div",4),h.TgZ(33,"div"),h.TgZ(34,"span",10),h._uU(35),h.ALo(36,"translate"),h.qZA(),h._uU(37),h.qZA(),h.TgZ(38,"div"),h.TgZ(39,"span",10),h._uU(40),h.ALo(41,"translate"),h.qZA(),h._uU(42),h.qZA(),h.TgZ(43,"div"),h.TgZ(44,"span",10),h._uU(45),h.ALo(46,"translate"),h.qZA(),h._uU(47),h.ALo(48,"date"),h.qZA(),h.YNc(49,vi,9,3,"table",15),h.YNc(50,xi,3,3,"div",16),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("ngIf","NEW"===t.application.state&&t.verifyAuth),h.xp6(1),h.Q6J("ngIf",("VERIFIED"===t.application.state||"NEW"===t.application.state)&&t.approveAuth),h.xp6(1),h.Q6J("ngIf",("VERIFIED"===t.application.state||"NEW"===t.application.state)&&t.rejectAuth),h.xp6(1),h.Q6J("ngIf",("REJECTED"===t.application.state||"NEW"===t.application.state)&&t.deleteAuth),h.xp6(1),h.Q6J("ngIf",t.resendAuth),h.xp6(1),h.Q6J("ngIf",!t.application.group),h.xp6(1),h.Q6J("ngIf",t.application.group),h.xp6(3),h.Oqu(h.lcZ(11,26,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.STATE")),h.xp6(3),h.Q6J("outerHTML",h.lcZ(14,28,t.application.state),h.oJD),h.xp6(4),h.Oqu(h.lcZ(18,30,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TYPE")),h.xp6(3),h.Q6J("ngIf","INITIAL"===t.application.type),h.xp6(1),h.Q6J("ngIf","EXTENSION"===t.application.type),h.xp6(1),h.Q6J("ngIf","EMBEDDED"===t.application.type),h.xp6(1),h.Q6J("ngIf","REJECTED"===t.application.state),h.xp6(1),h.Q6J("ngIf","APPROVED"===t.application.state),h.xp6(5),h.AsE(" ",h.lcZ(30,32,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SUBMITTED_BY"),": ",null===t.application.user?t.submittedBy():h.lcZ(31,34,t.application.user),""),h.xp6(3),h.Q6J("ngIf",t.userMail),h.xp6(3),h.Oqu(h.lcZ(36,36,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.EXT_SRC")),h.xp6(2),h.hij(": ",t.application.extSourceName,""),h.xp6(3),h.Oqu(h.lcZ(41,38,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.LOA")),h.xp6(2),h.hij(": ",t.application.extSourceLoa,""),h.xp6(3),h.Oqu(h.lcZ(46,40,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),h.xp6(2),h.hij(": ",h.xi3(48,42,t.application.createdAt,"d.M.y H:mm:ss"),""),h.xp6(2),h.Q6J("ngIf",0!==t.userData.length),h.xp6(1),h.Q6J("ngIf",0!==t.userData.length)}}let Ci=(()=>{class t{constructor(t,e,i,o,s,a,n,r){this.registrarManager=t,this.dialog=e,this.translate=i,this.route=o,this.notificator=s,this.router=a,this.authResolver=n,this.usersService=r,this.userData=[],this.displayedColumns=["label","value"],this.loading=!0}ngOnInit(){this.loading=!0,this.route.params.subscribe(t=>{this.route.parent.params.subscribe(e=>{this.dialogTheme=e.groupId?"group-theme":e.memberId?"member-theme":"vo-theme",this.registrarManager.getApplicationById(t.applicationId).subscribe(t=>{this.application=t,"EMBEDDED"===this.application.type&&this.application.user?this.usersService.getRichUserWithAttributes(this.application.user.id).subscribe(t=>{var e;const i=t.userAttributes.find(t=>"preferredMail"===t.friendlyName);this.userMail=null===(e=null==i?void 0:i.value)||void 0===e?void 0:e.toString(),this.setAuthRights(),this.loading=!1}):this.registrarManager.getApplicationDataById(this.application.id).subscribe(t=>{this.userData=t,this.dataSource=new nt.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(t){return null!==t.i18n.en.label&&0!==t.i18n.en.label.length?t.i18n.en.label:t.shortname}submittedBy(){return this.application.createdBy.slice(this.application.createdBy.lastIndexOf("=")+1,this.application.createdBy.length)}getModifiedAtName(t){const e=t.lastIndexOf("/CN=");if(-1!==e){const i=t.slice(e+4,t.length).replace("/unstructuredName="," ");return-1!==i.lastIndexOf("\\")?t.slice(t.lastIndexOf("=")+1,t.length):i}return t}resendNotification(){var t;const e=(0,c.kZ)();e.width="500px",e.data={applicationId:this.application.id,theme:this.dialogTheme,groupId:null===(t=this.application.group)||void 0===t?void 0:t.id},this.dialog.open(Be,e)}deleteApplication(){const t=(0,c.kZ)();t.width="450px",t.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"},this.dialog.open(d.Tf,t).afterClosed().subscribe(t=>{t&&this.registrarManager.deleteApplication(this.application.id).subscribe(()=>{this.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_MESSAGE").subscribe(t=>{this.notificator.showSuccess(t),this.router.navigateByUrl(this.router.url.substring(0,this.router.url.lastIndexOf("/")))})})})}rejectApplication(){const t=(0,c.kZ)();t.width="500px",t.data={applicationId:this.application.id,theme:this.dialogTheme},this.dialog.open($e,t).afterClosed().subscribe(()=>{this.loading=!0,this.registrarManager.getApplicationById(this.application.id).subscribe(t=>{this.application=t,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(t=>{this.notificator.showSuccess(t)}),this.registrarManager.getApplicationById(this.application.id).subscribe(t=>{this.application=t,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(t=>{this.notificator.showSuccess(t)}),this.loading=!0,this.registrarManager.getApplicationById(this.application.id).subscribe(t=>{this.application=t,this.loading=!1})})}editApplicationData(t){const e=(0,c.kZ)();e.width="600px",e.data={theme:this.dialogTheme,applicationId:this.application.id,formItemData:t},this.dialog.open(ii,e)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.tk),h.Y36(A.uw),h.Y36(S.sK),h.Y36(s.gz),h.Y36(u.V6),h.Y36(s.F0),h.Y36(u.x4),h.Y36(l.Fv))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-application-detail"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.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"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"click",4,"ngIf"],["mat-stroked-button","","class","mr-2 mb-2",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"],["mat-table","","class","w-100",3,"dataSource",4,"ngIf"],["class","font-italic",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",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"],["mat-cell","","class","font-weight-bold",4,"matCellDef"],["matColumnDef","value"],["class","word-break-all","mat-cell","",4,"matCellDef"],["mat-header-row","","class","h-50",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"word-break-all"],["mat-icon-button","","aria-label","Edit Application data",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Edit Application data",3,"click"],["mat-header-row","",1,"h-50"],["mat-row",""],[1,"font-italic"]],template:function(t,e){1&t&&(h.TgZ(0,"h2",0),h._uU(1),h.ALo(2,"translate"),h.YNc(3,ai,2,1,"span",1),h.qZA(),h._UZ(4,"mat-divider",2),h.YNc(5,ni,1,0,"mat-spinner",3),h.YNc(6,Li,51,45,"div",4)),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TITLE")," "),h.xp6(2),h.Q6J("ngIf",!!e.application),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,oi.d,f.$g,ct.n5,b.lW,E.Hw,nt.BZ,nt.w1,nt.fO,nt.Dz,nt.as,nt.nj,nt.ge,nt.ev,nt.XQ,nt.Gk],pipes:[S.X$,si.h,Mt.d,o.uU],styles:[""]}),t})();var Ri=i(11930),Mi=i(7433);let Di=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&h._UZ(0,"app-animated-router-outlet")},directives:[_.A],styles:[""],data:{animation:[r.Ji]}}),t})();var Ui=i(55109),qi=i(3417);function Pi(t,e){1&t&&(h._uU(0),h.ALo(1,"translate")),2&t&&h.hij(" ",h.lcZ(1,1,"GROUP_DETAIL.ENTITY")," ")}function wi(t,e){if(1&t&&h._UZ(0,"app-one-entity-attribute-page",4),2&t){const t=h.oxw();h.Q6J("entity","group")("entityId",t.group.id)}}function yi(t,e){1&t&&(h._uU(0),h.ALo(1,"translate"),h.ALo(2,"translate")),2&t&&h.AsE(" ",h.lcZ(1,2,"GROUP_DETAIL.ENTITY")," - ",h.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function Gi(t,e){if(1&t&&h._UZ(0,"app-two-entity-attribute-page",5),2&t){const t=h.oxw(2);h.Q6J("firstEntity","group")("firstEntityId",t.group.id)("secondEntity","member")}}function Yi(t,e){1&t&&(h.TgZ(0,"mat-tab"),h.YNc(1,yi,3,6,"ng-template",1),h.YNc(2,Gi,1,3,"ng-template",2),h.qZA())}function Ji(t,e){1&t&&(h._uU(0),h.ALo(1,"translate"),h.ALo(2,"translate")),2&t&&h.AsE(" ",h.lcZ(1,2,"GROUP_DETAIL.ENTITY")," - ",h.lcZ(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function Vi(t,e){if(1&t&&h._UZ(0,"app-two-entity-attribute-page",5),2&t){const t=h.oxw(2);h.Q6J("firstEntity","group")("firstEntityId",t.group.id)("secondEntity","resource")}}function Fi(t,e){1&t&&(h.TgZ(0,"mat-tab"),h.YNc(1,Ji,3,6,"ng-template",1),h.YNc(2,Vi,1,3,"ng-template",2),h.qZA())}let Qi=(()=>{class t{constructor(t,e){this.authResolver=t,this.entityStorageService=e}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 t.\u0275fac=function(e){return new(e||t)(h.Y36(u.x4),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-attributes"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:10,vars:5,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"mat-tab-group"),h.TgZ(5,"mat-tab"),h.YNc(6,Pi,2,3,"ng-template",1),h.YNc(7,wi,1,2,"ng-template",2),h.qZA(),h.YNc(8,Yi,3,0,"mat-tab",3),h.YNc(9,Fi,3,0,"mat-tab",3),h.qZA(),h.qZA()),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,3,"GROUP_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),h.xp6(6),h.Q6J("ngIf",e.groupMemberAttAuth),h.xp6(1),h.Q6J("ngIf",e.groupResourceAttAuth))},directives:[Ui.SP,Ui.uX,Ui.uD,Ui.Vc,o.O5,ce.t,qi.Y],pipes:[S.X$],styles:[""]}),t})();function ki(t,e){1&t&&h._UZ(0,"mat-spinner",2)}function Bi(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"perun-web-apps-menu-buttons-field",3),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("items",t.items)("size","small")}}let ji=(()=>{class t{constructor(t,e,i,o,s,a,n,r){this.sideMenuService=t,this.groupService=e,this.router=i,this.guiAuthResolver=o,this.apiRequest=s,this.attributesManager=a,this.notificator=n,this.entityStorageService=r,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,p.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"})},t=>{"HttpErrorResponse"!==t.name&&this.notificator.showRPCError(t)}),this.guiAuthResolver.isManagerPagePrivileged(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.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[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.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[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.guiAuthResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[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.guiAuthResolver.isAuthorized("getGroupExtSources_Group_policy",[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 t.\u0275fac=function(e){return new(e||t)(h.Y36(m.D),h.Y36(l.ff),h.Y36(s.F0),h.Y36(u.x4),h.Y36(u.F5),h.Y36(l.H8),h.Y36(u.V6),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-settings-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.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(t,e){1&t&&(h.YNc(0,ki,1,0,"mat-spinner",0),h.YNc(1,Bi,2,2,"div",1)),2&t&&(h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,f.$g,B.L],styles:[""]}),t})();var Hi=i(14527);function $i(t,e){1&t&&h._UZ(0,"mat-spinner",3)}function zi(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",10),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).switchToInitial()}),h.TgZ(1,"i",11),h._uU(2,"arrow_right_alt"),h.qZA(),h._uU(3),h.ALo(4,"translate"),h.qZA()}2&t&&(h.xp6(3),h.hij(" ",h.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_INITIAL")," "))}function Xi(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",10),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).switchToExtension()}),h.TgZ(1,"i",11),h._uU(2,"cached"),h.qZA(),h._uU(3),h.ALo(4,"translate"),h.qZA()}2&t&&(h.xp6(3),h.hij(" ",h.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_EXTENSION")," "))}function Wi(t,e){if(1&t&&(h.TgZ(0,"mat-option",12),h._uU(1),h.ALo(2,"translate"),h.ALo(3,"uppercase"),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t),h.xp6(1),h.hij(" ",h.lcZ(2,2,h.lcZ(3,4,"SHARED_LIB.LANGUAGES."+t))," ")}}function Ki(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function to(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function eo(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"div",18),h._UZ(5,"input",19),h.qZA(),h.qZA(),h.TgZ(6,"div",20),h.YNc(7,Ki,2,1,"mat-icon",21),h.YNc(8,to,2,1,"mat-icon",21),h.TgZ(9,"span",22),h._uU(10),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(2),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(2),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function io(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function oo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function so(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"div",18),h._UZ(5,"input",24),h.qZA(),h.qZA(),h.TgZ(6,"div",20),h.YNc(7,io,2,1,"mat-icon",21),h.YNc(8,oo,2,1,"mat-icon",21),h.TgZ(9,"span",22),h._uU(10),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(4),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function ao(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function no(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function ro(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"div",18),h._UZ(5,"input",25),h._UZ(6,"br"),h._UZ(7,"input",19),h.qZA(),h.qZA(),h.TgZ(8,"div",20),h.YNc(9,ao,2,1,"mat-icon",21),h.YNc(10,no,2,1,"mat-icon",21),h.TgZ(11,"span",22),h._uU(12),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(2),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(2),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(2),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function lo(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"input",27),h._uU(2),h._UZ(3,"br"),h.qZA()),2&t){const t=e.$implicit,i=h.oxw(3).$implicit;h.xp6(1),h.Q6J("disabled","ALWAYS"===i.disabled),h.xp6(1),h.hij(" ",t,"")}}function co(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function uo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function po(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"form",18),h.YNc(5,lo,4,2,"div",9),h._UZ(6,"input",26),h.ALo(7,"translate"),h.qZA(),h.qZA(),h.TgZ(8,"div",20),h.YNc(9,co,2,1,"mat-icon",21),h.YNc(10,uo,2,1,"mat-icon",21),h.TgZ(11,"span",22),h._uU(12),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(2),h.Q6J("ngForOf",e.getLocalizedOptions(t)),h.xp6(1),h.s9C("value",h.lcZ(7,7,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION")),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(3),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function go(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"span",28),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(1),h.Q6J("innerHTML",e.getLocalizedLabel(t),h.oJD)}}function ho(t,e){if(1&t&&(h.TgZ(0,"option"),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.Oqu(t)}}function mo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function Ao(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function Io(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"div",18),h.TgZ(5,"select",29),h.YNc(6,ho,2,1,"option",9),h.qZA(),h.qZA(),h.qZA(),h.TgZ(7,"div",20),h.YNc(8,mo,2,1,"mat-icon",21),h.YNc(9,Ao,2,1,"mat-icon",21),h.TgZ(10,"span",22),h._uU(11),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(2),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(1),h.Q6J("ngForOf",e.getLocalizedOptions(t)),h.xp6(2),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function To(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function fo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function Eo(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h._UZ(4,"textarea",30),h.qZA(),h.TgZ(5,"div",20),h.YNc(6,To,2,1,"mat-icon",21),h.YNc(7,fo,2,1,"mat-icon",21),h.TgZ(8,"span",22),h._uU(9),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(1),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(2),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function Zo(t,e){if(1&t&&(h.TgZ(0,"option",35),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.Oqu(t)}}function _o(t,e){1&t&&(h.TgZ(0,"div",36),h.TgZ(1,"form"),h._UZ(2,"input",37),h.qZA(),h.qZA())}function bo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function So(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function No(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"div",18),h.TgZ(5,"select",31),h.NdJ("ngModelChange",function(e){h.CHM(t);const i=h.oxw(2).$implicit;return h.oxw(2).mapForCombobox[i.id]=e}),h.TgZ(6,"option",32),h._uU(7),h.ALo(8,"translate"),h.qZA(),h.YNc(9,Zo,2,1,"option",33),h.qZA(),h.YNc(10,_o,3,0,"div",34),h.qZA(),h.qZA(),h.TgZ(11,"div",20),h.YNc(12,bo,2,1,"mat-icon",21),h.YNc(13,So,2,1,"mat-icon",21),h.TgZ(14,"span",22),h._uU(15),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(2),h.Q6J("ngModel",e.mapForCombobox[t.id])("disabled","ALWAYS"===t.disabled),h.xp6(2),h.Oqu(h.lcZ(8,9,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")),h.xp6(2),h.Q6J("ngForOf",e.getLocalizedOptions(t)),h.xp6(1),h.Q6J("ngIf","true"===e.mapForCombobox[t.id]),h.xp6(2),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function Oo(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"input",38),h._uU(2),h.qZA()),2&t){const t=e.$implicit,i=h.oxw(3).$implicit;h.xp6(1),h.Q6J("disabled","ALWAYS"===i.disabled),h.xp6(1),h.hij(" ",t," ")}}function vo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function xo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function Lo(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"div",18),h.TgZ(5,"form",36),h.YNc(6,Oo,3,2,"div",9),h.qZA(),h.qZA(),h.qZA(),h.TgZ(7,"div",20),h.YNc(8,vo,2,1,"mat-icon",21),h.YNc(9,xo,2,1,"mat-icon",21),h.TgZ(10,"span",22),h._uU(11),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(3),h.Q6J("ngForOf",e.getLocalizedOptions(t)),h.xp6(2),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function Co(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function Ro(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function Mo(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"div",18),h.TgZ(5,"form",36),h._UZ(6,"input",38),h._uU(7," example group1 "),h._UZ(8,"br"),h._UZ(9,"input",38),h._uU(10," example group2 "),h._UZ(11,"br"),h._UZ(12,"input",38),h._uU(13," example group3 "),h.qZA(),h.qZA(),h.qZA(),h.TgZ(14,"div",20),h.YNc(15,Co,2,1,"mat-icon",21),h.YNc(16,Ro,2,1,"mat-icon",21),h.TgZ(17,"span",22),h._uU(18),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(3),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(3),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(3),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(3),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function Do(t,e){if(1&t&&(h.TgZ(0,"mat-icon",41),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function Uo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",41),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function qo(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"button",39),h._uU(2),h.qZA(),h.YNc(3,Do,2,1,"mat-icon",40),h.YNc(4,Uo,2,1,"mat-icon",40),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(1),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(1),h.Oqu(e.getLocalizedLabel(t)),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden)}}function Po(t,e){if(1&t&&(h.TgZ(0,"mat-icon",41),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function wo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",41),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function yo(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"button",39),h._uU(2),h.qZA(),h.YNc(3,Po,2,1,"mat-icon",40),h.YNc(4,wo,2,1,"mat-icon",40),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(1),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(1),h.Oqu(e.getLocalizedLabel(t)),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden)}}function Go(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function Yo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function Jo(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"div",18),h.TgZ(5,"select",42),h.TgZ(6,"option",43),h._uU(7),h.ALo(8,"translate"),h.qZA(),h.TgZ(9,"option",44),h._uU(10,"(GMT -12:00) Eniwetok, Kwajalein"),h.qZA(),h.TgZ(11,"option",45),h._uU(12,"(GMT -11:00) Midway Island, Samoa"),h.qZA(),h.TgZ(13,"option",46),h._uU(14,"(GMT -10:00) Hawaii"),h.qZA(),h.TgZ(15,"option",47),h._uU(16,"(GMT -9:30) Taiohae"),h.qZA(),h.TgZ(17,"option",48),h._uU(18,"(GMT -9:00) Alaska"),h.qZA(),h.TgZ(19,"option",49),h._uU(20,"(GMT -8:00) Pacific Time (US & Canada)"),h.qZA(),h.TgZ(21,"option",50),h._uU(22,"(GMT -7:00) Mountain Time (US & Canada)"),h.qZA(),h.TgZ(23,"option",51),h._uU(24,"(GMT -6:00) Central Time (US & Canada), Mexico City"),h.qZA(),h.TgZ(25,"option",52),h._uU(26,"(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima"),h.qZA(),h.TgZ(27,"option",53),h._uU(28,"(GMT -4:30) Caracas"),h.qZA(),h.TgZ(29,"option",54),h._uU(30,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),h.qZA(),h.TgZ(31,"option",55),h._uU(32,"(GMT -3:30) Newfoundland"),h.qZA(),h.TgZ(33,"option",56),h._uU(34,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),h.qZA(),h.TgZ(35,"option",57),h._uU(36,"(GMT -2:00) Mid-Atlantic"),h.qZA(),h.TgZ(37,"option",58),h._uU(38,"(GMT -1:00) Azores, Cape Verde Islands"),h.qZA(),h.TgZ(39,"option",59),h._uU(40,"(GMT) Western Europe Time, London, Lisbon, Casablanca"),h.qZA(),h.TgZ(41,"option",60),h._uU(42,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),h.qZA(),h.TgZ(43,"option",61),h._uU(44,"(GMT +2:00) Kaliningrad, South Africa"),h.qZA(),h.TgZ(45,"option",62),h._uU(46,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),h.qZA(),h.TgZ(47,"option",63),h._uU(48,"(GMT +3:30) Tehran"),h.qZA(),h.TgZ(49,"option",64),h._uU(50,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),h.qZA(),h.TgZ(51,"option",65),h._uU(52,"(GMT +4:30) Kabul"),h.qZA(),h.TgZ(53,"option",66),h._uU(54,"(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent"),h.qZA(),h.TgZ(55,"option",67),h._uU(56,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),h.qZA(),h.TgZ(57,"option",68),h._uU(58,"(GMT +5:45) Kathmandu, Pokhara"),h.qZA(),h.TgZ(59,"option",69),h._uU(60,"(GMT +6:00) Almaty, Dhaka, Colombo"),h.qZA(),h.TgZ(61,"option",70),h._uU(62,"(GMT +6:30) Yangon, Mandalay"),h.qZA(),h.TgZ(63,"option",71),h._uU(64,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),h.qZA(),h.TgZ(65,"option",72),h._uU(66,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),h.qZA(),h.TgZ(67,"option",73),h._uU(68,"(GMT +8:45) Eucla"),h.qZA(),h.TgZ(69,"option",74),h._uU(70,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),h.qZA(),h.TgZ(71,"option",75),h._uU(72,"(GMT +9:30) Adelaide, Darwin"),h.qZA(),h.TgZ(73,"option",76),h._uU(74,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),h.qZA(),h.TgZ(75,"option",77),h._uU(76,"(GMT +10:30) Lord Howe Island"),h.qZA(),h.TgZ(77,"option",78),h._uU(78,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),h.qZA(),h.TgZ(79,"option",79),h._uU(80,"(GMT +11:30) Norfolk Island"),h.qZA(),h.TgZ(81,"option",80),h._uU(82,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),h.qZA(),h.TgZ(83,"option",81),h._uU(84,"(GMT +12:45) Chatham Islands"),h.qZA(),h.TgZ(85,"option",82),h._uU(86,"(GMT +13:00) Apia, Nukualofa"),h.qZA(),h.TgZ(87,"option",83),h._uU(88,"(GMT +14:00) Line Islands, Tokelau"),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(89,"div",20),h.YNc(90,Go,2,1,"mat-icon",21),h.YNc(91,Yo,2,1,"mat-icon",21),h.TgZ(92,"span",22),h._uU(93),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(2),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(2),h.hij(" ",h.lcZ(8,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")," "),h.xp6(83),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function Vo(t,e){if(1&t&&(h.TgZ(0,"div",14),h.YNc(1,eo,11,5,"div",15),h.YNc(2,so,11,4,"div",15),h.YNc(3,ro,13,6,"div",15),h.YNc(4,po,13,9,"div",15),h.YNc(5,go,2,1,"div",2),h.YNc(6,Io,12,6,"div",15),h.YNc(7,Eo,10,5,"div",15),h.YNc(8,No,16,11,"div",15),h.YNc(9,Lo,12,5,"div",15),h.YNc(10,Mo,19,7,"div",15),h.YNc(11,qo,5,4,"div",15),h.YNc(12,yo,5,4,"div",2),h.YNc(13,Jo,94,8,"div",15),h.qZA()),2&t){const t=h.oxw().$implicit;h.xp6(1),h.Q6J("ngIf",("TEXTFIELD"===t.type||"VALIDATED_EMAIL"===t.type||"USERNAME"===t.type)&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","FROM_FEDERATION_SHOW"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","PASSWORD"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","RADIO"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf",("HEADING"===t.type||"HTML_COMMENT"===t.type)&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","SELECTIONBOX"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","TEXTAREA"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","COMBOBOX"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","CHECKBOX"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","SUBMIT_BUTTON"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","AUTO_SUBMIT_BUTTON"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","TIMEZONE"===t.type&&"ALWAYS"!==t.hidden)}}function Fo(t,e){if(1&t&&(h.TgZ(0,"div"),h.YNc(1,Vo,14,13,"div",13),h.qZA()),2&t){const t=e.$implicit,i=h.oxw(2);h.xp6(1),h.Q6J("ngIf",i.isValid(t))}}function Qo(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div"),h.TgZ(1,"div",4),h.YNc(2,zi,5,3,"button",5),h.YNc(3,Xi,5,3,"button",5),h.TgZ(4,"mat-form-field"),h.TgZ(5,"mat-label"),h._uU(6),h.ALo(7,"translate"),h.qZA(),h.TgZ(8,"mat-select",6),h.NdJ("valueChange",function(e){return h.CHM(t),h.oxw().currentLanguage=e}),h.YNc(9,Wi,4,6,"mat-option",7),h.qZA(),h.qZA(),h.qZA(),h.TgZ(10,"div",8),h.YNc(11,Fo,2,1,"div",9),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.xp6(2),h.Q6J("ngIf",!t.initialPage),h.xp6(1),h.Q6J("ngIf",t.initialPage),h.xp6(3),h.Oqu(h.lcZ(7,6,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),h.xp6(2),h.Q6J("value",t.currentLanguage),h.xp6(1),h.Q6J("ngForOf",t.languages),h.xp6(2),h.Q6J("ngForOf",t.applicationFormItems)}}let ko=(()=>{class t{constructor(t,e,i){this.route=t,this.translate=e,this.store=i,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(t=>{this.applicationFormItems=JSON.parse(t.get("applicationFormItems")),this.loading=!1})}switchToInitial(){this.initialPage=!0}switchToExtension(){this.initialPage=!1}getLocalizedOptions(t){if(t.i18n[this.currentLanguage]){const e=t.i18n[this.currentLanguage].options;if(null!==e&&""!==e){const t=[];for(const i of e.split("|"))t.push(i.split("#")[1]);return t}}return[]}isValid(t){if(t.forDelete)return!1;for(const e of t.applicationTypes){if("INITIAL"===e&&this.initialPage)return!0;if("EXTENSION"===e&&!this.initialPage)return!0}return!1}disabledTooltip(t){let e,i,o;switch(t.disabled){case"ALWAYS":return this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.ALWAYS_DISABLED");case"IF_PREFILLED":return e=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.DISABLED_WHEN"),i=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(e=>e.id===t.disabledDependencyItemId).shortname,o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_PREFILLED"),`${e} ${i} ${o}`;case"IF_EMPTY":return e=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.DISABLED_WHEN"),i=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(e=>e.id===t.disabledDependencyItemId).shortname,o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_EMPTY"),`${e} ${i} ${o}`;default:return""}}hiddenTooltip(t){let e,i,o;switch(t.hidden){case"ALWAYS":return this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.ALWAYS_HIDDEN");case"IF_PREFILLED":return e=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.HIDDEN_WHEN"),i=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(e=>e.id===t.hiddenDependencyItemId).shortname,o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_PREFILLED"),`${e} ${i} ${o}`;case"IF_EMPTY":return e=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.HIDDEN_WHEN"),i=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(e=>e.id===t.hiddenDependencyItemId).shortname,o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_EMPTY"),`${e} ${i} ${o}`;default:return""}}getLocalizedLabel(t){return t.i18n[this.currentLanguage]&&t.i18n[this.currentLanguage].label?t.i18n[this.currentLanguage].label:t.shortname}getLocalizedHint(t){return t.i18n[this.currentLanguage]?t.i18n[this.currentLanguage].help:""}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(s.gz),h.Y36(S.sK),h.Y36(u.d6))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-application-form-preview"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.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","disabled","",1,"w-100"],["type","text",1,"mb-1","w-100",3,"disabled"],["type","reset",3,"disabled","value"],["type","radio","name","temp",3,"disabled"],[3,"innerHTML"],[1,"w-100",3,"disabled"],[1,"w-50",3,"disabled"],[1,"w-100",3,"ngModel","disabled","ngModelChange"],["value","true","selected",""],["value","false",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["value","false"],[1,"w-100"],["type","text"],["type","checkbox",3,"disabled"],["mat-flat-button","","color","accent",3,"disabled"],["class","pointer left",3,"matTooltip",4,"ngIf"],[1,"pointer","left",3,"matTooltip"],["name","timezone_offset","id","timezone-offset",1,"w-100",3,"disabled"],["value","-12:00","selected","selected"],["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"]],template:function(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.YNc(3,$i,1,0,"mat-spinner",1),h.YNc(4,Qo,12,8,"div",2)),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,3,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.TITLE"),"\n"),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,f.$g,fe.KE,fe.hX,Ee.gD,o.sg,b.lW,_e.ey,E.Hw,Z.gM,me._Y,me.JL,me.F,me.YN,me.Kr,me.EJ,me.JJ,me.On],pipes:[S.X$,o.gd],styles:[".left[_ngcontent-%COMP%]{margin-left:10px}.pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();function Bo(t,e){1&t&&(h._uU(0),h.ALo(1,"translate")),2&t&&h.hij(" ",h.lcZ(1,1,"MEMBER_DETAIL.ENTITY")," ")}function jo(t,e){if(1&t&&h._UZ(0,"app-one-entity-attribute-page",5),2&t){const t=h.oxw();h.Q6J("entity","member")("entityId",t.memberId)}}function Ho(t,e){1&t&&(h._uU(0),h.ALo(1,"translate"),h.ALo(2,"translate")),2&t&&h.AsE(" ",h.lcZ(1,2,"MEMBER_DETAIL.ENTITY")," - ",h.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function $o(t,e){if(1&t&&h._UZ(0,"app-two-entity-attribute-page",6),2&t){const t=h.oxw(2);h.Q6J("firstEntity","member")("firstEntityId",t.memberId)("secondEntity","group")}}function zo(t,e){1&t&&(h.TgZ(0,"mat-tab"),h.YNc(1,Ho,3,6,"ng-template",1),h.YNc(2,$o,1,3,"ng-template",2),h.qZA())}function Xo(t,e){1&t&&(h._uU(0),h.ALo(1,"translate"),h.ALo(2,"translate")),2&t&&h.AsE(" ",h.lcZ(1,2,"MEMBER_DETAIL.ENTITY")," - ",h.lcZ(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function Wo(t,e){if(1&t&&h._UZ(0,"app-two-entity-attribute-page",6),2&t){const t=h.oxw(2);h.Q6J("firstEntity","member")("firstEntityId",t.memberId)("secondEntity","resource")}}function Ko(t,e){1&t&&(h.TgZ(0,"mat-tab"),h.YNc(1,Xo,3,6,"ng-template",1),h.YNc(2,Wo,1,3,"ng-template",2),h.qZA())}function ts(t,e){1&t&&(h._uU(0),h.ALo(1,"translate")),2&t&&h.hij(" ",h.lcZ(1,1,"ADMIN_USER.ENTITY")," ")}function es(t,e){if(1&t&&h._UZ(0,"app-one-entity-attribute-page",7),2&t){const t=h.oxw();h.Q6J("entityId",t.member.userId)("entity","user")}}function is(t,e){1&t&&(h._uU(0),h.ALo(1,"translate"),h.ALo(2,"translate")),2&t&&h.AsE(" ",h.lcZ(1,2,"ADMIN_USER.ENTITY")," - ",h.lcZ(2,4,"FACILITY_DETAIL.ENTITY")," ")}function os(t,e){if(1&t&&h._UZ(0,"app-two-entity-attribute-page",6),2&t){const t=h.oxw(2);h.Q6J("firstEntity","user")("firstEntityId",t.member.userId)("secondEntity","facility")}}function ss(t,e){1&t&&(h.TgZ(0,"mat-tab"),h.YNc(1,is,3,6,"ng-template",1),h.YNc(2,os,1,3,"ng-template",2),h.qZA())}let as=(()=>{class t{constructor(t,e,i){this.route=t,this.authResolver=e,this.memberManager=i}ngOnInit(){this.route.parent.params.subscribe(t=>{this.memberId=t.memberId,this.memberManager.getMemberById(this.memberId).subscribe(t=>{this.member=t,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:t.userId}])})})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(s.gz),h.Y36(u.x4),h.Y36(l.uq))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-member-attributes"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:14,vars:6,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[1,"mb-2"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity"],[3,"entityId","entity"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"mat-tab-group"),h.TgZ(5,"mat-tab"),h.YNc(6,Bo,2,3,"ng-template",1),h.YNc(7,jo,1,2,"ng-template",2),h.qZA(),h.YNc(8,zo,3,0,"mat-tab",3),h.YNc(9,Ko,3,0,"mat-tab",3),h.TgZ(10,"mat-tab",4),h.YNc(11,ts,2,3,"ng-template",1),h.YNc(12,es,1,2,"ng-template",2),h.qZA(),h.YNc(13,ss,3,0,"mat-tab",3),h.qZA(),h.qZA()),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,4,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),h.xp6(6),h.Q6J("ngIf",e.memberGroupAttAuth),h.xp6(1),h.Q6J("ngIf",e.memberResourceAttAuth),h.xp6(4),h.Q6J("ngIf",e.userFacilityAttAuth))},directives:[Ui.SP,Ui.uX,Ui.uD,Ui.Vc,o.O5,ce.t,qi.Y],pipes:[S.X$],styles:[""]}),t})(),ns=(()=>{class t{constructor(t,e,i,o){this.sideMenuService=t,this.voService=e,this.authResolver=i,this.entityStorageService=o,this.items=[]}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.initItems()}initItems(){this.items=[{cssIcon:"perun-resource",url:`/organizations/${this.vo.id}/resources/preview`,label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",style:"vo-btn"}],this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[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.authResolver.isAuthorized("getResourcesState_Vo_policy",[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 t.\u0275fac=function(e){return new(e||t)(h.Y36(m.D),h.Y36(l.YF),h.Y36(u.x4),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-resources-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h._UZ(1,"perun-web-apps-menu-buttons-field",0),h.qZA()),2&t&&(h.xp6(1),h.Q6J("items",e.items)("size","small"))},directives:[B.L],styles:[""]}),t})();var rs=i(88227),ls=i(97397),cs=i(4230),us=i(24923);function ps(t,e){1&t&&h._UZ(0,"mat-spinner",6)}function ds(t,e){1&t&&h._UZ(0,"th",15)}function gs(t,e){if(1&t&&(h.TgZ(0,"td",16),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.hij(" ",t.tagName," ")}}function hs(t,e){1&t&&h._UZ(0,"tr",17)}function ms(t,e){1&t&&h._UZ(0,"tr",18)}function As(t,e){if(1&t&&(h.TgZ(0,"div",7),h.TgZ(1,"p"),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"div",8),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.TgZ(7,"table",9),h.ynx(8,10),h.YNc(9,ds,1,0,"th",11),h.YNc(10,gs,2,1,"td",12),h.BQk(),h.YNc(11,hs,1,0,"tr",13),h.YNc(12,ms,1,0,"tr",14),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.hij(" ",h.lcZ(3,5,"DIALOGS.DELETE_RESOURCE_TAG.DESCRIPTION")," "),h.xp6(3),h.hij(" ",h.lcZ(6,7,"DIALOGS.DELETE_RESOURCE_TAG.ASK")," "),h.xp6(2),h.Q6J("dataSource",t.dataSource),h.xp6(4),h.Q6J("matHeaderRowDef",t.displayedColumns),h.xp6(1),h.Q6J("matRowDefColumns",t.displayedColumns)}}let Is=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.resourceManager=i,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new nt.by(this.data.tagsForDelete)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;for(const t of this.data.tagsForDelete)this.resourceManager.deleteResourceTag({resourceTag:t}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.dialogRef.close(!0))}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(l.xk))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,ps,1,0,"mat-spinner",1),h.YNc(5,As,13,9,"div",2),h.TgZ(6,"div",3),h.TgZ(7,"button",4),h.NdJ("click",function(){return e.onCancel()}),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"button",5),h.NdJ("click",function(){return e.onSubmit()}),h._uU(11),h.ALo(12,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.Oqu(h.lcZ(3,9,"DIALOGS.DELETE_RESOURCE_TAG.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(9,11,"DIALOGS.DELETE_RESOURCE_TAG.CANCEL")," "),h.xp6(2),h.Q6J("disabled",e.loading),h.xp6(1),h.hij(" ",h.lcZ(12,13,"DIALOGS.DELETE_RESOURCE_TAG.SUBMIT")," "))},directives:[A.uh,o.O5,A.H8,b.lW,f.$g,A.xY,nt.BZ,nt.w1,nt.fO,nt.Dz,nt.as,nt.nj,nt.ge,nt.ev,nt.XQ,nt.Gk],pipes:[S.X$],styles:[""]}),t})();var Ts=i(60611),fs=i(59403),Es=i(19139),Zs=i(4196);function _s(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",7),h.NdJ("click",function(){return h.CHM(t),h.oxw().create()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function bs(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",8),h.NdJ("click",function(){return h.CHM(t),h.oxw().deleteTag()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("disabled",0===t.selection.selected.length),h.xp6(1),h.hij(" ",h.lcZ(2,2,"VO_DETAIL.RESOURCES.TAGS.DELETE_BUTTON"),"\n")}}function Ss(t,e){1&t&&h._UZ(0,"mat-spinner",9)}function Ns(t,e){if(1&t&&h._UZ(0,"app-resources-tags-list",10),2&t){const t=h.oxw();h.Q6J("selection",t.selection)("tableId",t.tableId)("resourceTags",t.resourceTag)("filterValue",t.filterValue)("displayedColumns",t.displayedColumns)("entity","vo")}}let Os=(()=>{class t{constructor(t,e,i,o,s,a){this.resourceManager=t,this.dialog=e,this.notificator=i,this.translator=o,this.authResolver=s,this.entityStorageService=a,this.loading=!1,this.resourceTag=[],this.selection=new cs.Ov(!0,[]),this.tableId=Ts.O7,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.updateData()}deleteTag(){const t=(0,c.kZ)();t.width="450px",t.data={tagsForDelete:this.selection.selected,theme:"vo-theme"},this.dialog.open(Is,t).afterClosed().subscribe(t=>{t&&(this.translator.get("VO_DETAIL.RESOURCES.TAGS.DELETE_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.updateData())})}create(){const t=(0,c.kZ)();t.width="450px",t.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(us.p,t).afterClosed().subscribe(t=>{t&&(this.translator.get("VO_DETAIL.RESOURCES.TAGS.CREATE_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.updateData())})}updateData(){this.loading=!0,this.selection.clear(),this.resourceManager.getAllResourcesTagsForVo(this.vo.id).subscribe(t=>{this.resourceTag=t,this.selection.clear(),this.setAuthRights(),this.loading=!1})}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")}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.xk),h.Y36(A.uw),h.Y36(u.V6),h.Y36(S.sK),h.Y36(u.x4),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-resources-tags"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["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,"selection","tableId","resourceTags","filterValue","displayedColumns","entity",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,"selection","tableId","resourceTags","filterValue","displayedColumns","entity"]],template:function(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"perun-web-apps-refresh-button",1),h.NdJ("refresh",function(){return e.updateData()}),h.qZA(),h.YNc(4,_s,3,3,"button",2),h.YNc(5,bs,3,4,"button",3),h.TgZ(6,"perun-web-apps-immediate-filter",4),h.NdJ("filter",function(t){return e.applyFilter(t)}),h.qZA(),h.YNc(7,Ss,1,0,"mat-spinner",5),h.YNc(8,Ns,1,6,"app-resources-tags-list",6)),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,6,"VO_DETAIL.RESOURCES.TAGS.TITLE")),h.xp6(3),h.Q6J("ngIf",e.createAuth),h.xp6(1),h.Q6J("ngIf",e.deleteAuth),h.xp6(1),h.Q6J("placeholder","VO_DETAIL.RESOURCES.TAGS.SEARCH"),h.xp6(1),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[fs.t,o.O5,Es.L,b.lW,f.$g,Zs.o],pipes:[S.X$],styles:[""]}),t})();function vs(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"app-expiration-settings",1),h.NdJ("saveAttribute",function(e){return h.CHM(t),h.oxw().saveExpirationAttribute(e)}),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("expirationAttribute",t.expirationAttribute)}}let xs=(()=>{class t{constructor(t,e,i,o,s){this.attributesManager=t,this.translate=e,this.notificator=i,this.apiRequest=o,this.entityStorageService=s,this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(t=>this.successMessage=t),this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(t=>this.errorMessage=t)}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.loadSettings()}loadSettings(){this.attributesManager.getGroupAttributeByName(this.group.id,p.r.GROUP_DEF_EXPIRATION_RULES).subscribe(t=>{this.expirationAttribute=t})}saveExpirationAttribute(t){this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setGroupAttribute({group:this.group.id,attribute:t}).subscribe(()=>{this.loadSettings(),this.notificator.showSuccess(this.successMessage)},t=>this.notificator.showRPCError(t.error,this.errorMessage))}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.H8),h.Y36(S.sK),h.Y36(u.V6),h.Y36(u.F5),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-settings-expiration"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(t,e){1&t&&h.YNc(0,vs,1,1,"app-expiration-settings",0),2&t&&h.Q6J("ngIf",void 0!==e.expirationAttribute)},directives:[o.O5,Pe],styles:[""]}),t})(),Ls=(()=>{class t{constructor(t,e){this.guiAuthResolver=t,this.entityStorageService=e,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 t.\u0275fac=function(e){return new(e||t)(h.Y36(u.x4),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-settings-managers"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:1,vars:4,consts:[[3,"complementaryObject","complementaryObjectType","theme","availableRoles"]],template:function(t,e){1&t&&h._UZ(0,"app-managers-page",0),2&t&&h.Q6J("complementaryObject",e.group)("complementaryObjectType",e.type)("theme",e.theme)("availableRoles",e.availableRoles)},directives:[Ye.s],styles:[""]}),t})();function Cs(t,e){1&t&&h._UZ(0,"mat-spinner",6)}function Rs(t,e){1&t&&h._UZ(0,"th",15)}function Ms(t,e){if(1&t&&(h.TgZ(0,"td",16),h._uU(1),h.qZA()),2&t){const t=e.$implicit,i=h.oxw(2);h.xp6(1),h.hij(" ",i.getMailType(t)," ")}}function Ds(t,e){1&t&&h._UZ(0,"tr",17)}function Us(t,e){1&t&&h._UZ(0,"tr",18)}function qs(t,e){if(1&t&&(h.TgZ(0,"div",7),h.TgZ(1,"p"),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"div",8),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.TgZ(7,"table",9),h.ynx(8,10),h.YNc(9,Rs,1,0,"th",11),h.YNc(10,Ms,2,1,"td",12),h.BQk(),h.YNc(11,Ds,1,0,"tr",13),h.YNc(12,Us,1,0,"tr",14),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.hij(" ",h.lcZ(3,5,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.DESCRIPTION")," "),h.xp6(3),h.hij(" ",h.lcZ(6,7,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CONFIRMATION")," "),h.xp6(2),h.Q6J("dataSource",t.dataSource),h.xp6(4),h.Q6J("matHeaderRowDef",t.displayedColumns),h.xp6(1),h.Q6J("matRowDefColumns",t.displayedColumns)}}let Ps=(()=>{class t{constructor(t,e,i,o,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=o,this.registrarService=s,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new nt.by(this.data.mails)}onCancel(){this.dialogRef.close(!1)}onSubmit(){if(this.loading=!0,this.data.groupId)for(const t of this.data.mails)this.registrarService.deleteApplicationMailForGroup(this.data.groupId,t.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1);else for(const t of this.data.mails)this.registrarService.deleteApplicationMailForVo(this.data.voId,t.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}getMailType(t){let e="";return null==t.mailType||""===t.mailType?e="":this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_"+t.mailType).subscribe(t=>{e=t}),e}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(u.V6),h.Y36(S.sK),h.Y36(l.tk))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,Cs,1,0,"mat-spinner",1),h.YNc(5,qs,13,9,"div",2),h.TgZ(6,"div",3),h.TgZ(7,"button",4),h.NdJ("click",function(){return e.onCancel()}),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"button",5),h.NdJ("click",function(){return e.onSubmit()}),h._uU(11),h.ALo(12,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.Oqu(h.lcZ(3,9,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(9,11,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CANCEL")," "),h.xp6(2),h.Q6J("disabled",e.loading),h.xp6(1),h.hij(" ",h.lcZ(12,13,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.SUBMIT")," "))},directives:[A.uh,o.O5,A.H8,b.lW,f.$g,A.xY,nt.BZ,nt.w1,nt.fO,nt.Dz,nt.as,nt.nj,nt.ge,nt.ev,nt.XQ,nt.Gk],pipes:[S.X$],styles:[""]}),t})();var ws=i(10901);function ys(t,e){1&t&&h._UZ(0,"mat-spinner",7)}function Gs(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",8),h.TgZ(1,"div"),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"mat-form-field"),h.TgZ(5,"textarea",9),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().mailFooter=e}),h.qZA(),h.qZA(),h.TgZ(6,"div",10),h._uU(7),h.ALo(8,"translate"),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.xp6(2),h.hij(" ",h.lcZ(3,4,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.LABEL"),": "),h.xp6(3),h.Q6J("cdkTextareaAutosize",!0)("ngModel",t.mailFooter),h.xp6(2),h.Oqu(h.lcZ(8,6,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.DESCRIPTION"))}}let Ys=(()=>{class t{constructor(t,e,i,o,s){this.dialogRef=t,this.attributesManager=e,this.translateService=i,this.notificator=o,this.data=s,this.mailFooter="",this.loading=!1}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.data.groupId?this.attributesManager.setGroupAttribute({group:this.data.groupId,attribute:this.mailAttribute}).subscribe(()=>{this.notificateSuccess(),this.dialogRef.close()},()=>this.loading=!1):this.attributesManager.setVoAttribute({vo:this.data.voId,attribute:this.mailAttribute}).subscribe(()=>{this.notificateSuccess(),this.dialogRef.close()},()=>this.loading=!1)}cancel(){this.dialogRef.close()}getFooterForVo(){this.attributesManager.getVoAttributeByName(this.data.voId,p.r.VO_DEF_MAIL_FOOTER).subscribe(t=>{this.mailAttribute=t,this.editAuth=this.mailAttribute.writable,this.mailFooter=t.value?t.value:""})}getFooterForGroup(){this.attributesManager.getGroupAttributeByName(this.data.groupId,p.r.GROUP_DEF_MAIL_FOOTER).subscribe(t=>{this.mailAttribute=t,this.editAuth=this.mailAttribute.writable,this.mailFooter=t.value?t.value:""})}notificateSuccess(){this.translateService.get("DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close()})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(l.H8),h.Y36(S.sK),h.Y36(u.V6),h.Y36(A.WI))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-edit-email-footer-dialog"]],decls:15,vars:20,consts:[["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"],[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"],["matInput","",3,"cdkTextareaAutosize","ngModel","ngModelChange"],[1,"mt-2","font-italic","text-muted"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,ys,1,0,"mat-spinner",1),h.YNc(5,Gs,9,8,"div",2),h.TgZ(6,"div",3),h.TgZ(7,"button",4),h.NdJ("click",function(){return e.cancel()}),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"div",5),h.ALo(11,"translate"),h.TgZ(12,"button",6),h.NdJ("click",function(){return e.submit()}),h._uU(13),h.ALo(14,"translate"),h.qZA(),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.Oqu(h.lcZ(3,12,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(9,14,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.CANCEL_BUTTON")," "),h.xp6(2),h.s9C("matTooltip",h.lcZ(11,16,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.HINT")),h.Q6J("matTooltipDisabled",e.editAuth)("matTooltipPosition","above"),h.xp6(2),h.Q6J("disabled",e.loading||!e.editAuth),h.xp6(1),h.hij(" ",h.lcZ(14,18,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUBMIT_BUTTON")," "))},directives:[A.uh,o.O5,A.H8,b.lW,Z.gM,f.$g,A.xY,fe.KE,Ze.Nt,ws.IC,me.Fj,me.JJ,me.On],pipes:[S.X$],styles:[""]}),t})();var Js=i(4253);function Vs(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div"),h.TgZ(1,"div",1),h.TgZ(2,"button",2),h.NdJ("click",function(){const e=h.CHM(t).$implicit;return h.oxw().addTag("{"+e[0]+"}")}),h.ALo(3,"translate"),h._uU(4),h.qZA(),h.TgZ(5,"span",3),h._uU(6),h.ALo(7,"translate"),h.qZA(),h.qZA(),h._UZ(8,"mat-divider",4),h.qZA()}if(2&t){const t=e.$implicit;h.xp6(2),h.s9C("matTooltip",h.lcZ(3,3,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TAG_HINT")),h.xp6(2),h.hij(" ",t[0]," "),h.xp6(2),h.hij(" ",h.lcZ(7,5,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL."+t[1])," ")}}let Fs=(()=>{class t{constructor(){this.tags=[],this.addedTag=new h.vpe}addTag(t){this.addedTag.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-tag-section"]],inputs:{tags:"tags"},outputs:{addedTag:"addedTag"},decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[1,"d-flex","flex-row"],["matTooltipPosition","above","mat-flat-button","",1,"tag-text","w-25",3,"matTooltip","click"],[1,"w-75"],[1,"mt-1","mb-1"]],template:function(t,e){1&t&&h.YNc(0,Vs,9,7,"div",0),2&t&&h.Q6J("ngForOf",e.tags)},directives:[o.sg,b.lW,Z.gM,oi.d],pipes:[S.X$],styles:[".tag-text[_ngcontent-%COMP%]{font-size:.9rem;font-weight:700}"]}),t})(),Qs=(()=>{class t{constructor(){this.addedTag=new h.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 t=[];t.push(["appId","APPID_DESCRIPTION"]),t.push(["actor","ACTOR_DESCRIPTION"]),t.push(["extSource","EXTSOURCE_DESCRIPTION"]),t.push(["voName","VONAME_DESCRIPTION"]),t.push(["groupName","GROUPNAME_DESCRIPTION"]),t.push(["mailFooter","MAILFOOTER_DESCRIPTION"]),t.push(["errors","ERRORS_DESCRIPTION"]),t.push(["customMessage","CUSTOMMESSAGE_DESCRIPTION"]),t.push(["fromApp-itemName","FROMAPPITEMNAME_DESCRIPTION"]),this.applicationRelatedTags=t}getUserRelatedTags(){const t=[];t.push(["firstName","FIRSTNAME_DESCRIPTION"]),t.push(["lastName","LASTNAME_DESCRIPTION"]),t.push(["displayName","DISPLAYNAME_DESCRIPTION"]),t.push(["mail","MAIL_DESCRIPTION"]),t.push(["phone","PHONE_DESCRIPTION"]),t.push(["login-namespace","LOGINNAMESPACE_DESCRIPTION"]),t.push(["membershipExpiration","MEMBERSHIPEXPIRATION_DESCRIPTION"]),this.userRelatedTags=t}getValidationLinksUsersTags(){const t=[];t.push(["validationLink","VALIDATIONLINK_DESCRIPTION"]),t.push(["validationLink-krb","VALIDATIONKRB_DESCRIPTION"]),t.push(["validationLink-fed","VALIDATIONFED_DESCRIPTION"]),t.push(["validationLink-cert","VALIDATIONCERT_DESCRIPTION"]),t.push(["validationLink-non","VALIDATIONNON_DESCRIPTION"]),t.push(["redirectUrl","REDIRECTURL_DESCRIPTION"]),this.validationLinksUsersTags=t}getApplicationLinksUsersTags(){const t=[];t.push(["appGuiUrl","APPGUIURL_DESCRIPTION"]),t.push(["appGuiUrl-krb","APPGUIURLKRB_DESCRIPTION"]),t.push(["appGuiUrl-fed","APPGUIURLFED_DESCRIPTION"]),t.push(["appGuiUrl-cert","APPGUIURLCERT_DESCRIPTION"]),t.push(["appGuiUrl-non","APPGUIURLNON_DESCRIPTION"]),this.applicationLinksUsersTags=t}getApplicationLinksAdministratorsTags(){const t=[];t.push(["appDetailUrl","APPDETAILURL_DESCRIPTION"]),t.push(["appDetailUrl-krb","APPDETAILURLKRB_DESCRIPTION"]),t.push(["appDetailUrl-fed","APPDETAILURLFED_DESCRIPTION"]),t.push(["appDetailUrl-cert","APPDETAILURLCERT_DESCRIPTION"]),this.applicationLinksAdministratorsTags=t}getPerunLinksAdministratorsTags(){const t=[];t.push(["perunGuiUrl","PERUNGUIURL_DESCRIPTION"]),t.push(["perunGuiUrl-krb","PERUNGUIURLKRB_DESCRIPTION"]),t.push(["perunGuiUrl-fed","PERUNGUIURLFED_DESCRIPTION"]),t.push(["perunGuiUrl-cert","PERUNGUIURLCERT_DESCRIPTION"]),this.perunLinksAdministratorsTags=t}getUserInvitationsTags(){const t=[];t.push(["voName","USER_INVITATIONS_VONAME_DESCRIPTION"]),t.push(["groupName","USER_INVITATIONS_GROUPNAME_DESCRIPTION"]),t.push(["displayName","USER_INVITATIONS_DISPLAYNAME_DESCRIPTION"]),t.push(["mailFooter","USER_INVITATIONS_MAILFOOTER_DESCRIPTION"]),t.push(["invitationLink","INVITATIONLINK_DESCRIPTION"]),t.push(["invitationLink-krb","INVITATIONLINKKRB_DESCRIPTION"]),t.push(["invitationLink-fed","INVITATIONLINKFED_DESCRIPTION"]),t.push(["invitationLink-cert","INVITATIONLINKCERT_DESCRIPTION"]),t.push(["invitationLink-non","INVITATIONLINKNON_DESCRIPTION"]),this.userInvitationsTags=t}addTag(t){this.addedTag.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=h.Xpm({type:t,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(t,e){1&t&&(h.TgZ(0,"app-alert",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"div",1),h.TgZ(4,"div",2),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.TgZ(7,"app-tag-section",3),h.NdJ("addedTag",function(t){return e.addTag(t)}),h.qZA(),h.TgZ(8,"div",4),h._uU(9),h.ALo(10,"translate"),h.qZA(),h.TgZ(11,"app-tag-section",3),h.NdJ("addedTag",function(t){return e.addTag(t)}),h.qZA(),h.TgZ(12,"div",4),h._uU(13),h.ALo(14,"translate"),h.qZA(),h.TgZ(15,"div",5),h._uU(16),h.ALo(17,"translate"),h.qZA(),h.TgZ(18,"app-tag-section",3),h.NdJ("addedTag",function(t){return e.addTag(t)}),h.qZA(),h.TgZ(19,"div",4),h._uU(20),h.ALo(21,"translate"),h.qZA(),h.TgZ(22,"div",5),h._uU(23),h.ALo(24,"translate"),h.qZA(),h.TgZ(25,"app-tag-section",3),h.NdJ("addedTag",function(t){return e.addTag(t)}),h.qZA(),h.TgZ(26,"div",4),h._uU(27),h.ALo(28,"translate"),h.qZA(),h.TgZ(29,"div",5),h._uU(30),h.ALo(31,"translate"),h.qZA(),h.TgZ(32,"app-tag-section",3),h.NdJ("addedTag",function(t){return e.addTag(t)}),h.qZA(),h.TgZ(33,"div",4),h._uU(34),h.ALo(35,"translate"),h.qZA(),h.TgZ(36,"div",5),h._uU(37),h.ALo(38,"translate"),h.qZA(),h.TgZ(39,"app-tag-section",3),h.NdJ("addedTag",function(t){return e.addTag(t)}),h.qZA(),h.TgZ(40,"div",4),h._uU(41),h.ALo(42,"translate"),h.qZA(),h.TgZ(43,"div",5),h._uU(44),h.ALo(45,"translate"),h.qZA(),h.TgZ(46,"app-tag-section",3),h.NdJ("addedTag",function(t){return e.addTag(t)}),h.qZA(),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,20,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TAGS_DESCRIPTION"),"\n"),h.xp6(4),h.hij("",h.lcZ(6,22,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_RELATED_SECTION"),":"),h.xp6(2),h.Q6J("tags",e.applicationRelatedTags),h.xp6(2),h.hij("",h.lcZ(10,24,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_RELATED_SECTION"),":"),h.xp6(2),h.Q6J("tags",e.userRelatedTags),h.xp6(2),h.hij("",h.lcZ(14,26,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_USERS_SECTION"),":"),h.xp6(3),h.hij(" ",h.lcZ(17,28,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_DESCRIPTION")," "),h.xp6(2),h.Q6J("tags",e.validationLinksUsersTags),h.xp6(2),h.hij("",h.lcZ(21,30,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_USERS_SECTION"),":"),h.xp6(3),h.hij(" ",h.lcZ(24,32,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_DESCRIPTION")," "),h.xp6(2),h.Q6J("tags",e.applicationLinksUsersTags),h.xp6(2),h.hij("",h.lcZ(28,34,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_SECTION"),":"),h.xp6(3),h.hij(" ",h.lcZ(31,36,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_DESCRIPTION")," "),h.xp6(2),h.Q6J("tags",e.applicationLinksAdministratorsTags),h.xp6(2),h.hij("",h.lcZ(35,38,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_SECTION"),":"),h.xp6(3),h.hij(" ",h.lcZ(38,40,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_DESCRIPTION")," "),h.xp6(2),h.Q6J("tags",e.perunLinksAdministratorsTags),h.xp6(2),h.hij("",h.lcZ(42,42,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_SECTION"),":"),h.xp6(3),h.hij(" ",h.lcZ(45,44,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_DESCRIPTION")," "),h.xp6(2),h.Q6J("tags",e.userInvitationsTags))},directives:[dt.w,Js.PQ,Fs],pipes:[S.X$],styles:[".scrollable[_ngcontent-%COMP%]{height:370px;overflow:auto}"]}),t})();function ks(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",9),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.qZA()),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_CREATE")))}function Bs(t,e){1&t&&(h.TgZ(0,"h1",9),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_EDIT")))}function js(t,e){1&t&&h._UZ(0,"mat-spinner",10)}function Hs(t,e){1&t&&(h.TgZ(0,"mat-option",37),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APPROVABLE_GROUP_APP_USER")," "))}function $s(t,e){1&t&&(h.TgZ(0,"div",35),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_EDIT")," "))}function zs(t,e){1&t&&(h.TgZ(0,"div",35),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_CREATE")," "))}function Xs(t,e){1&t&&(h.TgZ(0,"mat-option",38),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EXTENSION")," "))}function Ws(t,e){1&t&&(h.TgZ(0,"div",35),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_EDIT")," "))}function Ks(t,e){1&t&&(h.TgZ(0,"div",35),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_CREATE")," "))}function ta(t,e){1&t&&h._UZ(0,"mat-divider",52)}function ea(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",40),h.TgZ(1,"div",41),h.TgZ(2,"div",42),h.TgZ(3,"button",43),h.NdJ("click",function(){h.CHM(t);const e=h.oxw(3);return e.showTags=!e.showTags}),h._uU(4),h.ALo(5,"translate"),h.ALo(6,"translate"),h.qZA(),h.TgZ(7,"span",44),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"mat-form-field",18),h.TgZ(11,"input",45,46),h.NdJ("focus",function(){return h.CHM(t),h.oxw(3).isTextFocused=!1})("ngModelChange",function(e){h.CHM(t);const i=h.oxw().$implicit;return h.oxw(2).applicationMail.message[i].subject=e}),h.qZA(),h.qZA(),h.qZA(),h.TgZ(13,"div",47),h._uU(14),h.ALo(15,"translate"),h.qZA(),h.TgZ(16,"mat-form-field",18),h.TgZ(17,"textarea",48,49),h.NdJ("focus",function(){return h.CHM(t),h.oxw(3).isTextFocused=!0})("ngModelChange",function(e){h.CHM(t);const i=h.oxw().$implicit;return h.oxw(2).applicationMail.message[i].text=e}),h._uU(19," "),h.qZA(),h.qZA(),h.qZA(),h.YNc(20,ta,1,0,"mat-divider",50),h.TgZ(21,"div"),h.TgZ(22,"app-tag-bar",51),h.NdJ("addedTag",function(e){h.CHM(t);const i=h.MAs(12),o=h.MAs(18),s=h.oxw().$implicit;return h.oxw(2).addTag(i,o,s,e)}),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw().$implicit,e=h.oxw(2);h.xp6(4),h.hij(" ",e.showTags?h.lcZ(5,7,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.HIDE_TAGS"):h.lcZ(6,9,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SHOW_TAGS")," "),h.xp6(4),h.hij(" ",h.lcZ(9,11,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SUBJECT"),": "),h.xp6(3),h.Q6J("ngModel",e.applicationMail.message[t].subject),h.xp6(3),h.hij(" ",h.lcZ(15,13,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TEXT"),": "),h.xp6(3),h.Q6J("ngModel",e.applicationMail.message[t].text),h.xp6(3),h.Q6J("ngIf",e.showTags),h.xp6(1),h.Q6J("@tagsOpenClose",e.showTags?"open":"closed")}}function ia(t,e){1&t&&(h.TgZ(0,"mat-tab",14),h.ALo(1,"translate"),h.ALo(2,"uppercase"),h.YNc(3,ea,23,15,"ng-template",39),h.qZA()),2&t&&h.s9C("label",h.lcZ(1,1,h.lcZ(2,3,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.LANG_"+e.$implicit)))}function oa(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",11),h.TgZ(1,"div"),h.TgZ(2,"app-alert",12),h._uU(3),h.ALo(4,"translate"),h.qZA(),h.qZA(),h.TgZ(5,"mat-tab-group",13),h.TgZ(6,"mat-tab",14),h.ALo(7,"translate"),h.TgZ(8,"div",15),h.TgZ(9,"span",16),h._uU(10),h.ALo(11,"translate"),h.qZA(),h.TgZ(12,"div",17),h.TgZ(13,"mat-form-field",18),h.TgZ(14,"mat-select",19),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().applicationMail.mailType=e})("selectionChange",function(){return h.CHM(t),h.oxw().notificationExist()}),h.TgZ(15,"mat-option",20),h._uU(16),h.ALo(17,"translate"),h.qZA(),h.YNc(18,Hs,3,3,"mat-option",21),h.TgZ(19,"mat-option",22),h._uU(20),h.ALo(21,"translate"),h.qZA(),h.TgZ(22,"mat-option",23),h._uU(23),h.ALo(24,"translate"),h.qZA(),h.TgZ(25,"mat-option",24),h._uU(26),h.ALo(27,"translate"),h.qZA(),h.TgZ(28,"mat-option",25),h._uU(29),h.ALo(30,"translate"),h.qZA(),h.TgZ(31,"mat-option",26),h._uU(32),h.ALo(33,"translate"),h.qZA(),h.TgZ(34,"mat-option",27),h._uU(35),h.ALo(36,"translate"),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(37,"div",28),h._UZ(38,"span",29),h.YNc(39,$s,3,3,"div",30),h.YNc(40,zs,3,3,"div",30),h.qZA(),h.TgZ(41,"div",15),h.TgZ(42,"span",31),h._uU(43),h.ALo(44,"translate"),h.qZA(),h.TgZ(45,"div",17),h.TgZ(46,"mat-form-field",18),h.TgZ(47,"mat-select",19),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().applicationMail.appType=e})("selectionChange",function(){return h.CHM(t),h.oxw().notificationExist()}),h.TgZ(48,"mat-option",32),h._uU(49),h.ALo(50,"translate"),h.qZA(),h.YNc(51,Xs,3,3,"mat-option",33),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(52,"div",28),h._UZ(53,"span",29),h.YNc(54,Ws,3,3,"div",30),h.YNc(55,Ks,3,3,"div",30),h.qZA(),h.TgZ(56,"div",15),h.TgZ(57,"span",31),h._uU(58),h.ALo(59,"translate"),h.qZA(),h.TgZ(60,"div",17),h.TgZ(61,"mat-checkbox",34),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().applicationMail.send=e}),h.qZA(),h.qZA(),h.qZA(),h.TgZ(62,"div",28),h._UZ(63,"span",29),h.TgZ(64,"div",35),h._uU(65),h.ALo(66,"translate"),h.qZA(),h.qZA(),h.qZA(),h.YNc(67,ia,4,5,"mat-tab",36),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.xp6(1),h.Q6J("@openClose",t.invalidNotification?"open":"closed"),h.xp6(2),h.Oqu(h.lcZ(4,27,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INVALID_NOTIFICATION")),h.xp6(3),h.s9C("label",h.lcZ(7,29,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.BASIC_SETTINGS")),h.xp6(4),h.hij("",h.lcZ(11,31,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE")," :"),h.xp6(4),h.Q6J("ngModel",t.applicationMail.mailType)("disabled",!t.data.createMailNotification),h.xp6(2),h.hij(" ",h.lcZ(17,33,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_USER")," "),h.xp6(2),h.Q6J("ngIf",t.data.groupId),h.xp6(2),h.hij(" ",h.lcZ(21,35,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_VO_ADMIN")," "),h.xp6(3),h.hij(" ",h.lcZ(24,37,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_MAIL_VALIDATION")," "),h.xp6(3),h.hij(" ",h.lcZ(27,39,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_APPROVED_USER")," "),h.xp6(3),h.hij(" ",h.lcZ(30,41,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_REJECTED_USER")," "),h.xp6(3),h.hij(" ",h.lcZ(33,43,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_ERROR_VO_ADMIN")," "),h.xp6(3),h.hij(" ",h.lcZ(36,45,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_USER_INVITE")," "),h.xp6(4),h.Q6J("ngIf",!t.data.createMailNotification),h.xp6(1),h.Q6J("ngIf",t.data.createMailNotification),h.xp6(3),h.hij("",h.lcZ(44,47,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE")," :"),h.xp6(4),h.Q6J("ngModel",t.applicationMail.appType)("disabled",!t.data.createMailNotification),h.xp6(2),h.hij(" ",h.lcZ(50,49,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INITIAL")," "),h.xp6(2),h.Q6J("ngIf","USER_INVITE"!==t.applicationMail.mailType),h.xp6(3),h.Q6J("ngIf",!t.data.createMailNotification),h.xp6(1),h.Q6J("ngIf",t.data.createMailNotification),h.xp6(3),h.hij("",h.lcZ(59,51,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED")," :"),h.xp6(3),h.Q6J("ngModel",t.applicationMail.send),h.xp6(4),h.hij(" ",h.lcZ(66,53,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED_DESCRIPTION")," "),h.xp6(2),h.Q6J("ngForOf",t.languages)}}function sa(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",53),h.NdJ("click",function(){return h.CHM(t),h.oxw().create()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("disabled",t.invalidNotification||t.loading),h.xp6(1),h.hij(" ",h.lcZ(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CREATE_BUTTON")," ")}}function aa(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",53),h.NdJ("click",function(){return h.CHM(t),h.oxw().save()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("disabled",t.loading||!t.editAuth),h.xp6(1),h.hij(" ",h.lcZ(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SAVE_BUTTON")," ")}}let na=(()=>{class t{constructor(t,e,i,o,s,a){this.dialogRef=t,this.registrarService=e,this.data=i,this.authResolver=o,this.groupsService=s,this.store=a,this.showTags=!1,this.isTextFocused=!0,this.invalidNotification=!1,this.loading=!1,this.languages=["en"]}ngOnInit(){this.languages=this.store.get("supported_languages"),this.applicationMail=this.data.applicationMail,this.theme=this.data.theme,this.data.groupId?this.groupsService.getGroupById(this.data.groupId).subscribe(t=>{this.editAuth=this.authResolver.isAuthorized("group-addMail_ApplicationForm_ApplicationMail_policy",[t])}):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(t,e,i,o){let s;s=this.isTextFocused?e:t;const a=s.selectionStart;this.isTextFocused?this.applicationMail.message[i].text=this.applicationMail.message[i].text.substring(0,a)+o+this.applicationMail.message[i].text.substring(a):this.applicationMail.message[i].subject=this.applicationMail.message[i].subject.substring(0,a)+o+this.applicationMail.message[i].subject.substring(a),s.focus()}notificationExist(){for(const t of this.data.applicationMails)if(t.mailType===this.applicationMail.mailType&&t.appType===this.applicationMail.appType)return void(this.invalidNotification=!0);this.invalidNotification=!1}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(l.tk),h.Y36(A.WI),h.Y36(u.x4),h.Y36(l.ff),h.Y36(u.d6))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","class","ml-2","color","accent",3,"disabled","click",4,"ngIf"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["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",""],[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"],["matInput","",3,"ngModel","focus","ngModelChange"],["Input",""],[1,"font-weight-bold"],["matInput","","rows","17",3,"ngModel","focus","ngModelChange"],["Textarea",""],["class","ml-3 mr-3","vertical","true",4,"ngIf"],[3,"addedTag"],["vertical","true",1,"ml-3","mr-3"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"div",0),h.YNc(2,ks,4,3,"div",1),h.YNc(3,Bs,3,3,"ng-template",null,2,h.W1O),h.YNc(5,js,1,0,"mat-spinner",3),h.YNc(6,oa,68,55,"div",4),h.TgZ(7,"div",5),h.TgZ(8,"button",6),h.NdJ("click",function(){return e.cancel()}),h._uU(9),h.ALo(10,"translate"),h.qZA(),h.YNc(11,sa,3,4,"button",7),h.TgZ(12,"div",8),h.ALo(13,"translate"),h.YNc(14,aa,3,4,"button",7),h.qZA(),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.MAs(4);h.Gre("",e.theme," h-100"),h.xp6(2),h.Q6J("ngIf",e.data.createMailNotification)("ngIfElse",t),h.xp6(3),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(10,13,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CANCEL_BUTTON")," "),h.xp6(2),h.Q6J("ngIf",e.data.createMailNotification),h.xp6(1),h.s9C("matTooltip",h.lcZ(13,15,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EDIT_HINT")),h.Q6J("matTooltipPosition","above")("matTooltipDisabled",e.editAuth),h.xp6(2),h.Q6J("ngIf",!e.data.createMailNotification)}},directives:[o.O5,A.H8,b.lW,Z.gM,A.uh,f.$g,A.xY,dt.w,Ui.SP,Ui.uX,fe.KE,Ee.gD,me.JJ,me.On,_e.ey,be.oG,o.sg,Ui.Vc,Ze.Nt,me.Fj,Qs,oi.d],pipes:[S.X$,o.gd],styles:[".right-button[_ngcontent-%COMP%]{display:block;margin-left:auto}"],data:{animation:[r.es,r.BQ]}}),t})();var ra=i(19386);function la(t,e){1&t&&h._UZ(0,"mat-spinner",9)}let ca=(()=>{class t{constructor(t,e,i,o,s,a){this.dialogRef=t,this.voService=e,this.groupService=i,this.translateService=o,this.registrarService=s,this.data=a,this.vos=[],this.groups=[],this.selectedVo=null,this.selectedGroup=null,this.loading=!1,this.nameFunction=t=>t.name}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.translateService.get("DIALOGS.NOTIFICATIONS_COPY_MAILS.NO_GROUP_SELECTED").subscribe(t=>{this.fakeGroup={id:-1,name:t,voId:0,parentGroupId:0,shortName:"",description:"",beanName:"group"},this.selectedGroup=this.fakeGroup,this.voService.getAllVos().subscribe(t=>{this.vos=t,this.vos=t.sort((t,e)=>t.name>e.name?1:t.namethis.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(t){this.selectedVo=t,this.getGroups()}getGroups(){null!==this.selectedVo?this.groupService.getAllGroups(this.selectedVo.id).subscribe(t=>{this.groups=[this.fakeGroup].concat(t)}):this.groups=[this.fakeGroup]}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(l.YF),h.Y36(l.ff),h.Y36(S.sK),h.Y36(l.tk),h.Y36(A.WI))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,la,1,0,"mat-spinner",1),h.TgZ(5,"div",2),h.TgZ(6,"div",3),h._uU(7),h.ALo(8,"translate"),h.qZA(),h._uU(9),h.ALo(10,"translate"),h.TgZ(11,"perun-web-apps-vo-search-select",4),h.NdJ("voSelected",function(t){return e.voSelected(t)}),h.qZA(),h._uU(12),h.ALo(13,"translate"),h.TgZ(14,"perun-web-apps-group-search-select",5),h.NdJ("groupSelected",function(t){return e.selectedGroup=t}),h.qZA(),h.qZA(),h.TgZ(15,"div",6),h.TgZ(16,"button",7),h.NdJ("click",function(){return e.cancel()}),h._uU(17),h.ALo(18,"translate"),h.qZA(),h.TgZ(19,"button",8),h.NdJ("click",function(){return e.submit()}),h._uU(20),h.ALo(21,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.Oqu(h.lcZ(3,15,"DIALOGS.NOTIFICATIONS_COPY_MAILS.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("hidden",e.loading),h.xp6(2),h.Oqu(h.lcZ(8,17,"DIALOGS.NOTIFICATIONS_COPY_MAILS.DESCRIPTION")),h.xp6(2),h.hij(" ",h.lcZ(10,19,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SOURCE_VO"),": "),h.xp6(2),h.Q6J("vos",e.vos),h.xp6(1),h.hij(" ",h.lcZ(13,21,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SOURCE_GROUP"),": "),h.xp6(2),h.Q6J("groups",e.groups)("disableAutoSelect",!0),h.xp6(3),h.hij(" ",h.lcZ(18,23,"DIALOGS.NOTIFICATIONS_COPY_MAILS.CANCEL_BUTTON")," "),h.xp6(2),h.Q6J("disabled",null===e.selectedVo||null===e.selectedGroup||e.loading),h.xp6(1),h.hij(" ",h.lcZ(21,25,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SUBMIT_BUTTON")," "))},directives:[A.uh,o.O5,A.xY,ra.M,pt.h,A.H8,b.lW,f.$g],pipes:[S.X$],styles:[""],data:{animation:[r.BQ]}}),t})();var ua=i(58623),pa=i(82819);function da(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"th",16),h.TgZ(1,"mat-checkbox",17),h.NdJ("change",function(e){h.CHM(t);const i=h.oxw();return e?i.masterToggle():null}),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.xp6(1),h.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function ga(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"td",18),h.TgZ(1,"mat-checkbox",19),h.NdJ("change",function(e){const i=h.CHM(t).$implicit,o=h.oxw();return e?o.toggle(i):null})("click",function(t){return t.stopPropagation()}),h.qZA(),h.qZA()}if(2&t){const t=e.$implicit,i=h.oxw();h.xp6(1),h.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function ha(t,e){1&t&&(h.TgZ(0,"th",20),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_EMAIL_ID")," "))}function ma(t,e){if(1&t&&(h.TgZ(0,"td",21),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.Oqu(t.id)}}function Aa(t,e){1&t&&(h.TgZ(0,"th",20),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_EMAIL_TYPE")," "))}function Ia(t,e){if(1&t&&(h.TgZ(0,"td",22),h._uU(1),h.qZA()),2&t){const t=e.$implicit,i=h.oxw();h.xp6(1),h.Oqu(i.getMailType(t))}}function Ta(t,e){1&t&&(h.TgZ(0,"th",20),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE")," "))}function fa(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"mat-icon",25),h._uU(2,"arrow_right_alt"),h.qZA(),h._uU(3),h.ALo(4,"translate"),h.qZA()),2&t&&(h.xp6(3),h.hij(" ",h.lcZ(4,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE_INITIAL")," "))}function Ea(t,e){1&t&&(h.TgZ(0,"mat-icon",26),h._uU(1,"cached"),h.qZA(),h._uU(2),h.ALo(3,"translate")),2&t&&(h.xp6(2),h.hij(" ",h.lcZ(3,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE_EXTENSION")," "))}function Za(t,e){if(1&t&&(h.TgZ(0,"td",22),h.YNc(1,fa,5,3,"div",23),h.YNc(2,Ea,4,3,"ng-template",null,24,h.W1O),h.qZA()),2&t){const t=e.$implicit,i=h.MAs(3);h.xp6(1),h.Q6J("ngIf","INITIAL"===t.appType)("ngIfElse",i)}}function _a(t,e){1&t&&(h.TgZ(0,"th",20),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_SENDING_ENABLED")," "))}function ba(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"td",22),h.TgZ(1,"section"),h.TgZ(2,"mat-checkbox",27),h.NdJ("change",function(){const e=h.CHM(t).$implicit;return h.oxw().changeSending(e)})("click",function(t){return t.stopPropagation()}),h.ALo(3,"translate"),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=e.$implicit,i=h.oxw();h.xp6(2),h.s9C("matTooltip",h.lcZ(3,4,"VO_DETAIL.SETTINGS.NOTIFICATIONS.DISABLED_HINT")),h.Q6J("disabled",i.disableSend)("matTooltipDisabled",!i.disableSend)("ngModel",t.send)}}function Sa(t,e){1&t&&h._UZ(0,"tr",28)}function Na(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"tr",29),h.NdJ("click",function(){const e=h.CHM(t).$implicit;return h.oxw().openApplicationMailDetail(e)}),h.qZA()}2&t&&h.ekj("cursor-pointer",!0)}function Oa(t,e){1&t&&(h.TgZ(0,"app-alert",30),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.NO_EMAILS"),"\n"))}let va=(()=>{class t{constructor(t,e,i,o,s,a){this.registrarService=t,this.translate=e,this.notificator=i,this.dialog=o,this.authResolver=s,this.tableCheckbox=a,this.displayedColumns=["select","id","mailType","appType","send"],this.disableSend=!1,this.selection=new cs.Ov(!0,[]),this.selectionChange=new h.vpe,this.pageSizeOptions=c.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new nt.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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}changeSending(t){t.send?this.registrarService.setSendingEnabled({mails:[t],enabled:!1}).subscribe(()=>{t.send=!1}):this.registrarService.setSendingEnabled({mails:[t],enabled:!0}).subscribe(()=>{t.send=!0})}openApplicationMailDetail(t){const e=(0,c.kZ)();e.width="1400px",e.height="700px",e.data={theme:this.theme,voId:this.voId,groupId:this.groupId,createMailNotification:!1,applicationMail:t},this.dialog.open(na,e).afterClosed().subscribe(t=>{t&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.EDIT_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.selection.clear(),this.selectionChange.emit(this.selection),this.update())})}getMailType(t){let e="";return null==t.mailType||""===t.mailType?e="":this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_"+t.mailType).subscribe(t=>{e=t}),e}update(){this.groupId?this.registrarService.getApplicationMailsForGroup(this.groupId).subscribe(t=>{this.updateTable(t)}):this.registrarService.getApplicationMailsForVo(this.voId).subscribe(t=>{this.updateTable(t)})}toggle(t){this.selection.toggle(t),this.selectionChange.emit(this.selection)}updateTable(t){this.applicationMails=t,this.dataSource=new nt.by(this.applicationMails),this.setDataSource()}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.tk),h.Y36(S.sK),h.Y36(u.V6),h.Y36(A.uw),h.Y36(u.x4),h.Y36(u.UA))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-notification-list"]],viewQuery:function(t,e){if(1&t&&(h.Gf(ua.YE,7),h.Gf(c.l9,7)),2&t){let t;h.iGM(t=h.CRH())&&(e.matSort=t.first),h.iGM(t=h.CRH())&&(e.child=t.first)}},inputs:{applicationMails:"applicationMails",voId:"voId",groupId:"groupId",displayedColumns:"displayedColumns",disableSend:"disableSend",selection:"selection",tableId:"tableId",theme:"theme"},outputs:{selectionChange:"selectionChange"},features:[h.TTD],decls:21,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","hideExport","pageSizeOptions"],["mat-table","","matSort","","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","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(t,e){1&t&&(h.TgZ(0,"div",0),h.TgZ(1,"perun-web-apps-table-wrapper",1),h.TgZ(2,"table",2),h.ynx(3,3),h.YNc(4,da,2,3,"th",4),h.YNc(5,ga,2,2,"td",5),h.BQk(),h.ynx(6,6),h.YNc(7,ha,3,3,"th",7),h.YNc(8,ma,2,1,"td",8),h.BQk(),h.ynx(9,9),h.YNc(10,Aa,3,3,"th",7),h.YNc(11,Ia,2,1,"td",10),h.BQk(),h.ynx(12,11),h.YNc(13,Ta,3,3,"th",7),h.YNc(14,Za,4,2,"td",10),h.BQk(),h.ynx(15,12),h.YNc(16,_a,3,3,"th",7),h.YNc(17,ba,4,6,"td",10),h.BQk(),h.YNc(18,Sa,1,0,"tr",13),h.YNc(19,Na,1,2,"tr",14),h.qZA(),h.qZA(),h.qZA(),h.YNc(20,Oa,3,3,"app-alert",15)),2&t&&(h.Q6J("hidden",0===e.applicationMails.length),h.xp6(1),h.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("hideExport",!0)("pageSizeOptions",e.pageSizeOptions),h.xp6(1),h.Q6J("dataSource",e.dataSource),h.xp6(16),h.Q6J("matHeaderRowDef",e.displayedColumns),h.xp6(1),h.Q6J("matRowDefColumns",e.displayedColumns),h.xp6(1),h.Q6J("ngIf",0===e.applicationMails.length))},directives:[pa.l,nt.BZ,ua.YE,nt.w1,nt.fO,nt.Dz,nt.as,nt.nj,o.O5,nt.ge,be.oG,nt.ev,ua.nU,E.Hw,Z.gM,me.JJ,me.On,nt.XQ,nt.Gk,dt.w],pipes:[S.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();function xa(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",9),h.NdJ("click",function(){return h.CHM(t),h.oxw().add()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.ADD")," "))}function La(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",10),h.NdJ("click",function(){return h.CHM(t),h.oxw().remove()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("disabled",0===t.selection.selected.length),h.xp6(1),h.hij(" ",h.lcZ(2,2,"VO_DETAIL.SETTINGS.NOTIFICATIONS.REMOVE")," ")}}function Ca(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",11),h.NdJ("click",function(){return h.CHM(t),h.oxw().copy()}),h.TgZ(1,"i",5),h._uU(2,"file_copy"),h.qZA(),h._uU(3),h.ALo(4,"translate"),h.qZA()}2&t&&(h.xp6(3),h.hij(" ",h.lcZ(4,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.COPY_FROM_VO")," "))}function Ra(t,e){1&t&&h._UZ(0,"mat-spinner",12)}function Ma(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"app-notification-list",13),h.NdJ("selectionChange",function(e){return h.CHM(t),h.oxw().changeSelection(e)}),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("applicationMails",t.applicationMails)("tableId",t.tableId)("voId",t.vo.id)("displayedColumns",t.displayedColumns)("disableSend",!t.addAuth)("selection",t.selection)("theme","vo-theme")}}let Da=(()=>{class t{constructor(t,e,i,o,s,a,n,r,l){this.route=t,this.registrarService=e,this.translate=i,this.dialog=o,this.notificator=s,this.authResolver=a,this.voService=n,this.store=r,this.entityStorageService=l,this.loading=!1,this.applicationMails=[],this.selection=new cs.Ov(!0,[]),this.tableId=Ts.VR,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.registrarService.getVoApplicationForm(this.vo.id).subscribe(t=>{this.applicationForm=t,this.registrarService.getApplicationMailsForVo(this.vo.id).subscribe(t=>{this.applicationMails=t,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 t=this.store.get("supported_languages"),e=(0,c.i5)(t);e.formId=this.applicationForm.id;const i=(0,c.kZ)();i.width="1400px",i.height="700px",i.data={theme:"vo-theme",voId:this.vo.id,createMailNotification:!0,applicationMail:e,applicationMails:this.applicationMails},this.dialog.open(na,i).afterClosed().subscribe(t=>{t&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.ADD_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.selection.clear(),this.updateTable())})}remove(){const t=(0,c.kZ)();t.width="500px",t.data={voId:this.vo.id,mails:this.selection.selected,theme:"vo-theme"},this.dialog.open(Ps,t).afterClosed().subscribe(t=>{t&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.DELETE_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.selection.clear(),this.updateTable())})}copy(){const t=(0,c.kZ)();t.width="500px",t.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(ca,t).afterClosed().subscribe(t=>{t&&(this.selection.clear(),this.updateTable())})}updateTable(){this.loading=!0,this.registrarService.getApplicationMailsForVo(this.vo.id).subscribe(t=>{this.applicationMails=t,this.loading=!1})}changeEmailFooter(){const t=(0,c.kZ)();t.width="500px",t.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(Ys,t)}changeSelection(t){this.selection=t}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(s.gz),h.Y36(l.tk),h.Y36(S.sK),h.Y36(A.uw),h.Y36(u.V6),h.Y36(u.x4),h.Y36(l.YF),h.Y36(u.d6),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-settings-notifications"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:14,vars:11,consts:[[1,"page-subtitle"],[1,"w-100","d-flex"],["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"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],[1,"material-icons"],["mat-stroked-button","","class","action-button",3,"click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"applicationMails","tableId","voId","displayedColumns","disableSend","selection","theme","selectionChange",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"],["mat-stroked-button","",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"applicationMails","tableId","voId","displayedColumns","disableSend","selection","theme","selectionChange"]],template:function(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"div",1),h.YNc(4,xa,3,3,"button",2),h.YNc(5,La,3,4,"button",3),h.TgZ(6,"button",4),h.NdJ("click",function(){return e.changeEmailFooter()}),h.TgZ(7,"i",5),h._uU(8,"email"),h.qZA(),h._uU(9),h.ALo(10,"translate"),h.qZA(),h.YNc(11,Ca,5,3,"button",6),h.qZA(),h.YNc(12,Ra,1,0,"mat-spinner",7),h.YNc(13,Ma,1,7,"app-notification-list",8)),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,7,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TITLE"),"\n"),h.xp6(3),h.Q6J("ngIf",e.addAuth),h.xp6(1),h.Q6J("ngIf",e.removeAuth),h.xp6(4),h.hij(" ",h.lcZ(10,9,"VO_DETAIL.SETTINGS.NOTIFICATIONS.EMAIL_FOOTER")," "),h.xp6(2),h.Q6J("ngIf",e.copyAuth),h.xp6(1),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,b.lW,f.$g,va],pipes:[S.X$],styles:[""]}),t})();var Ua=i(65423);function qa(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",10),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).add()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.ADD")," "))}function Pa(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",11),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).remove()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw(2);h.Q6J("disabled",0===t.selection.selected.length),h.xp6(1),h.hij(" ",h.lcZ(2,2,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.REMOVE")," ")}}function wa(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",12),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).copy()}),h.TgZ(1,"i",6),h._uU(2,"file_copy"),h.qZA(),h._uU(3),h.ALo(4,"translate"),h.qZA()}2&t&&(h.xp6(3),h.hij(" ",h.lcZ(4,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.COPY_FROM_VO")," "))}function ya(t,e){1&t&&h._UZ(0,"mat-spinner",13)}function Ga(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"app-notification-list",14),h.NdJ("selectionChange",function(e){return h.CHM(t),h.oxw(2).changeSelection(e)}),h.qZA()}if(2&t){const t=h.oxw(2);h.Q6J("disableSend",!t.addAuth)("displayedColumns",t.displayedColumns)("applicationMails",t.applicationMails)("tableId",t.tableId)("groupId",t.group.id)("selection",t.selection)("theme","group-theme")}}function Ya(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div"),h.TgZ(1,"div",2),h.YNc(2,qa,3,3,"button",3),h.YNc(3,Pa,3,4,"button",4),h.TgZ(4,"button",5),h.NdJ("click",function(){return h.CHM(t),h.oxw().changeEmailFooter()}),h.TgZ(5,"i",6),h._uU(6,"email"),h.qZA(),h._uU(7),h.ALo(8,"translate"),h.qZA(),h.YNc(9,wa,5,3,"button",7),h.qZA(),h.YNc(10,ya,1,0,"mat-spinner",8),h.YNc(11,Ga,1,7,"app-notification-list",9),h.qZA()}if(2&t){const t=h.oxw();h.xp6(2),h.Q6J("ngIf",t.addAuth),h.xp6(1),h.Q6J("ngIf",t.removeAuth),h.xp6(4),h.hij(" ",h.lcZ(8,6,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.EMAIL_FOOTER")," "),h.xp6(2),h.Q6J("ngIf",t.copyAuth),h.xp6(1),h.Q6J("ngIf",t.loading),h.xp6(1),h.Q6J("ngIf",!t.loading)}}function Ja(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",17),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).createEmptyApplicationForm()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.CREATE_APPLICATION_FORM")," "))}function Va(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"app-alert",15),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,Ja,3,3,"button",16),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.Oqu(h.lcZ(3,2,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.NO_APPLICATION_FORM")),h.xp6(2),h.Q6J("ngIf",t.createFormAuth)}}let Fa=(()=>{class t{constructor(t,e,i,o,s,a,n,r){this.registrarService=t,this.translate=e,this.dialog=i,this.apiRequest=o,this.notificator=s,this.guiAuthResolver=a,this.attributesService=n,this.entityStorageService=r,this.loading=!1,this.applicationMails=[],this.selection=new cs.Ov(!0,[]),this.noApplicationForm=!1,this.editEmailFooterAuth=!1,this.addAuth=!1,this.removeAuth=!1,this.copyAuth=!1,this.createFormAuth=!1,this.displayedColumns=[],this.tableId=Ts.AA}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.apiRequest.dontHandleErrorForNext(),this.registrarService.getGroupApplicationForm(this.group.id).subscribe(t=>{this.applicationForm=t,this.registrarService.getApplicationMailsForGroup(this.group.id).subscribe(t=>{this.applicationMails=t,this.apiRequest.dontHandleErrorForNext(),this.attributesService.getGroupAttributeByName(this.group.id,p.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{this.setAuthRights(),this.loading=!1},t=>{"HttpErrorResponse"!==t.name&&this.notificator.showRPCError(t),this.setAuthRights(),this.loading=!1})})},t=>{"FormNotExistsException"===t.error.name?(this.noApplicationForm=!0,this.setAuthRights(),this.loading=!1):this.notificator.showRPCError(t)})}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 t=(0,c.i5)();t.formId=this.applicationForm.id;const e=(0,c.kZ)();e.width="1400px",e.height="700px",e.data={theme:"group-theme",voId:this.group.voId,groupId:this.group.id,createMailNotification:!0,applicationMail:t,applicationMails:this.applicationMails},this.dialog.open(na,e).afterClosed().subscribe(t=>{t&&(this.translate.get("GROUP_DETAIL.SETTINGS.NOTIFICATIONS.ADD_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.selection.clear(),this.updateTable())})}remove(){const t=(0,c.kZ)();t.width="500px",t.data={voId:this.group.voId,groupId:this.group.id,mails:this.selection.selected,theme:"group-theme"},this.dialog.open(Ps,t).afterClosed().subscribe(t=>{t&&(this.translate.get("GROUP_DETAIL.SETTINGS.NOTIFICATIONS.DELETE_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.selection.clear(),this.updateTable())})}copy(){const t=(0,c.kZ)();t.width="500px",t.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(ca,t).afterClosed().subscribe(t=>{t&&(this.selection.clear(),this.updateTable())})}updateTable(){this.loading=!0,this.registrarService.getApplicationMailsForGroup(this.group.id).subscribe(t=>{this.applicationMails=t,this.loading=!1})}changeEmailFooter(){const t=(0,c.kZ)();t.width="500px",t.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(Ys,t)}changeSelection(t){this.selection=t}createEmptyApplicationForm(){this.registrarService.createApplicationFormInGroup(this.group.id).subscribe(()=>{this.noApplicationForm=!1,this.ngOnInit()})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.tk),h.Y36(S.sK),h.Y36(A.uw),h.Y36(u.F5),h.Y36(u.V6),h.Y36(u.x4),h.Y36(l.H8),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-settings-notifications"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],[4,"ngIf"],[1,"w-100","d-flex"],["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"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],[1,"material-icons"],["mat-stroked-button","","class","action-button",3,"click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableSend","displayedColumns","applicationMails","tableId","groupId","selection","theme","selectionChange",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"],["mat-stroked-button","",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableSend","displayedColumns","applicationMails","tableId","groupId","selection","theme","selectionChange"],["alert_type","warn"],["mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"]],template:function(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.YNc(3,Ya,12,8,"div",1),h.YNc(4,Va,5,4,"div",1)),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,3,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.TITLE"),"\n"),h.xp6(2),h.Q6J("ngIf",!e.noApplicationForm),h.xp6(1),h.Q6J("ngIf",e.noApplicationForm&&!e.loading))},directives:[o.O5,b.lW,f.$g,va,dt.w],pipes:[S.X$],styles:[""]}),t})();var Qa=i(4359);function ka(t,e){1&t&&h._UZ(0,"mat-spinner",8)}function Ba(t,e){if(1&t&&(h.TgZ(0,"div",9),h._UZ(1,"app-ext-sources-list",10),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("tableId",t.tableId)("extSources",t.extSources)("filterValue",t.filterValue)("selection",t.selection)}}let ja=(()=>{class t{constructor(t,e,i,o,s){this.dialogRef=t,this.data=e,this.extSourceService=i,this.notificator=o,this.translate=s,this.extSources=[],this.selection=new cs.Ov(!0,[]),this.loading=!1,this.filterValue="",this.tableId=Ts.BV}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.data.groupId?this.extSourceService.getVoExtSources(this.data.voId).subscribe(t=>{this.extSources=t.filter(t=>!this.data.extSources.some(({id:e})=>e===t.id)),this.loading=!1},()=>this.loading=!1):this.extSourceService.getExtSources().subscribe(t=>{this.extSources=t.filter(t=>!this.data.extSources.some(({id:e})=>e===t.id)),this.loading=!1},()=>this.loading=!1)}applyFilter(t){this.filterValue=t}addVoExtSource(t){if(0===t.length)return void this.translate.get("DIALOGS.ADD_EXT_SOURCES.SUCCESS_ADDED").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)});const e=t.pop();this.extSourceService.addExtSourceWithVoSource(this.data.voId,e.id).subscribe(()=>{this.addVoExtSource(t)},()=>this.loading=!1)}addGroupExtSource(t){if(0===t.length)return void this.translate.get("DIALOGS.ADD_EXT_SOURCES.SUCCESS_ADDED").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)});const e=t.pop();this.extSourceService.addExtSourceWithGroupSource(this.data.groupId,e.id).subscribe(()=>{this.addGroupExtSource(t)},()=>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 t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(l.KG),h.Y36(u.V6),h.Y36(S.sK))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[3,"tableId","extSources","filterValue","selection"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"div",0),h.TgZ(2,"h1",1),h._uU(3),h.ALo(4,"translate"),h.qZA(),h.TgZ(5,"perun-web-apps-immediate-filter",2),h.NdJ("filter",function(t){return e.applyFilter(t)}),h.qZA(),h.qZA(),h.YNc(6,ka,1,0,"mat-spinner",3),h.YNc(7,Ba,2,4,"div",4),h.TgZ(8,"div",5),h.TgZ(9,"button",6),h.NdJ("click",function(){return e.onCancel()}),h._uU(10),h.ALo(11,"translate"),h.qZA(),h.TgZ(12,"button",7),h.NdJ("click",function(){return e.onAdd()}),h._uU(13),h.ALo(14,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(3),h.Oqu(h.lcZ(4,10,"DIALOGS.ADD_EXT_SOURCES.TITLE")),h.xp6(2),h.Q6J("placeholder","DIALOGS.ADD_EXT_SOURCES.FILTER"),h.xp6(1),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(11,12,"DIALOGS.ADD_EXT_SOURCES.CANCEL")," "),h.xp6(2),h.Q6J("disabled",0===e.selection.selected.length||e.loading),h.xp6(1),h.hij(" ",h.lcZ(14,14,"DIALOGS.ADD_EXT_SOURCES.ADD")," "))},directives:[A.uh,Es.L,o.O5,A.H8,b.lW,f.$g,A.xY,Qa.D],pipes:[S.X$],styles:[".font-size-1rem[_ngcontent-%COMP%]{font-size:1rem!important}"]}),t})();function Ha(t,e){1&t&&h._UZ(0,"mat-spinner",7)}function $a(t,e){1&t&&(h.TgZ(0,"th",17),h._uU(1,"id"),h.qZA())}function za(t,e){if(1&t&&(h.TgZ(0,"td",18),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.hij(" ",t.id," ")}}function Xa(t,e){1&t&&(h.TgZ(0,"th",17),h._uU(1,"name"),h.qZA())}function Wa(t,e){if(1&t&&(h.TgZ(0,"td",18),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.hij(" ",t.name," ")}}function Ka(t,e){1&t&&h._UZ(0,"tr",19)}function tn(t,e){1&t&&h._UZ(0,"tr",20)}function en(t,e){if(1&t&&(h.TgZ(0,"div",8),h.TgZ(1,"p"),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"div",9),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.TgZ(7,"table",10),h.ynx(8,11),h.YNc(9,$a,2,0,"th",12),h.YNc(10,za,2,1,"td",13),h.BQk(),h.ynx(11,14),h.YNc(12,Xa,2,0,"th",12),h.YNc(13,Wa,2,1,"td",13),h.BQk(),h.YNc(14,Ka,1,0,"tr",15),h.YNc(15,tn,1,0,"tr",16),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.hij(" ",h.lcZ(3,5,"DIALOGS.REMOVE_EXT_SOURCES.DESCRIPTION")," "),h.xp6(3),h.hij(" ",h.lcZ(6,7,"DIALOGS.REMOVE_EXT_SOURCES.ASK")," "),h.xp6(2),h.Q6J("dataSource",t.extSources),h.xp6(7),h.Q6J("matHeaderRowDef",t.displayedColumns),h.xp6(1),h.Q6J("matRowDefColumns",t.displayedColumns)}}let on=(()=>{class t{constructor(t,e,i,o,s,a){this.dialogRef=t,this.data=e,this.extSourceService=i,this.notificator=o,this.tableConfigService=s,this.translate=a,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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)});const t=this.extSources.pop();this.extSourceService.removeExtSourceWithVoSource(this.data.voId,t.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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)});const t=this.extSources.pop();this.extSourceService.removeExtSourceWithGroupSource(this.data.groupId,t.id).subscribe(()=>{this.onRemove()},()=>this.loading=!1)}onRemove(){this.loading=!0,this.data.groupId?this.removeGroupExtSource():this.removeVoExtSource()}onCancel(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(l.KG),h.Y36(u.V6),h.Y36(Ts.dB),h.Y36(S.sK))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-flat-button","","color","warn",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(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"div",0),h.TgZ(2,"h1",1),h._uU(3),h.ALo(4,"translate"),h.qZA(),h.qZA(),h.YNc(5,Ha,1,0,"mat-spinner",2),h.YNc(6,en,16,9,"div",3),h.TgZ(7,"div",4),h.TgZ(8,"button",5),h.NdJ("click",function(){return e.onCancel()}),h._uU(9),h.ALo(10,"translate"),h.qZA(),h.TgZ(11,"button",6),h.NdJ("click",function(){return e.onRemove()}),h._uU(12),h.ALo(13,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(3),h.Oqu(h.lcZ(4,8,"DIALOGS.REMOVE_EXT_SOURCES.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(10,10,"DIALOGS.REMOVE_EXT_SOURCES.CANCEL")," "),h.xp6(3),h.hij(" ",h.lcZ(13,12,"DIALOGS.REMOVE_EXT_SOURCES.REMOVE")," "))},directives:[A.uh,o.O5,A.H8,b.lW,f.$g,A.xY,nt.BZ,nt.w1,nt.fO,nt.Dz,nt.as,nt.nj,nt.ge,nt.ev,nt.XQ,nt.Gk],pipes:[S.X$],styles:[""]}),t})();function sn(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",7),h.NdJ("click",function(){return h.CHM(t),h.oxw().onAdd()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.SETTINGS.EXT_SOURCES.ADD")," "))}function an(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",8),h.NdJ("click",function(){return h.CHM(t),h.oxw().onRemove()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("disabled",0===t.selection.selected.length),h.xp6(1),h.hij(" ",h.lcZ(2,2,"VO_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function nn(t,e){1&t&&h._UZ(0,"mat-spinner",9)}function rn(t,e){if(1&t&&h._UZ(0,"app-ext-sources-list",10),2&t){const t=h.oxw();h.Q6J("tableId",t.tableId)("extSources",t.extSources)("displayedColumns",t.displayedColumns)("filterValue",t.filterValue)("selection",t.selection)}}let ln=(()=>{class t{constructor(t,e,i,o,s,a){this.extSourceService=t,this.dialog=e,this.notificator=i,this.translate=o,this.authResolver=s,this.entityStorageService=a,this.extSources=[],this.selection=new cs.Ov(!0,[]),this.filterValue="",this.tableId=Ts.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()}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"]}refreshTable(){this.loading=!0,this.extSourceService.getVoExtSources(this.vo.id).subscribe(t=>{this.extSources=t,this.selection.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(t){this.filterValue=t}onAdd(){const t=(0,c.kZ)();t.width="1000px",t.data={voId:this.vo.id,extSources:this.extSources,theme:"vo-theme"},this.dialog.open(ja,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onRemove(){const t=(0,c.kZ)();t.width="600px",t.data={voId:this.vo.id,extSources:this.selection.selected,theme:"vo-theme"},this.dialog.open(on,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.KG),h.Y36(A.uw),h.Y36(u.V6),h.Y36(S.sK),h.Y36(u.x4),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-settings-extsources"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["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,"tableId","extSources","displayedColumns","filterValue","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,"tableId","extSources","displayedColumns","filterValue","selection"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"perun-web-apps-refresh-button",1),h.NdJ("refresh",function(){return e.refreshTable()}),h.qZA(),h.YNc(5,sn,3,3,"button",2),h.YNc(6,an,3,4,"button",3),h.TgZ(7,"perun-web-apps-immediate-filter",4),h.NdJ("filter",function(t){return e.applyFilter(t)}),h.qZA(),h.YNc(8,nn,1,0,"mat-spinner",5),h.YNc(9,rn,1,5,"app-ext-sources-list",6),h.qZA()),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,6,"VO_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),h.xp6(3),h.Q6J("ngIf",e.addAuth),h.xp6(1),h.Q6J("ngIf",e.removeAuth),h.xp6(1),h.Q6J("placeholder","VO_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),h.xp6(1),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[fs.t,o.O5,Es.L,b.lW,f.$g,Qa.D],pipes:[S.X$],styles:[""]}),t})();var cn=i(78364);function un(t,e){1&t&&h._UZ(0,"mat-spinner",3)}const pn=function(){return["select","id","name","description"]};function dn(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div"),h.TgZ(1,"perun-web-apps-immediate-filter",4),h.NdJ("filter",function(e){return h.CHM(t),h.oxw().applyFilter(e)}),h.qZA(),h.TgZ(2,"div",5),h._UZ(3,"perun-web-apps-groups-list",6),h.qZA(),h.TgZ(4,"div",7),h.TgZ(5,"button",8),h.NdJ("click",function(){return h.CHM(t),h.oxw().onCancel()}),h._uU(6),h.ALo(7,"translate"),h.qZA(),h.TgZ(8,"button",9),h.NdJ("click",function(){return h.CHM(t),h.oxw().onSubmit()}),h._uU(9),h.ALo(10,"translate"),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.Tol(t.theme),h.xp6(1),h.Q6J("placeholder","GROUP_DETAIL.SETTINGS.RELATIONS.FILTER"),h.xp6(2),h.Q6J("tableId",t.tableId)("groupsToDisableCheckbox",t.groupsToDisable)("disableGroups",!0)("groups",t.groups)("selection",t.selection)("displayedColumns",h.DdM(21,pn))("filter",t.filterValue)("disableHeadCheckbox",!0)("disableRouting",!0)("authType","create-relation-dialog"),h.xp6(3),h.hij(" ",h.lcZ(7,17,"DIALOGS.CREATE_RELATION.CANCEL")," "),h.xp6(2),h.Q6J("disabled",t.loading||0===t.selection.selected.length),h.xp6(1),h.hij(" ",h.lcZ(10,19,"DIALOGS.CREATE_RELATION.CREATE")," ")}}let gn=(()=>{class t{constructor(t,e,i,o,s,a){this.dialogRef=t,this.groupService=e,this.notificator=i,this.translate=o,this.guiAuthResolver=s,this.data=a,this.selection=new cs.Ov(!1,[]),this.filterValue="",this.tableId=Ts.RS,this.groupsToDisable=new Set,o.get("DIALOGS.CREATE_RELATION.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.loading=!0,this.groupService.getGroupUnions(this.data.group.id,!this.data.reverse).subscribe(t=>{t=t.concat(this.data.groups),this.groupService.getAllGroups(this.data.voId).subscribe(e=>{const i=t.map(t=>t.id);this.groups=e.filter(t=>!i.includes(t.id)&&t.id!==this.data.group.id),this.setGroupsToDisable(),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!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(t){this.filterValue=t}setGroupsToDisable(){for(const t of this.groups)this.guiAuthResolver.isAuthorized("createGroupUnion_Group_Group_policy",[this.data.group,t])||this.groupsToDisable.add(t.id)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(l.ff),h.Y36(u.V6),h.Y36(S.sK),h.Y36(u.x4),h.Y36(A.WI))},t.\u0275cmp=h.Xpm({type:t,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,"placeholder","filter"],["mat-dialog-content","",1,"dialog-container"],[3,"tableId","groupsToDisableCheckbox","disableGroups","groups","selection","displayedColumns","filter","disableHeadCheckbox","disableRouting","authType"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"div"),h.YNc(4,un,1,0,"mat-spinner",1),h.qZA(),h.YNc(5,dn,11,22,"div",2)),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,6,"DIALOGS.CREATE_RELATION.TITLE")),h.xp6(2),h.Tol(e.theme),h.xp6(1),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[A.uh,o.O5,f.$g,Es.L,A.xY,cn.W,A.H8,b.lW],pipes:[S.X$],styles:[""]}),t})();function hn(t,e){1&t&&h._UZ(0,"mat-spinner",6)}function mn(t,e){1&t&&h._UZ(0,"th",15)}function An(t,e){if(1&t&&(h.TgZ(0,"td",16),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.hij(" ",t.name," ")}}function In(t,e){1&t&&h._UZ(0,"tr",17)}function Tn(t,e){1&t&&h._UZ(0,"tr",18)}function fn(t,e){if(1&t&&(h.TgZ(0,"div",7),h.TgZ(1,"p"),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"div",8),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.TgZ(7,"table",9),h.ynx(8,10),h.YNc(9,mn,1,0,"th",11),h.YNc(10,An,2,1,"td",12),h.BQk(),h.YNc(11,In,1,0,"tr",13),h.YNc(12,Tn,1,0,"tr",14),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.hij(" ",h.lcZ(3,5,"DIALOGS.REMOVE_RELATION.DESCRIPTION")," "),h.xp6(3),h.hij(" ",h.lcZ(6,7,"DIALOGS.REMOVE_RELATION.ASK")," "),h.xp6(2),h.Q6J("dataSource",t.dataSource),h.xp6(4),h.Q6J("matHeaderRowDef",t.displayedColumns),h.xp6(1),h.Q6J("matRowDefColumns",t.displayedColumns)}}let En=(()=>{class t{constructor(t,e,i,o,s){this.dialogRef=t,this.data=e,this.notificator=i,this.groupService=o,this.translate=s,this.displayedColumns=["name"],s.get("DIALOGS.REMOVE_RELATION.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new nt.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 t=this.data.reverse?this.data.groups.shift().id:this.data.groupId,e=this.data.reverse?this.data.groupId:this.data.groups.shift().id;this.groupService.removeGroupUnion(t,e).subscribe(()=>{this.onSubmit(),this.dialogRef.close(!0)},()=>this.loading=!1)}}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(u.V6),h.Y36(l.ff),h.Y36(S.sK))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,hn,1,0,"mat-spinner",1),h.YNc(5,fn,13,9,"div",2),h.TgZ(6,"div",3),h.TgZ(7,"button",4),h.NdJ("click",function(){return e.onCancel()}),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"button",5),h.NdJ("click",function(){return e.onSubmit()}),h._uU(11),h.ALo(12,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.Oqu(h.lcZ(3,9,"DIALOGS.REMOVE_RELATION.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(9,11,"DIALOGS.REMOVE_RELATION.CANCEL")," "),h.xp6(2),h.Q6J("disabled",e.loading),h.xp6(1),h.hij(" ",h.lcZ(12,13,"DIALOGS.REMOVE_RELATION.DELETE")," "))},directives:[A.uh,o.O5,A.H8,b.lW,f.$g,A.xY,nt.BZ,nt.w1,nt.fO,nt.Dz,nt.as,nt.nj,nt.ge,nt.ev,nt.XQ,nt.Gk],pipes:[S.X$],styles:[""]}),t})();var Zn=i(41939);const _n=["list"];function bn(t,e){1&t&&h._UZ(0,"mat-spinner",8)}const Sn=function(){return["select","id","vo","name","description"]};function Nn(t,e){if(1&t&&h._UZ(0,"perun-web-apps-groups-list",9,10),2&t){const t=h.oxw();h.Q6J("tableId",t.tableId)("groups",t.groups)("parentGroup",t.group)("authType","group-relations")("selection",t.selection)("filter",t.filterValue)("displayedColumns",h.DdM(8,Sn))("disableHeadCheckbox",!0)}}let On=(()=>{class t{constructor(t,e,i){this.groupService=t,this.dialog=e,this.entityStorageService=i,this.selection=new cs.Ov(!0,[]),this.groups=[],this.reverse=!1,this.filterValue="",this.tableId=Ts._7}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.refreshTable()}onCreate(){const t=(0,c.kZ)();t.width="1050px",t.data={groups:this.groups,theme:"group-theme",group:this.group,voId:this.group.voId,reverse:this.reverse},this.dialog.open(gn,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onDelete(){const t=(0,c.kZ)();t.width="450px",t.data={groups:this.selection.selected,theme:"group-theme",groupId:this.group.id,reverse:this.reverse},this.dialog.open(En,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}refreshTable(){this.loading=!0,this.groupService.getGroupUnions(this.group.id,this.reverse).subscribe(t=>{this.groups=t,this.selection.clear(),this.loading=!1},()=>this.loading=!1)}applyFilter(t){this.filterValue=t}showReverseUnions(){this.reverse=!this.reverse,this.refreshTable()}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.ff),h.Y36(A.uw),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-settings-relations"]],viewQuery:function(t,e){if(1&t&&h.Gf(_n,5),2&t){let t;h.iGM(t=h.CRH())&&(e.list=t.first)}},hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:18,vars:20,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"matTooltip","matTooltipDisabled","disabled","click"],[3,"placeholder","filter"],[3,"change"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","groups","parentGroup","authType","selection","filter","displayedColumns","disableHeadCheckbox",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"tableId","groups","parentGroup","authType","selection","filter","displayedColumns","disableHeadCheckbox"],["list",""]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"perun-web-apps-refresh-button",1),h.NdJ("refresh",function(){return e.refreshTable()}),h.qZA(),h.TgZ(5,"button",2),h.NdJ("click",function(){return e.onCreate()}),h._uU(6),h.ALo(7,"translate"),h.qZA(),h.TgZ(8,"button",3),h.NdJ("click",function(){return e.onDelete()}),h.ALo(9,"translate"),h._uU(10),h.ALo(11,"translate"),h.qZA(),h.TgZ(12,"perun-web-apps-immediate-filter",4),h.NdJ("filter",function(t){return e.applyFilter(t)}),h.qZA(),h.TgZ(13,"mat-checkbox",5),h.NdJ("change",function(){return e.showReverseUnions()}),h._uU(14),h.ALo(15,"translate"),h.qZA(),h.YNc(16,bn,1,0,"mat-spinner",6),h.YNc(17,Nn,2,9,"perun-web-apps-groups-list",7),h.qZA()),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,10,"GROUP_DETAIL.SETTINGS.RELATIONS.TITLE")),h.xp6(4),h.hij(" ",h.lcZ(7,12,"GROUP_DETAIL.SETTINGS.RELATIONS.CREATE")," "),h.xp6(2),h.s9C("matTooltip",h.lcZ(9,14,"GROUP_DETAIL.SETTINGS.RELATIONS.DELETE_TOOLTIP")),h.Q6J("matTooltipDisabled",0===e.selection.selected.length||void 0!==e.list&&e.list.removeAuth)("disabled",0===e.selection.selected.length||void 0!==e.list&&!e.list.removeAuth),h.xp6(2),h.hij(" ",h.lcZ(11,16,"GROUP_DETAIL.SETTINGS.RELATIONS.DELETE")," "),h.xp6(2),h.Q6J("placeholder","GROUP_DETAIL.SETTINGS.RELATIONS.FILTER"),h.xp6(2),h.Oqu(h.lcZ(15,18,"GROUP_DETAIL.SETTINGS.RELATIONS.REVERSE_UNIONS")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[fs.t,b.lW,Z.gM,Es.L,be.oG,o.O5,f.$g,cn.W],pipes:[S.X$],styles:[""]}),t})();var vn=i(21548),xn=i(29851);function Ln(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",6),h.NdJ("click",function(){return h.CHM(t),h.oxw().showAllDetails=!0}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"MEMBER_DETAIL.APPLICATIONS.SHOW_ALL_DETAILS")," "))}function Cn(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",6),h.NdJ("click",function(){return h.CHM(t),h.oxw().showAllDetails=!1}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"MEMBER_DETAIL.APPLICATIONS.SHOW_LESS_DETAILS")," "))}function Rn(t,e){1&t&&h._UZ(0,"mat-spinner",7)}function Mn(t,e){if(1&t&&h._UZ(0,"app-applications-list",10),2&t){const t=h.oxw(2);h.Q6J("tableId",t.tableId)("filterValue",t.filterValue)("applications",t.applications)("member",t.member)("displayedColumns",t.displayedColumns)}}function Dn(t,e){if(1&t&&h._UZ(0,"app-perun-web-apps-application-list-details",11),2&t){const t=h.oxw(2);h.Q6J("tableId",t.detailTableId)("filterValue",t.filterValue)("applications",t.applications)("member",t.member)}}function Un(t,e){if(1&t&&(h.TgZ(0,"div"),h.YNc(1,Mn,1,5,"app-applications-list",8),h.YNc(2,Dn,1,4,"app-perun-web-apps-application-list-details",9),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("ngIf",!t.showAllDetails),h.xp6(1),h.Q6J("ngIf",t.showAllDetails)}}let qn=(()=>{class t{constructor(t,e,i){this.registrarManager=t,this.memberManager=e,this.route=i,this.loading=!1,this.applications=[],this.displayedColumns=["id","createdAt","type","state","user","group","modifiedBy"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=Ts.d7,this.tableId=Ts.vq}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(t=>{this.memberId=t.memberId,this.memberManager.getMemberById(this.memberId).subscribe(t=>{this.member=t}),this.registrarManager.getApplicationsForMember(this.memberId).subscribe(t=>{this.applications=t,this.loading=!1})})}refreshTable(){this.loading=!0,this.registrarManager.getApplicationsForMember(this.memberId).subscribe(t=>{this.applications=t,this.loading=!1})}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.tk),h.Y36(l.uq),h.Y36(s.gz))},t.\u0275cmp=h.Xpm({type:t,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","filterValue","applications","member","displayedColumns",4,"ngIf"],[3,"tableId","filterValue","applications","member",4,"ngIf"],[3,"tableId","filterValue","applications","member","displayedColumns"],[3,"tableId","filterValue","applications","member"]],template:function(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"div"),h.TgZ(4,"perun-web-apps-refresh-button",1),h.NdJ("refresh",function(){return e.refreshTable()}),h.qZA(),h.YNc(5,Ln,3,3,"button",2),h.YNc(6,Cn,3,3,"button",2),h.TgZ(7,"perun-web-apps-immediate-filter",3),h.NdJ("filter",function(t){return e.applyFilter(t)}),h.qZA(),h.qZA(),h.YNc(8,Rn,1,0,"mat-spinner",4),h.YNc(9,Un,3,2,"div",5)),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,6,"MEMBER_DETAIL.APPLICATIONS.TITLE")),h.xp6(4),h.Q6J("ngIf",!e.showAllDetails),h.xp6(1),h.Q6J("ngIf",e.showAllDetails),h.xp6(1),h.Q6J("placeholder","MEMBER_DETAIL.APPLICATIONS.FILTER"),h.xp6(1),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[fs.t,o.O5,Es.L,b.lW,f.$g,vn.M,xn.w],pipes:[S.X$],styles:[""]}),t})();var Pn=i(56238),wn=i(79996),yn=i(70663),Gn=i(40084);function Yn(t,e){1&t&&(h._uU(0),h.ALo(1,"translate")),2&t&&h.Oqu(h.lcZ(1,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SELECT_RESOURCE"))}function Jn(t,e){1&t&&h._UZ(0,"mat-spinner",13)}function Vn(t,e){if(1&t&&(h.TgZ(0,"mat-option",24),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t),h.xp6(1),h.hij(" ",t," ")}}function Fn(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"mat-option",25),h.NdJ("click",function(){const e=h.CHM(t).$implicit,i=h.oxw(2);return i.setResource(e),i.stepper.selected.completed=!0}),h._uU(1),h.qZA()}if(2&t){const t=e.$implicit;h.Q6J("value",t),h.xp6(1),h.hij(" ",t.name," ")}}function Qn(t,e){if(1&t&&(h.TgZ(0,"div",22),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.Oqu(t.name)}}function kn(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"div"),h.TgZ(2,"mat-form-field",14),h._UZ(3,"input",15),h.ALo(4,"translate"),h.TgZ(5,"mat-autocomplete",16,17),h.YNc(7,Vn,2,2,"mat-option",18),h.ALo(8,"async"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(9,"div"),h.TgZ(10,"mat-form-field",14),h.TgZ(11,"mat-select",19),h.ALo(12,"translate"),h.YNc(13,Fn,2,2,"mat-option",20),h.ALo(14,"async"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(15,"div"),h.TgZ(16,"span",21),h._uU(17),h.ALo(18,"translate"),h.qZA(),h.TgZ(19,"div",22),h._uU(20),h.qZA(),h.qZA(),h.TgZ(21,"div"),h.TgZ(22,"span",21),h._uU(23),h.ALo(24,"translate"),h.qZA(),h.YNc(25,Qn,2,1,"div",23),h.qZA(),h.qZA()),2&t){const t=h.MAs(6),e=h.oxw();h.xp6(3),h.s9C("placeholder",h.lcZ(4,10,"DIALOGS.ADD_MEMBER_TO_RESOURCE.FILTER")),h.Q6J("formControl",e.facilityCtrl)("matAutocomplete",t),h.xp6(4),h.Q6J("ngForOf",h.lcZ(8,12,e.filteredFacilities)),h.xp6(4),h.s9C("placeholder",h.lcZ(12,14,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SELECTED")),h.xp6(2),h.Q6J("ngForOf",h.lcZ(14,16,e.filteredResources)),h.xp6(4),h.Oqu(h.lcZ(18,18,"DIALOGS.ADD_MEMBER_TO_RESOURCE.DESCRIPTION")),h.xp6(3),h.hij(" ",e.description," "),h.xp6(3),h.Oqu(h.lcZ(24,20,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SERVICES")),h.xp6(2),h.Q6J("ngForOf",e.services)}}function Bn(t,e){1&t&&(h._uU(0),h.ALo(1,"translate")),2&t&&h.Oqu(h.lcZ(1,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.ADD_GROUP"))}function jn(t,e){1&t&&h._UZ(0,"mat-spinner",13)}const Hn=function(){return["select","id","name","description"]};function $n(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"perun-web-apps-groups-list",26),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("disableGroups",!0)("disableHeadCheckbox",!0)("disableRouting",!0)("groupsToDisableCheckbox",t.membersGroupsId)("groups",t.groups)("displayedColumns",h.DdM(7,Hn))("selection",t.selectedGroups)}}function zn(t,e){1&t&&(h.TgZ(0,"app-alert",27),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.NO_GROUPS")," "))}function Xn(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",28),h.NdJ("click",function(){return h.CHM(t),h.oxw().stepperPrevious()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.BACK"),""))}function Wn(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",29),h.NdJ("click",function(){h.CHM(t);const e=h.oxw();return e.stepperNext(),e.loadGroups()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw();h.ekj("ml-2",void 0!==t.stepper&&0!==t.stepper.selectedIndex)("ml-auto",!(void 0!==t.stepper&&0!==t.stepper.selectedIndex)),h.Q6J("disabled",null===t.selectedResource||t.processing||t.loading),h.xp6(1),h.Oqu(h.lcZ(2,6,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CONTINUE"))}}function Kn(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",30),h.NdJ("click",function(){return h.CHM(t),h.oxw().onFinish()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("disabled",0===t.selectedGroups.selected.length||t.processing),h.xp6(1),h.hij(" ",h.lcZ(2,2,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SUBMIT"),"")}}let tr=(()=>{class t{constructor(t,e,i,o,s,a,n,r){this.dialogRef=t,this.data=e,this.resourceManager=i,this.groupManager=o,this.notificator=s,this.translate=a,this.authResolver=n,this.cd=r,this.loading=!1,this.processing=!1,this.membersGroupsId=new Set,this.facilityCtrl=new me.NI,this.facilitiesNames=[],this.resources=[],this.selectedResource=null,this.services=[],this.description="",this.groups=[],this.selectedGroups=new cs.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(t=>{this.resources=t,this.getResourceFacilities(),this.loading=!1},()=>this.loading=!1)}getResourceFacilities(){const t=new Set;for(const e of this.resources)t.add(e.facility.name);this.facilitiesNames=Array.from(t),this.filteredFacilities=this.facilityCtrl.valueChanges.pipe((0,Pn.O)(""),(0,wn.U)(t=>this.filterFacilities(t))),this.filteredResources=this.facilityCtrl.valueChanges.pipe((0,Pn.O)(""),(0,wn.U)(t=>this.filterResources(t)))}filterFacilities(t){const e=t.toLowerCase();return this.facilitiesNames.filter(t=>t.toLowerCase().indexOf(e)>=0).sort((t,e)=>t.toLowerCase().localeCompare(e.toLowerCase()))}filterResources(t){if(null==t)return this.resources;const e=t.toLowerCase();return this.resources.filter(t=>0===t.facility.name.toLowerCase().indexOf(e)).sort((t,e)=>t.name.toLowerCase().localeCompare(e.name.toLowerCase()))}setResource(t){this.processing=!0,this.selectedResource=t,this.resourceManager.getAssignedServicesToResource(this.selectedResource.id).subscribe(t=>{this.services=t,this.processing=!1},()=>this.processing=!1),this.description=this.selectedResource.description}loadGroups(){this.processing=!0,this.resourceManager.getAssignedGroups(this.selectedResource.id).subscribe(t=>{this.groups=t,this.groupManager.getAllMemberGroups(this.data.memberId).subscribe(t=>{this.membersGroupsId=new Set(t.map(t=>t.id)),this.groups.forEach(t=>{this.authResolver.isAuthorized("addMember_Group_Member_policy",[t])||this.membersGroupsId.add(t.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()}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(l.xk),h.Y36(l.ff),h.Y36(u.V6),h.Y36(S.sK),h.Y36(u.x4),h.Y36(h.sBO))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-add-member-to-resource-dialog"]],viewQuery:function(t,e){if(1&t&&h.Gf(yn.Vq,5),2&t){let t;h.iGM(t=h.CRH())&&(e.stepper=t.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(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"div",1),h.TgZ(5,"mat-stepper",2),h.TgZ(6,"mat-step",3),h.YNc(7,Yn,2,3,"ng-template",4),h.YNc(8,Jn,1,0,"mat-spinner",5),h.YNc(9,kn,26,22,"div",6),h.qZA(),h.TgZ(10,"mat-step"),h.YNc(11,Bn,2,3,"ng-template",4),h.YNc(12,jn,1,0,"mat-spinner",5),h.YNc(13,$n,2,8,"div",6),h.YNc(14,zn,3,3,"app-alert",7),h.qZA(),h.qZA(),h.qZA(),h.TgZ(15,"div",8),h.TgZ(16,"button",9),h.NdJ("click",function(){return e.onCancel()}),h._uU(17),h.ALo(18,"translate"),h.qZA(),h.YNc(19,Xn,3,3,"button",10),h.YNc(20,Wn,3,8,"button",11),h.YNc(21,Kn,3,4,"button",12),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.Oqu(h.lcZ(3,14,"DIALOGS.ADD_MEMBER_TO_RESOURCE.TITLE")),h.xp6(3),h.Q6J("linear",!0),h.xp6(3),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.Q6J("ngIf",e.processing),h.xp6(1),h.Q6J("ngIf",0!==e.groups.length&&!e.processing),h.xp6(1),h.Q6J("ngIf",0===e.groups.length&&!e.processing),h.xp6(3),h.Oqu(h.lcZ(18,16,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CANCEL")),h.xp6(2),h.Q6J("ngIf",void 0!==e.stepper&&0!==e.stepper.selectedIndex),h.xp6(1),h.Q6J("ngIf",void 0!==e.stepper&&e.stepper.selectedIndex!==e.stepper._steps.length-1),h.xp6(1),h.Q6J("ngIf",void 0!==e.stepper&&e.stepper.selectedIndex===e.stepper._steps.length-1))},directives:[A.uh,A.xY,yn.Vq,yn.C0,yn.VY,o.O5,A.H8,b.lW,f.$g,fe.KE,Ze.Nt,me.Fj,Gn.ZL,me.JJ,me.oH,Gn.XC,o.sg,Ee.gD,_e.ey,cn.W,dt.w],pipes:[S.X$,o.Ov],styles:[".input-style[_ngcontent-%COMP%]{margin-left:50px;width:75%}"]}),t})();var er=i(88884);function ir(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",6),h.NdJ("click",function(){return h.CHM(t),h.oxw().addResource()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"MEMBER_DETAIL.RESOURCES.ADD")," "))}function or(t,e){if(1&t&&h._UZ(0,"perun-web-apps-resources-list",7),2&t){const t=h.oxw();h.Q6J("tableId",t.tableId)("filterValue",t.filterValue)("displayedColumns",t.displayedColumns)("routingVo",!0)("disableRouting",!t.routeAuth)("resources",t.resources)}}function sr(t,e){1&t&&h._UZ(0,"mat-spinner",8)}let ar=(()=>{class t{constructor(t,e,i,o,s){this.dialog=t,this.memberManager=e,this.resourceManager=i,this.route=o,this.authResolver=s,this.resources=[],this.filterValue="",this.loading=!1,this.displayedColumns=["id","name","vo","facility","tags","description"],this.tableId=Ts.aL}ngOnInit(){this.route.parent.params.subscribe(t=>{this.memberManager.getMemberById(t.memberId).subscribe(t=>{this.member=t,this.refreshTable()})})}addResource(){const t=(0,c.kZ)();t.width="1200px",t.data={memberId:this.member.id,voId:this.member.voId,theme:"member-theme"},this.dialog.open(tr,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}refreshTable(){this.loading=!0,this.resourceManager.getAssignedRichResourcesWithMember(this.member.id).subscribe(t=>{this.resources=t,this.setAuthRights(),this.loading=!1})}setAuthRights(){const t={id:this.member.voId,beanName:"Vo"};this.addAuth=this.authResolver.isAuthorized("getRichResources_Vo_policy",[t])&&this.authResolver.isAuthorized("addMembers_Group_List_policy",[t]),0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getResourceById_int_policy",[t,this.resources[0]]))}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.uw),h.Y36(l.uq),h.Y36(l.xk),h.Y36(s.gz),h.Y36(u.x4))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-member-resources"]],decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","class","action-button","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"placeholder","filter"],[3,"tableId","filterValue","displayedColumns","routingVo","disableRouting","resources",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[3,"tableId","filterValue","displayedColumns","routingVo","disableRouting","resources"],[1,"mr-auto","ml-auto"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"perun-web-apps-refresh-button",1),h.NdJ("refresh",function(){return e.refreshTable()}),h.qZA(),h.YNc(5,ir,3,3,"button",2),h.TgZ(6,"perun-web-apps-immediate-filter",3),h.NdJ("filter",function(t){return e.applyFilter(t)}),h.qZA(),h.YNc(7,or,1,6,"perun-web-apps-resources-list",4),h.qZA(),h.YNc(8,sr,1,0,"mat-spinner",5)),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,5,"MEMBER_DETAIL.RESOURCES.TITLE")),h.xp6(3),h.Q6J("ngIf",e.addAuth),h.xp6(1),h.Q6J("placeholder","MEMBER_DETAIL.RESOURCES.FILTER"),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(1),h.Q6J("ngIf",e.loading))},directives:[fs.t,o.O5,Es.L,b.lW,er.C,f.$g],pipes:[S.X$],styles:[""]}),t})();var nr=i(72920),rr=i(76527),lr=i(42473),cr=i(77968),ur=i(22927),pr=i(79472),dr=i(64359),gr=i(75374),hr=i(95142),mr=i(48666);function Ar(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",7),h.NdJ("click",function(){return h.CHM(t),h.oxw().onAdd()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.ADD")," "))}function Ir(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",8),h.NdJ("click",function(){return h.CHM(t),h.oxw().onRemove()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("disabled",0===t.selection.selected.length),h.xp6(1),h.hij(" ",h.lcZ(2,2,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function Tr(t,e){1&t&&h._UZ(0,"mat-spinner",9)}function fr(t,e){if(1&t&&h._UZ(0,"app-ext-sources-list",10),2&t){const t=h.oxw();h.Q6J("tableId",t.tableId)("extSources",t.extSources)("displayedColumns",t.displayedColumns)("filterValue",t.filterValue)("selection",t.selection)}}let Er=(()=>{class t{constructor(t,e,i,o,s,a){this.extSourceService=t,this.dialog=e,this.notificator=i,this.translate=o,this.authResolver=s,this.entityStorageService=a,this.extSources=[],this.selection=new cs.Ov(!0,[]),this.filterValue="",this.tableId=Ts.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(t=>{this.extSources=t,this.selection.clear(),this.loading=!1})}applyFilter(t){this.filterValue=t}onAdd(){const t=(0,c.kZ)();t.width="1000px",t.data={voId:this.group.voId,groupId:this.group.id,extSources:this.extSources,theme:"group-theme"},this.dialog.open(ja,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onRemove(){const t=(0,c.kZ)();t.width="600px",t.data={voId:this.group.voId,groupId:this.group.id,extSources:this.selection.selected,theme:"group-theme"},this.dialog.open(on,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.KG),h.Y36(A.uw),h.Y36(u.V6),h.Y36(S.sK),h.Y36(u.x4),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-settings-extsources"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["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,"tableId","extSources","displayedColumns","filterValue","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,"tableId","extSources","displayedColumns","filterValue","selection"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"perun-web-apps-refresh-button",1),h.NdJ("refresh",function(){return e.refreshTable()}),h.qZA(),h.YNc(5,Ar,3,3,"button",2),h.YNc(6,Ir,3,4,"button",3),h.TgZ(7,"perun-web-apps-immediate-filter",4),h.NdJ("filter",function(t){return e.applyFilter(t)}),h.qZA(),h.YNc(8,Tr,1,0,"mat-spinner",5),h.YNc(9,fr,1,5,"app-ext-sources-list",6),h.qZA()),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,6,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),h.xp6(3),h.Q6J("ngIf",e.addAuth),h.xp6(1),h.Q6J("ngIf",e.removeAuth),h.xp6(1),h.Q6J("placeholder","GROUP_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),h.xp6(1),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[fs.t,o.O5,Es.L,b.lW,f.$g,Qa.D],pipes:[S.X$],styles:[""]}),t})();function Zr(t,e){1&t&&h._UZ(0,"th",9)}function _r(t,e){if(1&t&&(h.TgZ(0,"td",10),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.hij(" ",t,": ")}}function br(t,e){1&t&&h._UZ(0,"th",9)}function Sr(t,e){if(1&t&&(h.TgZ(0,"td",11),h._uU(1),h.qZA()),2&t){const t=e.$implicit,i=h.oxw();h.xp6(1),h.hij(" ",i.statistics.get(t.toLowerCase())," ")}}function Nr(t,e){1&t&&h._UZ(0,"tr",12)}let Or=(()=>{class t{constructor(){this.rowNames=[],this.title="",this.statistics=new Map,this.dataSource=null,this.displayedColumns=["name","value"]}ngOnInit(){this.dataSource=new nt.by(this.rowNames)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=h.Xpm({type:t,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(t,e){1&t&&(h.TgZ(0,"mat-card",0),h.TgZ(1,"mat-card-header"),h.TgZ(2,"mat-card-title"),h.TgZ(3,"h1",1),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(6,"mat-card-content"),h.TgZ(7,"table",2),h.ynx(8,3),h.YNc(9,Zr,1,0,"th",4),h.YNc(10,_r,2,1,"td",5),h.BQk(),h.ynx(11,6),h.YNc(12,br,1,0,"th",4),h.YNc(13,Sr,2,1,"td",7),h.BQk(),h.YNc(14,Nr,1,0,"tr",8),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.xp6(4),h.Oqu(h.lcZ(5,3,e.title)),h.xp6(3),h.Q6J("dataSource",e.dataSource),h.xp6(7),h.Q6J("matRowDefColumns",e.displayedColumns))},directives:[ct.a8,ct.dk,ct.n5,ct.dn,nt.BZ,nt.w1,nt.fO,nt.Dz,nt.nj,nt.ge,nt.ev,nt.Gk],pipes:[S.X$],styles:[".align-card[_ngcontent-%COMP%]{margin:1rem 1rem 1rem 0;display:inline-block;vertical-align:top}"]}),t})();function vr(t,e){1&t&&h._UZ(0,"mat-spinner",3)}function xr(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"app-statistics-card",4),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("rowNames",t.rowNames)("statistics",t.membersCount)("title","VO_DETAIL.STATISTICS.MEMBERS_COUNT")}}let Lr=(()=>{class t{constructor(t,e){this.voService=t,this.entityStorageService=e,this.loading=!1,this.dataSource=new nt.by,this.displayedColumns=["status","count"],this.rowNames=["Members","Valid","Invalid","Expired","Disabled"],this.membersCount=new Map([["members",0],["valid",0],["invalid",0],["expired",0],["disabled",0]])}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.dataSource=new nt.by(this.rowNames),this.voService.getVoMembersCountsByStatus(this.vo.id).subscribe(t=>{this.allMembersCount=0;for(const e of Object.keys(t))this.membersCount.set(e.toLowerCase(),t[e]),this.allMembersCount+=t[e];this.membersCount.set("members",this.allMembersCount),this.loading=!1},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.YF),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,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(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.YNc(3,vr,1,0,"mat-spinner",1),h.YNc(4,xr,2,3,"div",2)),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,3,"VO_DETAIL.STATISTICS.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,f.$g,Or],pipes:[S.X$],styles:[""]}),t})();function Cr(t,e){1&t&&h._UZ(0,"mat-spinner",3)}function Rr(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"app-statistics-card",4),h._UZ(2,"app-statistics-card",4),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("rowNames",t.voStatusCountsRowNames)("statistics",t.membersCountsByVoStatus)("title","GROUP_DETAIL.STATISTICS.VO_STATUS_COUNT"),h.xp6(1),h.Q6J("rowNames",t.groupStatusCountsRowNames)("statistics",t.membersCountsByGroupStatus)("title","GROUP_DETAIL.STATISTICS.GROUP_STATUS_COUNT")}}let Mr=(()=>{class t{constructor(t,e){this.groupService=t,this.entityStorageService=e,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(t=>{this.membersCountsByVoStatus.set("members",t),this.membersCountsByGroupStatus.set("members",t),this.groupService.getGroupMembersCountsByVoStatus(this.group.id).subscribe(t=>{Object.entries(t).forEach(([t,e])=>this.membersCountsByVoStatus.set(t.toLowerCase(),e)),this.groupService.getGroupMembersCountsByGroupStatus(this.group.id).subscribe(t=>{Object.entries(t).forEach(([t,e])=>this.membersCountsByGroupStatus.set(t.toLowerCase(),e)),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.ff),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,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(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.YNc(3,Cr,1,0,"mat-spinner",1),h.YNc(4,Rr,3,6,"div",2)),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,3,"GROUP_DETAIL.STATISTICS.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,f.$g,Or],pipes:[S.X$],styles:[""]}),t})();var Dr=i(91058);function Ur(t,e){1&t&&h._UZ(0,"mat-spinner",6)}const qr=function(){return["select","id","name","description"]};function Pr(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",7),h.TgZ(1,"perun-web-apps-debounce-filter",8),h.NdJ("filter",function(e){return h.CHM(t),h.oxw().applyFilter(e)}),h.ALo(2,"translate"),h.qZA(),h._UZ(3,"perun-web-apps-groups-list",9),h.qZA()}if(2&t){const t=h.oxw();h.xp6(1),h.s9C("placeholder",h.lcZ(2,8,"DIALOGS.ADD_GROUP_TO_REGISTRATION.FILTER_DESCRIPTION")),h.xp6(2),h.Q6J("tableId",t.tableId)("groups",t.unAssignedGroups)("selection",t.selection)("filter",t.filterValue)("displayedColumns",h.DdM(10,qr))("disableRouting",!0)("disableMembers",!0)}}let wr=(()=>{class t{constructor(t,e,i,o){this.dialogRef=t,this.data=e,this.groupService=i,this.registrarService=o,this.loading=!1,this.selection=new cs.Ov(!0,[]),this.filterValue="",this.tableId=Ts.Is}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.groupService.getAllGroups(this.data.voId).subscribe(t=>{this.unAssignedGroups=t.filter(t=>this.data.assignedGroups.indexOf(t.id)<=-1),this.loading=!1})}applyFilter(t){this.filterValue=t}onCancel(){this.dialogRef.close(!1)}onAdd(){this.loading=!0,this.registrarService.addGroupsToAutoRegistration(this.selection.selected.map(t=>t.id)).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(l.ff),h.Y36(l.tk))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-add-group-to-registration"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-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","accent",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter"],[3,"tableId","groups","selection","filter","displayedColumns","disableRouting","disableMembers"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,Ur,1,0,"mat-spinner",1),h.YNc(5,Pr,4,11,"div",2),h.TgZ(6,"div",3),h.TgZ(7,"button",4),h.NdJ("click",function(){return e.onCancel()}),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"button",5),h.NdJ("click",function(){return e.onAdd()}),h._uU(11),h.ALo(12,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.Oqu(h.lcZ(3,9,"DIALOGS.ADD_GROUP_TO_REGISTRATION.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(9,11,"DIALOGS.ADD_GROUP_TO_REGISTRATION.CANCEL_BUTTON")," "),h.xp6(2),h.Q6J("disabled",0===e.selection.selected.length||e.loading),h.xp6(1),h.hij(" ",h.lcZ(12,13,"DIALOGS.ADD_GROUP_TO_REGISTRATION.ADD_BUTTON")," "))},directives:[A.uh,o.O5,A.H8,b.lW,f.$g,A.xY,Dr.P,cn.W],pipes:[S.X$],styles:[""]}),t})();const yr=["list"];function Gr(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",9),h.NdJ("click",function(){return h.CHM(t),h.oxw().onAddGroup()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.ADD"),"\n"))}function Yr(t,e){1&t&&h._UZ(0,"mat-spinner",10)}const Jr=function(){return["select","id","name","description"]};function Vr(t,e){if(1&t&&h._UZ(0,"perun-web-apps-groups-list",11,12),2&t){const t=h.oxw();h.Q6J("tableId",t.tableId)("selection",t.selected)("displayedColumns",h.DdM(7,Jr))("disableRouting",!0)("filter",t.filterValue)("authType","application-form-manage-groups")("groups",t.groups)}}let Fr=(()=>{class t{constructor(t,e,i,o){this.registrarService=t,this.authResolver=e,this.dialog=i,this.route=o,this.groups=[],this.selected=new cs.Ov(!0,[]),this.tableId=Ts.CE,this.filterValue=""}ngOnInit(){this.loading=!0,this.route.parent.parent.params.subscribe(t=>{this.voId=t.voId,this.loadGroups()})}loadGroups(){this.loading=!0,this.registrarService.getGroupsToAutoRegistration(this.voId).subscribe(t=>{this.groups=t,this.selected.clear(),this.setAuthRights(),this.loading=!1},()=>this.loading=!1)}onAddGroup(){const t=(0,c.kZ)();t.width="900px",t.data={voId:this.voId,assignedGroups:this.groups.map(t=>t.id),theme:"vo-theme"},this.dialog.open(wr,t).afterClosed().subscribe(t=>{t&&this.loadGroups()})}removeGroup(){const t=(0,c.kZ)();t.width="450px",t.data={items:this.selected.selected.map(t=>t.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"},this.dialog.open(d.Tf,t).afterClosed().subscribe(t=>{t&&this.registrarService.deleteGroupsFromAutoRegistration(this.selected.selected.map(t=>t.id)).subscribe(()=>{this.loadGroups()})})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addGroupsToAutoRegistration_List_policy",[{id:this.voId,beanName:"Vo"}])}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.tk),h.Y36(u.x4),h.Y36(A.uw),h.Y36(s.gz))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-application-form-manage-groups"]],viewQuery:function(t,e){if(1&t&&h.Gf(yr,5),2&t){let t;h.iGM(t=h.CRH())&&(e.list=t.first)}},decls:17,vars:21,consts:[[1,"page-subtitle"],["alert_type","info"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],["theme","vo-theme",3,"tableId","selection","displayedColumns","disableRouting","filter","authType","groups",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],["theme","vo-theme",3,"tableId","selection","displayedColumns","disableRouting","filter","authType","groups"],["list",""]],template:function(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"app-alert",1),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.TgZ(7,"perun-web-apps-refresh-button",2),h.NdJ("refresh",function(){return e.loadGroups()}),h.qZA(),h.YNc(8,Gr,3,3,"button",3),h.TgZ(9,"span",4),h.ALo(10,"translate"),h.TgZ(11,"button",5),h.NdJ("click",function(){return e.removeGroup()}),h._uU(12),h.ALo(13,"translate"),h.qZA(),h.qZA(),h.TgZ(14,"perun-web-apps-immediate-filter",6),h.NdJ("filter",function(t){return e.filterValue=t}),h.qZA(),h.YNc(15,Yr,1,0,"mat-spinner",7),h.YNc(16,Vr,2,8,"perun-web-apps-groups-list",8)),2&t&&(h.xp6(1),h.AsE(" ",h.lcZ(2,11,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE")," - ",h.lcZ(3,13,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.TITLE"),"\n"),h.xp6(4),h.hij(" ",h.lcZ(6,15,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.HELP"),"\n"),h.xp6(3),h.Q6J("ngIf",e.addAuth),h.xp6(1),h.s9C("matTooltip",h.lcZ(10,17,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_PERMISSION_HINT")),h.Q6J("matTooltipDisabled",void 0===e.list||void 0!==e.list&&e.list.removeAuth),h.xp6(2),h.Q6J("disabled",0===e.selected.selected.length||void 0!==e.list&&!e.list.removeAuth),h.xp6(1),h.hij(" ",h.lcZ(13,19,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE")," "),h.xp6(2),h.Q6J("placeholder","VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.FILTER"),h.xp6(1),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[dt.w,fs.t,o.O5,Z.gM,b.lW,Es.L,f.$g,cn.W],pipes:[S.X$],styles:[""]}),t})();var Qr=i(53134),kr=i(47701),Br=i(90611),jr=i(44689),Hr=i(18820),$r=i(90888),zr=i(85250),Xr=i(4252);const Wr=["stepper"];function Kr(t,e){1&t&&(h._uU(0),h.ALo(1,"translate")),2&t&&h.Oqu(h.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.CREATE_IDENTITY"))}function tl(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function el(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function il(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.EMAIL_INVALID")))}function ol(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function sl(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function al(t,e){1&t&&(h._uU(0),h.ALo(1,"translate")),2&t&&h.Oqu(h.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.SET_CREDENTIALS"))}function nl(t,e){if(1&t&&(h.TgZ(0,"mat-option",31),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t),h.xp6(1),h.hij(" ",t," ")}}function rl(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function ll(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_EXISTS")))}function cl(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_FORMAT")))}function ul(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_LONG")))}function pl(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_SHORT")))}function dl(t,e){if(1&t&&(h.TgZ(0,"span",32),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t){const t=h.oxw(2);h.xp6(1),h.hij(" ",h.lcZ(2,1,"Not selected"===t.secondFormGroup.get("namespaceCtrl").value?"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_DISABLED":"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_DISABLED_FOR_NAMESPACE")," ")}}function gl(t,e){1&t&&(h._uU(0),h.ALo(1,"translate")),2&t&&h.Oqu(h.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.ASSOCIATE_USERS"))}function hl(t,e){if(1&t&&(h.TgZ(0,"span",38),h._uU(1),h.qZA()),2&t){const t=h.oxw().$implicit;h.xp6(1),h.hij("#",t.id,"")}}function ml(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"mat-list-item"),h.TgZ(1,"p",33),h._uU(2),h.ALo(3,"userFullName"),h.YNc(4,hl,2,1,"span",34),h.TgZ(5,"span",35),h.ALo(6,"translate"),h.TgZ(7,"button",36),h.NdJ("click",function(){const e=h.CHM(t).$implicit;return h.oxw(2).removeUser(e)}),h.TgZ(8,"mat-icon",37),h._uU(9,"close"),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=e.$implicit,i=h.oxw(2);h.xp6(2),h.hij("",h.lcZ(3,5,t.user)," "),h.xp6(2),h.Q6J("ngIf",t.id),h.xp6(1),h.Q6J("matTooltipDisabled",i.assignedMembers.length>1)("matTooltip",h.lcZ(6,7,"DIALOGS.CREATE_SERVICE_MEMBER.MINIMAL_USERS")),h.xp6(2),h.Q6J("disabled",1===i.assignedMembers.length)}}function Al(t,e){1&t&&h._UZ(0,"mat-spinner",39)}const Il=function(){return["checkbox","id","fullName"]};function Tl(t,e){if(1&t&&h._UZ(0,"perun-web-apps-members-list",42),2&t){const t=h.oxw(3);h.Q6J("disableRouting",!0)("displayedColumns",h.DdM(5,Il))("members",t.members)("tableId",t.tableId)("selection",t.selection)}}function fl(t,e){1&t&&(h.TgZ(0,"app-alert",43),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_INFO")," "))}function El(t,e){if(1&t&&(h.TgZ(0,"div"),h.YNc(1,Tl,1,6,"perun-web-apps-members-list",40),h.YNc(2,fl,3,3,"app-alert",41),h.qZA()),2&t){const t=h.oxw(2);h.xp6(1),h.Q6J("ngIf",t.firstSearchDone),h.xp6(1),h.Q6J("ngIf",!t.firstSearchDone)}}function Zl(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",5),h.TgZ(1,"mat-stepper",6,7),h.TgZ(3,"mat-step",8),h.TgZ(4,"form",9),h.YNc(5,Kr,2,3,"ng-template",10),h.TgZ(6,"div",11),h.TgZ(7,"mat-form-field"),h.TgZ(8,"mat-label"),h._uU(9),h.ALo(10,"translate"),h.qZA(),h._UZ(11,"input",12),h.YNc(12,tl,3,3,"mat-error",13),h.qZA(),h.TgZ(13,"mat-form-field"),h.TgZ(14,"mat-label"),h._uU(15),h.ALo(16,"translate"),h.qZA(),h._UZ(17,"input",14),h.YNc(18,el,3,3,"mat-error",13),h.YNc(19,il,3,3,"mat-error",13),h.qZA(),h.TgZ(20,"mat-form-field"),h.TgZ(21,"mat-label"),h._uU(22),h.ALo(23,"translate"),h.qZA(),h._UZ(24,"input",15),h.YNc(25,ol,3,3,"mat-error",13),h.qZA(),h.TgZ(26,"mat-form-field"),h.TgZ(27,"mat-label"),h._uU(28),h.ALo(29,"translate"),h.qZA(),h._UZ(30,"input",16),h.YNc(31,sl,3,3,"mat-error",13),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(32,"mat-step",8),h.TgZ(33,"form",9),h.YNc(34,al,2,3,"ng-template",10),h.TgZ(35,"div",11),h.TgZ(36,"mat-form-field"),h.TgZ(37,"mat-label"),h._uU(38),h.ALo(39,"translate"),h.qZA(),h.TgZ(40,"mat-select",17),h.NdJ("valueChange",function(e){return h.CHM(t),h.oxw().onNamespaceChanged(e)}),h.YNc(41,nl,2,2,"mat-option",18),h.qZA(),h.qZA(),h.TgZ(42,"mat-form-field",19),h.TgZ(43,"mat-label"),h._uU(44),h.ALo(45,"translate"),h.qZA(),h._UZ(46,"input",20),h.YNc(47,rl,3,3,"mat-error",13),h.YNc(48,ll,3,3,"mat-error",13),h.YNc(49,cl,3,3,"mat-error",13),h.YNc(50,ul,3,3,"mat-error",13),h.YNc(51,pl,3,3,"mat-error",13),h.YNc(52,dl,3,3,"span",21),h.qZA(),h.TgZ(53,"mat-radio-group",22),h.NdJ("ngModelChange",function(){return h.CHM(t),h.oxw().passwordOptionChanged()}),h.ALo(54,"translate"),h.TgZ(55,"mat-radio-button",23),h._uU(56),h.ALo(57,"translate"),h.qZA(),h.TgZ(58,"mat-radio-button",23),h._uU(59),h.ALo(60,"translate"),h.qZA(),h.qZA(),h.TgZ(61,"div",11),h._UZ(62,"perun-web-apps-password-form",24),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(63,"mat-step"),h.YNc(64,gl,2,3,"ng-template",10),h.TgZ(65,"h6"),h._uU(66),h.ALo(67,"translate"),h.qZA(),h.TgZ(68,"mat-list"),h.YNc(69,ml,10,9,"mat-list-item",25),h.qZA(),h.TgZ(70,"h6",26),h._uU(71),h.ALo(72,"translate"),h.qZA(),h.TgZ(73,"mat-form-field",27),h.TgZ(74,"input",28),h.NdJ("keyup.enter",function(){h.CHM(t);const e=h.oxw();return 0!==e.searchCtrl.value.length&&e.onSearchByString()}),h.ALo(75,"translate"),h.qZA(),h.qZA(),h.TgZ(76,"button",29),h.NdJ("click",function(){return h.CHM(t),h.oxw().onSearchByString()}),h.TgZ(77,"mat-icon"),h._uU(78,"search"),h.qZA(),h.qZA(),h.TgZ(79,"button",30),h.NdJ("click",function(){return h.CHM(t),h.oxw().addUsers()}),h._uU(80),h.ALo(81,"translate"),h.qZA(),h.YNc(82,Al,1,0,"mat-spinner",3),h.YNc(83,El,3,2,"div",13),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.xp6(1),h.Q6J("linear",!0),h.xp6(2),h.Q6J("stepControl",t.firstFormGroup),h.xp6(1),h.Q6J("formGroup",t.firstFormGroup),h.xp6(5),h.Oqu(h.lcZ(10,50,"DIALOGS.CREATE_SERVICE_MEMBER.NAME")),h.xp6(3),h.Q6J("ngIf",t.firstFormGroup.get("nameCtrl").hasError("required")),h.xp6(3),h.Oqu(h.lcZ(16,52,"DIALOGS.CREATE_SERVICE_MEMBER.EMAIL")),h.xp6(3),h.Q6J("ngIf",t.firstFormGroup.get("emailCtrl").hasError("required")),h.xp6(1),h.Q6J("ngIf",t.firstFormGroup.get("emailCtrl").hasError("pattern")),h.xp6(3),h.Oqu(h.lcZ(23,54,"DIALOGS.CREATE_SERVICE_MEMBER.SUBJECT_DN")),h.xp6(2),h.Q6J("required",!!t.firstFormGroup.get("issuerCtrl").value&&0!==t.firstFormGroup.get("issuerCtrl").value.trim().length),h.xp6(1),h.Q6J("ngIf",t.firstFormGroup.get("subjectCtrl").hasError("required")),h.xp6(3),h.Oqu(h.lcZ(29,56,"DIALOGS.CREATE_SERVICE_MEMBER.ISSUER_DN")),h.xp6(2),h.Q6J("required",!!t.firstFormGroup.get("subjectCtrl").value&&0!==t.firstFormGroup.get("subjectCtrl").value.trim().length),h.xp6(1),h.Q6J("ngIf",t.firstFormGroup.get("issuerCtrl").hasError("required")),h.xp6(1),h.Q6J("stepControl",t.secondFormGroup),h.xp6(1),h.Q6J("formGroup",t.secondFormGroup),h.xp6(5),h.Oqu(h.lcZ(39,58,"DIALOGS.CREATE_SERVICE_MEMBER.NAMESPACE")),h.xp6(3),h.Q6J("ngForOf",t.namespaceOptions),h.xp6(1),h.Q6J("floatLabel",t.secondFormGroup.get("loginCtrl").disabled?"always":null),h.xp6(2),h.Oqu(h.lcZ(45,60,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN")),h.xp6(2),h.Q6J("hidden",t.secondFormGroup.get("loginCtrl").disabled),h.xp6(1),h.Q6J("ngIf",t.secondFormGroup.get("loginCtrl").hasError("required")),h.xp6(1),h.Q6J("ngIf",t.secondFormGroup.get("loginCtrl").hasError("loginExists")),h.xp6(1),h.Q6J("ngIf",t.secondFormGroup.get("loginCtrl").hasError("pattern")&&!t.secondFormGroup.get("loginCtrl").hasError("minlength")),h.xp6(1),h.Q6J("ngIf",t.secondFormGroup.get("loginCtrl").hasError("maxlength")),h.xp6(1),h.Q6J("ngIf",t.secondFormGroup.get("loginCtrl").hasError("minlength")),h.xp6(1),h.Q6J("ngIf",t.secondFormGroup.get("loginCtrl").disabled),h.xp6(1),h.s9C("matTooltip",h.lcZ(54,62,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_NOT_SUPPORTED")),h.Q6J("matTooltipDisabled","Not selected"!==t.secondFormGroup.get("namespaceCtrl").value),h.xp6(2),h.Q6J("checked",t.secondFormGroup.get("generatePasswordCtrl").value&&t.secondFormGroup.get("generatePasswordCtrl").enabled)("value",!0),h.xp6(1),h.hij(" ",h.lcZ(57,64,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_RANDOM")," "),h.xp6(2),h.Q6J("checked",!t.secondFormGroup.get("generatePasswordCtrl").value&&t.secondFormGroup.get("generatePasswordCtrl").enabled)("value",!1),h.xp6(1),h.hij(" ",h.lcZ(60,66,"DIALOGS.CREATE_SERVICE_MEMBER.ENTER_PASSWORD")," "),h.xp6(2),h.ekj("input-disabled",t.secondFormGroup.get("generatePasswordCtrl").value),h.xp6(1),h.Q6J("formGroup",t.secondFormGroup)("passwordRequired",!t.secondFormGroup.get("generatePasswordCtrl").value)("namespace",t.selectedNamespace),h.xp6(4),h.Oqu(h.lcZ(67,68,"DIALOGS.CREATE_SERVICE_MEMBER.ASSOCIATED_USERS")),h.xp6(3),h.Q6J("ngForOf",t.assignedMembers),h.xp6(2),h.Oqu(h.lcZ(72,70,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_INFO")),h.xp6(3),h.s9C("placeholder",h.lcZ(75,72,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_PLACEHOLDER")),h.Q6J("formControl",t.searchCtrl),h.xp6(2),h.Q6J("disabled",t.loading||0===t.searchCtrl.value.length),h.xp6(3),h.Q6J("disabled",0===t.selection.selected.length),h.xp6(1),h.Oqu(h.lcZ(81,74,"DIALOGS.CREATE_SERVICE_MEMBER.ADD_USER")),h.xp6(2),h.Q6J("ngIf",t.loading),h.xp6(1),h.Q6J("ngIf",!t.loading)}}function _l(t,e){1&t&&h._UZ(0,"mat-spinner",39)}function bl(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",49),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).stepperPrevious()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.BACK")," "))}function Sl(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",30),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).stepperNext()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw(2);h.ekj("ml-2",void 0!==t.stepper&&0!==t.stepper.selectedIndex)("ml-auto",!(void 0!==t.stepper&&0!==t.stepper.selectedIndex)),h.Q6J("disabled",t.getStepperNextConditions()),h.xp6(1),h.hij(" ",h.lcZ(2,6,"DIALOGS.CREATE_SERVICE_MEMBER.NEXT")," ")}}function Nl(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",50),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).onCreate()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw(2);h.Q6J("disabled",t.firstFormGroup.invalid||"Not selected"!==t.secondFormGroup.get("namespaceCtrl").value&&t.secondFormGroup.invalid),h.xp6(1),h.Oqu(h.lcZ(2,2,"DIALOGS.CREATE_SERVICE_MEMBER.CREATE"))}}function Ol(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",44),h.TgZ(1,"button",45),h.NdJ("click",function(){return h.CHM(t),h.oxw().onCancel()}),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,bl,3,3,"button",46),h.YNc(5,Sl,3,8,"button",47),h.YNc(6,Nl,3,4,"button",48),h.qZA()}if(2&t){const t=h.oxw();h.xp6(2),h.hij(" ",h.lcZ(3,4,"DIALOGS.CREATE_SERVICE_MEMBER.CANCEL")," "),h.xp6(2),h.Q6J("ngIf",void 0!==t.stepper&&0!==t.stepper.selectedIndex),h.xp6(1),h.Q6J("ngIf",void 0!==t.stepper&&t.stepper.selectedIndex!==t.stepper._steps.length-1),h.xp6(1),h.Q6J("ngIf",void 0!==t.stepper&&t.stepper.selectedIndex===t.stepper._steps.length-1)}}let vl=(()=>{class t{constructor(t,e,i,o,s,a,n,r,l,c){this.dialogRef=t,this.data=e,this.membersManagerService=i,this.usersManagerService=o,this.notificator=s,this.translate=a,this.store=n,this.apiRequestConfiguration=r,this._formBuilder=l,this.cd=c,this.namespaceOptions=[],this.selectedNamespace=null,this.namespaceRules=[],this.parsedRules=new Map,this.firstSearchDone=!1,this.searchCtrl=new me.NI(""),this.members=[],this.selection=new cs.Ov(!0,[]),this.tableId=Ts.j1,this.assignedMembers=[],this.candidate={},this.successMessageMember="",this.successMessagePwd="",this.processing=!1,a.get("DIALOGS.CREATE_SERVICE_MEMBER.SUCCESS_MEMBER").subscribe(t=>this.successMessageMember=t),a.get("DIALOGS.CREATE_SERVICE_MEMBER.SUCCESS_PWD").subscribe(t=>this.successMessagePwd=t)}ngAfterViewInit(){this.cd.detectChanges()}ngOnInit(){this.firstFormGroup=this._formBuilder.group({nameCtrl:["",me.kI.required],emailCtrl:["",[me.kI.required,me.kI.pattern("\\w+([.-]?\\w+)*@\\w+([.-]?\\w+)*(.\\w{2,3})+")]],subjectCtrl:[null],issuerCtrl:[null]}),this.secondFormGroup=this._formBuilder.group({namespaceCtrl:["Not selected"],loginCtrl:["",[me.kI.pattern("^[a-z][a-z0-9_-]+$"),me.kI.maxLength(15),me.kI.minLength(2)]],passwordCtrl:["",me.kI.required,[(0,Hr.yT)(null,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],generatePasswordCtrl:[!0]},{validators:c.dN.passwordMatchValidator}),this.namespaceOptions=["Not selected"],this.membersManagerService.getAllNamespacesRules().subscribe(t=>{this.namespaceRules=t,this.parseNamespaceRules(),this.loading=!1}),this.onNamespaceChanged("Not selected");const t=this.store.getPerunPrincipal().user;this.membersManagerService.getMembersByUser(t.id).subscribe(e=>{let i={};for(const t of e)t.voId===this.data.voId&&(i=t);i.user=t,this.assignedMembers.push(i)})}existingLoginValidator(){return t=>{let e=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase();return e="not selected"===e?"mu":e,t.valueChanges.pipe((0,kr.b)(500),(0,Br.q)(1),(0,jr.w)(()=>this.usersManagerService.isLoginAvailable(e,t.value).pipe((0,wn.U)(t=>t?null:{loginExists:!0}))))}}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 t=this.firstFormGroup.get("subjectCtrl");t&&t.value&&(this.candidate.userExtSource={},this.candidate.userExtSource.login=t.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 e=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase(),i=this.parsedRules.get(e),o=`urn:perun:user:attribute-def:def:login-namespace:${e}`;"Not selected"!==this.secondFormGroup.get("namespaceCtrl").value&&"disabled"===i.login?this.usersManagerService.generateAccountForName(e,this.firstFormGroup.get("nameCtrl").value).subscribe(t=>{this.candidate.attributes[o]=t[o],this.createSpecificMember()},()=>this.processing=!1):("Not selected"!==this.secondFormGroup.get("namespaceCtrl").value&&(this.candidate.attributes[o]=this.secondFormGroup.get("loginCtrl").value),this.createSpecificMember())}createSpecificMember(){this.membersManagerService.createSpecificMember({vo:this.data.voId,specificUserType:"SERVICE",specificUserOwners:this.assignedMembers.map(t=>t.user),candidate:this.candidate}).subscribe(t=>{this.membersManagerService.validateMemberAsync(t.id).subscribe(t=>{this.notificator.showSuccess(this.successMessageMember),"Not selected"!==this.secondFormGroup.get("namespaceCtrl").value?this.setPassword(t,this.secondFormGroup.get("generatePasswordCtrl").value):(this.dialogRef.close(!0),this.processing=!1)},()=>this.processing=!1)},()=>this.processing=!1)}parseNamespaceRules(){for(const t of this.namespaceRules){this.namespaceOptions.push(t.namespaceName);const e={login:"disabled"};this.parseAttributes(e,t.requiredAttributes,"required"),this.parseAttributes(e,t.optionalAttributes,"optional"),this.parsedRules.set(t.namespaceName,e)}}parseAttributes(t,e,i){for(const o of e)switch(o){case"login":t.login=i}}setPassword(t,e){const i=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase(),o=this.secondFormGroup.get("passwordCtrl").value;if(e){if("disabled"===this.parsedRules.get(i).login)return void this.validateMember(t.id);this.usersManagerService.reserveRandomPassword(t.userId,i).subscribe(()=>{this.usersManagerService.validatePasswordForUser(t.userId,i).subscribe(()=>{this.validateMember(t.id,!1)},()=>{this.processing=!1,this.dialogRef.close(!0)})},()=>{this.processing=!1,this.dialogRef.close(!0)})}else this.usersManagerService.reservePasswordForUser(t.userId,i,o).subscribe(()=>{this.usersManagerService.validatePasswordForUser(t.userId,i).subscribe(()=>{this.validateMember(t.id)},()=>{this.processing=!1,this.dialogRef.close(!0)})},()=>{this.processing=!1,this.dialogRef.close(!0)})}validateMember(t,e=!0){this.membersManagerService.validateMemberAsync(t).subscribe(()=>{e&&this.notificator.showSuccess(this.successMessagePwd),this.dialogRef.close(!0),this.processing=!1},()=>{this.processing=!1,this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}onSearchByString(){this.loading=!0,this.membersManagerService.findCompleteRichMembersForVo(this.data.voId,[null],this.searchCtrl.value).subscribe(t=>{this.members=t.filter(t=>!t.user.specificUser),this.firstSearchDone=!0,this.loading=!1})}addUsers(){const t=this.assignedMembers.map(t=>t.id);this.selection.selected.forEach(e=>{t.includes(e.id)||this.assignedMembers.push(e)}),this.selection.clear()}removeUser(t){this.assignedMembers=this.assignedMembers.filter(e=>e.id!==t.id)}onNamespaceChanged(t){this.selectedNamespace=t.toLowerCase();const e=this.secondFormGroup.get("loginCtrl"),i=this.secondFormGroup.get("passwordCtrl"),o=this.secondFormGroup.get("passwordAgainCtrl"),s=this.secondFormGroup.get("generatePasswordCtrl");if("Not selected"!==t){if("disabled"===this.parsedRules.get(this.selectedNamespace).login)e.disable(),e.setValue("");else{const t=[me.kI.required,me.kI.pattern("^[a-z][a-z0-9_-]+$"),me.kI.maxLength(15),me.kI.minLength(2)];(0,c.mH)(e,t,[this.existingLoginValidator()])}(0,c.mH)(s,[]),this.passwordOptionChanged()}else e.disable(),e.setValue(""),i.disable(),i.setValue(""),o.disable(),o.setValue(""),s.disable(),s.dirty||s.setValue(!0)}passwordOptionChanged(){const t=this.secondFormGroup.get("passwordCtrl"),e=this.secondFormGroup.get("passwordAgainCtrl");this.secondFormGroup.get("generatePasswordCtrl").value?(t.disable(),t.setValue(""),e.disable(),e.setValue("")):((0,c.mH)(t,[me.kI.required],[(0,Hr.yT)(this.selectedNamespace,this.usersManagerService,this.apiRequestConfiguration)]),(0,c.mH)(e,[]))}getStepperNextConditions(){switch(this.stepper.selectedIndex){case 0:return this.firstFormGroup.invalid||this.firstFormGroup.pending;case 1:return this.secondFormGroup.invalid||this.secondFormGroup.pending||"Not selected"===this.secondFormGroup.get("namespaceCtrl").value;default:return!1}}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(l.uq),h.Y36(l.Fv),h.Y36(u.V6),h.Y36(S.sK),h.Y36(u.d6),h.Y36(u.F5),h.Y36(me.qu),h.Y36(h.sBO))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-create-service-member-dialog"]],viewQuery:function(t,e){if(1&t&&h.Gf(Wr,5),2&t){let t;h.iGM(t=h.CRH())&&(e.stepper=t.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"],["formControlName","namespaceCtrl",3,"valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"floatLabel"],["formControlName","loginCtrl","matInput","","required","",3,"hidden"],["class","input-disabled",4,"ngIf"],["formControlName","generatePasswordCtrl","matTooltipPosition","left",1,"display-flex","mt-3",3,"matTooltipDisabled","matTooltip","ngModelChange"],[3,"checked","value"],[3,"formGroup","passwordRequired","namespace"],[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"],[3,"value"],[1,"input-disabled"],[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(t,e){1&t&&(h.TgZ(0,"div",0),h.TgZ(1,"h1",1),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,Zl,84,76,"div",2),h.YNc(5,_l,1,0,"mat-spinner",3),h.YNc(6,Ol,7,6,"div",4),h.qZA()),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,4,"DIALOGS.CREATE_SERVICE_MEMBER.TITLE")),h.xp6(2),h.Q6J("ngIf",!e.processing),h.xp6(1),h.Q6J("ngIf",e.processing),h.xp6(1),h.Q6J("ngIf",!e.processing))},directives:[o.O5,A.xY,yn.Vq,yn.C0,me._Y,me.JL,me.sg,yn.VY,fe.KE,fe.hX,me.Fj,Ze.Nt,me.JJ,me.u,me.Q7,Ee.gD,o.sg,Ae.VQ,Z.gM,Ae.U0,$r.G,zr.i$,me.oH,b.lW,E.Hw,fe.TO,_e.ey,zr.Tg,f.$g,Xr.O,dt.w,A.H8],pipes:[S.X$,Mt.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}"]}),t})();var xl=i(4374);function Ll(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",7),h.NdJ("click",function(){return h.CHM(t),h.oxw().onRemoveMembers()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("disabled",t.selection.isEmpty()),h.xp6(1),h.hij(" ",h.lcZ(2,2,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.DELETE"),"\n")}}function Cl(t,e){1&t&&h._UZ(0,"mat-spinner",8)}const Rl=function(){return["checkbox","id","type","fullName","status"]};function Ml(t,e){if(1&t&&h._UZ(0,"perun-web-apps-members-list",9),2&t){const t=h.oxw();h.Q6J("tableId",t.tableId)("displayedColumns",h.DdM(5,Rl))("selection",t.selection)("filter",t.searchString)("members",t.members)}}const Dl=[{path:"",component:a.Y},{path:":voId",component:at,children:[{path:"",component:$,data:{animation:"VoOverviewPage"}},{path:"attributes",component:ue,data:{animation:"VoAttributesPage"}},{path:"groups",component:z.G,data:{animation:"VoGroupsPage"}},{path:"members",component:X.y,data:{animation:"VoMembersPage"}},{path:"resources",component:ne,children:[{path:"",component:ns,data:{animation:"VoResourcesOverviewPage"}},{path:"preview",component:rs.z,data:{animation:"VoResourcesPreviewPage"}},{path:"states",component:ls.z,data:{animation:"VoResourcesStatesPage"}},{path:"tags",component:Os,data:{animation:"VoResourcesTagsPage"}}]},{path:"applications",component:re.c,data:{animation:"VoApplicationsPage"}},{path:"applications/:applicationId",component:Ci,data:{animation:"VoApplicationDetailPage"}},{path:"sponsoredMembers",component:mr.T,data:{animation:"VoSettingsSponsoredMembersPage"}},{path:"serviceAccounts",component:(()=>{class t{constructor(t,e,i,o,s){this.membersManager=t,this.dialog=e,this.authResolver=i,this.authzService=o,this.entityStorageService=s,this.members=[],this.selection=new cs.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=Ts._c}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.removeAuth=this.authzService.isAuthorized("deleteMembers_List_policy",[this.vo]),this.refresh()}createServiceMember(){const t=(0,c.kZ)();t.width="750px",t.data={voId:this.vo.id},this.dialog.open(vl,t).afterClosed().subscribe(t=>{t&&this.refresh()})}onRemoveMembers(){const t=(0,c.kZ)();t.width="450px",t.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(xl.X,t).afterClosed().subscribe(t=>{t&&(this.refresh(),this.selection.clear())})}applyFilter(t){this.searchString=t}refresh(){this.loading=!0,this.membersManager.findCompleteRichMembersForVo(this.vo.id,[null],"(Service)").subscribe(t=>{this.members=t,this.loading=!1})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.uq),h.Y36(A.uw),h.Y36(u.x4),h.Y36(u.x4),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,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","filter","members",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","displayedColumns","selection","filter","members"]],template:function(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"perun-web-apps-refresh-button",1),h.NdJ("refresh",function(){return e.refresh()}),h.qZA(),h.TgZ(4,"button",2),h.NdJ("click",function(){return e.createServiceMember()}),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.YNc(7,Ll,3,4,"button",3),h.TgZ(8,"perun-web-apps-immediate-filter",4),h.NdJ("filter",function(t){return e.applyFilter(t)}),h.qZA(),h.YNc(9,Cl,1,0,"mat-spinner",5),h.YNc(10,Ml,1,6,"perun-web-apps-members-list",6)),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,6,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.TITLE")),h.xp6(4),h.hij(" ",h.lcZ(6,8,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.CREATE"),"\n"),h.xp6(2),h.Q6J("ngIf",e.removeAuth),h.xp6(1),h.Q6J("placeholder","VO_DETAIL.SETTINGS.SERVICE_MEMBERS.FILTER"),h.xp6(1),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[fs.t,b.lW,o.O5,Es.L,f.$g,Xr.O],pipes:[S.X$],styles:[""]}),t})(),data:{animation:"VoSettingsServiceMembersPage"}},{path:"statistics",component:Lr,data:{animation:"VoStatisticsPage"}},{path:"settings",component:le,children:[{path:"",component:ge,data:{animation:"VoSettingsOverviewPage"}},{path:"expiration",component:ye,data:{animation:"VoSettingsExpirationPage"}},{path:"managers",component:Je,data:{animation:"VoSettingsManagersPage"}},{path:"applicationForm",component:Hi.w,data:{animation:"SettingsApplicationFormPage"}},{path:"applicationForm/preview",component:ko,data:{animation:"SettingsApplicationFormPreviewPage"}},{path:"applicationForm/manageGroups",component:Fr},{path:"notifications",component:Da,data:{animation:"SettingsApplicationFormNotificationsPage"}},{path:"extsources",component:ln,data:{animation:"VoSettingsExtSourcesPage"}}]}]},{path:":voId/members/:memberId",component:k,children:[{path:"",component:Wt,data:{animation:"MemberOverviewPage"}},{path:"attributes",component:as,data:{animation:"MemberAttributesPage"}},{path:"groups",component:Kt.j,data:{animation:"MemberGroupsPage"}},{path:"applications",component:qn,data:{animation:"MemberApplicationsPage"}},{path:"applications/:applicationId",component:Ci,data:{animation:"MemberApplicationDetailPage"}},{path:"resources",component:ar,data:{animation:"MemberResourcesPage"}}]},{path:":voId/groups/:groupId",component:w,children:[{path:"",component:se,data:{animation:"GroupOverviewPage"}},{path:"members",component:Ri.y,data:{animation:"GroupMembersPage"}},{path:"subgroups",component:ae.u,data:{animation:"GroupSubgroupsPage"}},{path:"applications",component:Ge.W,data:{animation:"GroupApplicationsPage"}},{path:"resources",component:Mi.q,data:{animation:"GroupResourcesPage"}},{path:"attributes",component:Qi,data:{animation:"GroupAttributesPage"}},{path:"statistics",component:Mr,data:{animation:"GroupStatisticsPage"}},{path:"settings",component:Di,children:[{path:"",component:ji,data:{animation:"GroupSettingsOverviewPage"}},{path:"expiration",component:xs,data:{animation:"GroupSettingsExpirationPage"}},{path:"managers",component:Ls,data:{animation:"GroupSettingsManagersPage"}},{path:"applicationForm",component:Ua.Z,data:{animation:"GroupSettingsApplicationFormPage"}},{path:"applicationForm/preview",component:ko},{path:"notifications",component:Fa,data:{animation:"GroupSettingsNotificationsPage"}},{path:"relations",component:On,data:{animation:"GroupSettingsRelationsPage"}},{path:"extsources",component:Er,data:{animation:"GroupSettingsExtsourcesPage"}}]},{path:"applications/:applicationId",component:Ci,data:{animation:"GroupApplicationDetailPage"}}]},{path:":voId/resources/:resourceId",component:nr.b,children:[{path:"",component:rr.H,data:{animation:"ResourceOverviewPage"}},{path:"groups",component:lr.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:gr.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"attributes",component:pr.X,data:{animation:"ResourceAttributesPage"}},{path:"members",component:hr.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:Qr.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:cr.t,children:[{path:"",component:ur.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:dr.O,data:{animation:"ResourceSettingsManagersPage"}}]}]}];let Ul=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({imports:[[s.Bz.forChild(Dl)],s.Bz]}),t})();var ql=i(28780),Pl=i(22727),wl=i(22280);let yl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({imports:[[o.ez,Ul,ql.m,Pl.r,Zn.ez,wl.d4,c.Je]]}),t})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/427-es2015.beaf65977e4daa30fd76.js b/dist/apps/admin-gui/427-es2015.beaf65977e4daa30fd76.js new file mode 100644 index 000000000..245250ba3 --- /dev/null +++ b/dist/apps/admin-gui/427-es2015.beaf65977e4daa30fd76.js @@ -0,0 +1 @@ +(self.webpackChunkperun_web_apps=self.webpackChunkperun_web_apps||[]).push([[427],{67427:function(t,e,i){"use strict";i.r(e),i.d(e,{VosModule:function(){return yl}});var o=i(61511),s=i(57629),a=i(17249),n=i(75585),r=i(17),l=i(65249),c=i(84140),u=i(68416),p=i(67004),d=i(6527),g=i(43491),h=i(31572),m=i(48958),A=i(84608),I=i(24820),T=i(66297),f=i(67806),E=i(43691),Z=i(36922),_=i(21575),b=i(15980),S=i(48160),N=i(44385),O=i(52984),v=i(51392);function x(t,e){1&t&&h._UZ(0,"mat-spinner",3)}function L(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",13),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).editGroup()}),h.TgZ(1,"mat-icon"),h._uU(2,"edit"),h.qZA(),h.qZA()}}function C(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",14),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).deleteGroup()}),h.TgZ(1,"mat-icon"),h._uU(2,"delete_forever"),h.qZA(),h.qZA()}}function R(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",17),h.NdJ("click",function(){return h.CHM(t),h.oxw(3).onSyncDetail()}),h.ALo(1,"groupSyncIcon"),h.TgZ(2,"mat-icon"),h.ALo(3,"groupSyncIconColor"),h._uU(4),h.ALo(5,"groupSyncIcon"),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(3);h.Q6J("disabled","sync_disabled"===h.lcZ(1,5,t.group)),h.xp6(2),h.Tol(h.lcZ(3,7,t.group)),h.xp6(2),h.hij(" ",h.lcZ(5,9,t.group)," ")}}function M(t,e){if(1&t&&(h.TgZ(0,"span"),h._uU(1),h.ALo(2,"translate"),h.TgZ(3,"span",15),h.ALo(4,"translate"),h.ALo(5,"groupSyncToolTip"),h.YNc(6,R,6,11,"button",16),h.qZA(),h.qZA()),2&t){const t=h.oxw(2);h.xp6(1),h.hij(" , ",h.lcZ(2,4,"GROUP_DETAIL.SYNCHRONIZATION"),": "),h.xp6(2),h.Q6J("matTooltipPosition","above")("matTooltip",h.lcZ(4,6,h.lcZ(5,8,t.group))),h.xp6(3),h.Q6J("ngIf",t.syncAuth)}}const D=function(){return{color:"black"}},U=function(t,e){return["/organizations",t,"groups",e]},q=function(t){return["/organizations",t]};function P(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"div",4),h._UZ(2,"mat-icon",5),h.ALo(3,"translate"),h.TgZ(4,"div",6),h.TgZ(5,"div",7),h.TgZ(6,"a",8),h._uU(7),h.qZA(),h.TgZ(8,"span",9),h._uU(9),h.qZA(),h.YNc(10,L,3,0,"button",10),h.YNc(11,C,3,0,"button",11),h.qZA(),h.TgZ(12,"div"),h._uU(13),h.ALo(14,"translate"),h.qZA(),h.TgZ(15,"span",12),h._uU(16),h.ALo(17,"translate"),h.ALo(18,"translate"),h.TgZ(19,"a",8),h._uU(20),h.qZA(),h._uU(21),h.ALo(22,"translate"),h.YNc(23,M,7,10,"span",2),h.qZA(),h.qZA(),h.qZA(),h._UZ(24,"app-animated-router-outlet"),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.s9C("matTooltip",h.lcZ(3,16,"GROUP_DETAIL.ENTITY")),h.Q6J("ngStyle",h.DdM(26,D)),h.xp6(4),h.Q6J("routerLink",h.WLB(27,U,t.vo.id,t.group.id)),h.xp6(1),h.hij(" ",t.group.shortName," "),h.xp6(2),h.hij(" \xa0#",t.group.id," "),h.xp6(1),h.Q6J("ngIf","members"!==t.group.name&&t.editAuth),h.xp6(1),h.Q6J("ngIf","members"!==t.group.name&&t.deleteAuth),h.xp6(2),h.AsE("",h.lcZ(14,18,"GROUP_DETAIL.UUID"),": ",t.group.uuid,""),h.xp6(3),h.AsE(" ",h.lcZ(17,20,"GROUP_DETAIL.ENTITY"),", ",h.lcZ(18,22,"GROUP_DETAIL.VO_NAME"),": "),h.xp6(3),h.Q6J("routerLink",h.VKq(30,q,t.vo.id)),h.xp6(1),h.Oqu(t.vo.name),h.xp6(1),h.AsE(", ",h.lcZ(22,24,"GROUP_DETAIL.DESCRIPTION"),": ",t.group.description," "),h.xp6(2),h.Q6J("ngIf",t.syncEnabled)}}let w=(()=>{class t{constructor(t,e,i,o,s,a,n,r,l,c){this.sideMenuService=t,this.voService=e,this.route=i,this.sideMenuItemService=o,this.groupService=s,this.dialog=a,this.guiAuthResolver=n,this.router=r,this.entityStorageService=l,this.reloadEntityDetail=c,this.editAuth=!1,this.deleteAuth=!1,this.loading=!1,this.syncAuth=!1,this.syncEnabled=!1,this.attrNames=[p.r.GROUP_SYNC_ENABLED,p.r.GROUP_LAST_SYNC_STATE,p.r.GROUP_LAST_SYNC_TIMESTAMP,p.r.GROUP_STRUCTURE_SYNC_ENABLED,p.r.GROUP_LAST_STRUCTURE_SYNC_STATE,p.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]}ngOnInit(){this.reloadEntityDetail.entityDetailChange.subscribe(()=>{this.reloadData()}),this.reloadData()}isSynchronized(){return this.group.attributes.some(t=>"synchronizationEnabled"===t.friendlyName&&null!==t.value&&"true"===t.value.toString())}onSyncDetail(){const t=(0,c.kZ)();t.data={groupId:this.group.id,theme:"group-theme"},this.dialog.open(d.Bp,t)}editGroup(){const t=(0,c.kZ)();t.width="450px",t.data={theme:"group-theme",group:this.group,dialogType:d.Eg.GROUP},this.dialog.open(d.rd,t).afterClosed().subscribe(t=>{t&&this.groupService.getGroupById(this.group.id).subscribe(t=>{this.group=t,this.setMenuItems()})})}reloadData(){this.loading=!0,this.route.params.subscribe(t=>{const e=t.groupId;this.voService.getVoById(t.voId).subscribe(t=>{this.vo=t,this.groupService.getGroupById(e).subscribe(i=>{this.group=i,this.entityStorageService.setEntity({id:i.id,voId:t.id,parentGroupId:i.parentGroupId,beanName:i.beanName}),(0,c.sF)("groups",this.group),(0,c.XI)(this.group,t.name),this.guiAuthResolver.isAuthorized("getRichGroupByIdWithAttributesByNames_int_List_policy",[this.group])?this.groupService.getRichGroupByIdWithAttributesByNames(e,this.attrNames).subscribe(t=>{this.group=t,this.syncEnabled=this.isSynchronized(),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 t=this.sideMenuItemService.parseVo(this.vo),e=this.sideMenuItemService.parseGroup(this.group);this.sideMenuService.setAccessMenuItems([t,e])}deleteGroup(){const t=(0,c.kZ)();t.width="500px",t.data={theme:"group-theme",groups:[this.group]},this.dialog.open(g.P,t).afterClosed().subscribe(t=>{t&&this.router.navigate(["../"],{relativeTo:this.route})})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(m.D),h.Y36(l.YF),h.Y36(s.gz),h.Y36(n.V),h.Y36(l.ff),h.Y36(A.uw),h.Y36(u.x4),h.Y36(s.F0),h.Y36(u.fb),h.Y36(I.G))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-detail-page"]],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"],["mat-icon-button","","aria-label","Edit group",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","","aria-label","Edit group",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(t,e){1&t&&(h.TgZ(0,"div",0),h._UZ(1,"perun-web-apps-back-button"),h.YNc(2,x,1,0,"mat-spinner",1),h.YNc(3,P,25,32,"div",2),h.qZA()),2&t&&(h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading&&void 0!==e.vo&&void 0!==e.group))},directives:[T.W,o.O5,f.$g,E.Hw,Z.gM,o.PC,s.yS,_.A,b.lW],pipes:[S.X$,N.r,O.J,v.F],styles:[""],data:{animation:[r.Ji]}}),t})();function y(t,e){1&t&&h._UZ(0,"mat-spinner",3)}const G=function(t){return["/admin","users",t]};function Y(t,e){if(1&t&&(h.TgZ(0,"a",8),h._uU(1),h.qZA()),2&t){const t=h.oxw(2);h.Q6J("routerLink",h.VKq(2,G,t.member.userId)),h.xp6(1),h.hij(" ",t.member.userId," ")}}function J(t,e){if(1&t&&(h.TgZ(0,"span"),h._uU(1),h.qZA()),2&t){const t=h.oxw(2);h.xp6(1),h.Oqu(t.member.userId)}}const V=function(){return{color:"black"}},F=function(t,e){return["/organizations",t,"members",e]};function Q(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"div",4),h._UZ(2,"mat-icon",5),h.ALo(3,"translate"),h.TgZ(4,"div",6),h.TgZ(5,"div",7),h.TgZ(6,"a",8),h._uU(7),h.qZA(),h.TgZ(8,"span",9),h._uU(9),h.qZA(),h.qZA(),h.TgZ(10,"span",10),h._uU(11),h.ALo(12,"translate"),h.ALo(13,"translate"),h.YNc(14,Y,2,4,"a",11),h.YNc(15,J,2,1,"span",2),h.qZA(),h.qZA(),h.qZA(),h._UZ(16,"app-animated-router-outlet"),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.s9C("matTooltip",h.lcZ(3,9,"MEMBER_DETAIL.ENTITY")),h.Q6J("ngStyle",h.DdM(15,V)),h.xp6(4),h.Q6J("routerLink",h.WLB(16,F,t.vo.id,t.member.id)),h.xp6(1),h.hij(" ",t.fullName," "),h.xp6(2),h.hij(" \xa0#",t.member.id," "),h.xp6(2),h.AsE(" ",h.lcZ(12,11,"MEMBER_DETAIL.ENTITY"),", ",h.lcZ(13,13,"MEMBER_DETAIL.USER_ID"),": "),h.xp6(3),h.Q6J("ngIf",t.isAuthorized),h.xp6(1),h.Q6J("ngIf",!t.isAuthorized)}}let k=(()=>{class t{constructor(t,e,i,o,s,a,n){this.sideMenuItemService=t,this.translate=e,this.sideMenuService=i,this.membersService=o,this.voService=s,this.route=a,this.authResolver=n,this.fullName="",this.isAuthorized=!1,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(t=>{const e=t.voId,i=t.memberId;this.isAuthorized=this.authResolver.isPerunAdminOrObserver(),this.voService.getVoById(e).subscribe(t=>{this.vo=t,this.membersService.getRichMemberWithAttributes(i).subscribe(t=>{this.member=t;const e=this.sideMenuItemService.parseVo(this.vo),i=this.sideMenuItemService.parseMember(this.member,this.vo);this.fullName=i.label,this.sideMenuService.setAccessMenuItems([e,i]),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(n.V),h.Y36(S.sK),h.Y36(m.D),h.Y36(l.uq),h.Y36(l.YF),h.Y36(s.gz),h.Y36(u.x4))},t.\u0275cmp=h.Xpm({type:t,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(t,e){1&t&&(h.TgZ(0,"div",0),h._UZ(1,"perun-web-apps-back-button"),h.YNc(2,y,1,0,"mat-spinner",1),h.YNc(3,Q,17,19,"div",2),h.qZA()),2&t&&(h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading&&void 0!==e.vo&&void 0!==e.member))},directives:[T.W,o.O5,f.$g,E.Hw,Z.gM,o.PC,s.yS,_.A],pipes:[S.X$],styles:[""],data:{animation:[r.Ji]}}),t})();var B=i(8557);function j(t,e){1&t&&h._UZ(0,"mat-spinner",2)}function H(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"perun-web-apps-menu-buttons-field",3),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("items",t.navItems)("size","small")}}let $=(()=>{class t{constructor(t,e,i,o,s){this.sideMenuService=t,this.voService=e,this.router=i,this.authResolver=o,this.entityStorageService=s,this.items=[],this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.initNavItems(),this.loading=!1}initNavItems(){this.authResolver.isAuthorized("getCompleteRichMembers_Vo_List_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.vo.id}/members`,label:"MENU_ITEMS.VO.MEMBERS",style:"vo-btn"}),this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.vo.id}/groups`,label:"MENU_ITEMS.VO.GROUPS",style:"vo-btn"}),this.authResolver.isAuthorized("getRichResources_Vo_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/organizations/${this.vo.id}/resources`,label:"MENU_ITEMS.VO.RESOURCES",style:"vo-btn"}),this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.vo.id}/applications`,label:"MENU_ITEMS.VO.APPLICATIONS",style:"vo-btn"}),this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.vo.id}/sponsoredMembers`,label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",style:"vo-btn"}),this.authResolver.isAuthorized("createSpecificMember_Vo_Candidate_List_SpecificUserType_List_policy",[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.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.vo.id}/attributes`,label:"MENU_ITEMS.VO.ATTRIBUTES",style:"vo-btn"}),this.authResolver.isAuthorized("getMembersCount_Vo_Status_policy",[this.vo])&&this.authResolver.isAuthorized("getMembersCount_Vo_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-statistics",url:`/organizations/${this.vo.id}/statistics`,label:"MENU_ITEMS.VO.STATISTICS",style:"vo-btn"}),(this.authResolver.isManagerPagePrivileged(this.vo)||this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[this.vo])||this.authResolver.isThisVoAdminOrObserver(this.vo.id))&&this.navItems.push({cssIcon:"perun-settings2",url:`/organizations/${this.vo.id}/settings`,label:"MENU_ITEMS.VO.SETTINGS",style:"vo-btn"})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(m.D),h.Y36(l.YF),h.Y36(s.F0),h.Y36(u.x4),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,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(t,e){1&t&&(h.YNc(0,j,1,0,"mat-spinner",0),h.YNc(1,H,2,2,"div",1)),2&t&&(h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,f.$g,B.L],styles:[""]}),t})();var z=i(48002),X=i(28940),W=i(99608);function K(t,e){1&t&&h._UZ(0,"mat-spinner",3)}function tt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",13),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).editVo()}),h.TgZ(1,"mat-icon"),h._uU(2,"edit"),h.qZA(),h.qZA()}}function et(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",14),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).removeVo()}),h.TgZ(1,"mat-icon"),h._uU(2,"delete_forever"),h.qZA(),h.qZA()}}const it=function(){return{color:"black"}},ot=function(t){return["/organizations/",t]};function st(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"div",4),h._UZ(2,"mat-icon",5),h.ALo(3,"translate"),h.TgZ(4,"div",6),h.TgZ(5,"div",7),h.TgZ(6,"a",8),h._uU(7),h.qZA(),h.TgZ(8,"span",9),h._uU(9),h.qZA(),h.YNc(10,tt,3,0,"button",10),h.YNc(11,et,3,0,"button",11),h.qZA(),h.TgZ(12,"span",12),h._uU(13),h.ALo(14,"translate"),h.ALo(15,"translate"),h.qZA(),h.qZA(),h.qZA(),h._UZ(16,"app-animated-router-outlet"),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.s9C("matTooltip",h.lcZ(3,10,"VO_DETAIL.ENTITY")),h.Q6J("ngStyle",h.DdM(16,it)),h.xp6(4),h.Q6J("routerLink",h.VKq(17,ot,t.vo.id)),h.xp6(1),h.hij(" ",t.vo.name," "),h.xp6(2),h.hij(" \xa0#",t.vo.id," "),h.xp6(1),h.Q6J("ngIf",t.editAuth),h.xp6(1),h.Q6J("ngIf",t.removeAuth),h.xp6(2),h.lnq(" ",h.lcZ(14,12,"VO_DETAIL.ENTITY"),", ",h.lcZ(15,14,"VO_DETAIL.SHORT_NAME"),": ",t.vo.shortName," ")}}let at=(()=>{class t{constructor(t,e,i,o,s,a,n,r,l){this.sideMenuService=t,this.voService=e,this.route=i,this.router=o,this.sideMenuItemService=s,this.dialog=a,this.authResolver=n,this.entityStorageService=r,this.reloadEntityDetail=l,this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.subscribe(()=>{this.reloadData()})}reloadData(){this.loading=!0,this.route.params.subscribe(t=>{this.voService.getVoById(t.voId).subscribe(t=>{this.vo=t,this.entityStorageService.setEntity({id:t.id,beanName:t.beanName}),this.editAuth=this.authResolver.isAuthorized("updateVo_Vo_policy",[this.vo]),this.removeAuth=this.authResolver.isAuthorized("deleteVo_Vo_policy",[this.vo]),this.setMenuItems(),(0,c.sF)("vos",this.vo),(0,c.XI)(this.vo),this.loading=!1},()=>this.loading=!1)})}editVo(){const t=(0,c.kZ)();t.width="450px",t.data={theme:"vo-theme",vo:this.vo,dialogType:d.Eg.VO},this.dialog.open(d.rd,t).afterClosed().subscribe(t=>{t&&this.voService.getVoById(this.vo.id).subscribe(t=>{this.vo=t,this.setMenuItems()})})}setMenuItems(){const t=this.sideMenuItemService.parseVo(this.vo);this.sideMenuService.setAccessMenuItems([t])}removeVo(){const t=(0,c.kZ)();t.width="500px",t.data={theme:"vo-theme",vos:[this.vo]},this.dialog.open(W.o,t).afterClosed().subscribe(t=>{t&&this.router.navigate([""])})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(m.D),h.Y36(l.YF),h.Y36(s.gz),h.Y36(s.F0),h.Y36(n.V),h.Y36(A.uw),h.Y36(u.x4),h.Y36(u.fb),h.Y36(I.G))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-detail-page"]],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"],["svgIcon","perun-vo-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","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"],["mat-icon-button","","aria-label","Edit Vo",3,"click"],["mat-icon-button","","aria-label","Remove Vo","data-cy","delete-vo",3,"click"]],template:function(t,e){1&t&&(h.TgZ(0,"div",0),h._UZ(1,"perun-web-apps-back-button"),h.YNc(2,K,1,0,"mat-spinner",1),h.YNc(3,st,17,19,"div",2),h.qZA()),2&t&&(h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading&&void 0!==e.vo))},directives:[T.W,o.O5,f.$g,E.Hw,Z.gM,o.PC,s.yS,_.A,b.lW],pipes:[S.X$],styles:[".shortname[_ngcontent-%COMP%]{font-size:medium}"],data:{animation:[r.Ji]}}),t})();var nt=i(67033),rt=i(95121),lt=i(79592),ct=i(27439),ut=i(64737),pt=i(37665),dt=i(39571),gt=i(74842),ht=i(37043),mt=i(73669),At=i(58506);function It(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"perun-web-apps-group-search-select",7),h.NdJ("groupSelected",function(e){return h.CHM(t),h.oxw().groupIsSelected(e)}),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("groups",t.groups)("firstSelectedGroup",t.selectedGroup)}}function Tt(t,e){1&t&&h._UZ(0,"mat-spinner",8)}function ft(t,e){1&t&&(h.TgZ(0,"app-alert",9),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.NO_GROUPS_FOUND")))}function Et(t,e){1&t&&h._UZ(0,"th",17)}function Zt(t,e){if(1&t&&(h.TgZ(0,"td",18),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.hij("",t,":")}}function _t(t,e){1&t&&h._UZ(0,"th",17)}function bt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",22),h.NdJ("click",function(){return h.CHM(t),h.oxw(4).changeStatus()}),h.TgZ(1,"mat-icon"),h._uU(2,"edit"),h.qZA(),h.qZA()}}function St(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"i"),h.ALo(2,"memberStatusIconColor"),h._uU(3),h.ALo(4,"memberStatusIcon"),h.qZA(),h.TgZ(5,"b",20),h._uU(6),h.ALo(7,"transformMemberStatus"),h.qZA(),h.YNc(8,bt,3,0,"button",21),h.qZA()),2&t){const t=h.oxw(3);h.xp6(1),h.Gre("material-icons vert-center mr-1 ",h.lcZ(2,6,t.selectedMember.groupStatus),""),h.xp6(2),h.hij(" ",h.lcZ(4,8,t.selectedMember.groupStatus)," "),h.xp6(3),h.hij(" ",h.lcZ(7,10,t.selectedMember.groupStatus)," "),h.xp6(2),h.Q6J("ngIf",t.authResolver.isThisVoAdmin(t.vo.id)||t.authResolver.isThisGroupAdmin(t.selectedGroup.id))}}function Nt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",22),h.NdJ("click",function(){return h.CHM(t),h.oxw(4).changeExpiration()}),h.TgZ(1,"mat-icon"),h._uU(2,"edit"),h.qZA(),h.qZA()}}function Ot(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"i",2),h._uU(2),h.ALo(3,"parseDate"),h.qZA(),h.YNc(4,Nt,3,0,"button",21),h.qZA()),2&t){const t=h.oxw(3);h.xp6(2),h.hij(" ",h.lcZ(3,2,t.expiration)," "),h.xp6(2),h.Q6J("ngIf",t.authResolver.isThisVoAdmin(t.vo.id)||t.authResolver.isThisGroupAdmin(t.selectedGroup.id))}}function vt(t,e){if(1&t&&(h.TgZ(0,"td",19),h.YNc(1,St,9,12,"div",6),h.YNc(2,Ot,5,4,"div",6),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.Q6J("ngIf","Status"===t),h.xp6(1),h.Q6J("ngIf","Expiration"===t)}}function xt(t,e){1&t&&h._UZ(0,"tr",23)}function Lt(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"table",10),h.ynx(2,11),h.YNc(3,Et,1,0,"th",12),h.YNc(4,Zt,2,1,"td",13),h.BQk(),h.ynx(5,14),h.YNc(6,_t,1,0,"th",12),h.YNc(7,vt,3,2,"td",15),h.BQk(),h.YNc(8,xt,1,0,"tr",16),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("dataSource",t.groupMembershipDataSource),h.xp6(7),h.Q6J("matRowDefColumns",t.displayedColumns)}}let Ct=(()=>{class t{constructor(t,e,i,o){this.groupsManager=t,this.authResolver=e,this.translate=i,this.dialog=o,this.noGroups=!1,this.groupMembershipDataSource=new nt.by,this.expiration="",this.displayedColumns=["attName","attValue"]}ngOnChanges(){this.loading=!0,this.initLoading=!0,this.groupMembershipDataSource=new nt.by(["Status","Expiration"]),this.groupsManager.getMemberGroups(this.member.id).subscribe(t=>{if(this.groups=t,0===this.groups.length)return void(this.noGroups=!0);const e=this.findInitiallySelectedGroupId();this.groupIsSelected(e),this.initLoading=!1})}findInitiallySelectedGroupId(){if(this.recentIds=(0,c.vL)("groups"),this.recentIds){const t=this.groups.find(t=>t.id===this.recentIds[0]);if(t)return t}return this.groups[0]}groupIsSelected(t){this.loading=!0,this.selectedGroup=t,this.groupsManager.getGroupRichMembersByIds(this.selectedGroup.id,[this.member.id],[p.r.MEMBER_DEF_GROUP_EXPIRATION]).subscribe(t=>{this.selectedMember=t[0],this.expirationAtt=this.selectedMember.memberAttributes.find(t=>"groupMembershipExpiration"===t.baseFriendlyName),this.expirationAtt?(this.groupMembershipDataSource=new nt.by(["Status","Expiration"]),this.expiration=this.expirationAtt.value?this.expirationAtt.value:this.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES")):this.groupMembershipDataSource=new nt.by(["Status"]),this.loading=!1})}changeExpiration(t=!1){const e=(0,c.kZ)();e.width="400px",e.data={memberId:this.member.id,groupId:this.selectedGroup.id,expirationAttr:this.expirationAtt,status:this.selectedMember.groupStatus,statusChanged:t},this.dialog.open(d.u3,e).afterClosed().subscribe(t=>{t&&this.groupIsSelected(this.selectedGroup)})}changeStatus(){const t=(0,c.kZ)();t.width="600px",t.data={member:this.selectedMember,voId:this.vo.id,groupId:this.selectedGroup.id},this.dialog.open(d.pf,t).afterClosed().subscribe(t=>{t&&(this.selectedMember=t,this.changeExpiration(!0))})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.ff),h.Y36(u.x4),h.Y36(S.sK),h.Y36(A.uw))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-member-overview-groups"]],inputs:{vo:"vo",member:"member"},features:[h.TTD],decls:11,vars:7,consts:[[1,"mat-elevation-z3","groups-card","mt-4"],[1,"page-subtitle"],[1,"column-center"],[3,"groups","firstSelectedGroup","groupSelected",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[3,"groups","firstSelectedGroup","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(t,e){1&t&&(h.TgZ(0,"mat-card",0),h.TgZ(1,"mat-card-header"),h.TgZ(2,"mat-card-title"),h.TgZ(3,"h1",1),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(6,"mat-card-content",2),h.YNc(7,It,1,2,"perun-web-apps-group-search-select",3),h.YNc(8,Tt,1,0,"mat-spinner",4),h.YNc(9,ft,3,3,"app-alert",5),h.YNc(10,Lt,9,2,"div",6),h.qZA(),h.qZA()),2&t&&(h.xp6(4),h.Oqu(h.lcZ(5,5,"MEMBER_DETAIL.OVERVIEW.GROUP_MEMBERSHIP")),h.xp6(3),h.Q6J("ngIf",!e.initLoading),h.xp6(1),h.Q6J("ngIf",(e.loading||e.initLoading)&&!e.noGroups),h.xp6(1),h.Q6J("ngIf",e.noGroups),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[ct.a8,ct.dk,ct.n5,ct.dn,o.O5,pt.h,f.$g,dt.w,nt.BZ,nt.w1,nt.fO,nt.Dz,nt.nj,nt.ge,nt.ev,b.lW,E.Hw,nt.Gk],pipes:[S.X$,gt.u,ht.f,mt.r,At.M],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}"]}),t})(),Rt=(()=>{class t{transform(t){return(0,c.Cz)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=h.Yjl({name:"attributeFriendlyName",type:t,pure:!0}),t})();var Mt=i(22196);function Dt(t,e){1&t&&h._UZ(0,"mat-spinner",2)}function Ut(t,e){1&t&&h._UZ(0,"th",17)}function qt(t,e){if(1&t&&(h.TgZ(0,"span"),h._uU(1),h.qZA()),2&t){const t=h.oxw().$implicit,e=h.oxw(2);h.xp6(1),h.hij(" ",e.attributes.get(t)[0],": ")}}function Pt(t,e){if(1&t&&(h.TgZ(0,"span"),h._uU(1),h.ALo(2,"attributeFriendlyName"),h.qZA()),2&t){const t=h.oxw().$implicit;h.xp6(1),h.hij(" ",h.lcZ(2,1,t),": ")}}function wt(t,e){if(1&t&&(h.TgZ(0,"td",18),h.YNc(1,qt,2,1,"span",1),h.YNc(2,Pt,3,3,"span",1),h.qZA()),2&t){const t=e.$implicit,i=h.oxw(2);h.xp6(1),h.Q6J("ngIf",null!==i.attributes.get(t)[0]),h.xp6(1),h.Q6J("ngIf",null===i.attributes.get(t)[0])}}function yt(t,e){1&t&&h._UZ(0,"th",17)}function Gt(t,e){if(1&t&&(h.TgZ(0,"td",19),h._uU(1),h.qZA()),2&t){const t=e.$implicit,i=h.oxw(2);h.xp6(1),h.hij(" ",i.attributes.get(t)[1]," ")}}function Yt(t,e){1&t&&h._UZ(0,"tr",20)}function Jt(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"mat-card",5),h.TgZ(1,"mat-card-header"),h.TgZ(2,"mat-card-title"),h.TgZ(3,"h1",6),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(6,"mat-card-content",21),h.TgZ(7,"div",22),h.ALo(8,"translate"),h.TgZ(9,"button",23),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).requestPwdReset()}),h._uU(10),h.ALo(11,"translate"),h.qZA(),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(2);h.xp6(4),h.Oqu(h.lcZ(5,5,"MEMBER_DETAIL.OVERVIEW.RESET_PASSWORD")),h.xp6(3),h.Q6J("matTooltip",h.lcZ(8,7,"MEMBER_DETAIL.OVERVIEW.RESET_DISABLED"))("matTooltipDisabled",t.logins.length>0),h.xp6(2),h.Q6J("disabled",!t.logins.length),h.xp6(1),h.hij(" ",h.lcZ(11,9,"MEMBER_DETAIL.OVERVIEW.SEND_REQUEST")," ")}}function Vt(t,e){1&t&&(h.TgZ(0,"th",17),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.SPONSOR_NAME")," "))}function Ft(t,e){if(1&t&&(h.TgZ(0,"td",33),h._uU(1),h.ALo(2,"userFullName"),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.hij(" ",h.lcZ(2,1,t.user)," ")}}function Qt(t,e){1&t&&(h.TgZ(0,"th",17),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.EXPIRATION_TABLE")," "))}function kt(t,e){if(1&t&&(h.TgZ(0,"td",33),h.TgZ(1,"span",34),h._uU(2),h.ALo(3,"parseDate"),h.qZA(),h.qZA()),2&t){const t=e.$implicit;h.xp6(2),h.Oqu(h.lcZ(3,1,t.validityTo))}}function Bt(t,e){1&t&&h._UZ(0,"tr",35)}function jt(t,e){1&t&&h._UZ(0,"tr",20)}const Ht=function(){return["sponsors","expiration"]};function $t(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"mat-card-content"),h.TgZ(1,"h6",26),h._uU(2),h.ALo(3,"translate"),h.TgZ(4,"button",27),h.NdJ("click",function(){return h.CHM(t),h.oxw(3).changeSponsors()}),h.TgZ(5,"mat-icon"),h._uU(6,"edit"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(7,"table",28),h.ynx(8,29),h.YNc(9,Vt,3,3,"th",9),h.YNc(10,Ft,3,3,"td",30),h.BQk(),h.ynx(11,31),h.YNc(12,Qt,3,3,"th",9),h.YNc(13,kt,4,3,"td",30),h.BQk(),h.YNc(14,Bt,1,0,"tr",32),h.YNc(15,jt,1,0,"tr",13),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(3);h.xp6(2),h.hij(" ",h.lcZ(3,4,"MEMBER_DETAIL.OVERVIEW.SPONSORS"),": "),h.xp6(5),h.Q6J("dataSource",t.sponsorsDataSource),h.xp6(7),h.Q6J("matHeaderRowDef",h.DdM(6,Ht)),h.xp6(1),h.Q6J("matRowDefColumns",h.DdM(7,Ht))}}function zt(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"mat-card",24),h.TgZ(2,"mat-card-header"),h.TgZ(3,"mat-card-title"),h.TgZ(4,"h1",6),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.qZA(),h.TgZ(7,"mat-card-subtitle",25),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.qZA(),h.YNc(10,$t,16,8,"mat-card-content",1),h.qZA(),h.qZA()),2&t){const t=h.oxw(2);h.xp6(5),h.Oqu(h.lcZ(6,3,"MEMBER_DETAIL.OVERVIEW.SPONSORSHIP")),h.xp6(3),h.hij(" ",h.lcZ(9,5,"MEMBER_DETAIL.OVERVIEW.SPONSORED_BY")," "),h.xp6(2),h.Q6J("ngIf",0!==t.sponsors.length)}}function Xt(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"div",3),h.TgZ(2,"div",4),h.TgZ(3,"mat-card",5),h.TgZ(4,"mat-card-header"),h.TgZ(5,"mat-card-title"),h.TgZ(6,"h1",6),h._uU(7),h.ALo(8,"translate"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(9,"mat-card-content"),h.TgZ(10,"table",7),h.ynx(11,8),h.YNc(12,Ut,1,0,"th",9),h.YNc(13,wt,3,2,"td",10),h.BQk(),h.ynx(14,11),h.YNc(15,yt,1,0,"th",9),h.YNc(16,Gt,2,1,"td",12),h.BQk(),h.YNc(17,Yt,1,0,"tr",13),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(18,"div",4),h._UZ(19,"app-member-overview-membership",14),h._UZ(20,"app-member-overview-groups",14),h.qZA(),h.TgZ(21,"div",4),h.YNc(22,Jt,12,11,"mat-card",15),h.YNc(23,zt,11,7,"div",1),h.qZA(),h.qZA(),h.TgZ(24,"div"),h._UZ(25,"perun-web-apps-menu-buttons-field",16),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(7),h.Oqu(h.lcZ(8,11,"MEMBER_DETAIL.OVERVIEW.PERSONAL")),h.xp6(3),h.Q6J("dataSource",t.dataSource),h.xp6(7),h.Q6J("matRowDefColumns",t.displayedColumns),h.xp6(2),h.Q6J("member",t.member)("vo",t.vo),h.xp6(1),h.Q6J("member",t.member)("vo",t.vo),h.xp6(2),h.Q6J("ngIf",t.pwdResetAuth),h.xp6(1),h.Q6J("ngIf",t.member.sponsored),h.xp6(2),h.Q6J("items",t.navItems)("size","small")}}let Wt=(()=>{class t{constructor(t,e,i,o,s,a,n){this.attributesManager=t,this.membersService=e,this.usersManager=i,this.route=o,this.dialog=s,this.authResolver=a,this.storeService=n,this.expiration="",this.logins=[],this.member=null,this.navItems=[],this.attributeNames=[],this.attributes=new Map,this.dataSource=new nt.by,this.displayedColumns=["attName","attValue"],this.sponsors=[],this.sponsorsDataSource=new nt.by,this.loading=!1}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(t=>{const e=t.memberId;this.attributeNames=this.storeService.getMemberProfileAttributeNames(),this.membersService.getRichMemberWithAttributes(e).subscribe(t=>{const e=this.storeService.get("password_namespace_attributes").map(t=>(t=t.split(":"))[t.length-1]);this.attributesManager.getLogins(t.userId).subscribe(i=>{this.logins=i.filter(t=>e.includes(t.friendlyNameParameter)),this.member=t,this.initAttributes(),this.dataSource=new nt.by(Array.from(this.attributes.keys())),this.vo={id:t.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(t=>{this.sponsors=t,this.sponsorsDataSource=new nt.by(this.sponsors),this.initNavItems(),this.refreshData()}):(this.initNavItems(),this.refreshData())},()=>this.loading=!1)})})}initAttributes(){this.attributeNames.forEach(t=>{this.attributes.set(t,[null,"-"])}),this.filterAttributes()}filterAttributes(){null!==this.member.memberAttributes&&this.member.memberAttributes.forEach(t=>{this.attributeNames.includes(t.friendlyName)&&this.attributes.set(t.friendlyName,[t.displayName,t.value.toString()])}),null!==this.member.userAttributes&&this.member.userAttributes.forEach(t=>{this.attributeNames.includes(t.friendlyName)&&this.attributes.set(t.friendlyName,[t.displayName,t.value.toString()])})}initNavItems(){this.navItems=[],this.authResolver.isAuthorized("getMemberGroups_Member_policy",[this.vo])&&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.authResolver.isAuthorized("vo-getApplicationsForMember_Group_Member_policy",[this.vo])&&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.authResolver.isAuthorized("getAssignedRichResources_Member_policy",[this.vo])&&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.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(t=>{this.member=t,this.loading=!1},()=>this.loading=!1)}requestPwdReset(){const t=(0,c.kZ)();t.width="400px",t.data={userId:this.member.userId,memberId:this.member.id,logins:this.logins},this.dialog.open(rt.m,t)}changeSponsors(){const t=(0,c.kZ)();t.width="650px",t.data={sponsors:this.sponsors,member:this.member,theme:"member-theme"},this.dialog.open(lt.H,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.membersService.getRichMemberWithAttributes(this.member.id).subscribe(t=>{this.member=t,this.member.sponsored&&this.usersManager.getSponsorsForMember(this.member.id,null).subscribe(t=>{this.sponsors=t,this.sponsorsDataSource.data=this.sponsors}),this.loading=!1}))})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.H8),h.Y36(l.uq),h.Y36(l.Fv),h.Y36(s.gz),h.Y36(A.uw),h.Y36(u.x4),h.Y36(u.d6))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-member-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.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,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent",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(t,e){1&t&&(h.YNc(0,Dt,1,0,"mat-spinner",0),h.YNc(1,Xt,26,13,"div",1)),2&t&&(h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,f.$g,ct.a8,ct.dk,ct.n5,ct.dn,nt.BZ,nt.w1,nt.fO,nt.Dz,nt.nj,ut.b,Ct,B.L,nt.ge,nt.ev,nt.Gk,Z.gM,b.lW,ct.$j,E.Hw,nt.as,nt.XQ],pipes:[S.X$,Rt,Mt.d,At.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}"]}),t})();var Kt=i(81835);function te(t,e){1&t&&h._UZ(0,"mat-spinner",2)}const ee=function(t,e){return["/organizations",t,"groups",e]};function ie(t,e){if(1&t&&(h.TgZ(0,"p"),h._uU(1),h.ALo(2,"translate"),h.TgZ(3,"a",4),h._uU(4),h.qZA(),h.qZA()),2&t){const t=h.oxw(2);h.xp6(1),h.hij(" ",h.lcZ(2,3,"GROUP_DETAIL.SUBGROUP_INFO")," "),h.xp6(2),h.Q6J("routerLink",h.WLB(5,ee,t.parentGroup.voId,t.parentGroup.id)),h.xp6(1),h.hij(" ",t.parentGroup.name," ")}}function oe(t,e){if(1&t&&(h.TgZ(0,"div"),h.YNc(1,ie,5,8,"p",1),h._UZ(2,"perun-web-apps-menu-buttons-field",3),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("ngIf",null!==t.parentGroup),h.xp6(1),h.Q6J("items",t.navItems)("size","small")}}let se=(()=>{class t{constructor(t,e,i,o,s,a,n,r){this.route=t,this.groupService=e,this.voService=i,this.guiAuthResolver=o,this.apiRequest=s,this.attributesManager=a,this.notificator=n,this.entityStorageService=r,this.navItems=[],this.parentGroup=null,this.loading=!1}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),null!==this.group.parentGroupId?this.loadParentGroupData():(this.parentGroup=null,this.initNavItems(),this.loading=!1)}loadParentGroupData(){this.groupService.getGroupById(this.group.parentGroupId).subscribe(t=>{this.parentGroup=t,this.initNavItems(),this.loading=!1},()=>this.loading=!1)}initNavItems(){this.navItems=[],this.guiAuthResolver.isAuthorized("getCompleteRichMembers_Group_List_boolean_policy",[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.guiAuthResolver.isAuthorized("getAllRichSubGroupsWithAttributesByNames_Group_List_policy",[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.guiAuthResolver.isAuthorized("getAssignedRichResources_Group_policy",[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.guiAuthResolver.isAuthorized("getApplicationsForGroup_Group_List_policy",[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.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.group.voId}/groups/${this.group.id}/attributes`,label:"MENU_ITEMS.GROUP.ATTRIBUTES",style:"group-btn"});const t=this.guiAuthResolver.isAuthorized("getGroupMembersCount_Group_policy",[this.group]),e=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByVoStatus_Group_policy",[this.group]),i=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByGroupStatus_Group_policy",[this.group]);t&&i&&e&&this.navItems.push({cssIcon:"perun-statistics",url:`/organizations/${this.group.voId}/groups/${this.group.id}/statistics`,label:"MENU_ITEMS.GROUP.STATISTICS",style:"group-btn"});let o=!1;this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,p.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{o=!0},t=>{"HttpErrorResponse"!==t.name&&this.notificator.showRPCError(t)});const s=this.guiAuthResolver.isManagerPagePrivileged(this.group),a=this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group]),n=this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group]),r=this.guiAuthResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[this.group]);(o||s||a||n||r)&&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 t.\u0275fac=function(e){return new(e||t)(h.Y36(s.gz),h.Y36(l.ff),h.Y36(l.YF),h.Y36(u.x4),h.Y36(u.F5),h.Y36(l.H8),h.Y36(u.V6),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.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(t,e){1&t&&(h.YNc(0,te,1,0,"mat-spinner",0),h.YNc(1,oe,3,3,"div",1)),2&t&&(h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,f.$g,B.L,s.yS],pipes:[S.X$],styles:[""]}),t})();var ae=i(82044);let ne=(()=>{class t{constructor(t){this.route=t}ngOnInit(){this.route.parent.params.subscribe(t=>{this.voId=t.voId})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(s.gz))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-resources"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&h._UZ(0,"app-animated-router-outlet")},directives:[_.A],styles:[""],data:{animation:[r.Ji]}}),t})();var re=i(40659);let le=(()=>{class t{constructor(t,e){this.route=t,this.router=e,this.backButtonRegex=new RegExp("/organizations/\\d+/settings/\\w+$"),this.backButtonDisplayed=!1,this.currentUrl=e.url,this.backButtonDisplayed=this.backButtonRegex.test(this.currentUrl),e.events.subscribe(t=>{t instanceof s.m2&&(this.currentUrl=t.url,this.backButtonDisplayed=this.backButtonRegex.test(this.currentUrl))})}ngOnInit(){this.route.parent.params.subscribe(t=>{this.voId=t.voId})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(s.gz),h.Y36(s.F0))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&h._UZ(0,"app-animated-router-outlet")},directives:[_.A],styles:[""],data:{animation:[r.Ji]}}),t})();var ce=i(541);let ue=(()=>{class t{constructor(t){this.entityStorageService=t}ngOnInit(){this.vo=this.entityStorageService.getEntity()}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-attributes"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],[3,"entityId","entity"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h._UZ(4,"app-one-entity-attribute-page",1),h.qZA()),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,3,"VO_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),h.xp6(2),h.Q6J("entityId",e.vo.id)("entity","vo"))},directives:[ce.t],pipes:[S.X$],styles:[""]}),t})();function pe(t,e){1&t&&h._UZ(0,"mat-spinner",2)}function de(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"perun-web-apps-menu-buttons-field",3),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("items",t.items)("size","small")}}let ge=(()=>{class t{constructor(t,e,i,o,s){this.sideMenuService=t,this.voService=e,this.authResolver=i,this.router=o,this.entityStorageService=s,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.items=[];const t=this.authResolver.isThisVoAdminOrObserver(this.vo.id);t&&this.items.push({cssIcon:"perun-group",url:`/organizations/${this.vo.id}/settings/expiration`,label:"MENU_ITEMS.VO.EXPIRATION",style:"vo-btn"}),this.authResolver.isManagerPagePrivileged(this.vo)&&this.items.push({cssIcon:"perun-manager",url:`/organizations/${this.vo.id}/settings/managers`,label:"MENU_ITEMS.VO.MANAGERS",style:"vo-btn"}),t&&this.items.push({cssIcon:"perun-application-form",url:`/organizations/${this.vo.id}/settings/applicationForm`,label:"MENU_ITEMS.VO.APPLICATION_FORM",style:"vo-btn"}),t&&this.items.push({cssIcon:"perun-notification",url:`/organizations/${this.vo.id}/settings/notifications`,label:"MENU_ITEMS.VO.NOTIFICATIONS",style:"vo-btn"}),this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[this.vo])&&this.items.push({cssIcon:"perun-external-sources",url:`/organizations/${this.vo.id}/settings/extsources`,label:"MENU_ITEMS.VO.EXTSOURCES",style:"vo-btn"})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(m.D),h.Y36(l.YF),h.Y36(u.x4),h.Y36(s.F0),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-settings-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.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(t,e){1&t&&(h.YNc(0,pe,1,0,"mat-spinner",0),h.YNc(1,de,2,2,"div",1)),2&t&&(h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,f.$g,B.L],styles:[""]}),t})();var he=i(27521),me=i(16073),Ae=i(54810);const Ie=["*"];let Te=(()=>{class t{constructor(){this.modelChange=new h.vpe}get model(){return this.modelValue}set model(t){this.modelValue=t}ngAfterViewInit(){this.toggle.change.subscribe(()=>this.valueChanged())}valueChanged(){this.modelChange.emit(this.toggle.checked)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-settings-toggle-item"]],viewQuery:function(t,e){if(1&t&&h.Gf(he.Rr,7),2&t){let t;h.iGM(t=h.CRH())&&(e.toggle=t.first)}},inputs:{title:"title",model:"model"},outputs:{modelChange:"modelChange"},ngContentSelectors:Ie,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(t,e){if(1&t){const t=h.EpF();h.F$t(),h.TgZ(0,"div",0),h.TgZ(1,"div",1),h.TgZ(2,"label",2),h.NdJ("click",function(){return h.CHM(t),h.MAs(5).toggle()||e.valueChanged()}),h._uU(3),h.qZA(),h.TgZ(4,"mat-slide-toggle",3,4),h.NdJ("ngModelChange",function(t){return e.modelValue=t}),h.qZA(),h.qZA(),h.TgZ(6,"div",5),h.Hsn(7),h.qZA(),h.qZA()}if(2&t){const t=h.MAs(5);h.xp6(2),h.ekj("unselected-setting",!t.checked),h.xp6(1),h.hij(" ",e.title," "),h.xp6(1),h.Q6J("ngModel",e.modelValue),h.xp6(2),h.Q6J("@openClose",t.checked?"open":"closed")}},directives:[he.Rr,me.JJ,me.On],styles:[""],data:{animation:[r.BQ]}}),t})();var fe=i(66283),Ee=i(4786),Ze=i(80340),_e=i(71522),be=i(29236);function Se(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",25),h.TgZ(1,"mat-form-field",26),h.TgZ(2,"input",20),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(2).currentConfiguration.periodStatic=e}),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"mat-hint"),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(2);h.xp6(2),h.s9C("pattern",t.datePattern),h.s9C("placeholder",h.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),h.Q6J("ngModel",t.currentConfiguration.periodStatic),h.xp6(3),h.Oqu(h.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function Ne(t,e){if(1&t&&(h.TgZ(0,"mat-option",27),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t.value),h.xp6(1),h.Oqu(t.text)}}function Oe(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",18),h.TgZ(1,"mat-form-field",19),h.TgZ(2,"input",20),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(2).currentConfiguration.periodDynamic=e}),h.ALo(3,"translate"),h.qZA(),h.qZA(),h.TgZ(4,"mat-form-field"),h.TgZ(5,"mat-label"),h._uU(6),h.ALo(7,"translate"),h.qZA(),h.TgZ(8,"mat-select",8),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(2).currentConfiguration.periodDynamicUnit=e}),h.YNc(9,Ne,2,2,"mat-option",17),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(2);h.xp6(2),h.s9C("pattern",t.dynamicAmountPattern),h.s9C("placeholder",h.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),h.Q6J("ngModel",t.currentConfiguration.periodDynamic),h.xp6(4),h.Oqu(h.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),h.xp6(2),h.Q6J("ngModel",t.currentConfiguration.periodDynamicUnit),h.xp6(1),h.Q6J("ngForOf",t.amountOptions)}}function ve(t,e){if(1&t&&(h.TgZ(0,"mat-option",27),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t),h.xp6(1),h.Oqu(t)}}function xe(t,e){if(1&t&&(h.TgZ(0,"mat-option",27),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t),h.xp6(1),h.Oqu(t)}}function Le(t,e){if(1&t&&(h.TgZ(0,"mat-option",27),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t.value),h.xp6(1),h.Oqu(t.text)}}function Ce(t,e){if(1&t&&(h.TgZ(0,"mat-option",27),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t),h.xp6(1),h.hij(" ",t," ")}}function Re(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",25),h.TgZ(1,"mat-form-field",26),h.TgZ(2,"input",20),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(3).currentConfiguration.specialLoaPeriodStatic=e}),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"mat-hint"),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(3);h.xp6(2),h.s9C("pattern",t.datePattern),h.s9C("placeholder",h.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),h.Q6J("ngModel",t.currentConfiguration.specialLoaPeriodStatic),h.xp6(3),h.Oqu(h.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function Me(t,e){if(1&t&&(h.TgZ(0,"mat-option",27),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t.value),h.xp6(1),h.Oqu(t.text)}}function De(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",18),h.TgZ(1,"mat-form-field",19),h.TgZ(2,"input",20),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(3).currentConfiguration.specialLoaPeriodDynamic=e}),h.ALo(3,"translate"),h.qZA(),h.qZA(),h.TgZ(4,"mat-form-field"),h.TgZ(5,"mat-label"),h._uU(6),h.ALo(7,"translate"),h.qZA(),h.TgZ(8,"mat-select",8),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(3).currentConfiguration.specialLoaPeriodDynamicUnit=e}),h.YNc(9,Me,2,2,"mat-option",17),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(3);h.xp6(2),h.s9C("pattern",t.dynamicAmountPattern),h.s9C("placeholder",h.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),h.Q6J("ngModel",t.currentConfiguration.specialLoaPeriodDynamic),h.xp6(4),h.Oqu(h.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),h.xp6(2),h.Q6J("ngModel",t.currentConfiguration.specialLoaPeriodDynamicUnit),h.xp6(1),h.Q6J("ngForOf",t.amountOptions)}}function Ue(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",28),h.TgZ(1,"mat-radio-group",8),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(2).currentConfiguration.specialLoaPeriodType=e}),h.TgZ(2,"mat-radio-button",9,29),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.TgZ(6,"mat-radio-button",11,30),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.qZA(),h.YNc(10,Re,7,8,"div",13),h.YNc(11,De,10,10,"div",14),h.TgZ(12,"div"),h.TgZ(13,"mat-checkbox",31),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(2).currentConfiguration.specialLoaPeriodExtendExpiredMembers=e}),h._uU(14),h.ALo(15,"translate"),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.MAs(3),e=h.MAs(7),i=h.oxw(2);h.xp6(1),h.Q6J("ngModel",i.currentConfiguration.specialLoaPeriodType),h.xp6(3),h.hij(" ",h.lcZ(5,7,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_STATIC")," "),h.xp6(4),h.hij(" ",h.lcZ(9,9,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_DYNAMIC")," "),h.xp6(2),h.Q6J("ngIf",t.checked),h.xp6(1),h.Q6J("ngIf",e.checked),h.xp6(2),h.Q6J("ngModel",i.currentConfiguration.specialLoaPeriodExtendExpiredMembers),h.xp6(1),h.hij(" ",h.lcZ(15,11,"VO_MANAGEMENT.SETTINGS.EXPIRATION.EXTEND_EXPIRED_MEMBERS_CHECKBOX")," ")}}function qe(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",1),h.TgZ(1,"div",2),h.TgZ(2,"h1",3),h.NdJ("click",function(){return h.CHM(t),h.MAs(6).toggle()}),h._uU(3),h.ALo(4,"translate"),h.qZA(),h.TgZ(5,"mat-slide-toggle",4,5),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.enabled=e}),h.qZA(),h.qZA(),h.TgZ(7,"div"),h.TgZ(8,"label",6),h._uU(9),h.ALo(10,"translate"),h.qZA(),h.TgZ(11,"div",7),h.TgZ(12,"mat-radio-group",8),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.periodType=e}),h.TgZ(13,"mat-radio-button",9,10),h._uU(15),h.ALo(16,"translate"),h.qZA(),h.TgZ(17,"mat-radio-button",11,12),h._uU(19),h.ALo(20,"translate"),h.qZA(),h.qZA(),h.YNc(21,Se,7,8,"div",13),h.YNc(22,Oe,10,10,"div",14),h.qZA(),h.TgZ(23,"app-settings-toggle-item",15),h.NdJ("modelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.doNotAllowLoasEnabled=e}),h.ALo(24,"translate"),h.TgZ(25,"mat-form-field"),h.TgZ(26,"mat-placeholder"),h._uU(27),h.ALo(28,"translate"),h.qZA(),h.TgZ(29,"mat-select",16),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.doNotAllowLoas=e}),h.YNc(30,ve,2,2,"mat-option",17),h.qZA(),h.qZA(),h.qZA(),h.TgZ(31,"app-settings-toggle-item",15),h.NdJ("modelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.doNotExtendLoasEnabled=e}),h.ALo(32,"translate"),h.TgZ(33,"mat-form-field"),h.TgZ(34,"mat-placeholder"),h._uU(35),h.ALo(36,"translate"),h.qZA(),h.TgZ(37,"mat-select",16),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.doNotExtendLoas=e}),h.YNc(38,xe,2,2,"mat-option",17),h.qZA(),h.qZA(),h.qZA(),h.TgZ(39,"app-settings-toggle-item",15),h.NdJ("modelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.gracePeriodEnabled=e}),h.ALo(40,"translate"),h.TgZ(41,"div",18),h.TgZ(42,"mat-form-field",19),h.TgZ(43,"input",20),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.gracePeriod=e}),h.ALo(44,"translate"),h.qZA(),h.qZA(),h.TgZ(45,"mat-form-field"),h.TgZ(46,"mat-label"),h._uU(47),h.ALo(48,"translate"),h.qZA(),h.TgZ(49,"mat-select",8),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.gracePeriodUnit=e}),h.YNc(50,Le,2,2,"mat-option",17),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(51,"app-settings-toggle-item",15),h.NdJ("modelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.specialLoaPeriodEnabled=e}),h.ALo(52,"translate"),h.TgZ(53,"div",7),h.TgZ(54,"div"),h.TgZ(55,"mat-form-field"),h.TgZ(56,"mat-label"),h._uU(57),h.ALo(58,"translate"),h.qZA(),h.TgZ(59,"mat-select",8,21),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().currentConfiguration.specialLoa=e}),h.YNc(61,Ce,2,2,"mat-option",17),h.qZA(),h.qZA(),h.YNc(62,Ue,16,13,"div",22),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(63,"div",23),h.ALo(64,"translate"),h.TgZ(65,"button",24),h.NdJ("click",function(){return h.CHM(t),h.oxw().saveChanges()}),h._uU(66),h.ALo(67,"translate"),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.MAs(6),e=h.MAs(14),i=h.MAs(18),o=h.oxw();h.xp6(2),h.ekj("unselected-setting",!t.checked),h.xp6(1),h.hij(" ",h.lcZ(4,40,"VO_MANAGEMENT.SETTINGS.EXPIRATION.TITLE")," "),h.xp6(2),h.Q6J("ngModel",o.currentConfiguration.enabled),h.xp6(2),h.Q6J("@openClose",t.checked?"open":"closed"),h.xp6(2),h.Oqu(h.lcZ(10,42,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_LABEL")),h.xp6(3),h.Q6J("ngModel",o.currentConfiguration.periodType),h.xp6(3),h.hij(" ",h.lcZ(16,44,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_STATIC")," "),h.xp6(4),h.hij(" ",h.lcZ(20,46,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_DYNAMIC")," "),h.xp6(2),h.Q6J("ngIf",e.checked),h.xp6(1),h.Q6J("ngIf",i.checked),h.xp6(1),h.Q6J("model",o.currentConfiguration.doNotAllowLoasEnabled)("title",h.lcZ(24,48,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_LABEL")),h.xp6(4),h.Oqu(h.lcZ(28,50,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_SELECT")),h.xp6(2),h.Q6J("ngModel",o.currentConfiguration.doNotAllowLoas),h.xp6(1),h.Q6J("ngForOf",o.loas),h.xp6(1),h.Q6J("model",o.currentConfiguration.doNotExtendLoasEnabled)("title",h.lcZ(32,52,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_LABEL")),h.xp6(4),h.Oqu(h.lcZ(36,54,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_SELECT")),h.xp6(2),h.Q6J("ngModel",o.currentConfiguration.doNotExtendLoas),h.xp6(1),h.Q6J("ngForOf",o.loas),h.xp6(1),h.Q6J("model",o.currentConfiguration.gracePeriodEnabled)("title",h.lcZ(40,56,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_PERIOD_LABEL")),h.xp6(4),h.s9C("pattern",o.dynamicAmountPattern),h.s9C("placeholder",h.lcZ(44,58,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_VALUE")),h.Q6J("ngModel",o.currentConfiguration.gracePeriod),h.xp6(4),h.Oqu(h.lcZ(48,60,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_TYPE")),h.xp6(2),h.Q6J("ngModel",o.currentConfiguration.gracePeriodUnit),h.xp6(1),h.Q6J("ngForOf",o.amountOptions),h.xp6(1),h.Q6J("model",o.currentConfiguration.specialLoaPeriodEnabled)("title",h.lcZ(52,62,"VO_MANAGEMENT.SETTINGS.EXPIRATION.LOA_PERIOD_LABEL")),h.xp6(6),h.Oqu(h.lcZ(58,64,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SPECIAL_LOA_SELECT")),h.xp6(2),h.Q6J("ngModel",o.currentConfiguration.specialLoa),h.xp6(2),h.Q6J("ngForOf",o.loas),h.xp6(1),h.Q6J("ngIf",null!==o.currentConfiguration.specialLoa),h.xp6(1),h.s9C("matTooltip",h.lcZ(64,66,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERMISSION_DENIED_HINT")),h.Q6J("matTooltipDisabled",o.expirationAttribute.writable)("matTooltipPosition","above"),h.xp6(2),h.Q6J("disabled",!o.areChangesMade()||!o.expirationAttribute.writable),h.xp6(1),h.hij(" ",h.lcZ(67,68,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SAVE")," ")}}let Pe=(()=>{class t{constructor(){this.saveAttribute=new h.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 t=new Map;this.loas.forEach(e=>t.set(e,"")),this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value),this.currentConfiguration=this.unParseAttrValue(this.expirationAttribute.value)}ngOnChanges(t){t.expirationAttribute&&(this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value))}saveChanges(){this.saveAttribute.emit(this.parseExpirationRulesAttribute())}areChangesMade(){const t=this.parseAttributeValueFromConfig(this.currentConfiguration),e=this.parseAttributeValueFromConfig(this.initialConfiguration);return null===e?null!==t:null===t||t.period!==e.period||t.gracePeriod!==e.gracePeriod||t.doNotExtendLoa!==e.doNotExtendLoa||t.doNotAllowLoa!==e.doNotAllowLoa||t.periodLoa!==e.periodLoa}parseExpirationRulesAttribute(){return this.expirationAttribute.value=this.parseAttributeValueFromConfig(this.currentConfiguration),this.expirationAttribute}parsePeriod(t){switch(t.periodType){case"dynamic":return this.parseDynamicPeriod(t);case"static":return this.parseStaticPeriod(t)}}createInitConfiguration(){const t=new Map;return this.loas.forEach(e=>t.set(e,"")),{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(t){let e=this.createInitConfiguration();return null==t||(void 0!==t.period&&t.period.length>0&&(e=this.setPeriodValues(t,e)),void 0!==t.doNotAllowLoa&&t.doNotAllowLoa.length>0&&(e=this.setDoNotAllowLoasValues(t,e)),void 0!==t.doNotExtendLoa&&t.doNotExtendLoa.length>0&&(e=this.setDoNotExtendLoasValues(t,e)),void 0!==t.gracePeriod&&t.gracePeriod.length>0&&(e=this.setGracePeriodValues(t,e)),void 0!==t.periodLoa&&t.periodLoa.length>0&&(e=this.setSpecialLoaPeriodValues(t,e))),e}setPeriodValues(t,e){if(e.enabled=!0,t.period.startsWith("+")){e.periodType="dynamic";const i=t.period.charAt(t.period.length-1);e.periodDynamic=t.period.substring(1,t.period.length-1),e.periodDynamicUnit=i}else e.periodType="static",e.periodStatic=t.period;return e}setDoNotAllowLoasValues(t,e){const i=[];return t.doNotAllowLoa.split(",").forEach(t=>i.push(parseInt(t.trim(),10))),e.doNotAllowLoas=i,i.length>0&&(e.doNotAllowLoasEnabled=!0),e}setDoNotExtendLoasValues(t,e){const i=[];return t.doNotExtendLoa.split(",").forEach(t=>i.push(parseInt(t.trim(),10))),e.doNotExtendLoas=i,i.length>0&&(e.doNotExtendLoasEnabled=!0),e}setGracePeriodValues(t,e){e.gracePeriodEnabled=!0;const i=t.gracePeriod.charAt(t.gracePeriod.length-1);return e.gracePeriod=t.gracePeriod.substring(0,t.gracePeriod.length-1),e.gracePeriodUnit=i,e}setSpecialLoaPeriodValues(t,e){e.specialLoa=parseInt(t.periodLoa.substring(0,t.periodLoa.indexOf("|")),10),e.specialLoaPeriodEnabled=!0;let i=t.periodLoa.substring(t.periodLoa.indexOf("|")+1,t.periodLoa.length);if(i.startsWith("+")){i.endsWith(".")&&(e.specialLoaPeriodExtendExpiredMembers=!0,i=i.substring(0,i.length-1)),e.specialLoaPeriodType="dynamic";const t=i.charAt(i.length-1);e.specialLoaPeriodDynamic=i.substring(1,i.length-1),e.specialLoaPeriodDynamicUnit=t}else i.endsWith("..")&&(e.specialLoaPeriodExtendExpiredMembers=!0,i=i.substring(0,i.length-1)),e.specialLoaPeriodType="static",e.specialLoaPeriodStatic=i;return e}parseDynamicPeriod(t){return"+"+t.periodDynamic+t.periodDynamicUnit}parseStaticPeriod(t){return t.periodStatic}parseDontAllowLoas(t){if(!t.doNotAllowLoasEnabled)return null;let e="";return t.doNotAllowLoas.forEach(t=>e+=t+","),e.length>0&&(e=e.substring(0,e.length-1)),e.length>0?e:null}parseDontExtendLoas(t){if(!t.doNotExtendLoasEnabled)return null;let e="";return t.doNotExtendLoas.forEach(t=>e+=t+","),e.length>0&&(e=e.substring(0,e.length-1)),e.length>0?e:null}parseGracePeriod(t){return t.gracePeriodEnabled?t.gracePeriod+t.gracePeriodUnit:null}parseSpecialLoaPeriod(t){if(!t.specialLoaPeriodEnabled)return null;let e=t.specialLoa+"|";switch(t.specialLoaPeriodType){case"static":e+=this.parseSpecialLoaPeriodStatic(t);break;case"dynamic":e+=this.parseSpecialLoaPeriodDynamic(t)}return null!=e&&t.specialLoaPeriodExtendExpiredMembers&&(e+="."),e}parseSpecialLoaPeriodStatic(t){return t.specialLoaPeriodStatic}parseSpecialLoaPeriodDynamic(t){return"+"+t.specialLoaPeriodDynamic+t.specialLoaPeriodDynamicUnit}parseAttributeValueFromConfig(t){if(!t.enabled)return null;const e=this.parsePeriod(t),i=this.parseDontAllowLoas(t),o=this.parseDontExtendLoas(t),s=this.parseGracePeriod(t),a=this.parseSpecialLoaPeriod(t),n={period:e};return null!==o&&(n.doNotExtendLoa=o),null!==i&&(n.doNotAllowLoa=i),null!==s&&(n.gracePeriod=s),null!==a&&(n.periodLoa=a),n}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-expiration-settings"]],inputs:{expirationAttribute:"expirationAttribute"},outputs:{saveAttribute:"saveAttribute"},features:[h.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"],[3,"model","title","modelChange"],["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"],["mat-flat-button","","color","primary",1,"ml-auto",3,"disabled","click"],[1,"form-container"],[1,"date-field"],[3,"value"],[1,"mt-2"],["loaStaticRadioButton",""],["loaDynamicRadioButton",""],["color","primary",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&h.YNc(0,qe,68,70,"div",0),2&t&&h.Q6J("ngIf",e.currentConfiguration)},directives:[o.O5,he.Rr,me.JJ,me.On,Ae.VQ,Ae.U0,Te,fe.KE,fe.UY,Ee.gD,o.sg,Ze.Nt,me.Fj,me.c5,fe.hX,Z.gM,b.lW,fe.bx,_e.ey,be.oG],pipes:[S.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:[r.BQ]}}),t})();function we(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"app-expiration-settings",1),h.NdJ("saveAttribute",function(e){return h.CHM(t),h.oxw().saveExpirationAttribute(e)}),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("expirationAttribute",t.expirationAttribute)}}let ye=(()=>{class t{constructor(t,e,i,o,s){this.attributesManager=t,this.translate=e,this.notificator=i,this.apiRequest=o,this.entityStorageService=s,this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(t=>this.successMessage=t),this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(t=>this.errorMessage=t)}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.loadSettings()}loadSettings(){this.attributesManager.getVoAttributeByName(this.vo.id,p.r.VO_DEF_EXPIRATION_RULES).subscribe(t=>{this.expirationAttribute=t})}saveExpirationAttribute(t){this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setVoAttribute({vo:this.vo.id,attribute:t}).subscribe(()=>{this.loadSettings(),this.notificator.showSuccess(this.successMessage)},t=>{console.log(t),this.notificator.showRPCError(t.error,this.errorMessage)})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.H8),h.Y36(S.sK),h.Y36(u.V6),h.Y36(u.F5),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-settings-expiration"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(t,e){1&t&&h.YNc(0,we,1,1,"app-expiration-settings",0),2&t&&h.Q6J("ngIf",void 0!==e.expirationAttribute)},directives:[o.O5,Pe],styles:[""],data:{animation:[r.BQ]}}),t})();var Ge=i(62284),Ye=i(489);let Je=(()=>{class t{constructor(t,e,i,o){this.dialog=t,this.voService=e,this.guiAuthResolver=i,this.entityStorageService=o,this.availableRoles=[],this.selected="user",this.type="Vo",this.theme="vo-theme"}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Vo")}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.uw),h.Y36(l.YF),h.Y36(u.x4),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-settings-managers"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:1,vars:4,consts:[[3,"complementaryObject","complementaryObjectType","theme","availableRoles"]],template:function(t,e){1&t&&h._UZ(0,"app-managers-page",0),2&t&&h.Q6J("complementaryObject",e.vo)("complementaryObjectType",e.type)("theme",e.theme)("availableRoles",e.availableRoles)},directives:[Ye.s],styles:[""]}),t})();function Ve(t,e){1&t&&h._UZ(0,"mat-spinner",6)}function Fe(t,e){1&t&&(h.TgZ(0,"mat-option",18),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APPROVABLE_GROUP_APP_USER")))}function Qe(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div"),h._uU(1),h.ALo(2,"translate"),h.TgZ(3,"mat-form-field",8),h.TgZ(4,"textarea",19),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw(2).reason=e}),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(2);h.xp6(1),h.hij(" ",h.lcZ(2,2,"DIALOGS.RE_SEND_NOTIFICATION.REASON"),": "),h.xp6(3),h.Q6J("ngModel",t.reason)}}function ke(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",7),h._uU(1),h.ALo(2,"translate"),h.TgZ(3,"mat-form-field",8),h.TgZ(4,"mat-select",9),h.NdJ("valueChange",function(e){return h.CHM(t),h.oxw().mailType=e}),h.TgZ(5,"mat-option",10),h._uU(6),h.ALo(7,"translate"),h.qZA(),h.YNc(8,Fe,3,3,"mat-option",11),h.TgZ(9,"mat-option",12),h._uU(10),h.ALo(11,"translate"),h.qZA(),h.TgZ(12,"mat-option",13),h._uU(13),h.ALo(14,"translate"),h.qZA(),h.TgZ(15,"mat-option",14),h._uU(16),h.ALo(17,"translate"),h.qZA(),h.TgZ(18,"mat-option",15),h._uU(19),h.ALo(20,"translate"),h.qZA(),h.TgZ(21,"mat-option",16),h._uU(22),h.ALo(23,"translate"),h.qZA(),h.qZA(),h.qZA(),h.YNc(24,Qe,5,4,"div",17),h.qZA()}if(2&t){const t=h.oxw();h.xp6(1),h.hij(" ",h.lcZ(2,10,"DIALOGS.RE_SEND_NOTIFICATION.SELECT"),": "),h.xp6(3),h.Q6J("value",t.mailType),h.xp6(2),h.Oqu(h.lcZ(7,12,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_USER")),h.xp6(2),h.Q6J("ngIf",t.data.groupId),h.xp6(2),h.Oqu(h.lcZ(11,14,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_VO_ADMIN")),h.xp6(3),h.Oqu(h.lcZ(14,16,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.MAIL_VALIDATION")),h.xp6(3),h.Oqu(h.lcZ(17,18,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_APPROVED_USER")),h.xp6(3),h.Oqu(h.lcZ(20,20,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_REJECTED_USER")),h.xp6(3),h.Oqu(h.lcZ(23,22,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_ERROR_VO_ADMIN")),h.xp6(2),h.Q6J("ngIf","APP_REJECTED_USER"===t.mailType)}}let Be=(()=>{class t{constructor(t,e,i,o,s){this.dialogRef=t,this.data=e,this.translate=i,this.notificator=o,this.registrarManager=s,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(t=>{this.notificator.showSuccess(t),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(t=>{this.notificator.showSuccess(t),this.dialogRef.close()})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(S.sK),h.Y36(u.V6),h.Y36(l.tk))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-flat-button","","color","accent",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(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,Ve,1,0,"mat-spinner",1),h.YNc(5,ke,25,24,"div",2),h.TgZ(6,"div",3),h.TgZ(7,"button",4),h.NdJ("click",function(){return e.onCancel()}),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"button",5),h.NdJ("click",function(){return e.onSubmit()}),h._uU(11),h.ALo(12,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Gre("",e.theme,"}"),h.xp6(2),h.Oqu(h.lcZ(3,9,"DIALOGS.RE_SEND_NOTIFICATION.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(9,11,"DIALOGS.RE_SEND_NOTIFICATION.CANCEL")," "),h.xp6(2),h.Q6J("disabled",e.loading),h.xp6(1),h.hij(" ",h.lcZ(12,13,"DIALOGS.RE_SEND_NOTIFICATION.SEND")," "))},directives:[A.uh,o.O5,A.H8,b.lW,f.$g,A.xY,fe.KE,Ee.gD,_e.ey,Ze.Nt,me.Fj,me.JJ,me.On],pipes:[S.X$],styles:[""]}),t})();function je(t,e){1&t&&h._UZ(0,"mat-spinner",6)}function He(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",7),h._uU(1),h.ALo(2,"translate"),h.TgZ(3,"mat-form-field",8),h.TgZ(4,"textarea",9),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().reason=e}),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.xp6(1),h.hij(" ",h.lcZ(2,2,"DIALOGS.REJECT_APPLICATION.TEXT")," "),h.xp6(3),h.Q6J("ngModel",t.reason)}}let $e=(()=>{class t{constructor(t,e,i,o,s){this.dialogRef=t,this.data=e,this.translate=i,this.notificator=o,this.registrarManager=s,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(t=>{this.notificator.showSuccess(t),this.dialogRef.close()})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(S.sK),h.Y36(u.V6),h.Y36(l.tk))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"w-100"],["matInput","",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,je,1,0,"mat-spinner",1),h.YNc(5,He,5,4,"div",2),h.TgZ(6,"div",3),h.TgZ(7,"button",4),h.NdJ("click",function(){return e.onCancel()}),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"button",5),h.NdJ("click",function(){return e.onSubmit()}),h._uU(11),h.ALo(12,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.Oqu(h.lcZ(3,9,"DIALOGS.REJECT_APPLICATION.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(9,11,"DIALOGS.REJECT_APPLICATION.CANCEL")," "),h.xp6(2),h.Q6J("disabled",e.loading),h.xp6(1),h.hij(" ",h.lcZ(12,13,"DIALOGS.REJECT_APPLICATION.SUBMIT")," "))},directives:[A.uh,o.O5,A.H8,b.lW,f.$g,A.xY,fe.KE,Ze.Nt,me.Fj,me.JJ,me.On],pipes:[S.X$],styles:[""]}),t})();function ze(t,e){1&t&&h._UZ(0,"mat-spinner",6)}function Xe(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.INVALID_EMAIL")))}function We(t,e){if(1&t&&(h.TgZ(0,"mat-form-field"),h.TgZ(1,"label"),h._UZ(2,"input",9),h.qZA(),h.YNc(3,Xe,3,3,"mat-error",8),h.qZA()),2&t){const t=h.oxw(2);h.xp6(2),h.Q6J("formControl",t.emailControl),h.xp6(1),h.Q6J("ngIf",t.emailControl.invalid)}}function Ke(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.EMPTY_INPUT")))}function ti(t,e){if(1&t&&(h.TgZ(0,"mat-form-field"),h._UZ(1,"input",10),h.YNc(2,Ke,3,3,"mat-error",8),h.qZA()),2&t){const t=h.oxw(2);h.xp6(1),h.Q6J("formControl",t.inputControl),h.xp6(1),h.Q6J("ngIf",t.inputControl.invalid)}}function ei(t,e){if(1&t&&(h.TgZ(0,"div",7),h.YNc(1,We,4,2,"mat-form-field",8),h.YNc(2,ti,3,2,"mat-form-field",8),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("ngIf",null!==t.emailControl),h.xp6(1),h.Q6J("ngIf",null!==t.inputControl)}}let ii=(()=>{class t{constructor(t,e,i,o,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translateService=o,this.registrarService=s,this.loading=!1,this.inputControl=null,this.emailControl=null}ngOnInit(){this.theme=this.data.theme,this.formItemData=this.data.formItemData,this.itemName=this.getLabel(this.formItemData.formItem),this.itemName.toLowerCase().includes("mail")?this.emailControl=new me.NI(this.formItemData.value,[me.kI.required,me.kI.email]):this.inputControl=new me.NI(this.formItemData.value,[me.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)}getLabel(t){return null!==t.i18n.en.label&&0!==t.i18n.en.label.length?t.i18n.en.label:t.shortname}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(u.V6),h.Y36(S.sK),h.Y36(l.tk))},t.\u0275cmp=h.Xpm({type:t,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"],["type","text","matInput","","required","",3,"formControl"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,ze,1,0,"mat-spinner",1),h.YNc(5,ei,3,2,"div",2),h.TgZ(6,"div",3),h.TgZ(7,"button",4),h.NdJ("click",function(){return e.onCancel()}),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"button",5),h.NdJ("click",function(){return e.onSubmit()}),h._uU(11),h.ALo(12,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.AsE(" ",h.lcZ(3,10,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.TITLE")," ",e.itemName," "),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(9,12,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.CANCEL")," "),h.xp6(2),h.Q6J("disabled",e.loading||null!==e.inputControl&&e.inputControl.invalid||null!==e.emailControl&&e.emailControl.invalid),h.xp6(1),h.hij(" ",h.lcZ(12,14,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.SUBMIT")," "))},directives:[A.uh,o.O5,A.H8,b.lW,f.$g,A.xY,fe.KE,Ze.Nt,me.Fj,me.Q7,me.JJ,me.oH,fe.TO],pipes:[S.X$],styles:[""]}),t})();var oi=i(27679),si=i(84650);function ai(t,e){if(1&t&&(h.TgZ(0,"span",5),h._uU(1),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.hij(" #",t.application.id," ")}}function ni(t,e){1&t&&h._UZ(0,"mat-spinner",6)}function ri(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",17),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).verifyApplication()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VERIFY")," "))}function li(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",17),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).approveApplication()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVE")," "))}function ci(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",18),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).rejectApplication()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECT")," "))}function ui(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",18),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).deleteApplication()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE")," "))}function pi(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",19),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).resendNotification()}),h.TgZ(1,"i",14),h._uU(2," mail_outline "),h.qZA(),h._uU(3),h.ALo(4,"translate"),h.qZA()}2&t&&(h.xp6(3),h.hij(" ",h.lcZ(4,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SEND_NOTIFICATION")," "))}function di(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"span",10),h._uU(2),h.ALo(3,"translate"),h.qZA(),h._uU(4),h.qZA()),2&t){const t=h.oxw(2);h.xp6(2),h.Oqu(h.lcZ(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_VO")),h.xp6(2),h.hij(": ",t.application.vo.name," ")}}function gi(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"span",10),h._uU(2),h.ALo(3,"translate"),h.qZA(),h._uU(4),h.TgZ(5,"span",10),h._uU(6),h.ALo(7,"translate"),h.qZA(),h._uU(8),h.qZA()),2&t){const t=h.oxw(2);h.xp6(2),h.Oqu(h.lcZ(3,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_GROUP")),h.xp6(2),h.hij(": ",t.application.group.name," "),h.xp6(2),h.Oqu(h.lcZ(7,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_IN_VO")),h.xp6(2),h.hij(": ",t.application.vo.name," ")}}function hi(t,e){1&t&&(h.TgZ(0,"span"),h.TgZ(1,"mat-icon",20),h._uU(2,"arrow_right_alt"),h.qZA(),h._uU(3," Initial "),h.qZA())}function mi(t,e){1&t&&(h.TgZ(0,"span"),h.TgZ(1,"mat-icon",20),h._uU(2,"restore"),h.qZA(),h._uU(3," Extension "),h.qZA())}function Ai(t,e){1&t&&(h.TgZ(0,"span"),h.TgZ(1,"mat-icon",20),h._uU(2,"nat"),h.qZA(),h._uU(3," Embedded "),h.qZA())}function Ii(t,e){if(1&t&&(h.TgZ(0,"div",21),h.TgZ(1,"mat-card-title"),h.TgZ(2,"i",22),h._uU(3,"clear"),h.qZA(),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.TgZ(6,"div"),h.TgZ(7,"span",10),h._uU(8),h.ALo(9,"translate"),h.qZA(),h._uU(10),h.ALo(11,"date"),h.qZA(),h.qZA()),2&t){const t=h.oxw(2);h.xp6(4),h.AsE(" ",h.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECTED_BY"),": ",t.getModifiedAtName(t.application.modifiedBy),""),h.xp6(4),h.Oqu(h.lcZ(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),h.xp6(2),h.hij(": ",h.xi3(11,8,t.application.modifiedAt,"d.M.y H:mm:ss")," ")}}function Ti(t,e){if(1&t&&(h.TgZ(0,"div",21),h.TgZ(1,"mat-card-title"),h.TgZ(2,"i",23),h._uU(3,"done"),h.qZA(),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.TgZ(6,"div"),h.TgZ(7,"span",10),h._uU(8),h.ALo(9,"translate"),h.qZA(),h._uU(10),h.ALo(11,"date"),h.qZA(),h.qZA()),2&t){const t=h.oxw(2);h.xp6(4),h.AsE(" ",h.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVED_BY"),": ",t.getModifiedAtName(t.application.modifiedBy),""),h.xp6(4),h.Oqu(h.lcZ(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),h.xp6(2),h.hij(": ",h.xi3(11,8,t.application.modifiedAt,"d.M.y H:mm:ss")," ")}}function fi(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"span",10),h._uU(2),h.ALo(3,"translate"),h.qZA(),h._uU(4),h.qZA()),2&t){const t=h.oxw(2);h.xp6(2),h.Oqu(h.lcZ(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.MAIL")),h.xp6(2),h.hij(": ",t.userMail," ")}}function Ei(t,e){1&t&&h._UZ(0,"th",32)}function Zi(t,e){if(1&t&&(h.TgZ(0,"td",33),h._uU(1),h.qZA()),2&t){const t=e.$implicit,i=h.oxw(3);h.xp6(1),h.AsE(" ",i.getLabel(t.formItem),"",t.formItem.type.startsWith("FROM_FEDERATION")?"*":""," ")}}function _i(t,e){1&t&&h._UZ(0,"th",32)}function bi(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",36),h.NdJ("click",function(){h.CHM(t);const e=h.oxw().$implicit;return h.oxw(3).editApplicationData(e)}),h.TgZ(1,"mat-icon"),h._uU(2,"edit"),h.qZA(),h.qZA()}}function Si(t,e){if(1&t&&(h.TgZ(0,"td",34),h._uU(1),h.YNc(2,bi,3,0,"button",35),h.qZA()),2&t){const t=e.$implicit,i=h.oxw(3);h.xp6(1),h.hij(" ",t.value," "),h.xp6(1),h.Q6J("ngIf",!t.formItem.type.startsWith("FROM_FEDERATION")&&("NEW"===i.application.state||"VERIFIED"===i.application.state)&&"EMBEDDED_GROUP_APPLICATION"!==t.formItem.type)}}function Ni(t,e){1&t&&h._UZ(0,"tr",37)}function Oi(t,e){1&t&&h._UZ(0,"tr",38)}function vi(t,e){if(1&t&&(h.TgZ(0,"table",24),h.ynx(1,25),h.YNc(2,Ei,1,0,"th",26),h.YNc(3,Zi,2,2,"td",27),h.BQk(),h.ynx(4,28),h.YNc(5,_i,1,0,"th",26),h.YNc(6,Si,3,2,"td",29),h.BQk(),h.YNc(7,Ni,1,0,"tr",30),h.YNc(8,Oi,1,0,"tr",31),h.qZA()),2&t){const t=h.oxw(2);h.Q6J("dataSource",t.dataSource),h.xp6(7),h.Q6J("matHeaderRowDef",t.displayedColumns),h.xp6(1),h.Q6J("matRowDefColumns",t.displayedColumns)}}function xi(t,e){1&t&&(h.TgZ(0,"div",39),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" *",h.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VALUE_BY_EXTERNALS")," "))}function Li(t,e){if(1&t&&(h.TgZ(0,"div"),h.YNc(1,ri,3,3,"button",7),h.YNc(2,li,3,3,"button",7),h.YNc(3,ci,3,3,"button",8),h.YNc(4,ui,3,3,"button",8),h.YNc(5,pi,5,3,"button",9),h.YNc(6,di,5,4,"div",4),h.YNc(7,gi,9,8,"div",4),h.TgZ(8,"div"),h.TgZ(9,"span",10),h._uU(10),h.ALo(11,"translate"),h.qZA(),h._uU(12,": "),h._UZ(13,"span",11),h.ALo(14,"applicationState"),h.qZA(),h.TgZ(15,"div"),h.TgZ(16,"span",10),h._uU(17),h.ALo(18,"translate"),h.qZA(),h._uU(19,": "),h.YNc(20,hi,4,0,"span",4),h.YNc(21,mi,4,0,"span",4),h.YNc(22,Ai,4,0,"span",4),h.qZA(),h.YNc(23,Ii,12,11,"div",12),h.YNc(24,Ti,12,11,"div",12),h.TgZ(25,"div",13),h.TgZ(26,"mat-card-title"),h.TgZ(27,"i",14),h._uU(28,"redo"),h.qZA(),h._uU(29),h.ALo(30,"translate"),h.ALo(31,"userFullName"),h.qZA(),h.YNc(32,fi,5,4,"div",4),h.TgZ(33,"div"),h.TgZ(34,"span",10),h._uU(35),h.ALo(36,"translate"),h.qZA(),h._uU(37),h.qZA(),h.TgZ(38,"div"),h.TgZ(39,"span",10),h._uU(40),h.ALo(41,"translate"),h.qZA(),h._uU(42),h.qZA(),h.TgZ(43,"div"),h.TgZ(44,"span",10),h._uU(45),h.ALo(46,"translate"),h.qZA(),h._uU(47),h.ALo(48,"date"),h.qZA(),h.YNc(49,vi,9,3,"table",15),h.YNc(50,xi,3,3,"div",16),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("ngIf","NEW"===t.application.state&&t.verifyAuth),h.xp6(1),h.Q6J("ngIf",("VERIFIED"===t.application.state||"NEW"===t.application.state)&&t.approveAuth),h.xp6(1),h.Q6J("ngIf",("VERIFIED"===t.application.state||"NEW"===t.application.state)&&t.rejectAuth),h.xp6(1),h.Q6J("ngIf",("REJECTED"===t.application.state||"NEW"===t.application.state)&&t.deleteAuth),h.xp6(1),h.Q6J("ngIf",t.resendAuth),h.xp6(1),h.Q6J("ngIf",!t.application.group),h.xp6(1),h.Q6J("ngIf",t.application.group),h.xp6(3),h.Oqu(h.lcZ(11,26,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.STATE")),h.xp6(3),h.Q6J("outerHTML",h.lcZ(14,28,t.application.state),h.oJD),h.xp6(4),h.Oqu(h.lcZ(18,30,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TYPE")),h.xp6(3),h.Q6J("ngIf","INITIAL"===t.application.type),h.xp6(1),h.Q6J("ngIf","EXTENSION"===t.application.type),h.xp6(1),h.Q6J("ngIf","EMBEDDED"===t.application.type),h.xp6(1),h.Q6J("ngIf","REJECTED"===t.application.state),h.xp6(1),h.Q6J("ngIf","APPROVED"===t.application.state),h.xp6(5),h.AsE(" ",h.lcZ(30,32,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SUBMITTED_BY"),": ",null===t.application.user?t.submittedBy():h.lcZ(31,34,t.application.user),""),h.xp6(3),h.Q6J("ngIf",t.userMail),h.xp6(3),h.Oqu(h.lcZ(36,36,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.EXT_SRC")),h.xp6(2),h.hij(": ",t.application.extSourceName," "),h.xp6(3),h.Oqu(h.lcZ(41,38,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.LOA")),h.xp6(2),h.hij(": ",t.application.extSourceLoa," "),h.xp6(3),h.Oqu(h.lcZ(46,40,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),h.xp6(2),h.hij(": ",h.xi3(48,42,t.application.createdAt,"d.M.y H:mm:ss")," "),h.xp6(2),h.Q6J("ngIf",0!==t.userData.length),h.xp6(1),h.Q6J("ngIf",0!==t.userData.length)}}let Ci=(()=>{class t{constructor(t,e,i,o,s,a,n,r){this.registrarManager=t,this.dialog=e,this.translate=i,this.route=o,this.notificator=s,this.router=a,this.authResolver=n,this.usersService=r,this.userData=[],this.displayedColumns=["label","value"],this.loading=!0}ngOnInit(){this.loading=!0,this.route.params.subscribe(t=>{this.route.parent.params.subscribe(e=>{this.dialogTheme=e.groupId?"group-theme":e.memberId?"member-theme":"vo-theme",this.registrarManager.getApplicationById(t.applicationId).subscribe(t=>{this.application=t,"EMBEDDED"===this.application.type&&this.application.user?this.usersService.getRichUserWithAttributes(this.application.user.id).subscribe(t=>{var e;const i=t.userAttributes.find(t=>"preferredMail"===t.friendlyName);this.userMail=null===(e=null==i?void 0:i.value)||void 0===e?void 0:e.toString(),this.setAuthRights(),this.loading=!1}):this.registrarManager.getApplicationDataById(this.application.id).subscribe(t=>{this.userData=t,this.dataSource=new nt.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(t){return null!==t.i18n.en.label&&0!==t.i18n.en.label.length?t.i18n.en.label:t.shortname}submittedBy(){return this.application.createdBy.slice(this.application.createdBy.lastIndexOf("=")+1,this.application.createdBy.length)}getModifiedAtName(t){const e=t.lastIndexOf("/CN=");if(-1!==e){const i=t.slice(e+4,t.length).replace("/unstructuredName="," ");return-1!==i.lastIndexOf("\\")?t.slice(t.lastIndexOf("=")+1,t.length):i}return t}resendNotification(){var t;const e=(0,c.kZ)();e.width="500px",e.data={applicationId:this.application.id,theme:this.dialogTheme,groupId:null===(t=this.application.group)||void 0===t?void 0:t.id},this.dialog.open(Be,e)}deleteApplication(){const t=(0,c.kZ)();t.width="450px",t.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"},this.dialog.open(d.Tf,t).afterClosed().subscribe(t=>{t&&this.registrarManager.deleteApplication(this.application.id).subscribe(()=>{this.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_MESSAGE").subscribe(t=>{this.notificator.showSuccess(t),this.router.navigateByUrl(this.router.url.substring(0,this.router.url.lastIndexOf("/")))})})})}rejectApplication(){const t=(0,c.kZ)();t.width="500px",t.data={applicationId:this.application.id,theme:this.dialogTheme},this.dialog.open($e,t).afterClosed().subscribe(()=>{this.loading=!0,this.registrarManager.getApplicationById(this.application.id).subscribe(t=>{this.application=t,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(t=>{this.notificator.showSuccess(t)}),this.registrarManager.getApplicationById(this.application.id).subscribe(t=>{this.application=t,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(t=>{this.notificator.showSuccess(t)}),this.loading=!0,this.registrarManager.getApplicationById(this.application.id).subscribe(t=>{this.application=t,this.loading=!1})})}editApplicationData(t){const e=(0,c.kZ)();e.width="600px",e.data={theme:this.dialogTheme,applicationId:this.application.id,formItemData:t},this.dialog.open(ii,e)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.tk),h.Y36(A.uw),h.Y36(S.sK),h.Y36(s.gz),h.Y36(u.V6),h.Y36(s.F0),h.Y36(u.x4),h.Y36(l.Fv))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-application-detail"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.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"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"click",4,"ngIf"],["mat-stroked-button","","class","mr-2 mb-2",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"],["mat-table","","class","w-100",3,"dataSource",4,"ngIf"],["class","font-italic",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",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"],["mat-cell","","class","font-weight-bold",4,"matCellDef"],["matColumnDef","value"],["class","word-break-all","mat-cell","",4,"matCellDef"],["mat-header-row","","class","h-50",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"word-break-all"],["mat-icon-button","","aria-label","Edit Application data",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Edit Application data",3,"click"],["mat-header-row","",1,"h-50"],["mat-row",""],[1,"font-italic"]],template:function(t,e){1&t&&(h.TgZ(0,"h2",0),h._uU(1),h.ALo(2,"translate"),h.YNc(3,ai,2,1,"span",1),h.qZA(),h._UZ(4,"mat-divider",2),h.YNc(5,ni,1,0,"mat-spinner",3),h.YNc(6,Li,51,45,"div",4)),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TITLE")," "),h.xp6(2),h.Q6J("ngIf",!!e.application),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,oi.d,f.$g,ct.n5,b.lW,E.Hw,nt.BZ,nt.w1,nt.fO,nt.Dz,nt.as,nt.nj,nt.ge,nt.ev,nt.XQ,nt.Gk],pipes:[S.X$,si.h,Mt.d,o.uU],styles:[""]}),t})();var Ri=i(11930),Mi=i(7433);let Di=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&h._UZ(0,"app-animated-router-outlet")},directives:[_.A],styles:[""],data:{animation:[r.Ji]}}),t})();var Ui=i(55109),qi=i(3417);function Pi(t,e){1&t&&(h._uU(0),h.ALo(1,"translate")),2&t&&h.hij(" ",h.lcZ(1,1,"GROUP_DETAIL.ENTITY")," ")}function wi(t,e){if(1&t&&h._UZ(0,"app-one-entity-attribute-page",4),2&t){const t=h.oxw();h.Q6J("entity","group")("entityId",t.group.id)}}function yi(t,e){1&t&&(h._uU(0),h.ALo(1,"translate"),h.ALo(2,"translate")),2&t&&h.AsE(" ",h.lcZ(1,2,"GROUP_DETAIL.ENTITY")," - ",h.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function Gi(t,e){if(1&t&&h._UZ(0,"app-two-entity-attribute-page",5),2&t){const t=h.oxw(2);h.Q6J("firstEntity","group")("firstEntityId",t.group.id)("secondEntity","member")}}function Yi(t,e){1&t&&(h.TgZ(0,"mat-tab"),h.YNc(1,yi,3,6,"ng-template",1),h.YNc(2,Gi,1,3,"ng-template",2),h.qZA())}function Ji(t,e){1&t&&(h._uU(0),h.ALo(1,"translate"),h.ALo(2,"translate")),2&t&&h.AsE(" ",h.lcZ(1,2,"GROUP_DETAIL.ENTITY")," - ",h.lcZ(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function Vi(t,e){if(1&t&&h._UZ(0,"app-two-entity-attribute-page",5),2&t){const t=h.oxw(2);h.Q6J("firstEntity","group")("firstEntityId",t.group.id)("secondEntity","resource")}}function Fi(t,e){1&t&&(h.TgZ(0,"mat-tab"),h.YNc(1,Ji,3,6,"ng-template",1),h.YNc(2,Vi,1,3,"ng-template",2),h.qZA())}let Qi=(()=>{class t{constructor(t,e){this.authResolver=t,this.entityStorageService=e}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 t.\u0275fac=function(e){return new(e||t)(h.Y36(u.x4),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-attributes"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:10,vars:5,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"mat-tab-group"),h.TgZ(5,"mat-tab"),h.YNc(6,Pi,2,3,"ng-template",1),h.YNc(7,wi,1,2,"ng-template",2),h.qZA(),h.YNc(8,Yi,3,0,"mat-tab",3),h.YNc(9,Fi,3,0,"mat-tab",3),h.qZA(),h.qZA()),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,3,"GROUP_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),h.xp6(6),h.Q6J("ngIf",e.groupMemberAttAuth),h.xp6(1),h.Q6J("ngIf",e.groupResourceAttAuth))},directives:[Ui.SP,Ui.uX,Ui.uD,Ui.Vc,o.O5,ce.t,qi.Y],pipes:[S.X$],styles:[""]}),t})();function ki(t,e){1&t&&h._UZ(0,"mat-spinner",2)}function Bi(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"perun-web-apps-menu-buttons-field",3),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("items",t.items)("size","small")}}let ji=(()=>{class t{constructor(t,e,i,o,s,a,n,r){this.sideMenuService=t,this.groupService=e,this.router=i,this.guiAuthResolver=o,this.apiRequest=s,this.attributesManager=a,this.notificator=n,this.entityStorageService=r,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,p.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"})},t=>{"HttpErrorResponse"!==t.name&&this.notificator.showRPCError(t)}),this.guiAuthResolver.isManagerPagePrivileged(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.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[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.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[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.guiAuthResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[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.guiAuthResolver.isAuthorized("getGroupExtSources_Group_policy",[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 t.\u0275fac=function(e){return new(e||t)(h.Y36(m.D),h.Y36(l.ff),h.Y36(s.F0),h.Y36(u.x4),h.Y36(u.F5),h.Y36(l.H8),h.Y36(u.V6),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-settings-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.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(t,e){1&t&&(h.YNc(0,ki,1,0,"mat-spinner",0),h.YNc(1,Bi,2,2,"div",1)),2&t&&(h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,f.$g,B.L],styles:[""]}),t})();var Hi=i(14527);function $i(t,e){1&t&&h._UZ(0,"mat-spinner",3)}function zi(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",10),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).switchToInitial()}),h.TgZ(1,"i",11),h._uU(2,"arrow_right_alt"),h.qZA(),h._uU(3),h.ALo(4,"translate"),h.qZA()}2&t&&(h.xp6(3),h.hij(" ",h.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_INITIAL")," "))}function Xi(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",10),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).switchToExtension()}),h.TgZ(1,"i",11),h._uU(2,"cached"),h.qZA(),h._uU(3),h.ALo(4,"translate"),h.qZA()}2&t&&(h.xp6(3),h.hij(" ",h.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_EXTENSION")," "))}function Wi(t,e){if(1&t&&(h.TgZ(0,"mat-option",12),h._uU(1),h.ALo(2,"translate"),h.ALo(3,"uppercase"),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t),h.xp6(1),h.hij(" ",h.lcZ(2,2,h.lcZ(3,4,"SHARED_LIB.LANGUAGES."+t))," ")}}function Ki(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function to(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function eo(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"div",18),h._UZ(5,"input",19),h.qZA(),h.qZA(),h.TgZ(6,"div",20),h.YNc(7,Ki,2,1,"mat-icon",21),h.YNc(8,to,2,1,"mat-icon",21),h.TgZ(9,"span",22),h._uU(10),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(2),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(2),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function io(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function oo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function so(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"div",18),h._UZ(5,"input",24),h.qZA(),h.qZA(),h.TgZ(6,"div",20),h.YNc(7,io,2,1,"mat-icon",21),h.YNc(8,oo,2,1,"mat-icon",21),h.TgZ(9,"span",22),h._uU(10),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(4),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function ao(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function no(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function ro(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"div",18),h._UZ(5,"input",25),h._UZ(6,"br"),h._UZ(7,"input",19),h.qZA(),h.qZA(),h.TgZ(8,"div",20),h.YNc(9,ao,2,1,"mat-icon",21),h.YNc(10,no,2,1,"mat-icon",21),h.TgZ(11,"span",22),h._uU(12),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(2),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(2),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(2),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function lo(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"input",27),h._uU(2),h._UZ(3,"br"),h.qZA()),2&t){const t=e.$implicit,i=h.oxw(3).$implicit;h.xp6(1),h.Q6J("disabled","ALWAYS"===i.disabled),h.xp6(1),h.hij(" ",t,"")}}function co(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function uo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function po(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"form",18),h.YNc(5,lo,4,2,"div",9),h._UZ(6,"input",26),h.ALo(7,"translate"),h.qZA(),h.qZA(),h.TgZ(8,"div",20),h.YNc(9,co,2,1,"mat-icon",21),h.YNc(10,uo,2,1,"mat-icon",21),h.TgZ(11,"span",22),h._uU(12),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(2),h.Q6J("ngForOf",e.getLocalizedOptions(t)),h.xp6(1),h.s9C("value",h.lcZ(7,7,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION")),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(3),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function go(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"span",28),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(1),h.Q6J("innerHTML",e.getLocalizedLabel(t),h.oJD)}}function ho(t,e){if(1&t&&(h.TgZ(0,"option"),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.hij(" ",t," ")}}function mo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function Ao(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function Io(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"div",18),h.TgZ(5,"select",29),h.YNc(6,ho,2,1,"option",9),h.qZA(),h.qZA(),h.qZA(),h.TgZ(7,"div",20),h.YNc(8,mo,2,1,"mat-icon",21),h.YNc(9,Ao,2,1,"mat-icon",21),h.TgZ(10,"span",22),h._uU(11),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(2),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(1),h.Q6J("ngForOf",e.getLocalizedOptions(t)),h.xp6(2),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function To(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function fo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function Eo(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h._UZ(4,"textarea",30),h.qZA(),h.TgZ(5,"div",20),h.YNc(6,To,2,1,"mat-icon",21),h.YNc(7,fo,2,1,"mat-icon",21),h.TgZ(8,"span",22),h._uU(9),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(1),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(2),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function Zo(t,e){if(1&t&&(h.TgZ(0,"option",35),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.hij(" ",t," ")}}function _o(t,e){1&t&&(h.TgZ(0,"div",36),h.TgZ(1,"form"),h._UZ(2,"input",37),h.qZA(),h.qZA())}function bo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function So(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function No(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"div",18),h.TgZ(5,"select",31),h.NdJ("ngModelChange",function(e){h.CHM(t);const i=h.oxw(2).$implicit;return h.oxw(2).mapForCombobox[i.id]=e}),h.TgZ(6,"option",32),h._uU(7),h.ALo(8,"translate"),h.qZA(),h.YNc(9,Zo,2,1,"option",33),h.qZA(),h.YNc(10,_o,3,0,"div",34),h.qZA(),h.qZA(),h.TgZ(11,"div",20),h.YNc(12,bo,2,1,"mat-icon",21),h.YNc(13,So,2,1,"mat-icon",21),h.TgZ(14,"span",22),h._uU(15),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(2),h.Q6J("ngModel",e.mapForCombobox[t.id])("disabled","ALWAYS"===t.disabled),h.xp6(2),h.hij(" ",h.lcZ(8,9,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")," "),h.xp6(2),h.Q6J("ngForOf",e.getLocalizedOptions(t)),h.xp6(1),h.Q6J("ngIf","true"===e.mapForCombobox[t.id]),h.xp6(2),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function Oo(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"input",38),h._uU(2),h.qZA()),2&t){const t=e.$implicit,i=h.oxw(3).$implicit;h.xp6(1),h.Q6J("disabled","ALWAYS"===i.disabled),h.xp6(1),h.hij(" ",t," ")}}function vo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function xo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function Lo(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"div",18),h.TgZ(5,"form",36),h.YNc(6,Oo,3,2,"div",9),h.qZA(),h.qZA(),h.qZA(),h.TgZ(7,"div",20),h.YNc(8,vo,2,1,"mat-icon",21),h.YNc(9,xo,2,1,"mat-icon",21),h.TgZ(10,"span",22),h._uU(11),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(3),h.Q6J("ngForOf",e.getLocalizedOptions(t)),h.xp6(2),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function Co(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function Ro(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function Mo(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"div",18),h.TgZ(5,"form",36),h._UZ(6,"input",38),h._uU(7," example group1 "),h._UZ(8,"br"),h._UZ(9,"input",38),h._uU(10," example group2 "),h._UZ(11,"br"),h._UZ(12,"input",38),h._uU(13," example group3 "),h.qZA(),h.qZA(),h.qZA(),h.TgZ(14,"div",20),h.YNc(15,Co,2,1,"mat-icon",21),h.YNc(16,Ro,2,1,"mat-icon",21),h.TgZ(17,"span",22),h._uU(18),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(3),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(3),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(3),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(3),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function Do(t,e){if(1&t&&(h.TgZ(0,"mat-icon",41),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function Uo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",41),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function qo(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"button",39),h._uU(2),h.qZA(),h.YNc(3,Do,2,1,"mat-icon",40),h.YNc(4,Uo,2,1,"mat-icon",40),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(1),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(1),h.hij(" ",e.getLocalizedLabel(t)," "),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden)}}function Po(t,e){if(1&t&&(h.TgZ(0,"mat-icon",41),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function wo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",41),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function yo(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"button",39),h._uU(2),h.qZA(),h.YNc(3,Po,2,1,"mat-icon",40),h.YNc(4,wo,2,1,"mat-icon",40),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(1),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(1),h.hij(" ",e.getLocalizedLabel(t)," "),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden)}}function Go(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"lock"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.disabledTooltip(t))}}function Yo(t,e){if(1&t&&(h.TgZ(0,"mat-icon",23),h._uU(1,"visibility_off"),h.qZA()),2&t){const t=h.oxw(3).$implicit,e=h.oxw(2);h.Q6J("matTooltip",e.hiddenTooltip(t))}}function Jo(t,e){if(1&t&&(h.TgZ(0,"div",16),h.TgZ(1,"div",17),h.TgZ(2,"span",18),h._uU(3),h.qZA(),h.TgZ(4,"div",18),h.TgZ(5,"select",42),h.TgZ(6,"option",43),h._uU(7),h.ALo(8,"translate"),h.qZA(),h.TgZ(9,"option",44),h._uU(10,"(GMT -12:00) Eniwetok, Kwajalein"),h.qZA(),h.TgZ(11,"option",45),h._uU(12,"(GMT -11:00) Midway Island, Samoa"),h.qZA(),h.TgZ(13,"option",46),h._uU(14,"(GMT -10:00) Hawaii"),h.qZA(),h.TgZ(15,"option",47),h._uU(16,"(GMT -9:30) Taiohae"),h.qZA(),h.TgZ(17,"option",48),h._uU(18,"(GMT -9:00) Alaska"),h.qZA(),h.TgZ(19,"option",49),h._uU(20,"(GMT -8:00) Pacific Time (US & Canada)"),h.qZA(),h.TgZ(21,"option",50),h._uU(22,"(GMT -7:00) Mountain Time (US & Canada)"),h.qZA(),h.TgZ(23,"option",51),h._uU(24," (GMT -6:00) Central Time (US & Canada), Mexico City "),h.qZA(),h.TgZ(25,"option",52),h._uU(26," (GMT -5:00) Eastern Time (US & Canada), Bogota, Lima "),h.qZA(),h.TgZ(27,"option",53),h._uU(28,"(GMT -4:30) Caracas"),h.qZA(),h.TgZ(29,"option",54),h._uU(30,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),h.qZA(),h.TgZ(31,"option",55),h._uU(32,"(GMT -3:30) Newfoundland"),h.qZA(),h.TgZ(33,"option",56),h._uU(34,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),h.qZA(),h.TgZ(35,"option",57),h._uU(36,"(GMT -2:00) Mid-Atlantic"),h.qZA(),h.TgZ(37,"option",58),h._uU(38,"(GMT -1:00) Azores, Cape Verde Islands"),h.qZA(),h.TgZ(39,"option",59),h._uU(40," (GMT) Western Europe Time, London, Lisbon, Casablanca "),h.qZA(),h.TgZ(41,"option",60),h._uU(42,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),h.qZA(),h.TgZ(43,"option",61),h._uU(44,"(GMT +2:00) Kaliningrad, South Africa"),h.qZA(),h.TgZ(45,"option",62),h._uU(46,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),h.qZA(),h.TgZ(47,"option",63),h._uU(48,"(GMT +3:30) Tehran"),h.qZA(),h.TgZ(49,"option",64),h._uU(50,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),h.qZA(),h.TgZ(51,"option",65),h._uU(52,"(GMT +4:30) Kabul"),h.qZA(),h.TgZ(53,"option",66),h._uU(54," (GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent "),h.qZA(),h.TgZ(55,"option",67),h._uU(56,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),h.qZA(),h.TgZ(57,"option",68),h._uU(58,"(GMT +5:45) Kathmandu, Pokhara"),h.qZA(),h.TgZ(59,"option",69),h._uU(60,"(GMT +6:00) Almaty, Dhaka, Colombo"),h.qZA(),h.TgZ(61,"option",70),h._uU(62,"(GMT +6:30) Yangon, Mandalay"),h.qZA(),h.TgZ(63,"option",71),h._uU(64,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),h.qZA(),h.TgZ(65,"option",72),h._uU(66,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),h.qZA(),h.TgZ(67,"option",73),h._uU(68,"(GMT +8:45) Eucla"),h.qZA(),h.TgZ(69,"option",74),h._uU(70,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),h.qZA(),h.TgZ(71,"option",75),h._uU(72,"(GMT +9:30) Adelaide, Darwin"),h.qZA(),h.TgZ(73,"option",76),h._uU(74,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),h.qZA(),h.TgZ(75,"option",77),h._uU(76,"(GMT +10:30) Lord Howe Island"),h.qZA(),h.TgZ(77,"option",78),h._uU(78,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),h.qZA(),h.TgZ(79,"option",79),h._uU(80,"(GMT +11:30) Norfolk Island"),h.qZA(),h.TgZ(81,"option",80),h._uU(82,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),h.qZA(),h.TgZ(83,"option",81),h._uU(84,"(GMT +12:45) Chatham Islands"),h.qZA(),h.TgZ(85,"option",82),h._uU(86,"(GMT +13:00) Apia, Nukualofa"),h.qZA(),h.TgZ(87,"option",83),h._uU(88,"(GMT +14:00) Line Islands, Tokelau"),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(89,"div",20),h.YNc(90,Go,2,1,"mat-icon",21),h.YNc(91,Yo,2,1,"mat-icon",21),h.TgZ(92,"span",22),h._uU(93),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.oxw(2).$implicit,e=h.oxw(2);h.xp6(3),h.Oqu(e.getLocalizedLabel(t)),h.xp6(2),h.Q6J("disabled","ALWAYS"===t.disabled),h.xp6(2),h.hij(" ",h.lcZ(8,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")," "),h.xp6(83),h.Q6J("ngIf","NEVER"!==t.disabled),h.xp6(1),h.Q6J("ngIf","NEVER"!==t.hidden),h.xp6(2),h.Oqu(e.getLocalizedHint(t))}}function Vo(t,e){if(1&t&&(h.TgZ(0,"div",14),h.YNc(1,eo,11,5,"div",15),h.YNc(2,so,11,4,"div",15),h.YNc(3,ro,13,6,"div",15),h.YNc(4,po,13,9,"div",15),h.YNc(5,go,2,1,"div",2),h.YNc(6,Io,12,6,"div",15),h.YNc(7,Eo,10,5,"div",15),h.YNc(8,No,16,11,"div",15),h.YNc(9,Lo,12,5,"div",15),h.YNc(10,Mo,19,7,"div",15),h.YNc(11,qo,5,4,"div",15),h.YNc(12,yo,5,4,"div",2),h.YNc(13,Jo,94,8,"div",15),h.qZA()),2&t){const t=h.oxw().$implicit;h.xp6(1),h.Q6J("ngIf",("TEXTFIELD"===t.type||"VALIDATED_EMAIL"===t.type||"USERNAME"===t.type)&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","FROM_FEDERATION_SHOW"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","PASSWORD"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","RADIO"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf",("HEADING"===t.type||"HTML_COMMENT"===t.type)&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","SELECTIONBOX"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","TEXTAREA"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","COMBOBOX"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","CHECKBOX"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","SUBMIT_BUTTON"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","AUTO_SUBMIT_BUTTON"===t.type&&"ALWAYS"!==t.hidden),h.xp6(1),h.Q6J("ngIf","TIMEZONE"===t.type&&"ALWAYS"!==t.hidden)}}function Fo(t,e){if(1&t&&(h.TgZ(0,"div"),h.YNc(1,Vo,14,13,"div",13),h.qZA()),2&t){const t=e.$implicit,i=h.oxw(2);h.xp6(1),h.Q6J("ngIf",i.isValid(t))}}function Qo(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div"),h.TgZ(1,"div",4),h.YNc(2,zi,5,3,"button",5),h.YNc(3,Xi,5,3,"button",5),h.TgZ(4,"mat-form-field"),h.TgZ(5,"mat-label"),h._uU(6),h.ALo(7,"translate"),h.qZA(),h.TgZ(8,"mat-select",6),h.NdJ("valueChange",function(e){return h.CHM(t),h.oxw().currentLanguage=e}),h.YNc(9,Wi,4,6,"mat-option",7),h.qZA(),h.qZA(),h.qZA(),h.TgZ(10,"div",8),h.YNc(11,Fo,2,1,"div",9),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.xp6(2),h.Q6J("ngIf",!t.initialPage),h.xp6(1),h.Q6J("ngIf",t.initialPage),h.xp6(3),h.Oqu(h.lcZ(7,6,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),h.xp6(2),h.Q6J("value",t.currentLanguage),h.xp6(1),h.Q6J("ngForOf",t.languages),h.xp6(2),h.Q6J("ngForOf",t.applicationFormItems)}}let ko=(()=>{class t{constructor(t,e,i){this.route=t,this.translate=e,this.store=i,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(t=>{this.applicationFormItems=JSON.parse(t.get("applicationFormItems")),this.loading=!1})}switchToInitial(){this.initialPage=!0}switchToExtension(){this.initialPage=!1}getLocalizedOptions(t){if(t.i18n[this.currentLanguage]){const e=t.i18n[this.currentLanguage].options;if(null!==e&&""!==e){const t=[];for(const i of e.split("|"))t.push(i.split("#")[1]);return t}}return[]}isValid(t){if(t.forDelete)return!1;for(const e of t.applicationTypes){if("INITIAL"===e&&this.initialPage)return!0;if("EXTENSION"===e&&!this.initialPage)return!0}return!1}disabledTooltip(t){let e,i,o;switch(t.disabled){case"ALWAYS":return this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.ALWAYS_DISABLED");case"IF_PREFILLED":return e=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.DISABLED_WHEN"),i=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(e=>e.id===t.disabledDependencyItemId).shortname,o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_PREFILLED"),`${e} ${i} ${o}`;case"IF_EMPTY":return e=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.DISABLED_WHEN"),i=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(e=>e.id===t.disabledDependencyItemId).shortname,o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_EMPTY"),`${e} ${i} ${o}`;default:return""}}hiddenTooltip(t){let e,i,o;switch(t.hidden){case"ALWAYS":return this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.ALWAYS_HIDDEN");case"IF_PREFILLED":return e=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.HIDDEN_WHEN"),i=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(e=>e.id===t.hiddenDependencyItemId).shortname,o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_PREFILLED"),`${e} ${i} ${o}`;case"IF_EMPTY":return e=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.HIDDEN_WHEN"),i=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(e=>e.id===t.hiddenDependencyItemId).shortname,o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_EMPTY"),`${e} ${i} ${o}`;default:return""}}getLocalizedLabel(t){return t.i18n[this.currentLanguage]&&t.i18n[this.currentLanguage].label?t.i18n[this.currentLanguage].label:t.shortname}getLocalizedHint(t){return t.i18n[this.currentLanguage]?t.i18n[this.currentLanguage].help:""}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(s.gz),h.Y36(S.sK),h.Y36(u.d6))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-application-form-preview"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.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","disabled","",1,"w-100"],["type","text",1,"mb-1","w-100",3,"disabled"],["type","reset",3,"disabled","value"],["type","radio","name","temp",3,"disabled"],[3,"innerHTML"],[1,"w-100",3,"disabled"],[1,"w-50",3,"disabled"],[1,"w-100",3,"ngModel","disabled","ngModelChange"],["value","true","selected",""],["value","false",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["value","false"],[1,"w-100"],["type","text"],["type","checkbox",3,"disabled"],["mat-flat-button","","color","accent",3,"disabled"],["class","pointer left",3,"matTooltip",4,"ngIf"],[1,"pointer","left",3,"matTooltip"],["name","timezone_offset","id","timezone-offset",1,"w-100",3,"disabled"],["value","-12:00","selected","selected"],["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"]],template:function(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.YNc(3,$i,1,0,"mat-spinner",1),h.YNc(4,Qo,12,8,"div",2)),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,3,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.TITLE"),"\n"),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,f.$g,fe.KE,fe.hX,Ee.gD,o.sg,b.lW,_e.ey,E.Hw,Z.gM,me._Y,me.JL,me.F,me.YN,me.Kr,me.EJ,me.JJ,me.On],pipes:[S.X$,o.gd],styles:[".left[_ngcontent-%COMP%]{margin-left:10px}.pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();function Bo(t,e){1&t&&(h._uU(0),h.ALo(1,"translate")),2&t&&h.hij(" ",h.lcZ(1,1,"MEMBER_DETAIL.ENTITY")," ")}function jo(t,e){if(1&t&&h._UZ(0,"app-one-entity-attribute-page",5),2&t){const t=h.oxw();h.Q6J("entity","member")("entityId",t.memberId)}}function Ho(t,e){1&t&&(h._uU(0),h.ALo(1,"translate"),h.ALo(2,"translate")),2&t&&h.AsE(" ",h.lcZ(1,2,"MEMBER_DETAIL.ENTITY")," - ",h.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function $o(t,e){if(1&t&&h._UZ(0,"app-two-entity-attribute-page",6),2&t){const t=h.oxw(2);h.Q6J("firstEntity","member")("firstEntityId",t.memberId)("secondEntity","group")}}function zo(t,e){1&t&&(h.TgZ(0,"mat-tab"),h.YNc(1,Ho,3,6,"ng-template",1),h.YNc(2,$o,1,3,"ng-template",2),h.qZA())}function Xo(t,e){1&t&&(h._uU(0),h.ALo(1,"translate"),h.ALo(2,"translate")),2&t&&h.AsE(" ",h.lcZ(1,2,"MEMBER_DETAIL.ENTITY")," - ",h.lcZ(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function Wo(t,e){if(1&t&&h._UZ(0,"app-two-entity-attribute-page",6),2&t){const t=h.oxw(2);h.Q6J("firstEntity","member")("firstEntityId",t.memberId)("secondEntity","resource")}}function Ko(t,e){1&t&&(h.TgZ(0,"mat-tab"),h.YNc(1,Xo,3,6,"ng-template",1),h.YNc(2,Wo,1,3,"ng-template",2),h.qZA())}function ts(t,e){1&t&&(h._uU(0),h.ALo(1,"translate")),2&t&&h.hij(" ",h.lcZ(1,1,"ADMIN_USER.ENTITY")," ")}function es(t,e){if(1&t&&h._UZ(0,"app-one-entity-attribute-page",7),2&t){const t=h.oxw();h.Q6J("entityId",t.member.userId)("entity","user")}}function is(t,e){1&t&&(h._uU(0),h.ALo(1,"translate"),h.ALo(2,"translate")),2&t&&h.AsE(" ",h.lcZ(1,2,"ADMIN_USER.ENTITY")," - ",h.lcZ(2,4,"FACILITY_DETAIL.ENTITY")," ")}function os(t,e){if(1&t&&h._UZ(0,"app-two-entity-attribute-page",6),2&t){const t=h.oxw(2);h.Q6J("firstEntity","user")("firstEntityId",t.member.userId)("secondEntity","facility")}}function ss(t,e){1&t&&(h.TgZ(0,"mat-tab"),h.YNc(1,is,3,6,"ng-template",1),h.YNc(2,os,1,3,"ng-template",2),h.qZA())}let as=(()=>{class t{constructor(t,e,i){this.route=t,this.authResolver=e,this.memberManager=i}ngOnInit(){this.route.parent.params.subscribe(t=>{this.memberId=t.memberId,this.memberManager.getMemberById(this.memberId).subscribe(t=>{this.member=t,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:t.userId}])})})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(s.gz),h.Y36(u.x4),h.Y36(l.uq))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-member-attributes"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:14,vars:6,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[1,"mb-2"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity"],[3,"entityId","entity"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"mat-tab-group"),h.TgZ(5,"mat-tab"),h.YNc(6,Bo,2,3,"ng-template",1),h.YNc(7,jo,1,2,"ng-template",2),h.qZA(),h.YNc(8,zo,3,0,"mat-tab",3),h.YNc(9,Ko,3,0,"mat-tab",3),h.TgZ(10,"mat-tab",4),h.YNc(11,ts,2,3,"ng-template",1),h.YNc(12,es,1,2,"ng-template",2),h.qZA(),h.YNc(13,ss,3,0,"mat-tab",3),h.qZA(),h.qZA()),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,4,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),h.xp6(6),h.Q6J("ngIf",e.memberGroupAttAuth),h.xp6(1),h.Q6J("ngIf",e.memberResourceAttAuth),h.xp6(4),h.Q6J("ngIf",e.userFacilityAttAuth))},directives:[Ui.SP,Ui.uX,Ui.uD,Ui.Vc,o.O5,ce.t,qi.Y],pipes:[S.X$],styles:[""]}),t})(),ns=(()=>{class t{constructor(t,e,i,o){this.sideMenuService=t,this.voService=e,this.authResolver=i,this.entityStorageService=o,this.items=[]}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.initItems()}initItems(){this.items=[{cssIcon:"perun-resource",url:`/organizations/${this.vo.id}/resources/preview`,label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",style:"vo-btn"}],this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[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.authResolver.isAuthorized("getResourcesState_Vo_policy",[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 t.\u0275fac=function(e){return new(e||t)(h.Y36(m.D),h.Y36(l.YF),h.Y36(u.x4),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-resources-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h._UZ(1,"perun-web-apps-menu-buttons-field",0),h.qZA()),2&t&&(h.xp6(1),h.Q6J("items",e.items)("size","small"))},directives:[B.L],styles:[""]}),t})();var rs=i(88227),ls=i(97397),cs=i(4230),us=i(24923);function ps(t,e){1&t&&h._UZ(0,"mat-spinner",6)}function ds(t,e){1&t&&h._UZ(0,"th",15)}function gs(t,e){if(1&t&&(h.TgZ(0,"td",16),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.Oqu(t.tagName)}}function hs(t,e){1&t&&h._UZ(0,"tr",17)}function ms(t,e){1&t&&h._UZ(0,"tr",18)}function As(t,e){if(1&t&&(h.TgZ(0,"div",7),h.TgZ(1,"p"),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"div",8),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.TgZ(7,"table",9),h.ynx(8,10),h.YNc(9,ds,1,0,"th",11),h.YNc(10,gs,2,1,"td",12),h.BQk(),h.YNc(11,hs,1,0,"tr",13),h.YNc(12,ms,1,0,"tr",14),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.hij(" ",h.lcZ(3,5,"DIALOGS.DELETE_RESOURCE_TAG.DESCRIPTION")," "),h.xp6(3),h.hij(" ",h.lcZ(6,7,"DIALOGS.DELETE_RESOURCE_TAG.ASK")," "),h.xp6(2),h.Q6J("dataSource",t.dataSource),h.xp6(4),h.Q6J("matHeaderRowDef",t.displayedColumns),h.xp6(1),h.Q6J("matRowDefColumns",t.displayedColumns)}}let Is=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.resourceManager=i,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new nt.by(this.data.tagsForDelete)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;for(const t of this.data.tagsForDelete)this.resourceManager.deleteResourceTag({resourceTag:t}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.dialogRef.close(!0))}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(l.xk))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,ps,1,0,"mat-spinner",1),h.YNc(5,As,13,9,"div",2),h.TgZ(6,"div",3),h.TgZ(7,"button",4),h.NdJ("click",function(){return e.onCancel()}),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"button",5),h.NdJ("click",function(){return e.onSubmit()}),h._uU(11),h.ALo(12,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.Oqu(h.lcZ(3,9,"DIALOGS.DELETE_RESOURCE_TAG.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(9,11,"DIALOGS.DELETE_RESOURCE_TAG.CANCEL")," "),h.xp6(2),h.Q6J("disabled",e.loading),h.xp6(1),h.hij(" ",h.lcZ(12,13,"DIALOGS.DELETE_RESOURCE_TAG.SUBMIT")," "))},directives:[A.uh,o.O5,A.H8,b.lW,f.$g,A.xY,nt.BZ,nt.w1,nt.fO,nt.Dz,nt.as,nt.nj,nt.ge,nt.ev,nt.XQ,nt.Gk],pipes:[S.X$],styles:[""]}),t})();var Ts=i(60611),fs=i(59403),Es=i(19139),Zs=i(4196);function _s(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",7),h.NdJ("click",function(){return h.CHM(t),h.oxw().create()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function bs(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",8),h.NdJ("click",function(){return h.CHM(t),h.oxw().deleteTag()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("disabled",0===t.selection.selected.length),h.xp6(1),h.hij(" ",h.lcZ(2,2,"VO_DETAIL.RESOURCES.TAGS.DELETE_BUTTON"),"\n")}}function Ss(t,e){1&t&&h._UZ(0,"mat-spinner",9)}function Ns(t,e){if(1&t&&h._UZ(0,"app-resources-tags-list",10),2&t){const t=h.oxw();h.Q6J("selection",t.selection)("tableId",t.tableId)("resourceTags",t.resourceTag)("filterValue",t.filterValue)("displayedColumns",t.displayedColumns)("entity","vo")}}let Os=(()=>{class t{constructor(t,e,i,o,s,a){this.resourceManager=t,this.dialog=e,this.notificator=i,this.translator=o,this.authResolver=s,this.entityStorageService=a,this.loading=!1,this.resourceTag=[],this.selection=new cs.Ov(!0,[]),this.tableId=Ts.O7,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.updateData()}deleteTag(){const t=(0,c.kZ)();t.width="450px",t.data={tagsForDelete:this.selection.selected,theme:"vo-theme"},this.dialog.open(Is,t).afterClosed().subscribe(t=>{t&&(this.translator.get("VO_DETAIL.RESOURCES.TAGS.DELETE_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.updateData())})}create(){const t=(0,c.kZ)();t.width="450px",t.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(us.p,t).afterClosed().subscribe(t=>{t&&(this.translator.get("VO_DETAIL.RESOURCES.TAGS.CREATE_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.updateData())})}updateData(){this.loading=!0,this.selection.clear(),this.resourceManager.getAllResourcesTagsForVo(this.vo.id).subscribe(t=>{this.resourceTag=t,this.selection.clear(),this.setAuthRights(),this.loading=!1})}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")}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.xk),h.Y36(A.uw),h.Y36(u.V6),h.Y36(S.sK),h.Y36(u.x4),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-resources-tags"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["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,"selection","tableId","resourceTags","filterValue","displayedColumns","entity",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,"selection","tableId","resourceTags","filterValue","displayedColumns","entity"]],template:function(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"perun-web-apps-refresh-button",1),h.NdJ("refresh",function(){return e.updateData()}),h.qZA(),h.YNc(4,_s,3,3,"button",2),h.YNc(5,bs,3,4,"button",3),h.TgZ(6,"perun-web-apps-immediate-filter",4),h.NdJ("filter",function(t){return e.applyFilter(t)}),h.qZA(),h.YNc(7,Ss,1,0,"mat-spinner",5),h.YNc(8,Ns,1,6,"app-resources-tags-list",6)),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,6,"VO_DETAIL.RESOURCES.TAGS.TITLE")),h.xp6(3),h.Q6J("ngIf",e.createAuth),h.xp6(1),h.Q6J("ngIf",e.deleteAuth),h.xp6(1),h.Q6J("placeholder","VO_DETAIL.RESOURCES.TAGS.SEARCH"),h.xp6(1),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[fs.t,o.O5,Es.L,b.lW,f.$g,Zs.o],pipes:[S.X$],styles:[""]}),t})();function vs(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"app-expiration-settings",1),h.NdJ("saveAttribute",function(e){return h.CHM(t),h.oxw().saveExpirationAttribute(e)}),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("expirationAttribute",t.expirationAttribute)}}let xs=(()=>{class t{constructor(t,e,i,o,s){this.attributesManager=t,this.translate=e,this.notificator=i,this.apiRequest=o,this.entityStorageService=s,this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(t=>this.successMessage=t),this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(t=>this.errorMessage=t)}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.loadSettings()}loadSettings(){this.attributesManager.getGroupAttributeByName(this.group.id,p.r.GROUP_DEF_EXPIRATION_RULES).subscribe(t=>{this.expirationAttribute=t})}saveExpirationAttribute(t){this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setGroupAttribute({group:this.group.id,attribute:t}).subscribe(()=>{this.loadSettings(),this.notificator.showSuccess(this.successMessage)},t=>this.notificator.showRPCError(t.error,this.errorMessage))}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.H8),h.Y36(S.sK),h.Y36(u.V6),h.Y36(u.F5),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-settings-expiration"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(t,e){1&t&&h.YNc(0,vs,1,1,"app-expiration-settings",0),2&t&&h.Q6J("ngIf",void 0!==e.expirationAttribute)},directives:[o.O5,Pe],styles:[""]}),t})(),Ls=(()=>{class t{constructor(t,e){this.guiAuthResolver=t,this.entityStorageService=e,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 t.\u0275fac=function(e){return new(e||t)(h.Y36(u.x4),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-settings-managers"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:1,vars:4,consts:[[3,"complementaryObject","complementaryObjectType","theme","availableRoles"]],template:function(t,e){1&t&&h._UZ(0,"app-managers-page",0),2&t&&h.Q6J("complementaryObject",e.group)("complementaryObjectType",e.type)("theme",e.theme)("availableRoles",e.availableRoles)},directives:[Ye.s],styles:[""]}),t})();function Cs(t,e){1&t&&h._UZ(0,"mat-spinner",6)}function Rs(t,e){1&t&&h._UZ(0,"th",15)}function Ms(t,e){if(1&t&&(h.TgZ(0,"td",16),h._uU(1),h.qZA()),2&t){const t=e.$implicit,i=h.oxw(2);h.xp6(1),h.Oqu(i.getMailType(t))}}function Ds(t,e){1&t&&h._UZ(0,"tr",17)}function Us(t,e){1&t&&h._UZ(0,"tr",18)}function qs(t,e){if(1&t&&(h.TgZ(0,"div",7),h.TgZ(1,"p"),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"div",8),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.TgZ(7,"table",9),h.ynx(8,10),h.YNc(9,Rs,1,0,"th",11),h.YNc(10,Ms,2,1,"td",12),h.BQk(),h.YNc(11,Ds,1,0,"tr",13),h.YNc(12,Us,1,0,"tr",14),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.hij(" ",h.lcZ(3,5,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.DESCRIPTION")," "),h.xp6(3),h.hij(" ",h.lcZ(6,7,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CONFIRMATION")," "),h.xp6(2),h.Q6J("dataSource",t.dataSource),h.xp6(4),h.Q6J("matHeaderRowDef",t.displayedColumns),h.xp6(1),h.Q6J("matRowDefColumns",t.displayedColumns)}}let Ps=(()=>{class t{constructor(t,e,i,o,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=o,this.registrarService=s,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new nt.by(this.data.mails)}onCancel(){this.dialogRef.close(!1)}onSubmit(){if(this.loading=!0,this.data.groupId)for(const t of this.data.mails)this.registrarService.deleteApplicationMailForGroup(this.data.groupId,t.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1);else for(const t of this.data.mails)this.registrarService.deleteApplicationMailForVo(this.data.voId,t.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}getMailType(t){let e="";return null==t.mailType||0===t.mailType.length?e="":this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_"+t.mailType).subscribe(t=>{e=t}),e}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(u.V6),h.Y36(S.sK),h.Y36(l.tk))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,Cs,1,0,"mat-spinner",1),h.YNc(5,qs,13,9,"div",2),h.TgZ(6,"div",3),h.TgZ(7,"button",4),h.NdJ("click",function(){return e.onCancel()}),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"button",5),h.NdJ("click",function(){return e.onSubmit()}),h._uU(11),h.ALo(12,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.Oqu(h.lcZ(3,9,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(9,11,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CANCEL")," "),h.xp6(2),h.Q6J("disabled",e.loading),h.xp6(1),h.hij(" ",h.lcZ(12,13,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.SUBMIT")," "))},directives:[A.uh,o.O5,A.H8,b.lW,f.$g,A.xY,nt.BZ,nt.w1,nt.fO,nt.Dz,nt.as,nt.nj,nt.ge,nt.ev,nt.XQ,nt.Gk],pipes:[S.X$],styles:[""]}),t})();var ws=i(10901);function ys(t,e){1&t&&h._UZ(0,"mat-spinner",7)}function Gs(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",8),h.TgZ(1,"div"),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"mat-form-field"),h.TgZ(5,"textarea",9),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().mailFooter=e}),h.qZA(),h.qZA(),h.TgZ(6,"div",10),h._uU(7),h.ALo(8,"translate"),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.xp6(2),h.hij("",h.lcZ(3,4,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.LABEL"),":"),h.xp6(3),h.Q6J("cdkTextareaAutosize",!0)("ngModel",t.mailFooter),h.xp6(2),h.hij(" ",h.lcZ(8,6,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.DESCRIPTION")," ")}}let Ys=(()=>{class t{constructor(t,e,i,o,s){this.dialogRef=t,this.attributesManager=e,this.translateService=i,this.notificator=o,this.data=s,this.mailFooter="",this.loading=!1}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.data.groupId?this.attributesManager.setGroupAttribute({group:this.data.groupId,attribute:this.mailAttribute}).subscribe(()=>{this.notificateSuccess(),this.dialogRef.close()},()=>this.loading=!1):this.attributesManager.setVoAttribute({vo:this.data.voId,attribute:this.mailAttribute}).subscribe(()=>{this.notificateSuccess(),this.dialogRef.close()},()=>this.loading=!1)}cancel(){this.dialogRef.close()}getFooterForVo(){this.attributesManager.getVoAttributeByName(this.data.voId,p.r.VO_DEF_MAIL_FOOTER).subscribe(t=>{this.mailAttribute=t,this.editAuth=this.mailAttribute.writable,this.mailFooter=t.value?t.value:""})}getFooterForGroup(){this.attributesManager.getGroupAttributeByName(this.data.groupId,p.r.GROUP_DEF_MAIL_FOOTER).subscribe(t=>{this.mailAttribute=t,this.editAuth=this.mailAttribute.writable,this.mailFooter=t.value?t.value:""})}notificateSuccess(){this.translateService.get("DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close()})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(l.H8),h.Y36(S.sK),h.Y36(u.V6),h.Y36(A.WI))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-edit-email-footer-dialog"]],decls:15,vars:20,consts:[["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"],[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"],["matInput","",3,"cdkTextareaAutosize","ngModel","ngModelChange"],[1,"mt-2","font-italic","text-muted"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,ys,1,0,"mat-spinner",1),h.YNc(5,Gs,9,8,"div",2),h.TgZ(6,"div",3),h.TgZ(7,"button",4),h.NdJ("click",function(){return e.cancel()}),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"div",5),h.ALo(11,"translate"),h.TgZ(12,"button",6),h.NdJ("click",function(){return e.submit()}),h._uU(13),h.ALo(14,"translate"),h.qZA(),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.Oqu(h.lcZ(3,12,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(9,14,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.CANCEL_BUTTON")," "),h.xp6(2),h.s9C("matTooltip",h.lcZ(11,16,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.HINT")),h.Q6J("matTooltipDisabled",e.editAuth)("matTooltipPosition","above"),h.xp6(2),h.Q6J("disabled",e.loading||!e.editAuth),h.xp6(1),h.hij(" ",h.lcZ(14,18,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUBMIT_BUTTON")," "))},directives:[A.uh,o.O5,A.H8,b.lW,Z.gM,f.$g,A.xY,fe.KE,Ze.Nt,ws.IC,me.Fj,me.JJ,me.On],pipes:[S.X$],styles:[""]}),t})();var Js=i(4253);function Vs(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div"),h.TgZ(1,"div",1),h.TgZ(2,"button",2),h.NdJ("click",function(){const e=h.CHM(t).$implicit;return h.oxw().addTag("{"+e[0]+"}")}),h.ALo(3,"translate"),h._uU(4),h.qZA(),h.TgZ(5,"span",3),h._uU(6),h.ALo(7,"translate"),h.qZA(),h.qZA(),h._UZ(8,"mat-divider",4),h.qZA()}if(2&t){const t=e.$implicit;h.xp6(2),h.s9C("matTooltip",h.lcZ(3,3,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TAG_HINT")),h.xp6(2),h.hij(" ",t[0]," "),h.xp6(2),h.hij(" ",h.lcZ(7,5,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL."+t[1])," ")}}let Fs=(()=>{class t{constructor(){this.tags=[],this.addedTag=new h.vpe}addTag(t){this.addedTag.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-tag-section"]],inputs:{tags:"tags"},outputs:{addedTag:"addedTag"},decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[1,"d-flex","flex-row"],["matTooltipPosition","above","mat-flat-button","",1,"tag-text","w-25",3,"matTooltip","click"],[1,"w-75"],[1,"mt-1","mb-1"]],template:function(t,e){1&t&&h.YNc(0,Vs,9,7,"div",0),2&t&&h.Q6J("ngForOf",e.tags)},directives:[o.sg,b.lW,Z.gM,oi.d],pipes:[S.X$],styles:[".tag-text[_ngcontent-%COMP%]{font-size:.9rem;font-weight:700}"]}),t})(),Qs=(()=>{class t{constructor(){this.addedTag=new h.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 t=[];t.push(["appId","APPID_DESCRIPTION"]),t.push(["actor","ACTOR_DESCRIPTION"]),t.push(["extSource","EXTSOURCE_DESCRIPTION"]),t.push(["voName","VONAME_DESCRIPTION"]),t.push(["groupName","GROUPNAME_DESCRIPTION"]),t.push(["mailFooter","MAILFOOTER_DESCRIPTION"]),t.push(["errors","ERRORS_DESCRIPTION"]),t.push(["customMessage","CUSTOMMESSAGE_DESCRIPTION"]),t.push(["fromApp-itemName","FROMAPPITEMNAME_DESCRIPTION"]),this.applicationRelatedTags=t}getUserRelatedTags(){const t=[];t.push(["firstName","FIRSTNAME_DESCRIPTION"]),t.push(["lastName","LASTNAME_DESCRIPTION"]),t.push(["displayName","DISPLAYNAME_DESCRIPTION"]),t.push(["mail","MAIL_DESCRIPTION"]),t.push(["phone","PHONE_DESCRIPTION"]),t.push(["login-namespace","LOGINNAMESPACE_DESCRIPTION"]),t.push(["membershipExpiration","MEMBERSHIPEXPIRATION_DESCRIPTION"]),this.userRelatedTags=t}getValidationLinksUsersTags(){const t=[];t.push(["validationLink","VALIDATIONLINK_DESCRIPTION"]),t.push(["validationLink-krb","VALIDATIONKRB_DESCRIPTION"]),t.push(["validationLink-fed","VALIDATIONFED_DESCRIPTION"]),t.push(["validationLink-cert","VALIDATIONCERT_DESCRIPTION"]),t.push(["validationLink-non","VALIDATIONNON_DESCRIPTION"]),t.push(["redirectUrl","REDIRECTURL_DESCRIPTION"]),this.validationLinksUsersTags=t}getApplicationLinksUsersTags(){const t=[];t.push(["appGuiUrl","APPGUIURL_DESCRIPTION"]),t.push(["appGuiUrl-krb","APPGUIURLKRB_DESCRIPTION"]),t.push(["appGuiUrl-fed","APPGUIURLFED_DESCRIPTION"]),t.push(["appGuiUrl-cert","APPGUIURLCERT_DESCRIPTION"]),t.push(["appGuiUrl-non","APPGUIURLNON_DESCRIPTION"]),this.applicationLinksUsersTags=t}getApplicationLinksAdministratorsTags(){const t=[];t.push(["appDetailUrl","APPDETAILURL_DESCRIPTION"]),t.push(["appDetailUrl-krb","APPDETAILURLKRB_DESCRIPTION"]),t.push(["appDetailUrl-fed","APPDETAILURLFED_DESCRIPTION"]),t.push(["appDetailUrl-cert","APPDETAILURLCERT_DESCRIPTION"]),this.applicationLinksAdministratorsTags=t}getPerunLinksAdministratorsTags(){const t=[];t.push(["perunGuiUrl","PERUNGUIURL_DESCRIPTION"]),t.push(["perunGuiUrl-krb","PERUNGUIURLKRB_DESCRIPTION"]),t.push(["perunGuiUrl-fed","PERUNGUIURLFED_DESCRIPTION"]),t.push(["perunGuiUrl-cert","PERUNGUIURLCERT_DESCRIPTION"]),this.perunLinksAdministratorsTags=t}getUserInvitationsTags(){const t=[];t.push(["voName","USER_INVITATIONS_VONAME_DESCRIPTION"]),t.push(["groupName","USER_INVITATIONS_GROUPNAME_DESCRIPTION"]),t.push(["displayName","USER_INVITATIONS_DISPLAYNAME_DESCRIPTION"]),t.push(["mailFooter","USER_INVITATIONS_MAILFOOTER_DESCRIPTION"]),t.push(["invitationLink","INVITATIONLINK_DESCRIPTION"]),t.push(["invitationLink-krb","INVITATIONLINKKRB_DESCRIPTION"]),t.push(["invitationLink-fed","INVITATIONLINKFED_DESCRIPTION"]),t.push(["invitationLink-cert","INVITATIONLINKCERT_DESCRIPTION"]),t.push(["invitationLink-non","INVITATIONLINKNON_DESCRIPTION"]),this.userInvitationsTags=t}addTag(t){this.addedTag.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=h.Xpm({type:t,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(t,e){1&t&&(h.TgZ(0,"app-alert",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"div",1),h.TgZ(4,"div",2),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.TgZ(7,"app-tag-section",3),h.NdJ("addedTag",function(t){return e.addTag(t)}),h.qZA(),h.TgZ(8,"div",4),h._uU(9),h.ALo(10,"translate"),h.qZA(),h.TgZ(11,"app-tag-section",3),h.NdJ("addedTag",function(t){return e.addTag(t)}),h.qZA(),h.TgZ(12,"div",4),h._uU(13),h.ALo(14,"translate"),h.qZA(),h.TgZ(15,"div",5),h._uU(16),h.ALo(17,"translate"),h.qZA(),h.TgZ(18,"app-tag-section",3),h.NdJ("addedTag",function(t){return e.addTag(t)}),h.qZA(),h.TgZ(19,"div",4),h._uU(20),h.ALo(21,"translate"),h.qZA(),h.TgZ(22,"div",5),h._uU(23),h.ALo(24,"translate"),h.qZA(),h.TgZ(25,"app-tag-section",3),h.NdJ("addedTag",function(t){return e.addTag(t)}),h.qZA(),h.TgZ(26,"div",4),h._uU(27),h.ALo(28,"translate"),h.qZA(),h.TgZ(29,"div",5),h._uU(30),h.ALo(31,"translate"),h.qZA(),h.TgZ(32,"app-tag-section",3),h.NdJ("addedTag",function(t){return e.addTag(t)}),h.qZA(),h.TgZ(33,"div",4),h._uU(34),h.ALo(35,"translate"),h.qZA(),h.TgZ(36,"div",5),h._uU(37),h.ALo(38,"translate"),h.qZA(),h.TgZ(39,"app-tag-section",3),h.NdJ("addedTag",function(t){return e.addTag(t)}),h.qZA(),h.TgZ(40,"div",4),h._uU(41),h.ALo(42,"translate"),h.qZA(),h.TgZ(43,"div",5),h._uU(44),h.ALo(45,"translate"),h.qZA(),h.TgZ(46,"app-tag-section",3),h.NdJ("addedTag",function(t){return e.addTag(t)}),h.qZA(),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,20,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TAGS_DESCRIPTION"),"\n"),h.xp6(4),h.hij(" ",h.lcZ(6,22,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_RELATED_SECTION"),": "),h.xp6(2),h.Q6J("tags",e.applicationRelatedTags),h.xp6(2),h.hij(" ",h.lcZ(10,24,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_RELATED_SECTION"),": "),h.xp6(2),h.Q6J("tags",e.userRelatedTags),h.xp6(2),h.hij(" ",h.lcZ(14,26,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_USERS_SECTION"),": "),h.xp6(3),h.hij(" ",h.lcZ(17,28,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_DESCRIPTION")," "),h.xp6(2),h.Q6J("tags",e.validationLinksUsersTags),h.xp6(2),h.hij(" ",h.lcZ(21,30,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_USERS_SECTION"),": "),h.xp6(3),h.hij(" ",h.lcZ(24,32,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_DESCRIPTION")," "),h.xp6(2),h.Q6J("tags",e.applicationLinksUsersTags),h.xp6(2),h.hij(" ",h.lcZ(28,34,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_SECTION"),": "),h.xp6(3),h.hij(" ",h.lcZ(31,36,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_DESCRIPTION")," "),h.xp6(2),h.Q6J("tags",e.applicationLinksAdministratorsTags),h.xp6(2),h.hij(" ",h.lcZ(35,38,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_SECTION"),": "),h.xp6(3),h.hij(" ",h.lcZ(38,40,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_DESCRIPTION")," "),h.xp6(2),h.Q6J("tags",e.perunLinksAdministratorsTags),h.xp6(2),h.hij(" ",h.lcZ(42,42,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_SECTION"),": "),h.xp6(3),h.hij(" ",h.lcZ(45,44,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_DESCRIPTION")," "),h.xp6(2),h.Q6J("tags",e.userInvitationsTags))},directives:[dt.w,Js.PQ,Fs],pipes:[S.X$],styles:[".scrollable[_ngcontent-%COMP%]{height:370px;overflow:auto}"]}),t})();function ks(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",9),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.qZA()),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_CREATE")))}function Bs(t,e){1&t&&(h.TgZ(0,"h1",9),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_EDIT")))}function js(t,e){1&t&&h._UZ(0,"mat-spinner",10)}function Hs(t,e){1&t&&(h.TgZ(0,"mat-option",37),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APPROVABLE_GROUP_APP_USER")," "))}function $s(t,e){1&t&&(h.TgZ(0,"div",35),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_EDIT")," "))}function zs(t,e){1&t&&(h.TgZ(0,"div",35),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_CREATE")," "))}function Xs(t,e){1&t&&(h.TgZ(0,"mat-option",38),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EXTENSION")," "))}function Ws(t,e){1&t&&(h.TgZ(0,"div",35),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_EDIT")," "))}function Ks(t,e){1&t&&(h.TgZ(0,"div",35),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_CREATE")," "))}function ta(t,e){1&t&&h._UZ(0,"mat-divider",52)}function ea(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",40),h.TgZ(1,"div",41),h.TgZ(2,"div",42),h.TgZ(3,"button",43),h.NdJ("click",function(){h.CHM(t);const e=h.oxw(3);return e.showTags=!e.showTags}),h._uU(4),h.ALo(5,"translate"),h.ALo(6,"translate"),h.qZA(),h.TgZ(7,"span",44),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"mat-form-field",18),h.TgZ(11,"input",45,46),h.NdJ("focus",function(){return h.CHM(t),h.oxw(3).isTextFocused=!1})("ngModelChange",function(e){h.CHM(t);const i=h.oxw().$implicit;return h.oxw(2).applicationMail.message[i].subject=e}),h.qZA(),h.qZA(),h.qZA(),h.TgZ(13,"div",47),h._uU(14),h.ALo(15,"translate"),h.qZA(),h.TgZ(16,"mat-form-field",18),h.TgZ(17,"textarea",48,49),h.NdJ("focus",function(){return h.CHM(t),h.oxw(3).isTextFocused=!0})("ngModelChange",function(e){h.CHM(t);const i=h.oxw().$implicit;return h.oxw(2).applicationMail.message[i].text=e}),h._uU(19," "),h.qZA(),h.qZA(),h.qZA(),h.YNc(20,ta,1,0,"mat-divider",50),h.TgZ(21,"div"),h.TgZ(22,"app-tag-bar",51),h.NdJ("addedTag",function(e){h.CHM(t);const i=h.MAs(12),o=h.MAs(18),s=h.oxw().$implicit;return h.oxw(2).addTag(i,o,s,e)}),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw().$implicit,e=h.oxw(2);h.xp6(4),h.hij(" ",e.showTags?h.lcZ(5,7,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.HIDE_TAGS"):h.lcZ(6,9,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SHOW_TAGS")," "),h.xp6(4),h.hij(" ",h.lcZ(9,11,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SUBJECT"),": "),h.xp6(3),h.Q6J("ngModel",e.applicationMail.message[t].subject),h.xp6(3),h.hij(" ",h.lcZ(15,13,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TEXT"),": "),h.xp6(3),h.Q6J("ngModel",e.applicationMail.message[t].text),h.xp6(3),h.Q6J("ngIf",e.showTags),h.xp6(1),h.Q6J("@tagsOpenClose",e.showTags?"open":"closed")}}function ia(t,e){1&t&&(h.TgZ(0,"mat-tab",14),h.ALo(1,"translate"),h.ALo(2,"uppercase"),h.YNc(3,ea,23,15,"ng-template",39),h.qZA()),2&t&&h.s9C("label",h.lcZ(1,1,h.lcZ(2,3,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.LANG_"+e.$implicit)))}function oa(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",11),h.TgZ(1,"div"),h.TgZ(2,"app-alert",12),h._uU(3),h.ALo(4,"translate"),h.qZA(),h.qZA(),h.TgZ(5,"mat-tab-group",13),h.TgZ(6,"mat-tab",14),h.ALo(7,"translate"),h.TgZ(8,"div",15),h.TgZ(9,"span",16),h._uU(10),h.ALo(11,"translate"),h.qZA(),h.TgZ(12,"div",17),h.TgZ(13,"mat-form-field",18),h.TgZ(14,"mat-select",19),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().applicationMail.mailType=e})("selectionChange",function(){return h.CHM(t),h.oxw().notificationExist()}),h.TgZ(15,"mat-option",20),h._uU(16),h.ALo(17,"translate"),h.qZA(),h.YNc(18,Hs,3,3,"mat-option",21),h.TgZ(19,"mat-option",22),h._uU(20),h.ALo(21,"translate"),h.qZA(),h.TgZ(22,"mat-option",23),h._uU(23),h.ALo(24,"translate"),h.qZA(),h.TgZ(25,"mat-option",24),h._uU(26),h.ALo(27,"translate"),h.qZA(),h.TgZ(28,"mat-option",25),h._uU(29),h.ALo(30,"translate"),h.qZA(),h.TgZ(31,"mat-option",26),h._uU(32),h.ALo(33,"translate"),h.qZA(),h.TgZ(34,"mat-option",27),h._uU(35),h.ALo(36,"translate"),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(37,"div",28),h._UZ(38,"span",29),h.YNc(39,$s,3,3,"div",30),h.YNc(40,zs,3,3,"div",30),h.qZA(),h.TgZ(41,"div",15),h.TgZ(42,"span",31),h._uU(43),h.ALo(44,"translate"),h.qZA(),h.TgZ(45,"div",17),h.TgZ(46,"mat-form-field",18),h.TgZ(47,"mat-select",19),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().applicationMail.appType=e})("selectionChange",function(){return h.CHM(t),h.oxw().notificationExist()}),h.TgZ(48,"mat-option",32),h._uU(49),h.ALo(50,"translate"),h.qZA(),h.YNc(51,Xs,3,3,"mat-option",33),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(52,"div",28),h._UZ(53,"span",29),h.YNc(54,Ws,3,3,"div",30),h.YNc(55,Ks,3,3,"div",30),h.qZA(),h.TgZ(56,"div",15),h.TgZ(57,"span",31),h._uU(58),h.ALo(59,"translate"),h.qZA(),h.TgZ(60,"div",17),h.TgZ(61,"mat-checkbox",34),h.NdJ("ngModelChange",function(e){return h.CHM(t),h.oxw().applicationMail.send=e}),h.qZA(),h.qZA(),h.qZA(),h.TgZ(62,"div",28),h._UZ(63,"span",29),h.TgZ(64,"div",35),h._uU(65),h.ALo(66,"translate"),h.qZA(),h.qZA(),h.qZA(),h.YNc(67,ia,4,5,"mat-tab",36),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.xp6(1),h.Q6J("@openClose",t.invalidNotification?"open":"closed"),h.xp6(2),h.Oqu(h.lcZ(4,27,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INVALID_NOTIFICATION")),h.xp6(3),h.s9C("label",h.lcZ(7,29,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.BASIC_SETTINGS")),h.xp6(4),h.hij("",h.lcZ(11,31,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE")," :"),h.xp6(4),h.Q6J("ngModel",t.applicationMail.mailType)("disabled",!t.data.createMailNotification),h.xp6(2),h.hij(" ",h.lcZ(17,33,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_USER")," "),h.xp6(2),h.Q6J("ngIf",t.data.groupId),h.xp6(2),h.hij(" ",h.lcZ(21,35,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_VO_ADMIN")," "),h.xp6(3),h.hij(" ",h.lcZ(24,37,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_MAIL_VALIDATION")," "),h.xp6(3),h.hij(" ",h.lcZ(27,39,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_APPROVED_USER")," "),h.xp6(3),h.hij(" ",h.lcZ(30,41,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_REJECTED_USER")," "),h.xp6(3),h.hij(" ",h.lcZ(33,43,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_ERROR_VO_ADMIN")," "),h.xp6(3),h.hij(" ",h.lcZ(36,45,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_USER_INVITE")," "),h.xp6(4),h.Q6J("ngIf",!t.data.createMailNotification),h.xp6(1),h.Q6J("ngIf",t.data.createMailNotification),h.xp6(3),h.hij("",h.lcZ(44,47,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE")," :"),h.xp6(4),h.Q6J("ngModel",t.applicationMail.appType)("disabled",!t.data.createMailNotification),h.xp6(2),h.hij(" ",h.lcZ(50,49,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INITIAL")," "),h.xp6(2),h.Q6J("ngIf","USER_INVITE"!==t.applicationMail.mailType),h.xp6(3),h.Q6J("ngIf",!t.data.createMailNotification),h.xp6(1),h.Q6J("ngIf",t.data.createMailNotification),h.xp6(3),h.hij("",h.lcZ(59,51,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED")," :"),h.xp6(3),h.Q6J("ngModel",t.applicationMail.send),h.xp6(4),h.hij(" ",h.lcZ(66,53,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED_DESCRIPTION")," "),h.xp6(2),h.Q6J("ngForOf",t.languages)}}function sa(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",53),h.NdJ("click",function(){return h.CHM(t),h.oxw().create()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("disabled",t.invalidNotification||t.loading),h.xp6(1),h.hij(" ",h.lcZ(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CREATE_BUTTON")," ")}}function aa(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",53),h.NdJ("click",function(){return h.CHM(t),h.oxw().save()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("disabled",t.loading||!t.editAuth),h.xp6(1),h.hij(" ",h.lcZ(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SAVE_BUTTON")," ")}}let na=(()=>{class t{constructor(t,e,i,o,s,a){this.dialogRef=t,this.registrarService=e,this.data=i,this.authResolver=o,this.groupsService=s,this.store=a,this.showTags=!1,this.isTextFocused=!0,this.invalidNotification=!1,this.loading=!1,this.languages=["en"]}ngOnInit(){this.languages=this.store.get("supported_languages"),this.applicationMail=this.data.applicationMail,this.theme=this.data.theme,this.data.groupId?this.groupsService.getGroupById(this.data.groupId).subscribe(t=>{this.editAuth=this.authResolver.isAuthorized("group-addMail_ApplicationForm_ApplicationMail_policy",[t])}):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(t,e,i,o){let s;s=this.isTextFocused?e:t;const a=s.selectionStart;this.isTextFocused?this.applicationMail.message[i].text=this.applicationMail.message[i].text.substring(0,a)+o+this.applicationMail.message[i].text.substring(a):this.applicationMail.message[i].subject=this.applicationMail.message[i].subject.substring(0,a)+o+this.applicationMail.message[i].subject.substring(a),s.focus()}notificationExist(){for(const t of this.data.applicationMails)if(t.mailType===this.applicationMail.mailType&&t.appType===this.applicationMail.appType)return void(this.invalidNotification=!0);this.invalidNotification=!1}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(l.tk),h.Y36(A.WI),h.Y36(u.x4),h.Y36(l.ff),h.Y36(u.d6))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","class","ml-2","color","accent",3,"disabled","click",4,"ngIf"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["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",""],[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"],["matInput","",3,"ngModel","focus","ngModelChange"],["Input",""],[1,"font-weight-bold"],["matInput","","rows","17",3,"ngModel","focus","ngModelChange"],["Textarea",""],["class","ml-3 mr-3","vertical","true",4,"ngIf"],[3,"addedTag"],["vertical","true",1,"ml-3","mr-3"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"div",0),h.YNc(2,ks,4,3,"div",1),h.YNc(3,Bs,3,3,"ng-template",null,2,h.W1O),h.YNc(5,js,1,0,"mat-spinner",3),h.YNc(6,oa,68,55,"div",4),h.TgZ(7,"div",5),h.TgZ(8,"button",6),h.NdJ("click",function(){return e.cancel()}),h._uU(9),h.ALo(10,"translate"),h.qZA(),h.YNc(11,sa,3,4,"button",7),h.TgZ(12,"div",8),h.ALo(13,"translate"),h.YNc(14,aa,3,4,"button",7),h.qZA(),h.qZA(),h.qZA(),h.qZA()),2&t){const t=h.MAs(4);h.Gre("",e.theme," h-100"),h.xp6(2),h.Q6J("ngIf",e.data.createMailNotification)("ngIfElse",t),h.xp6(3),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(10,13,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CANCEL_BUTTON")," "),h.xp6(2),h.Q6J("ngIf",e.data.createMailNotification),h.xp6(1),h.s9C("matTooltip",h.lcZ(13,15,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EDIT_HINT")),h.Q6J("matTooltipPosition","above")("matTooltipDisabled",e.editAuth),h.xp6(2),h.Q6J("ngIf",!e.data.createMailNotification)}},directives:[o.O5,A.H8,b.lW,Z.gM,A.uh,f.$g,A.xY,dt.w,Ui.SP,Ui.uX,fe.KE,Ee.gD,me.JJ,me.On,_e.ey,be.oG,o.sg,Ui.Vc,Ze.Nt,me.Fj,Qs,oi.d],pipes:[S.X$,o.gd],styles:[".right-button[_ngcontent-%COMP%]{display:block;margin-left:auto}"],data:{animation:[r.es,r.BQ]}}),t})();var ra=i(19386);function la(t,e){1&t&&h._UZ(0,"mat-spinner",9)}let ca=(()=>{class t{constructor(t,e,i,o,s,a){this.dialogRef=t,this.voService=e,this.groupService=i,this.translateService=o,this.registrarService=s,this.data=a,this.vos=[],this.groups=[],this.selectedVo=null,this.selectedGroup=null,this.loading=!1,this.nameFunction=t=>t.name}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.translateService.get("DIALOGS.NOTIFICATIONS_COPY_MAILS.NO_GROUP_SELECTED").subscribe(t=>{this.fakeGroup={id:-1,name:t,voId:0,parentGroupId:0,shortName:"",description:"",beanName:"group"},this.selectedGroup=this.fakeGroup,this.voService.getAllVos().subscribe(t=>{this.vos=t,this.vos=t.sort((t,e)=>t.name>e.name?1:t.namethis.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(t){this.selectedVo=t,this.getGroups()}getGroups(){null!==this.selectedVo?this.groupService.getAllGroups(this.selectedVo.id).subscribe(t=>{this.groups=[this.fakeGroup].concat(t)}):this.groups=[this.fakeGroup]}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(l.YF),h.Y36(l.ff),h.Y36(S.sK),h.Y36(l.tk),h.Y36(A.WI))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,la,1,0,"mat-spinner",1),h.TgZ(5,"div",2),h.TgZ(6,"div",3),h._uU(7),h.ALo(8,"translate"),h.qZA(),h._uU(9),h.ALo(10,"translate"),h.TgZ(11,"perun-web-apps-vo-search-select",4),h.NdJ("voSelected",function(t){return e.voSelected(t)}),h.qZA(),h._uU(12),h.ALo(13,"translate"),h.TgZ(14,"perun-web-apps-group-search-select",5),h.NdJ("groupSelected",function(t){return e.selectedGroup=t}),h.qZA(),h.qZA(),h.TgZ(15,"div",6),h.TgZ(16,"button",7),h.NdJ("click",function(){return e.cancel()}),h._uU(17),h.ALo(18,"translate"),h.qZA(),h.TgZ(19,"button",8),h.NdJ("click",function(){return e.submit()}),h._uU(20),h.ALo(21,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.Oqu(h.lcZ(3,15,"DIALOGS.NOTIFICATIONS_COPY_MAILS.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("hidden",e.loading),h.xp6(2),h.hij(" ",h.lcZ(8,17,"DIALOGS.NOTIFICATIONS_COPY_MAILS.DESCRIPTION")," "),h.xp6(2),h.hij(" ",h.lcZ(10,19,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SOURCE_VO"),": "),h.xp6(2),h.Q6J("vos",e.vos),h.xp6(1),h.hij(" ",h.lcZ(13,21,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SOURCE_GROUP"),": "),h.xp6(2),h.Q6J("groups",e.groups)("disableAutoSelect",!0),h.xp6(3),h.hij(" ",h.lcZ(18,23,"DIALOGS.NOTIFICATIONS_COPY_MAILS.CANCEL_BUTTON")," "),h.xp6(2),h.Q6J("disabled",null===e.selectedVo||null===e.selectedGroup||e.loading),h.xp6(1),h.hij(" ",h.lcZ(21,25,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SUBMIT_BUTTON")," "))},directives:[A.uh,o.O5,A.xY,ra.M,pt.h,A.H8,b.lW,f.$g],pipes:[S.X$],styles:[""],data:{animation:[r.BQ]}}),t})();var ua=i(58623),pa=i(82819);function da(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"th",16),h.TgZ(1,"mat-checkbox",17),h.NdJ("change",function(e){h.CHM(t);const i=h.oxw();return e?i.masterToggle():null}),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.xp6(1),h.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function ga(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"td",18),h.TgZ(1,"mat-checkbox",19),h.NdJ("change",function(e){const i=h.CHM(t).$implicit,o=h.oxw();return e?o.toggle(i):null})("click",function(t){return t.stopPropagation()}),h.qZA(),h.qZA()}if(2&t){const t=e.$implicit,i=h.oxw();h.xp6(1),h.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function ha(t,e){1&t&&(h.TgZ(0,"th",20),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_EMAIL_ID")," "))}function ma(t,e){if(1&t&&(h.TgZ(0,"td",21),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.hij(" ",t.id," ")}}function Aa(t,e){1&t&&(h.TgZ(0,"th",20),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_EMAIL_TYPE")," "))}function Ia(t,e){if(1&t&&(h.TgZ(0,"td",22),h._uU(1),h.qZA()),2&t){const t=e.$implicit,i=h.oxw();h.xp6(1),h.Oqu(i.getMailType(t))}}function Ta(t,e){1&t&&(h.TgZ(0,"th",20),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE")," "))}function fa(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"mat-icon",25),h._uU(2,"arrow_right_alt"),h.qZA(),h._uU(3),h.ALo(4,"translate"),h.qZA()),2&t&&(h.xp6(3),h.hij(" ",h.lcZ(4,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE_INITIAL")," "))}function Ea(t,e){1&t&&(h.TgZ(0,"mat-icon",26),h._uU(1,"cached"),h.qZA(),h._uU(2),h.ALo(3,"translate")),2&t&&(h.xp6(2),h.hij(" ",h.lcZ(3,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE_EXTENSION")," "))}function Za(t,e){if(1&t&&(h.TgZ(0,"td",22),h.YNc(1,fa,5,3,"div",23),h.YNc(2,Ea,4,3,"ng-template",null,24,h.W1O),h.qZA()),2&t){const t=e.$implicit,i=h.MAs(3);h.xp6(1),h.Q6J("ngIf","INITIAL"===t.appType)("ngIfElse",i)}}function _a(t,e){1&t&&(h.TgZ(0,"th",20),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_SENDING_ENABLED")," "))}function ba(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"td",22),h.TgZ(1,"section"),h.TgZ(2,"mat-checkbox",27),h.NdJ("change",function(){const e=h.CHM(t).$implicit;return h.oxw().changeSending(e)})("click",function(t){return t.stopPropagation()}),h.ALo(3,"translate"),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=e.$implicit,i=h.oxw();h.xp6(2),h.s9C("matTooltip",h.lcZ(3,4,"VO_DETAIL.SETTINGS.NOTIFICATIONS.DISABLED_HINT")),h.Q6J("disabled",i.disableSend)("matTooltipDisabled",!i.disableSend)("ngModel",t.send)}}function Sa(t,e){1&t&&h._UZ(0,"tr",28)}function Na(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"tr",29),h.NdJ("click",function(){const e=h.CHM(t).$implicit;return h.oxw().openApplicationMailDetail(e)}),h.qZA()}2&t&&h.ekj("cursor-pointer",!0)}function Oa(t,e){1&t&&(h.TgZ(0,"app-alert",30),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.NO_EMAILS"),"\n"))}let va=(()=>{class t{constructor(t,e,i,o,s,a){this.registrarService=t,this.translate=e,this.notificator=i,this.dialog=o,this.authResolver=s,this.tableCheckbox=a,this.displayedColumns=["select","id","mailType","appType","send"],this.disableSend=!1,this.selection=new cs.Ov(!0,[]),this.selectionChange=new h.vpe,this.pageSizeOptions=c.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new nt.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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}changeSending(t){t.send?this.registrarService.setSendingEnabled({mails:[t],enabled:!1}).subscribe(()=>{t.send=!1}):this.registrarService.setSendingEnabled({mails:[t],enabled:!0}).subscribe(()=>{t.send=!0})}openApplicationMailDetail(t){const e=(0,c.kZ)();e.width="1400px",e.height="700px",e.data={theme:this.theme,voId:this.voId,groupId:this.groupId,createMailNotification:!1,applicationMail:t},this.dialog.open(na,e).afterClosed().subscribe(t=>{t&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.EDIT_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.selection.clear(),this.selectionChange.emit(this.selection),this.update())})}getMailType(t){let e="";return null==t.mailType||0===t.mailType.length?e="":this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_"+t.mailType).subscribe(t=>{e=t}),e}update(){this.groupId?this.registrarService.getApplicationMailsForGroup(this.groupId).subscribe(t=>{this.updateTable(t)}):this.registrarService.getApplicationMailsForVo(this.voId).subscribe(t=>{this.updateTable(t)})}toggle(t){this.selection.toggle(t),this.selectionChange.emit(this.selection)}updateTable(t){this.applicationMails=t,this.dataSource=new nt.by(this.applicationMails),this.setDataSource()}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.tk),h.Y36(S.sK),h.Y36(u.V6),h.Y36(A.uw),h.Y36(u.x4),h.Y36(u.UA))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-notification-list"]],viewQuery:function(t,e){if(1&t&&(h.Gf(ua.YE,7),h.Gf(c.l9,7)),2&t){let t;h.iGM(t=h.CRH())&&(e.matSort=t.first),h.iGM(t=h.CRH())&&(e.child=t.first)}},inputs:{applicationMails:"applicationMails",voId:"voId",groupId:"groupId",displayedColumns:"displayedColumns",disableSend:"disableSend",selection:"selection",tableId:"tableId",theme:"theme"},outputs:{selectionChange:"selectionChange"},features:[h.TTD],decls:21,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","hideExport","pageSizeOptions"],["mat-table","","matSort","","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","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(t,e){1&t&&(h.TgZ(0,"div",0),h.TgZ(1,"perun-web-apps-table-wrapper",1),h.TgZ(2,"table",2),h.ynx(3,3),h.YNc(4,da,2,3,"th",4),h.YNc(5,ga,2,2,"td",5),h.BQk(),h.ynx(6,6),h.YNc(7,ha,3,3,"th",7),h.YNc(8,ma,2,1,"td",8),h.BQk(),h.ynx(9,9),h.YNc(10,Aa,3,3,"th",7),h.YNc(11,Ia,2,1,"td",10),h.BQk(),h.ynx(12,11),h.YNc(13,Ta,3,3,"th",7),h.YNc(14,Za,4,2,"td",10),h.BQk(),h.ynx(15,12),h.YNc(16,_a,3,3,"th",7),h.YNc(17,ba,4,6,"td",10),h.BQk(),h.YNc(18,Sa,1,0,"tr",13),h.YNc(19,Na,1,2,"tr",14),h.qZA(),h.qZA(),h.qZA(),h.YNc(20,Oa,3,3,"app-alert",15)),2&t&&(h.Q6J("hidden",0===e.applicationMails.length),h.xp6(1),h.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("hideExport",!0)("pageSizeOptions",e.pageSizeOptions),h.xp6(1),h.Q6J("dataSource",e.dataSource),h.xp6(16),h.Q6J("matHeaderRowDef",e.displayedColumns),h.xp6(1),h.Q6J("matRowDefColumns",e.displayedColumns),h.xp6(1),h.Q6J("ngIf",0===e.applicationMails.length))},directives:[pa.l,nt.BZ,ua.YE,nt.w1,nt.fO,nt.Dz,nt.as,nt.nj,o.O5,nt.ge,be.oG,nt.ev,ua.nU,E.Hw,Z.gM,me.JJ,me.On,nt.XQ,nt.Gk,dt.w],pipes:[S.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();function xa(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",9),h.NdJ("click",function(){return h.CHM(t),h.oxw().add()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.ADD")," "))}function La(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",10),h.NdJ("click",function(){return h.CHM(t),h.oxw().remove()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("disabled",0===t.selection.selected.length),h.xp6(1),h.hij(" ",h.lcZ(2,2,"VO_DETAIL.SETTINGS.NOTIFICATIONS.REMOVE")," ")}}function Ca(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",11),h.NdJ("click",function(){return h.CHM(t),h.oxw().copy()}),h.TgZ(1,"i",5),h._uU(2,"file_copy"),h.qZA(),h._uU(3),h.ALo(4,"translate"),h.qZA()}2&t&&(h.xp6(3),h.hij(" ",h.lcZ(4,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.COPY_FROM_VO")," "))}function Ra(t,e){1&t&&h._UZ(0,"mat-spinner",12)}function Ma(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"app-notification-list",13),h.NdJ("selectionChange",function(e){return h.CHM(t),h.oxw().changeSelection(e)}),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("applicationMails",t.applicationMails)("tableId",t.tableId)("voId",t.vo.id)("displayedColumns",t.displayedColumns)("disableSend",!t.addAuth)("selection",t.selection)("theme","vo-theme")}}let Da=(()=>{class t{constructor(t,e,i,o,s,a,n,r,l){this.route=t,this.registrarService=e,this.translate=i,this.dialog=o,this.notificator=s,this.authResolver=a,this.voService=n,this.store=r,this.entityStorageService=l,this.loading=!1,this.applicationMails=[],this.selection=new cs.Ov(!0,[]),this.tableId=Ts.VR,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.registrarService.getVoApplicationForm(this.vo.id).subscribe(t=>{this.applicationForm=t,this.registrarService.getApplicationMailsForVo(this.vo.id).subscribe(t=>{this.applicationMails=t,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 t=this.store.get("supported_languages"),e=(0,c.i5)(t);e.formId=this.applicationForm.id;const i=(0,c.kZ)();i.width="1400px",i.height="700px",i.data={theme:"vo-theme",voId:this.vo.id,createMailNotification:!0,applicationMail:e,applicationMails:this.applicationMails},this.dialog.open(na,i).afterClosed().subscribe(t=>{t&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.ADD_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.selection.clear(),this.updateTable())})}remove(){const t=(0,c.kZ)();t.width="500px",t.data={voId:this.vo.id,mails:this.selection.selected,theme:"vo-theme"},this.dialog.open(Ps,t).afterClosed().subscribe(t=>{t&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.DELETE_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.selection.clear(),this.updateTable())})}copy(){const t=(0,c.kZ)();t.width="500px",t.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(ca,t).afterClosed().subscribe(t=>{t&&(this.selection.clear(),this.updateTable())})}updateTable(){this.loading=!0,this.registrarService.getApplicationMailsForVo(this.vo.id).subscribe(t=>{this.applicationMails=t,this.loading=!1})}changeEmailFooter(){const t=(0,c.kZ)();t.width="500px",t.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(Ys,t)}changeSelection(t){this.selection=t}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(s.gz),h.Y36(l.tk),h.Y36(S.sK),h.Y36(A.uw),h.Y36(u.V6),h.Y36(u.x4),h.Y36(l.YF),h.Y36(u.d6),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-settings-notifications"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:14,vars:11,consts:[[1,"page-subtitle"],[1,"w-100","d-flex"],["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"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],[1,"material-icons"],["mat-stroked-button","","class","action-button",3,"click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"applicationMails","tableId","voId","displayedColumns","disableSend","selection","theme","selectionChange",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"],["mat-stroked-button","",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"applicationMails","tableId","voId","displayedColumns","disableSend","selection","theme","selectionChange"]],template:function(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"div",1),h.YNc(4,xa,3,3,"button",2),h.YNc(5,La,3,4,"button",3),h.TgZ(6,"button",4),h.NdJ("click",function(){return e.changeEmailFooter()}),h.TgZ(7,"i",5),h._uU(8,"email"),h.qZA(),h._uU(9),h.ALo(10,"translate"),h.qZA(),h.YNc(11,Ca,5,3,"button",6),h.qZA(),h.YNc(12,Ra,1,0,"mat-spinner",7),h.YNc(13,Ma,1,7,"app-notification-list",8)),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,7,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TITLE"),"\n"),h.xp6(3),h.Q6J("ngIf",e.addAuth),h.xp6(1),h.Q6J("ngIf",e.removeAuth),h.xp6(4),h.hij(" ",h.lcZ(10,9,"VO_DETAIL.SETTINGS.NOTIFICATIONS.EMAIL_FOOTER")," "),h.xp6(2),h.Q6J("ngIf",e.copyAuth),h.xp6(1),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,b.lW,f.$g,va],pipes:[S.X$],styles:[""]}),t})();var Ua=i(65423);function qa(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",10),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).add()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.ADD")," "))}function Pa(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",11),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).remove()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw(2);h.Q6J("disabled",0===t.selection.selected.length),h.xp6(1),h.hij(" ",h.lcZ(2,2,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.REMOVE")," ")}}function wa(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",12),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).copy()}),h.TgZ(1,"i",6),h._uU(2,"file_copy"),h.qZA(),h._uU(3),h.ALo(4,"translate"),h.qZA()}2&t&&(h.xp6(3),h.hij(" ",h.lcZ(4,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.COPY_FROM_VO")," "))}function ya(t,e){1&t&&h._UZ(0,"mat-spinner",13)}function Ga(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"app-notification-list",14),h.NdJ("selectionChange",function(e){return h.CHM(t),h.oxw(2).changeSelection(e)}),h.qZA()}if(2&t){const t=h.oxw(2);h.Q6J("disableSend",!t.addAuth)("displayedColumns",t.displayedColumns)("applicationMails",t.applicationMails)("tableId",t.tableId)("groupId",t.group.id)("selection",t.selection)("theme","group-theme")}}function Ya(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div"),h.TgZ(1,"div",2),h.YNc(2,qa,3,3,"button",3),h.YNc(3,Pa,3,4,"button",4),h.TgZ(4,"button",5),h.NdJ("click",function(){return h.CHM(t),h.oxw().changeEmailFooter()}),h.TgZ(5,"i",6),h._uU(6,"email"),h.qZA(),h._uU(7),h.ALo(8,"translate"),h.qZA(),h.YNc(9,wa,5,3,"button",7),h.qZA(),h.YNc(10,ya,1,0,"mat-spinner",8),h.YNc(11,Ga,1,7,"app-notification-list",9),h.qZA()}if(2&t){const t=h.oxw();h.xp6(2),h.Q6J("ngIf",t.addAuth),h.xp6(1),h.Q6J("ngIf",t.removeAuth),h.xp6(4),h.hij(" ",h.lcZ(8,6,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.EMAIL_FOOTER")," "),h.xp6(2),h.Q6J("ngIf",t.copyAuth),h.xp6(1),h.Q6J("ngIf",t.loading),h.xp6(1),h.Q6J("ngIf",!t.loading)}}function Ja(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",17),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).createEmptyApplicationForm()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.CREATE_APPLICATION_FORM")," "))}function Va(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"app-alert",15),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,Ja,3,3,"button",16),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.Oqu(h.lcZ(3,2,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.NO_APPLICATION_FORM")),h.xp6(2),h.Q6J("ngIf",t.createFormAuth)}}let Fa=(()=>{class t{constructor(t,e,i,o,s,a,n,r){this.registrarService=t,this.translate=e,this.dialog=i,this.apiRequest=o,this.notificator=s,this.guiAuthResolver=a,this.attributesService=n,this.entityStorageService=r,this.loading=!1,this.applicationMails=[],this.selection=new cs.Ov(!0,[]),this.noApplicationForm=!1,this.editEmailFooterAuth=!1,this.addAuth=!1,this.removeAuth=!1,this.copyAuth=!1,this.createFormAuth=!1,this.displayedColumns=[],this.tableId=Ts.AA}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.apiRequest.dontHandleErrorForNext(),this.registrarService.getGroupApplicationForm(this.group.id).subscribe(t=>{this.applicationForm=t,this.registrarService.getApplicationMailsForGroup(this.group.id).subscribe(t=>{this.applicationMails=t,this.apiRequest.dontHandleErrorForNext(),this.attributesService.getGroupAttributeByName(this.group.id,p.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{this.setAuthRights(),this.loading=!1},t=>{"HttpErrorResponse"!==t.name&&this.notificator.showRPCError(t),this.setAuthRights(),this.loading=!1})})},t=>{"FormNotExistsException"===t.error.name?(this.noApplicationForm=!0,this.setAuthRights(),this.loading=!1):this.notificator.showRPCError(t)})}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 t=(0,c.i5)();t.formId=this.applicationForm.id;const e=(0,c.kZ)();e.width="1400px",e.height="700px",e.data={theme:"group-theme",voId:this.group.voId,groupId:this.group.id,createMailNotification:!0,applicationMail:t,applicationMails:this.applicationMails},this.dialog.open(na,e).afterClosed().subscribe(t=>{t&&(this.translate.get("GROUP_DETAIL.SETTINGS.NOTIFICATIONS.ADD_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.selection.clear(),this.updateTable())})}remove(){const t=(0,c.kZ)();t.width="500px",t.data={voId:this.group.voId,groupId:this.group.id,mails:this.selection.selected,theme:"group-theme"},this.dialog.open(Ps,t).afterClosed().subscribe(t=>{t&&(this.translate.get("GROUP_DETAIL.SETTINGS.NOTIFICATIONS.DELETE_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.selection.clear(),this.updateTable())})}copy(){const t=(0,c.kZ)();t.width="500px",t.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(ca,t).afterClosed().subscribe(t=>{t&&(this.selection.clear(),this.updateTable())})}updateTable(){this.loading=!0,this.registrarService.getApplicationMailsForGroup(this.group.id).subscribe(t=>{this.applicationMails=t,this.loading=!1})}changeEmailFooter(){const t=(0,c.kZ)();t.width="500px",t.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(Ys,t)}changeSelection(t){this.selection=t}createEmptyApplicationForm(){this.registrarService.createApplicationFormInGroup(this.group.id).subscribe(()=>{this.noApplicationForm=!1,this.ngOnInit()})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.tk),h.Y36(S.sK),h.Y36(A.uw),h.Y36(u.F5),h.Y36(u.V6),h.Y36(u.x4),h.Y36(l.H8),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-settings-notifications"]],hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],[4,"ngIf"],[1,"w-100","d-flex"],["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"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],[1,"material-icons"],["mat-stroked-button","","class","action-button",3,"click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableSend","displayedColumns","applicationMails","tableId","groupId","selection","theme","selectionChange",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"],["mat-stroked-button","",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableSend","displayedColumns","applicationMails","tableId","groupId","selection","theme","selectionChange"],["alert_type","warn"],["mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"]],template:function(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.YNc(3,Ya,12,8,"div",1),h.YNc(4,Va,5,4,"div",1)),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,3,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.TITLE"),"\n"),h.xp6(2),h.Q6J("ngIf",!e.noApplicationForm),h.xp6(1),h.Q6J("ngIf",e.noApplicationForm&&!e.loading))},directives:[o.O5,b.lW,f.$g,va,dt.w],pipes:[S.X$],styles:[""]}),t})();var Qa=i(4359);function ka(t,e){1&t&&h._UZ(0,"mat-spinner",8)}function Ba(t,e){if(1&t&&(h.TgZ(0,"div",9),h._UZ(1,"app-ext-sources-list",10),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("tableId",t.tableId)("extSources",t.extSources)("filterValue",t.filterValue)("selection",t.selection)}}let ja=(()=>{class t{constructor(t,e,i,o,s){this.dialogRef=t,this.data=e,this.extSourceService=i,this.notificator=o,this.translate=s,this.extSources=[],this.selection=new cs.Ov(!0,[]),this.loading=!1,this.filterValue="",this.tableId=Ts.BV}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.data.groupId?this.extSourceService.getVoExtSources(this.data.voId).subscribe(t=>{this.extSources=t.filter(t=>!this.data.extSources.some(({id:e})=>e===t.id)),this.loading=!1},()=>this.loading=!1):this.extSourceService.getExtSources().subscribe(t=>{this.extSources=t.filter(t=>!this.data.extSources.some(({id:e})=>e===t.id)),this.loading=!1},()=>this.loading=!1)}applyFilter(t){this.filterValue=t}addVoExtSource(t){if(0===t.length)return void this.translate.get("DIALOGS.ADD_EXT_SOURCES.SUCCESS_ADDED").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)});const e=t.pop();this.extSourceService.addExtSourceWithVoSource(this.data.voId,e.id).subscribe(()=>{this.addVoExtSource(t)},()=>this.loading=!1)}addGroupExtSource(t){if(0===t.length)return void this.translate.get("DIALOGS.ADD_EXT_SOURCES.SUCCESS_ADDED").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)});const e=t.pop();this.extSourceService.addExtSourceWithGroupSource(this.data.groupId,e.id).subscribe(()=>{this.addGroupExtSource(t)},()=>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 t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(l.KG),h.Y36(u.V6),h.Y36(S.sK))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[3,"tableId","extSources","filterValue","selection"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"div",0),h.TgZ(2,"h1",1),h._uU(3),h.ALo(4,"translate"),h.qZA(),h.TgZ(5,"perun-web-apps-immediate-filter",2),h.NdJ("filter",function(t){return e.applyFilter(t)}),h.qZA(),h.qZA(),h.YNc(6,ka,1,0,"mat-spinner",3),h.YNc(7,Ba,2,4,"div",4),h.TgZ(8,"div",5),h.TgZ(9,"button",6),h.NdJ("click",function(){return e.onCancel()}),h._uU(10),h.ALo(11,"translate"),h.qZA(),h.TgZ(12,"button",7),h.NdJ("click",function(){return e.onAdd()}),h._uU(13),h.ALo(14,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(3),h.Oqu(h.lcZ(4,10,"DIALOGS.ADD_EXT_SOURCES.TITLE")),h.xp6(2),h.Q6J("placeholder","DIALOGS.ADD_EXT_SOURCES.FILTER"),h.xp6(1),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(11,12,"DIALOGS.ADD_EXT_SOURCES.CANCEL")," "),h.xp6(2),h.Q6J("disabled",0===e.selection.selected.length||e.loading),h.xp6(1),h.hij(" ",h.lcZ(14,14,"DIALOGS.ADD_EXT_SOURCES.ADD")," "))},directives:[A.uh,Es.L,o.O5,A.H8,b.lW,f.$g,A.xY,Qa.D],pipes:[S.X$],styles:[".font-size-1rem[_ngcontent-%COMP%]{font-size:1rem!important}"]}),t})();function Ha(t,e){1&t&&h._UZ(0,"mat-spinner",7)}function $a(t,e){1&t&&(h.TgZ(0,"th",17),h._uU(1,"id"),h.qZA())}function za(t,e){if(1&t&&(h.TgZ(0,"td",18),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.Oqu(t.id)}}function Xa(t,e){1&t&&(h.TgZ(0,"th",17),h._uU(1,"name"),h.qZA())}function Wa(t,e){if(1&t&&(h.TgZ(0,"td",18),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.Oqu(t.name)}}function Ka(t,e){1&t&&h._UZ(0,"tr",19)}function tn(t,e){1&t&&h._UZ(0,"tr",20)}function en(t,e){if(1&t&&(h.TgZ(0,"div",8),h.TgZ(1,"p"),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"div",9),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.TgZ(7,"table",10),h.ynx(8,11),h.YNc(9,$a,2,0,"th",12),h.YNc(10,za,2,1,"td",13),h.BQk(),h.ynx(11,14),h.YNc(12,Xa,2,0,"th",12),h.YNc(13,Wa,2,1,"td",13),h.BQk(),h.YNc(14,Ka,1,0,"tr",15),h.YNc(15,tn,1,0,"tr",16),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.hij(" ",h.lcZ(3,5,"DIALOGS.REMOVE_EXT_SOURCES.DESCRIPTION")," "),h.xp6(3),h.hij(" ",h.lcZ(6,7,"DIALOGS.REMOVE_EXT_SOURCES.ASK")," "),h.xp6(2),h.Q6J("dataSource",t.extSources),h.xp6(7),h.Q6J("matHeaderRowDef",t.displayedColumns),h.xp6(1),h.Q6J("matRowDefColumns",t.displayedColumns)}}let on=(()=>{class t{constructor(t,e,i,o,s,a){this.dialogRef=t,this.data=e,this.extSourceService=i,this.notificator=o,this.tableConfigService=s,this.translate=a,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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)});const t=this.extSources.pop();this.extSourceService.removeExtSourceWithVoSource(this.data.voId,t.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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)});const t=this.extSources.pop();this.extSourceService.removeExtSourceWithGroupSource(this.data.groupId,t.id).subscribe(()=>{this.onRemove()},()=>this.loading=!1)}onRemove(){this.loading=!0,this.data.groupId?this.removeGroupExtSource():this.removeVoExtSource()}onCancel(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(l.KG),h.Y36(u.V6),h.Y36(Ts.dB),h.Y36(S.sK))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-flat-button","","color","warn",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(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"div",0),h.TgZ(2,"h1",1),h._uU(3),h.ALo(4,"translate"),h.qZA(),h.qZA(),h.YNc(5,Ha,1,0,"mat-spinner",2),h.YNc(6,en,16,9,"div",3),h.TgZ(7,"div",4),h.TgZ(8,"button",5),h.NdJ("click",function(){return e.onCancel()}),h._uU(9),h.ALo(10,"translate"),h.qZA(),h.TgZ(11,"button",6),h.NdJ("click",function(){return e.onRemove()}),h._uU(12),h.ALo(13,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(3),h.Oqu(h.lcZ(4,8,"DIALOGS.REMOVE_EXT_SOURCES.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(10,10,"DIALOGS.REMOVE_EXT_SOURCES.CANCEL")," "),h.xp6(3),h.hij(" ",h.lcZ(13,12,"DIALOGS.REMOVE_EXT_SOURCES.REMOVE")," "))},directives:[A.uh,o.O5,A.H8,b.lW,f.$g,A.xY,nt.BZ,nt.w1,nt.fO,nt.Dz,nt.as,nt.nj,nt.ge,nt.ev,nt.XQ,nt.Gk],pipes:[S.X$],styles:[""]}),t})();function sn(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",7),h.NdJ("click",function(){return h.CHM(t),h.oxw().onAdd()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.SETTINGS.EXT_SOURCES.ADD")," "))}function an(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",8),h.NdJ("click",function(){return h.CHM(t),h.oxw().onRemove()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("disabled",0===t.selection.selected.length),h.xp6(1),h.hij(" ",h.lcZ(2,2,"VO_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function nn(t,e){1&t&&h._UZ(0,"mat-spinner",9)}function rn(t,e){if(1&t&&h._UZ(0,"app-ext-sources-list",10),2&t){const t=h.oxw();h.Q6J("tableId",t.tableId)("extSources",t.extSources)("displayedColumns",t.displayedColumns)("filterValue",t.filterValue)("selection",t.selection)}}let ln=(()=>{class t{constructor(t,e,i,o,s,a){this.extSourceService=t,this.dialog=e,this.notificator=i,this.translate=o,this.authResolver=s,this.entityStorageService=a,this.extSources=[],this.selection=new cs.Ov(!0,[]),this.filterValue="",this.tableId=Ts.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()}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"]}refreshTable(){this.loading=!0,this.extSourceService.getVoExtSources(this.vo.id).subscribe(t=>{this.extSources=t,this.selection.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(t){this.filterValue=t}onAdd(){const t=(0,c.kZ)();t.width="1000px",t.data={voId:this.vo.id,extSources:this.extSources,theme:"vo-theme"},this.dialog.open(ja,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onRemove(){const t=(0,c.kZ)();t.width="600px",t.data={voId:this.vo.id,extSources:this.selection.selected,theme:"vo-theme"},this.dialog.open(on,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.KG),h.Y36(A.uw),h.Y36(u.V6),h.Y36(S.sK),h.Y36(u.x4),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-vo-settings-extsources"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["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,"tableId","extSources","displayedColumns","filterValue","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,"tableId","extSources","displayedColumns","filterValue","selection"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"perun-web-apps-refresh-button",1),h.NdJ("refresh",function(){return e.refreshTable()}),h.qZA(),h.YNc(5,sn,3,3,"button",2),h.YNc(6,an,3,4,"button",3),h.TgZ(7,"perun-web-apps-immediate-filter",4),h.NdJ("filter",function(t){return e.applyFilter(t)}),h.qZA(),h.YNc(8,nn,1,0,"mat-spinner",5),h.YNc(9,rn,1,5,"app-ext-sources-list",6),h.qZA()),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,6,"VO_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),h.xp6(3),h.Q6J("ngIf",e.addAuth),h.xp6(1),h.Q6J("ngIf",e.removeAuth),h.xp6(1),h.Q6J("placeholder","VO_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),h.xp6(1),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[fs.t,o.O5,Es.L,b.lW,f.$g,Qa.D],pipes:[S.X$],styles:[""]}),t})();var cn=i(78364);function un(t,e){1&t&&h._UZ(0,"mat-spinner",3)}const pn=function(){return["select","id","name","description"]};function dn(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div"),h.TgZ(1,"perun-web-apps-immediate-filter",4),h.NdJ("filter",function(e){return h.CHM(t),h.oxw().applyFilter(e)}),h.qZA(),h.TgZ(2,"div",5),h._UZ(3,"perun-web-apps-groups-list",6),h.qZA(),h.TgZ(4,"div",7),h.TgZ(5,"button",8),h.NdJ("click",function(){return h.CHM(t),h.oxw().onCancel()}),h._uU(6),h.ALo(7,"translate"),h.qZA(),h.TgZ(8,"button",9),h.NdJ("click",function(){return h.CHM(t),h.oxw().onSubmit()}),h._uU(9),h.ALo(10,"translate"),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.Tol(t.theme),h.xp6(1),h.Q6J("placeholder","GROUP_DETAIL.SETTINGS.RELATIONS.FILTER"),h.xp6(2),h.Q6J("tableId",t.tableId)("groupsToDisableCheckbox",t.groupsToDisable)("disableGroups",!0)("groups",t.groups)("selection",t.selection)("displayedColumns",h.DdM(21,pn))("filter",t.filterValue)("disableHeadCheckbox",!0)("disableRouting",!0)("authType","create-relation-dialog"),h.xp6(3),h.hij(" ",h.lcZ(7,17,"DIALOGS.CREATE_RELATION.CANCEL")," "),h.xp6(2),h.Q6J("disabled",t.loading||0===t.selection.selected.length),h.xp6(1),h.hij(" ",h.lcZ(10,19,"DIALOGS.CREATE_RELATION.CREATE")," ")}}let gn=(()=>{class t{constructor(t,e,i,o,s,a){this.dialogRef=t,this.groupService=e,this.notificator=i,this.translate=o,this.guiAuthResolver=s,this.data=a,this.selection=new cs.Ov(!1,[]),this.filterValue="",this.tableId=Ts.RS,this.groupsToDisable=new Set,o.get("DIALOGS.CREATE_RELATION.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.loading=!0,this.groupService.getGroupUnions(this.data.group.id,!this.data.reverse).subscribe(t=>{t=t.concat(this.data.groups),this.groupService.getAllGroups(this.data.voId).subscribe(e=>{const i=t.map(t=>t.id);this.groups=e.filter(t=>!i.includes(t.id)&&t.id!==this.data.group.id),this.setGroupsToDisable(),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!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(t){this.filterValue=t}setGroupsToDisable(){for(const t of this.groups)this.guiAuthResolver.isAuthorized("createGroupUnion_Group_Group_policy",[this.data.group,t])||this.groupsToDisable.add(t.id)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(l.ff),h.Y36(u.V6),h.Y36(S.sK),h.Y36(u.x4),h.Y36(A.WI))},t.\u0275cmp=h.Xpm({type:t,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,"placeholder","filter"],["mat-dialog-content","",1,"dialog-container"],[3,"tableId","groupsToDisableCheckbox","disableGroups","groups","selection","displayedColumns","filter","disableHeadCheckbox","disableRouting","authType"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"div"),h.YNc(4,un,1,0,"mat-spinner",1),h.qZA(),h.YNc(5,dn,11,22,"div",2)),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,6,"DIALOGS.CREATE_RELATION.TITLE")),h.xp6(2),h.Tol(e.theme),h.xp6(1),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[A.uh,o.O5,f.$g,Es.L,A.xY,cn.W,A.H8,b.lW],pipes:[S.X$],styles:[""]}),t})();function hn(t,e){1&t&&h._UZ(0,"mat-spinner",6)}function mn(t,e){1&t&&h._UZ(0,"th",15)}function An(t,e){if(1&t&&(h.TgZ(0,"td",16),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.Oqu(t.name)}}function In(t,e){1&t&&h._UZ(0,"tr",17)}function Tn(t,e){1&t&&h._UZ(0,"tr",18)}function fn(t,e){if(1&t&&(h.TgZ(0,"div",7),h.TgZ(1,"p"),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"div",8),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.TgZ(7,"table",9),h.ynx(8,10),h.YNc(9,mn,1,0,"th",11),h.YNc(10,An,2,1,"td",12),h.BQk(),h.YNc(11,In,1,0,"tr",13),h.YNc(12,Tn,1,0,"tr",14),h.qZA(),h.qZA()),2&t){const t=h.oxw();h.xp6(2),h.hij(" ",h.lcZ(3,5,"DIALOGS.REMOVE_RELATION.DESCRIPTION")," "),h.xp6(3),h.hij(" ",h.lcZ(6,7,"DIALOGS.REMOVE_RELATION.ASK")," "),h.xp6(2),h.Q6J("dataSource",t.dataSource),h.xp6(4),h.Q6J("matHeaderRowDef",t.displayedColumns),h.xp6(1),h.Q6J("matRowDefColumns",t.displayedColumns)}}let En=(()=>{class t{constructor(t,e,i,o,s){this.dialogRef=t,this.data=e,this.notificator=i,this.groupService=o,this.translate=s,this.displayedColumns=["name"],s.get("DIALOGS.REMOVE_RELATION.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new nt.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 t=this.data.reverse?this.data.groups.shift().id:this.data.groupId,e=this.data.reverse?this.data.groupId:this.data.groups.shift().id;this.groupService.removeGroupUnion(t,e).subscribe(()=>{this.onSubmit(),this.dialogRef.close(!0)},()=>this.loading=!1)}}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(u.V6),h.Y36(l.ff),h.Y36(S.sK))},t.\u0275cmp=h.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,hn,1,0,"mat-spinner",1),h.YNc(5,fn,13,9,"div",2),h.TgZ(6,"div",3),h.TgZ(7,"button",4),h.NdJ("click",function(){return e.onCancel()}),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"button",5),h.NdJ("click",function(){return e.onSubmit()}),h._uU(11),h.ALo(12,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.Oqu(h.lcZ(3,9,"DIALOGS.REMOVE_RELATION.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(9,11,"DIALOGS.REMOVE_RELATION.CANCEL")," "),h.xp6(2),h.Q6J("disabled",e.loading),h.xp6(1),h.hij(" ",h.lcZ(12,13,"DIALOGS.REMOVE_RELATION.DELETE")," "))},directives:[A.uh,o.O5,A.H8,b.lW,f.$g,A.xY,nt.BZ,nt.w1,nt.fO,nt.Dz,nt.as,nt.nj,nt.ge,nt.ev,nt.XQ,nt.Gk],pipes:[S.X$],styles:[""]}),t})();var Zn=i(41939);const _n=["list"];function bn(t,e){1&t&&h._UZ(0,"mat-spinner",8)}const Sn=function(){return["select","id","vo","name","description"]};function Nn(t,e){if(1&t&&h._UZ(0,"perun-web-apps-groups-list",9,10),2&t){const t=h.oxw();h.Q6J("tableId",t.tableId)("groups",t.groups)("parentGroup",t.group)("authType","group-relations")("selection",t.selection)("filter",t.filterValue)("displayedColumns",h.DdM(8,Sn))("disableHeadCheckbox",!0)}}let On=(()=>{class t{constructor(t,e,i){this.groupService=t,this.dialog=e,this.entityStorageService=i,this.selection=new cs.Ov(!0,[]),this.groups=[],this.reverse=!1,this.filterValue="",this.tableId=Ts._7}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.refreshTable()}onCreate(){const t=(0,c.kZ)();t.width="1050px",t.data={groups:this.groups,theme:"group-theme",group:this.group,voId:this.group.voId,reverse:this.reverse},this.dialog.open(gn,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onDelete(){const t=(0,c.kZ)();t.width="450px",t.data={groups:this.selection.selected,theme:"group-theme",groupId:this.group.id,reverse:this.reverse},this.dialog.open(En,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}refreshTable(){this.loading=!0,this.groupService.getGroupUnions(this.group.id,this.reverse).subscribe(t=>{this.groups=t,this.selection.clear(),this.loading=!1},()=>this.loading=!1)}applyFilter(t){this.filterValue=t}showReverseUnions(){this.reverse=!this.reverse,this.refreshTable()}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.ff),h.Y36(A.uw),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-settings-relations"]],viewQuery:function(t,e){if(1&t&&h.Gf(_n,5),2&t){let t;h.iGM(t=h.CRH())&&(e.list=t.first)}},hostVars:2,hostBindings:function(t,e){2&t&&h.ekj("router-component",e.true)},decls:18,vars:20,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"matTooltip","matTooltipDisabled","disabled","click"],[3,"placeholder","filter"],[3,"change"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","groups","parentGroup","authType","selection","filter","displayedColumns","disableHeadCheckbox",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"tableId","groups","parentGroup","authType","selection","filter","displayedColumns","disableHeadCheckbox"],["list",""]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"perun-web-apps-refresh-button",1),h.NdJ("refresh",function(){return e.refreshTable()}),h.qZA(),h.TgZ(5,"button",2),h.NdJ("click",function(){return e.onCreate()}),h._uU(6),h.ALo(7,"translate"),h.qZA(),h.TgZ(8,"button",3),h.NdJ("click",function(){return e.onDelete()}),h.ALo(9,"translate"),h._uU(10),h.ALo(11,"translate"),h.qZA(),h.TgZ(12,"perun-web-apps-immediate-filter",4),h.NdJ("filter",function(t){return e.applyFilter(t)}),h.qZA(),h.TgZ(13,"mat-checkbox",5),h.NdJ("change",function(){return e.showReverseUnions()}),h._uU(14),h.ALo(15,"translate"),h.qZA(),h.YNc(16,bn,1,0,"mat-spinner",6),h.YNc(17,Nn,2,9,"perun-web-apps-groups-list",7),h.qZA()),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,10,"GROUP_DETAIL.SETTINGS.RELATIONS.TITLE")),h.xp6(4),h.hij(" ",h.lcZ(7,12,"GROUP_DETAIL.SETTINGS.RELATIONS.CREATE")," "),h.xp6(2),h.s9C("matTooltip",h.lcZ(9,14,"GROUP_DETAIL.SETTINGS.RELATIONS.DELETE_TOOLTIP")),h.Q6J("matTooltipDisabled",0===e.selection.selected.length||void 0!==e.list&&e.list.removeAuth)("disabled",0===e.selection.selected.length||void 0!==e.list&&!e.list.removeAuth),h.xp6(2),h.hij(" ",h.lcZ(11,16,"GROUP_DETAIL.SETTINGS.RELATIONS.DELETE")," "),h.xp6(2),h.Q6J("placeholder","GROUP_DETAIL.SETTINGS.RELATIONS.FILTER"),h.xp6(2),h.Oqu(h.lcZ(15,18,"GROUP_DETAIL.SETTINGS.RELATIONS.REVERSE_UNIONS")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[fs.t,b.lW,Z.gM,Es.L,be.oG,o.O5,f.$g,cn.W],pipes:[S.X$],styles:[""]}),t})();var vn=i(21548),xn=i(29851);function Ln(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",6),h.NdJ("click",function(){return h.CHM(t),h.oxw().showAllDetails=!0}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"MEMBER_DETAIL.APPLICATIONS.SHOW_ALL_DETAILS")," "))}function Cn(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",6),h.NdJ("click",function(){return h.CHM(t),h.oxw().showAllDetails=!1}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"MEMBER_DETAIL.APPLICATIONS.SHOW_LESS_DETAILS")," "))}function Rn(t,e){1&t&&h._UZ(0,"mat-spinner",7)}function Mn(t,e){if(1&t&&h._UZ(0,"app-applications-list",10),2&t){const t=h.oxw(2);h.Q6J("tableId",t.tableId)("filterValue",t.filterValue)("applications",t.applications)("member",t.member)("displayedColumns",t.displayedColumns)}}function Dn(t,e){if(1&t&&h._UZ(0,"app-perun-web-apps-application-list-details",11),2&t){const t=h.oxw(2);h.Q6J("tableId",t.detailTableId)("filterValue",t.filterValue)("applications",t.applications)("member",t.member)}}function Un(t,e){if(1&t&&(h.TgZ(0,"div"),h.YNc(1,Mn,1,5,"app-applications-list",8),h.YNc(2,Dn,1,4,"app-perun-web-apps-application-list-details",9),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("ngIf",!t.showAllDetails),h.xp6(1),h.Q6J("ngIf",t.showAllDetails)}}let qn=(()=>{class t{constructor(t,e,i){this.registrarManager=t,this.memberManager=e,this.route=i,this.loading=!1,this.applications=[],this.displayedColumns=["id","createdAt","type","state","user","group","modifiedBy"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=Ts.d7,this.tableId=Ts.vq}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(t=>{this.memberId=t.memberId,this.memberManager.getMemberById(this.memberId).subscribe(t=>{this.member=t}),this.registrarManager.getApplicationsForMember(this.memberId).subscribe(t=>{this.applications=t,this.loading=!1})})}refreshTable(){this.loading=!0,this.registrarManager.getApplicationsForMember(this.memberId).subscribe(t=>{this.applications=t,this.loading=!1})}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.tk),h.Y36(l.uq),h.Y36(s.gz))},t.\u0275cmp=h.Xpm({type:t,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","filterValue","applications","member","displayedColumns",4,"ngIf"],[3,"tableId","filterValue","applications","member",4,"ngIf"],[3,"tableId","filterValue","applications","member","displayedColumns"],[3,"tableId","filterValue","applications","member"]],template:function(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"div"),h.TgZ(4,"perun-web-apps-refresh-button",1),h.NdJ("refresh",function(){return e.refreshTable()}),h.qZA(),h.YNc(5,Ln,3,3,"button",2),h.YNc(6,Cn,3,3,"button",2),h.TgZ(7,"perun-web-apps-immediate-filter",3),h.NdJ("filter",function(t){return e.applyFilter(t)}),h.qZA(),h.qZA(),h.YNc(8,Rn,1,0,"mat-spinner",4),h.YNc(9,Un,3,2,"div",5)),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,6,"MEMBER_DETAIL.APPLICATIONS.TITLE")),h.xp6(4),h.Q6J("ngIf",!e.showAllDetails),h.xp6(1),h.Q6J("ngIf",e.showAllDetails),h.xp6(1),h.Q6J("placeholder","MEMBER_DETAIL.APPLICATIONS.FILTER"),h.xp6(1),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[fs.t,o.O5,Es.L,b.lW,f.$g,vn.M,xn.w],pipes:[S.X$],styles:[""]}),t})();var Pn=i(56238),wn=i(79996),yn=i(70663),Gn=i(40084);function Yn(t,e){1&t&&(h._uU(0),h.ALo(1,"translate")),2&t&&h.Oqu(h.lcZ(1,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SELECT_RESOURCE"))}function Jn(t,e){1&t&&h._UZ(0,"mat-spinner",13)}function Vn(t,e){if(1&t&&(h.TgZ(0,"mat-option",24),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t),h.xp6(1),h.hij(" ",t," ")}}function Fn(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"mat-option",25),h.NdJ("click",function(){const e=h.CHM(t).$implicit,i=h.oxw(2);return i.setResource(e),i.stepper.selected.completed=!0}),h._uU(1),h.qZA()}if(2&t){const t=e.$implicit;h.Q6J("value",t),h.xp6(1),h.hij(" ",t.name," ")}}function Qn(t,e){if(1&t&&(h.TgZ(0,"div",22),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.Oqu(t.name)}}function kn(t,e){if(1&t&&(h.TgZ(0,"div"),h.TgZ(1,"div"),h.TgZ(2,"mat-form-field",14),h._UZ(3,"input",15),h.ALo(4,"translate"),h.TgZ(5,"mat-autocomplete",16,17),h.YNc(7,Vn,2,2,"mat-option",18),h.ALo(8,"async"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(9,"div"),h.TgZ(10,"mat-form-field",14),h.TgZ(11,"mat-select",19),h.ALo(12,"translate"),h.YNc(13,Fn,2,2,"mat-option",20),h.ALo(14,"async"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(15,"div"),h.TgZ(16,"span",21),h._uU(17),h.ALo(18,"translate"),h.qZA(),h.TgZ(19,"div",22),h._uU(20),h.qZA(),h.qZA(),h.TgZ(21,"div"),h.TgZ(22,"span",21),h._uU(23),h.ALo(24,"translate"),h.qZA(),h.YNc(25,Qn,2,1,"div",23),h.qZA(),h.qZA()),2&t){const t=h.MAs(6),e=h.oxw();h.xp6(3),h.s9C("placeholder",h.lcZ(4,10,"DIALOGS.ADD_MEMBER_TO_RESOURCE.FILTER")),h.Q6J("formControl",e.facilityCtrl)("matAutocomplete",t),h.xp6(4),h.Q6J("ngForOf",h.lcZ(8,12,e.filteredFacilities)),h.xp6(4),h.s9C("placeholder",h.lcZ(12,14,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SELECTED")),h.xp6(2),h.Q6J("ngForOf",h.lcZ(14,16,e.filteredResources)),h.xp6(4),h.Oqu(h.lcZ(18,18,"DIALOGS.ADD_MEMBER_TO_RESOURCE.DESCRIPTION")),h.xp6(3),h.Oqu(e.description),h.xp6(3),h.Oqu(h.lcZ(24,20,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SERVICES")),h.xp6(2),h.Q6J("ngForOf",e.services)}}function Bn(t,e){1&t&&(h._uU(0),h.ALo(1,"translate")),2&t&&h.Oqu(h.lcZ(1,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.ADD_GROUP"))}function jn(t,e){1&t&&h._UZ(0,"mat-spinner",13)}const Hn=function(){return["select","id","name","description"]};function $n(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"perun-web-apps-groups-list",26),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("disableGroups",!0)("disableHeadCheckbox",!0)("disableRouting",!0)("groupsToDisableCheckbox",t.membersGroupsId)("groups",t.groups)("displayedColumns",h.DdM(7,Hn))("selection",t.selectedGroups)}}function zn(t,e){1&t&&(h.TgZ(0,"app-alert",27),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.NO_GROUPS")," "))}function Xn(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",28),h.NdJ("click",function(){return h.CHM(t),h.oxw().stepperPrevious()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.BACK")," "))}function Wn(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",29),h.NdJ("click",function(){h.CHM(t);const e=h.oxw();return e.stepperNext(),e.loadGroups()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw();h.ekj("ml-2",void 0!==t.stepper&&0!==t.stepper.selectedIndex)("ml-auto",!(void 0!==t.stepper&&0!==t.stepper.selectedIndex)),h.Q6J("disabled",null===t.selectedResource||t.processing||t.loading),h.xp6(1),h.hij(" ",h.lcZ(2,6,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CONTINUE")," ")}}function Kn(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",30),h.NdJ("click",function(){return h.CHM(t),h.oxw().onFinish()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("disabled",0===t.selectedGroups.selected.length||t.processing),h.xp6(1),h.hij(" ",h.lcZ(2,2,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SUBMIT")," ")}}let tr=(()=>{class t{constructor(t,e,i,o,s,a,n,r){this.dialogRef=t,this.data=e,this.resourceManager=i,this.groupManager=o,this.notificator=s,this.translate=a,this.authResolver=n,this.cd=r,this.loading=!1,this.processing=!1,this.membersGroupsId=new Set,this.facilityCtrl=new me.NI,this.facilitiesNames=[],this.resources=[],this.selectedResource=null,this.services=[],this.description="",this.groups=[],this.selectedGroups=new cs.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(t=>{this.resources=t,this.getResourceFacilities(),this.loading=!1},()=>this.loading=!1)}getResourceFacilities(){const t=new Set;for(const e of this.resources)t.add(e.facility.name);this.facilitiesNames=Array.from(t),this.filteredFacilities=this.facilityCtrl.valueChanges.pipe((0,Pn.O)(""),(0,wn.U)(t=>this.filterFacilities(t))),this.filteredResources=this.facilityCtrl.valueChanges.pipe((0,Pn.O)(""),(0,wn.U)(t=>this.filterResources(t)))}filterFacilities(t){const e=t.toLowerCase();return this.facilitiesNames.filter(t=>t.toLowerCase().indexOf(e)>=0).sort((t,e)=>t.toLowerCase().localeCompare(e.toLowerCase()))}filterResources(t){if(null==t)return this.resources;const e=t.toLowerCase();return this.resources.filter(t=>0===t.facility.name.toLowerCase().indexOf(e)).sort((t,e)=>t.name.toLowerCase().localeCompare(e.name.toLowerCase()))}setResource(t){this.processing=!0,this.selectedResource=t,this.resourceManager.getAssignedServicesToResource(this.selectedResource.id).subscribe(t=>{this.services=t,this.processing=!1},()=>this.processing=!1),this.description=this.selectedResource.description}loadGroups(){this.processing=!0,this.resourceManager.getAssignedGroups(this.selectedResource.id).subscribe(t=>{this.groups=t,this.groupManager.getAllMemberGroups(this.data.memberId).subscribe(t=>{this.membersGroupsId=new Set(t.map(t=>t.id)),this.groups.forEach(t=>{this.authResolver.isAuthorized("addMember_Group_Member_policy",[t])||this.membersGroupsId.add(t.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()}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(l.xk),h.Y36(l.ff),h.Y36(u.V6),h.Y36(S.sK),h.Y36(u.x4),h.Y36(h.sBO))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-add-member-to-resource-dialog"]],viewQuery:function(t,e){if(1&t&&h.Gf(yn.Vq,5),2&t){let t;h.iGM(t=h.CRH())&&(e.stepper=t.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(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"div",1),h.TgZ(5,"mat-stepper",2),h.TgZ(6,"mat-step",3),h.YNc(7,Yn,2,3,"ng-template",4),h.YNc(8,Jn,1,0,"mat-spinner",5),h.YNc(9,kn,26,22,"div",6),h.qZA(),h.TgZ(10,"mat-step"),h.YNc(11,Bn,2,3,"ng-template",4),h.YNc(12,jn,1,0,"mat-spinner",5),h.YNc(13,$n,2,8,"div",6),h.YNc(14,zn,3,3,"app-alert",7),h.qZA(),h.qZA(),h.qZA(),h.TgZ(15,"div",8),h.TgZ(16,"button",9),h.NdJ("click",function(){return e.onCancel()}),h._uU(17),h.ALo(18,"translate"),h.qZA(),h.YNc(19,Xn,3,3,"button",10),h.YNc(20,Wn,3,8,"button",11),h.YNc(21,Kn,3,4,"button",12),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.Oqu(h.lcZ(3,14,"DIALOGS.ADD_MEMBER_TO_RESOURCE.TITLE")),h.xp6(3),h.Q6J("linear",!0),h.xp6(3),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.Q6J("ngIf",e.processing),h.xp6(1),h.Q6J("ngIf",0!==e.groups.length&&!e.processing),h.xp6(1),h.Q6J("ngIf",0===e.groups.length&&!e.processing),h.xp6(3),h.hij(" ",h.lcZ(18,16,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CANCEL")," "),h.xp6(2),h.Q6J("ngIf",void 0!==e.stepper&&0!==e.stepper.selectedIndex),h.xp6(1),h.Q6J("ngIf",void 0!==e.stepper&&e.stepper.selectedIndex!==e.stepper._steps.length-1),h.xp6(1),h.Q6J("ngIf",void 0!==e.stepper&&e.stepper.selectedIndex===e.stepper._steps.length-1))},directives:[A.uh,A.xY,yn.Vq,yn.C0,yn.VY,o.O5,A.H8,b.lW,f.$g,fe.KE,Ze.Nt,me.Fj,Gn.ZL,me.JJ,me.oH,Gn.XC,o.sg,Ee.gD,_e.ey,cn.W,dt.w],pipes:[S.X$,o.Ov],styles:[".input-style[_ngcontent-%COMP%]{margin-left:50px;width:75%}"]}),t})();var er=i(88884);function ir(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",6),h.NdJ("click",function(){return h.CHM(t),h.oxw().addResource()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"MEMBER_DETAIL.RESOURCES.ADD")," "))}function or(t,e){if(1&t&&h._UZ(0,"perun-web-apps-resources-list",7),2&t){const t=h.oxw();h.Q6J("tableId",t.tableId)("filterValue",t.filterValue)("displayedColumns",t.displayedColumns)("routingVo",!0)("disableRouting",!t.routeAuth)("resources",t.resources)}}function sr(t,e){1&t&&h._UZ(0,"mat-spinner",8)}let ar=(()=>{class t{constructor(t,e,i,o,s){this.dialog=t,this.memberManager=e,this.resourceManager=i,this.route=o,this.authResolver=s,this.resources=[],this.filterValue="",this.loading=!1,this.displayedColumns=["id","name","vo","facility","tags","description"],this.tableId=Ts.aL}ngOnInit(){this.route.parent.params.subscribe(t=>{this.memberManager.getMemberById(t.memberId).subscribe(t=>{this.member=t,this.refreshTable()})})}addResource(){const t=(0,c.kZ)();t.width="1200px",t.data={memberId:this.member.id,voId:this.member.voId,theme:"member-theme"},this.dialog.open(tr,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}refreshTable(){this.loading=!0,this.resourceManager.getAssignedRichResourcesWithMember(this.member.id).subscribe(t=>{this.resources=t,this.setAuthRights(),this.loading=!1})}setAuthRights(){const t={id:this.member.voId,beanName:"Vo"};this.addAuth=this.authResolver.isAuthorized("getRichResources_Vo_policy",[t])&&this.authResolver.isAuthorized("addMembers_Group_List_policy",[t]),0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getResourceById_int_policy",[t,this.resources[0]]))}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.uw),h.Y36(l.uq),h.Y36(l.xk),h.Y36(s.gz),h.Y36(u.x4))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-member-resources"]],decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","class","action-button","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"placeholder","filter"],[3,"tableId","filterValue","displayedColumns","routingVo","disableRouting","resources",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[3,"tableId","filterValue","displayedColumns","routingVo","disableRouting","resources"],[1,"mr-auto","ml-auto"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"perun-web-apps-refresh-button",1),h.NdJ("refresh",function(){return e.refreshTable()}),h.qZA(),h.YNc(5,ir,3,3,"button",2),h.TgZ(6,"perun-web-apps-immediate-filter",3),h.NdJ("filter",function(t){return e.applyFilter(t)}),h.qZA(),h.YNc(7,or,1,6,"perun-web-apps-resources-list",4),h.qZA(),h.YNc(8,sr,1,0,"mat-spinner",5)),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,5,"MEMBER_DETAIL.RESOURCES.TITLE")),h.xp6(3),h.Q6J("ngIf",e.addAuth),h.xp6(1),h.Q6J("placeholder","MEMBER_DETAIL.RESOURCES.FILTER"),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(1),h.Q6J("ngIf",e.loading))},directives:[fs.t,o.O5,Es.L,b.lW,er.C,f.$g],pipes:[S.X$],styles:[""]}),t})();var nr=i(72920),rr=i(76527),lr=i(42473),cr=i(77968),ur=i(22927),pr=i(79472),dr=i(64359),gr=i(75374),hr=i(95142),mr=i(48666);function Ar(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",7),h.NdJ("click",function(){return h.CHM(t),h.oxw().onAdd()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.ADD")," "))}function Ir(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",8),h.NdJ("click",function(){return h.CHM(t),h.oxw().onRemove()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("disabled",0===t.selection.selected.length),h.xp6(1),h.hij(" ",h.lcZ(2,2,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function Tr(t,e){1&t&&h._UZ(0,"mat-spinner",9)}function fr(t,e){if(1&t&&h._UZ(0,"app-ext-sources-list",10),2&t){const t=h.oxw();h.Q6J("tableId",t.tableId)("extSources",t.extSources)("displayedColumns",t.displayedColumns)("filterValue",t.filterValue)("selection",t.selection)}}let Er=(()=>{class t{constructor(t,e,i,o,s,a){this.extSourceService=t,this.dialog=e,this.notificator=i,this.translate=o,this.authResolver=s,this.entityStorageService=a,this.extSources=[],this.selection=new cs.Ov(!0,[]),this.filterValue="",this.tableId=Ts.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(t=>{this.extSources=t,this.selection.clear(),this.loading=!1})}applyFilter(t){this.filterValue=t}onAdd(){const t=(0,c.kZ)();t.width="1000px",t.data={voId:this.group.voId,groupId:this.group.id,extSources:this.extSources,theme:"group-theme"},this.dialog.open(ja,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onRemove(){const t=(0,c.kZ)();t.width="600px",t.data={voId:this.group.voId,groupId:this.group.id,extSources:this.selection.selected,theme:"group-theme"},this.dialog.open(on,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.KG),h.Y36(A.uw),h.Y36(u.V6),h.Y36(S.sK),h.Y36(u.x4),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-group-settings-extsources"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["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,"tableId","extSources","displayedColumns","filterValue","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,"tableId","extSources","displayedColumns","filterValue","selection"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"perun-web-apps-refresh-button",1),h.NdJ("refresh",function(){return e.refreshTable()}),h.qZA(),h.YNc(5,Ar,3,3,"button",2),h.YNc(6,Ir,3,4,"button",3),h.TgZ(7,"perun-web-apps-immediate-filter",4),h.NdJ("filter",function(t){return e.applyFilter(t)}),h.qZA(),h.YNc(8,Tr,1,0,"mat-spinner",5),h.YNc(9,fr,1,5,"app-ext-sources-list",6),h.qZA()),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,6,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),h.xp6(3),h.Q6J("ngIf",e.addAuth),h.xp6(1),h.Q6J("ngIf",e.removeAuth),h.xp6(1),h.Q6J("placeholder","GROUP_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),h.xp6(1),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[fs.t,o.O5,Es.L,b.lW,f.$g,Qa.D],pipes:[S.X$],styles:[""]}),t})();function Zr(t,e){1&t&&h._UZ(0,"th",9)}function _r(t,e){if(1&t&&(h.TgZ(0,"td",10),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.xp6(1),h.hij("",t,":")}}function br(t,e){1&t&&h._UZ(0,"th",9)}function Sr(t,e){if(1&t&&(h.TgZ(0,"td",11),h._uU(1),h.qZA()),2&t){const t=e.$implicit,i=h.oxw();h.xp6(1),h.hij(" ",i.statistics.get(t.toLowerCase())," ")}}function Nr(t,e){1&t&&h._UZ(0,"tr",12)}let Or=(()=>{class t{constructor(){this.rowNames=[],this.title="",this.statistics=new Map,this.dataSource=null,this.displayedColumns=["name","value"]}ngOnInit(){this.dataSource=new nt.by(this.rowNames)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=h.Xpm({type:t,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(t,e){1&t&&(h.TgZ(0,"mat-card",0),h.TgZ(1,"mat-card-header"),h.TgZ(2,"mat-card-title"),h.TgZ(3,"h1",1),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.qZA(),h.qZA(),h.TgZ(6,"mat-card-content"),h.TgZ(7,"table",2),h.ynx(8,3),h.YNc(9,Zr,1,0,"th",4),h.YNc(10,_r,2,1,"td",5),h.BQk(),h.ynx(11,6),h.YNc(12,br,1,0,"th",4),h.YNc(13,Sr,2,1,"td",7),h.BQk(),h.YNc(14,Nr,1,0,"tr",8),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.xp6(4),h.Oqu(h.lcZ(5,3,e.title)),h.xp6(3),h.Q6J("dataSource",e.dataSource),h.xp6(7),h.Q6J("matRowDefColumns",e.displayedColumns))},directives:[ct.a8,ct.dk,ct.n5,ct.dn,nt.BZ,nt.w1,nt.fO,nt.Dz,nt.nj,nt.ge,nt.ev,nt.Gk],pipes:[S.X$],styles:[".align-card[_ngcontent-%COMP%]{margin:1rem 1rem 1rem 0;display:inline-block;vertical-align:top}"]}),t})();function vr(t,e){1&t&&h._UZ(0,"mat-spinner",3)}function xr(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"app-statistics-card",4),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("rowNames",t.rowNames)("statistics",t.membersCount)("title","VO_DETAIL.STATISTICS.MEMBERS_COUNT")}}let Lr=(()=>{class t{constructor(t,e){this.voService=t,this.entityStorageService=e,this.loading=!1,this.dataSource=new nt.by,this.displayedColumns=["status","count"],this.rowNames=["Members","Valid","Invalid","Expired","Disabled"],this.membersCount=new Map([["members",0],["valid",0],["invalid",0],["expired",0],["disabled",0]])}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.dataSource=new nt.by(this.rowNames),this.voService.getVoMembersCountsByStatus(this.vo.id).subscribe(t=>{this.allMembersCount=0;for(const e of Object.keys(t))this.membersCount.set(e.toLowerCase(),t[e]),this.allMembersCount+=t[e];this.membersCount.set("members",this.allMembersCount),this.loading=!1},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.YF),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,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(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.YNc(3,vr,1,0,"mat-spinner",1),h.YNc(4,xr,2,3,"div",2)),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,3,"VO_DETAIL.STATISTICS.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,f.$g,Or],pipes:[S.X$],styles:[""]}),t})();function Cr(t,e){1&t&&h._UZ(0,"mat-spinner",3)}function Rr(t,e){if(1&t&&(h.TgZ(0,"div"),h._UZ(1,"app-statistics-card",4),h._UZ(2,"app-statistics-card",4),h.qZA()),2&t){const t=h.oxw();h.xp6(1),h.Q6J("rowNames",t.voStatusCountsRowNames)("statistics",t.membersCountsByVoStatus)("title","GROUP_DETAIL.STATISTICS.VO_STATUS_COUNT"),h.xp6(1),h.Q6J("rowNames",t.groupStatusCountsRowNames)("statistics",t.membersCountsByGroupStatus)("title","GROUP_DETAIL.STATISTICS.GROUP_STATUS_COUNT")}}let Mr=(()=>{class t{constructor(t,e){this.groupService=t,this.entityStorageService=e,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(t=>{this.membersCountsByVoStatus.set("members",t),this.membersCountsByGroupStatus.set("members",t),this.groupService.getGroupMembersCountsByVoStatus(this.group.id).subscribe(t=>{Object.entries(t).forEach(([t,e])=>this.membersCountsByVoStatus.set(t.toLowerCase(),e)),this.groupService.getGroupMembersCountsByGroupStatus(this.group.id).subscribe(t=>{Object.entries(t).forEach(([t,e])=>this.membersCountsByGroupStatus.set(t.toLowerCase(),e)),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.ff),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,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(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.YNc(3,Cr,1,0,"mat-spinner",1),h.YNc(4,Rr,3,6,"div",2)),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,3,"GROUP_DETAIL.STATISTICS.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[o.O5,f.$g,Or],pipes:[S.X$],styles:[""]}),t})();var Dr=i(91058);function Ur(t,e){1&t&&h._UZ(0,"mat-spinner",6)}const qr=function(){return["select","id","name","description"]};function Pr(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",7),h.TgZ(1,"perun-web-apps-debounce-filter",8),h.NdJ("filter",function(e){return h.CHM(t),h.oxw().applyFilter(e)}),h.ALo(2,"translate"),h.qZA(),h._UZ(3,"perun-web-apps-groups-list",9),h.qZA()}if(2&t){const t=h.oxw();h.xp6(1),h.s9C("placeholder",h.lcZ(2,8,"DIALOGS.ADD_GROUP_TO_REGISTRATION.FILTER_DESCRIPTION")),h.xp6(2),h.Q6J("tableId",t.tableId)("groups",t.unAssignedGroups)("selection",t.selection)("filter",t.filterValue)("displayedColumns",h.DdM(10,qr))("disableRouting",!0)("disableMembers",!0)}}let wr=(()=>{class t{constructor(t,e,i,o){this.dialogRef=t,this.data=e,this.groupService=i,this.registrarService=o,this.loading=!1,this.selection=new cs.Ov(!0,[]),this.filterValue="",this.tableId=Ts.Is}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.groupService.getAllGroups(this.data.voId).subscribe(t=>{this.unAssignedGroups=t.filter(t=>this.data.assignedGroups.indexOf(t.id)<=-1),this.loading=!1})}applyFilter(t){this.filterValue=t}onCancel(){this.dialogRef.close(!1)}onAdd(){this.loading=!0,this.registrarService.addGroupsToAutoRegistration(this.selection.selected.map(t=>t.id)).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(l.ff),h.Y36(l.tk))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-add-group-to-registration"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-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","accent",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter"],[3,"tableId","groups","selection","filter","displayedColumns","disableRouting","disableMembers"]],template:function(t,e){1&t&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,Ur,1,0,"mat-spinner",1),h.YNc(5,Pr,4,11,"div",2),h.TgZ(6,"div",3),h.TgZ(7,"button",4),h.NdJ("click",function(){return e.onCancel()}),h._uU(8),h.ALo(9,"translate"),h.qZA(),h.TgZ(10,"button",5),h.NdJ("click",function(){return e.onAdd()}),h._uU(11),h.ALo(12,"translate"),h.qZA(),h.qZA(),h.qZA()),2&t&&(h.Tol(e.theme),h.xp6(2),h.Oqu(h.lcZ(3,9,"DIALOGS.ADD_GROUP_TO_REGISTRATION.TITLE")),h.xp6(2),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading),h.xp6(3),h.hij(" ",h.lcZ(9,11,"DIALOGS.ADD_GROUP_TO_REGISTRATION.CANCEL_BUTTON")," "),h.xp6(2),h.Q6J("disabled",0===e.selection.selected.length||e.loading),h.xp6(1),h.hij(" ",h.lcZ(12,13,"DIALOGS.ADD_GROUP_TO_REGISTRATION.ADD_BUTTON")," "))},directives:[A.uh,o.O5,A.H8,b.lW,f.$g,A.xY,Dr.P,cn.W],pipes:[S.X$],styles:[""]}),t})();const yr=["list"];function Gr(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",9),h.NdJ("click",function(){return h.CHM(t),h.oxw().onAddGroup()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.ADD"),"\n"))}function Yr(t,e){1&t&&h._UZ(0,"mat-spinner",10)}const Jr=function(){return["select","id","name","description"]};function Vr(t,e){if(1&t&&h._UZ(0,"perun-web-apps-groups-list",11,12),2&t){const t=h.oxw();h.Q6J("tableId",t.tableId)("selection",t.selected)("displayedColumns",h.DdM(7,Jr))("disableRouting",!0)("filter",t.filterValue)("authType","application-form-manage-groups")("groups",t.groups)}}let Fr=(()=>{class t{constructor(t,e,i,o){this.registrarService=t,this.authResolver=e,this.dialog=i,this.route=o,this.groups=[],this.selected=new cs.Ov(!0,[]),this.tableId=Ts.CE,this.filterValue=""}ngOnInit(){this.loading=!0,this.route.parent.parent.params.subscribe(t=>{this.voId=t.voId,this.loadGroups()})}loadGroups(){this.loading=!0,this.registrarService.getGroupsToAutoRegistration(this.voId).subscribe(t=>{this.groups=t,this.selected.clear(),this.setAuthRights(),this.loading=!1},()=>this.loading=!1)}onAddGroup(){const t=(0,c.kZ)();t.width="900px",t.data={voId:this.voId,assignedGroups:this.groups.map(t=>t.id),theme:"vo-theme"},this.dialog.open(wr,t).afterClosed().subscribe(t=>{t&&this.loadGroups()})}removeGroup(){const t=(0,c.kZ)();t.width="450px",t.data={items:this.selected.selected.map(t=>t.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"},this.dialog.open(d.Tf,t).afterClosed().subscribe(t=>{t&&this.registrarService.deleteGroupsFromAutoRegistration(this.selected.selected.map(t=>t.id)).subscribe(()=>{this.loadGroups()})})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addGroupsToAutoRegistration_List_policy",[{id:this.voId,beanName:"Vo"}])}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.tk),h.Y36(u.x4),h.Y36(A.uw),h.Y36(s.gz))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-application-form-manage-groups"]],viewQuery:function(t,e){if(1&t&&h.Gf(yr,5),2&t){let t;h.iGM(t=h.CRH())&&(e.list=t.first)}},decls:17,vars:21,consts:[[1,"page-subtitle"],["alert_type","info"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],["theme","vo-theme",3,"tableId","selection","displayedColumns","disableRouting","filter","authType","groups",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],["theme","vo-theme",3,"tableId","selection","displayedColumns","disableRouting","filter","authType","groups"],["list",""]],template:function(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"app-alert",1),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.TgZ(7,"perun-web-apps-refresh-button",2),h.NdJ("refresh",function(){return e.loadGroups()}),h.qZA(),h.YNc(8,Gr,3,3,"button",3),h.TgZ(9,"span",4),h.ALo(10,"translate"),h.TgZ(11,"button",5),h.NdJ("click",function(){return e.removeGroup()}),h._uU(12),h.ALo(13,"translate"),h.qZA(),h.qZA(),h.TgZ(14,"perun-web-apps-immediate-filter",6),h.NdJ("filter",function(t){return e.filterValue=t}),h.qZA(),h.YNc(15,Yr,1,0,"mat-spinner",7),h.YNc(16,Vr,2,8,"perun-web-apps-groups-list",8)),2&t&&(h.xp6(1),h.AsE(" ",h.lcZ(2,11,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE")," - ",h.lcZ(3,13,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.TITLE"),"\n"),h.xp6(4),h.hij(" ",h.lcZ(6,15,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.HELP"),"\n"),h.xp6(3),h.Q6J("ngIf",e.addAuth),h.xp6(1),h.s9C("matTooltip",h.lcZ(10,17,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_PERMISSION_HINT")),h.Q6J("matTooltipDisabled",void 0===e.list||void 0!==e.list&&e.list.removeAuth),h.xp6(2),h.Q6J("disabled",0===e.selected.selected.length||void 0!==e.list&&!e.list.removeAuth),h.xp6(1),h.hij(" ",h.lcZ(13,19,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE")," "),h.xp6(2),h.Q6J("placeholder","VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.FILTER"),h.xp6(1),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[dt.w,fs.t,o.O5,Z.gM,b.lW,Es.L,f.$g,cn.W],pipes:[S.X$],styles:[""]}),t})();var Qr=i(53134),kr=i(47701),Br=i(90611),jr=i(44689),Hr=i(18820),$r=i(90888),zr=i(85250),Xr=i(4252);const Wr=["stepper"];function Kr(t,e){1&t&&(h._uU(0),h.ALo(1,"translate")),2&t&&h.Oqu(h.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.CREATE_IDENTITY"))}function tl(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function el(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function il(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.EMAIL_INVALID")))}function ol(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function sl(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function al(t,e){1&t&&(h._uU(0),h.ALo(1,"translate")),2&t&&h.Oqu(h.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.SET_CREDENTIALS"))}function nl(t,e){if(1&t&&(h.TgZ(0,"mat-option",31),h._uU(1),h.qZA()),2&t){const t=e.$implicit;h.Q6J("value",t),h.xp6(1),h.hij(" ",t," ")}}function rl(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function ll(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_EXISTS")))}function cl(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_FORMAT")))}function ul(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_LONG")))}function pl(t,e){1&t&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_SHORT")))}function dl(t,e){if(1&t&&(h.TgZ(0,"span",32),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t){const t=h.oxw(2);h.xp6(1),h.hij(" ",h.lcZ(2,1,"Not selected"===t.secondFormGroup.get("namespaceCtrl").value?"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_DISABLED":"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_DISABLED_FOR_NAMESPACE")," ")}}function gl(t,e){1&t&&(h._uU(0),h.ALo(1,"translate")),2&t&&h.Oqu(h.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.ASSOCIATE_USERS"))}function hl(t,e){if(1&t&&(h.TgZ(0,"span",38),h._uU(1),h.qZA()),2&t){const t=h.oxw().$implicit;h.xp6(1),h.hij("#",t.id,"")}}function ml(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"mat-list-item"),h.TgZ(1,"p",33),h._uU(2),h.ALo(3,"userFullName"),h.YNc(4,hl,2,1,"span",34),h.TgZ(5,"span",35),h.ALo(6,"translate"),h.TgZ(7,"button",36),h.NdJ("click",function(){const e=h.CHM(t).$implicit;return h.oxw(2).removeUser(e)}),h.TgZ(8,"mat-icon",37),h._uU(9,"close"),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=e.$implicit,i=h.oxw(2);h.xp6(2),h.hij(" ",h.lcZ(3,5,t.user)," "),h.xp6(2),h.Q6J("ngIf",t.id),h.xp6(1),h.Q6J("matTooltipDisabled",i.assignedMembers.length>1)("matTooltip",h.lcZ(6,7,"DIALOGS.CREATE_SERVICE_MEMBER.MINIMAL_USERS")),h.xp6(2),h.Q6J("disabled",1===i.assignedMembers.length)}}function Al(t,e){1&t&&h._UZ(0,"mat-spinner",39)}const Il=function(){return["checkbox","id","fullName"]};function Tl(t,e){if(1&t&&h._UZ(0,"perun-web-apps-members-list",42),2&t){const t=h.oxw(3);h.Q6J("disableRouting",!0)("displayedColumns",h.DdM(5,Il))("members",t.members)("tableId",t.tableId)("selection",t.selection)}}function fl(t,e){1&t&&(h.TgZ(0,"app-alert",43),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_INFO")," "))}function El(t,e){if(1&t&&(h.TgZ(0,"div"),h.YNc(1,Tl,1,6,"perun-web-apps-members-list",40),h.YNc(2,fl,3,3,"app-alert",41),h.qZA()),2&t){const t=h.oxw(2);h.xp6(1),h.Q6J("ngIf",t.firstSearchDone),h.xp6(1),h.Q6J("ngIf",!t.firstSearchDone)}}function Zl(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",5),h.TgZ(1,"mat-stepper",6,7),h.TgZ(3,"mat-step",8),h.TgZ(4,"form",9),h.YNc(5,Kr,2,3,"ng-template",10),h.TgZ(6,"div",11),h.TgZ(7,"mat-form-field"),h.TgZ(8,"mat-label"),h._uU(9),h.ALo(10,"translate"),h.qZA(),h._UZ(11,"input",12),h.YNc(12,tl,3,3,"mat-error",13),h.qZA(),h.TgZ(13,"mat-form-field"),h.TgZ(14,"mat-label"),h._uU(15),h.ALo(16,"translate"),h.qZA(),h._UZ(17,"input",14),h.YNc(18,el,3,3,"mat-error",13),h.YNc(19,il,3,3,"mat-error",13),h.qZA(),h.TgZ(20,"mat-form-field"),h.TgZ(21,"mat-label"),h._uU(22),h.ALo(23,"translate"),h.qZA(),h._UZ(24,"input",15),h.YNc(25,ol,3,3,"mat-error",13),h.qZA(),h.TgZ(26,"mat-form-field"),h.TgZ(27,"mat-label"),h._uU(28),h.ALo(29,"translate"),h.qZA(),h._UZ(30,"input",16),h.YNc(31,sl,3,3,"mat-error",13),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(32,"mat-step",8),h.TgZ(33,"form",9),h.YNc(34,al,2,3,"ng-template",10),h.TgZ(35,"div",11),h.TgZ(36,"mat-form-field"),h.TgZ(37,"mat-label"),h._uU(38),h.ALo(39,"translate"),h.qZA(),h.TgZ(40,"mat-select",17),h.NdJ("valueChange",function(e){return h.CHM(t),h.oxw().onNamespaceChanged(e)}),h.YNc(41,nl,2,2,"mat-option",18),h.qZA(),h.qZA(),h.TgZ(42,"mat-form-field",19),h.TgZ(43,"mat-label"),h._uU(44),h.ALo(45,"translate"),h.qZA(),h._UZ(46,"input",20),h.YNc(47,rl,3,3,"mat-error",13),h.YNc(48,ll,3,3,"mat-error",13),h.YNc(49,cl,3,3,"mat-error",13),h.YNc(50,ul,3,3,"mat-error",13),h.YNc(51,pl,3,3,"mat-error",13),h.YNc(52,dl,3,3,"span",21),h.qZA(),h.TgZ(53,"mat-radio-group",22),h.NdJ("ngModelChange",function(){return h.CHM(t),h.oxw().passwordOptionChanged()}),h.ALo(54,"translate"),h.TgZ(55,"mat-radio-button",23),h._uU(56),h.ALo(57,"translate"),h.qZA(),h.TgZ(58,"mat-radio-button",23),h._uU(59),h.ALo(60,"translate"),h.qZA(),h.qZA(),h.TgZ(61,"div",11),h._UZ(62,"perun-web-apps-password-form",24),h.qZA(),h.qZA(),h.qZA(),h.qZA(),h.TgZ(63,"mat-step"),h.YNc(64,gl,2,3,"ng-template",10),h.TgZ(65,"h6"),h._uU(66),h.ALo(67,"translate"),h.qZA(),h.TgZ(68,"mat-list"),h.YNc(69,ml,10,9,"mat-list-item",25),h.qZA(),h.TgZ(70,"h6",26),h._uU(71),h.ALo(72,"translate"),h.qZA(),h.TgZ(73,"mat-form-field",27),h.TgZ(74,"input",28),h.NdJ("keyup.enter",function(){h.CHM(t);const e=h.oxw();return 0!==e.searchCtrl.value.length&&e.onSearchByString()}),h.ALo(75,"translate"),h.qZA(),h.qZA(),h.TgZ(76,"button",29),h.NdJ("click",function(){return h.CHM(t),h.oxw().onSearchByString()}),h.TgZ(77,"mat-icon"),h._uU(78,"search"),h.qZA(),h.qZA(),h.TgZ(79,"button",30),h.NdJ("click",function(){return h.CHM(t),h.oxw().addUsers()}),h._uU(80),h.ALo(81,"translate"),h.qZA(),h.YNc(82,Al,1,0,"mat-spinner",3),h.YNc(83,El,3,2,"div",13),h.qZA(),h.qZA(),h.qZA()}if(2&t){const t=h.oxw();h.xp6(1),h.Q6J("linear",!0),h.xp6(2),h.Q6J("stepControl",t.firstFormGroup),h.xp6(1),h.Q6J("formGroup",t.firstFormGroup),h.xp6(5),h.Oqu(h.lcZ(10,50,"DIALOGS.CREATE_SERVICE_MEMBER.NAME")),h.xp6(3),h.Q6J("ngIf",t.firstFormGroup.get("nameCtrl").hasError("required")),h.xp6(3),h.Oqu(h.lcZ(16,52,"DIALOGS.CREATE_SERVICE_MEMBER.EMAIL")),h.xp6(3),h.Q6J("ngIf",t.firstFormGroup.get("emailCtrl").hasError("required")),h.xp6(1),h.Q6J("ngIf",t.firstFormGroup.get("emailCtrl").hasError("pattern")),h.xp6(3),h.Oqu(h.lcZ(23,54,"DIALOGS.CREATE_SERVICE_MEMBER.SUBJECT_DN")),h.xp6(2),h.Q6J("required",!!t.firstFormGroup.get("issuerCtrl").value&&0!==t.firstFormGroup.get("issuerCtrl").value.trim().length),h.xp6(1),h.Q6J("ngIf",t.firstFormGroup.get("subjectCtrl").hasError("required")),h.xp6(3),h.Oqu(h.lcZ(29,56,"DIALOGS.CREATE_SERVICE_MEMBER.ISSUER_DN")),h.xp6(2),h.Q6J("required",!!t.firstFormGroup.get("subjectCtrl").value&&0!==t.firstFormGroup.get("subjectCtrl").value.trim().length),h.xp6(1),h.Q6J("ngIf",t.firstFormGroup.get("issuerCtrl").hasError("required")),h.xp6(1),h.Q6J("stepControl",t.secondFormGroup),h.xp6(1),h.Q6J("formGroup",t.secondFormGroup),h.xp6(5),h.Oqu(h.lcZ(39,58,"DIALOGS.CREATE_SERVICE_MEMBER.NAMESPACE")),h.xp6(3),h.Q6J("ngForOf",t.namespaceOptions),h.xp6(1),h.Q6J("floatLabel",t.secondFormGroup.get("loginCtrl").disabled?"always":null),h.xp6(2),h.Oqu(h.lcZ(45,60,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN")),h.xp6(2),h.Q6J("hidden",t.secondFormGroup.get("loginCtrl").disabled),h.xp6(1),h.Q6J("ngIf",t.secondFormGroup.get("loginCtrl").hasError("required")),h.xp6(1),h.Q6J("ngIf",t.secondFormGroup.get("loginCtrl").hasError("loginExists")),h.xp6(1),h.Q6J("ngIf",t.secondFormGroup.get("loginCtrl").hasError("pattern")&&!t.secondFormGroup.get("loginCtrl").hasError("minlength")),h.xp6(1),h.Q6J("ngIf",t.secondFormGroup.get("loginCtrl").hasError("maxlength")),h.xp6(1),h.Q6J("ngIf",t.secondFormGroup.get("loginCtrl").hasError("minlength")),h.xp6(1),h.Q6J("ngIf",t.secondFormGroup.get("loginCtrl").disabled),h.xp6(1),h.s9C("matTooltip",h.lcZ(54,62,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_NOT_SUPPORTED")),h.Q6J("matTooltipDisabled","Not selected"!==t.secondFormGroup.get("namespaceCtrl").value),h.xp6(2),h.Q6J("checked",t.secondFormGroup.get("generatePasswordCtrl").value&&t.secondFormGroup.get("generatePasswordCtrl").enabled)("value",!0),h.xp6(1),h.hij(" ",h.lcZ(57,64,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_RANDOM")," "),h.xp6(2),h.Q6J("checked",!t.secondFormGroup.get("generatePasswordCtrl").value&&t.secondFormGroup.get("generatePasswordCtrl").enabled)("value",!1),h.xp6(1),h.hij(" ",h.lcZ(60,66,"DIALOGS.CREATE_SERVICE_MEMBER.ENTER_PASSWORD")," "),h.xp6(2),h.ekj("input-disabled",t.secondFormGroup.get("generatePasswordCtrl").value),h.xp6(1),h.Q6J("formGroup",t.secondFormGroup)("passwordRequired",!t.secondFormGroup.get("generatePasswordCtrl").value)("namespace",t.selectedNamespace),h.xp6(4),h.Oqu(h.lcZ(67,68,"DIALOGS.CREATE_SERVICE_MEMBER.ASSOCIATED_USERS")),h.xp6(3),h.Q6J("ngForOf",t.assignedMembers),h.xp6(2),h.Oqu(h.lcZ(72,70,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_INFO")),h.xp6(3),h.s9C("placeholder",h.lcZ(75,72,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_PLACEHOLDER")),h.Q6J("formControl",t.searchCtrl),h.xp6(2),h.Q6J("disabled",t.loading||0===t.searchCtrl.value.length),h.xp6(3),h.Q6J("disabled",0===t.selection.selected.length),h.xp6(1),h.hij(" ",h.lcZ(81,74,"DIALOGS.CREATE_SERVICE_MEMBER.ADD_USER")," "),h.xp6(2),h.Q6J("ngIf",t.loading),h.xp6(1),h.Q6J("ngIf",!t.loading)}}function _l(t,e){1&t&&h._UZ(0,"mat-spinner",39)}function bl(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",49),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).stepperPrevious()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&t&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.BACK")," "))}function Sl(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",30),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).stepperNext()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw(2);h.ekj("ml-2",void 0!==t.stepper&&0!==t.stepper.selectedIndex)("ml-auto",!(void 0!==t.stepper&&0!==t.stepper.selectedIndex)),h.Q6J("disabled",t.getStepperNextConditions()),h.xp6(1),h.hij(" ",h.lcZ(2,6,"DIALOGS.CREATE_SERVICE_MEMBER.NEXT")," ")}}function Nl(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",50),h.NdJ("click",function(){return h.CHM(t),h.oxw(2).onCreate()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw(2);h.Q6J("disabled",t.firstFormGroup.invalid||"Not selected"!==t.secondFormGroup.get("namespaceCtrl").value&&t.secondFormGroup.invalid),h.xp6(1),h.hij(" ",h.lcZ(2,2,"DIALOGS.CREATE_SERVICE_MEMBER.CREATE")," ")}}function Ol(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"div",44),h.TgZ(1,"button",45),h.NdJ("click",function(){return h.CHM(t),h.oxw().onCancel()}),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,bl,3,3,"button",46),h.YNc(5,Sl,3,8,"button",47),h.YNc(6,Nl,3,4,"button",48),h.qZA()}if(2&t){const t=h.oxw();h.xp6(2),h.hij(" ",h.lcZ(3,4,"DIALOGS.CREATE_SERVICE_MEMBER.CANCEL")," "),h.xp6(2),h.Q6J("ngIf",void 0!==t.stepper&&0!==t.stepper.selectedIndex),h.xp6(1),h.Q6J("ngIf",void 0!==t.stepper&&t.stepper.selectedIndex!==t.stepper._steps.length-1),h.xp6(1),h.Q6J("ngIf",void 0!==t.stepper&&t.stepper.selectedIndex===t.stepper._steps.length-1)}}let vl=(()=>{class t{constructor(t,e,i,o,s,a,n,r,l,c){this.dialogRef=t,this.data=e,this.membersManagerService=i,this.usersManagerService=o,this.notificator=s,this.translate=a,this.store=n,this.apiRequestConfiguration=r,this._formBuilder=l,this.cd=c,this.namespaceOptions=[],this.selectedNamespace=null,this.namespaceRules=[],this.parsedRules=new Map,this.firstSearchDone=!1,this.searchCtrl=new me.NI(""),this.members=[],this.selection=new cs.Ov(!0,[]),this.tableId=Ts.j1,this.assignedMembers=[],this.candidate={},this.successMessageMember="",this.successMessagePwd="",this.processing=!1,a.get("DIALOGS.CREATE_SERVICE_MEMBER.SUCCESS_MEMBER").subscribe(t=>this.successMessageMember=t),a.get("DIALOGS.CREATE_SERVICE_MEMBER.SUCCESS_PWD").subscribe(t=>this.successMessagePwd=t)}ngAfterViewInit(){this.cd.detectChanges()}ngOnInit(){this.firstFormGroup=this._formBuilder.group({nameCtrl:["",me.kI.required],emailCtrl:["",[me.kI.required,me.kI.pattern("\\w+([.-]?\\w+)*@\\w+([.-]?\\w+)*(.\\w{2,3})+")]],subjectCtrl:[null],issuerCtrl:[null]}),this.secondFormGroup=this._formBuilder.group({namespaceCtrl:["Not selected"],loginCtrl:["",[me.kI.pattern("^[a-z][a-z0-9_-]+$"),me.kI.maxLength(15),me.kI.minLength(2)]],passwordCtrl:["",me.kI.required,[(0,Hr.yT)(null,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],generatePasswordCtrl:[!0]},{validators:c.dN.passwordMatchValidator}),this.namespaceOptions=["Not selected"],this.membersManagerService.getAllNamespacesRules().subscribe(t=>{this.namespaceRules=t,this.parseNamespaceRules(),this.loading=!1}),this.onNamespaceChanged("Not selected");const t=this.store.getPerunPrincipal().user;this.membersManagerService.getMembersByUser(t.id).subscribe(e=>{let i={};for(const t of e)t.voId===this.data.voId&&(i=t);i.user=t,this.assignedMembers.push(i)})}existingLoginValidator(){return t=>{let e=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase();return e="not selected"===e?"mu":e,t.valueChanges.pipe((0,kr.b)(500),(0,Br.q)(1),(0,jr.w)(()=>this.usersManagerService.isLoginAvailable(e,t.value).pipe((0,wn.U)(t=>t?null:{loginExists:!0}))))}}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 t=this.firstFormGroup.get("subjectCtrl");t&&t.value&&(this.candidate.userExtSource={},this.candidate.userExtSource.login=t.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 e=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase(),i=this.parsedRules.get(e),o=`urn:perun:user:attribute-def:def:login-namespace:${e}`;"Not selected"!==this.secondFormGroup.get("namespaceCtrl").value&&"disabled"===i.login?this.usersManagerService.generateAccountForName(e,this.firstFormGroup.get("nameCtrl").value).subscribe(t=>{this.candidate.attributes[o]=t[o],this.createSpecificMember()},()=>this.processing=!1):("Not selected"!==this.secondFormGroup.get("namespaceCtrl").value&&(this.candidate.attributes[o]=this.secondFormGroup.get("loginCtrl").value),this.createSpecificMember())}createSpecificMember(){this.membersManagerService.createSpecificMember({vo:this.data.voId,specificUserType:"SERVICE",specificUserOwners:this.assignedMembers.map(t=>t.user),candidate:this.candidate}).subscribe(t=>{this.membersManagerService.validateMemberAsync(t.id).subscribe(t=>{this.notificator.showSuccess(this.successMessageMember),"Not selected"!==this.secondFormGroup.get("namespaceCtrl").value?this.setPassword(t,this.secondFormGroup.get("generatePasswordCtrl").value):(this.dialogRef.close(!0),this.processing=!1)},()=>this.processing=!1)},()=>this.processing=!1)}parseNamespaceRules(){for(const t of this.namespaceRules){this.namespaceOptions.push(t.namespaceName);const e={login:"disabled"};this.parseAttributes(e,t.requiredAttributes,"required"),this.parseAttributes(e,t.optionalAttributes,"optional"),this.parsedRules.set(t.namespaceName,e)}}parseAttributes(t,e,i){for(const o of e)switch(o){case"login":t.login=i}}setPassword(t,e){const i=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase(),o=this.secondFormGroup.get("passwordCtrl").value;if(e){if("disabled"===this.parsedRules.get(i).login)return void this.validateMember(t.id);this.usersManagerService.reserveRandomPassword(t.userId,i).subscribe(()=>{this.usersManagerService.validatePasswordForUser(t.userId,i).subscribe(()=>{this.validateMember(t.id,!1)},()=>{this.processing=!1,this.dialogRef.close(!0)})},()=>{this.processing=!1,this.dialogRef.close(!0)})}else this.usersManagerService.reservePasswordForUser(t.userId,i,o).subscribe(()=>{this.usersManagerService.validatePasswordForUser(t.userId,i).subscribe(()=>{this.validateMember(t.id)},()=>{this.processing=!1,this.dialogRef.close(!0)})},()=>{this.processing=!1,this.dialogRef.close(!0)})}validateMember(t,e=!0){this.membersManagerService.validateMemberAsync(t).subscribe(()=>{e&&this.notificator.showSuccess(this.successMessagePwd),this.dialogRef.close(!0),this.processing=!1},()=>{this.processing=!1,this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}onSearchByString(){this.loading=!0,this.membersManagerService.findCompleteRichMembersForVo(this.data.voId,[null],this.searchCtrl.value).subscribe(t=>{this.members=t.filter(t=>!t.user.specificUser),this.firstSearchDone=!0,this.loading=!1})}addUsers(){const t=this.assignedMembers.map(t=>t.id);this.selection.selected.forEach(e=>{t.includes(e.id)||this.assignedMembers.push(e)}),this.selection.clear()}removeUser(t){this.assignedMembers=this.assignedMembers.filter(e=>e.id!==t.id)}onNamespaceChanged(t){this.selectedNamespace=t.toLowerCase();const e=this.secondFormGroup.get("loginCtrl"),i=this.secondFormGroup.get("passwordCtrl"),o=this.secondFormGroup.get("passwordAgainCtrl"),s=this.secondFormGroup.get("generatePasswordCtrl");if("Not selected"!==t){if("disabled"===this.parsedRules.get(this.selectedNamespace).login)e.disable(),e.setValue("");else{const t=[me.kI.required,me.kI.pattern("^[a-z][a-z0-9_-]+$"),me.kI.maxLength(15),me.kI.minLength(2)];(0,c.mH)(e,t,[this.existingLoginValidator()])}(0,c.mH)(s,[]),this.passwordOptionChanged()}else e.disable(),e.setValue(""),i.disable(),i.setValue(""),o.disable(),o.setValue(""),s.disable(),s.dirty||s.setValue(!0)}passwordOptionChanged(){const t=this.secondFormGroup.get("passwordCtrl"),e=this.secondFormGroup.get("passwordAgainCtrl");this.secondFormGroup.get("generatePasswordCtrl").value?(t.disable(),t.setValue(""),e.disable(),e.setValue("")):((0,c.mH)(t,[me.kI.required],[(0,Hr.yT)(this.selectedNamespace,this.usersManagerService,this.apiRequestConfiguration)]),(0,c.mH)(e,[]))}getStepperNextConditions(){switch(this.stepper.selectedIndex){case 0:return this.firstFormGroup.invalid||this.firstFormGroup.pending;case 1:return this.secondFormGroup.invalid||this.secondFormGroup.pending||"Not selected"===this.secondFormGroup.get("namespaceCtrl").value;default:return!1}}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(A.so),h.Y36(A.WI),h.Y36(l.uq),h.Y36(l.Fv),h.Y36(u.V6),h.Y36(S.sK),h.Y36(u.d6),h.Y36(u.F5),h.Y36(me.qu),h.Y36(h.sBO))},t.\u0275cmp=h.Xpm({type:t,selectors:[["app-create-service-member-dialog"]],viewQuery:function(t,e){if(1&t&&h.Gf(Wr,5),2&t){let t;h.iGM(t=h.CRH())&&(e.stepper=t.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"],["formControlName","namespaceCtrl",3,"valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"floatLabel"],["formControlName","loginCtrl","matInput","","required","",3,"hidden"],["class","input-disabled",4,"ngIf"],["formControlName","generatePasswordCtrl","matTooltipPosition","left",1,"display-flex","mt-3",3,"matTooltipDisabled","matTooltip","ngModelChange"],[3,"checked","value"],[3,"formGroup","passwordRequired","namespace"],[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"],[3,"value"],[1,"input-disabled"],[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(t,e){1&t&&(h.TgZ(0,"div",0),h.TgZ(1,"h1",1),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.YNc(4,Zl,84,76,"div",2),h.YNc(5,_l,1,0,"mat-spinner",3),h.YNc(6,Ol,7,6,"div",4),h.qZA()),2&t&&(h.xp6(2),h.Oqu(h.lcZ(3,4,"DIALOGS.CREATE_SERVICE_MEMBER.TITLE")),h.xp6(2),h.Q6J("ngIf",!e.processing),h.xp6(1),h.Q6J("ngIf",e.processing),h.xp6(1),h.Q6J("ngIf",!e.processing))},directives:[o.O5,A.xY,yn.Vq,yn.C0,me._Y,me.JL,me.sg,yn.VY,fe.KE,fe.hX,me.Fj,Ze.Nt,me.JJ,me.u,me.Q7,Ee.gD,o.sg,Ae.VQ,Z.gM,Ae.U0,$r.G,zr.i$,me.oH,b.lW,E.Hw,fe.TO,_e.ey,zr.Tg,f.$g,Xr.O,dt.w,A.H8],pipes:[S.X$,Mt.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}"]}),t})();var xl=i(4374);function Ll(t,e){if(1&t){const t=h.EpF();h.TgZ(0,"button",7),h.NdJ("click",function(){return h.CHM(t),h.oxw().onRemoveMembers()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&t){const t=h.oxw();h.Q6J("disabled",t.selection.isEmpty()),h.xp6(1),h.hij(" ",h.lcZ(2,2,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.DELETE"),"\n")}}function Cl(t,e){1&t&&h._UZ(0,"mat-spinner",8)}const Rl=function(){return["checkbox","id","type","fullName","status"]};function Ml(t,e){if(1&t&&h._UZ(0,"perun-web-apps-members-list",9),2&t){const t=h.oxw();h.Q6J("tableId",t.tableId)("displayedColumns",h.DdM(5,Rl))("selection",t.selection)("filter",t.searchString)("members",t.members)}}const Dl=[{path:"",component:a.Y},{path:":voId",component:at,children:[{path:"",component:$,data:{animation:"VoOverviewPage"}},{path:"attributes",component:ue,data:{animation:"VoAttributesPage"}},{path:"groups",component:z.G,data:{animation:"VoGroupsPage"}},{path:"members",component:X.y,data:{animation:"VoMembersPage"}},{path:"resources",component:ne,children:[{path:"",component:ns,data:{animation:"VoResourcesOverviewPage"}},{path:"preview",component:rs.z,data:{animation:"VoResourcesPreviewPage"}},{path:"states",component:ls.z,data:{animation:"VoResourcesStatesPage"}},{path:"tags",component:Os,data:{animation:"VoResourcesTagsPage"}}]},{path:"applications",component:re.c,data:{animation:"VoApplicationsPage"}},{path:"applications/:applicationId",component:Ci,data:{animation:"VoApplicationDetailPage"}},{path:"sponsoredMembers",component:mr.T,data:{animation:"VoSettingsSponsoredMembersPage"}},{path:"serviceAccounts",component:(()=>{class t{constructor(t,e,i,o,s){this.membersManager=t,this.dialog=e,this.authResolver=i,this.authzService=o,this.entityStorageService=s,this.members=[],this.selection=new cs.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=Ts._c}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.removeAuth=this.authzService.isAuthorized("deleteMembers_List_policy",[this.vo]),this.refresh()}createServiceMember(){const t=(0,c.kZ)();t.width="750px",t.data={voId:this.vo.id},this.dialog.open(vl,t).afterClosed().subscribe(t=>{t&&this.refresh()})}onRemoveMembers(){const t=(0,c.kZ)();t.width="450px",t.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(xl.X,t).afterClosed().subscribe(t=>{t&&(this.refresh(),this.selection.clear())})}applyFilter(t){this.searchString=t}refresh(){this.loading=!0,this.membersManager.findCompleteRichMembersForVo(this.vo.id,[null],"(Service)").subscribe(t=>{this.members=t,this.loading=!1})}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(l.uq),h.Y36(A.uw),h.Y36(u.x4),h.Y36(u.x4),h.Y36(u.fb))},t.\u0275cmp=h.Xpm({type:t,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","filter","members",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","displayedColumns","selection","filter","members"]],template:function(t,e){1&t&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"perun-web-apps-refresh-button",1),h.NdJ("refresh",function(){return e.refresh()}),h.qZA(),h.TgZ(4,"button",2),h.NdJ("click",function(){return e.createServiceMember()}),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.YNc(7,Ll,3,4,"button",3),h.TgZ(8,"perun-web-apps-immediate-filter",4),h.NdJ("filter",function(t){return e.applyFilter(t)}),h.qZA(),h.YNc(9,Cl,1,0,"mat-spinner",5),h.YNc(10,Ml,1,6,"perun-web-apps-members-list",6)),2&t&&(h.xp6(1),h.Oqu(h.lcZ(2,6,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.TITLE")),h.xp6(4),h.hij(" ",h.lcZ(6,8,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.CREATE"),"\n"),h.xp6(2),h.Q6J("ngIf",e.removeAuth),h.xp6(1),h.Q6J("placeholder","VO_DETAIL.SETTINGS.SERVICE_MEMBERS.FILTER"),h.xp6(1),h.Q6J("ngIf",e.loading),h.xp6(1),h.Q6J("ngIf",!e.loading))},directives:[fs.t,b.lW,o.O5,Es.L,f.$g,Xr.O],pipes:[S.X$],styles:[""]}),t})(),data:{animation:"VoSettingsServiceMembersPage"}},{path:"statistics",component:Lr,data:{animation:"VoStatisticsPage"}},{path:"settings",component:le,children:[{path:"",component:ge,data:{animation:"VoSettingsOverviewPage"}},{path:"expiration",component:ye,data:{animation:"VoSettingsExpirationPage"}},{path:"managers",component:Je,data:{animation:"VoSettingsManagersPage"}},{path:"applicationForm",component:Hi.w,data:{animation:"SettingsApplicationFormPage"}},{path:"applicationForm/preview",component:ko,data:{animation:"SettingsApplicationFormPreviewPage"}},{path:"applicationForm/manageGroups",component:Fr},{path:"notifications",component:Da,data:{animation:"SettingsApplicationFormNotificationsPage"}},{path:"extsources",component:ln,data:{animation:"VoSettingsExtSourcesPage"}}]}]},{path:":voId/members/:memberId",component:k,children:[{path:"",component:Wt,data:{animation:"MemberOverviewPage"}},{path:"attributes",component:as,data:{animation:"MemberAttributesPage"}},{path:"groups",component:Kt.j,data:{animation:"MemberGroupsPage"}},{path:"applications",component:qn,data:{animation:"MemberApplicationsPage"}},{path:"applications/:applicationId",component:Ci,data:{animation:"MemberApplicationDetailPage"}},{path:"resources",component:ar,data:{animation:"MemberResourcesPage"}}]},{path:":voId/groups/:groupId",component:w,children:[{path:"",component:se,data:{animation:"GroupOverviewPage"}},{path:"members",component:Ri.y,data:{animation:"GroupMembersPage"}},{path:"subgroups",component:ae.u,data:{animation:"GroupSubgroupsPage"}},{path:"applications",component:Ge.W,data:{animation:"GroupApplicationsPage"}},{path:"resources",component:Mi.q,data:{animation:"GroupResourcesPage"}},{path:"attributes",component:Qi,data:{animation:"GroupAttributesPage"}},{path:"statistics",component:Mr,data:{animation:"GroupStatisticsPage"}},{path:"settings",component:Di,children:[{path:"",component:ji,data:{animation:"GroupSettingsOverviewPage"}},{path:"expiration",component:xs,data:{animation:"GroupSettingsExpirationPage"}},{path:"managers",component:Ls,data:{animation:"GroupSettingsManagersPage"}},{path:"applicationForm",component:Ua.Z,data:{animation:"GroupSettingsApplicationFormPage"}},{path:"applicationForm/preview",component:ko},{path:"notifications",component:Fa,data:{animation:"GroupSettingsNotificationsPage"}},{path:"relations",component:On,data:{animation:"GroupSettingsRelationsPage"}},{path:"extsources",component:Er,data:{animation:"GroupSettingsExtsourcesPage"}}]},{path:"applications/:applicationId",component:Ci,data:{animation:"GroupApplicationDetailPage"}}]},{path:":voId/resources/:resourceId",component:nr.b,children:[{path:"",component:rr.H,data:{animation:"ResourceOverviewPage"}},{path:"groups",component:lr.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:gr.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"attributes",component:pr.X,data:{animation:"ResourceAttributesPage"}},{path:"members",component:hr.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:Qr.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:cr.t,children:[{path:"",component:ur.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:dr.O,data:{animation:"ResourceSettingsManagersPage"}}]}]}];let Ul=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({imports:[[s.Bz.forChild(Dl)],s.Bz]}),t})();var ql=i(28780),Pl=i(22727),wl=i(22280);let yl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({imports:[[o.ez,Ul,ql.m,Pl.r,Zn.ez,wl.d4,c.Je]]}),t})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/427-es5.b96b40af2684eabd5e17.js b/dist/apps/admin-gui/427-es5.b96b40af2684eabd5e17.js deleted file mode 100644 index a3ae246cd..000000000 --- a/dist/apps/admin-gui/427-es5.b96b40af2684eabd5e17.js +++ /dev/null @@ -1 +0,0 @@ -!function(){function t(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==i)return;var n,a,o=[],r=!0,s=!1;try{for(i=i.call(t);!(r=(n=i.next()).done)&&(o.push(n.value),!e||o.length!==e);r=!0);}catch(l){s=!0,a=l}finally{try{r||null==i.return||i.return()}finally{if(s)throw a}}return o}(t,e)||i(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=i(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var a=0,o=function(){};return{s:o,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,r=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw r}}}}function i(t,e){if(t){if("string"==typeof t)return n(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(t,e):void 0}}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i_policy",[t.group])?t.groupService.getRichGroupByIdWithAttributesByNames(i,t.attrNames).subscribe(function(e){t.group=e,t.syncEnabled=t.isSynchronized(),t.syncAuth=t.guiAuthResolver.isAuthorized("forceGroupSynchronization_Group_policy",[t.group])},function(){return t.loading=!1}):t.syncEnabled=!1,t.editAuth=t.guiAuthResolver.isAuthorized("updateGroup_Group_policy",[t.group]),t.deleteAuth=t.guiAuthResolver.isAuthorized("deleteGroup_Group_boolean_policy",[t.group]),t.setMenuItems(),t.loading=!1},function(){return t.loading=!1})},function(){return t.loading=!1})})}},{key:"setMenuItems",value:function(){var t=this.sideMenuItemService.parseVo(this.vo),e=this.sideMenuItemService.parseGroup(this.group);this.sideMenuService.setAccessMenuItems([t,e])}},{key:"deleteGroup",value:function(){var t=this,e=(0,g.kZ)();e.width="500px",e.data={theme:"group-theme",groups:[this.group]},this.dialog.open(A.P,e).afterClosed().subscribe(function(e){e&&t.router.navigate(["../"],{relativeTo:t.route})})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(T.D),I.Y36(d.YF),I.Y36(l.gz),I.Y36(c.V),I.Y36(d.ff),I.Y36(v.uw),I.Y36(m.x4),I.Y36(l.F0),I.Y36(m.fb),I.Y36(E.G))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-group-detail-page"]],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"],["mat-icon-button","","aria-label","Edit group",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","","aria-label","Edit group",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(t,e){1&t&&(I.TgZ(0,"div",0),I._UZ(1,"perun-web-apps-back-button"),I.YNc(2,M,1,0,"mat-spinner",1),I.YNc(3,k,25,32,"div",2),I.qZA()),2&t&&(I.xp6(2),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading&&void 0!==e.vo&&void 0!==e.group))},directives:[Z.W,s.O5,b.$g,_.Hw,S.gM,s.PC,l.yS,N.A,O.lW],pipes:[x.X$,L.r,C.J,R.F],styles:[""],data:{animation:[p.Ji]}}),t}();function J(t,e){1&t&&I._UZ(0,"mat-spinner",3)}var V=function(t){return["/admin","users",t]};function F(t,e){if(1&t&&(I.TgZ(0,"a",8),I._uU(1),I.qZA()),2&t){var i=I.oxw(2);I.Q6J("routerLink",I.VKq(2,V,i.member.userId)),I.xp6(1),I.hij(" ",i.member.userId," ")}}function Q(t,e){if(1&t&&(I.TgZ(0,"span"),I._uU(1),I.qZA()),2&t){var i=I.oxw(2);I.xp6(1),I.Oqu(i.member.userId)}}var B=function(){return{color:"black"}},j=function(t,e){return["/organizations",t,"members",e]};function H(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"div",4),I._UZ(2,"mat-icon",5),I.ALo(3,"translate"),I.TgZ(4,"div",6),I.TgZ(5,"div",7),I.TgZ(6,"a",8),I._uU(7),I.qZA(),I.TgZ(8,"span",9),I._uU(9),I.qZA(),I.qZA(),I.TgZ(10,"span",10),I._uU(11),I.ALo(12,"translate"),I.ALo(13,"translate"),I.YNc(14,F,2,4,"a",11),I.YNc(15,Q,2,1,"span",2),I.qZA(),I.qZA(),I.qZA(),I._UZ(16,"app-animated-router-outlet"),I.qZA()),2&t){var i=I.oxw();I.xp6(2),I.s9C("matTooltip",I.lcZ(3,9,"MEMBER_DETAIL.ENTITY")),I.Q6J("ngStyle",I.DdM(15,B)),I.xp6(4),I.Q6J("routerLink",I.WLB(16,j,i.vo.id,i.member.id)),I.xp6(1),I.hij(" ",i.fullName," "),I.xp6(2),I.hij(" \xa0#",i.member.id," "),I.xp6(2),I.AsE(" ",I.lcZ(12,11,"MEMBER_DETAIL.ENTITY"),", ",I.lcZ(13,13,"MEMBER_DETAIL.USER_ID"),": "),I.xp6(3),I.Q6J("ngIf",i.isAuthorized),I.xp6(1),I.Q6J("ngIf",!i.isAuthorized)}}var z=function(){var t=function(){function t(e,i,n,o,r,s,l){a(this,t),this.sideMenuItemService=e,this.translate=i,this.sideMenuService=n,this.membersService=o,this.voService=r,this.route=s,this.authResolver=l,this.fullName="",this.isAuthorized=!1,this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.params.subscribe(function(e){var i=e.voId,n=e.memberId;t.isAuthorized=t.authResolver.isPerunAdminOrObserver(),t.voService.getVoById(i).subscribe(function(e){t.vo=e,t.membersService.getRichMemberWithAttributes(n).subscribe(function(e){t.member=e;var i=t.sideMenuItemService.parseVo(t.vo),n=t.sideMenuItemService.parseMember(t.member,t.vo);t.fullName=n.label,t.sideMenuService.setAccessMenuItems([i,n]),t.loading=!1},function(){return t.loading=!1})},function(){return t.loading=!1})})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(c.V),I.Y36(x.sK),I.Y36(T.D),I.Y36(d.uq),I.Y36(d.YF),I.Y36(l.gz),I.Y36(m.x4))},t.\u0275cmp=I.Xpm({type:t,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(t,e){1&t&&(I.TgZ(0,"div",0),I._UZ(1,"perun-web-apps-back-button"),I.YNc(2,J,1,0,"mat-spinner",1),I.YNc(3,H,17,19,"div",2),I.qZA()),2&t&&(I.xp6(2),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading&&void 0!==e.vo&&void 0!==e.member))},directives:[Z.W,s.O5,b.$g,_.Hw,S.gM,s.PC,l.yS,N.A],pipes:[x.X$],styles:[""],data:{animation:[p.Ji]}}),t}(),X=o(8557);function $(t,e){1&t&&I._UZ(0,"mat-spinner",2)}function W(t,e){if(1&t&&(I.TgZ(0,"div"),I._UZ(1,"perun-web-apps-menu-buttons-field",3),I.qZA()),2&t){var i=I.oxw();I.xp6(1),I.Q6J("items",i.navItems)("size","small")}}var K=function(){var t=function(){function t(e,i,n,o,r){a(this,t),this.sideMenuService=e,this.voService=i,this.router=n,this.authResolver=o,this.entityStorageService=r,this.items=[],this.navItems=[],this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.initNavItems(),this.loading=!1}},{key:"initNavItems",value:function(){this.authResolver.isAuthorized("getCompleteRichMembers_Vo_List_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-user",url:"/organizations/".concat(this.vo.id,"/members"),label:"MENU_ITEMS.VO.MEMBERS",style:"vo-btn"}),this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-group",url:"/organizations/".concat(this.vo.id,"/groups"),label:"MENU_ITEMS.VO.GROUPS",style:"vo-btn"}),this.authResolver.isAuthorized("getRichResources_Vo_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-manage-facility",url:"/organizations/".concat(this.vo.id,"/resources"),label:"MENU_ITEMS.VO.RESOURCES",style:"vo-btn"}),this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-applications",url:"/organizations/".concat(this.vo.id,"/applications"),label:"MENU_ITEMS.VO.APPLICATIONS",style:"vo-btn"}),this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-user",url:"/organizations/".concat(this.vo.id,"/sponsoredMembers"),label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",style:"vo-btn"}),this.authResolver.isAuthorized("createSpecificMember_Vo_Candidate_List_SpecificUserType_List_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-service-identity",url:"/organizations/".concat(this.vo.id,"/serviceAccounts"),label:"MENU_ITEMS.VO.SERVICE_MEMBERS",style:"vo-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:"/organizations/".concat(this.vo.id,"/attributes"),label:"MENU_ITEMS.VO.ATTRIBUTES",style:"vo-btn"}),this.authResolver.isAuthorized("getMembersCount_Vo_Status_policy",[this.vo])&&this.authResolver.isAuthorized("getMembersCount_Vo_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-statistics",url:"/organizations/".concat(this.vo.id,"/statistics"),label:"MENU_ITEMS.VO.STATISTICS",style:"vo-btn"}),(this.authResolver.isManagerPagePrivileged(this.vo)||this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[this.vo])||this.authResolver.isThisVoAdminOrObserver(this.vo.id))&&this.navItems.push({cssIcon:"perun-settings2",url:"/organizations/".concat(this.vo.id,"/settings"),label:"MENU_ITEMS.VO.SETTINGS",style:"vo-btn"})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(T.D),I.Y36(d.YF),I.Y36(l.F0),I.Y36(m.x4),I.Y36(m.fb))},t.\u0275cmp=I.Xpm({type:t,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(t,e){1&t&&(I.YNc(0,$,1,0,"mat-spinner",0),I.YNc(1,W,2,2,"div",1)),2&t&&(I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[s.O5,b.$g,X.L],styles:[""]}),t}(),tt=o(48002),et=o(28940),it=o(99608);function nt(t,e){1&t&&I._UZ(0,"mat-spinner",3)}function at(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",13),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).editVo()}),I.TgZ(1,"mat-icon"),I._uU(2,"edit"),I.qZA(),I.qZA()}}function ot(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",14),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).removeVo()}),I.TgZ(1,"mat-icon"),I._uU(2,"delete_forever"),I.qZA(),I.qZA()}}var rt=function(){return{color:"black"}},st=function(t){return["/organizations/",t]};function lt(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"div",4),I._UZ(2,"mat-icon",5),I.ALo(3,"translate"),I.TgZ(4,"div",6),I.TgZ(5,"div",7),I.TgZ(6,"a",8),I._uU(7),I.qZA(),I.TgZ(8,"span",9),I._uU(9),I.qZA(),I.YNc(10,at,3,0,"button",10),I.YNc(11,ot,3,0,"button",11),I.qZA(),I.TgZ(12,"span",12),I._uU(13),I.ALo(14,"translate"),I.ALo(15,"translate"),I.qZA(),I.qZA(),I.qZA(),I._UZ(16,"app-animated-router-outlet"),I.qZA()),2&t){var i=I.oxw();I.xp6(2),I.s9C("matTooltip",I.lcZ(3,10,"VO_DETAIL.ENTITY")),I.Q6J("ngStyle",I.DdM(16,rt)),I.xp6(4),I.Q6J("routerLink",I.VKq(17,st,i.vo.id)),I.xp6(1),I.hij(" ",i.vo.name," "),I.xp6(2),I.hij(" \xa0#",i.vo.id," "),I.xp6(1),I.Q6J("ngIf",i.editAuth),I.xp6(1),I.Q6J("ngIf",i.removeAuth),I.xp6(2),I.lnq(" ",I.lcZ(14,12,"VO_DETAIL.ENTITY"),", ",I.lcZ(15,14,"VO_DETAIL.SHORT_NAME"),": ",i.vo.shortName," ")}}var ut=function(){var t=function(){function t(e,i,n,o,r,s,l,u,c){a(this,t),this.sideMenuService=e,this.voService=i,this.route=n,this.router=o,this.sideMenuItemService=r,this.dialog=s,this.authResolver=l,this.entityStorageService=u,this.reloadEntityDetail=c,this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.reloadData(),this.reloadEntityDetail.entityDetailChange.subscribe(function(){t.reloadData()})}},{key:"reloadData",value:function(){var t=this;this.loading=!0,this.route.params.subscribe(function(e){t.voService.getVoById(e.voId).subscribe(function(e){t.vo=e,t.entityStorageService.setEntity({id:e.id,beanName:e.beanName}),t.editAuth=t.authResolver.isAuthorized("updateVo_Vo_policy",[t.vo]),t.removeAuth=t.authResolver.isAuthorized("deleteVo_Vo_policy",[t.vo]),t.setMenuItems(),(0,g.sF)("vos",t.vo),(0,g.XI)(t.vo),t.loading=!1},function(){return t.loading=!1})})}},{key:"editVo",value:function(){var t=this,e=(0,g.kZ)();e.width="450px",e.data={theme:"vo-theme",vo:this.vo,dialogType:f.Eg.VO},this.dialog.open(f.rd,e).afterClosed().subscribe(function(e){e&&t.voService.getVoById(t.vo.id).subscribe(function(e){t.vo=e,t.setMenuItems()})})}},{key:"setMenuItems",value:function(){var t=this.sideMenuItemService.parseVo(this.vo);this.sideMenuService.setAccessMenuItems([t])}},{key:"removeVo",value:function(){var t=this,e=(0,g.kZ)();e.width="500px",e.data={theme:"vo-theme",vos:[this.vo]},this.dialog.open(it.o,e).afterClosed().subscribe(function(e){e&&t.router.navigate([""])})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(T.D),I.Y36(d.YF),I.Y36(l.gz),I.Y36(l.F0),I.Y36(c.V),I.Y36(v.uw),I.Y36(m.x4),I.Y36(m.fb),I.Y36(E.G))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-vo-detail-page"]],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"],["svgIcon","perun-vo-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","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"],["mat-icon-button","","aria-label","Edit Vo",3,"click"],["mat-icon-button","","aria-label","Remove Vo","data-cy","delete-vo",3,"click"]],template:function(t,e){1&t&&(I.TgZ(0,"div",0),I._UZ(1,"perun-web-apps-back-button"),I.YNc(2,nt,1,0,"mat-spinner",1),I.YNc(3,lt,17,19,"div",2),I.qZA()),2&t&&(I.xp6(2),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading&&void 0!==e.vo))},directives:[Z.W,s.O5,b.$g,_.Hw,S.gM,s.PC,l.yS,N.A,O.lW],pipes:[x.X$],styles:[".shortname[_ngcontent-%COMP%]{font-size:medium}"],data:{animation:[p.Ji]}}),t}(),ct=o(67033),pt=o(95121),dt=o(79592),gt=o(27439),mt=o(64737),ht=o(37665),ft=o(39571),At=o(74842),It=o(37043),Tt=o(73669),vt=o(58506);function Et(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"perun-web-apps-group-search-select",7),I.NdJ("groupSelected",function(t){return I.CHM(i),I.oxw().groupIsSelected(t)}),I.qZA()}if(2&t){var n=I.oxw();I.Q6J("groups",n.groups)("firstSelectedGroup",n.selectedGroup)}}function Zt(t,e){1&t&&I._UZ(0,"mat-spinner",8)}function bt(t,e){1&t&&(I.TgZ(0,"app-alert",9),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.NO_GROUPS_FOUND")))}function _t(t,e){1&t&&I._UZ(0,"th",17)}function St(t,e){if(1&t&&(I.TgZ(0,"td",18),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.xp6(1),I.hij(" ",i,": ")}}function Nt(t,e){1&t&&I._UZ(0,"th",17)}function Ot(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",22),I.NdJ("click",function(){return I.CHM(i),I.oxw(4).changeStatus()}),I.TgZ(1,"mat-icon"),I._uU(2,"edit"),I.qZA(),I.qZA()}}function xt(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"i"),I.ALo(2,"memberStatusIconColor"),I._uU(3),I.ALo(4,"memberStatusIcon"),I.qZA(),I.TgZ(5,"b",20),I._uU(6),I.ALo(7,"transformMemberStatus"),I.qZA(),I.YNc(8,Ot,3,0,"button",21),I.qZA()),2&t){var i=I.oxw(3);I.xp6(1),I.Gre("material-icons vert-center mr-1 ",I.lcZ(2,6,i.selectedMember.groupStatus),""),I.xp6(2),I.hij(" ",I.lcZ(4,8,i.selectedMember.groupStatus)," "),I.xp6(3),I.hij(" ",I.lcZ(7,10,i.selectedMember.groupStatus)," "),I.xp6(2),I.Q6J("ngIf",i.authResolver.isThisVoAdmin(i.vo.id)||i.authResolver.isThisGroupAdmin(i.selectedGroup.id))}}function Lt(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",22),I.NdJ("click",function(){return I.CHM(i),I.oxw(4).changeExpiration()}),I.TgZ(1,"mat-icon"),I._uU(2,"edit"),I.qZA(),I.qZA()}}function Ct(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"i",2),I._uU(2),I.ALo(3,"parseDate"),I.qZA(),I.YNc(4,Lt,3,0,"button",21),I.qZA()),2&t){var i=I.oxw(3);I.xp6(2),I.hij(" ",I.lcZ(3,2,i.expiration)," "),I.xp6(2),I.Q6J("ngIf",i.authResolver.isThisVoAdmin(i.vo.id)||i.authResolver.isThisGroupAdmin(i.selectedGroup.id))}}function Rt(t,e){if(1&t&&(I.TgZ(0,"td",19),I.YNc(1,xt,9,12,"div",6),I.YNc(2,Ct,5,4,"div",6),I.qZA()),2&t){var i=e.$implicit;I.xp6(1),I.Q6J("ngIf","Status"===i),I.xp6(1),I.Q6J("ngIf","Expiration"===i)}}function Mt(t,e){1&t&&I._UZ(0,"tr",23)}function yt(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"table",10),I.ynx(2,11),I.YNc(3,_t,1,0,"th",12),I.YNc(4,St,2,1,"td",13),I.BQk(),I.ynx(5,14),I.YNc(6,Nt,1,0,"th",12),I.YNc(7,Rt,3,2,"td",15),I.BQk(),I.YNc(8,Mt,1,0,"tr",16),I.qZA(),I.qZA()),2&t){var i=I.oxw();I.xp6(1),I.Q6J("dataSource",i.groupMembershipDataSource),I.xp6(7),I.Q6J("matRowDefColumns",i.displayedColumns)}}var Dt=function(){var t=function(){function t(e,i,n,o){a(this,t),this.groupsManager=e,this.authResolver=i,this.translate=n,this.dialog=o,this.noGroups=!1,this.groupMembershipDataSource=new ct.by,this.expiration="",this.displayedColumns=["attName","attValue"]}return r(t,[{key:"ngOnChanges",value:function(){var t=this;this.loading=!0,this.initLoading=!0,this.groupMembershipDataSource=new ct.by(["Status","Expiration"]),this.groupsManager.getMemberGroups(this.member.id).subscribe(function(e){if(t.groups=e,0!==t.groups.length){var i=t.findInitiallySelectedGroupId();t.groupIsSelected(i),t.initLoading=!1}else t.noGroups=!0})}},{key:"findInitiallySelectedGroupId",value:function(){var t=this;if(this.recentIds=(0,g.vL)("groups"),this.recentIds){var e=this.groups.find(function(e){return e.id===t.recentIds[0]});if(e)return e}return this.groups[0]}},{key:"groupIsSelected",value:function(t){var e=this;this.loading=!0,this.selectedGroup=t,this.groupsManager.getGroupRichMembersByIds(this.selectedGroup.id,[this.member.id],[h.r.MEMBER_DEF_GROUP_EXPIRATION]).subscribe(function(t){e.selectedMember=t[0],e.expirationAtt=e.selectedMember.memberAttributes.find(function(t){return"groupMembershipExpiration"===t.baseFriendlyName}),e.expirationAtt?(e.groupMembershipDataSource=new ct.by(["Status","Expiration"]),e.expiration=e.expirationAtt.value?e.expirationAtt.value:e.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES")):e.groupMembershipDataSource=new ct.by(["Status"]),e.loading=!1})}},{key:"changeExpiration",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=(0,g.kZ)();i.width="400px",i.data={memberId:this.member.id,groupId:this.selectedGroup.id,expirationAttr:this.expirationAtt,status:this.selectedMember.groupStatus,statusChanged:e},this.dialog.open(f.u3,i).afterClosed().subscribe(function(e){e&&t.groupIsSelected(t.selectedGroup)})}},{key:"changeStatus",value:function(){var t=this,e=(0,g.kZ)();e.width="600px",e.data={member:this.selectedMember,voId:this.vo.id,groupId:this.selectedGroup.id},this.dialog.open(f.pf,e).afterClosed().subscribe(function(e){e&&(t.selectedMember=e,t.changeExpiration(!0))})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(d.ff),I.Y36(m.x4),I.Y36(x.sK),I.Y36(v.uw))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-member-overview-groups"]],inputs:{vo:"vo",member:"member"},features:[I.TTD],decls:11,vars:7,consts:[[1,"mat-elevation-z3","groups-card","mt-4"],[1,"page-subtitle"],[1,"column-center"],[3,"groups","firstSelectedGroup","groupSelected",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[3,"groups","firstSelectedGroup","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(t,e){1&t&&(I.TgZ(0,"mat-card",0),I.TgZ(1,"mat-card-header"),I.TgZ(2,"mat-card-title"),I.TgZ(3,"h1",1),I._uU(4),I.ALo(5,"translate"),I.qZA(),I.qZA(),I.qZA(),I.TgZ(6,"mat-card-content",2),I.YNc(7,Et,1,2,"perun-web-apps-group-search-select",3),I.YNc(8,Zt,1,0,"mat-spinner",4),I.YNc(9,bt,3,3,"app-alert",5),I.YNc(10,yt,9,2,"div",6),I.qZA(),I.qZA()),2&t&&(I.xp6(4),I.Oqu(I.lcZ(5,5,"MEMBER_DETAIL.OVERVIEW.GROUP_MEMBERSHIP")),I.xp6(3),I.Q6J("ngIf",!e.initLoading),I.xp6(1),I.Q6J("ngIf",(e.loading||e.initLoading)&&!e.noGroups),I.xp6(1),I.Q6J("ngIf",e.noGroups),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[gt.a8,gt.dk,gt.n5,gt.dn,s.O5,ht.h,b.$g,ft.w,ct.BZ,ct.w1,ct.fO,ct.Dz,ct.nj,ct.ge,ct.ev,O.lW,_.Hw,ct.Gk],pipes:[x.X$,At.u,It.f,Tt.r,vt.M],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}"]}),t}(),Ut=function(){var t=function(){function t(){a(this,t)}return r(t,[{key:"transform",value:function(t){return(0,g.Cz)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=I.Yjl({name:"attributeFriendlyName",type:t,pure:!0}),t}(),qt=o(22196);function Pt(t,e){1&t&&I._UZ(0,"mat-spinner",2)}function wt(t,e){1&t&&I._UZ(0,"th",17)}function Gt(t,e){if(1&t&&(I.TgZ(0,"span"),I._uU(1),I.qZA()),2&t){var i=I.oxw().$implicit,n=I.oxw(2);I.xp6(1),I.hij(" ",n.attributes.get(i)[0],": ")}}function kt(t,e){if(1&t&&(I.TgZ(0,"span"),I._uU(1),I.ALo(2,"attributeFriendlyName"),I.qZA()),2&t){var i=I.oxw().$implicit;I.xp6(1),I.hij(" ",I.lcZ(2,1,i),": ")}}function Yt(t,e){if(1&t&&(I.TgZ(0,"td",18),I.YNc(1,Gt,2,1,"span",1),I.YNc(2,kt,3,3,"span",1),I.qZA()),2&t){var i=e.$implicit,n=I.oxw(2);I.xp6(1),I.Q6J("ngIf",null!==n.attributes.get(i)[0]),I.xp6(1),I.Q6J("ngIf",null===n.attributes.get(i)[0])}}function Jt(t,e){1&t&&I._UZ(0,"th",17)}function Vt(t,e){if(1&t&&(I.TgZ(0,"td",19),I._uU(1),I.qZA()),2&t){var i=e.$implicit,n=I.oxw(2);I.xp6(1),I.hij(" ",n.attributes.get(i)[1]," ")}}function Ft(t,e){1&t&&I._UZ(0,"tr",20)}function Qt(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"mat-card",5),I.TgZ(1,"mat-card-header"),I.TgZ(2,"mat-card-title"),I.TgZ(3,"h1",6),I._uU(4),I.ALo(5,"translate"),I.qZA(),I.qZA(),I.qZA(),I.TgZ(6,"mat-card-content",21),I.TgZ(7,"div",22),I.ALo(8,"translate"),I.TgZ(9,"button",23),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).requestPwdReset()}),I._uU(10),I.ALo(11,"translate"),I.qZA(),I.qZA(),I.qZA(),I.qZA()}if(2&t){var n=I.oxw(2);I.xp6(4),I.Oqu(I.lcZ(5,5,"MEMBER_DETAIL.OVERVIEW.RESET_PASSWORD")),I.xp6(3),I.Q6J("matTooltip",I.lcZ(8,7,"MEMBER_DETAIL.OVERVIEW.RESET_DISABLED"))("matTooltipDisabled",n.logins.length>0),I.xp6(2),I.Q6J("disabled",!n.logins.length),I.xp6(1),I.hij(" ",I.lcZ(11,9,"MEMBER_DETAIL.OVERVIEW.SEND_REQUEST")," ")}}function Bt(t,e){1&t&&(I.TgZ(0,"th",17),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.SPONSOR_NAME")))}function jt(t,e){if(1&t&&(I.TgZ(0,"td",33),I._uU(1),I.ALo(2,"userFullName"),I.qZA()),2&t){var i=e.$implicit;I.xp6(1),I.hij(" ",I.lcZ(2,1,i.user)," ")}}function Ht(t,e){1&t&&(I.TgZ(0,"th",17),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.EXPIRATION_TABLE")))}function zt(t,e){if(1&t&&(I.TgZ(0,"td",33),I.TgZ(1,"span",34),I._uU(2),I.ALo(3,"parseDate"),I.qZA(),I.qZA()),2&t){var i=e.$implicit;I.xp6(2),I.Oqu(I.lcZ(3,1,i.validityTo))}}function Xt(t,e){1&t&&I._UZ(0,"tr",35)}function $t(t,e){1&t&&I._UZ(0,"tr",20)}var Wt=function(){return["sponsors","expiration"]};function Kt(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"mat-card-content"),I.TgZ(1,"h6",26),I._uU(2),I.ALo(3,"translate"),I.TgZ(4,"button",27),I.NdJ("click",function(){return I.CHM(i),I.oxw(3).changeSponsors()}),I.TgZ(5,"mat-icon"),I._uU(6,"edit"),I.qZA(),I.qZA(),I.qZA(),I.TgZ(7,"table",28),I.ynx(8,29),I.YNc(9,Bt,3,3,"th",9),I.YNc(10,jt,3,3,"td",30),I.BQk(),I.ynx(11,31),I.YNc(12,Ht,3,3,"th",9),I.YNc(13,zt,4,3,"td",30),I.BQk(),I.YNc(14,Xt,1,0,"tr",32),I.YNc(15,$t,1,0,"tr",13),I.qZA(),I.qZA()}if(2&t){var n=I.oxw(3);I.xp6(2),I.hij(" ",I.lcZ(3,4,"MEMBER_DETAIL.OVERVIEW.SPONSORS"),": "),I.xp6(5),I.Q6J("dataSource",n.sponsorsDataSource),I.xp6(7),I.Q6J("matHeaderRowDef",I.DdM(6,Wt)),I.xp6(1),I.Q6J("matRowDefColumns",I.DdM(7,Wt))}}function te(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"mat-card",24),I.TgZ(2,"mat-card-header"),I.TgZ(3,"mat-card-title"),I.TgZ(4,"h1",6),I._uU(5),I.ALo(6,"translate"),I.qZA(),I.qZA(),I.TgZ(7,"mat-card-subtitle",25),I._uU(8),I.ALo(9,"translate"),I.qZA(),I.qZA(),I.YNc(10,Kt,16,8,"mat-card-content",1),I.qZA(),I.qZA()),2&t){var i=I.oxw(2);I.xp6(5),I.Oqu(I.lcZ(6,3,"MEMBER_DETAIL.OVERVIEW.SPONSORSHIP")),I.xp6(3),I.hij(" ",I.lcZ(9,5,"MEMBER_DETAIL.OVERVIEW.SPONSORED_BY")," "),I.xp6(2),I.Q6J("ngIf",0!==i.sponsors.length)}}function ee(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"div",3),I.TgZ(2,"div",4),I.TgZ(3,"mat-card",5),I.TgZ(4,"mat-card-header"),I.TgZ(5,"mat-card-title"),I.TgZ(6,"h1",6),I._uU(7),I.ALo(8,"translate"),I.qZA(),I.qZA(),I.qZA(),I.TgZ(9,"mat-card-content"),I.TgZ(10,"table",7),I.ynx(11,8),I.YNc(12,wt,1,0,"th",9),I.YNc(13,Yt,3,2,"td",10),I.BQk(),I.ynx(14,11),I.YNc(15,Jt,1,0,"th",9),I.YNc(16,Vt,2,1,"td",12),I.BQk(),I.YNc(17,Ft,1,0,"tr",13),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.TgZ(18,"div",4),I._UZ(19,"app-member-overview-membership",14),I._UZ(20,"app-member-overview-groups",14),I.qZA(),I.TgZ(21,"div",4),I.YNc(22,Qt,12,11,"mat-card",15),I.YNc(23,te,11,7,"div",1),I.qZA(),I.qZA(),I.TgZ(24,"div"),I._UZ(25,"perun-web-apps-menu-buttons-field",16),I.qZA(),I.qZA()),2&t){var i=I.oxw();I.xp6(7),I.Oqu(I.lcZ(8,11,"MEMBER_DETAIL.OVERVIEW.PERSONAL")),I.xp6(3),I.Q6J("dataSource",i.dataSource),I.xp6(7),I.Q6J("matRowDefColumns",i.displayedColumns),I.xp6(2),I.Q6J("member",i.member)("vo",i.vo),I.xp6(1),I.Q6J("member",i.member)("vo",i.vo),I.xp6(2),I.Q6J("ngIf",i.pwdResetAuth),I.xp6(1),I.Q6J("ngIf",i.member.sponsored),I.xp6(2),I.Q6J("items",i.navItems)("size","small")}}var ie=function(){var t=function(){function t(e,i,n,o,r,s,l){a(this,t),this.attributesManager=e,this.membersService=i,this.usersManager=n,this.route=o,this.dialog=r,this.authResolver=s,this.storeService=l,this.expiration="",this.logins=[],this.member=null,this.navItems=[],this.attributeNames=[],this.attributes=new Map,this.dataSource=new ct.by,this.displayedColumns=["attName","attValue"],this.sponsors=[],this.sponsorsDataSource=new ct.by,this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.parent.params.subscribe(function(e){var i=e.memberId;t.attributeNames=t.storeService.getMemberProfileAttributeNames(),t.membersService.getRichMemberWithAttributes(i).subscribe(function(e){var i=t.storeService.get("password_namespace_attributes").map(function(t){return(t=t.split(":"))[t.length-1]});t.attributesManager.getLogins(e.userId).subscribe(function(n){t.logins=n.filter(function(t){return i.includes(t.friendlyNameParameter)}),t.member=e,t.initAttributes(),t.dataSource=new ct.by(Array.from(t.attributes.keys())),t.vo={id:e.voId,beanName:"Vo"},t.pwdResetAuth=t.authResolver.isAuthorized("sendPasswordResetLinkEmail_Member_String_String_String_String_policy",[t.vo,t.member]),t.member.sponsored&&t.authResolver.isAuthorized("getSponsorsForMember_Member_List_policy",[t.member])?t.usersManager.getSponsorsForMember(t.member.id,null).subscribe(function(e){t.sponsors=e,t.sponsorsDataSource=new ct.by(t.sponsors),t.initNavItems(),t.refreshData()}):(t.initNavItems(),t.refreshData())},function(){return t.loading=!1})})})}},{key:"initAttributes",value:function(){var t=this;this.attributeNames.forEach(function(e){t.attributes.set(e,[null,"-"])}),this.filterAttributes()}},{key:"filterAttributes",value:function(){var t=this;null!==this.member.memberAttributes&&this.member.memberAttributes.forEach(function(e){t.attributeNames.includes(e.friendlyName)&&t.attributes.set(e.friendlyName,[e.displayName,e.value.toString()])}),null!==this.member.userAttributes&&this.member.userAttributes.forEach(function(e){t.attributeNames.includes(e.friendlyName)&&t.attributes.set(e.friendlyName,[e.displayName,e.value.toString()])})}},{key:"initNavItems",value:function(){this.navItems=[],this.authResolver.isAuthorized("getMemberGroups_Member_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-group",url:"/organizations/".concat(this.member.voId,"/members/").concat(this.member.id,"/groups"),label:"MENU_ITEMS.MEMBER.GROUPS",style:"member-btn"}),this.authResolver.isAuthorized("vo-getApplicationsForMember_Group_Member_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-applications",url:"/organizations/".concat(this.member.voId,"/members/").concat(this.member.id,"/applications"),label:"MENU_ITEMS.MEMBER.APPLICATIONS",style:"member-btn"}),this.authResolver.isAuthorized("getAssignedRichResources_Member_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-resource",url:"/organizations/".concat(this.member.voId,"/members/").concat(this.member.id,"/resources"),label:"MENU_ITEMS.MEMBER.RESOURCES",style:"member-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:"/organizations/".concat(this.vo.id,"/members/").concat(this.member.id,"/attributes"),label:"MENU_ITEMS.MEMBER.ATTRIBUTES",style:"member-btn"})}},{key:"refreshData",value:function(){var t=this;this.loading=!0,this.membersService.getRichMemberWithAttributes(this.member.id).subscribe(function(e){t.member=e,t.loading=!1},function(){return t.loading=!1})}},{key:"requestPwdReset",value:function(){var t=(0,g.kZ)();t.width="400px",t.data={userId:this.member.userId,memberId:this.member.id,logins:this.logins},this.dialog.open(pt.m,t)}},{key:"changeSponsors",value:function(){var t=this,e=(0,g.kZ)();e.width="650px",e.data={sponsors:this.sponsors,member:this.member,theme:"member-theme"},this.dialog.open(dt.H,e).afterClosed().subscribe(function(e){e&&(t.loading=!0,t.membersService.getRichMemberWithAttributes(t.member.id).subscribe(function(e){t.member=e,t.member.sponsored&&t.usersManager.getSponsorsForMember(t.member.id,null).subscribe(function(e){t.sponsors=e,t.sponsorsDataSource.data=t.sponsors}),t.loading=!1}))})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(d.H8),I.Y36(d.uq),I.Y36(d.Fv),I.Y36(l.gz),I.Y36(v.uw),I.Y36(m.x4),I.Y36(m.d6))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-member-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.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,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent",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(t,e){1&t&&(I.YNc(0,Pt,1,0,"mat-spinner",0),I.YNc(1,ee,26,13,"div",1)),2&t&&(I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[s.O5,b.$g,gt.a8,gt.dk,gt.n5,gt.dn,ct.BZ,ct.w1,ct.fO,ct.Dz,ct.nj,mt.b,Dt,X.L,ct.ge,ct.ev,ct.Gk,S.gM,O.lW,gt.$j,_.Hw,ct.as,ct.XQ],pipes:[x.X$,Ut,qt.d,vt.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}"]}),t}(),ne=o(81835);function ae(t,e){1&t&&I._UZ(0,"mat-spinner",2)}var oe=function(t,e){return["/organizations",t,"groups",e]};function re(t,e){if(1&t&&(I.TgZ(0,"p"),I._uU(1),I.ALo(2,"translate"),I.TgZ(3,"a",4),I._uU(4),I.qZA(),I.qZA()),2&t){var i=I.oxw(2);I.xp6(1),I.hij(" ",I.lcZ(2,3,"GROUP_DETAIL.SUBGROUP_INFO")," "),I.xp6(2),I.Q6J("routerLink",I.WLB(5,oe,i.parentGroup.voId,i.parentGroup.id)),I.xp6(1),I.hij(" ",i.parentGroup.name," ")}}function se(t,e){if(1&t&&(I.TgZ(0,"div"),I.YNc(1,re,5,8,"p",1),I._UZ(2,"perun-web-apps-menu-buttons-field",3),I.qZA()),2&t){var i=I.oxw();I.xp6(1),I.Q6J("ngIf",null!==i.parentGroup),I.xp6(1),I.Q6J("items",i.navItems)("size","small")}}var le=function(){var t=function(){function t(e,i,n,o,r,s,l,u){a(this,t),this.route=e,this.groupService=i,this.voService=n,this.guiAuthResolver=o,this.apiRequest=r,this.attributesManager=s,this.notificator=l,this.entityStorageService=u,this.navItems=[],this.parentGroup=null,this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){this.loading=!0,this.group=this.entityStorageService.getEntity(),null!==this.group.parentGroupId?this.loadParentGroupData():(this.parentGroup=null,this.initNavItems(),this.loading=!1)}},{key:"loadParentGroupData",value:function(){var t=this;this.groupService.getGroupById(this.group.parentGroupId).subscribe(function(e){t.parentGroup=e,t.initNavItems(),t.loading=!1},function(){return t.loading=!1})}},{key:"initNavItems",value:function(){var t=this;this.navItems=[],this.guiAuthResolver.isAuthorized("getCompleteRichMembers_Group_List_boolean_policy",[this.group])&&this.navItems.push({cssIcon:"perun-user",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.group.id,"/members"),label:"MENU_ITEMS.GROUP.MEMBERS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getAllRichSubGroupsWithAttributesByNames_Group_List_policy",[this.group])&&"members"!==this.group.name&&this.navItems.push({cssIcon:"perun-group",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.group.id,"/subgroups"),label:"MENU_ITEMS.GROUP.SUBGROUPS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getAssignedRichResources_Group_policy",[this.group])&&this.navItems.push({cssIcon:"perun-manage-facility",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.group.id,"/resources"),label:"MENU_ITEMS.GROUP.RESOURCES",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getApplicationsForGroup_Group_List_policy",[this.group])&&this.navItems.push({cssIcon:"perun-applications",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.group.id,"/applications"),label:"MENU_ITEMS.GROUP.APPLICATIONS",style:"group-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.group.id,"/attributes"),label:"MENU_ITEMS.GROUP.ATTRIBUTES",style:"group-btn"});var e=this.guiAuthResolver.isAuthorized("getGroupMembersCount_Group_policy",[this.group]),i=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByVoStatus_Group_policy",[this.group]),n=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByGroupStatus_Group_policy",[this.group]);e&&n&&i&&this.navItems.push({cssIcon:"perun-statistics",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.group.id,"/statistics"),label:"MENU_ITEMS.GROUP.STATISTICS",style:"group-btn"});var a=!1;this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,h.r.GROUP_DEF_EXPIRATION_RULES).subscribe(function(){a=!0},function(e){"HttpErrorResponse"!==e.name&&t.notificator.showRPCError(e)});var o=this.guiAuthResolver.isManagerPagePrivileged(this.group),r=this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group]),s=this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group]),l=this.guiAuthResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[this.group]);(a||o||r||s||l)&&this.navItems.push({cssIcon:"perun-settings2",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.group.id,"/settings"),label:"MENU_ITEMS.GROUP.SETTINGS",style:"group-btn"})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(l.gz),I.Y36(d.ff),I.Y36(d.YF),I.Y36(m.x4),I.Y36(m.F5),I.Y36(d.H8),I.Y36(m.V6),I.Y36(m.fb))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-group-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.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(t,e){1&t&&(I.YNc(0,ae,1,0,"mat-spinner",0),I.YNc(1,se,3,3,"div",1)),2&t&&(I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[s.O5,b.$g,X.L,l.yS],pipes:[x.X$],styles:[""]}),t}(),ue=o(82044),ce=function(){var t=function(){function t(e){a(this,t),this.route=e}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.parent.params.subscribe(function(e){t.voId=e.voId})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(l.gz))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-vo-resources"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&I._UZ(0,"app-animated-router-outlet")},directives:[N.A],styles:[""],data:{animation:[p.Ji]}}),t}(),pe=o(40659),de=function(){var t=function(){function t(e,i){var n=this;a(this,t),this.route=e,this.router=i,this.backButtonRegex=new RegExp("/organizations/\\d+/settings/\\w+$"),this.backButtonDisplayed=!1,this.currentUrl=i.url,this.backButtonDisplayed=this.backButtonRegex.test(this.currentUrl),i.events.subscribe(function(t){t instanceof l.m2&&(n.currentUrl=t.url,n.backButtonDisplayed=n.backButtonRegex.test(n.currentUrl))})}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.parent.params.subscribe(function(e){t.voId=e.voId})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(l.gz),I.Y36(l.F0))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-vo-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&I._UZ(0,"app-animated-router-outlet")},directives:[N.A],styles:[""],data:{animation:[p.Ji]}}),t}(),ge=o(541),me=function(){var t=function(){function t(e){a(this,t),this.entityStorageService=e}return r(t,[{key:"ngOnInit",value:function(){this.vo=this.entityStorageService.getEntity()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(m.fb))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-vo-attributes"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],[3,"entityId","entity"]],template:function(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I._UZ(4,"app-one-entity-attribute-page",1),I.qZA()),2&t&&(I.xp6(2),I.Oqu(I.lcZ(3,3,"VO_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),I.xp6(2),I.Q6J("entityId",e.vo.id)("entity","vo"))},directives:[ge.t],pipes:[x.X$],styles:[""]}),t}();function he(t,e){1&t&&I._UZ(0,"mat-spinner",2)}function fe(t,e){if(1&t&&(I.TgZ(0,"div"),I._UZ(1,"perun-web-apps-menu-buttons-field",3),I.qZA()),2&t){var i=I.oxw();I.xp6(1),I.Q6J("items",i.items)("size","small")}}var Ae=function(){var t=function(){function t(e,i,n,o,r){a(this,t),this.sideMenuService=e,this.voService=i,this.authResolver=n,this.router=o,this.entityStorageService=r,this.items=[],this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}},{key:"initItems",value:function(){this.items=[];var t=this.authResolver.isThisVoAdminOrObserver(this.vo.id);t&&this.items.push({cssIcon:"perun-group",url:"/organizations/".concat(this.vo.id,"/settings/expiration"),label:"MENU_ITEMS.VO.EXPIRATION",style:"vo-btn"}),this.authResolver.isManagerPagePrivileged(this.vo)&&this.items.push({cssIcon:"perun-manager",url:"/organizations/".concat(this.vo.id,"/settings/managers"),label:"MENU_ITEMS.VO.MANAGERS",style:"vo-btn"}),t&&this.items.push({cssIcon:"perun-application-form",url:"/organizations/".concat(this.vo.id,"/settings/applicationForm"),label:"MENU_ITEMS.VO.APPLICATION_FORM",style:"vo-btn"}),t&&this.items.push({cssIcon:"perun-notification",url:"/organizations/".concat(this.vo.id,"/settings/notifications"),label:"MENU_ITEMS.VO.NOTIFICATIONS",style:"vo-btn"}),this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[this.vo])&&this.items.push({cssIcon:"perun-external-sources",url:"/organizations/".concat(this.vo.id,"/settings/extsources"),label:"MENU_ITEMS.VO.EXTSOURCES",style:"vo-btn"})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(T.D),I.Y36(d.YF),I.Y36(m.x4),I.Y36(l.F0),I.Y36(m.fb))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-vo-settings-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.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(t,e){1&t&&(I.YNc(0,he,1,0,"mat-spinner",0),I.YNc(1,fe,2,2,"div",1)),2&t&&(I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[s.O5,b.$g,X.L],styles:[""]}),t}(),Ie=o(27521),Te=o(16073),ve=o(54810),Ee=["*"],Ze=function(){var t=function(){function t(){a(this,t),this.modelChange=new I.vpe}return r(t,[{key:"model",get:function(){return this.modelValue},set:function(t){this.modelValue=t}},{key:"ngAfterViewInit",value:function(){var t=this;this.toggle.change.subscribe(function(){return t.valueChanged()})}},{key:"valueChanged",value:function(){this.modelChange.emit(this.toggle.checked)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-settings-toggle-item"]],viewQuery:function(t,e){var i;(1&t&&I.Gf(Ie.Rr,7),2&t)&&(I.iGM(i=I.CRH())&&(e.toggle=i.first))},inputs:{title:"title",model:"model"},outputs:{modelChange:"modelChange"},ngContentSelectors:Ee,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(t,e){if(1&t){var i=I.EpF();I.F$t(),I.TgZ(0,"div",0),I.TgZ(1,"div",1),I.TgZ(2,"label",2),I.NdJ("click",function(){return I.CHM(i),I.MAs(5).toggle()||e.valueChanged()}),I._uU(3),I.qZA(),I.TgZ(4,"mat-slide-toggle",3,4),I.NdJ("ngModelChange",function(t){return e.modelValue=t}),I.qZA(),I.qZA(),I.TgZ(6,"div",5),I.Hsn(7),I.qZA(),I.qZA()}if(2&t){var n=I.MAs(5);I.xp6(2),I.ekj("unselected-setting",!n.checked),I.xp6(1),I.hij(" ",e.title," "),I.xp6(1),I.Q6J("ngModel",e.modelValue),I.xp6(2),I.Q6J("@openClose",n.checked?"open":"closed")}},directives:[Ie.Rr,Te.JJ,Te.On],styles:[""],data:{animation:[p.BQ]}}),t}(),be=o(66283),_e=o(4786),Se=o(80340),Ne=o(71522),Oe=o(29236);function xe(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",25),I.TgZ(1,"mat-form-field",26),I.TgZ(2,"input",20),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw(2).currentConfiguration.periodStatic=t}),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"mat-hint"),I._uU(5),I.ALo(6,"translate"),I.qZA(),I.qZA(),I.qZA()}if(2&t){var n=I.oxw(2);I.xp6(2),I.s9C("pattern",n.datePattern),I.s9C("placeholder",I.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),I.Q6J("ngModel",n.currentConfiguration.periodStatic),I.xp6(3),I.Oqu(I.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function Le(t,e){if(1&t&&(I.TgZ(0,"mat-option",27),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.Q6J("value",i.value),I.xp6(1),I.Oqu(i.text)}}function Ce(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",18),I.TgZ(1,"mat-form-field",19),I.TgZ(2,"input",20),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw(2).currentConfiguration.periodDynamic=t}),I.ALo(3,"translate"),I.qZA(),I.qZA(),I.TgZ(4,"mat-form-field"),I.TgZ(5,"mat-label"),I._uU(6),I.ALo(7,"translate"),I.qZA(),I.TgZ(8,"mat-select",8),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw(2).currentConfiguration.periodDynamicUnit=t}),I.YNc(9,Le,2,2,"mat-option",17),I.qZA(),I.qZA(),I.qZA()}if(2&t){var n=I.oxw(2);I.xp6(2),I.s9C("pattern",n.dynamicAmountPattern),I.s9C("placeholder",I.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),I.Q6J("ngModel",n.currentConfiguration.periodDynamic),I.xp6(4),I.Oqu(I.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),I.xp6(2),I.Q6J("ngModel",n.currentConfiguration.periodDynamicUnit),I.xp6(1),I.Q6J("ngForOf",n.amountOptions)}}function Re(t,e){if(1&t&&(I.TgZ(0,"mat-option",27),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.Q6J("value",i),I.xp6(1),I.Oqu(i)}}function Me(t,e){if(1&t&&(I.TgZ(0,"mat-option",27),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.Q6J("value",i),I.xp6(1),I.Oqu(i)}}function ye(t,e){if(1&t&&(I.TgZ(0,"mat-option",27),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.Q6J("value",i.value),I.xp6(1),I.Oqu(i.text)}}function De(t,e){if(1&t&&(I.TgZ(0,"mat-option",27),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.Q6J("value",i),I.xp6(1),I.hij(" ",i," ")}}function Ue(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",25),I.TgZ(1,"mat-form-field",26),I.TgZ(2,"input",20),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw(3).currentConfiguration.specialLoaPeriodStatic=t}),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"mat-hint"),I._uU(5),I.ALo(6,"translate"),I.qZA(),I.qZA(),I.qZA()}if(2&t){var n=I.oxw(3);I.xp6(2),I.s9C("pattern",n.datePattern),I.s9C("placeholder",I.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),I.Q6J("ngModel",n.currentConfiguration.specialLoaPeriodStatic),I.xp6(3),I.Oqu(I.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function qe(t,e){if(1&t&&(I.TgZ(0,"mat-option",27),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.Q6J("value",i.value),I.xp6(1),I.Oqu(i.text)}}function Pe(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",18),I.TgZ(1,"mat-form-field",19),I.TgZ(2,"input",20),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw(3).currentConfiguration.specialLoaPeriodDynamic=t}),I.ALo(3,"translate"),I.qZA(),I.qZA(),I.TgZ(4,"mat-form-field"),I.TgZ(5,"mat-label"),I._uU(6),I.ALo(7,"translate"),I.qZA(),I.TgZ(8,"mat-select",8),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw(3).currentConfiguration.specialLoaPeriodDynamicUnit=t}),I.YNc(9,qe,2,2,"mat-option",17),I.qZA(),I.qZA(),I.qZA()}if(2&t){var n=I.oxw(3);I.xp6(2),I.s9C("pattern",n.dynamicAmountPattern),I.s9C("placeholder",I.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),I.Q6J("ngModel",n.currentConfiguration.specialLoaPeriodDynamic),I.xp6(4),I.Oqu(I.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),I.xp6(2),I.Q6J("ngModel",n.currentConfiguration.specialLoaPeriodDynamicUnit),I.xp6(1),I.Q6J("ngForOf",n.amountOptions)}}function we(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",28),I.TgZ(1,"mat-radio-group",8),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw(2).currentConfiguration.specialLoaPeriodType=t}),I.TgZ(2,"mat-radio-button",9,29),I._uU(4),I.ALo(5,"translate"),I.qZA(),I.TgZ(6,"mat-radio-button",11,30),I._uU(8),I.ALo(9,"translate"),I.qZA(),I.qZA(),I.YNc(10,Ue,7,8,"div",13),I.YNc(11,Pe,10,10,"div",14),I.TgZ(12,"div"),I.TgZ(13,"mat-checkbox",31),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw(2).currentConfiguration.specialLoaPeriodExtendExpiredMembers=t}),I._uU(14),I.ALo(15,"translate"),I.qZA(),I.qZA(),I.qZA()}if(2&t){var n=I.MAs(3),a=I.MAs(7),o=I.oxw(2);I.xp6(1),I.Q6J("ngModel",o.currentConfiguration.specialLoaPeriodType),I.xp6(3),I.hij(" ",I.lcZ(5,7,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_STATIC")," "),I.xp6(4),I.hij(" ",I.lcZ(9,9,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_DYNAMIC")," "),I.xp6(2),I.Q6J("ngIf",n.checked),I.xp6(1),I.Q6J("ngIf",a.checked),I.xp6(2),I.Q6J("ngModel",o.currentConfiguration.specialLoaPeriodExtendExpiredMembers),I.xp6(1),I.hij(" ",I.lcZ(15,11,"VO_MANAGEMENT.SETTINGS.EXPIRATION.EXTEND_EXPIRED_MEMBERS_CHECKBOX")," ")}}function Ge(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",1),I.TgZ(1,"div",2),I.TgZ(2,"h1",3),I.NdJ("click",function(){return I.CHM(i),I.MAs(6).toggle()}),I._uU(3),I.ALo(4,"translate"),I.qZA(),I.TgZ(5,"mat-slide-toggle",4,5),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().currentConfiguration.enabled=t}),I.qZA(),I.qZA(),I.TgZ(7,"div"),I.TgZ(8,"label",6),I._uU(9),I.ALo(10,"translate"),I.qZA(),I.TgZ(11,"div",7),I.TgZ(12,"mat-radio-group",8),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().currentConfiguration.periodType=t}),I.TgZ(13,"mat-radio-button",9,10),I._uU(15),I.ALo(16,"translate"),I.qZA(),I.TgZ(17,"mat-radio-button",11,12),I._uU(19),I.ALo(20,"translate"),I.qZA(),I.qZA(),I.YNc(21,xe,7,8,"div",13),I.YNc(22,Ce,10,10,"div",14),I.qZA(),I.TgZ(23,"app-settings-toggle-item",15),I.NdJ("modelChange",function(t){return I.CHM(i),I.oxw().currentConfiguration.doNotAllowLoasEnabled=t}),I.ALo(24,"translate"),I.TgZ(25,"mat-form-field"),I.TgZ(26,"mat-placeholder"),I._uU(27),I.ALo(28,"translate"),I.qZA(),I.TgZ(29,"mat-select",16),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().currentConfiguration.doNotAllowLoas=t}),I.YNc(30,Re,2,2,"mat-option",17),I.qZA(),I.qZA(),I.qZA(),I.TgZ(31,"app-settings-toggle-item",15),I.NdJ("modelChange",function(t){return I.CHM(i),I.oxw().currentConfiguration.doNotExtendLoasEnabled=t}),I.ALo(32,"translate"),I.TgZ(33,"mat-form-field"),I.TgZ(34,"mat-placeholder"),I._uU(35),I.ALo(36,"translate"),I.qZA(),I.TgZ(37,"mat-select",16),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().currentConfiguration.doNotExtendLoas=t}),I.YNc(38,Me,2,2,"mat-option",17),I.qZA(),I.qZA(),I.qZA(),I.TgZ(39,"app-settings-toggle-item",15),I.NdJ("modelChange",function(t){return I.CHM(i),I.oxw().currentConfiguration.gracePeriodEnabled=t}),I.ALo(40,"translate"),I.TgZ(41,"div",18),I.TgZ(42,"mat-form-field",19),I.TgZ(43,"input",20),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().currentConfiguration.gracePeriod=t}),I.ALo(44,"translate"),I.qZA(),I.qZA(),I.TgZ(45,"mat-form-field"),I.TgZ(46,"mat-label"),I._uU(47),I.ALo(48,"translate"),I.qZA(),I.TgZ(49,"mat-select",8),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().currentConfiguration.gracePeriodUnit=t}),I.YNc(50,ye,2,2,"mat-option",17),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.TgZ(51,"app-settings-toggle-item",15),I.NdJ("modelChange",function(t){return I.CHM(i),I.oxw().currentConfiguration.specialLoaPeriodEnabled=t}),I.ALo(52,"translate"),I.TgZ(53,"div",7),I.TgZ(54,"div"),I.TgZ(55,"mat-form-field"),I.TgZ(56,"mat-label"),I._uU(57),I.ALo(58,"translate"),I.qZA(),I.TgZ(59,"mat-select",8,21),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().currentConfiguration.specialLoa=t}),I.YNc(61,De,2,2,"mat-option",17),I.qZA(),I.qZA(),I.YNc(62,we,16,13,"div",22),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.TgZ(63,"div",23),I.ALo(64,"translate"),I.TgZ(65,"button",24),I.NdJ("click",function(){return I.CHM(i),I.oxw().saveChanges()}),I._uU(66),I.ALo(67,"translate"),I.qZA(),I.qZA(),I.qZA()}if(2&t){var n=I.MAs(6),a=I.MAs(14),o=I.MAs(18),r=I.oxw();I.xp6(2),I.ekj("unselected-setting",!n.checked),I.xp6(1),I.hij(" ",I.lcZ(4,40,"VO_MANAGEMENT.SETTINGS.EXPIRATION.TITLE")," "),I.xp6(2),I.Q6J("ngModel",r.currentConfiguration.enabled),I.xp6(2),I.Q6J("@openClose",n.checked?"open":"closed"),I.xp6(2),I.Oqu(I.lcZ(10,42,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_LABEL")),I.xp6(3),I.Q6J("ngModel",r.currentConfiguration.periodType),I.xp6(3),I.hij(" ",I.lcZ(16,44,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_STATIC")," "),I.xp6(4),I.hij(" ",I.lcZ(20,46,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_DYNAMIC")," "),I.xp6(2),I.Q6J("ngIf",a.checked),I.xp6(1),I.Q6J("ngIf",o.checked),I.xp6(1),I.Q6J("model",r.currentConfiguration.doNotAllowLoasEnabled)("title",I.lcZ(24,48,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_LABEL")),I.xp6(4),I.Oqu(I.lcZ(28,50,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_SELECT")),I.xp6(2),I.Q6J("ngModel",r.currentConfiguration.doNotAllowLoas),I.xp6(1),I.Q6J("ngForOf",r.loas),I.xp6(1),I.Q6J("model",r.currentConfiguration.doNotExtendLoasEnabled)("title",I.lcZ(32,52,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_LABEL")),I.xp6(4),I.Oqu(I.lcZ(36,54,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_SELECT")),I.xp6(2),I.Q6J("ngModel",r.currentConfiguration.doNotExtendLoas),I.xp6(1),I.Q6J("ngForOf",r.loas),I.xp6(1),I.Q6J("model",r.currentConfiguration.gracePeriodEnabled)("title",I.lcZ(40,56,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_PERIOD_LABEL")),I.xp6(4),I.s9C("pattern",r.dynamicAmountPattern),I.s9C("placeholder",I.lcZ(44,58,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_VALUE")),I.Q6J("ngModel",r.currentConfiguration.gracePeriod),I.xp6(4),I.Oqu(I.lcZ(48,60,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_TYPE")),I.xp6(2),I.Q6J("ngModel",r.currentConfiguration.gracePeriodUnit),I.xp6(1),I.Q6J("ngForOf",r.amountOptions),I.xp6(1),I.Q6J("model",r.currentConfiguration.specialLoaPeriodEnabled)("title",I.lcZ(52,62,"VO_MANAGEMENT.SETTINGS.EXPIRATION.LOA_PERIOD_LABEL")),I.xp6(6),I.Oqu(I.lcZ(58,64,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SPECIAL_LOA_SELECT")),I.xp6(2),I.Q6J("ngModel",r.currentConfiguration.specialLoa),I.xp6(2),I.Q6J("ngForOf",r.loas),I.xp6(1),I.Q6J("ngIf",null!==r.currentConfiguration.specialLoa),I.xp6(1),I.s9C("matTooltip",I.lcZ(64,66,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERMISSION_DENIED_HINT")),I.Q6J("matTooltipDisabled",r.expirationAttribute.writable)("matTooltipPosition","above"),I.xp6(2),I.Q6J("disabled",!r.areChangesMade()||!r.expirationAttribute.writable),I.xp6(1),I.hij(" ",I.lcZ(67,68,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SAVE")," ")}}var ke=function(){var t=function(){function t(){a(this,t),this.saveAttribute=new I.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"}]}return r(t,[{key:"ngOnInit",value:function(){var t=new Map;this.loas.forEach(function(e){return t.set(e,"")}),this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value),this.currentConfiguration=this.unParseAttrValue(this.expirationAttribute.value)}},{key:"ngOnChanges",value:function(t){t.expirationAttribute&&(this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value))}},{key:"saveChanges",value:function(){this.saveAttribute.emit(this.parseExpirationRulesAttribute())}},{key:"areChangesMade",value:function(){var t=this.parseAttributeValueFromConfig(this.currentConfiguration),e=this.parseAttributeValueFromConfig(this.initialConfiguration);return null===e?null!==t:null===t||t.period!==e.period||t.gracePeriod!==e.gracePeriod||t.doNotExtendLoa!==e.doNotExtendLoa||t.doNotAllowLoa!==e.doNotAllowLoa||t.periodLoa!==e.periodLoa}},{key:"parseExpirationRulesAttribute",value:function(){return this.expirationAttribute.value=this.parseAttributeValueFromConfig(this.currentConfiguration),this.expirationAttribute}},{key:"parsePeriod",value:function(t){switch(t.periodType){case"dynamic":return this.parseDynamicPeriod(t);case"static":return this.parseStaticPeriod(t)}}},{key:"createInitConfiguration",value:function(){var t=new Map;return this.loas.forEach(function(e){return t.set(e,"")}),{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}}},{key:"unParseAttrValue",value:function(t){var e=this.createInitConfiguration();return null==t||(void 0!==t.period&&t.period.length>0&&(e=this.setPeriodValues(t,e)),void 0!==t.doNotAllowLoa&&t.doNotAllowLoa.length>0&&(e=this.setDoNotAllowLoasValues(t,e)),void 0!==t.doNotExtendLoa&&t.doNotExtendLoa.length>0&&(e=this.setDoNotExtendLoasValues(t,e)),void 0!==t.gracePeriod&&t.gracePeriod.length>0&&(e=this.setGracePeriodValues(t,e)),void 0!==t.periodLoa&&t.periodLoa.length>0&&(e=this.setSpecialLoaPeriodValues(t,e))),e}},{key:"setPeriodValues",value:function(t,e){if(e.enabled=!0,t.period.startsWith("+")){e.periodType="dynamic";var i=t.period.charAt(t.period.length-1);e.periodDynamic=t.period.substring(1,t.period.length-1),e.periodDynamicUnit=i}else e.periodType="static",e.periodStatic=t.period;return e}},{key:"setDoNotAllowLoasValues",value:function(t,e){var i=[];return t.doNotAllowLoa.split(",").forEach(function(t){return i.push(parseInt(t.trim(),10))}),e.doNotAllowLoas=i,i.length>0&&(e.doNotAllowLoasEnabled=!0),e}},{key:"setDoNotExtendLoasValues",value:function(t,e){var i=[];return t.doNotExtendLoa.split(",").forEach(function(t){return i.push(parseInt(t.trim(),10))}),e.doNotExtendLoas=i,i.length>0&&(e.doNotExtendLoasEnabled=!0),e}},{key:"setGracePeriodValues",value:function(t,e){e.gracePeriodEnabled=!0;var i=t.gracePeriod.charAt(t.gracePeriod.length-1);return e.gracePeriod=t.gracePeriod.substring(0,t.gracePeriod.length-1),e.gracePeriodUnit=i,e}},{key:"setSpecialLoaPeriodValues",value:function(t,e){e.specialLoa=parseInt(t.periodLoa.substring(0,t.periodLoa.indexOf("|")),10),e.specialLoaPeriodEnabled=!0;var i=t.periodLoa.substring(t.periodLoa.indexOf("|")+1,t.periodLoa.length);if(i.startsWith("+")){i.endsWith(".")&&(e.specialLoaPeriodExtendExpiredMembers=!0,i=i.substring(0,i.length-1)),e.specialLoaPeriodType="dynamic";var n=i.charAt(i.length-1);e.specialLoaPeriodDynamic=i.substring(1,i.length-1),e.specialLoaPeriodDynamicUnit=n}else i.endsWith("..")&&(e.specialLoaPeriodExtendExpiredMembers=!0,i=i.substring(0,i.length-1)),e.specialLoaPeriodType="static",e.specialLoaPeriodStatic=i;return e}},{key:"parseDynamicPeriod",value:function(t){return"+"+t.periodDynamic+t.periodDynamicUnit}},{key:"parseStaticPeriod",value:function(t){return t.periodStatic}},{key:"parseDontAllowLoas",value:function(t){if(!t.doNotAllowLoasEnabled)return null;var e="";return t.doNotAllowLoas.forEach(function(t){return e+=t+","}),e.length>0&&(e=e.substring(0,e.length-1)),e.length>0?e:null}},{key:"parseDontExtendLoas",value:function(t){if(!t.doNotExtendLoasEnabled)return null;var e="";return t.doNotExtendLoas.forEach(function(t){return e+=t+","}),e.length>0&&(e=e.substring(0,e.length-1)),e.length>0?e:null}},{key:"parseGracePeriod",value:function(t){return t.gracePeriodEnabled?t.gracePeriod+t.gracePeriodUnit:null}},{key:"parseSpecialLoaPeriod",value:function(t){if(!t.specialLoaPeriodEnabled)return null;var e=t.specialLoa+"|";switch(t.specialLoaPeriodType){case"static":e+=this.parseSpecialLoaPeriodStatic(t);break;case"dynamic":e+=this.parseSpecialLoaPeriodDynamic(t)}return null!=e&&t.specialLoaPeriodExtendExpiredMembers&&(e+="."),e}},{key:"parseSpecialLoaPeriodStatic",value:function(t){return t.specialLoaPeriodStatic}},{key:"parseSpecialLoaPeriodDynamic",value:function(t){return"+"+t.specialLoaPeriodDynamic+t.specialLoaPeriodDynamicUnit}},{key:"parseAttributeValueFromConfig",value:function(t){if(!t.enabled)return null;var e=this.parsePeriod(t),i=this.parseDontAllowLoas(t),n=this.parseDontExtendLoas(t),a=this.parseGracePeriod(t),o=this.parseSpecialLoaPeriod(t),r={period:e};return null!==n&&(r.doNotExtendLoa=n),null!==i&&(r.doNotAllowLoa=i),null!==a&&(r.gracePeriod=a),null!==o&&(r.periodLoa=o),r}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-expiration-settings"]],inputs:{expirationAttribute:"expirationAttribute"},outputs:{saveAttribute:"saveAttribute"},features:[I.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"],[3,"model","title","modelChange"],["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"],["mat-flat-button","","color","primary",1,"ml-auto",3,"disabled","click"],[1,"form-container"],[1,"date-field"],[3,"value"],[1,"mt-2"],["loaStaticRadioButton",""],["loaDynamicRadioButton",""],["color","primary",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&I.YNc(0,Ge,68,70,"div",0),2&t&&I.Q6J("ngIf",e.currentConfiguration)},directives:[s.O5,Ie.Rr,Te.JJ,Te.On,ve.VQ,ve.U0,Ze,be.KE,be.UY,_e.gD,s.sg,Se.Nt,Te.Fj,Te.c5,be.hX,S.gM,O.lW,be.bx,Ne.ey,Oe.oG],pipes:[x.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:[p.BQ]}}),t}();function Ye(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"app-expiration-settings",1),I.NdJ("saveAttribute",function(t){return I.CHM(i),I.oxw().saveExpirationAttribute(t)}),I.qZA()}if(2&t){var n=I.oxw();I.Q6J("expirationAttribute",n.expirationAttribute)}}var Je=function(){var t=function(){function t(e,i,n,o,r){var s=this;a(this,t),this.attributesManager=e,this.translate=i,this.notificator=n,this.apiRequest=o,this.entityStorageService=r,this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(function(t){return s.successMessage=t}),this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(function(t){return s.errorMessage=t})}return r(t,[{key:"ngOnInit",value:function(){this.vo=this.entityStorageService.getEntity(),this.loadSettings()}},{key:"loadSettings",value:function(){var t=this;this.attributesManager.getVoAttributeByName(this.vo.id,h.r.VO_DEF_EXPIRATION_RULES).subscribe(function(e){t.expirationAttribute=e})}},{key:"saveExpirationAttribute",value:function(t){var e=this;this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setVoAttribute({vo:this.vo.id,attribute:t}).subscribe(function(){e.loadSettings(),e.notificator.showSuccess(e.successMessage)},function(t){console.log(t),e.notificator.showRPCError(t.error,e.errorMessage)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(d.H8),I.Y36(x.sK),I.Y36(m.V6),I.Y36(m.F5),I.Y36(m.fb))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-vo-settings-expiration"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(t,e){1&t&&I.YNc(0,Ye,1,1,"app-expiration-settings",0),2&t&&I.Q6J("ngIf",void 0!==e.expirationAttribute)},directives:[s.O5,ke],styles:[""],data:{animation:[p.BQ]}}),t}(),Ve=o(62284),Fe=o(489),Qe=function(){var t=function(){function t(e,i,n,o){a(this,t),this.dialog=e,this.voService=i,this.guiAuthResolver=n,this.entityStorageService=o,this.availableRoles=[],this.selected="user",this.type="Vo",this.theme="vo-theme"}return r(t,[{key:"ngOnInit",value:function(){this.vo=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Vo")}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(v.uw),I.Y36(d.YF),I.Y36(m.x4),I.Y36(m.fb))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-vo-settings-managers"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:1,vars:4,consts:[[3,"complementaryObject","complementaryObjectType","theme","availableRoles"]],template:function(t,e){1&t&&I._UZ(0,"app-managers-page",0),2&t&&I.Q6J("complementaryObject",e.vo)("complementaryObjectType",e.type)("theme",e.theme)("availableRoles",e.availableRoles)},directives:[Fe.s],styles:[""]}),t}();function Be(t,e){1&t&&I._UZ(0,"mat-spinner",6)}function je(t,e){1&t&&(I.TgZ(0,"mat-option",18),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APPROVABLE_GROUP_APP_USER")))}function He(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div"),I._uU(1),I.ALo(2,"translate"),I.TgZ(3,"mat-form-field",8),I.TgZ(4,"textarea",19),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw(2).reason=t}),I.qZA(),I.qZA(),I.qZA()}if(2&t){var n=I.oxw(2);I.xp6(1),I.hij(" ",I.lcZ(2,2,"DIALOGS.RE_SEND_NOTIFICATION.REASON"),": "),I.xp6(3),I.Q6J("ngModel",n.reason)}}function ze(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",7),I._uU(1),I.ALo(2,"translate"),I.TgZ(3,"mat-form-field",8),I.TgZ(4,"mat-select",9),I.NdJ("valueChange",function(t){return I.CHM(i),I.oxw().mailType=t}),I.TgZ(5,"mat-option",10),I._uU(6),I.ALo(7,"translate"),I.qZA(),I.YNc(8,je,3,3,"mat-option",11),I.TgZ(9,"mat-option",12),I._uU(10),I.ALo(11,"translate"),I.qZA(),I.TgZ(12,"mat-option",13),I._uU(13),I.ALo(14,"translate"),I.qZA(),I.TgZ(15,"mat-option",14),I._uU(16),I.ALo(17,"translate"),I.qZA(),I.TgZ(18,"mat-option",15),I._uU(19),I.ALo(20,"translate"),I.qZA(),I.TgZ(21,"mat-option",16),I._uU(22),I.ALo(23,"translate"),I.qZA(),I.qZA(),I.qZA(),I.YNc(24,He,5,4,"div",17),I.qZA()}if(2&t){var n=I.oxw();I.xp6(1),I.hij(" ",I.lcZ(2,10,"DIALOGS.RE_SEND_NOTIFICATION.SELECT"),": "),I.xp6(3),I.Q6J("value",n.mailType),I.xp6(2),I.Oqu(I.lcZ(7,12,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_USER")),I.xp6(2),I.Q6J("ngIf",n.data.groupId),I.xp6(2),I.Oqu(I.lcZ(11,14,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_VO_ADMIN")),I.xp6(3),I.Oqu(I.lcZ(14,16,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.MAIL_VALIDATION")),I.xp6(3),I.Oqu(I.lcZ(17,18,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_APPROVED_USER")),I.xp6(3),I.Oqu(I.lcZ(20,20,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_REJECTED_USER")),I.xp6(3),I.Oqu(I.lcZ(23,22,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_ERROR_VO_ADMIN")),I.xp6(2),I.Q6J("ngIf","APP_REJECTED_USER"===n.mailType)}}var Xe=function(){var t=function(){function t(e,i,n,o,r){a(this,t),this.dialogRef=e,this.data=i,this.translate=n,this.notificator=o,this.registrarManager=r,this.mailType="APP_CREATED_USER",this.reason="",this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,"APP_REJECTED_USER"===this.mailType?this.registrarManager.sendMessage({appId:this.data.applicationId,mailType:this.mailType,reason:this.reason}).subscribe(function(){t.translate.get("DIALOGS.RE_SEND_NOTIFICATION.SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close()})},function(){return t.loading=!1}):this.registrarManager.sendMessage({appId:this.data.applicationId,mailType:this.mailType}).subscribe(function(){t.translate.get("DIALOGS.RE_SEND_NOTIFICATION.SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close()})},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(v.so),I.Y36(v.WI),I.Y36(x.sK),I.Y36(m.V6),I.Y36(d.tk))},t.\u0275cmp=I.Xpm({type:t,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"],["mat-flat-button","","color","accent",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(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.YNc(4,Be,1,0,"mat-spinner",1),I.YNc(5,ze,25,24,"div",2),I.TgZ(6,"div",3),I.TgZ(7,"button",4),I.NdJ("click",function(){return e.onCancel()}),I._uU(8),I.ALo(9,"translate"),I.qZA(),I.TgZ(10,"button",5),I.NdJ("click",function(){return e.onSubmit()}),I._uU(11),I.ALo(12,"translate"),I.qZA(),I.qZA(),I.qZA()),2&t&&(I.Gre("",e.theme,"}"),I.xp6(2),I.Oqu(I.lcZ(3,9,"DIALOGS.RE_SEND_NOTIFICATION.TITLE")),I.xp6(2),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading),I.xp6(3),I.hij(" ",I.lcZ(9,11,"DIALOGS.RE_SEND_NOTIFICATION.CANCEL")," "),I.xp6(2),I.Q6J("disabled",e.loading),I.xp6(1),I.hij(" ",I.lcZ(12,13,"DIALOGS.RE_SEND_NOTIFICATION.SEND")," "))},directives:[v.uh,s.O5,v.H8,O.lW,b.$g,v.xY,be.KE,_e.gD,Ne.ey,Se.Nt,Te.Fj,Te.JJ,Te.On],pipes:[x.X$],styles:[""]}),t}();function $e(t,e){1&t&&I._UZ(0,"mat-spinner",6)}function We(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",7),I._uU(1),I.ALo(2,"translate"),I.TgZ(3,"mat-form-field",8),I.TgZ(4,"textarea",9),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().reason=t}),I.qZA(),I.qZA(),I.qZA()}if(2&t){var n=I.oxw();I.xp6(1),I.hij(" ",I.lcZ(2,2,"DIALOGS.REJECT_APPLICATION.TEXT")," "),I.xp6(3),I.Q6J("ngModel",n.reason)}}var Ke=function(){var t=function(){function t(e,i,n,o,r){a(this,t),this.dialogRef=e,this.data=i,this.translate=n,this.notificator=o,this.registrarManager=r,this.reason="",this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.registrarManager.rejectApplication(this.data.applicationId,this.reason).subscribe(function(){t.translate.get("DIALOGS.REJECT_APPLICATION.SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close()})},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(v.so),I.Y36(v.WI),I.Y36(x.sK),I.Y36(m.V6),I.Y36(d.tk))},t.\u0275cmp=I.Xpm({type:t,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"w-100"],["matInput","",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.YNc(4,$e,1,0,"mat-spinner",1),I.YNc(5,We,5,4,"div",2),I.TgZ(6,"div",3),I.TgZ(7,"button",4),I.NdJ("click",function(){return e.onCancel()}),I._uU(8),I.ALo(9,"translate"),I.qZA(),I.TgZ(10,"button",5),I.NdJ("click",function(){return e.onSubmit()}),I._uU(11),I.ALo(12,"translate"),I.qZA(),I.qZA(),I.qZA()),2&t&&(I.Tol(e.theme),I.xp6(2),I.Oqu(I.lcZ(3,9,"DIALOGS.REJECT_APPLICATION.TITLE")),I.xp6(2),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading),I.xp6(3),I.hij(" ",I.lcZ(9,11,"DIALOGS.REJECT_APPLICATION.CANCEL")," "),I.xp6(2),I.Q6J("disabled",e.loading),I.xp6(1),I.hij(" ",I.lcZ(12,13,"DIALOGS.REJECT_APPLICATION.SUBMIT")," "))},directives:[v.uh,s.O5,v.H8,O.lW,b.$g,v.xY,be.KE,Se.Nt,Te.Fj,Te.JJ,Te.On],pipes:[x.X$],styles:[""]}),t}();function ti(t,e){1&t&&I._UZ(0,"mat-spinner",6)}function ei(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.INVALID_EMAIL")))}function ii(t,e){if(1&t&&(I.TgZ(0,"mat-form-field"),I.TgZ(1,"label"),I._UZ(2,"input",9),I.qZA(),I.YNc(3,ei,3,3,"mat-error",8),I.qZA()),2&t){var i=I.oxw(2);I.xp6(2),I.Q6J("formControl",i.emailControl),I.xp6(1),I.Q6J("ngIf",i.emailControl.invalid)}}function ni(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.EMPTY_INPUT")))}function ai(t,e){if(1&t&&(I.TgZ(0,"mat-form-field"),I._UZ(1,"input",10),I.YNc(2,ni,3,3,"mat-error",8),I.qZA()),2&t){var i=I.oxw(2);I.xp6(1),I.Q6J("formControl",i.inputControl),I.xp6(1),I.Q6J("ngIf",i.inputControl.invalid)}}function oi(t,e){if(1&t&&(I.TgZ(0,"div",7),I.YNc(1,ii,4,2,"mat-form-field",8),I.YNc(2,ai,3,2,"mat-form-field",8),I.qZA()),2&t){var i=I.oxw();I.xp6(1),I.Q6J("ngIf",null!==i.emailControl),I.xp6(1),I.Q6J("ngIf",null!==i.inputControl)}}var ri=function(){var t=function(){function t(e,i,n,o,r){a(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translateService=o,this.registrarService=r,this.loading=!1,this.inputControl=null,this.emailControl=null}return r(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.formItemData=this.data.formItemData,this.itemName=this.getLabel(this.formItemData.formItem),this.itemName.toLowerCase().includes("mail")?this.emailControl=new Te.NI(this.formItemData.value,[Te.kI.required,Te.kI.email]):this.inputControl=new Te.NI(this.formItemData.value,[Te.kI.required])}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;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(function(){t.notificator.showSuccess(t.translateService.instant("DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.SUCCESS")),t.dialogRef.close(!0)},function(){return t.loading=!1})}},{key:"getLabel",value:function(t){return null!==t.i18n.en.label&&0!==t.i18n.en.label.length?t.i18n.en.label:t.shortname}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(v.so),I.Y36(v.WI),I.Y36(m.V6),I.Y36(x.sK),I.Y36(d.tk))},t.\u0275cmp=I.Xpm({type:t,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"],["type","text","matInput","","required","",3,"formControl"]],template:function(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.YNc(4,ti,1,0,"mat-spinner",1),I.YNc(5,oi,3,2,"div",2),I.TgZ(6,"div",3),I.TgZ(7,"button",4),I.NdJ("click",function(){return e.onCancel()}),I._uU(8),I.ALo(9,"translate"),I.qZA(),I.TgZ(10,"button",5),I.NdJ("click",function(){return e.onSubmit()}),I._uU(11),I.ALo(12,"translate"),I.qZA(),I.qZA(),I.qZA()),2&t&&(I.Tol(e.theme),I.xp6(2),I.AsE("",I.lcZ(3,10,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.TITLE")," ",e.itemName,""),I.xp6(2),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading),I.xp6(3),I.hij(" ",I.lcZ(9,12,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.CANCEL")," "),I.xp6(2),I.Q6J("disabled",e.loading||null!==e.inputControl&&e.inputControl.invalid||null!==e.emailControl&&e.emailControl.invalid),I.xp6(1),I.hij(" ",I.lcZ(12,14,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.SUBMIT")," "))},directives:[v.uh,s.O5,v.H8,O.lW,b.$g,v.xY,be.KE,Se.Nt,Te.Fj,Te.Q7,Te.JJ,Te.oH,be.TO],pipes:[x.X$],styles:[""]}),t}(),si=o(27679),li=o(84650);function ui(t,e){if(1&t&&(I.TgZ(0,"span",5),I._uU(1),I.qZA()),2&t){var i=I.oxw();I.xp6(1),I.hij(" #",i.application.id," ")}}function ci(t,e){1&t&&I._UZ(0,"mat-spinner",6)}function pi(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",17),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).verifyApplication()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VERIFY")," "))}function di(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",17),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).approveApplication()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVE")," "))}function gi(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",18),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).rejectApplication()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECT")," "))}function mi(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",18),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).deleteApplication()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE")," "))}function hi(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",19),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).resendNotification()}),I.TgZ(1,"i",14),I._uU(2," mail_outline "),I.qZA(),I._uU(3),I.ALo(4,"translate"),I.qZA()}2&t&&(I.xp6(3),I.hij(" ",I.lcZ(4,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SEND_NOTIFICATION")," "))}function fi(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"span",10),I._uU(2),I.ALo(3,"translate"),I.qZA(),I._uU(4),I.qZA()),2&t){var i=I.oxw(2);I.xp6(2),I.Oqu(I.lcZ(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_VO")),I.xp6(2),I.hij(": ",i.application.vo.name," ")}}function Ai(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"span",10),I._uU(2),I.ALo(3,"translate"),I.qZA(),I._uU(4),I.TgZ(5,"span",10),I._uU(6),I.ALo(7,"translate"),I.qZA(),I._uU(8),I.qZA()),2&t){var i=I.oxw(2);I.xp6(2),I.Oqu(I.lcZ(3,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_GROUP")),I.xp6(2),I.hij(": ",i.application.group.name," "),I.xp6(2),I.Oqu(I.lcZ(7,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_IN_VO")),I.xp6(2),I.hij(": ",i.application.vo.name," ")}}function Ii(t,e){1&t&&(I.TgZ(0,"span"),I.TgZ(1,"mat-icon",20),I._uU(2,"arrow_right_alt"),I.qZA(),I._uU(3," Initial "),I.qZA())}function Ti(t,e){1&t&&(I.TgZ(0,"span"),I.TgZ(1,"mat-icon",20),I._uU(2,"restore"),I.qZA(),I._uU(3," Extension "),I.qZA())}function vi(t,e){1&t&&(I.TgZ(0,"span"),I.TgZ(1,"mat-icon",20),I._uU(2,"nat"),I.qZA(),I._uU(3," Embedded "),I.qZA())}function Ei(t,e){if(1&t&&(I.TgZ(0,"div",21),I.TgZ(1,"mat-card-title"),I.TgZ(2,"i",22),I._uU(3,"clear"),I.qZA(),I._uU(4),I.ALo(5,"translate"),I.qZA(),I.TgZ(6,"div"),I.TgZ(7,"span",10),I._uU(8),I.ALo(9,"translate"),I.qZA(),I._uU(10),I.ALo(11,"date"),I.qZA(),I.qZA()),2&t){var i=I.oxw(2);I.xp6(4),I.AsE(" ",I.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECTED_BY"),": ",i.getModifiedAtName(i.application.modifiedBy),""),I.xp6(4),I.Oqu(I.lcZ(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),I.xp6(2),I.hij(": ",I.xi3(11,8,i.application.modifiedAt,"d.M.y H:mm:ss"),"")}}function Zi(t,e){if(1&t&&(I.TgZ(0,"div",21),I.TgZ(1,"mat-card-title"),I.TgZ(2,"i",23),I._uU(3,"done"),I.qZA(),I._uU(4),I.ALo(5,"translate"),I.qZA(),I.TgZ(6,"div"),I.TgZ(7,"span",10),I._uU(8),I.ALo(9,"translate"),I.qZA(),I._uU(10),I.ALo(11,"date"),I.qZA(),I.qZA()),2&t){var i=I.oxw(2);I.xp6(4),I.AsE(" ",I.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVED_BY"),": ",i.getModifiedAtName(i.application.modifiedBy),""),I.xp6(4),I.Oqu(I.lcZ(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),I.xp6(2),I.hij(": ",I.xi3(11,8,i.application.modifiedAt,"d.M.y H:mm:ss"),"")}}function bi(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"span",10),I._uU(2),I.ALo(3,"translate"),I.qZA(),I._uU(4),I.qZA()),2&t){var i=I.oxw(2);I.xp6(2),I.Oqu(I.lcZ(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.MAIL")),I.xp6(2),I.hij(": ",i.userMail,"")}}function _i(t,e){1&t&&I._UZ(0,"th",32)}function Si(t,e){if(1&t&&(I.TgZ(0,"td",33),I._uU(1),I.qZA()),2&t){var i=e.$implicit,n=I.oxw(3);I.xp6(1),I.AsE("",n.getLabel(i.formItem),"",i.formItem.type.startsWith("FROM_FEDERATION")?"*":"","")}}function Ni(t,e){1&t&&I._UZ(0,"th",32)}function Oi(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",36),I.NdJ("click",function(){I.CHM(i);var t=I.oxw().$implicit;return I.oxw(3).editApplicationData(t)}),I.TgZ(1,"mat-icon"),I._uU(2,"edit"),I.qZA(),I.qZA()}}function xi(t,e){if(1&t&&(I.TgZ(0,"td",34),I._uU(1),I.YNc(2,Oi,3,0,"button",35),I.qZA()),2&t){var i=e.$implicit,n=I.oxw(3);I.xp6(1),I.hij(" ",i.value," "),I.xp6(1),I.Q6J("ngIf",!i.formItem.type.startsWith("FROM_FEDERATION")&&("NEW"===n.application.state||"VERIFIED"===n.application.state)&&"EMBEDDED_GROUP_APPLICATION"!==i.formItem.type)}}function Li(t,e){1&t&&I._UZ(0,"tr",37)}function Ci(t,e){1&t&&I._UZ(0,"tr",38)}function Ri(t,e){if(1&t&&(I.TgZ(0,"table",24),I.ynx(1,25),I.YNc(2,_i,1,0,"th",26),I.YNc(3,Si,2,2,"td",27),I.BQk(),I.ynx(4,28),I.YNc(5,Ni,1,0,"th",26),I.YNc(6,xi,3,2,"td",29),I.BQk(),I.YNc(7,Li,1,0,"tr",30),I.YNc(8,Ci,1,0,"tr",31),I.qZA()),2&t){var i=I.oxw(2);I.Q6J("dataSource",i.dataSource),I.xp6(7),I.Q6J("matHeaderRowDef",i.displayedColumns),I.xp6(1),I.Q6J("matRowDefColumns",i.displayedColumns)}}function Mi(t,e){1&t&&(I.TgZ(0,"div",39),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.hij("*",I.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VALUE_BY_EXTERNALS"),""))}function yi(t,e){if(1&t&&(I.TgZ(0,"div"),I.YNc(1,pi,3,3,"button",7),I.YNc(2,di,3,3,"button",7),I.YNc(3,gi,3,3,"button",8),I.YNc(4,mi,3,3,"button",8),I.YNc(5,hi,5,3,"button",9),I.YNc(6,fi,5,4,"div",4),I.YNc(7,Ai,9,8,"div",4),I.TgZ(8,"div"),I.TgZ(9,"span",10),I._uU(10),I.ALo(11,"translate"),I.qZA(),I._uU(12,": "),I._UZ(13,"span",11),I.ALo(14,"applicationState"),I.qZA(),I.TgZ(15,"div"),I.TgZ(16,"span",10),I._uU(17),I.ALo(18,"translate"),I.qZA(),I._uU(19,": "),I.YNc(20,Ii,4,0,"span",4),I.YNc(21,Ti,4,0,"span",4),I.YNc(22,vi,4,0,"span",4),I.qZA(),I.YNc(23,Ei,12,11,"div",12),I.YNc(24,Zi,12,11,"div",12),I.TgZ(25,"div",13),I.TgZ(26,"mat-card-title"),I.TgZ(27,"i",14),I._uU(28,"redo"),I.qZA(),I._uU(29),I.ALo(30,"translate"),I.ALo(31,"userFullName"),I.qZA(),I.YNc(32,bi,5,4,"div",4),I.TgZ(33,"div"),I.TgZ(34,"span",10),I._uU(35),I.ALo(36,"translate"),I.qZA(),I._uU(37),I.qZA(),I.TgZ(38,"div"),I.TgZ(39,"span",10),I._uU(40),I.ALo(41,"translate"),I.qZA(),I._uU(42),I.qZA(),I.TgZ(43,"div"),I.TgZ(44,"span",10),I._uU(45),I.ALo(46,"translate"),I.qZA(),I._uU(47),I.ALo(48,"date"),I.qZA(),I.YNc(49,Ri,9,3,"table",15),I.YNc(50,Mi,3,3,"div",16),I.qZA(),I.qZA()),2&t){var i=I.oxw();I.xp6(1),I.Q6J("ngIf","NEW"===i.application.state&&i.verifyAuth),I.xp6(1),I.Q6J("ngIf",("VERIFIED"===i.application.state||"NEW"===i.application.state)&&i.approveAuth),I.xp6(1),I.Q6J("ngIf",("VERIFIED"===i.application.state||"NEW"===i.application.state)&&i.rejectAuth),I.xp6(1),I.Q6J("ngIf",("REJECTED"===i.application.state||"NEW"===i.application.state)&&i.deleteAuth),I.xp6(1),I.Q6J("ngIf",i.resendAuth),I.xp6(1),I.Q6J("ngIf",!i.application.group),I.xp6(1),I.Q6J("ngIf",i.application.group),I.xp6(3),I.Oqu(I.lcZ(11,26,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.STATE")),I.xp6(3),I.Q6J("outerHTML",I.lcZ(14,28,i.application.state),I.oJD),I.xp6(4),I.Oqu(I.lcZ(18,30,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TYPE")),I.xp6(3),I.Q6J("ngIf","INITIAL"===i.application.type),I.xp6(1),I.Q6J("ngIf","EXTENSION"===i.application.type),I.xp6(1),I.Q6J("ngIf","EMBEDDED"===i.application.type),I.xp6(1),I.Q6J("ngIf","REJECTED"===i.application.state),I.xp6(1),I.Q6J("ngIf","APPROVED"===i.application.state),I.xp6(5),I.AsE(" ",I.lcZ(30,32,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SUBMITTED_BY"),": ",null===i.application.user?i.submittedBy():I.lcZ(31,34,i.application.user),""),I.xp6(3),I.Q6J("ngIf",i.userMail),I.xp6(3),I.Oqu(I.lcZ(36,36,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.EXT_SRC")),I.xp6(2),I.hij(": ",i.application.extSourceName,""),I.xp6(3),I.Oqu(I.lcZ(41,38,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.LOA")),I.xp6(2),I.hij(": ",i.application.extSourceLoa,""),I.xp6(3),I.Oqu(I.lcZ(46,40,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),I.xp6(2),I.hij(": ",I.xi3(48,42,i.application.createdAt,"d.M.y H:mm:ss"),""),I.xp6(2),I.Q6J("ngIf",0!==i.userData.length),I.xp6(1),I.Q6J("ngIf",0!==i.userData.length)}}var Di=function(){var t=function(){function t(e,i,n,o,r,s,l,u){a(this,t),this.registrarManager=e,this.dialog=i,this.translate=n,this.route=o,this.notificator=r,this.router=s,this.authResolver=l,this.usersService=u,this.userData=[],this.displayedColumns=["label","value"],this.loading=!0}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.params.subscribe(function(e){t.route.parent.params.subscribe(function(i){t.dialogTheme=i.groupId?"group-theme":i.memberId?"member-theme":"vo-theme",t.registrarManager.getApplicationById(e.applicationId).subscribe(function(e){t.application=e,"EMBEDDED"===t.application.type&&t.application.user?t.usersService.getRichUserWithAttributes(t.application.user.id).subscribe(function(e){var i,n=e.userAttributes.find(function(t){return"preferredMail"===t.friendlyName});t.userMail=null===(i=null==n?void 0:n.value)||void 0===i?void 0:i.toString(),t.setAuthRights(),t.loading=!1}):t.registrarManager.getApplicationDataById(t.application.id).subscribe(function(e){t.userData=e,t.dataSource=new ct.by(t.userData),t.setAuthRights(),t.loading=!1})})})})}},{key:"setAuthRights",value:function(){"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]))}},{key:"getLabel",value:function(t){return null!==t.i18n.en.label&&0!==t.i18n.en.label.length?t.i18n.en.label:t.shortname}},{key:"submittedBy",value:function(){return this.application.createdBy.slice(this.application.createdBy.lastIndexOf("=")+1,this.application.createdBy.length)}},{key:"getModifiedAtName",value:function(t){var e=t.lastIndexOf("/CN=");if(-1!==e){var i=t.slice(e+4,t.length).replace("/unstructuredName="," ");return-1!==i.lastIndexOf("\\")?t.slice(t.lastIndexOf("=")+1,t.length):i}return t}},{key:"resendNotification",value:function(){var t,e=(0,g.kZ)();e.width="500px",e.data={applicationId:this.application.id,theme:this.dialogTheme,groupId:null===(t=this.application.group)||void 0===t?void 0:t.id},this.dialog.open(Xe,e)}},{key:"deleteApplication",value:function(){var t=this,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"},this.dialog.open(f.Tf,e).afterClosed().subscribe(function(e){e&&t.registrarManager.deleteApplication(t.application.id).subscribe(function(){t.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_MESSAGE").subscribe(function(e){t.notificator.showSuccess(e),t.router.navigateByUrl(t.router.url.substring(0,t.router.url.lastIndexOf("/")))})})})}},{key:"rejectApplication",value:function(){var t=this,e=(0,g.kZ)();e.width="500px",e.data={applicationId:this.application.id,theme:this.dialogTheme},this.dialog.open(Ke,e).afterClosed().subscribe(function(){t.loading=!0,t.registrarManager.getApplicationById(t.application.id).subscribe(function(e){t.application=e,t.loading=!1},function(){return t.loading=!1})})}},{key:"approveApplication",value:function(){var t=this;this.loading=!0,this.registrarManager.approveApplication(this.application.id).subscribe(function(){t.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVE_MESSAGE").subscribe(function(e){t.notificator.showSuccess(e)}),t.registrarManager.getApplicationById(t.application.id).subscribe(function(e){t.application=e,t.loading=!1},function(){return t.loading=!1})},function(){return t.loading=!1})}},{key:"verifyApplication",value:function(){var t=this;this.registrarManager.verifyApplication(this.application.id).subscribe(function(){t.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VERIFY_MESSAGE").subscribe(function(e){t.notificator.showSuccess(e)}),t.loading=!0,t.registrarManager.getApplicationById(t.application.id).subscribe(function(e){t.application=e,t.loading=!1})})}},{key:"editApplicationData",value:function(t){var e=(0,g.kZ)();e.width="600px",e.data={theme:this.dialogTheme,applicationId:this.application.id,formItemData:t},this.dialog.open(ri,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(d.tk),I.Y36(v.uw),I.Y36(x.sK),I.Y36(l.gz),I.Y36(m.V6),I.Y36(l.F0),I.Y36(m.x4),I.Y36(d.Fv))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-application-detail"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.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"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"click",4,"ngIf"],["mat-stroked-button","","class","mr-2 mb-2",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"],["mat-table","","class","w-100",3,"dataSource",4,"ngIf"],["class","font-italic",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",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"],["mat-cell","","class","font-weight-bold",4,"matCellDef"],["matColumnDef","value"],["class","word-break-all","mat-cell","",4,"matCellDef"],["mat-header-row","","class","h-50",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"word-break-all"],["mat-icon-button","","aria-label","Edit Application data",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Edit Application data",3,"click"],["mat-header-row","",1,"h-50"],["mat-row",""],[1,"font-italic"]],template:function(t,e){1&t&&(I.TgZ(0,"h2",0),I._uU(1),I.ALo(2,"translate"),I.YNc(3,ui,2,1,"span",1),I.qZA(),I._UZ(4,"mat-divider",2),I.YNc(5,ci,1,0,"mat-spinner",3),I.YNc(6,yi,51,45,"div",4)),2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TITLE")," "),I.xp6(2),I.Q6J("ngIf",!!e.application),I.xp6(2),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[s.O5,si.d,b.$g,gt.n5,O.lW,_.Hw,ct.BZ,ct.w1,ct.fO,ct.Dz,ct.as,ct.nj,ct.ge,ct.ev,ct.XQ,ct.Gk],pipes:[x.X$,li.h,qt.d,s.uU],styles:[""]}),t}(),Ui=o(11930),qi=o(7433),Pi=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-group-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&I._UZ(0,"app-animated-router-outlet")},directives:[N.A],styles:[""],data:{animation:[p.Ji]}}),t}(),wi=o(55109),Gi=o(3417);function ki(t,e){1&t&&(I._uU(0),I.ALo(1,"translate")),2&t&&I.hij(" ",I.lcZ(1,1,"GROUP_DETAIL.ENTITY")," ")}function Yi(t,e){if(1&t&&I._UZ(0,"app-one-entity-attribute-page",4),2&t){var i=I.oxw();I.Q6J("entity","group")("entityId",i.group.id)}}function Ji(t,e){1&t&&(I._uU(0),I.ALo(1,"translate"),I.ALo(2,"translate")),2&t&&I.AsE(" ",I.lcZ(1,2,"GROUP_DETAIL.ENTITY")," - ",I.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function Vi(t,e){if(1&t&&I._UZ(0,"app-two-entity-attribute-page",5),2&t){var i=I.oxw(2);I.Q6J("firstEntity","group")("firstEntityId",i.group.id)("secondEntity","member")}}function Fi(t,e){1&t&&(I.TgZ(0,"mat-tab"),I.YNc(1,Ji,3,6,"ng-template",1),I.YNc(2,Vi,1,3,"ng-template",2),I.qZA())}function Qi(t,e){1&t&&(I._uU(0),I.ALo(1,"translate"),I.ALo(2,"translate")),2&t&&I.AsE(" ",I.lcZ(1,2,"GROUP_DETAIL.ENTITY")," - ",I.lcZ(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function Bi(t,e){if(1&t&&I._UZ(0,"app-two-entity-attribute-page",5),2&t){var i=I.oxw(2);I.Q6J("firstEntity","group")("firstEntityId",i.group.id)("secondEntity","resource")}}function ji(t,e){1&t&&(I.TgZ(0,"mat-tab"),I.YNc(1,Qi,3,6,"ng-template",1),I.YNc(2,Bi,1,3,"ng-template",2),I.qZA())}var Hi=function(){var t=function(){function t(e,i){a(this,t),this.authResolver=e,this.entityStorageService=i}return r(t,[{key:"ngOnInit",value:function(){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])}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(m.x4),I.Y36(m.fb))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-group-attributes"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:10,vars:5,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"mat-tab-group"),I.TgZ(5,"mat-tab"),I.YNc(6,ki,2,3,"ng-template",1),I.YNc(7,Yi,1,2,"ng-template",2),I.qZA(),I.YNc(8,Fi,3,0,"mat-tab",3),I.YNc(9,ji,3,0,"mat-tab",3),I.qZA(),I.qZA()),2&t&&(I.xp6(2),I.Oqu(I.lcZ(3,3,"GROUP_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),I.xp6(6),I.Q6J("ngIf",e.groupMemberAttAuth),I.xp6(1),I.Q6J("ngIf",e.groupResourceAttAuth))},directives:[wi.SP,wi.uX,wi.uD,wi.Vc,s.O5,ge.t,Gi.Y],pipes:[x.X$],styles:[""]}),t}();function zi(t,e){1&t&&I._UZ(0,"mat-spinner",2)}function Xi(t,e){if(1&t&&(I.TgZ(0,"div"),I._UZ(1,"perun-web-apps-menu-buttons-field",3),I.qZA()),2&t){var i=I.oxw();I.xp6(1),I.Q6J("items",i.items)("size","small")}}var $i=function(){var t=function(){function t(e,i,n,o,r,s,l,u){a(this,t),this.sideMenuService=e,this.groupService=i,this.router=n,this.guiAuthResolver=o,this.apiRequest=r,this.attributesManager=s,this.notificator=l,this.entityStorageService=u,this.items=[],this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}},{key:"initItems",value:function(){var t=this;this.items=[],this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,h.r.GROUP_DEF_EXPIRATION_RULES).subscribe(function(){t.items.push({cssIcon:"perun-group",url:"/organizations/".concat(t.group.voId,"/groups/").concat(t.group.id,"/settings/expiration"),label:"MENU_ITEMS.GROUP.EXPIRATION",style:"group-btn"})},function(e){"HttpErrorResponse"!==e.name&&t.notificator.showRPCError(e)}),this.guiAuthResolver.isManagerPagePrivileged(this.group)&&this.items.push({cssIcon:"perun-manager",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.group.id,"/settings/managers"),label:"MENU_ITEMS.GROUP.MANAGERS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group])&&this.items.push({cssIcon:"perun-application-form",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.group.id,"/settings/applicationForm"),label:"MENU_ITEMS.GROUP.APPLICATION_FORM",style:"group-btn"}),this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group])&&this.items.push({cssIcon:"perun-notification",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.group.id,"/settings/notifications"),label:"MENU_ITEMS.GROUP.NOTIFICATIONS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[this.group])&&this.items.push({cssIcon:"perun-group",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.group.id,"/settings/relations"),label:"MENU_ITEMS.GROUP.RELATIONS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getGroupExtSources_Group_policy",[this.group])&&this.items.push({cssIcon:"perun-external-sources",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.group.id,"/settings/extsources"),label:"MENU_ITEMS.GROUP.EXTSOURCES",style:"group-btn"})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(T.D),I.Y36(d.ff),I.Y36(l.F0),I.Y36(m.x4),I.Y36(m.F5),I.Y36(d.H8),I.Y36(m.V6),I.Y36(m.fb))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-group-settings-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.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(t,e){1&t&&(I.YNc(0,zi,1,0,"mat-spinner",0),I.YNc(1,Xi,2,2,"div",1)),2&t&&(I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[s.O5,b.$g,X.L],styles:[""]}),t}(),Wi=o(14527);function Ki(t,e){1&t&&I._UZ(0,"mat-spinner",3)}function tn(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",10),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).switchToInitial()}),I.TgZ(1,"i",11),I._uU(2,"arrow_right_alt"),I.qZA(),I._uU(3),I.ALo(4,"translate"),I.qZA()}2&t&&(I.xp6(3),I.hij(" ",I.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_INITIAL")," "))}function en(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",10),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).switchToExtension()}),I.TgZ(1,"i",11),I._uU(2,"cached"),I.qZA(),I._uU(3),I.ALo(4,"translate"),I.qZA()}2&t&&(I.xp6(3),I.hij(" ",I.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_EXTENSION")," "))}function nn(t,e){if(1&t&&(I.TgZ(0,"mat-option",12),I._uU(1),I.ALo(2,"translate"),I.ALo(3,"uppercase"),I.qZA()),2&t){var i=e.$implicit;I.Q6J("value",i),I.xp6(1),I.hij(" ",I.lcZ(2,2,I.lcZ(3,4,"SHARED_LIB.LANGUAGES."+i))," ")}}function an(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.disabledTooltip(i))}}function on(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.hiddenTooltip(i))}}function rn(t,e){if(1&t&&(I.TgZ(0,"div",16),I.TgZ(1,"div",17),I.TgZ(2,"span",18),I._uU(3),I.qZA(),I.TgZ(4,"div",18),I._UZ(5,"input",19),I.qZA(),I.qZA(),I.TgZ(6,"div",20),I.YNc(7,an,2,1,"mat-icon",21),I.YNc(8,on,2,1,"mat-icon",21),I.TgZ(9,"span",22),I._uU(10),I.qZA(),I.qZA(),I.qZA()),2&t){var i=I.oxw(2).$implicit,n=I.oxw(2);I.xp6(3),I.Oqu(n.getLocalizedLabel(i)),I.xp6(2),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(2),I.Q6J("ngIf","NEVER"!==i.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.hidden),I.xp6(2),I.Oqu(n.getLocalizedHint(i))}}function sn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.disabledTooltip(i))}}function ln(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.hiddenTooltip(i))}}function un(t,e){if(1&t&&(I.TgZ(0,"div",16),I.TgZ(1,"div",17),I.TgZ(2,"span",18),I._uU(3),I.qZA(),I.TgZ(4,"div",18),I._UZ(5,"input",24),I.qZA(),I.qZA(),I.TgZ(6,"div",20),I.YNc(7,sn,2,1,"mat-icon",21),I.YNc(8,ln,2,1,"mat-icon",21),I.TgZ(9,"span",22),I._uU(10),I.qZA(),I.qZA(),I.qZA()),2&t){var i=I.oxw(2).$implicit,n=I.oxw(2);I.xp6(3),I.Oqu(n.getLocalizedLabel(i)),I.xp6(4),I.Q6J("ngIf","NEVER"!==i.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.hidden),I.xp6(2),I.Oqu(n.getLocalizedHint(i))}}function cn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.disabledTooltip(i))}}function pn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.hiddenTooltip(i))}}function dn(t,e){if(1&t&&(I.TgZ(0,"div",16),I.TgZ(1,"div",17),I.TgZ(2,"span",18),I._uU(3),I.qZA(),I.TgZ(4,"div",18),I._UZ(5,"input",25),I._UZ(6,"br"),I._UZ(7,"input",19),I.qZA(),I.qZA(),I.TgZ(8,"div",20),I.YNc(9,cn,2,1,"mat-icon",21),I.YNc(10,pn,2,1,"mat-icon",21),I.TgZ(11,"span",22),I._uU(12),I.qZA(),I.qZA(),I.qZA()),2&t){var i=I.oxw(2).$implicit,n=I.oxw(2);I.xp6(3),I.Oqu(n.getLocalizedLabel(i)),I.xp6(2),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(2),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(2),I.Q6J("ngIf","NEVER"!==i.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.hidden),I.xp6(2),I.Oqu(n.getLocalizedHint(i))}}function gn(t,e){if(1&t&&(I.TgZ(0,"div"),I._UZ(1,"input",27),I._uU(2),I._UZ(3,"br"),I.qZA()),2&t){var i=e.$implicit,n=I.oxw(3).$implicit;I.xp6(1),I.Q6J("disabled","ALWAYS"===n.disabled),I.xp6(1),I.hij(" ",i,"")}}function mn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.disabledTooltip(i))}}function hn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.hiddenTooltip(i))}}function fn(t,e){if(1&t&&(I.TgZ(0,"div",16),I.TgZ(1,"div",17),I.TgZ(2,"span",18),I._uU(3),I.qZA(),I.TgZ(4,"form",18),I.YNc(5,gn,4,2,"div",9),I._UZ(6,"input",26),I.ALo(7,"translate"),I.qZA(),I.qZA(),I.TgZ(8,"div",20),I.YNc(9,mn,2,1,"mat-icon",21),I.YNc(10,hn,2,1,"mat-icon",21),I.TgZ(11,"span",22),I._uU(12),I.qZA(),I.qZA(),I.qZA()),2&t){var i=I.oxw(2).$implicit,n=I.oxw(2);I.xp6(3),I.Oqu(n.getLocalizedLabel(i)),I.xp6(2),I.Q6J("ngForOf",n.getLocalizedOptions(i)),I.xp6(1),I.s9C("value",I.lcZ(7,7,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION")),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(3),I.Q6J("ngIf","NEVER"!==i.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.hidden),I.xp6(2),I.Oqu(n.getLocalizedHint(i))}}function An(t,e){if(1&t&&(I.TgZ(0,"div"),I._UZ(1,"span",28),I.qZA()),2&t){var i=I.oxw(2).$implicit,n=I.oxw(2);I.xp6(1),I.Q6J("innerHTML",n.getLocalizedLabel(i),I.oJD)}}function In(t,e){if(1&t&&(I.TgZ(0,"option"),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.xp6(1),I.Oqu(i)}}function Tn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.disabledTooltip(i))}}function vn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.hiddenTooltip(i))}}function En(t,e){if(1&t&&(I.TgZ(0,"div",16),I.TgZ(1,"div",17),I.TgZ(2,"span",18),I._uU(3),I.qZA(),I.TgZ(4,"div",18),I.TgZ(5,"select",29),I.YNc(6,In,2,1,"option",9),I.qZA(),I.qZA(),I.qZA(),I.TgZ(7,"div",20),I.YNc(8,Tn,2,1,"mat-icon",21),I.YNc(9,vn,2,1,"mat-icon",21),I.TgZ(10,"span",22),I._uU(11),I.qZA(),I.qZA(),I.qZA()),2&t){var i=I.oxw(2).$implicit,n=I.oxw(2);I.xp6(3),I.Oqu(n.getLocalizedLabel(i)),I.xp6(2),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(1),I.Q6J("ngForOf",n.getLocalizedOptions(i)),I.xp6(2),I.Q6J("ngIf","NEVER"!==i.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.hidden),I.xp6(2),I.Oqu(n.getLocalizedHint(i))}}function Zn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.disabledTooltip(i))}}function bn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.hiddenTooltip(i))}}function _n(t,e){if(1&t&&(I.TgZ(0,"div",16),I.TgZ(1,"div",17),I.TgZ(2,"span",18),I._uU(3),I.qZA(),I._UZ(4,"textarea",30),I.qZA(),I.TgZ(5,"div",20),I.YNc(6,Zn,2,1,"mat-icon",21),I.YNc(7,bn,2,1,"mat-icon",21),I.TgZ(8,"span",22),I._uU(9),I.qZA(),I.qZA(),I.qZA()),2&t){var i=I.oxw(2).$implicit,n=I.oxw(2);I.xp6(3),I.Oqu(n.getLocalizedLabel(i)),I.xp6(1),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(2),I.Q6J("ngIf","NEVER"!==i.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.hidden),I.xp6(2),I.Oqu(n.getLocalizedHint(i))}}function Sn(t,e){if(1&t&&(I.TgZ(0,"option",35),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.xp6(1),I.Oqu(i)}}function Nn(t,e){1&t&&(I.TgZ(0,"div",36),I.TgZ(1,"form"),I._UZ(2,"input",37),I.qZA(),I.qZA())}function On(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.disabledTooltip(i))}}function xn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.hiddenTooltip(i))}}function Ln(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",16),I.TgZ(1,"div",17),I.TgZ(2,"span",18),I._uU(3),I.qZA(),I.TgZ(4,"div",18),I.TgZ(5,"select",31),I.NdJ("ngModelChange",function(t){I.CHM(i);var e=I.oxw(2).$implicit;return I.oxw(2).mapForCombobox[e.id]=t}),I.TgZ(6,"option",32),I._uU(7),I.ALo(8,"translate"),I.qZA(),I.YNc(9,Sn,2,1,"option",33),I.qZA(),I.YNc(10,Nn,3,0,"div",34),I.qZA(),I.qZA(),I.TgZ(11,"div",20),I.YNc(12,On,2,1,"mat-icon",21),I.YNc(13,xn,2,1,"mat-icon",21),I.TgZ(14,"span",22),I._uU(15),I.qZA(),I.qZA(),I.qZA()}if(2&t){var n=I.oxw(2).$implicit,a=I.oxw(2);I.xp6(3),I.Oqu(a.getLocalizedLabel(n)),I.xp6(2),I.Q6J("ngModel",a.mapForCombobox[n.id])("disabled","ALWAYS"===n.disabled),I.xp6(2),I.Oqu(I.lcZ(8,9,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")),I.xp6(2),I.Q6J("ngForOf",a.getLocalizedOptions(n)),I.xp6(1),I.Q6J("ngIf","true"===a.mapForCombobox[n.id]),I.xp6(2),I.Q6J("ngIf","NEVER"!==n.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==n.hidden),I.xp6(2),I.Oqu(a.getLocalizedHint(n))}}function Cn(t,e){if(1&t&&(I.TgZ(0,"div"),I._UZ(1,"input",38),I._uU(2),I.qZA()),2&t){var i=e.$implicit,n=I.oxw(3).$implicit;I.xp6(1),I.Q6J("disabled","ALWAYS"===n.disabled),I.xp6(1),I.hij(" ",i," ")}}function Rn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.disabledTooltip(i))}}function Mn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.hiddenTooltip(i))}}function yn(t,e){if(1&t&&(I.TgZ(0,"div",16),I.TgZ(1,"div",17),I.TgZ(2,"span",18),I._uU(3),I.qZA(),I.TgZ(4,"div",18),I.TgZ(5,"form",36),I.YNc(6,Cn,3,2,"div",9),I.qZA(),I.qZA(),I.qZA(),I.TgZ(7,"div",20),I.YNc(8,Rn,2,1,"mat-icon",21),I.YNc(9,Mn,2,1,"mat-icon",21),I.TgZ(10,"span",22),I._uU(11),I.qZA(),I.qZA(),I.qZA()),2&t){var i=I.oxw(2).$implicit,n=I.oxw(2);I.xp6(3),I.Oqu(n.getLocalizedLabel(i)),I.xp6(3),I.Q6J("ngForOf",n.getLocalizedOptions(i)),I.xp6(2),I.Q6J("ngIf","NEVER"!==i.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.hidden),I.xp6(2),I.Oqu(n.getLocalizedHint(i))}}function Dn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.disabledTooltip(i))}}function Un(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.hiddenTooltip(i))}}function qn(t,e){if(1&t&&(I.TgZ(0,"div",16),I.TgZ(1,"div",17),I.TgZ(2,"span",18),I._uU(3),I.qZA(),I.TgZ(4,"div",18),I.TgZ(5,"form",36),I._UZ(6,"input",38),I._uU(7," example group1 "),I._UZ(8,"br"),I._UZ(9,"input",38),I._uU(10," example group2 "),I._UZ(11,"br"),I._UZ(12,"input",38),I._uU(13," example group3 "),I.qZA(),I.qZA(),I.qZA(),I.TgZ(14,"div",20),I.YNc(15,Dn,2,1,"mat-icon",21),I.YNc(16,Un,2,1,"mat-icon",21),I.TgZ(17,"span",22),I._uU(18),I.qZA(),I.qZA(),I.qZA()),2&t){var i=I.oxw(2).$implicit,n=I.oxw(2);I.xp6(3),I.Oqu(n.getLocalizedLabel(i)),I.xp6(3),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(3),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(3),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(3),I.Q6J("ngIf","NEVER"!==i.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.hidden),I.xp6(2),I.Oqu(n.getLocalizedHint(i))}}function Pn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",41),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.disabledTooltip(i))}}function wn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",41),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.hiddenTooltip(i))}}function Gn(t,e){if(1&t&&(I.TgZ(0,"div",16),I.TgZ(1,"button",39),I._uU(2),I.qZA(),I.YNc(3,Pn,2,1,"mat-icon",40),I.YNc(4,wn,2,1,"mat-icon",40),I.qZA()),2&t){var i=I.oxw(2).$implicit,n=I.oxw(2);I.xp6(1),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(1),I.Oqu(n.getLocalizedLabel(i)),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.hidden)}}function kn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",41),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.disabledTooltip(i))}}function Yn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",41),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.hiddenTooltip(i))}}function Jn(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"button",39),I._uU(2),I.qZA(),I.YNc(3,kn,2,1,"mat-icon",40),I.YNc(4,Yn,2,1,"mat-icon",40),I.qZA()),2&t){var i=I.oxw(2).$implicit,n=I.oxw(2);I.xp6(1),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(1),I.Oqu(n.getLocalizedLabel(i)),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.hidden)}}function Vn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.disabledTooltip(i))}}function Fn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.hiddenTooltip(i))}}function Qn(t,e){if(1&t&&(I.TgZ(0,"div",16),I.TgZ(1,"div",17),I.TgZ(2,"span",18),I._uU(3),I.qZA(),I.TgZ(4,"div",18),I.TgZ(5,"select",42),I.TgZ(6,"option",43),I._uU(7),I.ALo(8,"translate"),I.qZA(),I.TgZ(9,"option",44),I._uU(10,"(GMT -12:00) Eniwetok, Kwajalein"),I.qZA(),I.TgZ(11,"option",45),I._uU(12,"(GMT -11:00) Midway Island, Samoa"),I.qZA(),I.TgZ(13,"option",46),I._uU(14,"(GMT -10:00) Hawaii"),I.qZA(),I.TgZ(15,"option",47),I._uU(16,"(GMT -9:30) Taiohae"),I.qZA(),I.TgZ(17,"option",48),I._uU(18,"(GMT -9:00) Alaska"),I.qZA(),I.TgZ(19,"option",49),I._uU(20,"(GMT -8:00) Pacific Time (US & Canada)"),I.qZA(),I.TgZ(21,"option",50),I._uU(22,"(GMT -7:00) Mountain Time (US & Canada)"),I.qZA(),I.TgZ(23,"option",51),I._uU(24,"(GMT -6:00) Central Time (US & Canada), Mexico City"),I.qZA(),I.TgZ(25,"option",52),I._uU(26,"(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima"),I.qZA(),I.TgZ(27,"option",53),I._uU(28,"(GMT -4:30) Caracas"),I.qZA(),I.TgZ(29,"option",54),I._uU(30,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),I.qZA(),I.TgZ(31,"option",55),I._uU(32,"(GMT -3:30) Newfoundland"),I.qZA(),I.TgZ(33,"option",56),I._uU(34,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),I.qZA(),I.TgZ(35,"option",57),I._uU(36,"(GMT -2:00) Mid-Atlantic"),I.qZA(),I.TgZ(37,"option",58),I._uU(38,"(GMT -1:00) Azores, Cape Verde Islands"),I.qZA(),I.TgZ(39,"option",59),I._uU(40,"(GMT) Western Europe Time, London, Lisbon, Casablanca"),I.qZA(),I.TgZ(41,"option",60),I._uU(42,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),I.qZA(),I.TgZ(43,"option",61),I._uU(44,"(GMT +2:00) Kaliningrad, South Africa"),I.qZA(),I.TgZ(45,"option",62),I._uU(46,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),I.qZA(),I.TgZ(47,"option",63),I._uU(48,"(GMT +3:30) Tehran"),I.qZA(),I.TgZ(49,"option",64),I._uU(50,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),I.qZA(),I.TgZ(51,"option",65),I._uU(52,"(GMT +4:30) Kabul"),I.qZA(),I.TgZ(53,"option",66),I._uU(54,"(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent"),I.qZA(),I.TgZ(55,"option",67),I._uU(56,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),I.qZA(),I.TgZ(57,"option",68),I._uU(58,"(GMT +5:45) Kathmandu, Pokhara"),I.qZA(),I.TgZ(59,"option",69),I._uU(60,"(GMT +6:00) Almaty, Dhaka, Colombo"),I.qZA(),I.TgZ(61,"option",70),I._uU(62,"(GMT +6:30) Yangon, Mandalay"),I.qZA(),I.TgZ(63,"option",71),I._uU(64,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),I.qZA(),I.TgZ(65,"option",72),I._uU(66,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),I.qZA(),I.TgZ(67,"option",73),I._uU(68,"(GMT +8:45) Eucla"),I.qZA(),I.TgZ(69,"option",74),I._uU(70,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),I.qZA(),I.TgZ(71,"option",75),I._uU(72,"(GMT +9:30) Adelaide, Darwin"),I.qZA(),I.TgZ(73,"option",76),I._uU(74,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),I.qZA(),I.TgZ(75,"option",77),I._uU(76,"(GMT +10:30) Lord Howe Island"),I.qZA(),I.TgZ(77,"option",78),I._uU(78,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),I.qZA(),I.TgZ(79,"option",79),I._uU(80,"(GMT +11:30) Norfolk Island"),I.qZA(),I.TgZ(81,"option",80),I._uU(82,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),I.qZA(),I.TgZ(83,"option",81),I._uU(84,"(GMT +12:45) Chatham Islands"),I.qZA(),I.TgZ(85,"option",82),I._uU(86,"(GMT +13:00) Apia, Nukualofa"),I.qZA(),I.TgZ(87,"option",83),I._uU(88,"(GMT +14:00) Line Islands, Tokelau"),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.TgZ(89,"div",20),I.YNc(90,Vn,2,1,"mat-icon",21),I.YNc(91,Fn,2,1,"mat-icon",21),I.TgZ(92,"span",22),I._uU(93),I.qZA(),I.qZA(),I.qZA()),2&t){var i=I.oxw(2).$implicit,n=I.oxw(2);I.xp6(3),I.Oqu(n.getLocalizedLabel(i)),I.xp6(2),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(2),I.hij(" ",I.lcZ(8,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")," "),I.xp6(83),I.Q6J("ngIf","NEVER"!==i.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.hidden),I.xp6(2),I.Oqu(n.getLocalizedHint(i))}}function Bn(t,e){if(1&t&&(I.TgZ(0,"div",14),I.YNc(1,rn,11,5,"div",15),I.YNc(2,un,11,4,"div",15),I.YNc(3,dn,13,6,"div",15),I.YNc(4,fn,13,9,"div",15),I.YNc(5,An,2,1,"div",2),I.YNc(6,En,12,6,"div",15),I.YNc(7,_n,10,5,"div",15),I.YNc(8,Ln,16,11,"div",15),I.YNc(9,yn,12,5,"div",15),I.YNc(10,qn,19,7,"div",15),I.YNc(11,Gn,5,4,"div",15),I.YNc(12,Jn,5,4,"div",2),I.YNc(13,Qn,94,8,"div",15),I.qZA()),2&t){var i=I.oxw().$implicit;I.xp6(1),I.Q6J("ngIf",("TEXTFIELD"===i.type||"VALIDATED_EMAIL"===i.type||"USERNAME"===i.type)&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf","FROM_FEDERATION_SHOW"===i.type&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf","PASSWORD"===i.type&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf","RADIO"===i.type&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf",("HEADING"===i.type||"HTML_COMMENT"===i.type)&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf","SELECTIONBOX"===i.type&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf","TEXTAREA"===i.type&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf","COMBOBOX"===i.type&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf","CHECKBOX"===i.type&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===i.type&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf","SUBMIT_BUTTON"===i.type&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf","AUTO_SUBMIT_BUTTON"===i.type&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf","TIMEZONE"===i.type&&"ALWAYS"!==i.hidden)}}function jn(t,e){if(1&t&&(I.TgZ(0,"div"),I.YNc(1,Bn,14,13,"div",13),I.qZA()),2&t){var i=e.$implicit,n=I.oxw(2);I.xp6(1),I.Q6J("ngIf",n.isValid(i))}}function Hn(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div"),I.TgZ(1,"div",4),I.YNc(2,tn,5,3,"button",5),I.YNc(3,en,5,3,"button",5),I.TgZ(4,"mat-form-field"),I.TgZ(5,"mat-label"),I._uU(6),I.ALo(7,"translate"),I.qZA(),I.TgZ(8,"mat-select",6),I.NdJ("valueChange",function(t){return I.CHM(i),I.oxw().currentLanguage=t}),I.YNc(9,nn,4,6,"mat-option",7),I.qZA(),I.qZA(),I.qZA(),I.TgZ(10,"div",8),I.YNc(11,jn,2,1,"div",9),I.qZA(),I.qZA()}if(2&t){var n=I.oxw();I.xp6(2),I.Q6J("ngIf",!n.initialPage),I.xp6(1),I.Q6J("ngIf",n.initialPage),I.xp6(3),I.Oqu(I.lcZ(7,6,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),I.xp6(2),I.Q6J("value",n.currentLanguage),I.xp6(1),I.Q6J("ngForOf",n.languages),I.xp6(2),I.Q6J("ngForOf",n.applicationFormItems)}}var zn=function(){var t=function(){function t(e,i,n){a(this,t),this.route=e,this.translate=i,this.store=n,this.loading=!0,this.applicationFormItems=[],this.currentLanguage="en",this.languages=["en"],this.initialPage=!0,this.mapForCombobox=new Map}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.languages=this.store.get("supported_languages"),this.route.queryParamMap.subscribe(function(e){t.applicationFormItems=JSON.parse(e.get("applicationFormItems")),t.loading=!1})}},{key:"switchToInitial",value:function(){this.initialPage=!0}},{key:"switchToExtension",value:function(){this.initialPage=!1}},{key:"getLocalizedOptions",value:function(t){if(t.i18n[this.currentLanguage]){var i=t.i18n[this.currentLanguage].options;if(null!==i&&""!==i){var n,a=[],o=e(i.split("|"));try{for(o.s();!(n=o.n()).done;){var r=n.value;a.push(r.split("#")[1])}}catch(s){o.e(s)}finally{o.f()}return a}}return[]}},{key:"isValid",value:function(t){if(t.forDelete)return!1;var i,n=e(t.applicationTypes);try{for(n.s();!(i=n.n()).done;){var a=i.value;if("INITIAL"===a&&this.initialPage)return!0;if("EXTENSION"===a&&!this.initialPage)return!0}}catch(o){n.e(o)}finally{n.f()}return!1}},{key:"disabledTooltip",value:function(t){var e,i,n;switch(t.disabled){case"ALWAYS":return this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.ALWAYS_DISABLED");case"IF_PREFILLED":return e=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.DISABLED_WHEN"),i=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(function(e){return e.id===t.disabledDependencyItemId}).shortname,n=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_PREFILLED"),"".concat(e," ").concat(i," ").concat(n);case"IF_EMPTY":return e=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.DISABLED_WHEN"),i=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(function(e){return e.id===t.disabledDependencyItemId}).shortname,n=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_EMPTY"),"".concat(e," ").concat(i," ").concat(n);default:return""}}},{key:"hiddenTooltip",value:function(t){var e,i,n;switch(t.hidden){case"ALWAYS":return this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.ALWAYS_HIDDEN");case"IF_PREFILLED":return e=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.HIDDEN_WHEN"),i=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(function(e){return e.id===t.hiddenDependencyItemId}).shortname,n=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_PREFILLED"),"".concat(e," ").concat(i," ").concat(n);case"IF_EMPTY":return e=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.HIDDEN_WHEN"),i=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(function(e){return e.id===t.hiddenDependencyItemId}).shortname,n=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_EMPTY"),"".concat(e," ").concat(i," ").concat(n);default:return""}}},{key:"getLocalizedLabel",value:function(t){return t.i18n[this.currentLanguage]&&t.i18n[this.currentLanguage].label?t.i18n[this.currentLanguage].label:t.shortname}},{key:"getLocalizedHint",value:function(t){return t.i18n[this.currentLanguage]?t.i18n[this.currentLanguage].help:""}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(l.gz),I.Y36(x.sK),I.Y36(m.d6))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-application-form-preview"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.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","disabled","",1,"w-100"],["type","text",1,"mb-1","w-100",3,"disabled"],["type","reset",3,"disabled","value"],["type","radio","name","temp",3,"disabled"],[3,"innerHTML"],[1,"w-100",3,"disabled"],[1,"w-50",3,"disabled"],[1,"w-100",3,"ngModel","disabled","ngModelChange"],["value","true","selected",""],["value","false",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["value","false"],[1,"w-100"],["type","text"],["type","checkbox",3,"disabled"],["mat-flat-button","","color","accent",3,"disabled"],["class","pointer left",3,"matTooltip",4,"ngIf"],[1,"pointer","left",3,"matTooltip"],["name","timezone_offset","id","timezone-offset",1,"w-100",3,"disabled"],["value","-12:00","selected","selected"],["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"]],template:function(t,e){1&t&&(I.TgZ(0,"h1",0),I._uU(1),I.ALo(2,"translate"),I.qZA(),I.YNc(3,Ki,1,0,"mat-spinner",1),I.YNc(4,Hn,12,8,"div",2)),2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,3,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.TITLE"),"\n"),I.xp6(2),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[s.O5,b.$g,be.KE,be.hX,_e.gD,s.sg,O.lW,Ne.ey,_.Hw,S.gM,Te._Y,Te.JL,Te.F,Te.YN,Te.Kr,Te.EJ,Te.JJ,Te.On],pipes:[x.X$,s.gd],styles:[".left[_ngcontent-%COMP%]{margin-left:10px}.pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t}();function Xn(t,e){1&t&&(I._uU(0),I.ALo(1,"translate")),2&t&&I.hij(" ",I.lcZ(1,1,"MEMBER_DETAIL.ENTITY")," ")}function $n(t,e){if(1&t&&I._UZ(0,"app-one-entity-attribute-page",5),2&t){var i=I.oxw();I.Q6J("entity","member")("entityId",i.memberId)}}function Wn(t,e){1&t&&(I._uU(0),I.ALo(1,"translate"),I.ALo(2,"translate")),2&t&&I.AsE(" ",I.lcZ(1,2,"MEMBER_DETAIL.ENTITY")," - ",I.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function Kn(t,e){if(1&t&&I._UZ(0,"app-two-entity-attribute-page",6),2&t){var i=I.oxw(2);I.Q6J("firstEntity","member")("firstEntityId",i.memberId)("secondEntity","group")}}function ta(t,e){1&t&&(I.TgZ(0,"mat-tab"),I.YNc(1,Wn,3,6,"ng-template",1),I.YNc(2,Kn,1,3,"ng-template",2),I.qZA())}function ea(t,e){1&t&&(I._uU(0),I.ALo(1,"translate"),I.ALo(2,"translate")),2&t&&I.AsE(" ",I.lcZ(1,2,"MEMBER_DETAIL.ENTITY")," - ",I.lcZ(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function ia(t,e){if(1&t&&I._UZ(0,"app-two-entity-attribute-page",6),2&t){var i=I.oxw(2);I.Q6J("firstEntity","member")("firstEntityId",i.memberId)("secondEntity","resource")}}function na(t,e){1&t&&(I.TgZ(0,"mat-tab"),I.YNc(1,ea,3,6,"ng-template",1),I.YNc(2,ia,1,3,"ng-template",2),I.qZA())}function aa(t,e){1&t&&(I._uU(0),I.ALo(1,"translate")),2&t&&I.hij(" ",I.lcZ(1,1,"ADMIN_USER.ENTITY")," ")}function oa(t,e){if(1&t&&I._UZ(0,"app-one-entity-attribute-page",7),2&t){var i=I.oxw();I.Q6J("entityId",i.member.userId)("entity","user")}}function ra(t,e){1&t&&(I._uU(0),I.ALo(1,"translate"),I.ALo(2,"translate")),2&t&&I.AsE(" ",I.lcZ(1,2,"ADMIN_USER.ENTITY")," - ",I.lcZ(2,4,"FACILITY_DETAIL.ENTITY")," ")}function sa(t,e){if(1&t&&I._UZ(0,"app-two-entity-attribute-page",6),2&t){var i=I.oxw(2);I.Q6J("firstEntity","user")("firstEntityId",i.member.userId)("secondEntity","facility")}}function la(t,e){1&t&&(I.TgZ(0,"mat-tab"),I.YNc(1,ra,3,6,"ng-template",1),I.YNc(2,sa,1,3,"ng-template",2),I.qZA())}var ua=function(){var t=function(){function t(e,i,n){a(this,t),this.route=e,this.authResolver=i,this.memberManager=n}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.parent.params.subscribe(function(e){t.memberId=e.memberId,t.memberManager.getMemberById(t.memberId).subscribe(function(e){t.member=e,t.memberGroupAttAuth=t.authResolver.isAuthorized("getMemberGroups_Member_policy",[t.member]),t.memberResourceAttAuth=t.authResolver.isAuthorized("getAssignedResourcesWithStatus_Member_policy",[t.member]),t.userFacilityAttAuth=t.authResolver.isAuthorized("getAssignedFacilities_User_policy",[{beanName:"User",id:e.userId}])})})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(l.gz),I.Y36(m.x4),I.Y36(d.uq))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-member-attributes"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:14,vars:6,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[1,"mb-2"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity"],[3,"entityId","entity"]],template:function(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"mat-tab-group"),I.TgZ(5,"mat-tab"),I.YNc(6,Xn,2,3,"ng-template",1),I.YNc(7,$n,1,2,"ng-template",2),I.qZA(),I.YNc(8,ta,3,0,"mat-tab",3),I.YNc(9,na,3,0,"mat-tab",3),I.TgZ(10,"mat-tab",4),I.YNc(11,aa,2,3,"ng-template",1),I.YNc(12,oa,1,2,"ng-template",2),I.qZA(),I.YNc(13,la,3,0,"mat-tab",3),I.qZA(),I.qZA()),2&t&&(I.xp6(2),I.Oqu(I.lcZ(3,4,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),I.xp6(6),I.Q6J("ngIf",e.memberGroupAttAuth),I.xp6(1),I.Q6J("ngIf",e.memberResourceAttAuth),I.xp6(4),I.Q6J("ngIf",e.userFacilityAttAuth))},directives:[wi.SP,wi.uX,wi.uD,wi.Vc,s.O5,ge.t,Gi.Y],pipes:[x.X$],styles:[""]}),t}(),ca=function(){var t=function(){function t(e,i,n,o){a(this,t),this.sideMenuService=e,this.voService=i,this.authResolver=n,this.entityStorageService=o,this.items=[]}return r(t,[{key:"ngOnInit",value:function(){this.vo=this.entityStorageService.getEntity(),this.initItems()}},{key:"initItems",value:function(){this.items=[{cssIcon:"perun-resource",url:"/organizations/".concat(this.vo.id,"/resources/preview"),label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",style:"vo-btn"}],this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[this.vo])&&this.items.push({cssIcon:"perun-resource-tags",url:"/organizations/".concat(this.vo.id,"/resources/tags"),label:"MENU_ITEMS.VO.RESOURCE_TAGS",style:"vo-btn"}),this.authResolver.isAuthorized("getResourcesState_Vo_policy",[this.vo])&&this.items.push({cssIcon:"perun-resources-state",url:"/organizations/".concat(this.vo.id,"/resources/states"),label:"MENU_ITEMS.VO.RESOURCE_STATES",style:"vo-btn"})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(T.D),I.Y36(d.YF),I.Y36(m.x4),I.Y36(m.fb))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-vo-resources-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(t,e){1&t&&(I.TgZ(0,"div"),I._UZ(1,"perun-web-apps-menu-buttons-field",0),I.qZA()),2&t&&(I.xp6(1),I.Q6J("items",e.items)("size","small"))},directives:[X.L],styles:[""]}),t}(),pa=o(88227),da=o(97397),ga=o(4230),ma=o(24923);function ha(t,e){1&t&&I._UZ(0,"mat-spinner",6)}function fa(t,e){1&t&&I._UZ(0,"th",15)}function Aa(t,e){if(1&t&&(I.TgZ(0,"td",16),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.xp6(1),I.hij(" ",i.tagName," ")}}function Ia(t,e){1&t&&I._UZ(0,"tr",17)}function Ta(t,e){1&t&&I._UZ(0,"tr",18)}function va(t,e){if(1&t&&(I.TgZ(0,"div",7),I.TgZ(1,"p"),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"div",8),I._uU(5),I.ALo(6,"translate"),I.qZA(),I.TgZ(7,"table",9),I.ynx(8,10),I.YNc(9,fa,1,0,"th",11),I.YNc(10,Aa,2,1,"td",12),I.BQk(),I.YNc(11,Ia,1,0,"tr",13),I.YNc(12,Ta,1,0,"tr",14),I.qZA(),I.qZA()),2&t){var i=I.oxw();I.xp6(2),I.hij(" ",I.lcZ(3,5,"DIALOGS.DELETE_RESOURCE_TAG.DESCRIPTION")," "),I.xp6(3),I.hij(" ",I.lcZ(6,7,"DIALOGS.DELETE_RESOURCE_TAG.ASK")," "),I.xp6(2),I.Q6J("dataSource",i.dataSource),I.xp6(4),I.Q6J("matHeaderRowDef",i.displayedColumns),I.xp6(1),I.Q6J("matRowDefColumns",i.displayedColumns)}}var Ea=function(){var t=function(){function t(e,i,n){a(this,t),this.dialogRef=e,this.data=i,this.resourceManager=n,this.displayedColumns=["name"],this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new ct.by(this.data.tagsForDelete)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0;var i,n=e(this.data.tagsForDelete);try{for(n.s();!(i=n.n()).done;){var a=i.value;this.resourceManager.deleteResourceTag({resourceTag:a}).subscribe(function(){t.dialogRef.close(!0)},function(){return t.dialogRef.close(!0)})}}catch(o){n.e(o)}finally{n.f()}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(v.so),I.Y36(v.WI),I.Y36(d.xk))},t.\u0275cmp=I.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.YNc(4,ha,1,0,"mat-spinner",1),I.YNc(5,va,13,9,"div",2),I.TgZ(6,"div",3),I.TgZ(7,"button",4),I.NdJ("click",function(){return e.onCancel()}),I._uU(8),I.ALo(9,"translate"),I.qZA(),I.TgZ(10,"button",5),I.NdJ("click",function(){return e.onSubmit()}),I._uU(11),I.ALo(12,"translate"),I.qZA(),I.qZA(),I.qZA()),2&t&&(I.Tol(e.theme),I.xp6(2),I.Oqu(I.lcZ(3,9,"DIALOGS.DELETE_RESOURCE_TAG.TITLE")),I.xp6(2),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading),I.xp6(3),I.hij(" ",I.lcZ(9,11,"DIALOGS.DELETE_RESOURCE_TAG.CANCEL")," "),I.xp6(2),I.Q6J("disabled",e.loading),I.xp6(1),I.hij(" ",I.lcZ(12,13,"DIALOGS.DELETE_RESOURCE_TAG.SUBMIT")," "))},directives:[v.uh,s.O5,v.H8,O.lW,b.$g,v.xY,ct.BZ,ct.w1,ct.fO,ct.Dz,ct.as,ct.nj,ct.ge,ct.ev,ct.XQ,ct.Gk],pipes:[x.X$],styles:[""]}),t}(),Za=o(60611),ba=o(59403),_a=o(19139),Sa=o(4196);function Na(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",7),I.NdJ("click",function(){return I.CHM(i),I.oxw().create()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function Oa(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",8),I.NdJ("click",function(){return I.CHM(i),I.oxw().deleteTag()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}if(2&t){var n=I.oxw();I.Q6J("disabled",0===n.selection.selected.length),I.xp6(1),I.hij(" ",I.lcZ(2,2,"VO_DETAIL.RESOURCES.TAGS.DELETE_BUTTON"),"\n")}}function xa(t,e){1&t&&I._UZ(0,"mat-spinner",9)}function La(t,e){if(1&t&&I._UZ(0,"app-resources-tags-list",10),2&t){var i=I.oxw();I.Q6J("selection",i.selection)("tableId",i.tableId)("resourceTags",i.resourceTag)("filterValue",i.filterValue)("displayedColumns",i.displayedColumns)("entity","vo")}}var Ca=function(){var t=function(){function t(e,i,n,o,r,s){a(this,t),this.resourceManager=e,this.dialog=i,this.notificator=n,this.translator=o,this.authResolver=r,this.entityStorageService=s,this.loading=!1,this.resourceTag=[],this.selection=new ga.Ov(!0,[]),this.tableId=Za.O7,this.displayedColumns=[]}return r(t,[{key:"ngOnInit",value:function(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.updateData()}},{key:"deleteTag",value:function(){var t=this,e=(0,g.kZ)();e.width="450px",e.data={tagsForDelete:this.selection.selected,theme:"vo-theme"},this.dialog.open(Ea,e).afterClosed().subscribe(function(e){e&&(t.translator.get("VO_DETAIL.RESOURCES.TAGS.DELETE_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e)}),t.updateData())})}},{key:"create",value:function(){var t=this,e=(0,g.kZ)();e.width="450px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(ma.p,e).afterClosed().subscribe(function(e){e&&(t.translator.get("VO_DETAIL.RESOURCES.TAGS.CREATE_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e)}),t.updateData())})}},{key:"updateData",value:function(){var t=this;this.loading=!0,this.selection.clear(),this.resourceManager.getAllResourcesTagsForVo(this.vo.id).subscribe(function(e){t.resourceTag=e,t.selection.clear(),t.setAuthRights(),t.loading=!1})}},{key:"setAuthRights",value:function(){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")}},{key:"applyFilter",value:function(t){this.filterValue=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(d.xk),I.Y36(v.uw),I.Y36(m.V6),I.Y36(x.sK),I.Y36(m.x4),I.Y36(m.fb))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-vo-resources-tags"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["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,"selection","tableId","resourceTags","filterValue","displayedColumns","entity",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,"selection","tableId","resourceTags","filterValue","displayedColumns","entity"]],template:function(t,e){1&t&&(I.TgZ(0,"h1",0),I._uU(1),I.ALo(2,"translate"),I.qZA(),I.TgZ(3,"perun-web-apps-refresh-button",1),I.NdJ("refresh",function(){return e.updateData()}),I.qZA(),I.YNc(4,Na,3,3,"button",2),I.YNc(5,Oa,3,4,"button",3),I.TgZ(6,"perun-web-apps-immediate-filter",4),I.NdJ("filter",function(t){return e.applyFilter(t)}),I.qZA(),I.YNc(7,xa,1,0,"mat-spinner",5),I.YNc(8,La,1,6,"app-resources-tags-list",6)),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,6,"VO_DETAIL.RESOURCES.TAGS.TITLE")),I.xp6(3),I.Q6J("ngIf",e.createAuth),I.xp6(1),I.Q6J("ngIf",e.deleteAuth),I.xp6(1),I.Q6J("placeholder","VO_DETAIL.RESOURCES.TAGS.SEARCH"),I.xp6(1),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[ba.t,s.O5,_a.L,O.lW,b.$g,Sa.o],pipes:[x.X$],styles:[""]}),t}();function Ra(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"app-expiration-settings",1),I.NdJ("saveAttribute",function(t){return I.CHM(i),I.oxw().saveExpirationAttribute(t)}),I.qZA()}if(2&t){var n=I.oxw();I.Q6J("expirationAttribute",n.expirationAttribute)}}var Ma=function(){var t=function(){function t(e,i,n,o,r){var s=this;a(this,t),this.attributesManager=e,this.translate=i,this.notificator=n,this.apiRequest=o,this.entityStorageService=r,this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(function(t){return s.successMessage=t}),this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(function(t){return s.errorMessage=t})}return r(t,[{key:"ngOnInit",value:function(){this.group=this.entityStorageService.getEntity(),this.loadSettings()}},{key:"loadSettings",value:function(){var t=this;this.attributesManager.getGroupAttributeByName(this.group.id,h.r.GROUP_DEF_EXPIRATION_RULES).subscribe(function(e){t.expirationAttribute=e})}},{key:"saveExpirationAttribute",value:function(t){var e=this;this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setGroupAttribute({group:this.group.id,attribute:t}).subscribe(function(){e.loadSettings(),e.notificator.showSuccess(e.successMessage)},function(t){return e.notificator.showRPCError(t.error,e.errorMessage)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(d.H8),I.Y36(x.sK),I.Y36(m.V6),I.Y36(m.F5),I.Y36(m.fb))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-group-settings-expiration"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(t,e){1&t&&I.YNc(0,Ra,1,1,"app-expiration-settings",0),2&t&&I.Q6J("ngIf",void 0!==e.expirationAttribute)},directives:[s.O5,ke],styles:[""]}),t}(),ya=function(){var t=function(){function t(e,i){a(this,t),this.guiAuthResolver=e,this.entityStorageService=i,this.availableRoles=[],this.selected="user",this.type="Group",this.theme="group-theme"}return r(t,[{key:"ngOnInit",value:function(){this.group=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Group")}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(m.x4),I.Y36(m.fb))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-group-settings-managers"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:1,vars:4,consts:[[3,"complementaryObject","complementaryObjectType","theme","availableRoles"]],template:function(t,e){1&t&&I._UZ(0,"app-managers-page",0),2&t&&I.Q6J("complementaryObject",e.group)("complementaryObjectType",e.type)("theme",e.theme)("availableRoles",e.availableRoles)},directives:[Fe.s],styles:[""]}),t}();function Da(t,e){1&t&&I._UZ(0,"mat-spinner",6)}function Ua(t,e){1&t&&I._UZ(0,"th",15)}function qa(t,e){if(1&t&&(I.TgZ(0,"td",16),I._uU(1),I.qZA()),2&t){var i=e.$implicit,n=I.oxw(2);I.xp6(1),I.hij(" ",n.getMailType(i)," ")}}function Pa(t,e){1&t&&I._UZ(0,"tr",17)}function wa(t,e){1&t&&I._UZ(0,"tr",18)}function Ga(t,e){if(1&t&&(I.TgZ(0,"div",7),I.TgZ(1,"p"),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"div",8),I._uU(5),I.ALo(6,"translate"),I.qZA(),I.TgZ(7,"table",9),I.ynx(8,10),I.YNc(9,Ua,1,0,"th",11),I.YNc(10,qa,2,1,"td",12),I.BQk(),I.YNc(11,Pa,1,0,"tr",13),I.YNc(12,wa,1,0,"tr",14),I.qZA(),I.qZA()),2&t){var i=I.oxw();I.xp6(2),I.hij(" ",I.lcZ(3,5,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.DESCRIPTION")," "),I.xp6(3),I.hij(" ",I.lcZ(6,7,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CONFIRMATION")," "),I.xp6(2),I.Q6J("dataSource",i.dataSource),I.xp6(4),I.Q6J("matHeaderRowDef",i.displayedColumns),I.xp6(1),I.Q6J("matRowDefColumns",i.displayedColumns)}}var ka=function(){var t=function(){function t(e,i,n,o,r){a(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translate=o,this.registrarService=r,this.displayedColumns=["name"],this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new ct.by(this.data.mails)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;if(this.loading=!0,this.data.groupId){var i,n=e(this.data.mails);try{for(n.s();!(i=n.n()).done;){var a=i.value;this.registrarService.deleteApplicationMailForGroup(this.data.groupId,a.id).subscribe(function(){t.dialogRef.close(!0)},function(){return t.loading=!1})}}catch(l){n.e(l)}finally{n.f()}}else{var o,r=e(this.data.mails);try{for(r.s();!(o=r.n()).done;){var s=o.value;this.registrarService.deleteApplicationMailForVo(this.data.voId,s.id).subscribe(function(){t.dialogRef.close(!0)},function(){return t.loading=!1})}}catch(l){r.e(l)}finally{r.f()}}}},{key:"getMailType",value:function(t){var e="";return null==t.mailType||""===t.mailType?e="":this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_"+t.mailType).subscribe(function(t){e=t}),e}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(v.so),I.Y36(v.WI),I.Y36(m.V6),I.Y36(x.sK),I.Y36(d.tk))},t.\u0275cmp=I.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.YNc(4,Da,1,0,"mat-spinner",1),I.YNc(5,Ga,13,9,"div",2),I.TgZ(6,"div",3),I.TgZ(7,"button",4),I.NdJ("click",function(){return e.onCancel()}),I._uU(8),I.ALo(9,"translate"),I.qZA(),I.TgZ(10,"button",5),I.NdJ("click",function(){return e.onSubmit()}),I._uU(11),I.ALo(12,"translate"),I.qZA(),I.qZA(),I.qZA()),2&t&&(I.Tol(e.theme),I.xp6(2),I.Oqu(I.lcZ(3,9,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.TITLE")),I.xp6(2),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading),I.xp6(3),I.hij(" ",I.lcZ(9,11,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CANCEL")," "),I.xp6(2),I.Q6J("disabled",e.loading),I.xp6(1),I.hij(" ",I.lcZ(12,13,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.SUBMIT")," "))},directives:[v.uh,s.O5,v.H8,O.lW,b.$g,v.xY,ct.BZ,ct.w1,ct.fO,ct.Dz,ct.as,ct.nj,ct.ge,ct.ev,ct.XQ,ct.Gk],pipes:[x.X$],styles:[""]}),t}(),Ya=o(10901);function Ja(t,e){1&t&&I._UZ(0,"mat-spinner",7)}function Va(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",8),I.TgZ(1,"div"),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"mat-form-field"),I.TgZ(5,"textarea",9),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().mailFooter=t}),I.qZA(),I.qZA(),I.TgZ(6,"div",10),I._uU(7),I.ALo(8,"translate"),I.qZA(),I.qZA()}if(2&t){var n=I.oxw();I.xp6(2),I.hij(" ",I.lcZ(3,4,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.LABEL"),": "),I.xp6(3),I.Q6J("cdkTextareaAutosize",!0)("ngModel",n.mailFooter),I.xp6(2),I.Oqu(I.lcZ(8,6,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.DESCRIPTION"))}}var Fa=function(){var t=function(){function t(e,i,n,o,r){a(this,t),this.dialogRef=e,this.attributesManager=i,this.translateService=n,this.notificator=o,this.data=r,this.mailFooter="",this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.loading=!0,this.data.groupId?this.getFooterForGroup():this.getFooterForVo(),this.loading=!1}},{key:"submit",value:function(){var t=this;this.loading=!0,this.mailAttribute.value=this.mailFooter,this.data.groupId?this.attributesManager.setGroupAttribute({group:this.data.groupId,attribute:this.mailAttribute}).subscribe(function(){t.notificateSuccess(),t.dialogRef.close()},function(){return t.loading=!1}):this.attributesManager.setVoAttribute({vo:this.data.voId,attribute:this.mailAttribute}).subscribe(function(){t.notificateSuccess(),t.dialogRef.close()},function(){return t.loading=!1})}},{key:"cancel",value:function(){this.dialogRef.close()}},{key:"getFooterForVo",value:function(){var t=this;this.attributesManager.getVoAttributeByName(this.data.voId,h.r.VO_DEF_MAIL_FOOTER).subscribe(function(e){t.mailAttribute=e,t.editAuth=t.mailAttribute.writable,t.mailFooter=e.value?e.value:""})}},{key:"getFooterForGroup",value:function(){var t=this;this.attributesManager.getGroupAttributeByName(this.data.groupId,h.r.GROUP_DEF_MAIL_FOOTER).subscribe(function(e){t.mailAttribute=e,t.editAuth=t.mailAttribute.writable,t.mailFooter=e.value?e.value:""})}},{key:"notificateSuccess",value:function(){var t=this;this.translateService.get("DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close()})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(v.so),I.Y36(d.H8),I.Y36(x.sK),I.Y36(m.V6),I.Y36(v.WI))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-edit-email-footer-dialog"]],decls:15,vars:20,consts:[["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"],[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"],["matInput","",3,"cdkTextareaAutosize","ngModel","ngModelChange"],[1,"mt-2","font-italic","text-muted"]],template:function(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.YNc(4,Ja,1,0,"mat-spinner",1),I.YNc(5,Va,9,8,"div",2),I.TgZ(6,"div",3),I.TgZ(7,"button",4),I.NdJ("click",function(){return e.cancel()}),I._uU(8),I.ALo(9,"translate"),I.qZA(),I.TgZ(10,"div",5),I.ALo(11,"translate"),I.TgZ(12,"button",6),I.NdJ("click",function(){return e.submit()}),I._uU(13),I.ALo(14,"translate"),I.qZA(),I.qZA(),I.qZA(),I.qZA()),2&t&&(I.Tol(e.theme),I.xp6(2),I.Oqu(I.lcZ(3,12,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.TITLE")),I.xp6(2),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading),I.xp6(3),I.hij(" ",I.lcZ(9,14,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.CANCEL_BUTTON")," "),I.xp6(2),I.s9C("matTooltip",I.lcZ(11,16,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.HINT")),I.Q6J("matTooltipDisabled",e.editAuth)("matTooltipPosition","above"),I.xp6(2),I.Q6J("disabled",e.loading||!e.editAuth),I.xp6(1),I.hij(" ",I.lcZ(14,18,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUBMIT_BUTTON")," "))},directives:[v.uh,s.O5,v.H8,O.lW,S.gM,b.$g,v.xY,be.KE,Se.Nt,Ya.IC,Te.Fj,Te.JJ,Te.On],pipes:[x.X$],styles:[""]}),t}(),Qa=o(4253);function Ba(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div"),I.TgZ(1,"div",1),I.TgZ(2,"button",2),I.NdJ("click",function(){var t=I.CHM(i).$implicit;return I.oxw().addTag("{"+t[0]+"}")}),I.ALo(3,"translate"),I._uU(4),I.qZA(),I.TgZ(5,"span",3),I._uU(6),I.ALo(7,"translate"),I.qZA(),I.qZA(),I._UZ(8,"mat-divider",4),I.qZA()}if(2&t){var n=e.$implicit;I.xp6(2),I.s9C("matTooltip",I.lcZ(3,3,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TAG_HINT")),I.xp6(2),I.hij(" ",n[0]," "),I.xp6(2),I.hij(" ",I.lcZ(7,5,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL."+n[1])," ")}}var ja=function(){var t=function(){function t(){a(this,t),this.tags=[],this.addedTag=new I.vpe}return r(t,[{key:"addTag",value:function(t){this.addedTag.emit(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-tag-section"]],inputs:{tags:"tags"},outputs:{addedTag:"addedTag"},decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[1,"d-flex","flex-row"],["matTooltipPosition","above","mat-flat-button","",1,"tag-text","w-25",3,"matTooltip","click"],[1,"w-75"],[1,"mt-1","mb-1"]],template:function(t,e){1&t&&I.YNc(0,Ba,9,7,"div",0),2&t&&I.Q6J("ngForOf",e.tags)},directives:[s.sg,O.lW,S.gM,si.d],pipes:[x.X$],styles:[".tag-text[_ngcontent-%COMP%]{font-size:.9rem;font-weight:700}"]}),t}(),Ha=function(){var t=function(){function t(){a(this,t),this.addedTag=new I.vpe,this.applicationRelatedTags=[],this.userRelatedTags=[],this.validationLinksUsersTags=[],this.applicationLinksUsersTags=[],this.applicationLinksAdministratorsTags=[],this.perunLinksAdministratorsTags=[],this.userInvitationsTags=[]}return r(t,[{key:"ngOnInit",value:function(){this.getApplicationRelatedTags(),this.getUserRelatedTags(),this.getValidationLinksUsersTags(),this.getApplicationLinksUsersTags(),this.getApplicationLinksAdministratorsTags(),this.getPerunLinksAdministratorsTags(),this.getUserInvitationsTags()}},{key:"getApplicationRelatedTags",value:function(){var t=[];t.push(["appId","APPID_DESCRIPTION"]),t.push(["actor","ACTOR_DESCRIPTION"]),t.push(["extSource","EXTSOURCE_DESCRIPTION"]),t.push(["voName","VONAME_DESCRIPTION"]),t.push(["groupName","GROUPNAME_DESCRIPTION"]),t.push(["mailFooter","MAILFOOTER_DESCRIPTION"]),t.push(["errors","ERRORS_DESCRIPTION"]),t.push(["customMessage","CUSTOMMESSAGE_DESCRIPTION"]),t.push(["fromApp-itemName","FROMAPPITEMNAME_DESCRIPTION"]),this.applicationRelatedTags=t}},{key:"getUserRelatedTags",value:function(){var t=[];t.push(["firstName","FIRSTNAME_DESCRIPTION"]),t.push(["lastName","LASTNAME_DESCRIPTION"]),t.push(["displayName","DISPLAYNAME_DESCRIPTION"]),t.push(["mail","MAIL_DESCRIPTION"]),t.push(["phone","PHONE_DESCRIPTION"]),t.push(["login-namespace","LOGINNAMESPACE_DESCRIPTION"]),t.push(["membershipExpiration","MEMBERSHIPEXPIRATION_DESCRIPTION"]),this.userRelatedTags=t}},{key:"getValidationLinksUsersTags",value:function(){var t=[];t.push(["validationLink","VALIDATIONLINK_DESCRIPTION"]),t.push(["validationLink-krb","VALIDATIONKRB_DESCRIPTION"]),t.push(["validationLink-fed","VALIDATIONFED_DESCRIPTION"]),t.push(["validationLink-cert","VALIDATIONCERT_DESCRIPTION"]),t.push(["validationLink-non","VALIDATIONNON_DESCRIPTION"]),t.push(["redirectUrl","REDIRECTURL_DESCRIPTION"]),this.validationLinksUsersTags=t}},{key:"getApplicationLinksUsersTags",value:function(){var t=[];t.push(["appGuiUrl","APPGUIURL_DESCRIPTION"]),t.push(["appGuiUrl-krb","APPGUIURLKRB_DESCRIPTION"]),t.push(["appGuiUrl-fed","APPGUIURLFED_DESCRIPTION"]),t.push(["appGuiUrl-cert","APPGUIURLCERT_DESCRIPTION"]),t.push(["appGuiUrl-non","APPGUIURLNON_DESCRIPTION"]),this.applicationLinksUsersTags=t}},{key:"getApplicationLinksAdministratorsTags",value:function(){var t=[];t.push(["appDetailUrl","APPDETAILURL_DESCRIPTION"]),t.push(["appDetailUrl-krb","APPDETAILURLKRB_DESCRIPTION"]),t.push(["appDetailUrl-fed","APPDETAILURLFED_DESCRIPTION"]),t.push(["appDetailUrl-cert","APPDETAILURLCERT_DESCRIPTION"]),this.applicationLinksAdministratorsTags=t}},{key:"getPerunLinksAdministratorsTags",value:function(){var t=[];t.push(["perunGuiUrl","PERUNGUIURL_DESCRIPTION"]),t.push(["perunGuiUrl-krb","PERUNGUIURLKRB_DESCRIPTION"]),t.push(["perunGuiUrl-fed","PERUNGUIURLFED_DESCRIPTION"]),t.push(["perunGuiUrl-cert","PERUNGUIURLCERT_DESCRIPTION"]),this.perunLinksAdministratorsTags=t}},{key:"getUserInvitationsTags",value:function(){var t=[];t.push(["voName","USER_INVITATIONS_VONAME_DESCRIPTION"]),t.push(["groupName","USER_INVITATIONS_GROUPNAME_DESCRIPTION"]),t.push(["displayName","USER_INVITATIONS_DISPLAYNAME_DESCRIPTION"]),t.push(["mailFooter","USER_INVITATIONS_MAILFOOTER_DESCRIPTION"]),t.push(["invitationLink","INVITATIONLINK_DESCRIPTION"]),t.push(["invitationLink-krb","INVITATIONLINKKRB_DESCRIPTION"]),t.push(["invitationLink-fed","INVITATIONLINKFED_DESCRIPTION"]),t.push(["invitationLink-cert","INVITATIONLINKCERT_DESCRIPTION"]),t.push(["invitationLink-non","INVITATIONLINKNON_DESCRIPTION"]),this.userInvitationsTags=t}},{key:"addTag",value:function(t){this.addedTag.emit(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=I.Xpm({type:t,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(t,e){1&t&&(I.TgZ(0,"app-alert",0),I._uU(1),I.ALo(2,"translate"),I.qZA(),I.TgZ(3,"div",1),I.TgZ(4,"div",2),I._uU(5),I.ALo(6,"translate"),I.qZA(),I.TgZ(7,"app-tag-section",3),I.NdJ("addedTag",function(t){return e.addTag(t)}),I.qZA(),I.TgZ(8,"div",4),I._uU(9),I.ALo(10,"translate"),I.qZA(),I.TgZ(11,"app-tag-section",3),I.NdJ("addedTag",function(t){return e.addTag(t)}),I.qZA(),I.TgZ(12,"div",4),I._uU(13),I.ALo(14,"translate"),I.qZA(),I.TgZ(15,"div",5),I._uU(16),I.ALo(17,"translate"),I.qZA(),I.TgZ(18,"app-tag-section",3),I.NdJ("addedTag",function(t){return e.addTag(t)}),I.qZA(),I.TgZ(19,"div",4),I._uU(20),I.ALo(21,"translate"),I.qZA(),I.TgZ(22,"div",5),I._uU(23),I.ALo(24,"translate"),I.qZA(),I.TgZ(25,"app-tag-section",3),I.NdJ("addedTag",function(t){return e.addTag(t)}),I.qZA(),I.TgZ(26,"div",4),I._uU(27),I.ALo(28,"translate"),I.qZA(),I.TgZ(29,"div",5),I._uU(30),I.ALo(31,"translate"),I.qZA(),I.TgZ(32,"app-tag-section",3),I.NdJ("addedTag",function(t){return e.addTag(t)}),I.qZA(),I.TgZ(33,"div",4),I._uU(34),I.ALo(35,"translate"),I.qZA(),I.TgZ(36,"div",5),I._uU(37),I.ALo(38,"translate"),I.qZA(),I.TgZ(39,"app-tag-section",3),I.NdJ("addedTag",function(t){return e.addTag(t)}),I.qZA(),I.TgZ(40,"div",4),I._uU(41),I.ALo(42,"translate"),I.qZA(),I.TgZ(43,"div",5),I._uU(44),I.ALo(45,"translate"),I.qZA(),I.TgZ(46,"app-tag-section",3),I.NdJ("addedTag",function(t){return e.addTag(t)}),I.qZA(),I.qZA()),2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,20,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TAGS_DESCRIPTION"),"\n"),I.xp6(4),I.hij("",I.lcZ(6,22,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_RELATED_SECTION"),":"),I.xp6(2),I.Q6J("tags",e.applicationRelatedTags),I.xp6(2),I.hij("",I.lcZ(10,24,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_RELATED_SECTION"),":"),I.xp6(2),I.Q6J("tags",e.userRelatedTags),I.xp6(2),I.hij("",I.lcZ(14,26,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_USERS_SECTION"),":"),I.xp6(3),I.hij(" ",I.lcZ(17,28,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_DESCRIPTION")," "),I.xp6(2),I.Q6J("tags",e.validationLinksUsersTags),I.xp6(2),I.hij("",I.lcZ(21,30,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_USERS_SECTION"),":"),I.xp6(3),I.hij(" ",I.lcZ(24,32,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_DESCRIPTION")," "),I.xp6(2),I.Q6J("tags",e.applicationLinksUsersTags),I.xp6(2),I.hij("",I.lcZ(28,34,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_SECTION"),":"),I.xp6(3),I.hij(" ",I.lcZ(31,36,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_DESCRIPTION")," "),I.xp6(2),I.Q6J("tags",e.applicationLinksAdministratorsTags),I.xp6(2),I.hij("",I.lcZ(35,38,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_SECTION"),":"),I.xp6(3),I.hij(" ",I.lcZ(38,40,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_DESCRIPTION")," "),I.xp6(2),I.Q6J("tags",e.perunLinksAdministratorsTags),I.xp6(2),I.hij("",I.lcZ(42,42,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_SECTION"),":"),I.xp6(3),I.hij(" ",I.lcZ(45,44,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_DESCRIPTION")," "),I.xp6(2),I.Q6J("tags",e.userInvitationsTags))},directives:[ft.w,Qa.PQ,ja],pipes:[x.X$],styles:[".scrollable[_ngcontent-%COMP%]{height:370px;overflow:auto}"]}),t}();function za(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",9),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.qZA()),2&t&&(I.xp6(2),I.Oqu(I.lcZ(3,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_CREATE")))}function Xa(t,e){1&t&&(I.TgZ(0,"h1",9),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_EDIT")))}function $a(t,e){1&t&&I._UZ(0,"mat-spinner",10)}function Wa(t,e){1&t&&(I.TgZ(0,"mat-option",37),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APPROVABLE_GROUP_APP_USER")," "))}function Ka(t,e){1&t&&(I.TgZ(0,"div",35),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_EDIT")," "))}function to(t,e){1&t&&(I.TgZ(0,"div",35),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_CREATE")," "))}function eo(t,e){1&t&&(I.TgZ(0,"mat-option",38),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EXTENSION")," "))}function io(t,e){1&t&&(I.TgZ(0,"div",35),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_EDIT")," "))}function no(t,e){1&t&&(I.TgZ(0,"div",35),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_CREATE")," "))}function ao(t,e){1&t&&I._UZ(0,"mat-divider",52)}function oo(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",40),I.TgZ(1,"div",41),I.TgZ(2,"div",42),I.TgZ(3,"button",43),I.NdJ("click",function(){I.CHM(i);var t=I.oxw(3);return t.showTags=!t.showTags}),I._uU(4),I.ALo(5,"translate"),I.ALo(6,"translate"),I.qZA(),I.TgZ(7,"span",44),I._uU(8),I.ALo(9,"translate"),I.qZA(),I.TgZ(10,"mat-form-field",18),I.TgZ(11,"input",45,46),I.NdJ("focus",function(){return I.CHM(i),I.oxw(3).isTextFocused=!1})("ngModelChange",function(t){I.CHM(i);var e=I.oxw().$implicit;return I.oxw(2).applicationMail.message[e].subject=t}),I.qZA(),I.qZA(),I.qZA(),I.TgZ(13,"div",47),I._uU(14),I.ALo(15,"translate"),I.qZA(),I.TgZ(16,"mat-form-field",18),I.TgZ(17,"textarea",48,49),I.NdJ("focus",function(){return I.CHM(i),I.oxw(3).isTextFocused=!0})("ngModelChange",function(t){I.CHM(i);var e=I.oxw().$implicit;return I.oxw(2).applicationMail.message[e].text=t}),I._uU(19," "),I.qZA(),I.qZA(),I.qZA(),I.YNc(20,ao,1,0,"mat-divider",50),I.TgZ(21,"div"),I.TgZ(22,"app-tag-bar",51),I.NdJ("addedTag",function(t){I.CHM(i);var e=I.MAs(12),n=I.MAs(18),a=I.oxw().$implicit;return I.oxw(2).addTag(e,n,a,t)}),I.qZA(),I.qZA(),I.qZA()}if(2&t){var n=I.oxw().$implicit,a=I.oxw(2);I.xp6(4),I.hij(" ",a.showTags?I.lcZ(5,7,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.HIDE_TAGS"):I.lcZ(6,9,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SHOW_TAGS")," "),I.xp6(4),I.hij(" ",I.lcZ(9,11,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SUBJECT"),": "),I.xp6(3),I.Q6J("ngModel",a.applicationMail.message[n].subject),I.xp6(3),I.hij(" ",I.lcZ(15,13,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TEXT"),": "),I.xp6(3),I.Q6J("ngModel",a.applicationMail.message[n].text),I.xp6(3),I.Q6J("ngIf",a.showTags),I.xp6(1),I.Q6J("@tagsOpenClose",a.showTags?"open":"closed")}}function ro(t,e){1&t&&(I.TgZ(0,"mat-tab",14),I.ALo(1,"translate"),I.ALo(2,"uppercase"),I.YNc(3,oo,23,15,"ng-template",39),I.qZA()),2&t&&I.s9C("label",I.lcZ(1,1,I.lcZ(2,3,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.LANG_"+e.$implicit)))}function so(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",11),I.TgZ(1,"div"),I.TgZ(2,"app-alert",12),I._uU(3),I.ALo(4,"translate"),I.qZA(),I.qZA(),I.TgZ(5,"mat-tab-group",13),I.TgZ(6,"mat-tab",14),I.ALo(7,"translate"),I.TgZ(8,"div",15),I.TgZ(9,"span",16),I._uU(10),I.ALo(11,"translate"),I.qZA(),I.TgZ(12,"div",17),I.TgZ(13,"mat-form-field",18),I.TgZ(14,"mat-select",19),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().applicationMail.mailType=t})("selectionChange",function(){return I.CHM(i),I.oxw().notificationExist()}),I.TgZ(15,"mat-option",20),I._uU(16),I.ALo(17,"translate"),I.qZA(),I.YNc(18,Wa,3,3,"mat-option",21),I.TgZ(19,"mat-option",22),I._uU(20),I.ALo(21,"translate"),I.qZA(),I.TgZ(22,"mat-option",23),I._uU(23),I.ALo(24,"translate"),I.qZA(),I.TgZ(25,"mat-option",24),I._uU(26),I.ALo(27,"translate"),I.qZA(),I.TgZ(28,"mat-option",25),I._uU(29),I.ALo(30,"translate"),I.qZA(),I.TgZ(31,"mat-option",26),I._uU(32),I.ALo(33,"translate"),I.qZA(),I.TgZ(34,"mat-option",27),I._uU(35),I.ALo(36,"translate"),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.TgZ(37,"div",28),I._UZ(38,"span",29),I.YNc(39,Ka,3,3,"div",30),I.YNc(40,to,3,3,"div",30),I.qZA(),I.TgZ(41,"div",15),I.TgZ(42,"span",31),I._uU(43),I.ALo(44,"translate"),I.qZA(),I.TgZ(45,"div",17),I.TgZ(46,"mat-form-field",18),I.TgZ(47,"mat-select",19),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().applicationMail.appType=t})("selectionChange",function(){return I.CHM(i),I.oxw().notificationExist()}),I.TgZ(48,"mat-option",32),I._uU(49),I.ALo(50,"translate"),I.qZA(),I.YNc(51,eo,3,3,"mat-option",33),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.TgZ(52,"div",28),I._UZ(53,"span",29),I.YNc(54,io,3,3,"div",30),I.YNc(55,no,3,3,"div",30),I.qZA(),I.TgZ(56,"div",15),I.TgZ(57,"span",31),I._uU(58),I.ALo(59,"translate"),I.qZA(),I.TgZ(60,"div",17),I.TgZ(61,"mat-checkbox",34),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().applicationMail.send=t}),I.qZA(),I.qZA(),I.qZA(),I.TgZ(62,"div",28),I._UZ(63,"span",29),I.TgZ(64,"div",35),I._uU(65),I.ALo(66,"translate"),I.qZA(),I.qZA(),I.qZA(),I.YNc(67,ro,4,5,"mat-tab",36),I.qZA(),I.qZA()}if(2&t){var n=I.oxw();I.xp6(1),I.Q6J("@openClose",n.invalidNotification?"open":"closed"),I.xp6(2),I.Oqu(I.lcZ(4,27,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INVALID_NOTIFICATION")),I.xp6(3),I.s9C("label",I.lcZ(7,29,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.BASIC_SETTINGS")),I.xp6(4),I.hij("",I.lcZ(11,31,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE")," :"),I.xp6(4),I.Q6J("ngModel",n.applicationMail.mailType)("disabled",!n.data.createMailNotification),I.xp6(2),I.hij(" ",I.lcZ(17,33,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_USER")," "),I.xp6(2),I.Q6J("ngIf",n.data.groupId),I.xp6(2),I.hij(" ",I.lcZ(21,35,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_VO_ADMIN")," "),I.xp6(3),I.hij(" ",I.lcZ(24,37,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_MAIL_VALIDATION")," "),I.xp6(3),I.hij(" ",I.lcZ(27,39,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_APPROVED_USER")," "),I.xp6(3),I.hij(" ",I.lcZ(30,41,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_REJECTED_USER")," "),I.xp6(3),I.hij(" ",I.lcZ(33,43,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_ERROR_VO_ADMIN")," "),I.xp6(3),I.hij(" ",I.lcZ(36,45,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_USER_INVITE")," "),I.xp6(4),I.Q6J("ngIf",!n.data.createMailNotification),I.xp6(1),I.Q6J("ngIf",n.data.createMailNotification),I.xp6(3),I.hij("",I.lcZ(44,47,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE")," :"),I.xp6(4),I.Q6J("ngModel",n.applicationMail.appType)("disabled",!n.data.createMailNotification),I.xp6(2),I.hij(" ",I.lcZ(50,49,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INITIAL")," "),I.xp6(2),I.Q6J("ngIf","USER_INVITE"!==n.applicationMail.mailType),I.xp6(3),I.Q6J("ngIf",!n.data.createMailNotification),I.xp6(1),I.Q6J("ngIf",n.data.createMailNotification),I.xp6(3),I.hij("",I.lcZ(59,51,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED")," :"),I.xp6(3),I.Q6J("ngModel",n.applicationMail.send),I.xp6(4),I.hij(" ",I.lcZ(66,53,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED_DESCRIPTION")," "),I.xp6(2),I.Q6J("ngForOf",n.languages)}}function lo(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",53),I.NdJ("click",function(){return I.CHM(i),I.oxw().create()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}if(2&t){var n=I.oxw();I.Q6J("disabled",n.invalidNotification||n.loading),I.xp6(1),I.hij(" ",I.lcZ(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CREATE_BUTTON")," ")}}function uo(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",53),I.NdJ("click",function(){return I.CHM(i),I.oxw().save()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}if(2&t){var n=I.oxw();I.Q6J("disabled",n.loading||!n.editAuth),I.xp6(1),I.hij(" ",I.lcZ(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SAVE_BUTTON")," ")}}var co=function(){var t=function(){function t(e,i,n,o,r,s){a(this,t),this.dialogRef=e,this.registrarService=i,this.data=n,this.authResolver=o,this.groupsService=r,this.store=s,this.showTags=!1,this.isTextFocused=!0,this.invalidNotification=!1,this.loading=!1,this.languages=["en"]}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.languages=this.store.get("supported_languages"),this.applicationMail=this.data.applicationMail,this.theme=this.data.theme,this.data.groupId?this.groupsService.getGroupById(this.data.groupId).subscribe(function(e){t.editAuth=t.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"}]))}},{key:"cancel",value:function(){this.dialogRef.close()}},{key:"create",value:function(){var t=this;this.notificationExist(),this.invalidNotification||(this.loading=!0,this.data.groupId?this.registrarService.addApplicationMailForGroup({group:this.data.groupId,mail:this.applicationMail}).subscribe(function(){t.dialogRef.close(!0)},function(){return t.loading=!1}):this.registrarService.addApplicationMailForVo({vo:this.data.voId,mail:this.applicationMail}).subscribe(function(){t.dialogRef.close(!0)},function(){return t.loading=!1}))}},{key:"save",value:function(){var t=this;this.loading=!0,this.registrarService.updateApplicationMail({mail:this.applicationMail}).subscribe(function(){t.dialogRef.close(!0)},function(){return t.loading=!1})}},{key:"addTag",value:function(t,e,i,n){var a,o=(a=this.isTextFocused?e:t).selectionStart;this.isTextFocused?this.applicationMail.message[i].text=this.applicationMail.message[i].text.substring(0,o)+n+this.applicationMail.message[i].text.substring(o):this.applicationMail.message[i].subject=this.applicationMail.message[i].subject.substring(0,o)+n+this.applicationMail.message[i].subject.substring(o),a.focus()}},{key:"notificationExist",value:function(){var t,i=e(this.data.applicationMails);try{for(i.s();!(t=i.n()).done;){var n=t.value;if(n.mailType===this.applicationMail.mailType&&n.appType===this.applicationMail.appType)return void(this.invalidNotification=!0)}}catch(a){i.e(a)}finally{i.f()}this.invalidNotification=!1}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(v.so),I.Y36(d.tk),I.Y36(v.WI),I.Y36(m.x4),I.Y36(d.ff),I.Y36(m.d6))},t.\u0275cmp=I.Xpm({type:t,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"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","class","ml-2","color","accent",3,"disabled","click",4,"ngIf"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["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",""],[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"],["matInput","",3,"ngModel","focus","ngModelChange"],["Input",""],[1,"font-weight-bold"],["matInput","","rows","17",3,"ngModel","focus","ngModelChange"],["Textarea",""],["class","ml-3 mr-3","vertical","true",4,"ngIf"],[3,"addedTag"],["vertical","true",1,"ml-3","mr-3"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"div",0),I.YNc(2,za,4,3,"div",1),I.YNc(3,Xa,3,3,"ng-template",null,2,I.W1O),I.YNc(5,$a,1,0,"mat-spinner",3),I.YNc(6,so,68,55,"div",4),I.TgZ(7,"div",5),I.TgZ(8,"button",6),I.NdJ("click",function(){return e.cancel()}),I._uU(9),I.ALo(10,"translate"),I.qZA(),I.YNc(11,lo,3,4,"button",7),I.TgZ(12,"div",8),I.ALo(13,"translate"),I.YNc(14,uo,3,4,"button",7),I.qZA(),I.qZA(),I.qZA(),I.qZA()),2&t){var i=I.MAs(4);I.Gre("",e.theme," h-100"),I.xp6(2),I.Q6J("ngIf",e.data.createMailNotification)("ngIfElse",i),I.xp6(3),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading),I.xp6(3),I.hij(" ",I.lcZ(10,13,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CANCEL_BUTTON")," "),I.xp6(2),I.Q6J("ngIf",e.data.createMailNotification),I.xp6(1),I.s9C("matTooltip",I.lcZ(13,15,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EDIT_HINT")),I.Q6J("matTooltipPosition","above")("matTooltipDisabled",e.editAuth),I.xp6(2),I.Q6J("ngIf",!e.data.createMailNotification)}},directives:[s.O5,v.H8,O.lW,S.gM,v.uh,b.$g,v.xY,ft.w,wi.SP,wi.uX,be.KE,_e.gD,Te.JJ,Te.On,Ne.ey,Oe.oG,s.sg,wi.Vc,Se.Nt,Te.Fj,Ha,si.d],pipes:[x.X$,s.gd],styles:[".right-button[_ngcontent-%COMP%]{display:block;margin-left:auto}"],data:{animation:[p.es,p.BQ]}}),t}(),po=o(19386);function go(t,e){1&t&&I._UZ(0,"mat-spinner",9)}var mo=function(){var t=function(){function t(e,i,n,o,r,s){a(this,t),this.dialogRef=e,this.voService=i,this.groupService=n,this.translateService=o,this.registrarService=r,this.data=s,this.vos=[],this.groups=[],this.selectedVo=null,this.selectedGroup=null,this.loading=!1,this.nameFunction=function(t){return t.name}}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.theme=this.data.theme,this.loading=!0,this.translateService.get("DIALOGS.NOTIFICATIONS_COPY_MAILS.NO_GROUP_SELECTED").subscribe(function(e){t.fakeGroup={id:-1,name:e,voId:0,parentGroupId:0,shortName:"",description:"",beanName:"group"},t.selectedGroup=t.fakeGroup,t.voService.getAllVos().subscribe(function(e){t.vos=e,t.vos=e.sort(function(t,e){return t.name>e.name?1:t.name=0}).sort(function(t,e){return t.toLowerCase().localeCompare(e.toLowerCase())})}},{key:"filterResources",value:function(t){if(null==t)return this.resources;var e=t.toLowerCase();return this.resources.filter(function(t){return 0===t.facility.name.toLowerCase().indexOf(e)}).sort(function(t,e){return t.name.toLowerCase().localeCompare(e.name.toLowerCase())})}},{key:"setResource",value:function(t){var e=this;this.processing=!0,this.selectedResource=t,this.resourceManager.getAssignedServicesToResource(this.selectedResource.id).subscribe(function(t){e.services=t,e.processing=!1},function(){return e.processing=!1}),this.description=this.selectedResource.description}},{key:"loadGroups",value:function(){var t=this;this.processing=!0,this.resourceManager.getAssignedGroups(this.selectedResource.id).subscribe(function(e){t.groups=e,t.groupManager.getAllMemberGroups(t.data.memberId).subscribe(function(e){t.membersGroupsId=new Set(e.map(function(t){return t.id})),t.groups.forEach(function(e){t.authResolver.isAuthorized("addMember_Group_Member_policy",[e])||t.membersGroupsId.add(e.id)}),t.processing=!1},function(){return t.processing=!1})})}},{key:"onFinish",value:function(){var t=this;this.processing=!0,this.groupManager.addMembers(this.selectedGroups.selected[0].id,[this.data.memberId]).subscribe(function(){t.notificator.showSuccess(t.translate.instant("DIALOGS.ADD_MEMBER_TO_RESOURCE.SUCCESS")),t.dialogRef.close(!0)},function(){return t.processing=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"stepperPrevious",value:function(){this.stepper.previous()}},{key:"stepperNext",value:function(){this.stepper.next()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(v.so),I.Y36(v.WI),I.Y36(d.xk),I.Y36(d.ff),I.Y36(m.V6),I.Y36(x.sK),I.Y36(m.x4),I.Y36(I.sBO))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-add-member-to-resource-dialog"]],viewQuery:function(t,e){var i;(1&t&&I.Gf(Jr.Vq,5),2&t)&&(I.iGM(i=I.CRH())&&(e.stepper=i.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(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"div",1),I.TgZ(5,"mat-stepper",2),I.TgZ(6,"mat-step",3),I.YNc(7,Fr,2,3,"ng-template",4),I.YNc(8,Qr,1,0,"mat-spinner",5),I.YNc(9,zr,26,22,"div",6),I.qZA(),I.TgZ(10,"mat-step"),I.YNc(11,Xr,2,3,"ng-template",4),I.YNc(12,$r,1,0,"mat-spinner",5),I.YNc(13,Kr,2,8,"div",6),I.YNc(14,ts,3,3,"app-alert",7),I.qZA(),I.qZA(),I.qZA(),I.TgZ(15,"div",8),I.TgZ(16,"button",9),I.NdJ("click",function(){return e.onCancel()}),I._uU(17),I.ALo(18,"translate"),I.qZA(),I.YNc(19,es,3,3,"button",10),I.YNc(20,is,3,8,"button",11),I.YNc(21,ns,3,4,"button",12),I.qZA(),I.qZA()),2&t&&(I.Tol(e.theme),I.xp6(2),I.Oqu(I.lcZ(3,14,"DIALOGS.ADD_MEMBER_TO_RESOURCE.TITLE")),I.xp6(3),I.Q6J("linear",!0),I.xp6(3),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading),I.xp6(3),I.Q6J("ngIf",e.processing),I.xp6(1),I.Q6J("ngIf",0!==e.groups.length&&!e.processing),I.xp6(1),I.Q6J("ngIf",0===e.groups.length&&!e.processing),I.xp6(3),I.Oqu(I.lcZ(18,16,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CANCEL")),I.xp6(2),I.Q6J("ngIf",void 0!==e.stepper&&0!==e.stepper.selectedIndex),I.xp6(1),I.Q6J("ngIf",void 0!==e.stepper&&e.stepper.selectedIndex!==e.stepper._steps.length-1),I.xp6(1),I.Q6J("ngIf",void 0!==e.stepper&&e.stepper.selectedIndex===e.stepper._steps.length-1))},directives:[v.uh,v.xY,Jr.Vq,Jr.C0,Jr.VY,s.O5,v.H8,O.lW,b.$g,be.KE,Se.Nt,Te.Fj,Vr.ZL,Te.JJ,Te.oH,Vr.XC,s.sg,_e.gD,Ne.ey,gr.W,ft.w],pipes:[x.X$,s.Ov],styles:[".input-style[_ngcontent-%COMP%]{margin-left:50px;width:75%}"]}),t}(),os=o(88884);function rs(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",6),I.NdJ("click",function(){return I.CHM(i),I.oxw().addResource()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"MEMBER_DETAIL.RESOURCES.ADD")," "))}function ss(t,e){if(1&t&&I._UZ(0,"perun-web-apps-resources-list",7),2&t){var i=I.oxw();I.Q6J("tableId",i.tableId)("filterValue",i.filterValue)("displayedColumns",i.displayedColumns)("routingVo",!0)("disableRouting",!i.routeAuth)("resources",i.resources)}}function ls(t,e){1&t&&I._UZ(0,"mat-spinner",8)}var us=function(){var t=function(){function t(e,i,n,o,r){a(this,t),this.dialog=e,this.memberManager=i,this.resourceManager=n,this.route=o,this.authResolver=r,this.resources=[],this.filterValue="",this.loading=!1,this.displayedColumns=["id","name","vo","facility","tags","description"],this.tableId=Za.aL}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.parent.params.subscribe(function(e){t.memberManager.getMemberById(e.memberId).subscribe(function(e){t.member=e,t.refreshTable()})})}},{key:"addResource",value:function(){var t=this,e=(0,g.kZ)();e.width="1200px",e.data={memberId:this.member.id,voId:this.member.voId,theme:"member-theme"},this.dialog.open(as,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.resourceManager.getAssignedRichResourcesWithMember(this.member.id).subscribe(function(e){t.resources=e,t.setAuthRights(),t.loading=!1})}},{key:"setAuthRights",value:function(){var t={id:this.member.voId,beanName:"Vo"};this.addAuth=this.authResolver.isAuthorized("getRichResources_Vo_policy",[t])&&this.authResolver.isAuthorized("addMembers_Group_List_policy",[t]),0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getResourceById_int_policy",[t,this.resources[0]]))}},{key:"applyFilter",value:function(t){this.filterValue=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(v.uw),I.Y36(d.uq),I.Y36(d.xk),I.Y36(l.gz),I.Y36(m.x4))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-member-resources"]],decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","class","action-button","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"placeholder","filter"],[3,"tableId","filterValue","displayedColumns","routingVo","disableRouting","resources",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[3,"tableId","filterValue","displayedColumns","routingVo","disableRouting","resources"],[1,"mr-auto","ml-auto"]],template:function(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"perun-web-apps-refresh-button",1),I.NdJ("refresh",function(){return e.refreshTable()}),I.qZA(),I.YNc(5,rs,3,3,"button",2),I.TgZ(6,"perun-web-apps-immediate-filter",3),I.NdJ("filter",function(t){return e.applyFilter(t)}),I.qZA(),I.YNc(7,ss,1,6,"perun-web-apps-resources-list",4),I.qZA(),I.YNc(8,ls,1,0,"mat-spinner",5)),2&t&&(I.xp6(2),I.Oqu(I.lcZ(3,5,"MEMBER_DETAIL.RESOURCES.TITLE")),I.xp6(3),I.Q6J("ngIf",e.addAuth),I.xp6(1),I.Q6J("placeholder","MEMBER_DETAIL.RESOURCES.FILTER"),I.xp6(1),I.Q6J("ngIf",!e.loading),I.xp6(1),I.Q6J("ngIf",e.loading))},directives:[ba.t,s.O5,_a.L,O.lW,os.C,b.$g],pipes:[x.X$],styles:[""]}),t}(),cs=o(72920),ps=o(76527),ds=o(42473),gs=o(77968),ms=o(22927),hs=o(79472),fs=o(64359),As=o(75374),Is=o(95142),Ts=o(48666);function vs(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",7),I.NdJ("click",function(){return I.CHM(i),I.oxw().onAdd()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.ADD")," "))}function Es(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",8),I.NdJ("click",function(){return I.CHM(i),I.oxw().onRemove()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}if(2&t){var n=I.oxw();I.Q6J("disabled",0===n.selection.selected.length),I.xp6(1),I.hij(" ",I.lcZ(2,2,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function Zs(t,e){1&t&&I._UZ(0,"mat-spinner",9)}function bs(t,e){if(1&t&&I._UZ(0,"app-ext-sources-list",10),2&t){var i=I.oxw();I.Q6J("tableId",i.tableId)("extSources",i.extSources)("displayedColumns",i.displayedColumns)("filterValue",i.filterValue)("selection",i.selection)}}var _s=function(){var t=function(){function t(e,i,n,o,r,s){var l=this;a(this,t),this.extSourceService=e,this.dialog=i,this.notificator=n,this.translate=o,this.authResolver=r,this.entityStorageService=s,this.extSources=[],this.selection=new ga.Ov(!0,[]),this.filterValue="",this.tableId=Za.S7,this.displayedColumns=[],this.translate.get("GROUP_DETAIL.SETTINGS.EXT_SOURCES.SUCCESS_REMOVED").subscribe(function(t){return l.successMessage=t})}return r(t,[{key:"ngOnInit",value:function(){this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}},{key:"setAuthRights",value:function(){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"]}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.extSourceService.getGroupExtSources(this.group.id).subscribe(function(e){t.extSources=e,t.selection.clear(),t.loading=!1})}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"onAdd",value:function(){var t=this,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(Wo,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"onRemove",value:function(){var t=this,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(sr,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(d.KG),I.Y36(v.uw),I.Y36(m.V6),I.Y36(x.sK),I.Y36(m.x4),I.Y36(m.fb))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-group-settings-extsources"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["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,"tableId","extSources","displayedColumns","filterValue","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,"tableId","extSources","displayedColumns","filterValue","selection"]],template:function(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"perun-web-apps-refresh-button",1),I.NdJ("refresh",function(){return e.refreshTable()}),I.qZA(),I.YNc(5,vs,3,3,"button",2),I.YNc(6,Es,3,4,"button",3),I.TgZ(7,"perun-web-apps-immediate-filter",4),I.NdJ("filter",function(t){return e.applyFilter(t)}),I.qZA(),I.YNc(8,Zs,1,0,"mat-spinner",5),I.YNc(9,bs,1,5,"app-ext-sources-list",6),I.qZA()),2&t&&(I.xp6(2),I.Oqu(I.lcZ(3,6,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),I.xp6(3),I.Q6J("ngIf",e.addAuth),I.xp6(1),I.Q6J("ngIf",e.removeAuth),I.xp6(1),I.Q6J("placeholder","GROUP_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),I.xp6(1),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[ba.t,s.O5,_a.L,O.lW,b.$g,zo.D],pipes:[x.X$],styles:[""]}),t}();function Ss(t,e){1&t&&I._UZ(0,"th",9)}function Ns(t,e){if(1&t&&(I.TgZ(0,"td",10),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.xp6(1),I.hij(" ",i,": ")}}function Os(t,e){1&t&&I._UZ(0,"th",9)}function xs(t,e){if(1&t&&(I.TgZ(0,"td",11),I._uU(1),I.qZA()),2&t){var i=e.$implicit,n=I.oxw();I.xp6(1),I.hij(" ",n.statistics.get(i.toLowerCase())," ")}}function Ls(t,e){1&t&&I._UZ(0,"tr",12)}var Cs=function(){var t=function(){function t(){a(this,t),this.rowNames=[],this.title="",this.statistics=new Map,this.dataSource=null,this.displayedColumns=["name","value"]}return r(t,[{key:"ngOnInit",value:function(){this.dataSource=new ct.by(this.rowNames)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=I.Xpm({type:t,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(t,e){1&t&&(I.TgZ(0,"mat-card",0),I.TgZ(1,"mat-card-header"),I.TgZ(2,"mat-card-title"),I.TgZ(3,"h1",1),I._uU(4),I.ALo(5,"translate"),I.qZA(),I.qZA(),I.qZA(),I.TgZ(6,"mat-card-content"),I.TgZ(7,"table",2),I.ynx(8,3),I.YNc(9,Ss,1,0,"th",4),I.YNc(10,Ns,2,1,"td",5),I.BQk(),I.ynx(11,6),I.YNc(12,Os,1,0,"th",4),I.YNc(13,xs,2,1,"td",7),I.BQk(),I.YNc(14,Ls,1,0,"tr",8),I.qZA(),I.qZA(),I.qZA()),2&t&&(I.xp6(4),I.Oqu(I.lcZ(5,3,e.title)),I.xp6(3),I.Q6J("dataSource",e.dataSource),I.xp6(7),I.Q6J("matRowDefColumns",e.displayedColumns))},directives:[gt.a8,gt.dk,gt.n5,gt.dn,ct.BZ,ct.w1,ct.fO,ct.Dz,ct.nj,ct.ge,ct.ev,ct.Gk],pipes:[x.X$],styles:[".align-card[_ngcontent-%COMP%]{margin:1rem 1rem 1rem 0;display:inline-block;vertical-align:top}"]}),t}();function Rs(t,e){1&t&&I._UZ(0,"mat-spinner",3)}function Ms(t,e){if(1&t&&(I.TgZ(0,"div"),I._UZ(1,"app-statistics-card",4),I.qZA()),2&t){var i=I.oxw();I.xp6(1),I.Q6J("rowNames",i.rowNames)("statistics",i.membersCount)("title","VO_DETAIL.STATISTICS.MEMBERS_COUNT")}}var ys=function(){var t=function(){function t(e,i){a(this,t),this.voService=e,this.entityStorageService=i,this.loading=!1,this.dataSource=new ct.by,this.displayedColumns=["status","count"],this.rowNames=["Members","Valid","Invalid","Expired","Disabled"],this.membersCount=new Map([["members",0],["valid",0],["invalid",0],["expired",0],["disabled",0]])}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.dataSource=new ct.by(this.rowNames),this.voService.getVoMembersCountsByStatus(this.vo.id).subscribe(function(e){t.allMembersCount=0;for(var i=0,n=Object.keys(e);i_policy",[{id:this.voId,beanName:"Vo"}])}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(d.tk),I.Y36(m.x4),I.Y36(v.uw),I.Y36(l.gz))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-application-form-manage-groups"]],viewQuery:function(t,e){var i;(1&t&&I.Gf(Js,5),2&t)&&(I.iGM(i=I.CRH())&&(e.list=i.first))},decls:17,vars:21,consts:[[1,"page-subtitle"],["alert_type","info"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],["theme","vo-theme",3,"tableId","selection","displayedColumns","disableRouting","filter","authType","groups",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],["theme","vo-theme",3,"tableId","selection","displayedColumns","disableRouting","filter","authType","groups"],["list",""]],template:function(t,e){1&t&&(I.TgZ(0,"h1",0),I._uU(1),I.ALo(2,"translate"),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"app-alert",1),I._uU(5),I.ALo(6,"translate"),I.qZA(),I.TgZ(7,"perun-web-apps-refresh-button",2),I.NdJ("refresh",function(){return e.loadGroups()}),I.qZA(),I.YNc(8,Vs,3,3,"button",3),I.TgZ(9,"span",4),I.ALo(10,"translate"),I.TgZ(11,"button",5),I.NdJ("click",function(){return e.removeGroup()}),I._uU(12),I.ALo(13,"translate"),I.qZA(),I.qZA(),I.TgZ(14,"perun-web-apps-immediate-filter",6),I.NdJ("filter",function(t){return e.filterValue=t}),I.qZA(),I.YNc(15,Fs,1,0,"mat-spinner",7),I.YNc(16,Bs,2,8,"perun-web-apps-groups-list",8)),2&t&&(I.xp6(1),I.AsE(" ",I.lcZ(2,11,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE")," - ",I.lcZ(3,13,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.TITLE"),"\n"),I.xp6(4),I.hij(" ",I.lcZ(6,15,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.HELP"),"\n"),I.xp6(3),I.Q6J("ngIf",e.addAuth),I.xp6(1),I.s9C("matTooltip",I.lcZ(10,17,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_PERMISSION_HINT")),I.Q6J("matTooltipDisabled",void 0===e.list||void 0!==e.list&&e.list.removeAuth),I.xp6(2),I.Q6J("disabled",0===e.selected.selected.length||void 0!==e.list&&!e.list.removeAuth),I.xp6(1),I.hij(" ",I.lcZ(13,19,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE")," "),I.xp6(2),I.Q6J("placeholder","VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.FILTER"),I.xp6(1),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[ft.w,ba.t,s.O5,S.gM,O.lW,_a.L,b.$g,gr.W],pipes:[x.X$],styles:[""]}),t}(),Hs=o(53134),zs=o(47701),Xs=o(90611),$s=o(44689),Ws=o(18820),Ks=o(90888),tl=o(85250),el=o(4252),il=["stepper"];function nl(t,e){1&t&&(I._uU(0),I.ALo(1,"translate")),2&t&&I.Oqu(I.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.CREATE_IDENTITY"))}function al(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function ol(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function rl(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.EMAIL_INVALID")))}function sl(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function ll(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function ul(t,e){1&t&&(I._uU(0),I.ALo(1,"translate")),2&t&&I.Oqu(I.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.SET_CREDENTIALS"))}function cl(t,e){if(1&t&&(I.TgZ(0,"mat-option",31),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.Q6J("value",i),I.xp6(1),I.hij(" ",i," ")}}function pl(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function dl(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_EXISTS")))}function gl(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_FORMAT")))}function ml(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_LONG")))}function hl(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_SHORT")))}function fl(t,e){if(1&t&&(I.TgZ(0,"span",32),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t){var i=I.oxw(2);I.xp6(1),I.hij(" ",I.lcZ(2,1,"Not selected"===i.secondFormGroup.get("namespaceCtrl").value?"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_DISABLED":"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_DISABLED_FOR_NAMESPACE")," ")}}function Al(t,e){1&t&&(I._uU(0),I.ALo(1,"translate")),2&t&&I.Oqu(I.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.ASSOCIATE_USERS"))}function Il(t,e){if(1&t&&(I.TgZ(0,"span",38),I._uU(1),I.qZA()),2&t){var i=I.oxw().$implicit;I.xp6(1),I.hij("#",i.id,"")}}function Tl(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"mat-list-item"),I.TgZ(1,"p",33),I._uU(2),I.ALo(3,"userFullName"),I.YNc(4,Il,2,1,"span",34),I.TgZ(5,"span",35),I.ALo(6,"translate"),I.TgZ(7,"button",36),I.NdJ("click",function(){var t=I.CHM(i).$implicit;return I.oxw(2).removeUser(t)}),I.TgZ(8,"mat-icon",37),I._uU(9,"close"),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.qZA()}if(2&t){var n=e.$implicit,a=I.oxw(2);I.xp6(2),I.hij("",I.lcZ(3,5,n.user)," "),I.xp6(2),I.Q6J("ngIf",n.id),I.xp6(1),I.Q6J("matTooltipDisabled",a.assignedMembers.length>1)("matTooltip",I.lcZ(6,7,"DIALOGS.CREATE_SERVICE_MEMBER.MINIMAL_USERS")),I.xp6(2),I.Q6J("disabled",1===a.assignedMembers.length)}}function vl(t,e){1&t&&I._UZ(0,"mat-spinner",39)}var El=function(){return["checkbox","id","fullName"]};function Zl(t,e){if(1&t&&I._UZ(0,"perun-web-apps-members-list",42),2&t){var i=I.oxw(3);I.Q6J("disableRouting",!0)("displayedColumns",I.DdM(5,El))("members",i.members)("tableId",i.tableId)("selection",i.selection)}}function bl(t,e){1&t&&(I.TgZ(0,"app-alert",43),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_INFO")," "))}function _l(t,e){if(1&t&&(I.TgZ(0,"div"),I.YNc(1,Zl,1,6,"perun-web-apps-members-list",40),I.YNc(2,bl,3,3,"app-alert",41),I.qZA()),2&t){var i=I.oxw(2);I.xp6(1),I.Q6J("ngIf",i.firstSearchDone),I.xp6(1),I.Q6J("ngIf",!i.firstSearchDone)}}function Sl(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",5),I.TgZ(1,"mat-stepper",6,7),I.TgZ(3,"mat-step",8),I.TgZ(4,"form",9),I.YNc(5,nl,2,3,"ng-template",10),I.TgZ(6,"div",11),I.TgZ(7,"mat-form-field"),I.TgZ(8,"mat-label"),I._uU(9),I.ALo(10,"translate"),I.qZA(),I._UZ(11,"input",12),I.YNc(12,al,3,3,"mat-error",13),I.qZA(),I.TgZ(13,"mat-form-field"),I.TgZ(14,"mat-label"),I._uU(15),I.ALo(16,"translate"),I.qZA(),I._UZ(17,"input",14),I.YNc(18,ol,3,3,"mat-error",13),I.YNc(19,rl,3,3,"mat-error",13),I.qZA(),I.TgZ(20,"mat-form-field"),I.TgZ(21,"mat-label"),I._uU(22),I.ALo(23,"translate"),I.qZA(),I._UZ(24,"input",15),I.YNc(25,sl,3,3,"mat-error",13),I.qZA(),I.TgZ(26,"mat-form-field"),I.TgZ(27,"mat-label"),I._uU(28),I.ALo(29,"translate"),I.qZA(),I._UZ(30,"input",16),I.YNc(31,ll,3,3,"mat-error",13),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.TgZ(32,"mat-step",8),I.TgZ(33,"form",9),I.YNc(34,ul,2,3,"ng-template",10),I.TgZ(35,"div",11),I.TgZ(36,"mat-form-field"),I.TgZ(37,"mat-label"),I._uU(38),I.ALo(39,"translate"),I.qZA(),I.TgZ(40,"mat-select",17),I.NdJ("valueChange",function(t){return I.CHM(i),I.oxw().onNamespaceChanged(t)}),I.YNc(41,cl,2,2,"mat-option",18),I.qZA(),I.qZA(),I.TgZ(42,"mat-form-field",19),I.TgZ(43,"mat-label"),I._uU(44),I.ALo(45,"translate"),I.qZA(),I._UZ(46,"input",20),I.YNc(47,pl,3,3,"mat-error",13),I.YNc(48,dl,3,3,"mat-error",13),I.YNc(49,gl,3,3,"mat-error",13),I.YNc(50,ml,3,3,"mat-error",13),I.YNc(51,hl,3,3,"mat-error",13),I.YNc(52,fl,3,3,"span",21),I.qZA(),I.TgZ(53,"mat-radio-group",22),I.NdJ("ngModelChange",function(){return I.CHM(i),I.oxw().passwordOptionChanged()}),I.ALo(54,"translate"),I.TgZ(55,"mat-radio-button",23),I._uU(56),I.ALo(57,"translate"),I.qZA(),I.TgZ(58,"mat-radio-button",23),I._uU(59),I.ALo(60,"translate"),I.qZA(),I.qZA(),I.TgZ(61,"div",11),I._UZ(62,"perun-web-apps-password-form",24),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.TgZ(63,"mat-step"),I.YNc(64,Al,2,3,"ng-template",10),I.TgZ(65,"h6"),I._uU(66),I.ALo(67,"translate"),I.qZA(),I.TgZ(68,"mat-list"),I.YNc(69,Tl,10,9,"mat-list-item",25),I.qZA(),I.TgZ(70,"h6",26),I._uU(71),I.ALo(72,"translate"),I.qZA(),I.TgZ(73,"mat-form-field",27),I.TgZ(74,"input",28),I.NdJ("keyup.enter",function(){I.CHM(i);var t=I.oxw();return 0!==t.searchCtrl.value.length&&t.onSearchByString()}),I.ALo(75,"translate"),I.qZA(),I.qZA(),I.TgZ(76,"button",29),I.NdJ("click",function(){return I.CHM(i),I.oxw().onSearchByString()}),I.TgZ(77,"mat-icon"),I._uU(78,"search"),I.qZA(),I.qZA(),I.TgZ(79,"button",30),I.NdJ("click",function(){return I.CHM(i),I.oxw().addUsers()}),I._uU(80),I.ALo(81,"translate"),I.qZA(),I.YNc(82,vl,1,0,"mat-spinner",3),I.YNc(83,_l,3,2,"div",13),I.qZA(),I.qZA(),I.qZA()}if(2&t){var n=I.oxw();I.xp6(1),I.Q6J("linear",!0),I.xp6(2),I.Q6J("stepControl",n.firstFormGroup),I.xp6(1),I.Q6J("formGroup",n.firstFormGroup),I.xp6(5),I.Oqu(I.lcZ(10,50,"DIALOGS.CREATE_SERVICE_MEMBER.NAME")),I.xp6(3),I.Q6J("ngIf",n.firstFormGroup.get("nameCtrl").hasError("required")),I.xp6(3),I.Oqu(I.lcZ(16,52,"DIALOGS.CREATE_SERVICE_MEMBER.EMAIL")),I.xp6(3),I.Q6J("ngIf",n.firstFormGroup.get("emailCtrl").hasError("required")),I.xp6(1),I.Q6J("ngIf",n.firstFormGroup.get("emailCtrl").hasError("pattern")),I.xp6(3),I.Oqu(I.lcZ(23,54,"DIALOGS.CREATE_SERVICE_MEMBER.SUBJECT_DN")),I.xp6(2),I.Q6J("required",!!n.firstFormGroup.get("issuerCtrl").value&&0!==n.firstFormGroup.get("issuerCtrl").value.trim().length),I.xp6(1),I.Q6J("ngIf",n.firstFormGroup.get("subjectCtrl").hasError("required")),I.xp6(3),I.Oqu(I.lcZ(29,56,"DIALOGS.CREATE_SERVICE_MEMBER.ISSUER_DN")),I.xp6(2),I.Q6J("required",!!n.firstFormGroup.get("subjectCtrl").value&&0!==n.firstFormGroup.get("subjectCtrl").value.trim().length),I.xp6(1),I.Q6J("ngIf",n.firstFormGroup.get("issuerCtrl").hasError("required")),I.xp6(1),I.Q6J("stepControl",n.secondFormGroup),I.xp6(1),I.Q6J("formGroup",n.secondFormGroup),I.xp6(5),I.Oqu(I.lcZ(39,58,"DIALOGS.CREATE_SERVICE_MEMBER.NAMESPACE")),I.xp6(3),I.Q6J("ngForOf",n.namespaceOptions),I.xp6(1),I.Q6J("floatLabel",n.secondFormGroup.get("loginCtrl").disabled?"always":null),I.xp6(2),I.Oqu(I.lcZ(45,60,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN")),I.xp6(2),I.Q6J("hidden",n.secondFormGroup.get("loginCtrl").disabled),I.xp6(1),I.Q6J("ngIf",n.secondFormGroup.get("loginCtrl").hasError("required")),I.xp6(1),I.Q6J("ngIf",n.secondFormGroup.get("loginCtrl").hasError("loginExists")),I.xp6(1),I.Q6J("ngIf",n.secondFormGroup.get("loginCtrl").hasError("pattern")&&!n.secondFormGroup.get("loginCtrl").hasError("minlength")),I.xp6(1),I.Q6J("ngIf",n.secondFormGroup.get("loginCtrl").hasError("maxlength")),I.xp6(1),I.Q6J("ngIf",n.secondFormGroup.get("loginCtrl").hasError("minlength")),I.xp6(1),I.Q6J("ngIf",n.secondFormGroup.get("loginCtrl").disabled),I.xp6(1),I.s9C("matTooltip",I.lcZ(54,62,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_NOT_SUPPORTED")),I.Q6J("matTooltipDisabled","Not selected"!==n.secondFormGroup.get("namespaceCtrl").value),I.xp6(2),I.Q6J("checked",n.secondFormGroup.get("generatePasswordCtrl").value&&n.secondFormGroup.get("generatePasswordCtrl").enabled)("value",!0),I.xp6(1),I.hij(" ",I.lcZ(57,64,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_RANDOM")," "),I.xp6(2),I.Q6J("checked",!n.secondFormGroup.get("generatePasswordCtrl").value&&n.secondFormGroup.get("generatePasswordCtrl").enabled)("value",!1),I.xp6(1),I.hij(" ",I.lcZ(60,66,"DIALOGS.CREATE_SERVICE_MEMBER.ENTER_PASSWORD")," "),I.xp6(2),I.ekj("input-disabled",n.secondFormGroup.get("generatePasswordCtrl").value),I.xp6(1),I.Q6J("formGroup",n.secondFormGroup)("passwordRequired",!n.secondFormGroup.get("generatePasswordCtrl").value)("namespace",n.selectedNamespace),I.xp6(4),I.Oqu(I.lcZ(67,68,"DIALOGS.CREATE_SERVICE_MEMBER.ASSOCIATED_USERS")),I.xp6(3),I.Q6J("ngForOf",n.assignedMembers),I.xp6(2),I.Oqu(I.lcZ(72,70,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_INFO")),I.xp6(3),I.s9C("placeholder",I.lcZ(75,72,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_PLACEHOLDER")),I.Q6J("formControl",n.searchCtrl),I.xp6(2),I.Q6J("disabled",n.loading||0===n.searchCtrl.value.length),I.xp6(3),I.Q6J("disabled",0===n.selection.selected.length),I.xp6(1),I.Oqu(I.lcZ(81,74,"DIALOGS.CREATE_SERVICE_MEMBER.ADD_USER")),I.xp6(2),I.Q6J("ngIf",n.loading),I.xp6(1),I.Q6J("ngIf",!n.loading)}}function Nl(t,e){1&t&&I._UZ(0,"mat-spinner",39)}function Ol(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",49),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).stepperPrevious()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.BACK")," "))}function xl(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",30),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).stepperNext()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}if(2&t){var n=I.oxw(2);I.ekj("ml-2",void 0!==n.stepper&&0!==n.stepper.selectedIndex)("ml-auto",!(void 0!==n.stepper&&0!==n.stepper.selectedIndex)),I.Q6J("disabled",n.getStepperNextConditions()),I.xp6(1),I.hij(" ",I.lcZ(2,6,"DIALOGS.CREATE_SERVICE_MEMBER.NEXT")," ")}}function Ll(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",50),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).onCreate()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}if(2&t){var n=I.oxw(2);I.Q6J("disabled",n.firstFormGroup.invalid||"Not selected"!==n.secondFormGroup.get("namespaceCtrl").value&&n.secondFormGroup.invalid),I.xp6(1),I.Oqu(I.lcZ(2,2,"DIALOGS.CREATE_SERVICE_MEMBER.CREATE"))}}function Cl(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",44),I.TgZ(1,"button",45),I.NdJ("click",function(){return I.CHM(i),I.oxw().onCancel()}),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.YNc(4,Ol,3,3,"button",46),I.YNc(5,xl,3,8,"button",47),I.YNc(6,Ll,3,4,"button",48),I.qZA()}if(2&t){var n=I.oxw();I.xp6(2),I.hij(" ",I.lcZ(3,4,"DIALOGS.CREATE_SERVICE_MEMBER.CANCEL")," "),I.xp6(2),I.Q6J("ngIf",void 0!==n.stepper&&0!==n.stepper.selectedIndex),I.xp6(1),I.Q6J("ngIf",void 0!==n.stepper&&n.stepper.selectedIndex!==n.stepper._steps.length-1),I.xp6(1),I.Q6J("ngIf",void 0!==n.stepper&&n.stepper.selectedIndex===n.stepper._steps.length-1)}}var Rl=function(){var t=function(){function t(e,i,n,o,r,s,l,u,c,p){var d=this;a(this,t),this.dialogRef=e,this.data=i,this.membersManagerService=n,this.usersManagerService=o,this.notificator=r,this.translate=s,this.store=l,this.apiRequestConfiguration=u,this._formBuilder=c,this.cd=p,this.namespaceOptions=[],this.selectedNamespace=null,this.namespaceRules=[],this.parsedRules=new Map,this.firstSearchDone=!1,this.searchCtrl=new Te.NI(""),this.members=[],this.selection=new ga.Ov(!0,[]),this.tableId=Za.j1,this.assignedMembers=[],this.candidate={},this.successMessageMember="",this.successMessagePwd="",this.processing=!1,s.get("DIALOGS.CREATE_SERVICE_MEMBER.SUCCESS_MEMBER").subscribe(function(t){return d.successMessageMember=t}),s.get("DIALOGS.CREATE_SERVICE_MEMBER.SUCCESS_PWD").subscribe(function(t){return d.successMessagePwd=t})}return r(t,[{key:"ngAfterViewInit",value:function(){this.cd.detectChanges()}},{key:"ngOnInit",value:function(){var t=this;this.firstFormGroup=this._formBuilder.group({nameCtrl:["",Te.kI.required],emailCtrl:["",[Te.kI.required,Te.kI.pattern("\\w+([.-]?\\w+)*@\\w+([.-]?\\w+)*(.\\w{2,3})+")]],subjectCtrl:[null],issuerCtrl:[null]}),this.secondFormGroup=this._formBuilder.group({namespaceCtrl:["Not selected"],loginCtrl:["",[Te.kI.pattern("^[a-z][a-z0-9_-]+$"),Te.kI.maxLength(15),Te.kI.minLength(2)]],passwordCtrl:["",Te.kI.required,[(0,Ws.yT)(null,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],generatePasswordCtrl:[!0]},{validators:g.dN.passwordMatchValidator}),this.namespaceOptions=["Not selected"],this.membersManagerService.getAllNamespacesRules().subscribe(function(e){t.namespaceRules=e,t.parseNamespaceRules(),t.loading=!1}),this.onNamespaceChanged("Not selected");var i=this.store.getPerunPrincipal().user;this.membersManagerService.getMembersByUser(i.id).subscribe(function(n){var a,o={},r=e(n);try{for(r.s();!(a=r.n()).done;){var s=a.value;s.voId===t.data.voId&&(o=s)}}catch(l){r.e(l)}finally{r.f()}o.user=i,t.assignedMembers.push(o)})}},{key:"existingLoginValidator",value:function(){var t=this;return function(e){var i=t.secondFormGroup.get("namespaceCtrl").value.toLowerCase();return i="not selected"===i?"mu":i,e.valueChanges.pipe((0,zs.b)(500),(0,Xs.q)(1),(0,$s.w)(function(){return t.usersManagerService.isLoginAvailable(i,e.value).pipe((0,Yr.U)(function(t){return t?null:{loginExists:!0}}))}))}}},{key:"onCreate",value:function(){var t=this;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;var e=this.firstFormGroup.get("subjectCtrl");e&&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");var i=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase(),n=this.parsedRules.get(i),a="urn:perun:user:attribute-def:def:login-namespace:".concat(i);"Not selected"!==this.secondFormGroup.get("namespaceCtrl").value&&"disabled"===n.login?this.usersManagerService.generateAccountForName(i,this.firstFormGroup.get("nameCtrl").value).subscribe(function(e){t.candidate.attributes[a]=e[a],t.createSpecificMember()},function(){return t.processing=!1}):("Not selected"!==this.secondFormGroup.get("namespaceCtrl").value&&(this.candidate.attributes[a]=this.secondFormGroup.get("loginCtrl").value),this.createSpecificMember())}},{key:"createSpecificMember",value:function(){var t=this;this.membersManagerService.createSpecificMember({vo:this.data.voId,specificUserType:"SERVICE",specificUserOwners:this.assignedMembers.map(function(t){return t.user}),candidate:this.candidate}).subscribe(function(e){t.membersManagerService.validateMemberAsync(e.id).subscribe(function(e){t.notificator.showSuccess(t.successMessageMember),"Not selected"!==t.secondFormGroup.get("namespaceCtrl").value?t.setPassword(e,t.secondFormGroup.get("generatePasswordCtrl").value):(t.dialogRef.close(!0),t.processing=!1)},function(){return t.processing=!1})},function(){return t.processing=!1})}},{key:"parseNamespaceRules",value:function(){var t,i=e(this.namespaceRules);try{for(i.s();!(t=i.n()).done;){var n=t.value;this.namespaceOptions.push(n.namespaceName);var a={login:"disabled"};this.parseAttributes(a,n.requiredAttributes,"required"),this.parseAttributes(a,n.optionalAttributes,"optional"),this.parsedRules.set(n.namespaceName,a)}}catch(o){i.e(o)}finally{i.f()}}},{key:"parseAttributes",value:function(t,i,n){var a,o=e(i);try{for(o.s();!(a=o.n()).done;){switch(a.value){case"login":t.login=n}}}catch(r){o.e(r)}finally{o.f()}}},{key:"setPassword",value:function(t,e){var i=this,n=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase(),a=this.secondFormGroup.get("passwordCtrl").value;if(e){if("disabled"===this.parsedRules.get(n).login)return void this.validateMember(t.id);this.usersManagerService.reserveRandomPassword(t.userId,n).subscribe(function(){i.usersManagerService.validatePasswordForUser(t.userId,n).subscribe(function(){i.validateMember(t.id,!1)},function(){i.processing=!1,i.dialogRef.close(!0)})},function(){i.processing=!1,i.dialogRef.close(!0)})}else this.usersManagerService.reservePasswordForUser(t.userId,n,a).subscribe(function(){i.usersManagerService.validatePasswordForUser(t.userId,n).subscribe(function(){i.validateMember(t.id)},function(){i.processing=!1,i.dialogRef.close(!0)})},function(){i.processing=!1,i.dialogRef.close(!0)})}},{key:"validateMember",value:function(t){var e=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.membersManagerService.validateMemberAsync(t).subscribe(function(){i&&e.notificator.showSuccess(e.successMessagePwd),e.dialogRef.close(!0),e.processing=!1},function(){e.processing=!1,e.dialogRef.close(!0)})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSearchByString",value:function(){var t=this;this.loading=!0,this.membersManagerService.findCompleteRichMembersForVo(this.data.voId,[null],this.searchCtrl.value).subscribe(function(e){t.members=e.filter(function(t){return!t.user.specificUser}),t.firstSearchDone=!0,t.loading=!1})}},{key:"addUsers",value:function(){var t=this,e=this.assignedMembers.map(function(t){return t.id});this.selection.selected.forEach(function(i){e.includes(i.id)||t.assignedMembers.push(i)}),this.selection.clear()}},{key:"removeUser",value:function(t){this.assignedMembers=this.assignedMembers.filter(function(e){return e.id!==t.id})}},{key:"onNamespaceChanged",value:function(t){this.selectedNamespace=t.toLowerCase();var e=this.secondFormGroup.get("loginCtrl"),i=this.secondFormGroup.get("passwordCtrl"),n=this.secondFormGroup.get("passwordAgainCtrl"),a=this.secondFormGroup.get("generatePasswordCtrl");if("Not selected"!==t){if("disabled"===this.parsedRules.get(this.selectedNamespace).login)e.disable(),e.setValue("");else{var o=[Te.kI.required,Te.kI.pattern("^[a-z][a-z0-9_-]+$"),Te.kI.maxLength(15),Te.kI.minLength(2)];(0,g.mH)(e,o,[this.existingLoginValidator()])}(0,g.mH)(a,[]),this.passwordOptionChanged()}else e.disable(),e.setValue(""),i.disable(),i.setValue(""),n.disable(),n.setValue(""),a.disable(),a.dirty||a.setValue(!0)}},{key:"passwordOptionChanged",value:function(){var t=this.secondFormGroup.get("passwordCtrl"),e=this.secondFormGroup.get("passwordAgainCtrl");this.secondFormGroup.get("generatePasswordCtrl").value?(t.disable(),t.setValue(""),e.disable(),e.setValue("")):((0,g.mH)(t,[Te.kI.required],[(0,Ws.yT)(this.selectedNamespace,this.usersManagerService,this.apiRequestConfiguration)]),(0,g.mH)(e,[]))}},{key:"getStepperNextConditions",value:function(){switch(this.stepper.selectedIndex){case 0:return this.firstFormGroup.invalid||this.firstFormGroup.pending;case 1:return this.secondFormGroup.invalid||this.secondFormGroup.pending||"Not selected"===this.secondFormGroup.get("namespaceCtrl").value;default:return!1}}},{key:"stepperPrevious",value:function(){this.stepper.previous()}},{key:"stepperNext",value:function(){this.stepper.next()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(v.so),I.Y36(v.WI),I.Y36(d.uq),I.Y36(d.Fv),I.Y36(m.V6),I.Y36(x.sK),I.Y36(m.d6),I.Y36(m.F5),I.Y36(Te.qu),I.Y36(I.sBO))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-create-service-member-dialog"]],viewQuery:function(t,e){var i;(1&t&&I.Gf(il,5),2&t)&&(I.iGM(i=I.CRH())&&(e.stepper=i.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"],["formControlName","namespaceCtrl",3,"valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"floatLabel"],["formControlName","loginCtrl","matInput","","required","",3,"hidden"],["class","input-disabled",4,"ngIf"],["formControlName","generatePasswordCtrl","matTooltipPosition","left",1,"display-flex","mt-3",3,"matTooltipDisabled","matTooltip","ngModelChange"],[3,"checked","value"],[3,"formGroup","passwordRequired","namespace"],[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"],[3,"value"],[1,"input-disabled"],[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(t,e){1&t&&(I.TgZ(0,"div",0),I.TgZ(1,"h1",1),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.YNc(4,Sl,84,76,"div",2),I.YNc(5,Nl,1,0,"mat-spinner",3),I.YNc(6,Cl,7,6,"div",4),I.qZA()),2&t&&(I.xp6(2),I.Oqu(I.lcZ(3,4,"DIALOGS.CREATE_SERVICE_MEMBER.TITLE")),I.xp6(2),I.Q6J("ngIf",!e.processing),I.xp6(1),I.Q6J("ngIf",e.processing),I.xp6(1),I.Q6J("ngIf",!e.processing))},directives:[s.O5,v.xY,Jr.Vq,Jr.C0,Te._Y,Te.JL,Te.sg,Jr.VY,be.KE,be.hX,Te.Fj,Se.Nt,Te.JJ,Te.u,Te.Q7,_e.gD,s.sg,ve.VQ,S.gM,ve.U0,Ks.G,tl.i$,Te.oH,O.lW,_.Hw,be.TO,Ne.ey,tl.Tg,b.$g,el.O,ft.w,v.H8],pipes:[x.X$,qt.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}"]}),t}(),Ml=o(4374);function yl(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",7),I.NdJ("click",function(){return I.CHM(i),I.oxw().onRemoveMembers()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}if(2&t){var n=I.oxw();I.Q6J("disabled",n.selection.isEmpty()),I.xp6(1),I.hij(" ",I.lcZ(2,2,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.DELETE"),"\n")}}function Dl(t,e){1&t&&I._UZ(0,"mat-spinner",8)}var Ul=function(){return["checkbox","id","type","fullName","status"]};function ql(t,e){if(1&t&&I._UZ(0,"perun-web-apps-members-list",9),2&t){var i=I.oxw();I.Q6J("tableId",i.tableId)("displayedColumns",I.DdM(5,Ul))("selection",i.selection)("filter",i.searchString)("members",i.members)}}var Pl,wl,Gl=[{path:"",component:u.Y},{path:":voId",component:ut,children:[{path:"",component:K,data:{animation:"VoOverviewPage"}},{path:"attributes",component:me,data:{animation:"VoAttributesPage"}},{path:"groups",component:tt.G,data:{animation:"VoGroupsPage"}},{path:"members",component:et.y,data:{animation:"VoMembersPage"}},{path:"resources",component:ce,children:[{path:"",component:ca,data:{animation:"VoResourcesOverviewPage"}},{path:"preview",component:pa.z,data:{animation:"VoResourcesPreviewPage"}},{path:"states",component:da.z,data:{animation:"VoResourcesStatesPage"}},{path:"tags",component:Ca,data:{animation:"VoResourcesTagsPage"}}]},{path:"applications",component:pe.c,data:{animation:"VoApplicationsPage"}},{path:"applications/:applicationId",component:Di,data:{animation:"VoApplicationDetailPage"}},{path:"sponsoredMembers",component:Ts.T,data:{animation:"VoSettingsSponsoredMembersPage"}},{path:"serviceAccounts",component:(Pl=function(){function t(e,i,n,o,r){a(this,t),this.membersManager=e,this.dialog=i,this.authResolver=n,this.authzService=o,this.entityStorageService=r,this.members=[],this.selection=new ga.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=Za._c}return r(t,[{key:"ngOnInit",value:function(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.removeAuth=this.authzService.isAuthorized("deleteMembers_List_policy",[this.vo]),this.refresh()}},{key:"createServiceMember",value:function(){var t=this,e=(0,g.kZ)();e.width="750px",e.data={voId:this.vo.id},this.dialog.open(Rl,e).afterClosed().subscribe(function(e){e&&t.refresh()})}},{key:"onRemoveMembers",value:function(){var t=this,e=(0,g.kZ)();e.width="450px",e.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(Ml.X,e).afterClosed().subscribe(function(e){e&&(t.refresh(),t.selection.clear())})}},{key:"applyFilter",value:function(t){this.searchString=t}},{key:"refresh",value:function(){var t=this;this.loading=!0,this.membersManager.findCompleteRichMembersForVo(this.vo.id,[null],"(Service)").subscribe(function(e){t.members=e,t.loading=!1})}}]),t}(),Pl.\u0275fac=function(t){return new(t||Pl)(I.Y36(d.uq),I.Y36(v.uw),I.Y36(m.x4),I.Y36(m.x4),I.Y36(m.fb))},Pl.\u0275cmp=I.Xpm({type:Pl,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","filter","members",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","displayedColumns","selection","filter","members"]],template:function(t,e){1&t&&(I.TgZ(0,"h1",0),I._uU(1),I.ALo(2,"translate"),I.qZA(),I.TgZ(3,"perun-web-apps-refresh-button",1),I.NdJ("refresh",function(){return e.refresh()}),I.qZA(),I.TgZ(4,"button",2),I.NdJ("click",function(){return e.createServiceMember()}),I._uU(5),I.ALo(6,"translate"),I.qZA(),I.YNc(7,yl,3,4,"button",3),I.TgZ(8,"perun-web-apps-immediate-filter",4),I.NdJ("filter",function(t){return e.applyFilter(t)}),I.qZA(),I.YNc(9,Dl,1,0,"mat-spinner",5),I.YNc(10,ql,1,6,"perun-web-apps-members-list",6)),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,6,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.TITLE")),I.xp6(4),I.hij(" ",I.lcZ(6,8,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.CREATE"),"\n"),I.xp6(2),I.Q6J("ngIf",e.removeAuth),I.xp6(1),I.Q6J("placeholder","VO_DETAIL.SETTINGS.SERVICE_MEMBERS.FILTER"),I.xp6(1),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[ba.t,O.lW,s.O5,_a.L,b.$g,el.O],pipes:[x.X$],styles:[""]}),Pl),data:{animation:"VoSettingsServiceMembersPage"}},{path:"statistics",component:ys,data:{animation:"VoStatisticsPage"}},{path:"settings",component:de,children:[{path:"",component:Ae,data:{animation:"VoSettingsOverviewPage"}},{path:"expiration",component:Je,data:{animation:"VoSettingsExpirationPage"}},{path:"managers",component:Qe,data:{animation:"VoSettingsManagersPage"}},{path:"applicationForm",component:Wi.w,data:{animation:"SettingsApplicationFormPage"}},{path:"applicationForm/preview",component:zn,data:{animation:"SettingsApplicationFormPreviewPage"}},{path:"applicationForm/manageGroups",component:js},{path:"notifications",component:wo,data:{animation:"SettingsApplicationFormNotificationsPage"}},{path:"extsources",component:dr,data:{animation:"VoSettingsExtSourcesPage"}}]}]},{path:":voId/members/:memberId",component:z,children:[{path:"",component:ie,data:{animation:"MemberOverviewPage"}},{path:"attributes",component:ua,data:{animation:"MemberAttributesPage"}},{path:"groups",component:ne.j,data:{animation:"MemberGroupsPage"}},{path:"applications",component:Gr,data:{animation:"MemberApplicationsPage"}},{path:"applications/:applicationId",component:Di,data:{animation:"MemberApplicationDetailPage"}},{path:"resources",component:us,data:{animation:"MemberResourcesPage"}}]},{path:":voId/groups/:groupId",component:Y,children:[{path:"",component:le,data:{animation:"GroupOverviewPage"}},{path:"members",component:Ui.y,data:{animation:"GroupMembersPage"}},{path:"subgroups",component:ue.u,data:{animation:"GroupSubgroupsPage"}},{path:"applications",component:Ve.W,data:{animation:"GroupApplicationsPage"}},{path:"resources",component:qi.q,data:{animation:"GroupResourcesPage"}},{path:"attributes",component:Hi,data:{animation:"GroupAttributesPage"}},{path:"statistics",component:qs,data:{animation:"GroupStatisticsPage"}},{path:"settings",component:Pi,children:[{path:"",component:$i,data:{animation:"GroupSettingsOverviewPage"}},{path:"expiration",component:Ma,data:{animation:"GroupSettingsExpirationPage"}},{path:"managers",component:ya,data:{animation:"GroupSettingsManagersPage"}},{path:"applicationForm",component:Go.Z,data:{animation:"GroupSettingsApplicationFormPage"}},{path:"applicationForm/preview",component:zn},{path:"notifications",component:Ho,data:{animation:"GroupSettingsNotificationsPage"}},{path:"relations",component:Cr,data:{animation:"GroupSettingsRelationsPage"}},{path:"extsources",component:_s,data:{animation:"GroupSettingsExtsourcesPage"}}]},{path:"applications/:applicationId",component:Di,data:{animation:"GroupApplicationDetailPage"}}]},{path:":voId/resources/:resourceId",component:cs.b,children:[{path:"",component:ps.H,data:{animation:"ResourceOverviewPage"}},{path:"groups",component:ds.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:As.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"attributes",component:hs.X,data:{animation:"ResourceAttributesPage"}},{path:"members",component:Is.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:Hs.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:gs.t,children:[{path:"",component:ms.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:fs.O,data:{animation:"ResourceSettingsManagersPage"}}]}]}],kl=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=I.oAB({type:t}),t.\u0275inj=I.cJS({imports:[[l.Bz.forChild(Gl)],l.Bz]}),t}(),Yl=o(28780),Jl=o(22727),Vl=o(22280),Fl=((wl=function t(){a(this,t)}).\u0275fac=function(t){return new(t||wl)},wl.\u0275mod=I.oAB({type:wl}),wl.\u0275inj=I.cJS({imports:[[s.ez,kl,Yl.m,Jl.r,Sr.ez,Vl.d4,g.Je]]}),wl)}}])}(); \ No newline at end of file diff --git a/dist/apps/admin-gui/427-es5.beaf65977e4daa30fd76.js b/dist/apps/admin-gui/427-es5.beaf65977e4daa30fd76.js new file mode 100644 index 000000000..18083d5e1 --- /dev/null +++ b/dist/apps/admin-gui/427-es5.beaf65977e4daa30fd76.js @@ -0,0 +1 @@ +!function(){function t(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==i)return;var n,a,o=[],r=!0,s=!1;try{for(i=i.call(t);!(r=(n=i.next()).done)&&(o.push(n.value),!e||o.length!==e);r=!0);}catch(l){s=!0,a=l}finally{try{r||null==i.return||i.return()}finally{if(s)throw a}}return o}(t,e)||i(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=i(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var a=0,o=function(){};return{s:o,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,r=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw r}}}}function i(t,e){if(t){if("string"==typeof t)return n(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(t,e):void 0}}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i_policy",[t.group])?t.groupService.getRichGroupByIdWithAttributesByNames(i,t.attrNames).subscribe(function(e){t.group=e,t.syncEnabled=t.isSynchronized(),t.syncAuth=t.guiAuthResolver.isAuthorized("forceGroupSynchronization_Group_policy",[t.group])},function(){return t.loading=!1}):t.syncEnabled=!1,t.editAuth=t.guiAuthResolver.isAuthorized("updateGroup_Group_policy",[t.group]),t.deleteAuth=t.guiAuthResolver.isAuthorized("deleteGroup_Group_boolean_policy",[t.group]),t.setMenuItems(),t.loading=!1},function(){return t.loading=!1})},function(){return t.loading=!1})})}},{key:"setMenuItems",value:function(){var t=this.sideMenuItemService.parseVo(this.vo),e=this.sideMenuItemService.parseGroup(this.group);this.sideMenuService.setAccessMenuItems([t,e])}},{key:"deleteGroup",value:function(){var t=this,e=(0,g.kZ)();e.width="500px",e.data={theme:"group-theme",groups:[this.group]},this.dialog.open(A.P,e).afterClosed().subscribe(function(e){e&&t.router.navigate(["../"],{relativeTo:t.route})})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(T.D),I.Y36(d.YF),I.Y36(l.gz),I.Y36(c.V),I.Y36(d.ff),I.Y36(v.uw),I.Y36(h.x4),I.Y36(l.F0),I.Y36(h.fb),I.Y36(E.G))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-group-detail-page"]],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"],["mat-icon-button","","aria-label","Edit group",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","","aria-label","Edit group",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(t,e){1&t&&(I.TgZ(0,"div",0),I._UZ(1,"perun-web-apps-back-button"),I.YNc(2,M,1,0,"mat-spinner",1),I.YNc(3,k,25,32,"div",2),I.qZA()),2&t&&(I.xp6(2),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading&&void 0!==e.vo&&void 0!==e.group))},directives:[Z.W,s.O5,b.$g,_.Hw,S.gM,s.PC,l.yS,N.A,O.lW],pipes:[x.X$,L.r,C.J,R.F],styles:[""],data:{animation:[p.Ji]}}),t}();function J(t,e){1&t&&I._UZ(0,"mat-spinner",3)}var V=function(t){return["/admin","users",t]};function F(t,e){if(1&t&&(I.TgZ(0,"a",8),I._uU(1),I.qZA()),2&t){var i=I.oxw(2);I.Q6J("routerLink",I.VKq(2,V,i.member.userId)),I.xp6(1),I.hij(" ",i.member.userId," ")}}function Q(t,e){if(1&t&&(I.TgZ(0,"span"),I._uU(1),I.qZA()),2&t){var i=I.oxw(2);I.xp6(1),I.Oqu(i.member.userId)}}var B=function(){return{color:"black"}},j=function(t,e){return["/organizations",t,"members",e]};function H(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"div",4),I._UZ(2,"mat-icon",5),I.ALo(3,"translate"),I.TgZ(4,"div",6),I.TgZ(5,"div",7),I.TgZ(6,"a",8),I._uU(7),I.qZA(),I.TgZ(8,"span",9),I._uU(9),I.qZA(),I.qZA(),I.TgZ(10,"span",10),I._uU(11),I.ALo(12,"translate"),I.ALo(13,"translate"),I.YNc(14,F,2,4,"a",11),I.YNc(15,Q,2,1,"span",2),I.qZA(),I.qZA(),I.qZA(),I._UZ(16,"app-animated-router-outlet"),I.qZA()),2&t){var i=I.oxw();I.xp6(2),I.s9C("matTooltip",I.lcZ(3,9,"MEMBER_DETAIL.ENTITY")),I.Q6J("ngStyle",I.DdM(15,B)),I.xp6(4),I.Q6J("routerLink",I.WLB(16,j,i.vo.id,i.member.id)),I.xp6(1),I.hij(" ",i.fullName," "),I.xp6(2),I.hij(" \xa0#",i.member.id," "),I.xp6(2),I.AsE(" ",I.lcZ(12,11,"MEMBER_DETAIL.ENTITY"),", ",I.lcZ(13,13,"MEMBER_DETAIL.USER_ID"),": "),I.xp6(3),I.Q6J("ngIf",i.isAuthorized),I.xp6(1),I.Q6J("ngIf",!i.isAuthorized)}}var z=function(){var t=function(){function t(e,i,n,o,r,s,l){a(this,t),this.sideMenuItemService=e,this.translate=i,this.sideMenuService=n,this.membersService=o,this.voService=r,this.route=s,this.authResolver=l,this.fullName="",this.isAuthorized=!1,this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.params.subscribe(function(e){var i=e.voId,n=e.memberId;t.isAuthorized=t.authResolver.isPerunAdminOrObserver(),t.voService.getVoById(i).subscribe(function(e){t.vo=e,t.membersService.getRichMemberWithAttributes(n).subscribe(function(e){t.member=e;var i=t.sideMenuItemService.parseVo(t.vo),n=t.sideMenuItemService.parseMember(t.member,t.vo);t.fullName=n.label,t.sideMenuService.setAccessMenuItems([i,n]),t.loading=!1},function(){return t.loading=!1})},function(){return t.loading=!1})})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(c.V),I.Y36(x.sK),I.Y36(T.D),I.Y36(d.uq),I.Y36(d.YF),I.Y36(l.gz),I.Y36(h.x4))},t.\u0275cmp=I.Xpm({type:t,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(t,e){1&t&&(I.TgZ(0,"div",0),I._UZ(1,"perun-web-apps-back-button"),I.YNc(2,J,1,0,"mat-spinner",1),I.YNc(3,H,17,19,"div",2),I.qZA()),2&t&&(I.xp6(2),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading&&void 0!==e.vo&&void 0!==e.member))},directives:[Z.W,s.O5,b.$g,_.Hw,S.gM,s.PC,l.yS,N.A],pipes:[x.X$],styles:[""],data:{animation:[p.Ji]}}),t}(),X=o(8557);function $(t,e){1&t&&I._UZ(0,"mat-spinner",2)}function W(t,e){if(1&t&&(I.TgZ(0,"div"),I._UZ(1,"perun-web-apps-menu-buttons-field",3),I.qZA()),2&t){var i=I.oxw();I.xp6(1),I.Q6J("items",i.navItems)("size","small")}}var K=function(){var t=function(){function t(e,i,n,o,r){a(this,t),this.sideMenuService=e,this.voService=i,this.router=n,this.authResolver=o,this.entityStorageService=r,this.items=[],this.navItems=[],this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.initNavItems(),this.loading=!1}},{key:"initNavItems",value:function(){this.authResolver.isAuthorized("getCompleteRichMembers_Vo_List_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-user",url:"/organizations/".concat(this.vo.id,"/members"),label:"MENU_ITEMS.VO.MEMBERS",style:"vo-btn"}),this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-group",url:"/organizations/".concat(this.vo.id,"/groups"),label:"MENU_ITEMS.VO.GROUPS",style:"vo-btn"}),this.authResolver.isAuthorized("getRichResources_Vo_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-manage-facility",url:"/organizations/".concat(this.vo.id,"/resources"),label:"MENU_ITEMS.VO.RESOURCES",style:"vo-btn"}),this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-applications",url:"/organizations/".concat(this.vo.id,"/applications"),label:"MENU_ITEMS.VO.APPLICATIONS",style:"vo-btn"}),this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-user",url:"/organizations/".concat(this.vo.id,"/sponsoredMembers"),label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",style:"vo-btn"}),this.authResolver.isAuthorized("createSpecificMember_Vo_Candidate_List_SpecificUserType_List_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-service-identity",url:"/organizations/".concat(this.vo.id,"/serviceAccounts"),label:"MENU_ITEMS.VO.SERVICE_MEMBERS",style:"vo-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:"/organizations/".concat(this.vo.id,"/attributes"),label:"MENU_ITEMS.VO.ATTRIBUTES",style:"vo-btn"}),this.authResolver.isAuthorized("getMembersCount_Vo_Status_policy",[this.vo])&&this.authResolver.isAuthorized("getMembersCount_Vo_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-statistics",url:"/organizations/".concat(this.vo.id,"/statistics"),label:"MENU_ITEMS.VO.STATISTICS",style:"vo-btn"}),(this.authResolver.isManagerPagePrivileged(this.vo)||this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[this.vo])||this.authResolver.isThisVoAdminOrObserver(this.vo.id))&&this.navItems.push({cssIcon:"perun-settings2",url:"/organizations/".concat(this.vo.id,"/settings"),label:"MENU_ITEMS.VO.SETTINGS",style:"vo-btn"})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(T.D),I.Y36(d.YF),I.Y36(l.F0),I.Y36(h.x4),I.Y36(h.fb))},t.\u0275cmp=I.Xpm({type:t,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(t,e){1&t&&(I.YNc(0,$,1,0,"mat-spinner",0),I.YNc(1,W,2,2,"div",1)),2&t&&(I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[s.O5,b.$g,X.L],styles:[""]}),t}(),tt=o(48002),et=o(28940),it=o(99608);function nt(t,e){1&t&&I._UZ(0,"mat-spinner",3)}function at(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",13),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).editVo()}),I.TgZ(1,"mat-icon"),I._uU(2,"edit"),I.qZA(),I.qZA()}}function ot(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",14),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).removeVo()}),I.TgZ(1,"mat-icon"),I._uU(2,"delete_forever"),I.qZA(),I.qZA()}}var rt=function(){return{color:"black"}},st=function(t){return["/organizations/",t]};function lt(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"div",4),I._UZ(2,"mat-icon",5),I.ALo(3,"translate"),I.TgZ(4,"div",6),I.TgZ(5,"div",7),I.TgZ(6,"a",8),I._uU(7),I.qZA(),I.TgZ(8,"span",9),I._uU(9),I.qZA(),I.YNc(10,at,3,0,"button",10),I.YNc(11,ot,3,0,"button",11),I.qZA(),I.TgZ(12,"span",12),I._uU(13),I.ALo(14,"translate"),I.ALo(15,"translate"),I.qZA(),I.qZA(),I.qZA(),I._UZ(16,"app-animated-router-outlet"),I.qZA()),2&t){var i=I.oxw();I.xp6(2),I.s9C("matTooltip",I.lcZ(3,10,"VO_DETAIL.ENTITY")),I.Q6J("ngStyle",I.DdM(16,rt)),I.xp6(4),I.Q6J("routerLink",I.VKq(17,st,i.vo.id)),I.xp6(1),I.hij(" ",i.vo.name," "),I.xp6(2),I.hij(" \xa0#",i.vo.id," "),I.xp6(1),I.Q6J("ngIf",i.editAuth),I.xp6(1),I.Q6J("ngIf",i.removeAuth),I.xp6(2),I.lnq(" ",I.lcZ(14,12,"VO_DETAIL.ENTITY"),", ",I.lcZ(15,14,"VO_DETAIL.SHORT_NAME"),": ",i.vo.shortName," ")}}var ut=function(){var t=function(){function t(e,i,n,o,r,s,l,u,c){a(this,t),this.sideMenuService=e,this.voService=i,this.route=n,this.router=o,this.sideMenuItemService=r,this.dialog=s,this.authResolver=l,this.entityStorageService=u,this.reloadEntityDetail=c,this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.reloadData(),this.reloadEntityDetail.entityDetailChange.subscribe(function(){t.reloadData()})}},{key:"reloadData",value:function(){var t=this;this.loading=!0,this.route.params.subscribe(function(e){t.voService.getVoById(e.voId).subscribe(function(e){t.vo=e,t.entityStorageService.setEntity({id:e.id,beanName:e.beanName}),t.editAuth=t.authResolver.isAuthorized("updateVo_Vo_policy",[t.vo]),t.removeAuth=t.authResolver.isAuthorized("deleteVo_Vo_policy",[t.vo]),t.setMenuItems(),(0,g.sF)("vos",t.vo),(0,g.XI)(t.vo),t.loading=!1},function(){return t.loading=!1})})}},{key:"editVo",value:function(){var t=this,e=(0,g.kZ)();e.width="450px",e.data={theme:"vo-theme",vo:this.vo,dialogType:f.Eg.VO},this.dialog.open(f.rd,e).afterClosed().subscribe(function(e){e&&t.voService.getVoById(t.vo.id).subscribe(function(e){t.vo=e,t.setMenuItems()})})}},{key:"setMenuItems",value:function(){var t=this.sideMenuItemService.parseVo(this.vo);this.sideMenuService.setAccessMenuItems([t])}},{key:"removeVo",value:function(){var t=this,e=(0,g.kZ)();e.width="500px",e.data={theme:"vo-theme",vos:[this.vo]},this.dialog.open(it.o,e).afterClosed().subscribe(function(e){e&&t.router.navigate([""])})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(T.D),I.Y36(d.YF),I.Y36(l.gz),I.Y36(l.F0),I.Y36(c.V),I.Y36(v.uw),I.Y36(h.x4),I.Y36(h.fb),I.Y36(E.G))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-vo-detail-page"]],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"],["svgIcon","perun-vo-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","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"],["mat-icon-button","","aria-label","Edit Vo",3,"click"],["mat-icon-button","","aria-label","Remove Vo","data-cy","delete-vo",3,"click"]],template:function(t,e){1&t&&(I.TgZ(0,"div",0),I._UZ(1,"perun-web-apps-back-button"),I.YNc(2,nt,1,0,"mat-spinner",1),I.YNc(3,lt,17,19,"div",2),I.qZA()),2&t&&(I.xp6(2),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading&&void 0!==e.vo))},directives:[Z.W,s.O5,b.$g,_.Hw,S.gM,s.PC,l.yS,N.A,O.lW],pipes:[x.X$],styles:[".shortname[_ngcontent-%COMP%]{font-size:medium}"],data:{animation:[p.Ji]}}),t}(),ct=o(67033),pt=o(95121),dt=o(79592),gt=o(27439),ht=o(64737),mt=o(37665),ft=o(39571),At=o(74842),It=o(37043),Tt=o(73669),vt=o(58506);function Et(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"perun-web-apps-group-search-select",7),I.NdJ("groupSelected",function(t){return I.CHM(i),I.oxw().groupIsSelected(t)}),I.qZA()}if(2&t){var n=I.oxw();I.Q6J("groups",n.groups)("firstSelectedGroup",n.selectedGroup)}}function Zt(t,e){1&t&&I._UZ(0,"mat-spinner",8)}function bt(t,e){1&t&&(I.TgZ(0,"app-alert",9),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.NO_GROUPS_FOUND")))}function _t(t,e){1&t&&I._UZ(0,"th",17)}function St(t,e){if(1&t&&(I.TgZ(0,"td",18),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.xp6(1),I.hij("",i,":")}}function Nt(t,e){1&t&&I._UZ(0,"th",17)}function Ot(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",22),I.NdJ("click",function(){return I.CHM(i),I.oxw(4).changeStatus()}),I.TgZ(1,"mat-icon"),I._uU(2,"edit"),I.qZA(),I.qZA()}}function xt(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"i"),I.ALo(2,"memberStatusIconColor"),I._uU(3),I.ALo(4,"memberStatusIcon"),I.qZA(),I.TgZ(5,"b",20),I._uU(6),I.ALo(7,"transformMemberStatus"),I.qZA(),I.YNc(8,Ot,3,0,"button",21),I.qZA()),2&t){var i=I.oxw(3);I.xp6(1),I.Gre("material-icons vert-center mr-1 ",I.lcZ(2,6,i.selectedMember.groupStatus),""),I.xp6(2),I.hij(" ",I.lcZ(4,8,i.selectedMember.groupStatus)," "),I.xp6(3),I.hij(" ",I.lcZ(7,10,i.selectedMember.groupStatus)," "),I.xp6(2),I.Q6J("ngIf",i.authResolver.isThisVoAdmin(i.vo.id)||i.authResolver.isThisGroupAdmin(i.selectedGroup.id))}}function Lt(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",22),I.NdJ("click",function(){return I.CHM(i),I.oxw(4).changeExpiration()}),I.TgZ(1,"mat-icon"),I._uU(2,"edit"),I.qZA(),I.qZA()}}function Ct(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"i",2),I._uU(2),I.ALo(3,"parseDate"),I.qZA(),I.YNc(4,Lt,3,0,"button",21),I.qZA()),2&t){var i=I.oxw(3);I.xp6(2),I.hij(" ",I.lcZ(3,2,i.expiration)," "),I.xp6(2),I.Q6J("ngIf",i.authResolver.isThisVoAdmin(i.vo.id)||i.authResolver.isThisGroupAdmin(i.selectedGroup.id))}}function Rt(t,e){if(1&t&&(I.TgZ(0,"td",19),I.YNc(1,xt,9,12,"div",6),I.YNc(2,Ct,5,4,"div",6),I.qZA()),2&t){var i=e.$implicit;I.xp6(1),I.Q6J("ngIf","Status"===i),I.xp6(1),I.Q6J("ngIf","Expiration"===i)}}function Mt(t,e){1&t&&I._UZ(0,"tr",23)}function yt(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"table",10),I.ynx(2,11),I.YNc(3,_t,1,0,"th",12),I.YNc(4,St,2,1,"td",13),I.BQk(),I.ynx(5,14),I.YNc(6,Nt,1,0,"th",12),I.YNc(7,Rt,3,2,"td",15),I.BQk(),I.YNc(8,Mt,1,0,"tr",16),I.qZA(),I.qZA()),2&t){var i=I.oxw();I.xp6(1),I.Q6J("dataSource",i.groupMembershipDataSource),I.xp6(7),I.Q6J("matRowDefColumns",i.displayedColumns)}}var Dt=function(){var t=function(){function t(e,i,n,o){a(this,t),this.groupsManager=e,this.authResolver=i,this.translate=n,this.dialog=o,this.noGroups=!1,this.groupMembershipDataSource=new ct.by,this.expiration="",this.displayedColumns=["attName","attValue"]}return r(t,[{key:"ngOnChanges",value:function(){var t=this;this.loading=!0,this.initLoading=!0,this.groupMembershipDataSource=new ct.by(["Status","Expiration"]),this.groupsManager.getMemberGroups(this.member.id).subscribe(function(e){if(t.groups=e,0!==t.groups.length){var i=t.findInitiallySelectedGroupId();t.groupIsSelected(i),t.initLoading=!1}else t.noGroups=!0})}},{key:"findInitiallySelectedGroupId",value:function(){var t=this;if(this.recentIds=(0,g.vL)("groups"),this.recentIds){var e=this.groups.find(function(e){return e.id===t.recentIds[0]});if(e)return e}return this.groups[0]}},{key:"groupIsSelected",value:function(t){var e=this;this.loading=!0,this.selectedGroup=t,this.groupsManager.getGroupRichMembersByIds(this.selectedGroup.id,[this.member.id],[m.r.MEMBER_DEF_GROUP_EXPIRATION]).subscribe(function(t){e.selectedMember=t[0],e.expirationAtt=e.selectedMember.memberAttributes.find(function(t){return"groupMembershipExpiration"===t.baseFriendlyName}),e.expirationAtt?(e.groupMembershipDataSource=new ct.by(["Status","Expiration"]),e.expiration=e.expirationAtt.value?e.expirationAtt.value:e.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES")):e.groupMembershipDataSource=new ct.by(["Status"]),e.loading=!1})}},{key:"changeExpiration",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=(0,g.kZ)();i.width="400px",i.data={memberId:this.member.id,groupId:this.selectedGroup.id,expirationAttr:this.expirationAtt,status:this.selectedMember.groupStatus,statusChanged:e},this.dialog.open(f.u3,i).afterClosed().subscribe(function(e){e&&t.groupIsSelected(t.selectedGroup)})}},{key:"changeStatus",value:function(){var t=this,e=(0,g.kZ)();e.width="600px",e.data={member:this.selectedMember,voId:this.vo.id,groupId:this.selectedGroup.id},this.dialog.open(f.pf,e).afterClosed().subscribe(function(e){e&&(t.selectedMember=e,t.changeExpiration(!0))})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(d.ff),I.Y36(h.x4),I.Y36(x.sK),I.Y36(v.uw))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-member-overview-groups"]],inputs:{vo:"vo",member:"member"},features:[I.TTD],decls:11,vars:7,consts:[[1,"mat-elevation-z3","groups-card","mt-4"],[1,"page-subtitle"],[1,"column-center"],[3,"groups","firstSelectedGroup","groupSelected",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[3,"groups","firstSelectedGroup","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(t,e){1&t&&(I.TgZ(0,"mat-card",0),I.TgZ(1,"mat-card-header"),I.TgZ(2,"mat-card-title"),I.TgZ(3,"h1",1),I._uU(4),I.ALo(5,"translate"),I.qZA(),I.qZA(),I.qZA(),I.TgZ(6,"mat-card-content",2),I.YNc(7,Et,1,2,"perun-web-apps-group-search-select",3),I.YNc(8,Zt,1,0,"mat-spinner",4),I.YNc(9,bt,3,3,"app-alert",5),I.YNc(10,yt,9,2,"div",6),I.qZA(),I.qZA()),2&t&&(I.xp6(4),I.Oqu(I.lcZ(5,5,"MEMBER_DETAIL.OVERVIEW.GROUP_MEMBERSHIP")),I.xp6(3),I.Q6J("ngIf",!e.initLoading),I.xp6(1),I.Q6J("ngIf",(e.loading||e.initLoading)&&!e.noGroups),I.xp6(1),I.Q6J("ngIf",e.noGroups),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[gt.a8,gt.dk,gt.n5,gt.dn,s.O5,mt.h,b.$g,ft.w,ct.BZ,ct.w1,ct.fO,ct.Dz,ct.nj,ct.ge,ct.ev,O.lW,_.Hw,ct.Gk],pipes:[x.X$,At.u,It.f,Tt.r,vt.M],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}"]}),t}(),Ut=function(){var t=function(){function t(){a(this,t)}return r(t,[{key:"transform",value:function(t){return(0,g.Cz)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=I.Yjl({name:"attributeFriendlyName",type:t,pure:!0}),t}(),qt=o(22196);function Pt(t,e){1&t&&I._UZ(0,"mat-spinner",2)}function wt(t,e){1&t&&I._UZ(0,"th",17)}function Gt(t,e){if(1&t&&(I.TgZ(0,"span"),I._uU(1),I.qZA()),2&t){var i=I.oxw().$implicit,n=I.oxw(2);I.xp6(1),I.hij(" ",n.attributes.get(i)[0],": ")}}function kt(t,e){if(1&t&&(I.TgZ(0,"span"),I._uU(1),I.ALo(2,"attributeFriendlyName"),I.qZA()),2&t){var i=I.oxw().$implicit;I.xp6(1),I.hij(" ",I.lcZ(2,1,i),": ")}}function Yt(t,e){if(1&t&&(I.TgZ(0,"td",18),I.YNc(1,Gt,2,1,"span",1),I.YNc(2,kt,3,3,"span",1),I.qZA()),2&t){var i=e.$implicit,n=I.oxw(2);I.xp6(1),I.Q6J("ngIf",null!==n.attributes.get(i)[0]),I.xp6(1),I.Q6J("ngIf",null===n.attributes.get(i)[0])}}function Jt(t,e){1&t&&I._UZ(0,"th",17)}function Vt(t,e){if(1&t&&(I.TgZ(0,"td",19),I._uU(1),I.qZA()),2&t){var i=e.$implicit,n=I.oxw(2);I.xp6(1),I.hij(" ",n.attributes.get(i)[1]," ")}}function Ft(t,e){1&t&&I._UZ(0,"tr",20)}function Qt(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"mat-card",5),I.TgZ(1,"mat-card-header"),I.TgZ(2,"mat-card-title"),I.TgZ(3,"h1",6),I._uU(4),I.ALo(5,"translate"),I.qZA(),I.qZA(),I.qZA(),I.TgZ(6,"mat-card-content",21),I.TgZ(7,"div",22),I.ALo(8,"translate"),I.TgZ(9,"button",23),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).requestPwdReset()}),I._uU(10),I.ALo(11,"translate"),I.qZA(),I.qZA(),I.qZA(),I.qZA()}if(2&t){var n=I.oxw(2);I.xp6(4),I.Oqu(I.lcZ(5,5,"MEMBER_DETAIL.OVERVIEW.RESET_PASSWORD")),I.xp6(3),I.Q6J("matTooltip",I.lcZ(8,7,"MEMBER_DETAIL.OVERVIEW.RESET_DISABLED"))("matTooltipDisabled",n.logins.length>0),I.xp6(2),I.Q6J("disabled",!n.logins.length),I.xp6(1),I.hij(" ",I.lcZ(11,9,"MEMBER_DETAIL.OVERVIEW.SEND_REQUEST")," ")}}function Bt(t,e){1&t&&(I.TgZ(0,"th",17),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.SPONSOR_NAME")," "))}function jt(t,e){if(1&t&&(I.TgZ(0,"td",33),I._uU(1),I.ALo(2,"userFullName"),I.qZA()),2&t){var i=e.$implicit;I.xp6(1),I.hij(" ",I.lcZ(2,1,i.user)," ")}}function Ht(t,e){1&t&&(I.TgZ(0,"th",17),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.EXPIRATION_TABLE")," "))}function zt(t,e){if(1&t&&(I.TgZ(0,"td",33),I.TgZ(1,"span",34),I._uU(2),I.ALo(3,"parseDate"),I.qZA(),I.qZA()),2&t){var i=e.$implicit;I.xp6(2),I.Oqu(I.lcZ(3,1,i.validityTo))}}function Xt(t,e){1&t&&I._UZ(0,"tr",35)}function $t(t,e){1&t&&I._UZ(0,"tr",20)}var Wt=function(){return["sponsors","expiration"]};function Kt(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"mat-card-content"),I.TgZ(1,"h6",26),I._uU(2),I.ALo(3,"translate"),I.TgZ(4,"button",27),I.NdJ("click",function(){return I.CHM(i),I.oxw(3).changeSponsors()}),I.TgZ(5,"mat-icon"),I._uU(6,"edit"),I.qZA(),I.qZA(),I.qZA(),I.TgZ(7,"table",28),I.ynx(8,29),I.YNc(9,Bt,3,3,"th",9),I.YNc(10,jt,3,3,"td",30),I.BQk(),I.ynx(11,31),I.YNc(12,Ht,3,3,"th",9),I.YNc(13,zt,4,3,"td",30),I.BQk(),I.YNc(14,Xt,1,0,"tr",32),I.YNc(15,$t,1,0,"tr",13),I.qZA(),I.qZA()}if(2&t){var n=I.oxw(3);I.xp6(2),I.hij(" ",I.lcZ(3,4,"MEMBER_DETAIL.OVERVIEW.SPONSORS"),": "),I.xp6(5),I.Q6J("dataSource",n.sponsorsDataSource),I.xp6(7),I.Q6J("matHeaderRowDef",I.DdM(6,Wt)),I.xp6(1),I.Q6J("matRowDefColumns",I.DdM(7,Wt))}}function te(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"mat-card",24),I.TgZ(2,"mat-card-header"),I.TgZ(3,"mat-card-title"),I.TgZ(4,"h1",6),I._uU(5),I.ALo(6,"translate"),I.qZA(),I.qZA(),I.TgZ(7,"mat-card-subtitle",25),I._uU(8),I.ALo(9,"translate"),I.qZA(),I.qZA(),I.YNc(10,Kt,16,8,"mat-card-content",1),I.qZA(),I.qZA()),2&t){var i=I.oxw(2);I.xp6(5),I.Oqu(I.lcZ(6,3,"MEMBER_DETAIL.OVERVIEW.SPONSORSHIP")),I.xp6(3),I.hij(" ",I.lcZ(9,5,"MEMBER_DETAIL.OVERVIEW.SPONSORED_BY")," "),I.xp6(2),I.Q6J("ngIf",0!==i.sponsors.length)}}function ee(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"div",3),I.TgZ(2,"div",4),I.TgZ(3,"mat-card",5),I.TgZ(4,"mat-card-header"),I.TgZ(5,"mat-card-title"),I.TgZ(6,"h1",6),I._uU(7),I.ALo(8,"translate"),I.qZA(),I.qZA(),I.qZA(),I.TgZ(9,"mat-card-content"),I.TgZ(10,"table",7),I.ynx(11,8),I.YNc(12,wt,1,0,"th",9),I.YNc(13,Yt,3,2,"td",10),I.BQk(),I.ynx(14,11),I.YNc(15,Jt,1,0,"th",9),I.YNc(16,Vt,2,1,"td",12),I.BQk(),I.YNc(17,Ft,1,0,"tr",13),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.TgZ(18,"div",4),I._UZ(19,"app-member-overview-membership",14),I._UZ(20,"app-member-overview-groups",14),I.qZA(),I.TgZ(21,"div",4),I.YNc(22,Qt,12,11,"mat-card",15),I.YNc(23,te,11,7,"div",1),I.qZA(),I.qZA(),I.TgZ(24,"div"),I._UZ(25,"perun-web-apps-menu-buttons-field",16),I.qZA(),I.qZA()),2&t){var i=I.oxw();I.xp6(7),I.Oqu(I.lcZ(8,11,"MEMBER_DETAIL.OVERVIEW.PERSONAL")),I.xp6(3),I.Q6J("dataSource",i.dataSource),I.xp6(7),I.Q6J("matRowDefColumns",i.displayedColumns),I.xp6(2),I.Q6J("member",i.member)("vo",i.vo),I.xp6(1),I.Q6J("member",i.member)("vo",i.vo),I.xp6(2),I.Q6J("ngIf",i.pwdResetAuth),I.xp6(1),I.Q6J("ngIf",i.member.sponsored),I.xp6(2),I.Q6J("items",i.navItems)("size","small")}}var ie=function(){var t=function(){function t(e,i,n,o,r,s,l){a(this,t),this.attributesManager=e,this.membersService=i,this.usersManager=n,this.route=o,this.dialog=r,this.authResolver=s,this.storeService=l,this.expiration="",this.logins=[],this.member=null,this.navItems=[],this.attributeNames=[],this.attributes=new Map,this.dataSource=new ct.by,this.displayedColumns=["attName","attValue"],this.sponsors=[],this.sponsorsDataSource=new ct.by,this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.parent.params.subscribe(function(e){var i=e.memberId;t.attributeNames=t.storeService.getMemberProfileAttributeNames(),t.membersService.getRichMemberWithAttributes(i).subscribe(function(e){var i=t.storeService.get("password_namespace_attributes").map(function(t){return(t=t.split(":"))[t.length-1]});t.attributesManager.getLogins(e.userId).subscribe(function(n){t.logins=n.filter(function(t){return i.includes(t.friendlyNameParameter)}),t.member=e,t.initAttributes(),t.dataSource=new ct.by(Array.from(t.attributes.keys())),t.vo={id:e.voId,beanName:"Vo"},t.pwdResetAuth=t.authResolver.isAuthorized("sendPasswordResetLinkEmail_Member_String_String_String_String_policy",[t.vo,t.member]),t.member.sponsored&&t.authResolver.isAuthorized("getSponsorsForMember_Member_List_policy",[t.member])?t.usersManager.getSponsorsForMember(t.member.id,null).subscribe(function(e){t.sponsors=e,t.sponsorsDataSource=new ct.by(t.sponsors),t.initNavItems(),t.refreshData()}):(t.initNavItems(),t.refreshData())},function(){return t.loading=!1})})})}},{key:"initAttributes",value:function(){var t=this;this.attributeNames.forEach(function(e){t.attributes.set(e,[null,"-"])}),this.filterAttributes()}},{key:"filterAttributes",value:function(){var t=this;null!==this.member.memberAttributes&&this.member.memberAttributes.forEach(function(e){t.attributeNames.includes(e.friendlyName)&&t.attributes.set(e.friendlyName,[e.displayName,e.value.toString()])}),null!==this.member.userAttributes&&this.member.userAttributes.forEach(function(e){t.attributeNames.includes(e.friendlyName)&&t.attributes.set(e.friendlyName,[e.displayName,e.value.toString()])})}},{key:"initNavItems",value:function(){this.navItems=[],this.authResolver.isAuthorized("getMemberGroups_Member_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-group",url:"/organizations/".concat(this.member.voId,"/members/").concat(this.member.id,"/groups"),label:"MENU_ITEMS.MEMBER.GROUPS",style:"member-btn"}),this.authResolver.isAuthorized("vo-getApplicationsForMember_Group_Member_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-applications",url:"/organizations/".concat(this.member.voId,"/members/").concat(this.member.id,"/applications"),label:"MENU_ITEMS.MEMBER.APPLICATIONS",style:"member-btn"}),this.authResolver.isAuthorized("getAssignedRichResources_Member_policy",[this.vo])&&this.navItems.push({cssIcon:"perun-resource",url:"/organizations/".concat(this.member.voId,"/members/").concat(this.member.id,"/resources"),label:"MENU_ITEMS.MEMBER.RESOURCES",style:"member-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:"/organizations/".concat(this.vo.id,"/members/").concat(this.member.id,"/attributes"),label:"MENU_ITEMS.MEMBER.ATTRIBUTES",style:"member-btn"})}},{key:"refreshData",value:function(){var t=this;this.loading=!0,this.membersService.getRichMemberWithAttributes(this.member.id).subscribe(function(e){t.member=e,t.loading=!1},function(){return t.loading=!1})}},{key:"requestPwdReset",value:function(){var t=(0,g.kZ)();t.width="400px",t.data={userId:this.member.userId,memberId:this.member.id,logins:this.logins},this.dialog.open(pt.m,t)}},{key:"changeSponsors",value:function(){var t=this,e=(0,g.kZ)();e.width="650px",e.data={sponsors:this.sponsors,member:this.member,theme:"member-theme"},this.dialog.open(dt.H,e).afterClosed().subscribe(function(e){e&&(t.loading=!0,t.membersService.getRichMemberWithAttributes(t.member.id).subscribe(function(e){t.member=e,t.member.sponsored&&t.usersManager.getSponsorsForMember(t.member.id,null).subscribe(function(e){t.sponsors=e,t.sponsorsDataSource.data=t.sponsors}),t.loading=!1}))})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(d.H8),I.Y36(d.uq),I.Y36(d.Fv),I.Y36(l.gz),I.Y36(v.uw),I.Y36(h.x4),I.Y36(h.d6))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-member-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.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,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent",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(t,e){1&t&&(I.YNc(0,Pt,1,0,"mat-spinner",0),I.YNc(1,ee,26,13,"div",1)),2&t&&(I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[s.O5,b.$g,gt.a8,gt.dk,gt.n5,gt.dn,ct.BZ,ct.w1,ct.fO,ct.Dz,ct.nj,ht.b,Dt,X.L,ct.ge,ct.ev,ct.Gk,S.gM,O.lW,gt.$j,_.Hw,ct.as,ct.XQ],pipes:[x.X$,Ut,qt.d,vt.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}"]}),t}(),ne=o(81835);function ae(t,e){1&t&&I._UZ(0,"mat-spinner",2)}var oe=function(t,e){return["/organizations",t,"groups",e]};function re(t,e){if(1&t&&(I.TgZ(0,"p"),I._uU(1),I.ALo(2,"translate"),I.TgZ(3,"a",4),I._uU(4),I.qZA(),I.qZA()),2&t){var i=I.oxw(2);I.xp6(1),I.hij(" ",I.lcZ(2,3,"GROUP_DETAIL.SUBGROUP_INFO")," "),I.xp6(2),I.Q6J("routerLink",I.WLB(5,oe,i.parentGroup.voId,i.parentGroup.id)),I.xp6(1),I.hij(" ",i.parentGroup.name," ")}}function se(t,e){if(1&t&&(I.TgZ(0,"div"),I.YNc(1,re,5,8,"p",1),I._UZ(2,"perun-web-apps-menu-buttons-field",3),I.qZA()),2&t){var i=I.oxw();I.xp6(1),I.Q6J("ngIf",null!==i.parentGroup),I.xp6(1),I.Q6J("items",i.navItems)("size","small")}}var le=function(){var t=function(){function t(e,i,n,o,r,s,l,u){a(this,t),this.route=e,this.groupService=i,this.voService=n,this.guiAuthResolver=o,this.apiRequest=r,this.attributesManager=s,this.notificator=l,this.entityStorageService=u,this.navItems=[],this.parentGroup=null,this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){this.loading=!0,this.group=this.entityStorageService.getEntity(),null!==this.group.parentGroupId?this.loadParentGroupData():(this.parentGroup=null,this.initNavItems(),this.loading=!1)}},{key:"loadParentGroupData",value:function(){var t=this;this.groupService.getGroupById(this.group.parentGroupId).subscribe(function(e){t.parentGroup=e,t.initNavItems(),t.loading=!1},function(){return t.loading=!1})}},{key:"initNavItems",value:function(){var t=this;this.navItems=[],this.guiAuthResolver.isAuthorized("getCompleteRichMembers_Group_List_boolean_policy",[this.group])&&this.navItems.push({cssIcon:"perun-user",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.group.id,"/members"),label:"MENU_ITEMS.GROUP.MEMBERS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getAllRichSubGroupsWithAttributesByNames_Group_List_policy",[this.group])&&"members"!==this.group.name&&this.navItems.push({cssIcon:"perun-group",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.group.id,"/subgroups"),label:"MENU_ITEMS.GROUP.SUBGROUPS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getAssignedRichResources_Group_policy",[this.group])&&this.navItems.push({cssIcon:"perun-manage-facility",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.group.id,"/resources"),label:"MENU_ITEMS.GROUP.RESOURCES",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getApplicationsForGroup_Group_List_policy",[this.group])&&this.navItems.push({cssIcon:"perun-applications",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.group.id,"/applications"),label:"MENU_ITEMS.GROUP.APPLICATIONS",style:"group-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.group.id,"/attributes"),label:"MENU_ITEMS.GROUP.ATTRIBUTES",style:"group-btn"});var e=this.guiAuthResolver.isAuthorized("getGroupMembersCount_Group_policy",[this.group]),i=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByVoStatus_Group_policy",[this.group]),n=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByGroupStatus_Group_policy",[this.group]);e&&n&&i&&this.navItems.push({cssIcon:"perun-statistics",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.group.id,"/statistics"),label:"MENU_ITEMS.GROUP.STATISTICS",style:"group-btn"});var a=!1;this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,m.r.GROUP_DEF_EXPIRATION_RULES).subscribe(function(){a=!0},function(e){"HttpErrorResponse"!==e.name&&t.notificator.showRPCError(e)});var o=this.guiAuthResolver.isManagerPagePrivileged(this.group),r=this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group]),s=this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group]),l=this.guiAuthResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[this.group]);(a||o||r||s||l)&&this.navItems.push({cssIcon:"perun-settings2",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.group.id,"/settings"),label:"MENU_ITEMS.GROUP.SETTINGS",style:"group-btn"})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(l.gz),I.Y36(d.ff),I.Y36(d.YF),I.Y36(h.x4),I.Y36(h.F5),I.Y36(d.H8),I.Y36(h.V6),I.Y36(h.fb))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-group-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.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(t,e){1&t&&(I.YNc(0,ae,1,0,"mat-spinner",0),I.YNc(1,se,3,3,"div",1)),2&t&&(I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[s.O5,b.$g,X.L,l.yS],pipes:[x.X$],styles:[""]}),t}(),ue=o(82044),ce=function(){var t=function(){function t(e){a(this,t),this.route=e}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.parent.params.subscribe(function(e){t.voId=e.voId})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(l.gz))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-vo-resources"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&I._UZ(0,"app-animated-router-outlet")},directives:[N.A],styles:[""],data:{animation:[p.Ji]}}),t}(),pe=o(40659),de=function(){var t=function(){function t(e,i){var n=this;a(this,t),this.route=e,this.router=i,this.backButtonRegex=new RegExp("/organizations/\\d+/settings/\\w+$"),this.backButtonDisplayed=!1,this.currentUrl=i.url,this.backButtonDisplayed=this.backButtonRegex.test(this.currentUrl),i.events.subscribe(function(t){t instanceof l.m2&&(n.currentUrl=t.url,n.backButtonDisplayed=n.backButtonRegex.test(n.currentUrl))})}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.parent.params.subscribe(function(e){t.voId=e.voId})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(l.gz),I.Y36(l.F0))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-vo-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&I._UZ(0,"app-animated-router-outlet")},directives:[N.A],styles:[""],data:{animation:[p.Ji]}}),t}(),ge=o(541),he=function(){var t=function(){function t(e){a(this,t),this.entityStorageService=e}return r(t,[{key:"ngOnInit",value:function(){this.vo=this.entityStorageService.getEntity()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(h.fb))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-vo-attributes"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],[3,"entityId","entity"]],template:function(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I._UZ(4,"app-one-entity-attribute-page",1),I.qZA()),2&t&&(I.xp6(2),I.Oqu(I.lcZ(3,3,"VO_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),I.xp6(2),I.Q6J("entityId",e.vo.id)("entity","vo"))},directives:[ge.t],pipes:[x.X$],styles:[""]}),t}();function me(t,e){1&t&&I._UZ(0,"mat-spinner",2)}function fe(t,e){if(1&t&&(I.TgZ(0,"div"),I._UZ(1,"perun-web-apps-menu-buttons-field",3),I.qZA()),2&t){var i=I.oxw();I.xp6(1),I.Q6J("items",i.items)("size","small")}}var Ae=function(){var t=function(){function t(e,i,n,o,r){a(this,t),this.sideMenuService=e,this.voService=i,this.authResolver=n,this.router=o,this.entityStorageService=r,this.items=[],this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}},{key:"initItems",value:function(){this.items=[];var t=this.authResolver.isThisVoAdminOrObserver(this.vo.id);t&&this.items.push({cssIcon:"perun-group",url:"/organizations/".concat(this.vo.id,"/settings/expiration"),label:"MENU_ITEMS.VO.EXPIRATION",style:"vo-btn"}),this.authResolver.isManagerPagePrivileged(this.vo)&&this.items.push({cssIcon:"perun-manager",url:"/organizations/".concat(this.vo.id,"/settings/managers"),label:"MENU_ITEMS.VO.MANAGERS",style:"vo-btn"}),t&&this.items.push({cssIcon:"perun-application-form",url:"/organizations/".concat(this.vo.id,"/settings/applicationForm"),label:"MENU_ITEMS.VO.APPLICATION_FORM",style:"vo-btn"}),t&&this.items.push({cssIcon:"perun-notification",url:"/organizations/".concat(this.vo.id,"/settings/notifications"),label:"MENU_ITEMS.VO.NOTIFICATIONS",style:"vo-btn"}),this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[this.vo])&&this.items.push({cssIcon:"perun-external-sources",url:"/organizations/".concat(this.vo.id,"/settings/extsources"),label:"MENU_ITEMS.VO.EXTSOURCES",style:"vo-btn"})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(T.D),I.Y36(d.YF),I.Y36(h.x4),I.Y36(l.F0),I.Y36(h.fb))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-vo-settings-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.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(t,e){1&t&&(I.YNc(0,me,1,0,"mat-spinner",0),I.YNc(1,fe,2,2,"div",1)),2&t&&(I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[s.O5,b.$g,X.L],styles:[""]}),t}(),Ie=o(27521),Te=o(16073),ve=o(54810),Ee=["*"],Ze=function(){var t=function(){function t(){a(this,t),this.modelChange=new I.vpe}return r(t,[{key:"model",get:function(){return this.modelValue},set:function(t){this.modelValue=t}},{key:"ngAfterViewInit",value:function(){var t=this;this.toggle.change.subscribe(function(){return t.valueChanged()})}},{key:"valueChanged",value:function(){this.modelChange.emit(this.toggle.checked)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-settings-toggle-item"]],viewQuery:function(t,e){var i;(1&t&&I.Gf(Ie.Rr,7),2&t)&&(I.iGM(i=I.CRH())&&(e.toggle=i.first))},inputs:{title:"title",model:"model"},outputs:{modelChange:"modelChange"},ngContentSelectors:Ee,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(t,e){if(1&t){var i=I.EpF();I.F$t(),I.TgZ(0,"div",0),I.TgZ(1,"div",1),I.TgZ(2,"label",2),I.NdJ("click",function(){return I.CHM(i),I.MAs(5).toggle()||e.valueChanged()}),I._uU(3),I.qZA(),I.TgZ(4,"mat-slide-toggle",3,4),I.NdJ("ngModelChange",function(t){return e.modelValue=t}),I.qZA(),I.qZA(),I.TgZ(6,"div",5),I.Hsn(7),I.qZA(),I.qZA()}if(2&t){var n=I.MAs(5);I.xp6(2),I.ekj("unselected-setting",!n.checked),I.xp6(1),I.hij(" ",e.title," "),I.xp6(1),I.Q6J("ngModel",e.modelValue),I.xp6(2),I.Q6J("@openClose",n.checked?"open":"closed")}},directives:[Ie.Rr,Te.JJ,Te.On],styles:[""],data:{animation:[p.BQ]}}),t}(),be=o(66283),_e=o(4786),Se=o(80340),Ne=o(71522),Oe=o(29236);function xe(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",25),I.TgZ(1,"mat-form-field",26),I.TgZ(2,"input",20),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw(2).currentConfiguration.periodStatic=t}),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"mat-hint"),I._uU(5),I.ALo(6,"translate"),I.qZA(),I.qZA(),I.qZA()}if(2&t){var n=I.oxw(2);I.xp6(2),I.s9C("pattern",n.datePattern),I.s9C("placeholder",I.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),I.Q6J("ngModel",n.currentConfiguration.periodStatic),I.xp6(3),I.Oqu(I.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function Le(t,e){if(1&t&&(I.TgZ(0,"mat-option",27),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.Q6J("value",i.value),I.xp6(1),I.Oqu(i.text)}}function Ce(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",18),I.TgZ(1,"mat-form-field",19),I.TgZ(2,"input",20),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw(2).currentConfiguration.periodDynamic=t}),I.ALo(3,"translate"),I.qZA(),I.qZA(),I.TgZ(4,"mat-form-field"),I.TgZ(5,"mat-label"),I._uU(6),I.ALo(7,"translate"),I.qZA(),I.TgZ(8,"mat-select",8),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw(2).currentConfiguration.periodDynamicUnit=t}),I.YNc(9,Le,2,2,"mat-option",17),I.qZA(),I.qZA(),I.qZA()}if(2&t){var n=I.oxw(2);I.xp6(2),I.s9C("pattern",n.dynamicAmountPattern),I.s9C("placeholder",I.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),I.Q6J("ngModel",n.currentConfiguration.periodDynamic),I.xp6(4),I.Oqu(I.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),I.xp6(2),I.Q6J("ngModel",n.currentConfiguration.periodDynamicUnit),I.xp6(1),I.Q6J("ngForOf",n.amountOptions)}}function Re(t,e){if(1&t&&(I.TgZ(0,"mat-option",27),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.Q6J("value",i),I.xp6(1),I.Oqu(i)}}function Me(t,e){if(1&t&&(I.TgZ(0,"mat-option",27),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.Q6J("value",i),I.xp6(1),I.Oqu(i)}}function ye(t,e){if(1&t&&(I.TgZ(0,"mat-option",27),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.Q6J("value",i.value),I.xp6(1),I.Oqu(i.text)}}function De(t,e){if(1&t&&(I.TgZ(0,"mat-option",27),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.Q6J("value",i),I.xp6(1),I.hij(" ",i," ")}}function Ue(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",25),I.TgZ(1,"mat-form-field",26),I.TgZ(2,"input",20),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw(3).currentConfiguration.specialLoaPeriodStatic=t}),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"mat-hint"),I._uU(5),I.ALo(6,"translate"),I.qZA(),I.qZA(),I.qZA()}if(2&t){var n=I.oxw(3);I.xp6(2),I.s9C("pattern",n.datePattern),I.s9C("placeholder",I.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),I.Q6J("ngModel",n.currentConfiguration.specialLoaPeriodStatic),I.xp6(3),I.Oqu(I.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function qe(t,e){if(1&t&&(I.TgZ(0,"mat-option",27),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.Q6J("value",i.value),I.xp6(1),I.Oqu(i.text)}}function Pe(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",18),I.TgZ(1,"mat-form-field",19),I.TgZ(2,"input",20),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw(3).currentConfiguration.specialLoaPeriodDynamic=t}),I.ALo(3,"translate"),I.qZA(),I.qZA(),I.TgZ(4,"mat-form-field"),I.TgZ(5,"mat-label"),I._uU(6),I.ALo(7,"translate"),I.qZA(),I.TgZ(8,"mat-select",8),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw(3).currentConfiguration.specialLoaPeriodDynamicUnit=t}),I.YNc(9,qe,2,2,"mat-option",17),I.qZA(),I.qZA(),I.qZA()}if(2&t){var n=I.oxw(3);I.xp6(2),I.s9C("pattern",n.dynamicAmountPattern),I.s9C("placeholder",I.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),I.Q6J("ngModel",n.currentConfiguration.specialLoaPeriodDynamic),I.xp6(4),I.Oqu(I.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),I.xp6(2),I.Q6J("ngModel",n.currentConfiguration.specialLoaPeriodDynamicUnit),I.xp6(1),I.Q6J("ngForOf",n.amountOptions)}}function we(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",28),I.TgZ(1,"mat-radio-group",8),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw(2).currentConfiguration.specialLoaPeriodType=t}),I.TgZ(2,"mat-radio-button",9,29),I._uU(4),I.ALo(5,"translate"),I.qZA(),I.TgZ(6,"mat-radio-button",11,30),I._uU(8),I.ALo(9,"translate"),I.qZA(),I.qZA(),I.YNc(10,Ue,7,8,"div",13),I.YNc(11,Pe,10,10,"div",14),I.TgZ(12,"div"),I.TgZ(13,"mat-checkbox",31),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw(2).currentConfiguration.specialLoaPeriodExtendExpiredMembers=t}),I._uU(14),I.ALo(15,"translate"),I.qZA(),I.qZA(),I.qZA()}if(2&t){var n=I.MAs(3),a=I.MAs(7),o=I.oxw(2);I.xp6(1),I.Q6J("ngModel",o.currentConfiguration.specialLoaPeriodType),I.xp6(3),I.hij(" ",I.lcZ(5,7,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_STATIC")," "),I.xp6(4),I.hij(" ",I.lcZ(9,9,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_DYNAMIC")," "),I.xp6(2),I.Q6J("ngIf",n.checked),I.xp6(1),I.Q6J("ngIf",a.checked),I.xp6(2),I.Q6J("ngModel",o.currentConfiguration.specialLoaPeriodExtendExpiredMembers),I.xp6(1),I.hij(" ",I.lcZ(15,11,"VO_MANAGEMENT.SETTINGS.EXPIRATION.EXTEND_EXPIRED_MEMBERS_CHECKBOX")," ")}}function Ge(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",1),I.TgZ(1,"div",2),I.TgZ(2,"h1",3),I.NdJ("click",function(){return I.CHM(i),I.MAs(6).toggle()}),I._uU(3),I.ALo(4,"translate"),I.qZA(),I.TgZ(5,"mat-slide-toggle",4,5),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().currentConfiguration.enabled=t}),I.qZA(),I.qZA(),I.TgZ(7,"div"),I.TgZ(8,"label",6),I._uU(9),I.ALo(10,"translate"),I.qZA(),I.TgZ(11,"div",7),I.TgZ(12,"mat-radio-group",8),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().currentConfiguration.periodType=t}),I.TgZ(13,"mat-radio-button",9,10),I._uU(15),I.ALo(16,"translate"),I.qZA(),I.TgZ(17,"mat-radio-button",11,12),I._uU(19),I.ALo(20,"translate"),I.qZA(),I.qZA(),I.YNc(21,xe,7,8,"div",13),I.YNc(22,Ce,10,10,"div",14),I.qZA(),I.TgZ(23,"app-settings-toggle-item",15),I.NdJ("modelChange",function(t){return I.CHM(i),I.oxw().currentConfiguration.doNotAllowLoasEnabled=t}),I.ALo(24,"translate"),I.TgZ(25,"mat-form-field"),I.TgZ(26,"mat-placeholder"),I._uU(27),I.ALo(28,"translate"),I.qZA(),I.TgZ(29,"mat-select",16),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().currentConfiguration.doNotAllowLoas=t}),I.YNc(30,Re,2,2,"mat-option",17),I.qZA(),I.qZA(),I.qZA(),I.TgZ(31,"app-settings-toggle-item",15),I.NdJ("modelChange",function(t){return I.CHM(i),I.oxw().currentConfiguration.doNotExtendLoasEnabled=t}),I.ALo(32,"translate"),I.TgZ(33,"mat-form-field"),I.TgZ(34,"mat-placeholder"),I._uU(35),I.ALo(36,"translate"),I.qZA(),I.TgZ(37,"mat-select",16),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().currentConfiguration.doNotExtendLoas=t}),I.YNc(38,Me,2,2,"mat-option",17),I.qZA(),I.qZA(),I.qZA(),I.TgZ(39,"app-settings-toggle-item",15),I.NdJ("modelChange",function(t){return I.CHM(i),I.oxw().currentConfiguration.gracePeriodEnabled=t}),I.ALo(40,"translate"),I.TgZ(41,"div",18),I.TgZ(42,"mat-form-field",19),I.TgZ(43,"input",20),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().currentConfiguration.gracePeriod=t}),I.ALo(44,"translate"),I.qZA(),I.qZA(),I.TgZ(45,"mat-form-field"),I.TgZ(46,"mat-label"),I._uU(47),I.ALo(48,"translate"),I.qZA(),I.TgZ(49,"mat-select",8),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().currentConfiguration.gracePeriodUnit=t}),I.YNc(50,ye,2,2,"mat-option",17),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.TgZ(51,"app-settings-toggle-item",15),I.NdJ("modelChange",function(t){return I.CHM(i),I.oxw().currentConfiguration.specialLoaPeriodEnabled=t}),I.ALo(52,"translate"),I.TgZ(53,"div",7),I.TgZ(54,"div"),I.TgZ(55,"mat-form-field"),I.TgZ(56,"mat-label"),I._uU(57),I.ALo(58,"translate"),I.qZA(),I.TgZ(59,"mat-select",8,21),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().currentConfiguration.specialLoa=t}),I.YNc(61,De,2,2,"mat-option",17),I.qZA(),I.qZA(),I.YNc(62,we,16,13,"div",22),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.TgZ(63,"div",23),I.ALo(64,"translate"),I.TgZ(65,"button",24),I.NdJ("click",function(){return I.CHM(i),I.oxw().saveChanges()}),I._uU(66),I.ALo(67,"translate"),I.qZA(),I.qZA(),I.qZA()}if(2&t){var n=I.MAs(6),a=I.MAs(14),o=I.MAs(18),r=I.oxw();I.xp6(2),I.ekj("unselected-setting",!n.checked),I.xp6(1),I.hij(" ",I.lcZ(4,40,"VO_MANAGEMENT.SETTINGS.EXPIRATION.TITLE")," "),I.xp6(2),I.Q6J("ngModel",r.currentConfiguration.enabled),I.xp6(2),I.Q6J("@openClose",n.checked?"open":"closed"),I.xp6(2),I.Oqu(I.lcZ(10,42,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_LABEL")),I.xp6(3),I.Q6J("ngModel",r.currentConfiguration.periodType),I.xp6(3),I.hij(" ",I.lcZ(16,44,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_STATIC")," "),I.xp6(4),I.hij(" ",I.lcZ(20,46,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_DYNAMIC")," "),I.xp6(2),I.Q6J("ngIf",a.checked),I.xp6(1),I.Q6J("ngIf",o.checked),I.xp6(1),I.Q6J("model",r.currentConfiguration.doNotAllowLoasEnabled)("title",I.lcZ(24,48,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_LABEL")),I.xp6(4),I.Oqu(I.lcZ(28,50,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_SELECT")),I.xp6(2),I.Q6J("ngModel",r.currentConfiguration.doNotAllowLoas),I.xp6(1),I.Q6J("ngForOf",r.loas),I.xp6(1),I.Q6J("model",r.currentConfiguration.doNotExtendLoasEnabled)("title",I.lcZ(32,52,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_LABEL")),I.xp6(4),I.Oqu(I.lcZ(36,54,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_SELECT")),I.xp6(2),I.Q6J("ngModel",r.currentConfiguration.doNotExtendLoas),I.xp6(1),I.Q6J("ngForOf",r.loas),I.xp6(1),I.Q6J("model",r.currentConfiguration.gracePeriodEnabled)("title",I.lcZ(40,56,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_PERIOD_LABEL")),I.xp6(4),I.s9C("pattern",r.dynamicAmountPattern),I.s9C("placeholder",I.lcZ(44,58,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_VALUE")),I.Q6J("ngModel",r.currentConfiguration.gracePeriod),I.xp6(4),I.Oqu(I.lcZ(48,60,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_TYPE")),I.xp6(2),I.Q6J("ngModel",r.currentConfiguration.gracePeriodUnit),I.xp6(1),I.Q6J("ngForOf",r.amountOptions),I.xp6(1),I.Q6J("model",r.currentConfiguration.specialLoaPeriodEnabled)("title",I.lcZ(52,62,"VO_MANAGEMENT.SETTINGS.EXPIRATION.LOA_PERIOD_LABEL")),I.xp6(6),I.Oqu(I.lcZ(58,64,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SPECIAL_LOA_SELECT")),I.xp6(2),I.Q6J("ngModel",r.currentConfiguration.specialLoa),I.xp6(2),I.Q6J("ngForOf",r.loas),I.xp6(1),I.Q6J("ngIf",null!==r.currentConfiguration.specialLoa),I.xp6(1),I.s9C("matTooltip",I.lcZ(64,66,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERMISSION_DENIED_HINT")),I.Q6J("matTooltipDisabled",r.expirationAttribute.writable)("matTooltipPosition","above"),I.xp6(2),I.Q6J("disabled",!r.areChangesMade()||!r.expirationAttribute.writable),I.xp6(1),I.hij(" ",I.lcZ(67,68,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SAVE")," ")}}var ke=function(){var t=function(){function t(){a(this,t),this.saveAttribute=new I.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"}]}return r(t,[{key:"ngOnInit",value:function(){var t=new Map;this.loas.forEach(function(e){return t.set(e,"")}),this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value),this.currentConfiguration=this.unParseAttrValue(this.expirationAttribute.value)}},{key:"ngOnChanges",value:function(t){t.expirationAttribute&&(this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value))}},{key:"saveChanges",value:function(){this.saveAttribute.emit(this.parseExpirationRulesAttribute())}},{key:"areChangesMade",value:function(){var t=this.parseAttributeValueFromConfig(this.currentConfiguration),e=this.parseAttributeValueFromConfig(this.initialConfiguration);return null===e?null!==t:null===t||t.period!==e.period||t.gracePeriod!==e.gracePeriod||t.doNotExtendLoa!==e.doNotExtendLoa||t.doNotAllowLoa!==e.doNotAllowLoa||t.periodLoa!==e.periodLoa}},{key:"parseExpirationRulesAttribute",value:function(){return this.expirationAttribute.value=this.parseAttributeValueFromConfig(this.currentConfiguration),this.expirationAttribute}},{key:"parsePeriod",value:function(t){switch(t.periodType){case"dynamic":return this.parseDynamicPeriod(t);case"static":return this.parseStaticPeriod(t)}}},{key:"createInitConfiguration",value:function(){var t=new Map;return this.loas.forEach(function(e){return t.set(e,"")}),{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}}},{key:"unParseAttrValue",value:function(t){var e=this.createInitConfiguration();return null==t||(void 0!==t.period&&t.period.length>0&&(e=this.setPeriodValues(t,e)),void 0!==t.doNotAllowLoa&&t.doNotAllowLoa.length>0&&(e=this.setDoNotAllowLoasValues(t,e)),void 0!==t.doNotExtendLoa&&t.doNotExtendLoa.length>0&&(e=this.setDoNotExtendLoasValues(t,e)),void 0!==t.gracePeriod&&t.gracePeriod.length>0&&(e=this.setGracePeriodValues(t,e)),void 0!==t.periodLoa&&t.periodLoa.length>0&&(e=this.setSpecialLoaPeriodValues(t,e))),e}},{key:"setPeriodValues",value:function(t,e){if(e.enabled=!0,t.period.startsWith("+")){e.periodType="dynamic";var i=t.period.charAt(t.period.length-1);e.periodDynamic=t.period.substring(1,t.period.length-1),e.periodDynamicUnit=i}else e.periodType="static",e.periodStatic=t.period;return e}},{key:"setDoNotAllowLoasValues",value:function(t,e){var i=[];return t.doNotAllowLoa.split(",").forEach(function(t){return i.push(parseInt(t.trim(),10))}),e.doNotAllowLoas=i,i.length>0&&(e.doNotAllowLoasEnabled=!0),e}},{key:"setDoNotExtendLoasValues",value:function(t,e){var i=[];return t.doNotExtendLoa.split(",").forEach(function(t){return i.push(parseInt(t.trim(),10))}),e.doNotExtendLoas=i,i.length>0&&(e.doNotExtendLoasEnabled=!0),e}},{key:"setGracePeriodValues",value:function(t,e){e.gracePeriodEnabled=!0;var i=t.gracePeriod.charAt(t.gracePeriod.length-1);return e.gracePeriod=t.gracePeriod.substring(0,t.gracePeriod.length-1),e.gracePeriodUnit=i,e}},{key:"setSpecialLoaPeriodValues",value:function(t,e){e.specialLoa=parseInt(t.periodLoa.substring(0,t.periodLoa.indexOf("|")),10),e.specialLoaPeriodEnabled=!0;var i=t.periodLoa.substring(t.periodLoa.indexOf("|")+1,t.periodLoa.length);if(i.startsWith("+")){i.endsWith(".")&&(e.specialLoaPeriodExtendExpiredMembers=!0,i=i.substring(0,i.length-1)),e.specialLoaPeriodType="dynamic";var n=i.charAt(i.length-1);e.specialLoaPeriodDynamic=i.substring(1,i.length-1),e.specialLoaPeriodDynamicUnit=n}else i.endsWith("..")&&(e.specialLoaPeriodExtendExpiredMembers=!0,i=i.substring(0,i.length-1)),e.specialLoaPeriodType="static",e.specialLoaPeriodStatic=i;return e}},{key:"parseDynamicPeriod",value:function(t){return"+"+t.periodDynamic+t.periodDynamicUnit}},{key:"parseStaticPeriod",value:function(t){return t.periodStatic}},{key:"parseDontAllowLoas",value:function(t){if(!t.doNotAllowLoasEnabled)return null;var e="";return t.doNotAllowLoas.forEach(function(t){return e+=t+","}),e.length>0&&(e=e.substring(0,e.length-1)),e.length>0?e:null}},{key:"parseDontExtendLoas",value:function(t){if(!t.doNotExtendLoasEnabled)return null;var e="";return t.doNotExtendLoas.forEach(function(t){return e+=t+","}),e.length>0&&(e=e.substring(0,e.length-1)),e.length>0?e:null}},{key:"parseGracePeriod",value:function(t){return t.gracePeriodEnabled?t.gracePeriod+t.gracePeriodUnit:null}},{key:"parseSpecialLoaPeriod",value:function(t){if(!t.specialLoaPeriodEnabled)return null;var e=t.specialLoa+"|";switch(t.specialLoaPeriodType){case"static":e+=this.parseSpecialLoaPeriodStatic(t);break;case"dynamic":e+=this.parseSpecialLoaPeriodDynamic(t)}return null!=e&&t.specialLoaPeriodExtendExpiredMembers&&(e+="."),e}},{key:"parseSpecialLoaPeriodStatic",value:function(t){return t.specialLoaPeriodStatic}},{key:"parseSpecialLoaPeriodDynamic",value:function(t){return"+"+t.specialLoaPeriodDynamic+t.specialLoaPeriodDynamicUnit}},{key:"parseAttributeValueFromConfig",value:function(t){if(!t.enabled)return null;var e=this.parsePeriod(t),i=this.parseDontAllowLoas(t),n=this.parseDontExtendLoas(t),a=this.parseGracePeriod(t),o=this.parseSpecialLoaPeriod(t),r={period:e};return null!==n&&(r.doNotExtendLoa=n),null!==i&&(r.doNotAllowLoa=i),null!==a&&(r.gracePeriod=a),null!==o&&(r.periodLoa=o),r}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-expiration-settings"]],inputs:{expirationAttribute:"expirationAttribute"},outputs:{saveAttribute:"saveAttribute"},features:[I.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"],[3,"model","title","modelChange"],["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"],["mat-flat-button","","color","primary",1,"ml-auto",3,"disabled","click"],[1,"form-container"],[1,"date-field"],[3,"value"],[1,"mt-2"],["loaStaticRadioButton",""],["loaDynamicRadioButton",""],["color","primary",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&I.YNc(0,Ge,68,70,"div",0),2&t&&I.Q6J("ngIf",e.currentConfiguration)},directives:[s.O5,Ie.Rr,Te.JJ,Te.On,ve.VQ,ve.U0,Ze,be.KE,be.UY,_e.gD,s.sg,Se.Nt,Te.Fj,Te.c5,be.hX,S.gM,O.lW,be.bx,Ne.ey,Oe.oG],pipes:[x.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:[p.BQ]}}),t}();function Ye(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"app-expiration-settings",1),I.NdJ("saveAttribute",function(t){return I.CHM(i),I.oxw().saveExpirationAttribute(t)}),I.qZA()}if(2&t){var n=I.oxw();I.Q6J("expirationAttribute",n.expirationAttribute)}}var Je=function(){var t=function(){function t(e,i,n,o,r){var s=this;a(this,t),this.attributesManager=e,this.translate=i,this.notificator=n,this.apiRequest=o,this.entityStorageService=r,this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(function(t){return s.successMessage=t}),this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(function(t){return s.errorMessage=t})}return r(t,[{key:"ngOnInit",value:function(){this.vo=this.entityStorageService.getEntity(),this.loadSettings()}},{key:"loadSettings",value:function(){var t=this;this.attributesManager.getVoAttributeByName(this.vo.id,m.r.VO_DEF_EXPIRATION_RULES).subscribe(function(e){t.expirationAttribute=e})}},{key:"saveExpirationAttribute",value:function(t){var e=this;this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setVoAttribute({vo:this.vo.id,attribute:t}).subscribe(function(){e.loadSettings(),e.notificator.showSuccess(e.successMessage)},function(t){console.log(t),e.notificator.showRPCError(t.error,e.errorMessage)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(d.H8),I.Y36(x.sK),I.Y36(h.V6),I.Y36(h.F5),I.Y36(h.fb))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-vo-settings-expiration"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(t,e){1&t&&I.YNc(0,Ye,1,1,"app-expiration-settings",0),2&t&&I.Q6J("ngIf",void 0!==e.expirationAttribute)},directives:[s.O5,ke],styles:[""],data:{animation:[p.BQ]}}),t}(),Ve=o(62284),Fe=o(489),Qe=function(){var t=function(){function t(e,i,n,o){a(this,t),this.dialog=e,this.voService=i,this.guiAuthResolver=n,this.entityStorageService=o,this.availableRoles=[],this.selected="user",this.type="Vo",this.theme="vo-theme"}return r(t,[{key:"ngOnInit",value:function(){this.vo=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Vo")}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(v.uw),I.Y36(d.YF),I.Y36(h.x4),I.Y36(h.fb))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-vo-settings-managers"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:1,vars:4,consts:[[3,"complementaryObject","complementaryObjectType","theme","availableRoles"]],template:function(t,e){1&t&&I._UZ(0,"app-managers-page",0),2&t&&I.Q6J("complementaryObject",e.vo)("complementaryObjectType",e.type)("theme",e.theme)("availableRoles",e.availableRoles)},directives:[Fe.s],styles:[""]}),t}();function Be(t,e){1&t&&I._UZ(0,"mat-spinner",6)}function je(t,e){1&t&&(I.TgZ(0,"mat-option",18),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APPROVABLE_GROUP_APP_USER")))}function He(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div"),I._uU(1),I.ALo(2,"translate"),I.TgZ(3,"mat-form-field",8),I.TgZ(4,"textarea",19),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw(2).reason=t}),I.qZA(),I.qZA(),I.qZA()}if(2&t){var n=I.oxw(2);I.xp6(1),I.hij(" ",I.lcZ(2,2,"DIALOGS.RE_SEND_NOTIFICATION.REASON"),": "),I.xp6(3),I.Q6J("ngModel",n.reason)}}function ze(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",7),I._uU(1),I.ALo(2,"translate"),I.TgZ(3,"mat-form-field",8),I.TgZ(4,"mat-select",9),I.NdJ("valueChange",function(t){return I.CHM(i),I.oxw().mailType=t}),I.TgZ(5,"mat-option",10),I._uU(6),I.ALo(7,"translate"),I.qZA(),I.YNc(8,je,3,3,"mat-option",11),I.TgZ(9,"mat-option",12),I._uU(10),I.ALo(11,"translate"),I.qZA(),I.TgZ(12,"mat-option",13),I._uU(13),I.ALo(14,"translate"),I.qZA(),I.TgZ(15,"mat-option",14),I._uU(16),I.ALo(17,"translate"),I.qZA(),I.TgZ(18,"mat-option",15),I._uU(19),I.ALo(20,"translate"),I.qZA(),I.TgZ(21,"mat-option",16),I._uU(22),I.ALo(23,"translate"),I.qZA(),I.qZA(),I.qZA(),I.YNc(24,He,5,4,"div",17),I.qZA()}if(2&t){var n=I.oxw();I.xp6(1),I.hij(" ",I.lcZ(2,10,"DIALOGS.RE_SEND_NOTIFICATION.SELECT"),": "),I.xp6(3),I.Q6J("value",n.mailType),I.xp6(2),I.Oqu(I.lcZ(7,12,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_USER")),I.xp6(2),I.Q6J("ngIf",n.data.groupId),I.xp6(2),I.Oqu(I.lcZ(11,14,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_VO_ADMIN")),I.xp6(3),I.Oqu(I.lcZ(14,16,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.MAIL_VALIDATION")),I.xp6(3),I.Oqu(I.lcZ(17,18,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_APPROVED_USER")),I.xp6(3),I.Oqu(I.lcZ(20,20,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_REJECTED_USER")),I.xp6(3),I.Oqu(I.lcZ(23,22,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_ERROR_VO_ADMIN")),I.xp6(2),I.Q6J("ngIf","APP_REJECTED_USER"===n.mailType)}}var Xe=function(){var t=function(){function t(e,i,n,o,r){a(this,t),this.dialogRef=e,this.data=i,this.translate=n,this.notificator=o,this.registrarManager=r,this.mailType="APP_CREATED_USER",this.reason="",this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,"APP_REJECTED_USER"===this.mailType?this.registrarManager.sendMessage({appId:this.data.applicationId,mailType:this.mailType,reason:this.reason}).subscribe(function(){t.translate.get("DIALOGS.RE_SEND_NOTIFICATION.SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close()})},function(){return t.loading=!1}):this.registrarManager.sendMessage({appId:this.data.applicationId,mailType:this.mailType}).subscribe(function(){t.translate.get("DIALOGS.RE_SEND_NOTIFICATION.SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close()})},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(v.so),I.Y36(v.WI),I.Y36(x.sK),I.Y36(h.V6),I.Y36(d.tk))},t.\u0275cmp=I.Xpm({type:t,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"],["mat-flat-button","","color","accent",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(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.YNc(4,Be,1,0,"mat-spinner",1),I.YNc(5,ze,25,24,"div",2),I.TgZ(6,"div",3),I.TgZ(7,"button",4),I.NdJ("click",function(){return e.onCancel()}),I._uU(8),I.ALo(9,"translate"),I.qZA(),I.TgZ(10,"button",5),I.NdJ("click",function(){return e.onSubmit()}),I._uU(11),I.ALo(12,"translate"),I.qZA(),I.qZA(),I.qZA()),2&t&&(I.Gre("",e.theme,"}"),I.xp6(2),I.Oqu(I.lcZ(3,9,"DIALOGS.RE_SEND_NOTIFICATION.TITLE")),I.xp6(2),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading),I.xp6(3),I.hij(" ",I.lcZ(9,11,"DIALOGS.RE_SEND_NOTIFICATION.CANCEL")," "),I.xp6(2),I.Q6J("disabled",e.loading),I.xp6(1),I.hij(" ",I.lcZ(12,13,"DIALOGS.RE_SEND_NOTIFICATION.SEND")," "))},directives:[v.uh,s.O5,v.H8,O.lW,b.$g,v.xY,be.KE,_e.gD,Ne.ey,Se.Nt,Te.Fj,Te.JJ,Te.On],pipes:[x.X$],styles:[""]}),t}();function $e(t,e){1&t&&I._UZ(0,"mat-spinner",6)}function We(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",7),I._uU(1),I.ALo(2,"translate"),I.TgZ(3,"mat-form-field",8),I.TgZ(4,"textarea",9),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().reason=t}),I.qZA(),I.qZA(),I.qZA()}if(2&t){var n=I.oxw();I.xp6(1),I.hij(" ",I.lcZ(2,2,"DIALOGS.REJECT_APPLICATION.TEXT")," "),I.xp6(3),I.Q6J("ngModel",n.reason)}}var Ke=function(){var t=function(){function t(e,i,n,o,r){a(this,t),this.dialogRef=e,this.data=i,this.translate=n,this.notificator=o,this.registrarManager=r,this.reason="",this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.registrarManager.rejectApplication(this.data.applicationId,this.reason).subscribe(function(){t.translate.get("DIALOGS.REJECT_APPLICATION.SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close()})},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(v.so),I.Y36(v.WI),I.Y36(x.sK),I.Y36(h.V6),I.Y36(d.tk))},t.\u0275cmp=I.Xpm({type:t,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"w-100"],["matInput","",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.YNc(4,$e,1,0,"mat-spinner",1),I.YNc(5,We,5,4,"div",2),I.TgZ(6,"div",3),I.TgZ(7,"button",4),I.NdJ("click",function(){return e.onCancel()}),I._uU(8),I.ALo(9,"translate"),I.qZA(),I.TgZ(10,"button",5),I.NdJ("click",function(){return e.onSubmit()}),I._uU(11),I.ALo(12,"translate"),I.qZA(),I.qZA(),I.qZA()),2&t&&(I.Tol(e.theme),I.xp6(2),I.Oqu(I.lcZ(3,9,"DIALOGS.REJECT_APPLICATION.TITLE")),I.xp6(2),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading),I.xp6(3),I.hij(" ",I.lcZ(9,11,"DIALOGS.REJECT_APPLICATION.CANCEL")," "),I.xp6(2),I.Q6J("disabled",e.loading),I.xp6(1),I.hij(" ",I.lcZ(12,13,"DIALOGS.REJECT_APPLICATION.SUBMIT")," "))},directives:[v.uh,s.O5,v.H8,O.lW,b.$g,v.xY,be.KE,Se.Nt,Te.Fj,Te.JJ,Te.On],pipes:[x.X$],styles:[""]}),t}();function ti(t,e){1&t&&I._UZ(0,"mat-spinner",6)}function ei(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.INVALID_EMAIL")))}function ii(t,e){if(1&t&&(I.TgZ(0,"mat-form-field"),I.TgZ(1,"label"),I._UZ(2,"input",9),I.qZA(),I.YNc(3,ei,3,3,"mat-error",8),I.qZA()),2&t){var i=I.oxw(2);I.xp6(2),I.Q6J("formControl",i.emailControl),I.xp6(1),I.Q6J("ngIf",i.emailControl.invalid)}}function ni(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.EMPTY_INPUT")))}function ai(t,e){if(1&t&&(I.TgZ(0,"mat-form-field"),I._UZ(1,"input",10),I.YNc(2,ni,3,3,"mat-error",8),I.qZA()),2&t){var i=I.oxw(2);I.xp6(1),I.Q6J("formControl",i.inputControl),I.xp6(1),I.Q6J("ngIf",i.inputControl.invalid)}}function oi(t,e){if(1&t&&(I.TgZ(0,"div",7),I.YNc(1,ii,4,2,"mat-form-field",8),I.YNc(2,ai,3,2,"mat-form-field",8),I.qZA()),2&t){var i=I.oxw();I.xp6(1),I.Q6J("ngIf",null!==i.emailControl),I.xp6(1),I.Q6J("ngIf",null!==i.inputControl)}}var ri=function(){var t=function(){function t(e,i,n,o,r){a(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translateService=o,this.registrarService=r,this.loading=!1,this.inputControl=null,this.emailControl=null}return r(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.formItemData=this.data.formItemData,this.itemName=this.getLabel(this.formItemData.formItem),this.itemName.toLowerCase().includes("mail")?this.emailControl=new Te.NI(this.formItemData.value,[Te.kI.required,Te.kI.email]):this.inputControl=new Te.NI(this.formItemData.value,[Te.kI.required])}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;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(function(){t.notificator.showSuccess(t.translateService.instant("DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.SUCCESS")),t.dialogRef.close(!0)},function(){return t.loading=!1})}},{key:"getLabel",value:function(t){return null!==t.i18n.en.label&&0!==t.i18n.en.label.length?t.i18n.en.label:t.shortname}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(v.so),I.Y36(v.WI),I.Y36(h.V6),I.Y36(x.sK),I.Y36(d.tk))},t.\u0275cmp=I.Xpm({type:t,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"],["type","text","matInput","","required","",3,"formControl"]],template:function(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.YNc(4,ti,1,0,"mat-spinner",1),I.YNc(5,oi,3,2,"div",2),I.TgZ(6,"div",3),I.TgZ(7,"button",4),I.NdJ("click",function(){return e.onCancel()}),I._uU(8),I.ALo(9,"translate"),I.qZA(),I.TgZ(10,"button",5),I.NdJ("click",function(){return e.onSubmit()}),I._uU(11),I.ALo(12,"translate"),I.qZA(),I.qZA(),I.qZA()),2&t&&(I.Tol(e.theme),I.xp6(2),I.AsE(" ",I.lcZ(3,10,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.TITLE")," ",e.itemName," "),I.xp6(2),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading),I.xp6(3),I.hij(" ",I.lcZ(9,12,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.CANCEL")," "),I.xp6(2),I.Q6J("disabled",e.loading||null!==e.inputControl&&e.inputControl.invalid||null!==e.emailControl&&e.emailControl.invalid),I.xp6(1),I.hij(" ",I.lcZ(12,14,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.SUBMIT")," "))},directives:[v.uh,s.O5,v.H8,O.lW,b.$g,v.xY,be.KE,Se.Nt,Te.Fj,Te.Q7,Te.JJ,Te.oH,be.TO],pipes:[x.X$],styles:[""]}),t}(),si=o(27679),li=o(84650);function ui(t,e){if(1&t&&(I.TgZ(0,"span",5),I._uU(1),I.qZA()),2&t){var i=I.oxw();I.xp6(1),I.hij(" #",i.application.id," ")}}function ci(t,e){1&t&&I._UZ(0,"mat-spinner",6)}function pi(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",17),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).verifyApplication()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VERIFY")," "))}function di(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",17),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).approveApplication()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVE")," "))}function gi(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",18),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).rejectApplication()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECT")," "))}function hi(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",18),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).deleteApplication()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE")," "))}function mi(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",19),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).resendNotification()}),I.TgZ(1,"i",14),I._uU(2," mail_outline "),I.qZA(),I._uU(3),I.ALo(4,"translate"),I.qZA()}2&t&&(I.xp6(3),I.hij(" ",I.lcZ(4,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SEND_NOTIFICATION")," "))}function fi(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"span",10),I._uU(2),I.ALo(3,"translate"),I.qZA(),I._uU(4),I.qZA()),2&t){var i=I.oxw(2);I.xp6(2),I.Oqu(I.lcZ(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_VO")),I.xp6(2),I.hij(": ",i.application.vo.name," ")}}function Ai(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"span",10),I._uU(2),I.ALo(3,"translate"),I.qZA(),I._uU(4),I.TgZ(5,"span",10),I._uU(6),I.ALo(7,"translate"),I.qZA(),I._uU(8),I.qZA()),2&t){var i=I.oxw(2);I.xp6(2),I.Oqu(I.lcZ(3,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_GROUP")),I.xp6(2),I.hij(": ",i.application.group.name," "),I.xp6(2),I.Oqu(I.lcZ(7,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_IN_VO")),I.xp6(2),I.hij(": ",i.application.vo.name," ")}}function Ii(t,e){1&t&&(I.TgZ(0,"span"),I.TgZ(1,"mat-icon",20),I._uU(2,"arrow_right_alt"),I.qZA(),I._uU(3," Initial "),I.qZA())}function Ti(t,e){1&t&&(I.TgZ(0,"span"),I.TgZ(1,"mat-icon",20),I._uU(2,"restore"),I.qZA(),I._uU(3," Extension "),I.qZA())}function vi(t,e){1&t&&(I.TgZ(0,"span"),I.TgZ(1,"mat-icon",20),I._uU(2,"nat"),I.qZA(),I._uU(3," Embedded "),I.qZA())}function Ei(t,e){if(1&t&&(I.TgZ(0,"div",21),I.TgZ(1,"mat-card-title"),I.TgZ(2,"i",22),I._uU(3,"clear"),I.qZA(),I._uU(4),I.ALo(5,"translate"),I.qZA(),I.TgZ(6,"div"),I.TgZ(7,"span",10),I._uU(8),I.ALo(9,"translate"),I.qZA(),I._uU(10),I.ALo(11,"date"),I.qZA(),I.qZA()),2&t){var i=I.oxw(2);I.xp6(4),I.AsE(" ",I.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECTED_BY"),": ",i.getModifiedAtName(i.application.modifiedBy),""),I.xp6(4),I.Oqu(I.lcZ(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),I.xp6(2),I.hij(": ",I.xi3(11,8,i.application.modifiedAt,"d.M.y H:mm:ss")," ")}}function Zi(t,e){if(1&t&&(I.TgZ(0,"div",21),I.TgZ(1,"mat-card-title"),I.TgZ(2,"i",23),I._uU(3,"done"),I.qZA(),I._uU(4),I.ALo(5,"translate"),I.qZA(),I.TgZ(6,"div"),I.TgZ(7,"span",10),I._uU(8),I.ALo(9,"translate"),I.qZA(),I._uU(10),I.ALo(11,"date"),I.qZA(),I.qZA()),2&t){var i=I.oxw(2);I.xp6(4),I.AsE(" ",I.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVED_BY"),": ",i.getModifiedAtName(i.application.modifiedBy),""),I.xp6(4),I.Oqu(I.lcZ(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),I.xp6(2),I.hij(": ",I.xi3(11,8,i.application.modifiedAt,"d.M.y H:mm:ss")," ")}}function bi(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"span",10),I._uU(2),I.ALo(3,"translate"),I.qZA(),I._uU(4),I.qZA()),2&t){var i=I.oxw(2);I.xp6(2),I.Oqu(I.lcZ(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.MAIL")),I.xp6(2),I.hij(": ",i.userMail," ")}}function _i(t,e){1&t&&I._UZ(0,"th",32)}function Si(t,e){if(1&t&&(I.TgZ(0,"td",33),I._uU(1),I.qZA()),2&t){var i=e.$implicit,n=I.oxw(3);I.xp6(1),I.AsE(" ",n.getLabel(i.formItem),"",i.formItem.type.startsWith("FROM_FEDERATION")?"*":""," ")}}function Ni(t,e){1&t&&I._UZ(0,"th",32)}function Oi(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",36),I.NdJ("click",function(){I.CHM(i);var t=I.oxw().$implicit;return I.oxw(3).editApplicationData(t)}),I.TgZ(1,"mat-icon"),I._uU(2,"edit"),I.qZA(),I.qZA()}}function xi(t,e){if(1&t&&(I.TgZ(0,"td",34),I._uU(1),I.YNc(2,Oi,3,0,"button",35),I.qZA()),2&t){var i=e.$implicit,n=I.oxw(3);I.xp6(1),I.hij(" ",i.value," "),I.xp6(1),I.Q6J("ngIf",!i.formItem.type.startsWith("FROM_FEDERATION")&&("NEW"===n.application.state||"VERIFIED"===n.application.state)&&"EMBEDDED_GROUP_APPLICATION"!==i.formItem.type)}}function Li(t,e){1&t&&I._UZ(0,"tr",37)}function Ci(t,e){1&t&&I._UZ(0,"tr",38)}function Ri(t,e){if(1&t&&(I.TgZ(0,"table",24),I.ynx(1,25),I.YNc(2,_i,1,0,"th",26),I.YNc(3,Si,2,2,"td",27),I.BQk(),I.ynx(4,28),I.YNc(5,Ni,1,0,"th",26),I.YNc(6,xi,3,2,"td",29),I.BQk(),I.YNc(7,Li,1,0,"tr",30),I.YNc(8,Ci,1,0,"tr",31),I.qZA()),2&t){var i=I.oxw(2);I.Q6J("dataSource",i.dataSource),I.xp6(7),I.Q6J("matHeaderRowDef",i.displayedColumns),I.xp6(1),I.Q6J("matRowDefColumns",i.displayedColumns)}}function Mi(t,e){1&t&&(I.TgZ(0,"div",39),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.hij(" *",I.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VALUE_BY_EXTERNALS")," "))}function yi(t,e){if(1&t&&(I.TgZ(0,"div"),I.YNc(1,pi,3,3,"button",7),I.YNc(2,di,3,3,"button",7),I.YNc(3,gi,3,3,"button",8),I.YNc(4,hi,3,3,"button",8),I.YNc(5,mi,5,3,"button",9),I.YNc(6,fi,5,4,"div",4),I.YNc(7,Ai,9,8,"div",4),I.TgZ(8,"div"),I.TgZ(9,"span",10),I._uU(10),I.ALo(11,"translate"),I.qZA(),I._uU(12,": "),I._UZ(13,"span",11),I.ALo(14,"applicationState"),I.qZA(),I.TgZ(15,"div"),I.TgZ(16,"span",10),I._uU(17),I.ALo(18,"translate"),I.qZA(),I._uU(19,": "),I.YNc(20,Ii,4,0,"span",4),I.YNc(21,Ti,4,0,"span",4),I.YNc(22,vi,4,0,"span",4),I.qZA(),I.YNc(23,Ei,12,11,"div",12),I.YNc(24,Zi,12,11,"div",12),I.TgZ(25,"div",13),I.TgZ(26,"mat-card-title"),I.TgZ(27,"i",14),I._uU(28,"redo"),I.qZA(),I._uU(29),I.ALo(30,"translate"),I.ALo(31,"userFullName"),I.qZA(),I.YNc(32,bi,5,4,"div",4),I.TgZ(33,"div"),I.TgZ(34,"span",10),I._uU(35),I.ALo(36,"translate"),I.qZA(),I._uU(37),I.qZA(),I.TgZ(38,"div"),I.TgZ(39,"span",10),I._uU(40),I.ALo(41,"translate"),I.qZA(),I._uU(42),I.qZA(),I.TgZ(43,"div"),I.TgZ(44,"span",10),I._uU(45),I.ALo(46,"translate"),I.qZA(),I._uU(47),I.ALo(48,"date"),I.qZA(),I.YNc(49,Ri,9,3,"table",15),I.YNc(50,Mi,3,3,"div",16),I.qZA(),I.qZA()),2&t){var i=I.oxw();I.xp6(1),I.Q6J("ngIf","NEW"===i.application.state&&i.verifyAuth),I.xp6(1),I.Q6J("ngIf",("VERIFIED"===i.application.state||"NEW"===i.application.state)&&i.approveAuth),I.xp6(1),I.Q6J("ngIf",("VERIFIED"===i.application.state||"NEW"===i.application.state)&&i.rejectAuth),I.xp6(1),I.Q6J("ngIf",("REJECTED"===i.application.state||"NEW"===i.application.state)&&i.deleteAuth),I.xp6(1),I.Q6J("ngIf",i.resendAuth),I.xp6(1),I.Q6J("ngIf",!i.application.group),I.xp6(1),I.Q6J("ngIf",i.application.group),I.xp6(3),I.Oqu(I.lcZ(11,26,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.STATE")),I.xp6(3),I.Q6J("outerHTML",I.lcZ(14,28,i.application.state),I.oJD),I.xp6(4),I.Oqu(I.lcZ(18,30,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TYPE")),I.xp6(3),I.Q6J("ngIf","INITIAL"===i.application.type),I.xp6(1),I.Q6J("ngIf","EXTENSION"===i.application.type),I.xp6(1),I.Q6J("ngIf","EMBEDDED"===i.application.type),I.xp6(1),I.Q6J("ngIf","REJECTED"===i.application.state),I.xp6(1),I.Q6J("ngIf","APPROVED"===i.application.state),I.xp6(5),I.AsE(" ",I.lcZ(30,32,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SUBMITTED_BY"),": ",null===i.application.user?i.submittedBy():I.lcZ(31,34,i.application.user),""),I.xp6(3),I.Q6J("ngIf",i.userMail),I.xp6(3),I.Oqu(I.lcZ(36,36,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.EXT_SRC")),I.xp6(2),I.hij(": ",i.application.extSourceName," "),I.xp6(3),I.Oqu(I.lcZ(41,38,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.LOA")),I.xp6(2),I.hij(": ",i.application.extSourceLoa," "),I.xp6(3),I.Oqu(I.lcZ(46,40,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),I.xp6(2),I.hij(": ",I.xi3(48,42,i.application.createdAt,"d.M.y H:mm:ss")," "),I.xp6(2),I.Q6J("ngIf",0!==i.userData.length),I.xp6(1),I.Q6J("ngIf",0!==i.userData.length)}}var Di=function(){var t=function(){function t(e,i,n,o,r,s,l,u){a(this,t),this.registrarManager=e,this.dialog=i,this.translate=n,this.route=o,this.notificator=r,this.router=s,this.authResolver=l,this.usersService=u,this.userData=[],this.displayedColumns=["label","value"],this.loading=!0}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.params.subscribe(function(e){t.route.parent.params.subscribe(function(i){t.dialogTheme=i.groupId?"group-theme":i.memberId?"member-theme":"vo-theme",t.registrarManager.getApplicationById(e.applicationId).subscribe(function(e){t.application=e,"EMBEDDED"===t.application.type&&t.application.user?t.usersService.getRichUserWithAttributes(t.application.user.id).subscribe(function(e){var i,n=e.userAttributes.find(function(t){return"preferredMail"===t.friendlyName});t.userMail=null===(i=null==n?void 0:n.value)||void 0===i?void 0:i.toString(),t.setAuthRights(),t.loading=!1}):t.registrarManager.getApplicationDataById(t.application.id).subscribe(function(e){t.userData=e,t.dataSource=new ct.by(t.userData),t.setAuthRights(),t.loading=!1})})})})}},{key:"setAuthRights",value:function(){"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]))}},{key:"getLabel",value:function(t){return null!==t.i18n.en.label&&0!==t.i18n.en.label.length?t.i18n.en.label:t.shortname}},{key:"submittedBy",value:function(){return this.application.createdBy.slice(this.application.createdBy.lastIndexOf("=")+1,this.application.createdBy.length)}},{key:"getModifiedAtName",value:function(t){var e=t.lastIndexOf("/CN=");if(-1!==e){var i=t.slice(e+4,t.length).replace("/unstructuredName="," ");return-1!==i.lastIndexOf("\\")?t.slice(t.lastIndexOf("=")+1,t.length):i}return t}},{key:"resendNotification",value:function(){var t,e=(0,g.kZ)();e.width="500px",e.data={applicationId:this.application.id,theme:this.dialogTheme,groupId:null===(t=this.application.group)||void 0===t?void 0:t.id},this.dialog.open(Xe,e)}},{key:"deleteApplication",value:function(){var t=this,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"},this.dialog.open(f.Tf,e).afterClosed().subscribe(function(e){e&&t.registrarManager.deleteApplication(t.application.id).subscribe(function(){t.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_MESSAGE").subscribe(function(e){t.notificator.showSuccess(e),t.router.navigateByUrl(t.router.url.substring(0,t.router.url.lastIndexOf("/")))})})})}},{key:"rejectApplication",value:function(){var t=this,e=(0,g.kZ)();e.width="500px",e.data={applicationId:this.application.id,theme:this.dialogTheme},this.dialog.open(Ke,e).afterClosed().subscribe(function(){t.loading=!0,t.registrarManager.getApplicationById(t.application.id).subscribe(function(e){t.application=e,t.loading=!1},function(){return t.loading=!1})})}},{key:"approveApplication",value:function(){var t=this;this.loading=!0,this.registrarManager.approveApplication(this.application.id).subscribe(function(){t.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVE_MESSAGE").subscribe(function(e){t.notificator.showSuccess(e)}),t.registrarManager.getApplicationById(t.application.id).subscribe(function(e){t.application=e,t.loading=!1},function(){return t.loading=!1})},function(){return t.loading=!1})}},{key:"verifyApplication",value:function(){var t=this;this.registrarManager.verifyApplication(this.application.id).subscribe(function(){t.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VERIFY_MESSAGE").subscribe(function(e){t.notificator.showSuccess(e)}),t.loading=!0,t.registrarManager.getApplicationById(t.application.id).subscribe(function(e){t.application=e,t.loading=!1})})}},{key:"editApplicationData",value:function(t){var e=(0,g.kZ)();e.width="600px",e.data={theme:this.dialogTheme,applicationId:this.application.id,formItemData:t},this.dialog.open(ri,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(d.tk),I.Y36(v.uw),I.Y36(x.sK),I.Y36(l.gz),I.Y36(h.V6),I.Y36(l.F0),I.Y36(h.x4),I.Y36(d.Fv))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-application-detail"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.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"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"click",4,"ngIf"],["mat-stroked-button","","class","mr-2 mb-2",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"],["mat-table","","class","w-100",3,"dataSource",4,"ngIf"],["class","font-italic",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",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"],["mat-cell","","class","font-weight-bold",4,"matCellDef"],["matColumnDef","value"],["class","word-break-all","mat-cell","",4,"matCellDef"],["mat-header-row","","class","h-50",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"word-break-all"],["mat-icon-button","","aria-label","Edit Application data",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Edit Application data",3,"click"],["mat-header-row","",1,"h-50"],["mat-row",""],[1,"font-italic"]],template:function(t,e){1&t&&(I.TgZ(0,"h2",0),I._uU(1),I.ALo(2,"translate"),I.YNc(3,ui,2,1,"span",1),I.qZA(),I._UZ(4,"mat-divider",2),I.YNc(5,ci,1,0,"mat-spinner",3),I.YNc(6,yi,51,45,"div",4)),2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TITLE")," "),I.xp6(2),I.Q6J("ngIf",!!e.application),I.xp6(2),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[s.O5,si.d,b.$g,gt.n5,O.lW,_.Hw,ct.BZ,ct.w1,ct.fO,ct.Dz,ct.as,ct.nj,ct.ge,ct.ev,ct.XQ,ct.Gk],pipes:[x.X$,li.h,qt.d,s.uU],styles:[""]}),t}(),Ui=o(11930),qi=o(7433),Pi=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-group-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&I._UZ(0,"app-animated-router-outlet")},directives:[N.A],styles:[""],data:{animation:[p.Ji]}}),t}(),wi=o(55109),Gi=o(3417);function ki(t,e){1&t&&(I._uU(0),I.ALo(1,"translate")),2&t&&I.hij(" ",I.lcZ(1,1,"GROUP_DETAIL.ENTITY")," ")}function Yi(t,e){if(1&t&&I._UZ(0,"app-one-entity-attribute-page",4),2&t){var i=I.oxw();I.Q6J("entity","group")("entityId",i.group.id)}}function Ji(t,e){1&t&&(I._uU(0),I.ALo(1,"translate"),I.ALo(2,"translate")),2&t&&I.AsE(" ",I.lcZ(1,2,"GROUP_DETAIL.ENTITY")," - ",I.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function Vi(t,e){if(1&t&&I._UZ(0,"app-two-entity-attribute-page",5),2&t){var i=I.oxw(2);I.Q6J("firstEntity","group")("firstEntityId",i.group.id)("secondEntity","member")}}function Fi(t,e){1&t&&(I.TgZ(0,"mat-tab"),I.YNc(1,Ji,3,6,"ng-template",1),I.YNc(2,Vi,1,3,"ng-template",2),I.qZA())}function Qi(t,e){1&t&&(I._uU(0),I.ALo(1,"translate"),I.ALo(2,"translate")),2&t&&I.AsE(" ",I.lcZ(1,2,"GROUP_DETAIL.ENTITY")," - ",I.lcZ(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function Bi(t,e){if(1&t&&I._UZ(0,"app-two-entity-attribute-page",5),2&t){var i=I.oxw(2);I.Q6J("firstEntity","group")("firstEntityId",i.group.id)("secondEntity","resource")}}function ji(t,e){1&t&&(I.TgZ(0,"mat-tab"),I.YNc(1,Qi,3,6,"ng-template",1),I.YNc(2,Bi,1,3,"ng-template",2),I.qZA())}var Hi=function(){var t=function(){function t(e,i){a(this,t),this.authResolver=e,this.entityStorageService=i}return r(t,[{key:"ngOnInit",value:function(){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])}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(h.x4),I.Y36(h.fb))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-group-attributes"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:10,vars:5,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"mat-tab-group"),I.TgZ(5,"mat-tab"),I.YNc(6,ki,2,3,"ng-template",1),I.YNc(7,Yi,1,2,"ng-template",2),I.qZA(),I.YNc(8,Fi,3,0,"mat-tab",3),I.YNc(9,ji,3,0,"mat-tab",3),I.qZA(),I.qZA()),2&t&&(I.xp6(2),I.Oqu(I.lcZ(3,3,"GROUP_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),I.xp6(6),I.Q6J("ngIf",e.groupMemberAttAuth),I.xp6(1),I.Q6J("ngIf",e.groupResourceAttAuth))},directives:[wi.SP,wi.uX,wi.uD,wi.Vc,s.O5,ge.t,Gi.Y],pipes:[x.X$],styles:[""]}),t}();function zi(t,e){1&t&&I._UZ(0,"mat-spinner",2)}function Xi(t,e){if(1&t&&(I.TgZ(0,"div"),I._UZ(1,"perun-web-apps-menu-buttons-field",3),I.qZA()),2&t){var i=I.oxw();I.xp6(1),I.Q6J("items",i.items)("size","small")}}var $i=function(){var t=function(){function t(e,i,n,o,r,s,l,u){a(this,t),this.sideMenuService=e,this.groupService=i,this.router=n,this.guiAuthResolver=o,this.apiRequest=r,this.attributesManager=s,this.notificator=l,this.entityStorageService=u,this.items=[],this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}},{key:"initItems",value:function(){var t=this;this.items=[],this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,m.r.GROUP_DEF_EXPIRATION_RULES).subscribe(function(){t.items.push({cssIcon:"perun-group",url:"/organizations/".concat(t.group.voId,"/groups/").concat(t.group.id,"/settings/expiration"),label:"MENU_ITEMS.GROUP.EXPIRATION",style:"group-btn"})},function(e){"HttpErrorResponse"!==e.name&&t.notificator.showRPCError(e)}),this.guiAuthResolver.isManagerPagePrivileged(this.group)&&this.items.push({cssIcon:"perun-manager",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.group.id,"/settings/managers"),label:"MENU_ITEMS.GROUP.MANAGERS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group])&&this.items.push({cssIcon:"perun-application-form",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.group.id,"/settings/applicationForm"),label:"MENU_ITEMS.GROUP.APPLICATION_FORM",style:"group-btn"}),this.guiAuthResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[this.group])&&this.items.push({cssIcon:"perun-notification",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.group.id,"/settings/notifications"),label:"MENU_ITEMS.GROUP.NOTIFICATIONS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[this.group])&&this.items.push({cssIcon:"perun-group",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.group.id,"/settings/relations"),label:"MENU_ITEMS.GROUP.RELATIONS",style:"group-btn"}),this.guiAuthResolver.isAuthorized("getGroupExtSources_Group_policy",[this.group])&&this.items.push({cssIcon:"perun-external-sources",url:"/organizations/".concat(this.group.voId,"/groups/").concat(this.group.id,"/settings/extsources"),label:"MENU_ITEMS.GROUP.EXTSOURCES",style:"group-btn"})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(T.D),I.Y36(d.ff),I.Y36(l.F0),I.Y36(h.x4),I.Y36(h.F5),I.Y36(d.H8),I.Y36(h.V6),I.Y36(h.fb))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-group-settings-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.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(t,e){1&t&&(I.YNc(0,zi,1,0,"mat-spinner",0),I.YNc(1,Xi,2,2,"div",1)),2&t&&(I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[s.O5,b.$g,X.L],styles:[""]}),t}(),Wi=o(14527);function Ki(t,e){1&t&&I._UZ(0,"mat-spinner",3)}function tn(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",10),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).switchToInitial()}),I.TgZ(1,"i",11),I._uU(2,"arrow_right_alt"),I.qZA(),I._uU(3),I.ALo(4,"translate"),I.qZA()}2&t&&(I.xp6(3),I.hij(" ",I.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_INITIAL")," "))}function en(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",10),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).switchToExtension()}),I.TgZ(1,"i",11),I._uU(2,"cached"),I.qZA(),I._uU(3),I.ALo(4,"translate"),I.qZA()}2&t&&(I.xp6(3),I.hij(" ",I.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_EXTENSION")," "))}function nn(t,e){if(1&t&&(I.TgZ(0,"mat-option",12),I._uU(1),I.ALo(2,"translate"),I.ALo(3,"uppercase"),I.qZA()),2&t){var i=e.$implicit;I.Q6J("value",i),I.xp6(1),I.hij(" ",I.lcZ(2,2,I.lcZ(3,4,"SHARED_LIB.LANGUAGES."+i))," ")}}function an(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.disabledTooltip(i))}}function on(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.hiddenTooltip(i))}}function rn(t,e){if(1&t&&(I.TgZ(0,"div",16),I.TgZ(1,"div",17),I.TgZ(2,"span",18),I._uU(3),I.qZA(),I.TgZ(4,"div",18),I._UZ(5,"input",19),I.qZA(),I.qZA(),I.TgZ(6,"div",20),I.YNc(7,an,2,1,"mat-icon",21),I.YNc(8,on,2,1,"mat-icon",21),I.TgZ(9,"span",22),I._uU(10),I.qZA(),I.qZA(),I.qZA()),2&t){var i=I.oxw(2).$implicit,n=I.oxw(2);I.xp6(3),I.Oqu(n.getLocalizedLabel(i)),I.xp6(2),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(2),I.Q6J("ngIf","NEVER"!==i.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.hidden),I.xp6(2),I.Oqu(n.getLocalizedHint(i))}}function sn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.disabledTooltip(i))}}function ln(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.hiddenTooltip(i))}}function un(t,e){if(1&t&&(I.TgZ(0,"div",16),I.TgZ(1,"div",17),I.TgZ(2,"span",18),I._uU(3),I.qZA(),I.TgZ(4,"div",18),I._UZ(5,"input",24),I.qZA(),I.qZA(),I.TgZ(6,"div",20),I.YNc(7,sn,2,1,"mat-icon",21),I.YNc(8,ln,2,1,"mat-icon",21),I.TgZ(9,"span",22),I._uU(10),I.qZA(),I.qZA(),I.qZA()),2&t){var i=I.oxw(2).$implicit,n=I.oxw(2);I.xp6(3),I.Oqu(n.getLocalizedLabel(i)),I.xp6(4),I.Q6J("ngIf","NEVER"!==i.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.hidden),I.xp6(2),I.Oqu(n.getLocalizedHint(i))}}function cn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.disabledTooltip(i))}}function pn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.hiddenTooltip(i))}}function dn(t,e){if(1&t&&(I.TgZ(0,"div",16),I.TgZ(1,"div",17),I.TgZ(2,"span",18),I._uU(3),I.qZA(),I.TgZ(4,"div",18),I._UZ(5,"input",25),I._UZ(6,"br"),I._UZ(7,"input",19),I.qZA(),I.qZA(),I.TgZ(8,"div",20),I.YNc(9,cn,2,1,"mat-icon",21),I.YNc(10,pn,2,1,"mat-icon",21),I.TgZ(11,"span",22),I._uU(12),I.qZA(),I.qZA(),I.qZA()),2&t){var i=I.oxw(2).$implicit,n=I.oxw(2);I.xp6(3),I.Oqu(n.getLocalizedLabel(i)),I.xp6(2),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(2),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(2),I.Q6J("ngIf","NEVER"!==i.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.hidden),I.xp6(2),I.Oqu(n.getLocalizedHint(i))}}function gn(t,e){if(1&t&&(I.TgZ(0,"div"),I._UZ(1,"input",27),I._uU(2),I._UZ(3,"br"),I.qZA()),2&t){var i=e.$implicit,n=I.oxw(3).$implicit;I.xp6(1),I.Q6J("disabled","ALWAYS"===n.disabled),I.xp6(1),I.hij(" ",i,"")}}function hn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.disabledTooltip(i))}}function mn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.hiddenTooltip(i))}}function fn(t,e){if(1&t&&(I.TgZ(0,"div",16),I.TgZ(1,"div",17),I.TgZ(2,"span",18),I._uU(3),I.qZA(),I.TgZ(4,"form",18),I.YNc(5,gn,4,2,"div",9),I._UZ(6,"input",26),I.ALo(7,"translate"),I.qZA(),I.qZA(),I.TgZ(8,"div",20),I.YNc(9,hn,2,1,"mat-icon",21),I.YNc(10,mn,2,1,"mat-icon",21),I.TgZ(11,"span",22),I._uU(12),I.qZA(),I.qZA(),I.qZA()),2&t){var i=I.oxw(2).$implicit,n=I.oxw(2);I.xp6(3),I.Oqu(n.getLocalizedLabel(i)),I.xp6(2),I.Q6J("ngForOf",n.getLocalizedOptions(i)),I.xp6(1),I.s9C("value",I.lcZ(7,7,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION")),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(3),I.Q6J("ngIf","NEVER"!==i.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.hidden),I.xp6(2),I.Oqu(n.getLocalizedHint(i))}}function An(t,e){if(1&t&&(I.TgZ(0,"div"),I._UZ(1,"span",28),I.qZA()),2&t){var i=I.oxw(2).$implicit,n=I.oxw(2);I.xp6(1),I.Q6J("innerHTML",n.getLocalizedLabel(i),I.oJD)}}function In(t,e){if(1&t&&(I.TgZ(0,"option"),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.xp6(1),I.hij(" ",i," ")}}function Tn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.disabledTooltip(i))}}function vn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.hiddenTooltip(i))}}function En(t,e){if(1&t&&(I.TgZ(0,"div",16),I.TgZ(1,"div",17),I.TgZ(2,"span",18),I._uU(3),I.qZA(),I.TgZ(4,"div",18),I.TgZ(5,"select",29),I.YNc(6,In,2,1,"option",9),I.qZA(),I.qZA(),I.qZA(),I.TgZ(7,"div",20),I.YNc(8,Tn,2,1,"mat-icon",21),I.YNc(9,vn,2,1,"mat-icon",21),I.TgZ(10,"span",22),I._uU(11),I.qZA(),I.qZA(),I.qZA()),2&t){var i=I.oxw(2).$implicit,n=I.oxw(2);I.xp6(3),I.Oqu(n.getLocalizedLabel(i)),I.xp6(2),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(1),I.Q6J("ngForOf",n.getLocalizedOptions(i)),I.xp6(2),I.Q6J("ngIf","NEVER"!==i.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.hidden),I.xp6(2),I.Oqu(n.getLocalizedHint(i))}}function Zn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.disabledTooltip(i))}}function bn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.hiddenTooltip(i))}}function _n(t,e){if(1&t&&(I.TgZ(0,"div",16),I.TgZ(1,"div",17),I.TgZ(2,"span",18),I._uU(3),I.qZA(),I._UZ(4,"textarea",30),I.qZA(),I.TgZ(5,"div",20),I.YNc(6,Zn,2,1,"mat-icon",21),I.YNc(7,bn,2,1,"mat-icon",21),I.TgZ(8,"span",22),I._uU(9),I.qZA(),I.qZA(),I.qZA()),2&t){var i=I.oxw(2).$implicit,n=I.oxw(2);I.xp6(3),I.Oqu(n.getLocalizedLabel(i)),I.xp6(1),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(2),I.Q6J("ngIf","NEVER"!==i.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.hidden),I.xp6(2),I.Oqu(n.getLocalizedHint(i))}}function Sn(t,e){if(1&t&&(I.TgZ(0,"option",35),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.xp6(1),I.hij(" ",i," ")}}function Nn(t,e){1&t&&(I.TgZ(0,"div",36),I.TgZ(1,"form"),I._UZ(2,"input",37),I.qZA(),I.qZA())}function On(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.disabledTooltip(i))}}function xn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.hiddenTooltip(i))}}function Ln(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",16),I.TgZ(1,"div",17),I.TgZ(2,"span",18),I._uU(3),I.qZA(),I.TgZ(4,"div",18),I.TgZ(5,"select",31),I.NdJ("ngModelChange",function(t){I.CHM(i);var e=I.oxw(2).$implicit;return I.oxw(2).mapForCombobox[e.id]=t}),I.TgZ(6,"option",32),I._uU(7),I.ALo(8,"translate"),I.qZA(),I.YNc(9,Sn,2,1,"option",33),I.qZA(),I.YNc(10,Nn,3,0,"div",34),I.qZA(),I.qZA(),I.TgZ(11,"div",20),I.YNc(12,On,2,1,"mat-icon",21),I.YNc(13,xn,2,1,"mat-icon",21),I.TgZ(14,"span",22),I._uU(15),I.qZA(),I.qZA(),I.qZA()}if(2&t){var n=I.oxw(2).$implicit,a=I.oxw(2);I.xp6(3),I.Oqu(a.getLocalizedLabel(n)),I.xp6(2),I.Q6J("ngModel",a.mapForCombobox[n.id])("disabled","ALWAYS"===n.disabled),I.xp6(2),I.hij(" ",I.lcZ(8,9,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")," "),I.xp6(2),I.Q6J("ngForOf",a.getLocalizedOptions(n)),I.xp6(1),I.Q6J("ngIf","true"===a.mapForCombobox[n.id]),I.xp6(2),I.Q6J("ngIf","NEVER"!==n.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==n.hidden),I.xp6(2),I.Oqu(a.getLocalizedHint(n))}}function Cn(t,e){if(1&t&&(I.TgZ(0,"div"),I._UZ(1,"input",38),I._uU(2),I.qZA()),2&t){var i=e.$implicit,n=I.oxw(3).$implicit;I.xp6(1),I.Q6J("disabled","ALWAYS"===n.disabled),I.xp6(1),I.hij(" ",i," ")}}function Rn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.disabledTooltip(i))}}function Mn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.hiddenTooltip(i))}}function yn(t,e){if(1&t&&(I.TgZ(0,"div",16),I.TgZ(1,"div",17),I.TgZ(2,"span",18),I._uU(3),I.qZA(),I.TgZ(4,"div",18),I.TgZ(5,"form",36),I.YNc(6,Cn,3,2,"div",9),I.qZA(),I.qZA(),I.qZA(),I.TgZ(7,"div",20),I.YNc(8,Rn,2,1,"mat-icon",21),I.YNc(9,Mn,2,1,"mat-icon",21),I.TgZ(10,"span",22),I._uU(11),I.qZA(),I.qZA(),I.qZA()),2&t){var i=I.oxw(2).$implicit,n=I.oxw(2);I.xp6(3),I.Oqu(n.getLocalizedLabel(i)),I.xp6(3),I.Q6J("ngForOf",n.getLocalizedOptions(i)),I.xp6(2),I.Q6J("ngIf","NEVER"!==i.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.hidden),I.xp6(2),I.Oqu(n.getLocalizedHint(i))}}function Dn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.disabledTooltip(i))}}function Un(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.hiddenTooltip(i))}}function qn(t,e){if(1&t&&(I.TgZ(0,"div",16),I.TgZ(1,"div",17),I.TgZ(2,"span",18),I._uU(3),I.qZA(),I.TgZ(4,"div",18),I.TgZ(5,"form",36),I._UZ(6,"input",38),I._uU(7," example group1 "),I._UZ(8,"br"),I._UZ(9,"input",38),I._uU(10," example group2 "),I._UZ(11,"br"),I._UZ(12,"input",38),I._uU(13," example group3 "),I.qZA(),I.qZA(),I.qZA(),I.TgZ(14,"div",20),I.YNc(15,Dn,2,1,"mat-icon",21),I.YNc(16,Un,2,1,"mat-icon",21),I.TgZ(17,"span",22),I._uU(18),I.qZA(),I.qZA(),I.qZA()),2&t){var i=I.oxw(2).$implicit,n=I.oxw(2);I.xp6(3),I.Oqu(n.getLocalizedLabel(i)),I.xp6(3),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(3),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(3),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(3),I.Q6J("ngIf","NEVER"!==i.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.hidden),I.xp6(2),I.Oqu(n.getLocalizedHint(i))}}function Pn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",41),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.disabledTooltip(i))}}function wn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",41),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.hiddenTooltip(i))}}function Gn(t,e){if(1&t&&(I.TgZ(0,"div",16),I.TgZ(1,"button",39),I._uU(2),I.qZA(),I.YNc(3,Pn,2,1,"mat-icon",40),I.YNc(4,wn,2,1,"mat-icon",40),I.qZA()),2&t){var i=I.oxw(2).$implicit,n=I.oxw(2);I.xp6(1),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(1),I.hij(" ",n.getLocalizedLabel(i)," "),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.hidden)}}function kn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",41),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.disabledTooltip(i))}}function Yn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",41),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.hiddenTooltip(i))}}function Jn(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"button",39),I._uU(2),I.qZA(),I.YNc(3,kn,2,1,"mat-icon",40),I.YNc(4,Yn,2,1,"mat-icon",40),I.qZA()),2&t){var i=I.oxw(2).$implicit,n=I.oxw(2);I.xp6(1),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(1),I.hij(" ",n.getLocalizedLabel(i)," "),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.hidden)}}function Vn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"lock"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.disabledTooltip(i))}}function Fn(t,e){if(1&t&&(I.TgZ(0,"mat-icon",23),I._uU(1,"visibility_off"),I.qZA()),2&t){var i=I.oxw(3).$implicit,n=I.oxw(2);I.Q6J("matTooltip",n.hiddenTooltip(i))}}function Qn(t,e){if(1&t&&(I.TgZ(0,"div",16),I.TgZ(1,"div",17),I.TgZ(2,"span",18),I._uU(3),I.qZA(),I.TgZ(4,"div",18),I.TgZ(5,"select",42),I.TgZ(6,"option",43),I._uU(7),I.ALo(8,"translate"),I.qZA(),I.TgZ(9,"option",44),I._uU(10,"(GMT -12:00) Eniwetok, Kwajalein"),I.qZA(),I.TgZ(11,"option",45),I._uU(12,"(GMT -11:00) Midway Island, Samoa"),I.qZA(),I.TgZ(13,"option",46),I._uU(14,"(GMT -10:00) Hawaii"),I.qZA(),I.TgZ(15,"option",47),I._uU(16,"(GMT -9:30) Taiohae"),I.qZA(),I.TgZ(17,"option",48),I._uU(18,"(GMT -9:00) Alaska"),I.qZA(),I.TgZ(19,"option",49),I._uU(20,"(GMT -8:00) Pacific Time (US & Canada)"),I.qZA(),I.TgZ(21,"option",50),I._uU(22,"(GMT -7:00) Mountain Time (US & Canada)"),I.qZA(),I.TgZ(23,"option",51),I._uU(24," (GMT -6:00) Central Time (US & Canada), Mexico City "),I.qZA(),I.TgZ(25,"option",52),I._uU(26," (GMT -5:00) Eastern Time (US & Canada), Bogota, Lima "),I.qZA(),I.TgZ(27,"option",53),I._uU(28,"(GMT -4:30) Caracas"),I.qZA(),I.TgZ(29,"option",54),I._uU(30,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),I.qZA(),I.TgZ(31,"option",55),I._uU(32,"(GMT -3:30) Newfoundland"),I.qZA(),I.TgZ(33,"option",56),I._uU(34,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),I.qZA(),I.TgZ(35,"option",57),I._uU(36,"(GMT -2:00) Mid-Atlantic"),I.qZA(),I.TgZ(37,"option",58),I._uU(38,"(GMT -1:00) Azores, Cape Verde Islands"),I.qZA(),I.TgZ(39,"option",59),I._uU(40," (GMT) Western Europe Time, London, Lisbon, Casablanca "),I.qZA(),I.TgZ(41,"option",60),I._uU(42,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),I.qZA(),I.TgZ(43,"option",61),I._uU(44,"(GMT +2:00) Kaliningrad, South Africa"),I.qZA(),I.TgZ(45,"option",62),I._uU(46,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),I.qZA(),I.TgZ(47,"option",63),I._uU(48,"(GMT +3:30) Tehran"),I.qZA(),I.TgZ(49,"option",64),I._uU(50,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),I.qZA(),I.TgZ(51,"option",65),I._uU(52,"(GMT +4:30) Kabul"),I.qZA(),I.TgZ(53,"option",66),I._uU(54," (GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent "),I.qZA(),I.TgZ(55,"option",67),I._uU(56,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),I.qZA(),I.TgZ(57,"option",68),I._uU(58,"(GMT +5:45) Kathmandu, Pokhara"),I.qZA(),I.TgZ(59,"option",69),I._uU(60,"(GMT +6:00) Almaty, Dhaka, Colombo"),I.qZA(),I.TgZ(61,"option",70),I._uU(62,"(GMT +6:30) Yangon, Mandalay"),I.qZA(),I.TgZ(63,"option",71),I._uU(64,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),I.qZA(),I.TgZ(65,"option",72),I._uU(66,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),I.qZA(),I.TgZ(67,"option",73),I._uU(68,"(GMT +8:45) Eucla"),I.qZA(),I.TgZ(69,"option",74),I._uU(70,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),I.qZA(),I.TgZ(71,"option",75),I._uU(72,"(GMT +9:30) Adelaide, Darwin"),I.qZA(),I.TgZ(73,"option",76),I._uU(74,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),I.qZA(),I.TgZ(75,"option",77),I._uU(76,"(GMT +10:30) Lord Howe Island"),I.qZA(),I.TgZ(77,"option",78),I._uU(78,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),I.qZA(),I.TgZ(79,"option",79),I._uU(80,"(GMT +11:30) Norfolk Island"),I.qZA(),I.TgZ(81,"option",80),I._uU(82,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),I.qZA(),I.TgZ(83,"option",81),I._uU(84,"(GMT +12:45) Chatham Islands"),I.qZA(),I.TgZ(85,"option",82),I._uU(86,"(GMT +13:00) Apia, Nukualofa"),I.qZA(),I.TgZ(87,"option",83),I._uU(88,"(GMT +14:00) Line Islands, Tokelau"),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.TgZ(89,"div",20),I.YNc(90,Vn,2,1,"mat-icon",21),I.YNc(91,Fn,2,1,"mat-icon",21),I.TgZ(92,"span",22),I._uU(93),I.qZA(),I.qZA(),I.qZA()),2&t){var i=I.oxw(2).$implicit,n=I.oxw(2);I.xp6(3),I.Oqu(n.getLocalizedLabel(i)),I.xp6(2),I.Q6J("disabled","ALWAYS"===i.disabled),I.xp6(2),I.hij(" ",I.lcZ(8,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")," "),I.xp6(83),I.Q6J("ngIf","NEVER"!==i.disabled),I.xp6(1),I.Q6J("ngIf","NEVER"!==i.hidden),I.xp6(2),I.Oqu(n.getLocalizedHint(i))}}function Bn(t,e){if(1&t&&(I.TgZ(0,"div",14),I.YNc(1,rn,11,5,"div",15),I.YNc(2,un,11,4,"div",15),I.YNc(3,dn,13,6,"div",15),I.YNc(4,fn,13,9,"div",15),I.YNc(5,An,2,1,"div",2),I.YNc(6,En,12,6,"div",15),I.YNc(7,_n,10,5,"div",15),I.YNc(8,Ln,16,11,"div",15),I.YNc(9,yn,12,5,"div",15),I.YNc(10,qn,19,7,"div",15),I.YNc(11,Gn,5,4,"div",15),I.YNc(12,Jn,5,4,"div",2),I.YNc(13,Qn,94,8,"div",15),I.qZA()),2&t){var i=I.oxw().$implicit;I.xp6(1),I.Q6J("ngIf",("TEXTFIELD"===i.type||"VALIDATED_EMAIL"===i.type||"USERNAME"===i.type)&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf","FROM_FEDERATION_SHOW"===i.type&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf","PASSWORD"===i.type&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf","RADIO"===i.type&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf",("HEADING"===i.type||"HTML_COMMENT"===i.type)&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf","SELECTIONBOX"===i.type&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf","TEXTAREA"===i.type&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf","COMBOBOX"===i.type&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf","CHECKBOX"===i.type&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===i.type&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf","SUBMIT_BUTTON"===i.type&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf","AUTO_SUBMIT_BUTTON"===i.type&&"ALWAYS"!==i.hidden),I.xp6(1),I.Q6J("ngIf","TIMEZONE"===i.type&&"ALWAYS"!==i.hidden)}}function jn(t,e){if(1&t&&(I.TgZ(0,"div"),I.YNc(1,Bn,14,13,"div",13),I.qZA()),2&t){var i=e.$implicit,n=I.oxw(2);I.xp6(1),I.Q6J("ngIf",n.isValid(i))}}function Hn(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div"),I.TgZ(1,"div",4),I.YNc(2,tn,5,3,"button",5),I.YNc(3,en,5,3,"button",5),I.TgZ(4,"mat-form-field"),I.TgZ(5,"mat-label"),I._uU(6),I.ALo(7,"translate"),I.qZA(),I.TgZ(8,"mat-select",6),I.NdJ("valueChange",function(t){return I.CHM(i),I.oxw().currentLanguage=t}),I.YNc(9,nn,4,6,"mat-option",7),I.qZA(),I.qZA(),I.qZA(),I.TgZ(10,"div",8),I.YNc(11,jn,2,1,"div",9),I.qZA(),I.qZA()}if(2&t){var n=I.oxw();I.xp6(2),I.Q6J("ngIf",!n.initialPage),I.xp6(1),I.Q6J("ngIf",n.initialPage),I.xp6(3),I.Oqu(I.lcZ(7,6,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),I.xp6(2),I.Q6J("value",n.currentLanguage),I.xp6(1),I.Q6J("ngForOf",n.languages),I.xp6(2),I.Q6J("ngForOf",n.applicationFormItems)}}var zn=function(){var t=function(){function t(e,i,n){a(this,t),this.route=e,this.translate=i,this.store=n,this.loading=!0,this.applicationFormItems=[],this.currentLanguage="en",this.languages=["en"],this.initialPage=!0,this.mapForCombobox=new Map}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.languages=this.store.get("supported_languages"),this.route.queryParamMap.subscribe(function(e){t.applicationFormItems=JSON.parse(e.get("applicationFormItems")),t.loading=!1})}},{key:"switchToInitial",value:function(){this.initialPage=!0}},{key:"switchToExtension",value:function(){this.initialPage=!1}},{key:"getLocalizedOptions",value:function(t){if(t.i18n[this.currentLanguage]){var i=t.i18n[this.currentLanguage].options;if(null!==i&&""!==i){var n,a=[],o=e(i.split("|"));try{for(o.s();!(n=o.n()).done;){var r=n.value;a.push(r.split("#")[1])}}catch(s){o.e(s)}finally{o.f()}return a}}return[]}},{key:"isValid",value:function(t){if(t.forDelete)return!1;var i,n=e(t.applicationTypes);try{for(n.s();!(i=n.n()).done;){var a=i.value;if("INITIAL"===a&&this.initialPage)return!0;if("EXTENSION"===a&&!this.initialPage)return!0}}catch(o){n.e(o)}finally{n.f()}return!1}},{key:"disabledTooltip",value:function(t){var e,i,n;switch(t.disabled){case"ALWAYS":return this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.ALWAYS_DISABLED");case"IF_PREFILLED":return e=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.DISABLED_WHEN"),i=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(function(e){return e.id===t.disabledDependencyItemId}).shortname,n=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_PREFILLED"),"".concat(e," ").concat(i," ").concat(n);case"IF_EMPTY":return e=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.DISABLED_WHEN"),i=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(function(e){return e.id===t.disabledDependencyItemId}).shortname,n=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_EMPTY"),"".concat(e," ").concat(i," ").concat(n);default:return""}}},{key:"hiddenTooltip",value:function(t){var e,i,n;switch(t.hidden){case"ALWAYS":return this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.ALWAYS_HIDDEN");case"IF_PREFILLED":return e=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.HIDDEN_WHEN"),i=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(function(e){return e.id===t.hiddenDependencyItemId}).shortname,n=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_PREFILLED"),"".concat(e," ").concat(i," ").concat(n);case"IF_EMPTY":return e=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.HIDDEN_WHEN"),i=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(function(e){return e.id===t.hiddenDependencyItemId}).shortname,n=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_EMPTY"),"".concat(e," ").concat(i," ").concat(n);default:return""}}},{key:"getLocalizedLabel",value:function(t){return t.i18n[this.currentLanguage]&&t.i18n[this.currentLanguage].label?t.i18n[this.currentLanguage].label:t.shortname}},{key:"getLocalizedHint",value:function(t){return t.i18n[this.currentLanguage]?t.i18n[this.currentLanguage].help:""}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(l.gz),I.Y36(x.sK),I.Y36(h.d6))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-application-form-preview"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.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","disabled","",1,"w-100"],["type","text",1,"mb-1","w-100",3,"disabled"],["type","reset",3,"disabled","value"],["type","radio","name","temp",3,"disabled"],[3,"innerHTML"],[1,"w-100",3,"disabled"],[1,"w-50",3,"disabled"],[1,"w-100",3,"ngModel","disabled","ngModelChange"],["value","true","selected",""],["value","false",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["value","false"],[1,"w-100"],["type","text"],["type","checkbox",3,"disabled"],["mat-flat-button","","color","accent",3,"disabled"],["class","pointer left",3,"matTooltip",4,"ngIf"],[1,"pointer","left",3,"matTooltip"],["name","timezone_offset","id","timezone-offset",1,"w-100",3,"disabled"],["value","-12:00","selected","selected"],["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"]],template:function(t,e){1&t&&(I.TgZ(0,"h1",0),I._uU(1),I.ALo(2,"translate"),I.qZA(),I.YNc(3,Ki,1,0,"mat-spinner",1),I.YNc(4,Hn,12,8,"div",2)),2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,3,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.TITLE"),"\n"),I.xp6(2),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[s.O5,b.$g,be.KE,be.hX,_e.gD,s.sg,O.lW,Ne.ey,_.Hw,S.gM,Te._Y,Te.JL,Te.F,Te.YN,Te.Kr,Te.EJ,Te.JJ,Te.On],pipes:[x.X$,s.gd],styles:[".left[_ngcontent-%COMP%]{margin-left:10px}.pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t}();function Xn(t,e){1&t&&(I._uU(0),I.ALo(1,"translate")),2&t&&I.hij(" ",I.lcZ(1,1,"MEMBER_DETAIL.ENTITY")," ")}function $n(t,e){if(1&t&&I._UZ(0,"app-one-entity-attribute-page",5),2&t){var i=I.oxw();I.Q6J("entity","member")("entityId",i.memberId)}}function Wn(t,e){1&t&&(I._uU(0),I.ALo(1,"translate"),I.ALo(2,"translate")),2&t&&I.AsE(" ",I.lcZ(1,2,"MEMBER_DETAIL.ENTITY")," - ",I.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function Kn(t,e){if(1&t&&I._UZ(0,"app-two-entity-attribute-page",6),2&t){var i=I.oxw(2);I.Q6J("firstEntity","member")("firstEntityId",i.memberId)("secondEntity","group")}}function ta(t,e){1&t&&(I.TgZ(0,"mat-tab"),I.YNc(1,Wn,3,6,"ng-template",1),I.YNc(2,Kn,1,3,"ng-template",2),I.qZA())}function ea(t,e){1&t&&(I._uU(0),I.ALo(1,"translate"),I.ALo(2,"translate")),2&t&&I.AsE(" ",I.lcZ(1,2,"MEMBER_DETAIL.ENTITY")," - ",I.lcZ(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function ia(t,e){if(1&t&&I._UZ(0,"app-two-entity-attribute-page",6),2&t){var i=I.oxw(2);I.Q6J("firstEntity","member")("firstEntityId",i.memberId)("secondEntity","resource")}}function na(t,e){1&t&&(I.TgZ(0,"mat-tab"),I.YNc(1,ea,3,6,"ng-template",1),I.YNc(2,ia,1,3,"ng-template",2),I.qZA())}function aa(t,e){1&t&&(I._uU(0),I.ALo(1,"translate")),2&t&&I.hij(" ",I.lcZ(1,1,"ADMIN_USER.ENTITY")," ")}function oa(t,e){if(1&t&&I._UZ(0,"app-one-entity-attribute-page",7),2&t){var i=I.oxw();I.Q6J("entityId",i.member.userId)("entity","user")}}function ra(t,e){1&t&&(I._uU(0),I.ALo(1,"translate"),I.ALo(2,"translate")),2&t&&I.AsE(" ",I.lcZ(1,2,"ADMIN_USER.ENTITY")," - ",I.lcZ(2,4,"FACILITY_DETAIL.ENTITY")," ")}function sa(t,e){if(1&t&&I._UZ(0,"app-two-entity-attribute-page",6),2&t){var i=I.oxw(2);I.Q6J("firstEntity","user")("firstEntityId",i.member.userId)("secondEntity","facility")}}function la(t,e){1&t&&(I.TgZ(0,"mat-tab"),I.YNc(1,ra,3,6,"ng-template",1),I.YNc(2,sa,1,3,"ng-template",2),I.qZA())}var ua=function(){var t=function(){function t(e,i,n){a(this,t),this.route=e,this.authResolver=i,this.memberManager=n}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.parent.params.subscribe(function(e){t.memberId=e.memberId,t.memberManager.getMemberById(t.memberId).subscribe(function(e){t.member=e,t.memberGroupAttAuth=t.authResolver.isAuthorized("getMemberGroups_Member_policy",[t.member]),t.memberResourceAttAuth=t.authResolver.isAuthorized("getAssignedResourcesWithStatus_Member_policy",[t.member]),t.userFacilityAttAuth=t.authResolver.isAuthorized("getAssignedFacilities_User_policy",[{beanName:"User",id:e.userId}])})})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(l.gz),I.Y36(h.x4),I.Y36(d.uq))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-member-attributes"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:14,vars:6,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[1,"mb-2"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity"],[3,"entityId","entity"]],template:function(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"mat-tab-group"),I.TgZ(5,"mat-tab"),I.YNc(6,Xn,2,3,"ng-template",1),I.YNc(7,$n,1,2,"ng-template",2),I.qZA(),I.YNc(8,ta,3,0,"mat-tab",3),I.YNc(9,na,3,0,"mat-tab",3),I.TgZ(10,"mat-tab",4),I.YNc(11,aa,2,3,"ng-template",1),I.YNc(12,oa,1,2,"ng-template",2),I.qZA(),I.YNc(13,la,3,0,"mat-tab",3),I.qZA(),I.qZA()),2&t&&(I.xp6(2),I.Oqu(I.lcZ(3,4,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),I.xp6(6),I.Q6J("ngIf",e.memberGroupAttAuth),I.xp6(1),I.Q6J("ngIf",e.memberResourceAttAuth),I.xp6(4),I.Q6J("ngIf",e.userFacilityAttAuth))},directives:[wi.SP,wi.uX,wi.uD,wi.Vc,s.O5,ge.t,Gi.Y],pipes:[x.X$],styles:[""]}),t}(),ca=function(){var t=function(){function t(e,i,n,o){a(this,t),this.sideMenuService=e,this.voService=i,this.authResolver=n,this.entityStorageService=o,this.items=[]}return r(t,[{key:"ngOnInit",value:function(){this.vo=this.entityStorageService.getEntity(),this.initItems()}},{key:"initItems",value:function(){this.items=[{cssIcon:"perun-resource",url:"/organizations/".concat(this.vo.id,"/resources/preview"),label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",style:"vo-btn"}],this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[this.vo])&&this.items.push({cssIcon:"perun-resource-tags",url:"/organizations/".concat(this.vo.id,"/resources/tags"),label:"MENU_ITEMS.VO.RESOURCE_TAGS",style:"vo-btn"}),this.authResolver.isAuthorized("getResourcesState_Vo_policy",[this.vo])&&this.items.push({cssIcon:"perun-resources-state",url:"/organizations/".concat(this.vo.id,"/resources/states"),label:"MENU_ITEMS.VO.RESOURCE_STATES",style:"vo-btn"})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(T.D),I.Y36(d.YF),I.Y36(h.x4),I.Y36(h.fb))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-vo-resources-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(t,e){1&t&&(I.TgZ(0,"div"),I._UZ(1,"perun-web-apps-menu-buttons-field",0),I.qZA()),2&t&&(I.xp6(1),I.Q6J("items",e.items)("size","small"))},directives:[X.L],styles:[""]}),t}(),pa=o(88227),da=o(97397),ga=o(4230),ha=o(24923);function ma(t,e){1&t&&I._UZ(0,"mat-spinner",6)}function fa(t,e){1&t&&I._UZ(0,"th",15)}function Aa(t,e){if(1&t&&(I.TgZ(0,"td",16),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.xp6(1),I.Oqu(i.tagName)}}function Ia(t,e){1&t&&I._UZ(0,"tr",17)}function Ta(t,e){1&t&&I._UZ(0,"tr",18)}function va(t,e){if(1&t&&(I.TgZ(0,"div",7),I.TgZ(1,"p"),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"div",8),I._uU(5),I.ALo(6,"translate"),I.qZA(),I.TgZ(7,"table",9),I.ynx(8,10),I.YNc(9,fa,1,0,"th",11),I.YNc(10,Aa,2,1,"td",12),I.BQk(),I.YNc(11,Ia,1,0,"tr",13),I.YNc(12,Ta,1,0,"tr",14),I.qZA(),I.qZA()),2&t){var i=I.oxw();I.xp6(2),I.hij(" ",I.lcZ(3,5,"DIALOGS.DELETE_RESOURCE_TAG.DESCRIPTION")," "),I.xp6(3),I.hij(" ",I.lcZ(6,7,"DIALOGS.DELETE_RESOURCE_TAG.ASK")," "),I.xp6(2),I.Q6J("dataSource",i.dataSource),I.xp6(4),I.Q6J("matHeaderRowDef",i.displayedColumns),I.xp6(1),I.Q6J("matRowDefColumns",i.displayedColumns)}}var Ea=function(){var t=function(){function t(e,i,n){a(this,t),this.dialogRef=e,this.data=i,this.resourceManager=n,this.displayedColumns=["name"],this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new ct.by(this.data.tagsForDelete)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0;var i,n=e(this.data.tagsForDelete);try{for(n.s();!(i=n.n()).done;){var a=i.value;this.resourceManager.deleteResourceTag({resourceTag:a}).subscribe(function(){t.dialogRef.close(!0)},function(){return t.dialogRef.close(!0)})}}catch(o){n.e(o)}finally{n.f()}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(v.so),I.Y36(v.WI),I.Y36(d.xk))},t.\u0275cmp=I.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.YNc(4,ma,1,0,"mat-spinner",1),I.YNc(5,va,13,9,"div",2),I.TgZ(6,"div",3),I.TgZ(7,"button",4),I.NdJ("click",function(){return e.onCancel()}),I._uU(8),I.ALo(9,"translate"),I.qZA(),I.TgZ(10,"button",5),I.NdJ("click",function(){return e.onSubmit()}),I._uU(11),I.ALo(12,"translate"),I.qZA(),I.qZA(),I.qZA()),2&t&&(I.Tol(e.theme),I.xp6(2),I.Oqu(I.lcZ(3,9,"DIALOGS.DELETE_RESOURCE_TAG.TITLE")),I.xp6(2),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading),I.xp6(3),I.hij(" ",I.lcZ(9,11,"DIALOGS.DELETE_RESOURCE_TAG.CANCEL")," "),I.xp6(2),I.Q6J("disabled",e.loading),I.xp6(1),I.hij(" ",I.lcZ(12,13,"DIALOGS.DELETE_RESOURCE_TAG.SUBMIT")," "))},directives:[v.uh,s.O5,v.H8,O.lW,b.$g,v.xY,ct.BZ,ct.w1,ct.fO,ct.Dz,ct.as,ct.nj,ct.ge,ct.ev,ct.XQ,ct.Gk],pipes:[x.X$],styles:[""]}),t}(),Za=o(60611),ba=o(59403),_a=o(19139),Sa=o(4196);function Na(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",7),I.NdJ("click",function(){return I.CHM(i),I.oxw().create()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function Oa(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",8),I.NdJ("click",function(){return I.CHM(i),I.oxw().deleteTag()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}if(2&t){var n=I.oxw();I.Q6J("disabled",0===n.selection.selected.length),I.xp6(1),I.hij(" ",I.lcZ(2,2,"VO_DETAIL.RESOURCES.TAGS.DELETE_BUTTON"),"\n")}}function xa(t,e){1&t&&I._UZ(0,"mat-spinner",9)}function La(t,e){if(1&t&&I._UZ(0,"app-resources-tags-list",10),2&t){var i=I.oxw();I.Q6J("selection",i.selection)("tableId",i.tableId)("resourceTags",i.resourceTag)("filterValue",i.filterValue)("displayedColumns",i.displayedColumns)("entity","vo")}}var Ca=function(){var t=function(){function t(e,i,n,o,r,s){a(this,t),this.resourceManager=e,this.dialog=i,this.notificator=n,this.translator=o,this.authResolver=r,this.entityStorageService=s,this.loading=!1,this.resourceTag=[],this.selection=new ga.Ov(!0,[]),this.tableId=Za.O7,this.displayedColumns=[]}return r(t,[{key:"ngOnInit",value:function(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.updateData()}},{key:"deleteTag",value:function(){var t=this,e=(0,g.kZ)();e.width="450px",e.data={tagsForDelete:this.selection.selected,theme:"vo-theme"},this.dialog.open(Ea,e).afterClosed().subscribe(function(e){e&&(t.translator.get("VO_DETAIL.RESOURCES.TAGS.DELETE_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e)}),t.updateData())})}},{key:"create",value:function(){var t=this,e=(0,g.kZ)();e.width="450px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(ha.p,e).afterClosed().subscribe(function(e){e&&(t.translator.get("VO_DETAIL.RESOURCES.TAGS.CREATE_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e)}),t.updateData())})}},{key:"updateData",value:function(){var t=this;this.loading=!0,this.selection.clear(),this.resourceManager.getAllResourcesTagsForVo(this.vo.id).subscribe(function(e){t.resourceTag=e,t.selection.clear(),t.setAuthRights(),t.loading=!1})}},{key:"setAuthRights",value:function(){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")}},{key:"applyFilter",value:function(t){this.filterValue=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(d.xk),I.Y36(v.uw),I.Y36(h.V6),I.Y36(x.sK),I.Y36(h.x4),I.Y36(h.fb))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-vo-resources-tags"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["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,"selection","tableId","resourceTags","filterValue","displayedColumns","entity",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,"selection","tableId","resourceTags","filterValue","displayedColumns","entity"]],template:function(t,e){1&t&&(I.TgZ(0,"h1",0),I._uU(1),I.ALo(2,"translate"),I.qZA(),I.TgZ(3,"perun-web-apps-refresh-button",1),I.NdJ("refresh",function(){return e.updateData()}),I.qZA(),I.YNc(4,Na,3,3,"button",2),I.YNc(5,Oa,3,4,"button",3),I.TgZ(6,"perun-web-apps-immediate-filter",4),I.NdJ("filter",function(t){return e.applyFilter(t)}),I.qZA(),I.YNc(7,xa,1,0,"mat-spinner",5),I.YNc(8,La,1,6,"app-resources-tags-list",6)),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,6,"VO_DETAIL.RESOURCES.TAGS.TITLE")),I.xp6(3),I.Q6J("ngIf",e.createAuth),I.xp6(1),I.Q6J("ngIf",e.deleteAuth),I.xp6(1),I.Q6J("placeholder","VO_DETAIL.RESOURCES.TAGS.SEARCH"),I.xp6(1),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[ba.t,s.O5,_a.L,O.lW,b.$g,Sa.o],pipes:[x.X$],styles:[""]}),t}();function Ra(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"app-expiration-settings",1),I.NdJ("saveAttribute",function(t){return I.CHM(i),I.oxw().saveExpirationAttribute(t)}),I.qZA()}if(2&t){var n=I.oxw();I.Q6J("expirationAttribute",n.expirationAttribute)}}var Ma=function(){var t=function(){function t(e,i,n,o,r){var s=this;a(this,t),this.attributesManager=e,this.translate=i,this.notificator=n,this.apiRequest=o,this.entityStorageService=r,this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(function(t){return s.successMessage=t}),this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(function(t){return s.errorMessage=t})}return r(t,[{key:"ngOnInit",value:function(){this.group=this.entityStorageService.getEntity(),this.loadSettings()}},{key:"loadSettings",value:function(){var t=this;this.attributesManager.getGroupAttributeByName(this.group.id,m.r.GROUP_DEF_EXPIRATION_RULES).subscribe(function(e){t.expirationAttribute=e})}},{key:"saveExpirationAttribute",value:function(t){var e=this;this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setGroupAttribute({group:this.group.id,attribute:t}).subscribe(function(){e.loadSettings(),e.notificator.showSuccess(e.successMessage)},function(t){return e.notificator.showRPCError(t.error,e.errorMessage)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(d.H8),I.Y36(x.sK),I.Y36(h.V6),I.Y36(h.F5),I.Y36(h.fb))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-group-settings-expiration"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(t,e){1&t&&I.YNc(0,Ra,1,1,"app-expiration-settings",0),2&t&&I.Q6J("ngIf",void 0!==e.expirationAttribute)},directives:[s.O5,ke],styles:[""]}),t}(),ya=function(){var t=function(){function t(e,i){a(this,t),this.guiAuthResolver=e,this.entityStorageService=i,this.availableRoles=[],this.selected="user",this.type="Group",this.theme="group-theme"}return r(t,[{key:"ngOnInit",value:function(){this.group=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Group")}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(h.x4),I.Y36(h.fb))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-group-settings-managers"]],hostVars:2,hostBindings:function(t,e){2&t&&I.ekj("router-component",e.true)},decls:1,vars:4,consts:[[3,"complementaryObject","complementaryObjectType","theme","availableRoles"]],template:function(t,e){1&t&&I._UZ(0,"app-managers-page",0),2&t&&I.Q6J("complementaryObject",e.group)("complementaryObjectType",e.type)("theme",e.theme)("availableRoles",e.availableRoles)},directives:[Fe.s],styles:[""]}),t}();function Da(t,e){1&t&&I._UZ(0,"mat-spinner",6)}function Ua(t,e){1&t&&I._UZ(0,"th",15)}function qa(t,e){if(1&t&&(I.TgZ(0,"td",16),I._uU(1),I.qZA()),2&t){var i=e.$implicit,n=I.oxw(2);I.xp6(1),I.Oqu(n.getMailType(i))}}function Pa(t,e){1&t&&I._UZ(0,"tr",17)}function wa(t,e){1&t&&I._UZ(0,"tr",18)}function Ga(t,e){if(1&t&&(I.TgZ(0,"div",7),I.TgZ(1,"p"),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"div",8),I._uU(5),I.ALo(6,"translate"),I.qZA(),I.TgZ(7,"table",9),I.ynx(8,10),I.YNc(9,Ua,1,0,"th",11),I.YNc(10,qa,2,1,"td",12),I.BQk(),I.YNc(11,Pa,1,0,"tr",13),I.YNc(12,wa,1,0,"tr",14),I.qZA(),I.qZA()),2&t){var i=I.oxw();I.xp6(2),I.hij(" ",I.lcZ(3,5,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.DESCRIPTION")," "),I.xp6(3),I.hij(" ",I.lcZ(6,7,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CONFIRMATION")," "),I.xp6(2),I.Q6J("dataSource",i.dataSource),I.xp6(4),I.Q6J("matHeaderRowDef",i.displayedColumns),I.xp6(1),I.Q6J("matRowDefColumns",i.displayedColumns)}}var ka=function(){var t=function(){function t(e,i,n,o,r){a(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translate=o,this.registrarService=r,this.displayedColumns=["name"],this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new ct.by(this.data.mails)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;if(this.loading=!0,this.data.groupId){var i,n=e(this.data.mails);try{for(n.s();!(i=n.n()).done;){var a=i.value;this.registrarService.deleteApplicationMailForGroup(this.data.groupId,a.id).subscribe(function(){t.dialogRef.close(!0)},function(){return t.loading=!1})}}catch(l){n.e(l)}finally{n.f()}}else{var o,r=e(this.data.mails);try{for(r.s();!(o=r.n()).done;){var s=o.value;this.registrarService.deleteApplicationMailForVo(this.data.voId,s.id).subscribe(function(){t.dialogRef.close(!0)},function(){return t.loading=!1})}}catch(l){r.e(l)}finally{r.f()}}}},{key:"getMailType",value:function(t){var e="";return null==t.mailType||0===t.mailType.length?e="":this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_"+t.mailType).subscribe(function(t){e=t}),e}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(v.so),I.Y36(v.WI),I.Y36(h.V6),I.Y36(x.sK),I.Y36(d.tk))},t.\u0275cmp=I.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.YNc(4,Da,1,0,"mat-spinner",1),I.YNc(5,Ga,13,9,"div",2),I.TgZ(6,"div",3),I.TgZ(7,"button",4),I.NdJ("click",function(){return e.onCancel()}),I._uU(8),I.ALo(9,"translate"),I.qZA(),I.TgZ(10,"button",5),I.NdJ("click",function(){return e.onSubmit()}),I._uU(11),I.ALo(12,"translate"),I.qZA(),I.qZA(),I.qZA()),2&t&&(I.Tol(e.theme),I.xp6(2),I.Oqu(I.lcZ(3,9,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.TITLE")),I.xp6(2),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading),I.xp6(3),I.hij(" ",I.lcZ(9,11,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CANCEL")," "),I.xp6(2),I.Q6J("disabled",e.loading),I.xp6(1),I.hij(" ",I.lcZ(12,13,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.SUBMIT")," "))},directives:[v.uh,s.O5,v.H8,O.lW,b.$g,v.xY,ct.BZ,ct.w1,ct.fO,ct.Dz,ct.as,ct.nj,ct.ge,ct.ev,ct.XQ,ct.Gk],pipes:[x.X$],styles:[""]}),t}(),Ya=o(10901);function Ja(t,e){1&t&&I._UZ(0,"mat-spinner",7)}function Va(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",8),I.TgZ(1,"div"),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"mat-form-field"),I.TgZ(5,"textarea",9),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().mailFooter=t}),I.qZA(),I.qZA(),I.TgZ(6,"div",10),I._uU(7),I.ALo(8,"translate"),I.qZA(),I.qZA()}if(2&t){var n=I.oxw();I.xp6(2),I.hij("",I.lcZ(3,4,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.LABEL"),":"),I.xp6(3),I.Q6J("cdkTextareaAutosize",!0)("ngModel",n.mailFooter),I.xp6(2),I.hij(" ",I.lcZ(8,6,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.DESCRIPTION")," ")}}var Fa=function(){var t=function(){function t(e,i,n,o,r){a(this,t),this.dialogRef=e,this.attributesManager=i,this.translateService=n,this.notificator=o,this.data=r,this.mailFooter="",this.loading=!1}return r(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.loading=!0,this.data.groupId?this.getFooterForGroup():this.getFooterForVo(),this.loading=!1}},{key:"submit",value:function(){var t=this;this.loading=!0,this.mailAttribute.value=this.mailFooter,this.data.groupId?this.attributesManager.setGroupAttribute({group:this.data.groupId,attribute:this.mailAttribute}).subscribe(function(){t.notificateSuccess(),t.dialogRef.close()},function(){return t.loading=!1}):this.attributesManager.setVoAttribute({vo:this.data.voId,attribute:this.mailAttribute}).subscribe(function(){t.notificateSuccess(),t.dialogRef.close()},function(){return t.loading=!1})}},{key:"cancel",value:function(){this.dialogRef.close()}},{key:"getFooterForVo",value:function(){var t=this;this.attributesManager.getVoAttributeByName(this.data.voId,m.r.VO_DEF_MAIL_FOOTER).subscribe(function(e){t.mailAttribute=e,t.editAuth=t.mailAttribute.writable,t.mailFooter=e.value?e.value:""})}},{key:"getFooterForGroup",value:function(){var t=this;this.attributesManager.getGroupAttributeByName(this.data.groupId,m.r.GROUP_DEF_MAIL_FOOTER).subscribe(function(e){t.mailAttribute=e,t.editAuth=t.mailAttribute.writable,t.mailFooter=e.value?e.value:""})}},{key:"notificateSuccess",value:function(){var t=this;this.translateService.get("DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close()})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(v.so),I.Y36(d.H8),I.Y36(x.sK),I.Y36(h.V6),I.Y36(v.WI))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-edit-email-footer-dialog"]],decls:15,vars:20,consts:[["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"],[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"],["matInput","",3,"cdkTextareaAutosize","ngModel","ngModelChange"],[1,"mt-2","font-italic","text-muted"]],template:function(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.YNc(4,Ja,1,0,"mat-spinner",1),I.YNc(5,Va,9,8,"div",2),I.TgZ(6,"div",3),I.TgZ(7,"button",4),I.NdJ("click",function(){return e.cancel()}),I._uU(8),I.ALo(9,"translate"),I.qZA(),I.TgZ(10,"div",5),I.ALo(11,"translate"),I.TgZ(12,"button",6),I.NdJ("click",function(){return e.submit()}),I._uU(13),I.ALo(14,"translate"),I.qZA(),I.qZA(),I.qZA(),I.qZA()),2&t&&(I.Tol(e.theme),I.xp6(2),I.Oqu(I.lcZ(3,12,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.TITLE")),I.xp6(2),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading),I.xp6(3),I.hij(" ",I.lcZ(9,14,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.CANCEL_BUTTON")," "),I.xp6(2),I.s9C("matTooltip",I.lcZ(11,16,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.HINT")),I.Q6J("matTooltipDisabled",e.editAuth)("matTooltipPosition","above"),I.xp6(2),I.Q6J("disabled",e.loading||!e.editAuth),I.xp6(1),I.hij(" ",I.lcZ(14,18,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUBMIT_BUTTON")," "))},directives:[v.uh,s.O5,v.H8,O.lW,S.gM,b.$g,v.xY,be.KE,Se.Nt,Ya.IC,Te.Fj,Te.JJ,Te.On],pipes:[x.X$],styles:[""]}),t}(),Qa=o(4253);function Ba(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div"),I.TgZ(1,"div",1),I.TgZ(2,"button",2),I.NdJ("click",function(){var t=I.CHM(i).$implicit;return I.oxw().addTag("{"+t[0]+"}")}),I.ALo(3,"translate"),I._uU(4),I.qZA(),I.TgZ(5,"span",3),I._uU(6),I.ALo(7,"translate"),I.qZA(),I.qZA(),I._UZ(8,"mat-divider",4),I.qZA()}if(2&t){var n=e.$implicit;I.xp6(2),I.s9C("matTooltip",I.lcZ(3,3,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TAG_HINT")),I.xp6(2),I.hij(" ",n[0]," "),I.xp6(2),I.hij(" ",I.lcZ(7,5,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL."+n[1])," ")}}var ja=function(){var t=function(){function t(){a(this,t),this.tags=[],this.addedTag=new I.vpe}return r(t,[{key:"addTag",value:function(t){this.addedTag.emit(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-tag-section"]],inputs:{tags:"tags"},outputs:{addedTag:"addedTag"},decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[1,"d-flex","flex-row"],["matTooltipPosition","above","mat-flat-button","",1,"tag-text","w-25",3,"matTooltip","click"],[1,"w-75"],[1,"mt-1","mb-1"]],template:function(t,e){1&t&&I.YNc(0,Ba,9,7,"div",0),2&t&&I.Q6J("ngForOf",e.tags)},directives:[s.sg,O.lW,S.gM,si.d],pipes:[x.X$],styles:[".tag-text[_ngcontent-%COMP%]{font-size:.9rem;font-weight:700}"]}),t}(),Ha=function(){var t=function(){function t(){a(this,t),this.addedTag=new I.vpe,this.applicationRelatedTags=[],this.userRelatedTags=[],this.validationLinksUsersTags=[],this.applicationLinksUsersTags=[],this.applicationLinksAdministratorsTags=[],this.perunLinksAdministratorsTags=[],this.userInvitationsTags=[]}return r(t,[{key:"ngOnInit",value:function(){this.getApplicationRelatedTags(),this.getUserRelatedTags(),this.getValidationLinksUsersTags(),this.getApplicationLinksUsersTags(),this.getApplicationLinksAdministratorsTags(),this.getPerunLinksAdministratorsTags(),this.getUserInvitationsTags()}},{key:"getApplicationRelatedTags",value:function(){var t=[];t.push(["appId","APPID_DESCRIPTION"]),t.push(["actor","ACTOR_DESCRIPTION"]),t.push(["extSource","EXTSOURCE_DESCRIPTION"]),t.push(["voName","VONAME_DESCRIPTION"]),t.push(["groupName","GROUPNAME_DESCRIPTION"]),t.push(["mailFooter","MAILFOOTER_DESCRIPTION"]),t.push(["errors","ERRORS_DESCRIPTION"]),t.push(["customMessage","CUSTOMMESSAGE_DESCRIPTION"]),t.push(["fromApp-itemName","FROMAPPITEMNAME_DESCRIPTION"]),this.applicationRelatedTags=t}},{key:"getUserRelatedTags",value:function(){var t=[];t.push(["firstName","FIRSTNAME_DESCRIPTION"]),t.push(["lastName","LASTNAME_DESCRIPTION"]),t.push(["displayName","DISPLAYNAME_DESCRIPTION"]),t.push(["mail","MAIL_DESCRIPTION"]),t.push(["phone","PHONE_DESCRIPTION"]),t.push(["login-namespace","LOGINNAMESPACE_DESCRIPTION"]),t.push(["membershipExpiration","MEMBERSHIPEXPIRATION_DESCRIPTION"]),this.userRelatedTags=t}},{key:"getValidationLinksUsersTags",value:function(){var t=[];t.push(["validationLink","VALIDATIONLINK_DESCRIPTION"]),t.push(["validationLink-krb","VALIDATIONKRB_DESCRIPTION"]),t.push(["validationLink-fed","VALIDATIONFED_DESCRIPTION"]),t.push(["validationLink-cert","VALIDATIONCERT_DESCRIPTION"]),t.push(["validationLink-non","VALIDATIONNON_DESCRIPTION"]),t.push(["redirectUrl","REDIRECTURL_DESCRIPTION"]),this.validationLinksUsersTags=t}},{key:"getApplicationLinksUsersTags",value:function(){var t=[];t.push(["appGuiUrl","APPGUIURL_DESCRIPTION"]),t.push(["appGuiUrl-krb","APPGUIURLKRB_DESCRIPTION"]),t.push(["appGuiUrl-fed","APPGUIURLFED_DESCRIPTION"]),t.push(["appGuiUrl-cert","APPGUIURLCERT_DESCRIPTION"]),t.push(["appGuiUrl-non","APPGUIURLNON_DESCRIPTION"]),this.applicationLinksUsersTags=t}},{key:"getApplicationLinksAdministratorsTags",value:function(){var t=[];t.push(["appDetailUrl","APPDETAILURL_DESCRIPTION"]),t.push(["appDetailUrl-krb","APPDETAILURLKRB_DESCRIPTION"]),t.push(["appDetailUrl-fed","APPDETAILURLFED_DESCRIPTION"]),t.push(["appDetailUrl-cert","APPDETAILURLCERT_DESCRIPTION"]),this.applicationLinksAdministratorsTags=t}},{key:"getPerunLinksAdministratorsTags",value:function(){var t=[];t.push(["perunGuiUrl","PERUNGUIURL_DESCRIPTION"]),t.push(["perunGuiUrl-krb","PERUNGUIURLKRB_DESCRIPTION"]),t.push(["perunGuiUrl-fed","PERUNGUIURLFED_DESCRIPTION"]),t.push(["perunGuiUrl-cert","PERUNGUIURLCERT_DESCRIPTION"]),this.perunLinksAdministratorsTags=t}},{key:"getUserInvitationsTags",value:function(){var t=[];t.push(["voName","USER_INVITATIONS_VONAME_DESCRIPTION"]),t.push(["groupName","USER_INVITATIONS_GROUPNAME_DESCRIPTION"]),t.push(["displayName","USER_INVITATIONS_DISPLAYNAME_DESCRIPTION"]),t.push(["mailFooter","USER_INVITATIONS_MAILFOOTER_DESCRIPTION"]),t.push(["invitationLink","INVITATIONLINK_DESCRIPTION"]),t.push(["invitationLink-krb","INVITATIONLINKKRB_DESCRIPTION"]),t.push(["invitationLink-fed","INVITATIONLINKFED_DESCRIPTION"]),t.push(["invitationLink-cert","INVITATIONLINKCERT_DESCRIPTION"]),t.push(["invitationLink-non","INVITATIONLINKNON_DESCRIPTION"]),this.userInvitationsTags=t}},{key:"addTag",value:function(t){this.addedTag.emit(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=I.Xpm({type:t,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(t,e){1&t&&(I.TgZ(0,"app-alert",0),I._uU(1),I.ALo(2,"translate"),I.qZA(),I.TgZ(3,"div",1),I.TgZ(4,"div",2),I._uU(5),I.ALo(6,"translate"),I.qZA(),I.TgZ(7,"app-tag-section",3),I.NdJ("addedTag",function(t){return e.addTag(t)}),I.qZA(),I.TgZ(8,"div",4),I._uU(9),I.ALo(10,"translate"),I.qZA(),I.TgZ(11,"app-tag-section",3),I.NdJ("addedTag",function(t){return e.addTag(t)}),I.qZA(),I.TgZ(12,"div",4),I._uU(13),I.ALo(14,"translate"),I.qZA(),I.TgZ(15,"div",5),I._uU(16),I.ALo(17,"translate"),I.qZA(),I.TgZ(18,"app-tag-section",3),I.NdJ("addedTag",function(t){return e.addTag(t)}),I.qZA(),I.TgZ(19,"div",4),I._uU(20),I.ALo(21,"translate"),I.qZA(),I.TgZ(22,"div",5),I._uU(23),I.ALo(24,"translate"),I.qZA(),I.TgZ(25,"app-tag-section",3),I.NdJ("addedTag",function(t){return e.addTag(t)}),I.qZA(),I.TgZ(26,"div",4),I._uU(27),I.ALo(28,"translate"),I.qZA(),I.TgZ(29,"div",5),I._uU(30),I.ALo(31,"translate"),I.qZA(),I.TgZ(32,"app-tag-section",3),I.NdJ("addedTag",function(t){return e.addTag(t)}),I.qZA(),I.TgZ(33,"div",4),I._uU(34),I.ALo(35,"translate"),I.qZA(),I.TgZ(36,"div",5),I._uU(37),I.ALo(38,"translate"),I.qZA(),I.TgZ(39,"app-tag-section",3),I.NdJ("addedTag",function(t){return e.addTag(t)}),I.qZA(),I.TgZ(40,"div",4),I._uU(41),I.ALo(42,"translate"),I.qZA(),I.TgZ(43,"div",5),I._uU(44),I.ALo(45,"translate"),I.qZA(),I.TgZ(46,"app-tag-section",3),I.NdJ("addedTag",function(t){return e.addTag(t)}),I.qZA(),I.qZA()),2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,20,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TAGS_DESCRIPTION"),"\n"),I.xp6(4),I.hij(" ",I.lcZ(6,22,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_RELATED_SECTION"),": "),I.xp6(2),I.Q6J("tags",e.applicationRelatedTags),I.xp6(2),I.hij(" ",I.lcZ(10,24,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_RELATED_SECTION"),": "),I.xp6(2),I.Q6J("tags",e.userRelatedTags),I.xp6(2),I.hij(" ",I.lcZ(14,26,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_USERS_SECTION"),": "),I.xp6(3),I.hij(" ",I.lcZ(17,28,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_DESCRIPTION")," "),I.xp6(2),I.Q6J("tags",e.validationLinksUsersTags),I.xp6(2),I.hij(" ",I.lcZ(21,30,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_USERS_SECTION"),": "),I.xp6(3),I.hij(" ",I.lcZ(24,32,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_DESCRIPTION")," "),I.xp6(2),I.Q6J("tags",e.applicationLinksUsersTags),I.xp6(2),I.hij(" ",I.lcZ(28,34,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_SECTION"),": "),I.xp6(3),I.hij(" ",I.lcZ(31,36,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_DESCRIPTION")," "),I.xp6(2),I.Q6J("tags",e.applicationLinksAdministratorsTags),I.xp6(2),I.hij(" ",I.lcZ(35,38,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_SECTION"),": "),I.xp6(3),I.hij(" ",I.lcZ(38,40,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_DESCRIPTION")," "),I.xp6(2),I.Q6J("tags",e.perunLinksAdministratorsTags),I.xp6(2),I.hij(" ",I.lcZ(42,42,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_SECTION"),": "),I.xp6(3),I.hij(" ",I.lcZ(45,44,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_DESCRIPTION")," "),I.xp6(2),I.Q6J("tags",e.userInvitationsTags))},directives:[ft.w,Qa.PQ,ja],pipes:[x.X$],styles:[".scrollable[_ngcontent-%COMP%]{height:370px;overflow:auto}"]}),t}();function za(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",9),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.qZA()),2&t&&(I.xp6(2),I.Oqu(I.lcZ(3,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_CREATE")))}function Xa(t,e){1&t&&(I.TgZ(0,"h1",9),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_EDIT")))}function $a(t,e){1&t&&I._UZ(0,"mat-spinner",10)}function Wa(t,e){1&t&&(I.TgZ(0,"mat-option",37),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APPROVABLE_GROUP_APP_USER")," "))}function Ka(t,e){1&t&&(I.TgZ(0,"div",35),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_EDIT")," "))}function to(t,e){1&t&&(I.TgZ(0,"div",35),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_CREATE")," "))}function eo(t,e){1&t&&(I.TgZ(0,"mat-option",38),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EXTENSION")," "))}function io(t,e){1&t&&(I.TgZ(0,"div",35),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_EDIT")," "))}function no(t,e){1&t&&(I.TgZ(0,"div",35),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_CREATE")," "))}function ao(t,e){1&t&&I._UZ(0,"mat-divider",52)}function oo(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",40),I.TgZ(1,"div",41),I.TgZ(2,"div",42),I.TgZ(3,"button",43),I.NdJ("click",function(){I.CHM(i);var t=I.oxw(3);return t.showTags=!t.showTags}),I._uU(4),I.ALo(5,"translate"),I.ALo(6,"translate"),I.qZA(),I.TgZ(7,"span",44),I._uU(8),I.ALo(9,"translate"),I.qZA(),I.TgZ(10,"mat-form-field",18),I.TgZ(11,"input",45,46),I.NdJ("focus",function(){return I.CHM(i),I.oxw(3).isTextFocused=!1})("ngModelChange",function(t){I.CHM(i);var e=I.oxw().$implicit;return I.oxw(2).applicationMail.message[e].subject=t}),I.qZA(),I.qZA(),I.qZA(),I.TgZ(13,"div",47),I._uU(14),I.ALo(15,"translate"),I.qZA(),I.TgZ(16,"mat-form-field",18),I.TgZ(17,"textarea",48,49),I.NdJ("focus",function(){return I.CHM(i),I.oxw(3).isTextFocused=!0})("ngModelChange",function(t){I.CHM(i);var e=I.oxw().$implicit;return I.oxw(2).applicationMail.message[e].text=t}),I._uU(19," "),I.qZA(),I.qZA(),I.qZA(),I.YNc(20,ao,1,0,"mat-divider",50),I.TgZ(21,"div"),I.TgZ(22,"app-tag-bar",51),I.NdJ("addedTag",function(t){I.CHM(i);var e=I.MAs(12),n=I.MAs(18),a=I.oxw().$implicit;return I.oxw(2).addTag(e,n,a,t)}),I.qZA(),I.qZA(),I.qZA()}if(2&t){var n=I.oxw().$implicit,a=I.oxw(2);I.xp6(4),I.hij(" ",a.showTags?I.lcZ(5,7,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.HIDE_TAGS"):I.lcZ(6,9,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SHOW_TAGS")," "),I.xp6(4),I.hij(" ",I.lcZ(9,11,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SUBJECT"),": "),I.xp6(3),I.Q6J("ngModel",a.applicationMail.message[n].subject),I.xp6(3),I.hij(" ",I.lcZ(15,13,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TEXT"),": "),I.xp6(3),I.Q6J("ngModel",a.applicationMail.message[n].text),I.xp6(3),I.Q6J("ngIf",a.showTags),I.xp6(1),I.Q6J("@tagsOpenClose",a.showTags?"open":"closed")}}function ro(t,e){1&t&&(I.TgZ(0,"mat-tab",14),I.ALo(1,"translate"),I.ALo(2,"uppercase"),I.YNc(3,oo,23,15,"ng-template",39),I.qZA()),2&t&&I.s9C("label",I.lcZ(1,1,I.lcZ(2,3,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.LANG_"+e.$implicit)))}function so(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",11),I.TgZ(1,"div"),I.TgZ(2,"app-alert",12),I._uU(3),I.ALo(4,"translate"),I.qZA(),I.qZA(),I.TgZ(5,"mat-tab-group",13),I.TgZ(6,"mat-tab",14),I.ALo(7,"translate"),I.TgZ(8,"div",15),I.TgZ(9,"span",16),I._uU(10),I.ALo(11,"translate"),I.qZA(),I.TgZ(12,"div",17),I.TgZ(13,"mat-form-field",18),I.TgZ(14,"mat-select",19),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().applicationMail.mailType=t})("selectionChange",function(){return I.CHM(i),I.oxw().notificationExist()}),I.TgZ(15,"mat-option",20),I._uU(16),I.ALo(17,"translate"),I.qZA(),I.YNc(18,Wa,3,3,"mat-option",21),I.TgZ(19,"mat-option",22),I._uU(20),I.ALo(21,"translate"),I.qZA(),I.TgZ(22,"mat-option",23),I._uU(23),I.ALo(24,"translate"),I.qZA(),I.TgZ(25,"mat-option",24),I._uU(26),I.ALo(27,"translate"),I.qZA(),I.TgZ(28,"mat-option",25),I._uU(29),I.ALo(30,"translate"),I.qZA(),I.TgZ(31,"mat-option",26),I._uU(32),I.ALo(33,"translate"),I.qZA(),I.TgZ(34,"mat-option",27),I._uU(35),I.ALo(36,"translate"),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.TgZ(37,"div",28),I._UZ(38,"span",29),I.YNc(39,Ka,3,3,"div",30),I.YNc(40,to,3,3,"div",30),I.qZA(),I.TgZ(41,"div",15),I.TgZ(42,"span",31),I._uU(43),I.ALo(44,"translate"),I.qZA(),I.TgZ(45,"div",17),I.TgZ(46,"mat-form-field",18),I.TgZ(47,"mat-select",19),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().applicationMail.appType=t})("selectionChange",function(){return I.CHM(i),I.oxw().notificationExist()}),I.TgZ(48,"mat-option",32),I._uU(49),I.ALo(50,"translate"),I.qZA(),I.YNc(51,eo,3,3,"mat-option",33),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.TgZ(52,"div",28),I._UZ(53,"span",29),I.YNc(54,io,3,3,"div",30),I.YNc(55,no,3,3,"div",30),I.qZA(),I.TgZ(56,"div",15),I.TgZ(57,"span",31),I._uU(58),I.ALo(59,"translate"),I.qZA(),I.TgZ(60,"div",17),I.TgZ(61,"mat-checkbox",34),I.NdJ("ngModelChange",function(t){return I.CHM(i),I.oxw().applicationMail.send=t}),I.qZA(),I.qZA(),I.qZA(),I.TgZ(62,"div",28),I._UZ(63,"span",29),I.TgZ(64,"div",35),I._uU(65),I.ALo(66,"translate"),I.qZA(),I.qZA(),I.qZA(),I.YNc(67,ro,4,5,"mat-tab",36),I.qZA(),I.qZA()}if(2&t){var n=I.oxw();I.xp6(1),I.Q6J("@openClose",n.invalidNotification?"open":"closed"),I.xp6(2),I.Oqu(I.lcZ(4,27,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INVALID_NOTIFICATION")),I.xp6(3),I.s9C("label",I.lcZ(7,29,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.BASIC_SETTINGS")),I.xp6(4),I.hij("",I.lcZ(11,31,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE")," :"),I.xp6(4),I.Q6J("ngModel",n.applicationMail.mailType)("disabled",!n.data.createMailNotification),I.xp6(2),I.hij(" ",I.lcZ(17,33,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_USER")," "),I.xp6(2),I.Q6J("ngIf",n.data.groupId),I.xp6(2),I.hij(" ",I.lcZ(21,35,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_VO_ADMIN")," "),I.xp6(3),I.hij(" ",I.lcZ(24,37,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_MAIL_VALIDATION")," "),I.xp6(3),I.hij(" ",I.lcZ(27,39,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_APPROVED_USER")," "),I.xp6(3),I.hij(" ",I.lcZ(30,41,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_REJECTED_USER")," "),I.xp6(3),I.hij(" ",I.lcZ(33,43,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_ERROR_VO_ADMIN")," "),I.xp6(3),I.hij(" ",I.lcZ(36,45,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_USER_INVITE")," "),I.xp6(4),I.Q6J("ngIf",!n.data.createMailNotification),I.xp6(1),I.Q6J("ngIf",n.data.createMailNotification),I.xp6(3),I.hij("",I.lcZ(44,47,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE")," :"),I.xp6(4),I.Q6J("ngModel",n.applicationMail.appType)("disabled",!n.data.createMailNotification),I.xp6(2),I.hij(" ",I.lcZ(50,49,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INITIAL")," "),I.xp6(2),I.Q6J("ngIf","USER_INVITE"!==n.applicationMail.mailType),I.xp6(3),I.Q6J("ngIf",!n.data.createMailNotification),I.xp6(1),I.Q6J("ngIf",n.data.createMailNotification),I.xp6(3),I.hij("",I.lcZ(59,51,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED")," :"),I.xp6(3),I.Q6J("ngModel",n.applicationMail.send),I.xp6(4),I.hij(" ",I.lcZ(66,53,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED_DESCRIPTION")," "),I.xp6(2),I.Q6J("ngForOf",n.languages)}}function lo(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",53),I.NdJ("click",function(){return I.CHM(i),I.oxw().create()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}if(2&t){var n=I.oxw();I.Q6J("disabled",n.invalidNotification||n.loading),I.xp6(1),I.hij(" ",I.lcZ(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CREATE_BUTTON")," ")}}function uo(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",53),I.NdJ("click",function(){return I.CHM(i),I.oxw().save()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}if(2&t){var n=I.oxw();I.Q6J("disabled",n.loading||!n.editAuth),I.xp6(1),I.hij(" ",I.lcZ(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SAVE_BUTTON")," ")}}var co=function(){var t=function(){function t(e,i,n,o,r,s){a(this,t),this.dialogRef=e,this.registrarService=i,this.data=n,this.authResolver=o,this.groupsService=r,this.store=s,this.showTags=!1,this.isTextFocused=!0,this.invalidNotification=!1,this.loading=!1,this.languages=["en"]}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.languages=this.store.get("supported_languages"),this.applicationMail=this.data.applicationMail,this.theme=this.data.theme,this.data.groupId?this.groupsService.getGroupById(this.data.groupId).subscribe(function(e){t.editAuth=t.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"}]))}},{key:"cancel",value:function(){this.dialogRef.close()}},{key:"create",value:function(){var t=this;this.notificationExist(),this.invalidNotification||(this.loading=!0,this.data.groupId?this.registrarService.addApplicationMailForGroup({group:this.data.groupId,mail:this.applicationMail}).subscribe(function(){t.dialogRef.close(!0)},function(){return t.loading=!1}):this.registrarService.addApplicationMailForVo({vo:this.data.voId,mail:this.applicationMail}).subscribe(function(){t.dialogRef.close(!0)},function(){return t.loading=!1}))}},{key:"save",value:function(){var t=this;this.loading=!0,this.registrarService.updateApplicationMail({mail:this.applicationMail}).subscribe(function(){t.dialogRef.close(!0)},function(){return t.loading=!1})}},{key:"addTag",value:function(t,e,i,n){var a,o=(a=this.isTextFocused?e:t).selectionStart;this.isTextFocused?this.applicationMail.message[i].text=this.applicationMail.message[i].text.substring(0,o)+n+this.applicationMail.message[i].text.substring(o):this.applicationMail.message[i].subject=this.applicationMail.message[i].subject.substring(0,o)+n+this.applicationMail.message[i].subject.substring(o),a.focus()}},{key:"notificationExist",value:function(){var t,i=e(this.data.applicationMails);try{for(i.s();!(t=i.n()).done;){var n=t.value;if(n.mailType===this.applicationMail.mailType&&n.appType===this.applicationMail.appType)return void(this.invalidNotification=!0)}}catch(a){i.e(a)}finally{i.f()}this.invalidNotification=!1}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(v.so),I.Y36(d.tk),I.Y36(v.WI),I.Y36(h.x4),I.Y36(d.ff),I.Y36(h.d6))},t.\u0275cmp=I.Xpm({type:t,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"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","class","ml-2","color","accent",3,"disabled","click",4,"ngIf"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["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",""],[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"],["matInput","",3,"ngModel","focus","ngModelChange"],["Input",""],[1,"font-weight-bold"],["matInput","","rows","17",3,"ngModel","focus","ngModelChange"],["Textarea",""],["class","ml-3 mr-3","vertical","true",4,"ngIf"],[3,"addedTag"],["vertical","true",1,"ml-3","mr-3"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){if(1&t&&(I.TgZ(0,"div"),I.TgZ(1,"div",0),I.YNc(2,za,4,3,"div",1),I.YNc(3,Xa,3,3,"ng-template",null,2,I.W1O),I.YNc(5,$a,1,0,"mat-spinner",3),I.YNc(6,so,68,55,"div",4),I.TgZ(7,"div",5),I.TgZ(8,"button",6),I.NdJ("click",function(){return e.cancel()}),I._uU(9),I.ALo(10,"translate"),I.qZA(),I.YNc(11,lo,3,4,"button",7),I.TgZ(12,"div",8),I.ALo(13,"translate"),I.YNc(14,uo,3,4,"button",7),I.qZA(),I.qZA(),I.qZA(),I.qZA()),2&t){var i=I.MAs(4);I.Gre("",e.theme," h-100"),I.xp6(2),I.Q6J("ngIf",e.data.createMailNotification)("ngIfElse",i),I.xp6(3),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading),I.xp6(3),I.hij(" ",I.lcZ(10,13,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CANCEL_BUTTON")," "),I.xp6(2),I.Q6J("ngIf",e.data.createMailNotification),I.xp6(1),I.s9C("matTooltip",I.lcZ(13,15,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EDIT_HINT")),I.Q6J("matTooltipPosition","above")("matTooltipDisabled",e.editAuth),I.xp6(2),I.Q6J("ngIf",!e.data.createMailNotification)}},directives:[s.O5,v.H8,O.lW,S.gM,v.uh,b.$g,v.xY,ft.w,wi.SP,wi.uX,be.KE,_e.gD,Te.JJ,Te.On,Ne.ey,Oe.oG,s.sg,wi.Vc,Se.Nt,Te.Fj,Ha,si.d],pipes:[x.X$,s.gd],styles:[".right-button[_ngcontent-%COMP%]{display:block;margin-left:auto}"],data:{animation:[p.es,p.BQ]}}),t}(),po=o(19386);function go(t,e){1&t&&I._UZ(0,"mat-spinner",9)}var ho=function(){var t=function(){function t(e,i,n,o,r,s){a(this,t),this.dialogRef=e,this.voService=i,this.groupService=n,this.translateService=o,this.registrarService=r,this.data=s,this.vos=[],this.groups=[],this.selectedVo=null,this.selectedGroup=null,this.loading=!1,this.nameFunction=function(t){return t.name}}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.theme=this.data.theme,this.loading=!0,this.translateService.get("DIALOGS.NOTIFICATIONS_COPY_MAILS.NO_GROUP_SELECTED").subscribe(function(e){t.fakeGroup={id:-1,name:e,voId:0,parentGroupId:0,shortName:"",description:"",beanName:"group"},t.selectedGroup=t.fakeGroup,t.voService.getAllVos().subscribe(function(e){t.vos=e,t.vos=e.sort(function(t,e){return t.name>e.name?1:t.name=0}).sort(function(t,e){return t.toLowerCase().localeCompare(e.toLowerCase())})}},{key:"filterResources",value:function(t){if(null==t)return this.resources;var e=t.toLowerCase();return this.resources.filter(function(t){return 0===t.facility.name.toLowerCase().indexOf(e)}).sort(function(t,e){return t.name.toLowerCase().localeCompare(e.name.toLowerCase())})}},{key:"setResource",value:function(t){var e=this;this.processing=!0,this.selectedResource=t,this.resourceManager.getAssignedServicesToResource(this.selectedResource.id).subscribe(function(t){e.services=t,e.processing=!1},function(){return e.processing=!1}),this.description=this.selectedResource.description}},{key:"loadGroups",value:function(){var t=this;this.processing=!0,this.resourceManager.getAssignedGroups(this.selectedResource.id).subscribe(function(e){t.groups=e,t.groupManager.getAllMemberGroups(t.data.memberId).subscribe(function(e){t.membersGroupsId=new Set(e.map(function(t){return t.id})),t.groups.forEach(function(e){t.authResolver.isAuthorized("addMember_Group_Member_policy",[e])||t.membersGroupsId.add(e.id)}),t.processing=!1},function(){return t.processing=!1})})}},{key:"onFinish",value:function(){var t=this;this.processing=!0,this.groupManager.addMembers(this.selectedGroups.selected[0].id,[this.data.memberId]).subscribe(function(){t.notificator.showSuccess(t.translate.instant("DIALOGS.ADD_MEMBER_TO_RESOURCE.SUCCESS")),t.dialogRef.close(!0)},function(){return t.processing=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"stepperPrevious",value:function(){this.stepper.previous()}},{key:"stepperNext",value:function(){this.stepper.next()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(v.so),I.Y36(v.WI),I.Y36(d.xk),I.Y36(d.ff),I.Y36(h.V6),I.Y36(x.sK),I.Y36(h.x4),I.Y36(I.sBO))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-add-member-to-resource-dialog"]],viewQuery:function(t,e){var i;(1&t&&I.Gf(Jr.Vq,5),2&t)&&(I.iGM(i=I.CRH())&&(e.stepper=i.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(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"div",1),I.TgZ(5,"mat-stepper",2),I.TgZ(6,"mat-step",3),I.YNc(7,Fr,2,3,"ng-template",4),I.YNc(8,Qr,1,0,"mat-spinner",5),I.YNc(9,zr,26,22,"div",6),I.qZA(),I.TgZ(10,"mat-step"),I.YNc(11,Xr,2,3,"ng-template",4),I.YNc(12,$r,1,0,"mat-spinner",5),I.YNc(13,Kr,2,8,"div",6),I.YNc(14,ts,3,3,"app-alert",7),I.qZA(),I.qZA(),I.qZA(),I.TgZ(15,"div",8),I.TgZ(16,"button",9),I.NdJ("click",function(){return e.onCancel()}),I._uU(17),I.ALo(18,"translate"),I.qZA(),I.YNc(19,es,3,3,"button",10),I.YNc(20,is,3,8,"button",11),I.YNc(21,ns,3,4,"button",12),I.qZA(),I.qZA()),2&t&&(I.Tol(e.theme),I.xp6(2),I.Oqu(I.lcZ(3,14,"DIALOGS.ADD_MEMBER_TO_RESOURCE.TITLE")),I.xp6(3),I.Q6J("linear",!0),I.xp6(3),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading),I.xp6(3),I.Q6J("ngIf",e.processing),I.xp6(1),I.Q6J("ngIf",0!==e.groups.length&&!e.processing),I.xp6(1),I.Q6J("ngIf",0===e.groups.length&&!e.processing),I.xp6(3),I.hij(" ",I.lcZ(18,16,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CANCEL")," "),I.xp6(2),I.Q6J("ngIf",void 0!==e.stepper&&0!==e.stepper.selectedIndex),I.xp6(1),I.Q6J("ngIf",void 0!==e.stepper&&e.stepper.selectedIndex!==e.stepper._steps.length-1),I.xp6(1),I.Q6J("ngIf",void 0!==e.stepper&&e.stepper.selectedIndex===e.stepper._steps.length-1))},directives:[v.uh,v.xY,Jr.Vq,Jr.C0,Jr.VY,s.O5,v.H8,O.lW,b.$g,be.KE,Se.Nt,Te.Fj,Vr.ZL,Te.JJ,Te.oH,Vr.XC,s.sg,_e.gD,Ne.ey,gr.W,ft.w],pipes:[x.X$,s.Ov],styles:[".input-style[_ngcontent-%COMP%]{margin-left:50px;width:75%}"]}),t}(),os=o(88884);function rs(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",6),I.NdJ("click",function(){return I.CHM(i),I.oxw().addResource()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"MEMBER_DETAIL.RESOURCES.ADD")," "))}function ss(t,e){if(1&t&&I._UZ(0,"perun-web-apps-resources-list",7),2&t){var i=I.oxw();I.Q6J("tableId",i.tableId)("filterValue",i.filterValue)("displayedColumns",i.displayedColumns)("routingVo",!0)("disableRouting",!i.routeAuth)("resources",i.resources)}}function ls(t,e){1&t&&I._UZ(0,"mat-spinner",8)}var us=function(){var t=function(){function t(e,i,n,o,r){a(this,t),this.dialog=e,this.memberManager=i,this.resourceManager=n,this.route=o,this.authResolver=r,this.resources=[],this.filterValue="",this.loading=!1,this.displayedColumns=["id","name","vo","facility","tags","description"],this.tableId=Za.aL}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.route.parent.params.subscribe(function(e){t.memberManager.getMemberById(e.memberId).subscribe(function(e){t.member=e,t.refreshTable()})})}},{key:"addResource",value:function(){var t=this,e=(0,g.kZ)();e.width="1200px",e.data={memberId:this.member.id,voId:this.member.voId,theme:"member-theme"},this.dialog.open(as,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.resourceManager.getAssignedRichResourcesWithMember(this.member.id).subscribe(function(e){t.resources=e,t.setAuthRights(),t.loading=!1})}},{key:"setAuthRights",value:function(){var t={id:this.member.voId,beanName:"Vo"};this.addAuth=this.authResolver.isAuthorized("getRichResources_Vo_policy",[t])&&this.authResolver.isAuthorized("addMembers_Group_List_policy",[t]),0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getResourceById_int_policy",[t,this.resources[0]]))}},{key:"applyFilter",value:function(t){this.filterValue=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(v.uw),I.Y36(d.uq),I.Y36(d.xk),I.Y36(l.gz),I.Y36(h.x4))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-member-resources"]],decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","class","action-button","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"placeholder","filter"],[3,"tableId","filterValue","displayedColumns","routingVo","disableRouting","resources",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[3,"tableId","filterValue","displayedColumns","routingVo","disableRouting","resources"],[1,"mr-auto","ml-auto"]],template:function(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"perun-web-apps-refresh-button",1),I.NdJ("refresh",function(){return e.refreshTable()}),I.qZA(),I.YNc(5,rs,3,3,"button",2),I.TgZ(6,"perun-web-apps-immediate-filter",3),I.NdJ("filter",function(t){return e.applyFilter(t)}),I.qZA(),I.YNc(7,ss,1,6,"perun-web-apps-resources-list",4),I.qZA(),I.YNc(8,ls,1,0,"mat-spinner",5)),2&t&&(I.xp6(2),I.Oqu(I.lcZ(3,5,"MEMBER_DETAIL.RESOURCES.TITLE")),I.xp6(3),I.Q6J("ngIf",e.addAuth),I.xp6(1),I.Q6J("placeholder","MEMBER_DETAIL.RESOURCES.FILTER"),I.xp6(1),I.Q6J("ngIf",!e.loading),I.xp6(1),I.Q6J("ngIf",e.loading))},directives:[ba.t,s.O5,_a.L,O.lW,os.C,b.$g],pipes:[x.X$],styles:[""]}),t}(),cs=o(72920),ps=o(76527),ds=o(42473),gs=o(77968),hs=o(22927),ms=o(79472),fs=o(64359),As=o(75374),Is=o(95142),Ts=o(48666);function vs(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",7),I.NdJ("click",function(){return I.CHM(i),I.oxw().onAdd()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.ADD")," "))}function Es(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",8),I.NdJ("click",function(){return I.CHM(i),I.oxw().onRemove()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}if(2&t){var n=I.oxw();I.Q6J("disabled",0===n.selection.selected.length),I.xp6(1),I.hij(" ",I.lcZ(2,2,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function Zs(t,e){1&t&&I._UZ(0,"mat-spinner",9)}function bs(t,e){if(1&t&&I._UZ(0,"app-ext-sources-list",10),2&t){var i=I.oxw();I.Q6J("tableId",i.tableId)("extSources",i.extSources)("displayedColumns",i.displayedColumns)("filterValue",i.filterValue)("selection",i.selection)}}var _s=function(){var t=function(){function t(e,i,n,o,r,s){var l=this;a(this,t),this.extSourceService=e,this.dialog=i,this.notificator=n,this.translate=o,this.authResolver=r,this.entityStorageService=s,this.extSources=[],this.selection=new ga.Ov(!0,[]),this.filterValue="",this.tableId=Za.S7,this.displayedColumns=[],this.translate.get("GROUP_DETAIL.SETTINGS.EXT_SOURCES.SUCCESS_REMOVED").subscribe(function(t){return l.successMessage=t})}return r(t,[{key:"ngOnInit",value:function(){this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}},{key:"setAuthRights",value:function(){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"]}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.extSourceService.getGroupExtSources(this.group.id).subscribe(function(e){t.extSources=e,t.selection.clear(),t.loading=!1})}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"onAdd",value:function(){var t=this,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(Wo,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"onRemove",value:function(){var t=this,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(sr,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(d.KG),I.Y36(v.uw),I.Y36(h.V6),I.Y36(x.sK),I.Y36(h.x4),I.Y36(h.fb))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-group-settings-extsources"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["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,"tableId","extSources","displayedColumns","filterValue","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,"tableId","extSources","displayedColumns","filterValue","selection"]],template:function(t,e){1&t&&(I.TgZ(0,"div"),I.TgZ(1,"h1",0),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"perun-web-apps-refresh-button",1),I.NdJ("refresh",function(){return e.refreshTable()}),I.qZA(),I.YNc(5,vs,3,3,"button",2),I.YNc(6,Es,3,4,"button",3),I.TgZ(7,"perun-web-apps-immediate-filter",4),I.NdJ("filter",function(t){return e.applyFilter(t)}),I.qZA(),I.YNc(8,Zs,1,0,"mat-spinner",5),I.YNc(9,bs,1,5,"app-ext-sources-list",6),I.qZA()),2&t&&(I.xp6(2),I.Oqu(I.lcZ(3,6,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),I.xp6(3),I.Q6J("ngIf",e.addAuth),I.xp6(1),I.Q6J("ngIf",e.removeAuth),I.xp6(1),I.Q6J("placeholder","GROUP_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),I.xp6(1),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[ba.t,s.O5,_a.L,O.lW,b.$g,zo.D],pipes:[x.X$],styles:[""]}),t}();function Ss(t,e){1&t&&I._UZ(0,"th",9)}function Ns(t,e){if(1&t&&(I.TgZ(0,"td",10),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.xp6(1),I.hij("",i,":")}}function Os(t,e){1&t&&I._UZ(0,"th",9)}function xs(t,e){if(1&t&&(I.TgZ(0,"td",11),I._uU(1),I.qZA()),2&t){var i=e.$implicit,n=I.oxw();I.xp6(1),I.hij(" ",n.statistics.get(i.toLowerCase())," ")}}function Ls(t,e){1&t&&I._UZ(0,"tr",12)}var Cs=function(){var t=function(){function t(){a(this,t),this.rowNames=[],this.title="",this.statistics=new Map,this.dataSource=null,this.displayedColumns=["name","value"]}return r(t,[{key:"ngOnInit",value:function(){this.dataSource=new ct.by(this.rowNames)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=I.Xpm({type:t,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(t,e){1&t&&(I.TgZ(0,"mat-card",0),I.TgZ(1,"mat-card-header"),I.TgZ(2,"mat-card-title"),I.TgZ(3,"h1",1),I._uU(4),I.ALo(5,"translate"),I.qZA(),I.qZA(),I.qZA(),I.TgZ(6,"mat-card-content"),I.TgZ(7,"table",2),I.ynx(8,3),I.YNc(9,Ss,1,0,"th",4),I.YNc(10,Ns,2,1,"td",5),I.BQk(),I.ynx(11,6),I.YNc(12,Os,1,0,"th",4),I.YNc(13,xs,2,1,"td",7),I.BQk(),I.YNc(14,Ls,1,0,"tr",8),I.qZA(),I.qZA(),I.qZA()),2&t&&(I.xp6(4),I.Oqu(I.lcZ(5,3,e.title)),I.xp6(3),I.Q6J("dataSource",e.dataSource),I.xp6(7),I.Q6J("matRowDefColumns",e.displayedColumns))},directives:[gt.a8,gt.dk,gt.n5,gt.dn,ct.BZ,ct.w1,ct.fO,ct.Dz,ct.nj,ct.ge,ct.ev,ct.Gk],pipes:[x.X$],styles:[".align-card[_ngcontent-%COMP%]{margin:1rem 1rem 1rem 0;display:inline-block;vertical-align:top}"]}),t}();function Rs(t,e){1&t&&I._UZ(0,"mat-spinner",3)}function Ms(t,e){if(1&t&&(I.TgZ(0,"div"),I._UZ(1,"app-statistics-card",4),I.qZA()),2&t){var i=I.oxw();I.xp6(1),I.Q6J("rowNames",i.rowNames)("statistics",i.membersCount)("title","VO_DETAIL.STATISTICS.MEMBERS_COUNT")}}var ys=function(){var t=function(){function t(e,i){a(this,t),this.voService=e,this.entityStorageService=i,this.loading=!1,this.dataSource=new ct.by,this.displayedColumns=["status","count"],this.rowNames=["Members","Valid","Invalid","Expired","Disabled"],this.membersCount=new Map([["members",0],["valid",0],["invalid",0],["expired",0],["disabled",0]])}return r(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.dataSource=new ct.by(this.rowNames),this.voService.getVoMembersCountsByStatus(this.vo.id).subscribe(function(e){t.allMembersCount=0;for(var i=0,n=Object.keys(e);i_policy",[{id:this.voId,beanName:"Vo"}])}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(d.tk),I.Y36(h.x4),I.Y36(v.uw),I.Y36(l.gz))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-application-form-manage-groups"]],viewQuery:function(t,e){var i;(1&t&&I.Gf(Js,5),2&t)&&(I.iGM(i=I.CRH())&&(e.list=i.first))},decls:17,vars:21,consts:[[1,"page-subtitle"],["alert_type","info"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],["theme","vo-theme",3,"tableId","selection","displayedColumns","disableRouting","filter","authType","groups",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],["theme","vo-theme",3,"tableId","selection","displayedColumns","disableRouting","filter","authType","groups"],["list",""]],template:function(t,e){1&t&&(I.TgZ(0,"h1",0),I._uU(1),I.ALo(2,"translate"),I.ALo(3,"translate"),I.qZA(),I.TgZ(4,"app-alert",1),I._uU(5),I.ALo(6,"translate"),I.qZA(),I.TgZ(7,"perun-web-apps-refresh-button",2),I.NdJ("refresh",function(){return e.loadGroups()}),I.qZA(),I.YNc(8,Vs,3,3,"button",3),I.TgZ(9,"span",4),I.ALo(10,"translate"),I.TgZ(11,"button",5),I.NdJ("click",function(){return e.removeGroup()}),I._uU(12),I.ALo(13,"translate"),I.qZA(),I.qZA(),I.TgZ(14,"perun-web-apps-immediate-filter",6),I.NdJ("filter",function(t){return e.filterValue=t}),I.qZA(),I.YNc(15,Fs,1,0,"mat-spinner",7),I.YNc(16,Bs,2,8,"perun-web-apps-groups-list",8)),2&t&&(I.xp6(1),I.AsE(" ",I.lcZ(2,11,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE")," - ",I.lcZ(3,13,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.TITLE"),"\n"),I.xp6(4),I.hij(" ",I.lcZ(6,15,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.HELP"),"\n"),I.xp6(3),I.Q6J("ngIf",e.addAuth),I.xp6(1),I.s9C("matTooltip",I.lcZ(10,17,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_PERMISSION_HINT")),I.Q6J("matTooltipDisabled",void 0===e.list||void 0!==e.list&&e.list.removeAuth),I.xp6(2),I.Q6J("disabled",0===e.selected.selected.length||void 0!==e.list&&!e.list.removeAuth),I.xp6(1),I.hij(" ",I.lcZ(13,19,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE")," "),I.xp6(2),I.Q6J("placeholder","VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.FILTER"),I.xp6(1),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[ft.w,ba.t,s.O5,S.gM,O.lW,_a.L,b.$g,gr.W],pipes:[x.X$],styles:[""]}),t}(),Hs=o(53134),zs=o(47701),Xs=o(90611),$s=o(44689),Ws=o(18820),Ks=o(90888),tl=o(85250),el=o(4252),il=["stepper"];function nl(t,e){1&t&&(I._uU(0),I.ALo(1,"translate")),2&t&&I.Oqu(I.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.CREATE_IDENTITY"))}function al(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function ol(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function rl(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.EMAIL_INVALID")))}function sl(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function ll(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function ul(t,e){1&t&&(I._uU(0),I.ALo(1,"translate")),2&t&&I.Oqu(I.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.SET_CREDENTIALS"))}function cl(t,e){if(1&t&&(I.TgZ(0,"mat-option",31),I._uU(1),I.qZA()),2&t){var i=e.$implicit;I.Q6J("value",i),I.xp6(1),I.hij(" ",i," ")}}function pl(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function dl(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_EXISTS")))}function gl(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_FORMAT")))}function hl(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_LONG")))}function ml(t,e){1&t&&(I.TgZ(0,"mat-error"),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_SHORT")))}function fl(t,e){if(1&t&&(I.TgZ(0,"span",32),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t){var i=I.oxw(2);I.xp6(1),I.hij(" ",I.lcZ(2,1,"Not selected"===i.secondFormGroup.get("namespaceCtrl").value?"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_DISABLED":"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_DISABLED_FOR_NAMESPACE")," ")}}function Al(t,e){1&t&&(I._uU(0),I.ALo(1,"translate")),2&t&&I.Oqu(I.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.ASSOCIATE_USERS"))}function Il(t,e){if(1&t&&(I.TgZ(0,"span",38),I._uU(1),I.qZA()),2&t){var i=I.oxw().$implicit;I.xp6(1),I.hij("#",i.id,"")}}function Tl(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"mat-list-item"),I.TgZ(1,"p",33),I._uU(2),I.ALo(3,"userFullName"),I.YNc(4,Il,2,1,"span",34),I.TgZ(5,"span",35),I.ALo(6,"translate"),I.TgZ(7,"button",36),I.NdJ("click",function(){var t=I.CHM(i).$implicit;return I.oxw(2).removeUser(t)}),I.TgZ(8,"mat-icon",37),I._uU(9,"close"),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.qZA()}if(2&t){var n=e.$implicit,a=I.oxw(2);I.xp6(2),I.hij(" ",I.lcZ(3,5,n.user)," "),I.xp6(2),I.Q6J("ngIf",n.id),I.xp6(1),I.Q6J("matTooltipDisabled",a.assignedMembers.length>1)("matTooltip",I.lcZ(6,7,"DIALOGS.CREATE_SERVICE_MEMBER.MINIMAL_USERS")),I.xp6(2),I.Q6J("disabled",1===a.assignedMembers.length)}}function vl(t,e){1&t&&I._UZ(0,"mat-spinner",39)}var El=function(){return["checkbox","id","fullName"]};function Zl(t,e){if(1&t&&I._UZ(0,"perun-web-apps-members-list",42),2&t){var i=I.oxw(3);I.Q6J("disableRouting",!0)("displayedColumns",I.DdM(5,El))("members",i.members)("tableId",i.tableId)("selection",i.selection)}}function bl(t,e){1&t&&(I.TgZ(0,"app-alert",43),I._uU(1),I.ALo(2,"translate"),I.qZA()),2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_INFO")," "))}function _l(t,e){if(1&t&&(I.TgZ(0,"div"),I.YNc(1,Zl,1,6,"perun-web-apps-members-list",40),I.YNc(2,bl,3,3,"app-alert",41),I.qZA()),2&t){var i=I.oxw(2);I.xp6(1),I.Q6J("ngIf",i.firstSearchDone),I.xp6(1),I.Q6J("ngIf",!i.firstSearchDone)}}function Sl(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",5),I.TgZ(1,"mat-stepper",6,7),I.TgZ(3,"mat-step",8),I.TgZ(4,"form",9),I.YNc(5,nl,2,3,"ng-template",10),I.TgZ(6,"div",11),I.TgZ(7,"mat-form-field"),I.TgZ(8,"mat-label"),I._uU(9),I.ALo(10,"translate"),I.qZA(),I._UZ(11,"input",12),I.YNc(12,al,3,3,"mat-error",13),I.qZA(),I.TgZ(13,"mat-form-field"),I.TgZ(14,"mat-label"),I._uU(15),I.ALo(16,"translate"),I.qZA(),I._UZ(17,"input",14),I.YNc(18,ol,3,3,"mat-error",13),I.YNc(19,rl,3,3,"mat-error",13),I.qZA(),I.TgZ(20,"mat-form-field"),I.TgZ(21,"mat-label"),I._uU(22),I.ALo(23,"translate"),I.qZA(),I._UZ(24,"input",15),I.YNc(25,sl,3,3,"mat-error",13),I.qZA(),I.TgZ(26,"mat-form-field"),I.TgZ(27,"mat-label"),I._uU(28),I.ALo(29,"translate"),I.qZA(),I._UZ(30,"input",16),I.YNc(31,ll,3,3,"mat-error",13),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.TgZ(32,"mat-step",8),I.TgZ(33,"form",9),I.YNc(34,ul,2,3,"ng-template",10),I.TgZ(35,"div",11),I.TgZ(36,"mat-form-field"),I.TgZ(37,"mat-label"),I._uU(38),I.ALo(39,"translate"),I.qZA(),I.TgZ(40,"mat-select",17),I.NdJ("valueChange",function(t){return I.CHM(i),I.oxw().onNamespaceChanged(t)}),I.YNc(41,cl,2,2,"mat-option",18),I.qZA(),I.qZA(),I.TgZ(42,"mat-form-field",19),I.TgZ(43,"mat-label"),I._uU(44),I.ALo(45,"translate"),I.qZA(),I._UZ(46,"input",20),I.YNc(47,pl,3,3,"mat-error",13),I.YNc(48,dl,3,3,"mat-error",13),I.YNc(49,gl,3,3,"mat-error",13),I.YNc(50,hl,3,3,"mat-error",13),I.YNc(51,ml,3,3,"mat-error",13),I.YNc(52,fl,3,3,"span",21),I.qZA(),I.TgZ(53,"mat-radio-group",22),I.NdJ("ngModelChange",function(){return I.CHM(i),I.oxw().passwordOptionChanged()}),I.ALo(54,"translate"),I.TgZ(55,"mat-radio-button",23),I._uU(56),I.ALo(57,"translate"),I.qZA(),I.TgZ(58,"mat-radio-button",23),I._uU(59),I.ALo(60,"translate"),I.qZA(),I.qZA(),I.TgZ(61,"div",11),I._UZ(62,"perun-web-apps-password-form",24),I.qZA(),I.qZA(),I.qZA(),I.qZA(),I.TgZ(63,"mat-step"),I.YNc(64,Al,2,3,"ng-template",10),I.TgZ(65,"h6"),I._uU(66),I.ALo(67,"translate"),I.qZA(),I.TgZ(68,"mat-list"),I.YNc(69,Tl,10,9,"mat-list-item",25),I.qZA(),I.TgZ(70,"h6",26),I._uU(71),I.ALo(72,"translate"),I.qZA(),I.TgZ(73,"mat-form-field",27),I.TgZ(74,"input",28),I.NdJ("keyup.enter",function(){I.CHM(i);var t=I.oxw();return 0!==t.searchCtrl.value.length&&t.onSearchByString()}),I.ALo(75,"translate"),I.qZA(),I.qZA(),I.TgZ(76,"button",29),I.NdJ("click",function(){return I.CHM(i),I.oxw().onSearchByString()}),I.TgZ(77,"mat-icon"),I._uU(78,"search"),I.qZA(),I.qZA(),I.TgZ(79,"button",30),I.NdJ("click",function(){return I.CHM(i),I.oxw().addUsers()}),I._uU(80),I.ALo(81,"translate"),I.qZA(),I.YNc(82,vl,1,0,"mat-spinner",3),I.YNc(83,_l,3,2,"div",13),I.qZA(),I.qZA(),I.qZA()}if(2&t){var n=I.oxw();I.xp6(1),I.Q6J("linear",!0),I.xp6(2),I.Q6J("stepControl",n.firstFormGroup),I.xp6(1),I.Q6J("formGroup",n.firstFormGroup),I.xp6(5),I.Oqu(I.lcZ(10,50,"DIALOGS.CREATE_SERVICE_MEMBER.NAME")),I.xp6(3),I.Q6J("ngIf",n.firstFormGroup.get("nameCtrl").hasError("required")),I.xp6(3),I.Oqu(I.lcZ(16,52,"DIALOGS.CREATE_SERVICE_MEMBER.EMAIL")),I.xp6(3),I.Q6J("ngIf",n.firstFormGroup.get("emailCtrl").hasError("required")),I.xp6(1),I.Q6J("ngIf",n.firstFormGroup.get("emailCtrl").hasError("pattern")),I.xp6(3),I.Oqu(I.lcZ(23,54,"DIALOGS.CREATE_SERVICE_MEMBER.SUBJECT_DN")),I.xp6(2),I.Q6J("required",!!n.firstFormGroup.get("issuerCtrl").value&&0!==n.firstFormGroup.get("issuerCtrl").value.trim().length),I.xp6(1),I.Q6J("ngIf",n.firstFormGroup.get("subjectCtrl").hasError("required")),I.xp6(3),I.Oqu(I.lcZ(29,56,"DIALOGS.CREATE_SERVICE_MEMBER.ISSUER_DN")),I.xp6(2),I.Q6J("required",!!n.firstFormGroup.get("subjectCtrl").value&&0!==n.firstFormGroup.get("subjectCtrl").value.trim().length),I.xp6(1),I.Q6J("ngIf",n.firstFormGroup.get("issuerCtrl").hasError("required")),I.xp6(1),I.Q6J("stepControl",n.secondFormGroup),I.xp6(1),I.Q6J("formGroup",n.secondFormGroup),I.xp6(5),I.Oqu(I.lcZ(39,58,"DIALOGS.CREATE_SERVICE_MEMBER.NAMESPACE")),I.xp6(3),I.Q6J("ngForOf",n.namespaceOptions),I.xp6(1),I.Q6J("floatLabel",n.secondFormGroup.get("loginCtrl").disabled?"always":null),I.xp6(2),I.Oqu(I.lcZ(45,60,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN")),I.xp6(2),I.Q6J("hidden",n.secondFormGroup.get("loginCtrl").disabled),I.xp6(1),I.Q6J("ngIf",n.secondFormGroup.get("loginCtrl").hasError("required")),I.xp6(1),I.Q6J("ngIf",n.secondFormGroup.get("loginCtrl").hasError("loginExists")),I.xp6(1),I.Q6J("ngIf",n.secondFormGroup.get("loginCtrl").hasError("pattern")&&!n.secondFormGroup.get("loginCtrl").hasError("minlength")),I.xp6(1),I.Q6J("ngIf",n.secondFormGroup.get("loginCtrl").hasError("maxlength")),I.xp6(1),I.Q6J("ngIf",n.secondFormGroup.get("loginCtrl").hasError("minlength")),I.xp6(1),I.Q6J("ngIf",n.secondFormGroup.get("loginCtrl").disabled),I.xp6(1),I.s9C("matTooltip",I.lcZ(54,62,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_NOT_SUPPORTED")),I.Q6J("matTooltipDisabled","Not selected"!==n.secondFormGroup.get("namespaceCtrl").value),I.xp6(2),I.Q6J("checked",n.secondFormGroup.get("generatePasswordCtrl").value&&n.secondFormGroup.get("generatePasswordCtrl").enabled)("value",!0),I.xp6(1),I.hij(" ",I.lcZ(57,64,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_RANDOM")," "),I.xp6(2),I.Q6J("checked",!n.secondFormGroup.get("generatePasswordCtrl").value&&n.secondFormGroup.get("generatePasswordCtrl").enabled)("value",!1),I.xp6(1),I.hij(" ",I.lcZ(60,66,"DIALOGS.CREATE_SERVICE_MEMBER.ENTER_PASSWORD")," "),I.xp6(2),I.ekj("input-disabled",n.secondFormGroup.get("generatePasswordCtrl").value),I.xp6(1),I.Q6J("formGroup",n.secondFormGroup)("passwordRequired",!n.secondFormGroup.get("generatePasswordCtrl").value)("namespace",n.selectedNamespace),I.xp6(4),I.Oqu(I.lcZ(67,68,"DIALOGS.CREATE_SERVICE_MEMBER.ASSOCIATED_USERS")),I.xp6(3),I.Q6J("ngForOf",n.assignedMembers),I.xp6(2),I.Oqu(I.lcZ(72,70,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_INFO")),I.xp6(3),I.s9C("placeholder",I.lcZ(75,72,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_PLACEHOLDER")),I.Q6J("formControl",n.searchCtrl),I.xp6(2),I.Q6J("disabled",n.loading||0===n.searchCtrl.value.length),I.xp6(3),I.Q6J("disabled",0===n.selection.selected.length),I.xp6(1),I.hij(" ",I.lcZ(81,74,"DIALOGS.CREATE_SERVICE_MEMBER.ADD_USER")," "),I.xp6(2),I.Q6J("ngIf",n.loading),I.xp6(1),I.Q6J("ngIf",!n.loading)}}function Nl(t,e){1&t&&I._UZ(0,"mat-spinner",39)}function Ol(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",49),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).stepperPrevious()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}2&t&&(I.xp6(1),I.hij(" ",I.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.BACK")," "))}function xl(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",30),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).stepperNext()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}if(2&t){var n=I.oxw(2);I.ekj("ml-2",void 0!==n.stepper&&0!==n.stepper.selectedIndex)("ml-auto",!(void 0!==n.stepper&&0!==n.stepper.selectedIndex)),I.Q6J("disabled",n.getStepperNextConditions()),I.xp6(1),I.hij(" ",I.lcZ(2,6,"DIALOGS.CREATE_SERVICE_MEMBER.NEXT")," ")}}function Ll(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",50),I.NdJ("click",function(){return I.CHM(i),I.oxw(2).onCreate()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}if(2&t){var n=I.oxw(2);I.Q6J("disabled",n.firstFormGroup.invalid||"Not selected"!==n.secondFormGroup.get("namespaceCtrl").value&&n.secondFormGroup.invalid),I.xp6(1),I.hij(" ",I.lcZ(2,2,"DIALOGS.CREATE_SERVICE_MEMBER.CREATE")," ")}}function Cl(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"div",44),I.TgZ(1,"button",45),I.NdJ("click",function(){return I.CHM(i),I.oxw().onCancel()}),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.YNc(4,Ol,3,3,"button",46),I.YNc(5,xl,3,8,"button",47),I.YNc(6,Ll,3,4,"button",48),I.qZA()}if(2&t){var n=I.oxw();I.xp6(2),I.hij(" ",I.lcZ(3,4,"DIALOGS.CREATE_SERVICE_MEMBER.CANCEL")," "),I.xp6(2),I.Q6J("ngIf",void 0!==n.stepper&&0!==n.stepper.selectedIndex),I.xp6(1),I.Q6J("ngIf",void 0!==n.stepper&&n.stepper.selectedIndex!==n.stepper._steps.length-1),I.xp6(1),I.Q6J("ngIf",void 0!==n.stepper&&n.stepper.selectedIndex===n.stepper._steps.length-1)}}var Rl=function(){var t=function(){function t(e,i,n,o,r,s,l,u,c,p){var d=this;a(this,t),this.dialogRef=e,this.data=i,this.membersManagerService=n,this.usersManagerService=o,this.notificator=r,this.translate=s,this.store=l,this.apiRequestConfiguration=u,this._formBuilder=c,this.cd=p,this.namespaceOptions=[],this.selectedNamespace=null,this.namespaceRules=[],this.parsedRules=new Map,this.firstSearchDone=!1,this.searchCtrl=new Te.NI(""),this.members=[],this.selection=new ga.Ov(!0,[]),this.tableId=Za.j1,this.assignedMembers=[],this.candidate={},this.successMessageMember="",this.successMessagePwd="",this.processing=!1,s.get("DIALOGS.CREATE_SERVICE_MEMBER.SUCCESS_MEMBER").subscribe(function(t){return d.successMessageMember=t}),s.get("DIALOGS.CREATE_SERVICE_MEMBER.SUCCESS_PWD").subscribe(function(t){return d.successMessagePwd=t})}return r(t,[{key:"ngAfterViewInit",value:function(){this.cd.detectChanges()}},{key:"ngOnInit",value:function(){var t=this;this.firstFormGroup=this._formBuilder.group({nameCtrl:["",Te.kI.required],emailCtrl:["",[Te.kI.required,Te.kI.pattern("\\w+([.-]?\\w+)*@\\w+([.-]?\\w+)*(.\\w{2,3})+")]],subjectCtrl:[null],issuerCtrl:[null]}),this.secondFormGroup=this._formBuilder.group({namespaceCtrl:["Not selected"],loginCtrl:["",[Te.kI.pattern("^[a-z][a-z0-9_-]+$"),Te.kI.maxLength(15),Te.kI.minLength(2)]],passwordCtrl:["",Te.kI.required,[(0,Ws.yT)(null,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],generatePasswordCtrl:[!0]},{validators:g.dN.passwordMatchValidator}),this.namespaceOptions=["Not selected"],this.membersManagerService.getAllNamespacesRules().subscribe(function(e){t.namespaceRules=e,t.parseNamespaceRules(),t.loading=!1}),this.onNamespaceChanged("Not selected");var i=this.store.getPerunPrincipal().user;this.membersManagerService.getMembersByUser(i.id).subscribe(function(n){var a,o={},r=e(n);try{for(r.s();!(a=r.n()).done;){var s=a.value;s.voId===t.data.voId&&(o=s)}}catch(l){r.e(l)}finally{r.f()}o.user=i,t.assignedMembers.push(o)})}},{key:"existingLoginValidator",value:function(){var t=this;return function(e){var i=t.secondFormGroup.get("namespaceCtrl").value.toLowerCase();return i="not selected"===i?"mu":i,e.valueChanges.pipe((0,zs.b)(500),(0,Xs.q)(1),(0,$s.w)(function(){return t.usersManagerService.isLoginAvailable(i,e.value).pipe((0,Yr.U)(function(t){return t?null:{loginExists:!0}}))}))}}},{key:"onCreate",value:function(){var t=this;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;var e=this.firstFormGroup.get("subjectCtrl");e&&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");var i=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase(),n=this.parsedRules.get(i),a="urn:perun:user:attribute-def:def:login-namespace:".concat(i);"Not selected"!==this.secondFormGroup.get("namespaceCtrl").value&&"disabled"===n.login?this.usersManagerService.generateAccountForName(i,this.firstFormGroup.get("nameCtrl").value).subscribe(function(e){t.candidate.attributes[a]=e[a],t.createSpecificMember()},function(){return t.processing=!1}):("Not selected"!==this.secondFormGroup.get("namespaceCtrl").value&&(this.candidate.attributes[a]=this.secondFormGroup.get("loginCtrl").value),this.createSpecificMember())}},{key:"createSpecificMember",value:function(){var t=this;this.membersManagerService.createSpecificMember({vo:this.data.voId,specificUserType:"SERVICE",specificUserOwners:this.assignedMembers.map(function(t){return t.user}),candidate:this.candidate}).subscribe(function(e){t.membersManagerService.validateMemberAsync(e.id).subscribe(function(e){t.notificator.showSuccess(t.successMessageMember),"Not selected"!==t.secondFormGroup.get("namespaceCtrl").value?t.setPassword(e,t.secondFormGroup.get("generatePasswordCtrl").value):(t.dialogRef.close(!0),t.processing=!1)},function(){return t.processing=!1})},function(){return t.processing=!1})}},{key:"parseNamespaceRules",value:function(){var t,i=e(this.namespaceRules);try{for(i.s();!(t=i.n()).done;){var n=t.value;this.namespaceOptions.push(n.namespaceName);var a={login:"disabled"};this.parseAttributes(a,n.requiredAttributes,"required"),this.parseAttributes(a,n.optionalAttributes,"optional"),this.parsedRules.set(n.namespaceName,a)}}catch(o){i.e(o)}finally{i.f()}}},{key:"parseAttributes",value:function(t,i,n){var a,o=e(i);try{for(o.s();!(a=o.n()).done;){switch(a.value){case"login":t.login=n}}}catch(r){o.e(r)}finally{o.f()}}},{key:"setPassword",value:function(t,e){var i=this,n=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase(),a=this.secondFormGroup.get("passwordCtrl").value;if(e){if("disabled"===this.parsedRules.get(n).login)return void this.validateMember(t.id);this.usersManagerService.reserveRandomPassword(t.userId,n).subscribe(function(){i.usersManagerService.validatePasswordForUser(t.userId,n).subscribe(function(){i.validateMember(t.id,!1)},function(){i.processing=!1,i.dialogRef.close(!0)})},function(){i.processing=!1,i.dialogRef.close(!0)})}else this.usersManagerService.reservePasswordForUser(t.userId,n,a).subscribe(function(){i.usersManagerService.validatePasswordForUser(t.userId,n).subscribe(function(){i.validateMember(t.id)},function(){i.processing=!1,i.dialogRef.close(!0)})},function(){i.processing=!1,i.dialogRef.close(!0)})}},{key:"validateMember",value:function(t){var e=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.membersManagerService.validateMemberAsync(t).subscribe(function(){i&&e.notificator.showSuccess(e.successMessagePwd),e.dialogRef.close(!0),e.processing=!1},function(){e.processing=!1,e.dialogRef.close(!0)})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSearchByString",value:function(){var t=this;this.loading=!0,this.membersManagerService.findCompleteRichMembersForVo(this.data.voId,[null],this.searchCtrl.value).subscribe(function(e){t.members=e.filter(function(t){return!t.user.specificUser}),t.firstSearchDone=!0,t.loading=!1})}},{key:"addUsers",value:function(){var t=this,e=this.assignedMembers.map(function(t){return t.id});this.selection.selected.forEach(function(i){e.includes(i.id)||t.assignedMembers.push(i)}),this.selection.clear()}},{key:"removeUser",value:function(t){this.assignedMembers=this.assignedMembers.filter(function(e){return e.id!==t.id})}},{key:"onNamespaceChanged",value:function(t){this.selectedNamespace=t.toLowerCase();var e=this.secondFormGroup.get("loginCtrl"),i=this.secondFormGroup.get("passwordCtrl"),n=this.secondFormGroup.get("passwordAgainCtrl"),a=this.secondFormGroup.get("generatePasswordCtrl");if("Not selected"!==t){if("disabled"===this.parsedRules.get(this.selectedNamespace).login)e.disable(),e.setValue("");else{var o=[Te.kI.required,Te.kI.pattern("^[a-z][a-z0-9_-]+$"),Te.kI.maxLength(15),Te.kI.minLength(2)];(0,g.mH)(e,o,[this.existingLoginValidator()])}(0,g.mH)(a,[]),this.passwordOptionChanged()}else e.disable(),e.setValue(""),i.disable(),i.setValue(""),n.disable(),n.setValue(""),a.disable(),a.dirty||a.setValue(!0)}},{key:"passwordOptionChanged",value:function(){var t=this.secondFormGroup.get("passwordCtrl"),e=this.secondFormGroup.get("passwordAgainCtrl");this.secondFormGroup.get("generatePasswordCtrl").value?(t.disable(),t.setValue(""),e.disable(),e.setValue("")):((0,g.mH)(t,[Te.kI.required],[(0,Ws.yT)(this.selectedNamespace,this.usersManagerService,this.apiRequestConfiguration)]),(0,g.mH)(e,[]))}},{key:"getStepperNextConditions",value:function(){switch(this.stepper.selectedIndex){case 0:return this.firstFormGroup.invalid||this.firstFormGroup.pending;case 1:return this.secondFormGroup.invalid||this.secondFormGroup.pending||"Not selected"===this.secondFormGroup.get("namespaceCtrl").value;default:return!1}}},{key:"stepperPrevious",value:function(){this.stepper.previous()}},{key:"stepperNext",value:function(){this.stepper.next()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(I.Y36(v.so),I.Y36(v.WI),I.Y36(d.uq),I.Y36(d.Fv),I.Y36(h.V6),I.Y36(x.sK),I.Y36(h.d6),I.Y36(h.F5),I.Y36(Te.qu),I.Y36(I.sBO))},t.\u0275cmp=I.Xpm({type:t,selectors:[["app-create-service-member-dialog"]],viewQuery:function(t,e){var i;(1&t&&I.Gf(il,5),2&t)&&(I.iGM(i=I.CRH())&&(e.stepper=i.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"],["formControlName","namespaceCtrl",3,"valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"floatLabel"],["formControlName","loginCtrl","matInput","","required","",3,"hidden"],["class","input-disabled",4,"ngIf"],["formControlName","generatePasswordCtrl","matTooltipPosition","left",1,"display-flex","mt-3",3,"matTooltipDisabled","matTooltip","ngModelChange"],[3,"checked","value"],[3,"formGroup","passwordRequired","namespace"],[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"],[3,"value"],[1,"input-disabled"],[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(t,e){1&t&&(I.TgZ(0,"div",0),I.TgZ(1,"h1",1),I._uU(2),I.ALo(3,"translate"),I.qZA(),I.YNc(4,Sl,84,76,"div",2),I.YNc(5,Nl,1,0,"mat-spinner",3),I.YNc(6,Cl,7,6,"div",4),I.qZA()),2&t&&(I.xp6(2),I.Oqu(I.lcZ(3,4,"DIALOGS.CREATE_SERVICE_MEMBER.TITLE")),I.xp6(2),I.Q6J("ngIf",!e.processing),I.xp6(1),I.Q6J("ngIf",e.processing),I.xp6(1),I.Q6J("ngIf",!e.processing))},directives:[s.O5,v.xY,Jr.Vq,Jr.C0,Te._Y,Te.JL,Te.sg,Jr.VY,be.KE,be.hX,Te.Fj,Se.Nt,Te.JJ,Te.u,Te.Q7,_e.gD,s.sg,ve.VQ,S.gM,ve.U0,Ks.G,tl.i$,Te.oH,O.lW,_.Hw,be.TO,Ne.ey,tl.Tg,b.$g,el.O,ft.w,v.H8],pipes:[x.X$,qt.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}"]}),t}(),Ml=o(4374);function yl(t,e){if(1&t){var i=I.EpF();I.TgZ(0,"button",7),I.NdJ("click",function(){return I.CHM(i),I.oxw().onRemoveMembers()}),I._uU(1),I.ALo(2,"translate"),I.qZA()}if(2&t){var n=I.oxw();I.Q6J("disabled",n.selection.isEmpty()),I.xp6(1),I.hij(" ",I.lcZ(2,2,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.DELETE"),"\n")}}function Dl(t,e){1&t&&I._UZ(0,"mat-spinner",8)}var Ul=function(){return["checkbox","id","type","fullName","status"]};function ql(t,e){if(1&t&&I._UZ(0,"perun-web-apps-members-list",9),2&t){var i=I.oxw();I.Q6J("tableId",i.tableId)("displayedColumns",I.DdM(5,Ul))("selection",i.selection)("filter",i.searchString)("members",i.members)}}var Pl,wl,Gl=[{path:"",component:u.Y},{path:":voId",component:ut,children:[{path:"",component:K,data:{animation:"VoOverviewPage"}},{path:"attributes",component:he,data:{animation:"VoAttributesPage"}},{path:"groups",component:tt.G,data:{animation:"VoGroupsPage"}},{path:"members",component:et.y,data:{animation:"VoMembersPage"}},{path:"resources",component:ce,children:[{path:"",component:ca,data:{animation:"VoResourcesOverviewPage"}},{path:"preview",component:pa.z,data:{animation:"VoResourcesPreviewPage"}},{path:"states",component:da.z,data:{animation:"VoResourcesStatesPage"}},{path:"tags",component:Ca,data:{animation:"VoResourcesTagsPage"}}]},{path:"applications",component:pe.c,data:{animation:"VoApplicationsPage"}},{path:"applications/:applicationId",component:Di,data:{animation:"VoApplicationDetailPage"}},{path:"sponsoredMembers",component:Ts.T,data:{animation:"VoSettingsSponsoredMembersPage"}},{path:"serviceAccounts",component:(Pl=function(){function t(e,i,n,o,r){a(this,t),this.membersManager=e,this.dialog=i,this.authResolver=n,this.authzService=o,this.entityStorageService=r,this.members=[],this.selection=new ga.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=Za._c}return r(t,[{key:"ngOnInit",value:function(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.removeAuth=this.authzService.isAuthorized("deleteMembers_List_policy",[this.vo]),this.refresh()}},{key:"createServiceMember",value:function(){var t=this,e=(0,g.kZ)();e.width="750px",e.data={voId:this.vo.id},this.dialog.open(Rl,e).afterClosed().subscribe(function(e){e&&t.refresh()})}},{key:"onRemoveMembers",value:function(){var t=this,e=(0,g.kZ)();e.width="450px",e.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(Ml.X,e).afterClosed().subscribe(function(e){e&&(t.refresh(),t.selection.clear())})}},{key:"applyFilter",value:function(t){this.searchString=t}},{key:"refresh",value:function(){var t=this;this.loading=!0,this.membersManager.findCompleteRichMembersForVo(this.vo.id,[null],"(Service)").subscribe(function(e){t.members=e,t.loading=!1})}}]),t}(),Pl.\u0275fac=function(t){return new(t||Pl)(I.Y36(d.uq),I.Y36(v.uw),I.Y36(h.x4),I.Y36(h.x4),I.Y36(h.fb))},Pl.\u0275cmp=I.Xpm({type:Pl,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","filter","members",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","displayedColumns","selection","filter","members"]],template:function(t,e){1&t&&(I.TgZ(0,"h1",0),I._uU(1),I.ALo(2,"translate"),I.qZA(),I.TgZ(3,"perun-web-apps-refresh-button",1),I.NdJ("refresh",function(){return e.refresh()}),I.qZA(),I.TgZ(4,"button",2),I.NdJ("click",function(){return e.createServiceMember()}),I._uU(5),I.ALo(6,"translate"),I.qZA(),I.YNc(7,yl,3,4,"button",3),I.TgZ(8,"perun-web-apps-immediate-filter",4),I.NdJ("filter",function(t){return e.applyFilter(t)}),I.qZA(),I.YNc(9,Dl,1,0,"mat-spinner",5),I.YNc(10,ql,1,6,"perun-web-apps-members-list",6)),2&t&&(I.xp6(1),I.Oqu(I.lcZ(2,6,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.TITLE")),I.xp6(4),I.hij(" ",I.lcZ(6,8,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.CREATE"),"\n"),I.xp6(2),I.Q6J("ngIf",e.removeAuth),I.xp6(1),I.Q6J("placeholder","VO_DETAIL.SETTINGS.SERVICE_MEMBERS.FILTER"),I.xp6(1),I.Q6J("ngIf",e.loading),I.xp6(1),I.Q6J("ngIf",!e.loading))},directives:[ba.t,O.lW,s.O5,_a.L,b.$g,el.O],pipes:[x.X$],styles:[""]}),Pl),data:{animation:"VoSettingsServiceMembersPage"}},{path:"statistics",component:ys,data:{animation:"VoStatisticsPage"}},{path:"settings",component:de,children:[{path:"",component:Ae,data:{animation:"VoSettingsOverviewPage"}},{path:"expiration",component:Je,data:{animation:"VoSettingsExpirationPage"}},{path:"managers",component:Qe,data:{animation:"VoSettingsManagersPage"}},{path:"applicationForm",component:Wi.w,data:{animation:"SettingsApplicationFormPage"}},{path:"applicationForm/preview",component:zn,data:{animation:"SettingsApplicationFormPreviewPage"}},{path:"applicationForm/manageGroups",component:js},{path:"notifications",component:wo,data:{animation:"SettingsApplicationFormNotificationsPage"}},{path:"extsources",component:dr,data:{animation:"VoSettingsExtSourcesPage"}}]}]},{path:":voId/members/:memberId",component:z,children:[{path:"",component:ie,data:{animation:"MemberOverviewPage"}},{path:"attributes",component:ua,data:{animation:"MemberAttributesPage"}},{path:"groups",component:ne.j,data:{animation:"MemberGroupsPage"}},{path:"applications",component:Gr,data:{animation:"MemberApplicationsPage"}},{path:"applications/:applicationId",component:Di,data:{animation:"MemberApplicationDetailPage"}},{path:"resources",component:us,data:{animation:"MemberResourcesPage"}}]},{path:":voId/groups/:groupId",component:Y,children:[{path:"",component:le,data:{animation:"GroupOverviewPage"}},{path:"members",component:Ui.y,data:{animation:"GroupMembersPage"}},{path:"subgroups",component:ue.u,data:{animation:"GroupSubgroupsPage"}},{path:"applications",component:Ve.W,data:{animation:"GroupApplicationsPage"}},{path:"resources",component:qi.q,data:{animation:"GroupResourcesPage"}},{path:"attributes",component:Hi,data:{animation:"GroupAttributesPage"}},{path:"statistics",component:qs,data:{animation:"GroupStatisticsPage"}},{path:"settings",component:Pi,children:[{path:"",component:$i,data:{animation:"GroupSettingsOverviewPage"}},{path:"expiration",component:Ma,data:{animation:"GroupSettingsExpirationPage"}},{path:"managers",component:ya,data:{animation:"GroupSettingsManagersPage"}},{path:"applicationForm",component:Go.Z,data:{animation:"GroupSettingsApplicationFormPage"}},{path:"applicationForm/preview",component:zn},{path:"notifications",component:Ho,data:{animation:"GroupSettingsNotificationsPage"}},{path:"relations",component:Cr,data:{animation:"GroupSettingsRelationsPage"}},{path:"extsources",component:_s,data:{animation:"GroupSettingsExtsourcesPage"}}]},{path:"applications/:applicationId",component:Di,data:{animation:"GroupApplicationDetailPage"}}]},{path:":voId/resources/:resourceId",component:cs.b,children:[{path:"",component:ps.H,data:{animation:"ResourceOverviewPage"}},{path:"groups",component:ds.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:As.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"attributes",component:ms.X,data:{animation:"ResourceAttributesPage"}},{path:"members",component:Is.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:Hs.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:gs.t,children:[{path:"",component:hs.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:fs.O,data:{animation:"ResourceSettingsManagersPage"}}]}]}],kl=function(){var t=function t(){a(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=I.oAB({type:t}),t.\u0275inj=I.cJS({imports:[[l.Bz.forChild(Gl)],l.Bz]}),t}(),Yl=o(28780),Jl=o(22727),Vl=o(22280),Fl=((wl=function t(){a(this,t)}).\u0275fac=function(t){return new(t||wl)},wl.\u0275mod=I.oAB({type:wl}),wl.\u0275inj=I.cJS({imports:[[s.ez,kl,Yl.m,Jl.r,Sr.ez,Vl.d4,g.Je]]}),wl)}}])}(); \ No newline at end of file diff --git a/dist/apps/admin-gui/515-es2015.07e9c4eebbb53157acfd.js b/dist/apps/admin-gui/515-es2015.07e9c4eebbb53157acfd.js new file mode 100644 index 000000000..6ee3fff12 --- /dev/null +++ b/dist/apps/admin-gui/515-es2015.07e9c4eebbb53157acfd.js @@ -0,0 +1 @@ +(self.webpackChunkperun_web_apps=self.webpackChunkperun_web_apps||[]).push([[515],{93215:function(e,t,s){"use strict";s.d(t,{l:function(){return N}});var i=s(84608),n=s(65249),r=s(68416),a=s(60611),o=s(4230),l=s(67004),c=s(16073),u=s(31572),p=s(48160),d=s(66283),h=s(80340),g=s(15980),m=s(43691),f=s(61511),I=s(77889),Z=s(39571),A=s(67806);function S(e,t){if(1&e&&u._UZ(0,"app-users-list",14),2&e){const e=u.oxw(2);u.Q6J("tableId",e.tableId)("displayedColumns",e.displayedColumns)("users",e.identities)("disableRouting",!0)("selection",e.selection)}}function E(e,t){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,S,1,5,"app-users-list",13),u.qZA()),2&e){const e=u.oxw();u.xp6(1),u.Q6J("ngIf",void 0!==e.identities&&e.identities.length>0)}}function T(e,t){1&e&&(u.TgZ(0,"app-alert",15),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"DIALOGS.CONNECT_IDENTITY.SEARCH_HINT")," "))}function b(e,t){1&e&&(u.TgZ(0,"app-alert",16),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"DIALOGS.CONNECT_IDENTITY.NO_IDENTITIES")," "))}function v(e,t){1&e&&u._UZ(0,"mat-spinner",17)}let N=(()=>{class e{constructor(e,t,s,i,n,r){this.dialogRef=e,this.data=t,this.userManager=s,this.storeService=i,this.notificator=n,this.translate=r,this.loading=!1,this.selection=new o.Ov(!1,[]),this.firstSearchDone=!1,this.displayedColumns=["select","id","user","name","email","logins","organization"],this.tableId=a.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 c.NI("",[c.kI.required,c.kI.pattern(".*[\\S]+.*")])}onAdd(){let e,t;this.loading=!0,this.isService?(e=this.selection.selected[0].id,t=this.userId):(e=this.userId,t=this.selection.selected[0].id),this.userManager.addSpecificUserOwner(e,t).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 e=[l.r.USER_DEF_ORGANIZATION,l.r.USER_DEF_PREFERRED_MAIL];e=e.concat(this.storeService.getLoginAttributeNames()),this.userManager.findRichUsersWithAttributes(this.searchCtrl.value,e).subscribe(e=>{this.identities=this.filterIdentities(e),this.loading=!1},()=>{this.loading=!1})}onKeyInput(e){"Enter"===e.key&&this.onSearchByString()}filterIdentities(e){return e.filter(this.isService?e=>!e.serviceUser:e=>e.serviceUser)}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(i.so),u.Y36(i.WI),u.Y36(n.Fv),u.Y36(r.d6),u.Y36(r.V6),u.Y36(p.sK))},e.\u0275cmp=u.Xpm({type:e,selectors:[["app-connect-identity-dialog"]],decls:26,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"],["mat-flat-button","","color","primary",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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"tableId","displayedColumns","users","disableRouting","selection",4,"ngIf"],[3,"tableId","displayedColumns","users","disableRouting","selection"],["alert_type","info"],["alert_type","warn"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(u.TgZ(0,"div",0),u.NdJ("keyup",function(e){return t.onKeyInput(e)}),u.TgZ(1,"h1",1),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"div",2),u.TgZ(5,"mat-form-field",3),u.TgZ(6,"label"),u._UZ(7,"input",4),u.ALo(8,"translate"),u.qZA(),u.TgZ(9,"mat-error"),u._uU(10),u.ALo(11,"translate"),u.qZA(),u.qZA(),u.TgZ(12,"button",5),u.NdJ("click",function(){return t.onSearchByString()}),u.TgZ(13,"mat-icon"),u._uU(14,"search"),u.qZA(),u.qZA(),u.YNc(15,E,2,1,"div",6),u.YNc(16,T,3,3,"app-alert",7),u.YNc(17,b,3,3,"app-alert",8),u.qZA(),u.YNc(18,v,1,0,"mat-spinner",9),u.TgZ(19,"div",10),u.TgZ(20,"button",11),u.NdJ("click",function(){return t.onCancel()}),u._uU(21),u.ALo(22,"translate"),u.qZA(),u.TgZ(23,"button",12),u.NdJ("click",function(){return t.onAdd()}),u._uU(24),u.ALo(25,"translate"),u.qZA(),u.qZA(),u.qZA()),2&e&&(u.Tol(t.theme),u.xp6(2),u.Oqu(u.lcZ(3,15,"DIALOGS.CONNECT_IDENTITY.TITLE_"+t.target)),u.xp6(5),u.s9C("placeholder",u.lcZ(8,17,"DIALOGS.CONNECT_IDENTITY.SEARCH")),u.Q6J("formControl",t.searchCtrl),u.xp6(3),u.hij(" ",u.lcZ(11,19,"DIALOGS.CONNECT_IDENTITY.EMPTY_SEARCH_MESSAGE")," "),u.xp6(2),u.Q6J("disabled",t.loading),u.xp6(3),u.Q6J("ngIf",!t.loading),u.xp6(1),u.Q6J("ngIf",!t.firstSearchDone),u.xp6(1),u.Q6J("ngIf",!t.loading&&t.firstSearchDone&&0===t.identities.length),u.xp6(1),u.Q6J("ngIf",t.loading),u.xp6(3),u.hij(" ",u.lcZ(22,21,"DIALOGS.CONNECT_IDENTITY.CANCEL")," "),u.xp6(2),u.Q6J("disabled",0===t.selection.selected.length),u.xp6(1),u.hij(" ",u.lcZ(25,23,"DIALOGS.CONNECT_IDENTITY.CONNECT")," "))},directives:[i.uh,i.xY,d.KE,h.Nt,c.Fj,c.JJ,c.oH,d.TO,g.lW,m.Hw,f.O5,i.H8,I.C,Z.w,A.$g],pipes:[p.X$],styles:[".search-field[_ngcontent-%COMP%]{width:300px}.search-btn[_ngcontent-%COMP%]{width:50px}"]}),e})()},26019:function(e,t,s){"use strict";s.d(t,{B:function(){return A}});var i=s(65249),n=s(84608),r=s(68416),a=s(67033),o=s(31572),l=s(48160),c=s(61511),u=s(15980),p=s(39571),d=s(22196);function h(e,t){1&e&&o._UZ(0,"th",13)}function g(e,t){if(1&e&&(o.TgZ(0,"td",14),o._uU(1),o.ALo(2,"userFullName"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,e))}}function m(e,t){1&e&&o._UZ(0,"tr",15)}function f(e,t){1&e&&o._UZ(0,"tr",16)}function I(e,t){1&e&&(o.TgZ(0,"app-alert",17),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&e&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"DIALOGS.DISCONNECT_IDENTITY.WARNING_DISCONNECT_YOURSELF")," "))}function Z(e,t){1&e&&(o.TgZ(0,"app-alert",17),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&e&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"DIALOGS.DISCONNECT_IDENTITY.WARNING_LAST_USER")," "))}let A=(()=>{class e{constructor(e,t,s,i,n,r){this.dialogRef=e,this.data=t,this.userManager=s,this.notificator=i,this.translate=n,this.store=r,this.displayedColumns=["name"]}ngOnInit(){let e;this.targetTitle=this.data.targetTitle,this.targetDescription=this.data.targetDescription,this.theme=this.data.theme,this.userId=Number(this.data.userId),this.dataSource=new a.by([this.data.specificUser]),this.isService=this.data.isService,this.isService?(e=this.userId,this.disconnectingSelf=this.dataSource.data[0].id===this.store.getPerunPrincipal().userId):(e=this.dataSource.data[0].id,this.disconnectingSelf=this.userId===this.store.getPerunPrincipal().userId),this.userManager.getUsersBySpecificUser(e).subscribe(e=>{this.disconnectingLastOwner=1===e.length})}onConfirm(){let e,t;this.isService?(e=this.dataSource.data[0].id,t=this.userId):(e=this.userId,t=this.dataSource.data[0].id),this.userManager.removeSpecificUserOwner(e,t).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.DISCONNECT_IDENTITY.SUCCESS")),this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(n.so),o.Y36(n.WI),o.Y36(i.Fv),o.Y36(r.V6),o.Y36(l.sK),o.Y36(r.d6))},e.\u0275cmp=o.Xpm({type:e,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"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["alert_type","warn"]],template:function(e,t){1&e&&(o.TgZ(0,"h1",0),o._uU(1),o.ALo(2,"translate"),o.qZA(),o.TgZ(3,"div"),o.TgZ(4,"div",1),o.TgZ(5,"p"),o._uU(6),o.ALo(7,"translate"),o.qZA(),o.TgZ(8,"div",2),o._uU(9),o.ALo(10,"translate"),o.qZA(),o.TgZ(11,"table",3),o.ynx(12,4),o.YNc(13,h,1,0,"th",5),o.YNc(14,g,3,3,"td",6),o.BQk(),o.YNc(15,m,1,0,"tr",7),o.YNc(16,f,1,0,"tr",8),o.qZA(),o.YNc(17,I,3,3,"app-alert",9),o.YNc(18,Z,3,3,"app-alert",9),o.qZA(),o.TgZ(19,"div",10),o.TgZ(20,"button",11),o.NdJ("click",function(){return t.onCancel()}),o._uU(21),o.ALo(22,"translate"),o.qZA(),o.TgZ(23,"button",12),o.NdJ("click",function(){return t.onConfirm()}),o._uU(24),o.ALo(25,"translate"),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(1),o.Oqu(o.lcZ(2,13,"DIALOGS.DISCONNECT_IDENTITY.TITLE_"+t.targetTitle)),o.xp6(2),o.Tol(t.theme),o.xp6(3),o.Oqu(o.lcZ(7,15,"DIALOGS.DISCONNECT_IDENTITY.DESCRIPTION_"+t.targetDescription)),o.xp6(3),o.hij(" ",o.lcZ(10,17,"DIALOGS.DISCONNECT_IDENTITY.ASK")," "),o.xp6(2),o.Q6J("dataSource",t.dataSource),o.xp6(4),o.Q6J("matHeaderRowDef",t.displayedColumns),o.xp6(1),o.Q6J("matRowDefColumns",t.displayedColumns),o.xp6(1),o.Q6J("ngIf",t.disconnectingSelf),o.xp6(1),o.Q6J("ngIf",t.disconnectingLastOwner),o.xp6(3),o.hij(" ",o.lcZ(22,19,"DIALOGS.DISCONNECT_IDENTITY.CANCEL")," "),o.xp6(3),o.hij(" ",o.lcZ(25,21,"DIALOGS.DISCONNECT_IDENTITY.REMOVE")," "))},directives:[n.uh,n.xY,a.BZ,a.w1,a.fO,a.Dz,a.as,a.nj,c.O5,n.H8,u.lW,a.ge,a.ev,a.XQ,a.Gk,p.w],pipes:[l.X$,d.d],styles:[""]}),e})()},2898:function(e,t,s){"use strict";s.d(t,{x:function(){return Z}});var i=s(65249),n=s(84608),r=s(68416),a=s(16073),o=s(31572),l=s(48160),c=s(66283),u=s(80340),p=s(61511),d=s(15980);function h(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&e&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function g(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&e&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function m(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&e&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_FIRST_NAME")))}function f(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&e&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function I(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&e&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LAST_NAME")))}let Z=(()=>{class e{constructor(e,t,s,i,n){this.dialogRef=e,this.data=t,this.userService=s,this.notificator=i,this.translateService=n,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.titleBefore=new a.NI(this.data.user.titleBefore,[a.kI.pattern(".*[\\S]+.*"),a.kI.maxLength(129)]),this.titleAfter=new a.NI(this.data.user.titleAfter,[a.kI.pattern(".*[\\S]+.*"),a.kI.maxLength(129)]),this.firstName=new a.NI(this.data.user.firstName,[a.kI.required,a.kI.pattern(".*[\\S]+.*"),a.kI.maxLength(129)]),this.middleName=new a.NI(this.data.user.middleName,[a.kI.pattern(".*[\\S]+.*"),a.kI.maxLength(129)]),this.lastName=new a.NI(this.data.user.lastName,[a.kI.required,a.kI.pattern(".*[\\S]+.*"),a.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(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(n.so),o.Y36(n.WI),o.Y36(i.Fv),o.Y36(r.V6),o.Y36(l.sK))},e.\u0275cmp=o.Xpm({type:e,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","","required","",3,"formControl","placeholder"],["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&&(o.TgZ(0,"div"),o.TgZ(1,"h1",0),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.TgZ(4,"div",1),o.TgZ(5,"mat-form-field"),o._UZ(6,"input",2),o.ALo(7,"translate"),o.YNc(8,h,3,3,"mat-error",3),o.qZA(),o.TgZ(9,"mat-form-field"),o._UZ(10,"input",2),o.ALo(11,"translate"),o.YNc(12,g,3,3,"mat-error",3),o.qZA(),o.TgZ(13,"mat-form-field"),o._UZ(14,"input",4),o.ALo(15,"translate"),o.YNc(16,m,3,3,"mat-error",3),o.qZA(),o.TgZ(17,"mat-form-field"),o._UZ(18,"input",2),o.ALo(19,"translate"),o.YNc(20,f,3,3,"mat-error",3),o.qZA(),o.TgZ(21,"mat-form-field"),o._UZ(22,"input",4),o.ALo(23,"translate"),o.YNc(24,I,3,3,"mat-error",3),o.qZA(),o.qZA(),o.TgZ(25,"div",5),o.TgZ(26,"button",6),o.NdJ("click",function(){return t.onCancel()}),o._uU(27),o.ALo(28,"translate"),o.qZA(),o.TgZ(29,"button",7),o.NdJ("click",function(){return t.onSave()}),o._uU(30),o.ALo(31,"translate"),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.Tol(t.theme),o.xp6(2),o.Oqu(o.lcZ(3,22,"DIALOGS.EDIT_USER.DIALOG_TITLE")),o.xp6(4),o.s9C("placeholder",o.lcZ(7,24,"DIALOGS.EDIT_USER.TITLE_BEFORE")),o.Q6J("formControl",t.titleBefore),o.xp6(2),o.Q6J("ngIf",t.titleBefore.invalid),o.xp6(2),o.s9C("placeholder",o.lcZ(11,26,"DIALOGS.EDIT_USER.TITLE_AFTER")),o.Q6J("formControl",t.titleAfter),o.xp6(2),o.Q6J("ngIf",t.titleAfter.invalid),o.xp6(2),o.s9C("placeholder",o.lcZ(15,28,"DIALOGS.EDIT_USER.FIRST_NAME")),o.Q6J("formControl",t.firstName),o.xp6(2),o.Q6J("ngIf",t.firstName.invalid),o.xp6(2),o.s9C("placeholder",o.lcZ(19,30,"DIALOGS.EDIT_USER.MIDDLE_NAME")),o.Q6J("formControl",t.middleName),o.xp6(2),o.Q6J("ngIf",t.middleName.invalid),o.xp6(2),o.s9C("placeholder",o.lcZ(23,32,"DIALOGS.EDIT_USER.LAST_NAME")),o.Q6J("formControl",t.lastName),o.xp6(2),o.Q6J("ngIf",t.lastName.invalid),o.xp6(3),o.hij(" ",o.lcZ(28,34,"DIALOGS.EDIT_USER.CANCEL")," "),o.xp6(2),o.Q6J("disabled",t.loading||t.firstName.invalid||t.lastName.invalid||t.titleBefore.invalid||t.titleAfter.invalid||t.middleName.invalid),o.xp6(1),o.hij(" ",o.lcZ(31,36,"DIALOGS.EDIT_USER.SAVE")," "))},directives:[n.xY,c.KE,u.Nt,a.Fj,a.JJ,a.oH,p.O5,a.Q7,n.H8,d.lW,c.TO],pipes:[l.X$],styles:[""]}),e})()},95690:function(e,t,s){"use strict";s.d(t,{u:function(){return f}});var i=s(68416),n=s(31572),r=s(57629),a=s(55109),o=s(61511),l=s(541),c=s(3417),u=s(48160);function p(e,t){1&e&&(n._uU(0),n.ALo(1,"translate")),2&e&&n.hij(" ",n.lcZ(1,1,"ADMIN_USER.ENTITY")," ")}function d(e,t){if(1&e&&n._UZ(0,"app-one-entity-attribute-page",5),2&e){const e=n.oxw();n.Q6J("entityId",e.userId)("entity","user")}}function h(e,t){1&e&&(n._uU(0),n.ALo(1,"translate"),n.ALo(2,"translate")),2&e&&n.AsE(" ",n.lcZ(1,2,"ADMIN_USER.ENTITY")," - ",n.lcZ(2,4,"FACILITY_DETAIL.ENTITY")," ")}function g(e,t){if(1&e&&n._UZ(0,"app-two-entity-attribute-page",6),2&e){const e=n.oxw(2);n.Q6J("firstEntity","user")("firstEntityId",e.userId)("secondEntity","facility")}}function m(e,t){1&e&&(n.TgZ(0,"mat-tab"),n.YNc(1,h,3,6,"ng-template",2),n.YNc(2,g,1,3,"ng-template",3),n.qZA())}let f=(()=>{class e{constructor(e,t,s){this.route=e,this.store=t,this.authResolver=s}ngOnInit(){this.route.parent.params.subscribe(e=>{this.userId=e.userId,void 0===this.userId&&(this.userId=this.store.getPerunPrincipal().userId),this.userFacilityAttAuth=this.authResolver.isAuthorized("getAssignedFacilities_User_policy",[{id:this.userId,beanName:"User"}])})}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(r.gz),n.Y36(i.d6),n.Y36(i.x4))},e.\u0275cmp=n.Xpm({type:e,selectors:[["app-user-settings-attributes"]],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("router-component",t.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(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"mat-tab-group"),n.TgZ(4,"mat-tab",1),n.YNc(5,p,2,3,"ng-template",2),n.YNc(6,d,1,2,"ng-template",3),n.qZA(),n.YNc(7,m,3,0,"mat-tab",4),n.qZA()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,2,"USER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),n.xp6(6),n.Q6J("ngIf",t.userFacilityAttAuth))},directives:[a.SP,a.uX,a.uD,a.Vc,o.O5,l.t,c.Y],pipes:[u.X$],styles:[""]}),e})()},31612:function(e,t,s){"use strict";s.d(t,{u:function(){return b}});var i=s(68416),n=s(65249),r=s(60611),a=s(31572),o=s(57629),l=s(61511),c=s(59403),u=s(19139),p=s(67806),d=s(78364),h=s(48160);function g(e,t){1&e&&(a.TgZ(0,"h1",6),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.YOU_ARE_MEMBER"),"\n"))}function m(e,t){1&e&&(a.TgZ(0,"h1",6),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.USER_IS_MEMBER"),"\n"))}function f(e,t){1&e&&a._UZ(0,"mat-spinner",7)}const I=function(){return["id","vo","name","description","status"]};function Z(e,t){if(1&e&&a._UZ(0,"perun-web-apps-groups-list",8),2&e){const e=a.oxw();a.Q6J("tableId",e.tableId)("groups",e.membersGroups)("displayedColumns",a.DdM(5,I))("disableMembers",!1)("filter",e.memberFilterValue)}}function A(e,t){1&e&&a._UZ(0,"mat-spinner",7)}const S=function(){return["id","vo","name","description"]};function E(e,t){if(1&e&&a._UZ(0,"perun-web-apps-groups-list",8),2&e){const e=a.oxw(2);a.Q6J("tableId",e.adminTableId)("groups",e.adminsGroups)("displayedColumns",a.DdM(5,S))("disableMembers",!1)("filter",e.adminFilterValue)}}function T(e,t){if(1&e){const e=a.EpF();a.TgZ(0,"div",9),a.TgZ(1,"h1",6),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"perun-web-apps-refresh-button",1),a.NdJ("refresh",function(){return a.CHM(e),a.oxw().refreshAdminTable()}),a.qZA(),a.TgZ(5,"perun-web-apps-immediate-filter",2),a.NdJ("filter",function(t){return a.CHM(e),a.oxw().adminFilter(t)}),a.qZA(),a.YNc(6,A,1,0,"mat-spinner",3),a.YNc(7,E,1,6,"perun-web-apps-groups-list",4),a.qZA()}if(2&e){const e=a.oxw();a.xp6(2),a.hij(" ",a.lcZ(3,4,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.USER_IS_ADMIN")," "),a.xp6(3),a.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),a.xp6(1),a.Q6J("ngIf",e.adminRefresh),a.xp6(1),a.Q6J("ngIf",!e.adminRefresh)}}let b=(()=>{class e{constructor(e,t,s,i,n){this.usersService=e,this.memberService=t,this.groupService=s,this.store=i,this.route=n,this.memberFilterValue="",this.adminFilterValue="",this.vos=[],this.membersGroups=[],this.adminsGroups=[],this.tableId=r.KE,this.adminTableId=r.Sb}ngOnInit(){!0===(this.showPrincipal=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(e=>this.userId=e.userId),this.refreshAdminTable(),this.refreshMemberTable()}memberFilter(e){this.memberFilterValue=e}adminFilter(e){this.adminFilterValue=e}refreshAdminTable(){this.adminRefresh=!0,this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(e=>{this.adminsGroups=e,this.adminRefresh=!1})}refreshMemberTable(){this.memberRefresh=!0,this.membersGroups=[],this.usersService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vos=e;for(const t of this.vos)this.memberService.getMemberByUser(t.id,this.userId).subscribe(e=>{this.groupService.getMemberGroups(e.id).subscribe(e=>{this.membersGroups=this.membersGroups.concat(e),this.vos.indexOf(t)===this.vos.length-1&&(this.memberRefresh=!1)})});0===e.length&&(this.memberRefresh=!1)})}}return e.\u0275fac=function(t){return new(t||e)(a.Y36(n.Fv),a.Y36(n.uq),a.Y36(n.ff),a.Y36(i.d6),a.Y36(o.gz))},e.\u0275cmp=a.Xpm({type:e,selectors:[["app-user-groups"]],hostVars:2,hostBindings:function(e,t){2&e&&a.ekj("router-component",t.true)},decls:7,vars:6,consts:[["class","page-subtitle",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","groups","displayedColumns","disableMembers","filter",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"ml-auto","mr-auto"],[3,"tableId","groups","displayedColumns","disableMembers","filter"],[1,"mt-5"]],template:function(e,t){1&e&&(a.YNc(0,g,3,3,"h1",0),a.YNc(1,m,3,3,"h1",0),a.TgZ(2,"perun-web-apps-refresh-button",1),a.NdJ("refresh",function(){return t.refreshMemberTable()}),a.qZA(),a.TgZ(3,"perun-web-apps-immediate-filter",2),a.NdJ("filter",function(e){return t.memberFilter(e)}),a.qZA(),a.YNc(4,f,1,0,"mat-spinner",3),a.YNc(5,Z,1,6,"perun-web-apps-groups-list",4),a.YNc(6,T,8,6,"div",5)),2&e&&(a.Q6J("ngIf",t.showPrincipal),a.xp6(1),a.Q6J("ngIf",!t.showPrincipal),a.xp6(2),a.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),a.xp6(1),a.Q6J("ngIf",t.memberRefresh),a.xp6(1),a.Q6J("ngIf",!t.memberRefresh),a.xp6(1),a.Q6J("ngIf",!t.showPrincipal))},directives:[l.O5,c.t,u.L,p.$g,d.W],pipes:[h.X$],styles:[""]}),e})()},15879:function(e,t,s){"use strict";s.d(t,{j:function(){return E}});var i=s(65249),n=s(68416),r=s(60611),a=s(31572),o=s(57629),l=s(61511),c=s(59403),u=s(19139),p=s(67806),d=s(97162),h=s(48160);function g(e,t){1&e&&(a.TgZ(0,"h1",6),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.YOU_ARE_MEMBER"),"\n"))}function m(e,t){1&e&&(a.TgZ(0,"h1",6),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_MEMBER"),"\n"))}function f(e,t){1&e&&a._UZ(0,"mat-spinner",7)}function I(e,t){if(1&e&&a._UZ(0,"perun-web-apps-vos-list",8),2&e){const e=a.oxw();a.Q6J("displayedColumns",e.displayedColumns)("tableId",e.memberTableId)("filterValue",e.memberFilterValue)("vos",e.vosWhereIsMember)}}function Z(e,t){1&e&&a._UZ(0,"mat-spinner",7)}function A(e,t){if(1&e&&a._UZ(0,"perun-web-apps-vos-list",8),2&e){const e=a.oxw(2);a.Q6J("displayedColumns",e.displayedColumns)("tableId",e.adminTableId)("filterValue",e.adminFilterValue)("vos",e.vosWhereIsAdmin)}}function S(e,t){if(1&e){const e=a.EpF();a.TgZ(0,"div",9),a.TgZ(1,"h1",6),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"perun-web-apps-refresh-button",1),a.NdJ("refresh",function(){return a.CHM(e),a.oxw().refreshAdminTable()}),a.qZA(),a.TgZ(5,"perun-web-apps-immediate-filter",2),a.NdJ("filter",function(t){return a.CHM(e),a.oxw().applyAdminFilter(t)}),a.qZA(),a.YNc(6,Z,1,0,"mat-spinner",3),a.YNc(7,A,1,4,"perun-web-apps-vos-list",4),a.qZA()}if(2&e){const e=a.oxw();a.xp6(2),a.Oqu(a.lcZ(3,4,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_ADMIN")),a.xp6(3),a.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),a.xp6(1),a.Q6J("ngIf",e.adminRefresh),a.xp6(1),a.Q6J("ngIf",!e.adminRefresh)}}let E=(()=>{class e{constructor(e,t,s,i){this.usersService=e,this.authResolver=t,this.store=s,this.route=i,this.adminFilterValue="",this.memberFilterValue="",this.displayedColumns=["id","name"],this.adminTableId=r.YF,this.memberTableId=r.gc}ngOnInit(){!0===(this.isMyProfile=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(e=>this.userId=e.userId),this.refreshAdminTable(),this.refreshMemberTable()}refreshMemberTable(){this.memberRefresh=!0,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vosWhereIsMember=e,this.memberRefresh=!1},()=>this.memberRefresh=!1)}refreshAdminTable(){this.adminRefresh=!0,this.usersService.getVosWhereUserIsAdmin(this.userId).subscribe(e=>{this.vosWhereIsAdmin=e,this.adminRefresh=!1},()=>this.adminRefresh=!1)}applyMemberFilter(e){this.memberFilterValue=e}applyAdminFilter(e){this.adminFilterValue=e}}return e.\u0275fac=function(t){return new(t||e)(a.Y36(i.Fv),a.Y36(n.x4),a.Y36(n.d6),a.Y36(o.gz))},e.\u0275cmp=a.Xpm({type:e,selectors:[["app-user-organizations"]],hostVars:2,hostBindings:function(e,t){2&e&&a.ekj("router-component",t.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(e,t){1&e&&(a.YNc(0,g,3,3,"h1",0),a.YNc(1,m,3,3,"h1",0),a.TgZ(2,"perun-web-apps-refresh-button",1),a.NdJ("refresh",function(){return t.refreshMemberTable()}),a.qZA(),a.TgZ(3,"perun-web-apps-immediate-filter",2),a.NdJ("filter",function(e){return t.applyMemberFilter(e)}),a.qZA(),a.YNc(4,f,1,0,"mat-spinner",3),a.YNc(5,I,1,4,"perun-web-apps-vos-list",4),a.YNc(6,S,8,6,"div",5)),2&e&&(a.Q6J("ngIf",t.isMyProfile),a.xp6(1),a.Q6J("ngIf",!t.isMyProfile),a.xp6(2),a.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),a.xp6(1),a.Q6J("ngIf",t.memberRefresh),a.xp6(1),a.Q6J("ngIf",!t.memberRefresh),a.xp6(1),a.Q6J("ngIf",!t.isMyProfile))},directives:[l.O5,c.t,u.L,p.$g,d.Z],pipes:[h.X$],styles:[""]}),e})()},71956:function(e,t,s){"use strict";s.d(t,{Z:function(){return v}});var i=s(65249),n=s(67033),r=s(68416),a=s(67004),o=s(84140),l=s(6527),c=s(31572),u=s(57629),p=s(84608),d=s(61511),h=s(8557),g=s(27439),m=s(15980),f=s(43691),I=s(48160);function Z(e,t){1&e&&c._UZ(0,"th",12)}function A(e,t){if(1&e&&(c.TgZ(0,"td",13),c._uU(1),c.qZA()),2&e){const e=t.$implicit;c.xp6(1),c.hij(" ",e.displayName,": ")}}function S(e,t){1&e&&c._UZ(0,"th",12)}function E(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"td",14),c._uU(1),c.TgZ(2,"button",15),c.NdJ("click",function(){return c.CHM(e),c.oxw(2).changeEmail()}),c.TgZ(3,"mat-icon"),c._uU(4,"edit"),c.qZA(),c.qZA(),c.qZA()}if(2&e){const e=t.$implicit;c.xp6(1),c.hij(" ",e.value," ")}}function T(e,t){1&e&&c._UZ(0,"tr",16)}function b(e,t){if(1&e&&(c.TgZ(0,"div",2),c.TgZ(1,"mat-card",3),c.TgZ(2,"mat-card-header"),c.TgZ(3,"mat-card-title"),c.TgZ(4,"h1",4),c._uU(5),c.ALo(6,"translate"),c.qZA(),c.qZA(),c.qZA(),c.TgZ(7,"mat-card-content"),c.TgZ(8,"table",5),c.ynx(9,6),c.YNc(10,Z,1,0,"th",7),c.YNc(11,A,2,1,"td",8),c.BQk(),c.ynx(12,9),c.YNc(13,S,1,0,"th",7),c.YNc(14,E,5,1,"td",10),c.BQk(),c.YNc(15,T,1,0,"tr",11),c.qZA(),c.qZA(),c.qZA(),c.qZA()),2&e){const e=c.oxw();c.xp6(5),c.Oqu(c.lcZ(6,3,"USER_DETAIL.OVERVIEW.GENERAL_SETTINGS")),c.xp6(3),c.Q6J("dataSource",e.mailDataSource),c.xp6(7),c.Q6J("matRowDefColumns",e.displayedColumns)}}let v=(()=>{class e{constructor(e,t,s,i,n){this.userService=e,this.attributeService=t,this.storeService=s,this.route=i,this.dialog=n,this.navItems=[],this.isServiceUser=!1,this.displayedColumns=["name","value"],this.inMyProfile=!1}ngOnInit(){this.route.params.subscribe(e=>{void 0!==e.userId?this.userService.getUserById(e.userId).subscribe(e=>{this.user=e,this.isServiceUser=e.serviceUser,this.initNavItems()}):(this.inMyProfile=!0,this.userID=this.storeService.getPerunPrincipal().user.id,this.attributeService.getUserAttributeByName(this.userID,a.r.USER_DEF_PREFERRED_MAIL).subscribe(e=>{this.preferredMail=e,this.handleMailNotDefined(),this.mailDataSource=new n.by([this.preferredMail]),this.initNavItems()}))})}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-group",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-group",url:"roles",label:"MENU_ITEMS.USER.ROLES",style:"user-btn"}),this.navItems.push(this.isServiceUser?{cssIcon:"perun-user-dark",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"})}changeEmail(){const e=(0,o.kZ)();e.width="350px",e.data={userId:this.userID},this.dialog.open(l.gr,e).afterClosed().subscribe(e=>{e&&this.attributeService.getUserAttributeByName(this.userID,a.r.USER_DEF_PREFERRED_MAIL).subscribe(e=>{this.preferredMail=e,this.handleMailNotDefined(),this.mailDataSource=new n.by([this.preferredMail])})})}handleMailNotDefined(){null==this.preferredMail&&(this.preferredMail={id:-1,beanName:"Attribute",displayName:(0,o.Cz)(a.r.USER_DEF_PREFERRED_MAIL.split(":").pop()),value:Object("-")})}}return e.\u0275fac=function(t){return new(t||e)(c.Y36(i.Fv),c.Y36(i.H8),c.Y36(r.d6),c.Y36(u.gz),c.Y36(p.uw))},e.\u0275cmp=c.Xpm({type:e,selectors:[["app-user-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&c.ekj("router-component",t.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(e,t){1&e&&(c.YNc(0,b,16,5,"div",0),c._UZ(1,"perun-web-apps-menu-buttons-field",1)),2&e&&(c.Q6J("ngIf",t.inMyProfile),c.xp6(1),c.Q6J("items",t.navItems)("size","small"))},directives:[d.O5,h.L,g.a8,g.dk,g.n5,g.dn,n.BZ,n.w1,n.fO,n.Dz,n.nj,n.ge,n.ev,m.lW,f.Hw,n.Gk],pipes:[I.X$],styles:[".align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}"]}),e})()},7233:function(e,t,s){"use strict";s.d(t,{t:function(){return Me}});var i=s(65249),n=s(68416),r=s(31572),a=s(57629),o=s(61511),l=s(67806),c=s(45001),u=s(43691),p=s(27439),d=s(97162),h=s(77889),g=s(78364),m=s(88884),f=s(60007),I=s(4252),Z=s(48160);function A(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function S(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function E(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.SELF_VOS_ADMIN")," "))}function T(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.SELF_VOS")," "))}function b(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.SELF_IDENTITIES_ADMIN")," "))}function v(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.SELF_IDENTITIES")," "))}const N=function(){return["user","id","name"]};function R(e,t){if(1&e&&(r.TgZ(0,"div",11),r.YNc(1,b,3,3,"div",2),r.YNc(2,v,3,3,"div",2),r._UZ(3,"app-users-list",12),r.qZA()),2&e){const e=r.oxw(4);r.xp6(1),r.Q6J("ngIf",!e.showDescription),r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("users",e.users)("disableRouting",!0)("displayedColumns",r.DdM(5,N))}}const U=function(){return["id","name","shortName"]};function x(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,E,3,3,"div",2),r.YNc(2,T,3,3,"div",2),r._UZ(3,"perun-web-apps-vos-list",9),r.YNc(4,R,4,6,"div",10),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",!e.showDescription),r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("displayedColumns",r.DdM(5,U))("vos",e.vos),r.xp6(1),r.Q6J("ngIf",e.users.length)}}function _(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getSelfData()}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",7),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,S,1,0,"mat-spinner",1),r.YNc(8,x,5,6,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.SELF")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function O(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function C(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.GROUPADMIN_GROUPS")," "))}const L=function(){return["id","vo","name","description"]};function D(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,C,3,3,"div",2),r._UZ(2,"perun-web-apps-groups-list",14),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("groups",e.groups)("displayedColumns",r.DdM(3,L))}}function q(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getAdminGroupsAndVos()}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",13),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,O,1,0,"mat-spinner",1),r.YNc(8,D,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.GROUPADMIN")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function w(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function Y(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.GROUPOBSERVER_GROUPS")," "))}const y=function(){return["id","recent","vo","name","description"]};function M(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,Y,3,3,"div",2),r._UZ(2,"perun-web-apps-groups-list",14),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("groups",e.groups)("displayedColumns",r.DdM(3,y))}}function J(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getGroupsAndVos("GROUPOBSERVER")}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",13),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,w,1,0,"mat-spinner",1),r.YNc(8,M,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.GROUPOBSERVER")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function Q(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function F(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.VOADMIN_VOS")," "))}function P(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,F,3,3,"div",2),r._UZ(2,"perun-web-apps-vos-list",9),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("displayedColumns",r.DdM(3,U))("vos",e.vos)}}function V(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getAdminVos()}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",15),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,Q,1,0,"mat-spinner",1),r.YNc(8,P,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.VOADMIN")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function G(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function k(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.VOOBSERVER_VOS")," "))}function B(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,k,3,3,"div",2),r._UZ(2,"perun-web-apps-vos-list",9),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("displayedColumns",r.DdM(3,U))("vos",e.vos)}}function j(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){r.CHM(e);const t=r.oxw(2);return t.getVos(t.roles.get("VOOBSERVER").get("Vo"))}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",15),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,G,1,0,"mat-spinner",1),r.YNc(8,B,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.VOOBSERVER")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function H(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function z(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.TRUSTEDFACILITYADMIN_VOS")," "))}function W(e,t){if(1&e&&(r.TgZ(0,"div"),r.TgZ(1,"div"),r.YNc(2,z,3,3,"div",2),r._UZ(3,"perun-web-apps-vos-list",9),r.qZA(),r.qZA()),2&e){const e=r.oxw(3);r.xp6(2),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("displayedColumns",r.DdM(3,U))("vos",e.vos)}}function X(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){r.CHM(e);const t=r.oxw(2);return t.getVos(t.roles.get("TRUSTEDFACILITYADMIN").get("Vo"))}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",15),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,H,1,0,"mat-spinner",1),r.YNc(8,W,4,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.TRUSTEDFACILITYADMIN")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function $(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function K(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.TOPGROUPCREATOR_VOS")," "))}function ee(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,K,3,3,"div",2),r._UZ(2,"perun-web-apps-vos-list",9),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("displayedColumns",r.DdM(3,U))("vos",e.vos)}}function te(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){r.CHM(e);const t=r.oxw(2);return t.getVos(t.roles.get("TOPGROUPCREATOR").get("Vo"))}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",15),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,$,1,0,"mat-spinner",1),r.YNc(8,ee,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.TOPGROUPCREATOR")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function se(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function ie(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.RESOURCEADMIN_RESOURCES")," "))}const ne=function(){return["id","name","vo","facility","description"]};function re(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,ie,3,3,"div",2),r._UZ(2,"perun-web-apps-resources-list",17),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("resources",e.resources)("routingVo",!0)("displayedColumns",r.DdM(4,ne))}}function ae(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getResourcesData("RESOURCEADMIN")}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",16),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,se,1,0,"mat-spinner",1),r.YNc(8,re,3,5,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.RESOURCEADMIN")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function oe(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function le(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.RESOURCEOBSERVER_RESOURCES")," "))}function ce(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,le,3,3,"div",2),r._UZ(2,"perun-web-apps-resources-list",17),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("resources",e.resources)("routingVo",!0)("displayedColumns",r.DdM(4,ne))}}function ue(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getResourcesData("RESOURCEOBSERVER")}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",16),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,oe,1,0,"mat-spinner",1),r.YNc(8,ce,3,5,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.RESOURCEOBSERVER")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function pe(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function de(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.RESOURCESELFSERVICE_RESOURCES")," "))}function he(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,de,3,3,"div",2),r._UZ(2,"perun-web-apps-resources-list",17),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("resources",e.resources)("routingVo",!0)("displayedColumns",r.DdM(4,ne))}}function ge(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getResourcesData("RESOURCESELFSERVICE")}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",16),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,pe,1,0,"mat-spinner",1),r.YNc(8,he,3,5,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.RESOURCESELFSERVICE")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function me(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function fe(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.FACILITYADMIN_FACILITIES")," "))}const Ie=function(){return["id","name","description"]};function Ze(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,fe,3,3,"div",2),r._UZ(2,"perun-web-apps-facilities-list",19),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("displayedColumns",r.DdM(3,Ie))("facilities",e.facilities)}}function Ae(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getAdminFacilities()}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",18),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,me,1,0,"mat-spinner",1),r.YNc(8,Ze,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.FACILITYADMIN")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function Se(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function Ee(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.FACILITYOBSERVER_FACILITIES")," "))}function Te(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,Ee,3,3,"div",2),r._UZ(2,"perun-web-apps-facilities-list",19),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("displayedColumns",r.DdM(3,Ie))("facilities",e.facilities)}}function be(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getFacilities("FACILITYOBSERVER")}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",18),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,Se,1,0,"mat-spinner",1),r.YNc(8,Te,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.FACILITYOBSERVER")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function ve(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function Ne(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.SPONSORSHIP_MEMBERS")," "))}const Re=function(){return["id","fullName","sponsored"]};function Ue(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,Ne,3,3,"div",2),r._UZ(2,"perun-web-apps-members-list",20),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("members",e.members)("displayedColumns",r.DdM(3,Re))}}function xe(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getMembers()}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",7),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,ve,1,0,"mat-spinner",1),r.YNc(8,Ue,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.SPONSORSHIP")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function _e(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function Oe(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.SPONSOR_VOS")," "))}function Ce(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,Oe,3,3,"div",2),r._UZ(2,"perun-web-apps-vos-list",9),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("displayedColumns",r.DdM(3,U))("vos",e.vos)}}function Le(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){r.CHM(e);const t=r.oxw(2);return t.getVos(t.roles.get("SPONSOR").get("Vo"))}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",7),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,_e,1,0,"mat-spinner",1),r.YNc(8,Ce,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.SPONSOR")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function De(e,t){1&e&&(r.TgZ(0,"mat-expansion-panel"),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",7),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&e&&(r.xp6(5),r.Oqu(r.lcZ(6,1,"ROLES.PERUN_ADMIN")))}function qe(e,t){1&e&&(r.TgZ(0,"mat-expansion-panel"),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",7),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&e&&(r.xp6(5),r.Oqu(r.lcZ(6,1,"ROLES.PERUN_OBSERVER")))}function we(e,t){if(1&e&&(r.TgZ(0,"p",22),r._uU(1),r.qZA()),2&e){const e=t.$implicit;r.xp6(1),r.AsE("",e[0]," ids: ",e[1],"")}}function Ye(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){const t=r.CHM(e).$implicit;return r.oxw(2).getInnerKeys(t)}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",7),r.TgZ(4,"p",8),r._uU(5),r.qZA(),r.qZA(),r.qZA(),r.YNc(6,we,2,2,"p",21),r.qZA()}if(2&e){const e=t.$implicit,s=r.oxw(2);r.xp6(5),r.Oqu(e),r.xp6(1),r.Q6J("ngForOf",s.currentIds)}}function ye(e,t){if(1&e&&(r.TgZ(0,"mat-accordion"),r.YNc(1,_,9,5,"mat-expansion-panel",4),r.YNc(2,q,9,5,"mat-expansion-panel",4),r.YNc(3,J,9,5,"mat-expansion-panel",4),r.YNc(4,V,9,5,"mat-expansion-panel",4),r.YNc(5,j,9,5,"mat-expansion-panel",4),r.YNc(6,X,9,5,"mat-expansion-panel",4),r.YNc(7,te,9,5,"mat-expansion-panel",4),r.YNc(8,ae,9,5,"mat-expansion-panel",4),r.YNc(9,ue,9,5,"mat-expansion-panel",4),r.YNc(10,ge,9,5,"mat-expansion-panel",4),r.YNc(11,Ae,9,5,"mat-expansion-panel",4),r.YNc(12,be,9,5,"mat-expansion-panel",4),r.YNc(13,xe,9,5,"mat-expansion-panel",4),r.YNc(14,Le,9,5,"mat-expansion-panel",4),r.YNc(15,De,7,3,"mat-expansion-panel",2),r.YNc(16,qe,7,3,"mat-expansion-panel",2),r.YNc(17,Ye,7,2,"mat-expansion-panel",5),r.qZA()),2&e){const e=r.oxw();r.xp6(1),r.Q6J("ngIf",e.isSelf),r.xp6(1),r.Q6J("ngIf",e.isGroupAdmin),r.xp6(1),r.Q6J("ngIf",e.isGroupObserver),r.xp6(1),r.Q6J("ngIf",e.isVoAdmin),r.xp6(1),r.Q6J("ngIf",e.isVoObserver),r.xp6(1),r.Q6J("ngIf",e.isTrustedFacilityAdmin),r.xp6(1),r.Q6J("ngIf",e.isTopGroupCreator),r.xp6(1),r.Q6J("ngIf",e.isResourceAdmin),r.xp6(1),r.Q6J("ngIf",e.isResourceObserver),r.xp6(1),r.Q6J("ngIf",e.isResourceSelfService),r.xp6(1),r.Q6J("ngIf",e.isFacilityAdmin),r.xp6(1),r.Q6J("ngIf",e.isFacilityObserver),r.xp6(1),r.Q6J("ngIf",e.hasSponsorship),r.xp6(1),r.Q6J("ngIf",e.isSponsor),r.xp6(1),r.Q6J("ngIf",e.isPerunAdmin),r.xp6(1),r.Q6J("ngIf",e.isPerunObserver),r.xp6(1),r.Q6J("ngForOf",e.roleNames)}}let Me=(()=>{class e{constructor(e,t,s,i,n,r,a,o,l){this.authzResolverService=e,this.usersManagerService=t,this.vosManagerService=s,this.facilitiesManagerService=i,this.resourcesManagerService=n,this.membersManagerService=r,this.groupsManagerService=a,this.route=o,this.store=l,this.currentIds=[],this.roles=new Map,this.roleFilter=["SELF","GROUPADMIN","VOADMIN","RESOURCEADMIN","FACILITYADMIN","TOPGROUPCREATOR","SPONSORSHIP","SPONSOR","RESOURCESELFSERVICE","VOOBSERVER","RESOURCEOBSERVER","GROUPOBSERVER","TRUSTEDFACILITYADMIN","FACILITYOBSERVER","PERUNADMIN","PERUNOBSERVER"],this.roleNames=[],this.groups=[],this.vos=[],this.facilities=[],this.users=[],this.resources=[],this.members=[]}ngOnInit(){this.outerLoading=!0,this.route.parent.params.subscribe(e=>{e.userId?(this.userId=e.userId,this.authzResolverService.getUserRoleNames(this.userId).subscribe(e=>{this.roleNames=e.map(e=>e.toUpperCase()),this.authzResolverService.getUserRoles(this.userId).subscribe(e=>{this.prepareRoles(e)})})):(this.showDescription=!0,this.principal=this.store.getPerunPrincipal(),this.userId=this.principal.userId,this.roleNames=Object.keys(this.principal.roles),this.prepareRoles(this.principal.roles))})}prepareRoles(e){this.roleNames.forEach(t=>{const s=new Map;switch(Object.keys(e[t]).forEach(i=>{s.set(i,e[t][i])}),t){case"SELF":this.isSelf=!0;break;case"GROUPADMIN":this.isGroupAdmin=!0;break;case"VOADMIN":this.isVoAdmin=!0;break;case"RESOURCEADMIN":this.isResourceAdmin=!0;break;case"FACILITYADMIN":this.isFacilityAdmin=!0;break;case"TOPGROUPCREATOR":this.isTopGroupCreator=!0;break;case"SPONSORSHIP":this.hasSponsorship=!0;break;case"SPONSOR":this.isSponsor=!0;break;case"RESOURCESELFSERVICE":this.isResourceSelfService=!0;break;case"VOOBSERVER":this.isVoObserver=!0;break;case"RESOURCEOBSERVER":this.isResourceObserver=!0;break;case"GROUPOBSERVER":this.isGroupObserver=!0;break;case"TRUSTEDFACILITYADMIN":this.isTrustedFacilityAdmin=!0;break;case"FACILITYOBSERVER":this.isFacilityObserver=!0;break;case"PERUNADMIN":this.isPerunAdmin=!0;break;case"PERUNOBSERVER":this.isPerunObserver=!0}this.roles.set(t,s)}),this.roleNames=this.roleNames.filter(e=>!this.roleFilter.includes(e)),this.outerLoading=!1}getAdminGroupsAndVos(){this.loading=!0,this.groups=[],this.usersManagerService.getGroupsWhereUserIsAdmin(this.userId).subscribe(e=>{this.groups=e;const t=[...new Set(this.groups.map(e=>e.voId))];this.getVos(t)})}getVos(e){this.loading=!0,this.vos=[],this.vosManagerService.getVosByIds(e).subscribe(e=>{this.vos=e,this.loading=!1})}getInnerKeys(e){if(this.roles.get(e)){const t=this.roles.get(e).entries(),s=[];let i=t.next().value;for(;i;)s.push(i),i=t.next().value;this.currentIds=s}else this.currentIds=[]}getAdminVos(){this.loading=!0,this.vos=[],this.usersManagerService.getVosWhereUserIsAdmin(this.userId).subscribe(e=>{this.vos=e,this.loading=!1})}getAdminFacilities(){this.loading=!0,this.facilities=[],this.facilitiesManagerService.getFacilitiesWhereUserIsAdmin(this.userId).subscribe(e=>{this.facilities=e.map(e=>({facility:e})),this.loading=!1})}getSelfData(){this.loading=!0,this.vos=[],this.users=[],this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vos=e;const t=this.roles.get("SELF").get("User");t?this.usersManagerService.getUsersByIds(t).subscribe(e=>{this.users=e,this.loading=!1}):this.loading=!1})}getResourcesData(e){this.loading=!0;const t=this.roles.get(e).get("Resource");this.vos=[],this.facilities=[],this.resources=[],this.resourcesManagerService.getRichResourcesByIds(t).subscribe(e=>{this.resources=e,this.vos=this.resources.map(e=>e.vo).filter((e,t,s)=>s.indexOf(e)===t),this.facilities=this.resources.map(e=>({facility:e.facility})).filter((e,t,s)=>s.indexOf(e)===t),this.loading=!1})}getMembers(){this.loading=!0;const e=this.roles.get("SPONSORSHIP").get("Member");this.members=[],this.membersManagerService.getRichMembersByIds(e).subscribe(e=>{this.members=e,this.loading=!1})}getGroupsAndVos(e){this.loading=!0;const t=this.roles.get(e).get("Vo"),s=this.roles.get(e).get("Group");this.vos=[],this.groups=[],this.groupsManagerService.getGroupsByIds(s).subscribe(e=>{this.groups=e,this.vosManagerService.getVosByIds(t).subscribe(e=>{this.vos=e,this.loading=!1})})}getFacilities(e){this.loading=!0,this.facilities=[];const t=this.roles.get(e).get("Facility");this.facilitiesManagerService.getFacilitiesByIds(t).subscribe(e=>{this.facilities=e.map(e=>({facility:e})),this.loading=!1})}}return e.\u0275fac=function(t){return new(t||e)(r.Y36(i.Ct),r.Y36(i.Fv),r.Y36(i.YF),r.Y36(i.IQ),r.Y36(i.xk),r.Y36(i.uq),r.Y36(i.ff),r.Y36(a.gz),r.Y36(n.d6))},e.\u0275cmp=r.Xpm({type:e,selectors:[["app-user-roles"]],hostVars:2,hostBindings:function(e,t){2&e&&r.ekj("router-component",t.true)},decls:5,vars:5,consts:[[1,"page-subtitle","d-flex"],["class","ml-auto mr-auto",4,"ngIf"],[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","vos"],["class","mt-5",4,"ngIf"],[1,"mt-5"],[3,"users","disableRouting","displayedColumns"],["mat-card-avatar","","svgIcon","perun-group-black",1,"mr-2"],[3,"groups","displayedColumns"],["mat-card-avatar","","svgIcon","perun-vo-black",1,"mr-2"],["mat-card-avatar","","svgIcon","perun-resource-black",1,"mr-2"],[3,"resources","routingVo","displayedColumns"],["mat-card-avatar","","svgIcon","perun-facility-black",1,"mr-2"],[3,"displayedColumns","facilities"],[3,"members","displayedColumns"],["class","role-content",4,"ngFor","ngForOf"],[1,"role-content"]],template:function(e,t){1&e&&(r.TgZ(0,"h1",0),r._uU(1),r.ALo(2,"translate"),r.qZA(),r.YNc(3,A,1,0,"mat-spinner",1),r.YNc(4,ye,18,17,"mat-accordion",2)),2&e&&(r.xp6(1),r.Oqu(r.lcZ(2,3,"ROLES.TITLE")),r.xp6(2),r.Q6J("ngIf",t.outerLoading),r.xp6(1),r.Q6J("ngIf",!t.outerLoading))},directives:[o.O5,l.$g,c.pp,o.sg,c.ib,c.yz,c.yK,u.Hw,p.kc,d.Z,h.C,g.W,m.C,f.X,I.O],pipes:[Z.X$],styles:[".role-content[_ngcontent-%COMP%]{overflow:auto;overflow-y:hidden}.info-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),e})()},2043:function(e,t,s){"use strict";s.d(t,{d:function(){return E}});var i=s(60611),n=s(65249),r=s(4230),a=s(84140),o=s(93215),l=s(26019),c=s(68416),u=s(31572),p=s(84608),d=s(57629),h=s(59403),g=s(15980),m=s(61511),f=s(77889),I=s(67806),Z=s(48160);function A(e,t){if(1&e&&(u._UZ(0,"app-users-list",6),u.ALo(1,"translate")),2&e){const e=u.oxw();u.Q6J("tableId",e.tableId)("noUsersFoundLabel",u.lcZ(1,6,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.NO_ASSOCIATED_USERS"))("users",e.associatedUsers)("selection",e.selection)("disableRouting",e.disableRouting)("displayedColumns",e.displayedColumns)}}function S(e,t){1&e&&u._UZ(0,"mat-spinner",7)}let E=(()=>{class e{constructor(e,t,s,n,a){this.dialog=e,this.router=t,this.authResolver=s,this.userManager=n,this.entityStorageService=a,this.loading=!1,this.selection=new r.Ov(!1,[]),this.associatedUsers=[],this.tableId=i.It,this.displayedColumns=["select","id","user","name"]}ngOnInit(){this.loading=!0,this.user=this.entityStorageService.getEntity(),this.userManager.getUsersBySpecificUser(this.user.id).subscribe(e=>{this.associatedUsers=e,this.setAuth(),this.loading=!1})}refreshTable(){this.loading=!0,this.userManager.getUsersBySpecificUser(this.user.id).subscribe(e=>{this.associatedUsers=e,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 e=(0,a.kZ)();e.width="1250px",e.data={userId:this.user.id,theme:"user-theme",isService:!0,target:"USER"},this.dialog.open(o.l,e).afterClosed().subscribe(e=>{e&&this.refreshTable()})}onRemove(){const e=(0,a.kZ)();e.width="650px",e.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(l.B,e).afterClosed().subscribe(e=>{e&&(this.authResolver.isAuthorized("getUsersBySpecificUser_User_policy",[this.user])?this.refreshTable():this.router.navigate(["/myProfile"]))})}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(p.uw),u.Y36(d.F0),u.Y36(c.x4),u.Y36(n.Fv),u.Y36(c.fb))},e.\u0275cmp=u.Xpm({type:e,selectors:[["app-user-settings-associated-users"]],decls:13,vars:12,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"tableId","noUsersFoundLabel","users","selection","disableRouting","displayedColumns",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"tableId","noUsersFoundLabel","users","selection","disableRouting","displayedColumns"],[1,"mr-auto","ml-auto"]],template:function(e,t){1&e&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"perun-web-apps-refresh-button",1),u.NdJ("refresh",function(){return t.refreshTable()}),u.qZA(),u.TgZ(5,"button",2),u.NdJ("click",function(){return t.onAdd()}),u._uU(6),u.ALo(7,"translate"),u.qZA(),u.TgZ(8,"button",3),u.NdJ("click",function(){return t.onRemove()}),u._uU(9),u.ALo(10,"translate"),u.qZA(),u.YNc(11,A,2,8,"app-users-list",4),u.qZA(),u.YNc(12,S,1,0,"mat-spinner",5)),2&e&&(u.xp6(2),u.Oqu(u.lcZ(3,6,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.TITLE")),u.xp6(4),u.hij(" ",u.lcZ(7,8,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.ADD")," "),u.xp6(2),u.Q6J("disabled",0===t.selection.selected.length),u.xp6(1),u.hij(" ",u.lcZ(10,10,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.REMOVE")," "),u.xp6(2),u.Q6J("ngIf",!t.loading),u.xp6(1),u.Q6J("ngIf",t.loading))},directives:[h.t,g.lW,m.O5,f.C,I.$g],pipes:[Z.X$],styles:[""]}),e})()},52384:function(e,t,s){"use strict";s.d(t,{R:function(){return b}});var i=s(4230),n=s(65249),r=s(60611),a=s(84140),o=s(93215),l=s(26019),c=s(68416),u=s(31572),p=s(57629),d=s(84608),h=s(59403),g=s(61511),m=s(15980),f=s(67806),I=s(77889),Z=s(48160);function A(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"button",6),u.NdJ("click",function(){return u.CHM(e),u.oxw().onAdd()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.CREATE"),"\n"))}function S(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"button",7),u.NdJ("click",function(){return u.CHM(e),u.oxw().onRemove()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}if(2&e){const e=u.oxw();u.Q6J("disabled",0===e.selection.selected.length),u.xp6(1),u.hij(" ",u.lcZ(2,2,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.DELETE"),"\n")}}function E(e,t){1&e&&u._UZ(0,"mat-spinner",8)}function T(e,t){if(1&e&&(u._UZ(0,"app-users-list",9),u.ALo(1,"translate")),2&e){const e=u.oxw();u.Q6J("tableId",e.tableId)("noUsersFoundLabel",u.lcZ(1,6,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.NO_IDENTITIES"))("users",e.identities)("selection",e.selection)("routeToAdmin",e.routeToAdminSection)("displayedColumns",e.displayedColumns)}}let b=(()=>{class e{constructor(e,t,s,n,a,o){this.route=e,this.dialog=t,this.router=s,this.userManager=n,this.authResolver=a,this.store=o,this.loading=!1,this.selection=new i.Ov(!1,[]),this.identities=[],this.tableId=r.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(e=>{this.userId=e.userId,void 0===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(e=>{this.identities=e,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 e=(0,a.kZ)();e.width="1250px",e.data={userId:this.userId,theme:"user-theme",isService:!1,target:this.targetTitle},this.dialog.open(o.l,e).afterClosed().subscribe(e=>{e&&this.refreshTable()})}onRemove(){const e=(0,a.kZ)();e.width="650px",e.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(l.B,e).afterClosed().subscribe(e=>{e&&this.refreshTable()})}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(p.gz),u.Y36(d.uw),u.Y36(p.F0),u.Y36(n.Fv),u.Y36(c.x4),u.Y36(c.d6))},e.\u0275cmp=u.Xpm({type:e,selectors:[["app-user-settings-service-identities"]],decls:8,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","class","mr-2 action-button","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","class","mr-2","color","warn",3,"disabled","click",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"tableId","noUsersFoundLabel","users","selection","routeToAdmin","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,"mr-auto","ml-auto"],[3,"tableId","noUsersFoundLabel","users","selection","routeToAdmin","displayedColumns"]],template:function(e,t){1&e&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.TgZ(3,"perun-web-apps-refresh-button",1),u.NdJ("refresh",function(){return t.refreshTable()}),u.qZA(),u.YNc(4,A,3,3,"button",2),u.YNc(5,S,3,4,"button",3),u.YNc(6,E,1,0,"mat-spinner",4),u.YNc(7,T,2,8,"app-users-list",5)),2&e&&(u.xp6(1),u.Oqu(u.lcZ(2,5,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.TITLE")),u.xp6(3),u.Q6J("ngIf",t.addIdentity),u.xp6(1),u.Q6J("ngIf",t.removeIdentity),u.xp6(1),u.Q6J("ngIf",t.loading),u.xp6(1),u.Q6J("ngIf",!t.loading))},directives:[h.t,g.O5,m.lW,f.$g,I.C],pipes:[Z.X$],styles:[""]}),e})()},65515:function(e,t,s){"use strict";s.r(t),s.d(t,{UsersModule:function(){return Ue}});var i=s(61511),n=s(57629),r=s(15879),a=s(31612),o=s(31572),l=s(21575);let c=(()=>{class e{constructor(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-user-settings"]],hostVars:2,hostBindings:function(e,t){2&e&&o.ekj("router-component",t.true)},decls:1,vars:0,template:function(e,t){1&e&&o._UZ(0,"app-animated-router-outlet")},directives:[l.A],styles:[""]}),e})();var u=s(65249),p=s(67806),d=s(8557);function h(e,t){1&e&&o._UZ(0,"mat-spinner",2)}function g(e,t){if(1&e&&(o.TgZ(0,"div"),o._UZ(1,"perun-web-apps-menu-buttons-field",3),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("items",e.navItems)("size","small")}}let m=(()=>{class e{constructor(e,t){this.route=e,this.userManager=t,this.navItems=[],this.loading=!1}ngOnInit(){window.location.pathname.startsWith("/admin")?(this.loading=!0,this.route.parent.parent.params.subscribe(e=>{this.userManager.getUserById(e.userId).subscribe(e=>{this.isServiceUser=e.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-settings2",url:"guiConfig",label:"MENU_ITEMS.USER.GUI_CONFIG",style:"user-btn"})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(n.gz),o.Y36(u.Fv))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-user-settings-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&o.ekj("router-component",t.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,t){1&e&&(o.YNc(0,h,1,0,"mat-spinner",0),o.YNc(1,g,2,2,"div",1)),2&e&&(o.Q6J("ngIf",t.loading),o.xp6(1),o.Q6J("ngIf",!t.loading))},directives:[i.O5,p.$g,d.L],styles:[""]}),e})();var f=s(95690),I=s(41939),Z=s(84140),A=s(13857),S=s(66283),E=s(4786),T=s(71522),b=s(48160);function v(e,t){if(1&e&&(o.TgZ(0,"mat-option",5),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.Q6J("value",e),o.xp6(1),o.hij(" ",e," ")}}let N=(()=>{class e{constructor(e){this.guiConfigService=e,this.tablePageSizeOptions=Z.f7}ngOnInit(){this.preferredTablePageSize=this.guiConfigService.getNumber(A.Rc)}updatePreferredTablePageSize(){this.guiConfigService.setNumber(A.Rc,this.preferredTablePageSize)}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(A.Ng))},e.\u0275cmp=o.Xpm({type:e,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(e,t){1&e&&(o.TgZ(0,"h1",0),o._uU(1),o.ALo(2,"translate"),o.qZA(),o.TgZ(3,"div",1),o.TgZ(4,"mat-form-field",2),o.TgZ(5,"mat-label"),o._uU(6),o.ALo(7,"translate"),o.qZA(),o.TgZ(8,"mat-select",3),o.NdJ("valueChange",function(e){return t.preferredTablePageSize=e})("valueChange",function(){return t.updatePreferredTablePageSize()}),o.YNc(9,v,2,2,"mat-option",4),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(1),o.Oqu(o.lcZ(2,4,"USER_DETAIL.SETTINGS.GUI_CONFIG.TITLE")),o.xp6(5),o.Oqu(o.lcZ(7,6,"USER_DETAIL.SETTINGS.GUI_CONFIG.PREF_TABLE_PAGE_SIZE")),o.xp6(2),o.Q6J("value",t.preferredTablePageSize),o.xp6(1),o.Q6J("ngForOf",t.tablePageSizeOptions))},directives:[S.KE,S.hX,E.gD,i.sg,T.ey],pipes:[b.X$],styles:[""]}),e})();var R=s(71956),U=s(68416),x=s(48958),_=s(66297),O=s(43691),C=s(36922),L=s(22196);const D=function(){return{color:"black"}},q=function(){return["/myProfile"]};function w(e,t){if(1&e&&(o.TgZ(0,"div",1),o._UZ(1,"perun-web-apps-back-button"),o.TgZ(2,"div",2),o._UZ(3,"mat-icon",3),o.ALo(4,"translate"),o.TgZ(5,"div",4),o.TgZ(6,"div",5),o.TgZ(7,"a",6),o._uU(8),o.ALo(9,"userFullName"),o.qZA(),o.TgZ(10,"span",7),o._uU(11),o.qZA(),o.qZA(),o.TgZ(12,"span",8),o._uU(13),o.ALo(14,"translate"),o.ALo(15,"translate"),o.qZA(),o.qZA(),o.qZA(),o._UZ(16,"app-animated-router-outlet"),o.qZA()),2&e){const e=o.oxw();o.xp6(3),o.s9C("matTooltip",o.lcZ(4,8,"MENU_ITEMS.USER.ENTITY")),o.Q6J("ngStyle",o.DdM(16,D)),o.xp6(4),o.Q6J("routerLink",o.DdM(17,q)),o.xp6(1),o.hij(" ",o.lcZ(9,10,e.user)," "),o.xp6(3),o.hij(" \xa0#",e.user.id," "),o.xp6(2),o.lnq(" ",o.lcZ(14,12,"MENU_ITEMS.USER.ENTITY"),", ",o.lcZ(15,14,"MENU_ITEMS.USER.USER_TYPE"),": ",e.getUserType()," ")}}let Y=(()=>{class e{constructor(e,t,s){this.sideMenuService=e,this.store=t,this.router=s}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 e.\u0275fac=function(t){return new(t||e)(o.Y36(x.D),o.Y36(U.d6),o.Y36(n.F0))},e.\u0275cmp=o.Xpm({type:e,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(e,t){1&e&&o.YNc(0,w,17,18,"div",0),2&e&&o.Q6J("ngIf",void 0!==t.user)},directives:[i.O5,_.W,O.Hw,C.gM,i.PC,n.yS,l.A],pipes:[b.X$,L.d],styles:[""]}),e})();var y=s(7233),M=s(52384),J=s(75585),Q=s(2898),F=s(84608),P=s(15980);function V(e,t){1&e&&o._UZ(0,"mat-spinner",11)}function G(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"button",12),o.NdJ("click",function(){return o.CHM(e),o.oxw(2).editUser()}),o.TgZ(1,"mat-icon"),o._uU(2,"edit"),o.qZA(),o.qZA()}}const k=function(){return{color:"black"}},B=function(e){return["/myProfile/service-identities",e]};function j(e,t){if(1&e&&(o.TgZ(0,"div",1),o._UZ(1,"perun-web-apps-back-button"),o.YNc(2,V,1,0,"mat-spinner",2),o.TgZ(3,"div",3),o._UZ(4,"mat-icon",4),o.ALo(5,"translate"),o.TgZ(6,"div",5),o.TgZ(7,"div",6),o.TgZ(8,"a",7),o._uU(9),o.ALo(10,"userFullName"),o.qZA(),o.TgZ(11,"span",8),o._uU(12),o.qZA(),o.YNc(13,G,3,0,"button",9),o.qZA(),o.TgZ(14,"div"),o._uU(15),o.ALo(16,"translate"),o.qZA(),o.TgZ(17,"span",10),o._uU(18),o.ALo(19,"translate"),o.ALo(20,"translate"),o.qZA(),o.qZA(),o.qZA(),o._UZ(21,"app-animated-router-outlet"),o.qZA()),2&e){const e=o.oxw();o.xp6(2),o.Q6J("ngIf",e.loading),o.xp6(2),o.s9C("matTooltip",o.lcZ(5,12,"MENU_ITEMS.USER.ENTITY")),o.Q6J("ngStyle",o.DdM(22,k)),o.xp6(4),o.Q6J("routerLink",o.VKq(23,B,e.user.id)),o.xp6(1),o.hij(" ",o.lcZ(10,14,e.user)," "),o.xp6(3),o.hij(" \xa0#",e.user.id," "),o.xp6(1),o.Q6J("ngIf",e.authResolver.isPerunAdmin()),o.xp6(2),o.AsE("",o.lcZ(16,16,"ADMIN_USER.UUID"),": ",e.user.uuid,""),o.xp6(3),o.lnq(" ",o.lcZ(19,18,"MENU_ITEMS.USER.ENTITY"),", ",o.lcZ(20,20,"MENU_ITEMS.USER.USER_TYPE"),": ",e.getUserType()," ")}}let H=(()=>{class e{constructor(e,t,s,i,n,r,a){this.sideMenuService=e,this.usersService=t,this.sideMenuItemService=s,this.route=i,this.dialog=n,this.authResolver=r,this.entityStorageService=a,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{const t=e.userId;this.entityStorageService.setEntity({id:Number(t),beanName:"User"}),this.usersService.getUserById(t).subscribe(e=>{this.user=e;const t=this.sideMenuItemService.parseServiceIdentity(e);this.sideMenuService.setUserItems([t]),this.loading=!1},()=>this.loading=!1)})}getUserType(){return this.user.serviceUser?"Service":"Person"}editUser(){const e=(0,Z.kZ)();e.width="450px",e.data={theme:"admin-theme",user:this.user},this.dialog.open(Q.x,e).afterClosed().subscribe(e=>{e&&this.usersService.getUserById(this.user.id).subscribe(e=>{this.user=e})})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(x.D),o.Y36(u.Fv),o.Y36(J.V),o.Y36(n.gz),o.Y36(F.uw),o.Y36(U.x4),o.Y36(U.fb))},e.\u0275cmp=o.Xpm({type:e,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(e,t){1&e&&o.YNc(0,j,22,25,"div",0),2&e&&o.Q6J("ngIf",void 0!==t.user)},directives:[i.O5,_.W,O.Hw,C.gM,i.PC,n.yS,l.A,p.$g,P.lW],pipes:[b.X$,L.d],styles:[""]}),e})(),z=(()=>{class e{constructor(){this.navItems=[]}ngOnInit(){this.initNavItems()}initNavItems(){this.navItems=[{cssIcon:"perun-user",url:"associated-users",label:"MENU_ITEMS.USER.ASSOCIATED_USERS",style:"user-btn"}]}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-service-identity-overview"]],decls:1,vars:2,consts:[[3,"items","size"]],template:function(e,t){1&e&&o._UZ(0,"perun-web-apps-menu-buttons-field",0),2&e&&o.Q6J("items",t.navItems)("size","small")},directives:[d.L],styles:[""]}),e})();var W=s(2043);const X=[{path:"",component:Y,children:[{path:"",component:R.Z,data:{animation:"UserOverviewPage"}},{path:"attributes",component:f.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:r.j,data:{animation:"UserOrganizationsPage",showPrincipal:!0}},{path:"groups",component:a.u,data:{animation:"UserGroupsPage",showPrincipal:!0}},{path:"roles",component:y.t,data:{animation:"UserRolesPage"}},{path:"service-identities",component:M.R,data:{animation:"UserServiceIdentities"}},{path:"settings",component:c,children:[{path:"",component:m,data:{animation:"UserSettingsOverviewPage"}},{path:"passwordReset",component:I.Nj,data:{animation:"PasswordResetPage"}},{path:"guiConfig",component:N,data:{animation:"UserAppConfigurationPage"}}]}]},{path:"service-identities/:userId",component:H,children:[{path:"",component:z},{path:"associated-users",component:W.d}]}];let $=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=o.oAB({type:e}),e.\u0275inj=o.cJS({imports:[[n.Bz.forChild(X)],n.Bz]}),e})();var K=s(40084),ee=s(80340),te=s(16073),se=s(25122),ie=s(45001),ne=s(58623),re=s(67033),ae=s(55109),oe=s(91010),le=s(29236),ce=s(71403),ue=s(45994),pe=s(27521),de=s(15812),he=s(54810),ge=s(27679),me=s(73005),fe=s(27439),Ie=s(70663),Ze=s(88975),Ae=s(10033),Se=s(8055),Ee=s(4253),Te=s(22727),be=s(41050),ve=s(7423),Ne=s(22280),Re=s(28780);let Ue=(()=>{class e{constructor(e){this.translate=e,e.addLangs(["en","cs"])}}return e.\u0275fac=function(t){return new(t||e)(o.LFG(b.sK))},e.\u0275mod=o.oAB({type:e}),e.\u0275inj=o.cJS({imports:[[i.ez,$,K.Bb,ee.c,S.lN,te.UX,te.u5,O.Ps,se.SJ,ie.To,b.aw.forChild({}),P.ot,ne.JX,re.p0,ae.Nh,oe.dp,P.ot,le.p9,F.Is,E.LD,ce.ZX,p.Cq,ue.Cv,C.AV,pe.rP,de.FA,T.XK,he.Fk,ge.t,T.si,me.TU,fe.QW,Ie.T5,Ze._t,fe.QW,Ae.Hi,Se.Tx,Ee.Cl,Te.r,be.g,I.ez,ve.r,Ne.d4,Re.m]]}),e})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/515-es2015.77e27303f50c4be90525.js b/dist/apps/admin-gui/515-es2015.77e27303f50c4be90525.js deleted file mode 100644 index ffd23bfb9..000000000 --- a/dist/apps/admin-gui/515-es2015.77e27303f50c4be90525.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkperun_web_apps=self.webpackChunkperun_web_apps||[]).push([[515],{93215:function(e,t,s){"use strict";s.d(t,{l:function(){return N}});var i=s(84608),n=s(65249),r=s(68416),a=s(60611),o=s(4230),l=s(67004),c=s(16073),u=s(31572),p=s(48160),d=s(66283),h=s(80340),g=s(15980),m=s(43691),f=s(61511),I=s(77889),Z=s(39571),A=s(67806);function S(e,t){if(1&e&&u._UZ(0,"app-users-list",14),2&e){const e=u.oxw(2);u.Q6J("tableId",e.tableId)("displayedColumns",e.displayedColumns)("users",e.identities)("disableRouting",!0)("selection",e.selection)}}function E(e,t){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,S,1,5,"app-users-list",13),u.qZA()),2&e){const e=u.oxw();u.xp6(1),u.Q6J("ngIf",void 0!==e.identities&&e.identities.length>0)}}function T(e,t){1&e&&(u.TgZ(0,"app-alert",15),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"DIALOGS.CONNECT_IDENTITY.SEARCH_HINT")," "))}function b(e,t){1&e&&(u.TgZ(0,"app-alert",16),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"DIALOGS.CONNECT_IDENTITY.NO_IDENTITIES")," "))}function v(e,t){1&e&&u._UZ(0,"mat-spinner",17)}let N=(()=>{class e{constructor(e,t,s,i,n,r){this.dialogRef=e,this.data=t,this.userManager=s,this.storeService=i,this.notificator=n,this.translate=r,this.loading=!1,this.selection=new o.Ov(!1,[]),this.firstSearchDone=!1,this.displayedColumns=["select","id","user","name","email","logins","organization"],this.tableId=a.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 c.NI("",[c.kI.required,c.kI.pattern(".*[\\S]+.*")])}onAdd(){let e,t;this.loading=!0,this.isService?(e=this.selection.selected[0].id,t=this.userId):(e=this.userId,t=this.selection.selected[0].id),this.userManager.addSpecificUserOwner(e,t).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 e=[l.r.USER_DEF_ORGANIZATION,l.r.USER_DEF_PREFERRED_MAIL];e=e.concat(this.storeService.getLoginAttributeNames()),this.userManager.findRichUsersWithAttributes(this.searchCtrl.value,e).subscribe(e=>{this.identities=this.filterIdentities(e),this.loading=!1},()=>{this.loading=!1})}onKeyInput(e){"Enter"===e.key&&this.onSearchByString()}filterIdentities(e){return e.filter(this.isService?e=>!e.serviceUser:e=>e.serviceUser)}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(i.so),u.Y36(i.WI),u.Y36(n.Fv),u.Y36(r.d6),u.Y36(r.V6),u.Y36(p.sK))},e.\u0275cmp=u.Xpm({type:e,selectors:[["app-connect-identity-dialog"]],decls:26,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"],["mat-flat-button","","color","primary",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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"tableId","displayedColumns","users","disableRouting","selection",4,"ngIf"],[3,"tableId","displayedColumns","users","disableRouting","selection"],["alert_type","info"],["alert_type","warn"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(u.TgZ(0,"div",0),u.NdJ("keyup",function(e){return t.onKeyInput(e)}),u.TgZ(1,"h1",1),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"div",2),u.TgZ(5,"mat-form-field",3),u.TgZ(6,"label"),u._UZ(7,"input",4),u.ALo(8,"translate"),u.qZA(),u.TgZ(9,"mat-error"),u._uU(10),u.ALo(11,"translate"),u.qZA(),u.qZA(),u.TgZ(12,"button",5),u.NdJ("click",function(){return t.onSearchByString()}),u.TgZ(13,"mat-icon"),u._uU(14,"search"),u.qZA(),u.qZA(),u.YNc(15,E,2,1,"div",6),u.YNc(16,T,3,3,"app-alert",7),u.YNc(17,b,3,3,"app-alert",8),u.qZA(),u.YNc(18,v,1,0,"mat-spinner",9),u.TgZ(19,"div",10),u.TgZ(20,"button",11),u.NdJ("click",function(){return t.onCancel()}),u._uU(21),u.ALo(22,"translate"),u.qZA(),u.TgZ(23,"button",12),u.NdJ("click",function(){return t.onAdd()}),u._uU(24),u.ALo(25,"translate"),u.qZA(),u.qZA(),u.qZA()),2&e&&(u.Tol(t.theme),u.xp6(2),u.Oqu(u.lcZ(3,15,"DIALOGS.CONNECT_IDENTITY.TITLE_"+t.target)),u.xp6(5),u.s9C("placeholder",u.lcZ(8,17,"DIALOGS.CONNECT_IDENTITY.SEARCH")),u.Q6J("formControl",t.searchCtrl),u.xp6(3),u.hij(" ",u.lcZ(11,19,"DIALOGS.CONNECT_IDENTITY.EMPTY_SEARCH_MESSAGE")," "),u.xp6(2),u.Q6J("disabled",t.loading),u.xp6(3),u.Q6J("ngIf",!t.loading),u.xp6(1),u.Q6J("ngIf",!t.firstSearchDone),u.xp6(1),u.Q6J("ngIf",!t.loading&&t.firstSearchDone&&0===t.identities.length),u.xp6(1),u.Q6J("ngIf",t.loading),u.xp6(3),u.hij(" ",u.lcZ(22,21,"DIALOGS.CONNECT_IDENTITY.CANCEL")," "),u.xp6(2),u.Q6J("disabled",0===t.selection.selected.length),u.xp6(1),u.hij(" ",u.lcZ(25,23,"DIALOGS.CONNECT_IDENTITY.CONNECT")," "))},directives:[i.uh,i.xY,d.KE,h.Nt,c.Fj,c.JJ,c.oH,d.TO,g.lW,m.Hw,f.O5,i.H8,I.C,Z.w,A.$g],pipes:[p.X$],styles:[".search-field[_ngcontent-%COMP%]{width:300px}.search-btn[_ngcontent-%COMP%]{width:50px}"]}),e})()},26019:function(e,t,s){"use strict";s.d(t,{B:function(){return A}});var i=s(65249),n=s(84608),r=s(68416),a=s(67033),o=s(31572),l=s(48160),c=s(61511),u=s(15980),p=s(39571),d=s(22196);function h(e,t){1&e&&o._UZ(0,"th",13)}function g(e,t){if(1&e&&(o.TgZ(0,"td",14),o._uU(1),o.ALo(2,"userFullName"),o.qZA()),2&e){const e=t.$implicit;o.xp6(1),o.hij(" ",o.lcZ(2,1,e)," ")}}function m(e,t){1&e&&o._UZ(0,"tr",15)}function f(e,t){1&e&&o._UZ(0,"tr",16)}function I(e,t){1&e&&(o.TgZ(0,"app-alert",17),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&e&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"DIALOGS.DISCONNECT_IDENTITY.WARNING_DISCONNECT_YOURSELF")," "))}function Z(e,t){1&e&&(o.TgZ(0,"app-alert",17),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&e&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"DIALOGS.DISCONNECT_IDENTITY.WARNING_LAST_USER")," "))}let A=(()=>{class e{constructor(e,t,s,i,n,r){this.dialogRef=e,this.data=t,this.userManager=s,this.notificator=i,this.translate=n,this.store=r,this.displayedColumns=["name"]}ngOnInit(){let e;this.targetTitle=this.data.targetTitle,this.targetDescription=this.data.targetDescription,this.theme=this.data.theme,this.userId=Number(this.data.userId),this.dataSource=new a.by([this.data.specificUser]),this.isService=this.data.isService,this.isService?(e=this.userId,this.disconnectingSelf=this.dataSource.data[0].id===this.store.getPerunPrincipal().userId):(e=this.dataSource.data[0].id,this.disconnectingSelf=this.userId===this.store.getPerunPrincipal().userId),this.userManager.getUsersBySpecificUser(e).subscribe(e=>{this.disconnectingLastOwner=1===e.length})}onConfirm(){let e,t;this.isService?(e=this.dataSource.data[0].id,t=this.userId):(e=this.userId,t=this.dataSource.data[0].id),this.userManager.removeSpecificUserOwner(e,t).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.DISCONNECT_IDENTITY.SUCCESS")),this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(n.so),o.Y36(n.WI),o.Y36(i.Fv),o.Y36(r.V6),o.Y36(l.sK),o.Y36(r.d6))},e.\u0275cmp=o.Xpm({type:e,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"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["alert_type","warn"]],template:function(e,t){1&e&&(o.TgZ(0,"h1",0),o._uU(1),o.ALo(2,"translate"),o.qZA(),o.TgZ(3,"div"),o.TgZ(4,"div",1),o.TgZ(5,"p"),o._uU(6),o.ALo(7,"translate"),o.qZA(),o.TgZ(8,"div",2),o._uU(9),o.ALo(10,"translate"),o.qZA(),o.TgZ(11,"table",3),o.ynx(12,4),o.YNc(13,h,1,0,"th",5),o.YNc(14,g,3,3,"td",6),o.BQk(),o.YNc(15,m,1,0,"tr",7),o.YNc(16,f,1,0,"tr",8),o.qZA(),o.YNc(17,I,3,3,"app-alert",9),o.YNc(18,Z,3,3,"app-alert",9),o.qZA(),o.TgZ(19,"div",10),o.TgZ(20,"button",11),o.NdJ("click",function(){return t.onCancel()}),o._uU(21),o.ALo(22,"translate"),o.qZA(),o.TgZ(23,"button",12),o.NdJ("click",function(){return t.onConfirm()}),o._uU(24),o.ALo(25,"translate"),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(1),o.Oqu(o.lcZ(2,13,"DIALOGS.DISCONNECT_IDENTITY.TITLE_"+t.targetTitle)),o.xp6(2),o.Tol(t.theme),o.xp6(3),o.Oqu(o.lcZ(7,15,"DIALOGS.DISCONNECT_IDENTITY.DESCRIPTION_"+t.targetDescription)),o.xp6(3),o.hij(" ",o.lcZ(10,17,"DIALOGS.DISCONNECT_IDENTITY.ASK")," "),o.xp6(2),o.Q6J("dataSource",t.dataSource),o.xp6(4),o.Q6J("matHeaderRowDef",t.displayedColumns),o.xp6(1),o.Q6J("matRowDefColumns",t.displayedColumns),o.xp6(1),o.Q6J("ngIf",t.disconnectingSelf),o.xp6(1),o.Q6J("ngIf",t.disconnectingLastOwner),o.xp6(3),o.hij(" ",o.lcZ(22,19,"DIALOGS.DISCONNECT_IDENTITY.CANCEL")," "),o.xp6(3),o.hij(" ",o.lcZ(25,21,"DIALOGS.DISCONNECT_IDENTITY.REMOVE")," "))},directives:[n.uh,n.xY,a.BZ,a.w1,a.fO,a.Dz,a.as,a.nj,c.O5,n.H8,u.lW,a.ge,a.ev,a.XQ,a.Gk,p.w],pipes:[l.X$,d.d],styles:[""]}),e})()},2898:function(e,t,s){"use strict";s.d(t,{x:function(){return Z}});var i=s(65249),n=s(84608),r=s(68416),a=s(16073),o=s(31572),l=s(48160),c=s(66283),u=s(80340),p=s(61511),d=s(15980);function h(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&e&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function g(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&e&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function m(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&e&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_FIRST_NAME")))}function f(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&e&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function I(e,t){1&e&&(o.TgZ(0,"mat-error"),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&e&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LAST_NAME")))}let Z=(()=>{class e{constructor(e,t,s,i,n){this.dialogRef=e,this.data=t,this.userService=s,this.notificator=i,this.translateService=n,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.titleBefore=new a.NI(this.data.user.titleBefore,[a.kI.pattern(".*[\\S]+.*"),a.kI.maxLength(129)]),this.titleAfter=new a.NI(this.data.user.titleAfter,[a.kI.pattern(".*[\\S]+.*"),a.kI.maxLength(129)]),this.firstName=new a.NI(this.data.user.firstName,[a.kI.required,a.kI.pattern(".*[\\S]+.*"),a.kI.maxLength(129)]),this.middleName=new a.NI(this.data.user.middleName,[a.kI.pattern(".*[\\S]+.*"),a.kI.maxLength(129)]),this.lastName=new a.NI(this.data.user.lastName,[a.kI.required,a.kI.pattern(".*[\\S]+.*"),a.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(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(n.so),o.Y36(n.WI),o.Y36(i.Fv),o.Y36(r.V6),o.Y36(l.sK))},e.\u0275cmp=o.Xpm({type:e,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","","required","",3,"formControl","placeholder"],["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&&(o.TgZ(0,"div"),o.TgZ(1,"h1",0),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.TgZ(4,"div",1),o.TgZ(5,"mat-form-field"),o._UZ(6,"input",2),o.ALo(7,"translate"),o.YNc(8,h,3,3,"mat-error",3),o.qZA(),o.TgZ(9,"mat-form-field"),o._UZ(10,"input",2),o.ALo(11,"translate"),o.YNc(12,g,3,3,"mat-error",3),o.qZA(),o.TgZ(13,"mat-form-field"),o._UZ(14,"input",4),o.ALo(15,"translate"),o.YNc(16,m,3,3,"mat-error",3),o.qZA(),o.TgZ(17,"mat-form-field"),o._UZ(18,"input",2),o.ALo(19,"translate"),o.YNc(20,f,3,3,"mat-error",3),o.qZA(),o.TgZ(21,"mat-form-field"),o._UZ(22,"input",4),o.ALo(23,"translate"),o.YNc(24,I,3,3,"mat-error",3),o.qZA(),o.qZA(),o.TgZ(25,"div",5),o.TgZ(26,"button",6),o.NdJ("click",function(){return t.onCancel()}),o._uU(27),o.ALo(28,"translate"),o.qZA(),o.TgZ(29,"button",7),o.NdJ("click",function(){return t.onSave()}),o._uU(30),o.ALo(31,"translate"),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.Tol(t.theme),o.xp6(2),o.Oqu(o.lcZ(3,22,"DIALOGS.EDIT_USER.DIALOG_TITLE")),o.xp6(4),o.s9C("placeholder",o.lcZ(7,24,"DIALOGS.EDIT_USER.TITLE_BEFORE")),o.Q6J("formControl",t.titleBefore),o.xp6(2),o.Q6J("ngIf",t.titleBefore.invalid),o.xp6(2),o.s9C("placeholder",o.lcZ(11,26,"DIALOGS.EDIT_USER.TITLE_AFTER")),o.Q6J("formControl",t.titleAfter),o.xp6(2),o.Q6J("ngIf",t.titleAfter.invalid),o.xp6(2),o.s9C("placeholder",o.lcZ(15,28,"DIALOGS.EDIT_USER.FIRST_NAME")),o.Q6J("formControl",t.firstName),o.xp6(2),o.Q6J("ngIf",t.firstName.invalid),o.xp6(2),o.s9C("placeholder",o.lcZ(19,30,"DIALOGS.EDIT_USER.MIDDLE_NAME")),o.Q6J("formControl",t.middleName),o.xp6(2),o.Q6J("ngIf",t.middleName.invalid),o.xp6(2),o.s9C("placeholder",o.lcZ(23,32,"DIALOGS.EDIT_USER.LAST_NAME")),o.Q6J("formControl",t.lastName),o.xp6(2),o.Q6J("ngIf",t.lastName.invalid),o.xp6(3),o.hij(" ",o.lcZ(28,34,"DIALOGS.EDIT_USER.CANCEL")," "),o.xp6(2),o.Q6J("disabled",t.loading||t.firstName.invalid||t.lastName.invalid||t.titleBefore.invalid||t.titleAfter.invalid||t.middleName.invalid),o.xp6(1),o.hij(" ",o.lcZ(31,36,"DIALOGS.EDIT_USER.SAVE")," "))},directives:[n.xY,c.KE,u.Nt,a.Fj,a.JJ,a.oH,p.O5,a.Q7,n.H8,d.lW,c.TO],pipes:[l.X$],styles:[""]}),e})()},95690:function(e,t,s){"use strict";s.d(t,{u:function(){return f}});var i=s(68416),n=s(31572),r=s(57629),a=s(55109),o=s(61511),l=s(541),c=s(3417),u=s(48160);function p(e,t){1&e&&(n._uU(0),n.ALo(1,"translate")),2&e&&n.hij(" ",n.lcZ(1,1,"ADMIN_USER.ENTITY")," ")}function d(e,t){if(1&e&&n._UZ(0,"app-one-entity-attribute-page",5),2&e){const e=n.oxw();n.Q6J("entityId",e.userId)("entity","user")}}function h(e,t){1&e&&(n._uU(0),n.ALo(1,"translate"),n.ALo(2,"translate")),2&e&&n.AsE(" ",n.lcZ(1,2,"ADMIN_USER.ENTITY")," - ",n.lcZ(2,4,"FACILITY_DETAIL.ENTITY")," ")}function g(e,t){if(1&e&&n._UZ(0,"app-two-entity-attribute-page",6),2&e){const e=n.oxw(2);n.Q6J("firstEntity","user")("firstEntityId",e.userId)("secondEntity","facility")}}function m(e,t){1&e&&(n.TgZ(0,"mat-tab"),n.YNc(1,h,3,6,"ng-template",2),n.YNc(2,g,1,3,"ng-template",3),n.qZA())}let f=(()=>{class e{constructor(e,t,s){this.route=e,this.store=t,this.authResolver=s}ngOnInit(){this.route.parent.params.subscribe(e=>{this.userId=e.userId,void 0===this.userId&&(this.userId=this.store.getPerunPrincipal().userId),this.userFacilityAttAuth=this.authResolver.isAuthorized("getAssignedFacilities_User_policy",[{id:this.userId,beanName:"User"}])})}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(r.gz),n.Y36(i.d6),n.Y36(i.x4))},e.\u0275cmp=n.Xpm({type:e,selectors:[["app-user-settings-attributes"]],hostVars:2,hostBindings:function(e,t){2&e&&n.ekj("router-component",t.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(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"mat-tab-group"),n.TgZ(4,"mat-tab",1),n.YNc(5,p,2,3,"ng-template",2),n.YNc(6,d,1,2,"ng-template",3),n.qZA(),n.YNc(7,m,3,0,"mat-tab",4),n.qZA()),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,2,"USER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),n.xp6(6),n.Q6J("ngIf",t.userFacilityAttAuth))},directives:[a.SP,a.uX,a.uD,a.Vc,o.O5,l.t,c.Y],pipes:[u.X$],styles:[""]}),e})()},31612:function(e,t,s){"use strict";s.d(t,{u:function(){return b}});var i=s(68416),n=s(65249),r=s(60611),a=s(31572),o=s(57629),l=s(61511),c=s(59403),u=s(19139),p=s(67806),d=s(78364),h=s(48160);function g(e,t){1&e&&(a.TgZ(0,"h1",6),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.YOU_ARE_MEMBER"),"\n"))}function m(e,t){1&e&&(a.TgZ(0,"h1",6),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.USER_IS_MEMBER"),"\n"))}function f(e,t){1&e&&a._UZ(0,"mat-spinner",7)}const I=function(){return["id","vo","name","description","status"]};function Z(e,t){if(1&e&&a._UZ(0,"perun-web-apps-groups-list",8),2&e){const e=a.oxw();a.Q6J("tableId",e.tableId)("groups",e.membersGroups)("displayedColumns",a.DdM(5,I))("disableMembers",!1)("filter",e.memberFilterValue)}}function A(e,t){1&e&&a._UZ(0,"mat-spinner",7)}const S=function(){return["id","vo","name","description"]};function E(e,t){if(1&e&&a._UZ(0,"perun-web-apps-groups-list",8),2&e){const e=a.oxw(2);a.Q6J("tableId",e.adminTableId)("groups",e.adminsGroups)("displayedColumns",a.DdM(5,S))("disableMembers",!1)("filter",e.adminFilterValue)}}function T(e,t){if(1&e){const e=a.EpF();a.TgZ(0,"div",9),a.TgZ(1,"h1",6),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"perun-web-apps-refresh-button",1),a.NdJ("refresh",function(){return a.CHM(e),a.oxw().refreshAdminTable()}),a.qZA(),a.TgZ(5,"perun-web-apps-immediate-filter",2),a.NdJ("filter",function(t){return a.CHM(e),a.oxw().adminFilter(t)}),a.qZA(),a.YNc(6,A,1,0,"mat-spinner",3),a.YNc(7,E,1,6,"perun-web-apps-groups-list",4),a.qZA()}if(2&e){const e=a.oxw();a.xp6(2),a.hij(" ",a.lcZ(3,4,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.USER_IS_ADMIN")," "),a.xp6(3),a.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),a.xp6(1),a.Q6J("ngIf",e.adminRefresh),a.xp6(1),a.Q6J("ngIf",!e.adminRefresh)}}let b=(()=>{class e{constructor(e,t,s,i,n){this.usersService=e,this.memberService=t,this.groupService=s,this.store=i,this.route=n,this.memberFilterValue="",this.adminFilterValue="",this.vos=[],this.membersGroups=[],this.adminsGroups=[],this.tableId=r.KE,this.adminTableId=r.Sb}ngOnInit(){!0===(this.showPrincipal=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(e=>this.userId=e.userId),this.refreshAdminTable(),this.refreshMemberTable()}memberFilter(e){this.memberFilterValue=e}adminFilter(e){this.adminFilterValue=e}refreshAdminTable(){this.adminRefresh=!0,this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(e=>{this.adminsGroups=e,this.adminRefresh=!1})}refreshMemberTable(){this.memberRefresh=!0,this.membersGroups=[],this.usersService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vos=e;for(const t of this.vos)this.memberService.getMemberByUser(t.id,this.userId).subscribe(e=>{this.groupService.getMemberGroups(e.id).subscribe(e=>{this.membersGroups=this.membersGroups.concat(e),this.vos.indexOf(t)===this.vos.length-1&&(this.memberRefresh=!1)})});0===e.length&&(this.memberRefresh=!1)})}}return e.\u0275fac=function(t){return new(t||e)(a.Y36(n.Fv),a.Y36(n.uq),a.Y36(n.ff),a.Y36(i.d6),a.Y36(o.gz))},e.\u0275cmp=a.Xpm({type:e,selectors:[["app-user-groups"]],hostVars:2,hostBindings:function(e,t){2&e&&a.ekj("router-component",t.true)},decls:7,vars:6,consts:[["class","page-subtitle",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","groups","displayedColumns","disableMembers","filter",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"ml-auto","mr-auto"],[3,"tableId","groups","displayedColumns","disableMembers","filter"],[1,"mt-5"]],template:function(e,t){1&e&&(a.YNc(0,g,3,3,"h1",0),a.YNc(1,m,3,3,"h1",0),a.TgZ(2,"perun-web-apps-refresh-button",1),a.NdJ("refresh",function(){return t.refreshMemberTable()}),a.qZA(),a.TgZ(3,"perun-web-apps-immediate-filter",2),a.NdJ("filter",function(e){return t.memberFilter(e)}),a.qZA(),a.YNc(4,f,1,0,"mat-spinner",3),a.YNc(5,Z,1,6,"perun-web-apps-groups-list",4),a.YNc(6,T,8,6,"div",5)),2&e&&(a.Q6J("ngIf",t.showPrincipal),a.xp6(1),a.Q6J("ngIf",!t.showPrincipal),a.xp6(2),a.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),a.xp6(1),a.Q6J("ngIf",t.memberRefresh),a.xp6(1),a.Q6J("ngIf",!t.memberRefresh),a.xp6(1),a.Q6J("ngIf",!t.showPrincipal))},directives:[l.O5,c.t,u.L,p.$g,d.W],pipes:[h.X$],styles:[""]}),e})()},15879:function(e,t,s){"use strict";s.d(t,{j:function(){return E}});var i=s(65249),n=s(68416),r=s(60611),a=s(31572),o=s(57629),l=s(61511),c=s(59403),u=s(19139),p=s(67806),d=s(97162),h=s(48160);function g(e,t){1&e&&(a.TgZ(0,"h1",6),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.YOU_ARE_MEMBER"),"\n"))}function m(e,t){1&e&&(a.TgZ(0,"h1",6),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_MEMBER"),"\n"))}function f(e,t){1&e&&a._UZ(0,"mat-spinner",7)}function I(e,t){if(1&e&&a._UZ(0,"perun-web-apps-vos-list",8),2&e){const e=a.oxw();a.Q6J("displayedColumns",e.displayedColumns)("tableId",e.memberTableId)("filterValue",e.memberFilterValue)("vos",e.vosWhereIsMember)}}function Z(e,t){1&e&&a._UZ(0,"mat-spinner",7)}function A(e,t){if(1&e&&a._UZ(0,"perun-web-apps-vos-list",8),2&e){const e=a.oxw(2);a.Q6J("displayedColumns",e.displayedColumns)("tableId",e.adminTableId)("filterValue",e.adminFilterValue)("vos",e.vosWhereIsAdmin)}}function S(e,t){if(1&e){const e=a.EpF();a.TgZ(0,"div",9),a.TgZ(1,"h1",6),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"perun-web-apps-refresh-button",1),a.NdJ("refresh",function(){return a.CHM(e),a.oxw().refreshAdminTable()}),a.qZA(),a.TgZ(5,"perun-web-apps-immediate-filter",2),a.NdJ("filter",function(t){return a.CHM(e),a.oxw().applyAdminFilter(t)}),a.qZA(),a.YNc(6,Z,1,0,"mat-spinner",3),a.YNc(7,A,1,4,"perun-web-apps-vos-list",4),a.qZA()}if(2&e){const e=a.oxw();a.xp6(2),a.Oqu(a.lcZ(3,4,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_ADMIN")),a.xp6(3),a.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),a.xp6(1),a.Q6J("ngIf",e.adminRefresh),a.xp6(1),a.Q6J("ngIf",!e.adminRefresh)}}let E=(()=>{class e{constructor(e,t,s,i){this.usersService=e,this.authResolver=t,this.store=s,this.route=i,this.adminFilterValue="",this.memberFilterValue="",this.displayedColumns=["id","name"],this.adminTableId=r.YF,this.memberTableId=r.gc}ngOnInit(){!0===(this.isMyProfile=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(e=>this.userId=e.userId),this.refreshAdminTable(),this.refreshMemberTable()}refreshMemberTable(){this.memberRefresh=!0,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vosWhereIsMember=e,this.memberRefresh=!1},()=>this.memberRefresh=!1)}refreshAdminTable(){this.adminRefresh=!0,this.usersService.getVosWhereUserIsAdmin(this.userId).subscribe(e=>{this.vosWhereIsAdmin=e,this.adminRefresh=!1},()=>this.adminRefresh=!1)}applyMemberFilter(e){this.memberFilterValue=e}applyAdminFilter(e){this.adminFilterValue=e}}return e.\u0275fac=function(t){return new(t||e)(a.Y36(i.Fv),a.Y36(n.x4),a.Y36(n.d6),a.Y36(o.gz))},e.\u0275cmp=a.Xpm({type:e,selectors:[["app-user-organizations"]],hostVars:2,hostBindings:function(e,t){2&e&&a.ekj("router-component",t.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(e,t){1&e&&(a.YNc(0,g,3,3,"h1",0),a.YNc(1,m,3,3,"h1",0),a.TgZ(2,"perun-web-apps-refresh-button",1),a.NdJ("refresh",function(){return t.refreshMemberTable()}),a.qZA(),a.TgZ(3,"perun-web-apps-immediate-filter",2),a.NdJ("filter",function(e){return t.applyMemberFilter(e)}),a.qZA(),a.YNc(4,f,1,0,"mat-spinner",3),a.YNc(5,I,1,4,"perun-web-apps-vos-list",4),a.YNc(6,S,8,6,"div",5)),2&e&&(a.Q6J("ngIf",t.isMyProfile),a.xp6(1),a.Q6J("ngIf",!t.isMyProfile),a.xp6(2),a.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),a.xp6(1),a.Q6J("ngIf",t.memberRefresh),a.xp6(1),a.Q6J("ngIf",!t.memberRefresh),a.xp6(1),a.Q6J("ngIf",!t.isMyProfile))},directives:[l.O5,c.t,u.L,p.$g,d.Z],pipes:[h.X$],styles:[""]}),e})()},71956:function(e,t,s){"use strict";s.d(t,{Z:function(){return v}});var i=s(65249),n=s(67033),r=s(68416),a=s(67004),o=s(84140),l=s(6527),c=s(31572),u=s(57629),p=s(84608),d=s(61511),h=s(8557),g=s(27439),m=s(15980),f=s(43691),I=s(48160);function Z(e,t){1&e&&c._UZ(0,"th",12)}function A(e,t){if(1&e&&(c.TgZ(0,"td",13),c._uU(1),c.qZA()),2&e){const e=t.$implicit;c.xp6(1),c.hij(" ",e.displayName,": ")}}function S(e,t){1&e&&c._UZ(0,"th",12)}function E(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"td",14),c._uU(1),c.TgZ(2,"button",15),c.NdJ("click",function(){return c.CHM(e),c.oxw(2).changeEmail()}),c.TgZ(3,"mat-icon"),c._uU(4,"edit"),c.qZA(),c.qZA(),c.qZA()}if(2&e){const e=t.$implicit;c.xp6(1),c.hij(" ",e.value," ")}}function T(e,t){1&e&&c._UZ(0,"tr",16)}function b(e,t){if(1&e&&(c.TgZ(0,"div",2),c.TgZ(1,"mat-card",3),c.TgZ(2,"mat-card-header"),c.TgZ(3,"mat-card-title"),c.TgZ(4,"h1",4),c._uU(5),c.ALo(6,"translate"),c.qZA(),c.qZA(),c.qZA(),c.TgZ(7,"mat-card-content"),c.TgZ(8,"table",5),c.ynx(9,6),c.YNc(10,Z,1,0,"th",7),c.YNc(11,A,2,1,"td",8),c.BQk(),c.ynx(12,9),c.YNc(13,S,1,0,"th",7),c.YNc(14,E,5,1,"td",10),c.BQk(),c.YNc(15,T,1,0,"tr",11),c.qZA(),c.qZA(),c.qZA(),c.qZA()),2&e){const e=c.oxw();c.xp6(5),c.Oqu(c.lcZ(6,3,"USER_DETAIL.OVERVIEW.GENERAL_SETTINGS")),c.xp6(3),c.Q6J("dataSource",e.mailDataSource),c.xp6(7),c.Q6J("matRowDefColumns",e.displayedColumns)}}let v=(()=>{class e{constructor(e,t,s,i,n){this.userService=e,this.attributeService=t,this.storeService=s,this.route=i,this.dialog=n,this.navItems=[],this.isServiceUser=!1,this.displayedColumns=["name","value"],this.inMyProfile=!1}ngOnInit(){this.route.params.subscribe(e=>{void 0!==e.userId?this.userService.getUserById(e.userId).subscribe(e=>{this.user=e,this.isServiceUser=e.serviceUser,this.initNavItems()}):(this.inMyProfile=!0,this.userID=this.storeService.getPerunPrincipal().user.id,this.attributeService.getUserAttributeByName(this.userID,a.r.USER_DEF_PREFERRED_MAIL).subscribe(e=>{this.preferredMail=e,this.handleMailNotDefined(),this.mailDataSource=new n.by([this.preferredMail]),this.initNavItems()}))})}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-group",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-group",url:"roles",label:"MENU_ITEMS.USER.ROLES",style:"user-btn"}),this.navItems.push(this.isServiceUser?{cssIcon:"perun-user-dark",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"})}changeEmail(){const e=(0,o.kZ)();e.width="350px",e.data={userId:this.userID},this.dialog.open(l.gr,e).afterClosed().subscribe(e=>{e&&this.attributeService.getUserAttributeByName(this.userID,a.r.USER_DEF_PREFERRED_MAIL).subscribe(e=>{this.preferredMail=e,this.handleMailNotDefined(),this.mailDataSource=new n.by([this.preferredMail])})})}handleMailNotDefined(){null==this.preferredMail&&(this.preferredMail={id:-1,beanName:"Attribute",displayName:(0,o.Cz)(a.r.USER_DEF_PREFERRED_MAIL.split(":").pop()),value:Object("-")})}}return e.\u0275fac=function(t){return new(t||e)(c.Y36(i.Fv),c.Y36(i.H8),c.Y36(r.d6),c.Y36(u.gz),c.Y36(p.uw))},e.\u0275cmp=c.Xpm({type:e,selectors:[["app-user-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&c.ekj("router-component",t.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(e,t){1&e&&(c.YNc(0,b,16,5,"div",0),c._UZ(1,"perun-web-apps-menu-buttons-field",1)),2&e&&(c.Q6J("ngIf",t.inMyProfile),c.xp6(1),c.Q6J("items",t.navItems)("size","small"))},directives:[d.O5,h.L,g.a8,g.dk,g.n5,g.dn,n.BZ,n.w1,n.fO,n.Dz,n.nj,n.ge,n.ev,m.lW,f.Hw,n.Gk],pipes:[I.X$],styles:[".align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}"]}),e})()},7233:function(e,t,s){"use strict";s.d(t,{t:function(){return Me}});var i=s(65249),n=s(68416),r=s(31572),a=s(57629),o=s(61511),l=s(67806),c=s(45001),u=s(43691),p=s(27439),d=s(97162),h=s(77889),g=s(78364),m=s(88884),f=s(60007),I=s(4252),Z=s(48160);function A(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function S(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function E(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.SELF_VOS_ADMIN")," "))}function T(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.SELF_VOS")," "))}function b(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.SELF_IDENTITIES_ADMIN")," "))}function v(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.SELF_IDENTITIES")," "))}const N=function(){return["user","id","name"]};function R(e,t){if(1&e&&(r.TgZ(0,"div",11),r.YNc(1,b,3,3,"div",2),r.YNc(2,v,3,3,"div",2),r._UZ(3,"app-users-list",12),r.qZA()),2&e){const e=r.oxw(4);r.xp6(1),r.Q6J("ngIf",!e.showDescription),r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("users",e.users)("disableRouting",!0)("displayedColumns",r.DdM(5,N))}}const U=function(){return["id","name","shortName"]};function x(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,E,3,3,"div",2),r.YNc(2,T,3,3,"div",2),r._UZ(3,"perun-web-apps-vos-list",9),r.YNc(4,R,4,6,"div",10),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",!e.showDescription),r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("displayedColumns",r.DdM(5,U))("vos",e.vos),r.xp6(1),r.Q6J("ngIf",e.users.length)}}function _(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getSelfData()}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",7),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,S,1,0,"mat-spinner",1),r.YNc(8,x,5,6,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.SELF")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function O(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function C(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.GROUPADMIN_GROUPS")," "))}const L=function(){return["id","vo","name","description"]};function D(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,C,3,3,"div",2),r._UZ(2,"perun-web-apps-groups-list",14),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("groups",e.groups)("displayedColumns",r.DdM(3,L))}}function q(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getAdminGroupsAndVos()}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",13),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,O,1,0,"mat-spinner",1),r.YNc(8,D,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.GROUPADMIN")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function w(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function Y(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.GROUPOBSERVER_GROUPS")," "))}const y=function(){return["id","recent","vo","name","description"]};function M(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,Y,3,3,"div",2),r._UZ(2,"perun-web-apps-groups-list",14),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("groups",e.groups)("displayedColumns",r.DdM(3,y))}}function J(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getGroupsAndVos("GROUPOBSERVER")}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",13),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,w,1,0,"mat-spinner",1),r.YNc(8,M,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.GROUPOBSERVER")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function Q(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function F(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.VOADMIN_VOS")," "))}function P(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,F,3,3,"div",2),r._UZ(2,"perun-web-apps-vos-list",9),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("displayedColumns",r.DdM(3,U))("vos",e.vos)}}function V(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getAdminVos()}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",15),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,Q,1,0,"mat-spinner",1),r.YNc(8,P,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.VOADMIN")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function G(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function k(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.VOOBSERVER_VOS")," "))}function B(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,k,3,3,"div",2),r._UZ(2,"perun-web-apps-vos-list",9),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("displayedColumns",r.DdM(3,U))("vos",e.vos)}}function j(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){r.CHM(e);const t=r.oxw(2);return t.getVos(t.roles.get("VOOBSERVER").get("Vo"))}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",15),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,G,1,0,"mat-spinner",1),r.YNc(8,B,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.VOOBSERVER")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function H(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function z(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.TRUSTEDFACILITYADMIN_VOS")," "))}function W(e,t){if(1&e&&(r.TgZ(0,"div"),r.TgZ(1,"div"),r.YNc(2,z,3,3,"div",2),r._UZ(3,"perun-web-apps-vos-list",9),r.qZA(),r.qZA()),2&e){const e=r.oxw(3);r.xp6(2),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("displayedColumns",r.DdM(3,U))("vos",e.vos)}}function X(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){r.CHM(e);const t=r.oxw(2);return t.getVos(t.roles.get("TRUSTEDFACILITYADMIN").get("Vo"))}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",15),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,H,1,0,"mat-spinner",1),r.YNc(8,W,4,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.TRUSTEDFACILITYADMIN")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function $(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function K(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.TOPGROUPCREATOR_VOS")," "))}function ee(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,K,3,3,"div",2),r._UZ(2,"perun-web-apps-vos-list",9),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("displayedColumns",r.DdM(3,U))("vos",e.vos)}}function te(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){r.CHM(e);const t=r.oxw(2);return t.getVos(t.roles.get("TOPGROUPCREATOR").get("Vo"))}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",15),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,$,1,0,"mat-spinner",1),r.YNc(8,ee,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.TOPGROUPCREATOR")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function se(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function ie(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.RESOURCEADMIN_RESOURCES")," "))}const ne=function(){return["id","name","vo","facility","description"]};function re(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,ie,3,3,"div",2),r._UZ(2,"perun-web-apps-resources-list",17),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("resources",e.resources)("routingVo",!0)("displayedColumns",r.DdM(4,ne))}}function ae(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getResourcesData("RESOURCEADMIN")}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",16),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,se,1,0,"mat-spinner",1),r.YNc(8,re,3,5,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.RESOURCEADMIN")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function oe(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function le(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.RESOURCEOBSERVER_RESOURCES")," "))}function ce(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,le,3,3,"div",2),r._UZ(2,"perun-web-apps-resources-list",17),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("resources",e.resources)("routingVo",!0)("displayedColumns",r.DdM(4,ne))}}function ue(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getResourcesData("RESOURCEOBSERVER")}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",16),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,oe,1,0,"mat-spinner",1),r.YNc(8,ce,3,5,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.RESOURCEOBSERVER")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function pe(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function de(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.RESOURCESELFSERVICE_RESOURCES")," "))}function he(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,de,3,3,"div",2),r._UZ(2,"perun-web-apps-resources-list",17),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("resources",e.resources)("routingVo",!0)("displayedColumns",r.DdM(4,ne))}}function ge(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getResourcesData("RESOURCESELFSERVICE")}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",16),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,pe,1,0,"mat-spinner",1),r.YNc(8,he,3,5,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.RESOURCESELFSERVICE")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function me(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function fe(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.FACILITYADMIN_FACILITIES")," "))}const Ie=function(){return["id","name","description"]};function Ze(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,fe,3,3,"div",2),r._UZ(2,"perun-web-apps-facilities-list",19),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("displayedColumns",r.DdM(3,Ie))("facilities",e.facilities)}}function Ae(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getAdminFacilities()}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",18),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,me,1,0,"mat-spinner",1),r.YNc(8,Ze,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.FACILITYADMIN")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function Se(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function Ee(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.FACILITYOBSERVER_FACILITIES")," "))}function Te(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,Ee,3,3,"div",2),r._UZ(2,"perun-web-apps-facilities-list",19),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("displayedColumns",r.DdM(3,Ie))("facilities",e.facilities)}}function be(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getFacilities("FACILITYOBSERVER")}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",18),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,Se,1,0,"mat-spinner",1),r.YNc(8,Te,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.FACILITYOBSERVER")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function ve(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function Ne(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.SPONSORSHIP_MEMBERS")," "))}const Re=function(){return["id","fullName","sponsored"]};function Ue(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,Ne,3,3,"div",2),r._UZ(2,"perun-web-apps-members-list",20),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("members",e.members)("displayedColumns",r.DdM(3,Re))}}function xe(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){return r.CHM(e),r.oxw(2).getMembers()}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",7),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,ve,1,0,"mat-spinner",1),r.YNc(8,Ue,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.SPONSORSHIP")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function _e(e,t){1&e&&r._UZ(0,"mat-spinner",3)}function Oe(e,t){1&e&&(r.TgZ(0,"div"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&e&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"ROLES.SPONSOR_VOS")," "))}function Ce(e,t){if(1&e&&(r.TgZ(0,"div"),r.YNc(1,Oe,3,3,"div",2),r._UZ(2,"perun-web-apps-vos-list",9),r.qZA()),2&e){const e=r.oxw(3);r.xp6(1),r.Q6J("ngIf",e.showDescription),r.xp6(1),r.Q6J("displayedColumns",r.DdM(3,U))("vos",e.vos)}}function Le(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){r.CHM(e);const t=r.oxw(2);return t.getVos(t.roles.get("SPONSOR").get("Vo"))}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",7),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.YNc(7,_e,1,0,"mat-spinner",1),r.YNc(8,Ce,3,4,"div",2),r.qZA()}if(2&e){const e=r.oxw(2);r.xp6(5),r.Oqu(r.lcZ(6,3,"ROLES.SPONSOR")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading)}}function De(e,t){1&e&&(r.TgZ(0,"mat-expansion-panel"),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",7),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&e&&(r.xp6(5),r.Oqu(r.lcZ(6,1,"ROLES.PERUN_ADMIN")))}function qe(e,t){1&e&&(r.TgZ(0,"mat-expansion-panel"),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",7),r.TgZ(4,"p",8),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&e&&(r.xp6(5),r.Oqu(r.lcZ(6,1,"ROLES.PERUN_OBSERVER")))}function we(e,t){if(1&e&&(r.TgZ(0,"p",22),r._uU(1),r.qZA()),2&e){const e=t.$implicit;r.xp6(1),r.AsE("",e[0]," ids: ",e[1],"")}}function Ye(e,t){if(1&e){const e=r.EpF();r.TgZ(0,"mat-expansion-panel",6),r.NdJ("opened",function(){const t=r.CHM(e).$implicit;return r.oxw(2).getInnerKeys(t)}),r.TgZ(1,"mat-expansion-panel-header"),r.TgZ(2,"mat-panel-title"),r._UZ(3,"mat-icon",7),r.TgZ(4,"p",8),r._uU(5),r.qZA(),r.qZA(),r.qZA(),r.YNc(6,we,2,2,"p",21),r.qZA()}if(2&e){const e=t.$implicit,s=r.oxw(2);r.xp6(5),r.Oqu(e),r.xp6(1),r.Q6J("ngForOf",s.currentIds)}}function ye(e,t){if(1&e&&(r.TgZ(0,"mat-accordion"),r.YNc(1,_,9,5,"mat-expansion-panel",4),r.YNc(2,q,9,5,"mat-expansion-panel",4),r.YNc(3,J,9,5,"mat-expansion-panel",4),r.YNc(4,V,9,5,"mat-expansion-panel",4),r.YNc(5,j,9,5,"mat-expansion-panel",4),r.YNc(6,X,9,5,"mat-expansion-panel",4),r.YNc(7,te,9,5,"mat-expansion-panel",4),r.YNc(8,ae,9,5,"mat-expansion-panel",4),r.YNc(9,ue,9,5,"mat-expansion-panel",4),r.YNc(10,ge,9,5,"mat-expansion-panel",4),r.YNc(11,Ae,9,5,"mat-expansion-panel",4),r.YNc(12,be,9,5,"mat-expansion-panel",4),r.YNc(13,xe,9,5,"mat-expansion-panel",4),r.YNc(14,Le,9,5,"mat-expansion-panel",4),r.YNc(15,De,7,3,"mat-expansion-panel",2),r.YNc(16,qe,7,3,"mat-expansion-panel",2),r.YNc(17,Ye,7,2,"mat-expansion-panel",5),r.qZA()),2&e){const e=r.oxw();r.xp6(1),r.Q6J("ngIf",e.isSelf),r.xp6(1),r.Q6J("ngIf",e.isGroupAdmin),r.xp6(1),r.Q6J("ngIf",e.isGroupObserver),r.xp6(1),r.Q6J("ngIf",e.isVoAdmin),r.xp6(1),r.Q6J("ngIf",e.isVoObserver),r.xp6(1),r.Q6J("ngIf",e.isTrustedFacilityAdmin),r.xp6(1),r.Q6J("ngIf",e.isTopGroupCreator),r.xp6(1),r.Q6J("ngIf",e.isResourceAdmin),r.xp6(1),r.Q6J("ngIf",e.isResourceObserver),r.xp6(1),r.Q6J("ngIf",e.isResourceSelfService),r.xp6(1),r.Q6J("ngIf",e.isFacilityAdmin),r.xp6(1),r.Q6J("ngIf",e.isFacilityObserver),r.xp6(1),r.Q6J("ngIf",e.hasSponsorship),r.xp6(1),r.Q6J("ngIf",e.isSponsor),r.xp6(1),r.Q6J("ngIf",e.isPerunAdmin),r.xp6(1),r.Q6J("ngIf",e.isPerunObserver),r.xp6(1),r.Q6J("ngForOf",e.roleNames)}}let Me=(()=>{class e{constructor(e,t,s,i,n,r,a,o,l){this.authzResolverService=e,this.usersManagerService=t,this.vosManagerService=s,this.facilitiesManagerService=i,this.resourcesManagerService=n,this.membersManagerService=r,this.groupsManagerService=a,this.route=o,this.store=l,this.currentIds=[],this.roles=new Map,this.roleFilter=["SELF","GROUPADMIN","VOADMIN","RESOURCEADMIN","FACILITYADMIN","TOPGROUPCREATOR","SPONSORSHIP","SPONSOR","RESOURCESELFSERVICE","VOOBSERVER","RESOURCEOBSERVER","GROUPOBSERVER","TRUSTEDFACILITYADMIN","FACILITYOBSERVER","PERUNADMIN","PERUNOBSERVER"],this.roleNames=[],this.groups=[],this.vos=[],this.facilities=[],this.users=[],this.resources=[],this.members=[]}ngOnInit(){this.outerLoading=!0,this.route.parent.params.subscribe(e=>{e.userId?(this.userId=e.userId,this.authzResolverService.getUserRoleNames(this.userId).subscribe(e=>{this.roleNames=e.map(e=>e.toUpperCase()),this.authzResolverService.getUserRoles(this.userId).subscribe(e=>{this.prepareRoles(e)})})):(this.showDescription=!0,this.principal=this.store.getPerunPrincipal(),this.userId=this.principal.userId,this.roleNames=Object.keys(this.principal.roles),this.prepareRoles(this.principal.roles))})}prepareRoles(e){this.roleNames.forEach(t=>{const s=new Map;switch(Object.keys(e[t]).forEach(i=>{s.set(i,e[t][i])}),t){case"SELF":this.isSelf=!0;break;case"GROUPADMIN":this.isGroupAdmin=!0;break;case"VOADMIN":this.isVoAdmin=!0;break;case"RESOURCEADMIN":this.isResourceAdmin=!0;break;case"FACILITYADMIN":this.isFacilityAdmin=!0;break;case"TOPGROUPCREATOR":this.isTopGroupCreator=!0;break;case"SPONSORSHIP":this.hasSponsorship=!0;break;case"SPONSOR":this.isSponsor=!0;break;case"RESOURCESELFSERVICE":this.isResourceSelfService=!0;break;case"VOOBSERVER":this.isVoObserver=!0;break;case"RESOURCEOBSERVER":this.isResourceObserver=!0;break;case"GROUPOBSERVER":this.isGroupObserver=!0;break;case"TRUSTEDFACILITYADMIN":this.isTrustedFacilityAdmin=!0;break;case"FACILITYOBSERVER":this.isFacilityObserver=!0;break;case"PERUNADMIN":this.isPerunAdmin=!0;break;case"PERUNOBSERVER":this.isPerunObserver=!0}this.roles.set(t,s)}),this.roleNames=this.roleNames.filter(e=>!this.roleFilter.includes(e)),this.outerLoading=!1}getAdminGroupsAndVos(){this.loading=!0,this.groups=[],this.usersManagerService.getGroupsWhereUserIsAdmin(this.userId).subscribe(e=>{this.groups=e;const t=[...new Set(this.groups.map(e=>e.voId))];this.getVos(t)})}getVos(e){this.loading=!0,this.vos=[],this.vosManagerService.getVosByIds(e).subscribe(e=>{this.vos=e,this.loading=!1})}getInnerKeys(e){if(this.roles.get(e)){const t=this.roles.get(e).entries(),s=[];let i=t.next().value;for(;i;)s.push(i),i=t.next().value;this.currentIds=s}else this.currentIds=[]}getAdminVos(){this.loading=!0,this.vos=[],this.usersManagerService.getVosWhereUserIsAdmin(this.userId).subscribe(e=>{this.vos=e,this.loading=!1})}getAdminFacilities(){this.loading=!0,this.facilities=[],this.facilitiesManagerService.getFacilitiesWhereUserIsAdmin(this.userId).subscribe(e=>{this.facilities=e.map(e=>({facility:e})),this.loading=!1})}getSelfData(){this.loading=!0,this.vos=[],this.users=[],this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vos=e;const t=this.roles.get("SELF").get("User");t?this.usersManagerService.getUsersByIds(t).subscribe(e=>{this.users=e,this.loading=!1}):this.loading=!1})}getResourcesData(e){this.loading=!0;const t=this.roles.get(e).get("Resource");this.vos=[],this.facilities=[],this.resources=[],this.resourcesManagerService.getRichResourcesByIds(t).subscribe(e=>{this.resources=e,this.vos=this.resources.map(e=>e.vo).filter((e,t,s)=>s.indexOf(e)===t),this.facilities=this.resources.map(e=>({facility:e.facility})).filter((e,t,s)=>s.indexOf(e)===t),this.loading=!1})}getMembers(){this.loading=!0;const e=this.roles.get("SPONSORSHIP").get("Member");this.members=[],this.membersManagerService.getRichMembersByIds(e).subscribe(e=>{this.members=e,this.loading=!1})}getGroupsAndVos(e){this.loading=!0;const t=this.roles.get(e).get("Vo"),s=this.roles.get(e).get("Group");this.vos=[],this.groups=[],this.groupsManagerService.getGroupsByIds(s).subscribe(e=>{this.groups=e,this.vosManagerService.getVosByIds(t).subscribe(e=>{this.vos=e,this.loading=!1})})}getFacilities(e){this.loading=!0,this.facilities=[];const t=this.roles.get(e).get("Facility");this.facilitiesManagerService.getFacilitiesByIds(t).subscribe(e=>{this.facilities=e.map(e=>({facility:e})),this.loading=!1})}}return e.\u0275fac=function(t){return new(t||e)(r.Y36(i.Ct),r.Y36(i.Fv),r.Y36(i.YF),r.Y36(i.IQ),r.Y36(i.xk),r.Y36(i.uq),r.Y36(i.ff),r.Y36(a.gz),r.Y36(n.d6))},e.\u0275cmp=r.Xpm({type:e,selectors:[["app-user-roles"]],hostVars:2,hostBindings:function(e,t){2&e&&r.ekj("router-component",t.true)},decls:5,vars:5,consts:[[1,"page-subtitle","d-flex"],["class","ml-auto mr-auto",4,"ngIf"],[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","vos"],["class","mt-5",4,"ngIf"],[1,"mt-5"],[3,"users","disableRouting","displayedColumns"],["mat-card-avatar","","svgIcon","perun-group-black",1,"mr-2"],[3,"groups","displayedColumns"],["mat-card-avatar","","svgIcon","perun-vo-black",1,"mr-2"],["mat-card-avatar","","svgIcon","perun-resource-black",1,"mr-2"],[3,"resources","routingVo","displayedColumns"],["mat-card-avatar","","svgIcon","perun-facility-black",1,"mr-2"],[3,"displayedColumns","facilities"],[3,"members","displayedColumns"],["class","role-content",4,"ngFor","ngForOf"],[1,"role-content"]],template:function(e,t){1&e&&(r.TgZ(0,"h1",0),r._uU(1),r.ALo(2,"translate"),r.qZA(),r.YNc(3,A,1,0,"mat-spinner",1),r.YNc(4,ye,18,17,"mat-accordion",2)),2&e&&(r.xp6(1),r.Oqu(r.lcZ(2,3,"ROLES.TITLE")),r.xp6(2),r.Q6J("ngIf",t.outerLoading),r.xp6(1),r.Q6J("ngIf",!t.outerLoading))},directives:[o.O5,l.$g,c.pp,o.sg,c.ib,c.yz,c.yK,u.Hw,p.kc,d.Z,h.C,g.W,m.C,f.X,I.O],pipes:[Z.X$],styles:[".role-content[_ngcontent-%COMP%]{overflow:auto;overflow-y:hidden}.info-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),e})()},2043:function(e,t,s){"use strict";s.d(t,{d:function(){return E}});var i=s(60611),n=s(65249),r=s(4230),a=s(84140),o=s(93215),l=s(26019),c=s(68416),u=s(31572),p=s(84608),d=s(57629),h=s(59403),g=s(15980),m=s(61511),f=s(77889),I=s(67806),Z=s(48160);function A(e,t){if(1&e&&(u._UZ(0,"app-users-list",6),u.ALo(1,"translate")),2&e){const e=u.oxw();u.Q6J("tableId",e.tableId)("noUsersFoundLabel",u.lcZ(1,6,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.NO_ASSOCIATED_USERS"))("users",e.associatedUsers)("selection",e.selection)("disableRouting",e.disableRouting)("displayedColumns",e.displayedColumns)}}function S(e,t){1&e&&u._UZ(0,"mat-spinner",7)}let E=(()=>{class e{constructor(e,t,s,n,a){this.dialog=e,this.router=t,this.authResolver=s,this.userManager=n,this.entityStorageService=a,this.loading=!1,this.selection=new r.Ov(!1,[]),this.associatedUsers=[],this.tableId=i.It,this.displayedColumns=["select","id","user","name"]}ngOnInit(){this.loading=!0,this.user=this.entityStorageService.getEntity(),this.userManager.getUsersBySpecificUser(this.user.id).subscribe(e=>{this.associatedUsers=e,this.setAuth(),this.loading=!1})}refreshTable(){this.loading=!0,this.userManager.getUsersBySpecificUser(this.user.id).subscribe(e=>{this.associatedUsers=e,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 e=(0,a.kZ)();e.width="1250px",e.data={userId:this.user.id,theme:"user-theme",isService:!0,target:"USER"},this.dialog.open(o.l,e).afterClosed().subscribe(e=>{e&&this.refreshTable()})}onRemove(){const e=(0,a.kZ)();e.width="650px",e.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(l.B,e).afterClosed().subscribe(e=>{e&&(this.authResolver.isAuthorized("getUsersBySpecificUser_User_policy",[this.user])?this.refreshTable():this.router.navigate(["/myProfile"]))})}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(p.uw),u.Y36(d.F0),u.Y36(c.x4),u.Y36(n.Fv),u.Y36(c.fb))},e.\u0275cmp=u.Xpm({type:e,selectors:[["app-user-settings-associated-users"]],decls:13,vars:12,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"tableId","noUsersFoundLabel","users","selection","disableRouting","displayedColumns",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"tableId","noUsersFoundLabel","users","selection","disableRouting","displayedColumns"],[1,"mr-auto","ml-auto"]],template:function(e,t){1&e&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"perun-web-apps-refresh-button",1),u.NdJ("refresh",function(){return t.refreshTable()}),u.qZA(),u.TgZ(5,"button",2),u.NdJ("click",function(){return t.onAdd()}),u._uU(6),u.ALo(7,"translate"),u.qZA(),u.TgZ(8,"button",3),u.NdJ("click",function(){return t.onRemove()}),u._uU(9),u.ALo(10,"translate"),u.qZA(),u.YNc(11,A,2,8,"app-users-list",4),u.qZA(),u.YNc(12,S,1,0,"mat-spinner",5)),2&e&&(u.xp6(2),u.Oqu(u.lcZ(3,6,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.TITLE")),u.xp6(4),u.hij(" ",u.lcZ(7,8,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.ADD")," "),u.xp6(2),u.Q6J("disabled",0===t.selection.selected.length),u.xp6(1),u.hij(" ",u.lcZ(10,10,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.REMOVE")," "),u.xp6(2),u.Q6J("ngIf",!t.loading),u.xp6(1),u.Q6J("ngIf",t.loading))},directives:[h.t,g.lW,m.O5,f.C,I.$g],pipes:[Z.X$],styles:[""]}),e})()},52384:function(e,t,s){"use strict";s.d(t,{R:function(){return b}});var i=s(4230),n=s(65249),r=s(60611),a=s(84140),o=s(93215),l=s(26019),c=s(68416),u=s(31572),p=s(57629),d=s(84608),h=s(59403),g=s(61511),m=s(15980),f=s(67806),I=s(77889),Z=s(48160);function A(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"button",6),u.NdJ("click",function(){return u.CHM(e),u.oxw().onAdd()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.CREATE"),"\n"))}function S(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"button",7),u.NdJ("click",function(){return u.CHM(e),u.oxw().onRemove()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}if(2&e){const e=u.oxw();u.Q6J("disabled",0===e.selection.selected.length),u.xp6(1),u.hij(" ",u.lcZ(2,2,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.DELETE"),"\n")}}function E(e,t){1&e&&u._UZ(0,"mat-spinner",8)}function T(e,t){if(1&e&&(u._UZ(0,"app-users-list",9),u.ALo(1,"translate")),2&e){const e=u.oxw();u.Q6J("tableId",e.tableId)("noUsersFoundLabel",u.lcZ(1,6,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.NO_IDENTITIES"))("users",e.identities)("selection",e.selection)("routeToAdmin",e.routeToAdminSection)("displayedColumns",e.displayedColumns)}}let b=(()=>{class e{constructor(e,t,s,n,a,o){this.route=e,this.dialog=t,this.router=s,this.userManager=n,this.authResolver=a,this.store=o,this.loading=!1,this.selection=new i.Ov(!1,[]),this.identities=[],this.tableId=r.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(e=>{this.userId=e.userId,void 0===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(e=>{this.identities=e,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 e=(0,a.kZ)();e.width="1250px",e.data={userId:this.userId,theme:"user-theme",isService:!1,target:this.targetTitle},this.dialog.open(o.l,e).afterClosed().subscribe(e=>{e&&this.refreshTable()})}onRemove(){const e=(0,a.kZ)();e.width="650px",e.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(l.B,e).afterClosed().subscribe(e=>{e&&this.refreshTable()})}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(p.gz),u.Y36(d.uw),u.Y36(p.F0),u.Y36(n.Fv),u.Y36(c.x4),u.Y36(c.d6))},e.\u0275cmp=u.Xpm({type:e,selectors:[["app-user-settings-service-identities"]],decls:8,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","class","mr-2 action-button","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","class","mr-2","color","warn",3,"disabled","click",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"tableId","noUsersFoundLabel","users","selection","routeToAdmin","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,"mr-auto","ml-auto"],[3,"tableId","noUsersFoundLabel","users","selection","routeToAdmin","displayedColumns"]],template:function(e,t){1&e&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.TgZ(3,"perun-web-apps-refresh-button",1),u.NdJ("refresh",function(){return t.refreshTable()}),u.qZA(),u.YNc(4,A,3,3,"button",2),u.YNc(5,S,3,4,"button",3),u.YNc(6,E,1,0,"mat-spinner",4),u.YNc(7,T,2,8,"app-users-list",5)),2&e&&(u.xp6(1),u.Oqu(u.lcZ(2,5,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.TITLE")),u.xp6(3),u.Q6J("ngIf",t.addIdentity),u.xp6(1),u.Q6J("ngIf",t.removeIdentity),u.xp6(1),u.Q6J("ngIf",t.loading),u.xp6(1),u.Q6J("ngIf",!t.loading))},directives:[h.t,g.O5,m.lW,f.$g,I.C],pipes:[Z.X$],styles:[""]}),e})()},65515:function(e,t,s){"use strict";s.r(t),s.d(t,{UsersModule:function(){return Ue}});var i=s(61511),n=s(57629),r=s(15879),a=s(31612),o=s(31572),l=s(21575);let c=(()=>{class e{constructor(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-user-settings"]],hostVars:2,hostBindings:function(e,t){2&e&&o.ekj("router-component",t.true)},decls:1,vars:0,template:function(e,t){1&e&&o._UZ(0,"app-animated-router-outlet")},directives:[l.A],styles:[""]}),e})();var u=s(65249),p=s(67806),d=s(8557);function h(e,t){1&e&&o._UZ(0,"mat-spinner",2)}function g(e,t){if(1&e&&(o.TgZ(0,"div"),o._UZ(1,"perun-web-apps-menu-buttons-field",3),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("items",e.navItems)("size","small")}}let m=(()=>{class e{constructor(e,t){this.route=e,this.userManager=t,this.navItems=[],this.loading=!1}ngOnInit(){window.location.pathname.startsWith("/admin")?(this.loading=!0,this.route.parent.parent.params.subscribe(e=>{this.userManager.getUserById(e.userId).subscribe(e=>{this.isServiceUser=e.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-settings2",url:"guiConfig",label:"MENU_ITEMS.USER.GUI_CONFIG",style:"user-btn"})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(n.gz),o.Y36(u.Fv))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-user-settings-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&o.ekj("router-component",t.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,t){1&e&&(o.YNc(0,h,1,0,"mat-spinner",0),o.YNc(1,g,2,2,"div",1)),2&e&&(o.Q6J("ngIf",t.loading),o.xp6(1),o.Q6J("ngIf",!t.loading))},directives:[i.O5,p.$g,d.L],styles:[""]}),e})();var f=s(95690),I=s(41939),Z=s(84140),A=s(13857),S=s(66283),E=s(4786),T=s(71522),b=s(48160);function v(e,t){if(1&e&&(o.TgZ(0,"mat-option",5),o._uU(1),o.qZA()),2&e){const e=t.$implicit;o.Q6J("value",e),o.xp6(1),o.hij(" ",e," ")}}let N=(()=>{class e{constructor(e){this.guiConfigService=e,this.tablePageSizeOptions=Z.f7}ngOnInit(){this.preferredTablePageSize=this.guiConfigService.getNumber(A.Rc)}updatePreferredTablePageSize(){this.guiConfigService.setNumber(A.Rc,this.preferredTablePageSize)}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(A.Ng))},e.\u0275cmp=o.Xpm({type:e,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(e,t){1&e&&(o.TgZ(0,"h1",0),o._uU(1),o.ALo(2,"translate"),o.qZA(),o.TgZ(3,"div",1),o.TgZ(4,"mat-form-field",2),o.TgZ(5,"mat-label"),o._uU(6),o.ALo(7,"translate"),o.qZA(),o.TgZ(8,"mat-select",3),o.NdJ("valueChange",function(e){return t.preferredTablePageSize=e})("valueChange",function(){return t.updatePreferredTablePageSize()}),o.YNc(9,v,2,2,"mat-option",4),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.xp6(1),o.Oqu(o.lcZ(2,4,"USER_DETAIL.SETTINGS.GUI_CONFIG.TITLE")),o.xp6(5),o.Oqu(o.lcZ(7,6,"USER_DETAIL.SETTINGS.GUI_CONFIG.PREF_TABLE_PAGE_SIZE")),o.xp6(2),o.Q6J("value",t.preferredTablePageSize),o.xp6(1),o.Q6J("ngForOf",t.tablePageSizeOptions))},directives:[S.KE,S.hX,E.gD,i.sg,T.ey],pipes:[b.X$],styles:[""]}),e})();var R=s(71956),U=s(68416),x=s(48958),_=s(66297),O=s(43691),C=s(36922),L=s(22196);const D=function(){return{color:"black"}},q=function(){return["/myProfile"]};function w(e,t){if(1&e&&(o.TgZ(0,"div",1),o._UZ(1,"perun-web-apps-back-button"),o.TgZ(2,"div",2),o._UZ(3,"mat-icon",3),o.ALo(4,"translate"),o.TgZ(5,"div",4),o.TgZ(6,"div",5),o.TgZ(7,"a",6),o._uU(8),o.ALo(9,"userFullName"),o.qZA(),o.TgZ(10,"span",7),o._uU(11),o.qZA(),o.qZA(),o.TgZ(12,"span",8),o._uU(13),o.ALo(14,"translate"),o.ALo(15,"translate"),o.qZA(),o.qZA(),o.qZA(),o._UZ(16,"app-animated-router-outlet"),o.qZA()),2&e){const e=o.oxw();o.xp6(3),o.s9C("matTooltip",o.lcZ(4,8,"MENU_ITEMS.USER.ENTITY")),o.Q6J("ngStyle",o.DdM(16,D)),o.xp6(4),o.Q6J("routerLink",o.DdM(17,q)),o.xp6(1),o.hij(" ",o.lcZ(9,10,e.user)," "),o.xp6(3),o.hij(" \xa0#",e.user.id," "),o.xp6(2),o.lnq(" ",o.lcZ(14,12,"MENU_ITEMS.USER.ENTITY"),", ",o.lcZ(15,14,"MENU_ITEMS.USER.USER_TYPE"),": ",e.getUserType()," ")}}let Y=(()=>{class e{constructor(e,t,s){this.sideMenuService=e,this.store=t,this.router=s}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 e.\u0275fac=function(t){return new(t||e)(o.Y36(x.D),o.Y36(U.d6),o.Y36(n.F0))},e.\u0275cmp=o.Xpm({type:e,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(e,t){1&e&&o.YNc(0,w,17,18,"div",0),2&e&&o.Q6J("ngIf",void 0!==t.user)},directives:[i.O5,_.W,O.Hw,C.gM,i.PC,n.yS,l.A],pipes:[b.X$,L.d],styles:[""]}),e})();var y=s(7233),M=s(52384),J=s(75585),Q=s(2898),F=s(84608),P=s(15980);function V(e,t){1&e&&o._UZ(0,"mat-spinner",11)}function G(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"button",12),o.NdJ("click",function(){return o.CHM(e),o.oxw(2).editUser()}),o.TgZ(1,"mat-icon"),o._uU(2,"edit"),o.qZA(),o.qZA()}}const k=function(){return{color:"black"}},B=function(e){return["/myProfile/service-identities",e]};function j(e,t){if(1&e&&(o.TgZ(0,"div",1),o._UZ(1,"perun-web-apps-back-button"),o.YNc(2,V,1,0,"mat-spinner",2),o.TgZ(3,"div",3),o._UZ(4,"mat-icon",4),o.ALo(5,"translate"),o.TgZ(6,"div",5),o.TgZ(7,"div",6),o.TgZ(8,"a",7),o._uU(9),o.ALo(10,"userFullName"),o.qZA(),o.TgZ(11,"span",8),o._uU(12),o.qZA(),o.YNc(13,G,3,0,"button",9),o.qZA(),o.TgZ(14,"div"),o._uU(15),o.ALo(16,"translate"),o.qZA(),o.TgZ(17,"span",10),o._uU(18),o.ALo(19,"translate"),o.ALo(20,"translate"),o.qZA(),o.qZA(),o.qZA(),o._UZ(21,"app-animated-router-outlet"),o.qZA()),2&e){const e=o.oxw();o.xp6(2),o.Q6J("ngIf",e.loading),o.xp6(2),o.s9C("matTooltip",o.lcZ(5,12,"MENU_ITEMS.USER.ENTITY")),o.Q6J("ngStyle",o.DdM(22,k)),o.xp6(4),o.Q6J("routerLink",o.VKq(23,B,e.user.id)),o.xp6(1),o.hij(" ",o.lcZ(10,14,e.user)," "),o.xp6(3),o.hij(" \xa0#",e.user.id," "),o.xp6(1),o.Q6J("ngIf",e.authResolver.isPerunAdmin()),o.xp6(2),o.AsE(" ",o.lcZ(16,16,"ADMIN_USER.UUID"),": ",e.user.uuid," "),o.xp6(3),o.lnq(" ",o.lcZ(19,18,"MENU_ITEMS.USER.ENTITY"),", ",o.lcZ(20,20,"MENU_ITEMS.USER.USER_TYPE"),": ",e.getUserType()," ")}}let H=(()=>{class e{constructor(e,t,s,i,n,r,a){this.sideMenuService=e,this.usersService=t,this.sideMenuItemService=s,this.route=i,this.dialog=n,this.authResolver=r,this.entityStorageService=a,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{const t=e.userId;this.entityStorageService.setEntity({id:Number(t),beanName:"User"}),this.usersService.getUserById(t).subscribe(e=>{this.user=e;const t=this.sideMenuItemService.parseServiceIdentity(e);this.sideMenuService.setUserItems([t]),this.loading=!1},()=>this.loading=!1)})}getUserType(){return this.user.serviceUser?"Service":"Person"}editUser(){const e=(0,Z.kZ)();e.width="450px",e.data={theme:"admin-theme",user:this.user},this.dialog.open(Q.x,e).afterClosed().subscribe(e=>{e&&this.usersService.getUserById(this.user.id).subscribe(e=>{this.user=e})})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(x.D),o.Y36(u.Fv),o.Y36(J.V),o.Y36(n.gz),o.Y36(F.uw),o.Y36(U.x4),o.Y36(U.fb))},e.\u0275cmp=o.Xpm({type:e,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(e,t){1&e&&o.YNc(0,j,22,25,"div",0),2&e&&o.Q6J("ngIf",void 0!==t.user)},directives:[i.O5,_.W,O.Hw,C.gM,i.PC,n.yS,l.A,p.$g,P.lW],pipes:[b.X$,L.d],styles:[""]}),e})(),z=(()=>{class e{constructor(){this.navItems=[]}ngOnInit(){this.initNavItems()}initNavItems(){this.navItems=[{cssIcon:"perun-user",url:"associated-users",label:"MENU_ITEMS.USER.ASSOCIATED_USERS",style:"user-btn"}]}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-service-identity-overview"]],decls:1,vars:2,consts:[[3,"items","size"]],template:function(e,t){1&e&&o._UZ(0,"perun-web-apps-menu-buttons-field",0),2&e&&o.Q6J("items",t.navItems)("size","small")},directives:[d.L],styles:[""]}),e})();var W=s(2043);const X=[{path:"",component:Y,children:[{path:"",component:R.Z,data:{animation:"UserOverviewPage"}},{path:"attributes",component:f.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:r.j,data:{animation:"UserOrganizationsPage",showPrincipal:!0}},{path:"groups",component:a.u,data:{animation:"UserGroupsPage",showPrincipal:!0}},{path:"roles",component:y.t,data:{animation:"UserRolesPage"}},{path:"service-identities",component:M.R,data:{animation:"UserServiceIdentities"}},{path:"settings",component:c,children:[{path:"",component:m,data:{animation:"UserSettingsOverviewPage"}},{path:"passwordReset",component:I.Nj,data:{animation:"PasswordResetPage"}},{path:"guiConfig",component:N,data:{animation:"UserAppConfigurationPage"}}]}]},{path:"service-identities/:userId",component:H,children:[{path:"",component:z},{path:"associated-users",component:W.d}]}];let $=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=o.oAB({type:e}),e.\u0275inj=o.cJS({imports:[[n.Bz.forChild(X)],n.Bz]}),e})();var K=s(40084),ee=s(80340),te=s(16073),se=s(25122),ie=s(45001),ne=s(58623),re=s(67033),ae=s(55109),oe=s(91010),le=s(29236),ce=s(71403),ue=s(45994),pe=s(27521),de=s(15812),he=s(54810),ge=s(27679),me=s(73005),fe=s(27439),Ie=s(70663),Ze=s(88975),Ae=s(10033),Se=s(8055),Ee=s(4253),Te=s(22727),be=s(41050),ve=s(7423),Ne=s(22280),Re=s(28780);let Ue=(()=>{class e{constructor(e){this.translate=e,e.addLangs(["en","cs"])}}return e.\u0275fac=function(t){return new(t||e)(o.LFG(b.sK))},e.\u0275mod=o.oAB({type:e}),e.\u0275inj=o.cJS({imports:[[i.ez,$,K.Bb,ee.c,S.lN,te.UX,te.u5,O.Ps,se.SJ,ie.To,b.aw.forChild({}),P.ot,ne.JX,re.p0,ae.Nh,oe.dp,P.ot,le.p9,F.Is,E.LD,ce.ZX,p.Cq,ue.Cv,C.AV,pe.rP,de.FA,T.XK,he.Fk,ge.t,T.si,me.TU,fe.QW,Ie.T5,Ze._t,fe.QW,Ae.Hi,Se.Tx,Ee.Cl,Te.r,be.g,I.ez,ve.r,Ne.d4,Re.m]]}),e})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/515-es5.07e9c4eebbb53157acfd.js b/dist/apps/admin-gui/515-es5.07e9c4eebbb53157acfd.js new file mode 100644 index 000000000..1f610a85f --- /dev/null +++ b/dist/apps/admin-gui/515-es5.07e9c4eebbb53157acfd.js @@ -0,0 +1 @@ +!function(){function e(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||t(e)||function(){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 t(e,t){if(e){if("string"==typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n0)}}function b(e,t){1&e&&(d.TgZ(0,"app-alert",15),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&e&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"DIALOGS.CONNECT_IDENTITY.SEARCH_HINT")," "))}function N(e,t){1&e&&(d.TgZ(0,"app-alert",16),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&e&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"DIALOGS.CONNECT_IDENTITY.NO_IDENTITIES")," "))}function R(e,t){1&e&&d._UZ(0,"mat-spinner",17)}var U=function(){var e=function(){function e(t,n,s,r,a,o){i(this,e),this.dialogRef=t,this.data=n,this.userManager=s,this.storeService=r,this.notificator=a,this.translate=o,this.loading=!1,this.selection=new l.Ov(!1,[]),this.firstSearchDone=!1,this.displayedColumns=["select","id","user","name","email","logins","organization"],this.tableId=u.Iz}return r(e,[{key:"ngOnInit",value:function(){this.target=this.data.target,this.theme=this.data.theme,this.userId=this.data.userId,this.isService=this.data.isService,this.searchCtrl=new p.NI("",[p.kI.required,p.kI.pattern(".*[\\S]+.*")])}},{key:"onAdd",value:function(){var e,t,n=this;this.loading=!0,this.isService?(e=this.selection.selected[0].id,t=this.userId):(e=this.userId,t=this.selection.selected[0].id),this.userManager.addSpecificUserOwner(e,t).subscribe(function(){n.notificator.showSuccess(n.translate.instant("DIALOGS.CONNECT_IDENTITY.SUCCESS")),n.dialogRef.close(!0)})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSearchByString",value:function(){var e=this;if(this.searchCtrl.invalid)this.searchCtrl.markAllAsTouched();else{this.loading=!0,this.firstSearchDone=!0;var t=[c.r.USER_DEF_ORGANIZATION,c.r.USER_DEF_PREFERRED_MAIL];t=t.concat(this.storeService.getLoginAttributeNames()),this.userManager.findRichUsersWithAttributes(this.searchCtrl.value,t).subscribe(function(t){e.identities=e.filterIdentities(t),e.loading=!1},function(){e.loading=!1})}}},{key:"onKeyInput",value:function(e){"Enter"===e.key&&this.onSearchByString()}},{key:"filterIdentities",value:function(e){return e.filter(this.isService?function(e){return!e.serviceUser}:function(e){return e.serviceUser})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(d.Y36(s.so),d.Y36(s.WI),d.Y36(a.Fv),d.Y36(o.d6),d.Y36(o.V6),d.Y36(f.sK))},e.\u0275cmp=d.Xpm({type:e,selectors:[["app-connect-identity-dialog"]],decls:26,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"],["mat-flat-button","","color","primary",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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"tableId","displayedColumns","users","disableRouting","selection",4,"ngIf"],[3,"tableId","displayedColumns","users","disableRouting","selection"],["alert_type","info"],["alert_type","warn"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(d.TgZ(0,"div",0),d.NdJ("keyup",function(e){return t.onKeyInput(e)}),d.TgZ(1,"h1",1),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"div",2),d.TgZ(5,"mat-form-field",3),d.TgZ(6,"label"),d._UZ(7,"input",4),d.ALo(8,"translate"),d.qZA(),d.TgZ(9,"mat-error"),d._uU(10),d.ALo(11,"translate"),d.qZA(),d.qZA(),d.TgZ(12,"button",5),d.NdJ("click",function(){return t.onSearchByString()}),d.TgZ(13,"mat-icon"),d._uU(14,"search"),d.qZA(),d.qZA(),d.YNc(15,T,2,1,"div",6),d.YNc(16,b,3,3,"app-alert",7),d.YNc(17,N,3,3,"app-alert",8),d.qZA(),d.YNc(18,R,1,0,"mat-spinner",9),d.TgZ(19,"div",10),d.TgZ(20,"button",11),d.NdJ("click",function(){return t.onCancel()}),d._uU(21),d.ALo(22,"translate"),d.qZA(),d.TgZ(23,"button",12),d.NdJ("click",function(){return t.onAdd()}),d._uU(24),d.ALo(25,"translate"),d.qZA(),d.qZA(),d.qZA()),2&e&&(d.Tol(t.theme),d.xp6(2),d.Oqu(d.lcZ(3,15,"DIALOGS.CONNECT_IDENTITY.TITLE_"+t.target)),d.xp6(5),d.s9C("placeholder",d.lcZ(8,17,"DIALOGS.CONNECT_IDENTITY.SEARCH")),d.Q6J("formControl",t.searchCtrl),d.xp6(3),d.hij(" ",d.lcZ(11,19,"DIALOGS.CONNECT_IDENTITY.EMPTY_SEARCH_MESSAGE")," "),d.xp6(2),d.Q6J("disabled",t.loading),d.xp6(3),d.Q6J("ngIf",!t.loading),d.xp6(1),d.Q6J("ngIf",!t.firstSearchDone),d.xp6(1),d.Q6J("ngIf",!t.loading&&t.firstSearchDone&&0===t.identities.length),d.xp6(1),d.Q6J("ngIf",t.loading),d.xp6(3),d.hij(" ",d.lcZ(22,21,"DIALOGS.CONNECT_IDENTITY.CANCEL")," "),d.xp6(2),d.Q6J("disabled",0===t.selection.selected.length),d.xp6(1),d.hij(" ",d.lcZ(25,23,"DIALOGS.CONNECT_IDENTITY.CONNECT")," "))},directives:[s.uh,s.xY,g.KE,m.Nt,p.Fj,p.JJ,p.oH,g.TO,h.lW,I.Hw,v.O5,s.H8,Z.C,A.w,S.$g],pipes:[f.X$],styles:[".search-field[_ngcontent-%COMP%]{width:300px}.search-btn[_ngcontent-%COMP%]{width:50px}"]}),e}()},26019:function(e,t,n){"use strict";n.d(t,{B:function(){return S}});var s=n(65249),a=n(84608),o=n(68416),u=n(67033),l=n(31572),c=n(48160),p=n(61511),d=n(15980),f=n(39571),g=n(22196);function m(e,t){1&e&&l._UZ(0,"th",13)}function h(e,t){if(1&e&&(l.TgZ(0,"td",14),l._uU(1),l.ALo(2,"userFullName"),l.qZA()),2&e){var n=t.$implicit;l.xp6(1),l.Oqu(l.lcZ(2,1,n))}}function I(e,t){1&e&&l._UZ(0,"tr",15)}function v(e,t){1&e&&l._UZ(0,"tr",16)}function Z(e,t){1&e&&(l.TgZ(0,"app-alert",17),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&e&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"DIALOGS.DISCONNECT_IDENTITY.WARNING_DISCONNECT_YOURSELF")," "))}function A(e,t){1&e&&(l.TgZ(0,"app-alert",17),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&e&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"DIALOGS.DISCONNECT_IDENTITY.WARNING_LAST_USER")," "))}var S=function(){var e=function(){function e(t,n,s,r,a,o){i(this,e),this.dialogRef=t,this.data=n,this.userManager=s,this.notificator=r,this.translate=a,this.store=o,this.displayedColumns=["name"]}return r(e,[{key:"ngOnInit",value:function(){var e,t=this;this.targetTitle=this.data.targetTitle,this.targetDescription=this.data.targetDescription,this.theme=this.data.theme,this.userId=Number(this.data.userId),this.dataSource=new u.by([this.data.specificUser]),this.isService=this.data.isService,this.isService?(e=this.userId,this.disconnectingSelf=this.dataSource.data[0].id===this.store.getPerunPrincipal().userId):(e=this.dataSource.data[0].id,this.disconnectingSelf=this.userId===this.store.getPerunPrincipal().userId),this.userManager.getUsersBySpecificUser(e).subscribe(function(e){t.disconnectingLastOwner=1===e.length})}},{key:"onConfirm",value:function(){var e,t,n=this;this.isService?(e=this.dataSource.data[0].id,t=this.userId):(e=this.userId,t=this.dataSource.data[0].id),this.userManager.removeSpecificUserOwner(e,t).subscribe(function(){n.notificator.showSuccess(n.translate.instant("DIALOGS.DISCONNECT_IDENTITY.SUCCESS")),n.dialogRef.close(!0)})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(l.Y36(a.so),l.Y36(a.WI),l.Y36(s.Fv),l.Y36(o.V6),l.Y36(c.sK),l.Y36(o.d6))},e.\u0275cmp=l.Xpm({type:e,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"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["alert_type","warn"]],template:function(e,t){1&e&&(l.TgZ(0,"h1",0),l._uU(1),l.ALo(2,"translate"),l.qZA(),l.TgZ(3,"div"),l.TgZ(4,"div",1),l.TgZ(5,"p"),l._uU(6),l.ALo(7,"translate"),l.qZA(),l.TgZ(8,"div",2),l._uU(9),l.ALo(10,"translate"),l.qZA(),l.TgZ(11,"table",3),l.ynx(12,4),l.YNc(13,m,1,0,"th",5),l.YNc(14,h,3,3,"td",6),l.BQk(),l.YNc(15,I,1,0,"tr",7),l.YNc(16,v,1,0,"tr",8),l.qZA(),l.YNc(17,Z,3,3,"app-alert",9),l.YNc(18,A,3,3,"app-alert",9),l.qZA(),l.TgZ(19,"div",10),l.TgZ(20,"button",11),l.NdJ("click",function(){return t.onCancel()}),l._uU(21),l.ALo(22,"translate"),l.qZA(),l.TgZ(23,"button",12),l.NdJ("click",function(){return t.onConfirm()}),l._uU(24),l.ALo(25,"translate"),l.qZA(),l.qZA(),l.qZA()),2&e&&(l.xp6(1),l.Oqu(l.lcZ(2,13,"DIALOGS.DISCONNECT_IDENTITY.TITLE_"+t.targetTitle)),l.xp6(2),l.Tol(t.theme),l.xp6(3),l.Oqu(l.lcZ(7,15,"DIALOGS.DISCONNECT_IDENTITY.DESCRIPTION_"+t.targetDescription)),l.xp6(3),l.hij(" ",l.lcZ(10,17,"DIALOGS.DISCONNECT_IDENTITY.ASK")," "),l.xp6(2),l.Q6J("dataSource",t.dataSource),l.xp6(4),l.Q6J("matHeaderRowDef",t.displayedColumns),l.xp6(1),l.Q6J("matRowDefColumns",t.displayedColumns),l.xp6(1),l.Q6J("ngIf",t.disconnectingSelf),l.xp6(1),l.Q6J("ngIf",t.disconnectingLastOwner),l.xp6(3),l.hij(" ",l.lcZ(22,19,"DIALOGS.DISCONNECT_IDENTITY.CANCEL")," "),l.xp6(3),l.hij(" ",l.lcZ(25,21,"DIALOGS.DISCONNECT_IDENTITY.REMOVE")," "))},directives:[a.uh,a.xY,u.BZ,u.w1,u.fO,u.Dz,u.as,u.nj,p.O5,a.H8,d.lW,u.ge,u.ev,u.XQ,u.Gk,f.w],pipes:[c.X$,g.d],styles:[""]}),e}()},2898:function(e,t,n){"use strict";n.d(t,{x:function(){return A}});var s=n(65249),a=n(84608),o=n(68416),u=n(16073),l=n(31572),c=n(48160),p=n(66283),d=n(80340),f=n(61511),g=n(15980);function m(e,t){1&e&&(l.TgZ(0,"mat-error"),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&e&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function h(e,t){1&e&&(l.TgZ(0,"mat-error"),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&e&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function I(e,t){1&e&&(l.TgZ(0,"mat-error"),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&e&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_FIRST_NAME")))}function v(e,t){1&e&&(l.TgZ(0,"mat-error"),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&e&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function Z(e,t){1&e&&(l.TgZ(0,"mat-error"),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&e&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LAST_NAME")))}var A=function(){var e=function(){function e(t,n,s,r,a){i(this,e),this.dialogRef=t,this.data=n,this.userService=s,this.notificator=r,this.translateService=a,this.loading=!1}return r(e,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.titleBefore=new u.NI(this.data.user.titleBefore,[u.kI.pattern(".*[\\S]+.*"),u.kI.maxLength(129)]),this.titleAfter=new u.NI(this.data.user.titleAfter,[u.kI.pattern(".*[\\S]+.*"),u.kI.maxLength(129)]),this.firstName=new u.NI(this.data.user.firstName,[u.kI.required,u.kI.pattern(".*[\\S]+.*"),u.kI.maxLength(129)]),this.middleName=new u.NI(this.data.user.middleName,[u.kI.pattern(".*[\\S]+.*"),u.kI.maxLength(129)]),this.lastName=new u.NI(this.data.user.lastName,[u.kI.required,u.kI.pattern(".*[\\S]+.*"),u.kI.maxLength(129)])}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSave",value:function(){var e=this;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(function(){e.translateService.get("DIALOGS.EDIT_USER.SUCCESS").subscribe(function(t){e.notificator.showSuccess(t),e.dialogRef.close(!0)})},function(){return e.loading=!1})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(l.Y36(a.so),l.Y36(a.WI),l.Y36(s.Fv),l.Y36(o.V6),l.Y36(c.sK))},e.\u0275cmp=l.Xpm({type:e,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","","required","",3,"formControl","placeholder"],["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&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"div",1),l.TgZ(5,"mat-form-field"),l._UZ(6,"input",2),l.ALo(7,"translate"),l.YNc(8,m,3,3,"mat-error",3),l.qZA(),l.TgZ(9,"mat-form-field"),l._UZ(10,"input",2),l.ALo(11,"translate"),l.YNc(12,h,3,3,"mat-error",3),l.qZA(),l.TgZ(13,"mat-form-field"),l._UZ(14,"input",4),l.ALo(15,"translate"),l.YNc(16,I,3,3,"mat-error",3),l.qZA(),l.TgZ(17,"mat-form-field"),l._UZ(18,"input",2),l.ALo(19,"translate"),l.YNc(20,v,3,3,"mat-error",3),l.qZA(),l.TgZ(21,"mat-form-field"),l._UZ(22,"input",4),l.ALo(23,"translate"),l.YNc(24,Z,3,3,"mat-error",3),l.qZA(),l.qZA(),l.TgZ(25,"div",5),l.TgZ(26,"button",6),l.NdJ("click",function(){return t.onCancel()}),l._uU(27),l.ALo(28,"translate"),l.qZA(),l.TgZ(29,"button",7),l.NdJ("click",function(){return t.onSave()}),l._uU(30),l.ALo(31,"translate"),l.qZA(),l.qZA(),l.qZA()),2&e&&(l.Tol(t.theme),l.xp6(2),l.Oqu(l.lcZ(3,22,"DIALOGS.EDIT_USER.DIALOG_TITLE")),l.xp6(4),l.s9C("placeholder",l.lcZ(7,24,"DIALOGS.EDIT_USER.TITLE_BEFORE")),l.Q6J("formControl",t.titleBefore),l.xp6(2),l.Q6J("ngIf",t.titleBefore.invalid),l.xp6(2),l.s9C("placeholder",l.lcZ(11,26,"DIALOGS.EDIT_USER.TITLE_AFTER")),l.Q6J("formControl",t.titleAfter),l.xp6(2),l.Q6J("ngIf",t.titleAfter.invalid),l.xp6(2),l.s9C("placeholder",l.lcZ(15,28,"DIALOGS.EDIT_USER.FIRST_NAME")),l.Q6J("formControl",t.firstName),l.xp6(2),l.Q6J("ngIf",t.firstName.invalid),l.xp6(2),l.s9C("placeholder",l.lcZ(19,30,"DIALOGS.EDIT_USER.MIDDLE_NAME")),l.Q6J("formControl",t.middleName),l.xp6(2),l.Q6J("ngIf",t.middleName.invalid),l.xp6(2),l.s9C("placeholder",l.lcZ(23,32,"DIALOGS.EDIT_USER.LAST_NAME")),l.Q6J("formControl",t.lastName),l.xp6(2),l.Q6J("ngIf",t.lastName.invalid),l.xp6(3),l.hij(" ",l.lcZ(28,34,"DIALOGS.EDIT_USER.CANCEL")," "),l.xp6(2),l.Q6J("disabled",t.loading||t.firstName.invalid||t.lastName.invalid||t.titleBefore.invalid||t.titleAfter.invalid||t.middleName.invalid),l.xp6(1),l.hij(" ",l.lcZ(31,36,"DIALOGS.EDIT_USER.SAVE")," "))},directives:[a.xY,p.KE,d.Nt,u.Fj,u.JJ,u.oH,f.O5,u.Q7,a.H8,g.lW,p.TO],pipes:[c.X$],styles:[""]}),e}()},95690:function(e,t,n){"use strict";n.d(t,{u:function(){return v}});var s=n(68416),a=n(31572),o=n(57629),u=n(55109),l=n(61511),c=n(541),p=n(3417),d=n(48160);function f(e,t){1&e&&(a._uU(0),a.ALo(1,"translate")),2&e&&a.hij(" ",a.lcZ(1,1,"ADMIN_USER.ENTITY")," ")}function g(e,t){if(1&e&&a._UZ(0,"app-one-entity-attribute-page",5),2&e){var n=a.oxw();a.Q6J("entityId",n.userId)("entity","user")}}function m(e,t){1&e&&(a._uU(0),a.ALo(1,"translate"),a.ALo(2,"translate")),2&e&&a.AsE(" ",a.lcZ(1,2,"ADMIN_USER.ENTITY")," - ",a.lcZ(2,4,"FACILITY_DETAIL.ENTITY")," ")}function h(e,t){if(1&e&&a._UZ(0,"app-two-entity-attribute-page",6),2&e){var n=a.oxw(2);a.Q6J("firstEntity","user")("firstEntityId",n.userId)("secondEntity","facility")}}function I(e,t){1&e&&(a.TgZ(0,"mat-tab"),a.YNc(1,m,3,6,"ng-template",2),a.YNc(2,h,1,3,"ng-template",3),a.qZA())}var v=function(){var e=function(){function e(t,n,s){i(this,e),this.route=t,this.store=n,this.authResolver=s}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.route.parent.params.subscribe(function(t){e.userId=t.userId,void 0===e.userId&&(e.userId=e.store.getPerunPrincipal().userId),e.userFacilityAttAuth=e.authResolver.isAuthorized("getAssignedFacilities_User_policy",[{id:e.userId,beanName:"User"}])})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(o.gz),a.Y36(s.d6),a.Y36(s.x4))},e.\u0275cmp=a.Xpm({type:e,selectors:[["app-user-settings-attributes"]],hostVars:2,hostBindings:function(e,t){2&e&&a.ekj("router-component",t.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(e,t){1&e&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"mat-tab-group"),a.TgZ(4,"mat-tab",1),a.YNc(5,f,2,3,"ng-template",2),a.YNc(6,g,1,2,"ng-template",3),a.qZA(),a.YNc(7,I,3,0,"mat-tab",4),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,2,"USER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),a.xp6(6),a.Q6J("ngIf",t.userFacilityAttAuth))},directives:[u.SP,u.uX,u.uD,u.Vc,l.O5,c.t,p.Y],pipes:[d.X$],styles:[""]}),e}()},31612:function(e,n,s){"use strict";s.d(n,{u:function(){return R}});var a=s(68416),o=s(65249),u=s(60611),l=s(31572),c=s(57629),p=s(61511),d=s(59403),f=s(19139),g=s(67806),m=s(78364),h=s(48160);function I(e,t){1&e&&(l.TgZ(0,"h1",6),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&e&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.YOU_ARE_MEMBER"),"\n"))}function v(e,t){1&e&&(l.TgZ(0,"h1",6),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&e&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.USER_IS_MEMBER"),"\n"))}function Z(e,t){1&e&&l._UZ(0,"mat-spinner",7)}var A=function(){return["id","vo","name","description","status"]};function S(e,t){if(1&e&&l._UZ(0,"perun-web-apps-groups-list",8),2&e){var n=l.oxw();l.Q6J("tableId",n.tableId)("groups",n.membersGroups)("displayedColumns",l.DdM(5,A))("disableMembers",!1)("filter",n.memberFilterValue)}}function E(e,t){1&e&&l._UZ(0,"mat-spinner",7)}var T=function(){return["id","vo","name","description"]};function b(e,t){if(1&e&&l._UZ(0,"perun-web-apps-groups-list",8),2&e){var n=l.oxw(2);l.Q6J("tableId",n.adminTableId)("groups",n.adminsGroups)("displayedColumns",l.DdM(5,T))("disableMembers",!1)("filter",n.adminFilterValue)}}function N(e,t){if(1&e){var n=l.EpF();l.TgZ(0,"div",9),l.TgZ(1,"h1",6),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"perun-web-apps-refresh-button",1),l.NdJ("refresh",function(){return l.CHM(n),l.oxw().refreshAdminTable()}),l.qZA(),l.TgZ(5,"perun-web-apps-immediate-filter",2),l.NdJ("filter",function(e){return l.CHM(n),l.oxw().adminFilter(e)}),l.qZA(),l.YNc(6,E,1,0,"mat-spinner",3),l.YNc(7,b,1,6,"perun-web-apps-groups-list",4),l.qZA()}if(2&e){var i=l.oxw();l.xp6(2),l.hij(" ",l.lcZ(3,4,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.USER_IS_ADMIN")," "),l.xp6(3),l.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),l.xp6(1),l.Q6J("ngIf",i.adminRefresh),l.xp6(1),l.Q6J("ngIf",!i.adminRefresh)}}var R=function(){var e=function(){function e(t,n,s,r,a){i(this,e),this.usersService=t,this.memberService=n,this.groupService=s,this.store=r,this.route=a,this.memberFilterValue="",this.adminFilterValue="",this.vos=[],this.membersGroups=[],this.adminsGroups=[],this.tableId=u.KE,this.adminTableId=u.Sb}return r(e,[{key:"ngOnInit",value:function(){var e=this;!0===(this.showPrincipal=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(function(t){return e.userId=t.userId}),this.refreshAdminTable(),this.refreshMemberTable()}},{key:"memberFilter",value:function(e){this.memberFilterValue=e}},{key:"adminFilter",value:function(e){this.adminFilterValue=e}},{key:"refreshAdminTable",value:function(){var e=this;this.adminRefresh=!0,this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(function(t){e.adminsGroups=t,e.adminRefresh=!1})}},{key:"refreshMemberTable",value:function(){var e=this;this.memberRefresh=!0,this.membersGroups=[],this.usersService.getVosWhereUserIsMember(this.userId).subscribe(function(n){e.vos=n;var i,s=function(e,n){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=t(e))||n&&e&&"number"==typeof e.length){i&&(e=i);var s=0,r=function(){};return{s:r,n:function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,u=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return o=e.done,e},e:function(e){u=!0,a=e},f:function(){try{o||null==i.return||i.return()}finally{if(u)throw a}}}}(e.vos);try{var r=function(){var t=i.value;e.memberService.getMemberByUser(t.id,e.userId).subscribe(function(n){e.groupService.getMemberGroups(n.id).subscribe(function(n){e.membersGroups=e.membersGroups.concat(n),e.vos.indexOf(t)===e.vos.length-1&&(e.memberRefresh=!1)})})};for(s.s();!(i=s.n()).done;)r()}catch(a){s.e(a)}finally{s.f()}0===n.length&&(e.memberRefresh=!1)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(l.Y36(o.Fv),l.Y36(o.uq),l.Y36(o.ff),l.Y36(a.d6),l.Y36(c.gz))},e.\u0275cmp=l.Xpm({type:e,selectors:[["app-user-groups"]],hostVars:2,hostBindings:function(e,t){2&e&&l.ekj("router-component",t.true)},decls:7,vars:6,consts:[["class","page-subtitle",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","groups","displayedColumns","disableMembers","filter",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"ml-auto","mr-auto"],[3,"tableId","groups","displayedColumns","disableMembers","filter"],[1,"mt-5"]],template:function(e,t){1&e&&(l.YNc(0,I,3,3,"h1",0),l.YNc(1,v,3,3,"h1",0),l.TgZ(2,"perun-web-apps-refresh-button",1),l.NdJ("refresh",function(){return t.refreshMemberTable()}),l.qZA(),l.TgZ(3,"perun-web-apps-immediate-filter",2),l.NdJ("filter",function(e){return t.memberFilter(e)}),l.qZA(),l.YNc(4,Z,1,0,"mat-spinner",3),l.YNc(5,S,1,6,"perun-web-apps-groups-list",4),l.YNc(6,N,8,6,"div",5)),2&e&&(l.Q6J("ngIf",t.showPrincipal),l.xp6(1),l.Q6J("ngIf",!t.showPrincipal),l.xp6(2),l.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),l.xp6(1),l.Q6J("ngIf",t.memberRefresh),l.xp6(1),l.Q6J("ngIf",!t.memberRefresh),l.xp6(1),l.Q6J("ngIf",!t.showPrincipal))},directives:[p.O5,d.t,f.L,g.$g,m.W],pipes:[h.X$],styles:[""]}),e}()},15879:function(e,t,n){"use strict";n.d(t,{j:function(){return T}});var s=n(65249),a=n(68416),o=n(60611),u=n(31572),l=n(57629),c=n(61511),p=n(59403),d=n(19139),f=n(67806),g=n(97162),m=n(48160);function h(e,t){1&e&&(u.TgZ(0,"h1",6),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.YOU_ARE_MEMBER"),"\n"))}function I(e,t){1&e&&(u.TgZ(0,"h1",6),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_MEMBER"),"\n"))}function v(e,t){1&e&&u._UZ(0,"mat-spinner",7)}function Z(e,t){if(1&e&&u._UZ(0,"perun-web-apps-vos-list",8),2&e){var n=u.oxw();u.Q6J("displayedColumns",n.displayedColumns)("tableId",n.memberTableId)("filterValue",n.memberFilterValue)("vos",n.vosWhereIsMember)}}function A(e,t){1&e&&u._UZ(0,"mat-spinner",7)}function S(e,t){if(1&e&&u._UZ(0,"perun-web-apps-vos-list",8),2&e){var n=u.oxw(2);u.Q6J("displayedColumns",n.displayedColumns)("tableId",n.adminTableId)("filterValue",n.adminFilterValue)("vos",n.vosWhereIsAdmin)}}function E(e,t){if(1&e){var n=u.EpF();u.TgZ(0,"div",9),u.TgZ(1,"h1",6),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"perun-web-apps-refresh-button",1),u.NdJ("refresh",function(){return u.CHM(n),u.oxw().refreshAdminTable()}),u.qZA(),u.TgZ(5,"perun-web-apps-immediate-filter",2),u.NdJ("filter",function(e){return u.CHM(n),u.oxw().applyAdminFilter(e)}),u.qZA(),u.YNc(6,A,1,0,"mat-spinner",3),u.YNc(7,S,1,4,"perun-web-apps-vos-list",4),u.qZA()}if(2&e){var i=u.oxw();u.xp6(2),u.Oqu(u.lcZ(3,4,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_ADMIN")),u.xp6(3),u.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),u.xp6(1),u.Q6J("ngIf",i.adminRefresh),u.xp6(1),u.Q6J("ngIf",!i.adminRefresh)}}var T=function(){var e=function(){function e(t,n,s,r){i(this,e),this.usersService=t,this.authResolver=n,this.store=s,this.route=r,this.adminFilterValue="",this.memberFilterValue="",this.displayedColumns=["id","name"],this.adminTableId=o.YF,this.memberTableId=o.gc}return r(e,[{key:"ngOnInit",value:function(){var e=this;!0===(this.isMyProfile=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(function(t){return e.userId=t.userId}),this.refreshAdminTable(),this.refreshMemberTable()}},{key:"refreshMemberTable",value:function(){var e=this;this.memberRefresh=!0,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(function(t){e.vosWhereIsMember=t,e.memberRefresh=!1},function(){return e.memberRefresh=!1})}},{key:"refreshAdminTable",value:function(){var e=this;this.adminRefresh=!0,this.usersService.getVosWhereUserIsAdmin(this.userId).subscribe(function(t){e.vosWhereIsAdmin=t,e.adminRefresh=!1},function(){return e.adminRefresh=!1})}},{key:"applyMemberFilter",value:function(e){this.memberFilterValue=e}},{key:"applyAdminFilter",value:function(e){this.adminFilterValue=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(u.Y36(s.Fv),u.Y36(a.x4),u.Y36(a.d6),u.Y36(l.gz))},e.\u0275cmp=u.Xpm({type:e,selectors:[["app-user-organizations"]],hostVars:2,hostBindings:function(e,t){2&e&&u.ekj("router-component",t.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(e,t){1&e&&(u.YNc(0,h,3,3,"h1",0),u.YNc(1,I,3,3,"h1",0),u.TgZ(2,"perun-web-apps-refresh-button",1),u.NdJ("refresh",function(){return t.refreshMemberTable()}),u.qZA(),u.TgZ(3,"perun-web-apps-immediate-filter",2),u.NdJ("filter",function(e){return t.applyMemberFilter(e)}),u.qZA(),u.YNc(4,v,1,0,"mat-spinner",3),u.YNc(5,Z,1,4,"perun-web-apps-vos-list",4),u.YNc(6,E,8,6,"div",5)),2&e&&(u.Q6J("ngIf",t.isMyProfile),u.xp6(1),u.Q6J("ngIf",!t.isMyProfile),u.xp6(2),u.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),u.xp6(1),u.Q6J("ngIf",t.memberRefresh),u.xp6(1),u.Q6J("ngIf",!t.memberRefresh),u.xp6(1),u.Q6J("ngIf",!t.isMyProfile))},directives:[c.O5,p.t,d.L,f.$g,g.Z],pipes:[m.X$],styles:[""]}),e}()},71956:function(e,t,n){"use strict";n.d(t,{Z:function(){return R}});var s=n(65249),a=n(67033),o=n(68416),u=n(67004),l=n(84140),c=n(6527),p=n(31572),d=n(57629),f=n(84608),g=n(61511),m=n(8557),h=n(27439),I=n(15980),v=n(43691),Z=n(48160);function A(e,t){1&e&&p._UZ(0,"th",12)}function S(e,t){if(1&e&&(p.TgZ(0,"td",13),p._uU(1),p.qZA()),2&e){var n=t.$implicit;p.xp6(1),p.hij(" ",n.displayName,": ")}}function E(e,t){1&e&&p._UZ(0,"th",12)}function T(e,t){if(1&e){var n=p.EpF();p.TgZ(0,"td",14),p._uU(1),p.TgZ(2,"button",15),p.NdJ("click",function(){return p.CHM(n),p.oxw(2).changeEmail()}),p.TgZ(3,"mat-icon"),p._uU(4,"edit"),p.qZA(),p.qZA(),p.qZA()}if(2&e){var i=t.$implicit;p.xp6(1),p.hij(" ",i.value," ")}}function b(e,t){1&e&&p._UZ(0,"tr",16)}function N(e,t){if(1&e&&(p.TgZ(0,"div",2),p.TgZ(1,"mat-card",3),p.TgZ(2,"mat-card-header"),p.TgZ(3,"mat-card-title"),p.TgZ(4,"h1",4),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.qZA(),p.qZA(),p.TgZ(7,"mat-card-content"),p.TgZ(8,"table",5),p.ynx(9,6),p.YNc(10,A,1,0,"th",7),p.YNc(11,S,2,1,"td",8),p.BQk(),p.ynx(12,9),p.YNc(13,E,1,0,"th",7),p.YNc(14,T,5,1,"td",10),p.BQk(),p.YNc(15,b,1,0,"tr",11),p.qZA(),p.qZA(),p.qZA(),p.qZA()),2&e){var n=p.oxw();p.xp6(5),p.Oqu(p.lcZ(6,3,"USER_DETAIL.OVERVIEW.GENERAL_SETTINGS")),p.xp6(3),p.Q6J("dataSource",n.mailDataSource),p.xp6(7),p.Q6J("matRowDefColumns",n.displayedColumns)}}var R=function(){var e=function(){function e(t,n,s,r,a){i(this,e),this.userService=t,this.attributeService=n,this.storeService=s,this.route=r,this.dialog=a,this.navItems=[],this.isServiceUser=!1,this.displayedColumns=["name","value"],this.inMyProfile=!1}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.route.params.subscribe(function(t){void 0!==t.userId?e.userService.getUserById(t.userId).subscribe(function(t){e.user=t,e.isServiceUser=t.serviceUser,e.initNavItems()}):(e.inMyProfile=!0,e.userID=e.storeService.getPerunPrincipal().user.id,e.attributeService.getUserAttributeByName(e.userID,u.r.USER_DEF_PREFERRED_MAIL).subscribe(function(t){e.preferredMail=t,e.handleMailNotDefined(),e.mailDataSource=new a.by([e.preferredMail]),e.initNavItems()}))})}},{key:"initNavItems",value:function(){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-group",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-group",url:"roles",label:"MENU_ITEMS.USER.ROLES",style:"user-btn"}),this.navItems.push(this.isServiceUser?{cssIcon:"perun-user-dark",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"})}},{key:"changeEmail",value:function(){var e=this,t=(0,l.kZ)();t.width="350px",t.data={userId:this.userID},this.dialog.open(c.gr,t).afterClosed().subscribe(function(t){t&&e.attributeService.getUserAttributeByName(e.userID,u.r.USER_DEF_PREFERRED_MAIL).subscribe(function(t){e.preferredMail=t,e.handleMailNotDefined(),e.mailDataSource=new a.by([e.preferredMail])})})}},{key:"handleMailNotDefined",value:function(){null==this.preferredMail&&(this.preferredMail={id:-1,beanName:"Attribute",displayName:(0,l.Cz)(u.r.USER_DEF_PREFERRED_MAIL.split(":").pop()),value:Object("-")})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(p.Y36(s.Fv),p.Y36(s.H8),p.Y36(o.d6),p.Y36(d.gz),p.Y36(f.uw))},e.\u0275cmp=p.Xpm({type:e,selectors:[["app-user-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&p.ekj("router-component",t.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(e,t){1&e&&(p.YNc(0,N,16,5,"div",0),p._UZ(1,"perun-web-apps-menu-buttons-field",1)),2&e&&(p.Q6J("ngIf",t.inMyProfile),p.xp6(1),p.Q6J("items",t.navItems)("size","small"))},directives:[g.O5,m.L,h.a8,h.dk,h.n5,h.dn,a.BZ,a.w1,a.fO,a.Dz,a.nj,a.ge,a.ev,I.lW,v.Hw,a.Gk],pipes:[Z.X$],styles:[".align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}"]}),e}()},7233:function(t,n,s){"use strict";s.d(n,{t:function(){return Qe}});var a=s(65249),o=s(68416),u=s(31572),l=s(57629),c=s(61511),p=s(67806),d=s(45001),f=s(43691),g=s(27439),m=s(97162),h=s(77889),I=s(78364),v=s(88884),Z=s(60007),A=s(4252),S=s(48160);function E(e,t){1&e&&u._UZ(0,"mat-spinner",3)}function T(e,t){1&e&&u._UZ(0,"mat-spinner",3)}function b(e,t){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.SELF_VOS_ADMIN")," "))}function N(e,t){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.SELF_VOS")," "))}function R(e,t){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.SELF_IDENTITIES_ADMIN")," "))}function U(e,t){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.SELF_IDENTITIES")," "))}var x=function(){return["user","id","name"]};function _(e,t){if(1&e&&(u.TgZ(0,"div",11),u.YNc(1,R,3,3,"div",2),u.YNc(2,U,3,3,"div",2),u._UZ(3,"app-users-list",12),u.qZA()),2&e){var n=u.oxw(4);u.xp6(1),u.Q6J("ngIf",!n.showDescription),u.xp6(1),u.Q6J("ngIf",n.showDescription),u.xp6(1),u.Q6J("users",n.users)("disableRouting",!0)("displayedColumns",u.DdM(5,x))}}var O=function(){return["id","name","shortName"]};function y(e,t){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,b,3,3,"div",2),u.YNc(2,N,3,3,"div",2),u._UZ(3,"perun-web-apps-vos-list",9),u.YNc(4,_,4,6,"div",10),u.qZA()),2&e){var n=u.oxw(3);u.xp6(1),u.Q6J("ngIf",!n.showDescription),u.xp6(1),u.Q6J("ngIf",n.showDescription),u.xp6(1),u.Q6J("displayedColumns",u.DdM(5,O))("vos",n.vos),u.xp6(1),u.Q6J("ngIf",n.users.length)}}function C(e,t){if(1&e){var n=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(n),u.oxw(2).getSelfData()}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",7),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,T,1,0,"mat-spinner",1),u.YNc(8,y,5,6,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.SELF")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function L(e,t){1&e&&u._UZ(0,"mat-spinner",3)}function w(e,t){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.GROUPADMIN_GROUPS")," "))}var D=function(){return["id","vo","name","description"]};function q(e,t){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,w,3,3,"div",2),u._UZ(2,"perun-web-apps-groups-list",14),u.qZA()),2&e){var n=u.oxw(3);u.xp6(1),u.Q6J("ngIf",n.showDescription),u.xp6(1),u.Q6J("groups",n.groups)("displayedColumns",u.DdM(3,D))}}function Y(e,t){if(1&e){var n=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(n),u.oxw(2).getAdminGroupsAndVos()}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",13),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,L,1,0,"mat-spinner",1),u.YNc(8,q,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.GROUPADMIN")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function M(e,t){1&e&&u._UZ(0,"mat-spinner",3)}function J(e,t){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.GROUPOBSERVER_GROUPS")," "))}var k=function(){return["id","recent","vo","name","description"]};function Q(e,t){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,J,3,3,"div",2),u._UZ(2,"perun-web-apps-groups-list",14),u.qZA()),2&e){var n=u.oxw(3);u.xp6(1),u.Q6J("ngIf",n.showDescription),u.xp6(1),u.Q6J("groups",n.groups)("displayedColumns",u.DdM(3,k))}}function F(e,t){if(1&e){var n=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(n),u.oxw(2).getGroupsAndVos("GROUPOBSERVER")}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",13),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,M,1,0,"mat-spinner",1),u.YNc(8,Q,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.GROUPOBSERVER")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function P(e,t){1&e&&u._UZ(0,"mat-spinner",3)}function V(e,t){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.VOADMIN_VOS")," "))}function G(e,t){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,V,3,3,"div",2),u._UZ(2,"perun-web-apps-vos-list",9),u.qZA()),2&e){var n=u.oxw(3);u.xp6(1),u.Q6J("ngIf",n.showDescription),u.xp6(1),u.Q6J("displayedColumns",u.DdM(3,O))("vos",n.vos)}}function B(e,t){if(1&e){var n=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(n),u.oxw(2).getAdminVos()}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",15),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,P,1,0,"mat-spinner",1),u.YNc(8,G,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.VOADMIN")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function j(e,t){1&e&&u._UZ(0,"mat-spinner",3)}function H(e,t){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.VOOBSERVER_VOS")," "))}function z(e,t){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,H,3,3,"div",2),u._UZ(2,"perun-web-apps-vos-list",9),u.qZA()),2&e){var n=u.oxw(3);u.xp6(1),u.Q6J("ngIf",n.showDescription),u.xp6(1),u.Q6J("displayedColumns",u.DdM(3,O))("vos",n.vos)}}function W(e,t){if(1&e){var n=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){u.CHM(n);var e=u.oxw(2);return e.getVos(e.roles.get("VOOBSERVER").get("Vo"))}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",15),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,j,1,0,"mat-spinner",1),u.YNc(8,z,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.VOOBSERVER")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function X(e,t){1&e&&u._UZ(0,"mat-spinner",3)}function $(e,t){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.TRUSTEDFACILITYADMIN_VOS")," "))}function K(e,t){if(1&e&&(u.TgZ(0,"div"),u.TgZ(1,"div"),u.YNc(2,$,3,3,"div",2),u._UZ(3,"perun-web-apps-vos-list",9),u.qZA(),u.qZA()),2&e){var n=u.oxw(3);u.xp6(2),u.Q6J("ngIf",n.showDescription),u.xp6(1),u.Q6J("displayedColumns",u.DdM(3,O))("vos",n.vos)}}function ee(e,t){if(1&e){var n=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){u.CHM(n);var e=u.oxw(2);return e.getVos(e.roles.get("TRUSTEDFACILITYADMIN").get("Vo"))}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",15),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,X,1,0,"mat-spinner",1),u.YNc(8,K,4,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.TRUSTEDFACILITYADMIN")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function te(e,t){1&e&&u._UZ(0,"mat-spinner",3)}function ne(e,t){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.TOPGROUPCREATOR_VOS")," "))}function ie(e,t){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,ne,3,3,"div",2),u._UZ(2,"perun-web-apps-vos-list",9),u.qZA()),2&e){var n=u.oxw(3);u.xp6(1),u.Q6J("ngIf",n.showDescription),u.xp6(1),u.Q6J("displayedColumns",u.DdM(3,O))("vos",n.vos)}}function se(e,t){if(1&e){var n=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){u.CHM(n);var e=u.oxw(2);return e.getVos(e.roles.get("TOPGROUPCREATOR").get("Vo"))}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",15),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,te,1,0,"mat-spinner",1),u.YNc(8,ie,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.TOPGROUPCREATOR")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function re(e,t){1&e&&u._UZ(0,"mat-spinner",3)}function ae(e,t){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.RESOURCEADMIN_RESOURCES")," "))}var oe=function(){return["id","name","vo","facility","description"]};function ue(e,t){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,ae,3,3,"div",2),u._UZ(2,"perun-web-apps-resources-list",17),u.qZA()),2&e){var n=u.oxw(3);u.xp6(1),u.Q6J("ngIf",n.showDescription),u.xp6(1),u.Q6J("resources",n.resources)("routingVo",!0)("displayedColumns",u.DdM(4,oe))}}function le(e,t){if(1&e){var n=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(n),u.oxw(2).getResourcesData("RESOURCEADMIN")}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",16),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,re,1,0,"mat-spinner",1),u.YNc(8,ue,3,5,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.RESOURCEADMIN")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function ce(e,t){1&e&&u._UZ(0,"mat-spinner",3)}function pe(e,t){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.RESOURCEOBSERVER_RESOURCES")," "))}function de(e,t){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,pe,3,3,"div",2),u._UZ(2,"perun-web-apps-resources-list",17),u.qZA()),2&e){var n=u.oxw(3);u.xp6(1),u.Q6J("ngIf",n.showDescription),u.xp6(1),u.Q6J("resources",n.resources)("routingVo",!0)("displayedColumns",u.DdM(4,oe))}}function fe(e,t){if(1&e){var n=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(n),u.oxw(2).getResourcesData("RESOURCEOBSERVER")}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",16),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,ce,1,0,"mat-spinner",1),u.YNc(8,de,3,5,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.RESOURCEOBSERVER")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function ge(e,t){1&e&&u._UZ(0,"mat-spinner",3)}function me(e,t){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.RESOURCESELFSERVICE_RESOURCES")," "))}function he(e,t){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,me,3,3,"div",2),u._UZ(2,"perun-web-apps-resources-list",17),u.qZA()),2&e){var n=u.oxw(3);u.xp6(1),u.Q6J("ngIf",n.showDescription),u.xp6(1),u.Q6J("resources",n.resources)("routingVo",!0)("displayedColumns",u.DdM(4,oe))}}function Ie(e,t){if(1&e){var n=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(n),u.oxw(2).getResourcesData("RESOURCESELFSERVICE")}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",16),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,ge,1,0,"mat-spinner",1),u.YNc(8,he,3,5,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.RESOURCESELFSERVICE")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function ve(e,t){1&e&&u._UZ(0,"mat-spinner",3)}function Ze(e,t){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.FACILITYADMIN_FACILITIES")," "))}var Ae=function(){return["id","name","description"]};function Se(e,t){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,Ze,3,3,"div",2),u._UZ(2,"perun-web-apps-facilities-list",19),u.qZA()),2&e){var n=u.oxw(3);u.xp6(1),u.Q6J("ngIf",n.showDescription),u.xp6(1),u.Q6J("displayedColumns",u.DdM(3,Ae))("facilities",n.facilities)}}function Ee(e,t){if(1&e){var n=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(n),u.oxw(2).getAdminFacilities()}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",18),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,ve,1,0,"mat-spinner",1),u.YNc(8,Se,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.FACILITYADMIN")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function Te(e,t){1&e&&u._UZ(0,"mat-spinner",3)}function be(e,t){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.FACILITYOBSERVER_FACILITIES")," "))}function Ne(e,t){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,be,3,3,"div",2),u._UZ(2,"perun-web-apps-facilities-list",19),u.qZA()),2&e){var n=u.oxw(3);u.xp6(1),u.Q6J("ngIf",n.showDescription),u.xp6(1),u.Q6J("displayedColumns",u.DdM(3,Ae))("facilities",n.facilities)}}function Re(e,t){if(1&e){var n=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(n),u.oxw(2).getFacilities("FACILITYOBSERVER")}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",18),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,Te,1,0,"mat-spinner",1),u.YNc(8,Ne,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.FACILITYOBSERVER")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function Ue(e,t){1&e&&u._UZ(0,"mat-spinner",3)}function xe(e,t){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.SPONSORSHIP_MEMBERS")," "))}var _e=function(){return["id","fullName","sponsored"]};function Oe(e,t){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,xe,3,3,"div",2),u._UZ(2,"perun-web-apps-members-list",20),u.qZA()),2&e){var n=u.oxw(3);u.xp6(1),u.Q6J("ngIf",n.showDescription),u.xp6(1),u.Q6J("members",n.members)("displayedColumns",u.DdM(3,_e))}}function ye(e,t){if(1&e){var n=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(n),u.oxw(2).getMembers()}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",7),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,Ue,1,0,"mat-spinner",1),u.YNc(8,Oe,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.SPONSORSHIP")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function Ce(e,t){1&e&&u._UZ(0,"mat-spinner",3)}function Le(e,t){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.SPONSOR_VOS")," "))}function we(e,t){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,Le,3,3,"div",2),u._UZ(2,"perun-web-apps-vos-list",9),u.qZA()),2&e){var n=u.oxw(3);u.xp6(1),u.Q6J("ngIf",n.showDescription),u.xp6(1),u.Q6J("displayedColumns",u.DdM(3,O))("vos",n.vos)}}function De(e,t){if(1&e){var n=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){u.CHM(n);var e=u.oxw(2);return e.getVos(e.roles.get("SPONSOR").get("Vo"))}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",7),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,Ce,1,0,"mat-spinner",1),u.YNc(8,we,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.SPONSOR")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function qe(e,t){1&e&&(u.TgZ(0,"mat-expansion-panel"),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",7),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.qZA()),2&e&&(u.xp6(5),u.Oqu(u.lcZ(6,1,"ROLES.PERUN_ADMIN")))}function Ye(e,t){1&e&&(u.TgZ(0,"mat-expansion-panel"),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",7),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.qZA()),2&e&&(u.xp6(5),u.Oqu(u.lcZ(6,1,"ROLES.PERUN_OBSERVER")))}function Me(e,t){if(1&e&&(u.TgZ(0,"p",22),u._uU(1),u.qZA()),2&e){var n=t.$implicit;u.xp6(1),u.AsE("",n[0]," ids: ",n[1],"")}}function Je(e,t){if(1&e){var n=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){var e=u.CHM(n).$implicit;return u.oxw(2).getInnerKeys(e)}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",7),u.TgZ(4,"p",8),u._uU(5),u.qZA(),u.qZA(),u.qZA(),u.YNc(6,Me,2,2,"p",21),u.qZA()}if(2&e){var i=t.$implicit,s=u.oxw(2);u.xp6(5),u.Oqu(i),u.xp6(1),u.Q6J("ngForOf",s.currentIds)}}function ke(e,t){if(1&e&&(u.TgZ(0,"mat-accordion"),u.YNc(1,C,9,5,"mat-expansion-panel",4),u.YNc(2,Y,9,5,"mat-expansion-panel",4),u.YNc(3,F,9,5,"mat-expansion-panel",4),u.YNc(4,B,9,5,"mat-expansion-panel",4),u.YNc(5,W,9,5,"mat-expansion-panel",4),u.YNc(6,ee,9,5,"mat-expansion-panel",4),u.YNc(7,se,9,5,"mat-expansion-panel",4),u.YNc(8,le,9,5,"mat-expansion-panel",4),u.YNc(9,fe,9,5,"mat-expansion-panel",4),u.YNc(10,Ie,9,5,"mat-expansion-panel",4),u.YNc(11,Ee,9,5,"mat-expansion-panel",4),u.YNc(12,Re,9,5,"mat-expansion-panel",4),u.YNc(13,ye,9,5,"mat-expansion-panel",4),u.YNc(14,De,9,5,"mat-expansion-panel",4),u.YNc(15,qe,7,3,"mat-expansion-panel",2),u.YNc(16,Ye,7,3,"mat-expansion-panel",2),u.YNc(17,Je,7,2,"mat-expansion-panel",5),u.qZA()),2&e){var n=u.oxw();u.xp6(1),u.Q6J("ngIf",n.isSelf),u.xp6(1),u.Q6J("ngIf",n.isGroupAdmin),u.xp6(1),u.Q6J("ngIf",n.isGroupObserver),u.xp6(1),u.Q6J("ngIf",n.isVoAdmin),u.xp6(1),u.Q6J("ngIf",n.isVoObserver),u.xp6(1),u.Q6J("ngIf",n.isTrustedFacilityAdmin),u.xp6(1),u.Q6J("ngIf",n.isTopGroupCreator),u.xp6(1),u.Q6J("ngIf",n.isResourceAdmin),u.xp6(1),u.Q6J("ngIf",n.isResourceObserver),u.xp6(1),u.Q6J("ngIf",n.isResourceSelfService),u.xp6(1),u.Q6J("ngIf",n.isFacilityAdmin),u.xp6(1),u.Q6J("ngIf",n.isFacilityObserver),u.xp6(1),u.Q6J("ngIf",n.hasSponsorship),u.xp6(1),u.Q6J("ngIf",n.isSponsor),u.xp6(1),u.Q6J("ngIf",n.isPerunAdmin),u.xp6(1),u.Q6J("ngIf",n.isPerunObserver),u.xp6(1),u.Q6J("ngForOf",n.roleNames)}}var Qe=function(){var t=function(){function t(e,n,s,r,a,o,u,l,c){i(this,t),this.authzResolverService=e,this.usersManagerService=n,this.vosManagerService=s,this.facilitiesManagerService=r,this.resourcesManagerService=a,this.membersManagerService=o,this.groupsManagerService=u,this.route=l,this.store=c,this.currentIds=[],this.roles=new Map,this.roleFilter=["SELF","GROUPADMIN","VOADMIN","RESOURCEADMIN","FACILITYADMIN","TOPGROUPCREATOR","SPONSORSHIP","SPONSOR","RESOURCESELFSERVICE","VOOBSERVER","RESOURCEOBSERVER","GROUPOBSERVER","TRUSTEDFACILITYADMIN","FACILITYOBSERVER","PERUNADMIN","PERUNOBSERVER"],this.roleNames=[],this.groups=[],this.vos=[],this.facilities=[],this.users=[],this.resources=[],this.members=[]}return r(t,[{key:"ngOnInit",value:function(){var e=this;this.outerLoading=!0,this.route.parent.params.subscribe(function(t){t.userId?(e.userId=t.userId,e.authzResolverService.getUserRoleNames(e.userId).subscribe(function(t){e.roleNames=t.map(function(e){return e.toUpperCase()}),e.authzResolverService.getUserRoles(e.userId).subscribe(function(t){e.prepareRoles(t)})})):(e.showDescription=!0,e.principal=e.store.getPerunPrincipal(),e.userId=e.principal.userId,e.roleNames=Object.keys(e.principal.roles),e.prepareRoles(e.principal.roles))})}},{key:"prepareRoles",value:function(e){var t=this;this.roleNames.forEach(function(n){var i=new Map;switch(Object.keys(e[n]).forEach(function(t){i.set(t,e[n][t])}),n){case"SELF":t.isSelf=!0;break;case"GROUPADMIN":t.isGroupAdmin=!0;break;case"VOADMIN":t.isVoAdmin=!0;break;case"RESOURCEADMIN":t.isResourceAdmin=!0;break;case"FACILITYADMIN":t.isFacilityAdmin=!0;break;case"TOPGROUPCREATOR":t.isTopGroupCreator=!0;break;case"SPONSORSHIP":t.hasSponsorship=!0;break;case"SPONSOR":t.isSponsor=!0;break;case"RESOURCESELFSERVICE":t.isResourceSelfService=!0;break;case"VOOBSERVER":t.isVoObserver=!0;break;case"RESOURCEOBSERVER":t.isResourceObserver=!0;break;case"GROUPOBSERVER":t.isGroupObserver=!0;break;case"TRUSTEDFACILITYADMIN":t.isTrustedFacilityAdmin=!0;break;case"FACILITYOBSERVER":t.isFacilityObserver=!0;break;case"PERUNADMIN":t.isPerunAdmin=!0;break;case"PERUNOBSERVER":t.isPerunObserver=!0}t.roles.set(n,i)}),this.roleNames=this.roleNames.filter(function(e){return!t.roleFilter.includes(e)}),this.outerLoading=!1}},{key:"getAdminGroupsAndVos",value:function(){var t=this;this.loading=!0,this.groups=[],this.usersManagerService.getGroupsWhereUserIsAdmin(this.userId).subscribe(function(n){t.groups=n;var i=e(new Set(t.groups.map(function(e){return e.voId})));t.getVos(i)})}},{key:"getVos",value:function(e){var t=this;this.loading=!0,this.vos=[],this.vosManagerService.getVosByIds(e).subscribe(function(e){t.vos=e,t.loading=!1})}},{key:"getInnerKeys",value:function(e){if(this.roles.get(e)){for(var t=this.roles.get(e).entries(),n=[],i=t.next().value;i;)n.push(i),i=t.next().value;this.currentIds=n}else this.currentIds=[]}},{key:"getAdminVos",value:function(){var e=this;this.loading=!0,this.vos=[],this.usersManagerService.getVosWhereUserIsAdmin(this.userId).subscribe(function(t){e.vos=t,e.loading=!1})}},{key:"getAdminFacilities",value:function(){var e=this;this.loading=!0,this.facilities=[],this.facilitiesManagerService.getFacilitiesWhereUserIsAdmin(this.userId).subscribe(function(t){e.facilities=t.map(function(e){return{facility:e}}),e.loading=!1})}},{key:"getSelfData",value:function(){var e=this;this.loading=!0,this.vos=[],this.users=[],this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(function(t){e.vos=t;var n=e.roles.get("SELF").get("User");n?e.usersManagerService.getUsersByIds(n).subscribe(function(t){e.users=t,e.loading=!1}):e.loading=!1})}},{key:"getResourcesData",value:function(e){var t=this;this.loading=!0;var n=this.roles.get(e).get("Resource");this.vos=[],this.facilities=[],this.resources=[],this.resourcesManagerService.getRichResourcesByIds(n).subscribe(function(e){t.resources=e,t.vos=t.resources.map(function(e){return e.vo}).filter(function(e,t,n){return n.indexOf(e)===t}),t.facilities=t.resources.map(function(e){return{facility:e.facility}}).filter(function(e,t,n){return n.indexOf(e)===t}),t.loading=!1})}},{key:"getMembers",value:function(){var e=this;this.loading=!0;var t=this.roles.get("SPONSORSHIP").get("Member");this.members=[],this.membersManagerService.getRichMembersByIds(t).subscribe(function(t){e.members=t,e.loading=!1})}},{key:"getGroupsAndVos",value:function(e){var t=this;this.loading=!0;var n=this.roles.get(e).get("Vo"),i=this.roles.get(e).get("Group");this.vos=[],this.groups=[],this.groupsManagerService.getGroupsByIds(i).subscribe(function(e){t.groups=e,t.vosManagerService.getVosByIds(n).subscribe(function(e){t.vos=e,t.loading=!1})})}},{key:"getFacilities",value:function(e){var t=this;this.loading=!0,this.facilities=[];var n=this.roles.get(e).get("Facility");this.facilitiesManagerService.getFacilitiesByIds(n).subscribe(function(e){t.facilities=e.map(function(e){return{facility:e}}),t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Y36(a.Ct),u.Y36(a.Fv),u.Y36(a.YF),u.Y36(a.IQ),u.Y36(a.xk),u.Y36(a.uq),u.Y36(a.ff),u.Y36(l.gz),u.Y36(o.d6))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-user-roles"]],hostVars:2,hostBindings:function(e,t){2&e&&u.ekj("router-component",t.true)},decls:5,vars:5,consts:[[1,"page-subtitle","d-flex"],["class","ml-auto mr-auto",4,"ngIf"],[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","vos"],["class","mt-5",4,"ngIf"],[1,"mt-5"],[3,"users","disableRouting","displayedColumns"],["mat-card-avatar","","svgIcon","perun-group-black",1,"mr-2"],[3,"groups","displayedColumns"],["mat-card-avatar","","svgIcon","perun-vo-black",1,"mr-2"],["mat-card-avatar","","svgIcon","perun-resource-black",1,"mr-2"],[3,"resources","routingVo","displayedColumns"],["mat-card-avatar","","svgIcon","perun-facility-black",1,"mr-2"],[3,"displayedColumns","facilities"],[3,"members","displayedColumns"],["class","role-content",4,"ngFor","ngForOf"],[1,"role-content"]],template:function(e,t){1&e&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.YNc(3,E,1,0,"mat-spinner",1),u.YNc(4,ke,18,17,"mat-accordion",2)),2&e&&(u.xp6(1),u.Oqu(u.lcZ(2,3,"ROLES.TITLE")),u.xp6(2),u.Q6J("ngIf",t.outerLoading),u.xp6(1),u.Q6J("ngIf",!t.outerLoading))},directives:[c.O5,p.$g,d.pp,c.sg,d.ib,d.yz,d.yK,f.Hw,g.kc,m.Z,h.C,I.W,v.C,Z.X,A.O],pipes:[S.X$],styles:[".role-content[_ngcontent-%COMP%]{overflow:auto;overflow-y:hidden}.info-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),t}()},2043:function(e,t,n){"use strict";n.d(t,{d:function(){return T}});var s=n(60611),a=n(65249),o=n(4230),u=n(84140),l=n(93215),c=n(26019),p=n(68416),d=n(31572),f=n(84608),g=n(57629),m=n(59403),h=n(15980),I=n(61511),v=n(77889),Z=n(67806),A=n(48160);function S(e,t){if(1&e&&(d._UZ(0,"app-users-list",6),d.ALo(1,"translate")),2&e){var n=d.oxw();d.Q6J("tableId",n.tableId)("noUsersFoundLabel",d.lcZ(1,6,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.NO_ASSOCIATED_USERS"))("users",n.associatedUsers)("selection",n.selection)("disableRouting",n.disableRouting)("displayedColumns",n.displayedColumns)}}function E(e,t){1&e&&d._UZ(0,"mat-spinner",7)}var T=function(){var e=function(){function e(t,n,r,a,u){i(this,e),this.dialog=t,this.router=n,this.authResolver=r,this.userManager=a,this.entityStorageService=u,this.loading=!1,this.selection=new o.Ov(!1,[]),this.associatedUsers=[],this.tableId=s.It,this.displayedColumns=["select","id","user","name"]}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.user=this.entityStorageService.getEntity(),this.userManager.getUsersBySpecificUser(this.user.id).subscribe(function(t){e.associatedUsers=t,e.setAuth(),e.loading=!1})}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.userManager.getUsersBySpecificUser(this.user.id).subscribe(function(t){e.associatedUsers=t,e.selection.clear(),e.loading=!1})}},{key:"setAuth",value:function(){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()}},{key:"onAdd",value:function(){var e=this,t=(0,u.kZ)();t.width="1250px",t.data={userId:this.user.id,theme:"user-theme",isService:!0,target:"USER"},this.dialog.open(l.l,t).afterClosed().subscribe(function(t){t&&e.refreshTable()})}},{key:"onRemove",value:function(){var e=this,t=(0,u.kZ)();t.width="650px",t.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(c.B,t).afterClosed().subscribe(function(t){t&&(e.authResolver.isAuthorized("getUsersBySpecificUser_User_policy",[e.user])?e.refreshTable():e.router.navigate(["/myProfile"]))})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(d.Y36(f.uw),d.Y36(g.F0),d.Y36(p.x4),d.Y36(a.Fv),d.Y36(p.fb))},e.\u0275cmp=d.Xpm({type:e,selectors:[["app-user-settings-associated-users"]],decls:13,vars:12,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"tableId","noUsersFoundLabel","users","selection","disableRouting","displayedColumns",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"tableId","noUsersFoundLabel","users","selection","disableRouting","displayedColumns"],[1,"mr-auto","ml-auto"]],template:function(e,t){1&e&&(d.TgZ(0,"div"),d.TgZ(1,"h1",0),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"perun-web-apps-refresh-button",1),d.NdJ("refresh",function(){return t.refreshTable()}),d.qZA(),d.TgZ(5,"button",2),d.NdJ("click",function(){return t.onAdd()}),d._uU(6),d.ALo(7,"translate"),d.qZA(),d.TgZ(8,"button",3),d.NdJ("click",function(){return t.onRemove()}),d._uU(9),d.ALo(10,"translate"),d.qZA(),d.YNc(11,S,2,8,"app-users-list",4),d.qZA(),d.YNc(12,E,1,0,"mat-spinner",5)),2&e&&(d.xp6(2),d.Oqu(d.lcZ(3,6,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.TITLE")),d.xp6(4),d.hij(" ",d.lcZ(7,8,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.ADD")," "),d.xp6(2),d.Q6J("disabled",0===t.selection.selected.length),d.xp6(1),d.hij(" ",d.lcZ(10,10,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.REMOVE")," "),d.xp6(2),d.Q6J("ngIf",!t.loading),d.xp6(1),d.Q6J("ngIf",t.loading))},directives:[m.t,h.lW,I.O5,v.C,Z.$g],pipes:[A.X$],styles:[""]}),e}()},52384:function(e,t,n){"use strict";n.d(t,{R:function(){return N}});var s=n(4230),a=n(65249),o=n(60611),u=n(84140),l=n(93215),c=n(26019),p=n(68416),d=n(31572),f=n(57629),g=n(84608),m=n(59403),h=n(61511),I=n(15980),v=n(67806),Z=n(77889),A=n(48160);function S(e,t){if(1&e){var n=d.EpF();d.TgZ(0,"button",6),d.NdJ("click",function(){return d.CHM(n),d.oxw().onAdd()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}2&e&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.CREATE"),"\n"))}function E(e,t){if(1&e){var n=d.EpF();d.TgZ(0,"button",7),d.NdJ("click",function(){return d.CHM(n),d.oxw().onRemove()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}if(2&e){var i=d.oxw();d.Q6J("disabled",0===i.selection.selected.length),d.xp6(1),d.hij(" ",d.lcZ(2,2,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.DELETE"),"\n")}}function T(e,t){1&e&&d._UZ(0,"mat-spinner",8)}function b(e,t){if(1&e&&(d._UZ(0,"app-users-list",9),d.ALo(1,"translate")),2&e){var n=d.oxw();d.Q6J("tableId",n.tableId)("noUsersFoundLabel",d.lcZ(1,6,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.NO_IDENTITIES"))("users",n.identities)("selection",n.selection)("routeToAdmin",n.routeToAdminSection)("displayedColumns",n.displayedColumns)}}var N=function(){var e=function(){function e(t,n,r,a,u,l){i(this,e),this.route=t,this.dialog=n,this.router=r,this.userManager=a,this.authResolver=u,this.store=l,this.loading=!1,this.selection=new s.Ov(!1,[]),this.identities=[],this.tableId=o.Iz,this.displayedColumns=["select","id","user","name"],this.routeToAdminSection=!0,this.targetTitle="SERVICE",this.targetDescription="SERVICE"}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.route.parent.params.subscribe(function(t){e.userId=t.userId,void 0===e.userId&&(e.targetTitle="SERVICE",e.targetDescription="SELF",e.userId=e.store.getPerunPrincipal().userId,e.routeToAdminSection=!1),e.setAuthRights(),e.refreshTable()})}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.userManager.getSpecificUsersByUser(this.userId).subscribe(function(t){e.identities=t,e.selection.clear(),e.loading=!1})}},{key:"setAuthRights",value:function(){this.addIdentity=this.authResolver.isPerunAdmin(),this.removeIdentity=this.authResolver.isAuthorized("removeSpecificUserOwner_User_User_policy",[{id:this.userId,beanName:"User"}])}},{key:"onAdd",value:function(){var e=this,t=(0,u.kZ)();t.width="1250px",t.data={userId:this.userId,theme:"user-theme",isService:!1,target:this.targetTitle},this.dialog.open(l.l,t).afterClosed().subscribe(function(t){t&&e.refreshTable()})}},{key:"onRemove",value:function(){var e=this,t=(0,u.kZ)();t.width="650px",t.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(c.B,t).afterClosed().subscribe(function(t){t&&e.refreshTable()})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(d.Y36(f.gz),d.Y36(g.uw),d.Y36(f.F0),d.Y36(a.Fv),d.Y36(p.x4),d.Y36(p.d6))},e.\u0275cmp=d.Xpm({type:e,selectors:[["app-user-settings-service-identities"]],decls:8,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","class","mr-2 action-button","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","class","mr-2","color","warn",3,"disabled","click",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"tableId","noUsersFoundLabel","users","selection","routeToAdmin","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,"mr-auto","ml-auto"],[3,"tableId","noUsersFoundLabel","users","selection","routeToAdmin","displayedColumns"]],template:function(e,t){1&e&&(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 t.refreshTable()}),d.qZA(),d.YNc(4,S,3,3,"button",2),d.YNc(5,E,3,4,"button",3),d.YNc(6,T,1,0,"mat-spinner",4),d.YNc(7,b,2,8,"app-users-list",5)),2&e&&(d.xp6(1),d.Oqu(d.lcZ(2,5,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.TITLE")),d.xp6(3),d.Q6J("ngIf",t.addIdentity),d.xp6(1),d.Q6J("ngIf",t.removeIdentity),d.xp6(1),d.Q6J("ngIf",t.loading),d.xp6(1),d.Q6J("ngIf",!t.loading))},directives:[m.t,h.O5,I.lW,v.$g,Z.C],pipes:[A.X$],styles:[""]}),e}()},65515:function(e,t,n){"use strict";n.r(t),n.d(t,{UsersModule:function(){return Oe}});var s=n(61511),a=n(57629),o=n(15879),u=n(31612),l=n(31572),c=n(21575),p=function(){var e=function e(){i(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=l.Xpm({type:e,selectors:[["app-user-settings"]],hostVars:2,hostBindings:function(e,t){2&e&&l.ekj("router-component",t.true)},decls:1,vars:0,template:function(e,t){1&e&&l._UZ(0,"app-animated-router-outlet")},directives:[c.A],styles:[""]}),e}(),d=n(65249),f=n(67806),g=n(8557);function m(e,t){1&e&&l._UZ(0,"mat-spinner",2)}function h(e,t){if(1&e&&(l.TgZ(0,"div"),l._UZ(1,"perun-web-apps-menu-buttons-field",3),l.qZA()),2&e){var n=l.oxw();l.xp6(1),l.Q6J("items",n.navItems)("size","small")}}var I=function(){var e=function(){function e(t,n){i(this,e),this.route=t,this.userManager=n,this.navItems=[],this.loading=!1}return r(e,[{key:"ngOnInit",value:function(){var e=this;window.location.pathname.startsWith("/admin")?(this.loading=!0,this.route.parent.parent.params.subscribe(function(t){e.userManager.getUserById(t.userId).subscribe(function(t){e.isServiceUser=t.serviceUser,e.initNavItems(),e.loading=!1},function(){return e.loading=!1})})):this.initNavItems()}},{key:"initNavItems",value:function(){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-settings2",url:"guiConfig",label:"MENU_ITEMS.USER.GUI_CONFIG",style:"user-btn"})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(l.Y36(a.gz),l.Y36(d.Fv))},e.\u0275cmp=l.Xpm({type:e,selectors:[["app-user-settings-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&l.ekj("router-component",t.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,t){1&e&&(l.YNc(0,m,1,0,"mat-spinner",0),l.YNc(1,h,2,2,"div",1)),2&e&&(l.Q6J("ngIf",t.loading),l.xp6(1),l.Q6J("ngIf",!t.loading))},directives:[s.O5,f.$g,g.L],styles:[""]}),e}(),v=n(95690),Z=n(41939),A=n(84140),S=n(13857),E=n(66283),T=n(4786),b=n(71522),N=n(48160);function R(e,t){if(1&e&&(l.TgZ(0,"mat-option",5),l._uU(1),l.qZA()),2&e){var n=t.$implicit;l.Q6J("value",n),l.xp6(1),l.hij(" ",n," ")}}var U=function(){var e=function(){function e(t){i(this,e),this.guiConfigService=t,this.tablePageSizeOptions=A.f7}return r(e,[{key:"ngOnInit",value:function(){this.preferredTablePageSize=this.guiConfigService.getNumber(S.Rc)}},{key:"updatePreferredTablePageSize",value:function(){this.guiConfigService.setNumber(S.Rc,this.preferredTablePageSize)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(l.Y36(S.Ng))},e.\u0275cmp=l.Xpm({type:e,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(e,t){1&e&&(l.TgZ(0,"h1",0),l._uU(1),l.ALo(2,"translate"),l.qZA(),l.TgZ(3,"div",1),l.TgZ(4,"mat-form-field",2),l.TgZ(5,"mat-label"),l._uU(6),l.ALo(7,"translate"),l.qZA(),l.TgZ(8,"mat-select",3),l.NdJ("valueChange",function(e){return t.preferredTablePageSize=e})("valueChange",function(){return t.updatePreferredTablePageSize()}),l.YNc(9,R,2,2,"mat-option",4),l.qZA(),l.qZA(),l.qZA()),2&e&&(l.xp6(1),l.Oqu(l.lcZ(2,4,"USER_DETAIL.SETTINGS.GUI_CONFIG.TITLE")),l.xp6(5),l.Oqu(l.lcZ(7,6,"USER_DETAIL.SETTINGS.GUI_CONFIG.PREF_TABLE_PAGE_SIZE")),l.xp6(2),l.Q6J("value",t.preferredTablePageSize),l.xp6(1),l.Q6J("ngForOf",t.tablePageSizeOptions))},directives:[E.KE,E.hX,T.gD,s.sg,b.ey],pipes:[N.X$],styles:[""]}),e}(),x=n(71956),_=n(68416),O=n(48958),y=n(66297),C=n(43691),L=n(36922),w=n(22196),D=function(){return{color:"black"}},q=function(){return["/myProfile"]};function Y(e,t){if(1&e&&(l.TgZ(0,"div",1),l._UZ(1,"perun-web-apps-back-button"),l.TgZ(2,"div",2),l._UZ(3,"mat-icon",3),l.ALo(4,"translate"),l.TgZ(5,"div",4),l.TgZ(6,"div",5),l.TgZ(7,"a",6),l._uU(8),l.ALo(9,"userFullName"),l.qZA(),l.TgZ(10,"span",7),l._uU(11),l.qZA(),l.qZA(),l.TgZ(12,"span",8),l._uU(13),l.ALo(14,"translate"),l.ALo(15,"translate"),l.qZA(),l.qZA(),l.qZA(),l._UZ(16,"app-animated-router-outlet"),l.qZA()),2&e){var n=l.oxw();l.xp6(3),l.s9C("matTooltip",l.lcZ(4,8,"MENU_ITEMS.USER.ENTITY")),l.Q6J("ngStyle",l.DdM(16,D)),l.xp6(4),l.Q6J("routerLink",l.DdM(17,q)),l.xp6(1),l.hij(" ",l.lcZ(9,10,n.user)," "),l.xp6(3),l.hij(" \xa0#",n.user.id," "),l.xp6(2),l.lnq(" ",l.lcZ(14,12,"MENU_ITEMS.USER.ENTITY"),", ",l.lcZ(15,14,"MENU_ITEMS.USER.USER_TYPE"),": ",n.getUserType()," ")}}var M=function(){var e=function(){function e(t,n,s){i(this,e),this.sideMenuService=t,this.store=n,this.router=s}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.path=this.router.url,this.router.events.subscribe(function(){e.path=e.router.url}),this.principal=this.store.getPerunPrincipal(),this.user=this.principal.user,this.sideMenuService.setUserItems([])}},{key:"getUserType",value:function(){return this.user.serviceUser?"Service":"Person"}}]),e}();return e.\u0275fac=function(t){return new(t||e)(l.Y36(O.D),l.Y36(_.d6),l.Y36(a.F0))},e.\u0275cmp=l.Xpm({type:e,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(e,t){1&e&&l.YNc(0,Y,17,18,"div",0),2&e&&l.Q6J("ngIf",void 0!==t.user)},directives:[s.O5,y.W,C.Hw,L.gM,s.PC,a.yS,c.A],pipes:[N.X$,w.d],styles:[""]}),e}(),J=n(7233),k=n(52384),Q=n(75585),F=n(2898),P=n(84608),V=n(15980);function G(e,t){1&e&&l._UZ(0,"mat-spinner",11)}function B(e,t){if(1&e){var n=l.EpF();l.TgZ(0,"button",12),l.NdJ("click",function(){return l.CHM(n),l.oxw(2).editUser()}),l.TgZ(1,"mat-icon"),l._uU(2,"edit"),l.qZA(),l.qZA()}}var j=function(){return{color:"black"}},H=function(e){return["/myProfile/service-identities",e]};function z(e,t){if(1&e&&(l.TgZ(0,"div",1),l._UZ(1,"perun-web-apps-back-button"),l.YNc(2,G,1,0,"mat-spinner",2),l.TgZ(3,"div",3),l._UZ(4,"mat-icon",4),l.ALo(5,"translate"),l.TgZ(6,"div",5),l.TgZ(7,"div",6),l.TgZ(8,"a",7),l._uU(9),l.ALo(10,"userFullName"),l.qZA(),l.TgZ(11,"span",8),l._uU(12),l.qZA(),l.YNc(13,B,3,0,"button",9),l.qZA(),l.TgZ(14,"div"),l._uU(15),l.ALo(16,"translate"),l.qZA(),l.TgZ(17,"span",10),l._uU(18),l.ALo(19,"translate"),l.ALo(20,"translate"),l.qZA(),l.qZA(),l.qZA(),l._UZ(21,"app-animated-router-outlet"),l.qZA()),2&e){var n=l.oxw();l.xp6(2),l.Q6J("ngIf",n.loading),l.xp6(2),l.s9C("matTooltip",l.lcZ(5,12,"MENU_ITEMS.USER.ENTITY")),l.Q6J("ngStyle",l.DdM(22,j)),l.xp6(4),l.Q6J("routerLink",l.VKq(23,H,n.user.id)),l.xp6(1),l.hij(" ",l.lcZ(10,14,n.user)," "),l.xp6(3),l.hij(" \xa0#",n.user.id," "),l.xp6(1),l.Q6J("ngIf",n.authResolver.isPerunAdmin()),l.xp6(2),l.AsE("",l.lcZ(16,16,"ADMIN_USER.UUID"),": ",n.user.uuid,""),l.xp6(3),l.lnq(" ",l.lcZ(19,18,"MENU_ITEMS.USER.ENTITY"),", ",l.lcZ(20,20,"MENU_ITEMS.USER.USER_TYPE"),": ",n.getUserType()," ")}}var W,X=function(){var e=function(){function e(t,n,s,r,a,o,u){i(this,e),this.sideMenuService=t,this.usersService=n,this.sideMenuItemService=s,this.route=r,this.dialog=a,this.authResolver=o,this.entityStorageService=u,this.loading=!1}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.route.params.subscribe(function(t){var n=t.userId;e.entityStorageService.setEntity({id:Number(n),beanName:"User"}),e.usersService.getUserById(n).subscribe(function(t){e.user=t;var n=e.sideMenuItemService.parseServiceIdentity(t);e.sideMenuService.setUserItems([n]),e.loading=!1},function(){return e.loading=!1})})}},{key:"getUserType",value:function(){return this.user.serviceUser?"Service":"Person"}},{key:"editUser",value:function(){var e=this,t=(0,A.kZ)();t.width="450px",t.data={theme:"admin-theme",user:this.user},this.dialog.open(F.x,t).afterClosed().subscribe(function(t){t&&e.usersService.getUserById(e.user.id).subscribe(function(t){e.user=t})})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(l.Y36(O.D),l.Y36(d.Fv),l.Y36(Q.V),l.Y36(a.gz),l.Y36(P.uw),l.Y36(_.x4),l.Y36(_.fb))},e.\u0275cmp=l.Xpm({type:e,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(e,t){1&e&&l.YNc(0,z,22,25,"div",0),2&e&&l.Q6J("ngIf",void 0!==t.user)},directives:[s.O5,y.W,C.Hw,L.gM,s.PC,a.yS,c.A,f.$g,V.lW],pipes:[N.X$,w.d],styles:[""]}),e}(),$=function(){var e=function(){function e(){i(this,e),this.navItems=[]}return r(e,[{key:"ngOnInit",value:function(){this.initNavItems()}},{key:"initNavItems",value:function(){this.navItems=[{cssIcon:"perun-user",url:"associated-users",label:"MENU_ITEMS.USER.ASSOCIATED_USERS",style:"user-btn"}]}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=l.Xpm({type:e,selectors:[["app-service-identity-overview"]],decls:1,vars:2,consts:[[3,"items","size"]],template:function(e,t){1&e&&l._UZ(0,"perun-web-apps-menu-buttons-field",0),2&e&&l.Q6J("items",t.navItems)("size","small")},directives:[g.L],styles:[""]}),e}(),K=n(2043),ee=[{path:"",component:M,children:[{path:"",component:x.Z,data:{animation:"UserOverviewPage"}},{path:"attributes",component:v.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:o.j,data:{animation:"UserOrganizationsPage",showPrincipal:!0}},{path:"groups",component:u.u,data:{animation:"UserGroupsPage",showPrincipal:!0}},{path:"roles",component:J.t,data:{animation:"UserRolesPage"}},{path:"service-identities",component:k.R,data:{animation:"UserServiceIdentities"}},{path:"settings",component:p,children:[{path:"",component:I,data:{animation:"UserSettingsOverviewPage"}},{path:"passwordReset",component:Z.Nj,data:{animation:"PasswordResetPage"}},{path:"guiConfig",component:U,data:{animation:"UserAppConfigurationPage"}}]}]},{path:"service-identities/:userId",component:X,children:[{path:"",component:$},{path:"associated-users",component:K.d}]}],te=function(){var e=function e(){i(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=l.oAB({type:e}),e.\u0275inj=l.cJS({imports:[[a.Bz.forChild(ee)],a.Bz]}),e}(),ne=n(40084),ie=n(80340),se=n(16073),re=n(25122),ae=n(45001),oe=n(58623),ue=n(67033),le=n(55109),ce=n(91010),pe=n(29236),de=n(71403),fe=n(45994),ge=n(27521),me=n(15812),he=n(54810),Ie=n(27679),ve=n(73005),Ze=n(27439),Ae=n(70663),Se=n(88975),Ee=n(10033),Te=n(8055),be=n(4253),Ne=n(22727),Re=n(41050),Ue=n(7423),xe=n(22280),_e=n(28780),Oe=((W=function e(t){i(this,e),this.translate=t,t.addLangs(["en","cs"])}).\u0275fac=function(e){return new(e||W)(l.LFG(N.sK))},W.\u0275mod=l.oAB({type:W}),W.\u0275inj=l.cJS({imports:[[s.ez,te,ne.Bb,ie.c,E.lN,se.UX,se.u5,C.Ps,re.SJ,ae.To,N.aw.forChild({}),V.ot,oe.JX,ue.p0,le.Nh,ce.dp,V.ot,pe.p9,P.Is,T.LD,de.ZX,f.Cq,fe.Cv,L.AV,ge.rP,me.FA,b.XK,he.Fk,Ie.t,b.si,ve.TU,Ze.QW,Ae.T5,Se._t,Ze.QW,Ee.Hi,Te.Tx,be.Cl,Ne.r,Re.g,Z.ez,Ue.r,xe.d4,_e.m]]}),W)}}])}(); \ No newline at end of file diff --git a/dist/apps/admin-gui/515-es5.77e27303f50c4be90525.js b/dist/apps/admin-gui/515-es5.77e27303f50c4be90525.js deleted file mode 100644 index 2800534b6..000000000 --- a/dist/apps/admin-gui/515-es5.77e27303f50c4be90525.js +++ /dev/null @@ -1 +0,0 @@ -!function(){function e(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||t(e)||function(){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 t(e,t){if(e){if("string"==typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n0)}}function b(e,t){1&e&&(d.TgZ(0,"app-alert",15),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&e&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"DIALOGS.CONNECT_IDENTITY.SEARCH_HINT")," "))}function N(e,t){1&e&&(d.TgZ(0,"app-alert",16),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&e&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"DIALOGS.CONNECT_IDENTITY.NO_IDENTITIES")," "))}function R(e,t){1&e&&d._UZ(0,"mat-spinner",17)}var U=function(){var e=function(){function e(t,n,s,r,a,o){i(this,e),this.dialogRef=t,this.data=n,this.userManager=s,this.storeService=r,this.notificator=a,this.translate=o,this.loading=!1,this.selection=new l.Ov(!1,[]),this.firstSearchDone=!1,this.displayedColumns=["select","id","user","name","email","logins","organization"],this.tableId=u.Iz}return r(e,[{key:"ngOnInit",value:function(){this.target=this.data.target,this.theme=this.data.theme,this.userId=this.data.userId,this.isService=this.data.isService,this.searchCtrl=new p.NI("",[p.kI.required,p.kI.pattern(".*[\\S]+.*")])}},{key:"onAdd",value:function(){var e,t,n=this;this.loading=!0,this.isService?(e=this.selection.selected[0].id,t=this.userId):(e=this.userId,t=this.selection.selected[0].id),this.userManager.addSpecificUserOwner(e,t).subscribe(function(){n.notificator.showSuccess(n.translate.instant("DIALOGS.CONNECT_IDENTITY.SUCCESS")),n.dialogRef.close(!0)})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSearchByString",value:function(){var e=this;if(this.searchCtrl.invalid)this.searchCtrl.markAllAsTouched();else{this.loading=!0,this.firstSearchDone=!0;var t=[c.r.USER_DEF_ORGANIZATION,c.r.USER_DEF_PREFERRED_MAIL];t=t.concat(this.storeService.getLoginAttributeNames()),this.userManager.findRichUsersWithAttributes(this.searchCtrl.value,t).subscribe(function(t){e.identities=e.filterIdentities(t),e.loading=!1},function(){e.loading=!1})}}},{key:"onKeyInput",value:function(e){"Enter"===e.key&&this.onSearchByString()}},{key:"filterIdentities",value:function(e){return e.filter(this.isService?function(e){return!e.serviceUser}:function(e){return e.serviceUser})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(d.Y36(s.so),d.Y36(s.WI),d.Y36(a.Fv),d.Y36(o.d6),d.Y36(o.V6),d.Y36(f.sK))},e.\u0275cmp=d.Xpm({type:e,selectors:[["app-connect-identity-dialog"]],decls:26,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"],["mat-flat-button","","color","primary",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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"tableId","displayedColumns","users","disableRouting","selection",4,"ngIf"],[3,"tableId","displayedColumns","users","disableRouting","selection"],["alert_type","info"],["alert_type","warn"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(d.TgZ(0,"div",0),d.NdJ("keyup",function(e){return t.onKeyInput(e)}),d.TgZ(1,"h1",1),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"div",2),d.TgZ(5,"mat-form-field",3),d.TgZ(6,"label"),d._UZ(7,"input",4),d.ALo(8,"translate"),d.qZA(),d.TgZ(9,"mat-error"),d._uU(10),d.ALo(11,"translate"),d.qZA(),d.qZA(),d.TgZ(12,"button",5),d.NdJ("click",function(){return t.onSearchByString()}),d.TgZ(13,"mat-icon"),d._uU(14,"search"),d.qZA(),d.qZA(),d.YNc(15,T,2,1,"div",6),d.YNc(16,b,3,3,"app-alert",7),d.YNc(17,N,3,3,"app-alert",8),d.qZA(),d.YNc(18,R,1,0,"mat-spinner",9),d.TgZ(19,"div",10),d.TgZ(20,"button",11),d.NdJ("click",function(){return t.onCancel()}),d._uU(21),d.ALo(22,"translate"),d.qZA(),d.TgZ(23,"button",12),d.NdJ("click",function(){return t.onAdd()}),d._uU(24),d.ALo(25,"translate"),d.qZA(),d.qZA(),d.qZA()),2&e&&(d.Tol(t.theme),d.xp6(2),d.Oqu(d.lcZ(3,15,"DIALOGS.CONNECT_IDENTITY.TITLE_"+t.target)),d.xp6(5),d.s9C("placeholder",d.lcZ(8,17,"DIALOGS.CONNECT_IDENTITY.SEARCH")),d.Q6J("formControl",t.searchCtrl),d.xp6(3),d.hij(" ",d.lcZ(11,19,"DIALOGS.CONNECT_IDENTITY.EMPTY_SEARCH_MESSAGE")," "),d.xp6(2),d.Q6J("disabled",t.loading),d.xp6(3),d.Q6J("ngIf",!t.loading),d.xp6(1),d.Q6J("ngIf",!t.firstSearchDone),d.xp6(1),d.Q6J("ngIf",!t.loading&&t.firstSearchDone&&0===t.identities.length),d.xp6(1),d.Q6J("ngIf",t.loading),d.xp6(3),d.hij(" ",d.lcZ(22,21,"DIALOGS.CONNECT_IDENTITY.CANCEL")," "),d.xp6(2),d.Q6J("disabled",0===t.selection.selected.length),d.xp6(1),d.hij(" ",d.lcZ(25,23,"DIALOGS.CONNECT_IDENTITY.CONNECT")," "))},directives:[s.uh,s.xY,g.KE,m.Nt,p.Fj,p.JJ,p.oH,g.TO,h.lW,I.Hw,v.O5,s.H8,Z.C,A.w,S.$g],pipes:[f.X$],styles:[".search-field[_ngcontent-%COMP%]{width:300px}.search-btn[_ngcontent-%COMP%]{width:50px}"]}),e}()},26019:function(e,t,n){"use strict";n.d(t,{B:function(){return S}});var s=n(65249),a=n(84608),o=n(68416),u=n(67033),l=n(31572),c=n(48160),p=n(61511),d=n(15980),f=n(39571),g=n(22196);function m(e,t){1&e&&l._UZ(0,"th",13)}function h(e,t){if(1&e&&(l.TgZ(0,"td",14),l._uU(1),l.ALo(2,"userFullName"),l.qZA()),2&e){var n=t.$implicit;l.xp6(1),l.hij(" ",l.lcZ(2,1,n)," ")}}function I(e,t){1&e&&l._UZ(0,"tr",15)}function v(e,t){1&e&&l._UZ(0,"tr",16)}function Z(e,t){1&e&&(l.TgZ(0,"app-alert",17),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&e&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"DIALOGS.DISCONNECT_IDENTITY.WARNING_DISCONNECT_YOURSELF")," "))}function A(e,t){1&e&&(l.TgZ(0,"app-alert",17),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&e&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"DIALOGS.DISCONNECT_IDENTITY.WARNING_LAST_USER")," "))}var S=function(){var e=function(){function e(t,n,s,r,a,o){i(this,e),this.dialogRef=t,this.data=n,this.userManager=s,this.notificator=r,this.translate=a,this.store=o,this.displayedColumns=["name"]}return r(e,[{key:"ngOnInit",value:function(){var e,t=this;this.targetTitle=this.data.targetTitle,this.targetDescription=this.data.targetDescription,this.theme=this.data.theme,this.userId=Number(this.data.userId),this.dataSource=new u.by([this.data.specificUser]),this.isService=this.data.isService,this.isService?(e=this.userId,this.disconnectingSelf=this.dataSource.data[0].id===this.store.getPerunPrincipal().userId):(e=this.dataSource.data[0].id,this.disconnectingSelf=this.userId===this.store.getPerunPrincipal().userId),this.userManager.getUsersBySpecificUser(e).subscribe(function(e){t.disconnectingLastOwner=1===e.length})}},{key:"onConfirm",value:function(){var e,t,n=this;this.isService?(e=this.dataSource.data[0].id,t=this.userId):(e=this.userId,t=this.dataSource.data[0].id),this.userManager.removeSpecificUserOwner(e,t).subscribe(function(){n.notificator.showSuccess(n.translate.instant("DIALOGS.DISCONNECT_IDENTITY.SUCCESS")),n.dialogRef.close(!0)})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(l.Y36(a.so),l.Y36(a.WI),l.Y36(s.Fv),l.Y36(o.V6),l.Y36(c.sK),l.Y36(o.d6))},e.\u0275cmp=l.Xpm({type:e,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"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["alert_type","warn"]],template:function(e,t){1&e&&(l.TgZ(0,"h1",0),l._uU(1),l.ALo(2,"translate"),l.qZA(),l.TgZ(3,"div"),l.TgZ(4,"div",1),l.TgZ(5,"p"),l._uU(6),l.ALo(7,"translate"),l.qZA(),l.TgZ(8,"div",2),l._uU(9),l.ALo(10,"translate"),l.qZA(),l.TgZ(11,"table",3),l.ynx(12,4),l.YNc(13,m,1,0,"th",5),l.YNc(14,h,3,3,"td",6),l.BQk(),l.YNc(15,I,1,0,"tr",7),l.YNc(16,v,1,0,"tr",8),l.qZA(),l.YNc(17,Z,3,3,"app-alert",9),l.YNc(18,A,3,3,"app-alert",9),l.qZA(),l.TgZ(19,"div",10),l.TgZ(20,"button",11),l.NdJ("click",function(){return t.onCancel()}),l._uU(21),l.ALo(22,"translate"),l.qZA(),l.TgZ(23,"button",12),l.NdJ("click",function(){return t.onConfirm()}),l._uU(24),l.ALo(25,"translate"),l.qZA(),l.qZA(),l.qZA()),2&e&&(l.xp6(1),l.Oqu(l.lcZ(2,13,"DIALOGS.DISCONNECT_IDENTITY.TITLE_"+t.targetTitle)),l.xp6(2),l.Tol(t.theme),l.xp6(3),l.Oqu(l.lcZ(7,15,"DIALOGS.DISCONNECT_IDENTITY.DESCRIPTION_"+t.targetDescription)),l.xp6(3),l.hij(" ",l.lcZ(10,17,"DIALOGS.DISCONNECT_IDENTITY.ASK")," "),l.xp6(2),l.Q6J("dataSource",t.dataSource),l.xp6(4),l.Q6J("matHeaderRowDef",t.displayedColumns),l.xp6(1),l.Q6J("matRowDefColumns",t.displayedColumns),l.xp6(1),l.Q6J("ngIf",t.disconnectingSelf),l.xp6(1),l.Q6J("ngIf",t.disconnectingLastOwner),l.xp6(3),l.hij(" ",l.lcZ(22,19,"DIALOGS.DISCONNECT_IDENTITY.CANCEL")," "),l.xp6(3),l.hij(" ",l.lcZ(25,21,"DIALOGS.DISCONNECT_IDENTITY.REMOVE")," "))},directives:[a.uh,a.xY,u.BZ,u.w1,u.fO,u.Dz,u.as,u.nj,p.O5,a.H8,d.lW,u.ge,u.ev,u.XQ,u.Gk,f.w],pipes:[c.X$,g.d],styles:[""]}),e}()},2898:function(e,t,n){"use strict";n.d(t,{x:function(){return A}});var s=n(65249),a=n(84608),o=n(68416),u=n(16073),l=n(31572),c=n(48160),p=n(66283),d=n(80340),f=n(61511),g=n(15980);function m(e,t){1&e&&(l.TgZ(0,"mat-error"),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&e&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function h(e,t){1&e&&(l.TgZ(0,"mat-error"),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&e&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function I(e,t){1&e&&(l.TgZ(0,"mat-error"),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&e&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_FIRST_NAME")))}function v(e,t){1&e&&(l.TgZ(0,"mat-error"),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&e&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function Z(e,t){1&e&&(l.TgZ(0,"mat-error"),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&e&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LAST_NAME")))}var A=function(){var e=function(){function e(t,n,s,r,a){i(this,e),this.dialogRef=t,this.data=n,this.userService=s,this.notificator=r,this.translateService=a,this.loading=!1}return r(e,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.titleBefore=new u.NI(this.data.user.titleBefore,[u.kI.pattern(".*[\\S]+.*"),u.kI.maxLength(129)]),this.titleAfter=new u.NI(this.data.user.titleAfter,[u.kI.pattern(".*[\\S]+.*"),u.kI.maxLength(129)]),this.firstName=new u.NI(this.data.user.firstName,[u.kI.required,u.kI.pattern(".*[\\S]+.*"),u.kI.maxLength(129)]),this.middleName=new u.NI(this.data.user.middleName,[u.kI.pattern(".*[\\S]+.*"),u.kI.maxLength(129)]),this.lastName=new u.NI(this.data.user.lastName,[u.kI.required,u.kI.pattern(".*[\\S]+.*"),u.kI.maxLength(129)])}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSave",value:function(){var e=this;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(function(){e.translateService.get("DIALOGS.EDIT_USER.SUCCESS").subscribe(function(t){e.notificator.showSuccess(t),e.dialogRef.close(!0)})},function(){return e.loading=!1})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(l.Y36(a.so),l.Y36(a.WI),l.Y36(s.Fv),l.Y36(o.V6),l.Y36(c.sK))},e.\u0275cmp=l.Xpm({type:e,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","","required","",3,"formControl","placeholder"],["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&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"div",1),l.TgZ(5,"mat-form-field"),l._UZ(6,"input",2),l.ALo(7,"translate"),l.YNc(8,m,3,3,"mat-error",3),l.qZA(),l.TgZ(9,"mat-form-field"),l._UZ(10,"input",2),l.ALo(11,"translate"),l.YNc(12,h,3,3,"mat-error",3),l.qZA(),l.TgZ(13,"mat-form-field"),l._UZ(14,"input",4),l.ALo(15,"translate"),l.YNc(16,I,3,3,"mat-error",3),l.qZA(),l.TgZ(17,"mat-form-field"),l._UZ(18,"input",2),l.ALo(19,"translate"),l.YNc(20,v,3,3,"mat-error",3),l.qZA(),l.TgZ(21,"mat-form-field"),l._UZ(22,"input",4),l.ALo(23,"translate"),l.YNc(24,Z,3,3,"mat-error",3),l.qZA(),l.qZA(),l.TgZ(25,"div",5),l.TgZ(26,"button",6),l.NdJ("click",function(){return t.onCancel()}),l._uU(27),l.ALo(28,"translate"),l.qZA(),l.TgZ(29,"button",7),l.NdJ("click",function(){return t.onSave()}),l._uU(30),l.ALo(31,"translate"),l.qZA(),l.qZA(),l.qZA()),2&e&&(l.Tol(t.theme),l.xp6(2),l.Oqu(l.lcZ(3,22,"DIALOGS.EDIT_USER.DIALOG_TITLE")),l.xp6(4),l.s9C("placeholder",l.lcZ(7,24,"DIALOGS.EDIT_USER.TITLE_BEFORE")),l.Q6J("formControl",t.titleBefore),l.xp6(2),l.Q6J("ngIf",t.titleBefore.invalid),l.xp6(2),l.s9C("placeholder",l.lcZ(11,26,"DIALOGS.EDIT_USER.TITLE_AFTER")),l.Q6J("formControl",t.titleAfter),l.xp6(2),l.Q6J("ngIf",t.titleAfter.invalid),l.xp6(2),l.s9C("placeholder",l.lcZ(15,28,"DIALOGS.EDIT_USER.FIRST_NAME")),l.Q6J("formControl",t.firstName),l.xp6(2),l.Q6J("ngIf",t.firstName.invalid),l.xp6(2),l.s9C("placeholder",l.lcZ(19,30,"DIALOGS.EDIT_USER.MIDDLE_NAME")),l.Q6J("formControl",t.middleName),l.xp6(2),l.Q6J("ngIf",t.middleName.invalid),l.xp6(2),l.s9C("placeholder",l.lcZ(23,32,"DIALOGS.EDIT_USER.LAST_NAME")),l.Q6J("formControl",t.lastName),l.xp6(2),l.Q6J("ngIf",t.lastName.invalid),l.xp6(3),l.hij(" ",l.lcZ(28,34,"DIALOGS.EDIT_USER.CANCEL")," "),l.xp6(2),l.Q6J("disabled",t.loading||t.firstName.invalid||t.lastName.invalid||t.titleBefore.invalid||t.titleAfter.invalid||t.middleName.invalid),l.xp6(1),l.hij(" ",l.lcZ(31,36,"DIALOGS.EDIT_USER.SAVE")," "))},directives:[a.xY,p.KE,d.Nt,u.Fj,u.JJ,u.oH,f.O5,u.Q7,a.H8,g.lW,p.TO],pipes:[c.X$],styles:[""]}),e}()},95690:function(e,t,n){"use strict";n.d(t,{u:function(){return v}});var s=n(68416),a=n(31572),o=n(57629),u=n(55109),l=n(61511),c=n(541),p=n(3417),d=n(48160);function f(e,t){1&e&&(a._uU(0),a.ALo(1,"translate")),2&e&&a.hij(" ",a.lcZ(1,1,"ADMIN_USER.ENTITY")," ")}function g(e,t){if(1&e&&a._UZ(0,"app-one-entity-attribute-page",5),2&e){var n=a.oxw();a.Q6J("entityId",n.userId)("entity","user")}}function m(e,t){1&e&&(a._uU(0),a.ALo(1,"translate"),a.ALo(2,"translate")),2&e&&a.AsE(" ",a.lcZ(1,2,"ADMIN_USER.ENTITY")," - ",a.lcZ(2,4,"FACILITY_DETAIL.ENTITY")," ")}function h(e,t){if(1&e&&a._UZ(0,"app-two-entity-attribute-page",6),2&e){var n=a.oxw(2);a.Q6J("firstEntity","user")("firstEntityId",n.userId)("secondEntity","facility")}}function I(e,t){1&e&&(a.TgZ(0,"mat-tab"),a.YNc(1,m,3,6,"ng-template",2),a.YNc(2,h,1,3,"ng-template",3),a.qZA())}var v=function(){var e=function(){function e(t,n,s){i(this,e),this.route=t,this.store=n,this.authResolver=s}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.route.parent.params.subscribe(function(t){e.userId=t.userId,void 0===e.userId&&(e.userId=e.store.getPerunPrincipal().userId),e.userFacilityAttAuth=e.authResolver.isAuthorized("getAssignedFacilities_User_policy",[{id:e.userId,beanName:"User"}])})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(o.gz),a.Y36(s.d6),a.Y36(s.x4))},e.\u0275cmp=a.Xpm({type:e,selectors:[["app-user-settings-attributes"]],hostVars:2,hostBindings:function(e,t){2&e&&a.ekj("router-component",t.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(e,t){1&e&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"mat-tab-group"),a.TgZ(4,"mat-tab",1),a.YNc(5,f,2,3,"ng-template",2),a.YNc(6,g,1,2,"ng-template",3),a.qZA(),a.YNc(7,I,3,0,"mat-tab",4),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,2,"USER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),a.xp6(6),a.Q6J("ngIf",t.userFacilityAttAuth))},directives:[u.SP,u.uX,u.uD,u.Vc,l.O5,c.t,p.Y],pipes:[d.X$],styles:[""]}),e}()},31612:function(e,n,s){"use strict";s.d(n,{u:function(){return R}});var a=s(68416),o=s(65249),u=s(60611),l=s(31572),c=s(57629),p=s(61511),d=s(59403),f=s(19139),g=s(67806),m=s(78364),h=s(48160);function I(e,t){1&e&&(l.TgZ(0,"h1",6),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&e&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.YOU_ARE_MEMBER"),"\n"))}function v(e,t){1&e&&(l.TgZ(0,"h1",6),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&e&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.USER_IS_MEMBER"),"\n"))}function Z(e,t){1&e&&l._UZ(0,"mat-spinner",7)}var A=function(){return["id","vo","name","description","status"]};function S(e,t){if(1&e&&l._UZ(0,"perun-web-apps-groups-list",8),2&e){var n=l.oxw();l.Q6J("tableId",n.tableId)("groups",n.membersGroups)("displayedColumns",l.DdM(5,A))("disableMembers",!1)("filter",n.memberFilterValue)}}function E(e,t){1&e&&l._UZ(0,"mat-spinner",7)}var T=function(){return["id","vo","name","description"]};function b(e,t){if(1&e&&l._UZ(0,"perun-web-apps-groups-list",8),2&e){var n=l.oxw(2);l.Q6J("tableId",n.adminTableId)("groups",n.adminsGroups)("displayedColumns",l.DdM(5,T))("disableMembers",!1)("filter",n.adminFilterValue)}}function N(e,t){if(1&e){var n=l.EpF();l.TgZ(0,"div",9),l.TgZ(1,"h1",6),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"perun-web-apps-refresh-button",1),l.NdJ("refresh",function(){return l.CHM(n),l.oxw().refreshAdminTable()}),l.qZA(),l.TgZ(5,"perun-web-apps-immediate-filter",2),l.NdJ("filter",function(e){return l.CHM(n),l.oxw().adminFilter(e)}),l.qZA(),l.YNc(6,E,1,0,"mat-spinner",3),l.YNc(7,b,1,6,"perun-web-apps-groups-list",4),l.qZA()}if(2&e){var i=l.oxw();l.xp6(2),l.hij(" ",l.lcZ(3,4,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.USER_IS_ADMIN")," "),l.xp6(3),l.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),l.xp6(1),l.Q6J("ngIf",i.adminRefresh),l.xp6(1),l.Q6J("ngIf",!i.adminRefresh)}}var R=function(){var e=function(){function e(t,n,s,r,a){i(this,e),this.usersService=t,this.memberService=n,this.groupService=s,this.store=r,this.route=a,this.memberFilterValue="",this.adminFilterValue="",this.vos=[],this.membersGroups=[],this.adminsGroups=[],this.tableId=u.KE,this.adminTableId=u.Sb}return r(e,[{key:"ngOnInit",value:function(){var e=this;!0===(this.showPrincipal=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(function(t){return e.userId=t.userId}),this.refreshAdminTable(),this.refreshMemberTable()}},{key:"memberFilter",value:function(e){this.memberFilterValue=e}},{key:"adminFilter",value:function(e){this.adminFilterValue=e}},{key:"refreshAdminTable",value:function(){var e=this;this.adminRefresh=!0,this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(function(t){e.adminsGroups=t,e.adminRefresh=!1})}},{key:"refreshMemberTable",value:function(){var e=this;this.memberRefresh=!0,this.membersGroups=[],this.usersService.getVosWhereUserIsMember(this.userId).subscribe(function(n){e.vos=n;var i,s=function(e,n){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=t(e))||n&&e&&"number"==typeof e.length){i&&(e=i);var s=0,r=function(){};return{s:r,n:function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,u=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return o=e.done,e},e:function(e){u=!0,a=e},f:function(){try{o||null==i.return||i.return()}finally{if(u)throw a}}}}(e.vos);try{var r=function(){var t=i.value;e.memberService.getMemberByUser(t.id,e.userId).subscribe(function(n){e.groupService.getMemberGroups(n.id).subscribe(function(n){e.membersGroups=e.membersGroups.concat(n),e.vos.indexOf(t)===e.vos.length-1&&(e.memberRefresh=!1)})})};for(s.s();!(i=s.n()).done;)r()}catch(a){s.e(a)}finally{s.f()}0===n.length&&(e.memberRefresh=!1)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(l.Y36(o.Fv),l.Y36(o.uq),l.Y36(o.ff),l.Y36(a.d6),l.Y36(c.gz))},e.\u0275cmp=l.Xpm({type:e,selectors:[["app-user-groups"]],hostVars:2,hostBindings:function(e,t){2&e&&l.ekj("router-component",t.true)},decls:7,vars:6,consts:[["class","page-subtitle",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","groups","displayedColumns","disableMembers","filter",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"ml-auto","mr-auto"],[3,"tableId","groups","displayedColumns","disableMembers","filter"],[1,"mt-5"]],template:function(e,t){1&e&&(l.YNc(0,I,3,3,"h1",0),l.YNc(1,v,3,3,"h1",0),l.TgZ(2,"perun-web-apps-refresh-button",1),l.NdJ("refresh",function(){return t.refreshMemberTable()}),l.qZA(),l.TgZ(3,"perun-web-apps-immediate-filter",2),l.NdJ("filter",function(e){return t.memberFilter(e)}),l.qZA(),l.YNc(4,Z,1,0,"mat-spinner",3),l.YNc(5,S,1,6,"perun-web-apps-groups-list",4),l.YNc(6,N,8,6,"div",5)),2&e&&(l.Q6J("ngIf",t.showPrincipal),l.xp6(1),l.Q6J("ngIf",!t.showPrincipal),l.xp6(2),l.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),l.xp6(1),l.Q6J("ngIf",t.memberRefresh),l.xp6(1),l.Q6J("ngIf",!t.memberRefresh),l.xp6(1),l.Q6J("ngIf",!t.showPrincipal))},directives:[p.O5,d.t,f.L,g.$g,m.W],pipes:[h.X$],styles:[""]}),e}()},15879:function(e,t,n){"use strict";n.d(t,{j:function(){return T}});var s=n(65249),a=n(68416),o=n(60611),u=n(31572),l=n(57629),c=n(61511),p=n(59403),d=n(19139),f=n(67806),g=n(97162),m=n(48160);function h(e,t){1&e&&(u.TgZ(0,"h1",6),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.YOU_ARE_MEMBER"),"\n"))}function I(e,t){1&e&&(u.TgZ(0,"h1",6),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_MEMBER"),"\n"))}function v(e,t){1&e&&u._UZ(0,"mat-spinner",7)}function Z(e,t){if(1&e&&u._UZ(0,"perun-web-apps-vos-list",8),2&e){var n=u.oxw();u.Q6J("displayedColumns",n.displayedColumns)("tableId",n.memberTableId)("filterValue",n.memberFilterValue)("vos",n.vosWhereIsMember)}}function A(e,t){1&e&&u._UZ(0,"mat-spinner",7)}function S(e,t){if(1&e&&u._UZ(0,"perun-web-apps-vos-list",8),2&e){var n=u.oxw(2);u.Q6J("displayedColumns",n.displayedColumns)("tableId",n.adminTableId)("filterValue",n.adminFilterValue)("vos",n.vosWhereIsAdmin)}}function E(e,t){if(1&e){var n=u.EpF();u.TgZ(0,"div",9),u.TgZ(1,"h1",6),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"perun-web-apps-refresh-button",1),u.NdJ("refresh",function(){return u.CHM(n),u.oxw().refreshAdminTable()}),u.qZA(),u.TgZ(5,"perun-web-apps-immediate-filter",2),u.NdJ("filter",function(e){return u.CHM(n),u.oxw().applyAdminFilter(e)}),u.qZA(),u.YNc(6,A,1,0,"mat-spinner",3),u.YNc(7,S,1,4,"perun-web-apps-vos-list",4),u.qZA()}if(2&e){var i=u.oxw();u.xp6(2),u.Oqu(u.lcZ(3,4,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_ADMIN")),u.xp6(3),u.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),u.xp6(1),u.Q6J("ngIf",i.adminRefresh),u.xp6(1),u.Q6J("ngIf",!i.adminRefresh)}}var T=function(){var e=function(){function e(t,n,s,r){i(this,e),this.usersService=t,this.authResolver=n,this.store=s,this.route=r,this.adminFilterValue="",this.memberFilterValue="",this.displayedColumns=["id","name"],this.adminTableId=o.YF,this.memberTableId=o.gc}return r(e,[{key:"ngOnInit",value:function(){var e=this;!0===(this.isMyProfile=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(function(t){return e.userId=t.userId}),this.refreshAdminTable(),this.refreshMemberTable()}},{key:"refreshMemberTable",value:function(){var e=this;this.memberRefresh=!0,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(function(t){e.vosWhereIsMember=t,e.memberRefresh=!1},function(){return e.memberRefresh=!1})}},{key:"refreshAdminTable",value:function(){var e=this;this.adminRefresh=!0,this.usersService.getVosWhereUserIsAdmin(this.userId).subscribe(function(t){e.vosWhereIsAdmin=t,e.adminRefresh=!1},function(){return e.adminRefresh=!1})}},{key:"applyMemberFilter",value:function(e){this.memberFilterValue=e}},{key:"applyAdminFilter",value:function(e){this.adminFilterValue=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(u.Y36(s.Fv),u.Y36(a.x4),u.Y36(a.d6),u.Y36(l.gz))},e.\u0275cmp=u.Xpm({type:e,selectors:[["app-user-organizations"]],hostVars:2,hostBindings:function(e,t){2&e&&u.ekj("router-component",t.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(e,t){1&e&&(u.YNc(0,h,3,3,"h1",0),u.YNc(1,I,3,3,"h1",0),u.TgZ(2,"perun-web-apps-refresh-button",1),u.NdJ("refresh",function(){return t.refreshMemberTable()}),u.qZA(),u.TgZ(3,"perun-web-apps-immediate-filter",2),u.NdJ("filter",function(e){return t.applyMemberFilter(e)}),u.qZA(),u.YNc(4,v,1,0,"mat-spinner",3),u.YNc(5,Z,1,4,"perun-web-apps-vos-list",4),u.YNc(6,E,8,6,"div",5)),2&e&&(u.Q6J("ngIf",t.isMyProfile),u.xp6(1),u.Q6J("ngIf",!t.isMyProfile),u.xp6(2),u.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),u.xp6(1),u.Q6J("ngIf",t.memberRefresh),u.xp6(1),u.Q6J("ngIf",!t.memberRefresh),u.xp6(1),u.Q6J("ngIf",!t.isMyProfile))},directives:[c.O5,p.t,d.L,f.$g,g.Z],pipes:[m.X$],styles:[""]}),e}()},71956:function(e,t,n){"use strict";n.d(t,{Z:function(){return R}});var s=n(65249),a=n(67033),o=n(68416),u=n(67004),l=n(84140),c=n(6527),p=n(31572),d=n(57629),f=n(84608),g=n(61511),m=n(8557),h=n(27439),I=n(15980),v=n(43691),Z=n(48160);function A(e,t){1&e&&p._UZ(0,"th",12)}function S(e,t){if(1&e&&(p.TgZ(0,"td",13),p._uU(1),p.qZA()),2&e){var n=t.$implicit;p.xp6(1),p.hij(" ",n.displayName,": ")}}function E(e,t){1&e&&p._UZ(0,"th",12)}function T(e,t){if(1&e){var n=p.EpF();p.TgZ(0,"td",14),p._uU(1),p.TgZ(2,"button",15),p.NdJ("click",function(){return p.CHM(n),p.oxw(2).changeEmail()}),p.TgZ(3,"mat-icon"),p._uU(4,"edit"),p.qZA(),p.qZA(),p.qZA()}if(2&e){var i=t.$implicit;p.xp6(1),p.hij(" ",i.value," ")}}function b(e,t){1&e&&p._UZ(0,"tr",16)}function N(e,t){if(1&e&&(p.TgZ(0,"div",2),p.TgZ(1,"mat-card",3),p.TgZ(2,"mat-card-header"),p.TgZ(3,"mat-card-title"),p.TgZ(4,"h1",4),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.qZA(),p.qZA(),p.TgZ(7,"mat-card-content"),p.TgZ(8,"table",5),p.ynx(9,6),p.YNc(10,A,1,0,"th",7),p.YNc(11,S,2,1,"td",8),p.BQk(),p.ynx(12,9),p.YNc(13,E,1,0,"th",7),p.YNc(14,T,5,1,"td",10),p.BQk(),p.YNc(15,b,1,0,"tr",11),p.qZA(),p.qZA(),p.qZA(),p.qZA()),2&e){var n=p.oxw();p.xp6(5),p.Oqu(p.lcZ(6,3,"USER_DETAIL.OVERVIEW.GENERAL_SETTINGS")),p.xp6(3),p.Q6J("dataSource",n.mailDataSource),p.xp6(7),p.Q6J("matRowDefColumns",n.displayedColumns)}}var R=function(){var e=function(){function e(t,n,s,r,a){i(this,e),this.userService=t,this.attributeService=n,this.storeService=s,this.route=r,this.dialog=a,this.navItems=[],this.isServiceUser=!1,this.displayedColumns=["name","value"],this.inMyProfile=!1}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.route.params.subscribe(function(t){void 0!==t.userId?e.userService.getUserById(t.userId).subscribe(function(t){e.user=t,e.isServiceUser=t.serviceUser,e.initNavItems()}):(e.inMyProfile=!0,e.userID=e.storeService.getPerunPrincipal().user.id,e.attributeService.getUserAttributeByName(e.userID,u.r.USER_DEF_PREFERRED_MAIL).subscribe(function(t){e.preferredMail=t,e.handleMailNotDefined(),e.mailDataSource=new a.by([e.preferredMail]),e.initNavItems()}))})}},{key:"initNavItems",value:function(){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-group",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-group",url:"roles",label:"MENU_ITEMS.USER.ROLES",style:"user-btn"}),this.navItems.push(this.isServiceUser?{cssIcon:"perun-user-dark",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"})}},{key:"changeEmail",value:function(){var e=this,t=(0,l.kZ)();t.width="350px",t.data={userId:this.userID},this.dialog.open(c.gr,t).afterClosed().subscribe(function(t){t&&e.attributeService.getUserAttributeByName(e.userID,u.r.USER_DEF_PREFERRED_MAIL).subscribe(function(t){e.preferredMail=t,e.handleMailNotDefined(),e.mailDataSource=new a.by([e.preferredMail])})})}},{key:"handleMailNotDefined",value:function(){null==this.preferredMail&&(this.preferredMail={id:-1,beanName:"Attribute",displayName:(0,l.Cz)(u.r.USER_DEF_PREFERRED_MAIL.split(":").pop()),value:Object("-")})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(p.Y36(s.Fv),p.Y36(s.H8),p.Y36(o.d6),p.Y36(d.gz),p.Y36(f.uw))},e.\u0275cmp=p.Xpm({type:e,selectors:[["app-user-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&p.ekj("router-component",t.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(e,t){1&e&&(p.YNc(0,N,16,5,"div",0),p._UZ(1,"perun-web-apps-menu-buttons-field",1)),2&e&&(p.Q6J("ngIf",t.inMyProfile),p.xp6(1),p.Q6J("items",t.navItems)("size","small"))},directives:[g.O5,m.L,h.a8,h.dk,h.n5,h.dn,a.BZ,a.w1,a.fO,a.Dz,a.nj,a.ge,a.ev,I.lW,v.Hw,a.Gk],pipes:[Z.X$],styles:[".align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}"]}),e}()},7233:function(t,n,s){"use strict";s.d(n,{t:function(){return Qe}});var a=s(65249),o=s(68416),u=s(31572),l=s(57629),c=s(61511),p=s(67806),d=s(45001),f=s(43691),g=s(27439),m=s(97162),h=s(77889),I=s(78364),v=s(88884),Z=s(60007),A=s(4252),S=s(48160);function E(e,t){1&e&&u._UZ(0,"mat-spinner",3)}function T(e,t){1&e&&u._UZ(0,"mat-spinner",3)}function b(e,t){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.SELF_VOS_ADMIN")," "))}function N(e,t){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.SELF_VOS")," "))}function R(e,t){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.SELF_IDENTITIES_ADMIN")," "))}function U(e,t){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.SELF_IDENTITIES")," "))}var x=function(){return["user","id","name"]};function _(e,t){if(1&e&&(u.TgZ(0,"div",11),u.YNc(1,R,3,3,"div",2),u.YNc(2,U,3,3,"div",2),u._UZ(3,"app-users-list",12),u.qZA()),2&e){var n=u.oxw(4);u.xp6(1),u.Q6J("ngIf",!n.showDescription),u.xp6(1),u.Q6J("ngIf",n.showDescription),u.xp6(1),u.Q6J("users",n.users)("disableRouting",!0)("displayedColumns",u.DdM(5,x))}}var O=function(){return["id","name","shortName"]};function y(e,t){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,b,3,3,"div",2),u.YNc(2,N,3,3,"div",2),u._UZ(3,"perun-web-apps-vos-list",9),u.YNc(4,_,4,6,"div",10),u.qZA()),2&e){var n=u.oxw(3);u.xp6(1),u.Q6J("ngIf",!n.showDescription),u.xp6(1),u.Q6J("ngIf",n.showDescription),u.xp6(1),u.Q6J("displayedColumns",u.DdM(5,O))("vos",n.vos),u.xp6(1),u.Q6J("ngIf",n.users.length)}}function C(e,t){if(1&e){var n=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(n),u.oxw(2).getSelfData()}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",7),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,T,1,0,"mat-spinner",1),u.YNc(8,y,5,6,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.SELF")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function L(e,t){1&e&&u._UZ(0,"mat-spinner",3)}function w(e,t){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.GROUPADMIN_GROUPS")," "))}var D=function(){return["id","vo","name","description"]};function q(e,t){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,w,3,3,"div",2),u._UZ(2,"perun-web-apps-groups-list",14),u.qZA()),2&e){var n=u.oxw(3);u.xp6(1),u.Q6J("ngIf",n.showDescription),u.xp6(1),u.Q6J("groups",n.groups)("displayedColumns",u.DdM(3,D))}}function Y(e,t){if(1&e){var n=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(n),u.oxw(2).getAdminGroupsAndVos()}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",13),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,L,1,0,"mat-spinner",1),u.YNc(8,q,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.GROUPADMIN")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function M(e,t){1&e&&u._UZ(0,"mat-spinner",3)}function J(e,t){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.GROUPOBSERVER_GROUPS")," "))}var k=function(){return["id","recent","vo","name","description"]};function Q(e,t){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,J,3,3,"div",2),u._UZ(2,"perun-web-apps-groups-list",14),u.qZA()),2&e){var n=u.oxw(3);u.xp6(1),u.Q6J("ngIf",n.showDescription),u.xp6(1),u.Q6J("groups",n.groups)("displayedColumns",u.DdM(3,k))}}function F(e,t){if(1&e){var n=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(n),u.oxw(2).getGroupsAndVos("GROUPOBSERVER")}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",13),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,M,1,0,"mat-spinner",1),u.YNc(8,Q,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.GROUPOBSERVER")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function P(e,t){1&e&&u._UZ(0,"mat-spinner",3)}function V(e,t){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.VOADMIN_VOS")," "))}function G(e,t){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,V,3,3,"div",2),u._UZ(2,"perun-web-apps-vos-list",9),u.qZA()),2&e){var n=u.oxw(3);u.xp6(1),u.Q6J("ngIf",n.showDescription),u.xp6(1),u.Q6J("displayedColumns",u.DdM(3,O))("vos",n.vos)}}function B(e,t){if(1&e){var n=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(n),u.oxw(2).getAdminVos()}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",15),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,P,1,0,"mat-spinner",1),u.YNc(8,G,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.VOADMIN")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function j(e,t){1&e&&u._UZ(0,"mat-spinner",3)}function H(e,t){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.VOOBSERVER_VOS")," "))}function z(e,t){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,H,3,3,"div",2),u._UZ(2,"perun-web-apps-vos-list",9),u.qZA()),2&e){var n=u.oxw(3);u.xp6(1),u.Q6J("ngIf",n.showDescription),u.xp6(1),u.Q6J("displayedColumns",u.DdM(3,O))("vos",n.vos)}}function W(e,t){if(1&e){var n=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){u.CHM(n);var e=u.oxw(2);return e.getVos(e.roles.get("VOOBSERVER").get("Vo"))}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",15),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,j,1,0,"mat-spinner",1),u.YNc(8,z,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.VOOBSERVER")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function X(e,t){1&e&&u._UZ(0,"mat-spinner",3)}function $(e,t){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.TRUSTEDFACILITYADMIN_VOS")," "))}function K(e,t){if(1&e&&(u.TgZ(0,"div"),u.TgZ(1,"div"),u.YNc(2,$,3,3,"div",2),u._UZ(3,"perun-web-apps-vos-list",9),u.qZA(),u.qZA()),2&e){var n=u.oxw(3);u.xp6(2),u.Q6J("ngIf",n.showDescription),u.xp6(1),u.Q6J("displayedColumns",u.DdM(3,O))("vos",n.vos)}}function ee(e,t){if(1&e){var n=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){u.CHM(n);var e=u.oxw(2);return e.getVos(e.roles.get("TRUSTEDFACILITYADMIN").get("Vo"))}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",15),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,X,1,0,"mat-spinner",1),u.YNc(8,K,4,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.TRUSTEDFACILITYADMIN")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function te(e,t){1&e&&u._UZ(0,"mat-spinner",3)}function ne(e,t){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.TOPGROUPCREATOR_VOS")," "))}function ie(e,t){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,ne,3,3,"div",2),u._UZ(2,"perun-web-apps-vos-list",9),u.qZA()),2&e){var n=u.oxw(3);u.xp6(1),u.Q6J("ngIf",n.showDescription),u.xp6(1),u.Q6J("displayedColumns",u.DdM(3,O))("vos",n.vos)}}function se(e,t){if(1&e){var n=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){u.CHM(n);var e=u.oxw(2);return e.getVos(e.roles.get("TOPGROUPCREATOR").get("Vo"))}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",15),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,te,1,0,"mat-spinner",1),u.YNc(8,ie,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.TOPGROUPCREATOR")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function re(e,t){1&e&&u._UZ(0,"mat-spinner",3)}function ae(e,t){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.RESOURCEADMIN_RESOURCES")," "))}var oe=function(){return["id","name","vo","facility","description"]};function ue(e,t){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,ae,3,3,"div",2),u._UZ(2,"perun-web-apps-resources-list",17),u.qZA()),2&e){var n=u.oxw(3);u.xp6(1),u.Q6J("ngIf",n.showDescription),u.xp6(1),u.Q6J("resources",n.resources)("routingVo",!0)("displayedColumns",u.DdM(4,oe))}}function le(e,t){if(1&e){var n=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(n),u.oxw(2).getResourcesData("RESOURCEADMIN")}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",16),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,re,1,0,"mat-spinner",1),u.YNc(8,ue,3,5,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.RESOURCEADMIN")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function ce(e,t){1&e&&u._UZ(0,"mat-spinner",3)}function pe(e,t){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.RESOURCEOBSERVER_RESOURCES")," "))}function de(e,t){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,pe,3,3,"div",2),u._UZ(2,"perun-web-apps-resources-list",17),u.qZA()),2&e){var n=u.oxw(3);u.xp6(1),u.Q6J("ngIf",n.showDescription),u.xp6(1),u.Q6J("resources",n.resources)("routingVo",!0)("displayedColumns",u.DdM(4,oe))}}function fe(e,t){if(1&e){var n=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(n),u.oxw(2).getResourcesData("RESOURCEOBSERVER")}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",16),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,ce,1,0,"mat-spinner",1),u.YNc(8,de,3,5,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.RESOURCEOBSERVER")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function ge(e,t){1&e&&u._UZ(0,"mat-spinner",3)}function me(e,t){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.RESOURCESELFSERVICE_RESOURCES")," "))}function he(e,t){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,me,3,3,"div",2),u._UZ(2,"perun-web-apps-resources-list",17),u.qZA()),2&e){var n=u.oxw(3);u.xp6(1),u.Q6J("ngIf",n.showDescription),u.xp6(1),u.Q6J("resources",n.resources)("routingVo",!0)("displayedColumns",u.DdM(4,oe))}}function Ie(e,t){if(1&e){var n=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(n),u.oxw(2).getResourcesData("RESOURCESELFSERVICE")}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",16),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,ge,1,0,"mat-spinner",1),u.YNc(8,he,3,5,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.RESOURCESELFSERVICE")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function ve(e,t){1&e&&u._UZ(0,"mat-spinner",3)}function Ze(e,t){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.FACILITYADMIN_FACILITIES")," "))}var Ae=function(){return["id","name","description"]};function Se(e,t){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,Ze,3,3,"div",2),u._UZ(2,"perun-web-apps-facilities-list",19),u.qZA()),2&e){var n=u.oxw(3);u.xp6(1),u.Q6J("ngIf",n.showDescription),u.xp6(1),u.Q6J("displayedColumns",u.DdM(3,Ae))("facilities",n.facilities)}}function Ee(e,t){if(1&e){var n=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(n),u.oxw(2).getAdminFacilities()}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",18),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,ve,1,0,"mat-spinner",1),u.YNc(8,Se,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.FACILITYADMIN")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function Te(e,t){1&e&&u._UZ(0,"mat-spinner",3)}function be(e,t){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.FACILITYOBSERVER_FACILITIES")," "))}function Ne(e,t){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,be,3,3,"div",2),u._UZ(2,"perun-web-apps-facilities-list",19),u.qZA()),2&e){var n=u.oxw(3);u.xp6(1),u.Q6J("ngIf",n.showDescription),u.xp6(1),u.Q6J("displayedColumns",u.DdM(3,Ae))("facilities",n.facilities)}}function Re(e,t){if(1&e){var n=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(n),u.oxw(2).getFacilities("FACILITYOBSERVER")}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",18),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,Te,1,0,"mat-spinner",1),u.YNc(8,Ne,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.FACILITYOBSERVER")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function Ue(e,t){1&e&&u._UZ(0,"mat-spinner",3)}function xe(e,t){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.SPONSORSHIP_MEMBERS")," "))}var _e=function(){return["id","fullName","sponsored"]};function Oe(e,t){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,xe,3,3,"div",2),u._UZ(2,"perun-web-apps-members-list",20),u.qZA()),2&e){var n=u.oxw(3);u.xp6(1),u.Q6J("ngIf",n.showDescription),u.xp6(1),u.Q6J("members",n.members)("displayedColumns",u.DdM(3,_e))}}function ye(e,t){if(1&e){var n=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){return u.CHM(n),u.oxw(2).getMembers()}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",7),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,Ue,1,0,"mat-spinner",1),u.YNc(8,Oe,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.SPONSORSHIP")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function Ce(e,t){1&e&&u._UZ(0,"mat-spinner",3)}function Le(e,t){1&e&&(u.TgZ(0,"div"),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"ROLES.SPONSOR_VOS")," "))}function we(e,t){if(1&e&&(u.TgZ(0,"div"),u.YNc(1,Le,3,3,"div",2),u._UZ(2,"perun-web-apps-vos-list",9),u.qZA()),2&e){var n=u.oxw(3);u.xp6(1),u.Q6J("ngIf",n.showDescription),u.xp6(1),u.Q6J("displayedColumns",u.DdM(3,O))("vos",n.vos)}}function De(e,t){if(1&e){var n=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){u.CHM(n);var e=u.oxw(2);return e.getVos(e.roles.get("SPONSOR").get("Vo"))}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",7),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.YNc(7,Ce,1,0,"mat-spinner",1),u.YNc(8,we,3,4,"div",2),u.qZA()}if(2&e){var i=u.oxw(2);u.xp6(5),u.Oqu(u.lcZ(6,3,"ROLES.SPONSOR")),u.xp6(2),u.Q6J("ngIf",i.loading),u.xp6(1),u.Q6J("ngIf",!i.loading)}}function qe(e,t){1&e&&(u.TgZ(0,"mat-expansion-panel"),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",7),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.qZA()),2&e&&(u.xp6(5),u.Oqu(u.lcZ(6,1,"ROLES.PERUN_ADMIN")))}function Ye(e,t){1&e&&(u.TgZ(0,"mat-expansion-panel"),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",7),u.TgZ(4,"p",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.qZA(),u.qZA()),2&e&&(u.xp6(5),u.Oqu(u.lcZ(6,1,"ROLES.PERUN_OBSERVER")))}function Me(e,t){if(1&e&&(u.TgZ(0,"p",22),u._uU(1),u.qZA()),2&e){var n=t.$implicit;u.xp6(1),u.AsE("",n[0]," ids: ",n[1],"")}}function Je(e,t){if(1&e){var n=u.EpF();u.TgZ(0,"mat-expansion-panel",6),u.NdJ("opened",function(){var e=u.CHM(n).$implicit;return u.oxw(2).getInnerKeys(e)}),u.TgZ(1,"mat-expansion-panel-header"),u.TgZ(2,"mat-panel-title"),u._UZ(3,"mat-icon",7),u.TgZ(4,"p",8),u._uU(5),u.qZA(),u.qZA(),u.qZA(),u.YNc(6,Me,2,2,"p",21),u.qZA()}if(2&e){var i=t.$implicit,s=u.oxw(2);u.xp6(5),u.Oqu(i),u.xp6(1),u.Q6J("ngForOf",s.currentIds)}}function ke(e,t){if(1&e&&(u.TgZ(0,"mat-accordion"),u.YNc(1,C,9,5,"mat-expansion-panel",4),u.YNc(2,Y,9,5,"mat-expansion-panel",4),u.YNc(3,F,9,5,"mat-expansion-panel",4),u.YNc(4,B,9,5,"mat-expansion-panel",4),u.YNc(5,W,9,5,"mat-expansion-panel",4),u.YNc(6,ee,9,5,"mat-expansion-panel",4),u.YNc(7,se,9,5,"mat-expansion-panel",4),u.YNc(8,le,9,5,"mat-expansion-panel",4),u.YNc(9,fe,9,5,"mat-expansion-panel",4),u.YNc(10,Ie,9,5,"mat-expansion-panel",4),u.YNc(11,Ee,9,5,"mat-expansion-panel",4),u.YNc(12,Re,9,5,"mat-expansion-panel",4),u.YNc(13,ye,9,5,"mat-expansion-panel",4),u.YNc(14,De,9,5,"mat-expansion-panel",4),u.YNc(15,qe,7,3,"mat-expansion-panel",2),u.YNc(16,Ye,7,3,"mat-expansion-panel",2),u.YNc(17,Je,7,2,"mat-expansion-panel",5),u.qZA()),2&e){var n=u.oxw();u.xp6(1),u.Q6J("ngIf",n.isSelf),u.xp6(1),u.Q6J("ngIf",n.isGroupAdmin),u.xp6(1),u.Q6J("ngIf",n.isGroupObserver),u.xp6(1),u.Q6J("ngIf",n.isVoAdmin),u.xp6(1),u.Q6J("ngIf",n.isVoObserver),u.xp6(1),u.Q6J("ngIf",n.isTrustedFacilityAdmin),u.xp6(1),u.Q6J("ngIf",n.isTopGroupCreator),u.xp6(1),u.Q6J("ngIf",n.isResourceAdmin),u.xp6(1),u.Q6J("ngIf",n.isResourceObserver),u.xp6(1),u.Q6J("ngIf",n.isResourceSelfService),u.xp6(1),u.Q6J("ngIf",n.isFacilityAdmin),u.xp6(1),u.Q6J("ngIf",n.isFacilityObserver),u.xp6(1),u.Q6J("ngIf",n.hasSponsorship),u.xp6(1),u.Q6J("ngIf",n.isSponsor),u.xp6(1),u.Q6J("ngIf",n.isPerunAdmin),u.xp6(1),u.Q6J("ngIf",n.isPerunObserver),u.xp6(1),u.Q6J("ngForOf",n.roleNames)}}var Qe=function(){var t=function(){function t(e,n,s,r,a,o,u,l,c){i(this,t),this.authzResolverService=e,this.usersManagerService=n,this.vosManagerService=s,this.facilitiesManagerService=r,this.resourcesManagerService=a,this.membersManagerService=o,this.groupsManagerService=u,this.route=l,this.store=c,this.currentIds=[],this.roles=new Map,this.roleFilter=["SELF","GROUPADMIN","VOADMIN","RESOURCEADMIN","FACILITYADMIN","TOPGROUPCREATOR","SPONSORSHIP","SPONSOR","RESOURCESELFSERVICE","VOOBSERVER","RESOURCEOBSERVER","GROUPOBSERVER","TRUSTEDFACILITYADMIN","FACILITYOBSERVER","PERUNADMIN","PERUNOBSERVER"],this.roleNames=[],this.groups=[],this.vos=[],this.facilities=[],this.users=[],this.resources=[],this.members=[]}return r(t,[{key:"ngOnInit",value:function(){var e=this;this.outerLoading=!0,this.route.parent.params.subscribe(function(t){t.userId?(e.userId=t.userId,e.authzResolverService.getUserRoleNames(e.userId).subscribe(function(t){e.roleNames=t.map(function(e){return e.toUpperCase()}),e.authzResolverService.getUserRoles(e.userId).subscribe(function(t){e.prepareRoles(t)})})):(e.showDescription=!0,e.principal=e.store.getPerunPrincipal(),e.userId=e.principal.userId,e.roleNames=Object.keys(e.principal.roles),e.prepareRoles(e.principal.roles))})}},{key:"prepareRoles",value:function(e){var t=this;this.roleNames.forEach(function(n){var i=new Map;switch(Object.keys(e[n]).forEach(function(t){i.set(t,e[n][t])}),n){case"SELF":t.isSelf=!0;break;case"GROUPADMIN":t.isGroupAdmin=!0;break;case"VOADMIN":t.isVoAdmin=!0;break;case"RESOURCEADMIN":t.isResourceAdmin=!0;break;case"FACILITYADMIN":t.isFacilityAdmin=!0;break;case"TOPGROUPCREATOR":t.isTopGroupCreator=!0;break;case"SPONSORSHIP":t.hasSponsorship=!0;break;case"SPONSOR":t.isSponsor=!0;break;case"RESOURCESELFSERVICE":t.isResourceSelfService=!0;break;case"VOOBSERVER":t.isVoObserver=!0;break;case"RESOURCEOBSERVER":t.isResourceObserver=!0;break;case"GROUPOBSERVER":t.isGroupObserver=!0;break;case"TRUSTEDFACILITYADMIN":t.isTrustedFacilityAdmin=!0;break;case"FACILITYOBSERVER":t.isFacilityObserver=!0;break;case"PERUNADMIN":t.isPerunAdmin=!0;break;case"PERUNOBSERVER":t.isPerunObserver=!0}t.roles.set(n,i)}),this.roleNames=this.roleNames.filter(function(e){return!t.roleFilter.includes(e)}),this.outerLoading=!1}},{key:"getAdminGroupsAndVos",value:function(){var t=this;this.loading=!0,this.groups=[],this.usersManagerService.getGroupsWhereUserIsAdmin(this.userId).subscribe(function(n){t.groups=n;var i=e(new Set(t.groups.map(function(e){return e.voId})));t.getVos(i)})}},{key:"getVos",value:function(e){var t=this;this.loading=!0,this.vos=[],this.vosManagerService.getVosByIds(e).subscribe(function(e){t.vos=e,t.loading=!1})}},{key:"getInnerKeys",value:function(e){if(this.roles.get(e)){for(var t=this.roles.get(e).entries(),n=[],i=t.next().value;i;)n.push(i),i=t.next().value;this.currentIds=n}else this.currentIds=[]}},{key:"getAdminVos",value:function(){var e=this;this.loading=!0,this.vos=[],this.usersManagerService.getVosWhereUserIsAdmin(this.userId).subscribe(function(t){e.vos=t,e.loading=!1})}},{key:"getAdminFacilities",value:function(){var e=this;this.loading=!0,this.facilities=[],this.facilitiesManagerService.getFacilitiesWhereUserIsAdmin(this.userId).subscribe(function(t){e.facilities=t.map(function(e){return{facility:e}}),e.loading=!1})}},{key:"getSelfData",value:function(){var e=this;this.loading=!0,this.vos=[],this.users=[],this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(function(t){e.vos=t;var n=e.roles.get("SELF").get("User");n?e.usersManagerService.getUsersByIds(n).subscribe(function(t){e.users=t,e.loading=!1}):e.loading=!1})}},{key:"getResourcesData",value:function(e){var t=this;this.loading=!0;var n=this.roles.get(e).get("Resource");this.vos=[],this.facilities=[],this.resources=[],this.resourcesManagerService.getRichResourcesByIds(n).subscribe(function(e){t.resources=e,t.vos=t.resources.map(function(e){return e.vo}).filter(function(e,t,n){return n.indexOf(e)===t}),t.facilities=t.resources.map(function(e){return{facility:e.facility}}).filter(function(e,t,n){return n.indexOf(e)===t}),t.loading=!1})}},{key:"getMembers",value:function(){var e=this;this.loading=!0;var t=this.roles.get("SPONSORSHIP").get("Member");this.members=[],this.membersManagerService.getRichMembersByIds(t).subscribe(function(t){e.members=t,e.loading=!1})}},{key:"getGroupsAndVos",value:function(e){var t=this;this.loading=!0;var n=this.roles.get(e).get("Vo"),i=this.roles.get(e).get("Group");this.vos=[],this.groups=[],this.groupsManagerService.getGroupsByIds(i).subscribe(function(e){t.groups=e,t.vosManagerService.getVosByIds(n).subscribe(function(e){t.vos=e,t.loading=!1})})}},{key:"getFacilities",value:function(e){var t=this;this.loading=!0,this.facilities=[];var n=this.roles.get(e).get("Facility");this.facilitiesManagerService.getFacilitiesByIds(n).subscribe(function(e){t.facilities=e.map(function(e){return{facility:e}}),t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Y36(a.Ct),u.Y36(a.Fv),u.Y36(a.YF),u.Y36(a.IQ),u.Y36(a.xk),u.Y36(a.uq),u.Y36(a.ff),u.Y36(l.gz),u.Y36(o.d6))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-user-roles"]],hostVars:2,hostBindings:function(e,t){2&e&&u.ekj("router-component",t.true)},decls:5,vars:5,consts:[[1,"page-subtitle","d-flex"],["class","ml-auto mr-auto",4,"ngIf"],[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","vos"],["class","mt-5",4,"ngIf"],[1,"mt-5"],[3,"users","disableRouting","displayedColumns"],["mat-card-avatar","","svgIcon","perun-group-black",1,"mr-2"],[3,"groups","displayedColumns"],["mat-card-avatar","","svgIcon","perun-vo-black",1,"mr-2"],["mat-card-avatar","","svgIcon","perun-resource-black",1,"mr-2"],[3,"resources","routingVo","displayedColumns"],["mat-card-avatar","","svgIcon","perun-facility-black",1,"mr-2"],[3,"displayedColumns","facilities"],[3,"members","displayedColumns"],["class","role-content",4,"ngFor","ngForOf"],[1,"role-content"]],template:function(e,t){1&e&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.YNc(3,E,1,0,"mat-spinner",1),u.YNc(4,ke,18,17,"mat-accordion",2)),2&e&&(u.xp6(1),u.Oqu(u.lcZ(2,3,"ROLES.TITLE")),u.xp6(2),u.Q6J("ngIf",t.outerLoading),u.xp6(1),u.Q6J("ngIf",!t.outerLoading))},directives:[c.O5,p.$g,d.pp,c.sg,d.ib,d.yz,d.yK,f.Hw,g.kc,m.Z,h.C,I.W,v.C,Z.X,A.O],pipes:[S.X$],styles:[".role-content[_ngcontent-%COMP%]{overflow:auto;overflow-y:hidden}.info-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),t}()},2043:function(e,t,n){"use strict";n.d(t,{d:function(){return T}});var s=n(60611),a=n(65249),o=n(4230),u=n(84140),l=n(93215),c=n(26019),p=n(68416),d=n(31572),f=n(84608),g=n(57629),m=n(59403),h=n(15980),I=n(61511),v=n(77889),Z=n(67806),A=n(48160);function S(e,t){if(1&e&&(d._UZ(0,"app-users-list",6),d.ALo(1,"translate")),2&e){var n=d.oxw();d.Q6J("tableId",n.tableId)("noUsersFoundLabel",d.lcZ(1,6,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.NO_ASSOCIATED_USERS"))("users",n.associatedUsers)("selection",n.selection)("disableRouting",n.disableRouting)("displayedColumns",n.displayedColumns)}}function E(e,t){1&e&&d._UZ(0,"mat-spinner",7)}var T=function(){var e=function(){function e(t,n,r,a,u){i(this,e),this.dialog=t,this.router=n,this.authResolver=r,this.userManager=a,this.entityStorageService=u,this.loading=!1,this.selection=new o.Ov(!1,[]),this.associatedUsers=[],this.tableId=s.It,this.displayedColumns=["select","id","user","name"]}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.user=this.entityStorageService.getEntity(),this.userManager.getUsersBySpecificUser(this.user.id).subscribe(function(t){e.associatedUsers=t,e.setAuth(),e.loading=!1})}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.userManager.getUsersBySpecificUser(this.user.id).subscribe(function(t){e.associatedUsers=t,e.selection.clear(),e.loading=!1})}},{key:"setAuth",value:function(){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()}},{key:"onAdd",value:function(){var e=this,t=(0,u.kZ)();t.width="1250px",t.data={userId:this.user.id,theme:"user-theme",isService:!0,target:"USER"},this.dialog.open(l.l,t).afterClosed().subscribe(function(t){t&&e.refreshTable()})}},{key:"onRemove",value:function(){var e=this,t=(0,u.kZ)();t.width="650px",t.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(c.B,t).afterClosed().subscribe(function(t){t&&(e.authResolver.isAuthorized("getUsersBySpecificUser_User_policy",[e.user])?e.refreshTable():e.router.navigate(["/myProfile"]))})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(d.Y36(f.uw),d.Y36(g.F0),d.Y36(p.x4),d.Y36(a.Fv),d.Y36(p.fb))},e.\u0275cmp=d.Xpm({type:e,selectors:[["app-user-settings-associated-users"]],decls:13,vars:12,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"tableId","noUsersFoundLabel","users","selection","disableRouting","displayedColumns",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"tableId","noUsersFoundLabel","users","selection","disableRouting","displayedColumns"],[1,"mr-auto","ml-auto"]],template:function(e,t){1&e&&(d.TgZ(0,"div"),d.TgZ(1,"h1",0),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"perun-web-apps-refresh-button",1),d.NdJ("refresh",function(){return t.refreshTable()}),d.qZA(),d.TgZ(5,"button",2),d.NdJ("click",function(){return t.onAdd()}),d._uU(6),d.ALo(7,"translate"),d.qZA(),d.TgZ(8,"button",3),d.NdJ("click",function(){return t.onRemove()}),d._uU(9),d.ALo(10,"translate"),d.qZA(),d.YNc(11,S,2,8,"app-users-list",4),d.qZA(),d.YNc(12,E,1,0,"mat-spinner",5)),2&e&&(d.xp6(2),d.Oqu(d.lcZ(3,6,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.TITLE")),d.xp6(4),d.hij(" ",d.lcZ(7,8,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.ADD")," "),d.xp6(2),d.Q6J("disabled",0===t.selection.selected.length),d.xp6(1),d.hij(" ",d.lcZ(10,10,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.REMOVE")," "),d.xp6(2),d.Q6J("ngIf",!t.loading),d.xp6(1),d.Q6J("ngIf",t.loading))},directives:[m.t,h.lW,I.O5,v.C,Z.$g],pipes:[A.X$],styles:[""]}),e}()},52384:function(e,t,n){"use strict";n.d(t,{R:function(){return N}});var s=n(4230),a=n(65249),o=n(60611),u=n(84140),l=n(93215),c=n(26019),p=n(68416),d=n(31572),f=n(57629),g=n(84608),m=n(59403),h=n(61511),I=n(15980),v=n(67806),Z=n(77889),A=n(48160);function S(e,t){if(1&e){var n=d.EpF();d.TgZ(0,"button",6),d.NdJ("click",function(){return d.CHM(n),d.oxw().onAdd()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}2&e&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.CREATE"),"\n"))}function E(e,t){if(1&e){var n=d.EpF();d.TgZ(0,"button",7),d.NdJ("click",function(){return d.CHM(n),d.oxw().onRemove()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}if(2&e){var i=d.oxw();d.Q6J("disabled",0===i.selection.selected.length),d.xp6(1),d.hij(" ",d.lcZ(2,2,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.DELETE"),"\n")}}function T(e,t){1&e&&d._UZ(0,"mat-spinner",8)}function b(e,t){if(1&e&&(d._UZ(0,"app-users-list",9),d.ALo(1,"translate")),2&e){var n=d.oxw();d.Q6J("tableId",n.tableId)("noUsersFoundLabel",d.lcZ(1,6,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.NO_IDENTITIES"))("users",n.identities)("selection",n.selection)("routeToAdmin",n.routeToAdminSection)("displayedColumns",n.displayedColumns)}}var N=function(){var e=function(){function e(t,n,r,a,u,l){i(this,e),this.route=t,this.dialog=n,this.router=r,this.userManager=a,this.authResolver=u,this.store=l,this.loading=!1,this.selection=new s.Ov(!1,[]),this.identities=[],this.tableId=o.Iz,this.displayedColumns=["select","id","user","name"],this.routeToAdminSection=!0,this.targetTitle="SERVICE",this.targetDescription="SERVICE"}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.route.parent.params.subscribe(function(t){e.userId=t.userId,void 0===e.userId&&(e.targetTitle="SERVICE",e.targetDescription="SELF",e.userId=e.store.getPerunPrincipal().userId,e.routeToAdminSection=!1),e.setAuthRights(),e.refreshTable()})}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.userManager.getSpecificUsersByUser(this.userId).subscribe(function(t){e.identities=t,e.selection.clear(),e.loading=!1})}},{key:"setAuthRights",value:function(){this.addIdentity=this.authResolver.isPerunAdmin(),this.removeIdentity=this.authResolver.isAuthorized("removeSpecificUserOwner_User_User_policy",[{id:this.userId,beanName:"User"}])}},{key:"onAdd",value:function(){var e=this,t=(0,u.kZ)();t.width="1250px",t.data={userId:this.userId,theme:"user-theme",isService:!1,target:this.targetTitle},this.dialog.open(l.l,t).afterClosed().subscribe(function(t){t&&e.refreshTable()})}},{key:"onRemove",value:function(){var e=this,t=(0,u.kZ)();t.width="650px",t.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(c.B,t).afterClosed().subscribe(function(t){t&&e.refreshTable()})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(d.Y36(f.gz),d.Y36(g.uw),d.Y36(f.F0),d.Y36(a.Fv),d.Y36(p.x4),d.Y36(p.d6))},e.\u0275cmp=d.Xpm({type:e,selectors:[["app-user-settings-service-identities"]],decls:8,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","class","mr-2 action-button","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","class","mr-2","color","warn",3,"disabled","click",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"tableId","noUsersFoundLabel","users","selection","routeToAdmin","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,"mr-auto","ml-auto"],[3,"tableId","noUsersFoundLabel","users","selection","routeToAdmin","displayedColumns"]],template:function(e,t){1&e&&(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 t.refreshTable()}),d.qZA(),d.YNc(4,S,3,3,"button",2),d.YNc(5,E,3,4,"button",3),d.YNc(6,T,1,0,"mat-spinner",4),d.YNc(7,b,2,8,"app-users-list",5)),2&e&&(d.xp6(1),d.Oqu(d.lcZ(2,5,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.TITLE")),d.xp6(3),d.Q6J("ngIf",t.addIdentity),d.xp6(1),d.Q6J("ngIf",t.removeIdentity),d.xp6(1),d.Q6J("ngIf",t.loading),d.xp6(1),d.Q6J("ngIf",!t.loading))},directives:[m.t,h.O5,I.lW,v.$g,Z.C],pipes:[A.X$],styles:[""]}),e}()},65515:function(e,t,n){"use strict";n.r(t),n.d(t,{UsersModule:function(){return Oe}});var s=n(61511),a=n(57629),o=n(15879),u=n(31612),l=n(31572),c=n(21575),p=function(){var e=function e(){i(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=l.Xpm({type:e,selectors:[["app-user-settings"]],hostVars:2,hostBindings:function(e,t){2&e&&l.ekj("router-component",t.true)},decls:1,vars:0,template:function(e,t){1&e&&l._UZ(0,"app-animated-router-outlet")},directives:[c.A],styles:[""]}),e}(),d=n(65249),f=n(67806),g=n(8557);function m(e,t){1&e&&l._UZ(0,"mat-spinner",2)}function h(e,t){if(1&e&&(l.TgZ(0,"div"),l._UZ(1,"perun-web-apps-menu-buttons-field",3),l.qZA()),2&e){var n=l.oxw();l.xp6(1),l.Q6J("items",n.navItems)("size","small")}}var I=function(){var e=function(){function e(t,n){i(this,e),this.route=t,this.userManager=n,this.navItems=[],this.loading=!1}return r(e,[{key:"ngOnInit",value:function(){var e=this;window.location.pathname.startsWith("/admin")?(this.loading=!0,this.route.parent.parent.params.subscribe(function(t){e.userManager.getUserById(t.userId).subscribe(function(t){e.isServiceUser=t.serviceUser,e.initNavItems(),e.loading=!1},function(){return e.loading=!1})})):this.initNavItems()}},{key:"initNavItems",value:function(){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-settings2",url:"guiConfig",label:"MENU_ITEMS.USER.GUI_CONFIG",style:"user-btn"})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(l.Y36(a.gz),l.Y36(d.Fv))},e.\u0275cmp=l.Xpm({type:e,selectors:[["app-user-settings-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&l.ekj("router-component",t.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,t){1&e&&(l.YNc(0,m,1,0,"mat-spinner",0),l.YNc(1,h,2,2,"div",1)),2&e&&(l.Q6J("ngIf",t.loading),l.xp6(1),l.Q6J("ngIf",!t.loading))},directives:[s.O5,f.$g,g.L],styles:[""]}),e}(),v=n(95690),Z=n(41939),A=n(84140),S=n(13857),E=n(66283),T=n(4786),b=n(71522),N=n(48160);function R(e,t){if(1&e&&(l.TgZ(0,"mat-option",5),l._uU(1),l.qZA()),2&e){var n=t.$implicit;l.Q6J("value",n),l.xp6(1),l.hij(" ",n," ")}}var U=function(){var e=function(){function e(t){i(this,e),this.guiConfigService=t,this.tablePageSizeOptions=A.f7}return r(e,[{key:"ngOnInit",value:function(){this.preferredTablePageSize=this.guiConfigService.getNumber(S.Rc)}},{key:"updatePreferredTablePageSize",value:function(){this.guiConfigService.setNumber(S.Rc,this.preferredTablePageSize)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(l.Y36(S.Ng))},e.\u0275cmp=l.Xpm({type:e,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(e,t){1&e&&(l.TgZ(0,"h1",0),l._uU(1),l.ALo(2,"translate"),l.qZA(),l.TgZ(3,"div",1),l.TgZ(4,"mat-form-field",2),l.TgZ(5,"mat-label"),l._uU(6),l.ALo(7,"translate"),l.qZA(),l.TgZ(8,"mat-select",3),l.NdJ("valueChange",function(e){return t.preferredTablePageSize=e})("valueChange",function(){return t.updatePreferredTablePageSize()}),l.YNc(9,R,2,2,"mat-option",4),l.qZA(),l.qZA(),l.qZA()),2&e&&(l.xp6(1),l.Oqu(l.lcZ(2,4,"USER_DETAIL.SETTINGS.GUI_CONFIG.TITLE")),l.xp6(5),l.Oqu(l.lcZ(7,6,"USER_DETAIL.SETTINGS.GUI_CONFIG.PREF_TABLE_PAGE_SIZE")),l.xp6(2),l.Q6J("value",t.preferredTablePageSize),l.xp6(1),l.Q6J("ngForOf",t.tablePageSizeOptions))},directives:[E.KE,E.hX,T.gD,s.sg,b.ey],pipes:[N.X$],styles:[""]}),e}(),x=n(71956),_=n(68416),O=n(48958),y=n(66297),C=n(43691),L=n(36922),w=n(22196),D=function(){return{color:"black"}},q=function(){return["/myProfile"]};function Y(e,t){if(1&e&&(l.TgZ(0,"div",1),l._UZ(1,"perun-web-apps-back-button"),l.TgZ(2,"div",2),l._UZ(3,"mat-icon",3),l.ALo(4,"translate"),l.TgZ(5,"div",4),l.TgZ(6,"div",5),l.TgZ(7,"a",6),l._uU(8),l.ALo(9,"userFullName"),l.qZA(),l.TgZ(10,"span",7),l._uU(11),l.qZA(),l.qZA(),l.TgZ(12,"span",8),l._uU(13),l.ALo(14,"translate"),l.ALo(15,"translate"),l.qZA(),l.qZA(),l.qZA(),l._UZ(16,"app-animated-router-outlet"),l.qZA()),2&e){var n=l.oxw();l.xp6(3),l.s9C("matTooltip",l.lcZ(4,8,"MENU_ITEMS.USER.ENTITY")),l.Q6J("ngStyle",l.DdM(16,D)),l.xp6(4),l.Q6J("routerLink",l.DdM(17,q)),l.xp6(1),l.hij(" ",l.lcZ(9,10,n.user)," "),l.xp6(3),l.hij(" \xa0#",n.user.id," "),l.xp6(2),l.lnq(" ",l.lcZ(14,12,"MENU_ITEMS.USER.ENTITY"),", ",l.lcZ(15,14,"MENU_ITEMS.USER.USER_TYPE"),": ",n.getUserType()," ")}}var M=function(){var e=function(){function e(t,n,s){i(this,e),this.sideMenuService=t,this.store=n,this.router=s}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.path=this.router.url,this.router.events.subscribe(function(){e.path=e.router.url}),this.principal=this.store.getPerunPrincipal(),this.user=this.principal.user,this.sideMenuService.setUserItems([])}},{key:"getUserType",value:function(){return this.user.serviceUser?"Service":"Person"}}]),e}();return e.\u0275fac=function(t){return new(t||e)(l.Y36(O.D),l.Y36(_.d6),l.Y36(a.F0))},e.\u0275cmp=l.Xpm({type:e,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(e,t){1&e&&l.YNc(0,Y,17,18,"div",0),2&e&&l.Q6J("ngIf",void 0!==t.user)},directives:[s.O5,y.W,C.Hw,L.gM,s.PC,a.yS,c.A],pipes:[N.X$,w.d],styles:[""]}),e}(),J=n(7233),k=n(52384),Q=n(75585),F=n(2898),P=n(84608),V=n(15980);function G(e,t){1&e&&l._UZ(0,"mat-spinner",11)}function B(e,t){if(1&e){var n=l.EpF();l.TgZ(0,"button",12),l.NdJ("click",function(){return l.CHM(n),l.oxw(2).editUser()}),l.TgZ(1,"mat-icon"),l._uU(2,"edit"),l.qZA(),l.qZA()}}var j=function(){return{color:"black"}},H=function(e){return["/myProfile/service-identities",e]};function z(e,t){if(1&e&&(l.TgZ(0,"div",1),l._UZ(1,"perun-web-apps-back-button"),l.YNc(2,G,1,0,"mat-spinner",2),l.TgZ(3,"div",3),l._UZ(4,"mat-icon",4),l.ALo(5,"translate"),l.TgZ(6,"div",5),l.TgZ(7,"div",6),l.TgZ(8,"a",7),l._uU(9),l.ALo(10,"userFullName"),l.qZA(),l.TgZ(11,"span",8),l._uU(12),l.qZA(),l.YNc(13,B,3,0,"button",9),l.qZA(),l.TgZ(14,"div"),l._uU(15),l.ALo(16,"translate"),l.qZA(),l.TgZ(17,"span",10),l._uU(18),l.ALo(19,"translate"),l.ALo(20,"translate"),l.qZA(),l.qZA(),l.qZA(),l._UZ(21,"app-animated-router-outlet"),l.qZA()),2&e){var n=l.oxw();l.xp6(2),l.Q6J("ngIf",n.loading),l.xp6(2),l.s9C("matTooltip",l.lcZ(5,12,"MENU_ITEMS.USER.ENTITY")),l.Q6J("ngStyle",l.DdM(22,j)),l.xp6(4),l.Q6J("routerLink",l.VKq(23,H,n.user.id)),l.xp6(1),l.hij(" ",l.lcZ(10,14,n.user)," "),l.xp6(3),l.hij(" \xa0#",n.user.id," "),l.xp6(1),l.Q6J("ngIf",n.authResolver.isPerunAdmin()),l.xp6(2),l.AsE(" ",l.lcZ(16,16,"ADMIN_USER.UUID"),": ",n.user.uuid," "),l.xp6(3),l.lnq(" ",l.lcZ(19,18,"MENU_ITEMS.USER.ENTITY"),", ",l.lcZ(20,20,"MENU_ITEMS.USER.USER_TYPE"),": ",n.getUserType()," ")}}var W,X=function(){var e=function(){function e(t,n,s,r,a,o,u){i(this,e),this.sideMenuService=t,this.usersService=n,this.sideMenuItemService=s,this.route=r,this.dialog=a,this.authResolver=o,this.entityStorageService=u,this.loading=!1}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.route.params.subscribe(function(t){var n=t.userId;e.entityStorageService.setEntity({id:Number(n),beanName:"User"}),e.usersService.getUserById(n).subscribe(function(t){e.user=t;var n=e.sideMenuItemService.parseServiceIdentity(t);e.sideMenuService.setUserItems([n]),e.loading=!1},function(){return e.loading=!1})})}},{key:"getUserType",value:function(){return this.user.serviceUser?"Service":"Person"}},{key:"editUser",value:function(){var e=this,t=(0,A.kZ)();t.width="450px",t.data={theme:"admin-theme",user:this.user},this.dialog.open(F.x,t).afterClosed().subscribe(function(t){t&&e.usersService.getUserById(e.user.id).subscribe(function(t){e.user=t})})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(l.Y36(O.D),l.Y36(d.Fv),l.Y36(Q.V),l.Y36(a.gz),l.Y36(P.uw),l.Y36(_.x4),l.Y36(_.fb))},e.\u0275cmp=l.Xpm({type:e,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(e,t){1&e&&l.YNc(0,z,22,25,"div",0),2&e&&l.Q6J("ngIf",void 0!==t.user)},directives:[s.O5,y.W,C.Hw,L.gM,s.PC,a.yS,c.A,f.$g,V.lW],pipes:[N.X$,w.d],styles:[""]}),e}(),$=function(){var e=function(){function e(){i(this,e),this.navItems=[]}return r(e,[{key:"ngOnInit",value:function(){this.initNavItems()}},{key:"initNavItems",value:function(){this.navItems=[{cssIcon:"perun-user",url:"associated-users",label:"MENU_ITEMS.USER.ASSOCIATED_USERS",style:"user-btn"}]}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=l.Xpm({type:e,selectors:[["app-service-identity-overview"]],decls:1,vars:2,consts:[[3,"items","size"]],template:function(e,t){1&e&&l._UZ(0,"perun-web-apps-menu-buttons-field",0),2&e&&l.Q6J("items",t.navItems)("size","small")},directives:[g.L],styles:[""]}),e}(),K=n(2043),ee=[{path:"",component:M,children:[{path:"",component:x.Z,data:{animation:"UserOverviewPage"}},{path:"attributes",component:v.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:o.j,data:{animation:"UserOrganizationsPage",showPrincipal:!0}},{path:"groups",component:u.u,data:{animation:"UserGroupsPage",showPrincipal:!0}},{path:"roles",component:J.t,data:{animation:"UserRolesPage"}},{path:"service-identities",component:k.R,data:{animation:"UserServiceIdentities"}},{path:"settings",component:p,children:[{path:"",component:I,data:{animation:"UserSettingsOverviewPage"}},{path:"passwordReset",component:Z.Nj,data:{animation:"PasswordResetPage"}},{path:"guiConfig",component:U,data:{animation:"UserAppConfigurationPage"}}]}]},{path:"service-identities/:userId",component:X,children:[{path:"",component:$},{path:"associated-users",component:K.d}]}],te=function(){var e=function e(){i(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=l.oAB({type:e}),e.\u0275inj=l.cJS({imports:[[a.Bz.forChild(ee)],a.Bz]}),e}(),ne=n(40084),ie=n(80340),se=n(16073),re=n(25122),ae=n(45001),oe=n(58623),ue=n(67033),le=n(55109),ce=n(91010),pe=n(29236),de=n(71403),fe=n(45994),ge=n(27521),me=n(15812),he=n(54810),Ie=n(27679),ve=n(73005),Ze=n(27439),Ae=n(70663),Se=n(88975),Ee=n(10033),Te=n(8055),be=n(4253),Ne=n(22727),Re=n(41050),Ue=n(7423),xe=n(22280),_e=n(28780),Oe=((W=function e(t){i(this,e),this.translate=t,t.addLangs(["en","cs"])}).\u0275fac=function(e){return new(e||W)(l.LFG(N.sK))},W.\u0275mod=l.oAB({type:W}),W.\u0275inj=l.cJS({imports:[[s.ez,te,ne.Bb,ie.c,E.lN,se.UX,se.u5,C.Ps,re.SJ,ae.To,N.aw.forChild({}),V.ot,oe.JX,ue.p0,le.Nh,ce.dp,V.ot,pe.p9,P.Is,T.LD,de.ZX,f.Cq,fe.Cv,L.AV,ge.rP,me.FA,b.XK,he.Fk,Ie.t,b.si,ve.TU,Ze.QW,Ae.T5,Se._t,Ze.QW,Ee.Hi,Te.Tx,be.Cl,Ne.r,Re.g,Z.ez,Ue.r,xe.d4,_e.m]]}),W)}}])}(); \ No newline at end of file diff --git a/dist/apps/admin-gui/749-es2015.1c6e6337bd9eafee7ae1.js b/dist/apps/admin-gui/749-es2015.1c6e6337bd9eafee7ae1.js deleted file mode 100644 index b769f1f87..000000000 --- a/dist/apps/admin-gui/749-es2015.1c6e6337bd9eafee7ae1.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkperun_web_apps=self.webpackChunkperun_web_apps||[]).push([[749],{89749:function(t,e,i){"use strict";i.r(e),i.d(e,{FacilitiesModule:function(){return wn}});var s=i(61511),a=i(57629),n=i(73916),l=i(17),o=i(75585),c=i(65249),r=i(84140),d=i(68416),u=i(6527),h=i(30570),p=i(31572),g=i(84608),f=i(48958),m=i(24820),A=i(66297),I=i(67806),S=i(43691),T=i(36922),b=i(21575),E=i(15980),Z=i(48160);function C(t,e){1&t&&p._UZ(0,"mat-spinner",3)}function v(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",12),p.NdJ("click",function(){return p.CHM(t),p.oxw(2).editFacility()}),p.TgZ(1,"mat-icon"),p._uU(2,"edit"),p.qZA(),p.qZA()}}function _(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",12),p.NdJ("click",function(){return p.CHM(t),p.oxw(2).deleteFacility()}),p.TgZ(1,"mat-icon"),p._uU(2,"delete_forever"),p.qZA(),p.qZA()}}const y=function(){return{color:"black"}},O=function(t){return["/facilities",t]};function L(t,e){if(1&t&&(p.TgZ(0,"div"),p.TgZ(1,"div",4),p._UZ(2,"mat-icon",5),p.ALo(3,"translate"),p.TgZ(4,"div",6),p.TgZ(5,"div",7),p.TgZ(6,"a",8),p._uU(7),p.qZA(),p.TgZ(8,"span",9),p._uU(9),p.qZA(),p.YNc(10,v,3,0,"button",10),p.YNc(11,_,3,0,"button",10),p.qZA(),p.TgZ(12,"span",11),p._uU(13),p.ALo(14,"translate"),p.ALo(15,"translate"),p.qZA(),p.qZA(),p.qZA(),p._UZ(16,"app-animated-router-outlet"),p.qZA()),2&t){const t=p.oxw();p.xp6(2),p.s9C("matTooltip",p.lcZ(3,10,"FACILITY_DETAIL.ENTITY")),p.Q6J("ngStyle",p.DdM(16,y)),p.xp6(4),p.Q6J("routerLink",p.VKq(17,O,t.facility.id)),p.xp6(1),p.Oqu(t.facility.name),p.xp6(2),p.hij(" \xa0#",t.facility.id," "),p.xp6(1),p.Q6J("ngIf",t.editFacilityAuth),p.xp6(1),p.Q6J("ngIf",t.deleteAuth),p.xp6(2),p.lnq(" ",p.lcZ(14,12,"FACILITY_DETAIL.ENTITY"),", ",p.lcZ(15,14,"FACILITY_DETAIL.DESCRIPTION"),": ",t.facility.description," ")}}let x=(()=>{class t{constructor(t,e,i,s,a,n,l,o,c){this.dialog=t,this.facilityManager=e,this.route=i,this.sideMenuService=s,this.sideMenuItemService=a,this.guiAuthResolver=n,this.router=l,this.entityStorageService=o,this.reloadEntityDetail=c,this.editFacilityAuth=!1,this.deleteAuth=!1,this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.subscribe(()=>{this.reloadData()})}reloadData(){this.loading=!0,this.route.params.subscribe(t=>{this.facilityManager.getFacilityById(t.facilityId).subscribe(t=>{this.facility=t,this.entityStorageService.setEntity({id:t.id,beanName:t.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,r.sF)("facilities",this.facility),(0,r.XI)(this.facility),this.loading=!1},()=>this.loading=!1)})}setMenuItems(){const t=this.sideMenuItemService.parseFacility(this.facility);this.sideMenuService.setFacilityMenuItems([t])}editFacility(){const t=(0,r.kZ)();t.width="450px",t.data={theme:"facility-theme",facility:this.facility,dialogType:u.Eg.FACILITY},this.dialog.open(u.rd,t).afterClosed().subscribe(t=>{t&&this.facilityManager.getFacilityById(this.facility.id).subscribe(t=>{this.facility=t,this.setMenuItems()})})}deleteFacility(){const t=(0,r.kZ)();t.width="500px",t.data={theme:"facility-theme",facility:this.facility},this.dialog.open(h.Y,t).afterClosed().subscribe(t=>{t&&this.router.navigate([""])})}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.uw),p.Y36(c.IQ),p.Y36(a.gz),p.Y36(f.D),p.Y36(o.V),p.Y36(d.x4),p.Y36(a.F0),p.Y36(d.fb),p.Y36(m.G))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-detail-page"]],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(t,e){1&t&&(p.TgZ(0,"div",0),p._UZ(1,"perun-web-apps-back-button"),p.YNc(2,C,1,0,"mat-spinner",1),p.YNc(3,L,17,19,"div",2),p.qZA()),2&t&&(p.xp6(2),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading&&void 0!==e.facility))},directives:[A.W,s.O5,I.$g,S.Hw,T.gM,s.PC,a.yS,b.A,E.lW],pipes:[Z.X$],styles:[""],data:{animation:[l.Ji]}}),t})();var N=i(8557);function R(t,e){1&t&&p._UZ(0,"mat-spinner",2)}function D(t,e){if(1&t&&(p.TgZ(0,"div"),p._UZ(1,"perun-web-apps-menu-buttons-field",3),p.qZA()),2&t){const t=p.oxw();p.xp6(1),p.Q6J("items",t.navItems)("size","small")}}let w=(()=>{class t{constructor(t,e,i){this.facilityManager=t,this.authResolver=e,this.entityStorageService=i,this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.navItems=[],this.authResolver.isAuthorized("getAssignedRichResources_Facility_policy",[this.facility])&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/facilities/${this.facility.id}/resources`,label:"MENU_ITEMS.FACILITY.RESOURCES",style:"facility-btn"}),this.authResolver.isAuthorized("getAssignedUsers_Facility_Service_policy",[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.authResolver.isAuthorized("getAllowedGroups_Facility_Vo_Service_policy",[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.authResolver.isAuthorized("getFacilityServicesState_Facility_policy",[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.authResolver.isAuthorized("getAllRichDestinations_Facility_policy",[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.authResolver.isFacilityAdmin()&&this.navItems.push({cssIcon:"perun-hosts",url:`/facilities/${this.facility.id}/hosts`,label:"MENU_ITEMS.FACILITY.HOSTS",style:"facility-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:`/facilities/${this.facility.id}/attributes`,label:"MENU_ITEMS.FACILITY.ATTRIBUTES",style:"facility-btn"}),(this.authResolver.isAuthorized("getBansForFacility_int_policy",[this.facility])||this.authResolver.isManagerPagePrivileged(this.facility)||this.authResolver.isAuthorized("getOwners_Facility_policy",[this.facility])||this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[this.facility]))&&this.navItems.push({cssIcon:"perun-settings2",url:`/facilities/${this.facility.id}/settings`,label:"MENU_ITEMS.FACILITY.SETTINGS",style:"facility-btn"})}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(c.IQ),p.Y36(d.x4),p.Y36(d.fb))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&p.ekj("router-component",e.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(t,e){1&t&&(p.YNc(0,R,1,0,"mat-spinner",0),p.YNc(1,D,2,2,"div",1)),2&t&&(p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[s.O5,I.$g,N.L],styles:[""]}),t})();var k=i(64467),F=i(39124),Y=i(72920),U=i(76527);let q=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&p.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&p._UZ(0,"app-animated-router-outlet")},directives:[b.A],styles:[""],data:{animation:[l.Ji]}}),t})();function M(t,e){1&t&&p._UZ(0,"mat-spinner",2)}function J(t,e){if(1&t&&(p.TgZ(0,"div"),p._UZ(1,"perun-web-apps-menu-buttons-field",3),p.qZA()),2&t){const t=p.oxw();p.xp6(1),p.Q6J("items",t.items)("size","small")}}let Q=(()=>{class t{constructor(t,e,i){this.facilityManager=t,this.authResolver=e,this.entityStorageService=i,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.items=[],this.authResolver.isAuthorized("getOwners_Facility_policy",[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.authResolver.isManagerPagePrivileged(this.facility)&&this.items.push({cssIcon:"perun-manager",url:`/facilities/${this.facility.id}/settings/managers`,label:"MENU_ITEMS.FACILITY.MANAGERS",style:"facility-btn"}),this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[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.authResolver.isAuthorized("getBansForFacility_int_policy",[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 t.\u0275fac=function(e){return new(e||t)(p.Y36(c.IQ),p.Y36(d.x4),p.Y36(d.fb))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-settings-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&p.ekj("router-component",e.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(t,e){1&t&&(p.YNc(0,M,1,0,"mat-spinner",0),p.YNc(1,J,2,2,"div",1)),2&t&&(p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[s.O5,I.$g,N.L],styles:[""]}),t})();var V=i(55109),H=i(541),P=i(3417);function G(t,e){1&t&&(p._uU(0),p.ALo(1,"translate")),2&t&&p.hij(" ",p.lcZ(1,1,"FACILITY_DETAIL.ENTITY")," ")}function B(t,e){if(1&t&&p._UZ(0,"app-one-entity-attribute-page",4),2&t){const t=p.oxw();p.Q6J("entity","facility")("entityId",t.facility.id)}}function $(t,e){1&t&&(p._uU(0),p.ALo(1,"translate"),p.ALo(2,"translate")),2&t&&p.AsE(" ",p.lcZ(1,2,"FACILITY_DETAIL.ENTITY")," - ",p.lcZ(2,4,"ADMIN_USER.ENTITY")," ")}function j(t,e){if(1&t&&p._UZ(0,"app-two-entity-attribute-page",5),2&t){const t=p.oxw(2);p.Q6J("firstEntity","facility")("firstEntityId",t.facility.id)("secondEntity","user")}}function z(t,e){1&t&&(p.TgZ(0,"mat-tab"),p.YNc(1,$,3,6,"ng-template",1),p.YNc(2,j,1,3,"ng-template",2),p.qZA())}let X=(()=>{class t{constructor(t,e){this.authResolver=t,this.entityStorageService=e}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.facilityUserAttAuth=this.authResolver.isAuthorized("getAssignedUsers_Facility_policy",[this.facility])}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(d.x4),p.Y36(d.fb))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-attributes"]],hostVars:2,hostBindings:function(t,e){2&t&&p.ekj("router-component",e.true)},decls:9,vars:4,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"mat-tab-group"),p.TgZ(5,"mat-tab"),p.YNc(6,G,2,3,"ng-template",1),p.YNc(7,B,1,2,"ng-template",2),p.qZA(),p.YNc(8,z,3,0,"mat-tab",3),p.qZA(),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,2,"FACILITY_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),p.xp6(6),p.Q6J("ngIf",e.facilityUserAttAuth))},directives:[V.SP,V.uX,V.uD,V.Vc,s.O5,H.t,P.Y],pipes:[Z.X$],styles:[""]}),t})();var W=i(77968),K=i(22927),tt=i(79472),et=i(42473),it=i(16073),st=i(56238),at=i(79996),nt=i(22280),lt=i(29236),ot=i(66283),ct=i(80340),rt=i(40084),dt=i(71522),ut=i(22196);function ht(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-option",10),p.NdJ("onSelectionChange",function(){const e=p.CHM(t).$implicit;return p.oxw(3).onSelectedService(e)}),p._uU(1),p.qZA()}if(2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.hij(" ",t.name," ")}}function pt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-form-field",6),p.TgZ(1,"input",7),p.NdJ("keyup",function(e){return p.CHM(t),p.oxw(2).updatedSerVal(e)}),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"mat-autocomplete",8,9),p.TgZ(5,"mat-option",10),p.NdJ("onSelectionChange",function(){return p.CHM(t),p.oxw(2).onSelectedService("NOT_SELECTED")}),p._uU(6),p.ALo(7,"translate"),p.qZA(),p.TgZ(8,"mat-option",10),p.NdJ("onSelectionChange",function(){return p.CHM(t),p.oxw(2).onSelectedService("ALL")}),p._uU(9),p.ALo(10,"translate"),p.qZA(),p.YNc(11,ht,2,2,"mat-option",11),p.ALo(12,"async"),p.qZA(),p.qZA()}if(2&t){const t=p.MAs(4),e=p.oxw(2);p.xp6(1),p.s9C("placeholder",p.lcZ(2,9,"FACILITY_DETAIL.SERVICE_CONFIG.SERVICE_SELECT")),p.Q6J("formControl",e.serviceField)("matAutocomplete",t),p.xp6(2),p.Q6J("displayWith",e.serviceDisplayFn.bind(e)),p.xp6(2),p.Q6J("value","NOT_SELECTED"),p.xp6(1),p.hij(" ",p.lcZ(7,11,"FACILITY_DETAIL.SERVICE_CONFIG.NOT_SELECTED")," "),p.xp6(2),p.Q6J("value","ALL"),p.xp6(1),p.hij(" ",p.lcZ(10,13,"FACILITY_DETAIL.SERVICE_CONFIG.ALL")," "),p.xp6(2),p.Q6J("ngForOf",p.lcZ(12,15,e.filteredServices))}}function gt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-option",10),p.NdJ("onSelectionChange",function(){const e=p.CHM(t).$implicit;return p.oxw(3).onSelectedResource(e)}),p._uU(1),p.qZA()}if(2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.hij(" ",t.name," ")}}function ft(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-form-field",6),p.TgZ(1,"input",12),p.NdJ("keyup",function(e){return p.CHM(t),p.oxw(2).updatedResVal(e)}),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"mat-autocomplete",8,9),p.YNc(5,gt,2,2,"mat-option",11),p.ALo(6,"async"),p.qZA(),p.qZA()}if(2&t){const t=p.MAs(4),e=p.oxw(2);p.xp6(1),p.s9C("placeholder",p.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.RES_SELECT")),p.Q6J("matAutocomplete",t)("formControl",e.resourceField),p.xp6(2),p.Q6J("displayWith",e.resourceDisplayFn.bind(e)),p.xp6(2),p.Q6J("ngForOf",p.lcZ(6,7,e.filteredResources))}}function mt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-option",10),p.NdJ("onSelectionChange",function(){const e=p.CHM(t).$implicit;return p.oxw(3).onSelectedGroup(e)}),p._uU(1),p.qZA()}if(2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.hij(" ",t.name," ")}}function At(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-form-field",6),p.TgZ(1,"input",12),p.NdJ("keyup",function(e){return p.CHM(t),p.oxw(2).updatedGroupVal(e)}),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"mat-autocomplete",13,9),p.YNc(5,mt,2,2,"mat-option",11),p.ALo(6,"async"),p.qZA(),p.qZA()}if(2&t){const t=p.MAs(4),e=p.oxw(2);p.xp6(1),p.s9C("placeholder",p.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.GROUP_SELECT")),p.Q6J("matAutocomplete",t)("formControl",e.groupField),p.xp6(2),p.Q6J("displayWith",e.groupDisplayFn.bind(e)),p.xp6(2),p.Q6J("ngForOf",p.lcZ(6,7,e.filteredGroups))}}function It(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-option",10),p.NdJ("onSelectionChange",function(){const e=p.CHM(t).$implicit;return p.oxw(3).onSelectedMember(e)}),p._uU(1),p.ALo(2,"userFullName"),p.qZA()}if(2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.hij(" ",p.lcZ(2,2,t.user)," ")}}function St(t,e){if(1&t&&(p.TgZ(0,"mat-form-field",6),p._UZ(1,"input",14),p.ALo(2,"translate"),p.TgZ(3,"mat-autocomplete",8,9),p.YNc(5,It,3,4,"mat-option",11),p.ALo(6,"async"),p.qZA(),p.qZA()),2&t){const t=p.MAs(4),e=p.oxw(2);p.xp6(1),p.s9C("placeholder",p.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.MEMBER_SELECT")),p.Q6J("formControl",e.memberField)("matAutocomplete",t),p.xp6(2),p.Q6J("displayWith",e.memberDisplayFn.bind(e)),p.xp6(2),p.Q6J("ngForOf",p.lcZ(6,7,e.filteredMembers))}}function Tt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div",3),p.YNc(1,pt,13,17,"mat-form-field",4),p.TgZ(2,"mat-checkbox",5),p.NdJ("change",function(e){return p.CHM(t),p.oxw().onOfferAllServices(e)}),p._uU(3),p.ALo(4,"translate"),p.qZA(),p.YNc(5,ft,7,9,"mat-form-field",4),p.YNc(6,At,7,9,"mat-form-field",4),p.YNc(7,St,7,9,"mat-form-field",4),p.qZA()}if(2&t){const t=p.oxw();p.xp6(1),p.Q6J("ngIf",void 0!==t.services),p.xp6(2),p.hij(" ",p.lcZ(4,5,"FACILITY_DETAIL.SERVICE_CONFIG.ALL_SERVICES")," "),p.xp6(2),p.Q6J("ngIf",void 0!==t.resources&&0!==t.resources.length),p.xp6(1),p.Q6J("ngIf",void 0!==t.selectedResource&&void 0!==t.groups&&0!==t.groups.length),p.xp6(1),p.Q6J("ngIf",void 0!==t.selectedGroup&&void 0!==t.members&&0!==t.members.length)}}function bt(t,e){if(1&t&&p._UZ(0,"perun-web-apps-service-configurator",15),2&t){const t=p.oxw();p.Q6J("facility",t.facility)("resource",t.selectedResource)("group",t.selectedGroup)("service",t.selectedService)("member",t.selectedMember)}}let Et=(()=>{class t{constructor(t,e,i,s,a,n,l){this.facilityManager=t,this.resourceManager=e,this.serviceManager=i,this.membersManager=s,this.namePipe=a,this.translate=n,this.entityStorageService=l,this.selectedService="NOT_SELECTED",this.attrNames=[],this.serviceField=new it.NI,this.resourceField=new it.NI,this.groupField=new it.NI,this.memberField=new it.NI,this.allowedStatuses=["INVALID","VALID"],this.translate.get("FACILITY_DETAIL.SERVICE_CONFIG.ALL").subscribe(t=>this.serviceAllTranslation=t),this.translate.get("FACILITY_DETAIL.SERVICE_CONFIG.NOT_SELECTED").subscribe(t=>this.serviceNotSelectedTranslation=t)}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.facilityManager.getFacilityById(this.facility.id).subscribe(t=>{this.facility=t,this.facilityManager.getAssignedResourcesForFacility(t.id).subscribe(t=>this.resources=t),this.serviceManager.getAssignedServices(t.id).subscribe(t=>this.services=t)}),this.filteredServices=this.serviceField.valueChanges.pipe((0,st.O)(""),(0,at.U)(t=>this._filterServices(t))),this.filteredResources=this.resourceField.valueChanges.pipe((0,st.O)(""),(0,at.U)(t=>this._filterResources(t))),this.filteredGroups=this.groupField.valueChanges.pipe((0,st.O)(""),(0,at.U)(t=>this._filterGroups(t))),this.filteredMembers=this.memberField.valueChanges.pipe((0,st.O)(""),(0,at.U)(t=>this._filterMembers(t)))}onSelectedService(t){this.selectedService=t}onSelectedResource(t){this.selectedResource=t,void 0!==this.selectedResource?(this.resourceManager.getAssignedGroups(this.selectedResource.id).subscribe(t=>this.groups=t),this.selectedGroup=void 0,this.selectedMember=void 0):this.groups=void 0}onOfferAllServices(t){t.checked||this.serviceManager.getAssignedServices(this.facility.id).subscribe(t=>this.services=t)}onSelectedGroup(t){this.selectedGroup=t,void 0!==this.selectedGroup?(this.membersManager.getCompleteRichMembersForGroup(this.selectedGroup.id,!1,this.allowedStatuses,this.attrNames).subscribe(t=>this.members=t),this.selectedMember=void 0):this.members=void 0}onSelectedMember(t){this.selectedMember=t}_filterServices(t){const e=t.toString().toLowerCase();return this.services.filter(t=>t.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(e))}_filterResources(t){const e=t.toString().toLowerCase();return this.resources.filter(t=>t.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(e))}_filterGroups(t){const e=t.toString().toLowerCase();return this.groups.filter(t=>t.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(e))}_filterMembers(t){const e=t.toString().toLowerCase();return this.members.filter(t=>this.namePipe.transform(t.user).toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(e))}serviceDisplayFn(t){if(null!==t)return"ALL"===t?this.serviceAllTranslation:"NOT_SELECTED"===t?this.serviceNotSelectedTranslation:t.name}resourceDisplayFn(t){if(null!==t)return t.name}groupDisplayFn(t){if(null!==t)return t.name}memberDisplayFn(t){if(null!==t)return this.namePipe.transform(t.user)}updatedSerVal(t){""===t.target.value&&(this.selectedService="NOT_SELECTED")}updatedResVal(t){""===t.target.value&&(this.groups=void 0,this.members=void 0)}updatedGroupVal(t){""===t.target.value&&(this.members=void 0)}updatedMemVal(t){}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(c.IQ),p.Y36(c.xk),p.Y36(c.KK),p.Y36(c.uq),p.Y36(nt.dp),p.Y36(Z.sK),p.Y36(d.fb))},t.\u0275cmp=p.Xpm({type:t,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","service","member",4,"ngIf"],[1,"col-12","col-lg-6","mb-2"],["class","w-100",4,"ngIf"],[3,"change"],[1,"w-100"],["type","text","matInput","",3,"placeholder","formControl","matAutocomplete","keyup"],["autoActiveFirstOption","",3,"displayWith"],["auto","matAutocomplete"],[3,"value","onSelectionChange"],[3,"value","onSelectionChange",4,"ngFor","ngForOf"],["type","text","matInput","",3,"placeholder","matAutocomplete","formControl","keyup"],["autoActiveFirstOption","",3,"ngClass","displayWith"],["type","text","matInput","",3,"placeholder","formControl","matAutocomplete"],[3,"facility","resource","group","service","member"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.YNc(4,Tt,8,7,"div",1),p.YNc(5,bt,1,5,"perun-web-apps-service-configurator",2),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,3,"FACILITY_DETAIL.SERVICE_CONFIG.TITLE")),p.xp6(2),p.Q6J("ngIf",!!e.facility),p.xp6(1),p.Q6J("ngIf",!!e.facility))},directives:[s.O5,lt.oG,ot.KE,ct.Nt,it.Fj,rt.ZL,it.JJ,it.oH,rt.XC,dt.ey,s.sg,s.mk],pipes:[Z.X$,s.Ov,ut.d],styles:[""]}),t})();var Zt=i(489);let Ct=(()=>{class t{constructor(t,e,i){this.facilityService=t,this.guiAuthResolver=e,this.entityStorageService=i,this.availableRoles=[],this.selected="user",this.type="Facility",this.theme="facility-theme",this.disableRouting=!1,this.disableSelf=!1}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Facility")}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(c.IQ),p.Y36(d.x4),p.Y36(d.fb))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-perun-web-apps-facility-settings-managers"]],hostVars:2,hostBindings:function(t,e){2&t&&p.ekj("router-component",e.true)},inputs:{disableRouting:"disableRouting",disableSelf:"disableSelf"},decls:1,vars:6,consts:[[3,"complementaryObject","complementaryObjectType","theme","availableRoles","disableRouting","disableSelf"]],template:function(t,e){1&t&&p._UZ(0,"app-managers-page",0),2&t&&p.Q6J("complementaryObject",e.facility)("complementaryObjectType",e.type)("theme",e.theme)("availableRoles",e.availableRoles)("disableRouting",e.disableRouting)("disableSelf",e.disableSelf)},directives:[Zt.s],styles:[""]}),t})();var vt=i(60611),_t=i(4230),yt=i(60547),Ot=i(4786);function Lt(t,e){1&t&&p._UZ(0,"mat-spinner",6)}function xt(t,e){1&t&&(p.TgZ(0,"mat-option",19),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.SELECTION_ALL")))}function Nt(t,e){1&t&&(p.TgZ(0,"mat-option",20),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.NO_SERVICE")))}function Rt(t,e){if(1&t&&(p.TgZ(0,"mat-option",21),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.hij(" ",t.name," ")}}function Dt(t,e){1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.CHOOSE_SERVICE")," "))}function wt(t,e){if(1&t&&(p.TgZ(0,"mat-option",21),p._uU(1),p.qZA()),2&t){const t=e.$implicit,i=p.oxw(2);p.Q6J("value",t),p.xp6(1),p.hij(" ",i.getTypeForView(t)," ")}}function kt(t,e){1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.REQUIRED_FIELD")," "))}function Ft(t,e){1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.INVALID_DESTINATION")," "))}function Yt(t,e){if(1&t&&(p.TgZ(0,"mat-form-field",22),p._UZ(1,"input",23),p.YNc(2,kt,3,3,"mat-error",13),p.YNc(3,Ft,3,3,"mat-error",13),p.qZA()),2&t){const t=p.oxw(2);p.xp6(1),p.s9C("placeholder",t.getTypeForView(t.selectedType)),p.Q6J("formControl",t.destinationControl),p.xp6(1),p.Q6J("ngIf","host"===t.selectedType&&!t.useFacilityHost&&t.destinationControl.hasError("required")),p.xp6(1),p.Q6J("ngIf",t.destinationControl.hasError("invalidDestination"))}}function Ut(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-checkbox",24),p.NdJ("ngModelChange",function(e){return p.CHM(t),p.oxw(2).useFacilityHost=e}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw(2);p.Q6J("ngModel",t.useFacilityHost),p.xp6(1),p.hij(" ",p.lcZ(2,2,"DIALOGS.ADD_SERVICE_DESTINATION.USE_FACILITY_HOST")," ")}}function qt(t,e){if(1&t&&(p.TgZ(0,"mat-option",21),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.hij(" ",t," ")}}function Mt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div",7),p.TgZ(1,"div",8),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"mat-form-field"),p.TgZ(5,"mat-select",9),p.ALo(6,"translate"),p.YNc(7,xt,3,3,"mat-option",10),p.YNc(8,Nt,3,3,"mat-option",11),p.YNc(9,Rt,2,2,"mat-option",12),p.qZA(),p.YNc(10,Dt,3,3,"mat-error",13),p.qZA(),p.TgZ(11,"mat-checkbox",14),p.NdJ("change",function(){return p.CHM(t),p.oxw().getServices()})("ngModelChange",function(e){return p.CHM(t),p.oxw().servicesOnFacility=e}),p._uU(12),p.ALo(13,"translate"),p.qZA(),p.TgZ(14,"mat-form-field"),p.TgZ(15,"mat-select",15),p.NdJ("ngModelChange",function(e){return p.CHM(t),p.oxw().selectedType=e})("selectionChange",function(){return p.CHM(t),p.oxw().destinationControl.updateValueAndValidity()}),p.ALo(16,"translate"),p.YNc(17,wt,2,2,"mat-option",12),p.qZA(),p.qZA(),p.YNc(18,Yt,4,4,"mat-form-field",16),p.YNc(19,Ut,3,4,"mat-checkbox",17),p.TgZ(20,"mat-form-field"),p.TgZ(21,"mat-select",18),p.NdJ("ngModelChange",function(e){return p.CHM(t),p.oxw().selectedPropagation=e}),p.ALo(22,"translate"),p.YNc(23,qt,2,2,"mat-option",12),p.qZA(),p.qZA(),p.TgZ(24,"div",8),p._uU(25),p.ALo(26,"translate"),p.qZA(),p.qZA()}if(2&t){const t=p.oxw();p.xp6(2),p.Oqu(p.lcZ(3,18,"DIALOGS.ADD_SERVICE_DESTINATION.DESCRIPTION")),p.xp6(3),p.s9C("placeholder",p.lcZ(6,20,"DIALOGS.ADD_SERVICE_DESTINATION.SERVICE")),p.Q6J("formControl",t.serviceControl),p.xp6(2),p.Q6J("ngIf",0!==t.services.length),p.xp6(1),p.Q6J("ngIf",0===t.services.length),p.xp6(1),p.Q6J("ngForOf",t.services),p.xp6(1),p.Q6J("ngIf",void 0===t.serviceControl.value),p.xp6(1),p.Q6J("ngModel",t.servicesOnFacility),p.xp6(1),p.Oqu(p.lcZ(13,22,"DIALOGS.ADD_SERVICE_DESTINATION.IS_SERVICES_ONLY_ON_FACILITY")),p.xp6(3),p.s9C("placeholder",p.lcZ(16,24,"DIALOGS.ADD_SERVICE_DESTINATION.TYPE")),p.Q6J("ngModel",t.selectedType),p.xp6(2),p.Q6J("ngForOf",t.types),p.xp6(1),p.Q6J("ngIf",!("host"===t.selectedType&&t.useFacilityHost)),p.xp6(1),p.Q6J("ngIf","host"===t.selectedType),p.xp6(2),p.s9C("placeholder",p.lcZ(22,26,"DIALOGS.ADD_SERVICE_DESTINATION.PROPAGATION")),p.Q6J("ngModel",t.selectedPropagation),p.xp6(2),p.Q6J("ngForOf",t.propagations),p.xp6(2),p.hij(" ",p.lcZ(26,28,"DIALOGS.ADD_SERVICE_DESTINATION.PROPAGATION_TYPE_"+t.selectedPropagation)," ")}}let Jt=(()=>{class t{constructor(t,e,i,s){this.dialogRef=t,this.data=e,this.facilitiesManager=i,this.servicesManager=s,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(r.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.loading=!0,this.serviceControl=new it.NI(void 0,it.kI.required),this.destinationControl=new it.NI("",this.getDestinationValidator()),this.emailControl=new it.NI("",[it.kI.required,it.kI.pattern(this.emailRegex)]),this.facilitiesManager.getHosts(this.data.facility.id).subscribe(t=>{this.hosts=t,this.servicesOnFacility=!0,this.getServices(),this.loading=!1},()=>this.loading=!1)}getDestinationValidator(){return t=>{if(!t.value)return null;let e;switch(this.selectedType){case"host":case"host-windows-proxy":e=this.hostPattern;break;case"email":case"semail":e=this.emailRegex;break;case"url":e=this.urlPattern;break;case"user@host":case"user@host-windows":e=this.userAtHostPattern;break;case"user@host:port":e=this.userAtHostPortPattern;break;case"service-specific":e=this.serviceSpecificPattern;break;default:return null}return e.test(t.value)?null:{invalidDestination:{value:t.value}}}}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(t=>{this.services=t},()=>this.loading=!1):this.servicesManager.getServices().subscribe(t=>{this.services=t},()=>this.loading=!1),this.loading=!1,this.serviceControl.setValue(void 0)}getTypeForView(t){return"semail"===t?"Send Mail":"service-specific"===t?"Service Specific":t}invalidDestination(){return("host"!==this.selectedType||!this.useFacilityHost)&&this.destinationControl.invalid}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.so),p.Y36(g.WI),p.Y36(c.IQ),p.Y36(c.KK))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-perun-web-apps-add-services-destination-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",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(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.YNc(4,Lt,1,0,"mat-spinner",1),p.YNc(5,Mt,27,30,"div",2),p.TgZ(6,"div",3),p.TgZ(7,"button",4),p.NdJ("click",function(){return e.onCancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return e.onSubmit()}),p._uU(11),p.ALo(12,"translate"),p.qZA(),p.qZA(),p.qZA()),2&t&&(p.Tol(e.data.theme),p.xp6(2),p.Oqu(p.lcZ(3,9,"DIALOGS.ADD_SERVICE_DESTINATION.TITLE")),p.xp6(2),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.ADD_SERVICE_DESTINATION.CANCEL")," "),p.xp6(2),p.Q6J("disabled",e.loading||e.invalidDestination()||e.serviceControl.invalid||"noService"===e.serviceControl.value),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.ADD_SERVICE_DESTINATION.ADD")," "))},directives:[g.uh,s.O5,g.H8,E.lW,I.$g,g.xY,ot.KE,Ot.gD,it.Q7,it.JJ,it.oH,s.sg,lt.oG,it.On,dt.ey,ot.TO,ct.Nt,it.Fj],pipes:[Z.X$],styles:[""],data:{animation:[l.BQ]}}),t})();var Qt=i(59403),Vt=i(19139),Ht=i(39571),Pt=i(94357);function Gt(t,e){1&t&&(p.TgZ(0,"app-alert",9),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"FACILITY_DETAIL.SERVICES_DESTINATIONS.DESTINATIONS_INFO")," "))}function Bt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",10),p.NdJ("click",function(){return p.CHM(t),p.oxw().addDestination()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"FACILITY_DETAIL.SERVICES_DESTINATIONS.ADD")," "))}function $t(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",11),p.NdJ("click",function(){return p.CHM(t),p.oxw().removeDestination()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",0===t.selected.selected.length),p.xp6(1),p.hij(" ",p.lcZ(2,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.REMOVE")," ")}}function jt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",12),p.NdJ("click",function(){return p.CHM(t),p.oxw().onAllow()}),p.TgZ(1,"mat-icon"),p._uU(2," check_circle_outline "),p.qZA(),p._uU(3),p.ALo(4,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",0===t.selected.selected.length||t.allSelectedAllowed()),p.xp6(3),p.hij(" ",p.lcZ(4,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.ALLOW")," ")}}function zt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",12),p.NdJ("click",function(){return p.CHM(t),p.oxw().onBlock()}),p.TgZ(1,"mat-icon"),p._uU(2," block "),p.qZA(),p._uU(3),p.ALo(4,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",0===t.selected.selected.length||t.allSelectedBlocked()),p.xp6(3),p.hij(" ",p.lcZ(4,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.BLOCK")," ")}}function Xt(t,e){1&t&&p._UZ(0,"mat-spinner",13)}function Wt(t,e){if(1&t&&p._UZ(0,"app-perun-web-apps-destination-list",14),2&t){const t=p.oxw();p.Q6J("tableId",t.tableId)("filterValue",t.filterValue)("destinations",t.destinations)("selection",t.selected)("displayedColumns",t.displayedColumns)("services",t.configServicesIds)}}let Kt=(()=>{class t{constructor(t,e,i,s,a,n,l,o){this.dialog=t,this.facilitiesManager=e,this.servicesManager=i,this.translate=s,this.notificator=a,this.authResolver=n,this.serviceManager=l,this.entityStorageService=o,this.selected=new _t.Ov(!0,[]),this.displayedColumns=["select","destinationId","service","destination","type","propagationType"],this.configServices=[],this.configServicesIds=new Set,this.title="FACILITY_DETAIL.SERVICES_DESTINATIONS.TITLE",this.destinationEmitter=new p.vpe,this.filterValue="",this.tableId=vt.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(t=>{this.destinations=t,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(t=>"select"!==t)}addDestination(){const t=(0,r.kZ)();t.width="600px",t.data={facility:this.facility,theme:"facility-theme",configServices:this.configServices},this.dialog.open(Jt,t).afterClosed().subscribe(t=>{t&&this.translate.get("FACILITY_DETAIL.SERVICES_DESTINATIONS.ADD_SUCCESS").subscribe(t=>{this.refreshTable(),this.notificator.showSuccess(t)})})}removeDestination(){const t=(0,r.kZ)();t.width="600px",t.data={destinations:this.selected.selected,theme:"facility-theme"},this.dialog.open(yt.u,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}blockServiceOnDestinations(t){if(0===t.length)return this.notificator.showSuccess(this.translate.instant("FACILITY_DETAIL.SERVICES_DESTINATIONS.BLOCK_SUCCESS")),void this.refreshTable();const e=t.pop();this.serviceManager.blockServiceOnDestination(e.service.id,e.id).subscribe(()=>{this.blockServiceOnDestinations(t)},()=>this.loading=!1)}onBlock(){this.loading=!0,this.blockServiceOnDestinations(this.selected.selected)}allowServiceOnDestinations(t){if(0===t.length)return this.notificator.showSuccess(this.translate.instant("FACILITY_DETAIL.SERVICES_DESTINATIONS.ALLOW_SUCCESS")),void this.refreshTable();const e=t.pop();this.serviceManager.unblockServiceOnDestinationById(e.service.id,e.id).subscribe(()=>{this.allowServiceOnDestinations(t)},()=>this.loading=!1)}onAllow(){this.loading=!0,this.allowServiceOnDestinations(this.selected.selected)}applyFilter(t){this.filterValue=t}allSelectedAllowed(){return this.selected.selected.reduce((t,e)=>t&&!e.blocked,!0)}allSelectedBlocked(){return this.selected.selected.reduce((t,e)=>t&&e.blocked,!0)}}return t.id="FacilityServicesDestinationsComponent",t.\u0275fac=function(e){return new(e||t)(p.Y36(g.uw),p.Y36(c.IQ),p.Y36(c.KK),p.Y36(Z.sK),p.Y36(d.V6),p.Y36(d.x4),p.Y36(c.KK),p.Y36(d.fb))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-perun-web-apps-facility-services-destinations"]],hostVars:2,hostBindings:function(t,e){2&t&&p.ekj("router-component",e.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"],["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"],["mat-stroked-button","","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","filterValue","destinations","selection","displayedColumns","services",4,"ngIf"],["alert_type","info"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","destinations","selection","displayedColumns","services"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.YNc(4,Gt,3,3,"app-alert",1),p.TgZ(5,"perun-web-apps-refresh-button",2),p.NdJ("refresh",function(){return e.refreshTable()}),p.qZA(),p.YNc(6,Bt,3,3,"button",3),p.YNc(7,$t,3,4,"button",4),p.YNc(8,jt,5,4,"button",5),p.YNc(9,zt,5,4,"button",5),p.TgZ(10,"perun-web-apps-immediate-filter",6),p.NdJ("filter",function(t){return e.applyFilter(t)}),p.qZA(),p.YNc(11,Xt,1,0,"mat-spinner",7),p.YNc(12,Wt,1,6,"app-perun-web-apps-destination-list",8),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,9,e.title)),p.xp6(2),p.Q6J("ngIf",e.title.includes("CONFIG")),p.xp6(2),p.Q6J("ngIf",e.addAuth),p.xp6(1),p.Q6J("ngIf",e.removeAuth),p.xp6(1),p.Q6J("ngIf",e.allowAuth),p.xp6(1),p.Q6J("ngIf",e.blockAuth),p.xp6(1),p.Q6J("placeholder","FACILITY_DETAIL.SERVICES_DESTINATIONS.FILTER"),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[s.O5,Qt.t,Vt.L,Ht.w,E.lW,S.Hw,I.$g,Pt.q],pipes:[Z.X$],styles:[""]}),t})();var te=i(17767);function ee(t,e){1&t&&p._UZ(0,"mat-spinner",3)}function ie(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div"),p.TgZ(1,"perun-web-apps-immediate-filter",4),p.NdJ("filter",function(e){return p.CHM(t),p.oxw().applyFilter(e)}),p.qZA(),p.TgZ(2,"div",5),p._UZ(3,"perun-web-apps-owners-list",6),p.qZA(),p.TgZ(4,"div",7),p.TgZ(5,"button",8),p.NdJ("click",function(){return p.CHM(t),p.oxw().onCancel()}),p._uU(6),p.ALo(7,"translate"),p.qZA(),p.TgZ(8,"button",9),p.NdJ("click",function(){return p.CHM(t),p.oxw().onAdd()}),p._uU(9),p.ALo(10,"translate"),p.qZA(),p.qZA(),p.qZA()}if(2&t){const t=p.oxw();p.xp6(1),p.Q6J("placeholder","DIALOGS.ADD_OWNERS.FILTER"),p.xp6(2),p.Q6J("filterValue",t.filterValue)("tableId",t.tableId)("owners",t.owners)("selection",t.selection),p.xp6(3),p.hij(" ",p.lcZ(7,8,"DIALOGS.ADD_OWNERS.CANCEL")," "),p.xp6(2),p.Q6J("disabled",0===t.selection.selected.length||t.loading),p.xp6(1),p.hij(" ",p.lcZ(10,10,"DIALOGS.ADD_OWNERS.ADD")," ")}}let se=(()=>{class t{constructor(t,e,i,s,a,n){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=s,this.ownersManagerService=a,this.facilitiesManagerService=n,this.extSources=[],this.selection=new _t.Ov(!0,[]),this.filterValue="",this.tableId=vt.BV,this.owners=[],this.translate.get("DIALOGS.ADD_OWNERS.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.ownersManagerService.getAllOwners().subscribe(t=>{this.owners=t.filter(t=>!this.data.forbiddenOwners.includes(t.id)),this.loading=!1},()=>this.loading=!1)}applyFilter(t){this.filterValue=t}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 t.\u0275fac=function(e){return new(e||t)(p.Y36(g.so),p.Y36(g.WI),p.Y36(d.V6),p.Y36(Z.sK),p.Y36(c.aC),p.Y36(c.IQ))},t.\u0275cmp=p.Xpm({type:t,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","tableId","owners","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(t,e){1&t&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div"),p.YNc(4,ee,1,0,"mat-spinner",1),p.YNc(5,ie,11,12,"div",2),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,6,"DIALOGS.ADD_OWNERS.TITLE")),p.xp6(2),p.Tol(e.theme),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[g.uh,s.O5,I.$g,Vt.L,g.xY,te.Q,g.H8,E.lW],pipes:[Z.X$],styles:[""]}),t})();var ae=i(67033);function ne(t,e){1&t&&p._UZ(0,"mat-spinner",6)}function le(t,e){1&t&&p._UZ(0,"th",15)}function oe(t,e){if(1&t&&(p.TgZ(0,"td",16),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.hij(" ",t.name," ")}}function ce(t,e){1&t&&p._UZ(0,"tr",17)}function re(t,e){1&t&&p._UZ(0,"tr",18)}function de(t,e){if(1&t&&(p.TgZ(0,"div",7),p.TgZ(1,"p"),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"div",8),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.TgZ(7,"table",9),p.ynx(8,10),p.YNc(9,le,1,0,"th",11),p.YNc(10,oe,2,1,"td",12),p.BQk(),p.YNc(11,ce,1,0,"tr",13),p.YNc(12,re,1,0,"tr",14),p.qZA(),p.qZA()),2&t){const t=p.oxw();p.xp6(2),p.hij(" ",p.lcZ(3,5,"DIALOGS.REMOVE_OWNERS.DESCRIPTION")," "),p.xp6(3),p.hij(" ",p.lcZ(6,7,"DIALOGS.REMOVE_OWNERS.ASK")," "),p.xp6(2),p.Q6J("dataSource",t.dataSource),p.xp6(4),p.Q6J("matHeaderRowDef",t.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",t.displayedColumns)}}let ue=(()=>{class t{constructor(t,e,i,s,a){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=s,this.facilitiesManagerService=a,this.displayedColumns=["name"],s.get("DIALOGS.REMOVE_OWNERS.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.dataSource=new ae.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 t.\u0275fac=function(e){return new(e||t)(p.Y36(g.so),p.Y36(g.WI),p.Y36(d.V6),p.Y36(Z.sK),p.Y36(c.IQ))},t.\u0275cmp=p.Xpm({type:t,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(t,e){1&t&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div"),p.YNc(4,ne,1,0,"mat-spinner",1),p.YNc(5,de,13,9,"div",2),p.TgZ(6,"div",3),p.TgZ(7,"button",4),p.NdJ("click",function(){return e.onCancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return e.onSubmit()}),p._uU(11),p.ALo(12,"translate"),p.qZA(),p.qZA(),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,9,"DIALOGS.REMOVE_OWNERS.TITLE")),p.xp6(2),p.Tol(e.theme),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.REMOVE_OWNERS.CANCEL")," "),p.xp6(2),p.Q6J("disabled",e.loading),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.REMOVE_OWNERS.DELETE")," "))},directives:[g.uh,s.O5,g.H8,E.lW,I.$g,g.xY,ae.BZ,ae.w1,ae.fO,ae.Dz,ae.as,ae.nj,ae.ge,ae.ev,ae.XQ,ae.Gk],pipes:[Z.X$],styles:[""]}),t})();function he(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",7),p.NdJ("click",function(){return p.CHM(t),p.oxw().onCreate()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"FACILITY_DETAIL.SETTINGS.OWNERS.ADD"),"\n"))}function pe(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",8),p.NdJ("click",function(){return p.CHM(t),p.oxw().onRemove()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",0===t.selection.selected.length),p.xp6(1),p.hij(" ",p.lcZ(2,2,"FACILITY_DETAIL.SETTINGS.OWNERS.DELETE"),"\n")}}function ge(t,e){1&t&&p._UZ(0,"mat-spinner",9)}function fe(t,e){if(1&t&&p._UZ(0,"perun-web-apps-owners-list",10),2&t){const t=p.oxw();p.Q6J("tableId",t.tableId)("filterValue",t.filterValue)("owners",t.owners)("displayedColumns",t.displayedColumns)("selection",t.selection)}}let me=(()=>{class t{constructor(t,e,i,s){this.facilitiesManagerService=t,this.dialog=e,this.authResolver=i,this.entityStorageService=s,this.owners=[],this.selection=new _t.Ov(!0,[]),this.displayedColumns=["id","name","contact","type"],this.tableId=vt.zp,this.ownerEmitter=new p.vpe}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(t=>{this.owners=t,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(t){this.filterValue=t}onCreate(){const t=(0,r.kZ)();t.width="800px",t.data={theme:"facility-theme",facilityId:this.facility.id,forbiddenOwners:this.owners.map(t=>t.id)},this.dialog.open(se,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onRemove(){const t=(0,r.kZ)();t.width="600px",t.data={theme:"facility-theme",owners:this.selection.selected,facilityId:this.facility.id},this.dialog.open(ue,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(c.IQ),p.Y36(g.uw),p.Y36(d.x4),p.Y36(d.fb))},t.\u0275cmp=p.Xpm({type:t,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,"tableId","filterValue","owners","displayedColumns","selection",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,"tableId","filterValue","owners","displayedColumns","selection"]],template:function(t,e){1&t&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"perun-web-apps-refresh-button",1),p.NdJ("refresh",function(){return e.refreshTable()}),p.qZA(),p.YNc(4,he,3,3,"button",2),p.YNc(5,pe,3,4,"button",3),p.TgZ(6,"perun-web-apps-immediate-filter",4),p.NdJ("filter",function(t){return e.applyFilter(t)}),p.qZA(),p.YNc(7,ge,1,0,"mat-spinner",5),p.YNc(8,fe,1,5,"perun-web-apps-owners-list",6)),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,6,"FACILITY_DETAIL.SETTINGS.OWNERS.TITLE")),p.xp6(3),p.Q6J("ngIf",e.addAuth),p.xp6(1),p.Q6J("ngIf",e.removeAuth),p.xp6(1),p.Q6J("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER"),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[Qt.t,s.O5,Vt.L,E.lW,I.$g,te.Q],pipes:[Z.X$],styles:[""]}),t})();var Ae=i(84534);function Ie(t,e){1&t&&p._UZ(0,"mat-spinner",6)}function Se(t,e){1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.ADD_HOST.EMPTY_MESSAGE")," "))}function Te(t,e){if(1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t){const t=p.oxw(2);p.xp6(1),p.AsE(" ",p.lcZ(2,2,"DIALOGS.ADD_HOST.INVALID_HOST"),"",t.hostsCtrl.getError("invalidHost").value," ")}}function be(t,e){if(1&t&&(p.TgZ(0,"div",7),p.TgZ(1,"mat-form-field"),p.TgZ(2,"textarea",8),p.ALo(3,"translate"),p._uU(4," "),p.qZA(),p.YNc(5,Se,3,3,"mat-error",9),p.YNc(6,Te,3,4,"mat-error",9),p.qZA(),p.TgZ(7,"app-alert",10),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.qZA()),2&t){const t=p.oxw();p.xp6(2),p.Q6J("placeholder",p.lcZ(3,5,"DIALOGS.ADD_HOST.SUBTITLE"))("formControl",t.hostsCtrl),p.xp6(3),p.Q6J("ngIf",t.hostsCtrl.hasError("required")),p.xp6(1),p.Q6J("ngIf",t.hostsCtrl.hasError("invalidHost")),p.xp6(2),p.Oqu(p.lcZ(9,7,"DIALOGS.ADD_HOST.HINT"))}}let Ee=(()=>{class t{constructor(t,e,i,s,a){this.dialogRef=t,this.data=e,this.facilitiesManager=i,this.notificator=s,this.translate=a,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}$")}ngOnInit(){this.theme=this.data.theme,this.hostsCtrl=new it.NI("",[it.kI.required,this.hostsNameValidator()]),this.hostsCtrl.markAllAsTouched()}onAdd(){this.loading=!0;const t=this.hostsCtrl.value.split("\n");let e=[];for(const i of t)e=e.concat(this.parseHostName(i));this.facilitiesManager.addHosts(this.data.facilityId,e).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 t=>{let e=[];const i=t.value.split("\n");for(const s of i)e=e.concat(this.parseHostName(s));for(const s of e)if(!this.hostPattern.test(s))return{invalidHost:{value:s}};return null}}parseHostName(t){const e=new RegExp("[[0-9]+-[0-9]+]","g"),i=t.split(e),s=t.match(e);if(null==s)return""===t?[]:[t];let a=[];for(let n=0;n{class t{constructor(t,e,i,s,a){this.dialogRef=t,this.data=e,this.facilitiesManager=i,this.notificator=s,this.translate=a,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.hosts=this.data.hosts,this.dataSource=new ae.by(this.data.hosts)}onConfirm(){this.loading=!0,this.facilitiesManager.removeHosts(this.data.facilityId,this.hosts.map(t=>t.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 t.\u0275fac=function(e){return new(e||t)(p.Y36(g.so),p.Y36(g.WI),p.Y36(c.IQ),p.Y36(d.V6),p.Y36(Z.sK))},t.\u0275cmp=p.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div"),p.YNc(4,Ze,1,0,"mat-spinner",1),p.YNc(5,Oe,13,9,"div",2),p.TgZ(6,"div",3),p.TgZ(7,"button",4),p.NdJ("click",function(){return e.onCancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return e.onConfirm()}),p._uU(11),p.ALo(12,"translate"),p.qZA(),p.qZA(),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,9,"DIALOGS.REMOVE_HOST.TITLE")),p.xp6(2),p.Tol(e.theme),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.REMOVE_HOST.CANCEL"),""),p.xp6(2),p.Q6J("disabled",e.loading),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.REMOVE_HOST.CONFIRM"),""))},directives:[g.uh,s.O5,g.H8,E.lW,I.$g,g.xY,ae.BZ,ae.w1,ae.fO,ae.Dz,ae.as,ae.nj,ae.ge,ae.ev,ae.XQ,ae.Gk],pipes:[Z.X$],styles:[""]}),t})();var xe=i(58623),Ne=i(82819);function Re(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"th",14),p.TgZ(1,"mat-checkbox",15),p.NdJ("change",function(e){p.CHM(t);const i=p.oxw();return e?i.masterToggle():null}),p.qZA(),p.qZA()}if(2&t){const t=p.oxw();p.xp6(1),p.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function De(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"td",16),p.TgZ(1,"mat-checkbox",17),p.NdJ("change",function(e){const i=p.CHM(t).$implicit,s=p.oxw();return e?s.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),p.qZA(),p.qZA()}if(2&t){const t=e.$implicit,i=p.oxw();p.xp6(1),p.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function we(t,e){1&t&&(p.TgZ(0,"th",18),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.TABLE_HOST_ID")))}function ke(t,e){if(1&t&&(p.TgZ(0,"td",19),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.id)}}function Fe(t,e){1&t&&(p.TgZ(0,"th",18),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.TABLE_HOST_NAME")))}function Ye(t,e){if(1&t&&(p.TgZ(0,"td",20),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.hostname)}}function Ue(t,e){1&t&&p._UZ(0,"tr",21)}const qe=function(t,e){return["/facilities",t,"hosts",e]};function Me(t,e){if(1&t&&p._UZ(0,"tr",22),2&t){const t=e.$implicit,i=p.oxw();p.Q6J("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:p.WLB(2,qe,i.facilityId,t.id))("routerLink",i.disableRouting?null:p.WLB(5,qe,i.facilityId,t.id))}}function Je(t,e){1&t&&(p.TgZ(0,"app-alert",23),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Qe(t,e){1&t&&(p.TgZ(0,"app-alert",23),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.NO_HOST_WARNING"),"\n"))}let Ve=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.hosts=[],this.selection=new _t.Ov(!0,[]),this.disableRouting=!1,this.displayedColumns=["select","id","name"],this.pageSizeOptions=r.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new ae.by(this.hosts),this.setDataSource(),this.dataSource.filter=this.filterValue}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return t.hostname;default:return""}}exportData(t){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(t,e)=>(0,r.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,r.pR)(t,e,this.getDataForColumn,this),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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(d.x4),p.Y36(d.UA))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-hosts-list"]],viewQuery:function(t,e){if(1&t&&(p.Gf(xe.YE,7),p.Gf(r.l9,7)),2&t){let t;p.iGM(t=p.CRH())&&(e.matSort=t.first),p.iGM(t=p.CRH())&&(e.child=t.first)}},inputs:{hosts:"hosts",selection:"selection",filterValue:"filterValue",tableId:"tableId",facilityId:"facilityId",disableRouting:"disableRouting",displayedColumns:"displayedColumns"},features:[p.TTD],decls:16,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"],["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(t,e){1&t&&(p.TgZ(0,"div",0),p.TgZ(1,"perun-web-apps-table-wrapper",1),p.NdJ("exportData",function(t){return e.exportData(t)}),p.TgZ(2,"table",2),p.ynx(3,3),p.YNc(4,Re,2,3,"th",4),p.YNc(5,De,2,2,"td",5),p.BQk(),p.ynx(6,6),p.YNc(7,we,3,3,"th",7),p.YNc(8,ke,2,1,"td",8),p.BQk(),p.ynx(9,9),p.YNc(10,Fe,3,3,"th",7),p.YNc(11,Ye,2,1,"td",10),p.BQk(),p.YNc(12,Ue,1,0,"tr",11),p.YNc(13,Me,1,8,"tr",12),p.qZA(),p.qZA(),p.qZA(),p.YNc(14,Je,3,3,"app-alert",13),p.YNc(15,Qe,3,3,"app-alert",13)),2&t&&(p.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.hosts.length),p.xp6(1),p.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),p.xp6(1),p.Q6J("dataSource",e.dataSource),p.xp6(10),p.Q6J("matHeaderRowDef",e.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",e.displayedColumns),p.xp6(1),p.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.hosts.length),p.xp6(1),p.Q6J("ngIf",0===e.hosts.length))},directives:[Ne.l,ae.BZ,xe.YE,ae.w1,ae.fO,ae.Dz,ae.as,ae.nj,s.O5,ae.ge,lt.oG,ae.ev,xe.nU,ae.XQ,ae.Gk,Ae.YH,a.rH,Ht.w],pipes:[Z.X$],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();function He(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",7),p.NdJ("click",function(){return p.CHM(t),p.oxw().addHost()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"FACILITY_DETAIL.HOSTS.ADD")," "))}function Pe(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",8),p.NdJ("click",function(){return p.CHM(t),p.oxw().removeHost()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",0===t.selected.selected.length),p.xp6(1),p.hij(" ",p.lcZ(2,2,"FACILITY_DETAIL.HOSTS.REMOVE")," ")}}function Ge(t,e){1&t&&p._UZ(0,"mat-spinner",9)}function Be(t,e){if(1&t&&p._UZ(0,"app-hosts-list",10),2&t){const t=p.oxw();p.Q6J("tableId",t.tableId)("filterValue",t.filterValue)("hosts",t.hosts)("selection",t.selected)("displayedColumns",t.displayedColumns)("disableRouting",!t.routeAuth||t.disableRouting)("facilityId",t.facility.id)}}let $e=(()=>{class t{constructor(t,e,i,s){this.dialog=t,this.facilitiesManager=e,this.authResolver=i,this.entityStorageService=s,this.disableRouting=!1,this.hosts=[],this.selected=new _t.Ov(!0,[]),this.filterValue="",this.tableId=vt.eq,this.displayedColumns=["id","name"],this.hostEmitter=new p.vpe}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.facilitiesManager.getFacilityById(this.facility.id).subscribe(t=>{this.facility=t,this.refreshTable()})}refreshTable(){this.loading=!0,this.facilitiesManager.getHosts(this.facility.id).subscribe(t=>{this.hosts=t,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 t=(0,r.kZ)();t.width="600px",t.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open(Ee,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}removeHost(){const t=(0,r.kZ)();t.width="600px",t.data={facilityId:this.facility.id,theme:"facility-theme",hosts:this.selected.selected},this.dialog.open(Le,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.uw),p.Y36(c.IQ),p.Y36(d.x4),p.Y36(d.fb))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-hosts"]],inputs:{disableRouting:"disableRouting"},outputs:{hostEmitter:"hostEmitter"},decls:10,vars:8,consts:[[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,"tableId","filterValue","hosts","selection","displayedColumns","disableRouting","facilityId",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,"tableId","filterValue","hosts","selection","displayedColumns","disableRouting","facilityId"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"perun-web-apps-refresh-button",1),p.NdJ("refresh",function(){return e.refreshTable()}),p.qZA(),p.YNc(5,He,3,3,"button",2),p.YNc(6,Pe,3,4,"button",3),p.TgZ(7,"perun-web-apps-immediate-filter",4),p.NdJ("filter",function(t){return e.applyFilter(t)}),p.qZA(),p.YNc(8,Ge,1,0,"mat-spinner",5),p.YNc(9,Be,1,7,"app-hosts-list",6),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,6,"FACILITY_DETAIL.HOSTS.TITLE")),p.xp6(3),p.Q6J("ngIf",e.addAuth),p.xp6(1),p.Q6J("ngIf",e.removeAuth),p.xp6(1),p.Q6J("placeholder","FACILITY_DETAIL.HOSTS.FILTER"),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[Qt.t,s.O5,Vt.L,E.lW,I.$g,Ve],pipes:[Z.X$],styles:[""]}),t})();function je(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"th",15),p.TgZ(1,"mat-checkbox",16),p.NdJ("change",function(e){p.CHM(t);const i=p.oxw();return e?i.masterToggle():null}),p.qZA(),p.qZA()}if(2&t){const t=p.oxw();p.xp6(1),p.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function ze(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"td",17),p.TgZ(1,"mat-checkbox",18),p.NdJ("change",function(e){const i=p.CHM(t).$implicit,s=p.oxw();return e?s.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),p.qZA(),p.qZA()}if(2&t){const t=e.$implicit,i=p.oxw();p.xp6(1),p.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function Xe(t,e){1&t&&(p.TgZ(0,"th",19),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.USER_ID")))}function We(t,e){if(1&t&&(p.TgZ(0,"td",20),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t[1].id)}}function Ke(t,e){1&t&&(p.TgZ(0,"th",19),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NAME")))}function ti(t,e){if(1&t&&(p.TgZ(0,"td",21),p._uU(1),p.ALo(2,"userFullName"),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(p.lcZ(2,1,t[1]))}}function ei(t,e){1&t&&(p.TgZ(0,"th",19),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.REASON")))}function ii(t,e){if(1&t&&(p.TgZ(0,"td",21),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t[0].description)}}function si(t,e){1&t&&p._UZ(0,"tr",22)}function ai(t,e){1&t&&p._UZ(0,"tr",23)}function ni(t,e){1&t&&(p.TgZ(0,"app-alert",24),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function li(t,e){1&t&&(p.TgZ(0,"app-alert",24),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NO_BANS_WARNING"),"\n"))}let oi=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.bansOnFacilitiesWithUsers=[],this.selection=new _t.Ov(!0,[]),this.displayedColumns=["select","userId","name","reason"],this.pageSizeOptions=r.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"userId"!==t)),this.dataSource=new ae.by(this.bansOnFacilitiesWithUsers),this.setDataSource(),this.dataSource.filter=this.filterValue}getDataForColumn(t,e){switch(e){case"userId":return t[1].id.toString();case"reason":return t[0].description;case"name":return(0,r.hu)(t[1]);default:return""}}exportData(t){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>(0,r.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,r.pR)(t,e,this.getDataForColumn,this),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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t[0].userId+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(d.x4),p.Y36(d.UA))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-perun-web-apps-blacklist-list"]],viewQuery:function(t,e){if(1&t&&(p.Gf(xe.YE,7),p.Gf(r.l9,7)),2&t){let t;p.iGM(t=p.CRH())&&(e.matSort=t.first),p.iGM(t=p.CRH())&&(e.child=t.first)}},inputs:{bansOnFacilitiesWithUsers:"bansOnFacilitiesWithUsers",selection:"selection",filterValue:"filterValue",tableId:"tableId"},features:[p.TTD],decls:19,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"],["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(t,e){1&t&&(p.TgZ(0,"div",0),p.TgZ(1,"perun-web-apps-table-wrapper",1),p.NdJ("exportData",function(t){return e.exportData(t)}),p.TgZ(2,"table",2),p.ynx(3,3),p.YNc(4,je,2,3,"th",4),p.YNc(5,ze,2,2,"td",5),p.BQk(),p.ynx(6,6),p.YNc(7,Xe,3,3,"th",7),p.YNc(8,We,2,1,"td",8),p.BQk(),p.ynx(9,9),p.YNc(10,Ke,3,3,"th",7),p.YNc(11,ti,3,3,"td",10),p.BQk(),p.ynx(12,11),p.YNc(13,ei,3,3,"th",7),p.YNc(14,ii,2,1,"td",10),p.BQk(),p.YNc(15,si,1,0,"tr",12),p.YNc(16,ai,1,0,"tr",13),p.qZA(),p.qZA(),p.qZA(),p.YNc(17,ni,3,3,"app-alert",14),p.YNc(18,li,3,3,"app-alert",14)),2&t&&(p.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.bansOnFacilitiesWithUsers.length),p.xp6(1),p.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),p.xp6(1),p.Q6J("dataSource",e.dataSource),p.xp6(13),p.Q6J("matHeaderRowDef",e.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",e.displayedColumns),p.xp6(1),p.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.bansOnFacilitiesWithUsers.length),p.xp6(1),p.Q6J("ngIf",0===e.bansOnFacilitiesWithUsers.length))},directives:[Ne.l,ae.BZ,xe.YE,ae.w1,ae.fO,ae.Dz,ae.as,ae.nj,s.O5,ae.ge,lt.oG,ae.ev,xe.nU,ae.XQ,ae.Gk,Ht.w],pipes:[Z.X$,ut.d],styles:[""]}),t})();function ci(t,e){1&t&&p._UZ(0,"mat-spinner",5)}function ri(t,e){if(1&t&&p._UZ(0,"app-perun-web-apps-blacklist-list",6),2&t){const t=p.oxw();p.Q6J("tableId",t.tableId)("filterValue",t.filterValue)("bansOnFacilitiesWithUsers",t.bansOnFacilitiesWithUsers)("selection",t.selected)}}let di=(()=>{class t{constructor(t,e,i){this.facilitiesManager=t,this.usersManager=e,this.entityStorageService=i,this.bansOnFacilitiesWithUsers=[],this.selected=new _t.Ov(!0,[]),this.filterValue="",this.tableId=vt.NG}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.facilitiesManager.getBansForFacility(this.facility.id).subscribe(t=>{const e=t;for(const i of e){let t;this.usersManager.getUserById(i.userId).subscribe(e=>{t=e}),this.bansOnFacilitiesWithUsers.push([i,t])}this.selected.clear(),this.loading=!1})}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(c.IQ),p.Y36(c.Fv),p.Y36(d.fb))},t.\u0275cmp=p.Xpm({type:t,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,"tableId","filterValue","bansOnFacilitiesWithUsers","selection",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","bansOnFacilitiesWithUsers","selection"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"perun-web-apps-refresh-button",1),p.NdJ("refresh",function(){return e.refreshTable()}),p.qZA(),p.TgZ(5,"perun-web-apps-immediate-filter",2),p.NdJ("filter",function(t){return e.applyFilter(t)}),p.ALo(6,"translate"),p.qZA(),p.YNc(7,ci,1,0,"mat-spinner",3),p.YNc(8,ri,1,4,"app-perun-web-apps-blacklist-list",4),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,4,"FACILITY_DETAIL.SETTINGS.BLACKLIST.TITLE")),p.xp6(3),p.Q6J("placeholder",p.lcZ(6,6,"FACILITY_DETAIL.SETTINGS.BLACKLIST.FILTER")),p.xp6(2),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[Qt.t,Vt.L,s.O5,I.$g,oi],pipes:[Z.X$],styles:[""]}),t})();var ui=i(41939),hi=i(13572),pi=i(40695),gi=i(41186);const fi=["list"];function mi(t,e){1&t&&p._UZ(0,"mat-spinner",7)}function Ai(t,e){if(1&t&&p._UZ(0,"perun-web-apps-attributes-list",8,9),2&t){const t=p.oxw();p.Q6J("tableId",t.tableId)("attributes",t.attributes)("selection",t.selected)}}let Ii=(()=>{class t{constructor(t,e,i,s){this.dialog=t,this.attributesManager=e,this.facilityManager=i,this.route=s,this.attributes=[],this.selected=new _t.Ov(!0,[]),this.host={beanName:"",id:0},this.tableId=vt.rF}ngOnInit(){this.route.params.subscribe(t=>{this.hostId=t.hostId,this.facilityManager.getHostById(this.hostId).subscribe(t=>{this.host=t}),this.refreshTable()})}refreshTable(){this.loading=!0,this.attributesManager.getHostAttributes(this.hostId).subscribe(t=>{this.attributes=(0,r.MX)(t),this.selected.clear(),this.loading=!1})}onSave(){this.list.updateMapAttributes();const t=(0,r.kZ)();t.width="450px",t.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected},this.dialog.open(u.wA,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}addAttribute(){const t=(0,r.kZ)();t.width="1050px",t.data={entityId:this.hostId,entity:"host",notEmptyAttributes:this.attributes,style:"facility-theme"},this.dialog.open(pi.n,t).afterClosed().subscribe(t=>{"saved"===t&&this.refreshTable()})}removeAttribute(){const t=(0,r.kZ)();t.width="450px",t.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected,theme:"facility-theme"},this.dialog.open(hi.k,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.uw),p.Y36(c.H8),p.Y36(c.IQ),p.Y36(a.gz))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-hosts-detail"]],viewQuery:function(t,e){if(1&t&&p.Gf(fi,5),2&t){let t;p.iGM(t=p.CRH())&&(e.list=t.first)}},decls:16,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","attributes","selection",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"tableId","attributes","selection"],["list",""]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"perun-web-apps-refresh-button",1),p.NdJ("refresh",function(){return e.refreshTable()}),p.qZA(),p.TgZ(5,"button",2),p.NdJ("click",function(){return e.addAttribute()}),p._uU(6),p.ALo(7,"translate"),p.qZA(),p.TgZ(8,"button",3),p.NdJ("click",function(){return e.onSave()}),p._uU(9),p.ALo(10,"translate"),p.qZA(),p.TgZ(11,"button",4),p.NdJ("click",function(){return e.removeAttribute()}),p._uU(12),p.ALo(13,"translate"),p.qZA(),p.YNc(14,mi,1,0,"mat-spinner",5),p.YNc(15,Ai,2,3,"perun-web-apps-attributes-list",6),p.qZA()),2&t&&(p.xp6(2),p.AsE(" ",p.lcZ(3,9,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.TITLE")," ",e.host.hostname,""),p.xp6(4),p.hij(" ",p.lcZ(7,11,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.ADD")," "),p.xp6(2),p.Q6J("disabled",0===e.selected.selected.length),p.xp6(1),p.hij(" ",p.lcZ(10,13,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.SAVE")," "),p.xp6(2),p.Q6J("disabled",0===e.selected.selected.length),p.xp6(1),p.hij(" ",p.lcZ(13,15,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.REMOVE")," "),p.xp6(2),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[Qt.t,E.lW,s.O5,I.$g,gi.p],pipes:[Z.X$],styles:[""]}),t})();function Si(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"th",15),p.TgZ(1,"mat-checkbox",16),p.NdJ("change",function(e){p.CHM(t);const i=p.oxw();return e?i.masterToggle():null}),p.qZA(),p.qZA()}if(2&t){const t=p.oxw();p.xp6(1),p.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function Ti(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"td",17),p.TgZ(1,"mat-checkbox",18),p.NdJ("change",function(e){const i=p.CHM(t).$implicit,s=p.oxw();return e?s.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),p.qZA(),p.qZA()}if(2&t){const t=e.$implicit,i=p.oxw();p.xp6(1),p.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function bi(t,e){1&t&&(p.TgZ(0,"th",19),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.ID")))}function Ei(t,e){if(1&t&&(p.TgZ(0,"td",20),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.id)}}function Zi(t,e){1&t&&(p.TgZ(0,"th",19),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NAME")))}function Ci(t,e){if(1&t&&(p.TgZ(0,"td",21),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.name)}}function vi(t,e){1&t&&(p.TgZ(0,"th",19),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.DESCRIPTION")))}function _i(t,e){if(1&t&&(p.TgZ(0,"td",21),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.description)}}function yi(t,e){1&t&&p._UZ(0,"tr",22)}function Oi(t,e){1&t&&p._UZ(0,"tr",23)}function Li(t,e){1&t&&(p.TgZ(0,"app-alert",24),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function xi(t,e){1&t&&(p.TgZ(0,"app-alert",24),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NO_SECURITY_TEAMS_WARNING"),"\n"))}let Ni=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.securityTeams=[],this.selection=new _t.Ov(!0,[]),this.displayedColumns=["select","id","name","description"],this.pageSizeOptions=r.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new ae.by(this.securityTeams),this.setDataSource(),this.dataSource.filter=this.filterValue}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return t.name;case"description":return t.description;default:return""}}exportData(t){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>(0,r.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,r.pR)(t,e,this.getDataForColumn,this),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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(d.x4),p.Y36(d.UA))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-security-teams-list"]],viewQuery:function(t,e){if(1&t&&(p.Gf(xe.YE,7),p.Gf(r.l9,7)),2&t){let t;p.iGM(t=p.CRH())&&(e.matSort=t.first),p.iGM(t=p.CRH())&&(e.child=t.first)}},inputs:{securityTeams:"securityTeams",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns"},features:[p.TTD],decls:19,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"],["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(t,e){1&t&&(p.TgZ(0,"div",0),p.TgZ(1,"perun-web-apps-table-wrapper",1),p.NdJ("exportData",function(t){return e.exportData(t)}),p.TgZ(2,"table",2),p.ynx(3,3),p.YNc(4,Si,2,3,"th",4),p.YNc(5,Ti,2,2,"td",5),p.BQk(),p.ynx(6,6),p.YNc(7,bi,3,3,"th",7),p.YNc(8,Ei,2,1,"td",8),p.BQk(),p.ynx(9,9),p.YNc(10,Zi,3,3,"th",7),p.YNc(11,Ci,2,1,"td",10),p.BQk(),p.ynx(12,11),p.YNc(13,vi,3,3,"th",7),p.YNc(14,_i,2,1,"td",10),p.BQk(),p.YNc(15,yi,1,0,"tr",12),p.YNc(16,Oi,1,0,"tr",13),p.qZA(),p.qZA(),p.qZA(),p.YNc(17,Li,3,3,"app-alert",14),p.YNc(18,xi,3,3,"app-alert",14)),2&t&&(p.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.securityTeams.length),p.xp6(1),p.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),p.xp6(1),p.Q6J("dataSource",e.dataSource),p.xp6(13),p.Q6J("matHeaderRowDef",e.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",e.displayedColumns),p.xp6(1),p.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.securityTeams.length),p.xp6(1),p.Q6J("ngIf",0===e.securityTeams.length))},directives:[Ne.l,ae.BZ,xe.YE,ae.w1,ae.fO,ae.Dz,ae.as,ae.nj,s.O5,ae.ge,lt.oG,ae.ev,xe.nU,ae.XQ,ae.Gk,Ht.w],pipes:[Z.X$],styles:[""]}),t})();function Ri(t,e){1&t&&p._UZ(0,"mat-spinner",5)}function Di(t,e){if(1&t&&p._UZ(0,"app-security-teams-list",6),2&t){const t=p.oxw();p.Q6J("tableId",t.tableId)("filterValue",t.filterValue)("securityTeams",t.securityTeams)("displayedColumns",t.displayedColumns)("selection",t.selected)}}let wi=(()=>{class t{constructor(t,e,i,s){this.dialog=t,this.facilitiesManager=e,this.authResolver=i,this.entityStorageService=s,this.securityTeams=[],this.selected=new _t.Ov(!0,[]),this.filterValue="",this.tableId=vt.O9,this.displayedColumns=[]}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.facilitiesManager.getAssignedSecurityTeams(this.facility.id).subscribe(t=>{this.securityTeams=t,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(t){this.filterValue=t}addSecurityTeam(){}removeSecurityTeam(){}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.uw),p.Y36(c.IQ),p.Y36(d.x4),p.Y36(d.fb))},t.\u0275cmp=p.Xpm({type:t,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,"tableId","filterValue","securityTeams","displayedColumns","selection",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","securityTeams","displayedColumns","selection"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"perun-web-apps-refresh-button",1),p.NdJ("refresh",function(){return e.refreshTable()}),p.qZA(),p.TgZ(5,"perun-web-apps-immediate-filter",2),p.NdJ("filter",function(t){return e.applyFilter(t)}),p.qZA(),p.YNc(6,Ri,1,0,"mat-spinner",3),p.YNc(7,Di,1,5,"app-security-teams-list",4),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,4,"FACILITY_DETAIL.SECURITY_TEAMS.TITLE")),p.xp6(3),p.Q6J("placeholder","FACILITY_DETAIL.SECURITY_TEAMS.FILTER"),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[Qt.t,Vt.L,s.O5,I.$g,Ni],pipes:[Z.X$],styles:[""]}),t})();var ki=i(64359),Fi=i(75374);function Yi(t,e){1&t&&p._UZ(0,"mat-spinner",6)}function Ui(t,e){1&t&&(p.TgZ(0,"th",17),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.RESULT_ID")))}function qi(t,e){if(1&t&&(p.TgZ(0,"td",18),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.hij(" ",t.id," ")}}function Mi(t,e){1&t&&(p.TgZ(0,"th",17),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.DESTINATION")))}function Ji(t,e){if(1&t&&(p.TgZ(0,"td",18),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.hij(" ",t.destination.destination," ")}}function Qi(t,e){1&t&&(p.TgZ(0,"th",17),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.TIME")))}function Vi(t,e){if(1&t&&(p.TgZ(0,"td",18),p._uU(1),p.ALo(2,"date"),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.hij(" ",p.xi3(2,1,t.timestamp,"d.M.y H:mm:ss")," ")}}function Hi(t,e){1&t&&p._UZ(0,"tr",19)}function Pi(t,e){1&t&&p._UZ(0,"tr",20)}function Gi(t,e){if(1&t&&(p.TgZ(0,"div",7),p.TgZ(1,"p"),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"div",8),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.TgZ(7,"table",9),p.ynx(8,10),p.YNc(9,Ui,3,3,"th",11),p.YNc(10,qi,2,1,"td",12),p.BQk(),p.ynx(11,13),p.YNc(12,Mi,3,3,"th",11),p.YNc(13,Ji,2,1,"td",12),p.BQk(),p.ynx(14,14),p.YNc(15,Qi,3,3,"th",11),p.YNc(16,Vi,3,4,"td",12),p.BQk(),p.YNc(17,Hi,1,0,"tr",15),p.YNc(18,Pi,1,0,"tr",16),p.qZA(),p.qZA()),2&t){const t=p.oxw();p.xp6(2),p.Oqu(p.lcZ(3,5,"DIALOGS.DELETE_TASK_RESULT.DESCRIPTION")),p.xp6(3),p.hij(" ",p.lcZ(6,7,"DIALOGS.DELETE_TASK_RESULT.ASK")," "),p.xp6(2),p.Q6J("dataSource",t.dataSource),p.xp6(10),p.Q6J("matHeaderRowDef",t.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",t.displayedColumns)}}let Bi=(()=>{class t{constructor(t,e,i,s,a){this.dialogRef=t,this.data=e,this.taskManager=i,this.notificator=s,this.translate=a,this.loading=!1,this.dataSource=new ae.by(this.data.taskResults),this.displayedColumns=["id","destination","time"]}ngOnInit(){this.theme=this.data.theme,this.taskResults=this.data.taskResults}deleteResults(){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.deleteResults()},()=>this.loading=!1)}onDelete(){this.deleteResults()}onCancel(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.so),p.Y36(g.WI),p.Y36(c.Ob),p.Y36(d.V6),p.Y36(Z.sK))},t.\u0275cmp=p.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div"),p.YNc(4,Yi,1,0,"mat-spinner",1),p.YNc(5,Gi,19,9,"div",2),p.TgZ(6,"div",3),p.TgZ(7,"button",4),p.NdJ("click",function(){return e.onCancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return e.onDelete()}),p._uU(11),p.ALo(12,"translate"),p.qZA(),p.qZA(),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,9,"DIALOGS.DELETE_TASK_RESULT.TITLE")),p.xp6(2),p.Tol(e.theme),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.DELETE_TASK_RESULT.CANCEL")," "),p.xp6(2),p.Q6J("disabled",e.loading),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.DELETE_TASK_RESULT.REMOVE")," "))},directives:[g.uh,s.O5,g.H8,E.lW,I.$g,g.xY,ae.BZ,ae.w1,ae.fO,ae.Dz,ae.as,ae.nj,ae.ge,ae.ev,ae.XQ,ae.Gk],pipes:[Z.X$,s.uU],styles:[""]}),t})();var $i=i(88884);function ji(t,e){1&t&&p._UZ(0,"mat-spinner",6)}function zi(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-checkbox",13),p.NdJ("change",function(e){return p.CHM(t),p.oxw(2).change(e)}),p.ALo(1,"translate"),p._uU(2),p.ALo(3,"translate"),p.qZA()}if(2&t){const t=p.oxw(2);p.s9C("matTooltip",p.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),p.Q6J("matTooltipDisabled",!t.checkboxesDisabled)("disabled",t.checkboxesDisabled)("checked",t.taskChecked),p.xp6(2),p.hij(" ",p.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_AND_TASK_RESULTS")," ")}}function Xi(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-checkbox",14),p.NdJ("change",function(e){return p.CHM(t),p.oxw(2).change(e)}),p.ALo(1,"translate"),p._uU(2),p.ALo(3,"translate"),p.qZA()}if(2&t){const t=p.oxw(2);p.s9C("matTooltip",p.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),p.Q6J("matTooltipDisabled",!t.checkboxesDisabled)("disabled",t.checkboxesDisabled)("checked",t.taskResultsChecked),p.xp6(2),p.hij(" ",p.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_RESULTS")," ")}}function Wi(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"perun-web-apps-resources-list",15),p.NdJ("allSelected",function(e){return p.CHM(t),p.oxw(2).disableCheckboxes(e)}),p.qZA()}if(2&t){const t=p.oxw(2);p.Q6J("tableId",t.tableId)("disableRouting",!0)("resources",t.resources)("selection",t.selected)("displayedColumns",t.displayedColumns)}}function Ki(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div",7),p.TgZ(1,"p"),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"div"),p.YNc(5,zi,4,9,"mat-checkbox",8),p.YNc(6,Xi,4,9,"mat-checkbox",9),p.TgZ(7,"mat-checkbox",10),p.NdJ("change",function(e){return p.CHM(t),p.oxw().change(e)}),p.ALo(8,"translate"),p._uU(9),p.ALo(10,"translate"),p.qZA(),p.qZA(),p.TgZ(11,"p"),p._uU(12),p.ALo(13,"translate"),p.qZA(),p.TgZ(14,"div",11),p._uU(15),p.ALo(16,"translate"),p.qZA(),p.YNc(17,Wi,1,5,"perun-web-apps-resources-list",12),p.qZA()}if(2&t){const t=p.oxw();p.xp6(2),p.Oqu(p.lcZ(3,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DESCRIPTION")),p.xp6(3),p.Q6J("ngIf",null!==t.taskId),p.xp6(1),p.Q6J("ngIf",null!==t.taskId),p.xp6(1),p.s9C("matTooltip",p.lcZ(8,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),p.Q6J("matTooltipDisabled",!t.checkboxesDisabled)("disabled",t.checkboxesDisabled)("checked",t.destinationChecked),p.xp6(2),p.hij(" ",p.lcZ(10,15,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_DESTINATION")," "),p.xp6(3),p.Oqu(p.lcZ(13,17,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.DESCRIPTION")),p.xp6(3),p.hij(" ",p.lcZ(16,19,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.ASK")," "),p.xp6(2),p.Q6J("ngIf",!t.loading)}}let ts=(()=>{class t{constructor(t,e,i,s,a,n,l,o){this.dialogRef=t,this.data=e,this.resourcesManager=i,this.tasksManager=s,this.serviceManager=a,this.translate=n,this.notificator=l,this.cd=o,this.loading=!1,this.dataSource=new ae.by(this.data.resource),this.selected=new _t.Ov(!0,[...this.dataSource.data]),this.resources=[],this.displayedColumns=["select","id","vo","name"],this.checkboxesDisabled=!1,this.taskChecked=!0,this.taskResultsChecked=!0,this.destinationChecked=!0,this.tableId=vt.$V}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(t=>{t.forEach(t=>{this.tasksManager.deleteTaskResultById({taskResultId:t.id}).subscribe()})}),this.taskChecked&&null!==this.taskId&&this.tasksManager.deleteTask({task:this.taskId}).subscribe(),this.destinationChecked&&this.serviceManager.getDestinations(this.serviceId,this.facilityId).subscribe(t=>{t.forEach(t=>{this.serviceManager.removeDestination(this.serviceId,this.facilityId,t.destination,t.type).subscribe()})}),this.selected.selected.forEach(t=>{this.resourcesManager.removeService(t.id,this.serviceId).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_SERVICE_FROM_FACILITY.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)})}cancel(){this.dialogRef.close(!1)}disableCheckboxes(t){t&&this.checkboxesDisabled&&this.changeCheckboxes(!0),t||this.checkboxesDisabled||this.changeCheckboxes(!1)}changeCheckboxes(t){this.checkboxesDisabled=!t,this.taskChecked=t,this.taskResultsChecked=t,this.destinationChecked=t,this.cd.detectChanges()}change(t){switch(t.source.id){case"task":this.taskChecked=t.checked;break;case"taskResults":this.taskResultsChecked=t.checked;break;case"destination":this.destinationChecked=t.checked}}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.so),p.Y36(g.WI),p.Y36(c.xk),p.Y36(c.Ob),p.Y36(c.KK),p.Y36(Z.sK),p.Y36(d.V6),p.Y36(p.sBO))},t.\u0275cmp=p.Xpm({type:t,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["id","task","class","right-space","color","warn",3,"matTooltip","matTooltipDisabled","disabled","checked","change",4,"ngIf"],["id","taskResults","class","right-space","color","warn",3,"matTooltip","matTooltipDisabled","disabled","checked","change",4,"ngIf"],["id","destination","color","warn",3,"matTooltip","matTooltipDisabled","disabled","checked","change"],[1,"font-weight-bold"],[3,"tableId","disableRouting","resources","selection","displayedColumns","allSelected",4,"ngIf"],["id","task","color","warn",1,"right-space",3,"matTooltip","matTooltipDisabled","disabled","checked","change"],["id","taskResults","color","warn",1,"right-space",3,"matTooltip","matTooltipDisabled","disabled","checked","change"],[3,"tableId","disableRouting","resources","selection","displayedColumns","allSelected"]],template:function(t,e){1&t&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div"),p.YNc(4,ji,1,0,"mat-spinner",1),p.YNc(5,Ki,18,21,"div",2),p.TgZ(6,"div",3),p.TgZ(7,"button",4),p.NdJ("click",function(){return e.cancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return e.remove()}),p._uU(11),p.ALo(12,"translate"),p.qZA(),p.qZA(),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,9,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.TITLE")),p.xp6(2),p.Tol(e.theme),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CANCEL")," "),p.xp6(2),p.Q6J("disabled",e.loading||0===e.selected.selected.length),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.REMOVE")," "))},directives:[g.uh,s.O5,g.H8,E.lW,I.$g,g.xY,lt.oG,T.gM,$i.C],pipes:[Z.X$],styles:[".right-space[_ngcontent-%COMP%]{margin-right:40px}"]}),t})();function es(t,e){1&t&&p._UZ(0,"mat-spinner",6)}function is(t,e){1&t&&(p.TgZ(0,"div",7),p.TgZ(1,"div",8),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.qZA()),2&t&&(p.xp6(2),p.hij(" ",p.lcZ(3,1,"DIALOGS.DELETE_TASK.DESCRIPTION")," "))}let ss=(()=>{class t{constructor(t,e,i,s,a){this.dialogRef=t,this.data=e,this.tasksManager=i,this.translate=s,this.notificator=a,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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.so),p.Y36(g.WI),p.Y36(c.Ob),p.Y36(Z.sK),p.Y36(d.V6))},t.\u0275cmp=p.Xpm({type:t,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"]],template:function(t,e){1&t&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div"),p.YNc(4,es,1,0,"mat-spinner",1),p.YNc(5,is,4,3,"div",2),p.TgZ(6,"div",3),p.TgZ(7,"button",4),p.NdJ("click",function(){return e.cancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return e.remove()}),p._uU(11),p.ALo(12,"translate"),p.qZA(),p.qZA(),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,9,"DIALOGS.DELETE_TASK.TITLE")),p.xp6(2),p.Tol(e.theme),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.DELETE_TASK.CANCEL")," "),p.xp6(2),p.Q6J("disabled",e.loading),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.DELETE_TASK.DELETE")," "))},directives:[g.uh,s.O5,g.H8,E.lW,I.$g,g.xY],pipes:[Z.X$],styles:[""]}),t})();var as=i(8055);let ns=(()=>{class t{transform(t){return t.blockedOnFacility?"BLOCKED":t.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=p.Yjl({name:"serviceStateBlockedToString",type:t,pure:!0}),t})();function ls(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"th",18),p.TgZ(1,"mat-checkbox",19),p.NdJ("change",function(e){p.CHM(t);const i=p.oxw();return e&&i.masterToggle(),i.selectionChange.emit()}),p.qZA(),p.qZA()}if(2&t){const t=p.oxw();p.xp6(1),p.Q6J("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())("aria-label",t.checkboxLabel())}}function os(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"td",20),p.TgZ(1,"mat-checkbox",21),p.NdJ("click",function(t){return t.stopPropagation()})("change",function(e){const i=p.CHM(t).$implicit,s=p.oxw();return e&&s.selection.toggle(i),s.selectionChange.emit()}),p.qZA(),p.qZA()}if(2&t){const t=e.$implicit,i=p.oxw();p.xp6(1),p.Q6J("checked",i.selection.isSelected(t))("aria-label",i.checkboxLabel(t))}}function cs(t,e){1&t&&(p.TgZ(0,"th",22),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TASK_ID")))}function rs(t,e){if(1&t&&(p.TgZ(0,"div"),p._uU(1),p.qZA()),2&t){const t=p.oxw().$implicit;p.xp6(1),p.Oqu(t.task.id)}}function ds(t,e){1&t&&(p.TgZ(0,"div"),p._uU(1,"0"),p.qZA())}function us(t,e){if(1&t&&(p.TgZ(0,"td",23),p.YNc(1,rs,2,1,"div",24),p.YNc(2,ds,2,0,"div",24),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Q6J("ngIf",t.task),p.xp6(1),p.Q6J("ngIf",!t.task)}}function hs(t,e){1&t&&(p.TgZ(0,"th",22),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.SERVICE_NAME")))}function ps(t,e){if(1&t&&(p.TgZ(0,"td",25),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.service.name)}}function gs(t,e){1&t&&(p.TgZ(0,"th",22),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STATUS")))}function fs(t,e){if(1&t&&(p.TgZ(0,"td",25),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.status)}}function ms(t,e){1&t&&(p.TgZ(0,"th",22),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.BLOCKED")))}function As(t,e){if(1&t&&(p.TgZ(0,"td",25),p._uU(1),p.ALo(2,"serviceStateBlockedToString"),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(p.lcZ(2,1,t))}}function Is(t,e){1&t&&(p.TgZ(0,"th",22),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STARTED")))}function Ss(t,e){if(1&t&&(p.TgZ(0,"div"),p._uU(1),p.ALo(2,"date"),p.qZA()),2&t){const t=p.oxw().$implicit;p.xp6(1),p.Oqu(p.xi3(2,1,t.task.startTime,"d.M.y H:mm:ss"))}}function Ts(t,e){1&t&&(p.TgZ(0,"div"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET"),""))}function bs(t,e){if(1&t&&(p.TgZ(0,"td",25),p.YNc(1,Ss,3,4,"div",24),p.YNc(2,Ts,3,3,"div",24),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Q6J("ngIf",t.task&&t.task.startTime),p.xp6(1),p.Q6J("ngIf",!t.task||!t.task.startTime)}}function Es(t,e){1&t&&(p.TgZ(0,"th",22),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.ENDED")))}function Zs(t,e){if(1&t&&(p.TgZ(0,"div"),p._uU(1),p.ALo(2,"date"),p.qZA()),2&t){const t=p.oxw().$implicit;p.xp6(1),p.Oqu(p.xi3(2,1,t.task.endTime,"d.M.y H:mm:ss"))}}function Cs(t,e){1&t&&(p.TgZ(0,"div"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET")," "))}function vs(t,e){if(1&t&&(p.TgZ(0,"td",25),p.YNc(1,Zs,3,4,"div",24),p.YNc(2,Cs,3,3,"div",24),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Q6J("ngIf",t.task&&t.task.endTime),p.xp6(1),p.Q6J("ngIf",!t.task||!t.task.endTime)}}function _s(t,e){1&t&&p._UZ(0,"tr",26)}const ys=function(t,e){return["/facilities",t,"services-status",e]};function Os(t,e){if(1&t&&p._UZ(0,"tr",27),2&t){const t=e.$implicit,i=p.oxw();p.ekj("disable-outline",i.disableRouting||!t.task)("make-yellow","WARNING"===t.status)("make-green","DONE"===t.status)("make-red","GENERROR"===t.status||"SENDERROR"===t.status||"ERROR"===t.status)("cursor-pointer",!i.disableRouting&&null!==t.task),p.Q6J("routerLink",i.disableRouting||null===t.task?null:p.WLB(12,ys,t.facility.id,t.taskId))("perunWebAppsMiddleClickRouterLink",i.disableRouting||null===t.task?null:p.WLB(15,ys,t.facility.id,t.taskId))}}function Ls(t,e){1&t&&(p.TgZ(0,"app-alert",28),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function xs(t,e){1&t&&(p.TgZ(0,"app-alert",28),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NO_SERVICES_STATUS_WARNING"),"\n"))}let Ns=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.servicesStatus=[],this.displayedColumns=["select","task.id","service.name","status","blocked","task.startTime","task.endTime"],this.selection=new _t.Ov(!0,[]),this.disableRouting=!0,this.selectionChange=new p.vpe,this.pageSizeOptions=r.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"task.id"!==t)),this.dataSource=new ae.by(this.servicesStatus),this.setDataSource(),this.dataSource.filterPredicate=(t,e)=>{const i=e.trim().toLowerCase(),s=t=>{let e="";return Object.values(t).forEach(t=>{"object"!=typeof t?e=e+" "+t:null!==t&&(e=e+" "+s(t))}),e.trim().toLowerCase()};return s(t).includes(i)},this.dataSource.filter=this.filterValue}getDataForColumn(t,e){switch(e){case"task.id":return t.task?t.task.id.toString():t[e];case"service.name":return t.service.name;case"status":return t.status;case"blocked":return t.blockedOnFacility?"BLOCKED":t.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED";case"task.startTime":return t.task&&t.task.startTime?(0,s.p6)(t.task.startTime,"d.M.y H:mm:ss","en"):t[e];case"task.endTime":return t.task&&t.task.endTime?(0,s.p6)(t.task.endTime,"d.M.y H:mm:ss","en"):t[e];default:return t[e]}}getSortDataForColumn(t,e){switch(e){case"task.id":return t.task?t.task.id.toString():t[e];case"service.name":return t.service.name;case"status":return t.status;case"blocked":return t.blockedOnFacility?"BLOCKED":t.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED";case"task.startTime":return t.task&&t.task.startTime?(0,s.p6)(t.task.startTime,"yyyy.MM.dd HH:mm:ss","en"):t[e];case"task.endTime":return t.task&&t.task.endTime?(0,s.p6)(t.task.endTime,"yyyy.MM.dd HH:mm:ss","en"):t[e];default:return t[e]}}exportData(t){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>(0,r.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,r.pR)(t,e,this.getSortDataForColumn,this),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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.service.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(d.x4),p.Y36(d.UA))},t.\u0275cmp=p.Xpm({type:t,selectors:[["perun-web-apps-services-status-list"]],viewQuery:function(t,e){if(1&t&&(p.Gf(xe.YE,7),p.Gf(r.l9,7)),2&t){let t;p.iGM(t=p.CRH())&&(e.matSort=t.first),p.iGM(t=p.CRH())&&(e.child=t.first)}},inputs:{servicesStatus:"servicesStatus",displayedColumns:"displayedColumns",selection:"selection",filterValue:"filterValue",tableId:"tableId",disableRouting:"disableRouting"},outputs:{selectionChange:"selectionChange"},features:[p.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",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(t,e){1&t&&(p.TgZ(0,"div",0),p.TgZ(1,"perun-web-apps-table-wrapper",1),p.NdJ("exportData",function(t){return e.exportData(t)}),p.TgZ(2,"table",2),p.ynx(3,3),p.YNc(4,ls,2,3,"th",4),p.YNc(5,os,2,2,"td",5),p.BQk(),p.ynx(6,6),p.YNc(7,cs,3,3,"th",7),p.YNc(8,us,3,2,"td",8),p.BQk(),p.ynx(9,9),p.YNc(10,hs,3,3,"th",7),p.YNc(11,ps,2,1,"td",10),p.BQk(),p.ynx(12,11),p.YNc(13,gs,3,3,"th",7),p.YNc(14,fs,2,1,"td",10),p.BQk(),p.ynx(15,12),p.YNc(16,ms,3,3,"th",7),p.YNc(17,As,3,3,"td",10),p.BQk(),p.ynx(18,13),p.YNc(19,Is,3,3,"th",7),p.YNc(20,bs,3,2,"td",10),p.BQk(),p.ynx(21,14),p.YNc(22,Es,3,3,"th",7),p.YNc(23,vs,3,2,"td",10),p.BQk(),p.YNc(24,_s,1,0,"tr",15),p.YNc(25,Os,1,18,"tr",16),p.qZA(),p.qZA(),p.qZA(),p.YNc(26,Ls,3,3,"app-alert",17),p.YNc(27,xs,3,3,"app-alert",17)),2&t&&(p.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.servicesStatus.length),p.xp6(1),p.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),p.xp6(1),p.Q6J("dataSource",e.dataSource),p.xp6(22),p.Q6J("matHeaderRowDef",e.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",e.displayedColumns),p.xp6(1),p.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.servicesStatus.length),p.xp6(1),p.Q6J("ngIf",0===e.servicesStatus.length))},directives:[Ne.l,ae.BZ,xe.YE,ae.w1,ae.fO,ae.Dz,ae.as,ae.nj,s.O5,ae.ge,lt.oG,ae.ev,xe.nU,ae.XQ,ae.Gk,a.rH,Ae.YH,Ht.w],pipes:[Z.X$,ns,s.uU],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}"]}),t})();function Rs(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",11),p.NdJ("click",function(){return p.CHM(t),p.oxw().forcePropagation()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",0===t.selected.selected.length),p.xp6(1),p.hij(" ",p.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.FORCE_PROPAGATION")," ")}}function Ds(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",11),p.NdJ("click",function(){return p.CHM(t),p.oxw().allow()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",0===t.selected.selected.length||t.disableAllowButton),p.xp6(1),p.hij(" ",p.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.ALLOW")," ")}}function ws(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",12),p.NdJ("click",function(){return p.CHM(t),p.oxw().block()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",0===t.selected.selected.length||t.disableBlockButton),p.xp6(1),p.hij(" ",p.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.BLOCK")," ")}}function ks(t,e){if(1&t&&(p.TgZ(0,"button",13),p.ALo(1,"translate"),p._uU(2),p.ALo(3,"translate"),p.qZA()),2&t){const t=p.oxw(),e=p.MAs(10);p.s9C("matTooltip",p.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),p.Q6J("matTooltipDisabled",!t.disableRemoveButton)("disabled",t.disableRemoveButton)("matMenuTriggerFor",e),p.xp6(2),p.hij(" ",p.lcZ(3,7,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE")," ")}}function Fs(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",7),p.NdJ("click",function(){return p.CHM(t),p.oxw().removeTaskResults()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_TASK_RESULTS")," "))}function Ys(t,e){1&t&&p._UZ(0,"mat-spinner",14)}function Us(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"perun-web-apps-services-status-list",15),p.NdJ("selectionChange",function(){return p.CHM(t),p.oxw().selectionChanged()}),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("tableId",t.tableId)("filterValue",t.filterValue)("servicesStatus",t.servicesStates)("selection",t.selected)("disableRouting",!t.routeAuth)}}let qs=(()=>{class t{constructor(t,e,i,s,a,n,l,o,c){this.tasksManager=t,this.servicesManager=e,this.notificator=i,this.translate=s,this.authResolver=a,this.facilityManager=n,this.resourcesManager=l,this.dialog=o,this.entityStorageService=c,this.servicesStates=[],this.selected=new _t.Ov(!0,[]),this.filterValue="",this.tableId=vt.oK,this.disableAllowButton=!0,this.disableBlockButton=!0,this.disableRemoveButton=!0,s.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_FORCE_PROPAGATION").subscribe(t=>this.successFPMessage=t),s.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_ALLOW").subscribe(t=>this.successAllowMessage=t),s.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_BLOCK").subscribe(t=>this.successBlockMessage=t),s.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_DELETE").subscribe(t=>this.successDeleteMessage=t),s.get("FACILITY_DETAIL.SERVICES_STATUS.ALREADY_DELETED").subscribe(t=>this.allreadyDeletedMessage=t)}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}forcePropagation(){for(const t of this.selected.selected)this.servicesManager.forceServicePropagation(t.service.id,t.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successFPMessage)})}allow(){for(const t of this.selected.selected)this.servicesManager.unblockServiceOnFacility(t.service.id,t.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successAllowMessage)})}block(){for(const t of this.selected.selected)this.servicesManager.blockServiceOnFacility(t.service.id,t.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successBlockMessage)})}removeTaskResults(){this.tasksManager.getTaskResultsForGUIByTask(this.selected.selected[0].task.id).subscribe(t=>{const e=(0,r.kZ)();e.width="600px",e.data={theme:"facility-theme",taskResults:t},this.dialog.open(Bi,e)})}removeServiceFromFacility(){this.facilityManager.getAssignedResourcesByAssignedServiceForFacility(this.selected.selected[0].facility.id,this.selected.selected[0].service.id).subscribe(t=>{const e=(0,r.kZ)();e.width="600px",this.taskId=this.taskIsNull?null:this.selected.selected[0].task.id,0===t.length?(e.data={theme:"facility-theme",taskId:this.taskId},this.dialog.open(ss,e).afterClosed().subscribe(t=>{t&&(this.disableRemoveButton=!0,this.refreshTable())})):this.resourcesManager.getRichResourcesByIds(t.map(t=>t.id)).subscribe(t=>{e.data={theme:"facility-theme",taskId:this.taskId,serviceId:this.selected.selected[0].service.id,facilityId:this.selected.selected[0].facility.id,resource:t},this.dialog.open(ts,e).afterClosed().subscribe(t=>{t&&(this.disableRemoveButton=!0,this.refreshTable())})})})}refreshTable(){this.loading=!0,this.tasksManager.getFacilityServicesState(this.facility.id).subscribe(t=>{this.servicesStates=t,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(t){this.filterValue=t}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 t of this.selected.selected)t.blockedOnFacility?this.disableAllowButton=!1:this.disableBlockButton=!1}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(c.Ob),p.Y36(c.KK),p.Y36(d.V6),p.Y36(Z.sK),p.Y36(d.x4),p.Y36(c.IQ),p.Y36(c.xk),p.Y36(g.uw),p.Y36(d.fb))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-service-status"]],decls:18,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2 dropdown-toggle",3,"matTooltip","matTooltipDisabled","disabled","matMenuTriggerFor",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,"tableId","filterValue","servicesStatus","selection","disableRouting","selectionChange",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mr-2","dropdown-toggle",3,"matTooltip","matTooltipDisabled","disabled","matMenuTriggerFor"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","servicesStatus","selection","disableRouting","selectionChange"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"perun-web-apps-refresh-button",1),p.NdJ("refresh",function(){return e.refreshTable()}),p.qZA(),p.YNc(5,Rs,3,4,"button",2),p.YNc(6,Ds,3,4,"button",2),p.YNc(7,ws,3,4,"button",3),p.YNc(8,ks,4,9,"button",4),p.TgZ(9,"mat-menu",null,5),p.YNc(11,Fs,3,3,"button",6),p.TgZ(12,"button",7),p.NdJ("click",function(){return e.removeServiceFromFacility()}),p._uU(13),p.ALo(14,"translate"),p.qZA(),p.qZA(),p.TgZ(15,"perun-web-apps-immediate-filter",8),p.NdJ("filter",function(t){return e.applyFilter(t)}),p.qZA(),p.YNc(16,Ys,1,0,"mat-spinner",9),p.YNc(17,Us,1,5,"perun-web-apps-services-status-list",10),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,10,"FACILITY_DETAIL.SERVICES_STATUS.TITLE")),p.xp6(3),p.Q6J("ngIf",e.propagationAuth),p.xp6(1),p.Q6J("ngIf",e.allowAuth),p.xp6(1),p.Q6J("ngIf",e.blockAuth),p.xp6(1),p.Q6J("ngIf",e.deleteAuth),p.xp6(3),p.Q6J("ngIf",!e.taskIsNull),p.xp6(2),p.Oqu(p.lcZ(14,12,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_SERVICE_FROM_FACILITY")),p.xp6(2),p.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TABLE_SEARCH"),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[Qt.t,s.O5,as.VK,as.OP,Vt.L,E.lW,T.gM,as.p6,I.$g,Ns],pipes:[Z.X$],styles:[""]}),t})();var Ms=i(67004),Js=i(91058);let Qs=(()=>{class t{constructor(){this.changeAdvancedFilter=new p.vpe,this.clearFilters=new p.vpe}ngOnInit(){this.changeAdvancedFilter.emit(this.advancedFilter)}toggleAdvancedFilter(){this.advancedFilter=!this.advancedFilter,this.changeAdvancedFilter.emit(this.advancedFilter)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=p.Xpm({type:t,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(t,e){1&t&&(p.TgZ(0,"button",0),p.NdJ("click",function(){return e.toggleAdvancedFilter()}),p.TgZ(1,"mat-icon"),p._uU(2,"filter_list"),p.qZA(),p._uU(3),p.ALo(4,"translate"),p.TgZ(5,"mat-icon"),p._uU(6),p.qZA(),p.qZA(),p.TgZ(7,"button",0),p.NdJ("click",function(){return e.clearFilters.emit()}),p.TgZ(8,"mat-icon"),p._uU(9,"filter_list_off"),p.qZA(),p._uU(10),p.ALo(11,"translate"),p.qZA()),2&t&&(p.Gre("mr-2 ",e.filtersCount?"grey":"no-color",""),p.xp6(3),p.AsE(" ",p.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.FILTERS")," ",e.filtersCount?"("+e.filtersCount+")":null," "),p.xp6(3),p.Oqu(e.advancedFilter?"arrow_drop_up":"arrow_drop_down"),p.xp6(4),p.hij(" ",p.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.CLEAR_FILTERS"),"\n"))},directives:[E.lW,S.Hw],pipes:[Z.X$],styles:[".grey[_ngcontent-%COMP%]{color:#fff;background-color:grey}.no-color[_ngcontent-%COMP%]{color:#000;background-color:transparent}"]}),t})();var Vs=i(27521),Hs=i(19386),Ps=i(42847),Gs=i(44973);let Bs=(()=>{class t{constructor(){this.service=null,this.multiple=!1,this.disableAutoSelect=!1,this.theme="",this.serviceSelected=new p.vpe,this.nameFunction=t=>t.name,this.secondaryFunction=()=>"",this.searchFunction=t=>t.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=p.Xpm({type:t,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&&(p.TgZ(0,"perun-web-apps-entity-search-select",0),p.NdJ("entitySelected",function(t){return e.serviceSelected.emit(t)}),p.ALo(1,"translate"),p.ALo(2,"translate"),p.ALo(3,"translate"),p.qZA()),2&t&&p.Q6J("entity",e.service)("entities",e.services)("multiple",e.multiple)("disableAutoSelect",e.disableAutoSelect)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.secondaryFunction)("selectPlaceholder",p.lcZ(1,11,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.SELECT_SERVICE"))("findPlaceholder",p.lcZ(2,13,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.FIND_SERVICE"))("noEntriesText",p.lcZ(3,15,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.NO_SERVICE_FOUND"))("theme",e.theme)},directives:[Gs.i],pipes:[Z.X$],styles:[""]}),t})();var $s=i(16247);function js(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div",8),p.TgZ(1,"div",9),p.TgZ(2,"mat-slide-toggle",10),p.NdJ("ngModelChange",function(e){return p.CHM(t),p.oxw().allowed=e})("change",function(){return p.CHM(t),p.oxw().changeFilter()}),p._uU(3),p.ALo(4,"translate"),p.qZA(),p.TgZ(5,"span",11),p._uU(6),p.ALo(7,"translate"),p.qZA(),p.qZA(),p.TgZ(8,"div",1),p.TgZ(9,"perun-web-apps-vo-search-select",12),p.NdJ("voSelected",function(e){return p.CHM(t),p.oxw().voSelected(e)}),p.qZA(),p.TgZ(10,"perun-web-apps-resource-search-select",13),p.NdJ("resourceSelected",function(e){return p.CHM(t),p.oxw().resourceSelected(e)}),p.qZA(),p.TgZ(11,"perun-web-apps-service-search-select",14),p.NdJ("serviceSelected",function(e){return p.CHM(t),p.oxw().serviceSelected(e)}),p.qZA(),p.qZA(),p.qZA()}if(2&t){const t=p.oxw();p.xp6(2),p.Q6J("ngModel",t.allowed),p.xp6(1),p.hij(" ",p.lcZ(4,10,"FACILITY_DETAIL.ALLOWED_USERS.FILTER_ALLOWED")," "),p.xp6(3),p.Oqu(p.lcZ(7,12,t.toggle_messages[t.allowed?1:0])),p.xp6(3),p.Q6J("vo",t.selectedVo)("vos",t.vos),p.xp6(1),p.Q6J("displayStatus",!1)("resource",t.selectedResource)("resources",t.filteredResources),p.xp6(1),p.Q6J("service",t.selectedService)("services",t.filteredServices)}}function zs(t,e){1&t&&p._UZ(0,"mat-spinner",15)}const Xs=function(){return["id","name","email","logins","organization"]};function Ws(t,e){if(1&t&&p._UZ(0,"perun-web-apps-users-dynamic-list",16),2&t){const t=p.oxw();p.Q6J("tableId",t.tableId)("searchString",t.filterValue)("displayedColumns",p.DdM(10,Xs))("attrNames",t.attributes)("facilityId",t.facility.id)("voId",-1===t.selectedVo.id?null:t.selectedVo.id)("resourceId",-1===t.selectedResource.id?null:t.selectedResource.id)("serviceId",-1===t.selectedService.id?null:t.selectedService.id)("onlyAllowed",t.allowed)("disableRouting",!t.routeAuth)}}let Ks=(()=>{class t{constructor(t,e,i,s,a,n){this.facilityService=t,this.serviceService=e,this.resourceService=i,this.authResolver=s,this.storeService=a,this.entityStorageService=n,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=vt.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=[Ms.r.USER_DEF_ORGANIZATION,Ms.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(t=>{this.resources=[this.emptyResource].concat(t),this.filteredResources=this.resources,this.selectedResource=this.emptyResource,this.facilityService.getAllowedVos(this.facility.id).subscribe(t=>{this.vos=[this.emptyVo].concat(t),this.selectedVo=this.emptyVo,this.services=[],this.getAssignedServices(this.resources,this.resources.length-1)},()=>this.loading=!1)},()=>this.loading=!1)}getAssignedServices(t,e){if(0===e)return this.services=[this.emptyService].concat(this.services),this.filteredServices=this.services,this.selectedService=this.emptyService,this.changeFilter(),void(this.loading=!1);this.resourceService.getAssignedServicesToResource(t[e].id).subscribe(i=>{this.services=this.services.concat(i),this.resourceAssignedServices[t[e].id]=i.map(t=>t.id),this.getAssignedServices(t,e-1)},()=>this.loading=!1)}getFilteredServices(t){const e=new Set;return t.forEach(t=>{this.resourceAssignedServices[t.id].forEach(t=>e.add(t))}),[this.emptyService].concat(this.services.filter(t=>e.has(t.id)))}applyFilter(t){this.filterValue=t}voSelected(t){this.selectedVo.id!==t.id&&(this.selectedVo=t,this.selectedResource=this.emptyResource,this.selectedService=this.emptyService,-1===t.id?(this.filteredResources=this.resources,this.filteredServices=this.services):(this.filteredResources=this.resources.filter(e=>e.voId===t.id),this.filteredServices=this.getFilteredServices(this.filteredResources),this.filteredResources=[this.emptyResource].concat(this.filteredResources)),this.changeFilter())}resourceSelected(t){this.selectedResource.id!==t.id&&(this.selectedResource=t,this.selectedService=this.emptyService,this.filteredServices=-1===t.id?this.services:this.getFilteredServices([t]),this.changeFilter())}serviceSelected(t){this.selectedService=t,this.changeFilter()}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(c.IQ),p.Y36(c.KK),p.Y36(c.xk),p.Y36(d.x4),p.Y36(d.d6),p.Y36(d.fb))},t.\u0275cmp=p.Xpm({type:t,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,"filtersCount","advancedFilter","changeAdvancedFilter","clearFilters"],["class","advanced-filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","searchString","displayedColumns","attrNames","facilityId","voId","resourceId","serviceId","onlyAllowed","disableRouting",4,"ngIf"],[1,"advanced-filter"],[1,"toggle","filters"],["labelPosition","before",1,"mr-2",3,"ngModel","ngModelChange","change"],[1,"text-muted"],[1,"search-select",3,"vo","vos","voSelected"],[1,"search-select",3,"displayStatus","resource","resources","resourceSelected"],[1,"search-select",3,"service","services","serviceSelected"],[1,"ml-auto","mr-auto"],[3,"tableId","searchString","displayedColumns","attrNames","facilityId","voId","resourceId","serviceId","onlyAllowed","disableRouting"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"div",1),p.TgZ(5,"perun-web-apps-refresh-button",2),p.NdJ("refresh",function(){return e.refreshPage()}),p.qZA(),p.TgZ(6,"perun-web-apps-debounce-filter",3),p.NdJ("filter",function(t){return e.applyFilter(t)}),p.qZA(),p.TgZ(7,"perun-web-apps-advanced-filter",4),p.NdJ("changeAdvancedFilter",function(t){return e.advancedFilter=t})("clearFilters",function(){return e.clearFilters()}),p.qZA(),p.qZA(),p.YNc(8,js,12,14,"div",5),p.YNc(9,zs,1,0,"mat-spinner",6),p.YNc(10,Ws,1,11,"perun-web-apps-users-dynamic-list",7),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,7,"FACILITY_DETAIL.ALLOWED_USERS.TITLE")),p.xp6(4),p.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_USERS.FILTER"),p.xp6(1),p.Q6J("filtersCount",e.filtersCount)("advancedFilter",e.advancedFilter),p.xp6(1),p.Q6J("ngIf",e.advancedFilter),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[Qt.t,Js.P,Qs,s.O5,Vs.Rr,it.JJ,it.On,Hs.M,Ps.L,Bs,I.$g,$s.M],pipes:[Z.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 #d3d3d3;padding:15px}"]}),t})();var ta=i(95142);function ea(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"th",20),p.TgZ(1,"mat-checkbox",21),p.NdJ("change",function(e){p.CHM(t);const i=p.oxw();return e?i.masterToggle():null}),p.qZA(),p.qZA()}if(2&t){const t=p.oxw();p.xp6(1),p.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function ia(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"td",22),p.TgZ(1,"mat-checkbox",23),p.NdJ("change",function(e){const i=p.CHM(t).$implicit,s=p.oxw();return e?s.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),p.qZA(),p.qZA()}if(2&t){const t=e.$implicit,i=p.oxw();p.xp6(1),p.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function sa(t,e){1&t&&(p.TgZ(0,"th",24),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RESULT_ID")))}function aa(t,e){if(1&t&&(p.TgZ(0,"td",25),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.id)}}function na(t,e){1&t&&(p.TgZ(0,"th",24),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.DESTINATION")))}function la(t,e){if(1&t&&(p.TgZ(0,"td",25),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.destination.destination)}}function oa(t,e){1&t&&(p.TgZ(0,"th",24),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TYPE")))}function ca(t,e){if(1&t&&(p.TgZ(0,"td",25),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.destination.type.toUpperCase())}}function ra(t,e){1&t&&(p.TgZ(0,"th",24),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.SERVICE")))}function da(t,e){if(1&t&&(p.TgZ(0,"td",25),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.service.name)}}function ua(t,e){1&t&&(p.TgZ(0,"th",24),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STATUS")))}function ha(t,e){if(1&t&&(p.TgZ(0,"td",25),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.status)}}function pa(t,e){1&t&&(p.TgZ(0,"th",24),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TIME")))}function ga(t,e){if(1&t&&(p.TgZ(0,"td",25),p._uU(1),p.ALo(2,"date"),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(p.xi3(2,1,t.timestamp,"d.M.y H:mm:ss"))}}function fa(t,e){1&t&&(p.TgZ(0,"th",24),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RETURN_CODE")))}function ma(t,e){if(1&t&&(p.TgZ(0,"td",25),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.returnCode)}}function Aa(t,e){1&t&&(p.TgZ(0,"th",24),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STANDARD_MESSAGE")))}function Ia(t,e){if(1&t&&(p.TgZ(0,"span"),p._uU(1),p._UZ(2,"br"),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t)}}function Sa(t,e){if(1&t&&(p.TgZ(0,"td",25),p.YNc(1,Ia,3,1,"span",26),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Q6J("ngForOf",t.standardMessage.split("\n"))}}function Ta(t,e){1&t&&(p.TgZ(0,"th",24),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.ERROR_MESSAGE")))}function ba(t,e){if(1&t&&(p.TgZ(0,"td",25),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.errorMessage)}}function Ea(t,e){1&t&&p._UZ(0,"tr",27)}function Za(t,e){if(1&t&&p._UZ(0,"tr",28),2&t){const t=e.$implicit;p.ekj("greenTableItem","DONE"===t.status)("redTableItem","ERROR"===t.status||"DENIED"===t.status)("yellowTableItem","WARNING"===t.status)}}function Ca(t,e){1&t&&(p.TgZ(0,"app-alert",29),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function va(t,e){1&t&&(p.TgZ(0,"app-alert",29),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.NO_RESULTS_WARNING"),"\n"))}let _a=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.pageSizeOptions=r.f7,this.taskResults=[],this.selection=new _t.Ov(!0,[]),this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"]}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new ae.by(this.taskResults),this.setDataSource(),this.dataSource.filter=this.filterValue}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"destination":return t.destination.destination;case"type":return t.destination.type;case"service":return t.service.name;case"status":return t.status;case"time":return(0,s.p6)(t.timestamp.toString(),"d.M.y H:mm:ss","en");case"returnCode":return t.returnCode.toString();case"standardMessage":return t.standardMessage;case"errorMessage":return t.errorMessage;default:return""}}getSortDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"destination":return t.destination.destination;case"type":return t.destination.type;case"service":return t.service.name;case"status":return t.status;case"time":return(0,s.p6)(t.timestamp.toString(),"yyyy.MM.dd HH:mm:ss","en");case"returnCode":return t.returnCode.toString();case"standardMessage":return t.standardMessage;case"errorMessage":return t.errorMessage;default:return""}}exportData(t){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue,this.dataSource.filterPredicate=(t,e)=>(0,r.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,r.pR)(t,e,this.getSortDataForColumn,this))}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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(d.x4),p.Y36(d.UA))},t.\u0275cmp=p.Xpm({type:t,selectors:[["perun-web-apps-task-results-list"]],viewQuery:function(t,e){if(1&t&&(p.Gf(xe.YE,7),p.Gf(r.l9,7)),2&t){let t;p.iGM(t=p.CRH())&&(e.matSort=t.first),p.iGM(t=p.CRH())&&(e.child=t.first)}},inputs:{taskResults:"taskResults",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns"},features:[p.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(t,e){1&t&&(p.TgZ(0,"div",0),p.TgZ(1,"perun-web-apps-table-wrapper",1),p.NdJ("exportData",function(t){return e.exportData(t)}),p.TgZ(2,"table",2),p.ynx(3,3),p.YNc(4,ea,2,3,"th",4),p.YNc(5,ia,2,2,"td",5),p.BQk(),p.ynx(6,6),p.YNc(7,sa,3,3,"th",7),p.YNc(8,aa,2,1,"td",8),p.BQk(),p.ynx(9,9),p.YNc(10,na,3,3,"th",7),p.YNc(11,la,2,1,"td",8),p.BQk(),p.ynx(12,10),p.YNc(13,oa,3,3,"th",7),p.YNc(14,ca,2,1,"td",8),p.BQk(),p.ynx(15,11),p.YNc(16,ra,3,3,"th",7),p.YNc(17,da,2,1,"td",8),p.BQk(),p.ynx(18,12),p.YNc(19,ua,3,3,"th",7),p.YNc(20,ha,2,1,"td",8),p.BQk(),p.ynx(21,13),p.YNc(22,pa,3,3,"th",7),p.YNc(23,ga,3,4,"td",8),p.BQk(),p.ynx(24,14),p.YNc(25,fa,3,3,"th",7),p.YNc(26,ma,2,1,"td",8),p.BQk(),p.ynx(27,15),p.YNc(28,Aa,3,3,"th",7),p.YNc(29,Sa,2,1,"td",8),p.BQk(),p.ynx(30,16),p.YNc(31,Ta,3,3,"th",7),p.YNc(32,ba,2,1,"td",8),p.BQk(),p.YNc(33,Ea,1,0,"tr",17),p.YNc(34,Za,1,6,"tr",18),p.qZA(),p.qZA(),p.qZA(),p.YNc(35,Ca,3,3,"app-alert",19),p.YNc(36,va,3,3,"app-alert",19)),2&t&&(p.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.taskResults.length),p.xp6(1),p.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),p.xp6(1),p.Q6J("dataSource",e.dataSource),p.xp6(31),p.Q6J("matHeaderRowDef",e.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",e.displayedColumns),p.xp6(1),p.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.taskResults.length),p.xp6(1),p.Q6J("ngIf",0===e.taskResults.length))},directives:[Ne.l,ae.BZ,xe.YE,ae.w1,ae.fO,ae.Dz,ae.as,ae.nj,s.O5,ae.ge,lt.oG,ae.ev,xe.nU,s.sg,ae.XQ,ae.Gk,Ht.w],pipes:[Z.X$,s.uU],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}"]}),t})();function ya(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",7),p.NdJ("click",function(){return p.CHM(t),p.oxw().removeTaskResult()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",0===t.selection.selected.length),p.xp6(1),p.hij(" ",p.lcZ(2,2,"FACILITY_DETAIL.TASK_RESULTS.REMOVE"),"\n")}}function Oa(t,e){1&t&&p._UZ(0,"mat-spinner",8)}function La(t,e){if(1&t&&p._UZ(0,"perun-web-apps-task-results-list",9),2&t){const t=p.oxw();p.Q6J("tableId",t.tableId)("displayedColumns",t.displayedColumns)("filterValue",t.filterValue)("selection",t.selection)("taskResults",t.taskResults)}}let xa=(()=>{class t{constructor(t,e,i,s,a){this.route=t,this.taskManager=e,this.authResolver=i,this.dialog=s,this.entityStorageService=a,this.loading=!1,this.filterValue="",this.selection=new _t.Ov(!0,[]),this.task={id:0},this.tableId=vt.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(t=>{this.taskId=t.taskId,this.taskManager.getTaskById(this.taskId).subscribe(t=>{this.task=t,this.refreshTable()})})}refreshTable(){this.loading=!0,this.taskManager.getTaskResultsForGUIByTask(this.taskId).subscribe(t=>{this.selection.clear(),this.taskResults=t,this.loading=!1})}removeTaskResult(){const t=(0,r.kZ)();t.width="600px",t.data={theme:"facility-theme",taskResults:this.selection.selected},this.dialog.open(Bi,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(a.gz),p.Y36(c.Ob),p.Y36(d.x4),p.Y36(g.uw),p.Y36(d.fb))},t.\u0275cmp=p.Xpm({type:t,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(t,e){1&t&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.TgZ(3,"span",1),p._uU(4),p.qZA(),p.qZA(),p.TgZ(5,"perun-web-apps-refresh-button",2),p.NdJ("refresh",function(){return e.refreshTable()}),p.qZA(),p.YNc(6,ya,3,4,"button",3),p.TgZ(7,"perun-web-apps-immediate-filter",4),p.NdJ("filter",function(t){return e.applyFilter(t)}),p.qZA(),p.YNc(8,Oa,1,0,"mat-spinner",5),p.YNc(9,La,1,5,"perun-web-apps-task-results-list",6)),2&t&&(p.xp6(1),p.AsE("",p.lcZ(2,7,"FACILITY_DETAIL.TASK_RESULTS.TITLE")," - ",e.task.service?e.task.service.name:""," "),p.xp6(3),p.hij(" \xa0#",e.task.id," "),p.xp6(2),p.Q6J("ngIf",e.removeAuth),p.xp6(1),p.Q6J("placeholder","FACILITY_DETAIL.TASK_RESULTS.FILTER"),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[Qt.t,s.O5,Vt.L,E.lW,I.$g,_a],pipes:[Z.X$],styles:[""]}),t})();var Na=i(53134);let Ra=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,this.theme=""}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSkip(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.so),p.Y36(g.WI))},t.\u0275cmp=p.Xpm({type:t,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(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"div",1),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.TgZ(7,"div",2),p.TgZ(8,"button",3),p.NdJ("click",function(){return e.onCancel()}),p._uU(9),p.ALo(10,"translate"),p.qZA(),p.TgZ(11,"button",4),p.NdJ("click",function(){return e.onSkip()}),p._uU(12),p.ALo(13,"translate"),p.qZA(),p.qZA(),p.qZA()),2&t&&(p.Tol(e.theme),p.xp6(2),p.Oqu(p.lcZ(3,7,"DIALOGS.NO_SERVICE.TITLE")),p.xp6(3),p.hij(" ",p.lcZ(6,9,"DIALOGS.NO_SERVICE.INFO")," "),p.xp6(4),p.hij(" ",p.lcZ(10,11,"DIALOGS.NO_SERVICE.CANCEL")," "),p.xp6(3),p.hij(" ",p.lcZ(13,13,"DIALOGS.NO_SERVICE.SKIP")," "))},directives:[g.uh,g.xY,g.H8,E.lW],pipes:[Z.X$],styles:[""]}),t})(),Da=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,this.theme=""}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSkip(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.so),p.Y36(g.WI))},t.\u0275cmp=p.Xpm({type:t,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(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"div",1),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.TgZ(7,"div",2),p.TgZ(8,"button",3),p.NdJ("click",function(){return e.onCancel()}),p._uU(9),p.ALo(10,"translate"),p.qZA(),p.TgZ(11,"button",4),p.NdJ("click",function(){return e.onSkip()}),p._uU(12),p.ALo(13,"translate"),p.qZA(),p.qZA(),p.qZA()),2&t&&(p.Tol(e.theme),p.xp6(2),p.Oqu(p.lcZ(3,7,"DIALOGS.CONFIG_UNSAVED.TITLE")),p.xp6(3),p.hij(" ",p.lcZ(6,9,"DIALOGS.CONFIG_UNSAVED.INFO")," "),p.xp6(4),p.hij(" ",p.lcZ(10,11,"DIALOGS.CONFIG_UNSAVED.CANCEL")," "),p.xp6(3),p.hij(" ",p.lcZ(13,13,"DIALOGS.CONFIG_UNSAVED.SKIP")," "))},directives:[g.uh,g.xY,g.H8,E.lW],pipes:[Z.X$],styles:[""]}),t})();function wa(t,e){if(1&t&&(p.TgZ(0,"div",3),p._UZ(1,"i",4),p.ALo(2,"translate"),p.qZA()),2&t){const t=p.oxw();p.xp6(1),p.Q6J("innerHTML",p.lcZ(2,1,t.info),p.oJD)}}function ka(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",9),p.NdJ("click",function(){return p.CHM(t),p.oxw(2).onKeep()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.CANCEL_CONFIG.KEEP")," "))}function Fa(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div",5),p.TgZ(1,"button",6),p.NdJ("click",function(){return p.CHM(t),p.oxw().onCancel()}),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"button",7),p.NdJ("click",function(){return p.CHM(t),p.oxw().onDelete()}),p.TgZ(5,"mat-icon"),p._uU(6," warning "),p.qZA(),p._uU(7),p.ALo(8,"translate"),p.qZA(),p.YNc(9,ka,3,3,"button",8),p.qZA()}if(2&t){const t=p.oxw();p.xp6(2),p.hij(" ",p.lcZ(3,3,"DIALOGS.CANCEL_CONFIG.CANCEL")," "),p.xp6(5),p.hij(" ",p.lcZ(8,5,"DIALOGS.CANCEL_CONFIG.DELETE")," "),p.xp6(2),p.Q6J("ngIf",!t.lastStep)}}let Ya=(()=>{class t{constructor(t,e,i,s,a){this.dialogRef=t,this.data=e,this.facilityService=i,this.notificator=s,this.translate=a,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 t.\u0275fac=function(e){return new(e||t)(p.Y36(g.so),p.Y36(g.WI),p.Y36(c.IQ),p.Y36(d.V6),p.Y36(Z.sK))},t.\u0275cmp=p.Xpm({type:t,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(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.YNc(4,wa,3,3,"div",1),p.YNc(5,Fa,10,7,"div",2),p.qZA()),2&t&&(p.Tol(e.theme),p.xp6(2),p.Oqu(p.lcZ(3,6,e.title)),p.xp6(2),p.Q6J("ngIf",!e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[g.uh,s.O5,g.xY,g.H8,E.lW,S.Hw],pipes:[Z.X$],styles:[""]}),t})();var Ua=i(98470),qa=i(70663),Ma=i(65267),Ja=i(91721),Qa=i(45001);const Va=["stepper"];function Ha(t,e){1&t&&(p._uU(0),p.ALo(1,"translate")),2&t&&p.Oqu(p.lcZ(1,1,"FACILITY_CONFIGURATION.OWNERS"))}function Pa(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"app-facility-settings-owners",14),p.NdJ("ownerEmitter",function(e){return p.CHM(t),p.oxw().owners=e}),p.qZA()}}function Ga(t,e){1&t&&(p._uU(0),p.ALo(1,"translate")),2&t&&p.Oqu(p.lcZ(1,1,"FACILITY_CONFIGURATION.HOSTS"))}function Ba(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"app-facility-hosts",15),p.NdJ("hostEmitter",function(e){return p.CHM(t),p.oxw().hosts=e}),p.qZA()}2&t&&p.Q6J("disableRouting",!0)}function $a(t,e){1&t&&(p._uU(0),p.ALo(1,"translate")),2&t&&p.Oqu(p.lcZ(1,1,"FACILITY_CONFIGURATION.SERVICES"))}const ja=function(){return["select","id","name","enabled","description"]};function za(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"h1",16),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"app-alert",17),p._uU(4),p.ALo(5,"translate"),p.qZA(),p.TgZ(6,"div",18),p.TgZ(7,"perun-web-apps-immediate-filter",19),p.NdJ("filter",function(e){return p.CHM(t),p.oxw().applyFilter(e)}),p.qZA(),p.TgZ(8,"perun-web-apps-service-package-search-select",20),p.NdJ("packageSelected",function(e){return p.CHM(t),p.oxw().packagesSelected(e)}),p.qZA(),p.qZA(),p.TgZ(9,"app-services-list",21),p.NdJ("selectionChanged",function(){return p.CHM(t),p.oxw().singleServiceSelected()}),p.qZA()}if(2&t){const t=p.oxw();p.xp6(1),p.Oqu(p.lcZ(2,13,"FACILITY_CONFIGURATION.SERVICES")),p.xp6(3),p.hij(" ",p.lcZ(5,15,"FACILITY_CONFIGURATION.SERVICES_INFO")," "),p.xp6(3),p.Q6J("placeholder","FACILITY_CONFIGURATION.SERVICES_FILTER"),p.xp6(1),p.Q6J("servicePackages",t.servicePackages)("selectedPackage",t.selectedPackages)("multiple",!0)("disableAutoSelect",!0)("theme","facility-theme"),p.xp6(1),p.Q6J("disableRouting",!0)("selection",t.selection)("services",t.services)("filterValue",t.filterValue)("displayedColumns",p.DdM(17,ja))}}function Xa(t,e){1&t&&(p._uU(0),p.ALo(1,"translate")),2&t&&p.Oqu(p.lcZ(1,1,"FACILITY_CONFIGURATION.SERVICE_CONFIG"))}function Wa(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"perun-web-apps-service-search-select",27),p.NdJ("serviceSelected",function(e){return p.CHM(t),p.oxw(2).filterAttributes(e)}),p.qZA()}if(2&t){const t=p.oxw(2);p.Q6J("disableAutoSelect",!0)("services",t.selection.selected)("multiple",!0)("theme","facility-theme")}}function Ka(t,e){1&t&&p._UZ(0,"mat-spinner",28)}function tn(t,e){if(1&t&&p._UZ(0,"perun-web-apps-attributes-list",29),2&t){const t=p.oxw(2);p.Q6J("emptyListText","FACILITY_CONFIGURATION.EMPTY_REQ_ATT")("selection",t.attSelection)("attributes",t.filteredAttributes)}}function en(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"h1",16),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"app-alert",17),p._uU(4),p.ALo(5,"translate"),p.qZA(),p.TgZ(6,"div",18),p.TgZ(7,"button",22),p.NdJ("click",function(){return p.CHM(t),p.oxw().onRemoveAttributes()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",23),p.NdJ("click",function(){return p.CHM(t),p.oxw().onSaveAttributes()}),p._uU(11),p.ALo(12,"translate"),p.qZA(),p.YNc(13,Wa,1,4,"perun-web-apps-service-search-select",24),p.qZA(),p.YNc(14,Ka,1,0,"mat-spinner",25),p.YNc(15,tn,1,3,"perun-web-apps-attributes-list",26)}if(2&t){const t=p.oxw(),e=p.MAs(5);p.xp6(1),p.Oqu(p.lcZ(2,9,"FACILITY_CONFIGURATION.SERVICE_CONFIG")),p.xp6(3),p.hij(" ",p.lcZ(5,11,"FACILITY_CONFIGURATION.ATT_INFO")," "),p.xp6(3),p.Q6J("disabled",0===t.attSelection.selected.length),p.xp6(1),p.hij(" ",p.lcZ(9,13,"FACILITY_CONFIGURATION.REMOVE")," "),p.xp6(2),p.Q6J("disabled",0===t.attSelection.selected.length),p.xp6(1),p.hij(" ",p.lcZ(12,15,"FACILITY_CONFIGURATION.SAVE")," "),p.xp6(2),p.Q6J("ngIf",e.selectedIndex===t.ATTRIBUTES_IDX),p.xp6(1),p.Q6J("ngIf",t.processing),p.xp6(1),p.Q6J("ngIf",!t.processing)}}function sn(t,e){1&t&&(p._uU(0),p.ALo(1,"translate")),2&t&&p.Oqu(p.lcZ(1,1,"FACILITY_CONFIGURATION.DESTINATION_CONFIG"))}const an=function(){return["select","destinationId","service","warn","destination","type","propagationType"]};function nn(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"app-perun-web-apps-facility-services-destinations",30),p.NdJ("destinationEmitter",function(e){return p.CHM(t),p.oxw().destinations=e}),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("title","FACILITY_CONFIGURATION.DESTINATION_CONFIG")("loading",t.processing)("displayedColumns",p.DdM(5,an))("configServices",t.selection.selected)("configServicesIds",t.serviceIds)}}function ln(t,e){1&t&&(p._uU(0),p.ALo(1,"translate")),2&t&&p.Oqu(p.lcZ(1,1,"FACILITY_CONFIGURATION.MANAGERS"))}function on(t,e){1&t&&p._UZ(0,"app-perun-web-apps-facility-settings-managers",31),2&t&&p.Q6J("disableRouting",!0)("disableSelf",!0)}function cn(t,e){1&t&&(p._uU(0),p.ALo(1,"translate")),2&t&&p.Oqu(p.lcZ(1,1,"FACILITY_CONFIGURATION.SUMMARY"))}function rn(t,e){1&t&&p._UZ(0,"mat-spinner",28)}const dn=function(){return["id","name","contact","type"]};function un(t,e){if(1&t&&p._UZ(0,"perun-web-apps-owners-list",48),2&t){const t=p.oxw(3);p.Q6J("owners",t.owners)("displayedColumns",p.DdM(2,dn))}}function hn(t,e){1&t&&p._UZ(0,"mat-spinner",28)}const pn=function(){return["id","name"]};function gn(t,e){if(1&t&&p._UZ(0,"app-hosts-list",49),2&t){const t=p.oxw(3);p.Q6J("disableRouting",!0)("hosts",t.hosts)("displayedColumns",p.DdM(3,pn))}}function fn(t,e){1&t&&p._UZ(0,"mat-spinner",28)}const mn=function(){return["id","name","enabled","script","description"]},An=function(){return["id","displayName","value","description"]},In=function(){return["destinationId","service","warn","destination","type","propagationType"]},Sn=function(){return["id","name","email","logins","organization"]},Tn=function(){return["id","vo","name","description"]};function bn(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-accordion"),p.TgZ(1,"mat-expansion-panel",34),p.TgZ(2,"mat-expansion-panel-header"),p.TgZ(3,"mat-panel-title"),p._UZ(4,"mat-icon",35),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.qZA(),p.TgZ(7,"h1",16),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.YNc(10,rn,1,0,"mat-spinner",25),p.YNc(11,un,1,3,"perun-web-apps-owners-list",36),p.qZA(),p.TgZ(12,"mat-expansion-panel",34),p.TgZ(13,"mat-expansion-panel-header"),p.TgZ(14,"mat-panel-title"),p._UZ(15,"mat-icon",37),p._uU(16),p.ALo(17,"translate"),p.qZA(),p.qZA(),p.TgZ(18,"h1",16),p._uU(19),p.ALo(20,"translate"),p.qZA(),p.YNc(21,hn,1,0,"mat-spinner",25),p.YNc(22,gn,1,4,"app-hosts-list",38),p.qZA(),p.TgZ(23,"mat-expansion-panel",34),p.TgZ(24,"mat-expansion-panel-header"),p.TgZ(25,"mat-panel-title"),p._UZ(26,"mat-icon",39),p._uU(27),p.ALo(28,"translate"),p.qZA(),p.qZA(),p.TgZ(29,"h1",16),p._uU(30),p.ALo(31,"translate"),p.qZA(),p._UZ(32,"app-services-list",40),p.qZA(),p.TgZ(33,"mat-expansion-panel",41),p.NdJ("opened",function(){return p.CHM(t),p.oxw(2).getNonEmptyAttributes()}),p.TgZ(34,"mat-expansion-panel-header"),p.TgZ(35,"mat-panel-title"),p._UZ(36,"mat-icon",37),p._uU(37),p.ALo(38,"translate"),p.qZA(),p.qZA(),p.TgZ(39,"h1",16),p._uU(40),p.ALo(41,"translate"),p.qZA(),p._UZ(42,"perun-web-apps-attributes-list",42),p.qZA(),p.TgZ(43,"mat-expansion-panel",43),p.NdJ("expandedChange",function(e){return p.CHM(t),p.oxw(2).destinationServiceMissing=e}),p.TgZ(44,"mat-expansion-panel-header"),p.TgZ(45,"mat-panel-title"),p._UZ(46,"mat-icon",44),p._uU(47),p.ALo(48,"translate"),p.qZA(),p.qZA(),p.TgZ(49,"h1",16),p._uU(50),p.ALo(51,"translate"),p.qZA(),p.YNc(52,fn,1,0,"mat-spinner",25),p._UZ(53,"app-perun-web-apps-destination-list",45),p.qZA(),p.TgZ(54,"mat-expansion-panel"),p.TgZ(55,"mat-expansion-panel-header"),p.TgZ(56,"mat-panel-title"),p._UZ(57,"mat-icon",46),p._uU(58),p.ALo(59,"translate"),p.qZA(),p.qZA(),p._UZ(60,"app-managers-page",47),p.qZA(),p.qZA()}if(2&t){const t=p.oxw(2);p.Q6J("@.disabled",!0),p.xp6(1),p.Q6J("disabled",0===t.owners.length),p.xp6(1),p.ekj("cursor-default",0===t.owners.length),p.xp6(3),p.hij(" ",p.lcZ(6,49,"FACILITY_CONFIGURATION.OWNERS")," "),p.xp6(3),p.Oqu(p.lcZ(9,51,"FACILITY_CONFIGURATION.OWNERS")),p.xp6(2),p.Q6J("ngIf",t.processing),p.xp6(1),p.Q6J("ngIf",!t.processing),p.xp6(1),p.Q6J("disabled",0===t.hosts.length),p.xp6(1),p.ekj("cursor-default",0===t.hosts.length),p.xp6(3),p.hij(" ",p.lcZ(17,53,"FACILITY_CONFIGURATION.HOSTS")," "),p.xp6(3),p.Oqu(p.lcZ(20,55,"FACILITY_CONFIGURATION.HOSTS")),p.xp6(2),p.Q6J("ngIf",t.processing),p.xp6(1),p.Q6J("ngIf",!t.processing),p.xp6(1),p.Q6J("disabled",0===t.selection.selected.length),p.xp6(1),p.ekj("cursor-default",0===t.selection.selected.length),p.xp6(3),p.hij(" ",p.lcZ(28,57,"FACILITY_CONFIGURATION.SERVICES")," "),p.xp6(3),p.Oqu(p.lcZ(31,59,"FACILITY_CONFIGURATION.SERVICES")),p.xp6(2),p.Q6J("disableRouting",!0)("services",t.selection.selected)("displayedColumns",p.DdM(71,mn)),p.xp6(1),p.Q6J("disabled",0===t.selection.selected.length),p.xp6(1),p.ekj("cursor-default",0===t.selection.selected.length),p.xp6(3),p.hij(" ",p.lcZ(38,61,"FACILITY_CONFIGURATION.SERVICE_CONFIG")," "),p.xp6(3),p.Oqu(p.lcZ(41,63,"FACILITY_CONFIGURATION.ATTS")),p.xp6(2),p.Q6J("displayedColumns",p.DdM(72,An))("emptyListText","FACILITY_CONFIGURATION.EMPTY_REQ_ATT")("attributes",t.filteredAttributes),p.xp6(1),p.Q6J("expanded",t.destinationServiceMissing)("disabled",0===t.selection.selected.length&&0===t.destinations.length),p.xp6(1),p.ekj("cursor-default",0===t.selection.selected.length&&0===t.destinations.length),p.xp6(3),p.hij(" ",p.lcZ(48,65,"FACILITY_CONFIGURATION.DESTINATION_CONFIG")," "),p.xp6(3),p.Oqu(p.lcZ(51,67,"FACILITY_CONFIGURATION.DESTINATION")),p.xp6(2),p.Q6J("ngIf",t.processing),p.xp6(1),p.Q6J("destinations",t.destinations)("services",t.serviceIds)("displayedColumns",p.DdM(73,In)),p.xp6(5),p.hij(" ",p.lcZ(59,69,"FACILITY_CONFIGURATION.MANAGERS")," "),p.xp6(2),p.Q6J("complementaryObject",t.facility)("configMode",!0)("disableRouting",!0)("complementaryObjectType","Facility")("availableRoles",t.availableRoles)("displayedUserColumns",p.DdM(74,Sn))("displayedGroupColumns",p.DdM(75,Tn))}}function En(t,e){if(1&t&&(p.TgZ(0,"app-alert",17),p._UZ(1,"i",32),p.ALo(2,"translate"),p.qZA(),p.YNc(3,bn,61,76,"mat-accordion",33)),2&t){p.oxw();const t=p.MAs(5);p.xp6(1),p.Q6J("innerHTML",p.lcZ(2,2,"FACILITY_CONFIGURATION.SUMMARY_INFO"),p.oJD),p.xp6(2),p.Q6J("ngIf",t.selectedIndex===t.steps.length-1)}}function Zn(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",50),p.NdJ("click",function(){return p.CHM(t),p.oxw().back()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"FACILITY_CONFIGURATION.BACK")," "))}function Cn(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",51),p.NdJ("click",function(){return p.CHM(t),p.oxw().next()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){p.oxw();const t=p.MAs(5);p.ekj("mr-2",void 0!==t&&0!==t.selectedIndex)("ml-auto",!(void 0!==t&&0!==t.selectedIndex)),p.xp6(1),p.hij(" ",p.lcZ(2,5,"FACILITY_CONFIGURATION.NEXT")," ")}}function vn(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",52),p.NdJ("click",function(){return p.CHM(t),p.oxw().onFinish()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"FACILITY_CONFIGURATION.FINISH")," "))}let _n=(()=>{class t{constructor(t,e,i,s,a,n,l,o,c,r){this.attributesManager=t,this.serviceManager=e,this.facilityService=i,this.cd=s,this.dialog=a,this.notificator=n,this.translate=l,this.router=o,this.guiAuthResolver=c,this.entityStorageService=r,this.processing=!1,this.allowNavigate=!1,this.attributes=[],this.attributeIds=new Set,this.filteredAttributes=[],this.attributesPerService=new Map,this.attSelection=new _t.Ov(!0,[]),this.services=[],this.serviceIds=new Set,this.servicesPerPackage=new Map,this.servicePackages=[],this.selectedPackages=[],this.selection=new _t.Ov(!0,[]),this.owners=[],this.hosts=[],this.destinations=[],this.destinationServiceMissing=!1,this.availableRoles=[],this.filterValue="",this.saveMsg="",this.removeMsg="",this.BEFORE_OPTIONAL_IDX=2,this.ATTRIBUTES_IDX=3,this.DESTINATIONS_IDX=4,this.AFTER_OPTIONAL_IDX=5,this.serviceControl=new it.NI(!1,it.kI.requiredTrue),this.attributesControl=new it.NI(!0,it.kI.requiredTrue),this.translate.get("FACILITY_CONFIGURATION.ATT_SAVED").subscribe(t=>this.saveMsg=t),this.translate.get("FACILITY_CONFIGURATION.ATT_REMOVED").subscribe(t=>this.removeMsg=t)}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Facility"),this.serviceManager.getServicesPackages().subscribe(t=>{this.servicePackages=t,this.getServicePackageServices(t,0)})}ngAfterViewInit(){this.cd.detectChanges(),this.attSelection.changed.subscribe(()=>{this.attributesControl.setValue(0===this.attSelection.selected.length)})}onCancel(){const t=(0,r.kZ)();t.width="550px",t.data={facilityId:this.facility.id,lastStep:this.stepper.selectedIndex===this.stepper.steps.length-1,theme:"facility-theme"},this.dialog.open(Ya,t).afterClosed().subscribe(t=>{t&&(this.allowNavigate=!0,sessionStorage.removeItem("newFacilityId"),this.router.navigate(["facilities"],{queryParamsHandling:"merge"}))})}getServicePackageServices(t,e){e===t.length?this.serviceManager.getServices().subscribe(t=>{this.services=t}):this.serviceManager.getServicesFromServicesPackage(t[e].id).subscribe(i=>{this.servicesPerPackage.set(t[e].id,new Set([...i.map(t=>t.id)])),this.getServicePackageServices(t,e+1)})}getServiceRequiredAttributes(t,e){e!==t.length&&this.attributesManager.getRequiredAttributesDefinition(t[e].id).subscribe(i=>{i=i.filter(t=>this.attributeIds.has(t.id)),this.attributesPerService.set(t[e].id,i.map(t=>t.id)),this.getServiceRequiredAttributes(t,e+1)})}setServiceControl(){this.serviceControl.setValue(0!==this.selection.selected.length)}buildServiceSet(t){const e=new Set;return t.forEach(t=>{this.servicesPerPackage.get(t.id).forEach(t=>e.add(t))}),e}setDiff(t,e){return new Set([...t].filter(t=>!e.has(t)))}setIntersect(t,e){return new Set([...t].filter(t=>e.has(t)))}setSymDif(t,e){const i=this.buildServiceSet(t),s=this.buildServiceSet(e),a=this.setDiff(i,s),n=this.setDiff(s,i);return new Set([...a,...n])}filterService(t,e){const i=new Set;for(const s of e){const e=this.setIntersect(t,this.servicesPerPackage.get(s.id));0!==e.size&&e.forEach(t=>i.add(t))}return i}packageSelectionEqual(t){return t.length===this.selectedPackages.length&&(t.forEach(t=>{if(-1===this.selectedPackages.findIndex(e=>e.id===t.id))return!1}),!0)}packagesSelected(t){if(this.packageSelectionEqual(t))return;this.processing=!0;let e=new Set;if(t&&0!==t.length?e=this.setSymDif(this.selectedPackages,t):this.selectedPackages.forEach(t=>{this.servicesPerPackage.get(t.id).forEach(t=>e.add(t))}),0===e.size)return;const i=this.filterService(e,t.filter(t=>this.selectedPackages.findIndex(e=>e.id===t.id)<0)),s=this.filterService(e,this.selectedPackages.filter(e=>t.findIndex(t=>t.id===e.id)<0));for(const a of this.services)i.has(a.id)?this.selection.select(a):s.has(a.id)&&this.selection.deselect(a);this.selectedPackages=t,this.setServiceControl(),this.processing=!1}checkPackageComplete(){const t=[];for(const e of this.selectedPackages){let i=!0;for(const t of this.servicesPerPackage.get(e.id))if(-1===this.selection.selected.findIndex(e=>e.id===t)){i=!1;break}i&&t.push(e)}this.selectedPackages=t}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()}openSkipDialog(){const t=(0,r.kZ)();t.width="400px",t.data={theme:"facility-theme"},this.dialog.open(Ra,t).afterClosed().subscribe(t=>{t&&(this.serviceControl.setValue(!0),this.stepper.selectedIndex=this.AFTER_OPTIONAL_IDX)})}getRequiredAttributes(){this.processing=!0,this.attributesManager.getRequiredAttributesFacilityServices(this.selection.selected.map(t=>t.id),this.facility.id).subscribe(t=>{this.attSelection.clear(),this.attributes=t.filter(t=>!(0,r.Hm)(t)),this.filteredAttributes=this.attributes,this.attributes.forEach(t=>this.attributeIds.add(t.id)),this.getServiceRequiredAttributes(this.selection.selected,0),this.processing=!1})}onSaveAttributes(){return new Promise((t,e)=>{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,t()},()=>{this.processing=!1,e()})})}openUnsavedAttsDialog(){const t=(0,r.kZ)();t.width="400px",t.data={theme:"facility-theme"},this.dialog.open(Da,t).afterClosed().subscribe(t=>{t&&this.onSaveAttributes().then(()=>{this.stepper.next()},()=>this.getRequiredAttributes())})}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 t=this.attSelection.selected.map(t=>t.id);this.attributesManager.removeFacilityAttributes(this.facility.id,t).subscribe(()=>{this.notificator.showSuccess(this.removeMsg),this.getRequiredAttributes(),this.processing=!1})}filterAttributes(t){if(void 0===t||0===t.length)return void(this.filteredAttributes=this.attributes);const e=new Set;for(const i of t)this.attributesPerService.get(i.id).forEach(t=>e.add(t));this.filteredAttributes=[];for(const i of this.attributes)e.has(i.id)&&this.filteredAttributes.push(i)}getNonEmptyAttributes(){this.filteredAttributes=this.attributes.filter(t=>{if(t.value&&(!(0,Ua.k)(t.value)||0!==t.value.length))return t})}checkDestinationDependency(t){t!==this.BEFORE_OPTIONAL_IDX&&t!==this.DESTINATIONS_IDX||(this.serviceIds=new Set([...this.selection.selected.map(t=>t.id)]),this.destinationServicePresent())}navigationStep(t){this.checkDestinationDependency(t.previouslySelectedIndex),t.selectedIndex===this.ATTRIBUTES_IDX?this.getRequiredAttributes():t.selectedIndex===this.DESTINATIONS_IDX?this.processing=!1:t.selectedIndex<=this.BEFORE_OPTIONAL_IDX&&this.setServiceControl()}getOwners(){this.processing=!0,this.facilityService.getFacilityOwners(this.facility.id).subscribe(t=>{this.owners=t,this.processing=!1})}getHosts(){this.processing=!0,this.facilityService.getHosts(this.facility.id).subscribe(t=>{this.hosts=t,this.processing=!1})}applyFilter(t){this.filterValue=t}destinationServicePresent(){for(const t of this.destinations)if(!this.serviceIds.has(t.service.id))return void(this.destinationServiceMissing=!0);this.destinationServiceMissing=!1}canDeactivate(){return this.allowNavigate||this.onCancel(),this.allowNavigate}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(c.H8),p.Y36(c.KK),p.Y36(c.IQ),p.Y36(p.sBO),p.Y36(g.uw),p.Y36(d.V6),p.Y36(Z.sK),p.Y36(a.F0),p.Y36(d.x4),p.Y36(d.fb))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-configuration-page"]],viewQuery:function(t,e){if(1&t&&p.Gf(Va,5),2&t){let t;p.iGM(t=p.CRH())&&(e.stepper=t.first)}},decls:34,vars:15,consts:[[1,"facility-theme"],[1,"page-title"],[3,"linear","selectionChange"],["stepper",""],["matStepLabel",""],["matStepContent",""],[3,"stepControl"],["optional","true",3,"stepControl","editable"],[3,"optional","editable"],[1,"actions"],["mat-flat-button","",3,"click"],["class","ml-auto mr-2","mat-flat-button","",3,"click",4,"ngIf"],["mat-flat-button","","color","accent",3,"mr-2","ml-auto","click",4,"ngIf"],["class","mr-2","mat-flat-button","","color","accent",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,"servicePackages","selectedPackage","multiple","disableAutoSelect","theme","packageSelected"],[3,"disableRouting","selection","services","filterValue","displayedColumns","selectionChanged"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","accent",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","selection","attributes",4,"ngIf"],[1,"service-search-select",3,"disableAutoSelect","services","multiple","theme","serviceSelected"],[1,"ml-auto","mr-auto"],[3,"emptyListText","selection","attributes"],[3,"title","loading","displayedColumns","configServices","configServicesIds","destinationEmitter"],[3,"disableRouting","disableSelf"],[3,"innerHTML"],[4,"ngIf"],[3,"disabled"],["svgIcon","perun-owner-grey",1,"mr-2"],[3,"owners","displayedColumns",4,"ngIf"],["svgIcon","perun-hosts",1,"mr-2"],[3,"disableRouting","hosts","displayedColumns",4,"ngIf"],["svgIcon","perun-service",1,"mr-2"],[3,"disableRouting","services","displayedColumns"],[3,"disabled","opened"],[3,"displayedColumns","emptyListText","attributes"],[3,"expanded","disabled","expandedChange"],["svgIcon","perun-service_destination",1,"mr-2"],[3,"destinations","services","displayedColumns"],["svgIcon","perun-manager",1,"mr-2"],[3,"complementaryObject","configMode","disableRouting","complementaryObjectType","availableRoles","displayedUserColumns","displayedGroupColumns"],[3,"owners","displayedColumns"],[3,"disableRouting","hosts","displayedColumns"],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["mat-flat-button","","color","accent",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"]],template:function(t,e){if(1&t&&(p.TgZ(0,"div",0),p.TgZ(1,"div",1),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"mat-stepper",2,3),p.NdJ("selectionChange",function(t){return e.navigationStep(t)}),p.TgZ(6,"mat-step"),p.YNc(7,Ha,2,3,"ng-template",4),p.YNc(8,Pa,1,0,"ng-template",5),p.qZA(),p.TgZ(9,"mat-step"),p.YNc(10,Ga,2,3,"ng-template",4),p.YNc(11,Ba,1,1,"ng-template",5),p.qZA(),p.TgZ(12,"mat-step",6),p.YNc(13,$a,2,3,"ng-template",4),p.YNc(14,za,10,18,"ng-template",5),p.qZA(),p.TgZ(15,"mat-step",7),p.YNc(16,Xa,2,3,"ng-template",4),p.YNc(17,en,16,17,"ng-template",5),p.qZA(),p.TgZ(18,"mat-step",8),p.YNc(19,sn,2,3,"ng-template",4),p.YNc(20,nn,1,6,"ng-template",5),p.qZA(),p.TgZ(21,"mat-step"),p.YNc(22,ln,2,3,"ng-template",4),p.YNc(23,on,1,2,"ng-template",5),p.qZA(),p.TgZ(24,"mat-step"),p.YNc(25,cn,2,3,"ng-template",4),p.YNc(26,En,4,4,"ng-template",5),p.qZA(),p.qZA(),p.TgZ(27,"div",9),p.TgZ(28,"button",10),p.NdJ("click",function(){return e.onCancel()}),p._uU(29),p.ALo(30,"translate"),p.qZA(),p.YNc(31,Zn,3,3,"button",11),p.YNc(32,Cn,3,7,"button",12),p.YNc(33,vn,3,3,"button",13),p.qZA(),p.qZA()),2&t){const t=p.MAs(5);p.xp6(2),p.hij(" ",p.lcZ(3,11,"FACILITY_CONFIGURATION.TITLE")," "),p.xp6(2),p.Q6J("linear",!0),p.xp6(8),p.Q6J("stepControl",e.serviceControl),p.xp6(3),p.Q6J("stepControl",e.attributesControl)("editable",0!==e.selection.selected.length),p.xp6(3),p.Q6J("optional",0===e.destinations.length)("editable",0!==e.selection.selected.length||0!==e.destinations.length),p.xp6(11),p.hij(" ",p.lcZ(30,13,"FACILITY_CONFIGURATION.CANCEL")," "),p.xp6(2),p.Q6J("ngIf",void 0!==t&&0!==t.selectedIndex),p.xp6(1),p.Q6J("ngIf",void 0!==t&&t.selectedIndex!==t.steps.length-1),p.xp6(1),p.Q6J("ngIf",void 0!==t&&t.selectedIndex===t.steps.length-1)}},directives:[qa.Vq,qa.C0,qa.VY,qa.BY,E.lW,s.O5,me,$e,Ht.w,Vt.L,Ma.F,Ja.Q,Bs,I.$g,gi.p,Kt,Ct,Qa.pp,Qa.ib,Qa.yz,Qa.yK,S.Hw,Pt.q,Zt.s,te.Q,Ve],pipes:[Z.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}"]}),t})(),yn=(()=>{class t{constructor(t){this.router=t}canActivate(t){return t.parent.params.facilityId===sessionStorage.getItem("newFacilityId")||(this.router.navigate(["/home"],{queryParamsHandling:"merge"}),!1)}canDeactivate(t){return t.canDeactivate()}}return t.\u0275fac=function(e){return new(e||t)(p.LFG(a.F0))},t.\u0275prov=p.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const On=[{path:"",component:n.P},{path:":facilityId",component:x,children:[{path:"",component:w,data:{animation:"FacilityOverviewPage"}},{path:"attributes",component:X,data:{animation:"FacilityAttributesPage"}},{path:"resources",component:k.f,data:{animation:"FacilityResourcesPage"}},{path:"allowed-users",component:Ks,data:{animation:"FacilityAllowedUsersPage"}},{path:"allowed-groups",component:F.o,data:{animation:"FacilityAllowedGroupsPage"}},{path:"services-status",component:qs,data:{animation:"FacilityServiceStatusPage"}},{path:"services-status/:taskId",component:xa,data:{animation:"FacilityTaskResultsPage"}},{path:"service-config",component:Et,data:{animation:"FacilityServiceConfigPage"}},{path:"services-destinations",component:Kt,data:{animation:"FacilityServicesDestinationsPage"}},{path:"hosts",component:$e,data:{animation:"FacilityHostsPage"}},{path:"hosts/:hostId",component:Ii,data:{animation:"FacilityHostsDetailPage"}},{path:"settings",component:q,children:[{path:"",component:Q,data:{animation:"FacilitySettingsOverviewPage"}},{path:"owners",component:me,data:{animation:"FacilitySettingOwnersPage"}},{path:"managers",component:Ct,data:{animation:"FacilitySettingsManagersPage"}},{path:"security-teams",component:wi,data:{animation:"FacilitySecurityTeamsPage"}},{path:"blacklist",component:di,data:{animation:"FacilitySettingsBlackListPage"}}]},{path:"configuration",component:_n,canActivate:[yn],canDeactivate:[yn]}]},{path:":facilityId/resources/:resourceId",component:Y.b,children:[{path:"",component:U.H,data:{animation:"ResourceOverviewPage"}},{path:"attributes",component:tt.X,data:{animation:"ResourceAttributesPage"}},{path:"groups",component:et.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:Fi.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"members",component:ta.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:Na.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:W.t,children:[{path:"",component:K.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:ki.O,data:{animation:"ResourceSettingsManagersPage"}}]}]}];let Ln=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=p.oAB({type:t}),t.\u0275inj=p.cJS({imports:[[a.Bz.forChild(On)],a.Bz]}),t})();var xn=i(28780),Nn=i(22727),Rn=i(65515),Dn=i(21781);let wn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=p.oAB({type:t}),t.\u0275inj=p.cJS({providers:[nt.dp],imports:[[s.ez,Ln,xn.m,Nn.r,ui.ez,nt.d4,Rn.UsersModule,Dn.AdminModule]]}),t})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/749-es2015.acb04cd96f576727553a.js b/dist/apps/admin-gui/749-es2015.acb04cd96f576727553a.js new file mode 100644 index 000000000..58ffef79e --- /dev/null +++ b/dist/apps/admin-gui/749-es2015.acb04cd96f576727553a.js @@ -0,0 +1 @@ +(self.webpackChunkperun_web_apps=self.webpackChunkperun_web_apps||[]).push([[749],{89749:function(t,e,i){"use strict";i.r(e),i.d(e,{FacilitiesModule:function(){return wn}});var s=i(61511),a=i(57629),n=i(73916),l=i(17),o=i(75585),c=i(65249),r=i(84140),d=i(68416),u=i(6527),h=i(30570),p=i(31572),g=i(84608),f=i(48958),m=i(24820),A=i(66297),I=i(67806),S=i(43691),T=i(36922),b=i(21575),E=i(15980),Z=i(48160);function C(t,e){1&t&&p._UZ(0,"mat-spinner",3)}function v(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",12),p.NdJ("click",function(){return p.CHM(t),p.oxw(2).editFacility()}),p.TgZ(1,"mat-icon"),p._uU(2,"edit"),p.qZA(),p.qZA()}}function _(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",12),p.NdJ("click",function(){return p.CHM(t),p.oxw(2).deleteFacility()}),p.TgZ(1,"mat-icon"),p._uU(2,"delete_forever"),p.qZA(),p.qZA()}}const y=function(){return{color:"black"}},L=function(t){return["/facilities",t]};function x(t,e){if(1&t&&(p.TgZ(0,"div"),p.TgZ(1,"div",4),p._UZ(2,"mat-icon",5),p.ALo(3,"translate"),p.TgZ(4,"div",6),p.TgZ(5,"div",7),p.TgZ(6,"a",8),p._uU(7),p.qZA(),p.TgZ(8,"span",9),p._uU(9),p.qZA(),p.YNc(10,v,3,0,"button",10),p.YNc(11,_,3,0,"button",10),p.qZA(),p.TgZ(12,"span",11),p._uU(13),p.ALo(14,"translate"),p.ALo(15,"translate"),p.qZA(),p.qZA(),p.qZA(),p._UZ(16,"app-animated-router-outlet"),p.qZA()),2&t){const t=p.oxw();p.xp6(2),p.s9C("matTooltip",p.lcZ(3,10,"FACILITY_DETAIL.ENTITY")),p.Q6J("ngStyle",p.DdM(16,y)),p.xp6(4),p.Q6J("routerLink",p.VKq(17,L,t.facility.id)),p.xp6(1),p.Oqu(t.facility.name),p.xp6(2),p.hij(" \xa0#",t.facility.id," "),p.xp6(1),p.Q6J("ngIf",t.editFacilityAuth),p.xp6(1),p.Q6J("ngIf",t.deleteAuth),p.xp6(2),p.lnq(" ",p.lcZ(14,12,"FACILITY_DETAIL.ENTITY"),", ",p.lcZ(15,14,"FACILITY_DETAIL.DESCRIPTION"),": ",t.facility.description," ")}}let O=(()=>{class t{constructor(t,e,i,s,a,n,l,o,c){this.dialog=t,this.facilityManager=e,this.route=i,this.sideMenuService=s,this.sideMenuItemService=a,this.guiAuthResolver=n,this.router=l,this.entityStorageService=o,this.reloadEntityDetail=c,this.editFacilityAuth=!1,this.deleteAuth=!1,this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.subscribe(()=>{this.reloadData()})}reloadData(){this.loading=!0,this.route.params.subscribe(t=>{this.facilityManager.getFacilityById(t.facilityId).subscribe(t=>{this.facility=t,this.entityStorageService.setEntity({id:t.id,beanName:t.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,r.sF)("facilities",this.facility),(0,r.XI)(this.facility),this.loading=!1},()=>this.loading=!1)})}setMenuItems(){const t=this.sideMenuItemService.parseFacility(this.facility);this.sideMenuService.setFacilityMenuItems([t])}editFacility(){const t=(0,r.kZ)();t.width="450px",t.data={theme:"facility-theme",facility:this.facility,dialogType:u.Eg.FACILITY},this.dialog.open(u.rd,t).afterClosed().subscribe(t=>{t&&this.facilityManager.getFacilityById(this.facility.id).subscribe(t=>{this.facility=t,this.setMenuItems()})})}deleteFacility(){const t=(0,r.kZ)();t.width="500px",t.data={theme:"facility-theme",facility:this.facility},this.dialog.open(h.Y,t).afterClosed().subscribe(t=>{t&&this.router.navigate([""])})}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.uw),p.Y36(c.IQ),p.Y36(a.gz),p.Y36(f.D),p.Y36(o.V),p.Y36(d.x4),p.Y36(a.F0),p.Y36(d.fb),p.Y36(m.G))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-detail-page"]],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(t,e){1&t&&(p.TgZ(0,"div",0),p._UZ(1,"perun-web-apps-back-button"),p.YNc(2,C,1,0,"mat-spinner",1),p.YNc(3,x,17,19,"div",2),p.qZA()),2&t&&(p.xp6(2),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading&&void 0!==e.facility))},directives:[A.W,s.O5,I.$g,S.Hw,T.gM,s.PC,a.yS,b.A,E.lW],pipes:[Z.X$],styles:[""],data:{animation:[l.Ji]}}),t})();var N=i(8557);function R(t,e){1&t&&p._UZ(0,"mat-spinner",2)}function D(t,e){if(1&t&&(p.TgZ(0,"div"),p._UZ(1,"perun-web-apps-menu-buttons-field",3),p.qZA()),2&t){const t=p.oxw();p.xp6(1),p.Q6J("items",t.navItems)("size","small")}}let w=(()=>{class t{constructor(t,e,i){this.facilityManager=t,this.authResolver=e,this.entityStorageService=i,this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.navItems=[],this.authResolver.isAuthorized("getAssignedRichResources_Facility_policy",[this.facility])&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/facilities/${this.facility.id}/resources`,label:"MENU_ITEMS.FACILITY.RESOURCES",style:"facility-btn"}),this.authResolver.isAuthorized("getAssignedUsers_Facility_Service_policy",[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.authResolver.isAuthorized("getAllowedGroups_Facility_Vo_Service_policy",[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.authResolver.isAuthorized("getFacilityServicesState_Facility_policy",[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.authResolver.isAuthorized("getAllRichDestinations_Facility_policy",[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.authResolver.isFacilityAdmin()&&this.navItems.push({cssIcon:"perun-hosts",url:`/facilities/${this.facility.id}/hosts`,label:"MENU_ITEMS.FACILITY.HOSTS",style:"facility-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:`/facilities/${this.facility.id}/attributes`,label:"MENU_ITEMS.FACILITY.ATTRIBUTES",style:"facility-btn"}),(this.authResolver.isAuthorized("getBansForFacility_int_policy",[this.facility])||this.authResolver.isManagerPagePrivileged(this.facility)||this.authResolver.isAuthorized("getOwners_Facility_policy",[this.facility])||this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[this.facility]))&&this.navItems.push({cssIcon:"perun-settings2",url:`/facilities/${this.facility.id}/settings`,label:"MENU_ITEMS.FACILITY.SETTINGS",style:"facility-btn"})}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(c.IQ),p.Y36(d.x4),p.Y36(d.fb))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&p.ekj("router-component",e.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(t,e){1&t&&(p.YNc(0,R,1,0,"mat-spinner",0),p.YNc(1,D,2,2,"div",1)),2&t&&(p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[s.O5,I.$g,N.L],styles:[""]}),t})();var k=i(64467),F=i(39124),Y=i(72920),U=i(76527);let M=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&p.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&p._UZ(0,"app-animated-router-outlet")},directives:[b.A],styles:[""],data:{animation:[l.Ji]}}),t})();function q(t,e){1&t&&p._UZ(0,"mat-spinner",2)}function J(t,e){if(1&t&&(p.TgZ(0,"div"),p._UZ(1,"perun-web-apps-menu-buttons-field",3),p.qZA()),2&t){const t=p.oxw();p.xp6(1),p.Q6J("items",t.items)("size","small")}}let Q=(()=>{class t{constructor(t,e,i){this.facilityManager=t,this.authResolver=e,this.entityStorageService=i,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.items=[],this.authResolver.isAuthorized("getOwners_Facility_policy",[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.authResolver.isManagerPagePrivileged(this.facility)&&this.items.push({cssIcon:"perun-manager",url:`/facilities/${this.facility.id}/settings/managers`,label:"MENU_ITEMS.FACILITY.MANAGERS",style:"facility-btn"}),this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[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.authResolver.isAuthorized("getBansForFacility_int_policy",[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 t.\u0275fac=function(e){return new(e||t)(p.Y36(c.IQ),p.Y36(d.x4),p.Y36(d.fb))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-settings-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&p.ekj("router-component",e.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(t,e){1&t&&(p.YNc(0,q,1,0,"mat-spinner",0),p.YNc(1,J,2,2,"div",1)),2&t&&(p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[s.O5,I.$g,N.L],styles:[""]}),t})();var V=i(55109),H=i(541),P=i(3417);function G(t,e){1&t&&(p._uU(0),p.ALo(1,"translate")),2&t&&p.hij(" ",p.lcZ(1,1,"FACILITY_DETAIL.ENTITY")," ")}function B(t,e){if(1&t&&p._UZ(0,"app-one-entity-attribute-page",4),2&t){const t=p.oxw();p.Q6J("entity","facility")("entityId",t.facility.id)}}function j(t,e){1&t&&(p._uU(0),p.ALo(1,"translate"),p.ALo(2,"translate")),2&t&&p.AsE(" ",p.lcZ(1,2,"FACILITY_DETAIL.ENTITY")," - ",p.lcZ(2,4,"ADMIN_USER.ENTITY")," ")}function $(t,e){if(1&t&&p._UZ(0,"app-two-entity-attribute-page",5),2&t){const t=p.oxw(2);p.Q6J("firstEntity","facility")("firstEntityId",t.facility.id)("secondEntity","user")}}function z(t,e){1&t&&(p.TgZ(0,"mat-tab"),p.YNc(1,j,3,6,"ng-template",1),p.YNc(2,$,1,3,"ng-template",2),p.qZA())}let X=(()=>{class t{constructor(t,e){this.authResolver=t,this.entityStorageService=e}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.facilityUserAttAuth=this.authResolver.isAuthorized("getAssignedUsers_Facility_policy",[this.facility])}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(d.x4),p.Y36(d.fb))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-attributes"]],hostVars:2,hostBindings:function(t,e){2&t&&p.ekj("router-component",e.true)},decls:9,vars:4,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"mat-tab-group"),p.TgZ(5,"mat-tab"),p.YNc(6,G,2,3,"ng-template",1),p.YNc(7,B,1,2,"ng-template",2),p.qZA(),p.YNc(8,z,3,0,"mat-tab",3),p.qZA(),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,2,"FACILITY_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),p.xp6(6),p.Q6J("ngIf",e.facilityUserAttAuth))},directives:[V.SP,V.uX,V.uD,V.Vc,s.O5,H.t,P.Y],pipes:[Z.X$],styles:[""]}),t})();var W=i(77968),K=i(22927),tt=i(79472),et=i(42473),it=i(16073),st=i(56238),at=i(79996),nt=i(22280),lt=i(29236),ot=i(66283),ct=i(80340),rt=i(40084),dt=i(71522),ut=i(22196);function ht(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-option",10),p.NdJ("onSelectionChange",function(){const e=p.CHM(t).$implicit;return p.oxw(3).onSelectedService(e)}),p._uU(1),p.qZA()}if(2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.hij(" ",t.name," ")}}function pt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-form-field",6),p.TgZ(1,"input",7),p.NdJ("keyup",function(e){return p.CHM(t),p.oxw(2).updatedSerVal(e)}),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"mat-autocomplete",8,9),p.TgZ(5,"mat-option",10),p.NdJ("onSelectionChange",function(){return p.CHM(t),p.oxw(2).onSelectedService("NOT_SELECTED")}),p._uU(6),p.ALo(7,"translate"),p.qZA(),p.TgZ(8,"mat-option",10),p.NdJ("onSelectionChange",function(){return p.CHM(t),p.oxw(2).onSelectedService("ALL")}),p._uU(9),p.ALo(10,"translate"),p.qZA(),p.YNc(11,ht,2,2,"mat-option",11),p.ALo(12,"async"),p.qZA(),p.qZA()}if(2&t){const t=p.MAs(4),e=p.oxw(2);p.xp6(1),p.s9C("placeholder",p.lcZ(2,9,"FACILITY_DETAIL.SERVICE_CONFIG.SERVICE_SELECT")),p.Q6J("formControl",e.serviceField)("matAutocomplete",t),p.xp6(2),p.Q6J("displayWith",e.serviceDisplayFn.bind(e)),p.xp6(2),p.Q6J("value","NOT_SELECTED"),p.xp6(1),p.hij(" ",p.lcZ(7,11,"FACILITY_DETAIL.SERVICE_CONFIG.NOT_SELECTED")," "),p.xp6(2),p.Q6J("value","ALL"),p.xp6(1),p.hij(" ",p.lcZ(10,13,"FACILITY_DETAIL.SERVICE_CONFIG.ALL")," "),p.xp6(2),p.Q6J("ngForOf",p.lcZ(12,15,e.filteredServices))}}function gt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-option",10),p.NdJ("onSelectionChange",function(){const e=p.CHM(t).$implicit;return p.oxw(3).onSelectedResource(e)}),p._uU(1),p.qZA()}if(2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.hij(" ",t.name," ")}}function ft(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-form-field",6),p.TgZ(1,"input",12),p.NdJ("keyup",function(e){return p.CHM(t),p.oxw(2).updatedResVal(e)}),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"mat-autocomplete",8,9),p.YNc(5,gt,2,2,"mat-option",11),p.ALo(6,"async"),p.qZA(),p.qZA()}if(2&t){const t=p.MAs(4),e=p.oxw(2);p.xp6(1),p.s9C("placeholder",p.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.RES_SELECT")),p.Q6J("matAutocomplete",t)("formControl",e.resourceField),p.xp6(2),p.Q6J("displayWith",e.resourceDisplayFn.bind(e)),p.xp6(2),p.Q6J("ngForOf",p.lcZ(6,7,e.filteredResources))}}function mt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-option",10),p.NdJ("onSelectionChange",function(){const e=p.CHM(t).$implicit;return p.oxw(3).onSelectedGroup(e)}),p._uU(1),p.qZA()}if(2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.hij(" ",t.name," ")}}function At(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-form-field",6),p.TgZ(1,"input",12),p.NdJ("keyup",function(e){return p.CHM(t),p.oxw(2).updatedGroupVal(e)}),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"mat-autocomplete",13,9),p.YNc(5,mt,2,2,"mat-option",11),p.ALo(6,"async"),p.qZA(),p.qZA()}if(2&t){const t=p.MAs(4),e=p.oxw(2);p.xp6(1),p.s9C("placeholder",p.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.GROUP_SELECT")),p.Q6J("matAutocomplete",t)("formControl",e.groupField),p.xp6(2),p.Q6J("displayWith",e.groupDisplayFn.bind(e)),p.xp6(2),p.Q6J("ngForOf",p.lcZ(6,7,e.filteredGroups))}}function It(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-option",10),p.NdJ("onSelectionChange",function(){const e=p.CHM(t).$implicit;return p.oxw(3).onSelectedMember(e)}),p._uU(1),p.ALo(2,"userFullName"),p.qZA()}if(2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.hij(" ",p.lcZ(2,2,t.user)," ")}}function St(t,e){if(1&t&&(p.TgZ(0,"mat-form-field",6),p._UZ(1,"input",14),p.ALo(2,"translate"),p.TgZ(3,"mat-autocomplete",8,9),p.YNc(5,It,3,4,"mat-option",11),p.ALo(6,"async"),p.qZA(),p.qZA()),2&t){const t=p.MAs(4),e=p.oxw(2);p.xp6(1),p.s9C("placeholder",p.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.MEMBER_SELECT")),p.Q6J("formControl",e.memberField)("matAutocomplete",t),p.xp6(2),p.Q6J("displayWith",e.memberDisplayFn.bind(e)),p.xp6(2),p.Q6J("ngForOf",p.lcZ(6,7,e.filteredMembers))}}function Tt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div",3),p.YNc(1,pt,13,17,"mat-form-field",4),p.TgZ(2,"mat-checkbox",5),p.NdJ("change",function(e){return p.CHM(t),p.oxw().onOfferAllServices(e)}),p._uU(3),p.ALo(4,"translate"),p.qZA(),p.YNc(5,ft,7,9,"mat-form-field",4),p.YNc(6,At,7,9,"mat-form-field",4),p.YNc(7,St,7,9,"mat-form-field",4),p.qZA()}if(2&t){const t=p.oxw();p.xp6(1),p.Q6J("ngIf",void 0!==t.services),p.xp6(2),p.hij(" ",p.lcZ(4,5,"FACILITY_DETAIL.SERVICE_CONFIG.ALL_SERVICES")," "),p.xp6(2),p.Q6J("ngIf",void 0!==t.resources&&0!==t.resources.length),p.xp6(1),p.Q6J("ngIf",void 0!==t.selectedResource&&void 0!==t.groups&&0!==t.groups.length),p.xp6(1),p.Q6J("ngIf",void 0!==t.selectedGroup&&void 0!==t.members&&0!==t.members.length)}}function bt(t,e){if(1&t&&p._UZ(0,"perun-web-apps-service-configurator",15),2&t){const t=p.oxw();p.Q6J("facility",t.facility)("resource",t.selectedResource)("group",t.selectedGroup)("service",t.selectedService)("member",t.selectedMember)}}let Et=(()=>{class t{constructor(t,e,i,s,a,n,l){this.facilityManager=t,this.resourceManager=e,this.serviceManager=i,this.membersManager=s,this.namePipe=a,this.translate=n,this.entityStorageService=l,this.selectedService="NOT_SELECTED",this.attrNames=[],this.serviceField=new it.NI,this.resourceField=new it.NI,this.groupField=new it.NI,this.memberField=new it.NI,this.allowedStatuses=["INVALID","VALID"],this.translate.get("FACILITY_DETAIL.SERVICE_CONFIG.ALL").subscribe(t=>this.serviceAllTranslation=t),this.translate.get("FACILITY_DETAIL.SERVICE_CONFIG.NOT_SELECTED").subscribe(t=>this.serviceNotSelectedTranslation=t)}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.facilityManager.getFacilityById(this.facility.id).subscribe(t=>{this.facility=t,this.facilityManager.getAssignedResourcesForFacility(t.id).subscribe(t=>this.resources=t),this.serviceManager.getAssignedServices(t.id).subscribe(t=>this.services=t)}),this.filteredServices=this.serviceField.valueChanges.pipe((0,st.O)(""),(0,at.U)(t=>this._filterServices(t))),this.filteredResources=this.resourceField.valueChanges.pipe((0,st.O)(""),(0,at.U)(t=>this._filterResources(t))),this.filteredGroups=this.groupField.valueChanges.pipe((0,st.O)(""),(0,at.U)(t=>this._filterGroups(t))),this.filteredMembers=this.memberField.valueChanges.pipe((0,st.O)(""),(0,at.U)(t=>this._filterMembers(t)))}onSelectedService(t){this.selectedService=t}onSelectedResource(t){this.selectedResource=t,void 0!==this.selectedResource?(this.resourceManager.getAssignedGroups(this.selectedResource.id).subscribe(t=>this.groups=t),this.selectedGroup=void 0,this.selectedMember=void 0):this.groups=void 0}onOfferAllServices(t){t.checked||this.serviceManager.getAssignedServices(this.facility.id).subscribe(t=>this.services=t)}onSelectedGroup(t){this.selectedGroup=t,void 0!==this.selectedGroup?(this.membersManager.getCompleteRichMembersForGroup(this.selectedGroup.id,!1,this.allowedStatuses,this.attrNames).subscribe(t=>this.members=t),this.selectedMember=void 0):this.members=void 0}onSelectedMember(t){this.selectedMember=t}_filterServices(t){const e=t.toString().toLowerCase();return this.services.filter(t=>t.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(e))}_filterResources(t){const e=t.toString().toLowerCase();return this.resources.filter(t=>t.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(e))}_filterGroups(t){const e=t.toString().toLowerCase();return this.groups.filter(t=>t.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(e))}_filterMembers(t){const e=t.toString().toLowerCase();return this.members.filter(t=>this.namePipe.transform(t.user).toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(e))}serviceDisplayFn(t){if(null!==t)return"ALL"===t?this.serviceAllTranslation:"NOT_SELECTED"===t?this.serviceNotSelectedTranslation:t.name}resourceDisplayFn(t){if(null!==t)return t.name}groupDisplayFn(t){if(null!==t)return t.name}memberDisplayFn(t){if(null!==t)return this.namePipe.transform(t.user)}updatedSerVal(t){""===t.target.value&&(this.selectedService="NOT_SELECTED")}updatedResVal(t){""===t.target.value&&(this.groups=void 0,this.members=void 0)}updatedGroupVal(t){""===t.target.value&&(this.members=void 0)}updatedMemVal(t){}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(c.IQ),p.Y36(c.xk),p.Y36(c.KK),p.Y36(c.uq),p.Y36(nt.dp),p.Y36(Z.sK),p.Y36(d.fb))},t.\u0275cmp=p.Xpm({type:t,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","service","member",4,"ngIf"],[1,"col-12","col-lg-6","mb-2"],["class","w-100",4,"ngIf"],[3,"change"],[1,"w-100"],["type","text","matInput","",3,"placeholder","formControl","matAutocomplete","keyup"],["autoActiveFirstOption","",3,"displayWith"],["auto","matAutocomplete"],[3,"value","onSelectionChange"],[3,"value","onSelectionChange",4,"ngFor","ngForOf"],["type","text","matInput","",3,"placeholder","matAutocomplete","formControl","keyup"],["autoActiveFirstOption","",3,"ngClass","displayWith"],["type","text","matInput","",3,"placeholder","formControl","matAutocomplete"],[3,"facility","resource","group","service","member"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.YNc(4,Tt,8,7,"div",1),p.YNc(5,bt,1,5,"perun-web-apps-service-configurator",2),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,3,"FACILITY_DETAIL.SERVICE_CONFIG.TITLE")),p.xp6(2),p.Q6J("ngIf",!!e.facility),p.xp6(1),p.Q6J("ngIf",!!e.facility))},directives:[s.O5,lt.oG,ot.KE,ct.Nt,it.Fj,rt.ZL,it.JJ,it.oH,rt.XC,dt.ey,s.sg,s.mk],pipes:[Z.X$,s.Ov,ut.d],styles:[""]}),t})();var Zt=i(489);let Ct=(()=>{class t{constructor(t,e,i){this.facilityService=t,this.guiAuthResolver=e,this.entityStorageService=i,this.availableRoles=[],this.selected="user",this.type="Facility",this.theme="facility-theme",this.disableRouting=!1,this.disableSelf=!1}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Facility")}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(c.IQ),p.Y36(d.x4),p.Y36(d.fb))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-perun-web-apps-facility-settings-managers"]],hostVars:2,hostBindings:function(t,e){2&t&&p.ekj("router-component",e.true)},inputs:{disableRouting:"disableRouting",disableSelf:"disableSelf"},decls:1,vars:6,consts:[[3,"complementaryObject","complementaryObjectType","theme","availableRoles","disableRouting","disableSelf"]],template:function(t,e){1&t&&p._UZ(0,"app-managers-page",0),2&t&&p.Q6J("complementaryObject",e.facility)("complementaryObjectType",e.type)("theme",e.theme)("availableRoles",e.availableRoles)("disableRouting",e.disableRouting)("disableSelf",e.disableSelf)},directives:[Zt.s],styles:[""]}),t})();var vt=i(60611),_t=i(4230),yt=i(60547),Lt=i(4786);function xt(t,e){1&t&&p._UZ(0,"mat-spinner",6)}function Ot(t,e){1&t&&(p.TgZ(0,"mat-option",19),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.SELECTION_ALL")))}function Nt(t,e){1&t&&(p.TgZ(0,"mat-option",20),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.NO_SERVICE")))}function Rt(t,e){if(1&t&&(p.TgZ(0,"mat-option",21),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.hij(" ",t.name," ")}}function Dt(t,e){1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.CHOOSE_SERVICE")," "))}function wt(t,e){if(1&t&&(p.TgZ(0,"mat-option",21),p._uU(1),p.qZA()),2&t){const t=e.$implicit,i=p.oxw(2);p.Q6J("value",t),p.xp6(1),p.hij(" ",i.getTypeForView(t)," ")}}function kt(t,e){1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.REQUIRED_FIELD")," "))}function Ft(t,e){1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.INVALID_DESTINATION")," "))}function Yt(t,e){if(1&t&&(p.TgZ(0,"mat-form-field",22),p._UZ(1,"input",23),p.YNc(2,kt,3,3,"mat-error",13),p.YNc(3,Ft,3,3,"mat-error",13),p.qZA()),2&t){const t=p.oxw(2);p.xp6(1),p.s9C("placeholder",t.getTypeForView(t.selectedType)),p.Q6J("formControl",t.destinationControl),p.xp6(1),p.Q6J("ngIf","host"===t.selectedType&&!t.useFacilityHost&&t.destinationControl.hasError("required")),p.xp6(1),p.Q6J("ngIf",t.destinationControl.hasError("invalidDestination"))}}function Ut(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-checkbox",24),p.NdJ("ngModelChange",function(e){return p.CHM(t),p.oxw(2).useFacilityHost=e}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw(2);p.Q6J("ngModel",t.useFacilityHost),p.xp6(1),p.hij(" ",p.lcZ(2,2,"DIALOGS.ADD_SERVICE_DESTINATION.USE_FACILITY_HOST")," ")}}function Mt(t,e){if(1&t&&(p.TgZ(0,"mat-option",21),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.hij(" ",t," ")}}function qt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div",7),p.TgZ(1,"div",8),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"mat-form-field"),p.TgZ(5,"mat-select",9),p.ALo(6,"translate"),p.YNc(7,Ot,3,3,"mat-option",10),p.YNc(8,Nt,3,3,"mat-option",11),p.YNc(9,Rt,2,2,"mat-option",12),p.qZA(),p.YNc(10,Dt,3,3,"mat-error",13),p.qZA(),p.TgZ(11,"mat-checkbox",14),p.NdJ("change",function(){return p.CHM(t),p.oxw().getServices()})("ngModelChange",function(e){return p.CHM(t),p.oxw().servicesOnFacility=e}),p._uU(12),p.ALo(13,"translate"),p.qZA(),p.TgZ(14,"mat-form-field"),p.TgZ(15,"mat-select",15),p.NdJ("ngModelChange",function(e){return p.CHM(t),p.oxw().selectedType=e})("selectionChange",function(){return p.CHM(t),p.oxw().destinationControl.updateValueAndValidity()}),p.ALo(16,"translate"),p.YNc(17,wt,2,2,"mat-option",12),p.qZA(),p.qZA(),p.YNc(18,Yt,4,4,"mat-form-field",16),p.YNc(19,Ut,3,4,"mat-checkbox",17),p.TgZ(20,"mat-form-field"),p.TgZ(21,"mat-select",18),p.NdJ("ngModelChange",function(e){return p.CHM(t),p.oxw().selectedPropagation=e}),p.ALo(22,"translate"),p.YNc(23,Mt,2,2,"mat-option",12),p.qZA(),p.qZA(),p.TgZ(24,"div",8),p._uU(25),p.ALo(26,"translate"),p.qZA(),p.qZA()}if(2&t){const t=p.oxw();p.xp6(2),p.Oqu(p.lcZ(3,18,"DIALOGS.ADD_SERVICE_DESTINATION.DESCRIPTION")),p.xp6(3),p.s9C("placeholder",p.lcZ(6,20,"DIALOGS.ADD_SERVICE_DESTINATION.SERVICE")),p.Q6J("formControl",t.serviceControl),p.xp6(2),p.Q6J("ngIf",0!==t.services.length),p.xp6(1),p.Q6J("ngIf",0===t.services.length),p.xp6(1),p.Q6J("ngForOf",t.services),p.xp6(1),p.Q6J("ngIf",void 0===t.serviceControl.value),p.xp6(1),p.Q6J("ngModel",t.servicesOnFacility),p.xp6(1),p.Oqu(p.lcZ(13,22,"DIALOGS.ADD_SERVICE_DESTINATION.IS_SERVICES_ONLY_ON_FACILITY")),p.xp6(3),p.s9C("placeholder",p.lcZ(16,24,"DIALOGS.ADD_SERVICE_DESTINATION.TYPE")),p.Q6J("ngModel",t.selectedType),p.xp6(2),p.Q6J("ngForOf",t.types),p.xp6(1),p.Q6J("ngIf",!("host"===t.selectedType&&t.useFacilityHost)),p.xp6(1),p.Q6J("ngIf","host"===t.selectedType),p.xp6(2),p.s9C("placeholder",p.lcZ(22,26,"DIALOGS.ADD_SERVICE_DESTINATION.PROPAGATION")),p.Q6J("ngModel",t.selectedPropagation),p.xp6(2),p.Q6J("ngForOf",t.propagations),p.xp6(2),p.hij(" ",p.lcZ(26,28,"DIALOGS.ADD_SERVICE_DESTINATION.PROPAGATION_TYPE_"+t.selectedPropagation)," ")}}let Jt=(()=>{class t{constructor(t,e,i,s){this.dialogRef=t,this.data=e,this.facilitiesManager=i,this.servicesManager=s,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(r.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.loading=!0,this.serviceControl=new it.NI(void 0,it.kI.required),this.destinationControl=new it.NI("",this.getDestinationValidator()),this.emailControl=new it.NI("",[it.kI.required,it.kI.pattern(this.emailRegex)]),this.facilitiesManager.getHosts(this.data.facility.id).subscribe(t=>{this.hosts=t,this.servicesOnFacility=!0,this.getServices(),this.loading=!1},()=>this.loading=!1)}getDestinationValidator(){return t=>{if(!t.value)return null;let e;switch(this.selectedType){case"host":case"host-windows-proxy":e=this.hostPattern;break;case"email":case"semail":e=this.emailRegex;break;case"url":e=this.urlPattern;break;case"user@host":case"user@host-windows":e=this.userAtHostPattern;break;case"user@host:port":e=this.userAtHostPortPattern;break;case"service-specific":e=this.serviceSpecificPattern;break;default:return null}return e.test(t.value)?null:{invalidDestination:{value:t.value}}}}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(t=>{this.services=t},()=>this.loading=!1):this.servicesManager.getServices().subscribe(t=>{this.services=t},()=>this.loading=!1),this.loading=!1,this.serviceControl.setValue(void 0)}getTypeForView(t){return"semail"===t?"Send Mail":"service-specific"===t?"Service Specific":t}invalidDestination(){return("host"!==this.selectedType||!this.useFacilityHost)&&this.destinationControl.invalid}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.so),p.Y36(g.WI),p.Y36(c.IQ),p.Y36(c.KK))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-perun-web-apps-add-services-destination-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",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(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.YNc(4,xt,1,0,"mat-spinner",1),p.YNc(5,qt,27,30,"div",2),p.TgZ(6,"div",3),p.TgZ(7,"button",4),p.NdJ("click",function(){return e.onCancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return e.onSubmit()}),p._uU(11),p.ALo(12,"translate"),p.qZA(),p.qZA(),p.qZA()),2&t&&(p.Tol(e.data.theme),p.xp6(2),p.Oqu(p.lcZ(3,9,"DIALOGS.ADD_SERVICE_DESTINATION.TITLE")),p.xp6(2),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.ADD_SERVICE_DESTINATION.CANCEL")," "),p.xp6(2),p.Q6J("disabled",e.loading||e.invalidDestination()||e.serviceControl.invalid||"noService"===e.serviceControl.value),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.ADD_SERVICE_DESTINATION.ADD")," "))},directives:[g.uh,s.O5,g.H8,E.lW,I.$g,g.xY,ot.KE,Lt.gD,it.Q7,it.JJ,it.oH,s.sg,lt.oG,it.On,dt.ey,ot.TO,ct.Nt,it.Fj],pipes:[Z.X$],styles:[""],data:{animation:[l.BQ]}}),t})();var Qt=i(59403),Vt=i(19139),Ht=i(39571),Pt=i(94357);function Gt(t,e){1&t&&(p.TgZ(0,"app-alert",9),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"FACILITY_DETAIL.SERVICES_DESTINATIONS.DESTINATIONS_INFO")," "))}function Bt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",10),p.NdJ("click",function(){return p.CHM(t),p.oxw().addDestination()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"FACILITY_DETAIL.SERVICES_DESTINATIONS.ADD")," "))}function jt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",11),p.NdJ("click",function(){return p.CHM(t),p.oxw().removeDestination()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",0===t.selected.selected.length),p.xp6(1),p.hij(" ",p.lcZ(2,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.REMOVE")," ")}}function $t(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",12),p.NdJ("click",function(){return p.CHM(t),p.oxw().onAllow()}),p.TgZ(1,"mat-icon"),p._uU(2," check_circle_outline "),p.qZA(),p._uU(3),p.ALo(4,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",0===t.selected.selected.length||t.allSelectedAllowed()),p.xp6(3),p.hij(" ",p.lcZ(4,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.ALLOW")," ")}}function zt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",12),p.NdJ("click",function(){return p.CHM(t),p.oxw().onBlock()}),p.TgZ(1,"mat-icon"),p._uU(2," block "),p.qZA(),p._uU(3),p.ALo(4,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",0===t.selected.selected.length||t.allSelectedBlocked()),p.xp6(3),p.hij(" ",p.lcZ(4,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.BLOCK")," ")}}function Xt(t,e){1&t&&p._UZ(0,"mat-spinner",13)}function Wt(t,e){if(1&t&&p._UZ(0,"app-perun-web-apps-destination-list",14),2&t){const t=p.oxw();p.Q6J("tableId",t.tableId)("filterValue",t.filterValue)("destinations",t.destinations)("selection",t.selected)("displayedColumns",t.displayedColumns)("services",t.configServicesIds)}}let Kt=(()=>{class t{constructor(t,e,i,s,a,n,l,o){this.dialog=t,this.facilitiesManager=e,this.servicesManager=i,this.translate=s,this.notificator=a,this.authResolver=n,this.serviceManager=l,this.entityStorageService=o,this.selected=new _t.Ov(!0,[]),this.displayedColumns=["select","destinationId","service","destination","type","propagationType"],this.configServices=[],this.configServicesIds=new Set,this.title="FACILITY_DETAIL.SERVICES_DESTINATIONS.TITLE",this.destinationEmitter=new p.vpe,this.filterValue="",this.tableId=vt.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(t=>{this.destinations=t,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(t=>"select"!==t)}addDestination(){const t=(0,r.kZ)();t.width="600px",t.data={facility:this.facility,theme:"facility-theme",configServices:this.configServices},this.dialog.open(Jt,t).afterClosed().subscribe(t=>{t&&this.translate.get("FACILITY_DETAIL.SERVICES_DESTINATIONS.ADD_SUCCESS").subscribe(t=>{this.refreshTable(),this.notificator.showSuccess(t)})})}removeDestination(){const t=(0,r.kZ)();t.width="600px",t.data={destinations:this.selected.selected,theme:"facility-theme"},this.dialog.open(yt.u,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}blockServiceOnDestinations(t){if(0===t.length)return this.notificator.showSuccess(this.translate.instant("FACILITY_DETAIL.SERVICES_DESTINATIONS.BLOCK_SUCCESS")),void this.refreshTable();const e=t.pop();this.serviceManager.blockServiceOnDestination(e.service.id,e.id).subscribe(()=>{this.blockServiceOnDestinations(t)},()=>this.loading=!1)}onBlock(){this.loading=!0,this.blockServiceOnDestinations(this.selected.selected)}allowServiceOnDestinations(t){if(0===t.length)return this.notificator.showSuccess(this.translate.instant("FACILITY_DETAIL.SERVICES_DESTINATIONS.ALLOW_SUCCESS")),void this.refreshTable();const e=t.pop();this.serviceManager.unblockServiceOnDestinationById(e.service.id,e.id).subscribe(()=>{this.allowServiceOnDestinations(t)},()=>this.loading=!1)}onAllow(){this.loading=!0,this.allowServiceOnDestinations(this.selected.selected)}applyFilter(t){this.filterValue=t}allSelectedAllowed(){return this.selected.selected.reduce((t,e)=>t&&!e.blocked,!0)}allSelectedBlocked(){return this.selected.selected.reduce((t,e)=>t&&e.blocked,!0)}}return t.id="FacilityServicesDestinationsComponent",t.\u0275fac=function(e){return new(e||t)(p.Y36(g.uw),p.Y36(c.IQ),p.Y36(c.KK),p.Y36(Z.sK),p.Y36(d.V6),p.Y36(d.x4),p.Y36(c.KK),p.Y36(d.fb))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-perun-web-apps-facility-services-destinations"]],hostVars:2,hostBindings:function(t,e){2&t&&p.ekj("router-component",e.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"],["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"],["mat-stroked-button","","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","filterValue","destinations","selection","displayedColumns","services",4,"ngIf"],["alert_type","info"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","destinations","selection","displayedColumns","services"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.YNc(4,Gt,3,3,"app-alert",1),p.TgZ(5,"perun-web-apps-refresh-button",2),p.NdJ("refresh",function(){return e.refreshTable()}),p.qZA(),p.YNc(6,Bt,3,3,"button",3),p.YNc(7,jt,3,4,"button",4),p.YNc(8,$t,5,4,"button",5),p.YNc(9,zt,5,4,"button",5),p.TgZ(10,"perun-web-apps-immediate-filter",6),p.NdJ("filter",function(t){return e.applyFilter(t)}),p.qZA(),p.YNc(11,Xt,1,0,"mat-spinner",7),p.YNc(12,Wt,1,6,"app-perun-web-apps-destination-list",8),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,9,e.title)),p.xp6(2),p.Q6J("ngIf",e.title.includes("CONFIG")),p.xp6(2),p.Q6J("ngIf",e.addAuth),p.xp6(1),p.Q6J("ngIf",e.removeAuth),p.xp6(1),p.Q6J("ngIf",e.allowAuth),p.xp6(1),p.Q6J("ngIf",e.blockAuth),p.xp6(1),p.Q6J("placeholder","FACILITY_DETAIL.SERVICES_DESTINATIONS.FILTER"),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[s.O5,Qt.t,Vt.L,Ht.w,E.lW,S.Hw,I.$g,Pt.q],pipes:[Z.X$],styles:[""]}),t})();var te=i(17767);function ee(t,e){1&t&&p._UZ(0,"mat-spinner",3)}function ie(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div"),p.TgZ(1,"perun-web-apps-immediate-filter",4),p.NdJ("filter",function(e){return p.CHM(t),p.oxw().applyFilter(e)}),p.qZA(),p.TgZ(2,"div",5),p._UZ(3,"perun-web-apps-owners-list",6),p.qZA(),p.TgZ(4,"div",7),p.TgZ(5,"button",8),p.NdJ("click",function(){return p.CHM(t),p.oxw().onCancel()}),p._uU(6),p.ALo(7,"translate"),p.qZA(),p.TgZ(8,"button",9),p.NdJ("click",function(){return p.CHM(t),p.oxw().onAdd()}),p._uU(9),p.ALo(10,"translate"),p.qZA(),p.qZA(),p.qZA()}if(2&t){const t=p.oxw();p.xp6(1),p.Q6J("placeholder","DIALOGS.ADD_OWNERS.FILTER"),p.xp6(2),p.Q6J("filterValue",t.filterValue)("tableId",t.tableId)("owners",t.owners)("selection",t.selection),p.xp6(3),p.hij(" ",p.lcZ(7,8,"DIALOGS.ADD_OWNERS.CANCEL")," "),p.xp6(2),p.Q6J("disabled",0===t.selection.selected.length||t.loading),p.xp6(1),p.hij(" ",p.lcZ(10,10,"DIALOGS.ADD_OWNERS.ADD")," ")}}let se=(()=>{class t{constructor(t,e,i,s,a,n){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=s,this.ownersManagerService=a,this.facilitiesManagerService=n,this.extSources=[],this.selection=new _t.Ov(!0,[]),this.filterValue="",this.tableId=vt.BV,this.owners=[],this.translate.get("DIALOGS.ADD_OWNERS.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.ownersManagerService.getAllOwners().subscribe(t=>{this.owners=t.filter(t=>!this.data.forbiddenOwners.includes(t.id)),this.loading=!1},()=>this.loading=!1)}applyFilter(t){this.filterValue=t}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 t.\u0275fac=function(e){return new(e||t)(p.Y36(g.so),p.Y36(g.WI),p.Y36(d.V6),p.Y36(Z.sK),p.Y36(c.aC),p.Y36(c.IQ))},t.\u0275cmp=p.Xpm({type:t,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","tableId","owners","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(t,e){1&t&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div"),p.YNc(4,ee,1,0,"mat-spinner",1),p.YNc(5,ie,11,12,"div",2),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,6,"DIALOGS.ADD_OWNERS.TITLE")),p.xp6(2),p.Tol(e.theme),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[g.uh,s.O5,I.$g,Vt.L,g.xY,te.Q,g.H8,E.lW],pipes:[Z.X$],styles:[""]}),t})();var ae=i(67033);function ne(t,e){1&t&&p._UZ(0,"mat-spinner",6)}function le(t,e){1&t&&p._UZ(0,"th",15)}function oe(t,e){if(1&t&&(p.TgZ(0,"td",16),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.name)}}function ce(t,e){1&t&&p._UZ(0,"tr",17)}function re(t,e){1&t&&p._UZ(0,"tr",18)}function de(t,e){if(1&t&&(p.TgZ(0,"div",7),p.TgZ(1,"p"),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"div",8),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.TgZ(7,"table",9),p.ynx(8,10),p.YNc(9,le,1,0,"th",11),p.YNc(10,oe,2,1,"td",12),p.BQk(),p.YNc(11,ce,1,0,"tr",13),p.YNc(12,re,1,0,"tr",14),p.qZA(),p.qZA()),2&t){const t=p.oxw();p.xp6(2),p.hij(" ",p.lcZ(3,5,"DIALOGS.REMOVE_OWNERS.DESCRIPTION")," "),p.xp6(3),p.hij(" ",p.lcZ(6,7,"DIALOGS.REMOVE_OWNERS.ASK")," "),p.xp6(2),p.Q6J("dataSource",t.dataSource),p.xp6(4),p.Q6J("matHeaderRowDef",t.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",t.displayedColumns)}}let ue=(()=>{class t{constructor(t,e,i,s,a){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=s,this.facilitiesManagerService=a,this.displayedColumns=["name"],s.get("DIALOGS.REMOVE_OWNERS.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.dataSource=new ae.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 t.\u0275fac=function(e){return new(e||t)(p.Y36(g.so),p.Y36(g.WI),p.Y36(d.V6),p.Y36(Z.sK),p.Y36(c.IQ))},t.\u0275cmp=p.Xpm({type:t,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(t,e){1&t&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div"),p.YNc(4,ne,1,0,"mat-spinner",1),p.YNc(5,de,13,9,"div",2),p.TgZ(6,"div",3),p.TgZ(7,"button",4),p.NdJ("click",function(){return e.onCancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return e.onSubmit()}),p._uU(11),p.ALo(12,"translate"),p.qZA(),p.qZA(),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,9,"DIALOGS.REMOVE_OWNERS.TITLE")),p.xp6(2),p.Tol(e.theme),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.REMOVE_OWNERS.CANCEL")," "),p.xp6(2),p.Q6J("disabled",e.loading),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.REMOVE_OWNERS.DELETE")," "))},directives:[g.uh,s.O5,g.H8,E.lW,I.$g,g.xY,ae.BZ,ae.w1,ae.fO,ae.Dz,ae.as,ae.nj,ae.ge,ae.ev,ae.XQ,ae.Gk],pipes:[Z.X$],styles:[""]}),t})();function he(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",7),p.NdJ("click",function(){return p.CHM(t),p.oxw().onCreate()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"FACILITY_DETAIL.SETTINGS.OWNERS.ADD"),"\n"))}function pe(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",8),p.NdJ("click",function(){return p.CHM(t),p.oxw().onRemove()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",0===t.selection.selected.length),p.xp6(1),p.hij(" ",p.lcZ(2,2,"FACILITY_DETAIL.SETTINGS.OWNERS.DELETE"),"\n")}}function ge(t,e){1&t&&p._UZ(0,"mat-spinner",9)}function fe(t,e){if(1&t&&p._UZ(0,"perun-web-apps-owners-list",10),2&t){const t=p.oxw();p.Q6J("tableId",t.tableId)("filterValue",t.filterValue)("owners",t.owners)("displayedColumns",t.displayedColumns)("selection",t.selection)}}let me=(()=>{class t{constructor(t,e,i,s){this.facilitiesManagerService=t,this.dialog=e,this.authResolver=i,this.entityStorageService=s,this.owners=[],this.selection=new _t.Ov(!0,[]),this.displayedColumns=["id","name","contact","type"],this.tableId=vt.zp,this.ownerEmitter=new p.vpe}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(t=>{this.owners=t,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(t){this.filterValue=t}onCreate(){const t=(0,r.kZ)();t.width="800px",t.data={theme:"facility-theme",facilityId:this.facility.id,forbiddenOwners:this.owners.map(t=>t.id)},this.dialog.open(se,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onRemove(){const t=(0,r.kZ)();t.width="600px",t.data={theme:"facility-theme",owners:this.selection.selected,facilityId:this.facility.id},this.dialog.open(ue,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(c.IQ),p.Y36(g.uw),p.Y36(d.x4),p.Y36(d.fb))},t.\u0275cmp=p.Xpm({type:t,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,"tableId","filterValue","owners","displayedColumns","selection",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,"tableId","filterValue","owners","displayedColumns","selection"]],template:function(t,e){1&t&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"perun-web-apps-refresh-button",1),p.NdJ("refresh",function(){return e.refreshTable()}),p.qZA(),p.YNc(4,he,3,3,"button",2),p.YNc(5,pe,3,4,"button",3),p.TgZ(6,"perun-web-apps-immediate-filter",4),p.NdJ("filter",function(t){return e.applyFilter(t)}),p.qZA(),p.YNc(7,ge,1,0,"mat-spinner",5),p.YNc(8,fe,1,5,"perun-web-apps-owners-list",6)),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,6,"FACILITY_DETAIL.SETTINGS.OWNERS.TITLE")),p.xp6(3),p.Q6J("ngIf",e.addAuth),p.xp6(1),p.Q6J("ngIf",e.removeAuth),p.xp6(1),p.Q6J("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER"),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[Qt.t,s.O5,Vt.L,E.lW,I.$g,te.Q],pipes:[Z.X$],styles:[""]}),t})();var Ae=i(84534);function Ie(t,e){1&t&&p._UZ(0,"mat-spinner",6)}function Se(t,e){1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.ADD_HOST.EMPTY_MESSAGE")," "))}function Te(t,e){if(1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t){const t=p.oxw(2);p.xp6(1),p.AsE(" ",p.lcZ(2,2,"DIALOGS.ADD_HOST.INVALID_HOST"),"",t.hostsCtrl.getError("invalidHost").value," ")}}function be(t,e){if(1&t&&(p.TgZ(0,"div",7),p.TgZ(1,"mat-form-field"),p.TgZ(2,"textarea",8),p.ALo(3,"translate"),p._uU(4," "),p.qZA(),p.YNc(5,Se,3,3,"mat-error",9),p.YNc(6,Te,3,4,"mat-error",9),p.qZA(),p.TgZ(7,"app-alert",10),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.qZA()),2&t){const t=p.oxw();p.xp6(2),p.Q6J("placeholder",p.lcZ(3,5,"DIALOGS.ADD_HOST.SUBTITLE"))("formControl",t.hostsCtrl),p.xp6(3),p.Q6J("ngIf",t.hostsCtrl.hasError("required")),p.xp6(1),p.Q6J("ngIf",t.hostsCtrl.hasError("invalidHost")),p.xp6(2),p.Oqu(p.lcZ(9,7,"DIALOGS.ADD_HOST.HINT"))}}let Ee=(()=>{class t{constructor(t,e,i,s,a){this.dialogRef=t,this.data=e,this.facilitiesManager=i,this.notificator=s,this.translate=a,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}$")}ngOnInit(){this.theme=this.data.theme,this.hostsCtrl=new it.NI("",[it.kI.required,this.hostsNameValidator()]),this.hostsCtrl.markAllAsTouched()}onAdd(){this.loading=!0;const t=this.hostsCtrl.value.split("\n");let e=[];for(const i of t)e=e.concat(this.parseHostName(i));this.facilitiesManager.addHosts(this.data.facilityId,e).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 t=>{let e=[];const i=t.value.split("\n");for(const s of i)e=e.concat(this.parseHostName(s));for(const s of e)if(!this.hostPattern.test(s))return{invalidHost:{value:s}};return null}}parseHostName(t){const e=new RegExp("[[0-9]+-[0-9]+]","g"),i=t.split(e),s=t.match(e);if(null==s)return""===t?[]:[t];let a=[];for(let n=0;n{class t{constructor(t,e,i,s,a){this.dialogRef=t,this.data=e,this.facilitiesManager=i,this.notificator=s,this.translate=a,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.hosts=this.data.hosts,this.dataSource=new ae.by(this.data.hosts)}onConfirm(){this.loading=!0,this.facilitiesManager.removeHosts(this.data.facilityId,this.hosts.map(t=>t.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 t.\u0275fac=function(e){return new(e||t)(p.Y36(g.so),p.Y36(g.WI),p.Y36(c.IQ),p.Y36(d.V6),p.Y36(Z.sK))},t.\u0275cmp=p.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div"),p.YNc(4,Ze,1,0,"mat-spinner",1),p.YNc(5,Le,13,9,"div",2),p.TgZ(6,"div",3),p.TgZ(7,"button",4),p.NdJ("click",function(){return e.onCancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return e.onConfirm()}),p._uU(11),p.ALo(12,"translate"),p.qZA(),p.qZA(),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,9,"DIALOGS.REMOVE_HOST.TITLE")),p.xp6(2),p.Tol(e.theme),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.REMOVE_HOST.CANCEL")," "),p.xp6(2),p.Q6J("disabled",e.loading),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.REMOVE_HOST.CONFIRM")," "))},directives:[g.uh,s.O5,g.H8,E.lW,I.$g,g.xY,ae.BZ,ae.w1,ae.fO,ae.Dz,ae.as,ae.nj,ae.ge,ae.ev,ae.XQ,ae.Gk],pipes:[Z.X$],styles:[""]}),t})();var Oe=i(58623),Ne=i(82819);function Re(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"th",14),p.TgZ(1,"mat-checkbox",15),p.NdJ("change",function(e){p.CHM(t);const i=p.oxw();return e?i.masterToggle():null}),p.qZA(),p.qZA()}if(2&t){const t=p.oxw();p.xp6(1),p.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function De(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"td",16),p.TgZ(1,"mat-checkbox",17),p.NdJ("change",function(e){const i=p.CHM(t).$implicit,s=p.oxw();return e?s.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),p.qZA(),p.qZA()}if(2&t){const t=e.$implicit,i=p.oxw();p.xp6(1),p.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function we(t,e){1&t&&(p.TgZ(0,"th",18),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.TABLE_HOST_ID")," "))}function ke(t,e){if(1&t&&(p.TgZ(0,"td",19),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.id)}}function Fe(t,e){1&t&&(p.TgZ(0,"th",18),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.TABLE_HOST_NAME")," "))}function Ye(t,e){if(1&t&&(p.TgZ(0,"td",20),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.hostname)}}function Ue(t,e){1&t&&p._UZ(0,"tr",21)}const Me=function(t,e){return["/facilities",t,"hosts",e]};function qe(t,e){if(1&t&&p._UZ(0,"tr",22),2&t){const t=e.$implicit,i=p.oxw();p.Q6J("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:p.WLB(2,Me,i.facilityId,t.id))("routerLink",i.disableRouting?null:p.WLB(5,Me,i.facilityId,t.id))}}function Je(t,e){1&t&&(p.TgZ(0,"app-alert",23),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Qe(t,e){1&t&&(p.TgZ(0,"app-alert",23),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.NO_HOST_WARNING"),"\n"))}let Ve=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.hosts=[],this.selection=new _t.Ov(!0,[]),this.disableRouting=!1,this.displayedColumns=["select","id","name"],this.pageSizeOptions=r.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new ae.by(this.hosts),this.setDataSource(),this.dataSource.filter=this.filterValue}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return t.hostname;default:return""}}exportData(t){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(t,e)=>(0,r.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,r.pR)(t,e,this.getDataForColumn,this),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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(d.x4),p.Y36(d.UA))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-hosts-list"]],viewQuery:function(t,e){if(1&t&&(p.Gf(Oe.YE,7),p.Gf(r.l9,7)),2&t){let t;p.iGM(t=p.CRH())&&(e.matSort=t.first),p.iGM(t=p.CRH())&&(e.child=t.first)}},inputs:{hosts:"hosts",selection:"selection",filterValue:"filterValue",tableId:"tableId",facilityId:"facilityId",disableRouting:"disableRouting",displayedColumns:"displayedColumns"},features:[p.TTD],decls:16,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"],["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(t,e){1&t&&(p.TgZ(0,"div",0),p.TgZ(1,"perun-web-apps-table-wrapper",1),p.NdJ("exportData",function(t){return e.exportData(t)}),p.TgZ(2,"table",2),p.ynx(3,3),p.YNc(4,Re,2,3,"th",4),p.YNc(5,De,2,2,"td",5),p.BQk(),p.ynx(6,6),p.YNc(7,we,3,3,"th",7),p.YNc(8,ke,2,1,"td",8),p.BQk(),p.ynx(9,9),p.YNc(10,Fe,3,3,"th",7),p.YNc(11,Ye,2,1,"td",10),p.BQk(),p.YNc(12,Ue,1,0,"tr",11),p.YNc(13,qe,1,8,"tr",12),p.qZA(),p.qZA(),p.qZA(),p.YNc(14,Je,3,3,"app-alert",13),p.YNc(15,Qe,3,3,"app-alert",13)),2&t&&(p.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.hosts.length),p.xp6(1),p.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),p.xp6(1),p.Q6J("dataSource",e.dataSource),p.xp6(10),p.Q6J("matHeaderRowDef",e.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",e.displayedColumns),p.xp6(1),p.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.hosts.length),p.xp6(1),p.Q6J("ngIf",0===e.hosts.length))},directives:[Ne.l,ae.BZ,Oe.YE,ae.w1,ae.fO,ae.Dz,ae.as,ae.nj,s.O5,ae.ge,lt.oG,ae.ev,Oe.nU,ae.XQ,ae.Gk,Ae.YH,a.rH,Ht.w],pipes:[Z.X$],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();function He(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",7),p.NdJ("click",function(){return p.CHM(t),p.oxw().addHost()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"FACILITY_DETAIL.HOSTS.ADD")," "))}function Pe(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",8),p.NdJ("click",function(){return p.CHM(t),p.oxw().removeHost()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",0===t.selected.selected.length),p.xp6(1),p.hij(" ",p.lcZ(2,2,"FACILITY_DETAIL.HOSTS.REMOVE")," ")}}function Ge(t,e){1&t&&p._UZ(0,"mat-spinner",9)}function Be(t,e){if(1&t&&p._UZ(0,"app-hosts-list",10),2&t){const t=p.oxw();p.Q6J("tableId",t.tableId)("filterValue",t.filterValue)("hosts",t.hosts)("selection",t.selected)("displayedColumns",t.displayedColumns)("disableRouting",!t.routeAuth||t.disableRouting)("facilityId",t.facility.id)}}let je=(()=>{class t{constructor(t,e,i,s){this.dialog=t,this.facilitiesManager=e,this.authResolver=i,this.entityStorageService=s,this.disableRouting=!1,this.hosts=[],this.selected=new _t.Ov(!0,[]),this.filterValue="",this.tableId=vt.eq,this.displayedColumns=["id","name"],this.hostEmitter=new p.vpe}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.facilitiesManager.getFacilityById(this.facility.id).subscribe(t=>{this.facility=t,this.refreshTable()})}refreshTable(){this.loading=!0,this.facilitiesManager.getHosts(this.facility.id).subscribe(t=>{this.hosts=t,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 t=(0,r.kZ)();t.width="600px",t.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open(Ee,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}removeHost(){const t=(0,r.kZ)();t.width="600px",t.data={facilityId:this.facility.id,theme:"facility-theme",hosts:this.selected.selected},this.dialog.open(xe,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.uw),p.Y36(c.IQ),p.Y36(d.x4),p.Y36(d.fb))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-hosts"]],inputs:{disableRouting:"disableRouting"},outputs:{hostEmitter:"hostEmitter"},decls:10,vars:8,consts:[[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,"tableId","filterValue","hosts","selection","displayedColumns","disableRouting","facilityId",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,"tableId","filterValue","hosts","selection","displayedColumns","disableRouting","facilityId"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"perun-web-apps-refresh-button",1),p.NdJ("refresh",function(){return e.refreshTable()}),p.qZA(),p.YNc(5,He,3,3,"button",2),p.YNc(6,Pe,3,4,"button",3),p.TgZ(7,"perun-web-apps-immediate-filter",4),p.NdJ("filter",function(t){return e.applyFilter(t)}),p.qZA(),p.YNc(8,Ge,1,0,"mat-spinner",5),p.YNc(9,Be,1,7,"app-hosts-list",6),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,6,"FACILITY_DETAIL.HOSTS.TITLE")),p.xp6(3),p.Q6J("ngIf",e.addAuth),p.xp6(1),p.Q6J("ngIf",e.removeAuth),p.xp6(1),p.Q6J("placeholder","FACILITY_DETAIL.HOSTS.FILTER"),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[Qt.t,s.O5,Vt.L,E.lW,I.$g,Ve],pipes:[Z.X$],styles:[""]}),t})();function $e(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"th",15),p.TgZ(1,"mat-checkbox",16),p.NdJ("change",function(e){p.CHM(t);const i=p.oxw();return e?i.masterToggle():null}),p.qZA(),p.qZA()}if(2&t){const t=p.oxw();p.xp6(1),p.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function ze(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"td",17),p.TgZ(1,"mat-checkbox",18),p.NdJ("change",function(e){const i=p.CHM(t).$implicit,s=p.oxw();return e?s.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),p.qZA(),p.qZA()}if(2&t){const t=e.$implicit,i=p.oxw();p.xp6(1),p.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function Xe(t,e){1&t&&(p.TgZ(0,"th",19),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.USER_ID")," "))}function We(t,e){if(1&t&&(p.TgZ(0,"td",20),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.hij(" ",t[1].id," ")}}function Ke(t,e){1&t&&(p.TgZ(0,"th",19),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NAME")," "))}function ti(t,e){if(1&t&&(p.TgZ(0,"td",21),p._uU(1),p.ALo(2,"userFullName"),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.hij(" ",p.lcZ(2,1,t[1])," ")}}function ei(t,e){1&t&&(p.TgZ(0,"th",19),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.REASON")," "))}function ii(t,e){if(1&t&&(p.TgZ(0,"td",21),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.hij(" ",t[0].description," ")}}function si(t,e){1&t&&p._UZ(0,"tr",22)}function ai(t,e){1&t&&p._UZ(0,"tr",23)}function ni(t,e){1&t&&(p.TgZ(0,"app-alert",24),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function li(t,e){1&t&&(p.TgZ(0,"app-alert",24),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NO_BANS_WARNING"),"\n"))}let oi=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.bansOnFacilitiesWithUsers=[],this.selection=new _t.Ov(!0,[]),this.displayedColumns=["select","userId","name","reason"],this.pageSizeOptions=r.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"userId"!==t)),this.dataSource=new ae.by(this.bansOnFacilitiesWithUsers),this.setDataSource(),this.dataSource.filter=this.filterValue}getDataForColumn(t,e){switch(e){case"userId":return t[1].id.toString();case"reason":return t[0].description;case"name":return(0,r.hu)(t[1]);default:return""}}exportData(t){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>(0,r.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,r.pR)(t,e,this.getDataForColumn,this),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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t[0].userId+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(d.x4),p.Y36(d.UA))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-perun-web-apps-blacklist-list"]],viewQuery:function(t,e){if(1&t&&(p.Gf(Oe.YE,7),p.Gf(r.l9,7)),2&t){let t;p.iGM(t=p.CRH())&&(e.matSort=t.first),p.iGM(t=p.CRH())&&(e.child=t.first)}},inputs:{bansOnFacilitiesWithUsers:"bansOnFacilitiesWithUsers",selection:"selection",filterValue:"filterValue",tableId:"tableId"},features:[p.TTD],decls:19,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"],["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(t,e){1&t&&(p.TgZ(0,"div",0),p.TgZ(1,"perun-web-apps-table-wrapper",1),p.NdJ("exportData",function(t){return e.exportData(t)}),p.TgZ(2,"table",2),p.ynx(3,3),p.YNc(4,$e,2,3,"th",4),p.YNc(5,ze,2,2,"td",5),p.BQk(),p.ynx(6,6),p.YNc(7,Xe,3,3,"th",7),p.YNc(8,We,2,1,"td",8),p.BQk(),p.ynx(9,9),p.YNc(10,Ke,3,3,"th",7),p.YNc(11,ti,3,3,"td",10),p.BQk(),p.ynx(12,11),p.YNc(13,ei,3,3,"th",7),p.YNc(14,ii,2,1,"td",10),p.BQk(),p.YNc(15,si,1,0,"tr",12),p.YNc(16,ai,1,0,"tr",13),p.qZA(),p.qZA(),p.qZA(),p.YNc(17,ni,3,3,"app-alert",14),p.YNc(18,li,3,3,"app-alert",14)),2&t&&(p.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.bansOnFacilitiesWithUsers.length),p.xp6(1),p.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),p.xp6(1),p.Q6J("dataSource",e.dataSource),p.xp6(13),p.Q6J("matHeaderRowDef",e.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",e.displayedColumns),p.xp6(1),p.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.bansOnFacilitiesWithUsers.length),p.xp6(1),p.Q6J("ngIf",0===e.bansOnFacilitiesWithUsers.length))},directives:[Ne.l,ae.BZ,Oe.YE,ae.w1,ae.fO,ae.Dz,ae.as,ae.nj,s.O5,ae.ge,lt.oG,ae.ev,Oe.nU,ae.XQ,ae.Gk,Ht.w],pipes:[Z.X$,ut.d],styles:[""]}),t})();function ci(t,e){1&t&&p._UZ(0,"mat-spinner",5)}function ri(t,e){if(1&t&&p._UZ(0,"app-perun-web-apps-blacklist-list",6),2&t){const t=p.oxw();p.Q6J("tableId",t.tableId)("filterValue",t.filterValue)("bansOnFacilitiesWithUsers",t.bansOnFacilitiesWithUsers)("selection",t.selected)}}let di=(()=>{class t{constructor(t,e,i){this.facilitiesManager=t,this.usersManager=e,this.entityStorageService=i,this.bansOnFacilitiesWithUsers=[],this.selected=new _t.Ov(!0,[]),this.filterValue="",this.tableId=vt.NG}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.facilitiesManager.getBansForFacility(this.facility.id).subscribe(t=>{const e=t;for(const i of e){let t;this.usersManager.getUserById(i.userId).subscribe(e=>{t=e}),this.bansOnFacilitiesWithUsers.push([i,t])}this.selected.clear(),this.loading=!1})}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(c.IQ),p.Y36(c.Fv),p.Y36(d.fb))},t.\u0275cmp=p.Xpm({type:t,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,"tableId","filterValue","bansOnFacilitiesWithUsers","selection",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","bansOnFacilitiesWithUsers","selection"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"perun-web-apps-refresh-button",1),p.NdJ("refresh",function(){return e.refreshTable()}),p.qZA(),p.TgZ(5,"perun-web-apps-immediate-filter",2),p.NdJ("filter",function(t){return e.applyFilter(t)}),p.ALo(6,"translate"),p.qZA(),p.YNc(7,ci,1,0,"mat-spinner",3),p.YNc(8,ri,1,4,"app-perun-web-apps-blacklist-list",4),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,4,"FACILITY_DETAIL.SETTINGS.BLACKLIST.TITLE")),p.xp6(3),p.Q6J("placeholder",p.lcZ(6,6,"FACILITY_DETAIL.SETTINGS.BLACKLIST.FILTER")),p.xp6(2),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[Qt.t,Vt.L,s.O5,I.$g,oi],pipes:[Z.X$],styles:[""]}),t})();var ui=i(41939),hi=i(13572),pi=i(40695),gi=i(41186);const fi=["list"];function mi(t,e){1&t&&p._UZ(0,"mat-spinner",7)}function Ai(t,e){if(1&t&&p._UZ(0,"perun-web-apps-attributes-list",8,9),2&t){const t=p.oxw();p.Q6J("tableId",t.tableId)("attributes",t.attributes)("selection",t.selected)}}let Ii=(()=>{class t{constructor(t,e,i,s){this.dialog=t,this.attributesManager=e,this.facilityManager=i,this.route=s,this.attributes=[],this.selected=new _t.Ov(!0,[]),this.host={beanName:"",id:0},this.tableId=vt.rF}ngOnInit(){this.route.params.subscribe(t=>{this.hostId=t.hostId,this.facilityManager.getHostById(this.hostId).subscribe(t=>{this.host=t}),this.refreshTable()})}refreshTable(){this.loading=!0,this.attributesManager.getHostAttributes(this.hostId).subscribe(t=>{this.attributes=(0,r.MX)(t),this.selected.clear(),this.loading=!1})}onSave(){this.list.updateMapAttributes();const t=(0,r.kZ)();t.width="450px",t.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected},this.dialog.open(u.wA,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}addAttribute(){const t=(0,r.kZ)();t.width="1050px",t.data={entityId:this.hostId,entity:"host",notEmptyAttributes:this.attributes,style:"facility-theme"},this.dialog.open(pi.n,t).afterClosed().subscribe(t=>{"saved"===t&&this.refreshTable()})}removeAttribute(){const t=(0,r.kZ)();t.width="450px",t.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected,theme:"facility-theme"},this.dialog.open(hi.k,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.uw),p.Y36(c.H8),p.Y36(c.IQ),p.Y36(a.gz))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-hosts-detail"]],viewQuery:function(t,e){if(1&t&&p.Gf(fi,5),2&t){let t;p.iGM(t=p.CRH())&&(e.list=t.first)}},decls:16,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","attributes","selection",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"tableId","attributes","selection"],["list",""]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"perun-web-apps-refresh-button",1),p.NdJ("refresh",function(){return e.refreshTable()}),p.qZA(),p.TgZ(5,"button",2),p.NdJ("click",function(){return e.addAttribute()}),p._uU(6),p.ALo(7,"translate"),p.qZA(),p.TgZ(8,"button",3),p.NdJ("click",function(){return e.onSave()}),p._uU(9),p.ALo(10,"translate"),p.qZA(),p.TgZ(11,"button",4),p.NdJ("click",function(){return e.removeAttribute()}),p._uU(12),p.ALo(13,"translate"),p.qZA(),p.YNc(14,mi,1,0,"mat-spinner",5),p.YNc(15,Ai,2,3,"perun-web-apps-attributes-list",6),p.qZA()),2&t&&(p.xp6(2),p.AsE(" ",p.lcZ(3,9,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.TITLE")," ",e.host.hostname," "),p.xp6(4),p.hij(" ",p.lcZ(7,11,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.ADD")," "),p.xp6(2),p.Q6J("disabled",0===e.selected.selected.length),p.xp6(1),p.hij(" ",p.lcZ(10,13,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.SAVE")," "),p.xp6(2),p.Q6J("disabled",0===e.selected.selected.length),p.xp6(1),p.hij(" ",p.lcZ(13,15,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.REMOVE")," "),p.xp6(2),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[Qt.t,E.lW,s.O5,I.$g,gi.p],pipes:[Z.X$],styles:[""]}),t})();function Si(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"th",15),p.TgZ(1,"mat-checkbox",16),p.NdJ("change",function(e){p.CHM(t);const i=p.oxw();return e?i.masterToggle():null}),p.qZA(),p.qZA()}if(2&t){const t=p.oxw();p.xp6(1),p.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function Ti(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"td",17),p.TgZ(1,"mat-checkbox",18),p.NdJ("change",function(e){const i=p.CHM(t).$implicit,s=p.oxw();return e?s.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),p.qZA(),p.qZA()}if(2&t){const t=e.$implicit,i=p.oxw();p.xp6(1),p.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function bi(t,e){1&t&&(p.TgZ(0,"th",19),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.ID")," "))}function Ei(t,e){if(1&t&&(p.TgZ(0,"td",20),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.hij(" ",t.id," ")}}function Zi(t,e){1&t&&(p.TgZ(0,"th",19),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NAME")," "))}function Ci(t,e){if(1&t&&(p.TgZ(0,"td",21),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.name)}}function vi(t,e){1&t&&(p.TgZ(0,"th",19),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.DESCRIPTION")," "))}function _i(t,e){if(1&t&&(p.TgZ(0,"td",21),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.description)}}function yi(t,e){1&t&&p._UZ(0,"tr",22)}function Li(t,e){1&t&&p._UZ(0,"tr",23)}function xi(t,e){1&t&&(p.TgZ(0,"app-alert",24),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Oi(t,e){1&t&&(p.TgZ(0,"app-alert",24),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NO_SECURITY_TEAMS_WARNING"),"\n"))}let Ni=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.securityTeams=[],this.selection=new _t.Ov(!0,[]),this.displayedColumns=["select","id","name","description"],this.pageSizeOptions=r.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new ae.by(this.securityTeams),this.setDataSource(),this.dataSource.filter=this.filterValue}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return t.name;case"description":return t.description;default:return""}}exportData(t){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>(0,r.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,r.pR)(t,e,this.getDataForColumn,this),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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(d.x4),p.Y36(d.UA))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-security-teams-list"]],viewQuery:function(t,e){if(1&t&&(p.Gf(Oe.YE,7),p.Gf(r.l9,7)),2&t){let t;p.iGM(t=p.CRH())&&(e.matSort=t.first),p.iGM(t=p.CRH())&&(e.child=t.first)}},inputs:{securityTeams:"securityTeams",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns"},features:[p.TTD],decls:19,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"],["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(t,e){1&t&&(p.TgZ(0,"div",0),p.TgZ(1,"perun-web-apps-table-wrapper",1),p.NdJ("exportData",function(t){return e.exportData(t)}),p.TgZ(2,"table",2),p.ynx(3,3),p.YNc(4,Si,2,3,"th",4),p.YNc(5,Ti,2,2,"td",5),p.BQk(),p.ynx(6,6),p.YNc(7,bi,3,3,"th",7),p.YNc(8,Ei,2,1,"td",8),p.BQk(),p.ynx(9,9),p.YNc(10,Zi,3,3,"th",7),p.YNc(11,Ci,2,1,"td",10),p.BQk(),p.ynx(12,11),p.YNc(13,vi,3,3,"th",7),p.YNc(14,_i,2,1,"td",10),p.BQk(),p.YNc(15,yi,1,0,"tr",12),p.YNc(16,Li,1,0,"tr",13),p.qZA(),p.qZA(),p.qZA(),p.YNc(17,xi,3,3,"app-alert",14),p.YNc(18,Oi,3,3,"app-alert",14)),2&t&&(p.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.securityTeams.length),p.xp6(1),p.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),p.xp6(1),p.Q6J("dataSource",e.dataSource),p.xp6(13),p.Q6J("matHeaderRowDef",e.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",e.displayedColumns),p.xp6(1),p.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.securityTeams.length),p.xp6(1),p.Q6J("ngIf",0===e.securityTeams.length))},directives:[Ne.l,ae.BZ,Oe.YE,ae.w1,ae.fO,ae.Dz,ae.as,ae.nj,s.O5,ae.ge,lt.oG,ae.ev,Oe.nU,ae.XQ,ae.Gk,Ht.w],pipes:[Z.X$],styles:[""]}),t})();function Ri(t,e){1&t&&p._UZ(0,"mat-spinner",5)}function Di(t,e){if(1&t&&p._UZ(0,"app-security-teams-list",6),2&t){const t=p.oxw();p.Q6J("tableId",t.tableId)("filterValue",t.filterValue)("securityTeams",t.securityTeams)("displayedColumns",t.displayedColumns)("selection",t.selected)}}let wi=(()=>{class t{constructor(t,e,i,s){this.dialog=t,this.facilitiesManager=e,this.authResolver=i,this.entityStorageService=s,this.securityTeams=[],this.selected=new _t.Ov(!0,[]),this.filterValue="",this.tableId=vt.O9,this.displayedColumns=[]}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.facilitiesManager.getAssignedSecurityTeams(this.facility.id).subscribe(t=>{this.securityTeams=t,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(t){this.filterValue=t}addSecurityTeam(){}removeSecurityTeam(){}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.uw),p.Y36(c.IQ),p.Y36(d.x4),p.Y36(d.fb))},t.\u0275cmp=p.Xpm({type:t,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,"tableId","filterValue","securityTeams","displayedColumns","selection",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","securityTeams","displayedColumns","selection"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"perun-web-apps-refresh-button",1),p.NdJ("refresh",function(){return e.refreshTable()}),p.qZA(),p.TgZ(5,"perun-web-apps-immediate-filter",2),p.NdJ("filter",function(t){return e.applyFilter(t)}),p.qZA(),p.YNc(6,Ri,1,0,"mat-spinner",3),p.YNc(7,Di,1,5,"app-security-teams-list",4),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,4,"FACILITY_DETAIL.SECURITY_TEAMS.TITLE")),p.xp6(3),p.Q6J("placeholder","FACILITY_DETAIL.SECURITY_TEAMS.FILTER"),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[Qt.t,Vt.L,s.O5,I.$g,Ni],pipes:[Z.X$],styles:[""]}),t})();var ki=i(64359),Fi=i(75374);function Yi(t,e){1&t&&p._UZ(0,"mat-spinner",6)}function Ui(t,e){1&t&&(p.TgZ(0,"th",17),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.RESULT_ID")," "))}function Mi(t,e){if(1&t&&(p.TgZ(0,"td",18),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.id)}}function qi(t,e){1&t&&(p.TgZ(0,"th",17),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.DESTINATION")," "))}function Ji(t,e){if(1&t&&(p.TgZ(0,"td",18),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.destination.destination)}}function Qi(t,e){1&t&&(p.TgZ(0,"th",17),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.TIME")))}function Vi(t,e){if(1&t&&(p.TgZ(0,"td",18),p._uU(1),p.ALo(2,"date"),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.hij(" ",p.xi3(2,1,t.timestamp,"d.M.y H:mm:ss")," ")}}function Hi(t,e){1&t&&p._UZ(0,"tr",19)}function Pi(t,e){1&t&&p._UZ(0,"tr",20)}function Gi(t,e){if(1&t&&(p.TgZ(0,"div",7),p.TgZ(1,"p"),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"div",8),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.TgZ(7,"table",9),p.ynx(8,10),p.YNc(9,Ui,3,3,"th",11),p.YNc(10,Mi,2,1,"td",12),p.BQk(),p.ynx(11,13),p.YNc(12,qi,3,3,"th",11),p.YNc(13,Ji,2,1,"td",12),p.BQk(),p.ynx(14,14),p.YNc(15,Qi,3,3,"th",11),p.YNc(16,Vi,3,4,"td",12),p.BQk(),p.YNc(17,Hi,1,0,"tr",15),p.YNc(18,Pi,1,0,"tr",16),p.qZA(),p.qZA()),2&t){const t=p.oxw();p.xp6(2),p.Oqu(p.lcZ(3,5,"DIALOGS.DELETE_TASK_RESULT.DESCRIPTION")),p.xp6(3),p.hij(" ",p.lcZ(6,7,"DIALOGS.DELETE_TASK_RESULT.ASK")," "),p.xp6(2),p.Q6J("dataSource",t.dataSource),p.xp6(10),p.Q6J("matHeaderRowDef",t.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",t.displayedColumns)}}let Bi=(()=>{class t{constructor(t,e,i,s,a){this.dialogRef=t,this.data=e,this.taskManager=i,this.notificator=s,this.translate=a,this.loading=!1,this.dataSource=new ae.by(this.data.taskResults),this.displayedColumns=["id","destination","time"]}ngOnInit(){this.theme=this.data.theme,this.taskResults=this.data.taskResults}deleteResults(){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.deleteResults()},()=>this.loading=!1)}onDelete(){this.deleteResults()}onCancel(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.so),p.Y36(g.WI),p.Y36(c.Ob),p.Y36(d.V6),p.Y36(Z.sK))},t.\u0275cmp=p.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div"),p.YNc(4,Yi,1,0,"mat-spinner",1),p.YNc(5,Gi,19,9,"div",2),p.TgZ(6,"div",3),p.TgZ(7,"button",4),p.NdJ("click",function(){return e.onCancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return e.onDelete()}),p._uU(11),p.ALo(12,"translate"),p.qZA(),p.qZA(),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,9,"DIALOGS.DELETE_TASK_RESULT.TITLE")),p.xp6(2),p.Tol(e.theme),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.DELETE_TASK_RESULT.CANCEL")," "),p.xp6(2),p.Q6J("disabled",e.loading),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.DELETE_TASK_RESULT.REMOVE")," "))},directives:[g.uh,s.O5,g.H8,E.lW,I.$g,g.xY,ae.BZ,ae.w1,ae.fO,ae.Dz,ae.as,ae.nj,ae.ge,ae.ev,ae.XQ,ae.Gk],pipes:[Z.X$,s.uU],styles:[""]}),t})();var ji=i(88884);function $i(t,e){1&t&&p._UZ(0,"mat-spinner",6)}function zi(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-checkbox",13),p.NdJ("change",function(e){return p.CHM(t),p.oxw(2).change(e)}),p.ALo(1,"translate"),p._uU(2),p.ALo(3,"translate"),p.qZA()}if(2&t){const t=p.oxw(2);p.s9C("matTooltip",p.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),p.Q6J("matTooltipDisabled",!t.checkboxesDisabled)("disabled",t.checkboxesDisabled)("checked",t.taskChecked),p.xp6(2),p.hij(" ",p.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_AND_TASK_RESULTS")," ")}}function Xi(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-checkbox",14),p.NdJ("change",function(e){return p.CHM(t),p.oxw(2).change(e)}),p.ALo(1,"translate"),p._uU(2),p.ALo(3,"translate"),p.qZA()}if(2&t){const t=p.oxw(2);p.s9C("matTooltip",p.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),p.Q6J("matTooltipDisabled",!t.checkboxesDisabled)("disabled",t.checkboxesDisabled)("checked",t.taskResultsChecked),p.xp6(2),p.hij(" ",p.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_RESULTS")," ")}}function Wi(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"perun-web-apps-resources-list",15),p.NdJ("allSelected",function(e){return p.CHM(t),p.oxw(2).disableCheckboxes(e)}),p.qZA()}if(2&t){const t=p.oxw(2);p.Q6J("tableId",t.tableId)("disableRouting",!0)("resources",t.resources)("selection",t.selected)("displayedColumns",t.displayedColumns)}}function Ki(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div",7),p.TgZ(1,"p"),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"div"),p.YNc(5,zi,4,9,"mat-checkbox",8),p.YNc(6,Xi,4,9,"mat-checkbox",9),p.TgZ(7,"mat-checkbox",10),p.NdJ("change",function(e){return p.CHM(t),p.oxw().change(e)}),p.ALo(8,"translate"),p._uU(9),p.ALo(10,"translate"),p.qZA(),p.qZA(),p.TgZ(11,"p"),p._uU(12),p.ALo(13,"translate"),p.qZA(),p.TgZ(14,"div",11),p._uU(15),p.ALo(16,"translate"),p.qZA(),p.YNc(17,Wi,1,5,"perun-web-apps-resources-list",12),p.qZA()}if(2&t){const t=p.oxw();p.xp6(2),p.Oqu(p.lcZ(3,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DESCRIPTION")),p.xp6(3),p.Q6J("ngIf",null!==t.taskId),p.xp6(1),p.Q6J("ngIf",null!==t.taskId),p.xp6(1),p.s9C("matTooltip",p.lcZ(8,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),p.Q6J("matTooltipDisabled",!t.checkboxesDisabled)("disabled",t.checkboxesDisabled)("checked",t.destinationChecked),p.xp6(2),p.hij(" ",p.lcZ(10,15,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_DESTINATION")," "),p.xp6(3),p.Oqu(p.lcZ(13,17,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.DESCRIPTION")),p.xp6(3),p.hij(" ",p.lcZ(16,19,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.ASK")," "),p.xp6(2),p.Q6J("ngIf",!t.loading)}}let ts=(()=>{class t{constructor(t,e,i,s,a,n,l,o){this.dialogRef=t,this.data=e,this.resourcesManager=i,this.tasksManager=s,this.serviceManager=a,this.translate=n,this.notificator=l,this.cd=o,this.loading=!1,this.dataSource=new ae.by(this.data.resource),this.selected=new _t.Ov(!0,[...this.dataSource.data]),this.resources=[],this.displayedColumns=["select","id","vo","name"],this.checkboxesDisabled=!1,this.taskChecked=!0,this.taskResultsChecked=!0,this.destinationChecked=!0,this.tableId=vt.$V}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(t=>{t.forEach(t=>{this.tasksManager.deleteTaskResultById({taskResultId:t.id}).subscribe()})}),this.taskChecked&&null!==this.taskId&&this.tasksManager.deleteTask({task:this.taskId}).subscribe(),this.destinationChecked&&this.serviceManager.getDestinations(this.serviceId,this.facilityId).subscribe(t=>{t.forEach(t=>{this.serviceManager.removeDestination(this.serviceId,this.facilityId,t.destination,t.type).subscribe()})}),this.selected.selected.forEach(t=>{this.resourcesManager.removeService(t.id,this.serviceId).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_SERVICE_FROM_FACILITY.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)})}cancel(){this.dialogRef.close(!1)}disableCheckboxes(t){t&&this.checkboxesDisabled&&this.changeCheckboxes(!0),t||this.checkboxesDisabled||this.changeCheckboxes(!1)}changeCheckboxes(t){this.checkboxesDisabled=!t,this.taskChecked=t,this.taskResultsChecked=t,this.destinationChecked=t,this.cd.detectChanges()}change(t){switch(t.source.id){case"task":this.taskChecked=t.checked;break;case"taskResults":this.taskResultsChecked=t.checked;break;case"destination":this.destinationChecked=t.checked}}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.so),p.Y36(g.WI),p.Y36(c.xk),p.Y36(c.Ob),p.Y36(c.KK),p.Y36(Z.sK),p.Y36(d.V6),p.Y36(p.sBO))},t.\u0275cmp=p.Xpm({type:t,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["id","task","class","right-space","color","warn",3,"matTooltip","matTooltipDisabled","disabled","checked","change",4,"ngIf"],["id","taskResults","class","right-space","color","warn",3,"matTooltip","matTooltipDisabled","disabled","checked","change",4,"ngIf"],["id","destination","color","warn",3,"matTooltip","matTooltipDisabled","disabled","checked","change"],[1,"font-weight-bold"],[3,"tableId","disableRouting","resources","selection","displayedColumns","allSelected",4,"ngIf"],["id","task","color","warn",1,"right-space",3,"matTooltip","matTooltipDisabled","disabled","checked","change"],["id","taskResults","color","warn",1,"right-space",3,"matTooltip","matTooltipDisabled","disabled","checked","change"],[3,"tableId","disableRouting","resources","selection","displayedColumns","allSelected"]],template:function(t,e){1&t&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div"),p.YNc(4,$i,1,0,"mat-spinner",1),p.YNc(5,Ki,18,21,"div",2),p.TgZ(6,"div",3),p.TgZ(7,"button",4),p.NdJ("click",function(){return e.cancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return e.remove()}),p._uU(11),p.ALo(12,"translate"),p.qZA(),p.qZA(),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,9,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.TITLE")),p.xp6(2),p.Tol(e.theme),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CANCEL")," "),p.xp6(2),p.Q6J("disabled",e.loading||0===e.selected.selected.length),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.REMOVE")," "))},directives:[g.uh,s.O5,g.H8,E.lW,I.$g,g.xY,lt.oG,T.gM,ji.C],pipes:[Z.X$],styles:[".right-space[_ngcontent-%COMP%]{margin-right:40px}"]}),t})();function es(t,e){1&t&&p._UZ(0,"mat-spinner",6)}function is(t,e){1&t&&(p.TgZ(0,"div",7),p.TgZ(1,"div",8),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.qZA()),2&t&&(p.xp6(2),p.hij(" ",p.lcZ(3,1,"DIALOGS.DELETE_TASK.DESCRIPTION")," "))}let ss=(()=>{class t{constructor(t,e,i,s,a){this.dialogRef=t,this.data=e,this.tasksManager=i,this.translate=s,this.notificator=a,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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.so),p.Y36(g.WI),p.Y36(c.Ob),p.Y36(Z.sK),p.Y36(d.V6))},t.\u0275cmp=p.Xpm({type:t,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"]],template:function(t,e){1&t&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div"),p.YNc(4,es,1,0,"mat-spinner",1),p.YNc(5,is,4,3,"div",2),p.TgZ(6,"div",3),p.TgZ(7,"button",4),p.NdJ("click",function(){return e.cancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return e.remove()}),p._uU(11),p.ALo(12,"translate"),p.qZA(),p.qZA(),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,9,"DIALOGS.DELETE_TASK.TITLE")),p.xp6(2),p.Tol(e.theme),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.DELETE_TASK.CANCEL")," "),p.xp6(2),p.Q6J("disabled",e.loading),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.DELETE_TASK.DELETE")," "))},directives:[g.uh,s.O5,g.H8,E.lW,I.$g,g.xY],pipes:[Z.X$],styles:[""]}),t})();var as=i(8055);let ns=(()=>{class t{transform(t){return t.blockedOnFacility?"BLOCKED":t.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=p.Yjl({name:"serviceStateBlockedToString",type:t,pure:!0}),t})();function ls(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"th",18),p.TgZ(1,"mat-checkbox",19),p.NdJ("change",function(e){p.CHM(t);const i=p.oxw();return e&&i.masterToggle(),i.selectionChange.emit()}),p.qZA(),p.qZA()}if(2&t){const t=p.oxw();p.xp6(1),p.Q6J("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())("aria-label",t.checkboxLabel())}}function os(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"td",20),p.TgZ(1,"mat-checkbox",21),p.NdJ("click",function(t){return t.stopPropagation()})("change",function(e){const i=p.CHM(t).$implicit,s=p.oxw();return e&&s.selection.toggle(i),s.selectionChange.emit()}),p.qZA(),p.qZA()}if(2&t){const t=e.$implicit,i=p.oxw();p.xp6(1),p.Q6J("checked",i.selection.isSelected(t))("aria-label",i.checkboxLabel(t))}}function cs(t,e){1&t&&(p.TgZ(0,"th",22),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TASK_ID")," "))}function rs(t,e){if(1&t&&(p.TgZ(0,"div"),p._uU(1),p.qZA()),2&t){const t=p.oxw().$implicit;p.xp6(1),p.Oqu(t.task.id)}}function ds(t,e){1&t&&(p.TgZ(0,"div"),p._uU(1,"0"),p.qZA())}function us(t,e){if(1&t&&(p.TgZ(0,"td",23),p.YNc(1,rs,2,1,"div",24),p.YNc(2,ds,2,0,"div",24),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Q6J("ngIf",t.task),p.xp6(1),p.Q6J("ngIf",!t.task)}}function hs(t,e){1&t&&(p.TgZ(0,"th",22),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.SERVICE_NAME")," "))}function ps(t,e){if(1&t&&(p.TgZ(0,"td",25),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.service.name)}}function gs(t,e){1&t&&(p.TgZ(0,"th",22),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STATUS")," "))}function fs(t,e){if(1&t&&(p.TgZ(0,"td",25),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.status)}}function ms(t,e){1&t&&(p.TgZ(0,"th",22),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.BLOCKED")," "))}function As(t,e){if(1&t&&(p.TgZ(0,"td",25),p._uU(1),p.ALo(2,"serviceStateBlockedToString"),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.hij(" ",p.lcZ(2,1,t)," ")}}function Is(t,e){1&t&&(p.TgZ(0,"th",22),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STARTED")," "))}function Ss(t,e){if(1&t&&(p.TgZ(0,"div"),p._uU(1),p.ALo(2,"date"),p.qZA()),2&t){const t=p.oxw().$implicit;p.xp6(1),p.hij(" ",p.xi3(2,1,t.task.startTime,"d.M.y H:mm:ss")," ")}}function Ts(t,e){1&t&&(p.TgZ(0,"div"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET")," "))}function bs(t,e){if(1&t&&(p.TgZ(0,"td",25),p.YNc(1,Ss,3,4,"div",24),p.YNc(2,Ts,3,3,"div",24),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Q6J("ngIf",t.task&&t.task.startTime),p.xp6(1),p.Q6J("ngIf",!t.task||!t.task.startTime)}}function Es(t,e){1&t&&(p.TgZ(0,"th",22),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.ENDED")," "))}function Zs(t,e){if(1&t&&(p.TgZ(0,"div"),p._uU(1),p.ALo(2,"date"),p.qZA()),2&t){const t=p.oxw().$implicit;p.xp6(1),p.hij(" ",p.xi3(2,1,t.task.endTime,"d.M.y H:mm:ss")," ")}}function Cs(t,e){1&t&&(p.TgZ(0,"div"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET")," "))}function vs(t,e){if(1&t&&(p.TgZ(0,"td",25),p.YNc(1,Zs,3,4,"div",24),p.YNc(2,Cs,3,3,"div",24),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Q6J("ngIf",t.task&&t.task.endTime),p.xp6(1),p.Q6J("ngIf",!t.task||!t.task.endTime)}}function _s(t,e){1&t&&p._UZ(0,"tr",26)}const ys=function(t,e){return["/facilities",t,"services-status",e]};function Ls(t,e){if(1&t&&p._UZ(0,"tr",27),2&t){const t=e.$implicit,i=p.oxw();p.ekj("disable-outline",i.disableRouting||!t.task)("make-yellow","WARNING"===t.status)("make-green","DONE"===t.status)("make-red","GENERROR"===t.status||"SENDERROR"===t.status||"ERROR"===t.status)("cursor-pointer",!i.disableRouting&&null!==t.task),p.Q6J("routerLink",i.disableRouting||null===t.task?null:p.WLB(12,ys,t.facility.id,t.taskId))("perunWebAppsMiddleClickRouterLink",i.disableRouting||null===t.task?null:p.WLB(15,ys,t.facility.id,t.taskId))}}function xs(t,e){1&t&&(p.TgZ(0,"app-alert",28),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Os(t,e){1&t&&(p.TgZ(0,"app-alert",28),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NO_SERVICES_STATUS_WARNING"),"\n"))}let Ns=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.servicesStatus=[],this.displayedColumns=["select","task.id","service.name","status","blocked","task.startTime","task.endTime"],this.selection=new _t.Ov(!0,[]),this.disableRouting=!0,this.selectionChange=new p.vpe,this.pageSizeOptions=r.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"task.id"!==t)),this.dataSource=new ae.by(this.servicesStatus),this.setDataSource(),this.dataSource.filterPredicate=(t,e)=>{const i=e.trim().toLowerCase(),s=t=>{let e="";return Object.values(t).forEach(t=>{"object"!=typeof t?e=e+" "+t:null!==t&&(e=e+" "+s(t))}),e.trim().toLowerCase()};return s(t).includes(i)},this.dataSource.filter=this.filterValue}getDataForColumn(t,e){switch(e){case"task.id":return t.task?t.task.id.toString():t[e];case"service.name":return t.service.name;case"status":return t.status;case"blocked":return t.blockedOnFacility?"BLOCKED":t.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED";case"task.startTime":return t.task&&t.task.startTime?(0,s.p6)(t.task.startTime,"d.M.y H:mm:ss","en"):t[e];case"task.endTime":return t.task&&t.task.endTime?(0,s.p6)(t.task.endTime,"d.M.y H:mm:ss","en"):t[e];default:return t[e]}}getSortDataForColumn(t,e){switch(e){case"task.id":return t.task?t.task.id.toString():t[e];case"service.name":return t.service.name;case"status":return t.status;case"blocked":return t.blockedOnFacility?"BLOCKED":t.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED";case"task.startTime":return t.task&&t.task.startTime?(0,s.p6)(t.task.startTime,"yyyy.MM.dd HH:mm:ss","en"):t[e];case"task.endTime":return t.task&&t.task.endTime?(0,s.p6)(t.task.endTime,"yyyy.MM.dd HH:mm:ss","en"):t[e];default:return t[e]}}exportData(t){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>(0,r.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,r.pR)(t,e,this.getSortDataForColumn,this),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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.service.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(d.x4),p.Y36(d.UA))},t.\u0275cmp=p.Xpm({type:t,selectors:[["perun-web-apps-services-status-list"]],viewQuery:function(t,e){if(1&t&&(p.Gf(Oe.YE,7),p.Gf(r.l9,7)),2&t){let t;p.iGM(t=p.CRH())&&(e.matSort=t.first),p.iGM(t=p.CRH())&&(e.child=t.first)}},inputs:{servicesStatus:"servicesStatus",displayedColumns:"displayedColumns",selection:"selection",filterValue:"filterValue",tableId:"tableId",disableRouting:"disableRouting"},outputs:{selectionChange:"selectionChange"},features:[p.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",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(t,e){1&t&&(p.TgZ(0,"div",0),p.TgZ(1,"perun-web-apps-table-wrapper",1),p.NdJ("exportData",function(t){return e.exportData(t)}),p.TgZ(2,"table",2),p.ynx(3,3),p.YNc(4,ls,2,3,"th",4),p.YNc(5,os,2,2,"td",5),p.BQk(),p.ynx(6,6),p.YNc(7,cs,3,3,"th",7),p.YNc(8,us,3,2,"td",8),p.BQk(),p.ynx(9,9),p.YNc(10,hs,3,3,"th",7),p.YNc(11,ps,2,1,"td",10),p.BQk(),p.ynx(12,11),p.YNc(13,gs,3,3,"th",7),p.YNc(14,fs,2,1,"td",10),p.BQk(),p.ynx(15,12),p.YNc(16,ms,3,3,"th",7),p.YNc(17,As,3,3,"td",10),p.BQk(),p.ynx(18,13),p.YNc(19,Is,3,3,"th",7),p.YNc(20,bs,3,2,"td",10),p.BQk(),p.ynx(21,14),p.YNc(22,Es,3,3,"th",7),p.YNc(23,vs,3,2,"td",10),p.BQk(),p.YNc(24,_s,1,0,"tr",15),p.YNc(25,Ls,1,18,"tr",16),p.qZA(),p.qZA(),p.qZA(),p.YNc(26,xs,3,3,"app-alert",17),p.YNc(27,Os,3,3,"app-alert",17)),2&t&&(p.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.servicesStatus.length),p.xp6(1),p.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),p.xp6(1),p.Q6J("dataSource",e.dataSource),p.xp6(22),p.Q6J("matHeaderRowDef",e.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",e.displayedColumns),p.xp6(1),p.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.servicesStatus.length),p.xp6(1),p.Q6J("ngIf",0===e.servicesStatus.length))},directives:[Ne.l,ae.BZ,Oe.YE,ae.w1,ae.fO,ae.Dz,ae.as,ae.nj,s.O5,ae.ge,lt.oG,ae.ev,Oe.nU,ae.XQ,ae.Gk,a.rH,Ae.YH,Ht.w],pipes:[Z.X$,ns,s.uU],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}"]}),t})();function Rs(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",11),p.NdJ("click",function(){return p.CHM(t),p.oxw().forcePropagation()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",0===t.selected.selected.length),p.xp6(1),p.hij(" ",p.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.FORCE_PROPAGATION")," ")}}function Ds(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",11),p.NdJ("click",function(){return p.CHM(t),p.oxw().allow()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",0===t.selected.selected.length||t.disableAllowButton),p.xp6(1),p.hij(" ",p.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.ALLOW")," ")}}function ws(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",12),p.NdJ("click",function(){return p.CHM(t),p.oxw().block()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",0===t.selected.selected.length||t.disableBlockButton),p.xp6(1),p.hij(" ",p.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.BLOCK")," ")}}function ks(t,e){if(1&t&&(p.TgZ(0,"button",13),p.ALo(1,"translate"),p._uU(2),p.ALo(3,"translate"),p.qZA()),2&t){const t=p.oxw(),e=p.MAs(10);p.s9C("matTooltip",p.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),p.Q6J("matTooltipDisabled",!t.disableRemoveButton)("disabled",t.disableRemoveButton)("matMenuTriggerFor",e),p.xp6(2),p.hij(" ",p.lcZ(3,7,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE")," ")}}function Fs(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",7),p.NdJ("click",function(){return p.CHM(t),p.oxw().removeTaskResults()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_TASK_RESULTS")," "))}function Ys(t,e){1&t&&p._UZ(0,"mat-spinner",14)}function Us(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"perun-web-apps-services-status-list",15),p.NdJ("selectionChange",function(){return p.CHM(t),p.oxw().selectionChanged()}),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("tableId",t.tableId)("filterValue",t.filterValue)("servicesStatus",t.servicesStates)("selection",t.selected)("disableRouting",!t.routeAuth)}}let Ms=(()=>{class t{constructor(t,e,i,s,a,n,l,o,c){this.tasksManager=t,this.servicesManager=e,this.notificator=i,this.translate=s,this.authResolver=a,this.facilityManager=n,this.resourcesManager=l,this.dialog=o,this.entityStorageService=c,this.servicesStates=[],this.selected=new _t.Ov(!0,[]),this.filterValue="",this.tableId=vt.oK,this.disableAllowButton=!0,this.disableBlockButton=!0,this.disableRemoveButton=!0,s.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_FORCE_PROPAGATION").subscribe(t=>this.successFPMessage=t),s.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_ALLOW").subscribe(t=>this.successAllowMessage=t),s.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_BLOCK").subscribe(t=>this.successBlockMessage=t),s.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_DELETE").subscribe(t=>this.successDeleteMessage=t),s.get("FACILITY_DETAIL.SERVICES_STATUS.ALREADY_DELETED").subscribe(t=>this.allreadyDeletedMessage=t)}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}forcePropagation(){for(const t of this.selected.selected)this.servicesManager.forceServicePropagation(t.service.id,t.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successFPMessage)})}allow(){for(const t of this.selected.selected)this.servicesManager.unblockServiceOnFacility(t.service.id,t.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successAllowMessage)})}block(){for(const t of this.selected.selected)this.servicesManager.blockServiceOnFacility(t.service.id,t.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successBlockMessage)})}removeTaskResults(){this.tasksManager.getTaskResultsForGUIByTask(this.selected.selected[0].task.id).subscribe(t=>{const e=(0,r.kZ)();e.width="600px",e.data={theme:"facility-theme",taskResults:t},this.dialog.open(Bi,e)})}removeServiceFromFacility(){this.facilityManager.getAssignedResourcesByAssignedServiceForFacility(this.selected.selected[0].facility.id,this.selected.selected[0].service.id).subscribe(t=>{const e=(0,r.kZ)();e.width="600px",this.taskId=this.taskIsNull?null:this.selected.selected[0].task.id,0===t.length?(e.data={theme:"facility-theme",taskId:this.taskId},this.dialog.open(ss,e).afterClosed().subscribe(t=>{t&&(this.disableRemoveButton=!0,this.refreshTable())})):this.resourcesManager.getRichResourcesByIds(t.map(t=>t.id)).subscribe(t=>{e.data={theme:"facility-theme",taskId:this.taskId,serviceId:this.selected.selected[0].service.id,facilityId:this.selected.selected[0].facility.id,resource:t},this.dialog.open(ts,e).afterClosed().subscribe(t=>{t&&(this.disableRemoveButton=!0,this.refreshTable())})})})}refreshTable(){this.loading=!0,this.tasksManager.getFacilityServicesState(this.facility.id).subscribe(t=>{this.servicesStates=t,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(t){this.filterValue=t}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 t of this.selected.selected)t.blockedOnFacility?this.disableAllowButton=!1:this.disableBlockButton=!1}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(c.Ob),p.Y36(c.KK),p.Y36(d.V6),p.Y36(Z.sK),p.Y36(d.x4),p.Y36(c.IQ),p.Y36(c.xk),p.Y36(g.uw),p.Y36(d.fb))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-service-status"]],decls:18,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2 dropdown-toggle",3,"matTooltip","matTooltipDisabled","disabled","matMenuTriggerFor",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,"tableId","filterValue","servicesStatus","selection","disableRouting","selectionChange",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mr-2","dropdown-toggle",3,"matTooltip","matTooltipDisabled","disabled","matMenuTriggerFor"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","servicesStatus","selection","disableRouting","selectionChange"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"perun-web-apps-refresh-button",1),p.NdJ("refresh",function(){return e.refreshTable()}),p.qZA(),p.YNc(5,Rs,3,4,"button",2),p.YNc(6,Ds,3,4,"button",2),p.YNc(7,ws,3,4,"button",3),p.YNc(8,ks,4,9,"button",4),p.TgZ(9,"mat-menu",null,5),p.YNc(11,Fs,3,3,"button",6),p.TgZ(12,"button",7),p.NdJ("click",function(){return e.removeServiceFromFacility()}),p._uU(13),p.ALo(14,"translate"),p.qZA(),p.qZA(),p.TgZ(15,"perun-web-apps-immediate-filter",8),p.NdJ("filter",function(t){return e.applyFilter(t)}),p.qZA(),p.YNc(16,Ys,1,0,"mat-spinner",9),p.YNc(17,Us,1,5,"perun-web-apps-services-status-list",10),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,10,"FACILITY_DETAIL.SERVICES_STATUS.TITLE")),p.xp6(3),p.Q6J("ngIf",e.propagationAuth),p.xp6(1),p.Q6J("ngIf",e.allowAuth),p.xp6(1),p.Q6J("ngIf",e.blockAuth),p.xp6(1),p.Q6J("ngIf",e.deleteAuth),p.xp6(3),p.Q6J("ngIf",!e.taskIsNull),p.xp6(2),p.hij(" ",p.lcZ(14,12,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_SERVICE_FROM_FACILITY")," "),p.xp6(2),p.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TABLE_SEARCH"),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[Qt.t,s.O5,as.VK,as.OP,Vt.L,E.lW,T.gM,as.p6,I.$g,Ns],pipes:[Z.X$],styles:[""]}),t})();var qs=i(67004),Js=i(91058);let Qs=(()=>{class t{constructor(){this.changeAdvancedFilter=new p.vpe,this.clearFilters=new p.vpe}ngOnInit(){this.changeAdvancedFilter.emit(this.advancedFilter)}toggleAdvancedFilter(){this.advancedFilter=!this.advancedFilter,this.changeAdvancedFilter.emit(this.advancedFilter)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=p.Xpm({type:t,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(t,e){1&t&&(p.TgZ(0,"button",0),p.NdJ("click",function(){return e.toggleAdvancedFilter()}),p.TgZ(1,"mat-icon"),p._uU(2,"filter_list"),p.qZA(),p._uU(3),p.ALo(4,"translate"),p.TgZ(5,"mat-icon"),p._uU(6),p.qZA(),p.qZA(),p.TgZ(7,"button",0),p.NdJ("click",function(){return e.clearFilters.emit()}),p.TgZ(8,"mat-icon"),p._uU(9,"filter_list_off"),p.qZA(),p._uU(10),p.ALo(11,"translate"),p.qZA()),2&t&&(p.Gre("mr-2 ",e.filtersCount?"grey":"no-color",""),p.xp6(3),p.AsE(" ",p.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.FILTERS")," ",e.filtersCount?"("+e.filtersCount+")":null," "),p.xp6(3),p.Oqu(e.advancedFilter?"arrow_drop_up":"arrow_drop_down"),p.xp6(4),p.hij(" ",p.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.CLEAR_FILTERS"),"\n"))},directives:[E.lW,S.Hw],pipes:[Z.X$],styles:[".grey[_ngcontent-%COMP%]{color:#fff;background-color:grey}.no-color[_ngcontent-%COMP%]{color:#000;background-color:transparent}"]}),t})();var Vs=i(27521),Hs=i(19386),Ps=i(42847),Gs=i(44973);let Bs=(()=>{class t{constructor(){this.service=null,this.multiple=!1,this.disableAutoSelect=!1,this.theme="",this.serviceSelected=new p.vpe,this.nameFunction=t=>t.name,this.secondaryFunction=()=>"",this.searchFunction=t=>t.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=p.Xpm({type:t,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&&(p.TgZ(0,"perun-web-apps-entity-search-select",0),p.NdJ("entitySelected",function(t){return e.serviceSelected.emit(t)}),p.ALo(1,"translate"),p.ALo(2,"translate"),p.ALo(3,"translate"),p.qZA()),2&t&&p.Q6J("entity",e.service)("entities",e.services)("multiple",e.multiple)("disableAutoSelect",e.disableAutoSelect)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.secondaryFunction)("selectPlaceholder",p.lcZ(1,11,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.SELECT_SERVICE"))("findPlaceholder",p.lcZ(2,13,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.FIND_SERVICE"))("noEntriesText",p.lcZ(3,15,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.NO_SERVICE_FOUND"))("theme",e.theme)},directives:[Gs.i],pipes:[Z.X$],styles:[""]}),t})();var js=i(16247);function $s(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div",8),p.TgZ(1,"div",9),p.TgZ(2,"mat-slide-toggle",10),p.NdJ("ngModelChange",function(e){return p.CHM(t),p.oxw().allowed=e})("change",function(){return p.CHM(t),p.oxw().changeFilter()}),p._uU(3),p.ALo(4,"translate"),p.qZA(),p.TgZ(5,"span",11),p._uU(6),p.ALo(7,"translate"),p.qZA(),p.qZA(),p.TgZ(8,"div",1),p.TgZ(9,"perun-web-apps-vo-search-select",12),p.NdJ("voSelected",function(e){return p.CHM(t),p.oxw().voSelected(e)}),p.qZA(),p.TgZ(10,"perun-web-apps-resource-search-select",13),p.NdJ("resourceSelected",function(e){return p.CHM(t),p.oxw().resourceSelected(e)}),p.qZA(),p.TgZ(11,"perun-web-apps-service-search-select",14),p.NdJ("serviceSelected",function(e){return p.CHM(t),p.oxw().serviceSelected(e)}),p.qZA(),p.qZA(),p.qZA()}if(2&t){const t=p.oxw();p.xp6(2),p.Q6J("ngModel",t.allowed),p.xp6(1),p.hij(" ",p.lcZ(4,10,"FACILITY_DETAIL.ALLOWED_USERS.FILTER_ALLOWED")," "),p.xp6(3),p.Oqu(p.lcZ(7,12,t.toggle_messages[t.allowed?1:0])),p.xp6(3),p.Q6J("vo",t.selectedVo)("vos",t.vos),p.xp6(1),p.Q6J("displayStatus",!1)("resource",t.selectedResource)("resources",t.filteredResources),p.xp6(1),p.Q6J("service",t.selectedService)("services",t.filteredServices)}}function zs(t,e){1&t&&p._UZ(0,"mat-spinner",15)}const Xs=function(){return["id","name","email","logins","organization"]};function Ws(t,e){if(1&t&&p._UZ(0,"perun-web-apps-users-dynamic-list",16),2&t){const t=p.oxw();p.Q6J("tableId",t.tableId)("searchString",t.filterValue)("displayedColumns",p.DdM(10,Xs))("attrNames",t.attributes)("facilityId",t.facility.id)("voId",-1===t.selectedVo.id?null:t.selectedVo.id)("resourceId",-1===t.selectedResource.id?null:t.selectedResource.id)("serviceId",-1===t.selectedService.id?null:t.selectedService.id)("onlyAllowed",t.allowed)("disableRouting",!t.routeAuth)}}let Ks=(()=>{class t{constructor(t,e,i,s,a,n){this.facilityService=t,this.serviceService=e,this.resourceService=i,this.authResolver=s,this.storeService=a,this.entityStorageService=n,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=vt.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=[qs.r.USER_DEF_ORGANIZATION,qs.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(t=>{this.resources=[this.emptyResource].concat(t),this.filteredResources=this.resources,this.facilityService.getAllowedVos(this.facility.id).subscribe(t=>{this.vos=[this.emptyVo].concat(t),this.services=[],this.getAssignedServices(this.resources,this.resources.length-1)},()=>this.loading=!1)},()=>this.loading=!1)}getAssignedServices(t,e){if(0===e)return this.services=[this.emptyService].concat(this.services),this.filteredServices=this.services,this.changeFilter(),void(this.loading=!1);this.resourceService.getAssignedServicesToResource(t[e].id).subscribe(i=>{this.services=this.services.concat(i),this.resourceAssignedServices[t[e].id]=i.map(t=>t.id),this.getAssignedServices(t,e-1)},()=>this.loading=!1)}getFilteredServices(t){const e=new Set;return t.forEach(t=>{this.resourceAssignedServices[t.id].forEach(t=>e.add(t))}),[this.emptyService].concat(this.services.filter(t=>e.has(t.id)))}applyFilter(t){this.filterValue=t}voSelected(t){this.selectedVo.id!==t.id&&(this.selectedVo=t,this.selectedResource=this.emptyResource,this.selectedService=this.emptyService,-1===t.id?(this.filteredResources=this.resources,this.filteredServices=this.services):(this.filteredResources=this.resources.filter(e=>e.voId===t.id),this.filteredServices=this.getFilteredServices(this.filteredResources),this.filteredResources=[this.emptyResource].concat(this.filteredResources)),this.changeFilter())}resourceSelected(t){this.selectedResource.id!==t.id&&(this.selectedResource=t,this.selectedService=this.emptyService,this.filteredServices=-1===t.id?this.services:this.getFilteredServices([t]),this.changeFilter())}serviceSelected(t){this.selectedService=t,this.changeFilter()}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(c.IQ),p.Y36(c.KK),p.Y36(c.xk),p.Y36(d.x4),p.Y36(d.d6),p.Y36(d.fb))},t.\u0275cmp=p.Xpm({type:t,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,"filtersCount","advancedFilter","changeAdvancedFilter","clearFilters"],["class","advanced-filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","searchString","displayedColumns","attrNames","facilityId","voId","resourceId","serviceId","onlyAllowed","disableRouting",4,"ngIf"],[1,"advanced-filter"],[1,"toggle","filters"],["labelPosition","before",1,"mr-2",3,"ngModel","ngModelChange","change"],[1,"text-muted"],[1,"search-select",3,"vo","vos","voSelected"],[1,"search-select",3,"displayStatus","resource","resources","resourceSelected"],[1,"search-select",3,"service","services","serviceSelected"],[1,"ml-auto","mr-auto"],[3,"tableId","searchString","displayedColumns","attrNames","facilityId","voId","resourceId","serviceId","onlyAllowed","disableRouting"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"div",1),p.TgZ(5,"perun-web-apps-refresh-button",2),p.NdJ("refresh",function(){return e.refreshPage()}),p.qZA(),p.TgZ(6,"perun-web-apps-debounce-filter",3),p.NdJ("filter",function(t){return e.applyFilter(t)}),p.qZA(),p.TgZ(7,"perun-web-apps-advanced-filter",4),p.NdJ("changeAdvancedFilter",function(t){return e.advancedFilter=t})("clearFilters",function(){return e.clearFilters()}),p.qZA(),p.qZA(),p.YNc(8,$s,12,14,"div",5),p.YNc(9,zs,1,0,"mat-spinner",6),p.YNc(10,Ws,1,11,"perun-web-apps-users-dynamic-list",7),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,7,"FACILITY_DETAIL.ALLOWED_USERS.TITLE")),p.xp6(4),p.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_USERS.FILTER"),p.xp6(1),p.Q6J("filtersCount",e.filtersCount)("advancedFilter",e.advancedFilter),p.xp6(1),p.Q6J("ngIf",e.advancedFilter),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[Qt.t,Js.P,Qs,s.O5,Vs.Rr,it.JJ,it.On,Hs.M,Ps.L,Bs,I.$g,js.M],pipes:[Z.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 #d3d3d3;padding:15px}"]}),t})();var ta=i(95142);function ea(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"th",20),p.TgZ(1,"mat-checkbox",21),p.NdJ("change",function(e){p.CHM(t);const i=p.oxw();return e?i.masterToggle():null}),p.qZA(),p.qZA()}if(2&t){const t=p.oxw();p.xp6(1),p.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function ia(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"td",22),p.TgZ(1,"mat-checkbox",23),p.NdJ("change",function(e){const i=p.CHM(t).$implicit,s=p.oxw();return e?s.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),p.qZA(),p.qZA()}if(2&t){const t=e.$implicit,i=p.oxw();p.xp6(1),p.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function sa(t,e){1&t&&(p.TgZ(0,"th",24),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RESULT_ID")," "))}function aa(t,e){if(1&t&&(p.TgZ(0,"td",25),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.id)}}function na(t,e){1&t&&(p.TgZ(0,"th",24),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.DESTINATION")," "))}function la(t,e){if(1&t&&(p.TgZ(0,"td",25),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.hij(" ",t.destination.destination," ")}}function oa(t,e){1&t&&(p.TgZ(0,"th",24),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TYPE")," "))}function ca(t,e){if(1&t&&(p.TgZ(0,"td",25),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.hij(" ",t.destination.type.toUpperCase()," ")}}function ra(t,e){1&t&&(p.TgZ(0,"th",24),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.SERVICE")," "))}function da(t,e){if(1&t&&(p.TgZ(0,"td",25),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.hij(" ",t.service.name," ")}}function ua(t,e){1&t&&(p.TgZ(0,"th",24),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STATUS")," "))}function ha(t,e){if(1&t&&(p.TgZ(0,"td",25),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.hij(" ",t.status," ")}}function pa(t,e){1&t&&(p.TgZ(0,"th",24),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TIME")," "))}function ga(t,e){if(1&t&&(p.TgZ(0,"td",25),p._uU(1),p.ALo(2,"date"),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.hij(" ",p.xi3(2,1,t.timestamp,"d.M.y H:mm:ss")," ")}}function fa(t,e){1&t&&(p.TgZ(0,"th",24),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RETURN_CODE")," "))}function ma(t,e){if(1&t&&(p.TgZ(0,"td",25),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.hij(" ",t.returnCode," ")}}function Aa(t,e){1&t&&(p.TgZ(0,"th",24),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STANDARD_MESSAGE")," "))}function Ia(t,e){if(1&t&&(p.TgZ(0,"span"),p._uU(1),p._UZ(2,"br"),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t)}}function Sa(t,e){if(1&t&&(p.TgZ(0,"td",25),p.YNc(1,Ia,3,1,"span",26),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Q6J("ngForOf",t.standardMessage.split("\n"))}}function Ta(t,e){1&t&&(p.TgZ(0,"th",24),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.ERROR_MESSAGE")," "))}function ba(t,e){if(1&t&&(p.TgZ(0,"td",25),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.hij(" ",t.errorMessage," ")}}function Ea(t,e){1&t&&p._UZ(0,"tr",27)}function Za(t,e){if(1&t&&p._UZ(0,"tr",28),2&t){const t=e.$implicit;p.ekj("greenTableItem","DONE"===t.status)("redTableItem","ERROR"===t.status||"DENIED"===t.status)("yellowTableItem","WARNING"===t.status)}}function Ca(t,e){1&t&&(p.TgZ(0,"app-alert",29),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function va(t,e){1&t&&(p.TgZ(0,"app-alert",29),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.NO_RESULTS_WARNING"),"\n"))}let _a=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.pageSizeOptions=r.f7,this.taskResults=[],this.selection=new _t.Ov(!0,[]),this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"]}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new ae.by(this.taskResults),this.setDataSource(),this.dataSource.filter=this.filterValue}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"destination":return t.destination.destination;case"type":return t.destination.type;case"service":return t.service.name;case"status":return t.status;case"time":return(0,s.p6)(t.timestamp.toString(),"d.M.y H:mm:ss","en");case"returnCode":return t.returnCode.toString();case"standardMessage":return t.standardMessage;case"errorMessage":return t.errorMessage;default:return""}}getSortDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"destination":return t.destination.destination;case"type":return t.destination.type;case"service":return t.service.name;case"status":return t.status;case"time":return(0,s.p6)(t.timestamp.toString(),"yyyy.MM.dd HH:mm:ss","en");case"returnCode":return t.returnCode.toString();case"standardMessage":return t.standardMessage;case"errorMessage":return t.errorMessage;default:return""}}exportData(t){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue,this.dataSource.filterPredicate=(t,e)=>(0,r.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,r.pR)(t,e,this.getSortDataForColumn,this))}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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(d.x4),p.Y36(d.UA))},t.\u0275cmp=p.Xpm({type:t,selectors:[["perun-web-apps-task-results-list"]],viewQuery:function(t,e){if(1&t&&(p.Gf(Oe.YE,7),p.Gf(r.l9,7)),2&t){let t;p.iGM(t=p.CRH())&&(e.matSort=t.first),p.iGM(t=p.CRH())&&(e.child=t.first)}},inputs:{taskResults:"taskResults",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns"},features:[p.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(t,e){1&t&&(p.TgZ(0,"div",0),p.TgZ(1,"perun-web-apps-table-wrapper",1),p.NdJ("exportData",function(t){return e.exportData(t)}),p.TgZ(2,"table",2),p.ynx(3,3),p.YNc(4,ea,2,3,"th",4),p.YNc(5,ia,2,2,"td",5),p.BQk(),p.ynx(6,6),p.YNc(7,sa,3,3,"th",7),p.YNc(8,aa,2,1,"td",8),p.BQk(),p.ynx(9,9),p.YNc(10,na,3,3,"th",7),p.YNc(11,la,2,1,"td",8),p.BQk(),p.ynx(12,10),p.YNc(13,oa,3,3,"th",7),p.YNc(14,ca,2,1,"td",8),p.BQk(),p.ynx(15,11),p.YNc(16,ra,3,3,"th",7),p.YNc(17,da,2,1,"td",8),p.BQk(),p.ynx(18,12),p.YNc(19,ua,3,3,"th",7),p.YNc(20,ha,2,1,"td",8),p.BQk(),p.ynx(21,13),p.YNc(22,pa,3,3,"th",7),p.YNc(23,ga,3,4,"td",8),p.BQk(),p.ynx(24,14),p.YNc(25,fa,3,3,"th",7),p.YNc(26,ma,2,1,"td",8),p.BQk(),p.ynx(27,15),p.YNc(28,Aa,3,3,"th",7),p.YNc(29,Sa,2,1,"td",8),p.BQk(),p.ynx(30,16),p.YNc(31,Ta,3,3,"th",7),p.YNc(32,ba,2,1,"td",8),p.BQk(),p.YNc(33,Ea,1,0,"tr",17),p.YNc(34,Za,1,6,"tr",18),p.qZA(),p.qZA(),p.qZA(),p.YNc(35,Ca,3,3,"app-alert",19),p.YNc(36,va,3,3,"app-alert",19)),2&t&&(p.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.taskResults.length),p.xp6(1),p.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),p.xp6(1),p.Q6J("dataSource",e.dataSource),p.xp6(31),p.Q6J("matHeaderRowDef",e.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",e.displayedColumns),p.xp6(1),p.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.taskResults.length),p.xp6(1),p.Q6J("ngIf",0===e.taskResults.length))},directives:[Ne.l,ae.BZ,Oe.YE,ae.w1,ae.fO,ae.Dz,ae.as,ae.nj,s.O5,ae.ge,lt.oG,ae.ev,Oe.nU,s.sg,ae.XQ,ae.Gk,Ht.w],pipes:[Z.X$,s.uU],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}"]}),t})();function ya(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",7),p.NdJ("click",function(){return p.CHM(t),p.oxw().removeTaskResult()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",0===t.selection.selected.length),p.xp6(1),p.hij(" ",p.lcZ(2,2,"FACILITY_DETAIL.TASK_RESULTS.REMOVE"),"\n")}}function La(t,e){1&t&&p._UZ(0,"mat-spinner",8)}function xa(t,e){if(1&t&&p._UZ(0,"perun-web-apps-task-results-list",9),2&t){const t=p.oxw();p.Q6J("tableId",t.tableId)("displayedColumns",t.displayedColumns)("filterValue",t.filterValue)("selection",t.selection)("taskResults",t.taskResults)}}let Oa=(()=>{class t{constructor(t,e,i,s,a){this.route=t,this.taskManager=e,this.authResolver=i,this.dialog=s,this.entityStorageService=a,this.loading=!1,this.filterValue="",this.selection=new _t.Ov(!0,[]),this.task={id:0},this.tableId=vt.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(t=>{this.taskId=t.taskId,this.taskManager.getTaskById(this.taskId).subscribe(t=>{this.task=t,this.refreshTable()})})}refreshTable(){this.loading=!0,this.taskManager.getTaskResultsForGUIByTask(this.taskId).subscribe(t=>{this.selection.clear(),this.taskResults=t,this.loading=!1})}removeTaskResult(){const t=(0,r.kZ)();t.width="600px",t.data={theme:"facility-theme",taskResults:this.selection.selected},this.dialog.open(Bi,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(a.gz),p.Y36(c.Ob),p.Y36(d.x4),p.Y36(g.uw),p.Y36(d.fb))},t.\u0275cmp=p.Xpm({type:t,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(t,e){1&t&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.TgZ(3,"span",1),p._uU(4),p.qZA(),p.qZA(),p.TgZ(5,"perun-web-apps-refresh-button",2),p.NdJ("refresh",function(){return e.refreshTable()}),p.qZA(),p.YNc(6,ya,3,4,"button",3),p.TgZ(7,"perun-web-apps-immediate-filter",4),p.NdJ("filter",function(t){return e.applyFilter(t)}),p.qZA(),p.YNc(8,La,1,0,"mat-spinner",5),p.YNc(9,xa,1,5,"perun-web-apps-task-results-list",6)),2&t&&(p.xp6(1),p.AsE(" ",p.lcZ(2,7,"FACILITY_DETAIL.TASK_RESULTS.TITLE")," - ",e.task.service?e.task.service.name:""," "),p.xp6(3),p.hij(" \xa0#",e.task.id," "),p.xp6(2),p.Q6J("ngIf",e.removeAuth),p.xp6(1),p.Q6J("placeholder","FACILITY_DETAIL.TASK_RESULTS.FILTER"),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[Qt.t,s.O5,Vt.L,E.lW,I.$g,_a],pipes:[Z.X$],styles:[""]}),t})();var Na=i(53134);let Ra=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,this.theme=""}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSkip(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.so),p.Y36(g.WI))},t.\u0275cmp=p.Xpm({type:t,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(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"div",1),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.TgZ(7,"div",2),p.TgZ(8,"button",3),p.NdJ("click",function(){return e.onCancel()}),p._uU(9),p.ALo(10,"translate"),p.qZA(),p.TgZ(11,"button",4),p.NdJ("click",function(){return e.onSkip()}),p._uU(12),p.ALo(13,"translate"),p.qZA(),p.qZA(),p.qZA()),2&t&&(p.Tol(e.theme),p.xp6(2),p.Oqu(p.lcZ(3,7,"DIALOGS.NO_SERVICE.TITLE")),p.xp6(3),p.hij(" ",p.lcZ(6,9,"DIALOGS.NO_SERVICE.INFO")," "),p.xp6(4),p.hij(" ",p.lcZ(10,11,"DIALOGS.NO_SERVICE.CANCEL")," "),p.xp6(3),p.hij(" ",p.lcZ(13,13,"DIALOGS.NO_SERVICE.SKIP")," "))},directives:[g.uh,g.xY,g.H8,E.lW],pipes:[Z.X$],styles:[""]}),t})(),Da=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,this.theme=""}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSkip(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(g.so),p.Y36(g.WI))},t.\u0275cmp=p.Xpm({type:t,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(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"div",1),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.TgZ(7,"div",2),p.TgZ(8,"button",3),p.NdJ("click",function(){return e.onCancel()}),p._uU(9),p.ALo(10,"translate"),p.qZA(),p.TgZ(11,"button",4),p.NdJ("click",function(){return e.onSkip()}),p._uU(12),p.ALo(13,"translate"),p.qZA(),p.qZA(),p.qZA()),2&t&&(p.Tol(e.theme),p.xp6(2),p.Oqu(p.lcZ(3,7,"DIALOGS.CONFIG_UNSAVED.TITLE")),p.xp6(3),p.hij(" ",p.lcZ(6,9,"DIALOGS.CONFIG_UNSAVED.INFO")," "),p.xp6(4),p.hij(" ",p.lcZ(10,11,"DIALOGS.CONFIG_UNSAVED.CANCEL")," "),p.xp6(3),p.hij(" ",p.lcZ(13,13,"DIALOGS.CONFIG_UNSAVED.SKIP")," "))},directives:[g.uh,g.xY,g.H8,E.lW],pipes:[Z.X$],styles:[""]}),t})();function wa(t,e){if(1&t&&(p.TgZ(0,"div",3),p._UZ(1,"i",4),p.ALo(2,"translate"),p.qZA()),2&t){const t=p.oxw();p.xp6(1),p.Q6J("innerHTML",p.lcZ(2,1,t.info),p.oJD)}}function ka(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",9),p.NdJ("click",function(){return p.CHM(t),p.oxw(2).onKeep()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.CANCEL_CONFIG.KEEP")," "))}function Fa(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div",5),p.TgZ(1,"button",6),p.NdJ("click",function(){return p.CHM(t),p.oxw().onCancel()}),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"button",7),p.NdJ("click",function(){return p.CHM(t),p.oxw().onDelete()}),p.TgZ(5,"mat-icon"),p._uU(6," warning "),p.qZA(),p._uU(7),p.ALo(8,"translate"),p.qZA(),p.YNc(9,ka,3,3,"button",8),p.qZA()}if(2&t){const t=p.oxw();p.xp6(2),p.hij(" ",p.lcZ(3,3,"DIALOGS.CANCEL_CONFIG.CANCEL")," "),p.xp6(5),p.hij(" ",p.lcZ(8,5,"DIALOGS.CANCEL_CONFIG.DELETE")," "),p.xp6(2),p.Q6J("ngIf",!t.lastStep)}}let Ya=(()=>{class t{constructor(t,e,i,s,a){this.dialogRef=t,this.data=e,this.facilityService=i,this.notificator=s,this.translate=a,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 t.\u0275fac=function(e){return new(e||t)(p.Y36(g.so),p.Y36(g.WI),p.Y36(c.IQ),p.Y36(d.V6),p.Y36(Z.sK))},t.\u0275cmp=p.Xpm({type:t,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(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.YNc(4,wa,3,3,"div",1),p.YNc(5,Fa,10,7,"div",2),p.qZA()),2&t&&(p.Tol(e.theme),p.xp6(2),p.Oqu(p.lcZ(3,6,e.title)),p.xp6(2),p.Q6J("ngIf",!e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[g.uh,s.O5,g.xY,g.H8,E.lW,S.Hw],pipes:[Z.X$],styles:[""]}),t})();var Ua=i(98470),Ma=i(70663),qa=i(65267),Ja=i(91721),Qa=i(45001);const Va=["stepper"];function Ha(t,e){1&t&&(p._uU(0),p.ALo(1,"translate")),2&t&&p.Oqu(p.lcZ(1,1,"FACILITY_CONFIGURATION.OWNERS"))}function Pa(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"app-facility-settings-owners",14),p.NdJ("ownerEmitter",function(e){return p.CHM(t),p.oxw().owners=e}),p.qZA()}}function Ga(t,e){1&t&&(p._uU(0),p.ALo(1,"translate")),2&t&&p.Oqu(p.lcZ(1,1,"FACILITY_CONFIGURATION.HOSTS"))}function Ba(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"app-facility-hosts",15),p.NdJ("hostEmitter",function(e){return p.CHM(t),p.oxw().hosts=e}),p.qZA()}2&t&&p.Q6J("disableRouting",!0)}function ja(t,e){1&t&&(p._uU(0),p.ALo(1,"translate")),2&t&&p.Oqu(p.lcZ(1,1,"FACILITY_CONFIGURATION.SERVICES"))}const $a=function(){return["select","id","name","enabled","description"]};function za(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"h1",16),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"app-alert",17),p._uU(4),p.ALo(5,"translate"),p.qZA(),p.TgZ(6,"div",18),p.TgZ(7,"perun-web-apps-immediate-filter",19),p.NdJ("filter",function(e){return p.CHM(t),p.oxw().applyFilter(e)}),p.qZA(),p.TgZ(8,"perun-web-apps-service-package-search-select",20),p.NdJ("packageSelected",function(e){return p.CHM(t),p.oxw().packagesSelected(e)}),p.qZA(),p.qZA(),p.TgZ(9,"app-services-list",21),p.NdJ("selectionChanged",function(){return p.CHM(t),p.oxw().singleServiceSelected()}),p.qZA()}if(2&t){const t=p.oxw();p.xp6(1),p.Oqu(p.lcZ(2,13,"FACILITY_CONFIGURATION.SERVICES")),p.xp6(3),p.hij(" ",p.lcZ(5,15,"FACILITY_CONFIGURATION.SERVICES_INFO")," "),p.xp6(3),p.Q6J("placeholder","FACILITY_CONFIGURATION.SERVICES_FILTER"),p.xp6(1),p.Q6J("servicePackages",t.servicePackages)("selectedPackage",t.selectedPackages)("multiple",!0)("disableAutoSelect",!0)("theme","facility-theme"),p.xp6(1),p.Q6J("disableRouting",!0)("selection",t.selection)("services",t.services)("filterValue",t.filterValue)("displayedColumns",p.DdM(17,$a))}}function Xa(t,e){1&t&&(p._uU(0),p.ALo(1,"translate")),2&t&&p.Oqu(p.lcZ(1,1,"FACILITY_CONFIGURATION.SERVICE_CONFIG"))}function Wa(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"perun-web-apps-service-search-select",27),p.NdJ("serviceSelected",function(e){return p.CHM(t),p.oxw(2).filterAttributes(e)}),p.qZA()}if(2&t){const t=p.oxw(2);p.Q6J("disableAutoSelect",!0)("services",t.selection.selected)("multiple",!0)("theme","facility-theme")}}function Ka(t,e){1&t&&p._UZ(0,"mat-spinner",28)}function tn(t,e){if(1&t&&p._UZ(0,"perun-web-apps-attributes-list",29),2&t){const t=p.oxw(2);p.Q6J("emptyListText","FACILITY_CONFIGURATION.EMPTY_REQ_ATT")("selection",t.attSelection)("attributes",t.filteredAttributes)}}function en(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"h1",16),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"app-alert",17),p._uU(4),p.ALo(5,"translate"),p.qZA(),p.TgZ(6,"div",18),p.TgZ(7,"button",22),p.NdJ("click",function(){return p.CHM(t),p.oxw().onRemoveAttributes()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",23),p.NdJ("click",function(){return p.CHM(t),p.oxw().onSaveAttributes()}),p._uU(11),p.ALo(12,"translate"),p.qZA(),p.YNc(13,Wa,1,4,"perun-web-apps-service-search-select",24),p.qZA(),p.YNc(14,Ka,1,0,"mat-spinner",25),p.YNc(15,tn,1,3,"perun-web-apps-attributes-list",26)}if(2&t){const t=p.oxw(),e=p.MAs(5);p.xp6(1),p.Oqu(p.lcZ(2,9,"FACILITY_CONFIGURATION.SERVICE_CONFIG")),p.xp6(3),p.hij(" ",p.lcZ(5,11,"FACILITY_CONFIGURATION.ATT_INFO")," "),p.xp6(3),p.Q6J("disabled",0===t.attSelection.selected.length),p.xp6(1),p.hij(" ",p.lcZ(9,13,"FACILITY_CONFIGURATION.REMOVE")," "),p.xp6(2),p.Q6J("disabled",0===t.attSelection.selected.length),p.xp6(1),p.hij(" ",p.lcZ(12,15,"FACILITY_CONFIGURATION.SAVE")," "),p.xp6(2),p.Q6J("ngIf",e.selectedIndex===t.ATTRIBUTES_IDX),p.xp6(1),p.Q6J("ngIf",t.processing),p.xp6(1),p.Q6J("ngIf",!t.processing)}}function sn(t,e){1&t&&(p._uU(0),p.ALo(1,"translate")),2&t&&p.Oqu(p.lcZ(1,1,"FACILITY_CONFIGURATION.DESTINATION_CONFIG"))}const an=function(){return["select","destinationId","service","warn","destination","type","propagationType"]};function nn(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"app-perun-web-apps-facility-services-destinations",30),p.NdJ("destinationEmitter",function(e){return p.CHM(t),p.oxw().destinations=e}),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("title","FACILITY_CONFIGURATION.DESTINATION_CONFIG")("loading",t.processing)("displayedColumns",p.DdM(5,an))("configServices",t.selection.selected)("configServicesIds",t.serviceIds)}}function ln(t,e){1&t&&(p._uU(0),p.ALo(1,"translate")),2&t&&p.Oqu(p.lcZ(1,1,"FACILITY_CONFIGURATION.MANAGERS"))}function on(t,e){1&t&&p._UZ(0,"app-perun-web-apps-facility-settings-managers",31),2&t&&p.Q6J("disableRouting",!0)("disableSelf",!0)}function cn(t,e){1&t&&(p._uU(0),p.ALo(1,"translate")),2&t&&p.Oqu(p.lcZ(1,1,"FACILITY_CONFIGURATION.SUMMARY"))}function rn(t,e){1&t&&p._UZ(0,"mat-spinner",28)}const dn=function(){return["id","name","contact","type"]};function un(t,e){if(1&t&&p._UZ(0,"perun-web-apps-owners-list",48),2&t){const t=p.oxw(3);p.Q6J("owners",t.owners)("displayedColumns",p.DdM(2,dn))}}function hn(t,e){1&t&&p._UZ(0,"mat-spinner",28)}const pn=function(){return["id","name"]};function gn(t,e){if(1&t&&p._UZ(0,"app-hosts-list",49),2&t){const t=p.oxw(3);p.Q6J("disableRouting",!0)("hosts",t.hosts)("displayedColumns",p.DdM(3,pn))}}function fn(t,e){1&t&&p._UZ(0,"mat-spinner",28)}const mn=function(){return["id","name","enabled","script","description"]},An=function(){return["id","displayName","value","description"]},In=function(){return["destinationId","service","warn","destination","type","propagationType"]},Sn=function(){return["id","name","email","logins","organization"]},Tn=function(){return["id","vo","name","description"]};function bn(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-accordion"),p.TgZ(1,"mat-expansion-panel",34),p.TgZ(2,"mat-expansion-panel-header"),p.TgZ(3,"mat-panel-title"),p._UZ(4,"mat-icon",35),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.qZA(),p.TgZ(7,"h1",16),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.YNc(10,rn,1,0,"mat-spinner",25),p.YNc(11,un,1,3,"perun-web-apps-owners-list",36),p.qZA(),p.TgZ(12,"mat-expansion-panel",34),p.TgZ(13,"mat-expansion-panel-header"),p.TgZ(14,"mat-panel-title"),p._UZ(15,"mat-icon",37),p._uU(16),p.ALo(17,"translate"),p.qZA(),p.qZA(),p.TgZ(18,"h1",16),p._uU(19),p.ALo(20,"translate"),p.qZA(),p.YNc(21,hn,1,0,"mat-spinner",25),p.YNc(22,gn,1,4,"app-hosts-list",38),p.qZA(),p.TgZ(23,"mat-expansion-panel",34),p.TgZ(24,"mat-expansion-panel-header"),p.TgZ(25,"mat-panel-title"),p._UZ(26,"mat-icon",39),p._uU(27),p.ALo(28,"translate"),p.qZA(),p.qZA(),p.TgZ(29,"h1",16),p._uU(30),p.ALo(31,"translate"),p.qZA(),p._UZ(32,"app-services-list",40),p.qZA(),p.TgZ(33,"mat-expansion-panel",41),p.NdJ("opened",function(){return p.CHM(t),p.oxw(2).getNonEmptyAttributes()}),p.TgZ(34,"mat-expansion-panel-header"),p.TgZ(35,"mat-panel-title"),p._UZ(36,"mat-icon",37),p._uU(37),p.ALo(38,"translate"),p.qZA(),p.qZA(),p.TgZ(39,"h1",16),p._uU(40),p.ALo(41,"translate"),p.qZA(),p._UZ(42,"perun-web-apps-attributes-list",42),p.qZA(),p.TgZ(43,"mat-expansion-panel",43),p.NdJ("expandedChange",function(e){return p.CHM(t),p.oxw(2).destinationServiceMissing=e}),p.TgZ(44,"mat-expansion-panel-header"),p.TgZ(45,"mat-panel-title"),p._UZ(46,"mat-icon",44),p._uU(47),p.ALo(48,"translate"),p.qZA(),p.qZA(),p.TgZ(49,"h1",16),p._uU(50),p.ALo(51,"translate"),p.qZA(),p.YNc(52,fn,1,0,"mat-spinner",25),p._UZ(53,"app-perun-web-apps-destination-list",45),p.qZA(),p.TgZ(54,"mat-expansion-panel"),p.TgZ(55,"mat-expansion-panel-header"),p.TgZ(56,"mat-panel-title"),p._UZ(57,"mat-icon",46),p._uU(58),p.ALo(59,"translate"),p.qZA(),p.qZA(),p._UZ(60,"app-managers-page",47),p.qZA(),p.qZA()}if(2&t){const t=p.oxw(2);p.Q6J("@.disabled",!0),p.xp6(1),p.Q6J("disabled",0===t.owners.length),p.xp6(1),p.ekj("cursor-default",0===t.owners.length),p.xp6(3),p.hij(" ",p.lcZ(6,49,"FACILITY_CONFIGURATION.OWNERS")," "),p.xp6(3),p.Oqu(p.lcZ(9,51,"FACILITY_CONFIGURATION.OWNERS")),p.xp6(2),p.Q6J("ngIf",t.processing),p.xp6(1),p.Q6J("ngIf",!t.processing),p.xp6(1),p.Q6J("disabled",0===t.hosts.length),p.xp6(1),p.ekj("cursor-default",0===t.hosts.length),p.xp6(3),p.hij(" ",p.lcZ(17,53,"FACILITY_CONFIGURATION.HOSTS")," "),p.xp6(3),p.Oqu(p.lcZ(20,55,"FACILITY_CONFIGURATION.HOSTS")),p.xp6(2),p.Q6J("ngIf",t.processing),p.xp6(1),p.Q6J("ngIf",!t.processing),p.xp6(1),p.Q6J("disabled",0===t.selection.selected.length),p.xp6(1),p.ekj("cursor-default",0===t.selection.selected.length),p.xp6(3),p.hij(" ",p.lcZ(28,57,"FACILITY_CONFIGURATION.SERVICES")," "),p.xp6(3),p.Oqu(p.lcZ(31,59,"FACILITY_CONFIGURATION.SERVICES")),p.xp6(2),p.Q6J("disableRouting",!0)("services",t.selection.selected)("displayedColumns",p.DdM(71,mn)),p.xp6(1),p.Q6J("disabled",0===t.selection.selected.length),p.xp6(1),p.ekj("cursor-default",0===t.selection.selected.length),p.xp6(3),p.hij(" ",p.lcZ(38,61,"FACILITY_CONFIGURATION.SERVICE_CONFIG")," "),p.xp6(3),p.Oqu(p.lcZ(41,63,"FACILITY_CONFIGURATION.ATTS")),p.xp6(2),p.Q6J("displayedColumns",p.DdM(72,An))("emptyListText","FACILITY_CONFIGURATION.EMPTY_REQ_ATT")("attributes",t.filteredAttributes),p.xp6(1),p.Q6J("expanded",t.destinationServiceMissing)("disabled",0===t.selection.selected.length&&0===t.destinations.length),p.xp6(1),p.ekj("cursor-default",0===t.selection.selected.length&&0===t.destinations.length),p.xp6(3),p.hij(" ",p.lcZ(48,65,"FACILITY_CONFIGURATION.DESTINATION_CONFIG")," "),p.xp6(3),p.Oqu(p.lcZ(51,67,"FACILITY_CONFIGURATION.DESTINATION")),p.xp6(2),p.Q6J("ngIf",t.processing),p.xp6(1),p.Q6J("destinations",t.destinations)("services",t.serviceIds)("displayedColumns",p.DdM(73,In)),p.xp6(5),p.hij(" ",p.lcZ(59,69,"FACILITY_CONFIGURATION.MANAGERS")," "),p.xp6(2),p.Q6J("complementaryObject",t.facility)("configMode",!0)("disableRouting",!0)("complementaryObjectType","Facility")("availableRoles",t.availableRoles)("displayedUserColumns",p.DdM(74,Sn))("displayedGroupColumns",p.DdM(75,Tn))}}function En(t,e){if(1&t&&(p.TgZ(0,"app-alert",17),p._UZ(1,"i",32),p.ALo(2,"translate"),p.qZA(),p.YNc(3,bn,61,76,"mat-accordion",33)),2&t){p.oxw();const t=p.MAs(5);p.xp6(1),p.Q6J("innerHTML",p.lcZ(2,2,"FACILITY_CONFIGURATION.SUMMARY_INFO"),p.oJD),p.xp6(2),p.Q6J("ngIf",t.selectedIndex===t.steps.length-1)}}function Zn(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",50),p.NdJ("click",function(){return p.CHM(t),p.oxw().back()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"FACILITY_CONFIGURATION.BACK")," "))}function Cn(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",51),p.NdJ("click",function(){return p.CHM(t),p.oxw().next()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){p.oxw();const t=p.MAs(5);p.ekj("mr-2",void 0!==t&&0!==t.selectedIndex)("ml-auto",!(void 0!==t&&0!==t.selectedIndex)),p.xp6(1),p.hij(" ",p.lcZ(2,5,"FACILITY_CONFIGURATION.NEXT")," ")}}function vn(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",52),p.NdJ("click",function(){return p.CHM(t),p.oxw().onFinish()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"FACILITY_CONFIGURATION.FINISH")," "))}let _n=(()=>{class t{constructor(t,e,i,s,a,n,l,o,c,r){this.attributesManager=t,this.serviceManager=e,this.facilityService=i,this.cd=s,this.dialog=a,this.notificator=n,this.translate=l,this.router=o,this.guiAuthResolver=c,this.entityStorageService=r,this.processing=!1,this.allowNavigate=!1,this.attributes=[],this.attributeIds=new Set,this.filteredAttributes=[],this.attributesPerService=new Map,this.attSelection=new _t.Ov(!0,[]),this.services=[],this.serviceIds=new Set,this.servicesPerPackage=new Map,this.servicePackages=[],this.selectedPackages=[],this.selection=new _t.Ov(!0,[]),this.owners=[],this.hosts=[],this.destinations=[],this.destinationServiceMissing=!1,this.availableRoles=[],this.filterValue="",this.saveMsg="",this.removeMsg="",this.BEFORE_OPTIONAL_IDX=2,this.ATTRIBUTES_IDX=3,this.DESTINATIONS_IDX=4,this.AFTER_OPTIONAL_IDX=5,this.serviceControl=new it.NI(!1,it.kI.requiredTrue),this.attributesControl=new it.NI(!0,it.kI.requiredTrue),this.translate.get("FACILITY_CONFIGURATION.ATT_SAVED").subscribe(t=>this.saveMsg=t),this.translate.get("FACILITY_CONFIGURATION.ATT_REMOVED").subscribe(t=>this.removeMsg=t)}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Facility"),this.serviceManager.getServicesPackages().subscribe(t=>{this.servicePackages=t,this.getServicePackageServices(t,0)})}ngAfterViewInit(){this.cd.detectChanges(),this.attSelection.changed.subscribe(()=>{this.attributesControl.setValue(0===this.attSelection.selected.length)})}onCancel(){const t=(0,r.kZ)();t.width="550px",t.data={facilityId:this.facility.id,lastStep:this.stepper.selectedIndex===this.stepper.steps.length-1,theme:"facility-theme"},this.dialog.open(Ya,t).afterClosed().subscribe(t=>{t&&(this.allowNavigate=!0,sessionStorage.removeItem("newFacilityId"),this.router.navigate(["facilities"],{queryParamsHandling:"merge"}))})}getServicePackageServices(t,e){e===t.length?this.serviceManager.getServices().subscribe(t=>{this.services=t}):this.serviceManager.getServicesFromServicesPackage(t[e].id).subscribe(i=>{this.servicesPerPackage.set(t[e].id,new Set([...i.map(t=>t.id)])),this.getServicePackageServices(t,e+1)})}getServiceRequiredAttributes(t,e){e!==t.length&&this.attributesManager.getRequiredAttributesDefinition(t[e].id).subscribe(i=>{i=i.filter(t=>this.attributeIds.has(t.id)),this.attributesPerService.set(t[e].id,i.map(t=>t.id)),this.getServiceRequiredAttributes(t,e+1)})}setServiceControl(){this.serviceControl.setValue(0!==this.selection.selected.length)}buildServiceSet(t){const e=new Set;return t.forEach(t=>{this.servicesPerPackage.get(t.id).forEach(t=>e.add(t))}),e}setDiff(t,e){return new Set([...t].filter(t=>!e.has(t)))}setIntersect(t,e){return new Set([...t].filter(t=>e.has(t)))}setSymDif(t,e){const i=this.buildServiceSet(t),s=this.buildServiceSet(e),a=this.setDiff(i,s),n=this.setDiff(s,i);return new Set([...a,...n])}filterService(t,e){const i=new Set;for(const s of e){const e=this.setIntersect(t,this.servicesPerPackage.get(s.id));0!==e.size&&e.forEach(t=>i.add(t))}return i}packageSelectionEqual(t){return t.length===this.selectedPackages.length&&(t.forEach(t=>{if(-1===this.selectedPackages.findIndex(e=>e.id===t.id))return!1}),!0)}packagesSelected(t){if(this.packageSelectionEqual(t))return;this.processing=!0;let e=new Set;if(t&&0!==t.length?e=this.setSymDif(this.selectedPackages,t):this.selectedPackages.forEach(t=>{this.servicesPerPackage.get(t.id).forEach(t=>e.add(t))}),0===e.size)return;const i=this.filterService(e,t.filter(t=>this.selectedPackages.findIndex(e=>e.id===t.id)<0)),s=this.filterService(e,this.selectedPackages.filter(e=>t.findIndex(t=>t.id===e.id)<0));for(const a of this.services)i.has(a.id)?this.selection.select(a):s.has(a.id)&&this.selection.deselect(a);this.selectedPackages=t,this.setServiceControl(),this.processing=!1}checkPackageComplete(){const t=[];for(const e of this.selectedPackages){let i=!0;for(const t of this.servicesPerPackage.get(e.id))if(-1===this.selection.selected.findIndex(e=>e.id===t)){i=!1;break}i&&t.push(e)}this.selectedPackages=t}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()}openSkipDialog(){const t=(0,r.kZ)();t.width="400px",t.data={theme:"facility-theme"},this.dialog.open(Ra,t).afterClosed().subscribe(t=>{t&&(this.serviceControl.setValue(!0),this.stepper.selectedIndex=this.AFTER_OPTIONAL_IDX)})}getRequiredAttributes(){this.processing=!0,this.attributesManager.getRequiredAttributesFacilityServices(this.selection.selected.map(t=>t.id),this.facility.id).subscribe(t=>{this.attSelection.clear(),this.attributes=t.filter(t=>!(0,r.Hm)(t)),this.filteredAttributes=this.attributes,this.attributes.forEach(t=>this.attributeIds.add(t.id)),this.getServiceRequiredAttributes(this.selection.selected,0),this.processing=!1})}onSaveAttributes(){return new Promise((t,e)=>{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,t()},()=>{this.processing=!1,e()})})}openUnsavedAttsDialog(){const t=(0,r.kZ)();t.width="400px",t.data={theme:"facility-theme"},this.dialog.open(Da,t).afterClosed().subscribe(t=>{t&&this.onSaveAttributes().then(()=>{this.stepper.next()},()=>this.getRequiredAttributes())})}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 t=this.attSelection.selected.map(t=>t.id);this.attributesManager.removeFacilityAttributes(this.facility.id,t).subscribe(()=>{this.notificator.showSuccess(this.removeMsg),this.getRequiredAttributes(),this.processing=!1})}filterAttributes(t){if(void 0===t||0===t.length)return void(this.filteredAttributes=this.attributes);const e=new Set;for(const i of t)this.attributesPerService.get(i.id).forEach(t=>e.add(t));this.filteredAttributes=[];for(const i of this.attributes)e.has(i.id)&&this.filteredAttributes.push(i)}getNonEmptyAttributes(){this.filteredAttributes=this.attributes.filter(t=>{if(t.value&&(!(0,Ua.k)(t.value)||0!==t.value.length))return t})}checkDestinationDependency(t){t!==this.BEFORE_OPTIONAL_IDX&&t!==this.DESTINATIONS_IDX||(this.serviceIds=new Set([...this.selection.selected.map(t=>t.id)]),this.destinationServicePresent())}navigationStep(t){this.checkDestinationDependency(t.previouslySelectedIndex),t.selectedIndex===this.ATTRIBUTES_IDX?this.getRequiredAttributes():t.selectedIndex===this.DESTINATIONS_IDX?this.processing=!1:t.selectedIndex<=this.BEFORE_OPTIONAL_IDX&&this.setServiceControl()}getOwners(){this.processing=!0,this.facilityService.getFacilityOwners(this.facility.id).subscribe(t=>{this.owners=t,this.processing=!1})}getHosts(){this.processing=!0,this.facilityService.getHosts(this.facility.id).subscribe(t=>{this.hosts=t,this.processing=!1})}applyFilter(t){this.filterValue=t}destinationServicePresent(){for(const t of this.destinations)if(!this.serviceIds.has(t.service.id))return void(this.destinationServiceMissing=!0);this.destinationServiceMissing=!1}canDeactivate(){return this.allowNavigate||this.onCancel(),this.allowNavigate}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(c.H8),p.Y36(c.KK),p.Y36(c.IQ),p.Y36(p.sBO),p.Y36(g.uw),p.Y36(d.V6),p.Y36(Z.sK),p.Y36(a.F0),p.Y36(d.x4),p.Y36(d.fb))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-facility-configuration-page"]],viewQuery:function(t,e){if(1&t&&p.Gf(Va,5),2&t){let t;p.iGM(t=p.CRH())&&(e.stepper=t.first)}},decls:34,vars:15,consts:[[1,"facility-theme"],[1,"page-title"],[3,"linear","selectionChange"],["stepper",""],["matStepLabel",""],["matStepContent",""],[3,"stepControl"],["optional","true",3,"stepControl","editable"],[3,"optional","editable"],[1,"actions"],["mat-flat-button","",3,"click"],["class","ml-auto mr-2","mat-flat-button","",3,"click",4,"ngIf"],["mat-flat-button","","color","accent",3,"mr-2","ml-auto","click",4,"ngIf"],["class","mr-2","mat-flat-button","","color","accent",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,"servicePackages","selectedPackage","multiple","disableAutoSelect","theme","packageSelected"],[3,"disableRouting","selection","services","filterValue","displayedColumns","selectionChanged"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","accent",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","selection","attributes",4,"ngIf"],[1,"service-search-select",3,"disableAutoSelect","services","multiple","theme","serviceSelected"],[1,"ml-auto","mr-auto"],[3,"emptyListText","selection","attributes"],[3,"title","loading","displayedColumns","configServices","configServicesIds","destinationEmitter"],[3,"disableRouting","disableSelf"],[3,"innerHTML"],[4,"ngIf"],[3,"disabled"],["svgIcon","perun-owner-grey",1,"mr-2"],[3,"owners","displayedColumns",4,"ngIf"],["svgIcon","perun-hosts",1,"mr-2"],[3,"disableRouting","hosts","displayedColumns",4,"ngIf"],["svgIcon","perun-service",1,"mr-2"],[3,"disableRouting","services","displayedColumns"],[3,"disabled","opened"],[3,"displayedColumns","emptyListText","attributes"],[3,"expanded","disabled","expandedChange"],["svgIcon","perun-service_destination",1,"mr-2"],[3,"destinations","services","displayedColumns"],["svgIcon","perun-manager",1,"mr-2"],[3,"complementaryObject","configMode","disableRouting","complementaryObjectType","availableRoles","displayedUserColumns","displayedGroupColumns"],[3,"owners","displayedColumns"],[3,"disableRouting","hosts","displayedColumns"],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["mat-flat-button","","color","accent",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"]],template:function(t,e){if(1&t&&(p.TgZ(0,"div",0),p.TgZ(1,"div",1),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"mat-stepper",2,3),p.NdJ("selectionChange",function(t){return e.navigationStep(t)}),p.TgZ(6,"mat-step"),p.YNc(7,Ha,2,3,"ng-template",4),p.YNc(8,Pa,1,0,"ng-template",5),p.qZA(),p.TgZ(9,"mat-step"),p.YNc(10,Ga,2,3,"ng-template",4),p.YNc(11,Ba,1,1,"ng-template",5),p.qZA(),p.TgZ(12,"mat-step",6),p.YNc(13,ja,2,3,"ng-template",4),p.YNc(14,za,10,18,"ng-template",5),p.qZA(),p.TgZ(15,"mat-step",7),p.YNc(16,Xa,2,3,"ng-template",4),p.YNc(17,en,16,17,"ng-template",5),p.qZA(),p.TgZ(18,"mat-step",8),p.YNc(19,sn,2,3,"ng-template",4),p.YNc(20,nn,1,6,"ng-template",5),p.qZA(),p.TgZ(21,"mat-step"),p.YNc(22,ln,2,3,"ng-template",4),p.YNc(23,on,1,2,"ng-template",5),p.qZA(),p.TgZ(24,"mat-step"),p.YNc(25,cn,2,3,"ng-template",4),p.YNc(26,En,4,4,"ng-template",5),p.qZA(),p.qZA(),p.TgZ(27,"div",9),p.TgZ(28,"button",10),p.NdJ("click",function(){return e.onCancel()}),p._uU(29),p.ALo(30,"translate"),p.qZA(),p.YNc(31,Zn,3,3,"button",11),p.YNc(32,Cn,3,7,"button",12),p.YNc(33,vn,3,3,"button",13),p.qZA(),p.qZA()),2&t){const t=p.MAs(5);p.xp6(2),p.hij(" ",p.lcZ(3,11,"FACILITY_CONFIGURATION.TITLE")," "),p.xp6(2),p.Q6J("linear",!0),p.xp6(8),p.Q6J("stepControl",e.serviceControl),p.xp6(3),p.Q6J("stepControl",e.attributesControl)("editable",0!==e.selection.selected.length),p.xp6(3),p.Q6J("optional",0===e.destinations.length)("editable",0!==e.selection.selected.length||0!==e.destinations.length),p.xp6(11),p.hij(" ",p.lcZ(30,13,"FACILITY_CONFIGURATION.CANCEL")," "),p.xp6(2),p.Q6J("ngIf",void 0!==t&&0!==t.selectedIndex),p.xp6(1),p.Q6J("ngIf",void 0!==t&&t.selectedIndex!==t.steps.length-1),p.xp6(1),p.Q6J("ngIf",void 0!==t&&t.selectedIndex===t.steps.length-1)}},directives:[Ma.Vq,Ma.C0,Ma.VY,Ma.BY,E.lW,s.O5,me,je,Ht.w,Vt.L,qa.F,Ja.Q,Bs,I.$g,gi.p,Kt,Ct,Qa.pp,Qa.ib,Qa.yz,Qa.yK,S.Hw,Pt.q,Zt.s,te.Q,Ve],pipes:[Z.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}"]}),t})(),yn=(()=>{class t{constructor(t){this.router=t}canActivate(t){return t.parent.params.facilityId===sessionStorage.getItem("newFacilityId")||(this.router.navigate(["/home"],{queryParamsHandling:"merge"}),!1)}canDeactivate(t){return t.canDeactivate()}}return t.\u0275fac=function(e){return new(e||t)(p.LFG(a.F0))},t.\u0275prov=p.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Ln=[{path:"",component:n.P},{path:":facilityId",component:O,children:[{path:"",component:w,data:{animation:"FacilityOverviewPage"}},{path:"attributes",component:X,data:{animation:"FacilityAttributesPage"}},{path:"resources",component:k.f,data:{animation:"FacilityResourcesPage"}},{path:"allowed-users",component:Ks,data:{animation:"FacilityAllowedUsersPage"}},{path:"allowed-groups",component:F.o,data:{animation:"FacilityAllowedGroupsPage"}},{path:"services-status",component:Ms,data:{animation:"FacilityServiceStatusPage"}},{path:"services-status/:taskId",component:Oa,data:{animation:"FacilityTaskResultsPage"}},{path:"service-config",component:Et,data:{animation:"FacilityServiceConfigPage"}},{path:"services-destinations",component:Kt,data:{animation:"FacilityServicesDestinationsPage"}},{path:"hosts",component:je,data:{animation:"FacilityHostsPage"}},{path:"hosts/:hostId",component:Ii,data:{animation:"FacilityHostsDetailPage"}},{path:"settings",component:M,children:[{path:"",component:Q,data:{animation:"FacilitySettingsOverviewPage"}},{path:"owners",component:me,data:{animation:"FacilitySettingOwnersPage"}},{path:"managers",component:Ct,data:{animation:"FacilitySettingsManagersPage"}},{path:"security-teams",component:wi,data:{animation:"FacilitySecurityTeamsPage"}},{path:"blacklist",component:di,data:{animation:"FacilitySettingsBlackListPage"}}]},{path:"configuration",component:_n,canActivate:[yn],canDeactivate:[yn]}]},{path:":facilityId/resources/:resourceId",component:Y.b,children:[{path:"",component:U.H,data:{animation:"ResourceOverviewPage"}},{path:"attributes",component:tt.X,data:{animation:"ResourceAttributesPage"}},{path:"groups",component:et.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:Fi.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"members",component:ta.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:Na.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:W.t,children:[{path:"",component:K.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:ki.O,data:{animation:"ResourceSettingsManagersPage"}}]}]}];let xn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=p.oAB({type:t}),t.\u0275inj=p.cJS({imports:[[a.Bz.forChild(Ln)],a.Bz]}),t})();var On=i(28780),Nn=i(22727),Rn=i(65515),Dn=i(21781);let wn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=p.oAB({type:t}),t.\u0275inj=p.cJS({providers:[nt.dp],imports:[[s.ez,xn,On.m,Nn.r,ui.ez,nt.d4,Rn.UsersModule,Dn.AdminModule]]}),t})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/749-es5.1c6e6337bd9eafee7ae1.js b/dist/apps/admin-gui/749-es5.1c6e6337bd9eafee7ae1.js deleted file mode 100644 index a5898e5c8..000000000 --- a/dist/apps/admin-gui/749-es5.1c6e6337bd9eafee7ae1.js +++ /dev/null @@ -1 +0,0 @@ -!function(){function e(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(e)||function(){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 t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==i)return;var a,n,s=[],l=!0,r=!1;try{for(i=i.call(e);!(l=(a=i.next()).done)&&(s.push(a.value),!t||s.length!==t);l=!0);}catch(o){r=!0,n=o}finally{try{l||null==i.return||i.return()}finally{if(r)throw n}}return s}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=a(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,s=function(){};return{s:s,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,r=!0,o=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return r=e.done,e},e:function(e){o=!0,l=e},f:function(){try{r||null==i.return||i.return()}finally{if(o)throw l}}}}function a(e,t){if(e){if("string"==typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,a=new Array(t);i_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]]))}},{key:"addHost",value:function(){var e=this,t=(0,p.kZ)();t.width="600px",t.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open(_t,t).afterClosed().subscribe(function(t){t&&e.refreshTable()})}},{key:"removeHost",value:function(){var e=this,t=(0,p.kZ)();t.width="600px",t.data={facilityId:this.facility.id,theme:"facility-theme",hosts:this.selected.selected},this.dialog.open(Dt,t).afterClosed().subscribe(function(t){t&&e.refreshTable()})}},{key:"applyFilter",value:function(e){this.filterValue=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(A.Y36(I.uw),A.Y36(f.IQ),A.Y36(g.x4),A.Y36(g.fb))},e.\u0275cmp=A.Xpm({type:e,selectors:[["app-facility-hosts"]],inputs:{disableRouting:"disableRouting"},outputs:{hostEmitter:"hostEmitter"},decls:10,vars:8,consts:[[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,"tableId","filterValue","hosts","selection","displayedColumns","disableRouting","facilityId",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,"tableId","filterValue","hosts","selection","displayedColumns","disableRouting","facilityId"]],template:function(e,t){1&e&&(A.TgZ(0,"div"),A.TgZ(1,"h1",0),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"perun-web-apps-refresh-button",1),A.NdJ("refresh",function(){return t.refreshTable()}),A.qZA(),A.YNc(5,$t,3,3,"button",2),A.YNc(6,zt,3,4,"button",3),A.TgZ(7,"perun-web-apps-immediate-filter",4),A.NdJ("filter",function(e){return t.applyFilter(e)}),A.qZA(),A.YNc(8,Xt,1,0,"mat-spinner",5),A.YNc(9,Wt,1,7,"app-hosts-list",6),A.qZA()),2&e&&(A.xp6(2),A.Oqu(A.lcZ(3,6,"FACILITY_DETAIL.HOSTS.TITLE")),A.xp6(3),A.Q6J("ngIf",t.addAuth),A.xp6(1),A.Q6J("ngIf",t.removeAuth),A.xp6(1),A.Q6J("placeholder","FACILITY_DETAIL.HOSTS.FILTER"),A.xp6(1),A.Q6J("ngIf",t.loading),A.xp6(1),A.Q6J("ngIf",!t.loading))},directives:[Be.t,o.O5,je.L,_.lW,b.$g,jt],pipes:[k.X$],styles:[""]}),e}();function ei(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"th",15),A.TgZ(1,"mat-checkbox",16),A.NdJ("change",function(e){A.CHM(i);var t=A.oxw();return e?t.masterToggle():null}),A.qZA(),A.qZA()}if(2&e){var a=A.oxw();A.xp6(1),A.Q6J("aria-label",a.checkboxLabel())("checked",a.selection.hasValue()&&a.isAllSelected())("indeterminate",a.selection.hasValue()&&!a.isAllSelected())}}function ti(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"td",17),A.TgZ(1,"mat-checkbox",18),A.NdJ("change",function(e){var t=A.CHM(i).$implicit,a=A.oxw();return e?a.selection.toggle(t):null})("click",function(e){return e.stopPropagation()}),A.qZA(),A.qZA()}if(2&e){var a=t.$implicit,n=A.oxw();A.xp6(1),A.Q6J("aria-label",n.checkboxLabel(a))("checked",n.selection.isSelected(a))}}function ii(e,t){1&e&&(A.TgZ(0,"th",19),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.USER_ID")))}function ai(e,t){if(1&e&&(A.TgZ(0,"td",20),A._uU(1),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.Oqu(i[1].id)}}function ni(e,t){1&e&&(A.TgZ(0,"th",19),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NAME")))}function si(e,t){if(1&e&&(A.TgZ(0,"td",21),A._uU(1),A.ALo(2,"userFullName"),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.Oqu(A.lcZ(2,1,i[1]))}}function li(e,t){1&e&&(A.TgZ(0,"th",19),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.REASON")))}function ri(e,t){if(1&e&&(A.TgZ(0,"td",21),A._uU(1),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.Oqu(i[0].description)}}function oi(e,t){1&e&&A._UZ(0,"tr",22)}function ci(e,t){1&e&&A._UZ(0,"tr",23)}function ui(e,t){1&e&&(A.TgZ(0,"app-alert",24),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function di(e,t){1&e&&(A.TgZ(0,"app-alert",24),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NO_BANS_WARNING"),"\n"))}var hi=function(){var e=function(){function e(t,i){s(this,e),this.authResolver=t,this.tableCheckbox=i,this.bansOnFacilitiesWithUsers=[],this.selection=new xe.Ov(!0,[]),this.displayedColumns=["select","userId","name","reason"],this.pageSizeOptions=p.f7}return r(e,[{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(e){return"userId"!==e})),this.dataSource=new ct.by(this.bansOnFacilitiesWithUsers),this.setDataSource(),this.dataSource.filter=this.filterValue}},{key:"getDataForColumn",value:function(e,t){switch(t){case"userId":return e[1].id.toString();case"reason":return e[0].description;case"name":return(0,p.hu)(e[1]);default:return""}}},{key:"exportData",value:function(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.filterPredicate=function(t,i){return(0,p.Sd)(t,i,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,i){return(0,p.pR)(t,i,e.getDataForColumn,e)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(e){return e?"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e[0].userId+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}}]),e}();return e.\u0275fac=function(t){return new(t||e)(A.Y36(g.x4),A.Y36(g.UA))},e.\u0275cmp=A.Xpm({type:e,selectors:[["app-perun-web-apps-blacklist-list"]],viewQuery:function(e,t){var i;(1&e&&(A.Gf(wt.YE,7),A.Gf(p.l9,7)),2&e)&&(A.iGM(i=A.CRH())&&(t.matSort=i.first),A.iGM(i=A.CRH())&&(t.child=i.first))},inputs:{bansOnFacilitiesWithUsers:"bansOnFacilitiesWithUsers",selection:"selection",filterValue:"filterValue",tableId:"tableId"},features:[A.TTD],decls:19,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"],["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,t){1&e&&(A.TgZ(0,"div",0),A.TgZ(1,"perun-web-apps-table-wrapper",1),A.NdJ("exportData",function(e){return t.exportData(e)}),A.TgZ(2,"table",2),A.ynx(3,3),A.YNc(4,ei,2,3,"th",4),A.YNc(5,ti,2,2,"td",5),A.BQk(),A.ynx(6,6),A.YNc(7,ii,3,3,"th",7),A.YNc(8,ai,2,1,"td",8),A.BQk(),A.ynx(9,9),A.YNc(10,ni,3,3,"th",7),A.YNc(11,si,3,3,"td",10),A.BQk(),A.ynx(12,11),A.YNc(13,li,3,3,"th",7),A.YNc(14,ri,2,1,"td",10),A.BQk(),A.YNc(15,oi,1,0,"tr",12),A.YNc(16,ci,1,0,"tr",13),A.qZA(),A.qZA(),A.qZA(),A.YNc(17,ui,3,3,"app-alert",14),A.YNc(18,di,3,3,"app-alert",14)),2&e&&(A.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.bansOnFacilitiesWithUsers.length),A.xp6(1),A.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),A.xp6(1),A.Q6J("dataSource",t.dataSource),A.xp6(13),A.Q6J("matHeaderRowDef",t.displayedColumns),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns),A.xp6(1),A.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.bansOnFacilitiesWithUsers.length),A.xp6(1),A.Q6J("ngIf",0===t.bansOnFacilitiesWithUsers.length))},directives:[Ft.l,ct.BZ,wt.YE,ct.w1,ct.fO,ct.Dz,ct.as,ct.nj,o.O5,ct.ge,de.oG,ct.ev,wt.nU,ct.XQ,ct.Gk,$e.w],pipes:[k.X$,me.d],styles:[""]}),e}();function fi(e,t){1&e&&A._UZ(0,"mat-spinner",5)}function pi(e,t){if(1&e&&A._UZ(0,"app-perun-web-apps-blacklist-list",6),2&e){var i=A.oxw();A.Q6J("tableId",i.tableId)("filterValue",i.filterValue)("bansOnFacilitiesWithUsers",i.bansOnFacilitiesWithUsers)("selection",i.selected)}}var gi=function(){var e=function(){function e(t,i,a){s(this,e),this.facilitiesManager=t,this.usersManager=i,this.entityStorageService=a,this.bansOnFacilitiesWithUsers=[],this.selected=new xe.Ov(!0,[]),this.filterValue="",this.tableId=Le.NG}return r(e,[{key:"ngOnInit",value:function(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.refreshTable()}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.facilitiesManager.getBansForFacility(this.facility.id).subscribe(function(t){var a,n=i(t);try{for(n.s();!(a=n.n()).done;){var s=a.value,l=void 0;e.usersManager.getUserById(s.userId).subscribe(function(e){l=e}),e.bansOnFacilitiesWithUsers.push([s,l])}}catch(r){n.e(r)}finally{n.f()}e.selected.clear(),e.loading=!1})}},{key:"applyFilter",value:function(e){this.filterValue=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(A.Y36(f.IQ),A.Y36(f.Fv),A.Y36(g.fb))},e.\u0275cmp=A.Xpm({type:e,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,"tableId","filterValue","bansOnFacilitiesWithUsers","selection",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","bansOnFacilitiesWithUsers","selection"]],template:function(e,t){1&e&&(A.TgZ(0,"div"),A.TgZ(1,"h1",0),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"perun-web-apps-refresh-button",1),A.NdJ("refresh",function(){return t.refreshTable()}),A.qZA(),A.TgZ(5,"perun-web-apps-immediate-filter",2),A.NdJ("filter",function(e){return t.applyFilter(e)}),A.ALo(6,"translate"),A.qZA(),A.YNc(7,fi,1,0,"mat-spinner",3),A.YNc(8,pi,1,4,"app-perun-web-apps-blacklist-list",4),A.qZA()),2&e&&(A.xp6(2),A.Oqu(A.lcZ(3,4,"FACILITY_DETAIL.SETTINGS.BLACKLIST.TITLE")),A.xp6(3),A.Q6J("placeholder",A.lcZ(6,6,"FACILITY_DETAIL.SETTINGS.BLACKLIST.FILTER")),A.xp6(2),A.Q6J("ngIf",t.loading),A.xp6(1),A.Q6J("ngIf",!t.loading))},directives:[Be.t,je.L,o.O5,b.$g,hi],pipes:[k.X$],styles:[""]}),e}(),mi=l(41939),vi=l(13572),Ai=l(40695),Ii=l(41186),Si=["list"];function Ti(e,t){1&e&&A._UZ(0,"mat-spinner",7)}function yi(e,t){if(1&e&&A._UZ(0,"perun-web-apps-attributes-list",8,9),2&e){var i=A.oxw();A.Q6J("tableId",i.tableId)("attributes",i.attributes)("selection",i.selected)}}var bi=function(){var e=function(){function e(t,i,a,n){s(this,e),this.dialog=t,this.attributesManager=i,this.facilityManager=a,this.route=n,this.attributes=[],this.selected=new xe.Ov(!0,[]),this.host={beanName:"",id:0},this.tableId=Le.rF}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.route.params.subscribe(function(t){e.hostId=t.hostId,e.facilityManager.getHostById(e.hostId).subscribe(function(t){e.host=t}),e.refreshTable()})}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.attributesManager.getHostAttributes(this.hostId).subscribe(function(t){e.attributes=(0,p.MX)(t),e.selected.clear(),e.loading=!1})}},{key:"onSave",value:function(){var e=this;this.list.updateMapAttributes();var t=(0,p.kZ)();t.width="450px",t.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected},this.dialog.open(m.wA,t).afterClosed().subscribe(function(t){t&&e.refreshTable()})}},{key:"addAttribute",value:function(){var e=this,t=(0,p.kZ)();t.width="1050px",t.data={entityId:this.hostId,entity:"host",notEmptyAttributes:this.attributes,style:"facility-theme"},this.dialog.open(Ai.n,t).afterClosed().subscribe(function(t){"saved"===t&&e.refreshTable()})}},{key:"removeAttribute",value:function(){var e=this,t=(0,p.kZ)();t.width="450px",t.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected,theme:"facility-theme"},this.dialog.open(vi.k,t).afterClosed().subscribe(function(t){t&&e.refreshTable()})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(A.Y36(I.uw),A.Y36(f.H8),A.Y36(f.IQ),A.Y36(c.gz))},e.\u0275cmp=A.Xpm({type:e,selectors:[["app-facility-hosts-detail"]],viewQuery:function(e,t){var i;(1&e&&A.Gf(Si,5),2&e)&&(A.iGM(i=A.CRH())&&(t.list=i.first))},decls:16,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","attributes","selection",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"tableId","attributes","selection"],["list",""]],template:function(e,t){1&e&&(A.TgZ(0,"div"),A.TgZ(1,"h1",0),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"perun-web-apps-refresh-button",1),A.NdJ("refresh",function(){return t.refreshTable()}),A.qZA(),A.TgZ(5,"button",2),A.NdJ("click",function(){return t.addAttribute()}),A._uU(6),A.ALo(7,"translate"),A.qZA(),A.TgZ(8,"button",3),A.NdJ("click",function(){return t.onSave()}),A._uU(9),A.ALo(10,"translate"),A.qZA(),A.TgZ(11,"button",4),A.NdJ("click",function(){return t.removeAttribute()}),A._uU(12),A.ALo(13,"translate"),A.qZA(),A.YNc(14,Ti,1,0,"mat-spinner",5),A.YNc(15,yi,2,3,"perun-web-apps-attributes-list",6),A.qZA()),2&e&&(A.xp6(2),A.AsE(" ",A.lcZ(3,9,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.TITLE")," ",t.host.hostname,""),A.xp6(4),A.hij(" ",A.lcZ(7,11,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.ADD")," "),A.xp6(2),A.Q6J("disabled",0===t.selected.selected.length),A.xp6(1),A.hij(" ",A.lcZ(10,13,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.SAVE")," "),A.xp6(2),A.Q6J("disabled",0===t.selected.selected.length),A.xp6(1),A.hij(" ",A.lcZ(13,15,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.REMOVE")," "),A.xp6(2),A.Q6J("ngIf",t.loading),A.xp6(1),A.Q6J("ngIf",!t.loading))},directives:[Be.t,_.lW,o.O5,b.$g,Ii.p],pipes:[k.X$],styles:[""]}),e}();function Ei(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"th",15),A.TgZ(1,"mat-checkbox",16),A.NdJ("change",function(e){A.CHM(i);var t=A.oxw();return e?t.masterToggle():null}),A.qZA(),A.qZA()}if(2&e){var a=A.oxw();A.xp6(1),A.Q6J("aria-label",a.checkboxLabel())("checked",a.selection.hasValue()&&a.isAllSelected())("indeterminate",a.selection.hasValue()&&!a.isAllSelected())}}function Zi(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"td",17),A.TgZ(1,"mat-checkbox",18),A.NdJ("change",function(e){var t=A.CHM(i).$implicit,a=A.oxw();return e?a.selection.toggle(t):null})("click",function(e){return e.stopPropagation()}),A.qZA(),A.qZA()}if(2&e){var a=t.$implicit,n=A.oxw();A.xp6(1),A.Q6J("aria-label",n.checkboxLabel(a))("checked",n.selection.isSelected(a))}}function Ci(e,t){1&e&&(A.TgZ(0,"th",19),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.ID")))}function _i(e,t){if(1&e&&(A.TgZ(0,"td",20),A._uU(1),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.Oqu(i.id)}}function ki(e,t){1&e&&(A.TgZ(0,"th",19),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NAME")))}function Oi(e,t){if(1&e&&(A.TgZ(0,"td",21),A._uU(1),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.Oqu(i.name)}}function Li(e,t){1&e&&(A.TgZ(0,"th",19),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.DESCRIPTION")))}function xi(e,t){if(1&e&&(A.TgZ(0,"td",21),A._uU(1),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.Oqu(i.description)}}function Ni(e,t){1&e&&A._UZ(0,"tr",22)}function Ri(e,t){1&e&&A._UZ(0,"tr",23)}function Di(e,t){1&e&&(A.TgZ(0,"app-alert",24),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function wi(e,t){1&e&&(A.TgZ(0,"app-alert",24),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NO_SECURITY_TEAMS_WARNING"),"\n"))}var Fi=function(){var e=function(){function e(t,i){s(this,e),this.authResolver=t,this.tableCheckbox=i,this.securityTeams=[],this.selection=new xe.Ov(!0,[]),this.displayedColumns=["select","id","name","description"],this.pageSizeOptions=p.f7}return r(e,[{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(e){return"id"!==e})),this.dataSource=new ct.by(this.securityTeams),this.setDataSource(),this.dataSource.filter=this.filterValue}},{key:"getDataForColumn",value:function(e,t){switch(t){case"id":return e.id.toString();case"name":return e.name;case"description":return e.description;default:return""}}},{key:"exportData",value:function(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.filterPredicate=function(t,i){return(0,p.Sd)(t,i,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,i){return(0,p.pR)(t,i,e.getDataForColumn,e)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(e){return e?"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}}]),e}();return e.\u0275fac=function(t){return new(t||e)(A.Y36(g.x4),A.Y36(g.UA))},e.\u0275cmp=A.Xpm({type:e,selectors:[["app-security-teams-list"]],viewQuery:function(e,t){var i;(1&e&&(A.Gf(wt.YE,7),A.Gf(p.l9,7)),2&e)&&(A.iGM(i=A.CRH())&&(t.matSort=i.first),A.iGM(i=A.CRH())&&(t.child=i.first))},inputs:{securityTeams:"securityTeams",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns"},features:[A.TTD],decls:19,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"],["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,t){1&e&&(A.TgZ(0,"div",0),A.TgZ(1,"perun-web-apps-table-wrapper",1),A.NdJ("exportData",function(e){return t.exportData(e)}),A.TgZ(2,"table",2),A.ynx(3,3),A.YNc(4,Ei,2,3,"th",4),A.YNc(5,Zi,2,2,"td",5),A.BQk(),A.ynx(6,6),A.YNc(7,Ci,3,3,"th",7),A.YNc(8,_i,2,1,"td",8),A.BQk(),A.ynx(9,9),A.YNc(10,ki,3,3,"th",7),A.YNc(11,Oi,2,1,"td",10),A.BQk(),A.ynx(12,11),A.YNc(13,Li,3,3,"th",7),A.YNc(14,xi,2,1,"td",10),A.BQk(),A.YNc(15,Ni,1,0,"tr",12),A.YNc(16,Ri,1,0,"tr",13),A.qZA(),A.qZA(),A.qZA(),A.YNc(17,Di,3,3,"app-alert",14),A.YNc(18,wi,3,3,"app-alert",14)),2&e&&(A.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.securityTeams.length),A.xp6(1),A.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),A.xp6(1),A.Q6J("dataSource",t.dataSource),A.xp6(13),A.Q6J("matHeaderRowDef",t.displayedColumns),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns),A.xp6(1),A.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.securityTeams.length),A.xp6(1),A.Q6J("ngIf",0===t.securityTeams.length))},directives:[Ft.l,ct.BZ,wt.YE,ct.w1,ct.fO,ct.Dz,ct.as,ct.nj,o.O5,ct.ge,de.oG,ct.ev,wt.nU,ct.XQ,ct.Gk,$e.w],pipes:[k.X$],styles:[""]}),e}();function Yi(e,t){1&e&&A._UZ(0,"mat-spinner",5)}function Ui(e,t){if(1&e&&A._UZ(0,"app-security-teams-list",6),2&e){var i=A.oxw();A.Q6J("tableId",i.tableId)("filterValue",i.filterValue)("securityTeams",i.securityTeams)("displayedColumns",i.displayedColumns)("selection",i.selected)}}var qi=function(){var e=function(){function e(t,i,a,n){s(this,e),this.dialog=t,this.facilitiesManager=i,this.authResolver=a,this.entityStorageService=n,this.securityTeams=[],this.selected=new xe.Ov(!0,[]),this.filterValue="",this.tableId=Le.O9,this.displayedColumns=[]}return r(e,[{key:"ngOnInit",value:function(){this.facility=this.entityStorageService.getEntity(),this.refreshTable()}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.facilitiesManager.getAssignedSecurityTeams(this.facility.id).subscribe(function(t){e.securityTeams=t,e.selected.clear(),e.setAuthRights(),e.loading=!1})}},{key:"setAuthRights",value:function(){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"]}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"addSecurityTeam",value:function(){}},{key:"removeSecurityTeam",value:function(){}}]),e}();return e.\u0275fac=function(t){return new(t||e)(A.Y36(I.uw),A.Y36(f.IQ),A.Y36(g.x4),A.Y36(g.fb))},e.\u0275cmp=A.Xpm({type:e,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,"tableId","filterValue","securityTeams","displayedColumns","selection",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","securityTeams","displayedColumns","selection"]],template:function(e,t){1&e&&(A.TgZ(0,"div"),A.TgZ(1,"h1",0),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"perun-web-apps-refresh-button",1),A.NdJ("refresh",function(){return t.refreshTable()}),A.qZA(),A.TgZ(5,"perun-web-apps-immediate-filter",2),A.NdJ("filter",function(e){return t.applyFilter(e)}),A.qZA(),A.YNc(6,Yi,1,0,"mat-spinner",3),A.YNc(7,Ui,1,5,"app-security-teams-list",4),A.qZA()),2&e&&(A.xp6(2),A.Oqu(A.lcZ(3,4,"FACILITY_DETAIL.SECURITY_TEAMS.TITLE")),A.xp6(3),A.Q6J("placeholder","FACILITY_DETAIL.SECURITY_TEAMS.FILTER"),A.xp6(1),A.Q6J("ngIf",t.loading),A.xp6(1),A.Q6J("ngIf",!t.loading))},directives:[Be.t,je.L,o.O5,b.$g,Fi],pipes:[k.X$],styles:[""]}),e}(),Mi=l(64359),Ji=l(75374);function Qi(e,t){1&e&&A._UZ(0,"mat-spinner",6)}function Vi(e,t){1&e&&(A.TgZ(0,"th",17),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.RESULT_ID")))}function Hi(e,t){if(1&e&&(A.TgZ(0,"td",18),A._uU(1),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.hij(" ",i.id," ")}}function Pi(e,t){1&e&&(A.TgZ(0,"th",17),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.DESTINATION")))}function Gi(e,t){if(1&e&&(A.TgZ(0,"td",18),A._uU(1),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.hij(" ",i.destination.destination," ")}}function Bi(e,t){1&e&&(A.TgZ(0,"th",17),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.TIME")))}function ji(e,t){if(1&e&&(A.TgZ(0,"td",18),A._uU(1),A.ALo(2,"date"),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,i.timestamp,"d.M.y H:mm:ss")," ")}}function $i(e,t){1&e&&A._UZ(0,"tr",19)}function zi(e,t){1&e&&A._UZ(0,"tr",20)}function Xi(e,t){if(1&e&&(A.TgZ(0,"div",7),A.TgZ(1,"p"),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,Vi,3,3,"th",11),A.YNc(10,Hi,2,1,"td",12),A.BQk(),A.ynx(11,13),A.YNc(12,Pi,3,3,"th",11),A.YNc(13,Gi,2,1,"td",12),A.BQk(),A.ynx(14,14),A.YNc(15,Bi,3,3,"th",11),A.YNc(16,ji,3,4,"td",12),A.BQk(),A.YNc(17,$i,1,0,"tr",15),A.YNc(18,zi,1,0,"tr",16),A.qZA(),A.qZA()),2&e){var i=A.oxw();A.xp6(2),A.Oqu(A.lcZ(3,5,"DIALOGS.DELETE_TASK_RESULT.DESCRIPTION")),A.xp6(3),A.hij(" ",A.lcZ(6,7,"DIALOGS.DELETE_TASK_RESULT.ASK")," "),A.xp6(2),A.Q6J("dataSource",i.dataSource),A.xp6(10),A.Q6J("matHeaderRowDef",i.displayedColumns),A.xp6(1),A.Q6J("matRowDefColumns",i.displayedColumns)}}var Wi=function(){var e=function(){function e(t,i,a,n,l){s(this,e),this.dialogRef=t,this.data=i,this.taskManager=a,this.notificator=n,this.translate=l,this.loading=!1,this.dataSource=new ct.by(this.data.taskResults),this.displayedColumns=["id","destination","time"]}return r(e,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.taskResults=this.data.taskResults}},{key:"deleteResults",value:function(){var e=this;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(function(){e.deleteResults()},function(){return e.loading=!1})}},{key:"onDelete",value:function(){this.deleteResults()}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(A.Y36(I.so),A.Y36(I.WI),A.Y36(f.Ob),A.Y36(g.V6),A.Y36(k.sK))},e.\u0275cmp=A.Xpm({type:e,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"],["mat-flat-button","","color","warn",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"],["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&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"div"),A.YNc(4,Qi,1,0,"mat-spinner",1),A.YNc(5,Xi,19,9,"div",2),A.TgZ(6,"div",3),A.TgZ(7,"button",4),A.NdJ("click",function(){return t.onCancel()}),A._uU(8),A.ALo(9,"translate"),A.qZA(),A.TgZ(10,"button",5),A.NdJ("click",function(){return t.onDelete()}),A._uU(11),A.ALo(12,"translate"),A.qZA(),A.qZA(),A.qZA()),2&e&&(A.xp6(1),A.Oqu(A.lcZ(2,9,"DIALOGS.DELETE_TASK_RESULT.TITLE")),A.xp6(2),A.Tol(t.theme),A.xp6(1),A.Q6J("ngIf",t.loading),A.xp6(1),A.Q6J("ngIf",!t.loading),A.xp6(3),A.hij(" ",A.lcZ(9,11,"DIALOGS.DELETE_TASK_RESULT.CANCEL")," "),A.xp6(2),A.Q6J("disabled",t.loading),A.xp6(1),A.hij(" ",A.lcZ(12,13,"DIALOGS.DELETE_TASK_RESULT.REMOVE")," "))},directives:[I.uh,o.O5,I.H8,_.lW,b.$g,I.xY,ct.BZ,ct.w1,ct.fO,ct.Dz,ct.as,ct.nj,ct.ge,ct.ev,ct.XQ,ct.Gk],pipes:[k.X$,o.uU],styles:[""]}),e}(),Ki=l(88884);function ea(e,t){1&e&&A._UZ(0,"mat-spinner",6)}function ta(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"mat-checkbox",13),A.NdJ("change",function(e){return A.CHM(i),A.oxw(2).change(e)}),A.ALo(1,"translate"),A._uU(2),A.ALo(3,"translate"),A.qZA()}if(2&e){var a=A.oxw(2);A.s9C("matTooltip",A.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),A.Q6J("matTooltipDisabled",!a.checkboxesDisabled)("disabled",a.checkboxesDisabled)("checked",a.taskChecked),A.xp6(2),A.hij(" ",A.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_AND_TASK_RESULTS")," ")}}function ia(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"mat-checkbox",14),A.NdJ("change",function(e){return A.CHM(i),A.oxw(2).change(e)}),A.ALo(1,"translate"),A._uU(2),A.ALo(3,"translate"),A.qZA()}if(2&e){var a=A.oxw(2);A.s9C("matTooltip",A.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),A.Q6J("matTooltipDisabled",!a.checkboxesDisabled)("disabled",a.checkboxesDisabled)("checked",a.taskResultsChecked),A.xp6(2),A.hij(" ",A.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_RESULTS")," ")}}function aa(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"perun-web-apps-resources-list",15),A.NdJ("allSelected",function(e){return A.CHM(i),A.oxw(2).disableCheckboxes(e)}),A.qZA()}if(2&e){var a=A.oxw(2);A.Q6J("tableId",a.tableId)("disableRouting",!0)("resources",a.resources)("selection",a.selected)("displayedColumns",a.displayedColumns)}}function na(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"div",7),A.TgZ(1,"p"),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"div"),A.YNc(5,ta,4,9,"mat-checkbox",8),A.YNc(6,ia,4,9,"mat-checkbox",9),A.TgZ(7,"mat-checkbox",10),A.NdJ("change",function(e){return A.CHM(i),A.oxw().change(e)}),A.ALo(8,"translate"),A._uU(9),A.ALo(10,"translate"),A.qZA(),A.qZA(),A.TgZ(11,"p"),A._uU(12),A.ALo(13,"translate"),A.qZA(),A.TgZ(14,"div",11),A._uU(15),A.ALo(16,"translate"),A.qZA(),A.YNc(17,aa,1,5,"perun-web-apps-resources-list",12),A.qZA()}if(2&e){var a=A.oxw();A.xp6(2),A.Oqu(A.lcZ(3,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DESCRIPTION")),A.xp6(3),A.Q6J("ngIf",null!==a.taskId),A.xp6(1),A.Q6J("ngIf",null!==a.taskId),A.xp6(1),A.s9C("matTooltip",A.lcZ(8,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),A.Q6J("matTooltipDisabled",!a.checkboxesDisabled)("disabled",a.checkboxesDisabled)("checked",a.destinationChecked),A.xp6(2),A.hij(" ",A.lcZ(10,15,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_DESTINATION")," "),A.xp6(3),A.Oqu(A.lcZ(13,17,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.DESCRIPTION")),A.xp6(3),A.hij(" ",A.lcZ(16,19,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.ASK")," "),A.xp6(2),A.Q6J("ngIf",!a.loading)}}var sa=function(){var t=function(){function t(i,a,n,l,r,o,c,u){s(this,t),this.dialogRef=i,this.data=a,this.resourcesManager=n,this.tasksManager=l,this.serviceManager=r,this.translate=o,this.notificator=c,this.cd=u,this.loading=!1,this.dataSource=new ct.by(this.data.resource),this.selected=new xe.Ov(!0,e(this.dataSource.data)),this.resources=[],this.displayedColumns=["select","id","vo","name"],this.checkboxesDisabled=!1,this.taskChecked=!0,this.taskResultsChecked=!0,this.destinationChecked=!0,this.tableId=Le.$V}return r(t,[{key:"ngOnInit",value:function(){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}},{key:"remove",value:function(){var e=this;this.loading=!0,this.taskResultsChecked&&!this.taskChecked&&null!==this.taskId&&this.tasksManager.getTaskResultsForGUIByTask(this.taskId).subscribe(function(t){t.forEach(function(t){e.tasksManager.deleteTaskResultById({taskResultId:t.id}).subscribe()})}),this.taskChecked&&null!==this.taskId&&this.tasksManager.deleteTask({task:this.taskId}).subscribe(),this.destinationChecked&&this.serviceManager.getDestinations(this.serviceId,this.facilityId).subscribe(function(t){t.forEach(function(t){e.serviceManager.removeDestination(e.serviceId,e.facilityId,t.destination,t.type).subscribe()})}),this.selected.selected.forEach(function(t){e.resourcesManager.removeService(t.id,e.serviceId).subscribe(function(){e.translate.get("DIALOGS.REMOVE_SERVICE_FROM_FACILITY.SUCCESS").subscribe(function(t){e.notificator.showSuccess(t),e.dialogRef.close(!0)})},function(){return e.loading=!1})})}},{key:"cancel",value:function(){this.dialogRef.close(!1)}},{key:"disableCheckboxes",value:function(e){e&&this.checkboxesDisabled&&this.changeCheckboxes(!0),e||this.checkboxesDisabled||this.changeCheckboxes(!1)}},{key:"changeCheckboxes",value:function(e){this.checkboxesDisabled=!e,this.taskChecked=e,this.taskResultsChecked=e,this.destinationChecked=e,this.cd.detectChanges()}},{key:"change",value:function(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}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(A.Y36(I.so),A.Y36(I.WI),A.Y36(f.xk),A.Y36(f.Ob),A.Y36(f.KK),A.Y36(k.sK),A.Y36(g.V6),A.Y36(A.sBO))},t.\u0275cmp=A.Xpm({type:t,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["id","task","class","right-space","color","warn",3,"matTooltip","matTooltipDisabled","disabled","checked","change",4,"ngIf"],["id","taskResults","class","right-space","color","warn",3,"matTooltip","matTooltipDisabled","disabled","checked","change",4,"ngIf"],["id","destination","color","warn",3,"matTooltip","matTooltipDisabled","disabled","checked","change"],[1,"font-weight-bold"],[3,"tableId","disableRouting","resources","selection","displayedColumns","allSelected",4,"ngIf"],["id","task","color","warn",1,"right-space",3,"matTooltip","matTooltipDisabled","disabled","checked","change"],["id","taskResults","color","warn",1,"right-space",3,"matTooltip","matTooltipDisabled","disabled","checked","change"],[3,"tableId","disableRouting","resources","selection","displayedColumns","allSelected"]],template:function(e,t){1&e&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"div"),A.YNc(4,ea,1,0,"mat-spinner",1),A.YNc(5,na,18,21,"div",2),A.TgZ(6,"div",3),A.TgZ(7,"button",4),A.NdJ("click",function(){return t.cancel()}),A._uU(8),A.ALo(9,"translate"),A.qZA(),A.TgZ(10,"button",5),A.NdJ("click",function(){return t.remove()}),A._uU(11),A.ALo(12,"translate"),A.qZA(),A.qZA(),A.qZA()),2&e&&(A.xp6(1),A.Oqu(A.lcZ(2,9,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.TITLE")),A.xp6(2),A.Tol(t.theme),A.xp6(1),A.Q6J("ngIf",t.loading),A.xp6(1),A.Q6J("ngIf",!t.loading),A.xp6(3),A.hij(" ",A.lcZ(9,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CANCEL")," "),A.xp6(2),A.Q6J("disabled",t.loading||0===t.selected.selected.length),A.xp6(1),A.hij(" ",A.lcZ(12,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.REMOVE")," "))},directives:[I.uh,o.O5,I.H8,_.lW,b.$g,I.xY,de.oG,Z.gM,Ki.C],pipes:[k.X$],styles:[".right-space[_ngcontent-%COMP%]{margin-right:40px}"]}),t}();function la(e,t){1&e&&A._UZ(0,"mat-spinner",6)}function ra(e,t){1&e&&(A.TgZ(0,"div",7),A.TgZ(1,"div",8),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.qZA()),2&e&&(A.xp6(2),A.hij(" ",A.lcZ(3,1,"DIALOGS.DELETE_TASK.DESCRIPTION")," "))}var oa=function(){var e=function(){function e(t,i,a,n,l){s(this,e),this.dialogRef=t,this.data=i,this.tasksManager=a,this.translate=n,this.notificator=l,this.loading=!1}return r(e,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.taskId=this.data.taskId}},{key:"remove",value:function(){var e=this;this.loading=!0,this.tasksManager.deleteTask({task:this.taskId}).subscribe(function(){e.translate.get("DIALOGS.DELETE_TASK.SUCCESS").subscribe(function(t){e.notificator.showSuccess(t),e.dialogRef.close(!0)})},function(){return e.loading=!1})}},{key:"cancel",value:function(){this.dialogRef.close(!1)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(A.Y36(I.so),A.Y36(I.WI),A.Y36(f.Ob),A.Y36(k.sK),A.Y36(g.V6))},e.\u0275cmp=A.Xpm({type:e,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"]],template:function(e,t){1&e&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"div"),A.YNc(4,la,1,0,"mat-spinner",1),A.YNc(5,ra,4,3,"div",2),A.TgZ(6,"div",3),A.TgZ(7,"button",4),A.NdJ("click",function(){return t.cancel()}),A._uU(8),A.ALo(9,"translate"),A.qZA(),A.TgZ(10,"button",5),A.NdJ("click",function(){return t.remove()}),A._uU(11),A.ALo(12,"translate"),A.qZA(),A.qZA(),A.qZA()),2&e&&(A.xp6(1),A.Oqu(A.lcZ(2,9,"DIALOGS.DELETE_TASK.TITLE")),A.xp6(2),A.Tol(t.theme),A.xp6(1),A.Q6J("ngIf",t.loading),A.xp6(1),A.Q6J("ngIf",!t.loading),A.xp6(3),A.hij(" ",A.lcZ(9,11,"DIALOGS.DELETE_TASK.CANCEL")," "),A.xp6(2),A.Q6J("disabled",t.loading),A.xp6(1),A.hij(" ",A.lcZ(12,13,"DIALOGS.DELETE_TASK.DELETE")," "))},directives:[I.uh,o.O5,I.H8,_.lW,b.$g,I.xY],pipes:[k.X$],styles:[""]}),e}(),ca=l(8055),ua=function(){var e=function(){function e(){s(this,e)}return r(e,[{key:"transform",value:function(e){return e.blockedOnFacility?"BLOCKED":e.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED"}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=A.Yjl({name:"serviceStateBlockedToString",type:e,pure:!0}),e}();function da(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"th",18),A.TgZ(1,"mat-checkbox",19),A.NdJ("change",function(e){A.CHM(i);var t=A.oxw();return e&&t.masterToggle(),t.selectionChange.emit()}),A.qZA(),A.qZA()}if(2&e){var a=A.oxw();A.xp6(1),A.Q6J("checked",a.selection.hasValue()&&a.isAllSelected())("indeterminate",a.selection.hasValue()&&!a.isAllSelected())("aria-label",a.checkboxLabel())}}function ha(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"td",20),A.TgZ(1,"mat-checkbox",21),A.NdJ("click",function(e){return e.stopPropagation()})("change",function(e){var t=A.CHM(i).$implicit,a=A.oxw();return e&&a.selection.toggle(t),a.selectionChange.emit()}),A.qZA(),A.qZA()}if(2&e){var a=t.$implicit,n=A.oxw();A.xp6(1),A.Q6J("checked",n.selection.isSelected(a))("aria-label",n.checkboxLabel(a))}}function fa(e,t){1&e&&(A.TgZ(0,"th",22),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TASK_ID")))}function pa(e,t){if(1&e&&(A.TgZ(0,"div"),A._uU(1),A.qZA()),2&e){var i=A.oxw().$implicit;A.xp6(1),A.Oqu(i.task.id)}}function ga(e,t){1&e&&(A.TgZ(0,"div"),A._uU(1,"0"),A.qZA())}function ma(e,t){if(1&e&&(A.TgZ(0,"td",23),A.YNc(1,pa,2,1,"div",24),A.YNc(2,ga,2,0,"div",24),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.Q6J("ngIf",i.task),A.xp6(1),A.Q6J("ngIf",!i.task)}}function va(e,t){1&e&&(A.TgZ(0,"th",22),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.SERVICE_NAME")))}function Aa(e,t){if(1&e&&(A.TgZ(0,"td",25),A._uU(1),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.Oqu(i.service.name)}}function Ia(e,t){1&e&&(A.TgZ(0,"th",22),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STATUS")))}function Sa(e,t){if(1&e&&(A.TgZ(0,"td",25),A._uU(1),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.Oqu(i.status)}}function Ta(e,t){1&e&&(A.TgZ(0,"th",22),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.BLOCKED")))}function ya(e,t){if(1&e&&(A.TgZ(0,"td",25),A._uU(1),A.ALo(2,"serviceStateBlockedToString"),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.Oqu(A.lcZ(2,1,i))}}function ba(e,t){1&e&&(A.TgZ(0,"th",22),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STARTED")))}function Ea(e,t){if(1&e&&(A.TgZ(0,"div"),A._uU(1),A.ALo(2,"date"),A.qZA()),2&e){var i=A.oxw().$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,i.task.startTime,"d.M.y H:mm:ss"))}}function Za(e,t){1&e&&(A.TgZ(0,"div"),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET"),""))}function Ca(e,t){if(1&e&&(A.TgZ(0,"td",25),A.YNc(1,Ea,3,4,"div",24),A.YNc(2,Za,3,3,"div",24),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.Q6J("ngIf",i.task&&i.task.startTime),A.xp6(1),A.Q6J("ngIf",!i.task||!i.task.startTime)}}function _a(e,t){1&e&&(A.TgZ(0,"th",22),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.ENDED")))}function ka(e,t){if(1&e&&(A.TgZ(0,"div"),A._uU(1),A.ALo(2,"date"),A.qZA()),2&e){var i=A.oxw().$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,i.task.endTime,"d.M.y H:mm:ss"))}}function Oa(e,t){1&e&&(A.TgZ(0,"div"),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET")," "))}function La(e,t){if(1&e&&(A.TgZ(0,"td",25),A.YNc(1,ka,3,4,"div",24),A.YNc(2,Oa,3,3,"div",24),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.Q6J("ngIf",i.task&&i.task.endTime),A.xp6(1),A.Q6J("ngIf",!i.task||!i.task.endTime)}}function xa(e,t){1&e&&A._UZ(0,"tr",26)}var Na=function(e,t){return["/facilities",e,"services-status",t]};function Ra(e,t){if(1&e&&A._UZ(0,"tr",27),2&e){var i=t.$implicit,a=A.oxw();A.ekj("disable-outline",a.disableRouting||!i.task)("make-yellow","WARNING"===i.status)("make-green","DONE"===i.status)("make-red","GENERROR"===i.status||"SENDERROR"===i.status||"ERROR"===i.status)("cursor-pointer",!a.disableRouting&&null!==i.task),A.Q6J("routerLink",a.disableRouting||null===i.task?null:A.WLB(12,Na,i.facility.id,i.taskId))("perunWebAppsMiddleClickRouterLink",a.disableRouting||null===i.task?null:A.WLB(15,Na,i.facility.id,i.taskId))}}function Da(e,t){1&e&&(A.TgZ(0,"app-alert",28),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function wa(e,t){1&e&&(A.TgZ(0,"app-alert",28),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NO_SERVICES_STATUS_WARNING"),"\n"))}var Fa=function(){var e=function(){function e(t,i){s(this,e),this.authResolver=t,this.tableCheckbox=i,this.servicesStatus=[],this.displayedColumns=["select","task.id","service.name","status","blocked","task.startTime","task.endTime"],this.selection=new xe.Ov(!0,[]),this.disableRouting=!0,this.selectionChange=new A.vpe,this.pageSizeOptions=p.f7}return r(e,[{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(e){return"task.id"!==e})),this.dataSource=new ct.by(this.servicesStatus),this.setDataSource(),this.dataSource.filterPredicate=function(e,t){var i=t.trim().toLowerCase();return function e(t){var i="";return Object.values(t).forEach(function(t){"object"!=typeof t?i=i+" "+t:null!==t&&(i=i+" "+e(t))}),i.trim().toLowerCase()}(e).includes(i)},this.dataSource.filter=this.filterValue}},{key:"getDataForColumn",value:function(e,t){switch(t){case"task.id":return e.task?e.task.id.toString():e[t];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&&e.task.startTime?(0,o.p6)(e.task.startTime,"d.M.y H:mm:ss","en"):e[t];case"task.endTime":return e.task&&e.task.endTime?(0,o.p6)(e.task.endTime,"d.M.y H:mm:ss","en"):e[t];default:return e[t]}}},{key:"getSortDataForColumn",value:function(e,t){switch(t){case"task.id":return e.task?e.task.id.toString():e[t];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&&e.task.startTime?(0,o.p6)(e.task.startTime,"yyyy.MM.dd HH:mm:ss","en"):e[t];case"task.endTime":return e.task&&e.task.endTime?(0,o.p6)(e.task.endTime,"yyyy.MM.dd HH:mm:ss","en"):e[t];default:return e[t]}}},{key:"exportData",value:function(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.filterPredicate=function(t,i){return(0,p.Sd)(t,i,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,i){return(0,p.pR)(t,i,e.getSortDataForColumn,e)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(e){return e?"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e.service.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}}]),e}();return e.\u0275fac=function(t){return new(t||e)(A.Y36(g.x4),A.Y36(g.UA))},e.\u0275cmp=A.Xpm({type:e,selectors:[["perun-web-apps-services-status-list"]],viewQuery:function(e,t){var i;(1&e&&(A.Gf(wt.YE,7),A.Gf(p.l9,7)),2&e)&&(A.iGM(i=A.CRH())&&(t.matSort=i.first),A.iGM(i=A.CRH())&&(t.child=i.first))},inputs:{servicesStatus:"servicesStatus",displayedColumns:"displayedColumns",selection:"selection",filterValue:"filterValue",tableId:"tableId",disableRouting:"disableRouting"},outputs:{selectionChange:"selectionChange"},features:[A.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",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(e,t){1&e&&(A.TgZ(0,"div",0),A.TgZ(1,"perun-web-apps-table-wrapper",1),A.NdJ("exportData",function(e){return t.exportData(e)}),A.TgZ(2,"table",2),A.ynx(3,3),A.YNc(4,da,2,3,"th",4),A.YNc(5,ha,2,2,"td",5),A.BQk(),A.ynx(6,6),A.YNc(7,fa,3,3,"th",7),A.YNc(8,ma,3,2,"td",8),A.BQk(),A.ynx(9,9),A.YNc(10,va,3,3,"th",7),A.YNc(11,Aa,2,1,"td",10),A.BQk(),A.ynx(12,11),A.YNc(13,Ia,3,3,"th",7),A.YNc(14,Sa,2,1,"td",10),A.BQk(),A.ynx(15,12),A.YNc(16,Ta,3,3,"th",7),A.YNc(17,ya,3,3,"td",10),A.BQk(),A.ynx(18,13),A.YNc(19,ba,3,3,"th",7),A.YNc(20,Ca,3,2,"td",10),A.BQk(),A.ynx(21,14),A.YNc(22,_a,3,3,"th",7),A.YNc(23,La,3,2,"td",10),A.BQk(),A.YNc(24,xa,1,0,"tr",15),A.YNc(25,Ra,1,18,"tr",16),A.qZA(),A.qZA(),A.qZA(),A.YNc(26,Da,3,3,"app-alert",17),A.YNc(27,wa,3,3,"app-alert",17)),2&e&&(A.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.servicesStatus.length),A.xp6(1),A.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),A.xp6(1),A.Q6J("dataSource",t.dataSource),A.xp6(22),A.Q6J("matHeaderRowDef",t.displayedColumns),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns),A.xp6(1),A.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.servicesStatus.length),A.xp6(1),A.Q6J("ngIf",0===t.servicesStatus.length))},directives:[Ft.l,ct.BZ,wt.YE,ct.w1,ct.fO,ct.Dz,ct.as,ct.nj,o.O5,ct.ge,de.oG,ct.ev,wt.nU,ct.XQ,ct.Gk,c.rH,yt.YH,$e.w],pipes:[k.X$,ua,o.uU],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}"]}),e}();function Ya(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"button",11),A.NdJ("click",function(){return A.CHM(i),A.oxw().forcePropagation()}),A._uU(1),A.ALo(2,"translate"),A.qZA()}if(2&e){var a=A.oxw();A.Q6J("disabled",0===a.selected.selected.length),A.xp6(1),A.hij(" ",A.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.FORCE_PROPAGATION")," ")}}function Ua(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"button",11),A.NdJ("click",function(){return A.CHM(i),A.oxw().allow()}),A._uU(1),A.ALo(2,"translate"),A.qZA()}if(2&e){var a=A.oxw();A.Q6J("disabled",0===a.selected.selected.length||a.disableAllowButton),A.xp6(1),A.hij(" ",A.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.ALLOW")," ")}}function qa(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"button",12),A.NdJ("click",function(){return A.CHM(i),A.oxw().block()}),A._uU(1),A.ALo(2,"translate"),A.qZA()}if(2&e){var a=A.oxw();A.Q6J("disabled",0===a.selected.selected.length||a.disableBlockButton),A.xp6(1),A.hij(" ",A.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.BLOCK")," ")}}function Ma(e,t){if(1&e&&(A.TgZ(0,"button",13),A.ALo(1,"translate"),A._uU(2),A.ALo(3,"translate"),A.qZA()),2&e){var i=A.oxw(),a=A.MAs(10);A.s9C("matTooltip",A.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),A.Q6J("matTooltipDisabled",!i.disableRemoveButton)("disabled",i.disableRemoveButton)("matMenuTriggerFor",a),A.xp6(2),A.hij(" ",A.lcZ(3,7,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE")," ")}}function Ja(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"button",7),A.NdJ("click",function(){return A.CHM(i),A.oxw().removeTaskResults()}),A._uU(1),A.ALo(2,"translate"),A.qZA()}2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_TASK_RESULTS")," "))}function Qa(e,t){1&e&&A._UZ(0,"mat-spinner",14)}function Va(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"perun-web-apps-services-status-list",15),A.NdJ("selectionChange",function(){return A.CHM(i),A.oxw().selectionChanged()}),A.qZA()}if(2&e){var a=A.oxw();A.Q6J("tableId",a.tableId)("filterValue",a.filterValue)("servicesStatus",a.servicesStates)("selection",a.selected)("disableRouting",!a.routeAuth)}}var Ha=function(){var e=function(){function e(t,i,a,n,l,r,o,c,u){var d=this;s(this,e),this.tasksManager=t,this.servicesManager=i,this.notificator=a,this.translate=n,this.authResolver=l,this.facilityManager=r,this.resourcesManager=o,this.dialog=c,this.entityStorageService=u,this.servicesStates=[],this.selected=new xe.Ov(!0,[]),this.filterValue="",this.tableId=Le.oK,this.disableAllowButton=!0,this.disableBlockButton=!0,this.disableRemoveButton=!0,n.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_FORCE_PROPAGATION").subscribe(function(e){return d.successFPMessage=e}),n.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_ALLOW").subscribe(function(e){return d.successAllowMessage=e}),n.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_BLOCK").subscribe(function(e){return d.successBlockMessage=e}),n.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_DELETE").subscribe(function(e){return d.successDeleteMessage=e}),n.get("FACILITY_DETAIL.SERVICES_STATUS.ALREADY_DELETED").subscribe(function(e){return d.allreadyDeletedMessage=e})}return r(e,[{key:"ngOnInit",value:function(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}},{key:"forcePropagation",value:function(){var e,t=this,a=i(this.selected.selected);try{for(a.s();!(e=a.n()).done;){var n=e.value;this.servicesManager.forceServicePropagation(n.service.id,n.facility.id).subscribe(function(){t.refreshTable(),t.notificator.showSuccess(t.successFPMessage)})}}catch(s){a.e(s)}finally{a.f()}}},{key:"allow",value:function(){var e,t=this,a=i(this.selected.selected);try{for(a.s();!(e=a.n()).done;){var n=e.value;this.servicesManager.unblockServiceOnFacility(n.service.id,n.facility.id).subscribe(function(){t.refreshTable(),t.notificator.showSuccess(t.successAllowMessage)})}}catch(s){a.e(s)}finally{a.f()}}},{key:"block",value:function(){var e,t=this,a=i(this.selected.selected);try{for(a.s();!(e=a.n()).done;){var n=e.value;this.servicesManager.blockServiceOnFacility(n.service.id,n.facility.id).subscribe(function(){t.refreshTable(),t.notificator.showSuccess(t.successBlockMessage)})}}catch(s){a.e(s)}finally{a.f()}}},{key:"removeTaskResults",value:function(){var e=this;this.tasksManager.getTaskResultsForGUIByTask(this.selected.selected[0].task.id).subscribe(function(t){var i=(0,p.kZ)();i.width="600px",i.data={theme:"facility-theme",taskResults:t},e.dialog.open(Wi,i)})}},{key:"removeServiceFromFacility",value:function(){var e=this;this.facilityManager.getAssignedResourcesByAssignedServiceForFacility(this.selected.selected[0].facility.id,this.selected.selected[0].service.id).subscribe(function(t){var i=(0,p.kZ)();i.width="600px",e.taskId=e.taskIsNull?null:e.selected.selected[0].task.id,0===t.length?(i.data={theme:"facility-theme",taskId:e.taskId},e.dialog.open(oa,i).afterClosed().subscribe(function(t){t&&(e.disableRemoveButton=!0,e.refreshTable())})):e.resourcesManager.getRichResourcesByIds(t.map(function(e){return e.id})).subscribe(function(t){i.data={theme:"facility-theme",taskId:e.taskId,serviceId:e.selected.selected[0].service.id,facilityId:e.selected.selected[0].facility.id,resource:t},e.dialog.open(sa,i).afterClosed().subscribe(function(t){t&&(e.disableRemoveButton=!0,e.refreshTable())})})})}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.tasksManager.getFacilityServicesState(this.facility.id).subscribe(function(t){e.servicesStates=t,e.selected.clear(),e.setAuthRights(),e.loading=!1})}},{key:"setAuthRights",value:function(){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])}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"selectionChanged",value:function(){this.disableBlockButton=!0,this.disableAllowButton=!0,this.disableRemoveButton=1!==this.selected.selected.length,this.disableRemoveButton||(this.taskIsNull=null===this.selected.selected[0].task);var e,t=i(this.selected.selected);try{for(t.s();!(e=t.n()).done;){e.value.blockedOnFacility?this.disableAllowButton=!1:this.disableBlockButton=!1}}catch(a){t.e(a)}finally{t.f()}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(A.Y36(f.Ob),A.Y36(f.KK),A.Y36(g.V6),A.Y36(k.sK),A.Y36(g.x4),A.Y36(f.IQ),A.Y36(f.xk),A.Y36(I.uw),A.Y36(g.fb))},e.\u0275cmp=A.Xpm({type:e,selectors:[["app-facility-service-status"]],decls:18,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2 dropdown-toggle",3,"matTooltip","matTooltipDisabled","disabled","matMenuTriggerFor",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,"tableId","filterValue","servicesStatus","selection","disableRouting","selectionChange",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mr-2","dropdown-toggle",3,"matTooltip","matTooltipDisabled","disabled","matMenuTriggerFor"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","servicesStatus","selection","disableRouting","selectionChange"]],template:function(e,t){1&e&&(A.TgZ(0,"div"),A.TgZ(1,"h1",0),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"perun-web-apps-refresh-button",1),A.NdJ("refresh",function(){return t.refreshTable()}),A.qZA(),A.YNc(5,Ya,3,4,"button",2),A.YNc(6,Ua,3,4,"button",2),A.YNc(7,qa,3,4,"button",3),A.YNc(8,Ma,4,9,"button",4),A.TgZ(9,"mat-menu",null,5),A.YNc(11,Ja,3,3,"button",6),A.TgZ(12,"button",7),A.NdJ("click",function(){return t.removeServiceFromFacility()}),A._uU(13),A.ALo(14,"translate"),A.qZA(),A.qZA(),A.TgZ(15,"perun-web-apps-immediate-filter",8),A.NdJ("filter",function(e){return t.applyFilter(e)}),A.qZA(),A.YNc(16,Qa,1,0,"mat-spinner",9),A.YNc(17,Va,1,5,"perun-web-apps-services-status-list",10),A.qZA()),2&e&&(A.xp6(2),A.Oqu(A.lcZ(3,10,"FACILITY_DETAIL.SERVICES_STATUS.TITLE")),A.xp6(3),A.Q6J("ngIf",t.propagationAuth),A.xp6(1),A.Q6J("ngIf",t.allowAuth),A.xp6(1),A.Q6J("ngIf",t.blockAuth),A.xp6(1),A.Q6J("ngIf",t.deleteAuth),A.xp6(3),A.Q6J("ngIf",!t.taskIsNull),A.xp6(2),A.Oqu(A.lcZ(14,12,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_SERVICE_FROM_FACILITY")),A.xp6(2),A.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TABLE_SEARCH"),A.xp6(1),A.Q6J("ngIf",t.loading),A.xp6(1),A.Q6J("ngIf",!t.loading))},directives:[Be.t,o.O5,ca.VK,ca.OP,je.L,_.lW,Z.gM,ca.p6,b.$g,Fa],pipes:[k.X$],styles:[""]}),e}(),Pa=l(67004),Ga=l(91058),Ba=function(){var e=function(){function e(){s(this,e),this.changeAdvancedFilter=new A.vpe,this.clearFilters=new A.vpe}return r(e,[{key:"ngOnInit",value:function(){this.changeAdvancedFilter.emit(this.advancedFilter)}},{key:"toggleAdvancedFilter",value:function(){this.advancedFilter=!this.advancedFilter,this.changeAdvancedFilter.emit(this.advancedFilter)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=A.Xpm({type:e,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(e,t){1&e&&(A.TgZ(0,"button",0),A.NdJ("click",function(){return t.toggleAdvancedFilter()}),A.TgZ(1,"mat-icon"),A._uU(2,"filter_list"),A.qZA(),A._uU(3),A.ALo(4,"translate"),A.TgZ(5,"mat-icon"),A._uU(6),A.qZA(),A.qZA(),A.TgZ(7,"button",0),A.NdJ("click",function(){return t.clearFilters.emit()}),A.TgZ(8,"mat-icon"),A._uU(9,"filter_list_off"),A.qZA(),A._uU(10),A.ALo(11,"translate"),A.qZA()),2&e&&(A.Gre("mr-2 ",t.filtersCount?"grey":"no-color",""),A.xp6(3),A.AsE(" ",A.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.FILTERS")," ",t.filtersCount?"("+t.filtersCount+")":null," "),A.xp6(3),A.Oqu(t.advancedFilter?"arrow_drop_up":"arrow_drop_down"),A.xp6(4),A.hij(" ",A.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.CLEAR_FILTERS"),"\n"))},directives:[_.lW,E.Hw],pipes:[k.X$],styles:[".grey[_ngcontent-%COMP%]{color:#fff;background-color:grey}.no-color[_ngcontent-%COMP%]{color:#000;background-color:transparent}"]}),e}(),ja=l(27521),$a=l(19386),za=l(42847),Xa=l(44973),Wa=function(){var e=function e(){s(this,e),this.service=null,this.multiple=!1,this.disableAutoSelect=!1,this.theme="",this.serviceSelected=new A.vpe,this.nameFunction=function(e){return e.name},this.secondaryFunction=function(){return""},this.searchFunction=function(e){return e.name}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=A.Xpm({type:e,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(e,t){1&e&&(A.TgZ(0,"perun-web-apps-entity-search-select",0),A.NdJ("entitySelected",function(e){return t.serviceSelected.emit(e)}),A.ALo(1,"translate"),A.ALo(2,"translate"),A.ALo(3,"translate"),A.qZA()),2&e&&A.Q6J("entity",t.service)("entities",t.services)("multiple",t.multiple)("disableAutoSelect",t.disableAutoSelect)("searchFunction",t.searchFunction)("mainTextFunction",t.nameFunction)("secondaryTextFunction",t.secondaryFunction)("selectPlaceholder",A.lcZ(1,11,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.SELECT_SERVICE"))("findPlaceholder",A.lcZ(2,13,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.FIND_SERVICE"))("noEntriesText",A.lcZ(3,15,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.NO_SERVICE_FOUND"))("theme",t.theme)},directives:[Xa.i],pipes:[k.X$],styles:[""]}),e}(),Ka=l(16247);function en(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"div",8),A.TgZ(1,"div",9),A.TgZ(2,"mat-slide-toggle",10),A.NdJ("ngModelChange",function(e){return A.CHM(i),A.oxw().allowed=e})("change",function(){return A.CHM(i),A.oxw().changeFilter()}),A._uU(3),A.ALo(4,"translate"),A.qZA(),A.TgZ(5,"span",11),A._uU(6),A.ALo(7,"translate"),A.qZA(),A.qZA(),A.TgZ(8,"div",1),A.TgZ(9,"perun-web-apps-vo-search-select",12),A.NdJ("voSelected",function(e){return A.CHM(i),A.oxw().voSelected(e)}),A.qZA(),A.TgZ(10,"perun-web-apps-resource-search-select",13),A.NdJ("resourceSelected",function(e){return A.CHM(i),A.oxw().resourceSelected(e)}),A.qZA(),A.TgZ(11,"perun-web-apps-service-search-select",14),A.NdJ("serviceSelected",function(e){return A.CHM(i),A.oxw().serviceSelected(e)}),A.qZA(),A.qZA(),A.qZA()}if(2&e){var a=A.oxw();A.xp6(2),A.Q6J("ngModel",a.allowed),A.xp6(1),A.hij(" ",A.lcZ(4,10,"FACILITY_DETAIL.ALLOWED_USERS.FILTER_ALLOWED")," "),A.xp6(3),A.Oqu(A.lcZ(7,12,a.toggle_messages[a.allowed?1:0])),A.xp6(3),A.Q6J("vo",a.selectedVo)("vos",a.vos),A.xp6(1),A.Q6J("displayStatus",!1)("resource",a.selectedResource)("resources",a.filteredResources),A.xp6(1),A.Q6J("service",a.selectedService)("services",a.filteredServices)}}function tn(e,t){1&e&&A._UZ(0,"mat-spinner",15)}var an=function(){return["id","name","email","logins","organization"]};function nn(e,t){if(1&e&&A._UZ(0,"perun-web-apps-users-dynamic-list",16),2&e){var i=A.oxw();A.Q6J("tableId",i.tableId)("searchString",i.filterValue)("displayedColumns",A.DdM(10,an))("attrNames",i.attributes)("facilityId",i.facility.id)("voId",-1===i.selectedVo.id?null:i.selectedVo.id)("resourceId",-1===i.selectedResource.id?null:i.selectedResource.id)("serviceId",-1===i.selectedService.id?null:i.selectedService.id)("onlyAllowed",i.allowed)("disableRouting",!i.routeAuth)}}var sn=function(){var e=function(){function e(t,i,a,n,l,r){s(this,e),this.facilityService=t,this.serviceService=i,this.resourceService=a,this.authResolver=n,this.storeService=l,this.entityStorageService=r,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=Le.z6,this.toggle_messages=["FACILITY_DETAIL.ALLOWED_USERS.FILTER_ASSIGNED_MSG","FACILITY_DETAIL.ALLOWED_USERS.FILTER_ALLOWED_MSG"],this.advancedFilter=!1}return r(e,[{key:"ngOnInit",value:function(){this.loading=!0,this.attributes=[Pa.r.USER_DEF_ORGANIZATION,Pa.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()}},{key:"changeFilter",value:function(){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)}},{key:"clearFilters",value:function(){this.allowed=!1,this.selectedVo=this.emptyVo,this.selectedResource=this.emptyResource,this.selectedService=this.emptyService,this.filtersCount=0}},{key:"refreshPage",value:function(){var e=this;this.loading=!0,this.facilityService.getAssignedResourcesForFacility(this.facility.id).subscribe(function(t){e.resources=[e.emptyResource].concat(t),e.filteredResources=e.resources,e.selectedResource=e.emptyResource,e.facilityService.getAllowedVos(e.facility.id).subscribe(function(t){e.vos=[e.emptyVo].concat(t),e.selectedVo=e.emptyVo,e.services=[],e.getAssignedServices(e.resources,e.resources.length-1)},function(){return e.loading=!1})},function(){return e.loading=!1})}},{key:"getAssignedServices",value:function(e,t){var i=this;if(0===t)return this.services=[this.emptyService].concat(this.services),this.filteredServices=this.services,this.selectedService=this.emptyService,this.changeFilter(),void(this.loading=!1);this.resourceService.getAssignedServicesToResource(e[t].id).subscribe(function(a){i.services=i.services.concat(a),i.resourceAssignedServices[e[t].id]=a.map(function(e){return e.id}),i.getAssignedServices(e,t-1)},function(){return i.loading=!1})}},{key:"getFilteredServices",value:function(e){var t=this,i=new Set;return e.forEach(function(e){t.resourceAssignedServices[e.id].forEach(function(e){return i.add(e)})}),[this.emptyService].concat(this.services.filter(function(e){return i.has(e.id)}))}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"voSelected",value:function(e){this.selectedVo.id!==e.id&&(this.selectedVo=e,this.selectedResource=this.emptyResource,this.selectedService=this.emptyService,-1===e.id?(this.filteredResources=this.resources,this.filteredServices=this.services):(this.filteredResources=this.resources.filter(function(t){return t.voId===e.id}),this.filteredServices=this.getFilteredServices(this.filteredResources),this.filteredResources=[this.emptyResource].concat(this.filteredResources)),this.changeFilter())}},{key:"resourceSelected",value:function(e){this.selectedResource.id!==e.id&&(this.selectedResource=e,this.selectedService=this.emptyService,this.filteredServices=-1===e.id?this.services:this.getFilteredServices([e]),this.changeFilter())}},{key:"serviceSelected",value:function(e){this.selectedService=e,this.changeFilter()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(A.Y36(f.IQ),A.Y36(f.KK),A.Y36(f.xk),A.Y36(g.x4),A.Y36(g.d6),A.Y36(g.fb))},e.\u0275cmp=A.Xpm({type:e,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,"filtersCount","advancedFilter","changeAdvancedFilter","clearFilters"],["class","advanced-filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","searchString","displayedColumns","attrNames","facilityId","voId","resourceId","serviceId","onlyAllowed","disableRouting",4,"ngIf"],[1,"advanced-filter"],[1,"toggle","filters"],["labelPosition","before",1,"mr-2",3,"ngModel","ngModelChange","change"],[1,"text-muted"],[1,"search-select",3,"vo","vos","voSelected"],[1,"search-select",3,"displayStatus","resource","resources","resourceSelected"],[1,"search-select",3,"service","services","serviceSelected"],[1,"ml-auto","mr-auto"],[3,"tableId","searchString","displayedColumns","attrNames","facilityId","voId","resourceId","serviceId","onlyAllowed","disableRouting"]],template:function(e,t){1&e&&(A.TgZ(0,"div"),A.TgZ(1,"h1",0),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"div",1),A.TgZ(5,"perun-web-apps-refresh-button",2),A.NdJ("refresh",function(){return t.refreshPage()}),A.qZA(),A.TgZ(6,"perun-web-apps-debounce-filter",3),A.NdJ("filter",function(e){return t.applyFilter(e)}),A.qZA(),A.TgZ(7,"perun-web-apps-advanced-filter",4),A.NdJ("changeAdvancedFilter",function(e){return t.advancedFilter=e})("clearFilters",function(){return t.clearFilters()}),A.qZA(),A.qZA(),A.YNc(8,en,12,14,"div",5),A.YNc(9,tn,1,0,"mat-spinner",6),A.YNc(10,nn,1,11,"perun-web-apps-users-dynamic-list",7),A.qZA()),2&e&&(A.xp6(2),A.Oqu(A.lcZ(3,7,"FACILITY_DETAIL.ALLOWED_USERS.TITLE")),A.xp6(4),A.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_USERS.FILTER"),A.xp6(1),A.Q6J("filtersCount",t.filtersCount)("advancedFilter",t.advancedFilter),A.xp6(1),A.Q6J("ngIf",t.advancedFilter),A.xp6(1),A.Q6J("ngIf",t.loading),A.xp6(1),A.Q6J("ngIf",!t.loading))},directives:[Be.t,Ga.P,Ba,o.O5,ja.Rr,re.JJ,re.On,$a.M,za.L,Wa,b.$g,Ka.M],pipes:[k.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 #d3d3d3;padding:15px}"]}),e}(),ln=l(95142);function rn(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"th",20),A.TgZ(1,"mat-checkbox",21),A.NdJ("change",function(e){A.CHM(i);var t=A.oxw();return e?t.masterToggle():null}),A.qZA(),A.qZA()}if(2&e){var a=A.oxw();A.xp6(1),A.Q6J("aria-label",a.checkboxLabel())("checked",a.selection.hasValue()&&a.isAllSelected())("indeterminate",a.selection.hasValue()&&!a.isAllSelected())}}function on(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"td",22),A.TgZ(1,"mat-checkbox",23),A.NdJ("change",function(e){var t=A.CHM(i).$implicit,a=A.oxw();return e?a.selection.toggle(t):null})("click",function(e){return e.stopPropagation()}),A.qZA(),A.qZA()}if(2&e){var a=t.$implicit,n=A.oxw();A.xp6(1),A.Q6J("aria-label",n.checkboxLabel(a))("checked",n.selection.isSelected(a))}}function cn(e,t){1&e&&(A.TgZ(0,"th",24),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RESULT_ID")))}function un(e,t){if(1&e&&(A.TgZ(0,"td",25),A._uU(1),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.Oqu(i.id)}}function dn(e,t){1&e&&(A.TgZ(0,"th",24),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.DESTINATION")))}function hn(e,t){if(1&e&&(A.TgZ(0,"td",25),A._uU(1),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.Oqu(i.destination.destination)}}function fn(e,t){1&e&&(A.TgZ(0,"th",24),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TYPE")))}function pn(e,t){if(1&e&&(A.TgZ(0,"td",25),A._uU(1),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.Oqu(i.destination.type.toUpperCase())}}function gn(e,t){1&e&&(A.TgZ(0,"th",24),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.SERVICE")))}function mn(e,t){if(1&e&&(A.TgZ(0,"td",25),A._uU(1),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.Oqu(i.service.name)}}function vn(e,t){1&e&&(A.TgZ(0,"th",24),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STATUS")))}function An(e,t){if(1&e&&(A.TgZ(0,"td",25),A._uU(1),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.Oqu(i.status)}}function In(e,t){1&e&&(A.TgZ(0,"th",24),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TIME")))}function Sn(e,t){if(1&e&&(A.TgZ(0,"td",25),A._uU(1),A.ALo(2,"date"),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,i.timestamp,"d.M.y H:mm:ss"))}}function Tn(e,t){1&e&&(A.TgZ(0,"th",24),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RETURN_CODE")))}function yn(e,t){if(1&e&&(A.TgZ(0,"td",25),A._uU(1),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.Oqu(i.returnCode)}}function bn(e,t){1&e&&(A.TgZ(0,"th",24),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STANDARD_MESSAGE")))}function En(e,t){if(1&e&&(A.TgZ(0,"span"),A._uU(1),A._UZ(2,"br"),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.Oqu(i)}}function Zn(e,t){if(1&e&&(A.TgZ(0,"td",25),A.YNc(1,En,3,1,"span",26),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.Q6J("ngForOf",i.standardMessage.split("\n"))}}function Cn(e,t){1&e&&(A.TgZ(0,"th",24),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.ERROR_MESSAGE")))}function _n(e,t){if(1&e&&(A.TgZ(0,"td",25),A._uU(1),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.Oqu(i.errorMessage)}}function kn(e,t){1&e&&A._UZ(0,"tr",27)}function On(e,t){if(1&e&&A._UZ(0,"tr",28),2&e){var i=t.$implicit;A.ekj("greenTableItem","DONE"===i.status)("redTableItem","ERROR"===i.status||"DENIED"===i.status)("yellowTableItem","WARNING"===i.status)}}function Ln(e,t){1&e&&(A.TgZ(0,"app-alert",29),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function xn(e,t){1&e&&(A.TgZ(0,"app-alert",29),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.NO_RESULTS_WARNING"),"\n"))}var Nn=function(){var e=function(){function e(t,i){s(this,e),this.authResolver=t,this.tableCheckbox=i,this.pageSizeOptions=p.f7,this.taskResults=[],this.selection=new xe.Ov(!0,[]),this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"]}return r(e,[{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(e){return"id"!==e})),this.dataSource=new ct.by(this.taskResults),this.setDataSource(),this.dataSource.filter=this.filterValue}},{key:"getDataForColumn",value:function(e,t){switch(t){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,o.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""}}},{key:"getSortDataForColumn",value:function(e,t){switch(t){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,o.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""}}},{key:"exportData",value:function(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue,this.dataSource.filterPredicate=function(t,i){return(0,p.Sd)(t,i,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,i){return(0,p.pR)(t,i,e.getSortDataForColumn,e)})}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(e){return e?"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}}]),e}();return e.\u0275fac=function(t){return new(t||e)(A.Y36(g.x4),A.Y36(g.UA))},e.\u0275cmp=A.Xpm({type:e,selectors:[["perun-web-apps-task-results-list"]],viewQuery:function(e,t){var i;(1&e&&(A.Gf(wt.YE,7),A.Gf(p.l9,7)),2&e)&&(A.iGM(i=A.CRH())&&(t.matSort=i.first),A.iGM(i=A.CRH())&&(t.child=i.first))},inputs:{taskResults:"taskResults",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns"},features:[A.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,t){1&e&&(A.TgZ(0,"div",0),A.TgZ(1,"perun-web-apps-table-wrapper",1),A.NdJ("exportData",function(e){return t.exportData(e)}),A.TgZ(2,"table",2),A.ynx(3,3),A.YNc(4,rn,2,3,"th",4),A.YNc(5,on,2,2,"td",5),A.BQk(),A.ynx(6,6),A.YNc(7,cn,3,3,"th",7),A.YNc(8,un,2,1,"td",8),A.BQk(),A.ynx(9,9),A.YNc(10,dn,3,3,"th",7),A.YNc(11,hn,2,1,"td",8),A.BQk(),A.ynx(12,10),A.YNc(13,fn,3,3,"th",7),A.YNc(14,pn,2,1,"td",8),A.BQk(),A.ynx(15,11),A.YNc(16,gn,3,3,"th",7),A.YNc(17,mn,2,1,"td",8),A.BQk(),A.ynx(18,12),A.YNc(19,vn,3,3,"th",7),A.YNc(20,An,2,1,"td",8),A.BQk(),A.ynx(21,13),A.YNc(22,In,3,3,"th",7),A.YNc(23,Sn,3,4,"td",8),A.BQk(),A.ynx(24,14),A.YNc(25,Tn,3,3,"th",7),A.YNc(26,yn,2,1,"td",8),A.BQk(),A.ynx(27,15),A.YNc(28,bn,3,3,"th",7),A.YNc(29,Zn,2,1,"td",8),A.BQk(),A.ynx(30,16),A.YNc(31,Cn,3,3,"th",7),A.YNc(32,_n,2,1,"td",8),A.BQk(),A.YNc(33,kn,1,0,"tr",17),A.YNc(34,On,1,6,"tr",18),A.qZA(),A.qZA(),A.qZA(),A.YNc(35,Ln,3,3,"app-alert",19),A.YNc(36,xn,3,3,"app-alert",19)),2&e&&(A.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.taskResults.length),A.xp6(1),A.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),A.xp6(1),A.Q6J("dataSource",t.dataSource),A.xp6(31),A.Q6J("matHeaderRowDef",t.displayedColumns),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns),A.xp6(1),A.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.taskResults.length),A.xp6(1),A.Q6J("ngIf",0===t.taskResults.length))},directives:[Ft.l,ct.BZ,wt.YE,ct.w1,ct.fO,ct.Dz,ct.as,ct.nj,o.O5,ct.ge,de.oG,ct.ev,wt.nU,o.sg,ct.XQ,ct.Gk,$e.w],pipes:[k.X$,o.uU],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}"]}),e}();function Rn(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"button",7),A.NdJ("click",function(){return A.CHM(i),A.oxw().removeTaskResult()}),A._uU(1),A.ALo(2,"translate"),A.qZA()}if(2&e){var a=A.oxw();A.Q6J("disabled",0===a.selection.selected.length),A.xp6(1),A.hij(" ",A.lcZ(2,2,"FACILITY_DETAIL.TASK_RESULTS.REMOVE"),"\n")}}function Dn(e,t){1&e&&A._UZ(0,"mat-spinner",8)}function wn(e,t){if(1&e&&A._UZ(0,"perun-web-apps-task-results-list",9),2&e){var i=A.oxw();A.Q6J("tableId",i.tableId)("displayedColumns",i.displayedColumns)("filterValue",i.filterValue)("selection",i.selection)("taskResults",i.taskResults)}}var Fn=function(){var e=function(){function e(t,i,a,n,l){s(this,e),this.route=t,this.taskManager=i,this.authResolver=a,this.dialog=n,this.entityStorageService=l,this.loading=!1,this.filterValue="",this.selection=new xe.Ov(!0,[]),this.task={id:0},this.tableId=Le.e5,this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"],this.removeAuth=!1}return r(e,[{key:"ngOnInit",value:function(){var e=this;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(function(t){e.taskId=t.taskId,e.taskManager.getTaskById(e.taskId).subscribe(function(t){e.task=t,e.refreshTable()})})}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.taskManager.getTaskResultsForGUIByTask(this.taskId).subscribe(function(t){e.selection.clear(),e.taskResults=t,e.loading=!1})}},{key:"removeTaskResult",value:function(){var e=this,t=(0,p.kZ)();t.width="600px",t.data={theme:"facility-theme",taskResults:this.selection.selected},this.dialog.open(Wi,t).afterClosed().subscribe(function(t){t&&e.refreshTable()})}},{key:"applyFilter",value:function(e){this.filterValue=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(A.Y36(c.gz),A.Y36(f.Ob),A.Y36(g.x4),A.Y36(I.uw),A.Y36(g.fb))},e.\u0275cmp=A.Xpm({type:e,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,t){1&e&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.TgZ(3,"span",1),A._uU(4),A.qZA(),A.qZA(),A.TgZ(5,"perun-web-apps-refresh-button",2),A.NdJ("refresh",function(){return t.refreshTable()}),A.qZA(),A.YNc(6,Rn,3,4,"button",3),A.TgZ(7,"perun-web-apps-immediate-filter",4),A.NdJ("filter",function(e){return t.applyFilter(e)}),A.qZA(),A.YNc(8,Dn,1,0,"mat-spinner",5),A.YNc(9,wn,1,5,"perun-web-apps-task-results-list",6)),2&e&&(A.xp6(1),A.AsE("",A.lcZ(2,7,"FACILITY_DETAIL.TASK_RESULTS.TITLE")," - ",t.task.service?t.task.service.name:""," "),A.xp6(3),A.hij(" \xa0#",t.task.id," "),A.xp6(2),A.Q6J("ngIf",t.removeAuth),A.xp6(1),A.Q6J("placeholder","FACILITY_DETAIL.TASK_RESULTS.FILTER"),A.xp6(1),A.Q6J("ngIf",t.loading),A.xp6(1),A.Q6J("ngIf",!t.loading))},directives:[Be.t,o.O5,je.L,_.lW,b.$g,Nn],pipes:[k.X$],styles:[""]}),e}(),Yn=l(53134),Un=function(){var e=function(){function e(t,i){s(this,e),this.dialogRef=t,this.data=i,this.theme=""}return r(e,[{key:"ngOnInit",value:function(){this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSkip",value:function(){this.dialogRef.close(!0)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(A.Y36(I.so),A.Y36(I.WI))},e.\u0275cmp=A.Xpm({type:e,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,t){1&e&&(A.TgZ(0,"div"),A.TgZ(1,"h1",0),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"div",1),A._uU(5),A.ALo(6,"translate"),A.qZA(),A.TgZ(7,"div",2),A.TgZ(8,"button",3),A.NdJ("click",function(){return t.onCancel()}),A._uU(9),A.ALo(10,"translate"),A.qZA(),A.TgZ(11,"button",4),A.NdJ("click",function(){return t.onSkip()}),A._uU(12),A.ALo(13,"translate"),A.qZA(),A.qZA(),A.qZA()),2&e&&(A.Tol(t.theme),A.xp6(2),A.Oqu(A.lcZ(3,7,"DIALOGS.NO_SERVICE.TITLE")),A.xp6(3),A.hij(" ",A.lcZ(6,9,"DIALOGS.NO_SERVICE.INFO")," "),A.xp6(4),A.hij(" ",A.lcZ(10,11,"DIALOGS.NO_SERVICE.CANCEL")," "),A.xp6(3),A.hij(" ",A.lcZ(13,13,"DIALOGS.NO_SERVICE.SKIP")," "))},directives:[I.uh,I.xY,I.H8,_.lW],pipes:[k.X$],styles:[""]}),e}(),qn=function(){var e=function(){function e(t,i){s(this,e),this.dialogRef=t,this.data=i,this.theme=""}return r(e,[{key:"ngOnInit",value:function(){this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSkip",value:function(){this.dialogRef.close(!0)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(A.Y36(I.so),A.Y36(I.WI))},e.\u0275cmp=A.Xpm({type:e,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,t){1&e&&(A.TgZ(0,"div"),A.TgZ(1,"h1",0),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"div",1),A._uU(5),A.ALo(6,"translate"),A.qZA(),A.TgZ(7,"div",2),A.TgZ(8,"button",3),A.NdJ("click",function(){return t.onCancel()}),A._uU(9),A.ALo(10,"translate"),A.qZA(),A.TgZ(11,"button",4),A.NdJ("click",function(){return t.onSkip()}),A._uU(12),A.ALo(13,"translate"),A.qZA(),A.qZA(),A.qZA()),2&e&&(A.Tol(t.theme),A.xp6(2),A.Oqu(A.lcZ(3,7,"DIALOGS.CONFIG_UNSAVED.TITLE")),A.xp6(3),A.hij(" ",A.lcZ(6,9,"DIALOGS.CONFIG_UNSAVED.INFO")," "),A.xp6(4),A.hij(" ",A.lcZ(10,11,"DIALOGS.CONFIG_UNSAVED.CANCEL")," "),A.xp6(3),A.hij(" ",A.lcZ(13,13,"DIALOGS.CONFIG_UNSAVED.SKIP")," "))},directives:[I.uh,I.xY,I.H8,_.lW],pipes:[k.X$],styles:[""]}),e}();function Mn(e,t){if(1&e&&(A.TgZ(0,"div",3),A._UZ(1,"i",4),A.ALo(2,"translate"),A.qZA()),2&e){var i=A.oxw();A.xp6(1),A.Q6J("innerHTML",A.lcZ(2,1,i.info),A.oJD)}}function Jn(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"button",9),A.NdJ("click",function(){return A.CHM(i),A.oxw(2).onKeep()}),A._uU(1),A.ALo(2,"translate"),A.qZA()}2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"DIALOGS.CANCEL_CONFIG.KEEP")," "))}function Qn(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"div",5),A.TgZ(1,"button",6),A.NdJ("click",function(){return A.CHM(i),A.oxw().onCancel()}),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"button",7),A.NdJ("click",function(){return A.CHM(i),A.oxw().onDelete()}),A.TgZ(5,"mat-icon"),A._uU(6," warning "),A.qZA(),A._uU(7),A.ALo(8,"translate"),A.qZA(),A.YNc(9,Jn,3,3,"button",8),A.qZA()}if(2&e){var a=A.oxw();A.xp6(2),A.hij(" ",A.lcZ(3,3,"DIALOGS.CANCEL_CONFIG.CANCEL")," "),A.xp6(5),A.hij(" ",A.lcZ(8,5,"DIALOGS.CANCEL_CONFIG.DELETE")," "),A.xp6(2),A.Q6J("ngIf",!a.lastStep)}}var Vn=function(){var e=function(){function e(t,i,a,n,l){s(this,e),this.dialogRef=t,this.data=i,this.facilityService=a,this.notificator=n,this.translate=l,this.theme="",this.title="",this.info="",this.loading=!1}return r(e,[{key:"ngOnInit",value:function(){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")}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onDelete",value:function(){var e=this;this.loading=!0,this.facilityService.deleteFacility(this.data.facilityId,!0).subscribe(function(){e.notificator.showSuccess(e.translate.instant("DIALOGS.CANCEL_CONFIG.SUCCESS")),e.dialogRef.close(!0),e.loading=!1},function(){return e.loading=!1})}},{key:"onKeep",value:function(){this.dialogRef.close(!0)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(A.Y36(I.so),A.Y36(I.WI),A.Y36(f.IQ),A.Y36(g.V6),A.Y36(k.sK))},e.\u0275cmp=A.Xpm({type:e,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,t){1&e&&(A.TgZ(0,"div"),A.TgZ(1,"h1",0),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.YNc(4,Mn,3,3,"div",1),A.YNc(5,Qn,10,7,"div",2),A.qZA()),2&e&&(A.Tol(t.theme),A.xp6(2),A.Oqu(A.lcZ(3,6,t.title)),A.xp6(2),A.Q6J("ngIf",!t.loading),A.xp6(1),A.Q6J("ngIf",!t.loading))},directives:[I.uh,o.O5,I.xY,I.H8,_.lW,E.Hw],pipes:[k.X$],styles:[""]}),e}(),Hn=l(98470),Pn=l(70663),Gn=l(65267),Bn=l(91721),jn=l(45001),$n=["stepper"];function zn(e,t){1&e&&(A._uU(0),A.ALo(1,"translate")),2&e&&A.Oqu(A.lcZ(1,1,"FACILITY_CONFIGURATION.OWNERS"))}function Xn(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"app-facility-settings-owners",14),A.NdJ("ownerEmitter",function(e){return A.CHM(i),A.oxw().owners=e}),A.qZA()}}function Wn(e,t){1&e&&(A._uU(0),A.ALo(1,"translate")),2&e&&A.Oqu(A.lcZ(1,1,"FACILITY_CONFIGURATION.HOSTS"))}function Kn(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"app-facility-hosts",15),A.NdJ("hostEmitter",function(e){return A.CHM(i),A.oxw().hosts=e}),A.qZA()}2&e&&A.Q6J("disableRouting",!0)}function es(e,t){1&e&&(A._uU(0),A.ALo(1,"translate")),2&e&&A.Oqu(A.lcZ(1,1,"FACILITY_CONFIGURATION.SERVICES"))}var ts=function(){return["select","id","name","enabled","description"]};function is(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"h1",16),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"app-alert",17),A._uU(4),A.ALo(5,"translate"),A.qZA(),A.TgZ(6,"div",18),A.TgZ(7,"perun-web-apps-immediate-filter",19),A.NdJ("filter",function(e){return A.CHM(i),A.oxw().applyFilter(e)}),A.qZA(),A.TgZ(8,"perun-web-apps-service-package-search-select",20),A.NdJ("packageSelected",function(e){return A.CHM(i),A.oxw().packagesSelected(e)}),A.qZA(),A.qZA(),A.TgZ(9,"app-services-list",21),A.NdJ("selectionChanged",function(){return A.CHM(i),A.oxw().singleServiceSelected()}),A.qZA()}if(2&e){var a=A.oxw();A.xp6(1),A.Oqu(A.lcZ(2,13,"FACILITY_CONFIGURATION.SERVICES")),A.xp6(3),A.hij(" ",A.lcZ(5,15,"FACILITY_CONFIGURATION.SERVICES_INFO")," "),A.xp6(3),A.Q6J("placeholder","FACILITY_CONFIGURATION.SERVICES_FILTER"),A.xp6(1),A.Q6J("servicePackages",a.servicePackages)("selectedPackage",a.selectedPackages)("multiple",!0)("disableAutoSelect",!0)("theme","facility-theme"),A.xp6(1),A.Q6J("disableRouting",!0)("selection",a.selection)("services",a.services)("filterValue",a.filterValue)("displayedColumns",A.DdM(17,ts))}}function as(e,t){1&e&&(A._uU(0),A.ALo(1,"translate")),2&e&&A.Oqu(A.lcZ(1,1,"FACILITY_CONFIGURATION.SERVICE_CONFIG"))}function ns(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"perun-web-apps-service-search-select",27),A.NdJ("serviceSelected",function(e){return A.CHM(i),A.oxw(2).filterAttributes(e)}),A.qZA()}if(2&e){var a=A.oxw(2);A.Q6J("disableAutoSelect",!0)("services",a.selection.selected)("multiple",!0)("theme","facility-theme")}}function ss(e,t){1&e&&A._UZ(0,"mat-spinner",28)}function ls(e,t){if(1&e&&A._UZ(0,"perun-web-apps-attributes-list",29),2&e){var i=A.oxw(2);A.Q6J("emptyListText","FACILITY_CONFIGURATION.EMPTY_REQ_ATT")("selection",i.attSelection)("attributes",i.filteredAttributes)}}function rs(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"h1",16),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"app-alert",17),A._uU(4),A.ALo(5,"translate"),A.qZA(),A.TgZ(6,"div",18),A.TgZ(7,"button",22),A.NdJ("click",function(){return A.CHM(i),A.oxw().onRemoveAttributes()}),A._uU(8),A.ALo(9,"translate"),A.qZA(),A.TgZ(10,"button",23),A.NdJ("click",function(){return A.CHM(i),A.oxw().onSaveAttributes()}),A._uU(11),A.ALo(12,"translate"),A.qZA(),A.YNc(13,ns,1,4,"perun-web-apps-service-search-select",24),A.qZA(),A.YNc(14,ss,1,0,"mat-spinner",25),A.YNc(15,ls,1,3,"perun-web-apps-attributes-list",26)}if(2&e){var a=A.oxw(),n=A.MAs(5);A.xp6(1),A.Oqu(A.lcZ(2,9,"FACILITY_CONFIGURATION.SERVICE_CONFIG")),A.xp6(3),A.hij(" ",A.lcZ(5,11,"FACILITY_CONFIGURATION.ATT_INFO")," "),A.xp6(3),A.Q6J("disabled",0===a.attSelection.selected.length),A.xp6(1),A.hij(" ",A.lcZ(9,13,"FACILITY_CONFIGURATION.REMOVE")," "),A.xp6(2),A.Q6J("disabled",0===a.attSelection.selected.length),A.xp6(1),A.hij(" ",A.lcZ(12,15,"FACILITY_CONFIGURATION.SAVE")," "),A.xp6(2),A.Q6J("ngIf",n.selectedIndex===a.ATTRIBUTES_IDX),A.xp6(1),A.Q6J("ngIf",a.processing),A.xp6(1),A.Q6J("ngIf",!a.processing)}}function os(e,t){1&e&&(A._uU(0),A.ALo(1,"translate")),2&e&&A.Oqu(A.lcZ(1,1,"FACILITY_CONFIGURATION.DESTINATION_CONFIG"))}var cs=function(){return["select","destinationId","service","warn","destination","type","propagationType"]};function us(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"app-perun-web-apps-facility-services-destinations",30),A.NdJ("destinationEmitter",function(e){return A.CHM(i),A.oxw().destinations=e}),A.qZA()}if(2&e){var a=A.oxw();A.Q6J("title","FACILITY_CONFIGURATION.DESTINATION_CONFIG")("loading",a.processing)("displayedColumns",A.DdM(5,cs))("configServices",a.selection.selected)("configServicesIds",a.serviceIds)}}function ds(e,t){1&e&&(A._uU(0),A.ALo(1,"translate")),2&e&&A.Oqu(A.lcZ(1,1,"FACILITY_CONFIGURATION.MANAGERS"))}function hs(e,t){1&e&&A._UZ(0,"app-perun-web-apps-facility-settings-managers",31),2&e&&A.Q6J("disableRouting",!0)("disableSelf",!0)}function fs(e,t){1&e&&(A._uU(0),A.ALo(1,"translate")),2&e&&A.Oqu(A.lcZ(1,1,"FACILITY_CONFIGURATION.SUMMARY"))}function ps(e,t){1&e&&A._UZ(0,"mat-spinner",28)}var gs=function(){return["id","name","contact","type"]};function ms(e,t){if(1&e&&A._UZ(0,"perun-web-apps-owners-list",48),2&e){var i=A.oxw(3);A.Q6J("owners",i.owners)("displayedColumns",A.DdM(2,gs))}}function vs(e,t){1&e&&A._UZ(0,"mat-spinner",28)}var As=function(){return["id","name"]};function Is(e,t){if(1&e&&A._UZ(0,"app-hosts-list",49),2&e){var i=A.oxw(3);A.Q6J("disableRouting",!0)("hosts",i.hosts)("displayedColumns",A.DdM(3,As))}}function Ss(e,t){1&e&&A._UZ(0,"mat-spinner",28)}var Ts=function(){return["id","name","enabled","script","description"]},ys=function(){return["id","displayName","value","description"]},bs=function(){return["destinationId","service","warn","destination","type","propagationType"]},Es=function(){return["id","name","email","logins","organization"]},Zs=function(){return["id","vo","name","description"]};function Cs(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"mat-accordion"),A.TgZ(1,"mat-expansion-panel",34),A.TgZ(2,"mat-expansion-panel-header"),A.TgZ(3,"mat-panel-title"),A._UZ(4,"mat-icon",35),A._uU(5),A.ALo(6,"translate"),A.qZA(),A.qZA(),A.TgZ(7,"h1",16),A._uU(8),A.ALo(9,"translate"),A.qZA(),A.YNc(10,ps,1,0,"mat-spinner",25),A.YNc(11,ms,1,3,"perun-web-apps-owners-list",36),A.qZA(),A.TgZ(12,"mat-expansion-panel",34),A.TgZ(13,"mat-expansion-panel-header"),A.TgZ(14,"mat-panel-title"),A._UZ(15,"mat-icon",37),A._uU(16),A.ALo(17,"translate"),A.qZA(),A.qZA(),A.TgZ(18,"h1",16),A._uU(19),A.ALo(20,"translate"),A.qZA(),A.YNc(21,vs,1,0,"mat-spinner",25),A.YNc(22,Is,1,4,"app-hosts-list",38),A.qZA(),A.TgZ(23,"mat-expansion-panel",34),A.TgZ(24,"mat-expansion-panel-header"),A.TgZ(25,"mat-panel-title"),A._UZ(26,"mat-icon",39),A._uU(27),A.ALo(28,"translate"),A.qZA(),A.qZA(),A.TgZ(29,"h1",16),A._uU(30),A.ALo(31,"translate"),A.qZA(),A._UZ(32,"app-services-list",40),A.qZA(),A.TgZ(33,"mat-expansion-panel",41),A.NdJ("opened",function(){return A.CHM(i),A.oxw(2).getNonEmptyAttributes()}),A.TgZ(34,"mat-expansion-panel-header"),A.TgZ(35,"mat-panel-title"),A._UZ(36,"mat-icon",37),A._uU(37),A.ALo(38,"translate"),A.qZA(),A.qZA(),A.TgZ(39,"h1",16),A._uU(40),A.ALo(41,"translate"),A.qZA(),A._UZ(42,"perun-web-apps-attributes-list",42),A.qZA(),A.TgZ(43,"mat-expansion-panel",43),A.NdJ("expandedChange",function(e){return A.CHM(i),A.oxw(2).destinationServiceMissing=e}),A.TgZ(44,"mat-expansion-panel-header"),A.TgZ(45,"mat-panel-title"),A._UZ(46,"mat-icon",44),A._uU(47),A.ALo(48,"translate"),A.qZA(),A.qZA(),A.TgZ(49,"h1",16),A._uU(50),A.ALo(51,"translate"),A.qZA(),A.YNc(52,Ss,1,0,"mat-spinner",25),A._UZ(53,"app-perun-web-apps-destination-list",45),A.qZA(),A.TgZ(54,"mat-expansion-panel"),A.TgZ(55,"mat-expansion-panel-header"),A.TgZ(56,"mat-panel-title"),A._UZ(57,"mat-icon",46),A._uU(58),A.ALo(59,"translate"),A.qZA(),A.qZA(),A._UZ(60,"app-managers-page",47),A.qZA(),A.qZA()}if(2&e){var a=A.oxw(2);A.Q6J("@.disabled",!0),A.xp6(1),A.Q6J("disabled",0===a.owners.length),A.xp6(1),A.ekj("cursor-default",0===a.owners.length),A.xp6(3),A.hij(" ",A.lcZ(6,49,"FACILITY_CONFIGURATION.OWNERS")," "),A.xp6(3),A.Oqu(A.lcZ(9,51,"FACILITY_CONFIGURATION.OWNERS")),A.xp6(2),A.Q6J("ngIf",a.processing),A.xp6(1),A.Q6J("ngIf",!a.processing),A.xp6(1),A.Q6J("disabled",0===a.hosts.length),A.xp6(1),A.ekj("cursor-default",0===a.hosts.length),A.xp6(3),A.hij(" ",A.lcZ(17,53,"FACILITY_CONFIGURATION.HOSTS")," "),A.xp6(3),A.Oqu(A.lcZ(20,55,"FACILITY_CONFIGURATION.HOSTS")),A.xp6(2),A.Q6J("ngIf",a.processing),A.xp6(1),A.Q6J("ngIf",!a.processing),A.xp6(1),A.Q6J("disabled",0===a.selection.selected.length),A.xp6(1),A.ekj("cursor-default",0===a.selection.selected.length),A.xp6(3),A.hij(" ",A.lcZ(28,57,"FACILITY_CONFIGURATION.SERVICES")," "),A.xp6(3),A.Oqu(A.lcZ(31,59,"FACILITY_CONFIGURATION.SERVICES")),A.xp6(2),A.Q6J("disableRouting",!0)("services",a.selection.selected)("displayedColumns",A.DdM(71,Ts)),A.xp6(1),A.Q6J("disabled",0===a.selection.selected.length),A.xp6(1),A.ekj("cursor-default",0===a.selection.selected.length),A.xp6(3),A.hij(" ",A.lcZ(38,61,"FACILITY_CONFIGURATION.SERVICE_CONFIG")," "),A.xp6(3),A.Oqu(A.lcZ(41,63,"FACILITY_CONFIGURATION.ATTS")),A.xp6(2),A.Q6J("displayedColumns",A.DdM(72,ys))("emptyListText","FACILITY_CONFIGURATION.EMPTY_REQ_ATT")("attributes",a.filteredAttributes),A.xp6(1),A.Q6J("expanded",a.destinationServiceMissing)("disabled",0===a.selection.selected.length&&0===a.destinations.length),A.xp6(1),A.ekj("cursor-default",0===a.selection.selected.length&&0===a.destinations.length),A.xp6(3),A.hij(" ",A.lcZ(48,65,"FACILITY_CONFIGURATION.DESTINATION_CONFIG")," "),A.xp6(3),A.Oqu(A.lcZ(51,67,"FACILITY_CONFIGURATION.DESTINATION")),A.xp6(2),A.Q6J("ngIf",a.processing),A.xp6(1),A.Q6J("destinations",a.destinations)("services",a.serviceIds)("displayedColumns",A.DdM(73,bs)),A.xp6(5),A.hij(" ",A.lcZ(59,69,"FACILITY_CONFIGURATION.MANAGERS")," "),A.xp6(2),A.Q6J("complementaryObject",a.facility)("configMode",!0)("disableRouting",!0)("complementaryObjectType","Facility")("availableRoles",a.availableRoles)("displayedUserColumns",A.DdM(74,Es))("displayedGroupColumns",A.DdM(75,Zs))}}function _s(e,t){if(1&e&&(A.TgZ(0,"app-alert",17),A._UZ(1,"i",32),A.ALo(2,"translate"),A.qZA(),A.YNc(3,Cs,61,76,"mat-accordion",33)),2&e){A.oxw();var i=A.MAs(5);A.xp6(1),A.Q6J("innerHTML",A.lcZ(2,2,"FACILITY_CONFIGURATION.SUMMARY_INFO"),A.oJD),A.xp6(2),A.Q6J("ngIf",i.selectedIndex===i.steps.length-1)}}function ks(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"button",50),A.NdJ("click",function(){return A.CHM(i),A.oxw().back()}),A._uU(1),A.ALo(2,"translate"),A.qZA()}2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"FACILITY_CONFIGURATION.BACK")," "))}function Os(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"button",51),A.NdJ("click",function(){return A.CHM(i),A.oxw().next()}),A._uU(1),A.ALo(2,"translate"),A.qZA()}if(2&e){A.oxw();var a=A.MAs(5);A.ekj("mr-2",void 0!==a&&0!==a.selectedIndex)("ml-auto",!(void 0!==a&&0!==a.selectedIndex)),A.xp6(1),A.hij(" ",A.lcZ(2,5,"FACILITY_CONFIGURATION.NEXT")," ")}}function Ls(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"button",52),A.NdJ("click",function(){return A.CHM(i),A.oxw().onFinish()}),A._uU(1),A.ALo(2,"translate"),A.qZA()}2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"FACILITY_CONFIGURATION.FINISH")," "))}var xs,Ns=function(){var t=function(){function t(e,i,a,n,l,r,o,c,u,d){var h=this;s(this,t),this.attributesManager=e,this.serviceManager=i,this.facilityService=a,this.cd=n,this.dialog=l,this.notificator=r,this.translate=o,this.router=c,this.guiAuthResolver=u,this.entityStorageService=d,this.processing=!1,this.allowNavigate=!1,this.attributes=[],this.attributeIds=new Set,this.filteredAttributes=[],this.attributesPerService=new Map,this.attSelection=new xe.Ov(!0,[]),this.services=[],this.serviceIds=new Set,this.servicesPerPackage=new Map,this.servicePackages=[],this.selectedPackages=[],this.selection=new xe.Ov(!0,[]),this.owners=[],this.hosts=[],this.destinations=[],this.destinationServiceMissing=!1,this.availableRoles=[],this.filterValue="",this.saveMsg="",this.removeMsg="",this.BEFORE_OPTIONAL_IDX=2,this.ATTRIBUTES_IDX=3,this.DESTINATIONS_IDX=4,this.AFTER_OPTIONAL_IDX=5,this.serviceControl=new re.NI(!1,re.kI.requiredTrue),this.attributesControl=new re.NI(!0,re.kI.requiredTrue),this.translate.get("FACILITY_CONFIGURATION.ATT_SAVED").subscribe(function(e){return h.saveMsg=e}),this.translate.get("FACILITY_CONFIGURATION.ATT_REMOVED").subscribe(function(e){return h.removeMsg=e})}return r(t,[{key:"ngOnInit",value:function(){var e=this;this.facility=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Facility"),this.serviceManager.getServicesPackages().subscribe(function(t){e.servicePackages=t,e.getServicePackageServices(t,0)})}},{key:"ngAfterViewInit",value:function(){var e=this;this.cd.detectChanges(),this.attSelection.changed.subscribe(function(){e.attributesControl.setValue(0===e.attSelection.selected.length)})}},{key:"onCancel",value:function(){var e=this,t=(0,p.kZ)();t.width="550px",t.data={facilityId:this.facility.id,lastStep:this.stepper.selectedIndex===this.stepper.steps.length-1,theme:"facility-theme"},this.dialog.open(Vn,t).afterClosed().subscribe(function(t){t&&(e.allowNavigate=!0,sessionStorage.removeItem("newFacilityId"),e.router.navigate(["facilities"],{queryParamsHandling:"merge"}))})}},{key:"getServicePackageServices",value:function(t,i){var a=this;i===t.length?this.serviceManager.getServices().subscribe(function(e){a.services=e}):this.serviceManager.getServicesFromServicesPackage(t[i].id).subscribe(function(n){a.servicesPerPackage.set(t[i].id,new Set(e(n.map(function(e){return e.id})))),a.getServicePackageServices(t,i+1)})}},{key:"getServiceRequiredAttributes",value:function(e,t){var i=this;t!==e.length&&this.attributesManager.getRequiredAttributesDefinition(e[t].id).subscribe(function(a){a=a.filter(function(e){return i.attributeIds.has(e.id)}),i.attributesPerService.set(e[t].id,a.map(function(e){return e.id})),i.getServiceRequiredAttributes(e,t+1)})}},{key:"setServiceControl",value:function(){this.serviceControl.setValue(0!==this.selection.selected.length)}},{key:"buildServiceSet",value:function(e){var t=this,i=new Set;return e.forEach(function(e){t.servicesPerPackage.get(e.id).forEach(function(e){return i.add(e)})}),i}},{key:"setDiff",value:function(t,i){return new Set(e(t).filter(function(e){return!i.has(e)}))}},{key:"setIntersect",value:function(t,i){return new Set(e(t).filter(function(e){return i.has(e)}))}},{key:"setSymDif",value:function(t,i){var a=this.buildServiceSet(t),n=this.buildServiceSet(i),s=this.setDiff(a,n),l=this.setDiff(n,a);return new Set([].concat(e(s),e(l)))}},{key:"filterService",value:function(e,t){var a,n=new Set,s=i(t);try{for(s.s();!(a=s.n()).done;){var l=a.value,r=this.setIntersect(e,this.servicesPerPackage.get(l.id));0!==r.size&&r.forEach(function(e){return n.add(e)})}}catch(o){s.e(o)}finally{s.f()}return n}},{key:"packageSelectionEqual",value:function(e){var t=this;return e.length===this.selectedPackages.length&&(e.forEach(function(e){if(-1===t.selectedPackages.findIndex(function(t){return t.id===e.id}))return!1}),!0)}},{key:"packagesSelected",value:function(e){var t=this;if(!this.packageSelectionEqual(e)){this.processing=!0;var a=new Set;if(e&&0!==e.length?a=this.setSymDif(this.selectedPackages,e):this.selectedPackages.forEach(function(e){t.servicesPerPackage.get(e.id).forEach(function(e){return a.add(e)})}),0!==a.size){var n,s=this.filterService(a,e.filter(function(e){return t.selectedPackages.findIndex(function(t){return t.id===e.id})<0})),l=this.filterService(a,this.selectedPackages.filter(function(t){return e.findIndex(function(e){return e.id===t.id})<0})),r=i(this.services);try{for(r.s();!(n=r.n()).done;){var o=n.value;s.has(o.id)?this.selection.select(o):l.has(o.id)&&this.selection.deselect(o)}}catch(c){r.e(c)}finally{r.f()}this.selectedPackages=e,this.setServiceControl(),this.processing=!1}}}},{key:"checkPackageComplete",value:function(){var e,t=this,a=[],n=i(this.selectedPackages);try{for(n.s();!(e=n.n()).done;){var s,l=e.value,r=!0,o=i(this.servicesPerPackage.get(l.id));try{var c=function(){var e=s.value;if(-1===t.selection.selected.findIndex(function(t){return t.id===e}))return r=!1,"break"};for(o.s();!(s=o.n()).done;){if("break"===c())break}}catch(u){o.e(u)}finally{o.f()}r&&a.push(l)}}catch(u){n.e(u)}finally{n.f()}this.selectedPackages=a}},{key:"singleServiceSelected",value:function(){this.setServiceControl(),this.processing||this.checkPackageComplete()}},{key:"back",value:function(){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()}},{key:"openSkipDialog",value:function(){var e=this,t=(0,p.kZ)();t.width="400px",t.data={theme:"facility-theme"},this.dialog.open(Un,t).afterClosed().subscribe(function(t){t&&(e.serviceControl.setValue(!0),e.stepper.selectedIndex=e.AFTER_OPTIONAL_IDX)})}},{key:"getRequiredAttributes",value:function(){var e=this;this.processing=!0,this.attributesManager.getRequiredAttributesFacilityServices(this.selection.selected.map(function(e){return e.id}),this.facility.id).subscribe(function(t){e.attSelection.clear(),e.attributes=t.filter(function(e){return!(0,p.Hm)(e)}),e.filteredAttributes=e.attributes,e.attributes.forEach(function(t){return e.attributeIds.add(t.id)}),e.getServiceRequiredAttributes(e.selection.selected,0),e.processing=!1})}},{key:"onSaveAttributes",value:function(){var e=this;return new Promise(function(t,i){e.processing=!0,e.attributesManager.setFacilityAttributes({facility:e.facility.id,attributes:e.attSelection.selected}).subscribe(function(){e.notificator.showSuccess(e.saveMsg),e.attSelection.clear(),e.processing=!1,t()},function(){e.processing=!1,i()})})}},{key:"openUnsavedAttsDialog",value:function(){var e=this,t=(0,p.kZ)();t.width="400px",t.data={theme:"facility-theme"},this.dialog.open(qn,t).afterClosed().subscribe(function(t){t&&e.onSaveAttributes().then(function(){e.stepper.next()},function(){return e.getRequiredAttributes()})})}},{key:"next",value:function(){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()}},{key:"onFinish",value:function(){this.allowNavigate=!0,sessionStorage.removeItem("newFacilityId"),this.router.navigate(["facilities",this.facility.id],{queryParamsHandling:"merge"})}},{key:"onRemoveAttributes",value:function(){var e=this;this.processing=!0;var t=this.attSelection.selected.map(function(e){return e.id});this.attributesManager.removeFacilityAttributes(this.facility.id,t).subscribe(function(){e.notificator.showSuccess(e.removeMsg),e.getRequiredAttributes(),e.processing=!1})}},{key:"filterAttributes",value:function(e){if(void 0!==e&&0!==e.length){var t,a=new Set,n=i(e);try{for(n.s();!(t=n.n()).done;){var s=t.value;this.attributesPerService.get(s.id).forEach(function(e){return a.add(e)})}}catch(c){n.e(c)}finally{n.f()}this.filteredAttributes=[];var l,r=i(this.attributes);try{for(r.s();!(l=r.n()).done;){var o=l.value;a.has(o.id)&&this.filteredAttributes.push(o)}}catch(c){r.e(c)}finally{r.f()}}else this.filteredAttributes=this.attributes}},{key:"getNonEmptyAttributes",value:function(){this.filteredAttributes=this.attributes.filter(function(e){if(e.value&&(!(0,Hn.k)(e.value)||0!==e.value.length))return e})}},{key:"checkDestinationDependency",value:function(t){t!==this.BEFORE_OPTIONAL_IDX&&t!==this.DESTINATIONS_IDX||(this.serviceIds=new Set(e(this.selection.selected.map(function(e){return e.id}))),this.destinationServicePresent())}},{key:"navigationStep",value:function(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()}},{key:"getOwners",value:function(){var e=this;this.processing=!0,this.facilityService.getFacilityOwners(this.facility.id).subscribe(function(t){e.owners=t,e.processing=!1})}},{key:"getHosts",value:function(){var e=this;this.processing=!0,this.facilityService.getHosts(this.facility.id).subscribe(function(t){e.hosts=t,e.processing=!1})}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"destinationServicePresent",value:function(){var e,t=i(this.destinations);try{for(t.s();!(e=t.n()).done;){var a=e.value;if(!this.serviceIds.has(a.service.id))return void(this.destinationServiceMissing=!0)}}catch(n){t.e(n)}finally{t.f()}this.destinationServiceMissing=!1}},{key:"canDeactivate",value:function(){return this.allowNavigate||this.onCancel(),this.allowNavigate}}]),t}();return t.\u0275fac=function(e){return new(e||t)(A.Y36(f.H8),A.Y36(f.KK),A.Y36(f.IQ),A.Y36(A.sBO),A.Y36(I.uw),A.Y36(g.V6),A.Y36(k.sK),A.Y36(c.F0),A.Y36(g.x4),A.Y36(g.fb))},t.\u0275cmp=A.Xpm({type:t,selectors:[["app-facility-configuration-page"]],viewQuery:function(e,t){var i;(1&e&&A.Gf($n,5),2&e)&&(A.iGM(i=A.CRH())&&(t.stepper=i.first))},decls:34,vars:15,consts:[[1,"facility-theme"],[1,"page-title"],[3,"linear","selectionChange"],["stepper",""],["matStepLabel",""],["matStepContent",""],[3,"stepControl"],["optional","true",3,"stepControl","editable"],[3,"optional","editable"],[1,"actions"],["mat-flat-button","",3,"click"],["class","ml-auto mr-2","mat-flat-button","",3,"click",4,"ngIf"],["mat-flat-button","","color","accent",3,"mr-2","ml-auto","click",4,"ngIf"],["class","mr-2","mat-flat-button","","color","accent",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,"servicePackages","selectedPackage","multiple","disableAutoSelect","theme","packageSelected"],[3,"disableRouting","selection","services","filterValue","displayedColumns","selectionChanged"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","accent",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","selection","attributes",4,"ngIf"],[1,"service-search-select",3,"disableAutoSelect","services","multiple","theme","serviceSelected"],[1,"ml-auto","mr-auto"],[3,"emptyListText","selection","attributes"],[3,"title","loading","displayedColumns","configServices","configServicesIds","destinationEmitter"],[3,"disableRouting","disableSelf"],[3,"innerHTML"],[4,"ngIf"],[3,"disabled"],["svgIcon","perun-owner-grey",1,"mr-2"],[3,"owners","displayedColumns",4,"ngIf"],["svgIcon","perun-hosts",1,"mr-2"],[3,"disableRouting","hosts","displayedColumns",4,"ngIf"],["svgIcon","perun-service",1,"mr-2"],[3,"disableRouting","services","displayedColumns"],[3,"disabled","opened"],[3,"displayedColumns","emptyListText","attributes"],[3,"expanded","disabled","expandedChange"],["svgIcon","perun-service_destination",1,"mr-2"],[3,"destinations","services","displayedColumns"],["svgIcon","perun-manager",1,"mr-2"],[3,"complementaryObject","configMode","disableRouting","complementaryObjectType","availableRoles","displayedUserColumns","displayedGroupColumns"],[3,"owners","displayedColumns"],[3,"disableRouting","hosts","displayedColumns"],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["mat-flat-button","","color","accent",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"]],template:function(e,t){if(1&e&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"mat-stepper",2,3),A.NdJ("selectionChange",function(e){return t.navigationStep(e)}),A.TgZ(6,"mat-step"),A.YNc(7,zn,2,3,"ng-template",4),A.YNc(8,Xn,1,0,"ng-template",5),A.qZA(),A.TgZ(9,"mat-step"),A.YNc(10,Wn,2,3,"ng-template",4),A.YNc(11,Kn,1,1,"ng-template",5),A.qZA(),A.TgZ(12,"mat-step",6),A.YNc(13,es,2,3,"ng-template",4),A.YNc(14,is,10,18,"ng-template",5),A.qZA(),A.TgZ(15,"mat-step",7),A.YNc(16,as,2,3,"ng-template",4),A.YNc(17,rs,16,17,"ng-template",5),A.qZA(),A.TgZ(18,"mat-step",8),A.YNc(19,os,2,3,"ng-template",4),A.YNc(20,us,1,6,"ng-template",5),A.qZA(),A.TgZ(21,"mat-step"),A.YNc(22,ds,2,3,"ng-template",4),A.YNc(23,hs,1,2,"ng-template",5),A.qZA(),A.TgZ(24,"mat-step"),A.YNc(25,fs,2,3,"ng-template",4),A.YNc(26,_s,4,4,"ng-template",5),A.qZA(),A.qZA(),A.TgZ(27,"div",9),A.TgZ(28,"button",10),A.NdJ("click",function(){return t.onCancel()}),A._uU(29),A.ALo(30,"translate"),A.qZA(),A.YNc(31,ks,3,3,"button",11),A.YNc(32,Os,3,7,"button",12),A.YNc(33,Ls,3,3,"button",13),A.qZA(),A.qZA()),2&e){var i=A.MAs(5);A.xp6(2),A.hij(" ",A.lcZ(3,11,"FACILITY_CONFIGURATION.TITLE")," "),A.xp6(2),A.Q6J("linear",!0),A.xp6(8),A.Q6J("stepControl",t.serviceControl),A.xp6(3),A.Q6J("stepControl",t.attributesControl)("editable",0!==t.selection.selected.length),A.xp6(3),A.Q6J("optional",0===t.destinations.length)("editable",0!==t.selection.selected.length||0!==t.destinations.length),A.xp6(11),A.hij(" ",A.lcZ(30,13,"FACILITY_CONFIGURATION.CANCEL")," "),A.xp6(2),A.Q6J("ngIf",void 0!==i&&0!==i.selectedIndex),A.xp6(1),A.Q6J("ngIf",void 0!==i&&i.selectedIndex!==i.steps.length-1),A.xp6(1),A.Q6J("ngIf",void 0!==i&&i.selectedIndex===i.steps.length-1)}},directives:[Pn.Vq,Pn.C0,Pn.VY,Pn.BY,_.lW,o.O5,Tt,Kt,$e.w,je.L,Gn.F,Bn.Q,Wa,b.$g,Ii.p,nt,Oe,jn.pp,jn.ib,jn.yz,jn.yK,E.Hw,ze.q,ke.s,st.Q,jt],pipes:[k.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}"]}),t}(),Rs=function(){var e=function(){function e(t){s(this,e),this.router=t}return r(e,[{key:"canActivate",value:function(e){return e.parent.params.facilityId===sessionStorage.getItem("newFacilityId")||(this.router.navigate(["/home"],{queryParamsHandling:"merge"}),!1)}},{key:"canDeactivate",value:function(e){return e.canDeactivate()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(A.LFG(c.F0))},e.\u0275prov=A.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Ds=[{path:"",component:u.P},{path:":facilityId",component:w,children:[{path:"",component:q,data:{animation:"FacilityOverviewPage"}},{path:"attributes",component:ie,data:{animation:"FacilityAttributesPage"}},{path:"resources",component:M.f,data:{animation:"FacilityResourcesPage"}},{path:"allowed-users",component:sn,data:{animation:"FacilityAllowedUsersPage"}},{path:"allowed-groups",component:J.o,data:{animation:"FacilityAllowedGroupsPage"}},{path:"services-status",component:Ha,data:{animation:"FacilityServiceStatusPage"}},{path:"services-status/:taskId",component:Fn,data:{animation:"FacilityTaskResultsPage"}},{path:"service-config",component:_e,data:{animation:"FacilityServiceConfigPage"}},{path:"services-destinations",component:nt,data:{animation:"FacilityServicesDestinationsPage"}},{path:"hosts",component:Kt,data:{animation:"FacilityHostsPage"}},{path:"hosts/:hostId",component:bi,data:{animation:"FacilityHostsDetailPage"}},{path:"settings",component:H,children:[{path:"",component:B,data:{animation:"FacilitySettingsOverviewPage"}},{path:"owners",component:Tt,data:{animation:"FacilitySettingOwnersPage"}},{path:"managers",component:Oe,data:{animation:"FacilitySettingsManagersPage"}},{path:"security-teams",component:qi,data:{animation:"FacilitySecurityTeamsPage"}},{path:"blacklist",component:gi,data:{animation:"FacilitySettingsBlackListPage"}}]},{path:"configuration",component:Ns,canActivate:[Rs],canDeactivate:[Rs]}]},{path:":facilityId/resources/:resourceId",component:Q.b,children:[{path:"",component:V.H,data:{animation:"ResourceOverviewPage"}},{path:"attributes",component:se.X,data:{animation:"ResourceAttributesPage"}},{path:"groups",component:le.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:Ji.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"members",component:ln.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:Yn.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:ae.t,children:[{path:"",component:ne.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:Mi.O,data:{animation:"ResourceSettingsManagersPage"}}]}]}],ws=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=A.oAB({type:e}),e.\u0275inj=A.cJS({imports:[[c.Bz.forChild(Ds)],c.Bz]}),e}(),Fs=l(28780),Ys=l(22727),Us=l(65515),qs=l(21781),Ms=((xs=function e(){s(this,e)}).\u0275fac=function(e){return new(e||xs)},xs.\u0275mod=A.oAB({type:xs}),xs.\u0275inj=A.cJS({providers:[ue.dp],imports:[[o.ez,ws,Fs.m,Ys.r,mi.ez,ue.d4,Us.UsersModule,qs.AdminModule]]}),xs)}}])}(); \ No newline at end of file diff --git a/dist/apps/admin-gui/749-es5.acb04cd96f576727553a.js b/dist/apps/admin-gui/749-es5.acb04cd96f576727553a.js new file mode 100644 index 000000000..7c89a7c14 --- /dev/null +++ b/dist/apps/admin-gui/749-es5.acb04cd96f576727553a.js @@ -0,0 +1 @@ +!function(){function e(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(e)||function(){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 t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==i)return;var a,n,s=[],l=!0,r=!1;try{for(i=i.call(e);!(l=(a=i.next()).done)&&(s.push(a.value),!t||s.length!==t);l=!0);}catch(o){r=!0,n=o}finally{try{l||null==i.return||i.return()}finally{if(r)throw n}}return s}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=a(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,s=function(){};return{s:s,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,r=!0,o=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return r=e.done,e},e:function(e){o=!0,l=e},f:function(){try{r||null==i.return||i.return()}finally{if(o)throw l}}}}function a(e,t){if(e){if("string"==typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,a=new Array(t);i_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]]))}},{key:"addHost",value:function(){var e=this,t=(0,p.kZ)();t.width="600px",t.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open(_t,t).afterClosed().subscribe(function(t){t&&e.refreshTable()})}},{key:"removeHost",value:function(){var e=this,t=(0,p.kZ)();t.width="600px",t.data={facilityId:this.facility.id,theme:"facility-theme",hosts:this.selected.selected},this.dialog.open(Dt,t).afterClosed().subscribe(function(t){t&&e.refreshTable()})}},{key:"applyFilter",value:function(e){this.filterValue=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(A.Y36(I.uw),A.Y36(f.IQ),A.Y36(g.x4),A.Y36(g.fb))},e.\u0275cmp=A.Xpm({type:e,selectors:[["app-facility-hosts"]],inputs:{disableRouting:"disableRouting"},outputs:{hostEmitter:"hostEmitter"},decls:10,vars:8,consts:[[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,"tableId","filterValue","hosts","selection","displayedColumns","disableRouting","facilityId",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,"tableId","filterValue","hosts","selection","displayedColumns","disableRouting","facilityId"]],template:function(e,t){1&e&&(A.TgZ(0,"div"),A.TgZ(1,"h1",0),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"perun-web-apps-refresh-button",1),A.NdJ("refresh",function(){return t.refreshTable()}),A.qZA(),A.YNc(5,$t,3,3,"button",2),A.YNc(6,zt,3,4,"button",3),A.TgZ(7,"perun-web-apps-immediate-filter",4),A.NdJ("filter",function(e){return t.applyFilter(e)}),A.qZA(),A.YNc(8,Xt,1,0,"mat-spinner",5),A.YNc(9,Wt,1,7,"app-hosts-list",6),A.qZA()),2&e&&(A.xp6(2),A.Oqu(A.lcZ(3,6,"FACILITY_DETAIL.HOSTS.TITLE")),A.xp6(3),A.Q6J("ngIf",t.addAuth),A.xp6(1),A.Q6J("ngIf",t.removeAuth),A.xp6(1),A.Q6J("placeholder","FACILITY_DETAIL.HOSTS.FILTER"),A.xp6(1),A.Q6J("ngIf",t.loading),A.xp6(1),A.Q6J("ngIf",!t.loading))},directives:[Be.t,o.O5,je.L,_.lW,y.$g,jt],pipes:[k.X$],styles:[""]}),e}();function ei(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"th",15),A.TgZ(1,"mat-checkbox",16),A.NdJ("change",function(e){A.CHM(i);var t=A.oxw();return e?t.masterToggle():null}),A.qZA(),A.qZA()}if(2&e){var a=A.oxw();A.xp6(1),A.Q6J("aria-label",a.checkboxLabel())("checked",a.selection.hasValue()&&a.isAllSelected())("indeterminate",a.selection.hasValue()&&!a.isAllSelected())}}function ti(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"td",17),A.TgZ(1,"mat-checkbox",18),A.NdJ("change",function(e){var t=A.CHM(i).$implicit,a=A.oxw();return e?a.selection.toggle(t):null})("click",function(e){return e.stopPropagation()}),A.qZA(),A.qZA()}if(2&e){var a=t.$implicit,n=A.oxw();A.xp6(1),A.Q6J("aria-label",n.checkboxLabel(a))("checked",n.selection.isSelected(a))}}function ii(e,t){1&e&&(A.TgZ(0,"th",19),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.USER_ID")," "))}function ai(e,t){if(1&e&&(A.TgZ(0,"td",20),A._uU(1),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.hij(" ",i[1].id," ")}}function ni(e,t){1&e&&(A.TgZ(0,"th",19),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NAME")," "))}function si(e,t){if(1&e&&(A.TgZ(0,"td",21),A._uU(1),A.ALo(2,"userFullName"),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.hij(" ",A.lcZ(2,1,i[1])," ")}}function li(e,t){1&e&&(A.TgZ(0,"th",19),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.REASON")," "))}function ri(e,t){if(1&e&&(A.TgZ(0,"td",21),A._uU(1),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.hij(" ",i[0].description," ")}}function oi(e,t){1&e&&A._UZ(0,"tr",22)}function ci(e,t){1&e&&A._UZ(0,"tr",23)}function ui(e,t){1&e&&(A.TgZ(0,"app-alert",24),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function di(e,t){1&e&&(A.TgZ(0,"app-alert",24),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NO_BANS_WARNING"),"\n"))}var hi=function(){var e=function(){function e(t,i){s(this,e),this.authResolver=t,this.tableCheckbox=i,this.bansOnFacilitiesWithUsers=[],this.selection=new Oe.Ov(!0,[]),this.displayedColumns=["select","userId","name","reason"],this.pageSizeOptions=p.f7}return r(e,[{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(e){return"userId"!==e})),this.dataSource=new ct.by(this.bansOnFacilitiesWithUsers),this.setDataSource(),this.dataSource.filter=this.filterValue}},{key:"getDataForColumn",value:function(e,t){switch(t){case"userId":return e[1].id.toString();case"reason":return e[0].description;case"name":return(0,p.hu)(e[1]);default:return""}}},{key:"exportData",value:function(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.filterPredicate=function(t,i){return(0,p.Sd)(t,i,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,i){return(0,p.pR)(t,i,e.getDataForColumn,e)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(e){return e?"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e[0].userId+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}}]),e}();return e.\u0275fac=function(t){return new(t||e)(A.Y36(g.x4),A.Y36(g.UA))},e.\u0275cmp=A.Xpm({type:e,selectors:[["app-perun-web-apps-blacklist-list"]],viewQuery:function(e,t){var i;(1&e&&(A.Gf(wt.YE,7),A.Gf(p.l9,7)),2&e)&&(A.iGM(i=A.CRH())&&(t.matSort=i.first),A.iGM(i=A.CRH())&&(t.child=i.first))},inputs:{bansOnFacilitiesWithUsers:"bansOnFacilitiesWithUsers",selection:"selection",filterValue:"filterValue",tableId:"tableId"},features:[A.TTD],decls:19,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"],["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,t){1&e&&(A.TgZ(0,"div",0),A.TgZ(1,"perun-web-apps-table-wrapper",1),A.NdJ("exportData",function(e){return t.exportData(e)}),A.TgZ(2,"table",2),A.ynx(3,3),A.YNc(4,ei,2,3,"th",4),A.YNc(5,ti,2,2,"td",5),A.BQk(),A.ynx(6,6),A.YNc(7,ii,3,3,"th",7),A.YNc(8,ai,2,1,"td",8),A.BQk(),A.ynx(9,9),A.YNc(10,ni,3,3,"th",7),A.YNc(11,si,3,3,"td",10),A.BQk(),A.ynx(12,11),A.YNc(13,li,3,3,"th",7),A.YNc(14,ri,2,1,"td",10),A.BQk(),A.YNc(15,oi,1,0,"tr",12),A.YNc(16,ci,1,0,"tr",13),A.qZA(),A.qZA(),A.qZA(),A.YNc(17,ui,3,3,"app-alert",14),A.YNc(18,di,3,3,"app-alert",14)),2&e&&(A.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.bansOnFacilitiesWithUsers.length),A.xp6(1),A.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),A.xp6(1),A.Q6J("dataSource",t.dataSource),A.xp6(13),A.Q6J("matHeaderRowDef",t.displayedColumns),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns),A.xp6(1),A.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.bansOnFacilitiesWithUsers.length),A.xp6(1),A.Q6J("ngIf",0===t.bansOnFacilitiesWithUsers.length))},directives:[Ft.l,ct.BZ,wt.YE,ct.w1,ct.fO,ct.Dz,ct.as,ct.nj,o.O5,ct.ge,de.oG,ct.ev,wt.nU,ct.XQ,ct.Gk,$e.w],pipes:[k.X$,me.d],styles:[""]}),e}();function fi(e,t){1&e&&A._UZ(0,"mat-spinner",5)}function pi(e,t){if(1&e&&A._UZ(0,"app-perun-web-apps-blacklist-list",6),2&e){var i=A.oxw();A.Q6J("tableId",i.tableId)("filterValue",i.filterValue)("bansOnFacilitiesWithUsers",i.bansOnFacilitiesWithUsers)("selection",i.selected)}}var gi=function(){var e=function(){function e(t,i,a){s(this,e),this.facilitiesManager=t,this.usersManager=i,this.entityStorageService=a,this.bansOnFacilitiesWithUsers=[],this.selected=new Oe.Ov(!0,[]),this.filterValue="",this.tableId=xe.NG}return r(e,[{key:"ngOnInit",value:function(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.refreshTable()}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.facilitiesManager.getBansForFacility(this.facility.id).subscribe(function(t){var a,n=i(t);try{for(n.s();!(a=n.n()).done;){var s=a.value,l=void 0;e.usersManager.getUserById(s.userId).subscribe(function(e){l=e}),e.bansOnFacilitiesWithUsers.push([s,l])}}catch(r){n.e(r)}finally{n.f()}e.selected.clear(),e.loading=!1})}},{key:"applyFilter",value:function(e){this.filterValue=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(A.Y36(f.IQ),A.Y36(f.Fv),A.Y36(g.fb))},e.\u0275cmp=A.Xpm({type:e,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,"tableId","filterValue","bansOnFacilitiesWithUsers","selection",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","bansOnFacilitiesWithUsers","selection"]],template:function(e,t){1&e&&(A.TgZ(0,"div"),A.TgZ(1,"h1",0),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"perun-web-apps-refresh-button",1),A.NdJ("refresh",function(){return t.refreshTable()}),A.qZA(),A.TgZ(5,"perun-web-apps-immediate-filter",2),A.NdJ("filter",function(e){return t.applyFilter(e)}),A.ALo(6,"translate"),A.qZA(),A.YNc(7,fi,1,0,"mat-spinner",3),A.YNc(8,pi,1,4,"app-perun-web-apps-blacklist-list",4),A.qZA()),2&e&&(A.xp6(2),A.Oqu(A.lcZ(3,4,"FACILITY_DETAIL.SETTINGS.BLACKLIST.TITLE")),A.xp6(3),A.Q6J("placeholder",A.lcZ(6,6,"FACILITY_DETAIL.SETTINGS.BLACKLIST.FILTER")),A.xp6(2),A.Q6J("ngIf",t.loading),A.xp6(1),A.Q6J("ngIf",!t.loading))},directives:[Be.t,je.L,o.O5,y.$g,hi],pipes:[k.X$],styles:[""]}),e}(),mi=l(41939),vi=l(13572),Ai=l(40695),Ii=l(41186),Si=["list"];function Ti(e,t){1&e&&A._UZ(0,"mat-spinner",7)}function bi(e,t){if(1&e&&A._UZ(0,"perun-web-apps-attributes-list",8,9),2&e){var i=A.oxw();A.Q6J("tableId",i.tableId)("attributes",i.attributes)("selection",i.selected)}}var yi=function(){var e=function(){function e(t,i,a,n){s(this,e),this.dialog=t,this.attributesManager=i,this.facilityManager=a,this.route=n,this.attributes=[],this.selected=new Oe.Ov(!0,[]),this.host={beanName:"",id:0},this.tableId=xe.rF}return r(e,[{key:"ngOnInit",value:function(){var e=this;this.route.params.subscribe(function(t){e.hostId=t.hostId,e.facilityManager.getHostById(e.hostId).subscribe(function(t){e.host=t}),e.refreshTable()})}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.attributesManager.getHostAttributes(this.hostId).subscribe(function(t){e.attributes=(0,p.MX)(t),e.selected.clear(),e.loading=!1})}},{key:"onSave",value:function(){var e=this;this.list.updateMapAttributes();var t=(0,p.kZ)();t.width="450px",t.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected},this.dialog.open(m.wA,t).afterClosed().subscribe(function(t){t&&e.refreshTable()})}},{key:"addAttribute",value:function(){var e=this,t=(0,p.kZ)();t.width="1050px",t.data={entityId:this.hostId,entity:"host",notEmptyAttributes:this.attributes,style:"facility-theme"},this.dialog.open(Ai.n,t).afterClosed().subscribe(function(t){"saved"===t&&e.refreshTable()})}},{key:"removeAttribute",value:function(){var e=this,t=(0,p.kZ)();t.width="450px",t.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected,theme:"facility-theme"},this.dialog.open(vi.k,t).afterClosed().subscribe(function(t){t&&e.refreshTable()})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(A.Y36(I.uw),A.Y36(f.H8),A.Y36(f.IQ),A.Y36(c.gz))},e.\u0275cmp=A.Xpm({type:e,selectors:[["app-facility-hosts-detail"]],viewQuery:function(e,t){var i;(1&e&&A.Gf(Si,5),2&e)&&(A.iGM(i=A.CRH())&&(t.list=i.first))},decls:16,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","attributes","selection",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"tableId","attributes","selection"],["list",""]],template:function(e,t){1&e&&(A.TgZ(0,"div"),A.TgZ(1,"h1",0),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"perun-web-apps-refresh-button",1),A.NdJ("refresh",function(){return t.refreshTable()}),A.qZA(),A.TgZ(5,"button",2),A.NdJ("click",function(){return t.addAttribute()}),A._uU(6),A.ALo(7,"translate"),A.qZA(),A.TgZ(8,"button",3),A.NdJ("click",function(){return t.onSave()}),A._uU(9),A.ALo(10,"translate"),A.qZA(),A.TgZ(11,"button",4),A.NdJ("click",function(){return t.removeAttribute()}),A._uU(12),A.ALo(13,"translate"),A.qZA(),A.YNc(14,Ti,1,0,"mat-spinner",5),A.YNc(15,bi,2,3,"perun-web-apps-attributes-list",6),A.qZA()),2&e&&(A.xp6(2),A.AsE(" ",A.lcZ(3,9,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.TITLE")," ",t.host.hostname," "),A.xp6(4),A.hij(" ",A.lcZ(7,11,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.ADD")," "),A.xp6(2),A.Q6J("disabled",0===t.selected.selected.length),A.xp6(1),A.hij(" ",A.lcZ(10,13,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.SAVE")," "),A.xp6(2),A.Q6J("disabled",0===t.selected.selected.length),A.xp6(1),A.hij(" ",A.lcZ(13,15,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.REMOVE")," "),A.xp6(2),A.Q6J("ngIf",t.loading),A.xp6(1),A.Q6J("ngIf",!t.loading))},directives:[Be.t,_.lW,o.O5,y.$g,Ii.p],pipes:[k.X$],styles:[""]}),e}();function Ei(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"th",15),A.TgZ(1,"mat-checkbox",16),A.NdJ("change",function(e){A.CHM(i);var t=A.oxw();return e?t.masterToggle():null}),A.qZA(),A.qZA()}if(2&e){var a=A.oxw();A.xp6(1),A.Q6J("aria-label",a.checkboxLabel())("checked",a.selection.hasValue()&&a.isAllSelected())("indeterminate",a.selection.hasValue()&&!a.isAllSelected())}}function Zi(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"td",17),A.TgZ(1,"mat-checkbox",18),A.NdJ("change",function(e){var t=A.CHM(i).$implicit,a=A.oxw();return e?a.selection.toggle(t):null})("click",function(e){return e.stopPropagation()}),A.qZA(),A.qZA()}if(2&e){var a=t.$implicit,n=A.oxw();A.xp6(1),A.Q6J("aria-label",n.checkboxLabel(a))("checked",n.selection.isSelected(a))}}function Ci(e,t){1&e&&(A.TgZ(0,"th",19),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.ID")," "))}function _i(e,t){if(1&e&&(A.TgZ(0,"td",20),A._uU(1),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.hij(" ",i.id," ")}}function ki(e,t){1&e&&(A.TgZ(0,"th",19),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NAME")," "))}function Li(e,t){if(1&e&&(A.TgZ(0,"td",21),A._uU(1),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.Oqu(i.name)}}function xi(e,t){1&e&&(A.TgZ(0,"th",19),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.DESCRIPTION")," "))}function Oi(e,t){if(1&e&&(A.TgZ(0,"td",21),A._uU(1),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.Oqu(i.description)}}function Ni(e,t){1&e&&A._UZ(0,"tr",22)}function Ri(e,t){1&e&&A._UZ(0,"tr",23)}function Di(e,t){1&e&&(A.TgZ(0,"app-alert",24),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function wi(e,t){1&e&&(A.TgZ(0,"app-alert",24),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NO_SECURITY_TEAMS_WARNING"),"\n"))}var Fi=function(){var e=function(){function e(t,i){s(this,e),this.authResolver=t,this.tableCheckbox=i,this.securityTeams=[],this.selection=new Oe.Ov(!0,[]),this.displayedColumns=["select","id","name","description"],this.pageSizeOptions=p.f7}return r(e,[{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(e){return"id"!==e})),this.dataSource=new ct.by(this.securityTeams),this.setDataSource(),this.dataSource.filter=this.filterValue}},{key:"getDataForColumn",value:function(e,t){switch(t){case"id":return e.id.toString();case"name":return e.name;case"description":return e.description;default:return""}}},{key:"exportData",value:function(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.filterPredicate=function(t,i){return(0,p.Sd)(t,i,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,i){return(0,p.pR)(t,i,e.getDataForColumn,e)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(e){return e?"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}}]),e}();return e.\u0275fac=function(t){return new(t||e)(A.Y36(g.x4),A.Y36(g.UA))},e.\u0275cmp=A.Xpm({type:e,selectors:[["app-security-teams-list"]],viewQuery:function(e,t){var i;(1&e&&(A.Gf(wt.YE,7),A.Gf(p.l9,7)),2&e)&&(A.iGM(i=A.CRH())&&(t.matSort=i.first),A.iGM(i=A.CRH())&&(t.child=i.first))},inputs:{securityTeams:"securityTeams",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns"},features:[A.TTD],decls:19,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"],["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,t){1&e&&(A.TgZ(0,"div",0),A.TgZ(1,"perun-web-apps-table-wrapper",1),A.NdJ("exportData",function(e){return t.exportData(e)}),A.TgZ(2,"table",2),A.ynx(3,3),A.YNc(4,Ei,2,3,"th",4),A.YNc(5,Zi,2,2,"td",5),A.BQk(),A.ynx(6,6),A.YNc(7,Ci,3,3,"th",7),A.YNc(8,_i,2,1,"td",8),A.BQk(),A.ynx(9,9),A.YNc(10,ki,3,3,"th",7),A.YNc(11,Li,2,1,"td",10),A.BQk(),A.ynx(12,11),A.YNc(13,xi,3,3,"th",7),A.YNc(14,Oi,2,1,"td",10),A.BQk(),A.YNc(15,Ni,1,0,"tr",12),A.YNc(16,Ri,1,0,"tr",13),A.qZA(),A.qZA(),A.qZA(),A.YNc(17,Di,3,3,"app-alert",14),A.YNc(18,wi,3,3,"app-alert",14)),2&e&&(A.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.securityTeams.length),A.xp6(1),A.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),A.xp6(1),A.Q6J("dataSource",t.dataSource),A.xp6(13),A.Q6J("matHeaderRowDef",t.displayedColumns),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns),A.xp6(1),A.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.securityTeams.length),A.xp6(1),A.Q6J("ngIf",0===t.securityTeams.length))},directives:[Ft.l,ct.BZ,wt.YE,ct.w1,ct.fO,ct.Dz,ct.as,ct.nj,o.O5,ct.ge,de.oG,ct.ev,wt.nU,ct.XQ,ct.Gk,$e.w],pipes:[k.X$],styles:[""]}),e}();function Yi(e,t){1&e&&A._UZ(0,"mat-spinner",5)}function Ui(e,t){if(1&e&&A._UZ(0,"app-security-teams-list",6),2&e){var i=A.oxw();A.Q6J("tableId",i.tableId)("filterValue",i.filterValue)("securityTeams",i.securityTeams)("displayedColumns",i.displayedColumns)("selection",i.selected)}}var Mi=function(){var e=function(){function e(t,i,a,n){s(this,e),this.dialog=t,this.facilitiesManager=i,this.authResolver=a,this.entityStorageService=n,this.securityTeams=[],this.selected=new Oe.Ov(!0,[]),this.filterValue="",this.tableId=xe.O9,this.displayedColumns=[]}return r(e,[{key:"ngOnInit",value:function(){this.facility=this.entityStorageService.getEntity(),this.refreshTable()}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.facilitiesManager.getAssignedSecurityTeams(this.facility.id).subscribe(function(t){e.securityTeams=t,e.selected.clear(),e.setAuthRights(),e.loading=!1})}},{key:"setAuthRights",value:function(){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"]}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"addSecurityTeam",value:function(){}},{key:"removeSecurityTeam",value:function(){}}]),e}();return e.\u0275fac=function(t){return new(t||e)(A.Y36(I.uw),A.Y36(f.IQ),A.Y36(g.x4),A.Y36(g.fb))},e.\u0275cmp=A.Xpm({type:e,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,"tableId","filterValue","securityTeams","displayedColumns","selection",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","securityTeams","displayedColumns","selection"]],template:function(e,t){1&e&&(A.TgZ(0,"div"),A.TgZ(1,"h1",0),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"perun-web-apps-refresh-button",1),A.NdJ("refresh",function(){return t.refreshTable()}),A.qZA(),A.TgZ(5,"perun-web-apps-immediate-filter",2),A.NdJ("filter",function(e){return t.applyFilter(e)}),A.qZA(),A.YNc(6,Yi,1,0,"mat-spinner",3),A.YNc(7,Ui,1,5,"app-security-teams-list",4),A.qZA()),2&e&&(A.xp6(2),A.Oqu(A.lcZ(3,4,"FACILITY_DETAIL.SECURITY_TEAMS.TITLE")),A.xp6(3),A.Q6J("placeholder","FACILITY_DETAIL.SECURITY_TEAMS.FILTER"),A.xp6(1),A.Q6J("ngIf",t.loading),A.xp6(1),A.Q6J("ngIf",!t.loading))},directives:[Be.t,je.L,o.O5,y.$g,Fi],pipes:[k.X$],styles:[""]}),e}(),qi=l(64359),Ji=l(75374);function Qi(e,t){1&e&&A._UZ(0,"mat-spinner",6)}function Vi(e,t){1&e&&(A.TgZ(0,"th",17),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.RESULT_ID")," "))}function Hi(e,t){if(1&e&&(A.TgZ(0,"td",18),A._uU(1),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.Oqu(i.id)}}function Pi(e,t){1&e&&(A.TgZ(0,"th",17),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.DESTINATION")," "))}function Gi(e,t){if(1&e&&(A.TgZ(0,"td",18),A._uU(1),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.Oqu(i.destination.destination)}}function Bi(e,t){1&e&&(A.TgZ(0,"th",17),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.TIME")))}function ji(e,t){if(1&e&&(A.TgZ(0,"td",18),A._uU(1),A.ALo(2,"date"),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,i.timestamp,"d.M.y H:mm:ss")," ")}}function $i(e,t){1&e&&A._UZ(0,"tr",19)}function zi(e,t){1&e&&A._UZ(0,"tr",20)}function Xi(e,t){if(1&e&&(A.TgZ(0,"div",7),A.TgZ(1,"p"),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,Vi,3,3,"th",11),A.YNc(10,Hi,2,1,"td",12),A.BQk(),A.ynx(11,13),A.YNc(12,Pi,3,3,"th",11),A.YNc(13,Gi,2,1,"td",12),A.BQk(),A.ynx(14,14),A.YNc(15,Bi,3,3,"th",11),A.YNc(16,ji,3,4,"td",12),A.BQk(),A.YNc(17,$i,1,0,"tr",15),A.YNc(18,zi,1,0,"tr",16),A.qZA(),A.qZA()),2&e){var i=A.oxw();A.xp6(2),A.Oqu(A.lcZ(3,5,"DIALOGS.DELETE_TASK_RESULT.DESCRIPTION")),A.xp6(3),A.hij(" ",A.lcZ(6,7,"DIALOGS.DELETE_TASK_RESULT.ASK")," "),A.xp6(2),A.Q6J("dataSource",i.dataSource),A.xp6(10),A.Q6J("matHeaderRowDef",i.displayedColumns),A.xp6(1),A.Q6J("matRowDefColumns",i.displayedColumns)}}var Wi=function(){var e=function(){function e(t,i,a,n,l){s(this,e),this.dialogRef=t,this.data=i,this.taskManager=a,this.notificator=n,this.translate=l,this.loading=!1,this.dataSource=new ct.by(this.data.taskResults),this.displayedColumns=["id","destination","time"]}return r(e,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.taskResults=this.data.taskResults}},{key:"deleteResults",value:function(){var e=this;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(function(){e.deleteResults()},function(){return e.loading=!1})}},{key:"onDelete",value:function(){this.deleteResults()}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(A.Y36(I.so),A.Y36(I.WI),A.Y36(f.Ob),A.Y36(g.V6),A.Y36(k.sK))},e.\u0275cmp=A.Xpm({type:e,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"],["mat-flat-button","","color","warn",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"],["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&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"div"),A.YNc(4,Qi,1,0,"mat-spinner",1),A.YNc(5,Xi,19,9,"div",2),A.TgZ(6,"div",3),A.TgZ(7,"button",4),A.NdJ("click",function(){return t.onCancel()}),A._uU(8),A.ALo(9,"translate"),A.qZA(),A.TgZ(10,"button",5),A.NdJ("click",function(){return t.onDelete()}),A._uU(11),A.ALo(12,"translate"),A.qZA(),A.qZA(),A.qZA()),2&e&&(A.xp6(1),A.Oqu(A.lcZ(2,9,"DIALOGS.DELETE_TASK_RESULT.TITLE")),A.xp6(2),A.Tol(t.theme),A.xp6(1),A.Q6J("ngIf",t.loading),A.xp6(1),A.Q6J("ngIf",!t.loading),A.xp6(3),A.hij(" ",A.lcZ(9,11,"DIALOGS.DELETE_TASK_RESULT.CANCEL")," "),A.xp6(2),A.Q6J("disabled",t.loading),A.xp6(1),A.hij(" ",A.lcZ(12,13,"DIALOGS.DELETE_TASK_RESULT.REMOVE")," "))},directives:[I.uh,o.O5,I.H8,_.lW,y.$g,I.xY,ct.BZ,ct.w1,ct.fO,ct.Dz,ct.as,ct.nj,ct.ge,ct.ev,ct.XQ,ct.Gk],pipes:[k.X$,o.uU],styles:[""]}),e}(),Ki=l(88884);function ea(e,t){1&e&&A._UZ(0,"mat-spinner",6)}function ta(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"mat-checkbox",13),A.NdJ("change",function(e){return A.CHM(i),A.oxw(2).change(e)}),A.ALo(1,"translate"),A._uU(2),A.ALo(3,"translate"),A.qZA()}if(2&e){var a=A.oxw(2);A.s9C("matTooltip",A.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),A.Q6J("matTooltipDisabled",!a.checkboxesDisabled)("disabled",a.checkboxesDisabled)("checked",a.taskChecked),A.xp6(2),A.hij(" ",A.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_AND_TASK_RESULTS")," ")}}function ia(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"mat-checkbox",14),A.NdJ("change",function(e){return A.CHM(i),A.oxw(2).change(e)}),A.ALo(1,"translate"),A._uU(2),A.ALo(3,"translate"),A.qZA()}if(2&e){var a=A.oxw(2);A.s9C("matTooltip",A.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),A.Q6J("matTooltipDisabled",!a.checkboxesDisabled)("disabled",a.checkboxesDisabled)("checked",a.taskResultsChecked),A.xp6(2),A.hij(" ",A.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_RESULTS")," ")}}function aa(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"perun-web-apps-resources-list",15),A.NdJ("allSelected",function(e){return A.CHM(i),A.oxw(2).disableCheckboxes(e)}),A.qZA()}if(2&e){var a=A.oxw(2);A.Q6J("tableId",a.tableId)("disableRouting",!0)("resources",a.resources)("selection",a.selected)("displayedColumns",a.displayedColumns)}}function na(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"div",7),A.TgZ(1,"p"),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"div"),A.YNc(5,ta,4,9,"mat-checkbox",8),A.YNc(6,ia,4,9,"mat-checkbox",9),A.TgZ(7,"mat-checkbox",10),A.NdJ("change",function(e){return A.CHM(i),A.oxw().change(e)}),A.ALo(8,"translate"),A._uU(9),A.ALo(10,"translate"),A.qZA(),A.qZA(),A.TgZ(11,"p"),A._uU(12),A.ALo(13,"translate"),A.qZA(),A.TgZ(14,"div",11),A._uU(15),A.ALo(16,"translate"),A.qZA(),A.YNc(17,aa,1,5,"perun-web-apps-resources-list",12),A.qZA()}if(2&e){var a=A.oxw();A.xp6(2),A.Oqu(A.lcZ(3,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DESCRIPTION")),A.xp6(3),A.Q6J("ngIf",null!==a.taskId),A.xp6(1),A.Q6J("ngIf",null!==a.taskId),A.xp6(1),A.s9C("matTooltip",A.lcZ(8,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),A.Q6J("matTooltipDisabled",!a.checkboxesDisabled)("disabled",a.checkboxesDisabled)("checked",a.destinationChecked),A.xp6(2),A.hij(" ",A.lcZ(10,15,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_DESTINATION")," "),A.xp6(3),A.Oqu(A.lcZ(13,17,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.DESCRIPTION")),A.xp6(3),A.hij(" ",A.lcZ(16,19,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.ASK")," "),A.xp6(2),A.Q6J("ngIf",!a.loading)}}var sa=function(){var t=function(){function t(i,a,n,l,r,o,c,u){s(this,t),this.dialogRef=i,this.data=a,this.resourcesManager=n,this.tasksManager=l,this.serviceManager=r,this.translate=o,this.notificator=c,this.cd=u,this.loading=!1,this.dataSource=new ct.by(this.data.resource),this.selected=new Oe.Ov(!0,e(this.dataSource.data)),this.resources=[],this.displayedColumns=["select","id","vo","name"],this.checkboxesDisabled=!1,this.taskChecked=!0,this.taskResultsChecked=!0,this.destinationChecked=!0,this.tableId=xe.$V}return r(t,[{key:"ngOnInit",value:function(){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}},{key:"remove",value:function(){var e=this;this.loading=!0,this.taskResultsChecked&&!this.taskChecked&&null!==this.taskId&&this.tasksManager.getTaskResultsForGUIByTask(this.taskId).subscribe(function(t){t.forEach(function(t){e.tasksManager.deleteTaskResultById({taskResultId:t.id}).subscribe()})}),this.taskChecked&&null!==this.taskId&&this.tasksManager.deleteTask({task:this.taskId}).subscribe(),this.destinationChecked&&this.serviceManager.getDestinations(this.serviceId,this.facilityId).subscribe(function(t){t.forEach(function(t){e.serviceManager.removeDestination(e.serviceId,e.facilityId,t.destination,t.type).subscribe()})}),this.selected.selected.forEach(function(t){e.resourcesManager.removeService(t.id,e.serviceId).subscribe(function(){e.translate.get("DIALOGS.REMOVE_SERVICE_FROM_FACILITY.SUCCESS").subscribe(function(t){e.notificator.showSuccess(t),e.dialogRef.close(!0)})},function(){return e.loading=!1})})}},{key:"cancel",value:function(){this.dialogRef.close(!1)}},{key:"disableCheckboxes",value:function(e){e&&this.checkboxesDisabled&&this.changeCheckboxes(!0),e||this.checkboxesDisabled||this.changeCheckboxes(!1)}},{key:"changeCheckboxes",value:function(e){this.checkboxesDisabled=!e,this.taskChecked=e,this.taskResultsChecked=e,this.destinationChecked=e,this.cd.detectChanges()}},{key:"change",value:function(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}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(A.Y36(I.so),A.Y36(I.WI),A.Y36(f.xk),A.Y36(f.Ob),A.Y36(f.KK),A.Y36(k.sK),A.Y36(g.V6),A.Y36(A.sBO))},t.\u0275cmp=A.Xpm({type:t,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["id","task","class","right-space","color","warn",3,"matTooltip","matTooltipDisabled","disabled","checked","change",4,"ngIf"],["id","taskResults","class","right-space","color","warn",3,"matTooltip","matTooltipDisabled","disabled","checked","change",4,"ngIf"],["id","destination","color","warn",3,"matTooltip","matTooltipDisabled","disabled","checked","change"],[1,"font-weight-bold"],[3,"tableId","disableRouting","resources","selection","displayedColumns","allSelected",4,"ngIf"],["id","task","color","warn",1,"right-space",3,"matTooltip","matTooltipDisabled","disabled","checked","change"],["id","taskResults","color","warn",1,"right-space",3,"matTooltip","matTooltipDisabled","disabled","checked","change"],[3,"tableId","disableRouting","resources","selection","displayedColumns","allSelected"]],template:function(e,t){1&e&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"div"),A.YNc(4,ea,1,0,"mat-spinner",1),A.YNc(5,na,18,21,"div",2),A.TgZ(6,"div",3),A.TgZ(7,"button",4),A.NdJ("click",function(){return t.cancel()}),A._uU(8),A.ALo(9,"translate"),A.qZA(),A.TgZ(10,"button",5),A.NdJ("click",function(){return t.remove()}),A._uU(11),A.ALo(12,"translate"),A.qZA(),A.qZA(),A.qZA()),2&e&&(A.xp6(1),A.Oqu(A.lcZ(2,9,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.TITLE")),A.xp6(2),A.Tol(t.theme),A.xp6(1),A.Q6J("ngIf",t.loading),A.xp6(1),A.Q6J("ngIf",!t.loading),A.xp6(3),A.hij(" ",A.lcZ(9,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CANCEL")," "),A.xp6(2),A.Q6J("disabled",t.loading||0===t.selected.selected.length),A.xp6(1),A.hij(" ",A.lcZ(12,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.REMOVE")," "))},directives:[I.uh,o.O5,I.H8,_.lW,y.$g,I.xY,de.oG,Z.gM,Ki.C],pipes:[k.X$],styles:[".right-space[_ngcontent-%COMP%]{margin-right:40px}"]}),t}();function la(e,t){1&e&&A._UZ(0,"mat-spinner",6)}function ra(e,t){1&e&&(A.TgZ(0,"div",7),A.TgZ(1,"div",8),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.qZA()),2&e&&(A.xp6(2),A.hij(" ",A.lcZ(3,1,"DIALOGS.DELETE_TASK.DESCRIPTION")," "))}var oa=function(){var e=function(){function e(t,i,a,n,l){s(this,e),this.dialogRef=t,this.data=i,this.tasksManager=a,this.translate=n,this.notificator=l,this.loading=!1}return r(e,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.taskId=this.data.taskId}},{key:"remove",value:function(){var e=this;this.loading=!0,this.tasksManager.deleteTask({task:this.taskId}).subscribe(function(){e.translate.get("DIALOGS.DELETE_TASK.SUCCESS").subscribe(function(t){e.notificator.showSuccess(t),e.dialogRef.close(!0)})},function(){return e.loading=!1})}},{key:"cancel",value:function(){this.dialogRef.close(!1)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(A.Y36(I.so),A.Y36(I.WI),A.Y36(f.Ob),A.Y36(k.sK),A.Y36(g.V6))},e.\u0275cmp=A.Xpm({type:e,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"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"]],template:function(e,t){1&e&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"div"),A.YNc(4,la,1,0,"mat-spinner",1),A.YNc(5,ra,4,3,"div",2),A.TgZ(6,"div",3),A.TgZ(7,"button",4),A.NdJ("click",function(){return t.cancel()}),A._uU(8),A.ALo(9,"translate"),A.qZA(),A.TgZ(10,"button",5),A.NdJ("click",function(){return t.remove()}),A._uU(11),A.ALo(12,"translate"),A.qZA(),A.qZA(),A.qZA()),2&e&&(A.xp6(1),A.Oqu(A.lcZ(2,9,"DIALOGS.DELETE_TASK.TITLE")),A.xp6(2),A.Tol(t.theme),A.xp6(1),A.Q6J("ngIf",t.loading),A.xp6(1),A.Q6J("ngIf",!t.loading),A.xp6(3),A.hij(" ",A.lcZ(9,11,"DIALOGS.DELETE_TASK.CANCEL")," "),A.xp6(2),A.Q6J("disabled",t.loading),A.xp6(1),A.hij(" ",A.lcZ(12,13,"DIALOGS.DELETE_TASK.DELETE")," "))},directives:[I.uh,o.O5,I.H8,_.lW,y.$g,I.xY],pipes:[k.X$],styles:[""]}),e}(),ca=l(8055),ua=function(){var e=function(){function e(){s(this,e)}return r(e,[{key:"transform",value:function(e){return e.blockedOnFacility?"BLOCKED":e.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED"}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=A.Yjl({name:"serviceStateBlockedToString",type:e,pure:!0}),e}();function da(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"th",18),A.TgZ(1,"mat-checkbox",19),A.NdJ("change",function(e){A.CHM(i);var t=A.oxw();return e&&t.masterToggle(),t.selectionChange.emit()}),A.qZA(),A.qZA()}if(2&e){var a=A.oxw();A.xp6(1),A.Q6J("checked",a.selection.hasValue()&&a.isAllSelected())("indeterminate",a.selection.hasValue()&&!a.isAllSelected())("aria-label",a.checkboxLabel())}}function ha(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"td",20),A.TgZ(1,"mat-checkbox",21),A.NdJ("click",function(e){return e.stopPropagation()})("change",function(e){var t=A.CHM(i).$implicit,a=A.oxw();return e&&a.selection.toggle(t),a.selectionChange.emit()}),A.qZA(),A.qZA()}if(2&e){var a=t.$implicit,n=A.oxw();A.xp6(1),A.Q6J("checked",n.selection.isSelected(a))("aria-label",n.checkboxLabel(a))}}function fa(e,t){1&e&&(A.TgZ(0,"th",22),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TASK_ID")," "))}function pa(e,t){if(1&e&&(A.TgZ(0,"div"),A._uU(1),A.qZA()),2&e){var i=A.oxw().$implicit;A.xp6(1),A.Oqu(i.task.id)}}function ga(e,t){1&e&&(A.TgZ(0,"div"),A._uU(1,"0"),A.qZA())}function ma(e,t){if(1&e&&(A.TgZ(0,"td",23),A.YNc(1,pa,2,1,"div",24),A.YNc(2,ga,2,0,"div",24),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.Q6J("ngIf",i.task),A.xp6(1),A.Q6J("ngIf",!i.task)}}function va(e,t){1&e&&(A.TgZ(0,"th",22),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.SERVICE_NAME")," "))}function Aa(e,t){if(1&e&&(A.TgZ(0,"td",25),A._uU(1),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.Oqu(i.service.name)}}function Ia(e,t){1&e&&(A.TgZ(0,"th",22),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STATUS")," "))}function Sa(e,t){if(1&e&&(A.TgZ(0,"td",25),A._uU(1),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.Oqu(i.status)}}function Ta(e,t){1&e&&(A.TgZ(0,"th",22),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.BLOCKED")," "))}function ba(e,t){if(1&e&&(A.TgZ(0,"td",25),A._uU(1),A.ALo(2,"serviceStateBlockedToString"),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.hij(" ",A.lcZ(2,1,i)," ")}}function ya(e,t){1&e&&(A.TgZ(0,"th",22),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STARTED")," "))}function Ea(e,t){if(1&e&&(A.TgZ(0,"div"),A._uU(1),A.ALo(2,"date"),A.qZA()),2&e){var i=A.oxw().$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,i.task.startTime,"d.M.y H:mm:ss")," ")}}function Za(e,t){1&e&&(A.TgZ(0,"div"),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET")," "))}function Ca(e,t){if(1&e&&(A.TgZ(0,"td",25),A.YNc(1,Ea,3,4,"div",24),A.YNc(2,Za,3,3,"div",24),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.Q6J("ngIf",i.task&&i.task.startTime),A.xp6(1),A.Q6J("ngIf",!i.task||!i.task.startTime)}}function _a(e,t){1&e&&(A.TgZ(0,"th",22),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.ENDED")," "))}function ka(e,t){if(1&e&&(A.TgZ(0,"div"),A._uU(1),A.ALo(2,"date"),A.qZA()),2&e){var i=A.oxw().$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,i.task.endTime,"d.M.y H:mm:ss")," ")}}function La(e,t){1&e&&(A.TgZ(0,"div"),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET")," "))}function xa(e,t){if(1&e&&(A.TgZ(0,"td",25),A.YNc(1,ka,3,4,"div",24),A.YNc(2,La,3,3,"div",24),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.Q6J("ngIf",i.task&&i.task.endTime),A.xp6(1),A.Q6J("ngIf",!i.task||!i.task.endTime)}}function Oa(e,t){1&e&&A._UZ(0,"tr",26)}var Na=function(e,t){return["/facilities",e,"services-status",t]};function Ra(e,t){if(1&e&&A._UZ(0,"tr",27),2&e){var i=t.$implicit,a=A.oxw();A.ekj("disable-outline",a.disableRouting||!i.task)("make-yellow","WARNING"===i.status)("make-green","DONE"===i.status)("make-red","GENERROR"===i.status||"SENDERROR"===i.status||"ERROR"===i.status)("cursor-pointer",!a.disableRouting&&null!==i.task),A.Q6J("routerLink",a.disableRouting||null===i.task?null:A.WLB(12,Na,i.facility.id,i.taskId))("perunWebAppsMiddleClickRouterLink",a.disableRouting||null===i.task?null:A.WLB(15,Na,i.facility.id,i.taskId))}}function Da(e,t){1&e&&(A.TgZ(0,"app-alert",28),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function wa(e,t){1&e&&(A.TgZ(0,"app-alert",28),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NO_SERVICES_STATUS_WARNING"),"\n"))}var Fa=function(){var e=function(){function e(t,i){s(this,e),this.authResolver=t,this.tableCheckbox=i,this.servicesStatus=[],this.displayedColumns=["select","task.id","service.name","status","blocked","task.startTime","task.endTime"],this.selection=new Oe.Ov(!0,[]),this.disableRouting=!0,this.selectionChange=new A.vpe,this.pageSizeOptions=p.f7}return r(e,[{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(e){return"task.id"!==e})),this.dataSource=new ct.by(this.servicesStatus),this.setDataSource(),this.dataSource.filterPredicate=function(e,t){var i=t.trim().toLowerCase();return function e(t){var i="";return Object.values(t).forEach(function(t){"object"!=typeof t?i=i+" "+t:null!==t&&(i=i+" "+e(t))}),i.trim().toLowerCase()}(e).includes(i)},this.dataSource.filter=this.filterValue}},{key:"getDataForColumn",value:function(e,t){switch(t){case"task.id":return e.task?e.task.id.toString():e[t];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&&e.task.startTime?(0,o.p6)(e.task.startTime,"d.M.y H:mm:ss","en"):e[t];case"task.endTime":return e.task&&e.task.endTime?(0,o.p6)(e.task.endTime,"d.M.y H:mm:ss","en"):e[t];default:return e[t]}}},{key:"getSortDataForColumn",value:function(e,t){switch(t){case"task.id":return e.task?e.task.id.toString():e[t];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&&e.task.startTime?(0,o.p6)(e.task.startTime,"yyyy.MM.dd HH:mm:ss","en"):e[t];case"task.endTime":return e.task&&e.task.endTime?(0,o.p6)(e.task.endTime,"yyyy.MM.dd HH:mm:ss","en"):e[t];default:return e[t]}}},{key:"exportData",value:function(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.filterPredicate=function(t,i){return(0,p.Sd)(t,i,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,i){return(0,p.pR)(t,i,e.getSortDataForColumn,e)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(e){return e?"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e.service.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}}]),e}();return e.\u0275fac=function(t){return new(t||e)(A.Y36(g.x4),A.Y36(g.UA))},e.\u0275cmp=A.Xpm({type:e,selectors:[["perun-web-apps-services-status-list"]],viewQuery:function(e,t){var i;(1&e&&(A.Gf(wt.YE,7),A.Gf(p.l9,7)),2&e)&&(A.iGM(i=A.CRH())&&(t.matSort=i.first),A.iGM(i=A.CRH())&&(t.child=i.first))},inputs:{servicesStatus:"servicesStatus",displayedColumns:"displayedColumns",selection:"selection",filterValue:"filterValue",tableId:"tableId",disableRouting:"disableRouting"},outputs:{selectionChange:"selectionChange"},features:[A.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",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(e,t){1&e&&(A.TgZ(0,"div",0),A.TgZ(1,"perun-web-apps-table-wrapper",1),A.NdJ("exportData",function(e){return t.exportData(e)}),A.TgZ(2,"table",2),A.ynx(3,3),A.YNc(4,da,2,3,"th",4),A.YNc(5,ha,2,2,"td",5),A.BQk(),A.ynx(6,6),A.YNc(7,fa,3,3,"th",7),A.YNc(8,ma,3,2,"td",8),A.BQk(),A.ynx(9,9),A.YNc(10,va,3,3,"th",7),A.YNc(11,Aa,2,1,"td",10),A.BQk(),A.ynx(12,11),A.YNc(13,Ia,3,3,"th",7),A.YNc(14,Sa,2,1,"td",10),A.BQk(),A.ynx(15,12),A.YNc(16,Ta,3,3,"th",7),A.YNc(17,ba,3,3,"td",10),A.BQk(),A.ynx(18,13),A.YNc(19,ya,3,3,"th",7),A.YNc(20,Ca,3,2,"td",10),A.BQk(),A.ynx(21,14),A.YNc(22,_a,3,3,"th",7),A.YNc(23,xa,3,2,"td",10),A.BQk(),A.YNc(24,Oa,1,0,"tr",15),A.YNc(25,Ra,1,18,"tr",16),A.qZA(),A.qZA(),A.qZA(),A.YNc(26,Da,3,3,"app-alert",17),A.YNc(27,wa,3,3,"app-alert",17)),2&e&&(A.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.servicesStatus.length),A.xp6(1),A.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),A.xp6(1),A.Q6J("dataSource",t.dataSource),A.xp6(22),A.Q6J("matHeaderRowDef",t.displayedColumns),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns),A.xp6(1),A.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.servicesStatus.length),A.xp6(1),A.Q6J("ngIf",0===t.servicesStatus.length))},directives:[Ft.l,ct.BZ,wt.YE,ct.w1,ct.fO,ct.Dz,ct.as,ct.nj,o.O5,ct.ge,de.oG,ct.ev,wt.nU,ct.XQ,ct.Gk,c.rH,bt.YH,$e.w],pipes:[k.X$,ua,o.uU],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}"]}),e}();function Ya(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"button",11),A.NdJ("click",function(){return A.CHM(i),A.oxw().forcePropagation()}),A._uU(1),A.ALo(2,"translate"),A.qZA()}if(2&e){var a=A.oxw();A.Q6J("disabled",0===a.selected.selected.length),A.xp6(1),A.hij(" ",A.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.FORCE_PROPAGATION")," ")}}function Ua(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"button",11),A.NdJ("click",function(){return A.CHM(i),A.oxw().allow()}),A._uU(1),A.ALo(2,"translate"),A.qZA()}if(2&e){var a=A.oxw();A.Q6J("disabled",0===a.selected.selected.length||a.disableAllowButton),A.xp6(1),A.hij(" ",A.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.ALLOW")," ")}}function Ma(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"button",12),A.NdJ("click",function(){return A.CHM(i),A.oxw().block()}),A._uU(1),A.ALo(2,"translate"),A.qZA()}if(2&e){var a=A.oxw();A.Q6J("disabled",0===a.selected.selected.length||a.disableBlockButton),A.xp6(1),A.hij(" ",A.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.BLOCK")," ")}}function qa(e,t){if(1&e&&(A.TgZ(0,"button",13),A.ALo(1,"translate"),A._uU(2),A.ALo(3,"translate"),A.qZA()),2&e){var i=A.oxw(),a=A.MAs(10);A.s9C("matTooltip",A.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),A.Q6J("matTooltipDisabled",!i.disableRemoveButton)("disabled",i.disableRemoveButton)("matMenuTriggerFor",a),A.xp6(2),A.hij(" ",A.lcZ(3,7,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE")," ")}}function Ja(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"button",7),A.NdJ("click",function(){return A.CHM(i),A.oxw().removeTaskResults()}),A._uU(1),A.ALo(2,"translate"),A.qZA()}2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_TASK_RESULTS")," "))}function Qa(e,t){1&e&&A._UZ(0,"mat-spinner",14)}function Va(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"perun-web-apps-services-status-list",15),A.NdJ("selectionChange",function(){return A.CHM(i),A.oxw().selectionChanged()}),A.qZA()}if(2&e){var a=A.oxw();A.Q6J("tableId",a.tableId)("filterValue",a.filterValue)("servicesStatus",a.servicesStates)("selection",a.selected)("disableRouting",!a.routeAuth)}}var Ha=function(){var e=function(){function e(t,i,a,n,l,r,o,c,u){var d=this;s(this,e),this.tasksManager=t,this.servicesManager=i,this.notificator=a,this.translate=n,this.authResolver=l,this.facilityManager=r,this.resourcesManager=o,this.dialog=c,this.entityStorageService=u,this.servicesStates=[],this.selected=new Oe.Ov(!0,[]),this.filterValue="",this.tableId=xe.oK,this.disableAllowButton=!0,this.disableBlockButton=!0,this.disableRemoveButton=!0,n.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_FORCE_PROPAGATION").subscribe(function(e){return d.successFPMessage=e}),n.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_ALLOW").subscribe(function(e){return d.successAllowMessage=e}),n.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_BLOCK").subscribe(function(e){return d.successBlockMessage=e}),n.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_DELETE").subscribe(function(e){return d.successDeleteMessage=e}),n.get("FACILITY_DETAIL.SERVICES_STATUS.ALREADY_DELETED").subscribe(function(e){return d.allreadyDeletedMessage=e})}return r(e,[{key:"ngOnInit",value:function(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}},{key:"forcePropagation",value:function(){var e,t=this,a=i(this.selected.selected);try{for(a.s();!(e=a.n()).done;){var n=e.value;this.servicesManager.forceServicePropagation(n.service.id,n.facility.id).subscribe(function(){t.refreshTable(),t.notificator.showSuccess(t.successFPMessage)})}}catch(s){a.e(s)}finally{a.f()}}},{key:"allow",value:function(){var e,t=this,a=i(this.selected.selected);try{for(a.s();!(e=a.n()).done;){var n=e.value;this.servicesManager.unblockServiceOnFacility(n.service.id,n.facility.id).subscribe(function(){t.refreshTable(),t.notificator.showSuccess(t.successAllowMessage)})}}catch(s){a.e(s)}finally{a.f()}}},{key:"block",value:function(){var e,t=this,a=i(this.selected.selected);try{for(a.s();!(e=a.n()).done;){var n=e.value;this.servicesManager.blockServiceOnFacility(n.service.id,n.facility.id).subscribe(function(){t.refreshTable(),t.notificator.showSuccess(t.successBlockMessage)})}}catch(s){a.e(s)}finally{a.f()}}},{key:"removeTaskResults",value:function(){var e=this;this.tasksManager.getTaskResultsForGUIByTask(this.selected.selected[0].task.id).subscribe(function(t){var i=(0,p.kZ)();i.width="600px",i.data={theme:"facility-theme",taskResults:t},e.dialog.open(Wi,i)})}},{key:"removeServiceFromFacility",value:function(){var e=this;this.facilityManager.getAssignedResourcesByAssignedServiceForFacility(this.selected.selected[0].facility.id,this.selected.selected[0].service.id).subscribe(function(t){var i=(0,p.kZ)();i.width="600px",e.taskId=e.taskIsNull?null:e.selected.selected[0].task.id,0===t.length?(i.data={theme:"facility-theme",taskId:e.taskId},e.dialog.open(oa,i).afterClosed().subscribe(function(t){t&&(e.disableRemoveButton=!0,e.refreshTable())})):e.resourcesManager.getRichResourcesByIds(t.map(function(e){return e.id})).subscribe(function(t){i.data={theme:"facility-theme",taskId:e.taskId,serviceId:e.selected.selected[0].service.id,facilityId:e.selected.selected[0].facility.id,resource:t},e.dialog.open(sa,i).afterClosed().subscribe(function(t){t&&(e.disableRemoveButton=!0,e.refreshTable())})})})}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.tasksManager.getFacilityServicesState(this.facility.id).subscribe(function(t){e.servicesStates=t,e.selected.clear(),e.setAuthRights(),e.loading=!1})}},{key:"setAuthRights",value:function(){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])}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"selectionChanged",value:function(){this.disableBlockButton=!0,this.disableAllowButton=!0,this.disableRemoveButton=1!==this.selected.selected.length,this.disableRemoveButton||(this.taskIsNull=null===this.selected.selected[0].task);var e,t=i(this.selected.selected);try{for(t.s();!(e=t.n()).done;){e.value.blockedOnFacility?this.disableAllowButton=!1:this.disableBlockButton=!1}}catch(a){t.e(a)}finally{t.f()}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(A.Y36(f.Ob),A.Y36(f.KK),A.Y36(g.V6),A.Y36(k.sK),A.Y36(g.x4),A.Y36(f.IQ),A.Y36(f.xk),A.Y36(I.uw),A.Y36(g.fb))},e.\u0275cmp=A.Xpm({type:e,selectors:[["app-facility-service-status"]],decls:18,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2 dropdown-toggle",3,"matTooltip","matTooltipDisabled","disabled","matMenuTriggerFor",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,"tableId","filterValue","servicesStatus","selection","disableRouting","selectionChange",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mr-2","dropdown-toggle",3,"matTooltip","matTooltipDisabled","disabled","matMenuTriggerFor"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","servicesStatus","selection","disableRouting","selectionChange"]],template:function(e,t){1&e&&(A.TgZ(0,"div"),A.TgZ(1,"h1",0),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"perun-web-apps-refresh-button",1),A.NdJ("refresh",function(){return t.refreshTable()}),A.qZA(),A.YNc(5,Ya,3,4,"button",2),A.YNc(6,Ua,3,4,"button",2),A.YNc(7,Ma,3,4,"button",3),A.YNc(8,qa,4,9,"button",4),A.TgZ(9,"mat-menu",null,5),A.YNc(11,Ja,3,3,"button",6),A.TgZ(12,"button",7),A.NdJ("click",function(){return t.removeServiceFromFacility()}),A._uU(13),A.ALo(14,"translate"),A.qZA(),A.qZA(),A.TgZ(15,"perun-web-apps-immediate-filter",8),A.NdJ("filter",function(e){return t.applyFilter(e)}),A.qZA(),A.YNc(16,Qa,1,0,"mat-spinner",9),A.YNc(17,Va,1,5,"perun-web-apps-services-status-list",10),A.qZA()),2&e&&(A.xp6(2),A.Oqu(A.lcZ(3,10,"FACILITY_DETAIL.SERVICES_STATUS.TITLE")),A.xp6(3),A.Q6J("ngIf",t.propagationAuth),A.xp6(1),A.Q6J("ngIf",t.allowAuth),A.xp6(1),A.Q6J("ngIf",t.blockAuth),A.xp6(1),A.Q6J("ngIf",t.deleteAuth),A.xp6(3),A.Q6J("ngIf",!t.taskIsNull),A.xp6(2),A.hij(" ",A.lcZ(14,12,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_SERVICE_FROM_FACILITY")," "),A.xp6(2),A.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TABLE_SEARCH"),A.xp6(1),A.Q6J("ngIf",t.loading),A.xp6(1),A.Q6J("ngIf",!t.loading))},directives:[Be.t,o.O5,ca.VK,ca.OP,je.L,_.lW,Z.gM,ca.p6,y.$g,Fa],pipes:[k.X$],styles:[""]}),e}(),Pa=l(67004),Ga=l(91058),Ba=function(){var e=function(){function e(){s(this,e),this.changeAdvancedFilter=new A.vpe,this.clearFilters=new A.vpe}return r(e,[{key:"ngOnInit",value:function(){this.changeAdvancedFilter.emit(this.advancedFilter)}},{key:"toggleAdvancedFilter",value:function(){this.advancedFilter=!this.advancedFilter,this.changeAdvancedFilter.emit(this.advancedFilter)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=A.Xpm({type:e,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(e,t){1&e&&(A.TgZ(0,"button",0),A.NdJ("click",function(){return t.toggleAdvancedFilter()}),A.TgZ(1,"mat-icon"),A._uU(2,"filter_list"),A.qZA(),A._uU(3),A.ALo(4,"translate"),A.TgZ(5,"mat-icon"),A._uU(6),A.qZA(),A.qZA(),A.TgZ(7,"button",0),A.NdJ("click",function(){return t.clearFilters.emit()}),A.TgZ(8,"mat-icon"),A._uU(9,"filter_list_off"),A.qZA(),A._uU(10),A.ALo(11,"translate"),A.qZA()),2&e&&(A.Gre("mr-2 ",t.filtersCount?"grey":"no-color",""),A.xp6(3),A.AsE(" ",A.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.FILTERS")," ",t.filtersCount?"("+t.filtersCount+")":null," "),A.xp6(3),A.Oqu(t.advancedFilter?"arrow_drop_up":"arrow_drop_down"),A.xp6(4),A.hij(" ",A.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.CLEAR_FILTERS"),"\n"))},directives:[_.lW,E.Hw],pipes:[k.X$],styles:[".grey[_ngcontent-%COMP%]{color:#fff;background-color:grey}.no-color[_ngcontent-%COMP%]{color:#000;background-color:transparent}"]}),e}(),ja=l(27521),$a=l(19386),za=l(42847),Xa=l(44973),Wa=function(){var e=function e(){s(this,e),this.service=null,this.multiple=!1,this.disableAutoSelect=!1,this.theme="",this.serviceSelected=new A.vpe,this.nameFunction=function(e){return e.name},this.secondaryFunction=function(){return""},this.searchFunction=function(e){return e.name}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=A.Xpm({type:e,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(e,t){1&e&&(A.TgZ(0,"perun-web-apps-entity-search-select",0),A.NdJ("entitySelected",function(e){return t.serviceSelected.emit(e)}),A.ALo(1,"translate"),A.ALo(2,"translate"),A.ALo(3,"translate"),A.qZA()),2&e&&A.Q6J("entity",t.service)("entities",t.services)("multiple",t.multiple)("disableAutoSelect",t.disableAutoSelect)("searchFunction",t.searchFunction)("mainTextFunction",t.nameFunction)("secondaryTextFunction",t.secondaryFunction)("selectPlaceholder",A.lcZ(1,11,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.SELECT_SERVICE"))("findPlaceholder",A.lcZ(2,13,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.FIND_SERVICE"))("noEntriesText",A.lcZ(3,15,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.NO_SERVICE_FOUND"))("theme",t.theme)},directives:[Xa.i],pipes:[k.X$],styles:[""]}),e}(),Ka=l(16247);function en(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"div",8),A.TgZ(1,"div",9),A.TgZ(2,"mat-slide-toggle",10),A.NdJ("ngModelChange",function(e){return A.CHM(i),A.oxw().allowed=e})("change",function(){return A.CHM(i),A.oxw().changeFilter()}),A._uU(3),A.ALo(4,"translate"),A.qZA(),A.TgZ(5,"span",11),A._uU(6),A.ALo(7,"translate"),A.qZA(),A.qZA(),A.TgZ(8,"div",1),A.TgZ(9,"perun-web-apps-vo-search-select",12),A.NdJ("voSelected",function(e){return A.CHM(i),A.oxw().voSelected(e)}),A.qZA(),A.TgZ(10,"perun-web-apps-resource-search-select",13),A.NdJ("resourceSelected",function(e){return A.CHM(i),A.oxw().resourceSelected(e)}),A.qZA(),A.TgZ(11,"perun-web-apps-service-search-select",14),A.NdJ("serviceSelected",function(e){return A.CHM(i),A.oxw().serviceSelected(e)}),A.qZA(),A.qZA(),A.qZA()}if(2&e){var a=A.oxw();A.xp6(2),A.Q6J("ngModel",a.allowed),A.xp6(1),A.hij(" ",A.lcZ(4,10,"FACILITY_DETAIL.ALLOWED_USERS.FILTER_ALLOWED")," "),A.xp6(3),A.Oqu(A.lcZ(7,12,a.toggle_messages[a.allowed?1:0])),A.xp6(3),A.Q6J("vo",a.selectedVo)("vos",a.vos),A.xp6(1),A.Q6J("displayStatus",!1)("resource",a.selectedResource)("resources",a.filteredResources),A.xp6(1),A.Q6J("service",a.selectedService)("services",a.filteredServices)}}function tn(e,t){1&e&&A._UZ(0,"mat-spinner",15)}var an=function(){return["id","name","email","logins","organization"]};function nn(e,t){if(1&e&&A._UZ(0,"perun-web-apps-users-dynamic-list",16),2&e){var i=A.oxw();A.Q6J("tableId",i.tableId)("searchString",i.filterValue)("displayedColumns",A.DdM(10,an))("attrNames",i.attributes)("facilityId",i.facility.id)("voId",-1===i.selectedVo.id?null:i.selectedVo.id)("resourceId",-1===i.selectedResource.id?null:i.selectedResource.id)("serviceId",-1===i.selectedService.id?null:i.selectedService.id)("onlyAllowed",i.allowed)("disableRouting",!i.routeAuth)}}var sn=function(){var e=function(){function e(t,i,a,n,l,r){s(this,e),this.facilityService=t,this.serviceService=i,this.resourceService=a,this.authResolver=n,this.storeService=l,this.entityStorageService=r,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=xe.z6,this.toggle_messages=["FACILITY_DETAIL.ALLOWED_USERS.FILTER_ASSIGNED_MSG","FACILITY_DETAIL.ALLOWED_USERS.FILTER_ALLOWED_MSG"],this.advancedFilter=!1}return r(e,[{key:"ngOnInit",value:function(){this.loading=!0,this.attributes=[Pa.r.USER_DEF_ORGANIZATION,Pa.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()}},{key:"changeFilter",value:function(){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)}},{key:"clearFilters",value:function(){this.allowed=!1,this.selectedVo=this.emptyVo,this.selectedResource=this.emptyResource,this.selectedService=this.emptyService,this.filtersCount=0}},{key:"refreshPage",value:function(){var e=this;this.loading=!0,this.facilityService.getAssignedResourcesForFacility(this.facility.id).subscribe(function(t){e.resources=[e.emptyResource].concat(t),e.filteredResources=e.resources,e.facilityService.getAllowedVos(e.facility.id).subscribe(function(t){e.vos=[e.emptyVo].concat(t),e.services=[],e.getAssignedServices(e.resources,e.resources.length-1)},function(){return e.loading=!1})},function(){return e.loading=!1})}},{key:"getAssignedServices",value:function(e,t){var i=this;if(0===t)return this.services=[this.emptyService].concat(this.services),this.filteredServices=this.services,this.changeFilter(),void(this.loading=!1);this.resourceService.getAssignedServicesToResource(e[t].id).subscribe(function(a){i.services=i.services.concat(a),i.resourceAssignedServices[e[t].id]=a.map(function(e){return e.id}),i.getAssignedServices(e,t-1)},function(){return i.loading=!1})}},{key:"getFilteredServices",value:function(e){var t=this,i=new Set;return e.forEach(function(e){t.resourceAssignedServices[e.id].forEach(function(e){return i.add(e)})}),[this.emptyService].concat(this.services.filter(function(e){return i.has(e.id)}))}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"voSelected",value:function(e){this.selectedVo.id!==e.id&&(this.selectedVo=e,this.selectedResource=this.emptyResource,this.selectedService=this.emptyService,-1===e.id?(this.filteredResources=this.resources,this.filteredServices=this.services):(this.filteredResources=this.resources.filter(function(t){return t.voId===e.id}),this.filteredServices=this.getFilteredServices(this.filteredResources),this.filteredResources=[this.emptyResource].concat(this.filteredResources)),this.changeFilter())}},{key:"resourceSelected",value:function(e){this.selectedResource.id!==e.id&&(this.selectedResource=e,this.selectedService=this.emptyService,this.filteredServices=-1===e.id?this.services:this.getFilteredServices([e]),this.changeFilter())}},{key:"serviceSelected",value:function(e){this.selectedService=e,this.changeFilter()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(A.Y36(f.IQ),A.Y36(f.KK),A.Y36(f.xk),A.Y36(g.x4),A.Y36(g.d6),A.Y36(g.fb))},e.\u0275cmp=A.Xpm({type:e,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,"filtersCount","advancedFilter","changeAdvancedFilter","clearFilters"],["class","advanced-filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","searchString","displayedColumns","attrNames","facilityId","voId","resourceId","serviceId","onlyAllowed","disableRouting",4,"ngIf"],[1,"advanced-filter"],[1,"toggle","filters"],["labelPosition","before",1,"mr-2",3,"ngModel","ngModelChange","change"],[1,"text-muted"],[1,"search-select",3,"vo","vos","voSelected"],[1,"search-select",3,"displayStatus","resource","resources","resourceSelected"],[1,"search-select",3,"service","services","serviceSelected"],[1,"ml-auto","mr-auto"],[3,"tableId","searchString","displayedColumns","attrNames","facilityId","voId","resourceId","serviceId","onlyAllowed","disableRouting"]],template:function(e,t){1&e&&(A.TgZ(0,"div"),A.TgZ(1,"h1",0),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"div",1),A.TgZ(5,"perun-web-apps-refresh-button",2),A.NdJ("refresh",function(){return t.refreshPage()}),A.qZA(),A.TgZ(6,"perun-web-apps-debounce-filter",3),A.NdJ("filter",function(e){return t.applyFilter(e)}),A.qZA(),A.TgZ(7,"perun-web-apps-advanced-filter",4),A.NdJ("changeAdvancedFilter",function(e){return t.advancedFilter=e})("clearFilters",function(){return t.clearFilters()}),A.qZA(),A.qZA(),A.YNc(8,en,12,14,"div",5),A.YNc(9,tn,1,0,"mat-spinner",6),A.YNc(10,nn,1,11,"perun-web-apps-users-dynamic-list",7),A.qZA()),2&e&&(A.xp6(2),A.Oqu(A.lcZ(3,7,"FACILITY_DETAIL.ALLOWED_USERS.TITLE")),A.xp6(4),A.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_USERS.FILTER"),A.xp6(1),A.Q6J("filtersCount",t.filtersCount)("advancedFilter",t.advancedFilter),A.xp6(1),A.Q6J("ngIf",t.advancedFilter),A.xp6(1),A.Q6J("ngIf",t.loading),A.xp6(1),A.Q6J("ngIf",!t.loading))},directives:[Be.t,Ga.P,Ba,o.O5,ja.Rr,re.JJ,re.On,$a.M,za.L,Wa,y.$g,Ka.M],pipes:[k.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 #d3d3d3;padding:15px}"]}),e}(),ln=l(95142);function rn(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"th",20),A.TgZ(1,"mat-checkbox",21),A.NdJ("change",function(e){A.CHM(i);var t=A.oxw();return e?t.masterToggle():null}),A.qZA(),A.qZA()}if(2&e){var a=A.oxw();A.xp6(1),A.Q6J("aria-label",a.checkboxLabel())("checked",a.selection.hasValue()&&a.isAllSelected())("indeterminate",a.selection.hasValue()&&!a.isAllSelected())}}function on(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"td",22),A.TgZ(1,"mat-checkbox",23),A.NdJ("change",function(e){var t=A.CHM(i).$implicit,a=A.oxw();return e?a.selection.toggle(t):null})("click",function(e){return e.stopPropagation()}),A.qZA(),A.qZA()}if(2&e){var a=t.$implicit,n=A.oxw();A.xp6(1),A.Q6J("aria-label",n.checkboxLabel(a))("checked",n.selection.isSelected(a))}}function cn(e,t){1&e&&(A.TgZ(0,"th",24),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RESULT_ID")," "))}function un(e,t){if(1&e&&(A.TgZ(0,"td",25),A._uU(1),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.Oqu(i.id)}}function dn(e,t){1&e&&(A.TgZ(0,"th",24),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.DESTINATION")," "))}function hn(e,t){if(1&e&&(A.TgZ(0,"td",25),A._uU(1),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.hij(" ",i.destination.destination," ")}}function fn(e,t){1&e&&(A.TgZ(0,"th",24),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TYPE")," "))}function pn(e,t){if(1&e&&(A.TgZ(0,"td",25),A._uU(1),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.hij(" ",i.destination.type.toUpperCase()," ")}}function gn(e,t){1&e&&(A.TgZ(0,"th",24),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.SERVICE")," "))}function mn(e,t){if(1&e&&(A.TgZ(0,"td",25),A._uU(1),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.hij(" ",i.service.name," ")}}function vn(e,t){1&e&&(A.TgZ(0,"th",24),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STATUS")," "))}function An(e,t){if(1&e&&(A.TgZ(0,"td",25),A._uU(1),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.hij(" ",i.status," ")}}function In(e,t){1&e&&(A.TgZ(0,"th",24),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TIME")," "))}function Sn(e,t){if(1&e&&(A.TgZ(0,"td",25),A._uU(1),A.ALo(2,"date"),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,i.timestamp,"d.M.y H:mm:ss")," ")}}function Tn(e,t){1&e&&(A.TgZ(0,"th",24),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RETURN_CODE")," "))}function bn(e,t){if(1&e&&(A.TgZ(0,"td",25),A._uU(1),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.hij(" ",i.returnCode," ")}}function yn(e,t){1&e&&(A.TgZ(0,"th",24),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STANDARD_MESSAGE")," "))}function En(e,t){if(1&e&&(A.TgZ(0,"span"),A._uU(1),A._UZ(2,"br"),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.Oqu(i)}}function Zn(e,t){if(1&e&&(A.TgZ(0,"td",25),A.YNc(1,En,3,1,"span",26),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.Q6J("ngForOf",i.standardMessage.split("\n"))}}function Cn(e,t){1&e&&(A.TgZ(0,"th",24),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.ERROR_MESSAGE")," "))}function _n(e,t){if(1&e&&(A.TgZ(0,"td",25),A._uU(1),A.qZA()),2&e){var i=t.$implicit;A.xp6(1),A.hij(" ",i.errorMessage," ")}}function kn(e,t){1&e&&A._UZ(0,"tr",27)}function Ln(e,t){if(1&e&&A._UZ(0,"tr",28),2&e){var i=t.$implicit;A.ekj("greenTableItem","DONE"===i.status)("redTableItem","ERROR"===i.status||"DENIED"===i.status)("yellowTableItem","WARNING"===i.status)}}function xn(e,t){1&e&&(A.TgZ(0,"app-alert",29),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function On(e,t){1&e&&(A.TgZ(0,"app-alert",29),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.NO_RESULTS_WARNING"),"\n"))}var Nn=function(){var e=function(){function e(t,i){s(this,e),this.authResolver=t,this.tableCheckbox=i,this.pageSizeOptions=p.f7,this.taskResults=[],this.selection=new Oe.Ov(!0,[]),this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"]}return r(e,[{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(e){return"id"!==e})),this.dataSource=new ct.by(this.taskResults),this.setDataSource(),this.dataSource.filter=this.filterValue}},{key:"getDataForColumn",value:function(e,t){switch(t){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,o.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""}}},{key:"getSortDataForColumn",value:function(e,t){switch(t){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,o.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""}}},{key:"exportData",value:function(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue,this.dataSource.filterPredicate=function(t,i){return(0,p.Sd)(t,i,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,i){return(0,p.pR)(t,i,e.getSortDataForColumn,e)})}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(e){return e?"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}}]),e}();return e.\u0275fac=function(t){return new(t||e)(A.Y36(g.x4),A.Y36(g.UA))},e.\u0275cmp=A.Xpm({type:e,selectors:[["perun-web-apps-task-results-list"]],viewQuery:function(e,t){var i;(1&e&&(A.Gf(wt.YE,7),A.Gf(p.l9,7)),2&e)&&(A.iGM(i=A.CRH())&&(t.matSort=i.first),A.iGM(i=A.CRH())&&(t.child=i.first))},inputs:{taskResults:"taskResults",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns"},features:[A.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,t){1&e&&(A.TgZ(0,"div",0),A.TgZ(1,"perun-web-apps-table-wrapper",1),A.NdJ("exportData",function(e){return t.exportData(e)}),A.TgZ(2,"table",2),A.ynx(3,3),A.YNc(4,rn,2,3,"th",4),A.YNc(5,on,2,2,"td",5),A.BQk(),A.ynx(6,6),A.YNc(7,cn,3,3,"th",7),A.YNc(8,un,2,1,"td",8),A.BQk(),A.ynx(9,9),A.YNc(10,dn,3,3,"th",7),A.YNc(11,hn,2,1,"td",8),A.BQk(),A.ynx(12,10),A.YNc(13,fn,3,3,"th",7),A.YNc(14,pn,2,1,"td",8),A.BQk(),A.ynx(15,11),A.YNc(16,gn,3,3,"th",7),A.YNc(17,mn,2,1,"td",8),A.BQk(),A.ynx(18,12),A.YNc(19,vn,3,3,"th",7),A.YNc(20,An,2,1,"td",8),A.BQk(),A.ynx(21,13),A.YNc(22,In,3,3,"th",7),A.YNc(23,Sn,3,4,"td",8),A.BQk(),A.ynx(24,14),A.YNc(25,Tn,3,3,"th",7),A.YNc(26,bn,2,1,"td",8),A.BQk(),A.ynx(27,15),A.YNc(28,yn,3,3,"th",7),A.YNc(29,Zn,2,1,"td",8),A.BQk(),A.ynx(30,16),A.YNc(31,Cn,3,3,"th",7),A.YNc(32,_n,2,1,"td",8),A.BQk(),A.YNc(33,kn,1,0,"tr",17),A.YNc(34,Ln,1,6,"tr",18),A.qZA(),A.qZA(),A.qZA(),A.YNc(35,xn,3,3,"app-alert",19),A.YNc(36,On,3,3,"app-alert",19)),2&e&&(A.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.taskResults.length),A.xp6(1),A.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),A.xp6(1),A.Q6J("dataSource",t.dataSource),A.xp6(31),A.Q6J("matHeaderRowDef",t.displayedColumns),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns),A.xp6(1),A.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.taskResults.length),A.xp6(1),A.Q6J("ngIf",0===t.taskResults.length))},directives:[Ft.l,ct.BZ,wt.YE,ct.w1,ct.fO,ct.Dz,ct.as,ct.nj,o.O5,ct.ge,de.oG,ct.ev,wt.nU,o.sg,ct.XQ,ct.Gk,$e.w],pipes:[k.X$,o.uU],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}"]}),e}();function Rn(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"button",7),A.NdJ("click",function(){return A.CHM(i),A.oxw().removeTaskResult()}),A._uU(1),A.ALo(2,"translate"),A.qZA()}if(2&e){var a=A.oxw();A.Q6J("disabled",0===a.selection.selected.length),A.xp6(1),A.hij(" ",A.lcZ(2,2,"FACILITY_DETAIL.TASK_RESULTS.REMOVE"),"\n")}}function Dn(e,t){1&e&&A._UZ(0,"mat-spinner",8)}function wn(e,t){if(1&e&&A._UZ(0,"perun-web-apps-task-results-list",9),2&e){var i=A.oxw();A.Q6J("tableId",i.tableId)("displayedColumns",i.displayedColumns)("filterValue",i.filterValue)("selection",i.selection)("taskResults",i.taskResults)}}var Fn=function(){var e=function(){function e(t,i,a,n,l){s(this,e),this.route=t,this.taskManager=i,this.authResolver=a,this.dialog=n,this.entityStorageService=l,this.loading=!1,this.filterValue="",this.selection=new Oe.Ov(!0,[]),this.task={id:0},this.tableId=xe.e5,this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"],this.removeAuth=!1}return r(e,[{key:"ngOnInit",value:function(){var e=this;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(function(t){e.taskId=t.taskId,e.taskManager.getTaskById(e.taskId).subscribe(function(t){e.task=t,e.refreshTable()})})}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.taskManager.getTaskResultsForGUIByTask(this.taskId).subscribe(function(t){e.selection.clear(),e.taskResults=t,e.loading=!1})}},{key:"removeTaskResult",value:function(){var e=this,t=(0,p.kZ)();t.width="600px",t.data={theme:"facility-theme",taskResults:this.selection.selected},this.dialog.open(Wi,t).afterClosed().subscribe(function(t){t&&e.refreshTable()})}},{key:"applyFilter",value:function(e){this.filterValue=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(A.Y36(c.gz),A.Y36(f.Ob),A.Y36(g.x4),A.Y36(I.uw),A.Y36(g.fb))},e.\u0275cmp=A.Xpm({type:e,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,t){1&e&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.TgZ(3,"span",1),A._uU(4),A.qZA(),A.qZA(),A.TgZ(5,"perun-web-apps-refresh-button",2),A.NdJ("refresh",function(){return t.refreshTable()}),A.qZA(),A.YNc(6,Rn,3,4,"button",3),A.TgZ(7,"perun-web-apps-immediate-filter",4),A.NdJ("filter",function(e){return t.applyFilter(e)}),A.qZA(),A.YNc(8,Dn,1,0,"mat-spinner",5),A.YNc(9,wn,1,5,"perun-web-apps-task-results-list",6)),2&e&&(A.xp6(1),A.AsE(" ",A.lcZ(2,7,"FACILITY_DETAIL.TASK_RESULTS.TITLE")," - ",t.task.service?t.task.service.name:""," "),A.xp6(3),A.hij(" \xa0#",t.task.id," "),A.xp6(2),A.Q6J("ngIf",t.removeAuth),A.xp6(1),A.Q6J("placeholder","FACILITY_DETAIL.TASK_RESULTS.FILTER"),A.xp6(1),A.Q6J("ngIf",t.loading),A.xp6(1),A.Q6J("ngIf",!t.loading))},directives:[Be.t,o.O5,je.L,_.lW,y.$g,Nn],pipes:[k.X$],styles:[""]}),e}(),Yn=l(53134),Un=function(){var e=function(){function e(t,i){s(this,e),this.dialogRef=t,this.data=i,this.theme=""}return r(e,[{key:"ngOnInit",value:function(){this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSkip",value:function(){this.dialogRef.close(!0)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(A.Y36(I.so),A.Y36(I.WI))},e.\u0275cmp=A.Xpm({type:e,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,t){1&e&&(A.TgZ(0,"div"),A.TgZ(1,"h1",0),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"div",1),A._uU(5),A.ALo(6,"translate"),A.qZA(),A.TgZ(7,"div",2),A.TgZ(8,"button",3),A.NdJ("click",function(){return t.onCancel()}),A._uU(9),A.ALo(10,"translate"),A.qZA(),A.TgZ(11,"button",4),A.NdJ("click",function(){return t.onSkip()}),A._uU(12),A.ALo(13,"translate"),A.qZA(),A.qZA(),A.qZA()),2&e&&(A.Tol(t.theme),A.xp6(2),A.Oqu(A.lcZ(3,7,"DIALOGS.NO_SERVICE.TITLE")),A.xp6(3),A.hij(" ",A.lcZ(6,9,"DIALOGS.NO_SERVICE.INFO")," "),A.xp6(4),A.hij(" ",A.lcZ(10,11,"DIALOGS.NO_SERVICE.CANCEL")," "),A.xp6(3),A.hij(" ",A.lcZ(13,13,"DIALOGS.NO_SERVICE.SKIP")," "))},directives:[I.uh,I.xY,I.H8,_.lW],pipes:[k.X$],styles:[""]}),e}(),Mn=function(){var e=function(){function e(t,i){s(this,e),this.dialogRef=t,this.data=i,this.theme=""}return r(e,[{key:"ngOnInit",value:function(){this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSkip",value:function(){this.dialogRef.close(!0)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(A.Y36(I.so),A.Y36(I.WI))},e.\u0275cmp=A.Xpm({type:e,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,t){1&e&&(A.TgZ(0,"div"),A.TgZ(1,"h1",0),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"div",1),A._uU(5),A.ALo(6,"translate"),A.qZA(),A.TgZ(7,"div",2),A.TgZ(8,"button",3),A.NdJ("click",function(){return t.onCancel()}),A._uU(9),A.ALo(10,"translate"),A.qZA(),A.TgZ(11,"button",4),A.NdJ("click",function(){return t.onSkip()}),A._uU(12),A.ALo(13,"translate"),A.qZA(),A.qZA(),A.qZA()),2&e&&(A.Tol(t.theme),A.xp6(2),A.Oqu(A.lcZ(3,7,"DIALOGS.CONFIG_UNSAVED.TITLE")),A.xp6(3),A.hij(" ",A.lcZ(6,9,"DIALOGS.CONFIG_UNSAVED.INFO")," "),A.xp6(4),A.hij(" ",A.lcZ(10,11,"DIALOGS.CONFIG_UNSAVED.CANCEL")," "),A.xp6(3),A.hij(" ",A.lcZ(13,13,"DIALOGS.CONFIG_UNSAVED.SKIP")," "))},directives:[I.uh,I.xY,I.H8,_.lW],pipes:[k.X$],styles:[""]}),e}();function qn(e,t){if(1&e&&(A.TgZ(0,"div",3),A._UZ(1,"i",4),A.ALo(2,"translate"),A.qZA()),2&e){var i=A.oxw();A.xp6(1),A.Q6J("innerHTML",A.lcZ(2,1,i.info),A.oJD)}}function Jn(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"button",9),A.NdJ("click",function(){return A.CHM(i),A.oxw(2).onKeep()}),A._uU(1),A.ALo(2,"translate"),A.qZA()}2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"DIALOGS.CANCEL_CONFIG.KEEP")," "))}function Qn(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"div",5),A.TgZ(1,"button",6),A.NdJ("click",function(){return A.CHM(i),A.oxw().onCancel()}),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"button",7),A.NdJ("click",function(){return A.CHM(i),A.oxw().onDelete()}),A.TgZ(5,"mat-icon"),A._uU(6," warning "),A.qZA(),A._uU(7),A.ALo(8,"translate"),A.qZA(),A.YNc(9,Jn,3,3,"button",8),A.qZA()}if(2&e){var a=A.oxw();A.xp6(2),A.hij(" ",A.lcZ(3,3,"DIALOGS.CANCEL_CONFIG.CANCEL")," "),A.xp6(5),A.hij(" ",A.lcZ(8,5,"DIALOGS.CANCEL_CONFIG.DELETE")," "),A.xp6(2),A.Q6J("ngIf",!a.lastStep)}}var Vn=function(){var e=function(){function e(t,i,a,n,l){s(this,e),this.dialogRef=t,this.data=i,this.facilityService=a,this.notificator=n,this.translate=l,this.theme="",this.title="",this.info="",this.loading=!1}return r(e,[{key:"ngOnInit",value:function(){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")}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onDelete",value:function(){var e=this;this.loading=!0,this.facilityService.deleteFacility(this.data.facilityId,!0).subscribe(function(){e.notificator.showSuccess(e.translate.instant("DIALOGS.CANCEL_CONFIG.SUCCESS")),e.dialogRef.close(!0),e.loading=!1},function(){return e.loading=!1})}},{key:"onKeep",value:function(){this.dialogRef.close(!0)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(A.Y36(I.so),A.Y36(I.WI),A.Y36(f.IQ),A.Y36(g.V6),A.Y36(k.sK))},e.\u0275cmp=A.Xpm({type:e,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,t){1&e&&(A.TgZ(0,"div"),A.TgZ(1,"h1",0),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.YNc(4,qn,3,3,"div",1),A.YNc(5,Qn,10,7,"div",2),A.qZA()),2&e&&(A.Tol(t.theme),A.xp6(2),A.Oqu(A.lcZ(3,6,t.title)),A.xp6(2),A.Q6J("ngIf",!t.loading),A.xp6(1),A.Q6J("ngIf",!t.loading))},directives:[I.uh,o.O5,I.xY,I.H8,_.lW,E.Hw],pipes:[k.X$],styles:[""]}),e}(),Hn=l(98470),Pn=l(70663),Gn=l(65267),Bn=l(91721),jn=l(45001),$n=["stepper"];function zn(e,t){1&e&&(A._uU(0),A.ALo(1,"translate")),2&e&&A.Oqu(A.lcZ(1,1,"FACILITY_CONFIGURATION.OWNERS"))}function Xn(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"app-facility-settings-owners",14),A.NdJ("ownerEmitter",function(e){return A.CHM(i),A.oxw().owners=e}),A.qZA()}}function Wn(e,t){1&e&&(A._uU(0),A.ALo(1,"translate")),2&e&&A.Oqu(A.lcZ(1,1,"FACILITY_CONFIGURATION.HOSTS"))}function Kn(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"app-facility-hosts",15),A.NdJ("hostEmitter",function(e){return A.CHM(i),A.oxw().hosts=e}),A.qZA()}2&e&&A.Q6J("disableRouting",!0)}function es(e,t){1&e&&(A._uU(0),A.ALo(1,"translate")),2&e&&A.Oqu(A.lcZ(1,1,"FACILITY_CONFIGURATION.SERVICES"))}var ts=function(){return["select","id","name","enabled","description"]};function is(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"h1",16),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"app-alert",17),A._uU(4),A.ALo(5,"translate"),A.qZA(),A.TgZ(6,"div",18),A.TgZ(7,"perun-web-apps-immediate-filter",19),A.NdJ("filter",function(e){return A.CHM(i),A.oxw().applyFilter(e)}),A.qZA(),A.TgZ(8,"perun-web-apps-service-package-search-select",20),A.NdJ("packageSelected",function(e){return A.CHM(i),A.oxw().packagesSelected(e)}),A.qZA(),A.qZA(),A.TgZ(9,"app-services-list",21),A.NdJ("selectionChanged",function(){return A.CHM(i),A.oxw().singleServiceSelected()}),A.qZA()}if(2&e){var a=A.oxw();A.xp6(1),A.Oqu(A.lcZ(2,13,"FACILITY_CONFIGURATION.SERVICES")),A.xp6(3),A.hij(" ",A.lcZ(5,15,"FACILITY_CONFIGURATION.SERVICES_INFO")," "),A.xp6(3),A.Q6J("placeholder","FACILITY_CONFIGURATION.SERVICES_FILTER"),A.xp6(1),A.Q6J("servicePackages",a.servicePackages)("selectedPackage",a.selectedPackages)("multiple",!0)("disableAutoSelect",!0)("theme","facility-theme"),A.xp6(1),A.Q6J("disableRouting",!0)("selection",a.selection)("services",a.services)("filterValue",a.filterValue)("displayedColumns",A.DdM(17,ts))}}function as(e,t){1&e&&(A._uU(0),A.ALo(1,"translate")),2&e&&A.Oqu(A.lcZ(1,1,"FACILITY_CONFIGURATION.SERVICE_CONFIG"))}function ns(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"perun-web-apps-service-search-select",27),A.NdJ("serviceSelected",function(e){return A.CHM(i),A.oxw(2).filterAttributes(e)}),A.qZA()}if(2&e){var a=A.oxw(2);A.Q6J("disableAutoSelect",!0)("services",a.selection.selected)("multiple",!0)("theme","facility-theme")}}function ss(e,t){1&e&&A._UZ(0,"mat-spinner",28)}function ls(e,t){if(1&e&&A._UZ(0,"perun-web-apps-attributes-list",29),2&e){var i=A.oxw(2);A.Q6J("emptyListText","FACILITY_CONFIGURATION.EMPTY_REQ_ATT")("selection",i.attSelection)("attributes",i.filteredAttributes)}}function rs(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"h1",16),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"app-alert",17),A._uU(4),A.ALo(5,"translate"),A.qZA(),A.TgZ(6,"div",18),A.TgZ(7,"button",22),A.NdJ("click",function(){return A.CHM(i),A.oxw().onRemoveAttributes()}),A._uU(8),A.ALo(9,"translate"),A.qZA(),A.TgZ(10,"button",23),A.NdJ("click",function(){return A.CHM(i),A.oxw().onSaveAttributes()}),A._uU(11),A.ALo(12,"translate"),A.qZA(),A.YNc(13,ns,1,4,"perun-web-apps-service-search-select",24),A.qZA(),A.YNc(14,ss,1,0,"mat-spinner",25),A.YNc(15,ls,1,3,"perun-web-apps-attributes-list",26)}if(2&e){var a=A.oxw(),n=A.MAs(5);A.xp6(1),A.Oqu(A.lcZ(2,9,"FACILITY_CONFIGURATION.SERVICE_CONFIG")),A.xp6(3),A.hij(" ",A.lcZ(5,11,"FACILITY_CONFIGURATION.ATT_INFO")," "),A.xp6(3),A.Q6J("disabled",0===a.attSelection.selected.length),A.xp6(1),A.hij(" ",A.lcZ(9,13,"FACILITY_CONFIGURATION.REMOVE")," "),A.xp6(2),A.Q6J("disabled",0===a.attSelection.selected.length),A.xp6(1),A.hij(" ",A.lcZ(12,15,"FACILITY_CONFIGURATION.SAVE")," "),A.xp6(2),A.Q6J("ngIf",n.selectedIndex===a.ATTRIBUTES_IDX),A.xp6(1),A.Q6J("ngIf",a.processing),A.xp6(1),A.Q6J("ngIf",!a.processing)}}function os(e,t){1&e&&(A._uU(0),A.ALo(1,"translate")),2&e&&A.Oqu(A.lcZ(1,1,"FACILITY_CONFIGURATION.DESTINATION_CONFIG"))}var cs=function(){return["select","destinationId","service","warn","destination","type","propagationType"]};function us(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"app-perun-web-apps-facility-services-destinations",30),A.NdJ("destinationEmitter",function(e){return A.CHM(i),A.oxw().destinations=e}),A.qZA()}if(2&e){var a=A.oxw();A.Q6J("title","FACILITY_CONFIGURATION.DESTINATION_CONFIG")("loading",a.processing)("displayedColumns",A.DdM(5,cs))("configServices",a.selection.selected)("configServicesIds",a.serviceIds)}}function ds(e,t){1&e&&(A._uU(0),A.ALo(1,"translate")),2&e&&A.Oqu(A.lcZ(1,1,"FACILITY_CONFIGURATION.MANAGERS"))}function hs(e,t){1&e&&A._UZ(0,"app-perun-web-apps-facility-settings-managers",31),2&e&&A.Q6J("disableRouting",!0)("disableSelf",!0)}function fs(e,t){1&e&&(A._uU(0),A.ALo(1,"translate")),2&e&&A.Oqu(A.lcZ(1,1,"FACILITY_CONFIGURATION.SUMMARY"))}function ps(e,t){1&e&&A._UZ(0,"mat-spinner",28)}var gs=function(){return["id","name","contact","type"]};function ms(e,t){if(1&e&&A._UZ(0,"perun-web-apps-owners-list",48),2&e){var i=A.oxw(3);A.Q6J("owners",i.owners)("displayedColumns",A.DdM(2,gs))}}function vs(e,t){1&e&&A._UZ(0,"mat-spinner",28)}var As=function(){return["id","name"]};function Is(e,t){if(1&e&&A._UZ(0,"app-hosts-list",49),2&e){var i=A.oxw(3);A.Q6J("disableRouting",!0)("hosts",i.hosts)("displayedColumns",A.DdM(3,As))}}function Ss(e,t){1&e&&A._UZ(0,"mat-spinner",28)}var Ts=function(){return["id","name","enabled","script","description"]},bs=function(){return["id","displayName","value","description"]},ys=function(){return["destinationId","service","warn","destination","type","propagationType"]},Es=function(){return["id","name","email","logins","organization"]},Zs=function(){return["id","vo","name","description"]};function Cs(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"mat-accordion"),A.TgZ(1,"mat-expansion-panel",34),A.TgZ(2,"mat-expansion-panel-header"),A.TgZ(3,"mat-panel-title"),A._UZ(4,"mat-icon",35),A._uU(5),A.ALo(6,"translate"),A.qZA(),A.qZA(),A.TgZ(7,"h1",16),A._uU(8),A.ALo(9,"translate"),A.qZA(),A.YNc(10,ps,1,0,"mat-spinner",25),A.YNc(11,ms,1,3,"perun-web-apps-owners-list",36),A.qZA(),A.TgZ(12,"mat-expansion-panel",34),A.TgZ(13,"mat-expansion-panel-header"),A.TgZ(14,"mat-panel-title"),A._UZ(15,"mat-icon",37),A._uU(16),A.ALo(17,"translate"),A.qZA(),A.qZA(),A.TgZ(18,"h1",16),A._uU(19),A.ALo(20,"translate"),A.qZA(),A.YNc(21,vs,1,0,"mat-spinner",25),A.YNc(22,Is,1,4,"app-hosts-list",38),A.qZA(),A.TgZ(23,"mat-expansion-panel",34),A.TgZ(24,"mat-expansion-panel-header"),A.TgZ(25,"mat-panel-title"),A._UZ(26,"mat-icon",39),A._uU(27),A.ALo(28,"translate"),A.qZA(),A.qZA(),A.TgZ(29,"h1",16),A._uU(30),A.ALo(31,"translate"),A.qZA(),A._UZ(32,"app-services-list",40),A.qZA(),A.TgZ(33,"mat-expansion-panel",41),A.NdJ("opened",function(){return A.CHM(i),A.oxw(2).getNonEmptyAttributes()}),A.TgZ(34,"mat-expansion-panel-header"),A.TgZ(35,"mat-panel-title"),A._UZ(36,"mat-icon",37),A._uU(37),A.ALo(38,"translate"),A.qZA(),A.qZA(),A.TgZ(39,"h1",16),A._uU(40),A.ALo(41,"translate"),A.qZA(),A._UZ(42,"perun-web-apps-attributes-list",42),A.qZA(),A.TgZ(43,"mat-expansion-panel",43),A.NdJ("expandedChange",function(e){return A.CHM(i),A.oxw(2).destinationServiceMissing=e}),A.TgZ(44,"mat-expansion-panel-header"),A.TgZ(45,"mat-panel-title"),A._UZ(46,"mat-icon",44),A._uU(47),A.ALo(48,"translate"),A.qZA(),A.qZA(),A.TgZ(49,"h1",16),A._uU(50),A.ALo(51,"translate"),A.qZA(),A.YNc(52,Ss,1,0,"mat-spinner",25),A._UZ(53,"app-perun-web-apps-destination-list",45),A.qZA(),A.TgZ(54,"mat-expansion-panel"),A.TgZ(55,"mat-expansion-panel-header"),A.TgZ(56,"mat-panel-title"),A._UZ(57,"mat-icon",46),A._uU(58),A.ALo(59,"translate"),A.qZA(),A.qZA(),A._UZ(60,"app-managers-page",47),A.qZA(),A.qZA()}if(2&e){var a=A.oxw(2);A.Q6J("@.disabled",!0),A.xp6(1),A.Q6J("disabled",0===a.owners.length),A.xp6(1),A.ekj("cursor-default",0===a.owners.length),A.xp6(3),A.hij(" ",A.lcZ(6,49,"FACILITY_CONFIGURATION.OWNERS")," "),A.xp6(3),A.Oqu(A.lcZ(9,51,"FACILITY_CONFIGURATION.OWNERS")),A.xp6(2),A.Q6J("ngIf",a.processing),A.xp6(1),A.Q6J("ngIf",!a.processing),A.xp6(1),A.Q6J("disabled",0===a.hosts.length),A.xp6(1),A.ekj("cursor-default",0===a.hosts.length),A.xp6(3),A.hij(" ",A.lcZ(17,53,"FACILITY_CONFIGURATION.HOSTS")," "),A.xp6(3),A.Oqu(A.lcZ(20,55,"FACILITY_CONFIGURATION.HOSTS")),A.xp6(2),A.Q6J("ngIf",a.processing),A.xp6(1),A.Q6J("ngIf",!a.processing),A.xp6(1),A.Q6J("disabled",0===a.selection.selected.length),A.xp6(1),A.ekj("cursor-default",0===a.selection.selected.length),A.xp6(3),A.hij(" ",A.lcZ(28,57,"FACILITY_CONFIGURATION.SERVICES")," "),A.xp6(3),A.Oqu(A.lcZ(31,59,"FACILITY_CONFIGURATION.SERVICES")),A.xp6(2),A.Q6J("disableRouting",!0)("services",a.selection.selected)("displayedColumns",A.DdM(71,Ts)),A.xp6(1),A.Q6J("disabled",0===a.selection.selected.length),A.xp6(1),A.ekj("cursor-default",0===a.selection.selected.length),A.xp6(3),A.hij(" ",A.lcZ(38,61,"FACILITY_CONFIGURATION.SERVICE_CONFIG")," "),A.xp6(3),A.Oqu(A.lcZ(41,63,"FACILITY_CONFIGURATION.ATTS")),A.xp6(2),A.Q6J("displayedColumns",A.DdM(72,bs))("emptyListText","FACILITY_CONFIGURATION.EMPTY_REQ_ATT")("attributes",a.filteredAttributes),A.xp6(1),A.Q6J("expanded",a.destinationServiceMissing)("disabled",0===a.selection.selected.length&&0===a.destinations.length),A.xp6(1),A.ekj("cursor-default",0===a.selection.selected.length&&0===a.destinations.length),A.xp6(3),A.hij(" ",A.lcZ(48,65,"FACILITY_CONFIGURATION.DESTINATION_CONFIG")," "),A.xp6(3),A.Oqu(A.lcZ(51,67,"FACILITY_CONFIGURATION.DESTINATION")),A.xp6(2),A.Q6J("ngIf",a.processing),A.xp6(1),A.Q6J("destinations",a.destinations)("services",a.serviceIds)("displayedColumns",A.DdM(73,ys)),A.xp6(5),A.hij(" ",A.lcZ(59,69,"FACILITY_CONFIGURATION.MANAGERS")," "),A.xp6(2),A.Q6J("complementaryObject",a.facility)("configMode",!0)("disableRouting",!0)("complementaryObjectType","Facility")("availableRoles",a.availableRoles)("displayedUserColumns",A.DdM(74,Es))("displayedGroupColumns",A.DdM(75,Zs))}}function _s(e,t){if(1&e&&(A.TgZ(0,"app-alert",17),A._UZ(1,"i",32),A.ALo(2,"translate"),A.qZA(),A.YNc(3,Cs,61,76,"mat-accordion",33)),2&e){A.oxw();var i=A.MAs(5);A.xp6(1),A.Q6J("innerHTML",A.lcZ(2,2,"FACILITY_CONFIGURATION.SUMMARY_INFO"),A.oJD),A.xp6(2),A.Q6J("ngIf",i.selectedIndex===i.steps.length-1)}}function ks(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"button",50),A.NdJ("click",function(){return A.CHM(i),A.oxw().back()}),A._uU(1),A.ALo(2,"translate"),A.qZA()}2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"FACILITY_CONFIGURATION.BACK")," "))}function Ls(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"button",51),A.NdJ("click",function(){return A.CHM(i),A.oxw().next()}),A._uU(1),A.ALo(2,"translate"),A.qZA()}if(2&e){A.oxw();var a=A.MAs(5);A.ekj("mr-2",void 0!==a&&0!==a.selectedIndex)("ml-auto",!(void 0!==a&&0!==a.selectedIndex)),A.xp6(1),A.hij(" ",A.lcZ(2,5,"FACILITY_CONFIGURATION.NEXT")," ")}}function xs(e,t){if(1&e){var i=A.EpF();A.TgZ(0,"button",52),A.NdJ("click",function(){return A.CHM(i),A.oxw().onFinish()}),A._uU(1),A.ALo(2,"translate"),A.qZA()}2&e&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"FACILITY_CONFIGURATION.FINISH")," "))}var Os,Ns=function(){var t=function(){function t(e,i,a,n,l,r,o,c,u,d){var h=this;s(this,t),this.attributesManager=e,this.serviceManager=i,this.facilityService=a,this.cd=n,this.dialog=l,this.notificator=r,this.translate=o,this.router=c,this.guiAuthResolver=u,this.entityStorageService=d,this.processing=!1,this.allowNavigate=!1,this.attributes=[],this.attributeIds=new Set,this.filteredAttributes=[],this.attributesPerService=new Map,this.attSelection=new Oe.Ov(!0,[]),this.services=[],this.serviceIds=new Set,this.servicesPerPackage=new Map,this.servicePackages=[],this.selectedPackages=[],this.selection=new Oe.Ov(!0,[]),this.owners=[],this.hosts=[],this.destinations=[],this.destinationServiceMissing=!1,this.availableRoles=[],this.filterValue="",this.saveMsg="",this.removeMsg="",this.BEFORE_OPTIONAL_IDX=2,this.ATTRIBUTES_IDX=3,this.DESTINATIONS_IDX=4,this.AFTER_OPTIONAL_IDX=5,this.serviceControl=new re.NI(!1,re.kI.requiredTrue),this.attributesControl=new re.NI(!0,re.kI.requiredTrue),this.translate.get("FACILITY_CONFIGURATION.ATT_SAVED").subscribe(function(e){return h.saveMsg=e}),this.translate.get("FACILITY_CONFIGURATION.ATT_REMOVED").subscribe(function(e){return h.removeMsg=e})}return r(t,[{key:"ngOnInit",value:function(){var e=this;this.facility=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Facility"),this.serviceManager.getServicesPackages().subscribe(function(t){e.servicePackages=t,e.getServicePackageServices(t,0)})}},{key:"ngAfterViewInit",value:function(){var e=this;this.cd.detectChanges(),this.attSelection.changed.subscribe(function(){e.attributesControl.setValue(0===e.attSelection.selected.length)})}},{key:"onCancel",value:function(){var e=this,t=(0,p.kZ)();t.width="550px",t.data={facilityId:this.facility.id,lastStep:this.stepper.selectedIndex===this.stepper.steps.length-1,theme:"facility-theme"},this.dialog.open(Vn,t).afterClosed().subscribe(function(t){t&&(e.allowNavigate=!0,sessionStorage.removeItem("newFacilityId"),e.router.navigate(["facilities"],{queryParamsHandling:"merge"}))})}},{key:"getServicePackageServices",value:function(t,i){var a=this;i===t.length?this.serviceManager.getServices().subscribe(function(e){a.services=e}):this.serviceManager.getServicesFromServicesPackage(t[i].id).subscribe(function(n){a.servicesPerPackage.set(t[i].id,new Set(e(n.map(function(e){return e.id})))),a.getServicePackageServices(t,i+1)})}},{key:"getServiceRequiredAttributes",value:function(e,t){var i=this;t!==e.length&&this.attributesManager.getRequiredAttributesDefinition(e[t].id).subscribe(function(a){a=a.filter(function(e){return i.attributeIds.has(e.id)}),i.attributesPerService.set(e[t].id,a.map(function(e){return e.id})),i.getServiceRequiredAttributes(e,t+1)})}},{key:"setServiceControl",value:function(){this.serviceControl.setValue(0!==this.selection.selected.length)}},{key:"buildServiceSet",value:function(e){var t=this,i=new Set;return e.forEach(function(e){t.servicesPerPackage.get(e.id).forEach(function(e){return i.add(e)})}),i}},{key:"setDiff",value:function(t,i){return new Set(e(t).filter(function(e){return!i.has(e)}))}},{key:"setIntersect",value:function(t,i){return new Set(e(t).filter(function(e){return i.has(e)}))}},{key:"setSymDif",value:function(t,i){var a=this.buildServiceSet(t),n=this.buildServiceSet(i),s=this.setDiff(a,n),l=this.setDiff(n,a);return new Set([].concat(e(s),e(l)))}},{key:"filterService",value:function(e,t){var a,n=new Set,s=i(t);try{for(s.s();!(a=s.n()).done;){var l=a.value,r=this.setIntersect(e,this.servicesPerPackage.get(l.id));0!==r.size&&r.forEach(function(e){return n.add(e)})}}catch(o){s.e(o)}finally{s.f()}return n}},{key:"packageSelectionEqual",value:function(e){var t=this;return e.length===this.selectedPackages.length&&(e.forEach(function(e){if(-1===t.selectedPackages.findIndex(function(t){return t.id===e.id}))return!1}),!0)}},{key:"packagesSelected",value:function(e){var t=this;if(!this.packageSelectionEqual(e)){this.processing=!0;var a=new Set;if(e&&0!==e.length?a=this.setSymDif(this.selectedPackages,e):this.selectedPackages.forEach(function(e){t.servicesPerPackage.get(e.id).forEach(function(e){return a.add(e)})}),0!==a.size){var n,s=this.filterService(a,e.filter(function(e){return t.selectedPackages.findIndex(function(t){return t.id===e.id})<0})),l=this.filterService(a,this.selectedPackages.filter(function(t){return e.findIndex(function(e){return e.id===t.id})<0})),r=i(this.services);try{for(r.s();!(n=r.n()).done;){var o=n.value;s.has(o.id)?this.selection.select(o):l.has(o.id)&&this.selection.deselect(o)}}catch(c){r.e(c)}finally{r.f()}this.selectedPackages=e,this.setServiceControl(),this.processing=!1}}}},{key:"checkPackageComplete",value:function(){var e,t=this,a=[],n=i(this.selectedPackages);try{for(n.s();!(e=n.n()).done;){var s,l=e.value,r=!0,o=i(this.servicesPerPackage.get(l.id));try{var c=function(){var e=s.value;if(-1===t.selection.selected.findIndex(function(t){return t.id===e}))return r=!1,"break"};for(o.s();!(s=o.n()).done;){if("break"===c())break}}catch(u){o.e(u)}finally{o.f()}r&&a.push(l)}}catch(u){n.e(u)}finally{n.f()}this.selectedPackages=a}},{key:"singleServiceSelected",value:function(){this.setServiceControl(),this.processing||this.checkPackageComplete()}},{key:"back",value:function(){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()}},{key:"openSkipDialog",value:function(){var e=this,t=(0,p.kZ)();t.width="400px",t.data={theme:"facility-theme"},this.dialog.open(Un,t).afterClosed().subscribe(function(t){t&&(e.serviceControl.setValue(!0),e.stepper.selectedIndex=e.AFTER_OPTIONAL_IDX)})}},{key:"getRequiredAttributes",value:function(){var e=this;this.processing=!0,this.attributesManager.getRequiredAttributesFacilityServices(this.selection.selected.map(function(e){return e.id}),this.facility.id).subscribe(function(t){e.attSelection.clear(),e.attributes=t.filter(function(e){return!(0,p.Hm)(e)}),e.filteredAttributes=e.attributes,e.attributes.forEach(function(t){return e.attributeIds.add(t.id)}),e.getServiceRequiredAttributes(e.selection.selected,0),e.processing=!1})}},{key:"onSaveAttributes",value:function(){var e=this;return new Promise(function(t,i){e.processing=!0,e.attributesManager.setFacilityAttributes({facility:e.facility.id,attributes:e.attSelection.selected}).subscribe(function(){e.notificator.showSuccess(e.saveMsg),e.attSelection.clear(),e.processing=!1,t()},function(){e.processing=!1,i()})})}},{key:"openUnsavedAttsDialog",value:function(){var e=this,t=(0,p.kZ)();t.width="400px",t.data={theme:"facility-theme"},this.dialog.open(Mn,t).afterClosed().subscribe(function(t){t&&e.onSaveAttributes().then(function(){e.stepper.next()},function(){return e.getRequiredAttributes()})})}},{key:"next",value:function(){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()}},{key:"onFinish",value:function(){this.allowNavigate=!0,sessionStorage.removeItem("newFacilityId"),this.router.navigate(["facilities",this.facility.id],{queryParamsHandling:"merge"})}},{key:"onRemoveAttributes",value:function(){var e=this;this.processing=!0;var t=this.attSelection.selected.map(function(e){return e.id});this.attributesManager.removeFacilityAttributes(this.facility.id,t).subscribe(function(){e.notificator.showSuccess(e.removeMsg),e.getRequiredAttributes(),e.processing=!1})}},{key:"filterAttributes",value:function(e){if(void 0!==e&&0!==e.length){var t,a=new Set,n=i(e);try{for(n.s();!(t=n.n()).done;){var s=t.value;this.attributesPerService.get(s.id).forEach(function(e){return a.add(e)})}}catch(c){n.e(c)}finally{n.f()}this.filteredAttributes=[];var l,r=i(this.attributes);try{for(r.s();!(l=r.n()).done;){var o=l.value;a.has(o.id)&&this.filteredAttributes.push(o)}}catch(c){r.e(c)}finally{r.f()}}else this.filteredAttributes=this.attributes}},{key:"getNonEmptyAttributes",value:function(){this.filteredAttributes=this.attributes.filter(function(e){if(e.value&&(!(0,Hn.k)(e.value)||0!==e.value.length))return e})}},{key:"checkDestinationDependency",value:function(t){t!==this.BEFORE_OPTIONAL_IDX&&t!==this.DESTINATIONS_IDX||(this.serviceIds=new Set(e(this.selection.selected.map(function(e){return e.id}))),this.destinationServicePresent())}},{key:"navigationStep",value:function(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()}},{key:"getOwners",value:function(){var e=this;this.processing=!0,this.facilityService.getFacilityOwners(this.facility.id).subscribe(function(t){e.owners=t,e.processing=!1})}},{key:"getHosts",value:function(){var e=this;this.processing=!0,this.facilityService.getHosts(this.facility.id).subscribe(function(t){e.hosts=t,e.processing=!1})}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"destinationServicePresent",value:function(){var e,t=i(this.destinations);try{for(t.s();!(e=t.n()).done;){var a=e.value;if(!this.serviceIds.has(a.service.id))return void(this.destinationServiceMissing=!0)}}catch(n){t.e(n)}finally{t.f()}this.destinationServiceMissing=!1}},{key:"canDeactivate",value:function(){return this.allowNavigate||this.onCancel(),this.allowNavigate}}]),t}();return t.\u0275fac=function(e){return new(e||t)(A.Y36(f.H8),A.Y36(f.KK),A.Y36(f.IQ),A.Y36(A.sBO),A.Y36(I.uw),A.Y36(g.V6),A.Y36(k.sK),A.Y36(c.F0),A.Y36(g.x4),A.Y36(g.fb))},t.\u0275cmp=A.Xpm({type:t,selectors:[["app-facility-configuration-page"]],viewQuery:function(e,t){var i;(1&e&&A.Gf($n,5),2&e)&&(A.iGM(i=A.CRH())&&(t.stepper=i.first))},decls:34,vars:15,consts:[[1,"facility-theme"],[1,"page-title"],[3,"linear","selectionChange"],["stepper",""],["matStepLabel",""],["matStepContent",""],[3,"stepControl"],["optional","true",3,"stepControl","editable"],[3,"optional","editable"],[1,"actions"],["mat-flat-button","",3,"click"],["class","ml-auto mr-2","mat-flat-button","",3,"click",4,"ngIf"],["mat-flat-button","","color","accent",3,"mr-2","ml-auto","click",4,"ngIf"],["class","mr-2","mat-flat-button","","color","accent",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,"servicePackages","selectedPackage","multiple","disableAutoSelect","theme","packageSelected"],[3,"disableRouting","selection","services","filterValue","displayedColumns","selectionChanged"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","accent",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","selection","attributes",4,"ngIf"],[1,"service-search-select",3,"disableAutoSelect","services","multiple","theme","serviceSelected"],[1,"ml-auto","mr-auto"],[3,"emptyListText","selection","attributes"],[3,"title","loading","displayedColumns","configServices","configServicesIds","destinationEmitter"],[3,"disableRouting","disableSelf"],[3,"innerHTML"],[4,"ngIf"],[3,"disabled"],["svgIcon","perun-owner-grey",1,"mr-2"],[3,"owners","displayedColumns",4,"ngIf"],["svgIcon","perun-hosts",1,"mr-2"],[3,"disableRouting","hosts","displayedColumns",4,"ngIf"],["svgIcon","perun-service",1,"mr-2"],[3,"disableRouting","services","displayedColumns"],[3,"disabled","opened"],[3,"displayedColumns","emptyListText","attributes"],[3,"expanded","disabled","expandedChange"],["svgIcon","perun-service_destination",1,"mr-2"],[3,"destinations","services","displayedColumns"],["svgIcon","perun-manager",1,"mr-2"],[3,"complementaryObject","configMode","disableRouting","complementaryObjectType","availableRoles","displayedUserColumns","displayedGroupColumns"],[3,"owners","displayedColumns"],[3,"disableRouting","hosts","displayedColumns"],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["mat-flat-button","","color","accent",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"]],template:function(e,t){if(1&e&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"mat-stepper",2,3),A.NdJ("selectionChange",function(e){return t.navigationStep(e)}),A.TgZ(6,"mat-step"),A.YNc(7,zn,2,3,"ng-template",4),A.YNc(8,Xn,1,0,"ng-template",5),A.qZA(),A.TgZ(9,"mat-step"),A.YNc(10,Wn,2,3,"ng-template",4),A.YNc(11,Kn,1,1,"ng-template",5),A.qZA(),A.TgZ(12,"mat-step",6),A.YNc(13,es,2,3,"ng-template",4),A.YNc(14,is,10,18,"ng-template",5),A.qZA(),A.TgZ(15,"mat-step",7),A.YNc(16,as,2,3,"ng-template",4),A.YNc(17,rs,16,17,"ng-template",5),A.qZA(),A.TgZ(18,"mat-step",8),A.YNc(19,os,2,3,"ng-template",4),A.YNc(20,us,1,6,"ng-template",5),A.qZA(),A.TgZ(21,"mat-step"),A.YNc(22,ds,2,3,"ng-template",4),A.YNc(23,hs,1,2,"ng-template",5),A.qZA(),A.TgZ(24,"mat-step"),A.YNc(25,fs,2,3,"ng-template",4),A.YNc(26,_s,4,4,"ng-template",5),A.qZA(),A.qZA(),A.TgZ(27,"div",9),A.TgZ(28,"button",10),A.NdJ("click",function(){return t.onCancel()}),A._uU(29),A.ALo(30,"translate"),A.qZA(),A.YNc(31,ks,3,3,"button",11),A.YNc(32,Ls,3,7,"button",12),A.YNc(33,xs,3,3,"button",13),A.qZA(),A.qZA()),2&e){var i=A.MAs(5);A.xp6(2),A.hij(" ",A.lcZ(3,11,"FACILITY_CONFIGURATION.TITLE")," "),A.xp6(2),A.Q6J("linear",!0),A.xp6(8),A.Q6J("stepControl",t.serviceControl),A.xp6(3),A.Q6J("stepControl",t.attributesControl)("editable",0!==t.selection.selected.length),A.xp6(3),A.Q6J("optional",0===t.destinations.length)("editable",0!==t.selection.selected.length||0!==t.destinations.length),A.xp6(11),A.hij(" ",A.lcZ(30,13,"FACILITY_CONFIGURATION.CANCEL")," "),A.xp6(2),A.Q6J("ngIf",void 0!==i&&0!==i.selectedIndex),A.xp6(1),A.Q6J("ngIf",void 0!==i&&i.selectedIndex!==i.steps.length-1),A.xp6(1),A.Q6J("ngIf",void 0!==i&&i.selectedIndex===i.steps.length-1)}},directives:[Pn.Vq,Pn.C0,Pn.VY,Pn.BY,_.lW,o.O5,Tt,Kt,$e.w,je.L,Gn.F,Bn.Q,Wa,y.$g,Ii.p,nt,Le,jn.pp,jn.ib,jn.yz,jn.yK,E.Hw,ze.q,ke.s,st.Q,jt],pipes:[k.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}"]}),t}(),Rs=function(){var e=function(){function e(t){s(this,e),this.router=t}return r(e,[{key:"canActivate",value:function(e){return e.parent.params.facilityId===sessionStorage.getItem("newFacilityId")||(this.router.navigate(["/home"],{queryParamsHandling:"merge"}),!1)}},{key:"canDeactivate",value:function(e){return e.canDeactivate()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(A.LFG(c.F0))},e.\u0275prov=A.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Ds=[{path:"",component:u.P},{path:":facilityId",component:w,children:[{path:"",component:M,data:{animation:"FacilityOverviewPage"}},{path:"attributes",component:ie,data:{animation:"FacilityAttributesPage"}},{path:"resources",component:q.f,data:{animation:"FacilityResourcesPage"}},{path:"allowed-users",component:sn,data:{animation:"FacilityAllowedUsersPage"}},{path:"allowed-groups",component:J.o,data:{animation:"FacilityAllowedGroupsPage"}},{path:"services-status",component:Ha,data:{animation:"FacilityServiceStatusPage"}},{path:"services-status/:taskId",component:Fn,data:{animation:"FacilityTaskResultsPage"}},{path:"service-config",component:_e,data:{animation:"FacilityServiceConfigPage"}},{path:"services-destinations",component:nt,data:{animation:"FacilityServicesDestinationsPage"}},{path:"hosts",component:Kt,data:{animation:"FacilityHostsPage"}},{path:"hosts/:hostId",component:yi,data:{animation:"FacilityHostsDetailPage"}},{path:"settings",component:H,children:[{path:"",component:B,data:{animation:"FacilitySettingsOverviewPage"}},{path:"owners",component:Tt,data:{animation:"FacilitySettingOwnersPage"}},{path:"managers",component:Le,data:{animation:"FacilitySettingsManagersPage"}},{path:"security-teams",component:Mi,data:{animation:"FacilitySecurityTeamsPage"}},{path:"blacklist",component:gi,data:{animation:"FacilitySettingsBlackListPage"}}]},{path:"configuration",component:Ns,canActivate:[Rs],canDeactivate:[Rs]}]},{path:":facilityId/resources/:resourceId",component:Q.b,children:[{path:"",component:V.H,data:{animation:"ResourceOverviewPage"}},{path:"attributes",component:se.X,data:{animation:"ResourceAttributesPage"}},{path:"groups",component:le.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:Ji.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"members",component:ln.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:Yn.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:ae.t,children:[{path:"",component:ne.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:qi.O,data:{animation:"ResourceSettingsManagersPage"}}]}]}],ws=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=A.oAB({type:e}),e.\u0275inj=A.cJS({imports:[[c.Bz.forChild(Ds)],c.Bz]}),e}(),Fs=l(28780),Ys=l(22727),Us=l(65515),Ms=l(21781),qs=((Os=function e(){s(this,e)}).\u0275fac=function(e){return new(e||Os)},Os.\u0275mod=A.oAB({type:Os}),Os.\u0275inj=A.cJS({providers:[ue.dp],imports:[[o.ez,ws,Fs.m,Ys.r,mi.ez,ue.d4,Us.UsersModule,Ms.AdminModule]]}),Os)}}])}(); \ No newline at end of file diff --git a/dist/apps/admin-gui/781-es2015.7595fee21c51b94b8465.js b/dist/apps/admin-gui/781-es2015.7595fee21c51b94b8465.js new file mode 100644 index 000000000..aec7f1786 --- /dev/null +++ b/dist/apps/admin-gui/781-es2015.7595fee21c51b94b8465.js @@ -0,0 +1 @@ +(self.webpackChunkperun_web_apps=self.webpackChunkperun_web_apps||[]).push([[781],{21781:function(t,e,n){"use strict";n.r(e),n.d(e,{AdminModule:function(){return ap}});var r={};n.r(r),n.d(r,{forceCenter:function(){return Eo},forceCollide:function(){return Ro},forceLink:function(){return zo},forceManyBody:function(){return Wo},forceRadial:function(){return $o},forceSimulation:function(){return Qo},forceX:function(){return Xo},forceY:function(){return Ko}});var i=n(61511),o=n(57629),a=n(75585),s=n(31572),u=n(48958),c=n(66297),l=n(43691),h=n(21575),f=n(48160);const d=function(){return{color:"black"}};let p=(()=>{class t{constructor(t,e){this.sideMenuService=t,this.sideMenuItemService=e}ngOnInit(){this.sideMenuService.setAdminItems([])}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(u.D),s.Y36(a.V))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s._UZ(1,"perun-web-apps-back-button"),s.TgZ(2,"h1",1),s._UZ(3,"mat-icon",2),s._uU(4),s.ALo(5,"translate"),s.qZA(),s._UZ(6,"app-animated-router-outlet"),s.qZA()),2&t&&(s.xp6(3),s.Q6J("ngStyle",s.DdM(4,d)),s.xp6(1),s.hij(" ",s.lcZ(5,2,"ADMIN.TITLE")," "))},directives:[c.W,l.Hw,i.PC,h.A],pipes:[f.X$],styles:[""]}),t})();var g=n(8557);let m=(()=>{class t{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"}]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-admin-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("router-component",e.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s._UZ(1,"perun-web-apps-menu-buttons-field",0),s.qZA()),2&t&&(s.xp6(1),s.Q6J("items",e.navItems)("size","small"))},directives:[g.L],styles:[""]}),t})();var v=n(4230),y=n(84608),_=n(67033),w=n(68416),b=n(65249),x=n(15980),E=n(67806),T=n(39571);function A(t,e){1&t&&s._UZ(0,"mat-spinner",6)}function S(t,e){1&t&&s._UZ(0,"th",16)}function I(t,e){if(1&t&&(s.TgZ(0,"td",17),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.friendlyName)}}function D(t,e){1&t&&s._UZ(0,"tr",18)}function N(t,e){1&t&&s._UZ(0,"tr",19)}function k(t,e){if(1&t&&(s.TgZ(0,"div",7),s.TgZ(1,"div"),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,S,1,0,"th",11),s.YNc(10,I,2,1,"td",12),s.BQk(),s.YNc(11,D,1,0,"tr",13),s.YNc(12,N,1,0,"tr",14),s.qZA(),s.TgZ(13,"app-alert",15),s._uU(14),s.ALo(15,"translate"),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,6,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TEXT_LINE1")," "),s.xp6(3),s.hij(" ",s.lcZ(6,8,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TEXT_LINE2")," "),s.xp6(2),s.Q6J("dataSource",t.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",t.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",t.displayedColumns),s.xp6(2),s.hij(" ",s.lcZ(15,10,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.WARNING")," ")}}let C=(()=>{class t{constructor(t,e,n,r,i){this.dialogRef=t,this.data=e,this.notificator=n,this.translate=r,this.attributesManager=i,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new _.by(this.data.attributes)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const t=[];for(const e of this.data.attributes)t.push(e.id);this.attributesManager.deleteAttributeDefinitions(t).subscribe(()=>{this.translate.get("DIALOGS.DELETE_ATTRIBUTE_DEFINITION.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(w.V6),s.Y36(f.sK),s.Y36(b.H8))},t.\u0275cmp=s.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["mat-header-row","","class","font-weight-bolder",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(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,A,1,0,"mat-spinner",1),s.YNc(5,k,16,12,"div",2),s.TgZ(6,"div",3),s.TgZ(7,"button",4),s.NdJ("click",function(){return e.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return e.onSubmit()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.Oqu(s.lcZ(3,9,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,11,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.CANCEL")," "),s.xp6(2),s.Q6J("disabled",e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,13,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.CONFIRM")," "))},directives:[y.uh,i.O5,y.H8,x.lW,E.$g,y.xY,_.BZ,_.w1,_.fO,_.Dz,_.as,_.nj,T.w,_.ge,_.ev,_.XQ,_.Gk],pipes:[f.X$],styles:[""]}),t})();var Z=n(14732),M=n(36922),O=n(66283),L=n(80340),R=n(16073),U=n(10901),P=n(4786),F=n(27521),q=n(29236),j=n(71522);function Y(t,e){1&t&&s._UZ(0,"mat-spinner",7)}function B(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function z(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function G(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function J(t,e){if(1&t&&(s.TgZ(0,"mat-option",29),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.Oqu(t)}}function V(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_SELECT_SOMETHING")))}function H(t,e){if(1&t&&(s.TgZ(0,"mat-option",29),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.Oqu(t)}}function Q(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_SELECT_SOMETHING")))}function W(t,e){if(1&t&&(s.TgZ(0,"mat-option",29),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.Oqu(t)}}function $(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_SELECT_SOMETHING")))}function X(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",8),s.TgZ(1,"mat-form-field",9),s.TgZ(2,"label"),s.TgZ(3,"input",10),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().attDef.friendlyName=e}),s.ALo(4,"translate"),s.qZA(),s.qZA(),s.YNc(5,B,3,3,"mat-error",11),s.qZA(),s._UZ(6,"br"),s.TgZ(7,"mat-form-field",9),s.TgZ(8,"label"),s.TgZ(9,"input",10),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().attDef.displayName=e}),s.ALo(10,"translate"),s.qZA(),s.qZA(),s.YNc(11,z,3,3,"mat-error",11),s.qZA(),s._UZ(12,"br"),s.TgZ(13,"mat-form-field",9),s.TgZ(14,"label"),s.TgZ(15,"textarea",12),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().attDef.description=e}),s.ALo(16,"translate"),s._uU(17," "),s.qZA(),s.qZA(),s.YNc(18,G,3,3,"mat-error",11),s.qZA(),s._UZ(19,"br"),s.TgZ(20,"mat-form-field",9),s.TgZ(21,"mat-placeholder"),s._uU(22),s.ALo(23,"translate"),s.qZA(),s.TgZ(24,"mat-select",13),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().entity=e}),s.YNc(25,J,2,2,"mat-option",14),s.qZA(),s.YNc(26,V,3,3,"mat-error",11),s.qZA(),s._UZ(27,"br"),s.TgZ(28,"mat-form-field",9),s.TgZ(29,"mat-placeholder"),s._uU(30),s.ALo(31,"translate"),s.qZA(),s.TgZ(32,"mat-select",13),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().definitionType=e}),s.YNc(33,H,2,2,"mat-option",14),s.qZA(),s.YNc(34,Q,3,3,"mat-error",11),s.qZA(),s._UZ(35,"br"),s.TgZ(36,"mat-form-field",9),s.TgZ(37,"mat-placeholder"),s._uU(38),s.ALo(39,"translate"),s.qZA(),s.TgZ(40,"mat-select",13),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().valueType=e}),s.YNc(41,W,2,2,"mat-option",14),s.qZA(),s.YNc(42,$,3,3,"mat-error",11),s.qZA(),s._UZ(43,"br"),s.TgZ(44,"div",15),s.TgZ(45,"p"),s._uU(46),s.ALo(47,"translate"),s.qZA(),s.TgZ(48,"p",16),s.NdJ("click",function(){return s.CHM(t),s.oxw().attDef.unique=!1}),s._uU(49,"OFF"),s.qZA(),s.TgZ(50,"mat-slide-toggle",17),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().attDef.unique=e}),s.ALo(51,"translate"),s._uU(52," ON "),s.qZA(),s.qZA(),s.TgZ(53,"div",18),s.TgZ(54,"p",19),s._uU(55),s.ALo(56,"translate"),s.qZA(),s.TgZ(57,"p",20),s._uU(58),s.ALo(59,"translate"),s.qZA(),s.qZA(),s.TgZ(60,"div",21),s.TgZ(61,"p",22),s._uU(62),s.ALo(63,"translate"),s.qZA(),s.TgZ(64,"mat-checkbox",23),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().readSelf=e}),s.qZA(),s.TgZ(65,"mat-checkbox",24),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().writeSelf=e}),s.qZA(),s.qZA(),s.TgZ(66,"div",21),s.TgZ(67,"p",22),s._uU(68),s.ALo(69,"translate"),s.qZA(),s.TgZ(70,"mat-checkbox",25),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().readSelfPublic=e}),s.qZA(),s.TgZ(71,"mat-checkbox",24),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().writeSelfPublic=e}),s.qZA(),s.qZA(),s.TgZ(72,"div",21),s.TgZ(73,"p",22),s._uU(74),s.ALo(75,"translate"),s.qZA(),s.TgZ(76,"mat-checkbox",26),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().readSelfVo=e}),s.qZA(),s.TgZ(77,"mat-checkbox",24),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().writeSelfVo=e}),s.qZA(),s.qZA(),s.TgZ(78,"div",21),s.TgZ(79,"p",22),s._uU(80),s.ALo(81,"translate"),s.qZA(),s.TgZ(82,"mat-checkbox",27),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().readVo=e}),s.qZA(),s.TgZ(83,"mat-checkbox",24),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().writeVo=e}),s.qZA(),s.qZA(),s.TgZ(84,"div",21),s.TgZ(85,"p",22),s._uU(86),s.ALo(87,"translate"),s.qZA(),s.TgZ(88,"mat-checkbox",28),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().readGroup=e}),s.qZA(),s.TgZ(89,"mat-checkbox",24),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().writeGroup=e}),s.qZA(),s.qZA(),s.TgZ(90,"div",21),s.TgZ(91,"p",22),s._uU(92),s.ALo(93,"translate"),s.qZA(),s.TgZ(94,"mat-checkbox",26),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().readFacility=e}),s.qZA(),s.TgZ(95,"mat-checkbox",24),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().writeFacility=e}),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(3),s.s9C("placeholder",s.lcZ(4,46,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FRIENDLY_NAME")),s.Q6J("ngModel",t.attDef.friendlyName),s.xp6(2),s.Q6J("ngIf",""===t.attDef.friendlyName),s.xp6(4),s.s9C("placeholder",s.lcZ(10,48,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),s.Q6J("ngModel",t.attDef.displayName),s.xp6(2),s.Q6J("ngIf",""===t.attDef.displayName),s.xp6(4),s.s9C("placeholder",s.lcZ(16,50,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DESCRIPTION")),s.Q6J("ngModel",t.attDef.description),s.xp6(3),s.Q6J("ngIf",""===t.attDef.description),s.xp6(4),s.Oqu(s.lcZ(23,52,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ENTITY")),s.xp6(2),s.Q6J("ngModel",t.entity),s.xp6(1),s.Q6J("ngForOf",t.entities),s.xp6(1),s.Q6J("ngIf",""===t.attDef.entity),s.xp6(4),s.Oqu(s.lcZ(31,54,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DEFINITION")),s.xp6(2),s.Q6J("ngModel",t.definitionType),s.xp6(1),s.Q6J("ngForOf",t.definitionTypes),s.xp6(1),s.Q6J("ngIf",""===t.definitionType),s.xp6(4),s.Oqu(s.lcZ(39,56,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VALUE_TYPE")),s.xp6(2),s.Q6J("ngModel",t.valueType),s.xp6(1),s.Q6J("ngForOf",t.valueTypes),s.xp6(1),s.Q6J("ngIf",""===t.valueType),s.xp6(4),s.Oqu(s.lcZ(47,58,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.UNIQUE")),s.xp6(4),s.s9C("matTooltip",s.lcZ(51,60,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.TOOLTIP_UNIQUE")),s.Q6J("matTooltipDisabled",!t.disableUniqueToggle())("disabled",t.disableUniqueToggle())("ngModel",t.attDef.unique),s.xp6(5),s.Oqu(s.lcZ(56,62,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.READ")),s.xp6(3),s.Oqu(s.lcZ(59,64,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.WRITE")),s.xp6(4),s.Oqu(s.lcZ(63,66,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF")),s.xp6(2),s.Q6J("ngModel",t.readSelf),s.xp6(1),s.Q6J("ngModel",t.writeSelf),s.xp6(3),s.Oqu(s.lcZ(69,68,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_PUBLIC")),s.xp6(2),s.Q6J("ngModel",t.readSelfPublic),s.xp6(1),s.Q6J("ngModel",t.writeSelfPublic),s.xp6(3),s.Oqu(s.lcZ(75,70,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_VO")),s.xp6(2),s.Q6J("ngModel",t.readSelfVo),s.xp6(1),s.Q6J("ngModel",t.writeSelfVo),s.xp6(3),s.Oqu(s.lcZ(81,72,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VO")),s.xp6(2),s.Q6J("ngModel",t.readVo),s.xp6(1),s.Q6J("ngModel",t.writeVo),s.xp6(3),s.Oqu(s.lcZ(87,74,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.GROUP")),s.xp6(2),s.Q6J("ngModel",t.readGroup),s.xp6(1),s.Q6J("ngModel",t.writeGroup),s.xp6(3),s.Oqu(s.lcZ(93,76,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FACILITY")),s.xp6(2),s.Q6J("ngModel",t.readFacility),s.xp6(1),s.Q6J("ngModel",t.writeFacility)}}let K=(()=>{class t{constructor(t,e,n,r){this.dialogRef=t,this.notificator=e,this.translate=n,this.attributesManager=r,this.loading=!1,this.entities=["facility","resource","group","group_resource","host","member","member_group","member_resource","user","user_ext_source","user_facility","vo","entityless"],this.definitionTypes=["def","opt","virt","core"],this.definitionType="",this.valueTypes=["String","Integer","Boolean","Array","LinkedHashMap"],this.valueType="",this.readSelf=!1,this.readSelfPublic=!1,this.readSelfVo=!1,this.readVo=!1,this.readGroup=!1,this.readFacility=!1,this.writeSelf=!1,this.writeSelfPublic=!1,this.writeSelfVo=!1,this.writeVo=!1,this.writeGroup=!1,this.writeFacility=!1}ngOnInit(){this.attDef={beanName:"",description:"",displayName:"",entity:"",friendlyName:"",id:void 0,namespace:"",type:"",unique:!1,writable:!1}}onSubmit(){this.loading=!0,this.attDef.namespace="urn:perun:"+this.entity+":attribute-def:"+this.definitionType,this.readValueType(),this.attributesManager.createAttributeDefinition({attribute:this.attDef}).subscribe(t=>{this.attDef=t,this.attributesManager.setAttributeRights({rights:this.readRights()}).subscribe(()=>{this.translate.get("DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}readRights(){const t=[],e={};e.attributeId=this.attDef.id,e.role=Z.u.SELF,e.rights=[],this.readSelf&&e.rights.push("READ"),this.readSelfPublic&&e.rights.push("READ_PUBLIC"),this.readSelfVo&&e.rights.push("READ_VO"),this.writeSelf&&e.rights.push("WRITE"),this.writeSelfPublic&&e.rights.push("WRITE_PUBLIC"),this.writeSelfVo&&e.rights.push("WRITE_VO"),t.push(e);const n={};n.attributeId=this.attDef.id,n.role=Z.u.VOADMIN,n.rights=[],this.readVo&&n.rights.push(b.Us.READ),this.writeVo&&n.rights.push(b.Us.WRITE),t.push(n);const r={};r.attributeId=this.attDef.id,r.role=Z.u.GROUPADMIN,r.rights=[],this.readGroup&&r.rights.push(b.Us.READ),this.writeGroup&&r.rights.push(b.Us.WRITE),t.push(r);const i={};return i.attributeId=this.attDef.id,i.role=Z.u.FACILITYADMIN,i.rights=[],this.readFacility&&i.rights.push(b.Us.READ),this.writeFacility&&i.rights.push(b.Us.WRITE),t.push(i),t}readValueType(){switch(this.valueType){case"String":this.attDef.type="java.lang.String";break;case"Integer":this.attDef.type="java.lang.Integer";break;case"Boolean":this.attDef.type="java.lang.Boolean";break;case"Array":this.attDef.type="java.util.ArrayList";break;case"LinkedHashMap":this.attDef.type="java.util.LinkedHashMap"}}disableConfirmButton(){return""===this.attDef.friendlyName||""===this.attDef.displayName||""===this.attDef.description||""===this.entity||""===this.definitionType||""===this.valueType||this.loading}disableUniqueToggle(){return("virt"===this.definitionType||"entityless"===this.entity)&&(this.attDef.unique=!1,!0)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(w.V6),s.Y36(f.sK),s.Y36(b.H8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-create-attribute-definition-dialog"]],decls:14,vars:16,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"mt-3"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent","matTooltipPosition","above",1,"ml-2",3,"disabled","matTooltip","matTooltipDisabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"form-field-width"],["matInput","","required","",1,"form-field-width",3,"ngModel","placeholder","ngModelChange"],[4,"ngIf"],["matInput","","cdkTextareaAutosize","","required","",1,"form-field-width",3,"ngModel","placeholder","ngModelChange"],["required","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"d-flex","flex-row","mt-3"],[1,"pointer","ml-4",3,"click"],["color","accent","matTooltipPosition","above",1,"ml-2",3,"matTooltip","matTooltipDisabled","disabled","ngModel","ngModelChange"],[1,"d-flex","flex-row","mt-2"],[1,"ml-5","pl-4"],[1,"ml-4"],[1,"d-flex","flex-row"],[1,""],[1,"ml-5","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5",3,"ngModel","ngModelChange"],[1,"ml-3",3,"ngModel","ngModelChange"],[1,"ml-4","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5","pl-4",3,"ngModel","ngModelChange"],[1,"ml-4","pl-4",3,"ngModel","ngModelChange"],[3,"value"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,Y,1,0,"mat-spinner",2),s.YNc(5,X,96,78,"div",3),s.TgZ(6,"div",4),s.TgZ(7,"button",5),s.NdJ("click",function(){return e.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",6),s.NdJ("click",function(){return e.onSubmit()}),s.ALo(11,"translate"),s._uU(12),s.ALo(13,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,8,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,10,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CANCEL")," "),s.xp6(2),s.s9C("matTooltip",s.lcZ(11,12,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.TOOLTIP_CONFIRM")),s.Q6J("disabled",e.disableConfirmButton())("matTooltipDisabled",!e.disableConfirmButton()),s.xp6(2),s.hij(" ",s.lcZ(13,14,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CONFIRM")," "))},directives:[y.uh,i.O5,y.H8,x.lW,M.gM,E.$g,y.xY,O.KE,L.Nt,R.Fj,R.Q7,R.JJ,R.On,U.IC,O.UY,P.gD,i.sg,F.Rr,q.oG,O.TO,j.ey],pipes:[f.X$],styles:[".unique-toggle-label[_ngcontent-%COMP%]{font-size:1.125rem}.form-field-width[_ngcontent-%COMP%]{width:450px}.pointer[_ngcontent-%COMP%]{cursor:pointer}textarea[cdktextareaautosize].mat-input-element[_ngcontent-%COMP%]{overflow:hidden}"]}),t})();var tt=n(84140),et=n(60611);function nt(t,e){1&t&&s._UZ(0,"mat-spinner",7)}function rt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",8),s.TgZ(1,"app-alert",9),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"mat-form-field",10),s.TgZ(5,"input",11),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().value=e}),s.ALo(6,"translate"),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,3,"DIALOGS.IMPORT_ATTRIBUTE.INFO")," "),s.xp6(3),s.Q6J("ngModel",t.value)("placeholder",s.lcZ(6,5,"DIALOGS.IMPORT_ATTRIBUTE.HINT"))}}let it=(()=>{class t{constructor(t,e,n,r){this.dialogRef=t,this.notificator=e,this.translate=n,this.attributesManager=r,this.value="",this.loading=!1}create(){try{this.loading=!0,this.attributeData=JSON.parse(this.value),this.attributesManager.createAttributeDefinition({attribute:this.attributeData.attributeDefinition}).subscribe(t=>{for(let e=0;e{this.notificator.showSuccess(this.translate.instant("DIALOGS.IMPORT_ATTRIBUTE_DEFINITION.SUCCESS")),this.dialogRef.close(!0)})},()=>this.loading=!1)}catch(t){console.log(t),this.notificator.showError(t),this.loading=!1}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(w.V6),s.Y36(f.sK),s.Y36(b.H8))},t.\u0275cmp=s.Xpm({type:t,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","",1,"mt-3"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,nt,1,0,"mat-spinner",2),s.YNc(5,rt,7,7,"div",3),s.TgZ(6,"div",4),s.TgZ(7,"button",5),s.NdJ("click",function(){return e.dialogRef.close()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",6),s.NdJ("click",function(){return e.create()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.hij(" ",s.lcZ(3,6,"DIALOGS.IMPORT_ATTRIBUTE.TITLE")," "),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,8,"DIALOGS.IMPORT_ATTRIBUTE.CANCEL")," "),s.xp6(2),s.Q6J("disabled",0===e.value.trim().length||e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,10,"DIALOGS.IMPORT_ATTRIBUTE.CREATE")," "))},directives:[y.uh,i.O5,y.H8,x.lW,E.$g,y.xY,T.w,O.KE,L.Nt,R.Fj,R.Q7,R.JJ,R.On],pipes:[f.X$],styles:[""]}),t})();var ot=n(59403),at=n(19139),st=n(58623),ut=n(17),ct=n(81391),lt=n(91721),ht=n(41939),ft=n(82819),dt=n(51556);function pt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"th",22),s.TgZ(1,"mat-checkbox",23),s.NdJ("change",function(e){s.CHM(t);const n=s.oxw(2);return e?n.masterToggle():null}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function gt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",24),s.TgZ(1,"mat-checkbox",25),s.NdJ("change",function(e){const n=s.CHM(t).$implicit,r=s.oxw(2);return e?r.selection.toggle(n):null})("click",function(t){return t.stopPropagation()}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,n=s.oxw(2);s.xp6(1),s.Q6J("aria-label",n.checkboxLabel(t))("checked",n.selection.isSelected(t))}}function mt(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.KEY")," "))}function vt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",27),s.TgZ(1,"label"),s.TgZ(2,"input",28),s.NdJ("ngModelChange",function(){const e=s.CHM(t).$implicit;return s.oxw(2).onValueChange(e)})("ngModelChange",function(t){return e.$implicit[0]=t}),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(2),s.Q6J("ngModel",t[0])}}function yt(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.VALUE")," "))}function _t(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",27),s.TgZ(1,"perun-web-apps-attribute-value",29),s.NdJ("sendEventToParent2",function(){const e=s.CHM(t).$implicit;return s.oxw(2).onValueChange(e)}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(1),s.Q6J("attribute",t[1])}}function wt(t,e){1&t&&s._UZ(0,"tr",30)}function bt(t,e){1&t&&s._UZ(0,"tr",31)}function xt(t,e){if(1&t&&(s.TgZ(0,"div",10),s.TgZ(1,"perun-web-apps-table-wrapper",11),s.TgZ(2,"table",12),s.ynx(3,13),s.YNc(4,pt,2,3,"th",14),s.YNc(5,gt,2,2,"td",15),s.BQk(),s.ynx(6,16),s.YNc(7,mt,3,3,"th",17),s.YNc(8,vt,3,1,"td",18),s.BQk(),s.ynx(9,19),s.YNc(10,yt,3,3,"th",17),s.YNc(11,_t,2,1,"td",18),s.BQk(),s.YNc(12,wt,1,0,"tr",20),s.YNc(13,bt,1,0,"tr",21),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("hideExport",!0)("pageSizeOptions",t.pageSizeOptions),s.xp6(1),s.Q6J("dataSource",t.dataSource),s.xp6(10),s.Q6J("matHeaderRowDef",t.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",t.displayedColumns)}}function Et(t,e){1&t&&s._UZ(0,"mat-spinner",32)}function Tt(t,e){1&t&&(s.TgZ(0,"app-alert",33),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.NO_KEYS_WARNING")," "))}let At=(()=>{class t{constructor(t,e,n,r,i){this.dialogRef=t,this.data=e,this.notificator=n,this.translate=r,this.attributesManager=i,this.switchView=new s.vpe,this.records=[],this.displayedColumns=["select","key","value"],this.dataSource=new _.by,this.selection=new v.Ov(!0,[]),this.isAddButtonDisabled=!1,this.pageSizeOptions=tt.f7}set matSort(t){this.sort=t}ngOnChanges(){this.ngOnInit()}ngOnInit(){this.loading=!0,this.attDef=this.data.attDef,this.attributesManager.getEntitylessKeys(this.attDef.id).subscribe(t=>{this.attributesManager.getEntitylessAttributesByName(`${this.attDef.namespace}:${this.attDef.friendlyName}`).subscribe(e=>{let n=0;this.records=[];for(const r of t)this.records.push([r,e[n]]),n++;this.dataSource=new _.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 t of this.selection.selected)this.attributesManager.setEntitylessAttribute({key:t[0],attribute:t[1]}).subscribe(()=>{this.translate.get("SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.SAVE_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.ngOnInit()})});this.selection.clear(),this.isAddButtonDisabled=!1}onRemove(){for(const t of this.selection.selected)this.attributesManager.removeEntitylessAttribute(t[0],t[1].id).subscribe(()=>{this.translate.get("SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.REMOVE_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.ngOnInit()})});this.ngOnInit(),this.selection.clear(),this.isAddButtonDisabled=!1}onAdd(){const t=["",this.attDef];t[1].value=void 0,this.records.unshift(t),this.dataSource.data=this.records,this.setDataSource(),this.selection.clear(),this.selection.select(t),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(t=>this.selection.select(t))}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t[1].id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}onValueChange(t){this.selection.select(t)}updateMapAttributes(){for(const t of this.items.toArray())"java.util.LinkedHashMap"===t.attribute.type&&t.updateMapAttribute()}ngAfterViewInit(){this.children.changes.subscribe(t=>{this.child=t.first,this.dataSource.paginator=this.child.paginator})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(w.V6),s.Y36(f.sK),s.Y36(b.H8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-entityless-attribute-keys-list"]],viewQuery:function(t,e){if(1&t&&(s.Gf(st.YE,7),s.Gf(tt.l9,5),s.Gf(ht.Mw,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.matSort=t.first),s.iGM(t=s.CRH())&&(e.children=t),s.iGM(t=s.CRH())&&(e.items=t)}},inputs:{attDef:"attDef",tableId:"tableId"},outputs:{switchView:"switchView"},features:[s.TTD],decls:19,vars:19,consts:[["mat-dialog-title",""],["mat-dialog-actions","",1,"mt-3"],["mat-stroked-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"],["mat-flat-button","","color","accent","matTooltip","save or remove new attribute first","matTooltipPosition","above",1,"ml-2",3,"disabled","matTooltipDisabled","click"],["mat-flat-button","","color","warn",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,"tableId","dataLength","hideExport","pageSizeOptions"],["mat-table","","matSort","","matSortActive","key","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","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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.qZA(),s.TgZ(2,"div",1),s.TgZ(3,"button",2),s.NdJ("click",function(){return e.switchView.emit()}),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"button",3),s.NdJ("click",function(){return e.onSave()}),s._uU(7),s.ALo(8,"translate"),s.qZA(),s.TgZ(9,"button",4),s.NdJ("click",function(){return e.onAdd()}),s._uU(10),s.ALo(11,"translate"),s.qZA(),s.TgZ(12,"button",5),s.NdJ("click",function(){return e.onRemove()}),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.qZA(),s.TgZ(15,"div",6),s.YNc(16,xt,14,7,"div",7),s.YNc(17,Et,1,0,"mat-spinner",8),s.YNc(18,Tt,3,3,"app-alert",9),s.qZA()),2&t&&(s.xp6(1),s.Oqu(e.attDef.namespace+":"+e.attDef.friendlyName),s.xp6(3),s.hij(" ",s.lcZ(5,11,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.CANCEL")," "),s.xp6(3),s.hij(" ",s.lcZ(8,13,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.SAVE")," "),s.xp6(2),s.Q6J("disabled",e.isAddButtonDisabled)("matTooltipDisabled",!e.isAddButtonDisabled),s.xp6(1),s.hij(" ",s.lcZ(11,15,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.ADD")," "),s.xp6(3),s.hij(" ",s.lcZ(14,17,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.REMOVE")," "),s.xp6(2),s.Q6J("hidden",e.loading),s.xp6(1),s.Q6J("ngIf",e.records&&e.records.length),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",0===e.records.length))},directives:[y.uh,y.H8,x.lW,M.gM,y.xY,i.O5,ft.l,_.BZ,st.YE,_.w1,_.fO,_.Dz,_.as,_.nj,_.ge,q.oG,_.ev,st.nU,L.Nt,R.Fj,R.JJ,R.On,dt.M,_.XQ,_.Gk,E.$g,T.w],pipes:[f.X$],styles:[".mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}"]}),t})();const St=["copiedTooltip"];function It(t,e){1&t&&s._UZ(0,"mat-spinner",12)}function Dt(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function Nt(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}const kt=function(){return["id","name","enabled","script"]};function Ct(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",13),s.TgZ(1,"mat-form-field",3),s.TgZ(2,"label"),s.TgZ(3,"input",14),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).attDef.displayName=e}),s.ALo(4,"translate"),s.qZA(),s.qZA(),s.YNc(5,Dt,3,3,"mat-error",2),s.qZA(),s._UZ(6,"br"),s.TgZ(7,"mat-form-field",3),s.TgZ(8,"label"),s.TgZ(9,"textarea",15),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).attDef.description=e}),s.ALo(10,"translate"),s._uU(11," "),s.qZA(),s.qZA(),s.YNc(12,Nt,3,3,"mat-error",2),s.qZA(),s._UZ(13,"br"),s.TgZ(14,"div",16),s.TgZ(15,"p"),s._uU(16),s.ALo(17,"translate"),s.qZA(),s.TgZ(18,"p",17),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).attDef.unique=!1}),s._uU(19,"OFF"),s.qZA(),s.TgZ(20,"mat-slide-toggle",18),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).attDef.unique=e}),s.ALo(21,"translate"),s._uU(22," ON "),s.qZA(),s.qZA(),s.TgZ(23,"div",19),s.TgZ(24,"p",20),s._uU(25),s.ALo(26,"translate"),s.qZA(),s.TgZ(27,"p",21),s._uU(28),s.ALo(29,"translate"),s.qZA(),s.qZA(),s.TgZ(30,"div",22),s.TgZ(31,"p",23),s._uU(32),s.ALo(33,"translate"),s.qZA(),s.TgZ(34,"mat-checkbox",24),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).readSelf=e}),s.qZA(),s.TgZ(35,"mat-checkbox",25),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).writeSelf=e}),s.qZA(),s.qZA(),s.TgZ(36,"div",22),s.TgZ(37,"p",23),s._uU(38),s.ALo(39,"translate"),s.qZA(),s.TgZ(40,"mat-checkbox",26),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).readSelfPublic=e}),s.qZA(),s.TgZ(41,"mat-checkbox",25),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).writeSelfPublic=e}),s.qZA(),s.qZA(),s.TgZ(42,"div",22),s.TgZ(43,"p",23),s._uU(44),s.ALo(45,"translate"),s.qZA(),s.TgZ(46,"mat-checkbox",27),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).readSelfVo=e}),s.qZA(),s.TgZ(47,"mat-checkbox",25),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).writeSelfVo=e}),s.qZA(),s.qZA(),s.TgZ(48,"div",22),s.TgZ(49,"p",23),s._uU(50),s.ALo(51,"translate"),s.qZA(),s.TgZ(52,"mat-checkbox",28),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).readVo=e}),s.qZA(),s.TgZ(53,"mat-checkbox",25),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).writeVo=e}),s.qZA(),s.qZA(),s.TgZ(54,"div",22),s.TgZ(55,"p",23),s._uU(56),s.ALo(57,"translate"),s.qZA(),s.TgZ(58,"mat-checkbox",29),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).readGroup=e}),s.qZA(),s.TgZ(59,"mat-checkbox",25),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).writeGroup=e}),s.qZA(),s.qZA(),s.TgZ(60,"div",22),s.TgZ(61,"p",23),s._uU(62),s.ALo(63,"translate"),s.qZA(),s.TgZ(64,"mat-checkbox",27),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).readFacility=e}),s.qZA(),s.TgZ(65,"mat-checkbox",25),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).writeFacility=e}),s.qZA(),s.qZA(),s.TgZ(66,"div",30),s.TgZ(67,"p"),s._uU(68),s.ALo(69,"translate"),s.qZA(),s._UZ(70,"app-services-list",31),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(2);s.xp6(3),s.s9C("placeholder",s.lcZ(4,35,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),s.Q6J("ngModel",t.attDef.displayName),s.xp6(2),s.Q6J("ngIf",""===t.attDef.displayName),s.xp6(4),s.s9C("placeholder",s.lcZ(10,37,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DESCRIPTION")),s.Q6J("ngModel",t.attDef.description),s.xp6(3),s.Q6J("ngIf",""===t.attDef.description),s.xp6(4),s.Oqu(s.lcZ(17,39,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.UNIQUE")),s.xp6(4),s.s9C("matTooltip",s.lcZ(21,41,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.TOOLTIP_UNIQUE")),s.Q6J("matTooltipDisabled",!t.disableUniqueToggle())("disabled",t.disableUniqueToggle())("ngModel",t.attDef.unique),s.xp6(5),s.Oqu(s.lcZ(26,43,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.READ")),s.xp6(3),s.Oqu(s.lcZ(29,45,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.WRITE")),s.xp6(4),s.Oqu(s.lcZ(33,47,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF")),s.xp6(2),s.Q6J("ngModel",t.readSelf),s.xp6(1),s.Q6J("ngModel",t.writeSelf),s.xp6(3),s.Oqu(s.lcZ(39,49,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_PUBLIC")),s.xp6(2),s.Q6J("ngModel",t.readSelfPublic),s.xp6(1),s.Q6J("ngModel",t.writeSelfPublic),s.xp6(3),s.Oqu(s.lcZ(45,51,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_VO")),s.xp6(2),s.Q6J("ngModel",t.readSelfVo),s.xp6(1),s.Q6J("ngModel",t.writeSelfVo),s.xp6(3),s.Oqu(s.lcZ(51,53,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VO")),s.xp6(2),s.Q6J("ngModel",t.readVo),s.xp6(1),s.Q6J("ngModel",t.writeVo),s.xp6(3),s.Oqu(s.lcZ(57,55,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.GROUP")),s.xp6(2),s.Q6J("ngModel",t.readGroup),s.xp6(1),s.Q6J("ngModel",t.writeGroup),s.xp6(3),s.Oqu(s.lcZ(63,57,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FACILITY")),s.xp6(2),s.Q6J("ngModel",t.readFacility),s.xp6(1),s.Q6J("ngModel",t.writeFacility),s.xp6(3),s.Oqu(s.lcZ(69,59,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SERVICES")),s.xp6(2),s.Q6J("services",t.services)("displayedColumns",s.DdM(61,kt))("disableRouting",!0)}}function Zt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",32),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).switchShowKeys()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SHOW_KEYS")," "))}function Mt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"div",3),s.TgZ(2,"h1",4),s._uU(3),s.qZA(),s.YNc(4,It,1,0,"mat-spinner",5),s.YNc(5,Ct,71,62,"div",6),s.TgZ(6,"div",7),s.YNc(7,Zt,3,3,"button",8),s.TgZ(8,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCopy()}),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.TgZ(11,"button",10),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(12),s.ALo(13,"translate"),s.qZA(),s.TgZ(14,"button",11),s.NdJ("click",function(){return s.CHM(t),s.oxw().onSubmit()}),s.ALo(15,"translate"),s._uU(16),s.ALo(17,"translate"),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(3),s.Oqu(t.attDef.namespace+":"+t.attDef.friendlyName),s.xp6(1),s.Q6J("ngIf",t.loading),s.xp6(1),s.Q6J("ngIf",!t.loading),s.xp6(2),s.Q6J("ngIf","entityless"===t.attDef.entity),s.xp6(2),s.hij(" ",s.lcZ(10,10,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FOR_IMPORT")," "),s.xp6(3),s.hij(" ",s.lcZ(13,12,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.CANCEL")," "),s.xp6(2),s.s9C("matTooltip",s.lcZ(15,14,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.TOOLTIP_CONFIRM")),s.Q6J("disabled",t.disableConfirmButton()||t.loading)("matTooltipDisabled",!t.disableConfirmButton()),s.xp6(2),s.hij(" ",s.lcZ(17,16,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.CONFIRM")," ")}}function Ot(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"app-entityless-attribute-keys-list",33),s.NdJ("switchView",function(){return s.CHM(t),s.oxw().switchShowKeys()}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.Q6J("tableId",t.tableId)("attDef",t.attDef)}}let Lt=(()=>{class t{constructor(t,e,n,r,i,o,a,s){this.dialog=t,this.dialogRef=e,this.data=n,this.notificator=r,this.translate=i,this.clipboard=o,this.attributesManager=a,this.serviceService=s,this.showKeys=!1,this.activatedComponent="Edit",this.readSelf=!1,this.readSelfPublic=!1,this.readSelfVo=!1,this.readVo=!1,this.readGroup=!1,this.readFacility=!1,this.writeSelf=!1,this.writeSelfPublic=!1,this.writeSelfVo=!1,this.writeVo=!1,this.writeGroup=!1,this.writeFacility=!1,this.tableId=et.Wv,this.loading=!1}ngOnInit(){this.loading=!0,this.dialogRef.addPanelClass("mat-dialog-height-transition"),this.attDef=this.data.attDef,this.serviceService.getServicesByAttributeDefinition(this.attDef.id).subscribe(t=>{this.services=t,this.attributesManager.getAttributeRights(this.attDef.id).subscribe(t=>{this.fromRightsToCheckboxes(t),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}disableConfirmButton(){return""===this.attDef.displayName||""===this.attDef.description}disableUniqueToggle(){return this.attDef.namespace.includes("virt")||this.attDef.namespace.includes("core")||"entityless"===this.attDef.entity}onSubmit(){this.loading=!0,this.attributesManager.updateAttributeDefinition({attributeDefinition:this.attDef}).subscribe(t=>{this.attDef=t,this.attributesManager.setAttributeRights({rights:this.fromCheckboxesToRights()}).subscribe(()=>{this.translate.get("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}fromCheckboxesToRights(){const t=[],e={};e.attributeId=this.attDef.id,e.role=Z.u.SELF,e.rights=[],this.readSelf&&e.rights.push("READ"),this.readSelfPublic&&e.rights.push("READ_PUBLIC"),this.readSelfVo&&e.rights.push("READ_VO"),this.writeSelf&&e.rights.push("WRITE"),this.writeSelfPublic&&e.rights.push("WRITE_PUBLIC"),this.writeSelfVo&&e.rights.push("WRITE_VO"),t.push(e);const n={};n.attributeId=this.attDef.id,n.role=Z.u.VOADMIN,n.rights=[],this.readVo&&n.rights.push("READ"),this.writeVo&&n.rights.push("WRITE"),t.push(n);const r={};r.attributeId=this.attDef.id,r.role=Z.u.GROUPADMIN,r.rights=[],this.readGroup&&r.rights.push(b.Us.READ),this.writeGroup&&r.rights.push("WRITE"),t.push(r);const i={};return i.attributeId=this.attDef.id,i.role=Z.u.FACILITYADMIN,i.rights=[],this.readFacility&&i.rights.push("READ"),this.writeFacility&&i.rights.push("WRITE"),t.push(i),t}fromRightsToCheckboxes(t){for(const e of t)switch(e.role){case Z.u.SELF:e.rights.includes("READ")&&(this.readSelf=!0),e.rights.includes("READ_PUBLIC")&&(this.readSelfPublic=!0),e.rights.includes("READ_VO")&&(this.readSelfVo=!0),e.rights.includes("WRITE")&&(this.writeSelf=!0),e.rights.includes("WRITE_PUBLIC")&&(this.writeSelfPublic=!0),e.rights.includes("WRITE_VO")&&(this.writeSelfVo=!0);break;case Z.u.GROUPADMIN:e.rights.includes("READ")&&(this.readGroup=!0),e.rights.includes("WRITE")&&(this.writeGroup=!0);break;case Z.u.FACILITYADMIN:e.rights.includes("READ")&&(this.readFacility=!0),e.rights.includes("WRITE")&&(this.writeFacility=!0);break;case Z.u.VOADMIN:e.rights.includes("READ")&&(this.readVo=!0),e.rights.includes("WRITE")&&(this.writeVo=!0)}}switchShowKeys(){this.showKeys=!this.showKeys,this.showKeys?(this.dialogRef.updateSize("800px"),this.activatedComponent="Entityless"):(this.dialogRef.updateSize("700px"),this.activatedComponent="Edit")}onCopy(){const t={attributeDefinition:this.attDef,attributeRights:this.fromCheckboxesToRights()};this.clipboard.copy(JSON.stringify(t))?this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPIED")):this.notificator.showError(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FAILED"))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.uw),s.Y36(y.so),s.Y36(y.WI),s.Y36(w.V6),s.Y36(f.sK),s.Y36(ct.TU),s.Y36(b.H8),s.Y36(b.KK))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-edit-attribute-definition-dialog"]],viewQuery:function(t,e){if(1&t&&s.Gf(St,5),2&t){let t;s.iGM(t=s.CRH())&&(e.copiedToolTip=t.first)}},decls:4,vars:2,consts:[[1,"admin-theme"],[1,"parent"],[4,"ngIf"],[1,"width-650"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"mt-3"],["mat-flat-button","","class","ml-0",3,"click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],["mat-flat-button","","color","accent","matTooltipPosition","above",1,"ml-2",3,"disabled","matTooltip","matTooltipDisabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["matInput","","required","",1,"width-650",3,"ngModel","placeholder","ngModelChange"],["matInput","","cdkTextareaAutosize","","required","",1,"width-650",3,"ngModel","placeholder","ngModelChange"],[1,"d-flex","flex-row","mt-3"],[1,"pointer","ml-4",3,"click"],["color","accent","matTooltipPosition","above",1,"ml-2",3,"matTooltip","matTooltipDisabled","disabled","ngModel","ngModelChange"],[1,"d-flex","flex-row","mt-2"],[1,"ml-5","pl-4"],[1,"ml-4"],[1,"d-flex","flex-row"],[1,""],[1,"ml-5","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5",3,"ngModel","ngModelChange"],[1,"ml-3",3,"ngModel","ngModelChange"],[1,"ml-4","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5","pl-4",3,"ngModel","ngModelChange"],[1,"ml-4","pl-4",3,"ngModel","ngModelChange"],[1,"mt-4"],[3,"services","displayedColumns","disableRouting"],["mat-flat-button","",1,"ml-0",3,"click"],[3,"tableId","attDef","switchView"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.YNc(2,Mt,18,18,"div",2),s.YNc(3,Ot,2,2,"div",2),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.Q6J("ngIf",!e.showKeys),s.xp6(1),s.Q6J("ngIf",e.showKeys))},directives:[i.O5,y.uh,y.H8,x.lW,M.gM,E.$g,y.xY,O.KE,L.Nt,R.Fj,R.Q7,R.JJ,R.On,U.IC,F.Rr,q.oG,lt.Q,O.TO,At],pipes:[f.X$],styles:[".unique-toggle-label[_ngcontent-%COMP%]{font-size:1.125rem}.width-650[_ngcontent-%COMP%]{width:650px!important}.pointer[_ngcontent-%COMP%]{cursor:pointer}[_nghost-%COMP%]{overflow:hidden}.parent[_ngcontent-%COMP%]{display:flex}.parent[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{flex:1}textarea[cdktextareaautosize].mat-input-element[_ngcontent-%COMP%]{overflow:hidden}"],data:{animation:[ut.SG,ut.GH,ut.Ls]}}),t})(),Rt=(()=>{class t{transform(t){if(null===t)return null;const e=t;return e.substring(e.lastIndexOf(":")+1,e.length)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"nameSpaceToDef",type:t,pure:!0}),t})(),Ut=(()=>{class t{transform(t){if(null===t)return null;const e=t;return e.substring(e.lastIndexOf(".")+1,e.length)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"attributeTypeClean",type:t,pure:!0}),t})();function Pt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"th",19),s.TgZ(1,"mat-checkbox",20),s.NdJ("change",function(e){s.CHM(t);const n=s.oxw();return e?n.masterToggle():null}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function Ft(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",21),s.TgZ(1,"mat-checkbox",22),s.NdJ("change",function(e){const n=s.CHM(t).$implicit,r=s.oxw();return e?r.selection.toggle(n):null})("click",function(t){return t.stopPropagation()}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,n=s.oxw();s.xp6(1),s.Q6J("aria-label",n.checkboxLabel(t))("checked",n.selection.isSelected(t))}}function qt(t,e){1&t&&(s.TgZ(0,"th",23),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_ID")," "))}function jt(t,e){if(1&t&&(s.TgZ(0,"td",24),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.id)}}function Yt(t,e){1&t&&(s.TgZ(0,"th",23),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_FRIENDLY_NAME")," "))}function Bt(t,e){if(1&t&&(s.TgZ(0,"td",25),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.friendlyName)}}function zt(t,e){1&t&&(s.TgZ(0,"th",23),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_ENTITY")," "))}function Gt(t,e){if(1&t&&(s.TgZ(0,"td",25),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.entity)}}function Jt(t,e){1&t&&(s.TgZ(0,"th",23),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_DEF")," "))}function Vt(t,e){if(1&t&&(s.TgZ(0,"td",25),s._uU(1),s.ALo(2,"nameSpaceToDef"),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(s.lcZ(2,1,t.namespace))}}function Ht(t,e){1&t&&(s.TgZ(0,"th",23),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_TYPE")," "))}function Qt(t,e){if(1&t&&(s.TgZ(0,"td",25),s._uU(1),s.ALo(2,"attributeTypeClean"),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(s.lcZ(2,1,t.type))}}function Wt(t,e){1&t&&(s.TgZ(0,"th",23),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_UNIQUE")," "))}function $t(t,e){if(1&t&&(s.TgZ(0,"td",25),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.unique)}}function Xt(t,e){1&t&&s._UZ(0,"tr",26)}function Kt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"tr",27),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().onRowClick(e)}),s.qZA()}if(2&t){const t=s.oxw();s.ekj("cursor-pointer",!t.disableRouting)}}function te(t,e){1&t&&(s.TgZ(0,"app-alert",28),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"ADMIN.ATTRIBUTES.NO_ATTRIBUTES"),"\n"))}function ee(t,e){1&t&&(s.TgZ(0,"app-alert",28),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let ne=(()=>{class t{constructor(t,e,n){this.dialog=t,this.authResolver=e,this.tableCheckbox=n,this.selection=new v.Ov(!0,[]),this.displayedColumns=["select","id","friendlyName","entity","namespace","type","unique"],this.disableRouting=!1,this.refreshEvent=new s.vpe,this.pageSizeOptions=tt.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new _.by(this.definitions),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"friendlyName":return t.friendlyName;case"entity":return t.entity;case"namespace":if(t.namespace){const e=t.namespace;return e.substring(e.lastIndexOf(":")+1,e.length)}return"";case"type":if(t.type){const e=t.type;return e.substring(e.lastIndexOf(".")+1,e.length)}return"";case"unique":return t.unique?"true":"false";default:return""}}exportData(t){(0,tt.O6)((0,tt.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filter=this.filterValue,this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(t,e)=>(0,tt.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,tt.pR)(t,e,this.getDataForColumn,this),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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}onRowClick(t){if(!this.disableRouting){const e=(0,tt.kZ)();e.width="700px",e.data={attDef:t},this.dialog.open(Lt,e).afterClosed().subscribe(t=>{t&&(this.selection.clear(),this.refreshEvent.emit())})}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.uw),s.Y36(w.x4),s.Y36(w.UA))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-attr-def-list"]],viewQuery:function(t,e){if(1&t&&(s.Gf(st.YE,7),s.Gf(tt.l9,7)),2&t){let t;s.iGM(t=s.CRH())&&(e.matSort=t.first),s.iGM(t=s.CRH())&&(e.child=t.first)}},inputs:{definitions:"definitions",selection:"selection",displayedColumns:"displayedColumns",filterValue:"filterValue",tableId:"tableId",disableRouting:"disableRouting"},outputs:{refreshEvent:"refreshEvent"},features:[s.TTD],decls:29,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],[1,"overflow-auto"],["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","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"],["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,"click"],["alert_type","warn"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)}),s.TgZ(2,"div",2),s.TgZ(3,"table",3),s.ynx(4,4),s.YNc(5,Pt,2,3,"th",5),s.YNc(6,Ft,2,2,"td",6),s.BQk(),s.ynx(7,7),s.YNc(8,qt,3,3,"th",8),s.YNc(9,jt,2,1,"td",9),s.BQk(),s.ynx(10,10),s.YNc(11,Yt,3,3,"th",8),s.YNc(12,Bt,2,1,"td",11),s.BQk(),s.ynx(13,12),s.YNc(14,zt,3,3,"th",8),s.YNc(15,Gt,2,1,"td",11),s.BQk(),s.ynx(16,13),s.YNc(17,Jt,3,3,"th",8),s.YNc(18,Vt,3,3,"td",11),s.BQk(),s.ynx(19,14),s.YNc(20,Ht,3,3,"th",8),s.YNc(21,Qt,3,3,"td",11),s.BQk(),s.ynx(22,15),s.YNc(23,Wt,3,3,"th",8),s.YNc(24,$t,2,1,"td",11),s.BQk(),s.YNc(25,Xt,1,0,"tr",16),s.YNc(26,Kt,1,2,"tr",17),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.YNc(27,te,3,3,"app-alert",18),s.YNc(28,ee,3,3,"app-alert",18)),2&t&&(s.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.definitions.length),s.xp6(1),s.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),s.xp6(2),s.Q6J("dataSource",e.dataSource),s.xp6(22),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===e.definitions.length),s.xp6(1),s.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.definitions.length))},directives:[ft.l,_.BZ,st.YE,_.w1,_.fO,_.Dz,_.as,_.nj,i.O5,_.ge,q.oG,_.ev,st.nU,_.XQ,_.Gk,T.w],pipes:[f.X$,Rt,Ut],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();function re(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",7),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCreate()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"ADMIN.ATTRIBUTES.CREATE")," "))}function ie(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",7),s.NdJ("click",function(){return s.CHM(t),s.oxw().onImport()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"ADMIN.ATTRIBUTES.IMPORT")," "))}function oe(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().onDelete()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selected.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"ADMIN.ATTRIBUTES.DELETE")," ")}}function ae(t,e){1&t&&s._UZ(0,"mat-spinner",9)}function se(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"app-attr-def-list",10),s.NdJ("refreshEvent",function(){return s.CHM(t),s.oxw().refreshTable()}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("tableId",t.tableId)("definitions",t.attrDefinitions)("selection",t.selected)("filterValue",t.filterValue)("disableRouting",!t.authResolver.isPerunAdmin())}}let ue=(()=>{class t{constructor(t,e,n){this.dialog=t,this.attributesManager=e,this.authResolver=n,this.attrDefinitions=[],this.selected=new v.Ov(!0,[]),this.filterValue="",this.tableId=et.uM}ngOnInit(){this.refreshTable()}onCreate(){const t=(0,tt.kZ)();t.width="500px",this.dialog.open(K,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onDelete(){const t=(0,tt.kZ)();t.width="450px",t.data={attributes:this.selected.selected,theme:"admin-theme"},this.dialog.open(C,t).afterClosed().subscribe(t=>{t&&(this.refreshTable(),this.selected.clear())})}refreshTable(){this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(t=>{this.attrDefinitions=t,this.loading=!1})}applyFilter(t){this.filterValue=t}onImport(){const t=(0,tt.kZ)();t.width="700px",this.dialog.open(it,t).afterClosed().subscribe(t=>{!0===t&&this.refreshTable()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.uw),s.Y36(b.H8),s.Y36(w.x4))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-admin-attributes"]],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("router-component",e.true)},decls:11,vars:9,consts:[[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,"tableId","definitions","selection","filterValue","disableRouting","refreshEvent",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,"tableId","definitions","selection","filterValue","disableRouting","refreshEvent"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.YNc(5,re,3,3,"button",2),s.YNc(6,ie,3,3,"button",2),s.YNc(7,oe,3,4,"button",3),s.TgZ(8,"perun-web-apps-immediate-filter",4),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.YNc(9,ae,1,0,"mat-spinner",5),s.YNc(10,se,1,5,"app-attr-def-list",6),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,7,"ADMIN.ATTRIBUTES.TITLE")),s.xp6(3),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("placeholder","ADMIN.ATTRIBUTES.SEARCH"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[ot.t,i.O5,at.L,x.lW,E.$g,ne],pipes:[f.X$],styles:[""]}),t})(),ce=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-admin-visualizer"]],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&s._UZ(0,"app-animated-router-outlet")},directives:[h.A],styles:[""]}),t})();var le=n(73180);let he=(()=>{class t{constructor(t){this.attributesManager=t}ngOnInit(){this.attributesManager.getAttributeModulesDependenciesGraphText("DOT").subscribe(t=>{const e=t.graph.replace("\\t","").replace("\\n","").replace("\\","");(0,le.graphviz)("#dependenciesGraph",{zoom:!1}).renderDot(e)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.H8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-visualizer-attr-modules"]],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("router-component",e.true)},decls:4,vars:3,consts:[[1,"page-subtitle"],["id","dependenciesGraph",1,"card"]],template:function(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s._UZ(3,"div",1)),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"ADMIN.VISUALIZER.ATTR_DEPENDENCIES.TITLE"),"\n"))},pipes:[f.X$],styles:["#dependenciesGraph[_ngcontent-%COMP%]{overflow-y:scroll}"]}),t})(),fe=(()=>{class t{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 t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-visualizer-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("router-component",e.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s._UZ(1,"perun-web-apps-menu-buttons-field",0),s.qZA()),2&t&&(s.xp6(1),s.Q6J("items",e.items)("size","small"))},directives:[g.L],styles:[""]}),t})();var de=n(47701),pe=n(98720),ge=n(66599),me=n(44689),ve=n(70663),ye=n(40084),_e=n(54810);function we(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.Oqu(s.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_USER"))}function be(t,e){1&t&&s._UZ(0,"mat-spinner",17),2&t&&s.Q6J("diameter",20)("strokeWidth",2)}function xe(t,e){if(1&t&&(s.TgZ(0,"mat-option",18),s.TgZ(1,"span",19),s._uU(2),s.qZA(),s._uU(3),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t.firstName+" "+t.lastName),s.xp6(2),s.hij("#",t.id,""),s.xp6(1),s.AsE(" ",t.firstName," ",t.lastName," ")}}function Ee(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.Oqu(s.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_DESTINATION"))}function Te(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.Oqu(s.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_SERVICE"))}function Ae(t,e){if(1&t&&(s.TgZ(0,"mat-radio-button",20),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.hij(" ",t," ")}}let Se=(()=>{class t{constructor(t,e,n,r,i,o){this.usersService=t,this.translate=e,this.facilityManager=n,this.serviceService=r,this.router=i,this.notificator=o,this.searchField=new R.NI,this.chosenService="",this.availableServices=[],this.loading=!1,this.destination=""}ngOnInit(){this.searchField.setValue(""),this.users=this.searchField.valueChanges.pipe((0,de.b)(400),(0,pe.x)(),(0,ge.b)(()=>this.loading=!0),(0,me.w)(t=>this.usersService.findUsers(t)),(0,ge.b)(()=>this.loading=!1)),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.SELECT_NO_SERVICE").subscribe(t=>{this.noServiceText=t,this.availableServices.push(this.noServiceText)})}validateName(t){""!==this.searchField.value?this.usersService.findUsers(this.searchField.value).subscribe(e=>{for(const n of e){if((n.firstName+" "+n.lastName).toLowerCase()===this.searchField.value.toLowerCase()){this.selectedUser=n,t.selected.completed=!0,t.next();break}this.selectedUser=null}this.selectedUser||this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_WRONG_NAME").subscribe(t=>{this.notificator.showError(t)})}):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NO_NAME").subscribe(t=>{this.notificator.showError(t)})}validateDestination(t){""!==this.destination?(this.availableServices=[],this.availableServices.push(this.noServiceText),this.chosenService="",this.facilityManager.getFacilitiesByDestination(this.destination).subscribe(e=>{if(0!==e.length){t.selected.completed=!0,t.next();for(const t of e)this.serviceService.getAllRichDestinationsForFacility(t.id).subscribe(t=>{for(const e of t)e.destination===this.destination&&-1===this.availableServices.indexOf(e.service.name)&&this.availableServices.push(e.service.name)})}else this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_WRONG_DESTINATION").subscribe(t=>{this.notificator.showError(t)})})):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NO_DESTINATION").subscribe(t=>{this.notificator.showError(t)})}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(t=>{this.notificator.showError(t)})}notCompleted(t){t.selected.completed=!1}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.Fv),s.Y36(f.sK),s.Y36(b.IQ),s.Y36(b.KK),s.Y36(o.F0),s.Y36(w.V6))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-user-destination-relationship"]],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("router-component",e.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","ngModelChange","keydown.enter"],["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","ngModelChange","keydown.enter"],["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(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"mat-vertical-stepper",2,3),s.TgZ(6,"mat-step",4),s.YNc(7,we,2,3,"ng-template",5),s.TgZ(8,"mat-form-field",6),s.TgZ(9,"input",7),s.NdJ("ngModelChange",function(){s.CHM(t);const n=s.MAs(5);return e.notCompleted(n)})("keydown.enter",function(){s.CHM(t);const n=s.MAs(5);return e.validateName(n)}),s.ALo(10,"translate"),s.qZA(),s.YNc(11,be,1,2,"mat-spinner",8),s.TgZ(12,"mat-hint",9),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.TgZ(15,"mat-autocomplete",null,10),s.YNc(17,xe,4,4,"mat-option",11),s.ALo(18,"async"),s.qZA(),s.qZA(),s.TgZ(19,"div"),s.TgZ(20,"button",12),s.NdJ("click",function(){s.CHM(t);const n=s.MAs(5);return e.validateName(n)}),s._uU(21),s.ALo(22,"translate"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(23,"mat-step",4),s.YNc(24,Ee,2,3,"ng-template",5),s.TgZ(25,"mat-form-field",6),s.TgZ(26,"input",13),s.NdJ("ngModelChange",function(t){return e.destination=t})("ngModelChange",function(){s.CHM(t);const n=s.MAs(5);return e.notCompleted(n)})("keydown.enter",function(){s.CHM(t);const n=s.MAs(5);return e.validateDestination(n)}),s.ALo(27,"translate"),s.qZA(),s.qZA(),s.TgZ(28,"div"),s.TgZ(29,"button",14),s._uU(30),s.ALo(31,"translate"),s.qZA(),s.TgZ(32,"button",12),s.NdJ("click",function(){s.CHM(t);const n=s.MAs(5);return e.validateDestination(n)}),s._uU(33),s.ALo(34,"translate"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(35,"mat-step"),s.YNc(36,Te,2,3,"ng-template",5),s.TgZ(37,"mat-radio-group",15),s.NdJ("ngModelChange",function(t){return e.chosenService=t}),s.YNc(38,Ae,2,2,"mat-radio-button",16),s.qZA(),s.TgZ(39,"div"),s.TgZ(40,"button",14),s._uU(41),s.ALo(42,"translate"),s.qZA(),s.TgZ(43,"button",12),s.NdJ("click",function(){return e.getGraph()}),s._uU(44),s.ALo(45,"translate"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.MAs(16);s.xp6(2),s.hij(" ",s.lcZ(3,16,"ADMIN.VISUALIZER.USER_DESTINATION.TITLE")," "),s.xp6(7),s.s9C("placeholder",s.lcZ(10,18,"ADMIN.VISUALIZER.USER_DESTINATION.USER_EXAMPLE")),s.Q6J("formControl",e.searchField)("matAutocomplete",t),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(2),s.Oqu(s.lcZ(14,20,"ADMIN.VISUALIZER.USER_DESTINATION.USER_HINT")),s.xp6(4),s.Q6J("ngForOf",s.lcZ(18,22,e.users)),s.xp6(4),s.hij(" ",s.lcZ(22,24,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_NEXT")," "),s.xp6(5),s.s9C("placeholder",s.lcZ(27,26,"ADMIN.VISUALIZER.USER_DESTINATION.DESTINATION_EXAMPLE")),s.Q6J("ngModel",e.destination),s.xp6(4),s.hij(" ",s.lcZ(31,28,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_BACK")," "),s.xp6(3),s.hij(" ",s.lcZ(34,30,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_NEXT")," "),s.xp6(4),s.Q6J("ngModel",e.chosenService),s.xp6(1),s.Q6J("ngForOf",e.availableServices),s.xp6(3),s.hij(" ",s.lcZ(42,32,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_BACK")," "),s.xp6(3),s.hij(" ",s.lcZ(45,34,"ADMIN.VISUALIZER.USER_DESTINATION.SUBMIT_BUTTON")," ")}},directives:[ve.Vq,ve.C0,ve.VY,O.KE,L.Nt,R.Fj,ye.ZL,R.JJ,R.oH,i.O5,O.bx,ye.XC,i.sg,x.lW,R.On,ve.fd,_e.VQ,E.$g,O.R9,j.ey,_e.U0],pipes:[f.X$,i.Ov],styles:[""]}),t})();var Ie=n(64762);function De(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Ne(t){this._context=t}function ke(t,e){this._basis=new Ne(t),this._beta=e}Ne.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:De(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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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:De(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ke.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],o=e[0],a=t[n]-i,s=e[n]-o,u=-1;++u<=n;)this._basis.point(this._beta*t[u]+(1-this._beta)*(i+(r=u/n)*a),this._beta*e[u]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Ce=function t(e){function n(t){return 1===e?new Ne(t):new ke(t,e)}return n.beta=function(e){return t(+e)},n}(.85),Ze=n(55959);function Me(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function Oe(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}var Le=n(10709),Re=n(26899),Ue=n(87254),Pe=n(41036),Fe=(n(92711),n(64641)),qe=(n(8634),n(3031));function je(t){return{type:t}}function Ye(t,e){return te?1:t>=e?0:NaN}function Be(t){let e=t,n=t;function r(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;n(t[o],e)<0?r=o+1:i=o}return r}return 1===t.length&&(e=(e,n)=>t(e)-n,n=function(t){return(e,n)=>Ye(t(e),n)}(t)),{left:r,center:function(t,n,i,o){null==i&&(i=0),null==o&&(o=t.length);const a=r(t,n,i,o-1);return a>i&&e(t[a-1],n)>-e(t[a],n)?a-1:a},right:function(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;n(t[o],e)>0?i=o:r=o+1}return r}}}n(45161),n(38337),n(82159),["w","e"].map(je),["n","s"].map(je),["n","w","e","s","nw","ne","sw","se"].map(je);var ze=Math.sqrt(50),Ge=Math.sqrt(10),Je=Math.sqrt(2);function Ve(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=ze?10:o>=Ge?5:o>=Je?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=ze?10:o>=Ge?5:o>=Je?2:1)}function He(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=ze?i*=10:o>=Ge?i*=5:o>=Je&&(i*=2),e0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(i.count=function(e,r){return Qe.setTime(+e),We.setTime(+r),t(Qe),t(We),Math.floor(n(Qe,We))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var Xe=$e(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});Xe.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?$e(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):Xe:null};var Ke=Xe,tn=$e(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+1e3*e)},function(t,e){return(e-t)/1e3},function(t){return t.getUTCSeconds()}),en=$e(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},function(t,e){t.setTime(+t+6e4*e)},function(t,e){return(e-t)/6e4},function(t){return t.getMinutes()}),nn=$e(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getHours()}),rn=$e(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5,t=>t.getDate()-1);function on(t){return $e(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5})}var an=on(0),sn=(on(1),on(2),on(3),on(4),on(5),on(6),$e(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()})),un=$e(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});un.every=function(t){return isFinite(t=Math.floor(t))&&t>0?$e(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};var cn=un,ln=$e(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+6e4*e)},function(t,e){return(e-t)/6e4},function(t){return t.getUTCMinutes()}),hn=$e(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getUTCHours()}),fn=$e(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1});function dn(t){return $e(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/6048e5})}var pn=dn(0),gn=(dn(1),dn(2),dn(3),dn(4),dn(5),dn(6),$e(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()})),mn=$e(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});mn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?$e(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var vn=mn;function yn(t,e,n,r,i,o){const a=[[tn,1,1e3],[tn,5,5e3],[tn,15,15e3],[tn,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function s(e,n,r){const i=Math.abs(n-e)/r,o=Be(([,,t])=>t).right(a,i);if(o===a.length)return t.every(He(e/31536e6,n/31536e6,r));if(0===o)return Ke.every(Math.max(He(e,n,r),1));const[s,u]=a[i/a[o-1][2]0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(i.count=function(e,r){return En.setTime(+e),Tn.setTime(+r),t(En),t(Tn),Math.floor(n(En,Tn))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}function Sn(t){return An(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/6048e5})}var In=Sn(0),Dn=Sn(1),Nn=(Sn(2),Sn(3),Sn(4)),kn=(Sn(5),Sn(6),An(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1}));function Cn(t){return An(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5})}var Zn=Cn(0),Mn=Cn(1),On=(Cn(2),Cn(3),Cn(4)),Ln=(Cn(5),Cn(6),An(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5},function(t){return t.getDate()-1})),Rn=An(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Rn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?An(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};var Un=Rn,Pn=An(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});Pn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?An(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var Fn=Pn;var qn={"-":"",_:" ",0:"0"},jn=/[\\^$*+?|[\]().{}]/g;function Yn(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o=4||0===n?On(t):On.ceil(t),Yn(On.count(Un(t),t)+(4===Un(t).getDay()),e,2)}function ir(t){return t.getDay()}function or(t,e){return Yn(Mn.count(Un(t)-1,t),e,2)}function ar(t,e){return Yn(t.getFullYear()%100,e,2)}function sr(t,e){return Yn(t.getFullYear()%1e4,e,4)}function ur(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Yn(e/60|0,"0",2)+Yn(e%60,"0",2)}function cr(t,e){return Yn(t.getUTCDate(),e,2)}function lr(t,e){return Yn(t.getUTCHours(),e,2)}function hr(t,e){return Yn(t.getUTCHours()%12||12,e,2)}function fr(t,e){return Yn(1+kn.count(Fn(t),t),e,3)}function dr(t,e){return Yn(t.getUTCMilliseconds(),e,3)}function pr(t,e){return dr(t,e)+"000"}function gr(t,e){return Yn(t.getUTCMonth()+1,e,2)}function mr(t,e){return Yn(t.getUTCMinutes(),e,2)}function vr(t,e){return Yn(t.getUTCSeconds(),e,2)}function yr(t){var e=t.getUTCDay();return 0===e?7:e}function _r(t,e){return Yn(In.count(Fn(t)-1,t),e,2)}function wr(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Nn(t):Nn.ceil(t),Yn(Nn.count(Fn(t),t)+(4===Fn(t).getUTCDay()),e,2)}function br(t){return t.getUTCDay()}function xr(t,e){return Yn(Dn.count(Fn(t)-1,t),e,2)}function Er(t,e){return Yn(t.getUTCFullYear()%100,e,2)}function Tr(t,e){return Yn(t.getUTCFullYear()%1e4,e,4)}function Ar(){return"+0000"}function Sr(){return"%"}function Ir(t){return+t}function Dr(t){return Math.floor(+t/1e3)}function Nr(t){return null===t?NaN:+t}!function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,u=t.shortMonths,c=(zn(i),Gn(i),zn(o),Gn(o),zn(a),Gn(a),zn(s),Gn(s),zn(u),Gn(u),{a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:Jn,e:Jn,f:$n,H:Vn,I:Hn,j:Qn,L:Wn,m:Xn,M:Kn,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Ir,s:Dr,S:tr,u:er,U:nr,V:rr,w:ir,W:or,x:null,X:null,y:ar,Y:sr,Z:ur,"%":Sr}),l={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:cr,e:cr,f:pr,H:lr,I:hr,j:fr,L:dr,m:gr,M:mr,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Ir,s:Dr,S:vr,u:yr,U:_r,V:wr,w:br,W:xr,x:null,X:null,y:Er,Y:Tr,Z:Ar,"%":Sr};function h(t,e){return function(n){var r,i,o,a=[],s=-1,u=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s(e=a[u-1])&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),r=u>2?Fr:Pr,i=o=null,h}function h(e){return null==e||isNaN(e=+e)?n:(i||(i=r(a.map(t),s,u)))(t(c(e)))}return h.invert=function(n){return c(e((o||(o=r(s,a.map(t),Zr.Z)))(n)))},h.domain=function(t){return arguments.length?(a=Array.from(t,Or),l()):a.slice()},h.range=function(t){return arguments.length?(s=Array.from(t),l()):s.slice()},h.rangeRound=function(t){return s=Array.from(t),u=Mr.Z,l()},h.clamp=function(t){return arguments.length?(c=!!t||Rr,l()):c!==Rr},h.interpolate=function(t){return arguments.length?(u=t,l()):u},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,l()}}()(Rr,Rr)}function Yr(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var Br=n(93116),zr=n(65636),Gr=n(3712),Jr=n(3218),Vr=n(22233);function Hr(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){var r,i,o,a,s=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e0){let n=Math.round(t/a),r=Math.round(e/a);for(n*ae&&--r,o=new Array(i=r-n+1);++se&&--r,o=new Array(i=r-n+1);++s0;){if((i=Ve(u,c,n))===r)return o[a]=u,o[s]=c,e(o);if(i>0)u=Math.floor(u/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;u=Math.ceil(u*i)/i,c=Math.floor(c*i)/i}r=i}return t},t}function Qr(){var t=jr();return t.copy=function(){return qr(t,Qr())},Yr.apply(t,arguments),Hr(t)}function Wr(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}}function ei(){var t,e=[],n=[],r=[];function i(){var t=0,i=Math.max(1,n.length);for(r=new Array(i-1);++t0?r[i-1]:e[0],i=0;)e+=n[r].value;else e=1;t.value=e}function mi(t,e){var n,r,i,o,a,s=new wi(t),u=+t.value&&(s.value=t.value),c=[s];for(null==e&&(e=vi);n=c.pop();)if(u&&(n.value=+n.data.value),(i=e(n.data))&&(a=i.length))for(n.children=new Array(a),o=a-1;o>=0;--o)c.push(r=n.children[o]=new wi(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(_i)}function vi(t){return t.children}function yi(t){t.data=t.data.data}function _i(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function wi(t){this.data=t,this.depth=this.height=0,this.parent=null}li.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ci(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:ci(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new li(t,e)}return n.tension=function(e){return t(+e)},n}(0),hi.prototype={areaStart:ui,areaEnd:ui,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:ci(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new hi(t,e)}return n.tension=function(e){return t(+e)},n}(0),fi.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}},Math,Math,Math,Math,Math,Math,Math,Math,n(12314),function t(e){function n(t,n,r,i,o){!function(t,e,n,r,i,o){for(var a,s,u,c,l,h,f,d,p,g,m,v=[],y=e.children,_=0,w=0,b=y.length,x=e.value;_f&&(f=s),m=l*l*g,(d=Math.max(f/m,m/h))>p){l-=s;break}p=d}v.push(a={value:l,dice:u1?e:1)},n}((1+Math.sqrt(5))/2),wi.prototype=mi.prototype={constructor:wi,count:function(){return this.eachAfter(gi)},each:function(t){var e,n,r,i,o=this,a=[o];do{for(e=a.reverse(),a=[];o=e.pop();)if(t(o),n=o.children)for(r=0,i=n.length;r=0;--n)i.push(e[n]);return this},sum:function(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)r.push(e=e.parent);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each(function(e){t.push(e)}),t},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e},copy:function(){return mi(this).eachBefore(yi)}};var bi=n(30269);const xi=["caretElm"];function Ei(t,e){}const Ti=function(t){return{model:t}};function Ai(t,e){if(1&t&&(s.TgZ(0,"span"),s.YNc(1,Ei,0,0,"ng-template",5),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngTemplateOutlet",t.template)("ngTemplateOutletContext",s.VKq(2,Ti,t.context))}}function Si(t,e){if(1&t&&s._UZ(0,"span",6),2&t){const t=s.oxw();s.Q6J("innerHTML",t.title,s.oJD)}}function Ii(t,e){if(1&t&&(s.O4$(),s.kcU(),s._UZ(0,"ngx-charts-scale-legend",4)),2&t){const t=s.oxw();s.Q6J("horizontal",t.legendOptions&&"below"===t.legendOptions.position)("valueRange",t.legendOptions.domain)("colors",t.legendOptions.colors)("height",t.view[1])("width",t.legendWidth)}}function Di(t,e){if(1&t){const t=s.EpF();s.O4$(),s.kcU(),s.TgZ(0,"ngx-charts-legend",5),s.NdJ("labelClick",function(e){return s.CHM(t),s.oxw().legendLabelClick.emit(e)})("labelActivate",function(e){return s.CHM(t),s.oxw().legendLabelActivate.emit(e)})("labelDeactivate",function(e){return s.CHM(t),s.oxw().legendLabelDeactivate.emit(e)}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("horizontal",t.legendOptions&&"below"===t.legendOptions.position)("data",t.legendOptions.domain)("title",t.legendOptions.title)("colors",t.legendOptions.colors)("height",t.view[1])("width",t.legendWidth)("activeEntries",t.activeEntries)}}const Ni=["*"];function ki(t,e){if(1&t&&(s.TgZ(0,"header",4),s.TgZ(1,"span",5),s._uU(2),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.Oqu(t.title)}}function Ci(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"li",6),s.TgZ(1,"ngx-charts-legend-entry",7),s.NdJ("select",function(e){return s.CHM(t),s.oxw().labelClick.emit(e)})("activate",function(e){return s.CHM(t),s.oxw().activate(e)})("deactivate",function(e){return s.CHM(t),s.oxw().deactivate(e)}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,n=s.oxw();s.xp6(1),s.Q6J("label",t.label)("formattedLabel",t.formattedLabel)("color",t.color)("isActive",n.isActive(t))}}let Zi=(()=>{class t{constructor(t,e,n){this.applicationRef=t,this.componentFactoryResolver=e,this.injector=n}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.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(t){this._container=t}getComponentRootNode(t){return t.element?t.element.nativeElement:t.hostView&&t.hostView.rootNodes.length>0?t.hostView.rootNodes[0]:t.location.nativeElement}getRootViewContainerNode(t){return this.getComponentRootNode(t)}projectComponentBindings(t,e){if(e){if(void 0!==e.inputs){const n=Object.getOwnPropertyNames(e.inputs);for(const r of n)t.instance[r]=e.inputs[r]}if(void 0!==e.outputs){const n=Object.getOwnPropertyNames(e.outputs);for(const r of n)t.instance[r]=e.outputs[r]}}return t}appendComponent(t,e={},n){n||(n=this.getRootViewContainer());const r=this.getComponentRootNode(n),i=new Re.F0(r,this.componentFactoryResolver,this.applicationRef,this.injector),o=new Re.C5(t),a=i.attach(o);return this.projectComponentBindings(a,e),a}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.z2F),s.LFG(s._Vd),s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function Mi(t,e,n){let r,i,o;n=n||{};let a=null,s=0;function u(){s=!1===n.leading?0:+new Date,a=null,o=t.apply(r,i)}return function(){const c=+new Date;s||!1!==n.leading||(s=c);const l=e-(c-s);return r=this,i=arguments,l<=0?(clearTimeout(a),a=null,s=c,o=t.apply(r,i)):a||!1===n.trailing||(a=setTimeout(u,l)),o}}var Oi=function(t){return t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right",t}({});function Li(t,e,n){return"top"===n?t.top-7:"bottom"===n?t.top+t.height-e.height+7:"center"===n?t.top+t.height/2-e.height/2:void 0}function Ri(t,e,n){return"left"===n?t.left-7:"right"===n?t.left+t.width-e.width+7:"center"===n?t.left+t.width/2-e.width/2:void 0}class Ui{static calculateVerticalAlignment(t,e,n){let r=Li(t,e,n);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r}static calculateVerticalCaret(t,e,n,r){let i;"top"===r&&(i=t.height/2-n.height/2+7),"bottom"===r&&(i=e.height-t.height/2-n.height/2-7),"center"===r&&(i=e.height/2-n.height/2);const o=Li(t,e,r);return o+e.height>window.innerHeight&&(i+=o+e.height-window.innerHeight),i}static calculateHorizontalAlignment(t,e,n){let r=Ri(t,e,n);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r}static calculateHorizontalCaret(t,e,n,r){let i;"left"===r&&(i=t.width/2-n.width/2+7),"right"===r&&(i=e.width-t.width/2-n.width/2-7),"center"===r&&(i=e.width/2-n.width/2);const o=Ri(t,e,r);return o+e.width>window.innerWidth&&(i+=o+e.width-window.innerWidth),i}static shouldFlip(t,e,n,r){let i=!1;return"right"===n&&t.left+t.width+e.width+r>window.innerWidth&&(i=!0),"left"===n&&t.left-e.width-r<0&&(i=!0),"top"===n&&t.top-e.height-r<0&&(i=!0),"bottom"===n&&t.top+t.height+e.height+r>window.innerHeight&&(i=!0),i}static positionCaret(t,e,n,r,i){let o=0,a=0;return t===Oi.right?(a=-7,o=Ui.calculateVerticalCaret(n,e,r,i)):t===Oi.left?(a=e.width,o=Ui.calculateVerticalCaret(n,e,r,i)):t===Oi.top?(o=e.height,a=Ui.calculateHorizontalCaret(n,e,r,i)):t===Oi.bottom&&(o=-7,a=Ui.calculateHorizontalCaret(n,e,r,i)),{top:o,left:a}}static positionContent(t,e,n,r,i){let o=0,a=0;return t===Oi.right?(a=n.left+n.width+r,o=Ui.calculateVerticalAlignment(n,e,i)):t===Oi.left?(a=n.left-e.width-r,o=Ui.calculateVerticalAlignment(n,e,i)):t===Oi.top?(o=n.top-e.height-r,a=Ui.calculateHorizontalAlignment(n,e,i)):t===Oi.bottom&&(o=n.top+n.height+r,a=Ui.calculateHorizontalAlignment(n,e,i)),{top:o,left:a}}static determinePlacement(t,e,n,r){if(Ui.shouldFlip(n,e,t,r)){if(t===Oi.right)return Oi.left;if(t===Oi.left)return Oi.right;if(t===Oi.top)return Oi.bottom;if(t===Oi.bottom)return Oi.top}return t}}let Pi,Fi=(()=>{class t{constructor(t,e){this.element=t,this.renderer=e}get cssClasses(){let t="ngx-charts-tooltip-content";return t+=` position-${this.placement}`,t+=` type-${this.type}`,t+=` ${this.cssClass}`,t}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){const t=this.element.nativeElement,e=this.host.nativeElement.getBoundingClientRect();if(!e.height&&!e.width)return;const n=t.getBoundingClientRect();this.checkFlip(e,n),this.positionContent(t,e,n),this.showCaret&&this.positionCaret(e,n),setTimeout(()=>this.renderer.addClass(t,"animate"),1)}positionContent(t,e,n){const{top:r,left:i}=Ui.positionContent(this.placement,n,e,this.spacing,this.alignment);this.renderer.setStyle(t,"top",`${r}px`),this.renderer.setStyle(t,"left",`${i}px`)}positionCaret(t,e){const n=this.caretElm.nativeElement,r=n.getBoundingClientRect(),{top:i,left:o}=Ui.positionCaret(this.placement,e,t,r,this.alignment);this.renderer.setStyle(n,"top",`${i}px`),this.renderer.setStyle(n,"left",`${o}px`)}checkFlip(t,e){this.placement=Ui.determinePlacement(this.placement,e,t,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.Qsj))},t.\u0275cmp=s.Xpm({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(t,e){if(1&t&&s.Gf(xi,5),2&t){let t;s.iGM(t=s.CRH())&&(e.caretElm=t.first)}},hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("resize",function(){return e.onWindowResize()},!1,s.Jf7),2&t&&s.Tol(e.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",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(t,e){1&t&&(s.TgZ(0,"div"),s._UZ(1,"span",0,1),s.TgZ(3,"div",2),s.YNc(4,Ai,2,4,"span",3),s.YNc(5,Si,1,1,"span",4),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Gre("tooltip-caret position-",e.placement,""),s.Q6J("hidden",!e.showCaret),s.xp6(3),s.Q6J("ngIf",!e.title),s.xp6(1),s.Q6J("ngIf",e.title))},directives:[i.O5,i.tP],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.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{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),Me([(100,function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:Mi(n.value,100,undefined)}),this[e]}}})],t.prototype,"onWindowResize",null),t})(),qi=(()=>{class t extends class{constructor(t){this.injectionService=t,this.defaults={},this.components=new Map}getByType(t=this.type){return this.components.get(t)}create(t){return this.createByType(this.type,t)}createByType(t,e){e=this.assignDefaults(e);const n=this.injectComponent(t,e);return this.register(t,n),n}destroy(t){const e=this.components.get(t.componentType);if(e&&e.length){const n=e.indexOf(t);n>-1&&(e[n].destroy(),e.splice(n,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(t){const e=this.components.get(t);if(e&&e.length){let t=e.length-1;for(;t>=0;)this.destroy(e[t--])}}injectComponent(t,e){return this.injectionService.appendComponent(t,e)}assignDefaults(t){const e=Object.assign({},this.defaults.inputs),n=Object.assign({},this.defaults.outputs);return t.inputs||t.outputs||(t={inputs:t}),e&&(t.inputs=Object.assign(Object.assign({},e),t.inputs)),n&&(t.outputs=Object.assign(Object.assign({},n),t.outputs)),t}register(t,e){this.components.has(t)||this.components.set(t,[]),this.components.get(t).push(e)}}{constructor(t){super(t),this.type=Fi}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Zi))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),ji=(()=>{class t{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new s.vpe,this.legendLabelActivate=new s.vpe,this.legendLabelDeactivate=new s.vpe}ngOnChanges(t){this.update()}update(){let t=0;this.showLegend&&(this.legendType=this.getLegendType(),this.legendOptions&&"right"!==this.legendOptions.position||(t="scaleLegend"===this.legendType?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-t)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:Math.floor(this.view[0]*t/12)}getLegendType(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",data:"data",legendData:"legendData",colors:"colors",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[s._Bn([qi]),s.TTD],ngContentSelectors:Ni,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.O4$(),s.TgZ(1,"svg",1),s.Hsn(2),s.qZA(),s.YNc(3,Ii,1,5,"ngx-charts-scale-legend",2),s.YNc(4,Di,1,7,"ngx-charts-legend",3),s.qZA()),2&t&&(s.Udp("width",e.view[0],"px"),s.Q6J("@animationState","active")("@.disabled",!e.animations),s.xp6(1),s.uIk("width",e.chartWidth)("height",e.view[1]),s.xp6(2),s.Q6J("ngIf",e.showLegend&&"scaleLegend"===e.legendType),s.xp6(1),s.Q6J("ngIf",e.showLegend&&"legend"===e.legendType))},directives:function(){return[i.O5,Qi,Vi]},encapsulation:2,data:{animation:[(0,Le.X$)("animationState",[(0,Le.eR)(":enter",[(0,Le.oB)({opacity:0}),(0,Le.jt)("500ms 100ms",(0,Le.oB)({opacity:1}))])])]},changeDetection:0}),t})(),Yi=(()=>{class t{constructor(t,e){this.element=t,this.zone=e,this.visible=new s.vpe,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const t=()=>{if(!this.element)return;const{offsetHeight:e,offsetWidth:n}=this.element.nativeElement;e&&n?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>t(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>t())})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b))},t.\u0275dir=s.lG2({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t})(),Bi=(()=>{class t{constructor(t,e,n){this.chartElement=t,this.zone=e,this.cd=n,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new s.vpe}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new Yi(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(t){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const t=this.getContainerDims();t&&(this.width=t.width,this.height=t.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 t,e;const n=this.chartElement.nativeElement;if(null!==n.parentNode){const r=n.parentNode.getBoundingClientRect();t=r.width,e=r.height}return t&&e?{width:t,height:e}:null}formatDates(){for(let t=0;t{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=t}cloneData(t){const e=[];for(const n of t){const t={name:n.name};if(void 0!==n.value&&(t.value=n.value),void 0!==n.series){t.series=[];for(const e of n.series){const n=Object.assign({},e);t.series.push(n)}}void 0!==n.extra&&(t.extra=JSON.parse(JSON.stringify(n.extra))),e.push(t)}return e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(s.sBO))},t.\u0275cmp=s.Xpm({type:t,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[s.TTD],decls:1,vars:0,template:function(t,e){1&t&&s._UZ(0,"div")},encapsulation:2}),t})(),zi=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[i.ez]]}),t})(),Gi=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Zi,qi],imports:[[i.ez]]}),t})();function Ji(t){return t instanceof Date?t.toLocaleDateString():t.toLocaleString()}"undefined"!=typeof window?Pi=window:"undefined"!=typeof global&&(Pi=global);let Vi=(()=>{class t{constructor(t){this.cd=t,this.horizontal=!1,this.labelClick=new s.vpe,this.labelActivate=new s.vpe,this.labelDeactivate=new s.vpe,this.legendEntries=[]}ngOnChanges(t){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const t=[];for(const e of this.data){const n=Ji(e);-1===t.findIndex(t=>t.label===n)&&t.push({label:e,formattedLabel:n,color:this.colors.getColor(e)})}return t}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(e=>t.label===e.name)}activate(t){this.labelActivate.emit(t)}deactivate(t){this.labelDeactivate.emit(t)}trackBy(t,e){return e.label}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO))},t.\u0275cmp=s.Xpm({type:t,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[s.TTD],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.YNc(1,ki,3,1,"header",0),s.TgZ(2,"div",1),s.TgZ(3,"ul",2),s.YNc(4,Ci,2,4,"li",3),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Udp("width",e.width,"px"),s.xp6(1),s.Q6J("ngIf",(null==e.title?null:e.title.length)>0),s.xp6(2),s.Udp("max-height",e.height-45,"px"),s.ekj("horizontal-legend",e.horizontal),s.xp6(1),s.Q6J("ngForOf",e.legendEntries)("ngForTrackBy",e.trackBy))},directives:function(){return[i.O5,i.sg,Hi]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{font-size:14px;font-weight:700;margin-bottom:5px;margin-left:10px;overflow:hidden;white-space:nowrap}.chart-legend li,.chart-legend ul{list-style:none;margin:0;padding:0}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{background:rgba(0,0,0,.05);border-radius:3px;float:left;line-height:85%;list-style:none;overflow-x:hidden;overflow-y:auto;text-align:left;white-space:nowrap;width:100%}.chart-legend .legend-label{color:#afb7c8;cursor:pointer;font-size:90%;margin:8px}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{border-radius:3px;color:#5b646b;display:inline-block;height:15px;margin-right:5px;width:15px}.chart-legend .legend-label-text{font-size:12px;line-height:15px;vertical-align:top;width:calc(100% - 20px)}.chart-legend .legend-label-text,.chart-legend .legend-title-text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-legend .legend-title-text{line-height:16px;vertical-align:bottom}"],encapsulation:2,changeDetection:0}),t})(),Hi=(()=>{class t{constructor(){this.isActive=!1,this.select=new s.vpe,this.activate=new s.vpe,this.deactivate=new s.vpe,this.toggle=new s.vpe}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(t,e){1&t&&s.NdJ("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(){return e.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(t,e){1&t&&(s.TgZ(0,"span",0),s.NdJ("click",function(){return e.select.emit(e.formattedLabel)}),s.TgZ(1,"span",1),s.NdJ("click",function(){return e.toggle.emit(e.formattedLabel)}),s.qZA(),s.TgZ(2,"span",2),s._uU(3),s.qZA(),s.qZA()),2&t&&(s.ekj("active",e.isActive),s.Q6J("title",e.formattedLabel),s.xp6(1),s.Udp("background-color",e.color),s.xp6(2),s.hij(" ",e.trimmedLabel," "))},encapsulation:2,changeDetection:0}),t})(),Qi=(()=>{class t{constructor(t){this.sanitizer=t,this.horizontal=!1}ngOnChanges(t){const e=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${e})`)}gradientString(t,e){e.push(1);const n=[];return t.reverse().forEach((t,r)=>{n.push(`${t} ${Math.round(100*e[r])}%`)}),n.join(", ")}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(bi.H7))},t.\u0275cmp=s.Xpm({type:t,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[s.TTD],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"span"),s._uU(3),s.qZA(),s.qZA(),s._UZ(4,"div",2),s.TgZ(5,"div",1),s.TgZ(6,"span"),s._uU(7),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Udp("height",e.horizontal?void 0:e.height,"px")("width",e.width,"px"),s.ekj("horizontal-legend",e.horizontal),s.xp6(3),s.Oqu(e.valueRange[1].toLocaleString()),s.xp6(1),s.Udp("background",e.gradient),s.xp6(3),s.Oqu(e.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{display:flex;flex-direction:column;text-align:center}.chart-legend .scale-legend-wrap{border-radius:5px;display:inline-block;flex:1;margin:0 auto;width:30px}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{height:30px;margin:0 16px;width:auto}"],encapsulation:2,changeDetection:0}),t})(),Wi=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[i.ez,zi,Gi],i.ez,zi,Gi]}),t})(),$i=[{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 Xi{constructor(t,e,n,r){"string"==typeof t&&(t=$i.find(e=>e.name===t)),this.colorDomain=t.domain,this.scaleType=e,this.domain=n,this.customColors=r,this.scale=this.generateColorScheme(t,e,this.domain)}generateColorScheme(t,e,n){let r;if("string"==typeof t&&(t=$i.find(e=>e.name===t)),"quantile"===e)r=ei().range(t.domain).domain(n);else if("ordinal"===e)r=Xr().range(t.domain).domain(n);else if("linear"===e){const e=[...t.domain];1===e.length&&(e.push(e[0]),this.colorDomain=e);const n=Wr(0,1,1/e.length);r=Qr().domain(n).range(e)}return r}getColor(t){if(null==t)throw new Error("Value can not be null");if("linear"===this.scaleType){const e=Qr().domain(this.domain).range([0,1]);return this.scale(e(t))}{if("function"==typeof this.customColors)return this.customColors(t);const e=t.toString();let n;return this.customColors&&this.customColors.length>0&&(n=this.customColors.find(t=>t.name.toLowerCase()===e.toLowerCase())),n?n.value:this.scale(t)}}getLinearGradientStops(t,e){void 0===e&&(e=this.domain[0]);const n=Qr().domain(this.domain).range([0,1]),r=Kr().domain(this.colorDomain).range([0,1]),i=this.getColor(t),o=n(e),a=this.getColor(e),s=n(t);let u=1,c=o;const l=[];for(l.push({color:a,offset:o,originalOffset:o,opacity:1});c=(s-r.bandwidth()).toFixed(4))break;l.push({color:t,offset:e,opacity:1}),c=e,u++}}if(l[l.length-1].offset<100&&l.push({color:i,offset:s,opacity:1}),s===o)l[0].offset=0,l[1].offset=100;else if(100!==l[l.length-1].offset)for(const h of l)h.offset=(h.offset-o)/(s-o)*100;return l}}let Ki=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi]]}),t})(),to=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi]]}),t})(),eo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi]]}),t})(),no=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi]]}),t})(),ro=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi]]}),t})();Math;let io=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi]]}),t})(),oo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi,io,ro]]}),t})(),ao=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi]]}),t})(),so=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi]]}),t})(),uo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi,io,to]]}),t})(),co=(()=>{class t{constructor(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[Wi,Ki,to,eo,no,ro,oo,ao,io,so,uo]}),t})();var lo=Math.PI;function ho(t){return(1-Math.cos(lo*t))/2}var fo=n(87570),po=n(48318),go=n(40878),mo=n(3530);function vo(t){return void 0===t}function yo(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e1&&void 0!==arguments[1]?arguments[1]:0;return{a:1,c:0,e:t,b:0,d:1,f:e}}"function"==typeof Symbol&&Symbol,Math,Math,Math,Math;var xo=n(32975);function Eo(t,e){var n;function r(){var r,i,o=n.length,a=0,s=0;for(r=0;r=(o=(g+v)/2))?g=o:v=o,(l=n>=(a=(m+y)/2))?m=a:y=a,i=d,!(d=d[h=l<<1|c]))return i[h]=p,t;if(s=+t._x.call(null,d.data),u=+t._y.call(null,d.data),e===s&&n===u)return p.next=d,i?i[h]=p:t._root=p,t;do{i=i?i[h]=new Array(4):t._root=new Array(4),(c=e>=(o=(g+v)/2))?g=o:v=o,(l=n>=(a=(m+y)/2))?m=a:y=a}while((h=l<<1|c)==(f=(u>=a)<<1|s>=o));return i[f]=d,i[h]=p,t}function Io(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function Do(t){return t[0]}function No(t){return t[1]}function ko(t,e,n){var r=new Co(null==e?Do:e,null==n?No:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Co(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function Zo(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Mo=ko.prototype=Co.prototype;function Oo(t){return t.x+t.vx}function Lo(t){return t.y+t.vy}function Ro(t){var e,n,r=1,i=1;function o(){for(var t,o,s,u,c,l,h,f=e.length,d=0;du+d||ic+d||os.index){var p=u-a.x-a.vx,g=c-a.y-a.vy,m=p*p+g*g;mt.r&&(t.r=t[e].r)}function s(){if(e){var r,i,o=e.length;for(n=new Array(o),r=0;rl&&(l=r),ih&&(h=i));if(u>l||c>h)return this;for(this.cover(u,c).cover(l,h),n=0;nt||t>=i||r>e||e>=o;)switch(s=(ef||(o=u.y0)>d||(a=u.x1)=v)<<1|t>=m)&&(u=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=u)}else{var y=t-+this._x.call(null,g.data),_=e-+this._y.call(null,g.data),w=y*y+_*_;if(w=(s=(p+m)/2))?p=s:m=s,(l=a>=(u=(g+v)/2))?g=u:v=u,e=d,!(d=d[h=l<<1|c]))return this;if(!d.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(n=e,f=h)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[h]=i:delete e[h],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[f]=d:this._root=d),this):(this._root=i,this)},Mo.removeAll=function(t){for(var e=0,n=t.length;e1?(null==n?s.remove(t):s.set(t,d(n)),e):s.get(t)},find:function(e,n,r){var i,o,a,s,u,c=0,l=t.length;for(null==r?r=1/0:r*=r,c=0;c1?(c.on(t,n),e):c.on(t)}}}function Wo(){var t,e,n,r,i=To(-30),o=1,a=1/0,s=.81;function u(r){var i,o=t.length,a=ko(t,Jo,Vo).visitAfter(l);for(n=r,i=0;i=a)){(t.data!==e||t.next)&&(0===l&&(d+=(l=Ao())*l),0===h&&(d+=(h=Ao())*h),dt.id===n.id);r.position={x:n.x,y:n.y},r.dimension={width:n.width,height:n.height}}return t}updateEdge(t,e){const n=t.nodes.find(t=>t.id===e.source),r=t.nodes.find(t=>t.id===e.target),i=n.position.y<=r.position.y?-1:1;return e.points=[{x:n.position.x,y:n.position.y-i*(n.dimension.height/2)},{x:r.position.x,y:r.position.y+i*(r.dimension.height/2)}],t}createDagreGraph(t){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new xo.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=t.nodes.map(t=>{const e=Object.assign({},t);return e.width=t.dimension.width,e.height=t.dimension.height,e.x=t.position.x,e.y=t.position.y,e}),this.dagreEdges=t.edges.map(t=>{const e=Object.assign({},t);return e.id||(e.id=Ca()),e});for(const n of this.dagreNodes)n.width||(n.width=20),n.height||(n.height=30),this.dagreGraph.setNode(n.id,n);for(const n of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(n.source,n.target,n,n.id):this.dagreGraph.setEdge(n.source,n.target);return this.dagreGraph}},dagreCluster:class{constructor(){this.defaultSettings={orientation:Za.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(t){this.createDagreGraph(t),(0,xo.layout)(this.dagreGraph),t.edgeLabels=this.dagreGraph._edgeLabels;const e=t=>{const e=this.dagreGraph._nodes[t.id];return Object.assign(Object.assign({},t),{position:{x:e.x,y:e.y},dimension:{width:e.width,height:e.height}})};return t.clusters=(t.clusters||[]).map(e),t.nodes=t.nodes.map(e),t}updateEdge(t,e){const n=t.nodes.find(t=>t.id===e.source),r=t.nodes.find(t=>t.id===e.target),i=n.position.y<=r.position.y?-1:1;return e.points=[{x:n.position.x,y:n.position.y-i*(n.dimension.height/2)},{x:r.position.x,y:r.position.y+i*(r.dimension.height/2)}],t}createDagreGraph(t){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new xo.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=t.nodes.map(t=>{const e=Object.assign({},t);return e.width=t.dimension.width,e.height=t.dimension.height,e.x=t.position.x,e.y=t.position.y,e}),this.dagreClusters=t.clusters||[],this.dagreEdges=t.edges.map(t=>{const e=Object.assign({},t);return e.id||(e.id=Ca()),e});for(const n of this.dagreNodes)this.dagreGraph.setNode(n.id,n);for(const n of this.dagreClusters)this.dagreGraph.setNode(n.id,n),n.childNodeIds.forEach(t=>{this.dagreGraph.setParent(t,n.id)});for(const n of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(n.source,n.target,n,n.id):this.dagreGraph.setEdge(n.source,n.target);return this.dagreGraph}},dagreNodesOnly:class{constructor(){this.defaultSettings={orientation:Za.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,curveDistance:20,multigraph:!0,compound:!0},this.settings={}}run(t){this.createDagreGraph(t),(0,xo.layout)(this.dagreGraph),t.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const n=this.dagreGraph._nodes[e],r=t.nodes.find(t=>t.id===n.id);r.position={x:n.x,y:n.y},r.dimension={width:n.width,height:n.height}}for(const e of t.edges)this.updateEdge(t,e);return t}updateEdge(t,e){const n=t.nodes.find(t=>t.id===e.source),r=t.nodes.find(t=>t.id===e.target),i="BT"===this.settings.orientation||"TB"===this.settings.orientation?"y":"x",o="y"===i?"x":"y",a="y"===i?"height":"width",s=n.position[i]<=r.position[i]?-1:1,u={[o]:n.position[o],[i]:n.position[i]-s*(n.dimension[a]/2)},c={[o]:r.position[o],[i]:r.position[i]+s*(r.dimension[a]/2)},l=this.settings.curveDistance||this.defaultSettings.curveDistance;e.points=[u,{[o]:u[o],[i]:u[i]-s*l},{[o]:c[o],[i]:c[i]+s*l},c];const h=t.edgeLabels[`${e.source}\x01${e.target}\x01\0`];return h&&(h.points=e.points),t}createDagreGraph(t){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new xo.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=t.nodes.map(t=>{const e=Object.assign({},t);return e.width=t.dimension.width,e.height=t.dimension.height,e.x=t.position.x,e.y=t.position.y,e}),this.dagreEdges=t.edges.map(t=>{const e=Object.assign({},t);return e.id||(e.id=Ca()),e});for(const n of this.dagreNodes)n.width||(n.width=20),n.height||(n.height=30),this.dagreGraph.setNode(n.id,n);for(const n of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(n.source,n.target,n,n.id):this.dagreGraph.setEdge(n.source,n.target);return this.dagreGraph}},d3ForceDirected:class{constructor(){this.defaultSettings={force:Qo().force("charge",Wo().strength(-150)).force("collide",Ro(5)),forceLink:zo().id(t=>t.id).distance(()=>100)},this.settings={},this.outputGraph$=new Ze.xQ}run(t){return this.inputGraph=t,this.d3Graph={nodes:[...this.inputGraph.nodes.map(t=>Object.assign({},t))],edges:[...this.inputGraph.edges.map(t=>Object.assign({},t))]},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(t,e){const n=Object.assign({},this.defaultSettings,this.settings);return n.force&&n.force.nodes(this.d3Graph.nodes).force("link",n.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}d3GraphToOutputGraph(t){return this.outputGraph.nodes=this.d3Graph.nodes.map(t=>Object.assign(Object.assign({},t),{id:t.id||Ca(),position:{x:t.x,y:t.y},dimension:{width:t.dimension&&t.dimension.width||20,height:t.dimension&&t.dimension.height||20},transform:`translate(${t.x-(t.dimension&&t.dimension.width||20)/2||0}, ${t.y-(t.dimension&&t.dimension.height||20)/2||0})`})),this.outputGraph.edges=this.d3Graph.edges.map(t=>Object.assign(Object.assign({},t),{source:Ma(t.source).id,target:Ma(t.target).id,points:[{x:Ma(t.source).x,y:Ma(t.source).y},{x:Ma(t.target).x,y:Ma(t.target).y}]})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(t,e){this.settings.force.alphaTarget(.3).restart();const n=this.d3Graph.nodes.find(e=>e.id===t.id);n&&(this.draggingStart={x:e.x-n.x,y:e.y-n.y},n.fx=e.x-this.draggingStart.x,n.fy=e.y-this.draggingStart.y)}onDrag(t,e){if(!t)return;const n=this.d3Graph.nodes.find(e=>e.id===t.id);n&&(n.fx=e.x-this.draggingStart.x,n.fy=e.y-this.draggingStart.y)}onDragEnd(t,e){if(!t)return;const n=this.d3Graph.nodes.find(e=>e.id===t.id);n&&(this.settings.force.alphaTarget(0),n.fx=void 0,n.fy=void 0)}},colaForceDirected:class{constructor(){this.defaultSettings={force:(0,ta.d3adaptor)(Object.assign(Object.assign(Object.assign({},ea),r),na)).linkDistance(150).avoidOverlaps(!0),viewDimensions:{width:600,height:600,xOffset:0}},this.settings={},this.outputGraph$=new Ze.xQ}run(t){return this.inputGraph=t,this.inputGraph.clusters||(this.inputGraph.clusters=[]),this.internalGraph={nodes:[...this.inputGraph.nodes.map(t=>Object.assign(Object.assign({},t),{width:t.dimension?t.dimension.width:20,height:t.dimension?t.dimension.height:20}))],groups:[...this.inputGraph.clusters.map(t=>({padding:5,groups:t.childNodeIds.map(t=>this.inputGraph.clusters.findIndex(e=>e.id===t)).filter(t=>t>=0),leaves:t.childNodeIds.map(t=>this.inputGraph.nodes.findIndex(e=>e.id===t)).filter(t=>t>=0)}))],links:[...this.inputGraph.edges.map(t=>{const e=this.inputGraph.nodes.findIndex(e=>t.source===e.id),n=this.inputGraph.nodes.findIndex(e=>t.target===e.id);if(-1!==e&&-1!==n)return Object.assign(Object.assign({},t),{source:e,target:n})}).filter(t=>!!t)],groupLinks:[...this.inputGraph.edges.map(t=>{const e=this.inputGraph.nodes.findIndex(e=>t.source===e.id),n=this.inputGraph.nodes.findIndex(e=>t.target===e.id);if(!(e>=0&&n>=0))return t}).filter(t=>!!t)]},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(t,e){const n=Object.assign({},this.defaultSettings,this.settings);return n.force&&n.force.start(),this.outputGraph$.asObservable()}internalGraphToOutputGraph(t){return this.outputGraph.nodes=t.nodes.map(t=>Object.assign(Object.assign({},t),{id:t.id||Ca(),position:{x:t.x,y:t.y},dimension:{width:t.dimension&&t.dimension.width||20,height:t.dimension&&t.dimension.height||20},transform:`translate(${t.x-(t.dimension&&t.dimension.width||20)/2||0}, ${t.y-(t.dimension&&t.dimension.height||20)/2||0})`})),this.outputGraph.edges=t.links.map(e=>{const n=Oa(t.nodes,e.source),r=Oa(t.nodes,e.target);return Object.assign(Object.assign({},e),{source:n.id,target:r.id,points:[n.bounds.rayIntersection(r.bounds.cx(),r.bounds.cy()),r.bounds.rayIntersection(n.bounds.cx(),n.bounds.cy())]})}).concat(t.groupLinks.map(e=>{const n=t.nodes.find(t=>t.id===e.source),r=t.nodes.find(t=>t.id===e.target),i=n||t.groups.find(t=>t.id===e.source),o=r||t.groups.find(t=>t.id===e.target);return Object.assign(Object.assign({},e),{source:i.id,target:o.id,points:[i.bounds.rayIntersection(o.bounds.cx(),o.bounds.cy()),o.bounds.rayIntersection(i.bounds.cx(),i.bounds.cy())]})})),this.outputGraph.clusters=t.groups.map((t,e)=>Object.assign(Object.assign({},this.inputGraph.clusters[e]),{dimension:{width:t.bounds?t.bounds.width():20,height:t.bounds?t.bounds.height():20},position:{x:t.bounds?t.bounds.x+t.bounds.width()/2:0,y:t.bounds?t.bounds.y+t.bounds.height()/2:0}})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(t,e){const n=this.outputGraph.nodes.findIndex(e=>e.id===t.id),r=this.internalGraph.nodes[n];r&&(this.draggingStart={x:r.x-e.x,y:r.y-e.y},r.fixed=1,this.settings.force.start())}onDrag(t,e){if(!t)return;const n=this.outputGraph.nodes.findIndex(e=>e.id===t.id),r=this.internalGraph.nodes[n];r&&(r.x=this.draggingStart.x+e.x,r.y=this.draggingStart.y+e.y)}onDragEnd(t,e){if(!t)return;const n=this.outputGraph.nodes.findIndex(e=>e.id===t.id),r=this.internalGraph.nodes[n];r&&(r.fixed=0)}}};let Ra=(()=>{class t{getLayout(t){if(La[t])return new La[t];throw new Error(`Unknown layout type '${t}'`)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();var Ua=function(t){return t.Both="both",t.Horizontal="horizontal",t.Vertical="vertical",t}({}),Pa=function(t){return t.UpperLeft="UpperLeft",t.UpperRight="UpperRight",t}({});function Fa(t,e,n){let r,i,o;n=n||{};let a=null,s=0;function u(){s=!1===n.leading?0:+new Date,a=null,o=t.apply(r,i)}return function(){const c=+new Date;s||!1!==n.leading||(s=c);const l=e-(c-s);return r=this,i=arguments,l<=0?(clearTimeout(a),a=null,s=c,o=t.apply(r,i)):a||!1===n.trailing||(a=setTimeout(u,l)),o}}let qa=(()=>{class t extends Bi{constructor(t,e,n,r){super(t,e,n),this.el=t,this.zone=e,this.cd=n,this.layoutService=r,this.legend=!1,this.nodes=[],this.clusters=[],this.links=[],this.activeEntries=[],this.draggingEnabled=!0,this.panningEnabled=!0,this.panningAxis=Ua.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=Pa.UpperRight,this.activate=new s.vpe,this.deactivate=new s.vpe,this.zoomChange=new s.vpe,this.clickHandler=new s.vpe,this.isMouseMoveCalled=!1,this.graphSubscription=new fo.w,this.subscriptions=[],this.margin=[0,0,0,0],this.results=[],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=t=>t.label}get zoomLevel(){return this.transformationMatrix.a}set zoomLevel(t){this.zoomTo(Number(t))}get panOffsetX(){return this.transformationMatrix.e}set panOffsetX(t){this.panTo(Number(t),null)}get panOffsetY(){return this.transformationMatrix.f}set panOffsetY(t){this.panTo(null,Number(t))}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(t=>{this.panToNodeId(t)})),this.minimapClipPathId=`minimapClip${Ca()}`}ngOnChanges(t){const{layoutSettings:e}=t;this.setLayout(this.layout),e&&this.setLayoutSettings(this.layoutSettings),this.update()}setLayout(t){this.initialized=!1,t||(t="dagre"),"string"==typeof t&&(this.layout=this.layoutService.getLayout(t),this.setLayoutSettings(this.layoutSettings))}setLayoutSettings(t){this.layout&&"string"!=typeof this.layout&&(this.layout.settings=t)}ngOnDestroy(){super.ngOnDestroy();for(const t of this.subscriptions)t.unsubscribe();this.subscriptions=null}ngAfterViewInit(){super.ngAfterViewInit(),setTimeout(()=>this.update())}update(){super.update(),this.curve||(this.curve=Ce.beta(1)),this.zone.run(()=>{this.dims=function({width:t,height:e,margins:n,showXAxis:r=!1,showYAxis:i=!1,xAxisHeight:o=0,yAxisWidth:a=0,showXLabel:s=!1,showYLabel:u=!1,showLegend:c=!1,legendType:l="ordinal",legendPosition:h="right",columns:f=12}){let d=n[3],p=t,g=e-n[0]-n[2];if(c&&"right"===h&&(f-="ordinal"===l?2:1),p=p*f/12,p=p-n[1]-n[3],r&&(g-=5,g-=o,s)&&(g-=30),i&&(p-=5,p-=a,d+=a,d+=10,u)){const t=30;p-=t,d+=t}return p=Math.max(0,p),g=Math.max(0,g),{width:Math.floor(p),height:Math.floor(g),xOffset:Math.floor(d)}}({width:this.width,height:this.height,margins:this.margin,showLegend:this.legend}),this.seriesDomain=this.getSeriesDomain(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.createGraph(),this.updateTransform(),this.initialized=!0})}createGraph(){this.graphSubscription.unsubscribe(),this.graphSubscription=new fo.w;const t=t=>(t.meta||(t.meta={}),t.id||(t.id=Ca()),t.dimension?t.meta.forceDimensions=void 0===t.meta.forceDimensions||t.meta.forceDimensions:(t.dimension={width:this.nodeWidth?this.nodeWidth:30,height:this.nodeHeight?this.nodeHeight:30},t.meta.forceDimensions=!1),t.position={x:0,y:0},t.data=t.data?t.data:{},t);this.graph={nodes:this.nodes.length>0?[...this.nodes].map(t):[],clusters:this.clusters&&this.clusters.length>0?[...this.clusters].map(t):[],edges:this.links.length>0?[...this.links].map(t=>(t.id||(t.id=Ca()),t)):[]},requestAnimationFrame(()=>this.draw())}draw(){if(!this.layout||"string"==typeof this.layout)return;this.applyNodeDimensions();const t=this.layout.run(this.graph),e=t instanceof po.y?t:(0,go.of)(t);this.graphSubscription.add(e.subscribe(t=>{this.graph=t,this.tick()})),0!==this.graph.nodes.length&&e.pipe((0,mo.P)()).subscribe(()=>this.applyNodeDimensions())}tick(){const t=new Set;this.graph.nodes.map(e=>{e.transform=`translate(${e.position.x-e.dimension.width/2||0}, ${e.position.y-e.dimension.height/2||0})`,e.data||(e.data={}),e.data.color=this.colors.getColor(this.groupResultsBy(e)),t.add(e.id)});const e=new Set;(this.graph.clusters||[]).map(t=>{t.transform=`translate(${t.position.x-t.dimension.width/2||0}, ${t.position.y-t.dimension.height/2||0})`,t.data||(t.data={}),t.data.color=this.colors.getColor(this.groupResultsBy(t)),e.add(t.id)}),setTimeout(()=>{this.oldNodes=t,this.oldClusters=e},500);const n=[];for(const r in this.graph.edgeLabels){const t=this.graph.edgeLabels[r],e=r.replace(/[^\w-]*/g,""),i=this.layout&&"string"!=typeof this.layout&&this.layout.settings&&this.layout.settings.multigraph;let o=this._oldLinks.find(i?t=>`${t.source}${t.target}${t.id}`===e:t=>`${t.source}${t.target}`===e);const a=this.graph.edges.find(i?t=>`${t.source}${t.target}${t.id}`===e:t=>`${t.source}${t.target}`===e);o?o.data&&a&&a.data&&JSON.stringify(o.data)!==JSON.stringify(a.data)&&(o.data=a.data):o=a||t,o.oldLine=o.line;const s=t.points,u=this.generateLine(s),c=Object.assign({},o);c.line=u,c.points=s,this.updateMidpointOnEdge(c,s);const l=s[Math.floor(s.length/2)];l&&(c.textTransform=`translate(${l.x||0},${l.y||0})`),c.textAngle=0,c.oldLine||(c.oldLine=c.line),this.calcDominantBaseline(c),n.push(c)}this.graph.edges=n,this.graph.edges&&(this._oldLinks=this.graph.edges.map(t=>{const e=Object.assign({},t);return e.oldLine=t.line,e})),this.updateMinimap(),this.autoZoom&&this.zoomToFit(),this.autoCenter&&this.center(),requestAnimationFrame(()=>this.redrawLines()),this.cd.markForCheck()}getMinimapTransform(){switch(this.miniMapPosition){case Pa.UpperLeft:return"";case Pa.UpperRight:return"translate("+(this.dims.width-this.graphDims.width/this.minimapScaleCoefficient)+",0)";default:return""}}updateGraphDims(){let t=1/0,e=-1/0,n=1/0,r=-1/0;for(let i=0;ie?o.position.x+o.dimension.width:e,r=o.position.y+o.dimension.height>r?o.position.y+o.dimension.height:r}t-=100,n-=100,e+=100,r+=100,this.graphDims.width=e-t,this.graphDims.height=r-n,this.minimapOffsetX=t,this.minimapOffsetY=n}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(t=>{const e=t.nativeElement,n=this.graph.nodes.find(t=>t.id===e.id);if(!n)return;let r;try{if(r=e.getBBox(),!r.width||!r.height)return}catch(i){return}if(n.dimension.height=this.nodeHeight?n.dimension.height&&n.meta.forceDimensions?n.dimension.height:this.nodeHeight:n.dimension.height&&n.meta.forceDimensions?n.dimension.height:r.height,this.nodeMaxHeight&&(n.dimension.height=Math.max(n.dimension.height,this.nodeMaxHeight)),this.nodeMinHeight&&(n.dimension.height=Math.min(n.dimension.height,this.nodeMinHeight)),this.nodeWidth)n.dimension.width=n.dimension.width&&n.meta.forceDimensions?n.dimension.width:this.nodeWidth;else if(e.getElementsByTagName("text").length){let t;try{for(const n of e.getElementsByTagName("text")){const e=n.getBBox();t?(e.width>t.width&&(t.width=e.width),e.height>t.height&&(t.height=e.height)):t=e}}catch(i){return}n.dimension.width=n.dimension.width&&n.meta.forceDimensions?n.dimension.width:t.width+20}else n.dimension.width=n.dimension.width&&n.meta.forceDimensions?n.dimension.width:r.width;this.nodeMaxWidth&&(n.dimension.width=Math.max(n.dimension.width,this.nodeMaxWidth)),this.nodeMinWidth&&(n.dimension.width=Math.min(n.dimension.width,this.nodeMinWidth))})}redrawLines(t=this.animate){this.linkElements.map(e=>{const n=this.graph.edges.find(t=>t.id===e.nativeElement.id);n&&((0,Pe.Z)(e.nativeElement).select(".line").attr("d",n.oldLine).transition().ease(ho).duration(t?500:0).attr("d",n.line),(0,Pe.Z)(this.chartElement.nativeElement).select(`#${n.id}`).attr("d",n.oldTextPath).transition().ease(ho).duration(t?500:0).attr("d",n.textPath),this.updateMidpointOnEdge(n,n.points))})}calcDominantBaseline(t){const e=t.points[0],n=t.points[t.points.length-1];t.oldTextPath=t.textPath,n.xt.x).y(t=>t.y).curve(this.curve)(t)}onZoom(t,e){if(this.enableTrackpadSupport&&!t.ctrlKey)return void this.pan(-1*t.deltaX,-1*t.deltaY);const n=1+("in"===e?this.zoomSpeed:-this.zoomSpeed),r=this.zoomLevel*n;if(!(r<=this.minZoomLevel||r>=this.maxZoomLevel)&&this.enableZoom)if(!0===this.panOnZoom&&t){const e=t.clientX,r=t.clientY,i=this.chart.nativeElement.querySelector("svg"),o=i.querySelector("g.chart"),a=i.createSVGPoint();a.x=e,a.y=r;const s=a.matrixTransform(o.getScreenCTM().inverse());this.pan(s.x,s.y,!0),this.zoom(n),this.pan(-s.x,-s.y,!0)}else this.zoom(n)}pan(t,e,n=!1){const r=n?1:this.zoomLevel;this.transformationMatrix=wo(this.transformationMatrix,bo(t/r,e/r)),this.updateTransform()}panTo(t,e){null==t||isNaN(t)||null==e||isNaN(e)||(this.transformationMatrix=wo(this.transformationMatrix,bo((-this.panOffsetX-t*this.zoomLevel+this.dims.width/2)/this.zoomLevel,(-this.panOffsetY-e*this.zoomLevel+this.dims.height/2)/this.zoomLevel)),this.updateTransform())}zoom(t){this.transformationMatrix=wo(this.transformationMatrix,function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return vo(e)&&(e=t),{a:t,c:0,e:0,b:0,d:e,f:0}}(t,t)),this.zoomChange.emit(this.zoomLevel),this.updateTransform()}zoomTo(t){this.transformationMatrix.a=isNaN(t)?this.transformationMatrix.a:Number(t),this.transformationMatrix.d=isNaN(t)?this.transformationMatrix.d:Number(t),this.zoomChange.emit(this.zoomLevel),this.updateTransform(),this.update()}onDrag(t){if(!this.draggingEnabled)return;const e=this.draggingNode;this.layout&&"string"!=typeof this.layout&&this.layout.onDrag&&this.layout.onDrag(e,t),e.position.x+=t.movementX/this.zoomLevel,e.position.y+=t.movementY/this.zoomLevel,e.transform=`translate(${e.position.x-e.dimension.width/2}, ${e.position.y-e.dimension.height/2})`;for(const n of this.graph.edges)if((n.target===e.id||n.source===e.id||n.target.id===e.id||n.source.id===e.id)&&this.layout&&"string"!=typeof this.layout){const t=this.layout.updateEdge(this.graph,n),e=t instanceof po.y?t:(0,go.of)(t);this.graphSubscription.add(e.subscribe(t=>{this.graph=t,this.redrawEdge(n)}))}this.redrawLines(!1),this.updateMinimap()}redrawEdge(t){const e=this.generateLine(t.points);this.calcDominantBaseline(t),t.oldLine=t.line,t.line=e}updateTransform(){var t;this.transform="matrix("+(t=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e10;return{a:Math.round(t.a*e)/e,b:Math.round(t.b*e)/e,c:Math.round(t.c*e)/e,d:Math.round(t.d*e)/e,e:Math.round(t.e*e)/e,f:Math.round(t.f*e)/e}}(this.transformationMatrix,100)).a+","+t.b+","+t.c+","+t.d+","+t.e+","+t.f+")"}onClick(t){this.select.emit(t)}onActivate(t){this.activeEntries.indexOf(t)>-1||(this.activeEntries=[t,...this.activeEntries],this.activate.emit({value:t,entries:this.activeEntries}))}onDeactivate(t){const e=this.activeEntries.indexOf(t);this.activeEntries.splice(e,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:t,entries:this.activeEntries})}getSeriesDomain(){return this.nodes.map(t=>this.groupResultsBy(t)).reduce((t,e)=>-1!==t.indexOf(e)?t:t.concat([e]),[]).sort()}trackLinkBy(t,e){return e.id}trackNodeBy(t,e){return e.id}setColors(){this.colors=new Xi(this.scheme,"ordinal",this.seriesDomain,this.customColors)}getLegendOptions(){return{scaleType:"ordinal",domain:this.seriesDomain,colors:this.colors}}onMouseMove(t){this.isMouseMoveCalled=!0,(this.isPanning||this.isMinimapPanning)&&this.panningEnabled?this.panWithConstraints(this.panningAxis,t):this.isDragging&&this.draggingEnabled&&this.onDrag(t)}onMouseDown(t){this.isMouseMoveCalled=!1}graphClick(t){this.isMouseMoveCalled||this.clickHandler.emit(t)}onTouchStart(t){this._touchLastX=t.changedTouches[0].clientX,this._touchLastY=t.changedTouches[0].clientY,this.isPanning=!0}onTouchMove(t){if(this.isPanning&&this.panningEnabled){const e=t.changedTouches[0].clientX,n=t.changedTouches[0].clientY,r=e-this._touchLastX,i=n-this._touchLastY;this._touchLastX=e,this._touchLastY=n,this.pan(r,i)}}onTouchEnd(t){this.isPanning=!1}onMouseUp(t){this.isDragging=!1,this.isPanning=!1,this.isMinimapPanning=!1,this.layout&&"string"!=typeof this.layout&&this.layout.onDragEnd&&this.layout.onDragEnd(this.draggingNode,t)}onNodeMouseDown(t,e){this.draggingEnabled&&(this.isDragging=!0,this.draggingNode=e,this.layout&&"string"!=typeof this.layout&&this.layout.onDragStart&&this.layout.onDragStart(e,t))}onMinimapDragMouseDown(){this.isMinimapPanning=!0}onMinimapPanTo(t){this.panTo((t.offsetX-(this.dims.width-(this.graphDims.width+this.minimapOffsetX)/this.minimapScaleCoefficient))*this.minimapScaleCoefficient,(t.offsetY+this.minimapOffsetY/this.minimapScaleCoefficient)*this.minimapScaleCoefficient),this.isMinimapPanning=!0}center(){this.panTo(this.graphDims.width/2,this.graphDims.height/2)}zoomToFit(){let t=Math.min(this.dims.height/this.graphDims.height,this.dims.width/this.graphDims.width,1);tthis.maxZoomLevel&&(t=this.maxZoomLevel),t!==this.zoomLevel&&(this.zoomLevel=t,this.updateTransform(),this.zoomChange.emit(this.zoomLevel))}panToNodeId(t){const e=this.graph.nodes.find(e=>e.id===t);e&&this.panTo(e.position.x,e.position.y)}panWithConstraints(t,e){let n=e.movementX,r=e.movementY;switch(this.isMinimapPanning&&(n=-this.minimapScaleCoefficient*n*this.zoomLevel,r=-this.minimapScaleCoefficient*r*this.zoomLevel),t){case Ua.Horizontal:this.pan(n,0);break;case Ua.Vertical:this.pan(0,r);break;default:this.pan(n,r)}}updateMidpointOnEdge(t,e){if(t&&e)if(e.length%2==1)t.midPoint=e[Math.floor(e.length/2)];else{const n=e[e.length/2],r=e[e.length/2-1];t.midPoint={x:(n.x+r.x)/2,y:(n.y+r.y)/2}}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(s.sBO),s.Y36(Ra))},t.\u0275cmp=s.Xpm({type:t,selectors:[["ngx-graph"]],contentQueries:function(t,e,n){if(1&t&&(s.Suo(n,ra,5),s.Suo(n,ia,5),s.Suo(n,oa,5),s.Suo(n,aa,5),s.Suo(n,sa,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.linkTemplate=t.first),s.iGM(t=s.CRH())&&(e.nodeTemplate=t.first),s.iGM(t=s.CRH())&&(e.clusterTemplate=t.first),s.iGM(t=s.CRH())&&(e.defsTemplate=t.first),s.iGM(t=s.CRH())&&(e.miniMapNodeTemplate=t.first)}},viewQuery:function(t,e){if(1&t&&(s.Gf(ji,7,s.SBq),s.Gf(ua,5),s.Gf(ca,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.chart=t.first),s.iGM(t=s.CRH())&&(e.nodeElements=t),s.iGM(t=s.CRH())&&(e.linkElements=t)}},hostBindings:function(t,e){1&t&&s.NdJ("mousemove",function(t){return e.onMouseMove(t)},!1,s.evT)("mousedown",function(t){return e.onMouseDown(t)},!1,s.evT)("click",function(t){return e.graphClick(t)},!1,s.evT)("touchmove",function(t){return e.onTouchMove(t)},!1,s.evT)("mouseup",function(t){return e.onMouseUp(t)},!1,s.evT)},inputs:{legend:"legend",nodes:"nodes",clusters:"clusters",links:"links",activeEntries:"activeEntries",draggingEnabled:"draggingEnabled",panningEnabled:"panningEnabled",panningAxis:"panningAxis",enableZoom:"enableZoom",zoomSpeed:"zoomSpeed",minZoomLevel:"minZoomLevel",maxZoomLevel:"maxZoomLevel",autoZoom:"autoZoom",panOnZoom:"panOnZoom",animate:"animate",autoCenter:"autoCenter",enableTrackpadSupport:"enableTrackpadSupport",showMiniMap:"showMiniMap",miniMapMaxWidth:"miniMapMaxWidth",miniMapPosition:"miniMapPosition",groupResultsBy:"groupResultsBy",zoomLevel:"zoomLevel",panOffsetX:"panOffsetX",panOffsetY:"panOffsetY",layout:"layout",curve:"curve",nodeHeight:"nodeHeight",nodeMaxHeight:"nodeMaxHeight",nodeMinHeight:"nodeMinHeight",nodeWidth:"nodeWidth",nodeMinWidth:"nodeMinWidth",nodeMaxWidth:"nodeMaxWidth",update$:"update$",center$:"center$",zoomToFit$:"zoomToFit$",panToNode$:"panToNode$",layoutSettings:"layoutSettings",miniMapMaxHeight:"miniMapMaxHeight"},outputs:{activate:"activate",deactivate:"deactivate",zoomChange:"zoomChange",clickHandler:"clickHandler"},features:[s.qOj,s.TTD],ngContentSelectors:Na,decls:5,vars:11,consts:[["mouseWheel","",3,"view","showLegend","legendOptions","legendLabelClick","legendLabelActivate","legendLabelDeactivate","mouseWheelUp","mouseWheelDown"],["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(t,e){1&t&&(s.F$t(),s.TgZ(0,"ngx-charts-chart",0),s.NdJ("legendLabelClick",function(t){return e.onClick(t)})("legendLabelActivate",function(t){return e.onActivate(t)})("legendLabelDeactivate",function(t){return e.onDeactivate(t)})("mouseWheelUp",function(t){return e.onZoom(t,"in")})("mouseWheelDown",function(t){return e.onZoom(t,"out")}),s.YNc(1,xa,12,12,"g",1),s.O4$(),s.TgZ(2,"clipPath"),s._UZ(3,"rect"),s.qZA(),s.YNc(4,Ia,6,15,"g",2),s.qZA()),2&t&&(s.Q6J("view",s.WLB(8,Da,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions),s.xp6(1),s.Q6J("ngIf",e.initialized&&e.graph),s.xp6(1),s.uIk("id",e.minimapClipPathId),s.xp6(1),s.uIk("width",e.graphDims.width/e.minimapScaleCoefficient)("height",e.graphDims.height/e.minimapScaleCoefficient),s.xp6(1),s.Q6J("ngIf",e.showMiniMap))},directives:function(){return[ji,ja,i.O5,i.sg,i.tP]},styles:[".minimap .minimap-background{fill:rgba(0,0,0,.1)}.minimap .minimap-drag{cursor:pointer;fill:rgba(0,0,0,.2);stroke:#fff;stroke-dasharray:2px;stroke-dashoffset:2px;stroke-width:1px}.minimap .minimap-drag.panning{fill:rgba(0,0,0,.3)}.minimap .minimap-nodes{opacity:.5;pointer-events:none}.graph{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;user-select:none}.graph .edge{fill:none;stroke:#666}.graph .edge .edge-label{fill:#251e1e;font-size:12px;stroke:none}.graph .panning-rect{cursor:move;fill:transparent}.graph .node-group.old-node{transition:transform .5s ease-in-out}.graph .node-group .node:focus{outline:none}.graph .cluster rect{opacity:.2}"],encapsulation:2,changeDetection:0}),Me([(500,function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:Fa(n.value,500,undefined)}),this[e]}}}),Oe("design:type",Function),Oe("design:paramtypes",[]),Oe("design:returntype",void 0)],t.prototype,"updateMinimap",null),t})(),ja=(()=>{class t{constructor(){this.mouseWheelUp=new s.vpe,this.mouseWheelDown=new s.vpe}onMouseWheelChrome(t){this.mouseWheelFunc(t)}onMouseWheelFirefox(t){this.mouseWheelFunc(t)}onWheel(t){this.mouseWheelFunc(t)}onMouseWheelIE(t){this.mouseWheelFunc(t)}mouseWheelFunc(t){window.event&&(t=window.event);const e=Math.max(-1,Math.min(1,t.wheelDelta||-t.detail||t.deltaY||t.deltaX)),n=t.wheelDelta?e<0:e>0;(t.wheelDelta?e>0:e<0)?this.mouseWheelUp.emit(t):n&&this.mouseWheelDown.emit(t),t.returnValue=!1,t.preventDefault&&t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mouseWheel",""]],hostBindings:function(t,e){1&t&&s.NdJ("mousewheel",function(t){return e.onMouseWheelChrome(t)})("DOMMouseScroll",function(t){return e.onMouseWheelFirefox(t)})("wheel",function(t){return e.onWheel(t)})("onmousewheel",function(t){return e.onMouseWheelIE(t)})},outputs:{mouseWheelUp:"mouseWheelUp",mouseWheelDown:"mouseWheelDown"}}),t})(),Ya=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Ra],imports:[[Wi]]}),t})(),Ba=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[co],Ya]}),t})();function za(){}function Ga(t){return null==t?za:function(){return this.querySelector(t)}}function Ja(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Va(){return[]}function Ha(t){return null==t?Va:function(){return this.querySelectorAll(t)}}function Qa(t){return function(){return this.matches(t)}}function Wa(t){return function(e){return e.matches(t)}}var $a=Array.prototype.find;function Xa(){return this.firstElementChild}var Ka=Array.prototype.filter;function ts(){return this.children}function es(t){return new Array(t.length)}function ns(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function rs(t){return function(){return t}}function is(t,e,n,r,i,o){for(var a,s=0,u=e.length,c=o.length;se?1:t>=e?0:NaN}ns.prototype={constructor:ns,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var us="http://www.w3.org/1999/xhtml",cs={svg:"http://www.w3.org/2000/svg",xhtml:us,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ls(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),cs.hasOwnProperty(e)?{space:cs[e],local:t}:t}function hs(t){return function(){this.removeAttribute(t)}}function fs(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ds(t,e){return function(){this.setAttribute(t,e)}}function ps(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function gs(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function ms(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function vs(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function ys(t){return function(){this.style.removeProperty(t)}}function _s(t,e,n){return function(){this.style.setProperty(t,e,n)}}function ws(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function bs(t,e){return t.style.getPropertyValue(e)||vs(t).getComputedStyle(t,null).getPropertyValue(e)}function xs(t){return function(){delete this[t]}}function Es(t,e){return function(){this[t]=e}}function Ts(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function As(t){return t.trim().split(/^|\s+/)}function Ss(t){return t.classList||new Is(t)}function Is(t){this._node=t,this._names=As(t.getAttribute("class")||"")}function Ds(t,e){for(var n=Ss(t),r=-1,i=e.length;++r=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}function Qs(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var tu=[null];function eu(t,e){this._groups=t,this._parents=e}function nu(){return new eu([[document.documentElement]],tu)}eu.prototype=nu.prototype={constructor:eu,select:function(t){"function"!=typeof t&&(t=Ga(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i=b&&(b=w+1);!(_=m[b])&&++b=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=ss);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==e?ys:"function"==typeof e?ws:_s)(t,e,null==n?"":n)):bs(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?xs:"function"==typeof e?Ts:Es)(t,e)):this.node()[t]},classed:function(t,e){var n=As(t+"");if(arguments.length<2){for(var r=Ss(this.node()),i=-1,o=n.length;++i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Eu(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Eu(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=fu.exec(t))?new Su(e[1],e[2],e[3],1):(e=du.exec(t))?new Su(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=pu.exec(t))?Eu(e[1],e[2],e[3],e[4]):(e=gu.exec(t))?Eu(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=mu.exec(t))?ku(e[1],e[2]/100,e[3]/100,1):(e=vu.exec(t))?ku(e[1],e[2]/100,e[3]/100,e[4]):yu.hasOwnProperty(t)?xu(yu[t]):"transparent"===t?new Su(NaN,NaN,NaN,0):null}function xu(t){return new Su(t>>16&255,t>>8&255,255&t,1)}function Eu(t,e,n,r){return r<=0&&(t=e=n=NaN),new Su(t,e,n,r)}function Tu(t){return t instanceof au||(t=bu(t)),t?new Su((t=t.rgb()).r,t.g,t.b,t.opacity):new Su}function Au(t,e,n,r){return 1===arguments.length?Tu(t):new Su(t,e,n,null==r?1:r)}function Su(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Iu(){return"#"+Nu(this.r)+Nu(this.g)+Nu(this.b)}function Du(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function Nu(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function ku(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Zu(t,e,n,r)}function Cu(t){if(t instanceof Zu)return new Zu(t.h,t.s,t.l,t.opacity);if(t instanceof au||(t=bu(t)),!t)return new Zu;if(t instanceof Zu)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n0&&u<1?0:a,new Zu(a,s,u,t.opacity)}function Zu(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Mu(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Ou(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}iu(au,bu,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:_u,formatHex:_u,formatHsl:function(){return Cu(this).formatHsl()},formatRgb:wu,toString:wu}),iu(Su,Au,ou(au,{brighter:function(t){return t=null==t?su:Math.pow(su,t),new Su(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Su(this.r*t,this.g*t,this.b*t,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:Iu,formatHex:Iu,formatRgb:Du,toString:Du})),iu(Zu,function(t,e,n,r){return 1===arguments.length?Cu(t):new Zu(t,e,n,null==r?1:r)},ou(au,{brighter:function(t){return t=null==t?su:Math.pow(su,t),new Zu(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Zu(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Su(Mu(t>=240?t-240:t+120,i,r),Mu(t,i,r),Mu(t<120?t+240:t-120,i,r),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 t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Lu=t=>()=>t;function Ru(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Lu(isNaN(t)?e:t)}var Uu=function t(e){var n=function(t){return 1==(t=+t)?Ru:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Lu(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=Au(t)).r,(e=Au(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=Ru(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function Pu(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1];return Ou((n-r/e)*e,r>0?t[r-1]:2*i-o,i,o,ro&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:Fu(n,r)})),o=ju.lastIndex;return o0)throw new Error("too late; already scheduled");return n}function Hu(t,e){var n=Qu(t,e);if(n.state>3)throw new Error("too late; already running");return n}function Qu(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var Wu,$u=180/Math.PI,Xu={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ku(t,e,n,r,i,o){var a,s,u;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),t*r180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Fu(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,s,u),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Fu(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,s,u),function(t,e,n,r,o,a){if(t!==n||e!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:Fu(t,n)},{i:s-2,x:Fu(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,u),o=a=null,function(t){for(var e,n=-1,r=u.length;++n=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?Vu:Hu;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var Ec=ru.prototype.constructor;function Tc(t){return function(){this.style.removeProperty(t)}}function Ac(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Sc(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&Ac(t,o,n)),r}return o._value=e,o}function Ic(t){return function(e){this.textContent=t.call(this,e)}}function Dc(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Ic(r)),e}return r._value=t,r}var Nc=0;function kc(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Cc(){return++Nc}var Zc=ru.prototype;kc.prototype=(function(t){return ru().transition(t)}).prototype={constructor:kc,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Ga(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}}(this,t)})},ru.prototype.transition=function(t){var e,n;t instanceof kc?(e=t._id,t=t._name):(e=Cc(),(n=Mc).time=(0,Go.zO)(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Bc(t){if(!(e=Yc.exec(t)))throw new Error("invalid format: "+t);var e;return new zc({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function zc(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}Bc.prototype=zc.prototype,zc.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};var Gc,Jc=Array.prototype.map;function Vc(t,e,n,r,i){for(var o,a=t.children,s=-1,u=a.length,c=t.value&&(r-e)/t.value;++s=0;)e+=n[r].value;else e=1;t.value=e}function Wc(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=Xc)):void 0===e&&(e=$c);for(var n,r,i,o,a,s=new el(t),u=[s];n=u.pop();)if((i=e(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)u.push(r=i[o]=new el(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(tl)}function $c(t){return t.children}function Xc(t){return Array.isArray(t)?t[1]:null}function Kc(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function tl(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function el(t){this.data=t,this.depth=this.height=0,this.parent=null}void 0===(Gc={thousands:",",grouping:[3],currency:["$",""]}).grouping||void 0===Gc.thousands||Jc.call(Gc.grouping,Number),void 0===Gc.numerals||Jc.call(Gc.numerals,String),function t(e){function n(t,n,r,i,o){!function(t,e,n,r,i,o){for(var a,s,u,c,l,h,f,d,p,g,m,v=[],y=e.children,_=0,w=0,b=y.length,x=e.value;_f&&(f=s),m=l*l*g,(d=Math.max(f/m,m/h))>p){l-=s;break}p=d}v.push(a={value:l,dice:u1?e:1)},n}((1+Math.sqrt(5))/2),el.prototype=Wc.prototype={constructor:el,count:function(){return this.eachAfter(Qc)},each:function(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this},eachAfter:function(t,e){for(var n,r,i,o=this,a=[o],s=[],u=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r=0;--r)o.push(n[r]);return this},find:function(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r},sum:function(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)r.push(e=e.parent);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e},copy:function(){return Wc(this).eachBefore(Kc)},[Symbol.iterator]:function*(){var t,e,n,r,i=this,o=[i];do{for(t=o.reverse(),o=[];i=t.pop();)if(yield i,e=i.children)for(n=0,r=e.length;n{class t{constructor(t,e,n){this.applicationRef=t,this.componentFactoryResolver=e,this.injector=n}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.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(t){this._container=t}getComponentRootNode(t){return t.element?t.element.nativeElement:t.hostView&&t.hostView.rootNodes.length>0?t.hostView.rootNodes[0]:t.location.nativeElement}getRootViewContainerNode(t){return this.getComponentRootNode(t)}projectComponentBindings(t,e){if(e){if(void 0!==e.inputs){const n=Object.getOwnPropertyNames(e.inputs);for(const r of n)t.instance[r]=e.inputs[r]}if(void 0!==e.outputs){const n=Object.getOwnPropertyNames(e.outputs);for(const r of n)t.instance[r]=e.outputs[r]}}return t}appendComponent(t,e={},n){n||(n=this.getRootViewContainer());const r=this.getComponentRootNode(n),i=new Re.F0(r,this.componentFactoryResolver,this.applicationRef,this.injector),o=new Re.C5(t),a=i.attach(o);return this.projectComponentBindings(a,e),a}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.z2F),s.LFG(s._Vd),s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function ul(t,e,n){let r,i,o;n=n||{};let a=null,s=0;function u(){s=!1===n.leading?0:+new Date,a=null,o=t.apply(r,i)}return function(){const c=+new Date;s||!1!==n.leading||(s=c);const l=e-(c-s);return r=this,i=arguments,l<=0?(clearTimeout(a),a=null,s=c,o=t.apply(r,i)):a||!1===n.trailing||(a=setTimeout(u,l)),o}}var cl=function(t){return t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right",t}({});function ll(t,e,n){return"top"===n?t.top-7:"bottom"===n?t.top+t.height-e.height+7:"center"===n?t.top+t.height/2-e.height/2:void 0}function hl(t,e,n){return"left"===n?t.left-7:"right"===n?t.left+t.width-e.width+7:"center"===n?t.left+t.width/2-e.width/2:void 0}class fl{static calculateVerticalAlignment(t,e,n){let r=ll(t,e,n);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r}static calculateVerticalCaret(t,e,n,r){let i;"top"===r&&(i=t.height/2-n.height/2+7),"bottom"===r&&(i=e.height-t.height/2-n.height/2-7),"center"===r&&(i=e.height/2-n.height/2);const o=ll(t,e,r);return o+e.height>window.innerHeight&&(i+=o+e.height-window.innerHeight),i}static calculateHorizontalAlignment(t,e,n){let r=hl(t,e,n);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r}static calculateHorizontalCaret(t,e,n,r){let i;"left"===r&&(i=t.width/2-n.width/2+7),"right"===r&&(i=e.width-t.width/2-n.width/2-7),"center"===r&&(i=e.width/2-n.width/2);const o=hl(t,e,r);return o+e.width>window.innerWidth&&(i+=o+e.width-window.innerWidth),i}static shouldFlip(t,e,n,r){let i=!1;return"right"===n&&t.left+t.width+e.width+r>window.innerWidth&&(i=!0),"left"===n&&t.left-e.width-r<0&&(i=!0),"top"===n&&t.top-e.height-r<0&&(i=!0),"bottom"===n&&t.top+t.height+e.height+r>window.innerHeight&&(i=!0),i}static positionCaret(t,e,n,r,i){let o=0,a=0;return t===cl.right?(a=-7,o=fl.calculateVerticalCaret(n,e,r,i)):t===cl.left?(a=e.width,o=fl.calculateVerticalCaret(n,e,r,i)):t===cl.top?(o=e.height,a=fl.calculateHorizontalCaret(n,e,r,i)):t===cl.bottom&&(o=-7,a=fl.calculateHorizontalCaret(n,e,r,i)),{top:o,left:a}}static positionContent(t,e,n,r,i){let o=0,a=0;return t===cl.right?(a=n.left+n.width+r,o=fl.calculateVerticalAlignment(n,e,i)):t===cl.left?(a=n.left-e.width-r,o=fl.calculateVerticalAlignment(n,e,i)):t===cl.top?(o=n.top-e.height-r,a=fl.calculateHorizontalAlignment(n,e,i)):t===cl.bottom&&(o=n.top+n.height+r,a=fl.calculateHorizontalAlignment(n,e,i)),{top:o,left:a}}static determinePlacement(t,e,n,r){if(fl.shouldFlip(n,e,t,r)){if(t===cl.right)return cl.left;if(t===cl.left)return cl.right;if(t===cl.top)return cl.bottom;if(t===cl.bottom)return cl.top}return t}}let dl=(()=>{class t{constructor(t,e,n){this.element=t,this.renderer=e,this.platformId=n}get cssClasses(){let t="ngx-charts-tooltip-content";return t+=` position-${this.placement}`,t+=` type-${this.type}`,t+=` ${this.cssClass}`,t}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,i.NF)(this.platformId))return;const t=this.element.nativeElement,e=this.host.nativeElement.getBoundingClientRect();if(!e.height&&!e.width)return;const n=t.getBoundingClientRect();this.checkFlip(e,n),this.positionContent(t,e,n),this.showCaret&&this.positionCaret(e,n),setTimeout(()=>this.renderer.addClass(t,"animate"),1)}positionContent(t,e,n){const{top:r,left:i}=fl.positionContent(this.placement,n,e,this.spacing,this.alignment);this.renderer.setStyle(t,"top",`${r}px`),this.renderer.setStyle(t,"left",`${i}px`)}positionCaret(t,e){const n=this.caretElm.nativeElement,r=n.getBoundingClientRect(),{top:i,left:o}=fl.positionCaret(this.placement,e,t,r,this.alignment);this.renderer.setStyle(n,"top",`${i}px`),this.renderer.setStyle(n,"left",`${o}px`)}checkFlip(t,e){this.placement=fl.determinePlacement(this.placement,e,t,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(s.Lbi))},t.\u0275cmp=s.Xpm({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(t,e){if(1&t&&s.Gf(nl,5),2&t){let t;s.iGM(t=s.CRH())&&(e.caretElm=t.first)}},hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("resize",function(){return e.onWindowResize()},!1,s.Jf7),2&t&&s.Tol(e.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",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(t,e){1&t&&(s.TgZ(0,"div"),s._UZ(1,"span",0,1),s.TgZ(3,"div",2),s.YNc(4,ol,2,4,"span",3),s.YNc(5,al,1,1,"span",4),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Gre("tooltip-caret position-",e.placement,""),s.Q6J("hidden",!e.showCaret),s.xp6(3),s.Q6J("ngIf",!e.title),s.xp6(1),s.Q6J("ngIf",e.title))},directives:[i.O5,i.tP],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.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{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);o>3&&a&&Object.defineProperty(e,n,a)}([(100,function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:ul(n.value,100,undefined)}),this[e]}}})],t.prototype,"onWindowResize",null),t})(),pl=(()=>{class t extends class{constructor(t){this.injectionService=t,this.defaults={},this.components=new Map}getByType(t=this.type){return this.components.get(t)}create(t){return this.createByType(this.type,t)}createByType(t,e){e=this.assignDefaults(e);const n=this.injectComponent(t,e);return this.register(t,n),n}destroy(t){const e=this.components.get(t.componentType);if(e&&e.length){const n=e.indexOf(t);n>-1&&(e[n].destroy(),e.splice(n,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(t){const e=this.components.get(t);if(e&&e.length){let t=e.length-1;for(;t>=0;)this.destroy(e[t--])}}injectComponent(t,e){return this.injectionService.appendComponent(t,e)}assignDefaults(t){const e=Object.assign({},this.defaults.inputs),n=Object.assign({},this.defaults.outputs);return t.inputs||t.outputs||(t={inputs:t}),e&&(t.inputs=Object.assign(Object.assign({},e),t.inputs)),n&&(t.outputs=Object.assign(Object.assign({},n),t.outputs)),t}register(t,e){this.components.has(t)||this.components.set(t,[]),this.components.get(t).push(e)}}{constructor(t){super(t),this.type=dl}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(sl))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),gl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[i.ez]]}),t})();var ml=function(t){return t[t.popover="popover"]="popover",t[t.tooltip="tooltip"]="tooltip",t}({}),vl=function(t){return t[t.left="left"]="left",t[t.center="center"]="center",t[t.right="right"]="right",t}({}),yl=function(t){return t[t.all="all"]="all",t[t.focus="focus"]="focus",t[t.mouseover="mouseover"]="mouseover",t}({});let _l,wl=(()=>{class t{constructor(t,e,n){this.tooltipService=t,this.viewContainerRef=e,this.renderer=n,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=cl.top,this.tooltipAlignment=vl.center,this.tooltipType=ml.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=yl.all,this.tooltipImmediateExit=!1,this.show=new s.vpe,this.hide=new s.vpe}get listensForFocus(){return this.tooltipShowEvent===yl.all||this.tooltipShowEvent===yl.focus}get listensForHover(){return this.tooltipShowEvent===yl.all||this.tooltipShowEvent===yl.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(t){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(t))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(t){if(this.component||this.tooltipDisabled)return;const e=t?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?300:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const t=this.createBoundOptions();this.component=this.tooltipService.create(t),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},e)}addHideListeners(t){this.mouseEnterContentEvent=this.renderer.listen(t,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(t,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",e=>{t.contains(e.target)||this.hideTooltip()}))}hideTooltip(t=!1){if(!this.component)return;const e=()=>{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),t?e():this.timeout=setTimeout(e,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 t.\u0275fac=function(e){return new(e||t)(s.Y36(pl),s.Y36(s.s_b),s.Y36(s.Qsj))},t.\u0275dir=s.lG2({type:t,selectors:[["","ngx-tooltip",""]],hostBindings:function(t,e){1&t&&s.NdJ("focusin",function(){return e.onFocus()})("blur",function(){return e.onBlur()})("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(t){return e.onMouseLeave(t.target)})("click",function(){return e.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",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),t})(),bl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[sl,pl],imports:[[i.ez]]}),t})();"undefined"!=typeof window?_l=window:"undefined"!=typeof global&&(_l=global);let xl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[i.ez,gl,bl],i.ez,gl,bl]}),t})(),El=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl]]}),t})(),Tl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl]]}),t})(),Al=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl]]}),t})(),Sl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl]]}),t})(),Il=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl]]}),t})();Math;let Dl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl]]}),t})(),Nl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl,Dl,Il]]}),t})(),kl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl]]}),t})(),Cl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl]]}),t})(),Zl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl,Dl,Tl]]}),t})(),Ml=(()=>{class t{constructor(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[xl,El,Tl,Al,Sl,Il,Nl,kl,Dl,Cl,Zl]}),t})();function Ol(t,e){1&t&&(s.TgZ(0,"div"),s._UZ(1,"mat-spinner",3),s.qZA())}function Ll(t,e){if(1&t&&(s.TgZ(0,"span"),s._uU(1),s.ALo(2,"translate"),s.TgZ(3,"strong"),s._uU(4),s.qZA(),s.qZA()),2&t){const t=s.oxw(3);s.xp6(1),s.hij(" ",s.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_3")," "),s.xp6(3),s.Oqu(t.service)}}function Rl(t,e){1&t&&(s.O4$(),s.TgZ(0,"marker",10),s._UZ(1,"path",11),s.qZA())}function Ul(t,e){if(1&t&&(s.O4$(),s.TgZ(0,"g",12),s._UZ(1,"rect"),s.TgZ(2,"text",13),s._uU(3),s.qZA(),s.qZA()),2&t){const t=e.$implicit;s.Q6J("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",t.tooltip),s.xp6(1),s.uIk("width",t.dimension.width)("height",t.dimension.height)("fill",t.color),s.xp6(1),s.uIk("x",10)("y",t.dimension.height/2),s.xp6(1),s.hij(" ",t.label," ")}}function Pl(t,e){if(1&t&&(s.O4$(),s.TgZ(0,"g",14),s._UZ(1,"path",15),s.TgZ(2,"text",16),s.TgZ(3,"textPath",17),s._uU(4),s.qZA(),s.qZA(),s.qZA()),2&t){const t=e.$implicit;s.xp6(3),s.uIk("href","#"+t.id),s.xp6(1),s.hij(" ",t.label," ")}}const Fl=function(t,e){return[t,e]};function ql(t,e){if(1&t&&(s.TgZ(0,"div"),s._uU(1),s.ALo(2,"translate"),s.TgZ(3,"strong"),s._uU(4),s.qZA(),s._uU(5),s.ALo(6,"translate"),s.TgZ(7,"strong"),s._uU(8),s.qZA(),s.YNc(9,Ll,5,4,"span",4),s.TgZ(10,"div",5),s.TgZ(11,"ngx-graph",6),s.YNc(12,Rl,2,0,"ng-template",null,7,s.W1O),s.YNc(14,Ul,4,9,"ng-template",null,8,s.W1O),s.YNc(16,Pl,5,2,"ng-template",null,9,s.W1O),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.hij(" ",s.lcZ(2,12,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_1")," "),s.xp6(3),s.AsE("",t.user.firstName," ",t.user.lastName,""),s.xp6(1),s.hij(" ",s.lcZ(6,14,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_2")," "),s.xp6(3),s.Oqu(t.destination),s.xp6(1),s.Q6J("ngIf","noService"!==t.service),s.xp6(2),s.Q6J("links",t.hierarchialGraph.links)("nodes",t.hierarchialGraph.nodes)("curve",t.curve)("draggingEnabled",!1)("zoomToFit$",t.zoomToFit$)("view",s.WLB(16,Fl,t.innerWidth,t.innerHeight))}}function jl(t,e){if(1&t&&(s.TgZ(0,"span"),s._uU(1),s.ALo(2,"translate"),s.TgZ(3,"strong"),s._uU(4),s.qZA(),s.qZA()),2&t){const t=s.oxw(3);s.xp6(1),s.hij(" ",s.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_3")," "),s.xp6(3),s.Oqu(t.service)}}function Yl(t,e){if(1&t&&(s._uU(0),s.ALo(1,"translate"),s.TgZ(2,"strong"),s._uU(3),s.qZA(),s._uU(4),s.ALo(5,"translate"),s.TgZ(6,"strong"),s._uU(7),s.qZA(),s.YNc(8,jl,5,4,"span",4),s._uU(9),s.ALo(10,"translate")),2&t){const t=s.oxw(2);s.hij(" ",s.lcZ(1,7,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_1")," "),s.xp6(3),s.AsE("",t.user.firstName," ",t.user.lastName,""),s.xp6(1),s.hij(" ",s.lcZ(5,9,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_2")," "),s.xp6(3),s.Oqu(t.destination),s.xp6(1),s.Q6J("ngIf","noService"!==t.service),s.xp6(1),s.hij(" ",s.lcZ(10,11,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_4")," ")}}function Bl(t,e){if(1&t&&(s.YNc(0,ql,18,19,"div",1),s.YNc(1,Yl,11,13,"ng-template",null,2,s.W1O)),2&t){const t=s.MAs(2),e=s.oxw();s.Q6J("ngIf",e.isConnected)("ngIfElse",t)}}let zl=(()=>{class t{constructor(t,e,n,r,i,o,a,s,u){this.route=t,this.facilityManager=e,this.userService=n,this.membersService=r,this.serviceService=i,this.resourceManager=o,this.groupService=a,this.voService=s,this.translate=u,this.idCounter=0,this.isConnected=!1,this.loading=!0,this.hierarchialGraph={nodes:[],links:[]},this.curve=Ce,this.zoomToFit$=new Ze.xQ}ngOnInit(){this.innerWidth=window.innerWidth<600?window.innerWidth:window.innerWidth-420,this.innerHeight=window.innerHeight,this.getLocalizedNames(),this.route.queryParams.subscribe(t=>{console.log(t),this.destination=t.destination,this.service=t.service,this.userService.getUserById(t.user).subscribe(t=>{this.user=t,this.facilityManager.getFacilitiesByDestination(this.destination).subscribe(t=>{this.facilities=t,this.membersService.getMembersByUser(this.user.id).subscribe(t=>{if(this.membership=t,0===this.membership.length||0===this.facilities.length)return this.loading=!1,void(this.isConnected=!1);this.showGraph()})})})})}showGraph(){const t=""+this.id();this.hierarchialGraph.nodes=[...this.hierarchialGraph.nodes,{id:t,label:this.user.firstName+" "+this.user.lastName,tooltip:this.localUser,color:"#FFFFCC",tip:"user: "+this.user.id}];const e=""+this.id(),n="destination no id";this.hierarchialGraph.nodes="noService"===this.service?[...this.hierarchialGraph.nodes,{id:e,label:this.destination,tooltip:this.localDestination+": "+this.destination,color:"#E0E0E0",tip:n}]:[...this.hierarchialGraph.nodes,{id:e,label:this.service+": "+this.destination,tooltip:this.localService+": "+this.service+", "+this.localDestination+": "+this.destination,color:"#E0E0E0",tip:n}];for(const r of this.facilities)this.serviceService.getAllRichDestinationsForFacility(r.id).subscribe(t=>{this.connectToService(r,t),this.delay(2e3).then(()=>{this.zoomToFit$.next(!0),this.loading=!1})})}connectToService(t,e){this.isConnectedToService(e)&&this.facilityManager.getAssignedResourcesForFacility(t.id).subscribe(e=>{for(let n=0;n{0!==r.length&&this.groupService.getMemberGroups(e.id).subscribe(e=>{const i=this.findConnectedGroups(r,e);if(0!==i.length)for(const r of i)this.connectToResource(t,r,n)})})}connectToResource(t,e,n){this.resourceManager.getAssignedResourcesWithGroup(e.id).subscribe(r=>{const i=this.findConnectedResources(r,n);for(const n of i)this.resourceManager.getAssignedServicesToResource(n.id).subscribe(r=>{this.haveService(r)&&(this.isConnected=!0,this.addNodesToGraph(e.voId,e,n,t))})})}addNodesToGraph(t,e,n,r){if(-1===this.findEntityInGraph("Facility: "+r.id)){const t=""+this.id();this.hierarchialGraph.nodes=[...this.hierarchialGraph.nodes,{id:t,label:this.localFacility+": "+r.name,tooltip:r.description,color:"#FFCCFF",tip:"Facility: "+r.id}];const e={source:t,target:this.hierarchialGraph.nodes[this.findEntityInGraph("destination no id")].id};this.hierarchialGraph.links=[...this.hierarchialGraph.links,e]}this.voService.getVoById(t).subscribe(t=>{if(-1===this.findEntityInGraph("Vo: "+t.id)){const e=""+this.id();this.hierarchialGraph.nodes=[...this.hierarchialGraph.nodes,{id:e,label:this.localVo+": "+t.shortName,tooltip:t.name,color:"#E5FFCC",tip:"Vo: "+t.id}];const n={source:this.hierarchialGraph.nodes[this.findEntityInGraph("user: "+this.user.id)].id,target:e};this.hierarchialGraph.links=[...this.hierarchialGraph.links,n]}if(-1===this.findEntityInGraph("Group: "+e.id)){const n=""+this.id();this.hierarchialGraph.nodes=[...this.hierarchialGraph.nodes,{id:n,label:this.localGroup+": "+e.name,tooltip:e.description,color:"#CCE5FF",tip:"Group: "+e.id}];const r={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Vo: "+t.id)].id,target:n};this.hierarchialGraph.links=[...this.hierarchialGraph.links,r]}const i=this.findEntityInGraph("Resource: "+n.id);if(-1!==i){const t={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Group: "+e.id)].id,target:this.hierarchialGraph.nodes[i].id};this.hierarchialGraph.links=[...this.hierarchialGraph.links,t]}else{const t=""+this.id();this.hierarchialGraph.nodes=[...this.hierarchialGraph.nodes,{id:t,label:this.localResource+": "+n.name,tooltip:n.description,color:"#FFCCCC",tip:"Resource: "+n.id}];const i={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Group: "+e.id)].id,target:t};this.hierarchialGraph.links=[...this.hierarchialGraph.links,i];const o={source:t,target:this.hierarchialGraph.nodes[this.findEntityInGraph("Facility: "+r.id)].id};this.hierarchialGraph.links=[...this.hierarchialGraph.links,o]}})}haveService(t){if("noService"===this.service)return!0;for(const e of t)if(this.service===e.name)return!0;return!1}findConnectedGroups(t,e){const n=[];for(let r=0;rsetTimeout(()=>e(),t)).then(()=>console.log("fired"))})}onResize(){this.innerWidth=window.innerWidth<600?window.innerWidth:window.innerWidth-420,this.innerHeight=window.innerHeight}getLocalizedNames(){this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.USER").subscribe(t=>{this.localUser=t}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.VO").subscribe(t=>{this.localVo=t}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.GROUP").subscribe(t=>{this.localGroup=t}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.RESOURCE").subscribe(t=>{this.localResource=t}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.FACILITY").subscribe(t=>{this.localFacility=t}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.SERVICE").subscribe(t=>{this.localService=t}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.DESTINATION").subscribe(t=>{this.localDestination=t})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(o.gz),s.Y36(b.IQ),s.Y36(b.Fv),s.Y36(b.uq),s.Y36(b.KK),s.Y36(b.xk),s.Y36(b.ff),s.Y36(b.YF),s.Y36(f.sK))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-user-destination-graph"]],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("resize",function(t){return e.onResize(t)},!1,s.Jf7),2&t&&s.ekj("router-component",e.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","curve","draggingEnabled","zoomToFit$","view"],["defsTemplate",""],["nodeTemplate",""],["linkTemplate",""],["id","arrow","viewBox","0 -5 10 10","refX","8","refY","0","markerWidth","4","markerHeight","4","orient","auto"],["d","M0,-5L10,0L0,5",1,"arrow-head"],["ngx-tooltip","",1,"node",3,"tooltipPlacement","tooltipType","tooltipTitle"],["alignment-baseline","central"],[1,"edge"],["stroke-width","2","marker-end","url(#arrow)",1,"line"],["text-anchor","end",1,"edge-label"],["startOffset","60%",2,"fill","#000"]],template:function(t,e){if(1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.YNc(3,Ol,2,0,"div",1),s.YNc(4,Bl,3,2,"ng-template",null,2,s.W1O)),2&t){const t=s.MAs(5);s.xp6(1),s.hij(" ",s.lcZ(2,3,"ADMIN.VISUALIZER.USER_DESTINATION.TITLE"),"\n"),s.xp6(2),s.Q6J("ngIf",e.loading)("ngIfElse",t)}},directives:[i.O5,E.$g,qa,wl],pipes:[f.X$],styles:[""]}),t})();var Gl=n(71313),Jl=n(2898),Vl=n(22196);function Hl(t,e){1&t&&s._UZ(0,"mat-spinner",3)}function Ql(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",12),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).editUser()}),s.TgZ(1,"mat-icon"),s._uU(2,"edit"),s.qZA(),s.qZA()}}const Wl=function(){return{color:"black"}},$l=function(t){return["/admin/users",t]};function Xl(t,e){if(1&t&&(s.TgZ(0,"div",4),s._UZ(1,"mat-icon",5),s.ALo(2,"translate"),s.TgZ(3,"div",6),s.TgZ(4,"div",7),s.TgZ(5,"a",8),s._uU(6),s.ALo(7,"userFullName"),s.qZA(),s.TgZ(8,"span",9),s._uU(9),s.qZA(),s.YNc(10,Ql,3,0,"button",10),s.qZA(),s.TgZ(11,"div"),s._uU(12),s.ALo(13,"translate"),s.qZA(),s.TgZ(14,"span",11),s._uU(15),s.ALo(16,"translate"),s.ALo(17,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.s9C("matTooltip",s.lcZ(2,12,"ADMIN_USER.ENTITY")),s.Q6J("ngStyle",s.DdM(22,Wl))("svgIcon",t.svgIcon),s.xp6(4),s.Q6J("routerLink",s.VKq(23,$l,t.user.id)),s.xp6(1),s.hij(" ",s.lcZ(7,14,t.user)," "),s.xp6(3),s.hij(" \xa0#",t.user.id," "),s.xp6(1),s.Q6J("ngIf",t.authResolver.isPerunAdmin()),s.xp6(2),s.AsE("",s.lcZ(13,16,"ADMIN_USER.UUID"),": ",t.user.uuid,""),s.xp6(3),s.lnq(" ",s.lcZ(16,18,"ADMIN_USER.ENTITY"),", ",s.lcZ(17,20,"ADMIN_USER.USER_TYPE"),": ",t.getUserType()," ")}}let Kl=(()=>{class t{constructor(t,e,n,r,i,o,a){this.route=t,this.usersService=e,this.sideMenuService=n,this.sideMenuItemService=r,this.dialog=i,this.authResolver=o,this.entityStorageService=a,this.loading=!1,this.svgIcon="perun-user-dark"}ngOnInit(){this.loading=!0,this.route.params.subscribe(t=>{const e=t.userId;this.entityStorageService.setEntity({id:Number(e),beanName:"User"}),this.path=`/admin/users/${e}`,this.regex="/admin/users/\\d+",this.usersService.getUserById(e).subscribe(t=>{this.user=t,this.user.serviceUser&&(this.svgIcon="perun-service-identity");const e=this.sideMenuItemService.parseUser(t,this.path,this.regex);this.sideMenuService.setAdminItems([e]),this.loading=!1},()=>this.loading=!1)})}editUser(){const t=(0,tt.kZ)();t.width="450px",t.data={theme:"admin-theme",user:this.user},this.dialog.open(Jl.x,t).afterClosed().subscribe(t=>{t&&this.usersService.getUserById(this.user.id).subscribe(t=>{this.user=t})})}getUserType(){return this.user.serviceUser?"Service":"Person"}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(o.gz),s.Y36(b.Fv),s.Y36(u.D),s.Y36(a.V),s.Y36(y.uw),s.Y36(w.x4),s.Y36(w.fb))},t.\u0275cmp=s.Xpm({type:t,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,"matTooltip","ngStyle","svgIcon"],[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"],["mat-icon-button","",3,"click"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s._UZ(1,"perun-web-apps-back-button"),s.YNc(2,Hl,1,0,"mat-spinner",1),s.YNc(3,Xl,18,25,"div",2),s._UZ(4,"app-animated-router-outlet"),s.qZA()),2&t&&(s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading&&void 0!==e.user))},directives:[c.W,i.O5,h.A,E.$g,l.Hw,M.gM,i.PC,o.yS,x.lW],pipes:[f.X$,Vl.d],styles:[""]}),t})();var th=n(71956),eh=n(15879),nh=n(31612),rh=n(95690),ih=n(4359);function oh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",5),s.NdJ("click",function(){return s.CHM(t),s.oxw().onLoad()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"ADMIN.EXT_SOURCES.LOAD")," "))}function ah(t,e){1&t&&s._UZ(0,"mat-spinner",6)}const sh=function(){return["id","name","type"]};function uh(t,e){if(1&t&&s._UZ(0,"app-ext-sources-list",7),2&t){const t=s.oxw();s.Q6J("extSources",t.extSources)("filterValue",t.filterValue)("displayedColumns",s.DdM(4,sh))("tableId",t.tableId)}}let ch=(()=>{class t{constructor(t,e,n,r){this.extSourceService=t,this.notificator=e,this.translate=n,this.authResolver=r,this.extSources=[],this.filterValue="",this.loading=!1,this.tableId=et.qy,this.translate.get("ADMIN.EXT_SOURCES.LOAD_SUCCESS").subscribe(t=>this.loadSuccess=t)}ngOnInit(){this.refreshTable()}applyFilter(t){this.filterValue=t}onLoad(){this.extSourceService.loadExtSourcesDefinitions().subscribe(()=>{this.notificator.showSuccess(this.loadSuccess),this.refreshTable()})}refreshTable(){this.loading=!0,this.extSourceService.getExtSources().subscribe(t=>{this.extSources=t,this.loading=!1})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.KG),s.Y36(w.V6),s.Y36(f.sK),s.Y36(w.x4))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-admin-ext-sources"]],decls:8,vars:7,consts:[[1,"page-subtitle"],["mat-stroked-button","","class","mr-2",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(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,oh,3,3,"button",1),s.TgZ(5,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.YNc(6,ah,1,0,"mat-spinner",3),s.YNc(7,uh,1,5,"app-ext-sources-list",4),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,5,"ADMIN.EXT_SOURCES.TITLE")),s.xp6(2),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("placeholder","ADMIN.EXT_SOURCES.SEARCH"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[i.O5,at.L,x.lW,E.$g,ih.D],pipes:[f.X$],styles:[""]}),t})();var lh=n(7233),hh=n(52384),fh=n(56238),dh=n(79996);function ph(t,e){1&t&&s._UZ(0,"mat-spinner",7)}function gh(t,e){if(1&t&&(s.TgZ(0,"mat-option",14),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.hij(" ",t.name," ")}}function mh(t,e){if(1&t&&(s.TgZ(0,"div"),s.TgZ(1,"mat-form-field",8),s._UZ(2,"input",9),s.ALo(3,"translate"),s.TgZ(4,"mat-error"),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA(),s.TgZ(7,"mat-form-field",8),s._UZ(8,"input",10),s.ALo(9,"translate"),s.TgZ(10,"mat-error"),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.TgZ(13,"mat-autocomplete",11,12),s.YNc(15,gh,2,2,"mat-option",13),s.ALo(16,"async"),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.MAs(14),e=s.oxw();s.xp6(2),s.s9C("placeholder",s.lcZ(3,9,"DIALOGS.ADD_USER_EXT_SOURCE.LOGIN")),s.Q6J("formControl",e.loginControl),s.xp6(3),s.hij(" ",s.lcZ(6,11,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_LOGIN")," "),s.xp6(3),s.s9C("placeholder",s.lcZ(9,13,"DIALOGS.ADD_USER_EXT_SOURCE.EXT_SOURCE")),s.Q6J("formControl",e.extSourcesControl)("matAutocomplete",t),s.xp6(3),s.hij(" ",s.lcZ(12,15,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_EXT_SOURCE")," "),s.xp6(2),s.Q6J("displayWith",e.displayFn),s.xp6(2),s.Q6J("ngForOf",s.lcZ(16,17,e.filteredExtSources))}}let vh=(()=>{class t{constructor(t,e,n,r,i,o){this.dialogRef=t,this.data=e,this.extSourcesManagerService=n,this.usersManagerService=r,this.translate=i,this.notificator=o,this.extSources=[],i.get("DIALOGS.ADD_USER_EXT_SOURCE.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.loading=!0,this.loginControl=new R.NI("",[R.kI.required,R.kI.pattern(".*[\\S]+.*")]),this.extSourcesControl=new R.NI("",[R.kI.required]),this.loginControl.markAllAsTouched(),this.extSourcesControl.markAllAsTouched(),this.filteredExtSources=this.extSourcesControl.valueChanges.pipe((0,fh.O)(""),(0,dh.U)(t=>this._filter(t))),this.extSourcesManagerService.getExtSources().subscribe(t=>{this.extSources=t,this.filteredExtSources=this.extSourcesControl.valueChanges.pipe((0,fh.O)(""),(0,dh.U)(t=>this._filter(t))),this.loading=!1},()=>this.loading=!1)}displayFn(t){return t?t.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(t){const e="string"==typeof t?t.toLowerCase():t.name.toLowerCase;return this.extSources.filter(t=>t.name.toLowerCase().includes(e))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(b.KG),s.Y36(b.Fv),s.Y36(f.sK),s.Y36(w.V6))},t.\u0275cmp=s.Xpm({type:t,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","","type","text","required","",3,"formControl","matAutocomplete","placeholder"],[3,"displayWith"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s.YNc(4,ph,1,0,"mat-spinner",2),s.YNc(5,mh,17,19,"div",3),s.qZA(),s.TgZ(6,"div",4),s.TgZ(7,"button",5),s.NdJ("click",function(){return e.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",6),s.NdJ("click",function(){return e.onAdd()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,6,"DIALOGS.ADD_USER_EXT_SOURCE.TITLE")),s.xp6(3),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,8,"DIALOGS.ADD_USER_EXT_SOURCE.CANCEL")," "),s.xp6(2),s.Q6J("disabled",e.loginControl.invalid||e.extSourcesControl.invalid||e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,10,"DIALOGS.ADD_USER_EXT_SOURCE.ADD")," "))},directives:[y.uh,y.xY,i.O5,y.H8,x.lW,E.$g,O.KE,L.Nt,R.Fj,R.Q7,R.JJ,R.oH,O.TO,ye.ZL,ye.XC,i.sg,j.ey],pipes:[f.X$,i.Ov],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}"]}),t})();var yh=n(6527),_h=n(23888);function wh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().addIdentity()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"USER_DETAIL.IDENTITIES.ADD"),"\n"))}function bh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().removeIdentity()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"USER_DETAIL.IDENTITIES.REMOVE"),"\n")}}function xh(t,e){1&t&&s._UZ(0,"mat-spinner",10)}function Eh(t,e){if(1&t&&(s.TgZ(0,"div"),s._UZ(1,"perun-web-apps-user-ext-sources-list",11),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("displayedColumns",t.displayedColumns)("filterValue",t.filterValue)("selection",t.selection)("userExtSources",t.userExtSources)("tableId",t.tableId)}}let Th=(()=>{class t{constructor(t,e,n,r,i,o){this.usersManagerService=t,this.storage=e,this.registrarManagerService=n,this.dialog=r,this.route=i,this.authResolver=o,this.userExtSources=[],this.selection=new v.Ov(!1,[]),this.displayedColumns=["select","id","extSourceName","login","lastAccess"],this.tableId=et.gG,this.filterValue=""}ngOnInit(){this.route.parent.params.subscribe(t=>{this.userId=t.userId}),this.refreshTable()}refreshTable(){this.loading=!0,this.selection.clear(),this.usersManagerService.getRichUserExtSources(this.userId).subscribe(t=>{this.userExtSources=t,this.loading=!1},()=>this.loading=!1)}addIdentity(){const t=(0,tt.kZ)();t.width="1000px",t.data={userId:this.userId},this.dialog.open(vh,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}removeIdentity(){const t=(0,tt.kZ)();t.width="450px",t.data={showSuccess:!0,theme:"user-theme",userId:this.userId,extSources:this.selection.selected},this.dialog.open(yh.Lc,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.Fv),s.Y36(w.d6),s.Y36(b.tk),s.Y36(y.uw),s.Y36(o.gz),s.Y36(w.x4))},t.\u0275cmp=s.Xpm({type:t,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","userExtSources","tableId"]],template:function(t,e){1&t&&(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 e.refreshTable()}),s.qZA(),s.YNc(4,wh,3,3,"button",2),s.YNc(5,bh,3,4,"button",3),s.TgZ(6,"perun-web-apps-immediate-filter",4),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.TgZ(7,"div",5),s.YNc(8,xh,1,0,"mat-spinner",6),s.qZA(),s.YNc(9,Eh,2,5,"div",7)),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,6,"USER_DETAIL.IDENTITIES.TITLE")),s.xp6(3),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("placeholder","USER_DETAIL.IDENTITIES.FILTER_PLACEHOLDER"),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[ot.t,i.O5,at.L,x.lW,E.$g,_h.j],pipes:[f.X$],styles:[""]}),t})();function Ah(t,e){1&t&&s._UZ(0,"mat-spinner",4)}function Sh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",5),s.TgZ(1,"mat-form-field"),s.TgZ(2,"input",6),s.NdJ("change",function(){return s.CHM(t),s.oxw().makePath()}),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"mat-error"),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA(),s.TgZ(7,"mat-form-field"),s.TgZ(8,"input",7),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().description=e}),s.ALo(9,"translate"),s.qZA(),s.qZA(),s.TgZ(10,"mat-form-field"),s._UZ(11,"input",8),s.ALo(12,"translate"),s.TgZ(13,"mat-error"),s._uU(14),s.ALo(15,"translate"),s.qZA(),s.qZA(),s.TgZ(16,"mat-form-field"),s._UZ(17,"input",8),s.ALo(18,"translate"),s.TgZ(19,"mat-error"),s._uU(20),s.ALo(21,"translate"),s.qZA(),s.qZA(),s.TgZ(22,"mat-form-field"),s._UZ(23,"input",8),s.ALo(24,"translate"),s.TgZ(25,"mat-error"),s._uU(26),s.ALo(27,"translate"),s.qZA(),s.qZA(),s.TgZ(28,"span",9),s._uU(29),s.ALo(30,"translate"),s.TgZ(31,"mat-checkbox",10),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().status=e}),s._uU(32),s.ALo(33,"translate"),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(2),s.s9C("placeholder",s.lcZ(3,17,"DIALOGS.CREATE_EDIT_SERVICE.NAME")),s.Q6J("formControl",t.nameControl),s.xp6(3),s.Oqu(s.lcZ(6,19,"DIALOGS.CREATE_EDIT_SERVICE.RESTRICTION_NAME")),s.xp6(3),s.s9C("placeholder",s.lcZ(9,21,"DIALOGS.CREATE_EDIT_SERVICE.DESCRIPTION")),s.Q6J("ngModel",t.description),s.xp6(3),s.s9C("placeholder",s.lcZ(12,23,"DIALOGS.CREATE_EDIT_SERVICE.DELAY")),s.Q6J("formControl",t.delayControl),s.xp6(3),s.Oqu(s.lcZ(15,25,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_DELAY")),s.xp6(3),s.s9C("placeholder",s.lcZ(18,27,"DIALOGS.CREATE_EDIT_SERVICE.RECURRENCE")),s.Q6J("formControl",t.recurrenceControl),s.xp6(3),s.Oqu(s.lcZ(21,29,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_RECURRENCE")),s.xp6(3),s.s9C("placeholder",s.lcZ(24,31,"DIALOGS.CREATE_EDIT_SERVICE.PATH")),s.Q6J("formControl",t.pathControl),s.xp6(3),s.Oqu(s.lcZ(27,33,"DIALOGS.CREATE_EDIT_SERVICE.REQUIRE_PATH")),s.xp6(3),s.hij("",s.lcZ(30,35,"DIALOGS.CREATE_EDIT_SERVICE.STATUS")," "),s.xp6(2),s.Q6J("ngModel",t.status),s.xp6(1),s.Oqu(s.lcZ(33,37,"DIALOGS.CREATE_EDIT_SERVICE.STATUS_HINT"))}}function Ih(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",11),s.TgZ(1,"button",12),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"button",13),s.NdJ("click",function(){s.CHM(t);const e=s.oxw();return e.asEdit?e.onEdit():e.onCreate()}),s._uU(5),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,3,"DIALOGS.CREATE_EDIT_SERVICE.CANCEL")," "),s.xp6(2),s.Q6J("disabled",t.nameControl.invalid||t.delayControl.invalid||t.recurrenceControl.invalid||t.pathControl.invalid),s.xp6(1),s.hij(" ",t.buttonText," ")}}let Dh=(()=>{class t{constructor(t,e,n,r,i){this.dialogRef=t,this.data=e,this.serviceManager=n,this.notificator=r,this.translate=i,this.loading=!1,this.status=!0,this.nameControl=new R.NI("",[R.kI.required,R.kI.pattern("^[a-zA-Z0-9_]+$")]),this.delayControl=new R.NI(10,[R.kI.pattern("^[0-9]*$")]),this.recurrenceControl=new R.NI(2,[R.kI.pattern("^[0-9]*$")]),this.pathControl=new R.NI("",[R.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.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,id:0,beanName:""}}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE_SUCCESS")),this.dialogRef.close(!0),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,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})}onCancel(){this.dialogRef.close(!1)}makePath(){const t="./".concat(this.nameControl.value);this.pathControl.setValue(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(b.KK),s.Y36(w.V6),s.Y36(f.sK))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-create-service-dialog"]],decls:6,vars:7,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"],["matInput","","required","",3,"formControl","placeholder","change"],["matInput","",3,"ngModel","placeholder","ngModelChange"],["matInput","","required","",3,"formControl","placeholder"],[1,"d-flex"],[1,"ml-3",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.qZA(),s.YNc(3,Ah,1,0,"mat-spinner",1),s.YNc(4,Sh,34,39,"div",2),s.YNc(5,Ih,6,5,"div",3),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.Oqu(e.title),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[y.uh,i.O5,E.$g,y.xY,O.KE,L.Nt,R.Fj,R.Q7,R.JJ,R.oH,O.TO,R.On,q.oG,y.H8,x.lW],pipes:[f.X$],styles:[""]}),t})();var Nh=n(20247);let kh=(()=>{class t{constructor(t,e,n,r,i){this.dialogRef=t,this.data=e,this.serviceManager=n,this.notificator=r,this.translate=i,this.displayedColumns=["name"],this.dataSource=new _.by(this.data.services),this.loading=!1,this.force=!1,this.relations=[]}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(t){this.force=t.force,t.deleted?this.onConfirm():this.onCancel()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(b.KK),s.Y36(w.V6),s.Y36(f.sK))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-delete-service-dialog"]],decls:2,vars:8,consts:[[3,"entityNames","entityType","relations","anotherMessage","loading","deleted"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"app-delete-entity-dialog",0),s.NdJ("deleted",function(t){return e.onSubmit(t)}),s.qZA(),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(1),s.Q6J("entityNames",e.dataSource)("entityType","services")("relations",e.relations)("anotherMessage",e.anotherMessage)("loading",e.loading))},directives:[Nh.e],styles:[""]}),t})();function Ch(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",7),s.NdJ("click",function(){return s.CHM(t),s.oxw().createService()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"ADMIN.SERVICES.CREATE")," "))}function Zh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().deleteService()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"ADMIN.SERVICES.DELETE")," ")}}function Mh(t,e){1&t&&s._UZ(0,"mat-spinner",9)}function Oh(t,e){if(1&t&&s._UZ(0,"app-services-list",10),2&t){const t=s.oxw();s.Q6J("tableId",t.tableId)("selection",t.selection)("services",t.services)("filterValue",t.filterValue)}}let Lh=(()=>{class t{constructor(t,e,n){this.serviceManager=t,this.dialog=e,this.authResolver=n,this.selection=new v.Ov(!0,[]),this.loading=!1,this.filterValue="",this.tableId=et.NL}ngOnInit(){this.serviceManager.getServices().subscribe(t=>{this.services=t,this.refreshTable()})}createService(){const t=(0,tt.kZ)();t.width="600px",t.data={theme:"admin-theme"},this.dialog.open(Dh,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}deleteService(){const t=(0,tt.kZ)();t.width="600px",t.data={theme:"admin-theme",services:this.selection.selected},this.dialog.open(kh,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}refreshTable(){this.loading=!0,this.serviceManager.getServices().subscribe(t=>{this.services=t,this.selection.clear(),this.loading=!1})}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.KK),s.Y36(y.uw),s.Y36(w.x4))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-admin-services"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","action-button mr-2","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"tableId","selection","services","filterValue",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,"mr-auto","ml-auto"],[3,"tableId","selection","services","filterValue"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.YNc(5,Ch,3,3,"button",2),s.YNc(6,Zh,3,4,"button",3),s.TgZ(7,"perun-web-apps-immediate-filter",4),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.YNc(8,Mh,1,0,"mat-spinner",5),s.YNc(9,Oh,1,4,"app-services-list",6),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,6,"ADMIN.SERVICES.TITLE")),s.xp6(3),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("placeholder","ADMIN.SERVICES.FILTER"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[ot.t,i.O5,at.L,x.lW,E.$g,lt.Q],pipes:[f.X$],styles:[""]}),t})();var Rh=n(88884);function Uh(t,e){1&t&&s._UZ(0,"mat-spinner",5)}const Ph=function(){return["id","name","vo","facility","description"]};function Fh(t,e){if(1&t&&s._UZ(0,"perun-web-apps-resources-list",6),2&t){const t=s.oxw();s.Q6J("tableId",t.tableId)("resources",t.resources)("filterValue",t.filterValue)("displayedColumns",s.DdM(4,Ph))}}let qh=(()=>{class t{constructor(t,e){this.userManager=t,this.route=e,this.resources=[],this.tableId=et.kO,this.filterValue=""}ngOnInit(){this.refreshTable()}refreshTable(){this.loading=!0,this.route.parent.params.subscribe(t=>{this.userManager.getAssignedRichResourcesForUser(t.userId).subscribe(t=>{this.resources=t,this.loading=!1})})}resourceFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.Fv),s.Y36(o.gz))},t.\u0275cmp=s.Xpm({type:t,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,"tableId","resources","filterValue","displayedColumns",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"tableId","resources","filterValue","displayedColumns"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.TgZ(5,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(t){return e.resourceFilter(t)}),s.qZA(),s.YNc(6,Uh,1,0,"mat-spinner",3),s.YNc(7,Fh,1,5,"perun-web-apps-resources-list",4),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,4,"USER_DETAIL.RESOURCES.TITLE")),s.xp6(3),s.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[ot.t,at.L,i.O5,E.$g,Rh.C],pipes:[f.X$],styles:[""]}),t})();var jh=n(13572),Yh=n(40695),Bh=n(41186);const zh=["list"];function Gh(t,e){1&t&&s._UZ(0,"mat-spinner",8)}function Jh(t,e){if(1&t&&s._UZ(0,"perun-web-apps-attributes-list",9,10),2&t){const t=s.oxw();s.Q6J("tableId",t.tableId)("attributes",t.attributes)("selection",t.selection)}}let Vh=(()=>{class t{constructor(t,e,n,r){this.dialog=t,this.attributesManager=e,this.userService=n,this.route=r,this.loading=!1,this.selection=new v.Ov(!0,[]),this.tableId=et.rF,this.attributes=[]}ngOnInit(){this.route.params.subscribe(t=>{this.userService.getUserExtSourceById(t.identityId).subscribe(t=>{this.userExtSource=t,this.refreshTable()})})}refreshTable(){this.loading=!0,this.attributesManager.getUserExtSourceAttributes(this.userExtSource.id).subscribe(t=>{this.attributes=(0,tt.MX)(t),this.selection.clear(),this.loading=!1})}onAdd(){const t=(0,tt.kZ)();t.width="1050px",t.data={entityId:this.userExtSource.id,entity:"ues",notEmptyAttributes:this.attributes,style:"user-theme"},this.dialog.open(Yh.n,t).afterClosed().subscribe(t=>{"saved"===t&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const t=(0,tt.kZ)();t.width="450px",t.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(yh.wA,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onRemove(){const t=(0,tt.kZ)();t.width="450px",t.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(jh.k,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.uw),s.Y36(b.H8),s.Y36(b.Fv),s.Y36(o.gz))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-identity-detail"]],viewQuery:function(t,e){if(1&t&&s.Gf(zh,5),2&t){let t;s.iGM(t=s.CRH())&&(e.list=t.first)}},decls:26,vars:32,consts:[[1,"page-subtitle"],[1,"mb-2"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","attributes","selection",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"tableId","attributes","selection"],["list",""]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"div"),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"div"),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"div",1),s._uU(11),s.ALo(12,"translate"),s.ALo(13,"date"),s.qZA(),s.TgZ(14,"perun-web-apps-refresh-button",2),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.TgZ(15,"button",3),s.NdJ("click",function(){return e.onSave()}),s._uU(16),s.ALo(17,"translate"),s.qZA(),s.TgZ(18,"button",4),s.NdJ("click",function(){return e.onAdd()}),s._uU(19),s.ALo(20,"translate"),s.qZA(),s.TgZ(21,"button",5),s.NdJ("click",function(){return e.onRemove()}),s._uU(22),s.ALo(23,"translate"),s.qZA(),s.YNc(24,Gh,1,0,"mat-spinner",6),s.YNc(25,Jh,2,3,"perun-web-apps-attributes-list",7),s.qZA()),2&t&&(s.xp6(2),s.AsE(" ",s.lcZ(3,15,"SHARED.IDENTITY_DETAIL.TITLE")," - ",e.userExtSource?e.userExtSource.extSource.name:""," "),s.xp6(3),s.AsE(" ",s.lcZ(6,17,"SHARED.IDENTITY_DETAIL.TYPE"),": ",e.userExtSource?e.userExtSource.extSource.type:""," "),s.xp6(3),s.AsE(" ",s.lcZ(9,19,"SHARED.IDENTITY_DETAIL.LOGIN"),": ",e.userExtSource?e.userExtSource.login:""," "),s.xp6(3),s.AsE(" ",s.lcZ(12,21,"SHARED.IDENTITY_DETAIL.LAST_ACCESS"),": ",e.userExtSource?s.xi3(13,23,e.userExtSource.lastAccess,"d.M.y H:mm:ss"):""," "),s.xp6(4),s.Q6J("disabled",0===e.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(17,26,"SHARED.IDENTITY_DETAIL.SAVE")," "),s.xp6(3),s.hij(" ",s.lcZ(20,28,"SHARED.IDENTITY_DETAIL.ADD")," "),s.xp6(2),s.Q6J("disabled",0===e.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(23,30,"SHARED.IDENTITY_DETAIL.REMOVE")," "),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[ot.t,x.lW,i.O5,E.$g,Bh.p],pipes:[f.X$,i.uU],styles:[""]}),t})();function Hh(t,e){1&t&&s._UZ(0,"mat-spinner",3)}function Qh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",15),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).editService()}),s.TgZ(1,"mat-icon"),s._uU(2,"edit"),s.qZA(),s.qZA()}}function Wh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",16),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).removeService()}),s.TgZ(1,"mat-icon"),s._uU(2,"delete_forever"),s.qZA(),s.qZA()}}const $h=function(){return{color:"black"}},Xh=function(t){return["/admin/services",t]};function Kh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",4),s._UZ(1,"mat-icon",5),s.ALo(2,"translate"),s.TgZ(3,"div",6),s.TgZ(4,"div",7),s.TgZ(5,"a",8),s._uU(6),s.qZA(),s.TgZ(7,"span",9),s._uU(8),s.qZA(),s.YNc(9,Qh,3,0,"button",10),s.YNc(10,Wh,3,0,"button",11),s.qZA(),s.TgZ(11,"span",12),s._uU(12),s.ALo(13,"translate"),s.qZA(),s.TgZ(14,"div",12),s._uU(15),s.ALo(16,"translate"),s.TgZ(17,"span"),s._uU(18),s.ALo(19,"translate"),s.ALo(20,"translate"),s.TgZ(21,"button",13),s.NdJ("click",function(){return s.CHM(t),s.oxw().changeServiceStatus()}),s.TgZ(22,"mat-icon",14),s._uU(23),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.s9C("matTooltip",s.lcZ(2,12,"SERVICE_DETAIL.ENTITY")),s.Q6J("ngStyle",s.DdM(22,$h)),s.xp6(4),s.Q6J("routerLink",s.VKq(23,Xh,t.service.id)),s.xp6(1),s.hij(" ",t.service.name," "),s.xp6(2),s.hij(" \xa0 #",t.service.id," "),s.xp6(1),s.Q6J("ngIf",t.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",t.authResolver.isPerunAdmin()),s.xp6(2),s.AsE(" ",s.lcZ(13,14,"SERVICE_DETAIL.DESCRIPTION"),": ",t.service.description," "),s.xp6(3),s.hij(" ",s.lcZ(16,16,"SERVICE_DETAIL.STATUS"),": "),s.xp6(3),s.hij(" ",t.service.enabled?s.lcZ(19,18,"SERVICE_DETAIL.ENABLED"):s.lcZ(20,20,"SERVICE_DETAIL.DISABLED")," "),s.xp6(5),s.hij(" ",t.service.enabled?"check_circle_outline":"block"," ")}}let tf=(()=>{class t{constructor(t,e,n,r,i,o,a,s,u,c){this.route=t,this.router=e,this.serviceManager=n,this.sideMenuService=r,this.sideMenuItemService=i,this.dialog=o,this.authResolver=a,this.translate=s,this.notificator=u,this.entityStorageService=c,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(t=>{this.serviceId=t.serviceId,this.refresh()})}refresh(){this.serviceManager.getServiceById(this.serviceId).subscribe(t=>{this.service=t,this.entityStorageService.setEntity({id:t.id,beanName:t.beanName});const e=this.sideMenuItemService.parseService(this.service);this.sideMenuService.setAdminItems([e]),this.loading=!1},()=>this.loading=!1)}editService(){const t=(0,tt.kZ)();t.width="600px",t.data={theme:"service-theme",service:this.service},this.dialog.open(Dh,t).afterClosed().subscribe(t=>{t&&this.ngOnInit()})}removeService(){const t=(0,tt.kZ)();t.width="600px",t.data={theme:"service-theme",services:[this.service]},this.dialog.open(kh,t).afterClosed().subscribe(t=>{t&&this.router.navigate(["/admin/services"])})}changeServiceStatus(){this.loading=!0,this.serviceManager.updateService({service:{name:this.service.name,description:this.service.description,delay:this.service.delay,recurrence:this.service.recurrence,enabled:!this.service.enabled,script:this.service.script,id:this.service.id,beanName:this.service.beanName}}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.STATUS_CHANGE_SUCCESS")),this.refresh()},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(o.gz),s.Y36(o.F0),s.Y36(b.KK),s.Y36(u.D),s.Y36(a.V),s.Y36(y.uw),s.Y36(w.x4),s.Y36(f.sK),s.Y36(w.V6),s.Y36(w.fb))},t.\u0275cmp=s.Xpm({type:t,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","d-flex page-title-headtitle",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-service",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,"service-link",3,"routerLink"],[1,"text-muted"],["aria-label","Edit service","mat-icon-button","",3,"click",4,"ngIf"],["aria-label","Remove service","mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","",3,"click"],[1,"align-content-center"],["aria-label","Edit service","mat-icon-button","",3,"click"],["aria-label","Remove service","mat-icon-button","",3,"click"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s._UZ(1,"perun-web-apps-back-button"),s.YNc(2,Hh,1,0,"mat-spinner",1),s.YNc(3,Kh,24,25,"div",2),s._UZ(4,"app-animated-router-outlet"),s.qZA()),2&t&&(s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading&&void 0!==e.service))},directives:[c.W,i.O5,h.A,E.$g,l.Hw,M.gM,i.PC,o.yS,x.lW],pipes:[f.X$],styles:[""],data:{animation:[ut.Ji]}}),t})(),ef=(()=>{class t{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 t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-service-overview"]],decls:1,vars:2,consts:[[3,"items","size"]],template:function(t,e){1&t&&s._UZ(0,"perun-web-apps-menu-buttons-field",0),2&t&&s.Q6J("items",e.navItems)("size","small")},directives:[g.L],styles:[""]}),t})();function nf(t,e){1&t&&s._UZ(0,"mat-spinner",4)}function rf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",5),s.TgZ(1,"perun-web-apps-immediate-filter",6),s.NdJ("filter",function(e){return s.CHM(t),s.oxw().applyFilter(e)}),s.qZA(),s._UZ(2,"app-attr-def-list",7),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.Q6J("placeholder","DIALOGS.ADD_REQUIRED_ATTRIBUTES.FILTER"),s.xp6(1),s.Q6J("selection",t.selection)("definitions",t.attrDefinitions)("disableRouting",!0)("filterValue",t.filterValue)}}function of(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",8),s.TgZ(1,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"button",10),s.NdJ("click",function(){return s.CHM(t),s.oxw().onAdd()}),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,3,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.CANCEL")," "),s.xp6(2),s.Q6J("disabled",0===t.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(6,5,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.ADD")," ")}}let af=(()=>{class t{constructor(t,e,n,r,i,o){this.dialogRef=t,this.data=e,this.serviceManager=n,this.attributesManager=r,this.notificator=i,this.translate=o,this.attrDefinitions=[],this.selection=new v.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(t=>{this.attrDefinitions=t,this.loading=!1})}onAdd(){this.loading=!0;const t=this.selection.selected.map(t=>t.id);this.serviceManager.addRequiredAttributes(this.serviceId,t).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(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(b.KK),s.Y36(b.H8),s.Y36(w.V6),s.Y36(f.sK))},t.\u0275cmp=s.Xpm({type:t,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,"placeholder","filter"],[3,"selection","definitions","disableRouting","filterValue"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,nf,1,0,"mat-spinner",1),s.YNc(5,rf,3,5,"div",2),s.YNc(6,of,7,7,"div",3),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.Oqu(s.lcZ(3,7,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[y.uh,i.O5,E.$g,y.xY,at.L,ne,y.H8,x.lW],pipes:[f.X$],styles:[""]}),t})();function sf(t,e){1&t&&s._UZ(0,"mat-spinner",6)}function uf(t,e){1&t&&s._UZ(0,"th",15)}function cf(t,e){if(1&t&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.friendlyName)}}function lf(t,e){1&t&&s._UZ(0,"tr",17)}function hf(t,e){1&t&&s._UZ(0,"tr",18)}function ff(t,e){if(1&t&&(s.TgZ(0,"div",7),s.TgZ(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,uf,1,0,"th",11),s.YNc(10,cf,2,1,"td",12),s.BQk(),s.YNc(11,lf,1,0,"tr",13),s.YNc(12,hf,1,0,"tr",14),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.Oqu(s.lcZ(3,5,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.DESCRIPTION")),s.xp6(3),s.hij(" ",s.lcZ(6,7,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.ASK")," "),s.xp6(2),s.Q6J("dataSource",t.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",t.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",t.displayedColumns)}}let df=(()=>{class t{constructor(t,e,n,r,i){this.dialogRef=t,this.data=e,this.serviceManager=n,this.notificator=r,this.translate=i,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.serviceId=this.data.serviceId,this.dataSource=new _.by(this.data.attrDefinitions)}onConfirm(){this.loading=!0;const t=this.dataSource.data.map(t=>t.id);this.serviceManager.removeRequiredAttributes(this.serviceId,t).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 t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(b.KK),s.Y36(w.V6),s.Y36(f.sK))},t.\u0275cmp=s.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div"),s.YNc(4,sf,1,0,"mat-spinner",1),s.YNc(5,ff,13,9,"div",2),s.TgZ(6,"div",3),s.TgZ(7,"button",4),s.NdJ("click",function(){return e.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return e.onConfirm()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,9,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.TITLE")),s.xp6(2),s.Tol(e.theme),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,11,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.CANCEL")," "),s.xp6(2),s.Q6J("disabled",e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,13,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.REMOVE")," "))},directives:[y.uh,i.O5,y.H8,x.lW,E.$g,y.xY,_.BZ,_.w1,_.fO,_.Dz,_.as,_.nj,_.ge,_.ev,_.XQ,_.Gk],pipes:[f.X$],styles:[""]}),t})();function pf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",7),s.NdJ("click",function(){return s.CHM(t),s.oxw().onAdd()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.ADD")," "))}function gf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().onRemove()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.REMOVE")," ")}}function mf(t,e){1&t&&s._UZ(0,"mat-spinner",9)}function vf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"app-attr-def-list",10),s.NdJ("refreshEvent",function(){return s.CHM(t),s.oxw().refreshTable()}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("tableId",t.tableId)("definitions",t.attrDefinitions)("selection",t.selection)("filterValue",t.filterValue)("disableRouting",!t.authResolver.isPerunAdmin())}}let yf=(()=>{class t{constructor(t,e,n,r){this.attributeManager=t,this.dialog=e,this.authResolver=n,this.entityStorageService=r,this.loading=!1,this.filterValue="",this.selection=new v.Ov(!0,[]),this.attrDefinitions=[],this.tableId=et.JO}ngOnInit(){this.loading=!0,this.service=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.attributeManager.getRequiredAttributesDefinition(this.service.id).subscribe(t=>{this.selection.clear(),this.attrDefinitions=t,this.loading=!1})}onAdd(){const t=(0,tt.kZ)();t.width="950px",t.data={serviceId:this.service.id,theme:"service-theme"},this.dialog.open(af,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onRemove(){const t=(0,tt.kZ)();t.width="650px",t.data={serviceId:this.service.id,attrDefinitions:this.selection.selected,theme:"service-theme"},this.dialog.open(df,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.H8),s.Y36(y.uw),s.Y36(w.x4),s.Y36(w.fb))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-service-required-attributes"]],decls:10,vars:8,consts:[[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,"tableId","definitions","selection","filterValue","disableRouting","refreshEvent",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,"tableId","definitions","selection","filterValue","disableRouting","refreshEvent"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.YNc(5,pf,3,3,"button",2),s.YNc(6,gf,3,4,"button",3),s.TgZ(7,"perun-web-apps-immediate-filter",4),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.YNc(8,mf,1,0,"mat-spinner",5),s.YNc(9,vf,1,5,"app-attr-def-list",6),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,6,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.TITLE")),s.xp6(3),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("placeholder","SERVICE_DETAIL.REQUIRED_ATTRIBUTES.FILTER"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[ot.t,i.O5,at.L,x.lW,E.$g,ne],pipes:[f.X$],styles:[""]}),t})();var _f=n(2043),wf=n(60547),bf=n(94357);function xf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",7),s.NdJ("click",function(){return s.CHM(t),s.oxw().onRemove()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.REMOVE")," ")}}function Ef(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().onAllow()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.ALLOW")," ")}}function Tf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",7),s.NdJ("click",function(){return s.CHM(t),s.oxw().onBlock()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.BLOCK")," ")}}function Af(t,e){1&t&&s._UZ(0,"mat-spinner",9)}const Sf=function(){return["select","destinationId","facility","destination","type","status","propagationType"]};function If(t,e){if(1&t&&s._UZ(0,"app-perun-web-apps-destination-list",10),2&t){const t=s.oxw();s.Q6J("destinations",t.destinations)("selection",t.selection)("tableId",t.tableId)("displayedColumns",s.DdM(5,Sf))("filterValue",t.filterValue)}}let Df=(()=>{class t{constructor(t,e,n,r,i,o){this.serviceManager=t,this.notificator=e,this.translate=n,this.dialog=r,this.authResolver=i,this.entityStorageService=o,this.loading=!1,this.filterValue="",this.destinations=[],this.selection=new v.Ov(!0,[]),this.tableId=et.Cf}ngOnInit(){this.loading=!0,this.service=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.serviceManager.getAllRichDestinationsForService(this.service.id).subscribe(t=>{this.selection.clear(),this.filterValue="",this.destinations=t,this.loading=!1})}blockServiceOnDestinations(t){if(0===t.length)return this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.BLOCK_SUCCESS")),void this.refreshTable();const e=t.pop();this.serviceManager.blockServiceOnDestination(this.service.id,e.id).subscribe(()=>{this.blockServiceOnDestinations(t)},()=>this.loading=!1)}onBlock(){this.loading=!0,this.blockServiceOnDestinations(this.selection.selected)}allowServiceOnDestinations(t){if(0===t.length)return this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.ALLOW_SUCCESS")),void this.refreshTable();const e=t.pop();this.serviceManager.unblockServiceOnDestinationById(this.service.id,e.id).subscribe(()=>{this.allowServiceOnDestinations(t)},()=>this.loading=!1)}onAllow(){this.loading=!0,this.allowServiceOnDestinations(this.selection.selected)}onRemove(){const t=(0,tt.kZ)();t.width="500px",t.data={destinations:this.selection.selected,theme:"admin-theme"},this.dialog.open(wf.u,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.KK),s.Y36(w.V6),s.Y36(f.sK),s.Y36(y.uw),s.Y36(w.x4),s.Y36(w.fb))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-service-destinations"]],decls:11,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"destinations","selection","tableId","displayedColumns","filterValue",4,"ngIf"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"destinations","selection","tableId","displayedColumns","filterValue"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.YNc(5,xf,3,4,"button",2),s.YNc(6,Ef,3,4,"button",3),s.YNc(7,Tf,3,4,"button",2),s.TgZ(8,"perun-web-apps-immediate-filter",4),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.YNc(9,Af,1,0,"mat-spinner",5),s.YNc(10,If,1,6,"app-perun-web-apps-destination-list",6),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,7,"SERVICE_DETAIL.DESTINATIONS.TITLE")),s.xp6(3),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("placeholder","SERVICE_DETAIL.DESTINATIONS.FILTER"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[ot.t,i.O5,at.L,x.lW,E.$g,bf.q],pipes:[f.X$],styles:[""]}),t})();function Nf(t,e){1&t&&s._UZ(0,"mat-spinner",4)}function kf(t,e){1&t&&s._UZ(0,"th",13)}function Cf(t,e){if(1&t&&(s.TgZ(0,"td",14),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.name)}}function Zf(t,e){1&t&&s._UZ(0,"tr",15)}function Mf(t,e){1&t&&s._UZ(0,"tr",16)}function Of(t,e){if(1&t&&(s.TgZ(0,"div",5),s.TgZ(1,"p"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"div",6),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"table",7),s.ynx(8,8),s.YNc(9,kf,1,0,"th",9),s.YNc(10,Cf,2,1,"td",10),s.BQk(),s.YNc(11,Zf,1,0,"tr",11),s.YNc(12,Mf,1,0,"tr",12),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,5,"DIALOGS.DELETE_OWNER.DESCRIPTION")," "),s.xp6(3),s.hij(" ",s.lcZ(6,7,"DIALOGS.DELETE_OWNER.ASK")," "),s.xp6(2),s.Q6J("dataSource",t.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",t.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",t.displayedColumns)}}function Lf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",17),s.TgZ(1,"button",18),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"button",19),s.NdJ("click",function(){return s.CHM(t),s.oxw().onSubmit()}),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,3,"DIALOGS.DELETE_OWNER.CANCEL")," "),s.xp6(2),s.Q6J("disabled",t.loading),s.xp6(1),s.hij(" ",s.lcZ(6,5,"DIALOGS.DELETE_OWNER.DELETE")," ")}}let Rf=(()=>{class t{constructor(t,e,n,r,i){this.dialogRef=t,this.data=e,this.notificator=n,this.translate=r,this.ownersManagerService=i,this.displayedColumns=["name"],this.owners=[]}ngOnInit(){this.dataSource=new _.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(t=>{this.loading=!1,this.notificator.showSuccess(t),this.dialogRef.close(!0)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(w.V6),s.Y36(f.sK),s.Y36(b.aC))},t.\u0275cmp=s.Xpm({type:t,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"],["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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.YNc(3,Nf,1,0,"mat-spinner",1),s.YNc(4,Of,13,9,"div",2),s.YNc(5,Lf,7,7,"div",3)),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,4,"DIALOGS.DELETE_OWNER.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[y.uh,i.O5,E.$g,y.xY,_.BZ,_.w1,_.fO,_.Dz,_.as,_.nj,_.ge,_.ev,_.XQ,_.Gk,y.H8,x.lW],pipes:[f.X$],styles:[""]}),t})();function Uf(t,e){1&t&&s._UZ(0,"mat-spinner",4)}function Pf(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ADD_OWNER.FILL_CONTACT")," "))}function Ff(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ADD_OWNER.CONTACT_FORMAT")," "))}function qf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"div",5),s.TgZ(2,"mat-form-field"),s._UZ(3,"input",6),s.ALo(4,"translate"),s.TgZ(5,"mat-error"),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.qZA(),s.TgZ(8,"mat-form-field"),s._UZ(9,"input",6),s.ALo(10,"translate"),s.YNc(11,Pf,3,3,"mat-error",3),s.YNc(12,Ff,3,3,"mat-error",3),s.qZA(),s.TgZ(13,"mat-form-field"),s.TgZ(14,"mat-select",7),s.NdJ("valueChange",function(e){return s.CHM(t),s.oxw().type=e}),s.TgZ(15,"mat-option",8),s._uU(16),s.ALo(17,"translate"),s.qZA(),s.TgZ(18,"mat-option",9),s._uU(19),s.ALo(20,"translate"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(21,"div",10),s.TgZ(22,"button",11),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(23),s.ALo(24,"translate"),s.qZA(),s.TgZ(25,"div",12),s.ALo(26,"translate"),s.TgZ(27,"button",13),s.NdJ("click",function(){return s.CHM(t),s.oxw().onSubmit()}),s._uU(28),s.ALo(29,"translate"),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(3),s.s9C("placeholder",s.lcZ(4,15,"DIALOGS.ADD_OWNER.NAME")),s.Q6J("formControl",t.nameCtrl),s.xp6(3),s.hij(" ",s.lcZ(7,17,"DIALOGS.ADD_OWNER.FILL_NAME")," "),s.xp6(3),s.s9C("placeholder",s.lcZ(10,19,"DIALOGS.ADD_OWNER.CONTACT")),s.Q6J("formControl",t.contactCtrl),s.xp6(2),s.Q6J("ngIf",t.contactCtrl.hasError("required")),s.xp6(1),s.Q6J("ngIf",t.contactCtrl.invalid&&!t.contactCtrl.hasError("required")),s.xp6(2),s.Q6J("value",t.type),s.xp6(2),s.Oqu(s.lcZ(17,21,"DIALOGS.ADD_OWNER.TYPE1")),s.xp6(3),s.Oqu(s.lcZ(20,23,"DIALOGS.ADD_OWNER.TYPE2")),s.xp6(4),s.hij(" ",s.lcZ(24,25,"DIALOGS.ADD_OWNER.CANCEL")," "),s.xp6(2),s.s9C("matTooltip",s.lcZ(26,27,"DIALOGS.ADD_OWNER.TOOLTIP")),s.Q6J("matTooltipDisabled",t.nameCtrl.valid&&t.contactCtrl.valid),s.xp6(2),s.Q6J("disabled",t.nameCtrl.invalid||t.contactCtrl.invalid),s.xp6(1),s.hij(" ",s.lcZ(29,29,"DIALOGS.ADD_OWNER.CREATE")," ")}}let jf=(()=>{class t{constructor(t,e,n,r){this.dialogRef=t,this.notificator=e,this.ownersManagerService=n,this.translate=r,this.type="1",r.get("DIALOGS.ADD_OWNER.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.nameCtrl=new R.NI(null,[R.kI.required,R.kI.pattern("^[\\w.-]+( [\\w.-]+)*$")]),this.contactCtrl=new R.NI(null,[R.kI.required,R.kI.pattern(tt.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 t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(w.V6),s.Y36(b.aC),s.Y36(f.sK))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-add-owner-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"],[3,"value","valueChange"],["value","1"],["value","0"],["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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,Uf,1,0,"mat-spinner",2),s.YNc(5,qf,30,31,"div",3),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,3,"DIALOGS.ADD_OWNER.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[y.uh,i.O5,E.$g,y.xY,O.KE,L.Nt,R.Fj,R.Q7,R.JJ,R.oH,O.TO,P.gD,j.ey,y.H8,x.lW,M.gM],pipes:[f.X$],styles:[""]}),t})();var Yf=n(17767);function Bf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().addOwner()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"ADMIN.OWNERS.ADD")," "))}function zf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().removeOwner()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",!t.selected.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"ADMIN.OWNERS.DELETE")," ")}}function Gf(t,e){1&t&&s._UZ(0,"mat-spinner",10)}function Jf(t,e){if(1&t&&s._UZ(0,"perun-web-apps-owners-list",11),2&t){const t=s.oxw();s.Q6J("tableId",t.tableId)("filterValue",t.filterValue)("owners",t.owners)("selection",t.selected)}}let Vf=(()=>{class t{constructor(t,e,n){this.ownersManagerService=t,this.dialog=e,this.guiAuthResolver=n,this.owners=[],this.selected=new v.Ov(!0,[]),this.filterValue="",this.tableId=et.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(t=>{this.owners=t,this.selected.clear(),this.loading=!1})}applyFilter(t){this.filterValue=t}addOwner(){const t=(0,tt.kZ)();t.width="400px",t.data={},this.dialog.open(jf,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}removeOwner(){const t=(0,tt.kZ)();t.width="400px",t.data=this.selected.selected,this.dialog.open(Rf,t).afterClosed().subscribe(t=>{t&&(this.selected.clear(),this.refreshTable())})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.aC),s.Y36(y.uw),s.Y36(w.x4))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-admin-owners"]],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,"tableId","filterValue","owners","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,"tableId","filterValue","owners","selection"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",2),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.YNc(5,Bf,3,3,"button",3),s.YNc(6,zf,3,4,"button",4),s.TgZ(7,"perun-web-apps-immediate-filter",5),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.YNc(8,Gf,1,0,"mat-spinner",6),s.YNc(9,Jf,1,4,"perun-web-apps-owners-list",7),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,6,"ADMIN.OWNERS.TITLE")),s.xp6(3),s.Q6J("ngIf",e.addAuth),s.xp6(1),s.Q6J("ngIf",e.removeAuth),s.xp6(1),s.Q6J("placeholder","ADMIN.OWNERS.FILTER"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[ot.t,i.O5,at.L,x.lW,E.$g,Yf.Q],pipes:[f.X$],styles:[""]}),t})();var Hf=n(60007);function Qf(t,e){1&t&&s._UZ(0,"mat-spinner",5)}function Wf(t,e){if(1&t&&s._UZ(0,"perun-web-apps-facilities-list",6),2&t){const t=s.oxw();s.Q6J("tableId",t.tableId)("filterValue",t.filterValue)("facilities",t.facilities)("displayedColumns",t.displayedColumns)}}let $f=(()=>{class t{constructor(t,e){this.facilityManager=t,this.route=e,this.facilities=[],this.filterValue="",this.tableId=et.zW,this.displayedColumns=["id","name","description"]}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(t=>{this.userId=t.userId,this.refreshTable()})}refreshTable(){this.loading=!0,this.facilityManager.getAssignedFacilitiesByUser(this.userId).subscribe(t=>{this.facilities=t.map(t=>({facility:t})),this.loading=!1})}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.IQ),s.Y36(o.gz))},t.\u0275cmp=s.Xpm({type:t,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,"tableId","filterValue","facilities","displayedColumns",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","facilities","displayedColumns"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.TgZ(5,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.YNc(6,Qf,1,0,"mat-spinner",3),s.YNc(7,Wf,1,4,"perun-web-apps-facilities-list",4),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,4,"USER_DETAIL.FACILITIES.TITLE")),s.xp6(3),s.Q6J("placeholder","USER_DETAIL.FACILITIES.FILTER_PLACEHOLDER"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[ot.t,at.L,i.O5,E.$g,Hf.X],pipes:[f.X$],styles:[""]}),t})();var Xf=n(19386),Kf=n(55109),td=n(64737),ed=n(78364),nd=n(541),rd=n(3417);function id(t,e){1&t&&s._UZ(0,"mat-spinner",6)}function od(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-vo-search-select",7),s.NdJ("voSelected",function(e){return s.CHM(t),s.oxw().loadMember(e)}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("vos",t.vos)("vo",t.vos[0])}}function ad(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.hij(" ",s.lcZ(1,1,"USER_DETAIL.ACCOUNTS.STATUS")," ")}function sd(t,e){1&t&&s._UZ(0,"mat-spinner",6)}const ud=function(){return["id","recent","name","description","groupStatus","expiration"]};function cd(t,e){if(1&t&&s._UZ(0,"perun-web-apps-groups-list",16),2&t){const t=s.oxw(4);s.Q6J("groups",t.groups)("displayedColumns",s.DdM(2,ud))}}const ld=function(t,e){return["/organizations",t,"members",e]};function hd(t,e){if(1&t&&(s.TgZ(0,"div"),s.TgZ(1,"div",10),s.TgZ(2,"span",11),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.TgZ(5,"a",12),s._uU(6),s.qZA(),s.qZA(),s._UZ(7,"app-member-overview-membership",13),s.TgZ(8,"p",14),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.YNc(11,cd,1,3,"perun-web-apps-groups-list",15),s.qZA()),2&t){const t=s.oxw(3);s.xp6(3),s.hij("",s.lcZ(4,7,"USER_DETAIL.ACCOUNTS.MEMBER"),":"),s.xp6(2),s.Q6J("routerLink",s.WLB(11,ld,t.selectedVo.id,t.member.id)),s.xp6(1),s.hij("",t.member.id," "),s.xp6(1),s.Q6J("member",t.member)("vo",t.selectedVo),s.xp6(2),s.Oqu(s.lcZ(10,9,"USER_DETAIL.ACCOUNTS.GROUPS")),s.xp6(2),s.Q6J("ngIf",!t.loading)}}function fd(t,e){if(1&t&&(s.YNc(0,sd,1,0,"mat-spinner",1),s.YNc(1,hd,12,14,"div",4)),2&t){const t=s.oxw(2);s.Q6J("ngIf",t.loading),s.xp6(1),s.Q6J("ngIf",!t.loading)}}function dd(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.hij(" ",s.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_ATT")," ")}function pd(t,e){1&t&&s._UZ(0,"mat-spinner")}function gd(t,e){if(1&t&&s._UZ(0,"app-one-entity-attribute-page",18),2&t){const t=s.oxw(3);s.Q6J("entity","member")("entityId",t.member.id)}}function md(t,e){if(1&t&&(s.YNc(0,pd,1,0,"mat-spinner",4),s.YNc(1,gd,1,2,"app-one-entity-attribute-page",17)),2&t){const t=s.oxw(2);s.Q6J("ngIf",t.loading),s.xp6(1),s.Q6J("ngIf",!t.loading)}}function vd(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.hij(" ",s.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_GROUP_ATT")," ")}function yd(t,e){1&t&&s._UZ(0,"mat-spinner")}function _d(t,e){if(1&t&&s._UZ(0,"app-two-entity-attribute-page",20),2&t){const t=s.oxw(3);s.Q6J("firstEntity","member")("firstEntityId",t.member.id)("secondEntity","group")}}function wd(t,e){if(1&t&&(s.YNc(0,yd,1,0,"mat-spinner",4),s.YNc(1,_d,1,3,"app-two-entity-attribute-page",19)),2&t){const t=s.oxw(2);s.Q6J("ngIf",t.loading),s.xp6(1),s.Q6J("ngIf",!t.loading)}}function bd(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.hij(" ",s.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_RESOURCE_ATT")," ")}function xd(t,e){1&t&&s._UZ(0,"mat-spinner")}function Ed(t,e){if(1&t&&s._UZ(0,"app-two-entity-attribute-page",20),2&t){const t=s.oxw(3);s.Q6J("firstEntity","member")("firstEntityId",t.member.id)("secondEntity","resource")}}function Td(t,e){if(1&t&&(s.YNc(0,xd,1,0,"mat-spinner",4),s.YNc(1,Ed,1,3,"app-two-entity-attribute-page",19)),2&t){const t=s.oxw(2);s.Q6J("ngIf",t.loading),s.xp6(1),s.Q6J("ngIf",!t.loading)}}function Ad(t,e){1&t&&(s.TgZ(0,"mat-tab-group"),s.TgZ(1,"mat-tab"),s.YNc(2,ad,2,3,"ng-template",8),s.YNc(3,fd,2,2,"ng-template",9),s.qZA(),s.TgZ(4,"mat-tab"),s.YNc(5,dd,2,3,"ng-template",8),s.YNc(6,md,2,2,"ng-template",9),s.qZA(),s.TgZ(7,"mat-tab"),s.YNc(8,vd,2,3,"ng-template",8),s.YNc(9,wd,2,2,"ng-template",9),s.qZA(),s.TgZ(10,"mat-tab"),s.YNc(11,bd,2,3,"ng-template",8),s.YNc(12,Td,2,2,"ng-template",9),s.qZA(),s.qZA())}function Sd(t,e){1&t&&(s.TgZ(0,"app-alert",21),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"USER_DETAIL.ACCOUNTS.NO_VOS")))}let Id=(()=>{class t{constructor(t,e,n,r){this.route=t,this.usersService=e,this.membersService=n,this.groupService=r,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(t=>{this.userId=t.userId,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(t=>{this.vos=t,this.initLoading=!1},()=>this.initLoading=!1)})}loadMember(t){this.loading=!0,this.selectedVo=t,this.membersService.getMemberByUser(this.selectedVo.id,this.userId).subscribe(t=>{this.member=t,this.groupService.getMemberRichGroupsWithAttributesByNames(this.member.id,["urn:perun:member_group:attribute-def:virt:groupStatus"]).subscribe(t=>{this.groups=t,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(o.gz),s.Y36(b.Fv),s.Y36(b.uq),s.Y36(b.ff))},t.\u0275cmp=s.Xpm({type:t,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","vo","voSelected",4,"ngIf"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"w-50",3,"vos","vo","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","displayedColumns",4,"ngIf"],[3,"groups","displayedColumns"],[3,"entity","entityId",4,"ngIf"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity",4,"ngIf"],[3,"firstEntity","firstEntityId","secondEntity"],["alert_type","warn"]],template:function(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.YNc(3,id,1,0,"mat-spinner",1),s.TgZ(4,"div",2),s.YNc(5,od,1,2,"perun-web-apps-vo-search-select",3),s.qZA(),s.YNc(6,Ad,13,0,"mat-tab-group",4),s.YNc(7,Sd,3,3,"app-alert",5)),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,5,"USER_DETAIL.ACCOUNTS.TITLE")),s.xp6(2),s.Q6J("ngIf",e.initLoading),s.xp6(2),s.Q6J("ngIf",!(e.initLoading||0===e.vos.length)),s.xp6(1),s.Q6J("ngIf",!(e.initLoading||0===e.vos.length)),s.xp6(1),s.Q6J("ngIf",!e.initLoading&&0===e.vos.length))},directives:[i.O5,E.$g,Xf.M,Kf.SP,Kf.uX,Kf.uD,Kf.Vc,o.yS,td.b,ed.W,nd.t,rd.Y,T.w],pipes:[f.X$],styles:[".subtitle[_ngcontent-%COMP%]{font-size:1.2rem}"]}),t})(),Dd=(()=>{class t{transform(t){if(t)return t.split(".").pop()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"parseEventName",type:t,pure:!0}),t})();function Nd(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.hij(" ",s.lcZ(1,1,"DIALOGS.AUDIT_MESSAGE_DETAIL.OBJECTS")," ")}function kd(t,e){if(1&t&&s._UZ(0,"pre",9),2&t){const t=s.oxw();s.Q6J("innerHTML",t.syntaxHighlight(t.eventData),s.oJD)}}function Cd(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.hij(" ",s.lcZ(1,1,"DIALOGS.AUDIT_MESSAGE_DETAIL.MESSAGE")," ")}function Zd(t,e){if(1&t&&(s.TgZ(0,"div"),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Oqu(t.message)}}let Md=(()=>{class t{constructor(t,e,n){this.dialogRef=t,this.data=e,this.clipboard=n,this.tabIndex=0,this.eventData={}}ngOnInit(){const t=this.data.message.event;this.actor=this.data.message.actor,this.createdAt=this.data.message.createdAt,t.message&&(this.message=t.message,delete t.message),t.name&&(this.title=t.name,delete t.name),this.eventData=t}tabChanged(t){this.tabIndex=t.index}copyObjects(){this.clipboard.copy(JSON.stringify(this.eventData,null,2))}copyMessage(){this.clipboard.copy(this.message)}syntaxHighlight(t){return"string"!=typeof t&&(t=JSON.stringify(t,void 0,2)),(t=t.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,function(t){let e="number";return/^"/.test(t)?e=/:$/.test(t)?"key":"string":/true|false/.test(t)?e="boolean":/null/.test(t)&&(e="null"),''+t+""})}onClose(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(ct.TU))},t.\u0275cmp=s.Xpm({type:t,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(t,e){if(1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.ALo(4,"parseEventName"),s.qZA(),s.TgZ(5,"div",2),s.TgZ(6,"div"),s._uU(7),s.ALo(8,"translate"),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"mat-tab-group",3),s.NdJ("selectedTabChange",function(t){return e.tabChanged(t)}),s.TgZ(11,"mat-tab"),s.YNc(12,Nd,2,3,"ng-template",4),s.YNc(13,kd,1,1,"ng-template",5),s.qZA(),s.TgZ(14,"mat-tab"),s.YNc(15,Cd,2,3,"ng-template",4),s.YNc(16,Zd,2,1,"ng-template",5),s.qZA(),s.qZA(),s.qZA(),s.TgZ(17,"div",6),s.TgZ(18,"button",7),s.NdJ("click",function(){return e.onClose()}),s._uU(19),s.ALo(20,"translate"),s.qZA(),s.TgZ(21,"button",8),s.NdJ("click",function(){return 0===e.tabIndex?e.copyObjects():e.copyMessage()}),s._uU(22),s.ALo(23,"translate"),s.TgZ(24,"mat-icon"),s._uU(25,"content_copy"),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t){let t;s.xp6(2),s.hij(" ",s.lcZ(3,7,null!==(t=s.lcZ(4,9,e.title))&&void 0!==t?t:"DIALOGS.AUDIT_MESSAGE_DETAIL.TITLE")," "),s.xp6(5),s.HOy(" ",s.lcZ(8,11,"DIALOGS.AUDIT_MESSAGE_DETAIL.ACTOR"),": ",e.actor,", ",s.lcZ(9,13,"DIALOGS.AUDIT_MESSAGE_DETAIL.CREATED_AT"),": ",e.createdAt," "),s.xp6(12),s.hij(" ",s.lcZ(20,15,"DIALOGS.AUDIT_MESSAGE_DETAIL.CLOSE")," "),s.xp6(3),s.hij(" ",s.lcZ(23,17,"DIALOGS.AUDIT_MESSAGE_DETAIL.COPY")," ")}},directives:[y.uh,y.xY,Kf.SP,Kf.uX,Kf.uD,Kf.Vc,y.H8,x.lW,l.Hw],pipes:[f.X$,Dd],styles:[".key{color:brown}.string{color:green}.number{color:#ff8c00}.boolean{color:blue}.null{color:#f0f}"],encapsulation:2}),t})();var Od=n(73005),Ld=n(31906),Rd=n(58506);function Ud(t,e){1&t&&(s.TgZ(0,"div",16),s._UZ(1,"mat-spinner",17),s.qZA())}function Pd(t,e){1&t&&(s.TgZ(0,"th",18),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"AUDIT_MESSAGES_LIST.ID")," "))}function Fd(t,e){if(1&t&&(s.TgZ(0,"td",19),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",t.id," ")}}function qd(t,e){1&t&&(s.TgZ(0,"th",18),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"AUDIT_MESSAGES_LIST.TIMESTAMP")," "))}function jd(t,e){if(1&t&&(s.TgZ(0,"td",19),s._uU(1),s.ALo(2,"parseDate"),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",s.xi3(2,1,t.createdAt,!0)," ")}}function Yd(t,e){1&t&&(s.TgZ(0,"th",20),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"AUDIT_MESSAGES_LIST.EVENT_NAME")))}function Bd(t,e){if(1&t&&(s.TgZ(0,"td",19),s._uU(1),s.ALo(2,"parseEventName"),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",s.lcZ(2,1,t.event.name)," ")}}function zd(t,e){1&t&&(s.TgZ(0,"th",20),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"AUDIT_MESSAGES_LIST.ACTOR")))}function Gd(t,e){if(1&t&&(s.TgZ(0,"td",19),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",t.actor," ")}}function Jd(t,e){1&t&&(s.TgZ(0,"th",20),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"AUDIT_MESSAGES_LIST.MESSAGE")))}function Vd(t,e){if(1&t&&(s.TgZ(0,"td",19),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",t.event.message," ")}}function Hd(t,e){1&t&&s._UZ(0,"th",20)}function Qd(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",19),s.TgZ(1,"button",21),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().viewDetails(e)}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.qZA()}2&t&&(s.xp6(2),s.hij(" ",s.lcZ(3,1,"AUDIT_MESSAGES_LIST.VIEW_DETAIL")," "))}function Wd(t,e){1&t&&s._UZ(0,"tr",22)}function $d(t,e){1&t&&s._UZ(0,"tr",23)}function Xd(t,e){1&t&&(s.TgZ(0,"app-alert",24),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_AUDIT_MESSAGES"),"\n"))}let Kd=(()=>{class t{constructor(t,e,n){this.dialog=t,this.dynamicPaginatingService=e,this.tableConfigService=n,this.pageSizeOptions=tt.f7,this.displayedColumns=["id","timestamp","name","actor","event.message","detail"]}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,Ld.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,ge.b)(()=>this.loadAuditMessagesPage())).subscribe()}ngOnInit(){this.dataSource=new w.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(t){const e=(0,tt.kZ)(),n=JSON.parse(JSON.stringify(t));e.minWidth="700px",e.maxWidth="1000px",e.data={message:n},this.dialog.open(Md,e)}exportData(t){(0,tt.O6)((0,tt.Xn)(this.dataSource.getData(),this.displayedColumns.filter(t=>"detail"!==t),this.getExportDataForColumn,this),t)}getExportDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"timestamp":return(0,i.p6)(t.createdAt,"d.M.y H.mm.ss","en");case"name":return t.event.name.split(".").pop();case"actor":return t.actor;default:return""}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.uw),s.Y36(w.ly),s.Y36(et.dB))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-audit-messages-list"]],viewQuery:function(t,e){if(1&t&&(s.Gf(tt.l9,7),s.Gf(st.YE,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.child=t.first),s.iGM(t=s.CRH())&&(e.sort=t.first)}},inputs:{tableId:"tableId",refresh:"refresh",displayedColumns:"displayedColumns",searchString:"searchString"},features:[s._Bn([{provide:Od.ye,useClass:w.Be}]),s.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"],["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",""],["color","accent","mat-flat-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.ALo(1,"async"),s.TgZ(2,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)}),s.YNc(3,Ud,2,0,"div",2),s.ALo(4,"async"),s.TgZ(5,"table",3),s.ynx(6,4),s.YNc(7,Pd,3,3,"th",5),s.YNc(8,Fd,2,1,"td",6),s.BQk(),s.ynx(9,7),s.YNc(10,qd,3,3,"th",5),s.YNc(11,jd,3,4,"td",6),s.BQk(),s.ynx(12,8),s.YNc(13,Yd,3,3,"th",9),s.YNc(14,Bd,3,3,"td",6),s.BQk(),s.ynx(15,10),s.YNc(16,zd,3,3,"th",9),s.YNc(17,Gd,2,1,"td",6),s.BQk(),s.ynx(18,11),s.YNc(19,Jd,3,3,"th",9),s.YNc(20,Vd,2,1,"td",6),s.BQk(),s.ynx(21,12),s.YNc(22,Hd,1,0,"th",9),s.YNc(23,Qd,4,3,"td",6),s.BQk(),s.YNc(24,Wd,1,0,"tr",13),s.YNc(25,$d,1,0,"tr",14),s.qZA(),s.qZA(),s.qZA(),s.YNc(26,Xd,3,3,"app-alert",15),s.ALo(27,"async")),2&t&&(s.Q6J("hidden",0===e.dataSource.allObjectCount&&!1===s.lcZ(1,9,e.dataSource.loading$)),s.xp6(2),s.Q6J("dataLength",e.dataSource.allObjectCount)("pageSizeOptions",e.pageSizeOptions)("tableId",e.tableId),s.xp6(1),s.Q6J("ngIf",s.lcZ(4,11,e.dataSource.loading$)),s.xp6(2),s.Q6J("dataSource",e.dataSource),s.xp6(19),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===e.dataSource.allObjectCount&&!1===s.lcZ(27,13,e.dataSource.loading$)))},directives:[ft.l,i.O5,_.BZ,st.YE,_.w1,_.fO,_.Dz,_.as,_.nj,E.$g,_.ge,st.nU,_.ev,x.lW,_.XQ,_.Gk,T.w],pipes:[i.Ov,f.X$,Rd.M,Dd],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;top:0;left:0;bottom:56px;right:0;background:rgba(0,0,0,.15);z-index:1;display:flex;align-items:center;justify-content:center}"]}),t})();const tp=[{path:"",component:p,children:[{path:"",component:m,data:{animation:"AdminOverviewPage"}},{path:"attributes",component:ue,data:{animation:"AdminAttributesPage"}},{path:"users",component:Gl.t,data:{animation:"AdminUsersPage"}},{path:"owners",component:Vf,data:{animation:"AdminOwnersPage"}},{path:"services",component:Lh,data:{animation:"AdminServicesPage"}},{path:"audit_log",component:(()=>{class t{constructor(){this.tableId=et.yW,this.refresh=!1}refreshTable(){this.refresh=!this.refresh}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-admin-audit-log"]],decls:5,vars:5,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"refresh","tableId"]],template:function(t,e){1&t&&(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 e.refreshTable()}),s.qZA(),s._UZ(4,"app-audit-messages-list",2)),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,3,"ADMIN.AUDIT_LOG.TITLE")),s.xp6(3),s.Q6J("refresh",e.refresh)("tableId",e.tableId))},directives:[ot.t,Kd],pipes:[f.X$],styles:[""]}),t})(),data:{animation:"AdminAuditLogPage"}},{path:"visualizer",component:ce,children:[{path:"",component:fe,data:{animation:"VisualizerOverviewPage"}},{path:"attrDependencies",component:he,data:{animation:"VisualizerAttrModulesPage"}},{path:"userDestinationRelationship",component:Se,data:{animation:"UserDestinationRelationshipPage"}},{path:"userDestinationRelationship/graph",component:zl,data:{animation:"UserDestinationGraphPage"}}]},{path:"ext_sources",component:ch,data:{animation:"AdminExtSourcesPage"}}]},{path:"users/:userId",component:Kl,children:[{path:"",component:th.Z,data:{animation:"UserOverviewPage"}},{path:"accounts",component:Id,data:{animation:"UserAccountsPage"}},{path:"attributes",component:rh.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:eh.j,data:{animation:"UserOrganizationsPage",showPrincipal:!1}},{path:"groups",component:nh.u,data:{animation:"UserGroupsPage",showPrincipal:!1}},{path:"identities",component:Th,data:{animation:"UserIdentitiesPage"}},{path:"facilities",component:$f,data:{animation:"UserFacilitiesPage"}},{path:"resources",component:qh,data:{animation:"UserRoles"}},{path:"identities/:identityId",component:Vh,data:{animation:"UserIdentityDetailPage"}},{path:"roles",component:lh.t,data:{animation:"UserRolesPage"}},{path:"service-identities",component:hh.R,data:{animation:"UserServiceIdentities"}},{path:"associated-users",component:_f.d,data:{animation:"AssociatedUsersPage"}}]},{path:"services/:serviceId",component:tf,children:[{path:"",component:ef,data:{animation:"ServiceOverviewPage"}},{path:"required-attributes",component:yf,data:{animation:"ServiceRequiredAttributesPage"}},{path:"destinations",component:Df,data:{animation:"ServiceDestinationsPage"}}]}];let ep=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[o.Bz.forChild(tp)],o.Bz]}),t})();var np=n(28780),rp=n(22727),ip=n(22280),op=n(65515);let ap=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Ba,Ml,i.ez,ep,np.m,rp.r,ht.ez,ip.d4,op.UsersModule]]}),t})()},94357:function(t,e,n){"use strict";n.d(e,{q:function(){return j}});var r=n(58623),i=n(4230),o=n(67033),a=n(84140),s=n(68416),u=n(31572),c=n(82819),l=n(61511),h=n(29236),f=n(43691),d=n(36922),p=n(39571),g=n(48160);function m(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"th",21),u.TgZ(1,"mat-checkbox",22),u.NdJ("change",function(e){u.CHM(t);const n=u.oxw();return e?n.masterToggle():null}),u.qZA(),u.qZA()}if(2&t){const t=u.oxw();u.xp6(1),u.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function v(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"td",23),u.TgZ(1,"mat-checkbox",24),u.NdJ("change",function(e){const n=u.CHM(t).$implicit,r=u.oxw();return e?r.selection.toggle(n):null})("click",function(t){return t.stopPropagation()}),u.qZA(),u.qZA()}if(2&t){const t=e.$implicit,n=u.oxw();u.xp6(1),u.Q6J("aria-label",n.checkboxLabel(t))("checked",n.selection.isSelected(t))}}function y(t,e){1&t&&(u.TgZ(0,"th",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION_ID")," "))}function _(t,e){if(1&t&&(u.TgZ(0,"td",26),u._uU(1),u.qZA()),2&t){const t=e.$implicit;u.xp6(1),u.hij(" ",t.id," ")}}function w(t,e){1&t&&(u.TgZ(0,"th",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.SERVICE")," "))}function b(t,e){if(1&t&&(u.TgZ(0,"td",27),u._uU(1),u.qZA()),2&t){const t=e.$implicit;u.xp6(1),u.Oqu(t.service.name)}}function x(t,e){1&t&&u._UZ(0,"th",28)}function E(t,e){1&t&&(u.TgZ(0,"mat-icon",30),u.ALo(1,"translate"),u._uU(2," warning "),u.qZA()),2&t&&u.s9C("matTooltip",u.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.WARN"))}function T(t,e){if(1&t&&(u.TgZ(0,"td",27),u.YNc(1,E,3,3,"mat-icon",29),u.qZA()),2&t){const t=e.$implicit,n=u.oxw();u.xp6(1),u.Q6J("ngIf",!n.services.has(t.service.id))}}function A(t,e){1&t&&(u.TgZ(0,"th",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.FACILITY")," "))}function S(t,e){if(1&t&&(u.TgZ(0,"td",27),u._uU(1),u.qZA()),2&t){const t=e.$implicit;u.xp6(1),u.Oqu(t.facility.name)}}function I(t,e){1&t&&(u.TgZ(0,"th",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION")," "))}function D(t,e){if(1&t&&(u.TgZ(0,"td",27),u._uU(1),u.qZA()),2&t){const t=e.$implicit;u.xp6(1),u.Oqu(t.destination)}}function N(t,e){1&t&&(u.TgZ(0,"th",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.TYPE")," "))}function k(t,e){if(1&t&&(u.TgZ(0,"td",27),u._uU(1),u.qZA()),2&t){const t=e.$implicit;u.xp6(1),u.Oqu(t.type.toUpperCase())}}function C(t,e){1&t&&u._UZ(0,"th",28)}function Z(t,e){1&t&&(u.TgZ(0,"mat-icon",32),u.ALo(1,"translate"),u._uU(2," check_circle_outline "),u.qZA()),2&t&&u.s9C("matTooltip",u.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.ALLOWED"))}function M(t,e){1&t&&(u.TgZ(0,"mat-icon",32),u.ALo(1,"translate"),u._uU(2," block "),u.qZA()),2&t&&u.s9C("matTooltip",u.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.BLOCKED"))}function O(t,e){if(1&t&&(u.TgZ(0,"td",27),u.YNc(1,Z,3,3,"mat-icon",31),u.YNc(2,M,3,3,"mat-icon",31),u.qZA()),2&t){const t=e.$implicit;u.xp6(1),u.Q6J("ngIf",!t.blocked),u.xp6(1),u.Q6J("ngIf",t.blocked)}}function L(t,e){1&t&&(u.TgZ(0,"th",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.PROPAGATION_TYPE")," "))}function R(t,e){if(1&t&&(u.TgZ(0,"td",27),u._uU(1),u.qZA()),2&t){const t=e.$implicit;u.xp6(1),u.Oqu(t.propagationType)}}function U(t,e){1&t&&u._UZ(0,"tr",33)}function P(t,e){1&t&&u._UZ(0,"tr",34)}function F(t,e){1&t&&(u.TgZ(0,"app-alert",35),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function q(t,e){1&t&&(u.TgZ(0,"app-alert",35),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.NO_DESTINATIONS"),"\n"))}let j=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.destinations=[],this.selection=new i.Ov(!0,[]),this.filterValue="",this.pageSizeOptions=a.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"destinationId"!==t)),this.dataSource=new o.by(this.destinations),this.setDataSource(),this.dataSource.filter=this.filterValue.toLowerCase()}getDataForColumn(t,e){switch(e){case"destinationId":return t.id.toString();case"service":return t.service.name;case"facility":return t.facility.name;case"destination":return t.destination;case"type":return t.type;case"status":return t.blocked?"blocked":"allowed";case"propagationType":return t.propagationType;default:return""}}exportData(t){(0,a.O6)((0,a.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(t,e)=>(0,a.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,a.pR)(t,e,this.getDataForColumn,this),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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(s.x4),u.Y36(s.UA))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-perun-web-apps-destination-list"]],viewQuery:function(t,e){if(1&t&&(u.Gf(r.YE,7),u.Gf(a.l9,7)),2&t){let t;u.iGM(t=u.CRH())&&(e.matSort=t.first),u.iGM(t=u.CRH())&&(e.child=t.first)}},inputs:{destinations:"destinations",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",services:"services"},features:[u.TTD],decls:34,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"],["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(t,e){1&t&&(u.TgZ(0,"div",0),u.TgZ(1,"perun-web-apps-table-wrapper",1),u.NdJ("exportData",function(t){return e.exportData(t)}),u.TgZ(2,"table",2),u.ynx(3,3),u.YNc(4,m,2,3,"th",4),u.YNc(5,v,2,2,"td",5),u.BQk(),u.ynx(6,6),u.YNc(7,y,3,3,"th",7),u.YNc(8,_,2,1,"td",8),u.BQk(),u.ynx(9,9),u.YNc(10,w,3,3,"th",7),u.YNc(11,b,2,1,"td",10),u.BQk(),u.ynx(12,11),u.YNc(13,x,1,0,"th",12),u.YNc(14,T,2,1,"td",10),u.BQk(),u.ynx(15,13),u.YNc(16,A,3,3,"th",7),u.YNc(17,S,2,1,"td",10),u.BQk(),u.ynx(18,14),u.YNc(19,I,3,3,"th",7),u.YNc(20,D,2,1,"td",10),u.BQk(),u.ynx(21,15),u.YNc(22,N,3,3,"th",7),u.YNc(23,k,2,1,"td",10),u.BQk(),u.ynx(24,16),u.YNc(25,C,1,0,"th",12),u.YNc(26,O,3,2,"td",10),u.BQk(),u.ynx(27,17),u.YNc(28,L,3,3,"th",7),u.YNc(29,R,2,1,"td",10),u.BQk(),u.YNc(30,U,1,0,"tr",18),u.YNc(31,P,1,0,"tr",19),u.qZA(),u.qZA(),u.qZA(),u.YNc(32,F,3,3,"app-alert",20),u.YNc(33,q,3,3,"app-alert",20)),2&t&&(u.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.destinations.length),u.xp6(1),u.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),u.xp6(1),u.Q6J("dataSource",e.dataSource),u.xp6(28),u.Q6J("matHeaderRowDef",e.displayedColumns),u.xp6(1),u.Q6J("matRowDefColumns",e.displayedColumns),u.xp6(1),u.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.destinations.length),u.xp6(1),u.Q6J("ngIf",0===e.destinations.length))},directives:[c.l,o.BZ,r.YE,o.w1,o.fO,o.Dz,o.as,o.nj,l.O5,o.ge,h.oG,o.ev,r.nU,f.Hw,d.gM,o.XQ,o.Gk,p.w],pipes:[g.X$],styles:[".warn[_ngcontent-%COMP%]{color:#ebe134}"]}),t})()},60547:function(t,e,n){"use strict";n.d(e,{u:function(){return v}});var r=n(65249),i=n(84608),o=n(67033),a=n(68416),s=n(31572),u=n(48160),c=n(61511),l=n(15980),h=n(67806),f=n(39571),d=n(94357);function p(t,e){1&t&&s._UZ(0,"mat-spinner",6)}function g(t,e){if(1&t&&s._UZ(0,"app-perun-web-apps-destination-list",11),2&t){const t=s.oxw(2);s.Q6J("destinations",t.destinations)("displayedColumns",t.displayedColumns)}}function m(t,e){if(1&t&&(s.TgZ(0,"div",7),s.TgZ(1,"app-alert",8),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"p"),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"div",9),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.YNc(10,g,1,2,"app-perun-web-apps-destination-list",10),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.Oqu(s.lcZ(3,4,"DIALOGS.REMOVE_DESTINATIONS.WARNING")),s.xp6(3),s.Oqu(s.lcZ(6,6,"DIALOGS.REMOVE_DESTINATIONS.DESCRIPTION")),s.xp6(3),s.hij(" ",s.lcZ(9,8,"DIALOGS.REMOVE_DESTINATIONS.ASK")," "),s.xp6(2),s.Q6J("ngIf",!t.loading)}}let v=(()=>{class t{constructor(t,e,n,r,i){this.dialogRef=t,this.data=e,this.notificator=n,this.translate=r,this.serviceManager=i,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 o.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 t=this.destinations.pop();this.serviceManager.removeDestination(t.service.id,t.facility.id,t.destination,t.type).subscribe(()=>{this.deleteDestinations()},()=>this.loading=!1)}onConfirm(){this.loading=!0,this.deleteDestinations()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(i.so),s.Y36(i.WI),s.Y36(a.V6),s.Y36(u.sK),s.Y36(r.KK))},t.\u0275cmp=s.Xpm({type:t,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"],["mat-flat-button","","color","warn",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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div"),s.YNc(4,p,1,0,"mat-spinner",1),s.YNc(5,m,11,10,"div",2),s.TgZ(6,"div",3),s.TgZ(7,"button",4),s.NdJ("click",function(){return e.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return e.onConfirm()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,9,"DIALOGS.REMOVE_DESTINATIONS.TITLE")),s.xp6(2),s.Tol(e.theme),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,11,"DIALOGS.REMOVE_DESTINATIONS.CANCEL")," "),s.xp6(2),s.Q6J("disabled",e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,13,"DIALOGS.REMOVE_DESTINATIONS.CONFIRM")," "))},directives:[i.uh,c.O5,i.H8,l.lW,h.$g,i.xY,f.w,d.q],pipes:[u.X$],styles:[""]}),t})()},17767:function(t,e,n){"use strict";n.d(e,{Q:function(){return D}});var r=n(58623),i=n(4230),o=n(67033),a=n(84140),s=n(68416),u=n(31572),c=n(82819),l=n(61511),h=n(29236),f=n(39571),d=n(48160);function p(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"th",16),u.TgZ(1,"mat-checkbox",17),u.NdJ("change",function(e){u.CHM(t);const n=u.oxw();return e?n.masterToggle():null}),u.qZA(),u.qZA()}if(2&t){const t=u.oxw();u.xp6(1),u.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function g(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"td",18),u.TgZ(1,"mat-checkbox",19),u.NdJ("change",function(e){const n=u.CHM(t).$implicit,r=u.oxw();return e?r.selection.toggle(n):null})("click",function(t){return t.stopPropagation()}),u.qZA(),u.qZA()}if(2&t){const t=e.$implicit,n=u.oxw();u.xp6(1),u.Q6J("aria-label",n.checkboxLabel(t))("checked",n.selection.isSelected(t))}}function m(t,e){1&t&&(u.TgZ(0,"th",20),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.ID")," "))}function v(t,e){if(1&t&&(u.TgZ(0,"td",21),u._uU(1),u.qZA()),2&t){const t=e.$implicit;u.xp6(1),u.hij(" ",t.id," ")}}function y(t,e){1&t&&(u.TgZ(0,"th",20),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NAME")," "))}function _(t,e){if(1&t&&(u.TgZ(0,"td",22),u._uU(1),u.qZA()),2&t){const t=e.$implicit;u.xp6(1),u.Oqu(t.name)}}function w(t,e){1&t&&(u.TgZ(0,"th",20),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.CONTACT")," "))}function b(t,e){if(1&t&&(u.TgZ(0,"td",22),u._uU(1),u.qZA()),2&t){const t=e.$implicit;u.xp6(1),u.Oqu(t.contact)}}function x(t,e){1&t&&(u.TgZ(0,"th",20),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.TYPE")," "))}function E(t,e){if(1&t&&(u.TgZ(0,"td",22),u._uU(1),u.qZA()),2&t){const t=e.$implicit;u.xp6(1),u.Oqu(t.type)}}function T(t,e){1&t&&u._UZ(0,"tr",23)}function A(t,e){1&t&&u._UZ(0,"tr",24)}function S(t,e){1&t&&(u.TgZ(0,"app-alert",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_OWNERS"),"\n"))}function I(t,e){1&t&&(u.TgZ(0,"app-alert",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_FILTER_OWNERS"),"\n"))}let D=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.owners=[],this.selection=new i.Ov(!0,[]),this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.pageSizeOptions=a.f7}set matSort(t){this.sort=t,this.setDataSource()}ngAfterViewInit(){this.setDataSource()}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return t.name;case"contact":return t.contact;case"type":return t.type;default:return""}}exportData(t){(0,a.O6)((0,a.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>(0,a.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,a.pR)(t,e,this.getDataForColumn,this),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(t=>"id"!==t)),this.dataSource=new o.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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(s.x4),u.Y36(s.UA))},t.\u0275cmp=u.Xpm({type:t,selectors:[["perun-web-apps-owners-list"]],viewQuery:function(t,e){if(1&t&&(u.Gf(a.l9,7),u.Gf(r.YE,7)),2&t){let t;u.iGM(t=u.CRH())&&(e.child=t.first),u.iGM(t=u.CRH())&&(e.matSort=t.first)}},inputs:{owners:"owners",selection:"selection",tableId:"tableId",filterValue:"filterValue",displayedColumns:"displayedColumns"},features:[u.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(t,e){1&t&&(u.TgZ(0,"div",0),u.TgZ(1,"perun-web-apps-table-wrapper",1),u.NdJ("exportData",function(t){return e.exportData(t)}),u.TgZ(2,"table",2),u.ynx(3,3),u.YNc(4,p,2,3,"th",4),u.YNc(5,g,2,2,"td",5),u.BQk(),u.ynx(6,6),u.YNc(7,m,3,3,"th",7),u.YNc(8,v,2,1,"td",8),u.BQk(),u.ynx(9,9),u.YNc(10,y,3,3,"th",7),u.YNc(11,_,2,1,"td",10),u.BQk(),u.ynx(12,11),u.YNc(13,w,3,3,"th",7),u.YNc(14,b,2,1,"td",10),u.BQk(),u.ynx(15,12),u.YNc(16,x,3,3,"th",7),u.YNc(17,E,2,1,"td",10),u.BQk(),u.YNc(18,T,1,0,"tr",13),u.YNc(19,A,1,0,"tr",14),u.qZA(),u.qZA(),u.qZA(),u.YNc(20,S,3,3,"app-alert",15),u.YNc(21,I,3,3,"app-alert",15)),2&t&&(u.Q6J("hidden",0===e.owners.length||0===e.dataSource.filteredData.length),u.xp6(1),u.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),u.xp6(1),u.Q6J("dataSource",e.dataSource),u.xp6(16),u.Q6J("matHeaderRowDef",e.displayedColumns),u.xp6(1),u.Q6J("matRowDefColumns",e.displayedColumns),u.xp6(1),u.Q6J("ngIf",!e.owners.length),u.xp6(1),u.Q6J("ngIf",!e.dataSource.filteredData.length&&e.owners.length))},directives:[c.l,o.BZ,r.YE,o.w1,o.fO,o.Dz,o.as,o.nj,l.O5,o.ge,h.oG,o.ev,r.nU,o.XQ,o.Gk,f.w],pipes:[d.X$],styles:[""]}),t})()},95914:function(t,e,n){"use strict";function r(t,e){return t(e={exports:{}},e.exports),e.exports}n.r(e),n.d(e,{StackParser:function(){return l},graphviz:function(){return v},graphvizSync:function(){return _},parse:function(){return h},wasmFolder:function(){return s}});var i=r(function(t,e){var n,r=(n="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(t){var e,r=void 0!==(t=t||{})?t:{},i={};for(e in r)r.hasOwnProperty(e)&&(i[e]=r[e]);var o,a="./this.program",s="";document.currentScript&&(s=document.currentScript.src),n&&(s=n),s=0!==s.indexOf("blob:")?s.substr(0,s.lastIndexOf("/")+1):"",o=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText};var u,c,l=r.print||console.log.bind(console),h=r.printErr||console.warn.bind(console);for(e in i)i.hasOwnProperty(e)&&(r[e]=i[e]);i=null,r.thisProgram&&(a=r.thisProgram),r.wasmBinary&&(u=r.wasmBinary),"object"!=typeof WebAssembly&&h("no native wasm support detected");var f=new WebAssembly.Table({initial:153,maximum:153,element:"anyfunc"}),d=!1;function p(t,e){t||j("Assertion failed: "+e)}var g,m,v,y,_,w="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function b(t,e,n){for(var r=e+n,i=e;t[i]&&!(i>=r);)++i;if(i-e>16&&t.subarray&&w)return w.decode(t.subarray(e,i));for(var o="";e>10,56320|1023&c)}}else o+=String.fromCharCode((31&a)<<6|s)}else o+=String.fromCharCode(a)}return o}function x(t,e){return t?b(v,t,e):""}function E(t,e,n,r){if(!(r>0))return 0;for(var i=n,o=n+r-1,a=0;a=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&t.charCodeAt(++a)),s<=127){if(n>=o)break;e[n++]=s}else if(s<=2047){if(n+1>=o)break;e[n++]=192|s>>6,e[n++]=128|63&s}else if(s<=65535){if(n+2>=o)break;e[n++]=224|s>>12,e[n++]=128|s>>6&63,e[n++]=128|63&s}else{if(n+3>=o)break;e[n++]=240|s>>18,e[n++]=128|s>>12&63,e[n++]=128|s>>6&63,e[n++]=128|63&s}}return e[n]=0,n-i}function T(t){for(var e=0,n=0;n=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&t.charCodeAt(++n)),r<=127?++e:e+=r<=2047?2:r<=65535?3:4}return e}function A(t){g=t,r.HEAP8=m=new Int8Array(t),r.HEAP16=new Int16Array(t),r.HEAP32=y=new Int32Array(t),r.HEAPU8=v=new Uint8Array(t),r.HEAPU16=new Uint16Array(t),r.HEAPU32=new Uint32Array(t),r.HEAPF32=new Float32Array(t),r.HEAPF64=_=new Float64Array(t)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var S=r.TOTAL_MEMORY||16777216;function I(t){for(;t.length>0;){var e=t.shift();if("function"!=typeof e){var n=e.func;"number"==typeof n?void 0===e.arg?r.dynCall_v(n):r.dynCall_vi(n,e.arg):n(void 0===e.arg?null:e.arg)}else e()}}(c=r.wasmMemory?r.wasmMemory:new WebAssembly.Memory({initial:S/65536}))&&(g=c.buffer),S=g.byteLength,A(g),y[2080]=5251360;var D=[],N=[],k=[],C=[],Z=!1,M=Math.abs,O=Math.ceil,L=Math.floor,R=Math.min,U=0,P=null;function F(t){U++,r.monitorRunDependencies&&r.monitorRunDependencies(U)}function q(t){if(U--,r.monitorRunDependencies&&r.monitorRunDependencies(U),0==U&&P){var e=P;P=null,e()}}function j(t){throw r.onAbort&&r.onAbort(t),l(t+=""),h(t),d=!0,t="abort("+t+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(t)}function Y(t){return String.prototype.startsWith?t.startsWith("data:application/octet-stream;base64,"):0===t.indexOf("data:application/octet-stream;base64,")}r.preloadedImages={},r.preloadedAudios={};var B,z,G,J="expatlib.wasm";function V(){try{if(u)return new Uint8Array(u);throw"both async and sync fetching of the wasm failed"}catch(h){j(h)}}Y(J)||(B=J,J=r.locateFile?r.locateFile(B,s):s+B);var H={1184:function(t){var e=r.getCache(r.CExpatJS)[t];if(!e.hasOwnProperty("startElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::startElement.";e.startElement()},1404:function(t){var e=r.getCache(r.CExpatJS)[t];if(!e.hasOwnProperty("endElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::endElement.";e.endElement()},1616:function(t){var e=r.getCache(r.CExpatJS)[t];if(!e.hasOwnProperty("characterData"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::characterData.";e.characterData()}};N.push({func:function(){lt()}});var Q={splitPath:function(t){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(t).slice(1)},normalizeArray:function(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n;n--)t.unshift("..");return t},normalize:function(t){var e="/"===t.charAt(0),n="/"===t.substr(-1);return(t=Q.normalizeArray(t.split("/").filter(function(t){return!!t}),!e).join("/"))||e||(t="."),t&&n&&(t+="/"),(e?"/":"")+t},dirname:function(t){var e=Q.splitPath(t),n=e[0],r=e[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},basename:function(t){if("/"===t)return"/";var e=t.lastIndexOf("/");return-1===e?t:t.substr(e+1)},extname:function(t){return Q.splitPath(t)[3]},join:function(){var t=Array.prototype.slice.call(arguments,0);return Q.normalize(t.join("/"))},join2:function(t,e){return Q.normalize(t+"/"+e)}};function W(t){return r.___errno_location&&(y[r.___errno_location()>>2]=t),t}var $={resolve:function(){for(var t="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var r=n>=0?arguments[n]:tt.cwd();if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");if(!r)return"";t=r+"/"+t,e="/"===r.charAt(0)}return(e?"/":"")+(t=Q.normalizeArray(t.split("/").filter(function(t){return!!t}),!e).join("/"))||"."},relative:function(t,e){function n(t){for(var e=0;e=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=$.resolve(t).substr(1),e=$.resolve(e).substr(1);for(var r=n(t.split("/")),i=n(e.split("/")),o=Math.min(r.length,i.length),a=o,s=0;s0&&(l(b(t.output,0)),t.output=[])}},default_tty1_ops:{put_char:function(t,e){null===e||10===e?(h(b(t.output,0)),t.output=[]):0!=e&&t.output.push(e)},flush:function(t){t.output&&t.output.length>0&&(h(b(t.output,0)),t.output=[])}}},K={ops_table:null,mount:function(t){return K.createNode(null,"/",16895,0)},createNode:function(t,e,n,r){if(tt.isBlkdev(n)||tt.isFIFO(n))throw new tt.ErrnoError(63);K.ops_table||(K.ops_table={dir:{node:{getattr:K.node_ops.getattr,setattr:K.node_ops.setattr,lookup:K.node_ops.lookup,mknod:K.node_ops.mknod,rename:K.node_ops.rename,unlink:K.node_ops.unlink,rmdir:K.node_ops.rmdir,readdir:K.node_ops.readdir,symlink:K.node_ops.symlink},stream:{llseek:K.stream_ops.llseek}},file:{node:{getattr:K.node_ops.getattr,setattr:K.node_ops.setattr},stream:{llseek:K.stream_ops.llseek,read:K.stream_ops.read,write:K.stream_ops.write,allocate:K.stream_ops.allocate,mmap:K.stream_ops.mmap,msync:K.stream_ops.msync}},link:{node:{getattr:K.node_ops.getattr,setattr:K.node_ops.setattr,readlink:K.node_ops.readlink},stream:{}},chrdev:{node:{getattr:K.node_ops.getattr,setattr:K.node_ops.setattr},stream:tt.chrdev_stream_ops}});var i=tt.createNode(t,e,n,r);return tt.isDir(i.mode)?(i.node_ops=K.ops_table.dir.node,i.stream_ops=K.ops_table.dir.stream,i.contents={}):tt.isFile(i.mode)?(i.node_ops=K.ops_table.file.node,i.stream_ops=K.ops_table.file.stream,i.usedBytes=0,i.contents=null):tt.isLink(i.mode)?(i.node_ops=K.ops_table.link.node,i.stream_ops=K.ops_table.link.stream):tt.isChrdev(i.mode)&&(i.node_ops=K.ops_table.chrdev.node,i.stream_ops=K.ops_table.chrdev.stream),i.timestamp=Date.now(),t&&(t.contents[e]=i),i},getFileDataAsRegularArray:function(t){if(t.contents&&t.contents.subarray){for(var e=[],n=0;n=e)){e=Math.max(e,n*(n<1048576?2:1.125)|0),0!=n&&(e=Math.max(e,256));var r=t.contents;t.contents=new Uint8Array(e),t.usedBytes>0&&t.contents.set(r.subarray(0,t.usedBytes),0)}},resizeFileStorage:function(t,e){if(t.usedBytes!=e){if(0==e)return t.contents=null,void(t.usedBytes=0);if(!t.contents||t.contents.subarray){var n=t.contents;return t.contents=new Uint8Array(e),n&&t.contents.set(n.subarray(0,Math.min(e,t.usedBytes))),void(t.usedBytes=e)}if(t.contents||(t.contents=[]),t.contents.length>e)t.contents.length=e;else for(;t.contents.length=t.node.usedBytes)return 0;var a=Math.min(t.node.usedBytes-i,r);if(a>8&&o.subarray)e.set(o.subarray(i,i+a),n);else for(var s=0;s0||i+r8)throw new tt.ErrnoError(32);for(var i=Q.normalizeArray(t.split("/").filter(function(t){return!!t}),!1),o=tt.root,a="/",s=0;s40)throw new tt.ErrnoError(32)}}return{path:a,node:o}},getPath:function(t){for(var e;;){if(tt.isRoot(t)){var n=t.mount.mountpoint;return e?"/"!==n[n.length-1]?n+"/"+e:n+e:n}e=e?t.name+"/"+e:t.name,t=t.parent}},hashName:function(t,e){for(var n=0,r=0;r>>0)%tt.nameTable.length},hashAddNode:function(t){var e=tt.hashName(t.parent.id,t.name);t.name_next=tt.nameTable[e],tt.nameTable[e]=t},hashRemoveNode:function(t){var e=tt.hashName(t.parent.id,t.name);if(tt.nameTable[e]===t)tt.nameTable[e]=t.name_next;else for(var n=tt.nameTable[e];n;){if(n.name_next===t){n.name_next=t.name_next;break}n=n.name_next}},lookupNode:function(t,e){var n=tt.mayLookup(t);if(n)throw new tt.ErrnoError(n,t);for(var r=tt.hashName(t.id,e),i=tt.nameTable[r];i;i=i.name_next)if(i.parent.id===t.id&&i.name===e)return i;return tt.lookup(t,e)},createNode:function(t,e,n,r){tt.FSNode||(tt.FSNode=function(t,e,n,r){t||(t=this),this.parent=t,this.mount=t.mount,this.mounted=null,this.id=tt.nextInode++,this.name=e,this.mode=n,this.node_ops={},this.stream_ops={},this.rdev=r},tt.FSNode.prototype={},Object.defineProperties(tt.FSNode.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(t){t?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(t){t?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return tt.isDir(this.mode)}},isDevice:{get:function(){return tt.isChrdev(this.mode)}}}));var i=new tt.FSNode(t,e,n,r);return tt.hashAddNode(i),i},destroyNode:function(t){tt.hashRemoveNode(t)},isRoot:function(t){return t===t.parent},isMountpoint:function(t){return!!t.mounted},isFile:function(t){return 32768==(61440&t)},isDir:function(t){return 16384==(61440&t)},isLink:function(t){return 40960==(61440&t)},isChrdev:function(t){return 8192==(61440&t)},isBlkdev:function(t){return 24576==(61440&t)},isFIFO:function(t){return 4096==(61440&t)},isSocket:function(t){return 49152==(49152&t)},flagModes:{r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function(t){var e=tt.flagModes[t];if(void 0===e)throw new Error("Unknown file open mode: "+t);return e},flagsToPermissionString:function(t){var e=["r","w","rw"][3&t];return 512&t&&(e+="w"),e},nodePermissions:function(t,e){return tt.ignorePermissions||(-1===e.indexOf("r")||292&t.mode)&&(-1===e.indexOf("w")||146&t.mode)&&(-1===e.indexOf("x")||73&t.mode)?0:2},mayLookup:function(t){return tt.nodePermissions(t,"x")||(t.node_ops.lookup?0:2)},mayCreate:function(t,e){try{return tt.lookupNode(t,e),20}catch(n){}return tt.nodePermissions(t,"wx")},mayDelete:function(t,e,n){var r;try{r=tt.lookupNode(t,e)}catch(o){return o.errno}var i=tt.nodePermissions(t,"wx");if(i)return i;if(n){if(!tt.isDir(r.mode))return 54;if(tt.isRoot(r)||tt.getPath(r)===tt.cwd())return 10}else if(tt.isDir(r.mode))return 31;return 0},mayOpen:function(t,e){return t?tt.isLink(t.mode)?32:tt.isDir(t.mode)&&("r"!==tt.flagsToPermissionString(e)||512&e)?31:tt.nodePermissions(t,tt.flagsToPermissionString(e)):44},MAX_OPEN_FDS:4096,nextfd:function(t,e){e=e||tt.MAX_OPEN_FDS;for(var n=t=t||0;n<=e;n++)if(!tt.streams[n])return n;throw new tt.ErrnoError(33)},getStream:function(t){return tt.streams[t]},createStream:function(t,e,n){tt.FSStream||(tt.FSStream=function(){},tt.FSStream.prototype={},Object.defineProperties(tt.FSStream.prototype,{object:{get:function(){return this.node},set:function(t){this.node=t}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}}));var r=new tt.FSStream;for(var i in t)r[i]=t[i];t=r;var o=tt.nextfd(e,n);return t.fd=o,tt.streams[o]=t,t},closeStream:function(t){tt.streams[t]=null},chrdev_stream_ops:{open:function(t){var e=tt.getDevice(t.node.rdev);t.stream_ops=e.stream_ops,t.stream_ops.open&&t.stream_ops.open(t)},llseek:function(){throw new tt.ErrnoError(70)}},major:function(t){return t>>8},minor:function(t){return 255&t},makedev:function(t,e){return t<<8|e},registerDevice:function(t,e){tt.devices[t]={stream_ops:e}},getDevice:function(t){return tt.devices[t]},getMounts:function(t){for(var e=[],n=[t];n.length;){var r=n.pop();e.push(r),n.push.apply(n,r.mounts)}return e},syncfs:function(t,e){"function"==typeof t&&(e=t,t=!1),tt.syncFSRequests++,tt.syncFSRequests>1&&h("warning: "+tt.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var n=tt.getMounts(tt.root.mount),r=0;function i(t){return tt.syncFSRequests--,e(t)}function o(t){if(t)return o.errored?void 0:(o.errored=!0,i(t));++r>=n.length&&i(null)}n.forEach(function(e){if(!e.type.syncfs)return o(null);e.type.syncfs(e,t,o)})},mount:function(t,e,n){var r,i="/"===n,o=!n;if(i&&tt.root)throw new tt.ErrnoError(10);if(!i&&!o){var a=tt.lookupPath(n,{follow_mount:!1});if(n=a.path,tt.isMountpoint(r=a.node))throw new tt.ErrnoError(10);if(!tt.isDir(r.mode))throw new tt.ErrnoError(54)}var s={type:t,opts:e,mountpoint:n,mounts:[]},u=t.mount(s);return u.mount=s,s.root=u,i?tt.root=u:r&&(r.mounted=s,r.mount&&r.mount.mounts.push(s)),u},unmount:function(t){var e=tt.lookupPath(t,{follow_mount:!1});if(!tt.isMountpoint(e.node))throw new tt.ErrnoError(28);var n=e.node,r=n.mounted,i=tt.getMounts(r);Object.keys(tt.nameTable).forEach(function(t){for(var e=tt.nameTable[t];e;){var n=e.name_next;-1!==i.indexOf(e.mount)&&tt.destroyNode(e),e=n}}),n.mounted=null;var o=n.mount.mounts.indexOf(r);n.mount.mounts.splice(o,1)},lookup:function(t,e){return t.node_ops.lookup(t,e)},mknod:function(t,e,n){var r=tt.lookupPath(t,{parent:!0}).node,i=Q.basename(t);if(!i||"."===i||".."===i)throw new tt.ErrnoError(28);var o=tt.mayCreate(r,i);if(o)throw new tt.ErrnoError(o);if(!r.node_ops.mknod)throw new tt.ErrnoError(63);return r.node_ops.mknod(r,i,e,n)},create:function(t,e){return e=void 0!==e?e:438,e&=4095,tt.mknod(t,e|=32768,0)},mkdir:function(t,e){return e=void 0!==e?e:511,e&=1023,tt.mknod(t,e|=16384,0)},mkdirTree:function(t,e){for(var n=t.split("/"),r="",i=0;ithis.length-1||t<0)){var e=t%this.chunkSize;return this.getter(t/this.chunkSize|0)[e]}},o.prototype.setDataGetter=function(t){this.getter=t},o.prototype.cacheLength=function(){var t=new XMLHttpRequest;if(t.open("HEAD",n,!1),t.send(null),!(t.status>=200&&t.status<300||304===t.status))throw new Error("Couldn't load "+n+". Status: "+t.status);var e,r=Number(t.getResponseHeader("Content-length")),i=(e=t.getResponseHeader("Accept-Ranges"))&&"bytes"===e,o=(e=t.getResponseHeader("Content-Encoding"))&&"gzip"===e,a=1048576;i||(a=r);var s=this;s.setDataGetter(function(t){var e=t*a,i=(t+1)*a-1;if(i=Math.min(i,r-1),void 0===s.chunks[t]&&(s.chunks[t]=function(t,e){if(t>e)throw new Error("invalid range ("+t+", "+e+") or no bytes requested!");if(e>r-1)throw new Error("only "+r+" bytes available! programmer error!");var i=new XMLHttpRequest;if(i.open("GET",n,!1),r!==a&&i.setRequestHeader("Range","bytes="+t+"-"+e),"undefined"!=typeof Uint8Array&&(i.responseType="arraybuffer"),i.overrideMimeType&&i.overrideMimeType("text/plain; charset=x-user-defined"),i.send(null),!(i.status>=200&&i.status<300||304===i.status))throw new Error("Couldn't load "+n+". Status: "+i.status);return void 0!==i.response?new Uint8Array(i.response||[]):at(i.responseText||"",!0)}(e,i)),void 0===s.chunks[t])throw new Error("doXHR failed!");return s.chunks[t]}),!o&&r||(a=r=1,r=this.getter(0).length,a=r,l("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=r,this._chunkSize=a,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var a,s=tt.createFile(t,e,a={isDevice:!1,url:n},r,i);a.contents?s.contents=a.contents:a.url&&(s.contents=null,s.url=a.url),Object.defineProperties(s,{usedBytes:{get:function(){return this.contents.length}}});var u={};return Object.keys(s.stream_ops).forEach(function(t){var e=s.stream_ops[t];u[t]=function(){if(!tt.forceLoadFile(s))throw new tt.ErrnoError(29);return e.apply(null,arguments)}}),u.read=function(t,e,n,r,i){if(!tt.forceLoadFile(s))throw new tt.ErrnoError(29);var o=t.node.contents;if(i>=o.length)return 0;var a=Math.min(o.length-i,r);if(o.slice)for(var u=0;u>2]=r.dev,y[n+4>>2]=0,y[n+8>>2]=r.ino,y[n+12>>2]=r.mode,y[n+16>>2]=r.nlink,y[n+20>>2]=r.uid,y[n+24>>2]=r.gid,y[n+28>>2]=r.rdev,y[n+32>>2]=0,G=[r.size>>>0,(z=r.size,+M(z)>=1?z>0?(0|R(+L(z/4294967296),4294967295))>>>0:~~+O((z-+(~~z>>>0))/4294967296)>>>0:0)],y[n+40>>2]=G[0],y[n+44>>2]=G[1],y[n+48>>2]=4096,y[n+52>>2]=r.blocks,y[n+56>>2]=r.atime.getTime()/1e3|0,y[n+60>>2]=0,y[n+64>>2]=r.mtime.getTime()/1e3|0,y[n+68>>2]=0,y[n+72>>2]=r.ctime.getTime()/1e3|0,y[n+76>>2]=0,G=[r.ino>>>0,(z=r.ino,+M(z)>=1?z>0?(0|R(+L(z/4294967296),4294967295))>>>0:~~+O((z-+(~~z>>>0))/4294967296)>>>0:0)],y[n+80>>2]=G[0],y[n+84>>2]=G[1],0},doMsync:function(t,e,n,r,i){var o=v.slice(t,t+n);tt.msync(e,o,i,n,r)},doMkdir:function(t,e){return"/"===(t=Q.normalize(t))[t.length-1]&&(t=t.substr(0,t.length-1)),tt.mkdir(t,e,0),0},doMknod:function(t,e,n){switch(61440&e){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return tt.mknod(t,e,n),0},doReadlink:function(t,e,n){if(n<=0)return-28;var r=tt.readlink(t),i=Math.min(n,T(r)),o=m[e+i];return E(r,v,e,n+1),m[e+i]=o,i},doAccess:function(t,e){if(-8&e)return-28;var n;if(!(n=tt.lookupPath(t,{follow:!0}).node))return-44;var r="";return 4&e&&(r+="r"),2&e&&(r+="w"),1&e&&(r+="x"),r&&tt.nodePermissions(n,r)?-2:0},doDup:function(t,e,n){var r=tt.getStream(n);return r&&tt.close(r),tt.open(t,e,0,n,n).fd},doReadv:function(t,e,n,r){for(var i=0,o=0;o>2],s=tt.read(t,m,y[e+8*o>>2],a,r);if(s<0)return-1;if(i+=s,s>2],y[e+(8*o+4)>>2],r);if(a<0)return-1;i+=a}return i},varargs:0,get:function(t){return et.varargs+=4,y[et.varargs-4>>2]},getStr:function(){return x(et.get())},getStreamFromFD:function(t){void 0===t&&(t=et.get());var e=tt.getStream(t);if(!e)throw new tt.ErrnoError(8);return e},get64:function(){var t=et.get();return et.get(),t},getZero:function(){et.get()}};function nt(t){try{return c.grow(t-g.byteLength+65535>>16),A(c.buffer),1}catch(e){}}var rt={};function it(){if(!it.strings){var t={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",_:a||"./this.program"};for(var e in rt)t[e]=rt[e];var n=[];for(var e in t)n.push(e+"="+t[e]);it.strings=n}return it.strings}function ot(t,e){ot.array||(ot.array=[]);var n,r=ot.array;for(r.length=0;n=v[t++];)100===n||102===n?(r.push(_[(e=e+7&-8)>>3]),e+=8):(r.push(y[(e=e+3&-4)>>2]),e+=4);return r}function at(t,e,n){var r=n>0?n:T(t)+1,i=new Array(r),o=E(t,i,0,i.length);return e&&(i.length=o),i}tt.staticInit();var st={h:function(t,e){et.varargs=e;try{return 42}catch(n){return void 0!==tt&&n instanceof tt.ErrnoError||j(n),-n.errno}},e:function(){j()},a:function(t,e,n){var r=ot(e,n);return H[t].apply(null,r)},c:function(t,e,n){v.set(v.subarray(e,e+n),t)},d:function(t){var e=v.length;if(t>2147418112)return!1;for(var n,r=1;r<=4;r*=2){var i=e*(1+.2/r);if(i=Math.min(i,t+100663296),nt(Math.min(2147418112,((n=Math.max(16777216,t,i))%65536>0&&(n+=65536-n%65536),n))))return!0}return!1},f:function(t,e){var n=it(),r=0;return n.forEach(function(n,i){var o=e+r;y[t+4*i>>2]=o,function(t,e,n){for(var r=0;r>0]=t.charCodeAt(r);m[e>>0]=0}(n,o),r+=n.length+1}),0},g:function(t,e){var n=it();y[t>>2]=n.length;var r=0;return n.forEach(function(t){r+=t.length+1}),y[e>>2]=r,0},j:function(t){try{var e=et.getStreamFromFD(t);return tt.close(e),0}catch(n){return void 0!==tt&&n instanceof tt.ErrnoError||j(n),n.errno}},i:function(t,e,n,r,i){try{var o=et.getStreamFromFD(t),a=4294967296*n+(e>>>0);return a<=-9007199254740992||a>=9007199254740992?-61:(tt.llseek(o,a,r),G=[o.position>>>0,(z=o.position,+M(z)>=1?z>0?(0|R(+L(z/4294967296),4294967295))>>>0:~~+O((z-+(~~z>>>0))/4294967296)>>>0:0)],y[i>>2]=G[0],y[i+4>>2]=G[1],o.getdents&&0===a&&0===r&&(o.getdents=null),0)}catch(s){return void 0!==tt&&s instanceof tt.ErrnoError||j(s),s.errno}},b:function(t,e,n,r){try{var i=et.getStreamFromFD(t),o=et.doWritev(i,e,n);return y[r>>2]=o,0}catch(a){return void 0!==tt&&a instanceof tt.ErrnoError||j(a),a.errno}},k:function(t){var e=Date.now();return y[t>>2]=e/1e3|0,y[t+4>>2]=e%1e3*1e3|0,0},memory:c,table:f},ut=function(){var t={a:st};function e(t,e){r.asm=t.exports,q()}function n(t){e(t.instance)}function i(e){return(u||"function"!=typeof fetch?new Promise(function(t,e){t(V())}):fetch(J,{credentials:"same-origin"}).then(function(t){if(!t.ok)throw"failed to load wasm binary file at '"+J+"'";return t.arrayBuffer()}).catch(function(){return V()})).then(function(e){return WebAssembly.instantiate(e,t)}).then(e,function(t){h("failed to asynchronously prepare wasm: "+t),j(t)})}if(F(),r.instantiateWasm)try{return r.instantiateWasm(t,e)}catch(o){return h("Module.instantiateWasm callback failed with error: "+o),!1}return function(){if(u||"function"!=typeof WebAssembly.instantiateStreaming||Y(J)||"function"!=typeof fetch)return i(n);fetch(J,{credentials:"same-origin"}).then(function(e){return WebAssembly.instantiateStreaming(e,t).then(n,function(t){h("wasm streaming compile failed: "+t),h("falling back to ArrayBuffer instantiation"),i(n)})})}(),{}}();r.asm=ut;var ct,lt=r.___wasm_call_ctors=function(){return(lt=r.___wasm_call_ctors=r.asm.l).apply(null,arguments)},ht=r._emscripten_bind_CExpat_CExpat_0=function(){return(ht=r._emscripten_bind_CExpat_CExpat_0=r.asm.m).apply(null,arguments)},ft=r._emscripten_bind_CExpat_create_0=function(){return(ft=r._emscripten_bind_CExpat_create_0=r.asm.n).apply(null,arguments)},dt=r._emscripten_bind_CExpat_destroy_0=function(){return(dt=r._emscripten_bind_CExpat_destroy_0=r.asm.o).apply(null,arguments)},pt=r._emscripten_bind_CExpat_parse_1=function(){return(pt=r._emscripten_bind_CExpat_parse_1=r.asm.p).apply(null,arguments)},gt=r._emscripten_bind_CExpat_tag_0=function(){return(gt=r._emscripten_bind_CExpat_tag_0=r.asm.q).apply(null,arguments)},mt=r._emscripten_bind_CExpat_attrs_0=function(){return(mt=r._emscripten_bind_CExpat_attrs_0=r.asm.r).apply(null,arguments)},vt=r._emscripten_bind_CExpat_content_0=function(){return(vt=r._emscripten_bind_CExpat_content_0=r.asm.s).apply(null,arguments)},yt=r._emscripten_bind_CExpat_startElement_0=function(){return(yt=r._emscripten_bind_CExpat_startElement_0=r.asm.t).apply(null,arguments)},_t=r._emscripten_bind_CExpat_endElement_0=function(){return(_t=r._emscripten_bind_CExpat_endElement_0=r.asm.u).apply(null,arguments)},wt=r._emscripten_bind_CExpat_characterData_0=function(){return(wt=r._emscripten_bind_CExpat_characterData_0=r.asm.v).apply(null,arguments)},bt=r._emscripten_bind_CExpat___destroy___0=function(){return(bt=r._emscripten_bind_CExpat___destroy___0=r.asm.w).apply(null,arguments)},xt=r._emscripten_bind_CExpatJS_CExpatJS_0=function(){return(xt=r._emscripten_bind_CExpatJS_CExpatJS_0=r.asm.x).apply(null,arguments)},Et=r._emscripten_bind_CExpatJS_startElement_0=function(){return(Et=r._emscripten_bind_CExpatJS_startElement_0=r.asm.y).apply(null,arguments)},Tt=r._emscripten_bind_CExpatJS_endElement_0=function(){return(Tt=r._emscripten_bind_CExpatJS_endElement_0=r.asm.z).apply(null,arguments)},At=r._emscripten_bind_CExpatJS_characterData_0=function(){return(At=r._emscripten_bind_CExpatJS_characterData_0=r.asm.A).apply(null,arguments)},St=r._emscripten_bind_CExpatJS___destroy___0=function(){return(St=r._emscripten_bind_CExpatJS___destroy___0=r.asm.B).apply(null,arguments)},It=r._emscripten_bind_VoidPtr___destroy___0=function(){return(It=r._emscripten_bind_VoidPtr___destroy___0=r.asm.C).apply(null,arguments)},Dt=r._malloc=function(){return(Dt=r._malloc=r.asm.D).apply(null,arguments)};function Nt(t){function e(){ct||(ct=!0,d||(Z=!0,r.noFSInit||tt.init.initialized||tt.init(),X.init(),I(N),tt.ignorePermissions=!1,I(k),r.onRuntimeInitialized&&r.onRuntimeInitialized(),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)t=r.postRun.shift(),C.unshift(t);var t;I(C)}()))}U>0||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)t=r.preRun.shift(),D.unshift(t);var t;I(D)}(),U>0||(r.setStatus?(r.setStatus("Running..."),setTimeout(function(){setTimeout(function(){r.setStatus("")},1),e()},1)):e()))}if(r._free=function(){return(r._free=r.asm.E).apply(null,arguments)},r.___errno_location=function(){return(r.___errno_location=r.asm.F).apply(null,arguments)},r.stackAlloc=function(){return(r.stackAlloc=r.asm.G).apply(null,arguments)},r.dynCall_vi=function(){return(r.dynCall_vi=r.asm.H).apply(null,arguments)},r.asm=ut,r.then=function(t){if(ct)t(r);else{var e=r.onRuntimeInitialized;r.onRuntimeInitialized=function(){e&&e(),t(r)}}return r},P=function t(){ct||Nt(),ct||(P=t)},r.run=Nt,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();function kt(){}function Ct(t){return(t||kt).__cache__}function Zt(t,e){var n=Ct(e),r=n[t];return r||((r=Object.create((e||kt).prototype)).ptr=t,n[t]=r)}Nt(),(kt.prototype=Object.create(kt.prototype)).constructor=kt,kt.prototype.__class__=kt,kt.__cache__={},r.WrapperObject=kt,r.getCache=Ct,r.wrapPointer=Zt,r.castObject=function(t,e){return Zt(t.ptr,e)},r.NULL=Zt(0),r.destroy=function(t){if(!t.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";t.__destroy__(),delete Ct(t.__class__)[t.ptr]},r.compare=function(t,e){return t.ptr===e.ptr},r.getPointer=function(t){return t.ptr},r.getClass=function(t){return t.__class__};var Mt={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(Mt.needed){for(var t=0;t=Mt.size?(p(i>0),Mt.needed+=i,n=r._malloc(i),Mt.temps.push(n)):(n=Mt.buffer+Mt.pos,Mt.pos+=i),n},copy:function(t,e,n){var r=n;switch(e.BYTES_PER_ELEMENT){case 2:r>>=1;break;case 4:r>>=2;break;case 8:r>>=3}for(var i=0;i=r);)++i;if(i-e>16&&t.subarray&&A)return A.decode(t.subarray(e,i));for(var o="";e>10,56320|1023&c)}}else o+=String.fromCharCode((31&a)<<6|s)}else o+=String.fromCharCode(a)}return o}function I(t,e){return t?S(b,t,e):""}function D(t,e,n,r){if(!(r>0))return 0;for(var i=n,o=n+r-1,a=0;a=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&t.charCodeAt(++a)),s<=127){if(n>=o)break;e[n++]=s}else if(s<=2047){if(n+1>=o)break;e[n++]=192|s>>6,e[n++]=128|63&s}else if(s<=65535){if(n+2>=o)break;e[n++]=224|s>>12,e[n++]=128|s>>6&63,e[n++]=128|63&s}else{if(n+3>=o)break;e[n++]=240|s>>18,e[n++]=128|s>>12&63,e[n++]=128|s>>6&63,e[n++]=128|63&s}}return e[n]=0,n-i}function N(t){for(var e=0,n=0;n=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&t.charCodeAt(++n)),r<=127?++e:e+=r<=2047?2:r<=65535?3:4}return e}function k(t){_=t,r.HEAP8=w=new Int8Array(t),r.HEAP16=x=new Int16Array(t),r.HEAP32=E=new Int32Array(t),r.HEAPU8=b=new Uint8Array(t),r.HEAPU16=new Uint16Array(t),r.HEAPU32=new Uint32Array(t),r.HEAPF32=new Float32Array(t),r.HEAPF64=T=new Float64Array(t)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var C=r.TOTAL_MEMORY||16777216;function Z(t){for(;t.length>0;){var e=t.shift();if("function"!=typeof e){var n=e.func;"number"==typeof n?void 0===e.arg?r.dynCall_v(n):r.dynCall_vi(n,e.arg):n(void 0===e.arg?null:e.arg)}else e()}}(d=r.wasmMemory?r.wasmMemory:new WebAssembly.Memory({initial:C/65536}))&&(_=d.buffer),C=_.byteLength,k(_),E[54772]=5462128;var M=[],O=[],L=[],R=[],U=!1,P=Math.abs,F=Math.ceil,q=Math.floor,j=Math.min,Y=0,B=null;function z(t){Y++,r.monitorRunDependencies&&r.monitorRunDependencies(Y)}function G(t){if(Y--,r.monitorRunDependencies&&r.monitorRunDependencies(Y),0==Y&&B){var e=B;B=null,e()}}function J(t){throw r.onAbort&&r.onAbort(t),c(t+=""),l(t),v=!0,t="abort("+t+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(t)}function V(t){return String.prototype.startsWith?t.startsWith("data:application/octet-stream;base64,"):0===t.indexOf("data:application/octet-stream;base64,")}r.preloadedImages={},r.preloadedAudios={};var H,Q,W,$="graphvizlib.wasm";function X(){try{if(h)return new Uint8Array(h);throw"both async and sync fetching of the wasm failed"}catch(l){J(l)}}V($)||(H=$,$=r.locateFile?r.locateFile(H,u):u+H);var K={1088:function(t,e){var n=I(t),r=I(e);at.createPath("/",nt.dirname(n)),at.writeFile(nt.join("/",n),r)}};function tt(){J()}function et(t){return r.___errno_location&&(E[r.___errno_location()>>2]=t),t}O.push({func:function(){Et()}});var nt={splitPath:function(t){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(t).slice(1)},normalizeArray:function(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n;n--)t.unshift("..");return t},normalize:function(t){var e="/"===t.charAt(0),n="/"===t.substr(-1);return(t=nt.normalizeArray(t.split("/").filter(function(t){return!!t}),!e).join("/"))||e||(t="."),t&&n&&(t+="/"),(e?"/":"")+t},dirname:function(t){var e=nt.splitPath(t),n=e[0],r=e[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},basename:function(t){if("/"===t)return"/";var e=t.lastIndexOf("/");return-1===e?t:t.substr(e+1)},extname:function(t){return nt.splitPath(t)[3]},join:function(){var t=Array.prototype.slice.call(arguments,0);return nt.normalize(t.join("/"))},join2:function(t,e){return nt.normalize(t+"/"+e)}},rt={resolve:function(){for(var t="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var r=n>=0?arguments[n]:at.cwd();if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");if(!r)return"";t=r+"/"+t,e="/"===r.charAt(0)}return(e?"/":"")+(t=nt.normalizeArray(t.split("/").filter(function(t){return!!t}),!e).join("/"))||"."},relative:function(t,e){function n(t){for(var e=0;e=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=rt.resolve(t).substr(1),e=rt.resolve(e).substr(1);for(var r=n(t.split("/")),i=n(e.split("/")),o=Math.min(r.length,i.length),a=o,s=0;s0&&(c(S(t.output,0)),t.output=[])}},default_tty1_ops:{put_char:function(t,e){null===e||10===e?(l(S(t.output,0)),t.output=[]):0!=e&&t.output.push(e)},flush:function(t){t.output&&t.output.length>0&&(l(S(t.output,0)),t.output=[])}}},ot={ops_table:null,mount:function(t){return ot.createNode(null,"/",16895,0)},createNode:function(t,e,n,r){if(at.isBlkdev(n)||at.isFIFO(n))throw new at.ErrnoError(63);ot.ops_table||(ot.ops_table={dir:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr,lookup:ot.node_ops.lookup,mknod:ot.node_ops.mknod,rename:ot.node_ops.rename,unlink:ot.node_ops.unlink,rmdir:ot.node_ops.rmdir,readdir:ot.node_ops.readdir,symlink:ot.node_ops.symlink},stream:{llseek:ot.stream_ops.llseek}},file:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr},stream:{llseek:ot.stream_ops.llseek,read:ot.stream_ops.read,write:ot.stream_ops.write,allocate:ot.stream_ops.allocate,mmap:ot.stream_ops.mmap,msync:ot.stream_ops.msync}},link:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr,readlink:ot.node_ops.readlink},stream:{}},chrdev:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr},stream:at.chrdev_stream_ops}});var i=at.createNode(t,e,n,r);return at.isDir(i.mode)?(i.node_ops=ot.ops_table.dir.node,i.stream_ops=ot.ops_table.dir.stream,i.contents={}):at.isFile(i.mode)?(i.node_ops=ot.ops_table.file.node,i.stream_ops=ot.ops_table.file.stream,i.usedBytes=0,i.contents=null):at.isLink(i.mode)?(i.node_ops=ot.ops_table.link.node,i.stream_ops=ot.ops_table.link.stream):at.isChrdev(i.mode)&&(i.node_ops=ot.ops_table.chrdev.node,i.stream_ops=ot.ops_table.chrdev.stream),i.timestamp=Date.now(),t&&(t.contents[e]=i),i},getFileDataAsRegularArray:function(t){if(t.contents&&t.contents.subarray){for(var e=[],n=0;n=e)){e=Math.max(e,n*(n<1048576?2:1.125)|0),0!=n&&(e=Math.max(e,256));var r=t.contents;t.contents=new Uint8Array(e),t.usedBytes>0&&t.contents.set(r.subarray(0,t.usedBytes),0)}},resizeFileStorage:function(t,e){if(t.usedBytes!=e){if(0==e)return t.contents=null,void(t.usedBytes=0);if(!t.contents||t.contents.subarray){var n=t.contents;return t.contents=new Uint8Array(e),n&&t.contents.set(n.subarray(0,Math.min(e,t.usedBytes))),void(t.usedBytes=e)}if(t.contents||(t.contents=[]),t.contents.length>e)t.contents.length=e;else for(;t.contents.length=t.node.usedBytes)return 0;var a=Math.min(t.node.usedBytes-i,r);if(a>8&&o.subarray)e.set(o.subarray(i,i+a),n);else for(var s=0;s0||i+r8)throw new at.ErrnoError(32);for(var i=nt.normalizeArray(t.split("/").filter(function(t){return!!t}),!1),o=at.root,a="/",s=0;s40)throw new at.ErrnoError(32)}}return{path:a,node:o}},getPath:function(t){for(var e;;){if(at.isRoot(t)){var n=t.mount.mountpoint;return e?"/"!==n[n.length-1]?n+"/"+e:n+e:n}e=e?t.name+"/"+e:t.name,t=t.parent}},hashName:function(t,e){for(var n=0,r=0;r>>0)%at.nameTable.length},hashAddNode:function(t){var e=at.hashName(t.parent.id,t.name);t.name_next=at.nameTable[e],at.nameTable[e]=t},hashRemoveNode:function(t){var e=at.hashName(t.parent.id,t.name);if(at.nameTable[e]===t)at.nameTable[e]=t.name_next;else for(var n=at.nameTable[e];n;){if(n.name_next===t){n.name_next=t.name_next;break}n=n.name_next}},lookupNode:function(t,e){var n=at.mayLookup(t);if(n)throw new at.ErrnoError(n,t);for(var r=at.hashName(t.id,e),i=at.nameTable[r];i;i=i.name_next)if(i.parent.id===t.id&&i.name===e)return i;return at.lookup(t,e)},createNode:function(t,e,n,r){at.FSNode||(at.FSNode=function(t,e,n,r){t||(t=this),this.parent=t,this.mount=t.mount,this.mounted=null,this.id=at.nextInode++,this.name=e,this.mode=n,this.node_ops={},this.stream_ops={},this.rdev=r},at.FSNode.prototype={},Object.defineProperties(at.FSNode.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(t){t?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(t){t?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return at.isDir(this.mode)}},isDevice:{get:function(){return at.isChrdev(this.mode)}}}));var i=new at.FSNode(t,e,n,r);return at.hashAddNode(i),i},destroyNode:function(t){at.hashRemoveNode(t)},isRoot:function(t){return t===t.parent},isMountpoint:function(t){return!!t.mounted},isFile:function(t){return 32768==(61440&t)},isDir:function(t){return 16384==(61440&t)},isLink:function(t){return 40960==(61440&t)},isChrdev:function(t){return 8192==(61440&t)},isBlkdev:function(t){return 24576==(61440&t)},isFIFO:function(t){return 4096==(61440&t)},isSocket:function(t){return 49152==(49152&t)},flagModes:{r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function(t){var e=at.flagModes[t];if(void 0===e)throw new Error("Unknown file open mode: "+t);return e},flagsToPermissionString:function(t){var e=["r","w","rw"][3&t];return 512&t&&(e+="w"),e},nodePermissions:function(t,e){return at.ignorePermissions||(-1===e.indexOf("r")||292&t.mode)&&(-1===e.indexOf("w")||146&t.mode)&&(-1===e.indexOf("x")||73&t.mode)?0:2},mayLookup:function(t){return at.nodePermissions(t,"x")||(t.node_ops.lookup?0:2)},mayCreate:function(t,e){try{return at.lookupNode(t,e),20}catch(n){}return at.nodePermissions(t,"wx")},mayDelete:function(t,e,n){var r;try{r=at.lookupNode(t,e)}catch(o){return o.errno}var i=at.nodePermissions(t,"wx");if(i)return i;if(n){if(!at.isDir(r.mode))return 54;if(at.isRoot(r)||at.getPath(r)===at.cwd())return 10}else if(at.isDir(r.mode))return 31;return 0},mayOpen:function(t,e){return t?at.isLink(t.mode)?32:at.isDir(t.mode)&&("r"!==at.flagsToPermissionString(e)||512&e)?31:at.nodePermissions(t,at.flagsToPermissionString(e)):44},MAX_OPEN_FDS:4096,nextfd:function(t,e){e=e||at.MAX_OPEN_FDS;for(var n=t=t||0;n<=e;n++)if(!at.streams[n])return n;throw new at.ErrnoError(33)},getStream:function(t){return at.streams[t]},createStream:function(t,e,n){at.FSStream||(at.FSStream=function(){},at.FSStream.prototype={},Object.defineProperties(at.FSStream.prototype,{object:{get:function(){return this.node},set:function(t){this.node=t}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}}));var r=new at.FSStream;for(var i in t)r[i]=t[i];t=r;var o=at.nextfd(e,n);return t.fd=o,at.streams[o]=t,t},closeStream:function(t){at.streams[t]=null},chrdev_stream_ops:{open:function(t){var e=at.getDevice(t.node.rdev);t.stream_ops=e.stream_ops,t.stream_ops.open&&t.stream_ops.open(t)},llseek:function(){throw new at.ErrnoError(70)}},major:function(t){return t>>8},minor:function(t){return 255&t},makedev:function(t,e){return t<<8|e},registerDevice:function(t,e){at.devices[t]={stream_ops:e}},getDevice:function(t){return at.devices[t]},getMounts:function(t){for(var e=[],n=[t];n.length;){var r=n.pop();e.push(r),n.push.apply(n,r.mounts)}return e},syncfs:function(t,e){"function"==typeof t&&(e=t,t=!1),at.syncFSRequests++,at.syncFSRequests>1&&l("warning: "+at.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var n=at.getMounts(at.root.mount),r=0;function i(t){return at.syncFSRequests--,e(t)}function o(t){if(t)return o.errored?void 0:(o.errored=!0,i(t));++r>=n.length&&i(null)}n.forEach(function(e){if(!e.type.syncfs)return o(null);e.type.syncfs(e,t,o)})},mount:function(t,e,n){var r,i="/"===n,o=!n;if(i&&at.root)throw new at.ErrnoError(10);if(!i&&!o){var a=at.lookupPath(n,{follow_mount:!1});if(n=a.path,at.isMountpoint(r=a.node))throw new at.ErrnoError(10);if(!at.isDir(r.mode))throw new at.ErrnoError(54)}var s={type:t,opts:e,mountpoint:n,mounts:[]},u=t.mount(s);return u.mount=s,s.root=u,i?at.root=u:r&&(r.mounted=s,r.mount&&r.mount.mounts.push(s)),u},unmount:function(t){var e=at.lookupPath(t,{follow_mount:!1});if(!at.isMountpoint(e.node))throw new at.ErrnoError(28);var n=e.node,r=n.mounted,i=at.getMounts(r);Object.keys(at.nameTable).forEach(function(t){for(var e=at.nameTable[t];e;){var n=e.name_next;-1!==i.indexOf(e.mount)&&at.destroyNode(e),e=n}}),n.mounted=null;var o=n.mount.mounts.indexOf(r);n.mount.mounts.splice(o,1)},lookup:function(t,e){return t.node_ops.lookup(t,e)},mknod:function(t,e,n){var r=at.lookupPath(t,{parent:!0}).node,i=nt.basename(t);if(!i||"."===i||".."===i)throw new at.ErrnoError(28);var o=at.mayCreate(r,i);if(o)throw new at.ErrnoError(o);if(!r.node_ops.mknod)throw new at.ErrnoError(63);return r.node_ops.mknod(r,i,e,n)},create:function(t,e){return e=void 0!==e?e:438,e&=4095,at.mknod(t,e|=32768,0)},mkdir:function(t,e){return e=void 0!==e?e:511,e&=1023,at.mknod(t,e|=16384,0)},mkdirTree:function(t,e){for(var n=t.split("/"),r="",i=0;ithis.length-1||t<0)){var e=t%this.chunkSize;return this.getter(t/this.chunkSize|0)[e]}},o.prototype.setDataGetter=function(t){this.getter=t},o.prototype.cacheLength=function(){var t=new XMLHttpRequest;if(t.open("HEAD",n,!1),t.send(null),!(t.status>=200&&t.status<300||304===t.status))throw new Error("Couldn't load "+n+". Status: "+t.status);var e,r=Number(t.getResponseHeader("Content-length")),i=(e=t.getResponseHeader("Accept-Ranges"))&&"bytes"===e,o=(e=t.getResponseHeader("Content-Encoding"))&&"gzip"===e,a=1048576;i||(a=r);var s=this;s.setDataGetter(function(t){var e=t*a,i=(t+1)*a-1;if(i=Math.min(i,r-1),void 0===s.chunks[t]&&(s.chunks[t]=function(t,e){if(t>e)throw new Error("invalid range ("+t+", "+e+") or no bytes requested!");if(e>r-1)throw new Error("only "+r+" bytes available! programmer error!");var i=new XMLHttpRequest;if(i.open("GET",n,!1),r!==a&&i.setRequestHeader("Range","bytes="+t+"-"+e),"undefined"!=typeof Uint8Array&&(i.responseType="arraybuffer"),i.overrideMimeType&&i.overrideMimeType("text/plain; charset=x-user-defined"),i.send(null),!(i.status>=200&&i.status<300||304===i.status))throw new Error("Couldn't load "+n+". Status: "+i.status);return void 0!==i.response?new Uint8Array(i.response||[]):_t(i.responseText||"",!0)}(e,i)),void 0===s.chunks[t])throw new Error("doXHR failed!");return s.chunks[t]}),!o&&r||(a=r=1,r=this.getter(0).length,a=r,c("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=r,this._chunkSize=a,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var a,s=at.createFile(t,e,a={isDevice:!1,url:n},r,i);a.contents?s.contents=a.contents:a.url&&(s.contents=null,s.url=a.url),Object.defineProperties(s,{usedBytes:{get:function(){return this.contents.length}}});var u={};return Object.keys(s.stream_ops).forEach(function(t){var e=s.stream_ops[t];u[t]=function(){if(!at.forceLoadFile(s))throw new at.ErrnoError(29);return e.apply(null,arguments)}}),u.read=function(t,e,n,r,i){if(!at.forceLoadFile(s))throw new at.ErrnoError(29);var o=t.node.contents;if(i>=o.length)return 0;var a=Math.min(o.length-i,r);if(o.slice)for(var u=0;u>2]=r.dev,E[n+4>>2]=0,E[n+8>>2]=r.ino,E[n+12>>2]=r.mode,E[n+16>>2]=r.nlink,E[n+20>>2]=r.uid,E[n+24>>2]=r.gid,E[n+28>>2]=r.rdev,E[n+32>>2]=0,W=[r.size>>>0,(Q=r.size,+P(Q)>=1?Q>0?(0|j(+q(Q/4294967296),4294967295))>>>0:~~+F((Q-+(~~Q>>>0))/4294967296)>>>0:0)],E[n+40>>2]=W[0],E[n+44>>2]=W[1],E[n+48>>2]=4096,E[n+52>>2]=r.blocks,E[n+56>>2]=r.atime.getTime()/1e3|0,E[n+60>>2]=0,E[n+64>>2]=r.mtime.getTime()/1e3|0,E[n+68>>2]=0,E[n+72>>2]=r.ctime.getTime()/1e3|0,E[n+76>>2]=0,W=[r.ino>>>0,(Q=r.ino,+P(Q)>=1?Q>0?(0|j(+q(Q/4294967296),4294967295))>>>0:~~+F((Q-+(~~Q>>>0))/4294967296)>>>0:0)],E[n+80>>2]=W[0],E[n+84>>2]=W[1],0},doMsync:function(t,e,n,r,i){var o=b.slice(t,t+n);at.msync(e,o,i,n,r)},doMkdir:function(t,e){return"/"===(t=nt.normalize(t))[t.length-1]&&(t=t.substr(0,t.length-1)),at.mkdir(t,e,0),0},doMknod:function(t,e,n){switch(61440&e){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return at.mknod(t,e,n),0},doReadlink:function(t,e,n){if(n<=0)return-28;var r=at.readlink(t),i=Math.min(n,N(r)),o=w[e+i];return D(r,b,e,n+1),w[e+i]=o,i},doAccess:function(t,e){if(-8&e)return-28;var n;if(!(n=at.lookupPath(t,{follow:!0}).node))return-44;var r="";return 4&e&&(r+="r"),2&e&&(r+="w"),1&e&&(r+="x"),r&&at.nodePermissions(n,r)?-2:0},doDup:function(t,e,n){var r=at.getStream(n);return r&&at.close(r),at.open(t,e,0,n,n).fd},doReadv:function(t,e,n,r){for(var i=0,o=0;o>2],s=at.read(t,w,E[e+8*o>>2],a,r);if(s<0)return-1;if(i+=s,s>2],E[e+(8*o+4)>>2],r);if(a<0)return-1;i+=a}return i},varargs:0,get:function(t){return st.varargs+=4,E[st.varargs-4>>2]},getStr:function(){return I(st.get())},getStreamFromFD:function(t){void 0===t&&(t=st.get());var e=at.getStream(t);if(!e)throw new at.ErrnoError(8);return e},get64:function(){var t=st.get();return st.get(),t},getZero:function(){st.get()}};function ut(t,e,n){e|=0;var r,i=0,o=0,a=0;if(r=(t|=0)+(n|=0)|0,e&=255,(0|n)>=67){for(;0!=(3&t);)w[t>>0]=e,t=t+1|0;for(a=e|e<<8|e<<16|e<<24,o=(i=-4&r|0)-64|0;(0|t)<=(0|o);)E[t>>2]=a,E[t+4>>2]=a,E[t+8>>2]=a,E[t+12>>2]=a,E[t+16>>2]=a,E[t+20>>2]=a,E[t+24>>2]=a,E[t+28>>2]=a,E[t+32>>2]=a,E[t+36>>2]=a,E[t+40>>2]=a,E[t+44>>2]=a,E[t+48>>2]=a,E[t+52>>2]=a,E[t+56>>2]=a,E[t+60>>2]=a,t=t+64|0;for(;(0|t)<(0|i);)E[t>>2]=a,t=t+4|0}for(;(0|t)<(0|r);)w[t>>0]=e,t=t+1|0;return r-n|0}var ct=0;function lt(t){try{return d.grow(t-_.byteLength+65535>>16),k(d.buffer),1}catch(e){}}var ht={};function ft(){if(!ft.strings){var t={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",_:a||"./this.program"};for(var e in ht)t[e]=ht[e];var n=[];for(var e in t)n.push(e+"="+t[e]);ft.strings=n}return ft.strings}function dt(t){return t%4==0&&(t%100!=0||t%400==0)}function pt(t,e){for(var n=0,r=0;r<=e;n+=t[r++]);return n}var gt=[31,29,31,30,31,30,31,31,30,31,30,31],mt=[31,28,31,30,31,30,31,31,30,31,30,31];function vt(t,e){for(var n=new Date(t.getTime());e>0;){var r=dt(n.getFullYear()),i=n.getMonth(),o=(r?gt:mt)[i];if(!(e>o-n.getDate()))return n.setDate(n.getDate()+e),n;e-=o-n.getDate()+1,n.setDate(1),i<11?n.setMonth(i+1):(n.setMonth(0),n.setFullYear(n.getFullYear()+1))}return n}function yt(t,e){yt.array||(yt.array=[]);var n,r=yt.array;for(r.length=0;n=b[t++];)100===n||102===n?(r.push(T[(e=e+7&-8)>>3]),e+=8):(r.push(E[(e=e+3&-4)>>2]),e+=4);return r}function _t(t,e,n){var r=n>0?n:N(t)+1,i=new Array(r),o=D(t,i,0,i.length);return e&&(i.length=o),i}tt=function(){return performance.now()},at.staticInit();var wt={M:function(t,e){return function(t,e){var n;if(0===t)n=Date.now();else{if(1!==t&&4!==t)return et(28),-1;n=tt()}return E[e>>2]=n/1e3|0,E[e+4>>2]=n%1e3*1e3*1e3|0,0}(t,e)},k:function(t){return Nt(t)},j:function(t,e,n){throw"uncaught_exception"in Mt?Mt.uncaught_exceptions++:Mt.uncaught_exceptions=1,t},q:function(){},U:function(t,e){return et(63),-1},P:function(t,e){st.varargs=e;try{var n=st.getStr();return at.unlink(n),0}catch(r){return void 0!==at&&r instanceof at.ErrnoError||J(r),-r.errno}},R:function(t,e){st.varargs=e;try{return function(t,e,n,r,i,o){var a;o<<=12;var s=!1;if(0!=(16&r)&&t%16384!=0)return-28;if(0!=(32&r)){if(!(a=Ot(16384,e)))return-48;ut(a,0,e),s=!0}else{var u=at.getStream(i);if(!u)return-8;var c=at.mmap(u,b,t,e,o,n,r);a=c.ptr,s=c.allocated}return st.mappings[a]={malloc:a,len:e,allocated:s,fd:i,flags:r,offset:o},a}(st.get(),st.get(),st.get(),st.get(),st.get(),st.get())}catch(n){return void 0!==at&&n instanceof at.ErrnoError||J(n),-n.errno}},S:function(t,e){st.varargs=e;try{var n=st.getStr(),r=st.get();return st.doStat(at.stat,n,r)}catch(i){return void 0!==at&&i instanceof at.ErrnoError||J(i),-i.errno}},T:function(t,e){st.varargs=e;try{var n=st.getStreamFromFD(),r=st.get();return st.doStat(at.stat,n.path,r)}catch(i){return void 0!==at&&i instanceof at.ErrnoError||J(i),-i.errno}},L:function(t,e){st.varargs=e;try{return 42}catch(n){return void 0!==at&&n instanceof at.ErrnoError||J(n),-n.errno}},y:function(t,e){st.varargs=e;try{var n=st.getStreamFromFD();switch(st.get()){case 0:return(r=st.get())<0?-28:at.open(n.path,n.flags,0,r).fd;case 1:case 2:return 0;case 3:return n.flags;case 4:var r=st.get();return n.flags|=r,0;case 12:return r=st.get(),x[r+0>>1]=2,0;case 13:case 14:return 0;case 16:case 8:return-28;case 9:return et(28),-1;default:return-28}}catch(i){return void 0!==at&&i instanceof at.ErrnoError||J(i),-i.errno}},K:function(t,e){st.varargs=e;try{var n=st.getStr(),r=st.get();return st.doAccess(n,r)}catch(i){return void 0!==at&&i instanceof at.ErrnoError||J(i),-i.errno}},z:function(t,e){st.varargs=e;try{var n=st.getStr(),r=st.get(),i=st.get();return at.open(n,r,i).fd}catch(o){return void 0!==at&&o instanceof at.ErrnoError||J(o),-o.errno}},O:function(t,e){st.varargs=e;try{var n=st.getStreamFromFD(),r=st.get();switch(r){case 21509:case 21505:return n.tty?0:-59;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return n.tty?0:-59;case 21519:if(!n.tty)return-59;var i=st.get();return E[i>>2]=0,0;case 21520:return n.tty?-28:-59;case 21531:return i=st.get(),at.ioctl(n,r,i);case 21523:case 21524:return n.tty?0:-59;default:J("bad ioctl syscall "+r)}}catch(o){return void 0!==at&&o instanceof at.ErrnoError||J(o),-o.errno}},Q:function(t,e){st.varargs=e;try{return function(t,e){if(-1===t||0===e)return-28;var n=st.mappings[t];if(!n)return 0;if(e===n.len){var r=at.getStream(n.fd);st.doMsync(t,r,e,n.flags,n.offset),at.munmap(r),st.mappings[t]=null,n.allocated&&kt(n.malloc)}return 0}(st.get(),st.get())}catch(n){return void 0!==at&&n instanceof at.ErrnoError||J(n),-n.errno}},m:function(){},w:function(){J()},C:function(t,e,n){var r=yt(e,n);return K[t].apply(null,r)},d:function(t,e){!function(t,e){throw Zt(t,e||1),"longjmp"}(t,e)},E:function(t,e,n){b.set(b.subarray(e,e+n),t)},F:function(t){var e=b.length;if(t>2147418112)return!1;for(var n,r=1;r<=4;r*=2){var i=e*(1+.2/r);if(i=Math.min(i,t+100663296),lt(Math.min(2147418112,((n=Math.max(16777216,t,i))%65536>0&&(n+=65536-n%65536),n))))return!0}return!1},I:function(t,e){var n=ft(),r=0;return n.forEach(function(n,i){var o=e+r;E[t+4*i>>2]=o,function(t,e,n){for(var r=0;r>0]=t.charCodeAt(r);w[e>>0]=0}(n,o),r+=n.length+1}),0},J:function(t,e){var n=ft();E[t>>2]=n.length;var r=0;return n.forEach(function(t){r+=t.length+1}),E[e>>2]=r,0},l:function(t){!function(t,e){f||(v=!0,r.onExit&&r.onExit(t)),s(t,new $t(t))}(t)},p:function(t){try{var e=st.getStreamFromFD(t);return at.close(e),0}catch(n){return void 0!==at&&n instanceof at.ErrnoError||J(n),n.errno}},H:function(t,e){try{var n=st.getStreamFromFD(t),r=n.tty?2:at.isDir(n.mode)?3:at.isLink(n.mode)?7:4;return w[e>>0]=r,0}catch(i){return void 0!==at&&i instanceof at.ErrnoError||J(i),i.errno}},N:function(t,e,n,r){try{var i=st.getStreamFromFD(t),o=st.doReadv(i,e,n);return E[r>>2]=o,0}catch(a){return void 0!==at&&a instanceof at.ErrnoError||J(a),a.errno}},D:function(t,e,n,r,i){try{var o=st.getStreamFromFD(t),a=4294967296*n+(e>>>0);return a<=-9007199254740992||a>=9007199254740992?-61:(at.llseek(o,a,r),W=[o.position>>>0,(Q=o.position,+P(Q)>=1?Q>0?(0|j(+q(Q/4294967296),4294967295))>>>0:~~+F((Q-+(~~Q>>>0))/4294967296)>>>0:0)],E[i>>2]=W[0],E[i+4>>2]=W[1],o.getdents&&0===a&&0===r&&(o.getdents=null),0)}catch(s){return void 0!==at&&s instanceof at.ErrnoError||J(s),s.errno}},x:function(t,e,n,r){try{var i=st.getStreamFromFD(t),o=st.doWritev(i,e,n);return E[r>>2]=o,0}catch(a){return void 0!==at&&a instanceof at.ErrnoError||J(a),a.errno}},a:function(){return 0|p},X:function(t){var e=Date.now();return E[t>>2]=e/1e3|0,E[t+4>>2]=e%1e3*1e3|0,0},Y:function(t){var e=Qt();try{return Vt(t)}catch(n){if(Wt(e),n!==n+0&&"longjmp"!==n)throw n;Zt(1,0)}},V:function(t,e){var n=Qt();try{return Ht(t,e)}catch(r){if(Wt(n),r!==r+0&&"longjmp"!==r)throw r;Zt(1,0)}},v:function(t){var e=Qt();try{return jt(t)}catch(n){if(Wt(e),n!==n+0&&"longjmp"!==n)throw n;Zt(1,0)}},f:function(t,e){var n=Qt();try{return Yt(t,e)}catch(r){if(Wt(n),r!==r+0&&"longjmp"!==r)throw r;Zt(1,0)}},e:function(t,e,n){var r=Qt();try{return Bt(t,e,n)}catch(i){if(Wt(r),i!==i+0&&"longjmp"!==i)throw i;Zt(1,0)}},g:function(t,e,n,r){var i=Qt();try{return zt(t,e,n,r)}catch(o){if(Wt(i),o!==o+0&&"longjmp"!==o)throw o;Zt(1,0)}},n:function(t,e,n,r,i){var o=Qt();try{return Gt(t,e,n,r,i)}catch(a){if(Wt(o),a!==a+0&&"longjmp"!==a)throw a;Zt(1,0)}},W:function(t,e,n,r,i,o,a){var s=Qt();try{return Jt(t,e,n,r,i,o,a)}catch(u){if(Wt(s),u!==u+0&&"longjmp"!==u)throw u;Zt(1,0)}},s:function(t){var e=Qt();try{Lt(t)}catch(n){if(Wt(e),n!==n+0&&"longjmp"!==n)throw n;Zt(1,0)}},h:function(t,e){var n=Qt();try{Rt(t,e)}catch(r){if(Wt(n),r!==r+0&&"longjmp"!==r)throw r;Zt(1,0)}},o:function(t,e,n){var r=Qt();try{Ut(t,e,n)}catch(i){if(Wt(r),i!==i+0&&"longjmp"!==i)throw i;Zt(1,0)}},u:function(t,e,n,r){var i=Qt();try{Pt(t,e,n,r)}catch(o){if(Wt(i),o!==o+0&&"longjmp"!==o)throw o;Zt(1,0)}},t:function(t,e,n,r,i){var o=Qt();try{Ft(t,e,n,r,i)}catch(a){if(Wt(o),a!==a+0&&"longjmp"!==a)throw a;Zt(1,0)}},r:function(t,e,n,r,i,o){var a=Qt();try{qt(t,e,n,r,i,o)}catch(s){if(Wt(a),s!==s+0&&"longjmp"!==s)throw s;Zt(1,0)}},memory:d,i:function t(e,n,r,i){n|=0,r|=0,i|=0;var o=0;for(E[(e|=0)>>2]=ct=ct+1|0;(0|o)<(0|i);){if(0==(0|E[r+(o<<3)>>2]))return E[r+(o<<3)>>2]=ct,E[r+(4+(o<<3))>>2]=n,E[r+(8+(o<<3))>>2]=0,g(0|i),0|r;o=o+1|0}return r=0|t(0|e,0|n,0|(r=0|Ct(0|r,8*(1+(i=2*i|0)|0)|0)),0|i),g(0|i),0|r},b:function(t){g(0|t)},G:function(t,e,n,r){return function(t,e,n,r){var i=E[r+40>>2],o={tm_sec:E[r>>2],tm_min:E[r+4>>2],tm_hour:E[r+8>>2],tm_mday:E[r+12>>2],tm_mon:E[r+16>>2],tm_year:E[r+20>>2],tm_wday:E[r+24>>2],tm_yday:E[r+28>>2],tm_isdst:E[r+32>>2],tm_gmtoff:E[r+36>>2],tm_zone:i?I(i):""},a=I(n),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var u in s)a=a.replace(new RegExp(u,"g"),s[u]);var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],l=["January","February","March","April","May","June","July","August","September","October","November","December"];function h(t,e,n){for(var r="number"==typeof t?t.toString():t||"";r.length0?1:0}var r;return 0===(r=n(t.getFullYear()-e.getFullYear()))&&0===(r=n(t.getMonth()-e.getMonth()))&&(r=n(t.getDate()-e.getDate())),r}function p(t){switch(t.getDay()){case 0:return new Date(t.getFullYear()-1,11,29);case 1:return t;case 2:return new Date(t.getFullYear(),0,3);case 3:return new Date(t.getFullYear(),0,2);case 4:return new Date(t.getFullYear(),0,1);case 5:return new Date(t.getFullYear()-1,11,31);case 6:return new Date(t.getFullYear()-1,11,30)}}function g(t){var e=vt(new Date(t.tm_year+1900,0,1),t.tm_yday),n=new Date(e.getFullYear(),0,4),r=new Date(e.getFullYear()+1,0,4),i=p(n),o=p(r);return d(i,e)<=0?d(o,e)<=0?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var m={"%a":function(t){return c[t.tm_wday].substring(0,3)},"%A":function(t){return c[t.tm_wday]},"%b":function(t){return l[t.tm_mon].substring(0,3)},"%B":function(t){return l[t.tm_mon]},"%C":function(t){return f((t.tm_year+1900)/100|0,2)},"%d":function(t){return f(t.tm_mday,2)},"%e":function(t){return h(t.tm_mday,2," ")},"%g":function(t){return g(t).toString().substring(2)},"%G":function(t){return g(t)},"%H":function(t){return f(t.tm_hour,2)},"%I":function(t){var e=t.tm_hour;return 0==e?e=12:e>12&&(e-=12),f(e,2)},"%j":function(t){return f(t.tm_mday+pt(dt(t.tm_year+1900)?gt:mt,t.tm_mon-1),3)},"%m":function(t){return f(t.tm_mon+1,2)},"%M":function(t){return f(t.tm_min,2)},"%n":function(){return"\n"},"%p":function(t){return t.tm_hour>=0&&t.tm_hour<12?"AM":"PM"},"%S":function(t){return f(t.tm_sec,2)},"%t":function(){return"\t"},"%u":function(t){return t.tm_wday||7},"%U":function(t){var e=new Date(t.tm_year+1900,0,1),n=0===e.getDay()?e:vt(e,7-e.getDay()),r=new Date(t.tm_year+1900,t.tm_mon,t.tm_mday);if(d(n,r)<0){var i=pt(dt(r.getFullYear())?gt:mt,r.getMonth()-1)-31,o=31-n.getDate()+i+r.getDate();return f(Math.ceil(o/7),2)}return 0===d(n,e)?"01":"00"},"%V":function(t){var e,n=new Date(t.tm_year+1900,0,4),r=new Date(t.tm_year+1901,0,4),i=p(n),o=p(r),a=vt(new Date(t.tm_year+1900,0,1),t.tm_yday);return d(a,i)<0?"53":d(o,a)<=0?"01":(e=i.getFullYear()=0;return e=(e=Math.abs(e)/60)/60*100+e%60,(n?"+":"-")+String("0000"+e).slice(-4)},"%Z":function(t){return t.tm_zone},"%%":function(){return"%"}};for(var u in m)a.indexOf(u)>=0&&(a=a.replace(new RegExp(u,"g"),m[u](o)));var v=_t(a,!1);return v.length>e?0:(function(t,e){w.set(t,e)}(v,t),v.length-1)}(t,e,n,r)},table:m,c:function(t,e,n){t|=0,e|=0,n|=0;for(var r=0,i=0;(0|r)<(0|n)&&0!=(0|(i=0|E[e+(r<<3)>>2]));){if((0|i)==(0|t))return 0|E[e+(4+(r<<3))>>2];r=r+1|0}return 0},A:function(t){var e=Date.now()/1e3|0;return t&&(E[t>>2]=e),e},B:function(t){return 0!==t&&ut(t,0,16),0}},bt=function(){var t={a:wt};function e(t,e){r.asm=t.exports,G()}function n(t){e(t.instance)}function i(e){return(h||"function"!=typeof fetch?new Promise(function(t,e){t(X())}):fetch($,{credentials:"same-origin"}).then(function(t){if(!t.ok)throw"failed to load wasm binary file at '"+$+"'";return t.arrayBuffer()}).catch(function(){return X()})).then(function(e){return WebAssembly.instantiate(e,t)}).then(e,function(t){l("failed to asynchronously prepare wasm: "+t),J(t)})}if(z(),r.instantiateWasm)try{return r.instantiateWasm(t,e)}catch(o){return l("Module.instantiateWasm callback failed with error: "+o),!1}return function(){if(h||"function"!=typeof WebAssembly.instantiateStreaming||V($)||"function"!=typeof fetch)return i(n);fetch($,{credentials:"same-origin"}).then(function(e){return WebAssembly.instantiateStreaming(e,t).then(n,function(t){l("wasm streaming compile failed: "+t),l("falling back to ArrayBuffer instantiation"),i(n)})})}(),{}}();r.asm=bt;var xt,Et=r.___wasm_call_ctors=function(){return(Et=r.___wasm_call_ctors=r.asm.Z).apply(null,arguments)},Tt=r._emscripten_bind_VoidPtr___destroy___0=function(){return(Tt=r._emscripten_bind_VoidPtr___destroy___0=r.asm._).apply(null,arguments)},At=r._emscripten_bind_Main_layout_3=function(){return(At=r._emscripten_bind_Main_layout_3=r.asm.$).apply(null,arguments)},St=r._emscripten_bind_Main_lastError_0=function(){return(St=r._emscripten_bind_Main_lastError_0=r.asm.aa).apply(null,arguments)},It=r._emscripten_bind_Main_createFile_2=function(){return(It=r._emscripten_bind_Main_createFile_2=r.asm.ba).apply(null,arguments)},Dt=r._emscripten_bind_Main___destroy___0=function(){return(Dt=r._emscripten_bind_Main___destroy___0=r.asm.ca).apply(null,arguments)},Nt=r._malloc=function(){return(Nt=r._malloc=r.asm.da).apply(null,arguments)},kt=r._free=function(){return(kt=r._free=r.asm.ea).apply(null,arguments)},Ct=r._realloc=function(){return(Ct=r._realloc=r.asm.fa).apply(null,arguments)},Zt=(r.___errno_location=function(){return(r.___errno_location=r.asm.ga).apply(null,arguments)},r._setThrew=function(){return(Zt=r._setThrew=r.asm.ha).apply(null,arguments)}),Mt=r.__ZSt18uncaught_exceptionv=function(){return(Mt=r.__ZSt18uncaught_exceptionv=r.asm.ia).apply(null,arguments)},Ot=r._memalign=function(){return(Ot=r._memalign=r.asm.ja).apply(null,arguments)},Lt=r.dynCall_v=function(){return(Lt=r.dynCall_v=r.asm.ka).apply(null,arguments)},Rt=r.dynCall_vi=function(){return(Rt=r.dynCall_vi=r.asm.la).apply(null,arguments)},Ut=r.dynCall_vii=function(){return(Ut=r.dynCall_vii=r.asm.ma).apply(null,arguments)},Pt=r.dynCall_viii=function(){return(Pt=r.dynCall_viii=r.asm.na).apply(null,arguments)},Ft=r.dynCall_viiii=function(){return(Ft=r.dynCall_viiii=r.asm.oa).apply(null,arguments)},qt=r.dynCall_viiiii=function(){return(qt=r.dynCall_viiiii=r.asm.pa).apply(null,arguments)},jt=r.dynCall_i=function(){return(jt=r.dynCall_i=r.asm.qa).apply(null,arguments)},Yt=r.dynCall_ii=function(){return(Yt=r.dynCall_ii=r.asm.ra).apply(null,arguments)},Bt=r.dynCall_iii=function(){return(Bt=r.dynCall_iii=r.asm.sa).apply(null,arguments)},zt=r.dynCall_iiii=function(){return(zt=r.dynCall_iiii=r.asm.ta).apply(null,arguments)},Gt=r.dynCall_iiiii=function(){return(Gt=r.dynCall_iiiii=r.asm.ua).apply(null,arguments)},Jt=r.dynCall_iiiiiii=function(){return(Jt=r.dynCall_iiiiiii=r.asm.va).apply(null,arguments)},Vt=r.dynCall_d=function(){return(Vt=r.dynCall_d=r.asm.wa).apply(null,arguments)},Ht=r.dynCall_di=function(){return(Ht=r.dynCall_di=r.asm.xa).apply(null,arguments)},Qt=r.stackSave=function(){return(Qt=r.stackSave=r.asm.ya).apply(null,arguments)},Wt=(r.stackAlloc=function(){return(r.stackAlloc=r.asm.za).apply(null,arguments)},r.stackRestore=function(){return(Wt=r.stackRestore=r.asm.Aa).apply(null,arguments)});function $t(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function Xt(t){function e(){xt||(xt=!0,v||(U=!0,r.noFSInit||at.init.initialized||at.init(),it.init(),Z(O),at.ignorePermissions=!1,Z(L),r.onRuntimeInitialized&&r.onRuntimeInitialized(),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)t=r.postRun.shift(),R.unshift(t);var t;Z(R)}()))}Y>0||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)t=r.preRun.shift(),M.unshift(t);var t;Z(M)}(),Y>0||(r.setStatus?(r.setStatus("Running..."),setTimeout(function(){setTimeout(function(){r.setStatus("")},1),e()},1)):e()))}if(r.asm=bt,r.then=function(t){if(xt)t(r);else{var e=r.onRuntimeInitialized;r.onRuntimeInitialized=function(){e&&e(),t(r)}}return r},B=function t(){xt||Xt(),xt||(B=t)},r.run=Xt,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();function Kt(){}function te(t){return(t||Kt).__cache__}function ee(t,e){var n=te(e),r=n[t];return r||((r=Object.create((e||Kt).prototype)).ptr=t,n[t]=r)}f=!0,Xt(),(Kt.prototype=Object.create(Kt.prototype)).constructor=Kt,Kt.prototype.__class__=Kt,Kt.__cache__={},r.WrapperObject=Kt,r.getCache=te,r.wrapPointer=ee,r.castObject=function(t,e){return ee(t.ptr,e)},r.NULL=ee(0),r.destroy=function(t){if(!t.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";t.__destroy__(),delete te(t.__class__)[t.ptr]},r.compare=function(t,e){return t.ptr===e.ptr},r.getPointer=function(t){return t.ptr},r.getClass=function(t){return t.__class__};var ne={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(ne.needed){for(var t=0;t=ne.size?(y(i>0),ne.needed+=i,n=r._malloc(i),ne.temps.push(n)):(n=ne.buffer+ne.pos,ne.pos+=i),n},copy:function(t,e,n){var r=n;switch(e.BYTES_PER_ELEMENT){case 2:r>>=1;break;case 4:r>>=2;break;case 8:r>>=3}for(var i=0;i\n\n'}}function m(t,e){var n,r=p({images:[],files:[]},e);(function(){for(var t=0,e=0,n=arguments.length;e>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?x(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?x(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=h.exec(t))?new A(e[1],e[2],e[3],1):(e=f.exec(t))?new A(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=d.exec(t))?x(e[1],e[2],e[3],e[4]):(e=p.exec(t))?x(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=g.exec(t))?N(e[1],e[2]/100,e[3]/100,1):(e=m.exec(t))?N(e[1],e[2]/100,e[3]/100,e[4]):v.hasOwnProperty(t)?b(v[t]):"transparent"===t?new A(NaN,NaN,NaN,0):null}function b(t){return new A(t>>16&255,t>>8&255,255&t,1)}function x(t,e,n,r){return r<=0&&(t=e=n=NaN),new A(t,e,n,r)}function E(t){return t instanceof i||(t=w(t)),t?new A((t=t.rgb()).r,t.g,t.b,t.opacity):new A}function T(t,e,n,r){return 1===arguments.length?E(t):new A(t,e,n,null==r?1:r)}function A(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function S(){return"#"+D(this.r)+D(this.g)+D(this.b)}function I(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function D(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function N(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Z(t,e,n,r)}function k(t){if(t instanceof Z)return new Z(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=w(t)),!t)return new Z;if(t instanceof Z)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),a=Math.max(e,n,r),s=NaN,u=a-o,c=(a+o)/2;return u?(s=e===a?(n-r)/u+6*(n0&&c<1?0:s,new Z(s,u,c,t.opacity)}function C(t,e,n,r){return 1===arguments.length?k(t):new Z(t,e,n,null==r?1:r)}function Z(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function M(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}(0,r.Z)(i,w,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return k(this).formatHsl()},formatRgb:_,toString:_}),(0,r.Z)(A,T,(0,r.l)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new A(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new A(this.r*t,this.g*t,this.b*t,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:S,formatHex:S,formatRgb:I,toString:I})),(0,r.Z)(Z,C,(0,r.l)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new Z(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new Z(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new A(M(t>=240?t-240:t+120,i,r),M(t,i,r),M(t<120?t+240:t-120,i,r),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 t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},80052:function(t,e,n){"use strict";function r(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function i(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}n.d(e,{Z:function(){return r},l:function(){return i}})},64641:function(t,e){"use strict";var n={value:function(){}};function r(){for(var t,e=0,n=arguments.length,r={};e=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}function a(t,e){for(var n,r=0,i=t.length;r0)for(var n,r,i=new Array(n),o=0;o1?r[0]+r.slice(2):r,+t.slice(n+1)]}n.d(e,{Z:function(){return r}})},93116:function(t,e,n){"use strict";n.d(e,{Z:function(){return i},v:function(){return o}});var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(t){if(!(e=r.exec(t)))throw new Error("invalid format: "+t);var e;return new o({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function o(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}i.prototype=o.prototype,o.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}},25047:function(t,e,n){"use strict";n.r(e),n.d(e,{formatDefaultLocale:function(){return r.ZP},format:function(){return r.WU},formatPrefix:function(){return r.jH},formatLocale:function(){return i.Z},formatSpecifier:function(){return o.Z},FormatSpecifier:function(){return o.v},precisionFixed:function(){return a.Z},precisionPrefix:function(){return s.Z},precisionRound:function(){return u.Z}});var r=n(3712),i=n(70592),o=n(93116),a=n(22233),s=n(65636),u=n(3218)},70592:function(t,e,n){"use strict";n.d(e,{Z:function(){return f}});var r,i=n(98477),o=n(93116),a=n(25169);function s(t,e){var n=(0,a.Z)(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}var u={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return s(100*t,e)},r:s,s:function(t,e){var n=(0,a.Z)(t,e);if(!n)return t+"";var i=n[0],o=n[1],s=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,u=i.length;return s===u?i:s>u?i+new Array(s-u+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+(0,a.Z)(t,Math.max(0,e+s-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function c(t){return t}var l=Array.prototype.map,h=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function f(t){var e,n,a=void 0===t.grouping||void 0===t.thousands?c:(e=l.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),o.push(t.substring(i-=s,i+s)),!((u+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}),s=void 0===t.currency?"":t.currency[0]+"",f=void 0===t.currency?"":t.currency[1]+"",d=void 0===t.decimal?".":t.decimal+"",p=void 0===t.numerals?c:function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(l.call(t.numerals,String)),g=void 0===t.percent?"%":t.percent+"",m=void 0===t.minus?"-":t.minus+"",v=void 0===t.nan?"NaN":t.nan+"";function y(t){var e=(t=(0,o.Z)(t)).fill,n=t.align,i=t.sign,c=t.symbol,l=t.zero,y=t.width,_=t.comma,w=t.precision,b=t.trim,x=t.type;"n"===x?(_=!0,x="g"):u[x]||(void 0===w&&(w=12),b=!0,x="g"),(l||"0"===e&&"="===n)&&(l=!0,e="0",n="=");var E="$"===c?s:"#"===c&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",T="$"===c?f:/[%p]/.test(x)?g:"",A=u[x],S=/[defgprs%]/.test(x);function I(t){var o,s,u,c=E,f=T;if("c"===x)f=A(t)+f,t="";else{var g=(t=+t)<0||1/t<0;if(t=isNaN(t)?v:A(Math.abs(t),w),b&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),g&&0==+t&&"+"!==i&&(g=!1),c=(g?"("===i?i:m:"-"===i||"("===i?"":i)+c,f=("s"===x?h[8+r/3]:"")+f+(g&&"("===i?")":""),S)for(o=-1,s=t.length;++o(u=t.charCodeAt(o))||u>57){f=(46===u?d+t.slice(o+1):t.slice(o))+f,t=t.slice(0,o);break}}_&&!l&&(t=a(t,1/0));var I=c.length+t.length+f.length,D=I>1)+c+t+f+D.slice(I);break;default:t=D+c+t+f}return p(t)}return w=void 0===w?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w)),I.toString=function(){return t+""},I}return{format:y,formatPrefix:function(t,e){var n=y(((t=(0,o.Z)(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor((0,i.Z)(e)/3))),a=Math.pow(10,-r),s=h[8+r/3];return function(t){return n(a*t)+s}}}}},22233:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(98477);function i(t){return Math.max(0,-(0,r.Z)(Math.abs(t)))}},65636:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(98477);function i(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,r.Z)(e)/3)))-(0,r.Z)(Math.abs(t)))}},3218:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(98477);function i(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,(0,r.Z)(e)-(0,r.Z)(t))+1}},73180:function(t,e,n){!function(t,e,n,r,i,o,a,s,u,c){"use strict";function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e1&&void 0!==arguments[1]?arguments[1]:0,r=e.select(this),i=t.attributes,o=r.node().attributes;if(o)for(var a=0;a0?i.children[0].text:"")}null==t.key&&(o&&("ellipse"!=n&&"polygon"!=n||(n="path")),t.key=n+"-"+e)}function m(t,e){t.id=(e?e.id+".":"")+t.key}function v(t){c[t.id]=t}function y(t,e){o&&t.id in l&&("polygon"!=e.tag&&"ellipse"!=e.tag&&"path"!=e.tag||e.tag==t.tag&&"polygon"!=t.tag||("path"!=e.tag&&(t.alternativeOld=N(e,t)),"path"!=t.tag&&(t.alternativeNew=N(t,e))))}function _(t,e){if(i&&e&&("path"==e.tag||t.alternativeOld&&"path"==t.alternativeOld.tag)){var n=(t.alternativeNew||t).attributes.d;if(t.alternativeOld)var r=g(t.alternativeOld);else r=g(e);(t.alternativeOld||(t.alternativeOld={})).points=function(t,e,n,r){for(var i=t,o=i.cloneNode(),a=i.getTotalLength(),s=(o.setAttribute("d",e),o).getTotalLength(),u=[0],c=0,l=r?n:n/Math.max(a,s);(c+=l)<1;)u.push(c);return u.push(1),u.map(function(t){var e=i.getPointAtLength(t*a),n=o.getPointAtLength(t*s);return[[e.x,e.y],[n.x,n.y]]})}(r,n,a,s)}}function w(t){var e=arguments.length>2?arguments[2]:void 0;p(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),m(t,e);var n=l[t.id];v(t),y(t,n),_(t,n);var r={};t.children.forEach(function(e){var n=e.tag;"ellipse"!=n&&"polygon"!=n||(n="path"),null==r[n]&&(r[n]=0),w(e,r[n]++,t)})}function b(t){(function(t){if(u&&t.parent&&"node"==t.parent.attributes.class&&"title"==t.tag){if(t.children.length>0)var e=t.children[0].text;else e="";h[e]=t.parent}})(t),function(t){var e=t.tag;if(u&&!l[t.id]&&t.parent&&I(t)&&("path"==e||"polygon"==e)){if("polygon"==e){var n=t.parent.children.find(function(t){return"path"==t.tag});n&&(t.totalLength=n.totalLength)}var r=function(t){return function(t){return"edge"==t.parent.attributes.class?t.parent:t.parent.parent.parent}(t).children.find(function(t){return"title"==t.tag})}(t).children[0],i=r.text.split("->");2!=i.length&&(i=r.text.split("--"));var o=i[0],a=h[o],s=f[o];if(s){if((p=a.children.findIndex(function(t,e){return"g"==t.tag}))>=0){var c=a.children[p].children.findIndex(function(t,e){return"a"==t.tag});a=a.children[p].children[c]}(p=s.children.findIndex(function(t,e){return"g"==t.tag}))>=0&&(c=s.children[p].children.findIndex(function(t,e){return"a"==t.tag}),s=s.children[p].children[c]);for(var d=a.children,p=0;p0&&this._queue.shift().call(this)}function M(t,e,n,r){var i=[t*n-(e=-e)*(r=-r),t*r+e*n];return[t=i[0],e=-(e=i[1])]}function O(t,e,n,r,i,o,a){var s=d(P.call(this,o));t.data([s]),_.call(t.node(),s),L(t,e,n,r,i,o,a)}function L(t,e,n,r,i,o,a){var s=a.shortening||0,u=[[0,-3.5],[10,0],[0,3.5],[0,-3.5]],l=r-e,h=i-n,f=Math.sqrt(l*l+h*h);if(0==f)var d=1,p=0;else d=l/f,p=h/f;if(r=e+(f-s-10-.1)*d,i=n+(f-s-10-.1)*p,o.URL||o.tooltip)var g=t.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a"),m=g.selectWithoutDataPropagation("path"),v=g.selectWithoutDataPropagation("polygon");else m=t.selectWithoutDataPropagation("path"),v=t.selectWithoutDataPropagation("polygon");var y=c.path();y.moveTo(e,n),y.lineTo(r,i),m.attr("d",y),r=e+(f-s-10)*d,i=n+(f-s-10)*p;for(var _=0;_ b ["+n+"]}","svg","dot"),s=(new window.DOMParser).parseFromString(a,"image/svg+xml");return e.select(document.createDocumentFragment()).append(function(){return s.documentElement}).select(".edge")}function F(t,e,n,r,i,o){var a=d(B.call(this,r,i));return t.data([a]),_.call(t.node(),a),q(t,e,n,i),this}function q(t,n,r,i,o){if(i.URL||i.tooltip)var a=t.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a");else a=t;var s=a.selectAll("ellipse,polygon,path,polyline"),u=t.selectWithoutDataPropagation("text");if(0!=s.size()){var c=s.node().getBBox();c.cx=c.x+c.width/2,c.cy=c.y+c.height/2}else 0!=u.size()&&(c={x:+u.attr("x"),y:+u.attr("y"),width:0,height:0,cx:+u.attr("x"),cy:+u.attr("y")});return s.each(function(t,i){var o=e.select(this);if(o.attr("cx"))o.attr("cx",b(n)).attr("cy",b(r));else if(o.attr("points")){var a=o.attr("points").trim();o.attr("points",function(t,e,n){var r,i=(r=t.split(" ")).map(function(t){return t.split(",")});return i=r.map(function(t){return[b(+e+ +t.split(",")[0]),b(+n+ +t.split(",")[1])]}),(r=i.map(function(t){return t.join(",")})).join(" ")}(a,n-c.cx,r-c.cy))}else{var s=o.attr("d");o.attr("d",function(t,e,n){(i=t.split(/[A-Z ]/)).shift();var r=t.split(/[^[A-Z ]+/),i=(i.map(function(t){return t.split(",")}),i.map(function(t){return[b(+e+ +t.split(",")[0]),b(+n+ +t.split(",")[1])]}).map(function(t){return t.join(",")}));return r.reduce(function(t,e,n){return t.concat(e,i[n])},[]).join("")}(s,n-c.cx,r-c.cy))}}),0!=u.size()&&u.attr("x",b(+u.attr("x")+n-c.cx)).attr("y",b(+u.attr("y")+r-c.cy)),this}function j(){if(!this._drawnNode)return this;var t=this._drawnNode.g;return t.empty()||t.remove(),this._drawnNode=null,this}function Y(){return this._drawnNode?this._drawnNode.g:e.select(null)}function B(t,n){for(var r="",i=0,o=Object.keys(n);i2")(a)+" ",i+=s+" ".repeat(o-s.length),i+=u.format(" >5")(t-n)+" ","initEnd"!=s&&(i+=u.format(" >5")(t-r.start[e])),"dataProcessEnd"==s&&(i+=" prepare "+u.format(" >5")(t-r.layoutEnd[e])),"renderEnd"==s&&c._transition&&(i+=" transition start margin "+u.format(" >5")(c._transition.delay()-(t-r.renderStart[e])),l=c._transition.delay(),f=c._transition.duration()),"transitionStart"==s){var h=t-r.renderStart[e];i+=" transition delay "+u.format(" >5")(t-r.renderStart[e]),i+=" expected "+u.format(" >5")(l),i+=" diff "+u.format(" >5")(h-l)}if("transitionEnd"==s){var d=t-r.transitionStart[e];i+=" transition duration "+u.format(" >5")(d),i+=" expected "+u.format(" >5")(f),i+=" diff "+u.format(" >5")(d-f)}console.log(i),n=t}:null)},s=0;s5&&void 0!==arguments[5]?arguments[5]:{};if((o=Object.assign({},o)).style&&o.style.includes("invis"))var s=e.select(null);else{var u=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),c=d(P.call(this,o));s=u.append("g").data([c]),_.call(s.node(),c),O.call(this,s,t,n,r,i,o,a)}return this._drawnEdge={g:s,x1:t,y1:n,x2:r,y2:i,attributes:o},this},updateDrawnEdge:function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var a=this._drawnEdge.g;return i=Object.assign(this._drawnEdge.attributes,i),this._drawnEdge.x1=t,this._drawnEdge.y1=e,this._drawnEdge.x2=n,this._drawnEdge.y2=r,!a.empty()||i.style&&i.style.includes("invis")||(a=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnEdge.g=a),a.empty()||O.call(this,a,t,e,n,r,i,o),this},moveDrawnEdgeEndPoint:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var r=this._drawnEdge.g,i=this._drawnEdge.x1,o=this._drawnEdge.y1,a=this._drawnEdge.attributes;return this._drawnEdge.x2=t,this._drawnEdge.y2=e,L(r,i,o,t,e,a,n),this},insertDrawnEdge:function(t){if(!this._drawnEdge)throw Error("No edge has been drawn");var e=this._drawnEdge.g;if(e.empty())return this;e.selectWithoutDataPropagation("title").text(t);var n=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),r=n.datum(),i=this._extractData(e,r.children.length,n.datum());return r.children.push(i),v(e,i),this._drawnEdge=null,this},removeDrawnEdge:R},"removeDrawnEdge",R),l(V,"drawnEdgeSelection",U),l(V,"drawnEdgeSelection",U),l(V,"drawNode",function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if((i=Object.assign({},i)).style&&i.style.includes("invis"))var a=e.select(null);else{var s=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),u=d(B.call(this,r,i));a=s.append("g").data([u]),_.call(a.node(),u),F.call(this,a,t,n,r,i,o)}return this._drawnNode={g:a,nodeId:r,x:t,y:n,attributes:i},this}),l(V,"updateDrawnNode",function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!this._drawnNode)throw Error("No node has been drawn");var o=this._drawnNode.g;return null==n&&(n=this._drawnNode.nodeId),r=Object.assign(this._drawnNode.attributes,r),this._drawnNode.nodeId=n,this._drawnNode.x=t,this._drawnNode.y=e,!o.empty()||r.style&&r.style.includes("invis")||(o=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnNode.g=o),o.empty()||F.call(this,o,t,e,n,r,i),this}),l(V,"moveDrawnNode",function(t,e){if(!this._drawnNode)throw Error("No node has been drawn");var n=this._drawnNode.g,r=this._drawnNode.attributes;return this._drawnNode.x=t,this._drawnNode.y=e,n.empty()||q(n,t,e,r),this}),l(V,"insertDrawnNode",function(t){if(!this._drawnNode)throw Error("No node has been drawn");null==t&&(t=this._drawnNode.nodeId);var e=this._drawnNode.g;if(e.empty())return this;var n=this._drawnNode.attributes;if(e.selectWithoutDataPropagation("title").text(t),n.URL||n.tooltip)var r=e.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a"),i=(r.selectWithoutDataPropagation("ellipse,polygon,path,polyline"),r.selectWithoutDataPropagation("text"));else e.selectWithoutDataPropagation("ellipse,polygon,path,polyline"),i=e.selectWithoutDataPropagation("text");i.text(n.label||t);var o=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),a=o.datum(),s=this._extractData(e,a.children.length,o.datum());return a.children.push(s),v(e,s),this._drawnNode=null,this}),l(V,"removeDrawnNode",j),l(V,"removeDrawnNode",j),l(V,"drawnNodeSelection",Y),l(V,"drawnNodeSelection",Y),V),e.selection.prototype.graphviz=function(t){var e=this.node().__graphviz__;return e?(e.options(t),i.timeout((function(){e._dispatch.call("initEnd",this)}).bind(this),0)):e=new H(this,t),e},e.selection.prototype.selectWithoutDataPropagation=function(t){return e.select(this.size()>0?this.node().querySelector(t):null)},t.graphviz=Q,Object.defineProperty(t,"__esModule",{value:!0})}(e,n(24967),n(58552),n(82159),n(14788),n(30853),n(59320),n(95914),n(25047),n(16809))},60053:function(t,e,n){"use strict";n.d(e,{Z:function(){return o},M:function(){return a}});var r=n(3031),i=n(61317);function o(t,e){return((0,i.v)(e)?i.Z:a)(t,e)}function a(t,e){var n,i=e?e.length:0,o=t?Math.min(i,t.length):0,a=new Array(o),s=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),o=t[i],a=t[i+1];return r((n-i/e)*e,i>0?t[i-1]:2*o-a,o,a,i180||n<-180?n-360*Math.round(n/360):n):(0,r.Z)(isNaN(t)?e:t)}function a(t){return 1==(t=+t)?s:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):(0,r.Z)(isNaN(e)?n:e)}}function s(t,e){var n=e-t;return n?i(t,n):(0,r.Z)(isNaN(t)?e:t)}},94065:function(t,e,n){"use strict";function r(t){return function(){return t}}n.d(e,{Z:function(){return r}})},28917:function(t,e,n){"use strict";function r(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}n.d(e,{Z:function(){return r}})},30853:function(t,e,n){"use strict";n.r(e),n.d(e,{interpolate:function(){return r.Z},interpolateArray:function(){return i.Z},interpolateBasis:function(){return o.Z},interpolateBasisClosed:function(){return a.Z},interpolateCubehelix:function(){return nt},interpolateCubehelixLong:function(){return rt},interpolateDate:function(){return s.Z},interpolateDiscrete:function(){return u},interpolateHcl:function(){return Y},interpolateHclLong:function(){return B},interpolateHsl:function(){return b},interpolateHslLong:function(){return x},interpolateHue:function(){return l},interpolateLab:function(){return q},interpolateNumber:function(){return h.Z},interpolateNumberArray:function(){return f.Z},interpolateObject:function(){return d.Z},interpolateRgb:function(){return y.ZP},interpolateRgbBasis:function(){return y.hD},interpolateRgbBasisClosed:function(){return y.YD},interpolateRound:function(){return p.Z},interpolateString:function(){return g.Z},interpolateTransformCss:function(){return m.Y},interpolateTransformSvg:function(){return m.w},interpolateZoom:function(){return v.Z},piecewise:function(){return it},quantize:function(){return ot}});var r=n(3031),i=n(60053),o=n(39588),a=n(17280),s=n(28917);function u(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}var c=n(22656);function l(t,e){var n=(0,c.wx)(+t,+e);return function(t){var e=n(t);return e-360*Math.floor(e/360)}}var h=n(75306),f=n(61317),d=n(70901),p=n(47071),g=n(51882),m=n(44090),v=n(13764),y=n(38740),_=n(12314);function w(t){return function(e,n){var r=t((e=(0,_.Ym)(e)).h,(n=(0,_.Ym)(n)).h),i=(0,c.ZP)(e.s,n.s),o=(0,c.ZP)(e.l,n.l),a=(0,c.ZP)(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=o(t),e.opacity=a(t),e+""}}}var b=w(c.wx),x=w(c.ZP),E=n(80052),T=Math.PI/180,A=180/Math.PI,S=4/29,I=6/29,D=3*I*I;function N(t){if(t instanceof C)return new C(t.l,t.a,t.b,t.opacity);if(t instanceof P)return F(t);t instanceof _.Ss||(t=(0,_.SU)(t));var e,n,r=L(t.r),i=L(t.g),o=L(t.b),a=Z((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?e=n=a:(e=Z((.4360747*r+.3850649*i+.1430804*o)/.96422),n=Z((.0139322*r+.0971045*i+.7141733*o)/.82521)),new C(116*a-16,500*(e-a),200*(a-n),t.opacity)}function k(t,e,n,r){return 1===arguments.length?N(t):new C(t,e,n,null==r?1:r)}function C(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function Z(t){return t>.008856451679035631?Math.pow(t,1/3):t/D+S}function M(t){return t>I?t*t*t:D*(t-S)}function O(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function L(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function R(t){if(t instanceof P)return new P(t.h,t.c,t.l,t.opacity);if(t instanceof C||(t=N(t)),0===t.a&&0===t.b)return new P(NaN,0u&&(s=e.slice(u,s),l[c]?l[c]+=s:l[++c]=s),(n=n[0])===(a=a[0])?l[c]?l[c]+=a:l[++c]=a:(l[++c]=null,h.push({i:c,x:(0,r.Z)(n,a)})),u=o.lastIndex;return u180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:(0,s.Z)(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,u,c),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:(0,s.Z)(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,u,c),function(t,e,n,r,o,a){if(t!==n||e!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:(0,s.Z)(t,n)},{i:u-2,x:(0,s.Z)(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,c),o=a=null,function(t){for(var e,n=-1,r=c.length;++n1e-6)if(Math.abs(h*u-c*l)>1e-6&&o){var d=r-a,p=i-s,g=u*u+c*c,m=d*d+p*p,v=Math.sqrt(g),y=Math.sqrt(f),_=o*Math.tan((n-Math.acos((g+f-m)/(2*v*y)))/2),w=_/y,b=_/v;Math.abs(w-1)>1e-6&&(this._+="L"+(t+w*l)+","+(e+w*h)),this._+="A"+o+","+o+",0,0,"+ +(h*d>l*p)+","+(this._x1=t+b*u)+","+(this._y1=e+b*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,o,a,s,u){t=+t,e=+e,u=!!u;var c=(o=+o)*Math.cos(a),l=o*Math.sin(a),h=t+c,f=e+l,d=1^u,p=u?a-s:s-a;if(o<0)throw new Error("negative radius: "+o);null===this._x1?this._+="M"+h+","+f:(Math.abs(this._x1-h)>1e-6||Math.abs(this._y1-f)>1e-6)&&(this._+="L"+h+","+f),o&&(p<0&&(p=p%r+r),p>i?this._+="A"+o+","+o+",0,1,"+d+","+(t-c)+","+(e-l)+"A"+o+","+o+",0,1,"+d+","+(this._x1=h)+","+(this._y1=f):p>1e-6&&(this._+="A"+o+","+o+",0,"+ +(p>=n)+","+d+","+(this._x1=t+o*Math.cos(s))+","+(this._y1=e+o*Math.sin(s))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},e.Z=a},32436:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(26669),i=n(71867);function o(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===i.P&&e.documentElement.namespaceURI===i.P?e.createElement(t):e.createElementNS(n,t)}}function a(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function s(t){var e=(0,r.Z)(t);return(e.local?a:o)(e)}},24967:function(t,e,n){"use strict";n.r(e),n.d(e,{clientPoint:function(){return d.Z},create:function(){return o},creator:function(){return r.Z},customEvent:function(){return E._H},event:function(){return E.B},local:function(){return s},matcher:function(){return c.Z},mouse:function(){return l.Z},namespace:function(){return h.Z},namespaces:function(){return f.Z},select:function(){return i.Z},selectAll:function(){return g},selection:function(){return p.ZP},selector:function(){return m.Z},selectorAll:function(){return v.Z},style:function(){return y.S},touch:function(){return _.Z},touches:function(){return b},window:function(){return x.Z}});var r=n(32436),i=n(41036);function o(t){return(0,i.Z)((0,r.Z)(t).call(document.documentElement))}var a=0;function s(){return new u}function u(){this._="@"+(++a).toString(36)}u.prototype=s.prototype={constructor:u,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var c=n(54382),l=n(38337),h=n(26669),f=n(71867),d=n(54762),p=n(42710);function g(t){return"string"==typeof t?new p.Y1([document.querySelectorAll(t)],[document.documentElement]):new p.Y1([null==t?[]:t],p.Jz)}var m=n(69309),v=n(85502),y=n(97717),_=n(45161),w=n(72732);function b(t,e){null==e&&(e=(0,w.Z)().touches);for(var n=0,r=e?e.length:0,i=new Array(r);n=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),r.Z.hasOwnProperty(e)?{space:r.Z[e],local:t}:t}},71867:function(t,e,n){"use strict";n.d(e,{P:function(){return r}});var r="http://www.w3.org/1999/xhtml";e.Z={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},54762:function(t,e,n){"use strict";function r(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}n.d(e,{Z:function(){return r}})},41036:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(42710);function i(t){return"string"==typeof t?new r.Y1([[document.querySelector(t)]],[document.documentElement]):new r.Y1([[t]],r.Jz)}},42710:function(t,e,n){"use strict";n.d(e,{Y1:function(){return Q},ZP:function(){return $},Jz:function(){return H}});var r=n(69309),i=n(85502),o=n(54382);function a(t){return new Array(t.length)}function s(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function u(t,e,n,r,i,o){for(var a,u=0,c=e.length,l=o.length;ue?1:t>=e?0:NaN}s.prototype={constructor:s,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var h=n(26669);function f(t){return function(){this.removeAttribute(t)}}function d(t){return function(){this.removeAttributeNS(t.space,t.local)}}function p(t,e){return function(){this.setAttribute(t,e)}}function g(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function m(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function v(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var y=n(97717);function _(t){return function(){delete this[t]}}function w(t,e){return function(){this[t]=e}}function b(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function x(t){return t.trim().split(/^|\s+/)}function E(t){return t.classList||new T(t)}function T(t){this._node=t,this._names=x(t.getAttribute("class")||"")}function A(t,e){for(var n=E(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var P=n(32436);function F(){return null}function q(){var t=this.parentNode;t&&t.removeChild(this)}function j(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Y(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var B=n(92711),z=n(11130);function G(t,e,n){var r=(0,z.Z)(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function J(t,e){return function(){return G(this,t,e)}}function V(t,e){return function(){return G(this,t,e.apply(this,arguments))}}var H=[null];function Q(t,e){this._groups=t,this._parents=e}function W(){return new Q([[document.documentElement]],H)}Q.prototype=W.prototype={constructor:Q,select:function(t){"function"!=typeof t&&(t=(0,r.Z)(t));for(var e=this._groups,n=e.length,i=new Array(n),o=0;o=E&&(E=x+1);!(b=_[E])&&++E=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=l);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==e?_:"function"==typeof e?b:w)(t,e)):this.node()[t]},classed:function(t,e){var n=x(t+"");if(arguments.length<2){for(var r=E(this.node()),i=-1,o=n.length;++i=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}function u(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r1?this.each((null==e?i:"function"==typeof e?a:o)(t,e,null==n?"":n)):u(this.node(),t)}function u(t,e){return t.style.getPropertyValue(e)||(0,r.Z)(t).getComputedStyle(t,null).getPropertyValue(e)}},69309:function(t,e,n){"use strict";function r(){}function i(t){return null==t?r:function(){return this.querySelector(t)}}n.d(e,{Z:function(){return i}})},85502:function(t,e,n){"use strict";function r(){return[]}function i(t){return null==t?r:function(){return this.querySelectorAll(t)}}n.d(e,{Z:function(){return i}})},72732:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(92711);function i(){for(var t,e=r.B;t=e.sourceEvent;)e=t;return e}},45161:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(72732),i=n(54762);function o(t,e,n){arguments.length<3&&(n=e,e=(0,r.Z)().changedTouches);for(var o,a=0,s=e?e.length:0;a=0&&e._call.call(null,t),e=e._next;--o}function y(){c=(u=h.now())+l,o=a=0;try{v()}finally{o=0,function(){for(var t,e,n=r,o=1/0;n;)n._call?(o>n._time&&(o=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,w(o)}(),c=0}}function _(){var t=h.now(),e=t-u;e>1e3&&(l-=e,u=t)}function w(t){o||(a&&(a=clearTimeout(a)),t-c>24?(t<1/0&&(a=setTimeout(y,t-h.now()-l)),s&&(s=clearInterval(s))):(s||(u=h.now(),s=setInterval(_,1e3)),o=1,f(y)))}g.prototype=m.prototype={constructor:g,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?d():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,w()},stop:function(){this._call&&(this._call=null,this._time=1/0,w())}}},82159:function(t,e,n){"use strict";n.r(e),n.d(e,{active:function(){return it},interrupt:function(){return d},transition:function(){return X}});var r=n(42710),i=n(64641),o=n(65244),a=n(74199),s=(0,i.Z)("start","end","cancel","interrupt"),u=[];function c(t,e,n,r,i,c){var l=t.__transition;if(l){if(n in l)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function s(o){var l,h,f,d;if(1!==n.state)return c();for(l in i)if((d=i[l]).name===n.name){if(3===d.state)return(0,a.Z)(s);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete i[l]):+l0)throw new Error("too late; already scheduled");return n}function h(t,e){var n=f(t,e);if(n.state>3)throw new Error("too late; already running");return n}function f(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function d(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}}var p=n(44090),g=n(26669);function m(t,e){var n,r;return function(){var i=h(this,t),o=i.tween;if(o!==n)for(var a=0,s=(r=n=o).length;a=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?l:h;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var j=n(69309),Y=n(85502),B=r.ZP.prototype.constructor,z=n(97717);function G(t){return function(){this.style.removeProperty(t)}}function J(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function V(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&J(t,o,n)),r}return o._value=e,o}function H(t){return function(e){this.textContent=t.call(this,e)}}function Q(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&H(r)),e}return r._value=t,r}var W=0;function $(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function X(t){return(0,r.ZP)().transition(t)}function K(){return++W}var tt=r.ZP.prototype;$.prototype=X.prototype={constructor:$,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=(0,j.Z)(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a1&&n.name===e)return new $([[t]],rt,e,+r);return null}},59320:function(t,e,n){"use strict";n.r(e),n.d(e,{zoom:function(){return T},zoomIdentity:function(){return p},zoomTransform:function(){return g}});var r=n(64641),i=n(8634),o=n(13764),a=n(92711),s=n(38337),u=n(41036),c=n(45161),l=n(82159);function h(t){return function(){return t}}function f(t,e,n){this.target=t,this.type=e,this.transform=n}function d(t,e,n){this.k=t,this.x=e,this.y=n}d.prototype={constructor:d,scale:function(t){return 1===t?this:new d(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new d(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var p=new d(1,0,0);function g(t){return t.__zoom||p}function m(){a.B.stopImmediatePropagation()}function v(){a.B.preventDefault(),a.B.stopImmediatePropagation()}function y(){return!a.B.button}function _(){var t,e,n=this;return n instanceof SVGElement?(t=(n=n.ownerSVGElement||n).width.baseVal.value,e=n.height.baseVal.value):(t=n.clientWidth,e=n.clientHeight),[[0,0],[t,e]]}function w(){return this.__zoom||p}function b(){return-a.B.deltaY*(a.B.deltaMode?120:1)/500}function x(){return"ontouchstart"in this}function E(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function T(){var t,e,n=y,g=_,T=E,A=b,S=x,I=[0,1/0],D=[[-1/0,-1/0],[1/0,1/0]],N=250,k=o.Z,C=[],Z=(0,r.Z)("start","zoom","end"),M=0;function O(t){t.property("__zoom",w).on("wheel.zoom",j).on("mousedown.zoom",Y).on("dblclick.zoom",B).filter(S).on("touchstart.zoom",z).on("touchmove.zoom",G).on("touchend.zoom touchcancel.zoom",J).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function L(t,e){return(e=Math.max(I[0],Math.min(I[1],e)))===t.k?t:new d(e,t.x,t.y)}function R(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new d(t.k,r,i)}function U(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function P(t,e,n){t.on("start.zoom",function(){F(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){F(this,arguments).end()}).tween("zoom",function(){var t=this,r=arguments,i=F(t,r),o=g.apply(t,r),a=n||U(o),s=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),u=t.__zoom,c="function"==typeof e?e.apply(t,r):e,l=k(u.invert(a).concat(s/u.k),c.invert(a).concat(s/c.k));return function(t){if(1===t)t=c;else{var e=l(t),n=s/e[2];t=new d(n,a[0]-e[0]*n,a[1]-e[1]*n)}i.zoom(null,t)}})}function F(t,e){for(var n,r=0,i=C.length;rM}t.zoom("mouse",T(R(t.that.__zoom,t.mouse[0]=(0,s.Z)(t.that),t.mouse[1]),t.extent,D))}function d(){r.on("mousemove.zoom mouseup.zoom",null),(0,i.D)(a.B.view,t.moved),v(),t.end()}}function B(){if(n.apply(this,arguments)){var t=this.__zoom,e=(0,s.Z)(this),r=t.invert(e),i=t.k*(a.B.shiftKey?.5:2),o=T(R(L(t,i),e,r),g.apply(this,arguments),D);v(),N>0?(0,u.Z)(this).transition().duration(N).call(P,o,e):(0,u.Z)(this).call(O.transform,o)}}function z(){if(n.apply(this,arguments)){var e,r,i,o,s=F(this,arguments),h=a.B.changedTouches,f=h.length;for(m(),r=0;r0;--u)if(r=e[u].dequeue()){i=i.concat(s(t,e,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(c,function(e){return t.outEdges(e.v,e.w)}),!0)};var a=r.constant(1);function s(t,e,n,i,o){var a=o?[]:void 0;return r.forEach(t.inEdges(i.v),function(r){var i=t.edge(r),s=t.node(r.v);o&&a.push({v:r.v,w:r.w}),s.out-=i,u(e,n,s)}),r.forEach(t.outEdges(i.v),function(r){var i=t.edge(r),o=t.node(r.w);o.in-=i,u(e,n,o)}),t.removeNode(i.v),a}function u(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},73363:function(t,e,n){"use strict";var r=n(91096),i=n(19265),o=n(3266),a=n(29438),s=n(45247).normalizeRanks,u=n(22877),c=n(45247).removeEmptyRanks,l=n(8131),h=n(28549),f=n(64061),d=n(41727),p=n(14588),g=n(45247),m=n(49174).Graph;t.exports=function(t,e){var n=e&&e.debugTiming?g.time:g.notime;n("layout",function(){var e=n(" buildLayoutGraph",function(){return function(t){var e=new m({multigraph:!0,compound:!0}),n=S(t.graph());return e.setGraph(r.merge({},y,A(n,v),r.pick(n,_))),r.forEach(t.nodes(),function(n){var i=S(t.node(n));e.setNode(n,r.defaults(A(i,w),b)),e.setParent(n,t.parent(n))}),r.forEach(t.edges(),function(n){var i=S(t.edge(n));e.setEdge(n,r.merge({},E,A(i,x),r.pick(i,T)))}),e}(t)});n(" runLayout",function(){!function(t,e){e(" makeSpaceForEdgeLabels",function(){!function(t){var e=t.graph();e.ranksep/=2,r.forEach(t.edges(),function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}(t)}),e(" removeSelfEdges",function(){!function(t){r.forEach(t.edges(),function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e,label:t.edge(e)}),t.removeEdge(e)}})}(t)}),e(" acyclic",function(){i.run(t)}),e(" nestingGraph.run",function(){l.run(t)}),e(" rank",function(){a(g.asNonCompoundGraph(t))}),e(" injectEdgeLabelProxies",function(){!function(t){r.forEach(t.edges(),function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i=t.node(e.w);g.addDummyNode(t,"edge-proxy",{rank:(i.rank-r.rank)/2+r.rank,e},"_ep")}})}(t)}),e(" removeEmptyRanks",function(){c(t)}),e(" nestingGraph.cleanup",function(){l.cleanup(t)}),e(" normalizeRanks",function(){s(t)}),e(" assignRankMinMax",function(){!function(t){var e=0;r.forEach(t.nodes(),function(n){var i=t.node(n);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=r.max(e,i.maxRank))}),t.graph().maxRank=e}(t)}),e(" removeEdgeLabelProxies",function(){!function(t){r.forEach(t.nodes(),function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))})}(t)}),e(" normalize.run",function(){o.run(t)}),e(" parentDummyChains",function(){u(t)}),e(" addBorderSegments",function(){h(t)}),e(" order",function(){d(t)}),e(" insertSelfEdges",function(){!function(t){var e=g.buildLayerMatrix(t);r.forEach(e,function(e){var n=0;r.forEach(e,function(e,i){var o=t.node(e);o.order=i+n,r.forEach(o.selfEdges,function(e){g.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:i+ ++n,e:e.e,label:e.label},"_se")}),delete o.selfEdges})})}(t)}),e(" adjustCoordinateSystem",function(){f.adjust(t)}),e(" position",function(){p(t)}),e(" positionSelfEdges",function(){!function(t){r.forEach(t.nodes(),function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,o=r.y,a=n.x-i,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*a/3,y:o-s},{x:i+5*a/6,y:o-s},{x:i+a,y:o},{x:i+5*a/6,y:o+s},{x:i+2*a/3,y:o+s}],n.label.x=n.x,n.label.y=n.y}})}(t)}),e(" removeBorderNodes",function(){!function(t){r.forEach(t.nodes(),function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),o=t.node(n.borderBottom),a=t.node(r.last(n.borderLeft)),s=t.node(r.last(n.borderRight));n.width=Math.abs(s.x-a.x),n.height=Math.abs(o.y-i.y),n.x=a.x+n.width/2,n.y=i.y+n.height/2}}),r.forEach(t.nodes(),function(e){"border"===t.node(e).dummy&&t.removeNode(e)})}(t)}),e(" normalize.undo",function(){o.undo(t)}),e(" fixupEdgeLabelCoords",function(){!function(t){r.forEach(t.edges(),function(e){var n=t.edge(e);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}})}(t)}),e(" undoCoordinateSystem",function(){f.undo(t)}),e(" translateGraph",function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,o=0,a=t.graph(),s=a.marginx||0,u=a.marginy||0;function c(t){var r=t.x,a=t.y,s=t.width,u=t.height;e=Math.min(e,r-s/2),n=Math.max(n,r+s/2),i=Math.min(i,a-u/2),o=Math.max(o,a+u/2)}r.forEach(t.nodes(),function(e){c(t.node(e))}),r.forEach(t.edges(),function(e){var n=t.edge(e);r.has(n,"x")&&c(n)}),e-=s,i-=u,r.forEach(t.nodes(),function(n){var r=t.node(n);r.x-=e,r.y-=i}),r.forEach(t.edges(),function(n){var o=t.edge(n);r.forEach(o.points,function(t){t.x-=e,t.y-=i}),r.has(o,"x")&&(o.x-=e),r.has(o,"y")&&(o.y-=i)}),a.width=n-e+s,a.height=o-i+u}(t)}),e(" assignNodeIntersects",function(){!function(t){r.forEach(t.edges(),function(e){var n,r,i=t.edge(e),o=t.node(e.v),a=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=a,r=o),i.points.unshift(g.intersectRect(o,n)),i.points.push(g.intersectRect(a,r))})}(t)}),e(" reversePoints",function(){!function(t){r.forEach(t.edges(),function(e){var n=t.edge(e);n.reversed&&n.points.reverse()})}(t)}),e(" acyclic.undo",function(){i.undo(t)})}(e,n)}),n(" updateInputGraph",function(){!function(t,e){r.forEach(t.nodes(),function(n){var r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,e.children(n).length&&(r.width=i.width,r.height=i.height))}),r.forEach(t.edges(),function(n){var i=t.edge(n),o=e.edge(n);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)}),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)})})};var v=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},_=["acyclicer","ranker","rankdir","align"],w=["width","height"],b={width:0,height:0},x=["minlen","weight","width","height","labeloffset"],E={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},T=["labelpos"];function A(t,e){return r.mapValues(r.pick(t,e),Number)}function S(t){var e={};return r.forEach(t,function(t,n){e[n.toLowerCase()]=t}),e}},91096:function(t,e,n){var r;try{r={cloneDeep:n(38961),constant:n(60583),defaults:n(25177),each:n(97635),filter:n(9673),find:n(13963),flatten:n(38863),forEach:n(26404),forIn:n(21308),has:n(71645),isUndefined:n(96075),last:n(83074),map:n(86169),mapValues:n(7301),max:n(11653),merge:n(81940),min:n(47983),minBy:n(42707),now:n(41396),pick:n(28891),range:n(79289),reduce:n(37442),sortBy:n(36272),uniqueId:n(83798),values:n(95041),zipObject:n(3393)}}catch(i){}r||(r=window._),t.exports=r},8131:function(t,e,n){var r=n(91096),i=n(45247);function o(t,e,n,a,s,u,c){var l=t.children(c);if(l.length){var h=i.addBorderNode(t,"_bt"),f=i.addBorderNode(t,"_bb"),d=t.node(c);t.setParent(h,c),d.borderTop=h,t.setParent(f,c),d.borderBottom=f,r.forEach(l,function(r){o(t,e,n,a,s,u,r);var i=t.node(r),l=i.borderTop?i.borderTop:r,d=i.borderBottom?i.borderBottom:r,p=i.borderTop?a:2*a,g=l!==d?1:s-u[c]+1;t.setEdge(h,l,{weight:p,minlen:g,nestingEdge:!0}),t.setEdge(d,f,{weight:p,minlen:g,nestingEdge:!0})}),t.parent(c)||t.setEdge(e,h,{weight:0,minlen:s+u[c]})}else c!==e&&t.setEdge(e,c,{weight:0,minlen:n})}t.exports={run:function(t){var e=i.addDummyNode(t,"root",{},"_root"),n=function(t){var e={};function n(i,o){var a=t.children(i);a&&a.length&&r.forEach(a,function(t){n(t,o+1)}),e[i]=o}return r.forEach(t.children(),function(t){n(t,1)}),e}(t),a=r.max(r.values(n))-1,s=2*a+1;t.graph().nestingRoot=e,r.forEach(t.edges(),function(e){t.edge(e).minlen*=s});var u=function(t){return r.reduce(t.edges(),function(e,n){return e+t.edge(n).weight},0)}(t)+1;r.forEach(t.children(),function(r){o(t,e,s,u,a,n,r)}),t.graph().nodeRankFactor=s},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.forEach(t.edges(),function(e){t.edge(e).nestingEdge&&t.removeEdge(e)})}}},3266:function(t,e,n){"use strict";var r=n(91096),i=n(45247);t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),function(e){!function(t,e){var n,r,o,a=e.v,s=t.node(a).rank,u=e.w,c=t.node(u).rank,l=e.name,h=t.edge(e),f=h.labelRank;if(c!==s+1){for(t.removeEdge(e),o=0,++s;s0;)e%2&&(n+=u[e+1]),u[e=e-1>>1]+=t.weight;c+=t.weight*n})),c}t.exports=function(t,e){for(var n=0,r=1;r=2),s=l.buildLayerMatrix(t);var m=o(t,s);m=t.barycenter)&&(o=0,a=0,(n=t).weight&&(o+=n.barycenter*n.weight,a+=n.weight),(i=e).weight&&(o+=i.barycenter*i.weight,a+=i.weight),n.vs=i.vs.concat(n.vs),n.barycenter=o/a,n.weight=a,n.i=Math.min(i.i,n.i),i.merged=!0)}}function i(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var o=t.pop();e.push(o),r.forEach(o.in.reverse(),n(o)),r.forEach(o.out,i(o))}return r.map(r.filter(e,function(t){return!t.merged}),function(t){return r.pick(t,["vs","i","barycenter","weight"])})}(r.filter(n,function(t){return!t.indegree}))}},5826:function(t,e,n){var r=n(91096),i=n(25412),o=n(82764),a=n(37850);t.exports=function t(e,n,s,u){var c=e.children(n),l=e.node(n),h=l?l.borderLeft:void 0,f=l?l.borderRight:void 0,d={};h&&(c=r.filter(c,function(t){return t!==h&&t!==f}));var p=i(e,c);r.forEach(p,function(n){if(e.children(n.v).length){var i=t(e,n.v,s,u);d[n.v]=i,r.has(i,"barycenter")&&(a=i,r.isUndefined((o=n).barycenter)?(o.barycenter=a.barycenter,o.weight=a.weight):(o.barycenter=(o.barycenter*o.weight+a.barycenter*a.weight)/(o.weight+a.weight),o.weight+=a.weight))}var o,a});var g=o(p,s);!function(t,e){r.forEach(t,function(t){t.vs=r.flatten(t.vs.map(function(t){return e[t]?e[t].vs:t}),!0)})}(g,d);var m=a(g,u);if(h&&(m.vs=r.flatten([h,m.vs,f],!0),e.predecessors(h).length)){var v=e.node(e.predecessors(h)[0]),y=e.node(e.predecessors(f)[0]);r.has(m,"barycenter")||(m.barycenter=0,m.weight=0),m.barycenter=(m.barycenter*m.weight+v.order+y.order)/(m.weight+2),m.weight+=2}return m}},37850:function(t,e,n){var r=n(91096),i=n(45247);function o(t,e,n){for(var i;e.length&&(i=r.last(e)).i<=n;)e.pop(),t.push(i.vs),n++;return n}t.exports=function(t,e){var n,a=i.partition(t,function(t){return r.has(t,"barycenter")}),s=a.lhs,u=r.sortBy(a.rhs,function(t){return-t.i}),c=[],l=0,h=0,f=0;s.sort((n=!!e,function(t,e){return t.barycentere.barycenter?1:n?e.i-t.i:t.i-e.i})),f=o(c,u,f),r.forEach(s,function(t){f+=t.vs.length,c.push(t.vs),l+=t.barycenter*t.weight,h+=t.weight,f=o(c,u,f)});var d={vs:r.flatten(c,!0)};return h&&(d.barycenter=l/h,d.weight=h),d}},22877:function(t,e,n){var r=n(91096);t.exports=function(t){var e=function(t){var e={},n=0;return r.forEach(t.children(),function i(o){var a=n;r.forEach(t.children(o),i),e[o]={low:a,lim:n++}}),e}(t);r.forEach(t.graph().dummyChains,function(n){for(var r=t.node(n),i=r.edgeObj,o=function(t,e,n,r){var i,o,a=[],s=[],u=Math.min(e[n].low,e[r].low),c=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),a.push(i)}while(i&&(e[i].low>u||c>e[i].lim));for(o=i,i=r;(i=t.parent(i))!==o;)s.push(i);return{path:a.concat(s.reverse()),lca:o}}(t,e,i.v,i.w),a=o.path,s=o.lca,u=0,c=a[u],l=!0;n!==i.w;){if(r=t.node(n),l){for(;(c=a[u])!==s&&t.node(c).maxRanks)&&u(n,e,c)})})}return r.reduce(e,function(e,n){var o,a=-1,s=0;return r.forEach(n,function(r,u){if("border"===t.node(r).dummy){var c=t.predecessors(r);c.length&&(o=t.node(c[0]).order,i(n,s,u,a,o),s=u,a=o)}i(n,s,n.length,o,e.length)}),n}),n}function u(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function c(t,e,n){if(e>n){var i=e;e=n,n=i}return r.has(t[e],n)}function l(t,e,n,i){var o={},a={},s={};return r.forEach(e,function(t){r.forEach(t,function(t,e){o[t]=t,a[t]=t,s[t]=e})}),r.forEach(e,function(t){var e=-1;r.forEach(t,function(t){var u=i(t);if(u.length)for(var l=((u=r.sortBy(u,function(t){return s[t]})).length-1)/2,h=Math.floor(l),f=Math.ceil(l);h<=f;++h){var d=u[h];a[t]===t&&eu.lim&&(c=u,l=!0);var h=r.filter(e.edges(),function(e){return l===y(0,t.node(e.v),c)&&l!==y(0,t.node(e.w),c)});return r.minBy(h,function(t){return o(e,t)})}function v(t,e,n,i){t.removeEdge(n.v,n.w),t.setEdge(i.v,i.w,{}),d(t),h(t,e),function(t,e){var n=r.find(t.nodes(),function(t){return!e.node(t).parent}),i=s(t,n);i=i.slice(1),r.forEach(i,function(n){var r=t.node(n).parent,i=e.edge(n,r),o=!1;i||(i=e.edge(r,n),o=!0),e.node(n).rank=e.node(r).rank+(o?i.minlen:-i.minlen)})}(t,e)}function y(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=l,l.initLowLimValues=d,l.initCutValues=h,l.calcCutValue=f,l.leaveEdge=g,l.enterEdge=m,l.exchangeEdges=v},21790:function(t,e,n){"use strict";var r=n(91096);t.exports={longestPath:function(t){var e={};r.forEach(t.sources(),function n(i){var o=t.node(i);if(r.has(e,i))return o.rank;e[i]=!0;var a=r.min(r.map(t.outEdges(i),function(e){return n(e.w)-t.edge(e).minlen}));return a!==Number.POSITIVE_INFINITY&&null!=a||(a=0),o.rank=a})},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},45247:function(t,e,n){"use strict";var r=n(91096),i=n(49174).Graph;function o(t,e,n,i){var o;do{o=r.uniqueId(i)}while(t.hasNode(o));return n.dummy=e,t.setNode(o,n),o}function a(t){return r.max(r.map(t.nodes(),function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n}))}t.exports={addDummyNode:o,simplify:function(t){var e=(new i).setGraph(t.graph());return r.forEach(t.nodes(),function(n){e.setNode(n,t.node(n))}),r.forEach(t.edges(),function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),e},asNonCompoundGraph:function(t){var e=new i({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),function(n){t.children(n).length||e.setNode(n,t.node(n))}),r.forEach(t.edges(),function(n){e.setEdge(n,t.edge(n))}),e},successorWeights:function(t){var e=r.map(t.nodes(),function(e){var n={};return r.forEach(t.outEdges(e),function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight}),n});return r.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=r.map(t.nodes(),function(e){var n={};return r.forEach(t.inEdges(e),function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight}),n});return r.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,i=t.x,o=t.y,a=e.x-i,s=e.y-o,u=t.width/2,c=t.height/2;if(!a&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*u>Math.abs(a)*c?(s<0&&(c=-c),n=c*a/s,r=c):(a<0&&(u=-u),n=u,r=u*s/a),{x:i+n,y:o+r}},buildLayerMatrix:function(t){var e=r.map(r.range(a(t)+1),function(){return[]});return r.forEach(t.nodes(),function(n){var i=t.node(n),o=i.rank;r.isUndefined(o)||(e[o][i.order]=n)}),e},normalizeRanks:function(t){var e=r.min(r.map(t.nodes(),function(e){return t.node(e).rank}));r.forEach(t.nodes(),function(n){var i=t.node(n);r.has(i,"rank")&&(i.rank-=e)})},removeEmptyRanks:function(t){var e=r.min(r.map(t.nodes(),function(e){return t.node(e).rank})),n=[];r.forEach(t.nodes(),function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)});var i=0,o=t.graph().nodeRankFactor;r.forEach(n,function(e,n){r.isUndefined(e)&&n%o!=0?--i:i&&r.forEach(e,function(e){t.node(e).rank+=i})})},addBorderNode:function(t,e,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),o(t,"border",i,e)},maxRank:a,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,function(t){e(t)?n.lhs.push(t):n.rhs.push(t)}),n},time:function(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}},notime:function(t,e){return e()}}},32862:function(t){t.exports="0.8.5"},54204:function(t,e,n){var r=n(97078);t.exports={Graph:r.Graph,json:n(2063),alg:n(29790),version:r.version}},66451:function(t,e,n){var r=n(77241);t.exports=function(t){var e,n={},i=[];function o(i){r.has(n,i)||(n[i]=!0,e.push(i),r.each(t.successors(i),o),r.each(t.predecessors(i),o))}return r.each(t.nodes(),function(t){e=[],o(t),e.length&&i.push(e)}),i}},70485:function(t,e,n){var r=n(77241);function i(t,e,n,o,a,s){r.has(o,e)||(o[e]=!0,n||s.push(e),r.each(a(e),function(e){i(t,e,n,o,a,s)}),n&&s.push(e))}t.exports=function(t,e,n){r.isArray(e)||(e=[e]);var o=(t.isDirected()?t.successors:t.neighbors).bind(t),a=[],s={};return r.each(e,function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);i(t,e,"post"===n,s,o,a)}),a}},85818:function(t,e,n){var r=n(26731),i=n(77241);t.exports=function(t,e,n){return i.transform(t.nodes(),function(i,o){i[o]=r(t,o,e,n)},{})}},26731:function(t,e,n){var r=n(77241),i=n(9266);t.exports=function(t,e,n,r){return function(t,e,n,r){var o,a,s={},u=new i,c=function(t){var e=t.v!==o?t.v:t.w,r=s[e],i=n(t),c=a.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);c0&&(o=u.removeMin(),(a=s[o]).distance!==Number.POSITIVE_INFINITY);)r(o).forEach(c);return s}(t,String(e),n||o,r||function(e){return t.outEdges(e)})};var o=r.constant(1)},8821:function(t,e,n){var r=n(77241),i=n(45759);t.exports=function(t){return r.filter(i(t),function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])})}},24980:function(t,e,n){var r=n(77241);t.exports=function(t,e,n){return function(t,e,n){var r={},i=t.nodes();return i.forEach(function(t){r[t]={},r[t][t]={distance:0},i.forEach(function(e){t!==e&&(r[t][e]={distance:Number.POSITIVE_INFINITY})}),n(t).forEach(function(n){var i=n.v===t?n.w:n.v,o=e(n);r[t][i]={distance:o,predecessor:t}})}),i.forEach(function(t){var e=r[t];i.forEach(function(n){var o=r[n];i.forEach(function(n){var r=e[n],i=o[n],a=o[t].distance+r.distance;a0;){if(n=u.removeMin(),r.has(s,n))a.setEdge(n,s[n]);else{if(l)throw new Error("Input graph is not connected: "+t);l=!0}t.nodeEdges(n).forEach(c)}return a}},45759:function(t,e,n){var r=n(77241);t.exports=function(t){var e=0,n=[],i={},o=[];function a(s){var u=i[s]={onStack:!0,lowlink:e,index:e++};if(n.push(s),t.successors(s).forEach(function(t){r.has(i,t)?i[t].onStack&&(u.lowlink=Math.min(u.lowlink,i[t].index)):(a(t),u.lowlink=Math.min(u.lowlink,i[t].lowlink))}),u.lowlink===u.index){var c,l=[];do{c=n.pop(),i[c].onStack=!1,l.push(c)}while(s!==c);o.push(l)}}return t.nodes().forEach(function(t){r.has(i,t)||a(t)}),o}},94394:function(t,e,n){var r=n(77241);function i(t){var e={},n={},i=[];if(r.each(t.sinks(),function a(s){if(r.has(n,s))throw new o;r.has(e,s)||(n[s]=!0,e[s]=!0,r.each(t.predecessors(s),a),delete n[s],i.push(s))}),r.size(e)!==t.nodeCount())throw new o;return i}function o(){}t.exports=i,i.CycleException=o,o.prototype=new Error},9266:function(t,e,n){var r=n(77241);function i(){this._arr=[],this._keyIndices={}}t.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map(function(t){return t.key})},i.prototype.has=function(t){return r.has(this._keyIndices,t)},i.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var i=this._arr,o=i.length;return n[t]=o,i.push({key:t,priority:e}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},i.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},i.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n>1].prioritya){var s=o;o=a,a=s}return o+"\x01"+a+"\x01"+(r.isUndefined(i)?"\0":i)}function u(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var a=i;i=o,o=a}var s={v:i,w:o};return r&&(s.name=r),s}function c(t,e){return s(t,e.v,e.w,e.name)}t.exports=i,i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(t){return this._label=t,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return r.keys(this._nodes)},i.prototype.sources=function(){var t=this;return r.filter(this.nodes(),function(e){return r.isEmpty(t._in[e])})},i.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),function(e){return r.isEmpty(t._out[e])})},i.prototype.setNodes=function(t,e){var n=arguments,i=this;return r.each(t,function(t){n.length>1?i.setNode(t,e):i.setNode(t)}),this},i.prototype.setNode=function(t,e){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]="\0",this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},i.prototype.node=function(t){return this._nodes[t]},i.prototype.hasNode=function(t){return r.has(this._nodes,t)},i.prototype.removeNode=function(t){var e=this;if(r.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),function(t){e.setParent(t)}),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},i.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e="\0";else{for(var n=e+="";!r.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},i.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},i.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if("\0"!==e)return e}},i.prototype.children=function(t){if(r.isUndefined(t)&&(t="\0"),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else{if("\0"===t)return this.nodes();if(this.hasNode(t))return[]}},i.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},i.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},i.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},i.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},i.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;r.each(this._nodes,function(n,r){t(r)&&e.setNode(r,n)}),r.each(this._edgeObjs,function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))});var i={};function o(t){var r=n.parent(t);return void 0===r||e.hasNode(r)?(i[t]=r,r):r in i?i[r]:o(r)}return this._isCompound&&r.each(e.nodes(),function(t){e.setParent(t,o(t))}),e},i.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return r.values(this._edgeObjs)},i.prototype.setPath=function(t,e){var n=this,i=arguments;return r.reduce(t,function(t,r){return i.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r}),this},i.prototype.setEdge=function(){var t,e,n,i,a=!1,c=arguments[0];"object"==typeof c&&null!==c&&"v"in c?(t=c.v,e=c.w,n=c.name,2===arguments.length&&(i=arguments[1],a=!0)):(t=c,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var l=s(this._isDirected,t,e,n);if(r.has(this._edgeLabels,l))return a&&(this._edgeLabels[l]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[l]=a?i:this._defaultEdgeLabelFn(t,e,n);var h=u(this._isDirected,t,e,n);return t=h.v,e=h.w,Object.freeze(h),this._edgeObjs[l]=h,o(this._preds[e],t),o(this._sucs[t],e),this._in[e][l]=h,this._out[t][l]=h,this._edgeCount++,this},i.prototype.edge=function(t,e,n){var r=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,t,e,n);return this._edgeLabels[r]},i.prototype.hasEdge=function(t,e,n){var i=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,t,e,n);return r.has(this._edgeLabels,i)},i.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,t,e,n),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],a(this._preds[e],t),a(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},i.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var i=r.values(n);return e?r.filter(i,function(t){return t.v===e}):i}},i.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var i=r.values(n);return e?r.filter(i,function(t){return t.w===e}):i}},i.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},97078:function(t,e,n){t.exports={Graph:n(10179),version:n(57160)}},2063:function(t,e,n){var r=n(77241),i=n(10179);function o(t){return r.map(t.nodes(),function(e){var n=t.node(e),i=t.parent(e),o={v:e};return r.isUndefined(n)||(o.value=n),r.isUndefined(i)||(o.parent=i),o})}function a(t){return r.map(t.edges(),function(e){var n=t.edge(e),i={v:e.v,w:e.w};return r.isUndefined(e.name)||(i.name=e.name),r.isUndefined(n)||(i.value=n),i})}t.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:o(t),edges:a(t)};return r.isUndefined(t.graph())||(e.value=r.clone(t.graph())),e},read:function(t){var e=new i(t.options).setGraph(t.value);return r.each(t.nodes,function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)}),r.each(t.edges,function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),e}}},77241:function(t,e,n){var r;try{r={clone:n(7063),constant:n(60583),each:n(97635),filter:n(9673),has:n(71645),isArray:n(47712),isEmpty:n(19129),isFunction:n(70458),isUndefined:n(96075),keys:n(48600),map:n(86169),reduce:n(37442),size:n(26809),transform:n(86987),union:n(50875),values:n(95041)}}catch(i){}r||(r=window._),t.exports=r},57160:function(t){t.exports="2.1.8"},22550:function(t,e,n){var r=n(31311)(n(58568),"DataView");t.exports=r},27868:function(t,e,n){var r=n(18944),i=n(18790),o=n(40218),a=n(80072),s=n(3575);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1}},5724:function(t){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r0&&o(l)?n>1?t(l,n-1,o,a,s):r(s,l):a||(s[s.length]=l)}return s}},48486:function(t,e,n){var r=n(43999)();t.exports=r},79941:function(t,e,n){var r=n(48486),i=n(48600);t.exports=function(t,e){return t&&r(t,e,i)}},91338:function(t,e,n){var r=n(21813),i=n(71241);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&ne}},50018:function(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t,n){return null!=t&&e.call(t,n)}},29828:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},37551:function(t,e,n){var r=n(72322),i=n(32564),o=n(39920);t.exports=function(t,e,n){return e==e?o(t,e,n):r(t,i,n)}},80561:function(t,e,n){var r=n(3219),i=n(3902);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},31999:function(t,e,n){var r=n(47690),i=n(3902);t.exports=function t(e,n,o,a,s){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,a,t,s))}},47690:function(t,e,n){var r=n(30964),i=n(49642),o=n(97868),a=n(85234),s=n(32234),u=n(47712),c=n(80354),l=n(51156),h="[object Object]",f=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,d,p,g){var m=u(t),v=u(e),y=m?"[object Array]":s(t),_=v?"[object Array]":s(e),w=(y="[object Arguments]"==y?h:y)==h,b=(_="[object Arguments]"==_?h:_)==h,x=y==_;if(x&&c(t)){if(!c(e))return!1;m=!0,w=!1}if(x&&!w)return g||(g=new r),m||l(t)?i(t,e,n,d,p,g):o(t,e,y,n,d,p,g);if(!(1&n)){var E=w&&f.call(t,"__wrapped__"),T=b&&f.call(e,"__wrapped__");if(E||T){var A=E?t.value():t,S=T?e.value():e;return g||(g=new r),p(A,S,n,d,g)}}return!!x&&(g||(g=new r),a(t,e,n,d,p,g))}},75080:function(t,e,n){var r=n(32234),i=n(3902);t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},16050:function(t,e,n){var r=n(30964),i=n(31999);t.exports=function(t,e,n,o){var a=n.length,s=a,u=!o;if(null==t)return!s;for(t=Object(t);a--;){var c=n[a];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a=200){var g=e?null:s(t);if(g)return u(g);f=!1,l=a,p=new r}else p=e?[]:d;t:for(;++ce||a&&s&&c&&!u&&!l||i&&s&&c||!n&&c||!o)return 1;if(!i&&!a&&!l&&t=u?c:c*("desc"==n[i]?-1:1)}return t.index-e.index}},49327:function(t){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++r-1?s[u?e[c]:c]:void 0}}},15395:function(t,e,n){var r=n(49727),i=n(10139),o=n(56016);t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&i(e,n,a)&&(n=a=void 0),e=o(e),void 0===n?(n=e,e=0):n=o(n),a=void 0===a?el))return!1;var f=u.get(t),d=u.get(e);if(f&&d)return f==e&&d==t;var p=-1,g=!0,m=2&n?new r:void 0;for(u.set(t,e),u.set(e,t);++p-1&&t%1==0&&t-1}},2154:function(t,e,n){var r=n(67477);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},58289:function(t,e,n){var r=n(27868),i=n(58170),o=n(6647);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},19581:function(t,e,n){var r=n(65810);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},61608:function(t,e,n){var r=n(65810);t.exports=function(t){return r(this,t).get(t)}},8901:function(t,e,n){var r=n(65810);t.exports=function(t){return r(this,t).has(t)}},12399:function(t,e,n){var r=n(65810);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},95622:function(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}},96878:function(t){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},94667:function(t,e,n){var r=n(74884);t.exports=function(t){var e=r(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}},54263:function(t,e,n){var r=n(31311)(Object,"create");t.exports=r},75427:function(t,e,n){var r=n(11621)(Object.keys,Object);t.exports=r},3601:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},80166:function(t,e,n){t=n.nmd(t);var r=n(52127),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s},91059:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},11621:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},90877:function(t,e,n){var r=n(86932),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),u=Array(s);++a0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},31816:function(t,e,n){var r=n(58170);t.exports=function(){this.__data__=new r,this.size=0}},86246:function(t){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},95499:function(t){t.exports=function(t){return this.__data__.get(t)}},17114:function(t){t.exports=function(t){return this.__data__.has(t)}},68677:function(t,e,n){var r=n(58170),i=n(6647),o=n(98856);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},39920:function(t){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r2?e[2]:void 0;for(c&&o(e[0],e[1],c)&&(r=1);++n-1&&t%1==0&&t<=9007199254740991}},49333:function(t,e,n){var r=n(75080),i=n(97633),o=n(80166),a=o&&o.isMap,s=a?i(a):r;t.exports=s},17305:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3902:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},7629:function(t,e,n){var r=n(3219),i=n(45410),o=n(3902),a=Function.prototype.toString,s=Object.prototype.hasOwnProperty,u=a.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=s.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&a.call(n)==u}},8274:function(t,e,n){var r=n(15104),i=n(97633),o=n(80166),a=o&&o.isSet,s=a?i(a):r;t.exports=s},27764:function(t,e,n){var r=n(3219),i=n(47712),o=n(3902);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},30419:function(t,e,n){var r=n(3219),i=n(3902);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},51156:function(t,e,n){var r=n(94154),i=n(97633),o=n(80166),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},96075:function(t){t.exports=function(t){return void 0===t}},48600:function(t,e,n){var r=n(48421),i=n(97272),o=n(9140);t.exports=function(t){return o(t)?r(t):i(t)}},10752:function(t,e,n){var r=n(48421),i=n(40623),o=n(9140);t.exports=function(t){return o(t)?r(t,!0):i(t)}},83074:function(t){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},86169:function(t,e,n){var r=n(20529),i=n(82617),o=n(26091),a=n(47712);t.exports=function(t,e){return(a(t)?r:o)(t,i(e,3))}},7301:function(t,e,n){var r=n(61216),i=n(79941),o=n(82617);t.exports=function(t,e){var n={};return e=o(e,3),i(t,function(t,i,o){r(n,i,e(t,i,o))}),n}},11653:function(t,e,n){var r=n(91241),i=n(98109),o=n(19903);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},74884:function(t,e,n){var r=n(98856);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},81940:function(t,e,n){var r=n(75705),i=n(57082)(function(t,e,n){r(t,e,n)});t.exports=i},47983:function(t,e,n){var r=n(91241),i=n(69661),o=n(19903);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},42707:function(t,e,n){var r=n(91241),i=n(82617),o=n(69661);t.exports=function(t,e){return t&&t.length?r(t,i(e,2),o):void 0}},15533:function(t){t.exports=function(){}},41396:function(t,e,n){var r=n(58568);t.exports=function(){return r.Date.now()}},28891:function(t,e,n){var r=n(14964),i=n(9771)(function(t,e){return null==t?{}:r(t,e)});t.exports=i},57675:function(t,e,n){var r=n(80087),i=n(47044),o=n(46149),a=n(71241);t.exports=function(t){return o(t)?r(a(t)):i(t)}},79289:function(t,e,n){var r=n(15395)();t.exports=r},37442:function(t,e,n){var r=n(27971),i=n(43079),o=n(82617),a=n(95482),s=n(47712);t.exports=function(t,e,n){var u=s(t)?r:a,c=arguments.length<3;return u(t,o(e,4),n,c,i)}},26809:function(t,e,n){var r=n(97272),i=n(32234),o=n(9140),a=n(27764),s=n(3941);t.exports=function(t){if(null==t)return 0;if(o(t))return a(t)?s(t):t.length;var e=i(t);return"[object Map]"==e||"[object Set]"==e?t.size:r(t).length}},36272:function(t,e,n){var r=n(9555),i=n(22824),o=n(37165),a=n(10139),s=o(function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])});t.exports=s},20668:function(t){t.exports=function(){return[]}},1950:function(t){t.exports=function(){return!1}},56016:function(t,e,n){var r=n(68135);t.exports=function(t){return t?1/0===(t=r(t))||-1/0===t?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},82748:function(t,e,n){var r=n(56016);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},68135:function(t,e,n){var r=n(94530),i=n(17305),o=n(30419),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=s.test(t);return n||u.test(t)?c(t.slice(2),n?2:8):a.test(t)?NaN:+t}},65208:function(t,e,n){var r=n(79399),i=n(10752);t.exports=function(t){return r(t,i(t))}},89196:function(t,e,n){var r=n(17667);t.exports=function(t){return null==t?"":r(t)}},86987:function(t,e,n){var r=n(41492),i=n(56004),o=n(79941),a=n(82617),s=n(45410),u=n(47712),c=n(80354),l=n(70458),h=n(17305),f=n(51156);t.exports=function(t,e,n){var d=u(t),p=d||c(t)||f(t);if(e=a(e,4),null==n){var g=t&&t.constructor;n=p?d?new g:[]:h(t)&&l(g)?i(s(t)):{}}return(p?r:o)(t,function(t,r,i){return e(n,t,r,i)}),n}},50875:function(t,e,n){var r=n(9555),i=n(37165),o=n(66833),a=n(56633),s=i(function(t){return o(r(t,1,a,!0))});t.exports=s},83798:function(t,e,n){var r=n(89196),i=0;t.exports=function(t){var e=++i;return r(t)+e}},95041:function(t,e,n){var r=n(10744),i=n(48600);t.exports=function(t){return null==t?[]:r(t,i(t))}},3393:function(t,e,n){var r=n(25823),i=n(60170);t.exports=function(t,e){return i(t||[],e||[],r)}},41282:function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),r(n(69812)),r(n(65098)),r(n(59895)),r(n(13408)),r(n(66082)),r(n(33839)),r(n(51390)),r(n(83807)),r(n(24232)),r(n(22267)),r(n(741)),r(n(21539)),r(n(97002)),r(n(99147)),r(n(70980)),r(n(96684))},69812:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(51390),a=function(t){function e(e){var n=t.call(this)||this,r=e;return r.trigger&&(n.trigger=r.trigger),r.kick&&(n.kick=r.kick),r.drag&&(n.drag=r.drag),r.on&&(n.on=r.on),n.dragstart=n.dragStart=o.Layout.dragStart,n.dragend=n.dragEnd=o.Layout.dragEnd,n}return i(e,t),e.prototype.trigger=function(t){},e.prototype.kick=function(){},e.prototype.drag=function(){},e.prototype.on=function(t,e){return this},e}(o.Layout);e.LayoutAdaptor=a,e.adaptor=function(t){return new a(t)}},96684:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(51390),i=n(66082);e.gridify=function(t,e,n,r){return t.cola.start(0,0,0,10,!1),function(t,e,n,r){t.forEach(function(t){t.routerNode={name:t.name,bounds:t.bounds.inflate(-n)}}),e.forEach(function(e){e.routerNode={bounds:e.bounds.inflate(-r),children:(void 0!==e.groups?e.groups.map(function(e){return t.length+e.id}):[]).concat(void 0!==e.leaves?e.leaves.map(function(t){return t.index}):[])}});var o=t.concat(e).map(function(t,e){return t.routerNode.id=e,t.routerNode});return new i.GridRouter(o,{getChildren:function(t){return t.children},getBounds:function(t){return t.bounds}},n-r)}(t.cola.nodes(),t.cola.groups(),n,r).routeEdges(t.powerGraph.powerEdges,e,function(t){return t.source.routerNode.id},function(t){return t.target.routerNode.id})},e.powerGraphGridLayout=function(t,e,n){var i;t.nodes.forEach(function(t,e){return t.index=e}),(new r.Layout).avoidOverlaps(!1).nodes(t.nodes).links(t.links).powerGraphGroups(function(t){(i=t).groups.forEach(function(t){return t.padding=n})});var o=t.nodes.length,a=[],s=t.nodes.slice(0);return s.forEach(function(t,e){return t.index=e}),i.groups.forEach(function(t){var e=t.index=t.id+o;s.push(t),void 0!==t.leaves&&t.leaves.forEach(function(t){return a.push({source:e,target:t.index})}),void 0!==t.groups&&t.groups.forEach(function(t){return a.push({source:e,target:t.id+o})})}),i.powerEdges.forEach(function(t){a.push({source:t.source.index,target:t.target.index})}),(new r.Layout).size(e).nodes(s).links(a).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:(new r.Layout).convergenceThreshold(.001).size(e).avoidOverlaps(!0).nodes(t.nodes).links(t.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(t){(i=t).groups.forEach(function(t){t.padding=n})}).start(50,0,100,0,!1),powerGraph:i}}},65098:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(29738),i=n(62834);e.d3adaptor=function(t){return!t||function(t){return t.version&&null!==t.version.match(/^3\./)}(t)?new r.D3StyleLayoutAdaptor:new i.D3StyleLayoutAdaptor(t)}},29738:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(51390),a=function(t){function e(){var e=t.call(this)||this;e.event=d3.dispatch(o.EventType[o.EventType.start],o.EventType[o.EventType.tick],o.EventType[o.EventType.end]);var n=e;return e.drag=function(){if(!t)var t=d3.behavior.drag().origin(o.Layout.dragOrigin).on("dragstart.d3adaptor",o.Layout.dragStart).on("drag.d3adaptor",function(t){o.Layout.drag(t,d3.event),n.resume()}).on("dragend.d3adaptor",o.Layout.dragEnd);if(!arguments.length)return t;this.call(t)},e}return i(e,t),e.prototype.trigger=function(t){var e={type:o.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event[e.type](e)},e.prototype.kick=function(){var e=this;d3.timer(function(){return t.prototype.tick.call(e)})},e.prototype.on=function(t,e){return this.event.on("string"==typeof t?t:o.EventType[t],e),this},e}(o.Layout);e.D3StyleLayoutAdaptor=a,e.d3adaptor=function(){return new a}},62834:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(51390);e.D3StyleLayoutAdaptor=function(t){function e(e){var n=t.call(this)||this;n.d3Context=e,n.event=e.dispatch(o.EventType[o.EventType.start],o.EventType[o.EventType.tick],o.EventType[o.EventType.end]);var r=n;return n.drag=function(){if(!t)var t=e.drag().subject(o.Layout.dragOrigin).on("start.d3adaptor",o.Layout.dragStart).on("drag.d3adaptor",function(t){o.Layout.drag(t,e.event),r.resume()}).on("end.d3adaptor",o.Layout.dragEnd);if(!arguments.length)return t;arguments[0].call(t)},n}return i(e,t),e.prototype.trigger=function(t){var e={type:o.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event.call(e.type,e)},e.prototype.kick=function(){var e=this,n=this.d3Context.timer(function(){return t.prototype.tick.call(e)&&n.stop()})},e.prototype.on=function(t,e){return this.event.on("string"==typeof t?t:o.EventType[t],e),this},e}(o.Layout)},59895:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){this.locks={}}return t.prototype.add=function(t,e){this.locks[t]=e},t.prototype.clear=function(){this.locks={}},t.prototype.isEmpty=function(){for(var t in this.locks)return!1;return!0},t.prototype.apply=function(t){for(var e in this.locks)t(Number(e),this.locks[e])},t}();e.Locks=n,e.Descent=function(){function t(t,e,i){void 0===i&&(i=null),this.D=e,this.G=i,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new r,this.project=null,this.x=t,this.k=t.length;var o=this.n=t[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 n,this.minD=Number.MAX_VALUE;for(var a,s=o;s--;)for(a=o;--a>s;){var u=e[s][a];u>0&&u1e-9)break;var d=this.offsetDir();for(r=0;r1&&p>g||!isFinite(g))for(r=0;r1&&(m=1);var v=g*g,y=2*m*(p-g)/(v*p),_=p*p*p,w=2*-m/(v*_);for(isFinite(y)||console.log(y),r=0;r0?A-(D+1)*x:A-(D-1)*x)&&f<=b&&(this.scaleSnapByMaxH?(this.g[r][u]+=s*E*f,this.H[r][u][u]+=s*E):(this.g[r][u]+=E*f,this.H[r][u][u]+=E))}this.locks.isEmpty()||this.locks.apply(function(n,i){for(r=0;r0;)for(var i=e;i-- >0;)n(r,i)},t.prototype.matrixApply=function(e){t.mApply(this.k,this.n,e)},t.prototype.computeNextPosition=function(t,e){var n=this;this.computeDerivatives(t);var r=this.computeStepSize(this.g);if(this.stepAndProject(t,e,this.g,r),this.project){this.matrixApply(function(r,i){return n.e[r][i]=t[r][i]-e[r][i]});var i=this.computeStepSize(this.e);i=Math.max(.2,Math.min(i,1)),this.stepAndProject(t,e,this.e,i)}},t.prototype.run=function(t){for(var e=Number.MAX_VALUE,n=!1;!n&&t-- >0;){var r=this.rungeKutta();n=Math.abs(e/r-1)>16)/this.range},t.prototype.getNextBetween=function(t,e){return t+this.getNext()*(e-t)},t}();e.PseudoRandom=r},13408:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(97002),a=function(){return function(){}}();e.Point=a;var s=function(){return function(t,e,n,r){this.x1=t,this.y1=e,this.x2=n,this.y2=r}}();function u(t,e,n){return(e.x-t.x)*(n.y-t.y)-(n.x-t.x)*(e.y-t.y)}function c(t,e,n){return u(t,e,n)>0}function l(t,e,n){return u(t,e,n)<0}function h(t,e){var n,r,i,o,a=e.length-1;if(l(t,e[1],e[0])&&!c(t,e[a-1],e[0]))return 0;for(n=0,r=a;;){if(r-n==1)return c(t,e[n],e[r])?n:r;if((o=l(t,e[(i=Math.floor((n+r)/2))+1],e[i]))&&!c(t,e[i-1],e[i]))return i;c(t,e[n+1],e[n])?o||c(t,e[n],e[i])?r=i:n=i:o&&l(t,e[n],e[i])?r=i:n=i}}function f(t,e){var n,r,i,o,a=e.length-1;if(c(t,e[a-1],e[0])&&!l(t,e[1],e[0]))return 0;for(n=0,r=a;;){if(r-n==1)return l(t,e[n],e[r])?n:r;if(o=l(t,e[(i=Math.floor((n+r)/2))+1],e[i]),c(t,e[i-1],e[i])&&!o)return i;l(t,e[n+1],e[n])?o?l(t,e[n],e[i])?r=i:n=i:r=i:o?n=i:c(t,e[n],e[i])?r=i:n=i}}function d(t,e,n,r,i,o){var a,s;s=r(t[a=n(e[0],t)],e);for(var u=!1;!u;){for(u=!0;a===t.length-1&&(a=0),!i(e[s],t[a],t[a+1]);)++a;for(;0===s&&(s=e.length-1),!o(t[a],e[s],e[s-1]);)--s,u=!1}return{t1:a,t2:s}}function p(t,e){return d(t,e,h,f,c,l)}e.LineSegment=s,e.PolyPoint=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(a),e.isLeft=u,e.ConvexHull=function(t){var e,n=t.slice(0).sort(function(t,e){return t.x!==e.x?e.x-t.x:e.y-t.y}),r=t.length,i=n[0].x;for(e=1;e=0&&n[e].x===l;e--);for(s=e+1,e=o;++e<=s;)if(!(u(n[0],n[s],n[e])>=0&&e1&&!(u(a[a.length-2],a[a.length-1],n[e])>0);)a.length-=1;0!=e&&a.push(n[e])}c!=s&&a.push(n[c]);var h=a.length;for(e=s;--e>=o;)if(!(u(n[c],n[o],n[e])>=0&&e>o)){for(;a.length>h&&!(u(a[a.length-2],a[a.length-1],n[e])>0);)a.length-=1;0!=e&&a.push(n[e])}}return a},e.clockwiseRadialSweep=function(t,e,n){e.slice(0).sort(function(e,n){return Math.atan2(e.y-t.y,e.x-t.x)-Math.atan2(n.y-t.y,n.x-t.x)}).forEach(n)},e.tangent_PolyPolyC=d,e.LRtangent_PolyPolyC=function(t,e){var n=p(e,t);return{t1:n.t2,t2:n.t1}},e.RLtangent_PolyPolyC=p,e.LLtangent_PolyPolyC=function(t,e){return d(t,e,f,f,l,l)},e.RRtangent_PolyPolyC=function(t,e){return d(t,e,h,h,c,c)};var g=function(){return function(t,e){this.t1=t,this.t2=e}}();e.BiTangent=g;var m=function(){return function(){}}();e.BiTangents=m,e.TVGPoint=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(a);var v=function(){return function(t,e,n,r){this.id=t,this.polyid=e,this.polyvertid=n,this.p=r,r.vv=this}}();e.VisibilityVertex=v;var y=function(){function t(t,e){this.source=t,this.target=e}return t.prototype.length=function(){var t=this.source.p.x-this.target.p.x,e=this.source.p.y-this.target.p.y;return Math.sqrt(t*t+e*e)},t}();function _(t,e){for(var n=[],r=1,i=e.length;r=0&&v>=0&&y<0&&_>=0&&w>=0&&b<0?i.ll=new g(o,a):p<=0&&v<=0&&y>0&&_<=0&&w<=0&&b>0?i.rr=new g(o,a):p<=0&&v>0&&y<=0&&_>=0&&w<0&&b>=0?i.rl=new g(o,a):p>=0&&v<0&&y>=0&&_<=0&&w>0&&b<=0&&(i.lr=new g(o,a))}return i}function b(t,e){return!t.every(function(t){return!function(t,e){for(var n=1,r=e.length;n0&&this.E.push(new y(i[o-1].vv,a))}i.length>1&&this.E.push(new y(i[0].vv,i[i.length-1].vv))}for(r=0;r0)return!0;return!1},t}(),e.tangents=w,e.polysOverlap=function(t,e){if(b(t,e))return!0;if(b(e,t))return!0;for(var n=1,r=t.length;n0)return!0}return!1}},66082:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(97002),i=n(70980),o=n(99147),a=function(){return function(t,e,n){this.id=t,this.rect=e,this.children=n,this.leaf=void 0===n||0===n.length}}();e.NodeWrapper=a;var s=function(){return function(t,e,n,r,i){void 0===r&&(r=null),void 0===i&&(i=null),this.id=t,this.x=e,this.y=n,this.node=r,this.line=i}}();e.Vert=s;var u=function(){function t(e,n){this.s=e,this.t=n;var r=t.findMatch(e,n),i=n.slice(0).reverse(),o=t.findMatch(e,i);r.length>=o.length?(this.length=r.length,this.si=r.si,this.ti=r.ti,this.reversed=!1):(this.length=o.length,this.si=o.si,this.ti=n.length-o.ti-o.length,this.reversed=!0)}return t.findMatch=function(t,e){for(var n=t.length,r=e.length,i={length:0,si:-1,ti:-1},o=new Array(n),a=0;ai.length&&(i.length=u,i.si=a-u+1,i.ti=s-u+1)}else o[a][s]=0}return i},t.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},t}();e.LongestCommonSubsequence=u,e.GridRouter=function(){function t(t,e,n){var i=this;void 0===n&&(n=12),this.originalnodes=t,this.groupPadding=n,this.leaves=null,this.nodes=t.map(function(t,n){return new a(n,e.getBounds(t),e.getChildren(t))}),this.leaves=this.nodes.filter(function(t){return t.leaf}),this.groups=this.nodes.filter(function(t){return!t.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(t){return t.children.forEach(function(e){return i.nodes[e].parent=t})}),this.root={children:[]},this.nodes.forEach(function(t){void 0===t.parent&&(t.parent=i.root,i.root.children.push(t.id)),t.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(t,e){return i.getDepth(t)-i.getDepth(e)}),this.backToFront.slice(0).reverse().filter(function(t){return!t.leaf}).forEach(function(t){var e=r.Rectangle.empty();t.children.forEach(function(t){return e=e.union(i.nodes[t].rect)}),t.rect=e.inflate(i.groupPadding)});var o=this.midPoints(this.cols.map(function(t){return t.pos})),u=this.midPoints(this.rows.map(function(t){return t.pos})),c=o[0],l=o[o.length-1],h=u[0],f=u[u.length-1],d=this.rows.map(function(t){return{x1:c,x2:l,y1:t.pos,y2:t.pos}}).concat(u.map(function(t){return{x1:c,x2:l,y1:t,y2:t}})),p=this.cols.map(function(t){return{x1:t.pos,x2:t.pos,y1:h,y2:f}}).concat(o.map(function(t){return{x1:t,x2:t,y1:h,y2:f}})),g=d.concat(p);g.forEach(function(t){return t.verts=[]}),this.verts=[],this.edges=[],d.forEach(function(t){return p.forEach(function(e){var n=new s(i.verts.length,e.x1,t.y1);t.verts.push(n),e.verts.push(n),i.verts.push(n);for(var r=i.backToFront.length;r-- >0;){var o=i.backToFront[r],a=o.rect,u=Math.abs(n.x-a.cx()),c=Math.abs(n.y-a.cy());if(u0;){var r=n.filter(function(e){return e.rect["overlap"+t.toUpperCase()](n[0].rect)}),i={nodes:r,pos:this.avg(r.map(function(e){return e.rect["c"+t]()}))};e.push(i),i.nodes.forEach(function(t){return n.splice(n.indexOf(t),1)})}return e.sort(function(t,e){return t.pos-e.pos}),e},t.prototype.getDepth=function(t){for(var e=0;t.parent!==this.root;)e++,t=t.parent;return e},t.prototype.midPoints=function(t){for(var e=t[1]-t[0],n=[t[0]-e/2],r=1;r.1)&&s.push(u={pos:l[0][e],segments:[]}),u.segments.push(l)}return s},t.nudgeSegs=function(t,e,n,r,o,a){var s=r.length;if(!(s<=1)){for(var u=r.map(function(e){return new i.Variable(e[0][t])}),c=[],l=0;l=0&&c.push(new i.Constraint(u[g],u[m],a))}new i.Solver(u,c).solve(),u.forEach(function(e,i){var o=r[i],a=e.position();o[0][t]=o[1][t]=a;var s=n[o.edgeid];o.i>0&&(s[o.i-1][1][t]=a),o.iMath.PI||i<-Math.PI)&&(i=r-n),i},t.isLeft=function(t,e,n){return(e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x)<=0},t.getOrder=function(t){for(var e={},n=0;n=c.length||h.ti+h.length>=l.length)?n.push({l:r,r:i}):(h.si+h.length>=c.length||h.ti+h.length>=l.length?(o=c[h.si+1],s=c[h.si-1],a=l[h.ti-1]):(o=c[h.si+h.length-2],a=c[h.si+h.length],s=l[h.ti+h.length]),t.isLeft(o,a,s)?n.push({l:i,r}):n.push({l:r,r:i})))}return t.getOrder(n)},t.makeSegments=function(t){function e(t){return{x:t.x,y:t.y}}for(var n=function(t,e,n){return Math.abs((e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x))<.001},r=[],i=e(t[0]),o=1;o1&&l>1?1e3:0}).reverse().map(function(t){return n.verts[t]});return u.push(this.nodes[i.id].ports[0]),u.filter(function(t,e){return!(e0&&t.node===i&&u[e-1].node===i)})},t.getRoutePath=function(e,n,r,i){var o,a,s,u,c,l={routepath:"M "+e[0][0].x+" "+e[0][0].y+" ",arrowpath:""};if(e.length>1)for(var h=0;h0?a-=f/Math.abs(f)*n:s-=d/Math.abs(d)*n,l.routepath+="L "+a+" "+s+" ";var p=e[h+1],g=p[0].x,m=p[0].y;f=p[1].x-g,d=p[1].y-m;var v,y,_=t.angleBetween2Lines(o,p)<0?1:0;Math.abs(f)>0?(v=g+f/Math.abs(f)*n,y=m):(v=g,y=m+d/Math.abs(d)*n);var w=Math.abs(v-a),b=Math.abs(y-s);l.routepath+="A "+w+" "+b+" 0 0 "+_+" "+v+" "+y+" "}else{var x=[a,s];Math.abs(f)>0?(u=[a-=f/Math.abs(f)*i,s+r],c=[a,s-r]):(u=[a+r,s-=d/Math.abs(d)*i],c=[a-r,s]),l.routepath+="L "+a+" "+s+" ",i>0&&(l.arrowpath="M "+x[0]+" "+x[1]+" L "+u[0]+" "+u[1]+" L "+c[0]+" "+c[1])}}else f=(a=(o=e[0])[1].x)-o[0].x,d=(s=o[1].y)-o[0].y,x=[a,s],Math.abs(f)>0?(u=[a-=f/Math.abs(f)*i,s+r],c=[a,s-r]):(u=[a+r,s-=d/Math.abs(d)*i],c=[a-r,s]),l.routepath+="L "+a+" "+s+" ",i>0&&(l.arrowpath="M "+x[0]+" "+x[1]+" L "+u[0]+" "+u[1]+" L "+c[0]+" "+c[1]);return l},t}()},33839:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(1+Math.sqrt(5))/2;e.applyPacking=function(t,e,r,i,o,a){void 0===o&&(o=1),void 0===a&&(a=!0);var s=e,u=r,c=(o=void 0!==o?o:1,i=void 0!==i?i:0,0),l=0,h=0,f=0,d=[];function p(t,e){d=[],c=0,l=0,f=0;for(var n=0;n=t.height&&d[r].x+d[r].width+t.width+10-e<=1e-4){n=d[r];break}d.push(t),void 0!==n?(t.x=n.x+n.width+10,t.y=n.bottom,t.space_left=t.height,t.bottom=t.y,n.space_left-=t.height+10,n.bottom+=t.height+10):(t.y=f,f+=t.height+10,t.x=0,t.bottom=t.y,t.space_left=t.height),t.y+t.height-l>-1e-4&&(l=t.y+t.height-0),t.x+t.width-c>-1e-4&&(c=t.x+t.width-0)}0!=t.length&&(function(t){t.forEach(function(t){var e,n,r,o,a;e=t,n=Number.MAX_VALUE,r=Number.MAX_VALUE,o=0,a=0,e.array.forEach(function(t){var e=void 0!==t.width?t.width:i,s=void 0!==t.height?t.height:i;e/=2,s/=2,o=Math.max(t.x+e,o),n=Math.min(t.x-e,n),a=Math.max(t.y+s,a),r=Math.min(t.y-s,r)}),e.width=o-n,e.height=a-r})}(t),function(t,e){var r=Number.POSITIVE_INFINITY,i=0;t.sort(function(t,e){return e.height-t.height});for(var o=g=h=t.reduce(function(t,e){return t.widthh||d>1e-4;){if(1!=l){var g=a-(a-o)/n;u=p(t,g)}if(0!=l){var m=o+(a-o)/n;c=p(t,m)}if(f=Math.abs(g-m),d=Math.abs(u-c),uc?(o=g,g=m,u=c,l=1):(a=m,m=g,c=u,l=0),s++>100)break}p(t,i)}(t),a&&function(t){t.forEach(function(t){var e={x:0,y:0};t.array.forEach(function(t){e.x+=t.x,e.y+=t.y}),e.x/=t.array.length,e.y/=t.array.length;var n=t.x-(e.x-t.width/2)+s/2-c/2,r=t.y-(e.y-t.height/2)+u/2-l/2;t.array.forEach(function(t){t.x+=n,t.y+=r})})}(t))},e.separateGraphs=function(t,e){for(var n={},r={},i=[],o=0,a=0;a0){var e=0;this._links.forEach(function(t){e=Math.max(e,t.source,t.target)}),this._nodes=new Array(++e);for(var n=0;n0?t:0:t>0&&(this._running||(this._running=!0,this.trigger({type:l.start,alpha:this._alpha=t}),this.kick())),this):this._alpha},t.prototype.getLinkLength=function(t){return"function"==typeof this._linkDistance?+this._linkDistance(t):this._linkDistance},t.setLinkLength=function(t,e){t.length=e},t.prototype.getLinkType=function(t){return"function"==typeof this._linkType?this._linkType(t):0},t.prototype.symmetricDiffLinkLengths=function(t,e){var n=this;return void 0===e&&(e=1),this.linkDistance(function(e){return t*e.length}),this._linkLengthCalculator=function(){return i.symmetricDiffLinkLengths(n._links,n.linkAccessor,e)},this},t.prototype.jaccardLinkLengths=function(t,e){var n=this;return void 0===e&&(e=1),this.linkDistance(function(e){return t*e.length}),this._linkLengthCalculator=function(){return i.jaccardLinkLengths(n._links,n.linkAccessor,e)},this},t.prototype.start=function(e,n,r,u,c,l){var h=this;void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),void 0===u&&(u=0),void 0===c&&(c=!0),void 0===l&&(l=!0);var f,d=this.nodes().length,p=d+2*this._groups.length,g=this._canvasSize[0],m=this._canvasSize[1],v=new Array(p),y=new Array(p),_=null,w=this._avoidOverlaps;this._nodes.forEach(function(t,e){t.index=e,void 0===t.x&&(t.x=g/2,t.y=m/2),v[e]=t.x,y[e]=t.y}),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?f=this._distanceMatrix:(f=new s.Calculator(p,this._links,t.getSourceIndex,t.getTargetIndex,function(t){return h.getLinkLength(t)}).DistanceMatrix(),_=o.Descent.createSquareMatrix(p,function(){return 2}),this._links.forEach(function(t){"number"==typeof t.source&&(t.source=h._nodes[t.source]),"number"==typeof t.target&&(t.target=h._nodes[t.target])}),this._links.forEach(function(e){var n=t.getSourceIndex(e),r=t.getTargetIndex(e);_[n][r]=_[r][n]=e.weight||1}));var b=o.Descent.createSquareMatrix(p,function(t,e){return f[t][e]});if(this._rootGroup&&void 0!==this._rootGroup.groups){var x=d;this._groups.forEach(function(t){!function(t,e,n,r){_[t][e]=_[e][t]=n,b[t][e]=b[e][t]=.1}(x,x+1,h._groupCompactness),v[x]=0,y[x++]=0,v[x]=0,y[x++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var E=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,E=E.concat(i.generateDirectedEdgeConstraints(d,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new o.Descent([v,y],b),this._descent.locks.clear(),x=0;x0&&(this._descent.project=new a.Projection(this._nodes,this._groups,this._rootGroup,E).projectFunctions()),this._descent.run(n),this.separateOverlappingComponents(g,m,l),this.avoidOverlaps(w),w&&(this._nodes.forEach(function(t,e){t.x=v[e],t.y=y[e]}),this._descent.project=new a.Projection(this._nodes,this._groups,this._rootGroup,E,!0).projectFunctions(),this._nodes.forEach(function(t,e){v[e]=t.x,y[e]=t.y})),this._descent.G=_,this._descent.run(r),u){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=d,this._descent.scaleSnapByMaxH=d!=p;var A=o.Descent.createSquareMatrix(p,function(t,e){return t>=d||e>=d?_[t][e]:0});this._descent.G=A,this._descent.run(u)}return this.updateNodePositions(),this.separateOverlappingComponents(g,m,l),c?this.resume():this},t.prototype.initialLayout=function(e,n,r){if(this._groups.length>0&&e>0){var i=this._nodes.length,o=this._links.map(function(t){return{source:t.source.index,target:t.target.index}}),a=this._nodes.map(function(t){return{index:t.index}});this._groups.forEach(function(t,e){a.push({index:t.index=i+e})}),this._groups.forEach(function(t,e){void 0!==t.leaves&&t.leaves.forEach(function(e){return o.push({source:t.index,target:e.index})}),void 0!==t.groups&&t.groups.forEach(function(e){return o.push({source:t.index,target:e.index})})}),(new t).size(this.size()).nodes(a).links(o).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(e,0,0,0,!1),this._nodes.forEach(function(t){n[t.index]=a[t.index].x,r[t.index]=a[t.index].y})}else this._descent.run(e)},t.prototype.separateOverlappingComponents=function(t,e,n){var r=this;if(void 0===n&&(n=!0),!this._distanceMatrix&&this._handleDisconnected){var i=this._descent.x[0],o=this._descent.x[1];this._nodes.forEach(function(t,e){t.x=i[e],t.y=o[e]});var a=c.separateGraphs(this._nodes,this._links);c.applyPacking(a,t,e,this._defaultNodeSize,1,n),this._nodes.forEach(function(t,e){r._descent.x[0][e]=t.x,r._descent.x[1][e]=t.y,t.bounds&&(t.bounds.setXCentre(t.x),t.bounds.setYCentre(t.y))})}},t.prototype.resume=function(){return this.alpha(.1)},t.prototype.stop=function(){return this.alpha(0)},t.prototype.prepareEdgeRouting=function(t){void 0===t&&(t=0),this._visibilityGraph=new u.TangentVisibilityGraph(this._nodes.map(function(e){return e.bounds.inflate(-t).vertices()}))},t.prototype.routeEdge=function(t,e,n){void 0===e&&(e=5);var r=[],i=new u.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),o={x:t.source.x,y:t.source.y},c={x:t.target.x,y:t.target.y},l=i.addPoint(o,t.source.index),h=i.addPoint(c,t.target.index);i.addEdgeIfVisible(o,c,t.source.index,t.target.index),void 0!==n&&n(i);var f=new s.Calculator(i.V.length,i.E,function(t){return t.source.id},function(t){return t.target.id},function(t){return t.length()}).PathFromNodeToNode(l.id,h.id);if(1===f.length||f.length===i.V.length){var d=a.makeEdgeBetween(t.source.innerBounds,t.target.innerBounds,e);r=[d.sourceIntersection,d.arrowStart]}else{for(var p=f.length-2,g=i.V[f[p]].p,m=i.V[f[0]].p,v=(r=[t.source.innerBounds.rayIntersection(g.x,g.y)],p);v>=0;--v)r.push(i.V[f[v]].p);r.push(a.makeEdgeTo(m,t.target.innerBounds,e))}return r},t.getSourceIndex=function(t){return"number"==typeof t.source?t.source:t.source.index},t.getTargetIndex=function(t){return"number"==typeof t.target?t.target:t.target.index},t.linkId=function(e){return t.getSourceIndex(e)+"-"+t.getTargetIndex(e)},t.dragStart=function(e){h(e)?t.storeOffset(e,t.dragOrigin(e)):(t.stopNode(e),e.fixed|=2)},t.stopNode=function(t){t.px=t.x,t.py=t.y},t.storeOffset=function(e,n){void 0!==e.leaves&&e.leaves.forEach(function(e){e.fixed|=2,t.stopNode(e),e._dragGroupOffsetX=e.x-n.x,e._dragGroupOffsetY=e.y-n.y}),void 0!==e.groups&&e.groups.forEach(function(e){return t.storeOffset(e,n)})},t.dragOrigin=function(t){return h(t)?{x:t.bounds.cx(),y:t.bounds.cy()}:t},t.drag=function(e,n){h(e)?(void 0!==e.leaves&&e.leaves.forEach(function(t){e.bounds.setXCentre(n.x),e.bounds.setYCentre(n.y),t.px=t._dragGroupOffsetX+n.x,t.py=t._dragGroupOffsetY+n.y}),void 0!==e.groups&&e.groups.forEach(function(e){return t.drag(e,n)})):(e.px=n.x,e.py=n.y)},t.dragEnd=function(e){h(e)?(void 0!==e.leaves&&e.leaves.forEach(function(e){t.dragEnd(e),delete e._dragGroupOffsetX,delete e._dragGroupOffsetY}),void 0!==e.groups&&e.groups.forEach(t.dragEnd)):e.fixed&=-7},t.mouseOver=function(t){t.fixed|=4,t.px=t.x,t.py=t.y},t.mouseOut=function(t){t.fixed&=-5},t}()},83807:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(99147),i=n(59895),o=n(97002),a=n(24232);e.Link3D=function(){function t(t,e){this.source=t,this.target=e}return t.prototype.actualLength=function(t){var e=this;return Math.sqrt(t.reduce(function(t,n){var r=n[e.target]-n[e.source];return t+r*r},0))},t}(),e.Node3D=function(){return function(t,e,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),this.x=t,this.y=e,this.z=n}}(),e.Layout3D=function(){function t(e,n,r){var i=this;void 0===r&&(r=1),this.nodes=e,this.links=n,this.idealLinkLength=r,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(t.k);for(var o=0;o=this.R))return this.merge(e.a,e.b,t),!0}},t.prototype.nEdges=function(t,e){var n=t.incoming.intersection(e.incoming),r=t.outgoing.intersection(e.outgoing);return this.R-n.count()-r.count()},t.prototype.getGroupHierarchy=function(t){var e=this,r=[];return i(this.roots[0],{},r),this.allEdges().forEach(function(i){var o=e.modules[i.source],a=e.modules[i.target];t.push(new n(void 0===o.gid?i.source:r[o.gid],void 0===a.gid?i.target:r[a.gid],i.type))}),r},t.prototype.allEdges=function(){var e=[];return t.getEdges(this.roots[0],e),e},t.getEdges=function(e,n){e.forAll(function(e){e.getEdges(n),t.getEdges(e.children,n)})},t}();function i(t,e,n){t.forAll(function(t){if(t.isLeaf())e.leaves||(e.leaves=[]),e.leaves.push(t.id);else{var r=e;if(t.gid=n.length,!t.isIsland()||t.isPredefined()){if(r={id:t.gid},t.isPredefined())for(var o in t.definition)r[o]=t.definition[o];e.groups||(e.groups=[]),e.groups.push(t.gid),n.push(r)}i(t.children,r,n)}})}e.Configuration=r;var o=function(){function t(t,e,n,r,i){void 0===e&&(e=new s),void 0===n&&(n=new s),void 0===r&&(r=new a),this.id=t,this.outgoing=e,this.incoming=n,this.children=r,this.definition=i}return t.prototype.getEdges=function(t){var e=this;this.outgoing.forAll(function(r,i){r.forAll(function(r){t.push(new n(e.id,r.id,i))})})},t.prototype.isLeaf=function(){return 0===this.children.count()},t.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},t.prototype.isPredefined=function(){return void 0!==this.definition},t}();e.Module=o;var a=function(){function t(){this.table={}}return t.prototype.count=function(){return Object.keys(this.table).length},t.prototype.intersection=function(e){var n=new t;return n.table=function(t,e){var n={};for(var r in t)r in e&&(n[r]=t[r]);return n}(this.table,e.table),n},t.prototype.intersectionCount=function(t){return this.intersection(t).count()},t.prototype.contains=function(t){return t in this.table},t.prototype.add=function(t){this.table[t.id]=t},t.prototype.remove=function(t){delete this.table[t.id]},t.prototype.forAll=function(t){for(var e in this.table)t(this.table[e])},t.prototype.modules=function(){var t=[];return this.forAll(function(e){e.isPredefined()||t.push(e)}),t},t}();e.ModuleSet=a;var s=function(){function t(){this.sets={},this.n=0}return t.prototype.count=function(){return this.n},t.prototype.contains=function(t){var e=!1;return this.forAllModules(function(n){e||n.id!=t||(e=!0)}),e},t.prototype.add=function(t,e){(t in this.sets?this.sets[t]:this.sets[t]=new a).add(e),++this.n},t.prototype.remove=function(t,e){var n=this.sets[t];n.remove(e),0===n.count()&&delete this.sets[t],--this.n},t.prototype.forAll=function(t){for(var e in this.sets)t(this.sets[e],Number(e))},t.prototype.forAllModules=function(t){this.forAll(function(e,n){return e.forAll(t)})},t.prototype.intersection=function(e){var n=new t;return this.forAll(function(t,r){if(r in e.sets){var i=t.intersection(e.sets[r]),o=i.count();o>0&&(n.sets[r]=i,n.n+=o)}}),n},t}();e.LinkSets=s,e.getGroups=function(t,e,n,i){for(var o=new r(t.length,e,n,i);o.greedyMerge(););var a=[],s=o.getGroupHierarchy(a);return a.forEach(function(e){var n=function(n){var r=e[n];"number"==typeof r&&(e[n]=t[r])};n("source"),n("target")}),{groups:s,powerEdges:a}}},741:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.elem=t,this.subheaps=[]}return t.prototype.toString=function(t){for(var e="",n=!1,r=0;r0)}return null}}return t.prototype.clear=function(){this._root=null,this.size=0},t.prototype.find=function(t){for(var e=this._root;null!==e;){var n=this._comparator(t,e.data);if(0===n)return e.data;e=e.get_child(n>0)}return null},t.prototype.lowerBound=function(t){return this._bound(t,this._comparator)},t.prototype.upperBound=function(t){var e=this._comparator;return this._bound(t,function(t,n){return e(n,t)})},t.prototype.min=function(){var t=this._root;if(null===t)return null;for(;null!==t.left;)t=t.left;return t.data},t.prototype.max=function(){var t=this._root;if(null===t)return null;for(;null!==t.right;)t=t.right;return t.data},t.prototype.iterator=function(){return new o(this)},t.prototype.each=function(t){for(var e,n=this.iterator();null!==(e=n.next());)t(e)},t.prototype.reach=function(t){for(var e,n=this.iterator();null!==(e=n.prev());)t(e)},t.prototype._bound=function(t,e){for(var n=this._root,r=this.iterator();null!==n;){var i=this._comparator(t,n.data);if(0===i)return r._cursor=n,r;r._ancestors.push(n),n=n.get_child(i>0)}for(var o=r._ancestors.length-1;o>=0;--o)if(e(t,(n=r._ancestors[o]).data)>0)return r._cursor=n,r._ancestors.length=o,r;return r._ancestors.length=0,r},t}();e.TreeBase=i;var o=function(){function t(t){this._tree=t,this._ancestors=[],this._cursor=null}return t.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},t.prototype.next=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._minNode(t)}else{var e;if(null===this._cursor.right)do{if(e=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===e);else this._ancestors.push(this._cursor),this._minNode(this._cursor.right)}return null!==this._cursor?this._cursor.data:null},t.prototype.prev=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._maxNode(t)}else{var e;if(null===this._cursor.left)do{if(e=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===e);else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left)}return null!==this._cursor?this._cursor.data:null},t.prototype._minNode=function(t){for(;null!==t.left;)this._ancestors.push(t),t=t.left;this._cursor=t},t.prototype._maxNode=function(t){for(;null!==t.right;)this._ancestors.push(t),t=t.right;this._cursor=t},t}();e.Iterator=o;var a=function(){function t(t){this.data=t,this.left=null,this.right=null,this.red=!0}return t.prototype.get_child=function(t){return t?this.right:this.left},t.prototype.set_child=function(t,e){t?this.right=e:this.left=e},t}();e.RBTree=function(t){function e(e){var n=t.call(this)||this;return n._root=null,n._comparator=e,n.size=0,n}return r(e,t),e.prototype.insert=function(t){var n=!1;if(null===this._root)this._root=new a(t),n=!0,this.size++;else{var r=new a(void 0),i=!1,o=!1,s=null,u=r,c=null,l=this._root;for(u.right=this._root;;){if(null===l?(l=new a(t),c.set_child(i,l),n=!0,this.size++):e.is_red(l.left)&&e.is_red(l.right)&&(l.red=!0,l.left.red=!1,l.right.red=!1),e.is_red(l)&&e.is_red(c)){var h=u.right===s;l===c.get_child(o)?u.set_child(h,e.single_rotate(s,!o)):u.set_child(h,e.double_rotate(s,!o))}var f=this._comparator(l.data,t);if(0===f)break;o=i,null!==s&&(u=s),s=c,c=l,l=l.get_child(i=f<0)}this._root=r.right}return this._root.red=!1,n},e.prototype.remove=function(t){if(null===this._root)return!1;var n=new a(void 0),r=n;r.right=this._root;for(var i=null,o=null,s=null,u=!0;null!==r.get_child(u);){var c=u;o=i,i=r,r=r.get_child(u);var l=this._comparator(t,r.data);if(u=l>0,0===l&&(s=r),!e.is_red(r)&&!e.is_red(r.get_child(u)))if(e.is_red(r.get_child(!u))){var h=e.single_rotate(r,u);i.set_child(c,h),i=h}else if(!e.is_red(r.get_child(!u))){var f=i.get_child(!c);if(null!==f)if(e.is_red(f.get_child(!c))||e.is_red(f.get_child(c))){var d=o.right===i;e.is_red(f.get_child(c))?o.set_child(d,e.double_rotate(i,c)):e.is_red(f.get_child(!c))&&o.set_child(d,e.single_rotate(i,c));var p=o.get_child(d);p.red=!0,r.red=!0,p.left.red=!1,p.right.red=!1}else i.red=!1,f.red=!0,r.red=!0}}return null!==s&&(s.data=r.data,i.set_child(i.right===r,r.get_child(null===r.left)),this.size--),this._root=n.right,null!==this._root&&(this._root.red=!1),null!==s},e.is_red=function(t){return null!==t&&t.red},e.single_rotate=function(t,e){var n=t.get_child(!e);return t.set_child(!e,n.get_child(e)),n.set_child(e,t),t.red=!0,n.red=!1,n},e.double_rotate=function(t,n){return t.set_child(!n,e.single_rotate(t.get_child(!n),!n)),e.single_rotate(t,n)},e}(i)},97002:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(70980),a=n(21539);function s(t){return t.bounds=void 0!==t.leaves?t.leaves.reduce(function(t,e){return e.bounds.union(t)},u.empty()):u.empty(),void 0!==t.groups&&(t.bounds=t.groups.reduce(function(t,e){return s(e).union(t)},t.bounds)),t.bounds=t.bounds.inflate(t.padding),t.bounds}e.computeGroupBounds=s;var u=function(){function t(t,e,n,r){this.x=t,this.X=e,this.y=n,this.Y=r}return t.empty=function(){return new t(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},t.prototype.cx=function(){return(this.x+this.X)/2},t.prototype.cy=function(){return(this.y+this.Y)/2},t.prototype.overlapX=function(t){var e=this.cx(),n=t.cx();return e<=n&&t.x0?n[0]:null},t.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}]},t.lineIntersection=function(t,e,n,r,i,o,a,s){var u=n-t,c=a-i,l=r-e,h=s-o,f=h*u-c*l;if(0==f)return null;var d=t-i,p=e-o,g=(c*p-h*d)/f,m=(u*p-l*d)/f;return g>=0&&g<=1&&m>=0&&m<=1?{x:t+g*u,y:e+g*l}:null},t.prototype.inflate=function(e){return new t(this.x-e,this.X+e,this.y-e,this.Y+e)},t}();e.Rectangle=u,e.makeEdgeBetween=function(t,e,n){var r=t.rayIntersection(e.cx(),e.cy())||{x:t.cx(),y:t.cy()},i=e.rayIntersection(t.cx(),t.cy())||{x:e.cx(),y:e.cy()},o=i.x-r.x,a=i.y-r.y,s=Math.sqrt(o*o+a*a),u=s-n;return{sourceIntersection:r,targetIntersection:i,arrowStart:{x:r.x+u*o/s,y:r.y+u*a/s}}},e.makeEdgeTo=function(t,e,n){var r=e.rayIntersection(t.x,t.y);r||(r={x:e.cx(),y:e.cy()});var i=r.x-t.x,o=r.y-t.y,a=Math.sqrt(i*i+o*o);return{x:r.x-n*i/a,y:r.y-n*o/a}};var c=function(){return function(t,e,n){this.v=t,this.r=e,this.pos=n,this.prev=f(),this.next=f()}}(),l=function(){return function(t,e,n){this.isOpen=t,this.v=e,this.pos=n}}();function h(t,e){return t.pos>e.pos?1:t.pos0&&(t[n].insert(i),i[r].insert(t))};n("next","prev"),n("prev","next")}};function g(t,e,n,r){void 0===r&&(r=!1);var i=t.padding,o=void 0!==t.groups?t.groups.length:0,a=void 0!==t.leaves?t.leaves.length:0,s=o?t.groups.reduce(function(t,r){return t.concat(g(r,e,n,!0))},[]):[],u=(r?2:0)+a+o,c=new Array(u),l=new Array(u),h=0,f=function(t,e){l[h]=t,c[h++]=e};if(r){var d=t.bounds,p=e.getCentre(d),v=e.getSize(d)/2,y=e.getOpen(d),_=e.getClose(d),w=p-v+i/2,b=p+v-i/2;t.minVar.desiredPosition=w,f(e.makeRect(y,_,w,i),t.minVar),t.maxVar.desiredPosition=b,f(e.makeRect(y,_,b,i),t.maxVar)}a&&t.leaves.forEach(function(t){return f(t.bounds,t.variable)}),o&&t.groups.forEach(function(t){var n=t.bounds;f(e.makeRect(e.getOpen(n),e.getClose(n),e.getCentre(n),e.getSize(n)),t.minVar)});var x=m(l,c,e,n);return o&&(c.forEach(function(t){t.cOut=[],t.cIn=[]}),x.forEach(function(t){t.left.cOut.push(t),t.right.cIn.push(t)}),t.groups.forEach(function(t){var n=(t.padding-e.getSize(t.bounds))/2;t.minVar.cIn.forEach(function(t){return t.gap+=n}),t.minVar.cOut.forEach(function(e){e.left=t.maxVar,e.gap+=n})})),s.concat(x)}function m(t,e,n,r){var i,a=t.length,s=2*a;console.assert(e.length>=a);var u=new Array(s);for(i=0;it[n]&&(t[n]=e)}o=t})}},t.prototype.createAlignment=function(t){var e=this,n=this.nodes[t.offsets[0].node].variable;this.makeFeasible(t);var r="x"===t.axis?this.xConstraints:this.yConstraints;t.offsets.slice(1).forEach(function(t){r.push(new o.Constraint(n,e.nodes[t.node].variable,t.offset,!0))})},t.prototype.createConstraints=function(t){var e=this,n=function(t){return void 0===t.type||"separation"===t.type};this.xConstraints=t.filter(function(t){return"x"===t.axis&&n(t)}).map(function(t){return e.createSeparation(t)}),this.yConstraints=t.filter(function(t){return"y"===t.axis&&n(t)}).map(function(t){return e.createSeparation(t)}),t.filter(function(t){return"alignment"===t.type}).forEach(function(t){return e.createAlignment(t)})},t.prototype.setupVariablesAndBounds=function(t,e,n,r){this.nodes.forEach(function(i,o){i.fixed?(i.variable.weight=i.fixedWeight?i.fixedWeight:1e3,n[o]=r(i)):i.variable.weight=1;var a=(i.width||0)/2,s=(i.height||0)/2,c=t[o],l=e[o];i.bounds=new u(c-a,c+a,l-s,l+s)})},t.prototype.xProject=function(t,e,n){(this.rootGroup||this.avoidOverlaps||this.xConstraints)&&this.project(t,e,t,n,function(t){return t.px},this.xConstraints,_,function(t){return t.bounds.setXCentre(n[t.variable.index]=t.variable.position())},function(t){var e=n[t.minVar.index]=t.minVar.position(),r=n[t.maxVar.index]=t.maxVar.position(),i=t.padding/2;t.bounds.x=e-i,t.bounds.X=r+i})},t.prototype.yProject=function(t,e,n){(this.rootGroup||this.yConstraints)&&this.project(t,e,e,n,function(t){return t.py},this.yConstraints,w,function(t){return t.bounds.setYCentre(n[t.variable.index]=t.variable.position())},function(t){var e=n[t.minVar.index]=t.minVar.position(),r=n[t.maxVar.index]=t.maxVar.position(),i=t.padding/2;t.bounds.y=e-i,t.bounds.Y=r+i})},t.prototype.projectFunctions=function(){var t=this;return[function(e,n,r){return t.xProject(e,n,r)},function(e,n,r){return t.yProject(e,n,r)}]},t.prototype.project=function(t,e,n,r,i,o,a,u,c){this.setupVariablesAndBounds(t,e,r,i),this.rootGroup&&this.avoidOverlaps&&(s(this.rootGroup),o=o.concat(a(this.rootGroup))),this.solve(this.variables,o,n,r),this.nodes.forEach(u),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(c),s(this.rootGroup))},t.prototype.solve=function(t,e,n,r){var i=new o.Solver(t,e);i.setStartingPositions(n),i.setDesiredPositions(r),i.solve()},t}()},99147:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(741),i=function(){return function(t,e){this.id=t,this.distance=e}}(),o=function(){return function(t){this.id=t,this.neighbours=[]}}(),a=function(){return function(t,e,n){this.node=t,this.prev=e,this.d=n}}();e.Calculator=function(){function t(t,e,n,r,a){this.n=t,this.es=e,this.neighbours=new Array(this.n);for(var s=this.n;s--;)this.neighbours[s]=new o(s);for(s=this.es.length;s--;){var u=this.es[s],c=n(u),l=r(u),h=a(u);this.neighbours[c].neighbours.push(new i(l,h)),this.neighbours[l].neighbours.push(new i(c,h))}}return t.prototype.DistanceMatrix=function(){for(var t=new Array(this.n),e=0;eh&&(c.d=h,c.prev=s,n.reduceKey(c.q,c,function(t,e){return t.q=e}))}}return o},t}()},70980:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.scale=t,this.AB=0,this.AD=0,this.A2=0}return t.prototype.addVariable=function(t){var e=this.scale/t.scale,n=t.weight;this.AB+=n*e*(t.offset/t.scale),this.AD+=n*e*t.desiredPosition,this.A2+=n*e*e},t.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},t}();e.PositionStats=n;var r=function(){function t(t,e,n,r){void 0===r&&(r=!1),this.left=t,this.right=e,this.gap=n,this.equality=r,this.active=!1,this.unsatisfiable=!1,this.left=t,this.right=e,this.gap=n,this.equality=r}return t.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},t}();e.Constraint=r;var i=function(){function t(t,e,n){void 0===e&&(e=1),void 0===n&&(n=1),this.desiredPosition=t,this.weight=e,this.scale=n,this.offset=0}return t.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},t.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},t.prototype.visitNeighbours=function(t,e){var n=function(n,r){return n.active&&t!==r&&e(n,r)};this.cOut.forEach(function(t){return n(t,t.right)}),this.cIn.forEach(function(t){return n(t,t.left)})},t}();e.Variable=i;var o=function(){function t(t){this.vars=[],t.offset=0,this.ps=new n(t.scale),this.addVariable(t)}return t.prototype.addVariable=function(t){t.block=this,this.vars.push(t),this.ps.addVariable(t),this.posn=this.ps.getPosn()},t.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var t=0,e=this.vars.length;t=0?this.inactive.push(e):this.bs.merge(e)}}},t.prototype.solve=function(){this.satisfy();for(var t=Number.MAX_VALUE,e=this.bs.cost();Math.abs(t-e)>1e-4;)this.satisfy(),t=e,e=this.bs.cost();return e},t.LAGRANGIAN_TOLERANCE=-1e-4,t.ZERO_UPPERBOUND=-1e-10,t}();e.Solver=s,e.removeOverlapInOneDimension=function(t,e,n){for(var o=t.map(function(t){return new i(t.desiredCenter)}),a=[],u=t.length,c=0;c{class t{constructor(t,e){this.sideMenuService=t,this.sideMenuItemService=e}ngOnInit(){this.sideMenuService.setAdminItems([])}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(u.D),s.Y36(a.V))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s._UZ(1,"perun-web-apps-back-button"),s.TgZ(2,"h1",1),s._UZ(3,"mat-icon",2),s._uU(4),s.ALo(5,"translate"),s.qZA(),s._UZ(6,"app-animated-router-outlet"),s.qZA()),2&t&&(s.xp6(3),s.Q6J("ngStyle",s.DdM(4,d)),s.xp6(1),s.hij(" ",s.lcZ(5,2,"ADMIN.TITLE")," "))},directives:[c.W,l.Hw,i.PC,h.A],pipes:[f.X$],styles:[""]}),t})();var g=n(8557);let m=(()=>{class t{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"}]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-admin-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("router-component",e.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s._UZ(1,"perun-web-apps-menu-buttons-field",0),s.qZA()),2&t&&(s.xp6(1),s.Q6J("items",e.navItems)("size","small"))},directives:[g.L],styles:[""]}),t})();var v=n(4230),y=n(84608),_=n(67033),w=n(68416),b=n(65249),x=n(15980),E=n(67806),T=n(39571);function A(t,e){1&t&&s._UZ(0,"mat-spinner",6)}function S(t,e){1&t&&s._UZ(0,"th",16)}function I(t,e){if(1&t&&(s.TgZ(0,"td",17),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",t.friendlyName," ")}}function D(t,e){1&t&&s._UZ(0,"tr",18)}function N(t,e){1&t&&s._UZ(0,"tr",19)}function k(t,e){if(1&t&&(s.TgZ(0,"div",7),s.TgZ(1,"div"),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,S,1,0,"th",11),s.YNc(10,I,2,1,"td",12),s.BQk(),s.YNc(11,D,1,0,"tr",13),s.YNc(12,N,1,0,"tr",14),s.qZA(),s.TgZ(13,"app-alert",15),s._uU(14),s.ALo(15,"translate"),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,6,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TEXT_LINE1")," "),s.xp6(3),s.hij(" ",s.lcZ(6,8,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TEXT_LINE2")," "),s.xp6(2),s.Q6J("dataSource",t.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",t.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",t.displayedColumns),s.xp6(2),s.hij(" ",s.lcZ(15,10,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.WARNING")," ")}}let C=(()=>{class t{constructor(t,e,n,r,i){this.dialogRef=t,this.data=e,this.notificator=n,this.translate=r,this.attributesManager=i,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new _.by(this.data.attributes)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const t=[];for(const e of this.data.attributes)t.push(e.id);this.attributesManager.deleteAttributeDefinitions(t).subscribe(()=>{this.translate.get("DIALOGS.DELETE_ATTRIBUTE_DEFINITION.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(w.V6),s.Y36(f.sK),s.Y36(b.H8))},t.\u0275cmp=s.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["mat-header-row","","class","font-weight-bolder",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(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,A,1,0,"mat-spinner",1),s.YNc(5,k,16,12,"div",2),s.TgZ(6,"div",3),s.TgZ(7,"button",4),s.NdJ("click",function(){return e.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return e.onSubmit()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.Oqu(s.lcZ(3,9,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,11,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.CANCEL")," "),s.xp6(2),s.Q6J("disabled",e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,13,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.CONFIRM")," "))},directives:[y.uh,i.O5,y.H8,x.lW,E.$g,y.xY,_.BZ,_.w1,_.fO,_.Dz,_.as,_.nj,T.w,_.ge,_.ev,_.XQ,_.Gk],pipes:[f.X$],styles:[""]}),t})();var Z=n(14732),M=n(36922),O=n(66283),L=n(80340),R=n(16073),U=n(10901),P=n(4786),q=n(27521),F=n(29236),j=n(71522);function Y(t,e){1&t&&s._UZ(0,"mat-spinner",7)}function B(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function z(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function G(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function J(t,e){if(1&t&&(s.TgZ(0,"mat-option",29),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.Oqu(t)}}function V(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_SELECT_SOMETHING")))}function H(t,e){if(1&t&&(s.TgZ(0,"mat-option",29),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.Oqu(t)}}function Q(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_SELECT_SOMETHING")))}function W(t,e){if(1&t&&(s.TgZ(0,"mat-option",29),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.Oqu(t)}}function $(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_SELECT_SOMETHING")))}function X(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",8),s.TgZ(1,"mat-form-field",9),s.TgZ(2,"label"),s.TgZ(3,"input",10),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().attDef.friendlyName=e}),s.ALo(4,"translate"),s.qZA(),s.qZA(),s.YNc(5,B,3,3,"mat-error",11),s.qZA(),s._UZ(6,"br"),s.TgZ(7,"mat-form-field",9),s.TgZ(8,"label"),s.TgZ(9,"input",10),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().attDef.displayName=e}),s.ALo(10,"translate"),s.qZA(),s.qZA(),s.YNc(11,z,3,3,"mat-error",11),s.qZA(),s._UZ(12,"br"),s.TgZ(13,"mat-form-field",9),s.TgZ(14,"label"),s.TgZ(15,"textarea",12),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().attDef.description=e}),s.ALo(16,"translate"),s._uU(17," "),s.qZA(),s.qZA(),s.YNc(18,G,3,3,"mat-error",11),s.qZA(),s._UZ(19,"br"),s.TgZ(20,"mat-form-field",9),s.TgZ(21,"mat-placeholder"),s._uU(22),s.ALo(23,"translate"),s.qZA(),s.TgZ(24,"mat-select",13),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().entity=e}),s.YNc(25,J,2,2,"mat-option",14),s.qZA(),s.YNc(26,V,3,3,"mat-error",11),s.qZA(),s._UZ(27,"br"),s.TgZ(28,"mat-form-field",9),s.TgZ(29,"mat-placeholder"),s._uU(30),s.ALo(31,"translate"),s.qZA(),s.TgZ(32,"mat-select",13),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().definitionType=e}),s.YNc(33,H,2,2,"mat-option",14),s.qZA(),s.YNc(34,Q,3,3,"mat-error",11),s.qZA(),s._UZ(35,"br"),s.TgZ(36,"mat-form-field",9),s.TgZ(37,"mat-placeholder"),s._uU(38),s.ALo(39,"translate"),s.qZA(),s.TgZ(40,"mat-select",13),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().valueType=e}),s.YNc(41,W,2,2,"mat-option",14),s.qZA(),s.YNc(42,$,3,3,"mat-error",11),s.qZA(),s._UZ(43,"br"),s.TgZ(44,"div",15),s.TgZ(45,"p"),s._uU(46),s.ALo(47,"translate"),s.qZA(),s.TgZ(48,"p",16),s.NdJ("click",function(){return s.CHM(t),s.oxw().attDef.unique=!1}),s._uU(49,"OFF"),s.qZA(),s.TgZ(50,"mat-slide-toggle",17),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().attDef.unique=e}),s.ALo(51,"translate"),s._uU(52," ON "),s.qZA(),s.qZA(),s.TgZ(53,"div",18),s.TgZ(54,"p",19),s._uU(55),s.ALo(56,"translate"),s.qZA(),s.TgZ(57,"p",20),s._uU(58),s.ALo(59,"translate"),s.qZA(),s.qZA(),s.TgZ(60,"div",21),s.TgZ(61,"p",22),s._uU(62),s.ALo(63,"translate"),s.qZA(),s.TgZ(64,"mat-checkbox",23),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().readSelf=e}),s.qZA(),s.TgZ(65,"mat-checkbox",24),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().writeSelf=e}),s.qZA(),s.qZA(),s.TgZ(66,"div",21),s.TgZ(67,"p",22),s._uU(68),s.ALo(69,"translate"),s.qZA(),s.TgZ(70,"mat-checkbox",25),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().readSelfPublic=e}),s.qZA(),s.TgZ(71,"mat-checkbox",24),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().writeSelfPublic=e}),s.qZA(),s.qZA(),s.TgZ(72,"div",21),s.TgZ(73,"p",22),s._uU(74),s.ALo(75,"translate"),s.qZA(),s.TgZ(76,"mat-checkbox",26),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().readSelfVo=e}),s.qZA(),s.TgZ(77,"mat-checkbox",24),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().writeSelfVo=e}),s.qZA(),s.qZA(),s.TgZ(78,"div",21),s.TgZ(79,"p",22),s._uU(80),s.ALo(81,"translate"),s.qZA(),s.TgZ(82,"mat-checkbox",27),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().readVo=e}),s.qZA(),s.TgZ(83,"mat-checkbox",24),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().writeVo=e}),s.qZA(),s.qZA(),s.TgZ(84,"div",21),s.TgZ(85,"p",22),s._uU(86),s.ALo(87,"translate"),s.qZA(),s.TgZ(88,"mat-checkbox",28),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().readGroup=e}),s.qZA(),s.TgZ(89,"mat-checkbox",24),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().writeGroup=e}),s.qZA(),s.qZA(),s.TgZ(90,"div",21),s.TgZ(91,"p",22),s._uU(92),s.ALo(93,"translate"),s.qZA(),s.TgZ(94,"mat-checkbox",26),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().readFacility=e}),s.qZA(),s.TgZ(95,"mat-checkbox",24),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().writeFacility=e}),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(3),s.s9C("placeholder",s.lcZ(4,46,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FRIENDLY_NAME")),s.Q6J("ngModel",t.attDef.friendlyName),s.xp6(2),s.Q6J("ngIf",""===t.attDef.friendlyName),s.xp6(4),s.s9C("placeholder",s.lcZ(10,48,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),s.Q6J("ngModel",t.attDef.displayName),s.xp6(2),s.Q6J("ngIf",""===t.attDef.displayName),s.xp6(4),s.s9C("placeholder",s.lcZ(16,50,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DESCRIPTION")),s.Q6J("ngModel",t.attDef.description),s.xp6(3),s.Q6J("ngIf",""===t.attDef.description),s.xp6(4),s.Oqu(s.lcZ(23,52,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ENTITY")),s.xp6(2),s.Q6J("ngModel",t.entity),s.xp6(1),s.Q6J("ngForOf",t.entities),s.xp6(1),s.Q6J("ngIf",""===t.attDef.entity),s.xp6(4),s.Oqu(s.lcZ(31,54,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DEFINITION")),s.xp6(2),s.Q6J("ngModel",t.definitionType),s.xp6(1),s.Q6J("ngForOf",t.definitionTypes),s.xp6(1),s.Q6J("ngIf",""===t.definitionType),s.xp6(4),s.Oqu(s.lcZ(39,56,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VALUE_TYPE")),s.xp6(2),s.Q6J("ngModel",t.valueType),s.xp6(1),s.Q6J("ngForOf",t.valueTypes),s.xp6(1),s.Q6J("ngIf",""===t.valueType),s.xp6(4),s.Oqu(s.lcZ(47,58,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.UNIQUE")),s.xp6(4),s.s9C("matTooltip",s.lcZ(51,60,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.TOOLTIP_UNIQUE")),s.Q6J("matTooltipDisabled",!t.disableUniqueToggle())("disabled",t.disableUniqueToggle())("ngModel",t.attDef.unique),s.xp6(5),s.Oqu(s.lcZ(56,62,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.READ")),s.xp6(3),s.Oqu(s.lcZ(59,64,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.WRITE")),s.xp6(4),s.Oqu(s.lcZ(63,66,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF")),s.xp6(2),s.Q6J("ngModel",t.readSelf),s.xp6(1),s.Q6J("ngModel",t.writeSelf),s.xp6(3),s.Oqu(s.lcZ(69,68,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_PUBLIC")),s.xp6(2),s.Q6J("ngModel",t.readSelfPublic),s.xp6(1),s.Q6J("ngModel",t.writeSelfPublic),s.xp6(3),s.Oqu(s.lcZ(75,70,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_VO")),s.xp6(2),s.Q6J("ngModel",t.readSelfVo),s.xp6(1),s.Q6J("ngModel",t.writeSelfVo),s.xp6(3),s.Oqu(s.lcZ(81,72,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VO")),s.xp6(2),s.Q6J("ngModel",t.readVo),s.xp6(1),s.Q6J("ngModel",t.writeVo),s.xp6(3),s.Oqu(s.lcZ(87,74,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.GROUP")),s.xp6(2),s.Q6J("ngModel",t.readGroup),s.xp6(1),s.Q6J("ngModel",t.writeGroup),s.xp6(3),s.Oqu(s.lcZ(93,76,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FACILITY")),s.xp6(2),s.Q6J("ngModel",t.readFacility),s.xp6(1),s.Q6J("ngModel",t.writeFacility)}}let K=(()=>{class t{constructor(t,e,n,r){this.dialogRef=t,this.notificator=e,this.translate=n,this.attributesManager=r,this.loading=!1,this.entities=["facility","resource","group","group_resource","host","member","member_group","member_resource","user","user_ext_source","user_facility","vo","entityless"],this.definitionTypes=["def","opt","virt","core"],this.definitionType="",this.valueTypes=["String","Integer","Boolean","Array","LinkedHashMap"],this.valueType="",this.readSelf=!1,this.readSelfPublic=!1,this.readSelfVo=!1,this.readVo=!1,this.readGroup=!1,this.readFacility=!1,this.writeSelf=!1,this.writeSelfPublic=!1,this.writeSelfVo=!1,this.writeVo=!1,this.writeGroup=!1,this.writeFacility=!1}ngOnInit(){this.attDef={beanName:"",description:"",displayName:"",entity:"",friendlyName:"",id:void 0,namespace:"",type:"",unique:!1,writable:!1}}onSubmit(){this.loading=!0,this.attDef.namespace="urn:perun:"+this.entity+":attribute-def:"+this.definitionType,this.readValueType(),this.attributesManager.createAttributeDefinition({attribute:this.attDef}).subscribe(t=>{this.attDef=t,this.attributesManager.setAttributeRights({rights:this.readRights()}).subscribe(()=>{this.translate.get("DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}readRights(){const t=[],e={};e.attributeId=this.attDef.id,e.role=Z.u.SELF,e.rights=[],this.readSelf&&e.rights.push("READ"),this.readSelfPublic&&e.rights.push("READ_PUBLIC"),this.readSelfVo&&e.rights.push("READ_VO"),this.writeSelf&&e.rights.push("WRITE"),this.writeSelfPublic&&e.rights.push("WRITE_PUBLIC"),this.writeSelfVo&&e.rights.push("WRITE_VO"),t.push(e);const n={};n.attributeId=this.attDef.id,n.role=Z.u.VOADMIN,n.rights=[],this.readVo&&n.rights.push(b.Us.READ),this.writeVo&&n.rights.push(b.Us.WRITE),t.push(n);const r={};r.attributeId=this.attDef.id,r.role=Z.u.GROUPADMIN,r.rights=[],this.readGroup&&r.rights.push(b.Us.READ),this.writeGroup&&r.rights.push(b.Us.WRITE),t.push(r);const i={};return i.attributeId=this.attDef.id,i.role=Z.u.FACILITYADMIN,i.rights=[],this.readFacility&&i.rights.push(b.Us.READ),this.writeFacility&&i.rights.push(b.Us.WRITE),t.push(i),t}readValueType(){switch(this.valueType){case"String":this.attDef.type="java.lang.String";break;case"Integer":this.attDef.type="java.lang.Integer";break;case"Boolean":this.attDef.type="java.lang.Boolean";break;case"Array":this.attDef.type="java.util.ArrayList";break;case"LinkedHashMap":this.attDef.type="java.util.LinkedHashMap"}}disableConfirmButton(){return""===this.attDef.friendlyName||""===this.attDef.displayName||""===this.attDef.description||""===this.entity||""===this.definitionType||""===this.valueType||this.loading}disableUniqueToggle(){return("virt"===this.definitionType||"entityless"===this.entity)&&(this.attDef.unique=!1,!0)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(w.V6),s.Y36(f.sK),s.Y36(b.H8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-create-attribute-definition-dialog"]],decls:14,vars:16,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"mt-3"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent","matTooltipPosition","above",1,"ml-2",3,"disabled","matTooltip","matTooltipDisabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"form-field-width"],["matInput","","required","",1,"form-field-width",3,"ngModel","placeholder","ngModelChange"],[4,"ngIf"],["matInput","","cdkTextareaAutosize","","required","",1,"form-field-width",3,"ngModel","placeholder","ngModelChange"],["required","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"d-flex","flex-row","mt-3"],[1,"pointer","ml-4",3,"click"],["color","accent","matTooltipPosition","above",1,"ml-2",3,"matTooltip","matTooltipDisabled","disabled","ngModel","ngModelChange"],[1,"d-flex","flex-row","mt-2"],[1,"ml-5","pl-4"],[1,"ml-4"],[1,"d-flex","flex-row"],[1,""],[1,"ml-5","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5",3,"ngModel","ngModelChange"],[1,"ml-3",3,"ngModel","ngModelChange"],[1,"ml-4","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5","pl-4",3,"ngModel","ngModelChange"],[1,"ml-4","pl-4",3,"ngModel","ngModelChange"],[3,"value"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,Y,1,0,"mat-spinner",2),s.YNc(5,X,96,78,"div",3),s.TgZ(6,"div",4),s.TgZ(7,"button",5),s.NdJ("click",function(){return e.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",6),s.NdJ("click",function(){return e.onSubmit()}),s.ALo(11,"translate"),s._uU(12),s.ALo(13,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,8,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,10,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CANCEL")," "),s.xp6(2),s.s9C("matTooltip",s.lcZ(11,12,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.TOOLTIP_CONFIRM")),s.Q6J("disabled",e.disableConfirmButton())("matTooltipDisabled",!e.disableConfirmButton()),s.xp6(2),s.hij(" ",s.lcZ(13,14,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CONFIRM")," "))},directives:[y.uh,i.O5,y.H8,x.lW,M.gM,E.$g,y.xY,O.KE,L.Nt,R.Fj,R.Q7,R.JJ,R.On,U.IC,O.UY,P.gD,i.sg,q.Rr,F.oG,O.TO,j.ey],pipes:[f.X$],styles:[".unique-toggle-label[_ngcontent-%COMP%]{font-size:1.125rem}.form-field-width[_ngcontent-%COMP%]{width:450px}.pointer[_ngcontent-%COMP%]{cursor:pointer}textarea[cdktextareaautosize].mat-input-element[_ngcontent-%COMP%]{overflow:hidden}"]}),t})();var tt=n(84140),et=n(60611);function nt(t,e){1&t&&s._UZ(0,"mat-spinner",7)}function rt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",8),s.TgZ(1,"app-alert",9),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"mat-form-field",10),s.TgZ(5,"input",11),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().value=e}),s.ALo(6,"translate"),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,3,"DIALOGS.IMPORT_ATTRIBUTE.INFO")," "),s.xp6(3),s.Q6J("ngModel",t.value)("placeholder",s.lcZ(6,5,"DIALOGS.IMPORT_ATTRIBUTE.HINT"))}}let it=(()=>{class t{constructor(t,e,n,r){this.dialogRef=t,this.notificator=e,this.translate=n,this.attributesManager=r,this.value="",this.loading=!1}create(){try{this.loading=!0,this.attributeData=JSON.parse(this.value),this.attributesManager.createAttributeDefinition({attribute:this.attributeData.attributeDefinition}).subscribe(t=>{for(let e=0;e{this.notificator.showSuccess(this.translate.instant("DIALOGS.IMPORT_ATTRIBUTE_DEFINITION.SUCCESS")),this.dialogRef.close(!0)})},()=>this.loading=!1)}catch(t){console.log(t),this.notificator.showError(t),this.loading=!1}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(w.V6),s.Y36(f.sK),s.Y36(b.H8))},t.\u0275cmp=s.Xpm({type:t,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","",1,"mt-3"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,nt,1,0,"mat-spinner",2),s.YNc(5,rt,7,7,"div",3),s.TgZ(6,"div",4),s.TgZ(7,"button",5),s.NdJ("click",function(){return e.dialogRef.close()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",6),s.NdJ("click",function(){return e.create()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.hij(" ",s.lcZ(3,6,"DIALOGS.IMPORT_ATTRIBUTE.TITLE")," "),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,8,"DIALOGS.IMPORT_ATTRIBUTE.CANCEL")," "),s.xp6(2),s.Q6J("disabled",0===e.value.trim().length||e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,10,"DIALOGS.IMPORT_ATTRIBUTE.CREATE")," "))},directives:[y.uh,i.O5,y.H8,x.lW,E.$g,y.xY,T.w,O.KE,L.Nt,R.Fj,R.Q7,R.JJ,R.On],pipes:[f.X$],styles:[""]}),t})();var ot=n(59403),at=n(19139),st=n(58623),ut=n(17),ct=n(81391),lt=n(91721),ht=n(41939),ft=n(82819),dt=n(51556);function pt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"th",22),s.TgZ(1,"mat-checkbox",23),s.NdJ("change",function(e){s.CHM(t);const n=s.oxw(2);return e?n.masterToggle():null}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function gt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",24),s.TgZ(1,"mat-checkbox",25),s.NdJ("change",function(e){const n=s.CHM(t).$implicit,r=s.oxw(2);return e?r.selection.toggle(n):null})("click",function(t){return t.stopPropagation()}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,n=s.oxw(2);s.xp6(1),s.Q6J("aria-label",n.checkboxLabel(t))("checked",n.selection.isSelected(t))}}function mt(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.KEY")," "))}function vt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",27),s.TgZ(1,"label"),s.TgZ(2,"input",28),s.NdJ("ngModelChange",function(){const e=s.CHM(t).$implicit;return s.oxw(2).onValueChange(e)})("ngModelChange",function(t){return e.$implicit[0]=t}),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(2),s.Q6J("ngModel",t[0])}}function yt(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.VALUE")," "))}function _t(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",27),s.TgZ(1,"perun-web-apps-attribute-value",29),s.NdJ("sendEventToParent2",function(){const e=s.CHM(t).$implicit;return s.oxw(2).onValueChange(e)}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(1),s.Q6J("attribute",t[1])}}function wt(t,e){1&t&&s._UZ(0,"tr",30)}function bt(t,e){1&t&&s._UZ(0,"tr",31)}function xt(t,e){if(1&t&&(s.TgZ(0,"div",10),s.TgZ(1,"perun-web-apps-table-wrapper",11),s.TgZ(2,"table",12),s.ynx(3,13),s.YNc(4,pt,2,3,"th",14),s.YNc(5,gt,2,2,"td",15),s.BQk(),s.ynx(6,16),s.YNc(7,mt,3,3,"th",17),s.YNc(8,vt,3,1,"td",18),s.BQk(),s.ynx(9,19),s.YNc(10,yt,3,3,"th",17),s.YNc(11,_t,2,1,"td",18),s.BQk(),s.YNc(12,wt,1,0,"tr",20),s.YNc(13,bt,1,0,"tr",21),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("hideExport",!0)("pageSizeOptions",t.pageSizeOptions),s.xp6(1),s.Q6J("dataSource",t.dataSource),s.xp6(10),s.Q6J("matHeaderRowDef",t.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",t.displayedColumns)}}function Et(t,e){1&t&&s._UZ(0,"mat-spinner",32)}function Tt(t,e){1&t&&(s.TgZ(0,"app-alert",33),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.NO_KEYS_WARNING")," "))}let At=(()=>{class t{constructor(t,e,n,r,i){this.dialogRef=t,this.data=e,this.notificator=n,this.translate=r,this.attributesManager=i,this.switchView=new s.vpe,this.records=[],this.displayedColumns=["select","key","value"],this.dataSource=new _.by,this.selection=new v.Ov(!0,[]),this.isAddButtonDisabled=!1,this.pageSizeOptions=tt.f7}set matSort(t){this.sort=t}ngOnChanges(){this.ngOnInit()}ngOnInit(){this.loading=!0,this.attDef=this.data.attDef,this.attributesManager.getEntitylessKeys(this.attDef.id).subscribe(t=>{this.attributesManager.getEntitylessAttributesByName(`${this.attDef.namespace}:${this.attDef.friendlyName}`).subscribe(e=>{let n=0;this.records=[];for(const r of t)this.records.push([r,e[n]]),n++;this.dataSource=new _.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 t of this.selection.selected)this.attributesManager.setEntitylessAttribute({key:t[0],attribute:t[1]}).subscribe(()=>{this.translate.get("SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.SAVE_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.ngOnInit()})});this.selection.clear(),this.isAddButtonDisabled=!1}onRemove(){for(const t of this.selection.selected)this.attributesManager.removeEntitylessAttribute(t[0],t[1].id).subscribe(()=>{this.translate.get("SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.REMOVE_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.ngOnInit()})});this.ngOnInit(),this.selection.clear(),this.isAddButtonDisabled=!1}onAdd(){const t=["",this.attDef];t[1].value=void 0,this.records.unshift(t),this.dataSource.data=this.records,this.setDataSource(),this.selection.clear(),this.selection.select(t),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(t=>this.selection.select(t))}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t[1].id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}onValueChange(t){this.selection.select(t)}updateMapAttributes(){for(const t of this.items.toArray())"java.util.LinkedHashMap"===t.attribute.type&&t.updateMapAttribute()}ngAfterViewInit(){this.children.changes.subscribe(t=>{this.child=t.first,this.dataSource.paginator=this.child.paginator})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(w.V6),s.Y36(f.sK),s.Y36(b.H8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-entityless-attribute-keys-list"]],viewQuery:function(t,e){if(1&t&&(s.Gf(st.YE,7),s.Gf(tt.l9,5),s.Gf(ht.Mw,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.matSort=t.first),s.iGM(t=s.CRH())&&(e.children=t),s.iGM(t=s.CRH())&&(e.items=t)}},inputs:{attDef:"attDef",tableId:"tableId"},outputs:{switchView:"switchView"},features:[s.TTD],decls:19,vars:19,consts:[["mat-dialog-title",""],["mat-dialog-actions","",1,"mt-3"],["mat-stroked-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"],["mat-flat-button","","color","accent","matTooltip","save or remove new attribute first","matTooltipPosition","above",1,"ml-2",3,"disabled","matTooltipDisabled","click"],["mat-flat-button","","color","warn",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,"tableId","dataLength","hideExport","pageSizeOptions"],["mat-table","","matSort","","matSortActive","key","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","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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.qZA(),s.TgZ(2,"div",1),s.TgZ(3,"button",2),s.NdJ("click",function(){return e.switchView.emit()}),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"button",3),s.NdJ("click",function(){return e.onSave()}),s._uU(7),s.ALo(8,"translate"),s.qZA(),s.TgZ(9,"button",4),s.NdJ("click",function(){return e.onAdd()}),s._uU(10),s.ALo(11,"translate"),s.qZA(),s.TgZ(12,"button",5),s.NdJ("click",function(){return e.onRemove()}),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.qZA(),s.TgZ(15,"div",6),s.YNc(16,xt,14,7,"div",7),s.YNc(17,Et,1,0,"mat-spinner",8),s.YNc(18,Tt,3,3,"app-alert",9),s.qZA()),2&t&&(s.xp6(1),s.Oqu(e.attDef.namespace+":"+e.attDef.friendlyName),s.xp6(3),s.hij(" ",s.lcZ(5,11,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.CANCEL")," "),s.xp6(3),s.hij(" ",s.lcZ(8,13,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.SAVE")," "),s.xp6(2),s.Q6J("disabled",e.isAddButtonDisabled)("matTooltipDisabled",!e.isAddButtonDisabled),s.xp6(1),s.hij(" ",s.lcZ(11,15,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.ADD")," "),s.xp6(3),s.hij(" ",s.lcZ(14,17,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.REMOVE")," "),s.xp6(2),s.Q6J("hidden",e.loading),s.xp6(1),s.Q6J("ngIf",e.records&&e.records.length),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",0===e.records.length))},directives:[y.uh,y.H8,x.lW,M.gM,y.xY,i.O5,ft.l,_.BZ,st.YE,_.w1,_.fO,_.Dz,_.as,_.nj,_.ge,F.oG,_.ev,st.nU,L.Nt,R.Fj,R.JJ,R.On,dt.M,_.XQ,_.Gk,E.$g,T.w],pipes:[f.X$],styles:[".mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}"]}),t})();const St=["copiedTooltip"];function It(t,e){1&t&&s._UZ(0,"mat-spinner",12)}function Dt(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function Nt(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}const kt=function(){return["id","name","enabled","script"]};function Ct(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",13),s.TgZ(1,"mat-form-field",3),s.TgZ(2,"label"),s.TgZ(3,"input",14),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).attDef.displayName=e}),s.ALo(4,"translate"),s.qZA(),s.qZA(),s.YNc(5,Dt,3,3,"mat-error",2),s.qZA(),s._UZ(6,"br"),s.TgZ(7,"mat-form-field",3),s.TgZ(8,"label"),s.TgZ(9,"textarea",15),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).attDef.description=e}),s.ALo(10,"translate"),s._uU(11," "),s.qZA(),s.qZA(),s.YNc(12,Nt,3,3,"mat-error",2),s.qZA(),s._UZ(13,"br"),s.TgZ(14,"div",16),s.TgZ(15,"p"),s._uU(16),s.ALo(17,"translate"),s.qZA(),s.TgZ(18,"p",17),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).attDef.unique=!1}),s._uU(19,"OFF"),s.qZA(),s.TgZ(20,"mat-slide-toggle",18),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).attDef.unique=e}),s.ALo(21,"translate"),s._uU(22," ON "),s.qZA(),s.qZA(),s.TgZ(23,"div",19),s.TgZ(24,"p",20),s._uU(25),s.ALo(26,"translate"),s.qZA(),s.TgZ(27,"p",21),s._uU(28),s.ALo(29,"translate"),s.qZA(),s.qZA(),s.TgZ(30,"div",22),s.TgZ(31,"p",23),s._uU(32),s.ALo(33,"translate"),s.qZA(),s.TgZ(34,"mat-checkbox",24),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).readSelf=e}),s.qZA(),s.TgZ(35,"mat-checkbox",25),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).writeSelf=e}),s.qZA(),s.qZA(),s.TgZ(36,"div",22),s.TgZ(37,"p",23),s._uU(38),s.ALo(39,"translate"),s.qZA(),s.TgZ(40,"mat-checkbox",26),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).readSelfPublic=e}),s.qZA(),s.TgZ(41,"mat-checkbox",25),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).writeSelfPublic=e}),s.qZA(),s.qZA(),s.TgZ(42,"div",22),s.TgZ(43,"p",23),s._uU(44),s.ALo(45,"translate"),s.qZA(),s.TgZ(46,"mat-checkbox",27),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).readSelfVo=e}),s.qZA(),s.TgZ(47,"mat-checkbox",25),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).writeSelfVo=e}),s.qZA(),s.qZA(),s.TgZ(48,"div",22),s.TgZ(49,"p",23),s._uU(50),s.ALo(51,"translate"),s.qZA(),s.TgZ(52,"mat-checkbox",28),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).readVo=e}),s.qZA(),s.TgZ(53,"mat-checkbox",25),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).writeVo=e}),s.qZA(),s.qZA(),s.TgZ(54,"div",22),s.TgZ(55,"p",23),s._uU(56),s.ALo(57,"translate"),s.qZA(),s.TgZ(58,"mat-checkbox",29),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).readGroup=e}),s.qZA(),s.TgZ(59,"mat-checkbox",25),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).writeGroup=e}),s.qZA(),s.qZA(),s.TgZ(60,"div",22),s.TgZ(61,"p",23),s._uU(62),s.ALo(63,"translate"),s.qZA(),s.TgZ(64,"mat-checkbox",27),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).readFacility=e}),s.qZA(),s.TgZ(65,"mat-checkbox",25),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).writeFacility=e}),s.qZA(),s.qZA(),s.TgZ(66,"div",30),s.TgZ(67,"p"),s._uU(68),s.ALo(69,"translate"),s.qZA(),s._UZ(70,"app-services-list",31),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(2);s.xp6(3),s.s9C("placeholder",s.lcZ(4,35,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),s.Q6J("ngModel",t.attDef.displayName),s.xp6(2),s.Q6J("ngIf",""===t.attDef.displayName),s.xp6(4),s.s9C("placeholder",s.lcZ(10,37,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DESCRIPTION")),s.Q6J("ngModel",t.attDef.description),s.xp6(3),s.Q6J("ngIf",""===t.attDef.description),s.xp6(4),s.Oqu(s.lcZ(17,39,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.UNIQUE")),s.xp6(4),s.s9C("matTooltip",s.lcZ(21,41,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.TOOLTIP_UNIQUE")),s.Q6J("matTooltipDisabled",!t.disableUniqueToggle())("disabled",t.disableUniqueToggle())("ngModel",t.attDef.unique),s.xp6(5),s.Oqu(s.lcZ(26,43,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.READ")),s.xp6(3),s.Oqu(s.lcZ(29,45,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.WRITE")),s.xp6(4),s.Oqu(s.lcZ(33,47,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF")),s.xp6(2),s.Q6J("ngModel",t.readSelf),s.xp6(1),s.Q6J("ngModel",t.writeSelf),s.xp6(3),s.Oqu(s.lcZ(39,49,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_PUBLIC")),s.xp6(2),s.Q6J("ngModel",t.readSelfPublic),s.xp6(1),s.Q6J("ngModel",t.writeSelfPublic),s.xp6(3),s.Oqu(s.lcZ(45,51,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_VO")),s.xp6(2),s.Q6J("ngModel",t.readSelfVo),s.xp6(1),s.Q6J("ngModel",t.writeSelfVo),s.xp6(3),s.Oqu(s.lcZ(51,53,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VO")),s.xp6(2),s.Q6J("ngModel",t.readVo),s.xp6(1),s.Q6J("ngModel",t.writeVo),s.xp6(3),s.Oqu(s.lcZ(57,55,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.GROUP")),s.xp6(2),s.Q6J("ngModel",t.readGroup),s.xp6(1),s.Q6J("ngModel",t.writeGroup),s.xp6(3),s.Oqu(s.lcZ(63,57,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FACILITY")),s.xp6(2),s.Q6J("ngModel",t.readFacility),s.xp6(1),s.Q6J("ngModel",t.writeFacility),s.xp6(3),s.Oqu(s.lcZ(69,59,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SERVICES")),s.xp6(2),s.Q6J("services",t.services)("displayedColumns",s.DdM(61,kt))("disableRouting",!0)}}function Zt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",32),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).switchShowKeys()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SHOW_KEYS")," "))}function Mt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"div",3),s.TgZ(2,"h1",4),s._uU(3),s.qZA(),s.YNc(4,It,1,0,"mat-spinner",5),s.YNc(5,Ct,71,62,"div",6),s.TgZ(6,"div",7),s.YNc(7,Zt,3,3,"button",8),s.TgZ(8,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCopy()}),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.TgZ(11,"button",10),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(12),s.ALo(13,"translate"),s.qZA(),s.TgZ(14,"button",11),s.NdJ("click",function(){return s.CHM(t),s.oxw().onSubmit()}),s.ALo(15,"translate"),s._uU(16),s.ALo(17,"translate"),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(3),s.Oqu(t.attDef.namespace+":"+t.attDef.friendlyName),s.xp6(1),s.Q6J("ngIf",t.loading),s.xp6(1),s.Q6J("ngIf",!t.loading),s.xp6(2),s.Q6J("ngIf","entityless"===t.attDef.entity),s.xp6(2),s.hij(" ",s.lcZ(10,10,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FOR_IMPORT")," "),s.xp6(3),s.hij(" ",s.lcZ(13,12,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.CANCEL")," "),s.xp6(2),s.s9C("matTooltip",s.lcZ(15,14,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.TOOLTIP_CONFIRM")),s.Q6J("disabled",t.disableConfirmButton()||t.loading)("matTooltipDisabled",!t.disableConfirmButton()),s.xp6(2),s.hij(" ",s.lcZ(17,16,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.CONFIRM")," ")}}function Ot(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"app-entityless-attribute-keys-list",33),s.NdJ("switchView",function(){return s.CHM(t),s.oxw().switchShowKeys()}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.Q6J("tableId",t.tableId)("attDef",t.attDef)}}let Lt=(()=>{class t{constructor(t,e,n,r,i,o,a,s){this.dialog=t,this.dialogRef=e,this.data=n,this.notificator=r,this.translate=i,this.clipboard=o,this.attributesManager=a,this.serviceService=s,this.showKeys=!1,this.activatedComponent="Edit",this.readSelf=!1,this.readSelfPublic=!1,this.readSelfVo=!1,this.readVo=!1,this.readGroup=!1,this.readFacility=!1,this.writeSelf=!1,this.writeSelfPublic=!1,this.writeSelfVo=!1,this.writeVo=!1,this.writeGroup=!1,this.writeFacility=!1,this.tableId=et.Wv,this.loading=!1}ngOnInit(){this.loading=!0,this.dialogRef.addPanelClass("mat-dialog-height-transition"),this.attDef=this.data.attDef,this.serviceService.getServicesByAttributeDefinition(this.attDef.id).subscribe(t=>{this.services=t,this.attributesManager.getAttributeRights(this.attDef.id).subscribe(t=>{this.fromRightsToCheckboxes(t),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}disableConfirmButton(){return""===this.attDef.displayName||""===this.attDef.description}disableUniqueToggle(){return this.attDef.namespace.includes("virt")||this.attDef.namespace.includes("core")||"entityless"===this.attDef.entity}onSubmit(){this.loading=!0,this.attributesManager.updateAttributeDefinition({attributeDefinition:this.attDef}).subscribe(t=>{this.attDef=t,this.attributesManager.setAttributeRights({rights:this.fromCheckboxesToRights()}).subscribe(()=>{this.translate.get("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}fromCheckboxesToRights(){const t=[],e={};e.attributeId=this.attDef.id,e.role=Z.u.SELF,e.rights=[],this.readSelf&&e.rights.push("READ"),this.readSelfPublic&&e.rights.push("READ_PUBLIC"),this.readSelfVo&&e.rights.push("READ_VO"),this.writeSelf&&e.rights.push("WRITE"),this.writeSelfPublic&&e.rights.push("WRITE_PUBLIC"),this.writeSelfVo&&e.rights.push("WRITE_VO"),t.push(e);const n={};n.attributeId=this.attDef.id,n.role=Z.u.VOADMIN,n.rights=[],this.readVo&&n.rights.push("READ"),this.writeVo&&n.rights.push("WRITE"),t.push(n);const r={};r.attributeId=this.attDef.id,r.role=Z.u.GROUPADMIN,r.rights=[],this.readGroup&&r.rights.push(b.Us.READ),this.writeGroup&&r.rights.push("WRITE"),t.push(r);const i={};return i.attributeId=this.attDef.id,i.role=Z.u.FACILITYADMIN,i.rights=[],this.readFacility&&i.rights.push("READ"),this.writeFacility&&i.rights.push("WRITE"),t.push(i),t}fromRightsToCheckboxes(t){for(const e of t)switch(e.role){case Z.u.SELF:e.rights.includes("READ")&&(this.readSelf=!0),e.rights.includes("READ_PUBLIC")&&(this.readSelfPublic=!0),e.rights.includes("READ_VO")&&(this.readSelfVo=!0),e.rights.includes("WRITE")&&(this.writeSelf=!0),e.rights.includes("WRITE_PUBLIC")&&(this.writeSelfPublic=!0),e.rights.includes("WRITE_VO")&&(this.writeSelfVo=!0);break;case Z.u.GROUPADMIN:e.rights.includes("READ")&&(this.readGroup=!0),e.rights.includes("WRITE")&&(this.writeGroup=!0);break;case Z.u.FACILITYADMIN:e.rights.includes("READ")&&(this.readFacility=!0),e.rights.includes("WRITE")&&(this.writeFacility=!0);break;case Z.u.VOADMIN:e.rights.includes("READ")&&(this.readVo=!0),e.rights.includes("WRITE")&&(this.writeVo=!0)}}switchShowKeys(){this.showKeys=!this.showKeys,this.showKeys?(this.dialogRef.updateSize("800px"),this.activatedComponent="Entityless"):(this.dialogRef.updateSize("700px"),this.activatedComponent="Edit")}onCopy(){const t={attributeDefinition:this.attDef,attributeRights:this.fromCheckboxesToRights()};this.clipboard.copy(JSON.stringify(t))?this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPIED")):this.notificator.showError(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FAILED"))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.uw),s.Y36(y.so),s.Y36(y.WI),s.Y36(w.V6),s.Y36(f.sK),s.Y36(ct.TU),s.Y36(b.H8),s.Y36(b.KK))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-edit-attribute-definition-dialog"]],viewQuery:function(t,e){if(1&t&&s.Gf(St,5),2&t){let t;s.iGM(t=s.CRH())&&(e.copiedToolTip=t.first)}},decls:4,vars:2,consts:[[1,"admin-theme"],[1,"parent"],[4,"ngIf"],[1,"width-650"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"mt-3"],["mat-flat-button","","class","ml-0",3,"click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],["mat-flat-button","","color","accent","matTooltipPosition","above",1,"ml-2",3,"disabled","matTooltip","matTooltipDisabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["matInput","","required","",1,"width-650",3,"ngModel","placeholder","ngModelChange"],["matInput","","cdkTextareaAutosize","","required","",1,"width-650",3,"ngModel","placeholder","ngModelChange"],[1,"d-flex","flex-row","mt-3"],[1,"pointer","ml-4",3,"click"],["color","accent","matTooltipPosition","above",1,"ml-2",3,"matTooltip","matTooltipDisabled","disabled","ngModel","ngModelChange"],[1,"d-flex","flex-row","mt-2"],[1,"ml-5","pl-4"],[1,"ml-4"],[1,"d-flex","flex-row"],[1,""],[1,"ml-5","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5",3,"ngModel","ngModelChange"],[1,"ml-3",3,"ngModel","ngModelChange"],[1,"ml-4","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5","pl-4",3,"ngModel","ngModelChange"],[1,"ml-4","pl-4",3,"ngModel","ngModelChange"],[1,"mt-4"],[3,"services","displayedColumns","disableRouting"],["mat-flat-button","",1,"ml-0",3,"click"],[3,"tableId","attDef","switchView"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.YNc(2,Mt,18,18,"div",2),s.YNc(3,Ot,2,2,"div",2),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.Q6J("ngIf",!e.showKeys),s.xp6(1),s.Q6J("ngIf",e.showKeys))},directives:[i.O5,y.uh,y.H8,x.lW,M.gM,E.$g,y.xY,O.KE,L.Nt,R.Fj,R.Q7,R.JJ,R.On,U.IC,q.Rr,F.oG,lt.Q,O.TO,At],pipes:[f.X$],styles:[".unique-toggle-label[_ngcontent-%COMP%]{font-size:1.125rem}.width-650[_ngcontent-%COMP%]{width:650px!important}.pointer[_ngcontent-%COMP%]{cursor:pointer}[_nghost-%COMP%]{overflow:hidden}.parent[_ngcontent-%COMP%]{display:flex}.parent[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{flex:1}textarea[cdktextareaautosize].mat-input-element[_ngcontent-%COMP%]{overflow:hidden}"],data:{animation:[ut.SG,ut.GH,ut.Ls]}}),t})(),Rt=(()=>{class t{transform(t){if(null===t)return null;const e=t;return e.substring(e.lastIndexOf(":")+1,e.length)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"nameSpaceToDef",type:t,pure:!0}),t})(),Ut=(()=>{class t{transform(t){if(null===t)return null;const e=t;return e.substring(e.lastIndexOf(".")+1,e.length)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"attributeTypeClean",type:t,pure:!0}),t})();function Pt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"th",19),s.TgZ(1,"mat-checkbox",20),s.NdJ("change",function(e){s.CHM(t);const n=s.oxw();return e?n.masterToggle():null}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function qt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",21),s.TgZ(1,"mat-checkbox",22),s.NdJ("change",function(e){const n=s.CHM(t).$implicit,r=s.oxw();return e?r.selection.toggle(n):null})("click",function(t){return t.stopPropagation()}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,n=s.oxw();s.xp6(1),s.Q6J("aria-label",n.checkboxLabel(t))("checked",n.selection.isSelected(t))}}function Ft(t,e){1&t&&(s.TgZ(0,"th",23),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_ID")))}function jt(t,e){if(1&t&&(s.TgZ(0,"td",24),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.id)}}function Yt(t,e){1&t&&(s.TgZ(0,"th",23),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_FRIENDLY_NAME")))}function Bt(t,e){if(1&t&&(s.TgZ(0,"td",25),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.friendlyName)}}function zt(t,e){1&t&&(s.TgZ(0,"th",23),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_ENTITY")))}function Gt(t,e){if(1&t&&(s.TgZ(0,"td",25),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.entity)}}function Jt(t,e){1&t&&(s.TgZ(0,"th",23),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_DEF")))}function Vt(t,e){if(1&t&&(s.TgZ(0,"td",25),s._uU(1),s.ALo(2,"nameSpaceToDef"),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(s.lcZ(2,1,t.namespace))}}function Ht(t,e){1&t&&(s.TgZ(0,"th",23),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_TYPE")))}function Qt(t,e){if(1&t&&(s.TgZ(0,"td",25),s._uU(1),s.ALo(2,"attributeTypeClean"),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(s.lcZ(2,1,t.type))}}function Wt(t,e){1&t&&(s.TgZ(0,"th",23),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_UNIQUE")))}function $t(t,e){if(1&t&&(s.TgZ(0,"td",25),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.unique)}}function Xt(t,e){1&t&&s._UZ(0,"tr",26)}function Kt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"tr",27),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().onRowClick(e)}),s.qZA()}if(2&t){const t=s.oxw();s.ekj("cursor-pointer",!t.disableRouting)}}function te(t,e){1&t&&(s.TgZ(0,"app-alert",28),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"ADMIN.ATTRIBUTES.NO_ATTRIBUTES"),"\n"))}function ee(t,e){1&t&&(s.TgZ(0,"app-alert",28),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let ne=(()=>{class t{constructor(t,e,n){this.dialog=t,this.authResolver=e,this.tableCheckbox=n,this.selection=new v.Ov(!0,[]),this.displayedColumns=["select","id","friendlyName","entity","namespace","type","unique"],this.disableRouting=!1,this.refreshEvent=new s.vpe,this.pageSizeOptions=tt.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new _.by(this.definitions),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"friendlyName":return t.friendlyName;case"entity":return t.entity;case"namespace":if(t.namespace){const e=t.namespace;return e.substring(e.lastIndexOf(":")+1,e.length)}return"";case"type":if(t.type){const e=t.type;return e.substring(e.lastIndexOf(".")+1,e.length)}return"";case"unique":return t.unique?"true":"false";default:return""}}exportData(t){(0,tt.O6)((0,tt.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filter=this.filterValue,this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(t,e)=>(0,tt.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,tt.pR)(t,e,this.getDataForColumn,this),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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}onRowClick(t){if(!this.disableRouting){const e=(0,tt.kZ)();e.width="700px",e.data={attDef:t},this.dialog.open(Lt,e).afterClosed().subscribe(t=>{t&&(this.selection.clear(),this.refreshEvent.emit())})}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.uw),s.Y36(w.x4),s.Y36(w.UA))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-attr-def-list"]],viewQuery:function(t,e){if(1&t&&(s.Gf(st.YE,7),s.Gf(tt.l9,7)),2&t){let t;s.iGM(t=s.CRH())&&(e.matSort=t.first),s.iGM(t=s.CRH())&&(e.child=t.first)}},inputs:{definitions:"definitions",selection:"selection",displayedColumns:"displayedColumns",filterValue:"filterValue",tableId:"tableId",disableRouting:"disableRouting"},outputs:{refreshEvent:"refreshEvent"},features:[s.TTD],decls:29,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],[1,"overflow-auto"],["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","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"],["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,"click"],["alert_type","warn"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)}),s.TgZ(2,"div",2),s.TgZ(3,"table",3),s.ynx(4,4),s.YNc(5,Pt,2,3,"th",5),s.YNc(6,qt,2,2,"td",6),s.BQk(),s.ynx(7,7),s.YNc(8,Ft,3,3,"th",8),s.YNc(9,jt,2,1,"td",9),s.BQk(),s.ynx(10,10),s.YNc(11,Yt,3,3,"th",8),s.YNc(12,Bt,2,1,"td",11),s.BQk(),s.ynx(13,12),s.YNc(14,zt,3,3,"th",8),s.YNc(15,Gt,2,1,"td",11),s.BQk(),s.ynx(16,13),s.YNc(17,Jt,3,3,"th",8),s.YNc(18,Vt,3,3,"td",11),s.BQk(),s.ynx(19,14),s.YNc(20,Ht,3,3,"th",8),s.YNc(21,Qt,3,3,"td",11),s.BQk(),s.ynx(22,15),s.YNc(23,Wt,3,3,"th",8),s.YNc(24,$t,2,1,"td",11),s.BQk(),s.YNc(25,Xt,1,0,"tr",16),s.YNc(26,Kt,1,2,"tr",17),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.YNc(27,te,3,3,"app-alert",18),s.YNc(28,ee,3,3,"app-alert",18)),2&t&&(s.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.definitions.length),s.xp6(1),s.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),s.xp6(2),s.Q6J("dataSource",e.dataSource),s.xp6(22),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===e.definitions.length),s.xp6(1),s.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.definitions.length))},directives:[ft.l,_.BZ,st.YE,_.w1,_.fO,_.Dz,_.as,_.nj,i.O5,_.ge,F.oG,_.ev,st.nU,_.XQ,_.Gk,T.w],pipes:[f.X$,Rt,Ut],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();function re(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",7),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCreate()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"ADMIN.ATTRIBUTES.CREATE")," "))}function ie(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",7),s.NdJ("click",function(){return s.CHM(t),s.oxw().onImport()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"ADMIN.ATTRIBUTES.IMPORT")," "))}function oe(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().onDelete()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selected.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"ADMIN.ATTRIBUTES.DELETE")," ")}}function ae(t,e){1&t&&s._UZ(0,"mat-spinner",9)}function se(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"app-attr-def-list",10),s.NdJ("refreshEvent",function(){return s.CHM(t),s.oxw().refreshTable()}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("tableId",t.tableId)("definitions",t.attrDefinitions)("selection",t.selected)("filterValue",t.filterValue)("disableRouting",!t.authResolver.isPerunAdmin())}}let ue=(()=>{class t{constructor(t,e,n){this.dialog=t,this.attributesManager=e,this.authResolver=n,this.attrDefinitions=[],this.selected=new v.Ov(!0,[]),this.filterValue="",this.tableId=et.uM}ngOnInit(){this.refreshTable()}onCreate(){const t=(0,tt.kZ)();t.width="500px",this.dialog.open(K,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onDelete(){const t=(0,tt.kZ)();t.width="450px",t.data={attributes:this.selected.selected,theme:"admin-theme"},this.dialog.open(C,t).afterClosed().subscribe(t=>{t&&(this.refreshTable(),this.selected.clear())})}refreshTable(){this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(t=>{this.attrDefinitions=t,this.loading=!1})}applyFilter(t){this.filterValue=t}onImport(){const t=(0,tt.kZ)();t.width="700px",this.dialog.open(it,t).afterClosed().subscribe(t=>{!0===t&&this.refreshTable()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.uw),s.Y36(b.H8),s.Y36(w.x4))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-admin-attributes"]],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("router-component",e.true)},decls:11,vars:9,consts:[[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,"tableId","definitions","selection","filterValue","disableRouting","refreshEvent",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,"tableId","definitions","selection","filterValue","disableRouting","refreshEvent"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.YNc(5,re,3,3,"button",2),s.YNc(6,ie,3,3,"button",2),s.YNc(7,oe,3,4,"button",3),s.TgZ(8,"perun-web-apps-immediate-filter",4),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.YNc(9,ae,1,0,"mat-spinner",5),s.YNc(10,se,1,5,"app-attr-def-list",6),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,7,"ADMIN.ATTRIBUTES.TITLE")),s.xp6(3),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("placeholder","ADMIN.ATTRIBUTES.SEARCH"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[ot.t,i.O5,at.L,x.lW,E.$g,ne],pipes:[f.X$],styles:[""]}),t})(),ce=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-admin-visualizer"]],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&s._UZ(0,"app-animated-router-outlet")},directives:[h.A],styles:[""]}),t})();var le=n(73180);let he=(()=>{class t{constructor(t){this.attributesManager=t}ngOnInit(){this.attributesManager.getAttributeModulesDependenciesGraphText("DOT").subscribe(t=>{const e=t.graph.replace("\\t","").replace("\\n","").replace("\\","");(0,le.graphviz)("#dependenciesGraph",{zoom:!1}).renderDot(e)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.H8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-visualizer-attr-modules"]],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("router-component",e.true)},decls:4,vars:3,consts:[[1,"page-subtitle"],["id","dependenciesGraph",1,"card"]],template:function(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s._UZ(3,"div",1)),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"ADMIN.VISUALIZER.ATTR_DEPENDENCIES.TITLE"),"\n"))},pipes:[f.X$],styles:["#dependenciesGraph[_ngcontent-%COMP%]{overflow-y:scroll}"]}),t})(),fe=(()=>{class t{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 t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-visualizer-overview"]],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("router-component",e.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s._UZ(1,"perun-web-apps-menu-buttons-field",0),s.qZA()),2&t&&(s.xp6(1),s.Q6J("items",e.items)("size","small"))},directives:[g.L],styles:[""]}),t})();var de=n(47701),pe=n(98720),ge=n(66599),me=n(44689),ve=n(70663),ye=n(40084),_e=n(54810);function we(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.Oqu(s.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_USER"))}function be(t,e){1&t&&s._UZ(0,"mat-spinner",17),2&t&&s.Q6J("diameter",20)("strokeWidth",2)}function xe(t,e){if(1&t&&(s.TgZ(0,"mat-option",18),s.TgZ(1,"span",19),s._uU(2),s.qZA(),s._uU(3),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t.firstName+" "+t.lastName),s.xp6(2),s.hij("#",t.id,""),s.xp6(1),s.AsE(" ",t.firstName," ",t.lastName," ")}}function Ee(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.Oqu(s.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_DESTINATION"))}function Te(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.Oqu(s.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_SERVICE"))}function Ae(t,e){if(1&t&&(s.TgZ(0,"mat-radio-button",20),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.hij(" ",t," ")}}let Se=(()=>{class t{constructor(t,e,n,r,i,o){this.usersService=t,this.translate=e,this.facilityManager=n,this.serviceService=r,this.router=i,this.notificator=o,this.searchField=new R.NI,this.chosenService="",this.availableServices=[],this.loading=!1,this.destination=""}ngOnInit(){this.searchField.setValue(""),this.users=this.searchField.valueChanges.pipe((0,de.b)(400),(0,pe.x)(),(0,ge.b)(()=>this.loading=!0),(0,me.w)(t=>this.usersService.findUsers(t)),(0,ge.b)(()=>this.loading=!1)),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.SELECT_NO_SERVICE").subscribe(t=>{this.noServiceText=t,this.availableServices.push(this.noServiceText)})}validateName(t){""!==this.searchField.value?this.usersService.findUsers(this.searchField.value).subscribe(e=>{for(const n of e){if((n.firstName+" "+n.lastName).toLowerCase()===this.searchField.value.toLowerCase()){this.selectedUser=n,t.selected.completed=!0,t.next();break}this.selectedUser=null}this.selectedUser||this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_WRONG_NAME").subscribe(t=>{this.notificator.showError(t)})}):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NO_NAME").subscribe(t=>{this.notificator.showError(t)})}validateDestination(t){""!==this.destination?(this.availableServices=[],this.availableServices.push(this.noServiceText),this.chosenService="",this.facilityManager.getFacilitiesByDestination(this.destination).subscribe(e=>{if(0!==e.length){t.selected.completed=!0,t.next();for(const t of e)this.serviceService.getAllRichDestinationsForFacility(t.id).subscribe(t=>{for(const e of t)e.destination===this.destination&&-1===this.availableServices.indexOf(e.service.name)&&this.availableServices.push(e.service.name)})}else this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_WRONG_DESTINATION").subscribe(t=>{this.notificator.showError(t)})})):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NO_DESTINATION").subscribe(t=>{this.notificator.showError(t)})}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(t=>{this.notificator.showError(t)})}notCompleted(t){t.selected.completed=!1}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.Fv),s.Y36(f.sK),s.Y36(b.IQ),s.Y36(b.KK),s.Y36(o.F0),s.Y36(w.V6))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-user-destination-relationship"]],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("router-component",e.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","ngModelChange","keydown.enter"],["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","ngModelChange","keydown.enter"],["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(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"mat-vertical-stepper",2,3),s.TgZ(6,"mat-step",4),s.YNc(7,we,2,3,"ng-template",5),s.TgZ(8,"mat-form-field",6),s.TgZ(9,"input",7),s.NdJ("ngModelChange",function(){s.CHM(t);const n=s.MAs(5);return e.notCompleted(n)})("keydown.enter",function(){s.CHM(t);const n=s.MAs(5);return e.validateName(n)}),s.ALo(10,"translate"),s.qZA(),s.YNc(11,be,1,2,"mat-spinner",8),s.TgZ(12,"mat-hint",9),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.TgZ(15,"mat-autocomplete",null,10),s.YNc(17,xe,4,4,"mat-option",11),s.ALo(18,"async"),s.qZA(),s.qZA(),s.TgZ(19,"div"),s.TgZ(20,"button",12),s.NdJ("click",function(){s.CHM(t);const n=s.MAs(5);return e.validateName(n)}),s._uU(21),s.ALo(22,"translate"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(23,"mat-step",4),s.YNc(24,Ee,2,3,"ng-template",5),s.TgZ(25,"mat-form-field",6),s.TgZ(26,"input",13),s.NdJ("ngModelChange",function(t){return e.destination=t})("ngModelChange",function(){s.CHM(t);const n=s.MAs(5);return e.notCompleted(n)})("keydown.enter",function(){s.CHM(t);const n=s.MAs(5);return e.validateDestination(n)}),s.ALo(27,"translate"),s.qZA(),s.qZA(),s.TgZ(28,"div"),s.TgZ(29,"button",14),s._uU(30),s.ALo(31,"translate"),s.qZA(),s.TgZ(32,"button",12),s.NdJ("click",function(){s.CHM(t);const n=s.MAs(5);return e.validateDestination(n)}),s._uU(33),s.ALo(34,"translate"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(35,"mat-step"),s.YNc(36,Te,2,3,"ng-template",5),s.TgZ(37,"mat-radio-group",15),s.NdJ("ngModelChange",function(t){return e.chosenService=t}),s.YNc(38,Ae,2,2,"mat-radio-button",16),s.qZA(),s.TgZ(39,"div"),s.TgZ(40,"button",14),s._uU(41),s.ALo(42,"translate"),s.qZA(),s.TgZ(43,"button",12),s.NdJ("click",function(){return e.getGraph()}),s._uU(44),s.ALo(45,"translate"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.MAs(16);s.xp6(2),s.hij(" ",s.lcZ(3,16,"ADMIN.VISUALIZER.USER_DESTINATION.TITLE")," "),s.xp6(7),s.s9C("placeholder",s.lcZ(10,18,"ADMIN.VISUALIZER.USER_DESTINATION.USER_EXAMPLE")),s.Q6J("formControl",e.searchField)("matAutocomplete",t),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(2),s.Oqu(s.lcZ(14,20,"ADMIN.VISUALIZER.USER_DESTINATION.USER_HINT")),s.xp6(4),s.Q6J("ngForOf",s.lcZ(18,22,e.users)),s.xp6(4),s.hij(" ",s.lcZ(22,24,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_NEXT")," "),s.xp6(5),s.s9C("placeholder",s.lcZ(27,26,"ADMIN.VISUALIZER.USER_DESTINATION.DESTINATION_EXAMPLE")),s.Q6J("ngModel",e.destination),s.xp6(4),s.hij(" ",s.lcZ(31,28,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_BACK")," "),s.xp6(3),s.hij(" ",s.lcZ(34,30,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_NEXT")," "),s.xp6(4),s.Q6J("ngModel",e.chosenService),s.xp6(1),s.Q6J("ngForOf",e.availableServices),s.xp6(3),s.hij(" ",s.lcZ(42,32,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_BACK")," "),s.xp6(3),s.hij(" ",s.lcZ(45,34,"ADMIN.VISUALIZER.USER_DESTINATION.SUBMIT_BUTTON")," ")}},directives:[ve.Vq,ve.C0,ve.VY,O.KE,L.Nt,R.Fj,ye.ZL,R.JJ,R.oH,i.O5,O.bx,ye.XC,i.sg,x.lW,R.On,ve.fd,_e.VQ,E.$g,O.R9,j.ey,_e.U0],pipes:[f.X$,i.Ov],styles:[""]}),t})();var Ie=n(64762);function De(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Ne(t){this._context=t}function ke(t,e){this._basis=new Ne(t),this._beta=e}Ne.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:De(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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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:De(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ke.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],o=e[0],a=t[n]-i,s=e[n]-o,u=-1;++u<=n;)this._basis.point(this._beta*t[u]+(1-this._beta)*(i+(r=u/n)*a),this._beta*e[u]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Ce=function t(e){function n(t){return 1===e?new Ne(t):new ke(t,e)}return n.beta=function(e){return t(+e)},n}(.85),Ze=n(55959);function Me(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function Oe(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}var Le=n(10709),Re=n(26899),Ue=n(87254),Pe=n(41036),qe=(n(92711),n(64641)),Fe=(n(8634),n(3031));function je(t){return{type:t}}function Ye(t,e){return te?1:t>=e?0:NaN}function Be(t){let e=t,n=t;function r(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;n(t[o],e)<0?r=o+1:i=o}return r}return 1===t.length&&(e=(e,n)=>t(e)-n,n=function(t){return(e,n)=>Ye(t(e),n)}(t)),{left:r,center:function(t,n,i,o){null==i&&(i=0),null==o&&(o=t.length);const a=r(t,n,i,o-1);return a>i&&e(t[a-1],n)>-e(t[a],n)?a-1:a},right:function(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;n(t[o],e)>0?i=o:r=o+1}return r}}}n(45161),n(38337),n(82159),["w","e"].map(je),["n","s"].map(je),["n","w","e","s","nw","ne","sw","se"].map(je);var ze=Math.sqrt(50),Ge=Math.sqrt(10),Je=Math.sqrt(2);function Ve(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=ze?10:o>=Ge?5:o>=Je?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=ze?10:o>=Ge?5:o>=Je?2:1)}function He(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=ze?i*=10:o>=Ge?i*=5:o>=Je&&(i*=2),e0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(i.count=function(e,r){return Qe.setTime(+e),We.setTime(+r),t(Qe),t(We),Math.floor(n(Qe,We))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var Xe=$e(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});Xe.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?$e(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):Xe:null};var Ke=Xe,tn=$e(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+1e3*e)},function(t,e){return(e-t)/1e3},function(t){return t.getUTCSeconds()}),en=$e(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},function(t,e){t.setTime(+t+6e4*e)},function(t,e){return(e-t)/6e4},function(t){return t.getMinutes()}),nn=$e(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getHours()}),rn=$e(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5,t=>t.getDate()-1);function on(t){return $e(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5})}var an=on(0),sn=(on(1),on(2),on(3),on(4),on(5),on(6),$e(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()})),un=$e(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});un.every=function(t){return isFinite(t=Math.floor(t))&&t>0?$e(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};var cn=un,ln=$e(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+6e4*e)},function(t,e){return(e-t)/6e4},function(t){return t.getUTCMinutes()}),hn=$e(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getUTCHours()}),fn=$e(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1});function dn(t){return $e(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/6048e5})}var pn=dn(0),gn=(dn(1),dn(2),dn(3),dn(4),dn(5),dn(6),$e(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()})),mn=$e(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});mn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?$e(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var vn=mn;function yn(t,e,n,r,i,o){const a=[[tn,1,1e3],[tn,5,5e3],[tn,15,15e3],[tn,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function s(e,n,r){const i=Math.abs(n-e)/r,o=Be(([,,t])=>t).right(a,i);if(o===a.length)return t.every(He(e/31536e6,n/31536e6,r));if(0===o)return Ke.every(Math.max(He(e,n,r),1));const[s,u]=a[i/a[o-1][2]0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(i.count=function(e,r){return En.setTime(+e),Tn.setTime(+r),t(En),t(Tn),Math.floor(n(En,Tn))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}function Sn(t){return An(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/6048e5})}var In=Sn(0),Dn=Sn(1),Nn=(Sn(2),Sn(3),Sn(4)),kn=(Sn(5),Sn(6),An(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1}));function Cn(t){return An(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5})}var Zn=Cn(0),Mn=Cn(1),On=(Cn(2),Cn(3),Cn(4)),Ln=(Cn(5),Cn(6),An(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5},function(t){return t.getDate()-1})),Rn=An(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Rn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?An(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};var Un=Rn,Pn=An(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});Pn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?An(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var qn=Pn;var Fn={"-":"",_:" ",0:"0"},jn=/[\\^$*+?|[\]().{}]/g;function Yn(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o=4||0===n?On(t):On.ceil(t),Yn(On.count(Un(t),t)+(4===Un(t).getDay()),e,2)}function ir(t){return t.getDay()}function or(t,e){return Yn(Mn.count(Un(t)-1,t),e,2)}function ar(t,e){return Yn(t.getFullYear()%100,e,2)}function sr(t,e){return Yn(t.getFullYear()%1e4,e,4)}function ur(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Yn(e/60|0,"0",2)+Yn(e%60,"0",2)}function cr(t,e){return Yn(t.getUTCDate(),e,2)}function lr(t,e){return Yn(t.getUTCHours(),e,2)}function hr(t,e){return Yn(t.getUTCHours()%12||12,e,2)}function fr(t,e){return Yn(1+kn.count(qn(t),t),e,3)}function dr(t,e){return Yn(t.getUTCMilliseconds(),e,3)}function pr(t,e){return dr(t,e)+"000"}function gr(t,e){return Yn(t.getUTCMonth()+1,e,2)}function mr(t,e){return Yn(t.getUTCMinutes(),e,2)}function vr(t,e){return Yn(t.getUTCSeconds(),e,2)}function yr(t){var e=t.getUTCDay();return 0===e?7:e}function _r(t,e){return Yn(In.count(qn(t)-1,t),e,2)}function wr(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Nn(t):Nn.ceil(t),Yn(Nn.count(qn(t),t)+(4===qn(t).getUTCDay()),e,2)}function br(t){return t.getUTCDay()}function xr(t,e){return Yn(Dn.count(qn(t)-1,t),e,2)}function Er(t,e){return Yn(t.getUTCFullYear()%100,e,2)}function Tr(t,e){return Yn(t.getUTCFullYear()%1e4,e,4)}function Ar(){return"+0000"}function Sr(){return"%"}function Ir(t){return+t}function Dr(t){return Math.floor(+t/1e3)}function Nr(t){return null===t?NaN:+t}!function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,u=t.shortMonths,c=(zn(i),Gn(i),zn(o),Gn(o),zn(a),Gn(a),zn(s),Gn(s),zn(u),Gn(u),{a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:Jn,e:Jn,f:$n,H:Vn,I:Hn,j:Qn,L:Wn,m:Xn,M:Kn,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Ir,s:Dr,S:tr,u:er,U:nr,V:rr,w:ir,W:or,x:null,X:null,y:ar,Y:sr,Z:ur,"%":Sr}),l={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:cr,e:cr,f:pr,H:lr,I:hr,j:fr,L:dr,m:gr,M:mr,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Ir,s:Dr,S:vr,u:yr,U:_r,V:wr,w:br,W:xr,x:null,X:null,y:Er,Y:Tr,Z:Ar,"%":Sr};function h(t,e){return function(n){var r,i,o,a=[],s=-1,u=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s(e=a[u-1])&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),r=u>2?qr:Pr,i=o=null,h}function h(e){return null==e||isNaN(e=+e)?n:(i||(i=r(a.map(t),s,u)))(t(c(e)))}return h.invert=function(n){return c(e((o||(o=r(s,a.map(t),Zr.Z)))(n)))},h.domain=function(t){return arguments.length?(a=Array.from(t,Or),l()):a.slice()},h.range=function(t){return arguments.length?(s=Array.from(t),l()):s.slice()},h.rangeRound=function(t){return s=Array.from(t),u=Mr.Z,l()},h.clamp=function(t){return arguments.length?(c=!!t||Rr,l()):c!==Rr},h.interpolate=function(t){return arguments.length?(u=t,l()):u},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,l()}}()(Rr,Rr)}function Yr(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var Br=n(93116),zr=n(65636),Gr=n(3712),Jr=n(3218),Vr=n(22233);function Hr(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){var r,i,o,a,s=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e0){let n=Math.round(t/a),r=Math.round(e/a);for(n*ae&&--r,o=new Array(i=r-n+1);++se&&--r,o=new Array(i=r-n+1);++s0;){if((i=Ve(u,c,n))===r)return o[a]=u,o[s]=c,e(o);if(i>0)u=Math.floor(u/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;u=Math.ceil(u*i)/i,c=Math.floor(c*i)/i}r=i}return t},t}function Qr(){var t=jr();return t.copy=function(){return Fr(t,Qr())},Yr.apply(t,arguments),Hr(t)}function Wr(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}}function ei(){var t,e=[],n=[],r=[];function i(){var t=0,i=Math.max(1,n.length);for(r=new Array(i-1);++t0?r[i-1]:e[0],i=0;)e+=n[r].value;else e=1;t.value=e}function mi(t,e){var n,r,i,o,a,s=new wi(t),u=+t.value&&(s.value=t.value),c=[s];for(null==e&&(e=vi);n=c.pop();)if(u&&(n.value=+n.data.value),(i=e(n.data))&&(a=i.length))for(n.children=new Array(a),o=a-1;o>=0;--o)c.push(r=n.children[o]=new wi(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(_i)}function vi(t){return t.children}function yi(t){t.data=t.data.data}function _i(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function wi(t){this.data=t,this.depth=this.height=0,this.parent=null}li.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ci(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:ci(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new li(t,e)}return n.tension=function(e){return t(+e)},n}(0),hi.prototype={areaStart:ui,areaEnd:ui,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:ci(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new hi(t,e)}return n.tension=function(e){return t(+e)},n}(0),fi.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}},Math,Math,Math,Math,Math,Math,Math,Math,n(12314),function t(e){function n(t,n,r,i,o){!function(t,e,n,r,i,o){for(var a,s,u,c,l,h,f,d,p,g,m,v=[],y=e.children,_=0,w=0,b=y.length,x=e.value;_f&&(f=s),m=l*l*g,(d=Math.max(f/m,m/h))>p){l-=s;break}p=d}v.push(a={value:l,dice:u1?e:1)},n}((1+Math.sqrt(5))/2),wi.prototype=mi.prototype={constructor:wi,count:function(){return this.eachAfter(gi)},each:function(t){var e,n,r,i,o=this,a=[o];do{for(e=a.reverse(),a=[];o=e.pop();)if(t(o),n=o.children)for(r=0,i=n.length;r=0;--n)i.push(e[n]);return this},sum:function(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)r.push(e=e.parent);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each(function(e){t.push(e)}),t},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e},copy:function(){return mi(this).eachBefore(yi)}};var bi=n(30269);const xi=["caretElm"];function Ei(t,e){}const Ti=function(t){return{model:t}};function Ai(t,e){if(1&t&&(s.TgZ(0,"span"),s.YNc(1,Ei,0,0,"ng-template",5),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngTemplateOutlet",t.template)("ngTemplateOutletContext",s.VKq(2,Ti,t.context))}}function Si(t,e){if(1&t&&s._UZ(0,"span",6),2&t){const t=s.oxw();s.Q6J("innerHTML",t.title,s.oJD)}}function Ii(t,e){if(1&t&&(s.O4$(),s.kcU(),s._UZ(0,"ngx-charts-scale-legend",4)),2&t){const t=s.oxw();s.Q6J("horizontal",t.legendOptions&&"below"===t.legendOptions.position)("valueRange",t.legendOptions.domain)("colors",t.legendOptions.colors)("height",t.view[1])("width",t.legendWidth)}}function Di(t,e){if(1&t){const t=s.EpF();s.O4$(),s.kcU(),s.TgZ(0,"ngx-charts-legend",5),s.NdJ("labelClick",function(e){return s.CHM(t),s.oxw().legendLabelClick.emit(e)})("labelActivate",function(e){return s.CHM(t),s.oxw().legendLabelActivate.emit(e)})("labelDeactivate",function(e){return s.CHM(t),s.oxw().legendLabelDeactivate.emit(e)}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("horizontal",t.legendOptions&&"below"===t.legendOptions.position)("data",t.legendOptions.domain)("title",t.legendOptions.title)("colors",t.legendOptions.colors)("height",t.view[1])("width",t.legendWidth)("activeEntries",t.activeEntries)}}const Ni=["*"];function ki(t,e){if(1&t&&(s.TgZ(0,"header",4),s.TgZ(1,"span",5),s._uU(2),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.Oqu(t.title)}}function Ci(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"li",6),s.TgZ(1,"ngx-charts-legend-entry",7),s.NdJ("select",function(e){return s.CHM(t),s.oxw().labelClick.emit(e)})("activate",function(e){return s.CHM(t),s.oxw().activate(e)})("deactivate",function(e){return s.CHM(t),s.oxw().deactivate(e)}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,n=s.oxw();s.xp6(1),s.Q6J("label",t.label)("formattedLabel",t.formattedLabel)("color",t.color)("isActive",n.isActive(t))}}let Zi=(()=>{class t{constructor(t,e,n){this.applicationRef=t,this.componentFactoryResolver=e,this.injector=n}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.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(t){this._container=t}getComponentRootNode(t){return t.element?t.element.nativeElement:t.hostView&&t.hostView.rootNodes.length>0?t.hostView.rootNodes[0]:t.location.nativeElement}getRootViewContainerNode(t){return this.getComponentRootNode(t)}projectComponentBindings(t,e){if(e){if(void 0!==e.inputs){const n=Object.getOwnPropertyNames(e.inputs);for(const r of n)t.instance[r]=e.inputs[r]}if(void 0!==e.outputs){const n=Object.getOwnPropertyNames(e.outputs);for(const r of n)t.instance[r]=e.outputs[r]}}return t}appendComponent(t,e={},n){n||(n=this.getRootViewContainer());const r=this.getComponentRootNode(n),i=new Re.F0(r,this.componentFactoryResolver,this.applicationRef,this.injector),o=new Re.C5(t),a=i.attach(o);return this.projectComponentBindings(a,e),a}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.z2F),s.LFG(s._Vd),s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function Mi(t,e,n){let r,i,o;n=n||{};let a=null,s=0;function u(){s=!1===n.leading?0:+new Date,a=null,o=t.apply(r,i)}return function(){const c=+new Date;s||!1!==n.leading||(s=c);const l=e-(c-s);return r=this,i=arguments,l<=0?(clearTimeout(a),a=null,s=c,o=t.apply(r,i)):a||!1===n.trailing||(a=setTimeout(u,l)),o}}var Oi=function(t){return t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right",t}({});function Li(t,e,n){return"top"===n?t.top-7:"bottom"===n?t.top+t.height-e.height+7:"center"===n?t.top+t.height/2-e.height/2:void 0}function Ri(t,e,n){return"left"===n?t.left-7:"right"===n?t.left+t.width-e.width+7:"center"===n?t.left+t.width/2-e.width/2:void 0}class Ui{static calculateVerticalAlignment(t,e,n){let r=Li(t,e,n);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r}static calculateVerticalCaret(t,e,n,r){let i;"top"===r&&(i=t.height/2-n.height/2+7),"bottom"===r&&(i=e.height-t.height/2-n.height/2-7),"center"===r&&(i=e.height/2-n.height/2);const o=Li(t,e,r);return o+e.height>window.innerHeight&&(i+=o+e.height-window.innerHeight),i}static calculateHorizontalAlignment(t,e,n){let r=Ri(t,e,n);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r}static calculateHorizontalCaret(t,e,n,r){let i;"left"===r&&(i=t.width/2-n.width/2+7),"right"===r&&(i=e.width-t.width/2-n.width/2-7),"center"===r&&(i=e.width/2-n.width/2);const o=Ri(t,e,r);return o+e.width>window.innerWidth&&(i+=o+e.width-window.innerWidth),i}static shouldFlip(t,e,n,r){let i=!1;return"right"===n&&t.left+t.width+e.width+r>window.innerWidth&&(i=!0),"left"===n&&t.left-e.width-r<0&&(i=!0),"top"===n&&t.top-e.height-r<0&&(i=!0),"bottom"===n&&t.top+t.height+e.height+r>window.innerHeight&&(i=!0),i}static positionCaret(t,e,n,r,i){let o=0,a=0;return t===Oi.right?(a=-7,o=Ui.calculateVerticalCaret(n,e,r,i)):t===Oi.left?(a=e.width,o=Ui.calculateVerticalCaret(n,e,r,i)):t===Oi.top?(o=e.height,a=Ui.calculateHorizontalCaret(n,e,r,i)):t===Oi.bottom&&(o=-7,a=Ui.calculateHorizontalCaret(n,e,r,i)),{top:o,left:a}}static positionContent(t,e,n,r,i){let o=0,a=0;return t===Oi.right?(a=n.left+n.width+r,o=Ui.calculateVerticalAlignment(n,e,i)):t===Oi.left?(a=n.left-e.width-r,o=Ui.calculateVerticalAlignment(n,e,i)):t===Oi.top?(o=n.top-e.height-r,a=Ui.calculateHorizontalAlignment(n,e,i)):t===Oi.bottom&&(o=n.top+n.height+r,a=Ui.calculateHorizontalAlignment(n,e,i)),{top:o,left:a}}static determinePlacement(t,e,n,r){if(Ui.shouldFlip(n,e,t,r)){if(t===Oi.right)return Oi.left;if(t===Oi.left)return Oi.right;if(t===Oi.top)return Oi.bottom;if(t===Oi.bottom)return Oi.top}return t}}let Pi,qi=(()=>{class t{constructor(t,e){this.element=t,this.renderer=e}get cssClasses(){let t="ngx-charts-tooltip-content";return t+=` position-${this.placement}`,t+=` type-${this.type}`,t+=` ${this.cssClass}`,t}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){const t=this.element.nativeElement,e=this.host.nativeElement.getBoundingClientRect();if(!e.height&&!e.width)return;const n=t.getBoundingClientRect();this.checkFlip(e,n),this.positionContent(t,e,n),this.showCaret&&this.positionCaret(e,n),setTimeout(()=>this.renderer.addClass(t,"animate"),1)}positionContent(t,e,n){const{top:r,left:i}=Ui.positionContent(this.placement,n,e,this.spacing,this.alignment);this.renderer.setStyle(t,"top",`${r}px`),this.renderer.setStyle(t,"left",`${i}px`)}positionCaret(t,e){const n=this.caretElm.nativeElement,r=n.getBoundingClientRect(),{top:i,left:o}=Ui.positionCaret(this.placement,e,t,r,this.alignment);this.renderer.setStyle(n,"top",`${i}px`),this.renderer.setStyle(n,"left",`${o}px`)}checkFlip(t,e){this.placement=Ui.determinePlacement(this.placement,e,t,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.Qsj))},t.\u0275cmp=s.Xpm({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(t,e){if(1&t&&s.Gf(xi,5),2&t){let t;s.iGM(t=s.CRH())&&(e.caretElm=t.first)}},hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("resize",function(){return e.onWindowResize()},!1,s.Jf7),2&t&&s.Tol(e.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",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(t,e){1&t&&(s.TgZ(0,"div"),s._UZ(1,"span",0,1),s.TgZ(3,"div",2),s.YNc(4,Ai,2,4,"span",3),s.YNc(5,Si,1,1,"span",4),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Gre("tooltip-caret position-",e.placement,""),s.Q6J("hidden",!e.showCaret),s.xp6(3),s.Q6J("ngIf",!e.title),s.xp6(1),s.Q6J("ngIf",e.title))},directives:[i.O5,i.tP],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.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{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),Me([(100,function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:Mi(n.value,100,undefined)}),this[e]}}})],t.prototype,"onWindowResize",null),t})(),Fi=(()=>{class t extends class{constructor(t){this.injectionService=t,this.defaults={},this.components=new Map}getByType(t=this.type){return this.components.get(t)}create(t){return this.createByType(this.type,t)}createByType(t,e){e=this.assignDefaults(e);const n=this.injectComponent(t,e);return this.register(t,n),n}destroy(t){const e=this.components.get(t.componentType);if(e&&e.length){const n=e.indexOf(t);n>-1&&(e[n].destroy(),e.splice(n,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(t){const e=this.components.get(t);if(e&&e.length){let t=e.length-1;for(;t>=0;)this.destroy(e[t--])}}injectComponent(t,e){return this.injectionService.appendComponent(t,e)}assignDefaults(t){const e=Object.assign({},this.defaults.inputs),n=Object.assign({},this.defaults.outputs);return t.inputs||t.outputs||(t={inputs:t}),e&&(t.inputs=Object.assign(Object.assign({},e),t.inputs)),n&&(t.outputs=Object.assign(Object.assign({},n),t.outputs)),t}register(t,e){this.components.has(t)||this.components.set(t,[]),this.components.get(t).push(e)}}{constructor(t){super(t),this.type=qi}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Zi))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),ji=(()=>{class t{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new s.vpe,this.legendLabelActivate=new s.vpe,this.legendLabelDeactivate=new s.vpe}ngOnChanges(t){this.update()}update(){let t=0;this.showLegend&&(this.legendType=this.getLegendType(),this.legendOptions&&"right"!==this.legendOptions.position||(t="scaleLegend"===this.legendType?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-t)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:Math.floor(this.view[0]*t/12)}getLegendType(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",data:"data",legendData:"legendData",colors:"colors",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[s._Bn([Fi]),s.TTD],ngContentSelectors:Ni,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.O4$(),s.TgZ(1,"svg",1),s.Hsn(2),s.qZA(),s.YNc(3,Ii,1,5,"ngx-charts-scale-legend",2),s.YNc(4,Di,1,7,"ngx-charts-legend",3),s.qZA()),2&t&&(s.Udp("width",e.view[0],"px"),s.Q6J("@animationState","active")("@.disabled",!e.animations),s.xp6(1),s.uIk("width",e.chartWidth)("height",e.view[1]),s.xp6(2),s.Q6J("ngIf",e.showLegend&&"scaleLegend"===e.legendType),s.xp6(1),s.Q6J("ngIf",e.showLegend&&"legend"===e.legendType))},directives:function(){return[i.O5,Qi,Vi]},encapsulation:2,data:{animation:[(0,Le.X$)("animationState",[(0,Le.eR)(":enter",[(0,Le.oB)({opacity:0}),(0,Le.jt)("500ms 100ms",(0,Le.oB)({opacity:1}))])])]},changeDetection:0}),t})(),Yi=(()=>{class t{constructor(t,e){this.element=t,this.zone=e,this.visible=new s.vpe,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const t=()=>{if(!this.element)return;const{offsetHeight:e,offsetWidth:n}=this.element.nativeElement;e&&n?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>t(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>t())})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b))},t.\u0275dir=s.lG2({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t})(),Bi=(()=>{class t{constructor(t,e,n){this.chartElement=t,this.zone=e,this.cd=n,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new s.vpe}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new Yi(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(t){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const t=this.getContainerDims();t&&(this.width=t.width,this.height=t.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 t,e;const n=this.chartElement.nativeElement;if(null!==n.parentNode){const r=n.parentNode.getBoundingClientRect();t=r.width,e=r.height}return t&&e?{width:t,height:e}:null}formatDates(){for(let t=0;t{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=t}cloneData(t){const e=[];for(const n of t){const t={name:n.name};if(void 0!==n.value&&(t.value=n.value),void 0!==n.series){t.series=[];for(const e of n.series){const n=Object.assign({},e);t.series.push(n)}}void 0!==n.extra&&(t.extra=JSON.parse(JSON.stringify(n.extra))),e.push(t)}return e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(s.sBO))},t.\u0275cmp=s.Xpm({type:t,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[s.TTD],decls:1,vars:0,template:function(t,e){1&t&&s._UZ(0,"div")},encapsulation:2}),t})(),zi=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[i.ez]]}),t})(),Gi=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Zi,Fi],imports:[[i.ez]]}),t})();function Ji(t){return t instanceof Date?t.toLocaleDateString():t.toLocaleString()}"undefined"!=typeof window?Pi=window:"undefined"!=typeof global&&(Pi=global);let Vi=(()=>{class t{constructor(t){this.cd=t,this.horizontal=!1,this.labelClick=new s.vpe,this.labelActivate=new s.vpe,this.labelDeactivate=new s.vpe,this.legendEntries=[]}ngOnChanges(t){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const t=[];for(const e of this.data){const n=Ji(e);-1===t.findIndex(t=>t.label===n)&&t.push({label:e,formattedLabel:n,color:this.colors.getColor(e)})}return t}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(e=>t.label===e.name)}activate(t){this.labelActivate.emit(t)}deactivate(t){this.labelDeactivate.emit(t)}trackBy(t,e){return e.label}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO))},t.\u0275cmp=s.Xpm({type:t,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[s.TTD],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.YNc(1,ki,3,1,"header",0),s.TgZ(2,"div",1),s.TgZ(3,"ul",2),s.YNc(4,Ci,2,4,"li",3),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Udp("width",e.width,"px"),s.xp6(1),s.Q6J("ngIf",(null==e.title?null:e.title.length)>0),s.xp6(2),s.Udp("max-height",e.height-45,"px"),s.ekj("horizontal-legend",e.horizontal),s.xp6(1),s.Q6J("ngForOf",e.legendEntries)("ngForTrackBy",e.trackBy))},directives:function(){return[i.O5,i.sg,Hi]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{font-size:14px;font-weight:700;margin-bottom:5px;margin-left:10px;overflow:hidden;white-space:nowrap}.chart-legend li,.chart-legend ul{list-style:none;margin:0;padding:0}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{background:rgba(0,0,0,.05);border-radius:3px;float:left;line-height:85%;list-style:none;overflow-x:hidden;overflow-y:auto;text-align:left;white-space:nowrap;width:100%}.chart-legend .legend-label{color:#afb7c8;cursor:pointer;font-size:90%;margin:8px}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{border-radius:3px;color:#5b646b;display:inline-block;height:15px;margin-right:5px;width:15px}.chart-legend .legend-label-text{font-size:12px;line-height:15px;vertical-align:top;width:calc(100% - 20px)}.chart-legend .legend-label-text,.chart-legend .legend-title-text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-legend .legend-title-text{line-height:16px;vertical-align:bottom}"],encapsulation:2,changeDetection:0}),t})(),Hi=(()=>{class t{constructor(){this.isActive=!1,this.select=new s.vpe,this.activate=new s.vpe,this.deactivate=new s.vpe,this.toggle=new s.vpe}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(t,e){1&t&&s.NdJ("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(){return e.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(t,e){1&t&&(s.TgZ(0,"span",0),s.NdJ("click",function(){return e.select.emit(e.formattedLabel)}),s.TgZ(1,"span",1),s.NdJ("click",function(){return e.toggle.emit(e.formattedLabel)}),s.qZA(),s.TgZ(2,"span",2),s._uU(3),s.qZA(),s.qZA()),2&t&&(s.ekj("active",e.isActive),s.Q6J("title",e.formattedLabel),s.xp6(1),s.Udp("background-color",e.color),s.xp6(2),s.hij(" ",e.trimmedLabel," "))},encapsulation:2,changeDetection:0}),t})(),Qi=(()=>{class t{constructor(t){this.sanitizer=t,this.horizontal=!1}ngOnChanges(t){const e=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${e})`)}gradientString(t,e){e.push(1);const n=[];return t.reverse().forEach((t,r)=>{n.push(`${t} ${Math.round(100*e[r])}%`)}),n.join(", ")}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(bi.H7))},t.\u0275cmp=s.Xpm({type:t,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[s.TTD],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"span"),s._uU(3),s.qZA(),s.qZA(),s._UZ(4,"div",2),s.TgZ(5,"div",1),s.TgZ(6,"span"),s._uU(7),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Udp("height",e.horizontal?void 0:e.height,"px")("width",e.width,"px"),s.ekj("horizontal-legend",e.horizontal),s.xp6(3),s.Oqu(e.valueRange[1].toLocaleString()),s.xp6(1),s.Udp("background",e.gradient),s.xp6(3),s.Oqu(e.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{display:flex;flex-direction:column;text-align:center}.chart-legend .scale-legend-wrap{border-radius:5px;display:inline-block;flex:1;margin:0 auto;width:30px}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{height:30px;margin:0 16px;width:auto}"],encapsulation:2,changeDetection:0}),t})(),Wi=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[i.ez,zi,Gi],i.ez,zi,Gi]}),t})(),$i=[{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 Xi{constructor(t,e,n,r){"string"==typeof t&&(t=$i.find(e=>e.name===t)),this.colorDomain=t.domain,this.scaleType=e,this.domain=n,this.customColors=r,this.scale=this.generateColorScheme(t,e,this.domain)}generateColorScheme(t,e,n){let r;if("string"==typeof t&&(t=$i.find(e=>e.name===t)),"quantile"===e)r=ei().range(t.domain).domain(n);else if("ordinal"===e)r=Xr().range(t.domain).domain(n);else if("linear"===e){const e=[...t.domain];1===e.length&&(e.push(e[0]),this.colorDomain=e);const n=Wr(0,1,1/e.length);r=Qr().domain(n).range(e)}return r}getColor(t){if(null==t)throw new Error("Value can not be null");if("linear"===this.scaleType){const e=Qr().domain(this.domain).range([0,1]);return this.scale(e(t))}{if("function"==typeof this.customColors)return this.customColors(t);const e=t.toString();let n;return this.customColors&&this.customColors.length>0&&(n=this.customColors.find(t=>t.name.toLowerCase()===e.toLowerCase())),n?n.value:this.scale(t)}}getLinearGradientStops(t,e){void 0===e&&(e=this.domain[0]);const n=Qr().domain(this.domain).range([0,1]),r=Kr().domain(this.colorDomain).range([0,1]),i=this.getColor(t),o=n(e),a=this.getColor(e),s=n(t);let u=1,c=o;const l=[];for(l.push({color:a,offset:o,originalOffset:o,opacity:1});c=(s-r.bandwidth()).toFixed(4))break;l.push({color:t,offset:e,opacity:1}),c=e,u++}}if(l[l.length-1].offset<100&&l.push({color:i,offset:s,opacity:1}),s===o)l[0].offset=0,l[1].offset=100;else if(100!==l[l.length-1].offset)for(const h of l)h.offset=(h.offset-o)/(s-o)*100;return l}}let Ki=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi]]}),t})(),to=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi]]}),t})(),eo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi]]}),t})(),no=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi]]}),t})(),ro=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi]]}),t})();Math;let io=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi]]}),t})(),oo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi,io,ro]]}),t})(),ao=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi]]}),t})(),so=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi]]}),t})(),uo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wi,io,to]]}),t})(),co=(()=>{class t{constructor(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[Wi,Ki,to,eo,no,ro,oo,ao,io,so,uo]}),t})();var lo=Math.PI;function ho(t){return(1-Math.cos(lo*t))/2}var fo=n(87570),po=n(48318),go=n(40878),mo=n(3530);function vo(t){return void 0===t}function yo(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e1&&void 0!==arguments[1]?arguments[1]:0;return{a:1,c:0,e:t,b:0,d:1,f:e}}"function"==typeof Symbol&&Symbol,Math,Math,Math,Math;var xo=n(32975);function Eo(t,e){var n;function r(){var r,i,o=n.length,a=0,s=0;for(r=0;r=(o=(g+v)/2))?g=o:v=o,(l=n>=(a=(m+y)/2))?m=a:y=a,i=d,!(d=d[h=l<<1|c]))return i[h]=p,t;if(s=+t._x.call(null,d.data),u=+t._y.call(null,d.data),e===s&&n===u)return p.next=d,i?i[h]=p:t._root=p,t;do{i=i?i[h]=new Array(4):t._root=new Array(4),(c=e>=(o=(g+v)/2))?g=o:v=o,(l=n>=(a=(m+y)/2))?m=a:y=a}while((h=l<<1|c)==(f=(u>=a)<<1|s>=o));return i[f]=d,i[h]=p,t}function Io(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function Do(t){return t[0]}function No(t){return t[1]}function ko(t,e,n){var r=new Co(null==e?Do:e,null==n?No:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Co(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function Zo(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Mo=ko.prototype=Co.prototype;function Oo(t){return t.x+t.vx}function Lo(t){return t.y+t.vy}function Ro(t){var e,n,r=1,i=1;function o(){for(var t,o,s,u,c,l,h,f=e.length,d=0;du+d||ic+d||os.index){var p=u-a.x-a.vx,g=c-a.y-a.vy,m=p*p+g*g;mt.r&&(t.r=t[e].r)}function s(){if(e){var r,i,o=e.length;for(n=new Array(o),r=0;rl&&(l=r),ih&&(h=i));if(u>l||c>h)return this;for(this.cover(u,c).cover(l,h),n=0;nt||t>=i||r>e||e>=o;)switch(s=(ef||(o=u.y0)>d||(a=u.x1)=v)<<1|t>=m)&&(u=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=u)}else{var y=t-+this._x.call(null,g.data),_=e-+this._y.call(null,g.data),w=y*y+_*_;if(w=(s=(p+m)/2))?p=s:m=s,(l=a>=(u=(g+v)/2))?g=u:v=u,e=d,!(d=d[h=l<<1|c]))return this;if(!d.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(n=e,f=h)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[h]=i:delete e[h],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[f]=d:this._root=d),this):(this._root=i,this)},Mo.removeAll=function(t){for(var e=0,n=t.length;e1?(null==n?s.remove(t):s.set(t,d(n)),e):s.get(t)},find:function(e,n,r){var i,o,a,s,u,c=0,l=t.length;for(null==r?r=1/0:r*=r,c=0;c1?(c.on(t,n),e):c.on(t)}}}function Wo(){var t,e,n,r,i=To(-30),o=1,a=1/0,s=.81;function u(r){var i,o=t.length,a=ko(t,Jo,Vo).visitAfter(l);for(n=r,i=0;i=a)){(t.data!==e||t.next)&&(0===l&&(d+=(l=Ao())*l),0===h&&(d+=(h=Ao())*h),dt.id===n.id);r.position={x:n.x,y:n.y},r.dimension={width:n.width,height:n.height}}return t}updateEdge(t,e){const n=t.nodes.find(t=>t.id===e.source),r=t.nodes.find(t=>t.id===e.target),i=n.position.y<=r.position.y?-1:1;return e.points=[{x:n.position.x,y:n.position.y-i*(n.dimension.height/2)},{x:r.position.x,y:r.position.y+i*(r.dimension.height/2)}],t}createDagreGraph(t){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new xo.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=t.nodes.map(t=>{const e=Object.assign({},t);return e.width=t.dimension.width,e.height=t.dimension.height,e.x=t.position.x,e.y=t.position.y,e}),this.dagreEdges=t.edges.map(t=>{const e=Object.assign({},t);return e.id||(e.id=Ca()),e});for(const n of this.dagreNodes)n.width||(n.width=20),n.height||(n.height=30),this.dagreGraph.setNode(n.id,n);for(const n of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(n.source,n.target,n,n.id):this.dagreGraph.setEdge(n.source,n.target);return this.dagreGraph}},dagreCluster:class{constructor(){this.defaultSettings={orientation:Za.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(t){this.createDagreGraph(t),(0,xo.layout)(this.dagreGraph),t.edgeLabels=this.dagreGraph._edgeLabels;const e=t=>{const e=this.dagreGraph._nodes[t.id];return Object.assign(Object.assign({},t),{position:{x:e.x,y:e.y},dimension:{width:e.width,height:e.height}})};return t.clusters=(t.clusters||[]).map(e),t.nodes=t.nodes.map(e),t}updateEdge(t,e){const n=t.nodes.find(t=>t.id===e.source),r=t.nodes.find(t=>t.id===e.target),i=n.position.y<=r.position.y?-1:1;return e.points=[{x:n.position.x,y:n.position.y-i*(n.dimension.height/2)},{x:r.position.x,y:r.position.y+i*(r.dimension.height/2)}],t}createDagreGraph(t){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new xo.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=t.nodes.map(t=>{const e=Object.assign({},t);return e.width=t.dimension.width,e.height=t.dimension.height,e.x=t.position.x,e.y=t.position.y,e}),this.dagreClusters=t.clusters||[],this.dagreEdges=t.edges.map(t=>{const e=Object.assign({},t);return e.id||(e.id=Ca()),e});for(const n of this.dagreNodes)this.dagreGraph.setNode(n.id,n);for(const n of this.dagreClusters)this.dagreGraph.setNode(n.id,n),n.childNodeIds.forEach(t=>{this.dagreGraph.setParent(t,n.id)});for(const n of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(n.source,n.target,n,n.id):this.dagreGraph.setEdge(n.source,n.target);return this.dagreGraph}},dagreNodesOnly:class{constructor(){this.defaultSettings={orientation:Za.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,curveDistance:20,multigraph:!0,compound:!0},this.settings={}}run(t){this.createDagreGraph(t),(0,xo.layout)(this.dagreGraph),t.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const n=this.dagreGraph._nodes[e],r=t.nodes.find(t=>t.id===n.id);r.position={x:n.x,y:n.y},r.dimension={width:n.width,height:n.height}}for(const e of t.edges)this.updateEdge(t,e);return t}updateEdge(t,e){const n=t.nodes.find(t=>t.id===e.source),r=t.nodes.find(t=>t.id===e.target),i="BT"===this.settings.orientation||"TB"===this.settings.orientation?"y":"x",o="y"===i?"x":"y",a="y"===i?"height":"width",s=n.position[i]<=r.position[i]?-1:1,u={[o]:n.position[o],[i]:n.position[i]-s*(n.dimension[a]/2)},c={[o]:r.position[o],[i]:r.position[i]+s*(r.dimension[a]/2)},l=this.settings.curveDistance||this.defaultSettings.curveDistance;e.points=[u,{[o]:u[o],[i]:u[i]-s*l},{[o]:c[o],[i]:c[i]+s*l},c];const h=t.edgeLabels[`${e.source}\x01${e.target}\x01\0`];return h&&(h.points=e.points),t}createDagreGraph(t){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new xo.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=t.nodes.map(t=>{const e=Object.assign({},t);return e.width=t.dimension.width,e.height=t.dimension.height,e.x=t.position.x,e.y=t.position.y,e}),this.dagreEdges=t.edges.map(t=>{const e=Object.assign({},t);return e.id||(e.id=Ca()),e});for(const n of this.dagreNodes)n.width||(n.width=20),n.height||(n.height=30),this.dagreGraph.setNode(n.id,n);for(const n of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(n.source,n.target,n,n.id):this.dagreGraph.setEdge(n.source,n.target);return this.dagreGraph}},d3ForceDirected:class{constructor(){this.defaultSettings={force:Qo().force("charge",Wo().strength(-150)).force("collide",Ro(5)),forceLink:zo().id(t=>t.id).distance(()=>100)},this.settings={},this.outputGraph$=new Ze.xQ}run(t){return this.inputGraph=t,this.d3Graph={nodes:[...this.inputGraph.nodes.map(t=>Object.assign({},t))],edges:[...this.inputGraph.edges.map(t=>Object.assign({},t))]},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(t,e){const n=Object.assign({},this.defaultSettings,this.settings);return n.force&&n.force.nodes(this.d3Graph.nodes).force("link",n.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}d3GraphToOutputGraph(t){return this.outputGraph.nodes=this.d3Graph.nodes.map(t=>Object.assign(Object.assign({},t),{id:t.id||Ca(),position:{x:t.x,y:t.y},dimension:{width:t.dimension&&t.dimension.width||20,height:t.dimension&&t.dimension.height||20},transform:`translate(${t.x-(t.dimension&&t.dimension.width||20)/2||0}, ${t.y-(t.dimension&&t.dimension.height||20)/2||0})`})),this.outputGraph.edges=this.d3Graph.edges.map(t=>Object.assign(Object.assign({},t),{source:Ma(t.source).id,target:Ma(t.target).id,points:[{x:Ma(t.source).x,y:Ma(t.source).y},{x:Ma(t.target).x,y:Ma(t.target).y}]})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(t,e){this.settings.force.alphaTarget(.3).restart();const n=this.d3Graph.nodes.find(e=>e.id===t.id);n&&(this.draggingStart={x:e.x-n.x,y:e.y-n.y},n.fx=e.x-this.draggingStart.x,n.fy=e.y-this.draggingStart.y)}onDrag(t,e){if(!t)return;const n=this.d3Graph.nodes.find(e=>e.id===t.id);n&&(n.fx=e.x-this.draggingStart.x,n.fy=e.y-this.draggingStart.y)}onDragEnd(t,e){if(!t)return;const n=this.d3Graph.nodes.find(e=>e.id===t.id);n&&(this.settings.force.alphaTarget(0),n.fx=void 0,n.fy=void 0)}},colaForceDirected:class{constructor(){this.defaultSettings={force:(0,ta.d3adaptor)(Object.assign(Object.assign(Object.assign({},ea),r),na)).linkDistance(150).avoidOverlaps(!0),viewDimensions:{width:600,height:600,xOffset:0}},this.settings={},this.outputGraph$=new Ze.xQ}run(t){return this.inputGraph=t,this.inputGraph.clusters||(this.inputGraph.clusters=[]),this.internalGraph={nodes:[...this.inputGraph.nodes.map(t=>Object.assign(Object.assign({},t),{width:t.dimension?t.dimension.width:20,height:t.dimension?t.dimension.height:20}))],groups:[...this.inputGraph.clusters.map(t=>({padding:5,groups:t.childNodeIds.map(t=>this.inputGraph.clusters.findIndex(e=>e.id===t)).filter(t=>t>=0),leaves:t.childNodeIds.map(t=>this.inputGraph.nodes.findIndex(e=>e.id===t)).filter(t=>t>=0)}))],links:[...this.inputGraph.edges.map(t=>{const e=this.inputGraph.nodes.findIndex(e=>t.source===e.id),n=this.inputGraph.nodes.findIndex(e=>t.target===e.id);if(-1!==e&&-1!==n)return Object.assign(Object.assign({},t),{source:e,target:n})}).filter(t=>!!t)],groupLinks:[...this.inputGraph.edges.map(t=>{const e=this.inputGraph.nodes.findIndex(e=>t.source===e.id),n=this.inputGraph.nodes.findIndex(e=>t.target===e.id);if(!(e>=0&&n>=0))return t}).filter(t=>!!t)]},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(t,e){const n=Object.assign({},this.defaultSettings,this.settings);return n.force&&n.force.start(),this.outputGraph$.asObservable()}internalGraphToOutputGraph(t){return this.outputGraph.nodes=t.nodes.map(t=>Object.assign(Object.assign({},t),{id:t.id||Ca(),position:{x:t.x,y:t.y},dimension:{width:t.dimension&&t.dimension.width||20,height:t.dimension&&t.dimension.height||20},transform:`translate(${t.x-(t.dimension&&t.dimension.width||20)/2||0}, ${t.y-(t.dimension&&t.dimension.height||20)/2||0})`})),this.outputGraph.edges=t.links.map(e=>{const n=Oa(t.nodes,e.source),r=Oa(t.nodes,e.target);return Object.assign(Object.assign({},e),{source:n.id,target:r.id,points:[n.bounds.rayIntersection(r.bounds.cx(),r.bounds.cy()),r.bounds.rayIntersection(n.bounds.cx(),n.bounds.cy())]})}).concat(t.groupLinks.map(e=>{const n=t.nodes.find(t=>t.id===e.source),r=t.nodes.find(t=>t.id===e.target),i=n||t.groups.find(t=>t.id===e.source),o=r||t.groups.find(t=>t.id===e.target);return Object.assign(Object.assign({},e),{source:i.id,target:o.id,points:[i.bounds.rayIntersection(o.bounds.cx(),o.bounds.cy()),o.bounds.rayIntersection(i.bounds.cx(),i.bounds.cy())]})})),this.outputGraph.clusters=t.groups.map((t,e)=>Object.assign(Object.assign({},this.inputGraph.clusters[e]),{dimension:{width:t.bounds?t.bounds.width():20,height:t.bounds?t.bounds.height():20},position:{x:t.bounds?t.bounds.x+t.bounds.width()/2:0,y:t.bounds?t.bounds.y+t.bounds.height()/2:0}})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(t,e){const n=this.outputGraph.nodes.findIndex(e=>e.id===t.id),r=this.internalGraph.nodes[n];r&&(this.draggingStart={x:r.x-e.x,y:r.y-e.y},r.fixed=1,this.settings.force.start())}onDrag(t,e){if(!t)return;const n=this.outputGraph.nodes.findIndex(e=>e.id===t.id),r=this.internalGraph.nodes[n];r&&(r.x=this.draggingStart.x+e.x,r.y=this.draggingStart.y+e.y)}onDragEnd(t,e){if(!t)return;const n=this.outputGraph.nodes.findIndex(e=>e.id===t.id),r=this.internalGraph.nodes[n];r&&(r.fixed=0)}}};let Ra=(()=>{class t{getLayout(t){if(La[t])return new La[t];throw new Error(`Unknown layout type '${t}'`)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();var Ua=function(t){return t.Both="both",t.Horizontal="horizontal",t.Vertical="vertical",t}({}),Pa=function(t){return t.UpperLeft="UpperLeft",t.UpperRight="UpperRight",t}({});function qa(t,e,n){let r,i,o;n=n||{};let a=null,s=0;function u(){s=!1===n.leading?0:+new Date,a=null,o=t.apply(r,i)}return function(){const c=+new Date;s||!1!==n.leading||(s=c);const l=e-(c-s);return r=this,i=arguments,l<=0?(clearTimeout(a),a=null,s=c,o=t.apply(r,i)):a||!1===n.trailing||(a=setTimeout(u,l)),o}}let Fa=(()=>{class t extends Bi{constructor(t,e,n,r){super(t,e,n),this.el=t,this.zone=e,this.cd=n,this.layoutService=r,this.legend=!1,this.nodes=[],this.clusters=[],this.links=[],this.activeEntries=[],this.draggingEnabled=!0,this.panningEnabled=!0,this.panningAxis=Ua.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=Pa.UpperRight,this.activate=new s.vpe,this.deactivate=new s.vpe,this.zoomChange=new s.vpe,this.clickHandler=new s.vpe,this.isMouseMoveCalled=!1,this.graphSubscription=new fo.w,this.subscriptions=[],this.margin=[0,0,0,0],this.results=[],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=t=>t.label}get zoomLevel(){return this.transformationMatrix.a}set zoomLevel(t){this.zoomTo(Number(t))}get panOffsetX(){return this.transformationMatrix.e}set panOffsetX(t){this.panTo(Number(t),null)}get panOffsetY(){return this.transformationMatrix.f}set panOffsetY(t){this.panTo(null,Number(t))}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(t=>{this.panToNodeId(t)})),this.minimapClipPathId=`minimapClip${Ca()}`}ngOnChanges(t){const{layoutSettings:e}=t;this.setLayout(this.layout),e&&this.setLayoutSettings(this.layoutSettings),this.update()}setLayout(t){this.initialized=!1,t||(t="dagre"),"string"==typeof t&&(this.layout=this.layoutService.getLayout(t),this.setLayoutSettings(this.layoutSettings))}setLayoutSettings(t){this.layout&&"string"!=typeof this.layout&&(this.layout.settings=t)}ngOnDestroy(){super.ngOnDestroy();for(const t of this.subscriptions)t.unsubscribe();this.subscriptions=null}ngAfterViewInit(){super.ngAfterViewInit(),setTimeout(()=>this.update())}update(){super.update(),this.curve||(this.curve=Ce.beta(1)),this.zone.run(()=>{this.dims=function({width:t,height:e,margins:n,showXAxis:r=!1,showYAxis:i=!1,xAxisHeight:o=0,yAxisWidth:a=0,showXLabel:s=!1,showYLabel:u=!1,showLegend:c=!1,legendType:l="ordinal",legendPosition:h="right",columns:f=12}){let d=n[3],p=t,g=e-n[0]-n[2];if(c&&"right"===h&&(f-="ordinal"===l?2:1),p=p*f/12,p=p-n[1]-n[3],r&&(g-=5,g-=o,s)&&(g-=30),i&&(p-=5,p-=a,d+=a,d+=10,u)){const t=30;p-=t,d+=t}return p=Math.max(0,p),g=Math.max(0,g),{width:Math.floor(p),height:Math.floor(g),xOffset:Math.floor(d)}}({width:this.width,height:this.height,margins:this.margin,showLegend:this.legend}),this.seriesDomain=this.getSeriesDomain(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.createGraph(),this.updateTransform(),this.initialized=!0})}createGraph(){this.graphSubscription.unsubscribe(),this.graphSubscription=new fo.w;const t=t=>(t.meta||(t.meta={}),t.id||(t.id=Ca()),t.dimension?t.meta.forceDimensions=void 0===t.meta.forceDimensions||t.meta.forceDimensions:(t.dimension={width:this.nodeWidth?this.nodeWidth:30,height:this.nodeHeight?this.nodeHeight:30},t.meta.forceDimensions=!1),t.position={x:0,y:0},t.data=t.data?t.data:{},t);this.graph={nodes:this.nodes.length>0?[...this.nodes].map(t):[],clusters:this.clusters&&this.clusters.length>0?[...this.clusters].map(t):[],edges:this.links.length>0?[...this.links].map(t=>(t.id||(t.id=Ca()),t)):[]},requestAnimationFrame(()=>this.draw())}draw(){if(!this.layout||"string"==typeof this.layout)return;this.applyNodeDimensions();const t=this.layout.run(this.graph),e=t instanceof po.y?t:(0,go.of)(t);this.graphSubscription.add(e.subscribe(t=>{this.graph=t,this.tick()})),0!==this.graph.nodes.length&&e.pipe((0,mo.P)()).subscribe(()=>this.applyNodeDimensions())}tick(){const t=new Set;this.graph.nodes.map(e=>{e.transform=`translate(${e.position.x-e.dimension.width/2||0}, ${e.position.y-e.dimension.height/2||0})`,e.data||(e.data={}),e.data.color=this.colors.getColor(this.groupResultsBy(e)),t.add(e.id)});const e=new Set;(this.graph.clusters||[]).map(t=>{t.transform=`translate(${t.position.x-t.dimension.width/2||0}, ${t.position.y-t.dimension.height/2||0})`,t.data||(t.data={}),t.data.color=this.colors.getColor(this.groupResultsBy(t)),e.add(t.id)}),setTimeout(()=>{this.oldNodes=t,this.oldClusters=e},500);const n=[];for(const r in this.graph.edgeLabels){const t=this.graph.edgeLabels[r],e=r.replace(/[^\w-]*/g,""),i=this.layout&&"string"!=typeof this.layout&&this.layout.settings&&this.layout.settings.multigraph;let o=this._oldLinks.find(i?t=>`${t.source}${t.target}${t.id}`===e:t=>`${t.source}${t.target}`===e);const a=this.graph.edges.find(i?t=>`${t.source}${t.target}${t.id}`===e:t=>`${t.source}${t.target}`===e);o?o.data&&a&&a.data&&JSON.stringify(o.data)!==JSON.stringify(a.data)&&(o.data=a.data):o=a||t,o.oldLine=o.line;const s=t.points,u=this.generateLine(s),c=Object.assign({},o);c.line=u,c.points=s,this.updateMidpointOnEdge(c,s);const l=s[Math.floor(s.length/2)];l&&(c.textTransform=`translate(${l.x||0},${l.y||0})`),c.textAngle=0,c.oldLine||(c.oldLine=c.line),this.calcDominantBaseline(c),n.push(c)}this.graph.edges=n,this.graph.edges&&(this._oldLinks=this.graph.edges.map(t=>{const e=Object.assign({},t);return e.oldLine=t.line,e})),this.updateMinimap(),this.autoZoom&&this.zoomToFit(),this.autoCenter&&this.center(),requestAnimationFrame(()=>this.redrawLines()),this.cd.markForCheck()}getMinimapTransform(){switch(this.miniMapPosition){case Pa.UpperLeft:return"";case Pa.UpperRight:return"translate("+(this.dims.width-this.graphDims.width/this.minimapScaleCoefficient)+",0)";default:return""}}updateGraphDims(){let t=1/0,e=-1/0,n=1/0,r=-1/0;for(let i=0;ie?o.position.x+o.dimension.width:e,r=o.position.y+o.dimension.height>r?o.position.y+o.dimension.height:r}t-=100,n-=100,e+=100,r+=100,this.graphDims.width=e-t,this.graphDims.height=r-n,this.minimapOffsetX=t,this.minimapOffsetY=n}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(t=>{const e=t.nativeElement,n=this.graph.nodes.find(t=>t.id===e.id);if(!n)return;let r;try{if(r=e.getBBox(),!r.width||!r.height)return}catch(i){return}if(n.dimension.height=this.nodeHeight?n.dimension.height&&n.meta.forceDimensions?n.dimension.height:this.nodeHeight:n.dimension.height&&n.meta.forceDimensions?n.dimension.height:r.height,this.nodeMaxHeight&&(n.dimension.height=Math.max(n.dimension.height,this.nodeMaxHeight)),this.nodeMinHeight&&(n.dimension.height=Math.min(n.dimension.height,this.nodeMinHeight)),this.nodeWidth)n.dimension.width=n.dimension.width&&n.meta.forceDimensions?n.dimension.width:this.nodeWidth;else if(e.getElementsByTagName("text").length){let t;try{for(const n of e.getElementsByTagName("text")){const e=n.getBBox();t?(e.width>t.width&&(t.width=e.width),e.height>t.height&&(t.height=e.height)):t=e}}catch(i){return}n.dimension.width=n.dimension.width&&n.meta.forceDimensions?n.dimension.width:t.width+20}else n.dimension.width=n.dimension.width&&n.meta.forceDimensions?n.dimension.width:r.width;this.nodeMaxWidth&&(n.dimension.width=Math.max(n.dimension.width,this.nodeMaxWidth)),this.nodeMinWidth&&(n.dimension.width=Math.min(n.dimension.width,this.nodeMinWidth))})}redrawLines(t=this.animate){this.linkElements.map(e=>{const n=this.graph.edges.find(t=>t.id===e.nativeElement.id);n&&((0,Pe.Z)(e.nativeElement).select(".line").attr("d",n.oldLine).transition().ease(ho).duration(t?500:0).attr("d",n.line),(0,Pe.Z)(this.chartElement.nativeElement).select(`#${n.id}`).attr("d",n.oldTextPath).transition().ease(ho).duration(t?500:0).attr("d",n.textPath),this.updateMidpointOnEdge(n,n.points))})}calcDominantBaseline(t){const e=t.points[0],n=t.points[t.points.length-1];t.oldTextPath=t.textPath,n.xt.x).y(t=>t.y).curve(this.curve)(t)}onZoom(t,e){if(this.enableTrackpadSupport&&!t.ctrlKey)return void this.pan(-1*t.deltaX,-1*t.deltaY);const n=1+("in"===e?this.zoomSpeed:-this.zoomSpeed),r=this.zoomLevel*n;if(!(r<=this.minZoomLevel||r>=this.maxZoomLevel)&&this.enableZoom)if(!0===this.panOnZoom&&t){const e=t.clientX,r=t.clientY,i=this.chart.nativeElement.querySelector("svg"),o=i.querySelector("g.chart"),a=i.createSVGPoint();a.x=e,a.y=r;const s=a.matrixTransform(o.getScreenCTM().inverse());this.pan(s.x,s.y,!0),this.zoom(n),this.pan(-s.x,-s.y,!0)}else this.zoom(n)}pan(t,e,n=!1){const r=n?1:this.zoomLevel;this.transformationMatrix=wo(this.transformationMatrix,bo(t/r,e/r)),this.updateTransform()}panTo(t,e){null==t||isNaN(t)||null==e||isNaN(e)||(this.transformationMatrix=wo(this.transformationMatrix,bo((-this.panOffsetX-t*this.zoomLevel+this.dims.width/2)/this.zoomLevel,(-this.panOffsetY-e*this.zoomLevel+this.dims.height/2)/this.zoomLevel)),this.updateTransform())}zoom(t){this.transformationMatrix=wo(this.transformationMatrix,function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return vo(e)&&(e=t),{a:t,c:0,e:0,b:0,d:e,f:0}}(t,t)),this.zoomChange.emit(this.zoomLevel),this.updateTransform()}zoomTo(t){this.transformationMatrix.a=isNaN(t)?this.transformationMatrix.a:Number(t),this.transformationMatrix.d=isNaN(t)?this.transformationMatrix.d:Number(t),this.zoomChange.emit(this.zoomLevel),this.updateTransform(),this.update()}onDrag(t){if(!this.draggingEnabled)return;const e=this.draggingNode;this.layout&&"string"!=typeof this.layout&&this.layout.onDrag&&this.layout.onDrag(e,t),e.position.x+=t.movementX/this.zoomLevel,e.position.y+=t.movementY/this.zoomLevel,e.transform=`translate(${e.position.x-e.dimension.width/2}, ${e.position.y-e.dimension.height/2})`;for(const n of this.graph.edges)if((n.target===e.id||n.source===e.id||n.target.id===e.id||n.source.id===e.id)&&this.layout&&"string"!=typeof this.layout){const t=this.layout.updateEdge(this.graph,n),e=t instanceof po.y?t:(0,go.of)(t);this.graphSubscription.add(e.subscribe(t=>{this.graph=t,this.redrawEdge(n)}))}this.redrawLines(!1),this.updateMinimap()}redrawEdge(t){const e=this.generateLine(t.points);this.calcDominantBaseline(t),t.oldLine=t.line,t.line=e}updateTransform(){var t;this.transform="matrix("+(t=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e10;return{a:Math.round(t.a*e)/e,b:Math.round(t.b*e)/e,c:Math.round(t.c*e)/e,d:Math.round(t.d*e)/e,e:Math.round(t.e*e)/e,f:Math.round(t.f*e)/e}}(this.transformationMatrix,100)).a+","+t.b+","+t.c+","+t.d+","+t.e+","+t.f+")"}onClick(t){this.select.emit(t)}onActivate(t){this.activeEntries.indexOf(t)>-1||(this.activeEntries=[t,...this.activeEntries],this.activate.emit({value:t,entries:this.activeEntries}))}onDeactivate(t){const e=this.activeEntries.indexOf(t);this.activeEntries.splice(e,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:t,entries:this.activeEntries})}getSeriesDomain(){return this.nodes.map(t=>this.groupResultsBy(t)).reduce((t,e)=>-1!==t.indexOf(e)?t:t.concat([e]),[]).sort()}trackLinkBy(t,e){return e.id}trackNodeBy(t,e){return e.id}setColors(){this.colors=new Xi(this.scheme,"ordinal",this.seriesDomain,this.customColors)}getLegendOptions(){return{scaleType:"ordinal",domain:this.seriesDomain,colors:this.colors}}onMouseMove(t){this.isMouseMoveCalled=!0,(this.isPanning||this.isMinimapPanning)&&this.panningEnabled?this.panWithConstraints(this.panningAxis,t):this.isDragging&&this.draggingEnabled&&this.onDrag(t)}onMouseDown(t){this.isMouseMoveCalled=!1}graphClick(t){this.isMouseMoveCalled||this.clickHandler.emit(t)}onTouchStart(t){this._touchLastX=t.changedTouches[0].clientX,this._touchLastY=t.changedTouches[0].clientY,this.isPanning=!0}onTouchMove(t){if(this.isPanning&&this.panningEnabled){const e=t.changedTouches[0].clientX,n=t.changedTouches[0].clientY,r=e-this._touchLastX,i=n-this._touchLastY;this._touchLastX=e,this._touchLastY=n,this.pan(r,i)}}onTouchEnd(t){this.isPanning=!1}onMouseUp(t){this.isDragging=!1,this.isPanning=!1,this.isMinimapPanning=!1,this.layout&&"string"!=typeof this.layout&&this.layout.onDragEnd&&this.layout.onDragEnd(this.draggingNode,t)}onNodeMouseDown(t,e){this.draggingEnabled&&(this.isDragging=!0,this.draggingNode=e,this.layout&&"string"!=typeof this.layout&&this.layout.onDragStart&&this.layout.onDragStart(e,t))}onMinimapDragMouseDown(){this.isMinimapPanning=!0}onMinimapPanTo(t){this.panTo((t.offsetX-(this.dims.width-(this.graphDims.width+this.minimapOffsetX)/this.minimapScaleCoefficient))*this.minimapScaleCoefficient,(t.offsetY+this.minimapOffsetY/this.minimapScaleCoefficient)*this.minimapScaleCoefficient),this.isMinimapPanning=!0}center(){this.panTo(this.graphDims.width/2,this.graphDims.height/2)}zoomToFit(){let t=Math.min(this.dims.height/this.graphDims.height,this.dims.width/this.graphDims.width,1);tthis.maxZoomLevel&&(t=this.maxZoomLevel),t!==this.zoomLevel&&(this.zoomLevel=t,this.updateTransform(),this.zoomChange.emit(this.zoomLevel))}panToNodeId(t){const e=this.graph.nodes.find(e=>e.id===t);e&&this.panTo(e.position.x,e.position.y)}panWithConstraints(t,e){let n=e.movementX,r=e.movementY;switch(this.isMinimapPanning&&(n=-this.minimapScaleCoefficient*n*this.zoomLevel,r=-this.minimapScaleCoefficient*r*this.zoomLevel),t){case Ua.Horizontal:this.pan(n,0);break;case Ua.Vertical:this.pan(0,r);break;default:this.pan(n,r)}}updateMidpointOnEdge(t,e){if(t&&e)if(e.length%2==1)t.midPoint=e[Math.floor(e.length/2)];else{const n=e[e.length/2],r=e[e.length/2-1];t.midPoint={x:(n.x+r.x)/2,y:(n.y+r.y)/2}}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(s.sBO),s.Y36(Ra))},t.\u0275cmp=s.Xpm({type:t,selectors:[["ngx-graph"]],contentQueries:function(t,e,n){if(1&t&&(s.Suo(n,ra,5),s.Suo(n,ia,5),s.Suo(n,oa,5),s.Suo(n,aa,5),s.Suo(n,sa,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.linkTemplate=t.first),s.iGM(t=s.CRH())&&(e.nodeTemplate=t.first),s.iGM(t=s.CRH())&&(e.clusterTemplate=t.first),s.iGM(t=s.CRH())&&(e.defsTemplate=t.first),s.iGM(t=s.CRH())&&(e.miniMapNodeTemplate=t.first)}},viewQuery:function(t,e){if(1&t&&(s.Gf(ji,7,s.SBq),s.Gf(ua,5),s.Gf(ca,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.chart=t.first),s.iGM(t=s.CRH())&&(e.nodeElements=t),s.iGM(t=s.CRH())&&(e.linkElements=t)}},hostBindings:function(t,e){1&t&&s.NdJ("mousemove",function(t){return e.onMouseMove(t)},!1,s.evT)("mousedown",function(t){return e.onMouseDown(t)},!1,s.evT)("click",function(t){return e.graphClick(t)},!1,s.evT)("touchmove",function(t){return e.onTouchMove(t)},!1,s.evT)("mouseup",function(t){return e.onMouseUp(t)},!1,s.evT)},inputs:{legend:"legend",nodes:"nodes",clusters:"clusters",links:"links",activeEntries:"activeEntries",draggingEnabled:"draggingEnabled",panningEnabled:"panningEnabled",panningAxis:"panningAxis",enableZoom:"enableZoom",zoomSpeed:"zoomSpeed",minZoomLevel:"minZoomLevel",maxZoomLevel:"maxZoomLevel",autoZoom:"autoZoom",panOnZoom:"panOnZoom",animate:"animate",autoCenter:"autoCenter",enableTrackpadSupport:"enableTrackpadSupport",showMiniMap:"showMiniMap",miniMapMaxWidth:"miniMapMaxWidth",miniMapPosition:"miniMapPosition",groupResultsBy:"groupResultsBy",zoomLevel:"zoomLevel",panOffsetX:"panOffsetX",panOffsetY:"panOffsetY",layout:"layout",curve:"curve",nodeHeight:"nodeHeight",nodeMaxHeight:"nodeMaxHeight",nodeMinHeight:"nodeMinHeight",nodeWidth:"nodeWidth",nodeMinWidth:"nodeMinWidth",nodeMaxWidth:"nodeMaxWidth",update$:"update$",center$:"center$",zoomToFit$:"zoomToFit$",panToNode$:"panToNode$",layoutSettings:"layoutSettings",miniMapMaxHeight:"miniMapMaxHeight"},outputs:{activate:"activate",deactivate:"deactivate",zoomChange:"zoomChange",clickHandler:"clickHandler"},features:[s.qOj,s.TTD],ngContentSelectors:Na,decls:5,vars:11,consts:[["mouseWheel","",3,"view","showLegend","legendOptions","legendLabelClick","legendLabelActivate","legendLabelDeactivate","mouseWheelUp","mouseWheelDown"],["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(t,e){1&t&&(s.F$t(),s.TgZ(0,"ngx-charts-chart",0),s.NdJ("legendLabelClick",function(t){return e.onClick(t)})("legendLabelActivate",function(t){return e.onActivate(t)})("legendLabelDeactivate",function(t){return e.onDeactivate(t)})("mouseWheelUp",function(t){return e.onZoom(t,"in")})("mouseWheelDown",function(t){return e.onZoom(t,"out")}),s.YNc(1,xa,12,12,"g",1),s.O4$(),s.TgZ(2,"clipPath"),s._UZ(3,"rect"),s.qZA(),s.YNc(4,Ia,6,15,"g",2),s.qZA()),2&t&&(s.Q6J("view",s.WLB(8,Da,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions),s.xp6(1),s.Q6J("ngIf",e.initialized&&e.graph),s.xp6(1),s.uIk("id",e.minimapClipPathId),s.xp6(1),s.uIk("width",e.graphDims.width/e.minimapScaleCoefficient)("height",e.graphDims.height/e.minimapScaleCoefficient),s.xp6(1),s.Q6J("ngIf",e.showMiniMap))},directives:function(){return[ji,ja,i.O5,i.sg,i.tP]},styles:[".minimap .minimap-background{fill:rgba(0,0,0,.1)}.minimap .minimap-drag{cursor:pointer;fill:rgba(0,0,0,.2);stroke:#fff;stroke-dasharray:2px;stroke-dashoffset:2px;stroke-width:1px}.minimap .minimap-drag.panning{fill:rgba(0,0,0,.3)}.minimap .minimap-nodes{opacity:.5;pointer-events:none}.graph{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;user-select:none}.graph .edge{fill:none;stroke:#666}.graph .edge .edge-label{fill:#251e1e;font-size:12px;stroke:none}.graph .panning-rect{cursor:move;fill:transparent}.graph .node-group.old-node{transition:transform .5s ease-in-out}.graph .node-group .node:focus{outline:none}.graph .cluster rect{opacity:.2}"],encapsulation:2,changeDetection:0}),Me([(500,function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:qa(n.value,500,undefined)}),this[e]}}}),Oe("design:type",Function),Oe("design:paramtypes",[]),Oe("design:returntype",void 0)],t.prototype,"updateMinimap",null),t})(),ja=(()=>{class t{constructor(){this.mouseWheelUp=new s.vpe,this.mouseWheelDown=new s.vpe}onMouseWheelChrome(t){this.mouseWheelFunc(t)}onMouseWheelFirefox(t){this.mouseWheelFunc(t)}onWheel(t){this.mouseWheelFunc(t)}onMouseWheelIE(t){this.mouseWheelFunc(t)}mouseWheelFunc(t){window.event&&(t=window.event);const e=Math.max(-1,Math.min(1,t.wheelDelta||-t.detail||t.deltaY||t.deltaX)),n=t.wheelDelta?e<0:e>0;(t.wheelDelta?e>0:e<0)?this.mouseWheelUp.emit(t):n&&this.mouseWheelDown.emit(t),t.returnValue=!1,t.preventDefault&&t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mouseWheel",""]],hostBindings:function(t,e){1&t&&s.NdJ("mousewheel",function(t){return e.onMouseWheelChrome(t)})("DOMMouseScroll",function(t){return e.onMouseWheelFirefox(t)})("wheel",function(t){return e.onWheel(t)})("onmousewheel",function(t){return e.onMouseWheelIE(t)})},outputs:{mouseWheelUp:"mouseWheelUp",mouseWheelDown:"mouseWheelDown"}}),t})(),Ya=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Ra],imports:[[Wi]]}),t})(),Ba=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[co],Ya]}),t})();function za(){}function Ga(t){return null==t?za:function(){return this.querySelector(t)}}function Ja(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Va(){return[]}function Ha(t){return null==t?Va:function(){return this.querySelectorAll(t)}}function Qa(t){return function(){return this.matches(t)}}function Wa(t){return function(e){return e.matches(t)}}var $a=Array.prototype.find;function Xa(){return this.firstElementChild}var Ka=Array.prototype.filter;function ts(){return this.children}function es(t){return new Array(t.length)}function ns(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function rs(t){return function(){return t}}function is(t,e,n,r,i,o){for(var a,s=0,u=e.length,c=o.length;se?1:t>=e?0:NaN}ns.prototype={constructor:ns,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var us="http://www.w3.org/1999/xhtml",cs={svg:"http://www.w3.org/2000/svg",xhtml:us,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ls(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),cs.hasOwnProperty(e)?{space:cs[e],local:t}:t}function hs(t){return function(){this.removeAttribute(t)}}function fs(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ds(t,e){return function(){this.setAttribute(t,e)}}function ps(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function gs(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function ms(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function vs(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function ys(t){return function(){this.style.removeProperty(t)}}function _s(t,e,n){return function(){this.style.setProperty(t,e,n)}}function ws(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function bs(t,e){return t.style.getPropertyValue(e)||vs(t).getComputedStyle(t,null).getPropertyValue(e)}function xs(t){return function(){delete this[t]}}function Es(t,e){return function(){this[t]=e}}function Ts(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function As(t){return t.trim().split(/^|\s+/)}function Ss(t){return t.classList||new Is(t)}function Is(t){this._node=t,this._names=As(t.getAttribute("class")||"")}function Ds(t,e){for(var n=Ss(t),r=-1,i=e.length;++r=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}function Qs(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var tu=[null];function eu(t,e){this._groups=t,this._parents=e}function nu(){return new eu([[document.documentElement]],tu)}eu.prototype=nu.prototype={constructor:eu,select:function(t){"function"!=typeof t&&(t=Ga(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i=b&&(b=w+1);!(_=m[b])&&++b=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=ss);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==e?ys:"function"==typeof e?ws:_s)(t,e,null==n?"":n)):bs(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?xs:"function"==typeof e?Ts:Es)(t,e)):this.node()[t]},classed:function(t,e){var n=As(t+"");if(arguments.length<2){for(var r=Ss(this.node()),i=-1,o=n.length;++i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Eu(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Eu(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=fu.exec(t))?new Su(e[1],e[2],e[3],1):(e=du.exec(t))?new Su(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=pu.exec(t))?Eu(e[1],e[2],e[3],e[4]):(e=gu.exec(t))?Eu(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=mu.exec(t))?ku(e[1],e[2]/100,e[3]/100,1):(e=vu.exec(t))?ku(e[1],e[2]/100,e[3]/100,e[4]):yu.hasOwnProperty(t)?xu(yu[t]):"transparent"===t?new Su(NaN,NaN,NaN,0):null}function xu(t){return new Su(t>>16&255,t>>8&255,255&t,1)}function Eu(t,e,n,r){return r<=0&&(t=e=n=NaN),new Su(t,e,n,r)}function Tu(t){return t instanceof au||(t=bu(t)),t?new Su((t=t.rgb()).r,t.g,t.b,t.opacity):new Su}function Au(t,e,n,r){return 1===arguments.length?Tu(t):new Su(t,e,n,null==r?1:r)}function Su(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Iu(){return"#"+Nu(this.r)+Nu(this.g)+Nu(this.b)}function Du(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function Nu(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function ku(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Zu(t,e,n,r)}function Cu(t){if(t instanceof Zu)return new Zu(t.h,t.s,t.l,t.opacity);if(t instanceof au||(t=bu(t)),!t)return new Zu;if(t instanceof Zu)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n0&&u<1?0:a,new Zu(a,s,u,t.opacity)}function Zu(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Mu(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Ou(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}iu(au,bu,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:_u,formatHex:_u,formatHsl:function(){return Cu(this).formatHsl()},formatRgb:wu,toString:wu}),iu(Su,Au,ou(au,{brighter:function(t){return t=null==t?su:Math.pow(su,t),new Su(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Su(this.r*t,this.g*t,this.b*t,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:Iu,formatHex:Iu,formatRgb:Du,toString:Du})),iu(Zu,function(t,e,n,r){return 1===arguments.length?Cu(t):new Zu(t,e,n,null==r?1:r)},ou(au,{brighter:function(t){return t=null==t?su:Math.pow(su,t),new Zu(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Zu(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Su(Mu(t>=240?t-240:t+120,i,r),Mu(t,i,r),Mu(t<120?t+240:t-120,i,r),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 t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Lu=t=>()=>t;function Ru(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Lu(isNaN(t)?e:t)}var Uu=function t(e){var n=function(t){return 1==(t=+t)?Ru:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Lu(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=Au(t)).r,(e=Au(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=Ru(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function Pu(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1];return Ou((n-r/e)*e,r>0?t[r-1]:2*i-o,i,o,ro&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:qu(n,r)})),o=ju.lastIndex;return o0)throw new Error("too late; already scheduled");return n}function Hu(t,e){var n=Qu(t,e);if(n.state>3)throw new Error("too late; already running");return n}function Qu(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var Wu,$u=180/Math.PI,Xu={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ku(t,e,n,r,i,o){var a,s,u;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),t*r180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:qu(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,s,u),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:qu(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,s,u),function(t,e,n,r,o,a){if(t!==n||e!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:qu(t,n)},{i:s-2,x:qu(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,u),o=a=null,function(t){for(var e,n=-1,r=u.length;++n=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?Vu:Hu;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var Ec=ru.prototype.constructor;function Tc(t){return function(){this.style.removeProperty(t)}}function Ac(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Sc(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&Ac(t,o,n)),r}return o._value=e,o}function Ic(t){return function(e){this.textContent=t.call(this,e)}}function Dc(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Ic(r)),e}return r._value=t,r}var Nc=0;function kc(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Cc(){return++Nc}var Zc=ru.prototype;kc.prototype=(function(t){return ru().transition(t)}).prototype={constructor:kc,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Ga(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}}(this,t)})},ru.prototype.transition=function(t){var e,n;t instanceof kc?(e=t._id,t=t._name):(e=Cc(),(n=Mc).time=(0,Go.zO)(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Bc(t){if(!(e=Yc.exec(t)))throw new Error("invalid format: "+t);var e;return new zc({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function zc(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}Bc.prototype=zc.prototype,zc.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};var Gc,Jc=Array.prototype.map;function Vc(t,e,n,r,i){for(var o,a=t.children,s=-1,u=a.length,c=t.value&&(r-e)/t.value;++s=0;)e+=n[r].value;else e=1;t.value=e}function Wc(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=Xc)):void 0===e&&(e=$c);for(var n,r,i,o,a,s=new el(t),u=[s];n=u.pop();)if((i=e(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)u.push(r=i[o]=new el(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(tl)}function $c(t){return t.children}function Xc(t){return Array.isArray(t)?t[1]:null}function Kc(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function tl(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function el(t){this.data=t,this.depth=this.height=0,this.parent=null}void 0===(Gc={thousands:",",grouping:[3],currency:["$",""]}).grouping||void 0===Gc.thousands||Jc.call(Gc.grouping,Number),void 0===Gc.numerals||Jc.call(Gc.numerals,String),function t(e){function n(t,n,r,i,o){!function(t,e,n,r,i,o){for(var a,s,u,c,l,h,f,d,p,g,m,v=[],y=e.children,_=0,w=0,b=y.length,x=e.value;_f&&(f=s),m=l*l*g,(d=Math.max(f/m,m/h))>p){l-=s;break}p=d}v.push(a={value:l,dice:u1?e:1)},n}((1+Math.sqrt(5))/2),el.prototype=Wc.prototype={constructor:el,count:function(){return this.eachAfter(Qc)},each:function(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this},eachAfter:function(t,e){for(var n,r,i,o=this,a=[o],s=[],u=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r=0;--r)o.push(n[r]);return this},find:function(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r},sum:function(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)r.push(e=e.parent);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e},copy:function(){return Wc(this).eachBefore(Kc)},[Symbol.iterator]:function*(){var t,e,n,r,i=this,o=[i];do{for(t=o.reverse(),o=[];i=t.pop();)if(yield i,e=i.children)for(n=0,r=e.length;n{class t{constructor(t,e,n){this.applicationRef=t,this.componentFactoryResolver=e,this.injector=n}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.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(t){this._container=t}getComponentRootNode(t){return t.element?t.element.nativeElement:t.hostView&&t.hostView.rootNodes.length>0?t.hostView.rootNodes[0]:t.location.nativeElement}getRootViewContainerNode(t){return this.getComponentRootNode(t)}projectComponentBindings(t,e){if(e){if(void 0!==e.inputs){const n=Object.getOwnPropertyNames(e.inputs);for(const r of n)t.instance[r]=e.inputs[r]}if(void 0!==e.outputs){const n=Object.getOwnPropertyNames(e.outputs);for(const r of n)t.instance[r]=e.outputs[r]}}return t}appendComponent(t,e={},n){n||(n=this.getRootViewContainer());const r=this.getComponentRootNode(n),i=new Re.F0(r,this.componentFactoryResolver,this.applicationRef,this.injector),o=new Re.C5(t),a=i.attach(o);return this.projectComponentBindings(a,e),a}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.z2F),s.LFG(s._Vd),s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function ul(t,e,n){let r,i,o;n=n||{};let a=null,s=0;function u(){s=!1===n.leading?0:+new Date,a=null,o=t.apply(r,i)}return function(){const c=+new Date;s||!1!==n.leading||(s=c);const l=e-(c-s);return r=this,i=arguments,l<=0?(clearTimeout(a),a=null,s=c,o=t.apply(r,i)):a||!1===n.trailing||(a=setTimeout(u,l)),o}}var cl=function(t){return t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right",t}({});function ll(t,e,n){return"top"===n?t.top-7:"bottom"===n?t.top+t.height-e.height+7:"center"===n?t.top+t.height/2-e.height/2:void 0}function hl(t,e,n){return"left"===n?t.left-7:"right"===n?t.left+t.width-e.width+7:"center"===n?t.left+t.width/2-e.width/2:void 0}class fl{static calculateVerticalAlignment(t,e,n){let r=ll(t,e,n);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r}static calculateVerticalCaret(t,e,n,r){let i;"top"===r&&(i=t.height/2-n.height/2+7),"bottom"===r&&(i=e.height-t.height/2-n.height/2-7),"center"===r&&(i=e.height/2-n.height/2);const o=ll(t,e,r);return o+e.height>window.innerHeight&&(i+=o+e.height-window.innerHeight),i}static calculateHorizontalAlignment(t,e,n){let r=hl(t,e,n);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r}static calculateHorizontalCaret(t,e,n,r){let i;"left"===r&&(i=t.width/2-n.width/2+7),"right"===r&&(i=e.width-t.width/2-n.width/2-7),"center"===r&&(i=e.width/2-n.width/2);const o=hl(t,e,r);return o+e.width>window.innerWidth&&(i+=o+e.width-window.innerWidth),i}static shouldFlip(t,e,n,r){let i=!1;return"right"===n&&t.left+t.width+e.width+r>window.innerWidth&&(i=!0),"left"===n&&t.left-e.width-r<0&&(i=!0),"top"===n&&t.top-e.height-r<0&&(i=!0),"bottom"===n&&t.top+t.height+e.height+r>window.innerHeight&&(i=!0),i}static positionCaret(t,e,n,r,i){let o=0,a=0;return t===cl.right?(a=-7,o=fl.calculateVerticalCaret(n,e,r,i)):t===cl.left?(a=e.width,o=fl.calculateVerticalCaret(n,e,r,i)):t===cl.top?(o=e.height,a=fl.calculateHorizontalCaret(n,e,r,i)):t===cl.bottom&&(o=-7,a=fl.calculateHorizontalCaret(n,e,r,i)),{top:o,left:a}}static positionContent(t,e,n,r,i){let o=0,a=0;return t===cl.right?(a=n.left+n.width+r,o=fl.calculateVerticalAlignment(n,e,i)):t===cl.left?(a=n.left-e.width-r,o=fl.calculateVerticalAlignment(n,e,i)):t===cl.top?(o=n.top-e.height-r,a=fl.calculateHorizontalAlignment(n,e,i)):t===cl.bottom&&(o=n.top+n.height+r,a=fl.calculateHorizontalAlignment(n,e,i)),{top:o,left:a}}static determinePlacement(t,e,n,r){if(fl.shouldFlip(n,e,t,r)){if(t===cl.right)return cl.left;if(t===cl.left)return cl.right;if(t===cl.top)return cl.bottom;if(t===cl.bottom)return cl.top}return t}}let dl=(()=>{class t{constructor(t,e,n){this.element=t,this.renderer=e,this.platformId=n}get cssClasses(){let t="ngx-charts-tooltip-content";return t+=` position-${this.placement}`,t+=` type-${this.type}`,t+=` ${this.cssClass}`,t}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,i.NF)(this.platformId))return;const t=this.element.nativeElement,e=this.host.nativeElement.getBoundingClientRect();if(!e.height&&!e.width)return;const n=t.getBoundingClientRect();this.checkFlip(e,n),this.positionContent(t,e,n),this.showCaret&&this.positionCaret(e,n),setTimeout(()=>this.renderer.addClass(t,"animate"),1)}positionContent(t,e,n){const{top:r,left:i}=fl.positionContent(this.placement,n,e,this.spacing,this.alignment);this.renderer.setStyle(t,"top",`${r}px`),this.renderer.setStyle(t,"left",`${i}px`)}positionCaret(t,e){const n=this.caretElm.nativeElement,r=n.getBoundingClientRect(),{top:i,left:o}=fl.positionCaret(this.placement,e,t,r,this.alignment);this.renderer.setStyle(n,"top",`${i}px`),this.renderer.setStyle(n,"left",`${o}px`)}checkFlip(t,e){this.placement=fl.determinePlacement(this.placement,e,t,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(s.Lbi))},t.\u0275cmp=s.Xpm({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(t,e){if(1&t&&s.Gf(nl,5),2&t){let t;s.iGM(t=s.CRH())&&(e.caretElm=t.first)}},hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("resize",function(){return e.onWindowResize()},!1,s.Jf7),2&t&&s.Tol(e.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",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(t,e){1&t&&(s.TgZ(0,"div"),s._UZ(1,"span",0,1),s.TgZ(3,"div",2),s.YNc(4,ol,2,4,"span",3),s.YNc(5,al,1,1,"span",4),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Gre("tooltip-caret position-",e.placement,""),s.Q6J("hidden",!e.showCaret),s.xp6(3),s.Q6J("ngIf",!e.title),s.xp6(1),s.Q6J("ngIf",e.title))},directives:[i.O5,i.tP],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.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{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);o>3&&a&&Object.defineProperty(e,n,a)}([(100,function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:ul(n.value,100,undefined)}),this[e]}}})],t.prototype,"onWindowResize",null),t})(),pl=(()=>{class t extends class{constructor(t){this.injectionService=t,this.defaults={},this.components=new Map}getByType(t=this.type){return this.components.get(t)}create(t){return this.createByType(this.type,t)}createByType(t,e){e=this.assignDefaults(e);const n=this.injectComponent(t,e);return this.register(t,n),n}destroy(t){const e=this.components.get(t.componentType);if(e&&e.length){const n=e.indexOf(t);n>-1&&(e[n].destroy(),e.splice(n,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(t){const e=this.components.get(t);if(e&&e.length){let t=e.length-1;for(;t>=0;)this.destroy(e[t--])}}injectComponent(t,e){return this.injectionService.appendComponent(t,e)}assignDefaults(t){const e=Object.assign({},this.defaults.inputs),n=Object.assign({},this.defaults.outputs);return t.inputs||t.outputs||(t={inputs:t}),e&&(t.inputs=Object.assign(Object.assign({},e),t.inputs)),n&&(t.outputs=Object.assign(Object.assign({},n),t.outputs)),t}register(t,e){this.components.has(t)||this.components.set(t,[]),this.components.get(t).push(e)}}{constructor(t){super(t),this.type=dl}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(sl))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),gl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[i.ez]]}),t})();var ml=function(t){return t[t.popover="popover"]="popover",t[t.tooltip="tooltip"]="tooltip",t}({}),vl=function(t){return t[t.left="left"]="left",t[t.center="center"]="center",t[t.right="right"]="right",t}({}),yl=function(t){return t[t.all="all"]="all",t[t.focus="focus"]="focus",t[t.mouseover="mouseover"]="mouseover",t}({});let _l,wl=(()=>{class t{constructor(t,e,n){this.tooltipService=t,this.viewContainerRef=e,this.renderer=n,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=cl.top,this.tooltipAlignment=vl.center,this.tooltipType=ml.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=yl.all,this.tooltipImmediateExit=!1,this.show=new s.vpe,this.hide=new s.vpe}get listensForFocus(){return this.tooltipShowEvent===yl.all||this.tooltipShowEvent===yl.focus}get listensForHover(){return this.tooltipShowEvent===yl.all||this.tooltipShowEvent===yl.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(t){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(t))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(t){if(this.component||this.tooltipDisabled)return;const e=t?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?300:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const t=this.createBoundOptions();this.component=this.tooltipService.create(t),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},e)}addHideListeners(t){this.mouseEnterContentEvent=this.renderer.listen(t,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(t,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",e=>{t.contains(e.target)||this.hideTooltip()}))}hideTooltip(t=!1){if(!this.component)return;const e=()=>{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),t?e():this.timeout=setTimeout(e,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 t.\u0275fac=function(e){return new(e||t)(s.Y36(pl),s.Y36(s.s_b),s.Y36(s.Qsj))},t.\u0275dir=s.lG2({type:t,selectors:[["","ngx-tooltip",""]],hostBindings:function(t,e){1&t&&s.NdJ("focusin",function(){return e.onFocus()})("blur",function(){return e.onBlur()})("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(t){return e.onMouseLeave(t.target)})("click",function(){return e.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",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),t})(),bl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[sl,pl],imports:[[i.ez]]}),t})();"undefined"!=typeof window?_l=window:"undefined"!=typeof global&&(_l=global);let xl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[i.ez,gl,bl],i.ez,gl,bl]}),t})(),El=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl]]}),t})(),Tl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl]]}),t})(),Al=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl]]}),t})(),Sl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl]]}),t})(),Il=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl]]}),t})();Math;let Dl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl]]}),t})(),Nl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl,Dl,Il]]}),t})(),kl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl]]}),t})(),Cl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl]]}),t})(),Zl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[xl,Dl,Tl]]}),t})(),Ml=(()=>{class t{constructor(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[xl,El,Tl,Al,Sl,Il,Nl,kl,Dl,Cl,Zl]}),t})();function Ol(t,e){1&t&&(s.TgZ(0,"div"),s._UZ(1,"mat-spinner",3),s.qZA())}function Ll(t,e){if(1&t&&(s.TgZ(0,"span"),s._uU(1),s.ALo(2,"translate"),s.TgZ(3,"strong"),s._uU(4),s.qZA(),s.qZA()),2&t){const t=s.oxw(3);s.xp6(1),s.hij(" ",s.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_3")," "),s.xp6(3),s.Oqu(t.service)}}function Rl(t,e){1&t&&(s.O4$(),s.TgZ(0,"marker",10),s._UZ(1,"path",11),s.qZA())}function Ul(t,e){if(1&t&&(s.O4$(),s.TgZ(0,"g",12),s._UZ(1,"rect"),s.TgZ(2,"text",13),s._uU(3),s.qZA(),s.qZA()),2&t){const t=e.$implicit;s.Q6J("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",t.tooltip),s.xp6(1),s.uIk("width",t.dimension.width)("height",t.dimension.height)("fill",t.color),s.xp6(1),s.uIk("x",10)("y",t.dimension.height/2),s.xp6(1),s.Oqu(t.label)}}function Pl(t,e){if(1&t&&(s.O4$(),s.TgZ(0,"g",14),s._UZ(1,"path",15),s.TgZ(2,"text",16),s.TgZ(3,"textPath",17),s._uU(4),s.qZA(),s.qZA(),s.qZA()),2&t){const t=e.$implicit;s.xp6(3),s.uIk("href","#"+t.id),s.xp6(1),s.hij(" ",t.label," ")}}const ql=function(t,e){return[t,e]};function Fl(t,e){if(1&t&&(s.TgZ(0,"div"),s._uU(1),s.ALo(2,"translate"),s.TgZ(3,"strong"),s._uU(4),s.qZA(),s._uU(5),s.ALo(6,"translate"),s.TgZ(7,"strong"),s._uU(8),s.qZA(),s.YNc(9,Ll,5,4,"span",4),s.TgZ(10,"div",5),s.TgZ(11,"ngx-graph",6),s.YNc(12,Rl,2,0,"ng-template",null,7,s.W1O),s.YNc(14,Ul,4,9,"ng-template",null,8,s.W1O),s.YNc(16,Pl,5,2,"ng-template",null,9,s.W1O),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.hij(" ",s.lcZ(2,12,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_1")," "),s.xp6(3),s.AsE("",t.user.firstName," ",t.user.lastName,""),s.xp6(1),s.hij(" ",s.lcZ(6,14,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_2")," "),s.xp6(3),s.Oqu(t.destination),s.xp6(1),s.Q6J("ngIf","noService"!==t.service),s.xp6(2),s.Q6J("links",t.hierarchialGraph.links)("nodes",t.hierarchialGraph.nodes)("curve",t.curve)("draggingEnabled",!1)("zoomToFit$",t.zoomToFit$)("view",s.WLB(16,ql,t.innerWidth,t.innerHeight))}}function jl(t,e){if(1&t&&(s.TgZ(0,"span"),s._uU(1),s.ALo(2,"translate"),s.TgZ(3,"strong"),s._uU(4),s.qZA(),s.qZA()),2&t){const t=s.oxw(3);s.xp6(1),s.hij(" ",s.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_3")," "),s.xp6(3),s.Oqu(t.service)}}function Yl(t,e){if(1&t&&(s._uU(0),s.ALo(1,"translate"),s.TgZ(2,"strong"),s._uU(3),s.qZA(),s._uU(4),s.ALo(5,"translate"),s.TgZ(6,"strong"),s._uU(7),s.qZA(),s.YNc(8,jl,5,4,"span",4),s._uU(9),s.ALo(10,"translate")),2&t){const t=s.oxw(2);s.hij(" ",s.lcZ(1,7,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_1")," "),s.xp6(3),s.AsE("",t.user.firstName," ",t.user.lastName,""),s.xp6(1),s.hij(" ",s.lcZ(5,9,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_2")," "),s.xp6(3),s.Oqu(t.destination),s.xp6(1),s.Q6J("ngIf","noService"!==t.service),s.xp6(1),s.hij(" ",s.lcZ(10,11,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_4")," ")}}function Bl(t,e){if(1&t&&(s.YNc(0,Fl,18,19,"div",1),s.YNc(1,Yl,11,13,"ng-template",null,2,s.W1O)),2&t){const t=s.MAs(2),e=s.oxw();s.Q6J("ngIf",e.isConnected)("ngIfElse",t)}}let zl=(()=>{class t{constructor(t,e,n,r,i,o,a,s,u){this.route=t,this.facilityManager=e,this.userService=n,this.membersService=r,this.serviceService=i,this.resourceManager=o,this.groupService=a,this.voService=s,this.translate=u,this.idCounter=0,this.isConnected=!1,this.loading=!0,this.hierarchialGraph={nodes:[],links:[]},this.curve=Ce,this.zoomToFit$=new Ze.xQ}ngOnInit(){this.innerWidth=window.innerWidth<600?window.innerWidth:window.innerWidth-420,this.innerHeight=window.innerHeight,this.getLocalizedNames(),this.route.queryParams.subscribe(t=>{console.log(t),this.destination=t.destination,this.service=t.service,this.userService.getUserById(t.user).subscribe(t=>{this.user=t,this.facilityManager.getFacilitiesByDestination(this.destination).subscribe(t=>{this.facilities=t,this.membersService.getMembersByUser(this.user.id).subscribe(t=>{if(this.membership=t,0===this.membership.length||0===this.facilities.length)return this.loading=!1,void(this.isConnected=!1);this.showGraph()})})})})}showGraph(){const t=""+this.id();this.hierarchialGraph.nodes=[...this.hierarchialGraph.nodes,{id:t,label:this.user.firstName+" "+this.user.lastName,tooltip:this.localUser,color:"#FFFFCC",tip:"user: "+this.user.id}];const e=""+this.id(),n="destination no id";this.hierarchialGraph.nodes="noService"===this.service?[...this.hierarchialGraph.nodes,{id:e,label:this.destination,tooltip:this.localDestination+": "+this.destination,color:"#E0E0E0",tip:n}]:[...this.hierarchialGraph.nodes,{id:e,label:this.service+": "+this.destination,tooltip:this.localService+": "+this.service+", "+this.localDestination+": "+this.destination,color:"#E0E0E0",tip:n}];for(const r of this.facilities)this.serviceService.getAllRichDestinationsForFacility(r.id).subscribe(t=>{this.connectToService(r,t),this.delay(2e3).then(()=>{this.zoomToFit$.next(!0),this.loading=!1})})}connectToService(t,e){this.isConnectedToService(e)&&this.facilityManager.getAssignedResourcesForFacility(t.id).subscribe(e=>{for(let n=0;n{0!==r.length&&this.groupService.getMemberGroups(e.id).subscribe(e=>{const i=this.findConnectedGroups(r,e);if(0!==i.length)for(const r of i)this.connectToResource(t,r,n)})})}connectToResource(t,e,n){this.resourceManager.getAssignedResourcesWithGroup(e.id).subscribe(r=>{const i=this.findConnectedResources(r,n);for(const n of i)this.resourceManager.getAssignedServicesToResource(n.id).subscribe(r=>{this.haveService(r)&&(this.isConnected=!0,this.addNodesToGraph(e.voId,e,n,t))})})}addNodesToGraph(t,e,n,r){if(-1===this.findEntityInGraph("Facility: "+r.id)){const t=""+this.id();this.hierarchialGraph.nodes=[...this.hierarchialGraph.nodes,{id:t,label:this.localFacility+": "+r.name,tooltip:r.description,color:"#FFCCFF",tip:"Facility: "+r.id}];const e={source:t,target:this.hierarchialGraph.nodes[this.findEntityInGraph("destination no id")].id};this.hierarchialGraph.links=[...this.hierarchialGraph.links,e]}this.voService.getVoById(t).subscribe(t=>{if(-1===this.findEntityInGraph("Vo: "+t.id)){const e=""+this.id();this.hierarchialGraph.nodes=[...this.hierarchialGraph.nodes,{id:e,label:this.localVo+": "+t.shortName,tooltip:t.name,color:"#E5FFCC",tip:"Vo: "+t.id}];const n={source:this.hierarchialGraph.nodes[this.findEntityInGraph("user: "+this.user.id)].id,target:e};this.hierarchialGraph.links=[...this.hierarchialGraph.links,n]}if(-1===this.findEntityInGraph("Group: "+e.id)){const n=""+this.id();this.hierarchialGraph.nodes=[...this.hierarchialGraph.nodes,{id:n,label:this.localGroup+": "+e.name,tooltip:e.description,color:"#CCE5FF",tip:"Group: "+e.id}];const r={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Vo: "+t.id)].id,target:n};this.hierarchialGraph.links=[...this.hierarchialGraph.links,r]}const i=this.findEntityInGraph("Resource: "+n.id);if(-1!==i){const t={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Group: "+e.id)].id,target:this.hierarchialGraph.nodes[i].id};this.hierarchialGraph.links=[...this.hierarchialGraph.links,t]}else{const t=""+this.id();this.hierarchialGraph.nodes=[...this.hierarchialGraph.nodes,{id:t,label:this.localResource+": "+n.name,tooltip:n.description,color:"#FFCCCC",tip:"Resource: "+n.id}];const i={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Group: "+e.id)].id,target:t};this.hierarchialGraph.links=[...this.hierarchialGraph.links,i];const o={source:t,target:this.hierarchialGraph.nodes[this.findEntityInGraph("Facility: "+r.id)].id};this.hierarchialGraph.links=[...this.hierarchialGraph.links,o]}})}haveService(t){if("noService"===this.service)return!0;for(const e of t)if(this.service===e.name)return!0;return!1}findConnectedGroups(t,e){const n=[];for(let r=0;rsetTimeout(()=>e(),t)).then(()=>console.log("fired"))})}onResize(){this.innerWidth=window.innerWidth<600?window.innerWidth:window.innerWidth-420,this.innerHeight=window.innerHeight}getLocalizedNames(){this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.USER").subscribe(t=>{this.localUser=t}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.VO").subscribe(t=>{this.localVo=t}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.GROUP").subscribe(t=>{this.localGroup=t}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.RESOURCE").subscribe(t=>{this.localResource=t}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.FACILITY").subscribe(t=>{this.localFacility=t}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.SERVICE").subscribe(t=>{this.localService=t}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.DESTINATION").subscribe(t=>{this.localDestination=t})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(o.gz),s.Y36(b.IQ),s.Y36(b.Fv),s.Y36(b.uq),s.Y36(b.KK),s.Y36(b.xk),s.Y36(b.ff),s.Y36(b.YF),s.Y36(f.sK))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-user-destination-graph"]],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("resize",function(t){return e.onResize(t)},!1,s.Jf7),2&t&&s.ekj("router-component",e.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","curve","draggingEnabled","zoomToFit$","view"],["defsTemplate",""],["nodeTemplate",""],["linkTemplate",""],["id","arrow","viewBox","0 -5 10 10","refX","8","refY","0","markerWidth","4","markerHeight","4","orient","auto"],["d","M0,-5L10,0L0,5",1,"arrow-head"],["ngx-tooltip","",1,"node",3,"tooltipPlacement","tooltipType","tooltipTitle"],["alignment-baseline","central"],[1,"edge"],["stroke-width","2","marker-end","url(#arrow)",1,"line"],["text-anchor","end",1,"edge-label"],["startOffset","60%",2,"fill","#000"]],template:function(t,e){if(1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.YNc(3,Ol,2,0,"div",1),s.YNc(4,Bl,3,2,"ng-template",null,2,s.W1O)),2&t){const t=s.MAs(5);s.xp6(1),s.hij(" ",s.lcZ(2,3,"ADMIN.VISUALIZER.USER_DESTINATION.TITLE"),"\n"),s.xp6(2),s.Q6J("ngIf",e.loading)("ngIfElse",t)}},directives:[i.O5,E.$g,Fa,wl],pipes:[f.X$],styles:[""]}),t})();var Gl=n(71313),Jl=n(2898),Vl=n(22196);function Hl(t,e){1&t&&s._UZ(0,"mat-spinner",3)}function Ql(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",12),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).editUser()}),s.TgZ(1,"mat-icon"),s._uU(2,"edit"),s.qZA(),s.qZA()}}const Wl=function(){return{color:"black"}},$l=function(t){return["/admin/users",t]};function Xl(t,e){if(1&t&&(s.TgZ(0,"div",4),s._UZ(1,"mat-icon",5),s.ALo(2,"translate"),s.TgZ(3,"div",6),s.TgZ(4,"div",7),s.TgZ(5,"a",8),s._uU(6),s.ALo(7,"userFullName"),s.qZA(),s.TgZ(8,"span",9),s._uU(9),s.qZA(),s.YNc(10,Ql,3,0,"button",10),s.qZA(),s.TgZ(11,"div"),s._uU(12),s.ALo(13,"translate"),s.qZA(),s.TgZ(14,"span",11),s._uU(15),s.ALo(16,"translate"),s.ALo(17,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.s9C("matTooltip",s.lcZ(2,12,"ADMIN_USER.ENTITY")),s.Q6J("ngStyle",s.DdM(22,Wl))("svgIcon",t.svgIcon),s.xp6(4),s.Q6J("routerLink",s.VKq(23,$l,t.user.id)),s.xp6(1),s.hij(" ",s.lcZ(7,14,t.user)," "),s.xp6(3),s.hij(" \xa0#",t.user.id," "),s.xp6(1),s.Q6J("ngIf",t.authResolver.isPerunAdmin()),s.xp6(2),s.AsE(" ",s.lcZ(13,16,"ADMIN_USER.UUID"),": ",t.user.uuid," "),s.xp6(3),s.lnq(" ",s.lcZ(16,18,"ADMIN_USER.ENTITY"),", ",s.lcZ(17,20,"ADMIN_USER.USER_TYPE"),": ",t.getUserType()," ")}}let Kl=(()=>{class t{constructor(t,e,n,r,i,o,a){this.route=t,this.usersService=e,this.sideMenuService=n,this.sideMenuItemService=r,this.dialog=i,this.authResolver=o,this.entityStorageService=a,this.loading=!1,this.svgIcon="perun-user-dark"}ngOnInit(){this.loading=!0,this.route.params.subscribe(t=>{const e=t.userId;this.entityStorageService.setEntity({id:Number(e),beanName:"User"}),this.path=`/admin/users/${e}`,this.regex="/admin/users/\\d+",this.usersService.getUserById(e).subscribe(t=>{this.user=t,this.user.serviceUser&&(this.svgIcon="perun-service-identity");const e=this.sideMenuItemService.parseUser(t,this.path,this.regex);this.sideMenuService.setAdminItems([e]),this.loading=!1},()=>this.loading=!1)})}editUser(){const t=(0,tt.kZ)();t.width="450px",t.data={theme:"admin-theme",user:this.user},this.dialog.open(Jl.x,t).afterClosed().subscribe(t=>{t&&this.usersService.getUserById(this.user.id).subscribe(t=>{this.user=t})})}getUserType(){return this.user.serviceUser?"Service":"Person"}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(o.gz),s.Y36(b.Fv),s.Y36(u.D),s.Y36(a.V),s.Y36(y.uw),s.Y36(w.x4),s.Y36(w.fb))},t.\u0275cmp=s.Xpm({type:t,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,"matTooltip","ngStyle","svgIcon"],[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"],["mat-icon-button","",3,"click"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s._UZ(1,"perun-web-apps-back-button"),s.YNc(2,Hl,1,0,"mat-spinner",1),s.YNc(3,Xl,18,25,"div",2),s._UZ(4,"app-animated-router-outlet"),s.qZA()),2&t&&(s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading&&void 0!==e.user))},directives:[c.W,i.O5,h.A,E.$g,l.Hw,M.gM,i.PC,o.yS,x.lW],pipes:[f.X$,Vl.d],styles:[""]}),t})();var th=n(71956),eh=n(15879),nh=n(31612),rh=n(95690),ih=n(4359);function oh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",5),s.NdJ("click",function(){return s.CHM(t),s.oxw().onLoad()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"ADMIN.EXT_SOURCES.LOAD")," "))}function ah(t,e){1&t&&s._UZ(0,"mat-spinner",6)}const sh=function(){return["id","name","type"]};function uh(t,e){if(1&t&&s._UZ(0,"app-ext-sources-list",7),2&t){const t=s.oxw();s.Q6J("extSources",t.extSources)("filterValue",t.filterValue)("displayedColumns",s.DdM(4,sh))("tableId",t.tableId)}}let ch=(()=>{class t{constructor(t,e,n,r){this.extSourceService=t,this.notificator=e,this.translate=n,this.authResolver=r,this.extSources=[],this.filterValue="",this.loading=!1,this.tableId=et.qy,this.translate.get("ADMIN.EXT_SOURCES.LOAD_SUCCESS").subscribe(t=>this.loadSuccess=t)}ngOnInit(){this.refreshTable()}applyFilter(t){this.filterValue=t}onLoad(){this.extSourceService.loadExtSourcesDefinitions().subscribe(()=>{this.notificator.showSuccess(this.loadSuccess),this.refreshTable()})}refreshTable(){this.loading=!0,this.extSourceService.getExtSources().subscribe(t=>{this.extSources=t,this.loading=!1})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.KG),s.Y36(w.V6),s.Y36(f.sK),s.Y36(w.x4))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-admin-ext-sources"]],decls:8,vars:7,consts:[[1,"page-subtitle"],["mat-stroked-button","","class","mr-2",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(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,oh,3,3,"button",1),s.TgZ(5,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.YNc(6,ah,1,0,"mat-spinner",3),s.YNc(7,uh,1,5,"app-ext-sources-list",4),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,5,"ADMIN.EXT_SOURCES.TITLE")),s.xp6(2),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("placeholder","ADMIN.EXT_SOURCES.SEARCH"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[i.O5,at.L,x.lW,E.$g,ih.D],pipes:[f.X$],styles:[""]}),t})();var lh=n(7233),hh=n(52384),fh=n(56238),dh=n(79996);function ph(t,e){1&t&&s._UZ(0,"mat-spinner",7)}function gh(t,e){if(1&t&&(s.TgZ(0,"mat-option",14),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.hij(" ",t.name," ")}}function mh(t,e){if(1&t&&(s.TgZ(0,"div"),s.TgZ(1,"mat-form-field",8),s._UZ(2,"input",9),s.ALo(3,"translate"),s.TgZ(4,"mat-error"),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA(),s.TgZ(7,"mat-form-field",8),s._UZ(8,"input",10),s.ALo(9,"translate"),s.TgZ(10,"mat-error"),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.TgZ(13,"mat-autocomplete",11,12),s.YNc(15,gh,2,2,"mat-option",13),s.ALo(16,"async"),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.MAs(14),e=s.oxw();s.xp6(2),s.s9C("placeholder",s.lcZ(3,9,"DIALOGS.ADD_USER_EXT_SOURCE.LOGIN")),s.Q6J("formControl",e.loginControl),s.xp6(3),s.hij(" ",s.lcZ(6,11,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_LOGIN")," "),s.xp6(3),s.s9C("placeholder",s.lcZ(9,13,"DIALOGS.ADD_USER_EXT_SOURCE.EXT_SOURCE")),s.Q6J("formControl",e.extSourcesControl)("matAutocomplete",t),s.xp6(3),s.hij(" ",s.lcZ(12,15,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_EXT_SOURCE")," "),s.xp6(2),s.Q6J("displayWith",e.displayFn),s.xp6(2),s.Q6J("ngForOf",s.lcZ(16,17,e.filteredExtSources))}}let vh=(()=>{class t{constructor(t,e,n,r,i,o){this.dialogRef=t,this.data=e,this.extSourcesManagerService=n,this.usersManagerService=r,this.translate=i,this.notificator=o,this.extSources=[],i.get("DIALOGS.ADD_USER_EXT_SOURCE.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.loading=!0,this.loginControl=new R.NI("",[R.kI.required,R.kI.pattern(".*[\\S]+.*")]),this.extSourcesControl=new R.NI("",[R.kI.required]),this.loginControl.markAllAsTouched(),this.extSourcesControl.markAllAsTouched(),this.filteredExtSources=this.extSourcesControl.valueChanges.pipe((0,fh.O)(""),(0,dh.U)(t=>this._filter(t))),this.extSourcesManagerService.getExtSources().subscribe(t=>{this.extSources=t,this.filteredExtSources=this.extSourcesControl.valueChanges.pipe((0,fh.O)(""),(0,dh.U)(t=>this._filter(t))),this.loading=!1},()=>this.loading=!1)}displayFn(t){return t?t.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(t){const e="string"==typeof t?t.toLowerCase():t.name.toLowerCase;return this.extSources.filter(t=>t.name.toLowerCase().includes(e))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(b.KG),s.Y36(b.Fv),s.Y36(f.sK),s.Y36(w.V6))},t.\u0275cmp=s.Xpm({type:t,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","","type","text","required","",3,"formControl","matAutocomplete","placeholder"],[3,"displayWith"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s.YNc(4,ph,1,0,"mat-spinner",2),s.YNc(5,mh,17,19,"div",3),s.qZA(),s.TgZ(6,"div",4),s.TgZ(7,"button",5),s.NdJ("click",function(){return e.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",6),s.NdJ("click",function(){return e.onAdd()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,6,"DIALOGS.ADD_USER_EXT_SOURCE.TITLE")),s.xp6(3),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,8,"DIALOGS.ADD_USER_EXT_SOURCE.CANCEL")," "),s.xp6(2),s.Q6J("disabled",e.loginControl.invalid||e.extSourcesControl.invalid||e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,10,"DIALOGS.ADD_USER_EXT_SOURCE.ADD")," "))},directives:[y.uh,y.xY,i.O5,y.H8,x.lW,E.$g,O.KE,L.Nt,R.Fj,R.Q7,R.JJ,R.oH,O.TO,ye.ZL,ye.XC,i.sg,j.ey],pipes:[f.X$,i.Ov],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}"]}),t})();var yh=n(6527),_h=n(23888);function wh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().addIdentity()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"USER_DETAIL.IDENTITIES.ADD"),"\n"))}function bh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().removeIdentity()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"USER_DETAIL.IDENTITIES.REMOVE"),"\n")}}function xh(t,e){1&t&&s._UZ(0,"mat-spinner",10)}function Eh(t,e){if(1&t&&(s.TgZ(0,"div"),s._UZ(1,"perun-web-apps-user-ext-sources-list",11),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("displayedColumns",t.displayedColumns)("filterValue",t.filterValue)("selection",t.selection)("userExtSources",t.userExtSources)("tableId",t.tableId)}}let Th=(()=>{class t{constructor(t,e,n,r,i,o){this.usersManagerService=t,this.storage=e,this.registrarManagerService=n,this.dialog=r,this.route=i,this.authResolver=o,this.userExtSources=[],this.selection=new v.Ov(!1,[]),this.displayedColumns=["select","id","extSourceName","login","lastAccess"],this.tableId=et.gG,this.filterValue=""}ngOnInit(){this.route.parent.params.subscribe(t=>{this.userId=t.userId}),this.refreshTable()}refreshTable(){this.loading=!0,this.selection.clear(),this.usersManagerService.getRichUserExtSources(this.userId).subscribe(t=>{this.userExtSources=t,this.loading=!1},()=>this.loading=!1)}addIdentity(){const t=(0,tt.kZ)();t.width="1000px",t.data={userId:this.userId},this.dialog.open(vh,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}removeIdentity(){const t=(0,tt.kZ)();t.width="450px",t.data={showSuccess:!0,theme:"user-theme",userId:this.userId,extSources:this.selection.selected},this.dialog.open(yh.Lc,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.Fv),s.Y36(w.d6),s.Y36(b.tk),s.Y36(y.uw),s.Y36(o.gz),s.Y36(w.x4))},t.\u0275cmp=s.Xpm({type:t,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","userExtSources","tableId"]],template:function(t,e){1&t&&(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 e.refreshTable()}),s.qZA(),s.YNc(4,wh,3,3,"button",2),s.YNc(5,bh,3,4,"button",3),s.TgZ(6,"perun-web-apps-immediate-filter",4),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.TgZ(7,"div",5),s.YNc(8,xh,1,0,"mat-spinner",6),s.qZA(),s.YNc(9,Eh,2,5,"div",7)),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,6,"USER_DETAIL.IDENTITIES.TITLE")),s.xp6(3),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("placeholder","USER_DETAIL.IDENTITIES.FILTER_PLACEHOLDER"),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[ot.t,i.O5,at.L,x.lW,E.$g,_h.j],pipes:[f.X$],styles:[""]}),t})();function Ah(t,e){1&t&&s._UZ(0,"mat-spinner",4)}function Sh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",5),s.TgZ(1,"mat-form-field"),s.TgZ(2,"input",6),s.NdJ("change",function(){return s.CHM(t),s.oxw().makePath()}),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"mat-error"),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA(),s.TgZ(7,"mat-form-field"),s.TgZ(8,"input",7),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().description=e}),s.ALo(9,"translate"),s.qZA(),s.qZA(),s.TgZ(10,"mat-form-field"),s._UZ(11,"input",8),s.ALo(12,"translate"),s.TgZ(13,"mat-error"),s._uU(14),s.ALo(15,"translate"),s.qZA(),s.qZA(),s.TgZ(16,"mat-form-field"),s._UZ(17,"input",8),s.ALo(18,"translate"),s.TgZ(19,"mat-error"),s._uU(20),s.ALo(21,"translate"),s.qZA(),s.qZA(),s.TgZ(22,"mat-form-field"),s._UZ(23,"input",8),s.ALo(24,"translate"),s.TgZ(25,"mat-error"),s._uU(26),s.ALo(27,"translate"),s.qZA(),s.qZA(),s.TgZ(28,"span",9),s._uU(29),s.ALo(30,"translate"),s.TgZ(31,"mat-checkbox",10),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().status=e}),s._uU(32),s.ALo(33,"translate"),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(2),s.s9C("placeholder",s.lcZ(3,17,"DIALOGS.CREATE_EDIT_SERVICE.NAME")),s.Q6J("formControl",t.nameControl),s.xp6(3),s.Oqu(s.lcZ(6,19,"DIALOGS.CREATE_EDIT_SERVICE.RESTRICTION_NAME")),s.xp6(3),s.s9C("placeholder",s.lcZ(9,21,"DIALOGS.CREATE_EDIT_SERVICE.DESCRIPTION")),s.Q6J("ngModel",t.description),s.xp6(3),s.s9C("placeholder",s.lcZ(12,23,"DIALOGS.CREATE_EDIT_SERVICE.DELAY")),s.Q6J("formControl",t.delayControl),s.xp6(3),s.Oqu(s.lcZ(15,25,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_DELAY")),s.xp6(3),s.s9C("placeholder",s.lcZ(18,27,"DIALOGS.CREATE_EDIT_SERVICE.RECURRENCE")),s.Q6J("formControl",t.recurrenceControl),s.xp6(3),s.Oqu(s.lcZ(21,29,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_RECURRENCE")),s.xp6(3),s.s9C("placeholder",s.lcZ(24,31,"DIALOGS.CREATE_EDIT_SERVICE.PATH")),s.Q6J("formControl",t.pathControl),s.xp6(3),s.Oqu(s.lcZ(27,33,"DIALOGS.CREATE_EDIT_SERVICE.REQUIRE_PATH")),s.xp6(3),s.hij("",s.lcZ(30,35,"DIALOGS.CREATE_EDIT_SERVICE.STATUS")," "),s.xp6(2),s.Q6J("ngModel",t.status),s.xp6(1),s.Oqu(s.lcZ(33,37,"DIALOGS.CREATE_EDIT_SERVICE.STATUS_HINT"))}}function Ih(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",11),s.TgZ(1,"button",12),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"button",13),s.NdJ("click",function(){s.CHM(t);const e=s.oxw();return e.asEdit?e.onEdit():e.onCreate()}),s._uU(5),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,3,"DIALOGS.CREATE_EDIT_SERVICE.CANCEL")," "),s.xp6(2),s.Q6J("disabled",t.nameControl.invalid||t.delayControl.invalid||t.recurrenceControl.invalid||t.pathControl.invalid),s.xp6(1),s.hij(" ",t.buttonText," ")}}let Dh=(()=>{class t{constructor(t,e,n,r,i){this.dialogRef=t,this.data=e,this.serviceManager=n,this.notificator=r,this.translate=i,this.loading=!1,this.status=!0,this.nameControl=new R.NI("",[R.kI.required,R.kI.pattern("^[a-zA-Z0-9_]+$")]),this.delayControl=new R.NI(10,[R.kI.pattern("^[0-9]*$")]),this.recurrenceControl=new R.NI(2,[R.kI.pattern("^[0-9]*$")]),this.pathControl=new R.NI("",[R.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.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,id:0,beanName:""}}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE_SUCCESS")),this.dialogRef.close(!0),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,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})}onCancel(){this.dialogRef.close(!1)}makePath(){const t="./".concat(this.nameControl.value);this.pathControl.setValue(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(b.KK),s.Y36(w.V6),s.Y36(f.sK))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-create-service-dialog"]],decls:6,vars:7,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"],["matInput","","required","",3,"formControl","placeholder","change"],["matInput","",3,"ngModel","placeholder","ngModelChange"],["matInput","","required","",3,"formControl","placeholder"],[1,"d-flex"],[1,"ml-3",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.qZA(),s.YNc(3,Ah,1,0,"mat-spinner",1),s.YNc(4,Sh,34,39,"div",2),s.YNc(5,Ih,6,5,"div",3),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.Oqu(e.title),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[y.uh,i.O5,E.$g,y.xY,O.KE,L.Nt,R.Fj,R.Q7,R.JJ,R.oH,O.TO,R.On,F.oG,y.H8,x.lW],pipes:[f.X$],styles:[""]}),t})();var Nh=n(20247);let kh=(()=>{class t{constructor(t,e,n,r,i){this.dialogRef=t,this.data=e,this.serviceManager=n,this.notificator=r,this.translate=i,this.displayedColumns=["name"],this.dataSource=new _.by(this.data.services),this.loading=!1,this.force=!1,this.relations=[]}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(t){this.force=t.force,t.deleted?this.onConfirm():this.onCancel()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(b.KK),s.Y36(w.V6),s.Y36(f.sK))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-delete-service-dialog"]],decls:2,vars:8,consts:[[3,"entityNames","entityType","relations","anotherMessage","loading","deleted"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"app-delete-entity-dialog",0),s.NdJ("deleted",function(t){return e.onSubmit(t)}),s.qZA(),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(1),s.Q6J("entityNames",e.dataSource)("entityType","services")("relations",e.relations)("anotherMessage",e.anotherMessage)("loading",e.loading))},directives:[Nh.e],styles:[""]}),t})();function Ch(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",7),s.NdJ("click",function(){return s.CHM(t),s.oxw().createService()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"ADMIN.SERVICES.CREATE"),""))}function Zh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().deleteService()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"ADMIN.SERVICES.DELETE"),"")}}function Mh(t,e){1&t&&s._UZ(0,"mat-spinner",9)}function Oh(t,e){if(1&t&&s._UZ(0,"app-services-list",10),2&t){const t=s.oxw();s.Q6J("tableId",t.tableId)("selection",t.selection)("services",t.services)("filterValue",t.filterValue)}}let Lh=(()=>{class t{constructor(t,e,n){this.serviceManager=t,this.dialog=e,this.authResolver=n,this.selection=new v.Ov(!0,[]),this.loading=!1,this.filterValue="",this.tableId=et.NL}ngOnInit(){this.serviceManager.getServices().subscribe(t=>{this.services=t,this.refreshTable()})}createService(){const t=(0,tt.kZ)();t.width="600px",t.data={theme:"admin-theme"},this.dialog.open(Dh,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}deleteService(){const t=(0,tt.kZ)();t.width="600px",t.data={theme:"admin-theme",services:this.selection.selected},this.dialog.open(kh,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}refreshTable(){this.loading=!0,this.serviceManager.getServices().subscribe(t=>{this.services=t,this.selection.clear(),this.loading=!1})}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.KK),s.Y36(y.uw),s.Y36(w.x4))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-admin-services"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","action-button mr-2","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"tableId","selection","services","filterValue",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,"mr-auto","ml-auto"],[3,"tableId","selection","services","filterValue"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.YNc(5,Ch,3,3,"button",2),s.YNc(6,Zh,3,4,"button",3),s.TgZ(7,"perun-web-apps-immediate-filter",4),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.YNc(8,Mh,1,0,"mat-spinner",5),s.YNc(9,Oh,1,4,"app-services-list",6),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,6,"ADMIN.SERVICES.TITLE")),s.xp6(3),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("placeholder","ADMIN.SERVICES.FILTER"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[ot.t,i.O5,at.L,x.lW,E.$g,lt.Q],pipes:[f.X$],styles:[""]}),t})();var Rh=n(88884);function Uh(t,e){1&t&&s._UZ(0,"mat-spinner",5)}const Ph=function(){return["id","name","vo","facility","description"]};function qh(t,e){if(1&t&&s._UZ(0,"perun-web-apps-resources-list",6),2&t){const t=s.oxw();s.Q6J("tableId",t.tableId)("resources",t.resources)("filterValue",t.filterValue)("displayedColumns",s.DdM(4,Ph))}}let Fh=(()=>{class t{constructor(t,e){this.userManager=t,this.route=e,this.resources=[],this.tableId=et.kO,this.filterValue=""}ngOnInit(){this.refreshTable()}refreshTable(){this.loading=!0,this.route.parent.params.subscribe(t=>{this.userManager.getAssignedRichResourcesForUser(t.userId).subscribe(t=>{this.resources=t,this.loading=!1})})}resourceFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.Fv),s.Y36(o.gz))},t.\u0275cmp=s.Xpm({type:t,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,"tableId","resources","filterValue","displayedColumns",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"tableId","resources","filterValue","displayedColumns"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.TgZ(5,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(t){return e.resourceFilter(t)}),s.qZA(),s.YNc(6,Uh,1,0,"mat-spinner",3),s.YNc(7,qh,1,5,"perun-web-apps-resources-list",4),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,4,"USER_DETAIL.RESOURCES.TITLE")),s.xp6(3),s.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[ot.t,at.L,i.O5,E.$g,Rh.C],pipes:[f.X$],styles:[""]}),t})();var jh=n(13572),Yh=n(40695),Bh=n(41186);const zh=["list"];function Gh(t,e){1&t&&s._UZ(0,"mat-spinner",8)}function Jh(t,e){if(1&t&&s._UZ(0,"perun-web-apps-attributes-list",9,10),2&t){const t=s.oxw();s.Q6J("tableId",t.tableId)("attributes",t.attributes)("selection",t.selection)}}let Vh=(()=>{class t{constructor(t,e,n,r){this.dialog=t,this.attributesManager=e,this.userService=n,this.route=r,this.loading=!1,this.selection=new v.Ov(!0,[]),this.tableId=et.rF,this.attributes=[]}ngOnInit(){this.route.params.subscribe(t=>{this.userService.getUserExtSourceById(t.identityId).subscribe(t=>{this.userExtSource=t,this.refreshTable()})})}refreshTable(){this.loading=!0,this.attributesManager.getUserExtSourceAttributes(this.userExtSource.id).subscribe(t=>{this.attributes=(0,tt.MX)(t),this.selection.clear(),this.loading=!1})}onAdd(){const t=(0,tt.kZ)();t.width="1050px",t.data={entityId:this.userExtSource.id,entity:"ues",notEmptyAttributes:this.attributes,style:"user-theme"},this.dialog.open(Yh.n,t).afterClosed().subscribe(t=>{"saved"===t&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const t=(0,tt.kZ)();t.width="450px",t.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(yh.wA,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onRemove(){const t=(0,tt.kZ)();t.width="450px",t.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(jh.k,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.uw),s.Y36(b.H8),s.Y36(b.Fv),s.Y36(o.gz))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-identity-detail"]],viewQuery:function(t,e){if(1&t&&s.Gf(zh,5),2&t){let t;s.iGM(t=s.CRH())&&(e.list=t.first)}},decls:26,vars:32,consts:[[1,"page-subtitle"],[1,"mb-2"],[3,"refresh"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","attributes","selection",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"tableId","attributes","selection"],["list",""]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"div"),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"div"),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"div",1),s._uU(11),s.ALo(12,"translate"),s.ALo(13,"date"),s.qZA(),s.TgZ(14,"perun-web-apps-refresh-button",2),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.TgZ(15,"button",3),s.NdJ("click",function(){return e.onSave()}),s._uU(16),s.ALo(17,"translate"),s.qZA(),s.TgZ(18,"button",4),s.NdJ("click",function(){return e.onAdd()}),s._uU(19),s.ALo(20,"translate"),s.qZA(),s.TgZ(21,"button",5),s.NdJ("click",function(){return e.onRemove()}),s._uU(22),s.ALo(23,"translate"),s.qZA(),s.YNc(24,Gh,1,0,"mat-spinner",6),s.YNc(25,Jh,2,3,"perun-web-apps-attributes-list",7),s.qZA()),2&t&&(s.xp6(2),s.AsE("",s.lcZ(3,15,"SHARED.IDENTITY_DETAIL.TITLE")," - ",e.userExtSource?e.userExtSource.extSource.name:"",""),s.xp6(3),s.AsE("",s.lcZ(6,17,"SHARED.IDENTITY_DETAIL.TYPE"),": ",e.userExtSource?e.userExtSource.extSource.type:"",""),s.xp6(3),s.AsE("",s.lcZ(9,19,"SHARED.IDENTITY_DETAIL.LOGIN"),": ",e.userExtSource?e.userExtSource.login:"",""),s.xp6(3),s.AsE("",s.lcZ(12,21,"SHARED.IDENTITY_DETAIL.LAST_ACCESS"),": ",e.userExtSource?s.xi3(13,23,e.userExtSource.lastAccess,"d.M.y H:mm:ss"):"",""),s.xp6(4),s.Q6J("disabled",0===e.selection.selected.length),s.xp6(1),s.Oqu(s.lcZ(17,26,"SHARED.IDENTITY_DETAIL.SAVE")),s.xp6(3),s.Oqu(s.lcZ(20,28,"SHARED.IDENTITY_DETAIL.ADD")),s.xp6(2),s.Q6J("disabled",0===e.selection.selected.length),s.xp6(1),s.Oqu(s.lcZ(23,30,"SHARED.IDENTITY_DETAIL.REMOVE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[ot.t,x.lW,i.O5,E.$g,Bh.p],pipes:[f.X$,i.uU],styles:[""]}),t})();function Hh(t,e){1&t&&s._UZ(0,"mat-spinner",3)}function Qh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",15),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).editService()}),s.TgZ(1,"mat-icon"),s._uU(2,"edit"),s.qZA(),s.qZA()}}function Wh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",16),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).removeService()}),s.TgZ(1,"mat-icon"),s._uU(2,"delete_forever"),s.qZA(),s.qZA()}}const $h=function(){return{color:"black"}},Xh=function(t){return["/admin/services",t]};function Kh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",4),s._UZ(1,"mat-icon",5),s.ALo(2,"translate"),s.TgZ(3,"div",6),s.TgZ(4,"div",7),s.TgZ(5,"a",8),s._uU(6),s.qZA(),s.TgZ(7,"span",9),s._uU(8),s.qZA(),s.YNc(9,Qh,3,0,"button",10),s.YNc(10,Wh,3,0,"button",11),s.qZA(),s.TgZ(11,"span",12),s._uU(12),s.ALo(13,"translate"),s.qZA(),s.TgZ(14,"div",12),s._uU(15),s.ALo(16,"translate"),s.TgZ(17,"span"),s._uU(18),s.ALo(19,"translate"),s.ALo(20,"translate"),s.TgZ(21,"button",13),s.NdJ("click",function(){return s.CHM(t),s.oxw().changeServiceStatus()}),s.TgZ(22,"mat-icon",14),s._uU(23),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.s9C("matTooltip",s.lcZ(2,12,"SERVICE_DETAIL.ENTITY")),s.Q6J("ngStyle",s.DdM(22,$h)),s.xp6(4),s.Q6J("routerLink",s.VKq(23,Xh,t.service.id)),s.xp6(1),s.hij(" ",t.service.name," "),s.xp6(2),s.hij(" \xa0 #",t.service.id," "),s.xp6(1),s.Q6J("ngIf",t.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",t.authResolver.isPerunAdmin()),s.xp6(2),s.AsE(" ",s.lcZ(13,14,"SERVICE_DETAIL.DESCRIPTION"),": ",t.service.description," "),s.xp6(3),s.hij(" ",s.lcZ(16,16,"SERVICE_DETAIL.STATUS"),": "),s.xp6(3),s.hij(" ",t.service.enabled?s.lcZ(19,18,"SERVICE_DETAIL.ENABLED"):s.lcZ(20,20,"SERVICE_DETAIL.DISABLED")," "),s.xp6(5),s.hij(" ",t.service.enabled?"check_circle_outline":"block"," ")}}let tf=(()=>{class t{constructor(t,e,n,r,i,o,a,s,u,c){this.route=t,this.router=e,this.serviceManager=n,this.sideMenuService=r,this.sideMenuItemService=i,this.dialog=o,this.authResolver=a,this.translate=s,this.notificator=u,this.entityStorageService=c,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(t=>{this.serviceId=t.serviceId,this.refresh()})}refresh(){this.serviceManager.getServiceById(this.serviceId).subscribe(t=>{this.service=t,this.entityStorageService.setEntity({id:t.id,beanName:t.beanName});const e=this.sideMenuItemService.parseService(this.service);this.sideMenuService.setAdminItems([e]),this.loading=!1},()=>this.loading=!1)}editService(){const t=(0,tt.kZ)();t.width="600px",t.data={theme:"service-theme",service:this.service},this.dialog.open(Dh,t).afterClosed().subscribe(t=>{t&&this.ngOnInit()})}removeService(){const t=(0,tt.kZ)();t.width="600px",t.data={theme:"service-theme",services:[this.service]},this.dialog.open(kh,t).afterClosed().subscribe(t=>{t&&this.router.navigate(["/admin/services"])})}changeServiceStatus(){this.loading=!0,this.serviceManager.updateService({service:{name:this.service.name,description:this.service.description,delay:this.service.delay,recurrence:this.service.recurrence,enabled:!this.service.enabled,script:this.service.script,id:this.service.id,beanName:this.service.beanName}}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.STATUS_CHANGE_SUCCESS")),this.refresh()},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(o.gz),s.Y36(o.F0),s.Y36(b.KK),s.Y36(u.D),s.Y36(a.V),s.Y36(y.uw),s.Y36(w.x4),s.Y36(f.sK),s.Y36(w.V6),s.Y36(w.fb))},t.\u0275cmp=s.Xpm({type:t,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","d-flex page-title-headtitle",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-service",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,"service-link",3,"routerLink"],[1,"text-muted"],["aria-label","Edit service","mat-icon-button","",3,"click",4,"ngIf"],["aria-label","Remove service","mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","",3,"click"],[1,"align-content-center"],["aria-label","Edit service","mat-icon-button","",3,"click"],["aria-label","Remove service","mat-icon-button","",3,"click"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s._UZ(1,"perun-web-apps-back-button"),s.YNc(2,Hh,1,0,"mat-spinner",1),s.YNc(3,Kh,24,25,"div",2),s._UZ(4,"app-animated-router-outlet"),s.qZA()),2&t&&(s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading&&void 0!==e.service))},directives:[c.W,i.O5,h.A,E.$g,l.Hw,M.gM,i.PC,o.yS,x.lW],pipes:[f.X$],styles:[""],data:{animation:[ut.Ji]}}),t})(),ef=(()=>{class t{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 t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-service-overview"]],decls:1,vars:2,consts:[[3,"items","size"]],template:function(t,e){1&t&&s._UZ(0,"perun-web-apps-menu-buttons-field",0),2&t&&s.Q6J("items",e.navItems)("size","small")},directives:[g.L],styles:[""]}),t})();function nf(t,e){1&t&&s._UZ(0,"mat-spinner",4)}function rf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",5),s.TgZ(1,"perun-web-apps-immediate-filter",6),s.NdJ("filter",function(e){return s.CHM(t),s.oxw().applyFilter(e)}),s.qZA(),s._UZ(2,"app-attr-def-list",7),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.Q6J("placeholder","DIALOGS.ADD_REQUIRED_ATTRIBUTES.FILTER"),s.xp6(1),s.Q6J("selection",t.selection)("definitions",t.attrDefinitions)("disableRouting",!0)("filterValue",t.filterValue)}}function of(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",8),s.TgZ(1,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"button",10),s.NdJ("click",function(){return s.CHM(t),s.oxw().onAdd()}),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,3,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.CANCEL")," "),s.xp6(2),s.Q6J("disabled",0===t.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(6,5,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.ADD")," ")}}let af=(()=>{class t{constructor(t,e,n,r,i,o){this.dialogRef=t,this.data=e,this.serviceManager=n,this.attributesManager=r,this.notificator=i,this.translate=o,this.attrDefinitions=[],this.selection=new v.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(t=>{this.attrDefinitions=t,this.loading=!1})}onAdd(){this.loading=!0;const t=this.selection.selected.map(t=>t.id);this.serviceManager.addRequiredAttributes(this.serviceId,t).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(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(b.KK),s.Y36(b.H8),s.Y36(w.V6),s.Y36(f.sK))},t.\u0275cmp=s.Xpm({type:t,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,"placeholder","filter"],[3,"selection","definitions","disableRouting","filterValue"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,nf,1,0,"mat-spinner",1),s.YNc(5,rf,3,5,"div",2),s.YNc(6,of,7,7,"div",3),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.Oqu(s.lcZ(3,7,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[y.uh,i.O5,E.$g,y.xY,at.L,ne,y.H8,x.lW],pipes:[f.X$],styles:[""]}),t})();function sf(t,e){1&t&&s._UZ(0,"mat-spinner",6)}function uf(t,e){1&t&&s._UZ(0,"th",15)}function cf(t,e){if(1&t&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",t.friendlyName," ")}}function lf(t,e){1&t&&s._UZ(0,"tr",17)}function hf(t,e){1&t&&s._UZ(0,"tr",18)}function ff(t,e){if(1&t&&(s.TgZ(0,"div",7),s.TgZ(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,uf,1,0,"th",11),s.YNc(10,cf,2,1,"td",12),s.BQk(),s.YNc(11,lf,1,0,"tr",13),s.YNc(12,hf,1,0,"tr",14),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.Oqu(s.lcZ(3,5,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.DESCRIPTION")),s.xp6(3),s.hij(" ",s.lcZ(6,7,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.ASK")," "),s.xp6(2),s.Q6J("dataSource",t.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",t.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",t.displayedColumns)}}let df=(()=>{class t{constructor(t,e,n,r,i){this.dialogRef=t,this.data=e,this.serviceManager=n,this.notificator=r,this.translate=i,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.serviceId=this.data.serviceId,this.dataSource=new _.by(this.data.attrDefinitions)}onConfirm(){this.loading=!0;const t=this.dataSource.data.map(t=>t.id);this.serviceManager.removeRequiredAttributes(this.serviceId,t).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 t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(b.KK),s.Y36(w.V6),s.Y36(f.sK))},t.\u0275cmp=s.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div"),s.YNc(4,sf,1,0,"mat-spinner",1),s.YNc(5,ff,13,9,"div",2),s.TgZ(6,"div",3),s.TgZ(7,"button",4),s.NdJ("click",function(){return e.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return e.onConfirm()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,9,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.TITLE")),s.xp6(2),s.Tol(e.theme),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,11,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.CANCEL"),""),s.xp6(2),s.Q6J("disabled",e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,13,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.REMOVE"),""))},directives:[y.uh,i.O5,y.H8,x.lW,E.$g,y.xY,_.BZ,_.w1,_.fO,_.Dz,_.as,_.nj,_.ge,_.ev,_.XQ,_.Gk],pipes:[f.X$],styles:[""]}),t})();function pf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",7),s.NdJ("click",function(){return s.CHM(t),s.oxw().onAdd()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.ADD")," "))}function gf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().onRemove()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.REMOVE")," ")}}function mf(t,e){1&t&&s._UZ(0,"mat-spinner",9)}function vf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"app-attr-def-list",10),s.NdJ("refreshEvent",function(){return s.CHM(t),s.oxw().refreshTable()}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("tableId",t.tableId)("definitions",t.attrDefinitions)("selection",t.selection)("filterValue",t.filterValue)("disableRouting",!t.authResolver.isPerunAdmin())}}let yf=(()=>{class t{constructor(t,e,n,r){this.attributeManager=t,this.dialog=e,this.authResolver=n,this.entityStorageService=r,this.loading=!1,this.filterValue="",this.selection=new v.Ov(!0,[]),this.attrDefinitions=[],this.tableId=et.JO}ngOnInit(){this.loading=!0,this.service=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.attributeManager.getRequiredAttributesDefinition(this.service.id).subscribe(t=>{this.selection.clear(),this.attrDefinitions=t,this.loading=!1})}onAdd(){const t=(0,tt.kZ)();t.width="950px",t.data={serviceId:this.service.id,theme:"service-theme"},this.dialog.open(af,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onRemove(){const t=(0,tt.kZ)();t.width="650px",t.data={serviceId:this.service.id,attrDefinitions:this.selection.selected,theme:"service-theme"},this.dialog.open(df,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.H8),s.Y36(y.uw),s.Y36(w.x4),s.Y36(w.fb))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-service-required-attributes"]],decls:10,vars:8,consts:[[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,"tableId","definitions","selection","filterValue","disableRouting","refreshEvent",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,"tableId","definitions","selection","filterValue","disableRouting","refreshEvent"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.YNc(5,pf,3,3,"button",2),s.YNc(6,gf,3,4,"button",3),s.TgZ(7,"perun-web-apps-immediate-filter",4),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.YNc(8,mf,1,0,"mat-spinner",5),s.YNc(9,vf,1,5,"app-attr-def-list",6),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,6,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.TITLE")),s.xp6(3),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("placeholder","SERVICE_DETAIL.REQUIRED_ATTRIBUTES.FILTER"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[ot.t,i.O5,at.L,x.lW,E.$g,ne],pipes:[f.X$],styles:[""]}),t})();var _f=n(2043),wf=n(60547),bf=n(94357);function xf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",7),s.NdJ("click",function(){return s.CHM(t),s.oxw().onRemove()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.REMOVE")," ")}}function Ef(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().onAllow()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.ALLOW")," ")}}function Tf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",7),s.NdJ("click",function(){return s.CHM(t),s.oxw().onBlock()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.BLOCK")," ")}}function Af(t,e){1&t&&s._UZ(0,"mat-spinner",9)}const Sf=function(){return["select","destinationId","facility","destination","type","status","propagationType"]};function If(t,e){if(1&t&&s._UZ(0,"app-perun-web-apps-destination-list",10),2&t){const t=s.oxw();s.Q6J("destinations",t.destinations)("selection",t.selection)("tableId",t.tableId)("displayedColumns",s.DdM(5,Sf))("filterValue",t.filterValue)}}let Df=(()=>{class t{constructor(t,e,n,r,i,o){this.serviceManager=t,this.notificator=e,this.translate=n,this.dialog=r,this.authResolver=i,this.entityStorageService=o,this.loading=!1,this.filterValue="",this.destinations=[],this.selection=new v.Ov(!0,[]),this.tableId=et.Cf}ngOnInit(){this.loading=!0,this.service=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.serviceManager.getAllRichDestinationsForService(this.service.id).subscribe(t=>{this.selection.clear(),this.filterValue="",this.destinations=t,this.loading=!1})}blockServiceOnDestinations(t){if(0===t.length)return this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.BLOCK_SUCCESS")),void this.refreshTable();const e=t.pop();this.serviceManager.blockServiceOnDestination(this.service.id,e.id).subscribe(()=>{this.blockServiceOnDestinations(t)},()=>this.loading=!1)}onBlock(){this.loading=!0,this.blockServiceOnDestinations(this.selection.selected)}allowServiceOnDestinations(t){if(0===t.length)return this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.ALLOW_SUCCESS")),void this.refreshTable();const e=t.pop();this.serviceManager.unblockServiceOnDestinationById(this.service.id,e.id).subscribe(()=>{this.allowServiceOnDestinations(t)},()=>this.loading=!1)}onAllow(){this.loading=!0,this.allowServiceOnDestinations(this.selection.selected)}onRemove(){const t=(0,tt.kZ)();t.width="500px",t.data={destinations:this.selection.selected,theme:"admin-theme"},this.dialog.open(wf.u,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.KK),s.Y36(w.V6),s.Y36(f.sK),s.Y36(y.uw),s.Y36(w.x4),s.Y36(w.fb))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-service-destinations"]],decls:11,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"destinations","selection","tableId","displayedColumns","filterValue",4,"ngIf"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"destinations","selection","tableId","displayedColumns","filterValue"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.YNc(5,xf,3,4,"button",2),s.YNc(6,Ef,3,4,"button",3),s.YNc(7,Tf,3,4,"button",2),s.TgZ(8,"perun-web-apps-immediate-filter",4),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.YNc(9,Af,1,0,"mat-spinner",5),s.YNc(10,If,1,6,"app-perun-web-apps-destination-list",6),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,7,"SERVICE_DETAIL.DESTINATIONS.TITLE")),s.xp6(3),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("ngIf",e.authResolver.isPerunAdmin()),s.xp6(1),s.Q6J("placeholder","SERVICE_DETAIL.DESTINATIONS.FILTER"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[ot.t,i.O5,at.L,x.lW,E.$g,bf.q],pipes:[f.X$],styles:[""]}),t})();function Nf(t,e){1&t&&s._UZ(0,"mat-spinner",4)}function kf(t,e){1&t&&s._UZ(0,"th",13)}function Cf(t,e){if(1&t&&(s.TgZ(0,"td",14),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",t.name," ")}}function Zf(t,e){1&t&&s._UZ(0,"tr",15)}function Mf(t,e){1&t&&s._UZ(0,"tr",16)}function Of(t,e){if(1&t&&(s.TgZ(0,"div",5),s.TgZ(1,"p"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"div",6),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"table",7),s.ynx(8,8),s.YNc(9,kf,1,0,"th",9),s.YNc(10,Cf,2,1,"td",10),s.BQk(),s.YNc(11,Zf,1,0,"tr",11),s.YNc(12,Mf,1,0,"tr",12),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,5,"DIALOGS.DELETE_OWNER.DESCRIPTION")," "),s.xp6(3),s.hij(" ",s.lcZ(6,7,"DIALOGS.DELETE_OWNER.ASK")," "),s.xp6(2),s.Q6J("dataSource",t.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",t.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",t.displayedColumns)}}function Lf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",17),s.TgZ(1,"button",18),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"button",19),s.NdJ("click",function(){return s.CHM(t),s.oxw().onSubmit()}),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,3,"DIALOGS.DELETE_OWNER.CANCEL")," "),s.xp6(2),s.Q6J("disabled",t.loading),s.xp6(1),s.hij(" ",s.lcZ(6,5,"DIALOGS.DELETE_OWNER.DELETE")," ")}}let Rf=(()=>{class t{constructor(t,e,n,r,i){this.dialogRef=t,this.data=e,this.notificator=n,this.translate=r,this.ownersManagerService=i,this.displayedColumns=["name"],this.owners=[]}ngOnInit(){this.dataSource=new _.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(t=>{this.loading=!1,this.notificator.showSuccess(t),this.dialogRef.close(!0)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(w.V6),s.Y36(f.sK),s.Y36(b.aC))},t.\u0275cmp=s.Xpm({type:t,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"],["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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.YNc(3,Nf,1,0,"mat-spinner",1),s.YNc(4,Of,13,9,"div",2),s.YNc(5,Lf,7,7,"div",3)),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,4,"DIALOGS.DELETE_OWNER.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[y.uh,i.O5,E.$g,y.xY,_.BZ,_.w1,_.fO,_.Dz,_.as,_.nj,_.ge,_.ev,_.XQ,_.Gk,y.H8,x.lW],pipes:[f.X$],styles:[""]}),t})();function Uf(t,e){1&t&&s._UZ(0,"mat-spinner",4)}function Pf(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ADD_OWNER.FILL_CONTACT")," "))}function qf(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ADD_OWNER.CONTACT_FORMAT")," "))}function Ff(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"div",5),s.TgZ(2,"mat-form-field"),s._UZ(3,"input",6),s.ALo(4,"translate"),s.TgZ(5,"mat-error"),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.qZA(),s.TgZ(8,"mat-form-field"),s._UZ(9,"input",6),s.ALo(10,"translate"),s.YNc(11,Pf,3,3,"mat-error",3),s.YNc(12,qf,3,3,"mat-error",3),s.qZA(),s.TgZ(13,"mat-form-field"),s.TgZ(14,"mat-select",7),s.NdJ("valueChange",function(e){return s.CHM(t),s.oxw().type=e}),s.TgZ(15,"mat-option",8),s._uU(16),s.ALo(17,"translate"),s.qZA(),s.TgZ(18,"mat-option",9),s._uU(19),s.ALo(20,"translate"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(21,"div",10),s.TgZ(22,"button",11),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(23),s.ALo(24,"translate"),s.qZA(),s.TgZ(25,"div",12),s.ALo(26,"translate"),s.TgZ(27,"button",13),s.NdJ("click",function(){return s.CHM(t),s.oxw().onSubmit()}),s._uU(28),s.ALo(29,"translate"),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(3),s.s9C("placeholder",s.lcZ(4,15,"DIALOGS.ADD_OWNER.NAME")),s.Q6J("formControl",t.nameCtrl),s.xp6(3),s.hij(" ",s.lcZ(7,17,"DIALOGS.ADD_OWNER.FILL_NAME")," "),s.xp6(3),s.s9C("placeholder",s.lcZ(10,19,"DIALOGS.ADD_OWNER.CONTACT")),s.Q6J("formControl",t.contactCtrl),s.xp6(2),s.Q6J("ngIf",t.contactCtrl.hasError("required")),s.xp6(1),s.Q6J("ngIf",t.contactCtrl.invalid&&!t.contactCtrl.hasError("required")),s.xp6(2),s.Q6J("value",t.type),s.xp6(2),s.Oqu(s.lcZ(17,21,"DIALOGS.ADD_OWNER.TYPE1")),s.xp6(3),s.Oqu(s.lcZ(20,23,"DIALOGS.ADD_OWNER.TYPE2")),s.xp6(4),s.hij(" ",s.lcZ(24,25,"DIALOGS.ADD_OWNER.CANCEL")," "),s.xp6(2),s.s9C("matTooltip",s.lcZ(26,27,"DIALOGS.ADD_OWNER.TOOLTIP")),s.Q6J("matTooltipDisabled",t.nameCtrl.valid&&t.contactCtrl.valid),s.xp6(2),s.Q6J("disabled",t.nameCtrl.invalid||t.contactCtrl.invalid),s.xp6(1),s.hij(" ",s.lcZ(29,29,"DIALOGS.ADD_OWNER.CREATE")," ")}}let jf=(()=>{class t{constructor(t,e,n,r){this.dialogRef=t,this.notificator=e,this.ownersManagerService=n,this.translate=r,this.type="1",r.get("DIALOGS.ADD_OWNER.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.nameCtrl=new R.NI(null,[R.kI.required,R.kI.pattern("^[\\w.-]+( [\\w.-]+)*$")]),this.contactCtrl=new R.NI(null,[R.kI.required,R.kI.pattern(tt.B2)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.ownersManagerService.createOwner({name:this.nameCtrl.value,contact:this.contactCtrl.value,ownerType:Number.parseInt(this.type,10)}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(w.V6),s.Y36(b.aC),s.Y36(f.sK))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-add-owner-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"],[3,"value","valueChange"],["value","1"],["value","0"],["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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,Uf,1,0,"mat-spinner",2),s.YNc(5,Ff,30,31,"div",3),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,3,"DIALOGS.ADD_OWNER.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[y.uh,i.O5,E.$g,y.xY,O.KE,L.Nt,R.Fj,R.Q7,R.JJ,R.oH,O.TO,P.gD,j.ey,y.H8,x.lW,M.gM],pipes:[f.X$],styles:[""]}),t})();var Yf=n(17767);function Bf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().addOwner()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"ADMIN.OWNERS.ADD")," "))}function zf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().removeOwner()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",!t.selected.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"ADMIN.OWNERS.DELETE")," ")}}function Gf(t,e){1&t&&s._UZ(0,"mat-spinner",10)}function Jf(t,e){if(1&t&&s._UZ(0,"perun-web-apps-owners-list",11),2&t){const t=s.oxw();s.Q6J("tableId",t.tableId)("filterValue",t.filterValue)("owners",t.owners)("selection",t.selected)}}let Vf=(()=>{class t{constructor(t,e,n){this.ownersManagerService=t,this.dialog=e,this.guiAuthResolver=n,this.owners=[],this.selected=new v.Ov(!0,[]),this.filterValue="",this.tableId=et.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(t=>{this.owners=t,this.selected.clear(),this.loading=!1})}applyFilter(t){this.filterValue=t}addOwner(){const t=(0,tt.kZ)();t.width="400px",t.data={},this.dialog.open(jf,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}removeOwner(){const t=(0,tt.kZ)();t.width="400px",t.data=this.selected.selected,this.dialog.open(Rf,t).afterClosed().subscribe(t=>{t&&(this.selected.clear(),this.refreshTable())})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.aC),s.Y36(y.uw),s.Y36(w.x4))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-admin-owners"]],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,"tableId","filterValue","owners","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,"tableId","filterValue","owners","selection"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",2),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.YNc(5,Bf,3,3,"button",3),s.YNc(6,zf,3,4,"button",4),s.TgZ(7,"perun-web-apps-immediate-filter",5),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.YNc(8,Gf,1,0,"mat-spinner",6),s.YNc(9,Jf,1,4,"perun-web-apps-owners-list",7),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,6,"ADMIN.OWNERS.TITLE")),s.xp6(3),s.Q6J("ngIf",e.addAuth),s.xp6(1),s.Q6J("ngIf",e.removeAuth),s.xp6(1),s.Q6J("placeholder","ADMIN.OWNERS.FILTER"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[ot.t,i.O5,at.L,x.lW,E.$g,Yf.Q],pipes:[f.X$],styles:[""]}),t})();var Hf=n(60007);function Qf(t,e){1&t&&s._UZ(0,"mat-spinner",5)}function Wf(t,e){if(1&t&&s._UZ(0,"perun-web-apps-facilities-list",6),2&t){const t=s.oxw();s.Q6J("tableId",t.tableId)("filterValue",t.filterValue)("facilities",t.facilities)("displayedColumns",t.displayedColumns)}}let $f=(()=>{class t{constructor(t,e){this.facilityManager=t,this.route=e,this.facilities=[],this.filterValue="",this.tableId=et.zW,this.displayedColumns=["id","name","description"]}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(t=>{this.userId=t.userId,this.refreshTable()})}refreshTable(){this.loading=!0,this.facilityManager.getAssignedFacilitiesByUser(this.userId).subscribe(t=>{this.facilities=t.map(t=>({facility:t})),this.loading=!1})}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(b.IQ),s.Y36(o.gz))},t.\u0275cmp=s.Xpm({type:t,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,"tableId","filterValue","facilities","displayedColumns",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","facilities","displayedColumns"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.TgZ(5,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.YNc(6,Qf,1,0,"mat-spinner",3),s.YNc(7,Wf,1,4,"perun-web-apps-facilities-list",4),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,4,"USER_DETAIL.FACILITIES.TITLE")),s.xp6(3),s.Q6J("placeholder","USER_DETAIL.FACILITIES.FILTER_PLACEHOLDER"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[ot.t,at.L,i.O5,E.$g,Hf.X],pipes:[f.X$],styles:[""]}),t})();var Xf=n(19386),Kf=n(55109),td=n(64737),ed=n(78364),nd=n(541),rd=n(3417);function id(t,e){1&t&&s._UZ(0,"mat-spinner",6)}function od(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-vo-search-select",7),s.NdJ("voSelected",function(e){return s.CHM(t),s.oxw().loadMember(e)}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("vos",t.vos)("vo",t.vos[0])}}function ad(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.hij(" ",s.lcZ(1,1,"USER_DETAIL.ACCOUNTS.STATUS")," ")}function sd(t,e){1&t&&s._UZ(0,"mat-spinner",6)}const ud=function(){return["id","recent","name","description","groupStatus","expiration"]};function cd(t,e){if(1&t&&s._UZ(0,"perun-web-apps-groups-list",16),2&t){const t=s.oxw(4);s.Q6J("groups",t.groups)("displayedColumns",s.DdM(2,ud))}}const ld=function(t,e){return["/organizations",t,"members",e]};function hd(t,e){if(1&t&&(s.TgZ(0,"div"),s.TgZ(1,"div",10),s.TgZ(2,"span",11),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.TgZ(5,"a",12),s._uU(6),s.qZA(),s.qZA(),s._UZ(7,"app-member-overview-membership",13),s.TgZ(8,"p",14),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.YNc(11,cd,1,3,"perun-web-apps-groups-list",15),s.qZA()),2&t){const t=s.oxw(3);s.xp6(3),s.hij("",s.lcZ(4,7,"USER_DETAIL.ACCOUNTS.MEMBER"),":"),s.xp6(2),s.Q6J("routerLink",s.WLB(11,ld,t.selectedVo.id,t.member.id)),s.xp6(1),s.hij("",t.member.id," "),s.xp6(1),s.Q6J("member",t.member)("vo",t.selectedVo),s.xp6(2),s.Oqu(s.lcZ(10,9,"USER_DETAIL.ACCOUNTS.GROUPS")),s.xp6(2),s.Q6J("ngIf",!t.loading)}}function fd(t,e){if(1&t&&(s.YNc(0,sd,1,0,"mat-spinner",1),s.YNc(1,hd,12,14,"div",4)),2&t){const t=s.oxw(2);s.Q6J("ngIf",t.loading),s.xp6(1),s.Q6J("ngIf",!t.loading)}}function dd(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.hij(" ",s.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_ATT")," ")}function pd(t,e){1&t&&s._UZ(0,"mat-spinner")}function gd(t,e){if(1&t&&s._UZ(0,"app-one-entity-attribute-page",18),2&t){const t=s.oxw(3);s.Q6J("entity","member")("entityId",t.member.id)}}function md(t,e){if(1&t&&(s.YNc(0,pd,1,0,"mat-spinner",4),s.YNc(1,gd,1,2,"app-one-entity-attribute-page",17)),2&t){const t=s.oxw(2);s.Q6J("ngIf",t.loading),s.xp6(1),s.Q6J("ngIf",!t.loading)}}function vd(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.hij(" ",s.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_GROUP_ATT")," ")}function yd(t,e){1&t&&s._UZ(0,"mat-spinner")}function _d(t,e){if(1&t&&s._UZ(0,"app-two-entity-attribute-page",20),2&t){const t=s.oxw(3);s.Q6J("firstEntity","member")("firstEntityId",t.member.id)("secondEntity","group")}}function wd(t,e){if(1&t&&(s.YNc(0,yd,1,0,"mat-spinner",4),s.YNc(1,_d,1,3,"app-two-entity-attribute-page",19)),2&t){const t=s.oxw(2);s.Q6J("ngIf",t.loading),s.xp6(1),s.Q6J("ngIf",!t.loading)}}function bd(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.hij(" ",s.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_RESOURCE_ATT")," ")}function xd(t,e){1&t&&s._UZ(0,"mat-spinner")}function Ed(t,e){if(1&t&&s._UZ(0,"app-two-entity-attribute-page",20),2&t){const t=s.oxw(3);s.Q6J("firstEntity","member")("firstEntityId",t.member.id)("secondEntity","resource")}}function Td(t,e){if(1&t&&(s.YNc(0,xd,1,0,"mat-spinner",4),s.YNc(1,Ed,1,3,"app-two-entity-attribute-page",19)),2&t){const t=s.oxw(2);s.Q6J("ngIf",t.loading),s.xp6(1),s.Q6J("ngIf",!t.loading)}}function Ad(t,e){1&t&&(s.TgZ(0,"mat-tab-group"),s.TgZ(1,"mat-tab"),s.YNc(2,ad,2,3,"ng-template",8),s.YNc(3,fd,2,2,"ng-template",9),s.qZA(),s.TgZ(4,"mat-tab"),s.YNc(5,dd,2,3,"ng-template",8),s.YNc(6,md,2,2,"ng-template",9),s.qZA(),s.TgZ(7,"mat-tab"),s.YNc(8,vd,2,3,"ng-template",8),s.YNc(9,wd,2,2,"ng-template",9),s.qZA(),s.TgZ(10,"mat-tab"),s.YNc(11,bd,2,3,"ng-template",8),s.YNc(12,Td,2,2,"ng-template",9),s.qZA(),s.qZA())}function Sd(t,e){1&t&&(s.TgZ(0,"app-alert",21),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"USER_DETAIL.ACCOUNTS.NO_VOS")))}let Id=(()=>{class t{constructor(t,e,n,r){this.route=t,this.usersService=e,this.membersService=n,this.groupService=r,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(t=>{this.userId=t.userId,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(t=>{this.vos=t,this.initLoading=!1},()=>this.initLoading=!1)})}loadMember(t){this.loading=!0,this.selectedVo=t,this.membersService.getMemberByUser(this.selectedVo.id,this.userId).subscribe(t=>{this.member=t,this.groupService.getMemberRichGroupsWithAttributesByNames(this.member.id,["urn:perun:member_group:attribute-def:virt:groupStatus"]).subscribe(t=>{this.groups=t,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(o.gz),s.Y36(b.Fv),s.Y36(b.uq),s.Y36(b.ff))},t.\u0275cmp=s.Xpm({type:t,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","vo","voSelected",4,"ngIf"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"w-50",3,"vos","vo","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","displayedColumns",4,"ngIf"],[3,"groups","displayedColumns"],[3,"entity","entityId",4,"ngIf"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity",4,"ngIf"],[3,"firstEntity","firstEntityId","secondEntity"],["alert_type","warn"]],template:function(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.YNc(3,id,1,0,"mat-spinner",1),s.TgZ(4,"div",2),s.YNc(5,od,1,2,"perun-web-apps-vo-search-select",3),s.qZA(),s.YNc(6,Ad,13,0,"mat-tab-group",4),s.YNc(7,Sd,3,3,"app-alert",5)),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,5,"USER_DETAIL.ACCOUNTS.TITLE")),s.xp6(2),s.Q6J("ngIf",e.initLoading),s.xp6(2),s.Q6J("ngIf",!(e.initLoading||0===e.vos.length)),s.xp6(1),s.Q6J("ngIf",!(e.initLoading||0===e.vos.length)),s.xp6(1),s.Q6J("ngIf",!e.initLoading&&0===e.vos.length))},directives:[i.O5,E.$g,Xf.M,Kf.SP,Kf.uX,Kf.uD,Kf.Vc,o.yS,td.b,ed.W,nd.t,rd.Y,T.w],pipes:[f.X$],styles:[".subtitle[_ngcontent-%COMP%]{font-size:1.2rem}"]}),t})(),Dd=(()=>{class t{transform(t){if(t)return t.split(".").pop()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"parseEventName",type:t,pure:!0}),t})();function Nd(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.hij(" ",s.lcZ(1,1,"DIALOGS.AUDIT_MESSAGE_DETAIL.OBJECTS")," ")}function kd(t,e){if(1&t&&s._UZ(0,"pre",9),2&t){const t=s.oxw();s.Q6J("innerHTML",t.syntaxHighlight(t.eventData),s.oJD)}}function Cd(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.hij(" ",s.lcZ(1,1,"DIALOGS.AUDIT_MESSAGE_DETAIL.MESSAGE")," ")}function Zd(t,e){if(1&t&&(s.TgZ(0,"div"),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Oqu(t.message)}}let Md=(()=>{class t{constructor(t,e,n){this.dialogRef=t,this.data=e,this.clipboard=n,this.tabIndex=0,this.eventData={}}ngOnInit(){const t=this.data.message.event;this.actor=this.data.message.actor,this.createdAt=this.data.message.createdAt,t.message&&(this.message=t.message,delete t.message),t.name&&(this.title=t.name,delete t.name),this.eventData=t}tabChanged(t){this.tabIndex=t.index}copyObjects(){this.clipboard.copy(JSON.stringify(this.eventData,null,2))}copyMessage(){this.clipboard.copy(this.message)}syntaxHighlight(t){return"string"!=typeof t&&(t=JSON.stringify(t,void 0,2)),(t=t.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,function(t){let e="number";return/^"/.test(t)?e=/:$/.test(t)?"key":"string":/true|false/.test(t)?e="boolean":/null/.test(t)&&(e="null"),''+t+""})}onClose(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.so),s.Y36(y.WI),s.Y36(ct.TU))},t.\u0275cmp=s.Xpm({type:t,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(t,e){if(1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.ALo(4,"parseEventName"),s.qZA(),s.TgZ(5,"div",2),s.TgZ(6,"div"),s._uU(7),s.ALo(8,"translate"),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"mat-tab-group",3),s.NdJ("selectedTabChange",function(t){return e.tabChanged(t)}),s.TgZ(11,"mat-tab"),s.YNc(12,Nd,2,3,"ng-template",4),s.YNc(13,kd,1,1,"ng-template",5),s.qZA(),s.TgZ(14,"mat-tab"),s.YNc(15,Cd,2,3,"ng-template",4),s.YNc(16,Zd,2,1,"ng-template",5),s.qZA(),s.qZA(),s.qZA(),s.TgZ(17,"div",6),s.TgZ(18,"button",7),s.NdJ("click",function(){return e.onClose()}),s._uU(19),s.ALo(20,"translate"),s.qZA(),s.TgZ(21,"button",8),s.NdJ("click",function(){return 0===e.tabIndex?e.copyObjects():e.copyMessage()}),s._uU(22),s.ALo(23,"translate"),s.TgZ(24,"mat-icon"),s._uU(25,"content_copy"),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t){let t;s.xp6(2),s.Oqu(s.lcZ(3,7,null!==(t=s.lcZ(4,9,e.title))&&void 0!==t?t:"DIALOGS.AUDIT_MESSAGE_DETAIL.TITLE")),s.xp6(5),s.HOy("",s.lcZ(8,11,"DIALOGS.AUDIT_MESSAGE_DETAIL.ACTOR"),": ",e.actor,", ",s.lcZ(9,13,"DIALOGS.AUDIT_MESSAGE_DETAIL.CREATED_AT"),": ",e.createdAt,""),s.xp6(12),s.hij(" ",s.lcZ(20,15,"DIALOGS.AUDIT_MESSAGE_DETAIL.CLOSE")," "),s.xp6(3),s.hij(" ",s.lcZ(23,17,"DIALOGS.AUDIT_MESSAGE_DETAIL.COPY")," ")}},directives:[y.uh,y.xY,Kf.SP,Kf.uX,Kf.uD,Kf.Vc,y.H8,x.lW,l.Hw],pipes:[f.X$,Dd],styles:[".key{color:brown}.string{color:green}.number{color:#ff8c00}.boolean{color:blue}.null{color:#f0f}"],encapsulation:2}),t})();var Od=n(73005),Ld=n(31906),Rd=n(58506);function Ud(t,e){1&t&&(s.TgZ(0,"div",16),s._UZ(1,"mat-spinner",17),s.qZA())}function Pd(t,e){1&t&&(s.TgZ(0,"th",18),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"AUDIT_MESSAGES_LIST.ID")))}function qd(t,e){if(1&t&&(s.TgZ(0,"td",19),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.id)}}function Fd(t,e){1&t&&(s.TgZ(0,"th",18),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"AUDIT_MESSAGES_LIST.TIMESTAMP")))}function jd(t,e){if(1&t&&(s.TgZ(0,"td",19),s._uU(1),s.ALo(2,"parseDate"),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(s.xi3(2,1,t.createdAt,!0))}}function Yd(t,e){1&t&&(s.TgZ(0,"th",20),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"AUDIT_MESSAGES_LIST.EVENT_NAME")))}function Bd(t,e){if(1&t&&(s.TgZ(0,"td",19),s._uU(1),s.ALo(2,"parseEventName"),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(s.lcZ(2,1,t.event.name))}}function zd(t,e){1&t&&(s.TgZ(0,"th",20),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"AUDIT_MESSAGES_LIST.ACTOR")))}function Gd(t,e){if(1&t&&(s.TgZ(0,"td",19),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.actor)}}function Jd(t,e){1&t&&(s.TgZ(0,"th",20),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"AUDIT_MESSAGES_LIST.MESSAGE")))}function Vd(t,e){if(1&t&&(s.TgZ(0,"td",19),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.event.message)}}function Hd(t,e){1&t&&s._UZ(0,"th",20)}function Qd(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",19),s.TgZ(1,"button",21),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().viewDetails(e)}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.qZA()}2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,1,"AUDIT_MESSAGES_LIST.VIEW_DETAIL")))}function Wd(t,e){1&t&&s._UZ(0,"tr",22)}function $d(t,e){1&t&&s._UZ(0,"tr",23)}function Xd(t,e){1&t&&(s.TgZ(0,"app-alert",24),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_AUDIT_MESSAGES"),"\n"))}let Kd=(()=>{class t{constructor(t,e,n){this.dialog=t,this.dynamicPaginatingService=e,this.tableConfigService=n,this.pageSizeOptions=tt.f7,this.displayedColumns=["id","timestamp","name","actor","event.message","detail"]}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,Ld.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,ge.b)(()=>this.loadAuditMessagesPage())).subscribe()}ngOnInit(){this.dataSource=new w.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(t){const e=(0,tt.kZ)(),n=JSON.parse(JSON.stringify(t));e.minWidth="700px",e.maxWidth="1000px",e.data={message:n},this.dialog.open(Md,e)}exportData(t){(0,tt.O6)((0,tt.Xn)(this.dataSource.getData(),this.displayedColumns.filter(t=>"detail"!==t),this.getExportDataForColumn,this),t)}getExportDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"timestamp":return(0,i.p6)(t.createdAt,"d.M.y H.mm.ss","en");case"name":return t.event.name.split(".").pop();case"actor":return t.actor;default:return""}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(y.uw),s.Y36(w.ly),s.Y36(et.dB))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-audit-messages-list"]],viewQuery:function(t,e){if(1&t&&(s.Gf(tt.l9,7),s.Gf(st.YE,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.child=t.first),s.iGM(t=s.CRH())&&(e.sort=t.first)}},inputs:{tableId:"tableId",refresh:"refresh",displayedColumns:"displayedColumns",searchString:"searchString"},features:[s._Bn([{provide:Od.ye,useClass:w.Be}]),s.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"],["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",""],["color","accent","mat-flat-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.ALo(1,"async"),s.TgZ(2,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)}),s.YNc(3,Ud,2,0,"div",2),s.ALo(4,"async"),s.TgZ(5,"table",3),s.ynx(6,4),s.YNc(7,Pd,3,3,"th",5),s.YNc(8,qd,2,1,"td",6),s.BQk(),s.ynx(9,7),s.YNc(10,Fd,3,3,"th",5),s.YNc(11,jd,3,4,"td",6),s.BQk(),s.ynx(12,8),s.YNc(13,Yd,3,3,"th",9),s.YNc(14,Bd,3,3,"td",6),s.BQk(),s.ynx(15,10),s.YNc(16,zd,3,3,"th",9),s.YNc(17,Gd,2,1,"td",6),s.BQk(),s.ynx(18,11),s.YNc(19,Jd,3,3,"th",9),s.YNc(20,Vd,2,1,"td",6),s.BQk(),s.ynx(21,12),s.YNc(22,Hd,1,0,"th",9),s.YNc(23,Qd,4,3,"td",6),s.BQk(),s.YNc(24,Wd,1,0,"tr",13),s.YNc(25,$d,1,0,"tr",14),s.qZA(),s.qZA(),s.qZA(),s.YNc(26,Xd,3,3,"app-alert",15),s.ALo(27,"async")),2&t&&(s.Q6J("hidden",0===e.dataSource.allObjectCount&&!1===s.lcZ(1,9,e.dataSource.loading$)),s.xp6(2),s.Q6J("dataLength",e.dataSource.allObjectCount)("pageSizeOptions",e.pageSizeOptions)("tableId",e.tableId),s.xp6(1),s.Q6J("ngIf",s.lcZ(4,11,e.dataSource.loading$)),s.xp6(2),s.Q6J("dataSource",e.dataSource),s.xp6(19),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===e.dataSource.allObjectCount&&!1===s.lcZ(27,13,e.dataSource.loading$)))},directives:[ft.l,i.O5,_.BZ,st.YE,_.w1,_.fO,_.Dz,_.as,_.nj,E.$g,_.ge,st.nU,_.ev,x.lW,_.XQ,_.Gk,T.w],pipes:[i.Ov,f.X$,Rd.M,Dd],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;top:0;left:0;bottom:56px;right:0;background:rgba(0,0,0,.15);z-index:1;display:flex;align-items:center;justify-content:center}"]}),t})();const tp=[{path:"",component:p,children:[{path:"",component:m,data:{animation:"AdminOverviewPage"}},{path:"attributes",component:ue,data:{animation:"AdminAttributesPage"}},{path:"users",component:Gl.t,data:{animation:"AdminUsersPage"}},{path:"owners",component:Vf,data:{animation:"AdminOwnersPage"}},{path:"services",component:Lh,data:{animation:"AdminServicesPage"}},{path:"audit_log",component:(()=>{class t{constructor(){this.tableId=et.yW,this.refresh=!1}refreshTable(){this.refresh=!this.refresh}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-admin-audit-log"]],decls:5,vars:5,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"refresh","tableId"]],template:function(t,e){1&t&&(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 e.refreshTable()}),s.qZA(),s._UZ(4,"app-audit-messages-list",2)),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,3,"ADMIN.AUDIT_LOG.TITLE")),s.xp6(3),s.Q6J("refresh",e.refresh)("tableId",e.tableId))},directives:[ot.t,Kd],pipes:[f.X$],styles:[""]}),t})(),data:{animation:"AdminAuditLogPage"}},{path:"visualizer",component:ce,children:[{path:"",component:fe,data:{animation:"VisualizerOverviewPage"}},{path:"attrDependencies",component:he,data:{animation:"VisualizerAttrModulesPage"}},{path:"userDestinationRelationship",component:Se,data:{animation:"UserDestinationRelationshipPage"}},{path:"userDestinationRelationship/graph",component:zl,data:{animation:"UserDestinationGraphPage"}}]},{path:"ext_sources",component:ch,data:{animation:"AdminExtSourcesPage"}}]},{path:"users/:userId",component:Kl,children:[{path:"",component:th.Z,data:{animation:"UserOverviewPage"}},{path:"accounts",component:Id,data:{animation:"UserAccountsPage"}},{path:"attributes",component:rh.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:eh.j,data:{animation:"UserOrganizationsPage",showPrincipal:!1}},{path:"groups",component:nh.u,data:{animation:"UserGroupsPage",showPrincipal:!1}},{path:"identities",component:Th,data:{animation:"UserIdentitiesPage"}},{path:"facilities",component:$f,data:{animation:"UserFacilitiesPage"}},{path:"resources",component:Fh,data:{animation:"UserRoles"}},{path:"identities/:identityId",component:Vh,data:{animation:"UserIdentityDetailPage"}},{path:"roles",component:lh.t,data:{animation:"UserRolesPage"}},{path:"service-identities",component:hh.R,data:{animation:"UserServiceIdentities"}},{path:"associated-users",component:_f.d,data:{animation:"AssociatedUsersPage"}}]},{path:"services/:serviceId",component:tf,children:[{path:"",component:ef,data:{animation:"ServiceOverviewPage"}},{path:"required-attributes",component:yf,data:{animation:"ServiceRequiredAttributesPage"}},{path:"destinations",component:Df,data:{animation:"ServiceDestinationsPage"}}]}];let ep=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[o.Bz.forChild(tp)],o.Bz]}),t})();var np=n(28780),rp=n(22727),ip=n(22280),op=n(65515);let ap=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Ba,Ml,i.ez,ep,np.m,rp.r,ht.ez,ip.d4,op.UsersModule]]}),t})()},94357:function(t,e,n){"use strict";n.d(e,{q:function(){return j}});var r=n(58623),i=n(4230),o=n(67033),a=n(84140),s=n(68416),u=n(31572),c=n(82819),l=n(61511),h=n(29236),f=n(43691),d=n(36922),p=n(39571),g=n(48160);function m(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"th",21),u.TgZ(1,"mat-checkbox",22),u.NdJ("change",function(e){u.CHM(t);const n=u.oxw();return e?n.masterToggle():null}),u.qZA(),u.qZA()}if(2&t){const t=u.oxw();u.xp6(1),u.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function v(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"td",23),u.TgZ(1,"mat-checkbox",24),u.NdJ("change",function(e){const n=u.CHM(t).$implicit,r=u.oxw();return e?r.selection.toggle(n):null})("click",function(t){return t.stopPropagation()}),u.qZA(),u.qZA()}if(2&t){const t=e.$implicit,n=u.oxw();u.xp6(1),u.Q6J("aria-label",n.checkboxLabel(t))("checked",n.selection.isSelected(t))}}function y(t,e){1&t&&(u.TgZ(0,"th",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION_ID")))}function _(t,e){if(1&t&&(u.TgZ(0,"td",26),u._uU(1),u.qZA()),2&t){const t=e.$implicit;u.xp6(1),u.Oqu(t.id)}}function w(t,e){1&t&&(u.TgZ(0,"th",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.SERVICE")))}function b(t,e){if(1&t&&(u.TgZ(0,"td",27),u._uU(1),u.qZA()),2&t){const t=e.$implicit;u.xp6(1),u.Oqu(t.service.name)}}function x(t,e){1&t&&u._UZ(0,"th",28)}function E(t,e){1&t&&(u.TgZ(0,"mat-icon",30),u.ALo(1,"translate"),u._uU(2," warning "),u.qZA()),2&t&&u.s9C("matTooltip",u.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.WARN"))}function T(t,e){if(1&t&&(u.TgZ(0,"td",27),u.YNc(1,E,3,3,"mat-icon",29),u.qZA()),2&t){const t=e.$implicit,n=u.oxw();u.xp6(1),u.Q6J("ngIf",!n.services.has(t.service.id))}}function A(t,e){1&t&&(u.TgZ(0,"th",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.FACILITY")))}function S(t,e){if(1&t&&(u.TgZ(0,"td",27),u._uU(1),u.qZA()),2&t){const t=e.$implicit;u.xp6(1),u.Oqu(t.facility.name)}}function I(t,e){1&t&&(u.TgZ(0,"th",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION")))}function D(t,e){if(1&t&&(u.TgZ(0,"td",27),u._uU(1),u.qZA()),2&t){const t=e.$implicit;u.xp6(1),u.Oqu(t.destination)}}function N(t,e){1&t&&(u.TgZ(0,"th",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.TYPE")))}function k(t,e){if(1&t&&(u.TgZ(0,"td",27),u._uU(1),u.qZA()),2&t){const t=e.$implicit;u.xp6(1),u.Oqu(t.type.toUpperCase())}}function C(t,e){1&t&&u._UZ(0,"th",28)}function Z(t,e){1&t&&(u.TgZ(0,"mat-icon",32),u.ALo(1,"translate"),u._uU(2," check_circle_outline "),u.qZA()),2&t&&u.s9C("matTooltip",u.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.ALLOWED"))}function M(t,e){1&t&&(u.TgZ(0,"mat-icon",32),u.ALo(1,"translate"),u._uU(2," block "),u.qZA()),2&t&&u.s9C("matTooltip",u.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.BLOCKED"))}function O(t,e){if(1&t&&(u.TgZ(0,"td",27),u.YNc(1,Z,3,3,"mat-icon",31),u.YNc(2,M,3,3,"mat-icon",31),u.qZA()),2&t){const t=e.$implicit;u.xp6(1),u.Q6J("ngIf",!t.blocked),u.xp6(1),u.Q6J("ngIf",t.blocked)}}function L(t,e){1&t&&(u.TgZ(0,"th",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.PROPAGATION_TYPE")))}function R(t,e){if(1&t&&(u.TgZ(0,"td",27),u._uU(1),u.qZA()),2&t){const t=e.$implicit;u.xp6(1),u.Oqu(t.propagationType)}}function U(t,e){1&t&&u._UZ(0,"tr",33)}function P(t,e){1&t&&u._UZ(0,"tr",34)}function q(t,e){1&t&&(u.TgZ(0,"app-alert",35),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function F(t,e){1&t&&(u.TgZ(0,"app-alert",35),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.NO_DESTINATIONS"),"\n"))}let j=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.destinations=[],this.selection=new i.Ov(!0,[]),this.filterValue="",this.pageSizeOptions=a.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"destinationId"!==t)),this.dataSource=new o.by(this.destinations),this.setDataSource(),this.dataSource.filter=this.filterValue.toLowerCase()}getDataForColumn(t,e){switch(e){case"destinationId":return t.id.toString();case"service":return t.service.name;case"facility":return t.facility.name;case"destination":return t.destination;case"type":return t.type;case"status":return t.blocked?"blocked":"allowed";case"propagationType":return t.propagationType;default:return""}}exportData(t){(0,a.O6)((0,a.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(t,e)=>(0,a.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,a.pR)(t,e,this.getDataForColumn,this),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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(s.x4),u.Y36(s.UA))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-perun-web-apps-destination-list"]],viewQuery:function(t,e){if(1&t&&(u.Gf(r.YE,7),u.Gf(a.l9,7)),2&t){let t;u.iGM(t=u.CRH())&&(e.matSort=t.first),u.iGM(t=u.CRH())&&(e.child=t.first)}},inputs:{destinations:"destinations",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",services:"services"},features:[u.TTD],decls:34,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"],["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(t,e){1&t&&(u.TgZ(0,"div",0),u.TgZ(1,"perun-web-apps-table-wrapper",1),u.NdJ("exportData",function(t){return e.exportData(t)}),u.TgZ(2,"table",2),u.ynx(3,3),u.YNc(4,m,2,3,"th",4),u.YNc(5,v,2,2,"td",5),u.BQk(),u.ynx(6,6),u.YNc(7,y,3,3,"th",7),u.YNc(8,_,2,1,"td",8),u.BQk(),u.ynx(9,9),u.YNc(10,w,3,3,"th",7),u.YNc(11,b,2,1,"td",10),u.BQk(),u.ynx(12,11),u.YNc(13,x,1,0,"th",12),u.YNc(14,T,2,1,"td",10),u.BQk(),u.ynx(15,13),u.YNc(16,A,3,3,"th",7),u.YNc(17,S,2,1,"td",10),u.BQk(),u.ynx(18,14),u.YNc(19,I,3,3,"th",7),u.YNc(20,D,2,1,"td",10),u.BQk(),u.ynx(21,15),u.YNc(22,N,3,3,"th",7),u.YNc(23,k,2,1,"td",10),u.BQk(),u.ynx(24,16),u.YNc(25,C,1,0,"th",12),u.YNc(26,O,3,2,"td",10),u.BQk(),u.ynx(27,17),u.YNc(28,L,3,3,"th",7),u.YNc(29,R,2,1,"td",10),u.BQk(),u.YNc(30,U,1,0,"tr",18),u.YNc(31,P,1,0,"tr",19),u.qZA(),u.qZA(),u.qZA(),u.YNc(32,q,3,3,"app-alert",20),u.YNc(33,F,3,3,"app-alert",20)),2&t&&(u.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.destinations.length),u.xp6(1),u.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),u.xp6(1),u.Q6J("dataSource",e.dataSource),u.xp6(28),u.Q6J("matHeaderRowDef",e.displayedColumns),u.xp6(1),u.Q6J("matRowDefColumns",e.displayedColumns),u.xp6(1),u.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.destinations.length),u.xp6(1),u.Q6J("ngIf",0===e.destinations.length))},directives:[c.l,o.BZ,r.YE,o.w1,o.fO,o.Dz,o.as,o.nj,l.O5,o.ge,h.oG,o.ev,r.nU,f.Hw,d.gM,o.XQ,o.Gk,p.w],pipes:[g.X$],styles:[".warn[_ngcontent-%COMP%]{color:#ebe134}"]}),t})()},60547:function(t,e,n){"use strict";n.d(e,{u:function(){return v}});var r=n(65249),i=n(84608),o=n(67033),a=n(68416),s=n(31572),u=n(48160),c=n(61511),l=n(15980),h=n(67806),f=n(39571),d=n(94357);function p(t,e){1&t&&s._UZ(0,"mat-spinner",6)}function g(t,e){if(1&t&&s._UZ(0,"app-perun-web-apps-destination-list",11),2&t){const t=s.oxw(2);s.Q6J("destinations",t.destinations)("displayedColumns",t.displayedColumns)}}function m(t,e){if(1&t&&(s.TgZ(0,"div",7),s.TgZ(1,"app-alert",8),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"p"),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"div",9),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.YNc(10,g,1,2,"app-perun-web-apps-destination-list",10),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.Oqu(s.lcZ(3,4,"DIALOGS.REMOVE_DESTINATIONS.WARNING")),s.xp6(3),s.Oqu(s.lcZ(6,6,"DIALOGS.REMOVE_DESTINATIONS.DESCRIPTION")),s.xp6(3),s.hij(" ",s.lcZ(9,8,"DIALOGS.REMOVE_DESTINATIONS.ASK")," "),s.xp6(2),s.Q6J("ngIf",!t.loading)}}let v=(()=>{class t{constructor(t,e,n,r,i){this.dialogRef=t,this.data=e,this.notificator=n,this.translate=r,this.serviceManager=i,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 o.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 t=this.destinations.pop();this.serviceManager.removeDestination(t.service.id,t.facility.id,t.destination,t.type).subscribe(()=>{this.deleteDestinations()},()=>this.loading=!1)}onConfirm(){this.loading=!0,this.deleteDestinations()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(i.so),s.Y36(i.WI),s.Y36(a.V6),s.Y36(u.sK),s.Y36(r.KK))},t.\u0275cmp=s.Xpm({type:t,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"],["mat-flat-button","","color","warn",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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div"),s.YNc(4,p,1,0,"mat-spinner",1),s.YNc(5,m,11,10,"div",2),s.TgZ(6,"div",3),s.TgZ(7,"button",4),s.NdJ("click",function(){return e.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return e.onConfirm()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,9,"DIALOGS.REMOVE_DESTINATIONS.TITLE")),s.xp6(2),s.Tol(e.theme),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,11,"DIALOGS.REMOVE_DESTINATIONS.CANCEL"),""),s.xp6(2),s.Q6J("disabled",e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,13,"DIALOGS.REMOVE_DESTINATIONS.CONFIRM"),""))},directives:[i.uh,c.O5,i.H8,l.lW,h.$g,i.xY,f.w,d.q],pipes:[u.X$],styles:[""]}),t})()},17767:function(t,e,n){"use strict";n.d(e,{Q:function(){return D}});var r=n(58623),i=n(4230),o=n(67033),a=n(84140),s=n(68416),u=n(31572),c=n(82819),l=n(61511),h=n(29236),f=n(39571),d=n(48160);function p(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"th",16),u.TgZ(1,"mat-checkbox",17),u.NdJ("change",function(e){u.CHM(t);const n=u.oxw();return e?n.masterToggle():null}),u.qZA(),u.qZA()}if(2&t){const t=u.oxw();u.xp6(1),u.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function g(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"td",18),u.TgZ(1,"mat-checkbox",19),u.NdJ("change",function(e){const n=u.CHM(t).$implicit,r=u.oxw();return e?r.selection.toggle(n):null})("click",function(t){return t.stopPropagation()}),u.qZA(),u.qZA()}if(2&t){const t=e.$implicit,n=u.oxw();u.xp6(1),u.Q6J("aria-label",n.checkboxLabel(t))("checked",n.selection.isSelected(t))}}function m(t,e){1&t&&(u.TgZ(0,"th",20),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.ID")))}function v(t,e){if(1&t&&(u.TgZ(0,"td",21),u._uU(1),u.qZA()),2&t){const t=e.$implicit;u.xp6(1),u.hij(" ",t.id," ")}}function y(t,e){1&t&&(u.TgZ(0,"th",20),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NAME")))}function _(t,e){if(1&t&&(u.TgZ(0,"td",22),u._uU(1),u.qZA()),2&t){const t=e.$implicit;u.xp6(1),u.Oqu(t.name)}}function w(t,e){1&t&&(u.TgZ(0,"th",20),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.CONTACT")))}function b(t,e){if(1&t&&(u.TgZ(0,"td",22),u._uU(1),u.qZA()),2&t){const t=e.$implicit;u.xp6(1),u.Oqu(t.contact)}}function x(t,e){1&t&&(u.TgZ(0,"th",20),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.TYPE")))}function E(t,e){if(1&t&&(u.TgZ(0,"td",22),u._uU(1),u.qZA()),2&t){const t=e.$implicit;u.xp6(1),u.Oqu(t.type)}}function T(t,e){1&t&&u._UZ(0,"tr",23)}function A(t,e){1&t&&u._UZ(0,"tr",24)}function S(t,e){1&t&&(u.TgZ(0,"app-alert",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_OWNERS"),"\n"))}function I(t,e){1&t&&(u.TgZ(0,"app-alert",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_FILTER_OWNERS"),"\n"))}let D=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.owners=[],this.selection=new i.Ov(!0,[]),this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.pageSizeOptions=a.f7}set matSort(t){this.sort=t,this.setDataSource()}ngAfterViewInit(){this.setDataSource()}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return t.name;case"contact":return t.contact;case"type":return t.type;default:return""}}exportData(t){(0,a.O6)((0,a.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>(0,a.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,a.pR)(t,e,this.getDataForColumn,this),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(t=>"id"!==t)),this.dataSource=new o.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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(s.x4),u.Y36(s.UA))},t.\u0275cmp=u.Xpm({type:t,selectors:[["perun-web-apps-owners-list"]],viewQuery:function(t,e){if(1&t&&(u.Gf(a.l9,7),u.Gf(r.YE,7)),2&t){let t;u.iGM(t=u.CRH())&&(e.child=t.first),u.iGM(t=u.CRH())&&(e.matSort=t.first)}},inputs:{owners:"owners",selection:"selection",tableId:"tableId",filterValue:"filterValue",displayedColumns:"displayedColumns"},features:[u.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(t,e){1&t&&(u.TgZ(0,"div",0),u.TgZ(1,"perun-web-apps-table-wrapper",1),u.NdJ("exportData",function(t){return e.exportData(t)}),u.TgZ(2,"table",2),u.ynx(3,3),u.YNc(4,p,2,3,"th",4),u.YNc(5,g,2,2,"td",5),u.BQk(),u.ynx(6,6),u.YNc(7,m,3,3,"th",7),u.YNc(8,v,2,1,"td",8),u.BQk(),u.ynx(9,9),u.YNc(10,y,3,3,"th",7),u.YNc(11,_,2,1,"td",10),u.BQk(),u.ynx(12,11),u.YNc(13,w,3,3,"th",7),u.YNc(14,b,2,1,"td",10),u.BQk(),u.ynx(15,12),u.YNc(16,x,3,3,"th",7),u.YNc(17,E,2,1,"td",10),u.BQk(),u.YNc(18,T,1,0,"tr",13),u.YNc(19,A,1,0,"tr",14),u.qZA(),u.qZA(),u.qZA(),u.YNc(20,S,3,3,"app-alert",15),u.YNc(21,I,3,3,"app-alert",15)),2&t&&(u.Q6J("hidden",0===e.owners.length||0===e.dataSource.filteredData.length),u.xp6(1),u.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),u.xp6(1),u.Q6J("dataSource",e.dataSource),u.xp6(16),u.Q6J("matHeaderRowDef",e.displayedColumns),u.xp6(1),u.Q6J("matRowDefColumns",e.displayedColumns),u.xp6(1),u.Q6J("ngIf",!e.owners.length),u.xp6(1),u.Q6J("ngIf",!e.dataSource.filteredData.length&&e.owners.length))},directives:[c.l,o.BZ,r.YE,o.w1,o.fO,o.Dz,o.as,o.nj,l.O5,o.ge,h.oG,o.ev,r.nU,o.XQ,o.Gk,f.w],pipes:[d.X$],styles:[""]}),t})()},95914:function(t,e,n){"use strict";function r(t,e){return t(e={exports:{}},e.exports),e.exports}n.r(e),n.d(e,{StackParser:function(){return l},graphviz:function(){return v},graphvizSync:function(){return _},parse:function(){return h},wasmFolder:function(){return s}});var i=r(function(t,e){var n,r=(n="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(t){var e,r=void 0!==(t=t||{})?t:{},i={};for(e in r)r.hasOwnProperty(e)&&(i[e]=r[e]);var o,a="./this.program",s="";document.currentScript&&(s=document.currentScript.src),n&&(s=n),s=0!==s.indexOf("blob:")?s.substr(0,s.lastIndexOf("/")+1):"",o=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText};var u,c,l=r.print||console.log.bind(console),h=r.printErr||console.warn.bind(console);for(e in i)i.hasOwnProperty(e)&&(r[e]=i[e]);i=null,r.thisProgram&&(a=r.thisProgram),r.wasmBinary&&(u=r.wasmBinary),"object"!=typeof WebAssembly&&h("no native wasm support detected");var f=new WebAssembly.Table({initial:153,maximum:153,element:"anyfunc"}),d=!1;function p(t,e){t||j("Assertion failed: "+e)}var g,m,v,y,_,w="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function b(t,e,n){for(var r=e+n,i=e;t[i]&&!(i>=r);)++i;if(i-e>16&&t.subarray&&w)return w.decode(t.subarray(e,i));for(var o="";e>10,56320|1023&c)}}else o+=String.fromCharCode((31&a)<<6|s)}else o+=String.fromCharCode(a)}return o}function x(t,e){return t?b(v,t,e):""}function E(t,e,n,r){if(!(r>0))return 0;for(var i=n,o=n+r-1,a=0;a=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&t.charCodeAt(++a)),s<=127){if(n>=o)break;e[n++]=s}else if(s<=2047){if(n+1>=o)break;e[n++]=192|s>>6,e[n++]=128|63&s}else if(s<=65535){if(n+2>=o)break;e[n++]=224|s>>12,e[n++]=128|s>>6&63,e[n++]=128|63&s}else{if(n+3>=o)break;e[n++]=240|s>>18,e[n++]=128|s>>12&63,e[n++]=128|s>>6&63,e[n++]=128|63&s}}return e[n]=0,n-i}function T(t){for(var e=0,n=0;n=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&t.charCodeAt(++n)),r<=127?++e:e+=r<=2047?2:r<=65535?3:4}return e}function A(t){g=t,r.HEAP8=m=new Int8Array(t),r.HEAP16=new Int16Array(t),r.HEAP32=y=new Int32Array(t),r.HEAPU8=v=new Uint8Array(t),r.HEAPU16=new Uint16Array(t),r.HEAPU32=new Uint32Array(t),r.HEAPF32=new Float32Array(t),r.HEAPF64=_=new Float64Array(t)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var S=r.TOTAL_MEMORY||16777216;function I(t){for(;t.length>0;){var e=t.shift();if("function"!=typeof e){var n=e.func;"number"==typeof n?void 0===e.arg?r.dynCall_v(n):r.dynCall_vi(n,e.arg):n(void 0===e.arg?null:e.arg)}else e()}}(c=r.wasmMemory?r.wasmMemory:new WebAssembly.Memory({initial:S/65536}))&&(g=c.buffer),S=g.byteLength,A(g),y[2080]=5251360;var D=[],N=[],k=[],C=[],Z=!1,M=Math.abs,O=Math.ceil,L=Math.floor,R=Math.min,U=0,P=null;function q(t){U++,r.monitorRunDependencies&&r.monitorRunDependencies(U)}function F(t){if(U--,r.monitorRunDependencies&&r.monitorRunDependencies(U),0==U&&P){var e=P;P=null,e()}}function j(t){throw r.onAbort&&r.onAbort(t),l(t+=""),h(t),d=!0,t="abort("+t+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(t)}function Y(t){return String.prototype.startsWith?t.startsWith("data:application/octet-stream;base64,"):0===t.indexOf("data:application/octet-stream;base64,")}r.preloadedImages={},r.preloadedAudios={};var B,z,G,J="expatlib.wasm";function V(){try{if(u)return new Uint8Array(u);throw"both async and sync fetching of the wasm failed"}catch(h){j(h)}}Y(J)||(B=J,J=r.locateFile?r.locateFile(B,s):s+B);var H={1184:function(t){var e=r.getCache(r.CExpatJS)[t];if(!e.hasOwnProperty("startElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::startElement.";e.startElement()},1404:function(t){var e=r.getCache(r.CExpatJS)[t];if(!e.hasOwnProperty("endElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::endElement.";e.endElement()},1616:function(t){var e=r.getCache(r.CExpatJS)[t];if(!e.hasOwnProperty("characterData"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::characterData.";e.characterData()}};N.push({func:function(){lt()}});var Q={splitPath:function(t){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(t).slice(1)},normalizeArray:function(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n;n--)t.unshift("..");return t},normalize:function(t){var e="/"===t.charAt(0),n="/"===t.substr(-1);return(t=Q.normalizeArray(t.split("/").filter(function(t){return!!t}),!e).join("/"))||e||(t="."),t&&n&&(t+="/"),(e?"/":"")+t},dirname:function(t){var e=Q.splitPath(t),n=e[0],r=e[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},basename:function(t){if("/"===t)return"/";var e=t.lastIndexOf("/");return-1===e?t:t.substr(e+1)},extname:function(t){return Q.splitPath(t)[3]},join:function(){var t=Array.prototype.slice.call(arguments,0);return Q.normalize(t.join("/"))},join2:function(t,e){return Q.normalize(t+"/"+e)}};function W(t){return r.___errno_location&&(y[r.___errno_location()>>2]=t),t}var $={resolve:function(){for(var t="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var r=n>=0?arguments[n]:tt.cwd();if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");if(!r)return"";t=r+"/"+t,e="/"===r.charAt(0)}return(e?"/":"")+(t=Q.normalizeArray(t.split("/").filter(function(t){return!!t}),!e).join("/"))||"."},relative:function(t,e){function n(t){for(var e=0;e=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=$.resolve(t).substr(1),e=$.resolve(e).substr(1);for(var r=n(t.split("/")),i=n(e.split("/")),o=Math.min(r.length,i.length),a=o,s=0;s0&&(l(b(t.output,0)),t.output=[])}},default_tty1_ops:{put_char:function(t,e){null===e||10===e?(h(b(t.output,0)),t.output=[]):0!=e&&t.output.push(e)},flush:function(t){t.output&&t.output.length>0&&(h(b(t.output,0)),t.output=[])}}},K={ops_table:null,mount:function(t){return K.createNode(null,"/",16895,0)},createNode:function(t,e,n,r){if(tt.isBlkdev(n)||tt.isFIFO(n))throw new tt.ErrnoError(63);K.ops_table||(K.ops_table={dir:{node:{getattr:K.node_ops.getattr,setattr:K.node_ops.setattr,lookup:K.node_ops.lookup,mknod:K.node_ops.mknod,rename:K.node_ops.rename,unlink:K.node_ops.unlink,rmdir:K.node_ops.rmdir,readdir:K.node_ops.readdir,symlink:K.node_ops.symlink},stream:{llseek:K.stream_ops.llseek}},file:{node:{getattr:K.node_ops.getattr,setattr:K.node_ops.setattr},stream:{llseek:K.stream_ops.llseek,read:K.stream_ops.read,write:K.stream_ops.write,allocate:K.stream_ops.allocate,mmap:K.stream_ops.mmap,msync:K.stream_ops.msync}},link:{node:{getattr:K.node_ops.getattr,setattr:K.node_ops.setattr,readlink:K.node_ops.readlink},stream:{}},chrdev:{node:{getattr:K.node_ops.getattr,setattr:K.node_ops.setattr},stream:tt.chrdev_stream_ops}});var i=tt.createNode(t,e,n,r);return tt.isDir(i.mode)?(i.node_ops=K.ops_table.dir.node,i.stream_ops=K.ops_table.dir.stream,i.contents={}):tt.isFile(i.mode)?(i.node_ops=K.ops_table.file.node,i.stream_ops=K.ops_table.file.stream,i.usedBytes=0,i.contents=null):tt.isLink(i.mode)?(i.node_ops=K.ops_table.link.node,i.stream_ops=K.ops_table.link.stream):tt.isChrdev(i.mode)&&(i.node_ops=K.ops_table.chrdev.node,i.stream_ops=K.ops_table.chrdev.stream),i.timestamp=Date.now(),t&&(t.contents[e]=i),i},getFileDataAsRegularArray:function(t){if(t.contents&&t.contents.subarray){for(var e=[],n=0;n=e)){e=Math.max(e,n*(n<1048576?2:1.125)|0),0!=n&&(e=Math.max(e,256));var r=t.contents;t.contents=new Uint8Array(e),t.usedBytes>0&&t.contents.set(r.subarray(0,t.usedBytes),0)}},resizeFileStorage:function(t,e){if(t.usedBytes!=e){if(0==e)return t.contents=null,void(t.usedBytes=0);if(!t.contents||t.contents.subarray){var n=t.contents;return t.contents=new Uint8Array(e),n&&t.contents.set(n.subarray(0,Math.min(e,t.usedBytes))),void(t.usedBytes=e)}if(t.contents||(t.contents=[]),t.contents.length>e)t.contents.length=e;else for(;t.contents.length=t.node.usedBytes)return 0;var a=Math.min(t.node.usedBytes-i,r);if(a>8&&o.subarray)e.set(o.subarray(i,i+a),n);else for(var s=0;s0||i+r8)throw new tt.ErrnoError(32);for(var i=Q.normalizeArray(t.split("/").filter(function(t){return!!t}),!1),o=tt.root,a="/",s=0;s40)throw new tt.ErrnoError(32)}}return{path:a,node:o}},getPath:function(t){for(var e;;){if(tt.isRoot(t)){var n=t.mount.mountpoint;return e?"/"!==n[n.length-1]?n+"/"+e:n+e:n}e=e?t.name+"/"+e:t.name,t=t.parent}},hashName:function(t,e){for(var n=0,r=0;r>>0)%tt.nameTable.length},hashAddNode:function(t){var e=tt.hashName(t.parent.id,t.name);t.name_next=tt.nameTable[e],tt.nameTable[e]=t},hashRemoveNode:function(t){var e=tt.hashName(t.parent.id,t.name);if(tt.nameTable[e]===t)tt.nameTable[e]=t.name_next;else for(var n=tt.nameTable[e];n;){if(n.name_next===t){n.name_next=t.name_next;break}n=n.name_next}},lookupNode:function(t,e){var n=tt.mayLookup(t);if(n)throw new tt.ErrnoError(n,t);for(var r=tt.hashName(t.id,e),i=tt.nameTable[r];i;i=i.name_next)if(i.parent.id===t.id&&i.name===e)return i;return tt.lookup(t,e)},createNode:function(t,e,n,r){tt.FSNode||(tt.FSNode=function(t,e,n,r){t||(t=this),this.parent=t,this.mount=t.mount,this.mounted=null,this.id=tt.nextInode++,this.name=e,this.mode=n,this.node_ops={},this.stream_ops={},this.rdev=r},tt.FSNode.prototype={},Object.defineProperties(tt.FSNode.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(t){t?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(t){t?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return tt.isDir(this.mode)}},isDevice:{get:function(){return tt.isChrdev(this.mode)}}}));var i=new tt.FSNode(t,e,n,r);return tt.hashAddNode(i),i},destroyNode:function(t){tt.hashRemoveNode(t)},isRoot:function(t){return t===t.parent},isMountpoint:function(t){return!!t.mounted},isFile:function(t){return 32768==(61440&t)},isDir:function(t){return 16384==(61440&t)},isLink:function(t){return 40960==(61440&t)},isChrdev:function(t){return 8192==(61440&t)},isBlkdev:function(t){return 24576==(61440&t)},isFIFO:function(t){return 4096==(61440&t)},isSocket:function(t){return 49152==(49152&t)},flagModes:{r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function(t){var e=tt.flagModes[t];if(void 0===e)throw new Error("Unknown file open mode: "+t);return e},flagsToPermissionString:function(t){var e=["r","w","rw"][3&t];return 512&t&&(e+="w"),e},nodePermissions:function(t,e){return tt.ignorePermissions||(-1===e.indexOf("r")||292&t.mode)&&(-1===e.indexOf("w")||146&t.mode)&&(-1===e.indexOf("x")||73&t.mode)?0:2},mayLookup:function(t){return tt.nodePermissions(t,"x")||(t.node_ops.lookup?0:2)},mayCreate:function(t,e){try{return tt.lookupNode(t,e),20}catch(n){}return tt.nodePermissions(t,"wx")},mayDelete:function(t,e,n){var r;try{r=tt.lookupNode(t,e)}catch(o){return o.errno}var i=tt.nodePermissions(t,"wx");if(i)return i;if(n){if(!tt.isDir(r.mode))return 54;if(tt.isRoot(r)||tt.getPath(r)===tt.cwd())return 10}else if(tt.isDir(r.mode))return 31;return 0},mayOpen:function(t,e){return t?tt.isLink(t.mode)?32:tt.isDir(t.mode)&&("r"!==tt.flagsToPermissionString(e)||512&e)?31:tt.nodePermissions(t,tt.flagsToPermissionString(e)):44},MAX_OPEN_FDS:4096,nextfd:function(t,e){e=e||tt.MAX_OPEN_FDS;for(var n=t=t||0;n<=e;n++)if(!tt.streams[n])return n;throw new tt.ErrnoError(33)},getStream:function(t){return tt.streams[t]},createStream:function(t,e,n){tt.FSStream||(tt.FSStream=function(){},tt.FSStream.prototype={},Object.defineProperties(tt.FSStream.prototype,{object:{get:function(){return this.node},set:function(t){this.node=t}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}}));var r=new tt.FSStream;for(var i in t)r[i]=t[i];t=r;var o=tt.nextfd(e,n);return t.fd=o,tt.streams[o]=t,t},closeStream:function(t){tt.streams[t]=null},chrdev_stream_ops:{open:function(t){var e=tt.getDevice(t.node.rdev);t.stream_ops=e.stream_ops,t.stream_ops.open&&t.stream_ops.open(t)},llseek:function(){throw new tt.ErrnoError(70)}},major:function(t){return t>>8},minor:function(t){return 255&t},makedev:function(t,e){return t<<8|e},registerDevice:function(t,e){tt.devices[t]={stream_ops:e}},getDevice:function(t){return tt.devices[t]},getMounts:function(t){for(var e=[],n=[t];n.length;){var r=n.pop();e.push(r),n.push.apply(n,r.mounts)}return e},syncfs:function(t,e){"function"==typeof t&&(e=t,t=!1),tt.syncFSRequests++,tt.syncFSRequests>1&&h("warning: "+tt.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var n=tt.getMounts(tt.root.mount),r=0;function i(t){return tt.syncFSRequests--,e(t)}function o(t){if(t)return o.errored?void 0:(o.errored=!0,i(t));++r>=n.length&&i(null)}n.forEach(function(e){if(!e.type.syncfs)return o(null);e.type.syncfs(e,t,o)})},mount:function(t,e,n){var r,i="/"===n,o=!n;if(i&&tt.root)throw new tt.ErrnoError(10);if(!i&&!o){var a=tt.lookupPath(n,{follow_mount:!1});if(n=a.path,tt.isMountpoint(r=a.node))throw new tt.ErrnoError(10);if(!tt.isDir(r.mode))throw new tt.ErrnoError(54)}var s={type:t,opts:e,mountpoint:n,mounts:[]},u=t.mount(s);return u.mount=s,s.root=u,i?tt.root=u:r&&(r.mounted=s,r.mount&&r.mount.mounts.push(s)),u},unmount:function(t){var e=tt.lookupPath(t,{follow_mount:!1});if(!tt.isMountpoint(e.node))throw new tt.ErrnoError(28);var n=e.node,r=n.mounted,i=tt.getMounts(r);Object.keys(tt.nameTable).forEach(function(t){for(var e=tt.nameTable[t];e;){var n=e.name_next;-1!==i.indexOf(e.mount)&&tt.destroyNode(e),e=n}}),n.mounted=null;var o=n.mount.mounts.indexOf(r);n.mount.mounts.splice(o,1)},lookup:function(t,e){return t.node_ops.lookup(t,e)},mknod:function(t,e,n){var r=tt.lookupPath(t,{parent:!0}).node,i=Q.basename(t);if(!i||"."===i||".."===i)throw new tt.ErrnoError(28);var o=tt.mayCreate(r,i);if(o)throw new tt.ErrnoError(o);if(!r.node_ops.mknod)throw new tt.ErrnoError(63);return r.node_ops.mknod(r,i,e,n)},create:function(t,e){return e=void 0!==e?e:438,e&=4095,tt.mknod(t,e|=32768,0)},mkdir:function(t,e){return e=void 0!==e?e:511,e&=1023,tt.mknod(t,e|=16384,0)},mkdirTree:function(t,e){for(var n=t.split("/"),r="",i=0;ithis.length-1||t<0)){var e=t%this.chunkSize;return this.getter(t/this.chunkSize|0)[e]}},o.prototype.setDataGetter=function(t){this.getter=t},o.prototype.cacheLength=function(){var t=new XMLHttpRequest;if(t.open("HEAD",n,!1),t.send(null),!(t.status>=200&&t.status<300||304===t.status))throw new Error("Couldn't load "+n+". Status: "+t.status);var e,r=Number(t.getResponseHeader("Content-length")),i=(e=t.getResponseHeader("Accept-Ranges"))&&"bytes"===e,o=(e=t.getResponseHeader("Content-Encoding"))&&"gzip"===e,a=1048576;i||(a=r);var s=this;s.setDataGetter(function(t){var e=t*a,i=(t+1)*a-1;if(i=Math.min(i,r-1),void 0===s.chunks[t]&&(s.chunks[t]=function(t,e){if(t>e)throw new Error("invalid range ("+t+", "+e+") or no bytes requested!");if(e>r-1)throw new Error("only "+r+" bytes available! programmer error!");var i=new XMLHttpRequest;if(i.open("GET",n,!1),r!==a&&i.setRequestHeader("Range","bytes="+t+"-"+e),"undefined"!=typeof Uint8Array&&(i.responseType="arraybuffer"),i.overrideMimeType&&i.overrideMimeType("text/plain; charset=x-user-defined"),i.send(null),!(i.status>=200&&i.status<300||304===i.status))throw new Error("Couldn't load "+n+". Status: "+i.status);return void 0!==i.response?new Uint8Array(i.response||[]):at(i.responseText||"",!0)}(e,i)),void 0===s.chunks[t])throw new Error("doXHR failed!");return s.chunks[t]}),!o&&r||(a=r=1,r=this.getter(0).length,a=r,l("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=r,this._chunkSize=a,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var a,s=tt.createFile(t,e,a={isDevice:!1,url:n},r,i);a.contents?s.contents=a.contents:a.url&&(s.contents=null,s.url=a.url),Object.defineProperties(s,{usedBytes:{get:function(){return this.contents.length}}});var u={};return Object.keys(s.stream_ops).forEach(function(t){var e=s.stream_ops[t];u[t]=function(){if(!tt.forceLoadFile(s))throw new tt.ErrnoError(29);return e.apply(null,arguments)}}),u.read=function(t,e,n,r,i){if(!tt.forceLoadFile(s))throw new tt.ErrnoError(29);var o=t.node.contents;if(i>=o.length)return 0;var a=Math.min(o.length-i,r);if(o.slice)for(var u=0;u>2]=r.dev,y[n+4>>2]=0,y[n+8>>2]=r.ino,y[n+12>>2]=r.mode,y[n+16>>2]=r.nlink,y[n+20>>2]=r.uid,y[n+24>>2]=r.gid,y[n+28>>2]=r.rdev,y[n+32>>2]=0,G=[r.size>>>0,(z=r.size,+M(z)>=1?z>0?(0|R(+L(z/4294967296),4294967295))>>>0:~~+O((z-+(~~z>>>0))/4294967296)>>>0:0)],y[n+40>>2]=G[0],y[n+44>>2]=G[1],y[n+48>>2]=4096,y[n+52>>2]=r.blocks,y[n+56>>2]=r.atime.getTime()/1e3|0,y[n+60>>2]=0,y[n+64>>2]=r.mtime.getTime()/1e3|0,y[n+68>>2]=0,y[n+72>>2]=r.ctime.getTime()/1e3|0,y[n+76>>2]=0,G=[r.ino>>>0,(z=r.ino,+M(z)>=1?z>0?(0|R(+L(z/4294967296),4294967295))>>>0:~~+O((z-+(~~z>>>0))/4294967296)>>>0:0)],y[n+80>>2]=G[0],y[n+84>>2]=G[1],0},doMsync:function(t,e,n,r,i){var o=v.slice(t,t+n);tt.msync(e,o,i,n,r)},doMkdir:function(t,e){return"/"===(t=Q.normalize(t))[t.length-1]&&(t=t.substr(0,t.length-1)),tt.mkdir(t,e,0),0},doMknod:function(t,e,n){switch(61440&e){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return tt.mknod(t,e,n),0},doReadlink:function(t,e,n){if(n<=0)return-28;var r=tt.readlink(t),i=Math.min(n,T(r)),o=m[e+i];return E(r,v,e,n+1),m[e+i]=o,i},doAccess:function(t,e){if(-8&e)return-28;var n;if(!(n=tt.lookupPath(t,{follow:!0}).node))return-44;var r="";return 4&e&&(r+="r"),2&e&&(r+="w"),1&e&&(r+="x"),r&&tt.nodePermissions(n,r)?-2:0},doDup:function(t,e,n){var r=tt.getStream(n);return r&&tt.close(r),tt.open(t,e,0,n,n).fd},doReadv:function(t,e,n,r){for(var i=0,o=0;o>2],s=tt.read(t,m,y[e+8*o>>2],a,r);if(s<0)return-1;if(i+=s,s>2],y[e+(8*o+4)>>2],r);if(a<0)return-1;i+=a}return i},varargs:0,get:function(t){return et.varargs+=4,y[et.varargs-4>>2]},getStr:function(){return x(et.get())},getStreamFromFD:function(t){void 0===t&&(t=et.get());var e=tt.getStream(t);if(!e)throw new tt.ErrnoError(8);return e},get64:function(){var t=et.get();return et.get(),t},getZero:function(){et.get()}};function nt(t){try{return c.grow(t-g.byteLength+65535>>16),A(c.buffer),1}catch(e){}}var rt={};function it(){if(!it.strings){var t={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",_:a||"./this.program"};for(var e in rt)t[e]=rt[e];var n=[];for(var e in t)n.push(e+"="+t[e]);it.strings=n}return it.strings}function ot(t,e){ot.array||(ot.array=[]);var n,r=ot.array;for(r.length=0;n=v[t++];)100===n||102===n?(r.push(_[(e=e+7&-8)>>3]),e+=8):(r.push(y[(e=e+3&-4)>>2]),e+=4);return r}function at(t,e,n){var r=n>0?n:T(t)+1,i=new Array(r),o=E(t,i,0,i.length);return e&&(i.length=o),i}tt.staticInit();var st={h:function(t,e){et.varargs=e;try{return 42}catch(n){return void 0!==tt&&n instanceof tt.ErrnoError||j(n),-n.errno}},e:function(){j()},a:function(t,e,n){var r=ot(e,n);return H[t].apply(null,r)},c:function(t,e,n){v.set(v.subarray(e,e+n),t)},d:function(t){var e=v.length;if(t>2147418112)return!1;for(var n,r=1;r<=4;r*=2){var i=e*(1+.2/r);if(i=Math.min(i,t+100663296),nt(Math.min(2147418112,((n=Math.max(16777216,t,i))%65536>0&&(n+=65536-n%65536),n))))return!0}return!1},f:function(t,e){var n=it(),r=0;return n.forEach(function(n,i){var o=e+r;y[t+4*i>>2]=o,function(t,e,n){for(var r=0;r>0]=t.charCodeAt(r);m[e>>0]=0}(n,o),r+=n.length+1}),0},g:function(t,e){var n=it();y[t>>2]=n.length;var r=0;return n.forEach(function(t){r+=t.length+1}),y[e>>2]=r,0},j:function(t){try{var e=et.getStreamFromFD(t);return tt.close(e),0}catch(n){return void 0!==tt&&n instanceof tt.ErrnoError||j(n),n.errno}},i:function(t,e,n,r,i){try{var o=et.getStreamFromFD(t),a=4294967296*n+(e>>>0);return a<=-9007199254740992||a>=9007199254740992?-61:(tt.llseek(o,a,r),G=[o.position>>>0,(z=o.position,+M(z)>=1?z>0?(0|R(+L(z/4294967296),4294967295))>>>0:~~+O((z-+(~~z>>>0))/4294967296)>>>0:0)],y[i>>2]=G[0],y[i+4>>2]=G[1],o.getdents&&0===a&&0===r&&(o.getdents=null),0)}catch(s){return void 0!==tt&&s instanceof tt.ErrnoError||j(s),s.errno}},b:function(t,e,n,r){try{var i=et.getStreamFromFD(t),o=et.doWritev(i,e,n);return y[r>>2]=o,0}catch(a){return void 0!==tt&&a instanceof tt.ErrnoError||j(a),a.errno}},k:function(t){var e=Date.now();return y[t>>2]=e/1e3|0,y[t+4>>2]=e%1e3*1e3|0,0},memory:c,table:f},ut=function(){var t={a:st};function e(t,e){r.asm=t.exports,F()}function n(t){e(t.instance)}function i(e){return(u||"function"!=typeof fetch?new Promise(function(t,e){t(V())}):fetch(J,{credentials:"same-origin"}).then(function(t){if(!t.ok)throw"failed to load wasm binary file at '"+J+"'";return t.arrayBuffer()}).catch(function(){return V()})).then(function(e){return WebAssembly.instantiate(e,t)}).then(e,function(t){h("failed to asynchronously prepare wasm: "+t),j(t)})}if(q(),r.instantiateWasm)try{return r.instantiateWasm(t,e)}catch(o){return h("Module.instantiateWasm callback failed with error: "+o),!1}return function(){if(u||"function"!=typeof WebAssembly.instantiateStreaming||Y(J)||"function"!=typeof fetch)return i(n);fetch(J,{credentials:"same-origin"}).then(function(e){return WebAssembly.instantiateStreaming(e,t).then(n,function(t){h("wasm streaming compile failed: "+t),h("falling back to ArrayBuffer instantiation"),i(n)})})}(),{}}();r.asm=ut;var ct,lt=r.___wasm_call_ctors=function(){return(lt=r.___wasm_call_ctors=r.asm.l).apply(null,arguments)},ht=r._emscripten_bind_CExpat_CExpat_0=function(){return(ht=r._emscripten_bind_CExpat_CExpat_0=r.asm.m).apply(null,arguments)},ft=r._emscripten_bind_CExpat_create_0=function(){return(ft=r._emscripten_bind_CExpat_create_0=r.asm.n).apply(null,arguments)},dt=r._emscripten_bind_CExpat_destroy_0=function(){return(dt=r._emscripten_bind_CExpat_destroy_0=r.asm.o).apply(null,arguments)},pt=r._emscripten_bind_CExpat_parse_1=function(){return(pt=r._emscripten_bind_CExpat_parse_1=r.asm.p).apply(null,arguments)},gt=r._emscripten_bind_CExpat_tag_0=function(){return(gt=r._emscripten_bind_CExpat_tag_0=r.asm.q).apply(null,arguments)},mt=r._emscripten_bind_CExpat_attrs_0=function(){return(mt=r._emscripten_bind_CExpat_attrs_0=r.asm.r).apply(null,arguments)},vt=r._emscripten_bind_CExpat_content_0=function(){return(vt=r._emscripten_bind_CExpat_content_0=r.asm.s).apply(null,arguments)},yt=r._emscripten_bind_CExpat_startElement_0=function(){return(yt=r._emscripten_bind_CExpat_startElement_0=r.asm.t).apply(null,arguments)},_t=r._emscripten_bind_CExpat_endElement_0=function(){return(_t=r._emscripten_bind_CExpat_endElement_0=r.asm.u).apply(null,arguments)},wt=r._emscripten_bind_CExpat_characterData_0=function(){return(wt=r._emscripten_bind_CExpat_characterData_0=r.asm.v).apply(null,arguments)},bt=r._emscripten_bind_CExpat___destroy___0=function(){return(bt=r._emscripten_bind_CExpat___destroy___0=r.asm.w).apply(null,arguments)},xt=r._emscripten_bind_CExpatJS_CExpatJS_0=function(){return(xt=r._emscripten_bind_CExpatJS_CExpatJS_0=r.asm.x).apply(null,arguments)},Et=r._emscripten_bind_CExpatJS_startElement_0=function(){return(Et=r._emscripten_bind_CExpatJS_startElement_0=r.asm.y).apply(null,arguments)},Tt=r._emscripten_bind_CExpatJS_endElement_0=function(){return(Tt=r._emscripten_bind_CExpatJS_endElement_0=r.asm.z).apply(null,arguments)},At=r._emscripten_bind_CExpatJS_characterData_0=function(){return(At=r._emscripten_bind_CExpatJS_characterData_0=r.asm.A).apply(null,arguments)},St=r._emscripten_bind_CExpatJS___destroy___0=function(){return(St=r._emscripten_bind_CExpatJS___destroy___0=r.asm.B).apply(null,arguments)},It=r._emscripten_bind_VoidPtr___destroy___0=function(){return(It=r._emscripten_bind_VoidPtr___destroy___0=r.asm.C).apply(null,arguments)},Dt=r._malloc=function(){return(Dt=r._malloc=r.asm.D).apply(null,arguments)};function Nt(t){function e(){ct||(ct=!0,d||(Z=!0,r.noFSInit||tt.init.initialized||tt.init(),X.init(),I(N),tt.ignorePermissions=!1,I(k),r.onRuntimeInitialized&&r.onRuntimeInitialized(),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)t=r.postRun.shift(),C.unshift(t);var t;I(C)}()))}U>0||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)t=r.preRun.shift(),D.unshift(t);var t;I(D)}(),U>0||(r.setStatus?(r.setStatus("Running..."),setTimeout(function(){setTimeout(function(){r.setStatus("")},1),e()},1)):e()))}if(r._free=function(){return(r._free=r.asm.E).apply(null,arguments)},r.___errno_location=function(){return(r.___errno_location=r.asm.F).apply(null,arguments)},r.stackAlloc=function(){return(r.stackAlloc=r.asm.G).apply(null,arguments)},r.dynCall_vi=function(){return(r.dynCall_vi=r.asm.H).apply(null,arguments)},r.asm=ut,r.then=function(t){if(ct)t(r);else{var e=r.onRuntimeInitialized;r.onRuntimeInitialized=function(){e&&e(),t(r)}}return r},P=function t(){ct||Nt(),ct||(P=t)},r.run=Nt,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();function kt(){}function Ct(t){return(t||kt).__cache__}function Zt(t,e){var n=Ct(e),r=n[t];return r||((r=Object.create((e||kt).prototype)).ptr=t,n[t]=r)}Nt(),(kt.prototype=Object.create(kt.prototype)).constructor=kt,kt.prototype.__class__=kt,kt.__cache__={},r.WrapperObject=kt,r.getCache=Ct,r.wrapPointer=Zt,r.castObject=function(t,e){return Zt(t.ptr,e)},r.NULL=Zt(0),r.destroy=function(t){if(!t.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";t.__destroy__(),delete Ct(t.__class__)[t.ptr]},r.compare=function(t,e){return t.ptr===e.ptr},r.getPointer=function(t){return t.ptr},r.getClass=function(t){return t.__class__};var Mt={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(Mt.needed){for(var t=0;t=Mt.size?(p(i>0),Mt.needed+=i,n=r._malloc(i),Mt.temps.push(n)):(n=Mt.buffer+Mt.pos,Mt.pos+=i),n},copy:function(t,e,n){var r=n;switch(e.BYTES_PER_ELEMENT){case 2:r>>=1;break;case 4:r>>=2;break;case 8:r>>=3}for(var i=0;i=r);)++i;if(i-e>16&&t.subarray&&A)return A.decode(t.subarray(e,i));for(var o="";e>10,56320|1023&c)}}else o+=String.fromCharCode((31&a)<<6|s)}else o+=String.fromCharCode(a)}return o}function I(t,e){return t?S(b,t,e):""}function D(t,e,n,r){if(!(r>0))return 0;for(var i=n,o=n+r-1,a=0;a=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&t.charCodeAt(++a)),s<=127){if(n>=o)break;e[n++]=s}else if(s<=2047){if(n+1>=o)break;e[n++]=192|s>>6,e[n++]=128|63&s}else if(s<=65535){if(n+2>=o)break;e[n++]=224|s>>12,e[n++]=128|s>>6&63,e[n++]=128|63&s}else{if(n+3>=o)break;e[n++]=240|s>>18,e[n++]=128|s>>12&63,e[n++]=128|s>>6&63,e[n++]=128|63&s}}return e[n]=0,n-i}function N(t){for(var e=0,n=0;n=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&t.charCodeAt(++n)),r<=127?++e:e+=r<=2047?2:r<=65535?3:4}return e}function k(t){_=t,r.HEAP8=w=new Int8Array(t),r.HEAP16=x=new Int16Array(t),r.HEAP32=E=new Int32Array(t),r.HEAPU8=b=new Uint8Array(t),r.HEAPU16=new Uint16Array(t),r.HEAPU32=new Uint32Array(t),r.HEAPF32=new Float32Array(t),r.HEAPF64=T=new Float64Array(t)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var C=r.TOTAL_MEMORY||16777216;function Z(t){for(;t.length>0;){var e=t.shift();if("function"!=typeof e){var n=e.func;"number"==typeof n?void 0===e.arg?r.dynCall_v(n):r.dynCall_vi(n,e.arg):n(void 0===e.arg?null:e.arg)}else e()}}(d=r.wasmMemory?r.wasmMemory:new WebAssembly.Memory({initial:C/65536}))&&(_=d.buffer),C=_.byteLength,k(_),E[54772]=5462128;var M=[],O=[],L=[],R=[],U=!1,P=Math.abs,q=Math.ceil,F=Math.floor,j=Math.min,Y=0,B=null;function z(t){Y++,r.monitorRunDependencies&&r.monitorRunDependencies(Y)}function G(t){if(Y--,r.monitorRunDependencies&&r.monitorRunDependencies(Y),0==Y&&B){var e=B;B=null,e()}}function J(t){throw r.onAbort&&r.onAbort(t),c(t+=""),l(t),v=!0,t="abort("+t+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(t)}function V(t){return String.prototype.startsWith?t.startsWith("data:application/octet-stream;base64,"):0===t.indexOf("data:application/octet-stream;base64,")}r.preloadedImages={},r.preloadedAudios={};var H,Q,W,$="graphvizlib.wasm";function X(){try{if(h)return new Uint8Array(h);throw"both async and sync fetching of the wasm failed"}catch(l){J(l)}}V($)||(H=$,$=r.locateFile?r.locateFile(H,u):u+H);var K={1088:function(t,e){var n=I(t),r=I(e);at.createPath("/",nt.dirname(n)),at.writeFile(nt.join("/",n),r)}};function tt(){J()}function et(t){return r.___errno_location&&(E[r.___errno_location()>>2]=t),t}O.push({func:function(){Et()}});var nt={splitPath:function(t){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(t).slice(1)},normalizeArray:function(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n;n--)t.unshift("..");return t},normalize:function(t){var e="/"===t.charAt(0),n="/"===t.substr(-1);return(t=nt.normalizeArray(t.split("/").filter(function(t){return!!t}),!e).join("/"))||e||(t="."),t&&n&&(t+="/"),(e?"/":"")+t},dirname:function(t){var e=nt.splitPath(t),n=e[0],r=e[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},basename:function(t){if("/"===t)return"/";var e=t.lastIndexOf("/");return-1===e?t:t.substr(e+1)},extname:function(t){return nt.splitPath(t)[3]},join:function(){var t=Array.prototype.slice.call(arguments,0);return nt.normalize(t.join("/"))},join2:function(t,e){return nt.normalize(t+"/"+e)}},rt={resolve:function(){for(var t="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var r=n>=0?arguments[n]:at.cwd();if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");if(!r)return"";t=r+"/"+t,e="/"===r.charAt(0)}return(e?"/":"")+(t=nt.normalizeArray(t.split("/").filter(function(t){return!!t}),!e).join("/"))||"."},relative:function(t,e){function n(t){for(var e=0;e=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=rt.resolve(t).substr(1),e=rt.resolve(e).substr(1);for(var r=n(t.split("/")),i=n(e.split("/")),o=Math.min(r.length,i.length),a=o,s=0;s0&&(c(S(t.output,0)),t.output=[])}},default_tty1_ops:{put_char:function(t,e){null===e||10===e?(l(S(t.output,0)),t.output=[]):0!=e&&t.output.push(e)},flush:function(t){t.output&&t.output.length>0&&(l(S(t.output,0)),t.output=[])}}},ot={ops_table:null,mount:function(t){return ot.createNode(null,"/",16895,0)},createNode:function(t,e,n,r){if(at.isBlkdev(n)||at.isFIFO(n))throw new at.ErrnoError(63);ot.ops_table||(ot.ops_table={dir:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr,lookup:ot.node_ops.lookup,mknod:ot.node_ops.mknod,rename:ot.node_ops.rename,unlink:ot.node_ops.unlink,rmdir:ot.node_ops.rmdir,readdir:ot.node_ops.readdir,symlink:ot.node_ops.symlink},stream:{llseek:ot.stream_ops.llseek}},file:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr},stream:{llseek:ot.stream_ops.llseek,read:ot.stream_ops.read,write:ot.stream_ops.write,allocate:ot.stream_ops.allocate,mmap:ot.stream_ops.mmap,msync:ot.stream_ops.msync}},link:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr,readlink:ot.node_ops.readlink},stream:{}},chrdev:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr},stream:at.chrdev_stream_ops}});var i=at.createNode(t,e,n,r);return at.isDir(i.mode)?(i.node_ops=ot.ops_table.dir.node,i.stream_ops=ot.ops_table.dir.stream,i.contents={}):at.isFile(i.mode)?(i.node_ops=ot.ops_table.file.node,i.stream_ops=ot.ops_table.file.stream,i.usedBytes=0,i.contents=null):at.isLink(i.mode)?(i.node_ops=ot.ops_table.link.node,i.stream_ops=ot.ops_table.link.stream):at.isChrdev(i.mode)&&(i.node_ops=ot.ops_table.chrdev.node,i.stream_ops=ot.ops_table.chrdev.stream),i.timestamp=Date.now(),t&&(t.contents[e]=i),i},getFileDataAsRegularArray:function(t){if(t.contents&&t.contents.subarray){for(var e=[],n=0;n=e)){e=Math.max(e,n*(n<1048576?2:1.125)|0),0!=n&&(e=Math.max(e,256));var r=t.contents;t.contents=new Uint8Array(e),t.usedBytes>0&&t.contents.set(r.subarray(0,t.usedBytes),0)}},resizeFileStorage:function(t,e){if(t.usedBytes!=e){if(0==e)return t.contents=null,void(t.usedBytes=0);if(!t.contents||t.contents.subarray){var n=t.contents;return t.contents=new Uint8Array(e),n&&t.contents.set(n.subarray(0,Math.min(e,t.usedBytes))),void(t.usedBytes=e)}if(t.contents||(t.contents=[]),t.contents.length>e)t.contents.length=e;else for(;t.contents.length=t.node.usedBytes)return 0;var a=Math.min(t.node.usedBytes-i,r);if(a>8&&o.subarray)e.set(o.subarray(i,i+a),n);else for(var s=0;s0||i+r8)throw new at.ErrnoError(32);for(var i=nt.normalizeArray(t.split("/").filter(function(t){return!!t}),!1),o=at.root,a="/",s=0;s40)throw new at.ErrnoError(32)}}return{path:a,node:o}},getPath:function(t){for(var e;;){if(at.isRoot(t)){var n=t.mount.mountpoint;return e?"/"!==n[n.length-1]?n+"/"+e:n+e:n}e=e?t.name+"/"+e:t.name,t=t.parent}},hashName:function(t,e){for(var n=0,r=0;r>>0)%at.nameTable.length},hashAddNode:function(t){var e=at.hashName(t.parent.id,t.name);t.name_next=at.nameTable[e],at.nameTable[e]=t},hashRemoveNode:function(t){var e=at.hashName(t.parent.id,t.name);if(at.nameTable[e]===t)at.nameTable[e]=t.name_next;else for(var n=at.nameTable[e];n;){if(n.name_next===t){n.name_next=t.name_next;break}n=n.name_next}},lookupNode:function(t,e){var n=at.mayLookup(t);if(n)throw new at.ErrnoError(n,t);for(var r=at.hashName(t.id,e),i=at.nameTable[r];i;i=i.name_next)if(i.parent.id===t.id&&i.name===e)return i;return at.lookup(t,e)},createNode:function(t,e,n,r){at.FSNode||(at.FSNode=function(t,e,n,r){t||(t=this),this.parent=t,this.mount=t.mount,this.mounted=null,this.id=at.nextInode++,this.name=e,this.mode=n,this.node_ops={},this.stream_ops={},this.rdev=r},at.FSNode.prototype={},Object.defineProperties(at.FSNode.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(t){t?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(t){t?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return at.isDir(this.mode)}},isDevice:{get:function(){return at.isChrdev(this.mode)}}}));var i=new at.FSNode(t,e,n,r);return at.hashAddNode(i),i},destroyNode:function(t){at.hashRemoveNode(t)},isRoot:function(t){return t===t.parent},isMountpoint:function(t){return!!t.mounted},isFile:function(t){return 32768==(61440&t)},isDir:function(t){return 16384==(61440&t)},isLink:function(t){return 40960==(61440&t)},isChrdev:function(t){return 8192==(61440&t)},isBlkdev:function(t){return 24576==(61440&t)},isFIFO:function(t){return 4096==(61440&t)},isSocket:function(t){return 49152==(49152&t)},flagModes:{r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function(t){var e=at.flagModes[t];if(void 0===e)throw new Error("Unknown file open mode: "+t);return e},flagsToPermissionString:function(t){var e=["r","w","rw"][3&t];return 512&t&&(e+="w"),e},nodePermissions:function(t,e){return at.ignorePermissions||(-1===e.indexOf("r")||292&t.mode)&&(-1===e.indexOf("w")||146&t.mode)&&(-1===e.indexOf("x")||73&t.mode)?0:2},mayLookup:function(t){return at.nodePermissions(t,"x")||(t.node_ops.lookup?0:2)},mayCreate:function(t,e){try{return at.lookupNode(t,e),20}catch(n){}return at.nodePermissions(t,"wx")},mayDelete:function(t,e,n){var r;try{r=at.lookupNode(t,e)}catch(o){return o.errno}var i=at.nodePermissions(t,"wx");if(i)return i;if(n){if(!at.isDir(r.mode))return 54;if(at.isRoot(r)||at.getPath(r)===at.cwd())return 10}else if(at.isDir(r.mode))return 31;return 0},mayOpen:function(t,e){return t?at.isLink(t.mode)?32:at.isDir(t.mode)&&("r"!==at.flagsToPermissionString(e)||512&e)?31:at.nodePermissions(t,at.flagsToPermissionString(e)):44},MAX_OPEN_FDS:4096,nextfd:function(t,e){e=e||at.MAX_OPEN_FDS;for(var n=t=t||0;n<=e;n++)if(!at.streams[n])return n;throw new at.ErrnoError(33)},getStream:function(t){return at.streams[t]},createStream:function(t,e,n){at.FSStream||(at.FSStream=function(){},at.FSStream.prototype={},Object.defineProperties(at.FSStream.prototype,{object:{get:function(){return this.node},set:function(t){this.node=t}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}}));var r=new at.FSStream;for(var i in t)r[i]=t[i];t=r;var o=at.nextfd(e,n);return t.fd=o,at.streams[o]=t,t},closeStream:function(t){at.streams[t]=null},chrdev_stream_ops:{open:function(t){var e=at.getDevice(t.node.rdev);t.stream_ops=e.stream_ops,t.stream_ops.open&&t.stream_ops.open(t)},llseek:function(){throw new at.ErrnoError(70)}},major:function(t){return t>>8},minor:function(t){return 255&t},makedev:function(t,e){return t<<8|e},registerDevice:function(t,e){at.devices[t]={stream_ops:e}},getDevice:function(t){return at.devices[t]},getMounts:function(t){for(var e=[],n=[t];n.length;){var r=n.pop();e.push(r),n.push.apply(n,r.mounts)}return e},syncfs:function(t,e){"function"==typeof t&&(e=t,t=!1),at.syncFSRequests++,at.syncFSRequests>1&&l("warning: "+at.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var n=at.getMounts(at.root.mount),r=0;function i(t){return at.syncFSRequests--,e(t)}function o(t){if(t)return o.errored?void 0:(o.errored=!0,i(t));++r>=n.length&&i(null)}n.forEach(function(e){if(!e.type.syncfs)return o(null);e.type.syncfs(e,t,o)})},mount:function(t,e,n){var r,i="/"===n,o=!n;if(i&&at.root)throw new at.ErrnoError(10);if(!i&&!o){var a=at.lookupPath(n,{follow_mount:!1});if(n=a.path,at.isMountpoint(r=a.node))throw new at.ErrnoError(10);if(!at.isDir(r.mode))throw new at.ErrnoError(54)}var s={type:t,opts:e,mountpoint:n,mounts:[]},u=t.mount(s);return u.mount=s,s.root=u,i?at.root=u:r&&(r.mounted=s,r.mount&&r.mount.mounts.push(s)),u},unmount:function(t){var e=at.lookupPath(t,{follow_mount:!1});if(!at.isMountpoint(e.node))throw new at.ErrnoError(28);var n=e.node,r=n.mounted,i=at.getMounts(r);Object.keys(at.nameTable).forEach(function(t){for(var e=at.nameTable[t];e;){var n=e.name_next;-1!==i.indexOf(e.mount)&&at.destroyNode(e),e=n}}),n.mounted=null;var o=n.mount.mounts.indexOf(r);n.mount.mounts.splice(o,1)},lookup:function(t,e){return t.node_ops.lookup(t,e)},mknod:function(t,e,n){var r=at.lookupPath(t,{parent:!0}).node,i=nt.basename(t);if(!i||"."===i||".."===i)throw new at.ErrnoError(28);var o=at.mayCreate(r,i);if(o)throw new at.ErrnoError(o);if(!r.node_ops.mknod)throw new at.ErrnoError(63);return r.node_ops.mknod(r,i,e,n)},create:function(t,e){return e=void 0!==e?e:438,e&=4095,at.mknod(t,e|=32768,0)},mkdir:function(t,e){return e=void 0!==e?e:511,e&=1023,at.mknod(t,e|=16384,0)},mkdirTree:function(t,e){for(var n=t.split("/"),r="",i=0;ithis.length-1||t<0)){var e=t%this.chunkSize;return this.getter(t/this.chunkSize|0)[e]}},o.prototype.setDataGetter=function(t){this.getter=t},o.prototype.cacheLength=function(){var t=new XMLHttpRequest;if(t.open("HEAD",n,!1),t.send(null),!(t.status>=200&&t.status<300||304===t.status))throw new Error("Couldn't load "+n+". Status: "+t.status);var e,r=Number(t.getResponseHeader("Content-length")),i=(e=t.getResponseHeader("Accept-Ranges"))&&"bytes"===e,o=(e=t.getResponseHeader("Content-Encoding"))&&"gzip"===e,a=1048576;i||(a=r);var s=this;s.setDataGetter(function(t){var e=t*a,i=(t+1)*a-1;if(i=Math.min(i,r-1),void 0===s.chunks[t]&&(s.chunks[t]=function(t,e){if(t>e)throw new Error("invalid range ("+t+", "+e+") or no bytes requested!");if(e>r-1)throw new Error("only "+r+" bytes available! programmer error!");var i=new XMLHttpRequest;if(i.open("GET",n,!1),r!==a&&i.setRequestHeader("Range","bytes="+t+"-"+e),"undefined"!=typeof Uint8Array&&(i.responseType="arraybuffer"),i.overrideMimeType&&i.overrideMimeType("text/plain; charset=x-user-defined"),i.send(null),!(i.status>=200&&i.status<300||304===i.status))throw new Error("Couldn't load "+n+". Status: "+i.status);return void 0!==i.response?new Uint8Array(i.response||[]):_t(i.responseText||"",!0)}(e,i)),void 0===s.chunks[t])throw new Error("doXHR failed!");return s.chunks[t]}),!o&&r||(a=r=1,r=this.getter(0).length,a=r,c("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=r,this._chunkSize=a,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var a,s=at.createFile(t,e,a={isDevice:!1,url:n},r,i);a.contents?s.contents=a.contents:a.url&&(s.contents=null,s.url=a.url),Object.defineProperties(s,{usedBytes:{get:function(){return this.contents.length}}});var u={};return Object.keys(s.stream_ops).forEach(function(t){var e=s.stream_ops[t];u[t]=function(){if(!at.forceLoadFile(s))throw new at.ErrnoError(29);return e.apply(null,arguments)}}),u.read=function(t,e,n,r,i){if(!at.forceLoadFile(s))throw new at.ErrnoError(29);var o=t.node.contents;if(i>=o.length)return 0;var a=Math.min(o.length-i,r);if(o.slice)for(var u=0;u>2]=r.dev,E[n+4>>2]=0,E[n+8>>2]=r.ino,E[n+12>>2]=r.mode,E[n+16>>2]=r.nlink,E[n+20>>2]=r.uid,E[n+24>>2]=r.gid,E[n+28>>2]=r.rdev,E[n+32>>2]=0,W=[r.size>>>0,(Q=r.size,+P(Q)>=1?Q>0?(0|j(+F(Q/4294967296),4294967295))>>>0:~~+q((Q-+(~~Q>>>0))/4294967296)>>>0:0)],E[n+40>>2]=W[0],E[n+44>>2]=W[1],E[n+48>>2]=4096,E[n+52>>2]=r.blocks,E[n+56>>2]=r.atime.getTime()/1e3|0,E[n+60>>2]=0,E[n+64>>2]=r.mtime.getTime()/1e3|0,E[n+68>>2]=0,E[n+72>>2]=r.ctime.getTime()/1e3|0,E[n+76>>2]=0,W=[r.ino>>>0,(Q=r.ino,+P(Q)>=1?Q>0?(0|j(+F(Q/4294967296),4294967295))>>>0:~~+q((Q-+(~~Q>>>0))/4294967296)>>>0:0)],E[n+80>>2]=W[0],E[n+84>>2]=W[1],0},doMsync:function(t,e,n,r,i){var o=b.slice(t,t+n);at.msync(e,o,i,n,r)},doMkdir:function(t,e){return"/"===(t=nt.normalize(t))[t.length-1]&&(t=t.substr(0,t.length-1)),at.mkdir(t,e,0),0},doMknod:function(t,e,n){switch(61440&e){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return at.mknod(t,e,n),0},doReadlink:function(t,e,n){if(n<=0)return-28;var r=at.readlink(t),i=Math.min(n,N(r)),o=w[e+i];return D(r,b,e,n+1),w[e+i]=o,i},doAccess:function(t,e){if(-8&e)return-28;var n;if(!(n=at.lookupPath(t,{follow:!0}).node))return-44;var r="";return 4&e&&(r+="r"),2&e&&(r+="w"),1&e&&(r+="x"),r&&at.nodePermissions(n,r)?-2:0},doDup:function(t,e,n){var r=at.getStream(n);return r&&at.close(r),at.open(t,e,0,n,n).fd},doReadv:function(t,e,n,r){for(var i=0,o=0;o>2],s=at.read(t,w,E[e+8*o>>2],a,r);if(s<0)return-1;if(i+=s,s>2],E[e+(8*o+4)>>2],r);if(a<0)return-1;i+=a}return i},varargs:0,get:function(t){return st.varargs+=4,E[st.varargs-4>>2]},getStr:function(){return I(st.get())},getStreamFromFD:function(t){void 0===t&&(t=st.get());var e=at.getStream(t);if(!e)throw new at.ErrnoError(8);return e},get64:function(){var t=st.get();return st.get(),t},getZero:function(){st.get()}};function ut(t,e,n){e|=0;var r,i=0,o=0,a=0;if(r=(t|=0)+(n|=0)|0,e&=255,(0|n)>=67){for(;0!=(3&t);)w[t>>0]=e,t=t+1|0;for(a=e|e<<8|e<<16|e<<24,o=(i=-4&r|0)-64|0;(0|t)<=(0|o);)E[t>>2]=a,E[t+4>>2]=a,E[t+8>>2]=a,E[t+12>>2]=a,E[t+16>>2]=a,E[t+20>>2]=a,E[t+24>>2]=a,E[t+28>>2]=a,E[t+32>>2]=a,E[t+36>>2]=a,E[t+40>>2]=a,E[t+44>>2]=a,E[t+48>>2]=a,E[t+52>>2]=a,E[t+56>>2]=a,E[t+60>>2]=a,t=t+64|0;for(;(0|t)<(0|i);)E[t>>2]=a,t=t+4|0}for(;(0|t)<(0|r);)w[t>>0]=e,t=t+1|0;return r-n|0}var ct=0;function lt(t){try{return d.grow(t-_.byteLength+65535>>16),k(d.buffer),1}catch(e){}}var ht={};function ft(){if(!ft.strings){var t={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",_:a||"./this.program"};for(var e in ht)t[e]=ht[e];var n=[];for(var e in t)n.push(e+"="+t[e]);ft.strings=n}return ft.strings}function dt(t){return t%4==0&&(t%100!=0||t%400==0)}function pt(t,e){for(var n=0,r=0;r<=e;n+=t[r++]);return n}var gt=[31,29,31,30,31,30,31,31,30,31,30,31],mt=[31,28,31,30,31,30,31,31,30,31,30,31];function vt(t,e){for(var n=new Date(t.getTime());e>0;){var r=dt(n.getFullYear()),i=n.getMonth(),o=(r?gt:mt)[i];if(!(e>o-n.getDate()))return n.setDate(n.getDate()+e),n;e-=o-n.getDate()+1,n.setDate(1),i<11?n.setMonth(i+1):(n.setMonth(0),n.setFullYear(n.getFullYear()+1))}return n}function yt(t,e){yt.array||(yt.array=[]);var n,r=yt.array;for(r.length=0;n=b[t++];)100===n||102===n?(r.push(T[(e=e+7&-8)>>3]),e+=8):(r.push(E[(e=e+3&-4)>>2]),e+=4);return r}function _t(t,e,n){var r=n>0?n:N(t)+1,i=new Array(r),o=D(t,i,0,i.length);return e&&(i.length=o),i}tt=function(){return performance.now()},at.staticInit();var wt={M:function(t,e){return function(t,e){var n;if(0===t)n=Date.now();else{if(1!==t&&4!==t)return et(28),-1;n=tt()}return E[e>>2]=n/1e3|0,E[e+4>>2]=n%1e3*1e3*1e3|0,0}(t,e)},k:function(t){return Nt(t)},j:function(t,e,n){throw"uncaught_exception"in Mt?Mt.uncaught_exceptions++:Mt.uncaught_exceptions=1,t},q:function(){},U:function(t,e){return et(63),-1},P:function(t,e){st.varargs=e;try{var n=st.getStr();return at.unlink(n),0}catch(r){return void 0!==at&&r instanceof at.ErrnoError||J(r),-r.errno}},R:function(t,e){st.varargs=e;try{return function(t,e,n,r,i,o){var a;o<<=12;var s=!1;if(0!=(16&r)&&t%16384!=0)return-28;if(0!=(32&r)){if(!(a=Ot(16384,e)))return-48;ut(a,0,e),s=!0}else{var u=at.getStream(i);if(!u)return-8;var c=at.mmap(u,b,t,e,o,n,r);a=c.ptr,s=c.allocated}return st.mappings[a]={malloc:a,len:e,allocated:s,fd:i,flags:r,offset:o},a}(st.get(),st.get(),st.get(),st.get(),st.get(),st.get())}catch(n){return void 0!==at&&n instanceof at.ErrnoError||J(n),-n.errno}},S:function(t,e){st.varargs=e;try{var n=st.getStr(),r=st.get();return st.doStat(at.stat,n,r)}catch(i){return void 0!==at&&i instanceof at.ErrnoError||J(i),-i.errno}},T:function(t,e){st.varargs=e;try{var n=st.getStreamFromFD(),r=st.get();return st.doStat(at.stat,n.path,r)}catch(i){return void 0!==at&&i instanceof at.ErrnoError||J(i),-i.errno}},L:function(t,e){st.varargs=e;try{return 42}catch(n){return void 0!==at&&n instanceof at.ErrnoError||J(n),-n.errno}},y:function(t,e){st.varargs=e;try{var n=st.getStreamFromFD();switch(st.get()){case 0:return(r=st.get())<0?-28:at.open(n.path,n.flags,0,r).fd;case 1:case 2:return 0;case 3:return n.flags;case 4:var r=st.get();return n.flags|=r,0;case 12:return r=st.get(),x[r+0>>1]=2,0;case 13:case 14:return 0;case 16:case 8:return-28;case 9:return et(28),-1;default:return-28}}catch(i){return void 0!==at&&i instanceof at.ErrnoError||J(i),-i.errno}},K:function(t,e){st.varargs=e;try{var n=st.getStr(),r=st.get();return st.doAccess(n,r)}catch(i){return void 0!==at&&i instanceof at.ErrnoError||J(i),-i.errno}},z:function(t,e){st.varargs=e;try{var n=st.getStr(),r=st.get(),i=st.get();return at.open(n,r,i).fd}catch(o){return void 0!==at&&o instanceof at.ErrnoError||J(o),-o.errno}},O:function(t,e){st.varargs=e;try{var n=st.getStreamFromFD(),r=st.get();switch(r){case 21509:case 21505:return n.tty?0:-59;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return n.tty?0:-59;case 21519:if(!n.tty)return-59;var i=st.get();return E[i>>2]=0,0;case 21520:return n.tty?-28:-59;case 21531:return i=st.get(),at.ioctl(n,r,i);case 21523:case 21524:return n.tty?0:-59;default:J("bad ioctl syscall "+r)}}catch(o){return void 0!==at&&o instanceof at.ErrnoError||J(o),-o.errno}},Q:function(t,e){st.varargs=e;try{return function(t,e){if(-1===t||0===e)return-28;var n=st.mappings[t];if(!n)return 0;if(e===n.len){var r=at.getStream(n.fd);st.doMsync(t,r,e,n.flags,n.offset),at.munmap(r),st.mappings[t]=null,n.allocated&&kt(n.malloc)}return 0}(st.get(),st.get())}catch(n){return void 0!==at&&n instanceof at.ErrnoError||J(n),-n.errno}},m:function(){},w:function(){J()},C:function(t,e,n){var r=yt(e,n);return K[t].apply(null,r)},d:function(t,e){!function(t,e){throw Zt(t,e||1),"longjmp"}(t,e)},E:function(t,e,n){b.set(b.subarray(e,e+n),t)},F:function(t){var e=b.length;if(t>2147418112)return!1;for(var n,r=1;r<=4;r*=2){var i=e*(1+.2/r);if(i=Math.min(i,t+100663296),lt(Math.min(2147418112,((n=Math.max(16777216,t,i))%65536>0&&(n+=65536-n%65536),n))))return!0}return!1},I:function(t,e){var n=ft(),r=0;return n.forEach(function(n,i){var o=e+r;E[t+4*i>>2]=o,function(t,e,n){for(var r=0;r>0]=t.charCodeAt(r);w[e>>0]=0}(n,o),r+=n.length+1}),0},J:function(t,e){var n=ft();E[t>>2]=n.length;var r=0;return n.forEach(function(t){r+=t.length+1}),E[e>>2]=r,0},l:function(t){!function(t,e){f||(v=!0,r.onExit&&r.onExit(t)),s(t,new $t(t))}(t)},p:function(t){try{var e=st.getStreamFromFD(t);return at.close(e),0}catch(n){return void 0!==at&&n instanceof at.ErrnoError||J(n),n.errno}},H:function(t,e){try{var n=st.getStreamFromFD(t),r=n.tty?2:at.isDir(n.mode)?3:at.isLink(n.mode)?7:4;return w[e>>0]=r,0}catch(i){return void 0!==at&&i instanceof at.ErrnoError||J(i),i.errno}},N:function(t,e,n,r){try{var i=st.getStreamFromFD(t),o=st.doReadv(i,e,n);return E[r>>2]=o,0}catch(a){return void 0!==at&&a instanceof at.ErrnoError||J(a),a.errno}},D:function(t,e,n,r,i){try{var o=st.getStreamFromFD(t),a=4294967296*n+(e>>>0);return a<=-9007199254740992||a>=9007199254740992?-61:(at.llseek(o,a,r),W=[o.position>>>0,(Q=o.position,+P(Q)>=1?Q>0?(0|j(+F(Q/4294967296),4294967295))>>>0:~~+q((Q-+(~~Q>>>0))/4294967296)>>>0:0)],E[i>>2]=W[0],E[i+4>>2]=W[1],o.getdents&&0===a&&0===r&&(o.getdents=null),0)}catch(s){return void 0!==at&&s instanceof at.ErrnoError||J(s),s.errno}},x:function(t,e,n,r){try{var i=st.getStreamFromFD(t),o=st.doWritev(i,e,n);return E[r>>2]=o,0}catch(a){return void 0!==at&&a instanceof at.ErrnoError||J(a),a.errno}},a:function(){return 0|p},X:function(t){var e=Date.now();return E[t>>2]=e/1e3|0,E[t+4>>2]=e%1e3*1e3|0,0},Y:function(t){var e=Qt();try{return Vt(t)}catch(n){if(Wt(e),n!==n+0&&"longjmp"!==n)throw n;Zt(1,0)}},V:function(t,e){var n=Qt();try{return Ht(t,e)}catch(r){if(Wt(n),r!==r+0&&"longjmp"!==r)throw r;Zt(1,0)}},v:function(t){var e=Qt();try{return jt(t)}catch(n){if(Wt(e),n!==n+0&&"longjmp"!==n)throw n;Zt(1,0)}},f:function(t,e){var n=Qt();try{return Yt(t,e)}catch(r){if(Wt(n),r!==r+0&&"longjmp"!==r)throw r;Zt(1,0)}},e:function(t,e,n){var r=Qt();try{return Bt(t,e,n)}catch(i){if(Wt(r),i!==i+0&&"longjmp"!==i)throw i;Zt(1,0)}},g:function(t,e,n,r){var i=Qt();try{return zt(t,e,n,r)}catch(o){if(Wt(i),o!==o+0&&"longjmp"!==o)throw o;Zt(1,0)}},n:function(t,e,n,r,i){var o=Qt();try{return Gt(t,e,n,r,i)}catch(a){if(Wt(o),a!==a+0&&"longjmp"!==a)throw a;Zt(1,0)}},W:function(t,e,n,r,i,o,a){var s=Qt();try{return Jt(t,e,n,r,i,o,a)}catch(u){if(Wt(s),u!==u+0&&"longjmp"!==u)throw u;Zt(1,0)}},s:function(t){var e=Qt();try{Lt(t)}catch(n){if(Wt(e),n!==n+0&&"longjmp"!==n)throw n;Zt(1,0)}},h:function(t,e){var n=Qt();try{Rt(t,e)}catch(r){if(Wt(n),r!==r+0&&"longjmp"!==r)throw r;Zt(1,0)}},o:function(t,e,n){var r=Qt();try{Ut(t,e,n)}catch(i){if(Wt(r),i!==i+0&&"longjmp"!==i)throw i;Zt(1,0)}},u:function(t,e,n,r){var i=Qt();try{Pt(t,e,n,r)}catch(o){if(Wt(i),o!==o+0&&"longjmp"!==o)throw o;Zt(1,0)}},t:function(t,e,n,r,i){var o=Qt();try{qt(t,e,n,r,i)}catch(a){if(Wt(o),a!==a+0&&"longjmp"!==a)throw a;Zt(1,0)}},r:function(t,e,n,r,i,o){var a=Qt();try{Ft(t,e,n,r,i,o)}catch(s){if(Wt(a),s!==s+0&&"longjmp"!==s)throw s;Zt(1,0)}},memory:d,i:function t(e,n,r,i){n|=0,r|=0,i|=0;var o=0;for(E[(e|=0)>>2]=ct=ct+1|0;(0|o)<(0|i);){if(0==(0|E[r+(o<<3)>>2]))return E[r+(o<<3)>>2]=ct,E[r+(4+(o<<3))>>2]=n,E[r+(8+(o<<3))>>2]=0,g(0|i),0|r;o=o+1|0}return r=0|t(0|e,0|n,0|(r=0|Ct(0|r,8*(1+(i=2*i|0)|0)|0)),0|i),g(0|i),0|r},b:function(t){g(0|t)},G:function(t,e,n,r){return function(t,e,n,r){var i=E[r+40>>2],o={tm_sec:E[r>>2],tm_min:E[r+4>>2],tm_hour:E[r+8>>2],tm_mday:E[r+12>>2],tm_mon:E[r+16>>2],tm_year:E[r+20>>2],tm_wday:E[r+24>>2],tm_yday:E[r+28>>2],tm_isdst:E[r+32>>2],tm_gmtoff:E[r+36>>2],tm_zone:i?I(i):""},a=I(n),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var u in s)a=a.replace(new RegExp(u,"g"),s[u]);var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],l=["January","February","March","April","May","June","July","August","September","October","November","December"];function h(t,e,n){for(var r="number"==typeof t?t.toString():t||"";r.length0?1:0}var r;return 0===(r=n(t.getFullYear()-e.getFullYear()))&&0===(r=n(t.getMonth()-e.getMonth()))&&(r=n(t.getDate()-e.getDate())),r}function p(t){switch(t.getDay()){case 0:return new Date(t.getFullYear()-1,11,29);case 1:return t;case 2:return new Date(t.getFullYear(),0,3);case 3:return new Date(t.getFullYear(),0,2);case 4:return new Date(t.getFullYear(),0,1);case 5:return new Date(t.getFullYear()-1,11,31);case 6:return new Date(t.getFullYear()-1,11,30)}}function g(t){var e=vt(new Date(t.tm_year+1900,0,1),t.tm_yday),n=new Date(e.getFullYear(),0,4),r=new Date(e.getFullYear()+1,0,4),i=p(n),o=p(r);return d(i,e)<=0?d(o,e)<=0?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var m={"%a":function(t){return c[t.tm_wday].substring(0,3)},"%A":function(t){return c[t.tm_wday]},"%b":function(t){return l[t.tm_mon].substring(0,3)},"%B":function(t){return l[t.tm_mon]},"%C":function(t){return f((t.tm_year+1900)/100|0,2)},"%d":function(t){return f(t.tm_mday,2)},"%e":function(t){return h(t.tm_mday,2," ")},"%g":function(t){return g(t).toString().substring(2)},"%G":function(t){return g(t)},"%H":function(t){return f(t.tm_hour,2)},"%I":function(t){var e=t.tm_hour;return 0==e?e=12:e>12&&(e-=12),f(e,2)},"%j":function(t){return f(t.tm_mday+pt(dt(t.tm_year+1900)?gt:mt,t.tm_mon-1),3)},"%m":function(t){return f(t.tm_mon+1,2)},"%M":function(t){return f(t.tm_min,2)},"%n":function(){return"\n"},"%p":function(t){return t.tm_hour>=0&&t.tm_hour<12?"AM":"PM"},"%S":function(t){return f(t.tm_sec,2)},"%t":function(){return"\t"},"%u":function(t){return t.tm_wday||7},"%U":function(t){var e=new Date(t.tm_year+1900,0,1),n=0===e.getDay()?e:vt(e,7-e.getDay()),r=new Date(t.tm_year+1900,t.tm_mon,t.tm_mday);if(d(n,r)<0){var i=pt(dt(r.getFullYear())?gt:mt,r.getMonth()-1)-31,o=31-n.getDate()+i+r.getDate();return f(Math.ceil(o/7),2)}return 0===d(n,e)?"01":"00"},"%V":function(t){var e,n=new Date(t.tm_year+1900,0,4),r=new Date(t.tm_year+1901,0,4),i=p(n),o=p(r),a=vt(new Date(t.tm_year+1900,0,1),t.tm_yday);return d(a,i)<0?"53":d(o,a)<=0?"01":(e=i.getFullYear()=0;return e=(e=Math.abs(e)/60)/60*100+e%60,(n?"+":"-")+String("0000"+e).slice(-4)},"%Z":function(t){return t.tm_zone},"%%":function(){return"%"}};for(var u in m)a.indexOf(u)>=0&&(a=a.replace(new RegExp(u,"g"),m[u](o)));var v=_t(a,!1);return v.length>e?0:(function(t,e){w.set(t,e)}(v,t),v.length-1)}(t,e,n,r)},table:m,c:function(t,e,n){t|=0,e|=0,n|=0;for(var r=0,i=0;(0|r)<(0|n)&&0!=(0|(i=0|E[e+(r<<3)>>2]));){if((0|i)==(0|t))return 0|E[e+(4+(r<<3))>>2];r=r+1|0}return 0},A:function(t){var e=Date.now()/1e3|0;return t&&(E[t>>2]=e),e},B:function(t){return 0!==t&&ut(t,0,16),0}},bt=function(){var t={a:wt};function e(t,e){r.asm=t.exports,G()}function n(t){e(t.instance)}function i(e){return(h||"function"!=typeof fetch?new Promise(function(t,e){t(X())}):fetch($,{credentials:"same-origin"}).then(function(t){if(!t.ok)throw"failed to load wasm binary file at '"+$+"'";return t.arrayBuffer()}).catch(function(){return X()})).then(function(e){return WebAssembly.instantiate(e,t)}).then(e,function(t){l("failed to asynchronously prepare wasm: "+t),J(t)})}if(z(),r.instantiateWasm)try{return r.instantiateWasm(t,e)}catch(o){return l("Module.instantiateWasm callback failed with error: "+o),!1}return function(){if(h||"function"!=typeof WebAssembly.instantiateStreaming||V($)||"function"!=typeof fetch)return i(n);fetch($,{credentials:"same-origin"}).then(function(e){return WebAssembly.instantiateStreaming(e,t).then(n,function(t){l("wasm streaming compile failed: "+t),l("falling back to ArrayBuffer instantiation"),i(n)})})}(),{}}();r.asm=bt;var xt,Et=r.___wasm_call_ctors=function(){return(Et=r.___wasm_call_ctors=r.asm.Z).apply(null,arguments)},Tt=r._emscripten_bind_VoidPtr___destroy___0=function(){return(Tt=r._emscripten_bind_VoidPtr___destroy___0=r.asm._).apply(null,arguments)},At=r._emscripten_bind_Main_layout_3=function(){return(At=r._emscripten_bind_Main_layout_3=r.asm.$).apply(null,arguments)},St=r._emscripten_bind_Main_lastError_0=function(){return(St=r._emscripten_bind_Main_lastError_0=r.asm.aa).apply(null,arguments)},It=r._emscripten_bind_Main_createFile_2=function(){return(It=r._emscripten_bind_Main_createFile_2=r.asm.ba).apply(null,arguments)},Dt=r._emscripten_bind_Main___destroy___0=function(){return(Dt=r._emscripten_bind_Main___destroy___0=r.asm.ca).apply(null,arguments)},Nt=r._malloc=function(){return(Nt=r._malloc=r.asm.da).apply(null,arguments)},kt=r._free=function(){return(kt=r._free=r.asm.ea).apply(null,arguments)},Ct=r._realloc=function(){return(Ct=r._realloc=r.asm.fa).apply(null,arguments)},Zt=(r.___errno_location=function(){return(r.___errno_location=r.asm.ga).apply(null,arguments)},r._setThrew=function(){return(Zt=r._setThrew=r.asm.ha).apply(null,arguments)}),Mt=r.__ZSt18uncaught_exceptionv=function(){return(Mt=r.__ZSt18uncaught_exceptionv=r.asm.ia).apply(null,arguments)},Ot=r._memalign=function(){return(Ot=r._memalign=r.asm.ja).apply(null,arguments)},Lt=r.dynCall_v=function(){return(Lt=r.dynCall_v=r.asm.ka).apply(null,arguments)},Rt=r.dynCall_vi=function(){return(Rt=r.dynCall_vi=r.asm.la).apply(null,arguments)},Ut=r.dynCall_vii=function(){return(Ut=r.dynCall_vii=r.asm.ma).apply(null,arguments)},Pt=r.dynCall_viii=function(){return(Pt=r.dynCall_viii=r.asm.na).apply(null,arguments)},qt=r.dynCall_viiii=function(){return(qt=r.dynCall_viiii=r.asm.oa).apply(null,arguments)},Ft=r.dynCall_viiiii=function(){return(Ft=r.dynCall_viiiii=r.asm.pa).apply(null,arguments)},jt=r.dynCall_i=function(){return(jt=r.dynCall_i=r.asm.qa).apply(null,arguments)},Yt=r.dynCall_ii=function(){return(Yt=r.dynCall_ii=r.asm.ra).apply(null,arguments)},Bt=r.dynCall_iii=function(){return(Bt=r.dynCall_iii=r.asm.sa).apply(null,arguments)},zt=r.dynCall_iiii=function(){return(zt=r.dynCall_iiii=r.asm.ta).apply(null,arguments)},Gt=r.dynCall_iiiii=function(){return(Gt=r.dynCall_iiiii=r.asm.ua).apply(null,arguments)},Jt=r.dynCall_iiiiiii=function(){return(Jt=r.dynCall_iiiiiii=r.asm.va).apply(null,arguments)},Vt=r.dynCall_d=function(){return(Vt=r.dynCall_d=r.asm.wa).apply(null,arguments)},Ht=r.dynCall_di=function(){return(Ht=r.dynCall_di=r.asm.xa).apply(null,arguments)},Qt=r.stackSave=function(){return(Qt=r.stackSave=r.asm.ya).apply(null,arguments)},Wt=(r.stackAlloc=function(){return(r.stackAlloc=r.asm.za).apply(null,arguments)},r.stackRestore=function(){return(Wt=r.stackRestore=r.asm.Aa).apply(null,arguments)});function $t(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function Xt(t){function e(){xt||(xt=!0,v||(U=!0,r.noFSInit||at.init.initialized||at.init(),it.init(),Z(O),at.ignorePermissions=!1,Z(L),r.onRuntimeInitialized&&r.onRuntimeInitialized(),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)t=r.postRun.shift(),R.unshift(t);var t;Z(R)}()))}Y>0||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)t=r.preRun.shift(),M.unshift(t);var t;Z(M)}(),Y>0||(r.setStatus?(r.setStatus("Running..."),setTimeout(function(){setTimeout(function(){r.setStatus("")},1),e()},1)):e()))}if(r.asm=bt,r.then=function(t){if(xt)t(r);else{var e=r.onRuntimeInitialized;r.onRuntimeInitialized=function(){e&&e(),t(r)}}return r},B=function t(){xt||Xt(),xt||(B=t)},r.run=Xt,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();function Kt(){}function te(t){return(t||Kt).__cache__}function ee(t,e){var n=te(e),r=n[t];return r||((r=Object.create((e||Kt).prototype)).ptr=t,n[t]=r)}f=!0,Xt(),(Kt.prototype=Object.create(Kt.prototype)).constructor=Kt,Kt.prototype.__class__=Kt,Kt.__cache__={},r.WrapperObject=Kt,r.getCache=te,r.wrapPointer=ee,r.castObject=function(t,e){return ee(t.ptr,e)},r.NULL=ee(0),r.destroy=function(t){if(!t.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";t.__destroy__(),delete te(t.__class__)[t.ptr]},r.compare=function(t,e){return t.ptr===e.ptr},r.getPointer=function(t){return t.ptr},r.getClass=function(t){return t.__class__};var ne={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(ne.needed){for(var t=0;t=ne.size?(y(i>0),ne.needed+=i,n=r._malloc(i),ne.temps.push(n)):(n=ne.buffer+ne.pos,ne.pos+=i),n},copy:function(t,e,n){var r=n;switch(e.BYTES_PER_ELEMENT){case 2:r>>=1;break;case 4:r>>=2;break;case 8:r>>=3}for(var i=0;i\n\n'}}function m(t,e){var n,r=p({images:[],files:[]},e);(function(){for(var t=0,e=0,n=arguments.length;e>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?x(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?x(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=h.exec(t))?new A(e[1],e[2],e[3],1):(e=f.exec(t))?new A(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=d.exec(t))?x(e[1],e[2],e[3],e[4]):(e=p.exec(t))?x(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=g.exec(t))?N(e[1],e[2]/100,e[3]/100,1):(e=m.exec(t))?N(e[1],e[2]/100,e[3]/100,e[4]):v.hasOwnProperty(t)?b(v[t]):"transparent"===t?new A(NaN,NaN,NaN,0):null}function b(t){return new A(t>>16&255,t>>8&255,255&t,1)}function x(t,e,n,r){return r<=0&&(t=e=n=NaN),new A(t,e,n,r)}function E(t){return t instanceof i||(t=w(t)),t?new A((t=t.rgb()).r,t.g,t.b,t.opacity):new A}function T(t,e,n,r){return 1===arguments.length?E(t):new A(t,e,n,null==r?1:r)}function A(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function S(){return"#"+D(this.r)+D(this.g)+D(this.b)}function I(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function D(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function N(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Z(t,e,n,r)}function k(t){if(t instanceof Z)return new Z(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=w(t)),!t)return new Z;if(t instanceof Z)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),a=Math.max(e,n,r),s=NaN,u=a-o,c=(a+o)/2;return u?(s=e===a?(n-r)/u+6*(n0&&c<1?0:s,new Z(s,u,c,t.opacity)}function C(t,e,n,r){return 1===arguments.length?k(t):new Z(t,e,n,null==r?1:r)}function Z(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function M(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}(0,r.Z)(i,w,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return k(this).formatHsl()},formatRgb:_,toString:_}),(0,r.Z)(A,T,(0,r.l)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new A(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new A(this.r*t,this.g*t,this.b*t,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:S,formatHex:S,formatRgb:I,toString:I})),(0,r.Z)(Z,C,(0,r.l)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new Z(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new Z(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new A(M(t>=240?t-240:t+120,i,r),M(t,i,r),M(t<120?t+240:t-120,i,r),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 t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},80052:function(t,e,n){"use strict";function r(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function i(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}n.d(e,{Z:function(){return r},l:function(){return i}})},64641:function(t,e){"use strict";var n={value:function(){}};function r(){for(var t,e=0,n=arguments.length,r={};e=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}function a(t,e){for(var n,r=0,i=t.length;r0)for(var n,r,i=new Array(n),o=0;o1?r[0]+r.slice(2):r,+t.slice(n+1)]}n.d(e,{Z:function(){return r}})},93116:function(t,e,n){"use strict";n.d(e,{Z:function(){return i},v:function(){return o}});var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(t){if(!(e=r.exec(t)))throw new Error("invalid format: "+t);var e;return new o({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function o(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}i.prototype=o.prototype,o.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}},25047:function(t,e,n){"use strict";n.r(e),n.d(e,{formatDefaultLocale:function(){return r.ZP},format:function(){return r.WU},formatPrefix:function(){return r.jH},formatLocale:function(){return i.Z},formatSpecifier:function(){return o.Z},FormatSpecifier:function(){return o.v},precisionFixed:function(){return a.Z},precisionPrefix:function(){return s.Z},precisionRound:function(){return u.Z}});var r=n(3712),i=n(70592),o=n(93116),a=n(22233),s=n(65636),u=n(3218)},70592:function(t,e,n){"use strict";n.d(e,{Z:function(){return f}});var r,i=n(98477),o=n(93116),a=n(25169);function s(t,e){var n=(0,a.Z)(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}var u={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return s(100*t,e)},r:s,s:function(t,e){var n=(0,a.Z)(t,e);if(!n)return t+"";var i=n[0],o=n[1],s=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,u=i.length;return s===u?i:s>u?i+new Array(s-u+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+(0,a.Z)(t,Math.max(0,e+s-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function c(t){return t}var l=Array.prototype.map,h=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function f(t){var e,n,a=void 0===t.grouping||void 0===t.thousands?c:(e=l.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),o.push(t.substring(i-=s,i+s)),!((u+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}),s=void 0===t.currency?"":t.currency[0]+"",f=void 0===t.currency?"":t.currency[1]+"",d=void 0===t.decimal?".":t.decimal+"",p=void 0===t.numerals?c:function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(l.call(t.numerals,String)),g=void 0===t.percent?"%":t.percent+"",m=void 0===t.minus?"-":t.minus+"",v=void 0===t.nan?"NaN":t.nan+"";function y(t){var e=(t=(0,o.Z)(t)).fill,n=t.align,i=t.sign,c=t.symbol,l=t.zero,y=t.width,_=t.comma,w=t.precision,b=t.trim,x=t.type;"n"===x?(_=!0,x="g"):u[x]||(void 0===w&&(w=12),b=!0,x="g"),(l||"0"===e&&"="===n)&&(l=!0,e="0",n="=");var E="$"===c?s:"#"===c&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",T="$"===c?f:/[%p]/.test(x)?g:"",A=u[x],S=/[defgprs%]/.test(x);function I(t){var o,s,u,c=E,f=T;if("c"===x)f=A(t)+f,t="";else{var g=(t=+t)<0||1/t<0;if(t=isNaN(t)?v:A(Math.abs(t),w),b&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),g&&0==+t&&"+"!==i&&(g=!1),c=(g?"("===i?i:m:"-"===i||"("===i?"":i)+c,f=("s"===x?h[8+r/3]:"")+f+(g&&"("===i?")":""),S)for(o=-1,s=t.length;++o(u=t.charCodeAt(o))||u>57){f=(46===u?d+t.slice(o+1):t.slice(o))+f,t=t.slice(0,o);break}}_&&!l&&(t=a(t,1/0));var I=c.length+t.length+f.length,D=I>1)+c+t+f+D.slice(I);break;default:t=D+c+t+f}return p(t)}return w=void 0===w?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w)),I.toString=function(){return t+""},I}return{format:y,formatPrefix:function(t,e){var n=y(((t=(0,o.Z)(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor((0,i.Z)(e)/3))),a=Math.pow(10,-r),s=h[8+r/3];return function(t){return n(a*t)+s}}}}},22233:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(98477);function i(t){return Math.max(0,-(0,r.Z)(Math.abs(t)))}},65636:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(98477);function i(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,r.Z)(e)/3)))-(0,r.Z)(Math.abs(t)))}},3218:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(98477);function i(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,(0,r.Z)(e)-(0,r.Z)(t))+1}},73180:function(t,e,n){!function(t,e,n,r,i,o,a,s,u,c){"use strict";function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e1&&void 0!==arguments[1]?arguments[1]:0,r=e.select(this),i=t.attributes,o=r.node().attributes;if(o)for(var a=0;a0?i.children[0].text:"")}null==t.key&&(o&&("ellipse"!=n&&"polygon"!=n||(n="path")),t.key=n+"-"+e)}function m(t,e){t.id=(e?e.id+".":"")+t.key}function v(t){c[t.id]=t}function y(t,e){o&&t.id in l&&("polygon"!=e.tag&&"ellipse"!=e.tag&&"path"!=e.tag||e.tag==t.tag&&"polygon"!=t.tag||("path"!=e.tag&&(t.alternativeOld=N(e,t)),"path"!=t.tag&&(t.alternativeNew=N(t,e))))}function _(t,e){if(i&&e&&("path"==e.tag||t.alternativeOld&&"path"==t.alternativeOld.tag)){var n=(t.alternativeNew||t).attributes.d;if(t.alternativeOld)var r=g(t.alternativeOld);else r=g(e);(t.alternativeOld||(t.alternativeOld={})).points=function(t,e,n,r){for(var i=t,o=i.cloneNode(),a=i.getTotalLength(),s=(o.setAttribute("d",e),o).getTotalLength(),u=[0],c=0,l=r?n:n/Math.max(a,s);(c+=l)<1;)u.push(c);return u.push(1),u.map(function(t){var e=i.getPointAtLength(t*a),n=o.getPointAtLength(t*s);return[[e.x,e.y],[n.x,n.y]]})}(r,n,a,s)}}function w(t){var e=arguments.length>2?arguments[2]:void 0;p(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),m(t,e);var n=l[t.id];v(t),y(t,n),_(t,n);var r={};t.children.forEach(function(e){var n=e.tag;"ellipse"!=n&&"polygon"!=n||(n="path"),null==r[n]&&(r[n]=0),w(e,r[n]++,t)})}function b(t){(function(t){if(u&&t.parent&&"node"==t.parent.attributes.class&&"title"==t.tag){if(t.children.length>0)var e=t.children[0].text;else e="";h[e]=t.parent}})(t),function(t){var e=t.tag;if(u&&!l[t.id]&&t.parent&&I(t)&&("path"==e||"polygon"==e)){if("polygon"==e){var n=t.parent.children.find(function(t){return"path"==t.tag});n&&(t.totalLength=n.totalLength)}var r=function(t){return function(t){return"edge"==t.parent.attributes.class?t.parent:t.parent.parent.parent}(t).children.find(function(t){return"title"==t.tag})}(t).children[0],i=r.text.split("->");2!=i.length&&(i=r.text.split("--"));var o=i[0],a=h[o],s=f[o];if(s){if((p=a.children.findIndex(function(t,e){return"g"==t.tag}))>=0){var c=a.children[p].children.findIndex(function(t,e){return"a"==t.tag});a=a.children[p].children[c]}(p=s.children.findIndex(function(t,e){return"g"==t.tag}))>=0&&(c=s.children[p].children.findIndex(function(t,e){return"a"==t.tag}),s=s.children[p].children[c]);for(var d=a.children,p=0;p0&&this._queue.shift().call(this)}function M(t,e,n,r){var i=[t*n-(e=-e)*(r=-r),t*r+e*n];return[t=i[0],e=-(e=i[1])]}function O(t,e,n,r,i,o,a){var s=d(P.call(this,o));t.data([s]),_.call(t.node(),s),L(t,e,n,r,i,o,a)}function L(t,e,n,r,i,o,a){var s=a.shortening||0,u=[[0,-3.5],[10,0],[0,3.5],[0,-3.5]],l=r-e,h=i-n,f=Math.sqrt(l*l+h*h);if(0==f)var d=1,p=0;else d=l/f,p=h/f;if(r=e+(f-s-10-.1)*d,i=n+(f-s-10-.1)*p,o.URL||o.tooltip)var g=t.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a"),m=g.selectWithoutDataPropagation("path"),v=g.selectWithoutDataPropagation("polygon");else m=t.selectWithoutDataPropagation("path"),v=t.selectWithoutDataPropagation("polygon");var y=c.path();y.moveTo(e,n),y.lineTo(r,i),m.attr("d",y),r=e+(f-s-10)*d,i=n+(f-s-10)*p;for(var _=0;_ b ["+n+"]}","svg","dot"),s=(new window.DOMParser).parseFromString(a,"image/svg+xml");return e.select(document.createDocumentFragment()).append(function(){return s.documentElement}).select(".edge")}function q(t,e,n,r,i,o){var a=d(B.call(this,r,i));return t.data([a]),_.call(t.node(),a),F(t,e,n,i),this}function F(t,n,r,i,o){if(i.URL||i.tooltip)var a=t.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a");else a=t;var s=a.selectAll("ellipse,polygon,path,polyline"),u=t.selectWithoutDataPropagation("text");if(0!=s.size()){var c=s.node().getBBox();c.cx=c.x+c.width/2,c.cy=c.y+c.height/2}else 0!=u.size()&&(c={x:+u.attr("x"),y:+u.attr("y"),width:0,height:0,cx:+u.attr("x"),cy:+u.attr("y")});return s.each(function(t,i){var o=e.select(this);if(o.attr("cx"))o.attr("cx",b(n)).attr("cy",b(r));else if(o.attr("points")){var a=o.attr("points").trim();o.attr("points",function(t,e,n){var r,i=(r=t.split(" ")).map(function(t){return t.split(",")});return i=r.map(function(t){return[b(+e+ +t.split(",")[0]),b(+n+ +t.split(",")[1])]}),(r=i.map(function(t){return t.join(",")})).join(" ")}(a,n-c.cx,r-c.cy))}else{var s=o.attr("d");o.attr("d",function(t,e,n){(i=t.split(/[A-Z ]/)).shift();var r=t.split(/[^[A-Z ]+/),i=(i.map(function(t){return t.split(",")}),i.map(function(t){return[b(+e+ +t.split(",")[0]),b(+n+ +t.split(",")[1])]}).map(function(t){return t.join(",")}));return r.reduce(function(t,e,n){return t.concat(e,i[n])},[]).join("")}(s,n-c.cx,r-c.cy))}}),0!=u.size()&&u.attr("x",b(+u.attr("x")+n-c.cx)).attr("y",b(+u.attr("y")+r-c.cy)),this}function j(){if(!this._drawnNode)return this;var t=this._drawnNode.g;return t.empty()||t.remove(),this._drawnNode=null,this}function Y(){return this._drawnNode?this._drawnNode.g:e.select(null)}function B(t,n){for(var r="",i=0,o=Object.keys(n);i2")(a)+" ",i+=s+" ".repeat(o-s.length),i+=u.format(" >5")(t-n)+" ","initEnd"!=s&&(i+=u.format(" >5")(t-r.start[e])),"dataProcessEnd"==s&&(i+=" prepare "+u.format(" >5")(t-r.layoutEnd[e])),"renderEnd"==s&&c._transition&&(i+=" transition start margin "+u.format(" >5")(c._transition.delay()-(t-r.renderStart[e])),l=c._transition.delay(),f=c._transition.duration()),"transitionStart"==s){var h=t-r.renderStart[e];i+=" transition delay "+u.format(" >5")(t-r.renderStart[e]),i+=" expected "+u.format(" >5")(l),i+=" diff "+u.format(" >5")(h-l)}if("transitionEnd"==s){var d=t-r.transitionStart[e];i+=" transition duration "+u.format(" >5")(d),i+=" expected "+u.format(" >5")(f),i+=" diff "+u.format(" >5")(d-f)}console.log(i),n=t}:null)},s=0;s5&&void 0!==arguments[5]?arguments[5]:{};if((o=Object.assign({},o)).style&&o.style.includes("invis"))var s=e.select(null);else{var u=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),c=d(P.call(this,o));s=u.append("g").data([c]),_.call(s.node(),c),O.call(this,s,t,n,r,i,o,a)}return this._drawnEdge={g:s,x1:t,y1:n,x2:r,y2:i,attributes:o},this},updateDrawnEdge:function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var a=this._drawnEdge.g;return i=Object.assign(this._drawnEdge.attributes,i),this._drawnEdge.x1=t,this._drawnEdge.y1=e,this._drawnEdge.x2=n,this._drawnEdge.y2=r,!a.empty()||i.style&&i.style.includes("invis")||(a=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnEdge.g=a),a.empty()||O.call(this,a,t,e,n,r,i,o),this},moveDrawnEdgeEndPoint:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var r=this._drawnEdge.g,i=this._drawnEdge.x1,o=this._drawnEdge.y1,a=this._drawnEdge.attributes;return this._drawnEdge.x2=t,this._drawnEdge.y2=e,L(r,i,o,t,e,a,n),this},insertDrawnEdge:function(t){if(!this._drawnEdge)throw Error("No edge has been drawn");var e=this._drawnEdge.g;if(e.empty())return this;e.selectWithoutDataPropagation("title").text(t);var n=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),r=n.datum(),i=this._extractData(e,r.children.length,n.datum());return r.children.push(i),v(e,i),this._drawnEdge=null,this},removeDrawnEdge:R},"removeDrawnEdge",R),l(V,"drawnEdgeSelection",U),l(V,"drawnEdgeSelection",U),l(V,"drawNode",function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if((i=Object.assign({},i)).style&&i.style.includes("invis"))var a=e.select(null);else{var s=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),u=d(B.call(this,r,i));a=s.append("g").data([u]),_.call(a.node(),u),q.call(this,a,t,n,r,i,o)}return this._drawnNode={g:a,nodeId:r,x:t,y:n,attributes:i},this}),l(V,"updateDrawnNode",function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!this._drawnNode)throw Error("No node has been drawn");var o=this._drawnNode.g;return null==n&&(n=this._drawnNode.nodeId),r=Object.assign(this._drawnNode.attributes,r),this._drawnNode.nodeId=n,this._drawnNode.x=t,this._drawnNode.y=e,!o.empty()||r.style&&r.style.includes("invis")||(o=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnNode.g=o),o.empty()||q.call(this,o,t,e,n,r,i),this}),l(V,"moveDrawnNode",function(t,e){if(!this._drawnNode)throw Error("No node has been drawn");var n=this._drawnNode.g,r=this._drawnNode.attributes;return this._drawnNode.x=t,this._drawnNode.y=e,n.empty()||F(n,t,e,r),this}),l(V,"insertDrawnNode",function(t){if(!this._drawnNode)throw Error("No node has been drawn");null==t&&(t=this._drawnNode.nodeId);var e=this._drawnNode.g;if(e.empty())return this;var n=this._drawnNode.attributes;if(e.selectWithoutDataPropagation("title").text(t),n.URL||n.tooltip)var r=e.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a"),i=(r.selectWithoutDataPropagation("ellipse,polygon,path,polyline"),r.selectWithoutDataPropagation("text"));else e.selectWithoutDataPropagation("ellipse,polygon,path,polyline"),i=e.selectWithoutDataPropagation("text");i.text(n.label||t);var o=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),a=o.datum(),s=this._extractData(e,a.children.length,o.datum());return a.children.push(s),v(e,s),this._drawnNode=null,this}),l(V,"removeDrawnNode",j),l(V,"removeDrawnNode",j),l(V,"drawnNodeSelection",Y),l(V,"drawnNodeSelection",Y),V),e.selection.prototype.graphviz=function(t){var e=this.node().__graphviz__;return e?(e.options(t),i.timeout((function(){e._dispatch.call("initEnd",this)}).bind(this),0)):e=new H(this,t),e},e.selection.prototype.selectWithoutDataPropagation=function(t){return e.select(this.size()>0?this.node().querySelector(t):null)},t.graphviz=Q,Object.defineProperty(t,"__esModule",{value:!0})}(e,n(24967),n(58552),n(82159),n(14788),n(30853),n(59320),n(95914),n(25047),n(16809))},60053:function(t,e,n){"use strict";n.d(e,{Z:function(){return o},M:function(){return a}});var r=n(3031),i=n(61317);function o(t,e){return((0,i.v)(e)?i.Z:a)(t,e)}function a(t,e){var n,i=e?e.length:0,o=t?Math.min(i,t.length):0,a=new Array(o),s=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),o=t[i],a=t[i+1];return r((n-i/e)*e,i>0?t[i-1]:2*o-a,o,a,i180||n<-180?n-360*Math.round(n/360):n):(0,r.Z)(isNaN(t)?e:t)}function a(t){return 1==(t=+t)?s:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):(0,r.Z)(isNaN(e)?n:e)}}function s(t,e){var n=e-t;return n?i(t,n):(0,r.Z)(isNaN(t)?e:t)}},94065:function(t,e,n){"use strict";function r(t){return function(){return t}}n.d(e,{Z:function(){return r}})},28917:function(t,e,n){"use strict";function r(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}n.d(e,{Z:function(){return r}})},30853:function(t,e,n){"use strict";n.r(e),n.d(e,{interpolate:function(){return r.Z},interpolateArray:function(){return i.Z},interpolateBasis:function(){return o.Z},interpolateBasisClosed:function(){return a.Z},interpolateCubehelix:function(){return nt},interpolateCubehelixLong:function(){return rt},interpolateDate:function(){return s.Z},interpolateDiscrete:function(){return u},interpolateHcl:function(){return Y},interpolateHclLong:function(){return B},interpolateHsl:function(){return b},interpolateHslLong:function(){return x},interpolateHue:function(){return l},interpolateLab:function(){return F},interpolateNumber:function(){return h.Z},interpolateNumberArray:function(){return f.Z},interpolateObject:function(){return d.Z},interpolateRgb:function(){return y.ZP},interpolateRgbBasis:function(){return y.hD},interpolateRgbBasisClosed:function(){return y.YD},interpolateRound:function(){return p.Z},interpolateString:function(){return g.Z},interpolateTransformCss:function(){return m.Y},interpolateTransformSvg:function(){return m.w},interpolateZoom:function(){return v.Z},piecewise:function(){return it},quantize:function(){return ot}});var r=n(3031),i=n(60053),o=n(39588),a=n(17280),s=n(28917);function u(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}var c=n(22656);function l(t,e){var n=(0,c.wx)(+t,+e);return function(t){var e=n(t);return e-360*Math.floor(e/360)}}var h=n(75306),f=n(61317),d=n(70901),p=n(47071),g=n(51882),m=n(44090),v=n(13764),y=n(38740),_=n(12314);function w(t){return function(e,n){var r=t((e=(0,_.Ym)(e)).h,(n=(0,_.Ym)(n)).h),i=(0,c.ZP)(e.s,n.s),o=(0,c.ZP)(e.l,n.l),a=(0,c.ZP)(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=o(t),e.opacity=a(t),e+""}}}var b=w(c.wx),x=w(c.ZP),E=n(80052),T=Math.PI/180,A=180/Math.PI,S=4/29,I=6/29,D=3*I*I;function N(t){if(t instanceof C)return new C(t.l,t.a,t.b,t.opacity);if(t instanceof P)return q(t);t instanceof _.Ss||(t=(0,_.SU)(t));var e,n,r=L(t.r),i=L(t.g),o=L(t.b),a=Z((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?e=n=a:(e=Z((.4360747*r+.3850649*i+.1430804*o)/.96422),n=Z((.0139322*r+.0971045*i+.7141733*o)/.82521)),new C(116*a-16,500*(e-a),200*(a-n),t.opacity)}function k(t,e,n,r){return 1===arguments.length?N(t):new C(t,e,n,null==r?1:r)}function C(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function Z(t){return t>.008856451679035631?Math.pow(t,1/3):t/D+S}function M(t){return t>I?t*t*t:D*(t-S)}function O(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function L(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function R(t){if(t instanceof P)return new P(t.h,t.c,t.l,t.opacity);if(t instanceof C||(t=N(t)),0===t.a&&0===t.b)return new P(NaN,0u&&(s=e.slice(u,s),l[c]?l[c]+=s:l[++c]=s),(n=n[0])===(a=a[0])?l[c]?l[c]+=a:l[++c]=a:(l[++c]=null,h.push({i:c,x:(0,r.Z)(n,a)})),u=o.lastIndex;return u180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:(0,s.Z)(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,u,c),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:(0,s.Z)(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,u,c),function(t,e,n,r,o,a){if(t!==n||e!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:(0,s.Z)(t,n)},{i:u-2,x:(0,s.Z)(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,c),o=a=null,function(t){for(var e,n=-1,r=c.length;++n1e-6)if(Math.abs(h*u-c*l)>1e-6&&o){var d=r-a,p=i-s,g=u*u+c*c,m=d*d+p*p,v=Math.sqrt(g),y=Math.sqrt(f),_=o*Math.tan((n-Math.acos((g+f-m)/(2*v*y)))/2),w=_/y,b=_/v;Math.abs(w-1)>1e-6&&(this._+="L"+(t+w*l)+","+(e+w*h)),this._+="A"+o+","+o+",0,0,"+ +(h*d>l*p)+","+(this._x1=t+b*u)+","+(this._y1=e+b*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,o,a,s,u){t=+t,e=+e,u=!!u;var c=(o=+o)*Math.cos(a),l=o*Math.sin(a),h=t+c,f=e+l,d=1^u,p=u?a-s:s-a;if(o<0)throw new Error("negative radius: "+o);null===this._x1?this._+="M"+h+","+f:(Math.abs(this._x1-h)>1e-6||Math.abs(this._y1-f)>1e-6)&&(this._+="L"+h+","+f),o&&(p<0&&(p=p%r+r),p>i?this._+="A"+o+","+o+",0,1,"+d+","+(t-c)+","+(e-l)+"A"+o+","+o+",0,1,"+d+","+(this._x1=h)+","+(this._y1=f):p>1e-6&&(this._+="A"+o+","+o+",0,"+ +(p>=n)+","+d+","+(this._x1=t+o*Math.cos(s))+","+(this._y1=e+o*Math.sin(s))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},e.Z=a},32436:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(26669),i=n(71867);function o(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===i.P&&e.documentElement.namespaceURI===i.P?e.createElement(t):e.createElementNS(n,t)}}function a(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function s(t){var e=(0,r.Z)(t);return(e.local?a:o)(e)}},24967:function(t,e,n){"use strict";n.r(e),n.d(e,{clientPoint:function(){return d.Z},create:function(){return o},creator:function(){return r.Z},customEvent:function(){return E._H},event:function(){return E.B},local:function(){return s},matcher:function(){return c.Z},mouse:function(){return l.Z},namespace:function(){return h.Z},namespaces:function(){return f.Z},select:function(){return i.Z},selectAll:function(){return g},selection:function(){return p.ZP},selector:function(){return m.Z},selectorAll:function(){return v.Z},style:function(){return y.S},touch:function(){return _.Z},touches:function(){return b},window:function(){return x.Z}});var r=n(32436),i=n(41036);function o(t){return(0,i.Z)((0,r.Z)(t).call(document.documentElement))}var a=0;function s(){return new u}function u(){this._="@"+(++a).toString(36)}u.prototype=s.prototype={constructor:u,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var c=n(54382),l=n(38337),h=n(26669),f=n(71867),d=n(54762),p=n(42710);function g(t){return"string"==typeof t?new p.Y1([document.querySelectorAll(t)],[document.documentElement]):new p.Y1([null==t?[]:t],p.Jz)}var m=n(69309),v=n(85502),y=n(97717),_=n(45161),w=n(72732);function b(t,e){null==e&&(e=(0,w.Z)().touches);for(var n=0,r=e?e.length:0,i=new Array(r);n=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),r.Z.hasOwnProperty(e)?{space:r.Z[e],local:t}:t}},71867:function(t,e,n){"use strict";n.d(e,{P:function(){return r}});var r="http://www.w3.org/1999/xhtml";e.Z={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},54762:function(t,e,n){"use strict";function r(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}n.d(e,{Z:function(){return r}})},41036:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(42710);function i(t){return"string"==typeof t?new r.Y1([[document.querySelector(t)]],[document.documentElement]):new r.Y1([[t]],r.Jz)}},42710:function(t,e,n){"use strict";n.d(e,{Y1:function(){return Q},ZP:function(){return $},Jz:function(){return H}});var r=n(69309),i=n(85502),o=n(54382);function a(t){return new Array(t.length)}function s(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function u(t,e,n,r,i,o){for(var a,u=0,c=e.length,l=o.length;ue?1:t>=e?0:NaN}s.prototype={constructor:s,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var h=n(26669);function f(t){return function(){this.removeAttribute(t)}}function d(t){return function(){this.removeAttributeNS(t.space,t.local)}}function p(t,e){return function(){this.setAttribute(t,e)}}function g(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function m(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function v(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var y=n(97717);function _(t){return function(){delete this[t]}}function w(t,e){return function(){this[t]=e}}function b(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function x(t){return t.trim().split(/^|\s+/)}function E(t){return t.classList||new T(t)}function T(t){this._node=t,this._names=x(t.getAttribute("class")||"")}function A(t,e){for(var n=E(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var P=n(32436);function q(){return null}function F(){var t=this.parentNode;t&&t.removeChild(this)}function j(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Y(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var B=n(92711),z=n(11130);function G(t,e,n){var r=(0,z.Z)(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function J(t,e){return function(){return G(this,t,e)}}function V(t,e){return function(){return G(this,t,e.apply(this,arguments))}}var H=[null];function Q(t,e){this._groups=t,this._parents=e}function W(){return new Q([[document.documentElement]],H)}Q.prototype=W.prototype={constructor:Q,select:function(t){"function"!=typeof t&&(t=(0,r.Z)(t));for(var e=this._groups,n=e.length,i=new Array(n),o=0;o=E&&(E=x+1);!(b=_[E])&&++E=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=l);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==e?_:"function"==typeof e?b:w)(t,e)):this.node()[t]},classed:function(t,e){var n=x(t+"");if(arguments.length<2){for(var r=E(this.node()),i=-1,o=n.length;++i=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}function u(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r1?this.each((null==e?i:"function"==typeof e?a:o)(t,e,null==n?"":n)):u(this.node(),t)}function u(t,e){return t.style.getPropertyValue(e)||(0,r.Z)(t).getComputedStyle(t,null).getPropertyValue(e)}},69309:function(t,e,n){"use strict";function r(){}function i(t){return null==t?r:function(){return this.querySelector(t)}}n.d(e,{Z:function(){return i}})},85502:function(t,e,n){"use strict";function r(){return[]}function i(t){return null==t?r:function(){return this.querySelectorAll(t)}}n.d(e,{Z:function(){return i}})},72732:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(92711);function i(){for(var t,e=r.B;t=e.sourceEvent;)e=t;return e}},45161:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(72732),i=n(54762);function o(t,e,n){arguments.length<3&&(n=e,e=(0,r.Z)().changedTouches);for(var o,a=0,s=e?e.length:0;a=0&&e._call.call(null,t),e=e._next;--o}function y(){c=(u=h.now())+l,o=a=0;try{v()}finally{o=0,function(){for(var t,e,n=r,o=1/0;n;)n._call?(o>n._time&&(o=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,w(o)}(),c=0}}function _(){var t=h.now(),e=t-u;e>1e3&&(l-=e,u=t)}function w(t){o||(a&&(a=clearTimeout(a)),t-c>24?(t<1/0&&(a=setTimeout(y,t-h.now()-l)),s&&(s=clearInterval(s))):(s||(u=h.now(),s=setInterval(_,1e3)),o=1,f(y)))}g.prototype=m.prototype={constructor:g,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?d():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,w()},stop:function(){this._call&&(this._call=null,this._time=1/0,w())}}},82159:function(t,e,n){"use strict";n.r(e),n.d(e,{active:function(){return it},interrupt:function(){return d},transition:function(){return X}});var r=n(42710),i=n(64641),o=n(65244),a=n(74199),s=(0,i.Z)("start","end","cancel","interrupt"),u=[];function c(t,e,n,r,i,c){var l=t.__transition;if(l){if(n in l)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function s(o){var l,h,f,d;if(1!==n.state)return c();for(l in i)if((d=i[l]).name===n.name){if(3===d.state)return(0,a.Z)(s);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete i[l]):+l0)throw new Error("too late; already scheduled");return n}function h(t,e){var n=f(t,e);if(n.state>3)throw new Error("too late; already running");return n}function f(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function d(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}}var p=n(44090),g=n(26669);function m(t,e){var n,r;return function(){var i=h(this,t),o=i.tween;if(o!==n)for(var a=0,s=(r=n=o).length;a=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?l:h;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var j=n(69309),Y=n(85502),B=r.ZP.prototype.constructor,z=n(97717);function G(t){return function(){this.style.removeProperty(t)}}function J(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function V(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&J(t,o,n)),r}return o._value=e,o}function H(t){return function(e){this.textContent=t.call(this,e)}}function Q(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&H(r)),e}return r._value=t,r}var W=0;function $(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function X(t){return(0,r.ZP)().transition(t)}function K(){return++W}var tt=r.ZP.prototype;$.prototype=X.prototype={constructor:$,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=(0,j.Z)(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a1&&n.name===e)return new $([[t]],rt,e,+r);return null}},59320:function(t,e,n){"use strict";n.r(e),n.d(e,{zoom:function(){return T},zoomIdentity:function(){return p},zoomTransform:function(){return g}});var r=n(64641),i=n(8634),o=n(13764),a=n(92711),s=n(38337),u=n(41036),c=n(45161),l=n(82159);function h(t){return function(){return t}}function f(t,e,n){this.target=t,this.type=e,this.transform=n}function d(t,e,n){this.k=t,this.x=e,this.y=n}d.prototype={constructor:d,scale:function(t){return 1===t?this:new d(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new d(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var p=new d(1,0,0);function g(t){return t.__zoom||p}function m(){a.B.stopImmediatePropagation()}function v(){a.B.preventDefault(),a.B.stopImmediatePropagation()}function y(){return!a.B.button}function _(){var t,e,n=this;return n instanceof SVGElement?(t=(n=n.ownerSVGElement||n).width.baseVal.value,e=n.height.baseVal.value):(t=n.clientWidth,e=n.clientHeight),[[0,0],[t,e]]}function w(){return this.__zoom||p}function b(){return-a.B.deltaY*(a.B.deltaMode?120:1)/500}function x(){return"ontouchstart"in this}function E(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function T(){var t,e,n=y,g=_,T=E,A=b,S=x,I=[0,1/0],D=[[-1/0,-1/0],[1/0,1/0]],N=250,k=o.Z,C=[],Z=(0,r.Z)("start","zoom","end"),M=0;function O(t){t.property("__zoom",w).on("wheel.zoom",j).on("mousedown.zoom",Y).on("dblclick.zoom",B).filter(S).on("touchstart.zoom",z).on("touchmove.zoom",G).on("touchend.zoom touchcancel.zoom",J).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function L(t,e){return(e=Math.max(I[0],Math.min(I[1],e)))===t.k?t:new d(e,t.x,t.y)}function R(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new d(t.k,r,i)}function U(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function P(t,e,n){t.on("start.zoom",function(){q(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){q(this,arguments).end()}).tween("zoom",function(){var t=this,r=arguments,i=q(t,r),o=g.apply(t,r),a=n||U(o),s=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),u=t.__zoom,c="function"==typeof e?e.apply(t,r):e,l=k(u.invert(a).concat(s/u.k),c.invert(a).concat(s/c.k));return function(t){if(1===t)t=c;else{var e=l(t),n=s/e[2];t=new d(n,a[0]-e[0]*n,a[1]-e[1]*n)}i.zoom(null,t)}})}function q(t,e){for(var n,r=0,i=C.length;rM}t.zoom("mouse",T(R(t.that.__zoom,t.mouse[0]=(0,s.Z)(t.that),t.mouse[1]),t.extent,D))}function d(){r.on("mousemove.zoom mouseup.zoom",null),(0,i.D)(a.B.view,t.moved),v(),t.end()}}function B(){if(n.apply(this,arguments)){var t=this.__zoom,e=(0,s.Z)(this),r=t.invert(e),i=t.k*(a.B.shiftKey?.5:2),o=T(R(L(t,i),e,r),g.apply(this,arguments),D);v(),N>0?(0,u.Z)(this).transition().duration(N).call(P,o,e):(0,u.Z)(this).call(O.transform,o)}}function z(){if(n.apply(this,arguments)){var e,r,i,o,s=q(this,arguments),h=a.B.changedTouches,f=h.length;for(m(),r=0;r0;--u)if(r=e[u].dequeue()){i=i.concat(s(t,e,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(c,function(e){return t.outEdges(e.v,e.w)}),!0)};var a=r.constant(1);function s(t,e,n,i,o){var a=o?[]:void 0;return r.forEach(t.inEdges(i.v),function(r){var i=t.edge(r),s=t.node(r.v);o&&a.push({v:r.v,w:r.w}),s.out-=i,u(e,n,s)}),r.forEach(t.outEdges(i.v),function(r){var i=t.edge(r),o=t.node(r.w);o.in-=i,u(e,n,o)}),t.removeNode(i.v),a}function u(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},73363:function(t,e,n){"use strict";var r=n(91096),i=n(19265),o=n(3266),a=n(29438),s=n(45247).normalizeRanks,u=n(22877),c=n(45247).removeEmptyRanks,l=n(8131),h=n(28549),f=n(64061),d=n(41727),p=n(14588),g=n(45247),m=n(49174).Graph;t.exports=function(t,e){var n=e&&e.debugTiming?g.time:g.notime;n("layout",function(){var e=n(" buildLayoutGraph",function(){return function(t){var e=new m({multigraph:!0,compound:!0}),n=S(t.graph());return e.setGraph(r.merge({},y,A(n,v),r.pick(n,_))),r.forEach(t.nodes(),function(n){var i=S(t.node(n));e.setNode(n,r.defaults(A(i,w),b)),e.setParent(n,t.parent(n))}),r.forEach(t.edges(),function(n){var i=S(t.edge(n));e.setEdge(n,r.merge({},E,A(i,x),r.pick(i,T)))}),e}(t)});n(" runLayout",function(){!function(t,e){e(" makeSpaceForEdgeLabels",function(){!function(t){var e=t.graph();e.ranksep/=2,r.forEach(t.edges(),function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}(t)}),e(" removeSelfEdges",function(){!function(t){r.forEach(t.edges(),function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e,label:t.edge(e)}),t.removeEdge(e)}})}(t)}),e(" acyclic",function(){i.run(t)}),e(" nestingGraph.run",function(){l.run(t)}),e(" rank",function(){a(g.asNonCompoundGraph(t))}),e(" injectEdgeLabelProxies",function(){!function(t){r.forEach(t.edges(),function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i=t.node(e.w);g.addDummyNode(t,"edge-proxy",{rank:(i.rank-r.rank)/2+r.rank,e},"_ep")}})}(t)}),e(" removeEmptyRanks",function(){c(t)}),e(" nestingGraph.cleanup",function(){l.cleanup(t)}),e(" normalizeRanks",function(){s(t)}),e(" assignRankMinMax",function(){!function(t){var e=0;r.forEach(t.nodes(),function(n){var i=t.node(n);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=r.max(e,i.maxRank))}),t.graph().maxRank=e}(t)}),e(" removeEdgeLabelProxies",function(){!function(t){r.forEach(t.nodes(),function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))})}(t)}),e(" normalize.run",function(){o.run(t)}),e(" parentDummyChains",function(){u(t)}),e(" addBorderSegments",function(){h(t)}),e(" order",function(){d(t)}),e(" insertSelfEdges",function(){!function(t){var e=g.buildLayerMatrix(t);r.forEach(e,function(e){var n=0;r.forEach(e,function(e,i){var o=t.node(e);o.order=i+n,r.forEach(o.selfEdges,function(e){g.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:i+ ++n,e:e.e,label:e.label},"_se")}),delete o.selfEdges})})}(t)}),e(" adjustCoordinateSystem",function(){f.adjust(t)}),e(" position",function(){p(t)}),e(" positionSelfEdges",function(){!function(t){r.forEach(t.nodes(),function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,o=r.y,a=n.x-i,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*a/3,y:o-s},{x:i+5*a/6,y:o-s},{x:i+a,y:o},{x:i+5*a/6,y:o+s},{x:i+2*a/3,y:o+s}],n.label.x=n.x,n.label.y=n.y}})}(t)}),e(" removeBorderNodes",function(){!function(t){r.forEach(t.nodes(),function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),o=t.node(n.borderBottom),a=t.node(r.last(n.borderLeft)),s=t.node(r.last(n.borderRight));n.width=Math.abs(s.x-a.x),n.height=Math.abs(o.y-i.y),n.x=a.x+n.width/2,n.y=i.y+n.height/2}}),r.forEach(t.nodes(),function(e){"border"===t.node(e).dummy&&t.removeNode(e)})}(t)}),e(" normalize.undo",function(){o.undo(t)}),e(" fixupEdgeLabelCoords",function(){!function(t){r.forEach(t.edges(),function(e){var n=t.edge(e);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}})}(t)}),e(" undoCoordinateSystem",function(){f.undo(t)}),e(" translateGraph",function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,o=0,a=t.graph(),s=a.marginx||0,u=a.marginy||0;function c(t){var r=t.x,a=t.y,s=t.width,u=t.height;e=Math.min(e,r-s/2),n=Math.max(n,r+s/2),i=Math.min(i,a-u/2),o=Math.max(o,a+u/2)}r.forEach(t.nodes(),function(e){c(t.node(e))}),r.forEach(t.edges(),function(e){var n=t.edge(e);r.has(n,"x")&&c(n)}),e-=s,i-=u,r.forEach(t.nodes(),function(n){var r=t.node(n);r.x-=e,r.y-=i}),r.forEach(t.edges(),function(n){var o=t.edge(n);r.forEach(o.points,function(t){t.x-=e,t.y-=i}),r.has(o,"x")&&(o.x-=e),r.has(o,"y")&&(o.y-=i)}),a.width=n-e+s,a.height=o-i+u}(t)}),e(" assignNodeIntersects",function(){!function(t){r.forEach(t.edges(),function(e){var n,r,i=t.edge(e),o=t.node(e.v),a=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=a,r=o),i.points.unshift(g.intersectRect(o,n)),i.points.push(g.intersectRect(a,r))})}(t)}),e(" reversePoints",function(){!function(t){r.forEach(t.edges(),function(e){var n=t.edge(e);n.reversed&&n.points.reverse()})}(t)}),e(" acyclic.undo",function(){i.undo(t)})}(e,n)}),n(" updateInputGraph",function(){!function(t,e){r.forEach(t.nodes(),function(n){var r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,e.children(n).length&&(r.width=i.width,r.height=i.height))}),r.forEach(t.edges(),function(n){var i=t.edge(n),o=e.edge(n);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)}),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)})})};var v=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},_=["acyclicer","ranker","rankdir","align"],w=["width","height"],b={width:0,height:0},x=["minlen","weight","width","height","labeloffset"],E={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},T=["labelpos"];function A(t,e){return r.mapValues(r.pick(t,e),Number)}function S(t){var e={};return r.forEach(t,function(t,n){e[n.toLowerCase()]=t}),e}},91096:function(t,e,n){var r;try{r={cloneDeep:n(38961),constant:n(60583),defaults:n(25177),each:n(97635),filter:n(9673),find:n(13963),flatten:n(38863),forEach:n(26404),forIn:n(21308),has:n(71645),isUndefined:n(96075),last:n(83074),map:n(86169),mapValues:n(7301),max:n(11653),merge:n(81940),min:n(47983),minBy:n(42707),now:n(41396),pick:n(28891),range:n(79289),reduce:n(37442),sortBy:n(36272),uniqueId:n(83798),values:n(95041),zipObject:n(3393)}}catch(i){}r||(r=window._),t.exports=r},8131:function(t,e,n){var r=n(91096),i=n(45247);function o(t,e,n,a,s,u,c){var l=t.children(c);if(l.length){var h=i.addBorderNode(t,"_bt"),f=i.addBorderNode(t,"_bb"),d=t.node(c);t.setParent(h,c),d.borderTop=h,t.setParent(f,c),d.borderBottom=f,r.forEach(l,function(r){o(t,e,n,a,s,u,r);var i=t.node(r),l=i.borderTop?i.borderTop:r,d=i.borderBottom?i.borderBottom:r,p=i.borderTop?a:2*a,g=l!==d?1:s-u[c]+1;t.setEdge(h,l,{weight:p,minlen:g,nestingEdge:!0}),t.setEdge(d,f,{weight:p,minlen:g,nestingEdge:!0})}),t.parent(c)||t.setEdge(e,h,{weight:0,minlen:s+u[c]})}else c!==e&&t.setEdge(e,c,{weight:0,minlen:n})}t.exports={run:function(t){var e=i.addDummyNode(t,"root",{},"_root"),n=function(t){var e={};function n(i,o){var a=t.children(i);a&&a.length&&r.forEach(a,function(t){n(t,o+1)}),e[i]=o}return r.forEach(t.children(),function(t){n(t,1)}),e}(t),a=r.max(r.values(n))-1,s=2*a+1;t.graph().nestingRoot=e,r.forEach(t.edges(),function(e){t.edge(e).minlen*=s});var u=function(t){return r.reduce(t.edges(),function(e,n){return e+t.edge(n).weight},0)}(t)+1;r.forEach(t.children(),function(r){o(t,e,s,u,a,n,r)}),t.graph().nodeRankFactor=s},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.forEach(t.edges(),function(e){t.edge(e).nestingEdge&&t.removeEdge(e)})}}},3266:function(t,e,n){"use strict";var r=n(91096),i=n(45247);t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),function(e){!function(t,e){var n,r,o,a=e.v,s=t.node(a).rank,u=e.w,c=t.node(u).rank,l=e.name,h=t.edge(e),f=h.labelRank;if(c!==s+1){for(t.removeEdge(e),o=0,++s;s0;)e%2&&(n+=u[e+1]),u[e=e-1>>1]+=t.weight;c+=t.weight*n})),c}t.exports=function(t,e){for(var n=0,r=1;r=2),s=l.buildLayerMatrix(t);var m=o(t,s);m=t.barycenter)&&(o=0,a=0,(n=t).weight&&(o+=n.barycenter*n.weight,a+=n.weight),(i=e).weight&&(o+=i.barycenter*i.weight,a+=i.weight),n.vs=i.vs.concat(n.vs),n.barycenter=o/a,n.weight=a,n.i=Math.min(i.i,n.i),i.merged=!0)}}function i(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var o=t.pop();e.push(o),r.forEach(o.in.reverse(),n(o)),r.forEach(o.out,i(o))}return r.map(r.filter(e,function(t){return!t.merged}),function(t){return r.pick(t,["vs","i","barycenter","weight"])})}(r.filter(n,function(t){return!t.indegree}))}},5826:function(t,e,n){var r=n(91096),i=n(25412),o=n(82764),a=n(37850);t.exports=function t(e,n,s,u){var c=e.children(n),l=e.node(n),h=l?l.borderLeft:void 0,f=l?l.borderRight:void 0,d={};h&&(c=r.filter(c,function(t){return t!==h&&t!==f}));var p=i(e,c);r.forEach(p,function(n){if(e.children(n.v).length){var i=t(e,n.v,s,u);d[n.v]=i,r.has(i,"barycenter")&&(a=i,r.isUndefined((o=n).barycenter)?(o.barycenter=a.barycenter,o.weight=a.weight):(o.barycenter=(o.barycenter*o.weight+a.barycenter*a.weight)/(o.weight+a.weight),o.weight+=a.weight))}var o,a});var g=o(p,s);!function(t,e){r.forEach(t,function(t){t.vs=r.flatten(t.vs.map(function(t){return e[t]?e[t].vs:t}),!0)})}(g,d);var m=a(g,u);if(h&&(m.vs=r.flatten([h,m.vs,f],!0),e.predecessors(h).length)){var v=e.node(e.predecessors(h)[0]),y=e.node(e.predecessors(f)[0]);r.has(m,"barycenter")||(m.barycenter=0,m.weight=0),m.barycenter=(m.barycenter*m.weight+v.order+y.order)/(m.weight+2),m.weight+=2}return m}},37850:function(t,e,n){var r=n(91096),i=n(45247);function o(t,e,n){for(var i;e.length&&(i=r.last(e)).i<=n;)e.pop(),t.push(i.vs),n++;return n}t.exports=function(t,e){var n,a=i.partition(t,function(t){return r.has(t,"barycenter")}),s=a.lhs,u=r.sortBy(a.rhs,function(t){return-t.i}),c=[],l=0,h=0,f=0;s.sort((n=!!e,function(t,e){return t.barycentere.barycenter?1:n?e.i-t.i:t.i-e.i})),f=o(c,u,f),r.forEach(s,function(t){f+=t.vs.length,c.push(t.vs),l+=t.barycenter*t.weight,h+=t.weight,f=o(c,u,f)});var d={vs:r.flatten(c,!0)};return h&&(d.barycenter=l/h,d.weight=h),d}},22877:function(t,e,n){var r=n(91096);t.exports=function(t){var e=function(t){var e={},n=0;return r.forEach(t.children(),function i(o){var a=n;r.forEach(t.children(o),i),e[o]={low:a,lim:n++}}),e}(t);r.forEach(t.graph().dummyChains,function(n){for(var r=t.node(n),i=r.edgeObj,o=function(t,e,n,r){var i,o,a=[],s=[],u=Math.min(e[n].low,e[r].low),c=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),a.push(i)}while(i&&(e[i].low>u||c>e[i].lim));for(o=i,i=r;(i=t.parent(i))!==o;)s.push(i);return{path:a.concat(s.reverse()),lca:o}}(t,e,i.v,i.w),a=o.path,s=o.lca,u=0,c=a[u],l=!0;n!==i.w;){if(r=t.node(n),l){for(;(c=a[u])!==s&&t.node(c).maxRanks)&&u(n,e,c)})})}return r.reduce(e,function(e,n){var o,a=-1,s=0;return r.forEach(n,function(r,u){if("border"===t.node(r).dummy){var c=t.predecessors(r);c.length&&(o=t.node(c[0]).order,i(n,s,u,a,o),s=u,a=o)}i(n,s,n.length,o,e.length)}),n}),n}function u(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function c(t,e,n){if(e>n){var i=e;e=n,n=i}return r.has(t[e],n)}function l(t,e,n,i){var o={},a={},s={};return r.forEach(e,function(t){r.forEach(t,function(t,e){o[t]=t,a[t]=t,s[t]=e})}),r.forEach(e,function(t){var e=-1;r.forEach(t,function(t){var u=i(t);if(u.length)for(var l=((u=r.sortBy(u,function(t){return s[t]})).length-1)/2,h=Math.floor(l),f=Math.ceil(l);h<=f;++h){var d=u[h];a[t]===t&&eu.lim&&(c=u,l=!0);var h=r.filter(e.edges(),function(e){return l===y(0,t.node(e.v),c)&&l!==y(0,t.node(e.w),c)});return r.minBy(h,function(t){return o(e,t)})}function v(t,e,n,i){t.removeEdge(n.v,n.w),t.setEdge(i.v,i.w,{}),d(t),h(t,e),function(t,e){var n=r.find(t.nodes(),function(t){return!e.node(t).parent}),i=s(t,n);i=i.slice(1),r.forEach(i,function(n){var r=t.node(n).parent,i=e.edge(n,r),o=!1;i||(i=e.edge(r,n),o=!0),e.node(n).rank=e.node(r).rank+(o?i.minlen:-i.minlen)})}(t,e)}function y(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=l,l.initLowLimValues=d,l.initCutValues=h,l.calcCutValue=f,l.leaveEdge=g,l.enterEdge=m,l.exchangeEdges=v},21790:function(t,e,n){"use strict";var r=n(91096);t.exports={longestPath:function(t){var e={};r.forEach(t.sources(),function n(i){var o=t.node(i);if(r.has(e,i))return o.rank;e[i]=!0;var a=r.min(r.map(t.outEdges(i),function(e){return n(e.w)-t.edge(e).minlen}));return a!==Number.POSITIVE_INFINITY&&null!=a||(a=0),o.rank=a})},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},45247:function(t,e,n){"use strict";var r=n(91096),i=n(49174).Graph;function o(t,e,n,i){var o;do{o=r.uniqueId(i)}while(t.hasNode(o));return n.dummy=e,t.setNode(o,n),o}function a(t){return r.max(r.map(t.nodes(),function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n}))}t.exports={addDummyNode:o,simplify:function(t){var e=(new i).setGraph(t.graph());return r.forEach(t.nodes(),function(n){e.setNode(n,t.node(n))}),r.forEach(t.edges(),function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),e},asNonCompoundGraph:function(t){var e=new i({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),function(n){t.children(n).length||e.setNode(n,t.node(n))}),r.forEach(t.edges(),function(n){e.setEdge(n,t.edge(n))}),e},successorWeights:function(t){var e=r.map(t.nodes(),function(e){var n={};return r.forEach(t.outEdges(e),function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight}),n});return r.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=r.map(t.nodes(),function(e){var n={};return r.forEach(t.inEdges(e),function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight}),n});return r.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,i=t.x,o=t.y,a=e.x-i,s=e.y-o,u=t.width/2,c=t.height/2;if(!a&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*u>Math.abs(a)*c?(s<0&&(c=-c),n=c*a/s,r=c):(a<0&&(u=-u),n=u,r=u*s/a),{x:i+n,y:o+r}},buildLayerMatrix:function(t){var e=r.map(r.range(a(t)+1),function(){return[]});return r.forEach(t.nodes(),function(n){var i=t.node(n),o=i.rank;r.isUndefined(o)||(e[o][i.order]=n)}),e},normalizeRanks:function(t){var e=r.min(r.map(t.nodes(),function(e){return t.node(e).rank}));r.forEach(t.nodes(),function(n){var i=t.node(n);r.has(i,"rank")&&(i.rank-=e)})},removeEmptyRanks:function(t){var e=r.min(r.map(t.nodes(),function(e){return t.node(e).rank})),n=[];r.forEach(t.nodes(),function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)});var i=0,o=t.graph().nodeRankFactor;r.forEach(n,function(e,n){r.isUndefined(e)&&n%o!=0?--i:i&&r.forEach(e,function(e){t.node(e).rank+=i})})},addBorderNode:function(t,e,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),o(t,"border",i,e)},maxRank:a,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,function(t){e(t)?n.lhs.push(t):n.rhs.push(t)}),n},time:function(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}},notime:function(t,e){return e()}}},32862:function(t){t.exports="0.8.5"},54204:function(t,e,n){var r=n(97078);t.exports={Graph:r.Graph,json:n(2063),alg:n(29790),version:r.version}},66451:function(t,e,n){var r=n(77241);t.exports=function(t){var e,n={},i=[];function o(i){r.has(n,i)||(n[i]=!0,e.push(i),r.each(t.successors(i),o),r.each(t.predecessors(i),o))}return r.each(t.nodes(),function(t){e=[],o(t),e.length&&i.push(e)}),i}},70485:function(t,e,n){var r=n(77241);function i(t,e,n,o,a,s){r.has(o,e)||(o[e]=!0,n||s.push(e),r.each(a(e),function(e){i(t,e,n,o,a,s)}),n&&s.push(e))}t.exports=function(t,e,n){r.isArray(e)||(e=[e]);var o=(t.isDirected()?t.successors:t.neighbors).bind(t),a=[],s={};return r.each(e,function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);i(t,e,"post"===n,s,o,a)}),a}},85818:function(t,e,n){var r=n(26731),i=n(77241);t.exports=function(t,e,n){return i.transform(t.nodes(),function(i,o){i[o]=r(t,o,e,n)},{})}},26731:function(t,e,n){var r=n(77241),i=n(9266);t.exports=function(t,e,n,r){return function(t,e,n,r){var o,a,s={},u=new i,c=function(t){var e=t.v!==o?t.v:t.w,r=s[e],i=n(t),c=a.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);c0&&(o=u.removeMin(),(a=s[o]).distance!==Number.POSITIVE_INFINITY);)r(o).forEach(c);return s}(t,String(e),n||o,r||function(e){return t.outEdges(e)})};var o=r.constant(1)},8821:function(t,e,n){var r=n(77241),i=n(45759);t.exports=function(t){return r.filter(i(t),function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])})}},24980:function(t,e,n){var r=n(77241);t.exports=function(t,e,n){return function(t,e,n){var r={},i=t.nodes();return i.forEach(function(t){r[t]={},r[t][t]={distance:0},i.forEach(function(e){t!==e&&(r[t][e]={distance:Number.POSITIVE_INFINITY})}),n(t).forEach(function(n){var i=n.v===t?n.w:n.v,o=e(n);r[t][i]={distance:o,predecessor:t}})}),i.forEach(function(t){var e=r[t];i.forEach(function(n){var o=r[n];i.forEach(function(n){var r=e[n],i=o[n],a=o[t].distance+r.distance;a0;){if(n=u.removeMin(),r.has(s,n))a.setEdge(n,s[n]);else{if(l)throw new Error("Input graph is not connected: "+t);l=!0}t.nodeEdges(n).forEach(c)}return a}},45759:function(t,e,n){var r=n(77241);t.exports=function(t){var e=0,n=[],i={},o=[];function a(s){var u=i[s]={onStack:!0,lowlink:e,index:e++};if(n.push(s),t.successors(s).forEach(function(t){r.has(i,t)?i[t].onStack&&(u.lowlink=Math.min(u.lowlink,i[t].index)):(a(t),u.lowlink=Math.min(u.lowlink,i[t].lowlink))}),u.lowlink===u.index){var c,l=[];do{c=n.pop(),i[c].onStack=!1,l.push(c)}while(s!==c);o.push(l)}}return t.nodes().forEach(function(t){r.has(i,t)||a(t)}),o}},94394:function(t,e,n){var r=n(77241);function i(t){var e={},n={},i=[];if(r.each(t.sinks(),function a(s){if(r.has(n,s))throw new o;r.has(e,s)||(n[s]=!0,e[s]=!0,r.each(t.predecessors(s),a),delete n[s],i.push(s))}),r.size(e)!==t.nodeCount())throw new o;return i}function o(){}t.exports=i,i.CycleException=o,o.prototype=new Error},9266:function(t,e,n){var r=n(77241);function i(){this._arr=[],this._keyIndices={}}t.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map(function(t){return t.key})},i.prototype.has=function(t){return r.has(this._keyIndices,t)},i.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var i=this._arr,o=i.length;return n[t]=o,i.push({key:t,priority:e}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},i.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},i.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n>1].prioritya){var s=o;o=a,a=s}return o+"\x01"+a+"\x01"+(r.isUndefined(i)?"\0":i)}function u(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var a=i;i=o,o=a}var s={v:i,w:o};return r&&(s.name=r),s}function c(t,e){return s(t,e.v,e.w,e.name)}t.exports=i,i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(t){return this._label=t,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return r.keys(this._nodes)},i.prototype.sources=function(){var t=this;return r.filter(this.nodes(),function(e){return r.isEmpty(t._in[e])})},i.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),function(e){return r.isEmpty(t._out[e])})},i.prototype.setNodes=function(t,e){var n=arguments,i=this;return r.each(t,function(t){n.length>1?i.setNode(t,e):i.setNode(t)}),this},i.prototype.setNode=function(t,e){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]="\0",this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},i.prototype.node=function(t){return this._nodes[t]},i.prototype.hasNode=function(t){return r.has(this._nodes,t)},i.prototype.removeNode=function(t){var e=this;if(r.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),function(t){e.setParent(t)}),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},i.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e="\0";else{for(var n=e+="";!r.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},i.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},i.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if("\0"!==e)return e}},i.prototype.children=function(t){if(r.isUndefined(t)&&(t="\0"),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else{if("\0"===t)return this.nodes();if(this.hasNode(t))return[]}},i.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},i.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},i.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},i.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},i.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;r.each(this._nodes,function(n,r){t(r)&&e.setNode(r,n)}),r.each(this._edgeObjs,function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))});var i={};function o(t){var r=n.parent(t);return void 0===r||e.hasNode(r)?(i[t]=r,r):r in i?i[r]:o(r)}return this._isCompound&&r.each(e.nodes(),function(t){e.setParent(t,o(t))}),e},i.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return r.values(this._edgeObjs)},i.prototype.setPath=function(t,e){var n=this,i=arguments;return r.reduce(t,function(t,r){return i.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r}),this},i.prototype.setEdge=function(){var t,e,n,i,a=!1,c=arguments[0];"object"==typeof c&&null!==c&&"v"in c?(t=c.v,e=c.w,n=c.name,2===arguments.length&&(i=arguments[1],a=!0)):(t=c,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var l=s(this._isDirected,t,e,n);if(r.has(this._edgeLabels,l))return a&&(this._edgeLabels[l]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[l]=a?i:this._defaultEdgeLabelFn(t,e,n);var h=u(this._isDirected,t,e,n);return t=h.v,e=h.w,Object.freeze(h),this._edgeObjs[l]=h,o(this._preds[e],t),o(this._sucs[t],e),this._in[e][l]=h,this._out[t][l]=h,this._edgeCount++,this},i.prototype.edge=function(t,e,n){var r=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,t,e,n);return this._edgeLabels[r]},i.prototype.hasEdge=function(t,e,n){var i=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,t,e,n);return r.has(this._edgeLabels,i)},i.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,t,e,n),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],a(this._preds[e],t),a(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},i.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var i=r.values(n);return e?r.filter(i,function(t){return t.v===e}):i}},i.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var i=r.values(n);return e?r.filter(i,function(t){return t.w===e}):i}},i.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},97078:function(t,e,n){t.exports={Graph:n(10179),version:n(57160)}},2063:function(t,e,n){var r=n(77241),i=n(10179);function o(t){return r.map(t.nodes(),function(e){var n=t.node(e),i=t.parent(e),o={v:e};return r.isUndefined(n)||(o.value=n),r.isUndefined(i)||(o.parent=i),o})}function a(t){return r.map(t.edges(),function(e){var n=t.edge(e),i={v:e.v,w:e.w};return r.isUndefined(e.name)||(i.name=e.name),r.isUndefined(n)||(i.value=n),i})}t.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:o(t),edges:a(t)};return r.isUndefined(t.graph())||(e.value=r.clone(t.graph())),e},read:function(t){var e=new i(t.options).setGraph(t.value);return r.each(t.nodes,function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)}),r.each(t.edges,function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),e}}},77241:function(t,e,n){var r;try{r={clone:n(7063),constant:n(60583),each:n(97635),filter:n(9673),has:n(71645),isArray:n(47712),isEmpty:n(19129),isFunction:n(70458),isUndefined:n(96075),keys:n(48600),map:n(86169),reduce:n(37442),size:n(26809),transform:n(86987),union:n(50875),values:n(95041)}}catch(i){}r||(r=window._),t.exports=r},57160:function(t){t.exports="2.1.8"},22550:function(t,e,n){var r=n(31311)(n(58568),"DataView");t.exports=r},27868:function(t,e,n){var r=n(18944),i=n(18790),o=n(40218),a=n(80072),s=n(3575);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1}},5724:function(t){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r0&&o(l)?n>1?t(l,n-1,o,a,s):r(s,l):a||(s[s.length]=l)}return s}},48486:function(t,e,n){var r=n(43999)();t.exports=r},79941:function(t,e,n){var r=n(48486),i=n(48600);t.exports=function(t,e){return t&&r(t,e,i)}},91338:function(t,e,n){var r=n(21813),i=n(71241);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&ne}},50018:function(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t,n){return null!=t&&e.call(t,n)}},29828:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},37551:function(t,e,n){var r=n(72322),i=n(32564),o=n(39920);t.exports=function(t,e,n){return e==e?o(t,e,n):r(t,i,n)}},80561:function(t,e,n){var r=n(3219),i=n(3902);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},31999:function(t,e,n){var r=n(47690),i=n(3902);t.exports=function t(e,n,o,a,s){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,a,t,s))}},47690:function(t,e,n){var r=n(30964),i=n(49642),o=n(97868),a=n(85234),s=n(32234),u=n(47712),c=n(80354),l=n(51156),h="[object Object]",f=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,d,p,g){var m=u(t),v=u(e),y=m?"[object Array]":s(t),_=v?"[object Array]":s(e),w=(y="[object Arguments]"==y?h:y)==h,b=(_="[object Arguments]"==_?h:_)==h,x=y==_;if(x&&c(t)){if(!c(e))return!1;m=!0,w=!1}if(x&&!w)return g||(g=new r),m||l(t)?i(t,e,n,d,p,g):o(t,e,y,n,d,p,g);if(!(1&n)){var E=w&&f.call(t,"__wrapped__"),T=b&&f.call(e,"__wrapped__");if(E||T){var A=E?t.value():t,S=T?e.value():e;return g||(g=new r),p(A,S,n,d,g)}}return!!x&&(g||(g=new r),a(t,e,n,d,p,g))}},75080:function(t,e,n){var r=n(32234),i=n(3902);t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},16050:function(t,e,n){var r=n(30964),i=n(31999);t.exports=function(t,e,n,o){var a=n.length,s=a,u=!o;if(null==t)return!s;for(t=Object(t);a--;){var c=n[a];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a=200){var g=e?null:s(t);if(g)return u(g);f=!1,l=a,p=new r}else p=e?[]:d;t:for(;++ce||a&&s&&c&&!u&&!l||i&&s&&c||!n&&c||!o)return 1;if(!i&&!a&&!l&&t=u?c:c*("desc"==n[i]?-1:1)}return t.index-e.index}},49327:function(t){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++r-1?s[u?e[c]:c]:void 0}}},15395:function(t,e,n){var r=n(49727),i=n(10139),o=n(56016);t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&i(e,n,a)&&(n=a=void 0),e=o(e),void 0===n?(n=e,e=0):n=o(n),a=void 0===a?el))return!1;var f=u.get(t),d=u.get(e);if(f&&d)return f==e&&d==t;var p=-1,g=!0,m=2&n?new r:void 0;for(u.set(t,e),u.set(e,t);++p-1&&t%1==0&&t-1}},2154:function(t,e,n){var r=n(67477);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},58289:function(t,e,n){var r=n(27868),i=n(58170),o=n(6647);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},19581:function(t,e,n){var r=n(65810);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},61608:function(t,e,n){var r=n(65810);t.exports=function(t){return r(this,t).get(t)}},8901:function(t,e,n){var r=n(65810);t.exports=function(t){return r(this,t).has(t)}},12399:function(t,e,n){var r=n(65810);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},95622:function(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}},96878:function(t){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},94667:function(t,e,n){var r=n(74884);t.exports=function(t){var e=r(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}},54263:function(t,e,n){var r=n(31311)(Object,"create");t.exports=r},75427:function(t,e,n){var r=n(11621)(Object.keys,Object);t.exports=r},3601:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},80166:function(t,e,n){t=n.nmd(t);var r=n(52127),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s},91059:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},11621:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},90877:function(t,e,n){var r=n(86932),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),u=Array(s);++a0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},31816:function(t,e,n){var r=n(58170);t.exports=function(){this.__data__=new r,this.size=0}},86246:function(t){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},95499:function(t){t.exports=function(t){return this.__data__.get(t)}},17114:function(t){t.exports=function(t){return this.__data__.has(t)}},68677:function(t,e,n){var r=n(58170),i=n(6647),o=n(98856);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},39920:function(t){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r2?e[2]:void 0;for(c&&o(e[0],e[1],c)&&(r=1);++n-1&&t%1==0&&t<=9007199254740991}},49333:function(t,e,n){var r=n(75080),i=n(97633),o=n(80166),a=o&&o.isMap,s=a?i(a):r;t.exports=s},17305:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3902:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},7629:function(t,e,n){var r=n(3219),i=n(45410),o=n(3902),a=Function.prototype.toString,s=Object.prototype.hasOwnProperty,u=a.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=s.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&a.call(n)==u}},8274:function(t,e,n){var r=n(15104),i=n(97633),o=n(80166),a=o&&o.isSet,s=a?i(a):r;t.exports=s},27764:function(t,e,n){var r=n(3219),i=n(47712),o=n(3902);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},30419:function(t,e,n){var r=n(3219),i=n(3902);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},51156:function(t,e,n){var r=n(94154),i=n(97633),o=n(80166),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},96075:function(t){t.exports=function(t){return void 0===t}},48600:function(t,e,n){var r=n(48421),i=n(97272),o=n(9140);t.exports=function(t){return o(t)?r(t):i(t)}},10752:function(t,e,n){var r=n(48421),i=n(40623),o=n(9140);t.exports=function(t){return o(t)?r(t,!0):i(t)}},83074:function(t){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},86169:function(t,e,n){var r=n(20529),i=n(82617),o=n(26091),a=n(47712);t.exports=function(t,e){return(a(t)?r:o)(t,i(e,3))}},7301:function(t,e,n){var r=n(61216),i=n(79941),o=n(82617);t.exports=function(t,e){var n={};return e=o(e,3),i(t,function(t,i,o){r(n,i,e(t,i,o))}),n}},11653:function(t,e,n){var r=n(91241),i=n(98109),o=n(19903);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},74884:function(t,e,n){var r=n(98856);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},81940:function(t,e,n){var r=n(75705),i=n(57082)(function(t,e,n){r(t,e,n)});t.exports=i},47983:function(t,e,n){var r=n(91241),i=n(69661),o=n(19903);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},42707:function(t,e,n){var r=n(91241),i=n(82617),o=n(69661);t.exports=function(t,e){return t&&t.length?r(t,i(e,2),o):void 0}},15533:function(t){t.exports=function(){}},41396:function(t,e,n){var r=n(58568);t.exports=function(){return r.Date.now()}},28891:function(t,e,n){var r=n(14964),i=n(9771)(function(t,e){return null==t?{}:r(t,e)});t.exports=i},57675:function(t,e,n){var r=n(80087),i=n(47044),o=n(46149),a=n(71241);t.exports=function(t){return o(t)?r(a(t)):i(t)}},79289:function(t,e,n){var r=n(15395)();t.exports=r},37442:function(t,e,n){var r=n(27971),i=n(43079),o=n(82617),a=n(95482),s=n(47712);t.exports=function(t,e,n){var u=s(t)?r:a,c=arguments.length<3;return u(t,o(e,4),n,c,i)}},26809:function(t,e,n){var r=n(97272),i=n(32234),o=n(9140),a=n(27764),s=n(3941);t.exports=function(t){if(null==t)return 0;if(o(t))return a(t)?s(t):t.length;var e=i(t);return"[object Map]"==e||"[object Set]"==e?t.size:r(t).length}},36272:function(t,e,n){var r=n(9555),i=n(22824),o=n(37165),a=n(10139),s=o(function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])});t.exports=s},20668:function(t){t.exports=function(){return[]}},1950:function(t){t.exports=function(){return!1}},56016:function(t,e,n){var r=n(68135);t.exports=function(t){return t?1/0===(t=r(t))||-1/0===t?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},82748:function(t,e,n){var r=n(56016);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},68135:function(t,e,n){var r=n(94530),i=n(17305),o=n(30419),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=s.test(t);return n||u.test(t)?c(t.slice(2),n?2:8):a.test(t)?NaN:+t}},65208:function(t,e,n){var r=n(79399),i=n(10752);t.exports=function(t){return r(t,i(t))}},89196:function(t,e,n){var r=n(17667);t.exports=function(t){return null==t?"":r(t)}},86987:function(t,e,n){var r=n(41492),i=n(56004),o=n(79941),a=n(82617),s=n(45410),u=n(47712),c=n(80354),l=n(70458),h=n(17305),f=n(51156);t.exports=function(t,e,n){var d=u(t),p=d||c(t)||f(t);if(e=a(e,4),null==n){var g=t&&t.constructor;n=p?d?new g:[]:h(t)&&l(g)?i(s(t)):{}}return(p?r:o)(t,function(t,r,i){return e(n,t,r,i)}),n}},50875:function(t,e,n){var r=n(9555),i=n(37165),o=n(66833),a=n(56633),s=i(function(t){return o(r(t,1,a,!0))});t.exports=s},83798:function(t,e,n){var r=n(89196),i=0;t.exports=function(t){var e=++i;return r(t)+e}},95041:function(t,e,n){var r=n(10744),i=n(48600);t.exports=function(t){return null==t?[]:r(t,i(t))}},3393:function(t,e,n){var r=n(25823),i=n(60170);t.exports=function(t,e){return i(t||[],e||[],r)}},41282:function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),r(n(69812)),r(n(65098)),r(n(59895)),r(n(13408)),r(n(66082)),r(n(33839)),r(n(51390)),r(n(83807)),r(n(24232)),r(n(22267)),r(n(741)),r(n(21539)),r(n(97002)),r(n(99147)),r(n(70980)),r(n(96684))},69812:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(51390),a=function(t){function e(e){var n=t.call(this)||this,r=e;return r.trigger&&(n.trigger=r.trigger),r.kick&&(n.kick=r.kick),r.drag&&(n.drag=r.drag),r.on&&(n.on=r.on),n.dragstart=n.dragStart=o.Layout.dragStart,n.dragend=n.dragEnd=o.Layout.dragEnd,n}return i(e,t),e.prototype.trigger=function(t){},e.prototype.kick=function(){},e.prototype.drag=function(){},e.prototype.on=function(t,e){return this},e}(o.Layout);e.LayoutAdaptor=a,e.adaptor=function(t){return new a(t)}},96684:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(51390),i=n(66082);e.gridify=function(t,e,n,r){return t.cola.start(0,0,0,10,!1),function(t,e,n,r){t.forEach(function(t){t.routerNode={name:t.name,bounds:t.bounds.inflate(-n)}}),e.forEach(function(e){e.routerNode={bounds:e.bounds.inflate(-r),children:(void 0!==e.groups?e.groups.map(function(e){return t.length+e.id}):[]).concat(void 0!==e.leaves?e.leaves.map(function(t){return t.index}):[])}});var o=t.concat(e).map(function(t,e){return t.routerNode.id=e,t.routerNode});return new i.GridRouter(o,{getChildren:function(t){return t.children},getBounds:function(t){return t.bounds}},n-r)}(t.cola.nodes(),t.cola.groups(),n,r).routeEdges(t.powerGraph.powerEdges,e,function(t){return t.source.routerNode.id},function(t){return t.target.routerNode.id})},e.powerGraphGridLayout=function(t,e,n){var i;t.nodes.forEach(function(t,e){return t.index=e}),(new r.Layout).avoidOverlaps(!1).nodes(t.nodes).links(t.links).powerGraphGroups(function(t){(i=t).groups.forEach(function(t){return t.padding=n})});var o=t.nodes.length,a=[],s=t.nodes.slice(0);return s.forEach(function(t,e){return t.index=e}),i.groups.forEach(function(t){var e=t.index=t.id+o;s.push(t),void 0!==t.leaves&&t.leaves.forEach(function(t){return a.push({source:e,target:t.index})}),void 0!==t.groups&&t.groups.forEach(function(t){return a.push({source:e,target:t.id+o})})}),i.powerEdges.forEach(function(t){a.push({source:t.source.index,target:t.target.index})}),(new r.Layout).size(e).nodes(s).links(a).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:(new r.Layout).convergenceThreshold(.001).size(e).avoidOverlaps(!0).nodes(t.nodes).links(t.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(t){(i=t).groups.forEach(function(t){t.padding=n})}).start(50,0,100,0,!1),powerGraph:i}}},65098:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(29738),i=n(62834);e.d3adaptor=function(t){return!t||function(t){return t.version&&null!==t.version.match(/^3\./)}(t)?new r.D3StyleLayoutAdaptor:new i.D3StyleLayoutAdaptor(t)}},29738:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(51390),a=function(t){function e(){var e=t.call(this)||this;e.event=d3.dispatch(o.EventType[o.EventType.start],o.EventType[o.EventType.tick],o.EventType[o.EventType.end]);var n=e;return e.drag=function(){if(!t)var t=d3.behavior.drag().origin(o.Layout.dragOrigin).on("dragstart.d3adaptor",o.Layout.dragStart).on("drag.d3adaptor",function(t){o.Layout.drag(t,d3.event),n.resume()}).on("dragend.d3adaptor",o.Layout.dragEnd);if(!arguments.length)return t;this.call(t)},e}return i(e,t),e.prototype.trigger=function(t){var e={type:o.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event[e.type](e)},e.prototype.kick=function(){var e=this;d3.timer(function(){return t.prototype.tick.call(e)})},e.prototype.on=function(t,e){return this.event.on("string"==typeof t?t:o.EventType[t],e),this},e}(o.Layout);e.D3StyleLayoutAdaptor=a,e.d3adaptor=function(){return new a}},62834:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(51390);e.D3StyleLayoutAdaptor=function(t){function e(e){var n=t.call(this)||this;n.d3Context=e,n.event=e.dispatch(o.EventType[o.EventType.start],o.EventType[o.EventType.tick],o.EventType[o.EventType.end]);var r=n;return n.drag=function(){if(!t)var t=e.drag().subject(o.Layout.dragOrigin).on("start.d3adaptor",o.Layout.dragStart).on("drag.d3adaptor",function(t){o.Layout.drag(t,e.event),r.resume()}).on("end.d3adaptor",o.Layout.dragEnd);if(!arguments.length)return t;arguments[0].call(t)},n}return i(e,t),e.prototype.trigger=function(t){var e={type:o.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event.call(e.type,e)},e.prototype.kick=function(){var e=this,n=this.d3Context.timer(function(){return t.prototype.tick.call(e)&&n.stop()})},e.prototype.on=function(t,e){return this.event.on("string"==typeof t?t:o.EventType[t],e),this},e}(o.Layout)},59895:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){this.locks={}}return t.prototype.add=function(t,e){this.locks[t]=e},t.prototype.clear=function(){this.locks={}},t.prototype.isEmpty=function(){for(var t in this.locks)return!1;return!0},t.prototype.apply=function(t){for(var e in this.locks)t(Number(e),this.locks[e])},t}();e.Locks=n,e.Descent=function(){function t(t,e,i){void 0===i&&(i=null),this.D=e,this.G=i,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new r,this.project=null,this.x=t,this.k=t.length;var o=this.n=t[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 n,this.minD=Number.MAX_VALUE;for(var a,s=o;s--;)for(a=o;--a>s;){var u=e[s][a];u>0&&u1e-9)break;var d=this.offsetDir();for(r=0;r1&&p>g||!isFinite(g))for(r=0;r1&&(m=1);var v=g*g,y=2*m*(p-g)/(v*p),_=p*p*p,w=2*-m/(v*_);for(isFinite(y)||console.log(y),r=0;r0?A-(D+1)*x:A-(D-1)*x)&&f<=b&&(this.scaleSnapByMaxH?(this.g[r][u]+=s*E*f,this.H[r][u][u]+=s*E):(this.g[r][u]+=E*f,this.H[r][u][u]+=E))}this.locks.isEmpty()||this.locks.apply(function(n,i){for(r=0;r0;)for(var i=e;i-- >0;)n(r,i)},t.prototype.matrixApply=function(e){t.mApply(this.k,this.n,e)},t.prototype.computeNextPosition=function(t,e){var n=this;this.computeDerivatives(t);var r=this.computeStepSize(this.g);if(this.stepAndProject(t,e,this.g,r),this.project){this.matrixApply(function(r,i){return n.e[r][i]=t[r][i]-e[r][i]});var i=this.computeStepSize(this.e);i=Math.max(.2,Math.min(i,1)),this.stepAndProject(t,e,this.e,i)}},t.prototype.run=function(t){for(var e=Number.MAX_VALUE,n=!1;!n&&t-- >0;){var r=this.rungeKutta();n=Math.abs(e/r-1)>16)/this.range},t.prototype.getNextBetween=function(t,e){return t+this.getNext()*(e-t)},t}();e.PseudoRandom=r},13408:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(97002),a=function(){return function(){}}();e.Point=a;var s=function(){return function(t,e,n,r){this.x1=t,this.y1=e,this.x2=n,this.y2=r}}();function u(t,e,n){return(e.x-t.x)*(n.y-t.y)-(n.x-t.x)*(e.y-t.y)}function c(t,e,n){return u(t,e,n)>0}function l(t,e,n){return u(t,e,n)<0}function h(t,e){var n,r,i,o,a=e.length-1;if(l(t,e[1],e[0])&&!c(t,e[a-1],e[0]))return 0;for(n=0,r=a;;){if(r-n==1)return c(t,e[n],e[r])?n:r;if((o=l(t,e[(i=Math.floor((n+r)/2))+1],e[i]))&&!c(t,e[i-1],e[i]))return i;c(t,e[n+1],e[n])?o||c(t,e[n],e[i])?r=i:n=i:o&&l(t,e[n],e[i])?r=i:n=i}}function f(t,e){var n,r,i,o,a=e.length-1;if(c(t,e[a-1],e[0])&&!l(t,e[1],e[0]))return 0;for(n=0,r=a;;){if(r-n==1)return l(t,e[n],e[r])?n:r;if(o=l(t,e[(i=Math.floor((n+r)/2))+1],e[i]),c(t,e[i-1],e[i])&&!o)return i;l(t,e[n+1],e[n])?o?l(t,e[n],e[i])?r=i:n=i:r=i:o?n=i:c(t,e[n],e[i])?r=i:n=i}}function d(t,e,n,r,i,o){var a,s;s=r(t[a=n(e[0],t)],e);for(var u=!1;!u;){for(u=!0;a===t.length-1&&(a=0),!i(e[s],t[a],t[a+1]);)++a;for(;0===s&&(s=e.length-1),!o(t[a],e[s],e[s-1]);)--s,u=!1}return{t1:a,t2:s}}function p(t,e){return d(t,e,h,f,c,l)}e.LineSegment=s,e.PolyPoint=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(a),e.isLeft=u,e.ConvexHull=function(t){var e,n=t.slice(0).sort(function(t,e){return t.x!==e.x?e.x-t.x:e.y-t.y}),r=t.length,i=n[0].x;for(e=1;e=0&&n[e].x===l;e--);for(s=e+1,e=o;++e<=s;)if(!(u(n[0],n[s],n[e])>=0&&e1&&!(u(a[a.length-2],a[a.length-1],n[e])>0);)a.length-=1;0!=e&&a.push(n[e])}c!=s&&a.push(n[c]);var h=a.length;for(e=s;--e>=o;)if(!(u(n[c],n[o],n[e])>=0&&e>o)){for(;a.length>h&&!(u(a[a.length-2],a[a.length-1],n[e])>0);)a.length-=1;0!=e&&a.push(n[e])}}return a},e.clockwiseRadialSweep=function(t,e,n){e.slice(0).sort(function(e,n){return Math.atan2(e.y-t.y,e.x-t.x)-Math.atan2(n.y-t.y,n.x-t.x)}).forEach(n)},e.tangent_PolyPolyC=d,e.LRtangent_PolyPolyC=function(t,e){var n=p(e,t);return{t1:n.t2,t2:n.t1}},e.RLtangent_PolyPolyC=p,e.LLtangent_PolyPolyC=function(t,e){return d(t,e,f,f,l,l)},e.RRtangent_PolyPolyC=function(t,e){return d(t,e,h,h,c,c)};var g=function(){return function(t,e){this.t1=t,this.t2=e}}();e.BiTangent=g;var m=function(){return function(){}}();e.BiTangents=m,e.TVGPoint=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(a);var v=function(){return function(t,e,n,r){this.id=t,this.polyid=e,this.polyvertid=n,this.p=r,r.vv=this}}();e.VisibilityVertex=v;var y=function(){function t(t,e){this.source=t,this.target=e}return t.prototype.length=function(){var t=this.source.p.x-this.target.p.x,e=this.source.p.y-this.target.p.y;return Math.sqrt(t*t+e*e)},t}();function _(t,e){for(var n=[],r=1,i=e.length;r=0&&v>=0&&y<0&&_>=0&&w>=0&&b<0?i.ll=new g(o,a):p<=0&&v<=0&&y>0&&_<=0&&w<=0&&b>0?i.rr=new g(o,a):p<=0&&v>0&&y<=0&&_>=0&&w<0&&b>=0?i.rl=new g(o,a):p>=0&&v<0&&y>=0&&_<=0&&w>0&&b<=0&&(i.lr=new g(o,a))}return i}function b(t,e){return!t.every(function(t){return!function(t,e){for(var n=1,r=e.length;n0&&this.E.push(new y(i[o-1].vv,a))}i.length>1&&this.E.push(new y(i[0].vv,i[i.length-1].vv))}for(r=0;r0)return!0;return!1},t}(),e.tangents=w,e.polysOverlap=function(t,e){if(b(t,e))return!0;if(b(e,t))return!0;for(var n=1,r=t.length;n0)return!0}return!1}},66082:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(97002),i=n(70980),o=n(99147),a=function(){return function(t,e,n){this.id=t,this.rect=e,this.children=n,this.leaf=void 0===n||0===n.length}}();e.NodeWrapper=a;var s=function(){return function(t,e,n,r,i){void 0===r&&(r=null),void 0===i&&(i=null),this.id=t,this.x=e,this.y=n,this.node=r,this.line=i}}();e.Vert=s;var u=function(){function t(e,n){this.s=e,this.t=n;var r=t.findMatch(e,n),i=n.slice(0).reverse(),o=t.findMatch(e,i);r.length>=o.length?(this.length=r.length,this.si=r.si,this.ti=r.ti,this.reversed=!1):(this.length=o.length,this.si=o.si,this.ti=n.length-o.ti-o.length,this.reversed=!0)}return t.findMatch=function(t,e){for(var n=t.length,r=e.length,i={length:0,si:-1,ti:-1},o=new Array(n),a=0;ai.length&&(i.length=u,i.si=a-u+1,i.ti=s-u+1)}else o[a][s]=0}return i},t.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},t}();e.LongestCommonSubsequence=u,e.GridRouter=function(){function t(t,e,n){var i=this;void 0===n&&(n=12),this.originalnodes=t,this.groupPadding=n,this.leaves=null,this.nodes=t.map(function(t,n){return new a(n,e.getBounds(t),e.getChildren(t))}),this.leaves=this.nodes.filter(function(t){return t.leaf}),this.groups=this.nodes.filter(function(t){return!t.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(t){return t.children.forEach(function(e){return i.nodes[e].parent=t})}),this.root={children:[]},this.nodes.forEach(function(t){void 0===t.parent&&(t.parent=i.root,i.root.children.push(t.id)),t.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(t,e){return i.getDepth(t)-i.getDepth(e)}),this.backToFront.slice(0).reverse().filter(function(t){return!t.leaf}).forEach(function(t){var e=r.Rectangle.empty();t.children.forEach(function(t){return e=e.union(i.nodes[t].rect)}),t.rect=e.inflate(i.groupPadding)});var o=this.midPoints(this.cols.map(function(t){return t.pos})),u=this.midPoints(this.rows.map(function(t){return t.pos})),c=o[0],l=o[o.length-1],h=u[0],f=u[u.length-1],d=this.rows.map(function(t){return{x1:c,x2:l,y1:t.pos,y2:t.pos}}).concat(u.map(function(t){return{x1:c,x2:l,y1:t,y2:t}})),p=this.cols.map(function(t){return{x1:t.pos,x2:t.pos,y1:h,y2:f}}).concat(o.map(function(t){return{x1:t,x2:t,y1:h,y2:f}})),g=d.concat(p);g.forEach(function(t){return t.verts=[]}),this.verts=[],this.edges=[],d.forEach(function(t){return p.forEach(function(e){var n=new s(i.verts.length,e.x1,t.y1);t.verts.push(n),e.verts.push(n),i.verts.push(n);for(var r=i.backToFront.length;r-- >0;){var o=i.backToFront[r],a=o.rect,u=Math.abs(n.x-a.cx()),c=Math.abs(n.y-a.cy());if(u0;){var r=n.filter(function(e){return e.rect["overlap"+t.toUpperCase()](n[0].rect)}),i={nodes:r,pos:this.avg(r.map(function(e){return e.rect["c"+t]()}))};e.push(i),i.nodes.forEach(function(t){return n.splice(n.indexOf(t),1)})}return e.sort(function(t,e){return t.pos-e.pos}),e},t.prototype.getDepth=function(t){for(var e=0;t.parent!==this.root;)e++,t=t.parent;return e},t.prototype.midPoints=function(t){for(var e=t[1]-t[0],n=[t[0]-e/2],r=1;r.1)&&s.push(u={pos:l[0][e],segments:[]}),u.segments.push(l)}return s},t.nudgeSegs=function(t,e,n,r,o,a){var s=r.length;if(!(s<=1)){for(var u=r.map(function(e){return new i.Variable(e[0][t])}),c=[],l=0;l=0&&c.push(new i.Constraint(u[g],u[m],a))}new i.Solver(u,c).solve(),u.forEach(function(e,i){var o=r[i],a=e.position();o[0][t]=o[1][t]=a;var s=n[o.edgeid];o.i>0&&(s[o.i-1][1][t]=a),o.iMath.PI||i<-Math.PI)&&(i=r-n),i},t.isLeft=function(t,e,n){return(e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x)<=0},t.getOrder=function(t){for(var e={},n=0;n=c.length||h.ti+h.length>=l.length)?n.push({l:r,r:i}):(h.si+h.length>=c.length||h.ti+h.length>=l.length?(o=c[h.si+1],s=c[h.si-1],a=l[h.ti-1]):(o=c[h.si+h.length-2],a=c[h.si+h.length],s=l[h.ti+h.length]),t.isLeft(o,a,s)?n.push({l:i,r}):n.push({l:r,r:i})))}return t.getOrder(n)},t.makeSegments=function(t){function e(t){return{x:t.x,y:t.y}}for(var n=function(t,e,n){return Math.abs((e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x))<.001},r=[],i=e(t[0]),o=1;o1&&l>1?1e3:0}).reverse().map(function(t){return n.verts[t]});return u.push(this.nodes[i.id].ports[0]),u.filter(function(t,e){return!(e0&&t.node===i&&u[e-1].node===i)})},t.getRoutePath=function(e,n,r,i){var o,a,s,u,c,l={routepath:"M "+e[0][0].x+" "+e[0][0].y+" ",arrowpath:""};if(e.length>1)for(var h=0;h0?a-=f/Math.abs(f)*n:s-=d/Math.abs(d)*n,l.routepath+="L "+a+" "+s+" ";var p=e[h+1],g=p[0].x,m=p[0].y;f=p[1].x-g,d=p[1].y-m;var v,y,_=t.angleBetween2Lines(o,p)<0?1:0;Math.abs(f)>0?(v=g+f/Math.abs(f)*n,y=m):(v=g,y=m+d/Math.abs(d)*n);var w=Math.abs(v-a),b=Math.abs(y-s);l.routepath+="A "+w+" "+b+" 0 0 "+_+" "+v+" "+y+" "}else{var x=[a,s];Math.abs(f)>0?(u=[a-=f/Math.abs(f)*i,s+r],c=[a,s-r]):(u=[a+r,s-=d/Math.abs(d)*i],c=[a-r,s]),l.routepath+="L "+a+" "+s+" ",i>0&&(l.arrowpath="M "+x[0]+" "+x[1]+" L "+u[0]+" "+u[1]+" L "+c[0]+" "+c[1])}}else f=(a=(o=e[0])[1].x)-o[0].x,d=(s=o[1].y)-o[0].y,x=[a,s],Math.abs(f)>0?(u=[a-=f/Math.abs(f)*i,s+r],c=[a,s-r]):(u=[a+r,s-=d/Math.abs(d)*i],c=[a-r,s]),l.routepath+="L "+a+" "+s+" ",i>0&&(l.arrowpath="M "+x[0]+" "+x[1]+" L "+u[0]+" "+u[1]+" L "+c[0]+" "+c[1]);return l},t}()},33839:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(1+Math.sqrt(5))/2;e.applyPacking=function(t,e,r,i,o,a){void 0===o&&(o=1),void 0===a&&(a=!0);var s=e,u=r,c=(o=void 0!==o?o:1,i=void 0!==i?i:0,0),l=0,h=0,f=0,d=[];function p(t,e){d=[],c=0,l=0,f=0;for(var n=0;n=t.height&&d[r].x+d[r].width+t.width+10-e<=1e-4){n=d[r];break}d.push(t),void 0!==n?(t.x=n.x+n.width+10,t.y=n.bottom,t.space_left=t.height,t.bottom=t.y,n.space_left-=t.height+10,n.bottom+=t.height+10):(t.y=f,f+=t.height+10,t.x=0,t.bottom=t.y,t.space_left=t.height),t.y+t.height-l>-1e-4&&(l=t.y+t.height-0),t.x+t.width-c>-1e-4&&(c=t.x+t.width-0)}0!=t.length&&(function(t){t.forEach(function(t){var e,n,r,o,a;e=t,n=Number.MAX_VALUE,r=Number.MAX_VALUE,o=0,a=0,e.array.forEach(function(t){var e=void 0!==t.width?t.width:i,s=void 0!==t.height?t.height:i;e/=2,s/=2,o=Math.max(t.x+e,o),n=Math.min(t.x-e,n),a=Math.max(t.y+s,a),r=Math.min(t.y-s,r)}),e.width=o-n,e.height=a-r})}(t),function(t,e){var r=Number.POSITIVE_INFINITY,i=0;t.sort(function(t,e){return e.height-t.height});for(var o=g=h=t.reduce(function(t,e){return t.widthh||d>1e-4;){if(1!=l){var g=a-(a-o)/n;u=p(t,g)}if(0!=l){var m=o+(a-o)/n;c=p(t,m)}if(f=Math.abs(g-m),d=Math.abs(u-c),uc?(o=g,g=m,u=c,l=1):(a=m,m=g,c=u,l=0),s++>100)break}p(t,i)}(t),a&&function(t){t.forEach(function(t){var e={x:0,y:0};t.array.forEach(function(t){e.x+=t.x,e.y+=t.y}),e.x/=t.array.length,e.y/=t.array.length;var n=t.x-(e.x-t.width/2)+s/2-c/2,r=t.y-(e.y-t.height/2)+u/2-l/2;t.array.forEach(function(t){t.x+=n,t.y+=r})})}(t))},e.separateGraphs=function(t,e){for(var n={},r={},i=[],o=0,a=0;a0){var e=0;this._links.forEach(function(t){e=Math.max(e,t.source,t.target)}),this._nodes=new Array(++e);for(var n=0;n0?t:0:t>0&&(this._running||(this._running=!0,this.trigger({type:l.start,alpha:this._alpha=t}),this.kick())),this):this._alpha},t.prototype.getLinkLength=function(t){return"function"==typeof this._linkDistance?+this._linkDistance(t):this._linkDistance},t.setLinkLength=function(t,e){t.length=e},t.prototype.getLinkType=function(t){return"function"==typeof this._linkType?this._linkType(t):0},t.prototype.symmetricDiffLinkLengths=function(t,e){var n=this;return void 0===e&&(e=1),this.linkDistance(function(e){return t*e.length}),this._linkLengthCalculator=function(){return i.symmetricDiffLinkLengths(n._links,n.linkAccessor,e)},this},t.prototype.jaccardLinkLengths=function(t,e){var n=this;return void 0===e&&(e=1),this.linkDistance(function(e){return t*e.length}),this._linkLengthCalculator=function(){return i.jaccardLinkLengths(n._links,n.linkAccessor,e)},this},t.prototype.start=function(e,n,r,u,c,l){var h=this;void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),void 0===u&&(u=0),void 0===c&&(c=!0),void 0===l&&(l=!0);var f,d=this.nodes().length,p=d+2*this._groups.length,g=this._canvasSize[0],m=this._canvasSize[1],v=new Array(p),y=new Array(p),_=null,w=this._avoidOverlaps;this._nodes.forEach(function(t,e){t.index=e,void 0===t.x&&(t.x=g/2,t.y=m/2),v[e]=t.x,y[e]=t.y}),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?f=this._distanceMatrix:(f=new s.Calculator(p,this._links,t.getSourceIndex,t.getTargetIndex,function(t){return h.getLinkLength(t)}).DistanceMatrix(),_=o.Descent.createSquareMatrix(p,function(){return 2}),this._links.forEach(function(t){"number"==typeof t.source&&(t.source=h._nodes[t.source]),"number"==typeof t.target&&(t.target=h._nodes[t.target])}),this._links.forEach(function(e){var n=t.getSourceIndex(e),r=t.getTargetIndex(e);_[n][r]=_[r][n]=e.weight||1}));var b=o.Descent.createSquareMatrix(p,function(t,e){return f[t][e]});if(this._rootGroup&&void 0!==this._rootGroup.groups){var x=d;this._groups.forEach(function(t){!function(t,e,n,r){_[t][e]=_[e][t]=n,b[t][e]=b[e][t]=.1}(x,x+1,h._groupCompactness),v[x]=0,y[x++]=0,v[x]=0,y[x++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var E=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,E=E.concat(i.generateDirectedEdgeConstraints(d,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new o.Descent([v,y],b),this._descent.locks.clear(),x=0;x0&&(this._descent.project=new a.Projection(this._nodes,this._groups,this._rootGroup,E).projectFunctions()),this._descent.run(n),this.separateOverlappingComponents(g,m,l),this.avoidOverlaps(w),w&&(this._nodes.forEach(function(t,e){t.x=v[e],t.y=y[e]}),this._descent.project=new a.Projection(this._nodes,this._groups,this._rootGroup,E,!0).projectFunctions(),this._nodes.forEach(function(t,e){v[e]=t.x,y[e]=t.y})),this._descent.G=_,this._descent.run(r),u){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=d,this._descent.scaleSnapByMaxH=d!=p;var A=o.Descent.createSquareMatrix(p,function(t,e){return t>=d||e>=d?_[t][e]:0});this._descent.G=A,this._descent.run(u)}return this.updateNodePositions(),this.separateOverlappingComponents(g,m,l),c?this.resume():this},t.prototype.initialLayout=function(e,n,r){if(this._groups.length>0&&e>0){var i=this._nodes.length,o=this._links.map(function(t){return{source:t.source.index,target:t.target.index}}),a=this._nodes.map(function(t){return{index:t.index}});this._groups.forEach(function(t,e){a.push({index:t.index=i+e})}),this._groups.forEach(function(t,e){void 0!==t.leaves&&t.leaves.forEach(function(e){return o.push({source:t.index,target:e.index})}),void 0!==t.groups&&t.groups.forEach(function(e){return o.push({source:t.index,target:e.index})})}),(new t).size(this.size()).nodes(a).links(o).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(e,0,0,0,!1),this._nodes.forEach(function(t){n[t.index]=a[t.index].x,r[t.index]=a[t.index].y})}else this._descent.run(e)},t.prototype.separateOverlappingComponents=function(t,e,n){var r=this;if(void 0===n&&(n=!0),!this._distanceMatrix&&this._handleDisconnected){var i=this._descent.x[0],o=this._descent.x[1];this._nodes.forEach(function(t,e){t.x=i[e],t.y=o[e]});var a=c.separateGraphs(this._nodes,this._links);c.applyPacking(a,t,e,this._defaultNodeSize,1,n),this._nodes.forEach(function(t,e){r._descent.x[0][e]=t.x,r._descent.x[1][e]=t.y,t.bounds&&(t.bounds.setXCentre(t.x),t.bounds.setYCentre(t.y))})}},t.prototype.resume=function(){return this.alpha(.1)},t.prototype.stop=function(){return this.alpha(0)},t.prototype.prepareEdgeRouting=function(t){void 0===t&&(t=0),this._visibilityGraph=new u.TangentVisibilityGraph(this._nodes.map(function(e){return e.bounds.inflate(-t).vertices()}))},t.prototype.routeEdge=function(t,e,n){void 0===e&&(e=5);var r=[],i=new u.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),o={x:t.source.x,y:t.source.y},c={x:t.target.x,y:t.target.y},l=i.addPoint(o,t.source.index),h=i.addPoint(c,t.target.index);i.addEdgeIfVisible(o,c,t.source.index,t.target.index),void 0!==n&&n(i);var f=new s.Calculator(i.V.length,i.E,function(t){return t.source.id},function(t){return t.target.id},function(t){return t.length()}).PathFromNodeToNode(l.id,h.id);if(1===f.length||f.length===i.V.length){var d=a.makeEdgeBetween(t.source.innerBounds,t.target.innerBounds,e);r=[d.sourceIntersection,d.arrowStart]}else{for(var p=f.length-2,g=i.V[f[p]].p,m=i.V[f[0]].p,v=(r=[t.source.innerBounds.rayIntersection(g.x,g.y)],p);v>=0;--v)r.push(i.V[f[v]].p);r.push(a.makeEdgeTo(m,t.target.innerBounds,e))}return r},t.getSourceIndex=function(t){return"number"==typeof t.source?t.source:t.source.index},t.getTargetIndex=function(t){return"number"==typeof t.target?t.target:t.target.index},t.linkId=function(e){return t.getSourceIndex(e)+"-"+t.getTargetIndex(e)},t.dragStart=function(e){h(e)?t.storeOffset(e,t.dragOrigin(e)):(t.stopNode(e),e.fixed|=2)},t.stopNode=function(t){t.px=t.x,t.py=t.y},t.storeOffset=function(e,n){void 0!==e.leaves&&e.leaves.forEach(function(e){e.fixed|=2,t.stopNode(e),e._dragGroupOffsetX=e.x-n.x,e._dragGroupOffsetY=e.y-n.y}),void 0!==e.groups&&e.groups.forEach(function(e){return t.storeOffset(e,n)})},t.dragOrigin=function(t){return h(t)?{x:t.bounds.cx(),y:t.bounds.cy()}:t},t.drag=function(e,n){h(e)?(void 0!==e.leaves&&e.leaves.forEach(function(t){e.bounds.setXCentre(n.x),e.bounds.setYCentre(n.y),t.px=t._dragGroupOffsetX+n.x,t.py=t._dragGroupOffsetY+n.y}),void 0!==e.groups&&e.groups.forEach(function(e){return t.drag(e,n)})):(e.px=n.x,e.py=n.y)},t.dragEnd=function(e){h(e)?(void 0!==e.leaves&&e.leaves.forEach(function(e){t.dragEnd(e),delete e._dragGroupOffsetX,delete e._dragGroupOffsetY}),void 0!==e.groups&&e.groups.forEach(t.dragEnd)):e.fixed&=-7},t.mouseOver=function(t){t.fixed|=4,t.px=t.x,t.py=t.y},t.mouseOut=function(t){t.fixed&=-5},t}()},83807:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(99147),i=n(59895),o=n(97002),a=n(24232);e.Link3D=function(){function t(t,e){this.source=t,this.target=e}return t.prototype.actualLength=function(t){var e=this;return Math.sqrt(t.reduce(function(t,n){var r=n[e.target]-n[e.source];return t+r*r},0))},t}(),e.Node3D=function(){return function(t,e,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),this.x=t,this.y=e,this.z=n}}(),e.Layout3D=function(){function t(e,n,r){var i=this;void 0===r&&(r=1),this.nodes=e,this.links=n,this.idealLinkLength=r,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(t.k);for(var o=0;o=this.R))return this.merge(e.a,e.b,t),!0}},t.prototype.nEdges=function(t,e){var n=t.incoming.intersection(e.incoming),r=t.outgoing.intersection(e.outgoing);return this.R-n.count()-r.count()},t.prototype.getGroupHierarchy=function(t){var e=this,r=[];return i(this.roots[0],{},r),this.allEdges().forEach(function(i){var o=e.modules[i.source],a=e.modules[i.target];t.push(new n(void 0===o.gid?i.source:r[o.gid],void 0===a.gid?i.target:r[a.gid],i.type))}),r},t.prototype.allEdges=function(){var e=[];return t.getEdges(this.roots[0],e),e},t.getEdges=function(e,n){e.forAll(function(e){e.getEdges(n),t.getEdges(e.children,n)})},t}();function i(t,e,n){t.forAll(function(t){if(t.isLeaf())e.leaves||(e.leaves=[]),e.leaves.push(t.id);else{var r=e;if(t.gid=n.length,!t.isIsland()||t.isPredefined()){if(r={id:t.gid},t.isPredefined())for(var o in t.definition)r[o]=t.definition[o];e.groups||(e.groups=[]),e.groups.push(t.gid),n.push(r)}i(t.children,r,n)}})}e.Configuration=r;var o=function(){function t(t,e,n,r,i){void 0===e&&(e=new s),void 0===n&&(n=new s),void 0===r&&(r=new a),this.id=t,this.outgoing=e,this.incoming=n,this.children=r,this.definition=i}return t.prototype.getEdges=function(t){var e=this;this.outgoing.forAll(function(r,i){r.forAll(function(r){t.push(new n(e.id,r.id,i))})})},t.prototype.isLeaf=function(){return 0===this.children.count()},t.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},t.prototype.isPredefined=function(){return void 0!==this.definition},t}();e.Module=o;var a=function(){function t(){this.table={}}return t.prototype.count=function(){return Object.keys(this.table).length},t.prototype.intersection=function(e){var n=new t;return n.table=function(t,e){var n={};for(var r in t)r in e&&(n[r]=t[r]);return n}(this.table,e.table),n},t.prototype.intersectionCount=function(t){return this.intersection(t).count()},t.prototype.contains=function(t){return t in this.table},t.prototype.add=function(t){this.table[t.id]=t},t.prototype.remove=function(t){delete this.table[t.id]},t.prototype.forAll=function(t){for(var e in this.table)t(this.table[e])},t.prototype.modules=function(){var t=[];return this.forAll(function(e){e.isPredefined()||t.push(e)}),t},t}();e.ModuleSet=a;var s=function(){function t(){this.sets={},this.n=0}return t.prototype.count=function(){return this.n},t.prototype.contains=function(t){var e=!1;return this.forAllModules(function(n){e||n.id!=t||(e=!0)}),e},t.prototype.add=function(t,e){(t in this.sets?this.sets[t]:this.sets[t]=new a).add(e),++this.n},t.prototype.remove=function(t,e){var n=this.sets[t];n.remove(e),0===n.count()&&delete this.sets[t],--this.n},t.prototype.forAll=function(t){for(var e in this.sets)t(this.sets[e],Number(e))},t.prototype.forAllModules=function(t){this.forAll(function(e,n){return e.forAll(t)})},t.prototype.intersection=function(e){var n=new t;return this.forAll(function(t,r){if(r in e.sets){var i=t.intersection(e.sets[r]),o=i.count();o>0&&(n.sets[r]=i,n.n+=o)}}),n},t}();e.LinkSets=s,e.getGroups=function(t,e,n,i){for(var o=new r(t.length,e,n,i);o.greedyMerge(););var a=[],s=o.getGroupHierarchy(a);return a.forEach(function(e){var n=function(n){var r=e[n];"number"==typeof r&&(e[n]=t[r])};n("source"),n("target")}),{groups:s,powerEdges:a}}},741:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.elem=t,this.subheaps=[]}return t.prototype.toString=function(t){for(var e="",n=!1,r=0;r0)}return null}}return t.prototype.clear=function(){this._root=null,this.size=0},t.prototype.find=function(t){for(var e=this._root;null!==e;){var n=this._comparator(t,e.data);if(0===n)return e.data;e=e.get_child(n>0)}return null},t.prototype.lowerBound=function(t){return this._bound(t,this._comparator)},t.prototype.upperBound=function(t){var e=this._comparator;return this._bound(t,function(t,n){return e(n,t)})},t.prototype.min=function(){var t=this._root;if(null===t)return null;for(;null!==t.left;)t=t.left;return t.data},t.prototype.max=function(){var t=this._root;if(null===t)return null;for(;null!==t.right;)t=t.right;return t.data},t.prototype.iterator=function(){return new o(this)},t.prototype.each=function(t){for(var e,n=this.iterator();null!==(e=n.next());)t(e)},t.prototype.reach=function(t){for(var e,n=this.iterator();null!==(e=n.prev());)t(e)},t.prototype._bound=function(t,e){for(var n=this._root,r=this.iterator();null!==n;){var i=this._comparator(t,n.data);if(0===i)return r._cursor=n,r;r._ancestors.push(n),n=n.get_child(i>0)}for(var o=r._ancestors.length-1;o>=0;--o)if(e(t,(n=r._ancestors[o]).data)>0)return r._cursor=n,r._ancestors.length=o,r;return r._ancestors.length=0,r},t}();e.TreeBase=i;var o=function(){function t(t){this._tree=t,this._ancestors=[],this._cursor=null}return t.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},t.prototype.next=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._minNode(t)}else{var e;if(null===this._cursor.right)do{if(e=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===e);else this._ancestors.push(this._cursor),this._minNode(this._cursor.right)}return null!==this._cursor?this._cursor.data:null},t.prototype.prev=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._maxNode(t)}else{var e;if(null===this._cursor.left)do{if(e=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===e);else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left)}return null!==this._cursor?this._cursor.data:null},t.prototype._minNode=function(t){for(;null!==t.left;)this._ancestors.push(t),t=t.left;this._cursor=t},t.prototype._maxNode=function(t){for(;null!==t.right;)this._ancestors.push(t),t=t.right;this._cursor=t},t}();e.Iterator=o;var a=function(){function t(t){this.data=t,this.left=null,this.right=null,this.red=!0}return t.prototype.get_child=function(t){return t?this.right:this.left},t.prototype.set_child=function(t,e){t?this.right=e:this.left=e},t}();e.RBTree=function(t){function e(e){var n=t.call(this)||this;return n._root=null,n._comparator=e,n.size=0,n}return r(e,t),e.prototype.insert=function(t){var n=!1;if(null===this._root)this._root=new a(t),n=!0,this.size++;else{var r=new a(void 0),i=!1,o=!1,s=null,u=r,c=null,l=this._root;for(u.right=this._root;;){if(null===l?(l=new a(t),c.set_child(i,l),n=!0,this.size++):e.is_red(l.left)&&e.is_red(l.right)&&(l.red=!0,l.left.red=!1,l.right.red=!1),e.is_red(l)&&e.is_red(c)){var h=u.right===s;l===c.get_child(o)?u.set_child(h,e.single_rotate(s,!o)):u.set_child(h,e.double_rotate(s,!o))}var f=this._comparator(l.data,t);if(0===f)break;o=i,null!==s&&(u=s),s=c,c=l,l=l.get_child(i=f<0)}this._root=r.right}return this._root.red=!1,n},e.prototype.remove=function(t){if(null===this._root)return!1;var n=new a(void 0),r=n;r.right=this._root;for(var i=null,o=null,s=null,u=!0;null!==r.get_child(u);){var c=u;o=i,i=r,r=r.get_child(u);var l=this._comparator(t,r.data);if(u=l>0,0===l&&(s=r),!e.is_red(r)&&!e.is_red(r.get_child(u)))if(e.is_red(r.get_child(!u))){var h=e.single_rotate(r,u);i.set_child(c,h),i=h}else if(!e.is_red(r.get_child(!u))){var f=i.get_child(!c);if(null!==f)if(e.is_red(f.get_child(!c))||e.is_red(f.get_child(c))){var d=o.right===i;e.is_red(f.get_child(c))?o.set_child(d,e.double_rotate(i,c)):e.is_red(f.get_child(!c))&&o.set_child(d,e.single_rotate(i,c));var p=o.get_child(d);p.red=!0,r.red=!0,p.left.red=!1,p.right.red=!1}else i.red=!1,f.red=!0,r.red=!0}}return null!==s&&(s.data=r.data,i.set_child(i.right===r,r.get_child(null===r.left)),this.size--),this._root=n.right,null!==this._root&&(this._root.red=!1),null!==s},e.is_red=function(t){return null!==t&&t.red},e.single_rotate=function(t,e){var n=t.get_child(!e);return t.set_child(!e,n.get_child(e)),n.set_child(e,t),t.red=!0,n.red=!1,n},e.double_rotate=function(t,n){return t.set_child(!n,e.single_rotate(t.get_child(!n),!n)),e.single_rotate(t,n)},e}(i)},97002:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(70980),a=n(21539);function s(t){return t.bounds=void 0!==t.leaves?t.leaves.reduce(function(t,e){return e.bounds.union(t)},u.empty()):u.empty(),void 0!==t.groups&&(t.bounds=t.groups.reduce(function(t,e){return s(e).union(t)},t.bounds)),t.bounds=t.bounds.inflate(t.padding),t.bounds}e.computeGroupBounds=s;var u=function(){function t(t,e,n,r){this.x=t,this.X=e,this.y=n,this.Y=r}return t.empty=function(){return new t(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},t.prototype.cx=function(){return(this.x+this.X)/2},t.prototype.cy=function(){return(this.y+this.Y)/2},t.prototype.overlapX=function(t){var e=this.cx(),n=t.cx();return e<=n&&t.x0?n[0]:null},t.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}]},t.lineIntersection=function(t,e,n,r,i,o,a,s){var u=n-t,c=a-i,l=r-e,h=s-o,f=h*u-c*l;if(0==f)return null;var d=t-i,p=e-o,g=(c*p-h*d)/f,m=(u*p-l*d)/f;return g>=0&&g<=1&&m>=0&&m<=1?{x:t+g*u,y:e+g*l}:null},t.prototype.inflate=function(e){return new t(this.x-e,this.X+e,this.y-e,this.Y+e)},t}();e.Rectangle=u,e.makeEdgeBetween=function(t,e,n){var r=t.rayIntersection(e.cx(),e.cy())||{x:t.cx(),y:t.cy()},i=e.rayIntersection(t.cx(),t.cy())||{x:e.cx(),y:e.cy()},o=i.x-r.x,a=i.y-r.y,s=Math.sqrt(o*o+a*a),u=s-n;return{sourceIntersection:r,targetIntersection:i,arrowStart:{x:r.x+u*o/s,y:r.y+u*a/s}}},e.makeEdgeTo=function(t,e,n){var r=e.rayIntersection(t.x,t.y);r||(r={x:e.cx(),y:e.cy()});var i=r.x-t.x,o=r.y-t.y,a=Math.sqrt(i*i+o*o);return{x:r.x-n*i/a,y:r.y-n*o/a}};var c=function(){return function(t,e,n){this.v=t,this.r=e,this.pos=n,this.prev=f(),this.next=f()}}(),l=function(){return function(t,e,n){this.isOpen=t,this.v=e,this.pos=n}}();function h(t,e){return t.pos>e.pos?1:t.pos0&&(t[n].insert(i),i[r].insert(t))};n("next","prev"),n("prev","next")}};function g(t,e,n,r){void 0===r&&(r=!1);var i=t.padding,o=void 0!==t.groups?t.groups.length:0,a=void 0!==t.leaves?t.leaves.length:0,s=o?t.groups.reduce(function(t,r){return t.concat(g(r,e,n,!0))},[]):[],u=(r?2:0)+a+o,c=new Array(u),l=new Array(u),h=0,f=function(t,e){l[h]=t,c[h++]=e};if(r){var d=t.bounds,p=e.getCentre(d),v=e.getSize(d)/2,y=e.getOpen(d),_=e.getClose(d),w=p-v+i/2,b=p+v-i/2;t.minVar.desiredPosition=w,f(e.makeRect(y,_,w,i),t.minVar),t.maxVar.desiredPosition=b,f(e.makeRect(y,_,b,i),t.maxVar)}a&&t.leaves.forEach(function(t){return f(t.bounds,t.variable)}),o&&t.groups.forEach(function(t){var n=t.bounds;f(e.makeRect(e.getOpen(n),e.getClose(n),e.getCentre(n),e.getSize(n)),t.minVar)});var x=m(l,c,e,n);return o&&(c.forEach(function(t){t.cOut=[],t.cIn=[]}),x.forEach(function(t){t.left.cOut.push(t),t.right.cIn.push(t)}),t.groups.forEach(function(t){var n=(t.padding-e.getSize(t.bounds))/2;t.minVar.cIn.forEach(function(t){return t.gap+=n}),t.minVar.cOut.forEach(function(e){e.left=t.maxVar,e.gap+=n})})),s.concat(x)}function m(t,e,n,r){var i,a=t.length,s=2*a;console.assert(e.length>=a);var u=new Array(s);for(i=0;it[n]&&(t[n]=e)}o=t})}},t.prototype.createAlignment=function(t){var e=this,n=this.nodes[t.offsets[0].node].variable;this.makeFeasible(t);var r="x"===t.axis?this.xConstraints:this.yConstraints;t.offsets.slice(1).forEach(function(t){r.push(new o.Constraint(n,e.nodes[t.node].variable,t.offset,!0))})},t.prototype.createConstraints=function(t){var e=this,n=function(t){return void 0===t.type||"separation"===t.type};this.xConstraints=t.filter(function(t){return"x"===t.axis&&n(t)}).map(function(t){return e.createSeparation(t)}),this.yConstraints=t.filter(function(t){return"y"===t.axis&&n(t)}).map(function(t){return e.createSeparation(t)}),t.filter(function(t){return"alignment"===t.type}).forEach(function(t){return e.createAlignment(t)})},t.prototype.setupVariablesAndBounds=function(t,e,n,r){this.nodes.forEach(function(i,o){i.fixed?(i.variable.weight=i.fixedWeight?i.fixedWeight:1e3,n[o]=r(i)):i.variable.weight=1;var a=(i.width||0)/2,s=(i.height||0)/2,c=t[o],l=e[o];i.bounds=new u(c-a,c+a,l-s,l+s)})},t.prototype.xProject=function(t,e,n){(this.rootGroup||this.avoidOverlaps||this.xConstraints)&&this.project(t,e,t,n,function(t){return t.px},this.xConstraints,_,function(t){return t.bounds.setXCentre(n[t.variable.index]=t.variable.position())},function(t){var e=n[t.minVar.index]=t.minVar.position(),r=n[t.maxVar.index]=t.maxVar.position(),i=t.padding/2;t.bounds.x=e-i,t.bounds.X=r+i})},t.prototype.yProject=function(t,e,n){(this.rootGroup||this.yConstraints)&&this.project(t,e,e,n,function(t){return t.py},this.yConstraints,w,function(t){return t.bounds.setYCentre(n[t.variable.index]=t.variable.position())},function(t){var e=n[t.minVar.index]=t.minVar.position(),r=n[t.maxVar.index]=t.maxVar.position(),i=t.padding/2;t.bounds.y=e-i,t.bounds.Y=r+i})},t.prototype.projectFunctions=function(){var t=this;return[function(e,n,r){return t.xProject(e,n,r)},function(e,n,r){return t.yProject(e,n,r)}]},t.prototype.project=function(t,e,n,r,i,o,a,u,c){this.setupVariablesAndBounds(t,e,r,i),this.rootGroup&&this.avoidOverlaps&&(s(this.rootGroup),o=o.concat(a(this.rootGroup))),this.solve(this.variables,o,n,r),this.nodes.forEach(u),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(c),s(this.rootGroup))},t.prototype.solve=function(t,e,n,r){var i=new o.Solver(t,e);i.setStartingPositions(n),i.setDesiredPositions(r),i.solve()},t}()},99147:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(741),i=function(){return function(t,e){this.id=t,this.distance=e}}(),o=function(){return function(t){this.id=t,this.neighbours=[]}}(),a=function(){return function(t,e,n){this.node=t,this.prev=e,this.d=n}}();e.Calculator=function(){function t(t,e,n,r,a){this.n=t,this.es=e,this.neighbours=new Array(this.n);for(var s=this.n;s--;)this.neighbours[s]=new o(s);for(s=this.es.length;s--;){var u=this.es[s],c=n(u),l=r(u),h=a(u);this.neighbours[c].neighbours.push(new i(l,h)),this.neighbours[l].neighbours.push(new i(c,h))}}return t.prototype.DistanceMatrix=function(){for(var t=new Array(this.n),e=0;eh&&(c.d=h,c.prev=s,n.reduceKey(c.q,c,function(t,e){return t.q=e}))}}return o},t}()},70980:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.scale=t,this.AB=0,this.AD=0,this.A2=0}return t.prototype.addVariable=function(t){var e=this.scale/t.scale,n=t.weight;this.AB+=n*e*(t.offset/t.scale),this.AD+=n*e*t.desiredPosition,this.A2+=n*e*e},t.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},t}();e.PositionStats=n;var r=function(){function t(t,e,n,r){void 0===r&&(r=!1),this.left=t,this.right=e,this.gap=n,this.equality=r,this.active=!1,this.unsatisfiable=!1,this.left=t,this.right=e,this.gap=n,this.equality=r}return t.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},t}();e.Constraint=r;var i=function(){function t(t,e,n){void 0===e&&(e=1),void 0===n&&(n=1),this.desiredPosition=t,this.weight=e,this.scale=n,this.offset=0}return t.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},t.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},t.prototype.visitNeighbours=function(t,e){var n=function(n,r){return n.active&&t!==r&&e(n,r)};this.cOut.forEach(function(t){return n(t,t.right)}),this.cIn.forEach(function(t){return n(t,t.left)})},t}();e.Variable=i;var o=function(){function t(t){this.vars=[],t.offset=0,this.ps=new n(t.scale),this.addVariable(t)}return t.prototype.addVariable=function(t){t.block=this,this.vars.push(t),this.ps.addVariable(t),this.posn=this.ps.getPosn()},t.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var t=0,e=this.vars.length;t=0?this.inactive.push(e):this.bs.merge(e)}}},t.prototype.solve=function(){this.satisfy();for(var t=Number.MAX_VALUE,e=this.bs.cost();Math.abs(t-e)>1e-4;)this.satisfy(),t=e,e=this.bs.cost();return e},t.LAGRANGIAN_TOLERANCE=-1e-4,t.ZERO_UPPERBOUND=-1e-10,t}();e.Solver=s,e.removeOverlapInOneDimension=function(t,e,n){for(var o=t.map(function(t){return new i(t.desiredCenter)}),a=[],u=t.length,c=0;c=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(t,e){if(t){if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0)for(var r,i=t[0],o=e[0],a=t[n]-i,s=e[n]-o,u=-1;++u<=n;)this._basis.point(this._beta*t[u]+(1-this._beta)*(i+(r=u/n)*a),this._beta*e[u]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var je=function t(e){function n(t){return 1===e?new Fe(t):new qe(t,e)}return n.beta=function(e){return t(+e)},n}(.85),Ye=l(55959);function Be(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function ze(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}var Ge=l(10709),Je=l(26899),Ve=l(87254),He=l(41036),Qe=(l(92711),l(64641)),We=(l(8634),l(3031));function Xe(t){return{type:t}}function $e(t,e){return te?1:t>=e?0:NaN}function Ke(t){var e=t,n=t;function r(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;n(t[o],e)<0?r=o+1:i=o}return r}return 1===t.length&&(e=function(e,n){return t(e)-n},n=function(t){return function(e,n){return $e(t(e),n)}}(t)),{left:r,center:function(t,n,i,o){null==i&&(i=0),null==o&&(o=t.length);var a=r(t,n,i,o-1);return a>i&&e(t[a-1],n)>-e(t[a],n)?a-1:a},right:function(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;n(t[o],e)>0?i=o:r=o+1}return r}}}l(45161),l(38337),l(82159),["w","e"].map(Xe),["n","s"].map(Xe),["n","w","e","s","nw","ne","sw","se"].map(Xe);var tn=Math.sqrt(50),en=Math.sqrt(10),nn=Math.sqrt(2);function rn(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=tn?10:o>=en?5:o>=nn?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=tn?10:o>=en?5:o>=nn?2:1)}function on(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=tn?i*=10:o>=en?i*=5:o>=nn&&(i*=2),e0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(i.count=function(e,r){return an.setTime(+e),sn.setTime(+r),t(an),t(sn),Math.floor(n(an,sn))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var cn=un(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});cn.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?un(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):cn:null};var ln=cn,hn=un(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+1e3*e)},function(t,e){return(e-t)/1e3},function(t){return t.getUTCSeconds()}),fn=un(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},function(t,e){t.setTime(+t+6e4*e)},function(t,e){return(e-t)/6e4},function(t){return t.getMinutes()}),dn=un(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getHours()}),pn=un(function(t){return t.setHours(0,0,0,0)},function(t,e){return t.setDate(t.getDate()+e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5},function(t){return t.getDate()-1});function gn(t){return un(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5})}var vn=gn(0),mn=(gn(1),gn(2),gn(3),gn(4),gn(5),gn(6),un(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()})),yn=un(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});yn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?un(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};var _n=yn,wn=un(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+6e4*e)},function(t,e){return(e-t)/6e4},function(t){return t.getUTCMinutes()}),bn=un(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getUTCHours()}),xn=un(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1});function En(t){return un(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/6048e5})}var Tn=En(0),An=(En(1),En(2),En(3),En(4),En(5),En(6),un(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()})),Sn=un(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});function kn(t,e,n,r,i,o){var a=[[hn,1,1e3],[hn,5,5e3],[hn,15,15e3],[hn,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function s(e,n,r){var i=Math.abs(n-e)/r,o=Ke(function(t){return u(t,3)[2]}).right(a,i);if(o===a.length)return t.every(on(e/31536e6,n/31536e6,r));if(0===o)return ln.every(Math.max(on(e,n,r),1));var s=u(a[i/a[o-1][2]0?un(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var In=u(kn(Sn,An,Tn,xn,bn,wn),2),Dn=(In[0],In[1],u(kn(_n,mn,vn,pn,dn,fn),2)),Nn=(Dn[0],Dn[1],new Date),Cn=new Date;function Zn(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(i.count=function(e,r){return Nn.setTime(+e),Cn.setTime(+r),t(Nn),t(Cn),Math.floor(n(Nn,Cn))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}function Mn(t){return Zn(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/6048e5})}var On=Mn(0),Ln=Mn(1),Rn=(Mn(2),Mn(3),Mn(4)),Un=(Mn(5),Mn(6),Zn(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1}));function Pn(t){return Zn(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5})}var Fn=Pn(0),qn=Pn(1),jn=(Pn(2),Pn(3),Pn(4)),Yn=(Pn(5),Pn(6),Zn(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5},function(t){return t.getDate()-1})),Bn=Zn(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Bn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Zn(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};var zn=Bn,Gn=Zn(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});Gn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Zn(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var Jn=Gn,Vn={"-":"",_:" ",0:"0"},Hn=/[\\^$*+?|[\]().{}]/g;function Qn(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o=4||0===n?jn(t):jn.ceil(t),Qn(jn.count(zn(t),t)+(4===zn(t).getDay()),e,2)}function hr(t){return t.getDay()}function fr(t,e){return Qn(qn.count(zn(t)-1,t),e,2)}function dr(t,e){return Qn(t.getFullYear()%100,e,2)}function pr(t,e){return Qn(t.getFullYear()%1e4,e,4)}function gr(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Qn(e/60|0,"0",2)+Qn(e%60,"0",2)}function vr(t,e){return Qn(t.getUTCDate(),e,2)}function mr(t,e){return Qn(t.getUTCHours(),e,2)}function yr(t,e){return Qn(t.getUTCHours()%12||12,e,2)}function _r(t,e){return Qn(1+Un.count(Jn(t),t),e,3)}function wr(t,e){return Qn(t.getUTCMilliseconds(),e,3)}function br(t,e){return wr(t,e)+"000"}function xr(t,e){return Qn(t.getUTCMonth()+1,e,2)}function Er(t,e){return Qn(t.getUTCMinutes(),e,2)}function Tr(t,e){return Qn(t.getUTCSeconds(),e,2)}function Ar(t){var e=t.getUTCDay();return 0===e?7:e}function Sr(t,e){return Qn(On.count(Jn(t)-1,t),e,2)}function kr(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Rn(t):Rn.ceil(t),Qn(Rn.count(Jn(t),t)+(4===Jn(t).getUTCDay()),e,2)}function Ir(t){return t.getUTCDay()}function Dr(t,e){return Qn(Ln.count(Jn(t)-1,t),e,2)}function Nr(t,e){return Qn(t.getUTCFullYear()%100,e,2)}function Cr(t,e){return Qn(t.getUTCFullYear()%1e4,e,4)}function Zr(){return"+0000"}function Mr(){return"%"}function Or(t){return+t}function Lr(t){return Math.floor(+t/1e3)}function Rr(t){return null===t?NaN:+t}!function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,u=t.shortMonths,c=(Xn(i),$n(i),Xn(o),$n(o),Xn(a),$n(a),Xn(s),$n(s),Xn(u),$n(u),{a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:Kn,e:Kn,f:ir,H:tr,I:er,j:nr,L:rr,m:or,M:ar,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Or,s:Lr,S:sr,u:ur,U:cr,V:lr,w:hr,W:fr,x:null,X:null,y:dr,Y:pr,Z:gr,"%":Mr}),l={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:vr,e:vr,f:br,H:mr,I:yr,j:_r,L:wr,m:xr,M:Er,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Or,s:Lr,S:Tr,u:Ar,U:Sr,V:kr,w:Ir,W:Dr,x:null,X:null,y:Nr,Y:Cr,Z:Zr,"%":Mr};function h(t,e){return function(n){var r,i,o,a=[],s=-1,u=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s(e=a[u-1])&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),r=u>2?Jr:Gr,i=o=null,h}function h(e){return null==e||isNaN(e=+e)?n:(i||(i=r(a.map(t),s,u)))(t(c(e)))}return h.invert=function(n){return c(e((o||(o=r(s,a.map(t),Fr.Z)))(n)))},h.domain=function(t){return arguments.length?(a=Array.from(t,jr),l()):a.slice()},h.range=function(t){return arguments.length?(s=Array.from(t),l()):s.slice()},h.rangeRound=function(t){return s=Array.from(t),u=qr.Z,l()},h.clamp=function(t){return arguments.length?(c=!!t||Br,l()):c!==Br},h.interpolate=function(t){return arguments.length?(u=t,l()):u},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,l()}}()(Br,Br)}function Qr(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var Wr=l(93116),Xr=l(65636),$r=l(3712),Kr=l(3218),ti=l(22233);function ei(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){var r,i,o,a,s=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e0){var u=Math.round(t/a),c=Math.round(e/a);for(u*ae&&--c,o=new Array(i=c-u+1);++se&&--h,o=new Array(i=h-l+1);++s0;){if((i=rn(u,c,n))===r)return o[a]=u,o[s]=c,e(o);if(i>0)u=Math.floor(u/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;u=Math.ceil(u*i)/i,c=Math.floor(c*i)/i}r=i}return t},t}function ni(){var t=Hr();return t.copy=function(){return Vr(t,ni())},Qr.apply(t,arguments),ei(t)}function ri(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r2&&void 0!==arguments[2]?arguments[2]:Rr;if(r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}}function ui(){var t,e=[],n=[],r=[];function i(){var t=0,i=Math.max(1,n.length);for(r=new Array(i-1);++t0?r[i-1]:e[0],i=0;)e+=n[r].value;else e=1;t.value=e}function xi(t,e){var n,r,i,o,a,s=new Si(t),u=+t.value&&(s.value=t.value),c=[s];for(null==e&&(e=Ei);n=c.pop();)if(u&&(n.value=+n.data.value),(i=e(n.data))&&(a=i.length))for(n.children=new Array(a),o=a-1;o>=0;--o)c.push(r=n.children[o]=new Si(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Ai)}function Ei(t){return t.children}function Ti(t){t.data=t.data.data}function Ai(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function Si(t){this.data=t,this.depth=this.height=0,this.parent=null}mi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:vi(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:vi(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new mi(t,e)}return n.tension=function(e){return t(+e)},n}(0),yi.prototype={areaStart:gi,areaEnd:gi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:vi(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new yi(t,e)}return n.tension=function(e){return t(+e)},n}(0),Math,Math,Math,Math,Math,Math,Math,Math,l(12314),function t(e){function n(t,n,r,i,o){!function(t,e,n,r,i,o){for(var a,s,u,c,l,h,f,d,p,g,v,m=[],y=e.children,_=0,w=0,b=y.length,x=e.value;_f&&(f=s),v=l*l*g,(d=Math.max(f/v,v/h))>p){l-=s;break}p=d}m.push(a={value:l,dice:u1?e:1)},n}((1+Math.sqrt(5))/2),Si.prototype=xi.prototype={constructor:Si,count:function(){return this.eachAfter(bi)},each:function(t){var e,n,r,i,o=this,a=[o];do{for(e=a.reverse(),a=[];o=e.pop();)if(t(o),n=o.children)for(r=0,i=n.length;r=0;--n)i.push(e[n]);return this},sum:function(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)r.push(e=e.parent);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each(function(e){t.push(e)}),t},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e},copy:function(){return xi(this).eachBefore(Ti)}};var ki=l(30269),Ii=["caretElm"];function Di(t,e){}var Ni=function(t){return{model:t}};function Ci(t,e){if(1&t&&(m.TgZ(0,"span"),m.YNc(1,Di,0,0,"ng-template",5),m.qZA()),2&t){var n=m.oxw();m.xp6(1),m.Q6J("ngTemplateOutlet",n.template)("ngTemplateOutletContext",m.VKq(2,Ni,n.context))}}function Zi(t,e){if(1&t&&m._UZ(0,"span",6),2&t){var n=m.oxw();m.Q6J("innerHTML",n.title,m.oJD)}}function Mi(t,e){if(1&t&&(m.O4$(),m.kcU(),m._UZ(0,"ngx-charts-scale-legend",4)),2&t){var n=m.oxw();m.Q6J("horizontal",n.legendOptions&&"below"===n.legendOptions.position)("valueRange",n.legendOptions.domain)("colors",n.legendOptions.colors)("height",n.view[1])("width",n.legendWidth)}}function Oi(t,e){if(1&t){var n=m.EpF();m.O4$(),m.kcU(),m.TgZ(0,"ngx-charts-legend",5),m.NdJ("labelClick",function(t){return m.CHM(n),m.oxw().legendLabelClick.emit(t)})("labelActivate",function(t){return m.CHM(n),m.oxw().legendLabelActivate.emit(t)})("labelDeactivate",function(t){return m.CHM(n),m.oxw().legendLabelDeactivate.emit(t)}),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("horizontal",r.legendOptions&&"below"===r.legendOptions.position)("data",r.legendOptions.domain)("title",r.legendOptions.title)("colors",r.legendOptions.colors)("height",r.view[1])("width",r.legendWidth)("activeEntries",r.activeEntries)}}var Li=["*"];function Ri(t,e){if(1&t&&(m.TgZ(0,"header",4),m.TgZ(1,"span",5),m._uU(2),m.qZA(),m.qZA()),2&t){var n=m.oxw();m.xp6(2),m.Oqu(n.title)}}function Ui(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"li",6),m.TgZ(1,"ngx-charts-legend-entry",7),m.NdJ("select",function(t){return m.CHM(n),m.oxw().labelClick.emit(t)})("activate",function(t){return m.CHM(n),m.oxw().activate(t)})("deactivate",function(t){return m.CHM(n),m.oxw().deactivate(t)}),m.qZA(),m.qZA()}if(2&t){var r=e.$implicit,i=m.oxw();m.xp6(1),m.Q6J("label",r.label)("formattedLabel",r.formattedLabel)("color",r.color)("isActive",i.isActive(r))}}var Pi=function(){var t=function(){function t(e,n,r){f(this,t),this.applicationRef=e,this.componentFactoryResolver=n,this.injector=r}return p(t,[{key:"getRootViewContainer",value:function(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.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.")}},{key:"setRootViewContainer",value:function(t){this._container=t}},{key:"getComponentRootNode",value:function(t){return t.element?t.element.nativeElement:t.hostView&&t.hostView.rootNodes.length>0?t.hostView.rootNodes[0]:t.location.nativeElement}},{key:"getRootViewContainerNode",value:function(t){return this.getComponentRootNode(t)}},{key:"projectComponentBindings",value:function(t,e){if(e){if(void 0!==e.inputs){var n,r=c(Object.getOwnPropertyNames(e.inputs));try{for(r.s();!(n=r.n()).done;){var i=n.value;t.instance[i]=e.inputs[i]}}catch(u){r.e(u)}finally{r.f()}}if(void 0!==e.outputs){var o,a=c(Object.getOwnPropertyNames(e.outputs));try{for(a.s();!(o=a.n()).done;){var s=o.value;t.instance[s]=e.outputs[s]}}catch(u){a.e(u)}finally{a.f()}}}return t}},{key:"appendComponent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;n||(n=this.getRootViewContainer());var r=this.getComponentRootNode(n),i=new Je.F0(r,this.componentFactoryResolver,this.applicationRef,this.injector),o=new Je.C5(t),a=i.attach(o);return this.projectComponentBindings(a,e),a}}],[{key:"setGlobalRootViewContainer",value:function(e){t.globalRootViewContainer=e}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.LFG(m.z2F),m.LFG(m._Vd),m.LFG(m.zs3))},t.\u0275prov=m.Yz7({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t}();function Fi(t,e,n){var r,i,o;n=n||{};var a=null,s=0;function u(){s=!1===n.leading?0:+new Date,a=null,o=t.apply(r,i)}return function(){var c=+new Date;s||!1!==n.leading||(s=c);var l=e-(c-s);return r=this,i=arguments,l<=0?(clearTimeout(a),a=null,s=c,o=t.apply(r,i)):a||!1===n.trailing||(a=setTimeout(u,l)),o}}var qi=function(t){return t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right",t}({});function ji(t,e,n){return"top"===n?t.top-7:"bottom"===n?t.top+t.height-e.height+7:"center"===n?t.top+t.height/2-e.height/2:void 0}function Yi(t,e,n){return"left"===n?t.left-7:"right"===n?t.left+t.width-e.width+7:"center"===n?t.left+t.width/2-e.width/2:void 0}var Bi=function(){function t(){f(this,t)}return p(t,null,[{key:"calculateVerticalAlignment",value:function(t,e,n){var r=ji(t,e,n);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r}},{key:"calculateVerticalCaret",value:function(t,e,n,r){var i;"top"===r&&(i=t.height/2-n.height/2+7),"bottom"===r&&(i=e.height-t.height/2-n.height/2-7),"center"===r&&(i=e.height/2-n.height/2);var o=ji(t,e,r);return o+e.height>window.innerHeight&&(i+=o+e.height-window.innerHeight),i}},{key:"calculateHorizontalAlignment",value:function(t,e,n){var r=Yi(t,e,n);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r}},{key:"calculateHorizontalCaret",value:function(t,e,n,r){var i;"left"===r&&(i=t.width/2-n.width/2+7),"right"===r&&(i=e.width-t.width/2-n.width/2-7),"center"===r&&(i=e.width/2-n.width/2);var o=Yi(t,e,r);return o+e.width>window.innerWidth&&(i+=o+e.width-window.innerWidth),i}},{key:"shouldFlip",value:function(t,e,n,r){var i=!1;return"right"===n&&t.left+t.width+e.width+r>window.innerWidth&&(i=!0),"left"===n&&t.left-e.width-r<0&&(i=!0),"top"===n&&t.top-e.height-r<0&&(i=!0),"bottom"===n&&t.top+t.height+e.height+r>window.innerHeight&&(i=!0),i}},{key:"positionCaret",value:function(e,n,r,i,o){var a=0,s=0;return e===qi.right?(s=-7,a=t.calculateVerticalCaret(r,n,i,o)):e===qi.left?(s=n.width,a=t.calculateVerticalCaret(r,n,i,o)):e===qi.top?(a=n.height,s=t.calculateHorizontalCaret(r,n,i,o)):e===qi.bottom&&(a=-7,s=t.calculateHorizontalCaret(r,n,i,o)),{top:a,left:s}}},{key:"positionContent",value:function(e,n,r,i,o){var a=0,s=0;return e===qi.right?(s=r.left+r.width+i,a=t.calculateVerticalAlignment(r,n,o)):e===qi.left?(s=r.left-n.width-i,a=t.calculateVerticalAlignment(r,n,o)):e===qi.top?(a=r.top-n.height-i,s=t.calculateHorizontalAlignment(r,n,o)):e===qi.bottom&&(a=r.top+r.height+i,s=t.calculateHorizontalAlignment(r,n,o)),{top:a,left:s}}},{key:"determinePlacement",value:function(e,n,r,i){if(t.shouldFlip(r,n,e,i)){if(e===qi.right)return qi.left;if(e===qi.left)return qi.right;if(e===qi.top)return qi.bottom;if(e===qi.bottom)return qi.top}return e}}]),t}(),zi=function(){var t=function(){function t(e,n){f(this,t),this.element=e,this.renderer=n}return p(t,[{key:"cssClasses",get:function(){var t="ngx-charts-tooltip-content";return t+=" position-".concat(this.placement),t+=" type-".concat(this.type),t+=" ".concat(this.cssClass)}},{key:"ngAfterViewInit",value:function(){setTimeout(this.position.bind(this))}},{key:"position",value:function(){var t=this,e=this.element.nativeElement,n=this.host.nativeElement.getBoundingClientRect();if(n.height||n.width){var r=e.getBoundingClientRect();this.checkFlip(n,r),this.positionContent(e,n,r),this.showCaret&&this.positionCaret(n,r),setTimeout(function(){return t.renderer.addClass(e,"animate")},1)}}},{key:"positionContent",value:function(t,e,n){var r=Bi.positionContent(this.placement,n,e,this.spacing,this.alignment),i=r.top,o=r.left;this.renderer.setStyle(t,"top","".concat(i,"px")),this.renderer.setStyle(t,"left","".concat(o,"px"))}},{key:"positionCaret",value:function(t,e){var n=this.caretElm.nativeElement,r=n.getBoundingClientRect(),i=Bi.positionCaret(this.placement,e,t,r,this.alignment),o=i.top,a=i.left;this.renderer.setStyle(n,"top","".concat(o,"px")),this.renderer.setStyle(n,"left","".concat(a,"px"))}},{key:"checkFlip",value:function(t,e){this.placement=Bi.determinePlacement(this.placement,e,t,this.spacing)}},{key:"onWindowResize",value:function(){this.position()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(m.SBq),m.Y36(m.Qsj))},t.\u0275cmp=m.Xpm({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(t,e){var n;(1&t&&m.Gf(Ii,5),2&t)&&(m.iGM(n=m.CRH())&&(e.caretElm=n.first))},hostVars:2,hostBindings:function(t,e){1&t&&m.NdJ("resize",function(){return e.onWindowResize()},!1,m.Jf7),2&t&&m.Tol(e.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",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(t,e){1&t&&(m.TgZ(0,"div"),m._UZ(1,"span",0,1),m.TgZ(3,"div",2),m.YNc(4,Ci,2,4,"span",3),m.YNc(5,Zi,1,1,"span",4),m.qZA(),m.qZA()),2&t&&(m.xp6(1),m.Gre("tooltip-caret position-",e.placement,""),m.Q6J("hidden",!e.showCaret),m.xp6(3),m.Q6J("ngIf",!e.title),m.xp6(1),m.Q6J("ngIf",e.title))},directives:[d.O5,d.tP],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.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{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),Be([function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:Fi(n.value,100,void 0)}),this[e]}}}],t.prototype,"onWindowResize",null),t}(),Gi=function(){var t=function(t){r(n,t);var e=o(n);function n(t){var r;return f(this,n),(r=e.call(this,t)).type=zi,r}return n}(function(){function t(e){f(this,t),this.injectionService=e,this.defaults={},this.components=new Map}return p(t,[{key:"getByType",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.type;return this.components.get(t)}},{key:"create",value:function(t){return this.createByType(this.type,t)}},{key:"createByType",value:function(t,e){e=this.assignDefaults(e);var n=this.injectComponent(t,e);return this.register(t,n),n}},{key:"destroy",value:function(t){var e=this.components.get(t.componentType);if(e&&e.length){var n=e.indexOf(t);n>-1&&(e[n].destroy(),e.splice(n,1))}}},{key:"destroyAll",value:function(){this.destroyByType(this.type)}},{key:"destroyByType",value:function(t){var e=this.components.get(t);if(e&&e.length)for(var n=e.length-1;n>=0;)this.destroy(e[n--])}},{key:"injectComponent",value:function(t,e){return this.injectionService.appendComponent(t,e)}},{key:"assignDefaults",value:function(t){var e=Object.assign({},this.defaults.inputs),n=Object.assign({},this.defaults.outputs);return t.inputs||t.outputs||(t={inputs:t}),e&&(t.inputs=Object.assign(Object.assign({},e),t.inputs)),n&&(t.outputs=Object.assign(Object.assign({},n),t.outputs)),t}},{key:"register",value:function(t,e){this.components.has(t)||this.components.set(t,[]),this.components.get(t).push(e)}}]),t}());return t.\u0275fac=function(e){return new(e||t)(m.LFG(Pi))},t.\u0275prov=m.Yz7({token:t,factory:t.\u0275fac}),t}(),Ji=function(){var t=function(){function t(){f(this,t),this.showLegend=!1,this.animations=!0,this.legendLabelClick=new m.vpe,this.legendLabelActivate=new m.vpe,this.legendLabelDeactivate=new m.vpe}return p(t,[{key:"ngOnChanges",value:function(t){this.update()}},{key:"update",value:function(){var t=0;this.showLegend&&(this.legendType=this.getLegendType(),this.legendOptions&&"right"!==this.legendOptions.position||(t="scaleLegend"===this.legendType?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-t)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:Math.floor(this.view[0]*t/12)}},{key:"getLegendType",value:function(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=m.Xpm({type:t,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",data:"data",legendData:"legendData",colors:"colors",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[m._Bn([Gi]),m.TTD],ngContentSelectors:Li,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(t,e){1&t&&(m.F$t(),m.TgZ(0,"div",0),m.O4$(),m.TgZ(1,"svg",1),m.Hsn(2),m.qZA(),m.YNc(3,Mi,1,5,"ngx-charts-scale-legend",2),m.YNc(4,Oi,1,7,"ngx-charts-legend",3),m.qZA()),2&t&&(m.Udp("width",e.view[0],"px"),m.Q6J("@animationState","active")("@.disabled",!e.animations),m.xp6(1),m.uIk("width",e.chartWidth)("height",e.view[1]),m.xp6(2),m.Q6J("ngIf",e.showLegend&&"scaleLegend"===e.legendType),m.xp6(1),m.Q6J("ngIf",e.showLegend&&"legend"===e.legendType))},directives:function(){return[d.O5,Ki,Xi]},encapsulation:2,data:{animation:[(0,Ge.X$)("animationState",[(0,Ge.eR)(":enter",[(0,Ge.oB)({opacity:0}),(0,Ge.jt)("500ms 100ms",(0,Ge.oB)({opacity:1}))])])]},changeDetection:0}),t}(),Vi=function(){var t=function(){function t(e,n){f(this,t),this.element=e,this.zone=n,this.visible=new m.vpe,this.isVisible=!1,this.runCheck()}return p(t,[{key:"destroy",value:function(){clearTimeout(this.timeout)}},{key:"onVisibilityChange",value:function(){var t=this;this.zone.run(function(){t.isVisible=!0,t.visible.emit(!0)})}},{key:"runCheck",value:function(){var t=this,e=function e(){if(t.element){var n=t.element.nativeElement,r=n.offsetHeight,i=n.offsetWidth;r&&i?(clearTimeout(t.timeout),t.onVisibilityChange()):(clearTimeout(t.timeout),t.zone.runOutsideAngular(function(){t.timeout=setTimeout(function(){return e()},100)}))}};this.zone.runOutsideAngular(function(){t.timeout=setTimeout(function(){return e()})})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(m.SBq),m.Y36(m.R0b))},t.\u0275dir=m.lG2({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t}(),Hi=function(){var t=function(){function t(e,n,r){f(this,t),this.chartElement=e,this.zone=n,this.cd=r,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new m.vpe}return p(t,[{key:"ngAfterViewInit",value:function(){this.bindWindowResizeEvent(),this.visibilityObserver=new Vi(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}},{key:"ngOnDestroy",value:function(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}},{key:"ngOnChanges",value:function(t){this.update()}},{key:"update",value:function(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{var t=this.getContainerDims();t&&(this.width=t.width,this.height=t.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()}},{key:"getContainerDims",value:function(){var t,e,n=this.chartElement.nativeElement;if(null!==n.parentNode){var r=n.parentNode.getBoundingClientRect();t=r.width,e=r.height}return t&&e?{width:t,height:e}:null}},{key:"formatDates",value:function(){for(var t=0;t0),m.xp6(2),m.Udp("max-height",e.height-45,"px"),m.ekj("horizontal-legend",e.horizontal),m.xp6(1),m.Q6J("ngForOf",e.legendEntries)("ngForTrackBy",e.trackBy))},directives:function(){return[d.O5,d.sg,$i]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{font-size:14px;font-weight:700;margin-bottom:5px;margin-left:10px;overflow:hidden;white-space:nowrap}.chart-legend li,.chart-legend ul{list-style:none;margin:0;padding:0}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{background:rgba(0,0,0,.05);border-radius:3px;float:left;line-height:85%;list-style:none;overflow-x:hidden;overflow-y:auto;text-align:left;white-space:nowrap;width:100%}.chart-legend .legend-label{color:#afb7c8;cursor:pointer;font-size:90%;margin:8px}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{border-radius:3px;color:#5b646b;display:inline-block;height:15px;margin-right:5px;width:15px}.chart-legend .legend-label-text{font-size:12px;line-height:15px;vertical-align:top;width:calc(100% - 20px)}.chart-legend .legend-label-text,.chart-legend .legend-title-text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-legend .legend-title-text{line-height:16px;vertical-align:bottom}"],encapsulation:2,changeDetection:0}),t}(),$i=function(){var t=function(){function t(){f(this,t),this.isActive=!1,this.select=new m.vpe,this.activate=new m.vpe,this.deactivate=new m.vpe,this.toggle=new m.vpe}return p(t,[{key:"trimmedLabel",get:function(){return this.formattedLabel||"(empty)"}},{key:"onMouseEnter",value:function(){this.activate.emit({name:this.label})}},{key:"onMouseLeave",value:function(){this.deactivate.emit({name:this.label})}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=m.Xpm({type:t,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(t,e){1&t&&m.NdJ("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(){return e.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(t,e){1&t&&(m.TgZ(0,"span",0),m.NdJ("click",function(){return e.select.emit(e.formattedLabel)}),m.TgZ(1,"span",1),m.NdJ("click",function(){return e.toggle.emit(e.formattedLabel)}),m.qZA(),m.TgZ(2,"span",2),m._uU(3),m.qZA(),m.qZA()),2&t&&(m.ekj("active",e.isActive),m.Q6J("title",e.formattedLabel),m.xp6(1),m.Udp("background-color",e.color),m.xp6(2),m.hij(" ",e.trimmedLabel," "))},encapsulation:2,changeDetection:0}),t}(),Ki=function(){var t=function(){function t(e){f(this,t),this.sanitizer=e,this.horizontal=!1}return p(t,[{key:"ngOnChanges",value:function(t){var e=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle("linear-gradient(to ".concat(this.horizontal?"right":"bottom",", ").concat(e,")"))}},{key:"gradientString",value:function(t,e){e.push(1);var n=[];return t.reverse().forEach(function(t,r){n.push("".concat(t," ").concat(Math.round(100*e[r]),"%"))}),n.join(", ")}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(ki.H7))},t.\u0275cmp=m.Xpm({type:t,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[m.TTD],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(t,e){1&t&&(m.TgZ(0,"div",0),m.TgZ(1,"div",1),m.TgZ(2,"span"),m._uU(3),m.qZA(),m.qZA(),m._UZ(4,"div",2),m.TgZ(5,"div",1),m.TgZ(6,"span"),m._uU(7),m.qZA(),m.qZA(),m.qZA()),2&t&&(m.Udp("height",e.horizontal?void 0:e.height,"px")("width",e.width,"px"),m.ekj("horizontal-legend",e.horizontal),m.xp6(3),m.Oqu(e.valueRange[1].toLocaleString()),m.xp6(1),m.Udp("background",e.gradient),m.xp6(3),m.Oqu(e.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{display:flex;flex-direction:column;text-align:center}.chart-legend .scale-legend-wrap{border-radius:5px;display:inline-block;flex:1;margin:0 auto;width:30px}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{height:30px;margin:0 16px;width:auto}"],encapsulation:2,changeDetection:0}),t}(),to=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[d.ez,Qi,Wi],d.ez,Qi,Wi]}),t}(),eo=[{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"]}],no=function(){function t(e,n,r,i){f(this,t),"string"==typeof e&&(e=eo.find(function(t){return t.name===e})),this.colorDomain=e.domain,this.scaleType=n,this.domain=r,this.customColors=i,this.scale=this.generateColorScheme(e,n,this.domain)}return p(t,[{key:"generateColorScheme",value:function(t,e,r){var i;if("string"==typeof t&&(t=eo.find(function(e){return e.name===t})),"quantile"===e)i=ui().range(t.domain).domain(r);else if("ordinal"===e)i=oi().range(t.domain).domain(r);else if("linear"===e){var o=n(t.domain);1===o.length&&(o.push(o[0]),this.colorDomain=o);var a=ri(0,1,1/o.length);i=ni().domain(a).range(o)}return i}},{key:"getColor",value:function(t){if(null==t)throw new Error("Value can not be null");if("linear"===this.scaleType){var e=ni().domain(this.domain).range([0,1]);return this.scale(e(t))}if("function"==typeof this.customColors)return this.customColors(t);var n,r=t.toString();return this.customColors&&this.customColors.length>0&&(n=this.customColors.find(function(t){return t.name.toLowerCase()===r.toLowerCase()})),n?n.value:this.scale(t)}},{key:"getLinearGradientStops",value:function(t,e){void 0===e&&(e=this.domain[0]);var n=ni().domain(this.domain).range([0,1]),r=ai().domain(this.colorDomain).range([0,1]),i=this.getColor(t),o=n(e),a=this.getColor(e),s=n(t),u=1,l=o,h=[];for(h.push({color:a,offset:o,originalOffset:o,opacity:1});l=(s-r.bandwidth()).toFixed(4))break;h.push({color:f,offset:d,opacity:1}),l=d,u++}}if(h[h.length-1].offset<100&&h.push({color:i,offset:s,opacity:1}),s===o)h[0].offset=0,h[1].offset=100;else if(100!==h[h.length-1].offset){var p,g=c(h);try{for(g.s();!(p=g.n()).done;){var v=p.value;v.offset=(v.offset-o)/(s-o)*100}}catch(m){g.e(m)}finally{g.f()}}return h}}]),t}(),ro=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to]]}),t}(),io=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to]]}),t}(),oo=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to]]}),t}(),ao=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to]]}),t}(),so=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to]]}),t}();Math;var uo=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to]]}),t}(),co=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to,uo,so]]}),t}(),lo=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to]]}),t}(),ho=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to]]}),t}(),fo=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to,uo,io]]}),t}(),po=function(){var t=function t(){f(this,t),"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[to,ro,io,oo,ao,so,co,lo,uo,ho,fo]}),t}(),go=Math.PI;function vo(t){return(1-Math.cos(go*t))/2}var mo=l(87570),yo=l(48318),_o=l(40878),wo=l(3530);function bo(t){return void 0===t}function xo(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e1&&void 0!==arguments[1]?arguments[1]:0;return{a:1,c:0,e:t,b:0,d:1,f:e}}"function"==typeof Symbol&&Symbol,Math,Math,Math,Math;var So=l(32975);function ko(t,e){var n;function r(){var r,i,o=n.length,a=0,s=0;for(r=0;r=(o=(g+m)/2))?g=o:m=o,(l=n>=(a=(v+y)/2))?v=a:y=a,i=d,!(d=d[h=l<<1|c]))return i[h]=p,t;if(s=+t._x.call(null,d.data),u=+t._y.call(null,d.data),e===s&&n===u)return p.next=d,i?i[h]=p:t._root=p,t;do{i=i?i[h]=new Array(4):t._root=new Array(4),(c=e>=(o=(g+m)/2))?g=o:m=o,(l=n>=(a=(v+y)/2))?v=a:y=a}while((h=l<<1|c)==(f=(u>=a)<<1|s>=o));return i[f]=d,i[h]=p,t}function Co(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function Zo(t){return t[0]}function Mo(t){return t[1]}function Oo(t,e,n){var r=new Lo(null==e?Zo:e,null==n?Mo:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Lo(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function Ro(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Uo=Oo.prototype=Lo.prototype;function Po(t){return t.x+t.vx}function Fo(t){return t.y+t.vy}function qo(t){var e,n,r=1,i=1;function o(){for(var t,o,s,u,c,l,h,f=e.length,d=0;du+d||ic+d||os.index){var p=u-a.x-a.vx,g=c-a.y-a.vy,v=p*p+g*g;vt.r&&(t.r=t[e].r)}function s(){if(e){var r,i,o=e.length;for(n=new Array(o),r=0;rl&&(l=r),ih&&(h=i));if(u>l||c>h)return this;for(this.cover(u,c).cover(l,h),n=0;nt||t>=i||r>e||e>=o;)switch(s=(ef||(o=u.y0)>d||(a=u.x1)=m)<<1|t>=v)&&(u=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=u)}else{var y=t-+this._x.call(null,g.data),_=e-+this._y.call(null,g.data),w=y*y+_*_;if(w=(s=(p+v)/2))?p=s:v=s,(l=a>=(u=(g+m)/2))?g=u:m=u,e=d,!(d=d[h=l<<1|c]))return this;if(!d.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(n=e,f=h)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[h]=i:delete e[h],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[f]=d:this._root=d),this):(this._root=i,this)},Uo.removeAll=function(t){for(var e=0,n=t.length;e1?(null==n?s.remove(t):s.set(t,d(n)),e):s.get(t)},find:function(e,n,r){var i,o,a,s,u,c=0,l=t.length;for(null==r?r=1/0:r*=r,c=0;c1?(c.on(t,n),e):c.on(t)}}}function ta(){var t,e,n,r,i=Io(-30),o=1,a=1/0,s=.81;function u(r){var i,o=t.length,a=Oo(t,Wo,Xo).visitAfter(l);for(n=r,i=0;i=a)){(t.data!==e||t.next)&&(0===l&&(d+=(l=Do())*l),0===h&&(d+=(h=Do())*h),d=0}),leaves:t.childNodeIds.map(function(t){return e.inputGraph.nodes.findIndex(function(e){return e.id===t})}).filter(function(t){return t>=0})}})),links:n(this.inputGraph.edges.map(function(t){var n=e.inputGraph.nodes.findIndex(function(e){return t.source===e.id}),r=e.inputGraph.nodes.findIndex(function(e){return t.target===e.id});if(-1!==n&&-1!==r)return Object.assign(Object.assign({},t),{source:n,target:r})}).filter(function(t){return!!t})),groupLinks:n(this.inputGraph.edges.map(function(t){var n=e.inputGraph.nodes.findIndex(function(e){return t.source===e.id}),r=e.inputGraph.nodes.findIndex(function(e){return t.target===e.id});if(!(n>=0&&r>=0))return t}).filter(function(t){return!!t}))},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",function(){e.settings.onTickListener&&e.settings.onTickListener(e.internalGraph),e.outputGraph$.next(e.internalGraphToOutputGraph(e.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()}},{key:"updateEdge",value:function(t,e){var n=Object.assign({},this.defaultSettings,this.settings);return n.force&&n.force.start(),this.outputGraph$.asObservable()}},{key:"internalGraphToOutputGraph",value:function(t){var e=this;return this.outputGraph.nodes=t.nodes.map(function(t){return Object.assign(Object.assign({},t),{id:t.id||La(),position:{x:t.x,y:t.y},dimension:{width:t.dimension&&t.dimension.width||20,height:t.dimension&&t.dimension.height||20},transform:"translate(".concat(t.x-(t.dimension&&t.dimension.width||20)/2||0,", ").concat(t.y-(t.dimension&&t.dimension.height||20)/2||0,")")})}),this.outputGraph.edges=t.links.map(function(e){var n=Pa(t.nodes,e.source),r=Pa(t.nodes,e.target);return Object.assign(Object.assign({},e),{source:n.id,target:r.id,points:[n.bounds.rayIntersection(r.bounds.cx(),r.bounds.cy()),r.bounds.rayIntersection(n.bounds.cx(),n.bounds.cy())]})}).concat(t.groupLinks.map(function(e){var n=t.nodes.find(function(t){return t.id===e.source}),r=t.nodes.find(function(t){return t.id===e.target}),i=n||t.groups.find(function(t){return t.id===e.source}),o=r||t.groups.find(function(t){return t.id===e.target});return Object.assign(Object.assign({},e),{source:i.id,target:o.id,points:[i.bounds.rayIntersection(o.bounds.cx(),o.bounds.cy()),o.bounds.rayIntersection(i.bounds.cx(),i.bounds.cy())]})})),this.outputGraph.clusters=t.groups.map(function(t,n){return Object.assign(Object.assign({},e.inputGraph.clusters[n]),{dimension:{width:t.bounds?t.bounds.width():20,height:t.bounds?t.bounds.height():20},position:{x:t.bounds?t.bounds.x+t.bounds.width()/2:0,y:t.bounds?t.bounds.y+t.bounds.height()/2:0}})}),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}},{key:"onDragStart",value:function(t,e){var n=this.outputGraph.nodes.findIndex(function(e){return e.id===t.id}),r=this.internalGraph.nodes[n];r&&(this.draggingStart={x:r.x-e.x,y:r.y-e.y},r.fixed=1,this.settings.force.start())}},{key:"onDrag",value:function(t,e){if(t){var n=this.outputGraph.nodes.findIndex(function(e){return e.id===t.id}),r=this.internalGraph.nodes[n];r&&(r.x=this.draggingStart.x+e.x,r.y=this.draggingStart.y+e.y)}}},{key:"onDragEnd",value:function(t,e){if(t){var n=this.outputGraph.nodes.findIndex(function(e){return e.id===t.id}),r=this.internalGraph.nodes[n];r&&(r.fixed=0)}}}]),t}()},qa=function(){var t=function(){function t(){f(this,t)}return p(t,[{key:"getLayout",value:function(t){if(Fa[t])return new Fa[t];throw new Error("Unknown layout type '".concat(t,"'"))}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=m.Yz7({token:t,factory:t.\u0275fac}),t}(),ja=function(t){return t.Both="both",t.Horizontal="horizontal",t.Vertical="vertical",t}({}),Ya=function(t){return t.UpperLeft="UpperLeft",t.UpperRight="UpperRight",t}({});function Ba(t,e,n){var r,i,o;n=n||{};var a=null,s=0;function u(){s=!1===n.leading?0:+new Date,a=null,o=t.apply(r,i)}return function(){var c=+new Date;s||!1!==n.leading||(s=c);var l=e-(c-s);return r=this,i=arguments,l<=0?(clearTimeout(a),a=null,s=c,o=t.apply(r,i)):a||!1===n.trailing||(a=setTimeout(u,l)),o}}var za=function(){var e=function(e){r(a,e);var i=o(a);function a(t,e,n,r){var o;return f(this,a),(o=i.call(this,t,e,n)).el=t,o.zone=e,o.cd=n,o.layoutService=r,o.legend=!1,o.nodes=[],o.clusters=[],o.links=[],o.activeEntries=[],o.draggingEnabled=!0,o.panningEnabled=!0,o.panningAxis=ja.Both,o.enableZoom=!0,o.zoomSpeed=.1,o.minZoomLevel=.1,o.maxZoomLevel=4,o.autoZoom=!1,o.panOnZoom=!0,o.animate=!1,o.autoCenter=!1,o.enableTrackpadSupport=!1,o.showMiniMap=!1,o.miniMapMaxWidth=100,o.miniMapPosition=Ya.UpperRight,o.activate=new m.vpe,o.deactivate=new m.vpe,o.zoomChange=new m.vpe,o.clickHandler=new m.vpe,o.isMouseMoveCalled=!1,o.graphSubscription=new mo.w,o.subscriptions=[],o.margin=[0,0,0,0],o.results=[],o.isPanning=!1,o.isDragging=!1,o.initialized=!1,o.graphDims={width:0,height:0},o._oldLinks=[],o.oldNodes=new Set,o.oldClusters=new Set,o.transformationMatrix={a:1,c:0,e:0,b:0,d:1,f:0},o._touchLastX=null,o._touchLastY=null,o.minimapScaleCoefficient=3,o.minimapOffsetX=0,o.minimapOffsetY=0,o.isMinimapPanning=!1,o.groupResultsBy=function(t){return t.label},o}return p(a,[{key:"zoomLevel",get:function(){return this.transformationMatrix.a},set:function(t){this.zoomTo(Number(t))}},{key:"panOffsetX",get:function(){return this.transformationMatrix.e},set:function(t){this.panTo(Number(t),null)}},{key:"panOffsetY",get:function(){return this.transformationMatrix.f},set:function(t){this.panTo(null,Number(t))}},{key:"ngOnInit",value:function(){var t=this;this.update$&&this.subscriptions.push(this.update$.subscribe(function(){t.update()})),this.center$&&this.subscriptions.push(this.center$.subscribe(function(){t.center()})),this.zoomToFit$&&this.subscriptions.push(this.zoomToFit$.subscribe(function(){t.zoomToFit()})),this.panToNode$&&this.subscriptions.push(this.panToNode$.subscribe(function(e){t.panToNodeId(e)})),this.minimapClipPathId="minimapClip".concat(La())}},{key:"ngOnChanges",value:function(t){var e=t.layoutSettings;this.setLayout(this.layout),e&&this.setLayoutSettings(this.layoutSettings),this.update()}},{key:"setLayout",value:function(t){this.initialized=!1,t||(t="dagre"),"string"==typeof t&&(this.layout=this.layoutService.getLayout(t),this.setLayoutSettings(this.layoutSettings))}},{key:"setLayoutSettings",value:function(t){this.layout&&"string"!=typeof this.layout&&(this.layout.settings=t)}},{key:"ngOnDestroy",value:function(){t(s(a.prototype),"ngOnDestroy",this).call(this);var e,n=c(this.subscriptions);try{for(n.s();!(e=n.n()).done;){e.value.unsubscribe()}}catch(r){n.e(r)}finally{n.f()}this.subscriptions=null}},{key:"ngAfterViewInit",value:function(){var e=this;t(s(a.prototype),"ngAfterViewInit",this).call(this),setTimeout(function(){return e.update()})}},{key:"update",value:function(){var e=this;t(s(a.prototype),"update",this).call(this),this.curve||(this.curve=je.beta(1)),this.zone.run(function(){e.dims=function(t){var e=t.width,n=t.height,r=t.margins,i=t.showXAxis,o=void 0!==i&&i,a=t.showYAxis,s=void 0!==a&&a,u=t.xAxisHeight,c=void 0===u?0:u,l=t.yAxisWidth,h=void 0===l?0:l,f=t.showXLabel,d=void 0!==f&&f,p=t.showYLabel,g=void 0!==p&&p,v=t.showLegend,m=void 0!==v&&v,y=t.legendType,_=void 0===y?"ordinal":y,w=t.legendPosition,b=void 0===w?"right":w,x=t.columns,E=void 0===x?12:x,T=r[3],A=e,S=n-r[0]-r[2];if(m&&"right"===b&&(E-="ordinal"===_?2:1),A=(A=A*E/12)-r[1]-r[3],o&&(S-=5,S-=c,d)&&(S-=30),s&&(A-=5,A-=h,T+=h,T+=10,g)){A-=30,T+=30}return A=Math.max(0,A),S=Math.max(0,S),{width:Math.floor(A),height:Math.floor(S),xOffset:Math.floor(T)}}({width:e.width,height:e.height,margins:e.margin,showLegend:e.legend}),e.seriesDomain=e.getSeriesDomain(),e.setColors(),e.legendOptions=e.getLegendOptions(),e.createGraph(),e.updateTransform(),e.initialized=!0})}},{key:"createGraph",value:function(){var t=this;this.graphSubscription.unsubscribe(),this.graphSubscription=new mo.w;var e=function(e){return e.meta||(e.meta={}),e.id||(e.id=La()),e.dimension?e.meta.forceDimensions=void 0===e.meta.forceDimensions||e.meta.forceDimensions:(e.dimension={width:t.nodeWidth?t.nodeWidth:30,height:t.nodeHeight?t.nodeHeight:30},e.meta.forceDimensions=!1),e.position={x:0,y:0},e.data=e.data?e.data:{},e};this.graph={nodes:this.nodes.length>0?n(this.nodes).map(e):[],clusters:this.clusters&&this.clusters.length>0?n(this.clusters).map(e):[],edges:this.links.length>0?n(this.links).map(function(t){return t.id||(t.id=La()),t}):[]},requestAnimationFrame(function(){return t.draw()})}},{key:"draw",value:function(){var t=this;if(this.layout&&"string"!=typeof this.layout){this.applyNodeDimensions();var e=this.layout.run(this.graph),n=e instanceof yo.y?e:(0,_o.of)(e);this.graphSubscription.add(n.subscribe(function(e){t.graph=e,t.tick()})),0!==this.graph.nodes.length&&n.pipe((0,wo.P)()).subscribe(function(){return t.applyNodeDimensions()})}}},{key:"tick",value:function(){var t=this,e=new Set;this.graph.nodes.map(function(n){n.transform="translate(".concat(n.position.x-n.dimension.width/2||0,", ").concat(n.position.y-n.dimension.height/2||0,")"),n.data||(n.data={}),n.data.color=t.colors.getColor(t.groupResultsBy(n)),e.add(n.id)});var n=new Set;(this.graph.clusters||[]).map(function(e){e.transform="translate(".concat(e.position.x-e.dimension.width/2||0,", ").concat(e.position.y-e.dimension.height/2||0,")"),e.data||(e.data={}),e.data.color=t.colors.getColor(t.groupResultsBy(e)),n.add(e.id)}),setTimeout(function(){t.oldNodes=e,t.oldClusters=n},500);var r=[],i=function(e){var n=t.graph.edgeLabels[e],i=e.replace(/[^\w-]*/g,""),o=t.layout&&"string"!=typeof t.layout&&t.layout.settings&&t.layout.settings.multigraph,a=t._oldLinks.find(o?function(t){return"".concat(t.source).concat(t.target).concat(t.id)===i}:function(t){return"".concat(t.source).concat(t.target)===i}),s=t.graph.edges.find(o?function(t){return"".concat(t.source).concat(t.target).concat(t.id)===i}:function(t){return"".concat(t.source).concat(t.target)===i});a?a.data&&s&&s.data&&JSON.stringify(a.data)!==JSON.stringify(s.data)&&(a.data=s.data):a=s||n,a.oldLine=a.line;var u=n.points,c=t.generateLine(u),l=Object.assign({},a);l.line=c,l.points=u,t.updateMidpointOnEdge(l,u);var h=u[Math.floor(u.length/2)];h&&(l.textTransform="translate(".concat(h.x||0,",").concat(h.y||0,")")),l.textAngle=0,l.oldLine||(l.oldLine=l.line),t.calcDominantBaseline(l),r.push(l)};for(var o in this.graph.edgeLabels)i(o);this.graph.edges=r,this.graph.edges&&(this._oldLinks=this.graph.edges.map(function(t){var e=Object.assign({},t);return e.oldLine=t.line,e})),this.updateMinimap(),this.autoZoom&&this.zoomToFit(),this.autoCenter&&this.center(),requestAnimationFrame(function(){return t.redrawLines()}),this.cd.markForCheck()}},{key:"getMinimapTransform",value:function(){switch(this.miniMapPosition){case Ya.UpperLeft:return"";case Ya.UpperRight:return"translate("+(this.dims.width-this.graphDims.width/this.minimapScaleCoefficient)+",0)";default:return""}}},{key:"updateGraphDims",value:function(){for(var t=1/0,e=-1/0,n=1/0,r=-1/0,i=0;ie?o.position.x+o.dimension.width:e,r=o.position.y+o.dimension.height>r?o.position.y+o.dimension.height:r}t-=100,n-=100,e+=100,r+=100,this.graphDims.width=e-t,this.graphDims.height=r-n,this.minimapOffsetX=t,this.minimapOffsetY=n}},{key:"updateMinimap",value:function(){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())}},{key:"applyNodeDimensions",value:function(){var t=this;this.nodeElements&&this.nodeElements.length&&this.nodeElements.map(function(e){var n=e.nativeElement,r=t.graph.nodes.find(function(t){return t.id===n.id});if(r){var i;try{if(!(i=n.getBBox()).width||!i.height)return}catch(l){return}if(r.dimension.height=t.nodeHeight?r.dimension.height&&r.meta.forceDimensions?r.dimension.height:t.nodeHeight:r.dimension.height&&r.meta.forceDimensions?r.dimension.height:i.height,t.nodeMaxHeight&&(r.dimension.height=Math.max(r.dimension.height,t.nodeMaxHeight)),t.nodeMinHeight&&(r.dimension.height=Math.min(r.dimension.height,t.nodeMinHeight)),t.nodeWidth)r.dimension.width=r.dimension.width&&r.meta.forceDimensions?r.dimension.width:t.nodeWidth;else if(n.getElementsByTagName("text").length){var o;try{var a,s=c(n.getElementsByTagName("text"));try{for(s.s();!(a=s.n()).done;){var u=a.value.getBBox();o?(u.width>o.width&&(o.width=u.width),u.height>o.height&&(o.height=u.height)):o=u}}catch(h){s.e(h)}finally{s.f()}}catch(l){return}r.dimension.width=r.dimension.width&&r.meta.forceDimensions?r.dimension.width:o.width+20}else r.dimension.width=r.dimension.width&&r.meta.forceDimensions?r.dimension.width:i.width;t.nodeMaxWidth&&(r.dimension.width=Math.max(r.dimension.width,t.nodeMaxWidth)),t.nodeMinWidth&&(r.dimension.width=Math.min(r.dimension.width,t.nodeMinWidth))}})}},{key:"redrawLines",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.animate;this.linkElements.map(function(n){var r=t.graph.edges.find(function(t){return t.id===n.nativeElement.id});r&&((0,He.Z)(n.nativeElement).select(".line").attr("d",r.oldLine).transition().ease(vo).duration(e?500:0).attr("d",r.line),(0,He.Z)(t.chartElement.nativeElement).select("#".concat(r.id)).attr("d",r.oldTextPath).transition().ease(vo).duration(e?500:0).attr("d",r.textPath),t.updateMidpointOnEdge(r,r.points))})}},{key:"calcDominantBaseline",value:function(t){var e=t.points[0],r=t.points[t.points.length-1];t.oldTextPath=t.textPath,r.x=this.maxZoomLevel)&&this.enableZoom)if(!0===this.panOnZoom&&t){var i=t.clientX,o=t.clientY,a=this.chart.nativeElement.querySelector("svg"),s=a.querySelector("g.chart"),u=a.createSVGPoint();u.x=i,u.y=o;var c=u.matrixTransform(s.getScreenCTM().inverse());this.pan(c.x,c.y,!0),this.zoom(n),this.pan(-c.x,-c.y,!0)}else this.zoom(n)}else this.pan(-1*t.deltaX,-1*t.deltaY)}},{key:"pan",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n?1:this.zoomLevel;this.transformationMatrix=To(this.transformationMatrix,Ao(t/r,e/r)),this.updateTransform()}},{key:"panTo",value:function(t,e){null==t||isNaN(t)||null==e||isNaN(e)||(this.transformationMatrix=To(this.transformationMatrix,Ao((-this.panOffsetX-t*this.zoomLevel+this.dims.width/2)/this.zoomLevel,(-this.panOffsetY-e*this.zoomLevel+this.dims.height/2)/this.zoomLevel)),this.updateTransform())}},{key:"zoom",value:function(t){this.transformationMatrix=To(this.transformationMatrix,function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return bo(e)&&(e=t),{a:t,c:0,e:0,b:0,d:e,f:0}}(t,t)),this.zoomChange.emit(this.zoomLevel),this.updateTransform()}},{key:"zoomTo",value:function(t){this.transformationMatrix.a=isNaN(t)?this.transformationMatrix.a:Number(t),this.transformationMatrix.d=isNaN(t)?this.transformationMatrix.d:Number(t),this.zoomChange.emit(this.zoomLevel),this.updateTransform(),this.update()}},{key:"onDrag",value:function(t){var e=this;if(this.draggingEnabled){var n=this.draggingNode;this.layout&&"string"!=typeof this.layout&&this.layout.onDrag&&this.layout.onDrag(n,t),n.position.x+=t.movementX/this.zoomLevel,n.position.y+=t.movementY/this.zoomLevel,n.transform="translate(".concat(n.position.x-n.dimension.width/2,", ").concat(n.position.y-n.dimension.height/2,")");var r,i=c(this.graph.edges);try{var o=function(){var t=r.value;if((t.target===n.id||t.source===n.id||t.target.id===n.id||t.source.id===n.id)&&e.layout&&"string"!=typeof e.layout){var i=e.layout.updateEdge(e.graph,t),o=i instanceof yo.y?i:(0,_o.of)(i);e.graphSubscription.add(o.subscribe(function(n){e.graph=n,e.redrawEdge(t)}))}};for(i.s();!(r=i.n()).done;)o()}catch(a){i.e(a)}finally{i.f()}this.redrawLines(!1),this.updateMinimap()}}},{key:"redrawEdge",value:function(t){var e=this.generateLine(t.points);this.calcDominantBaseline(t),t.oldLine=t.line,t.line=e}},{key:"updateTransform",value:function(){var t;this.transform="matrix("+(t=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e10;return{a:Math.round(t.a*e)/e,b:Math.round(t.b*e)/e,c:Math.round(t.c*e)/e,d:Math.round(t.d*e)/e,e:Math.round(t.e*e)/e,f:Math.round(t.f*e)/e}}(this.transformationMatrix,100)).a+","+t.b+","+t.c+","+t.d+","+t.e+","+t.f+")"}},{key:"onClick",value:function(t){this.select.emit(t)}},{key:"onActivate",value:function(t){this.activeEntries.indexOf(t)>-1||(this.activeEntries=[t].concat(n(this.activeEntries)),this.activate.emit({value:t,entries:this.activeEntries}))}},{key:"onDeactivate",value:function(t){var e=this.activeEntries.indexOf(t);this.activeEntries.splice(e,1),this.activeEntries=n(this.activeEntries),this.deactivate.emit({value:t,entries:this.activeEntries})}},{key:"getSeriesDomain",value:function(){var t=this;return this.nodes.map(function(e){return t.groupResultsBy(e)}).reduce(function(t,e){return-1!==t.indexOf(e)?t:t.concat([e])},[]).sort()}},{key:"trackLinkBy",value:function(t,e){return e.id}},{key:"trackNodeBy",value:function(t,e){return e.id}},{key:"setColors",value:function(){this.colors=new no(this.scheme,"ordinal",this.seriesDomain,this.customColors)}},{key:"getLegendOptions",value:function(){return{scaleType:"ordinal",domain:this.seriesDomain,colors:this.colors}}},{key:"onMouseMove",value:function(t){this.isMouseMoveCalled=!0,(this.isPanning||this.isMinimapPanning)&&this.panningEnabled?this.panWithConstraints(this.panningAxis,t):this.isDragging&&this.draggingEnabled&&this.onDrag(t)}},{key:"onMouseDown",value:function(t){this.isMouseMoveCalled=!1}},{key:"graphClick",value:function(t){this.isMouseMoveCalled||this.clickHandler.emit(t)}},{key:"onTouchStart",value:function(t){this._touchLastX=t.changedTouches[0].clientX,this._touchLastY=t.changedTouches[0].clientY,this.isPanning=!0}},{key:"onTouchMove",value:function(t){if(this.isPanning&&this.panningEnabled){var e=t.changedTouches[0].clientX,n=t.changedTouches[0].clientY,r=e-this._touchLastX,i=n-this._touchLastY;this._touchLastX=e,this._touchLastY=n,this.pan(r,i)}}},{key:"onTouchEnd",value:function(t){this.isPanning=!1}},{key:"onMouseUp",value:function(t){this.isDragging=!1,this.isPanning=!1,this.isMinimapPanning=!1,this.layout&&"string"!=typeof this.layout&&this.layout.onDragEnd&&this.layout.onDragEnd(this.draggingNode,t)}},{key:"onNodeMouseDown",value:function(t,e){this.draggingEnabled&&(this.isDragging=!0,this.draggingNode=e,this.layout&&"string"!=typeof this.layout&&this.layout.onDragStart&&this.layout.onDragStart(e,t))}},{key:"onMinimapDragMouseDown",value:function(){this.isMinimapPanning=!0}},{key:"onMinimapPanTo",value:function(t){this.panTo((t.offsetX-(this.dims.width-(this.graphDims.width+this.minimapOffsetX)/this.minimapScaleCoefficient))*this.minimapScaleCoefficient,(t.offsetY+this.minimapOffsetY/this.minimapScaleCoefficient)*this.minimapScaleCoefficient),this.isMinimapPanning=!0}},{key:"center",value:function(){this.panTo(this.graphDims.width/2,this.graphDims.height/2)}},{key:"zoomToFit",value:function(){var t=Math.min(this.dims.height/this.graphDims.height,this.dims.width/this.graphDims.width,1);tthis.maxZoomLevel&&(t=this.maxZoomLevel),t!==this.zoomLevel&&(this.zoomLevel=t,this.updateTransform(),this.zoomChange.emit(this.zoomLevel))}},{key:"panToNodeId",value:function(t){var e=this.graph.nodes.find(function(e){return e.id===t});e&&this.panTo(e.position.x,e.position.y)}},{key:"panWithConstraints",value:function(t,e){var n=e.movementX,r=e.movementY;switch(this.isMinimapPanning&&(n=-this.minimapScaleCoefficient*n*this.zoomLevel,r=-this.minimapScaleCoefficient*r*this.zoomLevel),t){case ja.Horizontal:this.pan(n,0);break;case ja.Vertical:this.pan(0,r);break;default:this.pan(n,r)}}},{key:"updateMidpointOnEdge",value:function(t,e){if(t&&e)if(e.length%2==1)t.midPoint=e[Math.floor(e.length/2)];else{var n=e[e.length/2],r=e[e.length/2-1];t.midPoint={x:(n.x+r.x)/2,y:(n.y+r.y)/2}}}}]),a}(Hi);return e.\u0275fac=function(t){return new(t||e)(m.Y36(m.SBq),m.Y36(m.R0b),m.Y36(m.sBO),m.Y36(qa))},e.\u0275cmp=m.Xpm({type:e,selectors:[["ngx-graph"]],contentQueries:function(t,e,n){var r;(1&t&&(m.Suo(n,sa,5),m.Suo(n,ua,5),m.Suo(n,ca,5),m.Suo(n,la,5),m.Suo(n,ha,5)),2&t)&&(m.iGM(r=m.CRH())&&(e.linkTemplate=r.first),m.iGM(r=m.CRH())&&(e.nodeTemplate=r.first),m.iGM(r=m.CRH())&&(e.clusterTemplate=r.first),m.iGM(r=m.CRH())&&(e.defsTemplate=r.first),m.iGM(r=m.CRH())&&(e.miniMapNodeTemplate=r.first))},viewQuery:function(t,e){var n;(1&t&&(m.Gf(Ji,7,m.SBq),m.Gf(fa,5),m.Gf(da,5)),2&t)&&(m.iGM(n=m.CRH())&&(e.chart=n.first),m.iGM(n=m.CRH())&&(e.nodeElements=n),m.iGM(n=m.CRH())&&(e.linkElements=n))},hostBindings:function(t,e){1&t&&m.NdJ("mousemove",function(t){return e.onMouseMove(t)},!1,m.evT)("mousedown",function(t){return e.onMouseDown(t)},!1,m.evT)("click",function(t){return e.graphClick(t)},!1,m.evT)("touchmove",function(t){return e.onTouchMove(t)},!1,m.evT)("mouseup",function(t){return e.onMouseUp(t)},!1,m.evT)},inputs:{legend:"legend",nodes:"nodes",clusters:"clusters",links:"links",activeEntries:"activeEntries",draggingEnabled:"draggingEnabled",panningEnabled:"panningEnabled",panningAxis:"panningAxis",enableZoom:"enableZoom",zoomSpeed:"zoomSpeed",minZoomLevel:"minZoomLevel",maxZoomLevel:"maxZoomLevel",autoZoom:"autoZoom",panOnZoom:"panOnZoom",animate:"animate",autoCenter:"autoCenter",enableTrackpadSupport:"enableTrackpadSupport",showMiniMap:"showMiniMap",miniMapMaxWidth:"miniMapMaxWidth",miniMapPosition:"miniMapPosition",groupResultsBy:"groupResultsBy",zoomLevel:"zoomLevel",panOffsetX:"panOffsetX",panOffsetY:"panOffsetY",layout:"layout",curve:"curve",nodeHeight:"nodeHeight",nodeMaxHeight:"nodeMaxHeight",nodeMinHeight:"nodeMinHeight",nodeWidth:"nodeWidth",nodeMinWidth:"nodeMinWidth",nodeMaxWidth:"nodeMaxWidth",update$:"update$",center$:"center$",zoomToFit$:"zoomToFit$",panToNode$:"panToNode$",layoutSettings:"layoutSettings",miniMapMaxHeight:"miniMapMaxHeight"},outputs:{activate:"activate",deactivate:"deactivate",zoomChange:"zoomChange",clickHandler:"clickHandler"},features:[m.qOj,m.TTD],ngContentSelectors:Ma,decls:5,vars:11,consts:[["mouseWheel","",3,"view","showLegend","legendOptions","legendLabelClick","legendLabelActivate","legendLabelDeactivate","mouseWheelUp","mouseWheelDown"],["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(t,e){1&t&&(m.F$t(),m.TgZ(0,"ngx-charts-chart",0),m.NdJ("legendLabelClick",function(t){return e.onClick(t)})("legendLabelActivate",function(t){return e.onActivate(t)})("legendLabelDeactivate",function(t){return e.onDeactivate(t)})("mouseWheelUp",function(t){return e.onZoom(t,"in")})("mouseWheelDown",function(t){return e.onZoom(t,"out")}),m.YNc(1,Sa,12,12,"g",1),m.O4$(),m.TgZ(2,"clipPath"),m._UZ(3,"rect"),m.qZA(),m.YNc(4,Ca,6,15,"g",2),m.qZA()),2&t&&(m.Q6J("view",m.WLB(8,Za,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions),m.xp6(1),m.Q6J("ngIf",e.initialized&&e.graph),m.xp6(1),m.uIk("id",e.minimapClipPathId),m.xp6(1),m.uIk("width",e.graphDims.width/e.minimapScaleCoefficient)("height",e.graphDims.height/e.minimapScaleCoefficient),m.xp6(1),m.Q6J("ngIf",e.showMiniMap))},directives:function(){return[Ji,Ga,d.O5,d.sg,d.tP]},styles:[".minimap .minimap-background{fill:rgba(0,0,0,.1)}.minimap .minimap-drag{cursor:pointer;fill:rgba(0,0,0,.2);stroke:#fff;stroke-dasharray:2px;stroke-dashoffset:2px;stroke-width:1px}.minimap .minimap-drag.panning{fill:rgba(0,0,0,.3)}.minimap .minimap-nodes{opacity:.5;pointer-events:none}.graph{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;user-select:none}.graph .edge{fill:none;stroke:#666}.graph .edge .edge-label{fill:#251e1e;font-size:12px;stroke:none}.graph .panning-rect{cursor:move;fill:transparent}.graph .node-group.old-node{transition:transform .5s ease-in-out}.graph .node-group .node:focus{outline:none}.graph .cluster rect{opacity:.2}"],encapsulation:2,changeDetection:0}),Be([function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:Ba(n.value,500,void 0)}),this[e]}}},ze("design:type",Function),ze("design:paramtypes",[]),ze("design:returntype",void 0)],e.prototype,"updateMinimap",null),e}(),Ga=function(){var t=function(){function t(){f(this,t),this.mouseWheelUp=new m.vpe,this.mouseWheelDown=new m.vpe}return p(t,[{key:"onMouseWheelChrome",value:function(t){this.mouseWheelFunc(t)}},{key:"onMouseWheelFirefox",value:function(t){this.mouseWheelFunc(t)}},{key:"onWheel",value:function(t){this.mouseWheelFunc(t)}},{key:"onMouseWheelIE",value:function(t){this.mouseWheelFunc(t)}},{key:"mouseWheelFunc",value:function(t){window.event&&(t=window.event);var e=Math.max(-1,Math.min(1,t.wheelDelta||-t.detail||t.deltaY||t.deltaX)),n=t.wheelDelta?e<0:e>0;(t.wheelDelta?e>0:e<0)?this.mouseWheelUp.emit(t):n&&this.mouseWheelDown.emit(t),t.returnValue=!1,t.preventDefault&&t.preventDefault()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=m.lG2({type:t,selectors:[["","mouseWheel",""]],hostBindings:function(t,e){1&t&&m.NdJ("mousewheel",function(t){return e.onMouseWheelChrome(t)})("DOMMouseScroll",function(t){return e.onMouseWheelFirefox(t)})("wheel",function(t){return e.onWheel(t)})("onmousewheel",function(t){return e.onMouseWheelIE(t)})},outputs:{mouseWheelUp:"mouseWheelUp",mouseWheelDown:"mouseWheelDown"}}),t}(),Ja=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({providers:[qa],imports:[[to]]}),t}(),Va=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[po],Ja]}),t}();function Ha(){}function Qa(t){return null==t?Ha:function(){return this.querySelector(t)}}function Wa(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Xa(){return[]}function $a(t){return null==t?Xa:function(){return this.querySelectorAll(t)}}function Ka(t){return function(){return this.matches(t)}}function ts(t){return function(e){return e.matches(t)}}var es=Array.prototype.find;function ns(){return this.firstElementChild}var rs=Array.prototype.filter;function is(){return this.children}function os(t){return new Array(t.length)}function as(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function ss(t){return function(){return t}}function us(t,e,n,r,i,o){for(var a,s=0,u=e.length,c=o.length;se?1:t>=e?0:NaN}as.prototype={constructor:as,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var fs="http://www.w3.org/1999/xhtml",ds={svg:"http://www.w3.org/2000/svg",xhtml:fs,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ps(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),ds.hasOwnProperty(e)?{space:ds[e],local:t}:t}function gs(t){return function(){this.removeAttribute(t)}}function vs(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ms(t,e){return function(){this.setAttribute(t,e)}}function ys(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function _s(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function ws(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function bs(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function xs(t){return function(){this.style.removeProperty(t)}}function Es(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Ts(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function As(t,e){return t.style.getPropertyValue(e)||bs(t).getComputedStyle(t,null).getPropertyValue(e)}function Ss(t){return function(){delete this[t]}}function ks(t,e){return function(){this[t]=e}}function Is(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Ds(t){return t.trim().split(/^|\s+/)}function Ns(t){return t.classList||new Cs(t)}function Cs(t){this._node=t,this._names=Ds(t.getAttribute("class")||"")}function Zs(t,e){for(var n=Ns(t),r=-1,i=e.length;++r=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}function Ks(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var iu=[null];function ou(t,e){this._groups=t,this._parents=e}function au(){return new ou([[document.documentElement]],iu)}ou.prototype=au.prototype=e({constructor:ou,select:function(t){"function"!=typeof t&&(t=Qa(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i=b&&(b=w+1);!(_=v[b])&&++b=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=hs);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==e?xs:"function"==typeof e?Ts:Es)(t,e,null==n?"":n)):As(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Ss:"function"==typeof e?Is:ks)(t,e)):this.node()[t]},classed:function(t,e){var n=Ds(t+"");if(arguments.length<2){for(var r=Ns(this.node()),i=-1,o=n.length;++i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?ku(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?ku(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=vu.exec(t))?new Nu(e[1],e[2],e[3],1):(e=mu.exec(t))?new Nu(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=yu.exec(t))?ku(e[1],e[2],e[3],e[4]):(e=_u.exec(t))?ku(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=wu.exec(t))?Ou(e[1],e[2]/100,e[3]/100,1):(e=bu.exec(t))?Ou(e[1],e[2]/100,e[3]/100,e[4]):xu.hasOwnProperty(t)?Su(xu[t]):"transparent"===t?new Nu(NaN,NaN,NaN,0):null}function Su(t){return new Nu(t>>16&255,t>>8&255,255&t,1)}function ku(t,e,n,r){return r<=0&&(t=e=n=NaN),new Nu(t,e,n,r)}function Iu(t){return t instanceof lu||(t=Au(t)),t?new Nu((t=t.rgb()).r,t.g,t.b,t.opacity):new Nu}function Du(t,e,n,r){return 1===arguments.length?Iu(t):new Nu(t,e,n,null==r?1:r)}function Nu(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Cu(){return"#"+Mu(this.r)+Mu(this.g)+Mu(this.b)}function Zu(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function Mu(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Ou(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Ru(t,e,n,r)}function Lu(t){if(t instanceof Ru)return new Ru(t.h,t.s,t.l,t.opacity);if(t instanceof lu||(t=Au(t)),!t)return new Ru;if(t instanceof Ru)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n0&&u<1?0:a,new Ru(a,s,u,t.opacity)}function Ru(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Uu(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Pu(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}uu(lu,Au,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Eu,formatHex:Eu,formatHsl:function(){return Lu(this).formatHsl()},formatRgb:Tu,toString:Tu}),uu(Nu,Du,cu(lu,{brighter:function(t){return t=null==t?hu:Math.pow(hu,t),new Nu(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Nu(this.r*t,this.g*t,this.b*t,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:Cu,formatHex:Cu,formatRgb:Zu,toString:Zu})),uu(Ru,function(t,e,n,r){return 1===arguments.length?Lu(t):new Ru(t,e,n,null==r?1:r)},cu(lu,{brighter:function(t){return t=null==t?hu:Math.pow(hu,t),new Ru(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Ru(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Nu(Uu(t>=240?t-240:t+120,i,r),Uu(t,i,r),Uu(t<120?t+240:t-120,i,r),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 t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Fu=function(t){return function(){return t}};function qu(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Fu(isNaN(t)?e:t)}var ju=function t(e){var n=function(t){return 1==(t=+t)?qu:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Fu(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=Du(t)).r,(e=Du(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=qu(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function Yu(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1];return Pu((n-r/e)*e,r>0?t[r-1]:2*i-o,i,o,ro&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:Bu(n,r)})),o=Gu.lastIndex;return o0)throw new Error("too late; already scheduled");return n}function $u(t,e){var n=Ku(t,e);if(n.state>3)throw new Error("too late; already running");return n}function Ku(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var tc,ec=180/Math.PI,nc={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function rc(t,e,n,r,i,o){var a,s,u;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),t*r180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Bu(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,s,u),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Bu(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,s,u),function(t,e,n,r,o,a){if(t!==n||e!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:Bu(t,n)},{i:s-2,x:Bu(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,u),o=a=null,function(t){for(var e,n=-1,r=u.length;++n=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?Xu:$u;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var kc=su.prototype.constructor;function Ic(t){return function(){this.style.removeProperty(t)}}function Dc(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Nc(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&Dc(t,o,n)),r}return o._value=e,o}function Cc(t){return function(e){this.textContent=t.call(this,e)}}function Zc(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Cc(r)),e}return r._value=t,r}var Mc=0;function Oc(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Lc(){return++Mc}var Rc=su.prototype;Oc.prototype=(function(t){return su().transition(t)}).prototype=e({constructor:Oc,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Qa(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}}(this,t)})},su.prototype.transition=function(t){var e,n;t instanceof Oc?(e=t._id,t=t._name):(e=Lc(),(n=Uc).time=(0,Qo.zO)(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}zc.prototype,zc.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};var Gc,Jc=Array.prototype.map;function Vc(t,e,n,r,i){for(var o,a=t.children,s=-1,u=a.length,c=t.value&&(r-e)/t.value;++s=0;)e+=n[r].value;else e=1;t.value=e}function Wc(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=$c)):void 0===e&&(e=Xc);for(var n,r,i,o,a,s=new el(t),u=[s];n=u.pop();)if((i=e(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)u.push(r=i[o]=new el(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(tl)}function Xc(t){return t.children}function $c(t){return Array.isArray(t)?t[1]:null}function Kc(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function tl(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function el(t){this.data=t,this.depth=this.height=0,this.parent=null}void 0===(Gc={thousands:",",grouping:[3],currency:["$",""]}).grouping||void 0===Gc.thousands||Jc.call(Gc.grouping,Number),void 0===Gc.numerals||Jc.call(Gc.numerals,String),function t(e){function n(t,n,r,i,o){!function(t,e,n,r,i,o){for(var a,s,u,c,l,h,f,d,p,g,v,m=[],y=e.children,_=0,w=0,b=y.length,x=e.value;_f&&(f=s),v=l*l*g,(d=Math.max(f/v,v/h))>p){l-=s;break}p=d}m.push(a={value:l,dice:u1?e:1)},n}((1+Math.sqrt(5))/2),el.prototype=Wc.prototype=e({constructor:el,count:function(){return this.eachAfter(Qc)},each:function(t,e){var n,r=-1,i=c(this);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.call(e,o,++r,this)}}catch(a){i.e(a)}finally{i.f()}return this},eachAfter:function(t,e){for(var n,r,i,o=this,a=[o],s=[],u=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r=0;--r)o.push(n[r]);return this},find:function(t,e){var n,r=-1,i=c(this);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(t.call(e,o,++r,this))return o}}catch(a){i.e(a)}finally{i.f()}},sum:function(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)r.push(e=e.parent);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e},copy:function(){return Wc(this).eachBefore(Kc)}},Symbol.iterator,regeneratorRuntime.mark(function t(){var e,n,r,i,o,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:a=[o=this];case 1:e=a.reverse(),a=[];case 2:if(!(o=e.pop())){t.next=9;break}return t.next=5,o;case 5:if(!(n=o.children)){t.next=7;break}for(r=0,i=n.length;r0?t.hostView.rootNodes[0]:t.location.nativeElement}},{key:"getRootViewContainerNode",value:function(t){return this.getComponentRootNode(t)}},{key:"projectComponentBindings",value:function(t,e){if(e){if(void 0!==e.inputs){var n,r=c(Object.getOwnPropertyNames(e.inputs));try{for(r.s();!(n=r.n()).done;){var i=n.value;t.instance[i]=e.inputs[i]}}catch(u){r.e(u)}finally{r.f()}}if(void 0!==e.outputs){var o,a=c(Object.getOwnPropertyNames(e.outputs));try{for(a.s();!(o=a.n()).done;){var s=o.value;t.instance[s]=e.outputs[s]}}catch(u){a.e(u)}finally{a.f()}}}return t}},{key:"appendComponent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;n||(n=this.getRootViewContainer());var r=this.getComponentRootNode(n),i=new Je.F0(r,this.componentFactoryResolver,this.applicationRef,this.injector),o=new Je.C5(t),a=i.attach(o);return this.projectComponentBindings(a,e),a}}],[{key:"setGlobalRootViewContainer",value:function(e){t.globalRootViewContainer=e}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.LFG(m.z2F),m.LFG(m._Vd),m.LFG(m.zs3))},t.\u0275prov=m.Yz7({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t}();function ul(t,e,n){var r,i,o;n=n||{};var a=null,s=0;function u(){s=!1===n.leading?0:+new Date,a=null,o=t.apply(r,i)}return function(){var c=+new Date;s||!1!==n.leading||(s=c);var l=e-(c-s);return r=this,i=arguments,l<=0?(clearTimeout(a),a=null,s=c,o=t.apply(r,i)):a||!1===n.trailing||(a=setTimeout(u,l)),o}}var cl=function(t){return t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right",t}({});function ll(t,e,n){return"top"===n?t.top-7:"bottom"===n?t.top+t.height-e.height+7:"center"===n?t.top+t.height/2-e.height/2:void 0}function hl(t,e,n){return"left"===n?t.left-7:"right"===n?t.left+t.width-e.width+7:"center"===n?t.left+t.width/2-e.width/2:void 0}var fl,dl,pl,gl,vl=function(){function t(){f(this,t)}return p(t,null,[{key:"calculateVerticalAlignment",value:function(t,e,n){var r=ll(t,e,n);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r}},{key:"calculateVerticalCaret",value:function(t,e,n,r){var i;"top"===r&&(i=t.height/2-n.height/2+7),"bottom"===r&&(i=e.height-t.height/2-n.height/2-7),"center"===r&&(i=e.height/2-n.height/2);var o=ll(t,e,r);return o+e.height>window.innerHeight&&(i+=o+e.height-window.innerHeight),i}},{key:"calculateHorizontalAlignment",value:function(t,e,n){var r=hl(t,e,n);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r}},{key:"calculateHorizontalCaret",value:function(t,e,n,r){var i;"left"===r&&(i=t.width/2-n.width/2+7),"right"===r&&(i=e.width-t.width/2-n.width/2-7),"center"===r&&(i=e.width/2-n.width/2);var o=hl(t,e,r);return o+e.width>window.innerWidth&&(i+=o+e.width-window.innerWidth),i}},{key:"shouldFlip",value:function(t,e,n,r){var i=!1;return"right"===n&&t.left+t.width+e.width+r>window.innerWidth&&(i=!0),"left"===n&&t.left-e.width-r<0&&(i=!0),"top"===n&&t.top-e.height-r<0&&(i=!0),"bottom"===n&&t.top+t.height+e.height+r>window.innerHeight&&(i=!0),i}},{key:"positionCaret",value:function(e,n,r,i,o){var a=0,s=0;return e===cl.right?(s=-7,a=t.calculateVerticalCaret(r,n,i,o)):e===cl.left?(s=n.width,a=t.calculateVerticalCaret(r,n,i,o)):e===cl.top?(a=n.height,s=t.calculateHorizontalCaret(r,n,i,o)):e===cl.bottom&&(a=-7,s=t.calculateHorizontalCaret(r,n,i,o)),{top:a,left:s}}},{key:"positionContent",value:function(e,n,r,i,o){var a=0,s=0;return e===cl.right?(s=r.left+r.width+i,a=t.calculateVerticalAlignment(r,n,o)):e===cl.left?(s=r.left-n.width-i,a=t.calculateVerticalAlignment(r,n,o)):e===cl.top?(a=r.top-n.height-i,s=t.calculateHorizontalAlignment(r,n,o)):e===cl.bottom&&(a=r.top+r.height+i,s=t.calculateHorizontalAlignment(r,n,o)),{top:a,left:s}}},{key:"determinePlacement",value:function(e,n,r,i){if(t.shouldFlip(r,n,e,i)){if(e===cl.right)return cl.left;if(e===cl.left)return cl.right;if(e===cl.top)return cl.bottom;if(e===cl.bottom)return cl.top}return e}}]),t}(),ml=function(){var t=function(){function t(e,n,r){f(this,t),this.element=e,this.renderer=n,this.platformId=r}return p(t,[{key:"cssClasses",get:function(){var t="ngx-charts-tooltip-content";return t+=" position-".concat(this.placement),t+=" type-".concat(this.type),t+=" ".concat(this.cssClass)}},{key:"ngAfterViewInit",value:function(){setTimeout(this.position.bind(this))}},{key:"position",value:function(){var t=this;if((0,d.NF)(this.platformId)){var e=this.element.nativeElement,n=this.host.nativeElement.getBoundingClientRect();if(n.height||n.width){var r=e.getBoundingClientRect();this.checkFlip(n,r),this.positionContent(e,n,r),this.showCaret&&this.positionCaret(n,r),setTimeout(function(){return t.renderer.addClass(e,"animate")},1)}}}},{key:"positionContent",value:function(t,e,n){var r=vl.positionContent(this.placement,n,e,this.spacing,this.alignment),i=r.top,o=r.left;this.renderer.setStyle(t,"top","".concat(i,"px")),this.renderer.setStyle(t,"left","".concat(o,"px"))}},{key:"positionCaret",value:function(t,e){var n=this.caretElm.nativeElement,r=n.getBoundingClientRect(),i=vl.positionCaret(this.placement,e,t,r,this.alignment),o=i.top,a=i.left;this.renderer.setStyle(n,"top","".concat(o,"px")),this.renderer.setStyle(n,"left","".concat(a,"px"))}},{key:"checkFlip",value:function(t,e){this.placement=vl.determinePlacement(this.placement,e,t,this.spacing)}},{key:"onWindowResize",value:function(){this.position()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(m.SBq),m.Y36(m.Qsj),m.Y36(m.Lbi))},t.\u0275cmp=m.Xpm({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(t,e){var n;(1&t&&m.Gf(nl,5),2&t)&&(m.iGM(n=m.CRH())&&(e.caretElm=n.first))},hostVars:2,hostBindings:function(t,e){1&t&&m.NdJ("resize",function(){return e.onWindowResize()},!1,m.Jf7),2&t&&m.Tol(e.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",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(t,e){1&t&&(m.TgZ(0,"div"),m._UZ(1,"span",0,1),m.TgZ(3,"div",2),m.YNc(4,ol,2,4,"span",3),m.YNc(5,al,1,1,"span",4),m.qZA(),m.qZA()),2&t&&(m.xp6(1),m.Gre("tooltip-caret position-",e.placement,""),m.Q6J("hidden",!e.showCaret),m.xp6(3),m.Q6J("ngIf",!e.title),m.xp6(1),m.Q6J("ngIf",e.title))},directives:[d.O5,d.tP],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.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{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);o>3&&a&&Object.defineProperty(e,n,a)}([function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:ul(n.value,100,void 0)}),this[e]}}}],t.prototype,"onWindowResize",null),t}(),yl=function(){var t=function(t){r(n,t);var e=o(n);function n(t){var r;return f(this,n),(r=e.call(this,t)).type=ml,r}return n}(function(){function t(e){f(this,t),this.injectionService=e,this.defaults={},this.components=new Map}return p(t,[{key:"getByType",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.type;return this.components.get(t)}},{key:"create",value:function(t){return this.createByType(this.type,t)}},{key:"createByType",value:function(t,e){e=this.assignDefaults(e);var n=this.injectComponent(t,e);return this.register(t,n),n}},{key:"destroy",value:function(t){var e=this.components.get(t.componentType);if(e&&e.length){var n=e.indexOf(t);n>-1&&(e[n].destroy(),e.splice(n,1))}}},{key:"destroyAll",value:function(){this.destroyByType(this.type)}},{key:"destroyByType",value:function(t){var e=this.components.get(t);if(e&&e.length)for(var n=e.length-1;n>=0;)this.destroy(e[n--])}},{key:"injectComponent",value:function(t,e){return this.injectionService.appendComponent(t,e)}},{key:"assignDefaults",value:function(t){var e=Object.assign({},this.defaults.inputs),n=Object.assign({},this.defaults.outputs);return t.inputs||t.outputs||(t={inputs:t}),e&&(t.inputs=Object.assign(Object.assign({},e),t.inputs)),n&&(t.outputs=Object.assign(Object.assign({},n),t.outputs)),t}},{key:"register",value:function(t,e){this.components.has(t)||this.components.set(t,[]),this.components.get(t).push(e)}}]),t}());return t.\u0275fac=function(e){return new(e||t)(m.LFG(sl))},t.\u0275prov=m.Yz7({token:t,factory:t.\u0275fac}),t}(),_l=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[d.ez]]}),t}(),wl=((pl={})[pl.popover="popover"]="popover",pl[pl.tooltip="tooltip"]="tooltip",pl),bl=((dl={})[dl.left="left"]="left",dl[dl.center="center"]="center",dl[dl.right="right"]="right",dl),xl=((fl={})[fl.all="all"]="all",fl[fl.focus="focus"]="focus",fl[fl.mouseover="mouseover"]="mouseover",fl),El=((gl=function(){function t(e,n,r){f(this,t),this.tooltipService=e,this.viewContainerRef=n,this.renderer=r,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=cl.top,this.tooltipAlignment=bl.center,this.tooltipType=wl.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=xl.all,this.tooltipImmediateExit=!1,this.show=new m.vpe,this.hide=new m.vpe}return p(t,[{key:"listensForFocus",get:function(){return this.tooltipShowEvent===xl.all||this.tooltipShowEvent===xl.focus}},{key:"listensForHover",get:function(){return this.tooltipShowEvent===xl.all||this.tooltipShowEvent===xl.mouseover}},{key:"ngOnDestroy",value:function(){this.hideTooltip(!0)}},{key:"onFocus",value:function(){this.listensForFocus&&this.showTooltip()}},{key:"onBlur",value:function(){this.listensForFocus&&this.hideTooltip(!0)}},{key:"onMouseEnter",value:function(){this.listensForHover&&this.showTooltip()}},{key:"onMouseLeave",value:function(t){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(t))return;this.hideTooltip(this.tooltipImmediateExit)}}},{key:"onMouseClick",value:function(){this.listensForHover&&this.hideTooltip(!0)}},{key:"showTooltip",value:function(t){var e=this;if(!this.component&&!this.tooltipDisabled){var n=t?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?300:0);clearTimeout(this.timeout),this.timeout=setTimeout(function(){e.tooltipService.destroyAll();var t=e.createBoundOptions();e.component=e.tooltipService.create(t),setTimeout(function(){e.component&&e.addHideListeners(e.component.instance.element.nativeElement)},10),e.show.emit(!0)},n)}}},{key:"addHideListeners",value:function(t){var e=this;this.mouseEnterContentEvent=this.renderer.listen(t,"mouseenter",function(){clearTimeout(e.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(t,"mouseleave",function(){e.hideTooltip(e.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",function(n){t.contains(n.target)||e.hideTooltip()}))}},{key:"hideTooltip",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.component){var n=function(){t.mouseLeaveContentEvent&&t.mouseLeaveContentEvent(),t.mouseEnterContentEvent&&t.mouseEnterContentEvent(),t.documentClickEvent&&t.documentClickEvent(),t.hide.emit(!0),t.tooltipService.destroy(t.component),t.component=void 0};clearTimeout(this.timeout),e?n():this.timeout=setTimeout(n,this.tooltipHideTimeout)}}},{key:"createBoundOptions",value:function(){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}}}]),t}()).\u0275fac=function(t){return new(t||gl)(m.Y36(yl),m.Y36(m.s_b),m.Y36(m.Qsj))},gl.\u0275dir=m.lG2({type:gl,selectors:[["","ngx-tooltip",""]],hostBindings:function(t,e){1&t&&m.NdJ("focusin",function(){return e.onFocus()})("blur",function(){return e.onBlur()})("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(t){return e.onMouseLeave(t.target)})("click",function(){return e.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",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),gl),Tl=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({providers:[sl,yl],imports:[[d.ez]]}),t}();"undefined"!=typeof window?window:"undefined"!=typeof global&&global;var Al=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[d.ez,_l,Tl],d.ez,_l,Tl]}),t}(),Sl=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al]]}),t}(),kl=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al]]}),t}(),Il=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al]]}),t}(),Dl=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al]]}),t}(),Nl=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al]]}),t}();Math;var Cl=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al]]}),t}(),Zl=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al,Cl,Nl]]}),t}(),Ml=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al]]}),t}(),Ol=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al]]}),t}(),Ll=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al,Cl,kl]]}),t}(),Rl=function(){var t=function t(){f(this,t),"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[Al,Sl,kl,Il,Dl,Nl,Zl,Ml,Cl,Ol,Ll]}),t}();function Ul(t,e){1&t&&(m.TgZ(0,"div"),m._UZ(1,"mat-spinner",3),m.qZA())}function Pl(t,e){if(1&t&&(m.TgZ(0,"span"),m._uU(1),m.ALo(2,"translate"),m.TgZ(3,"strong"),m._uU(4),m.qZA(),m.qZA()),2&t){var n=m.oxw(3);m.xp6(1),m.hij(" ",m.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_3")," "),m.xp6(3),m.Oqu(n.service)}}function Fl(t,e){1&t&&(m.O4$(),m.TgZ(0,"marker",10),m._UZ(1,"path",11),m.qZA())}function ql(t,e){if(1&t&&(m.O4$(),m.TgZ(0,"g",12),m._UZ(1,"rect"),m.TgZ(2,"text",13),m._uU(3),m.qZA(),m.qZA()),2&t){var n=e.$implicit;m.Q6J("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",n.tooltip),m.xp6(1),m.uIk("width",n.dimension.width)("height",n.dimension.height)("fill",n.color),m.xp6(1),m.uIk("x",10)("y",n.dimension.height/2),m.xp6(1),m.hij(" ",n.label," ")}}function jl(t,e){if(1&t&&(m.O4$(),m.TgZ(0,"g",14),m._UZ(1,"path",15),m.TgZ(2,"text",16),m.TgZ(3,"textPath",17),m._uU(4),m.qZA(),m.qZA(),m.qZA()),2&t){var n=e.$implicit;m.xp6(3),m.uIk("href","#"+n.id),m.xp6(1),m.hij(" ",n.label," ")}}var Yl=function(t,e){return[t,e]};function Bl(t,e){if(1&t&&(m.TgZ(0,"div"),m._uU(1),m.ALo(2,"translate"),m.TgZ(3,"strong"),m._uU(4),m.qZA(),m._uU(5),m.ALo(6,"translate"),m.TgZ(7,"strong"),m._uU(8),m.qZA(),m.YNc(9,Pl,5,4,"span",4),m.TgZ(10,"div",5),m.TgZ(11,"ngx-graph",6),m.YNc(12,Fl,2,0,"ng-template",null,7,m.W1O),m.YNc(14,ql,4,9,"ng-template",null,8,m.W1O),m.YNc(16,jl,5,2,"ng-template",null,9,m.W1O),m.qZA(),m.qZA(),m.qZA()),2&t){var n=m.oxw(2);m.xp6(1),m.hij(" ",m.lcZ(2,12,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_1")," "),m.xp6(3),m.AsE("",n.user.firstName," ",n.user.lastName,""),m.xp6(1),m.hij(" ",m.lcZ(6,14,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_2")," "),m.xp6(3),m.Oqu(n.destination),m.xp6(1),m.Q6J("ngIf","noService"!==n.service),m.xp6(2),m.Q6J("links",n.hierarchialGraph.links)("nodes",n.hierarchialGraph.nodes)("curve",n.curve)("draggingEnabled",!1)("zoomToFit$",n.zoomToFit$)("view",m.WLB(16,Yl,n.innerWidth,n.innerHeight))}}function zl(t,e){if(1&t&&(m.TgZ(0,"span"),m._uU(1),m.ALo(2,"translate"),m.TgZ(3,"strong"),m._uU(4),m.qZA(),m.qZA()),2&t){var n=m.oxw(3);m.xp6(1),m.hij(" ",m.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_3")," "),m.xp6(3),m.Oqu(n.service)}}function Gl(t,e){if(1&t&&(m._uU(0),m.ALo(1,"translate"),m.TgZ(2,"strong"),m._uU(3),m.qZA(),m._uU(4),m.ALo(5,"translate"),m.TgZ(6,"strong"),m._uU(7),m.qZA(),m.YNc(8,zl,5,4,"span",4),m._uU(9),m.ALo(10,"translate")),2&t){var n=m.oxw(2);m.hij(" ",m.lcZ(1,7,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_1")," "),m.xp6(3),m.AsE("",n.user.firstName," ",n.user.lastName,""),m.xp6(1),m.hij(" ",m.lcZ(5,9,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_2")," "),m.xp6(3),m.Oqu(n.destination),m.xp6(1),m.Q6J("ngIf","noService"!==n.service),m.xp6(1),m.hij(" ",m.lcZ(10,11,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_4")," ")}}function Jl(t,e){if(1&t&&(m.YNc(0,Bl,18,19,"div",1),m.YNc(1,Gl,11,13,"ng-template",null,2,m.W1O)),2&t){var n=m.MAs(2),r=m.oxw();m.Q6J("ngIf",r.isConnected)("ngIfElse",n)}}var Vl=function(){var t=function(){function t(e,n,r,i,o,a,s,u,c){f(this,t),this.route=e,this.facilityManager=n,this.userService=r,this.membersService=i,this.serviceService=o,this.resourceManager=a,this.groupService=s,this.voService=u,this.translate=c,this.idCounter=0,this.isConnected=!1,this.loading=!0,this.hierarchialGraph={nodes:[],links:[]},this.curve=je,this.zoomToFit$=new Ye.xQ}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.innerWidth=window.innerWidth<600?window.innerWidth:window.innerWidth-420,this.innerHeight=window.innerHeight,this.getLocalizedNames(),this.route.queryParams.subscribe(function(e){console.log(e),t.destination=e.destination,t.service=e.service,t.userService.getUserById(e.user).subscribe(function(e){t.user=e,t.facilityManager.getFacilitiesByDestination(t.destination).subscribe(function(e){t.facilities=e,t.membersService.getMembersByUser(t.user.id).subscribe(function(e){if(t.membership=e,0===t.membership.length||0===t.facilities.length)return t.loading=!1,void(t.isConnected=!1);t.showGraph()})})})})}},{key:"showGraph",value:function(){var t=this,e=""+this.id();this.hierarchialGraph.nodes=[].concat(n(this.hierarchialGraph.nodes),[{id:e,label:this.user.firstName+" "+this.user.lastName,tooltip:this.localUser,color:"#FFFFCC",tip:"user: "+this.user.id}]);var r=""+this.id(),i="destination no id";this.hierarchialGraph.nodes="noService"===this.service?[].concat(n(this.hierarchialGraph.nodes),[{id:r,label:this.destination,tooltip:this.localDestination+": "+this.destination,color:"#E0E0E0",tip:i}]):[].concat(n(this.hierarchialGraph.nodes),[{id:r,label:this.service+": "+this.destination,tooltip:this.localService+": "+this.service+", "+this.localDestination+": "+this.destination,color:"#E0E0E0",tip:i}]);var o,a=c(this.facilities);try{var s=function(){var e=o.value;t.serviceService.getAllRichDestinationsForFacility(e.id).subscribe(function(n){t.connectToService(e,n),t.delay(2e3).then(function(){t.zoomToFit$.next(!0),t.loading=!1})})};for(a.s();!(o=a.n()).done;)s()}catch(u){a.e(u)}finally{a.f()}}},{key:"connectToService",value:function(t,e){var n=this;this.isConnectedToService(e)&&this.facilityManager.getAssignedResourcesForFacility(t.id).subscribe(function(e){for(var r=0;r/g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,function(t){var e="number";return/^"/.test(t)?e=/:$/.test(t)?"key":"string":/true|false/.test(t)?e="boolean":/null/.test(t)&&(e="null"),''+t+""})}},{key:"onClose",value:function(){this.dialogRef.close()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(I.so),m.Y36(I.WI),m.Y36(_t.TU))},t.\u0275cmp=m.Xpm({type:t,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(t,e){var n;(1&t&&(m.TgZ(0,"div",0),m.TgZ(1,"h1",1),m._uU(2),m.ALo(3,"translate"),m.ALo(4,"parseEventName"),m.qZA(),m.TgZ(5,"div",2),m.TgZ(6,"div"),m._uU(7),m.ALo(8,"translate"),m.ALo(9,"translate"),m.qZA(),m.TgZ(10,"mat-tab-group",3),m.NdJ("selectedTabChange",function(t){return e.tabChanged(t)}),m.TgZ(11,"mat-tab"),m.YNc(12,Zd,2,3,"ng-template",4),m.YNc(13,Md,1,1,"ng-template",5),m.qZA(),m.TgZ(14,"mat-tab"),m.YNc(15,Od,2,3,"ng-template",4),m.YNc(16,Ld,2,1,"ng-template",5),m.qZA(),m.qZA(),m.qZA(),m.TgZ(17,"div",6),m.TgZ(18,"button",7),m.NdJ("click",function(){return e.onClose()}),m._uU(19),m.ALo(20,"translate"),m.qZA(),m.TgZ(21,"button",8),m.NdJ("click",function(){return 0===e.tabIndex?e.copyObjects():e.copyMessage()}),m._uU(22),m.ALo(23,"translate"),m.TgZ(24,"mat-icon"),m._uU(25,"content_copy"),m.qZA(),m.qZA(),m.qZA(),m.qZA()),2&t)&&(m.xp6(2),m.hij(" ",m.lcZ(3,7,null!==(n=m.lcZ(4,9,e.title))&&void 0!==n?n:"DIALOGS.AUDIT_MESSAGE_DETAIL.TITLE")," "),m.xp6(5),m.HOy(" ",m.lcZ(8,11,"DIALOGS.AUDIT_MESSAGE_DETAIL.ACTOR"),": ",e.actor,", ",m.lcZ(9,13,"DIALOGS.AUDIT_MESSAGE_DETAIL.CREATED_AT"),": ",e.createdAt," "),m.xp6(12),m.hij(" ",m.lcZ(20,15,"DIALOGS.AUDIT_MESSAGE_DETAIL.CLOSE")," "),m.xp6(3),m.hij(" ",m.lcZ(23,17,"DIALOGS.AUDIT_MESSAGE_DETAIL.COPY")," "))},directives:[I.uh,I.xY,nd.SP,nd.uX,nd.uD,nd.Vc,I.H8,Z.lW,w.Hw],pipes:[x.X$,Cd],styles:[".key{color:brown}.string{color:green}.number{color:#ff8c00}.boolean{color:blue}.null{color:#f0f}"],encapsulation:2}),t}(),Ud=l(73005),Pd=l(31906),Fd=l(58506);function qd(t,e){1&t&&(m.TgZ(0,"div",16),m._UZ(1,"mat-spinner",17),m.qZA())}function jd(t,e){1&t&&(m.TgZ(0,"th",18),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&t&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"AUDIT_MESSAGES_LIST.ID")," "))}function Yd(t,e){if(1&t&&(m.TgZ(0,"td",19),m._uU(1),m.qZA()),2&t){var n=e.$implicit;m.xp6(1),m.hij(" ",n.id," ")}}function Bd(t,e){1&t&&(m.TgZ(0,"th",18),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&t&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"AUDIT_MESSAGES_LIST.TIMESTAMP")," "))}function zd(t,e){if(1&t&&(m.TgZ(0,"td",19),m._uU(1),m.ALo(2,"parseDate"),m.qZA()),2&t){var n=e.$implicit;m.xp6(1),m.hij(" ",m.xi3(2,1,n.createdAt,!0)," ")}}function Gd(t,e){1&t&&(m.TgZ(0,"th",20),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&t&&(m.xp6(1),m.Oqu(m.lcZ(2,1,"AUDIT_MESSAGES_LIST.EVENT_NAME")))}function Jd(t,e){if(1&t&&(m.TgZ(0,"td",19),m._uU(1),m.ALo(2,"parseEventName"),m.qZA()),2&t){var n=e.$implicit;m.xp6(1),m.hij(" ",m.lcZ(2,1,n.event.name)," ")}}function Vd(t,e){1&t&&(m.TgZ(0,"th",20),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&t&&(m.xp6(1),m.Oqu(m.lcZ(2,1,"AUDIT_MESSAGES_LIST.ACTOR")))}function Hd(t,e){if(1&t&&(m.TgZ(0,"td",19),m._uU(1),m.qZA()),2&t){var n=e.$implicit;m.xp6(1),m.hij(" ",n.actor," ")}}function Qd(t,e){1&t&&(m.TgZ(0,"th",20),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&t&&(m.xp6(1),m.Oqu(m.lcZ(2,1,"AUDIT_MESSAGES_LIST.MESSAGE")))}function Wd(t,e){if(1&t&&(m.TgZ(0,"td",19),m._uU(1),m.qZA()),2&t){var n=e.$implicit;m.xp6(1),m.hij(" ",n.event.message," ")}}function Xd(t,e){1&t&&m._UZ(0,"th",20)}function $d(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"td",19),m.TgZ(1,"button",21),m.NdJ("click",function(){var t=m.CHM(n).$implicit;return m.oxw().viewDetails(t)}),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.qZA()}2&t&&(m.xp6(2),m.hij(" ",m.lcZ(3,1,"AUDIT_MESSAGES_LIST.VIEW_DETAIL")," "))}function Kd(t,e){1&t&&m._UZ(0,"tr",22)}function tp(t,e){1&t&&m._UZ(0,"tr",23)}function ep(t,e){1&t&&(m.TgZ(0,"app-alert",24),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&t&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_AUDIT_MESSAGES"),"\n"))}var np,rp,ip=function(){var t=function(){function t(e,n,r){f(this,t),this.dialog=e,this.dynamicPaginatingService=n,this.tableConfigService=r,this.pageSizeOptions=lt.f7,this.displayedColumns=["id","timestamp","name","actor","event.message","detail"]}return p(t,[{key:"ngAfterViewInit",value:function(){var t=this;this.sort.sortChange.subscribe(function(){return t.child.paginator.pageIndex=0}),(0,Pd.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,Ae.b)(function(){return t.loadAuditMessagesPage()})).subscribe()}},{key:"ngOnInit",value:function(){this.dataSource=new N.Hy(this.dynamicPaginatingService,null),this.dataSource.loadAuditMessages(this.tableConfigService.getTablePageSize(this.tableId),0,"DESCENDING")}},{key:"ngOnChanges",value:function(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadAuditMessagesPage())}},{key:"loadAuditMessagesPage",value:function(){this.dataSource.loadAuditMessages(this.child.paginator.pageSize,this.child.paginator.pageIndex,"asc"===this.sort.direction?"ASCENDING":"DESCENDING")}},{key:"viewDetails",value:function(t){var e=(0,lt.kZ)(),n=JSON.parse(JSON.stringify(t));e.minWidth="700px",e.maxWidth="1000px",e.data={message:n},this.dialog.open(Rd,e)}},{key:"exportData",value:function(t){(0,lt.O6)((0,lt.Xn)(this.dataSource.getData(),this.displayedColumns.filter(function(t){return"detail"!==t}),this.getExportDataForColumn,this),t)}},{key:"getExportDataForColumn",value:function(t,e){switch(e){case"id":return t.id.toString();case"timestamp":return(0,d.p6)(t.createdAt,"d.M.y H.mm.ss","en");case"name":return t.event.name.split(".").pop();case"actor":return t.actor;default:return""}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(I.uw),m.Y36(N.ly),m.Y36(ht.dB))},t.\u0275cmp=m.Xpm({type:t,selectors:[["app-audit-messages-list"]],viewQuery:function(t,e){var n;(1&t&&(m.Gf(lt.l9,7),m.Gf(mt.YE,5)),2&t)&&(m.iGM(n=m.CRH())&&(e.child=n.first),m.iGM(n=m.CRH())&&(e.sort=n.first))},inputs:{tableId:"tableId",refresh:"refresh",displayedColumns:"displayedColumns",searchString:"searchString"},features:[m._Bn([{provide:Ud.ye,useClass:N.Be}]),m.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"],["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",""],["color","accent","mat-flat-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(t,e){1&t&&(m.TgZ(0,"div",0),m.ALo(1,"async"),m.TgZ(2,"perun-web-apps-table-wrapper",1),m.NdJ("exportData",function(t){return e.exportData(t)}),m.YNc(3,qd,2,0,"div",2),m.ALo(4,"async"),m.TgZ(5,"table",3),m.ynx(6,4),m.YNc(7,jd,3,3,"th",5),m.YNc(8,Yd,2,1,"td",6),m.BQk(),m.ynx(9,7),m.YNc(10,Bd,3,3,"th",5),m.YNc(11,zd,3,4,"td",6),m.BQk(),m.ynx(12,8),m.YNc(13,Gd,3,3,"th",9),m.YNc(14,Jd,3,3,"td",6),m.BQk(),m.ynx(15,10),m.YNc(16,Vd,3,3,"th",9),m.YNc(17,Hd,2,1,"td",6),m.BQk(),m.ynx(18,11),m.YNc(19,Qd,3,3,"th",9),m.YNc(20,Wd,2,1,"td",6),m.BQk(),m.ynx(21,12),m.YNc(22,Xd,1,0,"th",9),m.YNc(23,$d,4,3,"td",6),m.BQk(),m.YNc(24,Kd,1,0,"tr",13),m.YNc(25,tp,1,0,"tr",14),m.qZA(),m.qZA(),m.qZA(),m.YNc(26,ep,3,3,"app-alert",15),m.ALo(27,"async")),2&t&&(m.Q6J("hidden",0===e.dataSource.allObjectCount&&!1===m.lcZ(1,9,e.dataSource.loading$)),m.xp6(2),m.Q6J("dataLength",e.dataSource.allObjectCount)("pageSizeOptions",e.pageSizeOptions)("tableId",e.tableId),m.xp6(1),m.Q6J("ngIf",m.lcZ(4,11,e.dataSource.loading$)),m.xp6(2),m.Q6J("dataSource",e.dataSource),m.xp6(19),m.Q6J("matHeaderRowDef",e.displayedColumns),m.xp6(1),m.Q6J("matRowDefColumns",e.displayedColumns),m.xp6(1),m.Q6J("ngIf",0===e.dataSource.allObjectCount&&!1===m.lcZ(27,13,e.dataSource.loading$)))},directives:[xt.l,d.O5,D.BZ,mt.YE,D.w1,D.fO,D.Dz,D.as,D.nj,M.$g,D.ge,mt.nU,D.ev,Z.lW,D.XQ,D.Gk,O.w],pipes:[d.Ov,x.X$,Fd.M,Cd],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;top:0;left:0;bottom:56px;right:0;background:rgba(0,0,0,.15);z-index:1;display:flex;align-items:center;justify-content:center}"]}),t}(),op=[{path:"",component:T,children:[{path:"",component:S,data:{animation:"AdminOverviewPage"}},{path:"attributes",component:ye,data:{animation:"AdminAttributesPage"}},{path:"users",component:Hl.t,data:{animation:"AdminUsersPage"}},{path:"owners",component:Wf,data:{animation:"AdminOwnersPage"}},{path:"services",component:Ph,data:{animation:"AdminServicesPage"}},{path:"audit_log",component:(np=function(){function t(){f(this,t),this.tableId=ht.yW,this.refresh=!1}return p(t,[{key:"refreshTable",value:function(){this.refresh=!this.refresh}}]),t}(),np.\u0275fac=function(t){return new(t||np)},np.\u0275cmp=m.Xpm({type:np,selectors:[["app-admin-audit-log"]],decls:5,vars:5,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"refresh","tableId"]],template:function(t,e){1&t&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.TgZ(3,"perun-web-apps-refresh-button",1),m.NdJ("refresh",function(){return e.refreshTable()}),m.qZA(),m._UZ(4,"app-audit-messages-list",2)),2&t&&(m.xp6(1),m.Oqu(m.lcZ(2,3,"ADMIN.AUDIT_LOG.TITLE")),m.xp6(3),m.Q6J("refresh",e.refresh)("tableId",e.tableId))},directives:[gt.t,ip],pipes:[x.X$],styles:[""]}),np),data:{animation:"AdminAuditLogPage"}},{path:"visualizer",component:_e,children:[{path:"",component:xe,data:{animation:"VisualizerOverviewPage"}},{path:"attrDependencies",component:be,data:{animation:"VisualizerAttrModulesPage"}},{path:"userDestinationRelationship",component:Re,data:{animation:"UserDestinationRelationshipPage"}},{path:"userDestinationRelationship/graph",component:Vl,data:{animation:"UserDestinationGraphPage"}}]},{path:"ext_sources",component:fh,data:{animation:"AdminExtSourcesPage"}}]},{path:"users/:userId",component:nh,children:[{path:"",component:rh.Z,data:{animation:"UserOverviewPage"}},{path:"accounts",component:Nd,data:{animation:"UserAccountsPage"}},{path:"attributes",component:ah.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:ih.j,data:{animation:"UserOrganizationsPage",showPrincipal:!1}},{path:"groups",component:oh.u,data:{animation:"UserGroupsPage",showPrincipal:!1}},{path:"identities",component:kh,data:{animation:"UserIdentitiesPage"}},{path:"facilities",component:td,data:{animation:"UserFacilitiesPage"}},{path:"resources",component:Bh,data:{animation:"UserRoles"}},{path:"identities/:identityId",component:Wh,data:{animation:"UserIdentityDetailPage"}},{path:"roles",component:dh.t,data:{animation:"UserRolesPage"}},{path:"service-identities",component:ph.R,data:{animation:"UserServiceIdentities"}},{path:"associated-users",component:xf.d,data:{animation:"AssociatedUsersPage"}}]},{path:"services/:serviceId",component:rf,children:[{path:"",component:of,data:{animation:"ServiceOverviewPage"}},{path:"required-attributes",component:bf,data:{animation:"ServiceRequiredAttributesPage"}},{path:"destinations",component:Cf,data:{animation:"ServiceDestinationsPage"}}]}],ap=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[g.Bz.forChild(op)],g.Bz]}),t}(),sp=l(28780),up=l(22727),cp=l(22280),lp=l(65515),hp=((rp=function t(){f(this,t)}).\u0275fac=function(t){return new(t||rp)},rp.\u0275mod=m.oAB({type:rp}),rp.\u0275inj=m.cJS({imports:[[Va,Rl,d.ez,ap,sp.m,up.r,bt.ez,cp.d4,lp.UsersModule]]}),rp)},94357:function(t,e,n){"use strict";n.d(e,{q:function(){return B}});var r=n(58623),i=n(4230),o=n(67033),a=n(84140),s=n(68416),u=n(31572),c=n(82819),l=n(61511),h=n(29236),d=n(43691),g=n(36922),v=n(39571),m=n(48160);function y(t,e){if(1&t){var n=u.EpF();u.TgZ(0,"th",21),u.TgZ(1,"mat-checkbox",22),u.NdJ("change",function(t){u.CHM(n);var e=u.oxw();return t?e.masterToggle():null}),u.qZA(),u.qZA()}if(2&t){var r=u.oxw();u.xp6(1),u.Q6J("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())}}function _(t,e){if(1&t){var n=u.EpF();u.TgZ(0,"td",23),u.TgZ(1,"mat-checkbox",24),u.NdJ("change",function(t){var e=u.CHM(n).$implicit,r=u.oxw();return t?r.selection.toggle(e):null})("click",function(t){return t.stopPropagation()}),u.qZA(),u.qZA()}if(2&t){var r=e.$implicit,i=u.oxw();u.xp6(1),u.Q6J("aria-label",i.checkboxLabel(r))("checked",i.selection.isSelected(r))}}function w(t,e){1&t&&(u.TgZ(0,"th",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION_ID")," "))}function b(t,e){if(1&t&&(u.TgZ(0,"td",26),u._uU(1),u.qZA()),2&t){var n=e.$implicit;u.xp6(1),u.hij(" ",n.id," ")}}function x(t,e){1&t&&(u.TgZ(0,"th",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.SERVICE")," "))}function E(t,e){if(1&t&&(u.TgZ(0,"td",27),u._uU(1),u.qZA()),2&t){var n=e.$implicit;u.xp6(1),u.Oqu(n.service.name)}}function T(t,e){1&t&&u._UZ(0,"th",28)}function A(t,e){1&t&&(u.TgZ(0,"mat-icon",30),u.ALo(1,"translate"),u._uU(2," warning "),u.qZA()),2&t&&u.s9C("matTooltip",u.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.WARN"))}function S(t,e){if(1&t&&(u.TgZ(0,"td",27),u.YNc(1,A,3,3,"mat-icon",29),u.qZA()),2&t){var n=e.$implicit,r=u.oxw();u.xp6(1),u.Q6J("ngIf",!r.services.has(n.service.id))}}function k(t,e){1&t&&(u.TgZ(0,"th",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.FACILITY")," "))}function I(t,e){if(1&t&&(u.TgZ(0,"td",27),u._uU(1),u.qZA()),2&t){var n=e.$implicit;u.xp6(1),u.Oqu(n.facility.name)}}function D(t,e){1&t&&(u.TgZ(0,"th",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION")," "))}function N(t,e){if(1&t&&(u.TgZ(0,"td",27),u._uU(1),u.qZA()),2&t){var n=e.$implicit;u.xp6(1),u.Oqu(n.destination)}}function C(t,e){1&t&&(u.TgZ(0,"th",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.TYPE")," "))}function Z(t,e){if(1&t&&(u.TgZ(0,"td",27),u._uU(1),u.qZA()),2&t){var n=e.$implicit;u.xp6(1),u.Oqu(n.type.toUpperCase())}}function M(t,e){1&t&&u._UZ(0,"th",28)}function O(t,e){1&t&&(u.TgZ(0,"mat-icon",32),u.ALo(1,"translate"),u._uU(2," check_circle_outline "),u.qZA()),2&t&&u.s9C("matTooltip",u.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.ALLOWED"))}function L(t,e){1&t&&(u.TgZ(0,"mat-icon",32),u.ALo(1,"translate"),u._uU(2," block "),u.qZA()),2&t&&u.s9C("matTooltip",u.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.BLOCKED"))}function R(t,e){if(1&t&&(u.TgZ(0,"td",27),u.YNc(1,O,3,3,"mat-icon",31),u.YNc(2,L,3,3,"mat-icon",31),u.qZA()),2&t){var n=e.$implicit;u.xp6(1),u.Q6J("ngIf",!n.blocked),u.xp6(1),u.Q6J("ngIf",n.blocked)}}function U(t,e){1&t&&(u.TgZ(0,"th",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.PROPAGATION_TYPE")," "))}function P(t,e){if(1&t&&(u.TgZ(0,"td",27),u._uU(1),u.qZA()),2&t){var n=e.$implicit;u.xp6(1),u.Oqu(n.propagationType)}}function F(t,e){1&t&&u._UZ(0,"tr",33)}function q(t,e){1&t&&u._UZ(0,"tr",34)}function j(t,e){1&t&&(u.TgZ(0,"app-alert",35),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Y(t,e){1&t&&(u.TgZ(0,"app-alert",35),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.NO_DESTINATIONS"),"\n"))}var B=function(){var t=function(){function t(e,n){f(this,t),this.authResolver=e,this.tableCheckbox=n,this.destinations=[],this.selection=new i.Ov(!0,[]),this.filterValue="",this.pageSizeOptions=a.f7}return p(t,[{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"destinationId"!==t})),this.dataSource=new o.by(this.destinations),this.setDataSource(),this.dataSource.filter=this.filterValue.toLowerCase()}},{key:"getDataForColumn",value:function(t,e){switch(e){case"destinationId":return t.id.toString();case"service":return t.service.name;case"facility":return t.facility.name;case"destination":return t.destination;case"type":return t.type;case"status":return t.blocked?"blocked":"allowed";case"propagationType":return t.propagationType;default:return""}}},{key:"exportData",value:function(t){(0,a.O6)((0,a.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=function(e,n){return(0,a.Sd)(e,n,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,n){return(0,a.pR)(e,n,t.getDataForColumn,t)},this.dataSource.paginator=this.child.paginator)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Y36(s.x4),u.Y36(s.UA))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-perun-web-apps-destination-list"]],viewQuery:function(t,e){var n;(1&t&&(u.Gf(r.YE,7),u.Gf(a.l9,7)),2&t)&&(u.iGM(n=u.CRH())&&(e.matSort=n.first),u.iGM(n=u.CRH())&&(e.child=n.first))},inputs:{destinations:"destinations",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",services:"services"},features:[u.TTD],decls:34,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"],["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(t,e){1&t&&(u.TgZ(0,"div",0),u.TgZ(1,"perun-web-apps-table-wrapper",1),u.NdJ("exportData",function(t){return e.exportData(t)}),u.TgZ(2,"table",2),u.ynx(3,3),u.YNc(4,y,2,3,"th",4),u.YNc(5,_,2,2,"td",5),u.BQk(),u.ynx(6,6),u.YNc(7,w,3,3,"th",7),u.YNc(8,b,2,1,"td",8),u.BQk(),u.ynx(9,9),u.YNc(10,x,3,3,"th",7),u.YNc(11,E,2,1,"td",10),u.BQk(),u.ynx(12,11),u.YNc(13,T,1,0,"th",12),u.YNc(14,S,2,1,"td",10),u.BQk(),u.ynx(15,13),u.YNc(16,k,3,3,"th",7),u.YNc(17,I,2,1,"td",10),u.BQk(),u.ynx(18,14),u.YNc(19,D,3,3,"th",7),u.YNc(20,N,2,1,"td",10),u.BQk(),u.ynx(21,15),u.YNc(22,C,3,3,"th",7),u.YNc(23,Z,2,1,"td",10),u.BQk(),u.ynx(24,16),u.YNc(25,M,1,0,"th",12),u.YNc(26,R,3,2,"td",10),u.BQk(),u.ynx(27,17),u.YNc(28,U,3,3,"th",7),u.YNc(29,P,2,1,"td",10),u.BQk(),u.YNc(30,F,1,0,"tr",18),u.YNc(31,q,1,0,"tr",19),u.qZA(),u.qZA(),u.qZA(),u.YNc(32,j,3,3,"app-alert",20),u.YNc(33,Y,3,3,"app-alert",20)),2&t&&(u.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.destinations.length),u.xp6(1),u.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),u.xp6(1),u.Q6J("dataSource",e.dataSource),u.xp6(28),u.Q6J("matHeaderRowDef",e.displayedColumns),u.xp6(1),u.Q6J("matRowDefColumns",e.displayedColumns),u.xp6(1),u.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.destinations.length),u.xp6(1),u.Q6J("ngIf",0===e.destinations.length))},directives:[c.l,o.BZ,r.YE,o.w1,o.fO,o.Dz,o.as,o.nj,l.O5,o.ge,h.oG,o.ev,r.nU,d.Hw,g.gM,o.XQ,o.Gk,v.w],pipes:[m.X$],styles:[".warn[_ngcontent-%COMP%]{color:#ebe134}"]}),t}()},60547:function(t,e,n){"use strict";n.d(e,{u:function(){return _}});var r=n(65249),i=n(84608),o=n(67033),a=n(68416),s=n(31572),u=n(48160),c=n(61511),l=n(15980),h=n(67806),d=n(39571),g=n(94357);function v(t,e){1&t&&s._UZ(0,"mat-spinner",6)}function m(t,e){if(1&t&&s._UZ(0,"app-perun-web-apps-destination-list",11),2&t){var n=s.oxw(2);s.Q6J("destinations",n.destinations)("displayedColumns",n.displayedColumns)}}function y(t,e){if(1&t&&(s.TgZ(0,"div",7),s.TgZ(1,"app-alert",8),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"p"),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"div",9),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.YNc(10,m,1,2,"app-perun-web-apps-destination-list",10),s.qZA()),2&t){var n=s.oxw();s.xp6(2),s.Oqu(s.lcZ(3,4,"DIALOGS.REMOVE_DESTINATIONS.WARNING")),s.xp6(3),s.Oqu(s.lcZ(6,6,"DIALOGS.REMOVE_DESTINATIONS.DESCRIPTION")),s.xp6(3),s.hij(" ",s.lcZ(9,8,"DIALOGS.REMOVE_DESTINATIONS.ASK")," "),s.xp6(2),s.Q6J("ngIf",!n.loading)}}var _=function(){var t=function(){function t(e,n,r,i,o){f(this,t),this.dialogRef=e,this.data=n,this.notificator=r,this.translate=i,this.serviceManager=o,this.displayedColumns=[],this.loading=!1}return p(t,[{key:"ngOnInit",value:function(){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 o.by(this.data.destinations)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"deleteDestinations",value:function(){var t=this;if(0===this.destinations.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_DESTINATIONS.SUCCESS")),void this.dialogRef.close(!0);var e=this.destinations.pop();this.serviceManager.removeDestination(e.service.id,e.facility.id,e.destination,e.type).subscribe(function(){t.deleteDestinations()},function(){return t.loading=!1})}},{key:"onConfirm",value:function(){this.loading=!0,this.deleteDestinations()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(i.so),s.Y36(i.WI),s.Y36(a.V6),s.Y36(u.sK),s.Y36(r.KK))},t.\u0275cmp=s.Xpm({type:t,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"],["mat-flat-button","","color","warn",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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div"),s.YNc(4,v,1,0,"mat-spinner",1),s.YNc(5,y,11,10,"div",2),s.TgZ(6,"div",3),s.TgZ(7,"button",4),s.NdJ("click",function(){return e.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return e.onConfirm()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,9,"DIALOGS.REMOVE_DESTINATIONS.TITLE")),s.xp6(2),s.Tol(e.theme),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,11,"DIALOGS.REMOVE_DESTINATIONS.CANCEL")," "),s.xp6(2),s.Q6J("disabled",e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,13,"DIALOGS.REMOVE_DESTINATIONS.CONFIRM")," "))},directives:[i.uh,c.O5,i.H8,l.lW,h.$g,i.xY,d.w,g.q],pipes:[u.X$],styles:[""]}),t}()},17767:function(t,e,n){"use strict";n.d(e,{Q:function(){return N}});var r=n(58623),i=n(4230),o=n(67033),a=n(84140),s=n(68416),u=n(31572),c=n(82819),l=n(61511),h=n(29236),d=n(39571),g=n(48160);function v(t,e){if(1&t){var n=u.EpF();u.TgZ(0,"th",16),u.TgZ(1,"mat-checkbox",17),u.NdJ("change",function(t){u.CHM(n);var e=u.oxw();return t?e.masterToggle():null}),u.qZA(),u.qZA()}if(2&t){var r=u.oxw();u.xp6(1),u.Q6J("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())}}function m(t,e){if(1&t){var n=u.EpF();u.TgZ(0,"td",18),u.TgZ(1,"mat-checkbox",19),u.NdJ("change",function(t){var e=u.CHM(n).$implicit,r=u.oxw();return t?r.selection.toggle(e):null})("click",function(t){return t.stopPropagation()}),u.qZA(),u.qZA()}if(2&t){var r=e.$implicit,i=u.oxw();u.xp6(1),u.Q6J("aria-label",i.checkboxLabel(r))("checked",i.selection.isSelected(r))}}function y(t,e){1&t&&(u.TgZ(0,"th",20),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.ID")," "))}function _(t,e){if(1&t&&(u.TgZ(0,"td",21),u._uU(1),u.qZA()),2&t){var n=e.$implicit;u.xp6(1),u.hij(" ",n.id," ")}}function w(t,e){1&t&&(u.TgZ(0,"th",20),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NAME")," "))}function b(t,e){if(1&t&&(u.TgZ(0,"td",22),u._uU(1),u.qZA()),2&t){var n=e.$implicit;u.xp6(1),u.Oqu(n.name)}}function x(t,e){1&t&&(u.TgZ(0,"th",20),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.CONTACT")," "))}function E(t,e){if(1&t&&(u.TgZ(0,"td",22),u._uU(1),u.qZA()),2&t){var n=e.$implicit;u.xp6(1),u.Oqu(n.contact)}}function T(t,e){1&t&&(u.TgZ(0,"th",20),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.TYPE")," "))}function A(t,e){if(1&t&&(u.TgZ(0,"td",22),u._uU(1),u.qZA()),2&t){var n=e.$implicit;u.xp6(1),u.Oqu(n.type)}}function S(t,e){1&t&&u._UZ(0,"tr",23)}function k(t,e){1&t&&u._UZ(0,"tr",24)}function I(t,e){1&t&&(u.TgZ(0,"app-alert",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_OWNERS"),"\n"))}function D(t,e){1&t&&(u.TgZ(0,"app-alert",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_FILTER_OWNERS"),"\n"))}var N=function(){var t=function(){function t(e,n){f(this,t),this.authResolver=e,this.tableCheckbox=n,this.owners=[],this.selection=new i.Ov(!0,[]),this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.pageSizeOptions=a.f7}return p(t,[{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}},{key:"ngAfterViewInit",value:function(){this.setDataSource()}},{key:"getDataForColumn",value:function(t,e){switch(e){case"id":return t.id.toString();case"name":return t.name;case"contact":return t.contact;case"type":return t.type;default:return""}}},{key:"exportData",value:function(t){(0,a.O6)((0,a.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource&&(this.dataSource.filterPredicate=function(e,n){return(0,a.Sd)(e,n,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,n){return(0,a.pR)(e,n,t.getDataForColumn,t)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.dataSource=new o.by(this.owners),this.setDataSource()}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Y36(s.x4),u.Y36(s.UA))},t.\u0275cmp=u.Xpm({type:t,selectors:[["perun-web-apps-owners-list"]],viewQuery:function(t,e){var n;(1&t&&(u.Gf(a.l9,7),u.Gf(r.YE,7)),2&t)&&(u.iGM(n=u.CRH())&&(e.child=n.first),u.iGM(n=u.CRH())&&(e.matSort=n.first))},inputs:{owners:"owners",selection:"selection",tableId:"tableId",filterValue:"filterValue",displayedColumns:"displayedColumns"},features:[u.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(t,e){1&t&&(u.TgZ(0,"div",0),u.TgZ(1,"perun-web-apps-table-wrapper",1),u.NdJ("exportData",function(t){return e.exportData(t)}),u.TgZ(2,"table",2),u.ynx(3,3),u.YNc(4,v,2,3,"th",4),u.YNc(5,m,2,2,"td",5),u.BQk(),u.ynx(6,6),u.YNc(7,y,3,3,"th",7),u.YNc(8,_,2,1,"td",8),u.BQk(),u.ynx(9,9),u.YNc(10,w,3,3,"th",7),u.YNc(11,b,2,1,"td",10),u.BQk(),u.ynx(12,11),u.YNc(13,x,3,3,"th",7),u.YNc(14,E,2,1,"td",10),u.BQk(),u.ynx(15,12),u.YNc(16,T,3,3,"th",7),u.YNc(17,A,2,1,"td",10),u.BQk(),u.YNc(18,S,1,0,"tr",13),u.YNc(19,k,1,0,"tr",14),u.qZA(),u.qZA(),u.qZA(),u.YNc(20,I,3,3,"app-alert",15),u.YNc(21,D,3,3,"app-alert",15)),2&t&&(u.Q6J("hidden",0===e.owners.length||0===e.dataSource.filteredData.length),u.xp6(1),u.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),u.xp6(1),u.Q6J("dataSource",e.dataSource),u.xp6(16),u.Q6J("matHeaderRowDef",e.displayedColumns),u.xp6(1),u.Q6J("matRowDefColumns",e.displayedColumns),u.xp6(1),u.Q6J("ngIf",!e.owners.length),u.xp6(1),u.Q6J("ngIf",!e.dataSource.filteredData.length&&e.owners.length))},directives:[c.l,o.BZ,r.YE,o.w1,o.fO,o.Dz,o.as,o.nj,l.O5,o.ge,h.oG,o.ev,r.nU,o.XQ,o.Gk,d.w],pipes:[g.X$],styles:[""]}),t}()},95914:function(t,e,n){"use strict";function r(t,e){return t(e={exports:{}},e.exports),e.exports}n.r(e),n.d(e,{StackParser:function(){return l},graphviz:function(){return m},graphvizSync:function(){return _},parse:function(){return h},wasmFolder:function(){return s}});var i=r(function(t,e){var n,r=(n="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(t){var e,r=void 0!==(t=t||{})?t:{},i={};for(e in r)r.hasOwnProperty(e)&&(i[e]=r[e]);var o,a="./this.program",s="";document.currentScript&&(s=document.currentScript.src),n&&(s=n),s=0!==s.indexOf("blob:")?s.substr(0,s.lastIndexOf("/")+1):"",o=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText};var u,c,l=r.print||console.log.bind(console),h=r.printErr||console.warn.bind(console);for(e in i)i.hasOwnProperty(e)&&(r[e]=i[e]);i=null,r.thisProgram&&(a=r.thisProgram),r.wasmBinary&&(u=r.wasmBinary),"object"!=typeof WebAssembly&&h("no native wasm support detected");var f=new WebAssembly.Table({initial:153,maximum:153,element:"anyfunc"}),d=!1;function p(t,e){t||j("Assertion failed: "+e)}var g,v,m,y,_,w="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function b(t,e,n){for(var r=e+n,i=e;t[i]&&!(i>=r);)++i;if(i-e>16&&t.subarray&&w)return w.decode(t.subarray(e,i));for(var o="";e>10,56320|1023&c)}}else o+=String.fromCharCode((31&a)<<6|s)}else o+=String.fromCharCode(a)}return o}function x(t,e){return t?b(m,t,e):""}function E(t,e,n,r){if(!(r>0))return 0;for(var i=n,o=n+r-1,a=0;a=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&t.charCodeAt(++a)),s<=127){if(n>=o)break;e[n++]=s}else if(s<=2047){if(n+1>=o)break;e[n++]=192|s>>6,e[n++]=128|63&s}else if(s<=65535){if(n+2>=o)break;e[n++]=224|s>>12,e[n++]=128|s>>6&63,e[n++]=128|63&s}else{if(n+3>=o)break;e[n++]=240|s>>18,e[n++]=128|s>>12&63,e[n++]=128|s>>6&63,e[n++]=128|63&s}}return e[n]=0,n-i}function T(t){for(var e=0,n=0;n=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&t.charCodeAt(++n)),r<=127?++e:e+=r<=2047?2:r<=65535?3:4}return e}function A(t){g=t,r.HEAP8=v=new Int8Array(t),r.HEAP16=new Int16Array(t),r.HEAP32=y=new Int32Array(t),r.HEAPU8=m=new Uint8Array(t),r.HEAPU16=new Uint16Array(t),r.HEAPU32=new Uint32Array(t),r.HEAPF32=new Float32Array(t),r.HEAPF64=_=new Float64Array(t)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var S=r.TOTAL_MEMORY||16777216;function k(t){for(;t.length>0;){var e=t.shift();if("function"!=typeof e){var n=e.func;"number"==typeof n?void 0===e.arg?r.dynCall_v(n):r.dynCall_vi(n,e.arg):n(void 0===e.arg?null:e.arg)}else e()}}(c=r.wasmMemory?r.wasmMemory:new WebAssembly.Memory({initial:S/65536}))&&(g=c.buffer),S=g.byteLength,A(g),y[2080]=5251360;var I=[],D=[],N=[],C=[],Z=!1,M=Math.abs,O=Math.ceil,L=Math.floor,R=Math.min,U=0,P=null;function F(t){U++,r.monitorRunDependencies&&r.monitorRunDependencies(U)}function q(t){if(U--,r.monitorRunDependencies&&r.monitorRunDependencies(U),0==U&&P){var e=P;P=null,e()}}function j(t){throw r.onAbort&&r.onAbort(t),l(t+=""),h(t),d=!0,t="abort("+t+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(t)}function Y(t){return String.prototype.startsWith?t.startsWith("data:application/octet-stream;base64,"):0===t.indexOf("data:application/octet-stream;base64,")}r.preloadedImages={},r.preloadedAudios={};var B,z,G,J="expatlib.wasm";function V(){try{if(u)return new Uint8Array(u);throw"both async and sync fetching of the wasm failed"}catch(h){j(h)}}Y(J)||(B=J,J=r.locateFile?r.locateFile(B,s):s+B);var H={1184:function(t){var e=r.getCache(r.CExpatJS)[t];if(!e.hasOwnProperty("startElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::startElement.";e.startElement()},1404:function(t){var e=r.getCache(r.CExpatJS)[t];if(!e.hasOwnProperty("endElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::endElement.";e.endElement()},1616:function(t){var e=r.getCache(r.CExpatJS)[t];if(!e.hasOwnProperty("characterData"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::characterData.";e.characterData()}};D.push({func:function(){lt()}});var Q={splitPath:function(t){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(t).slice(1)},normalizeArray:function(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n;n--)t.unshift("..");return t},normalize:function(t){var e="/"===t.charAt(0),n="/"===t.substr(-1);return(t=Q.normalizeArray(t.split("/").filter(function(t){return!!t}),!e).join("/"))||e||(t="."),t&&n&&(t+="/"),(e?"/":"")+t},dirname:function(t){var e=Q.splitPath(t),n=e[0],r=e[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},basename:function(t){if("/"===t)return"/";var e=t.lastIndexOf("/");return-1===e?t:t.substr(e+1)},extname:function(t){return Q.splitPath(t)[3]},join:function(){var t=Array.prototype.slice.call(arguments,0);return Q.normalize(t.join("/"))},join2:function(t,e){return Q.normalize(t+"/"+e)}};function W(t){return r.___errno_location&&(y[r.___errno_location()>>2]=t),t}var X={resolve:function(){for(var t="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var r=n>=0?arguments[n]:tt.cwd();if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");if(!r)return"";t=r+"/"+t,e="/"===r.charAt(0)}return(e?"/":"")+(t=Q.normalizeArray(t.split("/").filter(function(t){return!!t}),!e).join("/"))||"."},relative:function(t,e){function n(t){for(var e=0;e=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=X.resolve(t).substr(1),e=X.resolve(e).substr(1);for(var r=n(t.split("/")),i=n(e.split("/")),o=Math.min(r.length,i.length),a=o,s=0;s0&&(l(b(t.output,0)),t.output=[])}},default_tty1_ops:{put_char:function(t,e){null===e||10===e?(h(b(t.output,0)),t.output=[]):0!=e&&t.output.push(e)},flush:function(t){t.output&&t.output.length>0&&(h(b(t.output,0)),t.output=[])}}},K={ops_table:null,mount:function(t){return K.createNode(null,"/",16895,0)},createNode:function(t,e,n,r){if(tt.isBlkdev(n)||tt.isFIFO(n))throw new tt.ErrnoError(63);K.ops_table||(K.ops_table={dir:{node:{getattr:K.node_ops.getattr,setattr:K.node_ops.setattr,lookup:K.node_ops.lookup,mknod:K.node_ops.mknod,rename:K.node_ops.rename,unlink:K.node_ops.unlink,rmdir:K.node_ops.rmdir,readdir:K.node_ops.readdir,symlink:K.node_ops.symlink},stream:{llseek:K.stream_ops.llseek}},file:{node:{getattr:K.node_ops.getattr,setattr:K.node_ops.setattr},stream:{llseek:K.stream_ops.llseek,read:K.stream_ops.read,write:K.stream_ops.write,allocate:K.stream_ops.allocate,mmap:K.stream_ops.mmap,msync:K.stream_ops.msync}},link:{node:{getattr:K.node_ops.getattr,setattr:K.node_ops.setattr,readlink:K.node_ops.readlink},stream:{}},chrdev:{node:{getattr:K.node_ops.getattr,setattr:K.node_ops.setattr},stream:tt.chrdev_stream_ops}});var i=tt.createNode(t,e,n,r);return tt.isDir(i.mode)?(i.node_ops=K.ops_table.dir.node,i.stream_ops=K.ops_table.dir.stream,i.contents={}):tt.isFile(i.mode)?(i.node_ops=K.ops_table.file.node,i.stream_ops=K.ops_table.file.stream,i.usedBytes=0,i.contents=null):tt.isLink(i.mode)?(i.node_ops=K.ops_table.link.node,i.stream_ops=K.ops_table.link.stream):tt.isChrdev(i.mode)&&(i.node_ops=K.ops_table.chrdev.node,i.stream_ops=K.ops_table.chrdev.stream),i.timestamp=Date.now(),t&&(t.contents[e]=i),i},getFileDataAsRegularArray:function(t){if(t.contents&&t.contents.subarray){for(var e=[],n=0;n=e)){e=Math.max(e,n*(n<1048576?2:1.125)|0),0!=n&&(e=Math.max(e,256));var r=t.contents;t.contents=new Uint8Array(e),t.usedBytes>0&&t.contents.set(r.subarray(0,t.usedBytes),0)}},resizeFileStorage:function(t,e){if(t.usedBytes!=e){if(0==e)return t.contents=null,void(t.usedBytes=0);if(!t.contents||t.contents.subarray){var n=t.contents;return t.contents=new Uint8Array(e),n&&t.contents.set(n.subarray(0,Math.min(e,t.usedBytes))),void(t.usedBytes=e)}if(t.contents||(t.contents=[]),t.contents.length>e)t.contents.length=e;else for(;t.contents.length=t.node.usedBytes)return 0;var a=Math.min(t.node.usedBytes-i,r);if(a>8&&o.subarray)e.set(o.subarray(i,i+a),n);else for(var s=0;s0||i+r8)throw new tt.ErrnoError(32);for(var i=Q.normalizeArray(t.split("/").filter(function(t){return!!t}),!1),o=tt.root,a="/",s=0;s40)throw new tt.ErrnoError(32)}}return{path:a,node:o}},getPath:function(t){for(var e;;){if(tt.isRoot(t)){var n=t.mount.mountpoint;return e?"/"!==n[n.length-1]?n+"/"+e:n+e:n}e=e?t.name+"/"+e:t.name,t=t.parent}},hashName:function(t,e){for(var n=0,r=0;r>>0)%tt.nameTable.length},hashAddNode:function(t){var e=tt.hashName(t.parent.id,t.name);t.name_next=tt.nameTable[e],tt.nameTable[e]=t},hashRemoveNode:function(t){var e=tt.hashName(t.parent.id,t.name);if(tt.nameTable[e]===t)tt.nameTable[e]=t.name_next;else for(var n=tt.nameTable[e];n;){if(n.name_next===t){n.name_next=t.name_next;break}n=n.name_next}},lookupNode:function(t,e){var n=tt.mayLookup(t);if(n)throw new tt.ErrnoError(n,t);for(var r=tt.hashName(t.id,e),i=tt.nameTable[r];i;i=i.name_next)if(i.parent.id===t.id&&i.name===e)return i;return tt.lookup(t,e)},createNode:function(t,e,n,r){tt.FSNode||(tt.FSNode=function(t,e,n,r){t||(t=this),this.parent=t,this.mount=t.mount,this.mounted=null,this.id=tt.nextInode++,this.name=e,this.mode=n,this.node_ops={},this.stream_ops={},this.rdev=r},tt.FSNode.prototype={},Object.defineProperties(tt.FSNode.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(t){t?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(t){t?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return tt.isDir(this.mode)}},isDevice:{get:function(){return tt.isChrdev(this.mode)}}}));var i=new tt.FSNode(t,e,n,r);return tt.hashAddNode(i),i},destroyNode:function(t){tt.hashRemoveNode(t)},isRoot:function(t){return t===t.parent},isMountpoint:function(t){return!!t.mounted},isFile:function(t){return 32768==(61440&t)},isDir:function(t){return 16384==(61440&t)},isLink:function(t){return 40960==(61440&t)},isChrdev:function(t){return 8192==(61440&t)},isBlkdev:function(t){return 24576==(61440&t)},isFIFO:function(t){return 4096==(61440&t)},isSocket:function(t){return 49152==(49152&t)},flagModes:{r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function(t){var e=tt.flagModes[t];if(void 0===e)throw new Error("Unknown file open mode: "+t);return e},flagsToPermissionString:function(t){var e=["r","w","rw"][3&t];return 512&t&&(e+="w"),e},nodePermissions:function(t,e){return tt.ignorePermissions||(-1===e.indexOf("r")||292&t.mode)&&(-1===e.indexOf("w")||146&t.mode)&&(-1===e.indexOf("x")||73&t.mode)?0:2},mayLookup:function(t){return tt.nodePermissions(t,"x")||(t.node_ops.lookup?0:2)},mayCreate:function(t,e){try{return tt.lookupNode(t,e),20}catch(n){}return tt.nodePermissions(t,"wx")},mayDelete:function(t,e,n){var r;try{r=tt.lookupNode(t,e)}catch(o){return o.errno}var i=tt.nodePermissions(t,"wx");if(i)return i;if(n){if(!tt.isDir(r.mode))return 54;if(tt.isRoot(r)||tt.getPath(r)===tt.cwd())return 10}else if(tt.isDir(r.mode))return 31;return 0},mayOpen:function(t,e){return t?tt.isLink(t.mode)?32:tt.isDir(t.mode)&&("r"!==tt.flagsToPermissionString(e)||512&e)?31:tt.nodePermissions(t,tt.flagsToPermissionString(e)):44},MAX_OPEN_FDS:4096,nextfd:function(t,e){e=e||tt.MAX_OPEN_FDS;for(var n=t=t||0;n<=e;n++)if(!tt.streams[n])return n;throw new tt.ErrnoError(33)},getStream:function(t){return tt.streams[t]},createStream:function(t,e,n){tt.FSStream||(tt.FSStream=function(){},tt.FSStream.prototype={},Object.defineProperties(tt.FSStream.prototype,{object:{get:function(){return this.node},set:function(t){this.node=t}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}}));var r=new tt.FSStream;for(var i in t)r[i]=t[i];t=r;var o=tt.nextfd(e,n);return t.fd=o,tt.streams[o]=t,t},closeStream:function(t){tt.streams[t]=null},chrdev_stream_ops:{open:function(t){var e=tt.getDevice(t.node.rdev);t.stream_ops=e.stream_ops,t.stream_ops.open&&t.stream_ops.open(t)},llseek:function(){throw new tt.ErrnoError(70)}},major:function(t){return t>>8},minor:function(t){return 255&t},makedev:function(t,e){return t<<8|e},registerDevice:function(t,e){tt.devices[t]={stream_ops:e}},getDevice:function(t){return tt.devices[t]},getMounts:function(t){for(var e=[],n=[t];n.length;){var r=n.pop();e.push(r),n.push.apply(n,r.mounts)}return e},syncfs:function(t,e){"function"==typeof t&&(e=t,t=!1),tt.syncFSRequests++,tt.syncFSRequests>1&&h("warning: "+tt.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var n=tt.getMounts(tt.root.mount),r=0;function i(t){return tt.syncFSRequests--,e(t)}function o(t){if(t)return o.errored?void 0:(o.errored=!0,i(t));++r>=n.length&&i(null)}n.forEach(function(e){if(!e.type.syncfs)return o(null);e.type.syncfs(e,t,o)})},mount:function(t,e,n){var r,i="/"===n,o=!n;if(i&&tt.root)throw new tt.ErrnoError(10);if(!i&&!o){var a=tt.lookupPath(n,{follow_mount:!1});if(n=a.path,tt.isMountpoint(r=a.node))throw new tt.ErrnoError(10);if(!tt.isDir(r.mode))throw new tt.ErrnoError(54)}var s={type:t,opts:e,mountpoint:n,mounts:[]},u=t.mount(s);return u.mount=s,s.root=u,i?tt.root=u:r&&(r.mounted=s,r.mount&&r.mount.mounts.push(s)),u},unmount:function(t){var e=tt.lookupPath(t,{follow_mount:!1});if(!tt.isMountpoint(e.node))throw new tt.ErrnoError(28);var n=e.node,r=n.mounted,i=tt.getMounts(r);Object.keys(tt.nameTable).forEach(function(t){for(var e=tt.nameTable[t];e;){var n=e.name_next;-1!==i.indexOf(e.mount)&&tt.destroyNode(e),e=n}}),n.mounted=null;var o=n.mount.mounts.indexOf(r);n.mount.mounts.splice(o,1)},lookup:function(t,e){return t.node_ops.lookup(t,e)},mknod:function(t,e,n){var r=tt.lookupPath(t,{parent:!0}).node,i=Q.basename(t);if(!i||"."===i||".."===i)throw new tt.ErrnoError(28);var o=tt.mayCreate(r,i);if(o)throw new tt.ErrnoError(o);if(!r.node_ops.mknod)throw new tt.ErrnoError(63);return r.node_ops.mknod(r,i,e,n)},create:function(t,e){return e=void 0!==e?e:438,e&=4095,tt.mknod(t,e|=32768,0)},mkdir:function(t,e){return e=void 0!==e?e:511,e&=1023,tt.mknod(t,e|=16384,0)},mkdirTree:function(t,e){for(var n=t.split("/"),r="",i=0;ithis.length-1||t<0)){var e=t%this.chunkSize;return this.getter(t/this.chunkSize|0)[e]}},o.prototype.setDataGetter=function(t){this.getter=t},o.prototype.cacheLength=function(){var t=new XMLHttpRequest;if(t.open("HEAD",n,!1),t.send(null),!(t.status>=200&&t.status<300||304===t.status))throw new Error("Couldn't load "+n+". Status: "+t.status);var e,r=Number(t.getResponseHeader("Content-length")),i=(e=t.getResponseHeader("Accept-Ranges"))&&"bytes"===e,o=(e=t.getResponseHeader("Content-Encoding"))&&"gzip"===e,a=1048576;i||(a=r);var s=this;s.setDataGetter(function(t){var e=t*a,i=(t+1)*a-1;if(i=Math.min(i,r-1),void 0===s.chunks[t]&&(s.chunks[t]=function(t,e){if(t>e)throw new Error("invalid range ("+t+", "+e+") or no bytes requested!");if(e>r-1)throw new Error("only "+r+" bytes available! programmer error!");var i=new XMLHttpRequest;if(i.open("GET",n,!1),r!==a&&i.setRequestHeader("Range","bytes="+t+"-"+e),"undefined"!=typeof Uint8Array&&(i.responseType="arraybuffer"),i.overrideMimeType&&i.overrideMimeType("text/plain; charset=x-user-defined"),i.send(null),!(i.status>=200&&i.status<300||304===i.status))throw new Error("Couldn't load "+n+". Status: "+i.status);return void 0!==i.response?new Uint8Array(i.response||[]):at(i.responseText||"",!0)}(e,i)),void 0===s.chunks[t])throw new Error("doXHR failed!");return s.chunks[t]}),!o&&r||(a=r=1,r=this.getter(0).length,a=r,l("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=r,this._chunkSize=a,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var a,s=tt.createFile(t,e,a={isDevice:!1,url:n},r,i);a.contents?s.contents=a.contents:a.url&&(s.contents=null,s.url=a.url),Object.defineProperties(s,{usedBytes:{get:function(){return this.contents.length}}});var u={};return Object.keys(s.stream_ops).forEach(function(t){var e=s.stream_ops[t];u[t]=function(){if(!tt.forceLoadFile(s))throw new tt.ErrnoError(29);return e.apply(null,arguments)}}),u.read=function(t,e,n,r,i){if(!tt.forceLoadFile(s))throw new tt.ErrnoError(29);var o=t.node.contents;if(i>=o.length)return 0;var a=Math.min(o.length-i,r);if(o.slice)for(var u=0;u>2]=r.dev,y[n+4>>2]=0,y[n+8>>2]=r.ino,y[n+12>>2]=r.mode,y[n+16>>2]=r.nlink,y[n+20>>2]=r.uid,y[n+24>>2]=r.gid,y[n+28>>2]=r.rdev,y[n+32>>2]=0,G=[r.size>>>0,(z=r.size,+M(z)>=1?z>0?(0|R(+L(z/4294967296),4294967295))>>>0:~~+O((z-+(~~z>>>0))/4294967296)>>>0:0)],y[n+40>>2]=G[0],y[n+44>>2]=G[1],y[n+48>>2]=4096,y[n+52>>2]=r.blocks,y[n+56>>2]=r.atime.getTime()/1e3|0,y[n+60>>2]=0,y[n+64>>2]=r.mtime.getTime()/1e3|0,y[n+68>>2]=0,y[n+72>>2]=r.ctime.getTime()/1e3|0,y[n+76>>2]=0,G=[r.ino>>>0,(z=r.ino,+M(z)>=1?z>0?(0|R(+L(z/4294967296),4294967295))>>>0:~~+O((z-+(~~z>>>0))/4294967296)>>>0:0)],y[n+80>>2]=G[0],y[n+84>>2]=G[1],0},doMsync:function(t,e,n,r,i){var o=m.slice(t,t+n);tt.msync(e,o,i,n,r)},doMkdir:function(t,e){return"/"===(t=Q.normalize(t))[t.length-1]&&(t=t.substr(0,t.length-1)),tt.mkdir(t,e,0),0},doMknod:function(t,e,n){switch(61440&e){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return tt.mknod(t,e,n),0},doReadlink:function(t,e,n){if(n<=0)return-28;var r=tt.readlink(t),i=Math.min(n,T(r)),o=v[e+i];return E(r,m,e,n+1),v[e+i]=o,i},doAccess:function(t,e){if(-8&e)return-28;var n;if(!(n=tt.lookupPath(t,{follow:!0}).node))return-44;var r="";return 4&e&&(r+="r"),2&e&&(r+="w"),1&e&&(r+="x"),r&&tt.nodePermissions(n,r)?-2:0},doDup:function(t,e,n){var r=tt.getStream(n);return r&&tt.close(r),tt.open(t,e,0,n,n).fd},doReadv:function(t,e,n,r){for(var i=0,o=0;o>2],s=tt.read(t,v,y[e+8*o>>2],a,r);if(s<0)return-1;if(i+=s,s>2],y[e+(8*o+4)>>2],r);if(a<0)return-1;i+=a}return i},varargs:0,get:function(t){return et.varargs+=4,y[et.varargs-4>>2]},getStr:function(){return x(et.get())},getStreamFromFD:function(t){void 0===t&&(t=et.get());var e=tt.getStream(t);if(!e)throw new tt.ErrnoError(8);return e},get64:function(){var t=et.get();return et.get(),t},getZero:function(){et.get()}};function nt(t){try{return c.grow(t-g.byteLength+65535>>16),A(c.buffer),1}catch(e){}}var rt={};function it(){if(!it.strings){var t={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",_:a||"./this.program"};for(var e in rt)t[e]=rt[e];var n=[];for(var e in t)n.push(e+"="+t[e]);it.strings=n}return it.strings}function ot(t,e){ot.array||(ot.array=[]);var n,r=ot.array;for(r.length=0;n=m[t++];)100===n||102===n?(r.push(_[(e=e+7&-8)>>3]),e+=8):(r.push(y[(e=e+3&-4)>>2]),e+=4);return r}function at(t,e,n){var r=n>0?n:T(t)+1,i=new Array(r),o=E(t,i,0,i.length);return e&&(i.length=o),i}tt.staticInit();var st={h:function(t,e){et.varargs=e;try{return 42}catch(n){return void 0!==tt&&n instanceof tt.ErrnoError||j(n),-n.errno}},e:function(){j()},a:function(t,e,n){var r=ot(e,n);return H[t].apply(null,r)},c:function(t,e,n){m.set(m.subarray(e,e+n),t)},d:function(t){var e=m.length;if(t>2147418112)return!1;for(var n,r=1;r<=4;r*=2){var i=e*(1+.2/r);if(i=Math.min(i,t+100663296),nt(Math.min(2147418112,((n=Math.max(16777216,t,i))%65536>0&&(n+=65536-n%65536),n))))return!0}return!1},f:function(t,e){var n=it(),r=0;return n.forEach(function(n,i){var o=e+r;y[t+4*i>>2]=o,function(t,e,n){for(var r=0;r>0]=t.charCodeAt(r);v[e>>0]=0}(n,o),r+=n.length+1}),0},g:function(t,e){var n=it();y[t>>2]=n.length;var r=0;return n.forEach(function(t){r+=t.length+1}),y[e>>2]=r,0},j:function(t){try{var e=et.getStreamFromFD(t);return tt.close(e),0}catch(n){return void 0!==tt&&n instanceof tt.ErrnoError||j(n),n.errno}},i:function(t,e,n,r,i){try{var o=et.getStreamFromFD(t),a=4294967296*n+(e>>>0);return a<=-9007199254740992||a>=9007199254740992?-61:(tt.llseek(o,a,r),G=[o.position>>>0,(z=o.position,+M(z)>=1?z>0?(0|R(+L(z/4294967296),4294967295))>>>0:~~+O((z-+(~~z>>>0))/4294967296)>>>0:0)],y[i>>2]=G[0],y[i+4>>2]=G[1],o.getdents&&0===a&&0===r&&(o.getdents=null),0)}catch(s){return void 0!==tt&&s instanceof tt.ErrnoError||j(s),s.errno}},b:function(t,e,n,r){try{var i=et.getStreamFromFD(t),o=et.doWritev(i,e,n);return y[r>>2]=o,0}catch(a){return void 0!==tt&&a instanceof tt.ErrnoError||j(a),a.errno}},k:function(t){var e=Date.now();return y[t>>2]=e/1e3|0,y[t+4>>2]=e%1e3*1e3|0,0},memory:c,table:f},ut=function(){var t={a:st};function e(t,e){r.asm=t.exports,q()}function n(t){e(t.instance)}function i(e){return(u||"function"!=typeof fetch?new Promise(function(t,e){t(V())}):fetch(J,{credentials:"same-origin"}).then(function(t){if(!t.ok)throw"failed to load wasm binary file at '"+J+"'";return t.arrayBuffer()}).catch(function(){return V()})).then(function(e){return WebAssembly.instantiate(e,t)}).then(e,function(t){h("failed to asynchronously prepare wasm: "+t),j(t)})}if(F(),r.instantiateWasm)try{return r.instantiateWasm(t,e)}catch(o){return h("Module.instantiateWasm callback failed with error: "+o),!1}return function(){if(u||"function"!=typeof WebAssembly.instantiateStreaming||Y(J)||"function"!=typeof fetch)return i(n);fetch(J,{credentials:"same-origin"}).then(function(e){return WebAssembly.instantiateStreaming(e,t).then(n,function(t){h("wasm streaming compile failed: "+t),h("falling back to ArrayBuffer instantiation"),i(n)})})}(),{}}();r.asm=ut;var ct,lt=r.___wasm_call_ctors=function(){return(lt=r.___wasm_call_ctors=r.asm.l).apply(null,arguments)},ht=r._emscripten_bind_CExpat_CExpat_0=function(){return(ht=r._emscripten_bind_CExpat_CExpat_0=r.asm.m).apply(null,arguments)},ft=r._emscripten_bind_CExpat_create_0=function(){return(ft=r._emscripten_bind_CExpat_create_0=r.asm.n).apply(null,arguments)},dt=r._emscripten_bind_CExpat_destroy_0=function(){return(dt=r._emscripten_bind_CExpat_destroy_0=r.asm.o).apply(null,arguments)},pt=r._emscripten_bind_CExpat_parse_1=function(){return(pt=r._emscripten_bind_CExpat_parse_1=r.asm.p).apply(null,arguments)},gt=r._emscripten_bind_CExpat_tag_0=function(){return(gt=r._emscripten_bind_CExpat_tag_0=r.asm.q).apply(null,arguments)},vt=r._emscripten_bind_CExpat_attrs_0=function(){return(vt=r._emscripten_bind_CExpat_attrs_0=r.asm.r).apply(null,arguments)},mt=r._emscripten_bind_CExpat_content_0=function(){return(mt=r._emscripten_bind_CExpat_content_0=r.asm.s).apply(null,arguments)},yt=r._emscripten_bind_CExpat_startElement_0=function(){return(yt=r._emscripten_bind_CExpat_startElement_0=r.asm.t).apply(null,arguments)},_t=r._emscripten_bind_CExpat_endElement_0=function(){return(_t=r._emscripten_bind_CExpat_endElement_0=r.asm.u).apply(null,arguments)},wt=r._emscripten_bind_CExpat_characterData_0=function(){return(wt=r._emscripten_bind_CExpat_characterData_0=r.asm.v).apply(null,arguments)},bt=r._emscripten_bind_CExpat___destroy___0=function(){return(bt=r._emscripten_bind_CExpat___destroy___0=r.asm.w).apply(null,arguments)},xt=r._emscripten_bind_CExpatJS_CExpatJS_0=function(){return(xt=r._emscripten_bind_CExpatJS_CExpatJS_0=r.asm.x).apply(null,arguments)},Et=r._emscripten_bind_CExpatJS_startElement_0=function(){return(Et=r._emscripten_bind_CExpatJS_startElement_0=r.asm.y).apply(null,arguments)},Tt=r._emscripten_bind_CExpatJS_endElement_0=function(){return(Tt=r._emscripten_bind_CExpatJS_endElement_0=r.asm.z).apply(null,arguments)},At=r._emscripten_bind_CExpatJS_characterData_0=function(){return(At=r._emscripten_bind_CExpatJS_characterData_0=r.asm.A).apply(null,arguments)},St=r._emscripten_bind_CExpatJS___destroy___0=function(){return(St=r._emscripten_bind_CExpatJS___destroy___0=r.asm.B).apply(null,arguments)},kt=r._emscripten_bind_VoidPtr___destroy___0=function(){return(kt=r._emscripten_bind_VoidPtr___destroy___0=r.asm.C).apply(null,arguments)},It=r._malloc=function(){return(It=r._malloc=r.asm.D).apply(null,arguments)};function Dt(t){function e(){ct||(ct=!0,d||(Z=!0,r.noFSInit||tt.init.initialized||tt.init(),$.init(),k(D),tt.ignorePermissions=!1,k(N),r.onRuntimeInitialized&&r.onRuntimeInitialized(),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)t=r.postRun.shift(),C.unshift(t);var t;k(C)}()))}U>0||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)t=r.preRun.shift(),I.unshift(t);var t;k(I)}(),U>0||(r.setStatus?(r.setStatus("Running..."),setTimeout(function(){setTimeout(function(){r.setStatus("")},1),e()},1)):e()))}if(r._free=function(){return(r._free=r.asm.E).apply(null,arguments)},r.___errno_location=function(){return(r.___errno_location=r.asm.F).apply(null,arguments)},r.stackAlloc=function(){return(r.stackAlloc=r.asm.G).apply(null,arguments)},r.dynCall_vi=function(){return(r.dynCall_vi=r.asm.H).apply(null,arguments)},r.asm=ut,r.then=function(t){if(ct)t(r);else{var e=r.onRuntimeInitialized;r.onRuntimeInitialized=function(){e&&e(),t(r)}}return r},P=function t(){ct||Dt(),ct||(P=t)},r.run=Dt,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();function Nt(){}function Ct(t){return(t||Nt).__cache__}function Zt(t,e){var n=Ct(e),r=n[t];return r||((r=Object.create((e||Nt).prototype)).ptr=t,n[t]=r)}Dt(),(Nt.prototype=Object.create(Nt.prototype)).constructor=Nt,Nt.prototype.__class__=Nt,Nt.__cache__={},r.WrapperObject=Nt,r.getCache=Ct,r.wrapPointer=Zt,r.castObject=function(t,e){return Zt(t.ptr,e)},r.NULL=Zt(0),r.destroy=function(t){if(!t.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";t.__destroy__(),delete Ct(t.__class__)[t.ptr]},r.compare=function(t,e){return t.ptr===e.ptr},r.getPointer=function(t){return t.ptr},r.getClass=function(t){return t.__class__};var Mt={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(Mt.needed){for(var t=0;t=Mt.size?(p(i>0),Mt.needed+=i,n=r._malloc(i),Mt.temps.push(n)):(n=Mt.buffer+Mt.pos,Mt.pos+=i),n},copy:function(t,e,n){var r=n;switch(e.BYTES_PER_ELEMENT){case 2:r>>=1;break;case 4:r>>=2;break;case 8:r>>=3}for(var i=0;i=r);)++i;if(i-e>16&&t.subarray&&A)return A.decode(t.subarray(e,i));for(var o="";e>10,56320|1023&c)}}else o+=String.fromCharCode((31&a)<<6|s)}else o+=String.fromCharCode(a)}return o}function k(t,e){return t?S(b,t,e):""}function I(t,e,n,r){if(!(r>0))return 0;for(var i=n,o=n+r-1,a=0;a=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&t.charCodeAt(++a)),s<=127){if(n>=o)break;e[n++]=s}else if(s<=2047){if(n+1>=o)break;e[n++]=192|s>>6,e[n++]=128|63&s}else if(s<=65535){if(n+2>=o)break;e[n++]=224|s>>12,e[n++]=128|s>>6&63,e[n++]=128|63&s}else{if(n+3>=o)break;e[n++]=240|s>>18,e[n++]=128|s>>12&63,e[n++]=128|s>>6&63,e[n++]=128|63&s}}return e[n]=0,n-i}function D(t){for(var e=0,n=0;n=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&t.charCodeAt(++n)),r<=127?++e:e+=r<=2047?2:r<=65535?3:4}return e}function N(t){_=t,r.HEAP8=w=new Int8Array(t),r.HEAP16=x=new Int16Array(t),r.HEAP32=E=new Int32Array(t),r.HEAPU8=b=new Uint8Array(t),r.HEAPU16=new Uint16Array(t),r.HEAPU32=new Uint32Array(t),r.HEAPF32=new Float32Array(t),r.HEAPF64=T=new Float64Array(t)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var C=r.TOTAL_MEMORY||16777216;function Z(t){for(;t.length>0;){var e=t.shift();if("function"!=typeof e){var n=e.func;"number"==typeof n?void 0===e.arg?r.dynCall_v(n):r.dynCall_vi(n,e.arg):n(void 0===e.arg?null:e.arg)}else e()}}(d=r.wasmMemory?r.wasmMemory:new WebAssembly.Memory({initial:C/65536}))&&(_=d.buffer),C=_.byteLength,N(_),E[54772]=5462128;var M=[],O=[],L=[],R=[],U=!1,P=Math.abs,F=Math.ceil,q=Math.floor,j=Math.min,Y=0,B=null;function z(t){Y++,r.monitorRunDependencies&&r.monitorRunDependencies(Y)}function G(t){if(Y--,r.monitorRunDependencies&&r.monitorRunDependencies(Y),0==Y&&B){var e=B;B=null,e()}}function J(t){throw r.onAbort&&r.onAbort(t),c(t+=""),l(t),m=!0,t="abort("+t+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(t)}function V(t){return String.prototype.startsWith?t.startsWith("data:application/octet-stream;base64,"):0===t.indexOf("data:application/octet-stream;base64,")}r.preloadedImages={},r.preloadedAudios={};var H,Q,W,X="graphvizlib.wasm";function $(){try{if(h)return new Uint8Array(h);throw"both async and sync fetching of the wasm failed"}catch(l){J(l)}}V(X)||(H=X,X=r.locateFile?r.locateFile(H,u):u+H);var K={1088:function(t,e){var n=k(t),r=k(e);at.createPath("/",nt.dirname(n)),at.writeFile(nt.join("/",n),r)}};function tt(){J()}function et(t){return r.___errno_location&&(E[r.___errno_location()>>2]=t),t}O.push({func:function(){Et()}});var nt={splitPath:function(t){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(t).slice(1)},normalizeArray:function(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n;n--)t.unshift("..");return t},normalize:function(t){var e="/"===t.charAt(0),n="/"===t.substr(-1);return(t=nt.normalizeArray(t.split("/").filter(function(t){return!!t}),!e).join("/"))||e||(t="."),t&&n&&(t+="/"),(e?"/":"")+t},dirname:function(t){var e=nt.splitPath(t),n=e[0],r=e[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},basename:function(t){if("/"===t)return"/";var e=t.lastIndexOf("/");return-1===e?t:t.substr(e+1)},extname:function(t){return nt.splitPath(t)[3]},join:function(){var t=Array.prototype.slice.call(arguments,0);return nt.normalize(t.join("/"))},join2:function(t,e){return nt.normalize(t+"/"+e)}},rt={resolve:function(){for(var t="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var r=n>=0?arguments[n]:at.cwd();if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");if(!r)return"";t=r+"/"+t,e="/"===r.charAt(0)}return(e?"/":"")+(t=nt.normalizeArray(t.split("/").filter(function(t){return!!t}),!e).join("/"))||"."},relative:function(t,e){function n(t){for(var e=0;e=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=rt.resolve(t).substr(1),e=rt.resolve(e).substr(1);for(var r=n(t.split("/")),i=n(e.split("/")),o=Math.min(r.length,i.length),a=o,s=0;s0&&(c(S(t.output,0)),t.output=[])}},default_tty1_ops:{put_char:function(t,e){null===e||10===e?(l(S(t.output,0)),t.output=[]):0!=e&&t.output.push(e)},flush:function(t){t.output&&t.output.length>0&&(l(S(t.output,0)),t.output=[])}}},ot={ops_table:null,mount:function(t){return ot.createNode(null,"/",16895,0)},createNode:function(t,e,n,r){if(at.isBlkdev(n)||at.isFIFO(n))throw new at.ErrnoError(63);ot.ops_table||(ot.ops_table={dir:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr,lookup:ot.node_ops.lookup,mknod:ot.node_ops.mknod,rename:ot.node_ops.rename,unlink:ot.node_ops.unlink,rmdir:ot.node_ops.rmdir,readdir:ot.node_ops.readdir,symlink:ot.node_ops.symlink},stream:{llseek:ot.stream_ops.llseek}},file:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr},stream:{llseek:ot.stream_ops.llseek,read:ot.stream_ops.read,write:ot.stream_ops.write,allocate:ot.stream_ops.allocate,mmap:ot.stream_ops.mmap,msync:ot.stream_ops.msync}},link:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr,readlink:ot.node_ops.readlink},stream:{}},chrdev:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr},stream:at.chrdev_stream_ops}});var i=at.createNode(t,e,n,r);return at.isDir(i.mode)?(i.node_ops=ot.ops_table.dir.node,i.stream_ops=ot.ops_table.dir.stream,i.contents={}):at.isFile(i.mode)?(i.node_ops=ot.ops_table.file.node,i.stream_ops=ot.ops_table.file.stream,i.usedBytes=0,i.contents=null):at.isLink(i.mode)?(i.node_ops=ot.ops_table.link.node,i.stream_ops=ot.ops_table.link.stream):at.isChrdev(i.mode)&&(i.node_ops=ot.ops_table.chrdev.node,i.stream_ops=ot.ops_table.chrdev.stream),i.timestamp=Date.now(),t&&(t.contents[e]=i),i},getFileDataAsRegularArray:function(t){if(t.contents&&t.contents.subarray){for(var e=[],n=0;n=e)){e=Math.max(e,n*(n<1048576?2:1.125)|0),0!=n&&(e=Math.max(e,256));var r=t.contents;t.contents=new Uint8Array(e),t.usedBytes>0&&t.contents.set(r.subarray(0,t.usedBytes),0)}},resizeFileStorage:function(t,e){if(t.usedBytes!=e){if(0==e)return t.contents=null,void(t.usedBytes=0);if(!t.contents||t.contents.subarray){var n=t.contents;return t.contents=new Uint8Array(e),n&&t.contents.set(n.subarray(0,Math.min(e,t.usedBytes))),void(t.usedBytes=e)}if(t.contents||(t.contents=[]),t.contents.length>e)t.contents.length=e;else for(;t.contents.length=t.node.usedBytes)return 0;var a=Math.min(t.node.usedBytes-i,r);if(a>8&&o.subarray)e.set(o.subarray(i,i+a),n);else for(var s=0;s0||i+r8)throw new at.ErrnoError(32);for(var i=nt.normalizeArray(t.split("/").filter(function(t){return!!t}),!1),o=at.root,a="/",s=0;s40)throw new at.ErrnoError(32)}}return{path:a,node:o}},getPath:function(t){for(var e;;){if(at.isRoot(t)){var n=t.mount.mountpoint;return e?"/"!==n[n.length-1]?n+"/"+e:n+e:n}e=e?t.name+"/"+e:t.name,t=t.parent}},hashName:function(t,e){for(var n=0,r=0;r>>0)%at.nameTable.length},hashAddNode:function(t){var e=at.hashName(t.parent.id,t.name);t.name_next=at.nameTable[e],at.nameTable[e]=t},hashRemoveNode:function(t){var e=at.hashName(t.parent.id,t.name);if(at.nameTable[e]===t)at.nameTable[e]=t.name_next;else for(var n=at.nameTable[e];n;){if(n.name_next===t){n.name_next=t.name_next;break}n=n.name_next}},lookupNode:function(t,e){var n=at.mayLookup(t);if(n)throw new at.ErrnoError(n,t);for(var r=at.hashName(t.id,e),i=at.nameTable[r];i;i=i.name_next)if(i.parent.id===t.id&&i.name===e)return i;return at.lookup(t,e)},createNode:function(t,e,n,r){at.FSNode||(at.FSNode=function(t,e,n,r){t||(t=this),this.parent=t,this.mount=t.mount,this.mounted=null,this.id=at.nextInode++,this.name=e,this.mode=n,this.node_ops={},this.stream_ops={},this.rdev=r},at.FSNode.prototype={},Object.defineProperties(at.FSNode.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(t){t?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(t){t?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return at.isDir(this.mode)}},isDevice:{get:function(){return at.isChrdev(this.mode)}}}));var i=new at.FSNode(t,e,n,r);return at.hashAddNode(i),i},destroyNode:function(t){at.hashRemoveNode(t)},isRoot:function(t){return t===t.parent},isMountpoint:function(t){return!!t.mounted},isFile:function(t){return 32768==(61440&t)},isDir:function(t){return 16384==(61440&t)},isLink:function(t){return 40960==(61440&t)},isChrdev:function(t){return 8192==(61440&t)},isBlkdev:function(t){return 24576==(61440&t)},isFIFO:function(t){return 4096==(61440&t)},isSocket:function(t){return 49152==(49152&t)},flagModes:{r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function(t){var e=at.flagModes[t];if(void 0===e)throw new Error("Unknown file open mode: "+t);return e},flagsToPermissionString:function(t){var e=["r","w","rw"][3&t];return 512&t&&(e+="w"),e},nodePermissions:function(t,e){return at.ignorePermissions||(-1===e.indexOf("r")||292&t.mode)&&(-1===e.indexOf("w")||146&t.mode)&&(-1===e.indexOf("x")||73&t.mode)?0:2},mayLookup:function(t){return at.nodePermissions(t,"x")||(t.node_ops.lookup?0:2)},mayCreate:function(t,e){try{return at.lookupNode(t,e),20}catch(n){}return at.nodePermissions(t,"wx")},mayDelete:function(t,e,n){var r;try{r=at.lookupNode(t,e)}catch(o){return o.errno}var i=at.nodePermissions(t,"wx");if(i)return i;if(n){if(!at.isDir(r.mode))return 54;if(at.isRoot(r)||at.getPath(r)===at.cwd())return 10}else if(at.isDir(r.mode))return 31;return 0},mayOpen:function(t,e){return t?at.isLink(t.mode)?32:at.isDir(t.mode)&&("r"!==at.flagsToPermissionString(e)||512&e)?31:at.nodePermissions(t,at.flagsToPermissionString(e)):44},MAX_OPEN_FDS:4096,nextfd:function(t,e){e=e||at.MAX_OPEN_FDS;for(var n=t=t||0;n<=e;n++)if(!at.streams[n])return n;throw new at.ErrnoError(33)},getStream:function(t){return at.streams[t]},createStream:function(t,e,n){at.FSStream||(at.FSStream=function(){},at.FSStream.prototype={},Object.defineProperties(at.FSStream.prototype,{object:{get:function(){return this.node},set:function(t){this.node=t}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}}));var r=new at.FSStream;for(var i in t)r[i]=t[i];t=r;var o=at.nextfd(e,n);return t.fd=o,at.streams[o]=t,t},closeStream:function(t){at.streams[t]=null},chrdev_stream_ops:{open:function(t){var e=at.getDevice(t.node.rdev);t.stream_ops=e.stream_ops,t.stream_ops.open&&t.stream_ops.open(t)},llseek:function(){throw new at.ErrnoError(70)}},major:function(t){return t>>8},minor:function(t){return 255&t},makedev:function(t,e){return t<<8|e},registerDevice:function(t,e){at.devices[t]={stream_ops:e}},getDevice:function(t){return at.devices[t]},getMounts:function(t){for(var e=[],n=[t];n.length;){var r=n.pop();e.push(r),n.push.apply(n,r.mounts)}return e},syncfs:function(t,e){"function"==typeof t&&(e=t,t=!1),at.syncFSRequests++,at.syncFSRequests>1&&l("warning: "+at.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var n=at.getMounts(at.root.mount),r=0;function i(t){return at.syncFSRequests--,e(t)}function o(t){if(t)return o.errored?void 0:(o.errored=!0,i(t));++r>=n.length&&i(null)}n.forEach(function(e){if(!e.type.syncfs)return o(null);e.type.syncfs(e,t,o)})},mount:function(t,e,n){var r,i="/"===n,o=!n;if(i&&at.root)throw new at.ErrnoError(10);if(!i&&!o){var a=at.lookupPath(n,{follow_mount:!1});if(n=a.path,at.isMountpoint(r=a.node))throw new at.ErrnoError(10);if(!at.isDir(r.mode))throw new at.ErrnoError(54)}var s={type:t,opts:e,mountpoint:n,mounts:[]},u=t.mount(s);return u.mount=s,s.root=u,i?at.root=u:r&&(r.mounted=s,r.mount&&r.mount.mounts.push(s)),u},unmount:function(t){var e=at.lookupPath(t,{follow_mount:!1});if(!at.isMountpoint(e.node))throw new at.ErrnoError(28);var n=e.node,r=n.mounted,i=at.getMounts(r);Object.keys(at.nameTable).forEach(function(t){for(var e=at.nameTable[t];e;){var n=e.name_next;-1!==i.indexOf(e.mount)&&at.destroyNode(e),e=n}}),n.mounted=null;var o=n.mount.mounts.indexOf(r);n.mount.mounts.splice(o,1)},lookup:function(t,e){return t.node_ops.lookup(t,e)},mknod:function(t,e,n){var r=at.lookupPath(t,{parent:!0}).node,i=nt.basename(t);if(!i||"."===i||".."===i)throw new at.ErrnoError(28);var o=at.mayCreate(r,i);if(o)throw new at.ErrnoError(o);if(!r.node_ops.mknod)throw new at.ErrnoError(63);return r.node_ops.mknod(r,i,e,n)},create:function(t,e){return e=void 0!==e?e:438,e&=4095,at.mknod(t,e|=32768,0)},mkdir:function(t,e){return e=void 0!==e?e:511,e&=1023,at.mknod(t,e|=16384,0)},mkdirTree:function(t,e){for(var n=t.split("/"),r="",i=0;ithis.length-1||t<0)){var e=t%this.chunkSize;return this.getter(t/this.chunkSize|0)[e]}},o.prototype.setDataGetter=function(t){this.getter=t},o.prototype.cacheLength=function(){var t=new XMLHttpRequest;if(t.open("HEAD",n,!1),t.send(null),!(t.status>=200&&t.status<300||304===t.status))throw new Error("Couldn't load "+n+". Status: "+t.status);var e,r=Number(t.getResponseHeader("Content-length")),i=(e=t.getResponseHeader("Accept-Ranges"))&&"bytes"===e,o=(e=t.getResponseHeader("Content-Encoding"))&&"gzip"===e,a=1048576;i||(a=r);var s=this;s.setDataGetter(function(t){var e=t*a,i=(t+1)*a-1;if(i=Math.min(i,r-1),void 0===s.chunks[t]&&(s.chunks[t]=function(t,e){if(t>e)throw new Error("invalid range ("+t+", "+e+") or no bytes requested!");if(e>r-1)throw new Error("only "+r+" bytes available! programmer error!");var i=new XMLHttpRequest;if(i.open("GET",n,!1),r!==a&&i.setRequestHeader("Range","bytes="+t+"-"+e),"undefined"!=typeof Uint8Array&&(i.responseType="arraybuffer"),i.overrideMimeType&&i.overrideMimeType("text/plain; charset=x-user-defined"),i.send(null),!(i.status>=200&&i.status<300||304===i.status))throw new Error("Couldn't load "+n+". Status: "+i.status);return void 0!==i.response?new Uint8Array(i.response||[]):_t(i.responseText||"",!0)}(e,i)),void 0===s.chunks[t])throw new Error("doXHR failed!");return s.chunks[t]}),!o&&r||(a=r=1,r=this.getter(0).length,a=r,c("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=r,this._chunkSize=a,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var a,s=at.createFile(t,e,a={isDevice:!1,url:n},r,i);a.contents?s.contents=a.contents:a.url&&(s.contents=null,s.url=a.url),Object.defineProperties(s,{usedBytes:{get:function(){return this.contents.length}}});var u={};return Object.keys(s.stream_ops).forEach(function(t){var e=s.stream_ops[t];u[t]=function(){if(!at.forceLoadFile(s))throw new at.ErrnoError(29);return e.apply(null,arguments)}}),u.read=function(t,e,n,r,i){if(!at.forceLoadFile(s))throw new at.ErrnoError(29);var o=t.node.contents;if(i>=o.length)return 0;var a=Math.min(o.length-i,r);if(o.slice)for(var u=0;u>2]=r.dev,E[n+4>>2]=0,E[n+8>>2]=r.ino,E[n+12>>2]=r.mode,E[n+16>>2]=r.nlink,E[n+20>>2]=r.uid,E[n+24>>2]=r.gid,E[n+28>>2]=r.rdev,E[n+32>>2]=0,W=[r.size>>>0,(Q=r.size,+P(Q)>=1?Q>0?(0|j(+q(Q/4294967296),4294967295))>>>0:~~+F((Q-+(~~Q>>>0))/4294967296)>>>0:0)],E[n+40>>2]=W[0],E[n+44>>2]=W[1],E[n+48>>2]=4096,E[n+52>>2]=r.blocks,E[n+56>>2]=r.atime.getTime()/1e3|0,E[n+60>>2]=0,E[n+64>>2]=r.mtime.getTime()/1e3|0,E[n+68>>2]=0,E[n+72>>2]=r.ctime.getTime()/1e3|0,E[n+76>>2]=0,W=[r.ino>>>0,(Q=r.ino,+P(Q)>=1?Q>0?(0|j(+q(Q/4294967296),4294967295))>>>0:~~+F((Q-+(~~Q>>>0))/4294967296)>>>0:0)],E[n+80>>2]=W[0],E[n+84>>2]=W[1],0},doMsync:function(t,e,n,r,i){var o=b.slice(t,t+n);at.msync(e,o,i,n,r)},doMkdir:function(t,e){return"/"===(t=nt.normalize(t))[t.length-1]&&(t=t.substr(0,t.length-1)),at.mkdir(t,e,0),0},doMknod:function(t,e,n){switch(61440&e){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return at.mknod(t,e,n),0},doReadlink:function(t,e,n){if(n<=0)return-28;var r=at.readlink(t),i=Math.min(n,D(r)),o=w[e+i];return I(r,b,e,n+1),w[e+i]=o,i},doAccess:function(t,e){if(-8&e)return-28;var n;if(!(n=at.lookupPath(t,{follow:!0}).node))return-44;var r="";return 4&e&&(r+="r"),2&e&&(r+="w"),1&e&&(r+="x"),r&&at.nodePermissions(n,r)?-2:0},doDup:function(t,e,n){var r=at.getStream(n);return r&&at.close(r),at.open(t,e,0,n,n).fd},doReadv:function(t,e,n,r){for(var i=0,o=0;o>2],s=at.read(t,w,E[e+8*o>>2],a,r);if(s<0)return-1;if(i+=s,s>2],E[e+(8*o+4)>>2],r);if(a<0)return-1;i+=a}return i},varargs:0,get:function(t){return st.varargs+=4,E[st.varargs-4>>2]},getStr:function(){return k(st.get())},getStreamFromFD:function(t){void 0===t&&(t=st.get());var e=at.getStream(t);if(!e)throw new at.ErrnoError(8);return e},get64:function(){var t=st.get();return st.get(),t},getZero:function(){st.get()}};function ut(t,e,n){e|=0;var r,i=0,o=0,a=0;if(r=(t|=0)+(n|=0)|0,e&=255,(0|n)>=67){for(;0!=(3&t);)w[t>>0]=e,t=t+1|0;for(a=e|e<<8|e<<16|e<<24,o=(i=-4&r|0)-64|0;(0|t)<=(0|o);)E[t>>2]=a,E[t+4>>2]=a,E[t+8>>2]=a,E[t+12>>2]=a,E[t+16>>2]=a,E[t+20>>2]=a,E[t+24>>2]=a,E[t+28>>2]=a,E[t+32>>2]=a,E[t+36>>2]=a,E[t+40>>2]=a,E[t+44>>2]=a,E[t+48>>2]=a,E[t+52>>2]=a,E[t+56>>2]=a,E[t+60>>2]=a,t=t+64|0;for(;(0|t)<(0|i);)E[t>>2]=a,t=t+4|0}for(;(0|t)<(0|r);)w[t>>0]=e,t=t+1|0;return r-n|0}var ct=0;function lt(t){try{return d.grow(t-_.byteLength+65535>>16),N(d.buffer),1}catch(e){}}var ht={};function ft(){if(!ft.strings){var t={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",_:a||"./this.program"};for(var e in ht)t[e]=ht[e];var n=[];for(var e in t)n.push(e+"="+t[e]);ft.strings=n}return ft.strings}function dt(t){return t%4==0&&(t%100!=0||t%400==0)}function pt(t,e){for(var n=0,r=0;r<=e;n+=t[r++]);return n}var gt=[31,29,31,30,31,30,31,31,30,31,30,31],vt=[31,28,31,30,31,30,31,31,30,31,30,31];function mt(t,e){for(var n=new Date(t.getTime());e>0;){var r=dt(n.getFullYear()),i=n.getMonth(),o=(r?gt:vt)[i];if(!(e>o-n.getDate()))return n.setDate(n.getDate()+e),n;e-=o-n.getDate()+1,n.setDate(1),i<11?n.setMonth(i+1):(n.setMonth(0),n.setFullYear(n.getFullYear()+1))}return n}function yt(t,e){yt.array||(yt.array=[]);var n,r=yt.array;for(r.length=0;n=b[t++];)100===n||102===n?(r.push(T[(e=e+7&-8)>>3]),e+=8):(r.push(E[(e=e+3&-4)>>2]),e+=4);return r}function _t(t,e,n){var r=n>0?n:D(t)+1,i=new Array(r),o=I(t,i,0,i.length);return e&&(i.length=o),i}tt=function(){return performance.now()},at.staticInit();var wt={M:function(t,e){return function(t,e){var n;if(0===t)n=Date.now();else{if(1!==t&&4!==t)return et(28),-1;n=tt()}return E[e>>2]=n/1e3|0,E[e+4>>2]=n%1e3*1e3*1e3|0,0}(t,e)},k:function(t){return Dt(t)},j:function(t,e,n){throw"uncaught_exception"in Mt?Mt.uncaught_exceptions++:Mt.uncaught_exceptions=1,t},q:function(){},U:function(t,e){return et(63),-1},P:function(t,e){st.varargs=e;try{var n=st.getStr();return at.unlink(n),0}catch(r){return void 0!==at&&r instanceof at.ErrnoError||J(r),-r.errno}},R:function(t,e){st.varargs=e;try{return function(t,e,n,r,i,o){var a;o<<=12;var s=!1;if(0!=(16&r)&&t%16384!=0)return-28;if(0!=(32&r)){if(!(a=Ot(16384,e)))return-48;ut(a,0,e),s=!0}else{var u=at.getStream(i);if(!u)return-8;var c=at.mmap(u,b,t,e,o,n,r);a=c.ptr,s=c.allocated}return st.mappings[a]={malloc:a,len:e,allocated:s,fd:i,flags:r,offset:o},a}(st.get(),st.get(),st.get(),st.get(),st.get(),st.get())}catch(n){return void 0!==at&&n instanceof at.ErrnoError||J(n),-n.errno}},S:function(t,e){st.varargs=e;try{var n=st.getStr(),r=st.get();return st.doStat(at.stat,n,r)}catch(i){return void 0!==at&&i instanceof at.ErrnoError||J(i),-i.errno}},T:function(t,e){st.varargs=e;try{var n=st.getStreamFromFD(),r=st.get();return st.doStat(at.stat,n.path,r)}catch(i){return void 0!==at&&i instanceof at.ErrnoError||J(i),-i.errno}},L:function(t,e){st.varargs=e;try{return 42}catch(n){return void 0!==at&&n instanceof at.ErrnoError||J(n),-n.errno}},y:function(t,e){st.varargs=e;try{var n=st.getStreamFromFD();switch(st.get()){case 0:return(r=st.get())<0?-28:at.open(n.path,n.flags,0,r).fd;case 1:case 2:return 0;case 3:return n.flags;case 4:var r=st.get();return n.flags|=r,0;case 12:return r=st.get(),x[r+0>>1]=2,0;case 13:case 14:return 0;case 16:case 8:return-28;case 9:return et(28),-1;default:return-28}}catch(i){return void 0!==at&&i instanceof at.ErrnoError||J(i),-i.errno}},K:function(t,e){st.varargs=e;try{var n=st.getStr(),r=st.get();return st.doAccess(n,r)}catch(i){return void 0!==at&&i instanceof at.ErrnoError||J(i),-i.errno}},z:function(t,e){st.varargs=e;try{var n=st.getStr(),r=st.get(),i=st.get();return at.open(n,r,i).fd}catch(o){return void 0!==at&&o instanceof at.ErrnoError||J(o),-o.errno}},O:function(t,e){st.varargs=e;try{var n=st.getStreamFromFD(),r=st.get();switch(r){case 21509:case 21505:return n.tty?0:-59;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return n.tty?0:-59;case 21519:if(!n.tty)return-59;var i=st.get();return E[i>>2]=0,0;case 21520:return n.tty?-28:-59;case 21531:return i=st.get(),at.ioctl(n,r,i);case 21523:case 21524:return n.tty?0:-59;default:J("bad ioctl syscall "+r)}}catch(o){return void 0!==at&&o instanceof at.ErrnoError||J(o),-o.errno}},Q:function(t,e){st.varargs=e;try{return function(t,e){if(-1===t||0===e)return-28;var n=st.mappings[t];if(!n)return 0;if(e===n.len){var r=at.getStream(n.fd);st.doMsync(t,r,e,n.flags,n.offset),at.munmap(r),st.mappings[t]=null,n.allocated&&Nt(n.malloc)}return 0}(st.get(),st.get())}catch(n){return void 0!==at&&n instanceof at.ErrnoError||J(n),-n.errno}},m:function(){},w:function(){J()},C:function(t,e,n){var r=yt(e,n);return K[t].apply(null,r)},d:function(t,e){!function(t,e){throw Zt(t,e||1),"longjmp"}(t,e)},E:function(t,e,n){b.set(b.subarray(e,e+n),t)},F:function(t){var e=b.length;if(t>2147418112)return!1;for(var n,r=1;r<=4;r*=2){var i=e*(1+.2/r);if(i=Math.min(i,t+100663296),lt(Math.min(2147418112,((n=Math.max(16777216,t,i))%65536>0&&(n+=65536-n%65536),n))))return!0}return!1},I:function(t,e){var n=ft(),r=0;return n.forEach(function(n,i){var o=e+r;E[t+4*i>>2]=o,function(t,e,n){for(var r=0;r>0]=t.charCodeAt(r);w[e>>0]=0}(n,o),r+=n.length+1}),0},J:function(t,e){var n=ft();E[t>>2]=n.length;var r=0;return n.forEach(function(t){r+=t.length+1}),E[e>>2]=r,0},l:function(t){!function(t,e){f||(m=!0,r.onExit&&r.onExit(t)),s(t,new Xt(t))}(t)},p:function(t){try{var e=st.getStreamFromFD(t);return at.close(e),0}catch(n){return void 0!==at&&n instanceof at.ErrnoError||J(n),n.errno}},H:function(t,e){try{var n=st.getStreamFromFD(t),r=n.tty?2:at.isDir(n.mode)?3:at.isLink(n.mode)?7:4;return w[e>>0]=r,0}catch(i){return void 0!==at&&i instanceof at.ErrnoError||J(i),i.errno}},N:function(t,e,n,r){try{var i=st.getStreamFromFD(t),o=st.doReadv(i,e,n);return E[r>>2]=o,0}catch(a){return void 0!==at&&a instanceof at.ErrnoError||J(a),a.errno}},D:function(t,e,n,r,i){try{var o=st.getStreamFromFD(t),a=4294967296*n+(e>>>0);return a<=-9007199254740992||a>=9007199254740992?-61:(at.llseek(o,a,r),W=[o.position>>>0,(Q=o.position,+P(Q)>=1?Q>0?(0|j(+q(Q/4294967296),4294967295))>>>0:~~+F((Q-+(~~Q>>>0))/4294967296)>>>0:0)],E[i>>2]=W[0],E[i+4>>2]=W[1],o.getdents&&0===a&&0===r&&(o.getdents=null),0)}catch(s){return void 0!==at&&s instanceof at.ErrnoError||J(s),s.errno}},x:function(t,e,n,r){try{var i=st.getStreamFromFD(t),o=st.doWritev(i,e,n);return E[r>>2]=o,0}catch(a){return void 0!==at&&a instanceof at.ErrnoError||J(a),a.errno}},a:function(){return 0|p},X:function(t){var e=Date.now();return E[t>>2]=e/1e3|0,E[t+4>>2]=e%1e3*1e3|0,0},Y:function(t){var e=Qt();try{return Vt(t)}catch(n){if(Wt(e),n!==n+0&&"longjmp"!==n)throw n;Zt(1,0)}},V:function(t,e){var n=Qt();try{return Ht(t,e)}catch(r){if(Wt(n),r!==r+0&&"longjmp"!==r)throw r;Zt(1,0)}},v:function(t){var e=Qt();try{return jt(t)}catch(n){if(Wt(e),n!==n+0&&"longjmp"!==n)throw n;Zt(1,0)}},f:function(t,e){var n=Qt();try{return Yt(t,e)}catch(r){if(Wt(n),r!==r+0&&"longjmp"!==r)throw r;Zt(1,0)}},e:function t(e,n,r){var i=Qt();try{return Bt(e,n,r)}catch(t){if(Wt(i),t!==t+0&&"longjmp"!==t)throw t;Zt(1,0)}},g:function(t,e,n,r){var i=Qt();try{return zt(t,e,n,r)}catch(o){if(Wt(i),o!==o+0&&"longjmp"!==o)throw o;Zt(1,0)}},n:function(t,e,n,r,i){var o=Qt();try{return Gt(t,e,n,r,i)}catch(a){if(Wt(o),a!==a+0&&"longjmp"!==a)throw a;Zt(1,0)}},W:function(t,e,n,r,i,o,a){var s=Qt();try{return Jt(t,e,n,r,i,o,a)}catch(u){if(Wt(s),u!==u+0&&"longjmp"!==u)throw u;Zt(1,0)}},s:function(t){var e=Qt();try{Lt(t)}catch(n){if(Wt(e),n!==n+0&&"longjmp"!==n)throw n;Zt(1,0)}},h:function(t,e){var n=Qt();try{Rt(t,e)}catch(r){if(Wt(n),r!==r+0&&"longjmp"!==r)throw r;Zt(1,0)}},o:function(t,e,n){var r=Qt();try{Ut(t,e,n)}catch(i){if(Wt(r),i!==i+0&&"longjmp"!==i)throw i;Zt(1,0)}},u:function(t,e,n,r){var i=Qt();try{Pt(t,e,n,r)}catch(o){if(Wt(i),o!==o+0&&"longjmp"!==o)throw o;Zt(1,0)}},t:function(t,e,n,r,i){var o=Qt();try{Ft(t,e,n,r,i)}catch(a){if(Wt(o),a!==a+0&&"longjmp"!==a)throw a;Zt(1,0)}},r:function(t,e,n,r,i,o){var a=Qt();try{qt(t,e,n,r,i,o)}catch(s){if(Wt(a),s!==s+0&&"longjmp"!==s)throw s;Zt(1,0)}},memory:d,i:function t(e,n,r,i){n|=0,r|=0,i|=0;var o=0;for(E[(e|=0)>>2]=ct=ct+1|0;(0|o)<(0|i);){if(0==(0|E[r+(o<<3)>>2]))return E[r+(o<<3)>>2]=ct,E[r+(4+(o<<3))>>2]=n,E[r+(8+(o<<3))>>2]=0,g(0|i),0|r;o=o+1|0}return r=0|t(0|e,0|n,0|(r=0|Ct(0|r,8*(1+(i=2*i|0)|0)|0)),0|i),g(0|i),0|r},b:function(t){g(0|t)},G:function(t,e,n,r){return function(t,e,n,r){var i=E[r+40>>2],o={tm_sec:E[r>>2],tm_min:E[r+4>>2],tm_hour:E[r+8>>2],tm_mday:E[r+12>>2],tm_mon:E[r+16>>2],tm_year:E[r+20>>2],tm_wday:E[r+24>>2],tm_yday:E[r+28>>2],tm_isdst:E[r+32>>2],tm_gmtoff:E[r+36>>2],tm_zone:i?k(i):""},a=k(n),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var u in s)a=a.replace(new RegExp(u,"g"),s[u]);var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],l=["January","February","March","April","May","June","July","August","September","October","November","December"];function h(t,e,n){for(var r="number"==typeof t?t.toString():t||"";r.length0?1:0}var r;return 0===(r=n(t.getFullYear()-e.getFullYear()))&&0===(r=n(t.getMonth()-e.getMonth()))&&(r=n(t.getDate()-e.getDate())),r}function p(t){switch(t.getDay()){case 0:return new Date(t.getFullYear()-1,11,29);case 1:return t;case 2:return new Date(t.getFullYear(),0,3);case 3:return new Date(t.getFullYear(),0,2);case 4:return new Date(t.getFullYear(),0,1);case 5:return new Date(t.getFullYear()-1,11,31);case 6:return new Date(t.getFullYear()-1,11,30)}}function g(t){var e=mt(new Date(t.tm_year+1900,0,1),t.tm_yday),n=new Date(e.getFullYear(),0,4),r=new Date(e.getFullYear()+1,0,4),i=p(n),o=p(r);return d(i,e)<=0?d(o,e)<=0?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var v={"%a":function(t){return c[t.tm_wday].substring(0,3)},"%A":function(t){return c[t.tm_wday]},"%b":function(t){return l[t.tm_mon].substring(0,3)},"%B":function(t){return l[t.tm_mon]},"%C":function(t){return f((t.tm_year+1900)/100|0,2)},"%d":function(t){return f(t.tm_mday,2)},"%e":function(t){return h(t.tm_mday,2," ")},"%g":function(t){return g(t).toString().substring(2)},"%G":function(t){return g(t)},"%H":function(t){return f(t.tm_hour,2)},"%I":function(t){var e=t.tm_hour;return 0==e?e=12:e>12&&(e-=12),f(e,2)},"%j":function(t){return f(t.tm_mday+pt(dt(t.tm_year+1900)?gt:vt,t.tm_mon-1),3)},"%m":function(t){return f(t.tm_mon+1,2)},"%M":function(t){return f(t.tm_min,2)},"%n":function(){return"\n"},"%p":function(t){return t.tm_hour>=0&&t.tm_hour<12?"AM":"PM"},"%S":function(t){return f(t.tm_sec,2)},"%t":function(){return"\t"},"%u":function(t){return t.tm_wday||7},"%U":function(t){var e=new Date(t.tm_year+1900,0,1),n=0===e.getDay()?e:mt(e,7-e.getDay()),r=new Date(t.tm_year+1900,t.tm_mon,t.tm_mday);if(d(n,r)<0){var i=pt(dt(r.getFullYear())?gt:vt,r.getMonth()-1)-31,o=31-n.getDate()+i+r.getDate();return f(Math.ceil(o/7),2)}return 0===d(n,e)?"01":"00"},"%V":function(t){var e,n=new Date(t.tm_year+1900,0,4),r=new Date(t.tm_year+1901,0,4),i=p(n),o=p(r),a=mt(new Date(t.tm_year+1900,0,1),t.tm_yday);return d(a,i)<0?"53":d(o,a)<=0?"01":(e=i.getFullYear()=0;return e=(e=Math.abs(e)/60)/60*100+e%60,(n?"+":"-")+String("0000"+e).slice(-4)},"%Z":function(t){return t.tm_zone},"%%":function(){return"%"}};for(var u in v)a.indexOf(u)>=0&&(a=a.replace(new RegExp(u,"g"),v[u](o)));var m=_t(a,!1);return m.length>e?0:(function(t,e){w.set(t,e)}(m,t),m.length-1)}(t,e,n,r)},table:v,c:function(t,e,n){t|=0,e|=0,n|=0;for(var r=0,i=0;(0|r)<(0|n)&&0!=(0|(i=0|E[e+(r<<3)>>2]));){if((0|i)==(0|t))return 0|E[e+(4+(r<<3))>>2];r=r+1|0}return 0},A:function(t){var e=Date.now()/1e3|0;return t&&(E[t>>2]=e),e},B:function(t){return 0!==t&&ut(t,0,16),0}},bt=function(){var t={a:wt};function e(t,e){r.asm=t.exports,G()}function n(t){e(t.instance)}function i(e){return(h||"function"!=typeof fetch?new Promise(function(t,e){t($())}):fetch(X,{credentials:"same-origin"}).then(function(t){if(!t.ok)throw"failed to load wasm binary file at '"+X+"'";return t.arrayBuffer()}).catch(function(){return $()})).then(function(e){return WebAssembly.instantiate(e,t)}).then(e,function(t){l("failed to asynchronously prepare wasm: "+t),J(t)})}if(z(),r.instantiateWasm)try{return r.instantiateWasm(t,e)}catch(o){return l("Module.instantiateWasm callback failed with error: "+o),!1}return function(){if(h||"function"!=typeof WebAssembly.instantiateStreaming||V(X)||"function"!=typeof fetch)return i(n);fetch(X,{credentials:"same-origin"}).then(function(e){return WebAssembly.instantiateStreaming(e,t).then(n,function(t){l("wasm streaming compile failed: "+t),l("falling back to ArrayBuffer instantiation"),i(n)})})}(),{}}();r.asm=bt;var xt,Et=r.___wasm_call_ctors=function(){return(Et=r.___wasm_call_ctors=r.asm.Z).apply(null,arguments)},Tt=r._emscripten_bind_VoidPtr___destroy___0=function(){return(Tt=r._emscripten_bind_VoidPtr___destroy___0=r.asm._).apply(null,arguments)},At=r._emscripten_bind_Main_layout_3=function(){return(At=r._emscripten_bind_Main_layout_3=r.asm.$).apply(null,arguments)},St=r._emscripten_bind_Main_lastError_0=function(){return(St=r._emscripten_bind_Main_lastError_0=r.asm.aa).apply(null,arguments)},kt=r._emscripten_bind_Main_createFile_2=function(){return(kt=r._emscripten_bind_Main_createFile_2=r.asm.ba).apply(null,arguments)},It=r._emscripten_bind_Main___destroy___0=function(){return(It=r._emscripten_bind_Main___destroy___0=r.asm.ca).apply(null,arguments)},Dt=r._malloc=function(){return(Dt=r._malloc=r.asm.da).apply(null,arguments)},Nt=r._free=function(){return(Nt=r._free=r.asm.ea).apply(null,arguments)},Ct=r._realloc=function(){return(Ct=r._realloc=r.asm.fa).apply(null,arguments)},Zt=(r.___errno_location=function(){return(r.___errno_location=r.asm.ga).apply(null,arguments)},r._setThrew=function(){return(Zt=r._setThrew=r.asm.ha).apply(null,arguments)}),Mt=r.__ZSt18uncaught_exceptionv=function(){return(Mt=r.__ZSt18uncaught_exceptionv=r.asm.ia).apply(null,arguments)},Ot=r._memalign=function(){return(Ot=r._memalign=r.asm.ja).apply(null,arguments)},Lt=r.dynCall_v=function(){return(Lt=r.dynCall_v=r.asm.ka).apply(null,arguments)},Rt=r.dynCall_vi=function(){return(Rt=r.dynCall_vi=r.asm.la).apply(null,arguments)},Ut=r.dynCall_vii=function(){return(Ut=r.dynCall_vii=r.asm.ma).apply(null,arguments)},Pt=r.dynCall_viii=function(){return(Pt=r.dynCall_viii=r.asm.na).apply(null,arguments)},Ft=r.dynCall_viiii=function(){return(Ft=r.dynCall_viiii=r.asm.oa).apply(null,arguments)},qt=r.dynCall_viiiii=function(){return(qt=r.dynCall_viiiii=r.asm.pa).apply(null,arguments)},jt=r.dynCall_i=function(){return(jt=r.dynCall_i=r.asm.qa).apply(null,arguments)},Yt=r.dynCall_ii=function(){return(Yt=r.dynCall_ii=r.asm.ra).apply(null,arguments)},Bt=r.dynCall_iii=function(){return(Bt=r.dynCall_iii=r.asm.sa).apply(null,arguments)},zt=r.dynCall_iiii=function(){return(zt=r.dynCall_iiii=r.asm.ta).apply(null,arguments)},Gt=r.dynCall_iiiii=function(){return(Gt=r.dynCall_iiiii=r.asm.ua).apply(null,arguments)},Jt=r.dynCall_iiiiiii=function(){return(Jt=r.dynCall_iiiiiii=r.asm.va).apply(null,arguments)},Vt=r.dynCall_d=function(){return(Vt=r.dynCall_d=r.asm.wa).apply(null,arguments)},Ht=r.dynCall_di=function(){return(Ht=r.dynCall_di=r.asm.xa).apply(null,arguments)},Qt=r.stackSave=function(){return(Qt=r.stackSave=r.asm.ya).apply(null,arguments)},Wt=(r.stackAlloc=function(){return(r.stackAlloc=r.asm.za).apply(null,arguments)},r.stackRestore=function(){return(Wt=r.stackRestore=r.asm.Aa).apply(null,arguments)});function Xt(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function $t(t){function e(){xt||(xt=!0,m||(U=!0,r.noFSInit||at.init.initialized||at.init(),it.init(),Z(O),at.ignorePermissions=!1,Z(L),r.onRuntimeInitialized&&r.onRuntimeInitialized(),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)t=r.postRun.shift(),R.unshift(t);var t;Z(R)}()))}Y>0||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)t=r.preRun.shift(),M.unshift(t);var t;Z(M)}(),Y>0||(r.setStatus?(r.setStatus("Running..."),setTimeout(function(){setTimeout(function(){r.setStatus("")},1),e()},1)):e()))}if(r.asm=bt,r.then=function(t){if(xt)t(r);else{var e=r.onRuntimeInitialized;r.onRuntimeInitialized=function(){e&&e(),t(r)}}return r},B=function t(){xt||$t(),xt||(B=t)},r.run=$t,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();function Kt(){}function te(t){return(t||Kt).__cache__}function ee(t,e){var n=te(e),r=n[t];return r||((r=Object.create((e||Kt).prototype)).ptr=t,n[t]=r)}f=!0,$t(),(Kt.prototype=Object.create(Kt.prototype)).constructor=Kt,Kt.prototype.__class__=Kt,Kt.__cache__={},r.WrapperObject=Kt,r.getCache=te,r.wrapPointer=ee,r.castObject=function(t,e){return ee(t.ptr,e)},r.NULL=ee(0),r.destroy=function(t){if(!t.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";t.__destroy__(),delete te(t.__class__)[t.ptr]},r.compare=function(t,e){return t.ptr===e.ptr},r.getPointer=function(t){return t.ptr},r.getClass=function(t){return t.__class__};var ne={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(ne.needed){for(var t=0;t=ne.size?(y(i>0),ne.needed+=i,n=r._malloc(i),ne.temps.push(n)):(n=ne.buffer+ne.pos,ne.pos+=i),n},copy:function(t,e,n){var r=n;switch(e.BYTES_PER_ELEMENT){case 2:r>>=1;break;case 4:r>>=2;break;case 8:r>>=3}for(var i=0;i\n\n'}}function v(t,e){var n,r=p({images:[],files:[]},e);(function(){for(var t=0,e=0,n=arguments.length;e>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?x(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?x(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=h.exec(t))?new A(e[1],e[2],e[3],1):(e=f.exec(t))?new A(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=d.exec(t))?x(e[1],e[2],e[3],e[4]):(e=p.exec(t))?x(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=g.exec(t))?D(e[1],e[2]/100,e[3]/100,1):(e=v.exec(t))?D(e[1],e[2]/100,e[3]/100,e[4]):m.hasOwnProperty(t)?b(m[t]):"transparent"===t?new A(NaN,NaN,NaN,0):null}function b(t){return new A(t>>16&255,t>>8&255,255&t,1)}function x(t,e,n,r){return r<=0&&(t=e=n=NaN),new A(t,e,n,r)}function E(t){return t instanceof i||(t=w(t)),t?new A((t=t.rgb()).r,t.g,t.b,t.opacity):new A}function T(t,e,n,r){return 1===arguments.length?E(t):new A(t,e,n,null==r?1:r)}function A(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function S(){return"#"+I(this.r)+I(this.g)+I(this.b)}function k(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function I(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function D(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Z(t,e,n,r)}function N(t){if(t instanceof Z)return new Z(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=w(t)),!t)return new Z;if(t instanceof Z)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),a=Math.max(e,n,r),s=NaN,u=a-o,c=(a+o)/2;return u?(s=e===a?(n-r)/u+6*(n0&&c<1?0:s,new Z(s,u,c,t.opacity)}function C(t,e,n,r){return 1===arguments.length?N(t):new Z(t,e,n,null==r?1:r)}function Z(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function M(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}(0,r.Z)(i,w,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return N(this).formatHsl()},formatRgb:_,toString:_}),(0,r.Z)(A,T,(0,r.l)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new A(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new A(this.r*t,this.g*t,this.b*t,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:S,formatHex:S,formatRgb:k,toString:k})),(0,r.Z)(Z,C,(0,r.l)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new Z(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new Z(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new A(M(t>=240?t-240:t+120,i,r),M(t,i,r),M(t<120?t+240:t-120,i,r),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 t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},80052:function(t,e,n){"use strict";function r(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function i(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}n.d(e,{Z:function(){return r},l:function(){return i}})},64641:function(t,e){"use strict";var n={value:function(){}};function r(){for(var t,e=0,n=arguments.length,r={};e=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}function a(t,e){for(var n,r=0,i=t.length;r0)for(var n,r,i=new Array(n),o=0;o1?r[0]+r.slice(2):r,+t.slice(n+1)]}n.d(e,{Z:function(){return r}})},93116:function(t,e,n){"use strict";n.d(e,{Z:function(){return i},v:function(){return o}});var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(t){if(!(e=r.exec(t)))throw new Error("invalid format: "+t);var e;return new o({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function o(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}i.prototype=o.prototype,o.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}},25047:function(t,e,n){"use strict";n.r(e),n.d(e,{formatDefaultLocale:function(){return r.ZP},format:function(){return r.WU},formatPrefix:function(){return r.jH},formatLocale:function(){return i.Z},formatSpecifier:function(){return o.Z},FormatSpecifier:function(){return o.v},precisionFixed:function(){return a.Z},precisionPrefix:function(){return s.Z},precisionRound:function(){return u.Z}});var r=n(3712),i=n(70592),o=n(93116),a=n(22233),s=n(65636),u=n(3218)},70592:function(t,e,n){"use strict";n.d(e,{Z:function(){return f}});var r,i=n(98477),o=n(93116),a=n(25169);function s(t,e){var n=(0,a.Z)(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}var u={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return s(100*t,e)},r:s,s:function(t,e){var n=(0,a.Z)(t,e);if(!n)return t+"";var i=n[0],o=n[1],s=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,u=i.length;return s===u?i:s>u?i+new Array(s-u+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+(0,a.Z)(t,Math.max(0,e+s-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function c(t){return t}var l=Array.prototype.map,h=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function f(t){var e,n,a=void 0===t.grouping||void 0===t.thousands?c:(e=l.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),o.push(t.substring(i-=s,i+s)),!((u+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}),s=void 0===t.currency?"":t.currency[0]+"",f=void 0===t.currency?"":t.currency[1]+"",d=void 0===t.decimal?".":t.decimal+"",p=void 0===t.numerals?c:function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(l.call(t.numerals,String)),g=void 0===t.percent?"%":t.percent+"",v=void 0===t.minus?"-":t.minus+"",m=void 0===t.nan?"NaN":t.nan+"";function y(t){var e=(t=(0,o.Z)(t)).fill,n=t.align,i=t.sign,c=t.symbol,l=t.zero,y=t.width,_=t.comma,w=t.precision,b=t.trim,x=t.type;"n"===x?(_=!0,x="g"):u[x]||(void 0===w&&(w=12),b=!0,x="g"),(l||"0"===e&&"="===n)&&(l=!0,e="0",n="=");var E="$"===c?s:"#"===c&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",T="$"===c?f:/[%p]/.test(x)?g:"",A=u[x],S=/[defgprs%]/.test(x);function k(t){var o,s,u,c=E,f=T;if("c"===x)f=A(t)+f,t="";else{var g=(t=+t)<0||1/t<0;if(t=isNaN(t)?m:A(Math.abs(t),w),b&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),g&&0==+t&&"+"!==i&&(g=!1),c=(g?"("===i?i:v:"-"===i||"("===i?"":i)+c,f=("s"===x?h[8+r/3]:"")+f+(g&&"("===i?")":""),S)for(o=-1,s=t.length;++o(u=t.charCodeAt(o))||u>57){f=(46===u?d+t.slice(o+1):t.slice(o))+f,t=t.slice(0,o);break}}_&&!l&&(t=a(t,1/0));var k=c.length+t.length+f.length,I=k>1)+c+t+f+I.slice(k);break;default:t=I+c+t+f}return p(t)}return w=void 0===w?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w)),k.toString=function(){return t+""},k}return{format:y,formatPrefix:function(t,e){var n=y(((t=(0,o.Z)(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor((0,i.Z)(e)/3))),a=Math.pow(10,-r),s=h[8+r/3];return function(t){return n(a*t)+s}}}}},22233:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(98477);function i(t){return Math.max(0,-(0,r.Z)(Math.abs(t)))}},65636:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(98477);function i(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,r.Z)(e)/3)))-(0,r.Z)(Math.abs(t)))}},3218:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(98477);function i(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,(0,r.Z)(e)-(0,r.Z)(t))+1}},73180:function(t,e,n){!function(t,e,n,r,i,o,a,s,u,c){"use strict";function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e1&&void 0!==arguments[1]?arguments[1]:0,r=e.select(this),i=t.attributes,o=r.node().attributes;if(o)for(var a=0;a0?i.children[0].text:"")}null==t.key&&(o&&("ellipse"!=n&&"polygon"!=n||(n="path")),t.key=n+"-"+e)}function v(t,e){t.id=(e?e.id+".":"")+t.key}function m(t){c[t.id]=t}function y(t,e){o&&t.id in l&&("polygon"!=e.tag&&"ellipse"!=e.tag&&"path"!=e.tag||e.tag==t.tag&&"polygon"!=t.tag||("path"!=e.tag&&(t.alternativeOld=D(e,t)),"path"!=t.tag&&(t.alternativeNew=D(t,e))))}function _(t,e){if(i&&e&&("path"==e.tag||t.alternativeOld&&"path"==t.alternativeOld.tag)){var n=(t.alternativeNew||t).attributes.d;if(t.alternativeOld)var r=g(t.alternativeOld);else r=g(e);(t.alternativeOld||(t.alternativeOld={})).points=function(t,e,n,r){for(var i=t,o=i.cloneNode(),a=i.getTotalLength(),s=(o.setAttribute("d",e),o).getTotalLength(),u=[0],c=0,l=r?n:n/Math.max(a,s);(c+=l)<1;)u.push(c);return u.push(1),u.map(function(t){var e=i.getPointAtLength(t*a),n=o.getPointAtLength(t*s);return[[e.x,e.y],[n.x,n.y]]})}(r,n,a,s)}}function w(t){var e=arguments.length>2?arguments[2]:void 0;p(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),v(t,e);var n=l[t.id];m(t),y(t,n),_(t,n);var r={};t.children.forEach(function(e){var n=e.tag;"ellipse"!=n&&"polygon"!=n||(n="path"),null==r[n]&&(r[n]=0),w(e,r[n]++,t)})}function b(t){(function(t){if(u&&t.parent&&"node"==t.parent.attributes.class&&"title"==t.tag){if(t.children.length>0)var e=t.children[0].text;else e="";h[e]=t.parent}})(t),function(t){var e=t.tag;if(u&&!l[t.id]&&t.parent&&k(t)&&("path"==e||"polygon"==e)){if("polygon"==e){var n=t.parent.children.find(function(t){return"path"==t.tag});n&&(t.totalLength=n.totalLength)}var r=function(t){return function(t){return"edge"==t.parent.attributes.class?t.parent:t.parent.parent.parent}(t).children.find(function(t){return"title"==t.tag})}(t).children[0],i=r.text.split("->");2!=i.length&&(i=r.text.split("--"));var o=i[0],a=h[o],s=f[o];if(s){if((p=a.children.findIndex(function(t,e){return"g"==t.tag}))>=0){var c=a.children[p].children.findIndex(function(t,e){return"a"==t.tag});a=a.children[p].children[c]}(p=s.children.findIndex(function(t,e){return"g"==t.tag}))>=0&&(c=s.children[p].children.findIndex(function(t,e){return"a"==t.tag}),s=s.children[p].children[c]);for(var d=a.children,p=0;p0&&this._queue.shift().call(this)}function M(t,e,n,r){var i=[t*n-(e=-e)*(r=-r),t*r+e*n];return[t=i[0],e=-(e=i[1])]}function O(t,e,n,r,i,o,a){var s=d(P.call(this,o));t.data([s]),_.call(t.node(),s),L(t,e,n,r,i,o,a)}function L(t,e,n,r,i,o,a){var s=a.shortening||0,u=[[0,-3.5],[10,0],[0,3.5],[0,-3.5]],l=r-e,h=i-n,f=Math.sqrt(l*l+h*h);if(0==f)var d=1,p=0;else d=l/f,p=h/f;if(r=e+(f-s-10-.1)*d,i=n+(f-s-10-.1)*p,o.URL||o.tooltip)var g=t.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a"),v=g.selectWithoutDataPropagation("path"),m=g.selectWithoutDataPropagation("polygon");else v=t.selectWithoutDataPropagation("path"),m=t.selectWithoutDataPropagation("polygon");var y=c.path();y.moveTo(e,n),y.lineTo(r,i),v.attr("d",y),r=e+(f-s-10)*d,i=n+(f-s-10)*p;for(var _=0;_ b ["+n+"]}","svg","dot"),s=(new window.DOMParser).parseFromString(a,"image/svg+xml");return e.select(document.createDocumentFragment()).append(function(){return s.documentElement}).select(".edge")}function F(t,e,n,r,i,o){var a=d(B.call(this,r,i));return t.data([a]),_.call(t.node(),a),q(t,e,n,i),this}function q(t,n,r,i,o){if(i.URL||i.tooltip)var a=t.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a");else a=t;var s=a.selectAll("ellipse,polygon,path,polyline"),u=t.selectWithoutDataPropagation("text");if(0!=s.size()){var c=s.node().getBBox();c.cx=c.x+c.width/2,c.cy=c.y+c.height/2}else 0!=u.size()&&(c={x:+u.attr("x"),y:+u.attr("y"),width:0,height:0,cx:+u.attr("x"),cy:+u.attr("y")});return s.each(function(t,i){var o=e.select(this);if(o.attr("cx"))o.attr("cx",b(n)).attr("cy",b(r));else if(o.attr("points")){var a=o.attr("points").trim();o.attr("points",function(t,e,n){var r,i=(r=t.split(" ")).map(function(t){return t.split(",")});return i=r.map(function(t){return[b(+e+ +t.split(",")[0]),b(+n+ +t.split(",")[1])]}),(r=i.map(function(t){return t.join(",")})).join(" ")}(a,n-c.cx,r-c.cy))}else{var s=o.attr("d");o.attr("d",function(t,e,n){(i=t.split(/[A-Z ]/)).shift();var r=t.split(/[^[A-Z ]+/),i=(i.map(function(t){return t.split(",")}),i.map(function(t){return[b(+e+ +t.split(",")[0]),b(+n+ +t.split(",")[1])]}).map(function(t){return t.join(",")}));return r.reduce(function(t,e,n){return t.concat(e,i[n])},[]).join("")}(s,n-c.cx,r-c.cy))}}),0!=u.size()&&u.attr("x",b(+u.attr("x")+n-c.cx)).attr("y",b(+u.attr("y")+r-c.cy)),this}function j(){if(!this._drawnNode)return this;var t=this._drawnNode.g;return t.empty()||t.remove(),this._drawnNode=null,this}function Y(){return this._drawnNode?this._drawnNode.g:e.select(null)}function B(t,n){for(var r="",i=0,o=Object.keys(n);i2")(a)+" ",i+=s+" ".repeat(o-s.length),i+=u.format(" >5")(t-n)+" ","initEnd"!=s&&(i+=u.format(" >5")(t-r.start[e])),"dataProcessEnd"==s&&(i+=" prepare "+u.format(" >5")(t-r.layoutEnd[e])),"renderEnd"==s&&c._transition&&(i+=" transition start margin "+u.format(" >5")(c._transition.delay()-(t-r.renderStart[e])),l=c._transition.delay(),f=c._transition.duration()),"transitionStart"==s){var h=t-r.renderStart[e];i+=" transition delay "+u.format(" >5")(t-r.renderStart[e]),i+=" expected "+u.format(" >5")(l),i+=" diff "+u.format(" >5")(h-l)}if("transitionEnd"==s){var d=t-r.transitionStart[e];i+=" transition duration "+u.format(" >5")(d),i+=" expected "+u.format(" >5")(f),i+=" diff "+u.format(" >5")(d-f)}console.log(i),n=t}:null)},s=0;s5&&void 0!==arguments[5]?arguments[5]:{};if((o=Object.assign({},o)).style&&o.style.includes("invis"))var s=e.select(null);else{var u=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),c=d(P.call(this,o));s=u.append("g").data([c]),_.call(s.node(),c),O.call(this,s,t,n,r,i,o,a)}return this._drawnEdge={g:s,x1:t,y1:n,x2:r,y2:i,attributes:o},this},updateDrawnEdge:function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var a=this._drawnEdge.g;return i=Object.assign(this._drawnEdge.attributes,i),this._drawnEdge.x1=t,this._drawnEdge.y1=e,this._drawnEdge.x2=n,this._drawnEdge.y2=r,!a.empty()||i.style&&i.style.includes("invis")||(a=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnEdge.g=a),a.empty()||O.call(this,a,t,e,n,r,i,o),this},moveDrawnEdgeEndPoint:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var r=this._drawnEdge.g,i=this._drawnEdge.x1,o=this._drawnEdge.y1,a=this._drawnEdge.attributes;return this._drawnEdge.x2=t,this._drawnEdge.y2=e,L(r,i,o,t,e,a,n),this},insertDrawnEdge:function(t){if(!this._drawnEdge)throw Error("No edge has been drawn");var e=this._drawnEdge.g;if(e.empty())return this;e.selectWithoutDataPropagation("title").text(t);var n=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),r=n.datum(),i=this._extractData(e,r.children.length,n.datum());return r.children.push(i),m(e,i),this._drawnEdge=null,this},removeDrawnEdge:R},"removeDrawnEdge",R),l(V,"drawnEdgeSelection",U),l(V,"drawnEdgeSelection",U),l(V,"drawNode",function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if((i=Object.assign({},i)).style&&i.style.includes("invis"))var a=e.select(null);else{var s=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),u=d(B.call(this,r,i));a=s.append("g").data([u]),_.call(a.node(),u),F.call(this,a,t,n,r,i,o)}return this._drawnNode={g:a,nodeId:r,x:t,y:n,attributes:i},this}),l(V,"updateDrawnNode",function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!this._drawnNode)throw Error("No node has been drawn");var o=this._drawnNode.g;return null==n&&(n=this._drawnNode.nodeId),r=Object.assign(this._drawnNode.attributes,r),this._drawnNode.nodeId=n,this._drawnNode.x=t,this._drawnNode.y=e,!o.empty()||r.style&&r.style.includes("invis")||(o=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnNode.g=o),o.empty()||F.call(this,o,t,e,n,r,i),this}),l(V,"moveDrawnNode",function(t,e){if(!this._drawnNode)throw Error("No node has been drawn");var n=this._drawnNode.g,r=this._drawnNode.attributes;return this._drawnNode.x=t,this._drawnNode.y=e,n.empty()||q(n,t,e,r),this}),l(V,"insertDrawnNode",function(t){if(!this._drawnNode)throw Error("No node has been drawn");null==t&&(t=this._drawnNode.nodeId);var e=this._drawnNode.g;if(e.empty())return this;var n=this._drawnNode.attributes;if(e.selectWithoutDataPropagation("title").text(t),n.URL||n.tooltip)var r=e.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a"),i=(r.selectWithoutDataPropagation("ellipse,polygon,path,polyline"),r.selectWithoutDataPropagation("text"));else e.selectWithoutDataPropagation("ellipse,polygon,path,polyline"),i=e.selectWithoutDataPropagation("text");i.text(n.label||t);var o=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),a=o.datum(),s=this._extractData(e,a.children.length,o.datum());return a.children.push(s),m(e,s),this._drawnNode=null,this}),l(V,"removeDrawnNode",j),l(V,"removeDrawnNode",j),l(V,"drawnNodeSelection",Y),l(V,"drawnNodeSelection",Y),V),e.selection.prototype.graphviz=function(t){var e=this.node().__graphviz__;return e?(e.options(t),i.timeout((function(){e._dispatch.call("initEnd",this)}).bind(this),0)):e=new H(this,t),e},e.selection.prototype.selectWithoutDataPropagation=function(t){return e.select(this.size()>0?this.node().querySelector(t):null)},t.graphviz=Q,Object.defineProperty(t,"__esModule",{value:!0})}(e,n(24967),n(58552),n(82159),n(14788),n(30853),n(59320),n(95914),n(25047),n(16809))},60053:function(t,e,n){"use strict";n.d(e,{Z:function(){return o},M:function(){return a}});var r=n(3031),i=n(61317);function o(t,e){return((0,i.v)(e)?i.Z:a)(t,e)}function a(t,e){var n,i=e?e.length:0,o=t?Math.min(i,t.length):0,a=new Array(o),s=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),o=t[i],a=t[i+1];return r((n-i/e)*e,i>0?t[i-1]:2*o-a,o,a,i180||n<-180?n-360*Math.round(n/360):n):(0,r.Z)(isNaN(t)?e:t)}function a(t){return 1==(t=+t)?s:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):(0,r.Z)(isNaN(e)?n:e)}}function s(t,e){var n=e-t;return n?i(t,n):(0,r.Z)(isNaN(t)?e:t)}},94065:function(t,e,n){"use strict";function r(t){return function(){return t}}n.d(e,{Z:function(){return r}})},28917:function(t,e,n){"use strict";function r(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}n.d(e,{Z:function(){return r}})},30853:function(t,e,n){"use strict";n.r(e),n.d(e,{interpolate:function(){return r.Z},interpolateArray:function(){return i.Z},interpolateBasis:function(){return o.Z},interpolateBasisClosed:function(){return a.Z},interpolateCubehelix:function(){return nt},interpolateCubehelixLong:function(){return rt},interpolateDate:function(){return s.Z},interpolateDiscrete:function(){return u},interpolateHcl:function(){return Y},interpolateHclLong:function(){return B},interpolateHsl:function(){return b},interpolateHslLong:function(){return x},interpolateHue:function(){return l},interpolateLab:function(){return q},interpolateNumber:function(){return h.Z},interpolateNumberArray:function(){return f.Z},interpolateObject:function(){return d.Z},interpolateRgb:function(){return y.ZP},interpolateRgbBasis:function(){return y.hD},interpolateRgbBasisClosed:function(){return y.YD},interpolateRound:function(){return p.Z},interpolateString:function(){return g.Z},interpolateTransformCss:function(){return v.Y},interpolateTransformSvg:function(){return v.w},interpolateZoom:function(){return m.Z},piecewise:function(){return it},quantize:function(){return ot}});var r=n(3031),i=n(60053),o=n(39588),a=n(17280),s=n(28917);function u(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}var c=n(22656);function l(t,e){var n=(0,c.wx)(+t,+e);return function(t){var e=n(t);return e-360*Math.floor(e/360)}}var h=n(75306),f=n(61317),d=n(70901),p=n(47071),g=n(51882),v=n(44090),m=n(13764),y=n(38740),_=n(12314);function w(t){return function(e,n){var r=t((e=(0,_.Ym)(e)).h,(n=(0,_.Ym)(n)).h),i=(0,c.ZP)(e.s,n.s),o=(0,c.ZP)(e.l,n.l),a=(0,c.ZP)(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=o(t),e.opacity=a(t),e+""}}}var b=w(c.wx),x=w(c.ZP),E=n(80052),T=Math.PI/180,A=180/Math.PI,S=4/29,k=6/29,I=3*k*k;function D(t){if(t instanceof C)return new C(t.l,t.a,t.b,t.opacity);if(t instanceof P)return F(t);t instanceof _.Ss||(t=(0,_.SU)(t));var e,n,r=L(t.r),i=L(t.g),o=L(t.b),a=Z((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?e=n=a:(e=Z((.4360747*r+.3850649*i+.1430804*o)/.96422),n=Z((.0139322*r+.0971045*i+.7141733*o)/.82521)),new C(116*a-16,500*(e-a),200*(a-n),t.opacity)}function N(t,e,n,r){return 1===arguments.length?D(t):new C(t,e,n,null==r?1:r)}function C(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function Z(t){return t>.008856451679035631?Math.pow(t,1/3):t/I+S}function M(t){return t>k?t*t*t:I*(t-S)}function O(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function L(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function R(t){if(t instanceof P)return new P(t.h,t.c,t.l,t.opacity);if(t instanceof C||(t=D(t)),0===t.a&&0===t.b)return new P(NaN,0u&&(s=e.slice(u,s),l[c]?l[c]+=s:l[++c]=s),(n=n[0])===(a=a[0])?l[c]?l[c]+=a:l[++c]=a:(l[++c]=null,h.push({i:c,x:(0,r.Z)(n,a)})),u=o.lastIndex;return u180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:(0,s.Z)(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,u,c),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:(0,s.Z)(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,u,c),function(t,e,n,r,o,a){if(t!==n||e!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:(0,s.Z)(t,n)},{i:u-2,x:(0,s.Z)(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,c),o=a=null,function(t){for(var e,n=-1,r=c.length;++n1e-6)if(Math.abs(h*u-c*l)>1e-6&&o){var d=r-a,p=i-s,g=u*u+c*c,v=d*d+p*p,m=Math.sqrt(g),y=Math.sqrt(f),_=o*Math.tan((n-Math.acos((g+f-v)/(2*m*y)))/2),w=_/y,b=_/m;Math.abs(w-1)>1e-6&&(this._+="L"+(t+w*l)+","+(e+w*h)),this._+="A"+o+","+o+",0,0,"+ +(h*d>l*p)+","+(this._x1=t+b*u)+","+(this._y1=e+b*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,o,a,s,u){t=+t,e=+e,u=!!u;var c=(o=+o)*Math.cos(a),l=o*Math.sin(a),h=t+c,f=e+l,d=1^u,p=u?a-s:s-a;if(o<0)throw new Error("negative radius: "+o);null===this._x1?this._+="M"+h+","+f:(Math.abs(this._x1-h)>1e-6||Math.abs(this._y1-f)>1e-6)&&(this._+="L"+h+","+f),o&&(p<0&&(p=p%r+r),p>i?this._+="A"+o+","+o+",0,1,"+d+","+(t-c)+","+(e-l)+"A"+o+","+o+",0,1,"+d+","+(this._x1=h)+","+(this._y1=f):p>1e-6&&(this._+="A"+o+","+o+",0,"+ +(p>=n)+","+d+","+(this._x1=t+o*Math.cos(s))+","+(this._y1=e+o*Math.sin(s))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},e.Z=a},32436:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(26669),i=n(71867);function o(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===i.P&&e.documentElement.namespaceURI===i.P?e.createElement(t):e.createElementNS(n,t)}}function a(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function s(t){var e=(0,r.Z)(t);return(e.local?a:o)(e)}},24967:function(t,e,n){"use strict";n.r(e),n.d(e,{clientPoint:function(){return d.Z},create:function(){return o},creator:function(){return r.Z},customEvent:function(){return E._H},event:function(){return E.B},local:function(){return s},matcher:function(){return c.Z},mouse:function(){return l.Z},namespace:function(){return h.Z},namespaces:function(){return f.Z},select:function(){return i.Z},selectAll:function(){return g},selection:function(){return p.ZP},selector:function(){return v.Z},selectorAll:function(){return m.Z},style:function(){return y.S},touch:function(){return _.Z},touches:function(){return b},window:function(){return x.Z}});var r=n(32436),i=n(41036);function o(t){return(0,i.Z)((0,r.Z)(t).call(document.documentElement))}var a=0;function s(){return new u}function u(){this._="@"+(++a).toString(36)}u.prototype=s.prototype={constructor:u,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var c=n(54382),l=n(38337),h=n(26669),f=n(71867),d=n(54762),p=n(42710);function g(t){return"string"==typeof t?new p.Y1([document.querySelectorAll(t)],[document.documentElement]):new p.Y1([null==t?[]:t],p.Jz)}var v=n(69309),m=n(85502),y=n(97717),_=n(45161),w=n(72732);function b(t,e){null==e&&(e=(0,w.Z)().touches);for(var n=0,r=e?e.length:0,i=new Array(r);n=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),r.Z.hasOwnProperty(e)?{space:r.Z[e],local:t}:t}},71867:function(t,e,n){"use strict";n.d(e,{P:function(){return r}});var r="http://www.w3.org/1999/xhtml";e.Z={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},54762:function(t,e,n){"use strict";function r(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}n.d(e,{Z:function(){return r}})},41036:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(42710);function i(t){return"string"==typeof t?new r.Y1([[document.querySelector(t)]],[document.documentElement]):new r.Y1([[t]],r.Jz)}},42710:function(t,e,n){"use strict";n.d(e,{Y1:function(){return Q},ZP:function(){return X},Jz:function(){return H}});var r=n(69309),i=n(85502),o=n(54382);function a(t){return new Array(t.length)}function s(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function u(t,e,n,r,i,o){for(var a,u=0,c=e.length,l=o.length;ue?1:t>=e?0:NaN}s.prototype={constructor:s,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var h=n(26669);function f(t){return function(){this.removeAttribute(t)}}function d(t){return function(){this.removeAttributeNS(t.space,t.local)}}function p(t,e){return function(){this.setAttribute(t,e)}}function g(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function v(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function m(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var y=n(97717);function _(t){return function(){delete this[t]}}function w(t,e){return function(){this[t]=e}}function b(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function x(t){return t.trim().split(/^|\s+/)}function E(t){return t.classList||new T(t)}function T(t){this._node=t,this._names=x(t.getAttribute("class")||"")}function A(t,e){for(var n=E(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var P=n(32436);function F(){return null}function q(){var t=this.parentNode;t&&t.removeChild(this)}function j(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Y(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var B=n(92711),z=n(11130);function G(t,e,n){var r=(0,z.Z)(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function J(t,e){return function(){return G(this,t,e)}}function V(t,e){return function(){return G(this,t,e.apply(this,arguments))}}var H=[null];function Q(t,e){this._groups=t,this._parents=e}function W(){return new Q([[document.documentElement]],H)}Q.prototype=W.prototype={constructor:Q,select:function(t){"function"!=typeof t&&(t=(0,r.Z)(t));for(var e=this._groups,n=e.length,i=new Array(n),o=0;o=E&&(E=x+1);!(b=_[E])&&++E=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=l);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==e?_:"function"==typeof e?b:w)(t,e)):this.node()[t]},classed:function(t,e){var n=x(t+"");if(arguments.length<2){for(var r=E(this.node()),i=-1,o=n.length;++i=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}function u(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r1?this.each((null==e?i:"function"==typeof e?a:o)(t,e,null==n?"":n)):u(this.node(),t)}function u(t,e){return t.style.getPropertyValue(e)||(0,r.Z)(t).getComputedStyle(t,null).getPropertyValue(e)}},69309:function(t,e,n){"use strict";function r(){}function i(t){return null==t?r:function(){return this.querySelector(t)}}n.d(e,{Z:function(){return i}})},85502:function(t,e,n){"use strict";function r(){return[]}function i(t){return null==t?r:function(){return this.querySelectorAll(t)}}n.d(e,{Z:function(){return i}})},72732:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(92711);function i(){for(var t,e=r.B;t=e.sourceEvent;)e=t;return e}},45161:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(72732),i=n(54762);function o(t,e,n){arguments.length<3&&(n=e,e=(0,r.Z)().changedTouches);for(var o,a=0,s=e?e.length:0;a=0&&e._call.call(null,t),e=e._next;--o}function y(){c=(u=h.now())+l,o=a=0;try{m()}finally{o=0,function(){for(var t,e,n=r,o=1/0;n;)n._call?(o>n._time&&(o=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,w(o)}(),c=0}}function _(){var t=h.now(),e=t-u;e>1e3&&(l-=e,u=t)}function w(t){o||(a&&(a=clearTimeout(a)),t-c>24?(t<1/0&&(a=setTimeout(y,t-h.now()-l)),s&&(s=clearInterval(s))):(s||(u=h.now(),s=setInterval(_,1e3)),o=1,f(y)))}g.prototype=v.prototype={constructor:g,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?d():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,w()},stop:function(){this._call&&(this._call=null,this._time=1/0,w())}}},82159:function(t,e,n){"use strict";n.r(e),n.d(e,{active:function(){return it},interrupt:function(){return d},transition:function(){return $}});var r=n(42710),i=n(64641),o=n(65244),a=n(74199),s=(0,i.Z)("start","end","cancel","interrupt"),u=[];function c(t,e,n,r,i,c){var l=t.__transition;if(l){if(n in l)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function s(o){var l,h,f,d;if(1!==n.state)return c();for(l in i)if((d=i[l]).name===n.name){if(3===d.state)return(0,a.Z)(s);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete i[l]):+l0)throw new Error("too late; already scheduled");return n}function h(t,e){var n=f(t,e);if(n.state>3)throw new Error("too late; already running");return n}function f(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function d(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}}var p=n(44090),g=n(26669);function v(t,e){var n,r;return function(){var i=h(this,t),o=i.tween;if(o!==n)for(var a=0,s=(r=n=o).length;a=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?l:h;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var j=n(69309),Y=n(85502),B=r.ZP.prototype.constructor,z=n(97717);function G(t){return function(){this.style.removeProperty(t)}}function J(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function V(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&J(t,o,n)),r}return o._value=e,o}function H(t){return function(e){this.textContent=t.call(this,e)}}function Q(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&H(r)),e}return r._value=t,r}var W=0;function X(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function $(t){return(0,r.ZP)().transition(t)}function K(){return++W}var tt=r.ZP.prototype;X.prototype=$.prototype={constructor:X,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=(0,j.Z)(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a1&&n.name===e)return new X([[t]],rt,e,+r);return null}},59320:function(t,e,n){"use strict";n.r(e),n.d(e,{zoom:function(){return T},zoomIdentity:function(){return p},zoomTransform:function(){return g}});var r=n(64641),i=n(8634),o=n(13764),a=n(92711),s=n(38337),u=n(41036),c=n(45161),l=n(82159);function h(t){return function(){return t}}function f(t,e,n){this.target=t,this.type=e,this.transform=n}function d(t,e,n){this.k=t,this.x=e,this.y=n}d.prototype={constructor:d,scale:function(t){return 1===t?this:new d(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new d(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var p=new d(1,0,0);function g(t){return t.__zoom||p}function v(){a.B.stopImmediatePropagation()}function m(){a.B.preventDefault(),a.B.stopImmediatePropagation()}function y(){return!a.B.button}function _(){var t,e,n=this;return n instanceof SVGElement?(t=(n=n.ownerSVGElement||n).width.baseVal.value,e=n.height.baseVal.value):(t=n.clientWidth,e=n.clientHeight),[[0,0],[t,e]]}function w(){return this.__zoom||p}function b(){return-a.B.deltaY*(a.B.deltaMode?120:1)/500}function x(){return"ontouchstart"in this}function E(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function T(){var t,e,n=y,g=_,T=E,A=b,S=x,k=[0,1/0],I=[[-1/0,-1/0],[1/0,1/0]],D=250,N=o.Z,C=[],Z=(0,r.Z)("start","zoom","end"),M=0;function O(t){t.property("__zoom",w).on("wheel.zoom",j).on("mousedown.zoom",Y).on("dblclick.zoom",B).filter(S).on("touchstart.zoom",z).on("touchmove.zoom",G).on("touchend.zoom touchcancel.zoom",J).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function L(t,e){return(e=Math.max(k[0],Math.min(k[1],e)))===t.k?t:new d(e,t.x,t.y)}function R(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new d(t.k,r,i)}function U(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function P(t,e,n){t.on("start.zoom",function(){F(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){F(this,arguments).end()}).tween("zoom",function(){var t=this,r=arguments,i=F(t,r),o=g.apply(t,r),a=n||U(o),s=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),u=t.__zoom,c="function"==typeof e?e.apply(t,r):e,l=N(u.invert(a).concat(s/u.k),c.invert(a).concat(s/c.k));return function(t){if(1===t)t=c;else{var e=l(t),n=s/e[2];t=new d(n,a[0]-e[0]*n,a[1]-e[1]*n)}i.zoom(null,t)}})}function F(t,e){for(var n,r=0,i=C.length;rM}t.zoom("mouse",T(R(t.that.__zoom,t.mouse[0]=(0,s.Z)(t.that),t.mouse[1]),t.extent,I))}function d(){r.on("mousemove.zoom mouseup.zoom",null),(0,i.D)(a.B.view,t.moved),m(),t.end()}}function B(){if(n.apply(this,arguments)){var t=this.__zoom,e=(0,s.Z)(this),r=t.invert(e),i=t.k*(a.B.shiftKey?.5:2),o=T(R(L(t,i),e,r),g.apply(this,arguments),I);m(),D>0?(0,u.Z)(this).transition().duration(D).call(P,o,e):(0,u.Z)(this).call(O.transform,o)}}function z(){if(n.apply(this,arguments)){var e,r,i,o,s=F(this,arguments),h=a.B.changedTouches,f=h.length;for(v(),r=0;r0;--u)if(r=e[u].dequeue()){i=i.concat(s(t,e,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(c,function(e){return t.outEdges(e.v,e.w)}),!0)};var a=r.constant(1);function s(t,e,n,i,o){var a=o?[]:void 0;return r.forEach(t.inEdges(i.v),function(r){var i=t.edge(r),s=t.node(r.v);o&&a.push({v:r.v,w:r.w}),s.out-=i,u(e,n,s)}),r.forEach(t.outEdges(i.v),function(r){var i=t.edge(r),o=t.node(r.w);o.in-=i,u(e,n,o)}),t.removeNode(i.v),a}function u(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},73363:function(t,e,n){"use strict";var r=n(91096),i=n(19265),o=n(3266),a=n(29438),s=n(45247).normalizeRanks,u=n(22877),c=n(45247).removeEmptyRanks,l=n(8131),h=n(28549),f=n(64061),d=n(41727),p=n(14588),g=n(45247),v=n(49174).Graph;t.exports=function(t,e){var n=e&&e.debugTiming?g.time:g.notime;n("layout",function(){var e=n(" buildLayoutGraph",function(){return function(t){var e=new v({multigraph:!0,compound:!0}),n=S(t.graph());return e.setGraph(r.merge({},y,A(n,m),r.pick(n,_))),r.forEach(t.nodes(),function(n){var i=S(t.node(n));e.setNode(n,r.defaults(A(i,w),b)),e.setParent(n,t.parent(n))}),r.forEach(t.edges(),function(n){var i=S(t.edge(n));e.setEdge(n,r.merge({},E,A(i,x),r.pick(i,T)))}),e}(t)});n(" runLayout",function(){!function(t,e){e(" makeSpaceForEdgeLabels",function(){!function(t){var e=t.graph();e.ranksep/=2,r.forEach(t.edges(),function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}(t)}),e(" removeSelfEdges",function(){!function(t){r.forEach(t.edges(),function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}})}(t)}),e(" acyclic",function(){i.run(t)}),e(" nestingGraph.run",function(){l.run(t)}),e(" rank",function(){a(g.asNonCompoundGraph(t))}),e(" injectEdgeLabelProxies",function(){!function(t){r.forEach(t.edges(),function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i=t.node(e.w);g.addDummyNode(t,"edge-proxy",{rank:(i.rank-r.rank)/2+r.rank,e:e},"_ep")}})}(t)}),e(" removeEmptyRanks",function(){c(t)}),e(" nestingGraph.cleanup",function(){l.cleanup(t)}),e(" normalizeRanks",function(){s(t)}),e(" assignRankMinMax",function(){!function(t){var e=0;r.forEach(t.nodes(),function(n){var i=t.node(n);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=r.max(e,i.maxRank))}),t.graph().maxRank=e}(t)}),e(" removeEdgeLabelProxies",function(){!function(t){r.forEach(t.nodes(),function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))})}(t)}),e(" normalize.run",function(){o.run(t)}),e(" parentDummyChains",function(){u(t)}),e(" addBorderSegments",function(){h(t)}),e(" order",function(){d(t)}),e(" insertSelfEdges",function(){!function(t){var e=g.buildLayerMatrix(t);r.forEach(e,function(e){var n=0;r.forEach(e,function(e,i){var o=t.node(e);o.order=i+n,r.forEach(o.selfEdges,function(e){g.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:i+ ++n,e:e.e,label:e.label},"_se")}),delete o.selfEdges})})}(t)}),e(" adjustCoordinateSystem",function(){f.adjust(t)}),e(" position",function(){p(t)}),e(" positionSelfEdges",function(){!function(t){r.forEach(t.nodes(),function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,o=r.y,a=n.x-i,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*a/3,y:o-s},{x:i+5*a/6,y:o-s},{x:i+a,y:o},{x:i+5*a/6,y:o+s},{x:i+2*a/3,y:o+s}],n.label.x=n.x,n.label.y=n.y}})}(t)}),e(" removeBorderNodes",function(){!function(t){r.forEach(t.nodes(),function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),o=t.node(n.borderBottom),a=t.node(r.last(n.borderLeft)),s=t.node(r.last(n.borderRight));n.width=Math.abs(s.x-a.x),n.height=Math.abs(o.y-i.y),n.x=a.x+n.width/2,n.y=i.y+n.height/2}}),r.forEach(t.nodes(),function(e){"border"===t.node(e).dummy&&t.removeNode(e)})}(t)}),e(" normalize.undo",function(){o.undo(t)}),e(" fixupEdgeLabelCoords",function(){!function(t){r.forEach(t.edges(),function(e){var n=t.edge(e);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}})}(t)}),e(" undoCoordinateSystem",function(){f.undo(t)}),e(" translateGraph",function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,o=0,a=t.graph(),s=a.marginx||0,u=a.marginy||0;function c(t){var r=t.x,a=t.y,s=t.width,u=t.height;e=Math.min(e,r-s/2),n=Math.max(n,r+s/2),i=Math.min(i,a-u/2),o=Math.max(o,a+u/2)}r.forEach(t.nodes(),function(e){c(t.node(e))}),r.forEach(t.edges(),function(e){var n=t.edge(e);r.has(n,"x")&&c(n)}),e-=s,i-=u,r.forEach(t.nodes(),function(n){var r=t.node(n);r.x-=e,r.y-=i}),r.forEach(t.edges(),function(n){var o=t.edge(n);r.forEach(o.points,function(t){t.x-=e,t.y-=i}),r.has(o,"x")&&(o.x-=e),r.has(o,"y")&&(o.y-=i)}),a.width=n-e+s,a.height=o-i+u}(t)}),e(" assignNodeIntersects",function(){!function(t){r.forEach(t.edges(),function(e){var n,r,i=t.edge(e),o=t.node(e.v),a=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=a,r=o),i.points.unshift(g.intersectRect(o,n)),i.points.push(g.intersectRect(a,r))})}(t)}),e(" reversePoints",function(){!function(t){r.forEach(t.edges(),function(e){var n=t.edge(e);n.reversed&&n.points.reverse()})}(t)}),e(" acyclic.undo",function(){i.undo(t)})}(e,n)}),n(" updateInputGraph",function(){!function(t,e){r.forEach(t.nodes(),function(n){var r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,e.children(n).length&&(r.width=i.width,r.height=i.height))}),r.forEach(t.edges(),function(n){var i=t.edge(n),o=e.edge(n);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)}),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)})})};var m=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},_=["acyclicer","ranker","rankdir","align"],w=["width","height"],b={width:0,height:0},x=["minlen","weight","width","height","labeloffset"],E={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},T=["labelpos"];function A(t,e){return r.mapValues(r.pick(t,e),Number)}function S(t){var e={};return r.forEach(t,function(t,n){e[n.toLowerCase()]=t}),e}},91096:function(t,e,n){var r;try{r={cloneDeep:n(38961),constant:n(60583),defaults:n(25177),each:n(97635),filter:n(9673),find:n(13963),flatten:n(38863),forEach:n(26404),forIn:n(21308),has:n(71645),isUndefined:n(96075),last:n(83074),map:n(86169),mapValues:n(7301),max:n(11653),merge:n(81940),min:n(47983),minBy:n(42707),now:n(41396),pick:n(28891),range:n(79289),reduce:n(37442),sortBy:n(36272),uniqueId:n(83798),values:n(95041),zipObject:n(3393)}}catch(i){}r||(r=window._),t.exports=r},8131:function(t,e,n){var r=n(91096),i=n(45247);function o(t,e,n,a,s,u,c){var l=t.children(c);if(l.length){var h=i.addBorderNode(t,"_bt"),f=i.addBorderNode(t,"_bb"),d=t.node(c);t.setParent(h,c),d.borderTop=h,t.setParent(f,c),d.borderBottom=f,r.forEach(l,function(r){o(t,e,n,a,s,u,r);var i=t.node(r),l=i.borderTop?i.borderTop:r,d=i.borderBottom?i.borderBottom:r,p=i.borderTop?a:2*a,g=l!==d?1:s-u[c]+1;t.setEdge(h,l,{weight:p,minlen:g,nestingEdge:!0}),t.setEdge(d,f,{weight:p,minlen:g,nestingEdge:!0})}),t.parent(c)||t.setEdge(e,h,{weight:0,minlen:s+u[c]})}else c!==e&&t.setEdge(e,c,{weight:0,minlen:n})}t.exports={run:function(t){var e=i.addDummyNode(t,"root",{},"_root"),n=function(t){var e={};function n(i,o){var a=t.children(i);a&&a.length&&r.forEach(a,function(t){n(t,o+1)}),e[i]=o}return r.forEach(t.children(),function(t){n(t,1)}),e}(t),a=r.max(r.values(n))-1,s=2*a+1;t.graph().nestingRoot=e,r.forEach(t.edges(),function(e){t.edge(e).minlen*=s});var u=function(t){return r.reduce(t.edges(),function(e,n){return e+t.edge(n).weight},0)}(t)+1;r.forEach(t.children(),function(r){o(t,e,s,u,a,n,r)}),t.graph().nodeRankFactor=s},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.forEach(t.edges(),function(e){t.edge(e).nestingEdge&&t.removeEdge(e)})}}},3266:function(t,e,n){"use strict";var r=n(91096),i=n(45247);t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),function(e){!function(t,e){var n,r,o,a=e.v,s=t.node(a).rank,u=e.w,c=t.node(u).rank,l=e.name,h=t.edge(e),f=h.labelRank;if(c!==s+1){for(t.removeEdge(e),o=0,++s;s0;)e%2&&(n+=u[e+1]),u[e=e-1>>1]+=t.weight;c+=t.weight*n})),c}t.exports=function(t,e){for(var n=0,r=1;r=2),s=l.buildLayerMatrix(t);var v=o(t,s);v=t.barycenter)&&(o=0,a=0,(n=t).weight&&(o+=n.barycenter*n.weight,a+=n.weight),(i=e).weight&&(o+=i.barycenter*i.weight,a+=i.weight),n.vs=i.vs.concat(n.vs),n.barycenter=o/a,n.weight=a,n.i=Math.min(i.i,n.i),i.merged=!0)}}function i(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var o=t.pop();e.push(o),r.forEach(o.in.reverse(),n(o)),r.forEach(o.out,i(o))}return r.map(r.filter(e,function(t){return!t.merged}),function(t){return r.pick(t,["vs","i","barycenter","weight"])})}(r.filter(n,function(t){return!t.indegree}))}},5826:function(t,e,n){var r=n(91096),i=n(25412),o=n(82764),a=n(37850);t.exports=function t(e,n,s,u){var c=e.children(n),l=e.node(n),h=l?l.borderLeft:void 0,f=l?l.borderRight:void 0,d={};h&&(c=r.filter(c,function(t){return t!==h&&t!==f}));var p=i(e,c);r.forEach(p,function(n){if(e.children(n.v).length){var i=t(e,n.v,s,u);d[n.v]=i,r.has(i,"barycenter")&&(a=i,r.isUndefined((o=n).barycenter)?(o.barycenter=a.barycenter,o.weight=a.weight):(o.barycenter=(o.barycenter*o.weight+a.barycenter*a.weight)/(o.weight+a.weight),o.weight+=a.weight))}var o,a});var g=o(p,s);!function(t,e){r.forEach(t,function(t){t.vs=r.flatten(t.vs.map(function(t){return e[t]?e[t].vs:t}),!0)})}(g,d);var v=a(g,u);if(h&&(v.vs=r.flatten([h,v.vs,f],!0),e.predecessors(h).length)){var m=e.node(e.predecessors(h)[0]),y=e.node(e.predecessors(f)[0]);r.has(v,"barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+m.order+y.order)/(v.weight+2),v.weight+=2}return v}},37850:function(t,e,n){var r=n(91096),i=n(45247);function o(t,e,n){for(var i;e.length&&(i=r.last(e)).i<=n;)e.pop(),t.push(i.vs),n++;return n}t.exports=function(t,e){var n,a=i.partition(t,function(t){return r.has(t,"barycenter")}),s=a.lhs,u=r.sortBy(a.rhs,function(t){return-t.i}),c=[],l=0,h=0,f=0;s.sort((n=!!e,function(t,e){return t.barycentere.barycenter?1:n?e.i-t.i:t.i-e.i})),f=o(c,u,f),r.forEach(s,function(t){f+=t.vs.length,c.push(t.vs),l+=t.barycenter*t.weight,h+=t.weight,f=o(c,u,f)});var d={vs:r.flatten(c,!0)};return h&&(d.barycenter=l/h,d.weight=h),d}},22877:function(t,e,n){var r=n(91096);t.exports=function(t){var e=function(t){var e={},n=0;return r.forEach(t.children(),function i(o){var a=n;r.forEach(t.children(o),i),e[o]={low:a,lim:n++}}),e}(t);r.forEach(t.graph().dummyChains,function(n){for(var r=t.node(n),i=r.edgeObj,o=function(t,e,n,r){var i,o,a=[],s=[],u=Math.min(e[n].low,e[r].low),c=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),a.push(i)}while(i&&(e[i].low>u||c>e[i].lim));for(o=i,i=r;(i=t.parent(i))!==o;)s.push(i);return{path:a.concat(s.reverse()),lca:o}}(t,e,i.v,i.w),a=o.path,s=o.lca,u=0,c=a[u],l=!0;n!==i.w;){if(r=t.node(n),l){for(;(c=a[u])!==s&&t.node(c).maxRanks)&&u(n,e,c)})})}return r.reduce(e,function(e,n){var o,a=-1,s=0;return r.forEach(n,function(r,u){if("border"===t.node(r).dummy){var c=t.predecessors(r);c.length&&(o=t.node(c[0]).order,i(n,s,u,a,o),s=u,a=o)}i(n,s,n.length,o,e.length)}),n}),n}function u(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function c(t,e,n){if(e>n){var i=e;e=n,n=i}return r.has(t[e],n)}function l(t,e,n,i){var o={},a={},s={};return r.forEach(e,function(t){r.forEach(t,function(t,e){o[t]=t,a[t]=t,s[t]=e})}),r.forEach(e,function(t){var e=-1;r.forEach(t,function(t){var u=i(t);if(u.length)for(var l=((u=r.sortBy(u,function(t){return s[t]})).length-1)/2,h=Math.floor(l),f=Math.ceil(l);h<=f;++h){var d=u[h];a[t]===t&&eu.lim&&(c=u,l=!0);var h=r.filter(e.edges(),function(e){return l===y(0,t.node(e.v),c)&&l!==y(0,t.node(e.w),c)});return r.minBy(h,function(t){return o(e,t)})}function m(t,e,n,i){t.removeEdge(n.v,n.w),t.setEdge(i.v,i.w,{}),d(t),h(t,e),function(t,e){var n=r.find(t.nodes(),function(t){return!e.node(t).parent}),i=s(t,n);i=i.slice(1),r.forEach(i,function(n){var r=t.node(n).parent,i=e.edge(n,r),o=!1;i||(i=e.edge(r,n),o=!0),e.node(n).rank=e.node(r).rank+(o?i.minlen:-i.minlen)})}(t,e)}function y(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=l,l.initLowLimValues=d,l.initCutValues=h,l.calcCutValue=f,l.leaveEdge=g,l.enterEdge=v,l.exchangeEdges=m},21790:function(t,e,n){"use strict";var r=n(91096);t.exports={longestPath:function(t){var e={};r.forEach(t.sources(),function n(i){var o=t.node(i);if(r.has(e,i))return o.rank;e[i]=!0;var a=r.min(r.map(t.outEdges(i),function(e){return n(e.w)-t.edge(e).minlen}));return a!==Number.POSITIVE_INFINITY&&null!=a||(a=0),o.rank=a})},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},45247:function(t,e,n){"use strict";var r=n(91096),i=n(49174).Graph;function o(t,e,n,i){var o;do{o=r.uniqueId(i)}while(t.hasNode(o));return n.dummy=e,t.setNode(o,n),o}function a(t){return r.max(r.map(t.nodes(),function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n}))}t.exports={addDummyNode:o,simplify:function(t){var e=(new i).setGraph(t.graph());return r.forEach(t.nodes(),function(n){e.setNode(n,t.node(n))}),r.forEach(t.edges(),function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),e},asNonCompoundGraph:function(t){var e=new i({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),function(n){t.children(n).length||e.setNode(n,t.node(n))}),r.forEach(t.edges(),function(n){e.setEdge(n,t.edge(n))}),e},successorWeights:function(t){var e=r.map(t.nodes(),function(e){var n={};return r.forEach(t.outEdges(e),function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight}),n});return r.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=r.map(t.nodes(),function(e){var n={};return r.forEach(t.inEdges(e),function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight}),n});return r.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,i=t.x,o=t.y,a=e.x-i,s=e.y-o,u=t.width/2,c=t.height/2;if(!a&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*u>Math.abs(a)*c?(s<0&&(c=-c),n=c*a/s,r=c):(a<0&&(u=-u),n=u,r=u*s/a),{x:i+n,y:o+r}},buildLayerMatrix:function(t){var e=r.map(r.range(a(t)+1),function(){return[]});return r.forEach(t.nodes(),function(n){var i=t.node(n),o=i.rank;r.isUndefined(o)||(e[o][i.order]=n)}),e},normalizeRanks:function(t){var e=r.min(r.map(t.nodes(),function(e){return t.node(e).rank}));r.forEach(t.nodes(),function(n){var i=t.node(n);r.has(i,"rank")&&(i.rank-=e)})},removeEmptyRanks:function(t){var e=r.min(r.map(t.nodes(),function(e){return t.node(e).rank})),n=[];r.forEach(t.nodes(),function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)});var i=0,o=t.graph().nodeRankFactor;r.forEach(n,function(e,n){r.isUndefined(e)&&n%o!=0?--i:i&&r.forEach(e,function(e){t.node(e).rank+=i})})},addBorderNode:function(t,e,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),o(t,"border",i,e)},maxRank:a,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,function(t){e(t)?n.lhs.push(t):n.rhs.push(t)}),n},time:function(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}},notime:function(t,e){return e()}}},32862:function(t){t.exports="0.8.5"},54204:function(t,e,n){var r=n(97078);t.exports={Graph:r.Graph,json:n(2063),alg:n(29790),version:r.version}},66451:function(t,e,n){var r=n(77241);t.exports=function(t){var e,n={},i=[];function o(i){r.has(n,i)||(n[i]=!0,e.push(i),r.each(t.successors(i),o),r.each(t.predecessors(i),o))}return r.each(t.nodes(),function(t){e=[],o(t),e.length&&i.push(e)}),i}},70485:function(t,e,n){var r=n(77241);function i(t,e,n,o,a,s){r.has(o,e)||(o[e]=!0,n||s.push(e),r.each(a(e),function(e){i(t,e,n,o,a,s)}),n&&s.push(e))}t.exports=function(t,e,n){r.isArray(e)||(e=[e]);var o=(t.isDirected()?t.successors:t.neighbors).bind(t),a=[],s={};return r.each(e,function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);i(t,e,"post"===n,s,o,a)}),a}},85818:function(t,e,n){var r=n(26731),i=n(77241);t.exports=function(t,e,n){return i.transform(t.nodes(),function(i,o){i[o]=r(t,o,e,n)},{})}},26731:function(t,e,n){var r=n(77241),i=n(9266);t.exports=function(t,e,n,r){return function(t,e,n,r){var o,a,s={},u=new i,c=function(t){var e=t.v!==o?t.v:t.w,r=s[e],i=n(t),c=a.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);c0&&(o=u.removeMin(),(a=s[o]).distance!==Number.POSITIVE_INFINITY);)r(o).forEach(c);return s}(t,String(e),n||o,r||function(e){return t.outEdges(e)})};var o=r.constant(1)},8821:function(t,e,n){var r=n(77241),i=n(45759);t.exports=function(t){return r.filter(i(t),function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])})}},24980:function(t,e,n){var r=n(77241);t.exports=function(t,e,n){return function(t,e,n){var r={},i=t.nodes();return i.forEach(function(t){r[t]={},r[t][t]={distance:0},i.forEach(function(e){t!==e&&(r[t][e]={distance:Number.POSITIVE_INFINITY})}),n(t).forEach(function(n){var i=n.v===t?n.w:n.v,o=e(n);r[t][i]={distance:o,predecessor:t}})}),i.forEach(function(t){var e=r[t];i.forEach(function(n){var o=r[n];i.forEach(function(n){var r=e[n],i=o[n],a=o[t].distance+r.distance;a0;){if(n=u.removeMin(),r.has(s,n))a.setEdge(n,s[n]);else{if(l)throw new Error("Input graph is not connected: "+t);l=!0}t.nodeEdges(n).forEach(c)}return a}},45759:function(t,e,n){var r=n(77241);t.exports=function(t){var e=0,n=[],i={},o=[];function a(s){var u=i[s]={onStack:!0,lowlink:e,index:e++};if(n.push(s),t.successors(s).forEach(function(t){r.has(i,t)?i[t].onStack&&(u.lowlink=Math.min(u.lowlink,i[t].index)):(a(t),u.lowlink=Math.min(u.lowlink,i[t].lowlink))}),u.lowlink===u.index){var c,l=[];do{c=n.pop(),i[c].onStack=!1,l.push(c)}while(s!==c);o.push(l)}}return t.nodes().forEach(function(t){r.has(i,t)||a(t)}),o}},94394:function(t,e,n){var r=n(77241);function i(t){var e={},n={},i=[];if(r.each(t.sinks(),function a(s){if(r.has(n,s))throw new o;r.has(e,s)||(n[s]=!0,e[s]=!0,r.each(t.predecessors(s),a),delete n[s],i.push(s))}),r.size(e)!==t.nodeCount())throw new o;return i}function o(){}t.exports=i,i.CycleException=o,o.prototype=new Error},9266:function(t,e,n){var r=n(77241);function i(){this._arr=[],this._keyIndices={}}t.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map(function(t){return t.key})},i.prototype.has=function(t){return r.has(this._keyIndices,t)},i.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var i=this._arr,o=i.length;return n[t]=o,i.push({key:t,priority:e}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},i.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},i.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n>1].prioritya){var s=o;o=a,a=s}return o+"\x01"+a+"\x01"+(r.isUndefined(i)?"\0":i)}function u(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var a=i;i=o,o=a}var s={v:i,w:o};return r&&(s.name=r),s}function c(t,e){return s(t,e.v,e.w,e.name)}t.exports=i,i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(t){return this._label=t,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return r.keys(this._nodes)},i.prototype.sources=function(){var t=this;return r.filter(this.nodes(),function(e){return r.isEmpty(t._in[e])})},i.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),function(e){return r.isEmpty(t._out[e])})},i.prototype.setNodes=function(t,e){var n=arguments,i=this;return r.each(t,function(t){n.length>1?i.setNode(t,e):i.setNode(t)}),this},i.prototype.setNode=function(t,e){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]="\0",this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},i.prototype.node=function(t){return this._nodes[t]},i.prototype.hasNode=function(t){return r.has(this._nodes,t)},i.prototype.removeNode=function(t){var e=this;if(r.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),function(t){e.setParent(t)}),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},i.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e="\0";else{for(var n=e+="";!r.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},i.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},i.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if("\0"!==e)return e}},i.prototype.children=function(t){if(r.isUndefined(t)&&(t="\0"),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else{if("\0"===t)return this.nodes();if(this.hasNode(t))return[]}},i.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},i.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},i.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},i.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},i.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;r.each(this._nodes,function(n,r){t(r)&&e.setNode(r,n)}),r.each(this._edgeObjs,function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))});var i={};function o(t){var r=n.parent(t);return void 0===r||e.hasNode(r)?(i[t]=r,r):r in i?i[r]:o(r)}return this._isCompound&&r.each(e.nodes(),function(t){e.setParent(t,o(t))}),e},i.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return r.values(this._edgeObjs)},i.prototype.setPath=function(t,e){var n=this,i=arguments;return r.reduce(t,function(t,r){return i.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r}),this},i.prototype.setEdge=function(){var t,e,n,i,a=!1,c=arguments[0];"object"==typeof c&&null!==c&&"v"in c?(t=c.v,e=c.w,n=c.name,2===arguments.length&&(i=arguments[1],a=!0)):(t=c,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var l=s(this._isDirected,t,e,n);if(r.has(this._edgeLabels,l))return a&&(this._edgeLabels[l]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[l]=a?i:this._defaultEdgeLabelFn(t,e,n);var h=u(this._isDirected,t,e,n);return t=h.v,e=h.w,Object.freeze(h),this._edgeObjs[l]=h,o(this._preds[e],t),o(this._sucs[t],e),this._in[e][l]=h,this._out[t][l]=h,this._edgeCount++,this},i.prototype.edge=function(t,e,n){var r=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,t,e,n);return this._edgeLabels[r]},i.prototype.hasEdge=function(t,e,n){var i=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,t,e,n);return r.has(this._edgeLabels,i)},i.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,t,e,n),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],a(this._preds[e],t),a(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},i.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var i=r.values(n);return e?r.filter(i,function(t){return t.v===e}):i}},i.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var i=r.values(n);return e?r.filter(i,function(t){return t.w===e}):i}},i.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},97078:function(t,e,n){t.exports={Graph:n(10179),version:n(57160)}},2063:function(t,e,n){var r=n(77241),i=n(10179);function o(t){return r.map(t.nodes(),function(e){var n=t.node(e),i=t.parent(e),o={v:e};return r.isUndefined(n)||(o.value=n),r.isUndefined(i)||(o.parent=i),o})}function a(t){return r.map(t.edges(),function(e){var n=t.edge(e),i={v:e.v,w:e.w};return r.isUndefined(e.name)||(i.name=e.name),r.isUndefined(n)||(i.value=n),i})}t.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:o(t),edges:a(t)};return r.isUndefined(t.graph())||(e.value=r.clone(t.graph())),e},read:function(t){var e=new i(t.options).setGraph(t.value);return r.each(t.nodes,function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)}),r.each(t.edges,function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),e}}},77241:function(t,e,n){var r;try{r={clone:n(7063),constant:n(60583),each:n(97635),filter:n(9673),has:n(71645),isArray:n(47712),isEmpty:n(19129),isFunction:n(70458),isUndefined:n(96075),keys:n(48600),map:n(86169),reduce:n(37442),size:n(26809),transform:n(86987),union:n(50875),values:n(95041)}}catch(i){}r||(r=window._),t.exports=r},57160:function(t){t.exports="2.1.8"},22550:function(t,e,n){var r=n(31311)(n(58568),"DataView");t.exports=r},27868:function(t,e,n){var r=n(18944),i=n(18790),o=n(40218),a=n(80072),s=n(3575);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1}},5724:function(t){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r0&&o(l)?n>1?t(l,n-1,o,a,s):r(s,l):a||(s[s.length]=l)}return s}},48486:function(t,e,n){var r=n(43999)();t.exports=r},79941:function(t,e,n){var r=n(48486),i=n(48600);t.exports=function(t,e){return t&&r(t,e,i)}},91338:function(t,e,n){var r=n(21813),i=n(71241);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&ne}},50018:function(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t,n){return null!=t&&e.call(t,n)}},29828:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},37551:function(t,e,n){var r=n(72322),i=n(32564),o=n(39920);t.exports=function(t,e,n){return e==e?o(t,e,n):r(t,i,n)}},80561:function(t,e,n){var r=n(3219),i=n(3902);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},31999:function(t,e,n){var r=n(47690),i=n(3902);t.exports=function t(e,n,o,a,s){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,a,t,s))}},47690:function(t,e,n){var r=n(30964),i=n(49642),o=n(97868),a=n(85234),s=n(32234),u=n(47712),c=n(80354),l=n(51156),h="[object Object]",f=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,d,p,g){var v=u(t),m=u(e),y=v?"[object Array]":s(t),_=m?"[object Array]":s(e),w=(y="[object Arguments]"==y?h:y)==h,b=(_="[object Arguments]"==_?h:_)==h,x=y==_;if(x&&c(t)){if(!c(e))return!1;v=!0,w=!1}if(x&&!w)return g||(g=new r),v||l(t)?i(t,e,n,d,p,g):o(t,e,y,n,d,p,g);if(!(1&n)){var E=w&&f.call(t,"__wrapped__"),T=b&&f.call(e,"__wrapped__");if(E||T){var A=E?t.value():t,S=T?e.value():e;return g||(g=new r),p(A,S,n,d,g)}}return!!x&&(g||(g=new r),a(t,e,n,d,p,g))}},75080:function(t,e,n){var r=n(32234),i=n(3902);t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},16050:function(t,e,n){var r=n(30964),i=n(31999);t.exports=function(t,e,n,o){var a=n.length,s=a,u=!o;if(null==t)return!s;for(t=Object(t);a--;){var c=n[a];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a=200){var g=e?null:s(t);if(g)return u(g);f=!1,l=a,p=new r}else p=e?[]:d;t:for(;++ce||a&&s&&c&&!u&&!l||i&&s&&c||!n&&c||!o)return 1;if(!i&&!a&&!l&&t=u?c:c*("desc"==n[i]?-1:1)}return t.index-e.index}},49327:function(t){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++r-1?s[u?e[c]:c]:void 0}}},15395:function(t,e,n){var r=n(49727),i=n(10139),o=n(56016);t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&i(e,n,a)&&(n=a=void 0),e=o(e),void 0===n?(n=e,e=0):n=o(n),a=void 0===a?el))return!1;var f=u.get(t),d=u.get(e);if(f&&d)return f==e&&d==t;var p=-1,g=!0,v=2&n?new r:void 0;for(u.set(t,e),u.set(e,t);++p-1&&t%1==0&&t-1}},2154:function(t,e,n){var r=n(67477);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},58289:function(t,e,n){var r=n(27868),i=n(58170),o=n(6647);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},19581:function(t,e,n){var r=n(65810);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},61608:function(t,e,n){var r=n(65810);t.exports=function(t){return r(this,t).get(t)}},8901:function(t,e,n){var r=n(65810);t.exports=function(t){return r(this,t).has(t)}},12399:function(t,e,n){var r=n(65810);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},95622:function(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}},96878:function(t){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},94667:function(t,e,n){var r=n(74884);t.exports=function(t){var e=r(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}},54263:function(t,e,n){var r=n(31311)(Object,"create");t.exports=r},75427:function(t,e,n){var r=n(11621)(Object.keys,Object);t.exports=r},3601:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},80166:function(t,e,n){t=n.nmd(t);var r=n(52127),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s},91059:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},11621:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},90877:function(t,e,n){var r=n(86932),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),u=Array(s);++a0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},31816:function(t,e,n){var r=n(58170);t.exports=function(){this.__data__=new r,this.size=0}},86246:function(t){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},95499:function(t){t.exports=function(t){return this.__data__.get(t)}},17114:function(t){t.exports=function(t){return this.__data__.has(t)}},68677:function(t,e,n){var r=n(58170),i=n(6647),o=n(98856);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},39920:function(t){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r2?e[2]:void 0;for(c&&o(e[0],e[1],c)&&(r=1);++n-1&&t%1==0&&t<=9007199254740991}},49333:function(t,e,n){var r=n(75080),i=n(97633),o=n(80166),a=o&&o.isMap,s=a?i(a):r;t.exports=s},17305:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3902:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},7629:function(t,e,n){var r=n(3219),i=n(45410),o=n(3902),a=Function.prototype.toString,s=Object.prototype.hasOwnProperty,u=a.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=s.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&a.call(n)==u}},8274:function(t,e,n){var r=n(15104),i=n(97633),o=n(80166),a=o&&o.isSet,s=a?i(a):r;t.exports=s},27764:function(t,e,n){var r=n(3219),i=n(47712),o=n(3902);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},30419:function(t,e,n){var r=n(3219),i=n(3902);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},51156:function(t,e,n){var r=n(94154),i=n(97633),o=n(80166),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},96075:function(t){t.exports=function(t){return void 0===t}},48600:function(t,e,n){var r=n(48421),i=n(97272),o=n(9140);t.exports=function(t){return o(t)?r(t):i(t)}},10752:function(t,e,n){var r=n(48421),i=n(40623),o=n(9140);t.exports=function(t){return o(t)?r(t,!0):i(t)}},83074:function(t){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},86169:function(t,e,n){var r=n(20529),i=n(82617),o=n(26091),a=n(47712);t.exports=function(t,e){return(a(t)?r:o)(t,i(e,3))}},7301:function(t,e,n){var r=n(61216),i=n(79941),o=n(82617);t.exports=function(t,e){var n={};return e=o(e,3),i(t,function(t,i,o){r(n,i,e(t,i,o))}),n}},11653:function(t,e,n){var r=n(91241),i=n(98109),o=n(19903);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},74884:function(t,e,n){var r=n(98856);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},81940:function(t,e,n){var r=n(75705),i=n(57082)(function(t,e,n){r(t,e,n)});t.exports=i},47983:function(t,e,n){var r=n(91241),i=n(69661),o=n(19903);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},42707:function(t,e,n){var r=n(91241),i=n(82617),o=n(69661);t.exports=function(t,e){return t&&t.length?r(t,i(e,2),o):void 0}},15533:function(t){t.exports=function(){}},41396:function(t,e,n){var r=n(58568);t.exports=function(){return r.Date.now()}},28891:function(t,e,n){var r=n(14964),i=n(9771)(function(t,e){return null==t?{}:r(t,e)});t.exports=i},57675:function(t,e,n){var r=n(80087),i=n(47044),o=n(46149),a=n(71241);t.exports=function(t){return o(t)?r(a(t)):i(t)}},79289:function(t,e,n){var r=n(15395)();t.exports=r},37442:function(t,e,n){var r=n(27971),i=n(43079),o=n(82617),a=n(95482),s=n(47712);t.exports=function(t,e,n){var u=s(t)?r:a,c=arguments.length<3;return u(t,o(e,4),n,c,i)}},26809:function(t,e,n){var r=n(97272),i=n(32234),o=n(9140),a=n(27764),s=n(3941);t.exports=function(t){if(null==t)return 0;if(o(t))return a(t)?s(t):t.length;var e=i(t);return"[object Map]"==e||"[object Set]"==e?t.size:r(t).length}},36272:function(t,e,n){var r=n(9555),i=n(22824),o=n(37165),a=n(10139),s=o(function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])});t.exports=s},20668:function(t){t.exports=function(){return[]}},1950:function(t){t.exports=function(){return!1}},56016:function(t,e,n){var r=n(68135);t.exports=function(t){return t?1/0===(t=r(t))||-1/0===t?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},82748:function(t,e,n){var r=n(56016);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},68135:function(t,e,n){var r=n(94530),i=n(17305),o=n(30419),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=s.test(t);return n||u.test(t)?c(t.slice(2),n?2:8):a.test(t)?NaN:+t}},65208:function(t,e,n){var r=n(79399),i=n(10752);t.exports=function(t){return r(t,i(t))}},89196:function(t,e,n){var r=n(17667);t.exports=function(t){return null==t?"":r(t)}},86987:function(t,e,n){var r=n(41492),i=n(56004),o=n(79941),a=n(82617),s=n(45410),u=n(47712),c=n(80354),l=n(70458),h=n(17305),f=n(51156);t.exports=function(t,e,n){var d=u(t),p=d||c(t)||f(t);if(e=a(e,4),null==n){var g=t&&t.constructor;n=p?d?new g:[]:h(t)&&l(g)?i(s(t)):{}}return(p?r:o)(t,function(t,r,i){return e(n,t,r,i)}),n}},50875:function(t,e,n){var r=n(9555),i=n(37165),o=n(66833),a=n(56633),s=i(function(t){return o(r(t,1,a,!0))});t.exports=s},83798:function(t,e,n){var r=n(89196),i=0;t.exports=function(t){var e=++i;return r(t)+e}},95041:function(t,e,n){var r=n(10744),i=n(48600);t.exports=function(t){return null==t?[]:r(t,i(t))}},3393:function(t,e,n){var r=n(25823),i=n(60170);t.exports=function(t,e){return i(t||[],e||[],r)}},41282:function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),r(n(69812)),r(n(65098)),r(n(59895)),r(n(13408)),r(n(66082)),r(n(33839)),r(n(51390)),r(n(83807)),r(n(24232)),r(n(22267)),r(n(741)),r(n(21539)),r(n(97002)),r(n(99147)),r(n(70980)),r(n(96684))},69812:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(51390),a=function(t){function e(e){var n=t.call(this)||this,r=e;return r.trigger&&(n.trigger=r.trigger),r.kick&&(n.kick=r.kick),r.drag&&(n.drag=r.drag),r.on&&(n.on=r.on),n.dragstart=n.dragStart=o.Layout.dragStart,n.dragend=n.dragEnd=o.Layout.dragEnd,n}return i(e,t),e.prototype.trigger=function(t){},e.prototype.kick=function(){},e.prototype.drag=function(){},e.prototype.on=function(t,e){return this},e}(o.Layout);e.LayoutAdaptor=a,e.adaptor=function(t){return new a(t)}},96684:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(51390),i=n(66082);e.gridify=function(t,e,n,r){return t.cola.start(0,0,0,10,!1),function(t,e,n,r){t.forEach(function(t){t.routerNode={name:t.name,bounds:t.bounds.inflate(-n)}}),e.forEach(function(e){e.routerNode={bounds:e.bounds.inflate(-r),children:(void 0!==e.groups?e.groups.map(function(e){return t.length+e.id}):[]).concat(void 0!==e.leaves?e.leaves.map(function(t){return t.index}):[])}});var o=t.concat(e).map(function(t,e){return t.routerNode.id=e,t.routerNode});return new i.GridRouter(o,{getChildren:function(t){return t.children},getBounds:function(t){return t.bounds}},n-r)}(t.cola.nodes(),t.cola.groups(),n,r).routeEdges(t.powerGraph.powerEdges,e,function(t){return t.source.routerNode.id},function(t){return t.target.routerNode.id})},e.powerGraphGridLayout=function(t,e,n){var i;t.nodes.forEach(function(t,e){return t.index=e}),(new r.Layout).avoidOverlaps(!1).nodes(t.nodes).links(t.links).powerGraphGroups(function(t){(i=t).groups.forEach(function(t){return t.padding=n})});var o=t.nodes.length,a=[],s=t.nodes.slice(0);return s.forEach(function(t,e){return t.index=e}),i.groups.forEach(function(t){var e=t.index=t.id+o;s.push(t),void 0!==t.leaves&&t.leaves.forEach(function(t){return a.push({source:e,target:t.index})}),void 0!==t.groups&&t.groups.forEach(function(t){return a.push({source:e,target:t.id+o})})}),i.powerEdges.forEach(function(t){a.push({source:t.source.index,target:t.target.index})}),(new r.Layout).size(e).nodes(s).links(a).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:(new r.Layout).convergenceThreshold(.001).size(e).avoidOverlaps(!0).nodes(t.nodes).links(t.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(t){(i=t).groups.forEach(function(t){t.padding=n})}).start(50,0,100,0,!1),powerGraph:i}}},65098:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(29738),i=n(62834);e.d3adaptor=function(t){return!t||function(t){return t.version&&null!==t.version.match(/^3\./)}(t)?new r.D3StyleLayoutAdaptor:new i.D3StyleLayoutAdaptor(t)}},29738:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(51390),a=function(t){function e(){var e=t.call(this)||this;e.event=d3.dispatch(o.EventType[o.EventType.start],o.EventType[o.EventType.tick],o.EventType[o.EventType.end]);var n=e;return e.drag=function(){if(!t)var t=d3.behavior.drag().origin(o.Layout.dragOrigin).on("dragstart.d3adaptor",o.Layout.dragStart).on("drag.d3adaptor",function(t){o.Layout.drag(t,d3.event),n.resume()}).on("dragend.d3adaptor",o.Layout.dragEnd);if(!arguments.length)return t;this.call(t)},e}return i(e,t),e.prototype.trigger=function(t){var e={type:o.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event[e.type](e)},e.prototype.kick=function(){var e=this;d3.timer(function(){return t.prototype.tick.call(e)})},e.prototype.on=function(t,e){return this.event.on("string"==typeof t?t:o.EventType[t],e),this},e}(o.Layout);e.D3StyleLayoutAdaptor=a,e.d3adaptor=function(){return new a}},62834:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(51390);e.D3StyleLayoutAdaptor=function(t){function e(e){var n=t.call(this)||this;n.d3Context=e,n.event=e.dispatch(o.EventType[o.EventType.start],o.EventType[o.EventType.tick],o.EventType[o.EventType.end]);var r=n;return n.drag=function(){if(!t)var t=e.drag().subject(o.Layout.dragOrigin).on("start.d3adaptor",o.Layout.dragStart).on("drag.d3adaptor",function(t){o.Layout.drag(t,e.event),r.resume()}).on("end.d3adaptor",o.Layout.dragEnd);if(!arguments.length)return t;arguments[0].call(t)},n}return i(e,t),e.prototype.trigger=function(t){var e={type:o.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event.call(e.type,e)},e.prototype.kick=function(){var e=this,n=this.d3Context.timer(function(){return t.prototype.tick.call(e)&&n.stop()})},e.prototype.on=function(t,e){return this.event.on("string"==typeof t?t:o.EventType[t],e),this},e}(o.Layout)},59895:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){this.locks={}}return t.prototype.add=function(t,e){this.locks[t]=e},t.prototype.clear=function(){this.locks={}},t.prototype.isEmpty=function(){for(var t in this.locks)return!1;return!0},t.prototype.apply=function(t){for(var e in this.locks)t(Number(e),this.locks[e])},t}();e.Locks=n,e.Descent=function(){function t(t,e,i){void 0===i&&(i=null),this.D=e,this.G=i,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new r,this.project=null,this.x=t,this.k=t.length;var o=this.n=t[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 n,this.minD=Number.MAX_VALUE;for(var a,s=o;s--;)for(a=o;--a>s;){var u=e[s][a];u>0&&u1e-9)break;var d=this.offsetDir();for(r=0;r1&&p>g||!isFinite(g))for(r=0;r1&&(v=1);var m=g*g,y=2*v*(p-g)/(m*p),_=p*p*p,w=2*-v/(m*_);for(isFinite(y)||console.log(y),r=0;r0?A-(I+1)*x:A-(I-1)*x)&&f<=b&&(this.scaleSnapByMaxH?(this.g[r][u]+=s*E*f,this.H[r][u][u]+=s*E):(this.g[r][u]+=E*f,this.H[r][u][u]+=E))}this.locks.isEmpty()||this.locks.apply(function(n,i){for(r=0;r0;)for(var i=e;i-- >0;)n(r,i)},t.prototype.matrixApply=function(e){t.mApply(this.k,this.n,e)},t.prototype.computeNextPosition=function(t,e){var n=this;this.computeDerivatives(t);var r=this.computeStepSize(this.g);if(this.stepAndProject(t,e,this.g,r),this.project){this.matrixApply(function(r,i){return n.e[r][i]=t[r][i]-e[r][i]});var i=this.computeStepSize(this.e);i=Math.max(.2,Math.min(i,1)),this.stepAndProject(t,e,this.e,i)}},t.prototype.run=function(t){for(var e=Number.MAX_VALUE,n=!1;!n&&t-- >0;){var r=this.rungeKutta();n=Math.abs(e/r-1)>16)/this.range},t.prototype.getNextBetween=function(t,e){return t+this.getNext()*(e-t)},t}();e.PseudoRandom=r},13408:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(97002),a=function(){};e.Point=a;var s=function(t,e,n,r){this.x1=t,this.y1=e,this.x2=n,this.y2=r};function u(t,e,n){return(e.x-t.x)*(n.y-t.y)-(n.x-t.x)*(e.y-t.y)}function c(t,e,n){return u(t,e,n)>0}function l(t,e,n){return u(t,e,n)<0}function h(t,e){var n,r,i,o,a=e.length-1;if(l(t,e[1],e[0])&&!c(t,e[a-1],e[0]))return 0;for(n=0,r=a;;){if(r-n==1)return c(t,e[n],e[r])?n:r;if((o=l(t,e[(i=Math.floor((n+r)/2))+1],e[i]))&&!c(t,e[i-1],e[i]))return i;c(t,e[n+1],e[n])?o||c(t,e[n],e[i])?r=i:n=i:o&&l(t,e[n],e[i])?r=i:n=i}}function f(t,e){var n,r,i,o,a=e.length-1;if(c(t,e[a-1],e[0])&&!l(t,e[1],e[0]))return 0;for(n=0,r=a;;){if(r-n==1)return l(t,e[n],e[r])?n:r;if(o=l(t,e[(i=Math.floor((n+r)/2))+1],e[i]),c(t,e[i-1],e[i])&&!o)return i;l(t,e[n+1],e[n])?o?l(t,e[n],e[i])?r=i:n=i:r=i:o?n=i:c(t,e[n],e[i])?r=i:n=i}}function d(t,e,n,r,i,o){var a,s;s=r(t[a=n(e[0],t)],e);for(var u=!1;!u;){for(u=!0;a===t.length-1&&(a=0),!i(e[s],t[a],t[a+1]);)++a;for(;0===s&&(s=e.length-1),!o(t[a],e[s],e[s-1]);)--s,u=!1}return{t1:a,t2:s}}function p(t,e){return d(t,e,h,f,c,l)}e.LineSegment=s,e.PolyPoint=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(a),e.isLeft=u,e.ConvexHull=function(t){var e,n=t.slice(0).sort(function(t,e){return t.x!==e.x?e.x-t.x:e.y-t.y}),r=t.length,i=n[0].x;for(e=1;e=0&&n[e].x===l;e--);for(s=e+1,e=o;++e<=s;)if(!(u(n[0],n[s],n[e])>=0&&e1&&!(u(a[a.length-2],a[a.length-1],n[e])>0);)a.length-=1;0!=e&&a.push(n[e])}c!=s&&a.push(n[c]);var h=a.length;for(e=s;--e>=o;)if(!(u(n[c],n[o],n[e])>=0&&e>o)){for(;a.length>h&&!(u(a[a.length-2],a[a.length-1],n[e])>0);)a.length-=1;0!=e&&a.push(n[e])}}return a},e.clockwiseRadialSweep=function(t,e,n){e.slice(0).sort(function(e,n){return Math.atan2(e.y-t.y,e.x-t.x)-Math.atan2(n.y-t.y,n.x-t.x)}).forEach(n)},e.tangent_PolyPolyC=d,e.LRtangent_PolyPolyC=function(t,e){var n=p(e,t);return{t1:n.t2,t2:n.t1}},e.RLtangent_PolyPolyC=p,e.LLtangent_PolyPolyC=function(t,e){return d(t,e,f,f,l,l)},e.RRtangent_PolyPolyC=function(t,e){return d(t,e,h,h,c,c)};var g=function(t,e){this.t1=t,this.t2=e};e.BiTangent=g;var v=function(){};e.BiTangents=v,e.TVGPoint=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(a);var m=function(t,e,n,r){this.id=t,this.polyid=e,this.polyvertid=n,this.p=r,r.vv=this};e.VisibilityVertex=m;var y=function(){function t(t,e){this.source=t,this.target=e}return t.prototype.length=function(){var t=this.source.p.x-this.target.p.x,e=this.source.p.y-this.target.p.y;return Math.sqrt(t*t+e*e)},t}();function _(t,e){for(var n=[],r=1,i=e.length;r=0&&m>=0&&y<0&&_>=0&&w>=0&&b<0?i.ll=new g(o,a):p<=0&&m<=0&&y>0&&_<=0&&w<=0&&b>0?i.rr=new g(o,a):p<=0&&m>0&&y<=0&&_>=0&&w<0&&b>=0?i.rl=new g(o,a):p>=0&&m<0&&y>=0&&_<=0&&w>0&&b<=0&&(i.lr=new g(o,a))}return i}function b(t,e){return!t.every(function(t){return!function(t,e){for(var n=1,r=e.length;n0&&this.E.push(new y(i[o-1].vv,a))}i.length>1&&this.E.push(new y(i[0].vv,i[i.length-1].vv))}for(r=0;r0)return!0;return!1},t}(),e.tangents=w,e.polysOverlap=function(t,e){if(b(t,e))return!0;if(b(e,t))return!0;for(var n=1,r=t.length;n0)return!0}return!1}},66082:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(97002),i=n(70980),o=n(99147),a=function(t,e,n){this.id=t,this.rect=e,this.children=n,this.leaf=void 0===n||0===n.length};e.NodeWrapper=a;var s=function(t,e,n,r,i){void 0===r&&(r=null),void 0===i&&(i=null),this.id=t,this.x=e,this.y=n,this.node=r,this.line=i};e.Vert=s;var u=function(){function t(e,n){this.s=e,this.t=n;var r=t.findMatch(e,n),i=n.slice(0).reverse(),o=t.findMatch(e,i);r.length>=o.length?(this.length=r.length,this.si=r.si,this.ti=r.ti,this.reversed=!1):(this.length=o.length,this.si=o.si,this.ti=n.length-o.ti-o.length,this.reversed=!0)}return t.findMatch=function(t,e){for(var n=t.length,r=e.length,i={length:0,si:-1,ti:-1},o=new Array(n),a=0;ai.length&&(i.length=u,i.si=a-u+1,i.ti=s-u+1)}else o[a][s]=0}return i},t.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},t}();e.LongestCommonSubsequence=u,e.GridRouter=function(){function t(t,e,n){var i=this;void 0===n&&(n=12),this.originalnodes=t,this.groupPadding=n,this.leaves=null,this.nodes=t.map(function(t,n){return new a(n,e.getBounds(t),e.getChildren(t))}),this.leaves=this.nodes.filter(function(t){return t.leaf}),this.groups=this.nodes.filter(function(t){return!t.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(t){return t.children.forEach(function(e){return i.nodes[e].parent=t})}),this.root={children:[]},this.nodes.forEach(function(t){void 0===t.parent&&(t.parent=i.root,i.root.children.push(t.id)),t.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(t,e){return i.getDepth(t)-i.getDepth(e)}),this.backToFront.slice(0).reverse().filter(function(t){return!t.leaf}).forEach(function(t){var e=r.Rectangle.empty();t.children.forEach(function(t){return e=e.union(i.nodes[t].rect)}),t.rect=e.inflate(i.groupPadding)});var o=this.midPoints(this.cols.map(function(t){return t.pos})),u=this.midPoints(this.rows.map(function(t){return t.pos})),c=o[0],l=o[o.length-1],h=u[0],f=u[u.length-1],d=this.rows.map(function(t){return{x1:c,x2:l,y1:t.pos,y2:t.pos}}).concat(u.map(function(t){return{x1:c,x2:l,y1:t,y2:t}})),p=this.cols.map(function(t){return{x1:t.pos,x2:t.pos,y1:h,y2:f}}).concat(o.map(function(t){return{x1:t,x2:t,y1:h,y2:f}})),g=d.concat(p);g.forEach(function(t){return t.verts=[]}),this.verts=[],this.edges=[],d.forEach(function(t){return p.forEach(function(e){var n=new s(i.verts.length,e.x1,t.y1);t.verts.push(n),e.verts.push(n),i.verts.push(n);for(var r=i.backToFront.length;r-- >0;){var o=i.backToFront[r],a=o.rect,u=Math.abs(n.x-a.cx()),c=Math.abs(n.y-a.cy());if(u0;){var r=n.filter(function(e){return e.rect["overlap"+t.toUpperCase()](n[0].rect)}),i={nodes:r,pos:this.avg(r.map(function(e){return e.rect["c"+t]()}))};e.push(i),i.nodes.forEach(function(t){return n.splice(n.indexOf(t),1)})}return e.sort(function(t,e){return t.pos-e.pos}),e},t.prototype.getDepth=function(t){for(var e=0;t.parent!==this.root;)e++,t=t.parent;return e},t.prototype.midPoints=function(t){for(var e=t[1]-t[0],n=[t[0]-e/2],r=1;r.1)&&s.push(u={pos:l[0][e],segments:[]}),u.segments.push(l)}return s},t.nudgeSegs=function(t,e,n,r,o,a){var s=r.length;if(!(s<=1)){for(var u=r.map(function(e){return new i.Variable(e[0][t])}),c=[],l=0;l=0&&c.push(new i.Constraint(u[g],u[v],a))}new i.Solver(u,c).solve(),u.forEach(function(e,i){var o=r[i],a=e.position();o[0][t]=o[1][t]=a;var s=n[o.edgeid];o.i>0&&(s[o.i-1][1][t]=a),o.iMath.PI||i<-Math.PI)&&(i=r-n),i},t.isLeft=function(t,e,n){return(e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x)<=0},t.getOrder=function(t){for(var e={},n=0;n=c.length||h.ti+h.length>=l.length)?n.push({l:r,r:i}):(h.si+h.length>=c.length||h.ti+h.length>=l.length?(o=c[h.si+1],s=c[h.si-1],a=l[h.ti-1]):(o=c[h.si+h.length-2],a=c[h.si+h.length],s=l[h.ti+h.length]),t.isLeft(o,a,s)?n.push({l:i,r:r}):n.push({l:r,r:i})))}return t.getOrder(n)},t.makeSegments=function(t){function e(t){return{x:t.x,y:t.y}}for(var n=function(t,e,n){return Math.abs((e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x))<.001},r=[],i=e(t[0]),o=1;o1&&l>1?1e3:0}).reverse().map(function(t){return n.verts[t]});return u.push(this.nodes[i.id].ports[0]),u.filter(function(t,e){return!(e0&&t.node===i&&u[e-1].node===i)})},t.getRoutePath=function(e,n,r,i){var o,a,s,u,c,l={routepath:"M "+e[0][0].x+" "+e[0][0].y+" ",arrowpath:""};if(e.length>1)for(var h=0;h0?a-=f/Math.abs(f)*n:s-=d/Math.abs(d)*n,l.routepath+="L "+a+" "+s+" ";var p=e[h+1],g=p[0].x,v=p[0].y;f=p[1].x-g,d=p[1].y-v;var m,y,_=t.angleBetween2Lines(o,p)<0?1:0;Math.abs(f)>0?(m=g+f/Math.abs(f)*n,y=v):(m=g,y=v+d/Math.abs(d)*n);var w=Math.abs(m-a),b=Math.abs(y-s);l.routepath+="A "+w+" "+b+" 0 0 "+_+" "+m+" "+y+" "}else{var x=[a,s];Math.abs(f)>0?(u=[a-=f/Math.abs(f)*i,s+r],c=[a,s-r]):(u=[a+r,s-=d/Math.abs(d)*i],c=[a-r,s]),l.routepath+="L "+a+" "+s+" ",i>0&&(l.arrowpath="M "+x[0]+" "+x[1]+" L "+u[0]+" "+u[1]+" L "+c[0]+" "+c[1])}}else f=(a=(o=e[0])[1].x)-o[0].x,d=(s=o[1].y)-o[0].y,x=[a,s],Math.abs(f)>0?(u=[a-=f/Math.abs(f)*i,s+r],c=[a,s-r]):(u=[a+r,s-=d/Math.abs(d)*i],c=[a-r,s]),l.routepath+="L "+a+" "+s+" ",i>0&&(l.arrowpath="M "+x[0]+" "+x[1]+" L "+u[0]+" "+u[1]+" L "+c[0]+" "+c[1]);return l},t}()},33839:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(1+Math.sqrt(5))/2;e.applyPacking=function(t,e,r,i,o,a){void 0===o&&(o=1),void 0===a&&(a=!0);var s=e,u=r,c=(o=void 0!==o?o:1,i=void 0!==i?i:0,0),l=0,h=0,f=0,d=[];function p(t,e){d=[],c=0,l=0,f=0;for(var n=0;n=t.height&&d[r].x+d[r].width+t.width+10-e<=1e-4){n=d[r];break}d.push(t),void 0!==n?(t.x=n.x+n.width+10,t.y=n.bottom,t.space_left=t.height,t.bottom=t.y,n.space_left-=t.height+10,n.bottom+=t.height+10):(t.y=f,f+=t.height+10,t.x=0,t.bottom=t.y,t.space_left=t.height),t.y+t.height-l>-1e-4&&(l=t.y+t.height-0),t.x+t.width-c>-1e-4&&(c=t.x+t.width-0)}0!=t.length&&(function(t){t.forEach(function(t){var e,n,r,o,a;e=t,n=Number.MAX_VALUE,r=Number.MAX_VALUE,o=0,a=0,e.array.forEach(function(t){var e=void 0!==t.width?t.width:i,s=void 0!==t.height?t.height:i;e/=2,s/=2,o=Math.max(t.x+e,o),n=Math.min(t.x-e,n),a=Math.max(t.y+s,a),r=Math.min(t.y-s,r)}),e.width=o-n,e.height=a-r})}(t),function(t,e){var r=Number.POSITIVE_INFINITY,i=0;t.sort(function(t,e){return e.height-t.height});for(var o=g=h=t.reduce(function(t,e){return t.widthh||d>1e-4;){if(1!=l){var g=a-(a-o)/n;u=p(t,g)}if(0!=l){var v=o+(a-o)/n;c=p(t,v)}if(f=Math.abs(g-v),d=Math.abs(u-c),uc?(o=g,g=v,u=c,l=1):(a=v,v=g,c=u,l=0),s++>100)break}p(t,i)}(t),a&&function(t){t.forEach(function(t){var e={x:0,y:0};t.array.forEach(function(t){e.x+=t.x,e.y+=t.y}),e.x/=t.array.length,e.y/=t.array.length;var n=t.x-(e.x-t.width/2)+s/2-c/2,r=t.y-(e.y-t.height/2)+u/2-l/2;t.array.forEach(function(t){t.x+=n,t.y+=r})})}(t))},e.separateGraphs=function(t,e){for(var n={},r={},i=[],o=0,a=0;a0){var e=0;this._links.forEach(function(t){e=Math.max(e,t.source,t.target)}),this._nodes=new Array(++e);for(var n=0;n0?t:0:t>0&&(this._running||(this._running=!0,this.trigger({type:l.start,alpha:this._alpha=t}),this.kick())),this):this._alpha},t.prototype.getLinkLength=function(t){return"function"==typeof this._linkDistance?+this._linkDistance(t):this._linkDistance},t.setLinkLength=function(t,e){t.length=e},t.prototype.getLinkType=function(t){return"function"==typeof this._linkType?this._linkType(t):0},t.prototype.symmetricDiffLinkLengths=function(t,e){var n=this;return void 0===e&&(e=1),this.linkDistance(function(e){return t*e.length}),this._linkLengthCalculator=function(){return i.symmetricDiffLinkLengths(n._links,n.linkAccessor,e)},this},t.prototype.jaccardLinkLengths=function(t,e){var n=this;return void 0===e&&(e=1),this.linkDistance(function(e){return t*e.length}),this._linkLengthCalculator=function(){return i.jaccardLinkLengths(n._links,n.linkAccessor,e)},this},t.prototype.start=function(e,n,r,u,c,l){var h=this;void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),void 0===u&&(u=0),void 0===c&&(c=!0),void 0===l&&(l=!0);var f,d=this.nodes().length,p=d+2*this._groups.length,g=this._canvasSize[0],v=this._canvasSize[1],m=new Array(p),y=new Array(p),_=null,w=this._avoidOverlaps;this._nodes.forEach(function(t,e){t.index=e,void 0===t.x&&(t.x=g/2,t.y=v/2),m[e]=t.x,y[e]=t.y}),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?f=this._distanceMatrix:(f=new s.Calculator(p,this._links,t.getSourceIndex,t.getTargetIndex,function(t){return h.getLinkLength(t)}).DistanceMatrix(),_=o.Descent.createSquareMatrix(p,function(){return 2}),this._links.forEach(function(t){"number"==typeof t.source&&(t.source=h._nodes[t.source]),"number"==typeof t.target&&(t.target=h._nodes[t.target])}),this._links.forEach(function(e){var n=t.getSourceIndex(e),r=t.getTargetIndex(e);_[n][r]=_[r][n]=e.weight||1}));var b=o.Descent.createSquareMatrix(p,function(t,e){return f[t][e]});if(this._rootGroup&&void 0!==this._rootGroup.groups){var x=d;this._groups.forEach(function(t){!function(t,e,n,r){_[t][e]=_[e][t]=n,b[t][e]=b[e][t]=.1}(x,x+1,h._groupCompactness),m[x]=0,y[x++]=0,m[x]=0,y[x++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var E=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,E=E.concat(i.generateDirectedEdgeConstraints(d,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new o.Descent([m,y],b),this._descent.locks.clear(),x=0;x0&&(this._descent.project=new a.Projection(this._nodes,this._groups,this._rootGroup,E).projectFunctions()),this._descent.run(n),this.separateOverlappingComponents(g,v,l),this.avoidOverlaps(w),w&&(this._nodes.forEach(function(t,e){t.x=m[e],t.y=y[e]}),this._descent.project=new a.Projection(this._nodes,this._groups,this._rootGroup,E,!0).projectFunctions(),this._nodes.forEach(function(t,e){m[e]=t.x,y[e]=t.y})),this._descent.G=_,this._descent.run(r),u){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=d,this._descent.scaleSnapByMaxH=d!=p;var A=o.Descent.createSquareMatrix(p,function(t,e){return t>=d||e>=d?_[t][e]:0});this._descent.G=A,this._descent.run(u)}return this.updateNodePositions(),this.separateOverlappingComponents(g,v,l),c?this.resume():this},t.prototype.initialLayout=function(e,n,r){if(this._groups.length>0&&e>0){var i=this._nodes.length,o=this._links.map(function(t){return{source:t.source.index,target:t.target.index}}),a=this._nodes.map(function(t){return{index:t.index}});this._groups.forEach(function(t,e){a.push({index:t.index=i+e})}),this._groups.forEach(function(t,e){void 0!==t.leaves&&t.leaves.forEach(function(e){return o.push({source:t.index,target:e.index})}),void 0!==t.groups&&t.groups.forEach(function(e){return o.push({source:t.index,target:e.index})})}),(new t).size(this.size()).nodes(a).links(o).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(e,0,0,0,!1),this._nodes.forEach(function(t){n[t.index]=a[t.index].x,r[t.index]=a[t.index].y})}else this._descent.run(e)},t.prototype.separateOverlappingComponents=function(t,e,n){var r=this;if(void 0===n&&(n=!0),!this._distanceMatrix&&this._handleDisconnected){var i=this._descent.x[0],o=this._descent.x[1];this._nodes.forEach(function(t,e){t.x=i[e],t.y=o[e]});var a=c.separateGraphs(this._nodes,this._links);c.applyPacking(a,t,e,this._defaultNodeSize,1,n),this._nodes.forEach(function(t,e){r._descent.x[0][e]=t.x,r._descent.x[1][e]=t.y,t.bounds&&(t.bounds.setXCentre(t.x),t.bounds.setYCentre(t.y))})}},t.prototype.resume=function(){return this.alpha(.1)},t.prototype.stop=function(){return this.alpha(0)},t.prototype.prepareEdgeRouting=function(t){void 0===t&&(t=0),this._visibilityGraph=new u.TangentVisibilityGraph(this._nodes.map(function(e){return e.bounds.inflate(-t).vertices()}))},t.prototype.routeEdge=function(t,e,n){void 0===e&&(e=5);var r=[],i=new u.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),o={x:t.source.x,y:t.source.y},c={x:t.target.x,y:t.target.y},l=i.addPoint(o,t.source.index),h=i.addPoint(c,t.target.index);i.addEdgeIfVisible(o,c,t.source.index,t.target.index),void 0!==n&&n(i);var f=new s.Calculator(i.V.length,i.E,function(t){return t.source.id},function(t){return t.target.id},function(t){return t.length()}).PathFromNodeToNode(l.id,h.id);if(1===f.length||f.length===i.V.length){var d=a.makeEdgeBetween(t.source.innerBounds,t.target.innerBounds,e);r=[d.sourceIntersection,d.arrowStart]}else{for(var p=f.length-2,g=i.V[f[p]].p,v=i.V[f[0]].p,m=(r=[t.source.innerBounds.rayIntersection(g.x,g.y)],p);m>=0;--m)r.push(i.V[f[m]].p);r.push(a.makeEdgeTo(v,t.target.innerBounds,e))}return r},t.getSourceIndex=function(t){return"number"==typeof t.source?t.source:t.source.index},t.getTargetIndex=function(t){return"number"==typeof t.target?t.target:t.target.index},t.linkId=function(e){return t.getSourceIndex(e)+"-"+t.getTargetIndex(e)},t.dragStart=function(e){h(e)?t.storeOffset(e,t.dragOrigin(e)):(t.stopNode(e),e.fixed|=2)},t.stopNode=function(t){t.px=t.x,t.py=t.y},t.storeOffset=function(e,n){void 0!==e.leaves&&e.leaves.forEach(function(e){e.fixed|=2,t.stopNode(e),e._dragGroupOffsetX=e.x-n.x,e._dragGroupOffsetY=e.y-n.y}),void 0!==e.groups&&e.groups.forEach(function(e){return t.storeOffset(e,n)})},t.dragOrigin=function(t){return h(t)?{x:t.bounds.cx(),y:t.bounds.cy()}:t},t.drag=function(e,n){h(e)?(void 0!==e.leaves&&e.leaves.forEach(function(t){e.bounds.setXCentre(n.x),e.bounds.setYCentre(n.y),t.px=t._dragGroupOffsetX+n.x,t.py=t._dragGroupOffsetY+n.y}),void 0!==e.groups&&e.groups.forEach(function(e){return t.drag(e,n)})):(e.px=n.x,e.py=n.y)},t.dragEnd=function(e){h(e)?(void 0!==e.leaves&&e.leaves.forEach(function(e){t.dragEnd(e),delete e._dragGroupOffsetX,delete e._dragGroupOffsetY}),void 0!==e.groups&&e.groups.forEach(t.dragEnd)):e.fixed&=-7},t.mouseOver=function(t){t.fixed|=4,t.px=t.x,t.py=t.y},t.mouseOut=function(t){t.fixed&=-5},t}()},83807:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(99147),i=n(59895),o=n(97002),a=n(24232);e.Link3D=function(){function t(t,e){this.source=t,this.target=e}return t.prototype.actualLength=function(t){var e=this;return Math.sqrt(t.reduce(function(t,n){var r=n[e.target]-n[e.source];return t+r*r},0))},t}(),e.Node3D=function(t,e,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),this.x=t,this.y=e,this.z=n},e.Layout3D=function(){function t(e,n,r){var i=this;void 0===r&&(r=1),this.nodes=e,this.links=n,this.idealLinkLength=r,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(t.k);for(var o=0;o=this.R))return this.merge(e.a,e.b,t),!0}},t.prototype.nEdges=function(t,e){var n=t.incoming.intersection(e.incoming),r=t.outgoing.intersection(e.outgoing);return this.R-n.count()-r.count()},t.prototype.getGroupHierarchy=function(t){var e=this,r=[];return i(this.roots[0],{},r),this.allEdges().forEach(function(i){var o=e.modules[i.source],a=e.modules[i.target];t.push(new n(void 0===o.gid?i.source:r[o.gid],void 0===a.gid?i.target:r[a.gid],i.type))}),r},t.prototype.allEdges=function(){var e=[];return t.getEdges(this.roots[0],e),e},t.getEdges=function(e,n){e.forAll(function(e){e.getEdges(n),t.getEdges(e.children,n)})},t}();function i(t,e,n){t.forAll(function(t){if(t.isLeaf())e.leaves||(e.leaves=[]),e.leaves.push(t.id);else{var r=e;if(t.gid=n.length,!t.isIsland()||t.isPredefined()){if(r={id:t.gid},t.isPredefined())for(var o in t.definition)r[o]=t.definition[o];e.groups||(e.groups=[]),e.groups.push(t.gid),n.push(r)}i(t.children,r,n)}})}e.Configuration=r;var o=function(){function t(t,e,n,r,i){void 0===e&&(e=new s),void 0===n&&(n=new s),void 0===r&&(r=new a),this.id=t,this.outgoing=e,this.incoming=n,this.children=r,this.definition=i}return t.prototype.getEdges=function(t){var e=this;this.outgoing.forAll(function(r,i){r.forAll(function(r){t.push(new n(e.id,r.id,i))})})},t.prototype.isLeaf=function(){return 0===this.children.count()},t.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},t.prototype.isPredefined=function(){return void 0!==this.definition},t}();e.Module=o;var a=function(){function t(){this.table={}}return t.prototype.count=function(){return Object.keys(this.table).length},t.prototype.intersection=function(e){var n=new t;return n.table=function(t,e){var n={};for(var r in t)r in e&&(n[r]=t[r]);return n}(this.table,e.table),n},t.prototype.intersectionCount=function(t){return this.intersection(t).count()},t.prototype.contains=function(t){return t in this.table},t.prototype.add=function(t){this.table[t.id]=t},t.prototype.remove=function(t){delete this.table[t.id]},t.prototype.forAll=function(t){for(var e in this.table)t(this.table[e])},t.prototype.modules=function(){var t=[];return this.forAll(function(e){e.isPredefined()||t.push(e)}),t},t}();e.ModuleSet=a;var s=function(){function t(){this.sets={},this.n=0}return t.prototype.count=function(){return this.n},t.prototype.contains=function(t){var e=!1;return this.forAllModules(function(n){e||n.id!=t||(e=!0)}),e},t.prototype.add=function(t,e){(t in this.sets?this.sets[t]:this.sets[t]=new a).add(e),++this.n},t.prototype.remove=function(t,e){var n=this.sets[t];n.remove(e),0===n.count()&&delete this.sets[t],--this.n},t.prototype.forAll=function(t){for(var e in this.sets)t(this.sets[e],Number(e))},t.prototype.forAllModules=function(t){this.forAll(function(e,n){return e.forAll(t)})},t.prototype.intersection=function(e){var n=new t;return this.forAll(function(t,r){if(r in e.sets){var i=t.intersection(e.sets[r]),o=i.count();o>0&&(n.sets[r]=i,n.n+=o)}}),n},t}();e.LinkSets=s,e.getGroups=function(t,e,n,i){for(var o=new r(t.length,e,n,i);o.greedyMerge(););var a=[],s=o.getGroupHierarchy(a);return a.forEach(function(e){var n=function(n){var r=e[n];"number"==typeof r&&(e[n]=t[r])};n("source"),n("target")}),{groups:s,powerEdges:a}}},741:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.elem=t,this.subheaps=[]}return t.prototype.toString=function(t){for(var e="",n=!1,r=0;r0)}return null}}return t.prototype.clear=function(){this._root=null,this.size=0},t.prototype.find=function(t){for(var e=this._root;null!==e;){var n=this._comparator(t,e.data);if(0===n)return e.data;e=e.get_child(n>0)}return null},t.prototype.lowerBound=function(t){return this._bound(t,this._comparator)},t.prototype.upperBound=function(t){var e=this._comparator;return this._bound(t,function(t,n){return e(n,t)})},t.prototype.min=function(){var t=this._root;if(null===t)return null;for(;null!==t.left;)t=t.left;return t.data},t.prototype.max=function(){var t=this._root;if(null===t)return null;for(;null!==t.right;)t=t.right;return t.data},t.prototype.iterator=function(){return new o(this)},t.prototype.each=function(t){for(var e,n=this.iterator();null!==(e=n.next());)t(e)},t.prototype.reach=function(t){for(var e,n=this.iterator();null!==(e=n.prev());)t(e)},t.prototype._bound=function(t,e){for(var n=this._root,r=this.iterator();null!==n;){var i=this._comparator(t,n.data);if(0===i)return r._cursor=n,r;r._ancestors.push(n),n=n.get_child(i>0)}for(var o=r._ancestors.length-1;o>=0;--o)if(e(t,(n=r._ancestors[o]).data)>0)return r._cursor=n,r._ancestors.length=o,r;return r._ancestors.length=0,r},t}();e.TreeBase=i;var o=function(){function t(t){this._tree=t,this._ancestors=[],this._cursor=null}return t.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},t.prototype.next=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._minNode(t)}else{var e;if(null===this._cursor.right)do{if(e=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===e);else this._ancestors.push(this._cursor),this._minNode(this._cursor.right)}return null!==this._cursor?this._cursor.data:null},t.prototype.prev=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._maxNode(t)}else{var e;if(null===this._cursor.left)do{if(e=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===e);else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left)}return null!==this._cursor?this._cursor.data:null},t.prototype._minNode=function(t){for(;null!==t.left;)this._ancestors.push(t),t=t.left;this._cursor=t},t.prototype._maxNode=function(t){for(;null!==t.right;)this._ancestors.push(t),t=t.right;this._cursor=t},t}();e.Iterator=o;var a=function(){function t(t){this.data=t,this.left=null,this.right=null,this.red=!0}return t.prototype.get_child=function(t){return t?this.right:this.left},t.prototype.set_child=function(t,e){t?this.right=e:this.left=e},t}();e.RBTree=function(t){function e(e){var n=t.call(this)||this;return n._root=null,n._comparator=e,n.size=0,n}return r(e,t),e.prototype.insert=function(t){var n=!1;if(null===this._root)this._root=new a(t),n=!0,this.size++;else{var r=new a(void 0),i=!1,o=!1,s=null,u=r,c=null,l=this._root;for(u.right=this._root;;){if(null===l?(l=new a(t),c.set_child(i,l),n=!0,this.size++):e.is_red(l.left)&&e.is_red(l.right)&&(l.red=!0,l.left.red=!1,l.right.red=!1),e.is_red(l)&&e.is_red(c)){var h=u.right===s;l===c.get_child(o)?u.set_child(h,e.single_rotate(s,!o)):u.set_child(h,e.double_rotate(s,!o))}var f=this._comparator(l.data,t);if(0===f)break;o=i,null!==s&&(u=s),s=c,c=l,l=l.get_child(i=f<0)}this._root=r.right}return this._root.red=!1,n},e.prototype.remove=function(t){if(null===this._root)return!1;var n=new a(void 0),r=n;r.right=this._root;for(var i=null,o=null,s=null,u=!0;null!==r.get_child(u);){var c=u;o=i,i=r,r=r.get_child(u);var l=this._comparator(t,r.data);if(u=l>0,0===l&&(s=r),!e.is_red(r)&&!e.is_red(r.get_child(u)))if(e.is_red(r.get_child(!u))){var h=e.single_rotate(r,u);i.set_child(c,h),i=h}else if(!e.is_red(r.get_child(!u))){var f=i.get_child(!c);if(null!==f)if(e.is_red(f.get_child(!c))||e.is_red(f.get_child(c))){var d=o.right===i;e.is_red(f.get_child(c))?o.set_child(d,e.double_rotate(i,c)):e.is_red(f.get_child(!c))&&o.set_child(d,e.single_rotate(i,c));var p=o.get_child(d);p.red=!0,r.red=!0,p.left.red=!1,p.right.red=!1}else i.red=!1,f.red=!0,r.red=!0}}return null!==s&&(s.data=r.data,i.set_child(i.right===r,r.get_child(null===r.left)),this.size--),this._root=n.right,null!==this._root&&(this._root.red=!1),null!==s},e.is_red=function(t){return null!==t&&t.red},e.single_rotate=function(t,e){var n=t.get_child(!e);return t.set_child(!e,n.get_child(e)),n.set_child(e,t),t.red=!0,n.red=!1,n},e.double_rotate=function(t,n){return t.set_child(!n,e.single_rotate(t.get_child(!n),!n)),e.single_rotate(t,n)},e}(i)},97002:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(70980),a=n(21539);function s(t){return t.bounds=void 0!==t.leaves?t.leaves.reduce(function(t,e){return e.bounds.union(t)},u.empty()):u.empty(),void 0!==t.groups&&(t.bounds=t.groups.reduce(function(t,e){return s(e).union(t)},t.bounds)),t.bounds=t.bounds.inflate(t.padding),t.bounds}e.computeGroupBounds=s;var u=function(){function t(t,e,n,r){this.x=t,this.X=e,this.y=n,this.Y=r}return t.empty=function(){return new t(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},t.prototype.cx=function(){return(this.x+this.X)/2},t.prototype.cy=function(){return(this.y+this.Y)/2},t.prototype.overlapX=function(t){var e=this.cx(),n=t.cx();return e<=n&&t.x0?n[0]:null},t.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}]},t.lineIntersection=function(t,e,n,r,i,o,a,s){var u=n-t,c=a-i,l=r-e,h=s-o,f=h*u-c*l;if(0==f)return null;var d=t-i,p=e-o,g=(c*p-h*d)/f,v=(u*p-l*d)/f;return g>=0&&g<=1&&v>=0&&v<=1?{x:t+g*u,y:e+g*l}:null},t.prototype.inflate=function(e){return new t(this.x-e,this.X+e,this.y-e,this.Y+e)},t}();e.Rectangle=u,e.makeEdgeBetween=function(t,e,n){var r=t.rayIntersection(e.cx(),e.cy())||{x:t.cx(),y:t.cy()},i=e.rayIntersection(t.cx(),t.cy())||{x:e.cx(),y:e.cy()},o=i.x-r.x,a=i.y-r.y,s=Math.sqrt(o*o+a*a),u=s-n;return{sourceIntersection:r,targetIntersection:i,arrowStart:{x:r.x+u*o/s,y:r.y+u*a/s}}},e.makeEdgeTo=function(t,e,n){var r=e.rayIntersection(t.x,t.y);r||(r={x:e.cx(),y:e.cy()});var i=r.x-t.x,o=r.y-t.y,a=Math.sqrt(i*i+o*o);return{x:r.x-n*i/a,y:r.y-n*o/a}};var c=function(t,e,n){this.v=t,this.r=e,this.pos=n,this.prev=f(),this.next=f()},l=function(t,e,n){this.isOpen=t,this.v=e,this.pos=n};function h(t,e){return t.pos>e.pos?1:t.pos0&&(t[n].insert(i),i[r].insert(t))};n("next","prev"),n("prev","next")}};function g(t,e,n,r){void 0===r&&(r=!1);var i=t.padding,o=void 0!==t.groups?t.groups.length:0,a=void 0!==t.leaves?t.leaves.length:0,s=o?t.groups.reduce(function(t,r){return t.concat(g(r,e,n,!0))},[]):[],u=(r?2:0)+a+o,c=new Array(u),l=new Array(u),h=0,f=function(t,e){l[h]=t,c[h++]=e};if(r){var d=t.bounds,p=e.getCentre(d),m=e.getSize(d)/2,y=e.getOpen(d),_=e.getClose(d),w=p-m+i/2,b=p+m-i/2;t.minVar.desiredPosition=w,f(e.makeRect(y,_,w,i),t.minVar),t.maxVar.desiredPosition=b,f(e.makeRect(y,_,b,i),t.maxVar)}a&&t.leaves.forEach(function(t){return f(t.bounds,t.variable)}),o&&t.groups.forEach(function(t){var n=t.bounds;f(e.makeRect(e.getOpen(n),e.getClose(n),e.getCentre(n),e.getSize(n)),t.minVar)});var x=v(l,c,e,n);return o&&(c.forEach(function(t){t.cOut=[],t.cIn=[]}),x.forEach(function(t){t.left.cOut.push(t),t.right.cIn.push(t)}),t.groups.forEach(function(t){var n=(t.padding-e.getSize(t.bounds))/2;t.minVar.cIn.forEach(function(t){return t.gap+=n}),t.minVar.cOut.forEach(function(e){e.left=t.maxVar,e.gap+=n})})),s.concat(x)}function v(t,e,n,r){var i,a=t.length,s=2*a;console.assert(e.length>=a);var u=new Array(s);for(i=0;it[n]&&(t[n]=e)}o=t})}},t.prototype.createAlignment=function(t){var e=this,n=this.nodes[t.offsets[0].node].variable;this.makeFeasible(t);var r="x"===t.axis?this.xConstraints:this.yConstraints;t.offsets.slice(1).forEach(function(t){r.push(new o.Constraint(n,e.nodes[t.node].variable,t.offset,!0))})},t.prototype.createConstraints=function(t){var e=this,n=function(t){return void 0===t.type||"separation"===t.type};this.xConstraints=t.filter(function(t){return"x"===t.axis&&n(t)}).map(function(t){return e.createSeparation(t)}),this.yConstraints=t.filter(function(t){return"y"===t.axis&&n(t)}).map(function(t){return e.createSeparation(t)}),t.filter(function(t){return"alignment"===t.type}).forEach(function(t){return e.createAlignment(t)})},t.prototype.setupVariablesAndBounds=function(t,e,n,r){this.nodes.forEach(function(i,o){i.fixed?(i.variable.weight=i.fixedWeight?i.fixedWeight:1e3,n[o]=r(i)):i.variable.weight=1;var a=(i.width||0)/2,s=(i.height||0)/2,c=t[o],l=e[o];i.bounds=new u(c-a,c+a,l-s,l+s)})},t.prototype.xProject=function(t,e,n){(this.rootGroup||this.avoidOverlaps||this.xConstraints)&&this.project(t,e,t,n,function(t){return t.px},this.xConstraints,_,function(t){return t.bounds.setXCentre(n[t.variable.index]=t.variable.position())},function(t){var e=n[t.minVar.index]=t.minVar.position(),r=n[t.maxVar.index]=t.maxVar.position(),i=t.padding/2;t.bounds.x=e-i,t.bounds.X=r+i})},t.prototype.yProject=function(t,e,n){(this.rootGroup||this.yConstraints)&&this.project(t,e,e,n,function(t){return t.py},this.yConstraints,w,function(t){return t.bounds.setYCentre(n[t.variable.index]=t.variable.position())},function(t){var e=n[t.minVar.index]=t.minVar.position(),r=n[t.maxVar.index]=t.maxVar.position(),i=t.padding/2;t.bounds.y=e-i,t.bounds.Y=r+i})},t.prototype.projectFunctions=function(){var t=this;return[function(e,n,r){return t.xProject(e,n,r)},function(e,n,r){return t.yProject(e,n,r)}]},t.prototype.project=function(t,e,n,r,i,o,a,u,c){this.setupVariablesAndBounds(t,e,r,i),this.rootGroup&&this.avoidOverlaps&&(s(this.rootGroup),o=o.concat(a(this.rootGroup))),this.solve(this.variables,o,n,r),this.nodes.forEach(u),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(c),s(this.rootGroup))},t.prototype.solve=function(t,e,n,r){var i=new o.Solver(t,e);i.setStartingPositions(n),i.setDesiredPositions(r),i.solve()},t}()},99147:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(741),i=function(t,e){this.id=t,this.distance=e},o=function(t){this.id=t,this.neighbours=[]},a=function(t,e,n){this.node=t,this.prev=e,this.d=n};e.Calculator=function(){function t(t,e,n,r,a){this.n=t,this.es=e,this.neighbours=new Array(this.n);for(var s=this.n;s--;)this.neighbours[s]=new o(s);for(s=this.es.length;s--;){var u=this.es[s],c=n(u),l=r(u),h=a(u);this.neighbours[c].neighbours.push(new i(l,h)),this.neighbours[l].neighbours.push(new i(c,h))}}return t.prototype.DistanceMatrix=function(){for(var t=new Array(this.n),e=0;eh&&(c.d=h,c.prev=s,n.reduceKey(c.q,c,function(t,e){return t.q=e}))}}return o},t}()},70980:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.scale=t,this.AB=0,this.AD=0,this.A2=0}return t.prototype.addVariable=function(t){var e=this.scale/t.scale,n=t.weight;this.AB+=n*e*(t.offset/t.scale),this.AD+=n*e*t.desiredPosition,this.A2+=n*e*e},t.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},t}();e.PositionStats=n;var r=function(){function t(t,e,n,r){void 0===r&&(r=!1),this.left=t,this.right=e,this.gap=n,this.equality=r,this.active=!1,this.unsatisfiable=!1,this.left=t,this.right=e,this.gap=n,this.equality=r}return t.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},t}();e.Constraint=r;var i=function(){function t(t,e,n){void 0===e&&(e=1),void 0===n&&(n=1),this.desiredPosition=t,this.weight=e,this.scale=n,this.offset=0}return t.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},t.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},t.prototype.visitNeighbours=function(t,e){var n=function(n,r){return n.active&&t!==r&&e(n,r)};this.cOut.forEach(function(t){return n(t,t.right)}),this.cIn.forEach(function(t){return n(t,t.left)})},t}();e.Variable=i;var o=function(){function t(t){this.vars=[],t.offset=0,this.ps=new n(t.scale),this.addVariable(t)}return t.prototype.addVariable=function(t){t.block=this,this.vars.push(t),this.ps.addVariable(t),this.posn=this.ps.getPosn()},t.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var t=0,e=this.vars.length;t=0?this.inactive.push(e):this.bs.merge(e)}}},t.prototype.solve=function(){this.satisfy();for(var t=Number.MAX_VALUE,e=this.bs.cost();Math.abs(t-e)>1e-4;)this.satisfy(),t=e,e=this.bs.cost();return e},t.LAGRANGIAN_TOLERANCE=-1e-4,t.ZERO_UPPERBOUND=-1e-10,t}();e.Solver=s,e.removeOverlapInOneDimension=function(t,e,n){for(var o=t.map(function(t){return new i(t.desiredCenter)}),a=[],u=t.length,c=0;c=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(t,e){if(t){if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0)for(var r,i=t[0],o=e[0],a=t[n]-i,s=e[n]-o,u=-1;++u<=n;)this._basis.point(this._beta*t[u]+(1-this._beta)*(i+(r=u/n)*a),this._beta*e[u]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var je=function t(e){function n(t){return 1===e?new qe(t):new Fe(t,e)}return n.beta=function(e){return t(+e)},n}(.85),Ye=l(55959);function Be(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function ze(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}var Ge=l(10709),Je=l(26899),Ve=l(87254),He=l(41036),Qe=(l(92711),l(64641)),We=(l(8634),l(3031));function Xe(t){return{type:t}}function $e(t,e){return te?1:t>=e?0:NaN}function Ke(t){var e=t,n=t;function r(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;n(t[o],e)<0?r=o+1:i=o}return r}return 1===t.length&&(e=function(e,n){return t(e)-n},n=function(t){return function(e,n){return $e(t(e),n)}}(t)),{left:r,center:function(t,n,i,o){null==i&&(i=0),null==o&&(o=t.length);var a=r(t,n,i,o-1);return a>i&&e(t[a-1],n)>-e(t[a],n)?a-1:a},right:function(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;n(t[o],e)>0?i=o:r=o+1}return r}}}l(45161),l(38337),l(82159),["w","e"].map(Xe),["n","s"].map(Xe),["n","w","e","s","nw","ne","sw","se"].map(Xe);var tn=Math.sqrt(50),en=Math.sqrt(10),nn=Math.sqrt(2);function rn(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=tn?10:o>=en?5:o>=nn?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=tn?10:o>=en?5:o>=nn?2:1)}function on(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=tn?i*=10:o>=en?i*=5:o>=nn&&(i*=2),e0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(i.count=function(e,r){return an.setTime(+e),sn.setTime(+r),t(an),t(sn),Math.floor(n(an,sn))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var cn=un(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});cn.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?un(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):cn:null};var ln=cn,hn=un(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+1e3*e)},function(t,e){return(e-t)/1e3},function(t){return t.getUTCSeconds()}),fn=un(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},function(t,e){t.setTime(+t+6e4*e)},function(t,e){return(e-t)/6e4},function(t){return t.getMinutes()}),dn=un(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getHours()}),pn=un(function(t){return t.setHours(0,0,0,0)},function(t,e){return t.setDate(t.getDate()+e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5},function(t){return t.getDate()-1});function gn(t){return un(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5})}var vn=gn(0),mn=(gn(1),gn(2),gn(3),gn(4),gn(5),gn(6),un(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()})),yn=un(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});yn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?un(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};var _n=yn,wn=un(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+6e4*e)},function(t,e){return(e-t)/6e4},function(t){return t.getUTCMinutes()}),bn=un(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getUTCHours()}),xn=un(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1});function En(t){return un(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/6048e5})}var Tn=En(0),An=(En(1),En(2),En(3),En(4),En(5),En(6),un(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()})),Sn=un(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});function kn(t,e,n,r,i,o){var a=[[hn,1,1e3],[hn,5,5e3],[hn,15,15e3],[hn,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function s(e,n,r){var i=Math.abs(n-e)/r,o=Ke(function(t){return u(t,3)[2]}).right(a,i);if(o===a.length)return t.every(on(e/31536e6,n/31536e6,r));if(0===o)return ln.every(Math.max(on(e,n,r),1));var s=u(a[i/a[o-1][2]0?un(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var In=u(kn(Sn,An,Tn,xn,bn,wn),2),Dn=(In[0],In[1],u(kn(_n,mn,vn,pn,dn,fn),2)),Nn=(Dn[0],Dn[1],new Date),Cn=new Date;function Zn(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(i.count=function(e,r){return Nn.setTime(+e),Cn.setTime(+r),t(Nn),t(Cn),Math.floor(n(Nn,Cn))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}function Mn(t){return Zn(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/6048e5})}var On=Mn(0),Ln=Mn(1),Rn=(Mn(2),Mn(3),Mn(4)),Un=(Mn(5),Mn(6),Zn(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1}));function Pn(t){return Zn(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5})}var qn=Pn(0),Fn=Pn(1),jn=(Pn(2),Pn(3),Pn(4)),Yn=(Pn(5),Pn(6),Zn(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5},function(t){return t.getDate()-1})),Bn=Zn(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Bn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Zn(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};var zn=Bn,Gn=Zn(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});Gn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Zn(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var Jn=Gn,Vn={"-":"",_:" ",0:"0"},Hn=/[\\^$*+?|[\]().{}]/g;function Qn(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o=4||0===n?jn(t):jn.ceil(t),Qn(jn.count(zn(t),t)+(4===zn(t).getDay()),e,2)}function hr(t){return t.getDay()}function fr(t,e){return Qn(Fn.count(zn(t)-1,t),e,2)}function dr(t,e){return Qn(t.getFullYear()%100,e,2)}function pr(t,e){return Qn(t.getFullYear()%1e4,e,4)}function gr(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Qn(e/60|0,"0",2)+Qn(e%60,"0",2)}function vr(t,e){return Qn(t.getUTCDate(),e,2)}function mr(t,e){return Qn(t.getUTCHours(),e,2)}function yr(t,e){return Qn(t.getUTCHours()%12||12,e,2)}function _r(t,e){return Qn(1+Un.count(Jn(t),t),e,3)}function wr(t,e){return Qn(t.getUTCMilliseconds(),e,3)}function br(t,e){return wr(t,e)+"000"}function xr(t,e){return Qn(t.getUTCMonth()+1,e,2)}function Er(t,e){return Qn(t.getUTCMinutes(),e,2)}function Tr(t,e){return Qn(t.getUTCSeconds(),e,2)}function Ar(t){var e=t.getUTCDay();return 0===e?7:e}function Sr(t,e){return Qn(On.count(Jn(t)-1,t),e,2)}function kr(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Rn(t):Rn.ceil(t),Qn(Rn.count(Jn(t),t)+(4===Jn(t).getUTCDay()),e,2)}function Ir(t){return t.getUTCDay()}function Dr(t,e){return Qn(Ln.count(Jn(t)-1,t),e,2)}function Nr(t,e){return Qn(t.getUTCFullYear()%100,e,2)}function Cr(t,e){return Qn(t.getUTCFullYear()%1e4,e,4)}function Zr(){return"+0000"}function Mr(){return"%"}function Or(t){return+t}function Lr(t){return Math.floor(+t/1e3)}function Rr(t){return null===t?NaN:+t}!function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,u=t.shortMonths,c=(Xn(i),$n(i),Xn(o),$n(o),Xn(a),$n(a),Xn(s),$n(s),Xn(u),$n(u),{a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:Kn,e:Kn,f:ir,H:tr,I:er,j:nr,L:rr,m:or,M:ar,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Or,s:Lr,S:sr,u:ur,U:cr,V:lr,w:hr,W:fr,x:null,X:null,y:dr,Y:pr,Z:gr,"%":Mr}),l={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:vr,e:vr,f:br,H:mr,I:yr,j:_r,L:wr,m:xr,M:Er,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Or,s:Lr,S:Tr,u:Ar,U:Sr,V:kr,w:Ir,W:Dr,x:null,X:null,y:Nr,Y:Cr,Z:Zr,"%":Mr};function h(t,e){return function(n){var r,i,o,a=[],s=-1,u=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s(e=a[u-1])&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),r=u>2?Jr:Gr,i=o=null,h}function h(e){return null==e||isNaN(e=+e)?n:(i||(i=r(a.map(t),s,u)))(t(c(e)))}return h.invert=function(n){return c(e((o||(o=r(s,a.map(t),qr.Z)))(n)))},h.domain=function(t){return arguments.length?(a=Array.from(t,jr),l()):a.slice()},h.range=function(t){return arguments.length?(s=Array.from(t),l()):s.slice()},h.rangeRound=function(t){return s=Array.from(t),u=Fr.Z,l()},h.clamp=function(t){return arguments.length?(c=!!t||Br,l()):c!==Br},h.interpolate=function(t){return arguments.length?(u=t,l()):u},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,l()}}()(Br,Br)}function Qr(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var Wr=l(93116),Xr=l(65636),$r=l(3712),Kr=l(3218),ti=l(22233);function ei(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){var r,i,o,a,s=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e0){var u=Math.round(t/a),c=Math.round(e/a);for(u*ae&&--c,o=new Array(i=c-u+1);++se&&--h,o=new Array(i=h-l+1);++s0;){if((i=rn(u,c,n))===r)return o[a]=u,o[s]=c,e(o);if(i>0)u=Math.floor(u/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;u=Math.ceil(u*i)/i,c=Math.floor(c*i)/i}r=i}return t},t}function ni(){var t=Hr();return t.copy=function(){return Vr(t,ni())},Qr.apply(t,arguments),ei(t)}function ri(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r2&&void 0!==arguments[2]?arguments[2]:Rr;if(r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}}function ui(){var t,e=[],n=[],r=[];function i(){var t=0,i=Math.max(1,n.length);for(r=new Array(i-1);++t0?r[i-1]:e[0],i=0;)e+=n[r].value;else e=1;t.value=e}function xi(t,e){var n,r,i,o,a,s=new Si(t),u=+t.value&&(s.value=t.value),c=[s];for(null==e&&(e=Ei);n=c.pop();)if(u&&(n.value=+n.data.value),(i=e(n.data))&&(a=i.length))for(n.children=new Array(a),o=a-1;o>=0;--o)c.push(r=n.children[o]=new Si(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Ai)}function Ei(t){return t.children}function Ti(t){t.data=t.data.data}function Ai(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function Si(t){this.data=t,this.depth=this.height=0,this.parent=null}mi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:vi(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:vi(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new mi(t,e)}return n.tension=function(e){return t(+e)},n}(0),yi.prototype={areaStart:gi,areaEnd:gi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:vi(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new yi(t,e)}return n.tension=function(e){return t(+e)},n}(0),Math,Math,Math,Math,Math,Math,Math,Math,l(12314),function t(e){function n(t,n,r,i,o){!function(t,e,n,r,i,o){for(var a,s,u,c,l,h,f,d,p,g,v,m=[],y=e.children,_=0,w=0,b=y.length,x=e.value;_f&&(f=s),v=l*l*g,(d=Math.max(f/v,v/h))>p){l-=s;break}p=d}m.push(a={value:l,dice:u1?e:1)},n}((1+Math.sqrt(5))/2),Si.prototype=xi.prototype={constructor:Si,count:function(){return this.eachAfter(bi)},each:function(t){var e,n,r,i,o=this,a=[o];do{for(e=a.reverse(),a=[];o=e.pop();)if(t(o),n=o.children)for(r=0,i=n.length;r=0;--n)i.push(e[n]);return this},sum:function(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)r.push(e=e.parent);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each(function(e){t.push(e)}),t},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e},copy:function(){return xi(this).eachBefore(Ti)}};var ki=l(30269),Ii=["caretElm"];function Di(t,e){}var Ni=function(t){return{model:t}};function Ci(t,e){if(1&t&&(m.TgZ(0,"span"),m.YNc(1,Di,0,0,"ng-template",5),m.qZA()),2&t){var n=m.oxw();m.xp6(1),m.Q6J("ngTemplateOutlet",n.template)("ngTemplateOutletContext",m.VKq(2,Ni,n.context))}}function Zi(t,e){if(1&t&&m._UZ(0,"span",6),2&t){var n=m.oxw();m.Q6J("innerHTML",n.title,m.oJD)}}function Mi(t,e){if(1&t&&(m.O4$(),m.kcU(),m._UZ(0,"ngx-charts-scale-legend",4)),2&t){var n=m.oxw();m.Q6J("horizontal",n.legendOptions&&"below"===n.legendOptions.position)("valueRange",n.legendOptions.domain)("colors",n.legendOptions.colors)("height",n.view[1])("width",n.legendWidth)}}function Oi(t,e){if(1&t){var n=m.EpF();m.O4$(),m.kcU(),m.TgZ(0,"ngx-charts-legend",5),m.NdJ("labelClick",function(t){return m.CHM(n),m.oxw().legendLabelClick.emit(t)})("labelActivate",function(t){return m.CHM(n),m.oxw().legendLabelActivate.emit(t)})("labelDeactivate",function(t){return m.CHM(n),m.oxw().legendLabelDeactivate.emit(t)}),m.qZA()}if(2&t){var r=m.oxw();m.Q6J("horizontal",r.legendOptions&&"below"===r.legendOptions.position)("data",r.legendOptions.domain)("title",r.legendOptions.title)("colors",r.legendOptions.colors)("height",r.view[1])("width",r.legendWidth)("activeEntries",r.activeEntries)}}var Li=["*"];function Ri(t,e){if(1&t&&(m.TgZ(0,"header",4),m.TgZ(1,"span",5),m._uU(2),m.qZA(),m.qZA()),2&t){var n=m.oxw();m.xp6(2),m.Oqu(n.title)}}function Ui(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"li",6),m.TgZ(1,"ngx-charts-legend-entry",7),m.NdJ("select",function(t){return m.CHM(n),m.oxw().labelClick.emit(t)})("activate",function(t){return m.CHM(n),m.oxw().activate(t)})("deactivate",function(t){return m.CHM(n),m.oxw().deactivate(t)}),m.qZA(),m.qZA()}if(2&t){var r=e.$implicit,i=m.oxw();m.xp6(1),m.Q6J("label",r.label)("formattedLabel",r.formattedLabel)("color",r.color)("isActive",i.isActive(r))}}var Pi=function(){var t=function(){function t(e,n,r){f(this,t),this.applicationRef=e,this.componentFactoryResolver=n,this.injector=r}return p(t,[{key:"getRootViewContainer",value:function(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.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.")}},{key:"setRootViewContainer",value:function(t){this._container=t}},{key:"getComponentRootNode",value:function(t){return t.element?t.element.nativeElement:t.hostView&&t.hostView.rootNodes.length>0?t.hostView.rootNodes[0]:t.location.nativeElement}},{key:"getRootViewContainerNode",value:function(t){return this.getComponentRootNode(t)}},{key:"projectComponentBindings",value:function(t,e){if(e){if(void 0!==e.inputs){var n,r=c(Object.getOwnPropertyNames(e.inputs));try{for(r.s();!(n=r.n()).done;){var i=n.value;t.instance[i]=e.inputs[i]}}catch(u){r.e(u)}finally{r.f()}}if(void 0!==e.outputs){var o,a=c(Object.getOwnPropertyNames(e.outputs));try{for(a.s();!(o=a.n()).done;){var s=o.value;t.instance[s]=e.outputs[s]}}catch(u){a.e(u)}finally{a.f()}}}return t}},{key:"appendComponent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;n||(n=this.getRootViewContainer());var r=this.getComponentRootNode(n),i=new Je.F0(r,this.componentFactoryResolver,this.applicationRef,this.injector),o=new Je.C5(t),a=i.attach(o);return this.projectComponentBindings(a,e),a}}],[{key:"setGlobalRootViewContainer",value:function(e){t.globalRootViewContainer=e}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.LFG(m.z2F),m.LFG(m._Vd),m.LFG(m.zs3))},t.\u0275prov=m.Yz7({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t}();function qi(t,e,n){var r,i,o;n=n||{};var a=null,s=0;function u(){s=!1===n.leading?0:+new Date,a=null,o=t.apply(r,i)}return function(){var c=+new Date;s||!1!==n.leading||(s=c);var l=e-(c-s);return r=this,i=arguments,l<=0?(clearTimeout(a),a=null,s=c,o=t.apply(r,i)):a||!1===n.trailing||(a=setTimeout(u,l)),o}}var Fi=function(t){return t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right",t}({});function ji(t,e,n){return"top"===n?t.top-7:"bottom"===n?t.top+t.height-e.height+7:"center"===n?t.top+t.height/2-e.height/2:void 0}function Yi(t,e,n){return"left"===n?t.left-7:"right"===n?t.left+t.width-e.width+7:"center"===n?t.left+t.width/2-e.width/2:void 0}var Bi=function(){function t(){f(this,t)}return p(t,null,[{key:"calculateVerticalAlignment",value:function(t,e,n){var r=ji(t,e,n);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r}},{key:"calculateVerticalCaret",value:function(t,e,n,r){var i;"top"===r&&(i=t.height/2-n.height/2+7),"bottom"===r&&(i=e.height-t.height/2-n.height/2-7),"center"===r&&(i=e.height/2-n.height/2);var o=ji(t,e,r);return o+e.height>window.innerHeight&&(i+=o+e.height-window.innerHeight),i}},{key:"calculateHorizontalAlignment",value:function(t,e,n){var r=Yi(t,e,n);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r}},{key:"calculateHorizontalCaret",value:function(t,e,n,r){var i;"left"===r&&(i=t.width/2-n.width/2+7),"right"===r&&(i=e.width-t.width/2-n.width/2-7),"center"===r&&(i=e.width/2-n.width/2);var o=Yi(t,e,r);return o+e.width>window.innerWidth&&(i+=o+e.width-window.innerWidth),i}},{key:"shouldFlip",value:function(t,e,n,r){var i=!1;return"right"===n&&t.left+t.width+e.width+r>window.innerWidth&&(i=!0),"left"===n&&t.left-e.width-r<0&&(i=!0),"top"===n&&t.top-e.height-r<0&&(i=!0),"bottom"===n&&t.top+t.height+e.height+r>window.innerHeight&&(i=!0),i}},{key:"positionCaret",value:function(e,n,r,i,o){var a=0,s=0;return e===Fi.right?(s=-7,a=t.calculateVerticalCaret(r,n,i,o)):e===Fi.left?(s=n.width,a=t.calculateVerticalCaret(r,n,i,o)):e===Fi.top?(a=n.height,s=t.calculateHorizontalCaret(r,n,i,o)):e===Fi.bottom&&(a=-7,s=t.calculateHorizontalCaret(r,n,i,o)),{top:a,left:s}}},{key:"positionContent",value:function(e,n,r,i,o){var a=0,s=0;return e===Fi.right?(s=r.left+r.width+i,a=t.calculateVerticalAlignment(r,n,o)):e===Fi.left?(s=r.left-n.width-i,a=t.calculateVerticalAlignment(r,n,o)):e===Fi.top?(a=r.top-n.height-i,s=t.calculateHorizontalAlignment(r,n,o)):e===Fi.bottom&&(a=r.top+r.height+i,s=t.calculateHorizontalAlignment(r,n,o)),{top:a,left:s}}},{key:"determinePlacement",value:function(e,n,r,i){if(t.shouldFlip(r,n,e,i)){if(e===Fi.right)return Fi.left;if(e===Fi.left)return Fi.right;if(e===Fi.top)return Fi.bottom;if(e===Fi.bottom)return Fi.top}return e}}]),t}(),zi=function(){var t=function(){function t(e,n){f(this,t),this.element=e,this.renderer=n}return p(t,[{key:"cssClasses",get:function(){var t="ngx-charts-tooltip-content";return t+=" position-".concat(this.placement),t+=" type-".concat(this.type),t+=" ".concat(this.cssClass)}},{key:"ngAfterViewInit",value:function(){setTimeout(this.position.bind(this))}},{key:"position",value:function(){var t=this,e=this.element.nativeElement,n=this.host.nativeElement.getBoundingClientRect();if(n.height||n.width){var r=e.getBoundingClientRect();this.checkFlip(n,r),this.positionContent(e,n,r),this.showCaret&&this.positionCaret(n,r),setTimeout(function(){return t.renderer.addClass(e,"animate")},1)}}},{key:"positionContent",value:function(t,e,n){var r=Bi.positionContent(this.placement,n,e,this.spacing,this.alignment),i=r.top,o=r.left;this.renderer.setStyle(t,"top","".concat(i,"px")),this.renderer.setStyle(t,"left","".concat(o,"px"))}},{key:"positionCaret",value:function(t,e){var n=this.caretElm.nativeElement,r=n.getBoundingClientRect(),i=Bi.positionCaret(this.placement,e,t,r,this.alignment),o=i.top,a=i.left;this.renderer.setStyle(n,"top","".concat(o,"px")),this.renderer.setStyle(n,"left","".concat(a,"px"))}},{key:"checkFlip",value:function(t,e){this.placement=Bi.determinePlacement(this.placement,e,t,this.spacing)}},{key:"onWindowResize",value:function(){this.position()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(m.SBq),m.Y36(m.Qsj))},t.\u0275cmp=m.Xpm({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(t,e){var n;(1&t&&m.Gf(Ii,5),2&t)&&(m.iGM(n=m.CRH())&&(e.caretElm=n.first))},hostVars:2,hostBindings:function(t,e){1&t&&m.NdJ("resize",function(){return e.onWindowResize()},!1,m.Jf7),2&t&&m.Tol(e.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",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(t,e){1&t&&(m.TgZ(0,"div"),m._UZ(1,"span",0,1),m.TgZ(3,"div",2),m.YNc(4,Ci,2,4,"span",3),m.YNc(5,Zi,1,1,"span",4),m.qZA(),m.qZA()),2&t&&(m.xp6(1),m.Gre("tooltip-caret position-",e.placement,""),m.Q6J("hidden",!e.showCaret),m.xp6(3),m.Q6J("ngIf",!e.title),m.xp6(1),m.Q6J("ngIf",e.title))},directives:[d.O5,d.tP],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.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{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),Be([function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:qi(n.value,100,void 0)}),this[e]}}}],t.prototype,"onWindowResize",null),t}(),Gi=function(){var t=function(t){r(n,t);var e=o(n);function n(t){var r;return f(this,n),(r=e.call(this,t)).type=zi,r}return n}(function(){function t(e){f(this,t),this.injectionService=e,this.defaults={},this.components=new Map}return p(t,[{key:"getByType",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.type;return this.components.get(t)}},{key:"create",value:function(t){return this.createByType(this.type,t)}},{key:"createByType",value:function(t,e){e=this.assignDefaults(e);var n=this.injectComponent(t,e);return this.register(t,n),n}},{key:"destroy",value:function(t){var e=this.components.get(t.componentType);if(e&&e.length){var n=e.indexOf(t);n>-1&&(e[n].destroy(),e.splice(n,1))}}},{key:"destroyAll",value:function(){this.destroyByType(this.type)}},{key:"destroyByType",value:function(t){var e=this.components.get(t);if(e&&e.length)for(var n=e.length-1;n>=0;)this.destroy(e[n--])}},{key:"injectComponent",value:function(t,e){return this.injectionService.appendComponent(t,e)}},{key:"assignDefaults",value:function(t){var e=Object.assign({},this.defaults.inputs),n=Object.assign({},this.defaults.outputs);return t.inputs||t.outputs||(t={inputs:t}),e&&(t.inputs=Object.assign(Object.assign({},e),t.inputs)),n&&(t.outputs=Object.assign(Object.assign({},n),t.outputs)),t}},{key:"register",value:function(t,e){this.components.has(t)||this.components.set(t,[]),this.components.get(t).push(e)}}]),t}());return t.\u0275fac=function(e){return new(e||t)(m.LFG(Pi))},t.\u0275prov=m.Yz7({token:t,factory:t.\u0275fac}),t}(),Ji=function(){var t=function(){function t(){f(this,t),this.showLegend=!1,this.animations=!0,this.legendLabelClick=new m.vpe,this.legendLabelActivate=new m.vpe,this.legendLabelDeactivate=new m.vpe}return p(t,[{key:"ngOnChanges",value:function(t){this.update()}},{key:"update",value:function(){var t=0;this.showLegend&&(this.legendType=this.getLegendType(),this.legendOptions&&"right"!==this.legendOptions.position||(t="scaleLegend"===this.legendType?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-t)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:Math.floor(this.view[0]*t/12)}},{key:"getLegendType",value:function(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=m.Xpm({type:t,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",data:"data",legendData:"legendData",colors:"colors",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[m._Bn([Gi]),m.TTD],ngContentSelectors:Li,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(t,e){1&t&&(m.F$t(),m.TgZ(0,"div",0),m.O4$(),m.TgZ(1,"svg",1),m.Hsn(2),m.qZA(),m.YNc(3,Mi,1,5,"ngx-charts-scale-legend",2),m.YNc(4,Oi,1,7,"ngx-charts-legend",3),m.qZA()),2&t&&(m.Udp("width",e.view[0],"px"),m.Q6J("@animationState","active")("@.disabled",!e.animations),m.xp6(1),m.uIk("width",e.chartWidth)("height",e.view[1]),m.xp6(2),m.Q6J("ngIf",e.showLegend&&"scaleLegend"===e.legendType),m.xp6(1),m.Q6J("ngIf",e.showLegend&&"legend"===e.legendType))},directives:function(){return[d.O5,Ki,Xi]},encapsulation:2,data:{animation:[(0,Ge.X$)("animationState",[(0,Ge.eR)(":enter",[(0,Ge.oB)({opacity:0}),(0,Ge.jt)("500ms 100ms",(0,Ge.oB)({opacity:1}))])])]},changeDetection:0}),t}(),Vi=function(){var t=function(){function t(e,n){f(this,t),this.element=e,this.zone=n,this.visible=new m.vpe,this.isVisible=!1,this.runCheck()}return p(t,[{key:"destroy",value:function(){clearTimeout(this.timeout)}},{key:"onVisibilityChange",value:function(){var t=this;this.zone.run(function(){t.isVisible=!0,t.visible.emit(!0)})}},{key:"runCheck",value:function(){var t=this,e=function e(){if(t.element){var n=t.element.nativeElement,r=n.offsetHeight,i=n.offsetWidth;r&&i?(clearTimeout(t.timeout),t.onVisibilityChange()):(clearTimeout(t.timeout),t.zone.runOutsideAngular(function(){t.timeout=setTimeout(function(){return e()},100)}))}};this.zone.runOutsideAngular(function(){t.timeout=setTimeout(function(){return e()})})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(m.SBq),m.Y36(m.R0b))},t.\u0275dir=m.lG2({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t}(),Hi=function(){var t=function(){function t(e,n,r){f(this,t),this.chartElement=e,this.zone=n,this.cd=r,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new m.vpe}return p(t,[{key:"ngAfterViewInit",value:function(){this.bindWindowResizeEvent(),this.visibilityObserver=new Vi(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}},{key:"ngOnDestroy",value:function(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}},{key:"ngOnChanges",value:function(t){this.update()}},{key:"update",value:function(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{var t=this.getContainerDims();t&&(this.width=t.width,this.height=t.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()}},{key:"getContainerDims",value:function(){var t,e,n=this.chartElement.nativeElement;if(null!==n.parentNode){var r=n.parentNode.getBoundingClientRect();t=r.width,e=r.height}return t&&e?{width:t,height:e}:null}},{key:"formatDates",value:function(){for(var t=0;t0),m.xp6(2),m.Udp("max-height",e.height-45,"px"),m.ekj("horizontal-legend",e.horizontal),m.xp6(1),m.Q6J("ngForOf",e.legendEntries)("ngForTrackBy",e.trackBy))},directives:function(){return[d.O5,d.sg,$i]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{font-size:14px;font-weight:700;margin-bottom:5px;margin-left:10px;overflow:hidden;white-space:nowrap}.chart-legend li,.chart-legend ul{list-style:none;margin:0;padding:0}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{background:rgba(0,0,0,.05);border-radius:3px;float:left;line-height:85%;list-style:none;overflow-x:hidden;overflow-y:auto;text-align:left;white-space:nowrap;width:100%}.chart-legend .legend-label{color:#afb7c8;cursor:pointer;font-size:90%;margin:8px}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{border-radius:3px;color:#5b646b;display:inline-block;height:15px;margin-right:5px;width:15px}.chart-legend .legend-label-text{font-size:12px;line-height:15px;vertical-align:top;width:calc(100% - 20px)}.chart-legend .legend-label-text,.chart-legend .legend-title-text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-legend .legend-title-text{line-height:16px;vertical-align:bottom}"],encapsulation:2,changeDetection:0}),t}(),$i=function(){var t=function(){function t(){f(this,t),this.isActive=!1,this.select=new m.vpe,this.activate=new m.vpe,this.deactivate=new m.vpe,this.toggle=new m.vpe}return p(t,[{key:"trimmedLabel",get:function(){return this.formattedLabel||"(empty)"}},{key:"onMouseEnter",value:function(){this.activate.emit({name:this.label})}},{key:"onMouseLeave",value:function(){this.deactivate.emit({name:this.label})}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=m.Xpm({type:t,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(t,e){1&t&&m.NdJ("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(){return e.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(t,e){1&t&&(m.TgZ(0,"span",0),m.NdJ("click",function(){return e.select.emit(e.formattedLabel)}),m.TgZ(1,"span",1),m.NdJ("click",function(){return e.toggle.emit(e.formattedLabel)}),m.qZA(),m.TgZ(2,"span",2),m._uU(3),m.qZA(),m.qZA()),2&t&&(m.ekj("active",e.isActive),m.Q6J("title",e.formattedLabel),m.xp6(1),m.Udp("background-color",e.color),m.xp6(2),m.hij(" ",e.trimmedLabel," "))},encapsulation:2,changeDetection:0}),t}(),Ki=function(){var t=function(){function t(e){f(this,t),this.sanitizer=e,this.horizontal=!1}return p(t,[{key:"ngOnChanges",value:function(t){var e=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle("linear-gradient(to ".concat(this.horizontal?"right":"bottom",", ").concat(e,")"))}},{key:"gradientString",value:function(t,e){e.push(1);var n=[];return t.reverse().forEach(function(t,r){n.push("".concat(t," ").concat(Math.round(100*e[r]),"%"))}),n.join(", ")}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(ki.H7))},t.\u0275cmp=m.Xpm({type:t,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[m.TTD],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(t,e){1&t&&(m.TgZ(0,"div",0),m.TgZ(1,"div",1),m.TgZ(2,"span"),m._uU(3),m.qZA(),m.qZA(),m._UZ(4,"div",2),m.TgZ(5,"div",1),m.TgZ(6,"span"),m._uU(7),m.qZA(),m.qZA(),m.qZA()),2&t&&(m.Udp("height",e.horizontal?void 0:e.height,"px")("width",e.width,"px"),m.ekj("horizontal-legend",e.horizontal),m.xp6(3),m.Oqu(e.valueRange[1].toLocaleString()),m.xp6(1),m.Udp("background",e.gradient),m.xp6(3),m.Oqu(e.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{display:flex;flex-direction:column;text-align:center}.chart-legend .scale-legend-wrap{border-radius:5px;display:inline-block;flex:1;margin:0 auto;width:30px}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{height:30px;margin:0 16px;width:auto}"],encapsulation:2,changeDetection:0}),t}(),to=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[d.ez,Qi,Wi],d.ez,Qi,Wi]}),t}(),eo=[{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"]}],no=function(){function t(e,n,r,i){f(this,t),"string"==typeof e&&(e=eo.find(function(t){return t.name===e})),this.colorDomain=e.domain,this.scaleType=n,this.domain=r,this.customColors=i,this.scale=this.generateColorScheme(e,n,this.domain)}return p(t,[{key:"generateColorScheme",value:function(t,e,r){var i;if("string"==typeof t&&(t=eo.find(function(e){return e.name===t})),"quantile"===e)i=ui().range(t.domain).domain(r);else if("ordinal"===e)i=oi().range(t.domain).domain(r);else if("linear"===e){var o=n(t.domain);1===o.length&&(o.push(o[0]),this.colorDomain=o);var a=ri(0,1,1/o.length);i=ni().domain(a).range(o)}return i}},{key:"getColor",value:function(t){if(null==t)throw new Error("Value can not be null");if("linear"===this.scaleType){var e=ni().domain(this.domain).range([0,1]);return this.scale(e(t))}if("function"==typeof this.customColors)return this.customColors(t);var n,r=t.toString();return this.customColors&&this.customColors.length>0&&(n=this.customColors.find(function(t){return t.name.toLowerCase()===r.toLowerCase()})),n?n.value:this.scale(t)}},{key:"getLinearGradientStops",value:function(t,e){void 0===e&&(e=this.domain[0]);var n=ni().domain(this.domain).range([0,1]),r=ai().domain(this.colorDomain).range([0,1]),i=this.getColor(t),o=n(e),a=this.getColor(e),s=n(t),u=1,l=o,h=[];for(h.push({color:a,offset:o,originalOffset:o,opacity:1});l=(s-r.bandwidth()).toFixed(4))break;h.push({color:f,offset:d,opacity:1}),l=d,u++}}if(h[h.length-1].offset<100&&h.push({color:i,offset:s,opacity:1}),s===o)h[0].offset=0,h[1].offset=100;else if(100!==h[h.length-1].offset){var p,g=c(h);try{for(g.s();!(p=g.n()).done;){var v=p.value;v.offset=(v.offset-o)/(s-o)*100}}catch(m){g.e(m)}finally{g.f()}}return h}}]),t}(),ro=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to]]}),t}(),io=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to]]}),t}(),oo=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to]]}),t}(),ao=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to]]}),t}(),so=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to]]}),t}();Math;var uo=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to]]}),t}(),co=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to,uo,so]]}),t}(),lo=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to]]}),t}(),ho=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to]]}),t}(),fo=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[to,uo,io]]}),t}(),po=function(){var t=function t(){f(this,t),"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[to,ro,io,oo,ao,so,co,lo,uo,ho,fo]}),t}(),go=Math.PI;function vo(t){return(1-Math.cos(go*t))/2}var mo=l(87570),yo=l(48318),_o=l(40878),wo=l(3530);function bo(t){return void 0===t}function xo(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e1&&void 0!==arguments[1]?arguments[1]:0;return{a:1,c:0,e:t,b:0,d:1,f:e}}"function"==typeof Symbol&&Symbol,Math,Math,Math,Math;var So=l(32975);function ko(t,e){var n;function r(){var r,i,o=n.length,a=0,s=0;for(r=0;r=(o=(g+m)/2))?g=o:m=o,(l=n>=(a=(v+y)/2))?v=a:y=a,i=d,!(d=d[h=l<<1|c]))return i[h]=p,t;if(s=+t._x.call(null,d.data),u=+t._y.call(null,d.data),e===s&&n===u)return p.next=d,i?i[h]=p:t._root=p,t;do{i=i?i[h]=new Array(4):t._root=new Array(4),(c=e>=(o=(g+m)/2))?g=o:m=o,(l=n>=(a=(v+y)/2))?v=a:y=a}while((h=l<<1|c)==(f=(u>=a)<<1|s>=o));return i[f]=d,i[h]=p,t}function Co(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function Zo(t){return t[0]}function Mo(t){return t[1]}function Oo(t,e,n){var r=new Lo(null==e?Zo:e,null==n?Mo:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Lo(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function Ro(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Uo=Oo.prototype=Lo.prototype;function Po(t){return t.x+t.vx}function qo(t){return t.y+t.vy}function Fo(t){var e,n,r=1,i=1;function o(){for(var t,o,s,u,c,l,h,f=e.length,d=0;du+d||ic+d||os.index){var p=u-a.x-a.vx,g=c-a.y-a.vy,v=p*p+g*g;vt.r&&(t.r=t[e].r)}function s(){if(e){var r,i,o=e.length;for(n=new Array(o),r=0;rl&&(l=r),ih&&(h=i));if(u>l||c>h)return this;for(this.cover(u,c).cover(l,h),n=0;nt||t>=i||r>e||e>=o;)switch(s=(ef||(o=u.y0)>d||(a=u.x1)=m)<<1|t>=v)&&(u=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=u)}else{var y=t-+this._x.call(null,g.data),_=e-+this._y.call(null,g.data),w=y*y+_*_;if(w=(s=(p+v)/2))?p=s:v=s,(l=a>=(u=(g+m)/2))?g=u:m=u,e=d,!(d=d[h=l<<1|c]))return this;if(!d.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(n=e,f=h)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[h]=i:delete e[h],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[f]=d:this._root=d),this):(this._root=i,this)},Uo.removeAll=function(t){for(var e=0,n=t.length;e1?(null==n?s.remove(t):s.set(t,d(n)),e):s.get(t)},find:function(e,n,r){var i,o,a,s,u,c=0,l=t.length;for(null==r?r=1/0:r*=r,c=0;c1?(c.on(t,n),e):c.on(t)}}}function ta(){var t,e,n,r,i=Io(-30),o=1,a=1/0,s=.81;function u(r){var i,o=t.length,a=Oo(t,Wo,Xo).visitAfter(l);for(n=r,i=0;i=a)){(t.data!==e||t.next)&&(0===l&&(d+=(l=Do())*l),0===h&&(d+=(h=Do())*h),d=0}),leaves:t.childNodeIds.map(function(t){return e.inputGraph.nodes.findIndex(function(e){return e.id===t})}).filter(function(t){return t>=0})}})),links:n(this.inputGraph.edges.map(function(t){var n=e.inputGraph.nodes.findIndex(function(e){return t.source===e.id}),r=e.inputGraph.nodes.findIndex(function(e){return t.target===e.id});if(-1!==n&&-1!==r)return Object.assign(Object.assign({},t),{source:n,target:r})}).filter(function(t){return!!t})),groupLinks:n(this.inputGraph.edges.map(function(t){var n=e.inputGraph.nodes.findIndex(function(e){return t.source===e.id}),r=e.inputGraph.nodes.findIndex(function(e){return t.target===e.id});if(!(n>=0&&r>=0))return t}).filter(function(t){return!!t}))},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",function(){e.settings.onTickListener&&e.settings.onTickListener(e.internalGraph),e.outputGraph$.next(e.internalGraphToOutputGraph(e.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()}},{key:"updateEdge",value:function(t,e){var n=Object.assign({},this.defaultSettings,this.settings);return n.force&&n.force.start(),this.outputGraph$.asObservable()}},{key:"internalGraphToOutputGraph",value:function(t){var e=this;return this.outputGraph.nodes=t.nodes.map(function(t){return Object.assign(Object.assign({},t),{id:t.id||La(),position:{x:t.x,y:t.y},dimension:{width:t.dimension&&t.dimension.width||20,height:t.dimension&&t.dimension.height||20},transform:"translate(".concat(t.x-(t.dimension&&t.dimension.width||20)/2||0,", ").concat(t.y-(t.dimension&&t.dimension.height||20)/2||0,")")})}),this.outputGraph.edges=t.links.map(function(e){var n=Pa(t.nodes,e.source),r=Pa(t.nodes,e.target);return Object.assign(Object.assign({},e),{source:n.id,target:r.id,points:[n.bounds.rayIntersection(r.bounds.cx(),r.bounds.cy()),r.bounds.rayIntersection(n.bounds.cx(),n.bounds.cy())]})}).concat(t.groupLinks.map(function(e){var n=t.nodes.find(function(t){return t.id===e.source}),r=t.nodes.find(function(t){return t.id===e.target}),i=n||t.groups.find(function(t){return t.id===e.source}),o=r||t.groups.find(function(t){return t.id===e.target});return Object.assign(Object.assign({},e),{source:i.id,target:o.id,points:[i.bounds.rayIntersection(o.bounds.cx(),o.bounds.cy()),o.bounds.rayIntersection(i.bounds.cx(),i.bounds.cy())]})})),this.outputGraph.clusters=t.groups.map(function(t,n){return Object.assign(Object.assign({},e.inputGraph.clusters[n]),{dimension:{width:t.bounds?t.bounds.width():20,height:t.bounds?t.bounds.height():20},position:{x:t.bounds?t.bounds.x+t.bounds.width()/2:0,y:t.bounds?t.bounds.y+t.bounds.height()/2:0}})}),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}},{key:"onDragStart",value:function(t,e){var n=this.outputGraph.nodes.findIndex(function(e){return e.id===t.id}),r=this.internalGraph.nodes[n];r&&(this.draggingStart={x:r.x-e.x,y:r.y-e.y},r.fixed=1,this.settings.force.start())}},{key:"onDrag",value:function(t,e){if(t){var n=this.outputGraph.nodes.findIndex(function(e){return e.id===t.id}),r=this.internalGraph.nodes[n];r&&(r.x=this.draggingStart.x+e.x,r.y=this.draggingStart.y+e.y)}}},{key:"onDragEnd",value:function(t,e){if(t){var n=this.outputGraph.nodes.findIndex(function(e){return e.id===t.id}),r=this.internalGraph.nodes[n];r&&(r.fixed=0)}}}]),t}()},Fa=function(){var t=function(){function t(){f(this,t)}return p(t,[{key:"getLayout",value:function(t){if(qa[t])return new qa[t];throw new Error("Unknown layout type '".concat(t,"'"))}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=m.Yz7({token:t,factory:t.\u0275fac}),t}(),ja=function(t){return t.Both="both",t.Horizontal="horizontal",t.Vertical="vertical",t}({}),Ya=function(t){return t.UpperLeft="UpperLeft",t.UpperRight="UpperRight",t}({});function Ba(t,e,n){var r,i,o;n=n||{};var a=null,s=0;function u(){s=!1===n.leading?0:+new Date,a=null,o=t.apply(r,i)}return function(){var c=+new Date;s||!1!==n.leading||(s=c);var l=e-(c-s);return r=this,i=arguments,l<=0?(clearTimeout(a),a=null,s=c,o=t.apply(r,i)):a||!1===n.trailing||(a=setTimeout(u,l)),o}}var za=function(){var e=function(e){r(a,e);var i=o(a);function a(t,e,n,r){var o;return f(this,a),(o=i.call(this,t,e,n)).el=t,o.zone=e,o.cd=n,o.layoutService=r,o.legend=!1,o.nodes=[],o.clusters=[],o.links=[],o.activeEntries=[],o.draggingEnabled=!0,o.panningEnabled=!0,o.panningAxis=ja.Both,o.enableZoom=!0,o.zoomSpeed=.1,o.minZoomLevel=.1,o.maxZoomLevel=4,o.autoZoom=!1,o.panOnZoom=!0,o.animate=!1,o.autoCenter=!1,o.enableTrackpadSupport=!1,o.showMiniMap=!1,o.miniMapMaxWidth=100,o.miniMapPosition=Ya.UpperRight,o.activate=new m.vpe,o.deactivate=new m.vpe,o.zoomChange=new m.vpe,o.clickHandler=new m.vpe,o.isMouseMoveCalled=!1,o.graphSubscription=new mo.w,o.subscriptions=[],o.margin=[0,0,0,0],o.results=[],o.isPanning=!1,o.isDragging=!1,o.initialized=!1,o.graphDims={width:0,height:0},o._oldLinks=[],o.oldNodes=new Set,o.oldClusters=new Set,o.transformationMatrix={a:1,c:0,e:0,b:0,d:1,f:0},o._touchLastX=null,o._touchLastY=null,o.minimapScaleCoefficient=3,o.minimapOffsetX=0,o.minimapOffsetY=0,o.isMinimapPanning=!1,o.groupResultsBy=function(t){return t.label},o}return p(a,[{key:"zoomLevel",get:function(){return this.transformationMatrix.a},set:function(t){this.zoomTo(Number(t))}},{key:"panOffsetX",get:function(){return this.transformationMatrix.e},set:function(t){this.panTo(Number(t),null)}},{key:"panOffsetY",get:function(){return this.transformationMatrix.f},set:function(t){this.panTo(null,Number(t))}},{key:"ngOnInit",value:function(){var t=this;this.update$&&this.subscriptions.push(this.update$.subscribe(function(){t.update()})),this.center$&&this.subscriptions.push(this.center$.subscribe(function(){t.center()})),this.zoomToFit$&&this.subscriptions.push(this.zoomToFit$.subscribe(function(){t.zoomToFit()})),this.panToNode$&&this.subscriptions.push(this.panToNode$.subscribe(function(e){t.panToNodeId(e)})),this.minimapClipPathId="minimapClip".concat(La())}},{key:"ngOnChanges",value:function(t){var e=t.layoutSettings;this.setLayout(this.layout),e&&this.setLayoutSettings(this.layoutSettings),this.update()}},{key:"setLayout",value:function(t){this.initialized=!1,t||(t="dagre"),"string"==typeof t&&(this.layout=this.layoutService.getLayout(t),this.setLayoutSettings(this.layoutSettings))}},{key:"setLayoutSettings",value:function(t){this.layout&&"string"!=typeof this.layout&&(this.layout.settings=t)}},{key:"ngOnDestroy",value:function(){t(s(a.prototype),"ngOnDestroy",this).call(this);var e,n=c(this.subscriptions);try{for(n.s();!(e=n.n()).done;){e.value.unsubscribe()}}catch(r){n.e(r)}finally{n.f()}this.subscriptions=null}},{key:"ngAfterViewInit",value:function(){var e=this;t(s(a.prototype),"ngAfterViewInit",this).call(this),setTimeout(function(){return e.update()})}},{key:"update",value:function(){var e=this;t(s(a.prototype),"update",this).call(this),this.curve||(this.curve=je.beta(1)),this.zone.run(function(){e.dims=function(t){var e=t.width,n=t.height,r=t.margins,i=t.showXAxis,o=void 0!==i&&i,a=t.showYAxis,s=void 0!==a&&a,u=t.xAxisHeight,c=void 0===u?0:u,l=t.yAxisWidth,h=void 0===l?0:l,f=t.showXLabel,d=void 0!==f&&f,p=t.showYLabel,g=void 0!==p&&p,v=t.showLegend,m=void 0!==v&&v,y=t.legendType,_=void 0===y?"ordinal":y,w=t.legendPosition,b=void 0===w?"right":w,x=t.columns,E=void 0===x?12:x,T=r[3],A=e,S=n-r[0]-r[2];if(m&&"right"===b&&(E-="ordinal"===_?2:1),A=(A=A*E/12)-r[1]-r[3],o&&(S-=5,S-=c,d)&&(S-=30),s&&(A-=5,A-=h,T+=h,T+=10,g)){A-=30,T+=30}return A=Math.max(0,A),S=Math.max(0,S),{width:Math.floor(A),height:Math.floor(S),xOffset:Math.floor(T)}}({width:e.width,height:e.height,margins:e.margin,showLegend:e.legend}),e.seriesDomain=e.getSeriesDomain(),e.setColors(),e.legendOptions=e.getLegendOptions(),e.createGraph(),e.updateTransform(),e.initialized=!0})}},{key:"createGraph",value:function(){var t=this;this.graphSubscription.unsubscribe(),this.graphSubscription=new mo.w;var e=function(e){return e.meta||(e.meta={}),e.id||(e.id=La()),e.dimension?e.meta.forceDimensions=void 0===e.meta.forceDimensions||e.meta.forceDimensions:(e.dimension={width:t.nodeWidth?t.nodeWidth:30,height:t.nodeHeight?t.nodeHeight:30},e.meta.forceDimensions=!1),e.position={x:0,y:0},e.data=e.data?e.data:{},e};this.graph={nodes:this.nodes.length>0?n(this.nodes).map(e):[],clusters:this.clusters&&this.clusters.length>0?n(this.clusters).map(e):[],edges:this.links.length>0?n(this.links).map(function(t){return t.id||(t.id=La()),t}):[]},requestAnimationFrame(function(){return t.draw()})}},{key:"draw",value:function(){var t=this;if(this.layout&&"string"!=typeof this.layout){this.applyNodeDimensions();var e=this.layout.run(this.graph),n=e instanceof yo.y?e:(0,_o.of)(e);this.graphSubscription.add(n.subscribe(function(e){t.graph=e,t.tick()})),0!==this.graph.nodes.length&&n.pipe((0,wo.P)()).subscribe(function(){return t.applyNodeDimensions()})}}},{key:"tick",value:function(){var t=this,e=new Set;this.graph.nodes.map(function(n){n.transform="translate(".concat(n.position.x-n.dimension.width/2||0,", ").concat(n.position.y-n.dimension.height/2||0,")"),n.data||(n.data={}),n.data.color=t.colors.getColor(t.groupResultsBy(n)),e.add(n.id)});var n=new Set;(this.graph.clusters||[]).map(function(e){e.transform="translate(".concat(e.position.x-e.dimension.width/2||0,", ").concat(e.position.y-e.dimension.height/2||0,")"),e.data||(e.data={}),e.data.color=t.colors.getColor(t.groupResultsBy(e)),n.add(e.id)}),setTimeout(function(){t.oldNodes=e,t.oldClusters=n},500);var r=[],i=function(e){var n=t.graph.edgeLabels[e],i=e.replace(/[^\w-]*/g,""),o=t.layout&&"string"!=typeof t.layout&&t.layout.settings&&t.layout.settings.multigraph,a=t._oldLinks.find(o?function(t){return"".concat(t.source).concat(t.target).concat(t.id)===i}:function(t){return"".concat(t.source).concat(t.target)===i}),s=t.graph.edges.find(o?function(t){return"".concat(t.source).concat(t.target).concat(t.id)===i}:function(t){return"".concat(t.source).concat(t.target)===i});a?a.data&&s&&s.data&&JSON.stringify(a.data)!==JSON.stringify(s.data)&&(a.data=s.data):a=s||n,a.oldLine=a.line;var u=n.points,c=t.generateLine(u),l=Object.assign({},a);l.line=c,l.points=u,t.updateMidpointOnEdge(l,u);var h=u[Math.floor(u.length/2)];h&&(l.textTransform="translate(".concat(h.x||0,",").concat(h.y||0,")")),l.textAngle=0,l.oldLine||(l.oldLine=l.line),t.calcDominantBaseline(l),r.push(l)};for(var o in this.graph.edgeLabels)i(o);this.graph.edges=r,this.graph.edges&&(this._oldLinks=this.graph.edges.map(function(t){var e=Object.assign({},t);return e.oldLine=t.line,e})),this.updateMinimap(),this.autoZoom&&this.zoomToFit(),this.autoCenter&&this.center(),requestAnimationFrame(function(){return t.redrawLines()}),this.cd.markForCheck()}},{key:"getMinimapTransform",value:function(){switch(this.miniMapPosition){case Ya.UpperLeft:return"";case Ya.UpperRight:return"translate("+(this.dims.width-this.graphDims.width/this.minimapScaleCoefficient)+",0)";default:return""}}},{key:"updateGraphDims",value:function(){for(var t=1/0,e=-1/0,n=1/0,r=-1/0,i=0;ie?o.position.x+o.dimension.width:e,r=o.position.y+o.dimension.height>r?o.position.y+o.dimension.height:r}t-=100,n-=100,e+=100,r+=100,this.graphDims.width=e-t,this.graphDims.height=r-n,this.minimapOffsetX=t,this.minimapOffsetY=n}},{key:"updateMinimap",value:function(){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())}},{key:"applyNodeDimensions",value:function(){var t=this;this.nodeElements&&this.nodeElements.length&&this.nodeElements.map(function(e){var n=e.nativeElement,r=t.graph.nodes.find(function(t){return t.id===n.id});if(r){var i;try{if(!(i=n.getBBox()).width||!i.height)return}catch(l){return}if(r.dimension.height=t.nodeHeight?r.dimension.height&&r.meta.forceDimensions?r.dimension.height:t.nodeHeight:r.dimension.height&&r.meta.forceDimensions?r.dimension.height:i.height,t.nodeMaxHeight&&(r.dimension.height=Math.max(r.dimension.height,t.nodeMaxHeight)),t.nodeMinHeight&&(r.dimension.height=Math.min(r.dimension.height,t.nodeMinHeight)),t.nodeWidth)r.dimension.width=r.dimension.width&&r.meta.forceDimensions?r.dimension.width:t.nodeWidth;else if(n.getElementsByTagName("text").length){var o;try{var a,s=c(n.getElementsByTagName("text"));try{for(s.s();!(a=s.n()).done;){var u=a.value.getBBox();o?(u.width>o.width&&(o.width=u.width),u.height>o.height&&(o.height=u.height)):o=u}}catch(h){s.e(h)}finally{s.f()}}catch(l){return}r.dimension.width=r.dimension.width&&r.meta.forceDimensions?r.dimension.width:o.width+20}else r.dimension.width=r.dimension.width&&r.meta.forceDimensions?r.dimension.width:i.width;t.nodeMaxWidth&&(r.dimension.width=Math.max(r.dimension.width,t.nodeMaxWidth)),t.nodeMinWidth&&(r.dimension.width=Math.min(r.dimension.width,t.nodeMinWidth))}})}},{key:"redrawLines",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.animate;this.linkElements.map(function(n){var r=t.graph.edges.find(function(t){return t.id===n.nativeElement.id});r&&((0,He.Z)(n.nativeElement).select(".line").attr("d",r.oldLine).transition().ease(vo).duration(e?500:0).attr("d",r.line),(0,He.Z)(t.chartElement.nativeElement).select("#".concat(r.id)).attr("d",r.oldTextPath).transition().ease(vo).duration(e?500:0).attr("d",r.textPath),t.updateMidpointOnEdge(r,r.points))})}},{key:"calcDominantBaseline",value:function(t){var e=t.points[0],r=t.points[t.points.length-1];t.oldTextPath=t.textPath,r.x=this.maxZoomLevel)&&this.enableZoom)if(!0===this.panOnZoom&&t){var i=t.clientX,o=t.clientY,a=this.chart.nativeElement.querySelector("svg"),s=a.querySelector("g.chart"),u=a.createSVGPoint();u.x=i,u.y=o;var c=u.matrixTransform(s.getScreenCTM().inverse());this.pan(c.x,c.y,!0),this.zoom(n),this.pan(-c.x,-c.y,!0)}else this.zoom(n)}else this.pan(-1*t.deltaX,-1*t.deltaY)}},{key:"pan",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n?1:this.zoomLevel;this.transformationMatrix=To(this.transformationMatrix,Ao(t/r,e/r)),this.updateTransform()}},{key:"panTo",value:function(t,e){null==t||isNaN(t)||null==e||isNaN(e)||(this.transformationMatrix=To(this.transformationMatrix,Ao((-this.panOffsetX-t*this.zoomLevel+this.dims.width/2)/this.zoomLevel,(-this.panOffsetY-e*this.zoomLevel+this.dims.height/2)/this.zoomLevel)),this.updateTransform())}},{key:"zoom",value:function(t){this.transformationMatrix=To(this.transformationMatrix,function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return bo(e)&&(e=t),{a:t,c:0,e:0,b:0,d:e,f:0}}(t,t)),this.zoomChange.emit(this.zoomLevel),this.updateTransform()}},{key:"zoomTo",value:function(t){this.transformationMatrix.a=isNaN(t)?this.transformationMatrix.a:Number(t),this.transformationMatrix.d=isNaN(t)?this.transformationMatrix.d:Number(t),this.zoomChange.emit(this.zoomLevel),this.updateTransform(),this.update()}},{key:"onDrag",value:function(t){var e=this;if(this.draggingEnabled){var n=this.draggingNode;this.layout&&"string"!=typeof this.layout&&this.layout.onDrag&&this.layout.onDrag(n,t),n.position.x+=t.movementX/this.zoomLevel,n.position.y+=t.movementY/this.zoomLevel,n.transform="translate(".concat(n.position.x-n.dimension.width/2,", ").concat(n.position.y-n.dimension.height/2,")");var r,i=c(this.graph.edges);try{var o=function(){var t=r.value;if((t.target===n.id||t.source===n.id||t.target.id===n.id||t.source.id===n.id)&&e.layout&&"string"!=typeof e.layout){var i=e.layout.updateEdge(e.graph,t),o=i instanceof yo.y?i:(0,_o.of)(i);e.graphSubscription.add(o.subscribe(function(n){e.graph=n,e.redrawEdge(t)}))}};for(i.s();!(r=i.n()).done;)o()}catch(a){i.e(a)}finally{i.f()}this.redrawLines(!1),this.updateMinimap()}}},{key:"redrawEdge",value:function(t){var e=this.generateLine(t.points);this.calcDominantBaseline(t),t.oldLine=t.line,t.line=e}},{key:"updateTransform",value:function(){var t;this.transform="matrix("+(t=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e10;return{a:Math.round(t.a*e)/e,b:Math.round(t.b*e)/e,c:Math.round(t.c*e)/e,d:Math.round(t.d*e)/e,e:Math.round(t.e*e)/e,f:Math.round(t.f*e)/e}}(this.transformationMatrix,100)).a+","+t.b+","+t.c+","+t.d+","+t.e+","+t.f+")"}},{key:"onClick",value:function(t){this.select.emit(t)}},{key:"onActivate",value:function(t){this.activeEntries.indexOf(t)>-1||(this.activeEntries=[t].concat(n(this.activeEntries)),this.activate.emit({value:t,entries:this.activeEntries}))}},{key:"onDeactivate",value:function(t){var e=this.activeEntries.indexOf(t);this.activeEntries.splice(e,1),this.activeEntries=n(this.activeEntries),this.deactivate.emit({value:t,entries:this.activeEntries})}},{key:"getSeriesDomain",value:function(){var t=this;return this.nodes.map(function(e){return t.groupResultsBy(e)}).reduce(function(t,e){return-1!==t.indexOf(e)?t:t.concat([e])},[]).sort()}},{key:"trackLinkBy",value:function(t,e){return e.id}},{key:"trackNodeBy",value:function(t,e){return e.id}},{key:"setColors",value:function(){this.colors=new no(this.scheme,"ordinal",this.seriesDomain,this.customColors)}},{key:"getLegendOptions",value:function(){return{scaleType:"ordinal",domain:this.seriesDomain,colors:this.colors}}},{key:"onMouseMove",value:function(t){this.isMouseMoveCalled=!0,(this.isPanning||this.isMinimapPanning)&&this.panningEnabled?this.panWithConstraints(this.panningAxis,t):this.isDragging&&this.draggingEnabled&&this.onDrag(t)}},{key:"onMouseDown",value:function(t){this.isMouseMoveCalled=!1}},{key:"graphClick",value:function(t){this.isMouseMoveCalled||this.clickHandler.emit(t)}},{key:"onTouchStart",value:function(t){this._touchLastX=t.changedTouches[0].clientX,this._touchLastY=t.changedTouches[0].clientY,this.isPanning=!0}},{key:"onTouchMove",value:function(t){if(this.isPanning&&this.panningEnabled){var e=t.changedTouches[0].clientX,n=t.changedTouches[0].clientY,r=e-this._touchLastX,i=n-this._touchLastY;this._touchLastX=e,this._touchLastY=n,this.pan(r,i)}}},{key:"onTouchEnd",value:function(t){this.isPanning=!1}},{key:"onMouseUp",value:function(t){this.isDragging=!1,this.isPanning=!1,this.isMinimapPanning=!1,this.layout&&"string"!=typeof this.layout&&this.layout.onDragEnd&&this.layout.onDragEnd(this.draggingNode,t)}},{key:"onNodeMouseDown",value:function(t,e){this.draggingEnabled&&(this.isDragging=!0,this.draggingNode=e,this.layout&&"string"!=typeof this.layout&&this.layout.onDragStart&&this.layout.onDragStart(e,t))}},{key:"onMinimapDragMouseDown",value:function(){this.isMinimapPanning=!0}},{key:"onMinimapPanTo",value:function(t){this.panTo((t.offsetX-(this.dims.width-(this.graphDims.width+this.minimapOffsetX)/this.minimapScaleCoefficient))*this.minimapScaleCoefficient,(t.offsetY+this.minimapOffsetY/this.minimapScaleCoefficient)*this.minimapScaleCoefficient),this.isMinimapPanning=!0}},{key:"center",value:function(){this.panTo(this.graphDims.width/2,this.graphDims.height/2)}},{key:"zoomToFit",value:function(){var t=Math.min(this.dims.height/this.graphDims.height,this.dims.width/this.graphDims.width,1);tthis.maxZoomLevel&&(t=this.maxZoomLevel),t!==this.zoomLevel&&(this.zoomLevel=t,this.updateTransform(),this.zoomChange.emit(this.zoomLevel))}},{key:"panToNodeId",value:function(t){var e=this.graph.nodes.find(function(e){return e.id===t});e&&this.panTo(e.position.x,e.position.y)}},{key:"panWithConstraints",value:function(t,e){var n=e.movementX,r=e.movementY;switch(this.isMinimapPanning&&(n=-this.minimapScaleCoefficient*n*this.zoomLevel,r=-this.minimapScaleCoefficient*r*this.zoomLevel),t){case ja.Horizontal:this.pan(n,0);break;case ja.Vertical:this.pan(0,r);break;default:this.pan(n,r)}}},{key:"updateMidpointOnEdge",value:function(t,e){if(t&&e)if(e.length%2==1)t.midPoint=e[Math.floor(e.length/2)];else{var n=e[e.length/2],r=e[e.length/2-1];t.midPoint={x:(n.x+r.x)/2,y:(n.y+r.y)/2}}}}]),a}(Hi);return e.\u0275fac=function(t){return new(t||e)(m.Y36(m.SBq),m.Y36(m.R0b),m.Y36(m.sBO),m.Y36(Fa))},e.\u0275cmp=m.Xpm({type:e,selectors:[["ngx-graph"]],contentQueries:function(t,e,n){var r;(1&t&&(m.Suo(n,sa,5),m.Suo(n,ua,5),m.Suo(n,ca,5),m.Suo(n,la,5),m.Suo(n,ha,5)),2&t)&&(m.iGM(r=m.CRH())&&(e.linkTemplate=r.first),m.iGM(r=m.CRH())&&(e.nodeTemplate=r.first),m.iGM(r=m.CRH())&&(e.clusterTemplate=r.first),m.iGM(r=m.CRH())&&(e.defsTemplate=r.first),m.iGM(r=m.CRH())&&(e.miniMapNodeTemplate=r.first))},viewQuery:function(t,e){var n;(1&t&&(m.Gf(Ji,7,m.SBq),m.Gf(fa,5),m.Gf(da,5)),2&t)&&(m.iGM(n=m.CRH())&&(e.chart=n.first),m.iGM(n=m.CRH())&&(e.nodeElements=n),m.iGM(n=m.CRH())&&(e.linkElements=n))},hostBindings:function(t,e){1&t&&m.NdJ("mousemove",function(t){return e.onMouseMove(t)},!1,m.evT)("mousedown",function(t){return e.onMouseDown(t)},!1,m.evT)("click",function(t){return e.graphClick(t)},!1,m.evT)("touchmove",function(t){return e.onTouchMove(t)},!1,m.evT)("mouseup",function(t){return e.onMouseUp(t)},!1,m.evT)},inputs:{legend:"legend",nodes:"nodes",clusters:"clusters",links:"links",activeEntries:"activeEntries",draggingEnabled:"draggingEnabled",panningEnabled:"panningEnabled",panningAxis:"panningAxis",enableZoom:"enableZoom",zoomSpeed:"zoomSpeed",minZoomLevel:"minZoomLevel",maxZoomLevel:"maxZoomLevel",autoZoom:"autoZoom",panOnZoom:"panOnZoom",animate:"animate",autoCenter:"autoCenter",enableTrackpadSupport:"enableTrackpadSupport",showMiniMap:"showMiniMap",miniMapMaxWidth:"miniMapMaxWidth",miniMapPosition:"miniMapPosition",groupResultsBy:"groupResultsBy",zoomLevel:"zoomLevel",panOffsetX:"panOffsetX",panOffsetY:"panOffsetY",layout:"layout",curve:"curve",nodeHeight:"nodeHeight",nodeMaxHeight:"nodeMaxHeight",nodeMinHeight:"nodeMinHeight",nodeWidth:"nodeWidth",nodeMinWidth:"nodeMinWidth",nodeMaxWidth:"nodeMaxWidth",update$:"update$",center$:"center$",zoomToFit$:"zoomToFit$",panToNode$:"panToNode$",layoutSettings:"layoutSettings",miniMapMaxHeight:"miniMapMaxHeight"},outputs:{activate:"activate",deactivate:"deactivate",zoomChange:"zoomChange",clickHandler:"clickHandler"},features:[m.qOj,m.TTD],ngContentSelectors:Ma,decls:5,vars:11,consts:[["mouseWheel","",3,"view","showLegend","legendOptions","legendLabelClick","legendLabelActivate","legendLabelDeactivate","mouseWheelUp","mouseWheelDown"],["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(t,e){1&t&&(m.F$t(),m.TgZ(0,"ngx-charts-chart",0),m.NdJ("legendLabelClick",function(t){return e.onClick(t)})("legendLabelActivate",function(t){return e.onActivate(t)})("legendLabelDeactivate",function(t){return e.onDeactivate(t)})("mouseWheelUp",function(t){return e.onZoom(t,"in")})("mouseWheelDown",function(t){return e.onZoom(t,"out")}),m.YNc(1,Sa,12,12,"g",1),m.O4$(),m.TgZ(2,"clipPath"),m._UZ(3,"rect"),m.qZA(),m.YNc(4,Ca,6,15,"g",2),m.qZA()),2&t&&(m.Q6J("view",m.WLB(8,Za,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions),m.xp6(1),m.Q6J("ngIf",e.initialized&&e.graph),m.xp6(1),m.uIk("id",e.minimapClipPathId),m.xp6(1),m.uIk("width",e.graphDims.width/e.minimapScaleCoefficient)("height",e.graphDims.height/e.minimapScaleCoefficient),m.xp6(1),m.Q6J("ngIf",e.showMiniMap))},directives:function(){return[Ji,Ga,d.O5,d.sg,d.tP]},styles:[".minimap .minimap-background{fill:rgba(0,0,0,.1)}.minimap .minimap-drag{cursor:pointer;fill:rgba(0,0,0,.2);stroke:#fff;stroke-dasharray:2px;stroke-dashoffset:2px;stroke-width:1px}.minimap .minimap-drag.panning{fill:rgba(0,0,0,.3)}.minimap .minimap-nodes{opacity:.5;pointer-events:none}.graph{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;user-select:none}.graph .edge{fill:none;stroke:#666}.graph .edge .edge-label{fill:#251e1e;font-size:12px;stroke:none}.graph .panning-rect{cursor:move;fill:transparent}.graph .node-group.old-node{transition:transform .5s ease-in-out}.graph .node-group .node:focus{outline:none}.graph .cluster rect{opacity:.2}"],encapsulation:2,changeDetection:0}),Be([function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:Ba(n.value,500,void 0)}),this[e]}}},ze("design:type",Function),ze("design:paramtypes",[]),ze("design:returntype",void 0)],e.prototype,"updateMinimap",null),e}(),Ga=function(){var t=function(){function t(){f(this,t),this.mouseWheelUp=new m.vpe,this.mouseWheelDown=new m.vpe}return p(t,[{key:"onMouseWheelChrome",value:function(t){this.mouseWheelFunc(t)}},{key:"onMouseWheelFirefox",value:function(t){this.mouseWheelFunc(t)}},{key:"onWheel",value:function(t){this.mouseWheelFunc(t)}},{key:"onMouseWheelIE",value:function(t){this.mouseWheelFunc(t)}},{key:"mouseWheelFunc",value:function(t){window.event&&(t=window.event);var e=Math.max(-1,Math.min(1,t.wheelDelta||-t.detail||t.deltaY||t.deltaX)),n=t.wheelDelta?e<0:e>0;(t.wheelDelta?e>0:e<0)?this.mouseWheelUp.emit(t):n&&this.mouseWheelDown.emit(t),t.returnValue=!1,t.preventDefault&&t.preventDefault()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=m.lG2({type:t,selectors:[["","mouseWheel",""]],hostBindings:function(t,e){1&t&&m.NdJ("mousewheel",function(t){return e.onMouseWheelChrome(t)})("DOMMouseScroll",function(t){return e.onMouseWheelFirefox(t)})("wheel",function(t){return e.onWheel(t)})("onmousewheel",function(t){return e.onMouseWheelIE(t)})},outputs:{mouseWheelUp:"mouseWheelUp",mouseWheelDown:"mouseWheelDown"}}),t}(),Ja=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({providers:[Fa],imports:[[to]]}),t}(),Va=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[po],Ja]}),t}();function Ha(){}function Qa(t){return null==t?Ha:function(){return this.querySelector(t)}}function Wa(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Xa(){return[]}function $a(t){return null==t?Xa:function(){return this.querySelectorAll(t)}}function Ka(t){return function(){return this.matches(t)}}function ts(t){return function(e){return e.matches(t)}}var es=Array.prototype.find;function ns(){return this.firstElementChild}var rs=Array.prototype.filter;function is(){return this.children}function os(t){return new Array(t.length)}function as(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function ss(t){return function(){return t}}function us(t,e,n,r,i,o){for(var a,s=0,u=e.length,c=o.length;se?1:t>=e?0:NaN}as.prototype={constructor:as,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var fs="http://www.w3.org/1999/xhtml",ds={svg:"http://www.w3.org/2000/svg",xhtml:fs,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ps(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),ds.hasOwnProperty(e)?{space:ds[e],local:t}:t}function gs(t){return function(){this.removeAttribute(t)}}function vs(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ms(t,e){return function(){this.setAttribute(t,e)}}function ys(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function _s(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function ws(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function bs(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function xs(t){return function(){this.style.removeProperty(t)}}function Es(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Ts(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function As(t,e){return t.style.getPropertyValue(e)||bs(t).getComputedStyle(t,null).getPropertyValue(e)}function Ss(t){return function(){delete this[t]}}function ks(t,e){return function(){this[t]=e}}function Is(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Ds(t){return t.trim().split(/^|\s+/)}function Ns(t){return t.classList||new Cs(t)}function Cs(t){this._node=t,this._names=Ds(t.getAttribute("class")||"")}function Zs(t,e){for(var n=Ns(t),r=-1,i=e.length;++r=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}function Ks(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var iu=[null];function ou(t,e){this._groups=t,this._parents=e}function au(){return new ou([[document.documentElement]],iu)}ou.prototype=au.prototype=e({constructor:ou,select:function(t){"function"!=typeof t&&(t=Qa(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i=b&&(b=w+1);!(_=v[b])&&++b=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=hs);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==e?xs:"function"==typeof e?Ts:Es)(t,e,null==n?"":n)):As(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Ss:"function"==typeof e?Is:ks)(t,e)):this.node()[t]},classed:function(t,e){var n=Ds(t+"");if(arguments.length<2){for(var r=Ns(this.node()),i=-1,o=n.length;++i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?ku(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?ku(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=vu.exec(t))?new Nu(e[1],e[2],e[3],1):(e=mu.exec(t))?new Nu(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=yu.exec(t))?ku(e[1],e[2],e[3],e[4]):(e=_u.exec(t))?ku(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=wu.exec(t))?Ou(e[1],e[2]/100,e[3]/100,1):(e=bu.exec(t))?Ou(e[1],e[2]/100,e[3]/100,e[4]):xu.hasOwnProperty(t)?Su(xu[t]):"transparent"===t?new Nu(NaN,NaN,NaN,0):null}function Su(t){return new Nu(t>>16&255,t>>8&255,255&t,1)}function ku(t,e,n,r){return r<=0&&(t=e=n=NaN),new Nu(t,e,n,r)}function Iu(t){return t instanceof lu||(t=Au(t)),t?new Nu((t=t.rgb()).r,t.g,t.b,t.opacity):new Nu}function Du(t,e,n,r){return 1===arguments.length?Iu(t):new Nu(t,e,n,null==r?1:r)}function Nu(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Cu(){return"#"+Mu(this.r)+Mu(this.g)+Mu(this.b)}function Zu(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function Mu(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Ou(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Ru(t,e,n,r)}function Lu(t){if(t instanceof Ru)return new Ru(t.h,t.s,t.l,t.opacity);if(t instanceof lu||(t=Au(t)),!t)return new Ru;if(t instanceof Ru)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n0&&u<1?0:a,new Ru(a,s,u,t.opacity)}function Ru(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Uu(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Pu(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}uu(lu,Au,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Eu,formatHex:Eu,formatHsl:function(){return Lu(this).formatHsl()},formatRgb:Tu,toString:Tu}),uu(Nu,Du,cu(lu,{brighter:function(t){return t=null==t?hu:Math.pow(hu,t),new Nu(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Nu(this.r*t,this.g*t,this.b*t,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:Cu,formatHex:Cu,formatRgb:Zu,toString:Zu})),uu(Ru,function(t,e,n,r){return 1===arguments.length?Lu(t):new Ru(t,e,n,null==r?1:r)},cu(lu,{brighter:function(t){return t=null==t?hu:Math.pow(hu,t),new Ru(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Ru(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Nu(Uu(t>=240?t-240:t+120,i,r),Uu(t,i,r),Uu(t<120?t+240:t-120,i,r),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 t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var qu=function(t){return function(){return t}};function Fu(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):qu(isNaN(t)?e:t)}var ju=function t(e){var n=function(t){return 1==(t=+t)?Fu:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):qu(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=Du(t)).r,(e=Du(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=Fu(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function Yu(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1];return Pu((n-r/e)*e,r>0?t[r-1]:2*i-o,i,o,ro&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:Bu(n,r)})),o=Gu.lastIndex;return o0)throw new Error("too late; already scheduled");return n}function $u(t,e){var n=Ku(t,e);if(n.state>3)throw new Error("too late; already running");return n}function Ku(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var tc,ec=180/Math.PI,nc={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function rc(t,e,n,r,i,o){var a,s,u;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),t*r180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Bu(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,s,u),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Bu(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,s,u),function(t,e,n,r,o,a){if(t!==n||e!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:Bu(t,n)},{i:s-2,x:Bu(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,u),o=a=null,function(t){for(var e,n=-1,r=u.length;++n=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?Xu:$u;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var kc=su.prototype.constructor;function Ic(t){return function(){this.style.removeProperty(t)}}function Dc(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Nc(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&Dc(t,o,n)),r}return o._value=e,o}function Cc(t){return function(e){this.textContent=t.call(this,e)}}function Zc(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Cc(r)),e}return r._value=t,r}var Mc=0;function Oc(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Lc(){return++Mc}var Rc=su.prototype;Oc.prototype=(function(t){return su().transition(t)}).prototype=e({constructor:Oc,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Qa(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}}(this,t)})},su.prototype.transition=function(t){var e,n;t instanceof Oc?(e=t._id,t=t._name):(e=Lc(),(n=Uc).time=(0,Qo.zO)(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}zc.prototype,zc.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};var Gc,Jc=Array.prototype.map;function Vc(t,e,n,r,i){for(var o,a=t.children,s=-1,u=a.length,c=t.value&&(r-e)/t.value;++s=0;)e+=n[r].value;else e=1;t.value=e}function Wc(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=$c)):void 0===e&&(e=Xc);for(var n,r,i,o,a,s=new el(t),u=[s];n=u.pop();)if((i=e(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)u.push(r=i[o]=new el(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(tl)}function Xc(t){return t.children}function $c(t){return Array.isArray(t)?t[1]:null}function Kc(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function tl(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function el(t){this.data=t,this.depth=this.height=0,this.parent=null}void 0===(Gc={thousands:",",grouping:[3],currency:["$",""]}).grouping||void 0===Gc.thousands||Jc.call(Gc.grouping,Number),void 0===Gc.numerals||Jc.call(Gc.numerals,String),function t(e){function n(t,n,r,i,o){!function(t,e,n,r,i,o){for(var a,s,u,c,l,h,f,d,p,g,v,m=[],y=e.children,_=0,w=0,b=y.length,x=e.value;_f&&(f=s),v=l*l*g,(d=Math.max(f/v,v/h))>p){l-=s;break}p=d}m.push(a={value:l,dice:u1?e:1)},n}((1+Math.sqrt(5))/2),el.prototype=Wc.prototype=e({constructor:el,count:function(){return this.eachAfter(Qc)},each:function(t,e){var n,r=-1,i=c(this);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.call(e,o,++r,this)}}catch(a){i.e(a)}finally{i.f()}return this},eachAfter:function(t,e){for(var n,r,i,o=this,a=[o],s=[],u=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r=0;--r)o.push(n[r]);return this},find:function(t,e){var n,r=-1,i=c(this);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(t.call(e,o,++r,this))return o}}catch(a){i.e(a)}finally{i.f()}},sum:function(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)r.push(e=e.parent);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e},copy:function(){return Wc(this).eachBefore(Kc)}},Symbol.iterator,regeneratorRuntime.mark(function t(){var e,n,r,i,o,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:a=[o=this];case 1:e=a.reverse(),a=[];case 2:if(!(o=e.pop())){t.next=9;break}return t.next=5,o;case 5:if(!(n=o.children)){t.next=7;break}for(r=0,i=n.length;r0?t.hostView.rootNodes[0]:t.location.nativeElement}},{key:"getRootViewContainerNode",value:function(t){return this.getComponentRootNode(t)}},{key:"projectComponentBindings",value:function(t,e){if(e){if(void 0!==e.inputs){var n,r=c(Object.getOwnPropertyNames(e.inputs));try{for(r.s();!(n=r.n()).done;){var i=n.value;t.instance[i]=e.inputs[i]}}catch(u){r.e(u)}finally{r.f()}}if(void 0!==e.outputs){var o,a=c(Object.getOwnPropertyNames(e.outputs));try{for(a.s();!(o=a.n()).done;){var s=o.value;t.instance[s]=e.outputs[s]}}catch(u){a.e(u)}finally{a.f()}}}return t}},{key:"appendComponent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;n||(n=this.getRootViewContainer());var r=this.getComponentRootNode(n),i=new Je.F0(r,this.componentFactoryResolver,this.applicationRef,this.injector),o=new Je.C5(t),a=i.attach(o);return this.projectComponentBindings(a,e),a}}],[{key:"setGlobalRootViewContainer",value:function(e){t.globalRootViewContainer=e}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.LFG(m.z2F),m.LFG(m._Vd),m.LFG(m.zs3))},t.\u0275prov=m.Yz7({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t}();function ul(t,e,n){var r,i,o;n=n||{};var a=null,s=0;function u(){s=!1===n.leading?0:+new Date,a=null,o=t.apply(r,i)}return function(){var c=+new Date;s||!1!==n.leading||(s=c);var l=e-(c-s);return r=this,i=arguments,l<=0?(clearTimeout(a),a=null,s=c,o=t.apply(r,i)):a||!1===n.trailing||(a=setTimeout(u,l)),o}}var cl=function(t){return t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right",t}({});function ll(t,e,n){return"top"===n?t.top-7:"bottom"===n?t.top+t.height-e.height+7:"center"===n?t.top+t.height/2-e.height/2:void 0}function hl(t,e,n){return"left"===n?t.left-7:"right"===n?t.left+t.width-e.width+7:"center"===n?t.left+t.width/2-e.width/2:void 0}var fl,dl,pl,gl,vl=function(){function t(){f(this,t)}return p(t,null,[{key:"calculateVerticalAlignment",value:function(t,e,n){var r=ll(t,e,n);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r}},{key:"calculateVerticalCaret",value:function(t,e,n,r){var i;"top"===r&&(i=t.height/2-n.height/2+7),"bottom"===r&&(i=e.height-t.height/2-n.height/2-7),"center"===r&&(i=e.height/2-n.height/2);var o=ll(t,e,r);return o+e.height>window.innerHeight&&(i+=o+e.height-window.innerHeight),i}},{key:"calculateHorizontalAlignment",value:function(t,e,n){var r=hl(t,e,n);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r}},{key:"calculateHorizontalCaret",value:function(t,e,n,r){var i;"left"===r&&(i=t.width/2-n.width/2+7),"right"===r&&(i=e.width-t.width/2-n.width/2-7),"center"===r&&(i=e.width/2-n.width/2);var o=hl(t,e,r);return o+e.width>window.innerWidth&&(i+=o+e.width-window.innerWidth),i}},{key:"shouldFlip",value:function(t,e,n,r){var i=!1;return"right"===n&&t.left+t.width+e.width+r>window.innerWidth&&(i=!0),"left"===n&&t.left-e.width-r<0&&(i=!0),"top"===n&&t.top-e.height-r<0&&(i=!0),"bottom"===n&&t.top+t.height+e.height+r>window.innerHeight&&(i=!0),i}},{key:"positionCaret",value:function(e,n,r,i,o){var a=0,s=0;return e===cl.right?(s=-7,a=t.calculateVerticalCaret(r,n,i,o)):e===cl.left?(s=n.width,a=t.calculateVerticalCaret(r,n,i,o)):e===cl.top?(a=n.height,s=t.calculateHorizontalCaret(r,n,i,o)):e===cl.bottom&&(a=-7,s=t.calculateHorizontalCaret(r,n,i,o)),{top:a,left:s}}},{key:"positionContent",value:function(e,n,r,i,o){var a=0,s=0;return e===cl.right?(s=r.left+r.width+i,a=t.calculateVerticalAlignment(r,n,o)):e===cl.left?(s=r.left-n.width-i,a=t.calculateVerticalAlignment(r,n,o)):e===cl.top?(a=r.top-n.height-i,s=t.calculateHorizontalAlignment(r,n,o)):e===cl.bottom&&(a=r.top+r.height+i,s=t.calculateHorizontalAlignment(r,n,o)),{top:a,left:s}}},{key:"determinePlacement",value:function(e,n,r,i){if(t.shouldFlip(r,n,e,i)){if(e===cl.right)return cl.left;if(e===cl.left)return cl.right;if(e===cl.top)return cl.bottom;if(e===cl.bottom)return cl.top}return e}}]),t}(),ml=function(){var t=function(){function t(e,n,r){f(this,t),this.element=e,this.renderer=n,this.platformId=r}return p(t,[{key:"cssClasses",get:function(){var t="ngx-charts-tooltip-content";return t+=" position-".concat(this.placement),t+=" type-".concat(this.type),t+=" ".concat(this.cssClass)}},{key:"ngAfterViewInit",value:function(){setTimeout(this.position.bind(this))}},{key:"position",value:function(){var t=this;if((0,d.NF)(this.platformId)){var e=this.element.nativeElement,n=this.host.nativeElement.getBoundingClientRect();if(n.height||n.width){var r=e.getBoundingClientRect();this.checkFlip(n,r),this.positionContent(e,n,r),this.showCaret&&this.positionCaret(n,r),setTimeout(function(){return t.renderer.addClass(e,"animate")},1)}}}},{key:"positionContent",value:function(t,e,n){var r=vl.positionContent(this.placement,n,e,this.spacing,this.alignment),i=r.top,o=r.left;this.renderer.setStyle(t,"top","".concat(i,"px")),this.renderer.setStyle(t,"left","".concat(o,"px"))}},{key:"positionCaret",value:function(t,e){var n=this.caretElm.nativeElement,r=n.getBoundingClientRect(),i=vl.positionCaret(this.placement,e,t,r,this.alignment),o=i.top,a=i.left;this.renderer.setStyle(n,"top","".concat(o,"px")),this.renderer.setStyle(n,"left","".concat(a,"px"))}},{key:"checkFlip",value:function(t,e){this.placement=vl.determinePlacement(this.placement,e,t,this.spacing)}},{key:"onWindowResize",value:function(){this.position()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(m.SBq),m.Y36(m.Qsj),m.Y36(m.Lbi))},t.\u0275cmp=m.Xpm({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(t,e){var n;(1&t&&m.Gf(nl,5),2&t)&&(m.iGM(n=m.CRH())&&(e.caretElm=n.first))},hostVars:2,hostBindings:function(t,e){1&t&&m.NdJ("resize",function(){return e.onWindowResize()},!1,m.Jf7),2&t&&m.Tol(e.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",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(t,e){1&t&&(m.TgZ(0,"div"),m._UZ(1,"span",0,1),m.TgZ(3,"div",2),m.YNc(4,ol,2,4,"span",3),m.YNc(5,al,1,1,"span",4),m.qZA(),m.qZA()),2&t&&(m.xp6(1),m.Gre("tooltip-caret position-",e.placement,""),m.Q6J("hidden",!e.showCaret),m.xp6(3),m.Q6J("ngIf",!e.title),m.xp6(1),m.Q6J("ngIf",e.title))},directives:[d.O5,d.tP],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.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-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.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{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);o>3&&a&&Object.defineProperty(e,n,a)}([function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:ul(n.value,100,void 0)}),this[e]}}}],t.prototype,"onWindowResize",null),t}(),yl=function(){var t=function(t){r(n,t);var e=o(n);function n(t){var r;return f(this,n),(r=e.call(this,t)).type=ml,r}return n}(function(){function t(e){f(this,t),this.injectionService=e,this.defaults={},this.components=new Map}return p(t,[{key:"getByType",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.type;return this.components.get(t)}},{key:"create",value:function(t){return this.createByType(this.type,t)}},{key:"createByType",value:function(t,e){e=this.assignDefaults(e);var n=this.injectComponent(t,e);return this.register(t,n),n}},{key:"destroy",value:function(t){var e=this.components.get(t.componentType);if(e&&e.length){var n=e.indexOf(t);n>-1&&(e[n].destroy(),e.splice(n,1))}}},{key:"destroyAll",value:function(){this.destroyByType(this.type)}},{key:"destroyByType",value:function(t){var e=this.components.get(t);if(e&&e.length)for(var n=e.length-1;n>=0;)this.destroy(e[n--])}},{key:"injectComponent",value:function(t,e){return this.injectionService.appendComponent(t,e)}},{key:"assignDefaults",value:function(t){var e=Object.assign({},this.defaults.inputs),n=Object.assign({},this.defaults.outputs);return t.inputs||t.outputs||(t={inputs:t}),e&&(t.inputs=Object.assign(Object.assign({},e),t.inputs)),n&&(t.outputs=Object.assign(Object.assign({},n),t.outputs)),t}},{key:"register",value:function(t,e){this.components.has(t)||this.components.set(t,[]),this.components.get(t).push(e)}}]),t}());return t.\u0275fac=function(e){return new(e||t)(m.LFG(sl))},t.\u0275prov=m.Yz7({token:t,factory:t.\u0275fac}),t}(),_l=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[d.ez]]}),t}(),wl=((pl={})[pl.popover="popover"]="popover",pl[pl.tooltip="tooltip"]="tooltip",pl),bl=((dl={})[dl.left="left"]="left",dl[dl.center="center"]="center",dl[dl.right="right"]="right",dl),xl=((fl={})[fl.all="all"]="all",fl[fl.focus="focus"]="focus",fl[fl.mouseover="mouseover"]="mouseover",fl),El=((gl=function(){function t(e,n,r){f(this,t),this.tooltipService=e,this.viewContainerRef=n,this.renderer=r,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=cl.top,this.tooltipAlignment=bl.center,this.tooltipType=wl.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=xl.all,this.tooltipImmediateExit=!1,this.show=new m.vpe,this.hide=new m.vpe}return p(t,[{key:"listensForFocus",get:function(){return this.tooltipShowEvent===xl.all||this.tooltipShowEvent===xl.focus}},{key:"listensForHover",get:function(){return this.tooltipShowEvent===xl.all||this.tooltipShowEvent===xl.mouseover}},{key:"ngOnDestroy",value:function(){this.hideTooltip(!0)}},{key:"onFocus",value:function(){this.listensForFocus&&this.showTooltip()}},{key:"onBlur",value:function(){this.listensForFocus&&this.hideTooltip(!0)}},{key:"onMouseEnter",value:function(){this.listensForHover&&this.showTooltip()}},{key:"onMouseLeave",value:function(t){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(t))return;this.hideTooltip(this.tooltipImmediateExit)}}},{key:"onMouseClick",value:function(){this.listensForHover&&this.hideTooltip(!0)}},{key:"showTooltip",value:function(t){var e=this;if(!this.component&&!this.tooltipDisabled){var n=t?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?300:0);clearTimeout(this.timeout),this.timeout=setTimeout(function(){e.tooltipService.destroyAll();var t=e.createBoundOptions();e.component=e.tooltipService.create(t),setTimeout(function(){e.component&&e.addHideListeners(e.component.instance.element.nativeElement)},10),e.show.emit(!0)},n)}}},{key:"addHideListeners",value:function(t){var e=this;this.mouseEnterContentEvent=this.renderer.listen(t,"mouseenter",function(){clearTimeout(e.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(t,"mouseleave",function(){e.hideTooltip(e.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",function(n){t.contains(n.target)||e.hideTooltip()}))}},{key:"hideTooltip",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.component){var n=function(){t.mouseLeaveContentEvent&&t.mouseLeaveContentEvent(),t.mouseEnterContentEvent&&t.mouseEnterContentEvent(),t.documentClickEvent&&t.documentClickEvent(),t.hide.emit(!0),t.tooltipService.destroy(t.component),t.component=void 0};clearTimeout(this.timeout),e?n():this.timeout=setTimeout(n,this.tooltipHideTimeout)}}},{key:"createBoundOptions",value:function(){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}}}]),t}()).\u0275fac=function(t){return new(t||gl)(m.Y36(yl),m.Y36(m.s_b),m.Y36(m.Qsj))},gl.\u0275dir=m.lG2({type:gl,selectors:[["","ngx-tooltip",""]],hostBindings:function(t,e){1&t&&m.NdJ("focusin",function(){return e.onFocus()})("blur",function(){return e.onBlur()})("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(t){return e.onMouseLeave(t.target)})("click",function(){return e.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",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),gl),Tl=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({providers:[sl,yl],imports:[[d.ez]]}),t}();"undefined"!=typeof window?window:"undefined"!=typeof global&&global;var Al=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[d.ez,_l,Tl],d.ez,_l,Tl]}),t}(),Sl=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al]]}),t}(),kl=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al]]}),t}(),Il=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al]]}),t}(),Dl=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al]]}),t}(),Nl=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al]]}),t}();Math;var Cl=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al]]}),t}(),Zl=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al,Cl,Nl]]}),t}(),Ml=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al]]}),t}(),Ol=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al]]}),t}(),Ll=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[Al,Cl,kl]]}),t}(),Rl=function(){var t=function t(){f(this,t),"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[Al,Sl,kl,Il,Dl,Nl,Zl,Ml,Cl,Ol,Ll]}),t}();function Ul(t,e){1&t&&(m.TgZ(0,"div"),m._UZ(1,"mat-spinner",3),m.qZA())}function Pl(t,e){if(1&t&&(m.TgZ(0,"span"),m._uU(1),m.ALo(2,"translate"),m.TgZ(3,"strong"),m._uU(4),m.qZA(),m.qZA()),2&t){var n=m.oxw(3);m.xp6(1),m.hij(" ",m.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_3")," "),m.xp6(3),m.Oqu(n.service)}}function ql(t,e){1&t&&(m.O4$(),m.TgZ(0,"marker",10),m._UZ(1,"path",11),m.qZA())}function Fl(t,e){if(1&t&&(m.O4$(),m.TgZ(0,"g",12),m._UZ(1,"rect"),m.TgZ(2,"text",13),m._uU(3),m.qZA(),m.qZA()),2&t){var n=e.$implicit;m.Q6J("tooltipPlacement","top")("tooltipType","tooltip")("tooltipTitle",n.tooltip),m.xp6(1),m.uIk("width",n.dimension.width)("height",n.dimension.height)("fill",n.color),m.xp6(1),m.uIk("x",10)("y",n.dimension.height/2),m.xp6(1),m.Oqu(n.label)}}function jl(t,e){if(1&t&&(m.O4$(),m.TgZ(0,"g",14),m._UZ(1,"path",15),m.TgZ(2,"text",16),m.TgZ(3,"textPath",17),m._uU(4),m.qZA(),m.qZA(),m.qZA()),2&t){var n=e.$implicit;m.xp6(3),m.uIk("href","#"+n.id),m.xp6(1),m.hij(" ",n.label," ")}}var Yl=function(t,e){return[t,e]};function Bl(t,e){if(1&t&&(m.TgZ(0,"div"),m._uU(1),m.ALo(2,"translate"),m.TgZ(3,"strong"),m._uU(4),m.qZA(),m._uU(5),m.ALo(6,"translate"),m.TgZ(7,"strong"),m._uU(8),m.qZA(),m.YNc(9,Pl,5,4,"span",4),m.TgZ(10,"div",5),m.TgZ(11,"ngx-graph",6),m.YNc(12,ql,2,0,"ng-template",null,7,m.W1O),m.YNc(14,Fl,4,9,"ng-template",null,8,m.W1O),m.YNc(16,jl,5,2,"ng-template",null,9,m.W1O),m.qZA(),m.qZA(),m.qZA()),2&t){var n=m.oxw(2);m.xp6(1),m.hij(" ",m.lcZ(2,12,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_1")," "),m.xp6(3),m.AsE("",n.user.firstName," ",n.user.lastName,""),m.xp6(1),m.hij(" ",m.lcZ(6,14,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_2")," "),m.xp6(3),m.Oqu(n.destination),m.xp6(1),m.Q6J("ngIf","noService"!==n.service),m.xp6(2),m.Q6J("links",n.hierarchialGraph.links)("nodes",n.hierarchialGraph.nodes)("curve",n.curve)("draggingEnabled",!1)("zoomToFit$",n.zoomToFit$)("view",m.WLB(16,Yl,n.innerWidth,n.innerHeight))}}function zl(t,e){if(1&t&&(m.TgZ(0,"span"),m._uU(1),m.ALo(2,"translate"),m.TgZ(3,"strong"),m._uU(4),m.qZA(),m.qZA()),2&t){var n=m.oxw(3);m.xp6(1),m.hij(" ",m.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_3")," "),m.xp6(3),m.Oqu(n.service)}}function Gl(t,e){if(1&t&&(m._uU(0),m.ALo(1,"translate"),m.TgZ(2,"strong"),m._uU(3),m.qZA(),m._uU(4),m.ALo(5,"translate"),m.TgZ(6,"strong"),m._uU(7),m.qZA(),m.YNc(8,zl,5,4,"span",4),m._uU(9),m.ALo(10,"translate")),2&t){var n=m.oxw(2);m.hij(" ",m.lcZ(1,7,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_1")," "),m.xp6(3),m.AsE("",n.user.firstName," ",n.user.lastName,""),m.xp6(1),m.hij(" ",m.lcZ(5,9,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_2")," "),m.xp6(3),m.Oqu(n.destination),m.xp6(1),m.Q6J("ngIf","noService"!==n.service),m.xp6(1),m.hij(" ",m.lcZ(10,11,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_4")," ")}}function Jl(t,e){if(1&t&&(m.YNc(0,Bl,18,19,"div",1),m.YNc(1,Gl,11,13,"ng-template",null,2,m.W1O)),2&t){var n=m.MAs(2),r=m.oxw();m.Q6J("ngIf",r.isConnected)("ngIfElse",n)}}var Vl=function(){var t=function(){function t(e,n,r,i,o,a,s,u,c){f(this,t),this.route=e,this.facilityManager=n,this.userService=r,this.membersService=i,this.serviceService=o,this.resourceManager=a,this.groupService=s,this.voService=u,this.translate=c,this.idCounter=0,this.isConnected=!1,this.loading=!0,this.hierarchialGraph={nodes:[],links:[]},this.curve=je,this.zoomToFit$=new Ye.xQ}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.innerWidth=window.innerWidth<600?window.innerWidth:window.innerWidth-420,this.innerHeight=window.innerHeight,this.getLocalizedNames(),this.route.queryParams.subscribe(function(e){console.log(e),t.destination=e.destination,t.service=e.service,t.userService.getUserById(e.user).subscribe(function(e){t.user=e,t.facilityManager.getFacilitiesByDestination(t.destination).subscribe(function(e){t.facilities=e,t.membersService.getMembersByUser(t.user.id).subscribe(function(e){if(t.membership=e,0===t.membership.length||0===t.facilities.length)return t.loading=!1,void(t.isConnected=!1);t.showGraph()})})})})}},{key:"showGraph",value:function(){var t=this,e=""+this.id();this.hierarchialGraph.nodes=[].concat(n(this.hierarchialGraph.nodes),[{id:e,label:this.user.firstName+" "+this.user.lastName,tooltip:this.localUser,color:"#FFFFCC",tip:"user: "+this.user.id}]);var r=""+this.id(),i="destination no id";this.hierarchialGraph.nodes="noService"===this.service?[].concat(n(this.hierarchialGraph.nodes),[{id:r,label:this.destination,tooltip:this.localDestination+": "+this.destination,color:"#E0E0E0",tip:i}]):[].concat(n(this.hierarchialGraph.nodes),[{id:r,label:this.service+": "+this.destination,tooltip:this.localService+": "+this.service+", "+this.localDestination+": "+this.destination,color:"#E0E0E0",tip:i}]);var o,a=c(this.facilities);try{var s=function(){var e=o.value;t.serviceService.getAllRichDestinationsForFacility(e.id).subscribe(function(n){t.connectToService(e,n),t.delay(2e3).then(function(){t.zoomToFit$.next(!0),t.loading=!1})})};for(a.s();!(o=a.n()).done;)s()}catch(u){a.e(u)}finally{a.f()}}},{key:"connectToService",value:function(t,e){var n=this;this.isConnectedToService(e)&&this.facilityManager.getAssignedResourcesForFacility(t.id).subscribe(function(e){for(var r=0;r/g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,function(t){var e="number";return/^"/.test(t)?e=/:$/.test(t)?"key":"string":/true|false/.test(t)?e="boolean":/null/.test(t)&&(e="null"),''+t+""})}},{key:"onClose",value:function(){this.dialogRef.close()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(I.so),m.Y36(I.WI),m.Y36(_t.TU))},t.\u0275cmp=m.Xpm({type:t,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(t,e){var n;(1&t&&(m.TgZ(0,"div",0),m.TgZ(1,"h1",1),m._uU(2),m.ALo(3,"translate"),m.ALo(4,"parseEventName"),m.qZA(),m.TgZ(5,"div",2),m.TgZ(6,"div"),m._uU(7),m.ALo(8,"translate"),m.ALo(9,"translate"),m.qZA(),m.TgZ(10,"mat-tab-group",3),m.NdJ("selectedTabChange",function(t){return e.tabChanged(t)}),m.TgZ(11,"mat-tab"),m.YNc(12,Zd,2,3,"ng-template",4),m.YNc(13,Md,1,1,"ng-template",5),m.qZA(),m.TgZ(14,"mat-tab"),m.YNc(15,Od,2,3,"ng-template",4),m.YNc(16,Ld,2,1,"ng-template",5),m.qZA(),m.qZA(),m.qZA(),m.TgZ(17,"div",6),m.TgZ(18,"button",7),m.NdJ("click",function(){return e.onClose()}),m._uU(19),m.ALo(20,"translate"),m.qZA(),m.TgZ(21,"button",8),m.NdJ("click",function(){return 0===e.tabIndex?e.copyObjects():e.copyMessage()}),m._uU(22),m.ALo(23,"translate"),m.TgZ(24,"mat-icon"),m._uU(25,"content_copy"),m.qZA(),m.qZA(),m.qZA(),m.qZA()),2&t)&&(m.xp6(2),m.Oqu(m.lcZ(3,7,null!==(n=m.lcZ(4,9,e.title))&&void 0!==n?n:"DIALOGS.AUDIT_MESSAGE_DETAIL.TITLE")),m.xp6(5),m.HOy("",m.lcZ(8,11,"DIALOGS.AUDIT_MESSAGE_DETAIL.ACTOR"),": ",e.actor,", ",m.lcZ(9,13,"DIALOGS.AUDIT_MESSAGE_DETAIL.CREATED_AT"),": ",e.createdAt,""),m.xp6(12),m.hij(" ",m.lcZ(20,15,"DIALOGS.AUDIT_MESSAGE_DETAIL.CLOSE")," "),m.xp6(3),m.hij(" ",m.lcZ(23,17,"DIALOGS.AUDIT_MESSAGE_DETAIL.COPY")," "))},directives:[I.uh,I.xY,nd.SP,nd.uX,nd.uD,nd.Vc,I.H8,Z.lW,w.Hw],pipes:[x.X$,Cd],styles:[".key{color:brown}.string{color:green}.number{color:#ff8c00}.boolean{color:blue}.null{color:#f0f}"],encapsulation:2}),t}(),Ud=l(73005),Pd=l(31906),qd=l(58506);function Fd(t,e){1&t&&(m.TgZ(0,"div",16),m._UZ(1,"mat-spinner",17),m.qZA())}function jd(t,e){1&t&&(m.TgZ(0,"th",18),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&t&&(m.xp6(1),m.Oqu(m.lcZ(2,1,"AUDIT_MESSAGES_LIST.ID")))}function Yd(t,e){if(1&t&&(m.TgZ(0,"td",19),m._uU(1),m.qZA()),2&t){var n=e.$implicit;m.xp6(1),m.Oqu(n.id)}}function Bd(t,e){1&t&&(m.TgZ(0,"th",18),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&t&&(m.xp6(1),m.Oqu(m.lcZ(2,1,"AUDIT_MESSAGES_LIST.TIMESTAMP")))}function zd(t,e){if(1&t&&(m.TgZ(0,"td",19),m._uU(1),m.ALo(2,"parseDate"),m.qZA()),2&t){var n=e.$implicit;m.xp6(1),m.Oqu(m.xi3(2,1,n.createdAt,!0))}}function Gd(t,e){1&t&&(m.TgZ(0,"th",20),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&t&&(m.xp6(1),m.Oqu(m.lcZ(2,1,"AUDIT_MESSAGES_LIST.EVENT_NAME")))}function Jd(t,e){if(1&t&&(m.TgZ(0,"td",19),m._uU(1),m.ALo(2,"parseEventName"),m.qZA()),2&t){var n=e.$implicit;m.xp6(1),m.Oqu(m.lcZ(2,1,n.event.name))}}function Vd(t,e){1&t&&(m.TgZ(0,"th",20),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&t&&(m.xp6(1),m.Oqu(m.lcZ(2,1,"AUDIT_MESSAGES_LIST.ACTOR")))}function Hd(t,e){if(1&t&&(m.TgZ(0,"td",19),m._uU(1),m.qZA()),2&t){var n=e.$implicit;m.xp6(1),m.Oqu(n.actor)}}function Qd(t,e){1&t&&(m.TgZ(0,"th",20),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&t&&(m.xp6(1),m.Oqu(m.lcZ(2,1,"AUDIT_MESSAGES_LIST.MESSAGE")))}function Wd(t,e){if(1&t&&(m.TgZ(0,"td",19),m._uU(1),m.qZA()),2&t){var n=e.$implicit;m.xp6(1),m.Oqu(n.event.message)}}function Xd(t,e){1&t&&m._UZ(0,"th",20)}function $d(t,e){if(1&t){var n=m.EpF();m.TgZ(0,"td",19),m.TgZ(1,"button",21),m.NdJ("click",function(){var t=m.CHM(n).$implicit;return m.oxw().viewDetails(t)}),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.qZA()}2&t&&(m.xp6(2),m.Oqu(m.lcZ(3,1,"AUDIT_MESSAGES_LIST.VIEW_DETAIL")))}function Kd(t,e){1&t&&m._UZ(0,"tr",22)}function tp(t,e){1&t&&m._UZ(0,"tr",23)}function ep(t,e){1&t&&(m.TgZ(0,"app-alert",24),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&t&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_AUDIT_MESSAGES"),"\n"))}var np,rp,ip=function(){var t=function(){function t(e,n,r){f(this,t),this.dialog=e,this.dynamicPaginatingService=n,this.tableConfigService=r,this.pageSizeOptions=lt.f7,this.displayedColumns=["id","timestamp","name","actor","event.message","detail"]}return p(t,[{key:"ngAfterViewInit",value:function(){var t=this;this.sort.sortChange.subscribe(function(){return t.child.paginator.pageIndex=0}),(0,Pd.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,Ae.b)(function(){return t.loadAuditMessagesPage()})).subscribe()}},{key:"ngOnInit",value:function(){this.dataSource=new N.Hy(this.dynamicPaginatingService,null),this.dataSource.loadAuditMessages(this.tableConfigService.getTablePageSize(this.tableId),0,"DESCENDING")}},{key:"ngOnChanges",value:function(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadAuditMessagesPage())}},{key:"loadAuditMessagesPage",value:function(){this.dataSource.loadAuditMessages(this.child.paginator.pageSize,this.child.paginator.pageIndex,"asc"===this.sort.direction?"ASCENDING":"DESCENDING")}},{key:"viewDetails",value:function(t){var e=(0,lt.kZ)(),n=JSON.parse(JSON.stringify(t));e.minWidth="700px",e.maxWidth="1000px",e.data={message:n},this.dialog.open(Rd,e)}},{key:"exportData",value:function(t){(0,lt.O6)((0,lt.Xn)(this.dataSource.getData(),this.displayedColumns.filter(function(t){return"detail"!==t}),this.getExportDataForColumn,this),t)}},{key:"getExportDataForColumn",value:function(t,e){switch(e){case"id":return t.id.toString();case"timestamp":return(0,d.p6)(t.createdAt,"d.M.y H.mm.ss","en");case"name":return t.event.name.split(".").pop();case"actor":return t.actor;default:return""}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(m.Y36(I.uw),m.Y36(N.ly),m.Y36(ht.dB))},t.\u0275cmp=m.Xpm({type:t,selectors:[["app-audit-messages-list"]],viewQuery:function(t,e){var n;(1&t&&(m.Gf(lt.l9,7),m.Gf(mt.YE,5)),2&t)&&(m.iGM(n=m.CRH())&&(e.child=n.first),m.iGM(n=m.CRH())&&(e.sort=n.first))},inputs:{tableId:"tableId",refresh:"refresh",displayedColumns:"displayedColumns",searchString:"searchString"},features:[m._Bn([{provide:Ud.ye,useClass:N.Be}]),m.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"],["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",""],["color","accent","mat-flat-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(t,e){1&t&&(m.TgZ(0,"div",0),m.ALo(1,"async"),m.TgZ(2,"perun-web-apps-table-wrapper",1),m.NdJ("exportData",function(t){return e.exportData(t)}),m.YNc(3,Fd,2,0,"div",2),m.ALo(4,"async"),m.TgZ(5,"table",3),m.ynx(6,4),m.YNc(7,jd,3,3,"th",5),m.YNc(8,Yd,2,1,"td",6),m.BQk(),m.ynx(9,7),m.YNc(10,Bd,3,3,"th",5),m.YNc(11,zd,3,4,"td",6),m.BQk(),m.ynx(12,8),m.YNc(13,Gd,3,3,"th",9),m.YNc(14,Jd,3,3,"td",6),m.BQk(),m.ynx(15,10),m.YNc(16,Vd,3,3,"th",9),m.YNc(17,Hd,2,1,"td",6),m.BQk(),m.ynx(18,11),m.YNc(19,Qd,3,3,"th",9),m.YNc(20,Wd,2,1,"td",6),m.BQk(),m.ynx(21,12),m.YNc(22,Xd,1,0,"th",9),m.YNc(23,$d,4,3,"td",6),m.BQk(),m.YNc(24,Kd,1,0,"tr",13),m.YNc(25,tp,1,0,"tr",14),m.qZA(),m.qZA(),m.qZA(),m.YNc(26,ep,3,3,"app-alert",15),m.ALo(27,"async")),2&t&&(m.Q6J("hidden",0===e.dataSource.allObjectCount&&!1===m.lcZ(1,9,e.dataSource.loading$)),m.xp6(2),m.Q6J("dataLength",e.dataSource.allObjectCount)("pageSizeOptions",e.pageSizeOptions)("tableId",e.tableId),m.xp6(1),m.Q6J("ngIf",m.lcZ(4,11,e.dataSource.loading$)),m.xp6(2),m.Q6J("dataSource",e.dataSource),m.xp6(19),m.Q6J("matHeaderRowDef",e.displayedColumns),m.xp6(1),m.Q6J("matRowDefColumns",e.displayedColumns),m.xp6(1),m.Q6J("ngIf",0===e.dataSource.allObjectCount&&!1===m.lcZ(27,13,e.dataSource.loading$)))},directives:[xt.l,d.O5,D.BZ,mt.YE,D.w1,D.fO,D.Dz,D.as,D.nj,M.$g,D.ge,mt.nU,D.ev,Z.lW,D.XQ,D.Gk,O.w],pipes:[d.Ov,x.X$,qd.M,Cd],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;top:0;left:0;bottom:56px;right:0;background:rgba(0,0,0,.15);z-index:1;display:flex;align-items:center;justify-content:center}"]}),t}(),op=[{path:"",component:T,children:[{path:"",component:S,data:{animation:"AdminOverviewPage"}},{path:"attributes",component:ye,data:{animation:"AdminAttributesPage"}},{path:"users",component:Hl.t,data:{animation:"AdminUsersPage"}},{path:"owners",component:Wf,data:{animation:"AdminOwnersPage"}},{path:"services",component:Ph,data:{animation:"AdminServicesPage"}},{path:"audit_log",component:(np=function(){function t(){f(this,t),this.tableId=ht.yW,this.refresh=!1}return p(t,[{key:"refreshTable",value:function(){this.refresh=!this.refresh}}]),t}(),np.\u0275fac=function(t){return new(t||np)},np.\u0275cmp=m.Xpm({type:np,selectors:[["app-admin-audit-log"]],decls:5,vars:5,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"refresh","tableId"]],template:function(t,e){1&t&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.TgZ(3,"perun-web-apps-refresh-button",1),m.NdJ("refresh",function(){return e.refreshTable()}),m.qZA(),m._UZ(4,"app-audit-messages-list",2)),2&t&&(m.xp6(1),m.Oqu(m.lcZ(2,3,"ADMIN.AUDIT_LOG.TITLE")),m.xp6(3),m.Q6J("refresh",e.refresh)("tableId",e.tableId))},directives:[gt.t,ip],pipes:[x.X$],styles:[""]}),np),data:{animation:"AdminAuditLogPage"}},{path:"visualizer",component:_e,children:[{path:"",component:xe,data:{animation:"VisualizerOverviewPage"}},{path:"attrDependencies",component:be,data:{animation:"VisualizerAttrModulesPage"}},{path:"userDestinationRelationship",component:Re,data:{animation:"UserDestinationRelationshipPage"}},{path:"userDestinationRelationship/graph",component:Vl,data:{animation:"UserDestinationGraphPage"}}]},{path:"ext_sources",component:fh,data:{animation:"AdminExtSourcesPage"}}]},{path:"users/:userId",component:nh,children:[{path:"",component:rh.Z,data:{animation:"UserOverviewPage"}},{path:"accounts",component:Nd,data:{animation:"UserAccountsPage"}},{path:"attributes",component:ah.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:ih.j,data:{animation:"UserOrganizationsPage",showPrincipal:!1}},{path:"groups",component:oh.u,data:{animation:"UserGroupsPage",showPrincipal:!1}},{path:"identities",component:kh,data:{animation:"UserIdentitiesPage"}},{path:"facilities",component:td,data:{animation:"UserFacilitiesPage"}},{path:"resources",component:Bh,data:{animation:"UserRoles"}},{path:"identities/:identityId",component:Wh,data:{animation:"UserIdentityDetailPage"}},{path:"roles",component:dh.t,data:{animation:"UserRolesPage"}},{path:"service-identities",component:ph.R,data:{animation:"UserServiceIdentities"}},{path:"associated-users",component:xf.d,data:{animation:"AssociatedUsersPage"}}]},{path:"services/:serviceId",component:rf,children:[{path:"",component:of,data:{animation:"ServiceOverviewPage"}},{path:"required-attributes",component:bf,data:{animation:"ServiceRequiredAttributesPage"}},{path:"destinations",component:Cf,data:{animation:"ServiceDestinationsPage"}}]}],ap=function(){var t=function t(){f(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m.oAB({type:t}),t.\u0275inj=m.cJS({imports:[[g.Bz.forChild(op)],g.Bz]}),t}(),sp=l(28780),up=l(22727),cp=l(22280),lp=l(65515),hp=((rp=function t(){f(this,t)}).\u0275fac=function(t){return new(t||rp)},rp.\u0275mod=m.oAB({type:rp}),rp.\u0275inj=m.cJS({imports:[[Va,Rl,d.ez,ap,sp.m,up.r,bt.ez,cp.d4,lp.UsersModule]]}),rp)},94357:function(t,e,n){"use strict";n.d(e,{q:function(){return B}});var r=n(58623),i=n(4230),o=n(67033),a=n(84140),s=n(68416),u=n(31572),c=n(82819),l=n(61511),h=n(29236),d=n(43691),g=n(36922),v=n(39571),m=n(48160);function y(t,e){if(1&t){var n=u.EpF();u.TgZ(0,"th",21),u.TgZ(1,"mat-checkbox",22),u.NdJ("change",function(t){u.CHM(n);var e=u.oxw();return t?e.masterToggle():null}),u.qZA(),u.qZA()}if(2&t){var r=u.oxw();u.xp6(1),u.Q6J("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())}}function _(t,e){if(1&t){var n=u.EpF();u.TgZ(0,"td",23),u.TgZ(1,"mat-checkbox",24),u.NdJ("change",function(t){var e=u.CHM(n).$implicit,r=u.oxw();return t?r.selection.toggle(e):null})("click",function(t){return t.stopPropagation()}),u.qZA(),u.qZA()}if(2&t){var r=e.$implicit,i=u.oxw();u.xp6(1),u.Q6J("aria-label",i.checkboxLabel(r))("checked",i.selection.isSelected(r))}}function w(t,e){1&t&&(u.TgZ(0,"th",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION_ID")))}function b(t,e){if(1&t&&(u.TgZ(0,"td",26),u._uU(1),u.qZA()),2&t){var n=e.$implicit;u.xp6(1),u.Oqu(n.id)}}function x(t,e){1&t&&(u.TgZ(0,"th",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.SERVICE")))}function E(t,e){if(1&t&&(u.TgZ(0,"td",27),u._uU(1),u.qZA()),2&t){var n=e.$implicit;u.xp6(1),u.Oqu(n.service.name)}}function T(t,e){1&t&&u._UZ(0,"th",28)}function A(t,e){1&t&&(u.TgZ(0,"mat-icon",30),u.ALo(1,"translate"),u._uU(2," warning "),u.qZA()),2&t&&u.s9C("matTooltip",u.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.WARN"))}function S(t,e){if(1&t&&(u.TgZ(0,"td",27),u.YNc(1,A,3,3,"mat-icon",29),u.qZA()),2&t){var n=e.$implicit,r=u.oxw();u.xp6(1),u.Q6J("ngIf",!r.services.has(n.service.id))}}function k(t,e){1&t&&(u.TgZ(0,"th",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.FACILITY")))}function I(t,e){if(1&t&&(u.TgZ(0,"td",27),u._uU(1),u.qZA()),2&t){var n=e.$implicit;u.xp6(1),u.Oqu(n.facility.name)}}function D(t,e){1&t&&(u.TgZ(0,"th",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION")))}function N(t,e){if(1&t&&(u.TgZ(0,"td",27),u._uU(1),u.qZA()),2&t){var n=e.$implicit;u.xp6(1),u.Oqu(n.destination)}}function C(t,e){1&t&&(u.TgZ(0,"th",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.TYPE")))}function Z(t,e){if(1&t&&(u.TgZ(0,"td",27),u._uU(1),u.qZA()),2&t){var n=e.$implicit;u.xp6(1),u.Oqu(n.type.toUpperCase())}}function M(t,e){1&t&&u._UZ(0,"th",28)}function O(t,e){1&t&&(u.TgZ(0,"mat-icon",32),u.ALo(1,"translate"),u._uU(2," check_circle_outline "),u.qZA()),2&t&&u.s9C("matTooltip",u.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.ALLOWED"))}function L(t,e){1&t&&(u.TgZ(0,"mat-icon",32),u.ALo(1,"translate"),u._uU(2," block "),u.qZA()),2&t&&u.s9C("matTooltip",u.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.BLOCKED"))}function R(t,e){if(1&t&&(u.TgZ(0,"td",27),u.YNc(1,O,3,3,"mat-icon",31),u.YNc(2,L,3,3,"mat-icon",31),u.qZA()),2&t){var n=e.$implicit;u.xp6(1),u.Q6J("ngIf",!n.blocked),u.xp6(1),u.Q6J("ngIf",n.blocked)}}function U(t,e){1&t&&(u.TgZ(0,"th",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.PROPAGATION_TYPE")))}function P(t,e){if(1&t&&(u.TgZ(0,"td",27),u._uU(1),u.qZA()),2&t){var n=e.$implicit;u.xp6(1),u.Oqu(n.propagationType)}}function q(t,e){1&t&&u._UZ(0,"tr",33)}function F(t,e){1&t&&u._UZ(0,"tr",34)}function j(t,e){1&t&&(u.TgZ(0,"app-alert",35),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Y(t,e){1&t&&(u.TgZ(0,"app-alert",35),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.NO_DESTINATIONS"),"\n"))}var B=function(){var t=function(){function t(e,n){f(this,t),this.authResolver=e,this.tableCheckbox=n,this.destinations=[],this.selection=new i.Ov(!0,[]),this.filterValue="",this.pageSizeOptions=a.f7}return p(t,[{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"destinationId"!==t})),this.dataSource=new o.by(this.destinations),this.setDataSource(),this.dataSource.filter=this.filterValue.toLowerCase()}},{key:"getDataForColumn",value:function(t,e){switch(e){case"destinationId":return t.id.toString();case"service":return t.service.name;case"facility":return t.facility.name;case"destination":return t.destination;case"type":return t.type;case"status":return t.blocked?"blocked":"allowed";case"propagationType":return t.propagationType;default:return""}}},{key:"exportData",value:function(t){(0,a.O6)((0,a.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=function(e,n){return(0,a.Sd)(e,n,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,n){return(0,a.pR)(e,n,t.getDataForColumn,t)},this.dataSource.paginator=this.child.paginator)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Y36(s.x4),u.Y36(s.UA))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-perun-web-apps-destination-list"]],viewQuery:function(t,e){var n;(1&t&&(u.Gf(r.YE,7),u.Gf(a.l9,7)),2&t)&&(u.iGM(n=u.CRH())&&(e.matSort=n.first),u.iGM(n=u.CRH())&&(e.child=n.first))},inputs:{destinations:"destinations",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",services:"services"},features:[u.TTD],decls:34,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"],["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(t,e){1&t&&(u.TgZ(0,"div",0),u.TgZ(1,"perun-web-apps-table-wrapper",1),u.NdJ("exportData",function(t){return e.exportData(t)}),u.TgZ(2,"table",2),u.ynx(3,3),u.YNc(4,y,2,3,"th",4),u.YNc(5,_,2,2,"td",5),u.BQk(),u.ynx(6,6),u.YNc(7,w,3,3,"th",7),u.YNc(8,b,2,1,"td",8),u.BQk(),u.ynx(9,9),u.YNc(10,x,3,3,"th",7),u.YNc(11,E,2,1,"td",10),u.BQk(),u.ynx(12,11),u.YNc(13,T,1,0,"th",12),u.YNc(14,S,2,1,"td",10),u.BQk(),u.ynx(15,13),u.YNc(16,k,3,3,"th",7),u.YNc(17,I,2,1,"td",10),u.BQk(),u.ynx(18,14),u.YNc(19,D,3,3,"th",7),u.YNc(20,N,2,1,"td",10),u.BQk(),u.ynx(21,15),u.YNc(22,C,3,3,"th",7),u.YNc(23,Z,2,1,"td",10),u.BQk(),u.ynx(24,16),u.YNc(25,M,1,0,"th",12),u.YNc(26,R,3,2,"td",10),u.BQk(),u.ynx(27,17),u.YNc(28,U,3,3,"th",7),u.YNc(29,P,2,1,"td",10),u.BQk(),u.YNc(30,q,1,0,"tr",18),u.YNc(31,F,1,0,"tr",19),u.qZA(),u.qZA(),u.qZA(),u.YNc(32,j,3,3,"app-alert",20),u.YNc(33,Y,3,3,"app-alert",20)),2&t&&(u.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.destinations.length),u.xp6(1),u.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),u.xp6(1),u.Q6J("dataSource",e.dataSource),u.xp6(28),u.Q6J("matHeaderRowDef",e.displayedColumns),u.xp6(1),u.Q6J("matRowDefColumns",e.displayedColumns),u.xp6(1),u.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.destinations.length),u.xp6(1),u.Q6J("ngIf",0===e.destinations.length))},directives:[c.l,o.BZ,r.YE,o.w1,o.fO,o.Dz,o.as,o.nj,l.O5,o.ge,h.oG,o.ev,r.nU,d.Hw,g.gM,o.XQ,o.Gk,v.w],pipes:[m.X$],styles:[".warn[_ngcontent-%COMP%]{color:#ebe134}"]}),t}()},60547:function(t,e,n){"use strict";n.d(e,{u:function(){return _}});var r=n(65249),i=n(84608),o=n(67033),a=n(68416),s=n(31572),u=n(48160),c=n(61511),l=n(15980),h=n(67806),d=n(39571),g=n(94357);function v(t,e){1&t&&s._UZ(0,"mat-spinner",6)}function m(t,e){if(1&t&&s._UZ(0,"app-perun-web-apps-destination-list",11),2&t){var n=s.oxw(2);s.Q6J("destinations",n.destinations)("displayedColumns",n.displayedColumns)}}function y(t,e){if(1&t&&(s.TgZ(0,"div",7),s.TgZ(1,"app-alert",8),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"p"),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"div",9),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.YNc(10,m,1,2,"app-perun-web-apps-destination-list",10),s.qZA()),2&t){var n=s.oxw();s.xp6(2),s.Oqu(s.lcZ(3,4,"DIALOGS.REMOVE_DESTINATIONS.WARNING")),s.xp6(3),s.Oqu(s.lcZ(6,6,"DIALOGS.REMOVE_DESTINATIONS.DESCRIPTION")),s.xp6(3),s.hij(" ",s.lcZ(9,8,"DIALOGS.REMOVE_DESTINATIONS.ASK")," "),s.xp6(2),s.Q6J("ngIf",!n.loading)}}var _=function(){var t=function(){function t(e,n,r,i,o){f(this,t),this.dialogRef=e,this.data=n,this.notificator=r,this.translate=i,this.serviceManager=o,this.displayedColumns=[],this.loading=!1}return p(t,[{key:"ngOnInit",value:function(){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 o.by(this.data.destinations)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"deleteDestinations",value:function(){var t=this;if(0===this.destinations.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_DESTINATIONS.SUCCESS")),void this.dialogRef.close(!0);var e=this.destinations.pop();this.serviceManager.removeDestination(e.service.id,e.facility.id,e.destination,e.type).subscribe(function(){t.deleteDestinations()},function(){return t.loading=!1})}},{key:"onConfirm",value:function(){this.loading=!0,this.deleteDestinations()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(i.so),s.Y36(i.WI),s.Y36(a.V6),s.Y36(u.sK),s.Y36(r.KK))},t.\u0275cmp=s.Xpm({type:t,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"],["mat-flat-button","","color","warn",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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div"),s.YNc(4,v,1,0,"mat-spinner",1),s.YNc(5,y,11,10,"div",2),s.TgZ(6,"div",3),s.TgZ(7,"button",4),s.NdJ("click",function(){return e.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return e.onConfirm()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,9,"DIALOGS.REMOVE_DESTINATIONS.TITLE")),s.xp6(2),s.Tol(e.theme),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,11,"DIALOGS.REMOVE_DESTINATIONS.CANCEL"),""),s.xp6(2),s.Q6J("disabled",e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,13,"DIALOGS.REMOVE_DESTINATIONS.CONFIRM"),""))},directives:[i.uh,c.O5,i.H8,l.lW,h.$g,i.xY,d.w,g.q],pipes:[u.X$],styles:[""]}),t}()},17767:function(t,e,n){"use strict";n.d(e,{Q:function(){return N}});var r=n(58623),i=n(4230),o=n(67033),a=n(84140),s=n(68416),u=n(31572),c=n(82819),l=n(61511),h=n(29236),d=n(39571),g=n(48160);function v(t,e){if(1&t){var n=u.EpF();u.TgZ(0,"th",16),u.TgZ(1,"mat-checkbox",17),u.NdJ("change",function(t){u.CHM(n);var e=u.oxw();return t?e.masterToggle():null}),u.qZA(),u.qZA()}if(2&t){var r=u.oxw();u.xp6(1),u.Q6J("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())}}function m(t,e){if(1&t){var n=u.EpF();u.TgZ(0,"td",18),u.TgZ(1,"mat-checkbox",19),u.NdJ("change",function(t){var e=u.CHM(n).$implicit,r=u.oxw();return t?r.selection.toggle(e):null})("click",function(t){return t.stopPropagation()}),u.qZA(),u.qZA()}if(2&t){var r=e.$implicit,i=u.oxw();u.xp6(1),u.Q6J("aria-label",i.checkboxLabel(r))("checked",i.selection.isSelected(r))}}function y(t,e){1&t&&(u.TgZ(0,"th",20),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.ID")))}function _(t,e){if(1&t&&(u.TgZ(0,"td",21),u._uU(1),u.qZA()),2&t){var n=e.$implicit;u.xp6(1),u.hij(" ",n.id," ")}}function w(t,e){1&t&&(u.TgZ(0,"th",20),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NAME")))}function b(t,e){if(1&t&&(u.TgZ(0,"td",22),u._uU(1),u.qZA()),2&t){var n=e.$implicit;u.xp6(1),u.Oqu(n.name)}}function x(t,e){1&t&&(u.TgZ(0,"th",20),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.CONTACT")))}function E(t,e){if(1&t&&(u.TgZ(0,"td",22),u._uU(1),u.qZA()),2&t){var n=e.$implicit;u.xp6(1),u.Oqu(n.contact)}}function T(t,e){1&t&&(u.TgZ(0,"th",20),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.TYPE")))}function A(t,e){if(1&t&&(u.TgZ(0,"td",22),u._uU(1),u.qZA()),2&t){var n=e.$implicit;u.xp6(1),u.Oqu(n.type)}}function S(t,e){1&t&&u._UZ(0,"tr",23)}function k(t,e){1&t&&u._UZ(0,"tr",24)}function I(t,e){1&t&&(u.TgZ(0,"app-alert",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_OWNERS"),"\n"))}function D(t,e){1&t&&(u.TgZ(0,"app-alert",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_FILTER_OWNERS"),"\n"))}var N=function(){var t=function(){function t(e,n){f(this,t),this.authResolver=e,this.tableCheckbox=n,this.owners=[],this.selection=new i.Ov(!0,[]),this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.pageSizeOptions=a.f7}return p(t,[{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}},{key:"ngAfterViewInit",value:function(){this.setDataSource()}},{key:"getDataForColumn",value:function(t,e){switch(e){case"id":return t.id.toString();case"name":return t.name;case"contact":return t.contact;case"type":return t.type;default:return""}}},{key:"exportData",value:function(t){(0,a.O6)((0,a.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource&&(this.dataSource.filterPredicate=function(e,n){return(0,a.Sd)(e,n,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,n){return(0,a.pR)(e,n,t.getDataForColumn,t)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.dataSource=new o.by(this.owners),this.setDataSource()}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Y36(s.x4),u.Y36(s.UA))},t.\u0275cmp=u.Xpm({type:t,selectors:[["perun-web-apps-owners-list"]],viewQuery:function(t,e){var n;(1&t&&(u.Gf(a.l9,7),u.Gf(r.YE,7)),2&t)&&(u.iGM(n=u.CRH())&&(e.child=n.first),u.iGM(n=u.CRH())&&(e.matSort=n.first))},inputs:{owners:"owners",selection:"selection",tableId:"tableId",filterValue:"filterValue",displayedColumns:"displayedColumns"},features:[u.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(t,e){1&t&&(u.TgZ(0,"div",0),u.TgZ(1,"perun-web-apps-table-wrapper",1),u.NdJ("exportData",function(t){return e.exportData(t)}),u.TgZ(2,"table",2),u.ynx(3,3),u.YNc(4,v,2,3,"th",4),u.YNc(5,m,2,2,"td",5),u.BQk(),u.ynx(6,6),u.YNc(7,y,3,3,"th",7),u.YNc(8,_,2,1,"td",8),u.BQk(),u.ynx(9,9),u.YNc(10,w,3,3,"th",7),u.YNc(11,b,2,1,"td",10),u.BQk(),u.ynx(12,11),u.YNc(13,x,3,3,"th",7),u.YNc(14,E,2,1,"td",10),u.BQk(),u.ynx(15,12),u.YNc(16,T,3,3,"th",7),u.YNc(17,A,2,1,"td",10),u.BQk(),u.YNc(18,S,1,0,"tr",13),u.YNc(19,k,1,0,"tr",14),u.qZA(),u.qZA(),u.qZA(),u.YNc(20,I,3,3,"app-alert",15),u.YNc(21,D,3,3,"app-alert",15)),2&t&&(u.Q6J("hidden",0===e.owners.length||0===e.dataSource.filteredData.length),u.xp6(1),u.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),u.xp6(1),u.Q6J("dataSource",e.dataSource),u.xp6(16),u.Q6J("matHeaderRowDef",e.displayedColumns),u.xp6(1),u.Q6J("matRowDefColumns",e.displayedColumns),u.xp6(1),u.Q6J("ngIf",!e.owners.length),u.xp6(1),u.Q6J("ngIf",!e.dataSource.filteredData.length&&e.owners.length))},directives:[c.l,o.BZ,r.YE,o.w1,o.fO,o.Dz,o.as,o.nj,l.O5,o.ge,h.oG,o.ev,r.nU,o.XQ,o.Gk,d.w],pipes:[g.X$],styles:[""]}),t}()},95914:function(t,e,n){"use strict";function r(t,e){return t(e={exports:{}},e.exports),e.exports}n.r(e),n.d(e,{StackParser:function(){return l},graphviz:function(){return m},graphvizSync:function(){return _},parse:function(){return h},wasmFolder:function(){return s}});var i=r(function(t,e){var n,r=(n="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(t){var e,r=void 0!==(t=t||{})?t:{},i={};for(e in r)r.hasOwnProperty(e)&&(i[e]=r[e]);var o,a="./this.program",s="";document.currentScript&&(s=document.currentScript.src),n&&(s=n),s=0!==s.indexOf("blob:")?s.substr(0,s.lastIndexOf("/")+1):"",o=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText};var u,c,l=r.print||console.log.bind(console),h=r.printErr||console.warn.bind(console);for(e in i)i.hasOwnProperty(e)&&(r[e]=i[e]);i=null,r.thisProgram&&(a=r.thisProgram),r.wasmBinary&&(u=r.wasmBinary),"object"!=typeof WebAssembly&&h("no native wasm support detected");var f=new WebAssembly.Table({initial:153,maximum:153,element:"anyfunc"}),d=!1;function p(t,e){t||j("Assertion failed: "+e)}var g,v,m,y,_,w="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function b(t,e,n){for(var r=e+n,i=e;t[i]&&!(i>=r);)++i;if(i-e>16&&t.subarray&&w)return w.decode(t.subarray(e,i));for(var o="";e>10,56320|1023&c)}}else o+=String.fromCharCode((31&a)<<6|s)}else o+=String.fromCharCode(a)}return o}function x(t,e){return t?b(m,t,e):""}function E(t,e,n,r){if(!(r>0))return 0;for(var i=n,o=n+r-1,a=0;a=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&t.charCodeAt(++a)),s<=127){if(n>=o)break;e[n++]=s}else if(s<=2047){if(n+1>=o)break;e[n++]=192|s>>6,e[n++]=128|63&s}else if(s<=65535){if(n+2>=o)break;e[n++]=224|s>>12,e[n++]=128|s>>6&63,e[n++]=128|63&s}else{if(n+3>=o)break;e[n++]=240|s>>18,e[n++]=128|s>>12&63,e[n++]=128|s>>6&63,e[n++]=128|63&s}}return e[n]=0,n-i}function T(t){for(var e=0,n=0;n=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&t.charCodeAt(++n)),r<=127?++e:e+=r<=2047?2:r<=65535?3:4}return e}function A(t){g=t,r.HEAP8=v=new Int8Array(t),r.HEAP16=new Int16Array(t),r.HEAP32=y=new Int32Array(t),r.HEAPU8=m=new Uint8Array(t),r.HEAPU16=new Uint16Array(t),r.HEAPU32=new Uint32Array(t),r.HEAPF32=new Float32Array(t),r.HEAPF64=_=new Float64Array(t)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var S=r.TOTAL_MEMORY||16777216;function k(t){for(;t.length>0;){var e=t.shift();if("function"!=typeof e){var n=e.func;"number"==typeof n?void 0===e.arg?r.dynCall_v(n):r.dynCall_vi(n,e.arg):n(void 0===e.arg?null:e.arg)}else e()}}(c=r.wasmMemory?r.wasmMemory:new WebAssembly.Memory({initial:S/65536}))&&(g=c.buffer),S=g.byteLength,A(g),y[2080]=5251360;var I=[],D=[],N=[],C=[],Z=!1,M=Math.abs,O=Math.ceil,L=Math.floor,R=Math.min,U=0,P=null;function q(t){U++,r.monitorRunDependencies&&r.monitorRunDependencies(U)}function F(t){if(U--,r.monitorRunDependencies&&r.monitorRunDependencies(U),0==U&&P){var e=P;P=null,e()}}function j(t){throw r.onAbort&&r.onAbort(t),l(t+=""),h(t),d=!0,t="abort("+t+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(t)}function Y(t){return String.prototype.startsWith?t.startsWith("data:application/octet-stream;base64,"):0===t.indexOf("data:application/octet-stream;base64,")}r.preloadedImages={},r.preloadedAudios={};var B,z,G,J="expatlib.wasm";function V(){try{if(u)return new Uint8Array(u);throw"both async and sync fetching of the wasm failed"}catch(h){j(h)}}Y(J)||(B=J,J=r.locateFile?r.locateFile(B,s):s+B);var H={1184:function(t){var e=r.getCache(r.CExpatJS)[t];if(!e.hasOwnProperty("startElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::startElement.";e.startElement()},1404:function(t){var e=r.getCache(r.CExpatJS)[t];if(!e.hasOwnProperty("endElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::endElement.";e.endElement()},1616:function(t){var e=r.getCache(r.CExpatJS)[t];if(!e.hasOwnProperty("characterData"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::characterData.";e.characterData()}};D.push({func:function(){lt()}});var Q={splitPath:function(t){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(t).slice(1)},normalizeArray:function(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n;n--)t.unshift("..");return t},normalize:function(t){var e="/"===t.charAt(0),n="/"===t.substr(-1);return(t=Q.normalizeArray(t.split("/").filter(function(t){return!!t}),!e).join("/"))||e||(t="."),t&&n&&(t+="/"),(e?"/":"")+t},dirname:function(t){var e=Q.splitPath(t),n=e[0],r=e[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},basename:function(t){if("/"===t)return"/";var e=t.lastIndexOf("/");return-1===e?t:t.substr(e+1)},extname:function(t){return Q.splitPath(t)[3]},join:function(){var t=Array.prototype.slice.call(arguments,0);return Q.normalize(t.join("/"))},join2:function(t,e){return Q.normalize(t+"/"+e)}};function W(t){return r.___errno_location&&(y[r.___errno_location()>>2]=t),t}var X={resolve:function(){for(var t="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var r=n>=0?arguments[n]:tt.cwd();if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");if(!r)return"";t=r+"/"+t,e="/"===r.charAt(0)}return(e?"/":"")+(t=Q.normalizeArray(t.split("/").filter(function(t){return!!t}),!e).join("/"))||"."},relative:function(t,e){function n(t){for(var e=0;e=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=X.resolve(t).substr(1),e=X.resolve(e).substr(1);for(var r=n(t.split("/")),i=n(e.split("/")),o=Math.min(r.length,i.length),a=o,s=0;s0&&(l(b(t.output,0)),t.output=[])}},default_tty1_ops:{put_char:function(t,e){null===e||10===e?(h(b(t.output,0)),t.output=[]):0!=e&&t.output.push(e)},flush:function(t){t.output&&t.output.length>0&&(h(b(t.output,0)),t.output=[])}}},K={ops_table:null,mount:function(t){return K.createNode(null,"/",16895,0)},createNode:function(t,e,n,r){if(tt.isBlkdev(n)||tt.isFIFO(n))throw new tt.ErrnoError(63);K.ops_table||(K.ops_table={dir:{node:{getattr:K.node_ops.getattr,setattr:K.node_ops.setattr,lookup:K.node_ops.lookup,mknod:K.node_ops.mknod,rename:K.node_ops.rename,unlink:K.node_ops.unlink,rmdir:K.node_ops.rmdir,readdir:K.node_ops.readdir,symlink:K.node_ops.symlink},stream:{llseek:K.stream_ops.llseek}},file:{node:{getattr:K.node_ops.getattr,setattr:K.node_ops.setattr},stream:{llseek:K.stream_ops.llseek,read:K.stream_ops.read,write:K.stream_ops.write,allocate:K.stream_ops.allocate,mmap:K.stream_ops.mmap,msync:K.stream_ops.msync}},link:{node:{getattr:K.node_ops.getattr,setattr:K.node_ops.setattr,readlink:K.node_ops.readlink},stream:{}},chrdev:{node:{getattr:K.node_ops.getattr,setattr:K.node_ops.setattr},stream:tt.chrdev_stream_ops}});var i=tt.createNode(t,e,n,r);return tt.isDir(i.mode)?(i.node_ops=K.ops_table.dir.node,i.stream_ops=K.ops_table.dir.stream,i.contents={}):tt.isFile(i.mode)?(i.node_ops=K.ops_table.file.node,i.stream_ops=K.ops_table.file.stream,i.usedBytes=0,i.contents=null):tt.isLink(i.mode)?(i.node_ops=K.ops_table.link.node,i.stream_ops=K.ops_table.link.stream):tt.isChrdev(i.mode)&&(i.node_ops=K.ops_table.chrdev.node,i.stream_ops=K.ops_table.chrdev.stream),i.timestamp=Date.now(),t&&(t.contents[e]=i),i},getFileDataAsRegularArray:function(t){if(t.contents&&t.contents.subarray){for(var e=[],n=0;n=e)){e=Math.max(e,n*(n<1048576?2:1.125)|0),0!=n&&(e=Math.max(e,256));var r=t.contents;t.contents=new Uint8Array(e),t.usedBytes>0&&t.contents.set(r.subarray(0,t.usedBytes),0)}},resizeFileStorage:function(t,e){if(t.usedBytes!=e){if(0==e)return t.contents=null,void(t.usedBytes=0);if(!t.contents||t.contents.subarray){var n=t.contents;return t.contents=new Uint8Array(e),n&&t.contents.set(n.subarray(0,Math.min(e,t.usedBytes))),void(t.usedBytes=e)}if(t.contents||(t.contents=[]),t.contents.length>e)t.contents.length=e;else for(;t.contents.length=t.node.usedBytes)return 0;var a=Math.min(t.node.usedBytes-i,r);if(a>8&&o.subarray)e.set(o.subarray(i,i+a),n);else for(var s=0;s0||i+r8)throw new tt.ErrnoError(32);for(var i=Q.normalizeArray(t.split("/").filter(function(t){return!!t}),!1),o=tt.root,a="/",s=0;s40)throw new tt.ErrnoError(32)}}return{path:a,node:o}},getPath:function(t){for(var e;;){if(tt.isRoot(t)){var n=t.mount.mountpoint;return e?"/"!==n[n.length-1]?n+"/"+e:n+e:n}e=e?t.name+"/"+e:t.name,t=t.parent}},hashName:function(t,e){for(var n=0,r=0;r>>0)%tt.nameTable.length},hashAddNode:function(t){var e=tt.hashName(t.parent.id,t.name);t.name_next=tt.nameTable[e],tt.nameTable[e]=t},hashRemoveNode:function(t){var e=tt.hashName(t.parent.id,t.name);if(tt.nameTable[e]===t)tt.nameTable[e]=t.name_next;else for(var n=tt.nameTable[e];n;){if(n.name_next===t){n.name_next=t.name_next;break}n=n.name_next}},lookupNode:function(t,e){var n=tt.mayLookup(t);if(n)throw new tt.ErrnoError(n,t);for(var r=tt.hashName(t.id,e),i=tt.nameTable[r];i;i=i.name_next)if(i.parent.id===t.id&&i.name===e)return i;return tt.lookup(t,e)},createNode:function(t,e,n,r){tt.FSNode||(tt.FSNode=function(t,e,n,r){t||(t=this),this.parent=t,this.mount=t.mount,this.mounted=null,this.id=tt.nextInode++,this.name=e,this.mode=n,this.node_ops={},this.stream_ops={},this.rdev=r},tt.FSNode.prototype={},Object.defineProperties(tt.FSNode.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(t){t?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(t){t?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return tt.isDir(this.mode)}},isDevice:{get:function(){return tt.isChrdev(this.mode)}}}));var i=new tt.FSNode(t,e,n,r);return tt.hashAddNode(i),i},destroyNode:function(t){tt.hashRemoveNode(t)},isRoot:function(t){return t===t.parent},isMountpoint:function(t){return!!t.mounted},isFile:function(t){return 32768==(61440&t)},isDir:function(t){return 16384==(61440&t)},isLink:function(t){return 40960==(61440&t)},isChrdev:function(t){return 8192==(61440&t)},isBlkdev:function(t){return 24576==(61440&t)},isFIFO:function(t){return 4096==(61440&t)},isSocket:function(t){return 49152==(49152&t)},flagModes:{r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function(t){var e=tt.flagModes[t];if(void 0===e)throw new Error("Unknown file open mode: "+t);return e},flagsToPermissionString:function(t){var e=["r","w","rw"][3&t];return 512&t&&(e+="w"),e},nodePermissions:function(t,e){return tt.ignorePermissions||(-1===e.indexOf("r")||292&t.mode)&&(-1===e.indexOf("w")||146&t.mode)&&(-1===e.indexOf("x")||73&t.mode)?0:2},mayLookup:function(t){return tt.nodePermissions(t,"x")||(t.node_ops.lookup?0:2)},mayCreate:function(t,e){try{return tt.lookupNode(t,e),20}catch(n){}return tt.nodePermissions(t,"wx")},mayDelete:function(t,e,n){var r;try{r=tt.lookupNode(t,e)}catch(o){return o.errno}var i=tt.nodePermissions(t,"wx");if(i)return i;if(n){if(!tt.isDir(r.mode))return 54;if(tt.isRoot(r)||tt.getPath(r)===tt.cwd())return 10}else if(tt.isDir(r.mode))return 31;return 0},mayOpen:function(t,e){return t?tt.isLink(t.mode)?32:tt.isDir(t.mode)&&("r"!==tt.flagsToPermissionString(e)||512&e)?31:tt.nodePermissions(t,tt.flagsToPermissionString(e)):44},MAX_OPEN_FDS:4096,nextfd:function(t,e){e=e||tt.MAX_OPEN_FDS;for(var n=t=t||0;n<=e;n++)if(!tt.streams[n])return n;throw new tt.ErrnoError(33)},getStream:function(t){return tt.streams[t]},createStream:function(t,e,n){tt.FSStream||(tt.FSStream=function(){},tt.FSStream.prototype={},Object.defineProperties(tt.FSStream.prototype,{object:{get:function(){return this.node},set:function(t){this.node=t}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}}));var r=new tt.FSStream;for(var i in t)r[i]=t[i];t=r;var o=tt.nextfd(e,n);return t.fd=o,tt.streams[o]=t,t},closeStream:function(t){tt.streams[t]=null},chrdev_stream_ops:{open:function(t){var e=tt.getDevice(t.node.rdev);t.stream_ops=e.stream_ops,t.stream_ops.open&&t.stream_ops.open(t)},llseek:function(){throw new tt.ErrnoError(70)}},major:function(t){return t>>8},minor:function(t){return 255&t},makedev:function(t,e){return t<<8|e},registerDevice:function(t,e){tt.devices[t]={stream_ops:e}},getDevice:function(t){return tt.devices[t]},getMounts:function(t){for(var e=[],n=[t];n.length;){var r=n.pop();e.push(r),n.push.apply(n,r.mounts)}return e},syncfs:function(t,e){"function"==typeof t&&(e=t,t=!1),tt.syncFSRequests++,tt.syncFSRequests>1&&h("warning: "+tt.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var n=tt.getMounts(tt.root.mount),r=0;function i(t){return tt.syncFSRequests--,e(t)}function o(t){if(t)return o.errored?void 0:(o.errored=!0,i(t));++r>=n.length&&i(null)}n.forEach(function(e){if(!e.type.syncfs)return o(null);e.type.syncfs(e,t,o)})},mount:function(t,e,n){var r,i="/"===n,o=!n;if(i&&tt.root)throw new tt.ErrnoError(10);if(!i&&!o){var a=tt.lookupPath(n,{follow_mount:!1});if(n=a.path,tt.isMountpoint(r=a.node))throw new tt.ErrnoError(10);if(!tt.isDir(r.mode))throw new tt.ErrnoError(54)}var s={type:t,opts:e,mountpoint:n,mounts:[]},u=t.mount(s);return u.mount=s,s.root=u,i?tt.root=u:r&&(r.mounted=s,r.mount&&r.mount.mounts.push(s)),u},unmount:function(t){var e=tt.lookupPath(t,{follow_mount:!1});if(!tt.isMountpoint(e.node))throw new tt.ErrnoError(28);var n=e.node,r=n.mounted,i=tt.getMounts(r);Object.keys(tt.nameTable).forEach(function(t){for(var e=tt.nameTable[t];e;){var n=e.name_next;-1!==i.indexOf(e.mount)&&tt.destroyNode(e),e=n}}),n.mounted=null;var o=n.mount.mounts.indexOf(r);n.mount.mounts.splice(o,1)},lookup:function(t,e){return t.node_ops.lookup(t,e)},mknod:function(t,e,n){var r=tt.lookupPath(t,{parent:!0}).node,i=Q.basename(t);if(!i||"."===i||".."===i)throw new tt.ErrnoError(28);var o=tt.mayCreate(r,i);if(o)throw new tt.ErrnoError(o);if(!r.node_ops.mknod)throw new tt.ErrnoError(63);return r.node_ops.mknod(r,i,e,n)},create:function(t,e){return e=void 0!==e?e:438,e&=4095,tt.mknod(t,e|=32768,0)},mkdir:function(t,e){return e=void 0!==e?e:511,e&=1023,tt.mknod(t,e|=16384,0)},mkdirTree:function(t,e){for(var n=t.split("/"),r="",i=0;ithis.length-1||t<0)){var e=t%this.chunkSize;return this.getter(t/this.chunkSize|0)[e]}},o.prototype.setDataGetter=function(t){this.getter=t},o.prototype.cacheLength=function(){var t=new XMLHttpRequest;if(t.open("HEAD",n,!1),t.send(null),!(t.status>=200&&t.status<300||304===t.status))throw new Error("Couldn't load "+n+". Status: "+t.status);var e,r=Number(t.getResponseHeader("Content-length")),i=(e=t.getResponseHeader("Accept-Ranges"))&&"bytes"===e,o=(e=t.getResponseHeader("Content-Encoding"))&&"gzip"===e,a=1048576;i||(a=r);var s=this;s.setDataGetter(function(t){var e=t*a,i=(t+1)*a-1;if(i=Math.min(i,r-1),void 0===s.chunks[t]&&(s.chunks[t]=function(t,e){if(t>e)throw new Error("invalid range ("+t+", "+e+") or no bytes requested!");if(e>r-1)throw new Error("only "+r+" bytes available! programmer error!");var i=new XMLHttpRequest;if(i.open("GET",n,!1),r!==a&&i.setRequestHeader("Range","bytes="+t+"-"+e),"undefined"!=typeof Uint8Array&&(i.responseType="arraybuffer"),i.overrideMimeType&&i.overrideMimeType("text/plain; charset=x-user-defined"),i.send(null),!(i.status>=200&&i.status<300||304===i.status))throw new Error("Couldn't load "+n+". Status: "+i.status);return void 0!==i.response?new Uint8Array(i.response||[]):at(i.responseText||"",!0)}(e,i)),void 0===s.chunks[t])throw new Error("doXHR failed!");return s.chunks[t]}),!o&&r||(a=r=1,r=this.getter(0).length,a=r,l("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=r,this._chunkSize=a,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var a,s=tt.createFile(t,e,a={isDevice:!1,url:n},r,i);a.contents?s.contents=a.contents:a.url&&(s.contents=null,s.url=a.url),Object.defineProperties(s,{usedBytes:{get:function(){return this.contents.length}}});var u={};return Object.keys(s.stream_ops).forEach(function(t){var e=s.stream_ops[t];u[t]=function(){if(!tt.forceLoadFile(s))throw new tt.ErrnoError(29);return e.apply(null,arguments)}}),u.read=function(t,e,n,r,i){if(!tt.forceLoadFile(s))throw new tt.ErrnoError(29);var o=t.node.contents;if(i>=o.length)return 0;var a=Math.min(o.length-i,r);if(o.slice)for(var u=0;u>2]=r.dev,y[n+4>>2]=0,y[n+8>>2]=r.ino,y[n+12>>2]=r.mode,y[n+16>>2]=r.nlink,y[n+20>>2]=r.uid,y[n+24>>2]=r.gid,y[n+28>>2]=r.rdev,y[n+32>>2]=0,G=[r.size>>>0,(z=r.size,+M(z)>=1?z>0?(0|R(+L(z/4294967296),4294967295))>>>0:~~+O((z-+(~~z>>>0))/4294967296)>>>0:0)],y[n+40>>2]=G[0],y[n+44>>2]=G[1],y[n+48>>2]=4096,y[n+52>>2]=r.blocks,y[n+56>>2]=r.atime.getTime()/1e3|0,y[n+60>>2]=0,y[n+64>>2]=r.mtime.getTime()/1e3|0,y[n+68>>2]=0,y[n+72>>2]=r.ctime.getTime()/1e3|0,y[n+76>>2]=0,G=[r.ino>>>0,(z=r.ino,+M(z)>=1?z>0?(0|R(+L(z/4294967296),4294967295))>>>0:~~+O((z-+(~~z>>>0))/4294967296)>>>0:0)],y[n+80>>2]=G[0],y[n+84>>2]=G[1],0},doMsync:function(t,e,n,r,i){var o=m.slice(t,t+n);tt.msync(e,o,i,n,r)},doMkdir:function(t,e){return"/"===(t=Q.normalize(t))[t.length-1]&&(t=t.substr(0,t.length-1)),tt.mkdir(t,e,0),0},doMknod:function(t,e,n){switch(61440&e){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return tt.mknod(t,e,n),0},doReadlink:function(t,e,n){if(n<=0)return-28;var r=tt.readlink(t),i=Math.min(n,T(r)),o=v[e+i];return E(r,m,e,n+1),v[e+i]=o,i},doAccess:function(t,e){if(-8&e)return-28;var n;if(!(n=tt.lookupPath(t,{follow:!0}).node))return-44;var r="";return 4&e&&(r+="r"),2&e&&(r+="w"),1&e&&(r+="x"),r&&tt.nodePermissions(n,r)?-2:0},doDup:function(t,e,n){var r=tt.getStream(n);return r&&tt.close(r),tt.open(t,e,0,n,n).fd},doReadv:function(t,e,n,r){for(var i=0,o=0;o>2],s=tt.read(t,v,y[e+8*o>>2],a,r);if(s<0)return-1;if(i+=s,s>2],y[e+(8*o+4)>>2],r);if(a<0)return-1;i+=a}return i},varargs:0,get:function(t){return et.varargs+=4,y[et.varargs-4>>2]},getStr:function(){return x(et.get())},getStreamFromFD:function(t){void 0===t&&(t=et.get());var e=tt.getStream(t);if(!e)throw new tt.ErrnoError(8);return e},get64:function(){var t=et.get();return et.get(),t},getZero:function(){et.get()}};function nt(t){try{return c.grow(t-g.byteLength+65535>>16),A(c.buffer),1}catch(e){}}var rt={};function it(){if(!it.strings){var t={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",_:a||"./this.program"};for(var e in rt)t[e]=rt[e];var n=[];for(var e in t)n.push(e+"="+t[e]);it.strings=n}return it.strings}function ot(t,e){ot.array||(ot.array=[]);var n,r=ot.array;for(r.length=0;n=m[t++];)100===n||102===n?(r.push(_[(e=e+7&-8)>>3]),e+=8):(r.push(y[(e=e+3&-4)>>2]),e+=4);return r}function at(t,e,n){var r=n>0?n:T(t)+1,i=new Array(r),o=E(t,i,0,i.length);return e&&(i.length=o),i}tt.staticInit();var st={h:function(t,e){et.varargs=e;try{return 42}catch(n){return void 0!==tt&&n instanceof tt.ErrnoError||j(n),-n.errno}},e:function(){j()},a:function(t,e,n){var r=ot(e,n);return H[t].apply(null,r)},c:function(t,e,n){m.set(m.subarray(e,e+n),t)},d:function(t){var e=m.length;if(t>2147418112)return!1;for(var n,r=1;r<=4;r*=2){var i=e*(1+.2/r);if(i=Math.min(i,t+100663296),nt(Math.min(2147418112,((n=Math.max(16777216,t,i))%65536>0&&(n+=65536-n%65536),n))))return!0}return!1},f:function(t,e){var n=it(),r=0;return n.forEach(function(n,i){var o=e+r;y[t+4*i>>2]=o,function(t,e,n){for(var r=0;r>0]=t.charCodeAt(r);v[e>>0]=0}(n,o),r+=n.length+1}),0},g:function(t,e){var n=it();y[t>>2]=n.length;var r=0;return n.forEach(function(t){r+=t.length+1}),y[e>>2]=r,0},j:function(t){try{var e=et.getStreamFromFD(t);return tt.close(e),0}catch(n){return void 0!==tt&&n instanceof tt.ErrnoError||j(n),n.errno}},i:function(t,e,n,r,i){try{var o=et.getStreamFromFD(t),a=4294967296*n+(e>>>0);return a<=-9007199254740992||a>=9007199254740992?-61:(tt.llseek(o,a,r),G=[o.position>>>0,(z=o.position,+M(z)>=1?z>0?(0|R(+L(z/4294967296),4294967295))>>>0:~~+O((z-+(~~z>>>0))/4294967296)>>>0:0)],y[i>>2]=G[0],y[i+4>>2]=G[1],o.getdents&&0===a&&0===r&&(o.getdents=null),0)}catch(s){return void 0!==tt&&s instanceof tt.ErrnoError||j(s),s.errno}},b:function(t,e,n,r){try{var i=et.getStreamFromFD(t),o=et.doWritev(i,e,n);return y[r>>2]=o,0}catch(a){return void 0!==tt&&a instanceof tt.ErrnoError||j(a),a.errno}},k:function(t){var e=Date.now();return y[t>>2]=e/1e3|0,y[t+4>>2]=e%1e3*1e3|0,0},memory:c,table:f},ut=function(){var t={a:st};function e(t,e){r.asm=t.exports,F()}function n(t){e(t.instance)}function i(e){return(u||"function"!=typeof fetch?new Promise(function(t,e){t(V())}):fetch(J,{credentials:"same-origin"}).then(function(t){if(!t.ok)throw"failed to load wasm binary file at '"+J+"'";return t.arrayBuffer()}).catch(function(){return V()})).then(function(e){return WebAssembly.instantiate(e,t)}).then(e,function(t){h("failed to asynchronously prepare wasm: "+t),j(t)})}if(q(),r.instantiateWasm)try{return r.instantiateWasm(t,e)}catch(o){return h("Module.instantiateWasm callback failed with error: "+o),!1}return function(){if(u||"function"!=typeof WebAssembly.instantiateStreaming||Y(J)||"function"!=typeof fetch)return i(n);fetch(J,{credentials:"same-origin"}).then(function(e){return WebAssembly.instantiateStreaming(e,t).then(n,function(t){h("wasm streaming compile failed: "+t),h("falling back to ArrayBuffer instantiation"),i(n)})})}(),{}}();r.asm=ut;var ct,lt=r.___wasm_call_ctors=function(){return(lt=r.___wasm_call_ctors=r.asm.l).apply(null,arguments)},ht=r._emscripten_bind_CExpat_CExpat_0=function(){return(ht=r._emscripten_bind_CExpat_CExpat_0=r.asm.m).apply(null,arguments)},ft=r._emscripten_bind_CExpat_create_0=function(){return(ft=r._emscripten_bind_CExpat_create_0=r.asm.n).apply(null,arguments)},dt=r._emscripten_bind_CExpat_destroy_0=function(){return(dt=r._emscripten_bind_CExpat_destroy_0=r.asm.o).apply(null,arguments)},pt=r._emscripten_bind_CExpat_parse_1=function(){return(pt=r._emscripten_bind_CExpat_parse_1=r.asm.p).apply(null,arguments)},gt=r._emscripten_bind_CExpat_tag_0=function(){return(gt=r._emscripten_bind_CExpat_tag_0=r.asm.q).apply(null,arguments)},vt=r._emscripten_bind_CExpat_attrs_0=function(){return(vt=r._emscripten_bind_CExpat_attrs_0=r.asm.r).apply(null,arguments)},mt=r._emscripten_bind_CExpat_content_0=function(){return(mt=r._emscripten_bind_CExpat_content_0=r.asm.s).apply(null,arguments)},yt=r._emscripten_bind_CExpat_startElement_0=function(){return(yt=r._emscripten_bind_CExpat_startElement_0=r.asm.t).apply(null,arguments)},_t=r._emscripten_bind_CExpat_endElement_0=function(){return(_t=r._emscripten_bind_CExpat_endElement_0=r.asm.u).apply(null,arguments)},wt=r._emscripten_bind_CExpat_characterData_0=function(){return(wt=r._emscripten_bind_CExpat_characterData_0=r.asm.v).apply(null,arguments)},bt=r._emscripten_bind_CExpat___destroy___0=function(){return(bt=r._emscripten_bind_CExpat___destroy___0=r.asm.w).apply(null,arguments)},xt=r._emscripten_bind_CExpatJS_CExpatJS_0=function(){return(xt=r._emscripten_bind_CExpatJS_CExpatJS_0=r.asm.x).apply(null,arguments)},Et=r._emscripten_bind_CExpatJS_startElement_0=function(){return(Et=r._emscripten_bind_CExpatJS_startElement_0=r.asm.y).apply(null,arguments)},Tt=r._emscripten_bind_CExpatJS_endElement_0=function(){return(Tt=r._emscripten_bind_CExpatJS_endElement_0=r.asm.z).apply(null,arguments)},At=r._emscripten_bind_CExpatJS_characterData_0=function(){return(At=r._emscripten_bind_CExpatJS_characterData_0=r.asm.A).apply(null,arguments)},St=r._emscripten_bind_CExpatJS___destroy___0=function(){return(St=r._emscripten_bind_CExpatJS___destroy___0=r.asm.B).apply(null,arguments)},kt=r._emscripten_bind_VoidPtr___destroy___0=function(){return(kt=r._emscripten_bind_VoidPtr___destroy___0=r.asm.C).apply(null,arguments)},It=r._malloc=function(){return(It=r._malloc=r.asm.D).apply(null,arguments)};function Dt(t){function e(){ct||(ct=!0,d||(Z=!0,r.noFSInit||tt.init.initialized||tt.init(),$.init(),k(D),tt.ignorePermissions=!1,k(N),r.onRuntimeInitialized&&r.onRuntimeInitialized(),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)t=r.postRun.shift(),C.unshift(t);var t;k(C)}()))}U>0||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)t=r.preRun.shift(),I.unshift(t);var t;k(I)}(),U>0||(r.setStatus?(r.setStatus("Running..."),setTimeout(function(){setTimeout(function(){r.setStatus("")},1),e()},1)):e()))}if(r._free=function(){return(r._free=r.asm.E).apply(null,arguments)},r.___errno_location=function(){return(r.___errno_location=r.asm.F).apply(null,arguments)},r.stackAlloc=function(){return(r.stackAlloc=r.asm.G).apply(null,arguments)},r.dynCall_vi=function(){return(r.dynCall_vi=r.asm.H).apply(null,arguments)},r.asm=ut,r.then=function(t){if(ct)t(r);else{var e=r.onRuntimeInitialized;r.onRuntimeInitialized=function(){e&&e(),t(r)}}return r},P=function t(){ct||Dt(),ct||(P=t)},r.run=Dt,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();function Nt(){}function Ct(t){return(t||Nt).__cache__}function Zt(t,e){var n=Ct(e),r=n[t];return r||((r=Object.create((e||Nt).prototype)).ptr=t,n[t]=r)}Dt(),(Nt.prototype=Object.create(Nt.prototype)).constructor=Nt,Nt.prototype.__class__=Nt,Nt.__cache__={},r.WrapperObject=Nt,r.getCache=Ct,r.wrapPointer=Zt,r.castObject=function(t,e){return Zt(t.ptr,e)},r.NULL=Zt(0),r.destroy=function(t){if(!t.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";t.__destroy__(),delete Ct(t.__class__)[t.ptr]},r.compare=function(t,e){return t.ptr===e.ptr},r.getPointer=function(t){return t.ptr},r.getClass=function(t){return t.__class__};var Mt={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(Mt.needed){for(var t=0;t=Mt.size?(p(i>0),Mt.needed+=i,n=r._malloc(i),Mt.temps.push(n)):(n=Mt.buffer+Mt.pos,Mt.pos+=i),n},copy:function(t,e,n){var r=n;switch(e.BYTES_PER_ELEMENT){case 2:r>>=1;break;case 4:r>>=2;break;case 8:r>>=3}for(var i=0;i=r);)++i;if(i-e>16&&t.subarray&&A)return A.decode(t.subarray(e,i));for(var o="";e>10,56320|1023&c)}}else o+=String.fromCharCode((31&a)<<6|s)}else o+=String.fromCharCode(a)}return o}function k(t,e){return t?S(b,t,e):""}function I(t,e,n,r){if(!(r>0))return 0;for(var i=n,o=n+r-1,a=0;a=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&t.charCodeAt(++a)),s<=127){if(n>=o)break;e[n++]=s}else if(s<=2047){if(n+1>=o)break;e[n++]=192|s>>6,e[n++]=128|63&s}else if(s<=65535){if(n+2>=o)break;e[n++]=224|s>>12,e[n++]=128|s>>6&63,e[n++]=128|63&s}else{if(n+3>=o)break;e[n++]=240|s>>18,e[n++]=128|s>>12&63,e[n++]=128|s>>6&63,e[n++]=128|63&s}}return e[n]=0,n-i}function D(t){for(var e=0,n=0;n=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&t.charCodeAt(++n)),r<=127?++e:e+=r<=2047?2:r<=65535?3:4}return e}function N(t){_=t,r.HEAP8=w=new Int8Array(t),r.HEAP16=x=new Int16Array(t),r.HEAP32=E=new Int32Array(t),r.HEAPU8=b=new Uint8Array(t),r.HEAPU16=new Uint16Array(t),r.HEAPU32=new Uint32Array(t),r.HEAPF32=new Float32Array(t),r.HEAPF64=T=new Float64Array(t)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var C=r.TOTAL_MEMORY||16777216;function Z(t){for(;t.length>0;){var e=t.shift();if("function"!=typeof e){var n=e.func;"number"==typeof n?void 0===e.arg?r.dynCall_v(n):r.dynCall_vi(n,e.arg):n(void 0===e.arg?null:e.arg)}else e()}}(d=r.wasmMemory?r.wasmMemory:new WebAssembly.Memory({initial:C/65536}))&&(_=d.buffer),C=_.byteLength,N(_),E[54772]=5462128;var M=[],O=[],L=[],R=[],U=!1,P=Math.abs,q=Math.ceil,F=Math.floor,j=Math.min,Y=0,B=null;function z(t){Y++,r.monitorRunDependencies&&r.monitorRunDependencies(Y)}function G(t){if(Y--,r.monitorRunDependencies&&r.monitorRunDependencies(Y),0==Y&&B){var e=B;B=null,e()}}function J(t){throw r.onAbort&&r.onAbort(t),c(t+=""),l(t),m=!0,t="abort("+t+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(t)}function V(t){return String.prototype.startsWith?t.startsWith("data:application/octet-stream;base64,"):0===t.indexOf("data:application/octet-stream;base64,")}r.preloadedImages={},r.preloadedAudios={};var H,Q,W,X="graphvizlib.wasm";function $(){try{if(h)return new Uint8Array(h);throw"both async and sync fetching of the wasm failed"}catch(l){J(l)}}V(X)||(H=X,X=r.locateFile?r.locateFile(H,u):u+H);var K={1088:function(t,e){var n=k(t),r=k(e);at.createPath("/",nt.dirname(n)),at.writeFile(nt.join("/",n),r)}};function tt(){J()}function et(t){return r.___errno_location&&(E[r.___errno_location()>>2]=t),t}O.push({func:function(){Et()}});var nt={splitPath:function(t){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(t).slice(1)},normalizeArray:function(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n;n--)t.unshift("..");return t},normalize:function(t){var e="/"===t.charAt(0),n="/"===t.substr(-1);return(t=nt.normalizeArray(t.split("/").filter(function(t){return!!t}),!e).join("/"))||e||(t="."),t&&n&&(t+="/"),(e?"/":"")+t},dirname:function(t){var e=nt.splitPath(t),n=e[0],r=e[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},basename:function(t){if("/"===t)return"/";var e=t.lastIndexOf("/");return-1===e?t:t.substr(e+1)},extname:function(t){return nt.splitPath(t)[3]},join:function(){var t=Array.prototype.slice.call(arguments,0);return nt.normalize(t.join("/"))},join2:function(t,e){return nt.normalize(t+"/"+e)}},rt={resolve:function(){for(var t="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var r=n>=0?arguments[n]:at.cwd();if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");if(!r)return"";t=r+"/"+t,e="/"===r.charAt(0)}return(e?"/":"")+(t=nt.normalizeArray(t.split("/").filter(function(t){return!!t}),!e).join("/"))||"."},relative:function(t,e){function n(t){for(var e=0;e=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=rt.resolve(t).substr(1),e=rt.resolve(e).substr(1);for(var r=n(t.split("/")),i=n(e.split("/")),o=Math.min(r.length,i.length),a=o,s=0;s0&&(c(S(t.output,0)),t.output=[])}},default_tty1_ops:{put_char:function(t,e){null===e||10===e?(l(S(t.output,0)),t.output=[]):0!=e&&t.output.push(e)},flush:function(t){t.output&&t.output.length>0&&(l(S(t.output,0)),t.output=[])}}},ot={ops_table:null,mount:function(t){return ot.createNode(null,"/",16895,0)},createNode:function(t,e,n,r){if(at.isBlkdev(n)||at.isFIFO(n))throw new at.ErrnoError(63);ot.ops_table||(ot.ops_table={dir:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr,lookup:ot.node_ops.lookup,mknod:ot.node_ops.mknod,rename:ot.node_ops.rename,unlink:ot.node_ops.unlink,rmdir:ot.node_ops.rmdir,readdir:ot.node_ops.readdir,symlink:ot.node_ops.symlink},stream:{llseek:ot.stream_ops.llseek}},file:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr},stream:{llseek:ot.stream_ops.llseek,read:ot.stream_ops.read,write:ot.stream_ops.write,allocate:ot.stream_ops.allocate,mmap:ot.stream_ops.mmap,msync:ot.stream_ops.msync}},link:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr,readlink:ot.node_ops.readlink},stream:{}},chrdev:{node:{getattr:ot.node_ops.getattr,setattr:ot.node_ops.setattr},stream:at.chrdev_stream_ops}});var i=at.createNode(t,e,n,r);return at.isDir(i.mode)?(i.node_ops=ot.ops_table.dir.node,i.stream_ops=ot.ops_table.dir.stream,i.contents={}):at.isFile(i.mode)?(i.node_ops=ot.ops_table.file.node,i.stream_ops=ot.ops_table.file.stream,i.usedBytes=0,i.contents=null):at.isLink(i.mode)?(i.node_ops=ot.ops_table.link.node,i.stream_ops=ot.ops_table.link.stream):at.isChrdev(i.mode)&&(i.node_ops=ot.ops_table.chrdev.node,i.stream_ops=ot.ops_table.chrdev.stream),i.timestamp=Date.now(),t&&(t.contents[e]=i),i},getFileDataAsRegularArray:function(t){if(t.contents&&t.contents.subarray){for(var e=[],n=0;n=e)){e=Math.max(e,n*(n<1048576?2:1.125)|0),0!=n&&(e=Math.max(e,256));var r=t.contents;t.contents=new Uint8Array(e),t.usedBytes>0&&t.contents.set(r.subarray(0,t.usedBytes),0)}},resizeFileStorage:function(t,e){if(t.usedBytes!=e){if(0==e)return t.contents=null,void(t.usedBytes=0);if(!t.contents||t.contents.subarray){var n=t.contents;return t.contents=new Uint8Array(e),n&&t.contents.set(n.subarray(0,Math.min(e,t.usedBytes))),void(t.usedBytes=e)}if(t.contents||(t.contents=[]),t.contents.length>e)t.contents.length=e;else for(;t.contents.length=t.node.usedBytes)return 0;var a=Math.min(t.node.usedBytes-i,r);if(a>8&&o.subarray)e.set(o.subarray(i,i+a),n);else for(var s=0;s0||i+r8)throw new at.ErrnoError(32);for(var i=nt.normalizeArray(t.split("/").filter(function(t){return!!t}),!1),o=at.root,a="/",s=0;s40)throw new at.ErrnoError(32)}}return{path:a,node:o}},getPath:function(t){for(var e;;){if(at.isRoot(t)){var n=t.mount.mountpoint;return e?"/"!==n[n.length-1]?n+"/"+e:n+e:n}e=e?t.name+"/"+e:t.name,t=t.parent}},hashName:function(t,e){for(var n=0,r=0;r>>0)%at.nameTable.length},hashAddNode:function(t){var e=at.hashName(t.parent.id,t.name);t.name_next=at.nameTable[e],at.nameTable[e]=t},hashRemoveNode:function(t){var e=at.hashName(t.parent.id,t.name);if(at.nameTable[e]===t)at.nameTable[e]=t.name_next;else for(var n=at.nameTable[e];n;){if(n.name_next===t){n.name_next=t.name_next;break}n=n.name_next}},lookupNode:function(t,e){var n=at.mayLookup(t);if(n)throw new at.ErrnoError(n,t);for(var r=at.hashName(t.id,e),i=at.nameTable[r];i;i=i.name_next)if(i.parent.id===t.id&&i.name===e)return i;return at.lookup(t,e)},createNode:function(t,e,n,r){at.FSNode||(at.FSNode=function(t,e,n,r){t||(t=this),this.parent=t,this.mount=t.mount,this.mounted=null,this.id=at.nextInode++,this.name=e,this.mode=n,this.node_ops={},this.stream_ops={},this.rdev=r},at.FSNode.prototype={},Object.defineProperties(at.FSNode.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(t){t?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(t){t?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return at.isDir(this.mode)}},isDevice:{get:function(){return at.isChrdev(this.mode)}}}));var i=new at.FSNode(t,e,n,r);return at.hashAddNode(i),i},destroyNode:function(t){at.hashRemoveNode(t)},isRoot:function(t){return t===t.parent},isMountpoint:function(t){return!!t.mounted},isFile:function(t){return 32768==(61440&t)},isDir:function(t){return 16384==(61440&t)},isLink:function(t){return 40960==(61440&t)},isChrdev:function(t){return 8192==(61440&t)},isBlkdev:function(t){return 24576==(61440&t)},isFIFO:function(t){return 4096==(61440&t)},isSocket:function(t){return 49152==(49152&t)},flagModes:{r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function(t){var e=at.flagModes[t];if(void 0===e)throw new Error("Unknown file open mode: "+t);return e},flagsToPermissionString:function(t){var e=["r","w","rw"][3&t];return 512&t&&(e+="w"),e},nodePermissions:function(t,e){return at.ignorePermissions||(-1===e.indexOf("r")||292&t.mode)&&(-1===e.indexOf("w")||146&t.mode)&&(-1===e.indexOf("x")||73&t.mode)?0:2},mayLookup:function(t){return at.nodePermissions(t,"x")||(t.node_ops.lookup?0:2)},mayCreate:function(t,e){try{return at.lookupNode(t,e),20}catch(n){}return at.nodePermissions(t,"wx")},mayDelete:function(t,e,n){var r;try{r=at.lookupNode(t,e)}catch(o){return o.errno}var i=at.nodePermissions(t,"wx");if(i)return i;if(n){if(!at.isDir(r.mode))return 54;if(at.isRoot(r)||at.getPath(r)===at.cwd())return 10}else if(at.isDir(r.mode))return 31;return 0},mayOpen:function(t,e){return t?at.isLink(t.mode)?32:at.isDir(t.mode)&&("r"!==at.flagsToPermissionString(e)||512&e)?31:at.nodePermissions(t,at.flagsToPermissionString(e)):44},MAX_OPEN_FDS:4096,nextfd:function(t,e){e=e||at.MAX_OPEN_FDS;for(var n=t=t||0;n<=e;n++)if(!at.streams[n])return n;throw new at.ErrnoError(33)},getStream:function(t){return at.streams[t]},createStream:function(t,e,n){at.FSStream||(at.FSStream=function(){},at.FSStream.prototype={},Object.defineProperties(at.FSStream.prototype,{object:{get:function(){return this.node},set:function(t){this.node=t}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}}));var r=new at.FSStream;for(var i in t)r[i]=t[i];t=r;var o=at.nextfd(e,n);return t.fd=o,at.streams[o]=t,t},closeStream:function(t){at.streams[t]=null},chrdev_stream_ops:{open:function(t){var e=at.getDevice(t.node.rdev);t.stream_ops=e.stream_ops,t.stream_ops.open&&t.stream_ops.open(t)},llseek:function(){throw new at.ErrnoError(70)}},major:function(t){return t>>8},minor:function(t){return 255&t},makedev:function(t,e){return t<<8|e},registerDevice:function(t,e){at.devices[t]={stream_ops:e}},getDevice:function(t){return at.devices[t]},getMounts:function(t){for(var e=[],n=[t];n.length;){var r=n.pop();e.push(r),n.push.apply(n,r.mounts)}return e},syncfs:function(t,e){"function"==typeof t&&(e=t,t=!1),at.syncFSRequests++,at.syncFSRequests>1&&l("warning: "+at.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var n=at.getMounts(at.root.mount),r=0;function i(t){return at.syncFSRequests--,e(t)}function o(t){if(t)return o.errored?void 0:(o.errored=!0,i(t));++r>=n.length&&i(null)}n.forEach(function(e){if(!e.type.syncfs)return o(null);e.type.syncfs(e,t,o)})},mount:function(t,e,n){var r,i="/"===n,o=!n;if(i&&at.root)throw new at.ErrnoError(10);if(!i&&!o){var a=at.lookupPath(n,{follow_mount:!1});if(n=a.path,at.isMountpoint(r=a.node))throw new at.ErrnoError(10);if(!at.isDir(r.mode))throw new at.ErrnoError(54)}var s={type:t,opts:e,mountpoint:n,mounts:[]},u=t.mount(s);return u.mount=s,s.root=u,i?at.root=u:r&&(r.mounted=s,r.mount&&r.mount.mounts.push(s)),u},unmount:function(t){var e=at.lookupPath(t,{follow_mount:!1});if(!at.isMountpoint(e.node))throw new at.ErrnoError(28);var n=e.node,r=n.mounted,i=at.getMounts(r);Object.keys(at.nameTable).forEach(function(t){for(var e=at.nameTable[t];e;){var n=e.name_next;-1!==i.indexOf(e.mount)&&at.destroyNode(e),e=n}}),n.mounted=null;var o=n.mount.mounts.indexOf(r);n.mount.mounts.splice(o,1)},lookup:function(t,e){return t.node_ops.lookup(t,e)},mknod:function(t,e,n){var r=at.lookupPath(t,{parent:!0}).node,i=nt.basename(t);if(!i||"."===i||".."===i)throw new at.ErrnoError(28);var o=at.mayCreate(r,i);if(o)throw new at.ErrnoError(o);if(!r.node_ops.mknod)throw new at.ErrnoError(63);return r.node_ops.mknod(r,i,e,n)},create:function(t,e){return e=void 0!==e?e:438,e&=4095,at.mknod(t,e|=32768,0)},mkdir:function(t,e){return e=void 0!==e?e:511,e&=1023,at.mknod(t,e|=16384,0)},mkdirTree:function(t,e){for(var n=t.split("/"),r="",i=0;ithis.length-1||t<0)){var e=t%this.chunkSize;return this.getter(t/this.chunkSize|0)[e]}},o.prototype.setDataGetter=function(t){this.getter=t},o.prototype.cacheLength=function(){var t=new XMLHttpRequest;if(t.open("HEAD",n,!1),t.send(null),!(t.status>=200&&t.status<300||304===t.status))throw new Error("Couldn't load "+n+". Status: "+t.status);var e,r=Number(t.getResponseHeader("Content-length")),i=(e=t.getResponseHeader("Accept-Ranges"))&&"bytes"===e,o=(e=t.getResponseHeader("Content-Encoding"))&&"gzip"===e,a=1048576;i||(a=r);var s=this;s.setDataGetter(function(t){var e=t*a,i=(t+1)*a-1;if(i=Math.min(i,r-1),void 0===s.chunks[t]&&(s.chunks[t]=function(t,e){if(t>e)throw new Error("invalid range ("+t+", "+e+") or no bytes requested!");if(e>r-1)throw new Error("only "+r+" bytes available! programmer error!");var i=new XMLHttpRequest;if(i.open("GET",n,!1),r!==a&&i.setRequestHeader("Range","bytes="+t+"-"+e),"undefined"!=typeof Uint8Array&&(i.responseType="arraybuffer"),i.overrideMimeType&&i.overrideMimeType("text/plain; charset=x-user-defined"),i.send(null),!(i.status>=200&&i.status<300||304===i.status))throw new Error("Couldn't load "+n+". Status: "+i.status);return void 0!==i.response?new Uint8Array(i.response||[]):_t(i.responseText||"",!0)}(e,i)),void 0===s.chunks[t])throw new Error("doXHR failed!");return s.chunks[t]}),!o&&r||(a=r=1,r=this.getter(0).length,a=r,c("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=r,this._chunkSize=a,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var a,s=at.createFile(t,e,a={isDevice:!1,url:n},r,i);a.contents?s.contents=a.contents:a.url&&(s.contents=null,s.url=a.url),Object.defineProperties(s,{usedBytes:{get:function(){return this.contents.length}}});var u={};return Object.keys(s.stream_ops).forEach(function(t){var e=s.stream_ops[t];u[t]=function(){if(!at.forceLoadFile(s))throw new at.ErrnoError(29);return e.apply(null,arguments)}}),u.read=function(t,e,n,r,i){if(!at.forceLoadFile(s))throw new at.ErrnoError(29);var o=t.node.contents;if(i>=o.length)return 0;var a=Math.min(o.length-i,r);if(o.slice)for(var u=0;u>2]=r.dev,E[n+4>>2]=0,E[n+8>>2]=r.ino,E[n+12>>2]=r.mode,E[n+16>>2]=r.nlink,E[n+20>>2]=r.uid,E[n+24>>2]=r.gid,E[n+28>>2]=r.rdev,E[n+32>>2]=0,W=[r.size>>>0,(Q=r.size,+P(Q)>=1?Q>0?(0|j(+F(Q/4294967296),4294967295))>>>0:~~+q((Q-+(~~Q>>>0))/4294967296)>>>0:0)],E[n+40>>2]=W[0],E[n+44>>2]=W[1],E[n+48>>2]=4096,E[n+52>>2]=r.blocks,E[n+56>>2]=r.atime.getTime()/1e3|0,E[n+60>>2]=0,E[n+64>>2]=r.mtime.getTime()/1e3|0,E[n+68>>2]=0,E[n+72>>2]=r.ctime.getTime()/1e3|0,E[n+76>>2]=0,W=[r.ino>>>0,(Q=r.ino,+P(Q)>=1?Q>0?(0|j(+F(Q/4294967296),4294967295))>>>0:~~+q((Q-+(~~Q>>>0))/4294967296)>>>0:0)],E[n+80>>2]=W[0],E[n+84>>2]=W[1],0},doMsync:function(t,e,n,r,i){var o=b.slice(t,t+n);at.msync(e,o,i,n,r)},doMkdir:function(t,e){return"/"===(t=nt.normalize(t))[t.length-1]&&(t=t.substr(0,t.length-1)),at.mkdir(t,e,0),0},doMknod:function(t,e,n){switch(61440&e){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return at.mknod(t,e,n),0},doReadlink:function(t,e,n){if(n<=0)return-28;var r=at.readlink(t),i=Math.min(n,D(r)),o=w[e+i];return I(r,b,e,n+1),w[e+i]=o,i},doAccess:function(t,e){if(-8&e)return-28;var n;if(!(n=at.lookupPath(t,{follow:!0}).node))return-44;var r="";return 4&e&&(r+="r"),2&e&&(r+="w"),1&e&&(r+="x"),r&&at.nodePermissions(n,r)?-2:0},doDup:function(t,e,n){var r=at.getStream(n);return r&&at.close(r),at.open(t,e,0,n,n).fd},doReadv:function(t,e,n,r){for(var i=0,o=0;o>2],s=at.read(t,w,E[e+8*o>>2],a,r);if(s<0)return-1;if(i+=s,s>2],E[e+(8*o+4)>>2],r);if(a<0)return-1;i+=a}return i},varargs:0,get:function(t){return st.varargs+=4,E[st.varargs-4>>2]},getStr:function(){return k(st.get())},getStreamFromFD:function(t){void 0===t&&(t=st.get());var e=at.getStream(t);if(!e)throw new at.ErrnoError(8);return e},get64:function(){var t=st.get();return st.get(),t},getZero:function(){st.get()}};function ut(t,e,n){e|=0;var r,i=0,o=0,a=0;if(r=(t|=0)+(n|=0)|0,e&=255,(0|n)>=67){for(;0!=(3&t);)w[t>>0]=e,t=t+1|0;for(a=e|e<<8|e<<16|e<<24,o=(i=-4&r|0)-64|0;(0|t)<=(0|o);)E[t>>2]=a,E[t+4>>2]=a,E[t+8>>2]=a,E[t+12>>2]=a,E[t+16>>2]=a,E[t+20>>2]=a,E[t+24>>2]=a,E[t+28>>2]=a,E[t+32>>2]=a,E[t+36>>2]=a,E[t+40>>2]=a,E[t+44>>2]=a,E[t+48>>2]=a,E[t+52>>2]=a,E[t+56>>2]=a,E[t+60>>2]=a,t=t+64|0;for(;(0|t)<(0|i);)E[t>>2]=a,t=t+4|0}for(;(0|t)<(0|r);)w[t>>0]=e,t=t+1|0;return r-n|0}var ct=0;function lt(t){try{return d.grow(t-_.byteLength+65535>>16),N(d.buffer),1}catch(e){}}var ht={};function ft(){if(!ft.strings){var t={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",_:a||"./this.program"};for(var e in ht)t[e]=ht[e];var n=[];for(var e in t)n.push(e+"="+t[e]);ft.strings=n}return ft.strings}function dt(t){return t%4==0&&(t%100!=0||t%400==0)}function pt(t,e){for(var n=0,r=0;r<=e;n+=t[r++]);return n}var gt=[31,29,31,30,31,30,31,31,30,31,30,31],vt=[31,28,31,30,31,30,31,31,30,31,30,31];function mt(t,e){for(var n=new Date(t.getTime());e>0;){var r=dt(n.getFullYear()),i=n.getMonth(),o=(r?gt:vt)[i];if(!(e>o-n.getDate()))return n.setDate(n.getDate()+e),n;e-=o-n.getDate()+1,n.setDate(1),i<11?n.setMonth(i+1):(n.setMonth(0),n.setFullYear(n.getFullYear()+1))}return n}function yt(t,e){yt.array||(yt.array=[]);var n,r=yt.array;for(r.length=0;n=b[t++];)100===n||102===n?(r.push(T[(e=e+7&-8)>>3]),e+=8):(r.push(E[(e=e+3&-4)>>2]),e+=4);return r}function _t(t,e,n){var r=n>0?n:D(t)+1,i=new Array(r),o=I(t,i,0,i.length);return e&&(i.length=o),i}tt=function(){return performance.now()},at.staticInit();var wt={M:function(t,e){return function(t,e){var n;if(0===t)n=Date.now();else{if(1!==t&&4!==t)return et(28),-1;n=tt()}return E[e>>2]=n/1e3|0,E[e+4>>2]=n%1e3*1e3*1e3|0,0}(t,e)},k:function(t){return Dt(t)},j:function(t,e,n){throw"uncaught_exception"in Mt?Mt.uncaught_exceptions++:Mt.uncaught_exceptions=1,t},q:function(){},U:function(t,e){return et(63),-1},P:function(t,e){st.varargs=e;try{var n=st.getStr();return at.unlink(n),0}catch(r){return void 0!==at&&r instanceof at.ErrnoError||J(r),-r.errno}},R:function(t,e){st.varargs=e;try{return function(t,e,n,r,i,o){var a;o<<=12;var s=!1;if(0!=(16&r)&&t%16384!=0)return-28;if(0!=(32&r)){if(!(a=Ot(16384,e)))return-48;ut(a,0,e),s=!0}else{var u=at.getStream(i);if(!u)return-8;var c=at.mmap(u,b,t,e,o,n,r);a=c.ptr,s=c.allocated}return st.mappings[a]={malloc:a,len:e,allocated:s,fd:i,flags:r,offset:o},a}(st.get(),st.get(),st.get(),st.get(),st.get(),st.get())}catch(n){return void 0!==at&&n instanceof at.ErrnoError||J(n),-n.errno}},S:function(t,e){st.varargs=e;try{var n=st.getStr(),r=st.get();return st.doStat(at.stat,n,r)}catch(i){return void 0!==at&&i instanceof at.ErrnoError||J(i),-i.errno}},T:function(t,e){st.varargs=e;try{var n=st.getStreamFromFD(),r=st.get();return st.doStat(at.stat,n.path,r)}catch(i){return void 0!==at&&i instanceof at.ErrnoError||J(i),-i.errno}},L:function(t,e){st.varargs=e;try{return 42}catch(n){return void 0!==at&&n instanceof at.ErrnoError||J(n),-n.errno}},y:function(t,e){st.varargs=e;try{var n=st.getStreamFromFD();switch(st.get()){case 0:return(r=st.get())<0?-28:at.open(n.path,n.flags,0,r).fd;case 1:case 2:return 0;case 3:return n.flags;case 4:var r=st.get();return n.flags|=r,0;case 12:return r=st.get(),x[r+0>>1]=2,0;case 13:case 14:return 0;case 16:case 8:return-28;case 9:return et(28),-1;default:return-28}}catch(i){return void 0!==at&&i instanceof at.ErrnoError||J(i),-i.errno}},K:function(t,e){st.varargs=e;try{var n=st.getStr(),r=st.get();return st.doAccess(n,r)}catch(i){return void 0!==at&&i instanceof at.ErrnoError||J(i),-i.errno}},z:function(t,e){st.varargs=e;try{var n=st.getStr(),r=st.get(),i=st.get();return at.open(n,r,i).fd}catch(o){return void 0!==at&&o instanceof at.ErrnoError||J(o),-o.errno}},O:function(t,e){st.varargs=e;try{var n=st.getStreamFromFD(),r=st.get();switch(r){case 21509:case 21505:return n.tty?0:-59;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return n.tty?0:-59;case 21519:if(!n.tty)return-59;var i=st.get();return E[i>>2]=0,0;case 21520:return n.tty?-28:-59;case 21531:return i=st.get(),at.ioctl(n,r,i);case 21523:case 21524:return n.tty?0:-59;default:J("bad ioctl syscall "+r)}}catch(o){return void 0!==at&&o instanceof at.ErrnoError||J(o),-o.errno}},Q:function(t,e){st.varargs=e;try{return function(t,e){if(-1===t||0===e)return-28;var n=st.mappings[t];if(!n)return 0;if(e===n.len){var r=at.getStream(n.fd);st.doMsync(t,r,e,n.flags,n.offset),at.munmap(r),st.mappings[t]=null,n.allocated&&Nt(n.malloc)}return 0}(st.get(),st.get())}catch(n){return void 0!==at&&n instanceof at.ErrnoError||J(n),-n.errno}},m:function(){},w:function(){J()},C:function(t,e,n){var r=yt(e,n);return K[t].apply(null,r)},d:function(t,e){!function(t,e){throw Zt(t,e||1),"longjmp"}(t,e)},E:function(t,e,n){b.set(b.subarray(e,e+n),t)},F:function(t){var e=b.length;if(t>2147418112)return!1;for(var n,r=1;r<=4;r*=2){var i=e*(1+.2/r);if(i=Math.min(i,t+100663296),lt(Math.min(2147418112,((n=Math.max(16777216,t,i))%65536>0&&(n+=65536-n%65536),n))))return!0}return!1},I:function(t,e){var n=ft(),r=0;return n.forEach(function(n,i){var o=e+r;E[t+4*i>>2]=o,function(t,e,n){for(var r=0;r>0]=t.charCodeAt(r);w[e>>0]=0}(n,o),r+=n.length+1}),0},J:function(t,e){var n=ft();E[t>>2]=n.length;var r=0;return n.forEach(function(t){r+=t.length+1}),E[e>>2]=r,0},l:function(t){!function(t,e){f||(m=!0,r.onExit&&r.onExit(t)),s(t,new Xt(t))}(t)},p:function(t){try{var e=st.getStreamFromFD(t);return at.close(e),0}catch(n){return void 0!==at&&n instanceof at.ErrnoError||J(n),n.errno}},H:function(t,e){try{var n=st.getStreamFromFD(t),r=n.tty?2:at.isDir(n.mode)?3:at.isLink(n.mode)?7:4;return w[e>>0]=r,0}catch(i){return void 0!==at&&i instanceof at.ErrnoError||J(i),i.errno}},N:function(t,e,n,r){try{var i=st.getStreamFromFD(t),o=st.doReadv(i,e,n);return E[r>>2]=o,0}catch(a){return void 0!==at&&a instanceof at.ErrnoError||J(a),a.errno}},D:function(t,e,n,r,i){try{var o=st.getStreamFromFD(t),a=4294967296*n+(e>>>0);return a<=-9007199254740992||a>=9007199254740992?-61:(at.llseek(o,a,r),W=[o.position>>>0,(Q=o.position,+P(Q)>=1?Q>0?(0|j(+F(Q/4294967296),4294967295))>>>0:~~+q((Q-+(~~Q>>>0))/4294967296)>>>0:0)],E[i>>2]=W[0],E[i+4>>2]=W[1],o.getdents&&0===a&&0===r&&(o.getdents=null),0)}catch(s){return void 0!==at&&s instanceof at.ErrnoError||J(s),s.errno}},x:function(t,e,n,r){try{var i=st.getStreamFromFD(t),o=st.doWritev(i,e,n);return E[r>>2]=o,0}catch(a){return void 0!==at&&a instanceof at.ErrnoError||J(a),a.errno}},a:function(){return 0|p},X:function(t){var e=Date.now();return E[t>>2]=e/1e3|0,E[t+4>>2]=e%1e3*1e3|0,0},Y:function(t){var e=Qt();try{return Vt(t)}catch(n){if(Wt(e),n!==n+0&&"longjmp"!==n)throw n;Zt(1,0)}},V:function(t,e){var n=Qt();try{return Ht(t,e)}catch(r){if(Wt(n),r!==r+0&&"longjmp"!==r)throw r;Zt(1,0)}},v:function(t){var e=Qt();try{return jt(t)}catch(n){if(Wt(e),n!==n+0&&"longjmp"!==n)throw n;Zt(1,0)}},f:function(t,e){var n=Qt();try{return Yt(t,e)}catch(r){if(Wt(n),r!==r+0&&"longjmp"!==r)throw r;Zt(1,0)}},e:function t(e,n,r){var i=Qt();try{return Bt(e,n,r)}catch(t){if(Wt(i),t!==t+0&&"longjmp"!==t)throw t;Zt(1,0)}},g:function(t,e,n,r){var i=Qt();try{return zt(t,e,n,r)}catch(o){if(Wt(i),o!==o+0&&"longjmp"!==o)throw o;Zt(1,0)}},n:function(t,e,n,r,i){var o=Qt();try{return Gt(t,e,n,r,i)}catch(a){if(Wt(o),a!==a+0&&"longjmp"!==a)throw a;Zt(1,0)}},W:function(t,e,n,r,i,o,a){var s=Qt();try{return Jt(t,e,n,r,i,o,a)}catch(u){if(Wt(s),u!==u+0&&"longjmp"!==u)throw u;Zt(1,0)}},s:function(t){var e=Qt();try{Lt(t)}catch(n){if(Wt(e),n!==n+0&&"longjmp"!==n)throw n;Zt(1,0)}},h:function(t,e){var n=Qt();try{Rt(t,e)}catch(r){if(Wt(n),r!==r+0&&"longjmp"!==r)throw r;Zt(1,0)}},o:function(t,e,n){var r=Qt();try{Ut(t,e,n)}catch(i){if(Wt(r),i!==i+0&&"longjmp"!==i)throw i;Zt(1,0)}},u:function(t,e,n,r){var i=Qt();try{Pt(t,e,n,r)}catch(o){if(Wt(i),o!==o+0&&"longjmp"!==o)throw o;Zt(1,0)}},t:function(t,e,n,r,i){var o=Qt();try{qt(t,e,n,r,i)}catch(a){if(Wt(o),a!==a+0&&"longjmp"!==a)throw a;Zt(1,0)}},r:function(t,e,n,r,i,o){var a=Qt();try{Ft(t,e,n,r,i,o)}catch(s){if(Wt(a),s!==s+0&&"longjmp"!==s)throw s;Zt(1,0)}},memory:d,i:function t(e,n,r,i){n|=0,r|=0,i|=0;var o=0;for(E[(e|=0)>>2]=ct=ct+1|0;(0|o)<(0|i);){if(0==(0|E[r+(o<<3)>>2]))return E[r+(o<<3)>>2]=ct,E[r+(4+(o<<3))>>2]=n,E[r+(8+(o<<3))>>2]=0,g(0|i),0|r;o=o+1|0}return r=0|t(0|e,0|n,0|(r=0|Ct(0|r,8*(1+(i=2*i|0)|0)|0)),0|i),g(0|i),0|r},b:function(t){g(0|t)},G:function(t,e,n,r){return function(t,e,n,r){var i=E[r+40>>2],o={tm_sec:E[r>>2],tm_min:E[r+4>>2],tm_hour:E[r+8>>2],tm_mday:E[r+12>>2],tm_mon:E[r+16>>2],tm_year:E[r+20>>2],tm_wday:E[r+24>>2],tm_yday:E[r+28>>2],tm_isdst:E[r+32>>2],tm_gmtoff:E[r+36>>2],tm_zone:i?k(i):""},a=k(n),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var u in s)a=a.replace(new RegExp(u,"g"),s[u]);var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],l=["January","February","March","April","May","June","July","August","September","October","November","December"];function h(t,e,n){for(var r="number"==typeof t?t.toString():t||"";r.length0?1:0}var r;return 0===(r=n(t.getFullYear()-e.getFullYear()))&&0===(r=n(t.getMonth()-e.getMonth()))&&(r=n(t.getDate()-e.getDate())),r}function p(t){switch(t.getDay()){case 0:return new Date(t.getFullYear()-1,11,29);case 1:return t;case 2:return new Date(t.getFullYear(),0,3);case 3:return new Date(t.getFullYear(),0,2);case 4:return new Date(t.getFullYear(),0,1);case 5:return new Date(t.getFullYear()-1,11,31);case 6:return new Date(t.getFullYear()-1,11,30)}}function g(t){var e=mt(new Date(t.tm_year+1900,0,1),t.tm_yday),n=new Date(e.getFullYear(),0,4),r=new Date(e.getFullYear()+1,0,4),i=p(n),o=p(r);return d(i,e)<=0?d(o,e)<=0?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var v={"%a":function(t){return c[t.tm_wday].substring(0,3)},"%A":function(t){return c[t.tm_wday]},"%b":function(t){return l[t.tm_mon].substring(0,3)},"%B":function(t){return l[t.tm_mon]},"%C":function(t){return f((t.tm_year+1900)/100|0,2)},"%d":function(t){return f(t.tm_mday,2)},"%e":function(t){return h(t.tm_mday,2," ")},"%g":function(t){return g(t).toString().substring(2)},"%G":function(t){return g(t)},"%H":function(t){return f(t.tm_hour,2)},"%I":function(t){var e=t.tm_hour;return 0==e?e=12:e>12&&(e-=12),f(e,2)},"%j":function(t){return f(t.tm_mday+pt(dt(t.tm_year+1900)?gt:vt,t.tm_mon-1),3)},"%m":function(t){return f(t.tm_mon+1,2)},"%M":function(t){return f(t.tm_min,2)},"%n":function(){return"\n"},"%p":function(t){return t.tm_hour>=0&&t.tm_hour<12?"AM":"PM"},"%S":function(t){return f(t.tm_sec,2)},"%t":function(){return"\t"},"%u":function(t){return t.tm_wday||7},"%U":function(t){var e=new Date(t.tm_year+1900,0,1),n=0===e.getDay()?e:mt(e,7-e.getDay()),r=new Date(t.tm_year+1900,t.tm_mon,t.tm_mday);if(d(n,r)<0){var i=pt(dt(r.getFullYear())?gt:vt,r.getMonth()-1)-31,o=31-n.getDate()+i+r.getDate();return f(Math.ceil(o/7),2)}return 0===d(n,e)?"01":"00"},"%V":function(t){var e,n=new Date(t.tm_year+1900,0,4),r=new Date(t.tm_year+1901,0,4),i=p(n),o=p(r),a=mt(new Date(t.tm_year+1900,0,1),t.tm_yday);return d(a,i)<0?"53":d(o,a)<=0?"01":(e=i.getFullYear()=0;return e=(e=Math.abs(e)/60)/60*100+e%60,(n?"+":"-")+String("0000"+e).slice(-4)},"%Z":function(t){return t.tm_zone},"%%":function(){return"%"}};for(var u in v)a.indexOf(u)>=0&&(a=a.replace(new RegExp(u,"g"),v[u](o)));var m=_t(a,!1);return m.length>e?0:(function(t,e){w.set(t,e)}(m,t),m.length-1)}(t,e,n,r)},table:v,c:function(t,e,n){t|=0,e|=0,n|=0;for(var r=0,i=0;(0|r)<(0|n)&&0!=(0|(i=0|E[e+(r<<3)>>2]));){if((0|i)==(0|t))return 0|E[e+(4+(r<<3))>>2];r=r+1|0}return 0},A:function(t){var e=Date.now()/1e3|0;return t&&(E[t>>2]=e),e},B:function(t){return 0!==t&&ut(t,0,16),0}},bt=function(){var t={a:wt};function e(t,e){r.asm=t.exports,G()}function n(t){e(t.instance)}function i(e){return(h||"function"!=typeof fetch?new Promise(function(t,e){t($())}):fetch(X,{credentials:"same-origin"}).then(function(t){if(!t.ok)throw"failed to load wasm binary file at '"+X+"'";return t.arrayBuffer()}).catch(function(){return $()})).then(function(e){return WebAssembly.instantiate(e,t)}).then(e,function(t){l("failed to asynchronously prepare wasm: "+t),J(t)})}if(z(),r.instantiateWasm)try{return r.instantiateWasm(t,e)}catch(o){return l("Module.instantiateWasm callback failed with error: "+o),!1}return function(){if(h||"function"!=typeof WebAssembly.instantiateStreaming||V(X)||"function"!=typeof fetch)return i(n);fetch(X,{credentials:"same-origin"}).then(function(e){return WebAssembly.instantiateStreaming(e,t).then(n,function(t){l("wasm streaming compile failed: "+t),l("falling back to ArrayBuffer instantiation"),i(n)})})}(),{}}();r.asm=bt;var xt,Et=r.___wasm_call_ctors=function(){return(Et=r.___wasm_call_ctors=r.asm.Z).apply(null,arguments)},Tt=r._emscripten_bind_VoidPtr___destroy___0=function(){return(Tt=r._emscripten_bind_VoidPtr___destroy___0=r.asm._).apply(null,arguments)},At=r._emscripten_bind_Main_layout_3=function(){return(At=r._emscripten_bind_Main_layout_3=r.asm.$).apply(null,arguments)},St=r._emscripten_bind_Main_lastError_0=function(){return(St=r._emscripten_bind_Main_lastError_0=r.asm.aa).apply(null,arguments)},kt=r._emscripten_bind_Main_createFile_2=function(){return(kt=r._emscripten_bind_Main_createFile_2=r.asm.ba).apply(null,arguments)},It=r._emscripten_bind_Main___destroy___0=function(){return(It=r._emscripten_bind_Main___destroy___0=r.asm.ca).apply(null,arguments)},Dt=r._malloc=function(){return(Dt=r._malloc=r.asm.da).apply(null,arguments)},Nt=r._free=function(){return(Nt=r._free=r.asm.ea).apply(null,arguments)},Ct=r._realloc=function(){return(Ct=r._realloc=r.asm.fa).apply(null,arguments)},Zt=(r.___errno_location=function(){return(r.___errno_location=r.asm.ga).apply(null,arguments)},r._setThrew=function(){return(Zt=r._setThrew=r.asm.ha).apply(null,arguments)}),Mt=r.__ZSt18uncaught_exceptionv=function(){return(Mt=r.__ZSt18uncaught_exceptionv=r.asm.ia).apply(null,arguments)},Ot=r._memalign=function(){return(Ot=r._memalign=r.asm.ja).apply(null,arguments)},Lt=r.dynCall_v=function(){return(Lt=r.dynCall_v=r.asm.ka).apply(null,arguments)},Rt=r.dynCall_vi=function(){return(Rt=r.dynCall_vi=r.asm.la).apply(null,arguments)},Ut=r.dynCall_vii=function(){return(Ut=r.dynCall_vii=r.asm.ma).apply(null,arguments)},Pt=r.dynCall_viii=function(){return(Pt=r.dynCall_viii=r.asm.na).apply(null,arguments)},qt=r.dynCall_viiii=function(){return(qt=r.dynCall_viiii=r.asm.oa).apply(null,arguments)},Ft=r.dynCall_viiiii=function(){return(Ft=r.dynCall_viiiii=r.asm.pa).apply(null,arguments)},jt=r.dynCall_i=function(){return(jt=r.dynCall_i=r.asm.qa).apply(null,arguments)},Yt=r.dynCall_ii=function(){return(Yt=r.dynCall_ii=r.asm.ra).apply(null,arguments)},Bt=r.dynCall_iii=function(){return(Bt=r.dynCall_iii=r.asm.sa).apply(null,arguments)},zt=r.dynCall_iiii=function(){return(zt=r.dynCall_iiii=r.asm.ta).apply(null,arguments)},Gt=r.dynCall_iiiii=function(){return(Gt=r.dynCall_iiiii=r.asm.ua).apply(null,arguments)},Jt=r.dynCall_iiiiiii=function(){return(Jt=r.dynCall_iiiiiii=r.asm.va).apply(null,arguments)},Vt=r.dynCall_d=function(){return(Vt=r.dynCall_d=r.asm.wa).apply(null,arguments)},Ht=r.dynCall_di=function(){return(Ht=r.dynCall_di=r.asm.xa).apply(null,arguments)},Qt=r.stackSave=function(){return(Qt=r.stackSave=r.asm.ya).apply(null,arguments)},Wt=(r.stackAlloc=function(){return(r.stackAlloc=r.asm.za).apply(null,arguments)},r.stackRestore=function(){return(Wt=r.stackRestore=r.asm.Aa).apply(null,arguments)});function Xt(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function $t(t){function e(){xt||(xt=!0,m||(U=!0,r.noFSInit||at.init.initialized||at.init(),it.init(),Z(O),at.ignorePermissions=!1,Z(L),r.onRuntimeInitialized&&r.onRuntimeInitialized(),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)t=r.postRun.shift(),R.unshift(t);var t;Z(R)}()))}Y>0||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)t=r.preRun.shift(),M.unshift(t);var t;Z(M)}(),Y>0||(r.setStatus?(r.setStatus("Running..."),setTimeout(function(){setTimeout(function(){r.setStatus("")},1),e()},1)):e()))}if(r.asm=bt,r.then=function(t){if(xt)t(r);else{var e=r.onRuntimeInitialized;r.onRuntimeInitialized=function(){e&&e(),t(r)}}return r},B=function t(){xt||$t(),xt||(B=t)},r.run=$t,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();function Kt(){}function te(t){return(t||Kt).__cache__}function ee(t,e){var n=te(e),r=n[t];return r||((r=Object.create((e||Kt).prototype)).ptr=t,n[t]=r)}f=!0,$t(),(Kt.prototype=Object.create(Kt.prototype)).constructor=Kt,Kt.prototype.__class__=Kt,Kt.__cache__={},r.WrapperObject=Kt,r.getCache=te,r.wrapPointer=ee,r.castObject=function(t,e){return ee(t.ptr,e)},r.NULL=ee(0),r.destroy=function(t){if(!t.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";t.__destroy__(),delete te(t.__class__)[t.ptr]},r.compare=function(t,e){return t.ptr===e.ptr},r.getPointer=function(t){return t.ptr},r.getClass=function(t){return t.__class__};var ne={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(ne.needed){for(var t=0;t=ne.size?(y(i>0),ne.needed+=i,n=r._malloc(i),ne.temps.push(n)):(n=ne.buffer+ne.pos,ne.pos+=i),n},copy:function(t,e,n){var r=n;switch(e.BYTES_PER_ELEMENT){case 2:r>>=1;break;case 4:r>>=2;break;case 8:r>>=3}for(var i=0;i\n\n'}}function v(t,e){var n,r=p({images:[],files:[]},e);(function(){for(var t=0,e=0,n=arguments.length;e>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?x(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?x(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=h.exec(t))?new A(e[1],e[2],e[3],1):(e=f.exec(t))?new A(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=d.exec(t))?x(e[1],e[2],e[3],e[4]):(e=p.exec(t))?x(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=g.exec(t))?D(e[1],e[2]/100,e[3]/100,1):(e=v.exec(t))?D(e[1],e[2]/100,e[3]/100,e[4]):m.hasOwnProperty(t)?b(m[t]):"transparent"===t?new A(NaN,NaN,NaN,0):null}function b(t){return new A(t>>16&255,t>>8&255,255&t,1)}function x(t,e,n,r){return r<=0&&(t=e=n=NaN),new A(t,e,n,r)}function E(t){return t instanceof i||(t=w(t)),t?new A((t=t.rgb()).r,t.g,t.b,t.opacity):new A}function T(t,e,n,r){return 1===arguments.length?E(t):new A(t,e,n,null==r?1:r)}function A(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function S(){return"#"+I(this.r)+I(this.g)+I(this.b)}function k(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function I(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function D(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Z(t,e,n,r)}function N(t){if(t instanceof Z)return new Z(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=w(t)),!t)return new Z;if(t instanceof Z)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),a=Math.max(e,n,r),s=NaN,u=a-o,c=(a+o)/2;return u?(s=e===a?(n-r)/u+6*(n0&&c<1?0:s,new Z(s,u,c,t.opacity)}function C(t,e,n,r){return 1===arguments.length?N(t):new Z(t,e,n,null==r?1:r)}function Z(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function M(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}(0,r.Z)(i,w,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return N(this).formatHsl()},formatRgb:_,toString:_}),(0,r.Z)(A,T,(0,r.l)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new A(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new A(this.r*t,this.g*t,this.b*t,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:S,formatHex:S,formatRgb:k,toString:k})),(0,r.Z)(Z,C,(0,r.l)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new Z(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new Z(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new A(M(t>=240?t-240:t+120,i,r),M(t,i,r),M(t<120?t+240:t-120,i,r),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 t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},80052:function(t,e,n){"use strict";function r(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function i(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}n.d(e,{Z:function(){return r},l:function(){return i}})},64641:function(t,e){"use strict";var n={value:function(){}};function r(){for(var t,e=0,n=arguments.length,r={};e=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}function a(t,e){for(var n,r=0,i=t.length;r0)for(var n,r,i=new Array(n),o=0;o1?r[0]+r.slice(2):r,+t.slice(n+1)]}n.d(e,{Z:function(){return r}})},93116:function(t,e,n){"use strict";n.d(e,{Z:function(){return i},v:function(){return o}});var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(t){if(!(e=r.exec(t)))throw new Error("invalid format: "+t);var e;return new o({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function o(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}i.prototype=o.prototype,o.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}},25047:function(t,e,n){"use strict";n.r(e),n.d(e,{formatDefaultLocale:function(){return r.ZP},format:function(){return r.WU},formatPrefix:function(){return r.jH},formatLocale:function(){return i.Z},formatSpecifier:function(){return o.Z},FormatSpecifier:function(){return o.v},precisionFixed:function(){return a.Z},precisionPrefix:function(){return s.Z},precisionRound:function(){return u.Z}});var r=n(3712),i=n(70592),o=n(93116),a=n(22233),s=n(65636),u=n(3218)},70592:function(t,e,n){"use strict";n.d(e,{Z:function(){return f}});var r,i=n(98477),o=n(93116),a=n(25169);function s(t,e){var n=(0,a.Z)(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}var u={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return s(100*t,e)},r:s,s:function(t,e){var n=(0,a.Z)(t,e);if(!n)return t+"";var i=n[0],o=n[1],s=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,u=i.length;return s===u?i:s>u?i+new Array(s-u+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+(0,a.Z)(t,Math.max(0,e+s-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function c(t){return t}var l=Array.prototype.map,h=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function f(t){var e,n,a=void 0===t.grouping||void 0===t.thousands?c:(e=l.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),o.push(t.substring(i-=s,i+s)),!((u+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}),s=void 0===t.currency?"":t.currency[0]+"",f=void 0===t.currency?"":t.currency[1]+"",d=void 0===t.decimal?".":t.decimal+"",p=void 0===t.numerals?c:function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(l.call(t.numerals,String)),g=void 0===t.percent?"%":t.percent+"",v=void 0===t.minus?"-":t.minus+"",m=void 0===t.nan?"NaN":t.nan+"";function y(t){var e=(t=(0,o.Z)(t)).fill,n=t.align,i=t.sign,c=t.symbol,l=t.zero,y=t.width,_=t.comma,w=t.precision,b=t.trim,x=t.type;"n"===x?(_=!0,x="g"):u[x]||(void 0===w&&(w=12),b=!0,x="g"),(l||"0"===e&&"="===n)&&(l=!0,e="0",n="=");var E="$"===c?s:"#"===c&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",T="$"===c?f:/[%p]/.test(x)?g:"",A=u[x],S=/[defgprs%]/.test(x);function k(t){var o,s,u,c=E,f=T;if("c"===x)f=A(t)+f,t="";else{var g=(t=+t)<0||1/t<0;if(t=isNaN(t)?m:A(Math.abs(t),w),b&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),g&&0==+t&&"+"!==i&&(g=!1),c=(g?"("===i?i:v:"-"===i||"("===i?"":i)+c,f=("s"===x?h[8+r/3]:"")+f+(g&&"("===i?")":""),S)for(o=-1,s=t.length;++o(u=t.charCodeAt(o))||u>57){f=(46===u?d+t.slice(o+1):t.slice(o))+f,t=t.slice(0,o);break}}_&&!l&&(t=a(t,1/0));var k=c.length+t.length+f.length,I=k>1)+c+t+f+I.slice(k);break;default:t=I+c+t+f}return p(t)}return w=void 0===w?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w)),k.toString=function(){return t+""},k}return{format:y,formatPrefix:function(t,e){var n=y(((t=(0,o.Z)(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor((0,i.Z)(e)/3))),a=Math.pow(10,-r),s=h[8+r/3];return function(t){return n(a*t)+s}}}}},22233:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(98477);function i(t){return Math.max(0,-(0,r.Z)(Math.abs(t)))}},65636:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(98477);function i(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,r.Z)(e)/3)))-(0,r.Z)(Math.abs(t)))}},3218:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(98477);function i(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,(0,r.Z)(e)-(0,r.Z)(t))+1}},73180:function(t,e,n){!function(t,e,n,r,i,o,a,s,u,c){"use strict";function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e1&&void 0!==arguments[1]?arguments[1]:0,r=e.select(this),i=t.attributes,o=r.node().attributes;if(o)for(var a=0;a0?i.children[0].text:"")}null==t.key&&(o&&("ellipse"!=n&&"polygon"!=n||(n="path")),t.key=n+"-"+e)}function v(t,e){t.id=(e?e.id+".":"")+t.key}function m(t){c[t.id]=t}function y(t,e){o&&t.id in l&&("polygon"!=e.tag&&"ellipse"!=e.tag&&"path"!=e.tag||e.tag==t.tag&&"polygon"!=t.tag||("path"!=e.tag&&(t.alternativeOld=D(e,t)),"path"!=t.tag&&(t.alternativeNew=D(t,e))))}function _(t,e){if(i&&e&&("path"==e.tag||t.alternativeOld&&"path"==t.alternativeOld.tag)){var n=(t.alternativeNew||t).attributes.d;if(t.alternativeOld)var r=g(t.alternativeOld);else r=g(e);(t.alternativeOld||(t.alternativeOld={})).points=function(t,e,n,r){for(var i=t,o=i.cloneNode(),a=i.getTotalLength(),s=(o.setAttribute("d",e),o).getTotalLength(),u=[0],c=0,l=r?n:n/Math.max(a,s);(c+=l)<1;)u.push(c);return u.push(1),u.map(function(t){var e=i.getPointAtLength(t*a),n=o.getPointAtLength(t*s);return[[e.x,e.y],[n.x,n.y]]})}(r,n,a,s)}}function w(t){var e=arguments.length>2?arguments[2]:void 0;p(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),v(t,e);var n=l[t.id];m(t),y(t,n),_(t,n);var r={};t.children.forEach(function(e){var n=e.tag;"ellipse"!=n&&"polygon"!=n||(n="path"),null==r[n]&&(r[n]=0),w(e,r[n]++,t)})}function b(t){(function(t){if(u&&t.parent&&"node"==t.parent.attributes.class&&"title"==t.tag){if(t.children.length>0)var e=t.children[0].text;else e="";h[e]=t.parent}})(t),function(t){var e=t.tag;if(u&&!l[t.id]&&t.parent&&k(t)&&("path"==e||"polygon"==e)){if("polygon"==e){var n=t.parent.children.find(function(t){return"path"==t.tag});n&&(t.totalLength=n.totalLength)}var r=function(t){return function(t){return"edge"==t.parent.attributes.class?t.parent:t.parent.parent.parent}(t).children.find(function(t){return"title"==t.tag})}(t).children[0],i=r.text.split("->");2!=i.length&&(i=r.text.split("--"));var o=i[0],a=h[o],s=f[o];if(s){if((p=a.children.findIndex(function(t,e){return"g"==t.tag}))>=0){var c=a.children[p].children.findIndex(function(t,e){return"a"==t.tag});a=a.children[p].children[c]}(p=s.children.findIndex(function(t,e){return"g"==t.tag}))>=0&&(c=s.children[p].children.findIndex(function(t,e){return"a"==t.tag}),s=s.children[p].children[c]);for(var d=a.children,p=0;p0&&this._queue.shift().call(this)}function M(t,e,n,r){var i=[t*n-(e=-e)*(r=-r),t*r+e*n];return[t=i[0],e=-(e=i[1])]}function O(t,e,n,r,i,o,a){var s=d(P.call(this,o));t.data([s]),_.call(t.node(),s),L(t,e,n,r,i,o,a)}function L(t,e,n,r,i,o,a){var s=a.shortening||0,u=[[0,-3.5],[10,0],[0,3.5],[0,-3.5]],l=r-e,h=i-n,f=Math.sqrt(l*l+h*h);if(0==f)var d=1,p=0;else d=l/f,p=h/f;if(r=e+(f-s-10-.1)*d,i=n+(f-s-10-.1)*p,o.URL||o.tooltip)var g=t.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a"),v=g.selectWithoutDataPropagation("path"),m=g.selectWithoutDataPropagation("polygon");else v=t.selectWithoutDataPropagation("path"),m=t.selectWithoutDataPropagation("polygon");var y=c.path();y.moveTo(e,n),y.lineTo(r,i),v.attr("d",y),r=e+(f-s-10)*d,i=n+(f-s-10)*p;for(var _=0;_ b ["+n+"]}","svg","dot"),s=(new window.DOMParser).parseFromString(a,"image/svg+xml");return e.select(document.createDocumentFragment()).append(function(){return s.documentElement}).select(".edge")}function q(t,e,n,r,i,o){var a=d(B.call(this,r,i));return t.data([a]),_.call(t.node(),a),F(t,e,n,i),this}function F(t,n,r,i,o){if(i.URL||i.tooltip)var a=t.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a");else a=t;var s=a.selectAll("ellipse,polygon,path,polyline"),u=t.selectWithoutDataPropagation("text");if(0!=s.size()){var c=s.node().getBBox();c.cx=c.x+c.width/2,c.cy=c.y+c.height/2}else 0!=u.size()&&(c={x:+u.attr("x"),y:+u.attr("y"),width:0,height:0,cx:+u.attr("x"),cy:+u.attr("y")});return s.each(function(t,i){var o=e.select(this);if(o.attr("cx"))o.attr("cx",b(n)).attr("cy",b(r));else if(o.attr("points")){var a=o.attr("points").trim();o.attr("points",function(t,e,n){var r,i=(r=t.split(" ")).map(function(t){return t.split(",")});return i=r.map(function(t){return[b(+e+ +t.split(",")[0]),b(+n+ +t.split(",")[1])]}),(r=i.map(function(t){return t.join(",")})).join(" ")}(a,n-c.cx,r-c.cy))}else{var s=o.attr("d");o.attr("d",function(t,e,n){(i=t.split(/[A-Z ]/)).shift();var r=t.split(/[^[A-Z ]+/),i=(i.map(function(t){return t.split(",")}),i.map(function(t){return[b(+e+ +t.split(",")[0]),b(+n+ +t.split(",")[1])]}).map(function(t){return t.join(",")}));return r.reduce(function(t,e,n){return t.concat(e,i[n])},[]).join("")}(s,n-c.cx,r-c.cy))}}),0!=u.size()&&u.attr("x",b(+u.attr("x")+n-c.cx)).attr("y",b(+u.attr("y")+r-c.cy)),this}function j(){if(!this._drawnNode)return this;var t=this._drawnNode.g;return t.empty()||t.remove(),this._drawnNode=null,this}function Y(){return this._drawnNode?this._drawnNode.g:e.select(null)}function B(t,n){for(var r="",i=0,o=Object.keys(n);i2")(a)+" ",i+=s+" ".repeat(o-s.length),i+=u.format(" >5")(t-n)+" ","initEnd"!=s&&(i+=u.format(" >5")(t-r.start[e])),"dataProcessEnd"==s&&(i+=" prepare "+u.format(" >5")(t-r.layoutEnd[e])),"renderEnd"==s&&c._transition&&(i+=" transition start margin "+u.format(" >5")(c._transition.delay()-(t-r.renderStart[e])),l=c._transition.delay(),f=c._transition.duration()),"transitionStart"==s){var h=t-r.renderStart[e];i+=" transition delay "+u.format(" >5")(t-r.renderStart[e]),i+=" expected "+u.format(" >5")(l),i+=" diff "+u.format(" >5")(h-l)}if("transitionEnd"==s){var d=t-r.transitionStart[e];i+=" transition duration "+u.format(" >5")(d),i+=" expected "+u.format(" >5")(f),i+=" diff "+u.format(" >5")(d-f)}console.log(i),n=t}:null)},s=0;s5&&void 0!==arguments[5]?arguments[5]:{};if((o=Object.assign({},o)).style&&o.style.includes("invis"))var s=e.select(null);else{var u=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),c=d(P.call(this,o));s=u.append("g").data([c]),_.call(s.node(),c),O.call(this,s,t,n,r,i,o,a)}return this._drawnEdge={g:s,x1:t,y1:n,x2:r,y2:i,attributes:o},this},updateDrawnEdge:function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var a=this._drawnEdge.g;return i=Object.assign(this._drawnEdge.attributes,i),this._drawnEdge.x1=t,this._drawnEdge.y1=e,this._drawnEdge.x2=n,this._drawnEdge.y2=r,!a.empty()||i.style&&i.style.includes("invis")||(a=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnEdge.g=a),a.empty()||O.call(this,a,t,e,n,r,i,o),this},moveDrawnEdgeEndPoint:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var r=this._drawnEdge.g,i=this._drawnEdge.x1,o=this._drawnEdge.y1,a=this._drawnEdge.attributes;return this._drawnEdge.x2=t,this._drawnEdge.y2=e,L(r,i,o,t,e,a,n),this},insertDrawnEdge:function(t){if(!this._drawnEdge)throw Error("No edge has been drawn");var e=this._drawnEdge.g;if(e.empty())return this;e.selectWithoutDataPropagation("title").text(t);var n=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),r=n.datum(),i=this._extractData(e,r.children.length,n.datum());return r.children.push(i),m(e,i),this._drawnEdge=null,this},removeDrawnEdge:R},"removeDrawnEdge",R),l(V,"drawnEdgeSelection",U),l(V,"drawnEdgeSelection",U),l(V,"drawNode",function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if((i=Object.assign({},i)).style&&i.style.includes("invis"))var a=e.select(null);else{var s=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),u=d(B.call(this,r,i));a=s.append("g").data([u]),_.call(a.node(),u),q.call(this,a,t,n,r,i,o)}return this._drawnNode={g:a,nodeId:r,x:t,y:n,attributes:i},this}),l(V,"updateDrawnNode",function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!this._drawnNode)throw Error("No node has been drawn");var o=this._drawnNode.g;return null==n&&(n=this._drawnNode.nodeId),r=Object.assign(this._drawnNode.attributes,r),this._drawnNode.nodeId=n,this._drawnNode.x=t,this._drawnNode.y=e,!o.empty()||r.style&&r.style.includes("invis")||(o=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnNode.g=o),o.empty()||q.call(this,o,t,e,n,r,i),this}),l(V,"moveDrawnNode",function(t,e){if(!this._drawnNode)throw Error("No node has been drawn");var n=this._drawnNode.g,r=this._drawnNode.attributes;return this._drawnNode.x=t,this._drawnNode.y=e,n.empty()||F(n,t,e,r),this}),l(V,"insertDrawnNode",function(t){if(!this._drawnNode)throw Error("No node has been drawn");null==t&&(t=this._drawnNode.nodeId);var e=this._drawnNode.g;if(e.empty())return this;var n=this._drawnNode.attributes;if(e.selectWithoutDataPropagation("title").text(t),n.URL||n.tooltip)var r=e.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a"),i=(r.selectWithoutDataPropagation("ellipse,polygon,path,polyline"),r.selectWithoutDataPropagation("text"));else e.selectWithoutDataPropagation("ellipse,polygon,path,polyline"),i=e.selectWithoutDataPropagation("text");i.text(n.label||t);var o=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),a=o.datum(),s=this._extractData(e,a.children.length,o.datum());return a.children.push(s),m(e,s),this._drawnNode=null,this}),l(V,"removeDrawnNode",j),l(V,"removeDrawnNode",j),l(V,"drawnNodeSelection",Y),l(V,"drawnNodeSelection",Y),V),e.selection.prototype.graphviz=function(t){var e=this.node().__graphviz__;return e?(e.options(t),i.timeout((function(){e._dispatch.call("initEnd",this)}).bind(this),0)):e=new H(this,t),e},e.selection.prototype.selectWithoutDataPropagation=function(t){return e.select(this.size()>0?this.node().querySelector(t):null)},t.graphviz=Q,Object.defineProperty(t,"__esModule",{value:!0})}(e,n(24967),n(58552),n(82159),n(14788),n(30853),n(59320),n(95914),n(25047),n(16809))},60053:function(t,e,n){"use strict";n.d(e,{Z:function(){return o},M:function(){return a}});var r=n(3031),i=n(61317);function o(t,e){return((0,i.v)(e)?i.Z:a)(t,e)}function a(t,e){var n,i=e?e.length:0,o=t?Math.min(i,t.length):0,a=new Array(o),s=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),o=t[i],a=t[i+1];return r((n-i/e)*e,i>0?t[i-1]:2*o-a,o,a,i180||n<-180?n-360*Math.round(n/360):n):(0,r.Z)(isNaN(t)?e:t)}function a(t){return 1==(t=+t)?s:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):(0,r.Z)(isNaN(e)?n:e)}}function s(t,e){var n=e-t;return n?i(t,n):(0,r.Z)(isNaN(t)?e:t)}},94065:function(t,e,n){"use strict";function r(t){return function(){return t}}n.d(e,{Z:function(){return r}})},28917:function(t,e,n){"use strict";function r(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}n.d(e,{Z:function(){return r}})},30853:function(t,e,n){"use strict";n.r(e),n.d(e,{interpolate:function(){return r.Z},interpolateArray:function(){return i.Z},interpolateBasis:function(){return o.Z},interpolateBasisClosed:function(){return a.Z},interpolateCubehelix:function(){return nt},interpolateCubehelixLong:function(){return rt},interpolateDate:function(){return s.Z},interpolateDiscrete:function(){return u},interpolateHcl:function(){return Y},interpolateHclLong:function(){return B},interpolateHsl:function(){return b},interpolateHslLong:function(){return x},interpolateHue:function(){return l},interpolateLab:function(){return F},interpolateNumber:function(){return h.Z},interpolateNumberArray:function(){return f.Z},interpolateObject:function(){return d.Z},interpolateRgb:function(){return y.ZP},interpolateRgbBasis:function(){return y.hD},interpolateRgbBasisClosed:function(){return y.YD},interpolateRound:function(){return p.Z},interpolateString:function(){return g.Z},interpolateTransformCss:function(){return v.Y},interpolateTransformSvg:function(){return v.w},interpolateZoom:function(){return m.Z},piecewise:function(){return it},quantize:function(){return ot}});var r=n(3031),i=n(60053),o=n(39588),a=n(17280),s=n(28917);function u(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}var c=n(22656);function l(t,e){var n=(0,c.wx)(+t,+e);return function(t){var e=n(t);return e-360*Math.floor(e/360)}}var h=n(75306),f=n(61317),d=n(70901),p=n(47071),g=n(51882),v=n(44090),m=n(13764),y=n(38740),_=n(12314);function w(t){return function(e,n){var r=t((e=(0,_.Ym)(e)).h,(n=(0,_.Ym)(n)).h),i=(0,c.ZP)(e.s,n.s),o=(0,c.ZP)(e.l,n.l),a=(0,c.ZP)(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=o(t),e.opacity=a(t),e+""}}}var b=w(c.wx),x=w(c.ZP),E=n(80052),T=Math.PI/180,A=180/Math.PI,S=4/29,k=6/29,I=3*k*k;function D(t){if(t instanceof C)return new C(t.l,t.a,t.b,t.opacity);if(t instanceof P)return q(t);t instanceof _.Ss||(t=(0,_.SU)(t));var e,n,r=L(t.r),i=L(t.g),o=L(t.b),a=Z((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?e=n=a:(e=Z((.4360747*r+.3850649*i+.1430804*o)/.96422),n=Z((.0139322*r+.0971045*i+.7141733*o)/.82521)),new C(116*a-16,500*(e-a),200*(a-n),t.opacity)}function N(t,e,n,r){return 1===arguments.length?D(t):new C(t,e,n,null==r?1:r)}function C(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function Z(t){return t>.008856451679035631?Math.pow(t,1/3):t/I+S}function M(t){return t>k?t*t*t:I*(t-S)}function O(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function L(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function R(t){if(t instanceof P)return new P(t.h,t.c,t.l,t.opacity);if(t instanceof C||(t=D(t)),0===t.a&&0===t.b)return new P(NaN,0u&&(s=e.slice(u,s),l[c]?l[c]+=s:l[++c]=s),(n=n[0])===(a=a[0])?l[c]?l[c]+=a:l[++c]=a:(l[++c]=null,h.push({i:c,x:(0,r.Z)(n,a)})),u=o.lastIndex;return u180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:(0,s.Z)(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,u,c),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:(0,s.Z)(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,u,c),function(t,e,n,r,o,a){if(t!==n||e!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:(0,s.Z)(t,n)},{i:u-2,x:(0,s.Z)(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,c),o=a=null,function(t){for(var e,n=-1,r=c.length;++n1e-6)if(Math.abs(h*u-c*l)>1e-6&&o){var d=r-a,p=i-s,g=u*u+c*c,v=d*d+p*p,m=Math.sqrt(g),y=Math.sqrt(f),_=o*Math.tan((n-Math.acos((g+f-v)/(2*m*y)))/2),w=_/y,b=_/m;Math.abs(w-1)>1e-6&&(this._+="L"+(t+w*l)+","+(e+w*h)),this._+="A"+o+","+o+",0,0,"+ +(h*d>l*p)+","+(this._x1=t+b*u)+","+(this._y1=e+b*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,o,a,s,u){t=+t,e=+e,u=!!u;var c=(o=+o)*Math.cos(a),l=o*Math.sin(a),h=t+c,f=e+l,d=1^u,p=u?a-s:s-a;if(o<0)throw new Error("negative radius: "+o);null===this._x1?this._+="M"+h+","+f:(Math.abs(this._x1-h)>1e-6||Math.abs(this._y1-f)>1e-6)&&(this._+="L"+h+","+f),o&&(p<0&&(p=p%r+r),p>i?this._+="A"+o+","+o+",0,1,"+d+","+(t-c)+","+(e-l)+"A"+o+","+o+",0,1,"+d+","+(this._x1=h)+","+(this._y1=f):p>1e-6&&(this._+="A"+o+","+o+",0,"+ +(p>=n)+","+d+","+(this._x1=t+o*Math.cos(s))+","+(this._y1=e+o*Math.sin(s))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},e.Z=a},32436:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(26669),i=n(71867);function o(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===i.P&&e.documentElement.namespaceURI===i.P?e.createElement(t):e.createElementNS(n,t)}}function a(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function s(t){var e=(0,r.Z)(t);return(e.local?a:o)(e)}},24967:function(t,e,n){"use strict";n.r(e),n.d(e,{clientPoint:function(){return d.Z},create:function(){return o},creator:function(){return r.Z},customEvent:function(){return E._H},event:function(){return E.B},local:function(){return s},matcher:function(){return c.Z},mouse:function(){return l.Z},namespace:function(){return h.Z},namespaces:function(){return f.Z},select:function(){return i.Z},selectAll:function(){return g},selection:function(){return p.ZP},selector:function(){return v.Z},selectorAll:function(){return m.Z},style:function(){return y.S},touch:function(){return _.Z},touches:function(){return b},window:function(){return x.Z}});var r=n(32436),i=n(41036);function o(t){return(0,i.Z)((0,r.Z)(t).call(document.documentElement))}var a=0;function s(){return new u}function u(){this._="@"+(++a).toString(36)}u.prototype=s.prototype={constructor:u,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var c=n(54382),l=n(38337),h=n(26669),f=n(71867),d=n(54762),p=n(42710);function g(t){return"string"==typeof t?new p.Y1([document.querySelectorAll(t)],[document.documentElement]):new p.Y1([null==t?[]:t],p.Jz)}var v=n(69309),m=n(85502),y=n(97717),_=n(45161),w=n(72732);function b(t,e){null==e&&(e=(0,w.Z)().touches);for(var n=0,r=e?e.length:0,i=new Array(r);n=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),r.Z.hasOwnProperty(e)?{space:r.Z[e],local:t}:t}},71867:function(t,e,n){"use strict";n.d(e,{P:function(){return r}});var r="http://www.w3.org/1999/xhtml";e.Z={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},54762:function(t,e,n){"use strict";function r(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}n.d(e,{Z:function(){return r}})},41036:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(42710);function i(t){return"string"==typeof t?new r.Y1([[document.querySelector(t)]],[document.documentElement]):new r.Y1([[t]],r.Jz)}},42710:function(t,e,n){"use strict";n.d(e,{Y1:function(){return Q},ZP:function(){return X},Jz:function(){return H}});var r=n(69309),i=n(85502),o=n(54382);function a(t){return new Array(t.length)}function s(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function u(t,e,n,r,i,o){for(var a,u=0,c=e.length,l=o.length;ue?1:t>=e?0:NaN}s.prototype={constructor:s,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var h=n(26669);function f(t){return function(){this.removeAttribute(t)}}function d(t){return function(){this.removeAttributeNS(t.space,t.local)}}function p(t,e){return function(){this.setAttribute(t,e)}}function g(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function v(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function m(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var y=n(97717);function _(t){return function(){delete this[t]}}function w(t,e){return function(){this[t]=e}}function b(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function x(t){return t.trim().split(/^|\s+/)}function E(t){return t.classList||new T(t)}function T(t){this._node=t,this._names=x(t.getAttribute("class")||"")}function A(t,e){for(var n=E(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var P=n(32436);function q(){return null}function F(){var t=this.parentNode;t&&t.removeChild(this)}function j(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Y(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var B=n(92711),z=n(11130);function G(t,e,n){var r=(0,z.Z)(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function J(t,e){return function(){return G(this,t,e)}}function V(t,e){return function(){return G(this,t,e.apply(this,arguments))}}var H=[null];function Q(t,e){this._groups=t,this._parents=e}function W(){return new Q([[document.documentElement]],H)}Q.prototype=W.prototype={constructor:Q,select:function(t){"function"!=typeof t&&(t=(0,r.Z)(t));for(var e=this._groups,n=e.length,i=new Array(n),o=0;o=E&&(E=x+1);!(b=_[E])&&++E=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=l);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==e?_:"function"==typeof e?b:w)(t,e)):this.node()[t]},classed:function(t,e){var n=x(t+"");if(arguments.length<2){for(var r=E(this.node()),i=-1,o=n.length;++i=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}function u(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r1?this.each((null==e?i:"function"==typeof e?a:o)(t,e,null==n?"":n)):u(this.node(),t)}function u(t,e){return t.style.getPropertyValue(e)||(0,r.Z)(t).getComputedStyle(t,null).getPropertyValue(e)}},69309:function(t,e,n){"use strict";function r(){}function i(t){return null==t?r:function(){return this.querySelector(t)}}n.d(e,{Z:function(){return i}})},85502:function(t,e,n){"use strict";function r(){return[]}function i(t){return null==t?r:function(){return this.querySelectorAll(t)}}n.d(e,{Z:function(){return i}})},72732:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(92711);function i(){for(var t,e=r.B;t=e.sourceEvent;)e=t;return e}},45161:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(72732),i=n(54762);function o(t,e,n){arguments.length<3&&(n=e,e=(0,r.Z)().changedTouches);for(var o,a=0,s=e?e.length:0;a=0&&e._call.call(null,t),e=e._next;--o}function y(){c=(u=h.now())+l,o=a=0;try{m()}finally{o=0,function(){for(var t,e,n=r,o=1/0;n;)n._call?(o>n._time&&(o=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,w(o)}(),c=0}}function _(){var t=h.now(),e=t-u;e>1e3&&(l-=e,u=t)}function w(t){o||(a&&(a=clearTimeout(a)),t-c>24?(t<1/0&&(a=setTimeout(y,t-h.now()-l)),s&&(s=clearInterval(s))):(s||(u=h.now(),s=setInterval(_,1e3)),o=1,f(y)))}g.prototype=v.prototype={constructor:g,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?d():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,w()},stop:function(){this._call&&(this._call=null,this._time=1/0,w())}}},82159:function(t,e,n){"use strict";n.r(e),n.d(e,{active:function(){return it},interrupt:function(){return d},transition:function(){return $}});var r=n(42710),i=n(64641),o=n(65244),a=n(74199),s=(0,i.Z)("start","end","cancel","interrupt"),u=[];function c(t,e,n,r,i,c){var l=t.__transition;if(l){if(n in l)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function s(o){var l,h,f,d;if(1!==n.state)return c();for(l in i)if((d=i[l]).name===n.name){if(3===d.state)return(0,a.Z)(s);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete i[l]):+l0)throw new Error("too late; already scheduled");return n}function h(t,e){var n=f(t,e);if(n.state>3)throw new Error("too late; already running");return n}function f(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function d(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}}var p=n(44090),g=n(26669);function v(t,e){var n,r;return function(){var i=h(this,t),o=i.tween;if(o!==n)for(var a=0,s=(r=n=o).length;a=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?l:h;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var j=n(69309),Y=n(85502),B=r.ZP.prototype.constructor,z=n(97717);function G(t){return function(){this.style.removeProperty(t)}}function J(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function V(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&J(t,o,n)),r}return o._value=e,o}function H(t){return function(e){this.textContent=t.call(this,e)}}function Q(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&H(r)),e}return r._value=t,r}var W=0;function X(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function $(t){return(0,r.ZP)().transition(t)}function K(){return++W}var tt=r.ZP.prototype;X.prototype=$.prototype={constructor:X,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=(0,j.Z)(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a1&&n.name===e)return new X([[t]],rt,e,+r);return null}},59320:function(t,e,n){"use strict";n.r(e),n.d(e,{zoom:function(){return T},zoomIdentity:function(){return p},zoomTransform:function(){return g}});var r=n(64641),i=n(8634),o=n(13764),a=n(92711),s=n(38337),u=n(41036),c=n(45161),l=n(82159);function h(t){return function(){return t}}function f(t,e,n){this.target=t,this.type=e,this.transform=n}function d(t,e,n){this.k=t,this.x=e,this.y=n}d.prototype={constructor:d,scale:function(t){return 1===t?this:new d(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new d(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var p=new d(1,0,0);function g(t){return t.__zoom||p}function v(){a.B.stopImmediatePropagation()}function m(){a.B.preventDefault(),a.B.stopImmediatePropagation()}function y(){return!a.B.button}function _(){var t,e,n=this;return n instanceof SVGElement?(t=(n=n.ownerSVGElement||n).width.baseVal.value,e=n.height.baseVal.value):(t=n.clientWidth,e=n.clientHeight),[[0,0],[t,e]]}function w(){return this.__zoom||p}function b(){return-a.B.deltaY*(a.B.deltaMode?120:1)/500}function x(){return"ontouchstart"in this}function E(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function T(){var t,e,n=y,g=_,T=E,A=b,S=x,k=[0,1/0],I=[[-1/0,-1/0],[1/0,1/0]],D=250,N=o.Z,C=[],Z=(0,r.Z)("start","zoom","end"),M=0;function O(t){t.property("__zoom",w).on("wheel.zoom",j).on("mousedown.zoom",Y).on("dblclick.zoom",B).filter(S).on("touchstart.zoom",z).on("touchmove.zoom",G).on("touchend.zoom touchcancel.zoom",J).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function L(t,e){return(e=Math.max(k[0],Math.min(k[1],e)))===t.k?t:new d(e,t.x,t.y)}function R(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new d(t.k,r,i)}function U(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function P(t,e,n){t.on("start.zoom",function(){q(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){q(this,arguments).end()}).tween("zoom",function(){var t=this,r=arguments,i=q(t,r),o=g.apply(t,r),a=n||U(o),s=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),u=t.__zoom,c="function"==typeof e?e.apply(t,r):e,l=N(u.invert(a).concat(s/u.k),c.invert(a).concat(s/c.k));return function(t){if(1===t)t=c;else{var e=l(t),n=s/e[2];t=new d(n,a[0]-e[0]*n,a[1]-e[1]*n)}i.zoom(null,t)}})}function q(t,e){for(var n,r=0,i=C.length;rM}t.zoom("mouse",T(R(t.that.__zoom,t.mouse[0]=(0,s.Z)(t.that),t.mouse[1]),t.extent,I))}function d(){r.on("mousemove.zoom mouseup.zoom",null),(0,i.D)(a.B.view,t.moved),m(),t.end()}}function B(){if(n.apply(this,arguments)){var t=this.__zoom,e=(0,s.Z)(this),r=t.invert(e),i=t.k*(a.B.shiftKey?.5:2),o=T(R(L(t,i),e,r),g.apply(this,arguments),I);m(),D>0?(0,u.Z)(this).transition().duration(D).call(P,o,e):(0,u.Z)(this).call(O.transform,o)}}function z(){if(n.apply(this,arguments)){var e,r,i,o,s=q(this,arguments),h=a.B.changedTouches,f=h.length;for(v(),r=0;r0;--u)if(r=e[u].dequeue()){i=i.concat(s(t,e,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(c,function(e){return t.outEdges(e.v,e.w)}),!0)};var a=r.constant(1);function s(t,e,n,i,o){var a=o?[]:void 0;return r.forEach(t.inEdges(i.v),function(r){var i=t.edge(r),s=t.node(r.v);o&&a.push({v:r.v,w:r.w}),s.out-=i,u(e,n,s)}),r.forEach(t.outEdges(i.v),function(r){var i=t.edge(r),o=t.node(r.w);o.in-=i,u(e,n,o)}),t.removeNode(i.v),a}function u(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},73363:function(t,e,n){"use strict";var r=n(91096),i=n(19265),o=n(3266),a=n(29438),s=n(45247).normalizeRanks,u=n(22877),c=n(45247).removeEmptyRanks,l=n(8131),h=n(28549),f=n(64061),d=n(41727),p=n(14588),g=n(45247),v=n(49174).Graph;t.exports=function(t,e){var n=e&&e.debugTiming?g.time:g.notime;n("layout",function(){var e=n(" buildLayoutGraph",function(){return function(t){var e=new v({multigraph:!0,compound:!0}),n=S(t.graph());return e.setGraph(r.merge({},y,A(n,m),r.pick(n,_))),r.forEach(t.nodes(),function(n){var i=S(t.node(n));e.setNode(n,r.defaults(A(i,w),b)),e.setParent(n,t.parent(n))}),r.forEach(t.edges(),function(n){var i=S(t.edge(n));e.setEdge(n,r.merge({},E,A(i,x),r.pick(i,T)))}),e}(t)});n(" runLayout",function(){!function(t,e){e(" makeSpaceForEdgeLabels",function(){!function(t){var e=t.graph();e.ranksep/=2,r.forEach(t.edges(),function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}(t)}),e(" removeSelfEdges",function(){!function(t){r.forEach(t.edges(),function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}})}(t)}),e(" acyclic",function(){i.run(t)}),e(" nestingGraph.run",function(){l.run(t)}),e(" rank",function(){a(g.asNonCompoundGraph(t))}),e(" injectEdgeLabelProxies",function(){!function(t){r.forEach(t.edges(),function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i=t.node(e.w);g.addDummyNode(t,"edge-proxy",{rank:(i.rank-r.rank)/2+r.rank,e:e},"_ep")}})}(t)}),e(" removeEmptyRanks",function(){c(t)}),e(" nestingGraph.cleanup",function(){l.cleanup(t)}),e(" normalizeRanks",function(){s(t)}),e(" assignRankMinMax",function(){!function(t){var e=0;r.forEach(t.nodes(),function(n){var i=t.node(n);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=r.max(e,i.maxRank))}),t.graph().maxRank=e}(t)}),e(" removeEdgeLabelProxies",function(){!function(t){r.forEach(t.nodes(),function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))})}(t)}),e(" normalize.run",function(){o.run(t)}),e(" parentDummyChains",function(){u(t)}),e(" addBorderSegments",function(){h(t)}),e(" order",function(){d(t)}),e(" insertSelfEdges",function(){!function(t){var e=g.buildLayerMatrix(t);r.forEach(e,function(e){var n=0;r.forEach(e,function(e,i){var o=t.node(e);o.order=i+n,r.forEach(o.selfEdges,function(e){g.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:i+ ++n,e:e.e,label:e.label},"_se")}),delete o.selfEdges})})}(t)}),e(" adjustCoordinateSystem",function(){f.adjust(t)}),e(" position",function(){p(t)}),e(" positionSelfEdges",function(){!function(t){r.forEach(t.nodes(),function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,o=r.y,a=n.x-i,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*a/3,y:o-s},{x:i+5*a/6,y:o-s},{x:i+a,y:o},{x:i+5*a/6,y:o+s},{x:i+2*a/3,y:o+s}],n.label.x=n.x,n.label.y=n.y}})}(t)}),e(" removeBorderNodes",function(){!function(t){r.forEach(t.nodes(),function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),o=t.node(n.borderBottom),a=t.node(r.last(n.borderLeft)),s=t.node(r.last(n.borderRight));n.width=Math.abs(s.x-a.x),n.height=Math.abs(o.y-i.y),n.x=a.x+n.width/2,n.y=i.y+n.height/2}}),r.forEach(t.nodes(),function(e){"border"===t.node(e).dummy&&t.removeNode(e)})}(t)}),e(" normalize.undo",function(){o.undo(t)}),e(" fixupEdgeLabelCoords",function(){!function(t){r.forEach(t.edges(),function(e){var n=t.edge(e);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}})}(t)}),e(" undoCoordinateSystem",function(){f.undo(t)}),e(" translateGraph",function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,o=0,a=t.graph(),s=a.marginx||0,u=a.marginy||0;function c(t){var r=t.x,a=t.y,s=t.width,u=t.height;e=Math.min(e,r-s/2),n=Math.max(n,r+s/2),i=Math.min(i,a-u/2),o=Math.max(o,a+u/2)}r.forEach(t.nodes(),function(e){c(t.node(e))}),r.forEach(t.edges(),function(e){var n=t.edge(e);r.has(n,"x")&&c(n)}),e-=s,i-=u,r.forEach(t.nodes(),function(n){var r=t.node(n);r.x-=e,r.y-=i}),r.forEach(t.edges(),function(n){var o=t.edge(n);r.forEach(o.points,function(t){t.x-=e,t.y-=i}),r.has(o,"x")&&(o.x-=e),r.has(o,"y")&&(o.y-=i)}),a.width=n-e+s,a.height=o-i+u}(t)}),e(" assignNodeIntersects",function(){!function(t){r.forEach(t.edges(),function(e){var n,r,i=t.edge(e),o=t.node(e.v),a=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=a,r=o),i.points.unshift(g.intersectRect(o,n)),i.points.push(g.intersectRect(a,r))})}(t)}),e(" reversePoints",function(){!function(t){r.forEach(t.edges(),function(e){var n=t.edge(e);n.reversed&&n.points.reverse()})}(t)}),e(" acyclic.undo",function(){i.undo(t)})}(e,n)}),n(" updateInputGraph",function(){!function(t,e){r.forEach(t.nodes(),function(n){var r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,e.children(n).length&&(r.width=i.width,r.height=i.height))}),r.forEach(t.edges(),function(n){var i=t.edge(n),o=e.edge(n);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)}),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)})})};var m=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},_=["acyclicer","ranker","rankdir","align"],w=["width","height"],b={width:0,height:0},x=["minlen","weight","width","height","labeloffset"],E={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},T=["labelpos"];function A(t,e){return r.mapValues(r.pick(t,e),Number)}function S(t){var e={};return r.forEach(t,function(t,n){e[n.toLowerCase()]=t}),e}},91096:function(t,e,n){var r;try{r={cloneDeep:n(38961),constant:n(60583),defaults:n(25177),each:n(97635),filter:n(9673),find:n(13963),flatten:n(38863),forEach:n(26404),forIn:n(21308),has:n(71645),isUndefined:n(96075),last:n(83074),map:n(86169),mapValues:n(7301),max:n(11653),merge:n(81940),min:n(47983),minBy:n(42707),now:n(41396),pick:n(28891),range:n(79289),reduce:n(37442),sortBy:n(36272),uniqueId:n(83798),values:n(95041),zipObject:n(3393)}}catch(i){}r||(r=window._),t.exports=r},8131:function(t,e,n){var r=n(91096),i=n(45247);function o(t,e,n,a,s,u,c){var l=t.children(c);if(l.length){var h=i.addBorderNode(t,"_bt"),f=i.addBorderNode(t,"_bb"),d=t.node(c);t.setParent(h,c),d.borderTop=h,t.setParent(f,c),d.borderBottom=f,r.forEach(l,function(r){o(t,e,n,a,s,u,r);var i=t.node(r),l=i.borderTop?i.borderTop:r,d=i.borderBottom?i.borderBottom:r,p=i.borderTop?a:2*a,g=l!==d?1:s-u[c]+1;t.setEdge(h,l,{weight:p,minlen:g,nestingEdge:!0}),t.setEdge(d,f,{weight:p,minlen:g,nestingEdge:!0})}),t.parent(c)||t.setEdge(e,h,{weight:0,minlen:s+u[c]})}else c!==e&&t.setEdge(e,c,{weight:0,minlen:n})}t.exports={run:function(t){var e=i.addDummyNode(t,"root",{},"_root"),n=function(t){var e={};function n(i,o){var a=t.children(i);a&&a.length&&r.forEach(a,function(t){n(t,o+1)}),e[i]=o}return r.forEach(t.children(),function(t){n(t,1)}),e}(t),a=r.max(r.values(n))-1,s=2*a+1;t.graph().nestingRoot=e,r.forEach(t.edges(),function(e){t.edge(e).minlen*=s});var u=function(t){return r.reduce(t.edges(),function(e,n){return e+t.edge(n).weight},0)}(t)+1;r.forEach(t.children(),function(r){o(t,e,s,u,a,n,r)}),t.graph().nodeRankFactor=s},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.forEach(t.edges(),function(e){t.edge(e).nestingEdge&&t.removeEdge(e)})}}},3266:function(t,e,n){"use strict";var r=n(91096),i=n(45247);t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),function(e){!function(t,e){var n,r,o,a=e.v,s=t.node(a).rank,u=e.w,c=t.node(u).rank,l=e.name,h=t.edge(e),f=h.labelRank;if(c!==s+1){for(t.removeEdge(e),o=0,++s;s0;)e%2&&(n+=u[e+1]),u[e=e-1>>1]+=t.weight;c+=t.weight*n})),c}t.exports=function(t,e){for(var n=0,r=1;r=2),s=l.buildLayerMatrix(t);var v=o(t,s);v=t.barycenter)&&(o=0,a=0,(n=t).weight&&(o+=n.barycenter*n.weight,a+=n.weight),(i=e).weight&&(o+=i.barycenter*i.weight,a+=i.weight),n.vs=i.vs.concat(n.vs),n.barycenter=o/a,n.weight=a,n.i=Math.min(i.i,n.i),i.merged=!0)}}function i(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var o=t.pop();e.push(o),r.forEach(o.in.reverse(),n(o)),r.forEach(o.out,i(o))}return r.map(r.filter(e,function(t){return!t.merged}),function(t){return r.pick(t,["vs","i","barycenter","weight"])})}(r.filter(n,function(t){return!t.indegree}))}},5826:function(t,e,n){var r=n(91096),i=n(25412),o=n(82764),a=n(37850);t.exports=function t(e,n,s,u){var c=e.children(n),l=e.node(n),h=l?l.borderLeft:void 0,f=l?l.borderRight:void 0,d={};h&&(c=r.filter(c,function(t){return t!==h&&t!==f}));var p=i(e,c);r.forEach(p,function(n){if(e.children(n.v).length){var i=t(e,n.v,s,u);d[n.v]=i,r.has(i,"barycenter")&&(a=i,r.isUndefined((o=n).barycenter)?(o.barycenter=a.barycenter,o.weight=a.weight):(o.barycenter=(o.barycenter*o.weight+a.barycenter*a.weight)/(o.weight+a.weight),o.weight+=a.weight))}var o,a});var g=o(p,s);!function(t,e){r.forEach(t,function(t){t.vs=r.flatten(t.vs.map(function(t){return e[t]?e[t].vs:t}),!0)})}(g,d);var v=a(g,u);if(h&&(v.vs=r.flatten([h,v.vs,f],!0),e.predecessors(h).length)){var m=e.node(e.predecessors(h)[0]),y=e.node(e.predecessors(f)[0]);r.has(v,"barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+m.order+y.order)/(v.weight+2),v.weight+=2}return v}},37850:function(t,e,n){var r=n(91096),i=n(45247);function o(t,e,n){for(var i;e.length&&(i=r.last(e)).i<=n;)e.pop(),t.push(i.vs),n++;return n}t.exports=function(t,e){var n,a=i.partition(t,function(t){return r.has(t,"barycenter")}),s=a.lhs,u=r.sortBy(a.rhs,function(t){return-t.i}),c=[],l=0,h=0,f=0;s.sort((n=!!e,function(t,e){return t.barycentere.barycenter?1:n?e.i-t.i:t.i-e.i})),f=o(c,u,f),r.forEach(s,function(t){f+=t.vs.length,c.push(t.vs),l+=t.barycenter*t.weight,h+=t.weight,f=o(c,u,f)});var d={vs:r.flatten(c,!0)};return h&&(d.barycenter=l/h,d.weight=h),d}},22877:function(t,e,n){var r=n(91096);t.exports=function(t){var e=function(t){var e={},n=0;return r.forEach(t.children(),function i(o){var a=n;r.forEach(t.children(o),i),e[o]={low:a,lim:n++}}),e}(t);r.forEach(t.graph().dummyChains,function(n){for(var r=t.node(n),i=r.edgeObj,o=function(t,e,n,r){var i,o,a=[],s=[],u=Math.min(e[n].low,e[r].low),c=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),a.push(i)}while(i&&(e[i].low>u||c>e[i].lim));for(o=i,i=r;(i=t.parent(i))!==o;)s.push(i);return{path:a.concat(s.reverse()),lca:o}}(t,e,i.v,i.w),a=o.path,s=o.lca,u=0,c=a[u],l=!0;n!==i.w;){if(r=t.node(n),l){for(;(c=a[u])!==s&&t.node(c).maxRanks)&&u(n,e,c)})})}return r.reduce(e,function(e,n){var o,a=-1,s=0;return r.forEach(n,function(r,u){if("border"===t.node(r).dummy){var c=t.predecessors(r);c.length&&(o=t.node(c[0]).order,i(n,s,u,a,o),s=u,a=o)}i(n,s,n.length,o,e.length)}),n}),n}function u(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function c(t,e,n){if(e>n){var i=e;e=n,n=i}return r.has(t[e],n)}function l(t,e,n,i){var o={},a={},s={};return r.forEach(e,function(t){r.forEach(t,function(t,e){o[t]=t,a[t]=t,s[t]=e})}),r.forEach(e,function(t){var e=-1;r.forEach(t,function(t){var u=i(t);if(u.length)for(var l=((u=r.sortBy(u,function(t){return s[t]})).length-1)/2,h=Math.floor(l),f=Math.ceil(l);h<=f;++h){var d=u[h];a[t]===t&&eu.lim&&(c=u,l=!0);var h=r.filter(e.edges(),function(e){return l===y(0,t.node(e.v),c)&&l!==y(0,t.node(e.w),c)});return r.minBy(h,function(t){return o(e,t)})}function m(t,e,n,i){t.removeEdge(n.v,n.w),t.setEdge(i.v,i.w,{}),d(t),h(t,e),function(t,e){var n=r.find(t.nodes(),function(t){return!e.node(t).parent}),i=s(t,n);i=i.slice(1),r.forEach(i,function(n){var r=t.node(n).parent,i=e.edge(n,r),o=!1;i||(i=e.edge(r,n),o=!0),e.node(n).rank=e.node(r).rank+(o?i.minlen:-i.minlen)})}(t,e)}function y(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=l,l.initLowLimValues=d,l.initCutValues=h,l.calcCutValue=f,l.leaveEdge=g,l.enterEdge=v,l.exchangeEdges=m},21790:function(t,e,n){"use strict";var r=n(91096);t.exports={longestPath:function(t){var e={};r.forEach(t.sources(),function n(i){var o=t.node(i);if(r.has(e,i))return o.rank;e[i]=!0;var a=r.min(r.map(t.outEdges(i),function(e){return n(e.w)-t.edge(e).minlen}));return a!==Number.POSITIVE_INFINITY&&null!=a||(a=0),o.rank=a})},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},45247:function(t,e,n){"use strict";var r=n(91096),i=n(49174).Graph;function o(t,e,n,i){var o;do{o=r.uniqueId(i)}while(t.hasNode(o));return n.dummy=e,t.setNode(o,n),o}function a(t){return r.max(r.map(t.nodes(),function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n}))}t.exports={addDummyNode:o,simplify:function(t){var e=(new i).setGraph(t.graph());return r.forEach(t.nodes(),function(n){e.setNode(n,t.node(n))}),r.forEach(t.edges(),function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),e},asNonCompoundGraph:function(t){var e=new i({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),function(n){t.children(n).length||e.setNode(n,t.node(n))}),r.forEach(t.edges(),function(n){e.setEdge(n,t.edge(n))}),e},successorWeights:function(t){var e=r.map(t.nodes(),function(e){var n={};return r.forEach(t.outEdges(e),function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight}),n});return r.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=r.map(t.nodes(),function(e){var n={};return r.forEach(t.inEdges(e),function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight}),n});return r.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,i=t.x,o=t.y,a=e.x-i,s=e.y-o,u=t.width/2,c=t.height/2;if(!a&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*u>Math.abs(a)*c?(s<0&&(c=-c),n=c*a/s,r=c):(a<0&&(u=-u),n=u,r=u*s/a),{x:i+n,y:o+r}},buildLayerMatrix:function(t){var e=r.map(r.range(a(t)+1),function(){return[]});return r.forEach(t.nodes(),function(n){var i=t.node(n),o=i.rank;r.isUndefined(o)||(e[o][i.order]=n)}),e},normalizeRanks:function(t){var e=r.min(r.map(t.nodes(),function(e){return t.node(e).rank}));r.forEach(t.nodes(),function(n){var i=t.node(n);r.has(i,"rank")&&(i.rank-=e)})},removeEmptyRanks:function(t){var e=r.min(r.map(t.nodes(),function(e){return t.node(e).rank})),n=[];r.forEach(t.nodes(),function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)});var i=0,o=t.graph().nodeRankFactor;r.forEach(n,function(e,n){r.isUndefined(e)&&n%o!=0?--i:i&&r.forEach(e,function(e){t.node(e).rank+=i})})},addBorderNode:function(t,e,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),o(t,"border",i,e)},maxRank:a,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,function(t){e(t)?n.lhs.push(t):n.rhs.push(t)}),n},time:function(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}},notime:function(t,e){return e()}}},32862:function(t){t.exports="0.8.5"},54204:function(t,e,n){var r=n(97078);t.exports={Graph:r.Graph,json:n(2063),alg:n(29790),version:r.version}},66451:function(t,e,n){var r=n(77241);t.exports=function(t){var e,n={},i=[];function o(i){r.has(n,i)||(n[i]=!0,e.push(i),r.each(t.successors(i),o),r.each(t.predecessors(i),o))}return r.each(t.nodes(),function(t){e=[],o(t),e.length&&i.push(e)}),i}},70485:function(t,e,n){var r=n(77241);function i(t,e,n,o,a,s){r.has(o,e)||(o[e]=!0,n||s.push(e),r.each(a(e),function(e){i(t,e,n,o,a,s)}),n&&s.push(e))}t.exports=function(t,e,n){r.isArray(e)||(e=[e]);var o=(t.isDirected()?t.successors:t.neighbors).bind(t),a=[],s={};return r.each(e,function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);i(t,e,"post"===n,s,o,a)}),a}},85818:function(t,e,n){var r=n(26731),i=n(77241);t.exports=function(t,e,n){return i.transform(t.nodes(),function(i,o){i[o]=r(t,o,e,n)},{})}},26731:function(t,e,n){var r=n(77241),i=n(9266);t.exports=function(t,e,n,r){return function(t,e,n,r){var o,a,s={},u=new i,c=function(t){var e=t.v!==o?t.v:t.w,r=s[e],i=n(t),c=a.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);c0&&(o=u.removeMin(),(a=s[o]).distance!==Number.POSITIVE_INFINITY);)r(o).forEach(c);return s}(t,String(e),n||o,r||function(e){return t.outEdges(e)})};var o=r.constant(1)},8821:function(t,e,n){var r=n(77241),i=n(45759);t.exports=function(t){return r.filter(i(t),function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])})}},24980:function(t,e,n){var r=n(77241);t.exports=function(t,e,n){return function(t,e,n){var r={},i=t.nodes();return i.forEach(function(t){r[t]={},r[t][t]={distance:0},i.forEach(function(e){t!==e&&(r[t][e]={distance:Number.POSITIVE_INFINITY})}),n(t).forEach(function(n){var i=n.v===t?n.w:n.v,o=e(n);r[t][i]={distance:o,predecessor:t}})}),i.forEach(function(t){var e=r[t];i.forEach(function(n){var o=r[n];i.forEach(function(n){var r=e[n],i=o[n],a=o[t].distance+r.distance;a0;){if(n=u.removeMin(),r.has(s,n))a.setEdge(n,s[n]);else{if(l)throw new Error("Input graph is not connected: "+t);l=!0}t.nodeEdges(n).forEach(c)}return a}},45759:function(t,e,n){var r=n(77241);t.exports=function(t){var e=0,n=[],i={},o=[];function a(s){var u=i[s]={onStack:!0,lowlink:e,index:e++};if(n.push(s),t.successors(s).forEach(function(t){r.has(i,t)?i[t].onStack&&(u.lowlink=Math.min(u.lowlink,i[t].index)):(a(t),u.lowlink=Math.min(u.lowlink,i[t].lowlink))}),u.lowlink===u.index){var c,l=[];do{c=n.pop(),i[c].onStack=!1,l.push(c)}while(s!==c);o.push(l)}}return t.nodes().forEach(function(t){r.has(i,t)||a(t)}),o}},94394:function(t,e,n){var r=n(77241);function i(t){var e={},n={},i=[];if(r.each(t.sinks(),function a(s){if(r.has(n,s))throw new o;r.has(e,s)||(n[s]=!0,e[s]=!0,r.each(t.predecessors(s),a),delete n[s],i.push(s))}),r.size(e)!==t.nodeCount())throw new o;return i}function o(){}t.exports=i,i.CycleException=o,o.prototype=new Error},9266:function(t,e,n){var r=n(77241);function i(){this._arr=[],this._keyIndices={}}t.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map(function(t){return t.key})},i.prototype.has=function(t){return r.has(this._keyIndices,t)},i.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var i=this._arr,o=i.length;return n[t]=o,i.push({key:t,priority:e}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},i.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},i.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n>1].prioritya){var s=o;o=a,a=s}return o+"\x01"+a+"\x01"+(r.isUndefined(i)?"\0":i)}function u(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var a=i;i=o,o=a}var s={v:i,w:o};return r&&(s.name=r),s}function c(t,e){return s(t,e.v,e.w,e.name)}t.exports=i,i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(t){return this._label=t,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return r.keys(this._nodes)},i.prototype.sources=function(){var t=this;return r.filter(this.nodes(),function(e){return r.isEmpty(t._in[e])})},i.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),function(e){return r.isEmpty(t._out[e])})},i.prototype.setNodes=function(t,e){var n=arguments,i=this;return r.each(t,function(t){n.length>1?i.setNode(t,e):i.setNode(t)}),this},i.prototype.setNode=function(t,e){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]="\0",this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},i.prototype.node=function(t){return this._nodes[t]},i.prototype.hasNode=function(t){return r.has(this._nodes,t)},i.prototype.removeNode=function(t){var e=this;if(r.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),function(t){e.setParent(t)}),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},i.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e="\0";else{for(var n=e+="";!r.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},i.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},i.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if("\0"!==e)return e}},i.prototype.children=function(t){if(r.isUndefined(t)&&(t="\0"),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else{if("\0"===t)return this.nodes();if(this.hasNode(t))return[]}},i.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},i.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},i.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},i.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},i.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;r.each(this._nodes,function(n,r){t(r)&&e.setNode(r,n)}),r.each(this._edgeObjs,function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))});var i={};function o(t){var r=n.parent(t);return void 0===r||e.hasNode(r)?(i[t]=r,r):r in i?i[r]:o(r)}return this._isCompound&&r.each(e.nodes(),function(t){e.setParent(t,o(t))}),e},i.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return r.values(this._edgeObjs)},i.prototype.setPath=function(t,e){var n=this,i=arguments;return r.reduce(t,function(t,r){return i.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r}),this},i.prototype.setEdge=function(){var t,e,n,i,a=!1,c=arguments[0];"object"==typeof c&&null!==c&&"v"in c?(t=c.v,e=c.w,n=c.name,2===arguments.length&&(i=arguments[1],a=!0)):(t=c,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var l=s(this._isDirected,t,e,n);if(r.has(this._edgeLabels,l))return a&&(this._edgeLabels[l]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[l]=a?i:this._defaultEdgeLabelFn(t,e,n);var h=u(this._isDirected,t,e,n);return t=h.v,e=h.w,Object.freeze(h),this._edgeObjs[l]=h,o(this._preds[e],t),o(this._sucs[t],e),this._in[e][l]=h,this._out[t][l]=h,this._edgeCount++,this},i.prototype.edge=function(t,e,n){var r=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,t,e,n);return this._edgeLabels[r]},i.prototype.hasEdge=function(t,e,n){var i=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,t,e,n);return r.has(this._edgeLabels,i)},i.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?c(this._isDirected,arguments[0]):s(this._isDirected,t,e,n),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],a(this._preds[e],t),a(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},i.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var i=r.values(n);return e?r.filter(i,function(t){return t.v===e}):i}},i.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var i=r.values(n);return e?r.filter(i,function(t){return t.w===e}):i}},i.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},97078:function(t,e,n){t.exports={Graph:n(10179),version:n(57160)}},2063:function(t,e,n){var r=n(77241),i=n(10179);function o(t){return r.map(t.nodes(),function(e){var n=t.node(e),i=t.parent(e),o={v:e};return r.isUndefined(n)||(o.value=n),r.isUndefined(i)||(o.parent=i),o})}function a(t){return r.map(t.edges(),function(e){var n=t.edge(e),i={v:e.v,w:e.w};return r.isUndefined(e.name)||(i.name=e.name),r.isUndefined(n)||(i.value=n),i})}t.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:o(t),edges:a(t)};return r.isUndefined(t.graph())||(e.value=r.clone(t.graph())),e},read:function(t){var e=new i(t.options).setGraph(t.value);return r.each(t.nodes,function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)}),r.each(t.edges,function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),e}}},77241:function(t,e,n){var r;try{r={clone:n(7063),constant:n(60583),each:n(97635),filter:n(9673),has:n(71645),isArray:n(47712),isEmpty:n(19129),isFunction:n(70458),isUndefined:n(96075),keys:n(48600),map:n(86169),reduce:n(37442),size:n(26809),transform:n(86987),union:n(50875),values:n(95041)}}catch(i){}r||(r=window._),t.exports=r},57160:function(t){t.exports="2.1.8"},22550:function(t,e,n){var r=n(31311)(n(58568),"DataView");t.exports=r},27868:function(t,e,n){var r=n(18944),i=n(18790),o=n(40218),a=n(80072),s=n(3575);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1}},5724:function(t){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r0&&o(l)?n>1?t(l,n-1,o,a,s):r(s,l):a||(s[s.length]=l)}return s}},48486:function(t,e,n){var r=n(43999)();t.exports=r},79941:function(t,e,n){var r=n(48486),i=n(48600);t.exports=function(t,e){return t&&r(t,e,i)}},91338:function(t,e,n){var r=n(21813),i=n(71241);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&ne}},50018:function(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t,n){return null!=t&&e.call(t,n)}},29828:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},37551:function(t,e,n){var r=n(72322),i=n(32564),o=n(39920);t.exports=function(t,e,n){return e==e?o(t,e,n):r(t,i,n)}},80561:function(t,e,n){var r=n(3219),i=n(3902);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},31999:function(t,e,n){var r=n(47690),i=n(3902);t.exports=function t(e,n,o,a,s){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,a,t,s))}},47690:function(t,e,n){var r=n(30964),i=n(49642),o=n(97868),a=n(85234),s=n(32234),u=n(47712),c=n(80354),l=n(51156),h="[object Object]",f=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,d,p,g){var v=u(t),m=u(e),y=v?"[object Array]":s(t),_=m?"[object Array]":s(e),w=(y="[object Arguments]"==y?h:y)==h,b=(_="[object Arguments]"==_?h:_)==h,x=y==_;if(x&&c(t)){if(!c(e))return!1;v=!0,w=!1}if(x&&!w)return g||(g=new r),v||l(t)?i(t,e,n,d,p,g):o(t,e,y,n,d,p,g);if(!(1&n)){var E=w&&f.call(t,"__wrapped__"),T=b&&f.call(e,"__wrapped__");if(E||T){var A=E?t.value():t,S=T?e.value():e;return g||(g=new r),p(A,S,n,d,g)}}return!!x&&(g||(g=new r),a(t,e,n,d,p,g))}},75080:function(t,e,n){var r=n(32234),i=n(3902);t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},16050:function(t,e,n){var r=n(30964),i=n(31999);t.exports=function(t,e,n,o){var a=n.length,s=a,u=!o;if(null==t)return!s;for(t=Object(t);a--;){var c=n[a];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a=200){var g=e?null:s(t);if(g)return u(g);f=!1,l=a,p=new r}else p=e?[]:d;t:for(;++ce||a&&s&&c&&!u&&!l||i&&s&&c||!n&&c||!o)return 1;if(!i&&!a&&!l&&t=u?c:c*("desc"==n[i]?-1:1)}return t.index-e.index}},49327:function(t){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++r-1?s[u?e[c]:c]:void 0}}},15395:function(t,e,n){var r=n(49727),i=n(10139),o=n(56016);t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&i(e,n,a)&&(n=a=void 0),e=o(e),void 0===n?(n=e,e=0):n=o(n),a=void 0===a?el))return!1;var f=u.get(t),d=u.get(e);if(f&&d)return f==e&&d==t;var p=-1,g=!0,v=2&n?new r:void 0;for(u.set(t,e),u.set(e,t);++p-1&&t%1==0&&t-1}},2154:function(t,e,n){var r=n(67477);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},58289:function(t,e,n){var r=n(27868),i=n(58170),o=n(6647);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},19581:function(t,e,n){var r=n(65810);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},61608:function(t,e,n){var r=n(65810);t.exports=function(t){return r(this,t).get(t)}},8901:function(t,e,n){var r=n(65810);t.exports=function(t){return r(this,t).has(t)}},12399:function(t,e,n){var r=n(65810);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},95622:function(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}},96878:function(t){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},94667:function(t,e,n){var r=n(74884);t.exports=function(t){var e=r(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}},54263:function(t,e,n){var r=n(31311)(Object,"create");t.exports=r},75427:function(t,e,n){var r=n(11621)(Object.keys,Object);t.exports=r},3601:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},80166:function(t,e,n){t=n.nmd(t);var r=n(52127),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s},91059:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},11621:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},90877:function(t,e,n){var r=n(86932),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),u=Array(s);++a0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},31816:function(t,e,n){var r=n(58170);t.exports=function(){this.__data__=new r,this.size=0}},86246:function(t){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},95499:function(t){t.exports=function(t){return this.__data__.get(t)}},17114:function(t){t.exports=function(t){return this.__data__.has(t)}},68677:function(t,e,n){var r=n(58170),i=n(6647),o=n(98856);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},39920:function(t){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r2?e[2]:void 0;for(c&&o(e[0],e[1],c)&&(r=1);++n-1&&t%1==0&&t<=9007199254740991}},49333:function(t,e,n){var r=n(75080),i=n(97633),o=n(80166),a=o&&o.isMap,s=a?i(a):r;t.exports=s},17305:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3902:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},7629:function(t,e,n){var r=n(3219),i=n(45410),o=n(3902),a=Function.prototype.toString,s=Object.prototype.hasOwnProperty,u=a.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=s.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&a.call(n)==u}},8274:function(t,e,n){var r=n(15104),i=n(97633),o=n(80166),a=o&&o.isSet,s=a?i(a):r;t.exports=s},27764:function(t,e,n){var r=n(3219),i=n(47712),o=n(3902);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},30419:function(t,e,n){var r=n(3219),i=n(3902);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},51156:function(t,e,n){var r=n(94154),i=n(97633),o=n(80166),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},96075:function(t){t.exports=function(t){return void 0===t}},48600:function(t,e,n){var r=n(48421),i=n(97272),o=n(9140);t.exports=function(t){return o(t)?r(t):i(t)}},10752:function(t,e,n){var r=n(48421),i=n(40623),o=n(9140);t.exports=function(t){return o(t)?r(t,!0):i(t)}},83074:function(t){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},86169:function(t,e,n){var r=n(20529),i=n(82617),o=n(26091),a=n(47712);t.exports=function(t,e){return(a(t)?r:o)(t,i(e,3))}},7301:function(t,e,n){var r=n(61216),i=n(79941),o=n(82617);t.exports=function(t,e){var n={};return e=o(e,3),i(t,function(t,i,o){r(n,i,e(t,i,o))}),n}},11653:function(t,e,n){var r=n(91241),i=n(98109),o=n(19903);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},74884:function(t,e,n){var r=n(98856);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},81940:function(t,e,n){var r=n(75705),i=n(57082)(function(t,e,n){r(t,e,n)});t.exports=i},47983:function(t,e,n){var r=n(91241),i=n(69661),o=n(19903);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},42707:function(t,e,n){var r=n(91241),i=n(82617),o=n(69661);t.exports=function(t,e){return t&&t.length?r(t,i(e,2),o):void 0}},15533:function(t){t.exports=function(){}},41396:function(t,e,n){var r=n(58568);t.exports=function(){return r.Date.now()}},28891:function(t,e,n){var r=n(14964),i=n(9771)(function(t,e){return null==t?{}:r(t,e)});t.exports=i},57675:function(t,e,n){var r=n(80087),i=n(47044),o=n(46149),a=n(71241);t.exports=function(t){return o(t)?r(a(t)):i(t)}},79289:function(t,e,n){var r=n(15395)();t.exports=r},37442:function(t,e,n){var r=n(27971),i=n(43079),o=n(82617),a=n(95482),s=n(47712);t.exports=function(t,e,n){var u=s(t)?r:a,c=arguments.length<3;return u(t,o(e,4),n,c,i)}},26809:function(t,e,n){var r=n(97272),i=n(32234),o=n(9140),a=n(27764),s=n(3941);t.exports=function(t){if(null==t)return 0;if(o(t))return a(t)?s(t):t.length;var e=i(t);return"[object Map]"==e||"[object Set]"==e?t.size:r(t).length}},36272:function(t,e,n){var r=n(9555),i=n(22824),o=n(37165),a=n(10139),s=o(function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])});t.exports=s},20668:function(t){t.exports=function(){return[]}},1950:function(t){t.exports=function(){return!1}},56016:function(t,e,n){var r=n(68135);t.exports=function(t){return t?1/0===(t=r(t))||-1/0===t?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},82748:function(t,e,n){var r=n(56016);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},68135:function(t,e,n){var r=n(94530),i=n(17305),o=n(30419),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=s.test(t);return n||u.test(t)?c(t.slice(2),n?2:8):a.test(t)?NaN:+t}},65208:function(t,e,n){var r=n(79399),i=n(10752);t.exports=function(t){return r(t,i(t))}},89196:function(t,e,n){var r=n(17667);t.exports=function(t){return null==t?"":r(t)}},86987:function(t,e,n){var r=n(41492),i=n(56004),o=n(79941),a=n(82617),s=n(45410),u=n(47712),c=n(80354),l=n(70458),h=n(17305),f=n(51156);t.exports=function(t,e,n){var d=u(t),p=d||c(t)||f(t);if(e=a(e,4),null==n){var g=t&&t.constructor;n=p?d?new g:[]:h(t)&&l(g)?i(s(t)):{}}return(p?r:o)(t,function(t,r,i){return e(n,t,r,i)}),n}},50875:function(t,e,n){var r=n(9555),i=n(37165),o=n(66833),a=n(56633),s=i(function(t){return o(r(t,1,a,!0))});t.exports=s},83798:function(t,e,n){var r=n(89196),i=0;t.exports=function(t){var e=++i;return r(t)+e}},95041:function(t,e,n){var r=n(10744),i=n(48600);t.exports=function(t){return null==t?[]:r(t,i(t))}},3393:function(t,e,n){var r=n(25823),i=n(60170);t.exports=function(t,e){return i(t||[],e||[],r)}},41282:function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),r(n(69812)),r(n(65098)),r(n(59895)),r(n(13408)),r(n(66082)),r(n(33839)),r(n(51390)),r(n(83807)),r(n(24232)),r(n(22267)),r(n(741)),r(n(21539)),r(n(97002)),r(n(99147)),r(n(70980)),r(n(96684))},69812:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(51390),a=function(t){function e(e){var n=t.call(this)||this,r=e;return r.trigger&&(n.trigger=r.trigger),r.kick&&(n.kick=r.kick),r.drag&&(n.drag=r.drag),r.on&&(n.on=r.on),n.dragstart=n.dragStart=o.Layout.dragStart,n.dragend=n.dragEnd=o.Layout.dragEnd,n}return i(e,t),e.prototype.trigger=function(t){},e.prototype.kick=function(){},e.prototype.drag=function(){},e.prototype.on=function(t,e){return this},e}(o.Layout);e.LayoutAdaptor=a,e.adaptor=function(t){return new a(t)}},96684:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(51390),i=n(66082);e.gridify=function(t,e,n,r){return t.cola.start(0,0,0,10,!1),function(t,e,n,r){t.forEach(function(t){t.routerNode={name:t.name,bounds:t.bounds.inflate(-n)}}),e.forEach(function(e){e.routerNode={bounds:e.bounds.inflate(-r),children:(void 0!==e.groups?e.groups.map(function(e){return t.length+e.id}):[]).concat(void 0!==e.leaves?e.leaves.map(function(t){return t.index}):[])}});var o=t.concat(e).map(function(t,e){return t.routerNode.id=e,t.routerNode});return new i.GridRouter(o,{getChildren:function(t){return t.children},getBounds:function(t){return t.bounds}},n-r)}(t.cola.nodes(),t.cola.groups(),n,r).routeEdges(t.powerGraph.powerEdges,e,function(t){return t.source.routerNode.id},function(t){return t.target.routerNode.id})},e.powerGraphGridLayout=function(t,e,n){var i;t.nodes.forEach(function(t,e){return t.index=e}),(new r.Layout).avoidOverlaps(!1).nodes(t.nodes).links(t.links).powerGraphGroups(function(t){(i=t).groups.forEach(function(t){return t.padding=n})});var o=t.nodes.length,a=[],s=t.nodes.slice(0);return s.forEach(function(t,e){return t.index=e}),i.groups.forEach(function(t){var e=t.index=t.id+o;s.push(t),void 0!==t.leaves&&t.leaves.forEach(function(t){return a.push({source:e,target:t.index})}),void 0!==t.groups&&t.groups.forEach(function(t){return a.push({source:e,target:t.id+o})})}),i.powerEdges.forEach(function(t){a.push({source:t.source.index,target:t.target.index})}),(new r.Layout).size(e).nodes(s).links(a).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:(new r.Layout).convergenceThreshold(.001).size(e).avoidOverlaps(!0).nodes(t.nodes).links(t.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(t){(i=t).groups.forEach(function(t){t.padding=n})}).start(50,0,100,0,!1),powerGraph:i}}},65098:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(29738),i=n(62834);e.d3adaptor=function(t){return!t||function(t){return t.version&&null!==t.version.match(/^3\./)}(t)?new r.D3StyleLayoutAdaptor:new i.D3StyleLayoutAdaptor(t)}},29738:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(51390),a=function(t){function e(){var e=t.call(this)||this;e.event=d3.dispatch(o.EventType[o.EventType.start],o.EventType[o.EventType.tick],o.EventType[o.EventType.end]);var n=e;return e.drag=function(){if(!t)var t=d3.behavior.drag().origin(o.Layout.dragOrigin).on("dragstart.d3adaptor",o.Layout.dragStart).on("drag.d3adaptor",function(t){o.Layout.drag(t,d3.event),n.resume()}).on("dragend.d3adaptor",o.Layout.dragEnd);if(!arguments.length)return t;this.call(t)},e}return i(e,t),e.prototype.trigger=function(t){var e={type:o.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event[e.type](e)},e.prototype.kick=function(){var e=this;d3.timer(function(){return t.prototype.tick.call(e)})},e.prototype.on=function(t,e){return this.event.on("string"==typeof t?t:o.EventType[t],e),this},e}(o.Layout);e.D3StyleLayoutAdaptor=a,e.d3adaptor=function(){return new a}},62834:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(51390);e.D3StyleLayoutAdaptor=function(t){function e(e){var n=t.call(this)||this;n.d3Context=e,n.event=e.dispatch(o.EventType[o.EventType.start],o.EventType[o.EventType.tick],o.EventType[o.EventType.end]);var r=n;return n.drag=function(){if(!t)var t=e.drag().subject(o.Layout.dragOrigin).on("start.d3adaptor",o.Layout.dragStart).on("drag.d3adaptor",function(t){o.Layout.drag(t,e.event),r.resume()}).on("end.d3adaptor",o.Layout.dragEnd);if(!arguments.length)return t;arguments[0].call(t)},n}return i(e,t),e.prototype.trigger=function(t){var e={type:o.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event.call(e.type,e)},e.prototype.kick=function(){var e=this,n=this.d3Context.timer(function(){return t.prototype.tick.call(e)&&n.stop()})},e.prototype.on=function(t,e){return this.event.on("string"==typeof t?t:o.EventType[t],e),this},e}(o.Layout)},59895:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){this.locks={}}return t.prototype.add=function(t,e){this.locks[t]=e},t.prototype.clear=function(){this.locks={}},t.prototype.isEmpty=function(){for(var t in this.locks)return!1;return!0},t.prototype.apply=function(t){for(var e in this.locks)t(Number(e),this.locks[e])},t}();e.Locks=n,e.Descent=function(){function t(t,e,i){void 0===i&&(i=null),this.D=e,this.G=i,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new r,this.project=null,this.x=t,this.k=t.length;var o=this.n=t[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 n,this.minD=Number.MAX_VALUE;for(var a,s=o;s--;)for(a=o;--a>s;){var u=e[s][a];u>0&&u1e-9)break;var d=this.offsetDir();for(r=0;r1&&p>g||!isFinite(g))for(r=0;r1&&(v=1);var m=g*g,y=2*v*(p-g)/(m*p),_=p*p*p,w=2*-v/(m*_);for(isFinite(y)||console.log(y),r=0;r0?A-(I+1)*x:A-(I-1)*x)&&f<=b&&(this.scaleSnapByMaxH?(this.g[r][u]+=s*E*f,this.H[r][u][u]+=s*E):(this.g[r][u]+=E*f,this.H[r][u][u]+=E))}this.locks.isEmpty()||this.locks.apply(function(n,i){for(r=0;r0;)for(var i=e;i-- >0;)n(r,i)},t.prototype.matrixApply=function(e){t.mApply(this.k,this.n,e)},t.prototype.computeNextPosition=function(t,e){var n=this;this.computeDerivatives(t);var r=this.computeStepSize(this.g);if(this.stepAndProject(t,e,this.g,r),this.project){this.matrixApply(function(r,i){return n.e[r][i]=t[r][i]-e[r][i]});var i=this.computeStepSize(this.e);i=Math.max(.2,Math.min(i,1)),this.stepAndProject(t,e,this.e,i)}},t.prototype.run=function(t){for(var e=Number.MAX_VALUE,n=!1;!n&&t-- >0;){var r=this.rungeKutta();n=Math.abs(e/r-1)>16)/this.range},t.prototype.getNextBetween=function(t,e){return t+this.getNext()*(e-t)},t}();e.PseudoRandom=r},13408:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(97002),a=function(){};e.Point=a;var s=function(t,e,n,r){this.x1=t,this.y1=e,this.x2=n,this.y2=r};function u(t,e,n){return(e.x-t.x)*(n.y-t.y)-(n.x-t.x)*(e.y-t.y)}function c(t,e,n){return u(t,e,n)>0}function l(t,e,n){return u(t,e,n)<0}function h(t,e){var n,r,i,o,a=e.length-1;if(l(t,e[1],e[0])&&!c(t,e[a-1],e[0]))return 0;for(n=0,r=a;;){if(r-n==1)return c(t,e[n],e[r])?n:r;if((o=l(t,e[(i=Math.floor((n+r)/2))+1],e[i]))&&!c(t,e[i-1],e[i]))return i;c(t,e[n+1],e[n])?o||c(t,e[n],e[i])?r=i:n=i:o&&l(t,e[n],e[i])?r=i:n=i}}function f(t,e){var n,r,i,o,a=e.length-1;if(c(t,e[a-1],e[0])&&!l(t,e[1],e[0]))return 0;for(n=0,r=a;;){if(r-n==1)return l(t,e[n],e[r])?n:r;if(o=l(t,e[(i=Math.floor((n+r)/2))+1],e[i]),c(t,e[i-1],e[i])&&!o)return i;l(t,e[n+1],e[n])?o?l(t,e[n],e[i])?r=i:n=i:r=i:o?n=i:c(t,e[n],e[i])?r=i:n=i}}function d(t,e,n,r,i,o){var a,s;s=r(t[a=n(e[0],t)],e);for(var u=!1;!u;){for(u=!0;a===t.length-1&&(a=0),!i(e[s],t[a],t[a+1]);)++a;for(;0===s&&(s=e.length-1),!o(t[a],e[s],e[s-1]);)--s,u=!1}return{t1:a,t2:s}}function p(t,e){return d(t,e,h,f,c,l)}e.LineSegment=s,e.PolyPoint=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(a),e.isLeft=u,e.ConvexHull=function(t){var e,n=t.slice(0).sort(function(t,e){return t.x!==e.x?e.x-t.x:e.y-t.y}),r=t.length,i=n[0].x;for(e=1;e=0&&n[e].x===l;e--);for(s=e+1,e=o;++e<=s;)if(!(u(n[0],n[s],n[e])>=0&&e1&&!(u(a[a.length-2],a[a.length-1],n[e])>0);)a.length-=1;0!=e&&a.push(n[e])}c!=s&&a.push(n[c]);var h=a.length;for(e=s;--e>=o;)if(!(u(n[c],n[o],n[e])>=0&&e>o)){for(;a.length>h&&!(u(a[a.length-2],a[a.length-1],n[e])>0);)a.length-=1;0!=e&&a.push(n[e])}}return a},e.clockwiseRadialSweep=function(t,e,n){e.slice(0).sort(function(e,n){return Math.atan2(e.y-t.y,e.x-t.x)-Math.atan2(n.y-t.y,n.x-t.x)}).forEach(n)},e.tangent_PolyPolyC=d,e.LRtangent_PolyPolyC=function(t,e){var n=p(e,t);return{t1:n.t2,t2:n.t1}},e.RLtangent_PolyPolyC=p,e.LLtangent_PolyPolyC=function(t,e){return d(t,e,f,f,l,l)},e.RRtangent_PolyPolyC=function(t,e){return d(t,e,h,h,c,c)};var g=function(t,e){this.t1=t,this.t2=e};e.BiTangent=g;var v=function(){};e.BiTangents=v,e.TVGPoint=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(a);var m=function(t,e,n,r){this.id=t,this.polyid=e,this.polyvertid=n,this.p=r,r.vv=this};e.VisibilityVertex=m;var y=function(){function t(t,e){this.source=t,this.target=e}return t.prototype.length=function(){var t=this.source.p.x-this.target.p.x,e=this.source.p.y-this.target.p.y;return Math.sqrt(t*t+e*e)},t}();function _(t,e){for(var n=[],r=1,i=e.length;r=0&&m>=0&&y<0&&_>=0&&w>=0&&b<0?i.ll=new g(o,a):p<=0&&m<=0&&y>0&&_<=0&&w<=0&&b>0?i.rr=new g(o,a):p<=0&&m>0&&y<=0&&_>=0&&w<0&&b>=0?i.rl=new g(o,a):p>=0&&m<0&&y>=0&&_<=0&&w>0&&b<=0&&(i.lr=new g(o,a))}return i}function b(t,e){return!t.every(function(t){return!function(t,e){for(var n=1,r=e.length;n0&&this.E.push(new y(i[o-1].vv,a))}i.length>1&&this.E.push(new y(i[0].vv,i[i.length-1].vv))}for(r=0;r0)return!0;return!1},t}(),e.tangents=w,e.polysOverlap=function(t,e){if(b(t,e))return!0;if(b(e,t))return!0;for(var n=1,r=t.length;n0)return!0}return!1}},66082:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(97002),i=n(70980),o=n(99147),a=function(t,e,n){this.id=t,this.rect=e,this.children=n,this.leaf=void 0===n||0===n.length};e.NodeWrapper=a;var s=function(t,e,n,r,i){void 0===r&&(r=null),void 0===i&&(i=null),this.id=t,this.x=e,this.y=n,this.node=r,this.line=i};e.Vert=s;var u=function(){function t(e,n){this.s=e,this.t=n;var r=t.findMatch(e,n),i=n.slice(0).reverse(),o=t.findMatch(e,i);r.length>=o.length?(this.length=r.length,this.si=r.si,this.ti=r.ti,this.reversed=!1):(this.length=o.length,this.si=o.si,this.ti=n.length-o.ti-o.length,this.reversed=!0)}return t.findMatch=function(t,e){for(var n=t.length,r=e.length,i={length:0,si:-1,ti:-1},o=new Array(n),a=0;ai.length&&(i.length=u,i.si=a-u+1,i.ti=s-u+1)}else o[a][s]=0}return i},t.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},t}();e.LongestCommonSubsequence=u,e.GridRouter=function(){function t(t,e,n){var i=this;void 0===n&&(n=12),this.originalnodes=t,this.groupPadding=n,this.leaves=null,this.nodes=t.map(function(t,n){return new a(n,e.getBounds(t),e.getChildren(t))}),this.leaves=this.nodes.filter(function(t){return t.leaf}),this.groups=this.nodes.filter(function(t){return!t.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(t){return t.children.forEach(function(e){return i.nodes[e].parent=t})}),this.root={children:[]},this.nodes.forEach(function(t){void 0===t.parent&&(t.parent=i.root,i.root.children.push(t.id)),t.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(t,e){return i.getDepth(t)-i.getDepth(e)}),this.backToFront.slice(0).reverse().filter(function(t){return!t.leaf}).forEach(function(t){var e=r.Rectangle.empty();t.children.forEach(function(t){return e=e.union(i.nodes[t].rect)}),t.rect=e.inflate(i.groupPadding)});var o=this.midPoints(this.cols.map(function(t){return t.pos})),u=this.midPoints(this.rows.map(function(t){return t.pos})),c=o[0],l=o[o.length-1],h=u[0],f=u[u.length-1],d=this.rows.map(function(t){return{x1:c,x2:l,y1:t.pos,y2:t.pos}}).concat(u.map(function(t){return{x1:c,x2:l,y1:t,y2:t}})),p=this.cols.map(function(t){return{x1:t.pos,x2:t.pos,y1:h,y2:f}}).concat(o.map(function(t){return{x1:t,x2:t,y1:h,y2:f}})),g=d.concat(p);g.forEach(function(t){return t.verts=[]}),this.verts=[],this.edges=[],d.forEach(function(t){return p.forEach(function(e){var n=new s(i.verts.length,e.x1,t.y1);t.verts.push(n),e.verts.push(n),i.verts.push(n);for(var r=i.backToFront.length;r-- >0;){var o=i.backToFront[r],a=o.rect,u=Math.abs(n.x-a.cx()),c=Math.abs(n.y-a.cy());if(u0;){var r=n.filter(function(e){return e.rect["overlap"+t.toUpperCase()](n[0].rect)}),i={nodes:r,pos:this.avg(r.map(function(e){return e.rect["c"+t]()}))};e.push(i),i.nodes.forEach(function(t){return n.splice(n.indexOf(t),1)})}return e.sort(function(t,e){return t.pos-e.pos}),e},t.prototype.getDepth=function(t){for(var e=0;t.parent!==this.root;)e++,t=t.parent;return e},t.prototype.midPoints=function(t){for(var e=t[1]-t[0],n=[t[0]-e/2],r=1;r.1)&&s.push(u={pos:l[0][e],segments:[]}),u.segments.push(l)}return s},t.nudgeSegs=function(t,e,n,r,o,a){var s=r.length;if(!(s<=1)){for(var u=r.map(function(e){return new i.Variable(e[0][t])}),c=[],l=0;l=0&&c.push(new i.Constraint(u[g],u[v],a))}new i.Solver(u,c).solve(),u.forEach(function(e,i){var o=r[i],a=e.position();o[0][t]=o[1][t]=a;var s=n[o.edgeid];o.i>0&&(s[o.i-1][1][t]=a),o.iMath.PI||i<-Math.PI)&&(i=r-n),i},t.isLeft=function(t,e,n){return(e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x)<=0},t.getOrder=function(t){for(var e={},n=0;n=c.length||h.ti+h.length>=l.length)?n.push({l:r,r:i}):(h.si+h.length>=c.length||h.ti+h.length>=l.length?(o=c[h.si+1],s=c[h.si-1],a=l[h.ti-1]):(o=c[h.si+h.length-2],a=c[h.si+h.length],s=l[h.ti+h.length]),t.isLeft(o,a,s)?n.push({l:i,r:r}):n.push({l:r,r:i})))}return t.getOrder(n)},t.makeSegments=function(t){function e(t){return{x:t.x,y:t.y}}for(var n=function(t,e,n){return Math.abs((e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x))<.001},r=[],i=e(t[0]),o=1;o1&&l>1?1e3:0}).reverse().map(function(t){return n.verts[t]});return u.push(this.nodes[i.id].ports[0]),u.filter(function(t,e){return!(e0&&t.node===i&&u[e-1].node===i)})},t.getRoutePath=function(e,n,r,i){var o,a,s,u,c,l={routepath:"M "+e[0][0].x+" "+e[0][0].y+" ",arrowpath:""};if(e.length>1)for(var h=0;h0?a-=f/Math.abs(f)*n:s-=d/Math.abs(d)*n,l.routepath+="L "+a+" "+s+" ";var p=e[h+1],g=p[0].x,v=p[0].y;f=p[1].x-g,d=p[1].y-v;var m,y,_=t.angleBetween2Lines(o,p)<0?1:0;Math.abs(f)>0?(m=g+f/Math.abs(f)*n,y=v):(m=g,y=v+d/Math.abs(d)*n);var w=Math.abs(m-a),b=Math.abs(y-s);l.routepath+="A "+w+" "+b+" 0 0 "+_+" "+m+" "+y+" "}else{var x=[a,s];Math.abs(f)>0?(u=[a-=f/Math.abs(f)*i,s+r],c=[a,s-r]):(u=[a+r,s-=d/Math.abs(d)*i],c=[a-r,s]),l.routepath+="L "+a+" "+s+" ",i>0&&(l.arrowpath="M "+x[0]+" "+x[1]+" L "+u[0]+" "+u[1]+" L "+c[0]+" "+c[1])}}else f=(a=(o=e[0])[1].x)-o[0].x,d=(s=o[1].y)-o[0].y,x=[a,s],Math.abs(f)>0?(u=[a-=f/Math.abs(f)*i,s+r],c=[a,s-r]):(u=[a+r,s-=d/Math.abs(d)*i],c=[a-r,s]),l.routepath+="L "+a+" "+s+" ",i>0&&(l.arrowpath="M "+x[0]+" "+x[1]+" L "+u[0]+" "+u[1]+" L "+c[0]+" "+c[1]);return l},t}()},33839:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(1+Math.sqrt(5))/2;e.applyPacking=function(t,e,r,i,o,a){void 0===o&&(o=1),void 0===a&&(a=!0);var s=e,u=r,c=(o=void 0!==o?o:1,i=void 0!==i?i:0,0),l=0,h=0,f=0,d=[];function p(t,e){d=[],c=0,l=0,f=0;for(var n=0;n=t.height&&d[r].x+d[r].width+t.width+10-e<=1e-4){n=d[r];break}d.push(t),void 0!==n?(t.x=n.x+n.width+10,t.y=n.bottom,t.space_left=t.height,t.bottom=t.y,n.space_left-=t.height+10,n.bottom+=t.height+10):(t.y=f,f+=t.height+10,t.x=0,t.bottom=t.y,t.space_left=t.height),t.y+t.height-l>-1e-4&&(l=t.y+t.height-0),t.x+t.width-c>-1e-4&&(c=t.x+t.width-0)}0!=t.length&&(function(t){t.forEach(function(t){var e,n,r,o,a;e=t,n=Number.MAX_VALUE,r=Number.MAX_VALUE,o=0,a=0,e.array.forEach(function(t){var e=void 0!==t.width?t.width:i,s=void 0!==t.height?t.height:i;e/=2,s/=2,o=Math.max(t.x+e,o),n=Math.min(t.x-e,n),a=Math.max(t.y+s,a),r=Math.min(t.y-s,r)}),e.width=o-n,e.height=a-r})}(t),function(t,e){var r=Number.POSITIVE_INFINITY,i=0;t.sort(function(t,e){return e.height-t.height});for(var o=g=h=t.reduce(function(t,e){return t.widthh||d>1e-4;){if(1!=l){var g=a-(a-o)/n;u=p(t,g)}if(0!=l){var v=o+(a-o)/n;c=p(t,v)}if(f=Math.abs(g-v),d=Math.abs(u-c),uc?(o=g,g=v,u=c,l=1):(a=v,v=g,c=u,l=0),s++>100)break}p(t,i)}(t),a&&function(t){t.forEach(function(t){var e={x:0,y:0};t.array.forEach(function(t){e.x+=t.x,e.y+=t.y}),e.x/=t.array.length,e.y/=t.array.length;var n=t.x-(e.x-t.width/2)+s/2-c/2,r=t.y-(e.y-t.height/2)+u/2-l/2;t.array.forEach(function(t){t.x+=n,t.y+=r})})}(t))},e.separateGraphs=function(t,e){for(var n={},r={},i=[],o=0,a=0;a0){var e=0;this._links.forEach(function(t){e=Math.max(e,t.source,t.target)}),this._nodes=new Array(++e);for(var n=0;n0?t:0:t>0&&(this._running||(this._running=!0,this.trigger({type:l.start,alpha:this._alpha=t}),this.kick())),this):this._alpha},t.prototype.getLinkLength=function(t){return"function"==typeof this._linkDistance?+this._linkDistance(t):this._linkDistance},t.setLinkLength=function(t,e){t.length=e},t.prototype.getLinkType=function(t){return"function"==typeof this._linkType?this._linkType(t):0},t.prototype.symmetricDiffLinkLengths=function(t,e){var n=this;return void 0===e&&(e=1),this.linkDistance(function(e){return t*e.length}),this._linkLengthCalculator=function(){return i.symmetricDiffLinkLengths(n._links,n.linkAccessor,e)},this},t.prototype.jaccardLinkLengths=function(t,e){var n=this;return void 0===e&&(e=1),this.linkDistance(function(e){return t*e.length}),this._linkLengthCalculator=function(){return i.jaccardLinkLengths(n._links,n.linkAccessor,e)},this},t.prototype.start=function(e,n,r,u,c,l){var h=this;void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),void 0===u&&(u=0),void 0===c&&(c=!0),void 0===l&&(l=!0);var f,d=this.nodes().length,p=d+2*this._groups.length,g=this._canvasSize[0],v=this._canvasSize[1],m=new Array(p),y=new Array(p),_=null,w=this._avoidOverlaps;this._nodes.forEach(function(t,e){t.index=e,void 0===t.x&&(t.x=g/2,t.y=v/2),m[e]=t.x,y[e]=t.y}),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?f=this._distanceMatrix:(f=new s.Calculator(p,this._links,t.getSourceIndex,t.getTargetIndex,function(t){return h.getLinkLength(t)}).DistanceMatrix(),_=o.Descent.createSquareMatrix(p,function(){return 2}),this._links.forEach(function(t){"number"==typeof t.source&&(t.source=h._nodes[t.source]),"number"==typeof t.target&&(t.target=h._nodes[t.target])}),this._links.forEach(function(e){var n=t.getSourceIndex(e),r=t.getTargetIndex(e);_[n][r]=_[r][n]=e.weight||1}));var b=o.Descent.createSquareMatrix(p,function(t,e){return f[t][e]});if(this._rootGroup&&void 0!==this._rootGroup.groups){var x=d;this._groups.forEach(function(t){!function(t,e,n,r){_[t][e]=_[e][t]=n,b[t][e]=b[e][t]=.1}(x,x+1,h._groupCompactness),m[x]=0,y[x++]=0,m[x]=0,y[x++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var E=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,E=E.concat(i.generateDirectedEdgeConstraints(d,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new o.Descent([m,y],b),this._descent.locks.clear(),x=0;x0&&(this._descent.project=new a.Projection(this._nodes,this._groups,this._rootGroup,E).projectFunctions()),this._descent.run(n),this.separateOverlappingComponents(g,v,l),this.avoidOverlaps(w),w&&(this._nodes.forEach(function(t,e){t.x=m[e],t.y=y[e]}),this._descent.project=new a.Projection(this._nodes,this._groups,this._rootGroup,E,!0).projectFunctions(),this._nodes.forEach(function(t,e){m[e]=t.x,y[e]=t.y})),this._descent.G=_,this._descent.run(r),u){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=d,this._descent.scaleSnapByMaxH=d!=p;var A=o.Descent.createSquareMatrix(p,function(t,e){return t>=d||e>=d?_[t][e]:0});this._descent.G=A,this._descent.run(u)}return this.updateNodePositions(),this.separateOverlappingComponents(g,v,l),c?this.resume():this},t.prototype.initialLayout=function(e,n,r){if(this._groups.length>0&&e>0){var i=this._nodes.length,o=this._links.map(function(t){return{source:t.source.index,target:t.target.index}}),a=this._nodes.map(function(t){return{index:t.index}});this._groups.forEach(function(t,e){a.push({index:t.index=i+e})}),this._groups.forEach(function(t,e){void 0!==t.leaves&&t.leaves.forEach(function(e){return o.push({source:t.index,target:e.index})}),void 0!==t.groups&&t.groups.forEach(function(e){return o.push({source:t.index,target:e.index})})}),(new t).size(this.size()).nodes(a).links(o).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(e,0,0,0,!1),this._nodes.forEach(function(t){n[t.index]=a[t.index].x,r[t.index]=a[t.index].y})}else this._descent.run(e)},t.prototype.separateOverlappingComponents=function(t,e,n){var r=this;if(void 0===n&&(n=!0),!this._distanceMatrix&&this._handleDisconnected){var i=this._descent.x[0],o=this._descent.x[1];this._nodes.forEach(function(t,e){t.x=i[e],t.y=o[e]});var a=c.separateGraphs(this._nodes,this._links);c.applyPacking(a,t,e,this._defaultNodeSize,1,n),this._nodes.forEach(function(t,e){r._descent.x[0][e]=t.x,r._descent.x[1][e]=t.y,t.bounds&&(t.bounds.setXCentre(t.x),t.bounds.setYCentre(t.y))})}},t.prototype.resume=function(){return this.alpha(.1)},t.prototype.stop=function(){return this.alpha(0)},t.prototype.prepareEdgeRouting=function(t){void 0===t&&(t=0),this._visibilityGraph=new u.TangentVisibilityGraph(this._nodes.map(function(e){return e.bounds.inflate(-t).vertices()}))},t.prototype.routeEdge=function(t,e,n){void 0===e&&(e=5);var r=[],i=new u.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),o={x:t.source.x,y:t.source.y},c={x:t.target.x,y:t.target.y},l=i.addPoint(o,t.source.index),h=i.addPoint(c,t.target.index);i.addEdgeIfVisible(o,c,t.source.index,t.target.index),void 0!==n&&n(i);var f=new s.Calculator(i.V.length,i.E,function(t){return t.source.id},function(t){return t.target.id},function(t){return t.length()}).PathFromNodeToNode(l.id,h.id);if(1===f.length||f.length===i.V.length){var d=a.makeEdgeBetween(t.source.innerBounds,t.target.innerBounds,e);r=[d.sourceIntersection,d.arrowStart]}else{for(var p=f.length-2,g=i.V[f[p]].p,v=i.V[f[0]].p,m=(r=[t.source.innerBounds.rayIntersection(g.x,g.y)],p);m>=0;--m)r.push(i.V[f[m]].p);r.push(a.makeEdgeTo(v,t.target.innerBounds,e))}return r},t.getSourceIndex=function(t){return"number"==typeof t.source?t.source:t.source.index},t.getTargetIndex=function(t){return"number"==typeof t.target?t.target:t.target.index},t.linkId=function(e){return t.getSourceIndex(e)+"-"+t.getTargetIndex(e)},t.dragStart=function(e){h(e)?t.storeOffset(e,t.dragOrigin(e)):(t.stopNode(e),e.fixed|=2)},t.stopNode=function(t){t.px=t.x,t.py=t.y},t.storeOffset=function(e,n){void 0!==e.leaves&&e.leaves.forEach(function(e){e.fixed|=2,t.stopNode(e),e._dragGroupOffsetX=e.x-n.x,e._dragGroupOffsetY=e.y-n.y}),void 0!==e.groups&&e.groups.forEach(function(e){return t.storeOffset(e,n)})},t.dragOrigin=function(t){return h(t)?{x:t.bounds.cx(),y:t.bounds.cy()}:t},t.drag=function(e,n){h(e)?(void 0!==e.leaves&&e.leaves.forEach(function(t){e.bounds.setXCentre(n.x),e.bounds.setYCentre(n.y),t.px=t._dragGroupOffsetX+n.x,t.py=t._dragGroupOffsetY+n.y}),void 0!==e.groups&&e.groups.forEach(function(e){return t.drag(e,n)})):(e.px=n.x,e.py=n.y)},t.dragEnd=function(e){h(e)?(void 0!==e.leaves&&e.leaves.forEach(function(e){t.dragEnd(e),delete e._dragGroupOffsetX,delete e._dragGroupOffsetY}),void 0!==e.groups&&e.groups.forEach(t.dragEnd)):e.fixed&=-7},t.mouseOver=function(t){t.fixed|=4,t.px=t.x,t.py=t.y},t.mouseOut=function(t){t.fixed&=-5},t}()},83807:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(99147),i=n(59895),o=n(97002),a=n(24232);e.Link3D=function(){function t(t,e){this.source=t,this.target=e}return t.prototype.actualLength=function(t){var e=this;return Math.sqrt(t.reduce(function(t,n){var r=n[e.target]-n[e.source];return t+r*r},0))},t}(),e.Node3D=function(t,e,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),this.x=t,this.y=e,this.z=n},e.Layout3D=function(){function t(e,n,r){var i=this;void 0===r&&(r=1),this.nodes=e,this.links=n,this.idealLinkLength=r,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(t.k);for(var o=0;o=this.R))return this.merge(e.a,e.b,t),!0}},t.prototype.nEdges=function(t,e){var n=t.incoming.intersection(e.incoming),r=t.outgoing.intersection(e.outgoing);return this.R-n.count()-r.count()},t.prototype.getGroupHierarchy=function(t){var e=this,r=[];return i(this.roots[0],{},r),this.allEdges().forEach(function(i){var o=e.modules[i.source],a=e.modules[i.target];t.push(new n(void 0===o.gid?i.source:r[o.gid],void 0===a.gid?i.target:r[a.gid],i.type))}),r},t.prototype.allEdges=function(){var e=[];return t.getEdges(this.roots[0],e),e},t.getEdges=function(e,n){e.forAll(function(e){e.getEdges(n),t.getEdges(e.children,n)})},t}();function i(t,e,n){t.forAll(function(t){if(t.isLeaf())e.leaves||(e.leaves=[]),e.leaves.push(t.id);else{var r=e;if(t.gid=n.length,!t.isIsland()||t.isPredefined()){if(r={id:t.gid},t.isPredefined())for(var o in t.definition)r[o]=t.definition[o];e.groups||(e.groups=[]),e.groups.push(t.gid),n.push(r)}i(t.children,r,n)}})}e.Configuration=r;var o=function(){function t(t,e,n,r,i){void 0===e&&(e=new s),void 0===n&&(n=new s),void 0===r&&(r=new a),this.id=t,this.outgoing=e,this.incoming=n,this.children=r,this.definition=i}return t.prototype.getEdges=function(t){var e=this;this.outgoing.forAll(function(r,i){r.forAll(function(r){t.push(new n(e.id,r.id,i))})})},t.prototype.isLeaf=function(){return 0===this.children.count()},t.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},t.prototype.isPredefined=function(){return void 0!==this.definition},t}();e.Module=o;var a=function(){function t(){this.table={}}return t.prototype.count=function(){return Object.keys(this.table).length},t.prototype.intersection=function(e){var n=new t;return n.table=function(t,e){var n={};for(var r in t)r in e&&(n[r]=t[r]);return n}(this.table,e.table),n},t.prototype.intersectionCount=function(t){return this.intersection(t).count()},t.prototype.contains=function(t){return t in this.table},t.prototype.add=function(t){this.table[t.id]=t},t.prototype.remove=function(t){delete this.table[t.id]},t.prototype.forAll=function(t){for(var e in this.table)t(this.table[e])},t.prototype.modules=function(){var t=[];return this.forAll(function(e){e.isPredefined()||t.push(e)}),t},t}();e.ModuleSet=a;var s=function(){function t(){this.sets={},this.n=0}return t.prototype.count=function(){return this.n},t.prototype.contains=function(t){var e=!1;return this.forAllModules(function(n){e||n.id!=t||(e=!0)}),e},t.prototype.add=function(t,e){(t in this.sets?this.sets[t]:this.sets[t]=new a).add(e),++this.n},t.prototype.remove=function(t,e){var n=this.sets[t];n.remove(e),0===n.count()&&delete this.sets[t],--this.n},t.prototype.forAll=function(t){for(var e in this.sets)t(this.sets[e],Number(e))},t.prototype.forAllModules=function(t){this.forAll(function(e,n){return e.forAll(t)})},t.prototype.intersection=function(e){var n=new t;return this.forAll(function(t,r){if(r in e.sets){var i=t.intersection(e.sets[r]),o=i.count();o>0&&(n.sets[r]=i,n.n+=o)}}),n},t}();e.LinkSets=s,e.getGroups=function(t,e,n,i){for(var o=new r(t.length,e,n,i);o.greedyMerge(););var a=[],s=o.getGroupHierarchy(a);return a.forEach(function(e){var n=function(n){var r=e[n];"number"==typeof r&&(e[n]=t[r])};n("source"),n("target")}),{groups:s,powerEdges:a}}},741:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.elem=t,this.subheaps=[]}return t.prototype.toString=function(t){for(var e="",n=!1,r=0;r0)}return null}}return t.prototype.clear=function(){this._root=null,this.size=0},t.prototype.find=function(t){for(var e=this._root;null!==e;){var n=this._comparator(t,e.data);if(0===n)return e.data;e=e.get_child(n>0)}return null},t.prototype.lowerBound=function(t){return this._bound(t,this._comparator)},t.prototype.upperBound=function(t){var e=this._comparator;return this._bound(t,function(t,n){return e(n,t)})},t.prototype.min=function(){var t=this._root;if(null===t)return null;for(;null!==t.left;)t=t.left;return t.data},t.prototype.max=function(){var t=this._root;if(null===t)return null;for(;null!==t.right;)t=t.right;return t.data},t.prototype.iterator=function(){return new o(this)},t.prototype.each=function(t){for(var e,n=this.iterator();null!==(e=n.next());)t(e)},t.prototype.reach=function(t){for(var e,n=this.iterator();null!==(e=n.prev());)t(e)},t.prototype._bound=function(t,e){for(var n=this._root,r=this.iterator();null!==n;){var i=this._comparator(t,n.data);if(0===i)return r._cursor=n,r;r._ancestors.push(n),n=n.get_child(i>0)}for(var o=r._ancestors.length-1;o>=0;--o)if(e(t,(n=r._ancestors[o]).data)>0)return r._cursor=n,r._ancestors.length=o,r;return r._ancestors.length=0,r},t}();e.TreeBase=i;var o=function(){function t(t){this._tree=t,this._ancestors=[],this._cursor=null}return t.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},t.prototype.next=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._minNode(t)}else{var e;if(null===this._cursor.right)do{if(e=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===e);else this._ancestors.push(this._cursor),this._minNode(this._cursor.right)}return null!==this._cursor?this._cursor.data:null},t.prototype.prev=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._maxNode(t)}else{var e;if(null===this._cursor.left)do{if(e=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===e);else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left)}return null!==this._cursor?this._cursor.data:null},t.prototype._minNode=function(t){for(;null!==t.left;)this._ancestors.push(t),t=t.left;this._cursor=t},t.prototype._maxNode=function(t){for(;null!==t.right;)this._ancestors.push(t),t=t.right;this._cursor=t},t}();e.Iterator=o;var a=function(){function t(t){this.data=t,this.left=null,this.right=null,this.red=!0}return t.prototype.get_child=function(t){return t?this.right:this.left},t.prototype.set_child=function(t,e){t?this.right=e:this.left=e},t}();e.RBTree=function(t){function e(e){var n=t.call(this)||this;return n._root=null,n._comparator=e,n.size=0,n}return r(e,t),e.prototype.insert=function(t){var n=!1;if(null===this._root)this._root=new a(t),n=!0,this.size++;else{var r=new a(void 0),i=!1,o=!1,s=null,u=r,c=null,l=this._root;for(u.right=this._root;;){if(null===l?(l=new a(t),c.set_child(i,l),n=!0,this.size++):e.is_red(l.left)&&e.is_red(l.right)&&(l.red=!0,l.left.red=!1,l.right.red=!1),e.is_red(l)&&e.is_red(c)){var h=u.right===s;l===c.get_child(o)?u.set_child(h,e.single_rotate(s,!o)):u.set_child(h,e.double_rotate(s,!o))}var f=this._comparator(l.data,t);if(0===f)break;o=i,null!==s&&(u=s),s=c,c=l,l=l.get_child(i=f<0)}this._root=r.right}return this._root.red=!1,n},e.prototype.remove=function(t){if(null===this._root)return!1;var n=new a(void 0),r=n;r.right=this._root;for(var i=null,o=null,s=null,u=!0;null!==r.get_child(u);){var c=u;o=i,i=r,r=r.get_child(u);var l=this._comparator(t,r.data);if(u=l>0,0===l&&(s=r),!e.is_red(r)&&!e.is_red(r.get_child(u)))if(e.is_red(r.get_child(!u))){var h=e.single_rotate(r,u);i.set_child(c,h),i=h}else if(!e.is_red(r.get_child(!u))){var f=i.get_child(!c);if(null!==f)if(e.is_red(f.get_child(!c))||e.is_red(f.get_child(c))){var d=o.right===i;e.is_red(f.get_child(c))?o.set_child(d,e.double_rotate(i,c)):e.is_red(f.get_child(!c))&&o.set_child(d,e.single_rotate(i,c));var p=o.get_child(d);p.red=!0,r.red=!0,p.left.red=!1,p.right.red=!1}else i.red=!1,f.red=!0,r.red=!0}}return null!==s&&(s.data=r.data,i.set_child(i.right===r,r.get_child(null===r.left)),this.size--),this._root=n.right,null!==this._root&&(this._root.red=!1),null!==s},e.is_red=function(t){return null!==t&&t.red},e.single_rotate=function(t,e){var n=t.get_child(!e);return t.set_child(!e,n.get_child(e)),n.set_child(e,t),t.red=!0,n.red=!1,n},e.double_rotate=function(t,n){return t.set_child(!n,e.single_rotate(t.get_child(!n),!n)),e.single_rotate(t,n)},e}(i)},97002:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(70980),a=n(21539);function s(t){return t.bounds=void 0!==t.leaves?t.leaves.reduce(function(t,e){return e.bounds.union(t)},u.empty()):u.empty(),void 0!==t.groups&&(t.bounds=t.groups.reduce(function(t,e){return s(e).union(t)},t.bounds)),t.bounds=t.bounds.inflate(t.padding),t.bounds}e.computeGroupBounds=s;var u=function(){function t(t,e,n,r){this.x=t,this.X=e,this.y=n,this.Y=r}return t.empty=function(){return new t(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},t.prototype.cx=function(){return(this.x+this.X)/2},t.prototype.cy=function(){return(this.y+this.Y)/2},t.prototype.overlapX=function(t){var e=this.cx(),n=t.cx();return e<=n&&t.x0?n[0]:null},t.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}]},t.lineIntersection=function(t,e,n,r,i,o,a,s){var u=n-t,c=a-i,l=r-e,h=s-o,f=h*u-c*l;if(0==f)return null;var d=t-i,p=e-o,g=(c*p-h*d)/f,v=(u*p-l*d)/f;return g>=0&&g<=1&&v>=0&&v<=1?{x:t+g*u,y:e+g*l}:null},t.prototype.inflate=function(e){return new t(this.x-e,this.X+e,this.y-e,this.Y+e)},t}();e.Rectangle=u,e.makeEdgeBetween=function(t,e,n){var r=t.rayIntersection(e.cx(),e.cy())||{x:t.cx(),y:t.cy()},i=e.rayIntersection(t.cx(),t.cy())||{x:e.cx(),y:e.cy()},o=i.x-r.x,a=i.y-r.y,s=Math.sqrt(o*o+a*a),u=s-n;return{sourceIntersection:r,targetIntersection:i,arrowStart:{x:r.x+u*o/s,y:r.y+u*a/s}}},e.makeEdgeTo=function(t,e,n){var r=e.rayIntersection(t.x,t.y);r||(r={x:e.cx(),y:e.cy()});var i=r.x-t.x,o=r.y-t.y,a=Math.sqrt(i*i+o*o);return{x:r.x-n*i/a,y:r.y-n*o/a}};var c=function(t,e,n){this.v=t,this.r=e,this.pos=n,this.prev=f(),this.next=f()},l=function(t,e,n){this.isOpen=t,this.v=e,this.pos=n};function h(t,e){return t.pos>e.pos?1:t.pos0&&(t[n].insert(i),i[r].insert(t))};n("next","prev"),n("prev","next")}};function g(t,e,n,r){void 0===r&&(r=!1);var i=t.padding,o=void 0!==t.groups?t.groups.length:0,a=void 0!==t.leaves?t.leaves.length:0,s=o?t.groups.reduce(function(t,r){return t.concat(g(r,e,n,!0))},[]):[],u=(r?2:0)+a+o,c=new Array(u),l=new Array(u),h=0,f=function(t,e){l[h]=t,c[h++]=e};if(r){var d=t.bounds,p=e.getCentre(d),m=e.getSize(d)/2,y=e.getOpen(d),_=e.getClose(d),w=p-m+i/2,b=p+m-i/2;t.minVar.desiredPosition=w,f(e.makeRect(y,_,w,i),t.minVar),t.maxVar.desiredPosition=b,f(e.makeRect(y,_,b,i),t.maxVar)}a&&t.leaves.forEach(function(t){return f(t.bounds,t.variable)}),o&&t.groups.forEach(function(t){var n=t.bounds;f(e.makeRect(e.getOpen(n),e.getClose(n),e.getCentre(n),e.getSize(n)),t.minVar)});var x=v(l,c,e,n);return o&&(c.forEach(function(t){t.cOut=[],t.cIn=[]}),x.forEach(function(t){t.left.cOut.push(t),t.right.cIn.push(t)}),t.groups.forEach(function(t){var n=(t.padding-e.getSize(t.bounds))/2;t.minVar.cIn.forEach(function(t){return t.gap+=n}),t.minVar.cOut.forEach(function(e){e.left=t.maxVar,e.gap+=n})})),s.concat(x)}function v(t,e,n,r){var i,a=t.length,s=2*a;console.assert(e.length>=a);var u=new Array(s);for(i=0;it[n]&&(t[n]=e)}o=t})}},t.prototype.createAlignment=function(t){var e=this,n=this.nodes[t.offsets[0].node].variable;this.makeFeasible(t);var r="x"===t.axis?this.xConstraints:this.yConstraints;t.offsets.slice(1).forEach(function(t){r.push(new o.Constraint(n,e.nodes[t.node].variable,t.offset,!0))})},t.prototype.createConstraints=function(t){var e=this,n=function(t){return void 0===t.type||"separation"===t.type};this.xConstraints=t.filter(function(t){return"x"===t.axis&&n(t)}).map(function(t){return e.createSeparation(t)}),this.yConstraints=t.filter(function(t){return"y"===t.axis&&n(t)}).map(function(t){return e.createSeparation(t)}),t.filter(function(t){return"alignment"===t.type}).forEach(function(t){return e.createAlignment(t)})},t.prototype.setupVariablesAndBounds=function(t,e,n,r){this.nodes.forEach(function(i,o){i.fixed?(i.variable.weight=i.fixedWeight?i.fixedWeight:1e3,n[o]=r(i)):i.variable.weight=1;var a=(i.width||0)/2,s=(i.height||0)/2,c=t[o],l=e[o];i.bounds=new u(c-a,c+a,l-s,l+s)})},t.prototype.xProject=function(t,e,n){(this.rootGroup||this.avoidOverlaps||this.xConstraints)&&this.project(t,e,t,n,function(t){return t.px},this.xConstraints,_,function(t){return t.bounds.setXCentre(n[t.variable.index]=t.variable.position())},function(t){var e=n[t.minVar.index]=t.minVar.position(),r=n[t.maxVar.index]=t.maxVar.position(),i=t.padding/2;t.bounds.x=e-i,t.bounds.X=r+i})},t.prototype.yProject=function(t,e,n){(this.rootGroup||this.yConstraints)&&this.project(t,e,e,n,function(t){return t.py},this.yConstraints,w,function(t){return t.bounds.setYCentre(n[t.variable.index]=t.variable.position())},function(t){var e=n[t.minVar.index]=t.minVar.position(),r=n[t.maxVar.index]=t.maxVar.position(),i=t.padding/2;t.bounds.y=e-i,t.bounds.Y=r+i})},t.prototype.projectFunctions=function(){var t=this;return[function(e,n,r){return t.xProject(e,n,r)},function(e,n,r){return t.yProject(e,n,r)}]},t.prototype.project=function(t,e,n,r,i,o,a,u,c){this.setupVariablesAndBounds(t,e,r,i),this.rootGroup&&this.avoidOverlaps&&(s(this.rootGroup),o=o.concat(a(this.rootGroup))),this.solve(this.variables,o,n,r),this.nodes.forEach(u),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(c),s(this.rootGroup))},t.prototype.solve=function(t,e,n,r){var i=new o.Solver(t,e);i.setStartingPositions(n),i.setDesiredPositions(r),i.solve()},t}()},99147:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(741),i=function(t,e){this.id=t,this.distance=e},o=function(t){this.id=t,this.neighbours=[]},a=function(t,e,n){this.node=t,this.prev=e,this.d=n};e.Calculator=function(){function t(t,e,n,r,a){this.n=t,this.es=e,this.neighbours=new Array(this.n);for(var s=this.n;s--;)this.neighbours[s]=new o(s);for(s=this.es.length;s--;){var u=this.es[s],c=n(u),l=r(u),h=a(u);this.neighbours[c].neighbours.push(new i(l,h)),this.neighbours[l].neighbours.push(new i(c,h))}}return t.prototype.DistanceMatrix=function(){for(var t=new Array(this.n),e=0;eh&&(c.d=h,c.prev=s,n.reduceKey(c.q,c,function(t,e){return t.q=e}))}}return o},t}()},70980:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.scale=t,this.AB=0,this.AD=0,this.A2=0}return t.prototype.addVariable=function(t){var e=this.scale/t.scale,n=t.weight;this.AB+=n*e*(t.offset/t.scale),this.AD+=n*e*t.desiredPosition,this.A2+=n*e*e},t.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},t}();e.PositionStats=n;var r=function(){function t(t,e,n,r){void 0===r&&(r=!1),this.left=t,this.right=e,this.gap=n,this.equality=r,this.active=!1,this.unsatisfiable=!1,this.left=t,this.right=e,this.gap=n,this.equality=r}return t.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},t}();e.Constraint=r;var i=function(){function t(t,e,n){void 0===e&&(e=1),void 0===n&&(n=1),this.desiredPosition=t,this.weight=e,this.scale=n,this.offset=0}return t.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},t.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},t.prototype.visitNeighbours=function(t,e){var n=function(n,r){return n.active&&t!==r&&e(n,r)};this.cOut.forEach(function(t){return n(t,t.right)}),this.cIn.forEach(function(t){return n(t,t.left)})},t}();e.Variable=i;var o=function(){function t(t){this.vars=[],t.offset=0,this.ps=new n(t.scale),this.addVariable(t)}return t.prototype.addVariable=function(t){t.block=this,this.vars.push(t),this.ps.addVariable(t),this.posn=this.ps.getPosn()},t.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var t=0,e=this.vars.length;t=0?this.inactive.push(e):this.bs.merge(e)}}},t.prototype.solve=function(){this.satisfy();for(var t=Number.MAX_VALUE,e=this.bs.cost();Math.abs(t-e)>1e-4;)this.satisfy(),t=e,e=this.bs.cost();return e},t.LAGRANGIAN_TOLERANCE=-1e-4,t.ZERO_UPPERBOUND=-1e-10,t}();e.Solver=s,e.removeOverlapInOneDimension=function(t,e,n){for(var o=t.map(function(t){return new i(t.desiredCenter)}),a=[],u=t.length,c=0;c{class e{constructor(){this.entityDetailChange=new i.vpe}reloadEntityDetail(){this.entityDetailChange.emit()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},95142:function(e,t,s){"use strict";s.d(t,{y:function(){return A}});var i=s(65249),a=s(60611),o=s(68416),n=s(31572),r=s(57629),l=s(59403),c=s(91058),u=s(61511),d=s(67806),h=s(4252),g=s(48160);function p(e,t){1&e&&n._UZ(0,"mat-spinner",5)}const m=function(){return["id","fullName"]};function f(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"perun-web-apps-members-list",6),n.NdJ("updateTable",function(){return n.CHM(e),n.oxw().refreshTable()}),n.qZA()}if(2&e){const e=n.oxw();n.Q6J("tableId",e.tableId)("disableRouting",!e.routeAuth)("filter",e.filterValue)("displayedColumns",n.DdM(5,m))("members",e.members)}}let A=(()=>{class e{constructor(e,t,s,i){this.route=e,this.resourceService=t,this.authResolver=s,this.entityStorageService=i,this.loading=!1,this.filterValue="",this.tableId=a.iQ}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.resourceService.getAssignedRichMembers(this.resource.id).subscribe(e=>{this.members=e,this.setAuthRights(),this.loading=!1})}setAuthRights(){0!==this.members.length&&(this.routeAuth=this.authResolver.isAuthorized("getMemberById_int_policy",[this.members[0]]))}applyFilter(e){this.filterValue=e}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(r.gz),n.Y36(i.xk),n.Y36(o.x4),n.Y36(o.fb))},e.\u0275cmp=n.Xpm({type:e,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,"tableId","disableRouting","filter","displayedColumns","members","updateTable",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"tableId","disableRouting","filter","displayedColumns","members","updateTable"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"perun-web-apps-refresh-button",1),n.NdJ("refresh",function(){return t.refreshTable()}),n.qZA(),n.TgZ(4,"perun-web-apps-debounce-filter",2),n.NdJ("filter",function(e){return t.applyFilter(e)}),n.qZA(),n.YNc(5,p,1,0,"mat-spinner",3),n.YNc(6,f,1,6,"perun-web-apps-members-list",4)),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,4,"RESOURCE_DETAIL.ASSIGNED_MEMBERS.TITLE")),n.xp6(3),n.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_MEMBERS.FILTER"),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},directives:[l.t,c.P,u.O5,d.$g,h.O],pipes:[g.X$],styles:[""]}),e})()},75374:function(e,t,s){"use strict";s.d(t,{D:function(){return q}});var i=s(65249),a=s(60611),o=s(4230),n=s(84140),r=s(84608),l=s(68416),c=s(31572),u=s(48160),d=s(61511),h=s(15980),g=s(67806),p=s(55109),m=s(91058),f=s(91721),A=s(65267);function S(e,t){1&e&&c._UZ(0,"mat-spinner",6)}const b=function(){return["id","name","enabled","description"]};function E(e,t){if(1&e&&c._UZ(0,"app-services-list",16),2&e){const e=c.oxw(2);c.Q6J("tableId",e.tableId)("disableRouting",!0)("displayedColumns",c.DdM(5,b))("selection",e.selection)("services",e.filteredServices)}}const R=function(){return["select","id","name","enabled","description"]};function T(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"div",7),c.TgZ(1,"mat-tab-group",8),c.NdJ("selectedTabChange",function(){return c.CHM(e),c.oxw().tabChanged()}),c.TgZ(2,"mat-tab",9),c.ALo(3,"translate"),c.TgZ(4,"div",10),c.TgZ(5,"perun-web-apps-debounce-filter",11),c.NdJ("filter",function(t){return c.CHM(e),c.oxw().applyFilter(t)}),c.ALo(6,"translate"),c.qZA(),c.qZA(),c._UZ(7,"app-services-list",12),c.qZA(),c.TgZ(8,"mat-tab",9),c.ALo(9,"translate"),c.TgZ(10,"div",13),c.TgZ(11,"perun-web-apps-service-package-search-select",14),c.NdJ("packageSelected",function(t){return c.CHM(e),c.oxw().servicePackageSelected(t)}),c.qZA(),c.qZA(),c.YNc(12,E,1,6,"app-services-list",15),c.qZA(),c.qZA(),c.qZA()}if(2&e){const e=c.oxw();c.xp6(2),c.s9C("label",c.lcZ(3,12,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SELECT_SERVICE")),c.xp6(3),c.s9C("placeholder",c.lcZ(6,14,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.FILTER_DESCRIPTION")),c.xp6(2),c.Q6J("tableId",e.tableId)("disableRouting",!0)("displayedColumns",c.DdM(18,R))("filterValue",e.filterValue)("selection",e.selection)("services",e.unAssignedServices),c.xp6(1),c.s9C("label",c.lcZ(9,16,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SELECT_PACKAGE")),c.xp6(3),c.Q6J("selectedPackage",e.selectedPackage)("servicePackages",e.servicePackages),c.xp6(1),c.Q6J("ngIf",-1!==e.selectedPackage.id)}}let I=(()=>{class e{constructor(e,t,s,i,n,r){this.dialogRef=e,this.data=t,this.notificator=s,this.translate=i,this.resourceManager=n,this.servicesManager=r,this.loading=!1,this.unAssignedServices=[],this.filteredServices=[],this.servicePackages=[],this.selectedPackage={name:"Not selected",description:"",id:-1,beanName:"ServicePackage"},this.selection=new o.Ov(!0,[]),this.tableId=a.DR,this.filterValue=""}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.resourceManager.getAssignedServicesToResource(this.data.resourceId).subscribe(e=>{this.servicesManager.getServices().subscribe(t=>{this.servicesManager.getServicesPackages().subscribe(s=>{this.servicePackages.push(this.selectedPackage),this.servicePackages=this.servicePackages.concat(s),this.unAssignedServices=t;for(const i of e)for(const e of t)i.id===e.id&&this.unAssignedServices.splice(this.unAssignedServices.indexOf(e),1);this.loading=!1})})})}onCancel(){this.dialogRef.close()}onAdd(){this.loading=!0,-1!==this.selectedPackage.id?this.addServicePackage():this.addServices()}addServicePackage(){this.resourceManager.assignServicesPackage(this.data.resourceId,this.selectedPackage.id).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.PACKAGE_SUCCESS_MESSAGE").subscribe(e=>{this.notificator.showSuccess(e),0!==this.selection.selected.length?this.addServices():this.dialogRef.close(!0)})},()=>this.loading=!1)}addServices(){const e=[];for(const t of this.selection.selected)e.push(t.id);this.resourceManager.assignServices(this.data.resourceId,e).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SERVICE_SUCCESS_MESSAGE").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)})},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}servicePackageSelected(e){this.selectedPackage=e,-1!==e.id?this.servicesManager.getServicesFromServicesPackage(e.id).subscribe(e=>{this.filteredServices=e}):this.filteredServices=[]}tabChanged(){this.selection.clear(),this.filterValue="",this.selectedPackage=this.servicePackages[0]}}return e.\u0275fac=function(t){return new(t||e)(c.Y36(r.so),c.Y36(r.WI),c.Y36(l.V6),c.Y36(u.sK),c.Y36(i.xk),c.Y36(i.KK))},e.\u0275cmp=c.Xpm({type:e,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"],["mat-flat-button","","color","accent",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,"tableId","disableRouting","displayedColumns","filterValue","selection","services"],[1,"mt-3"],[3,"selectedPackage","servicePackages","packageSelected"],[3,"tableId","disableRouting","displayedColumns","selection","services",4,"ngIf"],[3,"tableId","disableRouting","displayedColumns","selection","services"]],template:function(e,t){1&e&&(c.TgZ(0,"div"),c.TgZ(1,"h1",0),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.YNc(4,S,1,0,"mat-spinner",1),c.YNc(5,T,13,19,"div",2),c.TgZ(6,"div",3),c.TgZ(7,"button",4),c.NdJ("click",function(){return t.onCancel()}),c._uU(8),c.ALo(9,"translate"),c.qZA(),c.TgZ(10,"button",5),c.NdJ("click",function(){return t.onAdd()}),c._uU(11),c.ALo(12,"translate"),c.qZA(),c.qZA(),c.qZA()),2&e&&(c.Tol(t.theme),c.xp6(2),c.Oqu(c.lcZ(3,9,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.TITLE")),c.xp6(2),c.Q6J("ngIf",t.loading),c.xp6(1),c.Q6J("ngIf",!t.loading),c.xp6(3),c.hij(" ",c.lcZ(9,11,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.CANCEL_BUTTON")," "),c.xp6(2),c.Q6J("disabled",0===t.selection.selected.length&&-1===t.selectedPackage.id||t.loading),c.xp6(1),c.hij(" ",c.lcZ(12,13,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE."+(-1===t.selectedPackage.id?"ADD_SERVICES":"ADD_PACKAGE"))," "))},directives:[r.uh,d.O5,r.H8,h.lW,g.$g,r.xY,p.SP,p.uX,m.P,f.Q,A.F],pipes:[u.X$],styles:[""]}),e})();var Z=s(67033);function _(e,t){1&e&&c._UZ(0,"mat-spinner",6)}function O(e,t){1&e&&c._UZ(0,"th",15)}function v(e,t){if(1&e&&(c.TgZ(0,"td",16),c._uU(1),c.qZA()),2&e){const e=t.$implicit;c.xp6(1),c.hij(" ",e.name," ")}}function C(e,t){1&e&&c._UZ(0,"tr",17)}function y(e,t){1&e&&c._UZ(0,"tr",18)}function x(e,t){if(1&e&&(c.TgZ(0,"div",7),c.TgZ(1,"p"),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"div",8),c._uU(5),c.ALo(6,"translate"),c.qZA(),c.TgZ(7,"table",9),c.ynx(8,10),c.YNc(9,O,1,0,"th",11),c.YNc(10,v,2,1,"td",12),c.BQk(),c.YNc(11,C,1,0,"tr",13),c.YNc(12,y,1,0,"tr",14),c.qZA(),c.qZA()),2&e){const e=c.oxw();c.xp6(2),c.hij(" ",c.lcZ(3,5,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.DESCRIPTION")," "),c.xp6(3),c.hij(" ",c.lcZ(6,7,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.ASK")," "),c.xp6(2),c.Q6J("dataSource",e.dataSource),c.xp6(4),c.Q6J("matHeaderRowDef",e.displayedColumns),c.xp6(1),c.Q6J("matRowDefColumns",e.displayedColumns)}}let U=(()=>{class e{constructor(e,t,s,i,a){this.dialogRef=e,this.data=t,this.notificator=s,this.translate=i,this.resourcesManager=a,this.displayedColumns=["name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new Z.by(this.data.services)}onSubmit(){this.loading=!0;const e=[];for(const t of this.data.services)e.push(t.id);this.resourcesManager.removeServices(this.data.resourceId,e).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)})},()=>this.loading=!1)}onCancel(){this.dialogRef.close()}}return e.\u0275fac=function(t){return new(t||e)(c.Y36(r.so),c.Y36(r.WI),c.Y36(l.V6),c.Y36(u.sK),c.Y36(i.xk))},e.\u0275cmp=c.Xpm({type:e,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"],["mat-flat-button","","color","warn",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"],["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&&(c.TgZ(0,"div"),c.TgZ(1,"h1",0),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.YNc(4,_,1,0,"mat-spinner",1),c.YNc(5,x,13,9,"div",2),c.TgZ(6,"div",3),c.TgZ(7,"button",4),c.NdJ("click",function(){return t.onCancel()}),c._uU(8),c.ALo(9,"translate"),c.qZA(),c.TgZ(10,"button",5),c.NdJ("click",function(){return t.onSubmit()}),c._uU(11),c.ALo(12,"translate"),c.qZA(),c.qZA(),c.qZA()),2&e&&(c.Tol(t.theme),c.xp6(2),c.Oqu(c.lcZ(3,9,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.TITLE")),c.xp6(2),c.Q6J("ngIf",t.loading),c.xp6(1),c.Q6J("ngIf",!t.loading),c.xp6(3),c.hij(" ",c.lcZ(9,11,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.CANCEL")," "),c.xp6(2),c.Q6J("disabled",t.loading),c.xp6(1),c.hij(" ",c.lcZ(12,13,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.DELETE")," "))},directives:[r.uh,d.O5,r.H8,h.lW,g.$g,r.xY,Z.BZ,Z.w1,Z.fO,Z.Dz,Z.as,Z.nj,Z.ge,Z.ev,Z.XQ,Z.Gk],pipes:[u.X$],styles:[""]}),e})();var N=s(57629),G=s(59403),D=s(19139);function L(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"button",7),c.NdJ("click",function(){return c.CHM(e),c.oxw().addService()}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&e&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_SERVICES.ADD_SERVICE"),"\n"))}function w(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"button",8),c.NdJ("click",function(){return c.CHM(e),c.oxw().removeServices()}),c._uU(1),c.ALo(2,"translate"),c.qZA()}if(2&e){const e=c.oxw();c.Q6J("disabled",0===e.selected.selected.length),c.xp6(1),c.hij(" ",c.lcZ(2,2,"RESOURCE_DETAIL.ASSIGNED_SERVICES.REMOVE_SERVICE"),"\n")}}function M(e,t){1&e&&c._UZ(0,"mat-spinner",9)}function Y(e,t){if(1&e&&c._UZ(0,"app-services-list",10),2&e){const e=c.oxw();c.Q6J("tableId",e.tableId)("services",e.assignedServices)("selection",e.selected)("filterValue",e.filterValue)("displayedColumns",e.displayedColumns)("disableRouting",!e.serviceRoutingAuth)}}let q=(()=>{class e{constructor(e,t,s,i,n){this.route=e,this.resourcesManager=t,this.dialog=s,this.guiAuthResolver=i,this.entityStorageService=n,this.assignedServices=[],this.selected=new o.Ov(!0,[]),this.tableId=a.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(e=>{this.assignedServices=e,this.selected.clear(),this.loading=!1})}addService(){const e=(0,n.kZ)();e.width="800px",e.data={theme:"resource-theme",resourceId:this.resource.id},this.dialog.open(I,e).afterClosed().subscribe(e=>{e&&this.loadAllServices()})}removeServices(){const e=(0,n.kZ)();e.width="500px",e.data={theme:"resource-theme",resourceId:this.resource.id,services:this.selected.selected},this.dialog.open(U,e).afterClosed().subscribe(e=>{e&&this.loadAllServices()})}applyFilter(e){this.filterValue=e}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 e.\u0275fac=function(t){return new(t||e)(c.Y36(N.gz),c.Y36(i.xk),c.Y36(r.uw),c.Y36(l.x4),c.Y36(l.fb))},e.\u0275cmp=c.Xpm({type:e,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,"tableId","services","selection","filterValue","displayedColumns","disableRouting",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,"tableId","services","selection","filterValue","displayedColumns","disableRouting"]],template:function(e,t){1&e&&(c.TgZ(0,"h1",0),c._uU(1),c.ALo(2,"translate"),c.qZA(),c.TgZ(3,"perun-web-apps-refresh-button",1),c.NdJ("refresh",function(){return t.loadAllServices()}),c.qZA(),c.YNc(4,L,3,3,"button",2),c.YNc(5,w,3,4,"button",3),c.TgZ(6,"perun-web-apps-immediate-filter",4),c.NdJ("filter",function(e){return t.applyFilter(e)}),c.qZA(),c.YNc(7,M,1,0,"mat-spinner",5),c.YNc(8,Y,1,6,"app-services-list",6)),2&e&&(c.xp6(1),c.Oqu(c.lcZ(2,6,"RESOURCE_DETAIL.ASSIGNED_SERVICES.TITLE")),c.xp6(3),c.Q6J("ngIf",t.assignServiceAuth),c.xp6(1),c.Q6J("ngIf",t.removeServiceAuth),c.xp6(1),c.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_SERVICES.FILTER_SERVICES"),c.xp6(1),c.Q6J("ngIf",t.loading),c.xp6(1),c.Q6J("ngIf",!t.loading))},directives:[G.t,d.O5,D.L,h.lW,g.$g,f.Q],pipes:[u.X$],styles:[""]}),e})()},79472:function(e,t,s){"use strict";s.d(t,{X:function(){return b}});var i=s(68416),a=s(65249),o=s(31572),n=s(55109),r=s(61511),l=s(541),c=s(3417),u=s(48160);function d(e,t){1&e&&(o._uU(0),o.ALo(1,"translate")),2&e&&o.hij(" ",o.lcZ(1,1,"RESOURCE_DETAIL.ENTITY")," ")}function h(e,t){if(1&e&&o._UZ(0,"app-one-entity-attribute-page",4),2&e){const e=o.oxw();o.Q6J("entity","resource")("entityId",e.resource.id)}}function g(e,t){1&e&&(o._uU(0),o.ALo(1,"translate"),o.ALo(2,"translate")),2&e&&o.AsE(" ",o.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",o.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function p(e,t){if(1&e&&o._UZ(0,"app-two-entity-attribute-page",5),2&e){const e=o.oxw(2);o.Q6J("firstEntity","resource")("firstEntityId",e.resource.id)("secondEntity","member")}}function m(e,t){1&e&&(o.TgZ(0,"mat-tab"),o.YNc(1,g,3,6,"ng-template",1),o.YNc(2,p,1,3,"ng-template",2),o.qZA())}function f(e,t){1&e&&(o._uU(0),o.ALo(1,"translate"),o.ALo(2,"translate")),2&e&&o.AsE(" ",o.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",o.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function A(e,t){if(1&e&&o._UZ(0,"app-two-entity-attribute-page",5),2&e){const e=o.oxw(2);o.Q6J("firstEntity","resource")("firstEntityId",e.resource.id)("secondEntity","group")}}function S(e,t){1&e&&(o.TgZ(0,"mat-tab"),o.YNc(1,f,3,6,"ng-template",1),o.YNc(2,A,1,3,"ng-template",2),o.qZA())}let b=(()=>{class e{constructor(e,t,s){this.authResolver=e,this.resourceManager=t,this.entityStorageService=s}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 e.\u0275fac=function(t){return new(t||e)(o.Y36(i.x4),o.Y36(a.xk),o.Y36(i.fb))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-resource-attributes"]],hostVars:2,hostBindings:function(e,t){2&e&&o.ekj("router-component",t.true)},decls:10,vars:5,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,t){1&e&&(o.TgZ(0,"div"),o.TgZ(1,"h1",0),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.TgZ(4,"mat-tab-group"),o.TgZ(5,"mat-tab"),o.YNc(6,d,2,3,"ng-template",1),o.YNc(7,h,1,2,"ng-template",2),o.qZA(),o.YNc(8,m,3,0,"mat-tab",3),o.YNc(9,S,3,0,"mat-tab",3),o.qZA(),o.qZA()),2&e&&(o.xp6(2),o.Oqu(o.lcZ(3,3,"RESOURCE_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),o.xp6(6),o.Q6J("ngIf",t.resourceMemberAttAuth),o.xp6(1),o.Q6J("ngIf",t.resourceGroupAttAuth))},directives:[n.SP,n.uX,n.uD,n.Vc,r.O5,l.t,c.Y],pipes:[u.X$],styles:[""]}),e})()},72920:function(e,t,s){"use strict";s.d(t,{b:function(){return w}});var i=s(17),a=s(75585),o=s(65249),n=s(84140),r=s(68416),l=s(22280),c=s(6527),u=s(95909),d=s(31572),h=s(57629),g=s(48958),p=s(84608),m=s(24820),f=s(66297),A=s(61511),S=s(67806),b=s(43691),E=s(36922),R=s(21575),T=s(15980),I=s(48160);function Z(e,t){1&e&&d._UZ(0,"mat-spinner",3)}function _(e,t){if(1&e){const e=d.EpF();d.TgZ(0,"button",15),d.NdJ("click",function(){return d.CHM(e),d.oxw(2).editResource()}),d.TgZ(1,"mat-icon"),d._uU(2,"edit"),d.qZA(),d.qZA()}}function O(e,t){if(1&e){const e=d.EpF();d.TgZ(0,"button",16),d.NdJ("click",function(){return d.CHM(e),d.oxw(2).deleteResource()}),d.TgZ(1,"mat-icon"),d._uU(2,"delete_forever"),d.qZA(),d.qZA()}}const v=function(e){return["/organizations",e]};function C(e,t){if(1&e&&(d.TgZ(0,"a",8),d._uU(1),d.qZA()),2&e){const e=d.oxw(2);d.Q6J("routerLink",d.VKq(2,v,e.resource.vo.id)),d.xp6(1),d.Oqu(e.resource.vo.name)}}function y(e,t){if(1&e&&(d.TgZ(0,"span"),d._uU(1),d.qZA()),2&e){const e=d.oxw(2);d.xp6(1),d.hij(" ",e.resource.vo.name," ")}}const x=function(e){return["/facilities",e]};function U(e,t){if(1&e&&(d.TgZ(0,"a",8),d._uU(1),d.qZA()),2&e){const e=d.oxw(2);d.Q6J("routerLink",d.VKq(2,x,e.resource.facilityId)),d.xp6(1),d.Oqu(e.resource.facility.name)}}function N(e,t){if(1&e&&(d.TgZ(0,"span"),d._uU(1),d.qZA()),2&e){const e=d.oxw(2);d.xp6(1),d.hij(" ",e.resource.facility.name," ")}}const G=function(){return{color:"black"}},D=function(e){return[e]};function L(e,t){if(1&e&&(d.TgZ(0,"div"),d.TgZ(1,"div",4),d._UZ(2,"mat-icon",5),d.ALo(3,"translate"),d.TgZ(4,"div",6),d.TgZ(5,"div",7),d.TgZ(6,"a",8),d._uU(7),d.qZA(),d.TgZ(8,"span",9),d._uU(9),d.qZA(),d.YNc(10,_,3,0,"button",10),d.YNc(11,O,3,0,"button",11),d.qZA(),d.TgZ(12,"div"),d._uU(13),d.ALo(14,"translate"),d.qZA(),d.TgZ(15,"span",12),d._uU(16),d.ALo(17,"translate"),d.ALo(18,"translate"),d.YNc(19,C,2,4,"a",13),d.YNc(20,y,2,1,"span",2),d._uU(21),d.ALo(22,"translate"),d.YNc(23,U,2,4,"a",14),d.YNc(24,N,2,1,"span",2),d._uU(25),d.ALo(26,"translate"),d.qZA(),d.qZA(),d.qZA(),d._UZ(27,"app-animated-router-outlet"),d.qZA()),2&e){const e=d.oxw();d.xp6(2),d.s9C("matTooltip",d.lcZ(3,20,"RESOURCE_DETAIL.ENTITY")),d.Q6J("ngStyle",d.DdM(32,G)),d.xp6(4),d.Q6J("routerLink",d.VKq(33,D,e.baseUrl)),d.xp6(1),d.hij(" ",e.resource.name," "),d.xp6(2),d.hij(" \xa0#",e.resource.id," "),d.xp6(1),d.Q6J("ngIf",e.editResourceAuth),d.xp6(1),d.Q6J("ngIf",e.deleteAuth),d.xp6(2),d.AsE(" ",d.lcZ(14,22,"RESOURCE_DETAIL.UUID"),": ",e.resource.uuid," "),d.xp6(3),d.AsE(" ",d.lcZ(17,24,"RESOURCE_DETAIL.ENTITY"),", ",d.lcZ(18,26,"RESOURCE_DETAIL.VO"),": "),d.xp6(3),d.Q6J("ngIf",e.voLinkAuth),d.xp6(1),d.Q6J("ngIf",!e.voLinkAuth),d.xp6(1),d.AsE(" #",e.resource.voId,", ",d.lcZ(22,28,"RESOURCE_DETAIL.FACILITY"),": "),d.xp6(2),d.Q6J("ngIf",e.facilityLinkAuth),d.xp6(1),d.Q6J("ngIf",!e.facilityLinkAuth),d.xp6(1),d.lnq(" #",e.resource.facilityId,", ",d.lcZ(26,30,"RESOURCE_DETAIL.DESCRIPTION"),": ",e.resource.description," ")}}let w=(()=>{class e{constructor(e,t,s,i,a,o,n,r,l,c,u){this.route=e,this.facilityManager=t,this.vosManagerService=s,this.resourcesManager=i,this.sideMenuService=a,this.sideMenuItemService=o,this.dialog=n,this.guiAuthResolver=r,this.router=l,this.entityStorageService=c,this.reloadEntityDetail=u,this.underVoUrl=!1,this.deleteAuth=!1,this.baseUrl="",this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.subscribe(()=>{this.reloadData()})}reloadData(){this.loading=!0,this.route.params.subscribe(e=>{this.resourcesManager.getRichResourceById(e.resourceId).subscribe(e=>{this.resource=e,this.entityStorageService.setEntity({id:e.id,voId:e.voId,facilityId:e.facilityId,beanName:"Resource"}),this.setAuth(),"facilities"===this.route.parent.snapshot.url[0].path?(this.baseUrl=(new l.r5).transform(e,!1),this.facilityManager.getFacilityById(e.facilityId).subscribe(e=>{this.facility=e,this.setMenuItems(),this.loading=!1},()=>this.loading=!1)):(this.baseUrl=(new l.r5).transform(e,!0),this.vosManagerService.getVoById(e.voId).subscribe(e=>{this.vo=e,this.underVoUrl=!0,this.setMenuItems(),this.loading=!1},()=>this.loading=!1)),(0,n.sF)("resources",this.resource)})})}setMenuItems(){let e;const t=this.sideMenuItemService.parseResource(this.resource,this.underVoUrl);e=this.underVoUrl?this.sideMenuItemService.parseVo(this.vo):this.sideMenuItemService.parseFacility(this.facility),this.sideMenuService.setAccessMenuItems([e,t])}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])}editResource(){let e;this.resourcesManager.getResourceById(this.resource.id).subscribe(t=>{e=t;const s=(0,n.kZ)();s.width="450px",s.data={theme:"resource-theme",resource:e,dialogType:c.Eg.RESOURCE},this.dialog.open(c.rd,s).afterClosed().subscribe(e=>{e&&this.resourcesManager.getRichResourceById(this.resource.id).subscribe(e=>{this.resource=e,this.setMenuItems()})})})}deleteResource(){const e=(0,n.kZ)();e.width="500px",e.data={theme:"resource-theme",resources:[this.resource]},this.dialog.open(u.f,e).afterClosed().subscribe(e=>{e&&this.router.navigate(["../"],{relativeTo:this.route})})}}return e.\u0275fac=function(t){return new(t||e)(d.Y36(h.gz),d.Y36(o.IQ),d.Y36(o.YF),d.Y36(o.xk),d.Y36(g.D),d.Y36(a.V),d.Y36(p.uw),d.Y36(r.x4),d.Y36(h.F0),d.Y36(r.fb),d.Y36(m.G))},e.\u0275cmp=d.Xpm({type:e,selectors:[["app-resource-detail-page"]],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"],["mat-icon-button","","aria-label","Edit resource",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"],["mat-icon-button","","aria-label","Edit resource",3,"click"],["mat-icon-button","",3,"click"]],template:function(e,t){1&e&&(d.TgZ(0,"div",0),d._UZ(1,"perun-web-apps-back-button"),d.YNc(2,Z,1,0,"mat-spinner",1),d.YNc(3,L,28,35,"div",2),d.qZA()),2&e&&(d.xp6(2),d.Q6J("ngIf",t.loading),d.xp6(1),d.Q6J("ngIf",!t.loading&&void 0!==t.resource))},directives:[f.W,A.O5,S.$g,b.Hw,E.gM,A.PC,h.yS,R.A,T.lW],pipes:[I.X$],styles:[".break-line[_ngcontent-%COMP%]{display:inline-block}"],data:{animation:[i.Ji]}}),e})()},42473:function(e,t,s){"use strict";s.d(t,{K:function(){return H}});var i=s(65249),a=s(4230),o=s(84608),n=s(67033),r=s(68416),l=s(31572),c=s(48160),u=s(61511),d=s(15980),h=s(67806);function g(e,t){1&e&&l._UZ(0,"mat-spinner",6)}function p(e,t){1&e&&l._UZ(0,"th",15)}function m(e,t){if(1&e&&(l.TgZ(0,"td",16),l._uU(1),l.qZA()),2&e){const e=t.$implicit;l.xp6(1),l.hij(" ",e.name," ")}}function f(e,t){1&e&&l._UZ(0,"tr",17)}function A(e,t){1&e&&l._UZ(0,"tr",18)}function S(e,t){if(1&e&&(l.TgZ(0,"div",7),l.TgZ(1,"p"),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"div",8),l._uU(5),l.ALo(6,"translate"),l.qZA(),l.TgZ(7,"table",9),l.ynx(8,10),l.YNc(9,p,1,0,"th",11),l.YNc(10,m,2,1,"td",12),l.BQk(),l.YNc(11,f,1,0,"tr",13),l.YNc(12,A,1,0,"tr",14),l.qZA(),l.qZA()),2&e){const e=l.oxw();l.xp6(2),l.hij(" ",l.lcZ(3,5,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DESCRIPTION")," "),l.xp6(3),l.hij(" ",l.lcZ(6,7,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.ASK")," "),l.xp6(2),l.Q6J("dataSource",e.dataSource),l.xp6(4),l.Q6J("matHeaderRowDef",e.displayedColumns),l.xp6(1),l.Q6J("matRowDefColumns",e.displayedColumns)}}let b=(()=>{class e{constructor(e,t,s,i,a){this.dialogRef=e,this.data=t,this.notificator=s,this.translate=i,this.resourceManager=a,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new n.by(this.data.groups)}onCancel(){this.dialogRef.close()}onSubmit(){const e=[];for(const t of this.data.groups)e.push(t.id);this.loading=!0,this.resourceManager.removeGroupsFromResource(e,this.data.resourceId).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_GROUP_FROM_RESOURCE.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return e.\u0275fac=function(t){return new(t||e)(l.Y36(o.so),l.Y36(o.WI),l.Y36(r.V6),l.Y36(c.sK),l.Y36(i.xk))},e.\u0275cmp=l.Xpm({type:e,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"],["mat-flat-button","","color","warn",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"],["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&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,g,1,0,"mat-spinner",1),l.YNc(5,S,13,9,"div",2),l.TgZ(6,"div",3),l.TgZ(7,"button",4),l.NdJ("click",function(){return t.onCancel()}),l._uU(8),l.ALo(9,"translate"),l.qZA(),l.TgZ(10,"button",5),l.NdJ("click",function(){return t.onSubmit()}),l._uU(11),l.ALo(12,"translate"),l.qZA(),l.qZA(),l.qZA()),2&e&&(l.Tol(t.theme),l.xp6(2),l.Oqu(l.lcZ(3,9,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.TITLE")),l.xp6(2),l.Q6J("ngIf",t.loading),l.xp6(1),l.Q6J("ngIf",!t.loading),l.xp6(3),l.hij(" ",l.lcZ(9,11,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.CANCEL")," "),l.xp6(2),l.Q6J("disabled",t.loading),l.xp6(1),l.hij(" ",l.lcZ(12,13,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DELETE")," "))},directives:[o.uh,u.O5,o.H8,d.lW,h.$g,o.xY,n.BZ,n.w1,n.fO,n.Dz,n.as,n.nj,n.ge,n.ev,n.XQ,n.Gk],pipes:[c.X$],styles:[""]}),e})();var E=s(60611),R=s(70663),T=s(91058),I=s(78364),Z=s(27521),_=s(16073);const O=["stepper"];function v(e,t){1&e&&l._UZ(0,"mat-spinner",4)}function C(e,t){1&e&&(l._uU(0),l.ALo(1,"translate")),2&e&&l.Oqu(l.lcZ(1,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.GROUPS"))}function y(e,t){1&e&&(l._uU(0),l.ALo(1,"translate")),2&e&&l.Oqu(l.lcZ(1,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.OPTIONS"))}const x=function(){return["select","id","name","description"]};function U(e,t){if(1&e){const e=l.EpF();l.TgZ(0,"div",5),l.TgZ(1,"mat-stepper",6,7),l.TgZ(3,"mat-step",8),l.YNc(4,C,2,3,"ng-template",9),l.TgZ(5,"perun-web-apps-debounce-filter",10),l.NdJ("filter",function(t){return l.CHM(e),l.oxw().applyFilter(t)}),l.ALo(6,"translate"),l.qZA(),l._UZ(7,"perun-web-apps-groups-list",11),l.qZA(),l.TgZ(8,"mat-step"),l.YNc(9,y,2,3,"ng-template",9),l.TgZ(10,"mat-slide-toggle",12),l.NdJ("toggleChange",function(){return l.CHM(e),l.oxw().changeSubgroupsMessage()})("ngModelChange",function(t){return l.CHM(e),l.oxw().autoAssignSubgroups=t}),l._uU(11),l.ALo(12,"translate"),l.qZA(),l.TgZ(13,"div",13),l._UZ(14,"i",14),l.qZA(),l.TgZ(15,"mat-slide-toggle",12),l.NdJ("toggleChange",function(){return l.CHM(e),l.oxw().changeInactiveMessage()})("ngModelChange",function(t){return l.CHM(e),l.oxw().asActive=t}),l._uU(16),l.ALo(17,"translate"),l.qZA(),l.TgZ(18,"div",13),l._uU(19),l.qZA(),l.TgZ(20,"mat-slide-toggle",12),l.NdJ("toggleChange",function(){return l.CHM(e),l.oxw().changeAsyncMessage()})("ngModelChange",function(t){return l.CHM(e),l.oxw().async=t}),l._uU(21),l.ALo(22,"translate"),l.qZA(),l.TgZ(23,"div",13),l._uU(24),l.qZA(),l.qZA(),l.qZA(),l.qZA()}if(2&e){const e=l.oxw();l.xp6(1),l.Q6J("linear",!0),l.xp6(2),l.Q6J("completed",0!==e.selection.selected.length&&e.canAddGroups()),l.xp6(2),l.s9C("placeholder",l.lcZ(6,19,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.FILTER_DESCRIPTION")),l.xp6(2),l.Q6J("tableId",e.tableId)("groups",e.unAssignedGroups)("selection",e.selection)("filter",e.filterValue)("displayedColumns",l.DdM(27,x))("disableRouting",!0)("disableMembers",!1),l.xp6(3),l.Q6J("ngModel",e.autoAssignSubgroups),l.xp6(1),l.hij(" ",l.lcZ(12,21,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS")," "),l.xp6(3),l.Q6J("innerHTML",e.autoAssignHint,l.oJD),l.xp6(1),l.Q6J("ngModel",e.asActive),l.xp6(1),l.hij(" ",l.lcZ(17,23,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AS_ACTIVE")," "),l.xp6(3),l.hij(" ",e.asActiveHint," "),l.xp6(1),l.Q6J("ngModel",e.async),l.xp6(1),l.hij(" ",l.lcZ(22,25,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_OPT")," "),l.xp6(3),l.hij(" ",e.asyncHint," ")}}function N(e,t){if(1&e){const e=l.EpF();l.TgZ(0,"button",20),l.NdJ("click",function(){return l.CHM(e),l.oxw(2).stepperPrevious()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&e&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.BACK")," "))}function G(e,t){if(1&e){const e=l.EpF();l.TgZ(0,"button",21),l.NdJ("click",function(){return l.CHM(e),l.oxw(2).stepperNext()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}if(2&e){const e=l.oxw(2);l.ekj("ml-2",void 0!==e.stepper&&0!==e.stepper.selectedIndex)("ml-auto",!(void 0!==e.stepper&&0!==e.stepper.selectedIndex)),l.Q6J("disabled",0===e.selection.selected.length||!e.canAddGroups()),l.xp6(1),l.hij(" ",l.lcZ(2,6,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.NEXT")," ")}}function D(e,t){if(1&e){const e=l.EpF();l.TgZ(0,"button",22),l.NdJ("click",function(){return l.CHM(e),l.oxw(2).onAdd()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&e&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ADD_BUTTON")," "))}function L(e,t){if(1&e){const e=l.EpF();l.TgZ(0,"div",15),l.TgZ(1,"button",16),l.NdJ("click",function(){return l.CHM(e),l.oxw().onCancel()}),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,N,3,3,"button",17),l.YNc(5,G,3,8,"button",18),l.YNc(6,D,3,3,"button",19),l.qZA()}if(2&e){const e=l.oxw();l.xp6(2),l.hij(" ",l.lcZ(3,4,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.CANCEL_BUTTON")," "),l.xp6(2),l.Q6J("ngIf",void 0!==e.stepper&&0!==e.stepper.selectedIndex),l.xp6(1),l.Q6J("ngIf",void 0!==e.stepper&&e.stepper.selectedIndex!==e.stepper._steps.length-1),l.xp6(1),l.Q6J("ngIf",void 0!==e.stepper&&e.stepper.selectedIndex===e.stepper._steps.length-1)}}let w=(()=>{class e{constructor(e,t,s,i,o,n,r,l){this.dialogRef=e,this.data=t,this.notificator=s,this.translate=i,this.resourceManager=o,this.groupService=n,this.guiAuthResolver=r,this.cd=l,this.loading=!1,this.unAssignedGroups=this.data.onlyAutoAssignedGroups,this.async=!0,this.autoAssignSubgroups=!1,this.asActive=!0,this.selection=new a.Ov(!0,[]),this.filterValue="",this.tableId=E.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(e=>{this.groupService.getAllGroups(this.resource.voId).subscribe(t=>{for(const s of t)-1===e.findIndex(e=>e.id===s.id)&&this.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[this.resource,s])&&this.unAssignedGroups.push(s);this.loading=!1,this.cd.detectChanges()},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close()}onAdd(){this.loading=!0;const e=[];for(const t of this.selection.selected)e.push(t.id);this.resourceManager.assignGroupsToResource(e,this.resource.id,this.async,!this.asActive,this.autoAssignSubgroups).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.SUCCESS_MESSAGE").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)})},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}canAddGroups(){let e=!0;return this.selection.selected.forEach(t=>{this.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[this.resource,t])||(e=!1)}),e}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 e.\u0275fac=function(t){return new(t||e)(l.Y36(o.so),l.Y36(o.WI),l.Y36(r.V6),l.Y36(c.sK),l.Y36(i.xk),l.Y36(i.ff),l.Y36(r.x4),l.Y36(l.sBO))},e.\u0275cmp=l.Xpm({type:e,selectors:[["app-perun-web-apps-assign-group-to-resource-dialog"]],viewQuery:function(e,t){if(1&e&&l.Gf(O,5),2&e){let e;l.iGM(e=l.CRH())&&(t.stepper=e.first)}},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,"linear"],["stepper",""],[3,"completed"],["matStepLabel",""],[3,"placeholder","filter"],[3,"tableId","groups","selection","filter","displayedColumns","disableRouting","disableMembers"],["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",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","","type","button",3,"click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","","type","button",3,"disabled","click"],["color","accent","mat-flat-button","","type","button",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,v,1,0,"mat-spinner",1),l.YNc(5,U,25,28,"div",2),l.YNc(6,L,7,6,"div",3),l.qZA()),2&e&&(l.Tol(t.theme),l.xp6(2),l.Oqu(l.lcZ(3,7,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.TITLE")),l.xp6(2),l.Q6J("ngIf",t.loading),l.xp6(1),l.Q6J("ngIf",!t.loading),l.xp6(1),l.Q6J("ngIf",!t.loading&&t.stepper))},directives:[o.uh,u.O5,h.$g,o.xY,R.Vq,R.C0,R.VY,T.P,I.W,Z.Rr,_.JJ,_.On,o.H8,d.lW],pipes:[c.X$],styles:[".slide-text[_ngcontent-%COMP%]{font-size:1.1rem}"]}),e})();var M=s(84140),Y=s(67004),q=s(57629),J=s(59403),k=s(36922);function P(e,t){if(1&e){const e=l.EpF();l.TgZ(0,"button",8),l.NdJ("click",function(){return l.CHM(e),l.oxw().addGroup()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&e&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_GROUPS.ADD_GROUP"),"\n"))}function Q(e,t){1&e&&l._UZ(0,"mat-spinner",9)}const V=function(e){return[e]},F=function(){return["select","id","indirectGroupAssigment","name","status","description"]};function j(e,t){if(1&e){const e=l.EpF();l.TgZ(0,"perun-web-apps-groups-list",10),l.NdJ("refreshTable",function(){return l.CHM(e),l.oxw().loadAllGroups()}),l.qZA()}if(2&e){const e=l.oxw();l.Q6J("disableGroups",!0)("groupsToDisableCheckbox",e.groupsToDisable)("tableId",e.tableId)("groups",e.assignedGroups)("filter",e.filteredValue)("selection",e.selected)("disableMembers",!1)("resourceId",e.resource.id)("disableRouting",!!e.assignedGroups[0]&&!e.guiAuthResolver.isAuthorized("getGroupById_int_policy",l.VKq(10,V,e.assignedGroups[0])))("displayedColumns",l.DdM(12,F))}}let H=(()=>{class e{constructor(e,t,s,i,o){this.route=e,this.resourcesManager=t,this.dialog=s,this.guiAuthResolver=i,this.entityStorageService=o,this.assignedGroups=[],this.selected=new a.Ov(!0,[]),this.filteredValue="",this.tableId=E.Ad}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.loadAllGroups()}loadAllGroups(){this.loading=!0,this.resourcesManager.getGroupAssignments(this.resource.id,[Y.r.GROUP_SYNC_ENABLED]).subscribe(e=>{this.assignedGroups=e.map(e=>{const t=e.enrichedGroup.group;return t.status=e.status,t.failureCause=e.failureCause,t.sourceGroupId=e.sourceGroupId,t});const t=this.assignedGroups.map(e=>e.id),s=this.assignedGroups.filter((e,s)=>t.indexOf(e.id)===s),i=this.assignedGroups.filter((e,s)=>{const i=t.indexOf(e.id);return i!==s&&(null===e.sourceGroupId||null===this.assignedGroups[i].sourceGroupId)}).map(e=>e.id);s.forEach(e=>{i.includes(e.id)&&(e.moreTypesOfAssignment=!0)}),this.assignedGroups=s,this.groupsToDisable=new Set(this.assignedGroups.filter(e=>!!e.sourceGroupId&&!e.moreTypesOfAssignment).map(e=>e.id)),this.selected.clear(),this.loading=!1})}addGroup(){const e=(0,M.kZ)();e.width="1000px",e.data={theme:"resource-theme",resource:this.resource,onlyAutoAssignedGroups:this.assignedGroups.filter(e=>this.groupsToDisable.has(e.id))},this.dialog.open(w,e).afterClosed().subscribe(e=>{e&&this.loadAllGroups()})}removeGroups(){const e=(0,M.kZ)();e.width="500px",e.data={resourceId:this.resource.id,groups:this.selected.selected,theme:"resource-theme"},this.dialog.open(b,e).afterClosed().subscribe(e=>{e&&this.loadAllGroups()})}canRemoveGroups(){let e=!0;return this.selected.selected.forEach(t=>{this.guiAuthResolver.isAuthorized("removeGroupsFromResource_List_Resource_policy",[this.resource,t])||(e=!1)}),e}applyFilter(e){this.filteredValue=e}}return e.\u0275fac=function(t){return new(t||e)(l.Y36(q.gz),l.Y36(i.xk),l.Y36(o.uw),l.Y36(r.x4),l.Y36(r.fb))},e.\u0275cmp=l.Xpm({type:e,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","",3,"click",4,"ngIf"],["color","warn","mat-flat-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","tableId","groups","filter","selection","disableMembers","resourceId","disableRouting","displayedColumns","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableGroups","groupsToDisableCheckbox","tableId","groups","filter","selection","disableMembers","resourceId","disableRouting","displayedColumns","refreshTable"]],template:function(e,t){1&e&&(l.TgZ(0,"h1",0),l._uU(1),l.ALo(2,"translate"),l.qZA(),l.TgZ(3,"perun-web-apps-refresh-button",1),l.NdJ("refresh",function(){return t.loadAllGroups()}),l.qZA(),l.YNc(4,P,3,3,"button",2),l.TgZ(5,"button",3),l.NdJ("click",function(){return t.removeGroups()}),l.TgZ(6,"span",4),l.ALo(7,"translate"),l._uU(8),l.ALo(9,"translate"),l.qZA(),l.qZA(),l.TgZ(10,"perun-web-apps-debounce-filter",5),l.NdJ("filter",function(e){return t.applyFilter(e)}),l.qZA(),l.YNc(11,Q,1,0,"mat-spinner",6),l.YNc(12,j,1,13,"perun-web-apps-groups-list",7)),2&e&&(l.xp6(1),l.Oqu(l.lcZ(2,9,"RESOURCE_DETAIL.ASSIGNED_GROUPS.TITLE")),l.xp6(3),l.Q6J("ngIf",t.guiAuthResolver.isAuthorized("getAllGroups_Vo_policy",l.VKq(15,V,t.resource))),l.xp6(1),l.Q6J("disabled",0===t.selected.selected.length||!t.canRemoveGroups()),l.xp6(1),l.s9C("matTooltip",l.lcZ(7,11,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_TOOLTIP")),l.Q6J("matTooltipDisabled",t.canRemoveGroups()),l.xp6(2),l.hij(" ",l.lcZ(9,13,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_GROUP")," "),l.xp6(2),l.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_GROUPS.FILTER_GROUPS"),l.xp6(1),l.Q6J("ngIf",t.loading),l.xp6(1),l.Q6J("ngIf",!t.loading))},directives:[J.t,u.O5,d.lW,k.gM,T.P,h.$g,I.W],pipes:[c.X$],styles:[""]}),e})()},76527:function(e,t,s){"use strict";s.d(t,{H:function(){return h}});var i=s(65249),a=s(68416),o=s(31572),n=s(57629),r=s(61511),l=s(67806),c=s(8557);function u(e,t){1&e&&o._UZ(0,"mat-spinner",2)}function d(e,t){if(1&e&&(o.TgZ(0,"div"),o._UZ(1,"perun-web-apps-menu-buttons-field",3),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("items",e.navItems)("size","small")}}let h=(()=>{class e{constructor(e,t,s,i){this.resourcesManager=e,this.route=t,this.guiAuthResolver=s,this.entityStorageService=i,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(e){const t=e?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`;this.navItems=[],this.guiAuthResolver.isAuthorized("getAssignedGroups_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-group",url:`${t}/resources/${this.resource.id}/groups`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",style:"resource-btn"}),this.guiAuthResolver.isAuthorized("getAssignedServices_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-service",url:`/${t}/resources/${this.resource.id}/services`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",style:"resource-btn"}),this.guiAuthResolver.isAuthorized("getAssignedMembers_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-user",url:`${t}/resources/${this.resource.id}/members`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",style:"resource-btn"}),this.guiAuthResolver.isAuthorized("getAllResourcesTagsForResource_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-resource-tags",url:`${t}/resources/${this.resource.id}/tags`,label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",style:"resource-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:`${t}/resources/${this.resource.id}/attributes`,label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",style:"resource-btn"}),this.guiAuthResolver.isManagerPagePrivileged(this.resource)&&this.navItems.push({cssIcon:"perun-settings2",url:`${t}/resources/${this.resource.id}/settings`,label:"MENU_ITEMS.RESOURCE.SETTINGS",style:"resource-btn"})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(i.xk),o.Y36(n.gz),o.Y36(a.x4),o.Y36(a.fb))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-resource-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&o.ekj("router-component",t.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,t){1&e&&(o.YNc(0,u,1,0,"mat-spinner",0),o.YNc(1,d,2,2,"div",1)),2&e&&(o.Q6J("ngIf",t.loading),o.xp6(1),o.Q6J("ngIf",!t.loading))},directives:[r.O5,l.$g,c.L],styles:[""]}),e})()},64359:function(e,t,s){"use strict";s.d(t,{O:function(){return n}});var i=s(68416),a=s(31572),o=s(489);let n=(()=>{class e{constructor(e,t){this.guiAuthResolver=e,this.entityStorageService=t,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)(a.Y36(i.x4),a.Y36(i.fb))},e.\u0275cmp=a.Xpm({type:e,selectors:[["app-resource-settings-managers"]],decls:1,vars:4,consts:[[3,"complementaryObject","complementaryObjectType","theme","availableRoles"]],template:function(e,t){1&e&&a._UZ(0,"app-managers-page",0),2&e&&a.Q6J("complementaryObject",t.resource)("complementaryObjectType",t.type)("theme",t.theme)("availableRoles",t.availableRoles)},directives:[o.s],styles:[""]}),e})()},22927:function(e,t,s){"use strict";s.d(t,{h:function(){return h}});var i=s(65249),a=s(68416),o=s(31572),n=s(57629),r=s(61511),l=s(67806),c=s(8557);function u(e,t){1&e&&o._UZ(0,"mat-spinner",2)}function d(e,t){if(1&e&&(o.TgZ(0,"div"),o._UZ(1,"perun-web-apps-menu-buttons-field",3),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("items",e.items)("size","small")}}let h=(()=>{class e{constructor(e,t,s,i){this.route=e,this.resourceManager=t,this.authResolver=s,this.entityStorageService=i,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(e){this.items=[],this.authResolver.isManagerPagePrivileged(this.resource)&&this.items.push({cssIcon:"perun-manager",url:`${e?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`}/resources/${this.resource.id}/settings/managers`,label:"MENU_ITEMS.RESOURCE.MANAGERS",style:"resource-btn"})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(n.gz),o.Y36(i.xk),o.Y36(a.x4),o.Y36(a.fb))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-resource-settings-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&o.ekj("router-component",t.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,t){1&e&&(o.YNc(0,u,1,0,"mat-spinner",0),o.YNc(1,d,2,2,"div",1)),2&e&&(o.Q6J("ngIf",t.loading),o.xp6(1),o.Q6J("ngIf",!t.loading))},directives:[r.O5,l.$g,c.L],styles:[""]}),e})()},77968:function(e,t,s){"use strict";s.d(t,{t:function(){return n}});var i=s(17),a=s(31572),o=s(21575);let n=(()=>{class e{constructor(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.Xpm({type:e,selectors:[["app-resource-settings"]],hostVars:2,hostBindings:function(e,t){2&e&&a.ekj("router-component",t.true)},decls:1,vars:0,template:function(e,t){1&e&&a._UZ(0,"app-animated-router-outlet")},directives:[o.A],styles:[""],data:{animation:[i.Ji]}}),e})()},53134:function(e,t,s){"use strict";s.d(t,{v:function(){return v}});var i=s(65249),a=s(4230),o=s(60611),n=s(84140),r=s(68416),l=s(6527),c=s(84608),u=s(31572),d=s(61511),h=s(15980),g=s(67806),p=s(4196),m=s(48160);function f(e,t){1&e&&u._UZ(0,"mat-spinner",8)}function A(e,t){if(1&e&&u._UZ(0,"app-resources-tags-list",9),2&e){const e=u.oxw();u.Q6J("selection",e.selection)("tableId",e.tableId)("resourceTags",e.resourceTags)("filterValue",e.filterValue)("displayedColumns",e.displayedColumns)("entity","resource")}}let S=(()=>{class e{constructor(e,t,s){this.dialogRef=e,this.data=t,this.resourcesManager=s,this.tableId=o.g,this.selection=new a.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(e=>{this.resourceTags=e.filter(e=>this.assignedTags.map(e=>e.id).indexOf(e.id)<=-1),this.loading=!1})}onCancel(){this.dialogRef.close(!1)}onSubmit(e){if(0===e.length)return this.dialogRef.close(!0);const t=e.pop();this.resourcesManager.assignResourceTagToResource({resource:this.resourceId,resourceTag:t}).subscribe(()=>{this.onSubmit(e)})}applyFilter(e){this.filterValue=e}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(c.so),u.Y36(c.WI),u.Y36(i.xk))},e.\u0275cmp=u.Xpm({type:e,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","tableId","resourceTags","filterValue","displayedColumns","entity",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,"mr-auto","ml-auto"],[3,"selection","tableId","resourceTags","filterValue","displayedColumns","entity"]],template:function(e,t){1&e&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"div",1),u.TgZ(5,"div",2),u.YNc(6,f,1,0,"mat-spinner",3),u.qZA(),u.YNc(7,A,1,6,"app-resources-tags-list",4),u.qZA(),u.TgZ(8,"div",5),u.TgZ(9,"button",6),u.NdJ("click",function(){return t.onCancel()}),u._uU(10),u.ALo(11,"translate"),u.qZA(),u.TgZ(12,"button",7),u.NdJ("click",function(){return t.onSubmit(t.selection.selected)}),u._uU(13),u.ALo(14,"translate"),u.qZA(),u.qZA(),u.qZA()),2&e&&(u.Tol(t.theme),u.xp6(2),u.Oqu(u.lcZ(3,9,"RESOURCE_DETAIL.TAGS.ADD_TAGS")),u.xp6(4),u.Q6J("ngIf",t.loading),u.xp6(1),u.Q6J("ngIf",!t.loading),u.xp6(3),u.hij(" ",u.lcZ(11,11,"RESOURCE_DETAIL.TAGS.CANCEL")," "),u.xp6(2),u.Q6J("disabled",t.loading||0===t.resourceTags.length),u.xp6(1),u.hij(" ",u.lcZ(14,13,"RESOURCE_DETAIL.TAGS.ADD_BUTTON")," "))},directives:[c.uh,c.xY,d.O5,c.H8,h.lW,g.$g,p.o],pipes:[m.X$],styles:[""]}),e})();var b=s(24923),E=s(59403),R=s(19139);function T(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"button",7),u.NdJ("click",function(){return u.CHM(e),u.oxw().create()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function I(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"button",7),u.NdJ("click",function(){return u.CHM(e),u.oxw().addTag()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"RESOURCE_DETAIL.TAGS.ADD_BUTTON"),"\n"))}function Z(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"button",8),u.NdJ("click",function(){return u.CHM(e),u.oxw().removeTags()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}if(2&e){const e=u.oxw();u.Q6J("disabled",0===e.selection.selected.length),u.xp6(1),u.hij(" ",u.lcZ(2,2,"RESOURCE_DETAIL.TAGS.REMOVE_BUTTON"),"\n")}}function _(e,t){1&e&&u._UZ(0,"mat-spinner",9)}function O(e,t){if(1&e&&u._UZ(0,"app-resources-tags-list",10),2&e){const e=u.oxw();u.Q6J("selection",e.selection)("tableId",e.tableId)("resourceTags",e.resourceTags)("filterValue",e.filterValue)("displayedColumns",e.displayedColumns)("entity","resource")}}let v=(()=>{class e{constructor(e,t,s,i,n,r){this.authResolver=e,this.resourcesManager=t,this.dialog=s,this.notificator=i,this.translate=n,this.entityStorageService=r,this.loading=!1,this.resourceTags=[],this.selection=new a.Ov(!0,[]),this.tableId=o.M8,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.setAuthRights(),this.updateData()}removeTags(){const e=(0,n.kZ)();e.width="450px",e.data={items:this.selection.selected.map(e=>e.tagName),title:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_TITLE",description:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_DESCRIPTION",theme:"resource-theme"},this.dialog.open(l.Tf,e).afterClosed().subscribe(e=>{e&&this.removeTag(this.selection.selected)})}removeTag(e){if(0===e.length)return this.notificator.showSuccess(this.translate.instant("RESOURCE_DETAIL.TAGS.REMOVED_SUCCESSFULLY")),this.updateData();const t=e.pop();this.resourcesManager.removeResourceTagFromResource({resource:this.resource.id,resourceTag:t}).subscribe(()=>{this.removeTag(e)})}addTag(){const e=(0,n.kZ)();e.width="600px",e.data={voId:this.resource.voId,resourceId:this.resource.id,assignedTags:this.resourceTags,theme:"resource-theme"},this.dialog.open(S,e).afterClosed().subscribe(e=>{e&&(this.notificator.showSuccess(this.translate.instant("RESOURCE_DETAIL.TAGS.ADDED_SUCCESSFULLY")),this.updateData())})}create(){const e=(0,n.kZ)();e.width="450px",e.data={voId:this.resource.voId,theme:"resource-theme"},this.dialog.open(b.p,e).afterClosed().subscribe(e=>{e&&(this.translate.get("VO_DETAIL.RESOURCES.TAGS.CREATE_SUCCESS").subscribe(e=>{this.notificator.showSuccess(e)}),this.updateData())})}updateData(){this.loading=!0,this.selection.clear(),this.resourcesManager.getAllResourcesTagsForResource(this.resource.id).subscribe(e=>{this.resourceTags=e,this.selection.clear(),this.loading=!1})}setAuthRights(){const e={id:this.resource.voId,beanName:"Vo"};this.displayedColumns=[],this.createAuth=this.authResolver.isAuthorized("createResourceTag_ResourceTag_Vo_policy",[e]),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(e){this.filterValue=e}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(r.x4),u.Y36(i.xk),u.Y36(c.uw),u.Y36(r.V6),u.Y36(m.sK),u.Y36(r.fb))},e.\u0275cmp=u.Xpm({type:e,selectors:[["app-perun-web-apps-resource-tags"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["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,"selection","tableId","resourceTags","filterValue","displayedColumns","entity",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,"selection","tableId","resourceTags","filterValue","displayedColumns","entity"]],template:function(e,t){1&e&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.TgZ(3,"perun-web-apps-refresh-button",1),u.NdJ("refresh",function(){return t.updateData()}),u.qZA(),u.YNc(4,T,3,3,"button",2),u.YNc(5,I,3,3,"button",2),u.YNc(6,Z,3,4,"button",3),u.TgZ(7,"perun-web-apps-immediate-filter",4),u.NdJ("filter",function(e){return t.applyFilter(e)}),u.qZA(),u.YNc(8,_,1,0,"mat-spinner",5),u.YNc(9,O,1,6,"app-resources-tags-list",6)),2&e&&(u.xp6(1),u.Oqu(u.lcZ(2,7,"RESOURCE_DETAIL.TAGS.TITLE")),u.xp6(3),u.Q6J("ngIf",t.createAuth),u.xp6(1),u.Q6J("ngIf",t.addAuth),u.xp6(1),u.Q6J("ngIf",t.removeAuth),u.xp6(1),u.Q6J("placeholder","RESOURCE_DETAIL.TAGS.SEARCH"),u.xp6(1),u.Q6J("ngIf",t.loading),u.xp6(1),u.Q6J("ngIf",!t.loading))},directives:[E.t,d.O5,R.L,h.lW,g.$g,p.o],pipes:[m.X$],styles:[""]}),e})()},24923:function(e,t,s){"use strict";s.d(t,{p:function(){return m}});var i=s(84608),a=s(65249),o=s(31572),n=s(61511),r=s(15980),l=s(67806),c=s(66283),u=s(80340),d=s(16073),h=s(48160);function g(e,t){1&e&&o._UZ(0,"mat-spinner",6)}function p(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",7),o.TgZ(1,"mat-form-field"),o.TgZ(2,"input",8),o.NdJ("ngModelChange",function(t){return o.CHM(e),o.oxw().name=t}),o.ALo(3,"translate"),o.qZA(),o.TgZ(4,"mat-error"),o._uU(5),o.ALo(6,"translate"),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=o.oxw();o.xp6(2),o.s9C("placeholder",o.lcZ(3,3,"DIALOGS.CREATE_RESOURCE_TAG.NAME")),o.Q6J("ngModel",e.name),o.xp6(3),o.Oqu(o.lcZ(6,5,"DIALOGS.CREATE_RESOURCE_TAG.EMPTY_NAME"))}}let m=(()=>{class e{constructor(e,t,s){this.dialogRef=e,this.data=t,this.resourceManager=s,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 e.\u0275fac=function(t){return new(t||e)(o.Y36(i.so),o.Y36(i.WI),o.Y36(a.xk))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-create-resource-tag-dialog"]],decls:13,vars:15,consts:[["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","accent",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(e,t){1&e&&(o.TgZ(0,"div"),o.TgZ(1,"h1",0),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.YNc(4,g,1,0,"mat-spinner",1),o.YNc(5,p,7,7,"div",2),o.TgZ(6,"div",3),o.TgZ(7,"button",4),o.NdJ("click",function(){return t.onCancel()}),o._uU(8),o.ALo(9,"translate"),o.qZA(),o.TgZ(10,"button",5),o.NdJ("click",function(){return t.onSubmit()}),o._uU(11),o.ALo(12,"translate"),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.Tol(t.theme),o.xp6(2),o.Oqu(o.lcZ(3,9,"DIALOGS.CREATE_RESOURCE_TAG.TITLE")),o.xp6(2),o.Q6J("ngIf",t.loading),o.xp6(1),o.Q6J("ngIf",!t.loading),o.xp6(3),o.hij(" ",o.lcZ(9,11,"DIALOGS.CREATE_RESOURCE_TAG.CANCEL")," "),o.xp6(2),o.Q6J("disabled",t.loading),o.xp6(1),o.hij(" ",o.lcZ(12,13,"DIALOGS.CREATE_RESOURCE_TAG.CREATE")," "))},directives:[i.uh,n.O5,i.H8,r.lW,l.$g,i.xY,c.KE,u.Nt,d.Fj,d.Q7,d.JJ,d.On,c.TO],pipes:[h.X$],styles:[""]}),e})()},489:function(e,t,s){"use strict";s.d(t,{s:function(){return _e}});var i=s(4230),a=s(84608),o=s(68416),n=s(65249),r=s(60611),l=s(67004),c=s(16073),u=s(31572),d=s(48160),h=s(57629),g=s(66283),p=s(4786),m=s(61511),f=s(80340),A=s(84534),S=s(15980),b=s(71522),E=s(67806),R=s(39571),T=s(77889);let I=(()=>{class e{constructor(e){this.translate=e,this.prefix="ROLES."}transform(e){const t=this.prefix.concat(e);return this.translate.instant(t)}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(d.sK,16))},e.\u0275pipe=u.Yjl({name:"displayedRole",type:e,pure:!0}),e})();function Z(e,t){if(1&e&&(u.TgZ(0,"mat-option",15),u._uU(1),u.ALo(2,"displayedRole"),u.qZA()),2&e){const e=t.$implicit;u.Q6J("value",e),u.xp6(1),u.Oqu(u.lcZ(2,2,e))}}function _(e,t){1&e&&u._UZ(0,"mat-spinner",16)}function O(e,t){1&e&&(u.TgZ(0,"app-alert",20),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"DIALOGS.ADD_MANAGERS.NO_USERS_FOUND")," "))}const v=function(){return["select","id","name","email","logins","organization"]};function C(e,t){if(1&e&&u._UZ(0,"app-users-list",21),2&e){const e=u.oxw(2);u.Q6J("tableId",e.tableId)("disableRouting",!0)("selection",e.selection)("displayedColumns",u.DdM(5,v))("users",e.users)}}function y(e,t){if(1&e&&(u.TgZ(0,"div",17),u.YNc(1,O,3,3,"app-alert",18),u.YNc(2,C,1,6,"app-users-list",19),u.qZA()),2&e){const e=u.oxw();u.xp6(1),u.Q6J("ngIf",0===e.users.length&&e.firstSearchDone),u.xp6(1),u.Q6J("ngIf",0!==e.users.length)}}let x=(()=>{class e{constructor(e,t,s,a,o,n,l,c,u){this.dialogRef=e,this.data=t,this.authzService=s,this.usersService=a,this.translate=o,this.notificator=n,this.storeService=l,this.route=c,this.router=u,this.selection=new i.Ov(!0,[]),this.users=[],this.firstSearchDone=!1,this.tableId=r.H2,o.get("DIALOGS.ADD_MANAGERS.TITLE").subscribe(e=>this.title=e),o.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 c.NI("",[c.kI.required,c.kI.pattern(".*[\\S]+.*")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.authzService.setRoleWithUserComplementaryObject({role:this.selectedRole,users:this.selection.selected.map(e=>e.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 e=[l.r.USER_DEF_ORGANIZATION,l.r.USER_DEF_PREFERRED_MAIL];e=e.concat(this.storeService.getLoginAttributeNames()),this.usersService.findRichUsersWithAttributes(this.searchCtrl.value,e).subscribe(e=>{this.users=e,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1)}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(a.so),u.Y36(a.WI),u.Y36(n.Ct),u.Y36(n.Fv),u.Y36(d.sK),u.Y36(o.V6),u.Y36(o.d6),u.Y36(h.gz),u.Y36(h.F0))},e.\u0275cmp=u.Xpm({type:e,selectors:[["app-add-manager-dialog"]],decls:32,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"],["mat-flat-button","","color","accent","data-cy","search-manager-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"],["mat-flat-button","","color","accent","data-cy","add-manager-button-dialog",1,"ml-2",3,"disabled","click"],[3,"value"],[1,"mr-auto","ml-auto"],[1,"mt-3"],["alert_type","warn",4,"ngIf"],[3,"tableId","disableRouting","selection","displayedColumns","users",4,"ngIf"],["alert_type","warn"],[3,"tableId","disableRouting","selection","displayedColumns","users"]],template:function(e,t){1&e&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"div",1),u.TgZ(5,"div",2),u.TgZ(6,"mat-form-field",3),u.TgZ(7,"mat-label"),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.TgZ(10,"mat-select",4),u.NdJ("valueChange",function(e){return t.selectedRole=e}),u.YNc(11,Z,3,4,"mat-option",5),u.qZA(),u.qZA(),u.TgZ(12,"mat-form-field",6),u.TgZ(13,"label"),u.TgZ(14,"input",7),u.NdJ("keyup.enter",function(){return t.onSearchByString()}),u.ALo(15,"translate"),u.qZA(),u.qZA(),u.TgZ(16,"mat-error"),u._uU(17),u.ALo(18,"translate"),u.qZA(),u.qZA(),u.qZA(),u.TgZ(19,"button",8),u.NdJ("click",function(){return t.onSearchByString()}),u._uU(20),u.ALo(21,"translate"),u.qZA(),u.TgZ(22,"div",9),u.YNc(23,_,1,0,"mat-spinner",10),u.qZA(),u.YNc(24,y,3,2,"div",11),u.qZA(),u.TgZ(25,"div",12),u.TgZ(26,"button",13),u.NdJ("click",function(){return t.onCancel()}),u._uU(27),u.ALo(28,"translate"),u.qZA(),u.TgZ(29,"button",14),u.NdJ("click",function(){return t.onSubmit()}),u._uU(30),u.ALo(31,"translate"),u.qZA(),u.qZA(),u.qZA()),2&e&&(u.Tol(t.theme),u.xp6(2),u.Oqu(u.lcZ(3,17,"DIALOGS.ADD_MANAGERS.TITLE")),u.xp6(6),u.Oqu(u.lcZ(9,19,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),u.xp6(2),u.Q6J("value",t.selectedRole),u.xp6(1),u.Q6J("ngForOf",t.availableRoles),u.xp6(3),u.s9C("placeholder",u.lcZ(15,21,"DIALOGS.ADD_MANAGERS.DESCRIPTION")),u.Q6J("formControl",t.searchCtrl),u.xp6(3),u.hij(" ",u.lcZ(18,23,"DIALOGS.ADD_MANAGERS.EMPTY_SEARCH_MESSAGE")," "),u.xp6(2),u.Q6J("disabled",t.loading),u.xp6(1),u.hij(" ",u.lcZ(21,25,"DIALOGS.ADD_MANAGERS.SEARCH")," "),u.xp6(3),u.Q6J("ngIf",t.loading),u.xp6(1),u.Q6J("ngIf",null!==t.users&&!t.loading),u.xp6(3),u.hij(" ",u.lcZ(28,27,"DIALOGS.ADD_MANAGERS.CANCEL")," "),u.xp6(2),u.Q6J("disabled",0===t.selection.selected.length||void 0===t.selectedRole||t.loading),u.xp6(1),u.hij(" ",u.lcZ(31,29,"DIALOGS.ADD_MANAGERS.CREATE")," "))},directives:[a.uh,a.xY,g.KE,g.hX,p.gD,m.sg,f.Nt,c.Fj,A.hT,c.JJ,c.oH,g.TO,S.lW,m.O5,a.H8,b.ey,E.$g,R.w,T.C],pipes:[d.X$,I],styles:[".inline-dialog-items[_ngcontent-%COMP%]{display:flex;align-items:flex-end}"]}),e})();var U=s(67033);function N(e,t){1&e&&u._UZ(0,"th",15)}function G(e,t){if(1&e&&(u.TgZ(0,"td",16),u._uU(1),u.qZA()),2&e){const e=t.$implicit;u.xp6(1),u.AsE(" ",e.firstName," ",e.lastName,"")}}function D(e,t){1&e&&u._UZ(0,"tr",17)}function L(e,t){1&e&&u._UZ(0,"tr",18)}const w=function(e){return{role:e}};function M(e,t){if(1&e&&(u.TgZ(0,"app-alert",19),u._uU(1),u.ALo(2,"translate"),u.ALo(3,"displayedRole"),u.qZA()),2&e){const e=u.oxw(2);u.xp6(1),u.hij(" ",u.xi3(2,1,"DIALOGS.REMOVE_MANAGERS.WARNING_REMOVE_YOURSELF",u.VKq(6,w,u.lcZ(3,4,e.data.role)))," ")}}function Y(e,t){if(1&e&&(u.TgZ(0,"div",6),u.TgZ(1,"p"),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"div",7),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.TgZ(7,"table",8),u.ynx(8,9),u.YNc(9,N,1,0,"th",10),u.YNc(10,G,2,2,"td",11),u.BQk(),u.YNc(11,D,1,0,"tr",12),u.YNc(12,L,1,0,"tr",13),u.qZA(),u.YNc(13,M,4,8,"app-alert",14),u.qZA()),2&e){const e=u.oxw();u.xp6(2),u.hij(" ",u.lcZ(3,6,"DIALOGS.REMOVE_MANAGERS.DESCRIPTION")," "),u.xp6(3),u.hij(" ",u.lcZ(6,8,"DIALOGS.REMOVE_MANAGERS.ASK")," "),u.xp6(2),u.Q6J("dataSource",e.dataSource),u.xp6(4),u.Q6J("matHeaderRowDef",e.displayedColumns),u.xp6(1),u.Q6J("matRowDefColumns",e.displayedColumns),u.xp6(1),u.Q6J("ngIf",e.removeSelf)}}function q(e,t){1&e&&u._UZ(0,"mat-spinner",20)}let J=(()=>{class e{constructor(e,t,s,i,a,o,n){this.dialogRef=e,this.data=t,this.notificator=s,this.translate=i,this.authzService=a,this.store=o,this.authService=n,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new U.by(this.data.managers),this.theme=this.data.theme,this.removeSelf=this.data.managers.map(e=>e.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(e=>e.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_MANAGERS.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(a.so),u.Y36(a.WI),u.Y36(o.V6),u.Y36(d.sK),u.Y36(n.Ct),u.Y36(o.d6),u.Y36(o.x4))},e.\u0275cmp=u.Xpm({type:e,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"],["mat-flat-button","","color","warn","data-cy","remove-manager-button-dialog",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"],["mat-header-row","","class","font-weight-bolder",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(e,t){1&e&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.YNc(4,Y,14,10,"div",1),u.YNc(5,q,1,0,"mat-spinner",2),u.TgZ(6,"div",3),u.TgZ(7,"button",4),u.NdJ("click",function(){return t.onCancel()}),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.TgZ(10,"button",5),u.NdJ("click",function(){return t.onSubmit()}),u._uU(11),u.ALo(12,"translate"),u.qZA(),u.qZA(),u.qZA()),2&e&&(u.Tol(t.theme),u.xp6(2),u.Oqu(u.lcZ(3,9,"DIALOGS.REMOVE_MANAGERS.TITLE")),u.xp6(2),u.Q6J("ngIf",!t.loading),u.xp6(1),u.Q6J("ngIf",t.loading),u.xp6(3),u.hij(" ",u.lcZ(9,11,"DIALOGS.REMOVE_MANAGERS.CANCEL")," "),u.xp6(2),u.Q6J("disabled",t.loading),u.xp6(1),u.hij(" ",u.lcZ(12,13,"DIALOGS.REMOVE_MANAGERS.DELETE")," "))},directives:[a.uh,m.O5,a.H8,S.lW,a.xY,U.BZ,U.w1,U.fO,U.Dz,U.as,U.nj,U.ge,U.ev,U.XQ,U.Gk,R.w,E.$g],pipes:[d.X$,I],styles:[""]}),e})();function k(e,t){1&e&&u._UZ(0,"mat-spinner",6)}function P(e,t){1&e&&u._UZ(0,"th",15)}function Q(e,t){if(1&e&&(u.TgZ(0,"td",16),u._uU(1),u.qZA()),2&e){const e=t.$implicit;u.xp6(1),u.hij(" ",e.name,"")}}function V(e,t){1&e&&u._UZ(0,"tr",17)}function F(e,t){1&e&&u._UZ(0,"tr",18)}function j(e,t){if(1&e&&(u.TgZ(0,"div",7),u.TgZ(1,"p"),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"div",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.TgZ(7,"table",9),u.ynx(8,10),u.YNc(9,P,1,0,"th",11),u.YNc(10,Q,2,1,"td",12),u.BQk(),u.YNc(11,V,1,0,"tr",13),u.YNc(12,F,1,0,"tr",14),u.qZA(),u.qZA()),2&e){const e=u.oxw();u.xp6(2),u.hij(" ",u.lcZ(3,5,"DIALOGS.REMOVE_GROUPS.DESCRIPTION")," "),u.xp6(3),u.hij(" ",u.lcZ(6,7,"DIALOGS.REMOVE_GROUPS.ASK")," "),u.xp6(2),u.Q6J("dataSource",e.dataSource),u.xp6(4),u.Q6J("matHeaderRowDef",e.displayedColumns),u.xp6(1),u.Q6J("matRowDefColumns",e.displayedColumns)}}let H=(()=>{class e{constructor(e,t,s,i,a){this.dialogRef=e,this.data=t,this.notificator=s,this.translate=i,this.authzService=a,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new U.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(e=>e.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_GROUPS.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(a.so),u.Y36(a.WI),u.Y36(o.V6),u.Y36(d.sK),u.Y36(n.Ct))},e.\u0275cmp=u.Xpm({type:e,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"],["mat-flat-button","","color","warn",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"],["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&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.YNc(4,k,1,0,"mat-spinner",1),u.YNc(5,j,13,9,"div",2),u.TgZ(6,"div",3),u.TgZ(7,"button",4),u.NdJ("click",function(){return t.onCancel()}),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.TgZ(10,"button",5),u.NdJ("click",function(){return t.onSubmit()}),u._uU(11),u.ALo(12,"translate"),u.qZA(),u.qZA(),u.qZA()),2&e&&(u.Tol(t.theme),u.xp6(2),u.Oqu(u.lcZ(3,9,"DIALOGS.REMOVE_GROUPS.TITLE")),u.xp6(2),u.Q6J("ngIf",t.loading),u.xp6(1),u.Q6J("ngIf",!t.loading),u.xp6(3),u.hij(" ",u.lcZ(9,11,"DIALOGS.REMOVE_GROUPS.CANCEL")," "),u.xp6(2),u.Q6J("disabled",t.loading),u.xp6(1),u.hij(" ",u.lcZ(12,13,"DIALOGS.REMOVE_GROUPS.DELETE")," "))},directives:[a.uh,m.O5,a.H8,S.lW,E.$g,a.xY,U.BZ,U.w1,U.fO,U.Dz,U.as,U.nj,U.ge,U.ev,U.XQ,U.Gk],pipes:[d.X$],styles:[""]}),e})();var z=s(56238),$=s(79996),B=s(40084),X=s(91058),W=s(78364);function K(e,t){if(1&e&&(u.TgZ(0,"mat-option",17),u._uU(1),u.ALo(2,"displayedRole"),u.qZA()),2&e){const e=t.$implicit;u.Q6J("value",e),u.xp6(1),u.Oqu(u.lcZ(2,2,e))}}function ee(e,t){if(1&e&&(u.TgZ(0,"mat-option",17),u._uU(1),u.qZA()),2&e){const e=t.$implicit;u.Q6J("value",e),u.xp6(1),u.hij(" ",e.name," ")}}function te(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"perun-web-apps-debounce-filter",18),u.NdJ("filter",function(t){return u.CHM(e),u.oxw().applyFilter(t)}),u.ALo(1,"translate"),u.qZA()}2&e&&u.s9C("placeholder",u.lcZ(1,1,"DIALOGS.ADD_GROUPS.FILTER_GROUPS"))}function se(e,t){1&e&&u._UZ(0,"mat-spinner",19)}const ie=function(){return["select","id","name","description"]};function ae(e,t){if(1&e&&(u.TgZ(0,"div",20),u._UZ(1,"perun-web-apps-groups-list",21),u.qZA()),2&e){const e=u.oxw();u.xp6(1),u.Q6J("tableId",e.tableId)("disableRouting",!0)("displayedColumns",u.DdM(7,ie))("selection",e.selection)("filter",e.filterValue)("groups",e.groups)("disableMembers",!1)}}let oe=(()=>{class e{constructor(e,t,s,a,o,n,l,u,d){this.dialogRef=e,this.data=t,this.authzService=s,this.voService=a,this.groupService=o,this.translate=n,this.notificator=l,this.route=u,this.router=d,this.searchString="",this.selection=new i.Ov(!0,[]),this.groups=[],this.vos=[],this.filterValue="",this.myControl=new c.NI,this.firstSearchDone=!1,this.tableId=r.kZ,n.get("DIALOGS.ADD_GROUPS.TITLE").subscribe(e=>this.title=e),n.get("DIALOGS.ADD_GROUPS.SUCCESS").subscribe(e=>this.successMessage=e)}displayFn(e){return e?e.name:null}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,this.authzService.setRoleWithGroupComplementaryObject({role:this.selectedRole,authorizedGroups:this.selection.selected.map(e=>e.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(e=>{this.filteredOptions=this.myControl.valueChanges.pipe((0,z.O)(""),(0,$.U)(e=>this._filter(e))),this.vos=e,this.loading=!1},()=>this.loading=!1)}_filter(e){const t="string"==typeof e?e.toLowerCase():e.name.toLowerCase;return this.vos.filter(e=>e.name.toLowerCase().includes(t))}showVoGroups(e){this.loading=!0,this.groupService.getAllGroups(e.option.value.id).subscribe(e=>{this.groups=e,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(a.so),u.Y36(a.WI),u.Y36(n.Ct),u.Y36(n.YF),u.Y36(n.ff),u.Y36(d.sK),u.Y36(o.V6),u.Y36(h.gz),u.Y36(h.F0))},e.\u0275cmp=u.Xpm({type:e,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"],["type","text","aria-label","Assignee","matInput","",3,"placeholder","formControl","matAutocomplete"],[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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"value"],[3,"placeholder","filter"],[1,"mr-auto","ml-auto"],[1,"mt-3"],[3,"tableId","disableRouting","displayedColumns","selection","filter","groups","disableMembers"]],template:function(e,t){if(1&e&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"div",1),u.TgZ(5,"div",2),u.TgZ(6,"mat-form-field",3),u.TgZ(7,"mat-label"),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.TgZ(10,"mat-select",4),u.NdJ("valueChange",function(e){return t.selectedRole=e}),u.YNc(11,K,3,4,"mat-option",5),u.qZA(),u.qZA(),u.TgZ(12,"mat-form-field",6),u.TgZ(13,"mat-label"),u._uU(14),u.ALo(15,"translate"),u.qZA(),u._UZ(16,"input",7),u.ALo(17,"translate"),u.TgZ(18,"mat-autocomplete",8,9),u.NdJ("optionSelected",function(e){return t.showVoGroups(e)}),u.YNc(20,ee,2,2,"mat-option",5),u.ALo(21,"async"),u.qZA(),u.qZA(),u.qZA(),u.YNc(22,te,2,3,"perun-web-apps-debounce-filter",10),u.TgZ(23,"div",11),u.YNc(24,se,1,0,"mat-spinner",12),u.qZA(),u.YNc(25,ae,2,8,"div",13),u.qZA(),u.TgZ(26,"div",14),u.TgZ(27,"button",15),u.NdJ("click",function(){return t.onCancel()}),u._uU(28),u.ALo(29,"translate"),u.qZA(),u.TgZ(30,"button",16),u.NdJ("click",function(){return t.onSubmit()}),u._uU(31),u.ALo(32,"translate"),u.qZA(),u.qZA(),u.qZA()),2&e){const e=u.MAs(19);u.Tol(t.theme),u.xp6(2),u.Oqu(u.lcZ(3,19,"DIALOGS.ADD_GROUPS.TITLE")),u.xp6(6),u.Oqu(u.lcZ(9,21,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),u.xp6(2),u.Q6J("value",t.selectedRole),u.xp6(1),u.Q6J("ngForOf",t.availableRoles),u.xp6(3),u.Oqu(u.lcZ(15,23,"DIALOGS.ADD_GROUPS.SELECT_VO")),u.xp6(2),u.s9C("placeholder",u.lcZ(17,25,"DIALOGS.ADD_GROUPS.SELECT_VO")),u.Q6J("formControl",t.myControl)("matAutocomplete",e),u.xp6(2),u.Q6J("displayWith",t.displayFn),u.xp6(2),u.Q6J("ngForOf",u.lcZ(21,27,t.filteredOptions)),u.xp6(2),u.Q6J("ngIf",null!==t.groups&&t.groups.length>0&&!t.loading),u.xp6(2),u.Q6J("ngIf",t.loading),u.xp6(1),u.Q6J("ngIf",null!==t.groups&&!t.loading),u.xp6(3),u.hij(" ",u.lcZ(29,29,"DIALOGS.ADD_MANAGERS.CANCEL")," "),u.xp6(2),u.Q6J("disabled",0===t.selection.selected.length||t.loading),u.xp6(1),u.hij(" ",u.lcZ(32,31,"DIALOGS.ADD_MANAGERS.CREATE")," ")}},directives:[a.uh,a.xY,g.KE,g.hX,p.gD,m.sg,f.Nt,c.Fj,B.ZL,c.JJ,c.oH,B.XC,m.O5,a.H8,S.lW,b.ey,X.P,E.$g,W.W],pipes:[d.X$,m.Ov,I],styles:[""]}),e})();var ne=s(84140),re=s(24820),le=s(55109),ce=s(59403);function ue(e,t){1&e&&(u._uU(0),u.ALo(1,"translate")),2&e&&u.hij(" ",u.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.USER")," ")}function de(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"button",13),u.NdJ("click",function(){return u.CHM(e),u.oxw(2).addManager()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function he(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"button",14),u.NdJ("click",function(){return u.CHM(e),u.oxw(2).removeManager()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}if(2&e){const e=u.oxw(2);u.Q6J("disabled",0===e.selectionUsers.selected.length),u.xp6(1),u.hij(" ",u.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function ge(e,t){if(1&e&&(u.TgZ(0,"mat-option",15),u._uU(1),u.ALo(2,"displayedRole"),u.qZA()),2&e){const e=t.$implicit;u.Q6J("value",e),u.xp6(1),u.Oqu(u.lcZ(2,2,e))}}function pe(e,t){1&e&&u._UZ(0,"mat-spinner",16)}function me(e,t){if(1&e&&u._UZ(0,"app-users-list",17),2&e){const e=u.oxw(2);u.Q6J("tableId",e.tableId)("users",e.managers)("disableRouting",!e.routeAuth||e.disableRouting)("displayedColumns",e.displayedUserColumns)("selection",e.selectionUsers)("disableSelf",e.disableSelf)}}function fe(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"perun-web-apps-refresh-button",5),u.NdJ("refresh",function(){return u.CHM(e),u.oxw().refreshUsers()}),u.qZA(),u.YNc(1,de,3,3,"button",6),u.YNc(2,he,3,4,"button",7),u.TgZ(3,"mat-form-field",8),u.TgZ(4,"mat-label"),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.TgZ(7,"mat-select",9),u.NdJ("valueChange",function(t){return u.CHM(e),u.oxw().selectedRole=t})("selectionChange",function(){return u.CHM(e),u.oxw().refreshUsers()}),u.YNc(8,ge,3,4,"mat-option",10),u.qZA(),u.qZA(),u.YNc(9,pe,1,0,"mat-spinner",11),u.YNc(10,me,1,6,"app-users-list",12)}if(2&e){const e=u.oxw();u.xp6(1),u.Q6J("ngIf",e.manageAuth&&!e.configMode),u.xp6(1),u.Q6J("ngIf",e.manageAuth&&!e.configMode),u.xp6(3),u.Oqu(u.lcZ(6,7,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),u.xp6(2),u.Q6J("value",e.selectedRole),u.xp6(1),u.Q6J("ngForOf",e.availableRoles),u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading&&e.managers)}}function Ae(e,t){1&e&&(u._uU(0),u.ALo(1,"translate")),2&e&&u.hij(" ",u.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.GROUP")," ")}function Se(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"button",21),u.NdJ("click",function(){return u.CHM(e),u.oxw(2).addGroup()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function be(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"button",22),u.NdJ("click",function(){return u.CHM(e),u.oxw(2).removeGroup()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}if(2&e){const e=u.oxw(2);u.Q6J("disabled",0===e.selectionGroups.selected.length),u.xp6(1),u.hij(" ",u.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function Ee(e,t){if(1&e&&(u.TgZ(0,"mat-option",15),u._uU(1),u.ALo(2,"displayedRole"),u.qZA()),2&e){const e=t.$implicit;u.Q6J("value",e),u.xp6(1),u.Oqu(u.lcZ(2,2,e))}}function Re(e,t){1&e&&u._UZ(0,"mat-spinner",16)}function Te(e,t){if(1&e&&u._UZ(0,"perun-web-apps-groups-list",23),2&e){const e=u.oxw(2);u.Q6J("tableId",e.tableId)("disableRouting",e.disableRouting)("displayedColumns",e.displayedGroupColumns)("groups",e.groups)("selection",e.selectionGroups)("disableMembers",!1)}}function Ie(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"perun-web-apps-refresh-button",5),u.NdJ("refresh",function(){return u.CHM(e),u.oxw().refreshGroups()}),u.qZA(),u.YNc(1,Se,3,3,"button",18),u.YNc(2,be,3,4,"button",19),u.TgZ(3,"mat-form-field",8),u.TgZ(4,"mat-label"),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.TgZ(7,"mat-select",9),u.NdJ("valueChange",function(t){return u.CHM(e),u.oxw().selectedRole=t})("selectionChange",function(){return u.CHM(e),u.oxw().refreshGroups()}),u.YNc(8,Ee,3,4,"mat-option",10),u.qZA(),u.qZA(),u.YNc(9,Re,1,0,"mat-spinner",11),u.YNc(10,Te,1,6,"perun-web-apps-groups-list",20)}if(2&e){const e=u.oxw();u.xp6(1),u.Q6J("ngIf",e.manageAuth&&!e.configMode),u.xp6(1),u.Q6J("ngIf",e.manageAuth&&!e.configMode),u.xp6(3),u.Oqu(u.lcZ(6,7,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),u.xp6(2),u.Q6J("value",e.selectedRole),u.xp6(1),u.Q6J("ngForOf",e.availableRoles),u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading&&e.groups)}}function Ze(e,t){1&e&&(u.TgZ(0,"app-alert",24),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.NO_AVAILABLE_ROLES"),"\n"))}let _e=(()=>{class e{constructor(e,t,s,a,o,n,l){this.dialog=e,this.authzService=t,this.storeService=s,this.guiAuthResolver=a,this.router=o,this.reloadEntityDetail=n,this.route=l,this.groups=null,this.managers=null,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.selectionUsers=new i.Ov(!0,[]),this.selectionGroups=new i.Ov(!0,[]),this.selectedMode="",this.loading=!1,this.tableId=r.HC,this.availableRolesPrivileges=new Map}ngOnInit(){this.loading=!0,this.routeAuth=this.guiAuthResolver.isPerunAdminOrObserver(),this.guiAuthResolver.getRolesAuthorization(this.availableRoles,this.complementaryObject,this.availableRolesPrivileges),this.availableRoles=this.availableRoles.filter(e=>this.availableRolesPrivileges.get(e).readAuth),0!==this.availableRoles.length&&(this.selectedRole=this.availableRoles[0]),this.refreshUsers()}changeRolePrivileges(){this.guiAuthResolver.getRolesAuthorization(this.availableRoles,this.complementaryObject,this.availableRolesPrivileges),this.availableRoles=this.availableRoles.filter(e=>this.availableRolesPrivileges.get(e).readAuth),this.manageAuth=this.availableRolesPrivileges.get(this.selectedRole).manageAuth,this.displayedUserColumns=this.manageAuth?this.displayedUserColumns:this.displayedUserColumns.filter(e=>"select"!==e),this.displayedGroupColumns=this.manageAuth?this.displayedGroupColumns:this.displayedGroupColumns.filter(e=>"select"!==e),this.roleModes=this.availableRolesPrivileges.get(this.selectedRole).modes;let e=!1;for(const t of this.roleModes)if(this.selectedMode===t.toLowerCase()){e=!0;break}e||(this.selectedMode=this.roleModes[0].toLowerCase())}tabChanged(e){this.loading=!0,0===e.index?(this.selectedMode="user",this.refreshUsers()):(this.selectedMode="group",this.refreshGroups())}refreshUsers(){this.loading=!0,this.changeRolePrivileges();let e=[l.r.USER_DEF_ORGANIZATION,l.r.USER_DEF_PREFERRED_MAIL];e=e.concat(this.storeService.getLoginAttributeNames()),this.authzService.getAuthzRichAdmins(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType,e,!1,!0).subscribe(e=>{this.managers=e,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(e=>{this.groups=e,this.selectionGroups.clear(),this.loading=!1},()=>{this.loading=!1})}addManager(){const e=(0,ne.kZ)();e.width="1000px",e.data={complementaryObject:this.complementaryObject,theme:this.theme,availableRoles:this.availableRoles,selectedRole:this.selectedRole},this.dialog.open(x,e).afterClosed().subscribe(e=>{e&&this.refreshUsers()})}removeManager(){const e=(0,ne.kZ)();e.width="450px",e.data={managers:this.selectionUsers.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(J,e).afterClosed().subscribe(e=>{e&&(this.guiAuthResolver.isManagerPagePrivileged(this.complementaryObject)?(this.reloadEntityDetail.reloadEntityDetail(),this.refreshUsers()):this.redirectToAuthRoute())})}removeGroup(){const e=(0,ne.kZ)();e.width="450px",e.data={groups:this.selectionGroups.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(H,e).afterClosed().subscribe(e=>{e&&(this.guiAuthResolver.isManagerPagePrivileged(this.complementaryObject)?(this.reloadEntityDetail.reloadEntityDetail(),this.refreshGroups()):this.redirectToAuthRoute())})}addGroup(){const e=(0,ne.kZ)();e.width="1000px",e.data={complementaryObject:this.complementaryObject,availableRoles:this.availableRoles,theme:this.theme,selectedRole:this.selectedRole},this.dialog.open(oe,e).afterClosed().subscribe(e=>{e&&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 e.\u0275fac=function(t){return new(t||e)(u.Y36(a.uw),u.Y36(n.Ct),u.Y36(o.d6),u.Y36(o.x4),u.Y36(h.F0),u.Y36(re.G),u.Y36(h.gz))},e.\u0275cmp=u.Xpm({type:e,selectors:[["app-managers-page"]],hostVars:2,hostBindings:function(e,t){2&e&&u.ekj("router-component",t.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"],["mat-flat-button","","color","accent","class","mr-2 mt-2 action-button","data-cy","add-manager-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2 mt-2","data-cy","remove-manager-button",3,"disabled","click",4,"ngIf"],[1,"mr-2","mt-2"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","users","disableRouting","displayedColumns","selection","disableSelf",4,"ngIf"],["mat-flat-button","","color","accent","data-cy","add-manager-button",1,"mr-2","mt-2","action-button",3,"click"],["mat-flat-button","","color","warn","data-cy","remove-manager-button",1,"mr-2","mt-2",3,"disabled","click"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"tableId","users","disableRouting","displayedColumns","selection","disableSelf"],["mat-flat-button","","color","accent","class","mr-2 mt-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2 mt-2",3,"disabled","click",4,"ngIf"],[3,"tableId","disableRouting","displayedColumns","groups","selection","disableMembers",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","mt-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2","mt-2",3,"disabled","click"],[3,"tableId","disableRouting","displayedColumns","groups","selection","disableMembers"],["alert_type","warn"]],template:function(e,t){1&e&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.TgZ(3,"mat-tab-group",1),u.NdJ("selectedTabChange",function(e){return t.tabChanged(e)}),u.TgZ(4,"mat-tab"),u.YNc(5,ue,2,3,"ng-template",2),u.YNc(6,fe,11,9,"ng-template",3),u.qZA(),u.TgZ(7,"mat-tab"),u.YNc(8,Ae,2,3,"ng-template",2),u.YNc(9,Ie,11,9,"ng-template",3),u.qZA(),u.qZA(),u.YNc(10,Ze,3,3,"app-alert",4)),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.TITLE"),"\n"),u.xp6(9),u.Q6J("ngIf",0===t.availableRoles.length))},directives:[le.SP,le.uX,le.uD,le.Vc,m.O5,ce.t,g.KE,g.hX,p.gD,m.sg,S.lW,b.ey,E.$g,T.C,W.W,R.w],pipes:[d.X$,I],styles:[""]}),e})()},4196:function(e,t,s){"use strict";s.d(t,{o:function(){return M}});var i=s(58623),a=s(67033),o=s(4230),n=s(68416),r=s(65249),l=s(84140),c=s(31572),u=s(48160),d=s(82819),h=s(61511),g=s(29236),p=s(66283),m=s(80340),f=s(16073),A=s(15980),S=s(36922),b=s(43691),E=s(39571);function R(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"th",16),c.TgZ(1,"mat-checkbox",17),c.NdJ("change",function(t){c.CHM(e);const s=c.oxw();return t?s.masterToggle():null}),c.qZA(),c.qZA()}if(2&e){const e=c.oxw();c.xp6(1),c.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function T(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"td",18),c.TgZ(1,"mat-checkbox",19),c.NdJ("change",function(t){const s=c.CHM(e).$implicit,i=c.oxw();return t?i.selection.toggle(s):null})("click",function(e){return e.stopPropagation()}),c.qZA(),c.qZA()}if(2&e){const e=t.$implicit,s=c.oxw();c.xp6(1),c.Q6J("aria-label",s.checkboxLabel(e))("checked",s.selection.isSelected(e))}}function I(e,t){1&e&&(c.TgZ(0,"th",20),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&e&&(c.xp6(1),c.Oqu(c.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_ID")))}function Z(e,t){if(1&e&&(c.TgZ(0,"td",21),c._uU(1),c.qZA()),2&e){const e=t.$implicit;c.xp6(1),c.Oqu(e.id)}}function _(e,t){1&e&&(c.TgZ(0,"th",22),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&e&&(c.xp6(1),c.Oqu(c.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_NAME")))}function O(e,t){if(1&e&&(c.TgZ(0,"div"),c._uU(1),c.qZA()),2&e){const e=c.oxw().$implicit;c.xp6(1),c.hij(" ",e.tagName," ")}}function v(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"mat-form-field"),c.TgZ(2,"input",25),c.NdJ("ngModelChange",function(t){return c.CHM(e),c.oxw().$implicit.tagName=t}),c.qZA(),c.qZA(),c.qZA()}if(2&e){const e=c.oxw().$implicit;c.xp6(2),c.Q6J("ngModel",e.tagName)}}function C(e,t){if(1&e&&(c.TgZ(0,"td",23),c.YNc(1,O,2,1,"div",24),c.YNc(2,v,3,1,"div",24),c.qZA()),2&e){const e=t.$implicit,s=c.oxw();c.xp6(1),c.Q6J("ngIf",!s.isChanging.isSelected(e)),c.xp6(1),c.Q6J("ngIf",s.isChanging.isSelected(e))}}function y(e,t){1&e&&c._UZ(0,"th",22)}function x(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"button",28),c.NdJ("click",function(){c.CHM(e);const t=c.oxw().$implicit;return c.oxw().edit(t)}),c.ALo(1,"translate"),c.TgZ(2,"mat-icon"),c._uU(3,"edit"),c.qZA(),c.qZA()}2&e&&c.s9C("matTooltip",c.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.EDIT_BUTTON"))}function U(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"button",28),c.NdJ("click",function(){c.CHM(e);const t=c.oxw().$implicit;return c.oxw().save(t)}),c.ALo(1,"translate"),c.TgZ(2,"mat-icon"),c._uU(3,"save"),c.qZA(),c.qZA()}2&e&&c.s9C("matTooltip",c.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.SAVE_BUTTON"))}function N(e,t){if(1&e&&(c.TgZ(0,"td",23),c.TgZ(1,"div",26),c.YNc(2,x,4,3,"button",27),c.YNc(3,U,4,3,"button",27),c.qZA(),c.qZA()),2&e){const e=t.$implicit,s=c.oxw();c.xp6(2),c.Q6J("ngIf",!s.isChanging.isSelected(e)),c.xp6(1),c.Q6J("ngIf",s.isChanging.isSelected(e))}}function G(e,t){1&e&&c._UZ(0,"tr",29)}function D(e,t){1&e&&c._UZ(0,"tr",30)}function L(e,t){if(1&e&&(c.TgZ(0,"app-alert",31),c._uU(1),c.ALo(2,"translate"),c.ALo(3,"translate"),c.qZA()),2&e){const e=c.oxw();c.xp6(1),c.hij(" ","vo"===e.entity?c.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.NO_TAGS"):c.lcZ(3,3,"RESOURCE_DETAIL.TAGS.NO_TAGS"),"\n")}}function w(e,t){1&e&&(c.TgZ(0,"app-alert",31),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&e&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let M=(()=>{class e{constructor(e,t,s,i,a){this.resourceManager=e,this.notificator=t,this.translator=s,this.authResolver=i,this.tableCheckbox=a,this.resourceTags=[],this.selection=new o.Ov(!0,[]),this.displayedColumns=["select","id","name","edit"],this.isChanging=new o.Ov(!0,[]),this.pageSizeOptions=l.f7}set matSort(e){this.sort=e,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new a.by(this.resourceTags),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return e.tagName;default:return""}}exportData(e){(0,l.O6)((0,l.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>(0,l.Sd)(e,t,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(e,t)=>(0,l.pR)(e,t,this.getDataForColumn,this),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(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}save(e){this.resourceManager.updateResourceTag({resourceTag:e}).subscribe(()=>{this.translator.get("SHARED.COMPONENTS.RESOURCES_TAGS_LIST.EDIT_SUCCESS").subscribe(e=>{this.notificator.showSuccess(e)}),this.isChanging.deselect(e)})}edit(e){this.isChanging.select(e)}}return e.\u0275fac=function(t){return new(t||e)(c.Y36(r.xk),c.Y36(n.V6),c.Y36(u.sK),c.Y36(n.x4),c.Y36(n.UA))},e.\u0275cmp=c.Xpm({type:e,selectors:[["app-resources-tags-list"]],viewQuery:function(e,t){if(1&e&&(c.Gf(i.YE,7),c.Gf(l.l9,7)),2&e){let e;c.iGM(e=c.CRH())&&(t.matSort=e.first),c.iGM(e=c.CRH())&&(t.child=e.first)}},inputs:{resourceTags:"resourceTags",filterValue:"filterValue",selection:"selection",tableId:"tableId",displayedColumns:"displayedColumns",entity:"entity"},features:[c.TTD],decls:19,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-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(e,t){1&e&&(c.TgZ(0,"div",0),c.TgZ(1,"perun-web-apps-table-wrapper",1),c.NdJ("exportData",function(e){return t.exportData(e)}),c.TgZ(2,"table",2),c.ynx(3,3),c.YNc(4,R,2,3,"th",4),c.YNc(5,T,2,2,"td",5),c.BQk(),c.ynx(6,6),c.YNc(7,I,3,3,"th",7),c.YNc(8,Z,2,1,"td",8),c.BQk(),c.ynx(9,9),c.YNc(10,_,3,3,"th",10),c.YNc(11,C,3,2,"td",11),c.BQk(),c.ynx(12,12),c.YNc(13,y,1,0,"th",10),c.YNc(14,N,4,2,"td",11),c.BQk(),c.YNc(15,G,1,0,"tr",13),c.YNc(16,D,1,0,"tr",14),c.qZA(),c.qZA(),c.qZA(),c.YNc(17,L,4,5,"app-alert",15),c.YNc(18,w,3,3,"app-alert",15)),2&e&&(c.Q6J("hidden",0===t.resourceTags.length||0===t.dataSource.filteredData.length),c.xp6(1),c.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),c.xp6(1),c.Q6J("dataSource",t.dataSource),c.xp6(13),c.Q6J("matHeaderRowDef",t.displayedColumns),c.xp6(1),c.Q6J("matRowDefColumns",t.displayedColumns),c.xp6(1),c.Q6J("ngIf",0===t.resourceTags.length),c.xp6(1),c.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.resourceTags.length))},directives:[d.l,a.BZ,i.YE,a.w1,a.fO,a.Dz,a.as,a.nj,h.O5,a.ge,g.oG,a.ev,i.nU,p.KE,m.Nt,f.Fj,f.JJ,f.On,A.lW,S.gM,b.Hw,a.XQ,a.Gk,E.w],pipes:[u.X$],styles:[""]}),e})()},65267:function(e,t,s){"use strict";s.d(t,{F:function(){return n}});var i=s(31572),a=s(44973),o=s(48160);let n=(()=>{class e{constructor(){this.servicePackages=[],this.selectedPackage=null,this.multiple=!1,this.disableAutoSelect=!1,this.theme="",this.packageSelected=new i.vpe,this.nameFunction=e=>e.name,this.shortNameFunction=e=>e.description,this.searchFunction=e=>e.name+e.description}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.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(e,t){1&e&&(i.TgZ(0,"perun-web-apps-entity-search-select",0),i.NdJ("entitySelected",function(e){return t.packageSelected.emit(e)}),i.ALo(1,"translate"),i.ALo(2,"translate"),i.ALo(3,"translate"),i.qZA()),2&e&&i.Q6J("entities",t.servicePackages)("entity",t.selectedPackage)("multiple",t.multiple)("disableAutoSelect",t.disableAutoSelect)("searchFunction",t.searchFunction)("mainTextFunction",t.nameFunction)("secondaryTextFunction",t.shortNameFunction)("selectPlaceholder",i.lcZ(1,11,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.SELECT_PACKAGE"))("findPlaceholder",i.lcZ(2,13,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.FIND_PACKAGE"))("noEntriesText",i.lcZ(3,15,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.NO_PACKAGE_FOUND"))("theme",t.theme)},directives:[a.i],pipes:[o.X$],styles:[""]}),e})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/827-es2015.cb251f6e5ea0e068bdb7.js b/dist/apps/admin-gui/827-es2015.cb251f6e5ea0e068bdb7.js new file mode 100644 index 000000000..0ba392148 --- /dev/null +++ b/dist/apps/admin-gui/827-es2015.cb251f6e5ea0e068bdb7.js @@ -0,0 +1 @@ +(self.webpackChunkperun_web_apps=self.webpackChunkperun_web_apps||[]).push([[827],{24820:function(e,t,s){"use strict";s.d(t,{G:function(){return a}});var i=s(31572);let a=(()=>{class e{constructor(){this.entityDetailChange=new i.vpe}reloadEntityDetail(){this.entityDetailChange.emit()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},95142:function(e,t,s){"use strict";s.d(t,{y:function(){return A}});var i=s(65249),a=s(60611),o=s(68416),n=s(31572),r=s(57629),l=s(59403),c=s(91058),u=s(61511),d=s(67806),h=s(4252),g=s(48160);function p(e,t){1&e&&n._UZ(0,"mat-spinner",5)}const m=function(){return["id","fullName"]};function f(e,t){if(1&e){const e=n.EpF();n.TgZ(0,"perun-web-apps-members-list",6),n.NdJ("updateTable",function(){return n.CHM(e),n.oxw().refreshTable()}),n.qZA()}if(2&e){const e=n.oxw();n.Q6J("tableId",e.tableId)("disableRouting",!e.routeAuth)("filter",e.filterValue)("displayedColumns",n.DdM(5,m))("members",e.members)}}let A=(()=>{class e{constructor(e,t,s,i){this.route=e,this.resourceService=t,this.authResolver=s,this.entityStorageService=i,this.loading=!1,this.filterValue="",this.tableId=a.iQ}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.resourceService.getAssignedRichMembers(this.resource.id).subscribe(e=>{this.members=e,this.setAuthRights(),this.loading=!1})}setAuthRights(){0!==this.members.length&&(this.routeAuth=this.authResolver.isAuthorized("getMemberById_int_policy",[this.members[0]]))}applyFilter(e){this.filterValue=e}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(r.gz),n.Y36(i.xk),n.Y36(o.x4),n.Y36(o.fb))},e.\u0275cmp=n.Xpm({type:e,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,"tableId","disableRouting","filter","displayedColumns","members","updateTable",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"tableId","disableRouting","filter","displayedColumns","members","updateTable"]],template:function(e,t){1&e&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"perun-web-apps-refresh-button",1),n.NdJ("refresh",function(){return t.refreshTable()}),n.qZA(),n.TgZ(4,"perun-web-apps-debounce-filter",2),n.NdJ("filter",function(e){return t.applyFilter(e)}),n.qZA(),n.YNc(5,p,1,0,"mat-spinner",3),n.YNc(6,f,1,6,"perun-web-apps-members-list",4)),2&e&&(n.xp6(1),n.Oqu(n.lcZ(2,4,"RESOURCE_DETAIL.ASSIGNED_MEMBERS.TITLE")),n.xp6(3),n.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_MEMBERS.FILTER"),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(1),n.Q6J("ngIf",!t.loading))},directives:[l.t,c.P,u.O5,d.$g,h.O],pipes:[g.X$],styles:[""]}),e})()},75374:function(e,t,s){"use strict";s.d(t,{D:function(){return q}});var i=s(65249),a=s(60611),o=s(4230),n=s(84140),r=s(84608),l=s(68416),c=s(31572),u=s(48160),d=s(61511),h=s(15980),g=s(67806),p=s(55109),m=s(91058),f=s(91721),A=s(65267);function S(e,t){1&e&&c._UZ(0,"mat-spinner",6)}const b=function(){return["id","name","enabled","description"]};function E(e,t){if(1&e&&c._UZ(0,"app-services-list",16),2&e){const e=c.oxw(2);c.Q6J("tableId",e.tableId)("disableRouting",!0)("displayedColumns",c.DdM(5,b))("selection",e.selection)("services",e.filteredServices)}}const R=function(){return["select","id","name","enabled","description"]};function T(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"div",7),c.TgZ(1,"mat-tab-group",8),c.NdJ("selectedTabChange",function(){return c.CHM(e),c.oxw().tabChanged()}),c.TgZ(2,"mat-tab",9),c.ALo(3,"translate"),c.TgZ(4,"div",10),c.TgZ(5,"perun-web-apps-debounce-filter",11),c.NdJ("filter",function(t){return c.CHM(e),c.oxw().applyFilter(t)}),c.ALo(6,"translate"),c.qZA(),c.qZA(),c._UZ(7,"app-services-list",12),c.qZA(),c.TgZ(8,"mat-tab",9),c.ALo(9,"translate"),c.TgZ(10,"div",13),c.TgZ(11,"perun-web-apps-service-package-search-select",14),c.NdJ("packageSelected",function(t){return c.CHM(e),c.oxw().servicePackageSelected(t)}),c.qZA(),c.qZA(),c.YNc(12,E,1,6,"app-services-list",15),c.qZA(),c.qZA(),c.qZA()}if(2&e){const e=c.oxw();c.xp6(2),c.s9C("label",c.lcZ(3,12,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SELECT_SERVICE")),c.xp6(3),c.s9C("placeholder",c.lcZ(6,14,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.FILTER_DESCRIPTION")),c.xp6(2),c.Q6J("tableId",e.tableId)("disableRouting",!0)("displayedColumns",c.DdM(18,R))("filterValue",e.filterValue)("selection",e.selection)("services",e.unAssignedServices),c.xp6(1),c.s9C("label",c.lcZ(9,16,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SELECT_PACKAGE")),c.xp6(3),c.Q6J("selectedPackage",e.selectedPackage)("servicePackages",e.servicePackages),c.xp6(1),c.Q6J("ngIf",-1!==e.selectedPackage.id)}}let I=(()=>{class e{constructor(e,t,s,i,n,r){this.dialogRef=e,this.data=t,this.notificator=s,this.translate=i,this.resourceManager=n,this.servicesManager=r,this.loading=!1,this.unAssignedServices=[],this.filteredServices=[],this.servicePackages=[],this.selectedPackage={name:"Not selected",description:"",id:-1,beanName:"ServicePackage"},this.selection=new o.Ov(!0,[]),this.tableId=a.DR,this.filterValue=""}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.resourceManager.getAssignedServicesToResource(this.data.resourceId).subscribe(e=>{this.servicesManager.getServices().subscribe(t=>{this.servicesManager.getServicesPackages().subscribe(s=>{this.servicePackages.push(this.selectedPackage),this.servicePackages=this.servicePackages.concat(s),this.unAssignedServices=t;for(const i of e)for(const e of t)i.id===e.id&&this.unAssignedServices.splice(this.unAssignedServices.indexOf(e),1);this.loading=!1})})})}onCancel(){this.dialogRef.close()}onAdd(){this.loading=!0,-1!==this.selectedPackage.id?this.addServicePackage():this.addServices()}addServicePackage(){this.resourceManager.assignServicesPackage(this.data.resourceId,this.selectedPackage.id).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.PACKAGE_SUCCESS_MESSAGE").subscribe(e=>{this.notificator.showSuccess(e),0!==this.selection.selected.length?this.addServices():this.dialogRef.close(!0)})},()=>this.loading=!1)}addServices(){const e=[];for(const t of this.selection.selected)e.push(t.id);this.resourceManager.assignServices(this.data.resourceId,e).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SERVICE_SUCCESS_MESSAGE").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)})},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}servicePackageSelected(e){this.selectedPackage=e,-1!==e.id?this.servicesManager.getServicesFromServicesPackage(e.id).subscribe(e=>{this.filteredServices=e}):this.filteredServices=[]}tabChanged(){this.selection.clear(),this.filterValue="",this.selectedPackage=this.servicePackages[0]}}return e.\u0275fac=function(t){return new(t||e)(c.Y36(r.so),c.Y36(r.WI),c.Y36(l.V6),c.Y36(u.sK),c.Y36(i.xk),c.Y36(i.KK))},e.\u0275cmp=c.Xpm({type:e,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"],["mat-flat-button","","color","accent",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,"tableId","disableRouting","displayedColumns","filterValue","selection","services"],[1,"mt-3"],[3,"selectedPackage","servicePackages","packageSelected"],[3,"tableId","disableRouting","displayedColumns","selection","services",4,"ngIf"],[3,"tableId","disableRouting","displayedColumns","selection","services"]],template:function(e,t){1&e&&(c.TgZ(0,"div"),c.TgZ(1,"h1",0),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.YNc(4,S,1,0,"mat-spinner",1),c.YNc(5,T,13,19,"div",2),c.TgZ(6,"div",3),c.TgZ(7,"button",4),c.NdJ("click",function(){return t.onCancel()}),c._uU(8),c.ALo(9,"translate"),c.qZA(),c.TgZ(10,"button",5),c.NdJ("click",function(){return t.onAdd()}),c._uU(11),c.ALo(12,"translate"),c.qZA(),c.qZA(),c.qZA()),2&e&&(c.Tol(t.theme),c.xp6(2),c.Oqu(c.lcZ(3,9,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.TITLE")),c.xp6(2),c.Q6J("ngIf",t.loading),c.xp6(1),c.Q6J("ngIf",!t.loading),c.xp6(3),c.hij(" ",c.lcZ(9,11,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.CANCEL_BUTTON")," "),c.xp6(2),c.Q6J("disabled",0===t.selection.selected.length&&-1===t.selectedPackage.id||t.loading),c.xp6(1),c.hij(" ",c.lcZ(12,13,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE."+(-1===t.selectedPackage.id?"ADD_SERVICES":"ADD_PACKAGE"))," "))},directives:[r.uh,d.O5,r.H8,h.lW,g.$g,r.xY,p.SP,p.uX,m.P,f.Q,A.F],pipes:[u.X$],styles:[""]}),e})();var Z=s(67033);function _(e,t){1&e&&c._UZ(0,"mat-spinner",6)}function O(e,t){1&e&&c._UZ(0,"th",15)}function v(e,t){if(1&e&&(c.TgZ(0,"td",16),c._uU(1),c.qZA()),2&e){const e=t.$implicit;c.xp6(1),c.Oqu(e.name)}}function C(e,t){1&e&&c._UZ(0,"tr",17)}function y(e,t){1&e&&c._UZ(0,"tr",18)}function x(e,t){if(1&e&&(c.TgZ(0,"div",7),c.TgZ(1,"p"),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"div",8),c._uU(5),c.ALo(6,"translate"),c.qZA(),c.TgZ(7,"table",9),c.ynx(8,10),c.YNc(9,O,1,0,"th",11),c.YNc(10,v,2,1,"td",12),c.BQk(),c.YNc(11,C,1,0,"tr",13),c.YNc(12,y,1,0,"tr",14),c.qZA(),c.qZA()),2&e){const e=c.oxw();c.xp6(2),c.hij(" ",c.lcZ(3,5,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.DESCRIPTION")," "),c.xp6(3),c.hij(" ",c.lcZ(6,7,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.ASK")," "),c.xp6(2),c.Q6J("dataSource",e.dataSource),c.xp6(4),c.Q6J("matHeaderRowDef",e.displayedColumns),c.xp6(1),c.Q6J("matRowDefColumns",e.displayedColumns)}}let U=(()=>{class e{constructor(e,t,s,i,a){this.dialogRef=e,this.data=t,this.notificator=s,this.translate=i,this.resourcesManager=a,this.displayedColumns=["name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new Z.by(this.data.services)}onSubmit(){this.loading=!0;const e=[];for(const t of this.data.services)e.push(t.id);this.resourcesManager.removeServices(this.data.resourceId,e).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)})},()=>this.loading=!1)}onCancel(){this.dialogRef.close()}}return e.\u0275fac=function(t){return new(t||e)(c.Y36(r.so),c.Y36(r.WI),c.Y36(l.V6),c.Y36(u.sK),c.Y36(i.xk))},e.\u0275cmp=c.Xpm({type:e,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"],["mat-flat-button","","color","warn",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"],["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&&(c.TgZ(0,"div"),c.TgZ(1,"h1",0),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.YNc(4,_,1,0,"mat-spinner",1),c.YNc(5,x,13,9,"div",2),c.TgZ(6,"div",3),c.TgZ(7,"button",4),c.NdJ("click",function(){return t.onCancel()}),c._uU(8),c.ALo(9,"translate"),c.qZA(),c.TgZ(10,"button",5),c.NdJ("click",function(){return t.onSubmit()}),c._uU(11),c.ALo(12,"translate"),c.qZA(),c.qZA(),c.qZA()),2&e&&(c.Tol(t.theme),c.xp6(2),c.Oqu(c.lcZ(3,9,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.TITLE")),c.xp6(2),c.Q6J("ngIf",t.loading),c.xp6(1),c.Q6J("ngIf",!t.loading),c.xp6(3),c.hij(" ",c.lcZ(9,11,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.CANCEL")," "),c.xp6(2),c.Q6J("disabled",t.loading),c.xp6(1),c.hij(" ",c.lcZ(12,13,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.DELETE")," "))},directives:[r.uh,d.O5,r.H8,h.lW,g.$g,r.xY,Z.BZ,Z.w1,Z.fO,Z.Dz,Z.as,Z.nj,Z.ge,Z.ev,Z.XQ,Z.Gk],pipes:[u.X$],styles:[""]}),e})();var N=s(57629),G=s(59403),D=s(19139);function L(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"button",7),c.NdJ("click",function(){return c.CHM(e),c.oxw().addService()}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&e&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_SERVICES.ADD_SERVICE"),"\n"))}function w(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"button",8),c.NdJ("click",function(){return c.CHM(e),c.oxw().removeServices()}),c._uU(1),c.ALo(2,"translate"),c.qZA()}if(2&e){const e=c.oxw();c.Q6J("disabled",0===e.selected.selected.length),c.xp6(1),c.hij(" ",c.lcZ(2,2,"RESOURCE_DETAIL.ASSIGNED_SERVICES.REMOVE_SERVICE"),"\n")}}function M(e,t){1&e&&c._UZ(0,"mat-spinner",9)}function Y(e,t){if(1&e&&c._UZ(0,"app-services-list",10),2&e){const e=c.oxw();c.Q6J("tableId",e.tableId)("services",e.assignedServices)("selection",e.selected)("filterValue",e.filterValue)("displayedColumns",e.displayedColumns)("disableRouting",!e.serviceRoutingAuth)}}let q=(()=>{class e{constructor(e,t,s,i,n){this.route=e,this.resourcesManager=t,this.dialog=s,this.guiAuthResolver=i,this.entityStorageService=n,this.assignedServices=[],this.selected=new o.Ov(!0,[]),this.tableId=a.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(e=>{this.assignedServices=e,this.selected.clear(),this.loading=!1})}addService(){const e=(0,n.kZ)();e.width="800px",e.data={theme:"resource-theme",resourceId:this.resource.id},this.dialog.open(I,e).afterClosed().subscribe(e=>{e&&this.loadAllServices()})}removeServices(){const e=(0,n.kZ)();e.width="500px",e.data={theme:"resource-theme",resourceId:this.resource.id,services:this.selected.selected},this.dialog.open(U,e).afterClosed().subscribe(e=>{e&&this.loadAllServices()})}applyFilter(e){this.filterValue=e}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 e.\u0275fac=function(t){return new(t||e)(c.Y36(N.gz),c.Y36(i.xk),c.Y36(r.uw),c.Y36(l.x4),c.Y36(l.fb))},e.\u0275cmp=c.Xpm({type:e,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,"tableId","services","selection","filterValue","displayedColumns","disableRouting",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,"tableId","services","selection","filterValue","displayedColumns","disableRouting"]],template:function(e,t){1&e&&(c.TgZ(0,"h1",0),c._uU(1),c.ALo(2,"translate"),c.qZA(),c.TgZ(3,"perun-web-apps-refresh-button",1),c.NdJ("refresh",function(){return t.loadAllServices()}),c.qZA(),c.YNc(4,L,3,3,"button",2),c.YNc(5,w,3,4,"button",3),c.TgZ(6,"perun-web-apps-immediate-filter",4),c.NdJ("filter",function(e){return t.applyFilter(e)}),c.qZA(),c.YNc(7,M,1,0,"mat-spinner",5),c.YNc(8,Y,1,6,"app-services-list",6)),2&e&&(c.xp6(1),c.Oqu(c.lcZ(2,6,"RESOURCE_DETAIL.ASSIGNED_SERVICES.TITLE")),c.xp6(3),c.Q6J("ngIf",t.assignServiceAuth),c.xp6(1),c.Q6J("ngIf",t.removeServiceAuth),c.xp6(1),c.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_SERVICES.FILTER_SERVICES"),c.xp6(1),c.Q6J("ngIf",t.loading),c.xp6(1),c.Q6J("ngIf",!t.loading))},directives:[G.t,d.O5,D.L,h.lW,g.$g,f.Q],pipes:[u.X$],styles:[""]}),e})()},79472:function(e,t,s){"use strict";s.d(t,{X:function(){return b}});var i=s(68416),a=s(65249),o=s(31572),n=s(55109),r=s(61511),l=s(541),c=s(3417),u=s(48160);function d(e,t){1&e&&(o._uU(0),o.ALo(1,"translate")),2&e&&o.hij(" ",o.lcZ(1,1,"RESOURCE_DETAIL.ENTITY")," ")}function h(e,t){if(1&e&&o._UZ(0,"app-one-entity-attribute-page",4),2&e){const e=o.oxw();o.Q6J("entity","resource")("entityId",e.resource.id)}}function g(e,t){1&e&&(o._uU(0),o.ALo(1,"translate"),o.ALo(2,"translate")),2&e&&o.AsE(" ",o.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",o.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function p(e,t){if(1&e&&o._UZ(0,"app-two-entity-attribute-page",5),2&e){const e=o.oxw(2);o.Q6J("firstEntity","resource")("firstEntityId",e.resource.id)("secondEntity","member")}}function m(e,t){1&e&&(o.TgZ(0,"mat-tab"),o.YNc(1,g,3,6,"ng-template",1),o.YNc(2,p,1,3,"ng-template",2),o.qZA())}function f(e,t){1&e&&(o._uU(0),o.ALo(1,"translate"),o.ALo(2,"translate")),2&e&&o.AsE(" ",o.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",o.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function A(e,t){if(1&e&&o._UZ(0,"app-two-entity-attribute-page",5),2&e){const e=o.oxw(2);o.Q6J("firstEntity","resource")("firstEntityId",e.resource.id)("secondEntity","group")}}function S(e,t){1&e&&(o.TgZ(0,"mat-tab"),o.YNc(1,f,3,6,"ng-template",1),o.YNc(2,A,1,3,"ng-template",2),o.qZA())}let b=(()=>{class e{constructor(e,t,s){this.authResolver=e,this.resourceManager=t,this.entityStorageService=s}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 e.\u0275fac=function(t){return new(t||e)(o.Y36(i.x4),o.Y36(a.xk),o.Y36(i.fb))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-resource-attributes"]],hostVars:2,hostBindings:function(e,t){2&e&&o.ekj("router-component",t.true)},decls:10,vars:5,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,t){1&e&&(o.TgZ(0,"div"),o.TgZ(1,"h1",0),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.TgZ(4,"mat-tab-group"),o.TgZ(5,"mat-tab"),o.YNc(6,d,2,3,"ng-template",1),o.YNc(7,h,1,2,"ng-template",2),o.qZA(),o.YNc(8,m,3,0,"mat-tab",3),o.YNc(9,S,3,0,"mat-tab",3),o.qZA(),o.qZA()),2&e&&(o.xp6(2),o.Oqu(o.lcZ(3,3,"RESOURCE_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),o.xp6(6),o.Q6J("ngIf",t.resourceMemberAttAuth),o.xp6(1),o.Q6J("ngIf",t.resourceGroupAttAuth))},directives:[n.SP,n.uX,n.uD,n.Vc,r.O5,l.t,c.Y],pipes:[u.X$],styles:[""]}),e})()},72920:function(e,t,s){"use strict";s.d(t,{b:function(){return w}});var i=s(17),a=s(75585),o=s(65249),n=s(84140),r=s(68416),l=s(22280),c=s(6527),u=s(95909),d=s(31572),h=s(57629),g=s(48958),p=s(84608),m=s(24820),f=s(66297),A=s(61511),S=s(67806),b=s(43691),E=s(36922),R=s(21575),T=s(15980),I=s(48160);function Z(e,t){1&e&&d._UZ(0,"mat-spinner",3)}function _(e,t){if(1&e){const e=d.EpF();d.TgZ(0,"button",15),d.NdJ("click",function(){return d.CHM(e),d.oxw(2).editResource()}),d.TgZ(1,"mat-icon"),d._uU(2,"edit"),d.qZA(),d.qZA()}}function O(e,t){if(1&e){const e=d.EpF();d.TgZ(0,"button",16),d.NdJ("click",function(){return d.CHM(e),d.oxw(2).deleteResource()}),d.TgZ(1,"mat-icon"),d._uU(2,"delete_forever"),d.qZA(),d.qZA()}}const v=function(e){return["/organizations",e]};function C(e,t){if(1&e&&(d.TgZ(0,"a",8),d._uU(1),d.qZA()),2&e){const e=d.oxw(2);d.Q6J("routerLink",d.VKq(2,v,e.resource.vo.id)),d.xp6(1),d.Oqu(e.resource.vo.name)}}function y(e,t){if(1&e&&(d.TgZ(0,"span"),d._uU(1),d.qZA()),2&e){const e=d.oxw(2);d.xp6(1),d.hij(" ",e.resource.vo.name," ")}}const x=function(e){return["/facilities",e]};function U(e,t){if(1&e&&(d.TgZ(0,"a",8),d._uU(1),d.qZA()),2&e){const e=d.oxw(2);d.Q6J("routerLink",d.VKq(2,x,e.resource.facilityId)),d.xp6(1),d.Oqu(e.resource.facility.name)}}function N(e,t){if(1&e&&(d.TgZ(0,"span"),d._uU(1),d.qZA()),2&e){const e=d.oxw(2);d.xp6(1),d.hij(" ",e.resource.facility.name," ")}}const G=function(){return{color:"black"}},D=function(e){return[e]};function L(e,t){if(1&e&&(d.TgZ(0,"div"),d.TgZ(1,"div",4),d._UZ(2,"mat-icon",5),d.ALo(3,"translate"),d.TgZ(4,"div",6),d.TgZ(5,"div",7),d.TgZ(6,"a",8),d._uU(7),d.qZA(),d.TgZ(8,"span",9),d._uU(9),d.qZA(),d.YNc(10,_,3,0,"button",10),d.YNc(11,O,3,0,"button",11),d.qZA(),d.TgZ(12,"div"),d._uU(13),d.ALo(14,"translate"),d.qZA(),d.TgZ(15,"span",12),d._uU(16),d.ALo(17,"translate"),d.ALo(18,"translate"),d.YNc(19,C,2,4,"a",13),d.YNc(20,y,2,1,"span",2),d._uU(21),d.ALo(22,"translate"),d.YNc(23,U,2,4,"a",14),d.YNc(24,N,2,1,"span",2),d._uU(25),d.ALo(26,"translate"),d.qZA(),d.qZA(),d.qZA(),d._UZ(27,"app-animated-router-outlet"),d.qZA()),2&e){const e=d.oxw();d.xp6(2),d.s9C("matTooltip",d.lcZ(3,20,"RESOURCE_DETAIL.ENTITY")),d.Q6J("ngStyle",d.DdM(32,G)),d.xp6(4),d.Q6J("routerLink",d.VKq(33,D,e.baseUrl)),d.xp6(1),d.hij(" ",e.resource.name," "),d.xp6(2),d.hij(" \xa0#",e.resource.id," "),d.xp6(1),d.Q6J("ngIf",e.editResourceAuth),d.xp6(1),d.Q6J("ngIf",e.deleteAuth),d.xp6(2),d.AsE("",d.lcZ(14,22,"RESOURCE_DETAIL.UUID"),": ",e.resource.uuid,""),d.xp6(3),d.AsE(" ",d.lcZ(17,24,"RESOURCE_DETAIL.ENTITY"),", ",d.lcZ(18,26,"RESOURCE_DETAIL.VO"),": "),d.xp6(3),d.Q6J("ngIf",e.voLinkAuth),d.xp6(1),d.Q6J("ngIf",!e.voLinkAuth),d.xp6(1),d.AsE(" #",e.resource.voId,", ",d.lcZ(22,28,"RESOURCE_DETAIL.FACILITY"),": "),d.xp6(2),d.Q6J("ngIf",e.facilityLinkAuth),d.xp6(1),d.Q6J("ngIf",!e.facilityLinkAuth),d.xp6(1),d.lnq(" #",e.resource.facilityId,", ",d.lcZ(26,30,"RESOURCE_DETAIL.DESCRIPTION"),": ",e.resource.description," ")}}let w=(()=>{class e{constructor(e,t,s,i,a,o,n,r,l,c,u){this.route=e,this.facilityManager=t,this.vosManagerService=s,this.resourcesManager=i,this.sideMenuService=a,this.sideMenuItemService=o,this.dialog=n,this.guiAuthResolver=r,this.router=l,this.entityStorageService=c,this.reloadEntityDetail=u,this.underVoUrl=!1,this.deleteAuth=!1,this.baseUrl="",this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.subscribe(()=>{this.reloadData()})}reloadData(){this.loading=!0,this.route.params.subscribe(e=>{this.resourcesManager.getRichResourceById(e.resourceId).subscribe(e=>{this.resource=e,this.entityStorageService.setEntity({id:e.id,voId:e.voId,facilityId:e.facilityId,beanName:"Resource"}),this.setAuth(),"facilities"===this.route.parent.snapshot.url[0].path?(this.baseUrl=(new l.r5).transform(e,!1),this.facilityManager.getFacilityById(e.facilityId).subscribe(e=>{this.facility=e,this.setMenuItems(),this.loading=!1},()=>this.loading=!1)):(this.baseUrl=(new l.r5).transform(e,!0),this.vosManagerService.getVoById(e.voId).subscribe(e=>{this.vo=e,this.underVoUrl=!0,this.setMenuItems(),this.loading=!1},()=>this.loading=!1)),(0,n.sF)("resources",this.resource)})})}setMenuItems(){let e;const t=this.sideMenuItemService.parseResource(this.resource,this.underVoUrl);e=this.underVoUrl?this.sideMenuItemService.parseVo(this.vo):this.sideMenuItemService.parseFacility(this.facility),this.sideMenuService.setAccessMenuItems([e,t])}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])}editResource(){let e;this.resourcesManager.getResourceById(this.resource.id).subscribe(t=>{e=t;const s=(0,n.kZ)();s.width="450px",s.data={theme:"resource-theme",resource:e,dialogType:c.Eg.RESOURCE},this.dialog.open(c.rd,s).afterClosed().subscribe(e=>{e&&this.resourcesManager.getRichResourceById(this.resource.id).subscribe(e=>{this.resource=e,this.setMenuItems()})})})}deleteResource(){const e=(0,n.kZ)();e.width="500px",e.data={theme:"resource-theme",resources:[this.resource]},this.dialog.open(u.f,e).afterClosed().subscribe(e=>{e&&this.router.navigate(["../"],{relativeTo:this.route})})}}return e.\u0275fac=function(t){return new(t||e)(d.Y36(h.gz),d.Y36(o.IQ),d.Y36(o.YF),d.Y36(o.xk),d.Y36(g.D),d.Y36(a.V),d.Y36(p.uw),d.Y36(r.x4),d.Y36(h.F0),d.Y36(r.fb),d.Y36(m.G))},e.\u0275cmp=d.Xpm({type:e,selectors:[["app-resource-detail-page"]],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"],["mat-icon-button","","aria-label","Edit resource",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"],["mat-icon-button","","aria-label","Edit resource",3,"click"],["mat-icon-button","",3,"click"]],template:function(e,t){1&e&&(d.TgZ(0,"div",0),d._UZ(1,"perun-web-apps-back-button"),d.YNc(2,Z,1,0,"mat-spinner",1),d.YNc(3,L,28,35,"div",2),d.qZA()),2&e&&(d.xp6(2),d.Q6J("ngIf",t.loading),d.xp6(1),d.Q6J("ngIf",!t.loading&&void 0!==t.resource))},directives:[f.W,A.O5,S.$g,b.Hw,E.gM,A.PC,h.yS,R.A,T.lW],pipes:[I.X$],styles:[".break-line[_ngcontent-%COMP%]{display:inline-block}"],data:{animation:[i.Ji]}}),e})()},42473:function(e,t,s){"use strict";s.d(t,{K:function(){return H}});var i=s(65249),a=s(4230),o=s(84608),n=s(67033),r=s(68416),l=s(31572),c=s(48160),u=s(61511),d=s(15980),h=s(67806);function g(e,t){1&e&&l._UZ(0,"mat-spinner",6)}function p(e,t){1&e&&l._UZ(0,"th",15)}function m(e,t){if(1&e&&(l.TgZ(0,"td",16),l._uU(1),l.qZA()),2&e){const e=t.$implicit;l.xp6(1),l.Oqu(e.name)}}function f(e,t){1&e&&l._UZ(0,"tr",17)}function A(e,t){1&e&&l._UZ(0,"tr",18)}function S(e,t){if(1&e&&(l.TgZ(0,"div",7),l.TgZ(1,"p"),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"div",8),l._uU(5),l.ALo(6,"translate"),l.qZA(),l.TgZ(7,"table",9),l.ynx(8,10),l.YNc(9,p,1,0,"th",11),l.YNc(10,m,2,1,"td",12),l.BQk(),l.YNc(11,f,1,0,"tr",13),l.YNc(12,A,1,0,"tr",14),l.qZA(),l.qZA()),2&e){const e=l.oxw();l.xp6(2),l.hij(" ",l.lcZ(3,5,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DESCRIPTION")," "),l.xp6(3),l.hij(" ",l.lcZ(6,7,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.ASK")," "),l.xp6(2),l.Q6J("dataSource",e.dataSource),l.xp6(4),l.Q6J("matHeaderRowDef",e.displayedColumns),l.xp6(1),l.Q6J("matRowDefColumns",e.displayedColumns)}}let b=(()=>{class e{constructor(e,t,s,i,a){this.dialogRef=e,this.data=t,this.notificator=s,this.translate=i,this.resourceManager=a,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new n.by(this.data.groups)}onCancel(){this.dialogRef.close()}onSubmit(){const e=[];for(const t of this.data.groups)e.push(t.id);this.loading=!0,this.resourceManager.removeGroupsFromResource(e,this.data.resourceId).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_GROUP_FROM_RESOURCE.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return e.\u0275fac=function(t){return new(t||e)(l.Y36(o.so),l.Y36(o.WI),l.Y36(r.V6),l.Y36(c.sK),l.Y36(i.xk))},e.\u0275cmp=l.Xpm({type:e,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"],["mat-flat-button","","color","warn",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"],["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&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,g,1,0,"mat-spinner",1),l.YNc(5,S,13,9,"div",2),l.TgZ(6,"div",3),l.TgZ(7,"button",4),l.NdJ("click",function(){return t.onCancel()}),l._uU(8),l.ALo(9,"translate"),l.qZA(),l.TgZ(10,"button",5),l.NdJ("click",function(){return t.onSubmit()}),l._uU(11),l.ALo(12,"translate"),l.qZA(),l.qZA(),l.qZA()),2&e&&(l.Tol(t.theme),l.xp6(2),l.Oqu(l.lcZ(3,9,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.TITLE")),l.xp6(2),l.Q6J("ngIf",t.loading),l.xp6(1),l.Q6J("ngIf",!t.loading),l.xp6(3),l.hij(" ",l.lcZ(9,11,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.CANCEL")," "),l.xp6(2),l.Q6J("disabled",t.loading),l.xp6(1),l.hij(" ",l.lcZ(12,13,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DELETE")," "))},directives:[o.uh,u.O5,o.H8,d.lW,h.$g,o.xY,n.BZ,n.w1,n.fO,n.Dz,n.as,n.nj,n.ge,n.ev,n.XQ,n.Gk],pipes:[c.X$],styles:[""]}),e})();var E=s(60611),R=s(70663),T=s(91058),I=s(78364),Z=s(27521),_=s(16073);const O=["stepper"];function v(e,t){1&e&&l._UZ(0,"mat-spinner",4)}function C(e,t){1&e&&(l._uU(0),l.ALo(1,"translate")),2&e&&l.Oqu(l.lcZ(1,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.GROUPS"))}function y(e,t){1&e&&(l._uU(0),l.ALo(1,"translate")),2&e&&l.Oqu(l.lcZ(1,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.OPTIONS"))}const x=function(){return["select","id","name","description"]};function U(e,t){if(1&e){const e=l.EpF();l.TgZ(0,"div",5),l.TgZ(1,"mat-stepper",6,7),l.TgZ(3,"mat-step",8),l.YNc(4,C,2,3,"ng-template",9),l.TgZ(5,"perun-web-apps-debounce-filter",10),l.NdJ("filter",function(t){return l.CHM(e),l.oxw().applyFilter(t)}),l.ALo(6,"translate"),l.qZA(),l._UZ(7,"perun-web-apps-groups-list",11),l.qZA(),l.TgZ(8,"mat-step"),l.YNc(9,y,2,3,"ng-template",9),l.TgZ(10,"mat-slide-toggle",12),l.NdJ("toggleChange",function(){return l.CHM(e),l.oxw().changeSubgroupsMessage()})("ngModelChange",function(t){return l.CHM(e),l.oxw().autoAssignSubgroups=t}),l._uU(11),l.ALo(12,"translate"),l.qZA(),l.TgZ(13,"div",13),l._UZ(14,"i",14),l.qZA(),l.TgZ(15,"mat-slide-toggle",12),l.NdJ("toggleChange",function(){return l.CHM(e),l.oxw().changeInactiveMessage()})("ngModelChange",function(t){return l.CHM(e),l.oxw().asActive=t}),l._uU(16),l.ALo(17,"translate"),l.qZA(),l.TgZ(18,"div",13),l._uU(19),l.qZA(),l.TgZ(20,"mat-slide-toggle",12),l.NdJ("toggleChange",function(){return l.CHM(e),l.oxw().changeAsyncMessage()})("ngModelChange",function(t){return l.CHM(e),l.oxw().async=t}),l._uU(21),l.ALo(22,"translate"),l.qZA(),l.TgZ(23,"div",13),l._uU(24),l.qZA(),l.qZA(),l.qZA(),l.qZA()}if(2&e){const e=l.oxw();l.xp6(1),l.Q6J("linear",!0),l.xp6(2),l.Q6J("completed",0!==e.selection.selected.length&&e.canAddGroups()),l.xp6(2),l.s9C("placeholder",l.lcZ(6,19,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.FILTER_DESCRIPTION")),l.xp6(2),l.Q6J("tableId",e.tableId)("groups",e.unAssignedGroups)("selection",e.selection)("filter",e.filterValue)("displayedColumns",l.DdM(27,x))("disableRouting",!0)("disableMembers",!1),l.xp6(3),l.Q6J("ngModel",e.autoAssignSubgroups),l.xp6(1),l.hij(" ",l.lcZ(12,21,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS")," "),l.xp6(3),l.Q6J("innerHTML",e.autoAssignHint,l.oJD),l.xp6(1),l.Q6J("ngModel",e.asActive),l.xp6(1),l.hij(" ",l.lcZ(17,23,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AS_ACTIVE")," "),l.xp6(3),l.hij(" ",e.asActiveHint," "),l.xp6(1),l.Q6J("ngModel",e.async),l.xp6(1),l.hij(" ",l.lcZ(22,25,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_OPT")," "),l.xp6(3),l.hij(" ",e.asyncHint," ")}}function N(e,t){if(1&e){const e=l.EpF();l.TgZ(0,"button",20),l.NdJ("click",function(){return l.CHM(e),l.oxw(2).stepperPrevious()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&e&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.BACK")," "))}function G(e,t){if(1&e){const e=l.EpF();l.TgZ(0,"button",21),l.NdJ("click",function(){return l.CHM(e),l.oxw(2).stepperNext()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}if(2&e){const e=l.oxw(2);l.ekj("ml-2",void 0!==e.stepper&&0!==e.stepper.selectedIndex)("ml-auto",!(void 0!==e.stepper&&0!==e.stepper.selectedIndex)),l.Q6J("disabled",0===e.selection.selected.length||!e.canAddGroups()),l.xp6(1),l.hij(" ",l.lcZ(2,6,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.NEXT")," ")}}function D(e,t){if(1&e){const e=l.EpF();l.TgZ(0,"button",22),l.NdJ("click",function(){return l.CHM(e),l.oxw(2).onAdd()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&e&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ADD_BUTTON")," "))}function L(e,t){if(1&e){const e=l.EpF();l.TgZ(0,"div",15),l.TgZ(1,"button",16),l.NdJ("click",function(){return l.CHM(e),l.oxw().onCancel()}),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,N,3,3,"button",17),l.YNc(5,G,3,8,"button",18),l.YNc(6,D,3,3,"button",19),l.qZA()}if(2&e){const e=l.oxw();l.xp6(2),l.hij(" ",l.lcZ(3,4,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.CANCEL_BUTTON")," "),l.xp6(2),l.Q6J("ngIf",void 0!==e.stepper&&0!==e.stepper.selectedIndex),l.xp6(1),l.Q6J("ngIf",void 0!==e.stepper&&e.stepper.selectedIndex!==e.stepper._steps.length-1),l.xp6(1),l.Q6J("ngIf",void 0!==e.stepper&&e.stepper.selectedIndex===e.stepper._steps.length-1)}}let w=(()=>{class e{constructor(e,t,s,i,o,n,r,l){this.dialogRef=e,this.data=t,this.notificator=s,this.translate=i,this.resourceManager=o,this.groupService=n,this.guiAuthResolver=r,this.cd=l,this.loading=!1,this.unAssignedGroups=this.data.onlyAutoAssignedGroups,this.async=!0,this.autoAssignSubgroups=!1,this.asActive=!0,this.selection=new a.Ov(!0,[]),this.filterValue="",this.tableId=E.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(e=>{this.groupService.getAllGroups(this.resource.voId).subscribe(t=>{for(const s of t)-1===e.findIndex(e=>e.id===s.id)&&this.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[this.resource,s])&&this.unAssignedGroups.push(s);this.loading=!1,this.cd.detectChanges()},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close()}onAdd(){this.loading=!0;const e=[];for(const t of this.selection.selected)e.push(t.id);this.resourceManager.assignGroupsToResource(e,this.resource.id,this.async,!this.asActive,this.autoAssignSubgroups).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.SUCCESS_MESSAGE").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)})},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}canAddGroups(){let e=!0;return this.selection.selected.forEach(t=>{this.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[this.resource,t])||(e=!1)}),e}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 e.\u0275fac=function(t){return new(t||e)(l.Y36(o.so),l.Y36(o.WI),l.Y36(r.V6),l.Y36(c.sK),l.Y36(i.xk),l.Y36(i.ff),l.Y36(r.x4),l.Y36(l.sBO))},e.\u0275cmp=l.Xpm({type:e,selectors:[["app-perun-web-apps-assign-group-to-resource-dialog"]],viewQuery:function(e,t){if(1&e&&l.Gf(O,5),2&e){let e;l.iGM(e=l.CRH())&&(t.stepper=e.first)}},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,"linear"],["stepper",""],[3,"completed"],["matStepLabel",""],[3,"placeholder","filter"],[3,"tableId","groups","selection","filter","displayedColumns","disableRouting","disableMembers"],["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",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","","type","button",3,"click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","","type","button",3,"disabled","click"],["color","accent","mat-flat-button","","type","button",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,v,1,0,"mat-spinner",1),l.YNc(5,U,25,28,"div",2),l.YNc(6,L,7,6,"div",3),l.qZA()),2&e&&(l.Tol(t.theme),l.xp6(2),l.Oqu(l.lcZ(3,7,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.TITLE")),l.xp6(2),l.Q6J("ngIf",t.loading),l.xp6(1),l.Q6J("ngIf",!t.loading),l.xp6(1),l.Q6J("ngIf",!t.loading&&t.stepper))},directives:[o.uh,u.O5,h.$g,o.xY,R.Vq,R.C0,R.VY,T.P,I.W,Z.Rr,_.JJ,_.On,o.H8,d.lW],pipes:[c.X$],styles:[".slide-text[_ngcontent-%COMP%]{font-size:1.1rem}"]}),e})();var M=s(84140),Y=s(67004),q=s(57629),J=s(59403),k=s(36922);function P(e,t){if(1&e){const e=l.EpF();l.TgZ(0,"button",8),l.NdJ("click",function(){return l.CHM(e),l.oxw().addGroup()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&e&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_GROUPS.ADD_GROUP"),"\n"))}function Q(e,t){1&e&&l._UZ(0,"mat-spinner",9)}const V=function(e){return[e]},F=function(){return["select","id","indirectGroupAssigment","name","status","description"]};function j(e,t){if(1&e){const e=l.EpF();l.TgZ(0,"perun-web-apps-groups-list",10),l.NdJ("refreshTable",function(){return l.CHM(e),l.oxw().loadAllGroups()}),l.qZA()}if(2&e){const e=l.oxw();l.Q6J("disableGroups",!0)("groupsToDisableCheckbox",e.groupsToDisable)("tableId",e.tableId)("groups",e.assignedGroups)("filter",e.filteredValue)("selection",e.selected)("disableMembers",!1)("resourceId",e.resource.id)("disableRouting",!!e.assignedGroups[0]&&!e.guiAuthResolver.isAuthorized("getGroupById_int_policy",l.VKq(10,V,e.assignedGroups[0])))("displayedColumns",l.DdM(12,F))}}let H=(()=>{class e{constructor(e,t,s,i,o){this.route=e,this.resourcesManager=t,this.dialog=s,this.guiAuthResolver=i,this.entityStorageService=o,this.assignedGroups=[],this.selected=new a.Ov(!0,[]),this.filteredValue="",this.tableId=E.Ad}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.loadAllGroups()}loadAllGroups(){this.loading=!0,this.resourcesManager.getGroupAssignments(this.resource.id,[Y.r.GROUP_SYNC_ENABLED]).subscribe(e=>{this.assignedGroups=e.map(e=>{const t=e.enrichedGroup.group;return t.status=e.status,t.failureCause=e.failureCause,t.sourceGroupId=e.sourceGroupId,t});const t=this.assignedGroups.map(e=>e.id),s=this.assignedGroups.filter((e,s)=>t.indexOf(e.id)===s),i=this.assignedGroups.filter((e,s)=>{const i=t.indexOf(e.id);return i!==s&&(null===e.sourceGroupId||null===this.assignedGroups[i].sourceGroupId)}).map(e=>e.id);s.forEach(e=>{i.includes(e.id)&&(e.moreTypesOfAssignment=!0)}),this.assignedGroups=s,this.groupsToDisable=new Set(this.assignedGroups.filter(e=>!!e.sourceGroupId&&!e.moreTypesOfAssignment).map(e=>e.id)),this.selected.clear(),this.loading=!1})}addGroup(){const e=(0,M.kZ)();e.width="1000px",e.data={theme:"resource-theme",resource:this.resource,onlyAutoAssignedGroups:this.assignedGroups.filter(e=>this.groupsToDisable.has(e.id))},this.dialog.open(w,e).afterClosed().subscribe(e=>{e&&this.loadAllGroups()})}removeGroups(){const e=(0,M.kZ)();e.width="500px",e.data={resourceId:this.resource.id,groups:this.selected.selected,theme:"resource-theme"},this.dialog.open(b,e).afterClosed().subscribe(e=>{e&&this.loadAllGroups()})}canRemoveGroups(){let e=!0;return this.selected.selected.forEach(t=>{this.guiAuthResolver.isAuthorized("removeGroupsFromResource_List_Resource_policy",[this.resource,t])||(e=!1)}),e}applyFilter(e){this.filteredValue=e}}return e.\u0275fac=function(t){return new(t||e)(l.Y36(q.gz),l.Y36(i.xk),l.Y36(o.uw),l.Y36(r.x4),l.Y36(r.fb))},e.\u0275cmp=l.Xpm({type:e,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","",3,"click",4,"ngIf"],["color","warn","mat-flat-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","tableId","groups","filter","selection","disableMembers","resourceId","disableRouting","displayedColumns","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableGroups","groupsToDisableCheckbox","tableId","groups","filter","selection","disableMembers","resourceId","disableRouting","displayedColumns","refreshTable"]],template:function(e,t){1&e&&(l.TgZ(0,"h1",0),l._uU(1),l.ALo(2,"translate"),l.qZA(),l.TgZ(3,"perun-web-apps-refresh-button",1),l.NdJ("refresh",function(){return t.loadAllGroups()}),l.qZA(),l.YNc(4,P,3,3,"button",2),l.TgZ(5,"button",3),l.NdJ("click",function(){return t.removeGroups()}),l.TgZ(6,"span",4),l.ALo(7,"translate"),l._uU(8),l.ALo(9,"translate"),l.qZA(),l.qZA(),l.TgZ(10,"perun-web-apps-debounce-filter",5),l.NdJ("filter",function(e){return t.applyFilter(e)}),l.qZA(),l.YNc(11,Q,1,0,"mat-spinner",6),l.YNc(12,j,1,13,"perun-web-apps-groups-list",7)),2&e&&(l.xp6(1),l.Oqu(l.lcZ(2,9,"RESOURCE_DETAIL.ASSIGNED_GROUPS.TITLE")),l.xp6(3),l.Q6J("ngIf",t.guiAuthResolver.isAuthorized("getAllGroups_Vo_policy",l.VKq(15,V,t.resource))),l.xp6(1),l.Q6J("disabled",0===t.selected.selected.length||!t.canRemoveGroups()),l.xp6(1),l.s9C("matTooltip",l.lcZ(7,11,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_TOOLTIP")),l.Q6J("matTooltipDisabled",t.canRemoveGroups()),l.xp6(2),l.hij(" ",l.lcZ(9,13,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_GROUP")," "),l.xp6(2),l.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_GROUPS.FILTER_GROUPS"),l.xp6(1),l.Q6J("ngIf",t.loading),l.xp6(1),l.Q6J("ngIf",!t.loading))},directives:[J.t,u.O5,d.lW,k.gM,T.P,h.$g,I.W],pipes:[c.X$],styles:[""]}),e})()},76527:function(e,t,s){"use strict";s.d(t,{H:function(){return h}});var i=s(65249),a=s(68416),o=s(31572),n=s(57629),r=s(61511),l=s(67806),c=s(8557);function u(e,t){1&e&&o._UZ(0,"mat-spinner",2)}function d(e,t){if(1&e&&(o.TgZ(0,"div"),o._UZ(1,"perun-web-apps-menu-buttons-field",3),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("items",e.navItems)("size","small")}}let h=(()=>{class e{constructor(e,t,s,i){this.resourcesManager=e,this.route=t,this.guiAuthResolver=s,this.entityStorageService=i,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(e){const t=e?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`;this.navItems=[],this.guiAuthResolver.isAuthorized("getAssignedGroups_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-group",url:`${t}/resources/${this.resource.id}/groups`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",style:"resource-btn"}),this.guiAuthResolver.isAuthorized("getAssignedServices_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-service",url:`/${t}/resources/${this.resource.id}/services`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",style:"resource-btn"}),this.guiAuthResolver.isAuthorized("getAssignedMembers_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-user",url:`${t}/resources/${this.resource.id}/members`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",style:"resource-btn"}),this.guiAuthResolver.isAuthorized("getAllResourcesTagsForResource_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-resource-tags",url:`${t}/resources/${this.resource.id}/tags`,label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",style:"resource-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:`${t}/resources/${this.resource.id}/attributes`,label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",style:"resource-btn"}),this.guiAuthResolver.isManagerPagePrivileged(this.resource)&&this.navItems.push({cssIcon:"perun-settings2",url:`${t}/resources/${this.resource.id}/settings`,label:"MENU_ITEMS.RESOURCE.SETTINGS",style:"resource-btn"})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(i.xk),o.Y36(n.gz),o.Y36(a.x4),o.Y36(a.fb))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-resource-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&o.ekj("router-component",t.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,t){1&e&&(o.YNc(0,u,1,0,"mat-spinner",0),o.YNc(1,d,2,2,"div",1)),2&e&&(o.Q6J("ngIf",t.loading),o.xp6(1),o.Q6J("ngIf",!t.loading))},directives:[r.O5,l.$g,c.L],styles:[""]}),e})()},64359:function(e,t,s){"use strict";s.d(t,{O:function(){return n}});var i=s(68416),a=s(31572),o=s(489);let n=(()=>{class e{constructor(e,t){this.guiAuthResolver=e,this.entityStorageService=t,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)(a.Y36(i.x4),a.Y36(i.fb))},e.\u0275cmp=a.Xpm({type:e,selectors:[["app-resource-settings-managers"]],decls:1,vars:4,consts:[[3,"complementaryObject","complementaryObjectType","theme","availableRoles"]],template:function(e,t){1&e&&a._UZ(0,"app-managers-page",0),2&e&&a.Q6J("complementaryObject",t.resource)("complementaryObjectType",t.type)("theme",t.theme)("availableRoles",t.availableRoles)},directives:[o.s],styles:[""]}),e})()},22927:function(e,t,s){"use strict";s.d(t,{h:function(){return h}});var i=s(65249),a=s(68416),o=s(31572),n=s(57629),r=s(61511),l=s(67806),c=s(8557);function u(e,t){1&e&&o._UZ(0,"mat-spinner",2)}function d(e,t){if(1&e&&(o.TgZ(0,"div"),o._UZ(1,"perun-web-apps-menu-buttons-field",3),o.qZA()),2&e){const e=o.oxw();o.xp6(1),o.Q6J("items",e.items)("size","small")}}let h=(()=>{class e{constructor(e,t,s,i){this.route=e,this.resourceManager=t,this.authResolver=s,this.entityStorageService=i,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(e){this.items=[],this.authResolver.isManagerPagePrivileged(this.resource)&&this.items.push({cssIcon:"perun-manager",url:`${e?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`}/resources/${this.resource.id}/settings/managers`,label:"MENU_ITEMS.RESOURCE.MANAGERS",style:"resource-btn"})}}return e.\u0275fac=function(t){return new(t||e)(o.Y36(n.gz),o.Y36(i.xk),o.Y36(a.x4),o.Y36(a.fb))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-resource-settings-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&o.ekj("router-component",t.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,t){1&e&&(o.YNc(0,u,1,0,"mat-spinner",0),o.YNc(1,d,2,2,"div",1)),2&e&&(o.Q6J("ngIf",t.loading),o.xp6(1),o.Q6J("ngIf",!t.loading))},directives:[r.O5,l.$g,c.L],styles:[""]}),e})()},77968:function(e,t,s){"use strict";s.d(t,{t:function(){return n}});var i=s(17),a=s(31572),o=s(21575);let n=(()=>{class e{constructor(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.Xpm({type:e,selectors:[["app-resource-settings"]],hostVars:2,hostBindings:function(e,t){2&e&&a.ekj("router-component",t.true)},decls:1,vars:0,template:function(e,t){1&e&&a._UZ(0,"app-animated-router-outlet")},directives:[o.A],styles:[""],data:{animation:[i.Ji]}}),e})()},53134:function(e,t,s){"use strict";s.d(t,{v:function(){return v}});var i=s(65249),a=s(4230),o=s(60611),n=s(84140),r=s(68416),l=s(6527),c=s(84608),u=s(31572),d=s(61511),h=s(15980),g=s(67806),p=s(4196),m=s(48160);function f(e,t){1&e&&u._UZ(0,"mat-spinner",8)}function A(e,t){if(1&e&&u._UZ(0,"app-resources-tags-list",9),2&e){const e=u.oxw();u.Q6J("selection",e.selection)("tableId",e.tableId)("resourceTags",e.resourceTags)("filterValue",e.filterValue)("displayedColumns",e.displayedColumns)("entity","resource")}}let S=(()=>{class e{constructor(e,t,s){this.dialogRef=e,this.data=t,this.resourcesManager=s,this.tableId=o.g,this.selection=new a.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(e=>{this.resourceTags=e.filter(e=>this.assignedTags.map(e=>e.id).indexOf(e.id)<=-1),this.loading=!1})}onCancel(){this.dialogRef.close(!1)}onSubmit(e){if(0===e.length)return this.dialogRef.close(!0);const t=e.pop();this.resourcesManager.assignResourceTagToResource({resource:this.resourceId,resourceTag:t}).subscribe(()=>{this.onSubmit(e)})}applyFilter(e){this.filterValue=e}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(c.so),u.Y36(c.WI),u.Y36(i.xk))},e.\u0275cmp=u.Xpm({type:e,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","tableId","resourceTags","filterValue","displayedColumns","entity",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,"mr-auto","ml-auto"],[3,"selection","tableId","resourceTags","filterValue","displayedColumns","entity"]],template:function(e,t){1&e&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"div",1),u.TgZ(5,"div",2),u.YNc(6,f,1,0,"mat-spinner",3),u.qZA(),u.YNc(7,A,1,6,"app-resources-tags-list",4),u.qZA(),u.TgZ(8,"div",5),u.TgZ(9,"button",6),u.NdJ("click",function(){return t.onCancel()}),u._uU(10),u.ALo(11,"translate"),u.qZA(),u.TgZ(12,"button",7),u.NdJ("click",function(){return t.onSubmit(t.selection.selected)}),u._uU(13),u.ALo(14,"translate"),u.qZA(),u.qZA(),u.qZA()),2&e&&(u.Tol(t.theme),u.xp6(2),u.Oqu(u.lcZ(3,9,"RESOURCE_DETAIL.TAGS.ADD_TAGS")),u.xp6(4),u.Q6J("ngIf",t.loading),u.xp6(1),u.Q6J("ngIf",!t.loading),u.xp6(3),u.hij(" ",u.lcZ(11,11,"RESOURCE_DETAIL.TAGS.CANCEL")," "),u.xp6(2),u.Q6J("disabled",t.loading||0===t.resourceTags.length),u.xp6(1),u.hij(" ",u.lcZ(14,13,"RESOURCE_DETAIL.TAGS.ADD_BUTTON")," "))},directives:[c.uh,c.xY,d.O5,c.H8,h.lW,g.$g,p.o],pipes:[m.X$],styles:[""]}),e})();var b=s(24923),E=s(59403),R=s(19139);function T(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"button",7),u.NdJ("click",function(){return u.CHM(e),u.oxw().create()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function I(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"button",7),u.NdJ("click",function(){return u.CHM(e),u.oxw().addTag()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"RESOURCE_DETAIL.TAGS.ADD_BUTTON"),"\n"))}function Z(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"button",8),u.NdJ("click",function(){return u.CHM(e),u.oxw().removeTags()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}if(2&e){const e=u.oxw();u.Q6J("disabled",0===e.selection.selected.length),u.xp6(1),u.hij(" ",u.lcZ(2,2,"RESOURCE_DETAIL.TAGS.REMOVE_BUTTON"),"\n")}}function _(e,t){1&e&&u._UZ(0,"mat-spinner",9)}function O(e,t){if(1&e&&u._UZ(0,"app-resources-tags-list",10),2&e){const e=u.oxw();u.Q6J("selection",e.selection)("tableId",e.tableId)("resourceTags",e.resourceTags)("filterValue",e.filterValue)("displayedColumns",e.displayedColumns)("entity","resource")}}let v=(()=>{class e{constructor(e,t,s,i,n,r){this.authResolver=e,this.resourcesManager=t,this.dialog=s,this.notificator=i,this.translate=n,this.entityStorageService=r,this.loading=!1,this.resourceTags=[],this.selection=new a.Ov(!0,[]),this.tableId=o.M8,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.setAuthRights(),this.updateData()}removeTags(){const e=(0,n.kZ)();e.width="450px",e.data={items:this.selection.selected.map(e=>e.tagName),title:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_TITLE",description:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_DESCRIPTION",theme:"resource-theme"},this.dialog.open(l.Tf,e).afterClosed().subscribe(e=>{e&&this.removeTag(this.selection.selected)})}removeTag(e){if(0===e.length)return this.notificator.showSuccess(this.translate.instant("RESOURCE_DETAIL.TAGS.REMOVED_SUCCESSFULLY")),this.updateData();const t=e.pop();this.resourcesManager.removeResourceTagFromResource({resource:this.resource.id,resourceTag:t}).subscribe(()=>{this.removeTag(e)})}addTag(){const e=(0,n.kZ)();e.width="600px",e.data={voId:this.resource.voId,resourceId:this.resource.id,assignedTags:this.resourceTags,theme:"resource-theme"},this.dialog.open(S,e).afterClosed().subscribe(e=>{e&&(this.notificator.showSuccess(this.translate.instant("RESOURCE_DETAIL.TAGS.ADDED_SUCCESSFULLY")),this.updateData())})}create(){const e=(0,n.kZ)();e.width="450px",e.data={voId:this.resource.voId,theme:"resource-theme"},this.dialog.open(b.p,e).afterClosed().subscribe(e=>{e&&(this.translate.get("VO_DETAIL.RESOURCES.TAGS.CREATE_SUCCESS").subscribe(e=>{this.notificator.showSuccess(e)}),this.updateData())})}updateData(){this.loading=!0,this.selection.clear(),this.resourcesManager.getAllResourcesTagsForResource(this.resource.id).subscribe(e=>{this.resourceTags=e,this.selection.clear(),this.loading=!1})}setAuthRights(){const e={id:this.resource.voId,beanName:"Vo"};this.displayedColumns=[],this.createAuth=this.authResolver.isAuthorized("createResourceTag_ResourceTag_Vo_policy",[e]),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(e){this.filterValue=e}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(r.x4),u.Y36(i.xk),u.Y36(c.uw),u.Y36(r.V6),u.Y36(m.sK),u.Y36(r.fb))},e.\u0275cmp=u.Xpm({type:e,selectors:[["app-perun-web-apps-resource-tags"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["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,"selection","tableId","resourceTags","filterValue","displayedColumns","entity",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,"selection","tableId","resourceTags","filterValue","displayedColumns","entity"]],template:function(e,t){1&e&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.TgZ(3,"perun-web-apps-refresh-button",1),u.NdJ("refresh",function(){return t.updateData()}),u.qZA(),u.YNc(4,T,3,3,"button",2),u.YNc(5,I,3,3,"button",2),u.YNc(6,Z,3,4,"button",3),u.TgZ(7,"perun-web-apps-immediate-filter",4),u.NdJ("filter",function(e){return t.applyFilter(e)}),u.qZA(),u.YNc(8,_,1,0,"mat-spinner",5),u.YNc(9,O,1,6,"app-resources-tags-list",6)),2&e&&(u.xp6(1),u.Oqu(u.lcZ(2,7,"RESOURCE_DETAIL.TAGS.TITLE")),u.xp6(3),u.Q6J("ngIf",t.createAuth),u.xp6(1),u.Q6J("ngIf",t.addAuth),u.xp6(1),u.Q6J("ngIf",t.removeAuth),u.xp6(1),u.Q6J("placeholder","RESOURCE_DETAIL.TAGS.SEARCH"),u.xp6(1),u.Q6J("ngIf",t.loading),u.xp6(1),u.Q6J("ngIf",!t.loading))},directives:[E.t,d.O5,R.L,h.lW,g.$g,p.o],pipes:[m.X$],styles:[""]}),e})()},24923:function(e,t,s){"use strict";s.d(t,{p:function(){return m}});var i=s(84608),a=s(65249),o=s(31572),n=s(61511),r=s(15980),l=s(67806),c=s(66283),u=s(80340),d=s(16073),h=s(48160);function g(e,t){1&e&&o._UZ(0,"mat-spinner",6)}function p(e,t){if(1&e){const e=o.EpF();o.TgZ(0,"div",7),o.TgZ(1,"mat-form-field"),o.TgZ(2,"input",8),o.NdJ("ngModelChange",function(t){return o.CHM(e),o.oxw().name=t}),o.ALo(3,"translate"),o.qZA(),o.TgZ(4,"mat-error"),o._uU(5),o.ALo(6,"translate"),o.qZA(),o.qZA(),o.qZA()}if(2&e){const e=o.oxw();o.xp6(2),o.s9C("placeholder",o.lcZ(3,3,"DIALOGS.CREATE_RESOURCE_TAG.NAME")),o.Q6J("ngModel",e.name),o.xp6(3),o.Oqu(o.lcZ(6,5,"DIALOGS.CREATE_RESOURCE_TAG.EMPTY_NAME"))}}let m=(()=>{class e{constructor(e,t,s){this.dialogRef=e,this.data=t,this.resourceManager=s,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 e.\u0275fac=function(t){return new(t||e)(o.Y36(i.so),o.Y36(i.WI),o.Y36(a.xk))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-create-resource-tag-dialog"]],decls:13,vars:15,consts:[["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","accent",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(e,t){1&e&&(o.TgZ(0,"div"),o.TgZ(1,"h1",0),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.YNc(4,g,1,0,"mat-spinner",1),o.YNc(5,p,7,7,"div",2),o.TgZ(6,"div",3),o.TgZ(7,"button",4),o.NdJ("click",function(){return t.onCancel()}),o._uU(8),o.ALo(9,"translate"),o.qZA(),o.TgZ(10,"button",5),o.NdJ("click",function(){return t.onSubmit()}),o._uU(11),o.ALo(12,"translate"),o.qZA(),o.qZA(),o.qZA()),2&e&&(o.Tol(t.theme),o.xp6(2),o.Oqu(o.lcZ(3,9,"DIALOGS.CREATE_RESOURCE_TAG.TITLE")),o.xp6(2),o.Q6J("ngIf",t.loading),o.xp6(1),o.Q6J("ngIf",!t.loading),o.xp6(3),o.hij(" ",o.lcZ(9,11,"DIALOGS.CREATE_RESOURCE_TAG.CANCEL")," "),o.xp6(2),o.Q6J("disabled",t.loading),o.xp6(1),o.hij(" ",o.lcZ(12,13,"DIALOGS.CREATE_RESOURCE_TAG.CREATE")," "))},directives:[i.uh,n.O5,i.H8,r.lW,l.$g,i.xY,c.KE,u.Nt,d.Fj,d.Q7,d.JJ,d.On,c.TO],pipes:[h.X$],styles:[""]}),e})()},489:function(e,t,s){"use strict";s.d(t,{s:function(){return _e}});var i=s(4230),a=s(84608),o=s(68416),n=s(65249),r=s(60611),l=s(67004),c=s(16073),u=s(31572),d=s(48160),h=s(57629),g=s(66283),p=s(4786),m=s(61511),f=s(80340),A=s(84534),S=s(15980),b=s(71522),E=s(67806),R=s(39571),T=s(77889);let I=(()=>{class e{constructor(e){this.translate=e,this.prefix="ROLES."}transform(e){const t=this.prefix.concat(e);return this.translate.instant(t)}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(d.sK,16))},e.\u0275pipe=u.Yjl({name:"displayedRole",type:e,pure:!0}),e})();function Z(e,t){if(1&e&&(u.TgZ(0,"mat-option",15),u._uU(1),u.ALo(2,"displayedRole"),u.qZA()),2&e){const e=t.$implicit;u.Q6J("value",e),u.xp6(1),u.Oqu(u.lcZ(2,2,e))}}function _(e,t){1&e&&u._UZ(0,"mat-spinner",16)}function O(e,t){1&e&&(u.TgZ(0,"app-alert",20),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"DIALOGS.ADD_MANAGERS.NO_USERS_FOUND")," "))}const v=function(){return["select","id","name","email","logins","organization"]};function C(e,t){if(1&e&&u._UZ(0,"app-users-list",21),2&e){const e=u.oxw(2);u.Q6J("tableId",e.tableId)("disableRouting",!0)("selection",e.selection)("displayedColumns",u.DdM(5,v))("users",e.users)}}function y(e,t){if(1&e&&(u.TgZ(0,"div",17),u.YNc(1,O,3,3,"app-alert",18),u.YNc(2,C,1,6,"app-users-list",19),u.qZA()),2&e){const e=u.oxw();u.xp6(1),u.Q6J("ngIf",0===e.users.length&&e.firstSearchDone),u.xp6(1),u.Q6J("ngIf",0!==e.users.length)}}let x=(()=>{class e{constructor(e,t,s,a,o,n,l,c,u){this.dialogRef=e,this.data=t,this.authzService=s,this.usersService=a,this.translate=o,this.notificator=n,this.storeService=l,this.route=c,this.router=u,this.selection=new i.Ov(!0,[]),this.users=[],this.firstSearchDone=!1,this.tableId=r.H2,o.get("DIALOGS.ADD_MANAGERS.TITLE").subscribe(e=>this.title=e),o.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 c.NI("",[c.kI.required,c.kI.pattern(".*[\\S]+.*")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.authzService.setRoleWithUserComplementaryObject({role:this.selectedRole,users:this.selection.selected.map(e=>e.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 e=[l.r.USER_DEF_ORGANIZATION,l.r.USER_DEF_PREFERRED_MAIL];e=e.concat(this.storeService.getLoginAttributeNames()),this.usersService.findRichUsersWithAttributes(this.searchCtrl.value,e).subscribe(e=>{this.users=e,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1)}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(a.so),u.Y36(a.WI),u.Y36(n.Ct),u.Y36(n.Fv),u.Y36(d.sK),u.Y36(o.V6),u.Y36(o.d6),u.Y36(h.gz),u.Y36(h.F0))},e.\u0275cmp=u.Xpm({type:e,selectors:[["app-add-manager-dialog"]],decls:32,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"],["mat-flat-button","","color","accent","data-cy","search-manager-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"],["mat-flat-button","","color","accent","data-cy","add-manager-button-dialog",1,"ml-2",3,"disabled","click"],[3,"value"],[1,"mr-auto","ml-auto"],[1,"mt-3"],["alert_type","warn",4,"ngIf"],[3,"tableId","disableRouting","selection","displayedColumns","users",4,"ngIf"],["alert_type","warn"],[3,"tableId","disableRouting","selection","displayedColumns","users"]],template:function(e,t){1&e&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"div",1),u.TgZ(5,"div",2),u.TgZ(6,"mat-form-field",3),u.TgZ(7,"mat-label"),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.TgZ(10,"mat-select",4),u.NdJ("valueChange",function(e){return t.selectedRole=e}),u.YNc(11,Z,3,4,"mat-option",5),u.qZA(),u.qZA(),u.TgZ(12,"mat-form-field",6),u.TgZ(13,"label"),u.TgZ(14,"input",7),u.NdJ("keyup.enter",function(){return t.onSearchByString()}),u.ALo(15,"translate"),u.qZA(),u.qZA(),u.TgZ(16,"mat-error"),u._uU(17),u.ALo(18,"translate"),u.qZA(),u.qZA(),u.qZA(),u.TgZ(19,"button",8),u.NdJ("click",function(){return t.onSearchByString()}),u._uU(20),u.ALo(21,"translate"),u.qZA(),u.TgZ(22,"div",9),u.YNc(23,_,1,0,"mat-spinner",10),u.qZA(),u.YNc(24,y,3,2,"div",11),u.qZA(),u.TgZ(25,"div",12),u.TgZ(26,"button",13),u.NdJ("click",function(){return t.onCancel()}),u._uU(27),u.ALo(28,"translate"),u.qZA(),u.TgZ(29,"button",14),u.NdJ("click",function(){return t.onSubmit()}),u._uU(30),u.ALo(31,"translate"),u.qZA(),u.qZA(),u.qZA()),2&e&&(u.Tol(t.theme),u.xp6(2),u.Oqu(u.lcZ(3,17,"DIALOGS.ADD_MANAGERS.TITLE")),u.xp6(6),u.Oqu(u.lcZ(9,19,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),u.xp6(2),u.Q6J("value",t.selectedRole),u.xp6(1),u.Q6J("ngForOf",t.availableRoles),u.xp6(3),u.s9C("placeholder",u.lcZ(15,21,"DIALOGS.ADD_MANAGERS.DESCRIPTION")),u.Q6J("formControl",t.searchCtrl),u.xp6(3),u.hij(" ",u.lcZ(18,23,"DIALOGS.ADD_MANAGERS.EMPTY_SEARCH_MESSAGE")," "),u.xp6(2),u.Q6J("disabled",t.loading),u.xp6(1),u.hij(" ",u.lcZ(21,25,"DIALOGS.ADD_MANAGERS.SEARCH")," "),u.xp6(3),u.Q6J("ngIf",t.loading),u.xp6(1),u.Q6J("ngIf",null!==t.users&&!t.loading),u.xp6(3),u.hij(" ",u.lcZ(28,27,"DIALOGS.ADD_MANAGERS.CANCEL")," "),u.xp6(2),u.Q6J("disabled",0===t.selection.selected.length||void 0===t.selectedRole||t.loading),u.xp6(1),u.hij(" ",u.lcZ(31,29,"DIALOGS.ADD_MANAGERS.CREATE")," "))},directives:[a.uh,a.xY,g.KE,g.hX,p.gD,m.sg,f.Nt,c.Fj,A.hT,c.JJ,c.oH,g.TO,S.lW,m.O5,a.H8,b.ey,E.$g,R.w,T.C],pipes:[d.X$,I],styles:[".inline-dialog-items[_ngcontent-%COMP%]{display:flex;align-items:flex-end}"]}),e})();var U=s(67033);function N(e,t){1&e&&u._UZ(0,"th",15)}function G(e,t){if(1&e&&(u.TgZ(0,"td",16),u._uU(1),u.qZA()),2&e){const e=t.$implicit;u.xp6(1),u.AsE("",e.firstName," ",e.lastName,"")}}function D(e,t){1&e&&u._UZ(0,"tr",17)}function L(e,t){1&e&&u._UZ(0,"tr",18)}const w=function(e){return{role:e}};function M(e,t){if(1&e&&(u.TgZ(0,"app-alert",19),u._uU(1),u.ALo(2,"translate"),u.ALo(3,"displayedRole"),u.qZA()),2&e){const e=u.oxw(2);u.xp6(1),u.hij(" ",u.xi3(2,1,"DIALOGS.REMOVE_MANAGERS.WARNING_REMOVE_YOURSELF",u.VKq(6,w,u.lcZ(3,4,e.data.role)))," ")}}function Y(e,t){if(1&e&&(u.TgZ(0,"div",6),u.TgZ(1,"p"),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"div",7),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.TgZ(7,"table",8),u.ynx(8,9),u.YNc(9,N,1,0,"th",10),u.YNc(10,G,2,2,"td",11),u.BQk(),u.YNc(11,D,1,0,"tr",12),u.YNc(12,L,1,0,"tr",13),u.qZA(),u.YNc(13,M,4,8,"app-alert",14),u.qZA()),2&e){const e=u.oxw();u.xp6(2),u.hij(" ",u.lcZ(3,6,"DIALOGS.REMOVE_MANAGERS.DESCRIPTION")," "),u.xp6(3),u.hij(" ",u.lcZ(6,8,"DIALOGS.REMOVE_MANAGERS.ASK")," "),u.xp6(2),u.Q6J("dataSource",e.dataSource),u.xp6(4),u.Q6J("matHeaderRowDef",e.displayedColumns),u.xp6(1),u.Q6J("matRowDefColumns",e.displayedColumns),u.xp6(1),u.Q6J("ngIf",e.removeSelf)}}function q(e,t){1&e&&u._UZ(0,"mat-spinner",20)}let J=(()=>{class e{constructor(e,t,s,i,a,o,n){this.dialogRef=e,this.data=t,this.notificator=s,this.translate=i,this.authzService=a,this.store=o,this.authService=n,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new U.by(this.data.managers),this.theme=this.data.theme,this.removeSelf=this.data.managers.map(e=>e.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(e=>e.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_MANAGERS.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(a.so),u.Y36(a.WI),u.Y36(o.V6),u.Y36(d.sK),u.Y36(n.Ct),u.Y36(o.d6),u.Y36(o.x4))},e.\u0275cmp=u.Xpm({type:e,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"],["mat-flat-button","","color","warn","data-cy","remove-manager-button-dialog",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"],["mat-header-row","","class","font-weight-bolder",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(e,t){1&e&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.YNc(4,Y,14,10,"div",1),u.YNc(5,q,1,0,"mat-spinner",2),u.TgZ(6,"div",3),u.TgZ(7,"button",4),u.NdJ("click",function(){return t.onCancel()}),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.TgZ(10,"button",5),u.NdJ("click",function(){return t.onSubmit()}),u._uU(11),u.ALo(12,"translate"),u.qZA(),u.qZA(),u.qZA()),2&e&&(u.Tol(t.theme),u.xp6(2),u.Oqu(u.lcZ(3,9,"DIALOGS.REMOVE_MANAGERS.TITLE")),u.xp6(2),u.Q6J("ngIf",!t.loading),u.xp6(1),u.Q6J("ngIf",t.loading),u.xp6(3),u.hij(" ",u.lcZ(9,11,"DIALOGS.REMOVE_MANAGERS.CANCEL")," "),u.xp6(2),u.Q6J("disabled",t.loading),u.xp6(1),u.hij(" ",u.lcZ(12,13,"DIALOGS.REMOVE_MANAGERS.DELETE")," "))},directives:[a.uh,m.O5,a.H8,S.lW,a.xY,U.BZ,U.w1,U.fO,U.Dz,U.as,U.nj,U.ge,U.ev,U.XQ,U.Gk,R.w,E.$g],pipes:[d.X$,I],styles:[""]}),e})();function k(e,t){1&e&&u._UZ(0,"mat-spinner",6)}function P(e,t){1&e&&u._UZ(0,"th",15)}function Q(e,t){if(1&e&&(u.TgZ(0,"td",16),u._uU(1),u.qZA()),2&e){const e=t.$implicit;u.xp6(1),u.Oqu(e.name)}}function V(e,t){1&e&&u._UZ(0,"tr",17)}function F(e,t){1&e&&u._UZ(0,"tr",18)}function j(e,t){if(1&e&&(u.TgZ(0,"div",7),u.TgZ(1,"p"),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"div",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.TgZ(7,"table",9),u.ynx(8,10),u.YNc(9,P,1,0,"th",11),u.YNc(10,Q,2,1,"td",12),u.BQk(),u.YNc(11,V,1,0,"tr",13),u.YNc(12,F,1,0,"tr",14),u.qZA(),u.qZA()),2&e){const e=u.oxw();u.xp6(2),u.hij(" ",u.lcZ(3,5,"DIALOGS.REMOVE_GROUPS.DESCRIPTION")," "),u.xp6(3),u.hij(" ",u.lcZ(6,7,"DIALOGS.REMOVE_GROUPS.ASK")," "),u.xp6(2),u.Q6J("dataSource",e.dataSource),u.xp6(4),u.Q6J("matHeaderRowDef",e.displayedColumns),u.xp6(1),u.Q6J("matRowDefColumns",e.displayedColumns)}}let H=(()=>{class e{constructor(e,t,s,i,a){this.dialogRef=e,this.data=t,this.notificator=s,this.translate=i,this.authzService=a,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new U.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(e=>e.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_GROUPS.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(a.so),u.Y36(a.WI),u.Y36(o.V6),u.Y36(d.sK),u.Y36(n.Ct))},e.\u0275cmp=u.Xpm({type:e,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"],["mat-flat-button","","color","warn",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"],["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&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.YNc(4,k,1,0,"mat-spinner",1),u.YNc(5,j,13,9,"div",2),u.TgZ(6,"div",3),u.TgZ(7,"button",4),u.NdJ("click",function(){return t.onCancel()}),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.TgZ(10,"button",5),u.NdJ("click",function(){return t.onSubmit()}),u._uU(11),u.ALo(12,"translate"),u.qZA(),u.qZA(),u.qZA()),2&e&&(u.Tol(t.theme),u.xp6(2),u.Oqu(u.lcZ(3,9,"DIALOGS.REMOVE_GROUPS.TITLE")),u.xp6(2),u.Q6J("ngIf",t.loading),u.xp6(1),u.Q6J("ngIf",!t.loading),u.xp6(3),u.hij(" ",u.lcZ(9,11,"DIALOGS.REMOVE_GROUPS.CANCEL")," "),u.xp6(2),u.Q6J("disabled",t.loading),u.xp6(1),u.hij(" ",u.lcZ(12,13,"DIALOGS.REMOVE_GROUPS.DELETE")," "))},directives:[a.uh,m.O5,a.H8,S.lW,E.$g,a.xY,U.BZ,U.w1,U.fO,U.Dz,U.as,U.nj,U.ge,U.ev,U.XQ,U.Gk],pipes:[d.X$],styles:[""]}),e})();var z=s(56238),$=s(79996),B=s(40084),X=s(91058),W=s(78364);function K(e,t){if(1&e&&(u.TgZ(0,"mat-option",17),u._uU(1),u.ALo(2,"displayedRole"),u.qZA()),2&e){const e=t.$implicit;u.Q6J("value",e),u.xp6(1),u.Oqu(u.lcZ(2,2,e))}}function ee(e,t){if(1&e&&(u.TgZ(0,"mat-option",17),u._uU(1),u.qZA()),2&e){const e=t.$implicit;u.Q6J("value",e),u.xp6(1),u.hij(" ",e.name," ")}}function te(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"perun-web-apps-debounce-filter",18),u.NdJ("filter",function(t){return u.CHM(e),u.oxw().applyFilter(t)}),u.ALo(1,"translate"),u.qZA()}2&e&&u.s9C("placeholder",u.lcZ(1,1,"DIALOGS.ADD_GROUPS.FILTER_GROUPS"))}function se(e,t){1&e&&u._UZ(0,"mat-spinner",19)}const ie=function(){return["select","id","name","description"]};function ae(e,t){if(1&e&&(u.TgZ(0,"div",20),u._UZ(1,"perun-web-apps-groups-list",21),u.qZA()),2&e){const e=u.oxw();u.xp6(1),u.Q6J("tableId",e.tableId)("disableRouting",!0)("displayedColumns",u.DdM(7,ie))("selection",e.selection)("filter",e.filterValue)("groups",e.groups)("disableMembers",!1)}}let oe=(()=>{class e{constructor(e,t,s,a,o,n,l,u,d){this.dialogRef=e,this.data=t,this.authzService=s,this.voService=a,this.groupService=o,this.translate=n,this.notificator=l,this.route=u,this.router=d,this.searchString="",this.selection=new i.Ov(!0,[]),this.groups=[],this.vos=[],this.filterValue="",this.myControl=new c.NI,this.firstSearchDone=!1,this.tableId=r.kZ,n.get("DIALOGS.ADD_GROUPS.TITLE").subscribe(e=>this.title=e),n.get("DIALOGS.ADD_GROUPS.SUCCESS").subscribe(e=>this.successMessage=e)}displayFn(e){return e?e.name:null}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,this.authzService.setRoleWithGroupComplementaryObject({role:this.selectedRole,authorizedGroups:this.selection.selected.map(e=>e.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(e=>{this.filteredOptions=this.myControl.valueChanges.pipe((0,z.O)(""),(0,$.U)(e=>this._filter(e))),this.vos=e,this.loading=!1},()=>this.loading=!1)}_filter(e){const t="string"==typeof e?e.toLowerCase():e.name.toLowerCase;return this.vos.filter(e=>e.name.toLowerCase().includes(t))}showVoGroups(e){this.loading=!0,this.groupService.getAllGroups(e.option.value.id).subscribe(e=>{this.groups=e,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}}return e.\u0275fac=function(t){return new(t||e)(u.Y36(a.so),u.Y36(a.WI),u.Y36(n.Ct),u.Y36(n.YF),u.Y36(n.ff),u.Y36(d.sK),u.Y36(o.V6),u.Y36(h.gz),u.Y36(h.F0))},e.\u0275cmp=u.Xpm({type:e,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"],["type","text","aria-label","Assignee","matInput","",3,"placeholder","formControl","matAutocomplete"],[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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"value"],[3,"placeholder","filter"],[1,"mr-auto","ml-auto"],[1,"mt-3"],[3,"tableId","disableRouting","displayedColumns","selection","filter","groups","disableMembers"]],template:function(e,t){if(1&e&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"div",1),u.TgZ(5,"div",2),u.TgZ(6,"mat-form-field",3),u.TgZ(7,"mat-label"),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.TgZ(10,"mat-select",4),u.NdJ("valueChange",function(e){return t.selectedRole=e}),u.YNc(11,K,3,4,"mat-option",5),u.qZA(),u.qZA(),u.TgZ(12,"mat-form-field",6),u.TgZ(13,"mat-label"),u._uU(14),u.ALo(15,"translate"),u.qZA(),u._UZ(16,"input",7),u.ALo(17,"translate"),u.TgZ(18,"mat-autocomplete",8,9),u.NdJ("optionSelected",function(e){return t.showVoGroups(e)}),u.YNc(20,ee,2,2,"mat-option",5),u.ALo(21,"async"),u.qZA(),u.qZA(),u.qZA(),u.YNc(22,te,2,3,"perun-web-apps-debounce-filter",10),u.TgZ(23,"div",11),u.YNc(24,se,1,0,"mat-spinner",12),u.qZA(),u.YNc(25,ae,2,8,"div",13),u.qZA(),u.TgZ(26,"div",14),u.TgZ(27,"button",15),u.NdJ("click",function(){return t.onCancel()}),u._uU(28),u.ALo(29,"translate"),u.qZA(),u.TgZ(30,"button",16),u.NdJ("click",function(){return t.onSubmit()}),u._uU(31),u.ALo(32,"translate"),u.qZA(),u.qZA(),u.qZA()),2&e){const e=u.MAs(19);u.Tol(t.theme),u.xp6(2),u.Oqu(u.lcZ(3,19,"DIALOGS.ADD_GROUPS.TITLE")),u.xp6(6),u.Oqu(u.lcZ(9,21,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),u.xp6(2),u.Q6J("value",t.selectedRole),u.xp6(1),u.Q6J("ngForOf",t.availableRoles),u.xp6(3),u.Oqu(u.lcZ(15,23,"DIALOGS.ADD_GROUPS.SELECT_VO")),u.xp6(2),u.s9C("placeholder",u.lcZ(17,25,"DIALOGS.ADD_GROUPS.SELECT_VO")),u.Q6J("formControl",t.myControl)("matAutocomplete",e),u.xp6(2),u.Q6J("displayWith",t.displayFn),u.xp6(2),u.Q6J("ngForOf",u.lcZ(21,27,t.filteredOptions)),u.xp6(2),u.Q6J("ngIf",null!==t.groups&&t.groups.length>0&&!t.loading),u.xp6(2),u.Q6J("ngIf",t.loading),u.xp6(1),u.Q6J("ngIf",null!==t.groups&&!t.loading),u.xp6(3),u.hij(" ",u.lcZ(29,29,"DIALOGS.ADD_MANAGERS.CANCEL")," "),u.xp6(2),u.Q6J("disabled",0===t.selection.selected.length||t.loading),u.xp6(1),u.hij(" ",u.lcZ(32,31,"DIALOGS.ADD_MANAGERS.CREATE")," ")}},directives:[a.uh,a.xY,g.KE,g.hX,p.gD,m.sg,f.Nt,c.Fj,B.ZL,c.JJ,c.oH,B.XC,m.O5,a.H8,S.lW,b.ey,X.P,E.$g,W.W],pipes:[d.X$,m.Ov,I],styles:[""]}),e})();var ne=s(84140),re=s(24820),le=s(55109),ce=s(59403);function ue(e,t){1&e&&(u._uU(0),u.ALo(1,"translate")),2&e&&u.hij(" ",u.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.USER")," ")}function de(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"button",13),u.NdJ("click",function(){return u.CHM(e),u.oxw(2).addManager()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function he(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"button",14),u.NdJ("click",function(){return u.CHM(e),u.oxw(2).removeManager()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}if(2&e){const e=u.oxw(2);u.Q6J("disabled",0===e.selectionUsers.selected.length),u.xp6(1),u.hij(" ",u.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function ge(e,t){if(1&e&&(u.TgZ(0,"mat-option",15),u._uU(1),u.ALo(2,"displayedRole"),u.qZA()),2&e){const e=t.$implicit;u.Q6J("value",e),u.xp6(1),u.Oqu(u.lcZ(2,2,e))}}function pe(e,t){1&e&&u._UZ(0,"mat-spinner",16)}function me(e,t){if(1&e&&u._UZ(0,"app-users-list",17),2&e){const e=u.oxw(2);u.Q6J("tableId",e.tableId)("users",e.managers)("disableRouting",!e.routeAuth||e.disableRouting)("displayedColumns",e.displayedUserColumns)("selection",e.selectionUsers)("disableSelf",e.disableSelf)}}function fe(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"perun-web-apps-refresh-button",5),u.NdJ("refresh",function(){return u.CHM(e),u.oxw().refreshUsers()}),u.qZA(),u.YNc(1,de,3,3,"button",6),u.YNc(2,he,3,4,"button",7),u.TgZ(3,"mat-form-field",8),u.TgZ(4,"mat-label"),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.TgZ(7,"mat-select",9),u.NdJ("valueChange",function(t){return u.CHM(e),u.oxw().selectedRole=t})("selectionChange",function(){return u.CHM(e),u.oxw().refreshUsers()}),u.YNc(8,ge,3,4,"mat-option",10),u.qZA(),u.qZA(),u.YNc(9,pe,1,0,"mat-spinner",11),u.YNc(10,me,1,6,"app-users-list",12)}if(2&e){const e=u.oxw();u.xp6(1),u.Q6J("ngIf",e.manageAuth&&!e.configMode),u.xp6(1),u.Q6J("ngIf",e.manageAuth&&!e.configMode),u.xp6(3),u.Oqu(u.lcZ(6,7,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),u.xp6(2),u.Q6J("value",e.selectedRole),u.xp6(1),u.Q6J("ngForOf",e.availableRoles),u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading&&e.managers)}}function Ae(e,t){1&e&&(u._uU(0),u.ALo(1,"translate")),2&e&&u.hij(" ",u.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.GROUP")," ")}function Se(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"button",21),u.NdJ("click",function(){return u.CHM(e),u.oxw(2).addGroup()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function be(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"button",22),u.NdJ("click",function(){return u.CHM(e),u.oxw(2).removeGroup()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}if(2&e){const e=u.oxw(2);u.Q6J("disabled",0===e.selectionGroups.selected.length),u.xp6(1),u.hij(" ",u.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function Ee(e,t){if(1&e&&(u.TgZ(0,"mat-option",15),u._uU(1),u.ALo(2,"displayedRole"),u.qZA()),2&e){const e=t.$implicit;u.Q6J("value",e),u.xp6(1),u.Oqu(u.lcZ(2,2,e))}}function Re(e,t){1&e&&u._UZ(0,"mat-spinner",16)}function Te(e,t){if(1&e&&u._UZ(0,"perun-web-apps-groups-list",23),2&e){const e=u.oxw(2);u.Q6J("tableId",e.tableId)("disableRouting",e.disableRouting)("displayedColumns",e.displayedGroupColumns)("groups",e.groups)("selection",e.selectionGroups)("disableMembers",!1)}}function Ie(e,t){if(1&e){const e=u.EpF();u.TgZ(0,"perun-web-apps-refresh-button",5),u.NdJ("refresh",function(){return u.CHM(e),u.oxw().refreshGroups()}),u.qZA(),u.YNc(1,Se,3,3,"button",18),u.YNc(2,be,3,4,"button",19),u.TgZ(3,"mat-form-field",8),u.TgZ(4,"mat-label"),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.TgZ(7,"mat-select",9),u.NdJ("valueChange",function(t){return u.CHM(e),u.oxw().selectedRole=t})("selectionChange",function(){return u.CHM(e),u.oxw().refreshGroups()}),u.YNc(8,Ee,3,4,"mat-option",10),u.qZA(),u.qZA(),u.YNc(9,Re,1,0,"mat-spinner",11),u.YNc(10,Te,1,6,"perun-web-apps-groups-list",20)}if(2&e){const e=u.oxw();u.xp6(1),u.Q6J("ngIf",e.manageAuth&&!e.configMode),u.xp6(1),u.Q6J("ngIf",e.manageAuth&&!e.configMode),u.xp6(3),u.Oqu(u.lcZ(6,7,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),u.xp6(2),u.Q6J("value",e.selectedRole),u.xp6(1),u.Q6J("ngForOf",e.availableRoles),u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading&&e.groups)}}function Ze(e,t){1&e&&(u.TgZ(0,"app-alert",24),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.NO_AVAILABLE_ROLES"),"\n"))}let _e=(()=>{class e{constructor(e,t,s,a,o,n,l){this.dialog=e,this.authzService=t,this.storeService=s,this.guiAuthResolver=a,this.router=o,this.reloadEntityDetail=n,this.route=l,this.groups=null,this.managers=null,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.selectionUsers=new i.Ov(!0,[]),this.selectionGroups=new i.Ov(!0,[]),this.selectedMode="",this.loading=!1,this.tableId=r.HC,this.availableRolesPrivileges=new Map}ngOnInit(){this.loading=!0,this.routeAuth=this.guiAuthResolver.isPerunAdminOrObserver(),this.guiAuthResolver.getRolesAuthorization(this.availableRoles,this.complementaryObject,this.availableRolesPrivileges),this.availableRoles=this.availableRoles.filter(e=>this.availableRolesPrivileges.get(e).readAuth),0!==this.availableRoles.length&&(this.selectedRole=this.availableRoles[0]),this.refreshUsers()}changeRolePrivileges(){this.guiAuthResolver.getRolesAuthorization(this.availableRoles,this.complementaryObject,this.availableRolesPrivileges),this.availableRoles=this.availableRoles.filter(e=>this.availableRolesPrivileges.get(e).readAuth),this.manageAuth=this.availableRolesPrivileges.get(this.selectedRole).manageAuth,this.displayedUserColumns=this.manageAuth?this.displayedUserColumns:this.displayedUserColumns.filter(e=>"select"!==e),this.displayedGroupColumns=this.manageAuth?this.displayedGroupColumns:this.displayedGroupColumns.filter(e=>"select"!==e),this.roleModes=this.availableRolesPrivileges.get(this.selectedRole).modes;let e=!1;for(const t of this.roleModes)if(this.selectedMode===t.toLowerCase()){e=!0;break}e||(this.selectedMode=this.roleModes[0].toLowerCase())}tabChanged(e){this.loading=!0,0===e.index?(this.selectedMode="user",this.refreshUsers()):(this.selectedMode="group",this.refreshGroups())}refreshUsers(){this.loading=!0,this.changeRolePrivileges();let e=[l.r.USER_DEF_ORGANIZATION,l.r.USER_DEF_PREFERRED_MAIL];e=e.concat(this.storeService.getLoginAttributeNames()),this.authzService.getAuthzRichAdmins(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType,e,!1,!0).subscribe(e=>{this.managers=e,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(e=>{this.groups=e,this.selectionGroups.clear(),this.loading=!1},()=>{this.loading=!1})}addManager(){const e=(0,ne.kZ)();e.width="1000px",e.data={complementaryObject:this.complementaryObject,theme:this.theme,availableRoles:this.availableRoles,selectedRole:this.selectedRole},this.dialog.open(x,e).afterClosed().subscribe(e=>{e&&this.refreshUsers()})}removeManager(){const e=(0,ne.kZ)();e.width="450px",e.data={managers:this.selectionUsers.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(J,e).afterClosed().subscribe(e=>{e&&(this.guiAuthResolver.isManagerPagePrivileged(this.complementaryObject)?(this.reloadEntityDetail.reloadEntityDetail(),this.refreshUsers()):this.redirectToAuthRoute())})}removeGroup(){const e=(0,ne.kZ)();e.width="450px",e.data={groups:this.selectionGroups.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(H,e).afterClosed().subscribe(e=>{e&&(this.guiAuthResolver.isManagerPagePrivileged(this.complementaryObject)?(this.reloadEntityDetail.reloadEntityDetail(),this.refreshGroups()):this.redirectToAuthRoute())})}addGroup(){const e=(0,ne.kZ)();e.width="1000px",e.data={complementaryObject:this.complementaryObject,availableRoles:this.availableRoles,theme:this.theme,selectedRole:this.selectedRole},this.dialog.open(oe,e).afterClosed().subscribe(e=>{e&&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 e.\u0275fac=function(t){return new(t||e)(u.Y36(a.uw),u.Y36(n.Ct),u.Y36(o.d6),u.Y36(o.x4),u.Y36(h.F0),u.Y36(re.G),u.Y36(h.gz))},e.\u0275cmp=u.Xpm({type:e,selectors:[["app-managers-page"]],hostVars:2,hostBindings:function(e,t){2&e&&u.ekj("router-component",t.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"],["mat-flat-button","","color","accent","class","mr-2 mt-2 action-button","data-cy","add-manager-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2 mt-2","data-cy","remove-manager-button",3,"disabled","click",4,"ngIf"],[1,"mr-2","mt-2"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","users","disableRouting","displayedColumns","selection","disableSelf",4,"ngIf"],["mat-flat-button","","color","accent","data-cy","add-manager-button",1,"mr-2","mt-2","action-button",3,"click"],["mat-flat-button","","color","warn","data-cy","remove-manager-button",1,"mr-2","mt-2",3,"disabled","click"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"tableId","users","disableRouting","displayedColumns","selection","disableSelf"],["mat-flat-button","","color","accent","class","mr-2 mt-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2 mt-2",3,"disabled","click",4,"ngIf"],[3,"tableId","disableRouting","displayedColumns","groups","selection","disableMembers",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","mt-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2","mt-2",3,"disabled","click"],[3,"tableId","disableRouting","displayedColumns","groups","selection","disableMembers"],["alert_type","warn"]],template:function(e,t){1&e&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.TgZ(3,"mat-tab-group",1),u.NdJ("selectedTabChange",function(e){return t.tabChanged(e)}),u.TgZ(4,"mat-tab"),u.YNc(5,ue,2,3,"ng-template",2),u.YNc(6,fe,11,9,"ng-template",3),u.qZA(),u.TgZ(7,"mat-tab"),u.YNc(8,Ae,2,3,"ng-template",2),u.YNc(9,Ie,11,9,"ng-template",3),u.qZA(),u.qZA(),u.YNc(10,Ze,3,3,"app-alert",4)),2&e&&(u.xp6(1),u.hij(" ",u.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.TITLE"),"\n"),u.xp6(9),u.Q6J("ngIf",0===t.availableRoles.length))},directives:[le.SP,le.uX,le.uD,le.Vc,m.O5,ce.t,g.KE,g.hX,p.gD,m.sg,S.lW,b.ey,E.$g,T.C,W.W,R.w],pipes:[d.X$,I],styles:[""]}),e})()},4196:function(e,t,s){"use strict";s.d(t,{o:function(){return M}});var i=s(58623),a=s(67033),o=s(4230),n=s(68416),r=s(65249),l=s(84140),c=s(31572),u=s(48160),d=s(82819),h=s(61511),g=s(29236),p=s(66283),m=s(80340),f=s(16073),A=s(15980),S=s(36922),b=s(43691),E=s(39571);function R(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"th",16),c.TgZ(1,"mat-checkbox",17),c.NdJ("change",function(t){c.CHM(e);const s=c.oxw();return t?s.masterToggle():null}),c.qZA(),c.qZA()}if(2&e){const e=c.oxw();c.xp6(1),c.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function T(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"td",18),c.TgZ(1,"mat-checkbox",19),c.NdJ("change",function(t){const s=c.CHM(e).$implicit,i=c.oxw();return t?i.selection.toggle(s):null})("click",function(e){return e.stopPropagation()}),c.qZA(),c.qZA()}if(2&e){const e=t.$implicit,s=c.oxw();c.xp6(1),c.Q6J("aria-label",s.checkboxLabel(e))("checked",s.selection.isSelected(e))}}function I(e,t){1&e&&(c.TgZ(0,"th",20),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&e&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_ID")," "))}function Z(e,t){if(1&e&&(c.TgZ(0,"td",21),c._uU(1),c.qZA()),2&e){const e=t.$implicit;c.xp6(1),c.Oqu(e.id)}}function _(e,t){1&e&&(c.TgZ(0,"th",22),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&e&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_NAME")," "))}function O(e,t){if(1&e&&(c.TgZ(0,"div"),c._uU(1),c.qZA()),2&e){const e=c.oxw().$implicit;c.xp6(1),c.hij(" ",e.tagName," ")}}function v(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"mat-form-field"),c.TgZ(2,"input",25),c.NdJ("ngModelChange",function(t){return c.CHM(e),c.oxw().$implicit.tagName=t}),c.qZA(),c.qZA(),c.qZA()}if(2&e){const e=c.oxw().$implicit;c.xp6(2),c.Q6J("ngModel",e.tagName)}}function C(e,t){if(1&e&&(c.TgZ(0,"td",23),c.YNc(1,O,2,1,"div",24),c.YNc(2,v,3,1,"div",24),c.qZA()),2&e){const e=t.$implicit,s=c.oxw();c.xp6(1),c.Q6J("ngIf",!s.isChanging.isSelected(e)),c.xp6(1),c.Q6J("ngIf",s.isChanging.isSelected(e))}}function y(e,t){1&e&&c._UZ(0,"th",22)}function x(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"button",28),c.NdJ("click",function(){c.CHM(e);const t=c.oxw().$implicit;return c.oxw().edit(t)}),c.ALo(1,"translate"),c.TgZ(2,"mat-icon"),c._uU(3,"edit"),c.qZA(),c.qZA()}2&e&&c.s9C("matTooltip",c.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.EDIT_BUTTON"))}function U(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"button",28),c.NdJ("click",function(){c.CHM(e);const t=c.oxw().$implicit;return c.oxw().save(t)}),c.ALo(1,"translate"),c.TgZ(2,"mat-icon"),c._uU(3,"save"),c.qZA(),c.qZA()}2&e&&c.s9C("matTooltip",c.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.SAVE_BUTTON"))}function N(e,t){if(1&e&&(c.TgZ(0,"td",23),c.TgZ(1,"div",26),c.YNc(2,x,4,3,"button",27),c.YNc(3,U,4,3,"button",27),c.qZA(),c.qZA()),2&e){const e=t.$implicit,s=c.oxw();c.xp6(2),c.Q6J("ngIf",!s.isChanging.isSelected(e)),c.xp6(1),c.Q6J("ngIf",s.isChanging.isSelected(e))}}function G(e,t){1&e&&c._UZ(0,"tr",29)}function D(e,t){1&e&&c._UZ(0,"tr",30)}function L(e,t){if(1&e&&(c.TgZ(0,"app-alert",31),c._uU(1),c.ALo(2,"translate"),c.ALo(3,"translate"),c.qZA()),2&e){const e=c.oxw();c.xp6(1),c.hij(" ","vo"===e.entity?c.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.NO_TAGS"):c.lcZ(3,3,"RESOURCE_DETAIL.TAGS.NO_TAGS"),"\n")}}function w(e,t){1&e&&(c.TgZ(0,"app-alert",31),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&e&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let M=(()=>{class e{constructor(e,t,s,i,a){this.resourceManager=e,this.notificator=t,this.translator=s,this.authResolver=i,this.tableCheckbox=a,this.resourceTags=[],this.selection=new o.Ov(!0,[]),this.displayedColumns=["select","id","name","edit"],this.isChanging=new o.Ov(!0,[]),this.pageSizeOptions=l.f7}set matSort(e){this.sort=e,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new a.by(this.resourceTags),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return e.tagName;default:return""}}exportData(e){(0,l.O6)((0,l.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>(0,l.Sd)(e,t,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(e,t)=>(0,l.pR)(e,t,this.getDataForColumn,this),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(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}save(e){this.resourceManager.updateResourceTag({resourceTag:e}).subscribe(()=>{this.translator.get("SHARED.COMPONENTS.RESOURCES_TAGS_LIST.EDIT_SUCCESS").subscribe(e=>{this.notificator.showSuccess(e)}),this.isChanging.deselect(e)})}edit(e){this.isChanging.select(e)}}return e.\u0275fac=function(t){return new(t||e)(c.Y36(r.xk),c.Y36(n.V6),c.Y36(u.sK),c.Y36(n.x4),c.Y36(n.UA))},e.\u0275cmp=c.Xpm({type:e,selectors:[["app-resources-tags-list"]],viewQuery:function(e,t){if(1&e&&(c.Gf(i.YE,7),c.Gf(l.l9,7)),2&e){let e;c.iGM(e=c.CRH())&&(t.matSort=e.first),c.iGM(e=c.CRH())&&(t.child=e.first)}},inputs:{resourceTags:"resourceTags",filterValue:"filterValue",selection:"selection",tableId:"tableId",displayedColumns:"displayedColumns",entity:"entity"},features:[c.TTD],decls:19,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-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(e,t){1&e&&(c.TgZ(0,"div",0),c.TgZ(1,"perun-web-apps-table-wrapper",1),c.NdJ("exportData",function(e){return t.exportData(e)}),c.TgZ(2,"table",2),c.ynx(3,3),c.YNc(4,R,2,3,"th",4),c.YNc(5,T,2,2,"td",5),c.BQk(),c.ynx(6,6),c.YNc(7,I,3,3,"th",7),c.YNc(8,Z,2,1,"td",8),c.BQk(),c.ynx(9,9),c.YNc(10,_,3,3,"th",10),c.YNc(11,C,3,2,"td",11),c.BQk(),c.ynx(12,12),c.YNc(13,y,1,0,"th",10),c.YNc(14,N,4,2,"td",11),c.BQk(),c.YNc(15,G,1,0,"tr",13),c.YNc(16,D,1,0,"tr",14),c.qZA(),c.qZA(),c.qZA(),c.YNc(17,L,4,5,"app-alert",15),c.YNc(18,w,3,3,"app-alert",15)),2&e&&(c.Q6J("hidden",0===t.resourceTags.length||0===t.dataSource.filteredData.length),c.xp6(1),c.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),c.xp6(1),c.Q6J("dataSource",t.dataSource),c.xp6(13),c.Q6J("matHeaderRowDef",t.displayedColumns),c.xp6(1),c.Q6J("matRowDefColumns",t.displayedColumns),c.xp6(1),c.Q6J("ngIf",0===t.resourceTags.length),c.xp6(1),c.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.resourceTags.length))},directives:[d.l,a.BZ,i.YE,a.w1,a.fO,a.Dz,a.as,a.nj,h.O5,a.ge,g.oG,a.ev,i.nU,p.KE,m.Nt,f.Fj,f.JJ,f.On,A.lW,S.gM,b.Hw,a.XQ,a.Gk,E.w],pipes:[u.X$],styles:[""]}),e})()},65267:function(e,t,s){"use strict";s.d(t,{F:function(){return n}});var i=s(31572),a=s(44973),o=s(48160);let n=(()=>{class e{constructor(){this.servicePackages=[],this.selectedPackage=null,this.multiple=!1,this.disableAutoSelect=!1,this.theme="",this.packageSelected=new i.vpe,this.nameFunction=e=>e.name,this.shortNameFunction=e=>e.description,this.searchFunction=e=>e.name+e.description}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.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(e,t){1&e&&(i.TgZ(0,"perun-web-apps-entity-search-select",0),i.NdJ("entitySelected",function(e){return t.packageSelected.emit(e)}),i.ALo(1,"translate"),i.ALo(2,"translate"),i.ALo(3,"translate"),i.qZA()),2&e&&i.Q6J("entities",t.servicePackages)("entity",t.selectedPackage)("multiple",t.multiple)("disableAutoSelect",t.disableAutoSelect)("searchFunction",t.searchFunction)("mainTextFunction",t.nameFunction)("secondaryTextFunction",t.shortNameFunction)("selectPlaceholder",i.lcZ(1,11,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.SELECT_PACKAGE"))("findPlaceholder",i.lcZ(2,13,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.FIND_PACKAGE"))("noEntriesText",i.lcZ(3,15,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.NO_PACKAGE_FOUND"))("theme",t.theme)},directives:[a.i],pipes:[o.X$],styles:[""]}),e})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/827-es5.0e18eea6844f0fc345dc.js b/dist/apps/admin-gui/827-es5.0e18eea6844f0fc345dc.js deleted file mode 100644 index 1d982dc59..000000000 --- a/dist/apps/admin-gui/827-es5.0e18eea6844f0fc345dc.js +++ /dev/null @@ -1 +0,0 @@ -!function(){function e(e,i){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,i){if(!e)return;if("string"==typeof e)return t(e,i);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t(e,i)}(e))||i&&e&&"number"==typeof e.length){n&&(e=n);var a=0,s=function(){};return{s:s,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,r=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return r=e.done,e},e:function(e){l=!0,o=e},f:function(){try{r||null==n.return||n.return()}finally{if(l)throw o}}}}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i_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()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Y36(L.gz),h.Y36(o.xk),h.Y36(u.uw),h.Y36(d.x4),h.Y36(d.fb))},e.\u0275cmp=h.Xpm({type:e,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,"tableId","services","selection","filterValue","displayedColumns","disableRouting",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,"tableId","services","selection","filterValue","displayedColumns","disableRouting"]],template:function(e,t){1&e&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"perun-web-apps-refresh-button",1),h.NdJ("refresh",function(){return t.loadAllServices()}),h.qZA(),h.YNc(4,M,3,3,"button",2),h.YNc(5,Y,3,4,"button",3),h.TgZ(6,"perun-web-apps-immediate-filter",4),h.NdJ("filter",function(e){return t.applyFilter(e)}),h.qZA(),h.YNc(7,q,1,0,"mat-spinner",5),h.YNc(8,J,1,6,"app-services-list",6)),2&e&&(h.xp6(1),h.Oqu(h.lcZ(2,6,"RESOURCE_DETAIL.ASSIGNED_SERVICES.TITLE")),h.xp6(3),h.Q6J("ngIf",t.assignServiceAuth),h.xp6(1),h.Q6J("ngIf",t.removeServiceAuth),h.xp6(1),h.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_SERVICES.FILTER_SERVICES"),h.xp6(1),h.Q6J("ngIf",t.loading),h.xp6(1),h.Q6J("ngIf",!t.loading))},directives:[k.t,p.O5,w.L,f.lW,m.$g,S.Q],pipes:[g.X$],styles:[""]}),e}()},79472:function(e,t,n){"use strict";n.d(t,{X:function(){return E}});var s=n(68416),o=n(65249),r=n(31572),l=n(55109),c=n(61511),u=n(541),d=n(3417),h=n(48160);function g(e,t){1&e&&(r._uU(0),r.ALo(1,"translate")),2&e&&r.hij(" ",r.lcZ(1,1,"RESOURCE_DETAIL.ENTITY")," ")}function p(e,t){if(1&e&&r._UZ(0,"app-one-entity-attribute-page",4),2&e){var i=r.oxw();r.Q6J("entity","resource")("entityId",i.resource.id)}}function f(e,t){1&e&&(r._uU(0),r.ALo(1,"translate"),r.ALo(2,"translate")),2&e&&r.AsE(" ",r.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",r.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function m(e,t){if(1&e&&r._UZ(0,"app-two-entity-attribute-page",5),2&e){var i=r.oxw(2);r.Q6J("firstEntity","resource")("firstEntityId",i.resource.id)("secondEntity","member")}}function A(e,t){1&e&&(r.TgZ(0,"mat-tab"),r.YNc(1,f,3,6,"ng-template",1),r.YNc(2,m,1,3,"ng-template",2),r.qZA())}function v(e,t){1&e&&(r._uU(0),r.ALo(1,"translate"),r.ALo(2,"translate")),2&e&&r.AsE(" ",r.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",r.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function S(e,t){if(1&e&&r._UZ(0,"app-two-entity-attribute-page",5),2&e){var i=r.oxw(2);r.Q6J("firstEntity","resource")("firstEntityId",i.resource.id)("secondEntity","group")}}function b(e,t){1&e&&(r.TgZ(0,"mat-tab"),r.YNc(1,v,3,6,"ng-template",1),r.YNc(2,S,1,3,"ng-template",2),r.qZA())}var E=function(){var e=function(){function e(t,n,a){i(this,e),this.authResolver=t,this.resourceManager=n,this.entityStorageService=a}return a(e,[{key:"ngOnInit",value:function(){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])}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(s.x4),r.Y36(o.xk),r.Y36(s.fb))},e.\u0275cmp=r.Xpm({type:e,selectors:[["app-resource-attributes"]],hostVars:2,hostBindings:function(e,t){2&e&&r.ekj("router-component",t.true)},decls:10,vars:5,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,t){1&e&&(r.TgZ(0,"div"),r.TgZ(1,"h1",0),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.TgZ(4,"mat-tab-group"),r.TgZ(5,"mat-tab"),r.YNc(6,g,2,3,"ng-template",1),r.YNc(7,p,1,2,"ng-template",2),r.qZA(),r.YNc(8,A,3,0,"mat-tab",3),r.YNc(9,b,3,0,"mat-tab",3),r.qZA(),r.qZA()),2&e&&(r.xp6(2),r.Oqu(r.lcZ(3,3,"RESOURCE_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),r.xp6(6),r.Q6J("ngIf",t.resourceMemberAttAuth),r.xp6(1),r.Q6J("ngIf",t.resourceGroupAttAuth))},directives:[l.SP,l.uX,l.uD,l.Vc,c.O5,u.t,d.Y],pipes:[h.X$],styles:[""]}),e}()},72920:function(e,t,n){"use strict";n.d(t,{b:function(){return M}});var s=n(17),o=n(75585),r=n(65249),l=n(84140),c=n(68416),u=n(22280),d=n(6527),h=n(95909),g=n(31572),p=n(57629),f=n(48958),m=n(84608),A=n(24820),v=n(66297),S=n(61511),b=n(67806),E=n(43691),R=n(36922),T=n(21575),I=n(15980),Z=n(48160);function _(e,t){1&e&&g._UZ(0,"mat-spinner",3)}function O(e,t){if(1&e){var i=g.EpF();g.TgZ(0,"button",15),g.NdJ("click",function(){return g.CHM(i),g.oxw(2).editResource()}),g.TgZ(1,"mat-icon"),g._uU(2,"edit"),g.qZA(),g.qZA()}}function y(e,t){if(1&e){var i=g.EpF();g.TgZ(0,"button",16),g.NdJ("click",function(){return g.CHM(i),g.oxw(2).deleteResource()}),g.TgZ(1,"mat-icon"),g._uU(2,"delete_forever"),g.qZA(),g.qZA()}}var C=function(e){return["/organizations",e]};function x(e,t){if(1&e&&(g.TgZ(0,"a",8),g._uU(1),g.qZA()),2&e){var i=g.oxw(2);g.Q6J("routerLink",g.VKq(2,C,i.resource.vo.id)),g.xp6(1),g.Oqu(i.resource.vo.name)}}function U(e,t){if(1&e&&(g.TgZ(0,"span"),g._uU(1),g.qZA()),2&e){var i=g.oxw(2);g.xp6(1),g.hij(" ",i.resource.vo.name," ")}}var N=function(e){return["/facilities",e]};function G(e,t){if(1&e&&(g.TgZ(0,"a",8),g._uU(1),g.qZA()),2&e){var i=g.oxw(2);g.Q6J("routerLink",g.VKq(2,N,i.resource.facilityId)),g.xp6(1),g.Oqu(i.resource.facility.name)}}function D(e,t){if(1&e&&(g.TgZ(0,"span"),g._uU(1),g.qZA()),2&e){var i=g.oxw(2);g.xp6(1),g.hij(" ",i.resource.facility.name," ")}}var L=function(){return{color:"black"}},k=function(e){return[e]};function w(e,t){if(1&e&&(g.TgZ(0,"div"),g.TgZ(1,"div",4),g._UZ(2,"mat-icon",5),g.ALo(3,"translate"),g.TgZ(4,"div",6),g.TgZ(5,"div",7),g.TgZ(6,"a",8),g._uU(7),g.qZA(),g.TgZ(8,"span",9),g._uU(9),g.qZA(),g.YNc(10,O,3,0,"button",10),g.YNc(11,y,3,0,"button",11),g.qZA(),g.TgZ(12,"div"),g._uU(13),g.ALo(14,"translate"),g.qZA(),g.TgZ(15,"span",12),g._uU(16),g.ALo(17,"translate"),g.ALo(18,"translate"),g.YNc(19,x,2,4,"a",13),g.YNc(20,U,2,1,"span",2),g._uU(21),g.ALo(22,"translate"),g.YNc(23,G,2,4,"a",14),g.YNc(24,D,2,1,"span",2),g._uU(25),g.ALo(26,"translate"),g.qZA(),g.qZA(),g.qZA(),g._UZ(27,"app-animated-router-outlet"),g.qZA()),2&e){var i=g.oxw();g.xp6(2),g.s9C("matTooltip",g.lcZ(3,20,"RESOURCE_DETAIL.ENTITY")),g.Q6J("ngStyle",g.DdM(32,L)),g.xp6(4),g.Q6J("routerLink",g.VKq(33,k,i.baseUrl)),g.xp6(1),g.hij(" ",i.resource.name," "),g.xp6(2),g.hij(" \xa0#",i.resource.id," "),g.xp6(1),g.Q6J("ngIf",i.editResourceAuth),g.xp6(1),g.Q6J("ngIf",i.deleteAuth),g.xp6(2),g.AsE(" ",g.lcZ(14,22,"RESOURCE_DETAIL.UUID"),": ",i.resource.uuid," "),g.xp6(3),g.AsE(" ",g.lcZ(17,24,"RESOURCE_DETAIL.ENTITY"),", ",g.lcZ(18,26,"RESOURCE_DETAIL.VO"),": "),g.xp6(3),g.Q6J("ngIf",i.voLinkAuth),g.xp6(1),g.Q6J("ngIf",!i.voLinkAuth),g.xp6(1),g.AsE(" #",i.resource.voId,", ",g.lcZ(22,28,"RESOURCE_DETAIL.FACILITY"),": "),g.xp6(2),g.Q6J("ngIf",i.facilityLinkAuth),g.xp6(1),g.Q6J("ngIf",!i.facilityLinkAuth),g.xp6(1),g.lnq(" #",i.resource.facilityId,", ",g.lcZ(26,30,"RESOURCE_DETAIL.DESCRIPTION"),": ",i.resource.description," ")}}var M=function(){var e=function(){function e(t,n,a,s,o,r,l,c,u,d,h){i(this,e),this.route=t,this.facilityManager=n,this.vosManagerService=a,this.resourcesManager=s,this.sideMenuService=o,this.sideMenuItemService=r,this.dialog=l,this.guiAuthResolver=c,this.router=u,this.entityStorageService=d,this.reloadEntityDetail=h,this.underVoUrl=!1,this.deleteAuth=!1,this.baseUrl="",this.loading=!1}return a(e,[{key:"ngOnInit",value:function(){var e=this;this.reloadData(),this.reloadEntityDetail.entityDetailChange.subscribe(function(){e.reloadData()})}},{key:"reloadData",value:function(){var e=this;this.loading=!0,this.route.params.subscribe(function(t){e.resourcesManager.getRichResourceById(t.resourceId).subscribe(function(t){e.resource=t,e.entityStorageService.setEntity({id:t.id,voId:t.voId,facilityId:t.facilityId,beanName:"Resource"}),e.setAuth(),"facilities"===e.route.parent.snapshot.url[0].path?(e.baseUrl=(new u.r5).transform(t,!1),e.facilityManager.getFacilityById(t.facilityId).subscribe(function(t){e.facility=t,e.setMenuItems(),e.loading=!1},function(){return e.loading=!1})):(e.baseUrl=(new u.r5).transform(t,!0),e.vosManagerService.getVoById(t.voId).subscribe(function(t){e.vo=t,e.underVoUrl=!0,e.setMenuItems(),e.loading=!1},function(){return e.loading=!1})),(0,l.sF)("resources",e.resource)})})}},{key:"setMenuItems",value:function(){var e,t=this.sideMenuItemService.parseResource(this.resource,this.underVoUrl);e=this.underVoUrl?this.sideMenuItemService.parseVo(this.vo):this.sideMenuItemService.parseFacility(this.facility),this.sideMenuService.setAccessMenuItems([e,t])}},{key:"setAuth",value:function(){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])}},{key:"editResource",value:function(){var e,t=this;this.resourcesManager.getResourceById(this.resource.id).subscribe(function(i){e=i;var n=(0,l.kZ)();n.width="450px",n.data={theme:"resource-theme",resource:e,dialogType:d.Eg.RESOURCE},t.dialog.open(d.rd,n).afterClosed().subscribe(function(e){e&&t.resourcesManager.getRichResourceById(t.resource.id).subscribe(function(e){t.resource=e,t.setMenuItems()})})})}},{key:"deleteResource",value:function(){var e=this,t=(0,l.kZ)();t.width="500px",t.data={theme:"resource-theme",resources:[this.resource]},this.dialog.open(h.f,t).afterClosed().subscribe(function(t){t&&e.router.navigate(["../"],{relativeTo:e.route})})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(g.Y36(p.gz),g.Y36(r.IQ),g.Y36(r.YF),g.Y36(r.xk),g.Y36(f.D),g.Y36(o.V),g.Y36(m.uw),g.Y36(c.x4),g.Y36(p.F0),g.Y36(c.fb),g.Y36(A.G))},e.\u0275cmp=g.Xpm({type:e,selectors:[["app-resource-detail-page"]],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"],["mat-icon-button","","aria-label","Edit resource",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"],["mat-icon-button","","aria-label","Edit resource",3,"click"],["mat-icon-button","",3,"click"]],template:function(e,t){1&e&&(g.TgZ(0,"div",0),g._UZ(1,"perun-web-apps-back-button"),g.YNc(2,_,1,0,"mat-spinner",1),g.YNc(3,w,28,35,"div",2),g.qZA()),2&e&&(g.xp6(2),g.Q6J("ngIf",t.loading),g.xp6(1),g.Q6J("ngIf",!t.loading&&void 0!==t.resource))},directives:[v.W,S.O5,b.$g,E.Hw,R.gM,S.PC,p.yS,T.A,I.lW],pipes:[Z.X$],styles:[".break-line[_ngcontent-%COMP%]{display:inline-block}"],data:{animation:[s.Ji]}}),e}()},42473:function(t,n,s){"use strict";s.d(n,{K:function(){return X}});var o=s(65249),r=s(4230),l=s(84608),c=s(67033),u=s(68416),d=s(31572),h=s(48160),g=s(61511),p=s(15980),f=s(67806);function m(e,t){1&e&&d._UZ(0,"mat-spinner",6)}function A(e,t){1&e&&d._UZ(0,"th",15)}function v(e,t){if(1&e&&(d.TgZ(0,"td",16),d._uU(1),d.qZA()),2&e){var i=t.$implicit;d.xp6(1),d.hij(" ",i.name," ")}}function S(e,t){1&e&&d._UZ(0,"tr",17)}function b(e,t){1&e&&d._UZ(0,"tr",18)}function E(e,t){if(1&e&&(d.TgZ(0,"div",7),d.TgZ(1,"p"),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"div",8),d._uU(5),d.ALo(6,"translate"),d.qZA(),d.TgZ(7,"table",9),d.ynx(8,10),d.YNc(9,A,1,0,"th",11),d.YNc(10,v,2,1,"td",12),d.BQk(),d.YNc(11,S,1,0,"tr",13),d.YNc(12,b,1,0,"tr",14),d.qZA(),d.qZA()),2&e){var i=d.oxw();d.xp6(2),d.hij(" ",d.lcZ(3,5,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DESCRIPTION")," "),d.xp6(3),d.hij(" ",d.lcZ(6,7,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.ASK")," "),d.xp6(2),d.Q6J("dataSource",i.dataSource),d.xp6(4),d.Q6J("matHeaderRowDef",i.displayedColumns),d.xp6(1),d.Q6J("matRowDefColumns",i.displayedColumns)}}var R=function(){var t=function(){function t(e,n,a,s,o){i(this,t),this.dialogRef=e,this.data=n,this.notificator=a,this.translate=s,this.resourceManager=o,this.displayedColumns=["name"],this.loading=!1}return a(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new c.by(this.data.groups)}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var t,i=this,n=[],a=e(this.data.groups);try{for(a.s();!(t=a.n()).done;){var s=t.value;n.push(s.id)}}catch(o){a.e(o)}finally{a.f()}this.loading=!0,this.resourceManager.removeGroupsFromResource(n,this.data.resourceId).subscribe(function(){i.translate.get("DIALOGS.REMOVE_GROUP_FROM_RESOURCE.SUCCESS").subscribe(function(e){i.notificator.showSuccess(e),i.dialogRef.close(!0)})},function(){return i.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(d.Y36(l.so),d.Y36(l.WI),d.Y36(u.V6),d.Y36(h.sK),d.Y36(o.xk))},t.\u0275cmp=d.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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&&(d.TgZ(0,"div"),d.TgZ(1,"h1",0),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.YNc(4,m,1,0,"mat-spinner",1),d.YNc(5,E,13,9,"div",2),d.TgZ(6,"div",3),d.TgZ(7,"button",4),d.NdJ("click",function(){return t.onCancel()}),d._uU(8),d.ALo(9,"translate"),d.qZA(),d.TgZ(10,"button",5),d.NdJ("click",function(){return t.onSubmit()}),d._uU(11),d.ALo(12,"translate"),d.qZA(),d.qZA(),d.qZA()),2&e&&(d.Tol(t.theme),d.xp6(2),d.Oqu(d.lcZ(3,9,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.TITLE")),d.xp6(2),d.Q6J("ngIf",t.loading),d.xp6(1),d.Q6J("ngIf",!t.loading),d.xp6(3),d.hij(" ",d.lcZ(9,11,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.CANCEL")," "),d.xp6(2),d.Q6J("disabled",t.loading),d.xp6(1),d.hij(" ",d.lcZ(12,13,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DELETE")," "))},directives:[l.uh,g.O5,l.H8,p.lW,f.$g,l.xY,c.BZ,c.w1,c.fO,c.Dz,c.as,c.nj,c.ge,c.ev,c.XQ,c.Gk],pipes:[h.X$],styles:[""]}),t}(),T=s(60611),I=s(70663),Z=s(91058),_=s(78364),O=s(27521),y=s(16073),C=["stepper"];function x(e,t){1&e&&d._UZ(0,"mat-spinner",4)}function U(e,t){1&e&&(d._uU(0),d.ALo(1,"translate")),2&e&&d.Oqu(d.lcZ(1,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.GROUPS"))}function N(e,t){1&e&&(d._uU(0),d.ALo(1,"translate")),2&e&&d.Oqu(d.lcZ(1,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.OPTIONS"))}var G=function(){return["select","id","name","description"]};function D(e,t){if(1&e){var i=d.EpF();d.TgZ(0,"div",5),d.TgZ(1,"mat-stepper",6,7),d.TgZ(3,"mat-step",8),d.YNc(4,U,2,3,"ng-template",9),d.TgZ(5,"perun-web-apps-debounce-filter",10),d.NdJ("filter",function(e){return d.CHM(i),d.oxw().applyFilter(e)}),d.ALo(6,"translate"),d.qZA(),d._UZ(7,"perun-web-apps-groups-list",11),d.qZA(),d.TgZ(8,"mat-step"),d.YNc(9,N,2,3,"ng-template",9),d.TgZ(10,"mat-slide-toggle",12),d.NdJ("toggleChange",function(){return d.CHM(i),d.oxw().changeSubgroupsMessage()})("ngModelChange",function(e){return d.CHM(i),d.oxw().autoAssignSubgroups=e}),d._uU(11),d.ALo(12,"translate"),d.qZA(),d.TgZ(13,"div",13),d._UZ(14,"i",14),d.qZA(),d.TgZ(15,"mat-slide-toggle",12),d.NdJ("toggleChange",function(){return d.CHM(i),d.oxw().changeInactiveMessage()})("ngModelChange",function(e){return d.CHM(i),d.oxw().asActive=e}),d._uU(16),d.ALo(17,"translate"),d.qZA(),d.TgZ(18,"div",13),d._uU(19),d.qZA(),d.TgZ(20,"mat-slide-toggle",12),d.NdJ("toggleChange",function(){return d.CHM(i),d.oxw().changeAsyncMessage()})("ngModelChange",function(e){return d.CHM(i),d.oxw().async=e}),d._uU(21),d.ALo(22,"translate"),d.qZA(),d.TgZ(23,"div",13),d._uU(24),d.qZA(),d.qZA(),d.qZA(),d.qZA()}if(2&e){var n=d.oxw();d.xp6(1),d.Q6J("linear",!0),d.xp6(2),d.Q6J("completed",0!==n.selection.selected.length&&n.canAddGroups()),d.xp6(2),d.s9C("placeholder",d.lcZ(6,19,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.FILTER_DESCRIPTION")),d.xp6(2),d.Q6J("tableId",n.tableId)("groups",n.unAssignedGroups)("selection",n.selection)("filter",n.filterValue)("displayedColumns",d.DdM(27,G))("disableRouting",!0)("disableMembers",!1),d.xp6(3),d.Q6J("ngModel",n.autoAssignSubgroups),d.xp6(1),d.hij(" ",d.lcZ(12,21,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS")," "),d.xp6(3),d.Q6J("innerHTML",n.autoAssignHint,d.oJD),d.xp6(1),d.Q6J("ngModel",n.asActive),d.xp6(1),d.hij(" ",d.lcZ(17,23,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AS_ACTIVE")," "),d.xp6(3),d.hij(" ",n.asActiveHint," "),d.xp6(1),d.Q6J("ngModel",n.async),d.xp6(1),d.hij(" ",d.lcZ(22,25,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_OPT")," "),d.xp6(3),d.hij(" ",n.asyncHint," ")}}function L(e,t){if(1&e){var i=d.EpF();d.TgZ(0,"button",20),d.NdJ("click",function(){return d.CHM(i),d.oxw(2).stepperPrevious()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}2&e&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.BACK")," "))}function k(e,t){if(1&e){var i=d.EpF();d.TgZ(0,"button",21),d.NdJ("click",function(){return d.CHM(i),d.oxw(2).stepperNext()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}if(2&e){var n=d.oxw(2);d.ekj("ml-2",void 0!==n.stepper&&0!==n.stepper.selectedIndex)("ml-auto",!(void 0!==n.stepper&&0!==n.stepper.selectedIndex)),d.Q6J("disabled",0===n.selection.selected.length||!n.canAddGroups()),d.xp6(1),d.hij(" ",d.lcZ(2,6,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.NEXT")," ")}}function w(e,t){if(1&e){var i=d.EpF();d.TgZ(0,"button",22),d.NdJ("click",function(){return d.CHM(i),d.oxw(2).onAdd()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}2&e&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ADD_BUTTON")," "))}function M(e,t){if(1&e){var i=d.EpF();d.TgZ(0,"div",15),d.TgZ(1,"button",16),d.NdJ("click",function(){return d.CHM(i),d.oxw().onCancel()}),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.YNc(4,L,3,3,"button",17),d.YNc(5,k,3,8,"button",18),d.YNc(6,w,3,3,"button",19),d.qZA()}if(2&e){var n=d.oxw();d.xp6(2),d.hij(" ",d.lcZ(3,4,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.CANCEL_BUTTON")," "),d.xp6(2),d.Q6J("ngIf",void 0!==n.stepper&&0!==n.stepper.selectedIndex),d.xp6(1),d.Q6J("ngIf",void 0!==n.stepper&&n.stepper.selectedIndex!==n.stepper._steps.length-1),d.xp6(1),d.Q6J("ngIf",void 0!==n.stepper&&n.stepper.selectedIndex===n.stepper._steps.length-1)}}var Y=function(){var t=function(){function t(e,n,a,s,o,l,c,u){i(this,t),this.dialogRef=e,this.data=n,this.notificator=a,this.translate=s,this.resourceManager=o,this.groupService=l,this.guiAuthResolver=c,this.cd=u,this.loading=!1,this.unAssignedGroups=this.data.onlyAutoAssignedGroups,this.async=!0,this.autoAssignSubgroups=!1,this.asActive=!0,this.selection=new r.Ov(!0,[]),this.filterValue="",this.tableId=T.cL}return a(t,[{key:"ngOnInit",value:function(){var t=this;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(function(i){t.groupService.getAllGroups(t.resource.voId).subscribe(function(n){var a,s=e(n);try{var o=function(){var e=a.value;-1===i.findIndex(function(t){return t.id===e.id})&&t.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[t.resource,e])&&t.unAssignedGroups.push(e)};for(s.s();!(a=s.n()).done;)o()}catch(r){s.e(r)}finally{s.f()}t.loading=!1,t.cd.detectChanges()},function(){return t.loading=!1})},function(){return t.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onAdd",value:function(){var t=this;this.loading=!0;var i,n=[],a=e(this.selection.selected);try{for(a.s();!(i=a.n()).done;){var s=i.value;n.push(s.id)}}catch(o){a.e(o)}finally{a.f()}this.resourceManager.assignGroupsToResource(n,this.resource.id,this.async,!this.asActive,this.autoAssignSubgroups).subscribe(function(){t.translate.get("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.SUCCESS_MESSAGE").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"canAddGroups",value:function(){var e=this,t=!0;return this.selection.selected.forEach(function(i){e.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[e.resource,i])||(t=!1)}),t}},{key:"changeSubgroupsMessage",value:function(){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")}},{key:"changeInactiveMessage",value:function(){this.asActiveHint=this.translate.instant(this.asActive?"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ACTIVE_OFF_HINT":"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ACTIVE_ON_HINT")}},{key:"changeAsyncMessage",value:function(){this.asyncHint=this.translate.instant(this.async?"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_OFF_HINT":"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_ON_HINT")}},{key:"stepperPrevious",value:function(){this.stepper.previous()}},{key:"stepperNext",value:function(){this.stepper.next()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(d.Y36(l.so),d.Y36(l.WI),d.Y36(u.V6),d.Y36(h.sK),d.Y36(o.xk),d.Y36(o.ff),d.Y36(u.x4),d.Y36(d.sBO))},t.\u0275cmp=d.Xpm({type:t,selectors:[["app-perun-web-apps-assign-group-to-resource-dialog"]],viewQuery:function(e,t){var i;(1&e&&d.Gf(C,5),2&e)&&(d.iGM(i=d.CRH())&&(t.stepper=i.first))},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,"linear"],["stepper",""],[3,"completed"],["matStepLabel",""],[3,"placeholder","filter"],[3,"tableId","groups","selection","filter","displayedColumns","disableRouting","disableMembers"],["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",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","","type","button",3,"click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","","type","button",3,"disabled","click"],["color","accent","mat-flat-button","","type","button",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(d.TgZ(0,"div"),d.TgZ(1,"h1",0),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.YNc(4,x,1,0,"mat-spinner",1),d.YNc(5,D,25,28,"div",2),d.YNc(6,M,7,6,"div",3),d.qZA()),2&e&&(d.Tol(t.theme),d.xp6(2),d.Oqu(d.lcZ(3,7,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.TITLE")),d.xp6(2),d.Q6J("ngIf",t.loading),d.xp6(1),d.Q6J("ngIf",!t.loading),d.xp6(1),d.Q6J("ngIf",!t.loading&&t.stepper))},directives:[l.uh,g.O5,f.$g,l.xY,I.Vq,I.C0,I.VY,Z.P,_.W,O.Rr,y.JJ,y.On,l.H8,p.lW],pipes:[h.X$],styles:[".slide-text[_ngcontent-%COMP%]{font-size:1.1rem}"]}),t}(),q=s(84140),J=s(67004),P=s(57629),Q=s(59403),V=s(36922);function F(e,t){if(1&e){var i=d.EpF();d.TgZ(0,"button",8),d.NdJ("click",function(){return d.CHM(i),d.oxw().addGroup()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}2&e&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_GROUPS.ADD_GROUP"),"\n"))}function j(e,t){1&e&&d._UZ(0,"mat-spinner",9)}var H=function(e){return[e]},z=function(){return["select","id","indirectGroupAssigment","name","status","description"]};function B(e,t){if(1&e){var i=d.EpF();d.TgZ(0,"perun-web-apps-groups-list",10),d.NdJ("refreshTable",function(){return d.CHM(i),d.oxw().loadAllGroups()}),d.qZA()}if(2&e){var n=d.oxw();d.Q6J("disableGroups",!0)("groupsToDisableCheckbox",n.groupsToDisable)("tableId",n.tableId)("groups",n.assignedGroups)("filter",n.filteredValue)("selection",n.selected)("disableMembers",!1)("resourceId",n.resource.id)("disableRouting",!!n.assignedGroups[0]&&!n.guiAuthResolver.isAuthorized("getGroupById_int_policy",d.VKq(10,H,n.assignedGroups[0])))("displayedColumns",d.DdM(12,z))}}var X=function(){var e=function(){function e(t,n,a,s,o){i(this,e),this.route=t,this.resourcesManager=n,this.dialog=a,this.guiAuthResolver=s,this.entityStorageService=o,this.assignedGroups=[],this.selected=new r.Ov(!0,[]),this.filteredValue="",this.tableId=T.Ad}return a(e,[{key:"ngOnInit",value:function(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.loadAllGroups()}},{key:"loadAllGroups",value:function(){var e=this;this.loading=!0,this.resourcesManager.getGroupAssignments(this.resource.id,[J.r.GROUP_SYNC_ENABLED]).subscribe(function(t){e.assignedGroups=t.map(function(e){var t=e.enrichedGroup.group;return t.status=e.status,t.failureCause=e.failureCause,t.sourceGroupId=e.sourceGroupId,t});var i=e.assignedGroups.map(function(e){return e.id}),n=e.assignedGroups.filter(function(e,t){return i.indexOf(e.id)===t}),a=e.assignedGroups.filter(function(t,n){var a=i.indexOf(t.id);return a!==n&&(null===t.sourceGroupId||null===e.assignedGroups[a].sourceGroupId)}).map(function(e){return e.id});n.forEach(function(e){a.includes(e.id)&&(e.moreTypesOfAssignment=!0)}),e.assignedGroups=n,e.groupsToDisable=new Set(e.assignedGroups.filter(function(e){return!!e.sourceGroupId&&!e.moreTypesOfAssignment}).map(function(e){return e.id})),e.selected.clear(),e.loading=!1})}},{key:"addGroup",value:function(){var e=this,t=(0,q.kZ)();t.width="1000px",t.data={theme:"resource-theme",resource:this.resource,onlyAutoAssignedGroups:this.assignedGroups.filter(function(t){return e.groupsToDisable.has(t.id)})},this.dialog.open(Y,t).afterClosed().subscribe(function(t){t&&e.loadAllGroups()})}},{key:"removeGroups",value:function(){var e=this,t=(0,q.kZ)();t.width="500px",t.data={resourceId:this.resource.id,groups:this.selected.selected,theme:"resource-theme"},this.dialog.open(R,t).afterClosed().subscribe(function(t){t&&e.loadAllGroups()})}},{key:"canRemoveGroups",value:function(){var e=this,t=!0;return this.selected.selected.forEach(function(i){e.guiAuthResolver.isAuthorized("removeGroupsFromResource_List_Resource_policy",[e.resource,i])||(t=!1)}),t}},{key:"applyFilter",value:function(e){this.filteredValue=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(d.Y36(P.gz),d.Y36(o.xk),d.Y36(l.uw),d.Y36(u.x4),d.Y36(u.fb))},e.\u0275cmp=d.Xpm({type:e,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","",3,"click",4,"ngIf"],["color","warn","mat-flat-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","tableId","groups","filter","selection","disableMembers","resourceId","disableRouting","displayedColumns","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableGroups","groupsToDisableCheckbox","tableId","groups","filter","selection","disableMembers","resourceId","disableRouting","displayedColumns","refreshTable"]],template:function(e,t){1&e&&(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 t.loadAllGroups()}),d.qZA(),d.YNc(4,F,3,3,"button",2),d.TgZ(5,"button",3),d.NdJ("click",function(){return t.removeGroups()}),d.TgZ(6,"span",4),d.ALo(7,"translate"),d._uU(8),d.ALo(9,"translate"),d.qZA(),d.qZA(),d.TgZ(10,"perun-web-apps-debounce-filter",5),d.NdJ("filter",function(e){return t.applyFilter(e)}),d.qZA(),d.YNc(11,j,1,0,"mat-spinner",6),d.YNc(12,B,1,13,"perun-web-apps-groups-list",7)),2&e&&(d.xp6(1),d.Oqu(d.lcZ(2,9,"RESOURCE_DETAIL.ASSIGNED_GROUPS.TITLE")),d.xp6(3),d.Q6J("ngIf",t.guiAuthResolver.isAuthorized("getAllGroups_Vo_policy",d.VKq(15,H,t.resource))),d.xp6(1),d.Q6J("disabled",0===t.selected.selected.length||!t.canRemoveGroups()),d.xp6(1),d.s9C("matTooltip",d.lcZ(7,11,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_TOOLTIP")),d.Q6J("matTooltipDisabled",t.canRemoveGroups()),d.xp6(2),d.hij(" ",d.lcZ(9,13,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_GROUP")," "),d.xp6(2),d.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_GROUPS.FILTER_GROUPS"),d.xp6(1),d.Q6J("ngIf",t.loading),d.xp6(1),d.Q6J("ngIf",!t.loading))},directives:[Q.t,g.O5,p.lW,V.gM,Z.P,f.$g,_.W],pipes:[h.X$],styles:[""]}),e}()},76527:function(e,t,n){"use strict";n.d(t,{H:function(){return p}});var s=n(65249),o=n(68416),r=n(31572),l=n(57629),c=n(61511),u=n(67806),d=n(8557);function h(e,t){1&e&&r._UZ(0,"mat-spinner",2)}function g(e,t){if(1&e&&(r.TgZ(0,"div"),r._UZ(1,"perun-web-apps-menu-buttons-field",3),r.qZA()),2&e){var i=r.oxw();r.xp6(1),r.Q6J("items",i.navItems)("size","small")}}var p=function(){var e=function(){function e(t,n,a,s){i(this,e),this.resourcesManager=t,this.route=n,this.guiAuthResolver=a,this.entityStorageService=s,this.navItems=[],this.loading=!1}return a(e,[{key:"ngOnInit",value:function(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.initItems("facilities"!==this.route.parent.parent.snapshot.url[0].path),this.loading=!1}},{key:"initItems",value:function(e){var t=e?"/organizations/".concat(this.resource.voId):"/facilities/".concat(this.resource.facilityId);this.navItems=[],this.guiAuthResolver.isAuthorized("getAssignedGroups_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-group",url:"".concat(t,"/resources/").concat(this.resource.id,"/groups"),label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",style:"resource-btn"}),this.guiAuthResolver.isAuthorized("getAssignedServices_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-service",url:"/".concat(t,"/resources/").concat(this.resource.id,"/services"),label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",style:"resource-btn"}),this.guiAuthResolver.isAuthorized("getAssignedMembers_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-user",url:"".concat(t,"/resources/").concat(this.resource.id,"/members"),label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",style:"resource-btn"}),this.guiAuthResolver.isAuthorized("getAllResourcesTagsForResource_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-resource-tags",url:"".concat(t,"/resources/").concat(this.resource.id,"/tags"),label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",style:"resource-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:"".concat(t,"/resources/").concat(this.resource.id,"/attributes"),label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",style:"resource-btn"}),this.guiAuthResolver.isManagerPagePrivileged(this.resource)&&this.navItems.push({cssIcon:"perun-settings2",url:"".concat(t,"/resources/").concat(this.resource.id,"/settings"),label:"MENU_ITEMS.RESOURCE.SETTINGS",style:"resource-btn"})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(s.xk),r.Y36(l.gz),r.Y36(o.x4),r.Y36(o.fb))},e.\u0275cmp=r.Xpm({type:e,selectors:[["app-resource-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&r.ekj("router-component",t.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,t){1&e&&(r.YNc(0,h,1,0,"mat-spinner",0),r.YNc(1,g,2,2,"div",1)),2&e&&(r.Q6J("ngIf",t.loading),r.xp6(1),r.Q6J("ngIf",!t.loading))},directives:[c.O5,u.$g,d.L],styles:[""]}),e}()},64359:function(e,t,n){"use strict";n.d(t,{O:function(){return l}});var s=n(68416),o=n(31572),r=n(489),l=function(){var e=function(){function e(t,n){i(this,e),this.guiAuthResolver=t,this.entityStorageService=n,this.availableRoles=[],this.type="Resource",this.theme="resource-theme"}return a(e,[{key:"ngOnInit",value:function(){this.resource=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Resource")}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Y36(s.x4),o.Y36(s.fb))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-resource-settings-managers"]],decls:1,vars:4,consts:[[3,"complementaryObject","complementaryObjectType","theme","availableRoles"]],template:function(e,t){1&e&&o._UZ(0,"app-managers-page",0),2&e&&o.Q6J("complementaryObject",t.resource)("complementaryObjectType",t.type)("theme",t.theme)("availableRoles",t.availableRoles)},directives:[r.s],styles:[""]}),e}()},22927:function(e,t,n){"use strict";n.d(t,{h:function(){return p}});var s=n(65249),o=n(68416),r=n(31572),l=n(57629),c=n(61511),u=n(67806),d=n(8557);function h(e,t){1&e&&r._UZ(0,"mat-spinner",2)}function g(e,t){if(1&e&&(r.TgZ(0,"div"),r._UZ(1,"perun-web-apps-menu-buttons-field",3),r.qZA()),2&e){var i=r.oxw();r.xp6(1),r.Q6J("items",i.items)("size","small")}}var p=function(){var e=function(){function e(t,n,a,s){i(this,e),this.route=t,this.resourceManager=n,this.authResolver=a,this.entityStorageService=s,this.items=[],this.loading=!1}return a(e,[{key:"ngOnInit",value:function(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.initItems("facilities"!==this.route.parent.parent.parent.snapshot.url[0].path),this.loading=!1}},{key:"initItems",value:function(e){this.items=[],this.authResolver.isManagerPagePrivileged(this.resource)&&this.items.push({cssIcon:"perun-manager",url:"".concat(e?"/organizations/".concat(this.resource.voId):"/facilities/".concat(this.resource.facilityId),"/resources/").concat(this.resource.id,"/settings/managers"),label:"MENU_ITEMS.RESOURCE.MANAGERS",style:"resource-btn"})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(l.gz),r.Y36(s.xk),r.Y36(o.x4),r.Y36(o.fb))},e.\u0275cmp=r.Xpm({type:e,selectors:[["app-resource-settings-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&r.ekj("router-component",t.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,t){1&e&&(r.YNc(0,h,1,0,"mat-spinner",0),r.YNc(1,g,2,2,"div",1)),2&e&&(r.Q6J("ngIf",t.loading),r.xp6(1),r.Q6J("ngIf",!t.loading))},directives:[c.O5,u.$g,d.L],styles:[""]}),e}()},77968:function(e,t,n){"use strict";n.d(t,{t:function(){return r}});var a=n(17),s=n(31572),o=n(21575),r=function(){var e=function e(){i(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=s.Xpm({type:e,selectors:[["app-resource-settings"]],hostVars:2,hostBindings:function(e,t){2&e&&s.ekj("router-component",t.true)},decls:1,vars:0,template:function(e,t){1&e&&s._UZ(0,"app-animated-router-outlet")},directives:[o.A],styles:[""],data:{animation:[a.Ji]}}),e}()},53134:function(e,t,n){"use strict";n.d(t,{v:function(){return C}});var s=n(65249),o=n(4230),r=n(60611),l=n(84140),c=n(68416),u=n(6527),d=n(84608),h=n(31572),g=n(61511),p=n(15980),f=n(67806),m=n(4196),A=n(48160);function v(e,t){1&e&&h._UZ(0,"mat-spinner",8)}function S(e,t){if(1&e&&h._UZ(0,"app-resources-tags-list",9),2&e){var i=h.oxw();h.Q6J("selection",i.selection)("tableId",i.tableId)("resourceTags",i.resourceTags)("filterValue",i.filterValue)("displayedColumns",i.displayedColumns)("entity","resource")}}var b=function(){var e=function(){function e(t,n,a){i(this,e),this.dialogRef=t,this.data=n,this.resourcesManager=a,this.tableId=r.g,this.selection=new o.Ov(!0,[]),this.resourceTags=[],this.displayedColumns=["select","id","name"]}return a(e,[{key:"ngOnInit",value:function(){var e=this;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(function(t){e.resourceTags=t.filter(function(t){return e.assignedTags.map(function(e){return e.id}).indexOf(t.id)<=-1}),e.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(e){var t=this;if(0===e.length)return this.dialogRef.close(!0);var i=e.pop();this.resourcesManager.assignResourceTagToResource({resource:this.resourceId,resourceTag:i}).subscribe(function(){t.onSubmit(e)})}},{key:"applyFilter",value:function(e){this.filterValue=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Y36(d.so),h.Y36(d.WI),h.Y36(s.xk))},e.\u0275cmp=h.Xpm({type:e,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","tableId","resourceTags","filterValue","displayedColumns","entity",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,"mr-auto","ml-auto"],[3,"selection","tableId","resourceTags","filterValue","displayedColumns","entity"]],template:function(e,t){1&e&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"div",1),h.TgZ(5,"div",2),h.YNc(6,v,1,0,"mat-spinner",3),h.qZA(),h.YNc(7,S,1,6,"app-resources-tags-list",4),h.qZA(),h.TgZ(8,"div",5),h.TgZ(9,"button",6),h.NdJ("click",function(){return t.onCancel()}),h._uU(10),h.ALo(11,"translate"),h.qZA(),h.TgZ(12,"button",7),h.NdJ("click",function(){return t.onSubmit(t.selection.selected)}),h._uU(13),h.ALo(14,"translate"),h.qZA(),h.qZA(),h.qZA()),2&e&&(h.Tol(t.theme),h.xp6(2),h.Oqu(h.lcZ(3,9,"RESOURCE_DETAIL.TAGS.ADD_TAGS")),h.xp6(4),h.Q6J("ngIf",t.loading),h.xp6(1),h.Q6J("ngIf",!t.loading),h.xp6(3),h.hij(" ",h.lcZ(11,11,"RESOURCE_DETAIL.TAGS.CANCEL")," "),h.xp6(2),h.Q6J("disabled",t.loading||0===t.resourceTags.length),h.xp6(1),h.hij(" ",h.lcZ(14,13,"RESOURCE_DETAIL.TAGS.ADD_BUTTON")," "))},directives:[d.uh,d.xY,g.O5,d.H8,p.lW,f.$g,m.o],pipes:[A.X$],styles:[""]}),e}(),E=n(24923),R=n(59403),T=n(19139);function I(e,t){if(1&e){var i=h.EpF();h.TgZ(0,"button",7),h.NdJ("click",function(){return h.CHM(i),h.oxw().create()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&e&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function Z(e,t){if(1&e){var i=h.EpF();h.TgZ(0,"button",7),h.NdJ("click",function(){return h.CHM(i),h.oxw().addTag()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&e&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"RESOURCE_DETAIL.TAGS.ADD_BUTTON"),"\n"))}function _(e,t){if(1&e){var i=h.EpF();h.TgZ(0,"button",8),h.NdJ("click",function(){return h.CHM(i),h.oxw().removeTags()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&e){var n=h.oxw();h.Q6J("disabled",0===n.selection.selected.length),h.xp6(1),h.hij(" ",h.lcZ(2,2,"RESOURCE_DETAIL.TAGS.REMOVE_BUTTON"),"\n")}}function O(e,t){1&e&&h._UZ(0,"mat-spinner",9)}function y(e,t){if(1&e&&h._UZ(0,"app-resources-tags-list",10),2&e){var i=h.oxw();h.Q6J("selection",i.selection)("tableId",i.tableId)("resourceTags",i.resourceTags)("filterValue",i.filterValue)("displayedColumns",i.displayedColumns)("entity","resource")}}var C=function(){var e=function(){function e(t,n,a,s,l,c){i(this,e),this.authResolver=t,this.resourcesManager=n,this.dialog=a,this.notificator=s,this.translate=l,this.entityStorageService=c,this.loading=!1,this.resourceTags=[],this.selection=new o.Ov(!0,[]),this.tableId=r.M8,this.displayedColumns=[]}return a(e,[{key:"ngOnInit",value:function(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.setAuthRights(),this.updateData()}},{key:"removeTags",value:function(){var e=this,t=(0,l.kZ)();t.width="450px",t.data={items:this.selection.selected.map(function(e){return e.tagName}),title:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_TITLE",description:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_DESCRIPTION",theme:"resource-theme"},this.dialog.open(u.Tf,t).afterClosed().subscribe(function(t){t&&e.removeTag(e.selection.selected)})}},{key:"removeTag",value:function(e){var t=this;if(0===e.length)return this.notificator.showSuccess(this.translate.instant("RESOURCE_DETAIL.TAGS.REMOVED_SUCCESSFULLY")),this.updateData();var i=e.pop();this.resourcesManager.removeResourceTagFromResource({resource:this.resource.id,resourceTag:i}).subscribe(function(){t.removeTag(e)})}},{key:"addTag",value:function(){var e=this,t=(0,l.kZ)();t.width="600px",t.data={voId:this.resource.voId,resourceId:this.resource.id,assignedTags:this.resourceTags,theme:"resource-theme"},this.dialog.open(b,t).afterClosed().subscribe(function(t){t&&(e.notificator.showSuccess(e.translate.instant("RESOURCE_DETAIL.TAGS.ADDED_SUCCESSFULLY")),e.updateData())})}},{key:"create",value:function(){var e=this,t=(0,l.kZ)();t.width="450px",t.data={voId:this.resource.voId,theme:"resource-theme"},this.dialog.open(E.p,t).afterClosed().subscribe(function(t){t&&(e.translate.get("VO_DETAIL.RESOURCES.TAGS.CREATE_SUCCESS").subscribe(function(t){e.notificator.showSuccess(t)}),e.updateData())})}},{key:"updateData",value:function(){var e=this;this.loading=!0,this.selection.clear(),this.resourcesManager.getAllResourcesTagsForResource(this.resource.id).subscribe(function(t){e.resourceTags=t,e.selection.clear(),e.loading=!1})}},{key:"setAuthRights",value:function(){var e={id:this.resource.voId,beanName:"Vo"};this.displayedColumns=[],this.createAuth=this.authResolver.isAuthorized("createResourceTag_ResourceTag_Vo_policy",[e]),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"]}},{key:"applyFilter",value:function(e){this.filterValue=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Y36(c.x4),h.Y36(s.xk),h.Y36(d.uw),h.Y36(c.V6),h.Y36(A.sK),h.Y36(c.fb))},e.\u0275cmp=h.Xpm({type:e,selectors:[["app-perun-web-apps-resource-tags"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["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,"selection","tableId","resourceTags","filterValue","displayedColumns","entity",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,"selection","tableId","resourceTags","filterValue","displayedColumns","entity"]],template:function(e,t){1&e&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"perun-web-apps-refresh-button",1),h.NdJ("refresh",function(){return t.updateData()}),h.qZA(),h.YNc(4,I,3,3,"button",2),h.YNc(5,Z,3,3,"button",2),h.YNc(6,_,3,4,"button",3),h.TgZ(7,"perun-web-apps-immediate-filter",4),h.NdJ("filter",function(e){return t.applyFilter(e)}),h.qZA(),h.YNc(8,O,1,0,"mat-spinner",5),h.YNc(9,y,1,6,"app-resources-tags-list",6)),2&e&&(h.xp6(1),h.Oqu(h.lcZ(2,7,"RESOURCE_DETAIL.TAGS.TITLE")),h.xp6(3),h.Q6J("ngIf",t.createAuth),h.xp6(1),h.Q6J("ngIf",t.addAuth),h.xp6(1),h.Q6J("ngIf",t.removeAuth),h.xp6(1),h.Q6J("placeholder","RESOURCE_DETAIL.TAGS.SEARCH"),h.xp6(1),h.Q6J("ngIf",t.loading),h.xp6(1),h.Q6J("ngIf",!t.loading))},directives:[R.t,g.O5,T.L,p.lW,f.$g,m.o],pipes:[A.X$],styles:[""]}),e}()},24923:function(e,t,n){"use strict";n.d(t,{p:function(){return A}});var s=n(84608),o=n(65249),r=n(31572),l=n(61511),c=n(15980),u=n(67806),d=n(66283),h=n(80340),g=n(16073),p=n(48160);function f(e,t){1&e&&r._UZ(0,"mat-spinner",6)}function m(e,t){if(1&e){var i=r.EpF();r.TgZ(0,"div",7),r.TgZ(1,"mat-form-field"),r.TgZ(2,"input",8),r.NdJ("ngModelChange",function(e){return r.CHM(i),r.oxw().name=e}),r.ALo(3,"translate"),r.qZA(),r.TgZ(4,"mat-error"),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA()}if(2&e){var n=r.oxw();r.xp6(2),r.s9C("placeholder",r.lcZ(3,3,"DIALOGS.CREATE_RESOURCE_TAG.NAME")),r.Q6J("ngModel",n.name),r.xp6(3),r.Oqu(r.lcZ(6,5,"DIALOGS.CREATE_RESOURCE_TAG.EMPTY_NAME"))}}var A=function(){var e=function(){function e(t,n,a){i(this,e),this.dialogRef=t,this.data=n,this.resourceManager=a,this.name="",this.loading=!1}return a(e,[{key:"ngOnInit",value:function(){this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;""!==this.name&&(this.loading=!0,this.resourceManager.createResourceTagWithTagName(this.name,this.data.voId).subscribe(function(){e.dialogRef.close(!0)},function(){return e.loading=!1}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(s.so),r.Y36(s.WI),r.Y36(o.xk))},e.\u0275cmp=r.Xpm({type:e,selectors:[["app-create-resource-tag-dialog"]],decls:13,vars:15,consts:[["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","accent",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(e,t){1&e&&(r.TgZ(0,"div"),r.TgZ(1,"h1",0),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.YNc(4,f,1,0,"mat-spinner",1),r.YNc(5,m,7,7,"div",2),r.TgZ(6,"div",3),r.TgZ(7,"button",4),r.NdJ("click",function(){return t.onCancel()}),r._uU(8),r.ALo(9,"translate"),r.qZA(),r.TgZ(10,"button",5),r.NdJ("click",function(){return t.onSubmit()}),r._uU(11),r.ALo(12,"translate"),r.qZA(),r.qZA(),r.qZA()),2&e&&(r.Tol(t.theme),r.xp6(2),r.Oqu(r.lcZ(3,9,"DIALOGS.CREATE_RESOURCE_TAG.TITLE")),r.xp6(2),r.Q6J("ngIf",t.loading),r.xp6(1),r.Q6J("ngIf",!t.loading),r.xp6(3),r.hij(" ",r.lcZ(9,11,"DIALOGS.CREATE_RESOURCE_TAG.CANCEL")," "),r.xp6(2),r.Q6J("disabled",t.loading),r.xp6(1),r.hij(" ",r.lcZ(12,13,"DIALOGS.CREATE_RESOURCE_TAG.CREATE")," "))},directives:[s.uh,l.O5,s.H8,c.lW,u.$g,s.xY,d.KE,h.Nt,g.Fj,g.Q7,g.JJ,g.On,d.TO],pipes:[p.X$],styles:[""]}),e}()},489:function(t,n,s){"use strict";s.d(n,{s:function(){return ye}});var o=s(4230),r=s(84608),l=s(68416),c=s(65249),u=s(60611),d=s(67004),h=s(16073),g=s(31572),p=s(48160),f=s(57629),m=s(66283),A=s(4786),v=s(61511),S=s(80340),b=s(84534),E=s(15980),R=s(71522),T=s(67806),I=s(39571),Z=s(77889),_=function(){var e=function(){function e(t){i(this,e),this.translate=t,this.prefix="ROLES."}return a(e,[{key:"transform",value:function(e){var t=this.prefix.concat(e);return this.translate.instant(t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(g.Y36(p.sK,16))},e.\u0275pipe=g.Yjl({name:"displayedRole",type:e,pure:!0}),e}();function O(e,t){if(1&e&&(g.TgZ(0,"mat-option",15),g._uU(1),g.ALo(2,"displayedRole"),g.qZA()),2&e){var i=t.$implicit;g.Q6J("value",i),g.xp6(1),g.Oqu(g.lcZ(2,2,i))}}function y(e,t){1&e&&g._UZ(0,"mat-spinner",16)}function C(e,t){1&e&&(g.TgZ(0,"app-alert",20),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&e&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"DIALOGS.ADD_MANAGERS.NO_USERS_FOUND")," "))}var x=function(){return["select","id","name","email","logins","organization"]};function U(e,t){if(1&e&&g._UZ(0,"app-users-list",21),2&e){var i=g.oxw(2);g.Q6J("tableId",i.tableId)("disableRouting",!0)("selection",i.selection)("displayedColumns",g.DdM(5,x))("users",i.users)}}function N(e,t){if(1&e&&(g.TgZ(0,"div",17),g.YNc(1,C,3,3,"app-alert",18),g.YNc(2,U,1,6,"app-users-list",19),g.qZA()),2&e){var i=g.oxw();g.xp6(1),g.Q6J("ngIf",0===i.users.length&&i.firstSearchDone),g.xp6(1),g.Q6J("ngIf",0!==i.users.length)}}var G=function(){var e=function(){function e(t,n,a,s,r,l,c,d,h){var g=this;i(this,e),this.dialogRef=t,this.data=n,this.authzService=a,this.usersService=s,this.translate=r,this.notificator=l,this.storeService=c,this.route=d,this.router=h,this.selection=new o.Ov(!0,[]),this.users=[],this.firstSearchDone=!1,this.tableId=u.H2,r.get("DIALOGS.ADD_MANAGERS.TITLE").subscribe(function(e){return g.title=e}),r.get("DIALOGS.ADD_MANAGERS.SUCCESS").subscribe(function(e){return g.successMessage=e})}return a(e,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.availableRoles=this.data.availableRoles,this.selectedRole=this.data.selectedRole,this.searchCtrl=new h.NI("",[h.kI.required,h.kI.pattern(".*[\\S]+.*")])}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,this.authzService.setRoleWithUserComplementaryObject({role:this.selectedRole,users:this.selection.selected.map(function(e){return e.id}),complementaryObject:this.data.complementaryObject}).subscribe(function(){e.notificator.showSuccess(e.successMessage),e.loading=!1,e.dialogRef.close(!0)},function(){return e.loading=!1})}},{key:"onSearchByString",value:function(){var e=this;if(this.searchCtrl.invalid)this.searchCtrl.markAllAsTouched();else{this.loading=!0,this.selection.clear();var t=[d.r.USER_DEF_ORGANIZATION,d.r.USER_DEF_PREFERRED_MAIL];t=t.concat(this.storeService.getLoginAttributeNames()),this.usersService.findRichUsersWithAttributes(this.searchCtrl.value,t).subscribe(function(t){e.users=t,e.loading=!1,e.firstSearchDone=!0},function(){return e.loading=!1})}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(g.Y36(r.so),g.Y36(r.WI),g.Y36(c.Ct),g.Y36(c.Fv),g.Y36(p.sK),g.Y36(l.V6),g.Y36(l.d6),g.Y36(f.gz),g.Y36(f.F0))},e.\u0275cmp=g.Xpm({type:e,selectors:[["app-add-manager-dialog"]],decls:32,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"],["mat-flat-button","","color","accent","data-cy","search-manager-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"],["mat-flat-button","","color","accent","data-cy","add-manager-button-dialog",1,"ml-2",3,"disabled","click"],[3,"value"],[1,"mr-auto","ml-auto"],[1,"mt-3"],["alert_type","warn",4,"ngIf"],[3,"tableId","disableRouting","selection","displayedColumns","users",4,"ngIf"],["alert_type","warn"],[3,"tableId","disableRouting","selection","displayedColumns","users"]],template:function(e,t){1&e&&(g.TgZ(0,"div"),g.TgZ(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"div",1),g.TgZ(5,"div",2),g.TgZ(6,"mat-form-field",3),g.TgZ(7,"mat-label"),g._uU(8),g.ALo(9,"translate"),g.qZA(),g.TgZ(10,"mat-select",4),g.NdJ("valueChange",function(e){return t.selectedRole=e}),g.YNc(11,O,3,4,"mat-option",5),g.qZA(),g.qZA(),g.TgZ(12,"mat-form-field",6),g.TgZ(13,"label"),g.TgZ(14,"input",7),g.NdJ("keyup.enter",function(){return t.onSearchByString()}),g.ALo(15,"translate"),g.qZA(),g.qZA(),g.TgZ(16,"mat-error"),g._uU(17),g.ALo(18,"translate"),g.qZA(),g.qZA(),g.qZA(),g.TgZ(19,"button",8),g.NdJ("click",function(){return t.onSearchByString()}),g._uU(20),g.ALo(21,"translate"),g.qZA(),g.TgZ(22,"div",9),g.YNc(23,y,1,0,"mat-spinner",10),g.qZA(),g.YNc(24,N,3,2,"div",11),g.qZA(),g.TgZ(25,"div",12),g.TgZ(26,"button",13),g.NdJ("click",function(){return t.onCancel()}),g._uU(27),g.ALo(28,"translate"),g.qZA(),g.TgZ(29,"button",14),g.NdJ("click",function(){return t.onSubmit()}),g._uU(30),g.ALo(31,"translate"),g.qZA(),g.qZA(),g.qZA()),2&e&&(g.Tol(t.theme),g.xp6(2),g.Oqu(g.lcZ(3,17,"DIALOGS.ADD_MANAGERS.TITLE")),g.xp6(6),g.Oqu(g.lcZ(9,19,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),g.xp6(2),g.Q6J("value",t.selectedRole),g.xp6(1),g.Q6J("ngForOf",t.availableRoles),g.xp6(3),g.s9C("placeholder",g.lcZ(15,21,"DIALOGS.ADD_MANAGERS.DESCRIPTION")),g.Q6J("formControl",t.searchCtrl),g.xp6(3),g.hij(" ",g.lcZ(18,23,"DIALOGS.ADD_MANAGERS.EMPTY_SEARCH_MESSAGE")," "),g.xp6(2),g.Q6J("disabled",t.loading),g.xp6(1),g.hij(" ",g.lcZ(21,25,"DIALOGS.ADD_MANAGERS.SEARCH")," "),g.xp6(3),g.Q6J("ngIf",t.loading),g.xp6(1),g.Q6J("ngIf",null!==t.users&&!t.loading),g.xp6(3),g.hij(" ",g.lcZ(28,27,"DIALOGS.ADD_MANAGERS.CANCEL")," "),g.xp6(2),g.Q6J("disabled",0===t.selection.selected.length||void 0===t.selectedRole||t.loading),g.xp6(1),g.hij(" ",g.lcZ(31,29,"DIALOGS.ADD_MANAGERS.CREATE")," "))},directives:[r.uh,r.xY,m.KE,m.hX,A.gD,v.sg,S.Nt,h.Fj,b.hT,h.JJ,h.oH,m.TO,E.lW,v.O5,r.H8,R.ey,T.$g,I.w,Z.C],pipes:[p.X$,_],styles:[".inline-dialog-items[_ngcontent-%COMP%]{display:flex;align-items:flex-end}"]}),e}(),D=s(67033);function L(e,t){1&e&&g._UZ(0,"th",15)}function k(e,t){if(1&e&&(g.TgZ(0,"td",16),g._uU(1),g.qZA()),2&e){var i=t.$implicit;g.xp6(1),g.AsE(" ",i.firstName," ",i.lastName,"")}}function w(e,t){1&e&&g._UZ(0,"tr",17)}function M(e,t){1&e&&g._UZ(0,"tr",18)}var Y=function(e){return{role:e}};function q(e,t){if(1&e&&(g.TgZ(0,"app-alert",19),g._uU(1),g.ALo(2,"translate"),g.ALo(3,"displayedRole"),g.qZA()),2&e){var i=g.oxw(2);g.xp6(1),g.hij(" ",g.xi3(2,1,"DIALOGS.REMOVE_MANAGERS.WARNING_REMOVE_YOURSELF",g.VKq(6,Y,g.lcZ(3,4,i.data.role)))," ")}}function J(e,t){if(1&e&&(g.TgZ(0,"div",6),g.TgZ(1,"p"),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"div",7),g._uU(5),g.ALo(6,"translate"),g.qZA(),g.TgZ(7,"table",8),g.ynx(8,9),g.YNc(9,L,1,0,"th",10),g.YNc(10,k,2,2,"td",11),g.BQk(),g.YNc(11,w,1,0,"tr",12),g.YNc(12,M,1,0,"tr",13),g.qZA(),g.YNc(13,q,4,8,"app-alert",14),g.qZA()),2&e){var i=g.oxw();g.xp6(2),g.hij(" ",g.lcZ(3,6,"DIALOGS.REMOVE_MANAGERS.DESCRIPTION")," "),g.xp6(3),g.hij(" ",g.lcZ(6,8,"DIALOGS.REMOVE_MANAGERS.ASK")," "),g.xp6(2),g.Q6J("dataSource",i.dataSource),g.xp6(4),g.Q6J("matHeaderRowDef",i.displayedColumns),g.xp6(1),g.Q6J("matRowDefColumns",i.displayedColumns),g.xp6(1),g.Q6J("ngIf",i.removeSelf)}}function P(e,t){1&e&&g._UZ(0,"mat-spinner",20)}var Q=function(){var e=function(){function e(t,n,a,s,o,r,l){i(this,e),this.dialogRef=t,this.data=n,this.notificator=a,this.translate=s,this.authzService=o,this.store=r,this.authService=l,this.displayedColumns=["name"]}return a(e,[{key:"ngOnInit",value:function(){this.dataSource=new D.by(this.data.managers),this.theme=this.data.theme,this.removeSelf=this.data.managers.map(function(e){return e.id}).includes(this.store.getPerunPrincipal().userId)&&!this.authService.isPerunAdmin()}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,this.authzService.unsetRoleWithUserComplementaryObject({role:this.data.role,users:this.data.managers.map(function(e){return e.id}),complementaryObject:this.data.complementaryObject}).subscribe(function(){e.translate.get("DIALOGS.REMOVE_MANAGERS.SUCCESS").subscribe(function(t){e.notificator.showSuccess(t),e.loading=!1,e.dialogRef.close(!0)},function(){return e.loading=!1})},function(){return e.loading=!1})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(g.Y36(r.so),g.Y36(r.WI),g.Y36(l.V6),g.Y36(p.sK),g.Y36(c.Ct),g.Y36(l.d6),g.Y36(l.x4))},e.\u0275cmp=g.Xpm({type:e,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"],["mat-flat-button","","color","warn","data-cy","remove-manager-button-dialog",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"],["mat-header-row","","class","font-weight-bolder",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(e,t){1&e&&(g.TgZ(0,"div"),g.TgZ(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.YNc(4,J,14,10,"div",1),g.YNc(5,P,1,0,"mat-spinner",2),g.TgZ(6,"div",3),g.TgZ(7,"button",4),g.NdJ("click",function(){return t.onCancel()}),g._uU(8),g.ALo(9,"translate"),g.qZA(),g.TgZ(10,"button",5),g.NdJ("click",function(){return t.onSubmit()}),g._uU(11),g.ALo(12,"translate"),g.qZA(),g.qZA(),g.qZA()),2&e&&(g.Tol(t.theme),g.xp6(2),g.Oqu(g.lcZ(3,9,"DIALOGS.REMOVE_MANAGERS.TITLE")),g.xp6(2),g.Q6J("ngIf",!t.loading),g.xp6(1),g.Q6J("ngIf",t.loading),g.xp6(3),g.hij(" ",g.lcZ(9,11,"DIALOGS.REMOVE_MANAGERS.CANCEL")," "),g.xp6(2),g.Q6J("disabled",t.loading),g.xp6(1),g.hij(" ",g.lcZ(12,13,"DIALOGS.REMOVE_MANAGERS.DELETE")," "))},directives:[r.uh,v.O5,r.H8,E.lW,r.xY,D.BZ,D.w1,D.fO,D.Dz,D.as,D.nj,D.ge,D.ev,D.XQ,D.Gk,I.w,T.$g],pipes:[p.X$,_],styles:[""]}),e}();function V(e,t){1&e&&g._UZ(0,"mat-spinner",6)}function F(e,t){1&e&&g._UZ(0,"th",15)}function j(e,t){if(1&e&&(g.TgZ(0,"td",16),g._uU(1),g.qZA()),2&e){var i=t.$implicit;g.xp6(1),g.hij(" ",i.name,"")}}function H(e,t){1&e&&g._UZ(0,"tr",17)}function z(e,t){1&e&&g._UZ(0,"tr",18)}function B(e,t){if(1&e&&(g.TgZ(0,"div",7),g.TgZ(1,"p"),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"div",8),g._uU(5),g.ALo(6,"translate"),g.qZA(),g.TgZ(7,"table",9),g.ynx(8,10),g.YNc(9,F,1,0,"th",11),g.YNc(10,j,2,1,"td",12),g.BQk(),g.YNc(11,H,1,0,"tr",13),g.YNc(12,z,1,0,"tr",14),g.qZA(),g.qZA()),2&e){var i=g.oxw();g.xp6(2),g.hij(" ",g.lcZ(3,5,"DIALOGS.REMOVE_GROUPS.DESCRIPTION")," "),g.xp6(3),g.hij(" ",g.lcZ(6,7,"DIALOGS.REMOVE_GROUPS.ASK")," "),g.xp6(2),g.Q6J("dataSource",i.dataSource),g.xp6(4),g.Q6J("matHeaderRowDef",i.displayedColumns),g.xp6(1),g.Q6J("matRowDefColumns",i.displayedColumns)}}var X=function(){var e=function(){function e(t,n,a,s,o){i(this,e),this.dialogRef=t,this.data=n,this.notificator=a,this.translate=s,this.authzService=o,this.displayedColumns=["name"]}return a(e,[{key:"ngOnInit",value:function(){this.dataSource=new D.by(this.data.groups),this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,this.authzService.unsetRoleWithGroupComplementaryObject({role:this.data.role,authorizedGroups:this.data.groups.map(function(e){return e.id}),complementaryObject:this.data.complementaryObject}).subscribe(function(){e.translate.get("DIALOGS.REMOVE_GROUPS.SUCCESS").subscribe(function(t){e.notificator.showSuccess(t),e.loading=!1,e.dialogRef.close(!0)},function(){return e.loading=!1})},function(){return e.loading=!1})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(g.Y36(r.so),g.Y36(r.WI),g.Y36(l.V6),g.Y36(p.sK),g.Y36(c.Ct))},e.\u0275cmp=g.Xpm({type:e,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"],["mat-flat-button","","color","warn",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"],["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&&(g.TgZ(0,"div"),g.TgZ(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.YNc(4,V,1,0,"mat-spinner",1),g.YNc(5,B,13,9,"div",2),g.TgZ(6,"div",3),g.TgZ(7,"button",4),g.NdJ("click",function(){return t.onCancel()}),g._uU(8),g.ALo(9,"translate"),g.qZA(),g.TgZ(10,"button",5),g.NdJ("click",function(){return t.onSubmit()}),g._uU(11),g.ALo(12,"translate"),g.qZA(),g.qZA(),g.qZA()),2&e&&(g.Tol(t.theme),g.xp6(2),g.Oqu(g.lcZ(3,9,"DIALOGS.REMOVE_GROUPS.TITLE")),g.xp6(2),g.Q6J("ngIf",t.loading),g.xp6(1),g.Q6J("ngIf",!t.loading),g.xp6(3),g.hij(" ",g.lcZ(9,11,"DIALOGS.REMOVE_GROUPS.CANCEL")," "),g.xp6(2),g.Q6J("disabled",t.loading),g.xp6(1),g.hij(" ",g.lcZ(12,13,"DIALOGS.REMOVE_GROUPS.DELETE")," "))},directives:[r.uh,v.O5,r.H8,E.lW,T.$g,r.xY,D.BZ,D.w1,D.fO,D.Dz,D.as,D.nj,D.ge,D.ev,D.XQ,D.Gk],pipes:[p.X$],styles:[""]}),e}(),$=s(56238),W=s(79996),K=s(40084),ee=s(91058),te=s(78364);function ie(e,t){if(1&e&&(g.TgZ(0,"mat-option",17),g._uU(1),g.ALo(2,"displayedRole"),g.qZA()),2&e){var i=t.$implicit;g.Q6J("value",i),g.xp6(1),g.Oqu(g.lcZ(2,2,i))}}function ne(e,t){if(1&e&&(g.TgZ(0,"mat-option",17),g._uU(1),g.qZA()),2&e){var i=t.$implicit;g.Q6J("value",i),g.xp6(1),g.hij(" ",i.name," ")}}function ae(e,t){if(1&e){var i=g.EpF();g.TgZ(0,"perun-web-apps-debounce-filter",18),g.NdJ("filter",function(e){return g.CHM(i),g.oxw().applyFilter(e)}),g.ALo(1,"translate"),g.qZA()}2&e&&g.s9C("placeholder",g.lcZ(1,1,"DIALOGS.ADD_GROUPS.FILTER_GROUPS"))}function se(e,t){1&e&&g._UZ(0,"mat-spinner",19)}var oe=function(){return["select","id","name","description"]};function re(e,t){if(1&e&&(g.TgZ(0,"div",20),g._UZ(1,"perun-web-apps-groups-list",21),g.qZA()),2&e){var i=g.oxw();g.xp6(1),g.Q6J("tableId",i.tableId)("disableRouting",!0)("displayedColumns",g.DdM(7,oe))("selection",i.selection)("filter",i.filterValue)("groups",i.groups)("disableMembers",!1)}}var le=function(){var e=function(){function e(t,n,a,s,r,l,c,d,g){var p=this;i(this,e),this.dialogRef=t,this.data=n,this.authzService=a,this.voService=s,this.groupService=r,this.translate=l,this.notificator=c,this.route=d,this.router=g,this.searchString="",this.selection=new o.Ov(!0,[]),this.groups=[],this.vos=[],this.filterValue="",this.myControl=new h.NI,this.firstSearchDone=!1,this.tableId=u.kZ,l.get("DIALOGS.ADD_GROUPS.TITLE").subscribe(function(e){return p.title=e}),l.get("DIALOGS.ADD_GROUPS.SUCCESS").subscribe(function(e){return p.successMessage=e})}return a(e,[{key:"displayFn",value:function(e){return e?e.name:null}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,this.authzService.setRoleWithGroupComplementaryObject({role:this.selectedRole,authorizedGroups:this.selection.selected.map(function(e){return e.id}),complementaryObject:this.data.complementaryObject}).subscribe(function(){e.notificator.showSuccess(e.successMessage),e.loading=!1,e.dialogRef.close(!0)},function(){return e.loading=!1})}},{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.availableRoles=this.data.availableRoles,this.selectedRole=this.data.selectedRole,this.theme=this.data.theme,this.voService.getMyVos().subscribe(function(t){e.filteredOptions=e.myControl.valueChanges.pipe((0,$.O)(""),(0,W.U)(function(t){return e._filter(t)})),e.vos=t,e.loading=!1},function(){return e.loading=!1})}},{key:"_filter",value:function(e){var t="string"==typeof e?e.toLowerCase():e.name.toLowerCase;return this.vos.filter(function(e){return e.name.toLowerCase().includes(t)})}},{key:"showVoGroups",value:function(e){var t=this;this.loading=!0,this.groupService.getAllGroups(e.option.value.id).subscribe(function(e){t.groups=e,t.loading=!1,t.firstSearchDone=!0},function(){return t.loading=!1})}},{key:"applyFilter",value:function(e){this.filterValue=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(g.Y36(r.so),g.Y36(r.WI),g.Y36(c.Ct),g.Y36(c.YF),g.Y36(c.ff),g.Y36(p.sK),g.Y36(l.V6),g.Y36(f.gz),g.Y36(f.F0))},e.\u0275cmp=g.Xpm({type:e,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"],["type","text","aria-label","Assignee","matInput","",3,"placeholder","formControl","matAutocomplete"],[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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"value"],[3,"placeholder","filter"],[1,"mr-auto","ml-auto"],[1,"mt-3"],[3,"tableId","disableRouting","displayedColumns","selection","filter","groups","disableMembers"]],template:function(e,t){if(1&e&&(g.TgZ(0,"div"),g.TgZ(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"div",1),g.TgZ(5,"div",2),g.TgZ(6,"mat-form-field",3),g.TgZ(7,"mat-label"),g._uU(8),g.ALo(9,"translate"),g.qZA(),g.TgZ(10,"mat-select",4),g.NdJ("valueChange",function(e){return t.selectedRole=e}),g.YNc(11,ie,3,4,"mat-option",5),g.qZA(),g.qZA(),g.TgZ(12,"mat-form-field",6),g.TgZ(13,"mat-label"),g._uU(14),g.ALo(15,"translate"),g.qZA(),g._UZ(16,"input",7),g.ALo(17,"translate"),g.TgZ(18,"mat-autocomplete",8,9),g.NdJ("optionSelected",function(e){return t.showVoGroups(e)}),g.YNc(20,ne,2,2,"mat-option",5),g.ALo(21,"async"),g.qZA(),g.qZA(),g.qZA(),g.YNc(22,ae,2,3,"perun-web-apps-debounce-filter",10),g.TgZ(23,"div",11),g.YNc(24,se,1,0,"mat-spinner",12),g.qZA(),g.YNc(25,re,2,8,"div",13),g.qZA(),g.TgZ(26,"div",14),g.TgZ(27,"button",15),g.NdJ("click",function(){return t.onCancel()}),g._uU(28),g.ALo(29,"translate"),g.qZA(),g.TgZ(30,"button",16),g.NdJ("click",function(){return t.onSubmit()}),g._uU(31),g.ALo(32,"translate"),g.qZA(),g.qZA(),g.qZA()),2&e){var i=g.MAs(19);g.Tol(t.theme),g.xp6(2),g.Oqu(g.lcZ(3,19,"DIALOGS.ADD_GROUPS.TITLE")),g.xp6(6),g.Oqu(g.lcZ(9,21,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),g.xp6(2),g.Q6J("value",t.selectedRole),g.xp6(1),g.Q6J("ngForOf",t.availableRoles),g.xp6(3),g.Oqu(g.lcZ(15,23,"DIALOGS.ADD_GROUPS.SELECT_VO")),g.xp6(2),g.s9C("placeholder",g.lcZ(17,25,"DIALOGS.ADD_GROUPS.SELECT_VO")),g.Q6J("formControl",t.myControl)("matAutocomplete",i),g.xp6(2),g.Q6J("displayWith",t.displayFn),g.xp6(2),g.Q6J("ngForOf",g.lcZ(21,27,t.filteredOptions)),g.xp6(2),g.Q6J("ngIf",null!==t.groups&&t.groups.length>0&&!t.loading),g.xp6(2),g.Q6J("ngIf",t.loading),g.xp6(1),g.Q6J("ngIf",null!==t.groups&&!t.loading),g.xp6(3),g.hij(" ",g.lcZ(29,29,"DIALOGS.ADD_MANAGERS.CANCEL")," "),g.xp6(2),g.Q6J("disabled",0===t.selection.selected.length||t.loading),g.xp6(1),g.hij(" ",g.lcZ(32,31,"DIALOGS.ADD_MANAGERS.CREATE")," ")}},directives:[r.uh,r.xY,m.KE,m.hX,A.gD,v.sg,S.Nt,h.Fj,K.ZL,h.JJ,h.oH,K.XC,v.O5,r.H8,E.lW,R.ey,ee.P,T.$g,te.W],pipes:[p.X$,v.Ov,_],styles:[""]}),e}(),ce=s(84140),ue=s(24820),de=s(55109),he=s(59403);function ge(e,t){1&e&&(g._uU(0),g.ALo(1,"translate")),2&e&&g.hij(" ",g.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.USER")," ")}function pe(e,t){if(1&e){var i=g.EpF();g.TgZ(0,"button",13),g.NdJ("click",function(){return g.CHM(i),g.oxw(2).addManager()}),g._uU(1),g.ALo(2,"translate"),g.qZA()}2&e&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function fe(e,t){if(1&e){var i=g.EpF();g.TgZ(0,"button",14),g.NdJ("click",function(){return g.CHM(i),g.oxw(2).removeManager()}),g._uU(1),g.ALo(2,"translate"),g.qZA()}if(2&e){var n=g.oxw(2);g.Q6J("disabled",0===n.selectionUsers.selected.length),g.xp6(1),g.hij(" ",g.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function me(e,t){if(1&e&&(g.TgZ(0,"mat-option",15),g._uU(1),g.ALo(2,"displayedRole"),g.qZA()),2&e){var i=t.$implicit;g.Q6J("value",i),g.xp6(1),g.Oqu(g.lcZ(2,2,i))}}function Ae(e,t){1&e&&g._UZ(0,"mat-spinner",16)}function ve(e,t){if(1&e&&g._UZ(0,"app-users-list",17),2&e){var i=g.oxw(2);g.Q6J("tableId",i.tableId)("users",i.managers)("disableRouting",!i.routeAuth||i.disableRouting)("displayedColumns",i.displayedUserColumns)("selection",i.selectionUsers)("disableSelf",i.disableSelf)}}function Se(e,t){if(1&e){var i=g.EpF();g.TgZ(0,"perun-web-apps-refresh-button",5),g.NdJ("refresh",function(){return g.CHM(i),g.oxw().refreshUsers()}),g.qZA(),g.YNc(1,pe,3,3,"button",6),g.YNc(2,fe,3,4,"button",7),g.TgZ(3,"mat-form-field",8),g.TgZ(4,"mat-label"),g._uU(5),g.ALo(6,"translate"),g.qZA(),g.TgZ(7,"mat-select",9),g.NdJ("valueChange",function(e){return g.CHM(i),g.oxw().selectedRole=e})("selectionChange",function(){return g.CHM(i),g.oxw().refreshUsers()}),g.YNc(8,me,3,4,"mat-option",10),g.qZA(),g.qZA(),g.YNc(9,Ae,1,0,"mat-spinner",11),g.YNc(10,ve,1,6,"app-users-list",12)}if(2&e){var n=g.oxw();g.xp6(1),g.Q6J("ngIf",n.manageAuth&&!n.configMode),g.xp6(1),g.Q6J("ngIf",n.manageAuth&&!n.configMode),g.xp6(3),g.Oqu(g.lcZ(6,7,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),g.xp6(2),g.Q6J("value",n.selectedRole),g.xp6(1),g.Q6J("ngForOf",n.availableRoles),g.xp6(1),g.Q6J("ngIf",n.loading),g.xp6(1),g.Q6J("ngIf",!n.loading&&n.managers)}}function be(e,t){1&e&&(g._uU(0),g.ALo(1,"translate")),2&e&&g.hij(" ",g.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.GROUP")," ")}function Ee(e,t){if(1&e){var i=g.EpF();g.TgZ(0,"button",21),g.NdJ("click",function(){return g.CHM(i),g.oxw(2).addGroup()}),g._uU(1),g.ALo(2,"translate"),g.qZA()}2&e&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function Re(e,t){if(1&e){var i=g.EpF();g.TgZ(0,"button",22),g.NdJ("click",function(){return g.CHM(i),g.oxw(2).removeGroup()}),g._uU(1),g.ALo(2,"translate"),g.qZA()}if(2&e){var n=g.oxw(2);g.Q6J("disabled",0===n.selectionGroups.selected.length),g.xp6(1),g.hij(" ",g.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function Te(e,t){if(1&e&&(g.TgZ(0,"mat-option",15),g._uU(1),g.ALo(2,"displayedRole"),g.qZA()),2&e){var i=t.$implicit;g.Q6J("value",i),g.xp6(1),g.Oqu(g.lcZ(2,2,i))}}function Ie(e,t){1&e&&g._UZ(0,"mat-spinner",16)}function Ze(e,t){if(1&e&&g._UZ(0,"perun-web-apps-groups-list",23),2&e){var i=g.oxw(2);g.Q6J("tableId",i.tableId)("disableRouting",i.disableRouting)("displayedColumns",i.displayedGroupColumns)("groups",i.groups)("selection",i.selectionGroups)("disableMembers",!1)}}function _e(e,t){if(1&e){var i=g.EpF();g.TgZ(0,"perun-web-apps-refresh-button",5),g.NdJ("refresh",function(){return g.CHM(i),g.oxw().refreshGroups()}),g.qZA(),g.YNc(1,Ee,3,3,"button",18),g.YNc(2,Re,3,4,"button",19),g.TgZ(3,"mat-form-field",8),g.TgZ(4,"mat-label"),g._uU(5),g.ALo(6,"translate"),g.qZA(),g.TgZ(7,"mat-select",9),g.NdJ("valueChange",function(e){return g.CHM(i),g.oxw().selectedRole=e})("selectionChange",function(){return g.CHM(i),g.oxw().refreshGroups()}),g.YNc(8,Te,3,4,"mat-option",10),g.qZA(),g.qZA(),g.YNc(9,Ie,1,0,"mat-spinner",11),g.YNc(10,Ze,1,6,"perun-web-apps-groups-list",20)}if(2&e){var n=g.oxw();g.xp6(1),g.Q6J("ngIf",n.manageAuth&&!n.configMode),g.xp6(1),g.Q6J("ngIf",n.manageAuth&&!n.configMode),g.xp6(3),g.Oqu(g.lcZ(6,7,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),g.xp6(2),g.Q6J("value",n.selectedRole),g.xp6(1),g.Q6J("ngForOf",n.availableRoles),g.xp6(1),g.Q6J("ngIf",n.loading),g.xp6(1),g.Q6J("ngIf",!n.loading&&n.groups)}}function Oe(e,t){1&e&&(g.TgZ(0,"app-alert",24),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&e&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.NO_AVAILABLE_ROLES"),"\n"))}var ye=function(){var t=function(){function t(e,n,a,s,r,l,c){i(this,t),this.dialog=e,this.authzService=n,this.storeService=a,this.guiAuthResolver=s,this.router=r,this.reloadEntityDetail=l,this.route=c,this.groups=null,this.managers=null,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.selectionUsers=new o.Ov(!0,[]),this.selectionGroups=new o.Ov(!0,[]),this.selectedMode="",this.loading=!1,this.tableId=u.HC,this.availableRolesPrivileges=new Map}return a(t,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.routeAuth=this.guiAuthResolver.isPerunAdminOrObserver(),this.guiAuthResolver.getRolesAuthorization(this.availableRoles,this.complementaryObject,this.availableRolesPrivileges),this.availableRoles=this.availableRoles.filter(function(t){return e.availableRolesPrivileges.get(t).readAuth}),0!==this.availableRoles.length&&(this.selectedRole=this.availableRoles[0]),this.refreshUsers()}},{key:"changeRolePrivileges",value:function(){var t=this;this.guiAuthResolver.getRolesAuthorization(this.availableRoles,this.complementaryObject,this.availableRolesPrivileges),this.availableRoles=this.availableRoles.filter(function(e){return t.availableRolesPrivileges.get(e).readAuth}),this.manageAuth=this.availableRolesPrivileges.get(this.selectedRole).manageAuth,this.displayedUserColumns=this.manageAuth?this.displayedUserColumns:this.displayedUserColumns.filter(function(e){return"select"!==e}),this.displayedGroupColumns=this.manageAuth?this.displayedGroupColumns:this.displayedGroupColumns.filter(function(e){return"select"!==e}),this.roleModes=this.availableRolesPrivileges.get(this.selectedRole).modes;var i,n=!1,a=e(this.roleModes);try{for(a.s();!(i=a.n()).done;){var s=i.value;if(this.selectedMode===s.toLowerCase()){n=!0;break}}}catch(o){a.e(o)}finally{a.f()}n||(this.selectedMode=this.roleModes[0].toLowerCase())}},{key:"tabChanged",value:function(e){this.loading=!0,0===e.index?(this.selectedMode="user",this.refreshUsers()):(this.selectedMode="group",this.refreshGroups())}},{key:"refreshUsers",value:function(){var e=this;this.loading=!0,this.changeRolePrivileges();var t=[d.r.USER_DEF_ORGANIZATION,d.r.USER_DEF_PREFERRED_MAIL];t=t.concat(this.storeService.getLoginAttributeNames()),this.authzService.getAuthzRichAdmins(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType,t,!1,!0).subscribe(function(t){e.managers=t,e.selectionUsers.clear(),e.loading=!1},function(){e.loading=!1})}},{key:"refreshGroups",value:function(){var e=this;this.loading=!0,this.changeRolePrivileges(),this.authzService.getAuthzAdminGroups(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType).subscribe(function(t){e.groups=t,e.selectionGroups.clear(),e.loading=!1},function(){e.loading=!1})}},{key:"addManager",value:function(){var e=this,t=(0,ce.kZ)();t.width="1000px",t.data={complementaryObject:this.complementaryObject,theme:this.theme,availableRoles:this.availableRoles,selectedRole:this.selectedRole},this.dialog.open(G,t).afterClosed().subscribe(function(t){t&&e.refreshUsers()})}},{key:"removeManager",value:function(){var e=this,t=(0,ce.kZ)();t.width="450px",t.data={managers:this.selectionUsers.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(Q,t).afterClosed().subscribe(function(t){t&&(e.guiAuthResolver.isManagerPagePrivileged(e.complementaryObject)?(e.reloadEntityDetail.reloadEntityDetail(),e.refreshUsers()):e.redirectToAuthRoute())})}},{key:"removeGroup",value:function(){var e=this,t=(0,ce.kZ)();t.width="450px",t.data={groups:this.selectionGroups.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(X,t).afterClosed().subscribe(function(t){t&&(e.guiAuthResolver.isManagerPagePrivileged(e.complementaryObject)?(e.reloadEntityDetail.reloadEntityDetail(),e.refreshGroups()):e.redirectToAuthRoute())})}},{key:"addGroup",value:function(){var e=this,t=(0,ce.kZ)();t.width="1000px",t.data={complementaryObject:this.complementaryObject,availableRoles:this.availableRoles,theme:this.theme,selectedRole:this.selectedRole},this.dialog.open(le,t).afterClosed().subscribe(function(t){t&&e.refreshGroups()})}},{key:"redirectToAuthRoute",value:function(){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()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(g.Y36(r.uw),g.Y36(c.Ct),g.Y36(l.d6),g.Y36(l.x4),g.Y36(f.F0),g.Y36(ue.G),g.Y36(f.gz))},t.\u0275cmp=g.Xpm({type:t,selectors:[["app-managers-page"]],hostVars:2,hostBindings:function(e,t){2&e&&g.ekj("router-component",t.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"],["mat-flat-button","","color","accent","class","mr-2 mt-2 action-button","data-cy","add-manager-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2 mt-2","data-cy","remove-manager-button",3,"disabled","click",4,"ngIf"],[1,"mr-2","mt-2"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","users","disableRouting","displayedColumns","selection","disableSelf",4,"ngIf"],["mat-flat-button","","color","accent","data-cy","add-manager-button",1,"mr-2","mt-2","action-button",3,"click"],["mat-flat-button","","color","warn","data-cy","remove-manager-button",1,"mr-2","mt-2",3,"disabled","click"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"tableId","users","disableRouting","displayedColumns","selection","disableSelf"],["mat-flat-button","","color","accent","class","mr-2 mt-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2 mt-2",3,"disabled","click",4,"ngIf"],[3,"tableId","disableRouting","displayedColumns","groups","selection","disableMembers",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","mt-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2","mt-2",3,"disabled","click"],[3,"tableId","disableRouting","displayedColumns","groups","selection","disableMembers"],["alert_type","warn"]],template:function(e,t){1&e&&(g.TgZ(0,"h1",0),g._uU(1),g.ALo(2,"translate"),g.qZA(),g.TgZ(3,"mat-tab-group",1),g.NdJ("selectedTabChange",function(e){return t.tabChanged(e)}),g.TgZ(4,"mat-tab"),g.YNc(5,ge,2,3,"ng-template",2),g.YNc(6,Se,11,9,"ng-template",3),g.qZA(),g.TgZ(7,"mat-tab"),g.YNc(8,be,2,3,"ng-template",2),g.YNc(9,_e,11,9,"ng-template",3),g.qZA(),g.qZA(),g.YNc(10,Oe,3,3,"app-alert",4)),2&e&&(g.xp6(1),g.hij(" ",g.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.TITLE"),"\n"),g.xp6(9),g.Q6J("ngIf",0===t.availableRoles.length))},directives:[de.SP,de.uX,de.uD,de.Vc,v.O5,he.t,m.KE,m.hX,A.gD,v.sg,E.lW,R.ey,T.$g,Z.C,te.W,I.w],pipes:[p.X$,_],styles:[""]}),t}()},4196:function(e,t,n){"use strict";n.d(t,{o:function(){return Y}});var s=n(58623),o=n(67033),r=n(4230),l=n(68416),c=n(65249),u=n(84140),d=n(31572),h=n(48160),g=n(82819),p=n(61511),f=n(29236),m=n(66283),A=n(80340),v=n(16073),S=n(15980),b=n(36922),E=n(43691),R=n(39571);function T(e,t){if(1&e){var i=d.EpF();d.TgZ(0,"th",16),d.TgZ(1,"mat-checkbox",17),d.NdJ("change",function(e){d.CHM(i);var t=d.oxw();return e?t.masterToggle():null}),d.qZA(),d.qZA()}if(2&e){var n=d.oxw();d.xp6(1),d.Q6J("aria-label",n.checkboxLabel())("checked",n.selection.hasValue()&&n.isAllSelected())("indeterminate",n.selection.hasValue()&&!n.isAllSelected())}}function I(e,t){if(1&e){var i=d.EpF();d.TgZ(0,"td",18),d.TgZ(1,"mat-checkbox",19),d.NdJ("change",function(e){var t=d.CHM(i).$implicit,n=d.oxw();return e?n.selection.toggle(t):null})("click",function(e){return e.stopPropagation()}),d.qZA(),d.qZA()}if(2&e){var n=t.$implicit,a=d.oxw();d.xp6(1),d.Q6J("aria-label",a.checkboxLabel(n))("checked",a.selection.isSelected(n))}}function Z(e,t){1&e&&(d.TgZ(0,"th",20),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&e&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_ID")))}function _(e,t){if(1&e&&(d.TgZ(0,"td",21),d._uU(1),d.qZA()),2&e){var i=t.$implicit;d.xp6(1),d.Oqu(i.id)}}function O(e,t){1&e&&(d.TgZ(0,"th",22),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&e&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_NAME")))}function y(e,t){if(1&e&&(d.TgZ(0,"div"),d._uU(1),d.qZA()),2&e){var i=d.oxw().$implicit;d.xp6(1),d.hij(" ",i.tagName," ")}}function C(e,t){if(1&e){var i=d.EpF();d.TgZ(0,"div"),d.TgZ(1,"mat-form-field"),d.TgZ(2,"input",25),d.NdJ("ngModelChange",function(e){return d.CHM(i),d.oxw().$implicit.tagName=e}),d.qZA(),d.qZA(),d.qZA()}if(2&e){var n=d.oxw().$implicit;d.xp6(2),d.Q6J("ngModel",n.tagName)}}function x(e,t){if(1&e&&(d.TgZ(0,"td",23),d.YNc(1,y,2,1,"div",24),d.YNc(2,C,3,1,"div",24),d.qZA()),2&e){var i=t.$implicit,n=d.oxw();d.xp6(1),d.Q6J("ngIf",!n.isChanging.isSelected(i)),d.xp6(1),d.Q6J("ngIf",n.isChanging.isSelected(i))}}function U(e,t){1&e&&d._UZ(0,"th",22)}function N(e,t){if(1&e){var i=d.EpF();d.TgZ(0,"button",28),d.NdJ("click",function(){d.CHM(i);var e=d.oxw().$implicit;return d.oxw().edit(e)}),d.ALo(1,"translate"),d.TgZ(2,"mat-icon"),d._uU(3,"edit"),d.qZA(),d.qZA()}2&e&&d.s9C("matTooltip",d.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.EDIT_BUTTON"))}function G(e,t){if(1&e){var i=d.EpF();d.TgZ(0,"button",28),d.NdJ("click",function(){d.CHM(i);var e=d.oxw().$implicit;return d.oxw().save(e)}),d.ALo(1,"translate"),d.TgZ(2,"mat-icon"),d._uU(3,"save"),d.qZA(),d.qZA()}2&e&&d.s9C("matTooltip",d.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.SAVE_BUTTON"))}function D(e,t){if(1&e&&(d.TgZ(0,"td",23),d.TgZ(1,"div",26),d.YNc(2,N,4,3,"button",27),d.YNc(3,G,4,3,"button",27),d.qZA(),d.qZA()),2&e){var i=t.$implicit,n=d.oxw();d.xp6(2),d.Q6J("ngIf",!n.isChanging.isSelected(i)),d.xp6(1),d.Q6J("ngIf",n.isChanging.isSelected(i))}}function L(e,t){1&e&&d._UZ(0,"tr",29)}function k(e,t){1&e&&d._UZ(0,"tr",30)}function w(e,t){if(1&e&&(d.TgZ(0,"app-alert",31),d._uU(1),d.ALo(2,"translate"),d.ALo(3,"translate"),d.qZA()),2&e){var i=d.oxw();d.xp6(1),d.hij(" ","vo"===i.entity?d.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.NO_TAGS"):d.lcZ(3,3,"RESOURCE_DETAIL.TAGS.NO_TAGS"),"\n")}}function M(e,t){1&e&&(d.TgZ(0,"app-alert",31),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&e&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}var Y=function(){var e=function(){function e(t,n,a,s,o){i(this,e),this.resourceManager=t,this.notificator=n,this.translator=a,this.authResolver=s,this.tableCheckbox=o,this.resourceTags=[],this.selection=new r.Ov(!0,[]),this.displayedColumns=["select","id","name","edit"],this.isChanging=new r.Ov(!0,[]),this.pageSizeOptions=u.f7}return a(e,[{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(e){return"id"!==e})),this.dataSource=new o.by(this.resourceTags),this.setDataSource()}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}},{key:"getDataForColumn",value:function(e,t){switch(t){case"id":return e.id.toString();case"name":return e.tagName;default:return""}}},{key:"exportData",value:function(e){(0,u.O6)((0,u.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.filterPredicate=function(t,i){return(0,u.Sd)(t,i,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,i){return(0,u.pR)(t,i,e.getDataForColumn,e)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(e){return e?"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"save",value:function(e){var t=this;this.resourceManager.updateResourceTag({resourceTag:e}).subscribe(function(){t.translator.get("SHARED.COMPONENTS.RESOURCES_TAGS_LIST.EDIT_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e)}),t.isChanging.deselect(e)})}},{key:"edit",value:function(e){this.isChanging.select(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(d.Y36(c.xk),d.Y36(l.V6),d.Y36(h.sK),d.Y36(l.x4),d.Y36(l.UA))},e.\u0275cmp=d.Xpm({type:e,selectors:[["app-resources-tags-list"]],viewQuery:function(e,t){var i;(1&e&&(d.Gf(s.YE,7),d.Gf(u.l9,7)),2&e)&&(d.iGM(i=d.CRH())&&(t.matSort=i.first),d.iGM(i=d.CRH())&&(t.child=i.first))},inputs:{resourceTags:"resourceTags",filterValue:"filterValue",selection:"selection",tableId:"tableId",displayedColumns:"displayedColumns",entity:"entity"},features:[d.TTD],decls:19,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-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(e,t){1&e&&(d.TgZ(0,"div",0),d.TgZ(1,"perun-web-apps-table-wrapper",1),d.NdJ("exportData",function(e){return t.exportData(e)}),d.TgZ(2,"table",2),d.ynx(3,3),d.YNc(4,T,2,3,"th",4),d.YNc(5,I,2,2,"td",5),d.BQk(),d.ynx(6,6),d.YNc(7,Z,3,3,"th",7),d.YNc(8,_,2,1,"td",8),d.BQk(),d.ynx(9,9),d.YNc(10,O,3,3,"th",10),d.YNc(11,x,3,2,"td",11),d.BQk(),d.ynx(12,12),d.YNc(13,U,1,0,"th",10),d.YNc(14,D,4,2,"td",11),d.BQk(),d.YNc(15,L,1,0,"tr",13),d.YNc(16,k,1,0,"tr",14),d.qZA(),d.qZA(),d.qZA(),d.YNc(17,w,4,5,"app-alert",15),d.YNc(18,M,3,3,"app-alert",15)),2&e&&(d.Q6J("hidden",0===t.resourceTags.length||0===t.dataSource.filteredData.length),d.xp6(1),d.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),d.xp6(1),d.Q6J("dataSource",t.dataSource),d.xp6(13),d.Q6J("matHeaderRowDef",t.displayedColumns),d.xp6(1),d.Q6J("matRowDefColumns",t.displayedColumns),d.xp6(1),d.Q6J("ngIf",0===t.resourceTags.length),d.xp6(1),d.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.resourceTags.length))},directives:[g.l,o.BZ,s.YE,o.w1,o.fO,o.Dz,o.as,o.nj,p.O5,o.ge,f.oG,o.ev,s.nU,m.KE,A.Nt,v.Fj,v.JJ,v.On,S.lW,b.gM,E.Hw,o.XQ,o.Gk,R.w],pipes:[h.X$],styles:[""]}),e}()},65267:function(e,t,n){"use strict";n.d(t,{F:function(){return r}});var a=n(31572),s=n(44973),o=n(48160),r=function(){var e=function e(){i(this,e),this.servicePackages=[],this.selectedPackage=null,this.multiple=!1,this.disableAutoSelect=!1,this.theme="",this.packageSelected=new a.vpe,this.nameFunction=function(e){return e.name},this.shortNameFunction=function(e){return e.description},this.searchFunction=function(e){return e.name+e.description}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.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(e,t){1&e&&(a.TgZ(0,"perun-web-apps-entity-search-select",0),a.NdJ("entitySelected",function(e){return t.packageSelected.emit(e)}),a.ALo(1,"translate"),a.ALo(2,"translate"),a.ALo(3,"translate"),a.qZA()),2&e&&a.Q6J("entities",t.servicePackages)("entity",t.selectedPackage)("multiple",t.multiple)("disableAutoSelect",t.disableAutoSelect)("searchFunction",t.searchFunction)("mainTextFunction",t.nameFunction)("secondaryTextFunction",t.shortNameFunction)("selectPlaceholder",a.lcZ(1,11,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.SELECT_PACKAGE"))("findPlaceholder",a.lcZ(2,13,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.FIND_PACKAGE"))("noEntriesText",a.lcZ(3,15,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.NO_PACKAGE_FOUND"))("theme",t.theme)},directives:[s.i],pipes:[o.X$],styles:[""]}),e}()}}])}(); \ No newline at end of file diff --git a/dist/apps/admin-gui/827-es5.cb251f6e5ea0e068bdb7.js b/dist/apps/admin-gui/827-es5.cb251f6e5ea0e068bdb7.js new file mode 100644 index 000000000..d4c352c7f --- /dev/null +++ b/dist/apps/admin-gui/827-es5.cb251f6e5ea0e068bdb7.js @@ -0,0 +1 @@ +!function(){function e(e,i){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,i){if(!e)return;if("string"==typeof e)return t(e,i);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t(e,i)}(e))||i&&e&&"number"==typeof e.length){n&&(e=n);var a=0,s=function(){};return{s:s,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,r=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return r=e.done,e},e:function(e){l=!0,o=e},f:function(){try{r||null==n.return||n.return()}finally{if(l)throw o}}}}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i_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()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Y36(L.gz),h.Y36(o.xk),h.Y36(u.uw),h.Y36(d.x4),h.Y36(d.fb))},e.\u0275cmp=h.Xpm({type:e,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,"tableId","services","selection","filterValue","displayedColumns","disableRouting",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,"tableId","services","selection","filterValue","displayedColumns","disableRouting"]],template:function(e,t){1&e&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"perun-web-apps-refresh-button",1),h.NdJ("refresh",function(){return t.loadAllServices()}),h.qZA(),h.YNc(4,M,3,3,"button",2),h.YNc(5,Y,3,4,"button",3),h.TgZ(6,"perun-web-apps-immediate-filter",4),h.NdJ("filter",function(e){return t.applyFilter(e)}),h.qZA(),h.YNc(7,q,1,0,"mat-spinner",5),h.YNc(8,J,1,6,"app-services-list",6)),2&e&&(h.xp6(1),h.Oqu(h.lcZ(2,6,"RESOURCE_DETAIL.ASSIGNED_SERVICES.TITLE")),h.xp6(3),h.Q6J("ngIf",t.assignServiceAuth),h.xp6(1),h.Q6J("ngIf",t.removeServiceAuth),h.xp6(1),h.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_SERVICES.FILTER_SERVICES"),h.xp6(1),h.Q6J("ngIf",t.loading),h.xp6(1),h.Q6J("ngIf",!t.loading))},directives:[k.t,p.O5,w.L,f.lW,m.$g,S.Q],pipes:[g.X$],styles:[""]}),e}()},79472:function(e,t,n){"use strict";n.d(t,{X:function(){return E}});var s=n(68416),o=n(65249),r=n(31572),l=n(55109),c=n(61511),u=n(541),d=n(3417),h=n(48160);function g(e,t){1&e&&(r._uU(0),r.ALo(1,"translate")),2&e&&r.hij(" ",r.lcZ(1,1,"RESOURCE_DETAIL.ENTITY")," ")}function p(e,t){if(1&e&&r._UZ(0,"app-one-entity-attribute-page",4),2&e){var i=r.oxw();r.Q6J("entity","resource")("entityId",i.resource.id)}}function f(e,t){1&e&&(r._uU(0),r.ALo(1,"translate"),r.ALo(2,"translate")),2&e&&r.AsE(" ",r.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",r.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function m(e,t){if(1&e&&r._UZ(0,"app-two-entity-attribute-page",5),2&e){var i=r.oxw(2);r.Q6J("firstEntity","resource")("firstEntityId",i.resource.id)("secondEntity","member")}}function A(e,t){1&e&&(r.TgZ(0,"mat-tab"),r.YNc(1,f,3,6,"ng-template",1),r.YNc(2,m,1,3,"ng-template",2),r.qZA())}function v(e,t){1&e&&(r._uU(0),r.ALo(1,"translate"),r.ALo(2,"translate")),2&e&&r.AsE(" ",r.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",r.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function S(e,t){if(1&e&&r._UZ(0,"app-two-entity-attribute-page",5),2&e){var i=r.oxw(2);r.Q6J("firstEntity","resource")("firstEntityId",i.resource.id)("secondEntity","group")}}function b(e,t){1&e&&(r.TgZ(0,"mat-tab"),r.YNc(1,v,3,6,"ng-template",1),r.YNc(2,S,1,3,"ng-template",2),r.qZA())}var E=function(){var e=function(){function e(t,n,a){i(this,e),this.authResolver=t,this.resourceManager=n,this.entityStorageService=a}return a(e,[{key:"ngOnInit",value:function(){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])}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(s.x4),r.Y36(o.xk),r.Y36(s.fb))},e.\u0275cmp=r.Xpm({type:e,selectors:[["app-resource-attributes"]],hostVars:2,hostBindings:function(e,t){2&e&&r.ekj("router-component",t.true)},decls:10,vars:5,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,t){1&e&&(r.TgZ(0,"div"),r.TgZ(1,"h1",0),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.TgZ(4,"mat-tab-group"),r.TgZ(5,"mat-tab"),r.YNc(6,g,2,3,"ng-template",1),r.YNc(7,p,1,2,"ng-template",2),r.qZA(),r.YNc(8,A,3,0,"mat-tab",3),r.YNc(9,b,3,0,"mat-tab",3),r.qZA(),r.qZA()),2&e&&(r.xp6(2),r.Oqu(r.lcZ(3,3,"RESOURCE_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),r.xp6(6),r.Q6J("ngIf",t.resourceMemberAttAuth),r.xp6(1),r.Q6J("ngIf",t.resourceGroupAttAuth))},directives:[l.SP,l.uX,l.uD,l.Vc,c.O5,u.t,d.Y],pipes:[h.X$],styles:[""]}),e}()},72920:function(e,t,n){"use strict";n.d(t,{b:function(){return M}});var s=n(17),o=n(75585),r=n(65249),l=n(84140),c=n(68416),u=n(22280),d=n(6527),h=n(95909),g=n(31572),p=n(57629),f=n(48958),m=n(84608),A=n(24820),v=n(66297),S=n(61511),b=n(67806),E=n(43691),R=n(36922),T=n(21575),I=n(15980),Z=n(48160);function _(e,t){1&e&&g._UZ(0,"mat-spinner",3)}function O(e,t){if(1&e){var i=g.EpF();g.TgZ(0,"button",15),g.NdJ("click",function(){return g.CHM(i),g.oxw(2).editResource()}),g.TgZ(1,"mat-icon"),g._uU(2,"edit"),g.qZA(),g.qZA()}}function y(e,t){if(1&e){var i=g.EpF();g.TgZ(0,"button",16),g.NdJ("click",function(){return g.CHM(i),g.oxw(2).deleteResource()}),g.TgZ(1,"mat-icon"),g._uU(2,"delete_forever"),g.qZA(),g.qZA()}}var C=function(e){return["/organizations",e]};function x(e,t){if(1&e&&(g.TgZ(0,"a",8),g._uU(1),g.qZA()),2&e){var i=g.oxw(2);g.Q6J("routerLink",g.VKq(2,C,i.resource.vo.id)),g.xp6(1),g.Oqu(i.resource.vo.name)}}function U(e,t){if(1&e&&(g.TgZ(0,"span"),g._uU(1),g.qZA()),2&e){var i=g.oxw(2);g.xp6(1),g.hij(" ",i.resource.vo.name," ")}}var N=function(e){return["/facilities",e]};function G(e,t){if(1&e&&(g.TgZ(0,"a",8),g._uU(1),g.qZA()),2&e){var i=g.oxw(2);g.Q6J("routerLink",g.VKq(2,N,i.resource.facilityId)),g.xp6(1),g.Oqu(i.resource.facility.name)}}function D(e,t){if(1&e&&(g.TgZ(0,"span"),g._uU(1),g.qZA()),2&e){var i=g.oxw(2);g.xp6(1),g.hij(" ",i.resource.facility.name," ")}}var L=function(){return{color:"black"}},k=function(e){return[e]};function w(e,t){if(1&e&&(g.TgZ(0,"div"),g.TgZ(1,"div",4),g._UZ(2,"mat-icon",5),g.ALo(3,"translate"),g.TgZ(4,"div",6),g.TgZ(5,"div",7),g.TgZ(6,"a",8),g._uU(7),g.qZA(),g.TgZ(8,"span",9),g._uU(9),g.qZA(),g.YNc(10,O,3,0,"button",10),g.YNc(11,y,3,0,"button",11),g.qZA(),g.TgZ(12,"div"),g._uU(13),g.ALo(14,"translate"),g.qZA(),g.TgZ(15,"span",12),g._uU(16),g.ALo(17,"translate"),g.ALo(18,"translate"),g.YNc(19,x,2,4,"a",13),g.YNc(20,U,2,1,"span",2),g._uU(21),g.ALo(22,"translate"),g.YNc(23,G,2,4,"a",14),g.YNc(24,D,2,1,"span",2),g._uU(25),g.ALo(26,"translate"),g.qZA(),g.qZA(),g.qZA(),g._UZ(27,"app-animated-router-outlet"),g.qZA()),2&e){var i=g.oxw();g.xp6(2),g.s9C("matTooltip",g.lcZ(3,20,"RESOURCE_DETAIL.ENTITY")),g.Q6J("ngStyle",g.DdM(32,L)),g.xp6(4),g.Q6J("routerLink",g.VKq(33,k,i.baseUrl)),g.xp6(1),g.hij(" ",i.resource.name," "),g.xp6(2),g.hij(" \xa0#",i.resource.id," "),g.xp6(1),g.Q6J("ngIf",i.editResourceAuth),g.xp6(1),g.Q6J("ngIf",i.deleteAuth),g.xp6(2),g.AsE("",g.lcZ(14,22,"RESOURCE_DETAIL.UUID"),": ",i.resource.uuid,""),g.xp6(3),g.AsE(" ",g.lcZ(17,24,"RESOURCE_DETAIL.ENTITY"),", ",g.lcZ(18,26,"RESOURCE_DETAIL.VO"),": "),g.xp6(3),g.Q6J("ngIf",i.voLinkAuth),g.xp6(1),g.Q6J("ngIf",!i.voLinkAuth),g.xp6(1),g.AsE(" #",i.resource.voId,", ",g.lcZ(22,28,"RESOURCE_DETAIL.FACILITY"),": "),g.xp6(2),g.Q6J("ngIf",i.facilityLinkAuth),g.xp6(1),g.Q6J("ngIf",!i.facilityLinkAuth),g.xp6(1),g.lnq(" #",i.resource.facilityId,", ",g.lcZ(26,30,"RESOURCE_DETAIL.DESCRIPTION"),": ",i.resource.description," ")}}var M=function(){var e=function(){function e(t,n,a,s,o,r,l,c,u,d,h){i(this,e),this.route=t,this.facilityManager=n,this.vosManagerService=a,this.resourcesManager=s,this.sideMenuService=o,this.sideMenuItemService=r,this.dialog=l,this.guiAuthResolver=c,this.router=u,this.entityStorageService=d,this.reloadEntityDetail=h,this.underVoUrl=!1,this.deleteAuth=!1,this.baseUrl="",this.loading=!1}return a(e,[{key:"ngOnInit",value:function(){var e=this;this.reloadData(),this.reloadEntityDetail.entityDetailChange.subscribe(function(){e.reloadData()})}},{key:"reloadData",value:function(){var e=this;this.loading=!0,this.route.params.subscribe(function(t){e.resourcesManager.getRichResourceById(t.resourceId).subscribe(function(t){e.resource=t,e.entityStorageService.setEntity({id:t.id,voId:t.voId,facilityId:t.facilityId,beanName:"Resource"}),e.setAuth(),"facilities"===e.route.parent.snapshot.url[0].path?(e.baseUrl=(new u.r5).transform(t,!1),e.facilityManager.getFacilityById(t.facilityId).subscribe(function(t){e.facility=t,e.setMenuItems(),e.loading=!1},function(){return e.loading=!1})):(e.baseUrl=(new u.r5).transform(t,!0),e.vosManagerService.getVoById(t.voId).subscribe(function(t){e.vo=t,e.underVoUrl=!0,e.setMenuItems(),e.loading=!1},function(){return e.loading=!1})),(0,l.sF)("resources",e.resource)})})}},{key:"setMenuItems",value:function(){var e,t=this.sideMenuItemService.parseResource(this.resource,this.underVoUrl);e=this.underVoUrl?this.sideMenuItemService.parseVo(this.vo):this.sideMenuItemService.parseFacility(this.facility),this.sideMenuService.setAccessMenuItems([e,t])}},{key:"setAuth",value:function(){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])}},{key:"editResource",value:function(){var e,t=this;this.resourcesManager.getResourceById(this.resource.id).subscribe(function(i){e=i;var n=(0,l.kZ)();n.width="450px",n.data={theme:"resource-theme",resource:e,dialogType:d.Eg.RESOURCE},t.dialog.open(d.rd,n).afterClosed().subscribe(function(e){e&&t.resourcesManager.getRichResourceById(t.resource.id).subscribe(function(e){t.resource=e,t.setMenuItems()})})})}},{key:"deleteResource",value:function(){var e=this,t=(0,l.kZ)();t.width="500px",t.data={theme:"resource-theme",resources:[this.resource]},this.dialog.open(h.f,t).afterClosed().subscribe(function(t){t&&e.router.navigate(["../"],{relativeTo:e.route})})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(g.Y36(p.gz),g.Y36(r.IQ),g.Y36(r.YF),g.Y36(r.xk),g.Y36(f.D),g.Y36(o.V),g.Y36(m.uw),g.Y36(c.x4),g.Y36(p.F0),g.Y36(c.fb),g.Y36(A.G))},e.\u0275cmp=g.Xpm({type:e,selectors:[["app-resource-detail-page"]],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"],["mat-icon-button","","aria-label","Edit resource",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"],["mat-icon-button","","aria-label","Edit resource",3,"click"],["mat-icon-button","",3,"click"]],template:function(e,t){1&e&&(g.TgZ(0,"div",0),g._UZ(1,"perun-web-apps-back-button"),g.YNc(2,_,1,0,"mat-spinner",1),g.YNc(3,w,28,35,"div",2),g.qZA()),2&e&&(g.xp6(2),g.Q6J("ngIf",t.loading),g.xp6(1),g.Q6J("ngIf",!t.loading&&void 0!==t.resource))},directives:[v.W,S.O5,b.$g,E.Hw,R.gM,S.PC,p.yS,T.A,I.lW],pipes:[Z.X$],styles:[".break-line[_ngcontent-%COMP%]{display:inline-block}"],data:{animation:[s.Ji]}}),e}()},42473:function(t,n,s){"use strict";s.d(n,{K:function(){return X}});var o=s(65249),r=s(4230),l=s(84608),c=s(67033),u=s(68416),d=s(31572),h=s(48160),g=s(61511),p=s(15980),f=s(67806);function m(e,t){1&e&&d._UZ(0,"mat-spinner",6)}function A(e,t){1&e&&d._UZ(0,"th",15)}function v(e,t){if(1&e&&(d.TgZ(0,"td",16),d._uU(1),d.qZA()),2&e){var i=t.$implicit;d.xp6(1),d.Oqu(i.name)}}function S(e,t){1&e&&d._UZ(0,"tr",17)}function b(e,t){1&e&&d._UZ(0,"tr",18)}function E(e,t){if(1&e&&(d.TgZ(0,"div",7),d.TgZ(1,"p"),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"div",8),d._uU(5),d.ALo(6,"translate"),d.qZA(),d.TgZ(7,"table",9),d.ynx(8,10),d.YNc(9,A,1,0,"th",11),d.YNc(10,v,2,1,"td",12),d.BQk(),d.YNc(11,S,1,0,"tr",13),d.YNc(12,b,1,0,"tr",14),d.qZA(),d.qZA()),2&e){var i=d.oxw();d.xp6(2),d.hij(" ",d.lcZ(3,5,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DESCRIPTION")," "),d.xp6(3),d.hij(" ",d.lcZ(6,7,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.ASK")," "),d.xp6(2),d.Q6J("dataSource",i.dataSource),d.xp6(4),d.Q6J("matHeaderRowDef",i.displayedColumns),d.xp6(1),d.Q6J("matRowDefColumns",i.displayedColumns)}}var R=function(){var t=function(){function t(e,n,a,s,o){i(this,t),this.dialogRef=e,this.data=n,this.notificator=a,this.translate=s,this.resourceManager=o,this.displayedColumns=["name"],this.loading=!1}return a(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new c.by(this.data.groups)}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var t,i=this,n=[],a=e(this.data.groups);try{for(a.s();!(t=a.n()).done;){var s=t.value;n.push(s.id)}}catch(o){a.e(o)}finally{a.f()}this.loading=!0,this.resourceManager.removeGroupsFromResource(n,this.data.resourceId).subscribe(function(){i.translate.get("DIALOGS.REMOVE_GROUP_FROM_RESOURCE.SUCCESS").subscribe(function(e){i.notificator.showSuccess(e),i.dialogRef.close(!0)})},function(){return i.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(d.Y36(l.so),d.Y36(l.WI),d.Y36(u.V6),d.Y36(h.sK),d.Y36(o.xk))},t.\u0275cmp=d.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["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&&(d.TgZ(0,"div"),d.TgZ(1,"h1",0),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.YNc(4,m,1,0,"mat-spinner",1),d.YNc(5,E,13,9,"div",2),d.TgZ(6,"div",3),d.TgZ(7,"button",4),d.NdJ("click",function(){return t.onCancel()}),d._uU(8),d.ALo(9,"translate"),d.qZA(),d.TgZ(10,"button",5),d.NdJ("click",function(){return t.onSubmit()}),d._uU(11),d.ALo(12,"translate"),d.qZA(),d.qZA(),d.qZA()),2&e&&(d.Tol(t.theme),d.xp6(2),d.Oqu(d.lcZ(3,9,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.TITLE")),d.xp6(2),d.Q6J("ngIf",t.loading),d.xp6(1),d.Q6J("ngIf",!t.loading),d.xp6(3),d.hij(" ",d.lcZ(9,11,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.CANCEL")," "),d.xp6(2),d.Q6J("disabled",t.loading),d.xp6(1),d.hij(" ",d.lcZ(12,13,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DELETE")," "))},directives:[l.uh,g.O5,l.H8,p.lW,f.$g,l.xY,c.BZ,c.w1,c.fO,c.Dz,c.as,c.nj,c.ge,c.ev,c.XQ,c.Gk],pipes:[h.X$],styles:[""]}),t}(),T=s(60611),I=s(70663),Z=s(91058),_=s(78364),O=s(27521),y=s(16073),C=["stepper"];function x(e,t){1&e&&d._UZ(0,"mat-spinner",4)}function U(e,t){1&e&&(d._uU(0),d.ALo(1,"translate")),2&e&&d.Oqu(d.lcZ(1,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.GROUPS"))}function N(e,t){1&e&&(d._uU(0),d.ALo(1,"translate")),2&e&&d.Oqu(d.lcZ(1,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.OPTIONS"))}var G=function(){return["select","id","name","description"]};function D(e,t){if(1&e){var i=d.EpF();d.TgZ(0,"div",5),d.TgZ(1,"mat-stepper",6,7),d.TgZ(3,"mat-step",8),d.YNc(4,U,2,3,"ng-template",9),d.TgZ(5,"perun-web-apps-debounce-filter",10),d.NdJ("filter",function(e){return d.CHM(i),d.oxw().applyFilter(e)}),d.ALo(6,"translate"),d.qZA(),d._UZ(7,"perun-web-apps-groups-list",11),d.qZA(),d.TgZ(8,"mat-step"),d.YNc(9,N,2,3,"ng-template",9),d.TgZ(10,"mat-slide-toggle",12),d.NdJ("toggleChange",function(){return d.CHM(i),d.oxw().changeSubgroupsMessage()})("ngModelChange",function(e){return d.CHM(i),d.oxw().autoAssignSubgroups=e}),d._uU(11),d.ALo(12,"translate"),d.qZA(),d.TgZ(13,"div",13),d._UZ(14,"i",14),d.qZA(),d.TgZ(15,"mat-slide-toggle",12),d.NdJ("toggleChange",function(){return d.CHM(i),d.oxw().changeInactiveMessage()})("ngModelChange",function(e){return d.CHM(i),d.oxw().asActive=e}),d._uU(16),d.ALo(17,"translate"),d.qZA(),d.TgZ(18,"div",13),d._uU(19),d.qZA(),d.TgZ(20,"mat-slide-toggle",12),d.NdJ("toggleChange",function(){return d.CHM(i),d.oxw().changeAsyncMessage()})("ngModelChange",function(e){return d.CHM(i),d.oxw().async=e}),d._uU(21),d.ALo(22,"translate"),d.qZA(),d.TgZ(23,"div",13),d._uU(24),d.qZA(),d.qZA(),d.qZA(),d.qZA()}if(2&e){var n=d.oxw();d.xp6(1),d.Q6J("linear",!0),d.xp6(2),d.Q6J("completed",0!==n.selection.selected.length&&n.canAddGroups()),d.xp6(2),d.s9C("placeholder",d.lcZ(6,19,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.FILTER_DESCRIPTION")),d.xp6(2),d.Q6J("tableId",n.tableId)("groups",n.unAssignedGroups)("selection",n.selection)("filter",n.filterValue)("displayedColumns",d.DdM(27,G))("disableRouting",!0)("disableMembers",!1),d.xp6(3),d.Q6J("ngModel",n.autoAssignSubgroups),d.xp6(1),d.hij(" ",d.lcZ(12,21,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS")," "),d.xp6(3),d.Q6J("innerHTML",n.autoAssignHint,d.oJD),d.xp6(1),d.Q6J("ngModel",n.asActive),d.xp6(1),d.hij(" ",d.lcZ(17,23,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AS_ACTIVE")," "),d.xp6(3),d.hij(" ",n.asActiveHint," "),d.xp6(1),d.Q6J("ngModel",n.async),d.xp6(1),d.hij(" ",d.lcZ(22,25,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_OPT")," "),d.xp6(3),d.hij(" ",n.asyncHint," ")}}function L(e,t){if(1&e){var i=d.EpF();d.TgZ(0,"button",20),d.NdJ("click",function(){return d.CHM(i),d.oxw(2).stepperPrevious()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}2&e&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.BACK")," "))}function k(e,t){if(1&e){var i=d.EpF();d.TgZ(0,"button",21),d.NdJ("click",function(){return d.CHM(i),d.oxw(2).stepperNext()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}if(2&e){var n=d.oxw(2);d.ekj("ml-2",void 0!==n.stepper&&0!==n.stepper.selectedIndex)("ml-auto",!(void 0!==n.stepper&&0!==n.stepper.selectedIndex)),d.Q6J("disabled",0===n.selection.selected.length||!n.canAddGroups()),d.xp6(1),d.hij(" ",d.lcZ(2,6,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.NEXT")," ")}}function w(e,t){if(1&e){var i=d.EpF();d.TgZ(0,"button",22),d.NdJ("click",function(){return d.CHM(i),d.oxw(2).onAdd()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}2&e&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ADD_BUTTON")," "))}function M(e,t){if(1&e){var i=d.EpF();d.TgZ(0,"div",15),d.TgZ(1,"button",16),d.NdJ("click",function(){return d.CHM(i),d.oxw().onCancel()}),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.YNc(4,L,3,3,"button",17),d.YNc(5,k,3,8,"button",18),d.YNc(6,w,3,3,"button",19),d.qZA()}if(2&e){var n=d.oxw();d.xp6(2),d.hij(" ",d.lcZ(3,4,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.CANCEL_BUTTON")," "),d.xp6(2),d.Q6J("ngIf",void 0!==n.stepper&&0!==n.stepper.selectedIndex),d.xp6(1),d.Q6J("ngIf",void 0!==n.stepper&&n.stepper.selectedIndex!==n.stepper._steps.length-1),d.xp6(1),d.Q6J("ngIf",void 0!==n.stepper&&n.stepper.selectedIndex===n.stepper._steps.length-1)}}var Y=function(){var t=function(){function t(e,n,a,s,o,l,c,u){i(this,t),this.dialogRef=e,this.data=n,this.notificator=a,this.translate=s,this.resourceManager=o,this.groupService=l,this.guiAuthResolver=c,this.cd=u,this.loading=!1,this.unAssignedGroups=this.data.onlyAutoAssignedGroups,this.async=!0,this.autoAssignSubgroups=!1,this.asActive=!0,this.selection=new r.Ov(!0,[]),this.filterValue="",this.tableId=T.cL}return a(t,[{key:"ngOnInit",value:function(){var t=this;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(function(i){t.groupService.getAllGroups(t.resource.voId).subscribe(function(n){var a,s=e(n);try{var o=function(){var e=a.value;-1===i.findIndex(function(t){return t.id===e.id})&&t.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[t.resource,e])&&t.unAssignedGroups.push(e)};for(s.s();!(a=s.n()).done;)o()}catch(r){s.e(r)}finally{s.f()}t.loading=!1,t.cd.detectChanges()},function(){return t.loading=!1})},function(){return t.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onAdd",value:function(){var t=this;this.loading=!0;var i,n=[],a=e(this.selection.selected);try{for(a.s();!(i=a.n()).done;){var s=i.value;n.push(s.id)}}catch(o){a.e(o)}finally{a.f()}this.resourceManager.assignGroupsToResource(n,this.resource.id,this.async,!this.asActive,this.autoAssignSubgroups).subscribe(function(){t.translate.get("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.SUCCESS_MESSAGE").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"canAddGroups",value:function(){var e=this,t=!0;return this.selection.selected.forEach(function(i){e.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[e.resource,i])||(t=!1)}),t}},{key:"changeSubgroupsMessage",value:function(){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")}},{key:"changeInactiveMessage",value:function(){this.asActiveHint=this.translate.instant(this.asActive?"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ACTIVE_OFF_HINT":"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ACTIVE_ON_HINT")}},{key:"changeAsyncMessage",value:function(){this.asyncHint=this.translate.instant(this.async?"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_OFF_HINT":"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_ON_HINT")}},{key:"stepperPrevious",value:function(){this.stepper.previous()}},{key:"stepperNext",value:function(){this.stepper.next()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(d.Y36(l.so),d.Y36(l.WI),d.Y36(u.V6),d.Y36(h.sK),d.Y36(o.xk),d.Y36(o.ff),d.Y36(u.x4),d.Y36(d.sBO))},t.\u0275cmp=d.Xpm({type:t,selectors:[["app-perun-web-apps-assign-group-to-resource-dialog"]],viewQuery:function(e,t){var i;(1&e&&d.Gf(C,5),2&e)&&(d.iGM(i=d.CRH())&&(t.stepper=i.first))},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,"linear"],["stepper",""],[3,"completed"],["matStepLabel",""],[3,"placeholder","filter"],[3,"tableId","groups","selection","filter","displayedColumns","disableRouting","disableMembers"],["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",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","","type","button",3,"click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","","type","button",3,"disabled","click"],["color","accent","mat-flat-button","","type","button",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(d.TgZ(0,"div"),d.TgZ(1,"h1",0),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.YNc(4,x,1,0,"mat-spinner",1),d.YNc(5,D,25,28,"div",2),d.YNc(6,M,7,6,"div",3),d.qZA()),2&e&&(d.Tol(t.theme),d.xp6(2),d.Oqu(d.lcZ(3,7,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.TITLE")),d.xp6(2),d.Q6J("ngIf",t.loading),d.xp6(1),d.Q6J("ngIf",!t.loading),d.xp6(1),d.Q6J("ngIf",!t.loading&&t.stepper))},directives:[l.uh,g.O5,f.$g,l.xY,I.Vq,I.C0,I.VY,Z.P,_.W,O.Rr,y.JJ,y.On,l.H8,p.lW],pipes:[h.X$],styles:[".slide-text[_ngcontent-%COMP%]{font-size:1.1rem}"]}),t}(),q=s(84140),J=s(67004),P=s(57629),Q=s(59403),V=s(36922);function F(e,t){if(1&e){var i=d.EpF();d.TgZ(0,"button",8),d.NdJ("click",function(){return d.CHM(i),d.oxw().addGroup()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}2&e&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_GROUPS.ADD_GROUP"),"\n"))}function j(e,t){1&e&&d._UZ(0,"mat-spinner",9)}var H=function(e){return[e]},z=function(){return["select","id","indirectGroupAssigment","name","status","description"]};function B(e,t){if(1&e){var i=d.EpF();d.TgZ(0,"perun-web-apps-groups-list",10),d.NdJ("refreshTable",function(){return d.CHM(i),d.oxw().loadAllGroups()}),d.qZA()}if(2&e){var n=d.oxw();d.Q6J("disableGroups",!0)("groupsToDisableCheckbox",n.groupsToDisable)("tableId",n.tableId)("groups",n.assignedGroups)("filter",n.filteredValue)("selection",n.selected)("disableMembers",!1)("resourceId",n.resource.id)("disableRouting",!!n.assignedGroups[0]&&!n.guiAuthResolver.isAuthorized("getGroupById_int_policy",d.VKq(10,H,n.assignedGroups[0])))("displayedColumns",d.DdM(12,z))}}var X=function(){var e=function(){function e(t,n,a,s,o){i(this,e),this.route=t,this.resourcesManager=n,this.dialog=a,this.guiAuthResolver=s,this.entityStorageService=o,this.assignedGroups=[],this.selected=new r.Ov(!0,[]),this.filteredValue="",this.tableId=T.Ad}return a(e,[{key:"ngOnInit",value:function(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.loadAllGroups()}},{key:"loadAllGroups",value:function(){var e=this;this.loading=!0,this.resourcesManager.getGroupAssignments(this.resource.id,[J.r.GROUP_SYNC_ENABLED]).subscribe(function(t){e.assignedGroups=t.map(function(e){var t=e.enrichedGroup.group;return t.status=e.status,t.failureCause=e.failureCause,t.sourceGroupId=e.sourceGroupId,t});var i=e.assignedGroups.map(function(e){return e.id}),n=e.assignedGroups.filter(function(e,t){return i.indexOf(e.id)===t}),a=e.assignedGroups.filter(function(t,n){var a=i.indexOf(t.id);return a!==n&&(null===t.sourceGroupId||null===e.assignedGroups[a].sourceGroupId)}).map(function(e){return e.id});n.forEach(function(e){a.includes(e.id)&&(e.moreTypesOfAssignment=!0)}),e.assignedGroups=n,e.groupsToDisable=new Set(e.assignedGroups.filter(function(e){return!!e.sourceGroupId&&!e.moreTypesOfAssignment}).map(function(e){return e.id})),e.selected.clear(),e.loading=!1})}},{key:"addGroup",value:function(){var e=this,t=(0,q.kZ)();t.width="1000px",t.data={theme:"resource-theme",resource:this.resource,onlyAutoAssignedGroups:this.assignedGroups.filter(function(t){return e.groupsToDisable.has(t.id)})},this.dialog.open(Y,t).afterClosed().subscribe(function(t){t&&e.loadAllGroups()})}},{key:"removeGroups",value:function(){var e=this,t=(0,q.kZ)();t.width="500px",t.data={resourceId:this.resource.id,groups:this.selected.selected,theme:"resource-theme"},this.dialog.open(R,t).afterClosed().subscribe(function(t){t&&e.loadAllGroups()})}},{key:"canRemoveGroups",value:function(){var e=this,t=!0;return this.selected.selected.forEach(function(i){e.guiAuthResolver.isAuthorized("removeGroupsFromResource_List_Resource_policy",[e.resource,i])||(t=!1)}),t}},{key:"applyFilter",value:function(e){this.filteredValue=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(d.Y36(P.gz),d.Y36(o.xk),d.Y36(l.uw),d.Y36(u.x4),d.Y36(u.fb))},e.\u0275cmp=d.Xpm({type:e,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","",3,"click",4,"ngIf"],["color","warn","mat-flat-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","tableId","groups","filter","selection","disableMembers","resourceId","disableRouting","displayedColumns","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableGroups","groupsToDisableCheckbox","tableId","groups","filter","selection","disableMembers","resourceId","disableRouting","displayedColumns","refreshTable"]],template:function(e,t){1&e&&(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 t.loadAllGroups()}),d.qZA(),d.YNc(4,F,3,3,"button",2),d.TgZ(5,"button",3),d.NdJ("click",function(){return t.removeGroups()}),d.TgZ(6,"span",4),d.ALo(7,"translate"),d._uU(8),d.ALo(9,"translate"),d.qZA(),d.qZA(),d.TgZ(10,"perun-web-apps-debounce-filter",5),d.NdJ("filter",function(e){return t.applyFilter(e)}),d.qZA(),d.YNc(11,j,1,0,"mat-spinner",6),d.YNc(12,B,1,13,"perun-web-apps-groups-list",7)),2&e&&(d.xp6(1),d.Oqu(d.lcZ(2,9,"RESOURCE_DETAIL.ASSIGNED_GROUPS.TITLE")),d.xp6(3),d.Q6J("ngIf",t.guiAuthResolver.isAuthorized("getAllGroups_Vo_policy",d.VKq(15,H,t.resource))),d.xp6(1),d.Q6J("disabled",0===t.selected.selected.length||!t.canRemoveGroups()),d.xp6(1),d.s9C("matTooltip",d.lcZ(7,11,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_TOOLTIP")),d.Q6J("matTooltipDisabled",t.canRemoveGroups()),d.xp6(2),d.hij(" ",d.lcZ(9,13,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_GROUP")," "),d.xp6(2),d.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_GROUPS.FILTER_GROUPS"),d.xp6(1),d.Q6J("ngIf",t.loading),d.xp6(1),d.Q6J("ngIf",!t.loading))},directives:[Q.t,g.O5,p.lW,V.gM,Z.P,f.$g,_.W],pipes:[h.X$],styles:[""]}),e}()},76527:function(e,t,n){"use strict";n.d(t,{H:function(){return p}});var s=n(65249),o=n(68416),r=n(31572),l=n(57629),c=n(61511),u=n(67806),d=n(8557);function h(e,t){1&e&&r._UZ(0,"mat-spinner",2)}function g(e,t){if(1&e&&(r.TgZ(0,"div"),r._UZ(1,"perun-web-apps-menu-buttons-field",3),r.qZA()),2&e){var i=r.oxw();r.xp6(1),r.Q6J("items",i.navItems)("size","small")}}var p=function(){var e=function(){function e(t,n,a,s){i(this,e),this.resourcesManager=t,this.route=n,this.guiAuthResolver=a,this.entityStorageService=s,this.navItems=[],this.loading=!1}return a(e,[{key:"ngOnInit",value:function(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.initItems("facilities"!==this.route.parent.parent.snapshot.url[0].path),this.loading=!1}},{key:"initItems",value:function(e){var t=e?"/organizations/".concat(this.resource.voId):"/facilities/".concat(this.resource.facilityId);this.navItems=[],this.guiAuthResolver.isAuthorized("getAssignedGroups_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-group",url:"".concat(t,"/resources/").concat(this.resource.id,"/groups"),label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",style:"resource-btn"}),this.guiAuthResolver.isAuthorized("getAssignedServices_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-service",url:"/".concat(t,"/resources/").concat(this.resource.id,"/services"),label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",style:"resource-btn"}),this.guiAuthResolver.isAuthorized("getAssignedMembers_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-user",url:"".concat(t,"/resources/").concat(this.resource.id,"/members"),label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",style:"resource-btn"}),this.guiAuthResolver.isAuthorized("getAllResourcesTagsForResource_Resource_policy",[this.resource])&&this.navItems.push({cssIcon:"perun-resource-tags",url:"".concat(t,"/resources/").concat(this.resource.id,"/tags"),label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",style:"resource-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:"".concat(t,"/resources/").concat(this.resource.id,"/attributes"),label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",style:"resource-btn"}),this.guiAuthResolver.isManagerPagePrivileged(this.resource)&&this.navItems.push({cssIcon:"perun-settings2",url:"".concat(t,"/resources/").concat(this.resource.id,"/settings"),label:"MENU_ITEMS.RESOURCE.SETTINGS",style:"resource-btn"})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(s.xk),r.Y36(l.gz),r.Y36(o.x4),r.Y36(o.fb))},e.\u0275cmp=r.Xpm({type:e,selectors:[["app-resource-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&r.ekj("router-component",t.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,t){1&e&&(r.YNc(0,h,1,0,"mat-spinner",0),r.YNc(1,g,2,2,"div",1)),2&e&&(r.Q6J("ngIf",t.loading),r.xp6(1),r.Q6J("ngIf",!t.loading))},directives:[c.O5,u.$g,d.L],styles:[""]}),e}()},64359:function(e,t,n){"use strict";n.d(t,{O:function(){return l}});var s=n(68416),o=n(31572),r=n(489),l=function(){var e=function(){function e(t,n){i(this,e),this.guiAuthResolver=t,this.entityStorageService=n,this.availableRoles=[],this.type="Resource",this.theme="resource-theme"}return a(e,[{key:"ngOnInit",value:function(){this.resource=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Resource")}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Y36(s.x4),o.Y36(s.fb))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-resource-settings-managers"]],decls:1,vars:4,consts:[[3,"complementaryObject","complementaryObjectType","theme","availableRoles"]],template:function(e,t){1&e&&o._UZ(0,"app-managers-page",0),2&e&&o.Q6J("complementaryObject",t.resource)("complementaryObjectType",t.type)("theme",t.theme)("availableRoles",t.availableRoles)},directives:[r.s],styles:[""]}),e}()},22927:function(e,t,n){"use strict";n.d(t,{h:function(){return p}});var s=n(65249),o=n(68416),r=n(31572),l=n(57629),c=n(61511),u=n(67806),d=n(8557);function h(e,t){1&e&&r._UZ(0,"mat-spinner",2)}function g(e,t){if(1&e&&(r.TgZ(0,"div"),r._UZ(1,"perun-web-apps-menu-buttons-field",3),r.qZA()),2&e){var i=r.oxw();r.xp6(1),r.Q6J("items",i.items)("size","small")}}var p=function(){var e=function(){function e(t,n,a,s){i(this,e),this.route=t,this.resourceManager=n,this.authResolver=a,this.entityStorageService=s,this.items=[],this.loading=!1}return a(e,[{key:"ngOnInit",value:function(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.initItems("facilities"!==this.route.parent.parent.parent.snapshot.url[0].path),this.loading=!1}},{key:"initItems",value:function(e){this.items=[],this.authResolver.isManagerPagePrivileged(this.resource)&&this.items.push({cssIcon:"perun-manager",url:"".concat(e?"/organizations/".concat(this.resource.voId):"/facilities/".concat(this.resource.facilityId),"/resources/").concat(this.resource.id,"/settings/managers"),label:"MENU_ITEMS.RESOURCE.MANAGERS",style:"resource-btn"})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(l.gz),r.Y36(s.xk),r.Y36(o.x4),r.Y36(o.fb))},e.\u0275cmp=r.Xpm({type:e,selectors:[["app-resource-settings-overview"]],hostVars:2,hostBindings:function(e,t){2&e&&r.ekj("router-component",t.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,t){1&e&&(r.YNc(0,h,1,0,"mat-spinner",0),r.YNc(1,g,2,2,"div",1)),2&e&&(r.Q6J("ngIf",t.loading),r.xp6(1),r.Q6J("ngIf",!t.loading))},directives:[c.O5,u.$g,d.L],styles:[""]}),e}()},77968:function(e,t,n){"use strict";n.d(t,{t:function(){return r}});var a=n(17),s=n(31572),o=n(21575),r=function(){var e=function e(){i(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=s.Xpm({type:e,selectors:[["app-resource-settings"]],hostVars:2,hostBindings:function(e,t){2&e&&s.ekj("router-component",t.true)},decls:1,vars:0,template:function(e,t){1&e&&s._UZ(0,"app-animated-router-outlet")},directives:[o.A],styles:[""],data:{animation:[a.Ji]}}),e}()},53134:function(e,t,n){"use strict";n.d(t,{v:function(){return C}});var s=n(65249),o=n(4230),r=n(60611),l=n(84140),c=n(68416),u=n(6527),d=n(84608),h=n(31572),g=n(61511),p=n(15980),f=n(67806),m=n(4196),A=n(48160);function v(e,t){1&e&&h._UZ(0,"mat-spinner",8)}function S(e,t){if(1&e&&h._UZ(0,"app-resources-tags-list",9),2&e){var i=h.oxw();h.Q6J("selection",i.selection)("tableId",i.tableId)("resourceTags",i.resourceTags)("filterValue",i.filterValue)("displayedColumns",i.displayedColumns)("entity","resource")}}var b=function(){var e=function(){function e(t,n,a){i(this,e),this.dialogRef=t,this.data=n,this.resourcesManager=a,this.tableId=r.g,this.selection=new o.Ov(!0,[]),this.resourceTags=[],this.displayedColumns=["select","id","name"]}return a(e,[{key:"ngOnInit",value:function(){var e=this;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(function(t){e.resourceTags=t.filter(function(t){return e.assignedTags.map(function(e){return e.id}).indexOf(t.id)<=-1}),e.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(e){var t=this;if(0===e.length)return this.dialogRef.close(!0);var i=e.pop();this.resourcesManager.assignResourceTagToResource({resource:this.resourceId,resourceTag:i}).subscribe(function(){t.onSubmit(e)})}},{key:"applyFilter",value:function(e){this.filterValue=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Y36(d.so),h.Y36(d.WI),h.Y36(s.xk))},e.\u0275cmp=h.Xpm({type:e,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","tableId","resourceTags","filterValue","displayedColumns","entity",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,"mr-auto","ml-auto"],[3,"selection","tableId","resourceTags","filterValue","displayedColumns","entity"]],template:function(e,t){1&e&&(h.TgZ(0,"div"),h.TgZ(1,"h1",0),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"div",1),h.TgZ(5,"div",2),h.YNc(6,v,1,0,"mat-spinner",3),h.qZA(),h.YNc(7,S,1,6,"app-resources-tags-list",4),h.qZA(),h.TgZ(8,"div",5),h.TgZ(9,"button",6),h.NdJ("click",function(){return t.onCancel()}),h._uU(10),h.ALo(11,"translate"),h.qZA(),h.TgZ(12,"button",7),h.NdJ("click",function(){return t.onSubmit(t.selection.selected)}),h._uU(13),h.ALo(14,"translate"),h.qZA(),h.qZA(),h.qZA()),2&e&&(h.Tol(t.theme),h.xp6(2),h.Oqu(h.lcZ(3,9,"RESOURCE_DETAIL.TAGS.ADD_TAGS")),h.xp6(4),h.Q6J("ngIf",t.loading),h.xp6(1),h.Q6J("ngIf",!t.loading),h.xp6(3),h.hij(" ",h.lcZ(11,11,"RESOURCE_DETAIL.TAGS.CANCEL")," "),h.xp6(2),h.Q6J("disabled",t.loading||0===t.resourceTags.length),h.xp6(1),h.hij(" ",h.lcZ(14,13,"RESOURCE_DETAIL.TAGS.ADD_BUTTON")," "))},directives:[d.uh,d.xY,g.O5,d.H8,p.lW,f.$g,m.o],pipes:[A.X$],styles:[""]}),e}(),E=n(24923),R=n(59403),T=n(19139);function I(e,t){if(1&e){var i=h.EpF();h.TgZ(0,"button",7),h.NdJ("click",function(){return h.CHM(i),h.oxw().create()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&e&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function Z(e,t){if(1&e){var i=h.EpF();h.TgZ(0,"button",7),h.NdJ("click",function(){return h.CHM(i),h.oxw().addTag()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&e&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"RESOURCE_DETAIL.TAGS.ADD_BUTTON"),"\n"))}function _(e,t){if(1&e){var i=h.EpF();h.TgZ(0,"button",8),h.NdJ("click",function(){return h.CHM(i),h.oxw().removeTags()}),h._uU(1),h.ALo(2,"translate"),h.qZA()}if(2&e){var n=h.oxw();h.Q6J("disabled",0===n.selection.selected.length),h.xp6(1),h.hij(" ",h.lcZ(2,2,"RESOURCE_DETAIL.TAGS.REMOVE_BUTTON"),"\n")}}function O(e,t){1&e&&h._UZ(0,"mat-spinner",9)}function y(e,t){if(1&e&&h._UZ(0,"app-resources-tags-list",10),2&e){var i=h.oxw();h.Q6J("selection",i.selection)("tableId",i.tableId)("resourceTags",i.resourceTags)("filterValue",i.filterValue)("displayedColumns",i.displayedColumns)("entity","resource")}}var C=function(){var e=function(){function e(t,n,a,s,l,c){i(this,e),this.authResolver=t,this.resourcesManager=n,this.dialog=a,this.notificator=s,this.translate=l,this.entityStorageService=c,this.loading=!1,this.resourceTags=[],this.selection=new o.Ov(!0,[]),this.tableId=r.M8,this.displayedColumns=[]}return a(e,[{key:"ngOnInit",value:function(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.setAuthRights(),this.updateData()}},{key:"removeTags",value:function(){var e=this,t=(0,l.kZ)();t.width="450px",t.data={items:this.selection.selected.map(function(e){return e.tagName}),title:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_TITLE",description:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_DESCRIPTION",theme:"resource-theme"},this.dialog.open(u.Tf,t).afterClosed().subscribe(function(t){t&&e.removeTag(e.selection.selected)})}},{key:"removeTag",value:function(e){var t=this;if(0===e.length)return this.notificator.showSuccess(this.translate.instant("RESOURCE_DETAIL.TAGS.REMOVED_SUCCESSFULLY")),this.updateData();var i=e.pop();this.resourcesManager.removeResourceTagFromResource({resource:this.resource.id,resourceTag:i}).subscribe(function(){t.removeTag(e)})}},{key:"addTag",value:function(){var e=this,t=(0,l.kZ)();t.width="600px",t.data={voId:this.resource.voId,resourceId:this.resource.id,assignedTags:this.resourceTags,theme:"resource-theme"},this.dialog.open(b,t).afterClosed().subscribe(function(t){t&&(e.notificator.showSuccess(e.translate.instant("RESOURCE_DETAIL.TAGS.ADDED_SUCCESSFULLY")),e.updateData())})}},{key:"create",value:function(){var e=this,t=(0,l.kZ)();t.width="450px",t.data={voId:this.resource.voId,theme:"resource-theme"},this.dialog.open(E.p,t).afterClosed().subscribe(function(t){t&&(e.translate.get("VO_DETAIL.RESOURCES.TAGS.CREATE_SUCCESS").subscribe(function(t){e.notificator.showSuccess(t)}),e.updateData())})}},{key:"updateData",value:function(){var e=this;this.loading=!0,this.selection.clear(),this.resourcesManager.getAllResourcesTagsForResource(this.resource.id).subscribe(function(t){e.resourceTags=t,e.selection.clear(),e.loading=!1})}},{key:"setAuthRights",value:function(){var e={id:this.resource.voId,beanName:"Vo"};this.displayedColumns=[],this.createAuth=this.authResolver.isAuthorized("createResourceTag_ResourceTag_Vo_policy",[e]),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"]}},{key:"applyFilter",value:function(e){this.filterValue=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Y36(c.x4),h.Y36(s.xk),h.Y36(d.uw),h.Y36(c.V6),h.Y36(A.sK),h.Y36(c.fb))},e.\u0275cmp=h.Xpm({type:e,selectors:[["app-perun-web-apps-resource-tags"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["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,"selection","tableId","resourceTags","filterValue","displayedColumns","entity",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,"selection","tableId","resourceTags","filterValue","displayedColumns","entity"]],template:function(e,t){1&e&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"perun-web-apps-refresh-button",1),h.NdJ("refresh",function(){return t.updateData()}),h.qZA(),h.YNc(4,I,3,3,"button",2),h.YNc(5,Z,3,3,"button",2),h.YNc(6,_,3,4,"button",3),h.TgZ(7,"perun-web-apps-immediate-filter",4),h.NdJ("filter",function(e){return t.applyFilter(e)}),h.qZA(),h.YNc(8,O,1,0,"mat-spinner",5),h.YNc(9,y,1,6,"app-resources-tags-list",6)),2&e&&(h.xp6(1),h.Oqu(h.lcZ(2,7,"RESOURCE_DETAIL.TAGS.TITLE")),h.xp6(3),h.Q6J("ngIf",t.createAuth),h.xp6(1),h.Q6J("ngIf",t.addAuth),h.xp6(1),h.Q6J("ngIf",t.removeAuth),h.xp6(1),h.Q6J("placeholder","RESOURCE_DETAIL.TAGS.SEARCH"),h.xp6(1),h.Q6J("ngIf",t.loading),h.xp6(1),h.Q6J("ngIf",!t.loading))},directives:[R.t,g.O5,T.L,p.lW,f.$g,m.o],pipes:[A.X$],styles:[""]}),e}()},24923:function(e,t,n){"use strict";n.d(t,{p:function(){return A}});var s=n(84608),o=n(65249),r=n(31572),l=n(61511),c=n(15980),u=n(67806),d=n(66283),h=n(80340),g=n(16073),p=n(48160);function f(e,t){1&e&&r._UZ(0,"mat-spinner",6)}function m(e,t){if(1&e){var i=r.EpF();r.TgZ(0,"div",7),r.TgZ(1,"mat-form-field"),r.TgZ(2,"input",8),r.NdJ("ngModelChange",function(e){return r.CHM(i),r.oxw().name=e}),r.ALo(3,"translate"),r.qZA(),r.TgZ(4,"mat-error"),r._uU(5),r.ALo(6,"translate"),r.qZA(),r.qZA(),r.qZA()}if(2&e){var n=r.oxw();r.xp6(2),r.s9C("placeholder",r.lcZ(3,3,"DIALOGS.CREATE_RESOURCE_TAG.NAME")),r.Q6J("ngModel",n.name),r.xp6(3),r.Oqu(r.lcZ(6,5,"DIALOGS.CREATE_RESOURCE_TAG.EMPTY_NAME"))}}var A=function(){var e=function(){function e(t,n,a){i(this,e),this.dialogRef=t,this.data=n,this.resourceManager=a,this.name="",this.loading=!1}return a(e,[{key:"ngOnInit",value:function(){this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;""!==this.name&&(this.loading=!0,this.resourceManager.createResourceTagWithTagName(this.name,this.data.voId).subscribe(function(){e.dialogRef.close(!0)},function(){return e.loading=!1}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(s.so),r.Y36(s.WI),r.Y36(o.xk))},e.\u0275cmp=r.Xpm({type:e,selectors:[["app-create-resource-tag-dialog"]],decls:13,vars:15,consts:[["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","accent",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(e,t){1&e&&(r.TgZ(0,"div"),r.TgZ(1,"h1",0),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.YNc(4,f,1,0,"mat-spinner",1),r.YNc(5,m,7,7,"div",2),r.TgZ(6,"div",3),r.TgZ(7,"button",4),r.NdJ("click",function(){return t.onCancel()}),r._uU(8),r.ALo(9,"translate"),r.qZA(),r.TgZ(10,"button",5),r.NdJ("click",function(){return t.onSubmit()}),r._uU(11),r.ALo(12,"translate"),r.qZA(),r.qZA(),r.qZA()),2&e&&(r.Tol(t.theme),r.xp6(2),r.Oqu(r.lcZ(3,9,"DIALOGS.CREATE_RESOURCE_TAG.TITLE")),r.xp6(2),r.Q6J("ngIf",t.loading),r.xp6(1),r.Q6J("ngIf",!t.loading),r.xp6(3),r.hij(" ",r.lcZ(9,11,"DIALOGS.CREATE_RESOURCE_TAG.CANCEL")," "),r.xp6(2),r.Q6J("disabled",t.loading),r.xp6(1),r.hij(" ",r.lcZ(12,13,"DIALOGS.CREATE_RESOURCE_TAG.CREATE")," "))},directives:[s.uh,l.O5,s.H8,c.lW,u.$g,s.xY,d.KE,h.Nt,g.Fj,g.Q7,g.JJ,g.On,d.TO],pipes:[p.X$],styles:[""]}),e}()},489:function(t,n,s){"use strict";s.d(n,{s:function(){return ye}});var o=s(4230),r=s(84608),l=s(68416),c=s(65249),u=s(60611),d=s(67004),h=s(16073),g=s(31572),p=s(48160),f=s(57629),m=s(66283),A=s(4786),v=s(61511),S=s(80340),b=s(84534),E=s(15980),R=s(71522),T=s(67806),I=s(39571),Z=s(77889),_=function(){var e=function(){function e(t){i(this,e),this.translate=t,this.prefix="ROLES."}return a(e,[{key:"transform",value:function(e){var t=this.prefix.concat(e);return this.translate.instant(t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(g.Y36(p.sK,16))},e.\u0275pipe=g.Yjl({name:"displayedRole",type:e,pure:!0}),e}();function O(e,t){if(1&e&&(g.TgZ(0,"mat-option",15),g._uU(1),g.ALo(2,"displayedRole"),g.qZA()),2&e){var i=t.$implicit;g.Q6J("value",i),g.xp6(1),g.Oqu(g.lcZ(2,2,i))}}function y(e,t){1&e&&g._UZ(0,"mat-spinner",16)}function C(e,t){1&e&&(g.TgZ(0,"app-alert",20),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&e&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"DIALOGS.ADD_MANAGERS.NO_USERS_FOUND")," "))}var x=function(){return["select","id","name","email","logins","organization"]};function U(e,t){if(1&e&&g._UZ(0,"app-users-list",21),2&e){var i=g.oxw(2);g.Q6J("tableId",i.tableId)("disableRouting",!0)("selection",i.selection)("displayedColumns",g.DdM(5,x))("users",i.users)}}function N(e,t){if(1&e&&(g.TgZ(0,"div",17),g.YNc(1,C,3,3,"app-alert",18),g.YNc(2,U,1,6,"app-users-list",19),g.qZA()),2&e){var i=g.oxw();g.xp6(1),g.Q6J("ngIf",0===i.users.length&&i.firstSearchDone),g.xp6(1),g.Q6J("ngIf",0!==i.users.length)}}var G=function(){var e=function(){function e(t,n,a,s,r,l,c,d,h){var g=this;i(this,e),this.dialogRef=t,this.data=n,this.authzService=a,this.usersService=s,this.translate=r,this.notificator=l,this.storeService=c,this.route=d,this.router=h,this.selection=new o.Ov(!0,[]),this.users=[],this.firstSearchDone=!1,this.tableId=u.H2,r.get("DIALOGS.ADD_MANAGERS.TITLE").subscribe(function(e){return g.title=e}),r.get("DIALOGS.ADD_MANAGERS.SUCCESS").subscribe(function(e){return g.successMessage=e})}return a(e,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.availableRoles=this.data.availableRoles,this.selectedRole=this.data.selectedRole,this.searchCtrl=new h.NI("",[h.kI.required,h.kI.pattern(".*[\\S]+.*")])}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,this.authzService.setRoleWithUserComplementaryObject({role:this.selectedRole,users:this.selection.selected.map(function(e){return e.id}),complementaryObject:this.data.complementaryObject}).subscribe(function(){e.notificator.showSuccess(e.successMessage),e.loading=!1,e.dialogRef.close(!0)},function(){return e.loading=!1})}},{key:"onSearchByString",value:function(){var e=this;if(this.searchCtrl.invalid)this.searchCtrl.markAllAsTouched();else{this.loading=!0,this.selection.clear();var t=[d.r.USER_DEF_ORGANIZATION,d.r.USER_DEF_PREFERRED_MAIL];t=t.concat(this.storeService.getLoginAttributeNames()),this.usersService.findRichUsersWithAttributes(this.searchCtrl.value,t).subscribe(function(t){e.users=t,e.loading=!1,e.firstSearchDone=!0},function(){return e.loading=!1})}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(g.Y36(r.so),g.Y36(r.WI),g.Y36(c.Ct),g.Y36(c.Fv),g.Y36(p.sK),g.Y36(l.V6),g.Y36(l.d6),g.Y36(f.gz),g.Y36(f.F0))},e.\u0275cmp=g.Xpm({type:e,selectors:[["app-add-manager-dialog"]],decls:32,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"],["mat-flat-button","","color","accent","data-cy","search-manager-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"],["mat-flat-button","","color","accent","data-cy","add-manager-button-dialog",1,"ml-2",3,"disabled","click"],[3,"value"],[1,"mr-auto","ml-auto"],[1,"mt-3"],["alert_type","warn",4,"ngIf"],[3,"tableId","disableRouting","selection","displayedColumns","users",4,"ngIf"],["alert_type","warn"],[3,"tableId","disableRouting","selection","displayedColumns","users"]],template:function(e,t){1&e&&(g.TgZ(0,"div"),g.TgZ(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"div",1),g.TgZ(5,"div",2),g.TgZ(6,"mat-form-field",3),g.TgZ(7,"mat-label"),g._uU(8),g.ALo(9,"translate"),g.qZA(),g.TgZ(10,"mat-select",4),g.NdJ("valueChange",function(e){return t.selectedRole=e}),g.YNc(11,O,3,4,"mat-option",5),g.qZA(),g.qZA(),g.TgZ(12,"mat-form-field",6),g.TgZ(13,"label"),g.TgZ(14,"input",7),g.NdJ("keyup.enter",function(){return t.onSearchByString()}),g.ALo(15,"translate"),g.qZA(),g.qZA(),g.TgZ(16,"mat-error"),g._uU(17),g.ALo(18,"translate"),g.qZA(),g.qZA(),g.qZA(),g.TgZ(19,"button",8),g.NdJ("click",function(){return t.onSearchByString()}),g._uU(20),g.ALo(21,"translate"),g.qZA(),g.TgZ(22,"div",9),g.YNc(23,y,1,0,"mat-spinner",10),g.qZA(),g.YNc(24,N,3,2,"div",11),g.qZA(),g.TgZ(25,"div",12),g.TgZ(26,"button",13),g.NdJ("click",function(){return t.onCancel()}),g._uU(27),g.ALo(28,"translate"),g.qZA(),g.TgZ(29,"button",14),g.NdJ("click",function(){return t.onSubmit()}),g._uU(30),g.ALo(31,"translate"),g.qZA(),g.qZA(),g.qZA()),2&e&&(g.Tol(t.theme),g.xp6(2),g.Oqu(g.lcZ(3,17,"DIALOGS.ADD_MANAGERS.TITLE")),g.xp6(6),g.Oqu(g.lcZ(9,19,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),g.xp6(2),g.Q6J("value",t.selectedRole),g.xp6(1),g.Q6J("ngForOf",t.availableRoles),g.xp6(3),g.s9C("placeholder",g.lcZ(15,21,"DIALOGS.ADD_MANAGERS.DESCRIPTION")),g.Q6J("formControl",t.searchCtrl),g.xp6(3),g.hij(" ",g.lcZ(18,23,"DIALOGS.ADD_MANAGERS.EMPTY_SEARCH_MESSAGE")," "),g.xp6(2),g.Q6J("disabled",t.loading),g.xp6(1),g.hij(" ",g.lcZ(21,25,"DIALOGS.ADD_MANAGERS.SEARCH")," "),g.xp6(3),g.Q6J("ngIf",t.loading),g.xp6(1),g.Q6J("ngIf",null!==t.users&&!t.loading),g.xp6(3),g.hij(" ",g.lcZ(28,27,"DIALOGS.ADD_MANAGERS.CANCEL")," "),g.xp6(2),g.Q6J("disabled",0===t.selection.selected.length||void 0===t.selectedRole||t.loading),g.xp6(1),g.hij(" ",g.lcZ(31,29,"DIALOGS.ADD_MANAGERS.CREATE")," "))},directives:[r.uh,r.xY,m.KE,m.hX,A.gD,v.sg,S.Nt,h.Fj,b.hT,h.JJ,h.oH,m.TO,E.lW,v.O5,r.H8,R.ey,T.$g,I.w,Z.C],pipes:[p.X$,_],styles:[".inline-dialog-items[_ngcontent-%COMP%]{display:flex;align-items:flex-end}"]}),e}(),D=s(67033);function L(e,t){1&e&&g._UZ(0,"th",15)}function k(e,t){if(1&e&&(g.TgZ(0,"td",16),g._uU(1),g.qZA()),2&e){var i=t.$implicit;g.xp6(1),g.AsE("",i.firstName," ",i.lastName,"")}}function w(e,t){1&e&&g._UZ(0,"tr",17)}function M(e,t){1&e&&g._UZ(0,"tr",18)}var Y=function(e){return{role:e}};function q(e,t){if(1&e&&(g.TgZ(0,"app-alert",19),g._uU(1),g.ALo(2,"translate"),g.ALo(3,"displayedRole"),g.qZA()),2&e){var i=g.oxw(2);g.xp6(1),g.hij(" ",g.xi3(2,1,"DIALOGS.REMOVE_MANAGERS.WARNING_REMOVE_YOURSELF",g.VKq(6,Y,g.lcZ(3,4,i.data.role)))," ")}}function J(e,t){if(1&e&&(g.TgZ(0,"div",6),g.TgZ(1,"p"),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"div",7),g._uU(5),g.ALo(6,"translate"),g.qZA(),g.TgZ(7,"table",8),g.ynx(8,9),g.YNc(9,L,1,0,"th",10),g.YNc(10,k,2,2,"td",11),g.BQk(),g.YNc(11,w,1,0,"tr",12),g.YNc(12,M,1,0,"tr",13),g.qZA(),g.YNc(13,q,4,8,"app-alert",14),g.qZA()),2&e){var i=g.oxw();g.xp6(2),g.hij(" ",g.lcZ(3,6,"DIALOGS.REMOVE_MANAGERS.DESCRIPTION")," "),g.xp6(3),g.hij(" ",g.lcZ(6,8,"DIALOGS.REMOVE_MANAGERS.ASK")," "),g.xp6(2),g.Q6J("dataSource",i.dataSource),g.xp6(4),g.Q6J("matHeaderRowDef",i.displayedColumns),g.xp6(1),g.Q6J("matRowDefColumns",i.displayedColumns),g.xp6(1),g.Q6J("ngIf",i.removeSelf)}}function P(e,t){1&e&&g._UZ(0,"mat-spinner",20)}var Q=function(){var e=function(){function e(t,n,a,s,o,r,l){i(this,e),this.dialogRef=t,this.data=n,this.notificator=a,this.translate=s,this.authzService=o,this.store=r,this.authService=l,this.displayedColumns=["name"]}return a(e,[{key:"ngOnInit",value:function(){this.dataSource=new D.by(this.data.managers),this.theme=this.data.theme,this.removeSelf=this.data.managers.map(function(e){return e.id}).includes(this.store.getPerunPrincipal().userId)&&!this.authService.isPerunAdmin()}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,this.authzService.unsetRoleWithUserComplementaryObject({role:this.data.role,users:this.data.managers.map(function(e){return e.id}),complementaryObject:this.data.complementaryObject}).subscribe(function(){e.translate.get("DIALOGS.REMOVE_MANAGERS.SUCCESS").subscribe(function(t){e.notificator.showSuccess(t),e.loading=!1,e.dialogRef.close(!0)},function(){return e.loading=!1})},function(){return e.loading=!1})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(g.Y36(r.so),g.Y36(r.WI),g.Y36(l.V6),g.Y36(p.sK),g.Y36(c.Ct),g.Y36(l.d6),g.Y36(l.x4))},e.\u0275cmp=g.Xpm({type:e,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"],["mat-flat-button","","color","warn","data-cy","remove-manager-button-dialog",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"],["mat-header-row","","class","font-weight-bolder",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(e,t){1&e&&(g.TgZ(0,"div"),g.TgZ(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.YNc(4,J,14,10,"div",1),g.YNc(5,P,1,0,"mat-spinner",2),g.TgZ(6,"div",3),g.TgZ(7,"button",4),g.NdJ("click",function(){return t.onCancel()}),g._uU(8),g.ALo(9,"translate"),g.qZA(),g.TgZ(10,"button",5),g.NdJ("click",function(){return t.onSubmit()}),g._uU(11),g.ALo(12,"translate"),g.qZA(),g.qZA(),g.qZA()),2&e&&(g.Tol(t.theme),g.xp6(2),g.Oqu(g.lcZ(3,9,"DIALOGS.REMOVE_MANAGERS.TITLE")),g.xp6(2),g.Q6J("ngIf",!t.loading),g.xp6(1),g.Q6J("ngIf",t.loading),g.xp6(3),g.hij(" ",g.lcZ(9,11,"DIALOGS.REMOVE_MANAGERS.CANCEL")," "),g.xp6(2),g.Q6J("disabled",t.loading),g.xp6(1),g.hij(" ",g.lcZ(12,13,"DIALOGS.REMOVE_MANAGERS.DELETE")," "))},directives:[r.uh,v.O5,r.H8,E.lW,r.xY,D.BZ,D.w1,D.fO,D.Dz,D.as,D.nj,D.ge,D.ev,D.XQ,D.Gk,I.w,T.$g],pipes:[p.X$,_],styles:[""]}),e}();function V(e,t){1&e&&g._UZ(0,"mat-spinner",6)}function F(e,t){1&e&&g._UZ(0,"th",15)}function j(e,t){if(1&e&&(g.TgZ(0,"td",16),g._uU(1),g.qZA()),2&e){var i=t.$implicit;g.xp6(1),g.Oqu(i.name)}}function H(e,t){1&e&&g._UZ(0,"tr",17)}function z(e,t){1&e&&g._UZ(0,"tr",18)}function B(e,t){if(1&e&&(g.TgZ(0,"div",7),g.TgZ(1,"p"),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"div",8),g._uU(5),g.ALo(6,"translate"),g.qZA(),g.TgZ(7,"table",9),g.ynx(8,10),g.YNc(9,F,1,0,"th",11),g.YNc(10,j,2,1,"td",12),g.BQk(),g.YNc(11,H,1,0,"tr",13),g.YNc(12,z,1,0,"tr",14),g.qZA(),g.qZA()),2&e){var i=g.oxw();g.xp6(2),g.hij(" ",g.lcZ(3,5,"DIALOGS.REMOVE_GROUPS.DESCRIPTION")," "),g.xp6(3),g.hij(" ",g.lcZ(6,7,"DIALOGS.REMOVE_GROUPS.ASK")," "),g.xp6(2),g.Q6J("dataSource",i.dataSource),g.xp6(4),g.Q6J("matHeaderRowDef",i.displayedColumns),g.xp6(1),g.Q6J("matRowDefColumns",i.displayedColumns)}}var X=function(){var e=function(){function e(t,n,a,s,o){i(this,e),this.dialogRef=t,this.data=n,this.notificator=a,this.translate=s,this.authzService=o,this.displayedColumns=["name"]}return a(e,[{key:"ngOnInit",value:function(){this.dataSource=new D.by(this.data.groups),this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,this.authzService.unsetRoleWithGroupComplementaryObject({role:this.data.role,authorizedGroups:this.data.groups.map(function(e){return e.id}),complementaryObject:this.data.complementaryObject}).subscribe(function(){e.translate.get("DIALOGS.REMOVE_GROUPS.SUCCESS").subscribe(function(t){e.notificator.showSuccess(t),e.loading=!1,e.dialogRef.close(!0)},function(){return e.loading=!1})},function(){return e.loading=!1})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(g.Y36(r.so),g.Y36(r.WI),g.Y36(l.V6),g.Y36(p.sK),g.Y36(c.Ct))},e.\u0275cmp=g.Xpm({type:e,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"],["mat-flat-button","","color","warn",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"],["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&&(g.TgZ(0,"div"),g.TgZ(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.YNc(4,V,1,0,"mat-spinner",1),g.YNc(5,B,13,9,"div",2),g.TgZ(6,"div",3),g.TgZ(7,"button",4),g.NdJ("click",function(){return t.onCancel()}),g._uU(8),g.ALo(9,"translate"),g.qZA(),g.TgZ(10,"button",5),g.NdJ("click",function(){return t.onSubmit()}),g._uU(11),g.ALo(12,"translate"),g.qZA(),g.qZA(),g.qZA()),2&e&&(g.Tol(t.theme),g.xp6(2),g.Oqu(g.lcZ(3,9,"DIALOGS.REMOVE_GROUPS.TITLE")),g.xp6(2),g.Q6J("ngIf",t.loading),g.xp6(1),g.Q6J("ngIf",!t.loading),g.xp6(3),g.hij(" ",g.lcZ(9,11,"DIALOGS.REMOVE_GROUPS.CANCEL")," "),g.xp6(2),g.Q6J("disabled",t.loading),g.xp6(1),g.hij(" ",g.lcZ(12,13,"DIALOGS.REMOVE_GROUPS.DELETE")," "))},directives:[r.uh,v.O5,r.H8,E.lW,T.$g,r.xY,D.BZ,D.w1,D.fO,D.Dz,D.as,D.nj,D.ge,D.ev,D.XQ,D.Gk],pipes:[p.X$],styles:[""]}),e}(),$=s(56238),W=s(79996),K=s(40084),ee=s(91058),te=s(78364);function ie(e,t){if(1&e&&(g.TgZ(0,"mat-option",17),g._uU(1),g.ALo(2,"displayedRole"),g.qZA()),2&e){var i=t.$implicit;g.Q6J("value",i),g.xp6(1),g.Oqu(g.lcZ(2,2,i))}}function ne(e,t){if(1&e&&(g.TgZ(0,"mat-option",17),g._uU(1),g.qZA()),2&e){var i=t.$implicit;g.Q6J("value",i),g.xp6(1),g.hij(" ",i.name," ")}}function ae(e,t){if(1&e){var i=g.EpF();g.TgZ(0,"perun-web-apps-debounce-filter",18),g.NdJ("filter",function(e){return g.CHM(i),g.oxw().applyFilter(e)}),g.ALo(1,"translate"),g.qZA()}2&e&&g.s9C("placeholder",g.lcZ(1,1,"DIALOGS.ADD_GROUPS.FILTER_GROUPS"))}function se(e,t){1&e&&g._UZ(0,"mat-spinner",19)}var oe=function(){return["select","id","name","description"]};function re(e,t){if(1&e&&(g.TgZ(0,"div",20),g._UZ(1,"perun-web-apps-groups-list",21),g.qZA()),2&e){var i=g.oxw();g.xp6(1),g.Q6J("tableId",i.tableId)("disableRouting",!0)("displayedColumns",g.DdM(7,oe))("selection",i.selection)("filter",i.filterValue)("groups",i.groups)("disableMembers",!1)}}var le=function(){var e=function(){function e(t,n,a,s,r,l,c,d,g){var p=this;i(this,e),this.dialogRef=t,this.data=n,this.authzService=a,this.voService=s,this.groupService=r,this.translate=l,this.notificator=c,this.route=d,this.router=g,this.searchString="",this.selection=new o.Ov(!0,[]),this.groups=[],this.vos=[],this.filterValue="",this.myControl=new h.NI,this.firstSearchDone=!1,this.tableId=u.kZ,l.get("DIALOGS.ADD_GROUPS.TITLE").subscribe(function(e){return p.title=e}),l.get("DIALOGS.ADD_GROUPS.SUCCESS").subscribe(function(e){return p.successMessage=e})}return a(e,[{key:"displayFn",value:function(e){return e?e.name:null}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,this.authzService.setRoleWithGroupComplementaryObject({role:this.selectedRole,authorizedGroups:this.selection.selected.map(function(e){return e.id}),complementaryObject:this.data.complementaryObject}).subscribe(function(){e.notificator.showSuccess(e.successMessage),e.loading=!1,e.dialogRef.close(!0)},function(){return e.loading=!1})}},{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.availableRoles=this.data.availableRoles,this.selectedRole=this.data.selectedRole,this.theme=this.data.theme,this.voService.getMyVos().subscribe(function(t){e.filteredOptions=e.myControl.valueChanges.pipe((0,$.O)(""),(0,W.U)(function(t){return e._filter(t)})),e.vos=t,e.loading=!1},function(){return e.loading=!1})}},{key:"_filter",value:function(e){var t="string"==typeof e?e.toLowerCase():e.name.toLowerCase;return this.vos.filter(function(e){return e.name.toLowerCase().includes(t)})}},{key:"showVoGroups",value:function(e){var t=this;this.loading=!0,this.groupService.getAllGroups(e.option.value.id).subscribe(function(e){t.groups=e,t.loading=!1,t.firstSearchDone=!0},function(){return t.loading=!1})}},{key:"applyFilter",value:function(e){this.filterValue=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(g.Y36(r.so),g.Y36(r.WI),g.Y36(c.Ct),g.Y36(c.YF),g.Y36(c.ff),g.Y36(p.sK),g.Y36(l.V6),g.Y36(f.gz),g.Y36(f.F0))},e.\u0275cmp=g.Xpm({type:e,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"],["type","text","aria-label","Assignee","matInput","",3,"placeholder","formControl","matAutocomplete"],[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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"value"],[3,"placeholder","filter"],[1,"mr-auto","ml-auto"],[1,"mt-3"],[3,"tableId","disableRouting","displayedColumns","selection","filter","groups","disableMembers"]],template:function(e,t){if(1&e&&(g.TgZ(0,"div"),g.TgZ(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"div",1),g.TgZ(5,"div",2),g.TgZ(6,"mat-form-field",3),g.TgZ(7,"mat-label"),g._uU(8),g.ALo(9,"translate"),g.qZA(),g.TgZ(10,"mat-select",4),g.NdJ("valueChange",function(e){return t.selectedRole=e}),g.YNc(11,ie,3,4,"mat-option",5),g.qZA(),g.qZA(),g.TgZ(12,"mat-form-field",6),g.TgZ(13,"mat-label"),g._uU(14),g.ALo(15,"translate"),g.qZA(),g._UZ(16,"input",7),g.ALo(17,"translate"),g.TgZ(18,"mat-autocomplete",8,9),g.NdJ("optionSelected",function(e){return t.showVoGroups(e)}),g.YNc(20,ne,2,2,"mat-option",5),g.ALo(21,"async"),g.qZA(),g.qZA(),g.qZA(),g.YNc(22,ae,2,3,"perun-web-apps-debounce-filter",10),g.TgZ(23,"div",11),g.YNc(24,se,1,0,"mat-spinner",12),g.qZA(),g.YNc(25,re,2,8,"div",13),g.qZA(),g.TgZ(26,"div",14),g.TgZ(27,"button",15),g.NdJ("click",function(){return t.onCancel()}),g._uU(28),g.ALo(29,"translate"),g.qZA(),g.TgZ(30,"button",16),g.NdJ("click",function(){return t.onSubmit()}),g._uU(31),g.ALo(32,"translate"),g.qZA(),g.qZA(),g.qZA()),2&e){var i=g.MAs(19);g.Tol(t.theme),g.xp6(2),g.Oqu(g.lcZ(3,19,"DIALOGS.ADD_GROUPS.TITLE")),g.xp6(6),g.Oqu(g.lcZ(9,21,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),g.xp6(2),g.Q6J("value",t.selectedRole),g.xp6(1),g.Q6J("ngForOf",t.availableRoles),g.xp6(3),g.Oqu(g.lcZ(15,23,"DIALOGS.ADD_GROUPS.SELECT_VO")),g.xp6(2),g.s9C("placeholder",g.lcZ(17,25,"DIALOGS.ADD_GROUPS.SELECT_VO")),g.Q6J("formControl",t.myControl)("matAutocomplete",i),g.xp6(2),g.Q6J("displayWith",t.displayFn),g.xp6(2),g.Q6J("ngForOf",g.lcZ(21,27,t.filteredOptions)),g.xp6(2),g.Q6J("ngIf",null!==t.groups&&t.groups.length>0&&!t.loading),g.xp6(2),g.Q6J("ngIf",t.loading),g.xp6(1),g.Q6J("ngIf",null!==t.groups&&!t.loading),g.xp6(3),g.hij(" ",g.lcZ(29,29,"DIALOGS.ADD_MANAGERS.CANCEL")," "),g.xp6(2),g.Q6J("disabled",0===t.selection.selected.length||t.loading),g.xp6(1),g.hij(" ",g.lcZ(32,31,"DIALOGS.ADD_MANAGERS.CREATE")," ")}},directives:[r.uh,r.xY,m.KE,m.hX,A.gD,v.sg,S.Nt,h.Fj,K.ZL,h.JJ,h.oH,K.XC,v.O5,r.H8,E.lW,R.ey,ee.P,T.$g,te.W],pipes:[p.X$,v.Ov,_],styles:[""]}),e}(),ce=s(84140),ue=s(24820),de=s(55109),he=s(59403);function ge(e,t){1&e&&(g._uU(0),g.ALo(1,"translate")),2&e&&g.hij(" ",g.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.USER")," ")}function pe(e,t){if(1&e){var i=g.EpF();g.TgZ(0,"button",13),g.NdJ("click",function(){return g.CHM(i),g.oxw(2).addManager()}),g._uU(1),g.ALo(2,"translate"),g.qZA()}2&e&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function fe(e,t){if(1&e){var i=g.EpF();g.TgZ(0,"button",14),g.NdJ("click",function(){return g.CHM(i),g.oxw(2).removeManager()}),g._uU(1),g.ALo(2,"translate"),g.qZA()}if(2&e){var n=g.oxw(2);g.Q6J("disabled",0===n.selectionUsers.selected.length),g.xp6(1),g.hij(" ",g.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function me(e,t){if(1&e&&(g.TgZ(0,"mat-option",15),g._uU(1),g.ALo(2,"displayedRole"),g.qZA()),2&e){var i=t.$implicit;g.Q6J("value",i),g.xp6(1),g.Oqu(g.lcZ(2,2,i))}}function Ae(e,t){1&e&&g._UZ(0,"mat-spinner",16)}function ve(e,t){if(1&e&&g._UZ(0,"app-users-list",17),2&e){var i=g.oxw(2);g.Q6J("tableId",i.tableId)("users",i.managers)("disableRouting",!i.routeAuth||i.disableRouting)("displayedColumns",i.displayedUserColumns)("selection",i.selectionUsers)("disableSelf",i.disableSelf)}}function Se(e,t){if(1&e){var i=g.EpF();g.TgZ(0,"perun-web-apps-refresh-button",5),g.NdJ("refresh",function(){return g.CHM(i),g.oxw().refreshUsers()}),g.qZA(),g.YNc(1,pe,3,3,"button",6),g.YNc(2,fe,3,4,"button",7),g.TgZ(3,"mat-form-field",8),g.TgZ(4,"mat-label"),g._uU(5),g.ALo(6,"translate"),g.qZA(),g.TgZ(7,"mat-select",9),g.NdJ("valueChange",function(e){return g.CHM(i),g.oxw().selectedRole=e})("selectionChange",function(){return g.CHM(i),g.oxw().refreshUsers()}),g.YNc(8,me,3,4,"mat-option",10),g.qZA(),g.qZA(),g.YNc(9,Ae,1,0,"mat-spinner",11),g.YNc(10,ve,1,6,"app-users-list",12)}if(2&e){var n=g.oxw();g.xp6(1),g.Q6J("ngIf",n.manageAuth&&!n.configMode),g.xp6(1),g.Q6J("ngIf",n.manageAuth&&!n.configMode),g.xp6(3),g.Oqu(g.lcZ(6,7,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),g.xp6(2),g.Q6J("value",n.selectedRole),g.xp6(1),g.Q6J("ngForOf",n.availableRoles),g.xp6(1),g.Q6J("ngIf",n.loading),g.xp6(1),g.Q6J("ngIf",!n.loading&&n.managers)}}function be(e,t){1&e&&(g._uU(0),g.ALo(1,"translate")),2&e&&g.hij(" ",g.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.GROUP")," ")}function Ee(e,t){if(1&e){var i=g.EpF();g.TgZ(0,"button",21),g.NdJ("click",function(){return g.CHM(i),g.oxw(2).addGroup()}),g._uU(1),g.ALo(2,"translate"),g.qZA()}2&e&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function Re(e,t){if(1&e){var i=g.EpF();g.TgZ(0,"button",22),g.NdJ("click",function(){return g.CHM(i),g.oxw(2).removeGroup()}),g._uU(1),g.ALo(2,"translate"),g.qZA()}if(2&e){var n=g.oxw(2);g.Q6J("disabled",0===n.selectionGroups.selected.length),g.xp6(1),g.hij(" ",g.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function Te(e,t){if(1&e&&(g.TgZ(0,"mat-option",15),g._uU(1),g.ALo(2,"displayedRole"),g.qZA()),2&e){var i=t.$implicit;g.Q6J("value",i),g.xp6(1),g.Oqu(g.lcZ(2,2,i))}}function Ie(e,t){1&e&&g._UZ(0,"mat-spinner",16)}function Ze(e,t){if(1&e&&g._UZ(0,"perun-web-apps-groups-list",23),2&e){var i=g.oxw(2);g.Q6J("tableId",i.tableId)("disableRouting",i.disableRouting)("displayedColumns",i.displayedGroupColumns)("groups",i.groups)("selection",i.selectionGroups)("disableMembers",!1)}}function _e(e,t){if(1&e){var i=g.EpF();g.TgZ(0,"perun-web-apps-refresh-button",5),g.NdJ("refresh",function(){return g.CHM(i),g.oxw().refreshGroups()}),g.qZA(),g.YNc(1,Ee,3,3,"button",18),g.YNc(2,Re,3,4,"button",19),g.TgZ(3,"mat-form-field",8),g.TgZ(4,"mat-label"),g._uU(5),g.ALo(6,"translate"),g.qZA(),g.TgZ(7,"mat-select",9),g.NdJ("valueChange",function(e){return g.CHM(i),g.oxw().selectedRole=e})("selectionChange",function(){return g.CHM(i),g.oxw().refreshGroups()}),g.YNc(8,Te,3,4,"mat-option",10),g.qZA(),g.qZA(),g.YNc(9,Ie,1,0,"mat-spinner",11),g.YNc(10,Ze,1,6,"perun-web-apps-groups-list",20)}if(2&e){var n=g.oxw();g.xp6(1),g.Q6J("ngIf",n.manageAuth&&!n.configMode),g.xp6(1),g.Q6J("ngIf",n.manageAuth&&!n.configMode),g.xp6(3),g.Oqu(g.lcZ(6,7,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),g.xp6(2),g.Q6J("value",n.selectedRole),g.xp6(1),g.Q6J("ngForOf",n.availableRoles),g.xp6(1),g.Q6J("ngIf",n.loading),g.xp6(1),g.Q6J("ngIf",!n.loading&&n.groups)}}function Oe(e,t){1&e&&(g.TgZ(0,"app-alert",24),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&e&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.NO_AVAILABLE_ROLES"),"\n"))}var ye=function(){var t=function(){function t(e,n,a,s,r,l,c){i(this,t),this.dialog=e,this.authzService=n,this.storeService=a,this.guiAuthResolver=s,this.router=r,this.reloadEntityDetail=l,this.route=c,this.groups=null,this.managers=null,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.selectionUsers=new o.Ov(!0,[]),this.selectionGroups=new o.Ov(!0,[]),this.selectedMode="",this.loading=!1,this.tableId=u.HC,this.availableRolesPrivileges=new Map}return a(t,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.routeAuth=this.guiAuthResolver.isPerunAdminOrObserver(),this.guiAuthResolver.getRolesAuthorization(this.availableRoles,this.complementaryObject,this.availableRolesPrivileges),this.availableRoles=this.availableRoles.filter(function(t){return e.availableRolesPrivileges.get(t).readAuth}),0!==this.availableRoles.length&&(this.selectedRole=this.availableRoles[0]),this.refreshUsers()}},{key:"changeRolePrivileges",value:function(){var t=this;this.guiAuthResolver.getRolesAuthorization(this.availableRoles,this.complementaryObject,this.availableRolesPrivileges),this.availableRoles=this.availableRoles.filter(function(e){return t.availableRolesPrivileges.get(e).readAuth}),this.manageAuth=this.availableRolesPrivileges.get(this.selectedRole).manageAuth,this.displayedUserColumns=this.manageAuth?this.displayedUserColumns:this.displayedUserColumns.filter(function(e){return"select"!==e}),this.displayedGroupColumns=this.manageAuth?this.displayedGroupColumns:this.displayedGroupColumns.filter(function(e){return"select"!==e}),this.roleModes=this.availableRolesPrivileges.get(this.selectedRole).modes;var i,n=!1,a=e(this.roleModes);try{for(a.s();!(i=a.n()).done;){var s=i.value;if(this.selectedMode===s.toLowerCase()){n=!0;break}}}catch(o){a.e(o)}finally{a.f()}n||(this.selectedMode=this.roleModes[0].toLowerCase())}},{key:"tabChanged",value:function(e){this.loading=!0,0===e.index?(this.selectedMode="user",this.refreshUsers()):(this.selectedMode="group",this.refreshGroups())}},{key:"refreshUsers",value:function(){var e=this;this.loading=!0,this.changeRolePrivileges();var t=[d.r.USER_DEF_ORGANIZATION,d.r.USER_DEF_PREFERRED_MAIL];t=t.concat(this.storeService.getLoginAttributeNames()),this.authzService.getAuthzRichAdmins(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType,t,!1,!0).subscribe(function(t){e.managers=t,e.selectionUsers.clear(),e.loading=!1},function(){e.loading=!1})}},{key:"refreshGroups",value:function(){var e=this;this.loading=!0,this.changeRolePrivileges(),this.authzService.getAuthzAdminGroups(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType).subscribe(function(t){e.groups=t,e.selectionGroups.clear(),e.loading=!1},function(){e.loading=!1})}},{key:"addManager",value:function(){var e=this,t=(0,ce.kZ)();t.width="1000px",t.data={complementaryObject:this.complementaryObject,theme:this.theme,availableRoles:this.availableRoles,selectedRole:this.selectedRole},this.dialog.open(G,t).afterClosed().subscribe(function(t){t&&e.refreshUsers()})}},{key:"removeManager",value:function(){var e=this,t=(0,ce.kZ)();t.width="450px",t.data={managers:this.selectionUsers.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(Q,t).afterClosed().subscribe(function(t){t&&(e.guiAuthResolver.isManagerPagePrivileged(e.complementaryObject)?(e.reloadEntityDetail.reloadEntityDetail(),e.refreshUsers()):e.redirectToAuthRoute())})}},{key:"removeGroup",value:function(){var e=this,t=(0,ce.kZ)();t.width="450px",t.data={groups:this.selectionGroups.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(X,t).afterClosed().subscribe(function(t){t&&(e.guiAuthResolver.isManagerPagePrivileged(e.complementaryObject)?(e.reloadEntityDetail.reloadEntityDetail(),e.refreshGroups()):e.redirectToAuthRoute())})}},{key:"addGroup",value:function(){var e=this,t=(0,ce.kZ)();t.width="1000px",t.data={complementaryObject:this.complementaryObject,availableRoles:this.availableRoles,theme:this.theme,selectedRole:this.selectedRole},this.dialog.open(le,t).afterClosed().subscribe(function(t){t&&e.refreshGroups()})}},{key:"redirectToAuthRoute",value:function(){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()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(g.Y36(r.uw),g.Y36(c.Ct),g.Y36(l.d6),g.Y36(l.x4),g.Y36(f.F0),g.Y36(ue.G),g.Y36(f.gz))},t.\u0275cmp=g.Xpm({type:t,selectors:[["app-managers-page"]],hostVars:2,hostBindings:function(e,t){2&e&&g.ekj("router-component",t.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"],["mat-flat-button","","color","accent","class","mr-2 mt-2 action-button","data-cy","add-manager-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2 mt-2","data-cy","remove-manager-button",3,"disabled","click",4,"ngIf"],[1,"mr-2","mt-2"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","users","disableRouting","displayedColumns","selection","disableSelf",4,"ngIf"],["mat-flat-button","","color","accent","data-cy","add-manager-button",1,"mr-2","mt-2","action-button",3,"click"],["mat-flat-button","","color","warn","data-cy","remove-manager-button",1,"mr-2","mt-2",3,"disabled","click"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"tableId","users","disableRouting","displayedColumns","selection","disableSelf"],["mat-flat-button","","color","accent","class","mr-2 mt-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2 mt-2",3,"disabled","click",4,"ngIf"],[3,"tableId","disableRouting","displayedColumns","groups","selection","disableMembers",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","mt-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2","mt-2",3,"disabled","click"],[3,"tableId","disableRouting","displayedColumns","groups","selection","disableMembers"],["alert_type","warn"]],template:function(e,t){1&e&&(g.TgZ(0,"h1",0),g._uU(1),g.ALo(2,"translate"),g.qZA(),g.TgZ(3,"mat-tab-group",1),g.NdJ("selectedTabChange",function(e){return t.tabChanged(e)}),g.TgZ(4,"mat-tab"),g.YNc(5,ge,2,3,"ng-template",2),g.YNc(6,Se,11,9,"ng-template",3),g.qZA(),g.TgZ(7,"mat-tab"),g.YNc(8,be,2,3,"ng-template",2),g.YNc(9,_e,11,9,"ng-template",3),g.qZA(),g.qZA(),g.YNc(10,Oe,3,3,"app-alert",4)),2&e&&(g.xp6(1),g.hij(" ",g.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.TITLE"),"\n"),g.xp6(9),g.Q6J("ngIf",0===t.availableRoles.length))},directives:[de.SP,de.uX,de.uD,de.Vc,v.O5,he.t,m.KE,m.hX,A.gD,v.sg,E.lW,R.ey,T.$g,Z.C,te.W,I.w],pipes:[p.X$,_],styles:[""]}),t}()},4196:function(e,t,n){"use strict";n.d(t,{o:function(){return Y}});var s=n(58623),o=n(67033),r=n(4230),l=n(68416),c=n(65249),u=n(84140),d=n(31572),h=n(48160),g=n(82819),p=n(61511),f=n(29236),m=n(66283),A=n(80340),v=n(16073),S=n(15980),b=n(36922),E=n(43691),R=n(39571);function T(e,t){if(1&e){var i=d.EpF();d.TgZ(0,"th",16),d.TgZ(1,"mat-checkbox",17),d.NdJ("change",function(e){d.CHM(i);var t=d.oxw();return e?t.masterToggle():null}),d.qZA(),d.qZA()}if(2&e){var n=d.oxw();d.xp6(1),d.Q6J("aria-label",n.checkboxLabel())("checked",n.selection.hasValue()&&n.isAllSelected())("indeterminate",n.selection.hasValue()&&!n.isAllSelected())}}function I(e,t){if(1&e){var i=d.EpF();d.TgZ(0,"td",18),d.TgZ(1,"mat-checkbox",19),d.NdJ("change",function(e){var t=d.CHM(i).$implicit,n=d.oxw();return e?n.selection.toggle(t):null})("click",function(e){return e.stopPropagation()}),d.qZA(),d.qZA()}if(2&e){var n=t.$implicit,a=d.oxw();d.xp6(1),d.Q6J("aria-label",a.checkboxLabel(n))("checked",a.selection.isSelected(n))}}function Z(e,t){1&e&&(d.TgZ(0,"th",20),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&e&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_ID")," "))}function _(e,t){if(1&e&&(d.TgZ(0,"td",21),d._uU(1),d.qZA()),2&e){var i=t.$implicit;d.xp6(1),d.Oqu(i.id)}}function O(e,t){1&e&&(d.TgZ(0,"th",22),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&e&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_NAME")," "))}function y(e,t){if(1&e&&(d.TgZ(0,"div"),d._uU(1),d.qZA()),2&e){var i=d.oxw().$implicit;d.xp6(1),d.hij(" ",i.tagName," ")}}function C(e,t){if(1&e){var i=d.EpF();d.TgZ(0,"div"),d.TgZ(1,"mat-form-field"),d.TgZ(2,"input",25),d.NdJ("ngModelChange",function(e){return d.CHM(i),d.oxw().$implicit.tagName=e}),d.qZA(),d.qZA(),d.qZA()}if(2&e){var n=d.oxw().$implicit;d.xp6(2),d.Q6J("ngModel",n.tagName)}}function x(e,t){if(1&e&&(d.TgZ(0,"td",23),d.YNc(1,y,2,1,"div",24),d.YNc(2,C,3,1,"div",24),d.qZA()),2&e){var i=t.$implicit,n=d.oxw();d.xp6(1),d.Q6J("ngIf",!n.isChanging.isSelected(i)),d.xp6(1),d.Q6J("ngIf",n.isChanging.isSelected(i))}}function U(e,t){1&e&&d._UZ(0,"th",22)}function N(e,t){if(1&e){var i=d.EpF();d.TgZ(0,"button",28),d.NdJ("click",function(){d.CHM(i);var e=d.oxw().$implicit;return d.oxw().edit(e)}),d.ALo(1,"translate"),d.TgZ(2,"mat-icon"),d._uU(3,"edit"),d.qZA(),d.qZA()}2&e&&d.s9C("matTooltip",d.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.EDIT_BUTTON"))}function G(e,t){if(1&e){var i=d.EpF();d.TgZ(0,"button",28),d.NdJ("click",function(){d.CHM(i);var e=d.oxw().$implicit;return d.oxw().save(e)}),d.ALo(1,"translate"),d.TgZ(2,"mat-icon"),d._uU(3,"save"),d.qZA(),d.qZA()}2&e&&d.s9C("matTooltip",d.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.SAVE_BUTTON"))}function D(e,t){if(1&e&&(d.TgZ(0,"td",23),d.TgZ(1,"div",26),d.YNc(2,N,4,3,"button",27),d.YNc(3,G,4,3,"button",27),d.qZA(),d.qZA()),2&e){var i=t.$implicit,n=d.oxw();d.xp6(2),d.Q6J("ngIf",!n.isChanging.isSelected(i)),d.xp6(1),d.Q6J("ngIf",n.isChanging.isSelected(i))}}function L(e,t){1&e&&d._UZ(0,"tr",29)}function k(e,t){1&e&&d._UZ(0,"tr",30)}function w(e,t){if(1&e&&(d.TgZ(0,"app-alert",31),d._uU(1),d.ALo(2,"translate"),d.ALo(3,"translate"),d.qZA()),2&e){var i=d.oxw();d.xp6(1),d.hij(" ","vo"===i.entity?d.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.NO_TAGS"):d.lcZ(3,3,"RESOURCE_DETAIL.TAGS.NO_TAGS"),"\n")}}function M(e,t){1&e&&(d.TgZ(0,"app-alert",31),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&e&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}var Y=function(){var e=function(){function e(t,n,a,s,o){i(this,e),this.resourceManager=t,this.notificator=n,this.translator=a,this.authResolver=s,this.tableCheckbox=o,this.resourceTags=[],this.selection=new r.Ov(!0,[]),this.displayedColumns=["select","id","name","edit"],this.isChanging=new r.Ov(!0,[]),this.pageSizeOptions=u.f7}return a(e,[{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(e){return"id"!==e})),this.dataSource=new o.by(this.resourceTags),this.setDataSource()}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}},{key:"getDataForColumn",value:function(e,t){switch(t){case"id":return e.id.toString();case"name":return e.tagName;default:return""}}},{key:"exportData",value:function(e){(0,u.O6)((0,u.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.filterPredicate=function(t,i){return(0,u.Sd)(t,i,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,i){return(0,u.pR)(t,i,e.getDataForColumn,e)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(e){return e?"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"save",value:function(e){var t=this;this.resourceManager.updateResourceTag({resourceTag:e}).subscribe(function(){t.translator.get("SHARED.COMPONENTS.RESOURCES_TAGS_LIST.EDIT_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e)}),t.isChanging.deselect(e)})}},{key:"edit",value:function(e){this.isChanging.select(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(d.Y36(c.xk),d.Y36(l.V6),d.Y36(h.sK),d.Y36(l.x4),d.Y36(l.UA))},e.\u0275cmp=d.Xpm({type:e,selectors:[["app-resources-tags-list"]],viewQuery:function(e,t){var i;(1&e&&(d.Gf(s.YE,7),d.Gf(u.l9,7)),2&e)&&(d.iGM(i=d.CRH())&&(t.matSort=i.first),d.iGM(i=d.CRH())&&(t.child=i.first))},inputs:{resourceTags:"resourceTags",filterValue:"filterValue",selection:"selection",tableId:"tableId",displayedColumns:"displayedColumns",entity:"entity"},features:[d.TTD],decls:19,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-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(e,t){1&e&&(d.TgZ(0,"div",0),d.TgZ(1,"perun-web-apps-table-wrapper",1),d.NdJ("exportData",function(e){return t.exportData(e)}),d.TgZ(2,"table",2),d.ynx(3,3),d.YNc(4,T,2,3,"th",4),d.YNc(5,I,2,2,"td",5),d.BQk(),d.ynx(6,6),d.YNc(7,Z,3,3,"th",7),d.YNc(8,_,2,1,"td",8),d.BQk(),d.ynx(9,9),d.YNc(10,O,3,3,"th",10),d.YNc(11,x,3,2,"td",11),d.BQk(),d.ynx(12,12),d.YNc(13,U,1,0,"th",10),d.YNc(14,D,4,2,"td",11),d.BQk(),d.YNc(15,L,1,0,"tr",13),d.YNc(16,k,1,0,"tr",14),d.qZA(),d.qZA(),d.qZA(),d.YNc(17,w,4,5,"app-alert",15),d.YNc(18,M,3,3,"app-alert",15)),2&e&&(d.Q6J("hidden",0===t.resourceTags.length||0===t.dataSource.filteredData.length),d.xp6(1),d.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),d.xp6(1),d.Q6J("dataSource",t.dataSource),d.xp6(13),d.Q6J("matHeaderRowDef",t.displayedColumns),d.xp6(1),d.Q6J("matRowDefColumns",t.displayedColumns),d.xp6(1),d.Q6J("ngIf",0===t.resourceTags.length),d.xp6(1),d.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.resourceTags.length))},directives:[g.l,o.BZ,s.YE,o.w1,o.fO,o.Dz,o.as,o.nj,p.O5,o.ge,f.oG,o.ev,s.nU,m.KE,A.Nt,v.Fj,v.JJ,v.On,S.lW,b.gM,E.Hw,o.XQ,o.Gk,R.w],pipes:[h.X$],styles:[""]}),e}()},65267:function(e,t,n){"use strict";n.d(t,{F:function(){return r}});var a=n(31572),s=n(44973),o=n(48160),r=function(){var e=function e(){i(this,e),this.servicePackages=[],this.selectedPackage=null,this.multiple=!1,this.disableAutoSelect=!1,this.theme="",this.packageSelected=new a.vpe,this.nameFunction=function(e){return e.name},this.shortNameFunction=function(e){return e.description},this.searchFunction=function(e){return e.name+e.description}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.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(e,t){1&e&&(a.TgZ(0,"perun-web-apps-entity-search-select",0),a.NdJ("entitySelected",function(e){return t.packageSelected.emit(e)}),a.ALo(1,"translate"),a.ALo(2,"translate"),a.ALo(3,"translate"),a.qZA()),2&e&&a.Q6J("entities",t.servicePackages)("entity",t.selectedPackage)("multiple",t.multiple)("disableAutoSelect",t.disableAutoSelect)("searchFunction",t.searchFunction)("mainTextFunction",t.nameFunction)("secondaryTextFunction",t.shortNameFunction)("selectPlaceholder",a.lcZ(1,11,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.SELECT_PACKAGE"))("findPlaceholder",a.lcZ(2,13,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.FIND_PACKAGE"))("noEntriesText",a.lcZ(3,15,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.NO_PACKAGE_FOUND"))("theme",t.theme)},directives:[s.i],pipes:[o.X$],styles:[""]}),e}()}}])}(); \ No newline at end of file diff --git a/dist/apps/admin-gui/917-es2015.0b65908ca89a9fdd7319.js b/dist/apps/admin-gui/917-es2015.0b65908ca89a9fdd7319.js new file mode 100644 index 000000000..05c739396 --- /dev/null +++ b/dist/apps/admin-gui/917-es2015.0b65908ca89a9fdd7319.js @@ -0,0 +1 @@ +(self.webpackChunkperun_web_apps=self.webpackChunkperun_web_apps||[]).push([[917],{21575:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var s=i(17),a=i(31572),n=i(57629);let r=(()=>{class t{constructor(){}prepareRoute(t){return t&&t.activatedRouteData&&t.activatedRouteData.animation}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-animated-router-outlet"]],decls:3,vars:0,consts:[["outlet","outlet"]],template:function(t,e){1&t&&(a.TgZ(0,"div"),a._UZ(1,"router-outlet",null,0),a.qZA())},directives:[n.lC],styles:[""],data:{animation:[s.Ji]}}),t})()},40695:function(t,e,i){"use strict";i.d(e,{n:function(){return S}});var s=i(84608),a=i(4230),n=i(68416),r=i(65249),c=i(60611),o=(i(41939),i(31572)),l=i(48160),u=i(19139),d=i(61511),h=i(15980),p=i(39571),b=i(67806),f=i(41186);const g=["list"];function m(t,e){1&t&&(o.TgZ(0,"app-alert",10),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE.ERROR_EMPTY_VALUE")," "))}function E(t,e){1&t&&o._UZ(0,"mat-spinner",11)}function y(t,e){if(1&t&&o._UZ(0,"perun-web-apps-attributes-list",12,13),2&t){const t=o.oxw();o.Q6J("tableId",t.tableId)("attributes",t.attributes)("filterValue",t.filterValue)("inDialog",!0)("emptyListText","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY_ATTRIBUTES")("selection",t.selected)}}let S=(()=>{class t{constructor(t,e,i,s,n){this.dialogRef=t,this.data=e,this.attributesManager=i,this.notificator=s,this.translate=n,this.attributes=[],this.selected=new a.Ov(!0,[]),this.showError=!1,this.filterValue="",this.tableId=c.rF,this.translate.get("DIALOGS.CREATE_ATTRIBUTE.SUCCESS_SAVE").subscribe(t=>this.saveSuccessMessage=t)}ngOnInit(){const t=new Array;let e,i,s,a,n,r,c,o;switch(this.data.notEmptyAttributes.forEach(e=>{t.push(e.id)}),this.data.entity){case"member":e=this.data.entityId;break;case"user":i=this.data.entityId;break;case"vo":s=this.data.entityId;break;case"group":a=this.data.entityId;break;case"resource":n=this.data.entityId;break;case"facility":r=this.data.entityId;break;case"host":c=this.data.entityId;break;case"ues":o=this.data.entityId}switch(this.data.secondEntity){case"member":e=this.data.secondEntityId;break;case"user":i=this.data.secondEntityId;break;case"vo":s=this.data.secondEntityId;break;case"group":a=this.data.secondEntityId;break;case"resource":n=this.data.secondEntityId;break;case"facility":r=this.data.secondEntityId;break;case"host":c=this.data.secondEntityId;break;case"ues":o=this.data.secondEntityId}this.loading=!0,this.attributesManager.getAttributesDefinitionWithRights(e,i,s,a,n,r,c,o).subscribe(e=>{this.attributes=e,this.attributes=this.attributes.filter(e=>!t.includes(e.id)&&this.twoEntityValid(e)),this.loading=!1})}onCancel(){this.dialogRef.close()}onSave(){this.list.updateMapAttributes();let t=!1;for(const e of this.selected.selected)"java.util.ArrayList"===e.type&&0===e.value.length&&(t=!0),void 0===e.value&&(t=!0);if(t)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":switch(this.data.secondEntity){case"resource":this.attributesManager.setGroupResourceAttributes({group:this.data.entityId,resource:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;default: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":switch(this.data.secondEntity){case"facility":this.attributesManager.setUserFacilityAttributes({user:this.data.entityId,facility:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;default: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(t){this.filterValue=t}handleSuccess(){this.notificator.showSuccess(this.saveSuccessMessage),this.selected.clear(),this.dialogRef.close("saved")}twoEntityValid(t){return!this.data.secondEntity||t.entity===`${this.data.entity}_${this.data.secondEntity}`}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(s.so),o.Y36(s.WI),o.Y36(r.H8),o.Y36(n.V6),o.Y36(l.sK))},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-create-attribute-dialog"]],viewQuery:function(t,e){if(1&t&&o.Gf(g,5),2&t){let t;o.iGM(t=o.CRH())&&(e.list=t.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,"tableId","attributes","filterValue","inDialog","emptyListText","selection",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,"tableId","attributes","filterValue","inDialog","emptyListText","selection"],["list",""]],template:function(t,e){1&t&&(o.TgZ(0,"div"),o.TgZ(1,"div",0),o.TgZ(2,"h1",1),o._uU(3),o.ALo(4,"translate"),o.qZA(),o.TgZ(5,"perun-web-apps-immediate-filter",2),o.NdJ("filter",function(t){return e.applyFilter(t)}),o.qZA(),o.YNc(6,m,3,3,"app-alert",3),o.qZA(),o.TgZ(7,"div",4),o.YNc(8,E,1,0,"mat-spinner",5),o.YNc(9,y,2,6,"perun-web-apps-attributes-list",6),o.qZA(),o.TgZ(10,"div",7),o.TgZ(11,"button",8),o.NdJ("click",function(){return e.onCancel()}),o._uU(12),o.ALo(13,"translate"),o.qZA(),o.TgZ(14,"button",9),o.NdJ("click",function(){return e.onSave()}),o._uU(15),o.ALo(16,"translate"),o.qZA(),o.qZA(),o.qZA()),2&t&&(o.Tol(e.data.style),o.xp6(3),o.Oqu(o.lcZ(4,11,"DIALOGS.CREATE_ATTRIBUTE.SET_NEW")),o.xp6(2),o.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),o.xp6(1),o.Q6J("ngIf",e.showError),o.xp6(2),o.Q6J("ngIf",e.loading),o.xp6(1),o.Q6J("ngIf",!e.loading),o.xp6(3),o.hij(" ",o.lcZ(13,13,"DIALOGS.CREATE_ATTRIBUTE.CANCEL")," "),o.xp6(2),o.Q6J("disabled",0===e.selected.selected.length),o.xp6(1),o.hij(" ",o.lcZ(16,15,"DIALOGS.CREATE_ATTRIBUTE.SAVE")," "))},directives:[s.uh,u.L,d.O5,s.xY,s.H8,h.lW,p.w,b.$g,f.p],pipes:[l.X$],styles:[".font-size-1rem[_ngcontent-%COMP%]{font-size:1rem!important}"]}),t})()},13572:function(t,e,i){"use strict";i.d(e,{k:function(){return E}});var s=i(84608),a=i(67033),n=i(68416),r=i(65249),c=i(31572),o=i(48160),l=i(61511),u=i(15980),d=i(67806);function h(t,e){1&t&&c._UZ(0,"mat-spinner",6)}function p(t,e){1&t&&c._UZ(0,"th",15)}function b(t,e){if(1&t&&(c.TgZ(0,"td",16),c._uU(1),c.qZA()),2&t){const t=e.$implicit;c.xp6(1),c.Oqu(t.displayName)}}function f(t,e){1&t&&c._UZ(0,"tr",17)}function g(t,e){1&t&&c._UZ(0,"tr",18)}function m(t,e){if(1&t&&(c.TgZ(0,"div",7),c.TgZ(1,"div"),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"div",8),c._uU(5),c.ALo(6,"translate"),c.qZA(),c.TgZ(7,"table",9),c.ynx(8,10),c.YNc(9,p,1,0,"th",11),c.YNc(10,b,2,1,"td",12),c.BQk(),c.YNc(11,f,1,0,"tr",13),c.YNc(12,g,1,0,"tr",14),c.qZA(),c.qZA()),2&t){const t=c.oxw();c.xp6(2),c.hij(" ",c.lcZ(3,5,"DIALOGS.DELETE_ATTRIBUTES.DESCRIPTION")," "),c.xp6(3),c.hij(" ",c.lcZ(6,7,"DIALOGS.DELETE_ATTRIBUTES.ASK")," "),c.xp6(2),c.Q6J("dataSource",t.dataSource),c.xp6(4),c.Q6J("matHeaderRowDef",t.displayedColumns),c.xp6(1),c.Q6J("matRowDefColumns",t.displayedColumns)}}let E=(()=>{class t{constructor(t,e,i,s,a){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=s,this.attributesManager=a,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.dataSource=new a.by(this.data.attributes),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){const t=[];for(const i of this.data.attributes)t.push(i.id);const e={};switch(e[this.data.entity]=this.data.entityId,e.attributes=t,void 0!==this.data.secondEntity&&(e[this.data.secondEntity]=this.data.secondEntityId),this.loading=!0,this.data.entity){case"vo":this.attributesManager.removeVoAttributes(this.data.entityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"group":switch(this.data.secondEntity){case"resource":this.attributesManager.removeGroupResourceAttributes(this.data.entityId,this.data.secondEntityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;default:this.attributesManager.removeGroupAttributes(this.data.entityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1)}break;case"user":switch(this.data.secondEntity){case"facility":this.attributesManager.removeUserFacilityAttributes(this.data.entityId,this.data.secondEntityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;default:this.attributesManager.removeUserAttributes(this.data.entityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1)}break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.removeMemberResourceAttributes(this.data.entityId,this.data.secondEntityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"group":this.attributesManager.removeMemberGroupAttributes(this.data.entityId,this.data.secondEntityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;default:this.attributesManager.removeMemberAttributes(this.data.entityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1)}break;case"facility":this.attributesManager.removeFacilityAttributes(this.data.entityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"host":this.attributesManager.removeHostAttributes(this.data.entityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"ues":this.attributesManager.removeUesAttributes(this.data.entityId,t).subscribe(()=>{this.onSuccess()});break;case"resource":this.attributesManager.removeResourceAttributes(this.data.entityId,t).subscribe(()=>this.onSuccess())}}onSuccess(){this.translate.get("DIALOGS.DELETE_ATTRIBUTES.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(s.so),c.Y36(s.WI),c.Y36(n.V6),c.Y36(o.sK),c.Y36(r.H8))},t.\u0275cmp=c.Xpm({type:t,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"],["mat-flat-button","","color","warn","data-cy","delete-attributes",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"],["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(t,e){1&t&&(c.TgZ(0,"div"),c.TgZ(1,"h1",0),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.YNc(4,h,1,0,"mat-spinner",1),c.YNc(5,m,13,9,"div",2),c.TgZ(6,"div",3),c.TgZ(7,"button",4),c.NdJ("click",function(){return e.onCancel()}),c._uU(8),c.ALo(9,"translate"),c.qZA(),c.TgZ(10,"button",5),c.NdJ("click",function(){return e.onSubmit()}),c._uU(11),c.ALo(12,"translate"),c.qZA(),c.qZA(),c.qZA()),2&t&&(c.Tol(e.theme),c.xp6(2),c.Oqu(c.lcZ(3,9,"DIALOGS.DELETE_ATTRIBUTES.TITLE")),c.xp6(2),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading),c.xp6(3),c.hij(" ",c.lcZ(9,11,"DIALOGS.DELETE_ATTRIBUTES.CANCEL")," "),c.xp6(2),c.Q6J("disabled",e.loading),c.xp6(1),c.hij(" ",c.lcZ(12,13,"DIALOGS.DELETE_ATTRIBUTES.DELETE")," "))},directives:[s.uh,l.O5,s.H8,u.lW,d.$g,s.xY,a.BZ,a.w1,a.fO,a.Dz,a.as,a.nj,a.ge,a.ev,a.XQ,a.Gk],pipes:[o.X$],styles:[""]}),t})()},541:function(t,e,i){"use strict";i.d(e,{t:function(){return I}});var s=i(65249),a=i(4230),n=i(84140),r=i(40695),c=i(6527),o=i(13572),l=(i(41939),i(60611)),u=i(31572),d=i(84608),h=i(59403),p=i(15980),b=i(19139),f=i(61511),g=i(67806),m=i(41186),E=i(48160);const y=["list"];function S(t,e){1&t&&u._UZ(0,"mat-spinner",7)}function A(t,e){if(1&t&&u._UZ(0,"perun-web-apps-attributes-list",8,9),2&t){const t=u.oxw();u.Q6J("tableId",t.tableId)("filterValue",t.filterValue)("attributes",t.attributes)("selection",t.selection)}}let I=(()=>{class t{constructor(t,e){this.attributesManagerService=t,this.dialog=e,this.attributes=[],this.selection=new a.Ov(!0,[]),this.filterValue="",this.tableId=l.rF,this.loading=!1}ngOnInit(){this.refreshTable()}refreshTable(){switch(this.loading=!0,this.entity){case"member":this.attributesManagerService.getMemberAttributes(this.entityId).subscribe(t=>{this.attributes=t,this.selection.clear(),this.loading=!1});break;case"group":this.attributesManagerService.getGroupAttributes(this.entityId).subscribe(t=>{this.attributes=t,this.selection.clear(),this.loading=!1});break;case"user":this.attributesManagerService.getUserAttributes(this.entityId).subscribe(t=>{this.attributes=t,this.selection.clear(),this.loading=!1});break;case"resource":this.attributesManagerService.getResourceAttributes(this.entityId).subscribe(t=>{this.attributes=t,this.selection.clear(),this.loading=!1});break;case"facility":this.attributesManagerService.getFacilityAttributes(this.entityId).subscribe(t=>{this.attributes=t,this.selection.clear(),this.loading=!1});break;case"vo":this.attributesManagerService.getVoAttributes(this.entityId).subscribe(t=>{this.attributes=t,this.selection.clear(),this.loading=!1})}}applyFilter(t){this.filterValue=t}onCreate(){const t=(0,n.kZ)();t.width="1050px",t.data={entityId:this.entityId,entity:this.entity,notEmptyAttributes:this.attributes,style:this.entity+"-theme"},this.dialog.open(r.n,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const t=(0,n.kZ)();t.width="450px",t.data={entityId:this.entityId,entity:this.entity,attributes:this.selection.selected},this.dialog.open(c.wA,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onDelete(){const t=(0,n.kZ)();t.width="450px",t.data={entityId:this.entityId,entity:this.entity,attributes:this.selection.selected},this.dialog.open(o.k,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(s.H8),u.Y36(d.uw))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-one-entity-attribute-page"]],viewQuery:function(t,e){if(1&t&&u.Gf(y,5),2&t){let t;u.iGM(t=u.CRH())&&(e.list=t.first)}},inputs:{entity:"entity",entityId:"entityId"},decls:13,vars:14,consts:[[1,"mt-2",3,"refresh"],["mat-flat-button","","color","accent","data-cy","add-attributes",1,"mr-2","mt-2","action-button",3,"click"],["mat-flat-button","","color","accent",1,"mr-2","mt-2",3,"disabled","click"],["color","warn","mat-flat-button","","data-cy","remove-attributes",1,"mt-2","mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","filterValue","attributes","selection",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","attributes","selection"],["list",""]],template:function(t,e){1&t&&(u.TgZ(0,"perun-web-apps-refresh-button",0),u.NdJ("refresh",function(){return e.refreshTable()}),u.qZA(),u.TgZ(1,"button",1),u.NdJ("click",function(){return e.onCreate()}),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"button",2),u.NdJ("click",function(){return e.onSave()}),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.TgZ(7,"button",3),u.NdJ("click",function(){return e.onDelete()}),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.TgZ(10,"perun-web-apps-immediate-filter",4),u.NdJ("filter",function(t){return e.applyFilter(t)}),u.qZA(),u.YNc(11,S,1,0,"mat-spinner",5),u.YNc(12,A,2,4,"perun-web-apps-attributes-list",6)),2&t&&(u.xp6(2),u.hij(" ",u.lcZ(3,8,"USER_DETAIL.SETTINGS.ATTRIBUTES.CREATE"),"\n"),u.xp6(2),u.Q6J("disabled",0===e.selection.selected.length),u.xp6(1),u.hij(" ",u.lcZ(6,10,"USER_DETAIL.SETTINGS.ATTRIBUTES.SAVE"),"\n"),u.xp6(2),u.Q6J("disabled",0===e.selection.selected.length),u.xp6(1),u.hij(" ",u.lcZ(9,12,"USER_DETAIL.SETTINGS.ATTRIBUTES.DELETE"),"\n"),u.xp6(2),u.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading))},directives:[h.t,p.lW,b.L,f.O5,g.$g,m.p],pipes:[E.X$],styles:[""]}),t})()},3417:function(t,e,i){"use strict";i.d(e,{Y:function(){return O}});var s=i(65249),a=(i(41939),i(4230)),n=i(13572),r=i(84140),c=i(6527),o=i(40695),l=i(67004),u=i(31572),d=i(84608),h=i(61511),p=i(67806),b=i(39571),f=i(59403),g=i(15980),m=i(19139),E=i(37665),y=i(42847),S=i(44973),A=i(48160);let I=(()=>{class t{constructor(){this.memberSelected=new u.vpe,this.memberFullNameFunction=t=>(0,r.bD)(t.user)}ngOnInit(){this.members=this.members.sort(r.fx)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=u.Xpm({type:t,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(t,e){1&t&&(u.TgZ(0,"perun-web-apps-entity-search-select",0),u.NdJ("entitySelected",function(t){return e.memberSelected.emit(t)}),u.ALo(1,"translate"),u.ALo(2,"translate"),u.ALo(3,"translate"),u.qZA()),2&t&&u.Q6J("entities",e.members)("searchFunction",e.memberFullNameFunction)("mainTextFunction",e.memberFullNameFunction)("selectPlaceholder",u.lcZ(1,6,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.SELECT_MEMBER"))("findPlaceholder",u.lcZ(2,8,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.FIND_MEMBER"))("noEntriesText",u.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.NO_MEMBER_FOUND"))},directives:[S.i],pipes:[A.X$],styles:[""]}),t})(),T=(()=>{class t{constructor(){this.facilitySelected=new u.vpe,this.nameFunction=t=>t.name}ngOnInit(){this.facilities=this.facilities.sort(r.aC)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=u.Xpm({type:t,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(t,e){1&t&&(u.TgZ(0,"perun-web-apps-entity-search-select",0),u.NdJ("entitySelected",function(t){return e.facilitySelected.emit(t)}),u.ALo(1,"translate"),u.ALo(2,"translate"),u.ALo(3,"translate"),u.qZA()),2&t&&u.Q6J("entities",e.facilities)("searchFunction",e.nameFunction)("mainTextFunction",e.nameFunction)("selectPlaceholder",u.lcZ(1,6,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.SELECT_FACILITY"))("findPlaceholder",u.lcZ(2,8,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.FIND_FACILITY"))("noEntriesText",u.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.NO_FACILITY_FOUND"))},directives:[S.i],pipes:[A.X$],styles:[""]}),t})();var Z=i(7927),x=i(41186);const w=["list"];function R(t,e){1&t&&u._UZ(0,"mat-spinner",4)}function L(t,e){if(1&t&&(u.TgZ(0,"app-alert",5),u._uU(1),u.qZA()),2&t){const t=u.oxw();u.xp6(1),u.Oqu(t.noEntityMessage)}}function C(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"perun-web-apps-group-search-select",18),u.NdJ("groupSelected",function(e){return u.CHM(t),u.oxw(2).specifySecondEntity(e)}),u.qZA()}if(2&t){const t=u.oxw(2);u.Q6J("groups",t.entityValues)("firstSelectedGroup",t.specificSecondEntity)("displayStatus",!0)}}function M(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"perun-web-apps-resource-search-select",19),u.NdJ("resourceSelected",function(e){return u.CHM(t),u.oxw(2).specifySecondEntity(e)}),u.qZA()}if(2&t){const t=u.oxw(2);u.Q6J("resources",t.entityValues)}}function _(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"perun-web-apps-member-search-select",20),u.NdJ("memberSelected",function(e){return u.CHM(t),u.oxw(2).specifySecondEntity(e)}),u.qZA()}if(2&t){const t=u.oxw(2);u.Q6J("members",t.entityValues)}}function N(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"perun-web-apps-facility-search-select",21),u.NdJ("facilitySelected",function(e){return u.CHM(t),u.oxw(2).specifySecondEntity(e)}),u.qZA()}if(2&t){const t=u.oxw(2);u.Q6J("facilities",t.entityValues)}}function v(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"perun-web-apps-user-search-select",22),u.NdJ("userSelected",function(e){return u.CHM(t),u.oxw(2).specifySecondEntity(e)}),u.qZA()}if(2&t){const t=u.oxw(2);u.Q6J("users",t.entityValues)}}function k(t,e){1&t&&u._UZ(0,"mat-spinner",4)}function U(t,e){if(1&t&&u._UZ(0,"perun-web-apps-attributes-list",23,24),2&t){const t=u.oxw(2);u.Q6J("attributes",t.attributes)("filterValue",t.filterValue)("selection",t.selection)}}function D(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"div"),u.TgZ(1,"div",6),u.YNc(2,C,1,3,"perun-web-apps-group-search-select",7),u.YNc(3,M,1,1,"perun-web-apps-resource-search-select",8),u.YNc(4,_,1,1,"perun-web-apps-member-search-select",9),u.YNc(5,N,1,1,"perun-web-apps-facility-search-select",10),u.YNc(6,v,1,1,"perun-web-apps-user-search-select",11),u.qZA(),u.TgZ(7,"perun-web-apps-refresh-button",12),u.NdJ("refresh",function(){u.CHM(t);const e=u.oxw();return e.getAttributes(e.specificSecondEntity.id)}),u.qZA(),u.TgZ(8,"button",13),u.NdJ("click",function(){u.CHM(t);const e=u.oxw();return e.onAdd(e.specificSecondEntity.id)}),u._uU(9),u.ALo(10,"translate"),u.qZA(),u.TgZ(11,"button",14),u.NdJ("click",function(){u.CHM(t);const e=u.oxw();return e.onSave(e.specificSecondEntity.id)}),u._uU(12),u.ALo(13,"translate"),u.qZA(),u.TgZ(14,"button",15),u.NdJ("click",function(){u.CHM(t);const e=u.oxw();return e.onDelete(e.specificSecondEntity.id)}),u._uU(15),u.ALo(16,"translate"),u.qZA(),u.TgZ(17,"perun-web-apps-immediate-filter",16),u.NdJ("filter",function(e){return u.CHM(t),u.oxw().applyFilter(e)}),u.qZA(),u.YNc(18,k,1,0,"mat-spinner",1),u.YNc(19,U,2,3,"perun-web-apps-attributes-list",17),u.qZA()}if(2&t){const t=u.oxw();u.xp6(2),u.Q6J("ngIf","group"===t.secondEntity),u.xp6(1),u.Q6J("ngIf","resource"===t.secondEntity),u.xp6(1),u.Q6J("ngIf","member"===t.secondEntity),u.xp6(1),u.Q6J("ngIf","facility"===t.secondEntity),u.xp6(1),u.Q6J("ngIf","user"===t.secondEntity),u.xp6(3),u.hij(" ",u.lcZ(10,13,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.CREATE")," "),u.xp6(2),u.Q6J("disabled",0===t.selection.selected.length),u.xp6(1),u.hij(" ",u.lcZ(13,15,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.SAVE")," "),u.xp6(2),u.Q6J("disabled",0===t.selection.selected.length),u.xp6(1),u.hij(" ",u.lcZ(16,17,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.DELETE")," "),u.xp6(2),u.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),u.xp6(1),u.Q6J("ngIf",t.innerLoading),u.xp6(1),u.Q6J("ngIf",!t.innerLoading)}}let O=(()=>{class t{constructor(t,e,i,s,n,r){this.attributesManagerService=t,this.resourcesManagerService=e,this.facilitiesManagerService=i,this.groupsManagerService=s,this.membersManager=n,this.dialog=r,this.entityValues=[],this.attributes=[],this.selection=new a.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(t=>{this.entityValues=t.map(t=>t.enrichedResource.resource),this.preselectEntity(),this.loading=!1});break;case"group":this.groupsManagerService.getMemberGroups(this.firstEntityId).subscribe(t=>{this.entityValues=t,this.preselectEntity(),this.loading=!1})}break;case"group":switch(this.secondEntity){case"resource":this.resourcesManagerService.getResourceAssignments(this.firstEntityId).subscribe(t=>{this.entityValues=t.map(t=>{const e=t.enrichedResource.resource;return e.status=t.status,e}),this.preselectEntity(),this.loading=!1});break;case"member":this.membersManager.getCompleteRichMembersForGroup(this.firstEntityId,!1,this.allowedStatuses,null,[l.r.MEMBER_CORE_ID]).subscribe(t=>{this.entityValues=t,this.preselectEntity(),this.loading=!1})}break;case"user":this.facilitiesManagerService.getAssignedFacilitiesByUser(this.firstEntityId).subscribe(t=>{this.entityValues=t,this.preselectEntity(),this.loading=!1});break;case"resource":switch(this.secondEntity){case"member":this.resourcesManagerService.getAssignedMembersWithStatus(this.firstEntityId).subscribe(t=>{this.entityValues=t.map(t=>t.richMember),this.preselectEntity(),this.loading=!1});break;case"group":this.resourcesManagerService.getGroupAssignments(this.firstEntityId).subscribe(t=>{this.entityValues=t.map(t=>{const e=t.enrichedGroup.group;return e.status=t.status,e}),this.preselectEntity(),this.loading=!1})}break;case"facility":this.facilitiesManagerService.getAssignedUsers(this.firstEntityId).subscribe(t=>{this.entityValues=t,this.preselectEntity(),this.loading=!1})}}preselectEntity(){0!==this.entityValues.length&&this.findInitiallySelectedEntity()}findInitiallySelectedEntity(){let t=this.entityValues[0];const e=(0,r.vL)(this.entityKey());if(e)for(const i of this.entityValues)if(i.id===e[0]){t=i;break}this.specifySecondEntity(t)}entityKey(){switch(this.secondEntity){case"group":return"groups";default:return""}}getAttributes(t){switch(this.innerLoading=!0,this.firstEntity){case"member":switch(this.secondEntity){case"resource":this.attributesManagerService.getMemberResourceAttributes(this.firstEntityId,t).subscribe(t=>{this.attributes=t,this.innerLoading=!1});break;case"group":this.attributesManagerService.getMemberGroupAttributes(this.firstEntityId,t).subscribe(t=>{this.attributes=t,this.innerLoading=!1})}break;case"group":switch(this.secondEntity){case"resource":this.attributesManagerService.getGroupResourceAttributes(this.firstEntityId,t).subscribe(t=>{this.attributes=t,this.innerLoading=!1});break;case"member":this.attributesManagerService.getMemberGroupAttributes(t,this.firstEntityId).subscribe(t=>{this.attributes=t,this.innerLoading=!1})}break;case"user":this.attributesManagerService.getUserFacilityAttributes(this.firstEntityId,t).subscribe(t=>{this.attributes=t,this.innerLoading=!1});break;case"resource":switch(this.secondEntity){case"member":this.attributesManagerService.getMemberResourceAttributes(t,this.firstEntityId).subscribe(t=>{this.attributes=t,this.innerLoading=!1});break;case"group":this.attributesManagerService.getGroupResourceAttributes(t,this.firstEntityId).subscribe(t=>{this.attributes=t,this.innerLoading=!1})}break;case"facility":this.attributesManagerService.getUserFacilityAttributes(t,this.firstEntityId).subscribe(t=>{this.attributes=t,this.innerLoading=!1})}}setMessages(t){this.noEntityMessage=`No ${t} assigned`}onSave(t){this.list.updateMapAttributes();const e=(0,r.kZ)();e.width="450px",e.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:t,attributes:this.selection.selected},this.dialog.open(c.wA,e).afterClosed().subscribe(e=>{e&&(this.selection.clear(),this.getAttributes(t))})}onDelete(t){const e=(0,r.kZ)();e.width="450px",e.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:t,attributes:this.selection.selected,theme:`${this.firstEntity}-theme`},this.dialog.open(n.k,e).afterClosed().subscribe(e=>{e&&(this.selection.clear(),this.getAttributes(t))})}onAdd(t){const e=(0,r.kZ)();e.width="1050px",e.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:t,notEmptyAttributes:this.attributes,style:`${this.firstEntity}-theme`},this.dialog.open(o.n,e).afterClosed().subscribe(e=>{e&&(this.selection.clear(),this.getAttributes(t))})}specifySecondEntity(t){t&&(this.specificSecondEntity=t,this.getAttributes(this.specificSecondEntity.id))}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(s.H8),u.Y36(s.xk),u.Y36(s.IQ),u.Y36(s.ff),u.Y36(s.uq),u.Y36(d.uw))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-two-entity-attribute-page"]],viewQuery:function(t,e){if(1&t&&u.Gf(w,5),2&t){let t;u.iGM(t=u.CRH())&&(e.list=t.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,"groups","firstSelectedGroup","displayStatus","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"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],[3,"attributes","filterValue","selection",4,"ngIf"],[3,"groups","firstSelectedGroup","displayStatus","groupSelected"],[3,"resources","resourceSelected"],[3,"members","memberSelected"],[3,"facilities","facilitySelected"],[3,"users","userSelected"],[3,"attributes","filterValue","selection"],["list",""]],template:function(t,e){1&t&&(u.TgZ(0,"div",0),u.YNc(1,R,1,0,"mat-spinner",1),u.YNc(2,L,2,1,"app-alert",2),u.YNc(3,D,20,19,"div",3),u.qZA()),2&t&&(u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",0===e.entityValues.length&&!e.loading),u.xp6(1),u.Q6J("ngIf",0!==e.entityValues.length))},directives:[h.O5,p.$g,b.w,f.t,g.lW,m.L,E.h,y.L,I,T,Z.S,x.p],pipes:[A.X$],styles:[".w-35[_ngcontent-%COMP%]{width:35%}"]}),t})()},77889:function(t,e,i){"use strict";i.d(e,{C:function(){return V}});var s=i(58623),a=i(67033),n=i(4230),r=i(84140),c=i(68416),o=i(31572),l=i(82819),u=i(61511),d=i(29236),h=i(43691),p=i(36922),b=i(84534),f=i(39571),g=i(48160),m=i(22196),E=i(92898),y=i(44031),S=i(31447);function A(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"mat-checkbox",21),o.NdJ("change",function(e){o.CHM(t);const i=o.oxw(2);return e?i.masterToggle():null}),o.qZA()}if(2&t){const t=o.oxw(2);o.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function I(t,e){if(1&t&&(o.TgZ(0,"th",19),o.YNc(1,A,1,3,"mat-checkbox",20),o.qZA()),2&t){const t=o.oxw();o.xp6(1),o.Q6J("ngIf",t.selection.isMultipleSelection())}}function T(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"td",22),o.TgZ(1,"mat-checkbox",23),o.NdJ("change",function(e){const i=o.CHM(t).$implicit,s=o.oxw();return e?s.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),o.ALo(2,"lowercase"),o.qZA(),o.qZA()}if(2&t){const t=e.$implicit,i=o.oxw();o.xp6(1),o.Q2q("data-cy","",o.lcZ(2,4,t.firstName),"-checkbox"),o.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))("disabled",i.disableSelf&&t.id===i.principalId&&!i.authResolver.isPerunAdmin())}}function Z(t,e){1&t&&o._UZ(0,"th",24)}function x(t,e){1&t&&(o.TgZ(0,"mat-icon",28),o.ALo(1,"translate"),o._uU(2," account_circle "),o.qZA()),2&t&&o.s9C("matTooltip",o.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function w(t,e){if(1&t&&(o._UZ(0,"mat-icon",29),o.ALo(1,"translate")),2&t){const t=o.oxw(2);o.s9C("matTooltip",o.lcZ(1,2,"MANAGERS_LIST.SERVICE")),o.Q6J("svgIcon",t.svgIcon)}}function R(t,e){if(1&t&&(o.TgZ(0,"td",25),o.YNc(1,x,3,3,"mat-icon",26),o.YNc(2,w,2,4,"mat-icon",27),o.qZA()),2&t){const t=e.$implicit;o.xp6(1),o.Q6J("ngIf",!t.serviceUser),o.xp6(1),o.Q6J("ngIf",t.serviceUser)}}function L(t,e){1&t&&(o.TgZ(0,"th",30),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"MANAGERS_LIST.ID")," "))}function C(t,e){if(1&t&&(o.TgZ(0,"td",25),o._uU(1),o.qZA()),2&t){const t=e.$implicit;o.xp6(1),o.hij(" ",t.id," ")}}function M(t,e){1&t&&(o.TgZ(0,"th",30),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"MANAGERS_LIST.NAME")," "))}function _(t,e){if(1&t&&(o.TgZ(0,"td",31),o._uU(1),o.ALo(2,"userFullName"),o.qZA()),2&t){const t=e.$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,t))}}function N(t,e){1&t&&(o.TgZ(0,"th",30),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")," "))}function v(t,e){if(1&t&&(o.TgZ(0,"td",31),o._uU(1),o.ALo(2,"userVo"),o.qZA()),2&t){const t=e.$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,t))}}function k(t,e){1&t&&(o.TgZ(0,"th",30),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"MANAGERS_LIST.EMAIL")," "))}function U(t,e){if(1&t&&(o.TgZ(0,"td",31),o._uU(1),o.ALo(2,"userEmail"),o.qZA()),2&t){const t=e.$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,t))}}function D(t,e){1&t&&(o.TgZ(0,"th",30),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"MANAGERS_LIST.LOGINS")," "))}function O(t,e){if(1&t&&(o.TgZ(0,"td",31),o._uU(1),o.ALo(2,"userLogins"),o.qZA()),2&t){const t=e.$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,t))}}function F(t,e){1&t&&o._UZ(0,"tr",32)}const J=function(t){return["/admin/users",t]},q=function(t){return["/myProfile/service-identities",t]};function Y(t,e){if(1&t&&o._UZ(0,"tr",33),2&t){const t=e.$implicit,i=o.oxw();o.ekj("cursor-pointer",!i.disableRouting),o.Q6J("perunWebAppsForceRouterLink",i.disableRouting?null:i.routeToAdmin?o.VKq(4,J,t.id):o.VKq(6,q,t.id))("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:i.routeToAdmin?o.VKq(8,J,t.id):o.VKq(10,q,t.id))}}function Q(t,e){if(1&t&&(o.TgZ(0,"app-alert",34),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t){const t=o.oxw();o.xp6(1),o.hij(" ",t.noUsersFoundLabel?t.noUsersFoundLabel:o.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n")}}function P(t,e){1&t&&(o.TgZ(0,"app-alert",34),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let V=(()=>{class t{constructor(t,e,i){this.authResolver=t,this.tableCheckbox=e,this.storeService=i,this.svgIcon="perun-service-identity-black",this.selection=new n.Ov(!0,[]),this.displayedColumns=["select","user","id","name","email","logins","organization"],this.routeToAdmin=!0,this.disableRouting=!1,this.filter="",this.disableSelf=!1,this.pageSizeOptions=r.f7}set matSort(t){this.sort=t}getDataForColumn(t,e){var i;switch(e){case"id":return t.id.toString();case"user":return t.serviceUser?"true":"false";case"name":return t?t.lastName?t.lastName:null!==(i=t.firstName)&&void 0!==i?i:"":"";case"organization":return(0,r.OV)(t);case"email":return(0,r.kN)(t);case"logins":return(0,r.lt)(t);default:return""}}getExportDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"user":return t.serviceUser?"service-user":"user";case"name":return t?(0,r.bD)(t):"";case"organization":return(0,r.OV)(t);case"email":return(0,r.kN)(t);case"logins":return(0,r.lt)(t);default:return""}}exportData(t){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}setDataSource(){this.dataSource||(this.dataSource=new a.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(t,e)=>(0,r.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,r.pR)(t,e,this.getDataForColumn,this)),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(t=>"id"!==t)),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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(c.x4),o.Y36(c.UA),o.Y36(c.d6))},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-users-list"]],viewQuery:function(t,e){if(1&t&&(o.Gf(s.YE,7),o.Gf(r.l9,7)),2&t){let t;o.iGM(t=o.CRH())&&(e.matSort=t.first),o.iGM(t=o.CRH())&&(e.child=t.first)}},inputs:{users:"users",selection:"selection",displayedColumns:"displayedColumns",routeToAdmin:"routeToAdmin",disableRouting:"disableRouting",filter:"filter",tableId:"tableId",noUsersFoundLabel:"noUsersFoundLabel",disableSelf:"disableSelf"},features:[o.TTD],decls:28,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","tableId","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","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,"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"],["alert_type","warn"]],template:function(t,e){1&t&&(o.TgZ(0,"div",0),o.TgZ(1,"perun-web-apps-table-wrapper",1),o.NdJ("exportData",function(t){return e.exportData(t)}),o.TgZ(2,"table",2),o.ynx(3,3),o.YNc(4,I,2,1,"th",4),o.YNc(5,T,3,6,"td",5),o.BQk(),o.ynx(6,6),o.YNc(7,Z,1,0,"th",7),o.YNc(8,R,3,2,"td",8),o.BQk(),o.ynx(9,9),o.YNc(10,L,3,3,"th",10),o.YNc(11,C,2,1,"td",8),o.BQk(),o.ynx(12,11),o.YNc(13,M,3,3,"th",10),o.YNc(14,_,3,3,"td",12),o.BQk(),o.ynx(15,13),o.YNc(16,N,3,3,"th",10),o.YNc(17,v,3,3,"td",12),o.BQk(),o.ynx(18,14),o.YNc(19,k,3,3,"th",10),o.YNc(20,U,3,3,"td",12),o.BQk(),o.ynx(21,15),o.YNc(22,D,3,3,"th",10),o.YNc(23,O,3,3,"td",12),o.BQk(),o.YNc(24,F,1,0,"tr",16),o.YNc(25,Y,1,12,"tr",17),o.qZA(),o.qZA(),o.qZA(),o.YNc(26,Q,3,3,"app-alert",18),o.YNc(27,P,3,3,"app-alert",18)),2&t&&(o.Q6J("hidden",0===e.users.length||!e.dataSource||0===e.dataSource.filteredData.length),o.xp6(1),o.Q6J("dataLength",e.dataSource.filteredData.length)("tableId",e.tableId)("pageSizeOptions",e.pageSizeOptions),o.xp6(1),o.Q6J("dataSource",e.dataSource),o.xp6(22),o.Q6J("matHeaderRowDef",e.displayedColumns),o.xp6(1),o.Q6J("matRowDefColumns",e.displayedColumns),o.xp6(1),o.Q6J("ngIf",0===e.users.length),o.xp6(1),o.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.users.length))},directives:[l.l,a.BZ,s.YE,a.w1,a.fO,a.Dz,a.as,a.nj,u.O5,a.ge,d.oG,a.ev,h.Hw,p.gM,s.nU,a.XQ,a.Gk,b.Kd,b.YH,f.w],pipes:[u.i8,g.X$,m.d,E.Z,y.S,S.g],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})()},8557:function(t,e,i){"use strict";i.d(e,{L:function(){return f}});var s=i(31572),a=i(84608),n=i(57629),r=i(61511),c=i(71522),o=i(84534),l=i(43691),u=i(82877),d=i(48160);const h=function(t){return[t]};function p(t,e){if(1&t&&(s.TgZ(0,"div",3),s.TgZ(1,"a",4),s.ALo(2,"multiWordDataCy"),s.ALo(3,"translate"),s._UZ(4,"mat-icon",5),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Gre("",t.style," item-itself"),s.Q6J("routerLink",t.url)("perunWebAppsMiddleClickRouterLink",s.VKq(14,h,t.url)),s.uIk("data-cy",s.lcZ(2,8,s.lcZ(3,10,t.label))),s.xp6(3),s.Q6J("svgIcon",t.cssIcon),s.xp6(1),s.hij(" ",s.lcZ(6,12,t.label)," ")}}function b(t,e){if(1&t&&(s.TgZ(0,"div",1),s.YNc(1,p,7,16,"div",2),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngForOf",t.items)}}let f=(()=>{class t{constructor(t,e){this.dialog=t,this.route=e,this.size="large"}ngOnInit(){this.route.params.subscribe(t=>{this.voId=t.voId})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(a.uw),s.Y36(n.gz))},t.\u0275cmp=s.Xpm({type:t,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","perunWebAppsMiddleClickRouterLink"],[1,"item-pic","perun-icon",3,"svgIcon"]],template:function(t,e){1&t&&s.YNc(0,b,2,1,"div",0),2&t&&s.Q6J("ngIf","small"===e.size)},directives:[r.O5,r.sg,c.wG,n.yS,o.YH,l.Hw],pipes:[u.R,d.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}.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}}"]}),t})()},42847:function(t,e,i){"use strict";i.d(e,{L:function(){return c}});var s=i(31572),a=i(84140),n=i(44973),r=i(48160);let c=(()=>{class t{constructor(){this.resource=null,this.displayStatus=!0,this.resourceSelected=new s.vpe,this.nameFunction=t=>t.name,this.secondaryFunction=()=>null}ngOnInit(){this.resources=this.resources.sort(a.aC)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"perun-web-apps-entity-search-select",0),s.NdJ("entitySelected",function(t){return e.resourceSelected.emit(t)}),s.ALo(1,"translate"),s.ALo(2,"translate"),s.ALo(3,"translate"),s.qZA()),2&t&&s.Q6J("entity",e.resource)("entities",e.resources)("displayStatus",e.displayStatus)("searchFunction",e.nameFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.secondaryFunction)("selectPlaceholder",s.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.SELECT_RESOURCE"))("findPlaceholder",s.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.FIND_RESOURCE"))("noEntriesText",s.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.NO_RESOURCE_FOUND"))},directives:[n.i],pipes:[r.X$],styles:[""]}),t})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/917-es2015.a8dd294601a6f2de987b.js b/dist/apps/admin-gui/917-es2015.a8dd294601a6f2de987b.js deleted file mode 100644 index 27c82071b..000000000 --- a/dist/apps/admin-gui/917-es2015.a8dd294601a6f2de987b.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkperun_web_apps=self.webpackChunkperun_web_apps||[]).push([[917],{21575:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var s=i(17),a=i(31572),n=i(57629);let r=(()=>{class t{constructor(){}prepareRoute(t){return t&&t.activatedRouteData&&t.activatedRouteData.animation}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-animated-router-outlet"]],decls:3,vars:0,consts:[["outlet","outlet"]],template:function(t,e){1&t&&(a.TgZ(0,"div"),a._UZ(1,"router-outlet",null,0),a.qZA())},directives:[n.lC],styles:[""],data:{animation:[s.Ji]}}),t})()},40695:function(t,e,i){"use strict";i.d(e,{n:function(){return S}});var s=i(84608),a=i(4230),n=i(68416),r=i(65249),c=i(60611),o=(i(41939),i(31572)),l=i(48160),u=i(19139),d=i(61511),h=i(15980),p=i(39571),b=i(67806),f=i(41186);const g=["list"];function m(t,e){1&t&&(o.TgZ(0,"app-alert",10),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE.ERROR_EMPTY_VALUE")," "))}function E(t,e){1&t&&o._UZ(0,"mat-spinner",11)}function y(t,e){if(1&t&&o._UZ(0,"perun-web-apps-attributes-list",12,13),2&t){const t=o.oxw();o.Q6J("tableId",t.tableId)("attributes",t.attributes)("filterValue",t.filterValue)("inDialog",!0)("emptyListText","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY_ATTRIBUTES")("selection",t.selected)}}let S=(()=>{class t{constructor(t,e,i,s,n){this.dialogRef=t,this.data=e,this.attributesManager=i,this.notificator=s,this.translate=n,this.attributes=[],this.selected=new a.Ov(!0,[]),this.showError=!1,this.filterValue="",this.tableId=c.rF,this.translate.get("DIALOGS.CREATE_ATTRIBUTE.SUCCESS_SAVE").subscribe(t=>this.saveSuccessMessage=t)}ngOnInit(){const t=new Array;let e,i,s,a,n,r,c,o;switch(this.data.notEmptyAttributes.forEach(e=>{t.push(e.id)}),this.data.entity){case"member":e=this.data.entityId;break;case"user":i=this.data.entityId;break;case"vo":s=this.data.entityId;break;case"group":a=this.data.entityId;break;case"resource":n=this.data.entityId;break;case"facility":r=this.data.entityId;break;case"host":c=this.data.entityId;break;case"ues":o=this.data.entityId}switch(this.data.secondEntity){case"member":e=this.data.secondEntityId;break;case"user":i=this.data.secondEntityId;break;case"vo":s=this.data.secondEntityId;break;case"group":a=this.data.secondEntityId;break;case"resource":n=this.data.secondEntityId;break;case"facility":r=this.data.secondEntityId;break;case"host":c=this.data.secondEntityId;break;case"ues":o=this.data.secondEntityId}this.loading=!0,this.attributesManager.getAttributesDefinitionWithRights(e,i,s,a,n,r,c,o).subscribe(e=>{this.attributes=e,this.attributes=this.attributes.filter(e=>!t.includes(e.id)&&this.twoEntityValid(e)),this.loading=!1})}onCancel(){this.dialogRef.close()}onSave(){this.list.updateMapAttributes();let t=!1;for(const e of this.selected.selected)"java.util.ArrayList"===e.type&&0===e.value.length&&(t=!0),void 0===e.value&&(t=!0);if(t)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":switch(this.data.secondEntity){case"resource":this.attributesManager.setGroupResourceAttributes({group:this.data.entityId,resource:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;default: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":switch(this.data.secondEntity){case"facility":this.attributesManager.setUserFacilityAttributes({user:this.data.entityId,facility:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;default: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(t){this.filterValue=t}handleSuccess(){this.notificator.showSuccess(this.saveSuccessMessage),this.selected.clear(),this.dialogRef.close("saved")}twoEntityValid(t){return!this.data.secondEntity||t.entity===`${this.data.entity}_${this.data.secondEntity}`}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(s.so),o.Y36(s.WI),o.Y36(r.H8),o.Y36(n.V6),o.Y36(l.sK))},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-create-attribute-dialog"]],viewQuery:function(t,e){if(1&t&&o.Gf(g,5),2&t){let t;o.iGM(t=o.CRH())&&(e.list=t.first)}},decls:17,vars:17,consts:[["mat-dialog-title",""],[1,"page-subtitle"],[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,"tableId","attributes","filterValue","inDialog","emptyListText","selection",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,"tableId","attributes","filterValue","inDialog","emptyListText","selection"],["list",""]],template:function(t,e){1&t&&(o.TgZ(0,"div"),o.TgZ(1,"div",0),o.TgZ(2,"h1",1),o._uU(3),o.ALo(4,"translate"),o.qZA(),o.TgZ(5,"perun-web-apps-immediate-filter",2),o.NdJ("filter",function(t){return e.applyFilter(t)}),o.qZA(),o.YNc(6,m,3,3,"app-alert",3),o.qZA(),o.TgZ(7,"div",4),o.YNc(8,E,1,0,"mat-spinner",5),o.YNc(9,y,2,6,"perun-web-apps-attributes-list",6),o.qZA(),o.TgZ(10,"div",7),o.TgZ(11,"button",8),o.NdJ("click",function(){return e.onCancel()}),o._uU(12),o.ALo(13,"translate"),o.qZA(),o.TgZ(14,"button",9),o.NdJ("click",function(){return e.onSave()}),o._uU(15),o.ALo(16,"translate"),o.qZA(),o.qZA(),o.qZA()),2&t&&(o.Tol(e.data.style),o.xp6(3),o.Oqu(o.lcZ(4,11,"DIALOGS.CREATE_ATTRIBUTE.SET_NEW")),o.xp6(2),o.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),o.xp6(1),o.Q6J("ngIf",e.showError),o.xp6(2),o.Q6J("ngIf",e.loading),o.xp6(1),o.Q6J("ngIf",!e.loading),o.xp6(3),o.hij(" ",o.lcZ(13,13,"DIALOGS.CREATE_ATTRIBUTE.CANCEL")," "),o.xp6(2),o.Q6J("disabled",0===e.selected.selected.length),o.xp6(1),o.hij(" ",o.lcZ(16,15,"DIALOGS.CREATE_ATTRIBUTE.SAVE")," "))},directives:[s.uh,u.L,d.O5,s.xY,s.H8,h.lW,p.w,b.$g,f.p],pipes:[l.X$],styles:[".font-size-1rem[_ngcontent-%COMP%]{font-size:1rem!important}"]}),t})()},13572:function(t,e,i){"use strict";i.d(e,{k:function(){return E}});var s=i(84608),a=i(67033),n=i(68416),r=i(65249),c=i(31572),o=i(48160),l=i(61511),u=i(15980),d=i(67806);function h(t,e){1&t&&c._UZ(0,"mat-spinner",6)}function p(t,e){1&t&&c._UZ(0,"th",15)}function b(t,e){if(1&t&&(c.TgZ(0,"td",16),c._uU(1),c.qZA()),2&t){const t=e.$implicit;c.xp6(1),c.hij(" ",t.displayName," ")}}function f(t,e){1&t&&c._UZ(0,"tr",17)}function g(t,e){1&t&&c._UZ(0,"tr",18)}function m(t,e){if(1&t&&(c.TgZ(0,"div",7),c.TgZ(1,"div"),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"div",8),c._uU(5),c.ALo(6,"translate"),c.qZA(),c.TgZ(7,"table",9),c.ynx(8,10),c.YNc(9,p,1,0,"th",11),c.YNc(10,b,2,1,"td",12),c.BQk(),c.YNc(11,f,1,0,"tr",13),c.YNc(12,g,1,0,"tr",14),c.qZA(),c.qZA()),2&t){const t=c.oxw();c.xp6(2),c.hij(" ",c.lcZ(3,5,"DIALOGS.DELETE_ATTRIBUTES.DESCRIPTION")," "),c.xp6(3),c.hij(" ",c.lcZ(6,7,"DIALOGS.DELETE_ATTRIBUTES.ASK")," "),c.xp6(2),c.Q6J("dataSource",t.dataSource),c.xp6(4),c.Q6J("matHeaderRowDef",t.displayedColumns),c.xp6(1),c.Q6J("matRowDefColumns",t.displayedColumns)}}let E=(()=>{class t{constructor(t,e,i,s,a){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=s,this.attributesManager=a,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.dataSource=new a.by(this.data.attributes),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){const t=[];for(const i of this.data.attributes)t.push(i.id);const e={};switch(e[this.data.entity]=this.data.entityId,e.attributes=t,void 0!==this.data.secondEntity&&(e[this.data.secondEntity]=this.data.secondEntityId),this.loading=!0,this.data.entity){case"vo":this.attributesManager.removeVoAttributes(this.data.entityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"group":switch(this.data.secondEntity){case"resource":this.attributesManager.removeGroupResourceAttributes(this.data.entityId,this.data.secondEntityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;default:this.attributesManager.removeGroupAttributes(this.data.entityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1)}break;case"user":switch(this.data.secondEntity){case"facility":this.attributesManager.removeUserFacilityAttributes(this.data.entityId,this.data.secondEntityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;default:this.attributesManager.removeUserAttributes(this.data.entityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1)}break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.removeMemberResourceAttributes(this.data.entityId,this.data.secondEntityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"group":this.attributesManager.removeMemberGroupAttributes(this.data.entityId,this.data.secondEntityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;default:this.attributesManager.removeMemberAttributes(this.data.entityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1)}break;case"facility":this.attributesManager.removeFacilityAttributes(this.data.entityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"host":this.attributesManager.removeHostAttributes(this.data.entityId,t).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"ues":this.attributesManager.removeUesAttributes(this.data.entityId,t).subscribe(()=>{this.onSuccess()});break;case"resource":this.attributesManager.removeResourceAttributes(this.data.entityId,t).subscribe(()=>this.onSuccess())}}onSuccess(){this.translate.get("DIALOGS.DELETE_ATTRIBUTES.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(s.so),c.Y36(s.WI),c.Y36(n.V6),c.Y36(o.sK),c.Y36(r.H8))},t.\u0275cmp=c.Xpm({type:t,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"],["mat-flat-button","","color","warn","data-cy","delete-attributes",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"],["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(t,e){1&t&&(c.TgZ(0,"div"),c.TgZ(1,"h1",0),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.YNc(4,h,1,0,"mat-spinner",1),c.YNc(5,m,13,9,"div",2),c.TgZ(6,"div",3),c.TgZ(7,"button",4),c.NdJ("click",function(){return e.onCancel()}),c._uU(8),c.ALo(9,"translate"),c.qZA(),c.TgZ(10,"button",5),c.NdJ("click",function(){return e.onSubmit()}),c._uU(11),c.ALo(12,"translate"),c.qZA(),c.qZA(),c.qZA()),2&t&&(c.Tol(e.theme),c.xp6(2),c.Oqu(c.lcZ(3,9,"DIALOGS.DELETE_ATTRIBUTES.TITLE")),c.xp6(2),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading),c.xp6(3),c.hij(" ",c.lcZ(9,11,"DIALOGS.DELETE_ATTRIBUTES.CANCEL")," "),c.xp6(2),c.Q6J("disabled",e.loading),c.xp6(1),c.hij(" ",c.lcZ(12,13,"DIALOGS.DELETE_ATTRIBUTES.DELETE")," "))},directives:[s.uh,l.O5,s.H8,u.lW,d.$g,s.xY,a.BZ,a.w1,a.fO,a.Dz,a.as,a.nj,a.ge,a.ev,a.XQ,a.Gk],pipes:[o.X$],styles:[""]}),t})()},541:function(t,e,i){"use strict";i.d(e,{t:function(){return I}});var s=i(65249),a=i(4230),n=i(84140),r=i(40695),c=i(6527),o=i(13572),l=(i(41939),i(60611)),u=i(31572),d=i(84608),h=i(59403),p=i(15980),b=i(19139),f=i(61511),g=i(67806),m=i(41186),E=i(48160);const y=["list"];function S(t,e){1&t&&u._UZ(0,"mat-spinner",7)}function A(t,e){if(1&t&&u._UZ(0,"perun-web-apps-attributes-list",8,9),2&t){const t=u.oxw();u.Q6J("tableId",t.tableId)("filterValue",t.filterValue)("attributes",t.attributes)("selection",t.selection)}}let I=(()=>{class t{constructor(t,e){this.attributesManagerService=t,this.dialog=e,this.attributes=[],this.selection=new a.Ov(!0,[]),this.filterValue="",this.tableId=l.rF,this.loading=!1}ngOnInit(){this.refreshTable()}refreshTable(){switch(this.loading=!0,this.entity){case"member":this.attributesManagerService.getMemberAttributes(this.entityId).subscribe(t=>{this.attributes=t,this.selection.clear(),this.loading=!1});break;case"group":this.attributesManagerService.getGroupAttributes(this.entityId).subscribe(t=>{this.attributes=t,this.selection.clear(),this.loading=!1});break;case"user":this.attributesManagerService.getUserAttributes(this.entityId).subscribe(t=>{this.attributes=t,this.selection.clear(),this.loading=!1});break;case"resource":this.attributesManagerService.getResourceAttributes(this.entityId).subscribe(t=>{this.attributes=t,this.selection.clear(),this.loading=!1});break;case"facility":this.attributesManagerService.getFacilityAttributes(this.entityId).subscribe(t=>{this.attributes=t,this.selection.clear(),this.loading=!1});break;case"vo":this.attributesManagerService.getVoAttributes(this.entityId).subscribe(t=>{this.attributes=t,this.selection.clear(),this.loading=!1})}}applyFilter(t){this.filterValue=t}onCreate(){const t=(0,n.kZ)();t.width="1050px",t.data={entityId:this.entityId,entity:this.entity,notEmptyAttributes:this.attributes,style:this.entity+"-theme"},this.dialog.open(r.n,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const t=(0,n.kZ)();t.width="450px",t.data={entityId:this.entityId,entity:this.entity,attributes:this.selection.selected},this.dialog.open(c.wA,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}onDelete(){const t=(0,n.kZ)();t.width="450px",t.data={entityId:this.entityId,entity:this.entity,attributes:this.selection.selected},this.dialog.open(o.k,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(s.H8),u.Y36(d.uw))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-one-entity-attribute-page"]],viewQuery:function(t,e){if(1&t&&u.Gf(y,5),2&t){let t;u.iGM(t=u.CRH())&&(e.list=t.first)}},inputs:{entity:"entity",entityId:"entityId"},decls:13,vars:14,consts:[[1,"mt-2",3,"refresh"],["mat-flat-button","","color","accent","data-cy","add-attributes",1,"mr-2","mt-2","action-button",3,"click"],["mat-flat-button","","color","accent",1,"mr-2","mt-2",3,"disabled","click"],["color","warn","mat-flat-button","","data-cy","remove-attributes",1,"mt-2","mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","filterValue","attributes","selection",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","attributes","selection"],["list",""]],template:function(t,e){1&t&&(u.TgZ(0,"perun-web-apps-refresh-button",0),u.NdJ("refresh",function(){return e.refreshTable()}),u.qZA(),u.TgZ(1,"button",1),u.NdJ("click",function(){return e.onCreate()}),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"button",2),u.NdJ("click",function(){return e.onSave()}),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.TgZ(7,"button",3),u.NdJ("click",function(){return e.onDelete()}),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.TgZ(10,"perun-web-apps-immediate-filter",4),u.NdJ("filter",function(t){return e.applyFilter(t)}),u.qZA(),u.YNc(11,S,1,0,"mat-spinner",5),u.YNc(12,A,2,4,"perun-web-apps-attributes-list",6)),2&t&&(u.xp6(2),u.hij(" ",u.lcZ(3,8,"USER_DETAIL.SETTINGS.ATTRIBUTES.CREATE"),"\n"),u.xp6(2),u.Q6J("disabled",0===e.selection.selected.length),u.xp6(1),u.hij(" ",u.lcZ(6,10,"USER_DETAIL.SETTINGS.ATTRIBUTES.SAVE"),"\n"),u.xp6(2),u.Q6J("disabled",0===e.selection.selected.length),u.xp6(1),u.hij(" ",u.lcZ(9,12,"USER_DETAIL.SETTINGS.ATTRIBUTES.DELETE"),"\n"),u.xp6(2),u.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading))},directives:[h.t,p.lW,b.L,f.O5,g.$g,m.p],pipes:[E.X$],styles:[""]}),t})()},3417:function(t,e,i){"use strict";i.d(e,{Y:function(){return D}});var s=i(65249),a=(i(41939),i(4230)),n=i(13572),r=i(84140),c=i(6527),o=i(40695),l=i(67004),u=i(31572),d=i(84608),h=i(61511),p=i(67806),b=i(39571),f=i(59403),g=i(15980),m=i(19139),E=i(37665),y=i(42847),S=i(44973),A=i(48160);let I=(()=>{class t{constructor(){this.memberSelected=new u.vpe,this.memberFullNameFunction=t=>(0,r.bD)(t.user)}ngOnInit(){this.members=this.members.sort(r.fx)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=u.Xpm({type:t,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(t,e){1&t&&(u.TgZ(0,"perun-web-apps-entity-search-select",0),u.NdJ("entitySelected",function(t){return e.memberSelected.emit(t)}),u.ALo(1,"translate"),u.ALo(2,"translate"),u.ALo(3,"translate"),u.qZA()),2&t&&u.Q6J("entities",e.members)("searchFunction",e.memberFullNameFunction)("mainTextFunction",e.memberFullNameFunction)("selectPlaceholder",u.lcZ(1,6,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.SELECT_MEMBER"))("findPlaceholder",u.lcZ(2,8,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.FIND_MEMBER"))("noEntriesText",u.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.NO_MEMBER_FOUND"))},directives:[S.i],pipes:[A.X$],styles:[""]}),t})(),T=(()=>{class t{constructor(){this.facilitySelected=new u.vpe,this.nameFunction=t=>t.name}ngOnInit(){this.facilities=this.facilities.sort(r.aC)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=u.Xpm({type:t,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(t,e){1&t&&(u.TgZ(0,"perun-web-apps-entity-search-select",0),u.NdJ("entitySelected",function(t){return e.facilitySelected.emit(t)}),u.ALo(1,"translate"),u.ALo(2,"translate"),u.ALo(3,"translate"),u.qZA()),2&t&&u.Q6J("entities",e.facilities)("searchFunction",e.nameFunction)("mainTextFunction",e.nameFunction)("selectPlaceholder",u.lcZ(1,6,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.SELECT_FACILITY"))("findPlaceholder",u.lcZ(2,8,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.FIND_FACILITY"))("noEntriesText",u.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.NO_FACILITY_FOUND"))},directives:[S.i],pipes:[A.X$],styles:[""]}),t})();var Z=i(7927),x=i(41186);const w=["list"];function R(t,e){1&t&&u._UZ(0,"mat-spinner",4)}function L(t,e){if(1&t&&(u.TgZ(0,"app-alert",5),u._uU(1),u.qZA()),2&t){const t=u.oxw();u.xp6(1),u.Oqu(t.noEntityMessage)}}function C(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"perun-web-apps-group-search-select",18),u.NdJ("groupSelected",function(e){return u.CHM(t),u.oxw(2).specifySecondEntity(e)}),u.qZA()}if(2&t){const t=u.oxw(2);u.Q6J("groups",t.entityValues)("firstSelectedGroup",t.specificSecondEntity)("displayStatus",!0)}}function M(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"perun-web-apps-resource-search-select",19),u.NdJ("resourceSelected",function(e){return u.CHM(t),u.oxw(2).specifySecondEntity(e)}),u.qZA()}if(2&t){const t=u.oxw(2);u.Q6J("resources",t.entityValues)}}function _(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"perun-web-apps-member-search-select",20),u.NdJ("memberSelected",function(e){return u.CHM(t),u.oxw(2).specifySecondEntity(e)}),u.qZA()}if(2&t){const t=u.oxw(2);u.Q6J("members",t.entityValues)}}function N(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"perun-web-apps-facility-search-select",21),u.NdJ("facilitySelected",function(e){return u.CHM(t),u.oxw(2).specifySecondEntity(e)}),u.qZA()}if(2&t){const t=u.oxw(2);u.Q6J("facilities",t.entityValues)}}function v(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"perun-web-apps-user-search-select",22),u.NdJ("userSelected",function(e){return u.CHM(t),u.oxw(2).specifySecondEntity(e)}),u.qZA()}if(2&t){const t=u.oxw(2);u.Q6J("users",t.entityValues)}}function k(t,e){1&t&&u._UZ(0,"mat-spinner",4)}function U(t,e){if(1&t&&u._UZ(0,"perun-web-apps-attributes-list",23,24),2&t){const t=u.oxw(2);u.Q6J("attributes",t.attributes)("filterValue",t.filterValue)("selection",t.selection)}}function O(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"div"),u.TgZ(1,"div",6),u.YNc(2,C,1,3,"perun-web-apps-group-search-select",7),u.YNc(3,M,1,1,"perun-web-apps-resource-search-select",8),u.YNc(4,_,1,1,"perun-web-apps-member-search-select",9),u.YNc(5,N,1,1,"perun-web-apps-facility-search-select",10),u.YNc(6,v,1,1,"perun-web-apps-user-search-select",11),u.qZA(),u.TgZ(7,"perun-web-apps-refresh-button",12),u.NdJ("refresh",function(){u.CHM(t);const e=u.oxw();return e.getAttributes(e.specificSecondEntity.id)}),u.qZA(),u.TgZ(8,"button",13),u.NdJ("click",function(){u.CHM(t);const e=u.oxw();return e.onAdd(e.specificSecondEntity.id)}),u._uU(9),u.ALo(10,"translate"),u.qZA(),u.TgZ(11,"button",14),u.NdJ("click",function(){u.CHM(t);const e=u.oxw();return e.onSave(e.specificSecondEntity.id)}),u._uU(12),u.ALo(13,"translate"),u.qZA(),u.TgZ(14,"button",15),u.NdJ("click",function(){u.CHM(t);const e=u.oxw();return e.onDelete(e.specificSecondEntity.id)}),u._uU(15),u.ALo(16,"translate"),u.qZA(),u.TgZ(17,"perun-web-apps-immediate-filter",16),u.NdJ("filter",function(e){return u.CHM(t),u.oxw().applyFilter(e)}),u.qZA(),u.YNc(18,k,1,0,"mat-spinner",1),u.YNc(19,U,2,3,"perun-web-apps-attributes-list",17),u.qZA()}if(2&t){const t=u.oxw();u.xp6(2),u.Q6J("ngIf","group"===t.secondEntity),u.xp6(1),u.Q6J("ngIf","resource"===t.secondEntity),u.xp6(1),u.Q6J("ngIf","member"===t.secondEntity),u.xp6(1),u.Q6J("ngIf","facility"===t.secondEntity),u.xp6(1),u.Q6J("ngIf","user"===t.secondEntity),u.xp6(3),u.hij(" ",u.lcZ(10,13,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.CREATE")," "),u.xp6(2),u.Q6J("disabled",0===t.selection.selected.length),u.xp6(1),u.hij(" ",u.lcZ(13,15,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.SAVE")," "),u.xp6(2),u.Q6J("disabled",0===t.selection.selected.length),u.xp6(1),u.hij(" ",u.lcZ(16,17,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.DELETE")," "),u.xp6(2),u.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),u.xp6(1),u.Q6J("ngIf",t.innerLoading),u.xp6(1),u.Q6J("ngIf",!t.innerLoading)}}let D=(()=>{class t{constructor(t,e,i,s,n,r){this.attributesManagerService=t,this.resourcesManagerService=e,this.facilitiesManagerService=i,this.groupsManagerService=s,this.membersManager=n,this.dialog=r,this.entityValues=[],this.attributes=[],this.selection=new a.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(t=>{this.entityValues=t.map(t=>t.enrichedResource.resource),this.preselectEntity(),this.loading=!1});break;case"group":this.groupsManagerService.getMemberGroups(this.firstEntityId).subscribe(t=>{this.entityValues=t,this.preselectEntity(),this.loading=!1})}break;case"group":switch(this.secondEntity){case"resource":this.resourcesManagerService.getResourceAssignments(this.firstEntityId).subscribe(t=>{this.entityValues=t.map(t=>{const e=t.enrichedResource.resource;return e.status=t.status,e}),this.preselectEntity(),this.loading=!1});break;case"member":this.membersManager.getCompleteRichMembersForGroup(this.firstEntityId,!1,this.allowedStatuses,null,[l.r.MEMBER_CORE_ID]).subscribe(t=>{this.entityValues=t,this.preselectEntity(),this.loading=!1})}break;case"user":this.facilitiesManagerService.getAssignedFacilitiesByUser(this.firstEntityId).subscribe(t=>{this.entityValues=t,this.preselectEntity(),this.loading=!1});break;case"resource":switch(this.secondEntity){case"member":this.resourcesManagerService.getAssignedMembersWithStatus(this.firstEntityId).subscribe(t=>{this.entityValues=t.map(t=>t.richMember),this.preselectEntity(),this.loading=!1});break;case"group":this.resourcesManagerService.getGroupAssignments(this.firstEntityId).subscribe(t=>{this.entityValues=t.map(t=>{const e=t.enrichedGroup.group;return e.status=t.status,e}),this.preselectEntity(),this.loading=!1})}break;case"facility":this.facilitiesManagerService.getAssignedUsers(this.firstEntityId).subscribe(t=>{this.entityValues=t,this.preselectEntity(),this.loading=!1})}}preselectEntity(){0!==this.entityValues.length&&this.findInitiallySelectedEntity()}findInitiallySelectedEntity(){let t=this.entityValues[0];const e=(0,r.vL)(this.entityKey());if(e)for(const i of this.entityValues)if(i.id===e[0]){t=i;break}this.specifySecondEntity(t)}entityKey(){switch(this.secondEntity){case"group":return"groups";default:return""}}getAttributes(t){switch(this.innerLoading=!0,this.firstEntity){case"member":switch(this.secondEntity){case"resource":this.attributesManagerService.getMemberResourceAttributes(this.firstEntityId,t).subscribe(t=>{this.attributes=t,this.innerLoading=!1});break;case"group":this.attributesManagerService.getMemberGroupAttributes(this.firstEntityId,t).subscribe(t=>{this.attributes=t,this.innerLoading=!1})}break;case"group":switch(this.secondEntity){case"resource":this.attributesManagerService.getGroupResourceAttributes(this.firstEntityId,t).subscribe(t=>{this.attributes=t,this.innerLoading=!1});break;case"member":this.attributesManagerService.getMemberGroupAttributes(t,this.firstEntityId).subscribe(t=>{this.attributes=t,this.innerLoading=!1})}break;case"user":this.attributesManagerService.getUserFacilityAttributes(this.firstEntityId,t).subscribe(t=>{this.attributes=t,this.innerLoading=!1});break;case"resource":switch(this.secondEntity){case"member":this.attributesManagerService.getMemberResourceAttributes(t,this.firstEntityId).subscribe(t=>{this.attributes=t,this.innerLoading=!1});break;case"group":this.attributesManagerService.getGroupResourceAttributes(t,this.firstEntityId).subscribe(t=>{this.attributes=t,this.innerLoading=!1})}break;case"facility":this.attributesManagerService.getUserFacilityAttributes(t,this.firstEntityId).subscribe(t=>{this.attributes=t,this.innerLoading=!1})}}setMessages(t){this.noEntityMessage=`No ${t} assigned`}onSave(t){this.list.updateMapAttributes();const e=(0,r.kZ)();e.width="450px",e.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:t,attributes:this.selection.selected},this.dialog.open(c.wA,e).afterClosed().subscribe(e=>{e&&(this.selection.clear(),this.getAttributes(t))})}onDelete(t){const e=(0,r.kZ)();e.width="450px",e.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:t,attributes:this.selection.selected,theme:`${this.firstEntity}-theme`},this.dialog.open(n.k,e).afterClosed().subscribe(e=>{e&&(this.selection.clear(),this.getAttributes(t))})}onAdd(t){const e=(0,r.kZ)();e.width="1050px",e.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:t,notEmptyAttributes:this.attributes,style:`${this.firstEntity}-theme`},this.dialog.open(o.n,e).afterClosed().subscribe(e=>{e&&(this.selection.clear(),this.getAttributes(t))})}specifySecondEntity(t){t&&(this.specificSecondEntity=t,this.getAttributes(this.specificSecondEntity.id))}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(s.H8),u.Y36(s.xk),u.Y36(s.IQ),u.Y36(s.ff),u.Y36(s.uq),u.Y36(d.uw))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-two-entity-attribute-page"]],viewQuery:function(t,e){if(1&t&&u.Gf(w,5),2&t){let t;u.iGM(t=u.CRH())&&(e.list=t.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,"groups","firstSelectedGroup","displayStatus","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"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],[3,"attributes","filterValue","selection",4,"ngIf"],[3,"groups","firstSelectedGroup","displayStatus","groupSelected"],[3,"resources","resourceSelected"],[3,"members","memberSelected"],[3,"facilities","facilitySelected"],[3,"users","userSelected"],[3,"attributes","filterValue","selection"],["list",""]],template:function(t,e){1&t&&(u.TgZ(0,"div",0),u.YNc(1,R,1,0,"mat-spinner",1),u.YNc(2,L,2,1,"app-alert",2),u.YNc(3,O,20,19,"div",3),u.qZA()),2&t&&(u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",0===e.entityValues.length&&!e.loading),u.xp6(1),u.Q6J("ngIf",0!==e.entityValues.length))},directives:[h.O5,p.$g,b.w,f.t,g.lW,m.L,E.h,y.L,I,T,Z.S,x.p],pipes:[A.X$],styles:[".w-35[_ngcontent-%COMP%]{width:35%}"]}),t})()},77889:function(t,e,i){"use strict";i.d(e,{C:function(){return V}});var s=i(58623),a=i(67033),n=i(4230),r=i(84140),c=i(68416),o=i(31572),l=i(82819),u=i(61511),d=i(29236),h=i(43691),p=i(36922),b=i(84534),f=i(39571),g=i(48160),m=i(22196),E=i(92898),y=i(44031),S=i(31447);function A(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"mat-checkbox",21),o.NdJ("change",function(e){o.CHM(t);const i=o.oxw(2);return e?i.masterToggle():null}),o.qZA()}if(2&t){const t=o.oxw(2);o.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function I(t,e){if(1&t&&(o.TgZ(0,"th",19),o.YNc(1,A,1,3,"mat-checkbox",20),o.qZA()),2&t){const t=o.oxw();o.xp6(1),o.Q6J("ngIf",t.selection.isMultipleSelection())}}function T(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"td",22),o.TgZ(1,"mat-checkbox",23),o.NdJ("change",function(e){const i=o.CHM(t).$implicit,s=o.oxw();return e?s.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),o.ALo(2,"lowercase"),o.qZA(),o.qZA()}if(2&t){const t=e.$implicit,i=o.oxw();o.xp6(1),o.Q2q("data-cy","",o.lcZ(2,4,t.firstName),"-checkbox"),o.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))("disabled",i.disableSelf&&t.id===i.principalId&&!i.authResolver.isPerunAdmin())}}function Z(t,e){1&t&&o._UZ(0,"th",24)}function x(t,e){1&t&&(o.TgZ(0,"mat-icon",28),o.ALo(1,"translate"),o._uU(2," account_circle "),o.qZA()),2&t&&o.s9C("matTooltip",o.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function w(t,e){if(1&t&&(o._UZ(0,"mat-icon",29),o.ALo(1,"translate")),2&t){const t=o.oxw(2);o.s9C("matTooltip",o.lcZ(1,2,"MANAGERS_LIST.SERVICE")),o.Q6J("svgIcon",t.svgIcon)}}function R(t,e){if(1&t&&(o.TgZ(0,"td",25),o.YNc(1,x,3,3,"mat-icon",26),o.YNc(2,w,2,4,"mat-icon",27),o.qZA()),2&t){const t=e.$implicit;o.xp6(1),o.Q6J("ngIf",!t.serviceUser),o.xp6(1),o.Q6J("ngIf",t.serviceUser)}}function L(t,e){1&t&&(o.TgZ(0,"th",30),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"MANAGERS_LIST.ID")))}function C(t,e){if(1&t&&(o.TgZ(0,"td",25),o._uU(1),o.qZA()),2&t){const t=e.$implicit;o.xp6(1),o.hij(" ",t.id," ")}}function M(t,e){1&t&&(o.TgZ(0,"th",30),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"MANAGERS_LIST.NAME")))}function _(t,e){if(1&t&&(o.TgZ(0,"td",31),o._uU(1),o.ALo(2,"userFullName"),o.qZA()),2&t){const t=e.$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,t))}}function N(t,e){1&t&&(o.TgZ(0,"th",30),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")))}function v(t,e){if(1&t&&(o.TgZ(0,"td",31),o._uU(1),o.ALo(2,"userVo"),o.qZA()),2&t){const t=e.$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,t))}}function k(t,e){1&t&&(o.TgZ(0,"th",30),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"MANAGERS_LIST.EMAIL")))}function U(t,e){if(1&t&&(o.TgZ(0,"td",31),o._uU(1),o.ALo(2,"userEmail"),o.qZA()),2&t){const t=e.$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,t))}}function O(t,e){1&t&&(o.TgZ(0,"th",30),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"MANAGERS_LIST.LOGINS")))}function D(t,e){if(1&t&&(o.TgZ(0,"td",31),o._uU(1),o.ALo(2,"userLogins"),o.qZA()),2&t){const t=e.$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,t))}}function q(t,e){1&t&&o._UZ(0,"tr",32)}const F=function(t){return["/admin/users",t]},J=function(t){return["/myProfile/service-identities",t]};function Y(t,e){if(1&t&&o._UZ(0,"tr",33),2&t){const t=e.$implicit,i=o.oxw();o.ekj("cursor-pointer",!i.disableRouting),o.Q6J("perunWebAppsForceRouterLink",i.disableRouting?null:i.routeToAdmin?o.VKq(4,F,t.id):o.VKq(6,J,t.id))("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:i.routeToAdmin?o.VKq(8,F,t.id):o.VKq(10,J,t.id))}}function Q(t,e){if(1&t&&(o.TgZ(0,"app-alert",34),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t){const t=o.oxw();o.xp6(1),o.hij(" ",t.noUsersFoundLabel?t.noUsersFoundLabel:o.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n")}}function P(t,e){1&t&&(o.TgZ(0,"app-alert",34),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let V=(()=>{class t{constructor(t,e,i){this.authResolver=t,this.tableCheckbox=e,this.storeService=i,this.svgIcon="perun-service-identity-black",this.selection=new n.Ov(!0,[]),this.displayedColumns=["select","user","id","name","email","logins","organization"],this.routeToAdmin=!0,this.disableRouting=!1,this.filter="",this.disableSelf=!1,this.pageSizeOptions=r.f7}set matSort(t){this.sort=t}getDataForColumn(t,e){var i;switch(e){case"id":return t.id.toString();case"user":return t.serviceUser?"true":"false";case"name":return t?t.lastName?t.lastName:null!==(i=t.firstName)&&void 0!==i?i:"":"";case"organization":return(0,r.OV)(t);case"email":return(0,r.kN)(t);case"logins":return(0,r.lt)(t);default:return""}}getExportDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"user":return t.serviceUser?"service-user":"user";case"name":return t?(0,r.bD)(t):"";case"organization":return(0,r.OV)(t);case"email":return(0,r.kN)(t);case"logins":return(0,r.lt)(t);default:return""}}exportData(t){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}setDataSource(){this.dataSource||(this.dataSource=new a.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(t,e)=>(0,r.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,r.pR)(t,e,this.getDataForColumn,this)),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(t=>"id"!==t)),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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(c.x4),o.Y36(c.UA),o.Y36(c.d6))},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-users-list"]],viewQuery:function(t,e){if(1&t&&(o.Gf(s.YE,7),o.Gf(r.l9,7)),2&t){let t;o.iGM(t=o.CRH())&&(e.matSort=t.first),o.iGM(t=o.CRH())&&(e.child=t.first)}},inputs:{users:"users",selection:"selection",displayedColumns:"displayedColumns",routeToAdmin:"routeToAdmin",disableRouting:"disableRouting",filter:"filter",tableId:"tableId",noUsersFoundLabel:"noUsersFoundLabel",disableSelf:"disableSelf"},features:[o.TTD],decls:28,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","tableId","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","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,"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"],["alert_type","warn"]],template:function(t,e){1&t&&(o.TgZ(0,"div",0),o.TgZ(1,"perun-web-apps-table-wrapper",1),o.NdJ("exportData",function(t){return e.exportData(t)}),o.TgZ(2,"table",2),o.ynx(3,3),o.YNc(4,I,2,1,"th",4),o.YNc(5,T,3,6,"td",5),o.BQk(),o.ynx(6,6),o.YNc(7,Z,1,0,"th",7),o.YNc(8,R,3,2,"td",8),o.BQk(),o.ynx(9,9),o.YNc(10,L,3,3,"th",10),o.YNc(11,C,2,1,"td",8),o.BQk(),o.ynx(12,11),o.YNc(13,M,3,3,"th",10),o.YNc(14,_,3,3,"td",12),o.BQk(),o.ynx(15,13),o.YNc(16,N,3,3,"th",10),o.YNc(17,v,3,3,"td",12),o.BQk(),o.ynx(18,14),o.YNc(19,k,3,3,"th",10),o.YNc(20,U,3,3,"td",12),o.BQk(),o.ynx(21,15),o.YNc(22,O,3,3,"th",10),o.YNc(23,D,3,3,"td",12),o.BQk(),o.YNc(24,q,1,0,"tr",16),o.YNc(25,Y,1,12,"tr",17),o.qZA(),o.qZA(),o.qZA(),o.YNc(26,Q,3,3,"app-alert",18),o.YNc(27,P,3,3,"app-alert",18)),2&t&&(o.Q6J("hidden",0===e.users.length||!e.dataSource||0===e.dataSource.filteredData.length),o.xp6(1),o.Q6J("dataLength",e.dataSource.filteredData.length)("tableId",e.tableId)("pageSizeOptions",e.pageSizeOptions),o.xp6(1),o.Q6J("dataSource",e.dataSource),o.xp6(22),o.Q6J("matHeaderRowDef",e.displayedColumns),o.xp6(1),o.Q6J("matRowDefColumns",e.displayedColumns),o.xp6(1),o.Q6J("ngIf",0===e.users.length),o.xp6(1),o.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.users.length))},directives:[l.l,a.BZ,s.YE,a.w1,a.fO,a.Dz,a.as,a.nj,u.O5,a.ge,d.oG,a.ev,h.Hw,p.gM,s.nU,a.XQ,a.Gk,b.Kd,b.YH,f.w],pipes:[u.i8,g.X$,m.d,E.Z,y.S,S.g],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})()},8557:function(t,e,i){"use strict";i.d(e,{L:function(){return f}});var s=i(31572),a=i(84608),n=i(57629),r=i(61511),c=i(71522),o=i(84534),l=i(43691),u=i(82877),d=i(48160);const h=function(t){return[t]};function p(t,e){if(1&t&&(s.TgZ(0,"div",3),s.TgZ(1,"a",4),s.ALo(2,"multiWordDataCy"),s.ALo(3,"translate"),s._UZ(4,"mat-icon",5),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Gre("",t.style," item-itself"),s.Q6J("routerLink",t.url)("perunWebAppsMiddleClickRouterLink",s.VKq(14,h,t.url)),s.uIk("data-cy",s.lcZ(2,8,s.lcZ(3,10,t.label))),s.xp6(3),s.Q6J("svgIcon",t.cssIcon),s.xp6(1),s.hij(" ",s.lcZ(6,12,t.label)," ")}}function b(t,e){if(1&t&&(s.TgZ(0,"div",1),s.YNc(1,p,7,16,"div",2),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngForOf",t.items)}}let f=(()=>{class t{constructor(t,e){this.dialog=t,this.route=e,this.size="large"}ngOnInit(){this.route.params.subscribe(t=>{this.voId=t.voId})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(a.uw),s.Y36(n.gz))},t.\u0275cmp=s.Xpm({type:t,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","perunWebAppsMiddleClickRouterLink"],[1,"item-pic","perun-icon",3,"svgIcon"]],template:function(t,e){1&t&&s.YNc(0,b,2,1,"div",0),2&t&&s.Q6J("ngIf","small"===e.size)},directives:[r.O5,r.sg,c.wG,n.yS,o.YH,l.Hw],pipes:[u.R,d.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}.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}}"]}),t})()},42847:function(t,e,i){"use strict";i.d(e,{L:function(){return c}});var s=i(31572),a=i(84140),n=i(44973),r=i(48160);let c=(()=>{class t{constructor(){this.resource=null,this.displayStatus=!0,this.resourceSelected=new s.vpe,this.nameFunction=t=>t.name,this.secondaryFunction=()=>null}ngOnInit(){this.resources=this.resources.sort(a.aC)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"perun-web-apps-entity-search-select",0),s.NdJ("entitySelected",function(t){return e.resourceSelected.emit(t)}),s.ALo(1,"translate"),s.ALo(2,"translate"),s.ALo(3,"translate"),s.qZA()),2&t&&s.Q6J("entity",e.resource)("entities",e.resources)("displayStatus",e.displayStatus)("searchFunction",e.nameFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.secondaryFunction)("selectPlaceholder",s.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.SELECT_RESOURCE"))("findPlaceholder",s.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.FIND_RESOURCE"))("noEntriesText",s.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.NO_RESOURCE_FOUND"))},directives:[n.i],pipes:[r.X$],styles:[""]}),t})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/917-es5.0b65908ca89a9fdd7319.js b/dist/apps/admin-gui/917-es5.0b65908ca89a9fdd7319.js new file mode 100644 index 000000000..57c435257 --- /dev/null +++ b/dist/apps/admin-gui/917-es5.0b65908ca89a9fdd7319.js @@ -0,0 +1 @@ +!function(){function t(t,i){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,i){if(!t)return;if("string"==typeof t)return e(t,i);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(t,i)}(t))||i&&t&&"number"==typeof t.length){n&&(t=n);var s=0,a=function(){};return{s:a,n:function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,c=!0,o=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){o=!0,r=t},f:function(){try{c||null==n.return||n.return()}finally{if(o)throw r}}}}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i=t.length?{done:!0}:{done:!1,value:t[s++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,c=!0,o=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){o=!0,r=t},f:function(){try{c||null==n.return||n.return()}finally{if(o)throw r}}}}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i + - - - Perun Web Gui - + + + Perun Web Gui + - - - - - -
-
-
-
- + + + + + +
+
+
+
+ diff --git a/dist/apps/admin-gui/main-es2015.b8f3d0f37d2ca9fa06cc.js b/dist/apps/admin-gui/main-es2015.b8f3d0f37d2ca9fa06cc.js deleted file mode 100644 index 07ea1f381..000000000 --- a/dist/apps/admin-gui/main-es2015.b8f3d0f37d2ca9fa06cc.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkperun_web_apps=self.webpackChunkperun_web_apps||[]).push([[179],{27622:function(t){function e(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=function(){return[]},e.resolve=e,e.id=27622,t.exports=e},71313:function(t,e,i){"use strict";i.d(e,{t:function(){return d}});var n=i(60611),s=i(67004),o=i(68416),r=i(31572),a=i(91058),c=i(29236),l=i(16247),u=i(48160);const h=function(){return["user","id","name","email","logins","organization"]};let d=(()=>{class t{constructor(t){this.storeService=t,this.usersWithoutVo=!1,this.tableId=n.xx,this.attributes=[]}ngOnInit(){this.attributes=[s.r.USER_DEF_ORGANIZATION,s.r.USER_DEF_PREFERRED_MAIL],this.attributes=this.attributes.concat(this.storeService.getLoginAttributeNames())}onSearchByString(t){this.searchString=t}findUsersWithoutVO(){this.usersWithoutVo=!this.usersWithoutVo}}return t.id="AdminUsersComponent",t.\u0275fac=function(e){return new(e||t)(r.Y36(o.d6))},t.\u0275cmp=r.Xpm({type:t,selectors:[["app-admin-users"]],hostVars:2,hostBindings:function(t,e){2&t&&r.ekj("router-component",e.true)},decls:8,vars:15,consts:[[1,"page-subtitle"],[1,"mt-2","search-field",3,"placeholder","filter"],["color","primary",3,"checked","change"],[3,"disableRouting","searchString","withoutVo","displayedColumns","tableId","attrNames"]],template:function(t,e){1&t&&(r.TgZ(0,"h1",0),r._uU(1),r.ALo(2,"translate"),r.qZA(),r.TgZ(3,"perun-web-apps-debounce-filter",1),r.NdJ("filter",function(t){return e.onSearchByString(t)}),r.qZA(),r.TgZ(4,"mat-checkbox",2),r.NdJ("change",function(){return e.findUsersWithoutVO()}),r._uU(5),r.ALo(6,"translate"),r.qZA(),r._UZ(7,"perun-web-apps-users-dynamic-list",3)),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,10,"ADMIN.USERS.TITLE")),r.xp6(2),r.Q6J("placeholder","ADMIN.USERS.SEARCH_PLACEHOLDER"),r.xp6(1),r.Q6J("checked",e.usersWithoutVo),r.xp6(1),r.hij(" ",r.lcZ(6,12,"ADMIN.USERS.USERS_WITHOUT_VO"),"\n"),r.xp6(2),r.Q6J("disableRouting",!1)("searchString",e.searchString)("withoutVo",e.usersWithoutVo)("displayedColumns",r.DdM(14,h))("tableId",e.tableId)("attrNames",e.attributes))},directives:[a.P,c.oG,l.M],pipes:[u.X$],styles:[".search-field[_ngcontent-%COMP%]{width:325px}"]}),t})()},61601:function(t,e,i){"use strict";i.d(e,{y:function(){return E}});var n=i(68416),s=i(38289),o=i(29063),r=i(84140),a=i(31572),c=i(84608),l=i(15980),u=i(48160);let h=(()=>{class t{constructor(t){this.dialogRef=t}onReload(){location.reload()}onClose(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(c.so))},t.\u0275cmp=a.Xpm({type:t,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"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"]],template:function(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.TgZ(4,"div",2),a.TgZ(5,"p"),a._uU(6),a.ALo(7,"translate"),a.qZA(),a.qZA(),a.TgZ(8,"div",3),a.TgZ(9,"button",4),a.NdJ("click",function(){return e.onClose()}),a._uU(10),a.ALo(11,"translate"),a.qZA(),a.TgZ(12,"button",5),a.NdJ("click",function(){return e.onReload()}),a._uU(13),a.ALo(14,"translate"),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,4,"DIALOGS.NEW_VERSION.TITLE")),a.xp6(5),a.hij(" ",a.lcZ(7,6,"DIALOGS.NEW_VERSION.DESCRIPTION")," "),a.xp6(4),a.hij(" ",a.lcZ(11,8,"DIALOGS.NEW_VERSION.LATER")," "),a.xp6(3),a.hij(" ",a.lcZ(14,10,"DIALOGS.NEW_VERSION.RELOAD")," "))},directives:[c.uh,c.xY,c.H8,l.lW],pipes:[u.X$],styles:[""]}),t})();var d=i(57629),p=i(43835);let g=(()=>{class t{constructor(t,e){this.router=t,this.routeReuseStrategy=e;const i=e;t.events.subscribe(t=>{t instanceof d.OD&&i.setLastNavigationType("popstate"===t.navigationTrigger?"back":"direct")})}init(){}}return t.\u0275fac=function(e){return new(e||t)(a.LFG(d.F0),a.LFG(d.wN))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const f=["footer"];function m(t,e){if(1&t&&(a.TgZ(0,"div",3),a.TgZ(1,"mat-icon"),a._uU(2,"alert"),a.qZA(),a._uU(3),a.qZA()),2&t){const t=a.oxw();a.xp6(3),a.hij(" ",t.warningMessage,"\n")}}const b=function(t,e){return{top:t,background:e}},_=function(t,e){return{"margin-top":t,"min-height":e}},w=function(t){return{"border-color":t}},A=function(t){return{background:t}},y=function(t){return{"background-color":t}},v=function(t){return{"min-height":t}};function T(t,e){if(1&t&&(a._UZ(0,"app-perun-nav-menu",4),a.TgZ(1,"mat-sidenav-container",5),a.TgZ(2,"mat-sidenav",6,7),a.TgZ(4,"perfect-scrollbar",8),a._UZ(5,"app-side-menu",9),a.qZA(),a.qZA(),a.TgZ(6,"mat-sidenav-content",10),a.TgZ(7,"div",11),a._UZ(8,"router-outlet"),a.qZA(),a.TgZ(9,"div",null,12),a._UZ(11,"perun-web-apps-footer"),a.qZA(),a.qZA(),a.qZA()),2&t){const t=a.MAs(3),e=a.oxw();a.Q6J("ngStyle",a.WLB(14,b,e.getNavMenuTop(),e.navBackgroundColor))("sideNav",t)("principal",e.principal),a.xp6(1),a.Q6J("ngStyle",a.WLB(17,_,e.getSideNavMarginTop(),e.getSideNavMinHeight())),a.xp6(1),a.Q6J("ngStyle",a.VKq(20,w,e.sideBarBorderColor))("mode",e.sidebarMode)("opened",!e.isMobile())("fixedInViewport",!0)("fixedTopGap",e.getTopGap()),a.xp6(2),a.Q6J("ngStyle",a.VKq(22,A,e.sideMenubackgroundColor))("scrollIndicators",!0),a.xp6(1),a.Q6J("sideNav",t),a.xp6(1),a.Q6J("ngStyle",a.VKq(24,y,e.contentBackgroundColor)),a.xp6(1),a.Q6J("ngStyle",a.VKq(26,v,e.contentInnerMinHeight))}}function C(t,e){1&t&&a._UZ(0,"perun-web-apps-login-screen-base",13),2&t&&a.Q6J("application","admin-gui")}let E=(()=>{class t{constructor(t,e,n,s,o,r,a){this.cache=t,this.store=e,this.http=n,this.dialog=s,this.router=o,this.initAuth=r,this.cd=a,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=i(60306).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<=t.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,s.F)(3e4).subscribe(()=>{this.loadAppVersion()}),this.router.events.pipe((0,p.h)(t=>t instanceof d.OD)).subscribe(t=>{this.updateInitAccessedPage(t)})}updateInitAccessedPage(t){t.url===sessionStorage.getItem("initPage")?("imperative"===t.navigationTrigger&&t.id!==this.store.getInitialPageId()&&sessionStorage.setItem("onInitPage","false"),"popstate"===t.navigationTrigger&&(t.restoredState.navigationId===this.store.getInitialPageId()?(sessionStorage.setItem("onInitPage","true"),this.store.setInitialPageId(t.id)):sessionStorage.setItem("onInitPage","false"))):sessionStorage.setItem("onInitPage","false")}loadAppVersion(){const t=new o.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:t}).subscribe(t=>{const e=t.version;if(e)if(this.version&&"SNAPSHOT"!==e&&this.version!==e){const t=(0,r.kZ)();this.dialog.open(h,t)}else this.version=e},()=>{})}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(){this.contentInnerMinHeight=this.displayWarning?"calc(100vh - "+this.footer.nativeElement.offsetHeight+"px - 112px)":"calc(100vh - "+this.footer.nativeElement.offsetHeight+"px - 64px)",this.cd.detectChanges()}}return t.minWidth=992,t.\u0275fac=function(e){return new(e||t)(a.Y36(g),a.Y36(n.d6),a.Y36(o.eN),a.Y36(c.uw),a.Y36(d.F0),a.Y36(n.v0),a.Y36(a.sBO))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-root"]],viewQuery:function(t,e){if(1&t&&a.Gf(f,5),2&t){let t;a.iGM(t=a.CRH())&&(e.footer=t.first)}},hostBindings:function(t,e){1&t&&a.NdJ("resize",function(t){return e.getScreenSize(t)},!1,a.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,"ngStyle","sideNav","principal"],[3,"ngStyle"],[3,"ngStyle","mode","opened","fixedInViewport","fixedTopGap"],["sidenav",""],[3,"ngStyle","scrollIndicators"],[3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],["footer",""],[3,"application"]],template:function(t,e){1&t&&(a.YNc(0,m,4,1,"div",0),a._UZ(1,"perun-web-apps-notificator",1),a.YNc(2,T,12,28,"ng-template",2),a.YNc(3,C,1,1,"ng-template",2)),2&t&&(a.Q6J("ngIf",e.displayWarning),a.xp6(1),a.Q6J("displayWarning",e.displayWarning),a.xp6(1),a.Q6J("ngIf",!e.isLoginScreenShow&&!e.isServiceAccess&&!e.isServiceLogin()),a.xp6(1),a.Q6J("ngIf",e.isLoginScreenShow||e.isServiceAccess||e.isServiceLogin()))},styles:["#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:25px;padding-top:10px}@media (max-width:768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.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}"]}),t})()},48958:function(t,e,i){"use strict";i.d(e,{D:function(){return s}});var n=i(31572);let s=(()=>{class t{constructor(){this.accessItemsChange=new n.vpe,this.facilityItemsChange=new n.vpe,this.adminItemsChange=new n.vpe,this.userItemsChange=new n.vpe,this.resetChange=new n.vpe,this.homeItemsChange=new n.vpe}setHomeItems(t){this.homeItemsChange.emit(t)}setAccessMenuItems(t){this.accessItemsChange.emit(t)}setFacilityMenuItems(t){this.facilityItemsChange.emit(t)}setAdminItems(t){this.adminItemsChange.emit(t)}setUserItems(t){this.userItemsChange.emit(t)}reset(){this.resetChange.emit()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},39124:function(t,e,i){"use strict";i.d(e,{o:function(){return A}});var n=i(65249),s=i(60611),o=i(68416),r=i(31572),a=i(59403),c=i(66283),l=i(4786),u=i(71522),h=i(61511),d=i(19139),p=i(67806),g=i(78364),f=i(48160);function m(t,e){if(1&t&&(r.TgZ(0,"mat-option",9),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.Q6J("value",t.id),r.xp6(1),r.hij(" ",t.name," ")}}function b(t,e){1&t&&r._UZ(0,"mat-spinner",10)}const _=function(){return["id","vo","name","description"]};function w(t,e){if(1&t&&r._UZ(0,"perun-web-apps-groups-list",11),2&t){const t=r.oxw();r.Q6J("displayedColumns",r.DdM(6,_))("groups",t.groupsToShow)("tableId",t.tableId)("groupsToDisableRouting",t.groupsWithoutRouteAuth)("filter",t.filterValue)("disableMembers",!1)}}let A=(()=>{class t{constructor(t,e,i){this.facilityManager=t,this.authResolver=e,this.entityStorageService=i,this.filterValue="",this.groups=[],this.selected="all",this.groupsToShow=this.groups,this.tableId=s.Aj,this.groupsWithoutRouteAuth=new Set}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.facilityManager.getAllowedVos(this.facility.id).subscribe(t=>{this.vos=t,this.refreshTable()})}showGroup(){this.groupsToShow="all"!==this.selected?this.groups.filter(t=>t.voId===parseInt(this.selected,10)):this.groups}refreshTable(){this.loading=!0,this.groups=[],this.vos.forEach(t=>{this.facilityManager.getAllowedGroups(this.facility.id,t.id).subscribe(e=>{this.groups=this.groups.concat(e),this.groupsToShow=this.groups,this.setAuthRights(t,e),this.loading=!1})}),0===this.vos.length&&(this.loading=!1)}setAuthRights(t,e){e.forEach(e=>{this.authResolver.isAuthorized("getGroupById_int_policy",[t,e])||this.groupsWithoutRouteAuth.add(e.id)})}applyFilter(t){this.filterValue=t}}return t.id="FacilityAllowedGroupsComponent",t.\u0275fac=function(e){return new(e||t)(r.Y36(n.IQ),r.Y36(o.x4),r.Y36(o.fb))},t.\u0275cmp=r.Xpm({type:t,selectors:[["app-facility-allowed-groups"]],hostVars:2,hostBindings:function(t,e){2&t&&r.ekj("router-component",e.true)},inputs:{groups:"groups"},decls:17,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],[1,"mr-2"],[3,"value","valueChange","selectionChange"],["value","all"],[3,"value",4,"ngFor","ngForOf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","groups","tableId","groupsToDisableRouting","filter","disableMembers",4,"ngIf"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","groups","tableId","groupsToDisableRouting","filter","disableMembers"]],template:function(t,e){1&t&&(r.TgZ(0,"div"),r.TgZ(1,"h1",0),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.TgZ(4,"perun-web-apps-refresh-button",1),r.NdJ("refresh",function(){return e.refreshTable()}),r.qZA(),r.TgZ(5,"mat-form-field",2),r.TgZ(6,"mat-label"),r._uU(7),r.ALo(8,"translate"),r.qZA(),r.TgZ(9,"mat-select",3),r.NdJ("valueChange",function(t){return e.selected=t})("selectionChange",function(){return e.showGroup()}),r.TgZ(10,"mat-option",4),r._uU(11),r.ALo(12,"translate"),r.qZA(),r.YNc(13,m,2,2,"mat-option",5),r.qZA(),r.qZA(),r.TgZ(14,"perun-web-apps-immediate-filter",6),r.NdJ("filter",function(t){return e.applyFilter(t)}),r.qZA(),r.YNc(15,b,1,0,"mat-spinner",7),r.YNc(16,w,1,7,"perun-web-apps-groups-list",8),r.qZA()),2&t&&(r.xp6(2),r.Oqu(r.lcZ(3,8,"MENU_ITEMS.FACILITY.ALLOWED_GROUPS")),r.xp6(5),r.Oqu(r.lcZ(8,10,"FACILITY_DETAIL.ALLOWED_GROUPS.SHOW_VOS_GROUPS")),r.xp6(2),r.Q6J("value",e.selected),r.xp6(2),r.Oqu(r.lcZ(12,12,"FACILITY_DETAIL.ALLOWED_GROUPS.ALL")),r.xp6(2),r.Q6J("ngForOf",e.vos),r.xp6(1),r.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_GROUPS.FILTER"),r.xp6(1),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading))},directives:[a.t,c.KE,c.hX,l.gD,u.ey,h.sg,d.L,h.O5,p.$g,g.W],pipes:[f.X$],styles:[""]}),t})()},64467:function(t,e,i){"use strict";i.d(e,{f:function(){return x}});var n=i(4230),s=i(95909),o=i(65249),r=i(16073),a=i(84608),c=i(68416),l=i(31572),u=i(48160),h=i(61511),d=i(15980),p=i(67806),g=i(19386),f=i(66283),m=i(80340);function b(t,e){1&t&&l._UZ(0,"mat-spinner",5)}function _(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div",6),l.TgZ(1,"perun-web-apps-vo-search-select",7),l.NdJ("voSelected",function(e){return l.CHM(t),l.oxw().selectedVo=e}),l.qZA(),l.TgZ(2,"mat-form-field"),l._UZ(3,"input",8),l.ALo(4,"translate"),l.TgZ(5,"mat-error"),l._uU(6),l.ALo(7,"translate"),l.qZA(),l.qZA(),l.TgZ(8,"mat-form-field"),l._UZ(9,"input",9),l.ALo(10,"translate"),l.TgZ(11,"mat-error"),l._uU(12),l.ALo(13,"translate"),l.qZA(),l.qZA(),l.qZA()}if(2&t){const t=l.oxw();l.xp6(1),l.Q6J("vos",t.vos),l.xp6(2),l.s9C("placeholder",l.lcZ(4,7,"DIALOGS.CREATE_RESOURCE.NAME")),l.Q6J("formControl",t.nameCtrl),l.xp6(3),l.hij(" ",l.lcZ(7,9,"DIALOGS.CREATE_RESOURCE.INCORRECT_NAME")," "),l.xp6(3),l.s9C("placeholder",l.lcZ(10,11,"DIALOGS.CREATE_RESOURCE.DESCRIPTION")),l.Q6J("formControl",t.descriptionCtrl),l.xp6(3),l.hij(" ",l.lcZ(13,13,"DIALOGS.CREATE_RESOURCE.FILL_DESCRIPTION")," ")}}let w=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.notificator=i,this.voService=n,this.translate=s,this.resourcesManager=o,this.vos=[],this.selectedVo=null,s.get("DIALOGS.CREATE_RESOURCE.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voService.getAllVos().subscribe(t=>{this.vos=t,this.loading=!1},()=>this.loading=!1),this.nameCtrl=new r.NI(null,[r.kI.required,r.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new r.NI("")}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 t.\u0275fac=function(e){return new(e||t)(l.Y36(a.so),l.Y36(a.WI),l.Y36(c.V6),l.Y36(o.YF),l.Y36(u.sK),l.Y36(o.xk))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-create-resource-dialog"]],decls:10,vars:12,consts:[["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","accent",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"long-input",3,"vos","voSelected"],["matInput","","required","",3,"placeholder","formControl"],["matInput","",3,"placeholder","formControl"]],template:function(t,e){1&t&&(l.TgZ(0,"div"),l.YNc(1,b,1,0,"mat-spinner",0),l.YNc(2,_,14,15,"div",1),l.TgZ(3,"div",2),l.TgZ(4,"button",3),l.NdJ("click",function(){return e.onCancel()}),l._uU(5),l.ALo(6,"translate"),l.qZA(),l.TgZ(7,"button",4),l.NdJ("click",function(){return e.onSubmit()}),l._uU(8),l.ALo(9,"translate"),l.qZA(),l.qZA(),l.qZA()),2&t&&(l.Tol(e.theme),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(3),l.Oqu(l.lcZ(6,8,"DIALOGS.CREATE_RESOURCE.CANCEL")),l.xp6(2),l.Q6J("disabled",e.nameCtrl.invalid||e.descriptionCtrl.invalid||null===e.selectedVo||e.loading),l.xp6(1),l.Oqu(l.lcZ(9,10,"DIALOGS.CREATE_RESOURCE.CREATE")))},directives:[h.O5,a.H8,d.lW,p.$g,a.xY,g.M,f.KE,m.Nt,r.Fj,r.Q7,r.JJ,r.oH,f.TO],pipes:[u.X$],styles:[".long-input[_ngcontent-%COMP%]{width:100%}"]}),t})();var A=i(60611),y=i(84140),v=i(59403),T=i(19139),C=i(88884);function E(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",7),l.NdJ("click",function(){return l.CHM(t),l.oxw().createResource()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"FACILITY_DETAIL.RESOURCES.CREATE")," "))}function S(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",8),l.NdJ("click",function(){return l.CHM(t),l.oxw().removeResource()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}if(2&t){const t=l.oxw();l.Q6J("disabled",0===t.selected.selected.length),l.xp6(1),l.hij(" ",l.lcZ(2,2,"FACILITY_DETAIL.RESOURCES.DELETE")," ")}}function k(t,e){1&t&&l._UZ(0,"mat-spinner",9)}function I(t,e){if(1&t&&l._UZ(0,"perun-web-apps-resources-list",10),2&t){const t=l.oxw();l.Q6J("tableId",t.tableId)("filterValue",t.filterValue)("resources",t.resources)("selection",t.selected)("disableRouting",!t.routeAuth)("displayedColumns",t.displayedColumns)}}let x=(()=>{class t{constructor(t,e,i,s){this.dialog=t,this.facilitiesManager=e,this.authResolver=i,this.entityStorageService=s,this.resources=[],this.selected=new n.Ov(!0,[]),this.filterValue="",this.tableId=A.CP,this.displayedColumns=["id","vo","facility","description"]}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}removeResource(){const t=(0,y.kZ)();t.width="450px",t.data={theme:"facility-theme",resources:this.selected.selected},this.dialog.open(s.f,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}refreshTable(){this.loading=!0,this.facilitiesManager.getAssignedRichResourcesForFacility(this.facility.id).subscribe(t=>{this.resources=t,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(t){this.filterValue=t}createResource(){const t=(0,y.kZ)();t.width="1350px",t.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open(w,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}}return t.id="FacilityResourcesComponent",t.\u0275fac=function(e){return new(e||t)(l.Y36(a.uw),l.Y36(o.IQ),l.Y36(c.x4),l.Y36(c.fb))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-facility-resources"]],hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("router-component",e.true)},decls:10,vars:8,consts:[[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,"tableId","filterValue","resources","selection","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,"tableId","filterValue","resources","selection","disableRouting","displayedColumns"]],template:function(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"perun-web-apps-refresh-button",1),l.NdJ("refresh",function(){return e.refreshTable()}),l.qZA(),l.YNc(5,E,3,3,"button",2),l.YNc(6,S,3,4,"button",3),l.TgZ(7,"perun-web-apps-immediate-filter",4),l.NdJ("filter",function(t){return e.applyFilter(t)}),l.qZA(),l.YNc(8,k,1,0,"mat-spinner",5),l.YNc(9,I,1,6,"perun-web-apps-resources-list",6),l.qZA()),2&t&&(l.xp6(2),l.Oqu(l.lcZ(3,6,"FACILITY_DETAIL.RESOURCES.TITLE")),l.xp6(3),l.Q6J("ngIf",e.addAuth),l.xp6(1),l.Q6J("ngIf",e.removeAuth),l.xp6(1),l.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[v.t,h.O5,T.L,d.lW,p.$g,C.C],pipes:[u.X$],styles:[""]}),t})()},73916:function(t,e,i){"use strict";i.d(e,{P:function(){return L}});var n=i(65249),s=i(84140),o=i(60611),r=i(4230),a=i(84608),c=i(68416),l=i(16073),u=i(31572),h=i(48160),d=i(57629),p=i(61511),g=i(15980),f=i(67806),m=i(66283),b=i(80340),_=i(4786),w=i(71522),A=i(39571);function y(t,e){1&t&&u._UZ(0,"mat-spinner",6)}function v(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"mat-option",15),u.NdJ("click",function(){const e=u.CHM(t).$implicit;return u.oxw(2).srcFacility=e}),u._uU(1),u.qZA()}if(2&t){const t=e.$implicit;u.Q6J("value",t),u.xp6(1),u.hij(" ",t.name," ")}}function T(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"div",7),u.TgZ(1,"mat-form-field"),u._UZ(2,"input",8),u.ALo(3,"translate"),u.TgZ(4,"mat-error"),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.TgZ(7,"mat-form-field"),u._UZ(8,"input",9),u.ALo(9,"translate"),u.qZA(),u.TgZ(10,"mat-form-field"),u.TgZ(11,"mat-select",10),u.ALo(12,"translate"),u.TgZ(13,"mat-option",11),u.NdJ("click",function(){return u.CHM(t),u.oxw().srcFacility=null}),u._uU(14),u.ALo(15,"translate"),u.qZA(),u.YNc(16,v,2,2,"mat-option",12),u.qZA(),u.qZA(),u.TgZ(17,"app-alert",13),u._UZ(18,"i",14),u.ALo(19,"translate"),u.qZA(),u.qZA()}if(2&t){const t=u.oxw();u.xp6(2),u.s9C("placeholder",u.lcZ(3,9,"DIALOGS.CREATE_FACILITY.NAME")),u.Q6J("formControl",t.nameControl),u.xp6(3),u.Oqu(u.lcZ(6,11,"DIALOGS.CREATE_FACILITY.REQUIRE_NAME")),u.xp6(3),u.s9C("placeholder",u.lcZ(9,13,"DIALOGS.CREATE_FACILITY.DESCRIPTION")),u.Q6J("formControl",t.descControl),u.xp6(3),u.s9C("placeholder",u.lcZ(12,15,"DIALOGS.CREATE_FACILITY.AS_COPY")),u.xp6(3),u.hij(" ",u.lcZ(15,17,"DIALOGS.CREATE_FACILITY.NO_COPY")," "),u.xp6(2),u.Q6J("ngForOf",t.facilities),u.xp6(2),u.Q6J("innerHTML",u.lcZ(19,19,"DIALOGS.CREATE_FACILITY.HINT"),u.oJD)}}let C=(()=>{class t{constructor(t,e,i,n,s,o,r){this.dialogRef=t,this.data=e,this.facilitiesManager=i,this.notificator=n,this.translate=s,this.router=o,this.entityStorageService=r,this.nameControl=new l.NI("",[l.kI.required]),this.descControl=new l.NI(""),this.srcFacility=null,this.configure=!1,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.facilitiesManager.getAllFacilities().subscribe(t=>{this.facilities=t,this.loading=!1},()=>this.loading=!1)}copyFacilitySettings(t){this.facilitiesManager.copyAttributes(this.srcFacility.id,t).subscribe(()=>{this.facilitiesManager.copyManagers(this.srcFacility.id,t).subscribe(()=>{this.facilitiesManager.copyOwners(this.srcFacility.id,t).subscribe(()=>{this.handleSuccess(t)},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}onCreate(t){this.loading=!0,this.configure=t,this.facilitiesManager.createFacility(this.nameControl.value,this.descControl.value).subscribe(t=>{this.entityStorageService.setEntity({id:t.id,beanName:t.beanName}),sessionStorage.setItem("newFacilityId",String(t.id)),null!==this.srcFacility?this.copyFacilitySettings(t.id):this.handleSuccess(t.id)})}handleSuccess(t){this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_FACILITY.SUCCESS")),this.configure&&this.router.navigate(["facilities",t.toString(),"configuration"]),this.dialogRef.close(!0)}onCancel(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(a.so),u.Y36(a.WI),u.Y36(n.IQ),u.Y36(c.V6),u.Y36(h.sK),u.Y36(d.F0),u.Y36(c.fb))},t.\u0275cmp=u.Xpm({type:t,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"],["mat-flat-button","","color","accent",1,"ml2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"formControl","placeholder"],["matInput","",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(t,e){1&t&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.YNc(4,y,1,0,"mat-spinner",1),u.YNc(5,T,20,21,"div",2),u.TgZ(6,"div",3),u.TgZ(7,"button",4),u.NdJ("click",function(){return e.onCancel()}),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.TgZ(10,"button",5),u.NdJ("click",function(){return e.onCreate(!1)}),u._uU(11),u.ALo(12,"translate"),u.qZA(),u.TgZ(13,"button",5),u.NdJ("click",function(){return e.onCreate(!0)}),u._uU(14),u.ALo(15,"translate"),u.qZA(),u.qZA(),u.qZA()),2&t&&(u.Tol(e.theme),u.xp6(2),u.Oqu(u.lcZ(3,11,"DIALOGS.CREATE_FACILITY.TITLE")),u.xp6(2),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading),u.xp6(3),u.Oqu(u.lcZ(9,13,"DIALOGS.CREATE_FACILITY.CANCEL")),u.xp6(2),u.Q6J("disabled",0===e.nameControl.value.trim().length||e.loading),u.xp6(1),u.Oqu(u.lcZ(12,15,"DIALOGS.CREATE_FACILITY.CREATE")),u.xp6(2),u.Q6J("disabled",0===e.nameControl.value.trim().length||!!e.srcFacility||e.loading),u.xp6(1),u.hij("",u.lcZ(15,17,"DIALOGS.CREATE_FACILITY.CREATE_AND_CONFIGURE")," "))},directives:[p.O5,a.H8,g.lW,f.$g,a.xY,m.KE,b.Nt,l.Fj,l.Q7,l.JJ,l.oH,m.TO,_.gD,w.ey,p.sg,A.w],pipes:[h.X$],styles:[""]}),t})();var E=i(30570),S=i(48958),k=i(66297),I=i(43691),x=i(59403),R=i(19139),O=i(60007);function P(t,e){1&t&&u._UZ(0,"mat-spinner",9)}function D(t,e){if(1&t&&u._UZ(0,"perun-web-apps-facilities-list",10),2&t){const t=u.oxw();u.Q6J("tableId",t.tableId)("selection",t.selection)("filterValue",t.filterValue)("facilities",t.facilities)("recentIds",t.recentIds)}}const M=function(){return{color:"black"}};let L=(()=>{class t{constructor(t,e,i){this.facilityManager=t,this.sideMenuService=e,this.dialog=i,this.facilities=[],this.recentIds=[],this.filterValue="",this.tableId=o.xt,this.selection=new r.Ov(!1,[])}ngOnInit(){this.refreshTable()}ngAfterViewChecked(){this.sideMenuService.setFacilityMenuItems([])}refreshTable(){this.loading=!0,this.facilityManager.getEnrichedFacilities().subscribe(t=>{this.selection.clear(),this.facilities=t,this.recentIds=(0,s.vL)("facilities"),this.loading=!1})}onCreate(){const t=(0,s.kZ)();t.width="800px",t.data={theme:"facility-theme"},this.dialog.open(C,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.refreshTable())})}onDelete(){const t=(0,s.kZ)();t.width="500px",t.data={theme:"facility-theme",facility:this.selection.selected[0].facility},this.dialog.open(E.Y,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}applyFilter(t){this.filterValue=t}}return t.id="FacilitySelectPageComponent",t.\u0275fac=function(e){return new(e||t)(u.Y36(n.IQ),u.Y36(S.D),u.Y36(a.uw))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-facility-select-page"]],hostVars:2,hostBindings:function(t,e){2&t&&u.ekj("router-component",e.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","","color","accent",1,"mr-2",3,"click"],["mat-flat-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(t,e){1&t&&(u.TgZ(0,"div",0),u._UZ(1,"perun-web-apps-back-button"),u.TgZ(2,"h1",1),u._UZ(3,"mat-icon",2),u._uU(4),u.ALo(5,"translate"),u.qZA(),u.TgZ(6,"perun-web-apps-refresh-button",3),u.NdJ("refresh",function(){return e.refreshTable()}),u.qZA(),u.TgZ(7,"button",4),u.NdJ("click",function(){return e.onCreate()}),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.TgZ(10,"button",5),u.NdJ("click",function(){return e.onDelete()}),u._uU(11),u.ALo(12,"translate"),u.qZA(),u.TgZ(13,"perun-web-apps-immediate-filter",6),u.NdJ("filter",function(t){return e.applyFilter(t)}),u.qZA(),u.YNc(14,P,1,0,"mat-spinner",7),u.YNc(15,D,1,5,"perun-web-apps-facilities-list",8),u.qZA()),2&t&&(u.xp6(3),u.Q6J("ngStyle",u.DdM(15,M)),u.xp6(1),u.hij(" ",u.lcZ(5,9,"FACILITY_MANAGEMENT.TITLE")," "),u.xp6(4),u.Oqu(u.lcZ(9,11,"FACILITY_MANAGEMENT.CREATE")),u.xp6(2),u.Q6J("disabled",0===e.selection.selected.length),u.xp6(1),u.Oqu(u.lcZ(12,13,"FACILITY_MANAGEMENT.DELETE")),u.xp6(2),u.Q6J("autoFocus",!0)("placeholder","FACILITY_MANAGEMENT.FILTER_PLACEHOLDER"),u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading))},directives:[k.W,I.Hw,p.PC,x.t,g.lW,R.L,p.O5,f.$g,O.X],pipes:[h.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),t})()},92438:function(t,e,i){"use strict";i.d(e,{J:function(){return A}});var n=i(84608),s=i(68416),o=i(65249),r=i(84140),a=i(16073),c=i(31572),l=i(48160),u=i(66283),h=i(80340),d=i(4786),p=i(61511),g=i(15980),f=i(71522);let m=(()=>{class t{constructor(t){this.translateService=t,this.returnData=""}transform(t){switch(t){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.HEADER").subscribe(t=>{this.returnData=t});break;case"FROM_FEDERATION_HIDDEN":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.FROM_FEDERATION_HIDDEN").subscribe(t=>{this.returnData=t});break;case"HTML_COMMENT":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.HTML_COMMENT").subscribe(t=>{this.returnData=t});break;case"TEXTFIELD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TEXTFIELD").subscribe(t=>{this.returnData=t});break;case"FROM_FEDERATION_SHOW":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.FROM_FEDERATION_SHOW").subscribe(t=>{this.returnData=t});break;case"VALIDATED_EMAIL":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.VALIDATED_EMAIL").subscribe(t=>{this.returnData=t});break;case"USERNAME":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.USERNAME").subscribe(t=>{this.returnData=t});break;case"PASSWORD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.PASSWORD").subscribe(t=>{this.returnData=t});break;case"SELECTIONBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.SELECTIONBOX").subscribe(t=>{this.returnData=t});break;case"TEXTAREA":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TEXTAREA").subscribe(t=>{this.returnData=t});break;case"COMBOBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.COMBOBOX").subscribe(t=>{this.returnData=t});break;case"CHECKBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.CHECKBOX").subscribe(t=>{this.returnData=t});break;case"SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.SUBMIT_BUTTON").subscribe(t=>{this.returnData=t});break;case"RADIO":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.RADIO").subscribe(t=>{this.returnData=t});break;case"TIMEZONE":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TIMEZONE").subscribe(t=>{this.returnData=t});break;case"AUTO_SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.AUTO_SUBMIT_BUTTON").subscribe(t=>{this.returnData=t});break;case"EMBEDDED_GROUP_APPLICATION":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.EMBEDDED_GROUP_APPLICATION").subscribe(t=>{this.returnData=t});break;default:return t}return this.returnData}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(l.sK,16))},t.\u0275pipe=c.Yjl({name:"applicationFormWidgetDescription",type:t,pure:!0}),t})();var b=i(65050);function _(t,e){if(1&t&&(c.TgZ(0,"mat-option",9),c._uU(1),c.ALo(2,"applicationFormItemType"),c.qZA()),2&t){const t=e.$implicit;c.Q6J("value",t),c.xp6(1),c.hij(" ",c.lcZ(2,2,t)," ")}}function w(t,e){if(1&t&&(c.TgZ(0,"mat-option",9),c._uU(1),c.qZA()),2&t){const t=e.$implicit;c.Q6J("value",t),c.xp6(1),c.hij(" ",t," ")}}let A=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.data=e,this.translateService=i,this.store=n,this.languages=this.store.get("supported_languages"),this.items=[],this.selectedWidget="HEADING",this.widgets=["HEADING","FROM_FEDERATION_HIDDEN","HTML_COMMENT","TEXTFIELD","FROM_FEDERATION_SHOW","VALIDATED_EMAIL","USERNAME","PASSWORD","SELECTIONBOX","TEXTAREA","COMBOBOX","CHECKBOX","SUBMIT_BUTTON","RADIO","TIMEZONE","AUTO_SUBMIT_BUTTON","EMBEDDED_GROUP_APPLICATION"]}ngOnInit(){this.translateService.get("DIALOGS.APPLICATION_FORM_ADD_ITEM.INSERT_TO_BEGINNING").subscribe(t=>{this.nameCtrl=new a.NI("",[a.kI.required,a.kI.pattern(".*[\\S]+.*"),a.kI.maxLength(129)]),this.nameCtrl.markAllAsTouched(),this.items.push(t);for(const e of this.data.applicationFormItems)this.items.push(e.shortname),e.type===o.Dy.EMBEDDEDGROUPAPPLICATION&&(this.widgets=this.widgets.filter(t=>t!==o.Dy.EMBEDDEDGROUPAPPLICATION));this.selectedItem=t})}cancel(){this.dialogRef.close(!1)}submit(){const t=this.createApplicationItem();this.dialogRef.close([this.data.applicationFormItems,t])}createApplicationItem(){const t=(0,r.dv)(this.languages);t.id=this.data.fakeId,t.shortname=this.nameCtrl.value,t.type=this.selectedWidget;for(let e=0;e{class t{constructor(t){this.guiAuthResolver=t,this.blockManualAdding=!1,this.displayedColumns=["checkbox","status","fullName","voExtSource","email","logins","alreadyMember","local"],this.pageSizeOptions=c.f7,this.addAuth=!1}set matSort(t){this.sort=t,this.setDataSource()}getDataForColumn(t,e,i){var n,s;switch(e){case"status":return t.member&&null!==(n=t.member.status)&&void 0!==n?n:"";case"fullName":{const e=t.richUser?t.richUser:t.candidate;return e.lastName?e.lastName:null!==(s=e.firstName)&&void 0!==s?s:""}case"voExtSource":return t.richUser?(0,c.OV)(t.richUser):(0,c.v$)(t.candidate);case"email":return t.richUser||t.member?(0,c.kN)(t.richUser):i.getEmail(t);case"logins":return i.getLogins(t);case"alreadyMember":return i.getAlreadyMember(t);case"local":return t.richUser?"Local":"External identity";default:return t[e]}}getExportDataForColumn(t,e,i){var n;switch(e){case"status":return t.member&&null!==(n=t.member.status)&&void 0!==n?n:"";case"fullName":return(0,c.bD)(t.richUser?t.richUser:t.candidate);case"voExtSource":return t.richUser?(0,c.OV)(t.richUser):(0,c.v$)(t.candidate);case"email":return t.richUser||t.member?(0,c.kN)(t.richUser):i.getEmail(t);case"logins":return i.getLogins(t);case"alreadyMember":return i.getAlreadyMember(t);case"local":return t.richUser?"Local":"External identity";default:return t[e]}}exportData(t){(0,c.O6)((0,c.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}setDataSource(){null!=this.child&&this.child.paginator&&this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(t,e)=>(0,c.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,c.pR)(t,e,this.getDataForColumn,this),this.dataSource.paginator=this.child.paginator)}ngAfterViewInit(){this.setDataSource()}ngOnChanges(){this.dataSource=new h.by(this.members),this.setDataSource()}isAllSelected(){return this.selection.selected.length===this.dataSource.data.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(t=>this.selection.select(t)),this.setAddAuth()}getEmail(t){let e;if(t.richUser){for(const i of t.richUser.userAttributes)if(i.namespace+":"+i.friendlyName=="urn:perun:user:attribute-def:def:preferredMail"){e=i;break}return null!=e&&null!=e.value&&"null"!==e.value.toString().toLowerCase()?e.value.toString().replace(","," "):""}return(0,c.Jc)(t.candidate)}getOrganization(t){return(0,c.v$)(t)}getLogins(t){if(t.richUser)return this.getLoginsForRichUser(t.richUser);{let e=this.getLoginsForCandidate(t.candidate);return null!=e&&""!==e||(e=t.candidate.userExtSource.login),e}}getLoginsForRichUser(t){let e="";for(const i of t.userAttributes)i.friendlyName.startsWith("login-namespace")&&null!=i.value&&(e.length>0&&(e+=", "),e+=i.friendlyName.substring(16)+": "+i.value);return e}getLoginsForCandidate(t){let e="";for(const i in t.attributes)Object.prototype.hasOwnProperty.call(t.attributes,i)&&-1!==i.indexOf("urn:perun:user:attribute-def:def:login-namespace:")&&null!=t.attributes[i]&&(e.length>0&&(e+=", "),e+=i.substring(49)+": "+t.attributes[i]);return e}getAlreadyMember(t){if("vo"===this.type){if(null!=t.member)return"Member of VO"}else{if(null!=t.member&&0!==t.member.sourceGroupId&&"DIRECT"===t.member.membershipType)return"Member of Group";if(null!=t.member&&0!==t.member.sourceGroupId&&"INDIRECT"===t.member.membershipType)return"Indirect member of Group";if(null!=t.member)return"Member of VO"}return""}isCheckboxDisabled(t){return"vo"===this.type?null!=t.member:t.member?0!==t.member.sourceGroupId&&"DIRECT"===t.member.membershipType:this.blockManualAdding}setAddAuth(){void 0!==this.group&&0!==this.selection.selected.length&&(this.addAuth=!!this.selection.selected[0].member||this.guiAuthResolver.isAuthorized("createMember_Vo_User_List_policy",[this.group])&&this.guiAuthResolver.isAuthorized("createMember_Vo_Candidate_List_policy",[this.group]))}itemSelectionToggle(t){this.selection.toggle(t),this.setAddAuth()}getTooltip(t){return t.member?"MEMBERS_CANDIDATES_LIST.ALREADY_MEMBER":"MEMBERS_CANDIDATES_LIST.ADDING_BLOCKED"}}return t.\u0275fac=function(e){return new(e||t)(d.Y36(s.x4))},t.\u0275cmp=d.Xpm({type:t,selectors:[["app-members-candidates-list"]],viewQuery:function(t,e){if(1&t&&(d.Gf(u.YE,5),d.Gf(c.l9,7)),2&t){let t;d.iGM(t=d.CRH())&&(e.matSort=t.first),d.iGM(t=d.CRH())&&(e.child=t.first)}},inputs:{members:"members",selection:"selection",type:"type",tableId:"tableId",group:"group",blockManualAdding:"blockManualAdding"},features:[d.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"],["mat-cell","",1,"static-column-size","align-checkbox"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["color","primary",3,"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(t,e){1&t&&(d.TgZ(0,"div",0),d.TgZ(1,"perun-web-apps-table-wrapper",1),d.NdJ("exportData",function(t){return e.exportData(t)}),d.TgZ(2,"table",2),d.ynx(3,3),d.YNc(4,T,1,0,"th",4),d.YNc(5,C,6,11,"td",5),d.BQk(),d.ynx(6,6),d.YNc(7,E,3,3,"th",7),d.YNc(8,k,2,1,"td",8),d.BQk(),d.ynx(9,9),d.YNc(10,I,3,3,"th",7),d.YNc(11,x,4,5,"td",8),d.BQk(),d.ynx(12,10),d.YNc(13,R,3,3,"th",7),d.YNc(14,O,3,3,"td",8),d.BQk(),d.ynx(15,11),d.YNc(16,P,3,3,"th",7),d.YNc(17,D,2,1,"td",8),d.BQk(),d.ynx(18,12),d.YNc(19,M,3,3,"th",7),d.YNc(20,L,2,1,"td",8),d.BQk(),d.ynx(21,13),d.YNc(22,N,3,3,"th",7),d.YNc(23,z,2,1,"td",8),d.BQk(),d.ynx(24,14),d.YNc(25,Z,1,0,"th",7),d.YNc(26,B,2,1,"td",8),d.BQk(),d.YNc(27,q,1,0,"tr",15),d.YNc(28,F,1,0,"tr",16),d.qZA(),d.qZA(),d.qZA(),d.YNc(29,U,3,3,"app-alert",17)),2&t&&(d.Q6J("hidden",0===e.members.length),d.xp6(1),d.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),d.xp6(1),d.Q6J("dataSource",e.dataSource),d.xp6(25),d.Q6J("matHeaderRowDef",e.displayedColumns),d.xp6(1),d.Q6J("matRowDefColumns",e.displayedColumns),d.xp6(1),d.Q6J("ngIf",0===e.members.length))},directives:[p.l,h.BZ,u.YE,h.w1,h.fO,h.Dz,h.as,h.nj,g.O5,h.ge,h.ev,f.gM,m.oG,u.nU,h.XQ,h.Gk,b.w],pipes:[_.X$,g.i8,w.u,A.f,y.d,v.Z],styles:[""]}),t})();var G=i(16073),j=i(57629),Y=i(66283),K=i(80340),V=i(15980),$=i(67806),J=i(8055);const Q=["list"];function W(t,e){1&t&&d._UZ(0,"mat-spinner",10)}function X(t,e){if(1&t&&d._UZ(0,"app-members-candidates-list",13,14),2&t){const t=d.oxw(3);d.Q6J("group",t.data.group)("tableId",t.tableId)("selection",t.selection)("members",t.members)("type",t.data.type)("blockManualAdding",t.manualAddingBlocked)}}function tt(t,e){if(1&t&&(d.TgZ(0,"div",11),d.YNc(1,X,2,6,"app-members-candidates-list",12),d.qZA()),2&t){const t=d.oxw(2);d.xp6(1),d.Q6J("ngIf",t.firstSearchDone)}}function et(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"div",4),d.TgZ(1,"mat-form-field",5),d.TgZ(2,"label"),d.TgZ(3,"input",6),d.NdJ("keyup.enter",function(){return d.CHM(t),d.oxw().onSearchByString()}),d.ALo(4,"translate"),d.qZA(),d.qZA(),d.TgZ(5,"mat-error"),d._uU(6),d.ALo(7,"translate"),d.qZA(),d.qZA(),d.TgZ(8,"button",7),d.NdJ("click",function(){return d.CHM(t),d.oxw().onSearchByString()}),d._uU(9),d.ALo(10,"translate"),d.qZA(),d.TgZ(11,"div",8),d.YNc(12,W,1,0,"mat-spinner",2),d.qZA(),d.YNc(13,tt,2,1,"div",9),d.qZA()}if(2&t){const t=d.oxw();d.xp6(3),d.s9C("placeholder",d.lcZ(4,7,"DIALOGS.ADD_MEMBERS.DESCRIPTION")),d.Q6J("formControl",t.searchCtrl),d.xp6(3),d.hij(" ",d.lcZ(7,9,"DIALOGS.ADD_MEMBERS.EMPTY_SEARCH_MESSAGE")," "),d.xp6(2),d.Q6J("disabled",t.loading),d.xp6(1),d.hij(" ",d.lcZ(10,11,"DIALOGS.ADD_MEMBERS.SEARCH")," "),d.xp6(3),d.Q6J("ngIf",t.loading),d.xp6(1),d.Q6J("ngIf",!!t.members&&!t.loading)}}function it(t,e){1&t&&d._UZ(0,"mat-spinner",10)}function nt(t,e){if(1&t&&(d.TgZ(0,"button",22),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t){d.oxw();const t=d.MAs(8),e=d.oxw();d.Q6J("disabled",0===e.selection.selected.length||e.loading)("matMenuTriggerFor",t),d.xp6(1),d.hij(" ",d.lcZ(2,3,"DIALOGS.ADD_MEMBERS.INVITE")," ")}}function st(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"button",23),d.NdJ("click",function(){const e=d.CHM(t).$implicit;return d.oxw(2).onInvite(e)}),d._uU(1),d.ALo(2,"translate"),d.ALo(3,"translate"),d.ALo(4,"uppercase"),d.ALo(5,"translate"),d.qZA()}if(2&t){const t=e.$implicit;d.xp6(1),d.lnq(" ",d.lcZ(2,3,"DIALOGS.ADD_MEMBERS.INVITE_IN_LANGUAGE")," ",d.lcZ(3,5,d.lcZ(4,7,"SHARED_LIB.LANGUAGES."+t))," ",d.lcZ(5,9,"DIALOGS.ADD_MEMBERS.LANGUAGE")," ")}}function ot(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"div",15),d.TgZ(1,"button",16),d.NdJ("click",function(){return d.CHM(t),d.oxw().onCancel()}),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"span",17),d.ALo(5,"translate"),d.YNc(6,nt,3,5,"button",18),d.TgZ(7,"mat-menu",null,19),d.YNc(9,st,6,11,"button",20),d.qZA(),d.qZA(),d.TgZ(10,"button",21),d.NdJ("click",function(){return d.CHM(t),d.oxw().onAdd()}),d._uU(11),d.ALo(12,"translate"),d.qZA(),d.qZA()}if(2&t){const t=d.oxw();d.xp6(2),d.hij(" ",d.lcZ(3,7,"DIALOGS.ADD_MEMBERS.CANCEL")," "),d.xp6(2),d.s9C("matTooltip",d.lcZ(5,9,"DIALOGS.ADD_MEMBERS.ADD_MEMBER_PERMISSION_TOOLTIP")),d.Q6J("matTooltipDisabled",0===t.selection.selected.length||"group"!==t.data.type||void 0!==t.list&&t.list.addAuth),d.xp6(2),d.Q6J("ngIf","group"!==t.data.type||"group"===t.data.type&&t.inviteAuth),d.xp6(3),d.Q6J("ngForOf",t.languages),d.xp6(1),d.Q6J("disabled",0===t.selection.selected.length||t.loading||"group"===t.data.type&&void 0!==t.list&&!t.list.addAuth),d.xp6(1),d.hij(" ",d.lcZ(12,11,"DIALOGS.ADD_MEMBERS.CREATE")," ")}}let rt=(()=>{class t{constructor(t,e,i,n,s,r,a,c,u,h,d,p){this.dialogRef=t,this.data=e,this.membersManagerService=i,this.groupService=n,this.voService=s,this.registrarManager=r,this.translate=a,this.notificator=c,this.route=u,this.router=h,this.guiAuthResolver=d,this.store=p,this.languages=["en"],this.selection=new o.Ov(!1,[]),this.members=[],this.firstSearchDone=!1,this.tableId=l.tY,this.inviteAuth=!1,this.manualAddingBlocked=!1,a.get("DIALOGS.ADD_MEMBERS.TITLE").subscribe(t=>this.title=t)}onCancel(){this.dialogRef.close(!1)}onAdd(){this.processing=!0;const t=this.selection.selected[0];"vo"===this.data.type?t.richUser?this.addUserToVo(t):this.addCandidateToVo(t):"group"===this.data.type&&(t.member?this.addMemberToGroup(t):t.richUser?this.addUserToGroup(t):t.candidate&&this.addCandidateToGroup(t))}onInvite(t){this.processing=!0,this.selection.selected[0].richUser?"vo"===this.data.type?this.registrarManager.sendInvitationToExistingUser(this.selection.selected[0].richUser.id,this.data.entityId).subscribe(()=>{this.onInviteSuccess()},()=>this.onError()):"group"===this.data.type&&this.registrarManager.sendInvitationGroupToExistingUser(this.selection.selected[0].richUser.id,this.data.voId,this.data.group.id).subscribe(()=>{this.onInviteSuccess()},()=>this.onError()):"vo"===this.data.type?this.registrarManager.sendInvitation((0,c.Jc)(this.selection.selected[0].candidate),t,this.data.voId).subscribe(()=>{this.onInviteSuccess()},()=>this.onError()):"group"===this.data.type&&this.registrarManager.sendInvitationForGroup((0,c.Jc)(this.selection.selected[0].candidate),t,this.data.voId,this.data.group.id).subscribe(()=>{this.onInviteSuccess()},()=>this.onError())}onSearchByString(){this.searchCtrl.invalid?this.searchCtrl.markAllAsTouched():(this.loading=!0,this.selection.clear(),"vo"===this.data.type?this.voService.getCompleteCandidatesForVo(this.data.entityId,[a.r.USER_DEF_ORGANIZATION,a.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe(t=>{this.members=t,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1):this.voService.getCompleteCandidatesForGroup(this.data.entityId,[a.r.USER_DEF_ORGANIZATION,a.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe(t=>{this.members=t,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1))}ngOnInit(){this.languages=this.store.get("supported_languages"),this.theme=this.data.theme,this.manualAddingBlocked=this.data.manualAddingBlocked,"group"===this.data.type&&(this.inviteAuth=this.guiAuthResolver.isAuthorized("group-sendInvitation_Vo_Group_User_policy",[this.data.group])),this.searchCtrl=new G.NI("",[G.kI.required,G.kI.pattern(".*[\\S]+.*")])}addUserToVo(t){this.membersManagerService.createMemberForUser({vo:this.data.entityId,user:t.richUser.id}).subscribe(t=>{this.onAddSuccess(),this.membersManagerService.validateMemberAsync(t.id).subscribe(()=>{this.onValidateSuccess()},()=>this.onCancel())},()=>this.onError())}addCandidateToVo(t){this.membersManagerService.createMemberForCandidate({vo:this.data.entityId,candidate:this.createCandidate(t.candidate)}).subscribe(t=>{this.onAddSuccess(),this.membersManagerService.validateMemberAsync(t.id).subscribe(()=>{this.onValidateSuccess()},()=>this.onCancel())},()=>this.onError())}addUserToGroup(t){this.membersManagerService.createMemberForUser({vo:this.data.voId,user:t.richUser.id,groups:[{id:this.data.group.id,beanName:this.data.group.beanName,name:this.data.group.name,voId:this.data.group.voId}]}).subscribe(t=>{this.onAddSuccess(),this.membersManagerService.validateMemberAsync(t.id).subscribe(()=>{this.onValidateSuccess()},()=>this.onCancel())},()=>this.onError())}addMemberToGroup(t){this.groupService.addMembers(this.data.entityId,[t.member.id]).subscribe(()=>{this.onAddSuccess()},()=>this.onError())}addCandidateToGroup(t){const e={id:this.data.group.id,beanName:this.data.group.beanName,name:this.data.group.name,voId:this.data.group.voId};this.membersManagerService.createMemberForCandidate({vo:this.data.voId,candidate:this.createCandidate(t.candidate),groups:[e]}).subscribe(t=>{this.onAddSuccess(),this.membersManagerService.validateMemberAsync(t.id).subscribe(()=>{this.onValidateSuccess()},()=>this.onCancel())},()=>this.onError())}onAddSuccess(){this.translate.get("DIALOGS.ADD_MEMBERS.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})}onError(){this.selection.clear(),this.processing=!1}onInviteSuccess(){this.translate.get("DIALOGS.ADD_MEMBERS.SUCCESS_INVITE").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})}onValidateSuccess(){this.dialogRef.close(!0)}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}}}return t.\u0275fac=function(e){return new(e||t)(d.Y36(n.so),d.Y36(n.WI),d.Y36(r.uq),d.Y36(r.ff),d.Y36(r.YF),d.Y36(r.tk),d.Y36(_.sK),d.Y36(s.V6),d.Y36(j.gz),d.Y36(j.F0),d.Y36(s.x4),d.Y36(s.d6))},t.\u0275cmp=d.Xpm({type:t,selectors:[["app-add-member-dialog"]],viewQuery:function(t,e){if(1&t&&d.Gf(Q,5),2&t){let t;d.iGM(t=d.CRH())&&(e.list=t.first)}},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,"mr-2","search-field","adjust-width"],["matInput","","autocomplete","false","data-cy","search-members",3,"placeholder","formControl","keyup.enter"],["mat-flat-button","","color","accent","data-cy","search-button",1,"ml-auto",3,"disabled","click"],[1,"no-bounce-scrollbar"],["class","mt-3",4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"mt-3"],[3,"group","tableId","selection","members","type","blockManualAdding",4,"ngIf"],[3,"group","tableId","selection","members","type","blockManualAdding"],["list",""],["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"],["color","accent","mat-flat-button","",1,"ml-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",3,"click"]],template:function(t,e){1&t&&(d.TgZ(0,"div"),d.TgZ(1,"h1",0),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.YNc(4,et,14,13,"div",1),d.YNc(5,it,1,0,"mat-spinner",2),d.YNc(6,ot,13,13,"div",3),d.qZA()),2&t&&(d.Tol(e.theme),d.xp6(2),d.Oqu(d.lcZ(3,7,"DIALOGS.ADD_MEMBERS.TITLE")),d.xp6(2),d.Q6J("ngIf",!e.processing),d.xp6(1),d.Q6J("ngIf",e.processing),d.xp6(1),d.Q6J("ngIf",!e.processing))},directives:[n.uh,g.O5,n.xY,Y.KE,K.Nt,G.Fj,G.JJ,G.oH,Y.TO,V.lW,$.$g,H,n.H8,f.gM,J.VK,g.sg,J.p6,J.OP],pipes:[_.X$,g.gd],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}.no-bounce-scrollbar[_ngcontent-%COMP%]{overflow:hidden}"]}),t})()},68570:function(t,e,i){"use strict";i.d(e,{W:function(){return g}});var n=i(84608),s=i(65249),o=i(68416),r=i(31572),a=i(48160),c=i(61511),l=i(19386),u=i(37665),h=i(15980),d=i(67806);function p(t,e){1&t&&r._UZ(0,"mat-spinner",9)}let g=(()=>{class t{constructor(t,e,i,n,s,o,r,a){this.dialogRef=t,this.voService=e,this.groupService=i,this.translateService=n,this.registrarManager=s,this.notificatorService=o,this.apiRequest=r,this.data=a,this.vos=[],this.groups=[],this.selectedGroup=null,this.loading=!1,this.nameFunction=t=>t.name,n.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUCCESS").subscribe(t=>this.successMessage=t),n.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.PRIVILEGE").subscribe(t=>this.privilegeMessage=t),n.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_FORM").subscribe(t=>this.noFormMessage=t)}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(t=>{this.vos=t.sort((t,e)=>t.name>e.name?1:t.namethis.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)},t=>{"FormNotExistsException"===t.error.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===t.error.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)},t=>{"FormNotExistsException"===t.error.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===t.error.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)},t=>{"FormNotExistsException"===t.error.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===t.error.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)},t=>{"FormNotExistsException"===t.error.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===t.error.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1})}voSelected(t){this.selectedVo=t,this.getGroups()}getGroups(){void 0!==this.selectedVo?this.groupService.getAllGroups(this.selectedVo.id).subscribe(t=>{this.groups=t}):this.groups=[],this.selectedGroup=null}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(s.YF),r.Y36(s.ff),r.Y36(a.sK),r.Y36(s.tk),r.Y36(o.V6),r.Y36(o.F5),r.Y36(n.WI))},t.\u0275cmp=r.Xpm({type:t,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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(r.TgZ(0,"div"),r.TgZ(1,"h1",0),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.YNc(4,p,1,0,"mat-spinner",1),r.TgZ(5,"div",2),r.TgZ(6,"div",3),r._uU(7),r.ALo(8,"translate"),r.qZA(),r._uU(9),r.ALo(10,"translate"),r.TgZ(11,"perun-web-apps-vo-search-select",4),r.NdJ("voSelected",function(t){return e.voSelected(t)}),r.qZA(),r._uU(12),r.ALo(13,"translate"),r.TgZ(14,"perun-web-apps-group-search-select",5),r.NdJ("groupSelected",function(t){return e.selectedGroup=t}),r.qZA(),r.qZA(),r.TgZ(15,"div",6),r.TgZ(16,"button",7),r.NdJ("click",function(){return e.cancel()}),r._uU(17),r.ALo(18,"translate"),r.qZA(),r.TgZ(19,"button",8),r.NdJ("click",function(){return e.submit()}),r._uU(20),r.ALo(21,"translate"),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.Tol(e.theme),r.xp6(2),r.Oqu(r.lcZ(3,15,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.TITLE")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("hidden",e.loading),r.xp6(2),r.Oqu(r.lcZ(8,17,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.DESCRIPTION")),r.xp6(2),r.hij(" ",r.lcZ(10,19,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_VO"),": "),r.xp6(2),r.Q6J("vos",e.vos),r.xp6(1),r.hij(" ",r.lcZ(13,21,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_GROUP"),": "),r.xp6(2),r.Q6J("groups",e.groups)("disableAutoSelect",!0),r.xp6(3),r.hij(" ",r.lcZ(18,23,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.CANCEL_BUTTON")," "),r.xp6(2),r.Q6J("disabled",!e.selectedVo&&!e.selectedGroup||e.loading),r.xp6(1),r.hij(" ",r.lcZ(21,25,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUBMIT_BUTTON")," "))},directives:[n.uh,c.O5,n.xY,l.M,u.h,n.H8,h.lW,d.$g],pipes:[a.X$],styles:[""]}),t})()},88419:function(t,e,i){"use strict";i.d(e,{y:function(){return A}});var n=i(84608),s=i(68416),o=i(65249),r=i(16073),a=i(31572),c=i(48160),l=i(61511),u=i(67806),h=i(66283),d=i(80340),p=i(15980),g=i(29236),f=i(37665);function m(t,e){1&t&&a._UZ(0,"mat-spinner",3)}function b(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-checkbox",14),a.NdJ("click",function(){return a.CHM(t),a.oxw(2).loadVoGroups()})("ngModelChange",function(e){return a.CHM(t),a.oxw(2).asSubgroup=e}),a._uU(1),a.ALo(2,"translate"),a.qZA()}if(2&t){const t=a.oxw(2);a.Q6J("labelPosition","before")("ngModel",t.asSubgroup),a.xp6(1),a.hij(" ",a.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function _(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"perun-web-apps-group-search-select",15),a.NdJ("groupSelected",function(e){return a.CHM(t),a.oxw(2).selectedParent=e}),a.qZA()}if(2&t){const t=a.oxw(2);a.Q6J("disableAutoSelect",!0)("groups",t.voGroups)}}function w(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div"),a.TgZ(1,"div",4),a.TgZ(2,"mat-form-field"),a.TgZ(3,"label",5),a._UZ(4,"input",6),a.ALo(5,"translate"),a.qZA(),a.TgZ(6,"mat-error"),a._uU(7),a.ALo(8,"translate"),a.qZA(),a.qZA(),a.TgZ(9,"mat-form-field",7),a.TgZ(10,"label",5),a.TgZ(11,"textarea",8),a.ALo(12,"translate"),a._uU(13," "),a.qZA(),a.qZA(),a.qZA(),a.YNc(14,b,3,5,"mat-checkbox",9),a.YNc(15,_,1,2,"perun-web-apps-group-search-select",10),a.qZA(),a.TgZ(16,"div",11),a.TgZ(17,"button",12),a.NdJ("click",function(){return a.CHM(t),a.oxw().onCancel()}),a._uU(18),a.ALo(19,"translate"),a.qZA(),a.TgZ(20,"button",13),a.NdJ("click",function(){return a.CHM(t),a.oxw().onSubmit()}),a._uU(21),a.ALo(22,"translate"),a.qZA(),a.qZA(),a.qZA()}if(2&t){const t=a.oxw();a.xp6(4),a.s9C("placeholder",a.lcZ(5,10,"DIALOGS.CREATE_GROUP.NAME")),a.Q6J("formControl",t.nameControl),a.xp6(3),a.hij(" ",t.invalidNameMessage.length?t.invalidNameMessage:a.lcZ(8,12,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),a.xp6(4),a.s9C("placeholder",a.lcZ(12,14,"DIALOGS.CREATE_GROUP.DESCRIPTION")),a.Q6J("formControl",t.descriptionControl),a.xp6(3),a.Q6J("ngIf",t.isNotSubGroup),a.xp6(1),a.Q6J("ngIf",t.asSubgroup),a.xp6(3),a.hij(" ",a.lcZ(19,16,"DIALOGS.CREATE_GROUP.CANCEL")," "),a.xp6(2),a.Q6J("disabled",t.nameControl.invalid||t.descriptionControl.invalid||t.asSubgroup&&null===t.selectedParent||t.loading),a.xp6(1),a.hij(" ",a.lcZ(22,18,"DIALOGS.CREATE_GROUP.CREATE")," ")}}let A=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.groupService=i,this.translate=n,this.notificator=s,this.store=o,this.asSubgroup=!1,this.invalidNameMessage=this.store.get("group_name_error_message"),this.secondaryRegex=this.store.get("group_name_secondary_regex"),this.voGroups=[],this.nameFunction=t=>t.name,this.isNotSubGroup=null===this.data.parentGroup,this.isNotSubGroup?n.get("DIALOGS.CREATE_GROUP.TITLE").subscribe(t=>this.title=t):n.get("DIALOGS.CREATE_GROUP.TITLE_SUB_GROUP").subscribe(t=>{this.title=t+this.data.parentGroup.name}),n.get("DIALOGS.CREATE_GROUP.SUCCESS").subscribe(t=>this.successMessage=t),n.get("DIALOGS.CREATE_GROUP.SUCCESS_SUBGROUP").subscribe(t=>this.successSubGroupMessage=t)}ngOnInit(){this.theme=this.data.theme,this.invalidNameMessage=this.invalidNameMessage&&this.secondaryRegex?this.invalidNameMessage:"",this.nameControl=new r.NI("",[r.kI.required,r.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),r.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new r.NI(""),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(t=>{this.voGroups=t.filter(t=>"members"!==t.name)})}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(o.ff),a.Y36(c.sK),a.Y36(s.V6),a.Y36(s.d6))},t.\u0275cmp=a.Xpm({type:t,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,"labelPosition","ngModel","click","ngModelChange",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,"labelPosition","ngModel","click","ngModelChange"],[1,"long-input",3,"disableAutoSelect","groups","groupSelected"]],template:function(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.qZA(),a.TgZ(2,"div"),a.YNc(3,m,1,0,"mat-spinner",1),a.YNc(4,w,23,20,"div",2),a.qZA()),2&t&&(a.xp6(1),a.Oqu(e.title),a.xp6(1),a.Tol(e.theme),a.xp6(1),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading))},directives:[n.uh,l.O5,u.$g,n.xY,h.KE,d.Nt,r.Fj,r.Q7,r.JJ,r.oH,h.TO,d.D7,n.H8,p.lW,g.oG,r.On,f.h],pipes:[c.X$],styles:[""]}),t})()},20247:function(t,e,i){"use strict";i.d(e,{e:function(){return D}});var n=i(31572),s=i(16073),o=i(67033),r=i(61511),a=i(67806),c=i(84608),l=i(15980),u=i(43691),h=i(85250),d=i(39571),p=i(66283),g=i(80340),f=i(48160);function m(t,e){1&t&&n._UZ(0,"mat-spinner",2)}function b(t,e){if(1&t&&(n.TgZ(0,"div",16),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"translate"),n.TgZ(4,"span",17),n._uU(5),n.ALo(6,"translate"),n.qZA(),n._uU(7),n.ALo(8,"translate"),n.qZA()),2&t){const t=n.oxw(2);n.xp6(1),n.lnq(" ",n.lcZ(2,6,"DIALOGS.DELETE_ENTITY.BASIC")," ",n.lcZ(3,8,"DIALOGS.DELETE_ENTITY.ONLY")," ",t.entityType," "),n.xp6(4),n.Oqu(n.lcZ(6,10,"DIALOGS.DELETE_ENTITY.OR")),n.xp6(2),n.AsE(" ",t.entityType," ",n.lcZ(8,12,"DIALOGS.DELETE_ENTITY.RELATIONS"),"? ")}}function _(t,e){if(1&t&&(n.TgZ(0,"div",16),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t){const t=n.oxw(2);n.xp6(1),n.AsE(" ",n.lcZ(2,2,"DIALOGS.DELETE_ENTITY.BASIC")," ",t.entityType," ? ")}}function w(t,e){1&t&&n._UZ(0,"th",18)}function A(t,e){if(1&t&&(n.TgZ(0,"td",19),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.hij(" ",t.name," ")}}function y(t,e){1&t&&n._UZ(0,"tr",20)}function v(t,e){1&t&&n._UZ(0,"tr",21)}function T(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",22),n.NdJ("click",function(){return n.CHM(t),n.oxw(2).force=!0}),n.TgZ(1,"mat-icon"),n._uU(2,"warning"),n.qZA(),n._uU(3),n.ALo(4,"translate"),n.ALo(5,"translate"),n.qZA()}2&t&&(n.xp6(3),n.AsE(" ",n.lcZ(4,2,"DIALOGS.DELETE_ENTITY.DELETE")," ",n.lcZ(5,4,"DIALOGS.DELETE_ENTITY.RELATIONS")," "))}const C=function(){return["name"]};function E(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"div"),n.TgZ(1,"h1",3),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"div",4),n.YNc(5,b,9,14,"div",5),n.YNc(6,_,3,4,"div",5),n.TgZ(7,"table",6),n.ynx(8,7),n.YNc(9,w,1,0,"th",8),n.YNc(10,A,2,1,"td",9),n.BQk(),n.YNc(11,y,1,0,"tr",10),n.YNc(12,v,1,0,"tr",11),n.qZA(),n.qZA(),n.TgZ(13,"div",12),n.TgZ(14,"button",13),n.NdJ("click",function(){return n.CHM(t),n.oxw().onCancel()}),n._uU(15),n.ALo(16,"translate"),n.qZA(),n.TgZ(17,"button",14),n.NdJ("click",function(){return n.CHM(t),n.oxw().onDelete()}),n._uU(18),n.ALo(19,"translate"),n.qZA(),n.YNc(20,T,6,6,"button",15),n.qZA(),n.qZA()}if(2&t){const t=n.oxw();n.xp6(2),n.AsE("",n.lcZ(3,10,"DIALOGS.DELETE_ENTITY.DELETE")," ",t.entityType,""),n.xp6(3),n.Q6J("ngIf",!t.disableForce),n.xp6(1),n.Q6J("ngIf",t.disableForce),n.xp6(1),n.Q6J("dataSource",t.entityNames),n.xp6(4),n.Q6J("matHeaderRowDef",n.DdM(16,C)),n.xp6(1),n.Q6J("matRowDefColumns",n.DdM(17,C)),n.xp6(3),n.hij(" ",n.lcZ(16,12,"DIALOGS.DELETE_ENTITY.CANCEL")," "),n.xp6(3),n.hij(" ",n.lcZ(19,14,"DIALOGS.DELETE_ENTITY.DELETE")," "),n.xp6(2),n.Q6J("ngIf",!t.disableForce)}}function S(t,e){if(1&t&&(n.TgZ(0,"mat-list-item"),n.TgZ(1,"span"),n.TgZ(2,"mat-icon",27),n._uU(3,"fiber_manual_record"),n.qZA(),n._uU(4),n.qZA(),n.qZA()),2&t){const t=e.$implicit;n.xp6(4),n.hij(" ",t," ")}}function k(t,e){if(1&t&&(n.TgZ(0,"div"),n._uU(1),n.qZA()),2&t){const t=n.oxw(2);n.xp6(1),n.hij(" ",t.anotherMessage," ")}}function I(t,e){1&t&&n._UZ(0,"th",18)}function x(t,e){if(1&t&&(n.TgZ(0,"td",19),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.hij(" ",t.name," ")}}function R(t,e){1&t&&n._UZ(0,"tr",20)}function O(t,e){1&t&&n._UZ(0,"tr",21)}function P(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"div"),n.TgZ(1,"h1",3),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"div",4),n.TgZ(6,"div",16),n._uU(7),n.ALo(8,"translate"),n.TgZ(9,"mat-list"),n.YNc(10,S,5,1,"mat-list-item",23),n.qZA(),n.YNc(11,k,2,1,"div",1),n.TgZ(12,"app-alert",24),n._uU(13),n.ALo(14,"translate"),n.qZA(),n.TgZ(15,"table",6),n.ynx(16,7),n.YNc(17,I,1,0,"th",8),n.YNc(18,x,2,1,"td",9),n.BQk(),n.YNc(19,R,1,0,"tr",10),n.YNc(20,O,1,0,"tr",11),n.qZA(),n.qZA(),n.TgZ(21,"mat-form-field"),n._UZ(22,"input",25),n.ALo(23,"translate"),n.qZA(),n.qZA(),n.TgZ(24,"div",12),n.TgZ(25,"button",13),n.NdJ("click",function(){return n.CHM(t),n.oxw().onCancel()}),n._uU(26),n.ALo(27,"translate"),n.qZA(),n.TgZ(28,"button",26),n.NdJ("click",function(){return n.CHM(t),n.oxw().onDelete()}),n.TgZ(29,"mat-icon"),n._uU(30,"warning"),n.qZA(),n._uU(31),n.ALo(32,"translate"),n.ALo(33,"translate"),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=n.oxw();n.xp6(2),n.lnq("",n.lcZ(3,17,"DIALOGS.DELETE_ENTITY.DELETE")," ",t.entityType," ",n.lcZ(4,19,"DIALOGS.DELETE_ENTITY.RELATIONS"),""),n.xp6(5),n.hij(" ",n.lcZ(8,21,"DIALOGS.DELETE_ENTITY.WARN"),": "),n.xp6(3),n.Q6J("ngForOf",t.relations),n.xp6(1),n.Q6J("ngIf",t.anotherMessage),n.xp6(2),n.AsE(" ",n.lcZ(14,23,"DIALOGS.DELETE_ENTITY.ASK")," ",t.entityType," ? "),n.xp6(2),n.Q6J("dataSource",t.entityNames),n.xp6(4),n.Q6J("matHeaderRowDef",n.DdM(33,C)),n.xp6(1),n.Q6J("matRowDefColumns",n.DdM(34,C)),n.xp6(2),n.s9C("placeholder",n.lcZ(23,25,"DIALOGS.DELETE_ENTITY.CONTROL")),n.Q6J("formControl",t.deleteControl),n.xp6(4),n.hij(" ",n.lcZ(27,27,"DIALOGS.DELETE_ENTITY.CANCEL")," "),n.xp6(2),n.Q6J("disabled",t.deleteControl.invalid),n.xp6(3),n.AsE(" ",n.lcZ(32,29,"DIALOGS.DELETE_ENTITY.DELETE")," ",n.lcZ(33,31,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}let D=(()=>{class t{constructor(){this.entityNames=new o.by,this.relations=[],this.disableForce=!1,this.loading=!1,this.deleted=new n.vpe,this.force=!1,this.deleteReg=/^DELETE$/,this.deleteControl=new s.NI("",[s.kI.required,s.kI.pattern(this.deleteReg)])}onCancel(){this.deleted.emit({deleted:!1,force:!1})}onDelete(){this.deleted.emit({deleted:!0,force:this.force})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-delete-entity-dialog"]],inputs:{title:"title",entityNames:"entityNames",entityType:"entityType",relations:"relations",anotherMessage:"anotherMessage",disableForce:"disableForce",loading:"loading"},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"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn","data-cy","delete-button-dialog",1,"ml-2",3,"click"],["class","ml-2","mat-flat-button","","color","warn","data-cy","force-delete",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",""],["mat-flat-button","","color","warn","data-cy","force-delete",1,"ml-2",3,"click"],[4,"ngFor","ngForOf"],["alert_type","warn"],["data-cy","force-delete-control","matInput","",3,"formControl","placeholder"],["mat-flat-button","","color","warn","data-cy","force-delete-button",1,"ml-2",3,"disabled","click"],[1,"dot-icon"]],template:function(t,e){1&t&&(n.YNc(0,m,1,0,"mat-spinner",0),n.YNc(1,E,21,18,"div",1),n.YNc(2,P,34,35,"div",1)),2&t&&(n.Q6J("ngIf",e.loading),n.xp6(1),n.Q6J("ngIf",!e.force&&!e.loading),n.xp6(1),n.Q6J("ngIf",e.force&&!e.loading))},directives:[r.O5,a.$g,c.uh,c.xY,o.BZ,o.w1,o.fO,o.Dz,o.as,o.nj,c.H8,l.lW,o.ge,o.ev,o.XQ,o.Gk,u.Hw,h.i$,r.sg,d.w,p.KE,g.Nt,s.Fj,s.JJ,s.oH,h.Tg],pipes:[f.X$],styles:[".dot-icon[_ngcontent-%COMP%]{font-size:small;vertical-align:-1px}.table-margin[_ngcontent-%COMP%]{margin-top:-50px;margin-bottom:20px}"]}),t})()},30570:function(t,e,i){"use strict";i.d(e,{Y:function(){return u}});var n=i(65249),s=i(84608),o=i(68416),r=i(67033),a=i(31572),c=i(48160),l=i(20247);let u=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.facilitiesManager=i,this.notificator=n,this.translate=s,this.displayedColumns=["name"],this.loading=!1,this.force=!1,this.relations=[]}ngOnInit(){this.theme=this.data.theme,this.facility=this.data.facility,this.dataSource=new r.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(t){this.force=t.force,t.deleted?this.onConfirm():this.onCancel()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI),a.Y36(n.IQ),a.Y36(o.V6),a.Y36(c.sK))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-delete-facility-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","relations","loading","deleted"]],template:function(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"app-delete-entity-dialog",0),a.NdJ("deleted",function(t){return e.onSubmit(t)}),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(1),a.Q6J("entityNames",e.dataSource)("entityType","facilities")("relations",e.relations)("loading",e.loading))},directives:[l.e],styles:[""]}),t})()},43491:function(t,e,i){"use strict";i.d(e,{P:function(){return u}});var n=i(84608),s=i(67033),o=i(68416),r=i(65249),a=i(31572),c=i(48160),l=i(20247);let u=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.groupService=s,this.displayedColumns=["name"],this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new s.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 t=this.data.groups.map(t=>t.id);this.groupService.deleteGroups({groups:t,forceDelete:this.force}).subscribe(()=>{this.translate.get("DIALOGS.DELETE_GROUP.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}onSubmit(t){this.force=t.force,t.deleted?this.onDelete():this.onCancel()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(o.V6),a.Y36(c.sK),a.Y36(r.ff))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-delete-group-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","relations","loading","deleted"]],template:function(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"app-delete-entity-dialog",0),a.NdJ("deleted",function(t){return e.onSubmit(t)}),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(1),a.Q6J("entityNames",e.dataSource)("entityType","groups")("relations",e.relations)("loading",e.loading))},directives:[l.e],styles:[""]}),t})()},75954:function(t,e,i){"use strict";i.d(e,{_:function(){return X}});var n=i(84608),s=i(65249),o=i(84140),r=i(41939),a=i(68416),c=i(31572),l=i(48160),u=i(61511),h=i(15980),d=i(67806),p=i(55109);const g=["*"];let f=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-edit-application-form-item-line"]],inputs:{label:"label",description:"description"},ngContentSelectors:g,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(t,e){1&t&&(c.F$t(),c.TgZ(0,"div",0),c.TgZ(1,"span",1),c._uU(2),c.qZA(),c.TgZ(3,"div",2),c.Hsn(4),c.qZA(),c.qZA(),c.TgZ(5,"div",3),c._UZ(6,"span",4),c.TgZ(7,"div",5),c._uU(8),c.qZA(),c.qZA()),2&t&&(c.xp6(2),c.hij("",e.label,":"),c.xp6(6),c.hij(" ",e.description," "))},styles:[""]}),t})();var m=i(66283),b=i(80340),_=i(16073),w=i(29236),A=i(4786),y=i(94327),v=i(71522),T=i(30725),C=i(10901),E=i(36922),S=i(43691),k=i(65050);let I=(()=>{class t{constructor(t){this.translateService=t}transform(t){switch(t){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED."+t);default:return t}}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(l.sK,16))},t.\u0275pipe=c.Yjl({name:"applicationFormItemDisabled",type:t,pure:!0}),t})(),x=(()=>{class t{constructor(t){this.translateService=t}transform(t){switch(t){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN."+t);default:return t}}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(l.sK,16))},t.\u0275pipe=c.Yjl({name:"applicationFormItemHidden",type:t,pure:!0}),t})();function R(t,e){1&t&&c._UZ(0,"mat-spinner",7)}function O(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"section"),c.TgZ(5,"mat-checkbox",21),c.NdJ("ngModelChange",function(e){return c.CHM(t),c.oxw(3).applicationFormItem.updatable=e}),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=c.oxw(3);c.xp6(1),c.Q6J("label",c.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE"))("description",c.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",t.applicationFormItem.updatable)}}function P(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div",12),c.TgZ(1,"mat-form-field",12),c.TgZ(2,"input",13),c.NdJ("ngModelChange",function(e){return c.CHM(t),c.oxw(3).applicationFormItem.federationAttribute=e}),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=c.oxw(3);c.xp6(2),c.Q6J("ngModel",t.applicationFormItem.federationAttribute)}}function D(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"section"),c.TgZ(5,"mat-checkbox",21),c.NdJ("ngModelChange",function(e){return c.CHM(t),c.oxw(2).applicationFormItem.required=e}),c.qZA(),c.qZA(),c.qZA(),c.YNc(6,O,6,7,"div",16),c.TgZ(7,"app-edit-application-form-item-line",11),c.ALo(8,"translate"),c.ALo(9,"translate"),c.TgZ(10,"div",12),c.TgZ(11,"perun-web-apps-selection-item-search-select",22),c.NdJ("itemSelected",function(e){return c.CHM(t),c.oxw(2).applicationFormItem.perunSourceAttribute=e.value}),c.qZA(),c.qZA(),c.qZA(),c.TgZ(12,"app-edit-application-form-item-line",11),c.ALo(13,"translate"),c.ALo(14,"translate"),c.TgZ(15,"div",12),c.TgZ(16,"perun-web-apps-selection-item-search-select",22),c.NdJ("itemSelected",function(e){return c.CHM(t),c.oxw(2).applicationFormItem.perunDestinationAttribute=e.value}),c.qZA(),c.qZA(),c.qZA(),c.TgZ(17,"app-edit-application-form-item-line",11),c.ALo(18,"translate"),c.ALo(19,"translate"),c.TgZ(20,"div",12),c.TgZ(21,"perun-web-apps-selection-item-search-select",23),c.NdJ("itemSelected",function(e){return c.CHM(t),c.oxw(2).federationAttribute=e.value}),c.qZA(),c.qZA(),c.YNc(22,P,3,1,"div",24),c.qZA(),c.qZA()}if(2&t){const t=c.oxw(2);c.xp6(1),c.Q6J("label",c.lcZ(2,22,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED"))("description",c.lcZ(3,24,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",t.applicationFormItem.required),c.xp6(1),c.Q6J("ngIf",t.typesWithUpdatable.indexOf(t.applicationFormItem.type)>-1),c.xp6(1),c.Q6J("label",c.lcZ(8,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE"))("description",c.lcZ(9,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE_DESCRIPTION")),c.xp6(4),c.Q6J("attributes",t.attributeDefinitions)("selectedAttribute",t.applicationFormItem.perunSourceAttribute)("asGroup",!!t.data.group)("type",t.itemType.SOURCE),c.xp6(1),c.Q6J("label",c.lcZ(13,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE"))("description",c.lcZ(14,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE_DESCRIPTION")),c.xp6(4),c.Q6J("attributes",t.attributeDefinitions)("selectedAttribute",t.applicationFormItem.perunDestinationAttribute)("asGroup",!!t.data.group)("type",t.itemType.DESTINATION),c.xp6(1),c.Q6J("label",c.lcZ(18,34,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE"))("description",c.lcZ(19,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE_DESCRIPTION")),c.xp6(4),c.Q6J("selectedAttribute",t.applicationFormItem.federationAttribute)("asGroup",!!t.data.group)("type",t.itemType.FEDERATION),c.xp6(1),c.Q6J("ngIf","custom"===t.federationAttribute)}}function M(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"mat-form-field",12),c.TgZ(5,"input",13),c.NdJ("ngModelChange",function(e){return c.CHM(t),c.oxw(2).applicationFormItem.regex=e}),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=c.oxw(2);c.xp6(1),c.Q6J("label",c.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX"))("description",c.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",t.applicationFormItem.regex)}}function L(t,e){if(1&t&&(c.TgZ(0,"mat-option",25),c._uU(1),c.ALo(2,"applicationFormItemDisabled"),c.qZA()),2&t){const t=e.$implicit;c.Q6J("value",t),c.xp6(1),c.hij(" ",c.lcZ(2,2,t)," ")}}function N(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"perun-web-apps-app-form-item-search-select",26),c.NdJ("itemSelected",function(e){return c.CHM(t),c.oxw(3).disabledDependencyItem=e}),c.qZA()}if(2&t){const t=c.oxw(3);c.Q6J("item",t.disabledDependencyItem)("items",t.possibleDependencyItems)}}function z(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"mat-form-field",12),c.TgZ(5,"mat-select",17),c.NdJ("valueChange",function(e){return c.CHM(t),c.oxw(2).applicationFormItem.disabled=e}),c.YNc(6,L,3,4,"mat-option",18),c.qZA(),c.qZA(),c.qZA(),c.TgZ(7,"app-edit-application-form-item-line",11),c.ALo(8,"translate"),c.ALo(9,"translate"),c.TgZ(10,"div",12),c.YNc(11,N,1,2,"perun-web-apps-app-form-item-search-select",19),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=c.oxw(2);c.xp6(1),c.Q6J("label",c.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED"))("description",c.lcZ(3,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DESCRIPTION")),c.xp6(4),c.Q6J("value",t.applicationFormItem.disabled),c.xp6(1),c.Q6J("ngForOf",t.disabledValues),c.xp6(1),c.Q6J("label",c.lcZ(8,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY"))("description",c.lcZ(9,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY_DESCRIPTION")),c.xp6(4),c.Q6J("ngIf",null!==t.disabledDependencyItem)}}function Z(t,e){if(1&t&&(c.TgZ(0,"mat-option",25),c._uU(1),c.ALo(2,"applicationFormItemHidden"),c.qZA()),2&t){const t=e.$implicit;c.Q6J("value",t),c.xp6(1),c.hij(" ",c.lcZ(2,2,t)," ")}}function B(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"perun-web-apps-app-form-item-search-select",26),c.NdJ("itemSelected",function(e){return c.CHM(t),c.oxw(2).hiddenDependencyItem=e}),c.qZA()}if(2&t){const t=c.oxw(2);c.Q6J("item",t.hiddenDependencyItem)("items",t.possibleDependencyItems)}}function q(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"mat-form-field",12),c.TgZ(5,"textarea",27),c.NdJ("ngModelChange",function(e){c.CHM(t);const i=c.oxw().$implicit;return c.oxw(2).applicationFormItem.i18n[i].label=e}),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=c.oxw().$implicit,e=c.oxw(2);c.xp6(1),c.Q6J("label",c.lcZ(2,4,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT"))("description",c.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT_DESCRIPTION")),c.xp6(4),c.Q6J("cdkTextareaAutosize",!0)("ngModel",e.applicationFormItem.i18n[t].label)}}function F(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"mat-form-field",12),c.TgZ(5,"textarea",13),c.NdJ("ngModelChange",function(e){c.CHM(t);const i=c.oxw().$implicit;return c.oxw(2).applicationFormItem.i18n[i].label=e}),c.qZA(),c.qZA(),c.qZA(),c.TgZ(6,"app-edit-application-form-item-line",11),c.ALo(7,"translate"),c.ALo(8,"translate"),c.TgZ(9,"mat-form-field",12),c.TgZ(10,"textarea",13),c.NdJ("ngModelChange",function(e){c.CHM(t);const i=c.oxw().$implicit;return c.oxw(2).applicationFormItem.i18n[i].help=e}),c.qZA(),c.qZA(),c.qZA(),c.TgZ(11,"app-edit-application-form-item-line",11),c.ALo(12,"translate"),c.ALo(13,"translate"),c.TgZ(14,"mat-form-field",12),c.TgZ(15,"textarea",13),c.NdJ("ngModelChange",function(e){c.CHM(t);const i=c.oxw().$implicit;return c.oxw(2).applicationFormItem.i18n[i].errorMessage=e}),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=c.oxw().$implicit,e=c.oxw(2);c.xp6(1),c.Q6J("label",c.lcZ(2,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"))("description",c.lcZ(3,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",e.applicationFormItem.i18n[t].label),c.xp6(1),c.Q6J("label",c.lcZ(7,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP"))("description",c.lcZ(8,15,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",e.applicationFormItem.i18n[t].help),c.xp6(1),c.Q6J("label",c.lcZ(12,17,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR"))("description",c.lcZ(13,19,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",e.applicationFormItem.i18n[t].errorMessage)}}function U(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"mat-form-field",12),c.TgZ(5,"textarea",13),c.NdJ("ngModelChange",function(e){c.CHM(t);const i=c.oxw().$implicit;return c.oxw(2).applicationFormItem.i18n[i].label=e}),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=c.oxw().$implicit,e=c.oxw(2);c.xp6(1),c.Q6J("label",c.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"))("description",c.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_BUTTON_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",e.applicationFormItem.i18n[t].label)}}function H(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.TgZ(3,"mat-form-field"),c.TgZ(4,"input",13),c.NdJ("ngModelChange",function(t){return e.$implicit[0]=t}),c.qZA(),c.qZA(),c._uU(5),c.ALo(6,"translate"),c.TgZ(7,"mat-form-field"),c.TgZ(8,"input",13),c.NdJ("ngModelChange",function(t){return e.$implicit[1]=t}),c.qZA(),c.qZA(),c.TgZ(9,"button",36),c.NdJ("click",function(){const e=c.CHM(t).$implicit,i=c.oxw(2).$implicit;return c.oxw(2).removeOption(e,i)}),c.ALo(10,"translate"),c.TgZ(11,"mat-icon"),c._uU(12,"clear"),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=e.$implicit;c.xp6(1),c.hij(" ",c.lcZ(2,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.VALUE"),": "),c.xp6(3),c.Q6J("ngModel",t[0]),c.xp6(1),c.hij(" ",c.lcZ(6,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"),": "),c.xp6(3),c.Q6J("ngModel",t[1]),c.xp6(1),c.s9C("matTooltip",c.lcZ(10,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REMOVE_OPTION"))}}function G(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"div",28),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"div",29),c._uU(5),c.ALo(6,"translate"),c.qZA(),c.TgZ(7,"div",30),c.TgZ(8,"button",31),c.NdJ("click",function(){c.CHM(t);const e=c.oxw().$implicit;return c.oxw(2).sortOptionsAZ(e)}),c.TgZ(9,"i",32),c._uU(10,"arrow_downward"),c.qZA(),c._uU(11),c.ALo(12,"translate"),c.qZA(),c.TgZ(13,"button",33),c.NdJ("click",function(){c.CHM(t);const e=c.oxw().$implicit;return c.oxw(2).sortOptionsZA(e)}),c.TgZ(14,"i",32),c._uU(15,"arrow_upward"),c.qZA(),c._uU(16),c.ALo(17,"translate"),c.qZA(),c.qZA(),c.YNc(18,H,13,11,"div",34),c.TgZ(19,"button",35),c.NdJ("click",function(){c.CHM(t);const e=c.oxw().$implicit;return c.oxw(2).addOption(e)}),c._uU(20),c.ALo(21,"translate"),c.qZA(),c.qZA()}if(2&t){const t=c.oxw().$implicit,e=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",e.options[t]),c.xp6(2),c.hij(" ",c.lcZ(21,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ADD_OPTION")," ")}}const j=function(){return["HEADING","HTML_COMMENT"]},Y=function(){return["TEXTFIELD","FROM_FEDERATION_HIDDEN","FROM_FEDERATION_SHOW","VALIDATED_EMAIL","USERNAME","PASSWORD","RADIO","TEXTAREA","COMBOBOX","CHECKBOX","TIMEZONE","SELECTIONBOX","EMBEDDED_GROUP_APPLICATION"]},K=function(){return["SUBMIT_BUTTON","AUTO_SUBMIT_BUTTON"]},V=function(){return["RADIO","COMBOBOX","CHECKBOX","SELECTIONBOX"]};function $(t,e){if(1&t&&(c.TgZ(0,"mat-tab",10),c.ALo(1,"translate"),c.ALo(2,"uppercase"),c.YNc(3,q,6,8,"div",16),c.YNc(4,F,16,21,"div",16),c.YNc(5,U,6,7,"div",16),c.YNc(6,G,22,16,"div",16),c.qZA()),2&t){const t=e.$implicit,i=c.oxw(2);c.s9C("label",c.lcZ(1,5,c.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LANGUAGE_"+t))),c.xp6(3),c.Q6J("ngIf",i.isApplicationFormItemOfType(c.DdM(9,j))),c.xp6(1),c.Q6J("ngIf",i.isApplicationFormItemOfType(c.DdM(10,Y))),c.xp6(1),c.Q6J("ngIf",i.isApplicationFormItemOfType(c.DdM(11,K))),c.xp6(1),c.Q6J("ngIf",i.isApplicationFormItemOfType(c.DdM(12,V)))}}const J=function(){return["TEXTFIELD","FROM_FEDERATION_HIDDEN","FROM_FEDERATION_SHOW","USERNAME","VALIDATED_EMAIL","PASSWORD","TEXTAREA","TIMEZONE","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX"]},Q=function(){return["TEXTFIELD","FROM_FEDERATION_HIDDEN","FROM_FEDERATION_SHOW","USERNAME","PASSWORD","TEXTAREA","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX"]};function W(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div",8),c.TgZ(1,"mat-tab-group",9),c.TgZ(2,"mat-tab",10),c.ALo(3,"translate"),c.TgZ(4,"app-edit-application-form-item-line",11),c.ALo(5,"translate"),c.ALo(6,"translate"),c.TgZ(7,"mat-form-field",12),c.TgZ(8,"input",13),c.NdJ("ngModelChange",function(e){return c.CHM(t),c.oxw().applicationFormItem.shortname=e}),c.qZA(),c.qZA(),c.qZA(),c.TgZ(9,"app-edit-application-form-item-line",11),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",11),c.ALo(15,"translate"),c.ALo(16,"translate"),c.TgZ(17,"section"),c.TgZ(18,"mat-checkbox",14),c.NdJ("change",function(){return c.CHM(t),c.oxw().onChangingType("INITIAL")}),c._uU(19),c.ALo(20,"translate"),c.qZA(),c.TgZ(21,"mat-checkbox",15),c.NdJ("change",function(){return c.CHM(t),c.oxw().onChangingType("EXTENSION")}),c._uU(22),c.ALo(23,"translate"),c.qZA(),c.qZA(),c.qZA(),c.YNc(24,D,23,38,"div",16),c.YNc(25,M,6,7,"div",16),c.YNc(26,z,12,15,"div",16),c.TgZ(27,"app-edit-application-form-item-line",11),c.ALo(28,"translate"),c.ALo(29,"translate"),c.TgZ(30,"mat-form-field",12),c.TgZ(31,"mat-select",17),c.NdJ("valueChange",function(e){return c.CHM(t),c.oxw().applicationFormItem.hidden=e}),c.YNc(32,Z,3,4,"mat-option",18),c.qZA(),c.qZA(),c.qZA(),c.TgZ(33,"app-edit-application-form-item-line",11),c.ALo(34,"translate"),c.ALo(35,"translate"),c.TgZ(36,"div",12),c.YNc(37,B,1,2,"perun-web-apps-app-form-item-search-select",19),c.qZA(),c.qZA(),c.qZA(),c.YNc(38,$,7,13,"mat-tab",20),c.qZA(),c.qZA()}if(2&t){const t=c.oxw();c.xp6(2),c.s9C("label",c.lcZ(3,24,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.BASIC_SETTINGS")),c.xp6(2),c.Q6J("label",c.lcZ(5,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME"))("description",c.lcZ(6,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",t.applicationFormItem.shortname),c.xp6(1),c.Q6J("label",c.lcZ(10,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET"))("description",c.lcZ(11,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET_DESCRIPTION")),c.xp6(3),c.hij(" ",c.lcZ(13,34,t.applicationFormItem.type)," "),c.xp6(2),c.Q6J("label",c.lcZ(15,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION"))("description",c.lcZ(16,38,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",t.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",t.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",t.isApplicationFormItemOfType(c.DdM(52,J))),c.xp6(1),c.Q6J("ngIf",t.isApplicationFormItemOfType(c.DdM(53,Q))),c.xp6(1),c.Q6J("ngIf",t.typesWithDisabled.indexOf(t.applicationFormItem.type)>-1),c.xp6(1),c.Q6J("label",c.lcZ(28,44,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN"))("description",c.lcZ(29,46,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DESCRIPTION")),c.xp6(4),c.Q6J("value",t.applicationFormItem.hidden),c.xp6(1),c.Q6J("ngForOf",t.hiddenValues),c.xp6(1),c.Q6J("label",c.lcZ(34,48,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY"))("description",c.lcZ(35,50,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY_DESCRIPTION")),c.xp6(4),c.Q6J("ngIf",null!==t.hiddenDependencyItem),c.xp6(1),c.Q6J("ngForOf",t.languages)}}let X=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.attributesManager=i,this.translateService=n,this.store=s,this.federationAttribute="",this.itemType=r.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"],this.hiddenDependencyItem=null,this.disabledDependencyItem=null,this.dependencyTypes=["PASSWORD","VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","USERNAME"],this.languages=["en"]}ngOnInit(){this.languages=this.store.get("supported_languages"),this.hiddenDependencyItem=this.data.allItems.find(t=>t.id===this.data.applicationFormItem.hiddenDependencyItemId),this.hiddenDependencyItem||(this.hiddenDependencyItem=r.Sx),this.disabledDependencyItem=this.data.allItems.find(t=>t.id===this.data.applicationFormItem.disabledDependencyItemId),this.disabledDependencyItem||(this.disabledDependencyItem=r.Sx),this.theme=this.data.theme,this.possibleDependencyItems=this.getPossibleDepItems(),this.applicationFormItem=(0,o.dv)(this.languages),this.copy(this.data.applicationFormItem,this.applicationFormItem),this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(t=>{this.attributeDefinitions=t,this.loading=!1},()=>this.loading=!1),null===this.applicationFormItem.perunDestinationAttribute&&(this.applicationFormItem.perunDestinationAttribute=""),null===this.applicationFormItem.perunSourceAttribute&&(this.applicationFormItem.perunSourceAttribute=""),this.getOptions()}getPossibleDepItems(){return[r.Sx].concat(this.data.allItems.filter(t=>this.dependencyTypes.indexOf(t.type)>-1).filter(t=>t.id!==this.data.applicationFormItem.id))}cancel(){this.dialogRef.close()}submit(){this.applicationFormItem.hiddenDependencyItemId=this.hiddenDependencyItem===r.Sx?null:this.hiddenDependencyItem.id,this.applicationFormItem.disabledDependencyItemId=this.disabledDependencyItem===r.Sx?null:this.disabledDependencyItem.id,this.updateOptions(),this.copy(this.applicationFormItem,this.data.applicationFormItem),this.dialogRef.close(!0)}onChangingType(t){if(this.applicationFormItem.applicationTypes.includes(t)){const e=this.applicationFormItem.applicationTypes.indexOf(t);this.applicationFormItem.applicationTypes.splice(e,1)}else this.applicationFormItem.applicationTypes.push(t)}addOption(t){this.options[t].push(["",""])}removeOption(t,e){this.options[e]=this.options[e].filter(e=>!(e[0]===t[0]&&e[1]===t[1]))}updateOption(t){let e="";if(this.options&&this.options[t])for(const i of this.options[t])""!==i[0]&&""!==i[1]&&(e=""===e?i[0]+"#"+i[1]:e+"|"+i[0]+"#"+i[1]);this.applicationFormItem.i18n[t].options=e}updateOptions(){for(const t of this.languages)this.updateOption(t)}copy(t,e){e.applicationTypes=t.applicationTypes,e.federationAttribute=t.federationAttribute,e.forDelete=t.forDelete;for(const i of this.languages)e.i18n[i].errorMessage=t.i18n[i].errorMessage,e.i18n[i].help=t.i18n[i].help,e.i18n[i].label=t.i18n[i].label,e.i18n[i].options=t.i18n[i].options;e.id=t.id,e.ordnum=t.ordnum,e.perunDestinationAttribute=t.perunDestinationAttribute,e.perunSourceAttribute=t.perunSourceAttribute,e.regex=t.regex,e.required=t.required,e.shortname=t.shortname,e.type=t.type,e.updatable=t.updatable,e.disabled=t.disabled,e.hidden=t.hidden,e.disabledDependencyItemId=t.disabledDependencyItemId,e.hiddenDependencyItemId=t.hiddenDependencyItemId}sortOptionsAZ(t){this.options[t]=this.options[t].sort((t,e)=>t[1]>e[1]?1:t[1]t[1]>e[1]?-1:t[1]-1}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(n.so),c.Y36(n.WI),c.Y36(s.H8),c.Y36(l.sK),c.Y36(a.d6))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-edit-application-form-item-dialog"]],decls:14,vars:16,consts:[[1,"h-100","d-flex","flex-column"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto","mt-auto",3,"click"],["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,"label","description"],[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"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-icon-button","","color","warn",3,"matTooltip","click"]],template:function(t,e){1&t&&(c.TgZ(0,"div"),c.TgZ(1,"div",0),c.TgZ(2,"h1",1),c._uU(3),c.ALo(4,"translate"),c.qZA(),c.YNc(5,R,1,0,"mat-spinner",2),c.YNc(6,W,39,54,"div",3),c.TgZ(7,"div",4),c.TgZ(8,"button",5),c.NdJ("click",function(){return e.cancel()}),c._uU(9),c.ALo(10,"translate"),c.qZA(),c.TgZ(11,"button",6),c.NdJ("click",function(){return e.submit()}),c._uU(12),c.ALo(13,"translate"),c.qZA(),c.qZA(),c.qZA(),c.qZA()),2&t&&(c.Gre("",e.theme," h-100"),c.xp6(3),c.AsE("",c.lcZ(4,10,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.TITLE")," : ",e.applicationFormItem.shortname,""),c.xp6(2),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading),c.xp6(3),c.hij(" ",c.lcZ(10,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CANCEL_BUTTON")," "),c.xp6(2),c.Q6J("disabled",e.loading),c.xp6(1),c.hij(" ",c.lcZ(13,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON")," "))},directives:[n.uh,u.O5,n.H8,h.lW,d.$g,n.xY,p.SP,p.uX,f,m.KE,b.Nt,_.Fj,_.JJ,_.On,w.oG,A.gD,u.sg,y.$x,v.ey,T.Y,C.IC,E.gM,S.Hw],pipes:[l.X$,k.c,I,x,u.gd],styles:[""]}),t})()},79592:function(t,e,i){"use strict";i.d(e,{H:function(){return P}});var n=i(65249),s=i(84608),o=i(68416),r=i(67033),a=i(84140),c=i(6527),l=i(61511),u=i(31572),h=i(48160),d=i(15980),p=i(67806),g=i(43691),f=i(36922),m=i(22196);function b(t,e){1&t&&u._UZ(0,"mat-spinner",6)}function _(t,e){1&t&&(u.TgZ(0,"th",17),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_ID")))}function w(t,e){if(1&t&&(u.TgZ(0,"td",18),u._uU(1),u.qZA()),2&t){const t=e.$implicit;u.xp6(1),u.hij(" ",t.user.id," ")}}function A(t,e){1&t&&(u.TgZ(0,"th",17),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_NAME")))}function y(t,e){if(1&t&&(u.TgZ(0,"td",18),u._uU(1),u.ALo(2,"userFullName"),u.qZA()),2&t){const t=e.$implicit;u.xp6(1),u.hij(" ",u.lcZ(2,1,t.user)," ")}}function v(t,e){1&t&&(u.TgZ(0,"th",17),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_EXPIRATION")))}function T(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"button",20),u.NdJ("click",function(){u.CHM(t);const e=u.oxw().$implicit;return u.oxw(2).changeExpiration(e)}),u.TgZ(1,"mat-icon"),u._uU(2," today "),u.qZA(),u.qZA()}}function C(t,e){if(1&t&&(u.TgZ(0,"td",18),u.TgZ(1,"span"),u._uU(2),u.qZA(),u.YNc(3,T,3,0,"button",19),u.qZA()),2&t){const t=e.$implicit,i=u.oxw(2);u.xp6(2),u.Oqu(i.parseDate(t.validityTo)),u.xp6(1),u.Q6J("ngIf",i.isExpirationAuthorized(t))}}function E(t,e){1&t&&u._UZ(0,"th",17)}function S(t,e){1&t&&(u.TgZ(0,"mat-icon",25),u._uU(1,"clear"),u.qZA())}function k(t,e){1&t&&(u.TgZ(0,"mat-icon"),u._uU(1,"settings_backup_restore"),u.qZA())}function I(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"td",18),u.TgZ(1,"div",21),u.ALo(2,"translate"),u.TgZ(3,"button",22),u.NdJ("click",function(){const e=u.CHM(t).$implicit;return u.oxw(2).markSponsor(e)}),u.YNc(4,S,2,0,"mat-icon",23),u.YNc(5,k,2,0,"mat-icon",24),u.qZA(),u.qZA(),u.qZA()}if(2&t){const t=e.$implicit,i=u.oxw(2);u.xp6(1),u.s9C("matTooltip",u.lcZ(2,6,"DIALOGS.EDIT_MEMBER_SPONSORS.REMOVE_SPONSOR_DISABLED")),u.Q6J("matTooltipPosition","above")("matTooltipDisabled",i.isRemoveAuthorized(t)),u.xp6(2),u.Q6J("disabled",!i.isRemoveAuthorized(t)),u.xp6(1),u.Q6J("ngIf",!i.sponsorsToRemove.has(t.user.id)),u.xp6(1),u.Q6J("ngIf",i.sponsorsToRemove.has(t.user.id))}}function x(t,e){1&t&&u._UZ(0,"tr",26)}function R(t,e){if(1&t&&u._UZ(0,"tr",27),2&t){const t=e.$implicit,i=u.oxw(2);u.ekj("make-red",i.sponsorsToRemove.has(t.user.id))}}function O(t,e){if(1&t&&(u.TgZ(0,"div",7),u.TgZ(1,"table",8),u.ynx(2,9),u.YNc(3,_,3,3,"th",10),u.YNc(4,w,2,1,"td",11),u.BQk(),u.ynx(5,12),u.YNc(6,A,3,3,"th",10),u.YNc(7,y,3,3,"td",11),u.BQk(),u.ynx(8,13),u.YNc(9,v,3,3,"th",10),u.YNc(10,C,4,2,"td",11),u.BQk(),u.ynx(11,14),u.YNc(12,E,1,0,"th",10),u.YNc(13,I,6,8,"td",11),u.BQk(),u.YNc(14,x,1,0,"tr",15),u.YNc(15,R,1,2,"tr",16),u.qZA(),u.qZA()),2&t){const t=u.oxw();u.xp6(1),u.Q6J("dataSource",t.dataSource),u.xp6(13),u.Q6J("matHeaderRowDef",t.displayedColumns),u.xp6(1),u.Q6J("matRowDefColumns",t.displayedColumns)}}let P=(()=>{class t{constructor(t,e,i,n,s,o,r,a){this.dialogRef=t,this.data=e,this.memberService=i,this.userService=n,this.notificator=s,this.authResolver=o,this.translate=r,this.dialog=a,this.displayedColumns=["id","name","expiration","remove"],this.loading=!1,this.expirationChanged=!1,this.sponsorsToRemove=new Set}ngOnInit(){this.theme=this.data.theme,this.sponsors=this.data.sponsors,this.dataSource=new r.by(this.data.sponsors),this.vo={beanName:"Vo",id:this.data.member.voId}}markSponsor(t){this.sponsorsToRemove.has(t.user.id)?this.sponsorsToRemove.delete(t.user.id):this.sponsorsToRemove.add(t.user.id)}removeSponsors(t){if(0===t.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_MEMBER_SPONSORS.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);const e=t.pop();this.memberService.removeSponsor(this.data.member.id,e).subscribe(()=>{this.removeSponsors(t)},()=>this.loading=!1)}onSubmit(){this.loading=!0;const t=Array.from(this.sponsorsToRemove);this.removeSponsors(t)}onCancel(){this.dialogRef.close(this.expirationChanged)}isRemoveAuthorized(t){return this.authResolver.isAuthorized("sponsored-removeSponsor_Member_User_policy",[this.data.member])&&this.authResolver.isAuthorized("sponsor-removeSponsor_Member_User_policy",[t.user])}isExpirationAuthorized(t){return this.authResolver.isAuthorized("updateSponsorshipValidity_Member_User_LocalDate",[t.user,this.vo])}parseDate(t){return null===t?"Never expire":(0,l.p6)(t,"d.M.y","en")}changeExpiration(t){const e=(0,a.kZ)();e.width="400px",e.data={memberId:this.data.member.id,sponsor:t},this.dialog.open(c.hd,e).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.expirationChanged=!0,this.userService.getSponsorsForMember(this.data.member.id,[]).subscribe(t=>{this.sponsors=t,this.dataSource=new r.by(this.sponsors),this.loading=!1}))})}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(s.so),u.Y36(s.WI),u.Y36(n.uq),u.Y36(n.Fv),u.Y36(o.V6),u.Y36(o.x4),u.Y36(h.sK),u.Y36(s.uw))},t.\u0275cmp=u.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["mat-header-row","","class","font-weight-bolder",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,"matTooltip","matTooltipPosition","matTooltipDisabled"],["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(t,e){1&t&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.TgZ(3,"div"),u.YNc(4,b,1,0,"mat-spinner",1),u.YNc(5,O,16,3,"div",2),u.TgZ(6,"div",3),u.TgZ(7,"button",4),u.NdJ("click",function(){return e.onCancel()}),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.TgZ(10,"button",5),u.NdJ("click",function(){return e.onSubmit()}),u._uU(11),u.ALo(12,"translate"),u.qZA(),u.qZA(),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,9,"DIALOGS.EDIT_MEMBER_SPONSORS.TITLE")),u.xp6(2),u.Tol(e.theme),u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading),u.xp6(3),u.hij(" ",u.lcZ(9,11,"DIALOGS.EDIT_MEMBER_SPONSORS.CANCEL"),""),u.xp6(2),u.Q6J("disabled",e.loading||0===e.sponsorsToRemove.size),u.xp6(1),u.hij(" ",u.lcZ(12,13,"DIALOGS.EDIT_MEMBER_SPONSORS.SUBMIT"),""))},directives:[s.uh,l.O5,s.H8,d.lW,p.$g,s.xY,r.BZ,r.w1,r.fO,r.Dz,r.as,r.nj,r.ge,r.ev,g.Hw,f.gM,r.XQ,r.Gk],pipes:[h.X$,m.d],styles:[".make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.btn-delete[_ngcontent-%COMP%]:disabled .icn-delete[_ngcontent-%COMP%]{color:grey}"]}),t})()},88690:function(t,e,i){"use strict";i.d(e,{R:function(){return T}});var n=i(84608),s=i(16073),o=i(65249),r=i(68416),a=i(31572),c=i(48160),l=i(61511),u=i(15980),h=i(67806),d=i(66283),p=i(80340),g=i(4786),f=i(71522);function m(t,e){1&t&&a._UZ(0,"mat-spinner",6)}function b(t,e){1&t&&(a.TgZ(0,"div",14),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_VO")," "))}function _(t,e){1&t&&(a.TgZ(0,"div",14),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_GROUP")," "))}function w(t,e){1&t&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"DIALOGS.INVITE_MEMBER.NAME_ERROR")))}function A(t,e){1&t&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"DIALOGS.INVITE_MEMBER.EMAIL_ERROR")))}function y(t,e){if(1&t&&(a.TgZ(0,"mat-option",15),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"uppercase"),a.qZA()),2&t){const t=e.$implicit;a.s9C("value",t),a.xp6(1),a.Oqu(a.lcZ(2,2,a.lcZ(3,4,"SHARED_LIB.LANGUAGES."+t)))}}function v(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div",7),a.YNc(1,b,3,3,"div",8),a.YNc(2,_,3,3,"div",8),a.TgZ(3,"mat-form-field",9),a._UZ(4,"input",10),a.ALo(5,"translate"),a.YNc(6,w,3,3,"mat-error",11),a.qZA(),a.TgZ(7,"mat-form-field",9),a._UZ(8,"textarea",10),a.ALo(9,"translate"),a.YNc(10,A,3,3,"mat-error",11),a.qZA(),a.TgZ(11,"mat-form-field",9),a.TgZ(12,"mat-label"),a._uU(13),a.ALo(14,"translate"),a.qZA(),a.TgZ(15,"mat-select",12),a.NdJ("valueChange",function(e){return a.CHM(t),a.oxw().currentLanguage=e}),a.YNc(16,y,4,6,"mat-option",13),a.qZA(),a.qZA(),a.qZA()}if(2&t){const t=a.oxw();a.xp6(1),a.Q6J("ngIf",!t.data.groupId),a.xp6(1),a.Q6J("ngIf",t.data.groupId),a.xp6(2),a.s9C("placeholder",a.lcZ(5,11,"DIALOGS.INVITE_MEMBER.NAME")),a.Q6J("formControl",t.name),a.xp6(2),a.Q6J("ngIf",t.name.invalid),a.xp6(2),a.s9C("placeholder",a.lcZ(9,13,"DIALOGS.INVITE_MEMBER.EMAIL")),a.Q6J("formControl",t.emailForm),a.xp6(2),a.Q6J("ngIf",t.emailForm.invalid),a.xp6(3),a.Oqu(a.lcZ(14,15,"DIALOGS.INVITE_MEMBER.LANGUAGE")),a.xp6(2),a.Q6J("value",t.currentLanguage),a.xp6(1),a.Q6J("ngForOf",t.languages)}}let T=(()=>{class t{constructor(t,e,i,n,o,r){this.dialogRef=t,this.data=e,this.registrarManager=i,this.notificator=n,this.translate=o,this.store=r,this.emailForm=new s.NI("",[s.kI.required,s.kI.email]),this.languages=["en"],this.currentLanguage="en",this.name=new s.NI("",s.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(t=>{this.notificator.showSuccess(t),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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)))}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(o.tk),a.Y36(r.V6),a.Y36(c.sK),a.Y36(r.d6))},t.\u0275cmp=a.Xpm({type:t,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"],["mat-flat-button","","color","accent",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(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"h1",0),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,m,1,0,"mat-spinner",1),a.YNc(5,v,17,17,"div",2),a.TgZ(6,"div",3),a.TgZ(7,"button",4),a.NdJ("click",function(){return e.onCancel()}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"button",5),a.NdJ("click",function(){return e.onSubmit()}),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(2),a.Oqu(a.lcZ(3,9,"DIALOGS.INVITE_MEMBER.TITLE")),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading),a.xp6(3),a.hij(" ",a.lcZ(9,11,"DIALOGS.INVITE_MEMBER.CANCEL")," "),a.xp6(2),a.Q6J("disabled",e.emailForm.invalid||e.name.invalid||e.loading),a.xp6(1),a.hij(" ",a.lcZ(12,13,"DIALOGS.INVITE_MEMBER.INVITE")," "))},directives:[n.uh,l.O5,n.H8,u.lW,h.$g,n.xY,d.KE,p.Nt,s.Fj,s.Q7,s.JJ,s.oH,d.hX,g.gD,l.sg,d.TO,f.ey],pipes:[c.X$,l.gd],styles:[""]}),t})()},57820:function(t,e,i){"use strict";i.d(e,{c:function(){return I}});var n=i(84608),s=i(16073),o=i(56238),r=i(79996),a=i(17),c=i(68416),l=i(65249),u=i(31572),h=i(48160),d=i(54810),p=i(61511),g=i(15980),f=i(36922),m=i(39571),b=i(66283),_=i(80340),w=i(40084),A=i(71522),y=i(67806);function v(t,e){1&t&&(u.TgZ(0,"mat-radio-button",12),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"DIALOGS.MOVE_GROUP.NO_GROUP")," "))}function T(t,e){1&t&&(u.TgZ(0,"mat-radio-button",13),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"DIALOGS.MOVE_GROUP.TO_GROUP")," "))}function C(t,e){1&t&&(u.TgZ(0,"app-alert",14),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"DIALOGS.MOVE_GROUP.CANNOT_MOVE")," "))}function E(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"mat-option",20),u.NdJ("click",function(){const e=u.CHM(t).$implicit;return u.oxw(2).selectedGroup=e}),u.TgZ(1,"span"),u._uU(2),u.qZA(),u.qZA()}if(2&t){const t=e.$implicit;u.Q6J("value",t),u.xp6(2),u.Oqu(t.name)}}function S(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"mat-form-field",15),u.TgZ(1,"input",16),u.NdJ("change",function(){return u.CHM(t),u.oxw().selectedGroup=null}),u.ALo(2,"translate"),u.qZA(),u.TgZ(3,"mat-autocomplete",17,18),u.YNc(5,E,3,2,"mat-option",19),u.ALo(6,"async"),u.qZA(),u.qZA()}if(2&t){const t=u.MAs(4),e=u.oxw();u.Q6J("@openClose","toGroup"===e.moveOption?"open":"closed"),u.xp6(1),u.s9C("placeholder",u.lcZ(2,6,"DIALOGS.MOVE_GROUP.GROUP_SELECT")),u.Q6J("matAutocomplete",t)("formControl",e.otherGroupsCtrl),u.xp6(2),u.Q6J("displayWith",e.displayFn),u.xp6(2),u.Q6J("ngForOf",u.lcZ(6,8,e.filteredGroups))}}function k(t,e){1&t&&u._UZ(0,"mat-spinner",21)}let I=(()=>{class t{constructor(t,e,i,n,o,r,a){this.dialogRef=t,this.data=e,this.groupService=i,this.notificator=n,this.translate=o,this.apiRequest=r,this.authResolver=a,this.toRootOptionDisabled=!1,this.toGroupOptionDisabled=!1,this.otherGroups=[],this.otherGroupsCtrl=new s.NI(null,[s.kI.required]),this.loading=!1,this.selectedGroup=null,this.translate.get("DIALOGS.MOVE_GROUP.SUCCESS").subscribe(t=>this.successMessage=t),this.translate.get("DIALOGS.MOVE_GROUP.ERROR").subscribe(t=>this.errorMessage=t)}ngOnInit(){this.loading=!0,this.groupService.getAllGroups(this.data.group.voId).subscribe(t=>{this.otherGroups=t.filter(t=>t.id!==this.data.group.id&&"members"!==t.name&&this.canMove(t)),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,o.O)(""),(0,r.U)(t=>t?this._filterGroups(t):this.otherGroups.slice())),this.loading=!1},()=>this.loading=!1)}displayFn(t){return t?t.name:t}_filterGroups(t){if("object"==typeof t)return[];const e=t.toLowerCase();return t?this.otherGroups.filter(t=>t.name.toLowerCase().indexOf(e)>-1):this.otherGroups}canMove(t){return this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[t,this.data.group])&&this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[this.data.group,t])}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)},t=>{this.notificator.showRPCError(t,this.errorMessage),this.dialogRef.close(!1)})}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(n.so),u.Y36(n.WI),u.Y36(l.ff),u.Y36(c.V6),u.Y36(h.sK),u.Y36(c.F5),u.Y36(c.x4))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-move-group-dialog"]],decls:23,vars:28,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"ngModel","ngModelChange"],["color","primary","value","toRoot","class","move-options",4,"ngIf"],["value","toGroup","color","primary",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,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["color","primary","value","toRoot",1,"move-options"],["value","toGroup","color","primary"],["alert_type","warn"],[1,"w-100","mt-2"],["matInput","","required","",3,"placeholder","matAutocomplete","formControl","change"],[3,"displayWith"],["groupSelectAutocomplete","matAutocomplete"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"div",1),u.TgZ(5,"p"),u._uU(6),u.ALo(7,"translate"),u.qZA(),u.TgZ(8,"mat-radio-group",2),u.NdJ("ngModelChange",function(t){return e.moveOption=t}),u.YNc(9,v,3,3,"mat-radio-button",3),u.YNc(10,T,3,3,"mat-radio-button",4),u.qZA(),u.YNc(11,C,3,3,"app-alert",5),u.YNc(12,S,7,10,"mat-form-field",6),u.qZA(),u.YNc(13,k,1,0,"mat-spinner",7),u.TgZ(14,"div",8),u.TgZ(15,"button",9),u.NdJ("click",function(){return e.close()}),u._uU(16),u.ALo(17,"translate"),u.qZA(),u.TgZ(18,"span",10),u.ALo(19,"translate"),u.TgZ(20,"button",11),u.NdJ("click",function(){return e.confirm()}),u._uU(21),u.ALo(22,"translate"),u.qZA(),u.qZA(),u.qZA(),u.qZA()),2&t&&(u.Tol(e.data.theme),u.xp6(2),u.AsE("",u.lcZ(3,18,"DIALOGS.MOVE_GROUP.TITLE"),"",e.data.group.name,""),u.xp6(4),u.hij(" ",u.lcZ(7,20,"DIALOGS.MOVE_GROUP.INFO")," "),u.xp6(2),u.Q6J("ngModel",e.moveOption),u.xp6(1),u.Q6J("ngIf",!e.toRootOptionDisabled),u.xp6(1),u.Q6J("ngIf",!e.toGroupOptionDisabled),u.xp6(1),u.Q6J("ngIf",e.toRootOptionDisabled&&e.toGroupOptionDisabled),u.xp6(1),u.Q6J("ngIf",!e.toGroupOptionDisabled),u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(3),u.hij(" ",u.lcZ(17,22,"DIALOGS.MOVE_GROUP.CANCEL")," "),u.xp6(2),u.s9C("matTooltip",u.lcZ(19,24,"DIALOGS.MOVE_GROUP.DISABLED_HINT")),u.Q6J("matTooltipPosition","above")("matTooltipDisabled",null!==e.selectedGroup||"toRoot"===e.moveOption),u.xp6(2),u.Q6J("disabled",(e.otherGroupsCtrl.invalid||null===e.selectedGroup)&&"toRoot"!==e.moveOption||e.loading),u.xp6(1),u.hij(" ",u.lcZ(22,26,"DIALOGS.MOVE_GROUP.CONFIRM")," "))},directives:[n.uh,n.xY,d.VQ,s.JJ,s.On,p.O5,n.H8,g.lW,f.gM,d.U0,m.w,b.KE,_.Nt,w.ZL,s.Fj,s.Q7,s.oH,w.XC,p.sg,A.ey,y.$g],pipes:[h.X$,p.Ov],styles:[".move-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"],data:{animation:[a.BQ]}}),t})()},95121:function(t,e,i){"use strict";i.d(e,{m:function(){return w}});var n=i(84608),s=i(65249),o=i(68416),r=i(31572),a=i(48160),c=i(61511),l=i(15980),u=i(67806),h=i(66283),d=i(4786),p=i(71522);function g(t,e){1&t&&r._UZ(0,"mat-spinner",7)}function f(t,e){if(1&t&&(r.TgZ(0,"mat-option",13),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.Q6J("value",t),r.xp6(1),r.hij(" ",t.friendlyNameParameter," ")}}function m(t,e){if(1&t&&(r.TgZ(0,"mat-option",13),r._uU(1),r.ALo(2,"translate"),r.ALo(3,"uppercase"),r.qZA()),2&t){const t=e.$implicit;r.Q6J("value",t),r.xp6(1),r.hij(" ",r.lcZ(2,2,r.lcZ(3,4,"SHARED_LIB.LANGUAGES."+t))," ")}}function b(t,e){if(1&t&&(r.TgZ(0,"mat-option",13),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.Q6J("value",t),r.xp6(1),r.hij(" ",t," ")}}function _(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",8),r.TgZ(1,"mat-form-field"),r.TgZ(2,"mat-label"),r._uU(3),r.ALo(4,"translate"),r.qZA(),r.TgZ(5,"mat-select",9),r.NdJ("valueChange",function(e){return r.CHM(t),r.oxw().selectedLogin=e}),r.YNc(6,f,2,2,"mat-option",10),r.qZA(),r.qZA(),r.TgZ(7,"mat-form-field"),r.TgZ(8,"mat-label"),r._uU(9),r.ALo(10,"translate"),r.qZA(),r.TgZ(11,"mat-select",9),r.NdJ("valueChange",function(e){return r.CHM(t),r.oxw().selectedLang=e}),r.YNc(12,m,4,6,"mat-option",10),r.qZA(),r.qZA(),r.TgZ(13,"mat-form-field"),r.TgZ(14,"mat-label"),r._uU(15),r.ALo(16,"translate"),r.qZA(),r.TgZ(17,"mat-select",9),r.NdJ("valueChange",function(e){return r.CHM(t),r.oxw().selectedMail=e}),r.YNc(18,b,2,2,"mat-option",10),r.qZA(),r.qZA(),r.TgZ(19,"div",11),r.TgZ(20,"p",12),r._uU(21),r.ALo(22,"translate"),r.qZA(),r.TgZ(23,"p"),r._uU(24),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.xp6(3),r.Oqu(r.lcZ(4,11,"DIALOGS.PASSWORD_RESET_REQUEST.NAMESPACE")),r.xp6(2),r.Q6J("value",t.selectedLogin),r.xp6(1),r.Q6J("ngForOf",t.logins),r.xp6(3),r.Oqu(r.lcZ(10,13,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),r.xp6(2),r.Q6J("value",t.selectedLang),r.xp6(1),r.Q6J("ngForOf",t.languages),r.xp6(3),r.Oqu(r.lcZ(16,15,"DIALOGS.PASSWORD_RESET_REQUEST.EMAIL")),r.xp6(2),r.Q6J("value",t.selectedMail),r.xp6(1),r.Q6J("ngForOf",t.mails),r.xp6(3),r.Oqu(r.lcZ(22,17,"DIALOGS.PASSWORD_RESET_REQUEST.LOGIN")),r.xp6(3),r.Oqu(t.selectedLogin.value)}}let w=(()=>{class t{constructor(t,e,i,n,s,o,r){this.dialogRef=t,this.data=e,this.membersManagerService=i,this.attributesManagerService=n,this.store=s,this.translate=o,this.notificator=r,this.languages=this.store.get("supported_languages"),this.selectedLang="en",this.pwdMails=new Map,this.logins=[],this.selectedMail="user:preferredMail",this.mails=[],o.get("DIALOGS.PASSWORD_RESET_REQUEST.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.getMailAttributes(),this.logins=this.data.logins,this.selectedLogin=this.logins[0]}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"}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0;const t=this.selectedLogin.friendlyNameParameter,e=window.location.href.split("/"),i=e[0]+"//"+e[2];this.membersManagerService.sendPasswordResetLinkEmail(this.data.memberId,t,this.pwdMails.get(this.selectedMail),this.selectedLang,i).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close()},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.WI),r.Y36(s.uq),r.Y36(s.H8),r.Y36(o.d6),r.Y36(a.sK),r.Y36(o.V6))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"h1",0),r._uU(1),r.ALo(2,"translate"),r.qZA(),r.TgZ(3,"div",1),r.YNc(4,g,1,0,"mat-spinner",2),r.qZA(),r.YNc(5,_,25,19,"div",3),r.TgZ(6,"div",4),r.TgZ(7,"button",5),r.NdJ("click",function(){return e.onCancel()}),r._uU(8),r.ALo(9,"translate"),r.qZA(),r.TgZ(10,"button",6),r.NdJ("click",function(){return e.onSubmit()}),r._uU(11),r.ALo(12,"translate"),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,6,"DIALOGS.PASSWORD_RESET_REQUEST.TITLE")),r.xp6(3),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading),r.xp6(3),r.hij(" ",r.lcZ(9,8,"DIALOGS.PASSWORD_RESET_REQUEST.CANCEL")," "),r.xp6(2),r.Q6J("disabled",e.loading),r.xp6(1),r.hij(" ",r.lcZ(12,10,"DIALOGS.PASSWORD_RESET_REQUEST.SEND")," "))},directives:[n.uh,c.O5,n.H8,l.lW,u.$g,n.xY,h.KE,h.hX,d.gD,c.sg,p.ey],pipes:[a.X$,c.gd],styles:[".column-size[_ngcontent-%COMP%]{width:8rem}"]}),t})()},4374:function(t,e,i){"use strict";i.d(e,{X:function(){return v}});var n=i(84608),s=i(67033),o=i(68416),r=i(65249),a=i(31572),c=i(48160),l=i(61511),u=i(67806),h=i(15980),d=i(22196);function p(t,e){1&t&&a._UZ(0,"th",13)}function g(t,e){if(1&t&&(a.TgZ(0,"td",14),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.hij(" ",t.id," ")}}function f(t,e){1&t&&a._UZ(0,"th",13)}function m(t,e){if(1&t&&(a.TgZ(0,"td",14),a._uU(1),a.ALo(2,"userFullName"),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.hij(" ",a.lcZ(2,1,t.user)," ")}}function b(t,e){1&t&&a._UZ(0,"tr",15)}function _(t,e){1&t&&a._UZ(0,"tr",16)}function w(t,e){if(1&t&&(a.TgZ(0,"div",4),a.TgZ(1,"p"),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"div",5),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.TgZ(7,"table",6),a.ynx(8,7),a.YNc(9,p,1,0,"th",8),a.YNc(10,g,2,1,"td",9),a.BQk(),a.ynx(11,10),a.YNc(12,f,1,0,"th",8),a.YNc(13,m,3,3,"td",9),a.BQk(),a.YNc(14,b,1,0,"tr",11),a.YNc(15,_,1,0,"tr",12),a.qZA(),a.qZA()),2&t){const t=a.oxw();a.xp6(2),a.hij(" ",a.lcZ(3,5,t.data.groupId?"DIALOGS.REMOVE_MEMBERS.DESCRIPTION_GROUP":"DIALOGS.REMOVE_MEMBERS.DESCRIPTION")," "),a.xp6(3),a.hij(" ",a.lcZ(6,7,"DIALOGS.REMOVE_MEMBERS.ASK")," "),a.xp6(2),a.Q6J("dataSource",t.dataSource),a.xp6(7),a.Q6J("matHeaderRowDef",t.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",t.displayedColumns)}}function A(t,e){1&t&&a._UZ(0,"mat-spinner",17)}function y(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div",18),a.TgZ(1,"button",19),a.NdJ("click",function(){return a.CHM(t),a.oxw().onCancel()}),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"button",20),a.NdJ("click",function(){return a.CHM(t),a.oxw().onSubmit()}),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.qZA()}if(2&t){const t=a.oxw();a.xp6(2),a.hij(" ",a.lcZ(3,2,"DIALOGS.REMOVE_MEMBERS.CANCEL")," "),a.xp6(3),a.hij(" ",a.lcZ(6,4,t.data.groupId?"DIALOGS.REMOVE_MEMBERS.REMOVE_GROUP":"DIALOGS.REMOVE_MEMBERS.REMOVE")," ")}}let v=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.membersService=i,this.groupService=n,this.notificator=s,this.translate=o,this.displayedColumns=["id","name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new s.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(t=>t.id)).subscribe(()=>this.onSuccess(),()=>this.onError()):this.membersService.deleteMembers(this.data.members.map(t=>t.id)).subscribe(()=>this.onSuccess(),()=>this.onError())}onSuccess(){const t=this.translate.instant(this.data.groupId?"DIALOGS.REMOVE_MEMBERS.SUCCESS_GROUP":"DIALOGS.REMOVE_MEMBERS.SUCCESS");this.notificator.showSuccess(t),this.dialogRef.close(!0),this.loading=!1}onError(){this.loading=!1}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(r.uq),a.Y36(r.ff),a.Y36(o.V6),a.Y36(c.sK))},t.\u0275cmp=a.Xpm({type:t,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"],["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",""],[1,"mr-auto","ml-auto"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn","data-cy","remove-members-dialog",1,"ml-2",3,"click"]],template:function(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"h1",0),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,w,16,9,"div",1),a.YNc(5,A,1,0,"mat-spinner",2),a.YNc(6,y,7,6,"div",3),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(2),a.Oqu(a.lcZ(3,7,"DIALOGS.REMOVE_MEMBERS.TITLE")),a.xp6(2),a.Q6J("ngIf",!e.loading),a.xp6(1),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading))},directives:[n.uh,l.O5,n.xY,s.BZ,s.w1,s.fO,s.Dz,s.as,s.nj,s.ge,s.ev,s.XQ,s.Gk,u.$g,n.H8,h.lW],pipes:[c.X$,d.d],styles:[""]}),t})()},95909:function(t,e,i){"use strict";i.d(e,{f:function(){return u}});var n=i(84608),s=i(67033),o=i(68416),r=i(65249),a=i(31572),c=i(48160),l=i(20247);let u=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.resourcesManager=s,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new s.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(t=>{this.loading=!1,this.notificator.showSuccess(t),this.dialogRef.close(!0)}):this.resourcesManager.deleteResource(this.data.resources[0].id).subscribe(()=>{this.data.resources.shift(),this.onDelete()},()=>{this.dialogRef.close(!0)})}onSubmit(t){t.deleted?this.onDelete():this.onCancel()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(o.V6),a.Y36(c.sK),a.Y36(r.xk))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-remove-resource-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","disableForce","loading","deleted"]],template:function(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"app-delete-entity-dialog",0),a.NdJ("deleted",function(t){return e.onSubmit(t)}),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(1),a.Q6J("entityNames",e.dataSource)("entityType","resources")("disableForce",!0)("loading",e.loading))},directives:[l.e],styles:[""]}),t})()},99608:function(t,e,i){"use strict";i.d(e,{o:function(){return u}});var n=i(84608),s=i(67033),o=i(68416),r=i(65249),a=i(31572),c=i(48160),l=i(20247);let u=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.voService=n,this.translate=s,this.force=!1,this.displayedColumns=["name"],this.relations=[],s.get("DIALOGS.REMOVE_VO.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new s.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(t){this.force=t.force,t.deleted?this.onDelete():this.onCancel()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(o.V6),a.Y36(r.YF),a.Y36(c.sK))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-remove-vo-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","relations","loading","deleted"]],template:function(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"app-delete-entity-dialog",0),a.NdJ("deleted",function(t){return e.onSubmit(t)}),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(1),a.Q6J("entityNames",e.dataSource)("entityType","organizations")("relations",e.relations)("loading",e.loading))},directives:[l.e],styles:[".foo[_ngcontent-%COMP%]{margin-top:20px}"]}),t})()},24555:function(t,e,i){"use strict";i.d(e,{E:function(){return _}});var n=i(84608),s=i(65249),o=i(31572),r=i(61511),a=i(15980),c=i(67806),l=i(66283),u=i(80340),h=i(16073),d=i(4786),p=i(71522),g=i(48160);function f(t,e){1&t&&o._UZ(0,"mat-spinner",6)}function m(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div"),o.TgZ(1,"mat-form-field",9),o.TgZ(2,"mat-select",10),o.NdJ("valueChange",function(e){return o.CHM(t),o.oxw(2).embeddedState=e}),o.ALo(3,"translate"),o.TgZ(4,"mat-option",11),o._uU(5),o.ALo(6,"translate"),o.qZA(),o.TgZ(7,"mat-option",12),o._uU(8),o.ALo(9,"translate"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&t){const t=o.oxw(2);o.xp6(2),o.MGl("placeholder","",o.lcZ(3,4,"DIALOGS.UPDATE_APPLICATION_FORM.EMBEDDED"),":"),o.Q6J("value",t.embeddedState),o.xp6(3),o.Oqu(o.lcZ(6,6,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),o.xp6(3),o.Oqu(o.lcZ(9,8,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL"))}}function b(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",7),o.TgZ(1,"mat-form-field"),o.TgZ(2,"input",8),o.NdJ("ngModelChange",function(e){return o.CHM(t),o.oxw().moduleName=e}),o.ALo(3,"translate"),o.qZA(),o.qZA(),o.TgZ(4,"mat-form-field",9),o.TgZ(5,"mat-select",10),o.NdJ("valueChange",function(e){return o.CHM(t),o.oxw().initialState=e}),o.ALo(6,"translate"),o.TgZ(7,"mat-option",11),o._uU(8),o.ALo(9,"translate"),o.qZA(),o.TgZ(10,"mat-option",12),o._uU(11),o.ALo(12,"translate"),o.qZA(),o.qZA(),o.qZA(),o.TgZ(13,"mat-form-field",9),o.TgZ(14,"mat-select",10),o.NdJ("valueChange",function(e){return o.CHM(t),o.oxw().extensionState=e}),o.ALo(15,"translate"),o.TgZ(16,"mat-option",11),o._uU(17),o.ALo(18,"translate"),o.qZA(),o.TgZ(19,"mat-option",12),o._uU(20),o.ALo(21,"translate"),o.qZA(),o.qZA(),o.qZA(),o.YNc(22,m,10,10,"div",13),o.qZA()}if(2&t){const t=o.oxw();o.xp6(2),o.s9C("placeholder",o.lcZ(3,11,"DIALOGS.UPDATE_APPLICATION_FORM.MODULE_NAME")),o.Q6J("ngModel",t.moduleName),o.xp6(3),o.MGl("placeholder","",o.lcZ(6,13,"DIALOGS.UPDATE_APPLICATION_FORM.INITIAL"),":"),o.Q6J("value",t.initialState),o.xp6(3),o.Oqu(o.lcZ(9,15,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),o.xp6(3),o.Oqu(o.lcZ(12,17,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),o.xp6(3),o.MGl("placeholder","",o.lcZ(15,19,"DIALOGS.UPDATE_APPLICATION_FORM.EXTENSION"),":"),o.Q6J("value",t.extensionState),o.xp6(3),o.Oqu(o.lcZ(18,21,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),o.xp6(3),o.Oqu(o.lcZ(21,23,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),o.xp6(2),o.Q6J("ngIf","group"===t.entity&&t.autoRegistrationEnabled)}}let _=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.registrarManager=i,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(t=>{this.dialogRef.close(t)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.so),o.Y36(n.WI),o.Y36(s.tk))},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-update-application-form-dialog"]],decls:13,vars:15,consts:[["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","accent",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(t,e){1&t&&(o.TgZ(0,"div"),o.TgZ(1,"h1",0),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.YNc(4,f,1,0,"mat-spinner",1),o.YNc(5,b,23,25,"div",2),o.TgZ(6,"div",3),o.TgZ(7,"button",4),o.NdJ("click",function(){return e.onCancel()}),o._uU(8),o.ALo(9,"translate"),o.qZA(),o.TgZ(10,"button",5),o.NdJ("click",function(){return e.submit()}),o._uU(11),o.ALo(12,"translate"),o.qZA(),o.qZA(),o.qZA()),2&t&&(o.Tol(e.theme),o.xp6(2),o.Oqu(o.lcZ(3,9,"DIALOGS.UPDATE_APPLICATION_FORM.TITLE")),o.xp6(2),o.Q6J("ngIf",e.loading),o.xp6(1),o.Q6J("ngIf",!e.loading),o.xp6(3),o.hij(" ",o.lcZ(9,11,"DIALOGS.UPDATE_APPLICATION_FORM.CANCEL_BUTTON")," "),o.xp6(2),o.Q6J("disabled",e.loading),o.xp6(1),o.hij(" ",o.lcZ(12,13,"DIALOGS.UPDATE_APPLICATION_FORM.SUBMIT_BUTTON")," "))},directives:[n.uh,r.O5,n.H8,a.lW,c.$g,n.xY,l.KE,u.Nt,h.Fj,h.JJ,h.On,d.gD,p.ey],pipes:[g.X$],styles:[""]}),t})()},65050:function(t,e,i){"use strict";i.d(e,{c:function(){return o}});var n=i(31572),s=i(48160);let o=(()=>{class t{constructor(t){this.translateService=t,this.returnData=""}transform(t){switch(t){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.HEADER").subscribe(t=>{this.returnData=t});break;case"FROM_FEDERATION_HIDDEN":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.FROM_FEDERATION_HIDDEN").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"FROM_FEDERATION_SHOW":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.FROM_FEDERATION_SHOW").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;default:return t}return this.returnData}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(s.sK,16))},t.\u0275pipe=n.Yjl({name:"applicationFormItemType",type:t,pure:!0}),t})()},84650:function(t,e,i){"use strict";i.d(e,{h:function(){return o}});var n=i(31572),s=i(48160);let o=(()=>{class t{constructor(t){this.translate=t,this.returnData=""}transform(t){switch(t){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=t}return this.returnData}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(s.sK,16))},t.\u0275pipe=n.Yjl({name:"applicationState",type:t,pure:!1}),t})()},99373:function(t,e,i){"use strict";i.d(e,{A:function(){return s}});var n=i(31572);let s=(()=>{class t{transform(t){return t.substring(40)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"extSourceType",type:t,pure:!0}),t})()},28780:function(t,e,i){"use strict";i.d(e,{m:function(){return kt}});var n=i(61511),s=i(57629),o=i(40084),r=i(15980),a=i(29236),c=i(71522),l=i(15812),u=i(84608),h=i(27679),d=i(45001),p=i(66283),g=i(43691),f=i(80340),m=i(73005),b=i(45994),_=i(67806),w=i(54810),A=i(4786),y=i(25122),v=i(27521),T=i(71403),C=i(58623),E=i(67033),S=i(55109),k=i(36922),I=i(91010),x=i(27439),R=i(41050),O=i(10033),P=i(8055),D=i(70663),M=i(16073),L=i(24081),N=i(17),z=i(68416),Z=i(31572),B=i(84534),q=i(48160);const F=["collapse"],U=function(){return{color:"linkTextColor"}};function H(t,e){1&t&&(Z.TgZ(0,"mat-icon",14),Z._uU(1,"keyboard_arrow_right"),Z.qZA()),2&t&&Z.Q6J("ngStyle",Z.DdM(1,U))}function G(t,e){1&t&&(Z.TgZ(0,"mat-icon",14),Z._uU(1,"keyboard_arrow_down"),Z.qZA()),2&t&&Z.Q6J("ngStyle",Z.DdM(1,U))}function j(t,e){if(1&t&&(Z.TgZ(0,"span",12),Z.YNc(1,H,2,2,"mat-icon",13),Z.YNc(2,G,2,2,"mat-icon",13),Z.qZA()),2&t){const t=Z.oxw().$implicit,e=Z.oxw(2);Z.xp6(1),Z.Q6J("ngIf",!e.isActive(e.currentUrl,t.showChildrenRegex)),Z.xp6(1),Z.Q6J("ngIf",e.isActive(e.currentUrl,t.showChildrenRegex))}}const Y=function(t,e){return{color:t,"border-color":e}};function K(t,e){if(1&t){const t=Z.EpF();Z.TgZ(0,"a",17),Z.NdJ("click",function(){const e=Z.CHM(t).$implicit;return Z.oxw(4).navigate(e.url)}),Z._uU(1),Z.ALo(2,"translate"),Z.qZA()}if(2&t){const t=e.$implicit,i=Z.oxw(4);Z.ekj("activated",i.isActive(i.currentUrl,t.activatedRegex)&&void 0===i.item.activatedClass),Z.Q6J("perunWebAppsMiddleClickRouterLink",t.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",i.isActive(i.currentUrl,t.activatedRegex)&&void 0!==i.item.activatedClass?i.item.activatedClass:"")("ngStyle",Z.WLB(9,Y,i.linkTextColor,i.linkTextColor)),Z.xp6(1),Z.hij(" ",Z.lcZ(2,7,t.label)," ")}}function V(t,e){if(1&t&&(Z.TgZ(0,"div",15),Z.YNc(1,K,3,12,"a",16),Z.qZA()),2&t){const t=Z.oxw().$implicit;Z.Q6J("@rollInOut",void 0),Z.xp6(1),Z.Q6J("ngForOf",null==t?null:t.children)}}function $(t,e){if(1&t){const t=Z.EpF();Z.TgZ(0,"div"),Z.TgZ(1,"a",9),Z.NdJ("click",function(){const e=Z.CHM(t).$implicit;return Z.oxw(2).navigate(e.url)}),Z._uU(2),Z.ALo(3,"translate"),Z.YNc(4,j,3,2,"span",10),Z.qZA(),Z.YNc(5,V,2,2,"div",11),Z.qZA()}if(2&t){const t=e.$implicit,i=Z.oxw(2);Z.xp6(1),Z.ekj("activated",i.isActive(i.currentUrl,t.activatedRegex)&&void 0===i.item.activatedClass),Z.Q6J("perunWebAppsMiddleClickRouterLink",t.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",i.isActive(i.currentUrl,t.activatedRegex)&&void 0!==i.item.activatedClass?i.item.activatedClass:"")("ngStyle",Z.WLB(11,Y,i.linkTextColor,i.linkTextColor)),Z.xp6(1),Z.hij(" ",Z.lcZ(3,9,t.label)," "),Z.xp6(2),Z.Q6J("ngIf",t.children),Z.xp6(1),Z.Q6J("ngIf",i.isActive(i.currentUrl,t.showChildrenRegex))}}function J(t,e){if(1&t&&(Z.TgZ(0,"div"),Z.YNc(1,$,6,14,"div",8),Z.qZA()),2&t){const t=Z.oxw();Z.Q6J("@rollInOut",void 0),Z.xp6(1),Z.Q6J("ngForOf",t.item.links)}}const Q=function(t,e){return{background:t,"border-top":e}},W=function(t){return{color:t}},X=function(){return{color:"currentColor"}},tt=function(t){return{background:t}};let et=(()=>{class t{constructor(t,e){this.router=t,this.store=e,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.iconColor=this.store.get("theme","sidemenu_item_icon_color"),this.dividerStyle="1px solid "+this.store.get("theme","sidemenu_divider_color"),this.currentUrl=t.url,t.events.subscribe(t=>{t instanceof s.m2&&(this.currentUrl=t.url)})}toggle(){void 0!==this.item.baseLink&&this.navigate(this.item.baseLink)}isActive(t,e){return new RegExp(e).test(t)}navigate(t){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.router.navigate(t)):this.router.navigate(t)}}return t.\u0275fac=function(e){return new(e||t)(Z.Y36(s.F0),Z.Y36(z.d6))},t.\u0275cmp=Z.Xpm({type:t,selectors:[["app-side-menu-item"]],viewQuery:function(t,e){if(1&t&&Z.Gf(F,5),2&t){let t;Z.iGM(t=Z.CRH())&&(e.collapseDiv=t.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(t,e){1&t&&(Z.TgZ(0,"div",0),Z.TgZ(1,"div",1),Z.NdJ("click",function(){return e.toggle()}),Z.TgZ(2,"div",2),Z.TgZ(3,"a",3),Z.TgZ(4,"div"),Z._UZ(5,"mat-icon",4),Z.qZA(),Z.TgZ(6,"div",5),Z._uU(7),Z.ALo(8,"translate"),Z.qZA(),Z.qZA(),Z.qZA(),Z.qZA(),Z.TgZ(9,"div"),Z.TgZ(10,"div",6),Z.YNc(11,J,2,2,"div",7),Z.qZA(),Z.qZA(),Z.qZA()),2&t&&(Z.xp6(1),Z.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",Z.WLB(18,Q,e.item.backgroundColorCss,e.index?e.dividerStyle:"none")),Z.xp6(1),Z.Gre("entity-menu-item-link ",e.item.labelClass,""),Z.Q6J("perunWebAppsMiddleClickRouterLink",e.item.baseLink),Z.xp6(1),Z.Q6J("ngStyle",Z.VKq(21,W,e.item.textColorCss)),Z.xp6(2),Z.Q6J("ngStyle",Z.DdM(23,X))("svgIcon",e.item.icon),Z.xp6(2),Z.Oqu(Z.lcZ(8,16,e.item.label)),Z.xp6(2),Z.Q6J("@openClose",e.expanded?"open":"closed"),Z.xp6(1),Z.Gre("side-entity-menu ",e.item.linksClass,""),Z.Q6J("ngStyle",Z.VKq(24,tt,e.linkBgColor)),Z.xp6(1),Z.Q6J("ngIf",e.showLinks))},directives:[c.wG,n.PC,B.YH,g.Hw,n.O5,n.sg,n.mk],pipes:[q.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:[N.BQ,N.Ly]}}),t})(),it=(()=>{class t{transform(t){if(void 0===t.value)return"";switch(t.type){case"java.lang.String":return t.value;case"java.lang.Integer":return t.value.toString();case"java.util.ArrayList":return this.whenValueIsArray(t.value);case"java.util.LinkedHashMap":return this.whenValueIsMap(t.value);case"java.lang.Boolean":return t.value.toString();default:return t.value}}whenValueIsArray(t){let e="";return t.forEach(function(t){e=e.concat(t+", ")}),e}whenValueIsMap(t){let e="";return t.forEach((t,i)=>{e=e.concat(i+": "+t+", ")}),e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Z.Yjl({name:"anyToString",type:t,pure:!0}),t})();const nt=["collapse"],st=function(){return{color:"linkTextColor"}};function ot(t,e){1&t&&(Z.TgZ(0,"mat-icon",12),Z._uU(1,"keyboard_arrow_right"),Z.qZA()),2&t&&Z.Q6J("ngStyle",Z.DdM(1,st))}function rt(t,e){1&t&&(Z.TgZ(0,"mat-icon",12),Z._uU(1,"keyboard_arrow_down"),Z.qZA()),2&t&&Z.Q6J("ngStyle",Z.DdM(1,st))}function at(t,e){if(1&t&&(Z.TgZ(0,"span",10),Z.YNc(1,ot,2,2,"mat-icon",11),Z.YNc(2,rt,2,2,"mat-icon",11),Z.qZA()),2&t){const t=Z.oxw().$implicit,e=Z.oxw();Z.xp6(1),Z.Q6J("ngIf",!e.isActive(e.currentUrl,t.showChildrenRegex)),Z.xp6(1),Z.Q6J("ngIf",e.isActive(e.currentUrl,t.showChildrenRegex))}}const ct=function(t,e){return{color:t,"border-color":e}};function lt(t,e){if(1&t){const t=Z.EpF();Z.TgZ(0,"a",14),Z.NdJ("click",function(){const e=Z.CHM(t).$implicit;return Z.oxw(3).navigate(e.url)}),Z._uU(1),Z.ALo(2,"translate"),Z.qZA()}if(2&t){const t=e.$implicit,i=Z.oxw(3);Z.ekj("activated",i.isActive(i.currentUrl,t.activatedRegex)&&void 0===i.item.activatedClass),Z.Q6J("perunWebAppsMiddleClickRouterLink",t.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",Z.WLB(9,ct,i.linkTextColor,i.linkTextColor))("ngClass",i.isActive(i.currentUrl,t.activatedRegex)&&void 0!==i.item.activatedClass?i.item.activatedClass:""),Z.xp6(1),Z.hij(" ",Z.lcZ(2,7,t.label)," ")}}function ut(t,e){if(1&t&&(Z.TgZ(0,"div"),Z.YNc(1,lt,3,12,"a",13),Z.qZA()),2&t){const t=Z.oxw().$implicit;Z.Q6J("@rollInOut",void 0),Z.xp6(1),Z.Q6J("ngForOf",null==t?null:t.children)}}function ht(t,e){if(1&t){const t=Z.EpF();Z.TgZ(0,"div"),Z.TgZ(1,"a",7),Z.NdJ("click",function(){const e=Z.CHM(t).$implicit;return Z.oxw().navigate(e.url)}),Z._uU(2),Z.ALo(3,"translate"),Z.YNc(4,at,3,2,"span",8),Z.qZA(),Z.YNc(5,ut,2,2,"div",9),Z.qZA()}if(2&t){const t=e.$implicit,i=Z.oxw();Z.xp6(1),Z.ekj("activated",i.isActive(i.currentUrl,t.activatedRegex)&&void 0===i.item.activatedClass),Z.Q6J("perunWebAppsMiddleClickRouterLink",t.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",Z.WLB(11,ct,i.linkTextColor,i.linkTextColor))("ngClass",i.isActive(i.currentUrl,t.activatedRegex)&&void 0!==i.item.activatedClass?i.item.activatedClass:""),Z.xp6(1),Z.hij(" ",Z.lcZ(3,9,t.label)," "),Z.xp6(2),Z.Q6J("ngIf",t.children),Z.xp6(1),Z.Q6J("ngIf",i.isActive(i.currentUrl,t.showChildrenRegex))}}const dt=function(t){return{background:t}},pt=function(t){return{color:t}},gt=function(){return{color:"currentColor"}};let ft=(()=>{class t{constructor(t,e){this.router=t,this.store=e,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.iconColor=this.store.get("theme","sidemenu_item_icon_color"),this.currentUrl=t.url,t.events.subscribe(t=>{t instanceof s.m2&&(this.currentUrl=t.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(t,e){return new RegExp(e).test(t)}getBgClass(){return this.item.baseColorClass?this.isActive(this.currentUrl,this.item.baseColorClassRegex)?this.item.colorClass:this.item.baseColorClass:this.item.colorClass}navigate(t){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.router.navigate(t)):this.router.navigate(t)}}return t.\u0275fac=function(e){return new(e||t)(Z.Y36(s.F0),Z.Y36(z.d6))},t.\u0275cmp=Z.Xpm({type:t,selectors:[["app-side-menu-root-item"]],viewQuery:function(t,e){if(1&t&&Z.Gf(nt,5),2&t){let t;Z.iGM(t=Z.CRH())&&(e.collapseDiv=t.first)}},inputs:{item:"item",index:"index",showOpen:"showOpen",id:"id",sideNav:"sideNav"},features:[Z.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","ngStyle","ngClass","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"],["matRipple","","class","pl-5 clickable",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngStyle","activated","ngClass","click",4,"ngFor","ngForOf"],["matRipple","",1,"pl-5","clickable",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngStyle","ngClass","click"]],template:function(t,e){1&t&&(Z.TgZ(0,"div",0),Z.TgZ(1,"div",1),Z.NdJ("click",function(){return e.toggle()}),Z.TgZ(2,"div"),Z.TgZ(3,"a",2),Z.TgZ(4,"div"),Z._UZ(5,"mat-icon",3),Z.qZA(),Z.TgZ(6,"div",4),Z._uU(7),Z.ALo(8,"translate"),Z.qZA(),Z.qZA(),Z.qZA(),Z.qZA(),Z.TgZ(9,"div"),Z.TgZ(10,"div",5),Z.YNc(11,ht,6,14,"div",6),Z.qZA(),Z.qZA(),Z.qZA()),2&t&&(Z.s9C("id",e.id),Z.xp6(1),Z.ekj("root-header-activated",e.isActive(e.currentUrl,e.item.baseColorClassRegex)),Z.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",Z.VKq(21,dt,e.item.backgroundColorCss))("perunWebAppsMiddleClickRouterLink",e.item.baseLink),Z.xp6(1),Z.Gre("entity-menu-item-link ",e.item.labelClass,""),Z.xp6(1),Z.Q6J("ngStyle",Z.VKq(23,pt,e.item.textColorCss)),Z.xp6(2),Z.Q6J("ngStyle",Z.DdM(25,gt))("svgIcon",e.item.icon),Z.xp6(2),Z.Oqu(Z.lcZ(8,19,e.item.label)),Z.xp6(2),Z.Q6J("@openClose",e.expanded?"open":"closed"),Z.xp6(1),Z.Gre("side-entity-menu ",e.item.linksClass,""),Z.Q6J("ngStyle",Z.VKq(26,dt,e.linkBgColor)),Z.xp6(1),Z.Q6J("ngForOf",e.item.links))},directives:[c.wG,n.PC,B.YH,g.Hw,n.sg,n.mk,n.O5],pipes:[q.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:[N.BQ,N.Ly]}}),t})();var mt=i(88975),bt=i(4253),_t=i(22727),wt=i(99373),At=i(41939),yt=i(7423),vt=i(22280),Tt=i(30146),Ct=i(85250),Et=i(84140),St=i(18820);let kt=(()=>{class t{constructor(t){this.translate=t,t.addLangs(["en","cs"])}}return t.\u0275fac=function(e){return new(e||t)(Z.LFG(q.sK))},t.\u0275mod=Z.oAB({type:t}),t.\u0275inj=Z.cJS({providers:[it,wt.A],imports:[[n.ez,s.Bz,o.Bb,f.c,p.lN,M.UX,M.u5,g.Ps,y.SJ,d.To,q.aw.forChild({}),r.ot,C.JX,E.p0,S.Nh,I.dp,r.ot,a.p9,u.Is,A.LD,T.ZX,_.Cq,b.Cv,k.AV,v.rP,l.FA,c.XK,w.Fk,h.t,c.si,m.TU,x.QW,D.T5,mt._t,x.QW,O.Hi,P.Tx,bt.Cl,_t.r,R.g,At.ez,yt.r,vt.d4,Tt.Co,Ct.ie,Et.Je,St.E3],Tt.Co,o.Bb,f.c,s.Bz,M.UX,M.u5,g.Ps,y.SJ,q.aw,C.JX,E.p0,S.Nh,I.dp,r.ot,a.p9,u.Is,A.LD,T.ZX,_.Cq,b.Cv,k.AV,v.rP,l.FA,c.XK,w.Fk,h.t,x.QW,D.T5,c.si,m.TU,mt._t,O.Hi,O.Hi,d.To,P.Tx,bt.Cl,bt.Cl,bt.Cl,yt.r]}),t})();Z.B6R(L.V,[ft,n.sg,et,n.O5],[])},75585:function(t,e,i){"use strict";i.d(e,{V:function(){return u}});var n=i(68416),s=i(65249),o=i(84140),r=i(22280),a=i(67004),c=i(31572),l=i(48160);let u=(()=>{class t{constructor(t,e,i,n,s,o,r){this.translate=t,this.authResolver=e,this.store=i,this.apiRequest=n,this.attributesManager=s,this.notificator=o,this.guiAuthResolver=r,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$"}]}}parseFacility(t){return{label:t.name,baseLink:[`/facilities/${t.id}`],backgroundColorCss:this.facilityBgColor,textColorCss:this.facilityTextColor,links:this.getFacilityLinks(t),colorClass:"facility-item",icon:"perun-facility-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseResource(t,e){const i=(new r.r5).transform(t,e);return{label:t.name,baseLink:[i],backgroundColorCss:this.resourceBgColor,textColorCss:this.resourceTextColor,links:this.getResourceLinks(i,e?"/organizations":"/facilities",t),colorClass:"resource-item",icon:"perun-resource-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}getResourceLinks(t,e,i){const n=[{label:"MENU_ITEMS.RESOURCE.OVERVIEW",url:[t],activatedRegex:`${e}/\\d+/resources/\\d+$`}];return this.authResolver.isAuthorized("getAssignedGroups_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",url:[t,"groups"],activatedRegex:`${e}/\\d+/resources/\\d+/groups$`}),this.authResolver.isAuthorized("getAssignedServices_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",url:[t,"services"],activatedRegex:`${e}/\\d+/resources/\\d+/services$`}),this.authResolver.isAuthorized("getAssignedMembers_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",url:[t,"members"],activatedRegex:`${e}/\\d+/resources/\\d+/members$`}),this.authResolver.isAuthorized("getAllResourcesTagsForResource_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",url:[t,"tags"],activatedRegex:`${e}/\\d+/resources/\\d+/tags$`}),n.push({label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",url:[t,"attributes"],activatedRegex:`${e}/\\d+/resources/\\d+/attributes$`}),this.authResolver.isManagerPagePrivileged(i)&&n.push({label:"MENU_ITEMS.RESOURCE.SETTINGS",url:[t,"settings"],activatedRegex:`${e}/\\d+/resources/\\d+/settings$`,children:[{label:"MENU_ITEMS.RESOURCE.MANAGERS",url:[t,"settings","managers"],activatedRegex:`${e}/\\d+/resources/\\d+/settings/managers$`}],showChildrenRegex:`${e}/\\d+/resources/\\d+/settings`}),n}parseGroup(t){return{label:t.name,baseLink:[`/organizations/${t.voId}/groups/${t.id}`],backgroundColorCss:this.groupBgColor,textColorCss:this.groupTextColor,links:this.getGroupLinks(t),colorClass:"group-item",icon:"perun-group",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseVo(t){return{label:t.name,baseLink:[`/organizations/${t.id}`],links:this.getVoLinks(t),colorClass:"vo-item",icon:"perun-vo",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.voBgColor,textColorCss:this.voTextColor}}parseMember(t,e){return{label:(0,o.bD)(t.user),baseLink:[`/organizations/${t.voId}/members/${t.id}`],backgroundColorCss:this.memberBgColor,textColorCss:this.memberTextColor,links:this.getMemberLinks(t,e),colorClass:"member-item",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseUser(t,e,i){return{label:(0,o.bD)(t),baseLink:[e],backgroundColorCss:this.userBgColor,textColorCss:this.userTextColor,links:this.getUserLinks(t,e,i),colorClass:"user-bg-color",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseServiceIdentity(t){return{label:(0,o.bD)(t),baseLink:[`/myProfile/service-identities/${t.id}`],backgroundColorCss:this.userBgColor,textColorCss:this.userTextColor,links:[{label:"MENU_ITEMS.USER.OVERVIEW",url:[`/myProfile/service-identities/${t.id}`],activatedRegex:"/myProfile/service-identities/\\d+$"},{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:[`/myProfile/service-identities/${t.id}/associated-users`],activatedRegex:"/myProfile/service-identities/\\d+/associated-users"}],colorClass:"user-bg-color",icon:"perun-service-identity",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseService(t){return{label:t.name,baseLink:[`/admin/services/${t.id}`],backgroundColorCss:this.serviceBgColor,textColorCss:this.serviceTextColor,links:[{label:"MENU_ITEMS.SERVICE.OVERVIEW",url:[`/admin/services/${t.id}`],activatedRegex:"/admin/services/\\d+$"},{label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",url:[`/admin/services/${t.id}/required-attributes`],activatedRegex:"/admin/services/\\d+/required-attributes"},{label:"MENU_ITEMS.SERVICE.DESTINATIONS",url:[`/admin/services/${t.id}/destinations`],activatedRegex:"/admin/services/\\d+/destinations"}],colorClass:"service-item",icon:"perun-service",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}getVoLinks(t){const e=[];if(e.push({label:"MENU_ITEMS.VO.OVERVIEW",url:[`/organizations/${t.id}`],activatedRegex:"/organizations/\\d+$"}),this.authResolver.isAuthorized("getCompleteRichMembers_Vo_List_policy",[t])&&e.push({label:"MENU_ITEMS.VO.MEMBERS",url:[`/organizations/${t.id}/members`],activatedRegex:"/organizations/\\d+/members$"}),this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[t])&&e.push({label:"MENU_ITEMS.VO.GROUPS",url:[`/organizations/${t.id}/groups`],activatedRegex:"/organizations/\\d+/groups$"}),this.authResolver.isAuthorized("getRichResources_Vo_policy",[t])){const i=[{label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",url:[`/organizations/${t.id}/resources/preview`],activatedRegex:"/organizations/\\d+/resources/preview$"}];this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[t])&&i.push({label:"MENU_ITEMS.VO.RESOURCE_TAGS",url:[`/organizations/${t.id}/resources/tags`],activatedRegex:"/organizations/\\d+/resources/tags$"}),this.authResolver.isAuthorized("getResourcesState_Vo_policy",[t])&&i.push({label:"MENU_ITEMS.VO.RESOURCE_STATES",url:[`/organizations/${t.id}/resources/states`],activatedRegex:"/organizations/\\d+/resources/states$"}),e.push({label:"MENU_ITEMS.VO.RESOURCES",url:[`/organizations/${t.id}/resources`],activatedRegex:"/organizations/\\d+/resources$",children:i,showChildrenRegex:"/organizations/\\d+/resources"})}this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[t])&&e.push({label:"MENU_ITEMS.VO.APPLICATIONS",url:[`/organizations/${t.id}/applications`],activatedRegex:"/organizations/\\d+/applications"}),this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[t])&&e.push({label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",url:[`/organizations/${t.id}/sponsoredMembers`],activatedRegex:"/organizations/\\d+/sponsoredMembers$"}),this.authResolver.isAuthorized("createSpecificMember_Vo_Candidate_List_SpecificUserType_List_policy",[t])&&e.push({label:"MENU_ITEMS.VO.SERVICE_MEMBERS",url:[`/organizations/${t.id}/serviceAccounts`],activatedRegex:"/organizations/\\d+/serviceAccounts$"}),e.push({label:"MENU_ITEMS.VO.ATTRIBUTES",url:[`/organizations/${t.id}/attributes`],activatedRegex:"/organizations/\\d+/attributes$"}),this.guiAuthResolver.isAuthorized("getMembersCount_Vo_Status_policy",[t])&&this.guiAuthResolver.isAuthorized("getMembersCount_Vo_policy",[t])&&e.push({label:"MENU_ITEMS.VO.STATISTICS",url:[`/organizations/${t.id}/statistics`],activatedRegex:"/organizations/\\d+/statistics"});const i=this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[t]),n=this.authResolver.isManagerPagePrivileged(t),s=this.authResolver.isThisVoAdminOrObserver(t.id);if(n||i||s){const o=[];s&&o.push({label:"MENU_ITEMS.VO.EXPIRATION",url:[`/organizations/${t.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/settings/expiration$"}),n&&o.push({label:"MENU_ITEMS.VO.MANAGERS",url:[`/organizations/${t.id}/settings/managers`],activatedRegex:"/organizations/\\d+/settings/managers$"}),s&&o.push({label:"MENU_ITEMS.VO.APPLICATION_FORM",url:[`/organizations/${t.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/settings/applicationForm$"}),s&&o.push({label:"MENU_ITEMS.VO.NOTIFICATIONS",url:[`/organizations/${t.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/settings/notifications$"}),i&&o.push({label:"MENU_ITEMS.VO.EXTSOURCES",url:[`/organizations/${t.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/settings/extsources$"}),e.push({label:"MENU_ITEMS.VO.SETTINGS",url:[`/organizations/${t.id}/settings`],activatedRegex:"/organizations/\\d+/settings$",children:o,showChildrenRegex:"/organizations/\\d+/settings"})}return e}getUserLinks(t,e,i){const n=[];return n.push({label:"MENU_ITEMS.USER.OVERVIEW",url:[e],activatedRegex:`${i}$`}),n.push({label:"MENU_ITEMS.ADMIN.ORGANIZATIONS",url:[`${e}/organizations`],activatedRegex:`${i}/organizations`}),n.push({label:"MENU_ITEMS.ADMIN.GROUPS",url:[`${e}/groups`],activatedRegex:`${i}/groups`}),n.push({label:"MENU_ITEMS.USER.ACCOUNTS",url:[`${e}/accounts`],activatedRegex:`${i}/accounts`}),n.push({label:"MENU_ITEMS.USER.IDENTITIES",url:[`${e}/identities`],activatedRegex:`${i}/identities`}),n.push({label:"MENU_ITEMS.USER.FACILITIES",url:[`${e}/facilities`],activatedRegex:`${i}/facilities`}),n.push({label:"MENU_ITEMS.USER.RESOURCES",url:[`${e}/resources`],activatedRegex:`${i}/resources`}),n.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`${e}/attributes`],activatedRegex:`${i}/attributes`}),n.push({label:"MENU_ITEMS.USER.ROLES",url:[`${e}/roles`],activatedRegex:`^${e}/roles`}),n.push(t.serviceUser?{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:[`${e}/associated-users`],activatedRegex:`^${e}/associated-users`}:{label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",url:[`${e}/service-identities`],activatedRegex:`^${e}/service-identities`}),n}getMemberLinks(t,e){const i=[{label:"MENU_ITEMS.MEMBER.OVERVIEW",url:[`/organizations/${t.voId}/members/${t.id}`],activatedRegex:"/organizations/\\d+/members/\\d+$"}];return this.authResolver.isAuthorized("getMemberGroups_Member_policy",[e])&&i.push({label:"MENU_ITEMS.MEMBER.GROUPS",url:[`//organizations/${t.voId}/members/${t.id}/groups`],activatedRegex:"/organizations/\\d+/members/\\d+/groups"}),this.authResolver.isAuthorized("vo-getApplicationsForMember_Group_Member_policy",[e])&&i.push({label:"MENU_ITEMS.MEMBER.APPLICATIONS",url:[`//organizations/${t.voId}/members/${t.id}/applications`],activatedRegex:"/organizations/\\d+/members/\\d+/applications"}),this.authResolver.isAuthorized("getAssignedRichResources_Member_policy",[e])&&i.push({label:"MENU_ITEMS.MEMBER.RESOURCES",url:[`/organizations/${t.voId}/members/${t.id}/resources`],activatedRegex:"/organizations/\\d+/members/\\d+/resources"}),i.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`/organizations/${t.voId}/members/${t.id}/attributes`],activatedRegex:"/organizations/\\d+/members/\\d+/attributes$"}),i}getFacilityLinks(t){const e=[{label:"MENU_ITEMS.FACILITY.OVERVIEW",url:[`/facilities/${t.id}`],activatedRegex:"/facilities/\\d+$"}];this.authResolver.isAuthorized("getAssignedRichResources_Facility_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.RESOURCES",url:[`/facilities/${t.id}/resources`],activatedRegex:"/facilities/\\d+/resources$"}),this.authResolver.isAuthorized("getAssignedUsers_Facility_Service_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",url:[`/facilities/${t.id}/allowed-users`],activatedRegex:"/facilities/\\d+/allowed-users"}),this.authResolver.isAuthorized("getAllowedGroups_Facility_Vo_Service_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",url:[`/facilities/${t.id}/allowed-groups`],activatedRegex:"/facilities/\\d+/allowed-groups"}),this.authResolver.isAuthorized("getFacilityServicesState_Facility_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",url:[`/facilities/${t.id}/services-status`],activatedRegex:"/facilities/\\d+/services-status"}),this.authResolver.isAuthorized("getAllRichDestinations_Facility_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",url:[`/facilities/${t.id}/services-destinations`],activatedRegex:"facilities/\\d+/services-destinations"}),this.authResolver.isFacilityAdmin()&&e.push({label:"MENU_ITEMS.FACILITY.HOSTS",url:[`/facilities/${t.id}/hosts`],activatedRegex:"facilities/\\d+/hosts"}),e.push({label:"MENU_ITEMS.FACILITY.ATTRIBUTES",url:["/facilities",t.id,"attributes"],activatedRegex:"/facilities/\\d+/attributes$"});const i=this.authResolver.isAuthorized("getBansForFacility_int_policy",[t]),n=this.authResolver.isAuthorized("getRichAdmins_Facility_List_boolean_boolean_policy",[t]),s=this.authResolver.isAuthorized("getOwners_Facility_policy",[t]),o=this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[t]);if(i||n||s||o){const r=[];s&&r.push({label:"MENU_ITEMS.FACILITY.OWNERS",url:["/facilities",t.id,"settings","owners"],activatedRegex:"/facilities/\\d+/settings/owners$"}),n&&r.push({label:"MENU_ITEMS.FACILITY.MANAGERS",url:["/facilities",t.id,"settings","managers"],activatedRegex:"/facilities/\\d+/settings/managers$"}),o&&r.push({label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",url:[`/facilities/${t.id}/settings/security-teams`],activatedRegex:"facilities/\\d+/settings/security-teams"}),i&&r.push({label:"MENU_ITEMS.FACILITY.BLACKLIST",url:["facilities",t.id,"settings","blacklist"],activatedRegex:"/facilities/\\d+/settings/blacklist"}),e.push({label:"MENU_ITEMS.FACILITY.SETTINGS",url:["/facilities",t.id,"settings"],activatedRegex:"/facilities/\\d+/settings$",children:r,showChildrenRegex:"/facilities/\\d+/settings"})}return e}getGroupLinks(t){const e=[],i=[];e.push({label:"MENU_ITEMS.GROUP.OVERVIEW",url:[`/organizations/${t.voId}/groups/${t.id}`],activatedRegex:"/organizations/\\d+/groups/\\d+$"}),this.authResolver.isAuthorized("getCompleteRichMembers_Group_List_boolean_policy",[t])&&e.push({label:"MENU_ITEMS.GROUP.MEMBERS",url:[`/organizations/${t.voId}/groups/${t.id}/members`],activatedRegex:"/organizations/\\d+/groups/\\d+/members$"}),this.authResolver.isAuthorized("getAllRichSubGroupsWithAttributesByNames_Group_List_policy",[t])&&"members"!==t.name&&e.push({label:"MENU_ITEMS.GROUP.SUBGROUPS",url:[`/organizations/${t.voId}/groups/${t.id}/subgroups`],activatedRegex:"/organizations/\\d+/groups/\\d+/subgroups$"}),this.authResolver.isAuthorized("getAssignedRichResources_Group_policy",[t])&&e.push({label:"MENU_ITEMS.GROUP.RESOURCES",url:[`/organizations/${t.voId}/groups/${t.id}/resources`],activatedRegex:"/organizations/\\d+/groups/\\d+/resources$"}),this.authResolver.isAuthorized("getApplicationsForGroup_Group_List_policy",[t])&&e.push({label:"MENU_ITEMS.GROUP.APPLICATIONS",url:[`/organizations/${t.voId}/groups/${t.id}/applications`],activatedRegex:"/organizations/\\d+/groups/\\d+/applications$"}),e.push({label:"MENU_ITEMS.GROUP.ATTRIBUTES",url:[`/organizations/${t.voId}/groups/${t.id}/attributes`],activatedRegex:"/organizations/\\d+/groups/\\d+/attributes$"});const n=this.guiAuthResolver.isAuthorized("getGroupMembersCount_Group_policy",[t]),s=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByVoStatus_Group_policy",[t]),o=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByGroupStatus_Group_policy",[t]);return n&&s&&o&&e.push({label:"MENU_ITEMS.GROUP.STATISTICS",url:[`/organizations/${t.voId}/groups/${t.id}/statistics`],activatedRegex:"/organizations/\\d+/groups/\\d+/statistics"}),this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(t.id,a.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{i.push({label:"MENU_ITEMS.GROUP.EXPIRATION",url:[`/organizations/${t.voId}/groups/${t.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/expiration$"})},t=>{"HttpErrorResponse"!==t.name&&this.notificator.showRPCError(t)}),this.authResolver.isManagerPagePrivileged(t)&&i.push({label:"MENU_ITEMS.GROUP.MANAGERS",url:[`/organizations/${t.voId}/groups/${t.id}/settings/managers`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/managers$"}),this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[t])&&i.push({label:"MENU_ITEMS.GROUP.APPLICATION_FORM",url:[`/organizations/${t.voId}/groups/${t.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/applicationForm$"}),this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[t])&&i.push({label:"MENU_ITEMS.GROUP.NOTIFICATIONS",url:[`/organizations/${t.voId}/groups/${t.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/notifications$"}),this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[t])&&i.push({label:"MENU_ITEMS.GROUP.RELATIONS",url:[`/organizations/${t.voId}/groups/${t.id}/settings/relations`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/relations$"}),this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[t])&&i.push({label:"MENU_ITEMS.GROUP.EXTSOURCES",url:[`/organizations/${t.voId}/groups/${t.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/extsources$"}),0!==i.length&&e.push({label:"MENU_ITEMS.GROUP.SETTINGS",url:[`/organizations/${t.voId}/groups/${t.id}/settings`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings$",children:i,showChildrenRegex:"/organizations/\\d+/groups/\\d+/settings"}),e}}return t.\u0275fac=function(e){return new(e||t)(c.LFG(l.sK),c.LFG(n.x4),c.LFG(n.d6),c.LFG(n.F5),c.LFG(s.H8),c.LFG(n.V6),c.LFG(n.x4))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},24081:function(t,e,i){"use strict";i.d(e,{V:function(){return _}});var n=i(61601),s=i(75585),o=i(68416),r=i(17),a=i(31572),c=i(48958);function l(t,e){if(1&t&&(a.TgZ(0,"div",9),a._UZ(1,"app-side-menu-item",10),a.qZA()),2&t){const t=e.$implicit,i=e.index,n=a.oxw();a.Q6J("@rollInOut",void 0),a.xp6(1),a.Q6J("sideNav",n.sideNav)("item",t)("index",i)}}function u(t,e){if(1&t&&(a.TgZ(0,"div",9),a._UZ(1,"app-side-menu-item",11),a.qZA()),2&t){const t=e.$implicit,i=e.index,n=a.oxw();a.Q6J("@rollInOut",void 0),a.xp6(1),a.Q6J("sideNav",n.sideNav)("item",t)("index",i)("showLinks",i===n.accessItems.length-1)}}function h(t,e){if(1&t&&a._UZ(0,"app-side-menu-root-item",2),2&t){const t=a.oxw();a.Q6J("id","facilities-item-btn")("sideNav",t.sideNav)("item",t.facilityItem)}}function d(t,e){if(1&t&&(a.TgZ(0,"div",9),a._UZ(1,"app-side-menu-item",11),a.qZA()),2&t){const t=e.$implicit,i=e.index,n=a.oxw(2);a.Q6J("@rollInOut",void 0),a.xp6(1),a.Q6J("sideNav",n.sideNav)("item",t)("index",i)("showLinks",i===n.facilityItems.length-1)}}function p(t,e){if(1&t&&(a.TgZ(0,"div"),a.YNc(1,d,2,5,"div",3),a.qZA()),2&t){const t=a.oxw();a.xp6(1),a.Q6J("ngForOf",t.facilityItems)}}function g(t,e){if(1&t&&(a.TgZ(0,"div",9),a._UZ(1,"app-side-menu-item",11),a.qZA()),2&t){const t=e.$implicit,i=e.index,n=a.oxw();a.Q6J("@rollInOut",void 0),a.xp6(1),a.Q6J("sideNav",n.sideNav)("item",t)("index",i)("showLinks",i===n.userItems.length-1)}}function f(t,e){if(1&t&&a._UZ(0,"app-side-menu-root-item",7),2&t){const t=a.oxw();a.Q6J("id","admin-item-btn")("sideNav",t.sideNav)("showOpen",t.adminItemOpened)("item",t.adminItem)}}function m(t,e){if(1&t&&(a.TgZ(0,"div",9),a._UZ(1,"app-side-menu-item",11),a.qZA()),2&t){const t=e.$implicit,i=e.index,n=a.oxw(2);a.Q6J("@rollInOut",void 0),a.xp6(1),a.Q6J("sideNav",n.sideNav)("item",t)("index",i)("showLinks",!0)}}function b(t,e){if(1&t&&(a.TgZ(0,"div"),a.YNc(1,m,2,5,"div",3),a.qZA()),2&t){const t=a.oxw();a.xp6(1),a.Q6J("ngForOf",t.adminItems)}}let _=(()=>{class t{constructor(t,e,i){this.sideMenuService=t,this.sideMenuItemService=e,this.authResolver=i,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}ngOnInit(){this.mobileView=window.innerWidth<=n.y.minWidth,this.mobileView?this.sideNav.close():this.sideNav.open(),this.sideMenuService.facilityItemsChange.subscribe(t=>{this.setFacilityItems(t)}),this.sideMenuService.accessItemsChange.subscribe(t=>{this.setAccessItems(t)}),this.sideMenuService.adminItemsChange.subscribe(t=>{this.setAdminItems(t)}),this.sideMenuService.userItemsChange.subscribe(t=>{this.setUserItems(t)}),this.sideMenuService.homeItemsChange.subscribe(t=>{this.setHomeItems(t)}),this.sideMenuService.resetChange.subscribe(()=>{this.reset()})}reset(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.adminItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}resetExceptHome(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.adminItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}resetExceptFacility(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.adminItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.userItems,[])}resetExceptAccess(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.adminItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}resetExceptAdmin(){this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}resetExceptUser(){this.adminItemOpened=!1,this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.adminItems,[])}setHomeItems(t){this.resetExceptHome(),this.setNewItems(this.homeItems,t)}setFacilityItems(t){this.resetExceptFacility(),this.setNewItems(this.facilityItems,t)}setAccessItems(t){this.resetExceptAccess(),this.setNewItems(this.accessItems,t)}setUserItems(t){this.userItemOpened=0===t.length,this.resetExceptUser(),this.setNewItems(this.userItems,t)}setAdminItems(t){this.adminItemOpened=0===t.length,this.resetExceptAdmin(),this.setNewItems(this.adminItems,t)}setNewItems(t,e){const i=t.length>e.length?t.length:e.length;for(let n=0;nt.length-1)t.push(e[n]);else{if(n>e.length-1){const e=t.length;for(let i=0;i{class t{constructor(t){this.dialogRef=t}onCancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(o.so))},t.\u0275cmp=n.Xpm({type:t,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"],["mat-flat-button","","color","warn","data-cy","delete-application-form-item-dialog",1,"ml-2",3,"click"]],template:function(t,e){1&t&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1),n.TgZ(4,"div",2),n._uU(5),n.ALo(6,"translate"),n.qZA(),n.TgZ(7,"div"),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.TgZ(10,"div",3),n._uU(11),n.ALo(12,"translate"),n.qZA(),n.qZA(),n.TgZ(13,"div",4),n.TgZ(14,"button",5),n.NdJ("click",function(){return e.onCancel()}),n._uU(15),n.ALo(16,"translate"),n.qZA(),n.TgZ(17,"button",6),n.NdJ("click",function(){return e.submit()}),n._uU(18),n.ALo(19,"translate"),n.qZA(),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,6,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.TITLE")),n.xp6(4),n.Oqu(n.lcZ(6,8,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_1")),n.xp6(3),n.Oqu(n.lcZ(9,10,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_2")),n.xp6(3),n.Oqu(n.lcZ(12,12,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_3")),n.xp6(4),n.hij(" ",n.lcZ(16,14,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.CANCEL_BUTTON")," "),n.xp6(3),n.hij(" ",n.lcZ(19,16,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.SUBMIT_BUTTON")," "))},directives:[o.uh,o.xY,o.H8,r.lW],pipes:[a.X$],styles:[""]}),t})();var l=i(68416),u=i(75954),h=i(84140),d=i(57629),p=i(61511),g=i(67806),f=i(67033),m=i(43691),b=i(36922),_=i(16073),w=i(39571),A=i(65050),y=i(82877);const v=["table"];function T(t,e){1&t&&n._UZ(0,"mat-spinner",3)}function C(t,e){1&t&&n._UZ(0,"th",24)}function E(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",25),n.TgZ(1,"button",26),n.NdJ("mousedown",function(){return n.CHM(t),n.oxw(2).dragDisabled=!1}),n.TgZ(2,"mat-icon"),n._uU(3,"drag_indicator"),n.qZA(),n.qZA(),n.qZA()}}function S(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SHORTNAME")))}function k(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.shortname)}}function I(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPE")))}function x(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.ALo(2,"applicationFormItemType"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t.type))}}function R(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HEADER")))}function O(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"mat-icon",30),n._uU(2,"lock"),n.qZA(),n._UZ(3,"br"),n._uU(4),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(1),n.Q6J("matTooltip",e.disabledTooltip(t)),n.xp6(3),n.hij(" ",e.disabledHiddenDependency(t,t.disabled,t.disabledDependencyItemId)," ")}}function P(t,e){if(1&t&&(n.TgZ(0,"td",28),n.YNc(1,O,5,2,"div",29),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf","NEVER"!==t.disabled)}}function D(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN_HEADER")))}function M(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"mat-icon",30),n._uU(2,"visibility_off"),n.qZA(),n._UZ(3,"br"),n._uU(4),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(1),n.Q6J("matTooltip",e.hiddenTooltip(t)),n.xp6(3),n.hij(" ",e.disabledHiddenDependency(t,t.hidden,t.hiddenDependencyItemId)," ")}}function L(t,e){if(1&t&&(n.TgZ(0,"td",28),n.YNc(1,M,5,2,"div",29),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf","NEVER"!==t.hidden)}}function N(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW")))}function z(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"form"),n._UZ(2,"input",32),n.qZA(),n.qZA())}function Z(t,e){1&t&&(n.TgZ(0,"div",33),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN_VALUE")," "))}function B(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"form"),n._UZ(2,"input",34),n.qZA(),n.qZA())}function q(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"form"),n._UZ(2,"input",35),n._UZ(3,"br"),n._UZ(4,"input",32),n.qZA(),n.qZA())}function F(t,e){if(1&t&&(n.TgZ(0,"div"),n._UZ(1,"input",38),n._uU(2),n._UZ(3,"br"),n.qZA()),2&t){const t=e.$implicit;n.xp6(2),n.hij(" ",t,"")}}function U(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"form"),n.YNc(2,F,4,1,"div",36),n._UZ(3,"input",37),n.ALo(4,"translate"),n.qZA(),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(2),n.Q6J("ngForOf",e.getLocalizedOptions(t)),n.xp6(1),n.s9C("value",n.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION"))}}function H(t,e){if(1&t&&(n.TgZ(0,"div"),n._UZ(1,"span",39),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(1),n.Q6J("innerHTML",e.getLocalizedLabel(t),n.oJD)}}function G(t,e){if(1&t&&(n.TgZ(0,"option"),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t)}}function j(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"select"),n.YNc(2,G,2,1,"option",36),n.qZA(),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(2),n.Q6J("ngForOf",e.getLocalizedOptions(t))}}function Y(t,e){1&t&&(n.TgZ(0,"div"),n._UZ(1,"textarea"),n.qZA())}function K(t,e){if(1&t&&(n.TgZ(0,"option",43),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t)}}function V(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"form"),n._UZ(2,"input",32),n.qZA(),n.qZA())}function $(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"div"),n.TgZ(1,"select",40),n.NdJ("ngModelChange",function(e){n.CHM(t);const i=n.oxw().$implicit;return n.oxw(2).mapForCombobox[i.id]=e}),n.YNc(2,K,2,1,"option",41),n.TgZ(3,"option",42),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.qZA(),n.YNc(6,V,3,0,"div",29),n.qZA()}if(2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(1),n.Q6J("ngModel",e.mapForCombobox[t.id]),n.xp6(1),n.Q6J("ngForOf",e.getLocalizedOptions(t)),n.xp6(2),n.Oqu(n.lcZ(5,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")),n.xp6(2),n.Q6J("ngIf","true"===e.mapForCombobox[t.id])}}function J(t,e){if(1&t&&(n.TgZ(0,"div"),n._UZ(1,"input",44),n._uU(2),n.qZA()),2&t){const t=e.$implicit;n.xp6(2),n.hij(" ",t," ")}}function Q(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"form"),n.YNc(2,J,3,1,"div",36),n.qZA(),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(2),n.Q6J("ngForOf",e.getLocalizedOptions(t))}}function W(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"button",45),n._uU(2),n.qZA(),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(2),n.Oqu(e.getLocalizedLabel(t))}}function X(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"select",46),n.TgZ(2,"option",47),n._uU(3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"option",48),n._uU(6,"(GMT -12:00) Eniwetok, Kwajalein"),n.qZA(),n.TgZ(7,"option",49),n._uU(8,"(GMT -11:00) Midway Island, Samoa"),n.qZA(),n.TgZ(9,"option",50),n._uU(10,"(GMT -10:00) Hawaii"),n.qZA(),n.TgZ(11,"option",51),n._uU(12,"(GMT -9:30) Taiohae"),n.qZA(),n.TgZ(13,"option",52),n._uU(14,"(GMT -9:00) Alaska"),n.qZA(),n.TgZ(15,"option",53),n._uU(16,"(GMT -8:00) Pacific Time (US & Canada)"),n.qZA(),n.TgZ(17,"option",54),n._uU(18,"(GMT -7:00) Mountain Time (US & Canada)"),n.qZA(),n.TgZ(19,"option",55),n._uU(20,"(GMT -6:00) Central Time (US & Canada), Mexico City"),n.qZA(),n.TgZ(21,"option",56),n._uU(22,"(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima"),n.qZA(),n.TgZ(23,"option",57),n._uU(24,"(GMT -4:30) Caracas"),n.qZA(),n.TgZ(25,"option",58),n._uU(26,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),n.qZA(),n.TgZ(27,"option",59),n._uU(28,"(GMT -3:30) Newfoundland"),n.qZA(),n.TgZ(29,"option",60),n._uU(30,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),n.qZA(),n.TgZ(31,"option",61),n._uU(32,"(GMT -2:00) Mid-Atlantic"),n.qZA(),n.TgZ(33,"option",62),n._uU(34,"(GMT -1:00) Azores, Cape Verde Islands"),n.qZA(),n.TgZ(35,"option",63),n._uU(36,"(GMT) Western Europe Time, London, Lisbon, Casablanca"),n.qZA(),n.TgZ(37,"option",64),n._uU(38,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),n.qZA(),n.TgZ(39,"option",65),n._uU(40,"(GMT +2:00) Kaliningrad, South Africa"),n.qZA(),n.TgZ(41,"option",66),n._uU(42,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),n.qZA(),n.TgZ(43,"option",67),n._uU(44,"(GMT +3:30) Tehran"),n.qZA(),n.TgZ(45,"option",68),n._uU(46,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),n.qZA(),n.TgZ(47,"option",69),n._uU(48,"(GMT +4:30) Kabul"),n.qZA(),n.TgZ(49,"option",70),n._uU(50,"(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent"),n.qZA(),n.TgZ(51,"option",71),n._uU(52,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),n.qZA(),n.TgZ(53,"option",72),n._uU(54,"(GMT +5:45) Kathmandu, Pokhara"),n.qZA(),n.TgZ(55,"option",73),n._uU(56,"(GMT +6:00) Almaty, Dhaka, Colombo"),n.qZA(),n.TgZ(57,"option",74),n._uU(58,"(GMT +6:30) Yangon, Mandalay"),n.qZA(),n.TgZ(59,"option",75),n._uU(60,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),n.qZA(),n.TgZ(61,"option",76),n._uU(62,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),n.qZA(),n.TgZ(63,"option",77),n._uU(64,"(GMT +8:45) Eucla"),n.qZA(),n.TgZ(65,"option",78),n._uU(66,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),n.qZA(),n.TgZ(67,"option",79),n._uU(68,"(GMT +9:30) Adelaide, Darwin"),n.qZA(),n.TgZ(69,"option",80),n._uU(70,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),n.qZA(),n.TgZ(71,"option",81),n._uU(72,"(GMT +10:30) Lord Howe Island"),n.qZA(),n.TgZ(73,"option",82),n._uU(74,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),n.qZA(),n.TgZ(75,"option",83),n._uU(76,"(GMT +11:30) Norfolk Island"),n.qZA(),n.TgZ(77,"option",84),n._uU(78,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),n.qZA(),n.TgZ(79,"option",85),n._uU(80,"(GMT +12:45) Chatham Islands"),n.qZA(),n.TgZ(81,"option",86),n._uU(82,"(GMT +13:00) Apia, Nukualofa"),n.qZA(),n.TgZ(83,"option",87),n._uU(84,"(GMT +14:00) Line Islands, Tokelau"),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.xp6(3),n.Oqu(n.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")))}function tt(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"button",45),n._uU(2),n.qZA(),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(2),n.Oqu(e.getLocalizedLabel(t))}}function et(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"form"),n._UZ(2,"input",44),n._uU(3," example group1 "),n._UZ(4,"br"),n._UZ(5,"input",44),n._uU(6," example group2 "),n._UZ(7,"br"),n._UZ(8,"input",44),n._uU(9," example group3 "),n.qZA(),n.qZA())}function it(t,e){if(1&t&&(n.TgZ(0,"td",25),n.YNc(1,z,3,0,"div",29),n.YNc(2,Z,3,3,"div",31),n.YNc(3,B,3,0,"div",29),n.YNc(4,q,5,0,"div",29),n.YNc(5,U,5,4,"div",29),n.YNc(6,H,2,1,"div",29),n.YNc(7,j,3,1,"div",29),n.YNc(8,Y,2,0,"div",29),n.YNc(9,$,7,6,"div",29),n.YNc(10,Q,3,1,"div",29),n.YNc(11,W,3,1,"div",29),n.YNc(12,X,85,3,"div",29),n.YNc(13,tt,3,1,"div",29),n.YNc(14,et,10,0,"div",29),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf","TEXTFIELD"===t.type||"VALIDATED_EMAIL"===t.type||"USERNAME"===t.type),n.xp6(1),n.Q6J("ngIf","FROM_FEDERATION_HIDDEN"===t.type),n.xp6(1),n.Q6J("ngIf","FROM_FEDERATION_SHOW"===t.type),n.xp6(1),n.Q6J("ngIf","PASSWORD"===t.type),n.xp6(1),n.Q6J("ngIf","RADIO"===t.type),n.xp6(1),n.Q6J("ngIf","HEADING"===t.type||"HTML_COMMENT"===t.type),n.xp6(1),n.Q6J("ngIf","SELECTIONBOX"===t.type),n.xp6(1),n.Q6J("ngIf","TEXTAREA"===t.type),n.xp6(1),n.Q6J("ngIf","COMBOBOX"===t.type),n.xp6(1),n.Q6J("ngIf","CHECKBOX"===t.type),n.xp6(1),n.Q6J("ngIf","SUBMIT_BUTTON"===t.type),n.xp6(1),n.Q6J("ngIf","TIMEZONE"===t.type),n.xp6(1),n.Q6J("ngIf","AUTO_SUBMIT_BUTTON"===t.type),n.xp6(1),n.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===t.type)}}function nt(t,e){1&t&&n._UZ(0,"th",24)}function st(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",89),n.NdJ("click",function(){return n.CHM(t),n.oxw(3).openManagingGroups()}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon"),n._uU(3,"supervised_user_circle"),n.qZA(),n.qZA()}2&t&&n.s9C("matTooltip",n.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS"))}function ot(t,e){if(1&t&&(n.TgZ(0,"td",25),n.YNc(1,st,4,3,"button",88),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===t.type&&!t.forDelete)}}function rt(t,e){1&t&&n._UZ(0,"th",24)}function at(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",92),n.NdJ("click",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw(2).edit(e)}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon"),n._uU(3,"edit"),n.qZA(),n.qZA()}2&t&&n.s9C("matTooltip",n.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.EDIT"))}function ct(t,e){1&t&&(n.TgZ(0,"div",93),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MARK_DELETE")," "))}function lt(t,e){if(1&t&&(n.TgZ(0,"td",25),n.YNc(1,at,4,3,"button",90),n.YNc(2,ct,3,3,"div",91),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf",!t.forDelete),n.xp6(1),n.Q6J("ngIf",t.forDelete)}}function ut(t,e){1&t&&n._UZ(0,"th",24)}function ht(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",95),n.NdJ("click",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw(2).delete(e)}),n.ALo(1,"multiWordDataCy"),n.ALo(2,"translate"),n.TgZ(3,"mat-icon"),n._uU(4,"delete"),n.qZA(),n.qZA()}if(2&t){const t=n.oxw().$implicit;n.Q2q("data-cy","",n.lcZ(1,2,t.shortname),"-delete"),n.s9C("matTooltip",n.lcZ(2,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DELETE"))}}function dt(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",89),n.NdJ("click",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw(2).restore(e)}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon"),n._uU(3,"settings_backup_restore"),n.qZA(),n.qZA()}2&t&&n.s9C("matTooltip",n.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.REVERT_DELETE"))}function pt(t,e){if(1&t&&(n.TgZ(0,"td",25),n.YNc(1,ht,5,6,"button",94),n.YNc(2,dt,4,3,"button",88),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf",!t.forDelete),n.xp6(1),n.Q6J("ngIf",t.forDelete)}}function gt(t,e){1&t&&n._UZ(0,"tr",96)}function ft(t,e){if(1&t&&n._UZ(0,"tr",97),2&t){const t=e.$implicit,i=n.oxw(2);n.ekj("make-green",t.id<=0)("make-red",t.forDelete)("make-yellow",-1!==i.itemsChanged.indexOf(t.id)&&!t.forDelete&&t.id>0),n.Q6J("cdkDragData",t)}}function mt(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"div",4),n.TgZ(1,"div",5),n.TgZ(2,"div",6),n.TgZ(3,"table",7,8),n.NdJ("cdkDropListDropped",function(e){return n.CHM(t),n.oxw().drop(e)}),n.ynx(5,9),n.YNc(6,C,1,0,"th",10),n.YNc(7,E,4,0,"td",11),n.BQk(),n.ynx(8,12),n.YNc(9,S,3,3,"th",10),n.YNc(10,k,2,1,"td",11),n.BQk(),n.ynx(11,13),n.YNc(12,I,3,3,"th",10),n.YNc(13,x,3,3,"td",11),n.BQk(),n.ynx(14,14),n.YNc(15,R,3,3,"th",15),n.YNc(16,P,2,1,"td",16),n.BQk(),n.ynx(17,17),n.YNc(18,D,3,3,"th",15),n.YNc(19,L,2,1,"td",16),n.BQk(),n.ynx(20,18),n.YNc(21,N,3,3,"th",10),n.YNc(22,it,15,14,"td",11),n.BQk(),n.ynx(23,19),n.YNc(24,nt,1,0,"th",10),n.YNc(25,ot,2,1,"td",11),n.BQk(),n.ynx(26,20),n.YNc(27,rt,1,0,"th",10),n.YNc(28,lt,3,2,"td",11),n.BQk(),n.ynx(29,21),n.YNc(30,ut,1,0,"th",10),n.YNc(31,pt,3,2,"td",11),n.BQk(),n.YNc(32,gt,1,0,"tr",22),n.YNc(33,ft,1,7,"tr",23),n.qZA(),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=n.oxw();n.xp6(3),n.Q6J("cdkDropListDisabled",t.dragDisabled)("dataSource",t.dataSource),n.xp6(29),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns)}}function bt(t,e){1&t&&(n.TgZ(0,"app-alert",98),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM"),"\n"))}let _t=(()=>{class t{constructor(t,e,i,s){this.dialog=t,this.notificator=e,this.router=i,this.translate=s,this.applicationFormItems=[],this.displayedColumns=["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"],this.applicationFormItemsChange=new n.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}disabledHiddenDependency(t,e,i){let n="";if("IF_EMPTY"===e||"IF_PREFILLED"===e){const t=null===i?"":this.applicationFormItems.find(t=>t.id===i).shortname;n="IF_EMPTY"===e?`(${this.ifEmpty} ${t})`:`(${this.ifPrefilled} ${t})`}return n}disabledTooltip(t){let e;switch(t.disabled){case"ALWAYS":return this.alwaysDisabled;case"IF_EMPTY":return e=null===t.disabledDependencyItemId?"":this.applicationFormItems.find(e=>e.id===t.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${e} ${this.isEmpty}`;case"IF_PREFILLED":return e=null===t.disabledDependencyItemId?"":this.applicationFormItems.find(e=>e.id===t.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${e} ${this.isPrefilled}`}}hiddenTooltip(t){let e;switch(t.hidden){case"ALWAYS":return this.alwaysHidden;case"IF_EMPTY":return e=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(e=>e.id===t.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${e} ${this.isEmpty}`;case"IF_PREFILLED":return e=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(e=>e.id===t.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${e} ${this.isPrefilled}`}}edit(t){const e=(0,h.kZ)();e.width="600px",e.height="600px",e.data={voId:this.applicationForm.vo.id,group:this.applicationForm.group,applicationFormItem:t,theme:this.theme,allItems:this.applicationFormItems},this.dialog.open(u._,e).afterClosed().subscribe(e=>{e&&(this.itemsChanged.push(t.id),this.applicationFormItemsChange.emit())})}delete(t){const e=(0,h.kZ)();e.width="500px",this.dialog.open(c,e).afterClosed().subscribe(e=>{e&&(t.forDelete=!0,0===t.id&&(this.applicationFormItems.splice(this.applicationFormItems.indexOf(t),1),this.table.renderRows()),this.applicationFormItemsChange.emit())})}drop(t){this.dragDisabled=!0;const e=this.applicationFormItems.indexOf(t.item.data);(0,s.bA)(this.applicationFormItems,e,t.currentIndex),this.itemsChanged.push(this.applicationFormItems[t.currentIndex].id),this.applicationFormItemsChange.emit(),this.table.renderRows()}getLocalizedOptions(t){if(t.i18n[this.translate.getDefaultLang()]){const e=t.i18n[this.translate.getDefaultLang()].options;if(null!==e&&""!==e){const t=[];for(const i of e.split("|"))t.push(i.split("#")[1]);return t}}return[]}getLocalizedLabel(t){return t.i18n[this.translate.getDefaultLang()]?t.i18n[this.translate.getDefaultLang()].label:t.shortname}restore(t){t.forDelete=!1}openManagingGroups(){this.router.navigate(["/organizations",this.applicationForm.vo.id,"settings","applicationForm","manageGroups"])}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(o.uw),n.Y36(l.V6),n.Y36(d.F0),n.Y36(a.sK))},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-application-form-list"]],viewQuery:function(t,e){if(1&t&&n.Gf(v,5),2&t){let t;n.iGM(t=n.CRH())&&(e.table=t.first)}},inputs:{loading:"loading",applicationForm:"applicationForm",applicationFormItems:"applicationFormItems",theme:"theme",displayedColumns:"displayedColumns"},outputs:{applicationFormItemsChange:"applicationFormItemsChange"},features:[n.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"],["class","font-italic disabled",4,"ngIf"],["type","text"],[1,"font-italic","disabled"],["disabled",""],["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"],["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(t,e){1&t&&(n.YNc(0,T,1,0,"mat-spinner",0),n.YNc(1,mt,34,4,"div",1),n.YNc(2,bt,3,3,"app-alert",2)),2&t&&(n.Q6J("ngIf",e.loading),n.xp6(1),n.Q6J("ngIf",0!==e.applicationFormItems.length&&!e.loading),n.xp6(1),n.Q6J("ngIf",0===e.applicationFormItems.length&&!e.loading))},directives:[p.O5,g.$g,f.BZ,s.Wj,f.w1,f.fO,f.Dz,f.as,f.nj,f.ge,f.ev,r.lW,m.Hw,b.gM,_._Y,_.JL,_.F,p.sg,_.YN,_.Kr,_.EJ,_.JJ,_.On,f.XQ,f.Gk,s.Zt,w.w],pipes:[a.X$,A.c,y.R],styles:[".cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%], .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}"]}),t})()},29851:function(t,e,i){"use strict";i.d(e,{w:function(){return tt}});var n=i(65249),s=i(67033),o=i(84140),r=i(68416),a=i(31572),c=i(57629),l=i(82819),u=i(61511),h=i(84534),d=i(39571),p=i(67806),g=i(48160),f=i(22196);function m(t,e){1&t&&(a.TgZ(0,"th",26),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_ID")))}function b(t,e){if(1&t&&(a.TgZ(0,"td",27),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(t.id)}}function _(t,e){1&t&&(a.TgZ(0,"th",26),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_VO_ID")))}function w(t,e){if(1&t&&(a.TgZ(0,"td",27),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(t.vo.id)}}function A(t,e){1&t&&(a.TgZ(0,"th",26),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_VO_NAME")))}function y(t,e){if(1&t&&(a.TgZ(0,"td",27),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(t.vo.name)}}function v(t,e){1&t&&(a.TgZ(0,"th",26),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_GROUP_ID")))}function T(t,e){if(1&t&&(a.TgZ(0,"td",27),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(t.group?t.group.id:"")}}function C(t,e){1&t&&(a.TgZ(0,"th",26),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_GROUP_NAME")))}function E(t,e){if(1&t&&(a.TgZ(0,"td",27),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(t.group?t.group.name:"")}}function S(t,e){1&t&&(a.TgZ(0,"th",26),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_TYPE")))}function k(t,e){if(1&t&&(a.TgZ(0,"td",28),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(t.type)}}function I(t,e){1&t&&(a.TgZ(0,"th",26),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_STATE")))}function x(t,e){if(1&t&&(a.TgZ(0,"td",28),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(t.state)}}function R(t,e){1&t&&(a.TgZ(0,"th",26),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_EXTSOURCENAME")))}function O(t,e){if(1&t&&(a.TgZ(0,"td",28),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(t.extSourceName)}}function P(t,e){1&t&&(a.TgZ(0,"th",26),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_EXTSOURCETYPE")))}function D(t,e){if(1&t&&(a.TgZ(0,"td",28),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(t.extSourceType)}}function M(t,e){1&t&&(a.TgZ(0,"th",26),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_USER")))}function L(t,e){if(1&t&&(a.TgZ(0,"td",28),a._uU(1),a.ALo(2,"userFullName"),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.hij(" ",t.user?a.lcZ(2,1,t.user):"null"," ")}}function N(t,e){1&t&&(a.TgZ(0,"th",26),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_CREATED_BY")))}function z(t,e){if(1&t&&(a.TgZ(0,"td",28),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.hij(" ",t.createdBy.slice(t.createdBy.lastIndexOf("=")+1,t.createdBy.length)," ")}}function Z(t,e){1&t&&(a.TgZ(0,"th",26),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_CREATED_DATE")))}function B(t,e){if(1&t&&(a.TgZ(0,"td",28),a._uU(1),a.ALo(2,"date"),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(a.xi3(2,1,t.createdAt,"d.M.y"))}}function q(t,e){1&t&&(a.TgZ(0,"th",26),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_MODIFIED_BY")))}function F(t,e){if(1&t&&(a.TgZ(0,"td",28),a._uU(1),a.qZA()),2&t){const t=e.$implicit,i=a.oxw();a.xp6(1),a.Oqu(i.getFriendlyName(t.modifiedBy))}}function U(t,e){1&t&&(a.TgZ(0,"th",26),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_MODIFIED_AT")))}function H(t,e){if(1&t&&(a.TgZ(0,"td",28),a._uU(1),a.ALo(2,"date"),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(a.xi3(2,1,t.modifiedAt,"d.M.y"))}}function G(t,e){if(1&t&&(a.TgZ(0,"th",26),a._uU(1),a.qZA()),2&t){const t=a.oxw().$implicit;a.xp6(1),a.Oqu(t)}}function j(t,e){if(1&t&&(a.TgZ(0,"td",28),a._uU(1),a.qZA()),2&t){const t=e.$implicit,i=a.oxw().$implicit;a.xp6(1),a.Oqu(t[i])}}function Y(t,e){1&t&&(a.ynx(0,29),a.YNc(1,G,2,1,"th",4),a.YNc(2,j,2,1,"td",11),a.BQk()),2&t&&a.Q6J("matColumnDef",e.$implicit)}function K(t,e){1&t&&(a.TgZ(0,"th",26),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_FEDINFO")))}function V(t,e){if(1&t&&(a.TgZ(0,"td",28),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(t.fedInfo)}}function $(t,e){1&t&&a._UZ(0,"tr",30)}function J(t,e){if(1&t&&a._UZ(0,"tr",31),2&t){const t=e.$implicit,i=a.oxw();a.ekj("cursor-pointer",!i.disableRouting),a.Q6J("perunWebAppsMiddleClickRouterLink",i.selectApplication(t))("routerLink",i.selectApplication(t))}}function Q(t,e){1&t&&(a.TgZ(0,"app-alert",32),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"VO_DETAIL.APPLICATION.NO_APPLICATION_FOUND"),"\n"))}function W(t,e){1&t&&(a.TgZ(0,"app-alert",32),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function X(t,e){1&t&&a._UZ(0,"mat-spinner",33)}let tt=(()=>{class t{constructor(t,e,i){this.router=t,this.authResolver=e,this.registrarManager=i,this.applications=[],this.disableRouting=!1,this.displayedColumns=["id","voId","voName","groupId","groupName","type","state","extSourceName","extSourceType","user","createdBy","createdAt","modifiedBy","modifiedAt","fedInfo"],this.loading=!1,this.table=[],this.addedColumns=new Set,this.pageSizeOptions=o.f7}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.loading=!0,this.table=[],this.initialize(),this.getApplicationsData(0)}getExportDataForColumn(t,e){var i,n,s,r;switch(e){case"id":return t.id.toString();case"voId":return t.vo.id.toString();case"voName":return t.vo.name;case"groupId":return null!==(n=null===(i=t.group)||void 0===i?void 0:i.id.toString())&&void 0!==n?n:"";case"groupName":return null!==(r=null===(s=t.group)||void 0===s?void 0:s.name)&&void 0!==r?r:"";case"type":return t.type;case"fedInfo":return t.fedInfo;case"state":return t.state;case"extSourceName":return t.extSourceName;case"extSourceType":return t.extSourceType;case"user":return t.user?(0,o.bD)(t.user):"";case"createdBy":return t.createdBy;case"createdAt":return t.createdAt;case"modifiedBy":return t.modifiedBy;case"modifiedAt":return t.modifiedAt;default:return t[e]}}exportData(t){(0,o.O6)((0,o.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}getApplicationsData(t){if(this.applications.length===t)return void this.initialize();const e=this.applications[t],i={};i.id=e.id,i.vo=e.vo,i.group=e.group,i.type=e.type,i.fedInfo=e.fedInfo,i.state=e.state,i.extSourceName=e.extSourceName,i.extSourceType=e.extSourceType,i.extSourceLoa=e.extSourceLoa,i.user=e.user,i.createdBy=e.createdBy,i.createdAt=e.createdAt,i.modifiedBy=e.modifiedBy,i.modifiedAt=e.modifiedAt,this.registrarManager.getApplicationDataById(e.id).subscribe(e=>{for(const t of e)null!==t.formItem.i18n.en.label&&0!==t.formItem.i18n.en.label.length?(i[t.formItem.i18n.en.label]=t.value,this.addedColumns.add(t.formItem.i18n.en.label)):(i[t.shortname]=t.value,this.addedColumns.add(t.shortname));this.table.push(i),this.getApplicationsData(t+1)})}initialize(){for(const t of this.addedColumns)this.displayedColumns.push(t);this.dataSource=new s.by(this.table),this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue.trim().toLowerCase(),this.dataSource.paginator&&this.dataSource.paginator.firstPage(),this.loading=!1}getFriendlyName(t){const e=t.lastIndexOf("/CN=");if(-1!==e){const i=t.slice(e+4,t.length).replace("/unstructuredName="," ");return-1!==i.lastIndexOf("\\")?t.slice(t.lastIndexOf("=")+1,t.length):i}return t}selectApplication(t){return this.disableRouting?null:this.group?["/organizations",t.vo.id,"groups",this.group.id,"applications",t.id]:this.member?["/organizations",t.vo.id,"members",this.member.id,"applications",t.id]:["/organizations",t.vo.id,"applications",t.id]}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(c.F0),a.Y36(r.x4),a.Y36(n.tk))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-perun-web-apps-application-list-details"]],viewQuery:function(t,e){if(1&t&&a.Gf(o.l9,7),2&t){let t;a.iGM(t=a.CRH())&&(e.child=t.first)}},inputs:{applications:"applications",group:"group",member:"member",filterValue:"filterValue",tableId:"tableId",disableRouting:"disableRouting"},features:[a.TTD],decls:54,vars:13,consts:[[1,"card","mt-2","w-100",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","voId"],["matColumnDef","voName"],["matColumnDef","groupId"],["matColumnDef","groupName"],["matColumnDef","type"],["mat-cell","",4,"matCellDef"],["matColumnDef","state"],["matColumnDef","extSourceName"],["matColumnDef","extSourceType"],["matColumnDef","user"],["matColumnDef","createdBy"],["matColumnDef","createdAt"],["matColumnDef","modifiedBy"],["matColumnDef","modifiedAt"],[3,"matColumnDef",4,"ngFor","ngForOf"],["matColumnDef","fedInfo"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"matColumnDef"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(a.TgZ(0,"div",0),a.TgZ(1,"perun-web-apps-table-wrapper",1),a.NdJ("exportData",function(t){return e.exportData(t)}),a.TgZ(2,"table",2),a.ynx(3,3),a.YNc(4,m,3,3,"th",4),a.YNc(5,b,2,1,"td",5),a.BQk(),a.ynx(6,6),a.YNc(7,_,3,3,"th",4),a.YNc(8,w,2,1,"td",5),a.BQk(),a.ynx(9,7),a.YNc(10,A,3,3,"th",4),a.YNc(11,y,2,1,"td",5),a.BQk(),a.ynx(12,8),a.YNc(13,v,3,3,"th",4),a.YNc(14,T,2,1,"td",5),a.BQk(),a.ynx(15,9),a.YNc(16,C,3,3,"th",4),a.YNc(17,E,2,1,"td",5),a.BQk(),a.ynx(18,10),a.YNc(19,S,3,3,"th",4),a.YNc(20,k,2,1,"td",11),a.BQk(),a.ynx(21,12),a.YNc(22,I,3,3,"th",4),a.YNc(23,x,2,1,"td",11),a.BQk(),a.ynx(24,13),a.YNc(25,R,3,3,"th",4),a.YNc(26,O,2,1,"td",11),a.BQk(),a.ynx(27,14),a.YNc(28,P,3,3,"th",4),a.YNc(29,D,2,1,"td",11),a.BQk(),a.ynx(30,15),a.YNc(31,M,3,3,"th",4),a.YNc(32,L,3,3,"td",11),a.BQk(),a.ynx(33,16),a.YNc(34,N,3,3,"th",4),a.YNc(35,z,2,1,"td",11),a.BQk(),a.ynx(36,17),a.YNc(37,Z,3,3,"th",4),a.YNc(38,B,3,4,"td",11),a.BQk(),a.ynx(39,18),a.YNc(40,q,3,3,"th",4),a.YNc(41,F,2,1,"td",11),a.BQk(),a.ynx(42,19),a.YNc(43,U,3,3,"th",4),a.YNc(44,H,3,4,"td",11),a.BQk(),a.YNc(45,Y,3,1,"ng-container",20),a.ynx(46,21),a.YNc(47,K,3,3,"th",4),a.YNc(48,V,2,1,"td",11),a.BQk(),a.YNc(49,$,1,0,"tr",22),a.YNc(50,J,1,4,"tr",23),a.qZA(),a.qZA(),a.qZA(),a.YNc(51,Q,3,3,"app-alert",24),a.YNc(52,W,3,3,"app-alert",24),a.YNc(53,X,1,0,"mat-spinner",25)),2&t&&(a.ekj("hide-table",e.loading),a.Q6J("hidden",0===e.table.length||!!e.dataSource&&0===e.dataSource.filteredData.length),a.xp6(1),a.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),a.xp6(1),a.Q6J("dataSource",e.dataSource),a.xp6(43),a.Q6J("ngForOf",e.addedColumns),a.xp6(4),a.Q6J("matHeaderRowDef",e.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",e.displayedColumns),a.xp6(1),a.Q6J("ngIf",0===e.dataSource.data.length),a.xp6(1),a.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.table.length),a.xp6(1),a.Q6J("ngIf",e.loading))},directives:[l.l,s.BZ,s.w1,s.fO,s.Dz,u.sg,s.as,s.nj,u.O5,s.ge,s.ev,s.XQ,s.Gk,h.YH,c.rH,d.w,p.$g],pipes:[g.X$,f.d,u.uU],styles:[".mat-row[_ngcontent-%COMP%]{height:auto}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%], mat-cell[_ngcontent-%COMP%], mat-header-cell[_ngcontent-%COMP%]{padding:8px!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})()},21548:function(t,e,i){"use strict";i.d(e,{M:function(){return H}});var n=i(58623),s=i(67033),o=i(84140),r=i(68416),a=i(31572),c=i(82819),l=i(61511),u=i(43691),h=i(36922),d=i(84534),p=i(57629),g=i(39571),f=i(48160),m=i(84650),b=i(22196);function _(t,e){1&t&&(a.TgZ(0,"th",16),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_ID")))}function w(t,e){if(1&t&&(a.TgZ(0,"td",17),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(t.id)}}function A(t,e){1&t&&(a.TgZ(0,"th",16),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_CREATED_DATE")))}function y(t,e){if(1&t&&(a.TgZ(0,"td",18),a._uU(1),a.ALo(2,"date"),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(a.xi3(2,1,t.createdAt,"d.M.y"))}}function v(t,e){1&t&&(a.TgZ(0,"th",16),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_TYPE")))}function T(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"mat-icon",20),a._uU(2,"arrow_right_alt"),a.qZA(),a.qZA())}function C(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"mat-icon",21),a._uU(2,"restore"),a.qZA(),a.qZA())}function E(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"mat-icon",22),a._uU(2,"nat"),a.qZA(),a.qZA())}function S(t,e){if(1&t&&(a.TgZ(0,"td",18),a.YNc(1,T,3,0,"div",19),a.YNc(2,C,3,0,"div",19),a.YNc(3,E,3,0,"div",19),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Q6J("ngIf","INITIAL"===t.type),a.xp6(1),a.Q6J("ngIf","EXTENSION"===t.type),a.xp6(1),a.Q6J("ngIf","EMBEDDED"===t.type)}}function k(t,e){1&t&&(a.TgZ(0,"th",16),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_STATE")))}function I(t,e){if(1&t&&(a.TgZ(0,"td",18),a._UZ(1,"span",23),a.ALo(2,"applicationState"),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Q6J("outerHTML",a.lcZ(2,1,t.state),a.oJD)}}function x(t,e){1&t&&(a.TgZ(0,"th",16),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_SUBMITTED_BY")))}function R(t,e){if(1&t&&(a.TgZ(0,"div"),a._uU(1),a.qZA()),2&t){const t=a.oxw().$implicit;a.xp6(1),a.hij(" ",t.createdBy.slice(t.createdBy.lastIndexOf("=")+1,t.createdBy.length)," ")}}function O(t,e){if(1&t&&(a._uU(0),a.ALo(1,"userFullName")),2&t){const t=a.oxw().$implicit;a.hij(" ",a.lcZ(1,1,t.user)," ")}}function P(t,e){if(1&t&&(a.TgZ(0,"td",18),a.YNc(1,R,2,1,"div",24),a.YNc(2,O,2,3,"ng-template",null,25,a.W1O),a.qZA()),2&t){const t=e.$implicit,i=a.MAs(3);a.xp6(1),a.Q6J("ngIf",null===t.user)("ngIfElse",i)}}function D(t,e){1&t&&(a.TgZ(0,"th",16),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_GROUP_NAME")))}function M(t,e){1&t&&(a.TgZ(0,"div",28),a._uU(1," - "),a.qZA())}function L(t,e){if(1&t&&a._uU(0),2&t){const t=a.oxw().$implicit;a.hij(" ",t.group.name," ")}}function N(t,e){if(1&t&&(a.TgZ(0,"td",18),a.YNc(1,M,2,0,"div",26),a.YNc(2,L,1,1,"ng-template",null,27,a.W1O),a.qZA()),2&t){const t=e.$implicit,i=a.MAs(3);a.xp6(1),a.Q6J("ngIf",null===t.group)("ngIfElse",i)}}function z(t,e){1&t&&(a.TgZ(0,"th",16),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_MODIFIED_BY")))}function Z(t,e){if(1&t&&(a.TgZ(0,"td",18),a._uU(1),a.qZA()),2&t){const t=e.$implicit,i=a.oxw();a.xp6(1),a.Oqu(i.getFriendlyName(t.modifiedBy))}}function B(t,e){1&t&&a._UZ(0,"tr",29)}function q(t,e){if(1&t&&a._UZ(0,"tr",30),2&t){const t=e.$implicit,i=a.oxw();a.ekj("cursor-pointer",!i.disableRouting),a.Q6J("perunWebAppsMiddleClickRouterLink",i.selectApplication(t))("routerLink",i.selectApplication(t))}}function F(t,e){1&t&&(a.TgZ(0,"app-alert",31),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"VO_DETAIL.APPLICATION.NO_APPLICATION_FOUND"),"\n"))}function U(t,e){1&t&&(a.TgZ(0,"app-alert",31),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let H=(()=>{class t{constructor(t){this.authResolver=t,this.applications=[],this.displayedColumns=[],this.disableRouting=!1,this.pageSizeOptions=o.f7}set matSort(t){this.sort=t}ngAfterViewInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t))}ngOnChanges(){this.setDataSource()}getSortDataForColumn(t,e,i){var n;switch(e){case"id":return t.id.toString();case"createdAt":return t.createdAt;case"type":return t.type;case"state":return t.state;case"user":return t.user?t.user.lastName?t.user.lastName:null!==(n=t.user.firstName)&&void 0!==n?n:"":t.createdBy.slice(t.createdBy.lastIndexOf("=")+1,t.createdBy.length);case"group":return t.group?t.group.name:"";case"modifiedBy":return i.parseModifiedBy(t);default:return""}}getDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"createdAt":return t.createdAt;case"type":return t.type;case"state":return t.state;case"user":return t.user?(0,o.bD)(t.user):t.createdBy.slice(t.createdBy.lastIndexOf("=")+1,t.createdBy.length);case"group":return t.group?t.group.name:"";case"modifiedBy":return i.parseModifiedBy(t);default:return""}}parseModifiedBy(t){const e=t.modifiedBy.lastIndexOf("/CN=");if(-1!==e){const i=t.modifiedBy.slice(e+4,t.modifiedBy.length).replace("/unstructuredName="," ").toLowerCase();return-1!==i.lastIndexOf("\\")?t.modifiedBy.slice(t.modifiedBy.lastIndexOf("=")+1,t.modifiedBy.length):i}return t.modifiedBy.toLowerCase()}exportData(t){(0,o.O6)((0,o.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource||(this.dataSource=new s.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(t,e)=>(0,o.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,o.pR)(t,e,this.getSortDataForColumn,this)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.applications}getFriendlyName(t){const e=t.lastIndexOf("/CN=");if(-1!==e){const i=t.slice(e+4,t.length).replace("/unstructuredName="," ");return-1!==i.lastIndexOf("\\")?t.slice(t.lastIndexOf("=")+1,t.length):i}return t}selectApplication(t){return this.disableRouting?null:this.group?["/organizations",t.vo.id,"groups",this.group.id,"applications",t.id]:this.member?["/organizations",t.vo.id,"members",this.member.id,"applications",t.id]:["/organizations",t.vo.id,"applications",t.id]}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(r.x4))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-applications-list"]],viewQuery:function(t,e){if(1&t&&(a.Gf(n.YE,7),a.Gf(o.l9,7)),2&t){let t;a.iGM(t=a.CRH())&&(e.matSort=t.first),a.iGM(t=a.CRH())&&(e.child=t.first)}},inputs:{applications:"applications",group:"group",member:"member",displayedColumns:"displayedColumns",filterValue:"filterValue",tableId:"tableId",disableRouting:"disableRouting"},features:[a.TTD],decls:28,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportData"],["mat-table","","matSort","","matSortActive","createdAt","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","createdAt"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","state"],["matColumnDef","user"],["matColumnDef","group"],["matColumnDef","modifiedBy"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[4,"ngIf"],["matTooltip","Initial","matTooltipPosition","above"],["matTooltip","Extension","matTooltipPosition","above"],["matTooltip","Embedded","matTooltipPosition","above"],[3,"outerHTML"],[4,"ngIf","ngIfElse"],["name",""],["class","font-italic text-muted",4,"ngIf","ngIfElse"],["groupName",""],[1,"font-italic","text-muted"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(t,e){1&t&&(a.TgZ(0,"div",0),a.TgZ(1,"perun-web-apps-table-wrapper",1),a.NdJ("exportData",function(t){return e.exportData(t)}),a.TgZ(2,"table",2),a.ynx(3,3),a.YNc(4,_,3,3,"th",4),a.YNc(5,w,2,1,"td",5),a.BQk(),a.ynx(6,6),a.YNc(7,A,3,3,"th",4),a.YNc(8,y,3,4,"td",7),a.BQk(),a.ynx(9,8),a.YNc(10,v,3,3,"th",4),a.YNc(11,S,4,3,"td",7),a.BQk(),a.ynx(12,9),a.YNc(13,k,3,3,"th",4),a.YNc(14,I,3,3,"td",7),a.BQk(),a.ynx(15,10),a.YNc(16,x,3,3,"th",4),a.YNc(17,P,4,2,"td",7),a.BQk(),a.ynx(18,11),a.YNc(19,D,3,3,"th",4),a.YNc(20,N,4,2,"td",7),a.BQk(),a.ynx(21,12),a.YNc(22,z,3,3,"th",4),a.YNc(23,Z,2,1,"td",7),a.BQk(),a.YNc(24,B,1,0,"tr",13),a.YNc(25,q,1,4,"tr",14),a.qZA(),a.qZA(),a.qZA(),a.YNc(26,F,3,3,"app-alert",15),a.YNc(27,U,3,3,"app-alert",15)),2&t&&(a.Q6J("hidden",0===e.applications.length||!e.dataSource||0===e.dataSource.filteredData.length),a.xp6(1),a.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("tableId",e.tableId),a.xp6(1),a.Q6J("dataSource",e.dataSource),a.xp6(22),a.Q6J("matHeaderRowDef",e.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",e.displayedColumns),a.xp6(1),a.Q6J("ngIf",0===e.applications.length),a.xp6(1),a.Q6J("ngIf",!!e.dataSource&&0===e.dataSource.filteredData.length&&0!==e.applications.length))},directives:[c.l,s.BZ,n.YE,s.w1,s.fO,s.Dz,s.as,s.nj,l.O5,s.ge,n.nU,s.ev,u.Hw,h.gM,s.XQ,s.Gk,d.YH,p.rH,g.w],pipes:[f.X$,l.uU,m.h,b.d],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})()},62284:function(t,e,i){"use strict";i.d(e,{W:function(){return S}});var n=i(65249),s=i(60611),o=i(68416),r=i(16073),a=i(61511),c=i(31572),l=i(59403),u=i(66283),h=i(4786),d=i(71522),p=i(91058),g=i(51613),f=i(15980),m=i(67806),b=i(21548),_=i(29851),w=i(48160);function A(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",15),c.NdJ("click",function(){return c.CHM(t),c.oxw().showAllDetails=!0}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function y(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",15),c.NdJ("click",function(){return c.CHM(t),c.oxw().showAllDetails=!1}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}function v(t,e){1&t&&c._UZ(0,"mat-spinner",16)}function T(t,e){if(1&t&&c._UZ(0,"app-applications-list",19),2&t){const t=c.oxw(2);c.Q6J("tableId",t.tableId)("disableRouting",!t.routeAuth)("filterValue",t.filterValue)("applications",t.applications)("displayedColumns",t.displayedColumns)("group",t.group)}}function C(t,e){if(1&t&&c._UZ(0,"app-perun-web-apps-application-list-details",20),2&t){const t=c.oxw(2);c.Q6J("tableId",t.detailTableId)("disableRouting",!t.routeAuth)("filterValue",t.filterValue)("applications",t.applications)("group",t.group)}}function E(t,e){if(1&t&&(c.TgZ(0,"div"),c.YNc(1,T,1,6,"app-applications-list",17),c.YNc(2,C,1,5,"app-perun-web-apps-application-list-details",18),c.qZA()),2&t){const t=c.oxw();c.xp6(1),c.Q6J("ngIf",!t.showAllDetails),c.xp6(1),c.Q6J("ngIf",t.showAllDetails)}}let S=(()=>{class t{constructor(t,e,i){this.registrarManager=t,this.guiAuthResolver=e,this.entityStorageService=i,this.state="pending",this.loading=!1,this.applications=[],this.displayedColumns=["id","createdAt","type","state","user","modifiedBy"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=s.Af,this.tableId=s.gB,this.routeAuth=!1}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.startDate=new r.NI((0,a.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new r.NI((0,a.p6)(new Date,"yyyy-MM-dd","en-GB")),this.setData(["NEW","VERIFIED"])}setAuth(){0!==this.applications.length&&(this.routeAuth=this.guiAuthResolver.isAuthorized("group-getApplicationById_int_policy",[this.group]))}setData(t){this.registrarManager.getApplicationsForGroup(this.group.id,t,(0,a.p6)(this.startDate.value,"yyyy-MM-dd","en-GB"),(0,a.p6)(this.endDate.value,"yyyy-MM-dd","en-GB")).subscribe(t=>{this.applications=t,this.setAuth(),this.loading=!1})}select(){switch(this.loading=!0,this.state){case"approved":this.setData(["APPROVED"]);break;case"rejected":this.setData(["REJECTED"]);break;case"wfmv":this.setData(["NEW"]);break;case"submited":this.setData(["VERIFIED"]);break;case"pending":this.setData(["NEW","VERIFIED"]);break;case"all":this.setData(null)}}yearAgo(){const t=new Date,e=t.getFullYear()-1,i=t.getMonth(),n=t.getDate();return new Date(e,i,n)}applyFilter(t){this.filterValue=t}}return t.id="GroupApplicationsComponent",t.\u0275fac=function(e){return new(e||t)(c.Y36(n.tk),c.Y36(o.x4),c.Y36(o.fb))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-group-applications"]],hostVars:2,hostBindings:function(t,e){2&t&&c.ekj("router-component",e.true)},decls:34,vars:32,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-stroked-button","","class","mr-2",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,"startDate","endDate","datePicker"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"tableId","disableRouting","filterValue","applications","displayedColumns","group",4,"ngIf"],[3,"tableId","disableRouting","filterValue","applications","group",4,"ngIf"],[3,"tableId","disableRouting","filterValue","applications","displayedColumns","group"],[3,"tableId","disableRouting","filterValue","applications","group"]],template:function(t,e){1&t&&(c.TgZ(0,"h1",0),c._uU(1),c.ALo(2,"translate"),c.qZA(),c.TgZ(3,"div"),c.TgZ(4,"perun-web-apps-refresh-button",1),c.NdJ("refresh",function(){return e.select()}),c.qZA(),c.YNc(5,A,3,3,"button",2),c.YNc(6,y,3,3,"button",2),c.TgZ(7,"mat-form-field",3),c.TgZ(8,"mat-label"),c._uU(9),c.ALo(10,"translate"),c.qZA(),c.TgZ(11,"mat-select",4),c.NdJ("selectionChange",function(){return e.select()})("valueChange",function(t){return e.state=t}),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.qZA(),c.qZA(),c.TgZ(30,"perun-web-apps-debounce-filter",11),c.NdJ("filter",function(t){return e.applyFilter(t)}),c.qZA(),c.TgZ(31,"perun-web-apps-date-range",12),c.NdJ("datePicker",function(){return e.select()}),c.qZA(),c.qZA(),c.YNc(32,v,1,0,"mat-spinner",13),c.YNc(33,E,3,2,"div",14)),2&t&&(c.xp6(1),c.Oqu(c.lcZ(2,16,"VO_DETAIL.APPLICATION.TITLE")),c.xp6(4),c.Q6J("ngIf",!e.showAllDetails),c.xp6(1),c.Q6J("ngIf",e.showAllDetails),c.xp6(3),c.Oqu(c.lcZ(10,18,"VO_DETAIL.APPLICATION.TABLE_STATE")),c.xp6(2),c.Q6J("value",e.state),c.xp6(2),c.Oqu(c.lcZ(14,20,"VO_DETAIL.APPLICATION.SELECTION_ALL")),c.xp6(3),c.Oqu(c.lcZ(17,22,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),c.xp6(3),c.Oqu(c.lcZ(20,24,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),c.xp6(3),c.Oqu(c.lcZ(23,26,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),c.xp6(3),c.Oqu(c.lcZ(26,28,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),c.xp6(3),c.Oqu(c.lcZ(29,30,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),c.xp6(2),c.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),c.xp6(1),c.Q6J("startDate",e.startDate)("endDate",e.endDate),c.xp6(1),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading))},directives:[l.t,a.O5,u.KE,u.hX,h.gD,d.ey,p.P,g.S,f.lW,m.$g,b.M,_.w],pipes:[w.X$],styles:[""]}),t})()},11930:function(t,e,i){"use strict";i.d(e,{y:function(){return N}});var n=i(4230),s=i(68416),o=i(67004),r=i(85613),a=i(4374),c=i(65249),l=i(60611),u=i(84140),h=i(88690),d=i(16073),p=i(31572),g=i(84608),f=i(61511),m=i(59403),b=i(36922),_=i(66283),w=i(4786),A=i(91058),y=i(39571),v=i(15980),T=i(71522),C=i(67806),E=i(91779),S=i(48160),k=i(5725);function I(t,e){1&t&&(p.TgZ(0,"app-alert",14),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"GROUP_DETAIL.MEMBERS.ACTIONS_DISABLED"),"\n"))}function x(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",15),p.NdJ("click",function(){return p.CHM(t),p.oxw().onAddMember()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",t.synchEnabled||t.blockGroupManualMemberAdding),p.xp6(1),p.hij(" ",p.lcZ(2,2,"GROUP_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function R(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",15),p.NdJ("click",function(){return p.CHM(t),p.oxw().onInviteMember()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",t.synchEnabled),p.xp6(1),p.hij(" ",p.lcZ(2,2,"GROUP_DETAIL.MEMBERS.INVITE_MEMBER")," ")}}function O(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",16),p.NdJ("click",function(){return p.CHM(t),p.oxw().onRemoveMembers()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",t.selection.isEmpty()||t.synchEnabled),p.xp6(1),p.hij(" ",p.lcZ(2,2,"GROUP_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function P(t,e){if(1&t&&(p.TgZ(0,"mat-option",17),p._uU(1),p.ALo(2,"memberStatus"),p.qZA()),2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.Oqu(p.lcZ(2,2,t))}}function D(t,e){if(1&t&&(p.TgZ(0,"mat-option",17),p._uU(1),p.ALo(2,"memberStatus"),p.qZA()),2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.Oqu(p.lcZ(2,2,t))}}function M(t,e){1&t&&p._UZ(0,"mat-spinner",18)}function L(t,e){if(1&t&&p._UZ(0,"perun-web-apps-members-dynamic-list",19),2&t){const t=p.oxw();p.Q6J("voId",t.group.voId)("groupId",t.group.id)("tableId",t.tableId)("selection",t.selection)("displayedColumns",t.displayedColumns)("updateTable",t.updateTable)("searchString",t.searchString)("selectedStatuses",t.selectedStatuses)("selectedGroupStatuses",t.selectedGroupStatuses)("attrNames",t.memberAttrNames)}}let N=(()=>{class t{constructor(t,e,i,n,s,r,a,c){this.groupService=t,this.dialog=e,this.guiAuthResolver=i,this.storeService=n,this.attributesManager=s,this.apiRequest=r,this.notificator=a,this.entityStorageService=c,this.synchEnabled=!1,this.updateTable=!1,this.loading=!1,this.tableId=l.dI,this.memberAttrNames=[o.r.MEMBER_DEF_ORGANIZATION,o.r.MEMBER_DEF_MAIL,o.r.USER_DEF_ORGANIZATION,o.r.USER_DEF_PREFERRED_MAIL,o.r.MEMBER_DEF_EXPIRATION,o.r.MEMBER_DEF_GROUP_EXPIRATION],this.groupAttrNames=[o.r.GROUP_SYNC_ENABLED,o.r.GROUP_LAST_SYNC_STATE,o.r.GROUP_LAST_SYNC_TIMESTAMP,o.r.GROUP_STRUCTURE_SYNC_ENABLED,o.r.GROUP_LAST_STRUCTURE_SYNC_STATE,o.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP],this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.statuses=new d.NI,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=["VALID","INVALID"],this.groupStatuses=new d.NI,this.groupStatusList=["VALID","EXPIRED"],this.selectedGroupStatuses=["VALID"]}ngOnInit(){this.loading=!0,this.selection=new n.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,this.group.id).then(()=>this.loadPage(this.group.id))}loadPage(t){this.groupService.getRichGroupByIdWithAttributesByNames(t,this.groupAttrNames).subscribe(t=>{this.group=t,this.synchEnabled=this.isSynchronized(),this.loading=!1})}isSynchronized(){return this.group.attributes.some(t=>"synchronizationEnabled"===t.friendlyName&&null!==t.value&&"true"===t.value.toString())}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(t){this.searchString=t,this.updateTable=!this.updateTable}onAddMember(){const t=(0,u.kZ)();t.width="1000px",t.data={voId:this.group.voId,group:this.group,entityId:this.group.id,manualAddingBlocked:this.blockManualMemberAdding,theme:"group-theme",type:"group"},this.dialog.open(r.o,t).afterClosed().subscribe(t=>{t&&(this.selection.clear(),this.updateTable=!this.updateTable)})}onRemoveMembers(){const t=(0,u.kZ)();t.width="450px",t.data={groupId:this.group.id,members:this.selection.selected,theme:"group-theme"},this.dialog.open(a.X,t).afterClosed().subscribe(t=>{t&&(this.selection.clear(),this.updateTable=!this.updateTable)})}onInviteMember(){const t=(0,u.kZ)();t.width="650px",t.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(h.R,t)}displaySelectedStatuses(){return this.selectedStatuses.length===this.statusList.length?"ALL":this.statuses.value?`${this.statuses.value[0]} ${this.statuses.value.length>1?"(+"+(this.statuses.value.length-1)+" "+(2===this.statuses.value.length?"other)":"others)"):""}`:""}displaySelectedGroupStatuses(){return this.selectedGroupStatuses.length===this.groupStatusList.length?"ALL":`${this.groupStatuses.value[0]}`}isManualAddingBlocked(t,e){return new Promise(i=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName(t,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe(t=>{this.blockManualMemberAdding=null!==t.value,this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(e,"urn:perun:group:attribute-def:def:blockManualMemberAdding").subscribe(t=>{this.blockGroupManualMemberAdding=null!==t.value,i()},t=>{"PrivilegeException"!==t.error.name&&this.notificator.showError(t),i()})},t=>{"PrivilegeException"!==t.error.name&&this.notificator.showError(t),i()})})}changeVoStatuses(){this.selectedStatuses=this.statuses.value}changeGroupStatuses(){this.selectedGroupStatuses=this.groupStatuses.value}}return t.id="GroupMembersComponent",t.\u0275fac=function(e){return new(e||t)(p.Y36(c.ff),p.Y36(g.uw),p.Y36(s.x4),p.Y36(s.d6),p.Y36(c.H8),p.Y36(s.F5),p.Y36(s.V6),p.Y36(s.fb))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-group-members"]],hostVars:2,hostBindings:function(t,e){2&t&&p.ekj("router-component",e.true)},decls:38,vars:45,consts:[[1,"page-subtitle"],["alert_type","warn",4,"ngIf"],[1,"align-elements"],[3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],[3,"matTooltip","matTooltipDisabled"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","warn","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,"voId","groupId","tableId","selection","displayedColumns","updateTable","searchString","selectedStatuses","selectedGroupStatuses","attrNames",4,"ngIf"],["alert_type","warn"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"group-theme",3,"value"],[1,"ml-auto","mr-auto"],[3,"voId","groupId","tableId","selection","displayedColumns","updateTable","searchString","selectedStatuses","selectedGroupStatuses","attrNames"]],template:function(t,e){1&t&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.YNc(3,I,3,3,"app-alert",1),p.TgZ(4,"div",2),p.TgZ(5,"perun-web-apps-refresh-button",3),p.NdJ("click",function(){return e.updateTable=!e.updateTable}),p.qZA(),p.TgZ(6,"span",4),p.ALo(7,"translate"),p.TgZ(8,"div",5),p.ALo(9,"translate"),p.YNc(10,x,3,4,"button",6),p.qZA(),p.qZA(),p.TgZ(11,"span",4),p.ALo(12,"translate"),p.YNc(13,R,3,4,"button",6),p.qZA(),p.TgZ(14,"span",4),p.ALo(15,"translate"),p.YNc(16,O,3,4,"button",7),p.qZA(),p.TgZ(17,"mat-form-field",8),p.TgZ(18,"mat-label"),p._uU(19),p.ALo(20,"translate"),p.qZA(),p.TgZ(21,"mat-select",9),p.NdJ("closed",function(){return e.changeVoStatuses()}),p.TgZ(22,"mat-select-trigger"),p._uU(23),p.ALo(24,"memberStatus"),p.qZA(),p.YNc(25,P,3,4,"mat-option",10),p.qZA(),p.qZA(),p.TgZ(26,"mat-form-field",8),p.TgZ(27,"mat-label"),p._uU(28),p.ALo(29,"translate"),p.qZA(),p.TgZ(30,"mat-select",9),p.NdJ("closed",function(){return e.changeGroupStatuses()}),p.TgZ(31,"mat-select-trigger"),p._uU(32),p.ALo(33,"memberStatus"),p.qZA(),p.YNc(34,D,3,4,"mat-option",10),p.qZA(),p.qZA(),p.TgZ(35,"perun-web-apps-debounce-filter",11),p.NdJ("filter",function(t){return e.onSearchByString(t)}),p.qZA(),p.qZA(),p.YNc(36,M,1,0,"mat-spinner",12),p.YNc(37,L,1,10,"perun-web-apps-members-dynamic-list",13)),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,27,"GROUP_DETAIL.MEMBERS.TITLE")),p.xp6(2),p.Q6J("ngIf",e.synchEnabled),p.xp6(3),p.s9C("matTooltip",p.lcZ(7,29,"GROUP_DETAIL.MEMBERS.SYNCHRONIZED")),p.Q6J("matTooltipDisabled",!e.synchEnabled)("matTooltipPosition","above"),p.xp6(2),p.s9C("matTooltip",p.lcZ(9,31,"GROUP_DETAIL.MEMBERS.ADD_MEMBER_DISABLED")),p.Q6J("matTooltipDisabled",!e.blockGroupManualMemberAdding),p.xp6(2),p.Q6J("ngIf",e.addAuth),p.xp6(1),p.s9C("matTooltip",p.lcZ(12,33,"GROUP_DETAIL.MEMBERS.SYNCHRONIZED")),p.Q6J("matTooltipDisabled",!e.synchEnabled)("matTooltipPosition","above"),p.xp6(2),p.Q6J("ngIf",e.inviteAuth),p.xp6(1),p.s9C("matTooltip",p.lcZ(15,35,"GROUP_DETAIL.MEMBERS.SYNCHRONIZED")),p.Q6J("matTooltipDisabled",!e.synchEnabled)("matTooltipPosition","above"),p.xp6(2),p.Q6J("ngIf",e.removeAuth),p.xp6(3),p.Oqu(p.lcZ(20,37,"GROUP_DETAIL.MEMBERS.FILTER_STATUS")),p.xp6(2),p.Q6J("formControl",e.statuses),p.xp6(2),p.hij(" ",p.lcZ(24,39,e.displaySelectedStatuses())," "),p.xp6(2),p.Q6J("ngForOf",e.statusList),p.xp6(3),p.Oqu(p.lcZ(29,41,"GROUP_DETAIL.MEMBERS.FILTER_GROUP_STATUS")),p.xp6(2),p.Q6J("formControl",e.groupStatuses),p.xp6(2),p.hij(" ",p.lcZ(33,43,e.displaySelectedGroupStatuses())," "),p.xp6(2),p.Q6J("ngForOf",e.groupStatusList),p.xp6(1),p.Q6J("placeholder","GROUP_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[f.O5,m.t,b.gM,_.KE,_.hX,w.gD,d.JJ,d.oH,w.$L,f.sg,A.P,y.w,v.lW,T.ey,C.$g,E.m],pipes:[S.X$,k.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}"]}),t})()},7433:function(t,e,i){"use strict";i.d(e,{q:function(){return V}});var n=i(4230),s=i(65249),o=i(60611),r=i(84608),a=i(68416),c=(i(41939),i(31572)),l=i(48160),u=i(61511),h=i(67806),d=i(70663),p=i(91058),g=i(88884),f=i(27521),m=i(16073),b=i(15980),_=i(36922);const w=["list"],A=["stepper"];function y(t,e){1&t&&c._UZ(0,"mat-spinner",4)}function v(t,e){1&t&&(c._uU(0),c.ALo(1,"translate")),2&t&&c.Oqu(c.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.RESOURCES"))}function T(t,e){1&t&&(c._uU(0),c.ALo(1,"translate")),2&t&&c.Oqu(c.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.OPTIONS"))}const C=function(){return["select","id","name","facility","tags","description"]};function E(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div",5),c.TgZ(1,"mat-stepper",6,7),c.TgZ(3,"mat-step",8),c.YNc(4,v,2,3,"ng-template",9),c.TgZ(5,"perun-web-apps-debounce-filter",10),c.NdJ("filter",function(e){return c.CHM(t),c.oxw().applyFilter(e)}),c.ALo(6,"translate"),c.qZA(),c._UZ(7,"perun-web-apps-resources-list",11,12),c.qZA(),c.TgZ(9,"mat-step"),c.YNc(10,T,2,3,"ng-template",9),c.TgZ(11,"mat-slide-toggle",13),c.NdJ("toggleChange",function(){return c.CHM(t),c.oxw().changeSubgroupsMessage()})("ngModelChange",function(e){return c.CHM(t),c.oxw().autoAssignSubgroups=e}),c._uU(12),c.ALo(13,"translate"),c.qZA(),c.TgZ(14,"div",14),c._UZ(15,"i",15),c.qZA(),c.TgZ(16,"mat-slide-toggle",13),c.NdJ("toggleChange",function(){return c.CHM(t),c.oxw().changeInactiveMessage()})("ngModelChange",function(e){return c.CHM(t),c.oxw().asActive=e}),c._uU(17),c.ALo(18,"translate"),c.qZA(),c.TgZ(19,"div",14),c._uU(20),c.qZA(),c.TgZ(21,"mat-slide-toggle",13),c.NdJ("toggleChange",function(){return c.CHM(t),c.oxw().changeAsyncMessage()})("ngModelChange",function(e){return c.CHM(t),c.oxw().async=e}),c._uU(22),c.ALo(23,"translate"),c.qZA(),c.TgZ(24,"div",14),c._uU(25),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=c.MAs(8),e=c.oxw();c.xp6(1),c.Q6J("linear",!0),c.xp6(2),c.Q6J("completed",0!==e.selection.selected.length&&void 0!==t&&t.addAuth),c.xp6(2),c.s9C("placeholder",c.lcZ(6,19,"DIALOGS.ADD_GROUP_RESOURCES.FILTER")),c.xp6(2),c.Q6J("tableId",e.tableId)("resources",e.resources)("disableRouting",!0)("selection",e.selection)("groupToResource",e.data.group)("displayedColumns",c.DdM(27,C))("filterValue",e.filterValue),c.xp6(4),c.Q6J("ngModel",e.autoAssignSubgroups),c.xp6(1),c.hij(" ",c.lcZ(13,21,"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS")," "),c.xp6(3),c.Q6J("innerHTML",e.autoAssignHint,c.oJD),c.xp6(1),c.Q6J("ngModel",e.asActive),c.xp6(1),c.hij(" ",c.lcZ(18,23,"DIALOGS.ADD_GROUP_RESOURCES.AS_ACTIVE")," "),c.xp6(3),c.hij(" ",e.asActiveHint," "),c.xp6(1),c.Q6J("ngModel",e.async),c.xp6(1),c.hij(" ",c.lcZ(23,25,"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OPT")," "),c.xp6(3),c.hij(" ",e.asyncHint," ")}}function S(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",22),c.NdJ("click",function(){return c.CHM(t),c.oxw(2).stepperPrevious()}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"DIALOGS.ADD_GROUP_RESOURCES.BACK")," "))}function k(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",23),c.NdJ("click",function(){return c.CHM(t),c.oxw(2).stepperNext()}),c._uU(1),c.ALo(2,"translate"),c.qZA()}if(2&t){const t=c.oxw(2);c.ekj("ml-2",void 0!==t.stepper&&0!==t.stepper.selectedIndex)("ml-auto",!(void 0!==t.stepper&&0!==t.stepper.selectedIndex)),c.Q6J("disabled",0===t.selection.selected.length||void 0!==t.list&&!t.list.addAuth),c.xp6(1),c.hij(" ",c.lcZ(2,6,"DIALOGS.ADD_GROUP_RESOURCES.NEXT")," ")}}function I(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",24),c.NdJ("click",function(){return c.CHM(t),c.oxw(2).onSubmit()}),c._uU(1),c.ALo(2,"translate"),c.qZA()}if(2&t){const t=c.oxw(2);c.Q6J("disabled",0===t.selection.selected.length||t.loading),c.xp6(1),c.hij(" ",c.lcZ(2,2,"DIALOGS.ADD_GROUP_RESOURCES.ADD")," ")}}function x(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div",16),c.TgZ(1,"button",17),c.NdJ("click",function(){return c.CHM(t),c.oxw().onCancel()}),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.YNc(4,S,3,3,"button",18),c.YNc(5,k,3,8,"button",19),c.TgZ(6,"span",20),c.ALo(7,"translate"),c.YNc(8,I,3,4,"button",21),c.qZA(),c.qZA()}if(2&t){const t=c.oxw();c.xp6(2),c.hij(" ",c.lcZ(3,6,"DIALOGS.ADD_GROUP_RESOURCES.CANCEL")," "),c.xp6(2),c.Q6J("ngIf",void 0!==t.stepper&&0!==t.stepper.selectedIndex),c.xp6(1),c.Q6J("ngIf",void 0!==t.stepper&&t.stepper.selectedIndex!==t.stepper._steps.length-1),c.xp6(1),c.s9C("matTooltip",c.lcZ(7,8,"DIALOGS.ADD_GROUP_RESOURCES.ADD_PERMISSION_TOOLTIP")),c.Q6J("matTooltipDisabled",void 0===t.list||t.list.addAuth),c.xp6(2),c.Q6J("ngIf",void 0!==t.stepper&&t.stepper.selectedIndex===t.stepper._steps.length-1)}}let R=(()=>{class t{constructor(t,e,i,s,r,a,c){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=s,this.resourcesManager=r,this.guiAuthResolver=a,this.cd=c,this.filterValue="",this.resources=[],this.selection=new n.Ov(!0,[]),this.theme="",this.async=!0,this.autoAssignSubgroups=!1,this.asActive=!0,this.tableId=o.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(t=>{this.resourcesManager.getAssignedResourcesWithGroup(this.data.group.id).subscribe(e=>{for(const i of t)-1===e.findIndex(t=>t.id===i.id)&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",[this.data.group,i])&&this.resources.push(i);this.loading=!1,this.cd.detectChanges()},()=>this.loading=!1)},()=>this.loading=!1)}applyFilter(t){this.filterValue=t}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const t=this.selection.selected.map(t=>t.id);this.resourcesManager.assignGroupToResources(this.data.group.id,t,this.async,!this.asActive,this.autoAssignSubgroups).subscribe(()=>{this.translate.get("DIALOGS.ADD_GROUP_RESOURCES.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),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 t.\u0275fac=function(e){return new(e||t)(c.Y36(r.so),c.Y36(r.WI),c.Y36(a.V6),c.Y36(l.sK),c.Y36(s.xk),c.Y36(a.x4),c.Y36(c.sBO))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-add-group-resource-dialog"]],viewQuery:function(t,e){if(1&t&&(c.Gf(w,5),c.Gf(A,5)),2&t){let t;c.iGM(t=c.CRH())&&(e.list=t.first),c.iGM(t=c.CRH())&&(e.stepper=t.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,"tableId","resources","disableRouting","selection","groupToResource","displayedColumns","filterValue"],["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"],["mat-flat-button","","class","ml-2","color","accent",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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(c.TgZ(0,"div"),c.TgZ(1,"h1",0),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.YNc(4,y,1,0,"mat-spinner",1),c.YNc(5,E,26,28,"div",2),c.YNc(6,x,9,10,"div",3),c.qZA()),2&t&&(c.Tol(e.theme),c.xp6(2),c.Oqu(c.lcZ(3,7,"DIALOGS.ADD_GROUP_RESOURCES.TITLE")),c.xp6(2),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading&&void 0!==e.stepper))},directives:[r.uh,u.O5,h.$g,r.xY,d.Vq,d.C0,d.VY,p.P,g.C,f.Rr,m.JJ,m.On,r.H8,b.lW,_.gM],pipes:[l.X$],styles:[""]}),t})();var O=i(67033);function P(t,e){1&t&&c._UZ(0,"mat-spinner",4)}function D(t,e){1&t&&c._UZ(0,"th",13)}function M(t,e){if(1&t&&(c.TgZ(0,"td",14),c._uU(1),c.qZA()),2&t){const t=e.$implicit;c.xp6(1),c.hij(" ",t.name," ")}}function L(t,e){1&t&&c._UZ(0,"tr",15)}function N(t,e){1&t&&c._UZ(0,"tr",16)}function z(t,e){if(1&t&&(c.TgZ(0,"div",5),c.TgZ(1,"p"),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"div",6),c._uU(5),c.ALo(6,"translate"),c.qZA(),c.TgZ(7,"table",7),c.ynx(8,8),c.YNc(9,D,1,0,"th",9),c.YNc(10,M,2,1,"td",10),c.BQk(),c.YNc(11,L,1,0,"tr",11),c.YNc(12,N,1,0,"tr",12),c.qZA(),c.qZA()),2&t){const t=c.oxw();c.xp6(2),c.hij(" ",c.lcZ(3,5,"DIALOGS.REMOVE_RESOURCES.DESCRIPTION")," "),c.xp6(3),c.hij(" ",c.lcZ(6,7,"DIALOGS.REMOVE_RESOURCES.ASK")," "),c.xp6(2),c.Q6J("dataSource",t.dataSource),c.xp6(4),c.Q6J("matHeaderRowDef",t.displayedColumns),c.xp6(1),c.Q6J("matRowDefColumns",t.displayedColumns)}}function Z(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div",17),c.TgZ(1,"button",18),c.NdJ("click",function(){return c.CHM(t),c.oxw().onCancel()}),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"button",19),c.NdJ("click",function(){return c.CHM(t),c.oxw().onSubmit()}),c._uU(5),c.ALo(6,"translate"),c.qZA(),c.qZA()}if(2&t){const t=c.oxw();c.xp6(2),c.hij(" ",c.lcZ(3,3,"DIALOGS.REMOVE_RESOURCES.CANCEL")," "),c.xp6(2),c.Q6J("disabled",t.loading),c.xp6(1),c.hij(" ",c.lcZ(6,5,"DIALOGS.REMOVE_RESOURCES.DELETE")," ")}}let B=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.resourcesManager=s,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new O.by(this.data.resources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const t=this.data.resources.map(t=>t.id);this.resourcesManager.removeGroupFromResources(this.data.groupId,t).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(t=>{this.loading=!1,this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(r.so),c.Y36(r.WI),c.Y36(a.V6),c.Y36(l.sK),c.Y36(s.xk))},t.\u0275cmp=c.Xpm({type:t,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"],["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(t,e){1&t&&(c.TgZ(0,"div"),c.TgZ(1,"h1",0),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.YNc(4,P,1,0,"mat-spinner",1),c.YNc(5,z,13,9,"div",2),c.YNc(6,Z,7,7,"div",3),c.qZA()),2&t&&(c.Tol(e.data.theme),c.xp6(2),c.Oqu(c.lcZ(3,7,"DIALOGS.REMOVE_RESOURCES.TITLE")),c.xp6(2),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading))},directives:[r.uh,u.O5,h.$g,r.xY,O.BZ,O.w1,O.fO,O.Dz,O.as,O.nj,O.ge,O.ev,O.XQ,O.Gk,r.H8,b.lW],pipes:[l.X$],styles:[""]}),t})();var q=i(84140),F=i(59403),U=i(19139);const H=["list"];function G(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",8),c.NdJ("click",function(){return c.CHM(t),c.oxw().addResource()}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"GROUP_DETAIL.RESOURCES.ADD")," "))}function j(t,e){1&t&&c._UZ(0,"mat-spinner",9)}const Y=function(){return["select","id","indirectResourceAssigment","name","status","facility","tags","description"]};function K(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"perun-web-apps-resources-list",10,11),c.NdJ("refreshTable",function(){return c.CHM(t),c.oxw().refreshTable()}),c.qZA()}if(2&t){const t=c.oxw();c.Q6J("tableId",t.tableId)("filterValue",t.filterValue)("resources",t.resources)("routingVo",!0)("disableRouting",!t.routingAuth)("selection",t.selected)("groupToResource",t.group)("groupId",t.group.id)("resourcesToDisableCheckbox",t.resourcesToDisable)("displayedColumns",c.DdM(10,Y))}}let V=(()=>{class t{constructor(t,e,i,s,r){this.resourcesManager=t,this.groupService=e,this.dialog=i,this.guiAuthResolver=s,this.entityStorageService=r,this.resources=null,this.selected=new n.Ov(!0,[]),this.filterValue="",this.tableId=o.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(t=>{this.resources=t.map(t=>{const e=t.enrichedResource.resource;return e.facility=t.facility,e.status=t.status,e.resourceTags=t.resourceTags,e.failureCause=t.failureCause,e.sourceGroupId=t.sourceGroupId,e}),this.selected.clear(),this.resourcesToDisable=new Set(this.resources.filter(t=>null!==t.sourceGroupId).map(t=>t.id)),this.setAuthorization(),this.loading=!1})}applyFilter(t){this.filterValue=t}addResource(){const t=(0,q.kZ)();t.width="1000px",t.data={theme:"group-theme",group:this.group},this.dialog.open(R,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}removeResource(){const t=(0,q.kZ)();t.width="450px",t.data={theme:"group-theme",resources:this.selected.selected,groupId:this.group.id},this.dialog.open(B,t).afterClosed().subscribe(t=>{t&&(this.selected.clear(),this.refreshTable())})}}return t.id="GroupResourcesComponent",t.\u0275fac=function(e){return new(e||t)(c.Y36(s.xk),c.Y36(s.ff),c.Y36(r.uw),c.Y36(a.x4),c.Y36(a.fb))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-group-resources"]],viewQuery:function(t,e){if(1&t&&c.Gf(H,5),2&t){let t;c.iGM(t=c.CRH())&&(e.list=t.first)}},hostVars:2,hostBindings:function(t,e){2&t&&c.ekj("router-component",e.true)},decls:14,vars:15,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","filterValue","resources","routingVo","disableRouting","selection","groupToResource","groupId","resourcesToDisableCheckbox","displayedColumns","refreshTable",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","resources","routingVo","disableRouting","selection","groupToResource","groupId","resourcesToDisableCheckbox","displayedColumns","refreshTable"],["list",""]],template:function(t,e){1&t&&(c.TgZ(0,"div"),c.TgZ(1,"h1",0),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"perun-web-apps-refresh-button",1),c.NdJ("refresh",function(){return e.refreshTable()}),c.qZA(),c.YNc(5,G,3,3,"button",2),c.TgZ(6,"span",3),c.ALo(7,"translate"),c.TgZ(8,"button",4),c.NdJ("click",function(){return e.removeResource()}),c._uU(9),c.ALo(10,"translate"),c.qZA(),c.qZA(),c.TgZ(11,"perun-web-apps-immediate-filter",5),c.NdJ("filter",function(t){return e.applyFilter(t)}),c.qZA(),c.YNc(12,j,1,0,"mat-spinner",6),c.YNc(13,K,2,11,"perun-web-apps-resources-list",7),c.qZA()),2&t&&(c.xp6(2),c.Oqu(c.lcZ(3,9,"GROUP_DETAIL.RESOURCES.TITLE")),c.xp6(3),c.Q6J("ngIf",e.addAuth),c.xp6(1),c.s9C("matTooltip",c.lcZ(7,11,"GROUP_DETAIL.RESOURCES.DELETE_PERMISSION_HINT")),c.Q6J("matTooltipDisabled",0===e.selected.selected.length||void 0!==e.list&&e.list.removeAuth),c.xp6(2),c.Q6J("disabled",0===e.selected.selected.length||void 0!==e.list&&!e.list.removeAuth),c.xp6(1),c.hij(" ",c.lcZ(10,13,"GROUP_DETAIL.RESOURCES.DELETE")," "),c.xp6(2),c.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),c.xp6(1),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",e.resources&&!e.loading))},directives:[F.t,u.O5,_.gM,b.lW,U.L,h.$g,g.C],pipes:[l.X$],styles:[""]}),t})()},65423:function(t,e,i){"use strict";i.d(e,{Z:function(){return q}});var n=i(68416),s=i(92438),o=i(75954),r=i(68570),a=i(24555),c=i(65249),l=i(84140),u=i(31572),h=i(84608),d=i(48160),p=i(57629),g=i(61511),f=i(67806),m=i(27679),b=i(59403),_=i(15980),w=i(92846),A=i(43691),y=i(36922),v=i(27521),T=i(16073),C=i(39571);const E=["autoRegToggle"];function S(t,e){1&t&&u._UZ(0,"mat-spinner",3)}function k(t,e){if(1&t&&(u.TgZ(0,"span"),u._uU(1," , "),u.TgZ(2,"mat-icon",22),u._uU(3,"nat"),u.qZA(),u._uU(4),u.ALo(5,"translate"),u.ALo(6,"translate"),u.qZA()),2&t){const t=u.oxw(3);u.xp6(4),u.hij(" ",t.applicationForm.automaticApprovalEmbedded?u.lcZ(5,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):u.lcZ(6,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," ")}}function I(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"div"),u.TgZ(1,"mat-slide-toggle",23,24),u.NdJ("change",function(){return u.CHM(t),u.oxw(3).updateAutoRegistration()}),u._uU(3),u.ALo(4,"translate"),u.qZA(),u.qZA()}if(2&t){const t=u.oxw(3);u.xp6(1),u.Q6J("disabled",!t.changeAutoRegistration)("ngModel",t.autoRegistrationEnabled),u.xp6(2),u.hij(" ",u.lcZ(4,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ALLOW_EMBEDDED")," ")}}function x(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"button",25),u.NdJ("click",function(){return u.CHM(t),u.oxw(3).settings()}),u.TgZ(1,"i",12),u._uU(2,"edit"),u.qZA(),u._uU(3),u.ALo(4,"translate"),u.qZA()}2&t&&(u.xp6(3),u.hij(" ",u.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function R(t,e){if(1&t&&(u.TgZ(0,"div",15),u.TgZ(1,"div",16),u.TgZ(2,"div",17),u._uU(3),u.ALo(4,"translate"),u.qZA(),u.TgZ(5,"div"),u.TgZ(6,"span",17),u._uU(7),u.ALo(8,"translate"),u.qZA(),u._uU(9,": "),u.TgZ(10,"mat-icon",18),u._uU(11,"arrow_right_alt"),u.qZA(),u._uU(12),u.ALo(13,"translate"),u.ALo(14,"translate"),u.TgZ(15,"mat-icon",19),u._uU(16,"restore"),u.qZA(),u._uU(17),u.ALo(18,"translate"),u.ALo(19,"translate"),u.YNc(20,k,7,5,"span",2),u.qZA(),u.YNc(21,I,5,5,"div",2),u.qZA(),u.TgZ(22,"div",20),u.YNc(23,x,5,3,"button",21),u.qZA(),u.qZA()),2&t){const t=u.oxw(2);u.xp6(1),u.Q6J("ngClass",t.autoRegistrationEnabled?"w-75":"w-50"),u.xp6(2),u.AsE("",u.lcZ(4,9,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",t.applicationForm.moduleClassName," "),u.xp6(4),u.Oqu(u.lcZ(8,11,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),u.xp6(5),u.hij(" ",t.applicationForm.automaticApproval?u.lcZ(13,13,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):u.lcZ(14,15,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL"),", "),u.xp6(5),u.hij(" ",t.applicationForm.automaticApprovalExtension?u.lcZ(18,17,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):u.lcZ(19,19,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),u.xp6(3),u.Q6J("ngIf",t.autoRegistrationEnabled),u.xp6(1),u.Q6J("ngIf",t.voHasEmbeddedGroupApplication),u.xp6(2),u.Q6J("ngIf",t.editAuth)}}function O(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"button",26),u.NdJ("click",function(){return u.CHM(t),u.oxw(2).add()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function P(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"button",27),u.NdJ("click",function(){return u.CHM(t),u.oxw(2).save()}),u.TgZ(1,"i",12),u._uU(2,"save"),u.qZA(),u._uU(3),u.ALo(4,"translate"),u.qZA()}if(2&t){const t=u.oxw(2);u.Q6J("disabled",!t.itemsChanged),u.xp6(3),u.hij(" ",u.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function D(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"button",28),u.NdJ("click",function(){return u.CHM(t),u.oxw(2).copy()}),u.TgZ(1,"i",12),u._uU(2,"file_copy"),u.qZA(),u._uU(3),u.ALo(4,"translate"),u.qZA()}2&t&&(u.xp6(3),u.hij(" ",u.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.COPY_GROUP_BUTTON")," "))}function M(t,e){1&t&&(u.TgZ(0,"app-alert",29),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}const L=function(){return["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"]},N=function(){return["shortname","type","disabled","hidden","preview","managegroups"]};function z(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"div"),u.YNc(1,R,24,21,"div",4),u._UZ(2,"mat-divider",5),u.TgZ(3,"div",6),u.TgZ(4,"perun-web-apps-refresh-button",7),u.NdJ("refresh",function(){return u.CHM(t),u.oxw().updateFormItems()}),u.qZA(),u.YNc(5,O,3,3,"button",8),u.YNc(6,P,5,4,"button",9),u.YNc(7,D,5,3,"button",10),u.TgZ(8,"button",11),u.NdJ("click",function(){return u.CHM(t),u.oxw().preview()}),u.TgZ(9,"i",12),u._uU(10,"search"),u.qZA(),u._uU(11),u.ALo(12,"translate"),u.qZA(),u.qZA(),u.YNc(13,M,3,3,"app-alert",13),u.TgZ(14,"app-application-form-list",14),u.NdJ("applicationFormItemsChange",function(){return u.CHM(t),u.oxw().changeItems()}),u.qZA(),u.qZA()}if(2&t){const t=u.oxw();u.xp6(1),u.Q6J("ngIf",!t.loading),u.xp6(4),u.Q6J("ngIf",t.editAuth),u.xp6(1),u.Q6J("ngIf",t.editAuth),u.xp6(1),u.Q6J("ngIf",t.editAuth),u.xp6(4),u.hij(" ",u.lcZ(12,11,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),u.xp6(2),u.Q6J("ngIf",t.editAuth),u.xp6(1),u.Q6J("loading",t.loading)("applicationForm",t.applicationForm)("applicationFormItems",t.applicationFormItems)("theme","group-theme")("displayedColumns",t.editAuth?u.DdM(13,L):u.DdM(14,N))}}function Z(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"button",11),u.NdJ("click",function(){return u.CHM(t),u.oxw(2).createEmptyApplicationForm()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CREATE_APPLICATION_FORM")," "))}function B(t,e){if(1&t&&(u.TgZ(0,"div"),u.TgZ(1,"app-alert",30),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.YNc(4,Z,3,3,"button",31),u.qZA()),2&t){const t=u.oxw();u.xp6(2),u.Oqu(u.lcZ(3,2,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM")),u.xp6(2),u.Q6J("ngIf",t.createEmptyForm)}}let q=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c){this.registrarManager=t,this.dialog=e,this.notificator=i,this.translate=n,this.apiRequest=s,this.router=o,this.guiAuthResolver=r,this.attributesManager=a,this.entityStorageService=c,this.loading=!1,this.applicationFormItems=[],this.noApplicationForm=!1,this.itemsChanged=!1,this.editAuth=!1,this.createEmptyForm=!1,this.voHasEmbeddedGroupApplication=!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(t=>{this.applicationForm=t,this.registrarManager.getFormItemsForGroup(this.group.id).subscribe(t=>{this.applicationFormItems=t,this.attributesManager.getGroupAttributeByName(this.group.id,"urn:perun:group:attribute-def:virt:autoRegistrationEnabled").subscribe(t=>{this.voHasEmbeddedGroupApplication=null!==t.value,this.autoRegistrationEnabled=!!t.value,this.loading=!1})},()=>this.loading=!1)},t=>{"FormNotExistsException"===t.error.name?(this.noApplicationForm=!0,this.loading=!1):this.notificator.showRPCError(t.error)})}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 t=(0,l.kZ)();t.width="500px",t.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(s.J,t).afterClosed().subscribe(e=>{e&&(this.applicationFormItems=Object.assign([],e[0]),t=(0,l.kZ)(),t.width="600px",t.height="600px",t.data={voId:this.group.voId,groupId:this.group.id,applicationFormItem:e[1],theme:"group-theme",allItems:this.applicationFormItems},this.dialog.open(o._,t),this.itemsChanged=!0)})}copy(){const t=(0,l.kZ)();t.width="500px",t.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(r.W,t).afterClosed().subscribe(t=>{t&&this.updateFormItems()})}settings(){const t=(0,l.kZ)();t.width="400px",t.data={entity:"group",applicationForm:this.applicationForm,theme:"group-theme",autoRegistrationEnabled:this.autoRegistrationEnabled},this.dialog.open(a.E,t).afterClosed().subscribe(t=>{t&&(this.translate.get("GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.applicationForm=t)})}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.registrarManager.getFormItemsForGroup(this.group.id).subscribe(t=>{this.applicationFormItems=t,this.itemsChanged=!1,this.loading=!1})}changeItems(){this.itemsChanged=!0}createEmptyApplicationForm(){this.registrarManager.createApplicationFormInGroup(this.group.id).subscribe(()=>{this.noApplicationForm=!1,this.ngOnInit()})}save(){let t=0;for(const e of this.applicationFormItems)e.ordnum=t,e.forDelete||t++;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(t=>{this.notificator.showSuccess(t)}),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(t=>{this.notificator.showSuccess(t)}),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(t=>{this.notificator.showSuccess(t)}),this.autoRegToggle.setDisabledState(!1)},()=>this.autoRegToggle.setDisabledState(!1))}}return t.id="GroupSettingsApplicationFormComponent",t.\u0275fac=function(e){return new(e||t)(u.Y36(c.tk),u.Y36(h.uw),u.Y36(n.V6),u.Y36(d.sK),u.Y36(n.F5),u.Y36(p.F0),u.Y36(n.x4),u.Y36(c.H8),u.Y36(n.fb))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-group-settings-application-form"]],viewQuery:function(t,e){if(1&t&&u.Gf(E,5),2&t){let t;u.iGM(t=u.CRH())&&(e.autoRegToggle=t.first)}},hostVars:2,hostBindings:function(t,e){2&t&&u.ekj("router-component",e.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"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-stroked-button","","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],["alert_type","info",4,"ngIf"],[3,"loading","applicationForm","applicationFormItems","theme","displayedColumns","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"],["mat-stroked-button","","class","ml-auto action-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"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],["alert_type","info"],["alert_type","warn"],["mat-stroked-button","",3,"click",4,"ngIf"]],template:function(t,e){1&t&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.YNc(3,S,1,0,"mat-spinner",1),u.YNc(4,z,15,15,"div",2),u.YNc(5,B,5,4,"div",2)),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,4,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),u.xp6(2),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.noApplicationForm),u.xp6(1),u.Q6J("ngIf",!e.loading&&e.noApplicationForm))},directives:[g.O5,f.$g,m.d,b.t,_.lW,w.b,g.mk,A.Hw,y.gM,v.Rr,T.JJ,T.On,C.w],pipes:[d.X$],styles:[""]}),t})()},82044:function(t,e,i){"use strict";i.d(e,{u:function(){return N}});var n=i(88419),s=i(4230),o=i(43491),r=i(84140),a=i(65249),c=i(67004),l=i(60611),u=i(57820),h=i(68416),d=(i(41939),i(31572)),p=i(84608),g=i(59403),f=i(61511),m=i(36922),b=i(91058),_=i(27521),w=i(16073),A=i(15980),y=i(67806),v=i(11441),T=i(78364),C=i(48160);const E=["tree"],S=["list"],k=["toggle"];function I(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"button",10),d.NdJ("click",function(){return d.CHM(t),d.oxw().onCreateGroup()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}2&t&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"GROUP_DETAIL.SUBGROUPS.CREATE_GROUP")," "))}function x(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"button",11),d.NdJ("click",function(){return d.CHM(t),d.oxw().deleteGroup()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}if(2&t){const t=d.oxw();d.Q6J("disabled",0===t.selected.selected.length||void 0!==t.tree&&!t.tree.removeAuth||void 0!==t.list&&!t.list.removeAuth),d.xp6(1),d.hij(" ",d.lcZ(2,2,"GROUP_DETAIL.SUBGROUPS.DELETE_GROUP")," ")}}function R(t,e){1&t&&d._UZ(0,"mat-spinner",12)}function O(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"perun-web-apps-groups-tree",16,17),d.NdJ("moveGroup",function(e){return d.CHM(t),d.oxw(2).onMoveGroup(e)})("refreshTable",function(){return d.CHM(t),d.oxw(2).refreshTable()}),d.qZA()}if(2&t){const t=d.oxw(2);d.Q6J("groups",t.groups)("expandAll",t.filtering)("hideCheckbox",!t.deleteAuth)("selection",t.selected)("filterValue",t.filterValue)("disableRouting",!t.routeAuth)}}const P=function(){return["select","id","name","description","menu"]},D=function(){return["id","name","description","menu"]};function M(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"perun-web-apps-groups-list",18,19),d.NdJ("moveGroup",function(e){return d.CHM(t),d.oxw(2).onMoveGroup(e)})("refreshTable",function(){return d.CHM(t),d.oxw(2).refreshTable()}),d.qZA()}if(2&t){const t=d.oxw(2);d.Q6J("tableId",t.tableId)("groups",t.groups)("selection",t.selected)("authType","group-subgroups")("disableMembers",!0)("disableRouting",!t.routeAuth)("displayedColumns",t.deleteAuth?d.DdM(8,P):d.DdM(9,D))("filter",t.filterValue)}}function L(t,e){if(1&t&&(d.TgZ(0,"div",13),d.YNc(1,O,2,6,"perun-web-apps-groups-tree",14),d.YNc(2,M,2,10,"perun-web-apps-groups-list",15),d.qZA()),2&t){const t=d.oxw();d.xp6(1),d.Q6J("ngIf",!t.showGroupList),d.xp6(1),d.Q6J("ngIf",t.showGroupList)}}let N=(()=>{class t{constructor(t,e,i,n){this.dialog=t,this.groupService=e,this.guiAuthResolver=i,this.entityStorageService=n,this.groups=[],this.selected=new s.Ov(!0,[]),this.showGroupList=!1,this.filtering=!1,this.tableId=l.bf,this.filterValue=""}onCreateGroup(){const t=(0,r.kZ)();t.width="450px",t.data={parentGroup:this.group,theme:"group-theme"},this.dialog.open(n.y,t).afterClosed().subscribe(t=>{t&&(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 t=(0,r.kZ)();t.width="450px",t.data={voId:this.group.id,groups:this.selected.selected,theme:"group-theme"},this.dialog.open(o.P,t).afterClosed().subscribe(t=>{t&&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(t=>{this.groups=t,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(t){this.filterValue=t,this.filtering=""!==t}onMoveGroup(t){const e=(0,r.kZ)();e.width="550px",e.data={group:t,theme:"group-theme"},this.dialog.open(u.c,e).afterClosed().subscribe(t=>{t&&this.refreshTable()})}}return t.id="GroupSubgroupsComponent",t.\u0275fac=function(e){return new(e||t)(d.Y36(p.uw),d.Y36(a.ff),d.Y36(h.x4),d.Y36(h.fb))},t.\u0275cmp=d.Xpm({type:t,selectors:[["app-group-subgroups"]],viewQuery:function(t,e){if(1&t&&(d.Gf(E,5),d.Gf(S,5),d.Gf(k,7)),2&t){let t;d.iGM(t=d.CRH())&&(e.tree=t.first),d.iGM(t=d.CRH())&&(e.list=t.first),d.iGM(t=d.CRH())&&(e.toggle=t.first)}},hostVars:2,hostBindings:function(t,e){2&t&&d.ekj("router-component",e.true)},decls:19,vars:20,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","warn","class","mr-2",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","mat-flat-button","",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],[3,"groups","expandAll","hideCheckbox","selection","filterValue","disableRouting","moveGroup","refreshTable",4,"ngIf"],[3,"tableId","groups","selection","authType","disableMembers","disableRouting","displayedColumns","filter","moveGroup","refreshTable",4,"ngIf"],[3,"groups","expandAll","hideCheckbox","selection","filterValue","disableRouting","moveGroup","refreshTable"],["tree",""],[3,"tableId","groups","selection","authType","disableMembers","disableRouting","displayedColumns","filter","moveGroup","refreshTable"],["list",""]],template:function(t,e){if(1&t&&(d.TgZ(0,"div"),d.TgZ(1,"h1",0),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"perun-web-apps-refresh-button",1),d.NdJ("refresh",function(){return e.refreshTable()}),d.qZA(),d.YNc(5,I,3,3,"button",2),d.TgZ(6,"span",3),d.ALo(7,"translate"),d.YNc(8,x,3,4,"button",4),d.qZA(),d.TgZ(9,"perun-web-apps-debounce-filter",5),d.NdJ("filter",function(t){return e.applyFilter(t)}),d.qZA(),d.TgZ(10,"mat-slide-toggle",6,7),d.NdJ("change",function(){return e.selected.clear()})("ngModelChange",function(t){return e.showGroupList=t}),d._uU(12),d.ALo(13,"translate"),d.qZA(),d.TgZ(14,"label"),d._uU(15),d.ALo(16,"translate"),d.qZA(),d.YNc(17,R,1,0,"mat-spinner",8),d.YNc(18,L,3,2,"div",9),d.qZA()),2&t){const t=d.MAs(11);d.xp6(2),d.Oqu(d.lcZ(3,12,"GROUP_DETAIL.SUBGROUPS.TITLE")),d.xp6(3),d.Q6J("ngIf",e.createAuth),d.xp6(1),d.s9C("matTooltip",d.lcZ(7,14,"GROUP_DETAIL.SUBGROUPS.DELETE_PERMISSION_HINT")),d.Q6J("matTooltipDisabled",void 0===e.tree&&void 0===e.list||void 0!==e.tree&&e.tree.removeAuth||void 0!==e.list&&e.list.removeAuth),d.xp6(2),d.Q6J("ngIf",e.deleteAuth),d.xp6(1),d.Q6J("placeholder","GROUP_DETAIL.SUBGROUPS.FILTER"),d.xp6(1),d.Q6J("ngModel",e.showGroupList),d.xp6(2),d.Oqu(d.lcZ(13,16,"GROUP_DETAIL.SUBGROUPS.TREE_VIEW")),d.xp6(2),d.uIk("for",t.inputId),d.xp6(1),d.Oqu(d.lcZ(16,18,"GROUP_DETAIL.SUBGROUPS.LIST_VIEW")),d.xp6(2),d.Q6J("ngIf",e.loading),d.xp6(1),d.Q6J("ngIf",!e.loading)}},directives:[g.t,f.O5,m.gM,b.P,_.Rr,w.JJ,w.On,A.lW,y.$g,v.I,T.W],pipes:[C.X$],styles:[""]}),t})()},81835:function(t,e,i){"use strict";i.d(e,{j:function(){return B}});var n=i(65249),s=i(60611),o=i(4230),r=i(84140),a=i(84608),c=i(68416),l=i(67004),u=i(31572),h=i(48160),d=i(61511),p=i(67806),g=i(19139),f=i(78364),m=i(15980);function b(t,e){1&t&&u._UZ(0,"mat-spinner",6)}function _(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"perun-web-apps-immediate-filter",7),u.NdJ("filter",function(e){return u.CHM(t),u.oxw().applyFilter(e)}),u.qZA()}2&t&&u.Q6J("placeholder","DIALOGS.ADD_MEMBER_GROUP.FILTER")}const w=function(){return["select","id","name","description"]};function A(t,e){if(1&t&&u._UZ(0,"perun-web-apps-groups-list",8),2&t){const t=u.oxw();u.Q6J("groups",t.groups)("selection",t.selection)("displayedColumns",u.DdM(8,w))("filter",t.filterValue)("groupsToDisableCheckbox",t.membersGroups)("disableGroups",!0)("disableRouting",!0)("disableMembers",!0)}}function y(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"div",9),u.TgZ(1,"button",10),u.NdJ("click",function(){return u.CHM(t),u.oxw().onCancel()}),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"button",11),u.NdJ("click",function(){return u.CHM(t),u.oxw().onAdd()}),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA()}if(2&t){const t=u.oxw();u.xp6(2),u.hij(" ",u.lcZ(3,3,"DIALOGS.ADD_MEMBER_GROUP.CANCEL")," "),u.xp6(2),u.Q6J("disabled",0===t.selection.selected.length),u.xp6(1),u.hij(" ",u.lcZ(6,5,"DIALOGS.ADD_MEMBER_GROUP.ADD")," ")}}let v=(()=>{class t{constructor(t,e,i,n,s,r,a){this.dialogRef=t,this.data=e,this.groupManager=i,this.memberManager=n,this.notificator=s,this.translate=r,this.authResolver=a,this.loading=!1,this.groups=[],this.selection=new o.Ov(!0,[]),this.attrNames=[l.r.GROUP_SYNC_ENABLED,l.r.GROUP_LAST_SYNC_STATE,l.r.GROUP_LAST_SYNC_TIMESTAMP,l.r.GROUP_STRUCTURE_SYNC_ENABLED,l.r.GROUP_LAST_STRUCTURE_SYNC_STATE,l.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(t=>{this.member=t,this.groupManager.getAllRichGroupsWithAttributesByNames(this.member.voId,this.attrNames).subscribe(t=>{this.groups=t.filter(t=>this.authResolver.isAuthorized("addMember_Group_Member_policy",[t])),this.loading=!1},()=>this.loading=!1)})}onAdd(){const t=this.selection.selected.map(t=>t.id);this.loading=!0,this.groupManager.addMember(t,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(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(a.so),u.Y36(a.WI),u.Y36(n.ff),u.Y36(n.uq),u.Y36(c.V6),u.Y36(h.sK),u.Y36(c.x4))},t.\u0275cmp=u.Xpm({type:t,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,"groups","selection","displayedColumns","filter","groupsToDisableCheckbox","disableGroups","disableRouting","disableMembers",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"placeholder","filter"],[3,"groups","selection","displayedColumns","filter","groupsToDisableCheckbox","disableGroups","disableRouting","disableMembers"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.YNc(4,b,1,0,"mat-spinner",1),u.TgZ(5,"div",2),u.YNc(6,_,1,1,"perun-web-apps-immediate-filter",3),u.YNc(7,A,1,9,"perun-web-apps-groups-list",4),u.qZA(),u.YNc(8,y,7,7,"div",5),u.qZA()),2&t&&(u.Tol(e.theme),u.xp6(2),u.Oqu(u.lcZ(3,8,"DIALOGS.ADD_MEMBER_GROUP.TITLE")),u.xp6(2),u.Q6J("ngIf",e.loading),u.xp6(2),u.Q6J("ngIf",!e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading))},directives:[a.uh,d.O5,a.xY,p.$g,g.L,f.W,a.H8,m.lW],pipes:[h.X$],styles:[""]}),t})();var T=i(67033);function C(t,e){1&t&&u._UZ(0,"mat-spinner",6)}function E(t,e){1&t&&u._UZ(0,"th",15)}function S(t,e){if(1&t&&(u.TgZ(0,"td",16),u._uU(1),u.qZA()),2&t){const t=e.$implicit;u.xp6(1),u.hij(" ",t.name," ")}}function k(t,e){1&t&&u._UZ(0,"tr",17)}function I(t,e){1&t&&u._UZ(0,"tr",18)}function x(t,e){if(1&t&&(u.TgZ(0,"div",7),u.TgZ(1,"p"),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"div",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.TgZ(7,"table",9),u.ynx(8,10),u.YNc(9,E,1,0,"th",11),u.YNc(10,S,2,1,"td",12),u.BQk(),u.YNc(11,k,1,0,"tr",13),u.YNc(12,I,1,0,"tr",14),u.qZA(),u.qZA()),2&t){const t=u.oxw();u.xp6(2),u.Oqu(u.lcZ(3,5,"DIALOGS.REMOVE_MEMBER_GROUP.DESCRIPTION")),u.xp6(3),u.hij(" ",u.lcZ(6,7,"DIALOGS.REMOVE_MEMBER_GROUP.ASK")," "),u.xp6(2),u.Q6J("dataSource",t.dataSource),u.xp6(4),u.Q6J("matHeaderRowDef",t.displayedColumns),u.xp6(1),u.Q6J("matRowDefColumns",t.displayedColumns)}}let R=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.groupManager=i,this.notificator=n,this.translate=s,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new T.by(this.data.groups)}onRemove(){this.loading=!0;const t=this.dataSource.data.map(t=>t.id);this.groupManager.removeMember(t,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 t.\u0275fac=function(e){return new(e||t)(u.Y36(a.so),u.Y36(a.WI),u.Y36(n.ff),u.Y36(c.V6),u.Y36(h.sK))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-remove-member-group-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-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,"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"],["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(t,e){1&t&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.YNc(4,C,1,0,"mat-spinner",1),u.YNc(5,x,13,9,"div",2),u.TgZ(6,"div",3),u.TgZ(7,"button",4),u.NdJ("click",function(){return e.onCancel()}),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.TgZ(10,"button",5),u.NdJ("click",function(){return e.onRemove()}),u._uU(11),u.ALo(12,"translate"),u.qZA(),u.qZA(),u.qZA()),2&t&&(u.Tol(e.theme),u.xp6(2),u.Oqu(u.lcZ(3,9,"DIALOGS.REMOVE_MEMBER_GROUP.TITLE")),u.xp6(2),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading),u.xp6(3),u.hij("",u.lcZ(9,11,"DIALOGS.REMOVE_MEMBER_GROUP.CANCEL")," "),u.xp6(2),u.Q6J("disabled",e.loading),u.xp6(1),u.hij("",u.lcZ(12,13,"DIALOGS.REMOVE_MEMBER_GROUP.REMOVE")," "))},directives:[a.uh,d.O5,a.H8,m.lW,p.$g,a.xY,T.BZ,T.w1,T.fO,T.Dz,T.as,T.nj,T.ge,T.ev,T.XQ,T.Gk],pipes:[h.X$],styles:[""]}),t})();i(41939);var O=i(57629),P=i(59403),D=i(36922);const M=["list"];function L(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"button",8),u.NdJ("click",function(){return u.CHM(t),u.oxw().addGroup()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"MEMBER_DETAIL.GROUPS.ADD"),"\n"))}function N(t,e){1&t&&u._UZ(0,"mat-spinner",9)}const z=function(){return["select","id","vo","name","description","expiration"]};function Z(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"perun-web-apps-groups-list",10,11),u.NdJ("refreshTable",function(){return u.CHM(t),u.oxw().refreshTable()}),u.qZA()}if(2&t){const t=u.oxw();u.Q6J("tableId",t.tableId)("groups",t.groups)("displayedColumns",u.DdM(9,z))("selection",t.selection)("filter",t.filterValue)("memberId",t.memberId)("memberGroupStatus",t.member.groupStatus)("disableRouting",!t.routeAuth)("authType","member-groups")}}let B=(()=>{class t{constructor(t,e,i,n,r){this.groupsService=t,this.route=e,this.dialog=i,this.authResolver=n,this.memberService=r,this.filterValue="",this.tableId=s.W1,this.selection=new o.Ov(!0,[])}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(t=>{this.memberId=t.memberId,this.memberService.getMemberById(this.memberId).subscribe(t=>{this.member=t,this.groupsService.getAllGroups(this.member.voId).subscribe(t=>{this.allGroups=t,this.refreshTable()})})})}refreshTable(){this.loading=!0,this.groupsService.getMemberRichGroupsWithAttributesByNames(this.memberId,["urn:perun:member_group:attribute-def:def:groupMembershipExpiration"]).subscribe(t=>{this.selection.clear(),this.groups=t,this.setAuthRights(),this.loading=!1},()=>this.loading=!1)}setAuthRights(){const t={id:this.member.voId,beanName:"Vo"};this.addAuth=this.allGroups.reduce((t,e)=>t||this.authResolver.isAuthorized("addMember_Group_Member_policy",[e]),!1),0!==this.groups.length&&(this.routeAuth=this.authResolver.isAuthorized("getGroupById_int_policy",[t,this.groups[0]]))}addGroup(){const t=(0,r.kZ)();t.width="850px",t.data={memberId:this.memberId,membersGroups:new Set(this.groups.map(t=>t.id)),theme:"member-theme"},this.dialog.open(v,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}removeGroup(){const t=(0,r.kZ)();t.width="650px",t.data={memberId:this.memberId,groups:this.selection.selected,theme:"member-theme"},this.dialog.open(R,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}applyFilter(t){this.filterValue=t}}return t.id="MemberGroupsComponent",t.\u0275fac=function(e){return new(e||t)(u.Y36(n.ff),u.Y36(O.gz),u.Y36(a.uw),u.Y36(c.x4),u.Y36(n.uq))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-member-groups"]],viewQuery:function(t,e){if(1&t&&u.Gf(M,5),2&t){let t;u.iGM(t=u.CRH())&&(e.list=t.first)}},hostVars:2,hostBindings:function(t,e){2&t&&u.ekj("router-component",e.true)},decls:13,vars:15,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"tableId","groups","displayedColumns","selection","filter","memberId","memberGroupStatus","disableRouting","authType","refreshTable",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],[1,"mr-auto","ml-auto"],[3,"tableId","groups","displayedColumns","selection","filter","memberId","memberGroupStatus","disableRouting","authType","refreshTable"],["list",""]],template:function(t,e){1&t&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.TgZ(3,"perun-web-apps-refresh-button",1),u.NdJ("refresh",function(){return e.refreshTable()}),u.qZA(),u.YNc(4,L,3,3,"button",2),u.TgZ(5,"span",3),u.ALo(6,"translate"),u.TgZ(7,"button",4),u.NdJ("click",function(){return e.removeGroup()}),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.qZA(),u.TgZ(10,"perun-web-apps-immediate-filter",5),u.NdJ("filter",function(t){return e.applyFilter(t)}),u.qZA(),u.YNc(11,N,1,0,"mat-spinner",6),u.YNc(12,Z,2,10,"perun-web-apps-groups-list",7)),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,9,"MEMBER_DETAIL.GROUPS.TITLE")),u.xp6(3),u.Q6J("ngIf",e.addAuth),u.xp6(1),u.s9C("matTooltip",u.lcZ(6,11,"MEMBER_DETAIL.GROUPS.REMOVE_PERMISSION_HINT")),u.Q6J("matTooltipDisabled",void 0===e.list||void 0!==e.list&&e.list.removeAuth),u.xp6(2),u.Q6J("disabled",0===e.selection.selected.length||void 0!==e.list&&!e.list.removeAuth),u.xp6(1),u.hij(" ",u.lcZ(9,13,"MEMBER_DETAIL.GROUPS.REMOVE")," "),u.xp6(2),u.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading))},directives:[P.t,d.O5,D.gM,m.lW,g.L,p.$g,f.W],pipes:[h.X$],styles:[""]}),t})()},40659:function(t,e,i){"use strict";i.d(e,{c:function(){return k}});var n=i(65249),s=i(60611),o=i(16073),r=i(61511),a=i(68416),c=i(31572),l=i(59403),u=i(66283),h=i(4786),d=i(71522),p=i(91058),g=i(51613),f=i(29236),m=i(15980),b=i(67806),_=i(21548),w=i(29851),A=i(48160);function y(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",16),c.NdJ("click",function(){return c.CHM(t),c.oxw().showAllDetails=!0}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function v(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",16),c.NdJ("click",function(){return c.CHM(t),c.oxw().showAllDetails=!1}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}function T(t,e){1&t&&c._UZ(0,"mat-spinner",17)}function C(t,e){if(1&t&&c._UZ(0,"app-applications-list",20),2&t){const t=c.oxw(2);c.Q6J("tableId",t.tableId)("filterValue",t.filterValue)("applications",t.applications)("displayedColumns",t.displayedColumns)}}function E(t,e){if(1&t&&c._UZ(0,"app-perun-web-apps-application-list-details",21),2&t){const t=c.oxw(2);c.Q6J("tableId",t.detailTableId)("filterValue",t.filterValue)("applications",t.applications)}}function S(t,e){if(1&t&&(c.TgZ(0,"div"),c.YNc(1,C,1,4,"app-applications-list",18),c.YNc(2,E,1,3,"app-perun-web-apps-application-list-details",19),c.qZA()),2&t){const t=c.oxw();c.xp6(1),c.Q6J("ngIf",!t.showAllDetails),c.xp6(1),c.Q6J("ngIf",t.showAllDetails)}}let k=(()=>{class t{constructor(t,e){this.registrarManager=t,this.entityStorageService=e,this.state="pending",this.loading=!1,this.applications=[],this.displayedColumns=["id","createdAt","type","state","user","group","modifiedBy"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=s.Jf,this.tableId=s.Hi,this.checked=!1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.startDate=new o.NI((0,r.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new o.NI((0,r.p6)(new Date,"yyyy-MM-dd","en-GB")),this.setData(["NEW","VERIFIED"])}setData(t){this.registrarManager.getApplicationsForVo(this.vo.id,t,(0,r.p6)(this.startDate.value,"yyyy-MM-dd","en-GB"),(0,r.p6)(this.endDate.value,"yyyy-MM-dd","en-GB")).subscribe(t=>{this.applications=!1===this.checked?t.filter(t=>null===t.group):t,this.loading=!1})}select(){switch(this.loading=!0,this.state){case"approved":this.setData(["APPROVED"]);break;case"rejected":this.setData(["REJECTED"]);break;case"wfmv":this.setData(["NEW"]);break;case"submited":this.setData(["VERIFIED"]);break;case"pending":this.setData(["NEW","VERIFIED"]);break;case"all":this.setData(null)}}yearAgo(){const t=new Date,e=t.getFullYear()-1,i=t.getMonth(),n=t.getDate();return new Date(e,i,n)}showGroupApplications(t){this.checked=t.checked,this.select()}applyFilter(t){this.filterValue=t}}return t.id="VoApplicationsComponent",t.\u0275fac=function(e){return new(e||t)(c.Y36(n.tk),c.Y36(a.fb))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-vo-applications"]],hostVars:2,hostBindings:function(t,e){2&t&&c.ekj("router-component",e.true)},decls:38,vars:36,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,"startDate","endDate","datePicker"],["color","primary",3,"checked","change"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","applications","displayedColumns",4,"ngIf"],[3,"tableId","filterValue","applications",4,"ngIf"],[3,"tableId","filterValue","applications","displayedColumns"],[3,"tableId","filterValue","applications"]],template:function(t,e){1&t&&(c.TgZ(0,"h1",0),c._uU(1),c.ALo(2,"translate"),c.qZA(),c.TgZ(3,"div"),c.TgZ(4,"perun-web-apps-refresh-button",1),c.NdJ("refresh",function(){return e.select()}),c.qZA(),c.YNc(5,y,3,3,"button",2),c.YNc(6,v,3,3,"button",2),c.TgZ(7,"mat-form-field",3),c.TgZ(8,"mat-label"),c._uU(9),c.ALo(10,"translate"),c.qZA(),c.TgZ(11,"mat-select",4),c.NdJ("selectionChange",function(){return e.select()})("valueChange",function(t){return e.state=t}),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.qZA(),c.qZA(),c.TgZ(30,"perun-web-apps-debounce-filter",11),c.NdJ("filter",function(t){return e.applyFilter(t)}),c.qZA(),c.TgZ(31,"perun-web-apps-date-range",12),c.NdJ("datePicker",function(){return e.select()}),c.qZA(),c.TgZ(32,"div"),c.TgZ(33,"mat-checkbox",13),c.NdJ("change",function(t){return e.showGroupApplications(t)}),c._uU(34),c.ALo(35,"translate"),c.qZA(),c.qZA(),c.qZA(),c.YNc(36,T,1,0,"mat-spinner",14),c.YNc(37,S,3,2,"div",15)),2&t&&(c.xp6(1),c.Oqu(c.lcZ(2,18,"VO_DETAIL.APPLICATION.TITLE")),c.xp6(4),c.Q6J("ngIf",!e.showAllDetails),c.xp6(1),c.Q6J("ngIf",e.showAllDetails),c.xp6(3),c.Oqu(c.lcZ(10,20,"VO_DETAIL.APPLICATION.TABLE_STATE")),c.xp6(2),c.Q6J("value",e.state),c.xp6(2),c.Oqu(c.lcZ(14,22,"VO_DETAIL.APPLICATION.SELECTION_ALL")),c.xp6(3),c.Oqu(c.lcZ(17,24,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),c.xp6(3),c.Oqu(c.lcZ(20,26,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),c.xp6(3),c.Oqu(c.lcZ(23,28,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),c.xp6(3),c.Oqu(c.lcZ(26,30,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),c.xp6(3),c.Oqu(c.lcZ(29,32,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),c.xp6(2),c.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),c.xp6(1),c.Q6J("startDate",e.startDate)("endDate",e.endDate),c.xp6(2),c.Q6J("checked",e.checked),c.xp6(1),c.hij(" ",c.lcZ(35,34,"VO_DETAIL.APPLICATION.SHOW_GROUP_APPLICATIONS")," "),c.xp6(2),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading))},directives:[l.t,r.O5,u.KE,u.hX,h.gD,d.ey,p.P,g.S,f.oG,m.lW,b.$g,_.M,w.w],pipes:[A.X$],styles:[""]}),t})()},48002:function(t,e,i){"use strict";i.d(e,{G:function(){return N}});var n=i(88419),s=i(43491),o=i(4230),r=i(57820),a=i(84140),c=i(65249),l=i(60611),u=i(67004),h=i(68416),d=(i(41939),i(31572)),p=i(84608),g=i(59403),f=i(61511),m=i(36922),b=i(15980),_=i(91058),w=i(27521),A=i(16073),y=i(67806),v=i(11441),T=i(78364),C=i(39571),E=i(48160);const S=["toggle"],k=["tree"],I=["list"];function x(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"button",11),d.NdJ("click",function(){return d.CHM(t),d.oxw().onCreateGroup()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}2&t&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"VO_DETAIL.GROUPS.CREATE_GROUP")," "))}function R(t,e){1&t&&d._UZ(0,"mat-spinner",12)}function O(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"perun-web-apps-groups-tree",16,17),d.NdJ("moveGroup",function(e){return d.CHM(t),d.oxw(2).onMoveGroup(e)})("refreshTable",function(){return d.CHM(t),d.oxw(2).loadAllGroups()}),d.qZA()}if(2&t){const t=d.oxw(2);d.Q6J("groups",t.groups)("expandAll",t.filtering)("vo",t.vo)("selection",t.selected)("disableRouting",!t.routeAuth)("filterValue",t.filterValue)}}const P=function(){return["select","id","name","description","menu"]};function D(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"perun-web-apps-groups-list",18,19),d.NdJ("moveGroup",function(e){return d.CHM(t),d.oxw(2).onMoveGroup(e)})("refreshTable",function(){return d.CHM(t),d.oxw(2).loadAllGroups()}),d.qZA()}if(2&t){const t=d.oxw(2);d.Q6J("tableId",t.tableId)("groups",t.groups)("selection",t.selected)("disableMembers",!0)("displayedColumns",d.DdM(8,P))("disableRouting",!t.routeAuth)("authType","vo-groups")("filter",t.filterValue)}}function M(t,e){if(1&t&&(d.TgZ(0,"div",13),d.YNc(1,O,2,6,"perun-web-apps-groups-tree",14),d.YNc(2,D,2,9,"perun-web-apps-groups-list",15),d.qZA()),2&t){const t=d.oxw();d.xp6(1),d.Q6J("ngIf",!t.showGroupList),d.xp6(1),d.Q6J("ngIf",t.showGroupList)}}function L(t,e){1&t&&(d.TgZ(0,"app-alert",20),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"VO_DETAIL.GROUPS.NO_GROUPS")," "))}let N=(()=>{class t{constructor(t,e,i,n){this.dialog=t,this.groupService=e,this.authResolver=i,this.entityStorageService=n,this.groups=[],this.showGroupList=!1,this.selected=new o.Ov(!0,[]),this.filtering=!1,this.filterValue="",this.tableId=l.rc}onCreateGroup(){const t=(0,a.kZ)();t.width="450px",t.data={voId:this.vo.id,parentGroup:null,theme:"vo-theme"},this.dialog.open(n.y,t).afterClosed().subscribe(t=>{t&&(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 void 0!==this.tree&&this.tree.removeAuth||void 0!==this.list&&this.list.removeAuth}deleteGroup(){const t=(0,a.kZ)();t.width="450px",t.data={voId:this.vo.id,groups:this.selected.selected,theme:"vo-theme"},this.dialog.open(s.P,t).afterClosed().subscribe(t=>{t&&this.loadAllGroups()})}removeAllGroups(){this.selected.clear()}onMoveGroup(t){const e=(0,a.kZ)();e.width="550px",e.data={group:t,theme:"vo-theme"},this.dialog.open(r.c,e).afterClosed().subscribe(t=>{t&&this.loadAllGroups()})}loadAllGroups(){this.loading=!0,this.groupService.getAllRichGroupsWithAttributesByNames(this.vo.id,[u.r.GROUP_SYNC_ENABLED,u.r.GROUP_LAST_SYNC_STATE,u.r.GROUP_LAST_SYNC_TIMESTAMP,u.r.GROUP_STRUCTURE_SYNC_ENABLED,u.r.GROUP_LAST_STRUCTURE_SYNC_STATE,u.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(t=>{this.groups=t,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(t){this.filterValue=t,this.filtering=""!==t}}return t.id="VoGroupsComponent",t.\u0275fac=function(e){return new(e||t)(d.Y36(p.uw),d.Y36(c.ff),d.Y36(h.x4),d.Y36(h.fb))},t.\u0275cmp=d.Xpm({type:t,selectors:[["app-vo-groups"]],viewQuery:function(t,e){if(1&t&&(d.Gf(S,7),d.Gf(k,5),d.Gf(I,5)),2&t){let t;d.iGM(t=d.CRH())&&(e.toggle=t.first),d.iGM(t=d.CRH())&&(e.tree=t.first),d.iGM(t=d.CRH())&&(e.list=t.first)}},hostVars:2,hostBindings:function(t,e){2&t&&d.ekj("router-component",e.true)},decls:22,vars:24,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2 action-button","data-cy","create-group-button",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","warn","data-cy","delete-group-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"],["mat-flat-button","","color","accent","data-cy","create-group-button",1,"mr-2","action-button",3,"click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],["theme","vo-theme",3,"groups","expandAll","vo","selection","disableRouting","filterValue","moveGroup","refreshTable",4,"ngIf"],["theme","vo-theme",3,"tableId","groups","selection","disableMembers","displayedColumns","disableRouting","authType","filter","moveGroup","refreshTable",4,"ngIf"],["theme","vo-theme",3,"groups","expandAll","vo","selection","disableRouting","filterValue","moveGroup","refreshTable"],["tree",""],["theme","vo-theme",3,"tableId","groups","selection","disableMembers","displayedColumns","disableRouting","authType","filter","moveGroup","refreshTable"],["list",""],["alert_type","warn"]],template:function(t,e){if(1&t&&(d.TgZ(0,"div"),d.TgZ(1,"h1",0),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"perun-web-apps-refresh-button",1),d.NdJ("refresh",function(){return e.loadAllGroups()}),d.qZA(),d.YNc(5,x,3,3,"button",2),d.TgZ(6,"span",3),d.ALo(7,"translate"),d.TgZ(8,"button",4),d.NdJ("click",function(){return e.deleteGroup()}),d._uU(9),d.ALo(10,"translate"),d.qZA(),d.qZA(),d.TgZ(11,"perun-web-apps-debounce-filter",5),d.NdJ("filter",function(t){return e.applyFilter(t)}),d.qZA(),d.TgZ(12,"mat-slide-toggle",6,7),d.NdJ("change",function(){return e.removeAllGroups()})("ngModelChange",function(t){return e.showGroupList=t}),d._uU(14),d.ALo(15,"translate"),d.qZA(),d.TgZ(16,"label"),d._uU(17),d.ALo(18,"translate"),d.qZA(),d.YNc(19,R,1,0,"mat-spinner",8),d.YNc(20,M,3,2,"div",9),d.YNc(21,L,3,3,"app-alert",10),d.qZA()),2&t){const t=d.MAs(13);d.xp6(2),d.Oqu(d.lcZ(3,14,"VO_DETAIL.GROUPS.TITLE")),d.xp6(3),d.Q6J("ngIf",e.createAuth),d.xp6(1),d.s9C("matTooltip",d.lcZ(7,16,"VO_DETAIL.GROUPS.DELETE_PERMISSION_HINT")),d.Q6J("matTooltipDisabled",void 0===e.tree&&void 0===e.list||e.disableTooltip()),d.xp6(2),d.Q6J("disabled",0===e.selected.selected.length||e.disableRemove()),d.xp6(1),d.hij(" ",d.lcZ(10,18,"VO_DETAIL.GROUPS.DELETE_GROUP")," "),d.xp6(2),d.Q6J("placeholder","VO_DETAIL.GROUPS.FILTER"),d.xp6(1),d.Q6J("ngModel",e.showGroupList),d.xp6(2),d.Oqu(d.lcZ(15,20,"VO_DETAIL.GROUPS.TREE_VIEW")),d.xp6(2),d.uIk("for",t.inputId),d.xp6(1),d.Oqu(d.lcZ(18,22,"VO_DETAIL.GROUPS.LIST_VIEW")),d.xp6(2),d.Q6J("ngIf",e.loading),d.xp6(1),d.Q6J("ngIf",!e.loading&&0!==e.groups.length),d.xp6(1),d.Q6J("ngIf",0===e.groups.length&&!e.loading)}},directives:[g.t,f.O5,m.gM,b.lW,_.P,w.Rr,A.JJ,A.On,y.$g,v.I,T.W,C.w],pipes:[E.X$],styles:[""]}),t})()},28940:function(t,e,i){"use strict";i.d(e,{y:function(){return D}});var n=i(4230),s=i(68416),o=i(4374),r=i(85613),a=i(65249),c=i(67004),l=i(16073),u=i(60611),h=i(84140),d=i(88690),p=i(31572),g=i(84608),f=i(59403),m=i(36922),b=i(61511),_=i(66283),w=i(4786),A=i(91058),y=i(15980),v=i(71522),T=i(67806),C=i(91779),E=i(48160),S=i(5725);function k(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",14),p.NdJ("click",function(){return p.CHM(t),p.oxw().onAddMember()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",t.blockManualMemberAdding),p.xp6(1),p.hij(" ",p.lcZ(2,2,"VO_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function I(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",15),p.NdJ("click",function(){return p.CHM(t),p.oxw().onInviteMember()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"VO_DETAIL.MEMBERS.INVITE")," "))}function x(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",16),p.NdJ("click",function(){return p.CHM(t),p.oxw().onRemoveMembers()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",t.selection.isEmpty()),p.xp6(1),p.hij(" ",p.lcZ(2,2,"VO_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function R(t,e){if(1&t&&(p.TgZ(0,"mat-option",17),p._uU(1),p.ALo(2,"memberStatus"),p.qZA()),2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.Oqu(p.lcZ(2,2,t))}}function O(t,e){1&t&&p._UZ(0,"mat-spinner",18)}function P(t,e){if(1&t&&p._UZ(0,"perun-web-apps-members-dynamic-list",19),2&t){const t=p.oxw();p.Q6J("voId",t.vo.id)("tableId",t.tableId)("selection",t.selection)("displayedColumns",t.displayedColumns)("attrNames",t.attrNames)("searchString",t.searchString)("selectedStatuses",t.selectedStatuses)("updateTable",t.updateTable)}}let D=(()=>{class t{constructor(t,e,i,s,o,r,a){this.notificator=t,this.dialog=e,this.authzService=i,this.storeService=s,this.attributesManager=o,this.apiRequest=r,this.entityStorageService=a,this.members=null,this.selection=new n.Ov(!0,[]),this.loading=!1,this.attrNames=[c.r.MEMBER_DEF_ORGANIZATION,c.r.MEMBER_DEF_MAIL,c.r.USER_DEF_ORGANIZATION,c.r.USER_DEF_PREFERRED_MAIL,c.r.MEMBER_DEF_EXPIRATION],this.statuses=new l.NI,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=[],this.tableId=u.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(t){this.searchString=t,this.updateTable=!this.updateTable}onAddMember(){const t=(0,h.kZ)();t.width="1000px",t.data={entityId:this.vo.id,voId:this.vo.id,theme:"vo-theme",type:"vo"},this.dialog.open(r.o,t).afterClosed().subscribe(t=>{t&&(this.updateTable=!this.updateTable,this.selection.clear())})}onRemoveMembers(){const t=(0,h.kZ)();t.width="450px",t.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(o.X,t).afterClosed().subscribe(t=>{t&&(this.updateTable=!this.updateTable,this.selection.clear())})}onInviteMember(){const t=(0,h.kZ)();t.width="650px",t.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(d.R,t)}displaySelectedStatuses(){return this.selectedStatuses.length===this.statusList.length?"ALL":this.statuses.value?`${this.statuses.value[0]} ${this.statuses.value.length>1?"(+"+(this.statuses.value.length-1)+" "+(2===this.statuses.value.length?"other)":"others)"):""}`:""}isManualAddingBlocked(t){return new Promise(e=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName(t,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe(t=>{this.blockManualMemberAdding=null!==t.value,e()},t=>{"PrivilegeException"!==t.error.name&&this.notificator.showError(t),e()})})}changeStatuses(){this.selectedStatuses=this.statuses.value}}return t.id="VoMembersComponent",t.\u0275fac=function(e){return new(e||t)(p.Y36(s.V6),p.Y36(g.uw),p.Y36(s.x4),p.Y36(s.d6),p.Y36(a.H8),p.Y36(s.F5),p.Y36(s.fb))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-vo-members"]],hostVars:2,hostBindings:function(t,e){2&t&&p.ekj("router-component",e.true)},decls:23,vars:21,consts:[[1,"vo-theme"],[1,"page-subtitle"],[1,"align-elements"],[3,"click"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent","class","mr-2 action-button","data-cy","add-members",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2","data-cy","remove-members",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,"voId","tableId","selection","displayedColumns","attrNames","searchString","selectedStatuses","updateTable",4,"ngIf"],["mat-flat-button","","color","accent","data-cy","add-members",1,"mr-2","action-button",3,"disabled","click"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn","data-cy","remove-members",1,"mr-2",3,"disabled","click"],[1,"vo-theme",3,"value"],[1,"ml-auto","mr-auto"],[3,"voId","tableId","selection","displayedColumns","attrNames","searchString","selectedStatuses","updateTable"]],template:function(t,e){1&t&&(p.TgZ(0,"div",0),p.TgZ(1,"h1",1),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"div",2),p.TgZ(5,"perun-web-apps-refresh-button",3),p.NdJ("click",function(){return e.updateTable=!e.updateTable}),p.qZA(),p.TgZ(6,"div",4),p.ALo(7,"translate"),p.YNc(8,k,3,4,"button",5),p.qZA(),p.YNc(9,I,3,3,"button",6),p.YNc(10,x,3,4,"button",7),p.TgZ(11,"mat-form-field",8),p.TgZ(12,"mat-label"),p._uU(13),p.ALo(14,"translate"),p.qZA(),p.TgZ(15,"mat-select",9),p.NdJ("closed",function(){return e.changeStatuses()}),p.TgZ(16,"mat-select-trigger"),p._uU(17),p.ALo(18,"memberStatus"),p.qZA(),p.YNc(19,R,3,4,"mat-option",10),p.qZA(),p.qZA(),p.TgZ(20,"perun-web-apps-debounce-filter",11),p.NdJ("filter",function(t){return e.onSearchByString(t)}),p.qZA(),p.qZA(),p.YNc(21,O,1,0,"mat-spinner",12),p.YNc(22,P,1,8,"perun-web-apps-members-dynamic-list",13),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,13,"VO_DETAIL.MEMBERS.TITLE")),p.xp6(4),p.s9C("matTooltip",p.lcZ(7,15,"VO_DETAIL.MEMBERS.ADD_MEMBER_DISABLED")),p.Q6J("matTooltipDisabled",!e.blockManualMemberAdding),p.xp6(2),p.Q6J("ngIf",e.addAuth),p.xp6(1),p.Q6J("ngIf",e.inviteAuth),p.xp6(1),p.Q6J("ngIf",e.removeAuth),p.xp6(3),p.Oqu(p.lcZ(14,17,"VO_DETAIL.MEMBERS.FILTER_STATUS")),p.xp6(2),p.Q6J("formControl",e.statuses),p.xp6(2),p.hij(" ",p.lcZ(18,19,e.displaySelectedStatuses())," "),p.xp6(2),p.Q6J("ngForOf",e.statusList),p.xp6(1),p.Q6J("placeholder","VO_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[f.t,m.gM,b.O5,_.KE,_.hX,w.gD,l.JJ,l.oH,w.$L,b.sg,A.P,y.lW,v.ey,T.$g,C.m],pipes:[E.X$,S.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}"]}),t})()},88227:function(t,e,i){"use strict";i.d(e,{z:function(){return y}});var n=i(4230),s=i(65249),o=i(95909),r=i(60611),a=i(84140),c=i(68416),l=i(31572),u=i(84608),h=i(59403),d=i(61511),p=i(19139),g=i(15980),f=i(67806),m=i(88884),b=i(48160);function _(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",6),l.NdJ("click",function(){return l.CHM(t),l.oxw().deleteSelectedResources()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}if(2&t){const t=l.oxw();l.Q6J("disabled",0===t.selected.selected.length),l.xp6(1),l.hij(" ",l.lcZ(2,2,"VO_DETAIL.RESOURCES.LIST.DELETE")," ")}}function w(t,e){1&t&&l._UZ(0,"mat-spinner",7)}function A(t,e){if(1&t&&l._UZ(0,"perun-web-apps-resources-list",8),2&t){const t=l.oxw();l.Q6J("tableId",t.tableId)("filterValue",t.filterValue)("resources",t.resources)("routingVo",!0)("disableRouting",!t.routeAuth)("selection",t.selected)("displayedColumns",t.displayedColumns)}}let y=(()=>{class t{constructor(t,e,i,s){this.resourcesManager=t,this.dialog=e,this.authResolver=i,this.entityStorageService=s,this.resources=[],this.selected=new n.Ov(!0,[]),this.filterValue="",this.displayedColumns=[],this.tableId=r.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(t=>{this.resources=t,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(t){this.filterValue=t}deleteSelectedResources(){const t=(0,a.kZ)();t.width="450px",t.data={theme:"vo-theme",resources:this.selected.selected},this.dialog.open(o.f,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}}return t.id="VoResourcesPreviewComponent",t.\u0275fac=function(e){return new(e||t)(l.Y36(s.xk),l.Y36(u.uw),l.Y36(c.x4),l.Y36(c.fb))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-vo-resources-preview"]],hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("router-component",e.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,"tableId","filterValue","resources","routingVo","disableRouting","selection","displayedColumns",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","resources","routingVo","disableRouting","selection","displayedColumns"]],template:function(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"perun-web-apps-refresh-button",1),l.NdJ("refresh",function(){return e.refreshTable()}),l.qZA(),l.YNc(5,_,3,4,"button",2),l.TgZ(6,"perun-web-apps-immediate-filter",3),l.NdJ("filter",function(t){return e.applyFilter(t)}),l.qZA(),l.YNc(7,w,1,0,"mat-spinner",4),l.YNc(8,A,1,7,"perun-web-apps-resources-list",5),l.qZA()),2&t&&(l.xp6(2),l.Oqu(l.lcZ(3,5,"VO_DETAIL.RESOURCES.LIST.TITLE")),l.xp6(3),l.Q6J("ngIf",e.removeAuth),l.xp6(1),l.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[h.t,d.O5,p.L,g.lW,f.$g,m.C],pipes:[b.X$],styles:[""]}),t})()},97397:function(t,e,i){"use strict";i.d(e,{z:function(){return J}});var n=i(68416),s=i(65249),o=i(31572),r=i(59403),a=i(55109),c=i(61511),l=i(67033),u=i(67806),h=i(45001),d=i(27679),p=i(48160);function g(t,e){1&t&&o._UZ(0,"mat-spinner",2)}function f(t,e){if(1&t&&(o.TgZ(0,"mat-panel-description"),o.TgZ(1,"div"),o.TgZ(2,"i",10),o._uU(3," error "),o.qZA(),o._uU(4),o.ALo(5,"translate"),o.ALo(6,"translate"),o.qZA(),o.qZA()),2&t){const t=o.oxw().$implicit,e=o.oxw(2);o.xp6(4),o.HOy(" ",e.getErrorCountStates(t)," ",o.lcZ(5,4,"VO_DETAIL.RESOURCES.STATES.FROM")," ",t.taskList.length," ",o.lcZ(6,6,"VO_DETAIL.RESOURCES.STATES.TASKS_WITH_ERROR_STATE")," ")}}function m(t,e){1&t&&(o.TgZ(0,"th",23),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ID")))}function b(t,e){if(1&t&&(o.TgZ(0,"td",24),o._uU(1),o.qZA()),2&t){const t=e.$implicit;o.xp6(1),o.Oqu(t.id)}}function _(t,e){1&t&&(o.TgZ(0,"th",23),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SERVICE")))}function w(t,e){if(1&t&&(o.TgZ(0,"td",24),o._uU(1),o.qZA()),2&t){const t=e.$implicit;o.xp6(1),o.Oqu(t.service.name)}}function A(t,e){1&t&&(o.TgZ(0,"th",23),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STATUS")))}function y(t,e){if(1&t&&(o.TgZ(0,"td",24),o._uU(1),o.qZA()),2&t){const t=e.$implicit;o.xp6(1),o.Oqu(t.status)}}function v(t,e){1&t&&(o.TgZ(0,"th",23),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SCHEDULED")))}function T(t,e){if(1&t&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&t){const t=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,t.schedule,"d.M.y H:mm:ss")," ")}}function C(t,e){1&t&&(o._uU(0),o.ALo(1,"translate")),2&t&&o.hij(" ",o.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function E(t,e){if(1&t&&(o.TgZ(0,"td",24),o.YNc(1,T,3,4,"div",25),o.YNc(2,C,2,3,"ng-template",26,27,o.W1O),o.qZA()),2&t){const t=e.$implicit,i=o.MAs(3);o.xp6(1),o.Q6J("ngIf",t.schedule)("ngIfElse",i)}}function S(t,e){1&t&&(o.TgZ(0,"th",23),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STARTED")))}function k(t,e){if(1&t&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&t){const t=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,t.schedule,"d.M.y H:mm:ss")," ")}}function I(t,e){1&t&&(o._uU(0),o.ALo(1,"translate")),2&t&&o.hij(" ",o.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function x(t,e){if(1&t&&(o.TgZ(0,"td",24),o.YNc(1,k,3,4,"div",25),o.YNc(2,I,2,3,"ng-template",26,27,o.W1O),o.qZA()),2&t){const t=e.$implicit,i=o.MAs(3);o.xp6(1),o.Q6J("ngIf",t.startTime)("ngIfElse",i)}}function R(t,e){1&t&&(o.TgZ(0,"th",23),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ENDED")))}function O(t,e){if(1&t&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&t){const t=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,t.schedule,"d.M.y H:mm:ss")," ")}}function P(t,e){1&t&&(o._uU(0),o.ALo(1,"translate")),2&t&&o.hij(" ",o.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function D(t,e){if(1&t&&(o.TgZ(0,"td",24),o.YNc(1,O,3,4,"div",25),o.YNc(2,P,2,3,"ng-template",26,27,o.W1O),o.qZA()),2&t){const t=e.$implicit,i=o.MAs(3);o.xp6(1),o.Q6J("ngIf",t.endTime)("ngIfElse",i)}}function M(t,e){1&t&&o._UZ(0,"tr",28)}const L=function(t,e,i){return{redTableItem:t,greenTableItem:e,yellowTableItem:i}};function N(t,e){if(1&t&&o._UZ(0,"tr",29),2&t){const t=e.$implicit;o.Q6J("ngClass",o.kEZ(1,L,"ERROR"===t.status||"SENDERROR"===t.status||"GENERROR"===t.status,"DONE"===t.status,"WARNING"===t.status))}}function z(t,e){if(1&t&&(o.TgZ(0,"table",12),o.ynx(1,13),o.YNc(2,m,3,3,"th",14),o.YNc(3,b,2,1,"td",15),o.BQk(),o.ynx(4,16),o.YNc(5,_,3,3,"th",14),o.YNc(6,w,2,1,"td",15),o.BQk(),o.ynx(7,17),o.YNc(8,A,3,3,"th",14),o.YNc(9,y,2,1,"td",15),o.BQk(),o.ynx(10,18),o.YNc(11,v,3,3,"th",14),o.YNc(12,E,4,2,"td",15),o.BQk(),o.ynx(13,19),o.YNc(14,S,3,3,"th",14),o.YNc(15,x,4,2,"td",15),o.BQk(),o.ynx(16,20),o.YNc(17,R,3,3,"th",14),o.YNc(18,D,4,2,"td",15),o.BQk(),o.YNc(19,M,1,0,"tr",21),o.YNc(20,N,1,5,"tr",22),o.qZA()),2&t){const t=o.oxw(2).$implicit,e=o.oxw(2);o.Q6J("dataSource",e.datasources[e.propagation.indexOf(t)]),o.xp6(19),o.Q6J("matHeaderRowDef",e.displayedColumns),o.xp6(1),o.Q6J("matRowDefColumns",e.displayedColumns)}}function Z(t,e){1&t&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_TASKS")," "))}function B(t,e){if(1&t&&(o._UZ(0,"mat-divider"),o.YNc(1,z,21,3,"table",11),o.YNc(2,Z,3,3,"div",8)),2&t){const t=o.oxw().$implicit;o.xp6(1),o.Q6J("ngIf",0!==t.taskList.length),o.xp6(1),o.Q6J("ngIf",0===t.taskList.length)}}function q(t,e){if(1&t&&(o.TgZ(0,"mat-expansion-panel"),o.TgZ(1,"mat-expansion-panel-header"),o.TgZ(2,"mat-panel-title"),o._UZ(3,"img",6),o.TgZ(4,"div",7),o._uU(5),o.qZA(),o.qZA(),o.YNc(6,f,7,8,"mat-panel-description",8),o.qZA(),o.YNc(7,B,3,2,"ng-template",9),o.qZA()),2&t){const t=e.$implicit,i=o.oxw(2);o.xp6(5),o.hij(" ",t.resource.name," "),o.xp6(1),o.Q6J("ngIf",0!==i.getErrorCountStates(t))}}function F(t,e){if(1&t&&(o.TgZ(0,"div",3),o.TgZ(1,"mat-accordion",4),o.YNc(2,q,8,2,"mat-expansion-panel",5),o.qZA(),o.qZA()),2&t){const t=o.oxw();o.xp6(2),o.Q6J("ngForOf",t.propagation)}}let U=(()=>{class t{constructor(){this.propagation=[],this.loading=!1,this.datasources=[],this.displayedColumns=["id","service","status","scheduled","started","ended"]}getErrorCountStates(t){let e=0;for(const i of t.taskList)"ERROR"!==i.status&&"GENERROR"!==i.status&&"SENDERROR"!==i.status||e++;return e}getDataSource(){this.datasources=[];for(const t of this.propagation)this.datasources.push(new l.by(t.taskList))}ngOnChanges(){this.getDataSource()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-state-tab"]],inputs:{propagation:"propagation",loading:"loading"},features:[o.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"],["src","assets/img/PerunWebImages/resource-black.svg","height","28","width","28"],[1,"ml-2"],[4,"ngIf"],["matExpansionPanelContent",""],[1,"material-icons","red"],["mat-table","","class","w-100",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(t,e){1&t&&(o.YNc(0,g,1,0,"mat-spinner",0),o.YNc(1,F,3,1,"div",1)),2&t&&(o.Q6J("ngIf",e.loading),o.xp6(1),o.Q6J("ngIf",!e.loading))},directives:[c.O5,u.$g,h.pp,c.sg,h.ib,h.yz,h.yK,h.HS,h.u4,d.d,l.BZ,l.w1,l.fO,l.Dz,l.as,l.nj,l.ge,l.ev,l.XQ,l.Gk,c.mk],pipes:[p.X$,c.uU],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-description[_ngcontent-%COMP%], .headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_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}"]}),t})();var H=i(39571);function G(t,e){if(1&t&&(o._uU(0),o.ALo(1,"translate"),o.TgZ(2,"span",5),o._uU(3),o.qZA()),2&t){const t=o.oxw();o.hij(" ",o.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.ERROR_RESOURCES")," "),o.xp6(3),o.Oqu(t.errorPropagation.length)}}function j(t,e){1&t&&(o.TgZ(0,"app-alert",8),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_ERROR")," "))}function Y(t,e){if(1&t&&(o.YNc(0,j,3,3,"app-alert",6),o._UZ(1,"app-state-tab",7)),2&t){const t=o.oxw();o.Q6J("ngIf",!t.loading&&0===t.errorPropagation.length),o.xp6(1),o.Q6J("loading",t.loading)("propagation",t.errorPropagation)}}function K(t,e){if(1&t&&(o._uU(0),o.ALo(1,"translate"),o.TgZ(2,"span",9),o._uU(3),o.qZA()),2&t){const t=o.oxw();o.hij(" ",o.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.OK_RESOURCES")," "),o.xp6(3),o.Oqu(t.okPropagation.length)}}function V(t,e){1&t&&(o.TgZ(0,"app-alert",8),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_OK")," "))}function $(t,e){if(1&t&&(o.YNc(0,V,3,3,"app-alert",6),o._UZ(1,"app-state-tab",7)),2&t){const t=o.oxw();o.Q6J("ngIf",!t.loading&&0===t.okPropagation.length),o.xp6(1),o.Q6J("loading",t.loading)("propagation",t.okPropagation)}}let J=(()=>{class t{constructor(t,e){this.taskService=t,this.entityStorageService=e,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(t=>{this.resourceStates=t,this.okPropagation=[],this.errorPropagation=[];for(const e of t){let t=!0;for(const i of e.taskList)if("ERROR"===i.status||"GENERROR"===i.status||"SENDERROR"===i.status){t=!1;break}t?this.okPropagation.push(e):this.errorPropagation.push(e)}this.loading=!1},()=>this.loading=!1)}}return t.id="VoResourcesStatesComponent",t.\u0275fac=function(e){return new(e||t)(o.Y36(s.Ob),o.Y36(n.fb))},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-vo-resources-states"]],hostVars:2,hostBindings:function(t,e){2&t&&o.ekj("router-component",e.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(t,e){1&t&&(o.TgZ(0,"h1",0),o._uU(1),o.ALo(2,"translate"),o.qZA(),o.TgZ(3,"perun-web-apps-refresh-button",1),o.NdJ("refresh",function(){return e.refreshTable()}),o.qZA(),o.TgZ(4,"mat-tab-group",2),o.NdJ("selectedIndexChange",function(t){return e.selectedIndex=t}),o.TgZ(5,"mat-tab"),o.YNc(6,G,4,4,"ng-template",3),o.YNc(7,Y,2,3,"ng-template",4),o.qZA(),o.TgZ(8,"mat-tab"),o.YNc(9,K,4,4,"ng-template",3),o.YNc(10,$,2,3,"ng-template",4),o.qZA(),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,2,"VO_DETAIL.RESOURCES.STATES.TITLE")),o.xp6(3),o.Q6J("selectedIndex",e.selectedIndex))},directives:[r.t,a.SP,a.uX,a.uD,a.Vc,c.O5,U,H.w],pipes:[p.X$],styles:[""]}),t})()},14527:function(t,e,i){"use strict";i.d(e,{w:function(){return R}});var n=i(24555),s=i(68416),o=i(68570),r=i(92438),a=i(75954),c=i(65249),l=i(84140),u=i(31572),h=i(84608),d=i(48160),p=i(57629),g=i(61511),f=i(27679),m=i(59403),b=i(15980),_=i(92846),w=i(67806),A=i(43691),y=i(36922),v=i(39571);function T(t,e){1&t&&u._UZ(0,"mat-spinner",13)}function C(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"button",21),u.NdJ("click",function(){return u.CHM(t),u.oxw(2).settings()}),u.TgZ(1,"i",10),u._uU(2,"edit"),u.qZA(),u._uU(3),u.ALo(4,"translate"),u.qZA()}2&t&&(u.xp6(3),u.hij(" ",u.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function E(t,e){if(1&t&&(u.TgZ(0,"div",14),u.TgZ(1,"div",15),u.TgZ(2,"div",16),u._uU(3),u.ALo(4,"translate"),u.qZA(),u.TgZ(5,"div"),u.TgZ(6,"span",16),u._uU(7),u.ALo(8,"translate"),u.qZA(),u._uU(9,": "),u.TgZ(10,"mat-icon",17),u._uU(11,"arrow_right_alt"),u.qZA(),u._uU(12),u.ALo(13,"translate"),u.ALo(14,"translate"),u.TgZ(15,"mat-icon",18),u._uU(16,"restore"),u.qZA(),u._uU(17),u.ALo(18,"translate"),u.ALo(19,"translate"),u.qZA(),u.qZA(),u.TgZ(20,"div",19),u.YNc(21,C,5,3,"button",20),u.qZA(),u.qZA()),2&t){const t=u.oxw();u.xp6(3),u.AsE("",u.lcZ(4,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",t.applicationForm.moduleClassName," "),u.xp6(4),u.Oqu(u.lcZ(8,8,"VO_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),u.xp6(5),u.hij(" ",t.applicationForm.automaticApproval?u.lcZ(13,10,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):u.lcZ(14,12,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL"),", "),u.xp6(5),u.hij(" ",t.applicationForm.automaticApprovalExtension?u.lcZ(18,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):u.lcZ(19,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),u.xp6(4),u.Q6J("ngIf",t.editAuth)}}function S(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"button",22),u.NdJ("click",function(){return u.CHM(t),u.oxw().add()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function k(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"button",23),u.NdJ("click",function(){return u.CHM(t),u.oxw().save()}),u.TgZ(1,"i",10),u._uU(2,"save"),u.qZA(),u._uU(3),u.ALo(4,"translate"),u.qZA()}if(2&t){const t=u.oxw();u.Q6J("disabled",!t.itemsChanged),u.xp6(3),u.hij(" ",u.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function I(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"button",24),u.NdJ("click",function(){return u.CHM(t),u.oxw().copy()}),u.TgZ(1,"i",10),u._uU(2,"file_copy"),u.qZA(),u._uU(3),u.ALo(4,"translate"),u.qZA()}2&t&&(u.xp6(3),u.hij(" ",u.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.COPY_VO_BUTTON")," "))}function x(t,e){1&t&&(u.TgZ(0,"app-alert",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}let R=(()=>{class t{constructor(t,e,i,n,s,o,r,a){this.registrarManager=t,this.dialog=e,this.notificator=i,this.translate=n,this.router=s,this.authResolver=o,this.voService=r,this.entityStorageService=a,this.loading=!1,this.applicationFormItems=[],this.itemsChanged=!1,this.displayedColumns=[],this.idCounter=-1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.registrarManager.getVoApplicationForm(this.vo.id).subscribe(t=>{this.applicationForm=t,this.registrarManager.getFormItemsForVo(this.vo.id).subscribe(t=>{this.applicationFormItems=t,this.loading=!1})})}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"]}add(){let t=(0,l.kZ)();t.width="500px",t.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(r.J,t).afterClosed().subscribe(e=>{e&&(this.applicationFormItems=Object.assign([],e[0]),t=(0,l.kZ)(),t.width="600px",t.height="600px",t.data={voId:this.vo.id,applicationFormItem:e[1],theme:"vo-theme",allItems:this.applicationFormItems},this.dialog.open(a._,t),this.itemsChanged=!0)})}copy(){const t=(0,l.kZ)();t.width="500px",t.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(o.W,t).afterClosed().subscribe(t=>{t&&this.updateFormItems()})}settings(){const t=(0,l.kZ)();t.width="400px",t.data={entity:"vo",applicationForm:this.applicationForm,theme:"vo-theme"},this.dialog.open(n.E,t).afterClosed().subscribe(t=>{t&&(this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.applicationForm=t)})}preview(){this.router.navigate(["/organizations",this.vo.id,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)}})}updateFormItems(){this.loading=!0,this.registrarManager.getFormItemsForVo(this.vo.id).subscribe(t=>{this.applicationFormItems=t,this.itemsChanged=!1,this.setAuthRights(),this.loading=!1})}changeItems(){this.itemsChanged=!0}save(){let t=0;for(const e of this.applicationFormItems)e.ordnum=t,e.forDelete||t++;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(t=>{this.notificator.showSuccess(t)}),this.updateFormItems()})}clear(){this.applicationFormItems.forEach(t=>t.forDelete=!0),this.itemsChanged=!0}}return t.id="VoSettingsApplicationFormComponent",t.\u0275fac=function(e){return new(e||t)(u.Y36(c.tk),u.Y36(h.uw),u.Y36(s.V6),u.Y36(d.sK),u.Y36(p.F0),u.Y36(s.x4),u.Y36(c.YF),u.Y36(s.fb))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-vo-settings-application-form"]],hostVars:2,hostBindings:function(t,e){2&t&&u.ekj("router-component",e.true)},decls:19,vars:17,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"],["mat-flat-button","","color","accent","class","mr-2 action-button","data-cy","add-form-item",3,"click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2","data-cy","save-application-form",3,"disabled","click",4,"ngIf"],["mat-stroked-button","","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],["alert_type","info",4,"ngIf"],[3,"loading","applicationForm","applicationFormItems","theme","displayedColumns","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"],["mat-stroked-button","","class","ml-auto action-button",3,"click",4,"ngIf"],["mat-stroked-button","",1,"ml-auto","action-button",3,"click"],["mat-flat-button","","color","accent","data-cy","add-form-item",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","accent","data-cy","save-application-form",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],["alert_type","info"]],template:function(t,e){1&t&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.YNc(3,T,1,0,"mat-spinner",1),u.TgZ(4,"div"),u.YNc(5,E,22,18,"div",2),u._UZ(6,"mat-divider",3),u.TgZ(7,"div",4),u.TgZ(8,"perun-web-apps-refresh-button",5),u.NdJ("refresh",function(){return e.updateFormItems()}),u.qZA(),u.YNc(9,S,3,3,"button",6),u.YNc(10,k,5,4,"button",7),u.YNc(11,I,5,3,"button",8),u.TgZ(12,"button",9),u.NdJ("click",function(){return e.preview()}),u.TgZ(13,"i",10),u._uU(14,"search"),u.qZA(),u._uU(15),u.ALo(16,"translate"),u.qZA(),u.qZA(),u.YNc(17,x,3,3,"app-alert",11),u.TgZ(18,"app-application-form-list",12),u.NdJ("applicationFormItemsChange",function(){return e.changeItems()}),u.qZA(),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,13,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),u.xp6(2),u.Q6J("ngIf",e.loading),u.xp6(2),u.Q6J("ngIf",!e.loading),u.xp6(4),u.Q6J("ngIf",e.editAuth),u.xp6(1),u.Q6J("ngIf",e.editAuth),u.xp6(1),u.Q6J("ngIf",e.editAuth),u.xp6(4),u.hij(" ",u.lcZ(16,15,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),u.xp6(2),u.Q6J("ngIf",e.editAuth),u.xp6(1),u.Q6J("loading",e.loading)("applicationForm",e.applicationForm)("applicationFormItems",e.applicationFormItems)("theme","vo-theme")("displayedColumns",e.displayedColumns))},directives:[g.O5,f.d,m.t,b.lW,_.b,w.$g,A.Hw,y.gM,v.w],pipes:[d.X$],styles:[""]}),t})()},48666:function(t,e,i){"use strict";i.d(e,{T:function(){return we}});var n=i(65249),s=i(4230),o=i(60611),r=i(84140),a=i(84608),c=i(68416),l=i(16073),u=i(61511),h=i(14732),d=i(18820),p=i(31572),g=i(48160),f=i(67806),m=i(70663),b=i(66283),_=i(80340),w=i(4786),A=i(36922),y=i(29236),v=i(90888),T=i(54810),C=i(15812);let E=(()=>{class t{constructor(){this.expiration="never",this.expirationControl=new l.NI(null),this.datePicker=new p.vpe}ngOnInit(){const t=new Date;this.minDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()),this.expirationControl.setValue((0,u.p6)(this.minDate,"yyyy-MM-dd","en-GB"))}setExpiration(){this.expiration=(0,u.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB"),this.expirationControl.setValue((0,u.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB")),this.emitDate()}emitDate(){"never"!==this.expiration&&""===this.expirationControl.value||this.datePicker.emit(this.expiration)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=p.Xpm({type:t,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(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-radio-group",0),p.NdJ("ngModelChange",function(t){return e.expiration=t})("change",function(){return e.emitDate()}),p.TgZ(1,"mat-radio-button",1),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"mat-radio-button",2),p.TgZ(5,"mat-form-field",3),p.NdJ("click",function(){return p.CHM(t),p.MAs(12).open()}),p.TgZ(6,"mat-label"),p._uU(7),p.ALo(8,"translate"),p.qZA(),p.TgZ(9,"input",4),p.NdJ("dateChange",function(){return e.setExpiration()}),p.qZA(),p._UZ(10,"mat-datepicker-toggle",5),p._UZ(11,"mat-datepicker",6,7),p.qZA(),p.qZA(),p.qZA()}if(2&t){const t=p.MAs(12);p.Q6J("ngModel",e.expiration),p.xp6(2),p.hij(" ",p.lcZ(3,10,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),p.xp6(2),p.s9C("value",e.expirationControl.value),p.xp6(3),p.Oqu(p.lcZ(8,12,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),p.xp6(2),p.Q6J("min",e.minDate)("formControl",e.expirationControl)("matDatepicker",t),p.xp6(1),p.Q6J("for",t)("disabled",!1),p.xp6(1),p.Q6J("disabled",!1)}},directives:[T.VQ,l.JJ,l.On,T.U0,b.KE,b.hX,_.Nt,l.Fj,C.hl,l.oH,C.nW,b.R9,C.Mq],pipes:[g.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();var S=i(39571),k=i(71522),I=i(7927),x=i(43691),R=i(15980),O=i(22196);const P=["stepper"];function D(t,e){1&t&&(p.TgZ(0,"h1",4),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE")))}function M(t,e){1&t&&p._UZ(0,"mat-spinner",5)}function L(t,e){1&t&&(p._uU(0),p.ALo(1,"translate")),2&t&&p.Oqu(p.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_LABEL"))}function N(t,e){1&t&&(p.TgZ(0,"app-alert",34),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function z(t,e){1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function Z(t,e){1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function B(t,e){1&t&&(p._uU(0),p.ALo(1,"translate")),2&t&&p.Oqu(p.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_LABEL"))}function q(t,e){if(1&t&&(p.TgZ(0,"mat-option",35),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.hij(" ",t," ")}}function F(t,e){1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_ERROR")," "))}function U(t,e){1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function H(t,e){1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL_ERROR")," "))}function G(t,e){1&t&&(p._uU(0),p.ALo(1,"translate")),2&t&&p.Oqu(p.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_LABEL"))}function j(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div"),p.TgZ(1,"perun-web-apps-user-search-select",36),p.NdJ("userSelected",function(e){return p.CHM(t),p.oxw(2).selectedSponsor=e}),p.qZA(),p.qZA()}if(2&t){const t=p.oxw(2);p.xp6(1),p.Q6J("users",t.voSponsors)("disableAutoSelect",!0)}}function Y(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div",6),p.TgZ(1,"mat-stepper",7,8),p.TgZ(3,"mat-step",9),p.YNc(4,L,2,3,"ng-template",10),p.YNc(5,N,3,3,"app-alert",11),p.TgZ(6,"form",12),p.TgZ(7,"h5",13),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"mat-form-field",14),p._UZ(11,"input",15),p.ALo(12,"translate"),p.YNc(13,z,3,3,"mat-error",16),p.qZA(),p.TgZ(14,"mat-form-field"),p._UZ(15,"input",17),p.ALo(16,"translate"),p.YNc(17,Z,3,3,"mat-error",16),p.qZA(),p.TgZ(18,"mat-form-field"),p._UZ(19,"input",18),p.ALo(20,"translate"),p.qZA(),p.TgZ(21,"mat-form-field"),p._UZ(22,"input",19),p.ALo(23,"translate"),p.qZA(),p.qZA(),p.qZA(),p.TgZ(24,"mat-step",9),p.YNc(25,B,2,3,"ng-template",10),p.TgZ(26,"h5",13),p._uU(27),p.ALo(28,"translate"),p.qZA(),p.TgZ(29,"form",20),p.TgZ(30,"mat-form-field"),p.TgZ(31,"mat-select",21),p.NdJ("valueChange",function(e){return p.CHM(t),p.oxw().onNamespaceChanged(e)}),p.ALo(32,"translate"),p.YNc(33,q,2,2,"mat-option",22),p.qZA(),p.YNc(34,F,3,3,"mat-error",16),p.qZA(),p.TgZ(35,"mat-form-field",23),p.ALo(36,"translate"),p._UZ(37,"input",24),p.ALo(38,"translate"),p.YNc(39,U,3,3,"mat-error",16),p.qZA(),p.TgZ(40,"mat-form-field"),p._UZ(41,"input",25),p.ALo(42,"translate"),p.YNc(43,H,3,3,"mat-error",16),p.qZA(),p.TgZ(44,"span",23),p.ALo(45,"translate"),p.TgZ(46,"mat-checkbox",26),p.NdJ("change",function(){return p.CHM(t),p.oxw().passwordResetChange()}),p._uU(47),p.ALo(48,"translate"),p.qZA(),p.qZA(),p._UZ(49,"perun-web-apps-password-form",27),p.qZA(),p.qZA(),p.TgZ(50,"mat-step"),p.YNc(51,G,2,3,"ng-template",10),p.TgZ(52,"div",28),p.TgZ(53,"h5",13),p._uU(54),p.ALo(55,"translate"),p.qZA(),p.TgZ(56,"div",14),p.TgZ(57,"h6"),p._uU(58),p.ALo(59,"translate"),p.qZA(),p.TgZ(60,"mat-radio-group",29),p.NdJ("ngModelChange",function(e){return p.CHM(t),p.oxw().sponsorType=e}),p.TgZ(61,"span",30),p.ALo(62,"translate"),p.TgZ(63,"mat-radio-button",31),p.NdJ("click",function(){return p.CHM(t),p.oxw().selectedSponsor=null}),p._uU(64),p.ALo(65,"translate"),p.qZA(),p.qZA(),p.TgZ(66,"span",30),p.ALo(67,"translate"),p.TgZ(68,"mat-radio-button",32),p._uU(69),p.ALo(70,"translate"),p.qZA(),p.qZA(),p.qZA(),p.YNc(71,j,2,2,"div",16),p.qZA(),p.TgZ(72,"h6",14),p._uU(73),p.ALo(74,"translate"),p.qZA(),p.TgZ(75,"perun-web-apps-expiration-select",33),p.NdJ("datePicker",function(e){return p.CHM(t),p.oxw().setExpiration(e)}),p.qZA(),p.qZA(),p.qZA(),p.qZA(),p.qZA()}if(2&t){const t=p.oxw();p.xp6(1),p.Q6J("linear",!0),p.xp6(2),p.Q6J("stepControl",t.userControl),p.xp6(2),p.Q6J("ngIf",t.functionalityNotSupported),p.xp6(1),p.Q6J("formGroup",t.userControl),p.xp6(2),p.hij(" ",p.lcZ(9,42,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_TITLE")," "),p.xp6(3),p.s9C("placeholder",p.lcZ(12,44,"DIALOGS.CREATE_SPONSORED_MEMBER.FIRST_NAME")),p.xp6(2),p.Q6J("ngIf",t.userControl.hasError("required","firstName")),p.xp6(2),p.s9C("placeholder",p.lcZ(16,46,"DIALOGS.CREATE_SPONSORED_MEMBER.LAST_NAME")),p.xp6(2),p.Q6J("ngIf",t.userControl.hasError("required","lastName")),p.xp6(2),p.s9C("placeholder",p.lcZ(20,48,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_BEFORE")),p.xp6(3),p.s9C("placeholder",p.lcZ(23,50,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_AFTER")),p.xp6(2),p.Q6J("stepControl",t.namespaceControl),p.xp6(3),p.Oqu(p.lcZ(28,52,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_TITLE")),p.xp6(2),p.Q6J("formGroup",t.namespaceControl),p.xp6(2),p.s9C("placeholder",p.lcZ(32,54,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE")),p.xp6(2),p.Q6J("ngForOf",t.namespaceOptions),p.xp6(1),p.Q6J("ngIf",t.namespaceControl.hasError("required","namespace")),p.xp6(1),p.s9C("matTooltip",p.lcZ(36,56,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN_DISABLED")),p.Q6J("matTooltipDisabled",t.namespaceControl.get("login").enabled),p.xp6(2),p.s9C("placeholder",p.lcZ(38,58,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN")),p.xp6(2),p.Q6J("ngIf",t.namespaceControl.hasError("required","login")),p.xp6(2),p.s9C("placeholder",p.lcZ(42,60,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL")),p.xp6(2),p.Q6J("ngIf",t.namespaceControl.hasError("required","email")||t.namespaceControl.hasError("pattern","email")),p.xp6(1),p.s9C("matTooltip",p.lcZ(45,62,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET_DISABLED")),p.Q6J("matTooltipDisabled",t.namespaceControl.get("passwordReset").enabled),p.xp6(3),p.hij("",p.lcZ(48,64,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET")," "),p.xp6(2),p.Q6J("formGroup",t.namespaceControl)("tooltipPwdViaEmail",t.namespaceControl.get("passwordReset").value)("namespace",t.selectedNamespace),p.xp6(5),p.Oqu(p.lcZ(55,66,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_TITLE")),p.xp6(4),p.Oqu(p.lcZ(59,68,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SPONSOR")),p.xp6(2),p.Q6J("ngModel",t.sponsorType),p.xp6(1),p.s9C("matTooltip",p.lcZ(62,70,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF_DISABLED")),p.Q6J("matTooltipDisabled",t.isSponsor),p.xp6(2),p.Q6J("disabled",!t.isSponsor),p.xp6(1),p.hij(" ",p.lcZ(65,72,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF")," "),p.xp6(2),p.s9C("matTooltip",p.lcZ(67,74,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER_DISABLED")),p.Q6J("matTooltipDisabled",t.isPerunAdmin),p.xp6(2),p.Q6J("disabled",!t.isPerunAdmin),p.xp6(1),p.hij(" ",p.lcZ(70,76,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER")," "),p.xp6(2),p.Q6J("ngIf","other"===t.sponsorType),p.xp6(2),p.Oqu(p.lcZ(74,78,"DIALOGS.CREATE_SPONSORED_MEMBER.EXPIRATION"))}}function K(t,e){if(1&t&&(p.TgZ(0,"div",6),p.TgZ(1,"div",37),p.TgZ(2,"mat-icon",38),p._uU(3,"done"),p.qZA(),p._uU(4),p.ALo(5,"translate"),p.TgZ(6,"i"),p._uU(7),p.ALo(8,"userFullName"),p.qZA(),p._uU(9),p.ALo(10,"translate"),p.qZA(),p.TgZ(11,"div"),p._uU(12),p.ALo(13,"translate"),p.qZA(),p.TgZ(14,"div"),p._uU(15),p.ALo(16,"translate"),p.qZA(),p.TgZ(17,"app-alert",39),p._uU(18),p.ALo(19,"translate"),p.qZA(),p.qZA()),2&t){const t=p.oxw();p.xp6(4),p.hij(" ",p.lcZ(5,8,"DIALOGS.CREATE_SPONSORED_MEMBER.USER")," "),p.xp6(3),p.Oqu(p.lcZ(8,10,t.createdMember.user)),p.xp6(2),p.hij(" ",p.lcZ(10,12,"DIALOGS.CREATE_SPONSORED_MEMBER.WAS_CREATED")," "),p.xp6(3),p.AsE("",p.lcZ(13,14,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN"),": ",t.loginThatWasSet,""),p.xp6(3),p.AsE("",p.lcZ(16,16,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD")," : ",t.namespaceControl.get("passwordCtrl").value," "),p.xp6(3),p.Oqu(p.lcZ(19,18,"DIALOGS.CREATE_SPONSORED_MEMBER.COPY_INFORMATION"))}}function V(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div",40),p.TgZ(1,"button",41),p.NdJ("click",function(){return p.CHM(t),p.oxw().onCancel()}),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.qZA()}2&t&&(p.xp6(2),p.hij(" ",p.lcZ(3,1,"DIALOGS.CREATE_SPONSORED_MEMBER.OK")," "))}function $(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",41),p.NdJ("click",function(){return p.CHM(t),p.oxw(2).stepperPrevious()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.BACK")," "))}function J(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",46),p.NdJ("click",function(){return p.CHM(t),p.oxw(2).stepperNext()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw(2);p.ekj("ml-2",void 0!==t.stepper&&0!==t.stepper.selectedIndex)("ml-auto",!(void 0!==t.stepper&&0!==t.stepper.selectedIndex)),p.Q6J("disabled",t.getStepperNextConditions()),p.xp6(1),p.hij(" ",p.lcZ(2,6,"DIALOGS.CREATE_SPONSORED_MEMBER.NEXT")," ")}}function Q(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",47),p.NdJ("click",function(){return p.CHM(t),p.oxw(2).onConfirm()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw(2);p.Q6J("disabled",null===t.sponsorType||"other"===t.sponsorType&&null===t.selectedSponsor),p.xp6(1),p.hij(" ",p.lcZ(2,2,"DIALOGS.CREATE_SPONSORED_MEMBER.SUBMIT")," ")}}function W(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div",40),p.TgZ(1,"button",42),p.NdJ("click",function(){return p.CHM(t),p.oxw().onCancel()}),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.YNc(4,$,3,3,"button",43),p.YNc(5,J,3,8,"button",44),p.YNc(6,Q,3,4,"button",45),p.qZA()}if(2&t){const t=p.oxw();p.xp6(2),p.hij(" ",p.lcZ(3,4,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),p.xp6(2),p.Q6J("ngIf",void 0!==t.stepper&&0!==t.stepper.selectedIndex),p.xp6(1),p.Q6J("ngIf",void 0!==t.stepper&&t.stepper.selectedIndex!==t.stepper._steps.length-1),p.xp6(1),p.Q6J("ngIf",void 0!==t.stepper&&t.stepper.selectedIndex===t.stepper._steps.length-1)}}let X=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,l,u){this.dialogRef=t,this.data=e,this.membersService=i,this.apiRequestConfiguration=n,this.usersService=s,this.store=o,this.translator=r,this.authzService=a,this.guiAuthResolver=c,this.formBuilder=l,this.cd=u,this.loading=!1,this.functionalityNotSupported=!1,this.loginThatWasSet="",this.successfullyCreated=!1,this.namespaceOptions=[],this.namespaceRules=[],this.selectedNamespace=null,this.parsedRules=new Map,this.userControl=null,this.namespaceControl=null,this.voSponsors=[],this.selectedSponsor=null,this.sponsorType="self",this.isSponsor=!1,this.isPerunAdmin=!1,this.expiration="never"}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voSponsors=this.data.sponsors,this.isSponsor=this.guiAuthResolver.principalHasRole(h.u.SPONSOR,"Vo",this.data.voId),this.isPerunAdmin=this.guiAuthResolver.isPerunAdmin(),this.sponsorType=this.isSponsor?"self":"other",this.userControl=this.formBuilder.group({firstName:["",l.kI.required],lastName:["",l.kI.required],titleBefore:[""],titleAfter:[""]}),this.namespaceControl=this.formBuilder.group({namespace:["",l.kI.required],login:["",[l.kI.required]],passwordCtrl:["",l.kI.required,[(0,d.yT)(null,this.usersService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],passwordReset:[!1,[]],email:["",[l.kI.required,l.kI.pattern(r.B2)]]},{validators:r.dN.passwordMatchValidator}),this.membersService.getAllNamespacesRules().subscribe(t=>{this.store.get("allow_empty_sponsor_namespace")&&this.namespaceRules.push({namespaceName:"No namespace",requiredAttributes:[],optionalAttributes:[]}),this.namespaceRules=this.namespaceRules.concat(t),this.parseNamespaceRules(),0===this.namespaceOptions.length&&(this.functionalityNotSupported=!0),this.loading=!1,this.cd.detectChanges()})}parseNamespaceRules(){for(const t of this.namespaceRules){this.namespaceOptions.push(t.namespaceName);const e={login:"disabled",password:"disabled"};this.parseAttributes(e,t.requiredAttributes,"required"),this.parseAttributes(e,t.optionalAttributes,"optional"),this.parsedRules.set(t.namespaceName,e)}}parseAttributes(t,e,i){for(const n of e)switch(n){case"login":t.login=i;break;case"password":t.password=i}}onConfirm(){this.loading=!0;const t={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},e=this.namespaceControl.get("namespace").value,i=this.parsedRules.get(e);"No namespace"!==e&&(t.userData.namespace=e),"disabled"!==i.login&&(t.userData.login=this.namespaceControl.get("login").value),"disabled"!==i.password&&(t.sendActivationLink=this.namespaceControl.get("passwordReset").value,t.userData.password=this.namespaceControl.get("passwordCtrl").value),"never"!==this.expiration&&(t.validityTo=this.expiration),this.membersService.createSponsoredMember(t).subscribe(t=>{this.successfullyCreated=!0,this.dialogRef.updateSize("600px"),this.createdMember=t,t&&t.userAttributes&&t.userAttributes.filter(t=>"login-namespace"===t.baseFriendlyName).filter(t=>t.friendlyNameParameter===e).filter(t=>null!==t.value).forEach(t=>{this.loginThatWasSet=t.value.toString()}),this.loading=!1},()=>{this.loading=!1})}onCancel(){this.successfullyCreated?this.dialogRef.close(!0):this.dialogRef.close()}onNamespaceChanged(t){this.selectedNamespace=t;const e=this.parsedRules.get(t),i=this.namespaceControl.get("login"),n=this.namespaceControl.get("passwordCtrl"),s=this.namespaceControl.get("passwordAgainCtrl"),o=this.namespaceControl.get("passwordReset");"disabled"!==e.login?(0,r.mH)(i,"optional"===e.login?[]:[l.kI.required]):(i.disable(),i.setValue("")),"disabled"!==e.password?((0,r.mH)(n,"optional"===e.password?[]:[l.kI.required],[(0,d.yT)(t,this.usersService,this.apiRequestConfiguration)]),(0,r.mH)(s,[]),(0,r.mH)(o,[]),this.namespaceControl.get("passwordReset").setValue(!1)):(n.disable(),n.setValue(""),s.disable(),s.setValue(""),o.disable(),o.setValue(!1))}passwordResetChange(){const t=this.namespaceControl.get("passwordCtrl"),e=this.namespaceControl.get("passwordAgainCtrl");this.namespaceControl.get("passwordReset").value?(t.disable(),t.setValue(""),e.disable(),e.setValue("")):(t.enable(),e.enable())}setExpiration(t){this.expiration="never"===t?"never":(0,u.p6)(t,"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()}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(a.so),p.Y36(a.WI),p.Y36(n.uq),p.Y36(c.F5),p.Y36(n.Fv),p.Y36(c.d6),p.Y36(g.sK),p.Y36(n.Ct),p.Y36(c.x4),p.Y36(l.qu),p.Y36(p.sBO))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-create-sponsored-member-dialog"]],viewQuery:function(t,e){if(1&t&&p.Gf(P,5),2&t){let t;p.iGM(t=p.CRH())&&(e.stepper=t.first)}},decls:7,vars:9,consts:[["mat-dialog-title","",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",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"],["required","","formControlName","namespace",3,"placeholder","valueChange"],[3,"value",4,"ngFor","ngForOf"],["matTooltipPosition","left",3,"matTooltip","matTooltipDisabled"],["matInput","","required","","formControlName","login",3,"placeholder"],["matInput","","required","","formControlName","email",3,"placeholder"],["labelPosition","before","formControlName","passwordReset",3,"change"],[3,"formGroup","tooltipPwdViaEmail","namespace"],[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,"users","disableAutoSelect","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(t,e){1&t&&(p.TgZ(0,"div"),p.YNc(1,D,3,3,"h1",0),p.YNc(2,M,1,0,"mat-spinner",1),p.YNc(3,Y,76,80,"div",2),p.YNc(4,K,20,20,"div",2),p.YNc(5,V,4,3,"div",3),p.YNc(6,W,7,6,"div",3),p.qZA()),2&t&&(p.Tol(e.theme),p.xp6(1),p.Q6J("ngIf",!e.successfullyCreated),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading&&!e.successfullyCreated),p.xp6(1),p.Q6J("ngIf",!e.loading&&e.successfullyCreated),p.xp6(1),p.Q6J("ngIf",e.successfullyCreated),p.xp6(1),p.Q6J("ngIf",!e.loading&&!e.successfullyCreated))},directives:[u.O5,a.uh,f.$g,a.xY,m.Vq,m.C0,m.VY,l._Y,l.JL,l.sg,b.KE,_.Nt,l.Fj,l.JJ,l.u,l.Q7,w.gD,u.sg,A.gM,y.oG,v.G,T.VQ,l.On,T.U0,E,S.w,b.TO,k.ey,I.S,x.Hw,a.H8,R.lW],pipes:[g.X$,O.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}"]}),t})();var tt=i(67004),et=i(43005),it=i(19139),nt=i(78364),st=i(8055);const ot=["stepper"];function rt(t,e){1&t&&p._UZ(0,"mat-spinner",4)}function at(t,e){1&t&&(p._uU(0),p.ALo(1,"translate")),2&t&&p.Oqu(p.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_LABEL"))}function ct(t,e){1&t&&(p.TgZ(0,"app-alert",29),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function lt(t,e){if(1&t&&(p.TgZ(0,"mat-option",30),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.hij(" ",t," ")}}function ut(t,e){1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE_ERROR")," "))}function ht(t,e){1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMES_ERROR")," "))}function dt(t,e){if(1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t){const t=p.oxw(3);p.xp6(1),p.AsE(" ",p.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_FORMAT"),": ",t.usersInfoFormGroup.get("sponsoredMembers").getError("invalidFormat").value," ")}}function pt(t,e){if(1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t){const t=p.oxw(3);p.xp6(1),p.AsE(" ",p.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_EMAIL"),": ",t.usersInfoFormGroup.get("sponsoredMembers").getError("invalidEmail").value," ")}}function gt(t,e){if(1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t){const t=p.oxw(3);p.xp6(1),p.AsE(" ",p.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_LOGIN"),": ",t.usersInfoFormGroup.get("sponsoredMembers").getError("invalidLogin").value," ")}}function ft(t,e){1&t&&(p._uU(0),p.ALo(1,"translate")),2&t&&p.Oqu(p.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_LABEL"))}function mt(t,e){1&t&&(p.TgZ(0,"app-alert",31),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_NAMESPACE_PASSWORD_INFO")," "))}function bt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-radio-group",32),p.NdJ("ngModelChange",function(e){return p.CHM(t),p.oxw(3).passwordReset=e}),p.TgZ(1,"mat-radio-button",33),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"mat-radio-button",34),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.qZA()}if(2&t){const t=p.oxw(3);p.Q6J("ngModel",t.passwordReset),p.xp6(2),p.hij(" ",p.lcZ(3,3,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GENERATE_PASSWORD")," "),p.xp6(3),p.hij(" ",p.lcZ(6,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_RESET")," ")}}function _t(t,e){1&t&&(p._uU(0),p.ALo(1,"translate")),2&t&&p.Oqu(p.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION_LABEL"))}function wt(t,e){1&t&&(p._uU(0),p.ALo(1,"translate")),2&t&&p.Oqu(p.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUPS_LABEL"))}function At(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"app-alert",35),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DONT_ASSIGN_INFO")))}function yt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div"),p.TgZ(1,"h5",36),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"perun-web-apps-create-group-form",37),p.NdJ("nameChanged",function(e){return p.CHM(t),p.oxw(3).name=e})("descriptionChanged",function(e){return p.CHM(t),p.oxw(3).description=e})("parentGroupChanged",function(e){return p.CHM(t),p.oxw(3).parentGroup=e})("asSubgroupChanged",function(e){return p.CHM(t),p.oxw(3).asSubGroup=e}),p.qZA(),p.qZA()}if(2&t){const t=p.oxw(3);p.xp6(2),p.Oqu(p.lcZ(3,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CREATE_NEW_GROUP")),p.xp6(2),p.Q6J("voGroups",t.allVoGroups)}}const vt=function(){return["select","id","name","description"]};function Tt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div"),p.TgZ(1,"h5",36),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"perun-web-apps-immediate-filter",38),p.NdJ("filter",function(e){return p.CHM(t),p.oxw(3).applyFilter(e)}),p.qZA(),p._UZ(5,"perun-web-apps-groups-list",39),p.qZA()}if(2&t){const t=p.oxw(3);p.xp6(2),p.Oqu(p.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SELECT_EXISTING_GROUPS")),p.xp6(2),p.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),p.xp6(1),p.Q6J("groups",t.assignableGroups)("selection",t.selection)("displayedColumns",p.DdM(10,vt))("disableRouting",!0)("tableId",t.tableId)("filter",t.filterValue)}}function Ct(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-stepper",8,9),p.TgZ(2,"mat-step",10),p.YNc(3,at,2,3,"ng-template",11),p.YNc(4,ct,3,3,"app-alert",12),p.TgZ(5,"h5",13),p._uU(6),p.ALo(7,"translate"),p.qZA(),p.TgZ(8,"form",14),p.TgZ(9,"mat-form-field"),p.TgZ(10,"mat-select",15),p.ALo(11,"translate"),p.YNc(12,lt,2,2,"mat-option",16),p.qZA(),p.YNc(13,ut,3,3,"mat-error",7),p.qZA(),p.TgZ(14,"div"),p._uU(15),p.ALo(16,"translate"),p.qZA(),p.TgZ(17,"div",17),p._uU(18),p.qZA(),p.TgZ(19,"mat-form-field",18),p.TgZ(20,"mat-label"),p._uU(21),p.ALo(22,"translate"),p.qZA(),p.TgZ(23,"textarea",19),p._uU(24," "),p.qZA(),p.YNc(25,ht,3,3,"mat-error",7),p.YNc(26,dt,3,4,"mat-error",7),p.YNc(27,pt,3,4,"mat-error",7),p.YNc(28,gt,3,4,"mat-error",7),p.qZA(),p.qZA(),p.qZA(),p.TgZ(29,"mat-step"),p.YNc(30,ft,2,3,"ng-template",11),p.TgZ(31,"div",13),p.TgZ(32,"h5",20),p._uU(33),p.ALo(34,"translate"),p.qZA(),p.YNc(35,mt,3,3,"app-alert",21),p.YNc(36,bt,7,7,"mat-radio-group",22),p.qZA(),p.qZA(),p.TgZ(37,"mat-step"),p.YNc(38,_t,2,3,"ng-template",11),p.TgZ(39,"div",13),p.TgZ(40,"h5",20),p._uU(41),p.ALo(42,"translate"),p.qZA(),p.TgZ(43,"perun-web-apps-expiration-select",23),p.NdJ("datePicker",function(e){return p.CHM(t),p.oxw(2).setExpiration(e)}),p.qZA(),p.qZA(),p.qZA(),p.TgZ(44,"mat-step"),p.YNc(45,wt,2,3,"ng-template",11),p.TgZ(46,"div",13),p.TgZ(47,"h5",20),p._uU(48),p.ALo(49,"translate"),p.qZA(),p.TgZ(50,"mat-radio-group",24),p.NdJ("change",function(){return p.CHM(t),p.oxw(2).groupAssigmentChanged()})("ngModelChange",function(e){return p.CHM(t),p.oxw(2).groupAssignment=e}),p.TgZ(51,"mat-radio-button",25),p._uU(52),p.ALo(53,"translate"),p.qZA(),p.TgZ(54,"span",26),p.ALo(55,"translate"),p.TgZ(56,"mat-radio-button",27),p._uU(57),p.ALo(58,"translate"),p.qZA(),p.qZA(),p.TgZ(59,"span",26),p.ALo(60,"translate"),p.TgZ(61,"mat-radio-button",28),p._uU(62),p.ALo(63,"translate"),p.qZA(),p.qZA(),p.qZA(),p.qZA(),p.YNc(64,At,4,3,"div",7),p.YNc(65,yt,5,4,"div",7),p.YNc(66,Tt,6,11,"div",7),p.qZA(),p.qZA()}if(2&t){const t=p.oxw(2);p.Q6J("linear",!0),p.xp6(2),p.Q6J("stepControl",t.usersInfoFormGroup),p.xp6(2),p.Q6J("ngIf",t.functionalityNotSupported),p.xp6(2),p.Oqu(p.lcZ(7,35,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_INFO")),p.xp6(2),p.Q6J("formGroup",t.usersInfoFormGroup),p.xp6(2),p.s9C("placeholder",p.lcZ(11,37,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE")),p.xp6(2),p.Q6J("ngForOf",t.namespaceOptions),p.xp6(1),p.Q6J("ngIf",t.usersInfoFormGroup.hasError("required","namespace")),p.xp6(2),p.Oqu(p.lcZ(16,39,"DIALOGS.GENERATE_SPONSORED_MEMBERS.HINT")),p.xp6(3),p.Oqu(t.getSelectedNamespaceRules().csvGenHeaderDescription),p.xp6(3),p.Oqu(p.lcZ(22,41,"DIALOGS.GENERATE_SPONSORED_MEMBERS.INSERT_HERE")),p.xp6(2),p.s9C("placeholder",t.getSelectedNamespaceRules().csvGenPlaceholder),p.xp6(2),p.Q6J("ngIf",t.usersInfoFormGroup.hasError("required","sponsoredMembers")),p.xp6(1),p.Q6J("ngIf",t.usersInfoFormGroup.hasError("invalidFormat","sponsoredMembers")),p.xp6(1),p.Q6J("ngIf",t.usersInfoFormGroup.hasError("invalidEmail","sponsoredMembers")),p.xp6(1),p.Q6J("ngIf",t.usersInfoFormGroup.hasError("invalidLogin","sponsoredMembers")),p.xp6(5),p.Oqu(p.lcZ(34,43,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_MANAGEMENT")),p.xp6(2),p.Q6J("ngIf","No namespace"===t.getSelectedNamespaceRules().namespaceName),p.xp6(1),p.Q6J("ngIf","No namespace"!==t.getSelectedNamespaceRules().namespaceName),p.xp6(5),p.Oqu(p.lcZ(42,45,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION")),p.xp6(2),p.Q6J("expiration",t.expiration),p.xp6(5),p.Oqu(p.lcZ(49,47,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUP_ASSIGMENT")),p.xp6(2),p.Q6J("ngModel",t.groupAssignment),p.xp6(2),p.hij(" ",p.lcZ(53,49,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_ASSIGN")," "),p.xp6(2),p.s9C("matTooltip",p.lcZ(55,51,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_NEW")),p.Q6J("matTooltipDisabled",!t.manualMemberAddingBlocked&&t.createGroupAuth),p.xp6(2),p.Q6J("disabled",t.manualMemberAddingBlocked||!t.createGroupAuth),p.xp6(1),p.hij(" ",p.lcZ(58,53,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_TO_NEW")," "),p.xp6(2),p.s9C("matTooltip",p.lcZ(60,55,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_EXISTING")),p.Q6J("matTooltipDisabled",!t.manualMemberAddingBlocked&&0!==t.assignableGroups.length),p.xp6(2),p.Q6J("disabled",t.manualMemberAddingBlocked||0===t.assignableGroups.length),p.xp6(1),p.hij(" ",p.lcZ(63,57,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_EXISTING")," "),p.xp6(2),p.Q6J("ngIf","none"===t.groupAssignment),p.xp6(1),p.Q6J("ngIf","new"===t.groupAssignment),p.xp6(1),p.Q6J("ngIf","existing"===t.groupAssignment)}}function Et(t,e){1&t&&(p.TgZ(0,"app-alert",41),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.Q6J("alert_type","success"),p.xp6(1),p.hij(" ",p.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUCCESS")," "))}function St(t,e){1&t&&(p.TgZ(0,"app-alert",41),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.Q6J("alert_type","warn"),p.xp6(1),p.hij(" ",p.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.FINISHED_WITH_ERRORS")," "))}function kt(t,e){if(1&t&&(p.TgZ(0,"div"),p.YNc(1,Et,3,4,"app-alert",40),p.YNc(2,St,3,4,"app-alert",40),p.qZA()),2&t){const t=p.oxw(2);p.xp6(1),p.Q6J("ngIf",!1===t.finishedWithErrors),p.xp6(1),p.Q6J("ngIf",t.finishedWithErrors)}}function It(t,e){if(1&t&&(p.TgZ(0,"div",5),p.YNc(1,Ct,67,59,"mat-stepper",6),p.YNc(2,kt,3,2,"div",7),p.qZA()),2&t){const t=p.oxw();p.xp6(1),p.Q6J("ngIf","user-input"===t.state),p.xp6(1),p.Q6J("ngIf","results"===t.state)}}function xt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",47),p.NdJ("click",function(){return p.CHM(t),p.oxw(2).stepperPrevious()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.BACK")," "))}function Rt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",48),p.NdJ("click",function(){return p.CHM(t),p.oxw(2).stepperNext()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw(2);p.ekj("ml-2",void 0!==t.stepper&&0!==t.stepper.selectedIndex)("ml-auto",!(void 0!==t.stepper&&0!==t.stepper.selectedIndex)),p.Q6J("disabled",t.getStepperNextConditions()),p.xp6(1),p.hij("",p.lcZ(2,6,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NEXT")," ")}}function Ot(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",48),p.NdJ("click",function(){return p.CHM(t),p.oxw(2).onSubmit()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw(2);p.Q6J("disabled",null===t.groupAssignment||"existing"===t.groupAssignment&&0===t.selection.selected.length||"new"===t.groupAssignment&&(0===t.name.length||0===t.description.length)||!0===t.asSubGroup&&null===t.parentGroup),p.xp6(1),p.hij(" ",p.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUBMIT")," ")}}function Pt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div",42),p.TgZ(1,"button",43),p.NdJ("click",function(){return p.CHM(t),p.oxw().onCancel()}),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.YNc(4,xt,3,3,"button",44),p.YNc(5,Rt,3,8,"button",45),p.YNc(6,Ot,3,4,"button",46),p.qZA()}if(2&t){const t=p.oxw();p.xp6(2),p.hij(" ",p.lcZ(3,4,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),p.xp6(2),p.Q6J("ngIf",void 0!==t.stepper&&0!==t.stepper.selectedIndex),p.xp6(1),p.Q6J("ngIf",void 0!==t.stepper&&t.stepper.selectedIndex!==t.stepper._steps.length-1),p.xp6(1),p.Q6J("ngIf",void 0!==t.stepper&&t.stepper.selectedIndex===t.stepper._steps.length-1)}}function Dt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div",42),p.TgZ(1,"button",43),p.NdJ("click",function(){return p.CHM(t),p.oxw().onClose()}),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"button",49),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.TgZ(7,"mat-menu",null,50),p.TgZ(9,"button",51),p.NdJ("click",function(){return p.CHM(t),p.oxw().generatePdf()}),p._uU(10),p.ALo(11,"translate"),p.qZA(),p.TgZ(12,"button",51),p.NdJ("click",function(){return p.CHM(t),p.oxw().downloadCsv()}),p._uU(13),p.ALo(14,"translate"),p.qZA(),p.qZA(),p.qZA()}if(2&t){const t=p.MAs(8);p.xp6(2),p.hij(" ",p.lcZ(3,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CLOSE")," "),p.xp6(2),p.Q6J("matMenuTriggerFor",t),p.xp6(1),p.hij(" ",p.lcZ(6,7,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD")," "),p.xp6(5),p.hij(" ",p.lcZ(11,9,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_PDF")," "),p.xp6(3),p.hij(" ",p.lcZ(14,11,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_CSV")," ")}}let Mt=(()=>{class t{constructor(t,e,i,n,r,a,c,l,u,h,d,p){this.dialogRef=t,this.data=e,this.store=i,this.membersService=n,this.notificator=r,this.translate=a,this.guiAuthResolver=c,this.groupsService=l,this.attributesService=u,this.formBuilder=h,this.sponsoredMembersPDFService=d,this.cd=p,this.loading=!1,this.functionalityNotSupported=!1,this.namespaceOptions=[],this.namespaceRules=[],this.state="user-input",this.passwordReset="generate",this.groupAssignment=null,this.expiration="never",this.assignableGroups=[],this.allVoGroups=[],this.selection=new s.Ov(!0,[]),this.manualMemberAddingBlocked=!1,this.name="",this.description="",this.asSubGroup=!1,this.parentGroup=null,this.groupIds=[],this.submitDisabled=!1,this.filterValue="",this.tableId=o.rc,this.finishedWithErrors=!1,this.groupAttrNames=[tt.r.GROUP_SYNC_ENABLED,tt.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}static didSomeGenerationFailed(t){return t.forEach(t=>{if("OK"!==t.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:["",l.kI.required],sponsoredMembers:["",[l.kI.required,this.userInputValidator()]]}),this.usersInfoFormGroup.controls.namespace.valueChanges.subscribe({next:()=>{this.usersInfoFormGroup.controls.sponsoredMembers.updateValueAndValidity()}}),this.attributesService.getVoAttributes(this.data.voId).subscribe(t=>{this.manualMemberAddingBlocked=this.hasAttributeEnabled(t,"blockManualMemberAdding"),!0!==this.manualMemberAddingBlocked?this.groupsService.getAllRichGroupsWithAttributesByNames(this.data.voId,this.groupAttrNames).subscribe(t=>{this.allVoGroups=t.filter(t=>"members"!==t.name),this.assignableGroups=this.filterAssignableGroups(t),this.membersService.getAllNamespacesRules().subscribe(t=>{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(t),this.namespaceRules.forEach(t=>this.namespaceOptions.push(t.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,this.cd.detectChanges())},()=>this.loading=!1)}filterAssignableGroups(t){const e=[];for(const i of t)this.hasAttributeEnabled(i.attributes,"synchronizationEnabled")||this.hasAttributeEnabled(i.attributes,"blockManualMemberAdding")||!this.guiAuthResolver.isAuthorized("addMembers_Group_List_policy",[i])||e.push(i);return e}hasAttributeEnabled(t,e){return t.some(t=>t.friendlyName===e&&null!==t.value&&"true"===t.value.toString())}createOutputObjects(t){let e="",i="",n="",s="";const o=[];return t.forEach(t=>{e=t.name.replace(";"," ").split(";")[0],i=t.status,n=t.login?t.login:n,s=t.password?t.password:s,o.push({name:e,status:i,login:n,password:s})}),o}onGenerate(){this.loading=!0;const e=this.usersInfoFormGroup.get("sponsoredMembers").value.split("\n"),i=this.getSelectedNamespaceRules().csvGenHeader,n=[];for(const t of e){const e=this.parseMemberLine(t);if("format"===e||"email"===e)return void(this.loading=!1);""!==e&&n.push(e)}const s={data:n,header:i,namespace:"",sponsor:this.store.getPerunPrincipal().userId,vo:this.data.voId,sendActivationLinks:"reset"===this.passwordReset};"none"!==this.groupAssignment&&(s.groups=this.groupIds),"never"!==this.expiration&&(s.validityTo=(0,u.p6)(this.expiration,"yyyy-MM-dd","en-GB")),"No namespace"!==this.usersInfoFormGroup.get("namespace").value&&(s.namespace=this.usersInfoFormGroup.get("namespace").value),this.membersService.createSponsoredMembersFromCSV(s).subscribe(e=>{this.state="results",this.finishedWithErrors=t.didSomeGenerationFailed(e),this.loading=!1,this.resultData=e},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onClose(){this.dialogRef.close(!0)}parseMemberLine(t){const e=t.trim();if(""===e)return"";const i=e.split(";"),n=this.getSelectedNamespaceRules().csvGenHeader.split(";");if(i.length!==n.length)return"format";if("mail"===n[2].slice(n[2].length-4).toLowerCase()&&!i[2].trim().match(r.B2))return"email";if("login"===n[3]&&""===i[3].trim())return"login";let s="";for(const o of i)s+=o.trim()+";";return s.slice(0,-1)}userInputValidator(){return t=>{const e=t.value.split("\n");for(const i of e){const t=this.parseMemberLine(i);if("format"===t)return{invalidFormat:{value:i}};if("email"===t)return{invalidEmail:{value:i}};if("login"===t)return{invalidLogin:{value:i}}}return null}}setExpiration(t){this.expiration="never"===t?"never":(0,u.p6)(t,"yyyy-MM-dd","en-GB")}applyFilter(t){this.filterValue=t}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(t=>{this.groupIds.push(t.id),this.onGenerate()},()=>this.loading=!1):this.groupsService.createGroupWithVoNameDescription(this.data.voId,this.name,this.description).subscribe(t=>{this.groupIds.push(t.id),this.onGenerate()},()=>this.loading=!1):("existing"===this.groupAssignment&&(this.groupIds=this.selection.selected.map(t=>t.id)),this.onGenerate())}getSelectedNamespaceRules(){return this.namespaceRules.find(t=>t.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,r.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()}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(a.so),p.Y36(a.WI),p.Y36(c.d6),p.Y36(n.uq),p.Y36(c.V6),p.Y36(g.sK),p.Y36(c.x4),p.Y36(n.ff),p.Y36(n.H8),p.Y36(l.qu),p.Y36(c.HV),p.Y36(p.sBO))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-generate-sponsored-members-dialog"]],viewQuery:function(t,e){if(1&t&&p.Gf(ot,5),2&t){let t;p.iGM(t=p.CRH())&&(e.stepper=t.first)}},decls:8,vars:10,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",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"],["required","","formControlName","namespace",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],[1,"font-weight-bold"],[1,"pt-2"],["id","voGenerateSponsoredMembers","name","voGenerateSponsoredMembers","rows","8","cols","50","matInput","","formControlName","sponsoredMembers",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","nameChanged","descriptionChanged","parentGroupChanged","asSubgroupChanged"],[3,"placeholder","filter"],[3,"groups","selection","displayedColumns","disableRouting","tableId","filter"],[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"],["mat-flat-button","","color","accent",1,"ml-auto","dropdown-toggle",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.YNc(4,rt,1,0,"mat-spinner",1),p.YNc(5,It,3,2,"div",2),p.YNc(6,Pt,7,6,"div",3),p.YNc(7,Dt,15,13,"div",3),p.qZA()),2&t&&(p.Tol(e.theme),p.xp6(2),p.Oqu(p.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.TITLE")),p.xp6(2),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading&&void 0!==e.stepper&&"results"!==e.state),p.xp6(1),p.Q6J("ngIf","results"===e.state))},directives:[a.uh,u.O5,f.$g,a.xY,m.Vq,m.C0,m.VY,l._Y,l.JL,l.sg,b.KE,w.gD,l.Q7,l.JJ,l.u,u.sg,b.hX,_.Nt,l.Fj,E,T.VQ,l.On,T.U0,A.gM,S.w,k.ey,b.TO,et.r,it.L,nt.W,a.H8,R.lW,st.p6,st.VK,st.OP],pipes:[g.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})();var Lt=i(4252);function Nt(t,e){1&t&&p._UZ(0,"mat-spinner",12)}const zt=function(){return["checkbox","id","fullName","status","sponsored","email"]};function Zt(t,e){if(1&t&&p._UZ(0,"perun-web-apps-members-list",13),2&t){const t=p.oxw();p.Q6J("tableId",t.tableId)("hidden",t.loading)("members",t.members)("selection",t.selection)("displayedColumns",p.DdM(6,zt))("disableRouting",!0)}}function Bt(t,e){1&t&&(p.TgZ(0,"app-alert",14),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.SPONSOR_EXISTING_MEMBER.BEGIN_SEARCH")," "))}let qt=(()=>{class t{constructor(t,e,i,n,r,a){this.dialogRef=t,this.data=e,this.store=i,this.membersService=n,this.notificator=r,this.translate=a,this.loading=!1,this.tableId=o.US,this.expiration="never",this.searchCtrl=new l.NI("",[l.kI.required]),this.firstSearchDone=!1,this.members=[],this.selection=new s.Ov(!0,[])}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}sponsor(t){if(this.loading=!0,0===t.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.SPONSOR_EXISTING_MEMBER.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);const e=t.pop();e.sponsored?this.membersService.sponsorMember(e.id,this.store.getPerunPrincipal().user.id,this.expiration).subscribe(()=>{this.sponsor(t)},()=>this.loading=!1):this.membersService.setSponsorshipForMember(e.id,this.store.getPerunPrincipal().user.id,this.expiration).subscribe(()=>{this.sponsor(t)},()=>this.loading=!1)}onSubmit(){this.loading=!0;const t=Array.from(this.selection.selected);this.expiration="never"===this.expiration?null:this.expiration,this.sponsor(t)}setExpiration(t){this.expiration="never"===t?"never":(0,u.p6)(t,"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,[tt.r.MEMBER_DEF_EXPIRATION,tt.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe(t=>{this.members=t,this.loading=!1},()=>this.loading=!1))}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(a.so),p.Y36(a.WI),p.Y36(c.d6),p.Y36(n.uq),p.Y36(c.V6),p.Y36(g.sK))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-sponsor-existing-member-dialog"]],decls:31,vars:30,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"mr-2","search-field","adjust-width"],["matInput","","autocomplete","false",3,"placeholder","formControl","keyup.enter"],["mat-flat-button","","color","accent",1,"ml-auto",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","hidden","members","selection","displayedColumns","disableRouting",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"datePicker"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","hidden","members","selection","displayedColumns","disableRouting"],["alert_type","info"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"div",1),p.TgZ(5,"mat-form-field",2),p.TgZ(6,"label"),p.TgZ(7,"input",3),p.NdJ("keyup.enter",function(){return e.onSearchByString()}),p.ALo(8,"translate"),p.qZA(),p.qZA(),p.TgZ(9,"mat-error"),p._uU(10),p.ALo(11,"translate"),p.qZA(),p.qZA(),p.TgZ(12,"button",4),p.NdJ("click",function(){return e.onSearchByString()}),p._uU(13),p.ALo(14,"translate"),p.qZA(),p.YNc(15,Nt,1,0,"mat-spinner",5),p.YNc(16,Zt,1,7,"perun-web-apps-members-list",6),p.YNc(17,Bt,3,3,"app-alert",7),p.TgZ(18,"div"),p._UZ(19,"br"),p.TgZ(20,"h6"),p._uU(21),p.ALo(22,"translate"),p.qZA(),p.TgZ(23,"perun-web-apps-expiration-select",8),p.NdJ("datePicker",function(t){return e.setExpiration(t)}),p.qZA(),p.qZA(),p.qZA(),p.TgZ(24,"div",9),p.TgZ(25,"button",10),p.NdJ("click",function(){return e.onCancel()}),p._uU(26),p.ALo(27,"translate"),p.qZA(),p.TgZ(28,"button",11),p.NdJ("click",function(){return e.onSubmit()}),p._uU(29),p.ALo(30,"translate"),p.qZA(),p.qZA(),p.qZA()),2&t&&(p.Tol(e.theme),p.xp6(2),p.Oqu(p.lcZ(3,16,"DIALOGS.SPONSOR_EXISTING_MEMBER.TITLE")),p.xp6(5),p.s9C("placeholder",p.lcZ(8,18,"DIALOGS.SPONSOR_EXISTING_MEMBER.DESCRIPTION")),p.Q6J("formControl",e.searchCtrl),p.xp6(3),p.hij(" ",p.lcZ(11,20,"DIALOGS.SPONSOR_EXISTING_MEMBER.EMPTY_SEARCH_MESSAGE")," "),p.xp6(2),p.Q6J("disabled",e.loading),p.xp6(1),p.hij(" ",p.lcZ(14,22,"DIALOGS.SPONSOR_EXISTING_MEMBER.SEARCH")," "),p.xp6(2),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",e.firstSearchDone),p.xp6(1),p.Q6J("ngIf",!e.firstSearchDone),p.xp6(4),p.Oqu(p.lcZ(22,24,"DIALOGS.SPONSOR_EXISTING_MEMBER.EXPIRATION")),p.xp6(5),p.hij(" ",p.lcZ(27,26,"DIALOGS.SPONSOR_EXISTING_MEMBER.CANCEL")," "),p.xp6(2),p.Q6J("disabled",e.loading||0===e.selection.selected.length),p.xp6(1),p.hij(" ",p.lcZ(30,28,"DIALOGS.SPONSOR_EXISTING_MEMBER.SPONSOR")," "))},directives:[a.uh,a.xY,b.KE,_.Nt,l.Fj,l.JJ,l.oH,b.TO,R.lW,u.O5,E,a.H8,f.$g,Lt.O,S.w],pipes:[g.X$],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}"]}),t})();var Ft=i(59403),Ut=i(58623),Ht=i(67033),Gt=i(79592),jt=i(95121),Yt=i(82819),Kt=i(84534),Vt=i(57629);function $t(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"th",16),p.TgZ(1,"mat-checkbox",17),p.NdJ("change",function(e){p.CHM(t);const i=p.oxw();return e?i.masterToggle():null}),p.qZA(),p.qZA()}if(2&t){const t=p.oxw();p.xp6(1),p.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function Jt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"td",18),p.TgZ(1,"mat-checkbox",19),p.NdJ("change",function(e){const i=p.CHM(t).$implicit,n=p.oxw();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),p.qZA(),p.qZA()}if(2&t){const t=e.$implicit,i=p.oxw();p.xp6(1),p.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function Qt(t,e){1&t&&(p.TgZ(0,"th",20),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.ID")))}function Wt(t,e){if(1&t&&(p.TgZ(0,"td",21),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(t.member.id)}}function Xt(t,e){1&t&&(p.TgZ(0,"th",20),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NAME")))}function te(t,e){if(1&t&&(p.TgZ(0,"td",22),p._uU(1),p.ALo(2,"userFullName"),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Oqu(p.lcZ(2,1,t.member.user))}}function ee(t,e){1&t&&(p.TgZ(0,"th",20),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.SPONSORS")))}function ie(t,e){if(1&t&&(p.TgZ(0,"span"),p._uU(1),p.ALo(2,"userFullName"),p._UZ(3,"br"),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.hij(" ",p.lcZ(2,1,t.user),"")}}function ne(t,e){if(1&t&&(p.TgZ(0,"td",22),p.YNc(1,ie,4,3,"span",23),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Q6J("ngForOf",t.sponsors)}}function se(t,e){1&t&&p._UZ(0,"th",20)}function oe(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"span",26),p.ALo(1,"translate"),p.TgZ(2,"button",27),p.NdJ("mouseenter",function(){return p.CHM(t),p.oxw(2).disableRouting=!0})("mouseleave",function(){p.CHM(t);const e=p.oxw(2);return e.disableRouting=e.routingStrategy})("click",function(){p.CHM(t);const e=p.oxw().$implicit;return p.oxw().resetPassword(e)}),p.TgZ(3,"mat-icon"),p._uU(4,"vpn_key"),p.qZA(),p.qZA(),p.qZA()}if(2&t){const t=p.oxw(2);p.Q6J("matTooltipPosition","above")("matTooltip",p.lcZ(1,3,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.PASSWORD_RESET")),p.xp6(2),p.Q6J("disabled",t.loading)}}function re(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"td",22),p.TgZ(1,"button",24),p.NdJ("click",function(){const e=p.CHM(t).$implicit;return p.oxw().showSponsors(e)})("mouseenter",function(){return p.CHM(t),p.oxw().disableRouting=!0})("mouseleave",function(){p.CHM(t);const e=p.oxw();return e.disableRouting=e.routingStrategy}),p.TgZ(2,"mat-icon"),p._uU(3,"edit"),p.qZA(),p.qZA(),p.YNc(4,oe,5,5,"span",25),p.qZA()}if(2&t){const t=e.$implicit,i=p.oxw();p.xp6(4),p.Q6J("ngIf",i.passwdResetAuth(t))}}function ae(t,e){1&t&&p._UZ(0,"tr",28)}const ce=function(t,e){return["/organizations",t,"members",e]};function le(t,e){if(1&t&&p._UZ(0,"tr",29),2&t){const t=e.$implicit,i=p.oxw();p.ekj("cursor-pointer",!i.disableRouting)("disable-outline",i.disableRouting),p.Q6J("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:p.WLB(6,ce,t.member.voId,t.member.id))("routerLink",i.disableRouting?null:p.WLB(9,ce,t.member.voId,t.member.id))}}function ue(t,e){1&t&&(p.TgZ(0,"app-alert",30),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function he(t,e){1&t&&(p.TgZ(0,"app-alert",30),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NO_SPONSORED_MEMBERS_WARNING"),"\n"))}let de=(()=>{class t{constructor(t,e,i,n,s){this.dialog=t,this.authResolver=e,this.storeService=i,this.attributesManager=n,this.tableCheckbox=s,this.sponsoredMembers=[],this.filterValue="",this.displayedColumns=["id","name","sponsors","menu"],this.disableRouting=!1,this.refreshTable=new p.vpe,this.loading=!1,this.routingStrategy=!1,this.pageSizeOptions=r.f7}set matSort(t){this.sort=t}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.setDataSource(),this.routingStrategy=this.disableRouting}getSortDataForColumn(t,e){var i;switch(e){case"id":return t.member.id.toString();case"name":return t.member.user?t.member.user.lastName?t.member.user.lastName:null!==(i=t.member.user.firstName)&&void 0!==i?i:"":"";case"sponsors":return t.sponsors.length.toString();default:return""}}getDataForColumn(t,e){switch(e){case"id":return t.member.id.toString();case"name":return t.member.user?(0,r.bD)(t.member.user):"";case"sponsors":return t.sponsors.map(t=>(0,r.bD)(t.user)).join();default:return""}}exportData(t){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource||(this.dataSource=new Ht.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(t,e)=>(0,r.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,r.pR)(t,e,this.getSortDataForColumn,this)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.sponsoredMembers}showSponsors(t){const e=(0,r.kZ)();e.width="650px",e.data={sponsors:t.sponsors,member:t.member,theme:"vo-theme"},this.dialog.open(Gt.H,e).afterClosed().subscribe(t=>{t&&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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.member.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}resetPassword(t){this.loading=!0;const e=this.storeService.get("password_namespace_attributes").map(t=>(t=t.split(":"))[t.length-1]);this.attributesManager.getLogins(t.member.userId).subscribe(i=>{const n=i.filter(t=>e.includes(t.friendlyNameParameter)),s=(0,r.kZ)();s.width="400px",s.data={userId:t.member.userId,memberId:t.member.id,logins:n},this.dialog.open(jt.m,s).afterClosed().subscribe(()=>{this.loading=!1})},()=>this.loading=!1)}passwdResetAuth(t){return this.authResolver.isAuthorized("sendPasswordResetLinkEmail_Member_String_String_String_String_policy",[{id:t.member.voId,beanName:"Vo"},t.member])}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(a.uw),p.Y36(c.x4),p.Y36(c.d6),p.Y36(n.H8),p.Y36(c.UA))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-sponsored-members-list"]],viewQuery:function(t,e){if(1&t&&(p.Gf(Ut.YE,7),p.Gf(r.l9,7)),2&t){let t;p.iGM(t=p.CRH())&&(e.matSort=t.first),p.iGM(t=p.CRH())&&(e.child=t.first)}},inputs:{sponsoredMembers:"sponsoredMembers",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",disableRouting:"disableRouting",tableId:"tableId"},outputs:{refreshTable:"refreshTable"},features:[p.TTD],decls:22,vars:9,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","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",""],[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(t,e){1&t&&(p.TgZ(0,"div",0),p.TgZ(1,"perun-web-apps-table-wrapper",1),p.NdJ("exportData",function(t){return e.exportData(t)}),p.TgZ(2,"table",2),p.ynx(3,3),p.YNc(4,$t,2,3,"th",4),p.YNc(5,Jt,2,2,"td",5),p.BQk(),p.ynx(6,6),p.YNc(7,Qt,3,3,"th",7),p.YNc(8,Wt,2,1,"td",8),p.BQk(),p.ynx(9,9),p.YNc(10,Xt,3,3,"th",7),p.YNc(11,te,3,3,"td",10),p.BQk(),p.ynx(12,11),p.YNc(13,ee,3,3,"th",7),p.YNc(14,ne,2,1,"td",10),p.BQk(),p.ynx(15,12),p.YNc(16,se,1,0,"th",7),p.YNc(17,re,5,1,"td",10),p.BQk(),p.YNc(18,ae,1,0,"tr",13),p.YNc(19,le,1,12,"tr",14),p.qZA(),p.qZA(),p.qZA(),p.YNc(20,ue,3,3,"app-alert",15),p.YNc(21,he,3,3,"app-alert",15)),2&t&&(p.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.sponsoredMembers.length),p.xp6(1),p.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),p.xp6(1),p.Q6J("dataSource",e.dataSource),p.xp6(16),p.Q6J("matHeaderRowDef",e.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",e.displayedColumns),p.xp6(1),p.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.sponsoredMembers.length),p.xp6(1),p.Q6J("ngIf",0===e.sponsoredMembers.length))},directives:[Yt.l,Ht.BZ,Ut.YE,Ht.w1,Ht.fO,Ht.Dz,Ht.as,Ht.nj,u.O5,Ht.ge,y.oG,Ht.ev,Ut.nU,u.sg,R.lW,x.Hw,A.gM,Ht.XQ,Ht.Gk,Kt.YH,Vt.rH,S.w],pipes:[g.X$,O.d],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();function pe(t,e){if(1&t&&(p.TgZ(0,"button",10),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t){const t=p.oxw(),e=p.MAs(9);p.Q6J("disabled",t.findSponsorsAuth&&0===t.voSponsors.length)("matMenuTriggerFor",e),p.xp6(1),p.hij(" ",p.lcZ(2,3,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE")," ")}}function ge(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",11),p.NdJ("click",function(){return p.CHM(t),p.oxw().onCreate()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE_ONE")," "))}function fe(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",11),p.NdJ("click",function(){return p.CHM(t),p.oxw().onGenerate()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.GENERATE")," "))}function me(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",12),p.NdJ("click",function(){return p.CHM(t),p.oxw().onSponsorExistingMember()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.SPONSOR_EXISTING")," "))}function be(t,e){1&t&&p._UZ(0,"mat-spinner",13)}function _e(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"app-sponsored-members-list",14),p.NdJ("refreshTable",function(){return p.CHM(t),p.oxw().refresh()}),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("sponsoredMembers",t.members)("disableRouting",!t.routeAuth)("selection",t.selection)("filterValue",t.searchString)("tableId",t.tableId)}}let we=(()=>{class t{constructor(t,e,i,n,r,a){this.membersManager=t,this.dialog=e,this.authResolver=i,this.storeService=n,this.authzResolver=r,this.entityStorageService=a,this.members=[],this.voSponsors=[],this.attrNames=[],this.selection=new s.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=o.Bf}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights();const t=["SPONSOR"],e=new Map;this.authResolver.getRolesAuthorization(t,this.vo,e),this.findSponsorsAuth=e.get(t[0]).readAuth,this.findSponsorsAuth?this.authzResolver.getAuthzRichAdmins(h.u.SPONSOR,this.vo.id,"Vo",[tt.r.USER_DEF_PREFERRED_MAIL],!1,!1).subscribe(t=>{this.voSponsors=t,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 t=(0,r.kZ)();t.width="620px",t.data={entityId:this.vo.id,voId:this.vo.id,sponsors:this.voSponsors,theme:"vo-theme"},this.dialog.open(X,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(t=>{this.storeService.setPerunPrincipal(t),this.refresh()}))})}onGenerate(){const t=(0,r.kZ)();t.width="750px",t.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(Mt,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(t=>{this.storeService.setPerunPrincipal(t),this.refresh()}))})}onSponsorExistingMember(){const t=(0,r.kZ)();t.width="650px",t.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(qt,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(t=>{this.storeService.setPerunPrincipal(t),this.refresh()}))})}refresh(){this.loading=!0,this.membersManager.getSponsoredMembersAndTheirSponsors(this.vo.id,this.attrNames).subscribe(t=>{this.selection.clear(),this.members=t,this.setAuthRights(),this.loading=!1})}applyFilter(t){this.searchString=t}}return t.id="VoSponsoredMembersComponent",t.\u0275fac=function(e){return new(e||t)(p.Y36(n.uq),p.Y36(a.uw),p.Y36(c.x4),p.Y36(c.d6),p.Y36(n.Ct),p.Y36(c.fb))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-vo-settings-sponsored-members"]],hostVars:2,hostBindings:function(t,e){2&t&&p.ekj("router-component",e.true)},decls:16,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent","class","mr-2 dropdown-toggle",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["mat-menu-item","","class","action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"sponsoredMembers","disableRouting","selection","filterValue","tableId","refreshTable",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",1,"action-button",3,"click"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"sponsoredMembers","disableRouting","selection","filterValue","tableId","refreshTable"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"perun-web-apps-refresh-button",1),p.NdJ("refresh",function(){return e.refresh()}),p.qZA(),p.TgZ(5,"span",2),p.ALo(6,"translate"),p.YNc(7,pe,3,5,"button",3),p.qZA(),p.TgZ(8,"mat-menu",null,4),p.YNc(10,ge,3,3,"button",5),p.YNc(11,fe,3,3,"button",5),p.qZA(),p.YNc(12,me,3,3,"button",6),p.TgZ(13,"perun-web-apps-immediate-filter",7),p.NdJ("filter",function(t){return e.applyFilter(t)}),p.qZA(),p.YNc(14,be,1,0,"mat-spinner",8),p.YNc(15,_e,1,5,"app-sponsored-members-list",9),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,10,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.TITLE")),p.xp6(3),p.s9C("matTooltip",p.lcZ(6,12,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.NO_SPONSORS")),p.Q6J("matTooltipDisabled",!(e.findSponsorsAuth&&0===e.voSponsors.length)),p.xp6(2),p.Q6J("ngIf",e.createAuth||e.generateAuth),p.xp6(3),p.Q6J("ngIf",e.createAuth),p.xp6(1),p.Q6J("ngIf",e.generateAuth),p.xp6(1),p.Q6J("ngIf",e.setSponsorshipAuth),p.xp6(1),p.Q6J("placeholder","VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.FILTER"),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[Ft.t,A.gM,u.O5,st.VK,it.L,R.lW,st.p6,st.OP,f.$g,de],pipes:[g.X$],styles:[""]}),t})()},17249:function(t,e,i){"use strict";i.d(e,{Y:function(){return M}});var n=i(65249),s=i(84140),o=i(68416),r=i(99608),a=i(4230),c=i(84608),l=i(16073),u=i(31572),h=i(48160),d=i(57629),p=i(61511),g=i(67806),f=i(66283),m=i(80340),b=i(15980),_=i(36922);function w(t,e){1&t&&u._UZ(0,"mat-spinner",3)}function A(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"div"),u.TgZ(1,"div",4),u.TgZ(2,"mat-form-field"),u._UZ(3,"input",5),u.ALo(4,"translate"),u.TgZ(5,"mat-error"),u._uU(6),u.ALo(7,"translate"),u.qZA(),u.qZA(),u.TgZ(8,"mat-form-field"),u._UZ(9,"input",6),u.ALo(10,"translate"),u.TgZ(11,"mat-error"),u._uU(12),u.ALo(13,"translate"),u.qZA(),u.qZA(),u.qZA(),u.TgZ(14,"div",7),u.TgZ(15,"button",8),u.NdJ("click",function(){return u.CHM(t),u.oxw().onCancel()}),u._uU(16),u.ALo(17,"translate"),u.qZA(),u.TgZ(18,"div",9),u.ALo(19,"translate"),u.TgZ(20,"button",10),u.NdJ("click",function(){return u.CHM(t),u.oxw().onSubmit()}),u._uU(21),u.ALo(22,"translate"),u.qZA(),u.qZA(),u.qZA(),u.qZA()}if(2&t){const t=u.oxw();u.xp6(3),u.s9C("placeholder",u.lcZ(4,11,"DIALOGS.CREATE_VO.FULL_NAME")),u.Q6J("formControl",t.fullNameCtrl),u.xp6(3),u.hij(" ",u.lcZ(7,13,"DIALOGS.CREATE_VO.FILL_FULL_NAME")," "),u.xp6(3),u.s9C("placeholder",u.lcZ(10,15,"DIALOGS.CREATE_VO.SHORT_NAME")),u.Q6J("formControl",t.shortNameCtrl),u.xp6(3),u.hij(" ",u.lcZ(13,17,"DIALOGS.CREATE_VO.FILL_SHORT_NAME")," "),u.xp6(4),u.hij(" ",u.lcZ(17,19,"DIALOGS.CREATE_VO.CANCEL")," "),u.xp6(2),u.s9C("matTooltip",u.lcZ(19,21,"DIALOGS.CREATE_VO.TOOLTIP")),u.Q6J("matTooltipDisabled",t.shortNameCtrl.valid&&t.fullNameCtrl.valid),u.xp6(2),u.Q6J("disabled",t.shortNameCtrl.invalid||t.fullNameCtrl.invalid),u.xp6(1),u.hij(" ",u.lcZ(22,23,"DIALOGS.CREATE_VO.CREATE")," ")}}let y=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.notificator=i,this.voService=n,this.translate=s,this.router=o,s.get("DIALOGS.CREATE_VO.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.theme=this.data.theme,this.shortNameCtrl=new l.NI(null,[l.kI.required,l.kI.pattern("^[\\w.-]+$"),l.kI.maxLength(33)]),this.fullNameCtrl=new l.NI(null,[l.kI.required,l.kI.pattern(".*[\\S]+.*"),l.kI.maxLength(129)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.voService.createVoWithName(this.fullNameCtrl.value,this.shortNameCtrl.value).subscribe(t=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0),this.router.navigate(["/organizations",t.id])},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(c.so),u.Y36(c.WI),u.Y36(o.V6),u.Y36(n.YF),u.Y36(h.sK),u.Y36(d.F0))},t.\u0275cmp=u.Xpm({type:t,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","","required","","data-cy","vo-name-input",3,"placeholder","formControl"],["matInput","","required","","data-cy","vo-shortname-input",3,"placeholder","formControl"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent","data-cy","create-vo-button",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.YNc(4,w,1,0,"mat-spinner",1),u.YNc(5,A,23,25,"div",2),u.qZA()),2&t&&(u.Tol(e.theme),u.xp6(2),u.Oqu(u.lcZ(3,6,"DIALOGS.CREATE_VO.TITLE")),u.xp6(2),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading))},directives:[c.uh,p.O5,g.$g,c.xY,f.KE,m.Nt,l.Fj,l.Q7,l.JJ,l.oH,f.TO,c.H8,b.lW,_.gM],pipes:[h.X$],styles:[""]}),t})();var v=i(60611),T=i(48958),C=i(66297),E=i(43691),S=i(59403),k=i(19139),I=i(97162);function x(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"button",9),u.NdJ("click",function(){return u.CHM(t),u.oxw().onCreateVo()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"VO_MANAGEMENT.CREATE_VO")," "))}function R(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"button",10),u.NdJ("click",function(){return u.CHM(t),u.oxw().onRemoveVo()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}if(2&t){const t=u.oxw();u.Q6J("disabled",0===t.selection.selected.length),u.xp6(1),u.hij(" ",u.lcZ(2,2,"VO_MANAGEMENT.REMOVE_VO")," ")}}function O(t,e){1&t&&u._UZ(0,"mat-spinner",11)}function P(t,e){if(1&t&&u._UZ(0,"perun-web-apps-vos-list",12),2&t){const t=u.oxw();u.Q6J("tableId",t.tableId)("displayedColumns",t.displayedColumns)("filterValue",t.filterValue)("recentIds",t.recentIds)("selection",t.selection)("vos",t.vos)}}const D=function(){return{color:"black"}};let M=(()=>{class t{constructor(t,e,i,n,s,o){this.sideMenuService=t,this.voService=e,this.guiAuthResolver=i,this.dialog=n,this.notificator=s,this.apiRequest=o,this.vos=[],this.recentIds=[],this.filterValue="",this.tableId=v.tw}ngOnInit(){this.loading=!0,this.selection=new a.Ov(!1,[]),this.createAuth=this.guiAuthResolver.isAuthorized("createVo_Vo_policy",[]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteVo_Vo_policy",[]),this.displayedColumns=this.deleteAuth?["checkbox","id","recent","shortName","name"]:["id","recent","shortName","name"],this.refreshTable()}ngAfterViewChecked(){this.sideMenuService.setAccessMenuItems([])}refreshTable(){this.loading=!0,this.selection.clear(),this.apiRequest.dontHandleErrorForNext(),this.voService.getMyVos().subscribe(t=>{this.vos=t,this.recentIds=(0,s.vL)("vos"),this.loading=!1},t=>{"PrivilegeException"===t.error.name?(this.vos=[],this.loading=!1):this.notificator.showRPCError(t)})}applyFilter(t){this.filterValue=t}onCreateVo(){const t=(0,s.kZ)();t.width="600px",t.data={theme:"vo-theme"},this.dialog.open(y,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.refreshTable())})}onRemoveVo(){const t=(0,s.kZ)();t.width="500px",t.data={theme:"vo-theme",vos:[this.selection.selected[0]]},this.dialog.open(r.o,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}}return t.id="VoSelectPageComponent",t.\u0275fac=function(e){return new(e||t)(u.Y36(T.D),u.Y36(n.YF),u.Y36(o.x4),u.Y36(c.uw),u.Y36(o.V6),u.Y36(o.F5))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-vo-select-page"]],hostVars:2,hostBindings:function(t,e){2&t&&u.ekj("router-component",e.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"],["mat-flat-button","","color","accent","class","mr-2 action-button","data-cy","new-vo-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"],["mat-flat-button","","color","accent","data-cy","new-vo-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(t,e){1&t&&(u.TgZ(0,"div",0),u._UZ(1,"perun-web-apps-back-button"),u.TgZ(2,"h1",1),u._UZ(3,"mat-icon",2),u._uU(4),u.ALo(5,"translate"),u.qZA(),u.TgZ(6,"perun-web-apps-refresh-button",3),u.NdJ("refresh",function(){return e.refreshTable()}),u.qZA(),u.YNc(7,x,3,3,"button",4),u.YNc(8,R,3,4,"button",5),u.TgZ(9,"perun-web-apps-immediate-filter",6),u.NdJ("filter",function(t){return e.applyFilter(t)}),u.qZA(),u.YNc(10,O,1,0,"mat-spinner",7),u.YNc(11,P,1,6,"perun-web-apps-vos-list",8),u.qZA()),2&t&&(u.xp6(3),u.Q6J("ngStyle",u.DdM(10,D)),u.xp6(1),u.hij(" ",u.lcZ(5,8,"VO_MANAGEMENT.TITLE")," "),u.xp6(3),u.Q6J("ngIf",e.createAuth),u.xp6(1),u.Q6J("ngIf",e.deleteAuth),u.xp6(1),u.Q6J("autoFocus",!0)("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER"),u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading))},directives:[C.W,E.Hw,p.PC,S.t,p.O5,k.L,b.lW,g.$g,I.Z],pipes:[h.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),t})()},73868:function(t,e,i){"use strict";var n=i(30269),s=i(31572),o=i(57629);let r=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-auth-callback"]],decls:0,vars:0,template:function(t,e){},styles:[""]}),t})();var a=i(65249),c=i(68416),l=i(84140),u=i(6527),h=i(48958),d=i(48160),p=i(84608),g=i(25122),f=i(29236),m=i(16073),b=i(61511),_=i(43691),w=i(15980),A=i(67806),y=i(39571),v=i(71522),T=i(84534),C=i(36922);function E(t,e){1&t&&s._UZ(0,"mat-spinner",3)}function S(t,e){1&t&&(s.TgZ(0,"app-alert",4),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"USER_DETAIL.DASHBOARD.NO_RECENTLY_VIEWED")))}const k=function(t){return[t]};function I(t,e){if(1&t&&(s.TgZ(0,"div",7),s.TgZ(1,"a",8),s.TgZ(2,"span",9),s._uU(3),s.qZA(),s._UZ(4,"mat-icon",10),s.TgZ(5,"p",11),s._uU(6),s.qZA(),s.qZA(),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Gre("",t.style," item-itself"),s.s9C("matTooltip",t.tooltip),s.Q6J("routerLink",t.url)("perunWebAppsMiddleClickRouterLink",s.VKq(9,k,t.url)),s.xp6(2),s.Oqu(t.type),s.xp6(1),s.Q6J("svgIcon",t.cssIcon),s.xp6(2),s.Oqu(t.label)}}function x(t,e){if(1&t&&(s.TgZ(0,"div",5),s.YNc(1,I,7,11,"div",6),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngForOf",t.items)}}let R=(()=>{class t{constructor(t,e,i,n){this.vosManager=t,this.groupsManager=e,this.authResolver=i,this.facilitiesManager=n,this.items=[],this.vosIds=[],this.groupsIds=[],this.facilitiesIds=[],this.existingRecentIds=[],this.vos=[],this.groups=[],this.facilities=[]}ngOnInit(){this.loading=!0,this.recentItems=(0,l.vL)("recent");for(const t of this.recentItems)switch(t.type){case"Vo":this.vosIds.push(t.id);break;case"Group":this.groupsIds.push(t.id);break;case"Facility":this.facilitiesIds.push(t.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(t=>{this.vos=t,this.getGroups()}):this.getGroups()}getGroups(){this.authResolver.isAuthorized("getGroupsByIds_List_policy",[])?this.groupsManager.getGroupsByIds(this.groupsIds).subscribe(t=>{this.groups=t,this.getFacilities()}):this.getFacilities()}getFacilities(){this.authResolver.isAuthorized("getFacilitiesByIds_List_policy",[])?this.facilitiesManager.getFacilitiesByIds(this.facilitiesIds).subscribe(t=>{this.facilities=t,this.addRecentlyViewedToDashboard()}):this.addRecentlyViewedToDashboard()}addRecentlyViewedToDashboard(){for(const t of this.recentItems)switch(t.type){case"Vo":{const e=this.vos.filter(e=>e.id===t.id)[0];e&&this.items.push({cssIcon:"perun-vo",url:`/organizations/${e.id}`,label:e.name,tooltip:e.name,style:"vo-btn",type:"Organization"});break}case"Group":{const e=this.groups.filter(e=>e.id===t.id)[0];e&&this.items.push({cssIcon:"perun-group",url:`/organizations/${e.voId}/groups/${e.id}`,label:e.shortName,tooltip:`${t.voName} : ${e.name.replace(/:/g," : ")}`,style:"group-btn",type:"Group"});break}case"Facility":{const e=this.facilities.filter(e=>e.id===t.id)[0];e&&this.items.push({cssIcon:"perun-facility-white",url:`/facilities/${e.id}`,label:e.name,tooltip:e.name,style:"facility-btn",type:"Facility"});break}}this.loading=!1}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(a.YF),s.Y36(a.ff),s.Y36(c.x4),s.Y36(a.IQ))},t.\u0275cmp=s.Xpm({type:t,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","perunWebAppsMiddleClickRouterLink","matTooltip"],[1,"item-type"],[1,"item-pic","perun-icon",3,"svgIcon"],[1,"truncate"]],template:function(t,e){1&t&&(s.YNc(0,E,1,0,"mat-spinner",0),s.YNc(1,S,3,3,"app-alert",1),s.YNc(2,x,2,1,"div",2)),2&t&&(s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",0===e.items.length&&!e.loading),s.xp6(1),s.Q6J("ngIf",e.items.length>0))},directives:[b.O5,A.$g,y.w,b.sg,v.wG,o.yS,T.YH,C.gM,_.Hw],pipes:[d.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%]{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap}"]}),t})();var O=i(97162),P=i(78364),D=i(88884),M=i(60007);function L(t,e){1&t&&s._UZ(0,"mat-spinner",7)}const N=function(){return["id","recent","shortName","name"]};function z(t,e){if(1&t&&(s.TgZ(0,"span"),s._UZ(1,"perun-web-apps-vos-list",8),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("pageSizeOptions",null)("displayedColumns",s.DdM(4,N))("recentIds",t.recentIds)("vos",t.objects)}}const Z=function(){return["id","recent","vo","name","description"]};function B(t,e){if(1&t&&(s.TgZ(0,"span"),s._UZ(1,"perun-web-apps-groups-list",9),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("pageSizeOptions",null)("groups",t.objects)("recentIds",t.recentIds)("displayedColumns",s.DdM(4,Z))}}const q=function(){return["id","recent","name","vo","facility"]};function F(t,e){if(1&t&&(s.TgZ(0,"span"),s._UZ(1,"perun-web-apps-resources-list",10),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("pageSizeOptions",null)("resources",t.objects)("displayedColumns",s.DdM(5,q))("recentIds",t.recentIds)("routingVo",!0)}}const U=function(){return["id","recent","name","description"]};function H(t,e){if(1&t&&(s.TgZ(0,"span"),s._UZ(1,"perun-web-apps-facilities-list",11),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("pageSizeOptions",null)("facilities",t.objects)("recentIds",t.recentIds)("displayedColumns",s.DdM(4,U))}}function G(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,z,2,5,"span",6),s.YNc(2,B,2,5,"span",6),s.YNc(3,F,2,6,"span",6),s.YNc(4,H,2,5,"span",6),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngIf","Vo"===t.primaryObject),s.xp6(1),s.Q6J("ngIf","Group"===t.primaryObject),s.xp6(1),s.Q6J("ngIf","Resource"===t.primaryObject),s.xp6(1),s.Q6J("ngIf","Facility"===t.primaryObject)}}let j=(()=>{class t{constructor(t,e,i){this.authzResolver=t,this.guiAuthResolver=e,this.resourceService=i,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(t=>{this.objects=t,this.recentIds=(0,l.vL)("vos"),this.loading=!1});break;case"Group":this.authzResolver.getGroupsWhereUserIsInRoles([this.roleName]).subscribe(t=>{this.objects=t,this.recentIds=(0,l.vL)("groups"),this.loading=!1});break;case"Resource":this.resourceService.getRichResourcesByIds(this.role[this.primaryObject]).subscribe(t=>{this.objects=t,this.recentIds=(0,l.vL)("resources"),this.loading=!1});break;case"Facility":this.authzResolver.getFacilitiesWhereUserIsInRoles([this.roleName]).subscribe(t=>{this.objects=t.map(t=>({facility:t})),this.recentIds=(0,l.vL)("facilities"),this.loading=!1});break;default:this.objects=[],this.loading=!1}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(a.Ct),s.Y36(c.x4),s.Y36(a.xk))},t.\u0275cmp=s.Xpm({type:t,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","groups","recentIds","displayedColumns"],[3,"pageSizeOptions","resources","displayedColumns","recentIds","routingVo"],[3,"pageSizeOptions","facilities","recentIds","displayedColumns"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s._UZ(2,"mat-icon",2),s._uU(3),s.ALo(4,"translate"),s.TgZ(5,"span",3),s.ALo(6,"translate"),s.TgZ(7,"mat-icon",4),s._uU(8,"info_outline"),s.qZA(),s.qZA(),s.qZA(),s.YNc(9,L,1,0,"mat-spinner",5),s.YNc(10,G,5,4,"div",6),s.qZA()),2&t&&(s.xp6(2),s.Q6J("svgIcon",e.svgIcon),s.xp6(1),s.hij(" ",s.lcZ(4,5,e.title)," "),s.xp6(2),s.s9C("matTooltip",s.lcZ(6,7,e.roleTooltipInfo)),s.xp6(4),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[_.Hw,C.gM,b.O5,A.$g,O.Z,P.W,D.C,M.X],pipes:[d.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}"]}),t})();var Y=i(22196);function K(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"mat-checkbox",8),s.NdJ("change",function(e){const i=s.CHM(t).$implicit,n=s.oxw();return e?n.changeRoleView(i):null}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.Q6J("checked",i.isRoleShowed(t)),s.xp6(1),s.Oqu(s.lcZ(3,2,"USER_DETAIL.DASHBOARD.CARD_TITLE_"+t))}}function V(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",15),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).rightSettingOpened=!0}),s.TgZ(1,"mat-icon"),s._uU(2,"settings"),s.qZA(),s.qZA()}}function $(t,e){1&t&&(s.TgZ(0,"span"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO_NO_USER_PROFILE")))}function J(t,e){1&t&&(s.TgZ(0,"span"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO")))}function Q(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",23),s.NdJ("click",function(){return s.CHM(t),s.oxw(3).goToUserProfile()}),s.TgZ(1,"mat-icon",24),s._uU(2,"exit_to_app"),s.qZA(),s._uU(3),s.ALo(4,"translate"),s.qZA()}if(2&t){const t=s.oxw(3);s.xp6(3),s.AsE("",s.lcZ(4,2,"USER_DETAIL.DASHBOARD.GO_TO_USER_PROFILE")," ",t.userProfileName," ")}}const W=function(){return["/myProfile"]};function X(t,e){if(1&t&&(s.TgZ(0,"div"),s.TgZ(1,"div",16),s.TgZ(2,"div",17),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.TgZ(5,"div",18),s.YNc(6,$,3,3,"span",14),s.YNc(7,J,3,3,"span",14),s.qZA(),s.TgZ(8,"div",19),s.TgZ(9,"button",20),s._UZ(10,"mat-icon",21),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.YNc(13,Q,5,4,"button",22),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.oxw(2);s.xp6(3),s.hij(" ",s.lcZ(4,6,"USER_DETAIL.DASHBOARD.NOT_MANAGER")," "),s.xp6(3),s.Q6J("ngIf",!t.userProfileUrl),s.xp6(1),s.Q6J("ngIf",t.userProfileUrl),s.xp6(2),s.Q6J("routerLink",s.DdM(10,W)),s.xp6(2),s.hij(" ",s.lcZ(12,8,"USER_DETAIL.DASHBOARD.GO_TO_MY_PROFILE")," "),s.xp6(2),s.Q6J("ngIf",t.userProfileUrl)}}function tt(t,e){1&t&&(s.TgZ(0,"span"),s.TgZ(1,"div",3),s._uU(2),s.ALo(3,"translate"),s.qZA(),s._UZ(4,"app-perun-web-apps-dashboard-recently-viewed-button-field"),s.qZA()),2&t&&(s.xp6(2),s.hij(" ",s.lcZ(3,1,"USER_DETAIL.DASHBOARD.RECENTLY_VIEWED")," "))}function et(t,e){1&t&&(s.TgZ(0,"div",27),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"USER_DETAIL.DASHBOARD.MANAGEABLE_ENTITIES")," "))}function it(t,e){if(1&t&&s._UZ(0,"app-perun-web-apps-dashboard-card",30),2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Q6J("roleName",t)("role",e.roles[t])}}function nt(t,e){if(1&t&&(s.TgZ(0,"div",28),s.YNc(1,it,1,2,"app-perun-web-apps-dashboard-card",29),s.qZA()),2&t){const t=e.$implicit,i=s.oxw(3);s.xp6(1),s.Q6J("ngIf",i.isRoleShowed(t))}}function st(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,tt,5,3,"span",14),s.YNc(2,et,3,3,"div",25),s.TgZ(3,"div"),s.YNc(4,nt,2,1,"div",26),s.qZA(),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("ngIf",t.recentlyViewedShow),s.xp6(1),s.Q6J("ngIf",t.rolesToHide.toString()!==t.roleNames.toString()),s.xp6(2),s.Q6J("ngForOf",t.roleNames)}}function ot(t,e){if(1&t&&(s.TgZ(0,"div",9),s.TgZ(1,"h1",10),s._UZ(2,"mat-icon",11),s.TgZ(3,"span",12),s._uU(4),s.ALo(5,"translate"),s.ALo(6,"userFullName"),s.qZA(),s.YNc(7,V,3,0,"button",13),s.qZA(),s.YNc(8,X,14,11,"div",14),s.YNc(9,st,5,3,"div",14),s.qZA()),2&t){const t=s.oxw();s.xp6(4),s.AsE("",s.lcZ(5,5,"USER_DETAIL.DASHBOARD.TITLE")," ",s.lcZ(6,7,t.user),""),s.xp6(3),s.Q6J("ngIf",!t.isOnlySelfRole),s.xp6(1),s.Q6J("ngIf",t.isOnlySelfRole),s.xp6(1),s.Q6J("ngIf",!t.isOnlySelfRole)}}let rt=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,l){this.userManager=t,this.storeService=e,this.sideMenuService=i,this.route=n,this.router=s,this.notificator=o,this.translateService=r,this.dialog=a,this.apiRequestConfiguration=c,this.otherApplicationService=l,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"],r.get("USER_DETAIL.DASHBOARD.MAIL_CHANGE_SUCCESS").subscribe(t=>this.mailSuccessMessage=t)}ngOnInit(){this.sideMenuService.setHomeItems([]),this.validatePreferredMailChange(),this.user=this.storeService.getPerunPrincipal().user,this.roles=this.storeService.getPerunPrincipal().roles,this.getUserProfile();const t=Object.keys(this.roles);this.isOnlySelfRole=t.toString()===["SELF"].toString(),this.roleNames=this.allowedRoles.filter(e=>t.includes(e)),this.getDashboardSettings()}validatePreferredMailChange(){const t=this.route.snapshot.queryParamMap,e=t.get("token"),i=t.get("u");e&&i&&(this.apiRequestConfiguration.dontHandleErrorForNext(),this.userManager.validatePreferredEmailChangeWithToken(e,Number.parseInt(i,10)).subscribe(()=>{this.notificator.showSuccess(this.mailSuccessMessage),this.router.navigate([],{replaceUrl:!0})},()=>{const t=(0,l.kZ)();t.width="600px",this.dialog.open(u.qD,t).afterClosed().subscribe(()=>{this.getDashboardSettings()})}))}goToUserProfile(){window.open(this.userProfileUrl)}recentlyViewedChanged(){localStorage.setItem("showRecentlyViewed",JSON.stringify(this.recentlyViewedShow))}getDashboardSettings(){const t=JSON.parse(localStorage.getItem("showRecentlyViewed"));this.recentlyViewedShow=null===t||t;const e=JSON.parse(localStorage.getItem("rolesToHide"));this.rolesToHide=null===e?[]:e}changeRoleView(t){if(this.isRoleShowed(t)){const e=[];for(const i of this.roleNames)this.isRoleShowed(i)||e.push(i),i===t&&e.push(i);this.rolesToHide=e}else this.rolesToHide=this.rolesToHide.filter(e=>e!==t);localStorage.setItem("rolesToHide",JSON.stringify(this.rolesToHide))}isRoleShowed(t){for(const e of this.rolesToHide)if(e===t)return!1;return!0}getUserProfile(){this.userProfileUrl=this.otherApplicationService.getUrlForOtherApplication("profile"),this.userProfileName=this.storeService.get("profile_label_en")}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(a.Fv),s.Y36(c.d6),s.Y36(h.D),s.Y36(o.gz),s.Y36(o.F0),s.Y36(c.V6),s.Y36(d.sK),s.Y36(p.uw),s.Y36(c.F5),s.Y36(c.jq))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-perun-web-apps-user-dashboard"]],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("router-component",e.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"],["mat-stroked-button","","class","ml-auto text-bigger",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"],["mat-stroked-button","","class","text-bigger ml-2 mt-2",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(t,e){1&t&&(s.TgZ(0,"mat-sidenav-container",0),s.TgZ(1,"mat-sidenav",1),s.NdJ("openedChange",function(t){return e.rightSettingOpened=t}),s.TgZ(2,"div",2),s.TgZ(3,"div",3),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"div"),s.TgZ(7,"mat-checkbox",4),s.NdJ("ngModelChange",function(t){return e.recentlyViewedShow=t})("change",function(t){return t?e.recentlyViewedChanged():null}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.qZA(),s.TgZ(10,"div",5),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.YNc(13,K,4,4,"div",6),s.qZA(),s.qZA(),s.TgZ(14,"mat-sidenav-content"),s.YNc(15,ot,10,9,"div",7),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Q6J("opened",e.rightSettingOpened),s.xp6(3),s.Oqu(s.lcZ(5,7,"USER_DETAIL.DASHBOARD.DASHBOARD_SETTINGS")),s.xp6(3),s.Q6J("ngModel",e.recentlyViewedShow),s.xp6(1),s.Oqu(s.lcZ(9,9,"USER_DETAIL.DASHBOARD.SHOW_RECENTLY_VIEWED")),s.xp6(3),s.Oqu(s.lcZ(12,11,"USER_DETAIL.DASHBOARD.SHOW_ROLES")),s.xp6(2),s.Q6J("ngForOf",e.roleNames),s.xp6(2),s.Q6J("ngIf",void 0!==e.user))},directives:[g.TM,g.JX,f.oG,m.JJ,m.On,b.sg,g.Rh,b.O5,_.Hw,w.lW,o.rH,R,j],pipes:[d.X$,Y.d],styles:[".dashboard-container[_ngcontent-%COMP%]{-moz-columns:300px 2;columns:300px 2;grid-column-gap:1rem;-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 - 64px - 200px);margin-bottom:-60px!important;padding-bottom:50px;top:-10px!important;left:0;right:0}"]}),t})();var at=i(66297);let ct=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s._UZ(1,"perun-web-apps-back-button"),s.TgZ(2,"h1",1),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(3),s.Oqu(s.lcZ(4,1,"GENERAL.PAGE_NOT_FOUND.TITLE")))},directives:[at.W],pipes:[d.X$],styles:[""]}),t})();var lt=i(41939),ut=i(66283),ht=i(80340),dt=i(22727);let pt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[b.ez,w.ot,_.Ps,o.Bz,lt.ez,d.aw,ut.lN,m.UX,ht.c,dt.r]]}),t})(),gt=(()=>{class t{constructor(t){this.auth=t}startAuth(){this.auth.startAuthentication()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(c.e8))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.TgZ(3,"h4",3),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"button",4),s.NdJ("click",function(){return e.startAuth()}),s._uU(7),s.ALo(8,"translate"),s.TgZ(9,"mat-icon"),s._uU(10," login "),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(4),s.hij(" ",s.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),s.xp6(3),s.hij(" ",s.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},directives:[w.lW,_.Hw],pipes:[d.X$],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),t})();var ft=i(67474);function mt(t,e){if(1&t&&(s.TgZ(0,"div",8),s._UZ(1,"div",9),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("innerHTML",t.logo,s.oJD)}}function bt(t,e){if(1&t&&(s.TgZ(0,"div",10),s._UZ(1,"div",11),s._UZ(2,"mat-icon",12),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("innerHTML",t.logo,s.oJD)}}function _t(t,e){if(1&t&&(s.TgZ(0,"div",8),s._UZ(1,"a",9),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("innerHTML",t.logo,s.oJD)}}const wt=function(t){return{color:t}};function At(t,e){if(1&t&&(s.TgZ(0,"p",13),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.Q6J("ngStyle",s.VKq(2,wt,t.textColor)),s.xp6(1),s.hij(" ",t.headerTitle," ")}}const yt=function(t,e){return{background:t,color:e}},vt=function(t,e){return{"min-height":t,"background-color":e}};let Tt=(()=>{class t{constructor(t,e,i,n){this.storeService=t,this.sanitizer=e,this.preferredLangService=i,this.translateService=n,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 t=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(t)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(c.d6),s.Y36(n.H7),s.Y36(c.BN),s.Y36(d.sK))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:11,vars:12,consts:[["id","login-nav",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["style"," display: flex; flex-direction: 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"],[2,"display","flex","flex-direction","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(t,e){1&t&&(s.TgZ(0,"div",0),s.YNc(1,mt,2,1,"div",1),s.YNc(2,bt,3,1,"div",2),s.YNc(3,_t,2,1,"div",1),s.YNc(4,At,2,4,"p",3),s.qZA(),s.TgZ(5,"div",4),s.TgZ(6,"div",5),s.TgZ(7,"div",6),s._UZ(8,"router-outlet"),s.qZA(),s.TgZ(9,"div",7),s._UZ(10,"perun-web-apps-footer"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Q6J("ngStyle",s.WLB(6,yt,e.headerBackgroundColor,e.headerTextColor)),s.xp6(1),s.Q6J("ngIf","admin-gui"===e.application),s.xp6(1),s.Q6J("ngIf","publications"===e.application),s.xp6(1),s.Q6J("ngIf","user-profile"===e.application),s.xp6(1),s.Q6J("ngIf",!!e.headerTitle),s.xp6(2),s.Q6J("ngStyle",s.WLB(9,vt,e.getContentInnerMinHeight(),e.contentBackgroundColor)))},directives:[b.PC,b.O5,o.lC,ft.$,_.Hw],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}"]}),t})();function Ct(t,e){1&t&&(s.TgZ(0,"app-alert",8),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}const Et=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"redirect",component:lt.t$},{path:"api-callback",component:r},{path:"login",component:gt},{path:"service-access",component:(()=>{class t{constructor(t,e,i){this.authzService=t,this.dialog=e,this.translate=i,this.wrongUsernameOrPassword=!1}ngOnInit(){this.usernameCtrl=new m.NI(null,[m.kI.required]),this.passwordCtrl=new m.NI(null,[m.kI.required])}startAuth(){sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe(t=>{sessionStorage.setItem("baPrincipal",JSON.stringify(t)),location.reload()},()=>{this.wrongUsernameOrPassword=!0})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(a.Ct),s.Y36(p.uw),s.Y36(d.sK))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.TgZ(3,"h2"),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.YNc(6,Ct,3,3,"app-alert",3),s.TgZ(7,"mat-form-field",4),s.TgZ(8,"mat-label"),s._uU(9),s.ALo(10,"translate"),s.qZA(),s._UZ(11,"input",5),s.TgZ(12,"mat-error"),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.qZA(),s.TgZ(15,"mat-form-field",4),s.TgZ(16,"mat-label"),s._uU(17),s.ALo(18,"translate"),s.qZA(),s._UZ(19,"input",6),s.TgZ(20,"mat-error"),s._uU(21),s.ALo(22,"translate"),s.qZA(),s.qZA(),s.TgZ(23,"button",7),s.NdJ("click",function(){return e.startAuth()}),s._uU(24),s.ALo(25,"translate"),s.TgZ(26,"mat-icon"),s._uU(27," login "),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(4),s.Oqu(s.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),s.xp6(2),s.Q6J("ngIf",e.wrongUsernameOrPassword),s.xp6(3),s.Oqu(s.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),s.xp6(2),s.Q6J("formControl",e.usernameCtrl),s.xp6(2),s.hij(" ",s.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),s.xp6(4),s.Oqu(s.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),s.xp6(2),s.Q6J("formControl",e.passwordCtrl)("type","password"),s.xp6(2),s.hij(" ",s.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),s.xp6(2),s.Q6J("disabled",e.usernameCtrl.invalid||e.passwordCtrl.invalid),s.xp6(1),s.hij(" ",s.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},directives:[b.O5,ut.KE,ut.hX,ht.Nt,m.Fj,m.Q7,m.JJ,m.oH,ut.TO,w.lW,_.Hw,y.w],pipes:[d.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}"]}),t})()},{path:"organizations",loadChildren:()=>Promise.all([i.e(917),i.e(202),i.e(827),i.e(427)]).then(i.bind(i,67427)).then(t=>t.VosModule)},{path:"admin",loadChildren:()=>Promise.all([i.e(917),i.e(515),i.e(202),i.e(781)]).then(i.bind(i,21781)).then(t=>t.AdminModule)},{path:"facilities",loadChildren:()=>Promise.all([i.e(917),i.e(515),i.e(202),i.e(781),i.e(827),i.e(749)]).then(i.bind(i,89749)).then(t=>t.FacilitiesModule)},{path:"myProfile",loadChildren:()=>Promise.all([i.e(917),i.e(515)]).then(i.bind(i,65515)).then(t=>t.UsersModule)},{path:"home",component:rt},{path:"**",component:ct}];let St=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[o.Bz.forRoot(Et,{preloadingStrategy:o.GZ,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})],o.Bz]}),t})();var kt=i(61601),It=i(28780);class xt{constructor(t,e="/assets/i18n/",i=".json"){this.http=t,this.prefix=e,this.suffix=i}getTranslation(t){return this.http.get(`${this.prefix}${t}${this.suffix}`)}}var Rt=i(29063),Ot=i(43490);let Pt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[c.e8],imports:[[b.ez]]}),t})();var Dt=i(28940),Mt=i(48002),Lt=i(40659),Nt=i(62284),zt=i(7433),Zt=i(82044),Bt=i(11930),qt=i(39124),Ft=i(64467),Ut=i(81835),Ht=i(88227),Gt=i(97397),jt=i(71313),Yt=i(14527),Kt=i(65423),Vt=i(17249),$t=i(73916),Jt=i(48666);let Qt=(()=>{class t{constructor(){this.allowCachePages=[{type:"vo",components:[Dt.y.id,Mt.G.id,Lt.c.id,Ht.z.id,Gt.z.id,Yt.w.id,Jt.T.id]},{type:"group",components:[Bt.y.id,Zt.u.id,zt.q.id,Nt.W.id,Kt.Z.id]},{type:"facility",components:[qt.o.id,Ft.f.id]},{type:"member",components:[Ut.j.id]},{type:"admin",components:[jt.t.id]},{type:"entitySelect",components:[Vt.Y.id,$t.P.id]}],this.cacheTimeMs=3e5,this.resets=[{lastValue:null,resetType:"vo",resetPath:":voId",param:"voId"},{lastValue:null,resetType:"group",resetPath:":voId/groups/:groupId",param:"groupId"},{lastValue:null,resetType:"facility",resetPath:":facilityId",param:"facilityId"},{lastValue:null,resetType:"member",resetPath:":voId/members/:memberId",param:"memberId"},{lastValue:null,resetType:"admin",resetPath:"admin/users"}],this.isUserNavigatingBack=!1,this.typeToComponentToHandlers=new Map;for(const t of this.allowCachePages)this.typeToComponentToHandlers.set(t.type,new Map)}setLastNavigationType(t){this.isUserNavigatingBack="back"===t}checkResets(t){const e=this.getPath(t);for(const i of this.resets)if(i.resetPath===e){const e=t.params[i.param];null!==i.lastValue&&i.lastValue!==e&&this.typeToComponentToHandlers.get(i.resetType).clear(),i.lastValue=e}}shouldReuseRoute(t,e){return this.checkResets(e),t.routeConfig===e.routeConfig}retrieve(t){if(t.component){const e=this.getComponentName(t.component);for(const t of this.allowCachePages)if(-1!==t.components.indexOf(e)){const i=this.typeToComponentToHandlers.get(t.type).get(e);return void 0===i?null:i.routeHandle}}return null}shouldAttach(t){if(!this.isUserNavigatingBack)return!1;if(t.component){const e=this.getComponentName(t.component);for(const t of this.allowCachePages){const i=this.typeToComponentToHandlers.get(t.type).get(e);if(void 0!==i&&this.getCurrentTimestamp()-i.saveTimeStamp0;)document.getElementsByTagName("mat-tooltip-component")[0].remove();const i=this.getComponentType(t);this.typeToComponentToHandlers.get(i).set(this.getComponentName(t.component),{routeHandle:e,saveTimeStamp:this.getCurrentTimestamp()})}}getCurrentTimestamp(){return+Date.now()}getComponentName(t){return t.id}getComponentType(t){const e=this.getComponentName(t.component);for(const i of this.allowCachePages)if(-1!==i.components.indexOf(e))return i.type;return null}getPath(t){return null!==t.routeConfig&&null!==t.routeConfig.path?t.routeConfig.path:""}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const Wt=new s.OlP("perun-api-service");let Xt=(()=>{class t{constructor(t,e,i,n,s){this.http=t,this.storeService=e,this.authzSevice=i,this.titleService=n,this.utilsService=s}initializeColors(t,e){return new Promise(i=>{e.forEach(t=>{const e=this.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e)}),t.forEach(t=>{const e=this.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e),this.setEntityTheme(t.entity,e)}),i()})}setEntityTheme(t,e){const i=(n=e,[te(tinycolor(n).lighten(52),"50"),te(tinycolor(n).lighten(37),"100"),te(tinycolor(n).lighten(26),"200"),te(tinycolor(n).lighten(12),"300"),te(tinycolor(n).lighten(6),"400"),te(tinycolor(n),"500"),te(tinycolor(n).darken(6),"600"),te(tinycolor(n).darken(12),"700"),te(tinycolor(n).darken(18),"800"),te(tinycolor(n).darken(24),"900"),te(tinycolor(n).lighten(50).saturate(30),"A100"),te(tinycolor(n).lighten(30).saturate(30),"A200"),te(tinycolor(n).lighten(10).saturate(15),"A400"),te(tinycolor(n).lighten(5).saturate(5),"A700")]);var n;for(const s of i){const e=`--${t}-theme-primary-contrast-${s.name}`,i=s.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${t}-theme-primary-${s.name}`,`${s.red},${s.green},${s.blue}`),document.documentElement.style.setProperty(e,i)}}loadAppDefaultConfig(){return new Promise(t=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(e=>{this.storeService.setDefaultConfig(e),t()})})}loadAppInstanceConfig(){return new Promise(t=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(e=>{this.storeService.setInstanceConfig(e);const i=document.location.hostname;void 0!==e.brandings&&void 0!==e.brandings[i]&&this.storeService.setBanding(i),t()},()=>{console.log("instance config not detected"),t()})})}getNoCacheHeaders(){return new Rt.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(t=>{const e=document.querySelector("link[rel*='icon']")||document.createElement("link");e.type="image/x-icon",e.rel="shortcut icon",e.href=this.storeService.get("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(e),t()})}setApiUrl(){return new Promise(t=>{let e=this.storeService.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(e=e.replace("oauth","ba")),this.authzSevice.configuration.basePath=e,this.titleService.setTitle(this.storeService.get("document_title")),t()})}loadAppsConfig(){return new Promise((t,e)=>{this.utilsService.getAppsConfig().subscribe(e=>{this.storeService.setAppsConfig(e),t()},t=>e(t))})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Rt.eN),s.LFG(c.d6),s.LFG(a.Ct),s.LFG(n.Dx),s.LFG(a.FW))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function te(t,e){const i=tinycolor(t),n=i.toRgb();return{name:e,hex:i.toHexString(),darkContrast:i.isLight(),red:n.r,green:n.g,blue:n.b}}let ee=(()=>{class t{constructor(t,e){this.data=t,this.location=e}redirect(){this.location.go("/"),location.reload()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(p.WI),s.Y36(b.Ye))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-prevent-proxy-overload-dialog"]],decls:10,vars:9,consts:[[3,"click"]],template:function(t,e){1&t&&(s.TgZ(0,"h2"),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"p"),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"div"),s.TgZ(7,"button",0),s.NdJ("click",function(){return e.redirect()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,3,e.data.title),"\n"),s.xp6(3),s.hij(" ",s.lcZ(5,5,e.data.message),"\n"),s.xp6(4),s.hij(" ",s.lcZ(9,7,e.data.action)," "))},pipes:[d.X$],styles:[""]}),t})(),ie=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}refresh(){location.reload()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(p.so),s.Y36(p.WI))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-server-down-dialog"]],decls:10,vars:9,consts:[[3,"click"]],template:function(t,e){1&t&&(s.TgZ(0,"h2"),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"p"),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"div"),s.TgZ(7,"button",0),s.NdJ("click",function(){return e.refresh()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,3,e.data.title),"\n"),s.xp6(3),s.hij(" ",s.lcZ(5,5,e.data.message),"\n"),s.xp6(4),s.hij(" ",s.lcZ(9,7,e.data.action)," "))},pipes:[d.X$],styles:[""]}),t})(),ne=(()=>{class t{constructor(t,e,i,n,s,o){this.initAuthService=t,this.appConfigService=e,this.authzSevice=i,this.dialog=n,this.location=s,this.guiAuthResolver=o,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(t=>{if("Invalid path"!==t)throw console.error(t),this.location.go("/"),location.reload(),t;this.handleErr(t)}).then(t=>t?this.initAuthService.loadPrincipal().catch(t=>this.handleErr(t)).then(()=>this.loadPolicies()).then(()=>this.appConfigService.loadAppsConfig()).then(()=>this.guiAuthResolver.loadRolesManagementRules()):this.initAuthService.handleAuthStart())}handleErr(t){const e=(0,l.kZ)();throw"Invalid path"===t?(e.data={title:"GENERAL.PROXY_OVERLOAD_PREVENTION.TITLE",message:"GENERAL.PROXY_OVERLOAD_PREVENTION.MESSAGE",action:"GENERAL.PROXY_OVERLOAD_PREVENTION.ACTION"},this.dialog.open(ee,e)):(e.data={title:"GENERAL.PRINCIPAL_ERROR.TITLE",message:0===t.status?"GENERAL.PRINCIPAL_ERROR.MESSAGE":t.message,action:"GENERAL.PRINCIPAL_ERROR.ACTION"},this.dialog.open(ie,e)),console.error(t),t}loadPolicies(){return new Promise((t,e)=>{this.authzSevice.getAllPolicies().subscribe(e=>{this.guiAuthResolver.setPerunPolicies(e),t()},t=>e(t))})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(c.v0),s.LFG(Xt),s.LFG(a.Ct),s.LFG(p.uw),s.LFG(b.Ye),s.LFG(c.x4))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),se=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[b.ez,p.Is,w.ot,d.aw]]}),t})();var oe=i(64762),re=i(55959),ae=i(87254),ce=i(31906),le=i(30810),ue=i(25416),he=i(98720),de=i(88414);function pe(t){return getComputedStyle(t)}function ge(t,e){for(var i in e){var n=e[i];"number"==typeof n&&(n+="px"),t.style[i]=n}return t}function fe(t){var e=document.createElement("div");return e.className=t,e}var me="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function be(t,e){if(!me)throw new Error("No element matching method supported");return me.call(t,e)}function _e(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function we(t,e){return Array.prototype.filter.call(t.children,function(t){return be(t,e)})}var Ae=function(t){return"ps__thumb-"+t},ye=function(t){return"ps__rail-"+t},ve=function(t){return"ps--active-"+t},Te=function(t){return"ps--scrolling-"+t},Ce={x:null,y:null};function Ee(t,e){var i=t.element.classList,n=Te(e);i.contains(n)?clearTimeout(Ce[e]):i.add(n)}function Se(t,e){Ce[e]=setTimeout(function(){return t.isAlive&&t.element.classList.remove(Te(e))},t.settings.scrollingThreshold)}var ke=function(t){this.element=t,this.handlers={}},Ie={isEmpty:{configurable:!0}};ke.prototype.bind=function(t,e){void 0===this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e),this.element.addEventListener(t,e,!1)},ke.prototype.unbind=function(t,e){var i=this;this.handlers[t]=this.handlers[t].filter(function(n){return!(!e||n===e)||(i.element.removeEventListener(t,n,!1),!1)})},ke.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)},Ie.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every(function(e){return 0===t.handlers[e].length})},Object.defineProperties(ke.prototype,Ie);var xe=function(){this.eventElements=[]};function Re(t){if("function"==typeof window.CustomEvent)return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}function Oe(t,e,i,n,s){var o;if(void 0===n&&(n=!0),void 0===s&&(s=!1),"top"===e)o=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==e)throw new Error("A proper axis should be provided");o=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(t,e,i,n,s){var o=i[0],r=i[1],a=i[2],c=i[3],l=i[4],u=i[5];void 0===n&&(n=!0),void 0===s&&(s=!1);var h=t.element;t.reach[c]=null,h[a]<1&&(t.reach[c]="start"),h[a]>t[o]-t[r]-1&&(t.reach[c]="end"),e&&(h.dispatchEvent(Re("ps-scroll-"+c)),e<0?h.dispatchEvent(Re("ps-scroll-"+l)):e>0&&h.dispatchEvent(Re("ps-scroll-"+u)),n&&function(t,e){Ee(t,e),Se(t,e)}(t,c)),t.reach[c]&&(e||s)&&h.dispatchEvent(Re("ps-"+c+"-reach-"+t.reach[c]))}(t,i,o,n,s)}function Pe(t){return parseInt(t,10)||0}xe.prototype.eventElement=function(t){var e=this.eventElements.filter(function(e){return e.element===t})[0];return e||(e=new ke(t),this.eventElements.push(e)),e},xe.prototype.bind=function(t,e,i){this.eventElement(t).bind(e,i)},xe.prototype.unbind=function(t,e,i){var n=this.eventElement(t);n.unbind(e,i),n.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(n),1)},xe.prototype.unbindAll=function(){this.eventElements.forEach(function(t){return t.unbindAll()}),this.eventElements=[]},xe.prototype.once=function(t,e,i){var n=this.eventElement(t),s=function(t){n.unbind(e,s),i(t)};n.bind(e,s)};var De={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function Me(t){var e=t.element,i=Math.floor(e.scrollTop),n=e.getBoundingClientRect();t.containerWidth=Math.ceil(n.width),t.containerHeight=Math.ceil(n.height),t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(we(e,ye("x")).forEach(function(t){return _e(t)}),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(we(e,ye("y")).forEach(function(t){return _e(t)}),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),function(t,e){var i={width:e.railXWidth},n=Math.floor(t.scrollTop);i.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:t.scrollLeft,e.isScrollbarXUsingBottom?i.bottom=e.scrollbarXBottom-n:i.top=e.scrollbarXTop+n,ge(e.scrollbarXRail,i);var s={top:n,height:e.railYHeight};e.isScrollbarYUsingRight?s.right=e.isRtl?e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth-9:e.scrollbarYRight-t.scrollLeft:s.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+2*e.containerWidth-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:e.scrollbarYLeft+t.scrollLeft,ge(e.scrollbarYRail,s),ge(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),ge(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}(e,t),t.scrollbarXActive?e.classList.add(ve("x")):(e.classList.remove(ve("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?e.classList.add(ve("y")):(e.classList.remove(ve("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)}function Le(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function Ne(t,e){var i=e[0],n=e[1],s=e[2],o=e[3],r=e[4],a=e[5],c=e[6],l=e[7],u=e[8],h=t.element,d=null,p=null,g=null;function f(e){e.touches&&e.touches[0]&&(e[s]=e.touches[0].pageY),h[c]=d+g*(e[s]-p),Ee(t,l),Me(t),e.stopPropagation(),e.preventDefault()}function m(){Se(t,l),t[u].classList.remove("ps--clicking"),t.event.unbind(t.ownerDocument,"mousemove",f)}function b(e,r){d=h[c],r&&e.touches&&(e[s]=e.touches[0].pageY),p=e[s],g=(t[n]-t[i])/(t[o]-t[a]),r?t.event.bind(t.ownerDocument,"touchmove",f):(t.event.bind(t.ownerDocument,"mousemove",f),t.event.once(t.ownerDocument,"mouseup",m),e.preventDefault()),t[u].classList.add("ps--clicking"),e.stopPropagation()}t.event.bind(t[r],"mousedown",function(t){b(t)}),t.event.bind(t[r],"touchstart",function(t){b(t,!0)})}var ze={"click-rail":function(t){t.event.bind(t.scrollbarY,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarYRail,"mousedown",function(e){var i=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top;t.element.scrollTop+=(i>t.scrollbarYTop?1:-1)*t.containerHeight,Me(t),e.stopPropagation()}),t.event.bind(t.scrollbarX,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarXRail,"mousedown",function(e){var i=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left;t.element.scrollLeft+=(i>t.scrollbarXLeft?1:-1)*t.containerWidth,Me(t),e.stopPropagation()})},"drag-thumb":function(t){Ne(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),Ne(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(t){var e=t.element;t.event.bind(t.ownerDocument,"keydown",function(i){if(!(i.isDefaultPrevented&&i.isDefaultPrevented()||i.defaultPrevented)&&(be(e,":hover")||be(t.scrollbarX,":focus")||be(t.scrollbarY,":focus"))){var n,s=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(s){if("IFRAME"===s.tagName)s=s.contentDocument.activeElement;else for(;s.shadowRoot;)s=s.shadowRoot.activeElement;if(be(n=s,"input,[contenteditable]")||be(n,"select,[contenteditable]")||be(n,"textarea,[contenteditable]")||be(n,"button,[contenteditable]"))return}var o=0,r=0;switch(i.which){case 37:o=i.metaKey?-t.contentWidth:i.altKey?-t.containerWidth:-30;break;case 38:r=i.metaKey?t.contentHeight:i.altKey?t.containerHeight:30;break;case 39:o=i.metaKey?t.contentWidth:i.altKey?t.containerWidth:30;break;case 40:r=i.metaKey?-t.contentHeight:i.altKey?-t.containerHeight:-30;break;case 32:r=i.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:r=t.containerHeight;break;case 34:r=-t.containerHeight;break;case 36:r=t.contentHeight;break;case 35:r=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==o||t.settings.suppressScrollY&&0!==r||(e.scrollTop-=r,e.scrollLeft+=o,Me(t),function(i,n){var s=Math.floor(e.scrollTop);if(0===i){if(!t.scrollbarYActive)return!1;if(0===s&&n>0||s>=t.contentHeight-t.containerHeight&&n<0)return!t.settings.wheelPropagation}var o=e.scrollLeft;if(0===n){if(!t.scrollbarXActive)return!1;if(0===o&&i<0||o>=t.contentWidth-t.containerWidth&&i>0)return!t.settings.wheelPropagation}return!0}(o,r)&&i.preventDefault())}})},wheel:function(t){var e=t.element;function i(i){var n=function(t){var e=t.deltaX,i=-1*t.deltaY;return void 0!==e&&void 0!==i||(e=-1*t.wheelDeltaX/6,i=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(e*=10,i*=10),e!=e&&i!=i&&(e=0,i=t.wheelDelta),t.shiftKey?[-i,-e]:[e,i]}(i),s=n[0],o=n[1];if(!function(t,i,n){if(!De.isWebKit&&e.querySelector("select:focus"))return!0;if(!e.contains(t))return!1;for(var s=t;s&&s!==e;){if(s.classList.contains("ps__child--consume"))return!0;var o=pe(s);if(n&&o.overflowY.match(/(scroll|auto)/)){var r=s.scrollHeight-s.clientHeight;if(r>0&&(s.scrollTop>0&&n<0||s.scrollTop0))return!0}if(i&&o.overflowX.match(/(scroll|auto)/)){var a=s.scrollWidth-s.clientWidth;if(a>0&&(s.scrollLeft>0&&i<0||s.scrollLeft0))return!0}s=s.parentNode}return!1}(i.target,s,o)){var r=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(o?e.scrollTop-=o*t.settings.wheelSpeed:e.scrollTop+=s*t.settings.wheelSpeed,r=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(s?e.scrollLeft+=s*t.settings.wheelSpeed:e.scrollLeft-=o*t.settings.wheelSpeed,r=!0):(e.scrollTop-=o*t.settings.wheelSpeed,e.scrollLeft+=s*t.settings.wheelSpeed),Me(t),(r=r||function(i,n){var s=Math.floor(e.scrollTop),o=0===e.scrollTop,r=s+e.offsetHeight===e.scrollHeight,a=0===e.scrollLeft,c=e.scrollLeft+e.offsetWidth===e.scrollWidth;return!(Math.abs(n)>Math.abs(i)?o||r:a||c)||!t.settings.wheelPropagation}(s,o))&&!i.ctrlKey&&(i.stopPropagation(),i.preventDefault())}}void 0!==window.onwheel?t.event.bind(e,"wheel",i):void 0!==window.onmousewheel&&t.event.bind(e,"mousewheel",i)},touch:function(t){if(De.supportsTouch||De.supportsIePointer){var e=t.element,i={},n=0,s={},o=null;De.supportsTouch?(t.event.bind(e,"touchstart",l),t.event.bind(e,"touchmove",u),t.event.bind(e,"touchend",h)):De.supportsIePointer&&(window.PointerEvent?(t.event.bind(e,"pointerdown",l),t.event.bind(e,"pointermove",u),t.event.bind(e,"pointerup",h)):window.MSPointerEvent&&(t.event.bind(e,"MSPointerDown",l),t.event.bind(e,"MSPointerMove",u),t.event.bind(e,"MSPointerUp",h)))}function r(i,n){e.scrollTop-=n,e.scrollLeft-=i,Me(t)}function a(t){return t.targetTouches?t.targetTouches[0]:t}function c(t){return!(t.pointerType&&"pen"===t.pointerType&&0===t.buttons||(!t.targetTouches||1!==t.targetTouches.length)&&(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function l(t){if(c(t)){var e=a(t);i.pageX=e.pageX,i.pageY=e.pageY,n=(new Date).getTime(),null!==o&&clearInterval(o)}}function u(o){if(c(o)){var l=a(o),u={pageX:l.pageX,pageY:l.pageY},h=u.pageX-i.pageX,d=u.pageY-i.pageY;if(function(t,i,n){if(!e.contains(t))return!1;for(var s=t;s&&s!==e;){if(s.classList.contains("ps__child--consume"))return!0;var o=pe(s);if(n&&o.overflowY.match(/(scroll|auto)/)){var r=s.scrollHeight-s.clientHeight;if(r>0&&(s.scrollTop>0&&n<0||s.scrollTop0))return!0}if(i&&o.overflowX.match(/(scroll|auto)/)){var a=s.scrollWidth-s.clientWidth;if(a>0&&(s.scrollLeft>0&&i<0||s.scrollLeft0))return!0}s=s.parentNode}return!1}(o.target,h,d))return;r(h,d),i=u;var p=(new Date).getTime(),g=p-n;g>0&&(s.x=h/g,s.y=d/g,n=p),function(i,n){var s=Math.floor(e.scrollTop),o=e.scrollLeft,r=Math.abs(i),a=Math.abs(n);if(a>r){if(n<0&&s===t.contentHeight-t.containerHeight||n>0&&0===s)return 0===window.scrollY&&n>0&&De.isChrome}else if(r>a&&(i<0&&o===t.contentWidth-t.containerWidth||i>0&&0===o))return!0;return!0}(h,d)&&o.preventDefault()}}function h(){t.settings.swipeEasing&&(clearInterval(o),o=setInterval(function(){t.isInitialized?clearInterval(o):s.x||s.y?Math.abs(s.x)<.01&&Math.abs(s.y)<.01?clearInterval(o):(r(30*s.x,30*s.y),s.x*=.8,s.y*=.8):clearInterval(o)},10))}}},Ze=function(t,e){var i=this;if(void 0===e&&(e={}),"string"==typeof t&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var n in this.element=t,t.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},e)this.settings[n]=e[n];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var s,o,r=function(){return t.classList.add("ps--focus")},a=function(){return t.classList.remove("ps--focus")};this.isRtl="rtl"===pe(t).direction,!0===this.isRtl&&t.classList.add("ps__rtl"),this.isNegativeScroll=(o=t.scrollLeft,t.scrollLeft=-1,s=t.scrollLeft<0,t.scrollLeft=o,s),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new xe,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=fe(ye("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=fe(Ae("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",r),this.event.bind(this.scrollbarX,"blur",a),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var c=pe(this.scrollbarXRail);this.scrollbarXBottom=parseInt(c.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=Pe(c.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=Pe(c.borderLeftWidth)+Pe(c.borderRightWidth),ge(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=Pe(c.marginLeft)+Pe(c.marginRight),ge(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=fe(ye("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=fe(Ae("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",r),this.event.bind(this.scrollbarY,"blur",a),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var l=pe(this.scrollbarYRail);this.scrollbarYRight=parseInt(l.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=Pe(l.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(t){var e=pe(t);return Pe(e.width)+Pe(e.paddingLeft)+Pe(e.paddingRight)+Pe(e.borderLeftWidth)+Pe(e.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=Pe(l.borderTopWidth)+Pe(l.borderBottomWidth),ge(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=Pe(l.marginTop)+Pe(l.marginBottom),ge(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(t){return ze[t](i)}),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",function(t){return i.onScroll(t)}),Me(this)};Ze.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,ge(this.scrollbarXRail,{display:"block"}),ge(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=Pe(pe(this.scrollbarXRail).marginLeft)+Pe(pe(this.scrollbarXRail).marginRight),this.railYMarginHeight=Pe(pe(this.scrollbarYRail).marginTop)+Pe(pe(this.scrollbarYRail).marginBottom),ge(this.scrollbarXRail,{display:"none"}),ge(this.scrollbarYRail,{display:"none"}),Me(this),Oe(this,"top",0,!1,!0),Oe(this,"left",0,!1,!0),ge(this.scrollbarXRail,{display:""}),ge(this.scrollbarYRail,{display:""}))},Ze.prototype.onScroll=function(t){this.isAlive&&(Me(this),Oe(this,"top",this.element.scrollTop-this.lastScrollTop),Oe(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},Ze.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),_e(this.scrollbarX),_e(this.scrollbarY),_e(this.scrollbarXRail),_e(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},Ze.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(t){return!t.match(/^ps([-_].+|)$/)}).join(" ")};var Be=Ze,qe=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var i=-1;return t.some(function(t,n){return t[0]===e&&(i=n,!0)}),i}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var i=t(this.__entries__,e),n=this.__entries__[i];return n&&n[1]},e.prototype.set=function(e,i){var n=t(this.__entries__,e);~n?this.__entries__[n][1]=i:this.__entries__.push([e,i])},e.prototype.delete=function(e){var i=this.__entries__,n=t(i,e);~n&&i.splice(n,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var i=0,n=this.__entries__;i0},t.prototype.connect_=function(){Fe&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),je?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){Fe&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,i=void 0===e?"":e;Ge.some(function(t){return!!~i.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),Ke=function(t,e){for(var i=0,n=Object.keys(e);i0},t}(),ni="undefined"!=typeof WeakMap?new WeakMap:new qe,si=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=Ye.getInstance(),n=new ii(e,i,this);ni.set(this,n)};["observe","unobserve","disconnect"].forEach(function(t){si.prototype[t]=function(){var e;return(e=ni.get(this))[t].apply(e,arguments)}});var oi=void 0!==Ue.ResizeObserver?Ue.ResizeObserver:si;function ri(t,e){if(1&t&&(s.TgZ(0,"div",3),s._UZ(1,"div",4),s._UZ(2,"div",5),s._UZ(3,"div",6),s._UZ(4,"div",7),s.qZA()),2&t){const t=s.oxw();s.ekj("ps-at-top",t.states.top)("ps-at-left",t.states.left)("ps-at-right",t.states.right)("ps-at-bottom",t.states.bottom),s.xp6(1),s.ekj("ps-indicator-show",t.indicatorY&&t.interaction),s.xp6(1),s.ekj("ps-indicator-show",t.indicatorX&&t.interaction),s.xp6(1),s.ekj("ps-indicator-show",t.indicatorX&&t.interaction),s.xp6(1),s.ekj("ps-indicator-show",t.indicatorY&&t.interaction)}}const ai=["*"],ci=new s.OlP("PERFECT_SCROLLBAR_CONFIG");class li{constructor(t,e,i,n){this.x=t,this.y=e,this.w=i,this.h=n}}class ui{constructor(t,e){this.x=t,this.y=e}}const hi=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class di{constructor(t={}){this.assign(t)}assign(t={}){for(const e in t)this[e]=t[e]}}let pi=(()=>{let t=class{constructor(t,e,i,n,o){this.zone=t,this.differs=e,this.elementRef=i,this.platformId=n,this.defaults=o,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new re.xQ,this.disabled=!1,this.psScrollY=new s.vpe,this.psScrollX=new s.vpe,this.psScrollUp=new s.vpe,this.psScrollDown=new s.vpe,this.psScrollLeft=new s.vpe,this.psScrollRight=new s.vpe,this.psYReachEnd=new s.vpe,this.psYReachStart=new s.vpe,this.psXReachEnd=new s.vpe,this.psXReachStart=new s.vpe}ngOnInit(){if(!this.disabled&&(0,b.NF)(this.platformId)){const t=new di(this.defaults);t.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new Be(this.elementRef.nativeElement,t)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new oi(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{hi.forEach(t=>{const e=t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`);(0,ae.R)(this.elementRef.nativeElement,e).pipe((0,le.e)(20),(0,ue.R)(this.ngDestroy)).subscribe(e=>{this[t].emit(e)})})})}}ngOnDestroy(){(0,b.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&"undefined"!=typeof window&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.instance&&this.instance.destroy()}),this.instance=null)}ngDoCheck(){!this.disabled&&this.configDiff&&(0,b.NF)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(t){t.disabled&&!t.disabled.isFirstChange()&&(0,b.NF)(this.platformId)&&t.disabled.currentValue!==t.disabled.previousValue&&(!0===t.disabled.currentValue?this.ngOnDestroy():!1===t.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){"undefined"!=typeof window&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(()=>{if(!this.disabled&&this.configDiff)try{this.zone.runOutsideAngular(()=>{this.instance&&this.instance.update()})}catch(t){}},0))}geometry(t="scroll"){return new li(this.elementRef.nativeElement[t+"Left"],this.elementRef.nativeElement[t+"Top"],this.elementRef.nativeElement[t+"Width"],this.elementRef.nativeElement[t+"Height"])}position(t=!1){return!t&&this.instance?new ui(this.instance.reach.x||0,this.instance.reach.y||0):new ui(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(t="any"){const e=this.elementRef.nativeElement;return"any"===t?e.classList.contains("ps--active-x")||e.classList.contains("ps--active-y"):"both"===t?e.classList.contains("ps--active-x")&&e.classList.contains("ps--active-y"):e.classList.contains("ps--active-"+t)}scrollTo(t,e,i){this.disabled||(null==e&&null==i?this.animateScrolling("scrollTop",t,i):(null!=t&&this.animateScrolling("scrollLeft",t,i),null!=e&&this.animateScrolling("scrollTop",e,i)))}scrollToX(t,e){this.animateScrolling("scrollLeft",t,e)}scrollToY(t,e){this.animateScrolling("scrollTop",t,e)}scrollToTop(t,e){this.animateScrolling("scrollTop",t||0,e)}scrollToLeft(t,e){this.animateScrolling("scrollLeft",t||0,e)}scrollToRight(t,e){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(t||0),e)}scrollToBottom(t,e){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(t||0),e)}scrollToElement(t,e,i){const n=this.elementRef.nativeElement.querySelector(t);if(n){const t=n.getBoundingClientRect(),s=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",t.left-s.left+this.elementRef.nativeElement.scrollLeft+(e||0),i),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",t.top-s.top+this.elementRef.nativeElement.scrollTop+(e||0),i)}}animateScrolling(t,e,i){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),i&&"undefined"!=typeof window){if(e!==this.elementRef.nativeElement[t]){let n=0,s=0,o=performance.now(),r=this.elementRef.nativeElement[t];const a=(r-e)/2,c=l=>{s+=Math.PI/(i/(l-o)),n=Math.round(e+a+a*Math.cos(s)),this.elementRef.nativeElement[t]===r&&(s>=Math.PI?this.animateScrolling(t,e,0):(this.elementRef.nativeElement[t]=n,r=this.elementRef.nativeElement[t],o=l,this.animation=window.requestAnimationFrame(c)))};window.requestAnimationFrame(c)}}else this.elementRef.nativeElement[t]=e}};return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.R0b),s.Y36(s.aQg),s.Y36(s.SBq),s.Y36(s.Lbi),s.Y36(ci,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:["perfectScrollbar","config"]},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],features:[s.TTD]}),t=(0,oe.gn)([(0,oe.fM)(3,(0,s.tBr)(s.Lbi)),(0,oe.fM)(4,(0,s.FiY)()),(0,oe.fM)(4,(0,s.tBr)(ci))],t),t})(),gi=(()=>{let t=class{constructor(t,e,i){this.zone=t,this.cdRef=e,this.platformId=i,this.states={},this.indicatorX=!1,this.indicatorY=!1,this.interaction=!1,this.scrollPositionX=0,this.scrollPositionY=0,this.scrollDirectionX=0,this.scrollDirectionY=0,this.usePropagationX=!1,this.usePropagationY=!1,this.allowPropagationX=!1,this.allowPropagationY=!1,this.stateTimeout=null,this.ngDestroy=new re.xQ,this.stateUpdate=new re.xQ,this.disabled=!1,this.usePSClass=!0,this.autoPropagation=!1,this.scrollIndicators=!1,this.psScrollY=new s.vpe,this.psScrollX=new s.vpe,this.psScrollUp=new s.vpe,this.psScrollDown=new s.vpe,this.psScrollLeft=new s.vpe,this.psScrollRight=new s.vpe,this.psYReachEnd=new s.vpe,this.psYReachStart=new s.vpe,this.psXReachEnd=new s.vpe,this.psXReachStart=new s.vpe}ngOnInit(){(0,b.NF)(this.platformId)&&(this.stateUpdate.pipe((0,ue.R)(this.ngDestroy),(0,he.x)((t,e)=>t===e&&!this.stateTimeout)).subscribe(t=>{this.stateTimeout&&"undefined"!=typeof window&&(window.clearTimeout(this.stateTimeout),this.stateTimeout=null),"x"===t||"y"===t?(this.interaction=!1,"x"===t?(this.indicatorX=!1,this.states.left=!1,this.states.right=!1,this.autoPropagation&&this.usePropagationX&&(this.allowPropagationX=!1)):"y"===t&&(this.indicatorY=!1,this.states.top=!1,this.states.bottom=!1,this.autoPropagation&&this.usePropagationY&&(this.allowPropagationY=!1))):("left"===t||"right"===t?(this.states.left=!1,this.states.right=!1,this.states[t]=!0,this.autoPropagation&&this.usePropagationX&&(this.indicatorX=!0)):"top"!==t&&"bottom"!==t||(this.states.top=!1,this.states.bottom=!1,this.states[t]=!0,this.autoPropagation&&this.usePropagationY&&(this.indicatorY=!0)),this.autoPropagation&&"undefined"!=typeof window&&(this.stateTimeout=window.setTimeout(()=>{this.indicatorX=!1,this.indicatorY=!1,this.stateTimeout=null,this.interaction&&(this.states.left||this.states.right)&&(this.allowPropagationX=!0),this.interaction&&(this.states.top||this.states.bottom)&&(this.allowPropagationY=!0),this.cdRef.markForCheck()},500))),this.cdRef.markForCheck(),this.cdRef.detectChanges()}),this.zone.runOutsideAngular(()=>{if(this.directiveRef){const t=this.directiveRef.elementRef.nativeElement;(0,ae.R)(t,"wheel").pipe((0,ue.R)(this.ngDestroy)).subscribe(t=>{!this.disabled&&this.autoPropagation&&this.checkPropagation(t,t.deltaX,t.deltaY)}),(0,ae.R)(t,"touchmove").pipe((0,ue.R)(this.ngDestroy)).subscribe(t=>{if(!this.disabled&&this.autoPropagation){const e=t.touches[0].clientX,i=t.touches[0].clientY;this.checkPropagation(t,e-this.scrollPositionX,i-this.scrollPositionY),this.scrollPositionX=e,this.scrollPositionY=i}}),(0,ce.T)((0,ae.R)(t,"ps-scroll-x").pipe((0,de.h)("x")),(0,ae.R)(t,"ps-scroll-y").pipe((0,de.h)("y")),(0,ae.R)(t,"ps-x-reach-end").pipe((0,de.h)("right")),(0,ae.R)(t,"ps-y-reach-end").pipe((0,de.h)("bottom")),(0,ae.R)(t,"ps-x-reach-start").pipe((0,de.h)("left")),(0,ae.R)(t,"ps-y-reach-start").pipe((0,de.h)("top"))).pipe((0,ue.R)(this.ngDestroy)).subscribe(t=>{this.disabled||!this.autoPropagation&&!this.scrollIndicators||this.stateUpdate.next(t)})}}),window.setTimeout(()=>{hi.forEach(t=>{this.directiveRef&&(this.directiveRef[t]=this[t])})},0))}ngOnDestroy(){(0,b.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.unsubscribe(),this.stateTimeout&&"undefined"!=typeof window&&window.clearTimeout(this.stateTimeout))}ngDoCheck(){if((0,b.NF)(this.platformId)&&!this.disabled&&this.autoPropagation&&this.directiveRef){const t=this.directiveRef.elementRef.nativeElement;this.usePropagationX=t.classList.contains("ps--active-x"),this.usePropagationY=t.classList.contains("ps--active-y")}}checkPropagation(t,e,i){this.interaction=!0;const n=e<0?-1:1,s=i<0?-1:1;(this.usePropagationX&&this.usePropagationY||this.usePropagationX&&(!this.allowPropagationX||this.scrollDirectionX!==n)||this.usePropagationY&&(!this.allowPropagationY||this.scrollDirectionY!==s))&&(t.preventDefault(),t.stopPropagation()),e&&(this.scrollDirectionX=n),i&&(this.scrollDirectionY=s),this.stateUpdate.next("interaction"),this.cdRef.detectChanges()}};return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.R0b),s.Y36(s.sBO),s.Y36(s.Lbi))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perfect-scrollbar"]],viewQuery:function(t,e){if(1&t&&s.Gf(pi,7),2&t){let t;s.iGM(t=s.CRH())&&(e.directiveRef=t.first)}},hostVars:4,hostBindings:function(t,e){2&t&&s.ekj("ps-show-limits",e.autoPropagation)("ps-show-active",e.scrollIndicators)},inputs:{disabled:"disabled",usePSClass:"usePSClass",autoPropagation:"autoPropagation",scrollIndicators:"scrollIndicators",config:"config"},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],ngContentSelectors:ai,decls:4,vars:5,consts:[[2,"position","static",3,"perfectScrollbar","disabled"],[1,"ps-content"],["class","ps-overlay",3,"ps-at-top","ps-at-left","ps-at-right","ps-at-bottom",4,"ngIf"],[1,"ps-overlay"],[1,"ps-indicator-top"],[1,"ps-indicator-left"],[1,"ps-indicator-right"],[1,"ps-indicator-bottom"]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.Hsn(2),s.qZA(),s.YNc(3,ri,5,16,"div",2),s.qZA()),2&t&&(s.ekj("ps",e.usePSClass),s.Q6J("perfectScrollbar",e.config)("disabled",e.disabled),s.xp6(3),s.Q6J("ngIf",e.scrollIndicators))},directives:[pi,b.O5],styles:["perfect-scrollbar{position:relative;display:block;overflow:hidden;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar[hidden]{display:none}perfect-scrollbar[fxflex]{display:-webkit-box;display:flex;flex-direction:column;height:auto;min-width:0;min-height:0;-webkit-box-direction:column;-webkit-box-orient:column}perfect-scrollbar[fxflex]>.ps{flex:1 1 auto;width:auto;height:auto;min-width:0;min-height:0;-webkit-box-flex:1}perfect-scrollbar[fxlayout]>.ps,perfect-scrollbar[fxlayout]>.ps>.ps-content{display:-webkit-box;display:flex;flex:1 1 auto;flex-direction:inherit;align-items:inherit;align-content:inherit;justify-content:inherit;width:100%;height:100%;-webkit-box-align:inherit;-webkit-box-direction:inherit;-webkit-box-flex:1;-webkit-box-orient:inherit;-webkit-box-pack:inherit},perfect-scrollbar[fxlayout=row]>.ps,perfect-scrollbar[fxlayout=row]>.ps>.ps-content{flex-direction:row!important;-webkit-box-direction:row!important;-webkit-box-orient:row!important}perfect-scrollbar[fxlayout=column]>.ps,perfect-scrollbar[fxlayout=column]>.ps>.ps-content{flex-direction:column!important;-webkit-box-direction:column!important;-webkit-box-orient:column!important}perfect-scrollbar>.ps{position:static;display:block;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar>.ps textarea{-ms-overflow-style:scrollbar}perfect-scrollbar>.ps>.ps-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:block;overflow:hidden;pointer-events:none}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{position:absolute;opacity:0;-webkit-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{left:0;min-width:100%;min-height:24px}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{top:0;min-width:24px;min-height:100%}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left{left:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{right:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{bottom:0}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y{top:0!important;right:0!important;left:auto!important;width:10px;cursor:default;-webkit-transition:width .2s linear,opacity .2s linear,background-color .2s linear;transition:width .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y.ps--clicking,perfect-scrollbar>.ps.ps--active-y>.ps__rail-y:hover{width:15px}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x{top:auto!important;bottom:0!important;left:0!important;height:10px;cursor:default;-webkit-transition:height .2s linear,opacity .2s linear,background-color .2s linear;transition:height .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x.ps--clicking,perfect-scrollbar>.ps.ps--active-x>.ps__rail-x:hover{height:15px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-y{margin:0 0 10px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-x{margin:0 10px 0 0}perfect-scrollbar>.ps.ps--scrolling-x>.ps__rail-x,perfect-scrollbar>.ps.ps--scrolling-y>.ps__rail-y{opacity:.9;background-color:#eee}perfect-scrollbar.ps-show-always>.ps.ps--active-x>.ps__rail-x,perfect-scrollbar.ps-show-always>.ps.ps--active-y>.ps__rail-y{opacity:.6}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-top) .ps-indicator-top{opacity:1;background:-webkit-gradient(linear,left top,left bottom,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to bottom,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-bottom) .ps-indicator-bottom{opacity:1;background:-webkit-gradient(linear,left bottom,left top,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to top,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-left) .ps-indicator-left{opacity:1;background:-webkit-gradient(linear,left top,right top,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to right,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-right) .ps-indicator-right{opacity:1;background:-webkit-gradient(linear,right top,left top,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to left,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top{background:-webkit-gradient(linear,left top,left bottom,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to bottom,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom{background:-webkit-gradient(linear,left bottom,left top,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to top,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left{background:-webkit-gradient(linear,left top,right top,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to right,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right{background:-webkit-gradient(linear,right top,left top,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to left,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top.ps-indicator-show{opacity:1}",".ps{overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.ps__rail-x{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;height:15px;bottom:0;position:absolute}.ps__rail-y{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;width:15px;right:0;position:absolute}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{display:block;background-color:transparent}.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y,.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y{opacity:.6}.ps .ps__rail-x.ps--clicking,.ps .ps__rail-x:focus,.ps .ps__rail-x:hover,.ps .ps__rail-y.ps--clicking,.ps .ps__rail-y:focus,.ps .ps__rail-y:hover{background-color:#eee;opacity:.9}.ps__thumb-x{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px;position:absolute}.ps__thumb-y{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px;position:absolute}.ps__rail-x.ps--clicking .ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x:hover>.ps__thumb-x{background-color:#999;height:11px}.ps__rail-y.ps--clicking .ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y:hover>.ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style:none){.ps{overflow:auto!important}}@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){.ps{overflow:auto!important}}"],encapsulation:2}),t=(0,oe.gn)([(0,oe.fM)(2,(0,s.tBr)(s.Lbi))],t),t})(),fi=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[b.ez],b.ez]}),t})();var mi=i(52623),bi=i(17),_i=i(11418);function wi(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"perun-web-apps-notification",2),s.NdJ("closeNotification",function(){const e=s.CHM(t).index;return s.oxw().removeNotification(e)}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit;s.Q6J("@flyInOut",void 0),s.xp6(1),s.Q6J("data",t)("newNotification",!0)}}const Ai=function(t){return{top:t}};let yi=(()=>{class t{constructor(t,e){this.notificator=t,this.notificationStorageService=e,this.mobileView=!1,this.minWidth=992,this.displayWarning=!1,this.notifications=[],this.notificator.addNotification.subscribe(t=>{this.processNotification(t)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}processNotification(t){this.notifications.push(t),this.notificationStorageService.storeNotification(t)}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(t){this.notifications.splice(t,1)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(c.V6),s.Y36(c.SZ))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-notificator"]],hostBindings:function(t,e){1&t&&s.NdJ("resize",function(t){return e.getScreenSize(t)},!1,s.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.YNc(1,wi,2,3,"div",1),s.qZA()),2&t&&(s.Q6J("ngStyle",s.VKq(2,Ai,e.getNotificatorTop())),s.xp6(1),s.Q6J("ngForOf",e.notifications))},directives:[b.PC,b.sg,_i.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;bottom:0}}"],data:{animation:[bi.Pd]}}),t})();var vi=i(4253);function Ti(t,e){if(1&t&&(s.TgZ(0,"div",9),s._UZ(1,"perun-web-apps-notification",10),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Q6J("data",t)("inDialog",!0)}}function Ci(t,e){if(1&t&&(s.TgZ(0,"div",6),s.TgZ(1,"cdk-virtual-scroll-viewport",7),s.YNc(2,Ti,2,2,"div",8),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.Q6J("cdkVirtualForOf",t.notifications)}}function Ei(t,e){1&t&&(s.TgZ(0,"app-alert",11),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT")))}let Si=(()=>{class t{constructor(t,e){this.dialogRef=t,this.notificationStorageService=e}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(p.so),s.Y36(c.SZ))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.YNc(3,Ci,3,1,"div",1),s.YNc(4,Ei,3,3,"app-alert",2),s.TgZ(5,"div",3),s.TgZ(6,"button",4),s.NdJ("click",function(){return e.onClear()}),s._uU(7),s.ALo(8,"translate"),s.qZA(),s.TgZ(9,"button",5),s.NdJ("click",function(){return e.onCancel()}),s._uU(10),s.ALo(11,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,5,"DIALOGS.NOTIFICATION_LIST.TITLE")),s.xp6(2),s.Q6J("ngIf",0!==e.notifications.length),s.xp6(1),s.Q6J("ngIf",0===e.notifications.length),s.xp6(3),s.hij(" ",s.lcZ(8,7,"DIALOGS.NOTIFICATION_LIST.CLEAR")," "),s.xp6(3),s.hij(" ",s.lcZ(11,9,"DIALOGS.NOTIFICATION_LIST.CANCEL")," "))},directives:[p.uh,b.O5,p.H8,w.lW,vi.N7,vi.xd,vi.x0,_i.c,y.w],pipes:[d.X$],styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),t})();var ki=i(41050),Ii=i(66438);function xi(t,e){1&t&&(s.TgZ(0,"div",10),s.TgZ(1,"span",11),s._uU(2," ~ \ud83d\uddf2\xa0 "),s.qZA(),s.TgZ(3,"span",12),s._uU(4," DEVEL "),s.qZA(),s.TgZ(5,"span",11),s._uU(6," \xa0\ud83d\uddf2 ~ "),s.qZA(),s.qZA())}const Ri=function(t){return{color:t}},Oi=function(){return["/home"]};let Pi=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,l){this.storeService=t,this.authService=e,this.authzResolverService=i,this.dialog=n,this.notificator=s,this.translateService=o,this.store=r,this.sanitizer=a,this.notificationStorageService=c,this.otherApplicationService=l,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 t=(0,l.kZ)();t.width="520px",this.dialog.open(Si,t)}getNewNotificationsCount(){return this.notificationStorageService.newNotificationsCount}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(c.d6),s.Y36(c.e8),s.Y36(a.Ct),s.Y36(p.uw),s.Y36(c.V6),s.Y36(d.sK),s.Y36(c.d6),s.Y36(n.H7),s.Y36(c.SZ),s.Y36(c.jq))},t.\u0275cmp=s.Xpm({type:t,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,"url","label","user","logoutEnabled","iconColor","textColor"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"button",1),s.NdJ("click",function(){return e.sideNav.toggle()}),s.TgZ(2,"mat-icon",2),s._uU(3," menu "),s.qZA(),s.qZA(),s.TgZ(4,"a",3),s._UZ(5,"div",4),s.qZA(),s.qZA(),s.YNc(6,xi,7,0,"div",5),s.TgZ(7,"div",6),s.TgZ(8,"button",7),s.NdJ("click",function(){return e.showNotificationHistory()}),s.ALo(9,"translate"),s.TgZ(10,"mat-icon",8),s._uU(11),s.qZA(),s.qZA(),s._UZ(12,"perun-web-apps-header-menu",9),s.qZA()),2&t&&(s.Q6J("ngStyle",s.VKq(19,Ri,e.navTextColor)),s.xp6(2),s.Q6J("ngStyle",s.VKq(21,Ri,e.iconColor)),s.xp6(2),s.Q6J("routerLink",s.DdM(23,Oi)),s.xp6(1),s.Q6J("innerHTML",e.logo,s.oJD),s.xp6(1),s.Q6J("ngIf",e.isDevel),s.xp6(1),s.Q6J("ngStyle",s.VKq(24,Ri,e.navTextColor)),s.xp6(1),s.Q6J("matTooltip",s.lcZ(9,17,"NAV.NOTIFICATIONS_TOOLTIP")),s.xp6(2),s.s9C("matBadge",e.getNewNotificationsCount()>5?"5+":e.getNewNotificationsCount()),s.Q6J("ngStyle",s.VKq(26,Ri,e.iconColor))("matBadgeHidden",0===e.getNewNotificationsCount()),s.xp6(1),s.hij(" ",e.getNewNotificationsCount()?"notifications_active":"notifications"," "),s.xp6(1),s.Q6J("url",e.profileUrl)("label",e.profileLabel)("user",e.principal.user)("logoutEnabled",e.logoutEnabled)("iconColor",e.iconColor)("textColor",e.navTextColor))},directives:[b.PC,w.lW,_.Hw,o.yS,b.O5,C.gM,ki.k,Ii.X],pipes:[d.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}"]}),t})();var Di=i(24081);const Mi={provide:Rt.TP,useExisting:(0,s.Gpc)(()=>c.yC),multi:!0};function Li(t){return new xt(t,"./assets/i18n/",".json")}function Ni(t){const e={basePath:t.get("api_url")};return new a.VK(e)}const zi=t=>()=>t.initialize(),Zi={suppressScrollX:!0};let Bi=(()=>{class t{constructor(t,e){this.customIconService=t,this.translate=e,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(c.EB),s.LFG(d.sK))},t.\u0275mod=s.oAB({type:t,bootstrap:[kt.y]}),t.\u0275inj=s.cJS({providers:[ne,{provide:s.ip1,useFactory:zi,multi:!0,deps:[ne]},{provide:a.VK,useFactory:Ni,deps:[c.d6]},{provide:o.wN,useClass:Qt},c.EB,{provide:Wt,useClass:c.sM},c.yC,Mi,{provide:ci,useValue:Zi}],imports:[[Ot.PW,n.b2,Rt.JF,It.m,Pt,St,_.Ps,se,d.aw.forRoot({loader:{provide:d.Zw,useFactory:Li,deps:[Rt.eN]}}),a.au,fi,lt.ez,pt,mi.zr.forRoot()]]}),t})();s.B6R(kt.y,[b.O5,_.Hw,yi,Pi,b.PC,g.TM,g.JX,gi,Di.V,g.Rh,o.lC,ft.$,Tt],[]),(0,s.G48)(),n.q6().bootstrapModule(Bi).catch(t=>console.error(t))},7423:function(t,e,i){"use strict";i.d(e,{r:function(){return o}});var n=i(61511),s=i(31572);let o=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez]]}),t})()},13857:function(t,e,i){"use strict";i.d(e,{Rc:function(){return s},pI:function(){return o},Ng:function(){return r}});var n=i(31572);const s="GUI_CONFIG.PREF_PAGE_SIZE",o="GUI_CONFIG.PREF_PAGE_SIZE.";let r=(()=>{class t{constructor(){}getString(t){return localStorage.getItem(t)}getNumber(t){return parseInt(localStorage.getItem(t),10)}setNumber(t,e){localStorage.setItem(t,e.toString())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},60611:function(t,e,i){"use strict";i.d(e,{dB:function(){return o},CP:function(){return r},tw:function(){return a},nT:function(){return c},YF:function(){return l},gc:function(){return u},v1:function(){return h},AA:function(){return d},VR:function(){return p},uM:function(){return g},xx:function(){return f},H2:function(){return m},xt:function(){return b},dI:function(){return _},j1:function(){return w},Wv:function(){return A},qy:function(){return y},BV:function(){return v},qV:function(){return T},tY:function(){return C},Af:function(){return E},O7:function(){return S},gB:function(){return k},Hi:function(){return I},Jf:function(){return x},W1:function(){return R},rF:function(){return O},Aj:function(){return P},Ad:function(){return D},kZ:function(){return M},cL:function(){return L},RS:function(){return N},HC:function(){return z},KE:function(){return Z},Sb:function(){return B},_7:function(){return q},bf:function(){return F},rc:function(){return U},Cf:function(){return H},eq:function(){return G},NG:function(){return j},O9:function(){return Y},d7:function(){return K},vq:function(){return V},NL:function(){return $},kO:function(){return J},aL:function(){return Q},DR:function(){return W},uC:function(){return X},JO:function(){return tt},oK:function(){return et},Iz:function(){return it},It:function(){return nt},z6:function(){return st},iQ:function(){return ot},e5:function(){return rt},Bf:function(){return at},zp:function(){return ct},US:function(){return lt},gG:function(){return ut},$V:function(){return ht},S7:function(){return dt},zW:function(){return pt},CE:function(){return gt},Is:function(){return ft},M8:function(){return mt},g:function(){return bt},_c:function(){return _t},dK:function(){return wt},yW:function(){return At}});var n=i(13857),s=i(31572);let o=(()=>{class t{constructor(t){this.guiConfigService=t}getTablePageSize(t){const e=this.guiConfigService.getNumber(n.pI+t);if(!isNaN(e))return e;const i=this.guiConfigService.getNumber(n.Rc);return isNaN(i)?10:i}setTablePageSize(t,e){this.guiConfigService.setNumber(n.pI+t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.Ng))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const r="0",a="1",c="2",l="3",u="4",h="5",d="6",p="7",g="8",f="9",m="10",b="11",_="12",w="13",A="14",y="15",v="16",T="17",C="18",E="19",S="20",k="21",I="22",x="23",R="24",O="25",P="26",D="27",M="28",L="29",N="30",z="31",Z="32",B="33",q="34",F="35",U="36",H="37",G="42",j="43",Y="44",K="45",V="46",$="47",J="48",Q="49",W="50",X="51",tt="52",et="53",it="54",nt="55",st="56",ot="57",rt="58",at="59",ct="62",lt="63",ut="64",ht="65",dt="66",pt="69",gt="71",ft="72",mt="75",bt="76",_t="77",wt="78",At="79"},17:function(t,e,i){"use strict";i.d(e,{Ji:function(){return a},Pd:function(){return o},BQ:function(){return s},Ly:function(){return r},GH:function(){return u},Ls:function(){return h},SG:function(){return l},es:function(){return c}});var n=i(10709);const s=(0,n.X$)("openClose",[(0,n.SB)("open",(0,n.oB)({overflow:"hidden"})),(0,n.SB)("closed",(0,n.oB)({height:"0px",overflow:"hidden"})),(0,n.eR)("open <=> closed",[(0,n.jt)(".3s ease-in")])]),o=(0,n.X$)("flyInOut",[(0,n.eR)(":enter",[(0,n.oB)({transform:"translateX(100%)"}),(0,n.jt)(".25s")]),(0,n.eR)(":leave",[(0,n.jt)(".5s",(0,n.oB)({transform:"translateX(100%)"}))])]),r=(0,n.X$)("rollInOut",[(0,n.eR)(":enter",[(0,n.oB)({height:"0px"}),(0,n.jt)(".25s")]),(0,n.eR)(":leave",[(0,n.jt)(".25s",(0,n.oB)({height:"0px"}))])]),a=(0,n.X$)("routeAnimations",[(0,n.eR)("* => *",[(0,n.oB)({position:"relative"}),(0,n.IO)(":enter",[(0,n.oB)({width:"100%",opacity:0})],{optional:!0}),(0,n.IO)(":leave",[(0,n.oB)({position:"absolute",width:"100%",opacity:1}),(0,n.jt)("0.15s",(0,n.oB)({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),(0,n.IO)(":enter",[(0,n.oB)({position:"absolute",width:"100%",opacity:0}),(0,n.jt)("0.15s",(0,n.oB)({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),c=(0,n.X$)("tagsOpenClose",[(0,n.SB)("open",(0,n.oB)({})),(0,n.SB)("closed",(0,n.oB)({width:"0px",height:"0px"})),(0,n.eR)("open <=> closed",[(0,n.jt)(".3s ease-in")])]),l=(0,n.X$)("switchAnimations",[(0,n.eR)("true => false",[(0,n.IO)(":enter, :leave",(0,n.oB)({})),(0,n.ru)([(0,n.IO)(":enter",[(0,n.oB)({transform:"translateX(-100%)"}),(0,n.jt)("1s ease-in-out",(0,n.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,n.IO)(":leave",[(0,n.oB)({transform:"translateX(0%)",position:"absolute"}),(0,n.jt)("1s ease-in-out",(0,n.oB)({transform:"translateX(100%)"}))],{optional:!0})])]),(0,n.eR)("false => true",[(0,n.IO)(":enter, :leave",(0,n.oB)({})),(0,n.ru)([(0,n.IO)(":enter",[(0,n.oB)({transform:"translateX(100%)"}),(0,n.jt)("1s ease-in-out",(0,n.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,n.IO)(":leave",[(0,n.oB)({transform:"translateX(0%)",position:"absolute"}),(0,n.jt)("1s ease-in-out",(0,n.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])]),u=(0,n.X$)("slideInOutLeft",[(0,n.eR)(":enter",[(0,n.oB)({transform:"translateX(-100%)",position:"relative"}),(0,n.jt)("0.5s ease-in",(0,n.oB)({transform:"translateX(0%)"}))]),(0,n.eR)(":leave",[(0,n.jt)("0.5s ease-in",(0,n.oB)({transform:"translateX(-100%)"}))])]),h=(0,n.X$)("slideInOutRight",[(0,n.eR)(":enter",[(0,n.oB)({transform:"translateX(100%)",position:"fixed"}),(0,n.jt)("0.5s ease-in",(0,n.oB)({transform:"translateX(0%)"}))]),(0,n.eR)(":leave",[(0,n.oB)({transform:"translateX(-100%)",position:"relative"}),(0,n.jt)("0.5s ease-in",(0,n.oB)({transform:"translateX(100%)"}))])])},41939:function(t,e,i){"use strict";i.d(e,{Mw:function(){return N.M},qG:function(){return it.qG},Sx:function(){return et.S},Nj:function(){return X},ez:function(){return L},t$:function(){return tt}});var n=i(61511),s=i(29236),o=i(67033),r=i(48160),a=i(57629),c=i(58623),l=i(73005),u=i(67806),h=i(22727),d=i(43691),p=i(8055),g=i(15980),f=i(36922),m=i(66283),b=i(16073),_=i(80340),w=i(10033),A=i(88975),y=i(71522),v=i(22280),T=i(81391),C=i(91010),E=i(15812),S=i(54810),k=i(4786),I=i(30146),x=i(4253),R=i(84608),O=i(84140),P=i(31572);let D=(()=>{class t extends y.LF{format(t,e){return"input"===e?`${t.getDate().toString()}.${(t.getMonth()+1).toString()}.${t.getFullYear()}`:t.toDateString()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=P.n5z(t)))(i||t)}}(),t.\u0275prov=P.Yz7({token:t,factory:t.\u0275fac}),t})();const M={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 L=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=P.oAB({type:t}),t.\u0275inj=P.cJS({providers:[{provide:y._A,useClass:D},{provide:y.sG,useValue:M}],imports:[[n.ez,s.p9,o.p0,b.u5,w.Hi,A._t,r.aw,a.Bz,c.JX,l.TU,u.Cq,h.r,d.Ps,p.Tx,g.ot,f.AV,m.lN,b.UX,_.c,y.si,v.d4,T.Iq,C.dp,E.FA,S.Fk,y.Ng,k.LD,I.Co,x.Cl,R.Is,O.Je]]}),t})();i(41186);var N=i(51556),z=(i(76021),i(84584),i(22230),i(33596),i(88884),i(11418),i(23888),i(65249)),Z=i(68416),B=i(6527),q=i(39571),F=i(83787);function U(t,e){1&t&&(P.TgZ(0,"app-alert"),P._uU(1),P.ALo(2,"translate"),P.ALo(3,"customTranslate"),P.qZA()),2&t&&(P.xp6(1),P.Oqu(P.lcZ(2,1,P.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function H(t,e){1&t&&(P.TgZ(0,"th",16),P._uU(1),P.ALo(2,"translate"),P.ALo(3,"customTranslate"),P.qZA()),2&t&&(P.xp6(1),P.Oqu(P.lcZ(2,1,P.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))))}function G(t,e){if(1&t&&(P.TgZ(0,"td",17),P._uU(1),P.qZA()),2&t){const t=e.$implicit;P.xp6(1),P.Oqu(t.friendlyNameParameter)}}function j(t,e){1&t&&(P.TgZ(0,"th",16),P._uU(1),P.ALo(2,"translate"),P.ALo(3,"customTranslate"),P.qZA()),2&t&&(P.xp6(1),P.Oqu(P.lcZ(2,1,P.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))))}function Y(t,e){if(1&t&&(P.TgZ(0,"td",18),P._uU(1),P.qZA()),2&t){const t=e.$implicit;P.xp6(1),P.Oqu(t.value)}}function K(t,e){1&t&&P._UZ(0,"th",16)}function V(t,e){if(1&t){const t=P.EpF();P.TgZ(0,"td",19),P.TgZ(1,"button",20),P.NdJ("click",function(){const e=P.CHM(t).$implicit;return P.oxw().resetPassword(e.friendlyNameParameter)}),P._uU(2),P.ALo(3,"translate"),P.ALo(4,"customTranslate"),P.qZA(),P.qZA()}if(2&t){const t=e.$implicit,i=P.oxw();P.xp6(1),P.Q6J("disabled",!i.logins.includes(t)),P.xp6(1),P.Oqu(P.lcZ(3,2,P.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.RESET_PASSWORD")))}}function $(t,e){1&t&&P._UZ(0,"th",16)}function J(t,e){if(1&t){const t=P.EpF();P.TgZ(0,"td",19),P.TgZ(1,"button",21),P.NdJ("click",function(){const e=P.CHM(t).$implicit;return P.oxw().changePassword(e)}),P._uU(2),P.ALo(3,"translate"),P.ALo(4,"customTranslate"),P.qZA(),P.qZA()}if(2&t){const t=e.$implicit,i=P.oxw();P.xp6(1),P.Q6J("disabled",!i.logins.includes(t)),P.xp6(1),P.Oqu(P.lcZ(3,2,P.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD")))}}function Q(t,e){1&t&&P._UZ(0,"tr",22)}function W(t,e){1&t&&P._UZ(0,"tr",23)}let X=(()=>{class t{constructor(t,e,i,n,s,o){this.attributesManagerService=t,this.store=e,this.dialog=i,this.route=n,this.router=s,this.otherApplicationService=o,this.nameSpaces=[],this.logins=[],this.displayedColumns=["namespace","value","reset","change"]}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.nameSpaces=this.store.get("password_namespace_attributes"),this.attributesManagerService.getLogins(this.userId).subscribe(t=>{const e=this.nameSpaces.map(t=>{const e=t.split(":");return e[e.length-1]});this.logins=t.filter(t=>e.includes(t.friendlyNameParameter)),this.dataSource=new o.by(t);const i=this.route.snapshot.queryParamMap.get("namespace");if(i){const t=this.logins.find(t=>t.friendlyNameParameter===i);t&&this.changePassword(t)}})}resetPassword(t){window.open(this.otherApplicationService.getUrlForOtherApplication("pwdReset",t),"_blank")}changePassword(t){this.router.navigate([],{queryParams:{namespace:t.friendlyNameParameter},queryParamsHandling:"merge"});const e=(0,O.kZ)();e.width="600px",e.data={login:t.value,namespace:t.friendlyName.split(":")[1]},this.dialog.open(B.xF,e).afterClosed().subscribe(()=>{this.router.navigate([],{queryParams:{namespace:null},queryParamsHandling:"merge"})})}}return t.\u0275fac=function(e){return new(e||t)(P.Y36(z.H8),P.Y36(Z.d6),P.Y36(R.uw),P.Y36(a.gz),P.Y36(a.F0),P.Y36(Z.jq))},t.\u0275cmp=P.Xpm({type:t,selectors:[["perun-web-apps-password-reset"]],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(t,e){1&t&&(P.TgZ(0,"h1",0),P._uU(1),P.ALo(2,"translate"),P.ALo(3,"customTranslate"),P.qZA(),P.YNc(4,U,4,5,"app-alert",1),P.TgZ(5,"div",2),P.TgZ(6,"div",3),P.TgZ(7,"div",4),P.TgZ(8,"table",5),P.ynx(9,6),P.YNc(10,H,4,5,"th",7),P.YNc(11,G,2,1,"td",8),P.BQk(),P.ynx(12,9),P.YNc(13,j,4,5,"th",7),P.YNc(14,Y,2,1,"td",10),P.BQk(),P.ynx(15,11),P.YNc(16,K,1,0,"th",7),P.YNc(17,V,5,6,"td",12),P.BQk(),P.ynx(18,13),P.YNc(19,$,1,0,"th",7),P.YNc(20,J,5,6,"td",12),P.BQk(),P.YNc(21,Q,1,0,"tr",14),P.YNc(22,W,1,0,"tr",15),P.qZA(),P.qZA(),P.qZA(),P.qZA()),2&t&&(P.xp6(1),P.Oqu(P.lcZ(2,5,P.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE"))),P.xp6(3),P.Q6J("ngIf",!e.logins.length),P.xp6(4),P.Q6J("dataSource",e.dataSource),P.xp6(13),P.Q6J("matHeaderRowDef",e.displayedColumns),P.xp6(1),P.Q6J("matRowDefColumns",e.displayedColumns))},directives:[n.O5,o.BZ,c.YE,o.w1,o.fO,o.Dz,o.as,o.nj,q.w,o.ge,o.ev,g.lW,o.XQ,o.Gk],pipes:[r.X$,F.a],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}"]}),t})(),tt=(()=>{class t{constructor(t,e,i,n){this.router=t,this.route=e,this.location=i,this.forceRoute=n}ngOnInit(){"back"!==this.forceRoute.getLastState()?this.route.queryParams.subscribe(t=>{this.router.navigate([t.redirectTo])}):this.location.back()}}return t.\u0275fac=function(e){return new(e||t)(P.Y36(a.F0),P.Y36(a.gz),P.Y36(n.Ye),P.Y36(Z.xw))},t.\u0275cmp=P.Xpm({type:t,selectors:[["perun-web-apps-redirect-page"]],decls:0,vars:0,template:function(t,e){},styles:[""]}),t})();i(78364),i(11441),i(67474),i(43005);var et=i(30725),it=(i(66438),i(94327))},30725:function(t,e,i){"use strict";i.d(e,{S:function(){return r},Y:function(){return a}});var n=i(31572),s=(i(65249),i(48160)),o=i(44973);const r={};let a=(()=>{class t{constructor(t){this.translate=t,this.item=null,this.itemSelected=new n.vpe,this.nameFunction=t=>t===r?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM"):t.shortname,this.secondaryFunction=t=>t===r?"":t.id<0?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NEW_ITEM"):"#"+t.id,this.searchFunction=t=>t===r?"":t.shortname+t.id}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(s.sK))},t.\u0275cmp=n.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(t,e){1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.itemSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t&&n.Q6J("entities",e.items)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.secondaryFunction)("entity",e.item)("disableAutoSelect",!0)("selectPlaceholder",n.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",n.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",n.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},directives:[o.i],pipes:[s.X$],styles:[""]}),t})()},76021:function(t,e,i){"use strict";i.d(e,{u:function(){return h}});var n=i(31572),s=i(84140),o=i(61511),r=i(29236),a=i(16073),c=i(66283);function l(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-checkbox",2),n.NdJ("change",function(){return n.CHM(t),n.oxw()._sendEventToParent()})("ngModelChange",function(e){return n.CHM(t),n.oxw().attribute.value=e}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("ngModel",t.attribute.value)}}function u(t,e){if(1&t&&(n.TgZ(0,"mat-label"),n._uU(1),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.Oqu(t.attribute.value)}}let h=(()=>{class t{constructor(){this.readonly=!1,this.sendEventToParent=new n.vpe}ngOnInit(){this.readonly||(this.readonly=(0,s.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"div"),n.YNc(1,l,1,1,"mat-checkbox",0),n.YNc(2,u,2,1,"mat-label",1),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf",!e.readonly),n.xp6(1),n.Q6J("ngIf",e.readonly))},directives:[o.O5,r.oG,a.JJ,a.On,c.hX],styles:[""]}),t})()},84584:function(t,e,i){"use strict";i.d(e,{H:function(){return C}});var n=i(31572),s=i(75842),o=i(88975),r=i(6527),a=i(84140),c=i(84608),l=i(10033),u=i(61511),h=i(43691),d=i(36922),p=i(15980),g=i(66283),f=i(80340);function m(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-icon",9),n.NdJ("mousedown",function(){return n.CHM(t),n.oxw(2).dragDisabled=!1}),n._uU(1,"drag_indicator"),n.qZA()}}function b(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-icon",10),n.NdJ("click",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw().edit(e)}),n._uU(1,"edit"),n.qZA()}}function _(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-icon",11),n.NdJ("click",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw().remove(e)}),n._uU(1,"cancel"),n.qZA()}}function w(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-chip",4),n.NdJ("removed",function(){const e=n.CHM(t).$implicit,i=n.oxw();return i.remove(e),i._sendEventToParent()}),n.YNc(1,m,2,0,"mat-icon",5),n.TgZ(2,"div",6),n.NdJ("click",function(){const e=n.CHM(t).$implicit,i=n.oxw();return i.readonly&&void 0!==i.attribute.displayName&&i.showValue(e,i.attribute.displayName)}),n._uU(3),n.qZA(),n.YNc(4,b,2,0,"mat-icon",7),n.YNc(5,_,2,0,"mat-icon",8),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.Q6J("selectable",i.selectable)("cdkDragData",t)("removable",i.removable),n.xp6(1),n.Q6J("ngIf",i.removable),n.xp6(1),n.ekj("cursor-pointer",i.readonly&&void 0!==i.attribute.displayName),n.xp6(1),n.Oqu(t),n.xp6(1),n.Q6J("ngIf",i.removable),n.xp6(1),n.Q6J("ngIf",i.removable)}}function A(t,e){1&t&&(n.TgZ(0,"mat-icon"),n._uU(1,"more_horiz"),n.qZA())}function y(t,e){1&t&&(n.TgZ(0,"mat-icon"),n._uU(1,"keyboard_arrow_up"),n.qZA())}function v(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"div",12),n.TgZ(1,"span",13),n.TgZ(2,"button",14),n.NdJ("click",function(){return n.CHM(t),n.oxw().onShowChange()}),n.YNc(3,A,2,0,"mat-icon",15),n.YNc(4,y,2,0,"mat-icon",15),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=n.oxw();n.xp6(1),n.Q6J("matTooltip",t.showMore?"Show less":"Show more")("matTooltipPosition","above"),n.xp6(2),n.Q6J("ngIf",!t.showMore),n.xp6(1),n.Q6J("ngIf",t.showMore)}}function T(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-form-field",12),n.TgZ(1,"input",16),n.NdJ("matChipInputTokenEnd",function(e){return n.CHM(t),n.oxw().add(e)})("change",function(){return n.CHM(t),n.oxw()._sendEventToParent()}),n.qZA(),n.qZA()}if(2&t){const t=n.oxw(),e=n.MAs(2);n.xp6(1),n.Q6J("matChipInputFor",e)("matChipInputSeparatorKeyCodes",t.separatorKeysCodes)("matChipInputAddOnBlur",t.addOnBlur)}}let C=(()=>{class t{constructor(t){this.dialog=t,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[s.K5,s.OC],this.values=[],this.showMore=!1,this.defaultItemsShown=5,this.sendEventToParent=new n.vpe,this.readonly=!1}ngOnInit(){this.removable=!(0,a.Hm)(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=Object.values(this.attribute.value),this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,a.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}add(t){const e=t.input,i=t.value;(i||"").trim()&&(this.attribute.value.push(i.trim()),this.values=Object.values(this.attribute.value),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),e&&(e.value=""),this.sendEventToParent.emit()}remove(t){const e=(0,a.kZ)();e.width="400px",e.data={name:t},this.dialog.open(r.Wr,e).afterClosed().subscribe(e=>{if(e){const e=this.attribute.value.indexOf(t);this.attribute.value.splice(e,1),this.values=Object.values(this.attribute.value),this.sendEventToParent.emit()}})}drop(t){this.dragDisabled=!0,(0,o.bA)(this.attribute.value,t.previousIndex,t.currentIndex),this.values=Object.values(this.attribute.value)}edit(t){const e=this.attribute.value.indexOf(t),i=(0,a.kZ)();i.width="600px",i.data={attribute:this.attribute,index:e},this.dialog.open(r.r2,i).afterClosed().subscribe(t=>{t&&(this.values=Object.values(this.attribute.value),this.sendEventToParent.emit())})}showValue(t,e){const i=(0,a.kZ)();i.width="350px",i.data={value:t,title:e},this.dialog.open(r.mk,i)}setItemsShown(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(c.uw))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"mat-chip-list",0,1),n.NdJ("cdkDropListDropped",function(t){return e.drop(t),e._sendEventToParent()}),n.YNc(3,w,6,9,"mat-chip",2),n.YNc(4,v,5,4,"div",3),n.YNc(5,T,2,3,"mat-form-field",3),n.qZA(),n.qZA()),2&t&&(n.xp6(1),n.Q6J("cdkDropListDisabled",e.dragDisabled),n.xp6(2),n.Q6J("ngForOf",e.values.slice(0,e.itemsShown)),n.xp6(1),n.Q6J("ngIf",e.values.length>e.defaultItemsShown),n.xp6(1),n.Q6J("ngIf",!e.readonly))},directives:[l.qn,o.Wj,u.sg,u.O5,l.HS,o.Zt,h.Hw,d.gM,p.lW,g.KE,f.Nt,l.oH],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%], .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}.edit-delete-icon[_ngcontent-%COMP%], .handle-icon[_ngcontent-%COMP%]{justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),t})()},22230:function(t,e,i){"use strict";i.d(e,{$:function(){return A}});var n=i(6527),s=i(84140),o=i(31572),r=i(84608),a=i(16073),c=i(61511),l=i(36922),u=i(66283),h=i(80340),d=i(15980),p=i(43691);function g(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",15),o.NdJ("click",function(){o.CHM(t);const e=o.oxw().index;return o.oxw().removeValue(e)}),o.TgZ(1,"mat-icon"),o._uU(2," indeterminate_check_box "),o.qZA(),o.qZA()}}function f(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",9),o.TgZ(1,"mat-form-field",10),o._UZ(2,"label",11),o.TgZ(3,"input",12),o.NdJ("click",function(){const e=o.CHM(t).index,i=o.oxw();return i.readonly&&i.attribute.displayName&&i.showValue(i.keys[e],i.attribute.displayName)})("ngModelChange",function(e){const i=o.CHM(t).index;return o.oxw().keys[i]=e}),o.qZA(),o.qZA(),o.TgZ(4,"mat-form-field",10),o._UZ(5,"label",11),o.TgZ(6,"input",13),o.NdJ("click",function(){const e=o.CHM(t).$implicit,i=o.oxw();return i.readonly&&void 0!==i.attribute.displayName&&i.showValue(e,i.attribute.displayName)})("ngModelChange",function(e){const i=o.CHM(t).index;return o.oxw().values[i]=e}),o.qZA(),o.qZA(),o.YNc(7,g,3,0,"button",14),o.qZA()}if(2&t){const t=e.index,i=o.oxw();o.xp6(1),o.s9C("appearance",i.readonly?"none":"standard"),o.xp6(1),o.hYB("for","",i.attribute.id,"-key-",t,""),o.xp6(1),o.ekj("cursor-pointer",i.readonly&&void 0!==i.attribute.displayName),o.hYB("id","",i.attribute.id,"-key-",t,""),o.MGl("name","key-",t,""),o.Q6J("ngModel",i.keys[t])("readonly",i.readonly),o.xp6(1),o.s9C("appearance",i.readonly?"none":"standard"),o.xp6(1),o.hYB("for","",i.attribute.id,"-value-",t,""),o.xp6(1),o.ekj("cursor-pointer",i.readonly&&void 0!==i.attribute.displayName),o.MGl("name","value-",t,""),o.hYB("id","",i.attribute.id,"-value-",t,""),o.Q6J("readonly",i.readonly)("ngModel",i.values[t]),o.xp6(1),o.Q6J("ngIf",!i.readonly)}}function m(t,e){1&t&&(o.TgZ(0,"mat-icon"),o._uU(1,"more_horiz"),o.qZA())}function b(t,e){1&t&&(o.TgZ(0,"mat-icon"),o._uU(1,"keyboard_arrow_up"),o.qZA())}function _(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",16),o.NdJ("click",function(){return o.CHM(t),o.oxw().onShowChange()}),o.YNc(1,m,2,0,"mat-icon",17),o.YNc(2,b,2,0,"mat-icon",17),o.qZA()}if(2&t){const t=o.oxw();o.xp6(1),o.Q6J("ngIf",!t.showMore),o.xp6(1),o.Q6J("ngIf",t.showMore)}}function w(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",18),o.NdJ("click",function(){return o.CHM(t),o.oxw().addValue()}),o.TgZ(1,"mat-icon"),o._uU(2," add_box "),o.qZA(),o.qZA()}}let A=(()=>{class t{constructor(t){this.dialog=t,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}ngOnInit(){if(this.attribute.value){const t=this.attribute.value;for(const[e,i]of Object.entries(t))this.keys.push(e),this.values.push(i)}this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,s.Hm)(this.attribute))}customTrackBy(t){return t}addValue(){this.keys.push(""),this.values.push(""),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}removeValue(t){this.keys.splice(t,1),this.values.splice(t,1)}updateAttribute(){const t={};for(let e=0;ee.defaultItemsShown),o.xp6(1),o.Q6J("ngIf",!e.readonly))},directives:[a._Y,a.JL,a.F,c.sg,l.gM,c.O5,u.KE,h.Nt,a.Fj,a.Q7,a.JJ,a.On,d.lW,p.Hw],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}"]}),t})()},33596:function(t,e,i){"use strict";i.d(e,{_:function(){return h}});var n=i(31572),s=i(84140),o=i(6527),r=i(84608),a=i(66283),c=i(80340),l=i(16073),u=i(82877);let h=(()=>{class t{constructor(t){this.dialog=t,this.readonly=!1,this.sendEventToParent=new n.vpe}ngOnInit(){this.value=this.attribute.value,this.readonly||(this.readonly=(0,s.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(t,e){const i=(0,s.kZ)();i.width="350px",i.data={value:t,title:e},this.dialog.open(o.mk,i)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(r.uw))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n.TgZ(1,"input",1),n.NdJ("click",function(){return e.readonly&&void 0!==e.value&&e.showValue(e.value,e.attribute.displayName)})("ngModelChange",function(t){return e.attribute.value=t})("keydown",function(){return e._sendEventToParent()}),n.ALo(2,"multiWordDataCy"),n.qZA(),n.qZA()),2&t&&(n.s9C("appearance",e.readonly?"none":"standard"),n.xp6(1),n.ekj("cursor-pointer",e.readonly&&void 0!==e.value),n.Q2q("data-cy","",n.lcZ(2,6,e.attribute.displayName),"-value"),n.Q6J("readonly",e.readonly)("ngModel",e.attribute.value))},directives:[a.KE,c.Nt,l.Fj,l.JJ,l.On],pipes:[u.R],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),t})()},51556:function(t,e,i){"use strict";i.d(e,{M:function(){return v}});var n=i(31572),s=i(22230),o=i(61511),r=i(76021),a=i(84584),c=i(33596),l=i(84140),u=i(6527),h=i(84608),d=i(66283),p=i(80340),g=i(16073);let f=(()=>{class t{constructor(t){this.dialog=t,this.readonly=!1,this.sendEventToParent=new n.vpe}ngOnInit(){this.readonly||(this.readonly=(0,l.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(t){const e=(0,l.kZ)();e.width="350px",e.data={value:t.value,title:t.displayName},this.dialog.open(u.mk,e)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(h.uw))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n.TgZ(1,"input",1),n.NdJ("click",function(){return e.readonly&&void 0!==e.attribute.value&&e.showValue(e.attribute)})("ngModelChange",function(t){return e.attribute.value=t})("keydown",function(){return e._sendEventToParent()}),n.qZA(),n.qZA()),2&t&&(n.s9C("appearance",e.readonly?"none":"standard"),n.xp6(1),n.ekj("cursor-pointer",e.readonly&&void 0!==e.attribute.value),n.Q6J("readonly",e.readonly)("ngModel",e.attribute.value))},directives:[d.KE,p.Nt,g.wV,g.Fj,g.JJ,g.On],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();const m=["map"];function b(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-boolean",3),n.NdJ("sendEventToParent",function(){return n.CHM(t),n.oxw()._sendEventToParent2()}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("attribute",t.attribute)("readonly",t.readonly)}}function _(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-list",3),n.NdJ("sendEventToParent",function(){return n.CHM(t),n.oxw()._sendEventToParent2()}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("attribute",t.attribute)("readonly",t.readonly)}}function w(t,e){if(1&t&&n._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&t){const t=n.oxw();n.Q6J("attribute",t.attribute)("readonly",t.readonly)}}function A(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-string",3),n.NdJ("sendEventToParent",function(){return n.CHM(t),n.oxw()._sendEventToParent2()}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("attribute",t.attribute)("readonly",t.readonly)}}function y(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-integer",3),n.NdJ("sendEventToParent",function(){return n.CHM(t),n.oxw()._sendEventToParent2()}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("attribute",t.attribute)("readonly",t.readonly)}}let v=(()=>{class t{constructor(){this.readonly=!1,this.sendEventToParent2=new n.vpe}updateMapAttribute(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}_sendEventToParent2(){this.sendEventToParent2.emit()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(t,e){if(1&t&&n.Gf(m,5),2&t){let t;n.iGM(t=n.CRH())&&(e.mapComponent=t.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(t,e){1&t&&(n.TgZ(0,"div"),n.YNc(1,b,1,2,"perun-web-apps-attribute-value-boolean",0),n.YNc(2,_,1,2,"perun-web-apps-attribute-value-list",0),n.TgZ(3,"div",1),n.NdJ("click",function(){return e._sendEventToParent2()}),n.YNc(4,w,2,2,"perun-web-apps-attribute-value-map",2),n.qZA(),n.YNc(5,A,1,2,"perun-web-apps-attribute-value-string",0),n.YNc(6,y,1,2,"perun-web-apps-attribute-value-integer",0),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf","java.lang.Boolean"===e.attribute.type),n.xp6(1),n.Q6J("ngIf","java.util.ArrayList"===e.attribute.type),n.xp6(2),n.Q6J("ngIf","java.util.LinkedHashMap"===e.attribute.type),n.xp6(1),n.Q6J("ngIf","java.lang.String"===e.attribute.type||"java.lang.LargeString"===e.attribute.type),n.xp6(1),n.Q6J("ngIf","java.lang.Integer"===e.attribute.type))},directives:[o.O5,r.u,a.H,s.$,c._,f],styles:[""]}),t})()},41186:function(t,e,i){"use strict";i.d(e,{p:function(){return P}});var n=i(58623),s=i(67033),o=i(4230),r=i(51556),a=i(84140),c=i(68416),l=i(31572),u=i(82819),h=i(61511),d=i(29236),p=i(36922),g=i(39571),f=i(82877);let m=(()=>{class t{transform(t){return"virt"===t.namespace.split(":")[4]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=l.Yjl({name:"isVirtualAttribute",type:t,pure:!0}),t})();var b=i(48160);function _(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"th",17),l.TgZ(1,"mat-checkbox",18),l.NdJ("change",function(e){l.CHM(t);const i=l.oxw();return e?i.masterToggle():null}),l.qZA(),l.qZA()}if(2&t){const t=l.oxw();l.xp6(1),l.Q6J("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())("aria-label",t.checkboxLabel())}}function w(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"td",19),l.TgZ(1,"mat-checkbox",20),l.NdJ("click",function(t){return t.stopPropagation()})("change",function(e){const i=l.CHM(t).$implicit,n=l.oxw();return e?n.selection.toggle(i):null}),l.ALo(2,"multiWordDataCy"),l.ALo(3,"isVirtualAttribute"),l.qZA(),l.qZA()}if(2&t){const t=e.$implicit,i=l.oxw();l.xp6(1),l.Q2q("data-cy","",l.lcZ(2,4,t.displayName),"-checkbox"),l.Q6J("checked",i.selection.isSelected(t))("disabled",l.lcZ(3,6,t)||!t.writable)("aria-label",i.checkboxLabel(t))}}function A(t,e){1&t&&(l.TgZ(0,"th",21),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")))}function y(t,e){if(1&t&&(l.TgZ(0,"td",22),l._uU(1),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.Oqu(t.id)}}function v(t,e){1&t&&(l.TgZ(0,"th",21),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")))}function T(t,e){if(1&t&&(l.TgZ(0,"td",23),l.TgZ(1,"div",24),l._uU(2),l.qZA(),l.qZA()),2&t){const t=e.$implicit,i=l.oxw();l.xp6(1),l.s9C("matTooltip",i.getAttributeFullName(t)),l.xp6(1),l.hij(" ",t.displayName," ")}}function C(t,e){1&t&&(l.TgZ(0,"th",25),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")))}function E(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"td",23),l.TgZ(1,"perun-web-apps-attribute-value",26),l.NdJ("sendEventToParent2",function(){const e=l.CHM(t).$implicit;return l.oxw().onValueChange(e)}),l.qZA(),l.qZA()}if(2&t){const t=e.$implicit,i=l.oxw();l.xp6(1),l.Q6J("attribute",t)("readonly",i.readonly||!t.writable)}}function S(t,e){1&t&&(l.TgZ(0,"th",21),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")))}function k(t,e){if(1&t&&(l.TgZ(0,"td",23),l._uU(1),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.Oqu(t.description)}}function I(t,e){1&t&&l._UZ(0,"tr",27)}function x(t,e){if(1&t&&(l._UZ(0,"tr",28),l.ALo(1,"translate")),2&t){const t=e.$implicit,i=l.oxw();l.s9C("matTooltip",l.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),l.Q6J("matTooltipPosition","before")("matTooltipDisabled",t.writable||i.readonly)}}function R(t,e){1&t&&(l.TgZ(0,"app-alert",29),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function O(t,e){if(1&t&&(l.TgZ(0,"app-alert",29),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.hij(" ",l.lcZ(2,1,t.emptyListText),"\n")}}let P=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.attributes=[],this.selection=new o.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=a.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new s.by((0,a.MX)(this.attributes)),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"displayName":return t.displayName;case"description":return t.description;case"value":return JSON.stringify(t.value);case"urn":return t.namespace+":"+t.baseFriendlyName;default:return""}}exportData(t){(0,a.O6)((0,a.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(t=>!this.hiddenColumns.includes(t)),this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>(0,a.Sd)(t,e,this.displayedColumns.concat("urn"),this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,a.pR)(t,e,this.getDataForColumn,this),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,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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}updateMapAttributes(){for(const t of this.items.toArray())"java.util.LinkedHashMap"===t.attribute.type&&t.updateMapAttribute()}onValueChange(t){this.canBeSelected(t)&&this.selection.select(t)}canBeSelected(t){return!(0,a.Hm)(t)&&t.writable}getAttributeFullName(t){return`${t.namespace}:${t.friendlyName}`}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(c.x4),l.Y36(c.UA))},t.\u0275cmp=l.Xpm({type:t,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(t,e){if(1&t&&(l.Gf(n.YE,7),l.Gf(a.l9,7),l.Gf(r.M,5)),2&t){let t;l.iGM(t=l.CRH())&&(e.matSort=t.first),l.iGM(t=l.CRH())&&(e.child=t.first),l.iGM(t=l.CRH())&&(e.items=t)}},inputs:{attributes:"attributes",selection:"selection",displayedColumns:"displayedColumns",inDialog:"inDialog",filterValue:"filterValue",tableId:"tableId",readonly:"readonly",hiddenColumns:"hiddenColumns",emptyListText:"emptyListText"},features:[l.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(t,e){1&t&&(l.TgZ(0,"div",0),l.TgZ(1,"perun-web-apps-table-wrapper",1),l.NdJ("exportData",function(t){return e.exportData(t)}),l.TgZ(2,"table",2),l.ynx(3,3),l.YNc(4,_,2,3,"th",4),l.YNc(5,w,4,8,"td",5),l.BQk(),l.ynx(6,6),l.YNc(7,A,3,3,"th",7),l.YNc(8,y,2,1,"td",8),l.BQk(),l.ynx(9,9),l.YNc(10,v,3,3,"th",7),l.YNc(11,T,3,2,"td",10),l.BQk(),l.ynx(12,11),l.YNc(13,C,3,3,"th",12),l.YNc(14,E,2,2,"td",10),l.BQk(),l.ynx(15,13),l.YNc(16,S,3,3,"th",7),l.YNc(17,k,2,1,"td",10),l.BQk(),l.YNc(18,I,1,0,"tr",14),l.YNc(19,x,2,5,"tr",15),l.qZA(),l.qZA(),l.qZA(),l.YNc(20,R,3,3,"app-alert",16),l.YNc(21,O,3,3,"app-alert",16)),2&t&&(l.Q6J("hidden",0===e.dataSource.filteredData.length),l.xp6(1),l.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),l.xp6(1),l.Q6J("dataSource",e.dataSource),l.xp6(16),l.Q6J("matHeaderRowDef",e.displayedColumns),l.xp6(1),l.Q6J("matRowDefColumns",e.displayedColumns),l.xp6(1),l.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.dataSource.data.length),l.xp6(1),l.Q6J("ngIf",0===e.dataSource.data.length))},directives:[u.l,s.BZ,n.YE,s.w1,s.fO,s.Dz,s.as,s.nj,h.O5,s.ge,d.oG,s.ev,n.nU,p.gM,r.M,s.XQ,s.Gk,g.w],pipes:[f.R,m,b.X$],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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important} .urn-tooltip{max-width:800px!important}"]}),t})()},66297:function(t,e,i){"use strict";i.d(e,{W:function(){return h}});var n=i(68416),s=i(31572),o=i(61511),r=i(15980),a=i(36922),c=i(43691),l=i(48160);const u=function(t){return{color:t}};let h=(()=>{class t{constructor(t,e){this.location=t,this.storeService=e}ngOnInit(){this.backButtonColor=this.storeService.get("theme","back_button_color")}goBack(){"false"===sessionStorage.getItem("onInitPage")&&this.location.back()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(o.Ye),s.Y36(n.d6))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"button",0),s.NdJ("click",function(){return e.goBack()}),s.ALo(1,"translate"),s.TgZ(2,"mat-icon",1),s._uU(3,"arrow_right_alt"),s.qZA(),s.qZA()),2&t&&(s.s9C("matTooltip",s.lcZ(1,2,"Back")),s.Q6J("ngStyle",s.VKq(4,u,e.backButtonColor)))},directives:[r.lW,o.PC,a.gM,c.Hw],pipes:[l.X$],styles:[".rotate[_ngcontent-%COMP%]{transform:rotate(180deg) scale(1.5)}"]}),t})()},43005:function(t,e,i){"use strict";i.d(e,{r:function(){return g}});var n=i(31572),s=i(16073),o=i(68416),r=i(66283),a=i(80340),c=i(61511),l=i(29236),u=i(37665),h=i(48160);function d(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-checkbox",7),n.NdJ("change",function(){return n.CHM(t),n.oxw().emitAsSubGroup()})("ngModelChange",function(e){return n.CHM(t),n.oxw().asSubgroup=e}),n._uU(1),n.ALo(2,"translate"),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("labelPosition","before")("ngModel",t.asSubgroup),n.xp6(1),n.hij(" ",n.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function p(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"perun-web-apps-group-search-select",8),n.NdJ("groupSelected",function(e){return n.CHM(t),n.oxw().emitParentGroup(e)}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("disableAutoSelect",!0)("groups",t.voGroups)}}let g=(()=>{class t{constructor(t){this.store=t,this.parentGroup=null,this.voGroups=[],this.asSubgroup=!1,this.invalidNameMessage=this.store.get("group_name_error_message"),this.secondaryRegex=this.store.get("group_name_secondary_regex"),this.nameChanged=new n.vpe,this.descriptionChanged=new n.vpe,this.parentGroupChanged=new n.vpe,this.asSubgroupChanged=new n.vpe}ngOnInit(){this.isNotSubGroup=null===this.parentGroup,this.nameControl=new s.NI("",[s.kI.required,s.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),s.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new s.NI("",[s.kI.required,s.kI.maxLength(129)]),this.selectedParent=null,this.voGroups=this.voGroups.filter(t=>"members"!==t.name)}emitName(){this.nameChanged.emit(this.nameControl.invalid?"":this.nameControl.value)}emitDescription(){this.descriptionChanged.emit(this.descriptionControl.invalid?"":this.descriptionControl.value)}emitParentGroup(t){this.selectedParent=t,this.parentGroupChanged.emit(t)}emitAsSubGroup(){this.asSubgroup||this.emitParentGroup(null),this.asSubgroupChanged.emit(this.asSubgroup)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(o.d6))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"mat-form-field",1),n.NdJ("keyup",function(){return e.emitName()}),n.TgZ(2,"label",2),n._UZ(3,"input",3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"mat-error"),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.qZA(),n.TgZ(8,"mat-form-field",4),n.NdJ("keyup",function(){return e.emitDescription()}),n.TgZ(9,"label",2),n._UZ(10,"textarea",3),n.ALo(11,"translate"),n.qZA(),n.TgZ(12,"mat-error"),n._uU(13),n.ALo(14,"translate"),n.qZA(),n.qZA(),n.YNc(15,d,3,5,"mat-checkbox",5),n.YNc(16,p,1,2,"perun-web-apps-group-search-select",6),n.qZA()),2&t&&(n.xp6(3),n.s9C("placeholder",n.lcZ(4,8,"DIALOGS.CREATE_GROUP.NAME")),n.Q6J("formControl",e.nameControl),n.xp6(3),n.hij(" ",e.invalidNameMessage.length?e.invalidNameMessage:n.lcZ(7,10,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),n.xp6(4),n.s9C("placeholder",n.lcZ(11,12,"DIALOGS.CREATE_GROUP.DESCRIPTION")),n.Q6J("formControl",e.descriptionControl),n.xp6(3),n.hij(" ",n.lcZ(14,14,"DIALOGS.CREATE_GROUP.INVALID_DESCRIPTION")," "),n.xp6(2),n.Q6J("ngIf",e.isNotSubGroup),n.xp6(1),n.Q6J("ngIf",e.asSubgroup))},directives:[r.KE,a.Nt,s.Fj,s.Q7,s.JJ,s.oH,r.TO,c.O5,l.oG,s.On,u.h],pipes:[h.X$],styles:[""]}),t})()},51613:function(t,e,i){"use strict";i.d(e,{S:function(){return l}});var n=i(31572),s=i(66283),o=i(80340),r=i(15812),a=i(16073),c=i(48160);let l=(()=>{class t{constructor(){this.datePicker=new n.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 t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,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(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-form-field",0),n.NdJ("click",function(){return n.CHM(t),n.MAs(7).open()}),n.TgZ(1,"mat-label"),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"input",1),n.NdJ("dateChange",function(){return e.dateChange()}),n.qZA(),n._UZ(5,"mat-datepicker-toggle",2),n._UZ(6,"mat-datepicker",null,3),n.qZA(),n.TgZ(8,"mat-form-field",4),n.NdJ("click",function(){return n.CHM(t),n.MAs(15).open()}),n.TgZ(9,"mat-label"),n._uU(10),n.ALo(11,"translate"),n.qZA(),n.TgZ(12,"input",1),n.NdJ("dateChange",function(){return e.dateChange()}),n.qZA(),n._UZ(13,"mat-datepicker-toggle",2),n._UZ(14,"mat-datepicker",null,5),n.qZA()}if(2&t){const t=n.MAs(7),i=n.MAs(15);n.xp6(2),n.Oqu(n.lcZ(3,12,"VO_DETAIL.APPLICATION.DATE.START")),n.xp6(2),n.Q6J("matDatepicker",t)("min",e.startMinDate)("max",e.startMaxDate)("formControl",e.startDate),n.xp6(1),n.Q6J("for",t),n.xp6(5),n.Oqu(n.lcZ(11,14,"VO_DETAIL.APPLICATION.DATE.END")),n.xp6(2),n.Q6J("matDatepicker",i)("min",e.endMinDate)("max",e.endMaxDate)("formControl",e.endDate),n.xp6(1),n.Q6J("for",i)}},directives:[s.KE,s.hX,o.Nt,r.hl,a.Fj,a.JJ,a.oH,r.nW,s.R9,r.Mq],pipes:[c.X$],styles:[""]}),t})()},91058:function(t,e,i){"use strict";i.d(e,{P:function(){return d}});var n=i(31572),s=i(87254),o=i(79996),r=i(47701),a=i(98720),c=i(66283),l=i(80340),u=i(48160);const h=["groupFilterInput"];let d=(()=>{class t{constructor(){this.filter=new n.vpe}ngOnInit(){(0,s.R)(this.groupFilterInput.nativeElement,"keyup").pipe((0,o.U)(t=>t.target.value),(0,r.b)(500),(0,a.x)()).subscribe(t=>{this.filter.emit(t)})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(t,e){if(1&t&&n.Gf(h,7),2&t){let t;n.iGM(t=n.CRH())&&(e.groupFilterInput=t.first)}},inputs:{placeholder:"placeholder"},outputs:{filter:"filter"},decls:4,vars:3,consts:[[1,"filter-field","mr-2"],["matInput","",3,"placeholder"],["groupFilterInput",""]],template:function(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n._UZ(1,"input",1,2),n.ALo(3,"translate"),n.qZA()),2&t&&(n.xp6(1),n.s9C("placeholder",n.lcZ(3,1,e.placeholder)))},directives:[c.KE,l.Nt],pipes:[u.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),t})()},44973:function(t,e,i){"use strict";i.d(e,{i:function(){return y}});var n=i(31572),s=i(16073),o=i(66994),r=i(55959),a=i(25416),c=i(96577),l=i(66283),u=i(4786),h=i(61511),d=i(71522),p=i(30146),g=i(4253);const f=["scrollViewport"];function m(t,e){if(1&t&&(n.TgZ(0,"mat-select-trigger"),n._uU(1),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.hij(" ",t.multipleSelectedText()," ")}}function b(t,e){if(1&t&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&t){const t=n.oxw(2);n.Tol(t.colorByStatus(null==t.entitiesCtrl?null:t.entitiesCtrl.value)),n.xp6(1),n.hij(" ",t.statusTextFunction(null==t.entitiesCtrl?null:t.entitiesCtrl.value)?"("+t.statusTextFunction(null==t.entitiesCtrl?null:t.entitiesCtrl.value)+")":""," ")}}function _(t,e){if(1&t&&(n.TgZ(0,"mat-option",8),n._uU(1),n.TgZ(2,"span",9),n._uU(3),n.qZA(),n.YNc(4,b,2,4,"span",10),n.qZA()),2&t){const t=n.oxw();n.Q6J("value",null==t.entitiesCtrl?null:t.entitiesCtrl.value),n.xp6(1),n.hij(" ",t.mainTextFunction(null==t.entitiesCtrl?null:t.entitiesCtrl.value)," "),n.xp6(2),n.Oqu(t.secondaryTextFunction(null==t.entitiesCtrl?null:t.entitiesCtrl.value)),n.xp6(1),n.Q6J("ngIf",t.displayStatus)}}function w(t,e){if(1&t&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw();n.Tol(e.colorByStatus(t)),n.xp6(1),n.hij(" ",e.statusTextFunction(t)?"("+e.statusTextFunction(t)+")":""," ")}}function A(t,e){if(1&t&&(n.TgZ(0,"mat-option",11),n._uU(1),n.TgZ(2,"span",9),n._uU(3),n.qZA(),n.YNc(4,w,2,4,"span",10),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.Tol(i.theme),n.Q6J("value",t),n.xp6(1),n.hij(" ",i.mainTextFunction(t)," "),n.xp6(2),n.Oqu(i.secondaryTextFunction(t)),n.xp6(1),n.Q6J("ngIf",i.displayStatus)}}let y=(()=>{class t{constructor(t){this.cd=t,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 n.vpe,this.entitiesCtrl=new s.NI,this.entityFilterCtrl=new s.NI,this.filteredEntities=new o.t(1),this.entitiesLen=0,this._onDestroy=new r.xQ,this.mainTextFunction=t=>(0,c.stringify)(t),this.secondaryTextFunction=t=>"#"+t.id+(t.description?" "+t.description:""),this.statusTextFunction=t=>t.status}ngOnInit(){this.entitiesCtrl.valueChanges.subscribe(t=>this.entitySelected.emit(t)),this.disableAutoSelect||null!==this.entity||this.entitiesCtrl.setValue(this.entities[0]),this.filteredEntities.subscribe(t=>this.entitiesLen=t.length),this.entityFilterCtrl.valueChanges.pipe((0,a.R)(this._onDestroy)).subscribe(()=>{this.filterEntites()}),null!==this.entity&&this.entitiesCtrl.setValue(this.entity)}colorByStatus(t){switch(t.status){case"ACTIVE":return"green";case"INACTIVE":return"grey";case"FAILED":return"red";case"PROCESSING":return"black"}}ngOnChanges(t){null!==this.entity&&this.entitiesCtrl.setValue(this.entity),t.entities&&this.filteredEntities.next(this.entities.slice())}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}filterEntites(){if(!this.entities)return;let t=this.entityFilterCtrl.value;if(!t)return this.filteredEntities.next(this.entities.slice()),void this.cd.detectChanges();t=this.normalize(t),this.filteredEntities.next(this.entities.filter(e=>this.normalize(this.searchFunction(e)).indexOf(t)>=0)),this.cd.detectChanges()}normalize(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}openChange(){this.scrollViewport.scrollToIndex(0),this.scrollViewport.checkViewportSize()}getViewportHeight(){let t=48*this.entitiesLen;return t>192&&(t=192),this.scrollViewport&&this.scrollViewport.checkViewportSize(),t}multipleSelectedText(){if(this.entitiesCtrl.value&&0!==this.entitiesCtrl.value.length)return this.entitiesCtrl.value.length===this.entities.length?"ALL":this.entitiesCtrl.value.length>1?this.mainTextFunction(this.entitiesCtrl.value[0])+` + ${this.entitiesCtrl.value.length-1} other(s)`:this.mainTextFunction(this.entitiesCtrl.value[0])+" "+this.secondaryTextFunction(this.entitiesCtrl.value[0])}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-entity-search-select"]],viewQuery:function(t,e){if(1&t&&n.Gf(f,5),2&t){let t;n.iGM(t=n.CRH())&&(e.scrollViewport=t.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:[n.TTD],decls:10,vars:16,consts:[[1,"w-100"],[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(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n.TgZ(1,"mat-select",1),n.NdJ("openedChange",function(){return e.openChange()}),n.YNc(2,m,2,1,"mat-select-trigger",2),n.TgZ(3,"mat-option"),n._UZ(4,"ngx-mat-select-search",3),n.qZA(),n.YNc(5,_,5,4,"mat-option",4),n.TgZ(6,"cdk-virtual-scroll-viewport",5,6),n.YNc(8,A,5,7,"mat-option",7),n.ALo(9,"async"),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.xp6(1),n.s9C("placeholder",e.selectPlaceholder),n.Q6J("formControl",e.entitiesCtrl)("multiple",e.multiple),n.xp6(1),n.Q6J("ngIf",e.multiple),n.xp6(2),n.s9C("placeholderLabel",e.findPlaceholder),n.s9C("noEntriesFoundLabel",e.noEntriesText),n.Q6J("clearSearchInput",!1)("formControl",e.entityFilterCtrl),n.xp6(1),n.Q6J("ngIf",null==e.entitiesCtrl?null:e.entitiesCtrl.value),n.xp6(1),n.Udp("height",e.getViewportHeight(),"px"),n.Q6J("minBufferPx",240)("maxBufferPx",480),n.xp6(2),n.Q6J("cdkVirtualForOf",n.lcZ(9,14,e.filteredEntities)))},directives:[l.KE,u.gD,s.JJ,s.oH,h.O5,d.ey,p.nu,g.N7,g.xd,g.x0,u.$L],pipes:[h.Ov],styles:[".selected-options-bottom[_ngcontent-%COMP%]{visibility:hidden;position:absolute}.green[_ngcontent-%COMP%]{color:green}.grey[_ngcontent-%COMP%]{color:grey}.red[_ngcontent-%COMP%]{color:red}.black[_ngcontent-%COMP%]{color:#000}"]}),t})()},60007:function(t,e,i){"use strict";i.d(e,{X:function(){return $}});var n=i(58623),s=i(67033),o=i(84140),r=i(68416),a=i(31572),c=i(82819),l=i(61511),u=i(29236),h=i(72953),d=i(16073),p=i(36922),g=i(15980),f=i(43691);function m(t,e){if(1&t&&(a.TgZ(0,"div",6),a._uU(1),a.qZA()),2&t){const t=e.$implicit,i=a.oxw();a.xp6(1),a.hij(" ",t[i.paramName]," ")}}function b(t,e){1&t&&(a.TgZ(0,"mat-icon"),a._uU(1,"more_horiz"),a.qZA())}function _(t,e){1&t&&(a.TgZ(0,"mat-icon"),a._uU(1,"keyboard_arrow_up"),a.qZA())}function w(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"button",7),a.NdJ("click",function(){return a.CHM(t),a.oxw().onShowChange()}),a.YNc(1,b,2,0,"mat-icon",8),a.YNc(2,_,2,0,"mat-icon",8),a.qZA()}if(2&t){const t=a.oxw();a.xp6(1),a.Q6J("ngIf",!t.showMore),a.xp6(1),a.Q6J("ngIf",t.showMore)}}let A=(()=>{class t{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 t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=a.Xpm({type:t,selectors:[["perun-web-apps-object-list-values"]],inputs:{objects:"objects",filterValue:"filterValue",paramName:"paramName"},features:[a.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(t,e){1&t&&(a.TgZ(0,"form",0),a.TgZ(1,"div",1),a.TgZ(2,"div",2),a.YNc(3,m,2,1,"div",3),a.qZA(),a.TgZ(4,"div"),a.TgZ(5,"span",4),a.YNc(6,w,3,2,"button",5),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.xp6(3),a.Q6J("ngForOf",e.objects.slice(0,e.itemsShown)),a.xp6(2),a.Q6J("matTooltip",e.showMore?"Show less":"Show more")("matTooltipPosition","above"),a.xp6(1),a.Q6J("ngIf",e.objects.length>e.defaultItemsShown))},directives:[d._Y,d.JL,d.F,l.sg,p.gM,l.O5,g.lW,f.Hw],styles:[""]}),t})();var y=i(84534),v=i(57629),T=i(39571),C=i(48160),E=i(48853);let S=(()=>{class t{transform(t,e,i){return t.filter(t=>t[i].includes(e)).filter((t,e,n)=>n.findIndex(e=>e[i]===t[i])===e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=a.Yjl({name:"filterUniqueObjects",type:t,pure:!0}),t})();function k(t,e){1&t&&a._UZ(0,"th",20)}function I(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"td",21),a.TgZ(1,"mat-checkbox",22),a.NdJ("change",function(e){const i=a.CHM(t).$implicit,n=a.oxw();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),a.qZA(),a.qZA()}if(2&t){const t=e.$implicit,i=a.oxw();a.xp6(1),a.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function x(t,e){1&t&&(a.TgZ(0,"th",23),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.ID")))}function R(t,e){if(1&t&&(a.TgZ(0,"td",24),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(t.facility.id)}}function O(t,e){1&t&&a._UZ(0,"th",25)}function P(t,e){if(1&t&&(a.TgZ(0,"td",26),a._UZ(1,"perun-web-apps-recently-viewed-icon",27),a.qZA()),2&t){const t=e.$implicit,i=a.oxw();a.xp6(1),a.Q6J("id",t.facility.id)("recentIds",i.recentIds)}}function D(t,e){1&t&&(a.TgZ(0,"th",23),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.NAME")))}function M(t,e){if(1&t&&(a.TgZ(0,"td",26),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(t.facility.name)}}function L(t,e){1&t&&(a.TgZ(0,"th",25),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESCRIPTION")))}function N(t,e){if(1&t&&(a.TgZ(0,"td",26),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(t.facility.description)}}function z(t,e){1&t&&(a.TgZ(0,"th",25),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.TECHNICAL_OWNERS")))}function Z(t,e){if(1&t&&(a.TgZ(0,"td",26),a._uU(1),a.ALo(2,"technicalOwners"),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(a.lcZ(2,1,t.owners))}}function B(t,e){1&t&&(a.TgZ(0,"th",25),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESTINATIONS")))}function q(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"td",26),a.TgZ(1,"perun-web-apps-object-list-values",28),a.NdJ("mouseenter",function(){return a.CHM(t),a.oxw().disableRouting=!0})("mouseleave",function(){return a.CHM(t),a.oxw().disableRouting=!1}),a.ALo(2,"filterUniqueObjects"),a.qZA(),a.qZA()}if(2&t){const t=e.$implicit,i=a.oxw();a.xp6(1),a.Q6J("objects",a.Dn7(2,2,t.destinations,i.filterValue,"destination"))("paramName","destination")}}function F(t,e){1&t&&(a.TgZ(0,"th",25),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.HOSTS")))}function U(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"td",26),a.TgZ(1,"perun-web-apps-object-list-values",28),a.NdJ("mouseenter",function(){return a.CHM(t),a.oxw().disableRouting=!0})("mouseleave",function(){return a.CHM(t),a.oxw().disableRouting=!1}),a.ALo(2,"filterUniqueObjects"),a.qZA(),a.qZA()}if(2&t){const t=e.$implicit,i=a.oxw();a.xp6(1),a.Q6J("objects",a.Dn7(2,2,t.hosts,i.filterValue,"hostname"))("paramName","hostname")}}function H(t,e){1&t&&a._UZ(0,"tr",29)}const G=function(t){return["/facilities",t]},j=function(){return[]};function Y(t,e){if(1&t&&a._UZ(0,"tr",30),2&t){const t=e.$implicit,i=a.oxw();a.Q6J("perunWebAppsMiddleClickRouterLink",a.VKq(2,G,t.facility.id))("routerLink",i.disableRouting?a.DdM(4,j):a.VKq(5,G,t.facility.id))}}function K(t,e){1&t&&(a.TgZ(0,"app-alert",31),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function V(t,e){1&t&&(a.TgZ(0,"app-alert",31),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FACILITIES"),"\n"))}let $=(()=>{class t{constructor(t){this.authResolver=t,this.displayedColumns=["select","id","recent","name","description","technicalOwners","destinations","hosts"],this.pageSizeOptions=o.f7}set matSort(t){this.sort=t}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.setDataSource()}getDataForColumn(t,e,i){switch(e){case"id":return t.facility.id.toString();case"name":return t.facility.name;case"description":return t.facility.description;case"technicalOwners":return(0,o.te)(t.owners);case"recent":return i.recentIds&&i.recentIds.indexOf(t.facility.id)>-1?"#".repeat(i.recentIds.indexOf(t.facility.id)):t.name;case"destinations":return t.destinations.map(t=>t.destination).join(" ; ");case"hosts":return t.hosts.map(t=>t.hostname).join(" ; ");default:return t[e]}}exportData(t){(0,o.O6)((0,o.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource||(this.dataSource=new s.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(t,e)=>(0,o.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,o.pR)(t,e,this.getDataForColumn,this)),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(t=>this.selection.select(t))}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.facility.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(r.x4))},t.\u0275cmp=a.Xpm({type:t,selectors:[["perun-web-apps-facilities-list"]],viewQuery:function(t,e){if(1&t&&(a.Gf(n.YE,7),a.Gf(o.l9,7)),2&t){let t;a.iGM(t=a.CRH())&&(e.matSort=t.first),a.iGM(t=a.CRH())&&(e.child=t.first)}},inputs:{facilities:"facilities",recentIds:"recentIds",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",selection:"selection",pageSizeOptions:"pageSizeOptions"},features:[a.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,"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(t,e){1&t&&(a.TgZ(0,"div",0),a.TgZ(1,"perun-web-apps-table-wrapper",1),a.NdJ("exportData",function(t){return e.exportData(t)}),a.TgZ(2,"table",2),a.ynx(3,3),a.YNc(4,k,1,0,"th",4),a.YNc(5,I,2,2,"td",5),a.BQk(),a.ynx(6,6),a.YNc(7,x,3,3,"th",7),a.YNc(8,R,2,1,"td",8),a.BQk(),a.ynx(9,9),a.YNc(10,O,1,0,"th",10),a.YNc(11,P,2,2,"td",11),a.BQk(),a.ynx(12,12),a.YNc(13,D,3,3,"th",7),a.YNc(14,M,2,1,"td",11),a.BQk(),a.ynx(15,13),a.YNc(16,L,3,3,"th",10),a.YNc(17,N,2,1,"td",11),a.BQk(),a.ynx(18,14),a.YNc(19,z,3,3,"th",10),a.YNc(20,Z,3,3,"td",11),a.BQk(),a.ynx(21,15),a.YNc(22,B,3,3,"th",10),a.YNc(23,q,3,6,"td",11),a.BQk(),a.ynx(24,16),a.YNc(25,F,3,3,"th",10),a.YNc(26,U,3,6,"td",11),a.BQk(),a.YNc(27,H,1,0,"tr",17),a.YNc(28,Y,1,7,"tr",18),a.qZA(),a.qZA(),a.qZA(),a.YNc(29,K,3,3,"app-alert",19),a.YNc(30,V,3,3,"app-alert",19)),2&t&&(a.Q6J("hidden",!e.dataSource||0===e.dataSource.filteredData.length||0===e.facilities.length),a.xp6(1),a.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),a.xp6(1),a.Q6J("dataSource",e.dataSource),a.xp6(25),a.Q6J("matHeaderRowDef",e.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",e.displayedColumns),a.xp6(1),a.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.facilities.length),a.xp6(1),a.Q6J("ngIf",0===e.facilities.length))},directives:[c.l,s.BZ,n.YE,s.w1,s.fO,s.Dz,s.as,s.nj,l.O5,s.ge,s.ev,u.oG,n.nU,h.W,A,s.XQ,s.Gk,y.YH,v.rH,T.w],pipes:[C.X$,E.J,S],styles:["tr[_ngcontent-%COMP%]{cursor:pointer}"]}),t})()},54930:function(t,e,i){"use strict";i.d(e,{i:function(){return T}});var n=i(31572),s=i(68416),o=i(61511),r=i(15980),a=i(81391),c=i(36922),l=i(43691),u=i(8055),h=i(48160),d=i(44385),p=i(52984),g=i(51392);function f(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"span",5),n.ALo(1,"translate"),n.ALo(2,"groupSyncToolTip"),n.TgZ(3,"button",6),n.NdJ("click",function(){return n.CHM(t),n.oxw(2).onSyncDetail()}),n.ALo(4,"groupSyncIcon"),n.TgZ(5,"mat-icon"),n.ALo(6,"groupSyncIconColor"),n._uU(7),n.ALo(8,"groupSyncIcon"),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=n.oxw(2);n.Q6J("matTooltipPosition","above")("matTooltip",n.lcZ(1,7,n.lcZ(2,9,t.group))),n.xp6(3),n.Q6J("disabled","sync_disabled"===n.lcZ(4,11,t.group)),n.xp6(2),n.Tol(n.lcZ(6,13,t.group)),n.xp6(2),n.hij(" ",n.lcZ(8,15,t.group)," ")}}function m(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"span",5),n.ALo(1,"translate"),n.TgZ(2,"button",6),n.NdJ("click",function(){return n.CHM(t),n.oxw(2).onMoveGroup()}),n.TgZ(3,"mat-icon"),n._uU(4,"arrow_right_alt"),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=n.oxw(2);n.s9C("matTooltip",n.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE")),n.Q6J("matTooltipPosition","above"),n.xp6(2),n.Q6J("disabled",t.disabled)}}function b(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"span",5),n.ALo(1,"translate"),n.TgZ(2,"button",6),n.NdJ("click",function(){return n.CHM(t),n.oxw(2).onChangeNameDescription()}),n.TgZ(3,"mat-icon"),n._uU(4,"text_format"),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=n.oxw(2);n.s9C("matTooltip",n.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME")),n.Q6J("matTooltipPosition","above"),n.xp6(2),n.Q6J("disabled",t.disabled)}}function _(t,e){if(1&t&&(n.TgZ(0,"div",2),n.TgZ(1,"button",3),n.ALo(2,"translate"),n.TgZ(3,"mat-icon"),n._uU(4," file_copy "),n.qZA(),n.qZA(),n.YNc(5,f,9,17,"span",4),n.YNc(6,m,5,5,"span",4),n.YNc(7,b,5,5,"span",4),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.s9C("matTooltip",n.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),n.Q6J("cdkCopyToClipboard",t.group.name)("matTooltipPosition","above"),n.xp6(4),n.Q6J("ngIf",t.syncAuth),n.xp6(1),n.Q6J("ngIf",t.moveAuth),n.xp6(1),n.Q6J("ngIf",t.editAuth)}}function w(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",11),n.NdJ("click",function(){return n.CHM(t),n.oxw(2).onSyncDetail()}),n.ALo(1,"groupSyncIcon"),n.TgZ(2,"mat-icon"),n.ALo(3,"groupSyncIconColor"),n._uU(4),n.ALo(5,"groupSyncIcon"),n.qZA(),n.TgZ(6,"span"),n._uU(7),n.ALo(8,"translate"),n.ALo(9,"groupSyncToolTip"),n.qZA(),n.qZA()}if(2&t){const t=n.oxw(2);n.Q6J("disabled","sync_disabled"===n.lcZ(1,6,t.group)),n.xp6(2),n.Tol(n.lcZ(3,8,t.group)),n.xp6(2),n.hij(" ",n.lcZ(5,10,t.group)," "),n.xp6(3),n.Oqu(n.lcZ(8,12,n.lcZ(9,14,t.group)))}}function A(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",11),n.NdJ("click",function(){return n.CHM(t),n.oxw(2).onMoveGroup()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_right_alt"),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.qZA()}if(2&t){const t=n.oxw(2);n.Q6J("disabled",t.disabled),n.xp6(4),n.Oqu(n.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE"))}}function y(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",11),n.NdJ("click",function(){return n.CHM(t),n.oxw(2).onChangeNameDescription()}),n.TgZ(1,"mat-icon"),n._uU(2,"text_format"),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.qZA()}if(2&t){const t=n.oxw(2);n.Q6J("disabled",t.disabled),n.xp6(4),n.Oqu(n.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME"))}}function v(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"button",7),n.TgZ(2,"mat-icon"),n._uU(3,"more_vert"),n.qZA(),n.qZA(),n.TgZ(4,"mat-menu",null,8),n.TgZ(6,"button",9),n.TgZ(7,"mat-icon"),n._uU(8," file_copy "),n.qZA(),n.TgZ(9,"span"),n._uU(10),n.ALo(11,"translate"),n.qZA(),n.qZA(),n.YNc(12,w,10,16,"button",10),n.YNc(13,A,6,4,"button",10),n.YNc(14,y,6,4,"button",10),n.qZA(),n.qZA()),2&t){const t=n.MAs(5),e=n.oxw();n.xp6(1),n.Q6J("mat-menu-trigger-for",t),n.xp6(5),n.Q6J("cdkCopyToClipboard",e.group.name),n.xp6(4),n.Oqu(n.lcZ(11,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),n.xp6(2),n.Q6J("ngIf",e.syncAuth),n.xp6(1),n.Q6J("ngIf",e.moveAuth),n.xp6(1),n.Q6J("ngIf",e.editAuth)}}let T=(()=>{class t{constructor(t){this.authResolver=t,this.disabled=!1,this.moveGroup=new n.vpe,this.syncGroup=new n.vpe,this.changeNameDescription=new n.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 t.\u0275fac=function(e){return new(e||t)(n.Y36(s.x4))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.YNc(0,_,8,8,"div",0),n.YNc(1,v,15,8,"div",1)),2&t&&(n.Q6J("ngIf",e.displayButtons),n.xp6(1),n.Q6J("ngIf",!e.displayButtons))},directives:[o.O5,r.lW,a.i3,c.gM,l.Hw,u.p6,u.VK,u.OP],pipes:[h.X$,d.r,p.J,g.F],styles:[".buttons-container[_ngcontent-%COMP%]{white-space:nowrap;width:160px}.horiz_right[_ngcontent-%COMP%]{float:right}"]}),t})()},46837:function(t,e,i){"use strict";i.d(e,{x:function(){return f}});var n=i(31572),s=i(84140),o=i(6527),r=i(84608),a=i(61511),c=i(36922),l=i(43691),u=i(48160);function h(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"span",3),n.NdJ("click",function(){return n.CHM(t),n.oxw().changeStatus()}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",4),n._uU(3,"check_circle_outline"),n.qZA(),n.qZA()}2&t&&n.s9C("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE"))}function d(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"span",3),n.NdJ("click",function(){return n.CHM(t),n.oxw().changeStatus()}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",5),n._uU(3,"block"),n.qZA(),n.qZA()}2&t&&n.s9C("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE"))}function p(t,e){if(1&t&&(n.TgZ(0,"span",6),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",7),n._uU(3,"report"),n.qZA(),n.qZA()),2&t){const t=n.oxw();n.hYB("matTooltip","",n.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",t.failureCause,"")}}function g(t,e){1&t&&(n.TgZ(0,"span",6),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",8),n._uU(3,"autorenew"),n.qZA(),n.qZA()),2&t&&n.s9C("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}let f=(()=>{class t{constructor(t){this.dialog=t,this.status="",this.statusChange=new n.vpe}changeStatus(){const t=(0,s.kZ)();t.width="500px",t.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(o.Qu,t).afterClosed().subscribe(t=>{t&&this.statusChange.emit()})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(r.uw))},t.\u0275cmp=n.Xpm({type:t,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"],["matTooltipPosition","above",3,"matTooltip"],[1,"red"],[1,"black"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.YNc(1,h,4,3,"span",1),n.YNc(2,d,4,3,"span",1),n.YNc(3,p,4,4,"span",2),n.YNc(4,g,4,3,"span",2),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf","ACTIVE"===e.status),n.xp6(1),n.Q6J("ngIf","INACTIVE"===e.status),n.xp6(1),n.Q6J("ngIf","FAILED"===e.status),n.xp6(1),n.Q6J("ngIf","PROCESSING"===e.status))},directives:[a.O5,c.gM,l.Hw],pipes:[u.X$],styles:[""]}),t})()},37665:function(t,e,i){"use strict";i.d(e,{h:function(){return a}});var n=i(31572),s=i(84140),o=i(44973),r=i(48160);let a=(()=>{class t{constructor(){this.groupSelected=new n.vpe,this.disableAutoSelect=!1,this.displayStatus=!1,this.nameFunction=t=>t.name}ngOnInit(){this.groups=this.groups.sort(s.aC)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,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(t,e){if(1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.groupSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t){let t;n.Q6J("entities",e.groups)("entity",null!==(t=e.firstSelectedGroup)&&void 0!==t?t:null)("displayStatus",e.displayStatus)("disableAutoSelect",e.disableAutoSelect)("mainTextFunction",e.nameFunction)("searchFunction",e.nameFunction)("selectPlaceholder",n.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.SELECT_GROUP"))("findPlaceholder",n.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.FIND_GROUP"))("noEntriesText",n.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.NO_GROUP_FOUND"))}},directives:[o.i],pipes:[r.X$],styles:[""]}),t})()},78364:function(t,e,i){"use strict";i.d(e,{W:function(){return rt}});var n=i(31572),s=i(58623),o=i(67033),r=i(4230),a=i(65249),c=i(84140),l=i(6527),u=i(68416),h=i(61511),d=i(84608),p=i(82819),g=i(29236),f=i(36922),m=i(72953),b=i(43691),_=i(46837),w=i(15980),A=i(54930),y=i(84534),v=i(57629),T=i(39571),C=i(48160),E=i(74842),S=i(37043),k=i(58506);let I=(()=>{class t{transform(t){const e=t.attributes.find(t=>"groupMembershipExpiration"===t.baseFriendlyName);return e&&e.value?e.value:"Never"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"groupExpiration",type:t,pure:!0}),t})();function x(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-checkbox",26),n.NdJ("change",function(e){n.CHM(t);const i=n.oxw(2);return e?i.masterToggle():null}),n.qZA()}if(2&t){const t=n.oxw(2);n.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function R(t,e){if(1&t&&(n.TgZ(0,"th",24),n.YNc(1,x,1,3,"mat-checkbox",25),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.Q6J("ngIf",!t.disableHeadCheckbox)}}function O(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",27),n.TgZ(1,"span",28),n.ALo(2,"translate"),n.TgZ(3,"mat-checkbox",29),n.NdJ("change",function(e){const i=n.CHM(t).$implicit,s=n.oxw();return e?s.itemSelectionToggle(i):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.s9C("matTooltip",n.lcZ(2,7,i.getCheckboxTooltipMessage(t))),n.Q6J("matTooltipPosition","above")("matTooltipDisabled",!i.disableSelect(t)),n.xp6(2),n.Q2q("data-cy","",t.name,"-checkbox"),n.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))("disabled","members"===t.name&&i.disableMembers||i.disableSelect(t))}}function P(t,e){1&t&&(n.TgZ(0,"th",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_ID")))}function D(t,e){if(1&t&&(n.TgZ(0,"td",31),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.id)}}function M(t,e){1&t&&n._UZ(0,"th",32)}function L(t,e){if(1&t&&(n.TgZ(0,"td",33),n._UZ(1,"perun-web-apps-recently-viewed-icon",34),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("recentIds",i.recentIds)("id",t.id)}}function N(t,e){1&t&&(n.TgZ(0,"th",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_VO_NAME")))}function z(t,e){if(1&t&&(n.TgZ(0,"td",31),n._uU(1),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Oqu(i.voNames.get(t.voId))}}function Z(t,e){1&t&&n._UZ(0,"th",32)}function B(t,e){1&t&&(n.TgZ(0,"mat-icon",36),n.ALo(1,"translate"),n._uU(2,"account_tree"),n.qZA()),2&t&&n.Q6J("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.INDIRECT_GROUP"))}function q(t,e){1&t&&(n.TgZ(0,"mat-icon",36),n.ALo(1,"translate"),n._uU(2,"alt_route"),n.qZA()),2&t&&n.Q6J("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.MULTIPLE_ASSIGNMENTS"))}function F(t,e){if(1&t&&(n.TgZ(0,"td",33),n.YNc(1,B,3,3,"mat-icon",35),n.YNc(2,q,3,3,"mat-icon",35),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf",t.sourceGroupId&&!t.moreTypesOfAssignment),n.xp6(1),n.Q6J("ngIf",t.moreTypesOfAssignment)}}function U(t,e){1&t&&(n.TgZ(0,"th",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_NAME")))}function H(t,e){if(1&t&&(n.TgZ(0,"td",33),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.hij(" ",t.name," ")}}function G(t,e){1&t&&(n.TgZ(0,"th",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")))}function j(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",37),n.TgZ(1,"perun-web-apps-group-resource-status",38),n.NdJ("mouseenter",function(){return n.CHM(t),n.oxw().disabledRouting=!0})("mouseleave",function(){n.CHM(t);const e=n.oxw();return e.disabledRouting=e.disableRouting})("statusChange",function(){return n.CHM(t),n.oxw().refreshTable.emit()}),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("theme","resource-theme")("groupId",t.id)("resourceId",i.resourceId)("failureCause",t.failureCause)("status",t.status)}}function Y(t,e){1&t&&(n.TgZ(0,"th",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")))}function K(t,e){if(1&t&&(n.TgZ(0,"td",33),n.TgZ(1,"i",39),n.ALo(2,"memberStatusIconColor"),n.TgZ(3,"span"),n._uU(4),n.ALo(5,"memberStatusIcon"),n.qZA(),n.qZA(),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Gre("material-icons ",n.lcZ(2,5,i.getStatusAttribute(t)),""),n.s9C("matTooltip",i.getStatusAttribute(t)),n.xp6(3),n.hij(" ",n.lcZ(5,7,i.getStatusAttribute(t))," ")}}function V(t,e){1&t&&(n.TgZ(0,"th",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_DESCRIPTION")))}function $(t,e){if(1&t&&(n.TgZ(0,"td",37),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.description)}}function J(t,e){1&t&&(n.TgZ(0,"th",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_EXPIRATION")))}function Q(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",41),n.NdJ("click",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw().changeExpiration(e)})("mouseenter",function(){return n.CHM(t),n.oxw(2).disabledRouting=!0})("mouseleave",function(){n.CHM(t);const e=n.oxw(2);return e.disabledRouting=e.disableRouting}),n.TgZ(1,"mat-icon"),n._uU(2,"edit"),n.qZA(),n.qZA()}}function W(t,e){if(1&t&&(n.TgZ(0,"td",37),n._uU(1),n.ALo(2,"parseDate"),n.ALo(3,"groupExpiration"),n.YNc(4,Q,3,0,"button",40),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.hij(" ",n.lcZ(2,2,n.lcZ(3,4,t))," "),n.xp6(3),n.Q6J("ngIf",i.canManageGroup(t))}}function X(t,e){1&t&&n._UZ(0,"th",32)}function tt(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",33),n.TgZ(1,"perun-web-apps-group-menu",42),n.NdJ("mouseenter",function(){return n.CHM(t),n.oxw().disabledRouting=!0})("mouseleave",function(){n.CHM(t);const e=n.oxw();return e.disabledRouting=e.disableRouting})("moveGroup",function(){const e=n.CHM(t).$implicit;return n.oxw().onMoveGroup(e)})("changeNameDescription",function(){const e=n.CHM(t).$implicit;return n.oxw().onChangeNameDescription(e)})("syncGroup",function(){const e=n.CHM(t).$implicit;return n.oxw().onSyncDetail(e)}),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("disabled","members"===t.name)("displayButtons",i.displayButtons)("group",t)}}function et(t,e){1&t&&n._UZ(0,"tr",43)}const it=function(t,e){return["/organizations",t,"groups",e]};function nt(t,e){if(1&t&&n._UZ(0,"tr",44),2&t){const t=e.$implicit,i=n.oxw();n.ekj("cursor-pointer",!i.disableRouting&&!i.groupsToDisableRouting.has(t.id))("disable-outline",i.disabledRouting||i.groupsToDisableRouting.has(t.id)),n.Q6J("perunWebAppsMiddleClickRouterLink",i.disabledRouting||i.groupsToDisableRouting.has(t.id)?null:n.WLB(6,it,t.voId,t.id))("routerLink",i.disabledRouting||i.groupsToDisableRouting.has(t.id)?null:n.WLB(9,it,t.voId,t.id))}}function st(t,e){1&t&&(n.TgZ(0,"app-alert",45),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_GROUPS"),"\n"))}function ot(t,e){1&t&&(n.TgZ(0,"app-alert",45),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let rt=(()=>{class t{constructor(t,e,i,s,o){this.dialog=t,this.authResolver=e,this.voService=i,this.tableCheckbox=s,this.changeDetector=o,this.displayButtons=window.innerWidth>800,this.theme="group-theme",this.moveGroup=new n.vpe,this.groups=[],this.selection=new r.Ov(!0,[]),this.hasMembersGroup=!1,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=c.f7,this.recentIds=[],this.resourceId=null,this.refreshTable=new n.vpe,this.disabledRouting=!1,this.voIds=new Set,this.voNames=new Map,this.canBeSelected=t=>!("members"===t.name&&this.disableMembers||this.disableSelect(t))}set matSort(t){this.sort=t}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 t of this.groups)if("members"===t.name)return!0;return!1}getDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return i.voNames.get(t.voId);case"name":return t.name;case"description":return t.description;case"expiration":{const e=(0,c.x2)(t);return(0,c.sG)(e)}case"recent":return"";case"status":return t.status;case"uuid":return t.uuid;default:return t[e]}}getSortDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return i.voNames.get(t.voId);case"name":return t.name;case"description":return t.description;case"expiration":{const e=(0,c.x2)(t);return e&&"never"!==e.toLowerCase()?(0,h.p6)(e,"yyyy.MM.dd","en"):e}case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;case"status":return t.status;default:return t[e]}}exportData(t){(0,c.O6)((0,c.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource||(this.dataSource=new o.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(t,e)=>(0,c.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this,!0),this.dataSource.sortData=(t,e)=>(0,c.pR)(t,e,this.getSortDataForColumn,this)),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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}disableSelect(t){return this.disableGroups&&(this.groupsToDisableCheckbox.has(t.id)||this.isSynchronized(t))}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(t=>"id"!==t),this.changeDetector.detectChanges())}onMoveGroup(t){this.moveGroup.emit(t)}onSyncDetail(t){const e=(0,c.kZ)();e.data={groupId:t.id,theme:this.theme},this.dialog.open(l.Bp,e)}onChangeNameDescription(t){const e=(0,c.kZ)();e.data={theme:"group-theme",group:t,dialogType:l.Eg.GROUP},this.dialog.open(l.rd,e).afterClosed().subscribe(t=>{t&&this.refreshTable.emit()})}setAuth(){return"group-subgroups"===this.authType?this.selection.selected.reduce((t,e)=>t&&this.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[e]),!0):"group-relations"===this.authType?this.selection.selected.reduce((t,e)=>t&&this.authResolver.isAuthorized("removeGroupUnion_Group_Group_policy",[this.parentGroup,e]),!0):"vo-groups"===this.authType?this.selection.selected.reduce((t,e)=>t&&this.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[this.vo,e]),!0):"member-groups"===this.authType?this.selection.selected.reduce((t,e)=>t&&this.authResolver.isAuthorized("removeMember_Member_List_policy",[e]),!0):"application-form-manage-groups"===this.authType?this.selection.selected.reduce((t,e)=>t&&this.authResolver.isAuthorized("deleteGroupsFromAutoRegistration_List_policy",[this.vo,e]),!0):void 0}itemSelectionToggle(t){this.selection.toggle(t),this.removeAuth=this.setAuth()}isSynchronized(t){return!!t.attributes&&t.attributes.some(t=>"synchronizationEnabled"===t.friendlyName&&null!==t.value&&"true"===t.value.toString())}getCheckboxTooltipMessage(t){return"create-relation-dialog"===this.authType?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.CREATE_RELATION_AUTH_TOOLTIP":this.isSynchronized(t)?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.SYNCHRONIZED_GROUP":t.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(t=>{this.voIds.has(t.voId)||this.voIds.add(t.voId)}),this.voIds.size>0&&this.voService.getVosByIds([...this.voIds]).subscribe(t=>{t.forEach(t=>{this.voNames.set(t.id,t.name)})}))}changeExpiration(t){const e=t.attributes.find(t=>"groupMembershipExpiration"===t.baseFriendlyName),i=(0,c.kZ)();i.width="400px",i.data={memberId:this.memberId,groupId:t.id,expirationAttr:e,mode:"group",status:this.memberGroupStatus},this.dialog.open(l.u3,i).afterClosed().subscribe(t=>{t&&this.refreshTable.emit()})}canManageGroup(t){return this.authResolver.isThisGroupAdmin(t.id)||this.authResolver.isThisVoAdmin(t.voId)}getStatusAttribute(t){return t.attributes.find(t=>"groupStatus"===t.baseFriendlyName).value.toString()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(d.uw),n.Y36(u.x4),n.Y36(a.YF),n.Y36(u.UA),n.Y36(n.sBO))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-groups-list"]],viewQuery:function(t,e){if(1&t&&(n.Gf(s.YE,7),n.Gf(c.l9,7)),2&t){let t;n.iGM(t=n.CRH())&&(e.matSort=t.first),n.iGM(t=n.CRH())&&(e.child=t.first)}},hostBindings:function(t,e){1&t&&n.NdJ("resize",function(t){return e.shouldHideButtons(t)},!1,n.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"},outputs:{moveGroup:"moveGroup",refreshTable:"refreshTable"},features:[n.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","routerLink",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","routerLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,R,2,1,"th",4),n.YNc(5,O,4,9,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,P,3,3,"th",7),n.YNc(8,D,2,1,"td",8),n.BQk(),n.ynx(9,9),n.YNc(10,M,1,0,"th",10),n.YNc(11,L,2,2,"td",11),n.BQk(),n.ynx(12,12),n.YNc(13,N,3,3,"th",7),n.YNc(14,z,2,1,"td",8),n.BQk(),n.ynx(15,13),n.YNc(16,Z,1,0,"th",10),n.YNc(17,F,3,2,"td",11),n.BQk(),n.ynx(18,14),n.YNc(19,U,3,3,"th",7),n.YNc(20,H,2,1,"td",11),n.BQk(),n.ynx(21,15),n.YNc(22,G,3,3,"th",7),n.YNc(23,j,2,5,"td",16),n.BQk(),n.ynx(24,17),n.YNc(25,Y,3,3,"th",7),n.YNc(26,K,6,9,"td",11),n.BQk(),n.ynx(27,18),n.YNc(28,V,3,3,"th",7),n.YNc(29,$,2,1,"td",16),n.BQk(),n.ynx(30,19),n.YNc(31,J,3,3,"th",7),n.YNc(32,W,5,6,"td",16),n.BQk(),n.ynx(33,20),n.YNc(34,X,1,0,"th",10),n.YNc(35,tt,2,3,"td",11),n.BQk(),n.YNc(36,et,1,0,"tr",21),n.YNc(37,nt,1,12,"tr",22),n.qZA(),n.qZA(),n.qZA(),n.YNc(38,st,3,3,"app-alert",23),n.YNc(39,ot,3,3,"app-alert",23)),2&t&&(n.Q6J("hidden",0===e.groups.length||!e.dataSource||0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("tableId",e.tableId),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(34),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.groups.length),n.xp6(1),n.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.groups.length))},directives:[p.l,o.BZ,s.YE,o.w1,o.fO,o.Dz,o.as,o.nj,h.O5,o.ge,g.oG,o.ev,f.gM,s.nU,m.W,b.Hw,_.x,w.lW,A.i,o.XQ,o.Gk,y.YH,v.rH,T.w],pipes:[C.X$,E.u,S.f,k.M,I],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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t})()},11441:function(t,e,i){"use strict";i.d(e,{I:function(){return O}});var n=i(31572),s=i(91010),o=i(71709),r=i(4230),a=i(14732),c=i(84140),l=i(6527),u=i(68416),h=i(84608),d=i(61511),p=i(4253),g=i(57629),f=i(15980),m=i(36922),b=i(54930),_=i(29236),w=i(43691),A=i(39571),y=i(48160);const v=["scrollViewport"];function T(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-checkbox",19),n.NdJ("change",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw(2).itemSelectionToggle(e)}),n.qZA()}if(2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.Q2q("data-cy","",t.name,"-checkbox"),n.Q6J("disabled","members"===t.fullName)("checked",e.selection.isSelected(t))("indeterminate",e.descendantsPartiallySelected(t))}}function C(t,e){if(1&t&&(n.TgZ(0,"mat-icon",20),n._uU(1),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(1),n.hij(" ",e.treeControl.isExpanded(t)?"expand_more":"chevron_right"," ")}}function E(t,e){if(1&t&&(n.TgZ(0,"span",21),n._uU(1),n.qZA()),2&t){const t=n.oxw().$implicit;n.xp6(1),n.hij(" #",t.id," ")}}const S=function(t,e){return["/organizations",t,"groups",e]};function k(t,e){if(1&t){const t=n.EpF();n.ynx(0),n.TgZ(1,"div",6),n.YNc(2,T,1,4,"mat-checkbox",7),n.TgZ(3,"a",8),n.TgZ(4,"button",9),n.NdJ("mouseenter",function(){return n.CHM(t),n.oxw(2).disableRouting=!0})("mouseleave",function(){return n.CHM(t),n.oxw(2).disableRouting=!1})("click",function(){const e=n.CHM(t).$implicit;return n.oxw(2).treeControl.toggle(e)}),n.YNc(5,C,2,1,"mat-icon",10),n.qZA(),n.TgZ(6,"div",11),n.TgZ(7,"span",12),n._uU(8),n.qZA(),n.YNc(9,E,2,1,"span",13),n.qZA(),n.TgZ(10,"div",14,15),n.TgZ(12,"span",16),n._uU(13),n.qZA(),n.qZA(),n.qZA(),n.TgZ(14,"div",17),n.TgZ(15,"perun-web-apps-group-menu",18),n.NdJ("moveGroup",function(){const e=n.CHM(t).$implicit;return n.oxw(2).onMoveGroup(e)})("syncGroup",function(){const e=n.CHM(t).$implicit;return n.oxw(2).onSyncDetail(e)})("changeNameDescription",function(){const e=n.CHM(t).$implicit;return n.oxw(2).onChangeNameDescription(e)}),n.qZA(),n.qZA(),n.qZA(),n.BQk()}if(2&t){const t=e.$implicit,i=n.oxw(2);n.xp6(1),n.Udp("padding-left",24*t.level+"px"),n.xp6(1),n.Q6J("ngIf",!i.hideCheckbox),n.xp6(1),n.Q6J("routerLink",i.disableRouting?null:n.WLB(14,S,t.voId,t.id)),n.xp6(1),n.Q6J("disabled",!t.expandable),n.uIk("aria-label","toggle "+t.name),n.xp6(1),n.Q6J("ngIf",t.expandable),n.xp6(3),n.hij(" ",t.name," "),n.xp6(1),n.Q6J("ngIf",i.authResolver.isPerunAdminOrObserver()),n.xp6(3),n.s9C("matTooltip",t.description),n.xp6(1),n.hij(" ",t.description," "),n.xp6(2),n.Q6J("disabled","members"===t.fullName)("displayButtons",i.displayButtons)("group",t)}}const I=function(t){return{height:t}};function x(t,e){if(1&t&&(n.TgZ(0,"div",2),n.TgZ(1,"cdk-virtual-scroll-viewport",3,4),n.YNc(3,k,16,17,"ng-container",5),n.qZA(),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.Q6J("minBufferPx",240)("maxBufferPx",480)("ngStyle",n.VKq(4,I,t.getTreeViewHeight())),n.xp6(2),n.Q6J("cdkVirtualForOf",t.dataSource)}}function R(t,e){1&t&&(n.TgZ(0,"app-alert",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let O=(()=>{class t{constructor(t,e,i){this.cd=t,this.dialog=e,this.authResolver=i,this.transformer=(t,e)=>({expandable:!!t.children&&t.children.length>0,name:t.shortName,fullName:t.name,parentGroupId:t.parentGroupId,level:e,id:t.id,voId:t.voId,attributes:t.attributes,beanName:t.beanName,description:t.description}),this.displayButtons=window.innerWidth>600,this.theme="group-theme",this.moveGroup=new n.vpe,this.refreshTable=new n.vpe,this.expandAll=!1,this.disableRouting=!1,this.selection=new r.Ov(!0,[]),this.hideCheckbox=!1,this.treeControl=new o.C2(t=>t.level,t=>t.expandable),this.treeFlattener=new s.JZ(this.transformer,t=>t.level,t=>t.expandable,t=>t.children),this.dataSource=new s.kc(this.treeControl,this.treeFlattener),this.hasChild=(t,e)=>e.expandable,this.getLevel=t=>t.level}shouldHideButtons(){this.displayButtons=window.innerWidth>600}ngOnChanges(){if(this.expandAll){this.filteredGroups=this.groups.filter(t=>{var e,i;return(null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes(this.filterValue.toLowerCase()))||(null===(i=t.description)||void 0===i?void 0:i.toLowerCase().includes(this.filterValue.toLowerCase()))||t.id.toString().includes(this.filterValue.toLowerCase())||t.uuid.toLowerCase().includes(this.filterValue.toLowerCase())});for(const t of this.filteredGroups)t.parentGroupId&&(this.filteredGroups=this.filteredGroups.concat((0,c.oU)(t.parentGroupId,this.groups)))}else this.filteredGroups=this.groups;this.createGroupTrees(this.filteredGroups),this.expandAll&&this.treeControl.expandAll(),this.removeAuth=this.setRemoveAuth()}onSyncDetail(t){const e=(0,c.kZ)();e.data={groupId:t.id,theme:this.theme},this.dialog.open(l.Bp,e)}onChangeNameDescription(t){const e=(0,c.kZ)();e.data={theme:"group-theme",group:t,dialogType:l.Eg.GROUP},this.dialog.open(l.rd,e).afterClosed().subscribe(t=>{t&&this.refreshTable.emit()})}createGroupTrees(t){const e=new Map;for(const s of t)e.set(s.id,new a.m(s));const i=new Set;e.forEach((t,e,n)=>{const s=n.get(t.parentGroupId);void 0!==s&&(s.addChild(t),n.set(t.parentGroupId,s)),null!==t.parentGroupId&&void 0===s&&i.add(t.id)});const n=[];e.forEach(t=>{(null===t.parentGroupId||i.has(t.id))&&n.push(t)}),this.dataSource.data=n,this.cd.detectChanges()}getParentNode(t){const e=this.getLevel(t);if(e<1)return null;for(let i=this.treeControl.dataNodes.indexOf(t)-1;i>=0;i--){const t=this.treeControl.dataNodes[i];if(this.getLevel(t)this.selection.isSelected(t));e&&!i&&this.selection.deselect(t)}checkAllParentsSelection(t){let e=this.getParentNode(t);for(;e;)this.checkRootNodeSelection(e),e=this.getParentNode(e);this.removeAuth=this.setRemoveAuth()}descendantsPartiallySelected(t){return this.treeControl.getDescendants(t).some(t=>this.selection.isSelected(t))&&!this.selection.isSelected(t)}itemSelectionToggle(t){this.selection.toggle(t);const e=this.treeControl.getDescendants(t);this.selection.isSelected(t)?this.selection.select(...e):this.selection.deselect(...e),e.every(t=>this.selection.isSelected(t)),this.checkAllParentsSelection(t)}setRemoveAuth(){return this.selection.selected.reduce(void 0!==this.vo?(t,e)=>t&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[this.vo,e]):(t,e)=>t&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[e]),!0)}onMoveGroup(t){this.moveGroup.emit(t)}getTreeViewHeight(){let t=0;this.scrollViewport&&(t=this.scrollViewport.getDataLength());let e=48*t;return e>672&&(e=696),this.scrollViewport&&this.scrollViewport.checkViewportSize(),e+"px"}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO),n.Y36(h.uw),n.Y36(u.x4))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-groups-tree"]],viewQuery:function(t,e){if(1&t&&n.Gf(v,5),2&t){let t;n.iGM(t=n.CRH())&&(e.scrollViewport=t.first)}},hostBindings:function(t,e){1&t&&n.NdJ("resize",function(t){return e.shouldHideButtons(t)},!1,n.Jf7)},inputs:{theme:"theme",groups:"groups",filterValue:"filterValue",expandAll:"expandAll",disableRouting:"disableRouting",selection:"selection",hideCheckbox:"hideCheckbox",vo:"vo"},outputs:{moveGroup:"moveGroup",refreshTable:"refreshTable"},features:[n.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(t,e){1&t&&(n.YNc(0,x,4,6,"div",0),n.YNc(1,R,3,3,"app-alert",1)),2&t&&(n.Q6J("ngIf",0!==e.filteredGroups.length),n.xp6(1),n.Q6J("ngIf",0===e.filteredGroups.length))},directives:[d.O5,p.N7,p.xd,d.PC,p.x0,g.yS,f.lW,m.gM,b.i,_.oG,w.Hw,A.w],pipes:[y.X$],styles:[".group-tree-node[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}.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:rgba(0,0,0,.05)}.text-format[_ngcontent-%COMP%]{text-decoration:none;color:#000;font-weight:400!important}"]}),t})()},66438:function(t,e,i){"use strict";i.d(e,{X:function(){return f}});var n=i(65249),s=i(68416),o=i(31572),r=i(48160),a=i(61511),c=i(8055),l=i(15980),u=i(43691),h=i(36922);const d=function(t){return{color:t}};function p(t,e){if(1&t&&(o.TgZ(0,"button",8),o.ALo(1,"translate"),o.TgZ(2,"mat-icon",4),o._uU(3," apps "),o.qZA(),o.qZA()),2&t){const t=o.oxw(),e=o.MAs(2);o.Q6J("matMenuTriggerFor",e)("matTooltip",o.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),o.xp6(2),o.Q6J("ngStyle",o.VKq(5,d,t.iconColor))}}function g(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",2),o.NdJ("click",function(){return o.CHM(t),o.oxw().onLogOut()}),o._uU(1),o.ALo(2,"translate"),o.qZA()}2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"NAV.LOGOUT")))}let f=(()=>{class t{constructor(t,e,i,n){this.authService=t,this.authzResolverService=e,this.notificator=i,this.translateService=n}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(s.e8),o.Y36(n.Ct),o.Y36(s.V6),o.Y36(r.sK))},t.\u0275cmp=o.Xpm({type:t,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:14,vars:15,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],[1,"d-none","d-lg-inline",3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"]],template:function(t,e){if(1&t&&(o.YNc(0,p,4,7,"button",0),o.TgZ(1,"mat-menu",null,1),o.TgZ(3,"button",2),o.NdJ("click",function(){return e.redirectToUrl()}),o.TgZ(4,"span"),o._uU(5),o.qZA(),o.qZA(),o.qZA(),o.TgZ(6,"button",3),o.TgZ(7,"mat-icon",4),o._uU(8," person "),o.qZA(),o.TgZ(9,"span",5),o._uU(10),o.qZA(),o.qZA(),o.TgZ(11,"mat-menu",null,6),o.YNc(13,g,3,3,"button",7),o.qZA()),2&t){const t=o.MAs(12);o.Q6J("ngIf",e.url),o.xp6(5),o.Oqu(e.label),o.xp6(1),o.Q6J("matMenuTriggerFor",t),o.xp6(1),o.Q6J("ngStyle",o.VKq(11,d,e.iconColor)),o.xp6(2),o.Q6J("ngStyle",o.VKq(13,d,e.textColor)),o.xp6(1),o.xDo(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," "),o.xp6(3),o.Q6J("ngIf",e.logoutEnabled)}},directives:[a.O5,c.VK,c.OP,l.lW,c.p6,u.Hw,a.PC,h.gM],pipes:[r.X$],styles:["@media (max-width:991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),t})()},19139:function(t,e,i){"use strict";i.d(e,{L:function(){return d}});var n=i(31572),s=i(16073),o=i(66283),r=i(61511),a=i(80340),c=i(84534),l=i(48160);function u(t,e){if(1&t&&(n._UZ(0,"input",3),n.ALo(1,"translate")),2&t){const t=n.oxw();n.s9C("placeholder",n.lcZ(1,2,t.placeholder)),n.Q6J("formControl",t.formControl)}}function h(t,e){if(1&t&&(n._UZ(0,"input",4),n.ALo(1,"translate")),2&t){const t=n.oxw();n.s9C("placeholder",n.lcZ(1,2,t.placeholder)),n.Q6J("formControl",t.formControl)}}let d=(()=>{class t{constructor(){this.filter=new n.vpe,this.autoFocus=!1,this.formControl=new s.NI}ngOnInit(){this.formControl.valueChanges.subscribe(t=>{let e=t.trim();e=e.toLowerCase(),this.filter.emit(e)})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,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","",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n.YNc(1,u,2,4,"input",1),n.YNc(2,h,2,4,"input",2),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf",e.autoFocus),n.xp6(1),n.Q6J("ngIf",!e.autoFocus))},directives:[o.KE,r.O5,a.Nt,s.Fj,c.hT,s.JJ,s.oH],pipes:[l.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:auto!important}"]}),t})()},91779:function(t,e,i){"use strict";i.d(e,{m:function(){return tt}});var n=i(58623),s=i(84140),o=i(6527),r=i(68416),a=i(31906),c=i(66599),l=i(31572),u=i(84608),h=i(60611),d=i(82819),p=i(61511),g=i(67033),f=i(67806),m=i(29236),b=i(43691),_=i(36922),w=i(84534),A=i(57629),y=i(39571),v=i(48160),T=i(22196),C=i(74842),E=i(91322),S=i(37043),k=i(99197),I=i(63720),x=i(1157);function R(t,e){1&t&&(l.TgZ(0,"div",22),l._UZ(1,"mat-spinner",23),l.qZA())}function O(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"th",24),l.TgZ(1,"mat-checkbox",25),l.NdJ("change",function(e){l.CHM(t);const i=l.oxw();return e?i.masterToggle():null}),l.qZA(),l.qZA()}if(2&t){const t=l.oxw();l.xp6(1),l.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function P(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"td",26),l.TgZ(1,"mat-checkbox",27),l.NdJ("change",function(e){const i=l.CHM(t).$implicit,n=l.oxw();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),l.ALo(2,"lowercase"),l.qZA(),l.qZA()}if(2&t){const t=e.$implicit,i=l.oxw();l.xp6(1),l.Q2q("data-cy","",l.lcZ(2,3,t.user.firstName),"-checkbox"),l.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function D(t,e){1&t&&(l.TgZ(0,"th",28),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"MEMBERS_LIST.ID")))}function M(t,e){if(1&t&&(l.TgZ(0,"td",29),l._uU(1),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.Oqu(t.id)}}function L(t,e){1&t&&l._UZ(0,"th",28)}function N(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"mat-icon",32),l.NdJ("click",function(e){l.CHM(t);const i=l.oxw().$implicit;return l.oxw().viewMemberGroupTree(e,i)}),l.ALo(1,"translate"),l._uU(2,"transfer_within_a_station"),l.qZA()}2&t&&l.Q6J("matTooltip",l.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function z(t,e){if(1&t&&(l.TgZ(0,"td",30),l.YNc(1,N,3,3,"mat-icon",31),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.Q6J("ngIf","DIRECT"!==t.membershipType)}}function Z(t,e){1&t&&(l.TgZ(0,"th",28),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"MEMBERS_LIST.NAME")))}function B(t,e){if(1&t&&(l.TgZ(0,"td",30),l._uU(1),l.ALo(2,"userFullName"),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.Oqu(l.lcZ(2,1,t.user))}}function q(t,e){1&t&&(l.TgZ(0,"th",33),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"MEMBERS_LIST.STATUS")))}function F(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"td",30),l.TgZ(1,"i",34),l.NdJ("click",function(e){const i=l.CHM(t).$implicit;return l.oxw().changeStatus(e,i)}),l.ALo(2,"memberStatusIconColor"),l.ALo(3,"memberStatusTooltip"),l.TgZ(4,"span"),l._uU(5),l.ALo(6,"memberStatusIcon"),l.qZA(),l.qZA(),l.qZA()}if(2&t){const t=e.$implicit;l.xp6(1),l.Gre("material-icons ",l.lcZ(2,5,t.status),""),l.s9C("matTooltip",l.xi3(3,7,t,!1)),l.xp6(4),l.hij(" ",l.lcZ(6,10,t.status)," ")}}function U(t,e){1&t&&(l.TgZ(0,"th",33),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")))}function H(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"td",30),l.TgZ(1,"i",34),l.NdJ("click",function(e){const i=l.CHM(t).$implicit,n=l.oxw();return n.changeStatus(e,i,n.groupId)}),l.ALo(2,"memberStatusIconColor"),l.ALo(3,"memberStatusTooltip"),l.TgZ(4,"span"),l._uU(5),l.ALo(6,"memberStatusIcon"),l.qZA(),l.qZA(),l.qZA()}if(2&t){const t=e.$implicit;l.xp6(1),l.Gre("material-icons ",l.lcZ(2,5,t.groupStatus),""),l.s9C("matTooltip",l.xi3(3,7,t,!0)),l.xp6(4),l.hij(" ",l.lcZ(6,10,t.groupStatus)," ")}}function G(t,e){1&t&&(l.TgZ(0,"th",33),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")))}function j(t,e){if(1&t&&(l.TgZ(0,"td",30),l._uU(1),l.ALo(2,"memberOrganization"),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.Oqu(l.lcZ(2,1,t))}}function Y(t,e){1&t&&(l.TgZ(0,"th",33),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"MEMBERS_LIST.EMAIL")))}function K(t,e){if(1&t&&(l.TgZ(0,"td",30),l._uU(1),l.ALo(2,"memberEmail"),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.Oqu(l.lcZ(2,1,t))}}function V(t,e){1&t&&(l.TgZ(0,"th",33),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function $(t,e){if(1&t&&(l.TgZ(0,"td",30),l._uU(1),l.ALo(2,"memberLogins"),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.Oqu(l.lcZ(2,1,t))}}function J(t,e){1&t&&l._UZ(0,"tr",35)}const Q=function(t,e){return["/organizations",t,"members",e]};function W(t,e){if(1&t&&l._UZ(0,"tr",36),2&t){const t=e.$implicit,i=l.oxw();l.ekj("cursor-pointer",i.dataSource.routeAuth)("italic_font","INDIRECT"===t.membershipType)("disable-outline",!i.dataSource.routeAuth),l.Q6J("perunWebAppsMiddleClickRouterLink",i.dataSource.routeAuth?l.WLB(8,Q,t.voId,t.id):null)("routerLink",i.dataSource.routeAuth?l.WLB(11,Q,t.voId,t.id):null)}}function X(t,e){1&t&&(l.TgZ(0,"app-alert",37),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}let tt=(()=>{class t{constructor(t,e,i,n,o){this.dialog=t,this.authResolver=e,this.tableCheckbox=i,this.tableConfigService=n,this.dynamicPaginatingService=o,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.selectedGroupStatuses=[],this.pageSizeOptions=s.f7}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,a.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,c.b)(()=>this.loadMembersPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new r.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(t=>this.selection.select(t))}isAllSelected(){return this.selection.selected.length===this.child.paginator.pageSize}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}changeStatus(t,e,i){t.stopPropagation();const n=(0,s.kZ)();n.width="500px",n.data={member:e,voId:this.voId,groupId:i};const r=i?e.groupStatus:e.status;this.dialog.open(o.pf,n).afterClosed().subscribe(t=>{if(t){const n=i?t.groupStatus:t.status;"VALID"===r&&("EXPIRED"===n||"DISABLED"===n)||"VALID"===n?(i?e.groupStatus=n:e.status=n,this.changeExpiration(e,i)):this.loadMembersPage()}})}changeExpiration(t,e){const i=t.memberAttributes.find(e?t=>"groupMembershipExpiration"===t.friendlyName:t=>"membershipExpiration"===t.friendlyName),n=(0,s.kZ)();let r;n.width="400px",n.data={voId:this.voId,groupId:e,memberId:t.id,expirationAttr:i,status:e?t.groupStatus:t.status,statusChanged:!0},r=this.dialog.open(e?o.u3:o.kZ,n),r.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(t){(0,s.O6)((0,s.Xn)(this.dataSource.getData(),this.displayedColumns,this.getExportDataForColumn,this),t)}getExportDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"fullName":return t.user?(0,s.bD)(t.user):"";case"status":return t.status;case"groupStatus":return t.groupStatus;case"organization":return(0,s.Gw)(t);case"email":return(0,s.g$)(t);case"logins":return(0,s.lt)(t);default:return""}}viewMemberGroupTree(t,e){t.stopPropagation();const i=(0,s.kZ)();i.width="800px",i.data={member:e,groupId:this.groupId},this.dialog.open(o.jd,i)}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(u.uw),l.Y36(r.x4),l.Y36(r.UA),l.Y36(h.dB),l.Y36(r.ly))},t.\u0275cmp=l.Xpm({type:t,selectors:[["perun-web-apps-members-dynamic-list"]],viewQuery:function(t,e){if(1&t&&(l.Gf(s.l9,7),l.Gf(n.YE,5)),2&t){let t;l.iGM(t=l.CRH())&&(e.child=t.first),l.iGM(t=l.CRH())&&(e.sort=t.first)}},inputs:{selection:"selection",displayedColumns:"displayedColumns",voId:"voId",groupId:"groupId",selectedGroupStatuses:"selectedGroupStatuses",attrNames:"attrNames",searchString:"searchString",selectedStatuses:"selectedStatuses",tableId:"tableId",updateTable:"updateTable"},features:[l.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","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(t,e){1&t&&(l.TgZ(0,"div",0),l.ALo(1,"async"),l.TgZ(2,"perun-web-apps-table-wrapper",1),l.NdJ("exportData",function(t){return e.exportData(t)}),l.YNc(3,R,2,0,"div",2),l.ALo(4,"async"),l.TgZ(5,"table",3),l.ynx(6,4),l.YNc(7,O,2,3,"th",5),l.YNc(8,P,3,5,"td",6),l.BQk(),l.ynx(9,7),l.YNc(10,D,3,3,"th",8),l.YNc(11,M,2,1,"td",9),l.BQk(),l.ynx(12,10),l.YNc(13,L,1,0,"th",8),l.YNc(14,z,2,1,"td",11),l.BQk(),l.ynx(15,12),l.YNc(16,Z,3,3,"th",8),l.YNc(17,B,3,3,"td",11),l.BQk(),l.ynx(18,13),l.YNc(19,q,3,3,"th",14),l.YNc(20,F,7,12,"td",11),l.BQk(),l.ynx(21,15),l.YNc(22,U,3,3,"th",14),l.YNc(23,H,7,12,"td",11),l.BQk(),l.ynx(24,16),l.YNc(25,G,3,3,"th",14),l.YNc(26,j,3,3,"td",11),l.BQk(),l.ynx(27,17),l.YNc(28,Y,3,3,"th",14),l.YNc(29,K,3,3,"td",11),l.BQk(),l.ynx(30,18),l.YNc(31,V,3,3,"th",14),l.YNc(32,$,3,3,"td",11),l.BQk(),l.YNc(33,J,1,0,"tr",19),l.YNc(34,W,1,14,"tr",20),l.qZA(),l.qZA(),l.qZA(),l.YNc(35,X,3,3,"app-alert",21),l.ALo(36,"async")),2&t&&(l.Q6J("hidden",0===e.dataSource.allObjectCount&&!1===l.lcZ(1,9,e.dataSource.loading$)),l.xp6(2),l.Q6J("tableId",e.tableId)("dataLength",e.dataSource.allObjectCount)("pageSizeOptions",e.pageSizeOptions),l.xp6(1),l.Q6J("ngIf",l.lcZ(4,11,e.dataSource.loading$)),l.xp6(2),l.Q6J("dataSource",e.dataSource),l.xp6(28),l.Q6J("matHeaderRowDef",e.displayedColumns),l.xp6(1),l.Q6J("matRowDefColumns",e.displayedColumns),l.xp6(1),l.Q6J("ngIf",0===e.dataSource.allObjectCount&&!1===l.lcZ(36,13,e.dataSource.loading$)))},directives:[d.l,p.O5,g.BZ,n.YE,g.w1,g.fO,g.Dz,g.as,g.nj,f.$g,g.ge,m.oG,g.ev,n.nU,b.Hw,_.gM,g.XQ,g.Gk,w.YH,A.rH,y.w],pipes:[p.Ov,p.i8,v.X$,T.d,C.u,E.i,S.f,k.M,I.D,x.p],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;top:0;left:0;bottom:56px;right:0;background:rgba(0,0,0,.15);z-index:1;display:flex;align-items:center;justify-content:center}.italic_font[_ngcontent-%COMP%]{font-style:italic}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})()},4252:function(t,e,i){"use strict";i.d(e,{O:function(){return tt}});var n=i(31572),s=i(58623),o=i(67033),r=i(4230),a=i(84140),c=i(6527),l=i(68416),u=i(84608),h=i(57629),d=i(82819),p=i(61511),g=i(29236),f=i(36922),m=i(43691),b=i(84534),_=i(39571),w=i(48160),A=i(22196),y=i(74842),v=i(91322),T=i(37043),C=i(99197),E=i(63720),S=i(1157);function k(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"th",24),n.TgZ(1,"mat-checkbox",25),n.NdJ("change",function(e){n.CHM(t);const i=n.oxw();return e?i.masterToggle():null}),n.qZA(),n.qZA()}if(2&t){const t=n.oxw();n.xp6(1),n.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function I(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",26),n.TgZ(1,"mat-checkbox",27),n.NdJ("change",function(e){const i=n.CHM(t).$implicit,s=n.oxw();return e?s.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),n.ALo(2,"translate"),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))("disabled","DIRECT"!==t.membershipType)("matTooltip","DIRECT"!==t.membershipType?n.lcZ(2,4,"MEMBERS_LIST.CHECKBOX_TOOLTIP"):"")}}function x(t,e){1&t&&(n.TgZ(0,"th",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.ID")))}function R(t,e){if(1&t&&(n.TgZ(0,"td",29),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.id)}}function O(t,e){1&t&&n._UZ(0,"th",28)}function P(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-icon",32),n.NdJ("click",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw().viewMemberGroupTree(e)})("mouseenter",function(){return n.CHM(t),n.oxw(2).disableRouting=!0})("mouseleave",function(){n.CHM(t);const e=n.oxw(2);return e.disableRouting=e.disabledRouting}),n.ALo(1,"translate"),n._uU(2,"transfer_within_a_station"),n.qZA()}2&t&&n.Q6J("matTooltip",n.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function D(t,e){if(1&t&&(n.TgZ(0,"td",30),n.YNc(1,P,3,3,"mat-icon",31),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf","DIRECT"!==t.membershipType)}}function M(t,e){1&t&&(n.TgZ(0,"th",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.NAME")))}function L(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.ALo(2,"userFullName"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t.user))}}function N(t,e){1&t&&(n.TgZ(0,"th",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.STATUS")))}function z(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",30),n.TgZ(1,"i",33),n.NdJ("click",function(e){const i=n.CHM(t).$implicit;return n.oxw().changeStatus(e,i)}),n.ALo(2,"memberStatusIconColor"),n.ALo(3,"memberStatusTooltip"),n.TgZ(4,"span"),n._uU(5),n.ALo(6,"memberStatusIcon"),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit;n.xp6(1),n.Gre("material-icons ",n.lcZ(2,5,t.status),""),n.s9C("matTooltip",n.xi3(3,7,t,!1)),n.xp6(4),n.hij(" ",n.lcZ(6,10,t.status)," ")}}function Z(t,e){1&t&&(n.TgZ(0,"th",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")))}function B(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",30),n.TgZ(1,"i",33),n.NdJ("click",function(e){const i=n.CHM(t).$implicit;return n.oxw().changeStatus(e,i)}),n.ALo(2,"memberStatusIconColor"),n.ALo(3,"memberStatusTooltip"),n.TgZ(4,"span"),n._uU(5),n.ALo(6,"memberStatusIcon"),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit;n.xp6(1),n.Gre("material-icons ",n.lcZ(2,5,t.groupStatus),""),n.s9C("matTooltip",n.xi3(3,7,t,!0)),n.xp6(4),n.hij(" ",n.lcZ(6,10,t.groupStatus)," ")}}function q(t,e){1&t&&(n.TgZ(0,"th",34),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.ALREADY_SPONSORED")))}function F(t,e){1&t&&(n.TgZ(0,"mat-icon"),n._uU(1,"check_circle_outline"),n.qZA())}function U(t,e){if(1&t&&(n.TgZ(0,"td",35),n.YNc(1,F,2,0,"mat-icon",36),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf",t.sponsored)}}function H(t,e){1&t&&(n.TgZ(0,"th",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")))}function G(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.ALo(2,"memberOrganization"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t))}}function j(t,e){1&t&&(n.TgZ(0,"th",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.EMAIL")))}function Y(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.ALo(2,"memberEmail"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t))}}function K(t,e){1&t&&(n.TgZ(0,"th",37),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function V(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.ALo(2,"memberLogins"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t))}}function $(t,e){1&t&&n._UZ(0,"tr",38)}const J=function(t,e){return["/organizations",t,"members",e]};function Q(t,e){if(1&t&&n._UZ(0,"tr",39),2&t){const t=e.$implicit,i=n.oxw();n.ekj("cursor-pointer",!i.disabledRouting)("disable-outline",i.disableRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:n.WLB(6,J,t.voId,t.id))("routerLink",i.disableRouting?null:n.WLB(9,J,t.voId,t.id))}}function W(t,e){1&t&&(n.TgZ(0,"app-alert",40),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function X(t,e){1&t&&(n.TgZ(0,"app-alert",40),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}let tt=(()=>{class t{constructor(t,e,i,s){this.dialog=t,this.authResolver=e,this.tableCheckbox=i,this.route=s,this.selection=new r.Ov,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","sponsored","organization","email","logins"],this.disableRouting=!1,this.filter="",this.updateTable=new n.vpe,this.pageSizeOptions=a.f7,this.canBeSelected=t=>"DIRECT"===t.membershipType}set matSort(t){this.sort=t}getSortDataForColumn(t,e,i){var n;switch(e){case"id":return t.id.toString();case"fullName":return t.user?t.user.lastName?t.user.lastName:null!==(n=t.user.firstName)&&void 0!==n?n:"":"";case"status":return i.showGroupStatuses?t.groupStatus:t.status;case"organization":return(0,a.Gw)(t);case"email":return(0,a.g$)(t);default:return""}}getFilterDataForColumn(t,e){switch(e){case"fullName":return t.user?(0,a.bD)(t.user):"";case"email":return(0,a.g$)(t);case"logins":return(0,a.lt)(t);default:return""}}getExportDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"fullName":return t.user?(0,a.bD)(t.user):"";case"status":return i.showGroupStatuses?t.groupStatus:t.status;case"organization":return(0,a.Gw)(t);case"email":return(0,a.g$)(t);case"logins":return(0,a.lt)(t);default:return""}}exportData(t){(0,a.O6)((0,a.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}setDataSource(){this.dataSource||(this.dataSource=new o.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(t,e)=>(0,a.Sd)(t,e,this.displayedColumns,this.getFilterDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,a.pR)(t,e,this.getSortDataForColumn,this)),this.dataSource.filter=this.filter,this.dataSource.data=this.members}ngAfterViewInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t))}ngOnChanges(){var t;this.setDataSource(),this.disabledRouting=this.disableRouting,null===(t=this.route.parent)||void 0===t||t.params.subscribe(t=>{t.groupId&&(this.groupId=t.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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}changeStatus(t,e){if(t.stopPropagation(),"INVALID"===e.status){const t=(0,a.kZ)();t.width="500px",t.data={member:e},this.dialog.open(c.pf,t).afterClosed().subscribe(t=>{t&&this.updateTable.emit(!0)})}}viewMemberGroupTree(t){const e=(0,a.kZ)();e.width="800px",e.data={member:t,groupId:this.groupId},this.dialog.open(c.jd,e)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(u.uw),n.Y36(l.x4),n.Y36(l.UA),n.Y36(h.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-members-list"]],viewQuery:function(t,e){if(1&t&&(n.Gf(s.YE,7),n.Gf(a.l9,7)),2&t){let t;n.iGM(t=n.CRH())&&(e.matSort=t.first),n.iGM(t=n.CRH())&&(e.child=t.first)}},inputs:{showGroupStatuses:"showGroupStatuses",members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",disableRouting:"disableRouting",filter:"filter"},outputs:{updateTable:"updateTable"},features:[n.TTD],decls:37,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","type"],["mat-cell","",4,"matCellDef"],["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(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,k,2,3,"th",4),n.YNc(5,I,3,6,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,x,3,3,"th",7),n.YNc(8,R,2,1,"td",8),n.BQk(),n.ynx(9,9),n.YNc(10,O,1,0,"th",7),n.YNc(11,D,2,1,"td",10),n.BQk(),n.ynx(12,11),n.YNc(13,M,3,3,"th",7),n.YNc(14,L,3,3,"td",10),n.BQk(),n.ynx(15,12),n.YNc(16,N,3,3,"th",7),n.YNc(17,z,7,12,"td",10),n.BQk(),n.ynx(18,13),n.YNc(19,Z,3,3,"th",7),n.YNc(20,B,7,12,"td",10),n.BQk(),n.ynx(21,14),n.YNc(22,q,3,3,"th",15),n.YNc(23,U,2,1,"td",16),n.BQk(),n.ynx(24,17),n.YNc(25,H,3,3,"th",7),n.YNc(26,G,3,3,"td",10),n.BQk(),n.ynx(27,18),n.YNc(28,j,3,3,"th",7),n.YNc(29,Y,3,3,"td",10),n.BQk(),n.ynx(30,19),n.YNc(31,K,3,3,"th",20),n.YNc(32,V,3,3,"td",10),n.BQk(),n.YNc(33,$,1,0,"tr",21),n.YNc(34,Q,1,12,"tr",22),n.qZA(),n.qZA(),n.qZA(),n.YNc(35,W,3,3,"app-alert",23),n.YNc(36,X,3,3,"app-alert",23)),2&t&&(n.Q6J("hidden",0===e.members.length||!e.dataSource||0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("tableId",e.tableId)("pageSizeOptions",e.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(31),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0!==e.members.length&&0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("ngIf",0===e.members.length))},directives:[d.l,o.BZ,s.YE,o.w1,o.fO,o.Dz,o.as,o.nj,p.O5,o.ge,g.oG,o.ev,f.gM,s.nU,m.Hw,o.XQ,o.Gk,b.YH,h.rH,_.w],pipes:[w.X$,A.d,y.u,v.i,T.f,C.M,E.D,S.p],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}td[_ngcontent-%COMP%], th[_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}"]}),t})()},11418:function(t,e,i){"use strict";i.d(e,{c:function(){return p}});var n=i(31572),s=i(68416),o=i(84140),r=i(6527),a=i(84608),c=i(61511),l=i(43691),u=i(48160);function h(t,e){if(1&t&&(n.TgZ(0,"div",5),n.TgZ(1,"mat-icon"),n._uU(2),n.qZA(),n.qZA()),2&t){const t=n.oxw();n.xp6(2),n.Oqu(t.data.icon)}}function d(t,e){if(1&t&&(n.TgZ(0,"div",6),n._uU(1),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.hij(" ",t.showTimestamp()," ")}}let p=(()=>{class t{constructor(t,e){this.dialog=t,this.notificationStorageService=e,this.newNotification=!1,this.closeNotification=new n.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 t=(0,o.kZ)();t.width="550px",t.data=this.data,t.autoFocus=!1,this.dialog.open(r.FM,t).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){(0,o.ys)(this.data.delay,()=>{this.alreadyClosed||this.waiting||this.closeSelf()})}showTimestamp(){const[t,e]=this.data.timeStamp.split(":");return e.length<2?t+":0"+e:this.data.timeStamp}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(a.uw),n.Y36(s.SZ))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"div",0),n.NdJ("click",function(){return e.alreadyClosed||e.waiting?"":e.closeSelf()}),n.YNc(2,h,3,1,"div",1),n.TgZ(3,"div",2),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.YNc(6,d,2,1,"div",3),n.TgZ(7,"div",4),n.NdJ("click",function(){return e.waiting=!0,e.doAction()}),n._uU(8),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.Gre("notification ",e.inDialog?"":"mat-elevation-z7",""),n.ekj("error","error"===e.data.type)("success","success"===e.data.type),n.xp6(2),n.Q6J("ngIf",null!==e.data.icon),n.xp6(2),n.hij(" ",n.lcZ(5,12,e.data.title)," "),n.xp6(2),n.Q6J("ngIf",e.inDialog),n.xp6(1),n.Q6J("hidden",e.alreadyPressed),n.xp6(1),n.hij(" ",e.data.actionText," "))},directives:[c.O5,l.Hw],pipes:[u.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}"]}),t})()},67474:function(t,e,i){"use strict";i.d(e,{$:function(){return L}});var n=i(68416),s=i(65249),o=i(31572),r=i(84608),a=i(48160),c=i(66283),l=i(80340),u=i(16073),h=i(61511),d=i(15980);function p(t,e){1&t&&(o.TgZ(0,"mat-error"),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let g=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.translate=e,this.notificator=i,this.rtMessages=n,this.storeService=s,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(t=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+t.ticketNumber)),this.dialogRef.close()})}getFullEmailBody(){return this.message+"\n ------------------------\n Perun instance: "+this.instanceName+"\n Sended from new Perun Gui, version: "+i(60306).i8}close(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(r.so),o.Y36(a.sK),o.Y36(n.V6),o.Y36(s.Hr),o.Y36(n.d6))},t.\u0275cmp=o.Xpm({type:t,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(t,e){if(1&t&&(o.TgZ(0,"h1",0),o._uU(1),o.ALo(2,"translate"),o.qZA(),o.TgZ(3,"div",1),o.TgZ(4,"mat-form-field"),o.TgZ(5,"mat-label"),o._uU(6),o.ALo(7,"translate"),o.qZA(),o.TgZ(8,"input",2,3),o.NdJ("ngModelChange",function(t){return e.subject=t}),o.qZA(),o.YNc(10,p,3,3,"mat-error",4),o.qZA(),o.TgZ(11,"mat-form-field"),o.TgZ(12,"mat-label"),o._uU(13),o.ALo(14,"translate"),o.qZA(),o.TgZ(15,"textarea",5),o.NdJ("ngModelChange",function(t){return e.message=t}),o.ALo(16,"translate"),o._uU(17," "),o.qZA(),o.TgZ(18,"mat-hint"),o._uU(19),o.ALo(20,"translate"),o.qZA(),o.qZA(),o.qZA(),o.TgZ(21,"div",6),o.TgZ(22,"div",7),o.TgZ(23,"button",8),o.NdJ("click",function(){return e.close()}),o._uU(24),o.ALo(25,"translate"),o.qZA(),o.TgZ(26,"button",9),o.NdJ("click",function(){return e.sendBugReport()}),o._uU(27),o.ALo(28,"translate"),o.qZA(),o.qZA(),o.qZA()),2&t){const t=o.MAs(9);o.xp6(1),o.Oqu(o.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),o.xp6(5),o.Oqu(o.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),o.xp6(2),o.Q6J("ngModel",e.subject),o.xp6(2),o.Q6J("ngIf",t.invalid),o.xp6(3),o.Oqu(o.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),o.xp6(2),o.s9C("placeholder",o.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),o.Q6J("ngModel",e.message),o.xp6(4),o.Oqu(o.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),o.xp6(5),o.hij(" ",o.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),o.xp6(2),o.Q6J("disabled",t.invalid),o.xp6(1),o.hij(" ",o.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[r.uh,r.xY,c.KE,c.hX,l.Nt,u.Fj,u.Q7,u.JJ,u.On,h.O5,c.bx,r.H8,d.lW,c.TO],pipes:[a.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})();var f=i(84140);let m=(()=>{class t{transform(t,e,i){return t[`${i}_${e}`]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"localisedText",type:t,pure:!0}),t})(),b=(()=>{class t{transform(t,e){return t["link_"+e]||t.link_en}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"localisedLink",type:t,pure:!0}),t})(),_=(()=>{class t{transform(t){return t.includes("/")?t:"/assets/config/"+t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"footerLogoPath",type:t,pure:!0}),t})();function w(t,e){if(1&t&&(o.TgZ(0,"a",13),o.ALo(1,"localisedLink"),o._UZ(2,"img",14),o.ALo(3,"footerLogoPath"),o.qZA()),2&t){const t=o.oxw().$implicit,e=o.oxw(3);o.Q6J("href",o.xi3(1,2,t,e.language),o.LSH),o.xp6(2),o.s9C("src",o.lcZ(3,5,t.logo),o.LSH)}}function A(t,e){if(1&t&&(o.TgZ(0,"span"),o._UZ(1,"img",14),o.ALo(2,"footerLogoPath"),o.qZA()),2&t){const t=o.oxw().$implicit;o.xp6(1),o.s9C("src",o.lcZ(2,1,t.logo),o.LSH)}}function y(t,e){if(1&t&&(o.TgZ(0,"div"),o.YNc(1,w,4,7,"a",11),o.ALo(2,"localisedLink"),o.YNc(3,A,3,3,"span",12),o.ALo(4,"localisedLink"),o.qZA()),2&t){const t=e.$implicit,i=o.oxw(3);o.xp6(1),o.Q6J("ngIf",o.xi3(2,2,t,i.language)),o.xp6(2),o.Q6J("ngIf",!o.xi3(4,5,t,i.language))}}const v=function(t){return{"min-height":t}};function T(t,e){if(1&t&&(o.TgZ(0,"div",10),o.YNc(1,y,5,8,"div",5),o.qZA()),2&t){const t=o.oxw().$implicit,e=o.oxw();o.Q6J("ngStyle",o.VKq(2,v,e.columnContentHeight+"px")),o.xp6(1),o.Q6J("ngForOf",t.elements)}}const C=function(t){return{color:t}};function E(t,e){if(1&t&&(o.TgZ(0,"i",20),o._uU(1),o.qZA()),2&t){const t=o.oxw().$implicit,e=o.oxw(3);o.Q6J("ngStyle",o.VKq(2,C,e.linksTextColor)),o.xp6(1),o.hij(" ",t.icon," ")}}function S(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"span",21),o.NdJ("click",function(){o.CHM(t);const e=o.oxw().$implicit;return o.oxw(3).openDialog(e.dialog)}),o._uU(1),o.ALo(2,"localisedText"),o.qZA()}if(2&t){const t=o.oxw().$implicit,e=o.oxw(3);o.Q6J("ngStyle",o.VKq(6,C,e.linksTextColor)),o.xp6(1),o.hij("",o.Dn7(2,2,t,e.language,"label")," ")}}function k(t,e){if(1&t&&(o.TgZ(0,"a",22),o.ALo(1,"localisedLink"),o._uU(2),o.ALo(3,"localisedText"),o.qZA()),2&t){const t=o.oxw().$implicit,e=o.oxw(3);o.Q6J("href",o.xi3(1,3,t,e.language),o.LSH)("ngStyle",o.VKq(10,C,e.linksTextColor)),o.xp6(2),o.Oqu(o.Dn7(3,6,t,e.language,"label"))}}function I(t,e){if(1&t&&(o.TgZ(0,"span",10),o._uU(1),o.ALo(2,"localisedText"),o.qZA()),2&t){const t=o.oxw().$implicit,e=o.oxw(3);o.Q6J("ngStyle",o.VKq(6,C,e.linksTextColor)),o.xp6(1),o.Oqu(o.Dn7(2,2,t,e.language,"label"))}}function x(t,e){if(1&t&&(o.TgZ(0,"div",16),o.YNc(1,E,2,4,"i",17),o.YNc(2,S,3,8,"span",18),o.YNc(3,k,4,12,"a",19),o.ALo(4,"localisedLink"),o.YNc(5,I,3,8,"span",9),o.ALo(6,"localisedLink"),o.qZA()),2&t){const t=e.$implicit,i=o.oxw(3);o.xp6(1),o.Q6J("ngIf",t.icon),o.xp6(1),o.Q6J("ngIf",t.dialog),o.xp6(1),o.Q6J("ngIf",o.xi3(4,4,t,i.language)&&!t.dialog),o.xp6(2),o.Q6J("ngIf",!o.xi3(6,7,t,i.language)&&!t.dialog)}}const R=function(t){return{height:t}};function O(t,e){if(1&t&&(o.TgZ(0,"div",10),o.YNc(1,x,7,10,"div",15),o.qZA()),2&t){const t=o.oxw().$implicit,e=o.oxw();o.Q6J("ngStyle",o.VKq(2,R,e.columnContentHeight+"px")),o.xp6(1),o.Q6J("ngForOf",t.elements)}}function P(t,e){if(1&t&&(o.TgZ(0,"div",7),o.TgZ(1,"h6",8),o._uU(2),o.ALo(3,"localisedText"),o.qZA(),o.YNc(4,T,2,4,"div",9),o.YNc(5,O,2,4,"div",9),o.qZA()),2&t){const t=e.$implicit,i=o.oxw();o.ekj("my-auto",i.containsLogos),o.xp6(1),o.Q6J("ngStyle",o.VKq(10,C,i.headersTextColor)),o.xp6(1),o.hij(" ",o.Dn7(3,6,t,i.language,"title")," "),o.xp6(2),o.Q6J("ngIf",t.logos),o.xp6(1),o.Q6J("ngIf",t.elements&&!t.logos)}}function D(t,e){if(1&t&&(o.TgZ(0,"span"),o.TgZ(1,"a",6),o._uU(2),o.qZA(),o.qZA()),2&t){const t=e.$implicit,i=e.index,n=o.oxw();o.xp6(1),o.Q6J("href",t.url,o.LSH)("ngStyle",o.VKq(3,C,n.copyrightTextColor)),o.xp6(1),o.Oqu(i?", "+t.name:t.name)}}const M=function(t){return{background:t}};let L=(()=>{class t{constructor(t,e,i){this.storeService=t,this.translateService=e,this.dialog=i,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.items=[],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(t=>{this.language=t.lang}),this.version=i(60306).i8,this.items=this.storeService.get("footer","columns");for(const t of this.items)t.logos?this.containsLogos=!0:25*t.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*t.elements.length);this.copyrightItems=this.storeService.get("footer","copyright_items")}openDialog(t){const e=(0,f.kZ)();switch(t){case"reportIssue":e.width="550px",this.dialog.open(g,e)}}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.d6),o.Y36(a.sK),o.Y36(r.uw))},t.\u0275cmp=o.Xpm({type:t,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(t,e){1&t&&(o.TgZ(0,"footer",0),o.TgZ(1,"div",1),o.YNc(2,P,6,12,"div",2),o.qZA(),o._UZ(3,"hr",3),o.TgZ(4,"div",4),o._uU(5),o.YNc(6,D,3,5,"span",5),o._uU(7," Version "),o.TgZ(8,"a",6),o._uU(9),o.qZA(),o.qZA(),o.qZA()),2&t&&(o.Q6J("ngStyle",o.VKq(8,M,e.bgColor)),o.xp6(2),o.Q6J("ngForOf",e.items),o.xp6(2),o.Q6J("ngStyle",o.VKq(10,C,e.copyrightTextColor)),o.xp6(1),o.hij(" \xa9 ",e.currentYear," Copyright: "),o.xp6(1),o.Q6J("ngForOf",e.copyrightItems),o.xp6(2),o.Q6J("href",e.githubRepository,o.LSH)("ngStyle",o.VKq(12,C,e.copyrightTextColor)),o.xp6(1),o.Oqu(e.version))},directives:[h.PC,h.sg,h.O5],pipes:[m,b,_],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}"]}),t})()},72953:function(t,e,i){"use strict";i.d(e,{W:function(){return l}});var n=i(31572),s=i(61511),o=i(43691),r=i(36922),a=i(48160);function c(t,e){1&t&&(n.TgZ(0,"mat-icon",1),n.ALo(1,"translate"),n._uU(2," visibility\n"),n.qZA()),2&t&&n.s9C("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}let l=(()=>{class t{constructor(){this.recentIds=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&n.YNc(0,c,3,3,"mat-icon",0),2&t&&n.Q6J("ngIf",e.recentIds.indexOf(e.id)>-1)},directives:[s.O5,o.Hw,r.gM],pipes:[a.X$],styles:[".disabled-icon[_ngcontent-%COMP%]{color:rgba(0,0,0,.26)}"]}),t})()},59403:function(t,e,i){"use strict";i.d(e,{t:function(){return c}});var n=i(31572),s=i(15980),o=i(36922),r=i(43691),a=i(48160);let c=(()=>{class t{constructor(){this.refresh=new n.vpe}onClickbutton(t){this.refresh.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.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(t,e){1&t&&(n.TgZ(0,"button",0),n.NdJ("click",function(t){return e.onClickbutton(t)}),n.ALo(1,"translate"),n._UZ(2,"mat-icon",1),n.qZA()),2&t&&(n.s9C("matTooltip",n.lcZ(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),n.Q6J("disabled",e.disabled),n.xp6(2),n.s9C("svgIcon",e.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},directives:[s.lW,o.gM,r.Hw],pipes:[a.X$],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%], .perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%], .perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}"]}),t})()},88884:function(t,e,i){"use strict";i.d(e,{C:function(){return V}});var n=i(31572),s=i(58623),o=i(67033),r=i(4230),a=i(84140),c=i(68416),l=i(82819),u=i(61511),h=i(29236),d=i(36922),p=i(72953),g=i(43691),f=i(46837),m=i(84534),b=i(57629),_=i(39571),w=i(48160);let A=(()=>{class t{transform(t){if(null==t)return null;let e="";return t.forEach(function(t){e=e.concat(t.tagName)}),e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"resourceTagsToString",type:t,pure:!0}),t})();var y=i(95603);function v(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"th",22),n.TgZ(1,"mat-checkbox",23),n.NdJ("change",function(e){n.CHM(t);const i=n.oxw();return e?i.masterToggle():null}),n.qZA(),n.qZA()}if(2&t){const t=n.oxw();n.xp6(1),n.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function T(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",24),n.TgZ(1,"span",25),n.ALo(2,"translate"),n.TgZ(3,"mat-checkbox",26),n.NdJ("change",function(e){const i=n.CHM(t).$implicit,s=n.oxw();return e?s.itemSelectionToggle(i):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.s9C("matTooltip",n.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE")),n.Q6J("matTooltipPosition","above")("matTooltipDisabled",!i.disableSelect(t)),n.xp6(2),n.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))("disabled",i.disableSelect(t))}}function C(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")))}function E(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.id)}}function S(t,e){1&t&&n._UZ(0,"th",29)}function k(t,e){if(1&t&&(n.TgZ(0,"td",30),n._UZ(1,"perun-web-apps-recently-viewed-icon",31),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("recentIds",i.recentIds)("id",t.id)}}function I(t,e){1&t&&n._UZ(0,"th",29)}function x(t,e){1&t&&(n.TgZ(0,"mat-icon",33),n.ALo(1,"translate"),n._uU(2,"account_tree"),n.qZA()),2&t&&n.Q6J("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE"))}function R(t,e){if(1&t&&(n.TgZ(0,"td",30),n.YNc(1,x,3,3,"mat-icon",32),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf",t.sourceGroupId)}}function O(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")))}function P(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.name)}}function D(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")))}function M(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.vo.name)}}function L(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")))}function N(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",30),n.TgZ(1,"perun-web-apps-group-resource-status",34),n.NdJ("mouseenter",function(){return n.CHM(t),n.oxw().disabledRouting=!0})("mouseleave",function(){n.CHM(t);const e=n.oxw();return e.disabledRouting=e.disableRouting})("statusChange",function(){return n.CHM(t),n.oxw().refreshTable.emit()}),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("theme","group-theme")("resourceId",t.id)("groupId",i.groupId)("failureCause",t.failureCause)("status",t.status)}}function z(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")))}function Z(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.facility.name)}}function B(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")))}function q(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.ALo(2,"resourceTagsToString"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t.resourceTags))}}function F(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")))}function U(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.description)}}function H(t,e){1&t&&n._UZ(0,"tr",35)}const G=function(t){return[t]};function j(t,e){if(1&t&&(n._UZ(0,"tr",36),n.ALo(1,"getResourceRoute"),n.ALo(2,"getResourceRoute")),2&t){const t=e.$implicit,i=n.oxw();n.ekj("cursor-pointer",!i.disableRouting)("disable-outline",i.disabledRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",n.VKq(12,G,i.disabledRouting?null:n.xi3(1,6,t,i.routingVo)))("routerLink",i.disabledRouting?null:n.xi3(2,9,t,i.routingVo))}}function Y(t,e){1&t&&(n.TgZ(0,"app-alert",37),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function K(t,e){1&t&&(n.TgZ(0,"app-alert",37),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}let V=(()=>{class t{constructor(t,e){this.guiAuthResolver=t,this.tableCheckbox=e,this.resources=[],this.selection=new r.Ov(!0,[]),this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","indirectResourceAssigment","name","vo","status","facility","tags","description"],this.pageSizeOptions=a.f7,this.groupId=null,this.resourcesToDisableCheckbox=new Set,this.refreshTable=new n.vpe,this.allSelected=new n.vpe,this.removeAuth=!1,this.addAuth=!1,this.canBeSelected=t=>!this.disableSelect(t)}set matSort(t){this.sort=t}ngOnInit(){this.disabledRouting=this.disableRouting}ngOnChanges(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.setDataSource(),this.setAuth()}getDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return t.vo.name;case"name":return t.name;case"facility":return t.facility.name;case"description":return t.description;case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;case"tags":{if(!t.resourceTags)return t[e];let i="";return t.resourceTags.forEach(function(t){i=i.concat(t.tagName)}),i}case"status":return t.status;case"uuid":return t.uuid;default:return t[e]}}exportData(t){(0,a.O6)((0,a.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource||(this.dataSource=new o.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(t,e)=>(0,a.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this,!0),this.dataSource.sortData=(t,e)=>(0,a.pR)(t,e,this.getDataForColumn,this)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}isAllSelected(){const t=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(t),t}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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}setAuth(){const t=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce((e,i)=>e&&this.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",t.concat([i])),!0),this.addAuth=this.selection.selected.reduce((e,i)=>e&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",t.concat([i])),!0)}itemSelectionToggle(t){this.selection.toggle(t),this.setAuth()}disableSelect(t){return this.resourcesToDisableCheckbox.has(t.id)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(c.x4),n.Y36(c.UA))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(t,e){if(1&t&&(n.Gf(s.YE,7),n.Gf(a.l9,7)),2&t){let t;n.iGM(t=n.CRH())&&(e.matSort=t.first),n.iGM(t=n.CRH())&&(e.child=t.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:[n.TTD],decls:37,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","status"],["matColumnDef","facility"],["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(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,v,2,3,"th",4),n.YNc(5,T,4,8,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,C,3,3,"th",7),n.YNc(8,E,2,1,"td",8),n.BQk(),n.ynx(9,9),n.YNc(10,S,1,0,"th",10),n.YNc(11,k,2,2,"td",11),n.BQk(),n.ynx(12,12),n.YNc(13,I,1,0,"th",10),n.YNc(14,R,2,1,"td",11),n.BQk(),n.ynx(15,13),n.YNc(16,O,3,3,"th",7),n.YNc(17,P,2,1,"td",11),n.BQk(),n.ynx(18,14),n.YNc(19,D,3,3,"th",7),n.YNc(20,M,2,1,"td",11),n.BQk(),n.ynx(21,15),n.YNc(22,L,3,3,"th",7),n.YNc(23,N,2,5,"td",11),n.BQk(),n.ynx(24,16),n.YNc(25,z,3,3,"th",7),n.YNc(26,Z,2,1,"td",11),n.BQk(),n.ynx(27,17),n.YNc(28,B,3,3,"th",7),n.YNc(29,q,3,3,"td",11),n.BQk(),n.ynx(30,18),n.YNc(31,F,3,3,"th",7),n.YNc(32,U,2,1,"td",11),n.BQk(),n.YNc(33,H,1,0,"tr",19),n.YNc(34,j,3,14,"tr",20),n.qZA(),n.qZA(),n.qZA(),n.YNc(35,Y,3,3,"app-alert",21),n.YNc(36,K,3,3,"app-alert",21)),2&t&&(n.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.resources.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("tableId",e.tableId)("pageSizeOptions",e.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(31),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.resources.length),n.xp6(1),n.Q6J("ngIf",0===e.resources.length))},directives:[l.l,o.BZ,s.YE,o.w1,o.fO,o.Dz,o.as,o.nj,u.O5,o.ge,h.oG,o.ev,d.gM,s.nU,p.W,g.Hw,f.x,o.XQ,o.Gk,m.YH,b.rH,_.w],pipes:[w.X$,A,y.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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t})()},94327:function(t,e,i){"use strict";i.d(e,{qG:function(){return a},$x:function(){return c}});var n=i(31572),s=i(48160),o=i(44973);class r{constructor(t,e){this.value=e,this.displayName=t}}var a=function(t){return t[t.SOURCE=0]="SOURCE",t[t.DESTINATION=1]="DESTINATION",t[t.FEDERATION=2]="FEDERATION",t}({});let c=(()=>{class t{constructor(t){this.translateService=t,this.attributes=[],this.asGroup=!1,this.itemSelected=new n.vpe,this.items=[],this.nameFunction=t=>t.displayName,this.shortNameFunction=()=>null,this.searchFunction=t=>t.displayName}static getDefinition(t){const e=t.namespace.split(":");return null===e[4]?"null":e[4]}ngOnInit(){this.type===a.FEDERATION?(this.getFederationAttributes(),this.getFederationAttribute()):this.createSelectionItems(),this.sortAttributes(this.items)}createSelectionItems(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(t=>{const e=new r(t,"");this.items.push(e),this.item=e});for(const e of this.attributes){const i=new r(e.friendlyName+" ("+e.entity+" / "+t.getDefinition(e)+")",e.namespace+":"+e.friendlyName);i.value===this.selectedAttribute&&(this.item=i),("user"===e.entity.toLowerCase()||"member"===e.entity.toLowerCase()||"vo"===e.entity.toLowerCase()&&this.type===a.SOURCE||"group"===e.entity.toLowerCase()&&this.asGroup&&this.type===a.SOURCE)&&this.items.push(i)}}getFederationAttributes(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(t=>{this.items.push(new r(t,"")),this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.CUSTOM_VALUE").subscribe(t=>{this.items.push(new r(t,"custom")),this.items.push(new r("Display name","displayName")),this.items.push(new r("Common name","cn")),this.items.push(new r("Mail","mail")),this.items.push(new r("Organization","o")),this.items.push(new r("Level of Assurance (LoA)","loa")),this.items.push(new r("First name","givenName")),this.items.push(new r("Surname","sn")),this.items.push(new r("EPPN","eppn")),this.items.push(new r("IdP Category","md_entityCategory")),this.items.push(new r("IdP Affiliation","affiliation")),this.items.push(new r("EduPersonScopedAffiliation","eduPersonScopedAffiliation")),this.items.push(new r("Forwarded Affiliation from Proxy","forwardedScopedAffiliation")),this.items.push(new r("schacHomeOrganization","schacHomeOrganization")),this.items.push(new r("Login","uid")),this.items.push(new r("Alternative login name","alternativeLoginName"))})})}getFederationAttribute(){for(const t of this.items)if(t.value===this.selectedAttribute)return void(this.item=t)}sortAttributes(t){t.sort((t,e)=>""===t.value?-1:""===e.value?1:t.displayName.localeCompare(e.displayName))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(s.sK))},t.\u0275cmp=n.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(t,e){1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.itemSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t&&n.Q6J("entities",e.items)("entity",e.item)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.shortNameFunction)("selectPlaceholder",n.lcZ(1,8,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",n.lcZ(2,10,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",n.lcZ(3,12,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},directives:[o.i],pipes:[s.X$],styles:[""]}),t})()},23888:function(t,e,i){"use strict";i.d(e,{j:function(){return N}});var n=i(4230),s=i(58623),o=i(67033),r=i(68416),a=i(84140),c=i(31572),l=i(57629),u=i(82819),h=i(61511),d=i(36922),p=i(29236),g=i(84534),f=i(39571),m=i(48160),b=i(83787);let _=(()=>{class t{transform(t){const e=t.find(t=>"mail"===t.friendlyName);return e?e.value.toString():"N/A"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=c.Yjl({name:"getMailFromAttributes",type:t,pure:!0}),t})();function w(t,e){1&t&&c._UZ(0,"th",18)}function A(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"td",19),c.TgZ(1,"span",20),c.ALo(2,"translate"),c.ALo(3,"customTranslate"),c.TgZ(4,"mat-checkbox",21),c.NdJ("change",function(e){const i=c.CHM(t).$implicit,n=c.oxw();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=e.$implicit,i=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",!t.userExtSource.persistent),c.xp6(3),c.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))("disabled",t.userExtSource.persistent)}}function y(t,e){1&t&&(c.TgZ(0,"th",22),c._uU(1),c.ALo(2,"translate"),c.ALo(3,"customTranslate"),c.qZA()),2&t&&(c.xp6(1),c.Oqu(c.lcZ(2,1,c.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))))}function v(t,e){if(1&t&&(c.TgZ(0,"td",23),c._uU(1),c.qZA()),2&t){const t=e.$implicit;c.xp6(1),c.Oqu(t.userExtSource.id)}}function T(t,e){1&t&&(c.TgZ(0,"th",24),c._uU(1),c.ALo(2,"translate"),c.ALo(3,"customTranslate"),c.qZA()),2&t&&(c.xp6(1),c.Oqu(c.lcZ(2,1,c.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))))}function C(t,e){if(1&t&&(c.TgZ(0,"td",23),c._uU(1),c.ALo(2,"getMailFromAttributes"),c.qZA()),2&t){const t=e.$implicit;c.xp6(1),c.Oqu(c.lcZ(2,1,t.attributes))}}function E(t,e){if(1&t&&(c.TgZ(0,"th",22),c._uU(1),c.ALo(2,"translate"),c.ALo(3,"customTranslate"),c.qZA()),2&t){const t=c.oxw();c.xp6(1),c.Oqu(c.lcZ(2,1,c.lcZ(3,3,t.extSourceNameHeader?t.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME")))}}function S(t,e){if(1&t&&(c.TgZ(0,"td",23),c._uU(1),c.qZA()),2&t){const t=e.$implicit;c.xp6(1),c.Oqu(t.userExtSource.extSource.name)}}function k(t,e){if(1&t&&(c.TgZ(0,"th",22),c._uU(1),c.ALo(2,"translate"),c.ALo(3,"customTranslate"),c.qZA()),2&t){const t=c.oxw();c.xp6(1),c.Oqu(c.lcZ(2,1,c.lcZ(3,3,t.loginHeader?t.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN")))}}function I(t,e){if(1&t&&(c.TgZ(0,"td",23),c._uU(1),c.qZA()),2&t){const t=e.$implicit;c.xp6(1),c.Oqu(t.userExtSource.login)}}function x(t,e){1&t&&(c.TgZ(0,"th",22),c._uU(1),c.ALo(2,"translate"),c.ALo(3,"customTranslate"),c.qZA()),2&t&&(c.xp6(1),c.Oqu(c.lcZ(2,1,c.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))))}function R(t,e){if(1&t&&(c.TgZ(0,"td",25),c._uU(1),c.ALo(2,"date"),c.qZA()),2&t){const t=e.$implicit;c.xp6(1),c.Oqu(c.xi3(2,1,t.userExtSource.lastAccess,"d.M.y H:mm:ss"))}}function O(t,e){1&t&&c._UZ(0,"tr",26)}const P=function(t,e){return["/admin","users",t,"identities",e]};function D(t,e){if(1&t&&c._UZ(0,"tr",27),2&t){const t=e.$implicit,i=c.oxw();c.ekj("cursor-pointer",!i.disableRouting)("disable-outline",i.disableRouting),c.Q6J("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:c.WLB(6,P,i.userId,t.userExtSource.id))("routerLink",i.disableRouting?null:c.WLB(9,P,i.userId,t.userExtSource.id))}}function M(t,e){1&t&&(c.TgZ(0,"app-alert",28),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function L(t,e){1&t&&(c.TgZ(0,"app-alert",28),c._uU(1),c.ALo(2,"translate"),c.ALo(3,"customTranslate"),c.qZA()),2&t&&(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 N=(()=>{class t{constructor(t,e){this.route=t,this.authResolver=e,this.selection=new n.Ov,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSizeOptions=a.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnInit(){this.disableRouting||this.route.parent.params.subscribe(t=>{this.userId=t.userId}),this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new o.by(this.userExtSources),this.setDataSource()}getDataForColumn(t,e){switch(e){case"id":return t.userExtSource.id.toString();case"mail":{const e=t.attributes.find(t=>"mail"===t.friendlyName);return e?e.value.toString():"N/A"}case"extSourceName":return t.userExtSource.extSource.name;case"login":return t.userExtSource.login;case"lastAccess":return t.userExtSource.lastAccess.split(".")[0];default:return t[e]}}exportData(t){(0,a.O6)((0,a.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>(0,a.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,a.pR)(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}checkboxLabel(t){return`${this.selection.isSelected(t.userExtSource)?"deselect":"select"} row ${t.userExtSource.id+1}`}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(l.gz),c.Y36(r.x4))},t.\u0275cmp=c.Xpm({type:t,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(t,e){if(1&t&&(c.Gf(a.l9,7),c.Gf(s.YE,7)),2&t){let t;c.iGM(t=c.CRH())&&(e.child=t.first),c.iGM(t=c.CRH())&&(e.matSort=t.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(t,e){1&t&&(c.TgZ(0,"div",0),c.TgZ(1,"perun-web-apps-table-wrapper",1),c.NdJ("exportData",function(t){return e.exportData(t)}),c.TgZ(2,"table",2),c.ynx(3,3),c.YNc(4,w,1,0,"th",4),c.YNc(5,A,5,10,"td",5),c.BQk(),c.ynx(6,6),c.YNc(7,y,4,5,"th",7),c.YNc(8,v,2,1,"td",8),c.BQk(),c.ynx(9,9),c.YNc(10,T,4,5,"th",10),c.YNc(11,C,3,3,"td",8),c.BQk(),c.ynx(12,11),c.YNc(13,E,4,5,"th",7),c.YNc(14,S,2,1,"td",8),c.BQk(),c.ynx(15,12),c.YNc(16,k,4,5,"th",7),c.YNc(17,I,2,1,"td",8),c.BQk(),c.ynx(18,13),c.YNc(19,x,4,5,"th",7),c.YNc(20,R,3,4,"td",14),c.BQk(),c.YNc(21,O,1,0,"tr",15),c.YNc(22,D,1,12,"tr",16),c.qZA(),c.qZA(),c.qZA(),c.YNc(23,M,3,3,"app-alert",17),c.YNc(24,L,4,5,"app-alert",17)),2&t&&(c.Q6J("hidden",0===e.userExtSources.length||0===e.dataSource.filteredData.length),c.xp6(1),c.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),c.xp6(1),c.Q6J("dataSource",e.dataSource),c.xp6(19),c.Q6J("matHeaderRowDef",e.displayedColumns),c.xp6(1),c.Q6J("matRowDefColumns",e.displayedColumns),c.xp6(1),c.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.userExtSources.length),c.xp6(1),c.Q6J("ngIf",0===e.userExtSources.length))},directives:[u.l,o.BZ,s.YE,o.w1,o.fO,o.Dz,o.as,o.nj,h.O5,o.ge,o.ev,d.gM,p.oG,s.nU,o.XQ,o.Gk,g.YH,l.rH,f.w],pipes:[m.X$,b.a,_,h.uU],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),t})()},7927:function(t,e,i){"use strict";i.d(e,{S:function(){return a}});var n=i(31572),s=i(84140),o=i(44973),r=i(48160);let a=(()=>{class t{constructor(){this.disableAutoSelect=!1,this.userSelected=new n.vpe,this.userFullNameFunction=s.bD}ngOnInit(){this.users=this.users.sort(s.fx)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.userSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t&&n.Q6J("entities",e.users)("disableAutoSelect",e.disableAutoSelect)("searchFunction",e.userFullNameFunction)("mainTextFunction",e.userFullNameFunction)("selectPlaceholder",n.lcZ(1,7,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.SELECT_USER"))("findPlaceholder",n.lcZ(2,9,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.FIND_USER"))("noEntriesText",n.lcZ(3,11,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.NO_USER_FOUND"))},directives:[o.i],pipes:[r.X$],styles:[""]}),t})()},16247:function(t,e,i){"use strict";i.d(e,{M:function(){return K}});var n=i(4230),s=i(84140),o=i(58623),r=i(68416),a=i(31906),c=i(66599),l=i(31572),u=i(60611),h=i(82819),d=i(61511),p=i(67033),g=i(67806),f=i(29236),m=i(43691),b=i(36922),_=i(84534),w=i(39571),A=i(48160),y=i(22196),v=i(92898),T=i(44031),C=i(31447);function E(t,e){1&t&&(l.TgZ(0,"div",20),l._UZ(1,"mat-spinner",21),l.qZA())}function S(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"mat-checkbox",24),l.NdJ("change",function(e){l.CHM(t);const i=l.oxw(2);return e?i.masterToggle():null}),l.qZA()}if(2&t){const t=l.oxw(2);l.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function k(t,e){if(1&t&&(l.TgZ(0,"th",22),l.YNc(1,S,1,3,"mat-checkbox",23),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.Q6J("ngIf",t.selection.isMultipleSelection())}}function I(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"td",25),l.TgZ(1,"mat-checkbox",26),l.NdJ("change",function(e){const i=l.CHM(t).$implicit,n=l.oxw();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),l.qZA(),l.qZA()}if(2&t){const t=e.$implicit,i=l.oxw();l.xp6(1),l.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function x(t,e){1&t&&l._UZ(0,"th",27)}function R(t,e){1&t&&(l.TgZ(0,"mat-icon",31),l.ALo(1,"translate"),l._uU(2," account_circle "),l.qZA()),2&t&&l.s9C("matTooltip",l.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function O(t,e){if(1&t&&(l._UZ(0,"mat-icon",32),l.ALo(1,"translate")),2&t){const t=l.oxw(2);l.s9C("matTooltip",l.lcZ(1,2,"MANAGERS_LIST.SERVICE")),l.Q6J("svgIcon",t.svgIcon)}}function P(t,e){if(1&t&&(l.TgZ(0,"td",28),l.YNc(1,R,3,3,"mat-icon",29),l.YNc(2,O,2,4,"mat-icon",30),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.Q6J("ngIf",!t.serviceUser),l.xp6(1),l.Q6J("ngIf",t.serviceUser)}}function D(t,e){1&t&&(l.TgZ(0,"th",33),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"MANAGERS_LIST.ID")))}function M(t,e){if(1&t&&(l.TgZ(0,"td",28),l._uU(1),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.hij(" ",t.id," ")}}function L(t,e){1&t&&(l.TgZ(0,"th",33),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"MANAGERS_LIST.NAME")))}function N(t,e){if(1&t&&(l.TgZ(0,"td",34),l._uU(1),l.ALo(2,"userFullName"),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.Oqu(l.lcZ(2,1,t))}}function z(t,e){1&t&&(l.TgZ(0,"th",27),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")))}function Z(t,e){if(1&t&&(l.TgZ(0,"td",34),l._uU(1),l.ALo(2,"userVo"),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.Oqu(l.lcZ(2,1,t))}}function B(t,e){1&t&&(l.TgZ(0,"th",27),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"MANAGERS_LIST.EMAIL")))}function q(t,e){if(1&t&&(l.TgZ(0,"td",34),l._uU(1),l.ALo(2,"userEmail"),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.Oqu(l.lcZ(2,1,t))}}function F(t,e){1&t&&(l.TgZ(0,"th",27),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"MANAGERS_LIST.LOGINS")))}function U(t,e){if(1&t&&(l.TgZ(0,"td",34),l._uU(1),l.ALo(2,"userLogins"),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.Oqu(l.lcZ(2,1,t))}}function H(t,e){1&t&&l._UZ(0,"tr",35)}const G=function(t){return["/admin/users",t]};function j(t,e){if(1&t&&l._UZ(0,"tr",36),2&t){const t=e.$implicit,i=l.oxw();l.ekj("cursor-pointer",!i.disableRouting),l.Q6J("perunWebAppsForceRouterLink",i.disableRouting?null:l.VKq(4,G,t.id))("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:l.VKq(6,G,t.id))}}function Y(t,e){1&t&&(l.TgZ(0,"app-alert",37),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.Q6J("alert_type","warn"),l.xp6(1),l.hij(" ",l.lcZ(2,2,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n"))}let K=(()=>{class t{constructor(t,e,i,o){this.authResolver=t,this.tableCheckbox=e,this.tableConfigService=i,this.dynamicPaginatingService=o,this.svgIcon="perun-service-identity-black",this.selection=new n.Ov(!0,[]),this.displayedColumns=["select","user","id","name","email","logins","organization"],this.disableRouting=!1,this.searchString="",this.attrNames=[],this.pageSizeOptions=s.f7}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,a.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,c.b)(()=>this.loadUsersPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new r.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(t=>this.selection.select(t))}isAllSelected(){return this.selection.selected.length===this.child.paginator.pageSize}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.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(t){(0,s.O6)((0,s.Xn)(this.dataSource.getData(),this.displayedColumns,this.getExportDataForColumn,this),t)}getExportDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"user":return t.serviceUser?"service-user":"user";case"name":return t?(0,s.bD)(t):"";case"organization":return(0,s.OV)(t);case"email":return(0,s.kN)(t);case"logins":return(0,s.lt)(t);default:return""}}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(r.x4),l.Y36(r.UA),l.Y36(u.dB),l.Y36(r.ly))},t.\u0275cmp=l.Xpm({type:t,selectors:[["perun-web-apps-users-dynamic-list"]],viewQuery:function(t,e){if(1&t&&(l.Gf(s.l9,7),l.Gf(o.YE,5)),2&t){let t;l.iGM(t=l.CRH())&&(e.child=t.first),l.iGM(t=l.CRH())&&(e.sort=t.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:[l.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(t,e){1&t&&(l.TgZ(0,"div",0),l.ALo(1,"async"),l.TgZ(2,"perun-web-apps-table-wrapper",1),l.NdJ("exportData",function(t){return e.exportData(t)}),l.YNc(3,E,2,0,"div",2),l.ALo(4,"async"),l.TgZ(5,"table",3),l.ynx(6,4),l.YNc(7,k,2,1,"th",5),l.YNc(8,I,2,2,"td",6),l.BQk(),l.ynx(9,7),l.YNc(10,x,1,0,"th",8),l.YNc(11,P,3,2,"td",9),l.BQk(),l.ynx(12,10),l.YNc(13,D,3,3,"th",11),l.YNc(14,M,2,1,"td",9),l.BQk(),l.ynx(15,12),l.YNc(16,L,3,3,"th",11),l.YNc(17,N,3,3,"td",13),l.BQk(),l.ynx(18,14),l.YNc(19,z,3,3,"th",8),l.YNc(20,Z,3,3,"td",13),l.BQk(),l.ynx(21,15),l.YNc(22,B,3,3,"th",8),l.YNc(23,q,3,3,"td",13),l.BQk(),l.ynx(24,16),l.YNc(25,F,3,3,"th",8),l.YNc(26,U,3,3,"td",13),l.BQk(),l.YNc(27,H,1,0,"tr",17),l.YNc(28,j,1,8,"tr",18),l.qZA(),l.qZA(),l.qZA(),l.YNc(29,Y,3,4,"app-alert",19),l.ALo(30,"async")),2&t&&(l.Q6J("hidden",0===e.dataSource.allObjectCount&&!1===l.lcZ(1,9,e.dataSource.loading$)),l.xp6(2),l.Q6J("tableId",e.tableId)("dataLength",e.dataSource.allObjectCount)("pageSizeOptions",e.pageSizeOptions),l.xp6(1),l.Q6J("ngIf",l.lcZ(4,11,e.dataSource.loading$)),l.xp6(2),l.Q6J("dataSource",e.dataSource),l.xp6(22),l.Q6J("matHeaderRowDef",e.displayedColumns),l.xp6(1),l.Q6J("matRowDefColumns",e.displayedColumns),l.xp6(1),l.Q6J("ngIf",0===e.dataSource.allObjectCount&&!1===l.lcZ(30,13,e.dataSource.loading$)))},directives:[h.l,d.O5,p.BZ,o.YE,p.w1,p.fO,p.Dz,p.as,p.nj,g.$g,p.ge,f.oG,p.ev,m.Hw,b.gM,o.nU,p.XQ,p.Gk,_.Kd,_.YH,w.w],pipes:[d.Ov,A.X$,y.d,v.Z,T.S,C.g],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;top:0;left:0;bottom:56px;right:0;background:rgba(0,0,0,.15);z-index:1;display:flex;align-items:center;justify-content:center}.italic_font[_ngcontent-%COMP%]{font-style:italic}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})()},19386:function(t,e,i){"use strict";i.d(e,{M:function(){return r}});var n=i(31572),s=i(44973),o=i(48160);let r=(()=>{class t{constructor(){this.voSelected=new n.vpe,this.nameFunction=t=>t.name,this.shortNameFunction=t=>t.shortName,this.searchFunction=t=>t.name+t.shortName+t.id}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-vo-search-select"]],inputs:{vo:"vo",vos:"vos"},outputs:{voSelected:"voSelected"},decls:4,vars:14,consts:[[3,"entity","entities","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(t,e){1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.voSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t&&n.Q6J("entity",e.vo)("entities",e.vos)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.shortNameFunction)("selectPlaceholder",n.lcZ(1,8,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.SELECT_VO"))("findPlaceholder",n.lcZ(2,10,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.FIND_VO"))("noEntriesText",n.lcZ(3,12,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.NO_VO_FOUND"))},directives:[s.i],pipes:[o.X$],styles:[""]}),t})()},97162:function(t,e,i){"use strict";i.d(e,{Z:function(){return O}});var n=i(58623),s=i(67033),o=i(84140),r=i(68416),a=i(31572),c=i(82819),l=i(61511),u=i(29236),h=i(72953),d=i(84534),p=i(57629),g=i(39571),f=i(48160);function m(t,e){1&t&&a._UZ(0,"th",18)}function b(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"td",19),a.TgZ(1,"mat-checkbox",20),a.NdJ("change",function(e){const i=a.CHM(t).$implicit,n=a.oxw();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),a.qZA(),a.qZA()}if(2&t){const t=e.$implicit,i=a.oxw();a.xp6(1),a.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function _(t,e){1&t&&(a.TgZ(0,"th",21),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.ID")))}function w(t,e){if(1&t&&(a.TgZ(0,"td",22),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(t.id)}}function A(t,e){1&t&&a._UZ(0,"th",23)}function y(t,e){if(1&t&&(a.TgZ(0,"td",24),a._UZ(1,"perun-web-apps-recently-viewed-icon",25),a.qZA()),2&t){const t=e.$implicit,i=a.oxw();a.xp6(1),a.Q6J("recentIds",i.recentIds)("id",t.id)}}function v(t,e){1&t&&(a.TgZ(0,"th",21),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.SHORTNAME")))}function T(t,e){if(1&t&&(a.TgZ(0,"td",24),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.uIk("data-cy",t.shortName),a.xp6(1),a.Oqu(t.shortName)}}function C(t,e){1&t&&(a.TgZ(0,"th",21),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.NAME")))}function E(t,e){if(1&t&&(a.TgZ(0,"td",24),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(t.name)}}function S(t,e){1&t&&a._UZ(0,"tr",26)}const k=function(t){return["/organizations",t]};function I(t,e){if(1&t&&a._UZ(0,"tr",27),2&t){const t=e.$implicit,i=a.oxw();a.ekj("disable-outline",i.disableRouting),a.Q6J("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:a.VKq(4,k,t.id))("routerLink",i.disableRouting?null:a.VKq(6,k,t.id))}}function x(t,e){1&t&&(a.TgZ(0,"app-alert",28),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function R(t,e){1&t&&(a.TgZ(0,"app-alert",29),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_ORGANIZATIONS"),"\n"))}let O=(()=>{class t{constructor(t){this.authResolver=t,this.vos=[],this.displayedColumns=[],this.disableRouting=!1,this.pageSizeOptions=o.f7}set matSort(t){this.sort=t}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.setDataSource()}getDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"shortName":return t.shortName;case"name":return t.name;case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;default:return t[e]}}exportData(t){(0,o.O6)((0,o.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource||(this.dataSource=new s.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(t,e)=>(0,o.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,o.pR)(t,e,this.getDataForColumn,this)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.vos}checkboxLabel(t){return`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(r.x4))},t.\u0275cmp=a.Xpm({type:t,selectors:[["perun-web-apps-vos-list"]],viewQuery:function(t,e){if(1&t&&(a.Gf(n.YE,7),a.Gf(o.l9,7)),2&t){let t;a.iGM(t=a.CRH())&&(e.matSort=t.first),a.iGM(t=a.CRH())&&(e.child=t.first)}},inputs:{vos:"vos",recentIds:"recentIds",filterValue:"filterValue",selection:"selection",displayedColumns:"displayedColumns",disableRouting:"disableRouting",pageSizeOptions:"pageSizeOptions",tableId:"tableId"},features:[a.TTD],decls:22,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","shortName"],["matColumnDef","name"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",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"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn","data-cy","no-filter-result"],["alert_type","warn"]],template:function(t,e){1&t&&(a.TgZ(0,"div",0),a.TgZ(1,"perun-web-apps-table-wrapper",1),a.NdJ("exportData",function(t){return e.exportData(t)}),a.TgZ(2,"table",2),a.ynx(3,3),a.YNc(4,m,1,0,"th",4),a.YNc(5,b,2,2,"td",5),a.BQk(),a.ynx(6,6),a.YNc(7,_,3,3,"th",7),a.YNc(8,w,2,1,"td",8),a.BQk(),a.ynx(9,9),a.YNc(10,A,1,0,"th",10),a.YNc(11,y,2,2,"td",11),a.BQk(),a.ynx(12,12),a.YNc(13,v,3,3,"th",7),a.YNc(14,T,2,2,"td",11),a.BQk(),a.ynx(15,13),a.YNc(16,C,3,3,"th",7),a.YNc(17,E,2,1,"td",11),a.BQk(),a.YNc(18,S,1,0,"tr",14),a.YNc(19,I,1,8,"tr",15),a.qZA(),a.qZA(),a.qZA(),a.YNc(20,x,3,3,"app-alert",16),a.YNc(21,R,3,3,"app-alert",17)),2&t&&(a.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.vos.length),a.xp6(1),a.Q6J("dataLength",e.dataSource.filteredData.length)("tableId",e.tableId)("pageSizeOptions",e.pageSizeOptions),a.xp6(1),a.Q6J("dataSource",e.dataSource),a.xp6(16),a.Q6J("matHeaderRowDef",e.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",e.displayedColumns),a.xp6(1),a.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.vos.length),a.xp6(1),a.Q6J("ngIf",0===e.vos.length))},directives:[c.l,s.BZ,n.YE,s.w1,s.fO,s.Dz,s.as,s.nj,l.O5,s.ge,s.ev,u.oG,n.nU,h.W,s.XQ,s.Gk,d.YH,p.rH,g.w],pipes:[f.X$],styles:[".card[_ngcontent-%COMP%]{border-radius:0!important}.static-column-size[_ngcontent-%COMP%]{width:80px}.disable-outline[_ngcontent-%COMP%]{outline:none!important}tr[_ngcontent-%COMP%]{cursor:pointer}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t})()},6527:function(t,e,i){"use strict";i.d(e,{Wr:function(){return pt},r2:function(){return dt},gr:function(){return bt},u3:function(){return Wt},Qu:function(){return we},pf:function(){return v},xF:function(){return se},hd:function(){return ue},kZ:function(){return ae},wA:function(){return ht},rd:function(){return M},Eg:function(){return D},Bp:function(){return U},qD:function(){return Ut},jd:function(){return qt},FM:function(){return V},Lc:function(){return nt},mk:function(){return rt},Tf:function(){return Ct}}),i(22280);var n=i(18820),s=i(84608),o=i(65249),r=i(68416),a=i(31572),c=i(48160),l=i(61511),u=i(15980),h=i(67806),d=i(66283),p=i(4786),g=i(71522),f=i(5725);function m(t,e){1&t&&a._UZ(0,"mat-spinner",6)}function b(t,e){if(1&t&&(a.TgZ(0,"mat-option",17),a._uU(1),a.ALo(2,"memberStatus"),a.qZA()),2&t){const t=e.$implicit;a.Q6J("value",t),a.xp6(1),a.Oqu(a.lcZ(2,2,t))}}function _(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-form-field",14),a.TgZ(1,"mat-label"),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"mat-select",15),a.NdJ("selectionChange",function(e){return a.CHM(t),a.oxw(3).changeStatus(e)}),a.YNc(5,b,3,4,"mat-option",16),a.qZA(),a.qZA()}if(2&t){const t=a.oxw(3);a.xp6(2),a.Oqu(a.lcZ(3,2,"DIALOGS.CHANGE_STATUS.SELECT_STATUS")),a.xp6(3),a.Q6J("ngForOf",t.allStatuses)}}function w(t,e){if(1&t&&(a.TgZ(0,"div",8),a._uU(1),a.ALo(2,"translate"),a.YNc(3,_,6,4,"mat-form-field",13),a.qZA()),2&t){const t=a.oxw(2);a.xp6(1),a.hij(" ",a.lcZ(2,2,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," "),a.xp6(2),a.Q6J("ngIf",!t.loading)}}function A(t,e){if(1&t&&(a.TgZ(0,"div",8),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"memberStatus"),a.qZA()),2&t){const t=a.oxw(2);a.xp6(1),a.AsE(" ",a.lcZ(2,2,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," ",a.lcZ(3,4,t.allStatuses[0])," ")}}function y(t,e){if(1&t&&(a.TgZ(0,"div",7),a.TgZ(1,"div",8),a._uU(2),a.ALo(3,"translate"),a.ALo(4,"memberStatus"),a.qZA(),a.TgZ(5,"div",9),a._uU(6),a.qZA(),a.YNc(7,w,4,4,"div",10),a.YNc(8,A,4,6,"div",10),a.TgZ(9,"div",11),a._UZ(10,"i",12),a.qZA(),a.qZA()),2&t){const t=a.oxw();a.xp6(2),a.AsE("",a.lcZ(3,6,"DIALOGS.CHANGE_STATUS.CURRENT_STATUS")," ",a.lcZ(4,8,t.actualStatus),""),a.xp6(4),a.Oqu(t.description),a.xp6(1),a.Q6J("ngIf",t.allStatuses.length>1),a.xp6(1),a.Q6J("ngIf",1===t.allStatuses.length),a.xp6(2),a.Q6J("innerHTML",t.changeMessage,a.oJD)}}let v=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.memberManager=i,this.groupsManager=n,this.notificatorService=s,this.translate=o,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(t=>t!==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(t){this.selectedStatus=t.value,this.submitButtonText="VALID"===this.actualStatus&&"EXPIRED"===this.selectedStatus||"VALID"===this.actualStatus&&"DISABLED"===this.selectedStatus||"VALID"===this.selectedStatus?this.changeStatusWithExpButton:this.changeStatusButton,this.changeStatusMessage(this.actualStatus,this.selectedStatus)}changeStatusMessage(t,e){if("VALID"===t)switch(e){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(e){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=""}}cancel(){this.dialogRef.close()}submit(){this.loading=!0,this.data.groupId?this.groupsManager.setGroupsMemberStatus(this.data.member.id,this.data.groupId,this.selectedStatus).subscribe(t=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(e=>{this.notificatorService.showSuccess(e),this.dialogRef.close(t)})},()=>this.loading=!1):this.memberManager.setStatus(this.data.member.id,this.selectedStatus).subscribe(t=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(e=>{this.notificatorService.showSuccess(e),this.dialogRef.close(t)})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI),a.Y36(o.uq),a.Y36(o.ff),a.Y36(r.V6),a.Y36(c.sK))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"h1",0),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,m,1,0,"mat-spinner",1),a.YNc(5,y,11,10,"div",2),a.TgZ(6,"div",3),a.TgZ(7,"button",4),a.NdJ("click",function(){return e.cancel()}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"button",5),a.NdJ("click",function(){return e.submit()}),a._uU(11),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(2),a.Oqu(a.lcZ(3,9,"DIALOGS.CHANGE_STATUS.TITLE")),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading),a.xp6(3),a.hij(" ",a.lcZ(9,11,"DIALOGS.CHANGE_STATUS.CANCEL")," "),a.xp6(2),a.Q6J("disabled",e.loading||!e.selectedStatus),a.xp6(1),a.hij(" ",e.submitButtonText," "))},directives:[s.uh,l.O5,s.H8,u.lW,h.$g,s.xY,d.KE,d.hX,p.gD,l.sg,g.ey],pipes:[c.X$,f.l],styles:[".new-line[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),t})();var T=i(16073),C=i(80340);function E(t,e){1&t&&(a.TgZ(0,"h1",7),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_FACILITY")))}function S(t,e){1&t&&(a.TgZ(0,"h1",7),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_RESOURCE")))}function k(t,e){1&t&&(a.TgZ(0,"h1",7),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_VO")))}function I(t,e){1&t&&(a.TgZ(0,"h1",7),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_GROUP")))}function x(t,e){1&t&&a._UZ(0,"mat-spinner",8)}function R(t,e){if(1&t&&(a.TgZ(0,"mat-form-field"),a._UZ(1,"input",13),a.ALo(2,"translate"),a.qZA()),2&t){const t=a.oxw(2);a.xp6(1),a.MGl("placeholder","",a.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SHORT_NAME"),":"),a.Q6J("value",t.shortName)}}function O(t,e){if(1&t&&(a.TgZ(0,"mat-form-field",14),a._UZ(1,"textarea",15),a.ALo(2,"translate"),a.qZA()),2&t){const t=a.oxw(2);a.xp6(1),a.MGl("placeholder","",a.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.DESCRIPTION"),":"),a.Q6J("formControl",t.descriptionCtrl)}}function P(t,e){if(1&t&&(a.TgZ(0,"div",9),a.YNc(1,R,3,4,"mat-form-field",10),a.TgZ(2,"mat-form-field"),a._UZ(3,"input",11),a.ALo(4,"translate"),a.TgZ(5,"mat-error"),a._uU(6),a.ALo(7,"translate"),a.qZA(),a.qZA(),a.YNc(8,O,3,4,"mat-form-field",12),a.qZA()),2&t){const t=a.oxw();a.xp6(1),a.Q6J("ngIf",2===t.dialogType),a.xp6(2),a.MGl("placeholder","",a.lcZ(4,5,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.NAME"),":"),a.Q6J("formControl",t.nameCtrl),a.xp6(3),a.hij(" ",t.invalidNameMessage.length?t.invalidNameMessage:a.lcZ(7,7,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FILL_NAME")," "),a.xp6(2),a.Q6J("ngIf",2!==t.dialogType)}}var D=function(t){return t[t.FACILITY=0]="FACILITY",t[t.RESOURCE=1]="RESOURCE",t[t.VO=2]="VO",t[t.GROUP=3]="GROUP",t}({});let M=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c){this.dialogRef=t,this.data=e,this.notificator=i,this.translateService=n,this.facilitiesManager=s,this.resourcesManager=o,this.groupsManager=r,this.vosManager=a,this.store=c,this.invalidNameMessage=this.data.dialogType===D.GROUP?this.store.get("group_name_error_message"):"",this.loading=!1,this.secondaryRegex=this.data.dialogType===D.GROUP?this.store.get("group_name_secondary_regex"):""}ngOnInit(){switch(this.theme=this.data.theme,this.dialogType=this.data.dialogType,this.dialogType){case D.FACILITY:this.nameCtrl=new T.NI(this.data.facility.name,[T.kI.required,T.kI.pattern(".*[\\S]+.*"),T.kI.maxLength(129)]),this.descriptionCtrl=new T.NI(this.data.facility.description);break;case D.RESOURCE:this.nameCtrl=new T.NI(this.data.resource.name,[T.kI.required,T.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new T.NI(this.data.resource.description);break;case D.GROUP:{const t=this.data.group.name.split(":");this.nameCtrl=new T.NI(t[t.length-1],[T.kI.required,T.kI.pattern(".*[\\S]+.*"),T.kI.pattern(this.secondaryRegex),T.kI.maxLength(129)]),this.descriptionCtrl=new T.NI(this.data.group.description);break}case D.VO:this.shortName=this.data.vo.shortName,this.nameCtrl=new T.NI(this.data.vo.name,[T.kI.required,T.kI.pattern(".*[\\S]+.*"),T.kI.maxLength(129)]),this.descriptionCtrl=new T.NI}}cancel(){this.dialogRef.close(!1)}submit(){switch(this.loading=!0,this.dialogType){case D.FACILITY:this.editFacility();break;case D.RESOURCE:this.editResource();break;case D.GROUP:this.editGroup();break;case D.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(t=>{this.notificator.showSuccess(t),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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}editGroup(){this.groupsManager.getGroupById(this.data.group.id).subscribe(t=>{const e=t;e.name=this.nameCtrl.value,e.description=this.descriptionCtrl.value,this.groupsManager.updateGroup({group:e}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.GROUP_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI),a.Y36(r.V6),a.Y36(c.sK),a.Y36(o.IQ),a.Y36(o.xk),a.Y36(o.ff),a.Y36(o.YF),a.Y36(r.d6))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"div"),a.YNc(1,E,3,3,"h1",0),a.YNc(2,S,3,3,"h1",0),a.YNc(3,k,3,3,"h1",0),a.YNc(4,I,3,3,"h1",0),a.TgZ(5,"div",1),a.YNc(6,x,1,0,"mat-spinner",2),a.YNc(7,P,9,9,"div",3),a.qZA(),a.TgZ(8,"div",4),a.TgZ(9,"button",5),a.NdJ("click",function(){return e.cancel()}),a._uU(10),a.ALo(11,"translate"),a.qZA(),a.TgZ(12,"button",6),a.NdJ("click",function(){return e.submit()}),a._uU(13),a.ALo(14,"translate"),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(1),a.Q6J("ngIf",0===e.dialogType),a.xp6(1),a.Q6J("ngIf",1===e.dialogType),a.xp6(1),a.Q6J("ngIf",2===e.dialogType),a.xp6(1),a.Q6J("ngIf",3===e.dialogType),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading),a.xp6(3),a.hij(" ",a.lcZ(11,12,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.CANCEL_BUTTON")," "),a.xp6(2),a.Q6J("disabled",e.loading||e.nameCtrl.invalid||e.descriptionCtrl.invalid),a.xp6(1),a.hij(" ",a.lcZ(14,14,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SUBMIT_BUTTON")," "))},directives:[l.O5,s.xY,s.H8,u.lW,s.uh,h.$g,d.KE,C.Nt,T.Fj,T.Q7,T.JJ,T.oH,d.TO,C.D7],pipes:[c.X$],styles:[""]}),t})();var L=i(67004),N=i(84140),z=i(43691);function Z(t,e){1&t&&a._UZ(0,"mat-spinner",8)}function B(t,e){if(1&t&&(a.TgZ(0,"div",9),a.TgZ(1,"span"),a._uU(2),a.ALo(3,"translate"),a.TgZ(4,"b"),a._uU(5),a.qZA(),a.qZA(),a._UZ(6,"br"),a.TgZ(7,"span"),a._uU(8),a.ALo(9,"translate"),a.TgZ(10,"b"),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.qZA(),a._UZ(13,"br"),a.TgZ(14,"span"),a._uU(15),a.ALo(16,"translate"),a.TgZ(17,"b"),a._uU(18),a.ALo(19,"translate"),a.qZA(),a.qZA(),a._UZ(20,"br"),a.TgZ(21,"span"),a._uU(22),a.ALo(23,"translate"),a.TgZ(24,"b"),a._uU(25),a.ALo(26,"translate"),a.qZA(),a.qZA(),a.qZA()),2&t){const t=a.oxw();a.xp6(2),a.hij(" ",a.lcZ(3,8,"DIALOGS.GROUP_SYNC_DETAIL.GROUP_NAME")," "),a.xp6(3),a.Oqu(t.group.name),a.xp6(3),a.hij(" ",a.lcZ(9,10,"DIALOGS.GROUP_SYNC_DETAIL.SYNCHRONIZATION")," "),a.xp6(3),a.Oqu(a.lcZ(12,12,t.getSynchronizationType())),a.xp6(4),a.hij(" ",a.lcZ(16,14,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_STATE")," "),a.xp6(3),a.Oqu(a.lcZ(19,16,t.getLastSyncState())),a.xp6(4),a.hij(" ",a.lcZ(23,18,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_TIME")," "),a.xp6(3),a.Oqu(a.lcZ(26,20,t.getLastSyncTime()))}}function q(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"button",10),a.NdJ("click",function(){return a.CHM(t),a.oxw().onForceStructure()}),a._uU(1),a.ALo(2,"translate"),a.qZA()}if(2&t){const t=a.oxw();a.Q6J("disabled",t.loading),a.xp6(1),a.hij(" ",a.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE_STRUCTURE")," ")}}function F(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"button",10),a.NdJ("click",function(){return a.CHM(t),a.oxw().onForce()}),a._uU(1),a.ALo(2,"translate"),a.qZA()}if(2&t){const t=a.oxw();a.Q6J("disabled",t.loading),a.xp6(1),a.hij(" ",a.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE")," ")}}let U=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.data=e,this.groupService=i,this.notificator=n,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,[L.r.GROUP_SYNC_ENABLED,L.r.GROUP_LAST_SYNC_STATE,L.r.GROUP_LAST_SYNC_TIMESTAMP,L.r.GROUP_STRUCTURE_SYNC_ENABLED,L.r.GROUP_LAST_STRUCTURE_SYNC_STATE,L.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(t=>{this.group=t,this.syncEnabled=(0,N.IL)(this.group.attributes,L.r.GROUP_SYNC_ENABLED).value,this.lastSyncState=(0,N.IL)(this.group.attributes,L.r.GROUP_LAST_SYNC_STATE).value,this.lastSyncTime=(0,N.IL)(this.group.attributes,L.r.GROUP_LAST_SYNC_TIMESTAMP).value,this.structSyncEnabled=(0,N.IL)(this.group.attributes,L.r.GROUP_STRUCTURE_SYNC_ENABLED).value,this.lastStructSyncState=(0,N.IL)(this.group.attributes,L.r.GROUP_LAST_STRUCTURE_SYNC_STATE).value,this.lastStructSyncTime=(0,N.IL)(this.group.attributes,L.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 t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI),a.Y36(o.ff),a.Y36(r.V6))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"h1",0),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,Z,1,0,"mat-spinner",1),a.YNc(5,B,27,22,"div",2),a.TgZ(6,"div",3),a.TgZ(7,"div",4),a.TgZ(8,"button",5),a.NdJ("click",function(){return e.refresh()}),a.TgZ(9,"mat-icon"),a._uU(10,"refresh"),a.qZA(),a.qZA(),a.YNc(11,q,3,4,"button",6),a.YNc(12,F,3,4,"button",6),a.TgZ(13,"button",7),a.NdJ("click",function(){return e.onCancel()}),a._uU(14),a.ALo(15,"translate"),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(2),a.Oqu(a.lcZ(3,9,"DIALOGS.GROUP_SYNC_DETAIL.TITLE")),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading),a.xp6(6),a.Q6J("ngIf",e.isStructured()),a.xp6(1),a.Q6J("ngIf",e.isBasic()||e.isStructured()),a.xp6(2),a.hij(" ",a.lcZ(15,11,"DIALOGS.GROUP_SYNC_DETAIL.CANCEL")," "))},directives:[s.uh,l.O5,s.H8,u.lW,z.Hw,h.$g,s.xY],pipes:[c.X$],styles:[""]}),t})();function H(t,e){1&t&&a._UZ(0,"mat-spinner",7)}function G(t,e){1&t&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function j(t,e){1&t&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function Y(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div",8),a.TgZ(1,"mat-form-field"),a.TgZ(2,"mat-label"),a._uU(3),a.ALo(4,"translate"),a.qZA(),a.TgZ(5,"input",9,10),a.NdJ("ngModelChange",function(e){return a.CHM(t),a.oxw().subject=e}),a.qZA(),a.YNc(7,G,3,3,"mat-error",11),a.qZA(),a.TgZ(8,"mat-form-field"),a.TgZ(9,"mat-label"),a._uU(10),a.ALo(11,"translate"),a.qZA(),a.TgZ(12,"textarea",12,13),a.NdJ("ngModelChange",function(e){return a.CHM(t),a.oxw().message=e}),a.ALo(14,"translate"),a._uU(15," "),a.qZA(),a.YNc(16,j,3,3,"mat-error",11),a.qZA(),a.qZA()}if(2&t){const t=a.MAs(6),e=a.MAs(13),i=a.oxw();a.xp6(3),a.Oqu(a.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),a.xp6(2),a.Q6J("ngModel",i.subject),a.xp6(2),a.Q6J("ngIf",t.invalid),a.xp6(3),a.Oqu(a.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),a.xp6(2),a.s9C("placeholder",a.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),a.Q6J("ngModel",i.message),a.xp6(4),a.Q6J("ngIf",e.invalid)}}let K=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.translate=e,this.notificator=i,this.rtMessages=n,this.data=s,this.storeService=o,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data.error&&this.data.error.errorId&&(this.subject=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(t=>{this.dialogRef.afterClosed().subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1")+t.ticketNumber+this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"))}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const t=this.storeService.get("config");let e=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(e=e.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),e=e.concat(this.data.error.message+"\nPerun instance: "+t+"\nRequest:\n"+this.data.error.urlWithParams+"\n\n"),this.data.error.payload){const t=/"password":".+?"/;let i=JSON.stringify(this.data.error.payload);i=i.replace(t,'"password":"####"'),e=e.concat("Payload:\n"+i+"\n\n")}return e=e.concat("Sended from new Perun Gui, version: "+i(60306).i8),e.split("\n").join("\n ")}parseMethod(t){return t?this.methodRegexp.exec(t)[1]:t}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(c.sK),a.Y36(r.V6),a.Y36(o.Hr),a.Y36(s.WI),a.Y36(r.d6))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.YNc(3,H,1,0,"mat-spinner",1),a.YNc(4,Y,17,13,"div",2),a.TgZ(5,"div",3),a.TgZ(6,"div",4),a.TgZ(7,"button",5),a.NdJ("click",function(){return e.dialogRef.close()}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"button",6),a.NdJ("click",function(){return e.sendBugReport()}),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading),a.xp6(4),a.hij(" ",a.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),a.xp6(2),a.Q6J("disabled",""===e.message||""===e.subject||e.loading),a.xp6(1),a.hij(" ",a.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},directives:[s.uh,l.O5,s.H8,u.lW,h.$g,s.xY,d.KE,d.hX,C.Nt,T.Fj,T.Q7,T.JJ,T.On,d.TO],pipes:[c.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})(),V=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.dialog=e,this.data=i}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const t=(0,N.kZ)();t.width="550px",t.data={error:this.data.error},t.autoFocus=!1,this.dialog.open(K,t)}),this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.uw),a.Y36(s.WI))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.qZA(),a.TgZ(2,"div",1),a._uU(3),a.qZA(),a.TgZ(4,"div",2),a.TgZ(5,"div",3),a.TgZ(6,"button",4),a.NdJ("click",function(){return e.onBugReportClick()}),a._uU(7),a.ALo(8,"translate"),a.qZA(),a.TgZ(9,"button",5),a.NdJ("click",function(){return e.onCloseClick()}),a._uU(10),a.ALo(11,"translate"),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(e.data.title),a.xp6(2),a.hij("\n",e.data.description,"\n"),a.xp6(3),a.Q6J("hidden","error"!==e.data.type),a.xp6(1),a.hij(" ",a.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),a.xp6(3),a.hij(" ",a.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},directives:[s.uh,s.xY,s.H8,u.lW],pipes:[c.X$],styles:[""]}),t})();var $=i(67033),J=i(83787);function Q(t,e){1&t&&a._UZ(0,"mat-spinner",3)}function W(t,e){1&t&&a._UZ(0,"th",15)}function X(t,e){if(1&t&&(a.TgZ(0,"td",16),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.hij(" ",t.userExtSource.extSource.name," ")}}function tt(t,e){1&t&&a._UZ(0,"tr",17)}function et(t,e){1&t&&a._UZ(0,"tr",18)}function it(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div"),a.TgZ(1,"div",4),a.TgZ(2,"p"),a._uU(3),a.ALo(4,"translate"),a.ALo(5,"customTranslate"),a.qZA(),a.TgZ(6,"div",5),a._uU(7),a.ALo(8,"translate"),a.ALo(9,"customTranslate"),a.qZA(),a.TgZ(10,"table",6),a.ynx(11,7),a.YNc(12,W,1,0,"th",8),a.YNc(13,X,2,1,"td",9),a.BQk(),a.YNc(14,tt,1,0,"tr",10),a.YNc(15,et,1,0,"tr",11),a.qZA(),a.qZA(),a.TgZ(16,"div",12),a.TgZ(17,"button",13),a.NdJ("click",function(){return a.CHM(t),a.oxw().onCancel()}),a._uU(18),a.ALo(19,"translate"),a.ALo(20,"customTranslate"),a.qZA(),a.TgZ(21,"button",14),a.NdJ("click",function(){return a.CHM(t),a.oxw().onSubmit()}),a._uU(22),a.ALo(23,"translate"),a.ALo(24,"customTranslate"),a.qZA(),a.qZA(),a.qZA()}if(2&t){const t=a.oxw();a.xp6(3),a.hij(" ",a.lcZ(4,7,a.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),a.xp6(4),a.hij(" ",a.lcZ(8,11,a.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),a.xp6(3),a.Q6J("dataSource",t.dataSource),a.xp6(4),a.Q6J("matHeaderRowDef",t.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",t.displayedColumns),a.xp6(3),a.hij(" ",a.lcZ(19,15,a.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),a.xp6(4),a.hij(" ",a.lcZ(23,19,a.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let nt=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.usersManagerService=i,this.translate=n,this.notificator=s,this.force=!1,this.displayedColumns=["name"],n.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new $.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 t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI),a.Y36(o.Fv),a.Y36(c.sK),a.Y36(r.V6))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA(),a.TgZ(4,"div"),a.YNc(5,Q,1,0,"mat-spinner",1),a.YNc(6,it,25,23,"div",2),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,6,a.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE"))),a.xp6(3),a.Tol(e.theme),a.xp6(1),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading))},directives:[s.uh,l.O5,h.$g,s.xY,$.BZ,$.w1,$.fO,$.Dz,$.as,$.nj,s.H8,u.lW,$.ge,$.ev,$.XQ,$.Gk],pipes:[c.X$,J.a],styles:[""]}),t})();var st=i(10901),ot=i(81391);let rt=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}ngOnInit(){this.value=this.data.value,this.title=this.data.title}onCancel(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.qZA(),a.TgZ(2,"div",1),a.TgZ(3,"textarea",2),a._uU(4),a.qZA(),a.qZA(),a.TgZ(5,"div",3),a.TgZ(6,"button",4),a.NdJ("click",function(){return e.onCancel()}),a._uU(7),a.ALo(8,"translate"),a.qZA(),a.TgZ(9,"button",5),a._uU(10),a.ALo(11,"translate"),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(e.title),a.xp6(3),a.Oqu(e.value),a.xp6(3),a.hij(" ",a.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),a.xp6(2),a.Q6J("cdkCopyToClipboard",e.value),a.xp6(1),a.hij(" ",a.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},directives:[s.uh,s.xY,st.IC,C.Nt,s.H8,u.lW,ot.i3],pipes:[c.X$],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),t})();function at(t,e){1&t&&a._UZ(0,"th",12)}function ct(t,e){if(1&t&&(a.TgZ(0,"td",13),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.hij(" ",t.displayName," ")}}function lt(t,e){1&t&&a._UZ(0,"tr",14)}function ut(t,e){1&t&&a._UZ(0,"tr",15)}let ht=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.attributesManager=s,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new $.by(this.data.attributes)}onCancel(){this.dialogRef.close(!1)}onSubmit(){const t=[];for(const i of this.data.attributes)t.push(i.id);const e={};switch(e[this.data.entity]=this.data.entityId,e.attributes=t,void 0!==this.data.secondEntity&&(e[this.data.secondEntity]=this.data.secondEntityId),this.data.entity){case"vo":this.attributesManager.setVoAttributes({vo:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"group":switch(this.data.secondEntity){case"resource":this.attributesManager.setGroupResourceAttributes({group:this.data.entityId,resource:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;default:this.attributesManager.setGroupAttributes({group:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()})}break;case"user":switch(this.data.secondEntity){case"facility":this.attributesManager.setUserFacilityAttributes({user:this.data.entityId,facility:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;default: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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI),a.Y36(r.V6),a.Y36(c.sK),a.Y36(o.H8))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.TgZ(4,"div"),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.TgZ(7,"div",2),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"table",3),a.ynx(11,4),a.YNc(12,at,1,0,"th",5),a.YNc(13,ct,2,1,"td",6),a.BQk(),a.YNc(14,lt,1,0,"tr",7),a.YNc(15,ut,1,0,"tr",8),a.qZA(),a.qZA(),a.TgZ(16,"div",9),a.TgZ(17,"button",10),a.NdJ("click",function(){return e.onCancel()}),a._uU(18),a.ALo(19,"translate"),a.qZA(),a.TgZ(20,"button",11),a.NdJ("click",function(){return e.onSubmit()}),a._uU(21),a.ALo(22,"translate"),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,8,"DIALOGS.EDIT_ATTRIBUTES.TITLE")),a.xp6(4),a.hij(" ",a.lcZ(6,10,"DIALOGS.EDIT_ATTRIBUTES.DESCRIPTION")," "),a.xp6(3),a.hij(" ",a.lcZ(9,12,"DIALOGS.EDIT_ATTRIBUTES.ASK")," "),a.xp6(2),a.Q6J("dataSource",e.dataSource),a.xp6(4),a.Q6J("matHeaderRowDef",e.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",e.displayedColumns),a.xp6(3),a.hij(" ",a.lcZ(19,14,"DIALOGS.EDIT_ATTRIBUTES.CANCEL")," "),a.xp6(3),a.hij(" ",a.lcZ(22,16,"DIALOGS.EDIT_ATTRIBUTES.SAVE")," "))},directives:[s.uh,s.xY,$.BZ,$.w1,$.fO,$.Dz,$.as,$.nj,s.H8,u.lW,$.ge,$.ev,$.XQ,$.Gk],pipes:[c.X$],styles:[""]}),t})(),dt=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,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 t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h5",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.TgZ(4,"mat-form-field"),a.TgZ(5,"textarea",2),a.NdJ("ngModelChange",function(t){return e.attributeValue=t}),a.qZA(),a.qZA(),a.qZA(),a.TgZ(6,"div",3),a.TgZ(7,"button",4),a.NdJ("click",function(){return e.cancel()}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"button",5),a.NdJ("click",function(){return e.submit()}),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE")),a.xp6(4),a.Q6J("ngModel",e.attributeValue),a.xp6(3),a.hij(" ",a.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),a.xp6(3),a.hij(" ",a.lcZ(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},directives:[s.uh,s.xY,d.KE,st.IC,C.Nt,T.Fj,T.JJ,T.On,s.H8,u.lW],pipes:[c.X$],styles:[""]}),t})(),pt=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}cancel(){this.dialogRef.close()}submit(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h5",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.TgZ(4,"div"),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.TgZ(7,"div",2),a._uU(8),a.qZA(),a.qZA(),a.TgZ(9,"div",3),a.TgZ(10,"button",4),a.NdJ("click",function(){return e.cancel()}),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.TgZ(13,"button",5),a.NdJ("click",function(){return e.submit()}),a._uU(14),a.ALo(15,"translate"),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE")),a.xp6(4),a.hij(" ",a.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),a.xp6(3),a.hij(" ",e.data.name," "),a.xp6(3),a.hij(" ",a.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),a.xp6(3),a.hij(" ",a.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},directives:[s.uh,s.xY,s.H8,u.lW],pipes:[c.X$],styles:[""]}),t})();var gt=i(39571);function ft(t,e){if(1&t&&(a.TgZ(0,"app-alert",9),a._uU(1),a.qZA()),2&t){const t=a.oxw();a.xp6(1),a.Oqu(t.pendingEmailsMessage)}}function mt(t,e){1&t&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,a.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}let bt=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.translate=i,this.notificator=n,this.usersManagerService=s,this.authService=o,this.pendingMails=[],i.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(t=>this.successMessage=t),i.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(t=>this.pendingEmailsMessageStart=t),i.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(t=>this.pendingEmailsMessageEnd=t)}ngOnInit(){this.emailControl=new T.NI(null,[T.kI.required,T.kI.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(t=>{this.pendingMails=t.filter((t,e,i)=>e===i.indexOf(t));let e="";this.pendingMails.forEach(t=>e+=`${t===this.pendingMails[0]?"":", "}${t}`),console.log(e),this.pendingEmailsMessage=this.pendingEmailsMessageStart+e+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 t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI),a.Y36(c.sK),a.Y36(r.V6),a.Y36(o.Fv),a.Y36(r.e8))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA(),a.TgZ(4,"div",1),a.YNc(5,ft,2,1,"app-alert",2),a.TgZ(6,"mat-form-field",3),a.TgZ(7,"label",3),a._UZ(8,"input",4),a.ALo(9,"translate"),a.ALo(10,"customTranslate"),a.qZA(),a.YNc(11,mt,4,5,"mat-error",5),a.qZA(),a.qZA(),a.TgZ(12,"div",6),a.TgZ(13,"button",7),a.NdJ("click",function(){return e.onCancel()}),a._uU(14),a.ALo(15,"translate"),a.ALo(16,"customTranslate"),a.qZA(),a.TgZ(17,"button",8),a.NdJ("click",function(){return e.onSubmit()}),a._uU(18),a.ALo(19,"translate"),a.ALo(20,"customTranslate"),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,8,a.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),a.xp6(4),a.Q6J("ngIf",e.pendingMails.length),a.xp6(3),a.s9C("placeholder",a.lcZ(9,12,a.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),a.Q6J("formControl",e.emailControl),a.xp6(3),a.Q6J("ngIf",e.emailControl.invalid),a.xp6(3),a.hij(" ",a.lcZ(15,16,a.lcZ(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),a.xp6(3),a.Q6J("disabled",!e.emailControl.valid),a.xp6(1),a.hij(" ",a.lcZ(19,20,a.lcZ(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},directives:[s.uh,s.xY,l.O5,d.KE,C.Nt,T.Fj,T.Q7,T.JJ,T.oH,s.H8,u.lW,gt.w,d.TO],pipes:[c.X$,J.a],styles:[""]}),t})();function _t(t,e){1&t&&a._UZ(0,"mat-spinner",6)}function wt(t,e){1&t&&a._UZ(0,"th",15)}function At(t,e){if(1&t&&(a.TgZ(0,"td",16),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.hij(" ",t," ")}}function yt(t,e){1&t&&a._UZ(0,"tr",17)}function vt(t,e){1&t&&a._UZ(0,"tr",18)}function Tt(t,e){if(1&t&&(a.TgZ(0,"div",7),a.TgZ(1,"p"),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,wt,1,0,"th",11),a.YNc(10,At,2,1,"td",12),a.BQk(),a.YNc(11,yt,1,0,"tr",13),a.YNc(12,vt,1,0,"tr",14),a.qZA(),a.qZA()),2&t){const t=a.oxw();a.xp6(2),a.hij(" ",a.lcZ(3,5,t.data.description)," "),a.xp6(3),a.hij(" ",a.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "),a.xp6(2),a.Q6J("dataSource",t.dataSource),a.xp6(4),a.Q6J("matHeaderRowDef",t.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",t.displayedColumns)}}let Ct=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new $.by(this.data.items)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI))},t.\u0275cmp=a.Xpm({type:t,selectors:[["perun-web-apps-universal-remove-items-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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"h1",0),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,_t,1,0,"mat-spinner",1),a.YNc(5,Tt,13,9,"div",2),a.TgZ(6,"div",3),a.TgZ(7,"button",4),a.NdJ("click",function(){return e.onCancel()}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"button",5),a.NdJ("click",function(){return e.onSubmit()}),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(2),a.Oqu(a.lcZ(3,9,e.data.title)),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading),a.xp6(3),a.hij(" ",a.lcZ(9,11,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),a.xp6(2),a.Q6J("disabled",e.loading),a.xp6(1),a.hij(" ",a.lcZ(12,13,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," "))},directives:[s.uh,l.O5,s.H8,u.lW,h.$g,s.xY,$.BZ,$.w1,$.fO,$.Dz,$.as,$.nj,$.ge,$.ev,$.XQ,$.Gk],pipes:[c.X$],styles:[""]}),t})();var Et=i(71709),St=i(91010);let kt=(()=>{class t{transform(t){const e=t.split(":");return e[e.length-1]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=a.Yjl({name:"parseGroupName",type:t,pure:!0}),t})();function It(t,e){1&t&&a._UZ(0,"mat-spinner",7)}function xt(t,e){1&t&&(a.TgZ(0,"app-alert"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.NO_PATHS")))}function Rt(t,e){1&t&&(a.TgZ(0,"span",23),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function Ot(t,e){1&t&&(a.TgZ(0,"span",23),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}const Pt=function(t){return{"min-width":t}};function Dt(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-tree-node",16),a.TgZ(1,"li",17),a.TgZ(2,"div",18),a.NdJ("click",function(){const e=a.CHM(t).$implicit;return a.oxw(3).navigate(e.id,e.include)}),a._UZ(3,"button",19),a.TgZ(4,"div",20),a.TgZ(5,"span"),a._uU(6),a.ALo(7,"parseGroupName"),a.qZA(),a.YNc(8,Rt,3,3,"span",21),a.YNc(9,Ot,3,3,"span",21),a.qZA(),a.TgZ(10,"span",22),a._uU(11),a.qZA(),a.qZA(),a.qZA(),a.qZA()}if(2&t){const t=e.$implicit,i=a.oxw(3);a.xp6(2),a.ekj("cursor-pointer",t.direct||t.include)("act-disabled",!t.direct&&!t.include),a.xp6(2),a.Q6J("ngStyle",a.VKq(11,Pt,i.getMinWidth(t.level))),a.xp6(2),a.Oqu(a.lcZ(7,9,t.name)),a.xp6(2),a.Q6J("ngIf",t.direct),a.xp6(1),a.Q6J("ngIf",t.include),a.xp6(2),a.Oqu(t.description)}}function Mt(t,e){1&t&&(a.TgZ(0,"span",23),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function Lt(t,e){1&t&&(a.TgZ(0,"span",23),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}function Nt(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-nested-tree-node"),a.TgZ(1,"li"),a.TgZ(2,"div",17),a.TgZ(3,"button",24),a.TgZ(4,"mat-icon",25),a._uU(5),a.qZA(),a.qZA(),a.TgZ(6,"div",18),a.NdJ("click",function(){const e=a.CHM(t).$implicit;return a.oxw(3).navigate(e.id,e.include)}),a.TgZ(7,"div",20),a.TgZ(8,"span"),a._uU(9),a.ALo(10,"parseGroupName"),a.qZA(),a.YNc(11,Mt,3,3,"span",21),a.YNc(12,Lt,3,3,"span",21),a.qZA(),a.TgZ(13,"span",22),a._uU(14),a.qZA(),a.qZA(),a.qZA(),a.TgZ(15,"ul"),a.GkF(16,26),a.qZA(),a.qZA(),a.qZA()}if(2&t){const t=e.$implicit,i=a.oxw(3);a.xp6(3),a.uIk("aria-label","Toggle "+t.name),a.xp6(2),a.hij(" ",i.treeControl.isExpanded(t)?"expand_more":"chevron_right"," "),a.xp6(1),a.ekj("cursor-pointer",t.direct||t.include)("act-disabled",!t.direct&&!t.include),a.xp6(1),a.Q6J("ngStyle",a.VKq(15,Pt,i.getMinWidth(t.level))),a.xp6(2),a.Oqu(a.lcZ(10,13,t.name)),a.xp6(2),a.Q6J("ngIf",t.direct),a.xp6(1),a.Q6J("ngIf",t.include),a.xp6(2),a.Oqu(t.description),a.xp6(1),a.ekj("example-tree-invisible",!i.treeControl.isExpanded(t))}}function zt(t,e){if(1&t&&(a.TgZ(0,"mat-tree",13),a.YNc(1,Dt,12,13,"mat-tree-node",14),a.YNc(2,Nt,17,17,"mat-nested-tree-node",15),a.qZA()),2&t){const t=a.oxw(2);a.Q6J("dataSource",t.dataSource)("treeControl",t.treeControl),a.xp6(2),a.Q6J("matTreeNodeDefWhen",t.hasChild)}}function Zt(t,e){if(1&t&&(a.TgZ(0,"div",8),a.TgZ(1,"p"),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"mat-form-field",9),a._UZ(5,"input",10),a.ALo(6,"translate"),a.qZA(),a.YNc(7,xt,3,3,"app-alert",11),a.YNc(8,zt,3,3,"mat-tree",12),a.qZA()),2&t){const t=a.oxw();a.xp6(2),a.Oqu(a.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INFO")),a.xp6(3),a.s9C("placeholder",a.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.FILTER")),a.Q6J("formControl",t.formControl),a.xp6(2),a.Q6J("ngIf",!t.dataSource.data.length),a.xp6(1),a.Q6J("ngIf",t.dataSource.data.length)}}const Bt=function(t){return{name:t}};let qt=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.groupsManagerService=i,this.treeControl=new Et.VY(t=>t.children),this.dataSource=new St.WX,this.groupTree=[],this.paths=[],this.formControl=new T.NI(""),this.userName="",this.hasChild=(t,e)=>!!e.children&&e.children.length>0}recursiveSearch(t,e,i){for(let n=0;n{this.groupTree=this.recursiveSearch(this.groupTree,t,0)}),this.groupTree.length&&(this.groupTree=this.groupTree[0].children)}ngOnInit(){this.loading=!0,this.groupsManagerService.getIndirectMembershipPaths(this.data.member.id,this.data.groupId).subscribe(t=>{this.paths=t,this.createGroupTree(this.paths),this.dataSource.data=this.groupTree,this.loading=!1}),this.formControl.valueChanges.subscribe(t=>{const e=t.trim().toLowerCase(),i=this.paths.filter(t=>t.filter(t=>t.name.includes(e)).length);this.createGroupTree(i),this.dataSource.data=this.groupTree}),this.userName=(0,N.bD)(this.data.member.user)}onCancel(){this.dialogRef.close()}navigate(t,e=!1){window.open(`/organizations/${this.data.member.voId}/groups/${t}${e?"/settings/relations":""}`,"_blank")}getMinWidth(t){return 400-40*t+"px"}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI),a.Y36(o.ff))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"div",0),a.TgZ(1,"h1",1),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,It,1,0,"mat-spinner",2),a.YNc(5,Zt,9,9,"div",3),a.TgZ(6,"div",4),a.TgZ(7,"div",5),a.TgZ(8,"button",6),a.NdJ("click",function(){return e.onCancel()}),a._uU(9),a.ALo(10,"translate"),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.xp6(2),a.Oqu(a.xi3(3,4,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.TITLE",a.VKq(9,Bt,e.userName))),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading),a.xp6(4),a.hij(" ",a.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.CLOSE")," "))},directives:[s.uh,l.O5,s.H8,u.lW,h.$g,s.xY,d.KE,C.Nt,T.Fj,T.JJ,T.oH,gt.w,St.gi,St.fQ,St.uo,St.eu,l.PC,St.GZ,z.Hw,St.Ar],pipes:[c.X$,kt],styles:[".example-tree-invisible[_ngcontent-%COMP%]{display:none}.example-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .example-tree[_ngcontent-%COMP%] ul[_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:auto!important}"]}),t})();var Ft=i(57629);let Ut=(()=>{class t{constructor(t,e){this.dialogRef=t,this.router=e}onClose(){this.router.navigate([]),this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(Ft.F0))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.TgZ(4,"app-alert",2),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.qZA(),a.TgZ(7,"div",3),a.TgZ(8,"button",4),a.NdJ("click",function(){return e.onClose()}),a._uU(9),a.ALo(10,"translate"),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE")),a.xp6(4),a.Oqu(a.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),a.xp6(4),a.hij(" ",a.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},directives:[s.uh,s.xY,gt.w,s.H8,u.lW],pipes:[c.X$],styles:[""]}),t})();var Ht=i(54810),Gt=i(15812),jt=i(58506);function Yt(t,e){1&t&&(a.TgZ(0,"mat-radio-button",16),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.VO_RULES")," "))}function Kt(t,e){1&t&&(a.TgZ(0,"mat-radio-button",17),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.GROUP_RULES")," "))}function Vt(t,e){1&t&&(a.TgZ(0,"app-alert",18),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.STATUS_CHANGE_INFO")))}let $t=(()=>{class t{constructor(t){this.dialogRef=t,this.canExtendMembership=!1,this.expirationChanged=new a.vpe,this.statusChange=new a.vpe,this.expirationControl=new T.NI(null)}ngOnInit(){const t=new Date;this.currentDate=(0,l.p6)(new Date(t.getFullYear(),t.getMonth(),t.getDate()),"yyyy-MM-dd","en_US"),"never"!==this.newExpiration&&this.expirationControl.setValue(this.newExpiration)}parseDate(t){return(0,l.p6)(t,"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,l.p6)(this.expirationControl.value,"yyyy-MM-dd","en"),this.expirationControl.setValue((0,l.p6)(this.expirationControl.value,"yyyy-MM-dd","en"))}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so))},t.\u0275cmp=a.Xpm({type:t,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(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.TgZ(2,"p"),a.TgZ(3,"strong"),a._uU(4),a.ALo(5,"translate"),a.qZA(),a._uU(6),a.ALo(7,"parseDate"),a.qZA(),a.TgZ(8,"p"),a.TgZ(9,"strong"),a._uU(10),a.ALo(11,"translate"),a.qZA(),a._uU(12),a.ALo(13,"parseDate"),a.qZA(),a.TgZ(14,"mat-radio-group",2),a.NdJ("ngModelChange",function(t){return e.newExpiration=t}),a.TgZ(15,"mat-radio-button",3),a.TgZ(16,"mat-form-field",4),a.NdJ("click",function(){return a.CHM(t),a.MAs(23).open()}),a.TgZ(17,"mat-label"),a._uU(18),a.ALo(19,"translate"),a.qZA(),a.TgZ(20,"input",5),a.NdJ("dateChange",function(){return e.setExpiration()}),a.qZA(),a._UZ(21,"mat-datepicker-toggle",6),a._UZ(22,"mat-datepicker",7,8),a.qZA(),a.qZA(),a.YNc(24,Yt,3,3,"mat-radio-button",9),a.YNc(25,Kt,3,3,"mat-radio-button",10),a.TgZ(26,"mat-radio-button",11),a._uU(27),a.ALo(28,"translate"),a.qZA(),a.qZA(),a.YNc(29,Vt,3,3,"app-alert",12),a.qZA(),a.TgZ(30,"div",13),a.TgZ(31,"button",14),a.NdJ("click",function(){return e.onCancel()}),a._uU(32),a.ALo(33,"translate"),a.qZA(),a.TgZ(34,"button",15),a.NdJ("click",function(){return e.onChange()}),a._uU(35),a.ALo(36,"translate"),a.qZA(),a.qZA(),a.qZA()}if(2&t){const t=a.MAs(23);a.xp6(4),a.Oqu(a.lcZ(5,21,"DIALOGS.CHANGE_EXPIRATION.CURRENT_EXPIRATION")),a.xp6(2),a.hij(" ",a.lcZ(7,23,e.currentExpiration),""),a.xp6(4),a.Oqu(a.lcZ(11,25,"DIALOGS.CHANGE_EXPIRATION.NEW_EXPIRATION")),a.xp6(2),a.hij(" ",e.newExpiration?a.lcZ(13,27,e.newExpiration):"never",""),a.xp6(2),a.Q6J("ngModel",e.newExpiration),a.xp6(1),a.s9C("value",e.expirationControl.value),a.xp6(3),a.Oqu(a.lcZ(19,29,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),a.xp6(2),a.Q6J("min",e.minDate)("max",e.maxDate)("formControl",e.expirationControl)("matDatepicker",t),a.xp6(1),a.Q6J("for",t)("disabled",!1),a.xp6(1),a.Q6J("disabled",!1),a.xp6(2),a.Q6J("ngIf",e.canExtendMembership&&"vo"===e.mode),a.xp6(1),a.Q6J("ngIf",e.canExtendMembership&&"group"===e.mode),a.xp6(2),a.hij(" ",a.lcZ(28,31,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),a.xp6(2),a.Q6J("ngIf","EXPIRED"===e.status&&("never"===e.newExpiration||e.parseDate(e.expirationControl.value)>e.currentDate)),a.xp6(3),a.hij(" ",a.lcZ(33,33,"DIALOGS.CHANGE_EXPIRATION.CANCEL")," "),a.xp6(2),a.Q6J("disabled",e.expirationControl.invalid),a.xp6(1),a.hij(" ",a.lcZ(36,35,"DIALOGS.CHANGE_EXPIRATION.SAVE")," ")}},directives:[s.xY,Ht.VQ,T.JJ,T.On,Ht.U0,d.KE,d.hX,C.Nt,T.Fj,Gt.hl,T.oH,Gt.nW,d.R9,Gt.Mq,l.O5,s.H8,u.lW,gt.w],pipes:[c.X$,jt.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}"]}),t})();function Jt(t,e){1&t&&a._UZ(0,"mat-spinner",4)}function Qt(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"perun-web-apps-change-expiration-dialog",5),a.NdJ("statusChange",function(){return a.CHM(t),a.oxw().changeStatus=!0})("expirationChanged",function(e){return a.CHM(t),a.oxw().onExpirationChanged(e)}),a.qZA()}if(2&t){const t=a.oxw();a.Q6J("minDate",t.minDate)("maxDate",t.maxDate)("currentExpiration",t.currentExpiration)("newExpiration",t.newExpiration)("canExtendMembership",t.canExtendMembership)("mode","group")("status",t.status)}}let Wt=(()=>{class t{constructor(t,e,i,n,s,o,r){this.dialogRef=t,this.data=e,this.attributesManagerService=i,this.memberManager=n,this.groupManager=s,this.translate=o,this.notificator=r,this.loading=!1,this.expirationAttr=null,this.canExtendMembership=!1,o.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.status=this.data.status,this.loading=!0;const t=new Date;"VALID"!==this.data.status?this.maxDate="EXPIRED"===this.data.status?void 0:new Date(t.getFullYear(),t.getMonth(),t.getDate()):this.minDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=this.expirationAttr&&this.expirationAttr.value?this.expirationAttr.value:"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&("VALID"!==this.data.status?(this.newExpiration=(0,l.p6)(t,"yyyy-MM-dd","en"),this.maxDate=t):this.newExpiration="never"),"VALID"===this.data.status?this.attributesManagerService.getGroupAttributeByName(this.data.groupId,L.r.GROUP_DEF_EXPIRATION_RULES).subscribe(t=>{null!==t.value?this.groupManager.canExtendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe(t=>{this.canExtendMembership=!!t,this.loading=!1},()=>this.loading=!1):this.loading=!1},()=>this.loading=!1):this.loading=!1}onExpirationChanged(t){this.loading=!0,"groupRules"===t?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"===t?null:t,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(t=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0,member:t})})},()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0}))},()=>this.loading=!1))}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI),a.Y36(o.H8),a.Y36(o.uq),a.Y36(o.ff),a.Y36(c.sK),a.Y36(r.V6))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"div",0),a.TgZ(1,"h1",1),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,Jt,1,0,"mat-spinner",2),a.YNc(5,Qt,1,7,"perun-web-apps-change-expiration-dialog",3),a.qZA()),2&t&&(a.xp6(2),a.Oqu(a.lcZ(3,3,"DIALOGS.CHANGE_GROUP_EXPIRATION.TITLE")),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading))},directives:[s.uh,l.O5,h.$g,$t],pipes:[c.X$],styles:[""]}),t})();var Xt=i(90888);function te(t,e){1&t&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.FIELD_EMPTY")))}function ee(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"form",5),a.TgZ(1,"div",6),a.TgZ(2,"mat-form-field"),a.TgZ(3,"mat-label"),a._uU(4),a.ALo(5,"translate"),a.qZA(),a._UZ(6,"input",7),a.TgZ(7,"mat-icon",8),a.NdJ("click",function(){a.CHM(t);const e=a.oxw();return e.showOldPassword=!e.showOldPassword}),a._uU(8),a.qZA(),a.YNc(9,te,3,3,"mat-error",9),a.qZA(),a._UZ(10,"perun-web-apps-password-form",10),a.qZA(),a.qZA()}if(2&t){const t=a.oxw();a.Q6J("formGroup",t.formGroup),a.xp6(4),a.Oqu(a.lcZ(5,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.OLD_PASSWORD")),a.xp6(2),a.Q6J("type",t.showOldPassword?"text":"password"),a.xp6(2),a.hij(" ",t.showOldPassword?"visibility_off":"visibility"," "),a.xp6(1),a.Q6J("ngIf",t.oldPwd.hasError("required")),a.xp6(1),a.Q6J("formGroup",t.formGroup)("namespace",t.data.namespace)}}function ie(t,e){1&t&&a._UZ(0,"mat-spinner",11)}function ne(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div",12),a.TgZ(1,"div",13),a.TgZ(2,"button",14),a.NdJ("click",function(){return a.CHM(t),a.oxw().close()}),a._uU(3),a.ALo(4,"translate"),a.qZA(),a.TgZ(5,"button",15),a.NdJ("click",function(){return a.CHM(t),a.oxw().changePassword()}),a._uU(6),a.ALo(7,"translate"),a.qZA(),a.qZA(),a.qZA()}if(2&t){const t=a.oxw();a.xp6(3),a.hij(" ",a.lcZ(4,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CANCEL")," "),a.xp6(2),a.Q6J("disabled",t.formGroup.invalid||t.formGroup.pending),a.xp6(1),a.hij(" ",a.lcZ(7,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CHANGE")," ")}}let se=(()=>{class t{constructor(t,e,i,n,s,o,r){this.dialogRef=t,this.data=e,this._formBuilder=i,this.usersManagerService=n,this.apiRequestConfiguration=s,this.notificator=o,this.translate=r,this.showOldPassword=!1,r.get("SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.formGroup=this._formBuilder.group({oldPasswordCtrl:["",T.kI.required],passwordCtrl:["",T.kI.required,[(0,n.yT)(this.data.namespace,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""]},{validators:N.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(this.data.login,this.data.namespace,this.newPwd.value,this.oldPwd.value,!0).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)})}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI),a.Y36(T.qu),a.Y36(o.Fv),a.Y36(r.F5),a.Y36(r.V6),a.Y36(c.sK))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.YNc(4,ee,11,9,"form",2),a.YNc(5,ie,1,0,"mat-spinner",3),a.qZA(),a.YNc(6,ne,8,7,"div",4)),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.TITLE")),a.xp6(3),a.Q6J("ngIf",!e.loading),a.xp6(1),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading))},directives:[s.uh,s.xY,l.O5,T._Y,T.JL,T.sg,d.KE,d.hX,T.Fj,C.Nt,T.JJ,T.u,T.Q7,z.Hw,d.R9,Xt.G,d.TO,h.$g,s.H8,u.lW],pipes:[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}"]}),t})();function oe(t,e){1&t&&a._UZ(0,"mat-spinner",4)}function re(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"perun-web-apps-change-expiration-dialog",5),a.NdJ("statusChange",function(){return a.CHM(t),a.oxw().changeStatus=!0})("expirationChanged",function(e){return a.CHM(t),a.oxw().onExpirationChanged(e)}),a.qZA()}if(2&t){const t=a.oxw();a.Q6J("minDate",t.minDate)("maxDate",t.maxDate)("currentExpiration",t.currentExpiration)("newExpiration",t.newExpiration)("canExtendMembership",t.canExtendMembership)("mode","vo")("status",t.status)}}let ae=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.attributesManagerService=i,this.memberManager=n,this.translate=s,this.notificator=o,this.loading=!1,this.expirationAttr=null,this.canExtendMembership=!1,s.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.status=this.data.status,this.loading=!0;const t=new Date;"VALID"!==this.data.status?this.maxDate="EXPIRED"===this.data.status?void 0:new Date(t.getFullYear(),t.getMonth(),t.getDate()):this.minDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=this.expirationAttr&&this.expirationAttr.value?this.expirationAttr.value:"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&("VALID"!==this.data.status?(this.newExpiration=(0,l.p6)(t,"yyyy-MM-dd","en"),this.maxDate=t):this.newExpiration="never"),"VALID"===this.data.status?this.attributesManagerService.getVoAttributeByName(this.data.voId,L.r.VO_DEF_EXPIRATION_RULES).subscribe(t=>{null!==t.value?this.memberManager.canExtendMembership(this.data.memberId).subscribe(t=>{this.canExtendMembership=!!t,this.loading=!1},()=>this.loading=!1):this.loading=!1},()=>this.loading=!1):this.loading=!1}onExpirationChanged(t){this.loading=!0,"voRules"===t?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"===t?null:t,this.attributesManagerService.setMemberAttribute({member:this.data.memberId,attribute:this.expirationAttr}).subscribe(()=>{this.changeStatus&&"EXPIRED"===this.status?this.memberManager.setStatus(this.data.memberId,"VALID").subscribe(t=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0,member:t})})},()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0}))},()=>this.loading=!1))}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI),a.Y36(o.H8),a.Y36(o.uq),a.Y36(c.sK),a.Y36(r.V6))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"div",0),a.TgZ(1,"h1",1),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,oe,1,0,"mat-spinner",2),a.YNc(5,re,1,7,"perun-web-apps-change-expiration-dialog",3),a.qZA()),2&t&&(a.xp6(2),a.Oqu(a.lcZ(3,3,"DIALOGS.CHANGE_VO_EXPIRATION.TITLE")),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading))},directives:[s.uh,l.O5,h.$g,$t],pipes:[c.X$],styles:[""]}),t})();function ce(t,e){1&t&&a._UZ(0,"mat-spinner",4)}function le(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"perun-web-apps-change-expiration-dialog",5),a.NdJ("expirationChanged",function(e){return a.CHM(t),a.oxw().onExpirationChanged(e)}),a.qZA()}if(2&t){const t=a.oxw();a.Q6J("minDate",t.minDate)("currentExpiration",t.currentExpiration)("newExpiration",t.newExpiration)("mode","sponsor")}}let ue=(()=>{class t{constructor(t,e,i,n,s,o,r){this.dialogRef=t,this.data=e,this.attributesManagerService=i,this.memberManager=n,this.groupManager=s,this.translate=o,this.notificator=r,this.loading=!1,o.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.loading=!0,this.currentExpiration=this.data.sponsor.validityTo?this.data.sponsor.validityTo:"never",this.newExpiration=this.currentExpiration;const t=new Date;this.minDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()),this.loading=!1}onExpirationChanged(t){this.loading=!0,this.memberManager.updateSponsorshipValidity(this.data.memberId,this.data.sponsor.user.id,"never"===t?null:t).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI),a.Y36(o.H8),a.Y36(o.uq),a.Y36(o.ff),a.Y36(c.sK),a.Y36(r.V6))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"div",0),a.TgZ(1,"h1",1),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,ce,1,0,"mat-spinner",2),a.YNc(5,le,1,4,"perun-web-apps-change-expiration-dialog",3),a.qZA()),2&t&&(a.xp6(2),a.Oqu(a.lcZ(3,3,"DIALOGS.CHANGE_SPONSORSHIP_EXPIRATION.TITLE")),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading))},directives:[s.uh,l.O5,h.$g,$t],pipes:[c.X$],styles:[""]}),t})();function he(t,e){1&t&&a._UZ(0,"mat-spinner",4)}function de(t,e){1&t&&(a.TgZ(0,"span",11),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function pe(t,e){1&t&&(a.TgZ(0,"span",11),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function ge(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-radio-group",12),a.NdJ("ngModelChange",function(e){return a.CHM(t),a.oxw(2).asyncValidation=e}),a.TgZ(1,"span",13),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"mat-radio-button",14),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.TgZ(7,"mat-radio-button",14),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.qZA()}if(2&t){const t=a.oxw(2);a.Q6J("ngModel",t.asyncValidation),a.xp6(2),a.hij(" ",a.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE"),": "),a.xp6(2),a.Q6J("value",!1),a.xp6(1),a.hij(" ",a.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),a.xp6(2),a.Q6J("value",!0),a.xp6(1),a.hij(" ",a.lcZ(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," ")}}function fe(t,e){1&t&&(a.TgZ(0,"span",11),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function me(t,e){1&t&&(a.TgZ(0,"span",11),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function be(t,e){if(1&t&&(a.TgZ(0,"div",5),a.TgZ(1,"p",6),a._uU(2),a.TgZ(3,"span",7),a._uU(4),a.qZA(),a._uU(5),a.TgZ(6,"span",7),a._uU(7),a.qZA(),a.qZA(),a.TgZ(8,"p"),a.TgZ(9,"strong",8),a._uU(10),a.ALo(11,"translate"),a.qZA(),a._uU(12),a.qZA(),a.TgZ(13,"p"),a.TgZ(14,"strong",8),a._uU(15),a.ALo(16,"translate"),a.qZA(),a._uU(17),a.qZA(),a.YNc(18,de,3,3,"span",9),a.YNc(19,pe,3,3,"span",9),a.YNc(20,ge,10,12,"mat-radio-group",10),a.YNc(21,fe,3,3,"span",9),a.YNc(22,me,3,3,"span",9),a.qZA()),2&t){const t=a.oxw();a.xp6(2),a.hij(" ",t.group.name," "),a.xp6(2),a.hij("#",t.group.id,""),a.xp6(1),a.hij(" - ",t.resource.name," "),a.xp6(2),a.hij("#",t.resource.id,""),a.xp6(3),a.hij("",a.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT"),":"),a.xp6(2),a.hij(" ",t.status," "),a.xp6(3),a.hij("",a.lcZ(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW"),":"),a.xp6(2),a.hij(" ",t.getReversedStatus()," "),a.xp6(1),a.Q6J("ngIf","INACTIVE"===t.status),a.xp6(1),a.Q6J("ngIf","ACTIVE"===t.status),a.xp6(1),a.Q6J("ngIf","INACTIVE"===t.status),a.xp6(1),a.Q6J("ngIf","INACTIVE"===t.status&&!1===t.asyncValidation),a.xp6(1),a.Q6J("ngIf","INACTIVE"===t.status&&!0===t.asyncValidation)}}function _e(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div",15),a.TgZ(1,"button",16),a.NdJ("click",function(){return a.CHM(t),a.oxw().onCancel()}),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"button",17),a.NdJ("click",function(){return a.CHM(t),a.oxw().onSubmit()}),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.qZA()}if(2&t){const t=a.oxw();a.xp6(2),a.hij(" ",a.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),a.xp6(2),a.Q6J("disabled",t.loading),a.xp6(1),a.hij(" ",a.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG."+("ACTIVE"===t.status?"DEACTIVATE":"ACTIVATE"))," ")}}let we=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.data=e,this.resourceService=i,this.groupService=n,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(t=>{this.resource=t,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 t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI),a.Y36(o.xk),a.Y36(o.ff))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"h1",0),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,he,1,0,"mat-spinner",1),a.YNc(5,be,23,17,"div",2),a.YNc(6,_e,7,7,"div",3),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(2),a.Oqu(a.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading))},directives:[s.uh,l.O5,h.$g,s.xY,Ht.VQ,T.JJ,T.On,Ht.U0,s.H8,u.lW],pipes:[c.X$],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),t})()},84534:function(t,e,i){"use strict";i.d(e,{hT:function(){return s},Kd:function(){return r},YH:function(){return a}});var n=i(31572);let s=(()=>{class t{constructor(t){this.elementRef=t}ngOnInit(){this.elementRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq))},t.\u0275dir=n.lG2({type:t,selectors:[["","perunWebAppsAutoFocus",""]]}),t})();var o=i(68416);let r=(()=>{class t{constructor(t,e){this.el=t,this.router=e}onClick(){this.router.forceNavigate(this.perunWebAppsForceRouterLink)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(o.xw))},t.\u0275dir=n.lG2({type:t,selectors:[["","perunWebAppsForceRouterLink",""]],hostBindings:function(t,e){1&t&&n.NdJ("click",function(){return e.onClick()})},inputs:{perunWebAppsForceRouterLink:"perunWebAppsForceRouterLink"}}),t})(),a=(()=>{class t{constructor(){}onClick(t){if(1===t.button&&null!=this.perunWebAppsMiddleClickRouterLink){const t=this.perunWebAppsMiddleClickRouterLink.join("/"),e=location.search;window.open(t+e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(t,e){1&t&&n.NdJ("mouseup",function(t){return e.onClick(t)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),t})()},14732:function(t,e,i){"use strict";i.d(e,{u:function(){return n},m:function(){return s}});var n=function(t){return t.PERUNADMIN="PERUNADMIN",t.PERUNOBSERVER="PERUNOBSERVER",t.VOADMIN="VOADMIN",t.GROUPADMIN="GROUPADMIN",t.SELF="SELF",t.FACILITYADMIN="FACILITYADMIN",t.FACILITIYOBSERVER="FACILITYOBSERVER",t.RESOURCEADMIN="RESOURCEADMIN",t.RESOURCESELFSERVICE="RESOURCESELFSERVICE",t.REGISTRAR="REGISTRAR",t.ENGINE="ENGINE",t.RPC="RPC",t.NOTIFICATIONS="NOTIFICATIONS",t.SERVICEUSER="SERVICEUSER",t.SPONSOR="SPONSOR",t.VOOBSERVER="VOOBSERVER",t.TOPGROUPCREATOR="TOPGROUPCREATOR",t.SECURITYADMIN="SECURITYADMIN",t.CABINETADMIN="CABINETADMIN",t.UNKNOWNROLENAME="UNKNOWNROLENAME",t}({});class s{constructor(t){this.id=t.id,this.name=t.name,this.parentGroupId=t.parentGroupId,this.voId=t.voId,this.shortName=t.shortName,this.description=t.description,this.attributes=t.attributes,this.beanName=t.beanName}addChild(t){null==this.children?this.children=[t]:this.children.push(t)}}},18820:function(t,e,i){"use strict";i.d(e,{E3:function(){return p},yT:function(){return g.y}});var n=i(61511),s=i(66283),o=i(36922),r=i(16073),a=i(80340),c=i(48160),l=i(67806),u=i(43691),h=i(22727),d=i(31572);let p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d.oAB({type:t}),t.\u0275inj=d.cJS({providers:[],imports:[[n.ez,s.lN,o.AV,r.UX,a.c,c.aw,l.Cq,u.Ps,h.r]]}),t})();var g=i(63618);i(90888)},90888:function(t,e,i){"use strict";i.d(e,{G:function(){return v}});var n=i(63618),s=i(68416),o=i(65249),r=i(31572),a=i(48160),c=i(16073),l=i(66283),u=i(36922),h=i(80340),d=i(61511),p=i(43691),g=i(39571),f=i(67806);function m(t,e){1&t&&r._UZ(0,"mat-spinner",12),2&t&&r.Q6J("diameter",18)}function b(t,e){if(1&t&&(r.TgZ(0,"mat-icon",13),r._uU(1," error "),r.qZA()),2&t){const t=r.oxw();r.Q6J("matTooltip",t.getErrorTooltip())("matTooltipDisabled",!t.formGroup.get("passwordCtrl").hasError("backendError"))}}function _(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function w(t,e){if(1&t&&(r.TgZ(0,"mat-error",14),r._uU(1),r.qZA()),2&t){const t=r.oxw();r.Q6J("matTooltip",t.getErrorTooltip()),r.xp6(1),r.Oqu(t.getErrorTooltip())}}function A(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function y(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let v=(()=>{class t{constructor(t,e,i){this.translator=t,this.usersManagerService=e,this.store=i,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.multiLanguage=!1,this.language="en",this.allPasswordRequirements=this.store.get("password_requirements_help"),this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new n.S}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(t=>{const e=t.userAttributes.find(t=>"preferredLanguage"===t.friendlyName);this.language=e&&e.value?e.value.toString():"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 t=this.formGroup.get("passwordCtrl").getError("backendError");return t&&(t=t.replace(":null","")),t}changeHelp(){this.passwordRequirement=this.allPasswordRequirements.find(t=>t.split(":")[0]===this.namespace),this.passwordRequirement=void 0===this.passwordRequirement?this.allPasswordRequirements.find(t=>"default"===t.split(":")[0]).split(/:(.+)/)[1]:this.passwordRequirement.split(/:(.+)/)[1]}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(a.sK),r.Y36(o.Fv),r.Y36(s.d6))},t.\u0275cmp=r.Xpm({type:t,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",namespace:"namespace",multiLanguage:"multiLanguage",language:"language"},features:[r.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(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"mat-form-field",1),r._UZ(2,"input",2),r.ALo(3,"translate"),r.YNc(4,m,1,1,"mat-spinner",3),r.TgZ(5,"mat-icon",4),r.NdJ("click",function(){return e.showNewPassword=!e.showNewPassword}),r._uU(6),r.qZA(),r.YNc(7,b,2,2,"mat-icon",5),r.YNc(8,_,3,3,"mat-error",6),r.YNc(9,w,2,2,"mat-error",7),r.qZA(),r.TgZ(10,"mat-form-field",8),r.TgZ(11,"mat-label"),r._uU(12),r.ALo(13,"translate"),r.qZA(),r._UZ(14,"input",9),r.TgZ(15,"mat-icon",4),r.NdJ("click",function(){return e.showPasswordConfirm=!e.showPasswordConfirm}),r._uU(16),r.qZA(),r.YNc(17,A,3,3,"mat-error",6),r.YNc(18,y,3,3,"mat-error",6),r.qZA(),r.TgZ(19,"app-alert",10),r._UZ(20,"div",11),r.qZA(),r.qZA()),2&t&&(r.Q6J("formGroup",e.formGroup),r.xp6(1),r.Q6J("matTooltip",e.getPasswordDisabledTooltip())("matTooltipDisabled",e.formGroup.get("passwordCtrl").enabled),r.xp6(1),r.s9C("placeholder",r.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),r.Q6J("type",e.showNewPassword?"text":"password")("required",e.passwordRequired)("errorStateMatcher",e.passwordStateMatcher),r.xp6(2),r.Q6J("ngIf",e.formGroup.get("passwordCtrl").pending),r.xp6(2),r.hij(" ",e.showNewPassword?"visibility_off":"visibility"," "),r.xp6(1),r.Q6J("ngIf",e.formGroup.get("passwordCtrl").dirty&&null!==e.formGroup.get("passwordCtrl").errors),r.xp6(1),r.Q6J("ngIf",e.formGroup.get("passwordCtrl").hasError("required")),r.xp6(1),r.Q6J("ngIf",e.formGroup.get("passwordCtrl").hasError("backendError")),r.xp6(3),r.Oqu(r.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),r.xp6(2),r.Q6J("type",e.showPasswordConfirm?"text":"password")("required",e.passwordRequired),r.xp6(2),r.hij(" ",e.showPasswordConfirm?"visibility_off":"visibility"," "),r.xp6(1),r.Q6J("ngIf",e.formGroup.get("passwordAgainCtrl").hasError("required")),r.xp6(1),r.Q6J("ngIf",e.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),r.xp6(2),r.Q6J("innerHTML",e.passwordRequirement,r.oJD))},directives:[c.JL,c.sg,l.KE,u.gM,h.Nt,c.Fj,c.JJ,c.u,c.Q7,d.O5,p.Hw,l.R9,l.hX,g.w,f.$g,l.TO],pipes:[a.X$],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right}.error-icon[_ngcontent-%COMP%], .input-spinner[_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;display:block;margin-top:-1px}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple, [_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{position:static!important;display:table}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}"]}),t})()},63618:function(t,e,i){"use strict";i.d(e,{S:function(){return c},y:function(){return l}});var n=i(81110),s=i(40878),o=i(44689),r=i(79996),a=i(47727);class c{isErrorState(t){return!!(t&&t.invalid&&t.dirty)}}const l=(t,e,i,c=500)=>l=>(0,n.H)(c).pipe((0,o.w)(()=>(i.dontHandleErrorForNext(),t&&"No namespace"!==t?e.checkPasswordStrength(l.value,t):(0,s.of)(null))),(0,r.U)(()=>null),(0,a.K)(t=>(0,s.of)({backendError:t.error.message.substr(t.error.message.indexOf(":")+1)})))},65249:function(t,e,i){"use strict";i.d(e,{Us:function(){return I},au:function(){return M},H8:function(){return c},jw:function(){return l},Ct:function(){return u},VK:function(){return a},KG:function(){return p},IQ:function(){return g},ff:function(){return m},uq:function(){return _},aC:function(){return w},Hr:function(){return A},tk:function(){return y},xk:function(){return v},KK:function(){return T},Ob:function(){return C},Dy:function(){return D},Fv:function(){return E},FW:function(){return S},YF:function(){return k}});var n=i(29063);class s{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}var o=i(31572);const r=new o.OlP("basePath");class a{constructor(t={}){this.apiKeys=t.apiKeys,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.withCredentials=t.withCredentials,this.encoder=t.encoder}selectHeaderContentType(t){if(0===t.length)return;const e=t.find(t=>this.isJsonMime(t));return void 0===e?t[0]:e}selectHeaderAccept(t){if(0===t.length)return;const e=t.find(t=>this.isJsonMime(t));return void 0===e?t[0]:e}isJsonMime(t){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==t&&(e.test(t)||"application/json-patch+json"===t.toLowerCase())}}let c=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}convertAttributeToNonunique(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeDefinition",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}convertAttributeToUnique(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeDefinition",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}createAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("attribute",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteAttributeDefinitions(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllAttributeDefinitions(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAttribute(t,e,i,s,o,r,a,c,l,u,h,d="body",p=!1){let g=new n.LE({encoder:this.encoder});null!=t&&(g=g.set("attributeName",t)),null!=e&&(g=g.set("attributeId",e)),null!=i&&(g=g.set("facility",i)),null!=s&&(g=g.set("user",s)),null!=o&&(g=g.set("vo",o)),null!=r&&(g=g.set("resource",r)),null!=a&&(g=g.set("member",a)),null!=c&&(g=g.set("group",c)),null!=l&&(g=g.set("host",l)),null!=u&&(g=g.set("userExtSource",u)),null!=h&&(g=g.set("key",h));let f=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(f=f.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(f=f.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;f=f.set("Authorization","Bearer "+t)}const m=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==m&&(f=f.set("Accept",m)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{params:g,withCredentials:this.configuration.withCredentials,headers:f,observe:d,reportProgress:p})}getAttributeDefinitionById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAttributeDefinitionByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeName",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAttributeDefinitionsByNamespace(t,e="body",i=!1){if(null==t)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("namespace",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAttributeModulesDependenciesForAttributeGraphText(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("format",t)),null!=e&&(o=o.set("attrName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAttributeModulesDependenciesGraphText(t,e="body",i=!1){if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("format",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAttributeRights(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAttributesDefinitionWithRights(t,e,i,s,o,r,a,c,l="body",u=!1){let h=new n.LE({encoder:this.encoder});null!=t&&(h=h.set("member",t)),null!=e&&(h=h.set("user",e)),null!=i&&(h=h.set("vo",i)),null!=s&&(h=h.set("group",s)),null!=o&&(h=h.set("resource",o)),null!=r&&(h=h.set("facility",r)),null!=a&&(h=h.set("host",a)),null!=c&&(h=h.set("userExtSource",c));let d=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(d=d.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(d=d.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;d=d.set("Authorization","Bearer "+t)}const p=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==p&&(d=d.set("Accept",p)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{params:h,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:u})}getEntitylessAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("key",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getEntitylessAttributesByKey(t,e="body",i=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("key",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getEntitylessAttributesByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("attrName",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getEntitylessAttributesWithKeys(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("attrName",t)),e&&e.forEach(t=>{o=o.append("keys[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getEntitylessKeys(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeDefinition",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilityAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilityResourceUserMemberAttributes(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("user",i)),null!=s&&(a=a.set("member",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getFacilityUserAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupResourceAttributeById(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeId",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getGroupResourceAttributeByName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeName",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getGroupResourceAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getHostAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("host",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getHostAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("host",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getHostAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getHostAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("host",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getLogins(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getLogins.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMemberAndUserAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==e)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("workWithUserAttributes",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMemberAndUserAttributesByNames(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("workWithUserAttributes",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMemberAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMemberAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMemberGroupAndUserAttributesByNames(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("group",e)),i&&i.forEach(t=>{a=a.append("attrNames[]",t)}),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getMemberGroupAttributeById(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("attributeId",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberGroupAttributeByName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("attributeName",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberGroupAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMemberGroupAttributesByNames(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberResourceAndUserFacilityAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("workWithUserAttributes",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberResourceAndUserFacilityAttributesByNames(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("resource",e)),i&&i.forEach(t=>{a=a.append("attrNames[]",t)}),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getMemberResourceAttributeById(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeId",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberResourceAttributeByName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeName",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberResourceAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRequiredAttributesFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRequiredAttributesFacilityService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesFacilityServices(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let o=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("services[]",t)}),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesGroupResourceService(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("group",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRequiredAttributesHostService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==e)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("host",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesMember(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("workWithUserAttributes",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesMemberGroup(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("workWithUserAttributes",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRequiredAttributesMemberGroupResourceService(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let c=new n.LE({encoder:this.encoder});null!=t&&(c=c.set("service",t)),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("group",i)),null!=s&&(c=c.set("member",s)),null!=o&&(c=c.set("workWithUserAttributes",o));let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(l=l.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:a})}getRequiredAttributesMemberGroupService(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("group",e)),null!=i&&(a=a.set("member",i)),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getRequiredAttributesMemberResource(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("workWithUserAttributes",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRequiredAttributesMemberResourceService(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("member",i)),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getRequiredAttributesResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRequiredAttributesResourceService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesResourceServices(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let o=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("services[]",t)}),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRequiredAttributesUserFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesVoService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("vo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getResourceAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceGroupAndGroupAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==i)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("workWithGroupAttributes",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getResourceGroupAndGroupAttributesByNames(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==s)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("resource",t)),null!=e&&(a=a.set("group",e)),i&&i.forEach(t=>{a=a.append("attrNames[]",t)}),null!=s&&(a=a.set("workWithGroupAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getResourceGroupAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceGroupMemberAttributesByNames(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("resource",t)),null!=e&&(a=a.set("group",e)),null!=i&&(a=a.set("member",i)),s&&s.forEach(t=>{a=a.append("attrNames[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getUserAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUserAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserExtSourceAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("userExtSource",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserExtSourceAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("userExtSource",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserExtSourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUserExtSourceAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("userExtSource",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserFacilityAttributeById(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("attributeId",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getUserFacilityAttributeByName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("attributeName",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getUserFacilityAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getVoAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getVoAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getVoAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeAttributesForFacilityResourceGroupUserMember(t,e,i,s,o,r,a="body",c=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==i)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)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==r)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let l=new n.LE({encoder:this.encoder});null!=t&&(l=l.set("facility",t)),null!=e&&(l=l.set("resource",e)),null!=i&&(l=l.set("group",i)),null!=s&&(l=l.set("user",s)),null!=o&&(l=l.set("member",o)),r&&r.forEach(t=>{l=l.append("attributes[]",t)});let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{params:l,withCredentials:this.configuration.withCredentials,headers:u,observe:a,reportProgress:c})}removeAttributesForFacilityResourceUserMember(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==i)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==s)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 c=new n.LE({encoder:this.encoder});null!=t&&(c=c.set("facility",t)),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("user",i)),null!=s&&(c=c.set("member",s)),o&&o.forEach(t=>{c=c.append("attributes[]",t)});let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(l=l.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:a})}removeEntitylessAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("key",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupResourceAttribute(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attribute",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeGroupResourceAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeGroupResourceAttributesWorkWithGroupAttributes(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==s)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),null!=e&&(a=a.set("resource",e)),i&&i.forEach(t=>{a=a.append("attributes[]",t)}),null!=s&&(a=a.set("workWithGroupAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}removeHostAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("host",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeHostAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("host",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeMemberAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeMemberAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeMemberAttributesWorkWithUserAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(t=>{r=r.append("attributes[]",t)}),null!=i&&(r=r.set("workWithUserAttributes",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeMemberGroupAttribute(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("attribute",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeMemberGroupAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeMemberGroupAttributesWorkWithUserAttributes(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("group",e)),i&&i.forEach(t=>{a=a.append("attributes[]",t)}),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}removeMemberResourceAttribute(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attribute",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeMemberResourceAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeResourceAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeResourceAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeUesAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("userExtSource",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeUserAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeUserAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeUserExtSourceAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("userExtSource",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeUserFacilityAttribute(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("attribute",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeUserFacilityAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeVoAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeVoAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}setAttributeRights(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAttributeRights was null or undefined when calling setAttributeRights.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setEntitylessAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityResourceGroupUserMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityResourceUserMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setHostAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetHostAttribute was null or undefined when calling setHostAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setHostAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetHostAttributes was null or undefined when calling setHostAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupWithUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAndUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberWithUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceGroupWithGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserAttribute was null or undefined when calling setUserAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserAttributes was null or undefined when calling setUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserExtSourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserExtSourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserFacilityAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setVoAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoAttribute was null or undefined when calling setVoAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setVoAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoAttributes was null or undefined when calling setVoAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),l=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}auditMessagesManagerLog(t,e="body",i=!1){if(null==t)throw new Error("Required parameter msg was null or undefined when calling auditMessagesManagerLog.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("msg",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/log`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}createAuditerConsumer(t,e="body",i=!1){if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling createAuditerConsumer.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("consumerName",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/createAuditerConsumer`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllAuditerConsumers(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getAllAuditerConsumers`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAuditerMessagesCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getAuditerMessagesCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getLastMessageId(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getLastMessageId`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getMessages(t,e="body",i=!1){let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("count",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getMessages`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMessagesByCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter count was null or undefined when calling getMessagesByCount.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("count",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getMessagesByCount`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMessagesPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetMessagesPage was null or undefined when calling getMessagesPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/auditMessagesManager/getMessagesPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}pollConsumerMessages(t,e="body",i=!1){if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling pollConsumerMessages.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("consumerName",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/pollConsumerMessages`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}setLastProcessedId(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling setLastProcessedId.");if(null==e)throw new Error("Required parameter lastProcessedId was null or undefined when calling setLastProcessedId.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("consumerName",t)),null!=e&&(o=o.set("lastProcessedId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/setLastProcessedId`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),u=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}getAllPolicies(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllRolesManagementRules(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAuthzAdminGroups(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("role",t)),null!=e&&(r=r.set("complementaryObjectId",e)),null!=i&&(r=r.set("complementaryObjectName",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAuthzRichAdmins(t,e,i,s,o,r,a="body",c=!1){if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==s)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let l=new n.LE({encoder:this.encoder});null!=t&&(l=l.set("role",t)),null!=e&&(l=l.set("complementaryObjectId",e)),null!=i&&(l=l.set("complementaryObjectName",i)),s&&s.forEach(t=>{l=l.append("specificAttributes",t)}),null!=o&&(l=l.set("allUserAttributes",o)),null!=r&&(l=l.set("onlyDirectAdmins",r));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{params:l,withCredentials:this.configuration.withCredentials,headers:u,observe:a,reportProgress:c})}getFacilitiesWhereUserIsInRoles(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let o=new n.LE({encoder:this.encoder});null!=e&&(o=o.set("user",e)),t&&t.forEach(t=>{o=o.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupRoleNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupRoles(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("groupId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupsWhereUserIsInRoles(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let o=new n.LE({encoder:this.encoder});null!=e&&(o=o.set("user",e)),t&&t.forEach(t=>{o=o.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getLoggedUser(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getMembersWhereUserIsInRoles(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let o=new n.LE({encoder:this.encoder});null!=e&&(o=o.set("user",e)),t&&t.forEach(t=>{o=o.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getPerunPrincipal(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPrincipalRoleNames(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getResourcesWhereUserIsInRoles(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let o=new n.LE({encoder:this.encoder});null!=e&&(o=o.set("user",e)),t&&t.forEach(t=>{o=o.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getSecurityTeamsWhereUserIsInRoles(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let o=new n.LE({encoder:this.encoder});null!=e&&(o=o.set("user",e)),t&&t.forEach(t=>{o=o.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserRoleNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUserRoles(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("userId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVosWhereUserIsInRoles(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let o=new n.LE({encoder:this.encoder});null!=e&&(o=o.set("user",e)),t&&t.forEach(t=>{o=o.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}isFacilityAdmin(t,e="body",i=!1){let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}isGroupAdmin(t,e="body",i=!1){let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}isPerunAdmin(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}isVoAdmin(t,e="body",i=!1){let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}keepAlive(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}loadAuthorizationComponents(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}setRoleWithGroupComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter setRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setRoleWithUserComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter setRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unsetRoleWithGroupComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter unsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unsetRoleWithUserComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter unsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),h=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}createAutorship(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateAuthorship was null or undefined when calling createAutorship.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createAuthorship`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createCategoryCat(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateCategory was null or undefined when calling createCategoryCat.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/cat`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createCategoryNR(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateCategory1 was null or undefined when calling createCategoryNR.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/n-r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createPublication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreatePublication was null or undefined when calling createPublication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublication`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createPublicationSystem(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreatePublicationSystem was null or undefined when calling createPublicationSystem.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublicationSystem`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createThanks(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateThanks was null or undefined when calling createThanks.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createThanks`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAuthorship(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter publicationId was null or undefined when calling deleteAuthorship.");if(null==e)throw new Error("Required parameter userId was null or undefined when calling deleteAuthorship.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("publicationId",t)),null!=e&&(o=o.set("userId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteAuthorship`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteCategory(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteCategory.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteCategory`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deletePublication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deletePublication.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublication`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deletePublicationSystem(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deletePublicationSystem.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublicationSystem`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteThanks(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteThanks.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteThanks`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}findAllAuthors(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAllAuthors`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}findAuthorsByPublicationId(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findAuthorsByPublicationId.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAuthorsByPublicationId`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}findExternalPublications(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling findExternalPublications.");if(null==e)throw new Error("Required parameter yearSince was null or undefined when calling findExternalPublications.");if(null==i)throw new Error("Required parameter yearTill was null or undefined when calling findExternalPublications.");if(null==s)throw new Error("Required parameter pubSysNamespace was null or undefined when calling findExternalPublications.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("user",t)),null!=e&&(a=a.set("yearSince",e)),null!=i&&(a=a.set("yearTill",i)),null!=s&&(a=a.set("pubSysNamespace",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findExternalPublications`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}findNewAuthors(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findNewAuthors.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("searchString",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findNewAuthors`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}findPublicationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findPublicationById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}findPublicationsByFilter(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter userId was null or undefined when calling findPublicationsByFilter.");let r=new n.LE({encoder:this.encoder});null!=e&&(r=r.set("yearSince",e)),null!=i&&(r=r.set("yearTill",i)),null!=t&&(r=r.set("userId",t));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByFilter`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}findPublicationsByGUIFilter(t,e,i,s,o,r,a,c,l,u="body",h=!1){let d=new n.LE({encoder:this.encoder});null!=t&&(d=d.set("title",t)),null!=e&&(d=d.set("isbn",e)),null!=i&&(d=d.set("doi",i)),null!=s&&(d=d.set("id",s)),null!=o&&(d=d.set("year",o)),null!=r&&(d=d.set("category",r)),null!=a&&(d=d.set("yearSince",a)),null!=c&&(d=d.set("yearTill",c)),null!=l&&(d=d.set("userId",l));let p=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(p=p.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(p=p.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;p=p.set("Authorization","Bearer "+t)}const g=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==g&&(p=p.set("Accept",g)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByGUIFilter`,{params:d,withCredentials:this.configuration.withCredentials,headers:p,observe:u,reportProgress:h})}findSimilarPublications(t,e,i,s="body",o=!1){let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("title",t)),null!=e&&(r=r.set("doi",e)),null!=i&&(r=r.set("isbn",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findSimilarPublications`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getCategories(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getCategories`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPublicationSystems(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getPublicationSystems`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getRank(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRank.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getRank`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichThanksByPublicationId(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichThanksByPublicationId.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getRichThanksByPublicationId`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}lockPublications(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputLockPublications was null or undefined when calling lockPublications.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/lockPublications`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateCategory(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateCategory was null or undefined when calling updateCategory.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updateCategory`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updatePublication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdatePublication was null or undefined when calling updatePublication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublication`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updatePublicationSystem(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdatePublicationSystem was null or undefined when calling updatePublicationSystem.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublicationSystem`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),d=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}getCurrentDatabaseVersion(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getCurrentDatabaseVersion`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getDatabaseDriverInformation(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getDatabaseDriverInformation`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getDatabaseInformation(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getDatabaseInformation`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getTimeOfQueryPerformance(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getTimeOfQueryPerformance`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),p=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addExtSourceWithGroupSource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling addExtSourceWithGroupSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithGroupSource.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("source",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/g-s`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addExtSourceWithVoSource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addExtSourceWithVoSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithVoSource.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("source",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/v-s`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createExtSourceFromExtSourceObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter extSourceObject was null or undefined when calling createExtSourceFromExtSourceObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/extSourcesManager/createExtSource/es`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createExtSourceWithNameType(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createExtSourceWithNameType.");if(null==e)throw new Error("Required parameter type was null or undefined when calling createExtSourceWithNameType.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("name",t)),null!=e&&(o=o.set("type",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/createExtSource/n-t`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteExtSource.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/deleteExtSource`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getExtSourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getExtSourceById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getExtSourceByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getExtSourceByName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("name",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceByName`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getExtSources(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSources`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getGroupExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupExtSources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getGroupExtSources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoExtSources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getVoExtSources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}loadExtSourcesDefinitions(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/loadExtSourcesDefinitions`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeExtSourceWithGroupSource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeExtSourceWithGroupSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithGroupSource.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("source",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/g-s`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeExtSourceWithVoSource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeExtSourceWithVoSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithVoSource.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("source",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/v-s`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),g=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addFacilityAdminGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addFacilityAdminGroupByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroupByFacilityName.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroupByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addFacilityAdminUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addFacilityAdminUserByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUserByFacilityName.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUserByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addFacilityOwner(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwner.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwner.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addFacilityOwnerByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addFacilityOwnerByFacilityNameOwnerName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-o-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addFacilityOwnerByOwnerName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByOwnerName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/o-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addHost(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHost.");if(null==e)throw new Error("Required parameter hostname was null or undefined when calling addHost.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("hostname",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addHostByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHostByFacilityName.");if(null==e)throw new Error("Required parameter hostname was null or undefined when calling addHostByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("hostname",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addHosts(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHosts.");if(null==e)throw new Error("Required parameter hostnames was null or undefined when calling addHosts.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("hostnames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addHostsByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHostsByFacilityName.");if(null==e)throw new Error("Required parameter hostnames was null or undefined when calling addHostsByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("hostnames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}assignSecurityTeam(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeam.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeam.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("securityTeam",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}assignSecurityTeamByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeamByFacilityName.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeamByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("securityTeam",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributes.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacility",t)),null!=e&&(o=o.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyAttributesByDestinationName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributesByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesByDestinationName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacility",t)),null!=e&&(o=o.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/dest-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyAttributesBySourceDestinationNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacilityName",t)),null!=e&&(o=o.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-dest-names`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyAttributesBySourceName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributesBySourceName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacilityName",t)),null!=e&&(o=o.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyManagers(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagers.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyManagers.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacility",t)),null!=e&&(o=o.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyManagersByDestinationName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagersByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersByDestinationName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacility",t)),null!=e&&(o=o.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/dest-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyManagersBySourceDestinationNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacilityName",t)),null!=e&&(o=o.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-dest-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyManagersBySourceName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyManagersBySourceName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacilityName",t)),null!=e&&(o=o.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyOwners(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwners.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyOwners.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacility",t)),null!=e&&(o=o.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyOwnersByDestinationName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwnersByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersByDestinationName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacility",t)),null!=e&&(o=o.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/dest-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyOwnersBySourceDestinationNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacilityName",t)),null!=e&&(o=o.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-dest-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyOwnersBySourceName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyOwnersBySourceName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacilityName",t)),null!=e&&(o=o.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("name",t)),null!=e&&(o=o.set("description",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/createFacility`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling deleteFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling deleteFacilityByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilities`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllowedGroups(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroups.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("service",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAllowedGroupsByFacilityName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroupsByFacilityName.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("service",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups/f-name`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAllowedRichGroupsWithAttributes(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributes.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributes.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),e&&e.forEach(t=>{a=a.append("attrNames[]",t)}),null!=i&&(a=a.set("vo",i)),null!=s&&(a=a.set("service",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getAllowedRichGroupsWithAttributesByFacilityName(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),e&&e.forEach(t=>{a=a.append("attrNames[]",t)}),null!=i&&(a=a.set("vo",i)),null!=s&&(a=a.set("service",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes/f-name`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getAllowedUsersOfFacility(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacility.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("service",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAllowedUsersOfFacilityByFacilityName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacilityByFacilityName.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("service",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s/f-name`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAllowedVos(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedVos.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllowedVosByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedVosByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedFacilitiesByGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedFacilitiesByGroup.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/group`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedFacilitiesByMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedFacilitiesByMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/member`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedFacilitiesByService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedFacilitiesByService.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/service`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedFacilitiesByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedFacilitiesByUser.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/user`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedResourcesByAssignedServiceForFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResourcesByAssignedService`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAssignedResourcesForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedResourcesForFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacilityByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedRichResourcesForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedRichResourcesForFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedSecurityTeams(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeams.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedSecurityTeamsByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeamsByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedUsers(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsers.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAssignedUsersByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsersByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers/f-name`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getBansForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facilityId was null or undefined when calling getBansForFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facilityId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForFacility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getBansForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getBansForUser.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForUser`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getEnrichedFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedFacilities`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getEnrichedHosts(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedHosts.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getEnrichedHosts.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedHosts`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilitiesByAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttribute.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("attributeName",t)),null!=e&&(o=o.set("attributeValue",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByAttribute`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilitiesByDestination(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling getFacilitiesByDestination.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("destination",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByDestination`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilitiesByHostName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling getFacilitiesByHostName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("hostname",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByHostName`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilitiesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getFacilitiesByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilitiesCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFacilitiesWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilitiesWhereUserIsAdmin.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesWhereUserIsAdmin`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityAdminGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroups.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityAdminUsers(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsers.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsers.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("onlyDirectAdmins",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilityAdminUsersByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsersByFacilityName.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsersByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("onlyDirectAdmins",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins/f-name`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilityBan(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityBan.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityBan.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBan`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilityBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getFacilityBanById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("banId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBanById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getFacilityById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getFacilityByName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("name",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityByName`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityForHost(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getFacilityForHost.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityForHost`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityOwners(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwners.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityOwnersByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwnersByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getHostById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getHostById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getHosts(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHosts.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getHostsByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getHostsByHostname(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling getHostsByHostname.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("hostname",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsByHostname`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getHostsCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsCount.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getHostsCountByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsCountByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getOwnerFacilities(t,e="body",i=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling getOwnerFacilities.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("owner",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwnerFacilities`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getRichFacilities`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeBanByUserIdFacilityId(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeBanByUserIdFacilityId.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeBanByUserIdFacilityId.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byUserIdFacilityId`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityAdminGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityAdminGroupByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroupByFacilityName.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroupByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityAdminUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityAdminUserByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUserByFacilityName.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUserByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeFacilityBanById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("banId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byId`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeFacilityOwner(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwner.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwner.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityOwnerByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityOwnerByFacilityNameOwnerName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-o-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityOwnerByOwnerName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByOwnerName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/o-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeHost(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHost.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHost`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeHostByHostname(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling removeHostByHostname.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("hostname",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHostByHostname`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeHosts(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeHosts.");if(null==e)throw new Error("Required parameter hosts was null or undefined when calling removeHosts.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("hosts[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeHostsByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeHostsByFacilityName.");if(null==e)throw new Error("Required parameter hosts was null or undefined when calling removeHostsByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("hosts[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeSecurityTeam(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeam.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeam.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("securityTeam",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeSecurityTeamByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeamByFacilityName.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeamByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("securityTeam",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}setFacilityBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetBanForUserOnFacility was null or undefined when calling setFacilityBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFacility was null or undefined when calling updateFacility.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateFacility`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFacilityBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateBanForFacility was null or undefined when calling updateFacilityBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),f=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}getFacilityAdminGroupsByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroupsByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),m=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addMember(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling addMember.");let o=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("groups[]",t)}),null!=e&&(o=o.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addMembers(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling addMembers.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("members[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}canExtendMembershipInGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createGroupUnion(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resultGroup",t)),null!=e&&(o=o.set("operandGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createGroupWithParentGroupNameDescription(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("parentGroup",t)),null!=e&&(r=r.set("name",e)),null!=i&&(r=r.set("description",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}createGroupWithVoNameDescription(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("name",e)),null!=i&&(r=r.set("description",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}deleteGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputDeleteGroups was null or undefined when calling deleteGroups.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/deleteGroups`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}extendMembershipInGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}forceAllSubGroupsSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}forceGroupStructureSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}forceGroupSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllGroupsFromAllVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups/all`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllMemberGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllRichGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllRichGroupsWithAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAllRichSubGroupsWithGroupAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==e)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("name",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupByName`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupMemberById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==e)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupMembersCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupMembersCountsByGroupStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupMembersCountsByVoStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupRichMembersByIds(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==e)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(t=>{r=r.append("members[]",t)}),i&&i.forEach(t=>{r=r.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getGroupUnions(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==e)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("reverseDirection",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupUnions`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupsByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupsPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedGroups was null or undefined when calling getGroupsPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getGroupsPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getIndirectMembershipPaths(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMemberGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMemberRichGroupsWithAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRichGroupByIdWithAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("groupId",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getSubgroupsPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getSubgroupsPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}isGroupMember(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==e)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isGroupMember`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}moveGroupWithDestinationGroupMovingGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let o=new n.LE({encoder:this.encoder});null!=e&&(o=o.set("destinationGroup",e)),null!=t&&(o=o.set("movingGroup",t));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupUnion(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resultGroup",t)),null!=e&&(o=o.set("operandGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeMember(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMember.");let o=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("groups[]",t)}),null!=e&&(o=o.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeMembers(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("members[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}setGroupsMemberStatus(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==e)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==i)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("status",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}updateGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateGroup was null or undefined when calling updateGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/updateGroup`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),b=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}getGroupMemberData(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/integrationManager/getGroupMemberData`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),_=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}canExtendMembership(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/canExtendMembership`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}createMemberForCandidate(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/c`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createMemberForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberForUser was null or undefined when calling createMemberForUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createMemberFromExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/extSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSpecificMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSpecificMember was null or undefined when calling createSpecificMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSpecificMember`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMember1 was null or undefined when calling createSponsoredMembers.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMembersFromCSV(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("members[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}extendMembership(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}findCompleteRichMembersByAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let r=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{r=r.append("attrsNames[]",t)}),null!=e&&(r=r.set("searchString",e)),i&&i.forEach(t=>{r=r.append("allowedStatuses[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}findCompleteRichMembersForGroup(t,e,i,s,o,r,a="body",c=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==s)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let l=new n.LE({encoder:this.encoder});null!=t&&(l=l.set("group",t)),e&&e.forEach(t=>{l=l.append("attrsNames[]",t)}),o&&o.forEach(t=>{l=l.append("allowedStatuses[]",t)}),r&&r.forEach(t=>{l=l.append("allowedGroupStatuses[]",t)}),null!=i&&(l=l.set("searchString",i)),null!=s&&(l=l.set("lookingInParentGroup",s));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`,{params:l,withCredentials:this.configuration.withCredentials,headers:u,observe:a,reportProgress:c})}findCompleteRichMembersForVo(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),e&&e.forEach(t=>{a=a.append("attrsNames[]",t)}),s&&s.forEach(t=>{a=a.append("allowedStatuses[]",t)}),null!=i&&(a=a.set("searchString",i));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}findMembersInVo(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("searchString",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findMembersInVo`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}findSponsoredCompleteRichMembersForVo(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==s)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),e&&e.forEach(t=>{a=a.append("attrsNames[]",t)}),null!=i&&(a=a.set("searchString",i)),null!=s&&(a=a.set("onlySponsored",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getAllMembers(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllMembers`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllNamespacesRules(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllSponsoredMembersAndTheirSponsors(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getCompleteRichMembersForGroup(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let c=new n.LE({encoder:this.encoder});null!=t&&(c=c.set("group",t)),i&&i.forEach(t=>{c=c.append("allowedStatuses[]",t)}),s&&s.forEach(t=>{c=c.append("allowedGroupStatuses[]",t)}),null!=e&&(c=c.set("lookingInParentGroup",e)),o&&o.forEach(t=>{c=c.append("attrsNames[]",t)});let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(l=l.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`,{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:a})}getCompleteRichMembersForGroupResource(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==i)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==s)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),null!=e&&(a=a.set("resource",e)),i&&i.forEach(t=>{a=a.append("attrsNames[]",t)}),s&&s.forEach(t=>{a=a.append("allowedStatuses[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getCompleteRichMembersForVo(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("allowedStatuses[]",t)}),i&&i.forEach(t=>{r=r.append("attrsNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberByExtSourceNameAndExtLogin(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==i)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("extLogin",e)),null!=i&&(r=r.set("extSourceName",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMemberByUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByUser`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMembers(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("status",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembers`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMembersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMembersByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByUser`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMembersCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMembersPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedMembers was null or undefined when calling getMembersPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/getMembersPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getMembersWithStatusCount(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==e)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("status",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount/status`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRichMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichMemberWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichMembersByIds(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let o=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("ids[]",t)}),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getSponsoredMembersAndTheirSponsors(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getSponsorsByMember(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/member`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getSponsorsByVo(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("extSourceName",e)),null!=i&&(a=a.set("extLogin",i)),s&&s.forEach(t=>{a=a.append("attrNames[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/vo`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}moveMembership(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==e)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==i)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("sourceUser",e)),null!=i&&(r=r.set("targetUser",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeSponsor(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("sponsor",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}sendAccountActivationLinkEmail(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==s)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("emailAttributeURN",i)),null!=s&&(a=a.set("language",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}sendPasswordResetLinkEmail(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==s)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let c=new n.LE({encoder:this.encoder});null!=t&&(c=c.set("member",t)),null!=e&&(c=c.set("namespace",e)),null!=i&&(c=c.set("emailAttributeURN",i)),null!=s&&(c=c.set("language",s)),null!=o&&(c=c.set("baseUrl",o));let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(l=l.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:a})}setSponsoredMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/setSponsoredMember`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setSponsorshipForMember(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("sponsoredMember",t)),null!=e&&(r=r.set("sponsor",e)),null!=i&&(r=r.set("validityTo",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}setStatus(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==e)throw new Error("Required parameter status was null or undefined when calling setStatus.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("status",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}sponsorMember(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("sponsor",e)),null!=i&&(r=r.set("validityTo",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}updateSponsorshipValidity(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("sponsor",e)),null!=i&&(r=r.set("validityTo",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}validateMemberAsync(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),w=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}createOwner(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateOwner was null or undefined when calling createOwner.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/ownersManager/createOwner`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteOwner(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("owner",t)),null!=e&&(o=o.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAllOwners(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwners`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getOwnerById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getOwnerByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("owner",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerByName`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),A=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}sentMessageToRTWithMemberQueue(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==s)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("memberId",t)),null!=e&&(a=a.set("queue",e)),null!=i&&(a=a.set("subject",i)),null!=s&&(a=a.set("text",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}sentMessageToRTWithQueue(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("queue",t)),null!=e&&(r=r.set("subject",e)),null!=i&&(r=r.set("text",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}sentMessageToRTWithVo(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("voId",t)),null!=e&&(r=r.set("subject",e)),null!=i&&(r=r.set("text",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}sentMessageToRTWithVoQueue(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==s)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("voId",t)),null!=e&&(a=a.set("queue",e)),null!=i&&(a=a.set("subject",i)),null!=s&&(a=a.set("text",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),y=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addApplicationMailForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addApplicationMailForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addGroupsToAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}approveApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}checkForSimilarUsersWithAuthInfo(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}consolidateIdentityUsingToken(t,e="body",i=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("token",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}copyFormFromGroupToGroup(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("fromGroup",t)),null!=e&&(o=o.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyFormFromGroupToVo(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("fromGroup",t)),null!=e&&(o=o.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyFormFromVoToGroup(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("fromVo",t)),null!=e&&(o=o.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyFormFromVoToVo(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("fromVo",t)),null!=e&&(o=o.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyMailsFromGroupToGroup(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("fromGroup",t)),null!=e&&(o=o.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyMailsFromGroupToVo(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("fromGroup",t)),null!=e&&(o=o.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyMailsFromVoToGroup(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("fromVo",t)),null!=e&&(o=o.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyMailsFromVoToVo(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("fromVo",t)),null!=e&&(o=o.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createApplicationFormInGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}createApplicationFormInVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteApplicationMailForGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("id",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteApplicationMailForVo(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("id",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteGroupsFromAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getApplicationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getApplicationDataById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getApplicationMailsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getApplicationMailsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getApplicationsForGroup(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),e&&e.forEach(t=>{a=a.append("state[]",t)}),null!=i&&(a=a.set("dateFrom",i)),null!=s&&(a=a.set("dateTo",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getApplicationsForMember(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getApplicationsForVo(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),e&&e.forEach(t=>{a=a.append("state[]",t)}),null!=i&&(a=a.set("dateFrom",i)),null!=s&&(a=a.set("dateTo",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getConsolidatorToken(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFormItemsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFormItemsForGroupWithType(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("type",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFormItemsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFormItemsForVoWithType(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("type",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupApplicationForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupsToAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoApplicationForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}rejectApplication(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("id",t)),null!=e&&(o=o.set("reason",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}sendInvitation(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let a=new n.LE({encoder:this.encoder});null!=i&&(a=a.set("voId",i)),null!=s&&(a=a.set("name",s)),null!=t&&(a=a.set("email",t)),null!=e&&(a=a.set("language",e));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}sendInvitationForGroup(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let c=new n.LE({encoder:this.encoder});null!=i&&(c=c.set("voId",i)),null!=s&&(c=c.set("groupId",s)),null!=o&&(c=c.set("name",o)),null!=t&&(c=c.set("email",t)),null!=e&&(c=c.set("language",e));let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(l=l.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:a})}sendInvitationGroupToExistingUser(t,e,i,s="body",o=!1){let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("userId",t)),null!=e&&(r=r.set("voId",e)),null!=i&&(r=r.set("groupId",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}sendInvitationToExistingUser(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("userId",t)),null!=e&&(o=o.set("voId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}sendMessage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSendMessage was null or undefined when calling sendMessage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setSendingEnabled(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}submitApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSubmitApplication was null or undefined when calling submitApplication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateApplicationMail(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateForm was null or undefined when calling updateForm.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemData(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputFormItemData was null or undefined when calling updateFormItemData.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsData(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputFormItemData1 was null or undefined when calling updateFormItemsData.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}verifyApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),v=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}activateGroupResourceAssignment(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("async",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}addAdminToGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addAdminToUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addResourceSelfServiceGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addResourceSelfServiceUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}allowGroupsToResources(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");let r=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{r=r.append("groups[]",t)}),e&&e.forEach(t=>{r=r.append("resources[]",t)}),null!=i&&(r=r.set("async",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}assignGroupToResource(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let c=new n.LE({encoder:this.encoder});null!=t&&(c=c.set("group",t)),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("async",i)),null!=s&&(c=c.set("assignInactive",s)),null!=o&&(c=c.set("autoAssignSubgroups",o));let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(l=l.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:a})}assignGroupToResources(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let c=new n.LE({encoder:this.encoder});null!=t&&(c=c.set("group",t)),e&&e.forEach(t=>{c=c.append("resources[]",t)}),null!=i&&(c=c.set("async",i)),null!=s&&(c=c.set("assignInactive",s)),null!=o&&(c=c.set("autoAssignSubgroups",o));let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(l=l.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:a})}assignGroupsToResource(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let c=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{c=c.append("groups[]",t)}),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("async",i)),null!=s&&(c=c.set("assignInactive",s)),null!=o&&(c=c.set("autoAssignSubgroups",o));let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(l=l.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:a})}assignResourceTagToResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}assignService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling assignService.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}assignServices(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling assignServices.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),e&&e.forEach(t=>{o=o.append("services[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}assignServicesPackage(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("servicesPackage",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCopyResource was null or undefined when calling copyResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/copyResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createResource(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==i)throw new Error("Required parameter name was null or undefined when calling createResource.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("facility",e)),null!=i&&(a=a.set("name",i)),null!=s&&(a=a.set("description",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}createResourceTagWithResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createResourceTagWithTagName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("tagName",t)),null!=e&&(o=o.set("vo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deactivateGroupResourceAssignment(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteAllResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteAllResourcesTagsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAdminGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAdmins(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("onlyDirectAdmins",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdmins`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAllResourcesByResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAllResourcesTagsForResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllResourcesTagsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllResourcesWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllowedMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllowedResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllowedUsersOfResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedGroups(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAssignedMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedMembersWithStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembersWithStatus`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedResourcesWithGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedResourcesWithMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedResourcesWithStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResourcesWithStatus`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedRichMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedRichResourcesWithGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedRichResourcesWithMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedRichResourcesWithMemberService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAssignedServicesToResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getBansForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getBansForResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForResource`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getEnrichedResourceById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("id",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getEnrichedResourcesForFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getEnrichedResourcesForVo(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getFacility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupAssignments(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceAssignments(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceBan(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBan`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("banId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBanById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getResourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getResourceByName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==i)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("name",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceByName`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getResourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getResourcesCountForAll(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getResourcesCountForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getResourcesFromVoWhereUserIsAdmin(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourcesWhereGroupIsAdmin(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("group",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getResourcesWhereUserIsAdmin(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("user",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRichAdmins(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==e)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==i)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==s)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("resource",t)),e&&e.forEach(t=>{a=a.append("specificAttributes",t)}),null!=i&&(a=a.set("allUserAttributes",i)),null!=s&&(a=a.set("onlyDirectAdmins",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getRichResourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichResourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getVo.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeAllResourceTagsFromResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeBanByMemberAndResource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupAdminResource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupFromResource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupFromResources(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("resources[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupsFromResource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let o=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("groups[]",t)}),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeResourceBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("banId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeResourceSelfServiceGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeResourceSelfServiceUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeResourceTagFromResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}removeService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeService.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeServices(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling removeServices.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),e&&e.forEach(t=>{o=o.append("services[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeServicesPackage(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("servicesPackage",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeUserAdminResource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}setResourceBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetBan was null or undefined when calling setResourceBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unallowGroupsFromResources(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let o=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("groups[]",t)}),e&&e.forEach(t=>{o=o.append("resources[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}updateResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateResource was null or undefined when calling updateResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateResourceBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateBan was null or undefined when calling updateResourceBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateResourceTag was null or undefined when calling updateResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),T=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addDestination(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addDestination.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling addDestination.");if(null==i)throw new Error("Required parameter destination was null or undefined when calling addDestination.");if(null==s)throw new Error("Required parameter type was null or undefined when calling addDestination.");let c=new n.LE({encoder:this.encoder});null!=t&&(c=c.set("service",t)),null!=e&&(c=c.set("facility",e)),null!=i&&(c=c.set("destination",i)),null!=s&&(c=c.set("type",s)),null!=o&&(c=c.set("propagationType",o));let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(l=l.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestination`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:a})}addDestinationToMultipleServices(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddDestinationToMultipleServices was null or undefined when calling addDestinationToMultipleServices.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestination`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addDestinationsDefinedByHostsOnFacilityWithFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/f`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddDestinationsDefinedByHostsOnFacility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestinationsDefinedByHostsOnFacility/lists-f`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/s-f`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addDestinationsForAllServicesOnFacility(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==i)throw new Error("Required parameter type was null or undefined when calling addDestinationsForAllServicesOnFacility.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),null!=e&&(a=a.set("destination",e)),null!=i&&(a=a.set("type",i)),null!=s&&(a=a.set("propagationType",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsForAllServicesOnFacility`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}addRequiredAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addRequiredAttribute.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling addRequiredAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttribute`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addRequiredAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addRequiredAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling addRequiredAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttributes`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addServiceToServicesPackage(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling addServiceToServicesPackage.");if(null==e)throw new Error("Required parameter service was null or undefined when calling addServiceToServicesPackage.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("servicesPackage",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addServiceToServicesPackage`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}blockAllServicesOnDestinationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("destination",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/d`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}blockAllServicesOnDestinationByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationByName.");if(null==e)throw new Error("Required parameter destinationType was null or undefined when calling blockAllServicesOnDestinationByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("destination",t)),null!=e&&(o=o.set("destinationType",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/dname-dtype`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}blockAllServicesOnFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling blockAllServicesOnFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnFacility`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}blockServiceOnDestination(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestination.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("destination",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-d`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}blockServiceOnDestinationWithNameAndType(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==i)throw new Error("Required parameter destinationType was null or undefined when calling blockServiceOnDestinationWithNameAndType.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("destination",e)),null!=i&&(r=r.set("destinationType",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-dname-dtype`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}blockServiceOnFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling blockServiceOnFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnFacility`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createService(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createService.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createService.");if(null==i)throw new Error("Required parameter script was null or undefined when calling createService.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("name",t)),null!=e&&(r=r.set("description",e)),null!=i&&(r=r.set("script",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createService`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}createServiceWithService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateService was null or undefined when calling createServiceWithService.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createService`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateServicesPackage was null or undefined when calling createServicesPackage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createServicesPackage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createServicesPackageByNameAndDescription(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createServicesPackageByNameAndDescription.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createServicesPackageByNameAndDescription.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("name",t)),null!=e&&(o=o.set("description",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createServicesPackage`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling deleteService.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteService`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling deleteServicesPackage.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("servicesPackage",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}forceServicePropagation(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling forceServicePropagation.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/forceServicePropagation`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAllDestinations(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/all`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllRichDestinationsForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllRichDestinationsForFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/f`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllRichDestinationsForService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getAllRichDestinationsForService.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/s`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedResources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedResourcesForService`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedServices(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedServices.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedServices`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getDataWithGroups(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getDataWithGroups.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDataWithGroups.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithGroups`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getDataWithVos(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getDataWithVos.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDataWithVos.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithVos`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getDestinationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getDestinationById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getDestinations(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDestinations.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/s-f`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getDestinationsCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationsCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFacilitiesDestinations(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFacilitiesDestinations.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilitiesDestinations`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityAssignedServicesForGUI(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAssignedServicesForGUI.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilityAssignedServicesForGUI`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFlatData(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getFlatData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFlatData.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFlatData`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getHashedDataWithGroups(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getHashedDataWithGroups.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHashedDataWithGroups.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedDataWithGroups`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getHashedHierarchicalData(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getHashedHierarchicalData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHashedHierarchicalData.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedHierarchicalData`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getHierarchicalData(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getHierarchicalData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHierarchicalData.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHierarchicalData`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRichDestinations(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRichDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRichDestinations.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getRichDestinations`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getServiceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getServiceById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServiceByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getServiceByName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("name",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceByName`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServices(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServices`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getServicesBlockedOnDestination(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling getServicesBlockedOnDestination.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("destination",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnDestination`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServicesBlockedOnFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getServicesBlockedOnFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnFacility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServicesByAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getServicesByAttributeDefinition.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeDefinition",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesByAttributeDefinition`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServicesFromServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesFromServicesPackage.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("servicesPackage",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesFromServicesPackage`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServicesPackageById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesPackageById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("servicesPackage",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServicesPackageByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getServicesPackageByName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("name",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageByName`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServicesPackages(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackages`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}isServiceBlockedOnDestination(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling isServiceBlockedOnDestination.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("destination",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnDestination`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}isServiceBlockedOnFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling isServiceBlockedOnFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnFacility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}planServicePropagation(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling planServicePropagation.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/planServicePropagation`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeAllDestinations(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeAllDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAllDestinations.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllDestinations`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeAllRequiredAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeAllRequiredAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllRequiredAttributes`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeDestination(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeDestination.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeDestination.");if(null==i)throw new Error("Required parameter destination was null or undefined when calling removeDestination.");if(null==s)throw new Error("Required parameter type was null or undefined when calling removeDestination.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("facility",e)),null!=i&&(a=a.set("destination",i)),null!=s&&(a=a.set("type",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeDestination`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}removeRequiredAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttribute.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling removeRequiredAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttribute`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeRequiredAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeRequiredAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttributes`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeServiceFromServicesPackage(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServiceFromServicesPackage.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeServiceFromServicesPackage.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("servicesPackage",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeServiceFromServicesPackage`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}unblockAllServicesOnDestinationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("destination",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/d`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}unblockAllServicesOnDestinationByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationByName.");if(null==e)throw new Error("Required parameter destinationType was null or undefined when calling unblockAllServicesOnDestinationByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("destination",t)),null!=e&&(o=o.set("destinationType",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/dname-dtype`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}unblockAllServicesOnFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling unblockAllServicesOnFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnFacility`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}unblockServiceOnDestinationById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationById.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("destination",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-d`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}unblockServiceOnDestinationByName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationByName.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationByName.");if(null==i)throw new Error("Required parameter destinationType was null or undefined when calling unblockServiceOnDestinationByName.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("destination",e)),null!=i&&(r=r.set("destinationType",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-dname-dtype`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}unblockServiceOnFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling unblockServiceOnFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnFacility`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}updateService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateService was null or undefined when calling updateService.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateService`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateServicesPackage was null or undefined when calling updateServicesPackage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateServicesPackage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),C=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}countTasks(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/countTasks`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}deleteTask(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskIdObject was null or undefined when calling deleteTask.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTask`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteTaskResultById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskResultIdObject was null or undefined when calling deleteTaskResultById.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResultById`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteTaskResultsIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskAndDestinationIdObject was null or undefined when calling deleteTaskResultsIds.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/id`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteTaskResultsNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskAndDestinationNameObject was null or undefined when calling deleteTaskResultsNames.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/name`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAllFacilitiesStates(t,e="body",i=!1){let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllFacilitiesStates`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllResourcesState(t,e="body",i=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling getAllResourcesState.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("voId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllResourcesState`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityServicesState(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityServicesState.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityServicesState`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityState(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityState.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityState`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getTask(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getTask.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getTask.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTask`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getTaskById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getTaskById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getTaskResultById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskResult was null or undefined when calling getTaskResultById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("taskResult",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getTaskResults(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResults`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getTaskResultsByTask(t,e="body",i=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsByTask.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("task",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsByTask`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getTaskResultsForDestinations(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destinations was null or undefined when calling getTaskResultsForDestinations.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("destinations[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForDestinations`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getTaskResultsForGUIByTask(t,e="body",i=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTask.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("task",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTask`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getTaskResultsForGUIByTaskAndDestination(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("task",t)),null!=e&&(o=o.set("destination",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskAndDestination`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getTaskResultsForGUIByTaskOnlyNewest(t,e="body",i=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskOnlyNewest.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("task",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskOnlyNewest`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}isThereSuchTask(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling isThereSuchTask.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling isThereSuchTask.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/isThereSuchTask`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}listAllTasks(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasks`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}listAllTasksForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling listAllTasksForFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasksForFacility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}suspendTasksPropagation(t,e="body",i=!1){if(null==t)throw new Error("Required parameter suspend was null or undefined when calling suspendTasksPropagation.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("suspend",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/suspendTasksPropagation`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),E=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addSpecificUserOwner(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("specificUser",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addUserExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter addUserExtSourceInput was null or undefined when calling addUserExtSource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}anonymizeUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}changeNonAuthzPasswordByToken(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==e)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("token",t)),null!=e&&(r=r.set("password",e)),null!=i&&(r=r.set("lang",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changeNonAuthzPassword/token`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}changePasswordForLogin(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");let c=new n.LE({encoder:this.encoder});null!=t&&(c=c.set("login",t)),null!=e&&(c=c.set("namespace",e)),null!=i&&(c=c.set("newPassword",i)),null!=s&&(c=c.set("oldPassword",s)),null!=o&&(c=c.set("checkOldPassword",o));let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(l=l.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/login`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:a})}changePasswordForUser(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");let c=new n.LE({encoder:this.encoder});null!=t&&(c=c.set("user",t)),null!=e&&(c=c.set("namespace",e)),null!=i&&(c=c.set("newPassword",i)),null!=s&&(c=c.set("oldPassword",s)),null!=o&&(c=c.set("checkOldPassword",o));let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(l=l.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/user`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:a})}checkPasswordResetRequestByTokenIsValid(t,e="body",i=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("token",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}checkPasswordStrength(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("password",t)),null!=e&&(o=o.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createAlternativePassword(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==i)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==s)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("user",t)),null!=e&&(a=a.set("description",e)),null!=i&&(a=a.set("loginNamespace",i)),null!=s&&(a=a.set("password",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/createAlternativePassword`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}createServiceUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateServiceUser was null or undefined when calling createServiceUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAlternativePassword(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==i)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("loginNamespace",e)),null!=i&&(r=r.set("passwordId",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}deletePasswordForLogin(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("login",t)),null!=e&&(o=o.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deletePasswordForUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}findRichUsers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("searchString",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}findRichUsersWithAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("searchString",t)),e&&e.forEach(t=>{o=o.append("attrsNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}findUsers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("searchString",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}generateAccountForName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("namespace",t)),null!=e&&(o=o.set("name",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAllRichUsersWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("includedSpecificUsers",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedRichResourcesForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupsForFacilityWhereUserIsActive(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupsForResourceWhereUserIsActive(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupsInVoWhereUserIsAdmin(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("vo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupsWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getPendingPreferredEmailChanges(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichUserExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichUserWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichUsersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichUsersWithAttributesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichUsersWithoutVoWithAttributes(t,e="body",i=!1){let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("attrsNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getSpecificUsersByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getSponsorsForMember(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getSponsorsForMemberByVoAndLogin(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("extSourceName",e)),null!=i&&(a=a.set("extLogin",i)),s&&s.forEach(t=>{a=a.append("attrNames[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getUserByExtSourceNameAndExtLogin(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("extLogin",t)),null!=e&&(o=o.set("extSourceName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getUserById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUserExtSourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUserExtSourceByUniqueAttributeValueAndAttributeId(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("attributeId",t)),null!=e&&(o=o.set("attributeValue",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserExtSourceByUniqueAttributeValueAndAttributeName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("attributeName",t)),null!=e&&(o=o.set("attributeValue",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUserExtSourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUsers(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getUsersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUsersBySpecificUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("specificUser",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUsersPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedUsers was null or undefined when calling getUsersPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getVosWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVosWhereUserIsMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}isLoginAvailable(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==e)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("loginNamespace",t)),null!=e&&(o=o.set("login",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}loginExist(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeSpecificUserOwner(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("specificUser",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeUserExtSource(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("userExtSource",e)),null!=i&&(r=r.set("force",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}requestPreferredEmailChange(t,e,i,s,o,r,a="body",c=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==e)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let l=new n.LE({encoder:this.encoder});null!=t&&(l=l.set("user",t)),null!=e&&(l=l.set("email",e)),null!=i&&(l=l.set("lang",i)),null!=s&&(l=l.set("linkPath",s)),null!=o&&(l=l.set("customUrl",o)),null!=r&&(l=l.set("idpFilter",r));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{params:l,withCredentials:this.configuration.withCredentials,headers:u,observe:a,reportProgress:c})}reservePasswordForLogin(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("login",t)),null!=e&&(r=r.set("namespace",e)),null!=i&&(r=r.set("password",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/login`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}reservePasswordForUser(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("namespace",e)),null!=i&&(r=r.set("password",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/user`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}reserveRandomPassword(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}updateUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateUser was null or undefined when calling updateUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}validatePasswordForLogin(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("login",t)),null!=e&&(o=o.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}validatePasswordForUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}validatePreferredEmailChangeWithToken(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==e)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("token",t)),null!=e&&(o=o.set("u",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),S=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}getAppsConfig(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getGuiConfiguration(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunRPCVersion(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["text/plain"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunStatistics(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunStatus(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunSystemTimeInMillis(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),k=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addSponsorRoleToGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addSponsorRoleToUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addVoAdminGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addVoAdminUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createVoWithName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==e)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("name",t)),null!=e&&(o=o.set("shortName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createVoWithVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateVoWithVo was null or undefined when calling createVoWithVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/createVo/withVo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteVo(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}findCandidates(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("id",t)),null!=e&&(r=r.set("searchString",e)),null!=i&&(r=r.set("maxNumOfResults",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}findCandidatesForGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("searchString",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAllVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAllVos`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getCompleteCandidatesForGroup(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("searchString",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getCompleteCandidatesForVo(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("searchString",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMyVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVos`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getRichAdminsForVo(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==i)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==s)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 c=new n.LE({encoder:this.encoder});null!=t&&(c=c.set("vo",t)),null!=e&&(c=c.set("role",e)),i&&i.forEach(t=>{c=c.append("specificAttributes",t)}),null!=s&&(c=c.set("allUserAttributes",s)),null!=o&&(c=c.set("onlyDirectAdmins",o));let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(l=l.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getRichAdmins`,{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:a})}getVoAdminGroups(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("role",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdminGroups`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getVoAdminUsers(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==i)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("role",e)),null!=i&&(r=r.set("onlyDirectAdmins",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdmins`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getVoBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("banId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoBanForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanForMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoBansForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBansForVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getVoById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoByShortName(t,e="body",i=!1){let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("shortName",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoByShortName`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoMembersCountsByStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVosByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVosCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeSponsorRoleFromGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeSponsorRoleFromUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeVoAdminGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeVoAdminUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeVoBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("banId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeVoBanForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}setVoBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoBan was null or undefined when calling setVoBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateVo was null or undefined when calling updateVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/updateVo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const I={WRITE:"WRITE",WRITEVO:"WRITE_VO",WRITEPUBLIC:"WRITE_PUBLIC",READ:"READ",READVO:"READ_VO",READPUBLIC:"READ_PUBLIC"};var x,R,O,P;!function(t){t.HiddenEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"},t.DisabledEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"}}(x||(x={})),function(t){t.FormatEnum={DOT:"DOT",TGF:"TGF"}}(R||(R={})),function(t){t.OwnerTypeEnum={NUMBER_0:0,NUMBER_1:1}}(O||(O={})),function(t){t.TypeEnum={Technical:"technical",Administrative:"administrative"}}(P||(P={}));const D={HTMLCOMMENT:"HTML_COMMENT",SUBMITBUTTON:"SUBMIT_BUTTON",AUTOSUBMITBUTTON:"AUTO_SUBMIT_BUTTON",FROMFEDERATIONSHOW:"FROM_FEDERATION_SHOW",FROMFEDERATIONHIDDEN:"FROM_FEDERATION_HIDDEN",PASSWORD:"PASSWORD",VALIDATEDEMAIL:"VALIDATED_EMAIL",TEXTFIELD:"TEXTFIELD",TEXTAREA:"TEXTAREA",CHECKBOX:"CHECKBOX",RADIO:"RADIO",SELECTIONBOX:"SELECTIONBOX",COMBOBOX:"COMBOBOX",USERNAME:"USERNAME",HEADING:"HEADING",TIMEZONE:"TIMEZONE",EMBEDDEDGROUPAPPLICATION:"EMBEDDED_GROUP_APPLICATION"};let M=(()=>{class t{constructor(t,e){if(t)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!e)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:t,providers:[{provide:a,useFactory:e}]}}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(t,12),o.LFG(n.eN,8))},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[c,l,u,h,d,p,g,f,m,b,_,w,A,y,v,T,C,E,S,k],imports:[[]]}),t})()},22280:function(t,e,i){"use strict";i.d(e,{r5:function(){return a.r},d4:function(){return o},dp:function(){return r.d}});var n=i(61511),s=i(31572);let o=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez]]}),t})();var r=i(22196),a=(i(83787),i(95603));i(91322),i(63720),i(1157),i(48853),i(44031),i(31447),i(92898)},83787:function(t,e,i){"use strict";i.d(e,{a:function(){return r}});var n=i(68416),s=i(31572),o=i(48160);let r=(()=>{class t{constructor(t,e){this.translate=t,this.storage=e}transform(t,e="en"){const i=this.storage.get("custom_labels");if(i){const n=Object.keys(i);for(const i of n){const n=this.storage.get("custom_labels",i);if(n.label===t)return n[e]}}return t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(o.sK,16),s.Y36(n.d6,16))},t.\u0275pipe=s.Yjl({name:"customTranslate",type:t,pure:!0}),t})()},95603:function(t,e,i){"use strict";i.d(e,{r:function(){return s}});var n=i(31572);let s=(()=>{class t{transform(t,e){return e?`/organizations/${t.voId}/resources/${t.id}`:`/facilities/${t.facilityId}/resources/${t.id}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"getResourceRoute",type:t,pure:!0}),t})()},51392:function(t,e,i){"use strict";i.d(e,{F:function(){return r}});var n=i(84140),s=i(67004),o=i(31572);let r=(()=>{class t{transform(t){if(null==t||null==t.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const e=(0,n.IL)(t.attributes,s.r.GROUP_SYNC_ENABLED),i=(0,n.IL)(t.attributes,s.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===e&&null===i)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const o=i.value;if("true"===e.value){const e=(0,n.IL)(t.attributes,s.r.GROUP_LAST_SYNC_STATE),i=(0,n.IL)(t.attributes,s.r.GROUP_LAST_SYNC_TIMESTAMP),o=e.value,r=i.value;return null!=o&&o.trim().length>0?"red":null!==r&&r.trim().length>0?"green":""}if(o){const e=(0,n.IL)(t.attributes,s.r.GROUP_LAST_STRUCTURE_SYNC_STATE),i=(0,n.IL)(t.attributes,s.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),o=e.value,r=i.value;return null!=o&&o.trim().length>0?"red":null!==r&&r.trim().length>0?"green":""}return""}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"groupSyncIconColor",type:t,pure:!0}),t})()},52984:function(t,e,i){"use strict";i.d(e,{J:function(){return r}});var n=i(67004),s=i(84140),o=i(31572);let r=(()=>{class t{transform(t){if(null==t||null==t.attributes)return"";const e=(0,s.IL)(t.attributes,n.r.GROUP_SYNC_ENABLED),i=(0,s.IL)(t.attributes,n.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===e&&null===i)return"";const o=i.value;if("true"===e.value){const e=(0,s.IL)(t.attributes,n.r.GROUP_LAST_SYNC_STATE),i=(0,s.IL)(t.attributes,n.r.GROUP_LAST_SYNC_TIMESTAMP),o=e.value,r=i.value;return null!=o&&o.trim().length>0?"sync_problem":(null!==r&&r.trim(),"sync")}if(o){const e=(0,s.IL)(t.attributes,n.r.GROUP_LAST_STRUCTURE_SYNC_STATE),i=(0,s.IL)(t.attributes,n.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),o=e.value,r=i.value;return null!=o&&o.trim().length>0?"sync_problem":(null!==r&&r.trim(),"sync")}return"sync_disabled"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"groupSyncIcon",type:t,pure:!0}),t})()},44385:function(t,e,i){"use strict";i.d(e,{r:function(){return r}});var n=i(84140),s=i(67004),o=i(31572);let r=(()=>{class t{transform(t){if(null==t||null==t.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const e=(0,n.IL)(t.attributes,s.r.GROUP_SYNC_ENABLED),i=(0,n.IL)(t.attributes,s.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===e&&null===i)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const o=i.value;if("true"===e.value){const e=(0,n.IL)(t.attributes,s.r.GROUP_LAST_SYNC_STATE),i=(0,n.IL)(t.attributes,s.r.GROUP_LAST_SYNC_TIMESTAMP),o=e.value,r=i.value;return null!=o&&o.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==r&&r.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}if(o){const e=(0,n.IL)(t.attributes,s.r.GROUP_LAST_STRUCTURE_SYNC_STATE),i=(0,n.IL)(t.attributes,s.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),o=e.value,r=i.value;return null!=o&&o.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==r&&r.trim().length>0?"VO_DETAIL.GROUPS.GROUP_STRUCTURE_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"groupSyncToolTip",type:t,pure:!0}),t})()},63720:function(t,e,i){"use strict";i.d(e,{D:function(){return o}});var n=i(84140),s=i(31572);let o=(()=>{class t{transform(t){return(0,n.g$)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"memberEmail",type:t,pure:!0}),t})()},1157:function(t,e,i){"use strict";i.d(e,{p:function(){return o}});var n=i(84140),s=i(31572);let o=(()=>{class t{transform(t){return(0,n.lt)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"memberLogins",type:t,pure:!0}),t})()},99197:function(t,e,i){"use strict";i.d(e,{M:function(){return o}});var n=i(84140),s=i(31572);let o=(()=>{class t{transform(t){return(0,n.Gw)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"memberOrganization",type:t,pure:!0}),t})()},74842:function(t,e,i){"use strict";i.d(e,{u:function(){return s}});var n=i(31572);let s=(()=>{class t{transform(t){switch(t){case"VALID":return"green";case"INVALID":return"red";default:return""}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"memberStatusIconColor",type:t,pure:!0}),t})()},37043:function(t,e,i){"use strict";i.d(e,{f:function(){return s}});var n=i(31572);let s=(()=>{class t{transform(t){switch(t){case"VALID":return"verified_user";case"INVALID":return"report";case"EXPIRED":return"schedule";case"DISABLED":return"delete";default:return t}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"memberStatusIcon",type:t,pure:!0}),t})()},91322:function(t,e,i){"use strict";i.d(e,{i:function(){return o}});var n=i(84140),s=i(31572);let o=(()=>{class t{transform(t,e){let i=null,s=null;null!==t.memberAttributes&&(i=t.memberAttributes.find(t=>"membershipExpiration"===t.friendlyName),s=t.memberAttributes.find(t=>"groupMembershipExpiration"===t.friendlyName));let o="";return o=e?`\n Group status: ${(0,n.Oe)(t.groupStatus)}, Expiration: ${s&&s.value?s.value:"never"}`:`Status: ${(0,n.Oe)(t.status,t.groupStatus)}\n Vo status: ${(0,n.Oe)(t.status)}, Expiration: ${i&&i.value?i.value:"never"}`,o}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"memberStatusTooltip",type:t,pure:!0}),t})()},5725:function(t,e,i){"use strict";i.d(e,{l:function(){return s}});var n=i(31572);let s=(()=>{class t{transform(t){return t.replace("VALID","ACTIVE")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"memberStatus",type:t,pure:!0}),t})()},82877:function(t,e,i){"use strict";i.d(e,{R:function(){return s}});var n=i(31572);let s=(()=>{class t{transform(t){return t.replace(/\s/g,"-").toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"multiWordDataCy",type:t,pure:!0}),t})()},58506:function(t,e,i){"use strict";i.d(e,{M:function(){return o}});var n=i(61511),s=i(31572);let o=(()=>{class t{transform(t,e){return"voRules"===t?"Vo rules":"groupRules"===t?"Group rules":t&&"never"!==t.toLowerCase()?(0,n.p6)(t.replace(" ","T"),"d.M.yyyy "+(e?"H:mm:ss":""),"en"):"never"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"parseDate",type:t,pure:!0}),t})()},48853:function(t,e,i){"use strict";i.d(e,{J:function(){return o}});var n=i(84140),s=i(31572);let o=(()=>{class t{transform(t){return(0,n.te)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"technicalOwners",type:t,pure:!0}),t})()},44031:function(t,e,i){"use strict";i.d(e,{S:function(){return o}});var n=i(84140),s=i(31572);let o=(()=>{class t{transform(t){return(0,n.kN)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"userEmail",type:t,pure:!0}),t})()},22196:function(t,e,i){"use strict";i.d(e,{d:function(){return s}});var n=i(31572);let s=(()=>{class t{transform(t){let e="";return null!==t.titleBefore&&(e+=t.titleBefore+" "),null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),null!==t.titleAfter&&(e+=t.titleAfter+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"userFullName",type:t,pure:!0}),t})()},31447:function(t,e,i){"use strict";i.d(e,{g:function(){return o}});var n=i(84140),s=i(31572);let o=(()=>{class t{transform(t){return(0,n.$0)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"userLogins",type:t,pure:!0}),t})()},92898:function(t,e,i){"use strict";i.d(e,{Z:function(){return o}});var n=i(84140),s=i(31572);let o=(()=>{class t{transform(t){return(0,n.OV)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"userVo",type:t,pure:!0}),t})()},68416:function(t,e,i){"use strict";i.d(e,{yC:function(){return k},F5:function(){return E},sM:function(){return R},e8:function(){return d},EB:function(){return w},Be:function(){return G},Hy:function(){return z},ly:function(){return D},fb:function(){return j},xw:function(){return O},x4:function(){return r},v0:function(){return m},SZ:function(){return I},V6:function(){return S},jq:function(){return U},BN:function(){return Z},HV:function(){return F},d6:function(){return l},UA:function(){return P}});var n=i(65249),s=i(14732),o=i(31572);let r=(()=>{class t{constructor(t){this.authzSevice=t,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(t){this.principal=t,this.initData(t)}setPerunPolicies(t){this.perunPolicies=t}getPerunPolicies(){return this.perunPolicies}isAuthorized(t,e){if(null===this.principal.roles)return!1;const i=this.fetchPolicyWithAllIncludedPolicies(t);let n=[];for(const o of i)n=n.concat(o.perunRoles);const s=this.fetchAllRelatedObjects(e);return this.resolveAuthorization(n,s)}resolveAuthorization(t,e){for(const i of t){let t=!0;for(const n of Object.keys(i)){const s=i[n];if(null===s)this.principalRoles.has(n)||(t=!1);else if(e[s]){for(const i of e[s])if(!this.principalHasRole(n,s,i)){t=!1;break}}else t=!1;if(!t)break}if(t)return!0}return!1}fetchAllRelatedObjects(t){const e={};for(const i of t){let t=i.beanName;switch(i.beanName.startsWith("Rich")&&(t=i.beanName.substring(4)),e[t]?e[t].push(i.id):e[t]=[i.id],t){case"Member":e.User?e.User.push(i.userId):e.User=[i.userId],e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"Group":e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"Resource":e.Facility?e.Facility.push(i.facilityId):e.Facility=[i.facilityId],e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"ResourceTag":e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId]}}return e}principalHasRole(t,e,i){let n=e;return e.startsWith("Rich")&&(n=e.substring(4)),!(!this.principal.roles[t]||!this.principal.roles[t][n])&&this.principal.roles[t][n].includes(Number(i.toString()))}fetchPolicyWithAllIncludedPolicies(t){const e=new Map;let i=[];for(i.push(t);0!==i.length;){const n=i.shift();if(e.has(n)){console.log("Policy {} creates a cycle in the included policies of the policy {}",n,t);continue}const s=this.getPerunPolicy(n);if(!s)return[];e.set(n,s),i=i.concat(s.includePolicies)}const n=[];for(const s of e.values())n.push(s);return n}getPerunPolicy(t){for(const e of this.perunPolicies)if(e.policyName===t)return e;return console.log("policy with name"+t+"was not found"),null}canManageFacilities(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.PERUNOBSERVER,s.u.FACILITYADMIN,s.u.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(s.u.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.VOADMIN)}isThisVoAdminOrObserver(t){return this.editableVos.includes(Number(t.toString()))||this.observableVos.includes(Number(t.toString()))||this.hasAtLeastOne(s.u.PERUNADMIN,s.u.PERUNOBSERVER)}isThisVoAdmin(t){return this.editableVos.includes(t)||this.principalRoles.has(s.u.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(s.u.SPONSOR)}isThisGroupAdmin(t){return this.editableGroups.includes(t)||this.principalRoles.has(s.u.PERUNADMIN)}isGroupAdminInThisVo(t){return this.hasGroupInTheseVos.includes(t)}isFacilityAdmin(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.FACILITYADMIN)}isThisFacilityAdmin(t){return this.editableFacilities.includes(t)||this.principalRoles.has(s.u.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(s.u.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.VOOBSERVER,s.u.PERUNOBSERVER)}isThisVoObserver(t){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.PERUNOBSERVER)||this.observableVos.includes(t)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((t,e)=>{this.authzSevice.getAllRolesManagementRules().subscribe(e=>{this.allRolesManagementRules=e,t()},t=>e(t))})}assignAvailableRoles(t,e){this.allRolesManagementRules.forEach(i=>{i.primaryObject===e&&t.push(i.roleName)}),t.sort(),"Vo"===e&&this.voCustomSort(t)}isManagerPagePrivileged(t){const e=[];let i=t.beanName;i.startsWith("Rich")&&(i=i.substr(4)),this.assignAvailableRoles(e,i);const n=new Map;this.getRolesAuthorization(e,t,n);for(const s of n.values())if(s.readAuth||s.manageAuth)return!0;return!1}getRolesAuthorization(t,e,i){for(const n of t){let t=[],s=[],o=[];for(const e of this.allRolesManagementRules)if(e.roleName===n){t=t.concat(e.privilegedRolesToRead),s=s.concat(e.privilegedRolesToManage);for(const t of Object.keys(e.entitiesToManage))o="User"===t?[t].concat(o):o.concat(t);break}const r=this.fetchAllRelatedObjects([e]),a=this.resolveAuthorization(t,r),c=this.resolveAuthorization(s,r);i.set(n,{readAuth:a,manageAuth:c,modes:o})}}voCustomSort(t){for(let e=0;e{class t{constructor(){this.branding=""}setInstanceConfig(t){this.instanceConfig=t}setDefaultConfig(t){this.defaultConfig=t}getAppsConfig(){return this.appsConfig}setAppsConfig(t){this.appsConfig=t}setPerunPrincipal(t){this.principal=t}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(t){this.initialPageId=t}getLoginAttributeNames(){return this.get("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.get("member_profile_attributes_friendly_names")}setBanding(t){this.branding=t}skipOidc(){return this.get("skip_oidc")}get(...t){let e;if(""!==this.branding){const i=this.instanceConfig.brandings[this.branding];for(let n=0;n{class t{constructor(t,e,i,n,s){this.injector=t,this.store=e,this.dialog=i,this.route=n,this.oauthService=s,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(c.F0),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(t=>{t.idpFilter&&(this.filterShortname=t.idpFilter)})}getClientConfig(){const t=this.setIdpFilter(),e=t?{acr_values:t}:{};return this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(e.prompt="consent"),{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"),customQueryParams:e}}setIdpFilter(){const t=location.search.substr(1).split("&");this.filterShortname=null;const e=this.store.get("oidc_client","filters");if(!e)return null;let i=null;return t.forEach(t=>{const n=t.split("=");"idpFilter"===n[0]&&e[n[1]]&&(this.filterShortname=n[1],i=e[n[1]])}),e.default&&!i?(this.filterShortname="default",e.default):i}startIdpFilterKeeper(){this.router.events.pipe((0,a.h)(t=>t instanceof c.m2)).subscribe(()=>{const t={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===t.idpFilter?{}:t,queryParamsHandling:"merge",replaceUrl:!0})})}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const t=location.pathname,e=location.search.substr(1);return"/api-callback"===t?this.handleAuthCallback().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(t,e).then(()=>this.startRefreshToken())}startRefreshToken(){return this.isLoggedInPromise().then(t=>!!t&&(this.oauthService.events.pipe((0,a.h)(t=>"token_expires"===t.type)).subscribe(()=>{this.oauthService.refreshToken()}),!0))}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):this.oauthService.logOut()}isLoggedInPromise(){return this.isLoggedIn()?Promise.resolve(!0):Promise.resolve(!1)}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}isPotentiallyValidPath(t){const e=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===t)return!0;for(const i of e)if(t.startsWith(i))return!0;return!1}verifyAuthentication(t,e){return this.isLoggedInPromise().then(i=>i?(this.oauthService.loadDiscoveryDocument(),!0):this.isPotentiallyValidPath(t)?(sessionStorage.setItem("auth:redirect",t),sessionStorage.setItem("auth:queryParams",e),!1):new Promise((t,e)=>e("Invalid path")))}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const t=sessionStorage.getItem("mfa_route");if(t)return this.router.navigate([t],{replaceUrl:!0});let e=sessionStorage.getItem("auth:redirect");const i=sessionStorage.getItem("auth:queryParams");let n=[];i&&(n=i.split("&"));const s={};return n.forEach(t=>{const e=t.split("=");s[e[0]]=e[1]}),e&&"/login"!==e||(e="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),s.idpFilter&&(this.filterShortname=s.idpFilter),this.router.navigate([e],{queryParams:s,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(o.zs3),o.LFG(l),o.LFG(u.uw),o.LFG(c.gz),o.LFG(h.Ct))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var p=i(48160);let g=(()=>{class t{constructor(t){this.dialogRef=t}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(u.so))},t.\u0275cmp=o.Xpm({type:t,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(t,e){1&t&&(o.TgZ(0,"h2",0),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE")))},directives:[u.xY],pipes:[p.X$],styles:[""]}),t})();var f=i(84140);let m=(()=>{class t{constructor(t,e,i,n,s,o){this.authService=t,this.storeService=e,this.authResolver=i,this.authzService=n,this.dialog=s,this.router=o,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(t){this.loginScreenShown=t}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)):(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(t=>t(!0)):this.authService.verifyAuth())}startAuth(){return this.authService.startAuthentication(),new Promise(()=>{})}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(t=>{if(null===t.user){const t=(0,f.kZ)();this.dialog.open(g,t)}else this.storeService.setPerunPrincipal(t),this.authResolver.init(t)})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(t=>{t()});if(this.storeService.get("auto_auth_redirect"))return this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0);const t=location.search.substr(1).split("&"),e={};for(const i of t){const t=i.split("=");e[t[0]]=t[1]}return this.router.navigate(["login"],{queryParams:e,queryParamsHandling:"merge"}).then(()=>null)}}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(d),o.LFG(l),o.LFG(r),o.LFG(n.Ct),o.LFG(u.uw),o.LFG(c.F0))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var b=i(43691),_=i(30269);let w=(()=>{class t{constructor(t,e){this.matIconRegistry=t,this.domSanitizer=e,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/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/settings1-blue.svg",name:"settings-blue"},{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"}]}registerPerunRefreshIcon(){this.customIcons.forEach(t=>{this.matIconRegistry.addSvgIcon(t.name,this.domSanitizer.bypassSecurityTrustResourceUrl(t.url))})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(b.jv),o.LFG(_.H7))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t})();var A=i(29063),y=i(31225),v=i(66599),T=i(15980);let C=(()=>{class t{constructor(t){this.dialogRef=t}close(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(u.so))},t.\u0275cmp=o.Xpm({type:t,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(t,e){1&t&&(o.TgZ(0,"h1",0),o._uU(1),o.ALo(2,"translate"),o.qZA(),o.TgZ(3,"div",1),o._uU(4),o.ALo(5,"translate"),o.qZA(),o.TgZ(6,"div",2),o.TgZ(7,"div",3),o.TgZ(8,"button",4),o.NdJ("click",function(){return e.close()}),o._uU(9),o.ALo(10,"translate"),o.qZA(),o.qZA(),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),o.xp6(3),o.hij(" ",o.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),o.xp6(5),o.hij(" ",o.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},directives:[u.uh,u.xY,u.H8,T.lW],pipes:[p.X$],styles:[""]}),t})(),E=(()=>{class t{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const t=this.handleNextError;return this.handleNextError=!0,t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),S=(()=>{class t{constructor(t){this.translate=t,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3,this.addNotification=new o.vpe}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(t,e=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===t.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===t.name?e:e+"\n"+t.name,t,t.message)}showError(t,e,i,n,s){this.addNotification.emit({type:"error",error:e,description:i,title:t,actionText:void 0===n&&void 0!==i?this.getDefaultActionMessage():n,delay:this.defaultErrorDelayMs,icon:"error_outline",action:s,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(t,e,i,n){this.addNotification.emit({type:"success",description:e,title:t,actionText:void 0===i&&void 0!==e?this.getDefaultActionMessage():i,delay:this.defaultSuccessDelayMs,icon:"done",action:n,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(p.sK))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),k=(()=>{class t{constructor(t,e,i,n,s,o){this.authService=t,this.apiRequestConfiguration=e,this.notificator=i,this.store=n,this.dialog=s,this.initAuthService=o}intercept(t,e){const i=this.store.get("api_url");if(-1!==t.url.indexOf("i18n")&&(t=t.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==i&&-1!==t.url.toString().indexOf(i)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()){const t=(0,f.kZ)();t.width="450px",this.dialog.open(C,t).afterClosed().subscribe(()=>{sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substr(1)),this.authService.startAuthentication()})}t=this.initAuthService.isServiceAccess()?t.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):t.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}});const n=this.apiRequestConfiguration.shouldHandleError(),s="POST"===t.method&&!this.store.skipOidc()&&this.isCallToPerunApi(t.url);return e.handle(t).pipe((0,v.b)(t=>{t instanceof A.Zn&&s&&this.initAuthService.loadPrincipal()},e=>{const i=this.formatErrors(e,t);return void 0===i?(0,y._)(e):n?void this.notificator.showRPCError(i):(0,y._)(i)}))}isCallToPerunApi(t){return t.startsWith(this.store.get("api_url"))}formatErrors(t,e){let i;if(console.error(t),t.error.errorId?i=t.error:t.errorId&&(i=JSON.parse(t.error)),void 0!==i)return i.urlWithParams=e.urlWithParams,i.call=e.url,i.payload=e.body,i}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(d),o.LFG(E),o.LFG(S),o.LFG(l),o.LFG(u.uw),o.LFG(m))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t})(),I=(()=>{class t{constructor(){this.notificationData=[],this.newNotificationsCount=0}storeNotification(t){this.newNotificationsCount++,this.notificationData.push(t)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var x=i(47727);let R=(()=>{class t{constructor(t,e,i,n){this.http=t,this.notificator=e,this.authService=i,this.storeService=n}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}formatErrors(t,e,i,n){const s=t.error;return s.call=e,s.payload=i,n&&this.notificator.showRPCError(t.error),(0,y._)(s)}getHeaders(){let t=new A.WM;return t=t.set("Authorization",this.authService.getAuthorizationHeaderValue()),t}get(t,e=!0){const i=`${this.getApiUrl()}${t}`;return this.http.get(i,{headers:this.getHeaders()}).pipe((0,x.K)(t=>this.formatErrors(t,i,null,e)))}put(t,e={},i=!0){const n=`${this.getApiUrl()}${t}`,s=JSON.stringify(e);return this.http.put(n,s,{headers:this.getHeaders()}).pipe((0,x.K)(t=>this.formatErrors(t,n,s,i)))}post(t,e={},i=!0){const n=`${this.getApiUrl()}${t}`,s=JSON.stringify(e);let o=this.getHeaders();return o=o.set("Content-Type","application/json; charset=utf-8"),this.http.post(n,s,{headers:o}).pipe((0,x.K)(t=>this.formatErrors(t,n,s,i)))}delete(t,e=!0){const i=`${this.getApiUrl()}${t}`;return this.http.delete(i,{headers:this.getHeaders()}).pipe((0,x.K)(t=>this.formatErrors(t,i,null,e)))}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(A.eN),o.LFG(S),o.LFG(d),o.LFG(l))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),O=(()=>{class t{constructor(t){this.router=t,this.lastState="forward",this.history=new Set,t.events.subscribe(t=>{t instanceof c.OD&&("popstate"===t.navigationTrigger?this.history.has(t.restoredState.navigationId)?(this.lastState="back",this.history.delete(t.restoredState.navigationId)):(this.lastState="forward",this.history.add(t.id)):(this.history.add(t.id),this.lastState="forward"))})}forceNavigate(t,e){if(null===t)return;let i="";t.forEach(t=>i+="/"+t),i.length>0&&(i=i.substring(1)),void 0===e&&(e={}),e.queryParams={redirectTo:i},this.router.navigate(["redirect"],e)}getLastState(){return this.lastState}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(c.F0))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),P=(()=>{class t{constructor(){}isAllSelectedWithDisabledCheckbox(t,e,i,n,s,o,r,a){return this.numSelected=t,this.numCanBeSelected=0,this.pageStart=s*i,this.pageEnd=this.pageStart+i,this.pageIterator=0,this.dataLength=""===e?o.data.length:o.filteredData.length,n||(this.modulo=this.dataLength%i,this.pageEnd=0===this.modulo?this.pageStart+i:this.pageStart+this.modulo),o.sortData(o.filteredData,r).forEach(t=>{this.pageStart<=this.pageIterator&&this.pageIterator{a?c(t)&&this.pageStart<=this.pageIterator&&this.pageIterator{class t{constructor(t,e,i){this.membersService=t,this.usersService=e,this.auditMessagesManagerService=i}getMembers(t,e,i,n,s,o,r,a,c,l){return this.membersService.getMembersPage({vo:t,attrNames:e,query:{pageSize:s,offset:n*s,order:i,sortColumn:o,statuses:r,searchString:a,groupId:c,groupStatuses:l}})}getUsers(t,e,i,n,s,o,r,a,c,l,u,h){return this.usersService.getUsersPage({attrNames:t,query:{offset:n*i,pageSize:n,order:e,sortColumn:s,searchString:o,withoutVo:r,facilityId:a,voId:c,resourceId:l,serviceId:u,onlyAllowed:h}})}getAuditMessages(t,e,i){return this.auditMessagesManagerService.getMessagesPage({query:{offset:i*e,pageSize:i,order:t}})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.uq),o.LFG(n.Fv),o.LFG(n.jw))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var M=i(78512),L=i(40878),N=i(11520);class z{constructor(t,e){this.dynamicPaginatingService=t,this.authzService=e,this.dataSubject=new M.X([]),this.loadingSubject=new M.X(!1),this.loading$=this.loadingSubject.asObservable(),this.allObjectCount=0,this.routeAuth=!0}loadMembers(t,e,i,n,s,o,r,a,c,l){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const u=this.latestQueryTime;this.dynamicPaginatingService.getMembers(t,e,i,n,s,o,r,a,c,l).pipe((0,x.K)(()=>(0,L.of)([])),(0,N.x)(()=>this.loadingSubject.next(!1))).subscribe(e=>{if(this.latestQueryTime<=u){const i=e.data;null!==i&&0!==i.length&&(this.routeAuth=this.authzService.isAuthorized("getMemberById_int_policy",[{beanName:"Vo",id:t},i[0]])),this.allObjectCount=e.totalCount,this.dataSubject.next(i)}})}loadUsers(t,e,i,n,s,o,r,a,c,l,u,h){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const d=this.latestQueryTime;this.dynamicPaginatingService.getUsers(t,n,i,e,s,o,r,a,c,l,u,h).pipe((0,x.K)(()=>(0,L.of)([])),(0,N.x)(()=>this.loadingSubject.next(!1))).subscribe(t=>{if(this.latestQueryTime<=d){const e=t.data;this.allObjectCount=t.totalCount,this.dataSubject.next(e)}})}loadAuditMessages(t,e,i){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const n=this.latestQueryTime;this.dynamicPaginatingService.getAuditMessages(i,e,t).pipe((0,x.K)(()=>(0,L.of)([])),(0,N.x)(()=>this.loadingSubject.next(!1))).subscribe(t=>{if(this.latestQueryTime<=n){const e=t.data;this.allObjectCount=t.totalCount,this.dataSubject.next(e)}})}connect(){return this.dataSubject.asObservable()}disconnect(){this.dataSubject.complete(),this.loadingSubject.complete()}getData(){return this.dataSubject.value}}let Z=(()=>{class t{constructor(t,e){this.route=t,this.store=e}getPreferredLanguage(t){const e=this.store.get("supported_languages"),i=navigator.languages.map(t=>t.split("-")[0]),n=location.search.substr(1).split("&");let s=null;for(const o of n){const t=o.split("=");"lang"===t[0]&&(s=t[1])}return s&&e.includes(s)?s:t&&e.includes(t)?t:i&&e.includes(i[0])?i[0]:"en"}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(c.gz),o.LFG(l))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var B=i(64762);let q=(()=>{class t{constructor(){}loadPdfMake(){return(0,B.mG)(this,void 0,void 0,function*(){if(!this.pdfMake){const t=yield i.e(943).then(i.t.bind(i,34943,23)),e=yield i.e(518).then(i.t.bind(i,70518,19));this.pdfMake=t.default,this.pdfMake.vfs=e.default.pdfMake.vfs}})}generatePdf(t){return(0,B.mG)(this,void 0,void 0,function*(){yield this.loadPdfMake(),this.pdfMake.createPdf(t).open()})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),F=(()=>{class t{constructor(t){this.pdfService=t}static generateTableForUser(e){const i=e.name.replace(";"," ").split(";")[0];return"OK"!==e.status?this.generateErrorRowForUser(i,e.status):t.generateRowForUser(i,e.login,e.password)}static generateErrorRowForUser(t,e){return{table:{heights:[30,1,1],widths:[249,249],body:[[{text:t,colSpan:1,alignment:"center",bold:!0,fontSize:12,margin:[20,25],color:"red"},{text:e,alignment:"center",bold:!0,color:"red"}]]}}}static generateRowForUser(e,i,n){return{table:{heights:[30,0],widths:[120,120,120,120],body:[[t.generateNameCell(e),{},t.getPasswordLabelCell(),t.generatePasswordCell(n)],[t.getLoginLabelCell(),t.generateLoginCell(i),{},{}]]}}}static generateNameCell(t){return{text:t,colSpan:2,alignment:"center",border:[!0,!0,!0,!1],bold:!0,fontSize:12,margin:[10,10]}}static generatePasswordCell(t){return{text:null==t?"N/A":t,border:[!1,!0,!0,!0],bold:!0,margin:[0,25],rowSpan:2,alignment:"left"}}static generateLoginCell(t){return{text:null==t?"N/A":t,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(e){return(0,B.mG)(this,void 0,void 0,function*(){const i=[];for(const n of e)i.push(t.generateTableForUser(n));return this.pdfService.generatePdf({content:i})})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(q))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),U=(()=>{class t{constructor(t){this.storeService=t}static getBrandContainingDomain(t,e){for(const i of t)if(i.newApps.admin===e||i.newApps.profile===e||i.newApps.pwdReset===e)return i;return t[0]}getUrlForOtherApplication(e,i){const n=window.location.href.split("/"),s=n[0]+"//"+n[2],o=t.getBrandContainingDomain(this.storeService.getAppsConfig().brands,s);let r;if(o.newApps[e])r=o.newApps[e],"pwdReset"===e&&(r+=`?login-namespace=${i}`);else switch(r=o.oldGuiDomain+"/fed",e){case"admin":r+="/gui/";break;case"profile":r+="/profile/";break;case"pwdReset":r+="/pwd-reset/"}return r}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(l))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var H=i(73005);let G=(()=>{class t extends H.ye{constructor(){super(...arguments),this.getRangeLabel=function(t,e,i){let n;return n=i<1e3?i:i<1e4?"1 000":i<1e5?"10 000":"100 000",`${t*e+1} \u2013 ${(t+1)*e} of ${n} +`}}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t})(),j=(()=>{class t{setEntity(t){this.entity=t}getEntity(){return this.entity}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},67004:function(t,e,i){"use strict";i.d(e,{r:function(){return n}});let n=(()=>{class t{}return t.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",t.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",t.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",t.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",t.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",t.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",t.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",t.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",t.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",t.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",t.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",t.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",t.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",t.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",t.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",t.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",t.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",t.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",t.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",t.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",t.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",t})()},84140:function(t,e,i){"use strict";i.d(e,{dN:function(){return p},Je:function(){return u},f7:function(){return h.f7},l9:function(){return d.l},sF:function(){return h.sF},XI:function(){return h.XI},aC:function(){return h.aC},fx:function(){return h.fx},dv:function(){return h.dv},i5:function(){return h.i5},Sd:function(){return h.Sd},pR:function(){return h.pR},ys:function(){return h.ys},O6:function(){return h.O6},B2:function(){return h.B2},mH:function(){return h.mH},MX:function(){return h.MX},oU:function(){return h.oU},IL:function(){return h.IL},Jc:function(){return h.Jc},Xn:function(){return h.Xn},kZ:function(){return h.kZ},v$:function(){return h.v$},x2:function(){return h.x2},vL:function(){return h.vL},Hm:function(){return h.Hm},Cz:function(){return h.Cz},sG:function(){return h.sG},g$:function(){return h.g$},bD:function(){return h.bD},lt:function(){return h.lt},Oe:function(){return h.Oe},hu:function(){return h.hu},Gw:function(){return h.Gw},te:function(){return h.te},kN:function(){return h.kN},$0:function(){return h.$0},OV:function(){return h.OV}});var n=i(73005),s=i(8055),o=i(43691),r=i(15980),a=i(48160),c=i(61511),l=i(31572);let u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({providers:[],imports:[[n.TU,s.Tx,o.Ps,r.ot,a.aw,c.ez]]}),t})();var h=i(38457),d=i(82819);class p{static passwordMatchValidator(t){const e=t.get("passwordCtrl").value,i=t.get("passwordAgainCtrl").value;return t.get("passwordAgainCtrl").setErrors(e!==i?{noPasswordMatch:!0}:null),null}static patternValidator(t){return e=>{if(!e.value)return null;let i=0;for(const n of t)i+=n.test(e.value)?1:0;return i>=3?null:{isWeak:!0}}}}},38457:function(t,e,i){"use strict";i.d(e,{f7:function(){return a},B2:function(){return c},g$:function(){return l},kN:function(){return u},$0:function(){return h},lt:function(){return d},bD:function(){return p},hu:function(){return g},Cz:function(){return f},te:function(){return m},ys:function(){return b},vL:function(){return _},sF:function(){return w},XI:function(){return A},OV:function(){return y},MX:function(){return v},oU:function(){return T},IL:function(){return C},Jc:function(){return E},v$:function(){return S},i5:function(){return k},kZ:function(){return I},dv:function(){return x},Hm:function(){return R},Oe:function(){return O},Gw:function(){return P},x2:function(){return D},sG:function(){return M},pR:function(){return N},Sd:function(){return z},Xn:function(){return Z},O6:function(){return B},aC:function(){return q},fx:function(){return F},mH:function(){return U}});var n=i(64762),s=i(84608),o=i(61511),r=i(82051);const a=[5,10,25,100],c=/^(([^<>+()[\]\\.,;:\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 l(t){let e="";return t&&null!==t.userAttributes&&(t.userAttributes.forEach(t=>{"preferredMail"===t.friendlyName&&(e=t.value)}),e&&0===e.length&&null!==t.memberAttributes&&t.memberAttributes.forEach(t=>{"mail"===t.friendlyName&&null!==t.value&&(e=t.value)})),e}function u(t){let e="";return t&&t.userAttributes.forEach(t=>{"preferredMail"===t.friendlyName&&(e=t.value)}),e}function h(t){let e="";return t&&t.userAttributes&&t.userAttributes.filter(t=>"login-namespace"===t.baseFriendlyName).filter(t=>null!==t.value).forEach(t=>{e+=t.friendlyNameParameter+": "+t.value+", "}),e.endsWith(", ")&&(e=e.substring(0,e.length-2)),e}function d(t){let e="";return t&&t.userAttributes&&t.userAttributes.filter(t=>"login-namespace"===t.baseFriendlyName).filter(t=>null!==t.value).forEach(t=>{e+=t.friendlyNameParameter+": "+t.value+", "}),e.endsWith(", ")&&(e=e.substring(0,e.length-2)),e}function p(t){let e="";return null!==t.titleBefore&&(e+=t.titleBefore+" "),null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),null!==t.titleAfter&&(e+=t.titleAfter+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}function g(t){let e="";return null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}function f(t){let e="";return t.split(/(?=[A-Z])/g).forEach(t=>{e=e.concat(t.toLowerCase()),e=e.concat(" ")}),e=e.charAt(0).toUpperCase()+e.slice(1,e.length-1),e}function m(t){let e="";for(const i of t)"technical"===i.type&&(e+=i.name+", ");return e.endsWith(", ")&&(e=e.substring(0,e.length-2)),e}function b(t,e){return(0,n.mG)(this,void 0,void 0,function*(){var i;yield(i=t,new Promise(t=>setTimeout(t,i))),e()})}function _(t){return JSON.parse(localStorage.getItem(t))||[]}function w(t,e){if(null===localStorage.getItem(t)){const i=[];i.unshift(e.id),localStorage.setItem(t,JSON.stringify(i))}else{const i=JSON.parse(localStorage.getItem(t)),n=function(t,e){for(let i=0;i0&&i.splice(n,1),0!==n&&i.unshift(e.id),i.length>5&&i.pop(),localStorage.setItem(t,JSON.stringify(i))}}function A(t,e){if(null===localStorage.getItem("recent")){let i;i="Group"===t.beanName?[{id:t.id,name:t.shortName,fullName:t.name,type:t.beanName,voId:t.voId,voName:e}]:[{id:t.id,name:t.name,type:t.beanName,voId:t.voId}],localStorage.setItem("recent",JSON.stringify(i))}else{const i=JSON.parse(localStorage.getItem("recent"));let n;n="Group"===t.beanName?{id:t.id,name:t.shortName,fullName:t.name,type:t.beanName,voId:t.voId,voName:e}:{id:t.id,name:t.name,type:t.beanName,voId:t.voId};const s=function(t,e){for(let i=0;i0&&i.splice(s,1),0!==s&&i.unshift(n),i.length>5&&i.pop(),localStorage.setItem("recent",JSON.stringify(i))}}function y(t){let e="";return t&&t.userAttributes.forEach(t=>{"organization"===t.friendlyName&&(e=t.value)}),e}function v(t){return t.filter(t=>!t.namespace.includes("def:core"))}function T(t,e){const i=e.find(e=>e.id===t);return i?i.parentGroupId?T(i.parentGroupId,e).concat(i):[i]:[]}function C(t,e){for(const i of t)if(i.namespace+":"+i.friendlyName===e)return i;return null}function E(t){return null!=t.attributes["urn:perun:member:attribute-def:def:mail"]?t.attributes["urn:perun:member:attribute-def:def:mail"]:null!=t.attributes["urn:perun:user:attribute-def:def:preferredMail"]?t.attributes["urn:perun:user:attribute-def:def:preferredMail"]:""}function S(t){return t.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceX509".toLowerCase()?function(t){if(t.includes("/CN=")){const i=t.split("/");for(const t in i)if(t.startsWith("CN="))return e=t.substring(3),decodeURIComponent(e.replace(/\\x/g,"%"))}var e;return t}(t.userExtSource.extSource.name):t.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceIdp".toLowerCase()?function(t){switch(t){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":return"Elixir Europe";case"https://login.elixir-czech.org/idp":return"Elixir Czech";case"https://mojeid.cz/saml/idp.xml":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"@mojeid.extidp.cesnet.cz":return"MojeID";case"@linkedin.extidp.cesnet.cz":return"LinkedIn";case"@twitter.extidp.cesnet.cz":return"Twitter";case"@seznam.extidp.cesnet.cz":return"Seznam";case"@elixir-europe.org":return"Elixir Europe";case"@github.extidp.cesnet.cz":return"GitHub";case"@orcid.extidp.cesnet.cz":return"OrcID";default:return t}}(t.userExtSource.extSource.name):t.userExtSource.extSource.name}function k(t=["en","cs"]){const e={appType:"INITIAL",formId:0,mailType:"APP_CREATED_USER",send:!0,message:{}};return t.forEach(t=>{e.message[t]={locale:t,subject:"",text:""}}),e}function I(){const t=new s.vA;return t.disableClose=!0,t.autoFocus=!1,t}function x(t){const e={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 i of t)e.i18n[i]={locale:i,errorMessage:"",help:"",label:"",options:""};return e}function R(t){return"virt"===t.namespace.split(":")[4]}function O(t,e){return"valid"!==t.toLowerCase()||e&&"valid"!==t.toLowerCase()?t:"ACTIVE"}function P(t){let e="";return t&&null!==t.memberAttributes&&(t.memberAttributes.forEach(t=>{"organization"===t.friendlyName&&null!==t.value&&(e=t.value)}),0===e.length&&null!==t.userAttributes&&t.userAttributes.forEach(t=>{"organization"===t.friendlyName&&(e=t.value)})),e}function D(t){const e=t.attributes.find(t=>"groupMembershipExpiration"===t.baseFriendlyName);return e&&e.value?e.value:"Never"}function M(t){return t&&"never"!==t.toLowerCase()?(0,o.p6)(t,"d.M.yyyy","en"):t}const L=new Intl.Collator("cs",{numeric:!0});function N(t,e,i,n){const s=e.active,o=e.direction;return s&&""!==o?t.sort((t,e)=>{const r=i(t,s,n),a=i(e,s,n);return L.compare(r,a)*("asc"===o?1:-1)}):t}function z(t,e,i,n,s,o){e=e.toLowerCase();let r="";return i.forEach(e=>{r+=";"+n(t,e,s)}),o&&(r+=";"+n(t,"uuid",s)),-1!==r.toLowerCase().indexOf(e)}function Z(t,e,i,n){const s=[],o=["checkbox","select","edit","menu","cite","extend","recent"];return e=e.filter(t=>!o.includes(t)),t.forEach(t=>{const o={};e.forEach(e=>{var s;o[e]=(null!==(s=i(t,e,n))&&void 0!==s?s:"").split('"').join("''").trim()}),s.push(o)}),s}function B(t,e="csv",i="export"){switch(e){case"csv":{const n=(t,e)=>null===e?"":e,s=Object.keys(t[0]),o=t.map(t=>s.map(e=>JSON.stringify(t[e],n)).join(","));o.unshift(s.join(",").split(" ").join("_").split('"').join("''"));const a=o.join("\r\n"),c=new Blob([a],{type:"text/csv"});(0,r.saveAs)(c,`${i}.${e}`)}}}function q(t,e){return t.name.toLowerCase()>e.name.toLowerCase()?1:t.name.toLowerCase()===e.name.toLowerCase()?0:-1}function F(t,e){var i,n,s,o;let r,a;return t.user?(r=t.user.lastName?t.user.lastName:null!==(i=t.user.firstName)&&void 0!==i?i:"",a=e.user.lastName?e.user.lastName:null!==(n=e.user.firstName)&&void 0!==n?n:""):(r=t.lastName?t.lastName:null!==(s=t.firstName)&&void 0!==s?s:"",a=e.lastName?e.lastName:null!==(o=e.firstName)&&void 0!==o?o:""),r>a?1:r===a?0:-1}function U(t,e,i=[]){t.enable(),t.clearValidators(),t.clearAsyncValidators(),t.setValidators(e),t.setAsyncValidators(i),t.updateValueAndValidity()}},82819:function(t,e,i){"use strict";i.d(e,{l:function(){return m}});var n=i(31572),s=i(73005),o=i(38457),r=i(60611),a=i(61511),c=i(15980),l=i(8055),u=i(43691),h=i(48160);let d=(()=>{class t{constructor(){this.exportData=new n.vpe}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,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(t,e){if(1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"button",1),n.TgZ(2,"mat-icon"),n._uU(3,"more_vert"),n.qZA(),n.qZA(),n.TgZ(4,"mat-menu",null,2),n.TgZ(6,"button",3),n._uU(7),n.ALo(8,"translate"),n.qZA(),n.qZA(),n.TgZ(9,"mat-menu",null,4),n.TgZ(11,"button",5),n.NdJ("click",function(){return e.exportData.emit("csv")}),n._uU(12,"Csv"),n.qZA(),n.qZA(),n.qZA()),2&t){const t=n.MAs(5),e=n.MAs(10);n.xp6(1),n.Q6J("matMenuTriggerFor",t),n.xp6(5),n.Q6J("matMenuTriggerFor",e),n.xp6(1),n.hij(" ",n.lcZ(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[c.lW,l.p6,u.Hw,l.VK,l.OP],pipes:[h.X$],styles:[""]}),t})();function p(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"perun-web-apps-table-options",6),n.NdJ("exportData",function(e){return n.CHM(t),n.oxw().exportData.emit(e)}),n.qZA()}}function g(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"perun-web-apps-table-options",6),n.NdJ("exportData",function(e){return n.CHM(t),n.oxw().exportData.emit(e)}),n.qZA()}}const f=["*"];let m=(()=>{class t{constructor(t){this.tableConfigService=t,this.hideExport=!1,this.pageSizeOptions=o.f7,this.dataLength=0,this.exportData=new n.vpe,this.pageSize=5}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5)}set matPaginator(t){this.paginator=t}pageChangedTop(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}pageChangedBottom(t){this.paginator.pageSize=t.pageSize,this.paginator.pageIndex=t.pageIndex,this.paginator.page.emit(t),this.pageSize=t.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(r.dB))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(t,e){if(1&t&&n.Gf(s.NW,7),2&t){let t;n.iGM(t=n.CRH())&&(e.matPaginator=t.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId"},outputs:{exportData:"exportData"},ngContentSelectors:f,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(t,e){1&t&&(n.F$t(),n.TgZ(0,"div",0),n.TgZ(1,"div",1),n.TgZ(2,"mat-paginator",2),n.NdJ("page",function(t){return e.pageChangedTop(t)}),n.qZA(),n.YNc(3,p,1,0,"perun-web-apps-table-options",3),n.qZA(),n.TgZ(4,"div",4),n.Hsn(5),n.qZA(),n.TgZ(6,"div",1),n.TgZ(7,"mat-paginator",5),n.NdJ("page",function(t){return e.pageChangedBottom(t)}),n.qZA(),n.YNc(8,g,1,0,"perun-web-apps-table-options",3),n.qZA(),n.qZA()),2&t&&(n.xp6(2),n.Q6J("length",e.dataLength)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("ngIf",!e.hideExport),n.xp6(4),n.Q6J("length",e.paginator.length)("pageIndex",e.paginator.pageIndex)("pageSizeOptions",e.paginator.pageSizeOptions)("pageSize",e.paginator.pageSize),n.xp6(1),n.Q6J("ngIf",!e.hideExport))},directives:[s.NW,a.O5,d],styles:[""]}),t})()},39571:function(t,e,i){"use strict";i.d(e,{w:function(){return h}});var n=i(31572),s=i(61511),o=i(43691);function r(t,e){1&t&&(n.TgZ(0,"mat-icon",2),n._uU(1," info "),n.qZA())}function a(t,e){1&t&&(n.TgZ(0,"mat-icon",2),n._uU(1," warning "),n.qZA())}function c(t,e){1&t&&(n.TgZ(0,"mat-icon",2),n._uU(1," dangerous "),n.qZA())}function l(t,e){1&t&&(n.TgZ(0,"mat-icon",2),n._uU(1," check_circle "),n.qZA())}const u=["*"];let h=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:u,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(t,e){1&t&&(n.F$t(),n.TgZ(0,"div",0),n.YNc(1,r,2,0,"mat-icon",1),n.YNc(2,a,2,0,"mat-icon",1),n.YNc(3,c,2,0,"mat-icon",1),n.YNc(4,l,2,0,"mat-icon",1),n.Hsn(5),n.qZA()),2&t&&(n.ekj("warn-alert","warn"===e.alert_type)("error-alert","error"===e.alert_type)("success-alert","success"===e.alert_type)("info-alert","info"===e.alert_type),n.xp6(1),n.Q6J("ngIf","info"===e.alert_type),n.xp6(1),n.Q6J("ngIf","warn"===e.alert_type),n.xp6(1),n.Q6J("ngIf","error"===e.alert_type),n.xp6(1),n.Q6J("ngIf","success"===e.alert_type))},directives:[s.O5,o.Hw],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:grey;text-align:left;border:1px solid #b3b3b3;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px solid #ececec;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 solid #fedcda;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px solid #d7ffd7;border-radius:10px;background-color:#d7ffd7}"]}),t})()},22727:function(t,e,i){"use strict";i.d(e,{r:function(){return r}});var n=i(43691),s=i(61511),o=i(31572);let r=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[n.Ps,s.ez]]}),t})()},10709:function(t,e,i){"use strict";i.d(e,{l3:function(){return o},_j:function(){return n},LC:function(){return s},ZN:function(){return b},jt:function(){return a},pV:function(){return g},ru:function(){return c},F4:function(){return d},IO:function(){return f},vP:function(){return l},SB:function(){return h},oB:function(){return u},eR:function(){return p},X$:function(){return r},ZE:function(){return _},k1:function(){return w}});class n{}class s{}const o="*";function r(t,e){return{type:7,name:t,definitions:e,options:{}}}function a(t,e=null){return{type:4,styles:e,timings:t}}function c(t,e=null){return{type:3,steps:t,options:e}}function l(t,e=null){return{type:2,steps:t,options:e}}function u(t){return{type:6,styles:t,offset:null}}function h(t,e,i){return{type:0,name:t,styles:e,options:i}}function d(t){return{type:5,steps:t}}function p(t,e,i=null){return{type:1,expr:t,animation:e,options:i}}function g(t=null){return{type:9,options:t}}function f(t,e,i=null){return{type:11,selector:t,animation:e,options:i}}function m(t){Promise.resolve(null).then(t)}class b{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){m(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class _{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,n=0;const s=this.players.length;0==s?m(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++i==s&&this._onDestroy()}),t.onStart(()=>{++n==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const w="!"},24621:function(t,e,i){"use strict";i.d(e,{rt:function(){return j},s1:function(){return E},$s:function(){return y},Qr:function(){return N},kH:function(){return H},mK:function(){return P},Em:function(){return S},tE:function(){return F},qV:function(){return O},qm:function(){return G},Kd:function(){return L},X6:function(){return z},yG:function(){return Z}});var n=i(61511),s=i(31572),o=i(55959),r=i(87570),a=i(40878),c=i(75842),l=i(66599),u=i(47701),h=i(43835),d=i(79996),p=i(90611),g=i(19861),f=i(11353),m=i(36337);function b(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}let _=0;const w=new Map;let A=null,y=(()=>{class t{constructor(t){this._document=t}describe(t,e,i){if(!this._canBeDescribed(t,e))return;const n=v(e,i);"string"!=typeof e?(T(e),w.set(n,{messageElement:e,referenceCount:0})):w.has(n)||this._createMessageElement(e,i),this._isElementDescribedByMessage(t,n)||this._addMessageReference(t,n)}removeDescription(t,e,i){if(!e||!this._isElementNode(t))return;const n=v(e,i);if(this._isElementDescribedByMessage(t,n)&&this._removeMessageReference(t,n),"string"==typeof e){const t=w.get(n);t&&0===t.referenceCount&&this._deleteMessageElement(n)}A&&0===A.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const i=w.get(e);!function(t,e,i){const n=b(t,e);n.some(t=>t.trim()==i.trim())||(n.push(i.trim()),t.setAttribute(e,n.join(" ")))}(t,"aria-describedby",i.messageElement.id),t.setAttribute("cdk-describedby-host",""),i.referenceCount++}_removeMessageReference(t,e){const i=w.get(e);i.referenceCount--,function(t,e,i){const n=b(t,e).filter(t=>t!=i.trim());n.length?t.setAttribute(e,n.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",i.messageElement.id),t.removeAttribute("cdk-describedby-host")}_isElementDescribedByMessage(t,e){const i=b(t,"aria-describedby"),n=w.get(e),s=n&&n.messageElement.id;return!!s&&-1!=i.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const i=null==e?"":`${e}`.trim(),n=t.getAttribute("aria-label");return!(!i||n&&n.trim()===i)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0))},token:t,providedIn:"root"}),t})();function v(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function T(t){t.id||(t.id="cdk-describedby-message-"+_++)}class C{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new o.xQ,this._typeaheadSubscription=r.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new o.xQ,this.change=new o.xQ,t instanceof s.n_E&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,l.b)(t=>this._pressedLetters.push(t)),(0,u.b)(t),(0,h.h)(()=>this._pressedLetters.length>0),(0,d.U)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let i=1;i!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case c.Mf:return void this.tabOut.next();case c.JH:if(this._vertical&&i){this.setNextItemActive();break}return;case c.LH:if(this._vertical&&i){this.setPreviousItemActive();break}return;case c.SV:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case c.oh:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case c.Sd:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case c.uR:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||(0,c.Vb)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=c.A&&e<=c.Z||e>=c.xE&&e<=c.aO)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.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(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),n=e[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const n=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[n]))return void this.setActiveItem(n)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof s.n_E?this._items.toArray():this._items}}class E extends C{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class S extends C{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let k=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(e){return null}}((i=t).ownerDocument&&i.ownerDocument.defaultView||window);var i;if(e){if(-1===x(e))return!1;if(!this.isVisible(e))return!1}let n=t.nodeName.toLowerCase(),s=x(t);return t.hasAttribute("contenteditable")?-1!==s:"iframe"!==n&&"object"!==n&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),i="input"===e&&t.type;return"text"===i||"password"===i||"select"===e||"textarea"===e}(t))&&("audio"===n?!!t.hasAttribute("controls")&&-1!==s:"video"===n?-1!==s&&(null!==s||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||I(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(f.t4))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(f.t4))},token:t,providedIn:"root"}),t})();function I(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function x(t){if(!I(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class R{constructor(t,e,i,n,s=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=n,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),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(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let i=0;i=0;i--){let t=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe((0,p.q)(1)).subscribe(t)}}let O=(()=>{class t{constructor(t,e,i){this._checker=t,this._ngZone=e,this._document=i}create(t,e=!1){return new R(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(k),s.LFG(s.R0b),s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(k),s.LFG(s.R0b),s.LFG(n.K0))},token:t,providedIn:"root"}),t})(),P=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=(0,g.Ig)(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=(0,g.Ig)(t)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(t){const e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,f.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(O),s.Y36(n.K0))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[s.TTD]}),t})();"undefined"!=typeof Element&∈const D=new s.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),M=new s.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let L=(()=>{class t{constructor(t,e,i,n){this._ngZone=e,this._defaultOptions=n,this._document=i,this._liveElement=t||this._createLiveElement()}announce(t,...e){const i=this._defaultOptions;let n,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[n,s]=e,this.clear(),clearTimeout(this._previousTimeout),n||(n=i&&i.politeness?i.politeness:"polite"),null==s&&i&&(s=i.duration),this._liveElement.setAttribute("aria-live",n),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div");for(let i=0;i{class t{constructor(t,e,i,n){this._elementRef=t,this._liveAnnouncer=e,this._contentObserver=i,this._ngZone=n,this._politeness="polite"}get politeness(){return this._politeness}set politeness(t){this._politeness="off"===t||"assertive"===t?t:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const t=this._elementRef.nativeElement.textContent;t!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(t,this._politeness),this._previousAnnouncedText=t)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(L),s.Y36(m.yq),s.Y36(s.R0b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),t})();function z(t){return 0===t.buttons}function Z(t){const e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}const B=new s.OlP("cdk-focus-monitor-default-options"),q=(0,f.i$)({passive:!0,capture:!0});let F=(()=>{class t{constructor(t,e,i,n){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=z(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{Z(t)?this._lastTouchTarget||this._setOriginForCurrentEventQueue("keyboard"):(null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=U(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650))},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=U(t),i="focus"===t.type?this._onFocus:this._onBlur;for(let n=e;n;n=n.parentElement)i.call(this,t,n)},this._document=i,this._detectionMode=(null==n?void 0:n.detectionMode)||0}monitor(t,e=!1){const i=(0,g.fI)(t);if(!this._platform.isBrowser||1!==i.nodeType)return(0,a.of)(null);const n=(0,f.kV)(i)||this._getDocument(),s=this._elementInfo.get(i);if(s)return e&&(s.checkChildren=!0),s.subject;const r={checkChildren:e,subject:new o.xQ,rootNode:n};return this._elementInfo.set(i,r),this._registerGlobalListeners(r),r.subject}stopMonitoring(t){const e=(0,g.fI)(t),i=this._elementInfo.get(e);i&&(i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(i))}focusVia(t,e,i){const n=(0,g.fI)(t);n===this._getDocument().activeElement?this._getClosestElementsInfo(n).forEach(([t,i])=>this._originChanged(t,e,i)):(this._setOriginForCurrentEventQueue(e),"function"==typeof n.focus&&n.focus(i))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,i){i?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=U(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const i=this._elementInfo.get(e);i&&(i.checkChildren||e===U(t))&&this._originChanged(e,this._getFocusOrigin(t),i)}_onBlur(t,e){const i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,i=this._rootNodeFocusListenerCount.get(e)||0;i||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,q),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,q)}),this._rootNodeFocusListenerCount.set(e,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,q),t.addEventListener("mousedown",this._documentMousedownListener,q),t.addEventListener("touchstart",this._documentTouchstartListener,q),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,q),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,q),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,q),t.removeEventListener("mousedown",this._documentMousedownListener,q),t.removeEventListener("touchstart",this._documentTouchstartListener,q),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,i){this._setClasses(t,e),this._emitOrigin(i.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((i,n)=>{(n===t||i.checkChildren&&n.contains(t))&&e.push([n,i])}),e}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(f.t4),s.LFG(n.K0,8),s.LFG(B,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(f.t4),s.LFG(n.K0,8),s.LFG(B,8))},token:t,providedIn:"root"}),t})();function U(t){return t.composedPath?t.composedPath()[0]:t.target}let H=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new s.vpe}ngAfterViewInit(){const t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(F))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})(),G=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,i=e&&e.getComputedStyle?e.getComputedStyle(t):null,n=(i&&i.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),n){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black"),this._hasCheckedHighContrastMode=!0;const e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(f.t4),s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(f.t4),s.LFG(n.K0))},token:t,providedIn:"root"}),t})(),j=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(G))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[f.ud,m.Q8]]}),t})()},22526:function(t,e,i){"use strict";i.d(e,{vT:function(){return a},Is:function(){return r}});var n=i(31572),s=i(61511);const o=new n.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,n.f3M)(s.K0)}});let r=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new n.vpe,t){const e=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||e;this.value="ltr"===i||"rtl"===i?i:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(o,8))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(o,8))},token:t,providedIn:"root"}),t})(),a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})()},81391:function(t,e,i){"use strict";i.d(e,{i3:function(){return c},TU:function(){return r},Iq:function(){return l}});var n=i(61511),s=i(31572);class o{constructor(t,e){this._document=e;const i=this._textarea=this._document.createElement("textarea"),n=i.style;n.position="fixed",n.top=n.opacity="0",n.left="-999em",i.setAttribute("aria-hidden","true"),i.value=t,this._document.body.appendChild(i)}copy(){const t=this._textarea;let e=!1;try{if(t){const i=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch(i){}return e}destroy(){const t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}let r=(()=>{class t{constructor(t){this._document=t}copy(t){const e=this.beginCopy(t),i=e.copy();return e.destroy(),i}beginCopy(t){return new o(t,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0))},token:t,providedIn:"root"}),t})();const a=new s.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let c=(()=>{class t{constructor(t,e,i){this._clipboard=t,this._ngZone=e,this.text="",this.attempts=1,this.copied=new s.vpe,this._pending=new Set,i&&null!=i.attempts&&(this.attempts=i.attempts)}copy(t=this.attempts){if(t>1){let e=t;const i=this._clipboard.beginCopy(this.text);this._pending.add(i);const n=()=>{const t=i.copy();t||!--e||this._destroyed?(this._currentTimeout=null,this._pending.delete(i),i.destroy(),this.copied.emit(t)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(n,1))};n()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(t=>t.destroy()),this._pending.clear(),this._destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(r),s.Y36(s.R0b),s.Y36(a,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),t})(),l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})()},19861:function(t,e,i){"use strict";i.d(e,{t6:function(){return r},Eq:function(){return a},Ig:function(){return s},HM:function(){return c},fI:function(){return l},su:function(){return o},du:function(){return u}});var n=i(31572);function s(t){return null!=t&&"false"!=`${t}`}function o(t,e=0){return r(t)?Number(t):e}function r(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function a(t){return Array.isArray(t)?t:[t]}function c(t){return null==t?"":"string"==typeof t?t:`${t}px`}function l(t){return t instanceof n.SBq?t.nativeElement:t}function u(t,e=/\s+/){const i=[];if(null!=t){const n=Array.isArray(t)?t:`${t}`.split(e);for(const t of n){const e=`${t}`.trim();e&&i.push(e)}}return i}},4230:function(t,e,i){"use strict";i.d(e,{P3:function(){return l},o2:function(){return a},Ov:function(){return d},A8:function(){return p},yy:function(){return u},eX:function(){return h},k:function(){return g},Z9:function(){return c}});var n=i(4710),s=i(40878),o=i(55959),r=i(31572);class a{}function c(t){return t&&"function"==typeof t.connect}class l extends a{constructor(t){super(),this._data=t}connect(){return(0,n.b)(this._data)?this._data:(0,s.of)(this._data)}disconnect(){}}class u{applyChanges(t,e,i,n,s){t.forEachOperation((t,n,o)=>{let r,a;if(null==t.previousIndex){const s=i(t,n,o);r=e.createEmbeddedView(s.templateRef,s.context,s.index),a=1}else null==o?(e.remove(n),a=3):(r=e.get(n),e.move(r,o),a=2);s&&s({context:null==r?void 0:r.context,operation:a,record:t})})}detach(){}}class h{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(t,e,i,n,s){t.forEachOperation((t,o,r)=>{let a,c;null==t.previousIndex?(a=this._insertView(()=>i(t,o,r),r,e,n(t)),c=a?1:0):null==r?(this._detachAndCacheView(o,e),c=3):(a=this._moveView(o,r,e,n(t)),c=2),s&&s({context:null==a?void 0:a.context,operation:c,record:t})})}detach(){for(const t of this._viewCache)t.destroy();this._viewCache=[]}_insertView(t,e,i,n){const s=this._insertViewFromCache(e,i);if(s)return void(s.context.$implicit=n);const o=t();return i.createEmbeddedView(o.templateRef,o.context,o.index)}_detachAndCacheView(t,e){const i=e.detach(t);this._maybeCacheView(i,e)}_moveView(t,e,i,n){const s=i.get(t);return i.move(s,e),s.context.$implicit=n,s}_maybeCacheView(t,e){if(this._viewCache.lengththis._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}let p=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let i of this._listeners)i(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const g=new r.OlP("_ViewRepeater")},88975:function(t,e,i){"use strict";i.d(e,{Zt:function(){return pt},Wj:function(){return lt},_t:function(){return ft},bA:function(){return Y}});var n=i(31572),s=i(61511),o=i(4253),r=i(11353),a=i(19861),c=i(55959),l=i(87570),u=i(38289),h=i(91741),d=i(48318),p=i(31906),g=i(25416),f=i(56238),m=i(79996),b=i(90611),_=i(66599),w=i(44689),A=i(22526);function y(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function v(t,e){const i=e?"":"none";y(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:i,msUserSelect:i,webkitUserSelect:i,MozUserSelect:i})}function T(t,e){const i=t.style;i.position=e?"":"fixed",i.top=i.opacity=e?"":"0",i.left=e?"":"-999em"}function C(t,e){return e?t+" "+e:t}function E(t){const e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function S(t,e){return t.getPropertyValue(e).split(",").map(t=>t.trim())}function k(t){const e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function I(t,e,i){const{top:n,bottom:s,left:o,right:r}=t;return i>=n&&i<=s&&e>=o&&e<=r}function x(t,e,i){t.top+=e,t.bottom=t.top+t.height,t.left+=i,t.right=t.left+t.width}function R(t,e,i,n){const{top:s,right:o,bottom:r,left:a,width:c,height:l}=t,u=c*e,h=l*e;return n>s-h&&na-u&&i{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:k(t)})})}handleScroll(t){const e=t.target,i=this.positions.get(e);if(!i)return null;const n=e===this._document?e.documentElement:e,s=i.scrollPosition;let o,r;if(e===this._document){const t=this._viewportRuler.getViewportScrollPosition();o=t.top,r=t.left}else o=e.scrollTop,r=e.scrollLeft;const a=s.top-o,c=s.left-r;return this.positions.forEach((t,i)=>{t.clientRect&&e!==i&&n.contains(i)&&x(t.clientRect,a,c)}),s.top=o,s.left=r,{top:a,left:c}}}function P(t){const e=t.cloneNode(!0),i=e.querySelectorAll("[id]"),n=t.nodeName.toLowerCase();e.removeAttribute("id");for(let s=0;s{if(this.beforeStarted.next(),this._handles.length){const e=this._handles.find(e=>{const i=t.target;return!!i&&(i===e||e.contains(i))});!e||this._disabledHandles.has(e)||this.disabled||this._initializeDragSequence(e,t)}else this.disabled||this._initializeDragSequence(this._rootElement,t)},this._pointerMove=t=>{const e=this._getPointerPositionOnPage(t);if(!this._hasStartedDragging){if(Math.abs(e.x-this._pickupPositionOnPage.x)+Math.abs(e.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const e=Date.now()>=this._dragStartTime+this._getDragStartDelay(t),i=this._dropContainer;if(!e)return void this._endDragSequence(t);i&&(i.isDragging()||i.isReceiving())||(t.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(t)))}return}this._boundaryElement&&(this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect())),t.preventDefault();const i=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._lastKnownPointerPosition=e,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,e);else{const t=this._activeTransform;t.x=i.x-this._pickupPositionOnPage.x+this._passiveTransform.x,t.y=i.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(t.x,t.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform",`translate(${t.x} ${t.y})`)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:t,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})},this._pointerUp=t=>{this._endDragSequence(t)},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new O(i,s),o.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=(0,a.Ig)(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>v(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(t=>(0,a.fI)(t)),this._handles.forEach(t=>v(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(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=(0,a.fI)(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,Z),e.addEventListener("touchstart",this._pointerDown,z)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?(0,a.fI)(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&U(this._rootElement),U(this._anchor),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(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),v(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),v(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&U(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&U(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){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}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){H(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,i=t.parentNode,n=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),o=this._getShadowRoot();i.insertBefore(s,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),T(t,!1),this._document.body.appendChild(i.replaceChild(n,t)),this._getPreviewInsertionPoint(i,o).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),n=H(e),s=!n&&0!==e.button,o=this._rootElement,r=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),i||s||r)return;this._handles.length&&(this._rootElementTapHighlight=o.style.webkitTapHighlightColor||"",o.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{this._updateOnScroll(t)}),this._boundaryElement&&(this._boundaryRect=k(this._boundaryElement));const a=this._previewTemplate;this._pickupPositionInElement=a&&a.template&&!a.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);const c=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){T(this._rootElement,!0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),n=this._getPointerPositionOnPage(t),s=this._getDragDistance(n),o=e._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:s,dropPoint:n}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:o,distance:s,dropPoint:n}),e.drop(this,i,this._initialIndex,this._initialContainer,o,s,n),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:i,y:n}){let s=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=s,this._dropContainer.enter(this,t,e,s===this._initialContainer&&s.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:s,currentIndex:s.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,n),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let n;if(i&&t){const e=t.matchSize?this._rootElement.getBoundingClientRect():null,s=t.viewContainer.createEmbeddedView(i,t.context);s.detectChanges(),n=G(s,this._document),this._previewRef=s,t.matchSize?j(n,e):n.style.transform=q(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const t=this._rootElement;n=P(t),j(n,t.getBoundingClientRect()),this._initialTransform&&(n.style.transform=this._initialTransform)}return y(n.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:`${this._config.zIndex||1e3}`}),v(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(t=>n.classList.add(t)):n.classList.add(e)),n}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);const e=function(t){const e=getComputedStyle(t),i=S(e,"transition-property"),n=i.find(t=>"transform"===t||"all"===t);if(!n)return 0;const s=i.indexOf(n),o=S(e,"transition-duration"),r=S(e,"transition-delay");return E(o[s])+E(r[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const i=e=>{(!e||e.target===this._preview&&"transform"===e.propertyName)&&(this._preview.removeEventListener("transitionend",i),t(),clearTimeout(n))},n=setTimeout(i,1.5*e);this._preview.addEventListener("transitionend",i)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=G(this._placeholderRef,this._document)):i=P(this._rootElement),i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e){const i=this._rootElement.getBoundingClientRect(),n=t===this._rootElement?null:t,s=n?n.getBoundingClientRect():i,o=H(e)?e.targetTouches[0]:e,r=this._getViewportScrollPosition();return{x:s.left-i.left+(o.pageX-s.left-r.left),y:s.top-i.top+(o.pageY-s.top-r.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),i=H(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,n=i.pageX-e.left,s=i.pageY-e.top;if(this._ownerSVGElement){const t=this._ownerSVGElement.getScreenCTM();if(t){const e=this._ownerSVGElement.createSVGPoint();return e.x=n,e.y=s,e.matrixTransform(t.inverse())}}return{x:n,y:s}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:n}=this.constrainPosition?this.constrainPosition(t,this):t;if("x"===this.lockAxis||"x"===e?n=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==e||(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:t,y:e}=this._pickupPositionInElement,s=this._boundaryRect,o=this._previewRect,r=s.top+e,a=s.bottom-(o.height-e);i=F(i,s.left+t,s.right-(o.width-t)),n=F(n,r,a)}return{x:i,y:n}}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,n=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,o=Math.abs(e-s.x),r=Math.abs(i-s.y);return o>this._config.pointerDirectionChangeThreshold&&(n.x=e>s.x?1:-1,s.x=e),r>this._config.pointerDirectionChangeThreshold&&(n.y=i>s.y?1:-1,s.y=i),n}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,v(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,Z),t.removeEventListener("touchstart",this._pointerDown,z)}_applyRootElementTransform(t,e){const i=q(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=C(i,this._initialTransform)}_applyPreviewTransform(t,e){var i;const n=(null===(i=this._previewTemplate)||void 0===i?void 0:i.template)?void 0:this._initialTransform,s=q(t,e);this._preview.style.transform=C(s,n)}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._boundaryElement.getBoundingClientRect(),n=this._rootElement.getBoundingClientRect();if(0===i.width&&0===i.height||0===n.width&&0===n.height)return;const s=i.left-n.left,o=n.right-i.right,r=i.top-n.top,a=n.bottom-i.bottom;i.width>n.width?(s>0&&(t+=s),o>0&&(t-=o)):t=0,i.height>n.height?(r>0&&(e+=r),a>0&&(e-=a)):e=0,t===this._passiveTransform.x&&e===this._passiveTransform.y||this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:H(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const i=t.target;this._boundaryRect&&(i===this._document||i!==this._boundaryElement&&i.contains(this._boundaryElement))&&x(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(){const t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,r.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){const i=this._previewContainer||"global";if("parent"===i)return t;if("global"===i){const t=this._document;return e||t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement||t.body}return(0,a.fI)(i)}}function q(t,e){return`translate3d(${Math.round(t)}px, ${Math.round(e)}px, 0)`}function F(t,e,i){return Math.max(e,Math.min(i,t))}function U(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function H(t){return"t"===t.type[0]}function G(t,e){const i=t.rootNodes;if(1===i.length&&i[0].nodeType===e.ELEMENT_NODE)return i[0];const n=e.createElement("div");return i.forEach(t=>n.appendChild(t)),n}function j(t,e){t.style.width=`${e.width}px`,t.style.height=`${e.height}px`,t.style.transform=q(e.left,e.top)}function Y(t,e,i){const n=K(e,t.length-1),s=K(i,t.length-1);if(n===s)return;const o=t[n],r=s!0,this.sortPredicate=()=>!0,this.beforeStarted=new c.xQ,this.entered=new c.xQ,this.exited=new c.xQ,this.dropped=new c.xQ,this.sorted=new c.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=l.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new c.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),(0,u.F)(0,h.r).pipe((0,g.R)(this._stopScrollTimers)).subscribe(()=>{const t=this._scrollNode,e=this.autoScrollStep;1===this._verticalScrollDirection?J(t,-e):2===this._verticalScrollDirection&&J(t,e),1===this._horizontalScrollDirection?Q(t,-e):2===this._horizontalScrollDirection&&Q(t,e)})},this.element=(0,a.fI)(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new O(i,s)}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(t,e,i,n){let s;this._draggingStarted(),null==n?(s=this.sortingDisabled?this._draggables.indexOf(t):-1,-1===s&&(s=this._getItemIndexFromPointerPosition(t,e,i))):s=n;const o=this._activeDraggables,r=o.indexOf(t),c=t.getPlaceholderElement();let l=o[s];if(l===t&&(l=o[s+1]),r>-1&&o.splice(r,1),l&&!this._dragDropRegistry.isDragging(l)){const e=l.getRootElement();e.parentElement.insertBefore(c,e),o.splice(s,0,t)}else if(this._shouldEnterAsFirstChild(e,i)){const e=o[0].getRootElement();e.parentNode.insertBefore(c,e),o.unshift(t)}else(0,a.fI)(this.element).appendChild(c),o.push(t);c.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,n,s,o,r){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:n,isPointerOverContainer:s,distance:o,dropPoint:r})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(t=>t.isDragging()).every(e=>-1===t.indexOf(e))?this._reset():this._cacheItems()),this}withDirection(t){return this._direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._orientation=t,this}withScrollableParents(t){const e=(0,a.fI)(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?$("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,e=>e.drag===t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,n){if(this.sortingDisabled||!this._clientRect||!R(this._clientRect,.05,e,i))return;const s=this._itemPositions,o=this._getItemIndexFromPointerPosition(t,e,i,n);if(-1===o&&s.length>0)return;const r="horizontal"===this._orientation,a=$(s,e=>e.drag===t),c=s[o],l=c.clientRect,u=a>o?1:-1,h=this._getItemOffsetPx(s[a].clientRect,l,u),d=this._getSiblingOffsetPx(a,s,u),p=s.slice();Y(s,a,o),this.sorted.next({previousIndex:a,currentIndex:o,container:this,item:t}),s.forEach((e,i)=>{if(p[i]===e)return;const n=e.drag===t,s=n?h:d,o=n?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=s,r?(o.style.transform=C(`translate3d(${Math.round(e.offset)}px, 0, 0)`,e.initialTransform),x(e.clientRect,0,s)):(o.style.transform=C(`translate3d(0, ${Math.round(e.offset)}px, 0)`,e.initialTransform),x(e.clientRect,s,0))}),this._previousSwap.overlaps=I(l,e,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=r?n.x:n.y}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,n=0,s=0;if(this._parentPositions.positions.forEach((o,r)=>{r!==this._document&&o.clientRect&&!i&&R(o.clientRect,.05,t,e)&&([n,s]=function(t,e,i,n){const s=W(e,n),o=X(e,i);let r=0,a=0;if(s){const e=t.scrollTop;1===s?e>0&&(r=1):t.scrollHeight-e>t.clientHeight&&(r=2)}if(o){const e=t.scrollLeft;1===o?e>0&&(a=1):t.scrollWidth-e>t.clientWidth&&(a=2)}return[r,a]}(r,o.clientRect,t,e),(n||s)&&(i=r))}),!n&&!s){const{width:o,height:r}=this._viewportRuler.getViewportSize(),a={width:o,height:r,top:0,right:o,bottom:r,left:0};n=W(a,e),s=X(a,t),i=window}!i||n===this._verticalScrollDirection&&s===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=n,this._horizontalScrollDirection=s,this._scrollNode=i,(n||s)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=(0,a.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=(0,a.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_cacheItemPositions(){const t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(t=>{const e=t.getVisibleElement();return{drag:t,offset:0,initialTransform:e.style.transform||"",clientRect:k(e)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_reset(){this._isDragging=!1;const t=(0,a.fI)(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(t=>{var e;const i=t.getRootElement();if(i){const n=null===(e=this._itemPositions.find(e=>e.drag===t))||void 0===e?void 0:e.initialTransform;i.style.transform=n||""}}),this._siblings.forEach(t=>t._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(t,e,i){const n="horizontal"===this._orientation,s=e[t].clientRect,o=e[t+-1*i];let r=s[n?"width":"height"]*i;if(o){const t=n?"left":"top",e=n?"right":"bottom";-1===i?r-=o.clientRect[t]-s[e]:r+=s[t]-o.clientRect[e]}return r}_getItemOffsetPx(t,e,i){const n="horizontal"===this._orientation;let s=n?e.left-t.left:e.top-t.top;return-1===i&&(s+=n?e.width-t.width:e.height-t.height),s}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,n="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){const s=i[i.length-1].clientRect;return n?t>=s.right:e>=s.bottom}{const s=i[0].clientRect;return n?t<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(t,e,i,n){const s="horizontal"===this._orientation,o=$(this._itemPositions,({drag:o,clientRect:r},a,c)=>{if(o===t)return c.length<2;if(n){const t=s?n.x:n.y;if(o===this._previousSwap.drag&&this._previousSwap.overlaps&&t===this._previousSwap.delta)return!1}return s?e>=Math.floor(r.left)&&e=Math.floor(r.top)&&in._canReceive(t,e,i))}_canReceive(t,e,i){if(!this._clientRect||!I(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const n=this._getShadowRoot().elementFromPoint(e,i);if(!n)return!1;const s=(0,a.fI)(this.element);return n===s||s.contains(n)}_startReceiving(t,e){const i=this._activeSiblings;!i.has(t)&&e.every(t=>this.enterPredicate(t,this)||this._draggables.indexOf(t)>-1)&&(i.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&(this._itemPositions.forEach(({clientRect:t})=>{x(t,e.top,e.left)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=(0,r.kV)((0,a.fI)(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._activeDraggables.filter(t=>t.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function $(t,e){for(let i=0;i=i-o&&e<=i+o?1:e>=n-o&&e<=n+o?2:0}function X(t,e){const{left:i,right:n,width:s}=t,o=.05*s;return e>=i-o&&e<=i+o?1:e>=n-o&&e<=n+o?2:0}const tt=(0,r.i$)({passive:!1,capture:!0});let et=(()=>{class t{constructor(t,e){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=t=>t.isDragging(),this.pointerMove=new c.xQ,this.pointerUp=new c.xQ,this.scroll=new c.xQ,this._preventDefaultWhileDragging=t=>{this._activeDragInstances.length>0&&t.preventDefault()},this._persistentTouchmoveListener=t=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&t.preventDefault(),this.pointerMove.next(t))},this._document=e}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,tt)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,tt)}startDragging(t,e){if(!(this._activeDragInstances.indexOf(t)>-1)&&(this._activeDragInstances.push(t),1===this._activeDragInstances.length)){const t=e.type.startsWith("touch");this._globalListeners.set(t?"touchend":"mouseup",{handler:t=>this.pointerUp.next(t),options:!0}).set("scroll",{handler:t=>this.scroll.next(t),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:tt}),t||this._globalListeners.set("mousemove",{handler:t=>this.pointerMove.next(t),options:tt}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((t,e)=>{this._document.addEventListener(e,t.handler,t.options)})})}}stopDragging(t){const e=this._activeDragInstances.indexOf(t);e>-1&&(this._activeDragInstances.splice(e,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(t){return this._activeDragInstances.indexOf(t)>-1}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,e)=>{this._document.removeEventListener(e,t.handler,t.options)}),this._globalListeners.clear()}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.R0b),n.LFG(s.K0))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(n.R0b),n.LFG(s.K0))},token:t,providedIn:"root"}),t})();const it={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let nt=(()=>{class t{constructor(t,e,i,n){this._document=t,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=n}createDrag(t,e=it){return new B(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new V(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(s.K0),n.LFG(n.R0b),n.LFG(o.rL),n.LFG(et))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(s.K0),n.LFG(n.R0b),n.LFG(o.rL),n.LFG(et))},token:t,providedIn:"root"}),t})();const st=new n.OlP("CDK_DRAG_PARENT"),ot=new n.OlP("CdkDropListGroup"),rt=new n.OlP("CDK_DRAG_CONFIG");let at=0;const ct=new n.OlP("CdkDropList");let lt=(()=>{class t{constructor(e,i,s,o,r,a,l){this.element=e,this._changeDetectorRef=s,this._scrollDispatcher=o,this._dir=r,this._group=a,this._destroyed=new c.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+at++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new n.vpe,this.entered=new n.vpe,this.exited=new n.vpe,this.sorted=new n.vpe,this._unsortedItems=new Set,this._dropListRef=i.createDropList(e),this._dropListRef.data=this,l&&this._assignDefaults(l),this._dropListRef.enterPredicate=(t,e)=>this.enterPredicate(t.data,e.data),this._dropListRef.sortPredicate=(t,e,i)=>this.sortPredicate(t,e.data,i.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),a&&a._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(t){this._dropListRef.disabled=this._disabled=(0,a.Ig)(t)}addItem(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((t,e)=>t._dragRef.getVisibleElement().compareDocumentPosition(e._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=t._dropLists.indexOf(this);e>-1&&t._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((0,f.O)(this._dir.value),(0,g.R)(this._destroyed)).subscribe(t=>e.withDirection(t)),e.beforeStarted.subscribe(()=>{const i=(0,a.Eq)(this.connectedTo).map(e=>"string"==typeof e?t._dropLists.find(t=>t.id===e):e);if(this._group&&this._group._items.forEach(t=>{-1===i.indexOf(t)&&i.push(t)}),!this._scrollableParentsResolved){const t=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(t=>t.getElementRef().nativeElement);this._dropListRef.withScrollableParents(t),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=(0,a.Ig)(this.sortingDisabled),e.autoScrollDisabled=(0,a.Ig)(this.autoScrollDisabled),e.autoScrollStep=(0,a.su)(this.autoScrollStep,2),e.connectedTo(i.filter(t=>t&&t!==this).map(t=>t._dropListRef)).withOrientation(this.orientation)})}_handleEvents(t){t.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:this,item:t.item.data,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:this,item:t.item.data}),this._changeDetectorRef.markForCheck()}),t.sorted.subscribe(t=>{this.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:this,item:t.item.data})}),t.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}),this._changeDetectorRef.markForCheck()})}_assignDefaults(t){const{lockAxis:e,draggingDisabled:i,sortingDisabled:n,listAutoScrollDisabled:s,listOrientation:o}=t;this.disabled=null!=i&&i,this.sortingDisabled=null!=n&&n,this.autoScrollDisabled=null!=s&&s,this.orientation=o||"vertical",e&&(this.lockAxis=e)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(t=>t._dragRef))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(nt),n.Y36(n.sBO),n.Y36(o.mF),n.Y36(A.Is,8),n.Y36(ot,12),n.Y36(rt,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,e){2&t&&(n.uIk("id",e.id),n.ekj("cdk-drop-list-disabled",e.disabled)("cdk-drop-list-dragging",e._dropListRef.isDragging())("cdk-drop-list-receiving",e._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[n._Bn([{provide:ot,useValue:void 0},{provide:ct,useExisting:t}])]}),t._dropLists=[],t})();const ut=new n.OlP("CdkDragHandle"),ht=new n.OlP("CdkDragPlaceholder"),dt=new n.OlP("CdkDragPreview");let pt=(()=>{class t{constructor(e,i,s,o,r,a,l,u,h,p,g){this.element=e,this.dropContainer=i,this._ngZone=o,this._viewContainerRef=r,this._dir=l,this._changeDetectorRef=h,this._selfHandle=p,this._parentDrag=g,this._destroyed=new c.xQ,this.started=new n.vpe,this.released=new n.vpe,this.ended=new n.vpe,this.entered=new n.vpe,this.exited=new n.vpe,this.dropped=new n.vpe,this.moved=new d.y(t=>{const e=this._dragRef.moved.pipe((0,m.U)(t=>({source:this,pointerPosition:t.pointerPosition,event:t.event,delta:t.delta,distance:t.distance}))).subscribe(t);return()=>{e.unsubscribe()}}),this._dragRef=u.createDrag(e,{dragStartThreshold:a&&null!=a.dragStartThreshold?a.dragStartThreshold:5,pointerDirectionChangeThreshold:a&&null!=a.pointerDirectionChangeThreshold?a.pointerDirectionChangeThreshold:5,zIndex:null==a?void 0:a.zIndex}),this._dragRef.data=this,t._dragInstances.push(this),a&&this._assignDefaults(a),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(t){this._disabled=(0,a.Ig)(t),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.onStable.pipe((0,b.q)(1),(0,g.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._handles.changes.pipe((0,f.O)(this._handles),(0,_.b)(t=>{const e=t.filter(t=>t._parentDrag===this).map(t=>t.element);this._selfHandle&&this.rootElementSelector&&e.push(this.element),this._dragRef.withHandles(e)}),(0,w.w)(t=>(0,p.T)(...t.map(t=>t._stateChanges.pipe((0,f.O)(t))))),(0,g.R)(this._destroyed)).subscribe(t=>{const e=this._dragRef,i=t.element.nativeElement;t.disabled?e.disableHandle(i):e.enableHandle(i)}),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})}ngOnChanges(t){const e=t.rootElementSelector,i=t.freeDragPosition;e&&!e.firstChange&&this._updateRootElement(),i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=t._dragInstances.indexOf(this);e>-1&&t._dragInstances.splice(e,1),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}_updateRootElement(){const t=this.element.nativeElement,e=this.rootElementSelector?gt(t,this.rootElementSelector):t;this._dragRef.withRootElement(e||t)}_getBoundaryElement(){const t=this.boundaryElement;return t?"string"==typeof t?gt(this.element.nativeElement,t):(0,a.fI)(t):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const t=this._dir,i=this.dragStartDelay,n=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,s=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 i&&i?i:(0,a.su)(i),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(n).withPreviewTemplate(s).withPreviewContainer(this.previewContainer||"global"),t&&e.withDirection(t.value)}}),e.beforeStarted.pipe((0,b.q)(1)).subscribe(()=>{var i,n;if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let s=this.element.nativeElement.parentElement;for(;s;){if(null===(i=s.classList)||void 0===i?void 0:i.contains("cdk-drag")){e.withParent((null===(n=t._dragInstances.find(t=>t.element.nativeElement===s))||void 0===n?void 0:n._dragRef)||null);break}s=s.parentElement}})}_handleEvents(t){t.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),t.released.subscribe(()=>{this.released.emit({source:this})}),t.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance,dropPoint:t.dropPoint}),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),t.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})})}_assignDefaults(t){const{lockAxis:e,dragStartDelay:i,constrainPosition:n,previewClass:s,boundaryElement:o,draggingDisabled:r,rootElementSelector:a,previewContainer:c}=t;this.disabled=null!=r&&r,this.dragStartDelay=i||0,e&&(this.lockAxis=e),n&&(this.constrainPosition=n),s&&(this.previewClass=s),o&&(this.boundaryElement=o),a&&(this.rootElementSelector=a),c&&(this.previewContainer=c)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(ct,12),n.Y36(s.K0),n.Y36(n.R0b),n.Y36(n.s_b),n.Y36(rt,8),n.Y36(A.Is,8),n.Y36(nt),n.Y36(n.sBO),n.Y36(ut,10),n.Y36(st,12))},t.\u0275dir=n.lG2({type:t,selectors:[["","cdkDrag",""]],contentQueries:function(t,e,i){if(1&t&&(n.Suo(i,dt,5),n.Suo(i,ht,5),n.Suo(i,ut,5)),2&t){let t;n.iGM(t=n.CRH())&&(e._previewTemplate=t.first),n.iGM(t=n.CRH())&&(e._placeholderTemplate=t.first),n.iGM(t=n.CRH())&&(e._handles=t)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,e){2&t&&n.ekj("cdk-drag-disabled",e.disabled)("cdk-drag-dragging",e._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],previewContainer:["cdkDragPreviewContainer","previewContainer"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[n._Bn([{provide:st,useExisting:t}]),n.TTD]}),t._dragInstances=[],t})();function gt(t,e){let i=t.parentElement;for(;i;){if(i.matches?i.matches(e):i.msMatchesSelector(e))return i;i=i.parentElement}return null}let ft=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[nt],imports:[o.ZD]}),t})()},75842:function(t,e,i){"use strict";i.d(e,{A:function(){return w},ZH:function(){return n},OC:function(){return y},yY:function(){return m},JH:function(){return f},uR:function(){return u},K5:function(){return o},hY:function(){return r},Sd:function(){return h},oh:function(){return d},aO:function(){return _},VM:function(){return l},Ku:function(){return c},SV:function(){return g},L_:function(){return a},Mf:function(){return s},LH:function(){return p},Z:function(){return A},xE:function(){return b},Vb:function(){return v}});const n=8,s=9,o=13,r=27,a=32,c=33,l=34,u=35,h=36,d=37,p=38,g=39,f=40,m=46,b=48,_=57,w=65,A=90,y=188;function v(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}},36337:function(t,e,i){"use strict";i.d(e,{wD:function(){return u},yq:function(){return l},Q8:function(){return h}});var n=i(19861),s=i(31572),o=i(48318),r=i(55959),a=i(47701);let c=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),l=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=(0,n.fI)(t);return new o.y(t=>{const i=this._observeElement(e).subscribe(t);return()=>{i.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new r.xQ,i=this._mutationObserverFactory.create(t=>e.next(t));i&&i.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:i,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:i}=this._observedElements.get(t);e&&e.disconnect(),i.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(c))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(c))},token:t,providedIn:"root"}),t})(),u=(()=>{class t{constructor(t,e,i){this._contentObserver=t,this._elementRef=e,this._ngZone=i,this.event=new s.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,n.Ig)(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=(0,n.su)(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe((0,a.b)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(l),s.Y36(s.SBq),s.Y36(s.R0b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),h=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[c]}),t})()},2522:function(t,e,i){"use strict";i.d(e,{pI:function(){return $},xu:function(){return V},_G:function(){return z},aV:function(){return j},X_:function(){return k},Xj:function(){return M},U8:function(){return Q}});var n=i(4253),s=i(31572),o=i(11353),r=i(22526),a=i(61511),c=i(19861),l=i(26899),u=i(55959),h=i(87570),d=i(31906),p=i(96673);class g{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new f(t,this.predicate,this.inclusive))}}class f extends p.L{constructor(t,e,i){super(t),this.predicate=e,this.inclusive=i,this.index=0}_next(t){const e=this.destination;let i;try{i=this.predicate(t,this.index++)}catch(n){return void e.error(n)}this.nextOrComplete(t,i)}nextOrComplete(t,e){const i=this.destination;Boolean(e)?i.next(t):(this.inclusive&&i.next(t),i.complete())}}var m=i(90611),b=i(25416),_=i(75842);const w=(0,o.Mq)();class A{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=(0,c.HM)(-this._previousScrollPosition.left),t.style.top=(0,c.HM)(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,i=this._document.body.style,n=e.scrollBehavior||"",s=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),w&&(e.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),w&&(e.scrollBehavior=n,i.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class y{constructor(t,e,i,n){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class v{enable(){}disable(){}attach(){}}function T(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function C(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class E{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=n,this._scrollSubscription=null}attach(t){this._overlayRef=t}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 t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:i}=this._viewportRuler.getViewportSize();T(t,[{width:e,height:i,bottom:i,right:e,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 S=(()=>{class t{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this.noop=()=>new v,this.close=t=>new y(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new A(this._viewportRuler,this._document),this.reposition=t=>new E(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=n}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.mF),s.LFG(n.rL),s.LFG(s.R0b),s.LFG(a.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.mF),s.LFG(n.rL),s.LFG(s.R0b),s.LFG(a.K0))},token:t,providedIn:"root"}),t})();class k{constructor(t){if(this.scrollStrategy=new v,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class I{constructor(t,e,i,n,s){this.offsetX=i,this.offsetY=n,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class x{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let R=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(a.K0))},token:t,providedIn:"root"}),t})(),O=(()=>{class t extends R{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let i=e.length-1;i>-1;i--)if(e[i]._keydownEvents.observers.length>0){e[i]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(a.K0))},token:t,providedIn:"root"}),t})(),P=(()=>{class t extends R{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,i=this._attachedOverlays.slice();for(let n=i.length-1;n>-1;n--){const s=i[n];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){if(super.add(t),!this._isAttached){const t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),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 t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0),s.LFG(o.t4))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(a.K0),s.LFG(o.t4))},token:t,providedIn:"root"}),t})();const D="undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha;let M=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){if(this._platform.isBrowser||D){const t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let e=0;ethis._backdropClick.next(t),this._keydownEvents=new u.xQ,this._outsidePointerEvents=new u.xQ,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,m.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),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 t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),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&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=(0,c.HM)(this._config.width),t.height=(0,c.HM)(this._config.height),t.minWidth=(0,c.HM)(this._config.minWidth),t.minHeight=(0,c.HM)(this._config.minHeight),t.maxWidth=(0,c.HM)(this._config.maxWidth),t.maxHeight=(0,c.HM)(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),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),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const n=t.classList;(0,c.Eq)(e).forEach(t=>{t&&(i?n.add(t):n.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe((0,b.R)((0,d.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._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const N=/([A-Za-z%]+)$/;class z{constructor(t,e,i,n,s){this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=s,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 u.xQ,this._resizeSubscription=h.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.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();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,n=[];let s;for(let o of this._preferredPositions){let r=this._getOriginPoint(t,o),a=this._getOverlayPoint(r,e,o),c=this._getOverlayFit(a,e,i,o);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(o,r);this._canFitWithFlexibleDimensions(c,a,i)?n.push({position:o,origin:r,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(r,o)}):(!s||s.overlayFit.visibleAreae&&(e=n,t=i)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Z(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let i,n;if("center"==e.originX)i=t.left+t.width/2;else{const n=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;i="start"==e.originX?n:s}return n="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:n}}_getOverlayPoint(t,e,i){let n,s;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+s}}_getOverlayFit(t,e,i,n){const s=q(e);let{x:o,y:r}=t,a=this._getOffset(n,"x"),c=this._getOffset(n,"y");a&&(o+=a),c&&(r+=c);let l=0-r,u=r+s.height-i.height,h=this._subtractOverflows(s.width,0-o,o+s.width-i.width),d=this._subtractOverflows(s.height,l,u),p=h*d;return{visibleArea:p,isCompletelyWithinViewport:s.width*s.height===p,fitsInViewportVertically:d===s.height,fitsInViewportHorizontally:h==s.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const n=i.bottom-e.y,s=i.right-e.x,o=B(this._overlayRef.getConfig().minHeight),r=B(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=r&&r<=s;return(t.fitsInViewportVertically||null!=o&&o<=n)&&a}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const n=q(e),s=this._viewportRect,o=Math.max(t.x+n.width-s.width,0),r=Math.max(t.y+n.height-s.height,0),a=Math.max(s.top-i.top-t.y,0),c=Math.max(s.left-i.left-t.x,0);let l=0,u=0;return l=n.width<=s.width?c||-o:t.xn&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-n/2)}if("end"===e.overlayX&&!n||"start"===e.overlayX&&n)l=i.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!n||"end"===e.overlayX&&n)c=t.x,a=i.right-t.x;else{const e=Math.min(i.right-t.x+i.left,t.x),n=this._lastBoundingBoxSize.width;a=2*e,c=t.x-e,a>n&&!this._isInitialRender&&!this._growAfterOpen&&(c=t.x-n/2)}return{top:o,left:c,bottom:r,right:l,width:a,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;n.height=(0,c.HM)(i.height),n.top=(0,c.HM)(i.top),n.bottom=(0,c.HM)(i.bottom),n.width=(0,c.HM)(i.width),n.left=(0,c.HM)(i.left),n.right=(0,c.HM)(i.right),n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(n.maxHeight=(0,c.HM)(t)),s&&(n.maxWidth=(0,c.HM)(s))}this._lastBoundingBoxSize=i,Z(this._boundingBox.style,n)}_resetBoundingBoxStyles(){Z(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Z(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},n=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(n){const n=this._viewportRuler.getViewportScrollPosition();Z(i,this._getExactOverlayY(e,t,n)),Z(i,this._getExactOverlayX(e,t,n))}else i.position="static";let r="",a=this._getOffset(e,"x"),l=this._getOffset(e,"y");a&&(r+=`translateX(${a}px) `),l&&(r+=`translateY(${l}px)`),i.transform=r.trim(),o.maxHeight&&(n?i.maxHeight=(0,c.HM)(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(n?i.maxWidth=(0,c.HM)(o.maxWidth):s&&(i.maxWidth="")),Z(this._pane.style,i)}_getExactOverlayY(t,e,i){let n={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i));let o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=o,"bottom"===t.overlayY?n.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":n.top=(0,c.HM)(s.y),n}_getExactOverlayX(t,e,i){let n,s={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),n=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===n?s.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":s.left=(0,c.HM)(o.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:C(t,i),isOriginOutsideView:T(t,i),isOverlayClipped:C(e,i),isOverlayOutsideView:T(e,i)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&(0,c.Eq)(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof s.SBq)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function Z(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function B(t){if("number"!=typeof t&&null!=t){const[e,i]=t.split(N);return i&&"px"!==i?null:parseFloat(e)}return t||null}function q(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class F{constructor(t,e,i,n,s,o,r){this._preferredPositions=[],this._positionStrategy=new z(i,n,s,o,r).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,i,n){const s=new I(t,e,i,n);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}class U{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:n,height:s,maxWidth:o,maxHeight:r}=i,a=!("100%"!==n&&"100vw"!==n||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||r&&"100%"!==r&&"100vh"!==r);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove("cdk-global-overlay-wrapper"),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let H=(()=>{class t{constructor(t,e,i,n){this._viewportRuler=t,this._document=e,this._platform=i,this._overlayContainer=n}global(){return new U}connectedTo(t,e,i){return new F(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new z(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.rL),s.LFG(a.K0),s.LFG(o.t4),s.LFG(M))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.rL),s.LFG(a.K0),s.LFG(o.t4),s.LFG(M))},token:t,providedIn:"root"}),t})(),G=0,j=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,l,u){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=s,this._injector=o,this._ngZone=r,this._document=a,this._directionality=c,this._location=l,this._outsideClickDispatcher=u}create(t){const e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),s=new k(t);return s.direction=s.direction||this._directionality.value,new L(n,e,i,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+G++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(s.z2F)),new l.u0(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(S),s.LFG(M),s.LFG(s._Vd),s.LFG(H),s.LFG(O),s.LFG(s.zs3),s.LFG(s.R0b),s.LFG(a.K0),s.LFG(r.Is),s.LFG(a.Ye),s.LFG(P))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const Y=[{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"}],K=new s.OlP("cdk-connected-overlay-scroll-strategy");let V=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),$=(()=>{class t{constructor(t,e,i,n,o){this._overlay=t,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.w.EMPTY,this._attachSubscription=h.w.EMPTY,this._detachSubscription=h.w.EMPTY,this._positionSubscription=h.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new s.vpe,this.positionChange=new s.vpe,this.attach=new s.vpe,this.detach=new s.vpe,this.overlayKeydown=new s.vpe,this.overlayOutsideClick=new s.vpe,this._templatePortal=new l.UE(e,i),this._scrollStrategyFactory=n,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=(0,c.Ig)(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=(0,c.Ig)(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=(0,c.Ig)(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=(0,c.Ig)(t)}get push(){return this._push}set push(t){this._push=(0,c.Ig)(t)}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(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=Y);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),t.keyCode!==_.hY||this.disableClose||(0,_.Vb)(t)||(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new k({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}_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(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t,e=!1){return i=>i.lift(new g(t,e))}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(j),s.Y36(s.Rgc),s.Y36(s.s_b),s.Y36(K),s.Y36(r.Is,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[s.TTD]}),t})();const J={provide:K,deps:[j],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[j,J],imports:[[r.vT,l.eL,n.Cl],n.Cl]}),t})()},11353:function(t,e,i){"use strict";i.d(e,{t4:function(){return a},ud:function(){return c},ht:function(){return w},kV:function(){return _},_i:function(){return b},qK:function(){return u},i$:function(){return f},Mq:function(){return m}});var n=i(31572),s=i(61511);let o;try{o="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(A){o=!1}let r,a=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?(0,s.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&&!o)&&"undefined"!=typeof CSS&&!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 t.\u0275fac=function(e){return new(e||t)(n.LFG(n.Lbi))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(n.Lbi))},token:t,providedIn:"root"}),t})(),c=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})();const l=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function u(){if(r)return r;if("object"!=typeof document||!document)return r=new Set(l),r;let t=document.createElement("input");return r=new Set(l.filter(e=>(t.setAttribute("type",e),t.type===e))),r}let h,d,p,g;function f(t){return function(){if(null==h&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>h=!0}))}finally{h=h||!1}return h}()?t:!!t.capture}function m(){if(null==p){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return p=!1,p;if("scrollBehavior"in document.documentElement.style)p=!0;else{const t=Element.prototype.scrollTo;p=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return p}function b(){if("object"!=typeof document||!document)return 0;if(null==d){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",t.appendChild(i),document.body.appendChild(t),d=0,0===t.scrollLeft&&(t.scrollLeft=1,d=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return d}function _(t){if(function(){if(null==g){const t="undefined"!=typeof document?document.head:null;g=!(!t||!t.createShadowRoot&&!t.attachShadow)}return g}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function w(){let t="undefined"!=typeof document&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}},26899:function(t,e,i){"use strict";i.d(e,{en:function(){return l},ig:function(){return d},Pl:function(){return p},C5:function(){return r},F0:function(){return h},u0:function(){return u},eL:function(){return g},UE:function(){return a}});var n=i(31572),s=i(61511);class o{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class r extends o{constructor(t,e,i,n){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=n}}class a extends o{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class c extends o{constructor(t){super(),this.element=t instanceof n.SBq?t.nativeElement:t}}class l{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof r?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof a?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof c?(this._attachedPortal=t,this.attachDomPortal(t)):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(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class u extends l{constructor(t,e,i,n,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=n,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=t,i}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(t=>this.outletElement.appendChild(t)),i.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(i);-1!==t&&e.remove(t)}),this._attachedPortal=t,i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}class h extends u{}let d=(()=>{class t extends a{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Rgc),n.Y36(n.s_b))},t.\u0275dir=n.lG2({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[n.qOj]}),t})(),p=(()=>{class t extends l{constructor(t,e,i){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new n.vpe,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(i,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=i}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),n=e.createComponent(i,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n._Vd),n.Y36(n.s_b),n.Y36(s.K0))},t.\u0275dir=n.lG2({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[n.qOj]}),t})(),g=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})()},4253:function(t,e,i){"use strict";i.d(e,{xd:function(){return P},PQ:function(){return M},ZD:function(){return q},x0:function(){return B},N7:function(){return z},mF:function(){return D},Cl:function(){return F},rL:function(){return L}});var n=i(19861),s=i(31572),o=i(55959),r=i(40878),a=i(48318),c=i(87254),l=i(91741),u=i(92709),h=i(87570),d=i(4710),p=i(96673);class g{call(t,e){return e.subscribe(new f(t))}}class f extends p.L{constructor(t){super(t),this.hasPrev=!1}_next(t){let e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}var m=i(98720),b=i(30810),_=i(43835),w=i(25416),A=i(56238),y=i(44689),v=i(68303),T=i(11353),C=i(61511),E=i(22526),S=i(4230);const k=["contentWrapper"],I=["*"],x=new s.OlP("VIRTUAL_SCROLL_STRATEGY");class R{constructor(t,e,i){this._scrolledIndexChange=new o.xQ,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,m.x)()),this._viewport=null,this._itemSize=t,this._minBufferPx=e,this._maxBufferPx=i}attach(t){this._viewport=t,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(t,e,i){this._itemSize=t,this._minBufferPx=e,this._maxBufferPx=i,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(t,e){this._viewport&&this._viewport.scrollToOffset(t*this._itemSize,e)}_updateTotalContentSize(){this._viewport&&this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const t=this._viewport.getRenderedRange(),e={start:t.start,end:t.end},i=this._viewport.getViewportSize(),n=this._viewport.getDataLength();let s=this._viewport.measureScrollOffset(),o=this._itemSize>0?s/this._itemSize:0;if(e.end>n){const t=Math.ceil(i/this._itemSize),r=Math.max(0,Math.min(o,n-t));o!=r&&(o=r,s=r*this._itemSize,e.start=Math.floor(o)),e.end=Math.max(0,Math.min(n,e.start+t))}const r=s-e.start*this._itemSize;if(r0&&(e.end=Math.min(n,e.end+i),e.start=Math.max(0,Math.floor(o-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(o))}}function O(t){return t._scrollStrategy}let P=(()=>{class t{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new R(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(t){this._itemSize=(0,n.su)(t)}get minBufferPx(){return this._minBufferPx}set minBufferPx(t){this._minBufferPx=(0,n.su)(t)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(t){this._maxBufferPx=(0,n.su)(t)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[s._Bn([{provide:x,useFactory:O,deps:[(0,s.Gpc)(()=>t)]}]),s.TTD]}),t})(),D=(()=>{class t{constructor(t,e,i){this._ngZone=t,this._platform=e,this._scrolled=new o.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new a.y(e=>{this._globalSubscription||this._addGlobalListener();const i=t>0?this._scrolled.pipe((0,b.e)(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,r.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe((0,_.h)(t=>!t||i.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((i,n)=>{this._scrollableContainsElement(n,t)&&e.push(n)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let i=(0,n.fI)(e),s=t.getElementRef().nativeElement;do{if(i==s)return!0}while(i=i.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();return(0,c.R)(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(T.t4),s.LFG(C.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(T.t4),s.LFG(C.K0,8))},token:t,providedIn:"root"}),t})(),M=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=i,this.dir=n,this._destroyed=new o.xQ,this._elementScrolled=new a.y(t=>this.ngZone.runOutsideAngular(()=>(0,c.R)(this.elementRef.nativeElement,"scroll").pipe((0,w.R)(this._destroyed)).subscribe(t)))}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(t){const e=this.elementRef.nativeElement,i=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=i?t.end:t.start),null==t.right&&(t.right=i?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),i&&0!=(0,T._i)()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==(0,T._i)()?t.left=t.right:1==(0,T._i)()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const e=this.elementRef.nativeElement;(0,T.Mq)()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;const i=this.dir&&"rtl"==this.dir.value;return"start"==t?t=i?"right":"left":"end"==t&&(t=i?"left":"right"),i&&2==(0,T._i)()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:i&&1==(0,T._i)()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(D),s.Y36(s.R0b),s.Y36(E.Is,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),L=(()=>{class t{constructor(t,e,i){this._platform=t,this._change=new o.xQ,this._changeListener=t=>{this._change.next(t)},this._document=i,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:i}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+e,height:i,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}change(t=20){return t>0?this._change.pipe((0,b.e)(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(T.t4),s.LFG(s.R0b),s.LFG(C.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(T.t4),s.LFG(s.R0b),s.LFG(C.K0,8))},token:t,providedIn:"root"}),t})();const N="undefined"!=typeof requestAnimationFrame?l.r:u.e;let z=(()=>{class t extends M{constructor(t,e,i,n,s,r,c){super(t,r,i,s),this.elementRef=t,this._changeDetectorRef=e,this._scrollStrategy=n,this._detachedSubject=new o.xQ,this._renderedRangeSubject=new o.xQ,this._orientation="vertical",this.scrolledIndexChange=new a.y(t=>this._scrollStrategy.scrolledIndexChange.subscribe(e=>Promise.resolve().then(()=>this.ngZone.run(()=>t.next(e))))),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=h.w.EMPTY,this._viewportChanges=c.change().subscribe(()=>{this.checkViewportSize()})}get orientation(){return this._orientation}set orientation(t){this._orientation!==t&&(this._orientation=t,this._calculateSpacerSize())}ngOnInit(){super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.elementScrolled().pipe((0,A.O)(null),(0,b.e)(0,N)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(t){this.ngZone.runOutsideAngular(()=>{this._forOf=t,this._forOf.dataStream.pipe((0,w.R)(this._detachedSubject)).subscribe(t=>{const e=t.length;e!==this._dataLength&&(this._dataLength=e,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}setTotalContentSize(t){this._totalContentSize!==t&&(this._totalContentSize=t,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(t){var e,i;((e=this._renderedRange).start!=(i=t).start||e.end!=i.end)&&(this._renderedRangeSubject.next(this._renderedRange=t),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(t,e="to-start"){const i="horizontal"==this.orientation,n=i?"X":"Y";let s=`translate${n}(${Number((i&&this.dir&&"rtl"==this.dir.value?-1:1)*t)}px)`;this._renderedContentOffset=t,"to-end"===e&&(s+=` translate${n}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=s&&(this._renderedContentTransform=s,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(t,e="auto"){const i={behavior:e};"horizontal"===this.orientation?i.start=t:i.top=t,this.scrollTo(i)}scrollToIndex(t,e="auto"){this._scrollStrategy.scrollToIndex(t,e)}measureScrollOffset(t){return super.measureScrollOffset(t||("horizontal"===this.orientation?"start":"top"))}measureRenderedContentSize(){const t=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?t.offsetWidth:t.offsetHeight}measureRangeSize(t){return this._forOf?this._forOf.measureRangeSize(t,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){const t=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?t.clientWidth:t.clientHeight}_markChangeDetectionNeeded(t){t&&this._runAfterChangeDetection.push(t),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 t=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const e of t)e()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(s.R0b),s.Y36(x,8),s.Y36(E.Is,8),s.Y36(D),s.Y36(L))},t.\u0275cmp=s.Xpm({type:t,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(t,e){if(1&t&&s.Gf(k,7),2&t){let t;s.iGM(t=s.CRH())&&(e._contentWrapper=t.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(t,e){2&t&&s.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===e.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==e.orientation)},inputs:{orientation:"orientation"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[s._Bn([{provide:M,useExisting:t}]),s.qOj],ngContentSelectors:I,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0,1),s.Hsn(2),s.qZA(),s._UZ(3,"div",2)),2&t&&(s.xp6(3),s.Udp("width",e._totalContentWidth)("height",e._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-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{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0}),t})();function Z(t,e,i){if(!i.getBoundingClientRect)return 0;const n=i.getBoundingClientRect();return"horizontal"===t?"start"===e?n.left:n.right:"start"===e?n.top:n.bottom}let B=(()=>{class t{constructor(t,e,i,n,s,r){this._viewContainerRef=t,this._template=e,this._differs=i,this._viewRepeater=n,this._viewport=s,this.viewChange=new o.xQ,this._dataSourceChanges=new o.xQ,this.dataStream=this._dataSourceChanges.pipe((0,A.O)(null),t=>t.lift(new g),(0,y.w)(([t,e])=>this._changeDataSource(t,e)),(0,v.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new o.xQ,this.dataStream.subscribe(t=>{this._data=t,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,w.R)(this._destroyed)).subscribe(t=>{this._renderedRange=t,r.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(t){this._cdkVirtualForOf=t,(0,S.Z9)(t)?this._dataSourceChanges.next(t):this._dataSourceChanges.next(new S.P3((0,d.b)(t)?t:Array.from(t||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(t){this._needsUpdate=!0,this._cdkVirtualForTrackBy=t?(e,i)=>t(e+(this._renderedRange?this._renderedRange.start:0),i):void 0}set cdkVirtualForTemplate(t){t&&(this._needsUpdate=!0,this._template=t)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(t){this._viewRepeater.viewCacheSize=(0,n.su)(t)}measureRangeSize(t,e){if(t.start>=t.end)return 0;const i=t.start-this._renderedRange.start,n=t.end-t.start;let s,o;for(let r=0;r-1;r--){const t=this._viewContainerRef.get(r+i);if(t&&t.rootNodes.length){o=t.rootNodes[t.rootNodes.length-1];break}}return s&&o?Z(e,"end",o)-Z(e,"start",s):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const t=this._differ.diff(this._renderedItems);t?this._applyChanges(t):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((t,e)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(t,e):e)),this._needsUpdate=!0)}_changeDataSource(t,e){return t&&t.disconnect(this),this._needsUpdate=!0,e?e.connect(this):(0,r.of)()}_updateContext(){const t=this._data.length;let e=this._viewContainerRef.length;for(;e--;){const i=this._viewContainerRef.get(e);i.context.index=this._renderedRange.start+e,i.context.count=t,this._updateComputedContextProperties(i.context),i.detectChanges()}}_applyChanges(t){this._viewRepeater.applyChanges(t,this._viewContainerRef,(t,e,i)=>this._getEmbeddedViewArgs(t,i),t=>t.item),t.forEachIdentityChange(t=>{this._viewContainerRef.get(t.currentIndex).context.$implicit=t.item});const e=this._data.length;let i=this._viewContainerRef.length;for(;i--;){const t=this._viewContainerRef.get(i);t.context.index=this._renderedRange.start+i,t.context.count=e,this._updateComputedContextProperties(t.context)}}_updateComputedContextProperties(t){t.first=0===t.index,t.last=t.index===t.count-1,t.even=t.index%2==0,t.odd=!t.even}_getEmbeddedViewArgs(t,e){return{templateRef:this._template,context:{$implicit:t.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:e}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(S.k),s.Y36(z,4),s.Y36(s.R0b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[s._Bn([{provide:S.k,useClass:S.eX}])]}),t})(),q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),F=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[E.vT,T.ud,q],E.vT,q]}),t})()},10901:function(t,e,i){"use strict";i.d(e,{Lq:function(){return p},IC:function(){return g},Ky:function(){return f}});var n=i(11353),s=i(31572),o=i(19861),r=i(70653),a=i(55959),c=i(87254),l=i(30810),u=i(25416),h=i(61511);const d=(0,n.i$)({passive:!0});let p=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return r.E;const e=(0,o.fI)(t),i=this._monitoredElements.get(e);if(i)return i.subject;const n=new a.xQ,s="cdk-text-field-autofilled",c=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",c,d),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:n,unlisten:()=>{e.removeEventListener("animationstart",c,d)}}),n}stopMonitoring(t){const e=(0,o.fI)(t),i=this._monitoredElements.get(e);i&&(i.unlisten(),i.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.t4),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.t4),s.LFG(s.R0b))},token:t,providedIn:"root"}),t})(),g=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._platform=e,this._ngZone=i,this._destroyed=new a.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._document=n,this._textareaElement=this._elementRef.nativeElement,this._measuringClass=e.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring"}get minRows(){return this._minRows}set minRows(t){this._minRows=(0,o.su)(t),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(t){this._maxRows=(0,o.su)(t),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(t){t=(0,o.Ig)(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(t){this._cachedPlaceholderHeight=void 0,this._textareaElement.placeholder=t,this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const t=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.minHeight=t)}_setMaxHeight(){const t=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.maxHeight=t)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();(0,c.R)(t,"resize").pipe((0,l.e)(16),(0,u.R)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0))}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let t=this._textareaElement.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,this._textareaElement.parentNode.removeChild(t),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){this._textareaElement.classList.add(this._measuringClass);const t=this._textareaElement.scrollHeight-4;return this._textareaElement.classList.remove(this._measuringClass),t}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const t=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=t}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(t=!1){if(!this._enabled)return;if(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight)return;const e=this._elementRef.nativeElement,i=e.value;if(!t&&this._minRows===this._previousMinRows&&i===this._previousValue)return;const n=this._measureScrollHeight(),s=Math.max(n,this._cachedPlaceholderHeight||0);e.style.height=`${s}px`,this._ngZone.runOutsideAngular(()=>{"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(()=>this._scrollToCaretPosition(e)):setTimeout(()=>this._scrollToCaretPosition(e))}),this._previousValue=i,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(t){const{selectionStart:e,selectionEnd:i}=t,n=this._getDocument();this._destroyed.isStopped||n.activeElement!==t||t.setSelectionRange(e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(n.t4),s.Y36(s.R0b),s.Y36(h.K0,8))},t.\u0275dir=s.lG2({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&s.NdJ("input",function(){return e._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),t})(),f=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ud]]}),t})()},71709:function(t,e,i){"use strict";i.d(e,{HI:function(){return b},Xx:function(){return C},_0:function(){return y},nZ:function(){return I},Hs:function(){return v},rO:function(){return A},cu:function(){return _},XJ:function(){return S},Ud:function(){return k},C2:function(){return f},VY:function(){return m}});var n=i(4230),s=i(4710),o=i(55959),r=i(78512),a=i(40878),c=i(90611),l=i(43835),u=i(25416),h=i(31572),d=i(19861),p=i(22526);class g{constructor(){this.expansionModel=new n.Ov(!0)}toggle(t){this.expansionModel.toggle(this._trackByValue(t))}expand(t){this.expansionModel.select(this._trackByValue(t))}collapse(t){this.expansionModel.deselect(this._trackByValue(t))}isExpanded(t){return this.expansionModel.isSelected(this._trackByValue(t))}toggleDescendants(t){this.expansionModel.isSelected(this._trackByValue(t))?this.collapseDescendants(t):this.expandDescendants(t)}collapseAll(){this.expansionModel.clear()}expandDescendants(t){let e=[t];e.push(...this.getDescendants(t)),this.expansionModel.select(...e.map(t=>this._trackByValue(t)))}collapseDescendants(t){let e=[t];e.push(...this.getDescendants(t)),this.expansionModel.deselect(...e.map(t=>this._trackByValue(t)))}_trackByValue(t){return this.trackBy?this.trackBy(t):t}}class f extends g{constructor(t,e,i){super(),this.getLevel=t,this.isExpandable=e,this.options=i,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(t){const e=[];for(let i=this.dataNodes.indexOf(t)+1;ithis._trackByValue(t)))}}class m extends g{constructor(t,e){super(),this.getChildren=t,this.options=e,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const t=this.dataNodes.reduce((t,e)=>[...t,...this.getDescendants(e),e],[]);this.expansionModel.select(...t.map(t=>this._trackByValue(t)))}getDescendants(t){const e=[];return this._getDescendants(e,t),e.splice(1)}_getDescendants(t,e){t.push(e);const i=this.getChildren(e);Array.isArray(i)?i.forEach(e=>this._getDescendants(t,e)):(0,s.b)(i)&&i.pipe((0,c.q)(1),(0,l.h)(Boolean)).subscribe(e=>{for(const i of e)this._getDescendants(t,i)})}}const b=new h.OlP("CDK_TREE_NODE_OUTLET_NODE");let _=(()=>{class t{constructor(t,e){this.viewContainer=t,this._node=e}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.s_b),h.Y36(b,8))},t.\u0275dir=h.lG2({type:t,selectors:[["","cdkTreeNodeOutlet",""]]}),t})();class w{constructor(t){this.$implicit=t}}let A=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.Rgc))},t.\u0275dir=h.lG2({type:t,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),t})(),y=(()=>{class t{constructor(t,e){this._differs=t,this._changeDetectorRef=e,this._onDestroy=new o.xQ,this._levels=new Map,this.viewChange=new r.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}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 t=this._nodeDefs.filter(t=>!t.when);this._defaultNodeDef=t[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(t){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),t||this._nodeOutlet.viewContainer.clear(),this._dataSource=t,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let t;(0,n.Z9)(this._dataSource)?t=this._dataSource.connect(this):(0,s.b)(this._dataSource)?t=this._dataSource:Array.isArray(this._dataSource)&&(t=(0,a.of)(this._dataSource)),t&&(this._dataSubscription=t.pipe((0,u.R)(this._onDestroy)).subscribe(t=>this.renderNodeChanges(t)))}renderNodeChanges(t,e=this._dataDiffer,i=this._nodeOutlet.viewContainer,n){const s=e.diff(t);s&&(s.forEachOperation((e,s,o)=>{if(null==e.previousIndex)this.insertNode(t[o],o,i,n);else if(null==o)i.remove(s),this._levels.delete(e.item);else{const t=i.get(s);i.move(t,o)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(t,e){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(i=>i.when&&i.when(e,t))||this._defaultNodeDef}insertNode(t,e,i,n){const s=this._getNodeDef(t,e),o=new w(t);o.level=this.treeControl.getLevel?this.treeControl.getLevel(t):void 0!==n&&this._levels.has(n)?this._levels.get(n)+1:0,this._levels.set(t,o.level),(i||this._nodeOutlet.viewContainer).createEmbeddedView(s.template,o,e),v.mostRecentTreeNode&&(v.mostRecentTreeNode.data=t)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.ZZ4),h.Y36(h.sBO))},t.\u0275cmp=h.Xpm({type:t,selectors:[["cdk-tree"]],contentQueries:function(t,e,i){if(1&t&&h.Suo(i,A,5),2&t){let t;h.iGM(t=h.CRH())&&(e._nodeDefs=t)}},viewQuery:function(t,e){if(1&t&&h.Gf(_,7),2&t){let t;h.iGM(t=h.CRH())&&(e._nodeOutlet=t.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(t,e){1&t&&h.GkF(0,0)},directives:[_],encapsulation:2}),t})(),v=(()=>{class t{constructor(e,i){this._elementRef=e,this._tree=i,this._destroyed=new o.xQ,this._dataChanges=new o.xQ,t.mostRecentTreeNode=this,this._elementRef.nativeElement.classList.add("cdk-tree-node"),this.role="treeitem"}get role(){return"treeitem"}set role(t){this._elementRef.nativeElement.setAttribute("role",t)}get data(){return this._data}set data(t){t!==this._data&&(this._data=t,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}_setExpanded(t){this._isAriaExpanded=t,this._elementRef.nativeElement.setAttribute("aria-expanded",`${t}`)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function(t){let e=t.parentElement;for(;e&&!T(e);)e=e.parentElement;return e?e.classList.contains("cdk-nested-tree-node")?(0,d.su)(e.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngDoCheck(){this.isExpanded!=this._isAriaExpanded&&this._setExpanded(this.isExpanded)}ngOnDestroy(){t.mostRecentTreeNode===this&&(t.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(y))},t.\u0275dir=h.lG2({type:t,selectors:[["cdk-tree-node"]],inputs:{role:"role"},exportAs:["cdkTreeNode"]}),t.mostRecentTreeNode=null,t})();function T(t){const e=t.classList;return!(!(null==e?void 0:e.contains("cdk-nested-tree-node"))&&!(null==e?void 0:e.contains("cdk-tree")))}let C=(()=>{class t extends v{constructor(t,e,i){super(t,e),this._elementRef=t,this._tree=e,this._differs=i,this._elementRef.nativeElement.classList.add("cdk-nested-tree-node")}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const t=this._tree.treeControl.getChildren(this.data);Array.isArray(t)?this.updateChildrenNodes(t):(0,s.b)(t)&&t.pipe((0,u.R)(this._destroyed)).subscribe(t=>this.updateChildrenNodes(t)),this.nodeOutlet.changes.pipe((0,u.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(t){const e=this._getNodeOutlet();t&&(this._children=t),e&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,e.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const t=this._getNodeOutlet();t&&(t.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const t=this.nodeOutlet;return t&&t.find(t=>!t._node||t._node===this)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(y),h.Y36(h.ZZ4))},t.\u0275dir=h.lG2({type:t,selectors:[["cdk-nested-tree-node"]],contentQueries:function(t,e,i){if(1&t&&h.Suo(i,_,5),2&t){let t;h.iGM(t=h.CRH())&&(e.nodeOutlet=t)}},inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[h._Bn([{provide:v,useExisting:t},{provide:b,useExisting:t}]),h.qOj]}),t})();const E=/([A-Za-z%]+)$/;let S=(()=>{class t{constructor(t,e,i,n){this._treeNode=t,this._tree=e,this._element=i,this._dir=n,this._destroyed=new o.xQ,this.indentUnits="px",this._indent=40,this._setPadding(),n&&n.change.pipe((0,u.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),t._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(t){this._setLevelInput(t)}get indent(){return this._indent}set indent(t){this._setIndentInput(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const t=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,e=null==this._level?t:this._level;return"number"==typeof e?`${e*this._indent}${this.indentUnits}`:null}_setPadding(t=!1){const e=this._paddingIndent();if(e!==this._currentPadding||t){const t=this._element.nativeElement,i=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",n="paddingLeft"===i?"paddingRight":"paddingLeft";t.style[i]=e||"",t.style[n]="",this._currentPadding=e}}_setLevelInput(t){this._level=(0,d.su)(t,null),this._setPadding()}_setIndentInput(t){let e=t,i="px";if("string"==typeof t){const n=t.split(E);e=n[0],i=n[1]||i}this.indentUnits=i,this._indent=(0,d.su)(e),this._setPadding()}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(v),h.Y36(y),h.Y36(h.SBq),h.Y36(p.Is,8))},t.\u0275dir=h.lG2({type:t,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),t})(),k=(()=>{class t{constructor(t,e){this._tree=t,this._treeNode=e,this._recursive=!1}get recursive(){return this._recursive}set recursive(t){this._recursive=(0,d.Ig)(t)}_toggle(t){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),t.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(y),h.Y36(v))},t.\u0275dir=h.lG2({type:t,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(t,e){1&t&&h.NdJ("click",function(t){return e._toggle(t)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),t})(),I=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({}),t})()},61511:function(t,e,i){"use strict";i.d(e,{mr:function(){return A},Ov:function(){return St},ez:function(){return Rt},K0:function(){return c},uU:function(){return xt},Do:function(){return v},V_:function(){return h},Ye:function(){return T},S$:function(){return _},i8:function(){return kt},mk:function(){return ct},sg:function(){return ut},O5:function(){return dt},PC:function(){return wt},RF:function(){return mt},n9:function(){return bt},ED:function(){return _t},tP:function(){return At},b0:function(){return y},lw:function(){return l},gd:function(){return It},EM:function(){return Mt},JF:function(){return zt},p6:function(){return j},NF:function(){return Pt},PM:function(){return Dt},w_:function(){return a},bD:function(){return Ot},q:function(){return o},Mx:function(){return at},HT:function(){return r}});var n=i(31572);let s=null;function o(){return s}function r(t){s||(s=t)}class a{}const c=new n.OlP("DocumentToken");let l=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:u,token:t,providedIn:"platform"}),t})();function u(){return(0,n.LFG)(d)}const h=new n.OlP("Location Initialized");let d=(()=>{class t extends l{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return o().getBaseHref(this._doc)}onPopState(t){const e=o().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=o().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}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(t){this.location.pathname=t}pushState(t,e,i){p()?this._history.pushState(t,e,i):this.location.hash=i}replaceState(t,e,i){p()?this._history.replaceState(t,e,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(c))},t.\u0275prov=(0,n.Yz7)({factory:g,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function g(){return new d((0,n.LFG)(c))}function f(t,e){if(0==t.length)return e;if(0==e.length)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,2==i?t+e.substring(1):1==i?t+e:t+"/"+e}function m(t){const e=t.match(/#|\?|$/),i=e&&e.index||t.length;return t.slice(0,i-("/"===t[i-1]?1:0))+t.slice(i)}function b(t){return t&&"?"!==t[0]?"?"+t:t}let _=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:w,token:t,providedIn:"root"}),t})();function w(t){const e=(0,n.LFG)(c).location;return new y((0,n.LFG)(l),e&&e.origin||"")}const A=new n.OlP("appBaseHref");let y=(()=>{class t extends _{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return f(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+b(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${e}${i}`:e}pushState(t,e,i,n){const s=this.prepareExternalUrl(i+b(n));this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){const s=this.prepareExternalUrl(i+b(n));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformLocation).historyGo)||void 0===i||i.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(l),n.LFG(A,8))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),v=(()=>{class t extends _{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=f(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,i,n){let s=this.prepareExternalUrl(i+b(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){let s=this.prepareExternalUrl(i+b(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformLocation).historyGo)||void 0===i||i.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(l),n.LFG(A,8))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),T=(()=>{class t{constructor(t,e){this._subject=new n.vpe,this._urlChangeListeners=[],this._platformStrategy=t;const i=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=m(E(i)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+b(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,E(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",i=null){this._platformStrategy.pushState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+b(e)),i)}replaceState(t,e="",i=null){this._platformStrategy.replaceState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+b(e)),i)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformStrategy).historyGo)||void 0===i||i.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(i=>i(t,e))}subscribe(t,e,i){return this._subject.subscribe({next:t,error:e,complete:i})}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(_),n.LFG(l))},t.normalizeQueryParams=b,t.joinWithSlash=f,t.stripTrailingSlash=m,t.\u0275prov=(0,n.Yz7)({factory:C,token:t,providedIn:"root"}),t})();function C(){return new T((0,n.LFG)(_),(0,n.LFG)(l))}function E(t){return t.replace(/\/index.html$/,"")}var S=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),k=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),I=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),x=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),R=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function O(t,e){return z((0,n.cg1)(t)[n.wAp.DateFormat],e)}function P(t,e){return z((0,n.cg1)(t)[n.wAp.TimeFormat],e)}function D(t,e){return z((0,n.cg1)(t)[n.wAp.DateTimeFormat],e)}function M(t,e){const i=(0,n.cg1)(t),s=i[n.wAp.NumberSymbols][e];if(void 0===s){if(e===R.CurrencyDecimal)return i[n.wAp.NumberSymbols][R.Decimal];if(e===R.CurrencyGroup)return i[n.wAp.NumberSymbols][R.Group]}return s}const L=n.kL8;function N(t){if(!t[n.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[n.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function z(t,e){for(let i=e;i>-1;i--)if(void 0!==t[i])return t[i];throw new Error("Locale data API: locale data undefined")}function Z(t){const[e,i]=t.split(":");return{hours:+e,minutes:+i}}const B=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,q={},F=/((?:[^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 U=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),H=function(t){return 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}({}),G=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function j(t,e,i,n){let s=function(t){if(st(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[e,i=1,n=1]=t.split("-").map(t=>+t);return Y(e,i-1,n)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(B))return function(t){const e=new Date(0);let i=0,n=0;const s=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),s.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const r=Number(t[4]||0)-i,a=Number(t[5]||0)-n,c=Number(t[6]||0),l=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,r,a,c,l),e}(i)}const e=new Date(t);if(!st(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=K(i,e)||e;let o,r=[];for(;e;){if(o=F.exec(e),!o){r.push(e);break}{r=r.concat(o.slice(1));const t=r.pop();if(!t)break;e=t}}let a=s.getTimezoneOffset();n&&(a=nt(n,a),s=function(t,e,i){const n=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(nt(e,n)-n))}(s,n));let c="";return r.forEach(t=>{const e=function(t){if(it[t])return it[t];let e;switch(t){case"G":case"GG":case"GGG":e=Q(G.Eras,I.Abbreviated);break;case"GGGG":e=Q(G.Eras,I.Wide);break;case"GGGGG":e=Q(G.Eras,I.Narrow);break;case"y":e=J(H.FullYear,1,0,!1,!0);break;case"yy":e=J(H.FullYear,2,0,!0,!0);break;case"yyy":e=J(H.FullYear,3,0,!1,!0);break;case"yyyy":e=J(H.FullYear,4,0,!1,!0);break;case"Y":e=et(1);break;case"YY":e=et(2,!0);break;case"YYY":e=et(3);break;case"YYYY":e=et(4);break;case"M":case"L":e=J(H.Month,1,1);break;case"MM":case"LL":e=J(H.Month,2,1);break;case"MMM":e=Q(G.Months,I.Abbreviated);break;case"MMMM":e=Q(G.Months,I.Wide);break;case"MMMMM":e=Q(G.Months,I.Narrow);break;case"LLL":e=Q(G.Months,I.Abbreviated,k.Standalone);break;case"LLLL":e=Q(G.Months,I.Wide,k.Standalone);break;case"LLLLL":e=Q(G.Months,I.Narrow,k.Standalone);break;case"w":e=tt(1);break;case"ww":e=tt(2);break;case"W":e=tt(1,!0);break;case"d":e=J(H.Date,1);break;case"dd":e=J(H.Date,2);break;case"c":case"cc":e=J(H.Day,1);break;case"ccc":e=Q(G.Days,I.Abbreviated,k.Standalone);break;case"cccc":e=Q(G.Days,I.Wide,k.Standalone);break;case"ccccc":e=Q(G.Days,I.Narrow,k.Standalone);break;case"cccccc":e=Q(G.Days,I.Short,k.Standalone);break;case"E":case"EE":case"EEE":e=Q(G.Days,I.Abbreviated);break;case"EEEE":e=Q(G.Days,I.Wide);break;case"EEEEE":e=Q(G.Days,I.Narrow);break;case"EEEEEE":e=Q(G.Days,I.Short);break;case"a":case"aa":case"aaa":e=Q(G.DayPeriods,I.Abbreviated);break;case"aaaa":e=Q(G.DayPeriods,I.Wide);break;case"aaaaa":e=Q(G.DayPeriods,I.Narrow);break;case"b":case"bb":case"bbb":e=Q(G.DayPeriods,I.Abbreviated,k.Standalone,!0);break;case"bbbb":e=Q(G.DayPeriods,I.Wide,k.Standalone,!0);break;case"bbbbb":e=Q(G.DayPeriods,I.Narrow,k.Standalone,!0);break;case"B":case"BB":case"BBB":e=Q(G.DayPeriods,I.Abbreviated,k.Format,!0);break;case"BBBB":e=Q(G.DayPeriods,I.Wide,k.Format,!0);break;case"BBBBB":e=Q(G.DayPeriods,I.Narrow,k.Format,!0);break;case"h":e=J(H.Hours,1,-12);break;case"hh":e=J(H.Hours,2,-12);break;case"H":e=J(H.Hours,1);break;case"HH":e=J(H.Hours,2);break;case"m":e=J(H.Minutes,1);break;case"mm":e=J(H.Minutes,2);break;case"s":e=J(H.Seconds,1);break;case"ss":e=J(H.Seconds,2);break;case"S":e=J(H.FractionalSeconds,1);break;case"SS":e=J(H.FractionalSeconds,2);break;case"SSS":e=J(H.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=W(U.Short);break;case"ZZZZZ":e=W(U.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=W(U.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=W(U.Long);break;default:return null}return it[t]=e,e}(t);c+=e?e(s,i,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Y(t,e,i){const n=new Date(0);return n.setFullYear(t,e,i),n.setHours(0,0,0),n}function K(t,e){const i=function(t){return(0,n.cg1)(t)[n.wAp.LocaleId]}(t);if(q[i]=q[i]||{},q[i][e])return q[i][e];let s="";switch(e){case"shortDate":s=O(t,x.Short);break;case"mediumDate":s=O(t,x.Medium);break;case"longDate":s=O(t,x.Long);break;case"fullDate":s=O(t,x.Full);break;case"shortTime":s=P(t,x.Short);break;case"mediumTime":s=P(t,x.Medium);break;case"longTime":s=P(t,x.Long);break;case"fullTime":s=P(t,x.Full);break;case"short":const e=K(t,"shortTime"),i=K(t,"shortDate");s=V(D(t,x.Short),[e,i]);break;case"medium":const n=K(t,"mediumTime"),o=K(t,"mediumDate");s=V(D(t,x.Medium),[n,o]);break;case"long":const r=K(t,"longTime"),a=K(t,"longDate");s=V(D(t,x.Long),[r,a]);break;case"full":const c=K(t,"fullTime"),l=K(t,"fullDate");s=V(D(t,x.Full),[c,l])}return s&&(q[i][e]=s),s}function V(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,i){return null!=e&&i in e?e[i]:t})),t}function $(t,e,i="-",n,s){let o="";(t<0||s&&t<=0)&&(s?t=1-t:(t=-t,o=i));let r=String(t);for(;r.length0||a>-i)&&(a+=i),t===H.Hours)0===a&&-12===i&&(a=12);else if(t===H.FractionalSeconds)return c=e,$(a,3).substr(0,c);var c;const l=M(r,R.MinusSign);return $(a,e,l,n,s)}}function Q(t,e,i=k.Format,s=!1){return function(o,r){return function(t,e,i,s,o,r){switch(i){case G.Months:return function(t,e,i){const s=(0,n.cg1)(t),o=z([s[n.wAp.MonthsFormat],s[n.wAp.MonthsStandalone]],e);return z(o,i)}(e,o,s)[t.getMonth()];case G.Days:return function(t,e,i){const s=(0,n.cg1)(t),o=z([s[n.wAp.DaysFormat],s[n.wAp.DaysStandalone]],e);return z(o,i)}(e,o,s)[t.getDay()];case G.DayPeriods:const a=t.getHours(),c=t.getMinutes();if(r){const t=function(t){const e=(0,n.cg1)(t);return N(e),(e[n.wAp.ExtraData][2]||[]).map(t=>"string"==typeof t?Z(t):[Z(t[0]),Z(t[1])])}(e),i=function(t,e,i){const s=(0,n.cg1)(t);N(s);const o=z([s[n.wAp.ExtraData][0],s[n.wAp.ExtraData][1]],e)||[];return z(o,i)||[]}(e,o,s),r=t.findIndex(t=>{if(Array.isArray(t)){const[e,i]=t,n=a>=e.hours&&c>=e.minutes,s=a0?Math.floor(s/60):Math.ceil(s/60);switch(t){case U.Short:return(s>=0?"+":"")+$(r,2,o)+$(Math.abs(s%60),2,o);case U.ShortGMT:return"GMT"+(s>=0?"+":"")+$(r,1,o);case U.Long:return"GMT"+(s>=0?"+":"")+$(r,2,o)+":"+$(Math.abs(s%60),2,o);case U.Extended:return 0===n?"Z":(s>=0?"+":"")+$(r,2,o)+":"+$(Math.abs(s%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}function X(t){return Y(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function tt(t,e=!1){return function(i,n){let s;if(e){const t=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,e=i.getDate();s=1+Math.floor((e+t)/7)}else{const t=X(i),e=function(t){const e=Y(t,0,1).getDay();return Y(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),n=t.getTime()-e.getTime();s=1+Math.round(n/6048e5)}return $(s,t,M(n,R.MinusSign))}}function et(t,e=!1){return function(i,n){return $(X(i).getFullYear(),t,M(n,R.MinusSign),e)}}const it={};function nt(t,e){t=t.replace(/:/g,"");const i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function st(t){return t instanceof Date&&!isNaN(t.valueOf())}class ot{}let rt=(()=>{class t extends ot{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(L(e||this.locale)(t)){case S.Zero:return"zero";case S.One:return"one";case S.Two:return"two";case S.Few:return"few";case S.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.soG))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();function at(t,e){e=encodeURIComponent(e);for(const i of t.split(";")){const t=i.indexOf("="),[n,s]=-1==t?[i,""]:[i.slice(0,t),i.slice(t+1)];if(n.trim()===e)return decodeURIComponent(s)}return null}let ct=(()=>{class t{constructor(t,e,i,n){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=i,this._renderer=n,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&((0,n.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,n.AaK)(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.ZZ4),n.Y36(n.aQg),n.Y36(n.SBq),n.Y36(n.Qsj))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class lt{constructor(t,e,i,n){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=n}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 ut=(()=>{class t{constructor(t,e,i){this._viewContainer=t,this._template=e,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const i=this._ngForOf;if(!this._differ&&i)try{this._differ=this._differs.find(i).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${i}' of type '${t=i,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,i,n)=>{if(null==t.previousIndex){const i=this._viewContainer.createEmbeddedView(this._template,new lt(null,this._ngForOf,-1,-1),null===n?void 0:n),s=new ht(t,i);e.push(s)}else if(null==n)this._viewContainer.remove(null===i?void 0:i);else if(null!==i){const s=this._viewContainer.get(i);this._viewContainer.move(s,n);const o=new ht(t,s);e.push(o)}});for(let i=0;i{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(n.ZZ4))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class ht{constructor(t,e){this.record=t,this.view=e}}let dt=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new pt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){gt("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){gt("ngIfElse",t),this._elseTemplateRef=t,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(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class pt{constructor(){this.$implicit=null,this.ngIf=null}}function gt(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${(0,n.AaK)(e)}'.`)}class ft{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let mt=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,i){this.ngSwitch=i,i._addCase(),this._view=new ft(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(mt,9))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),_t=(()=>{class t{constructor(t,e,i){i._addDefault(new ft(t,e))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(mt,9))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),wt=(()=>{class t{constructor(t,e,i){this._ngEl=t,this._differs=e,this._renderer=i,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[i,n]=t.split(".");null!=(e=null!=e&&n?`${e}${n}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,i,e):this._renderer.removeStyle(this._ngEl.nativeElement,i)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.aQg),n.Y36(n.Qsj))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),At=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[n.TTD]}),t})();function yt(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${(0,n.AaK)(t)}'`)}class vt{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Tt{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Ct=new Tt,Et=new vt;let St=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if((0,n.QGY)(e))return Ct;if((0,n.F4k)(e))return Et;throw yt(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO,16))},t.\u0275pipe=n.Yjl({name:"async",type:t,pure:!1}),t})(),kt=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw yt(t,e);return e.toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"lowercase",type:t,pure:!0}),t})(),It=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw yt(t,e);return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"uppercase",type:t,pure:!0}),t})(),xt=(()=>{class t{constructor(t){this.locale=t}transform(e,i="mediumDate",n,s){if(null==e||""===e||e!=e)return null;try{return j(e,i,s||this.locale,n)}catch(o){throw yt(t,o.message)}}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.soG,16))},t.\u0275pipe=n.Yjl({name:"date",type:t,pure:!0}),t})(),Rt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:ot,useClass:rt}]}),t})();const Ot="browser";function Pt(t){return t===Ot}function Dt(t){return"server"===t}let Mt=(()=>{class t{}return t.\u0275prov=(0,n.Yz7)({token:t,providedIn:"root",factory:()=>new Lt((0,n.LFG)(c),window)}),t})();class Lt{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const i=t.getElementById(e)||t.getElementsByName(e)[0];if(i)return i;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let n=i.currentNode;for(;n;){const t=n.shadowRoot;if(t){const i=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(i)return i}n=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,n=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(i-s[0],n-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Nt(this.window.history)||Nt(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function Nt(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class zt{}},29063:function(t,e,i){"use strict";i.d(e,{TP:function(){return R},eN:function(){return I},JF:function(){return F},WM:function(){return d},LE:function(){return m},Zn:function(){return E}});var n=i(61511),s=i(31572),o=i(40878),r=i(48318),a=i(436),c=i(43835),l=i(79996);class u{}class h{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const i=t.slice(0,e),n=i.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(s):this.headers.set(n,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const n=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(n,i),this.maybeSetNormalizedName(e,n))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const n=("a"===t.op?this.headers.get(e):void 0)||[];n.push(...i),this.headers.set(e,n);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class p{encodeKey(t){return g(t)}encodeValue(t){return g(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function g(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function f(t){return`${t}`}class m{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new p,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const n=t.indexOf("="),[s,o]=-1==n?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,n)),e.decodeValue(t.slice(n+1))],r=i.get(s)||[];r.push(o),i.set(s,r)}),i}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const n=t[i];Array.isArray(n)?n.forEach(t=>{e.push({param:i,value:t,op:"a"})}):e.push({param:i,value:n,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new m({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(f(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const i=e.indexOf(f(t.value));-1!==i&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class b{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function _(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function w(t){return"undefined"!=typeof Blob&&t instanceof Blob}function A(t){return"undefined"!=typeof FormData&&t instanceof FormData}class y{constructor(t,e,i,n){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||n?(this.body=void 0!==i?i:null,s=n):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new d),this.context||(this.context=new b),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const i=e.indexOf("?");this.urlWithParams=e+(-1===i?"?":ie.set(i,t.setHeaders[i]),c)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,i)=>e.set(i,t.setParams[i]),l)),new y(i,n,o,{params:l,headers:c,context:u,reportProgress:a,responseType:s,withCredentials:r})}}var v=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class T{constructor(t,e=200,i="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class C extends T{constructor(t={}){super(t),this.type=v.ResponseHeader}clone(t={}){return new C({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class E extends T{constructor(t={}){super(t),this.type=v.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new E({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class S extends T{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function k(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let I=(()=>{class t{constructor(t){this.handler=t}request(t,e,i={}){let n;if(t instanceof y)n=t;else{let s,o;s=i.headers instanceof d?i.headers:new d(i.headers),i.params&&(o=i.params instanceof m?i.params:new m({fromObject:i.params})),n=new y(t,e,void 0!==i.body?i.body:null,{headers:s,context:i.context,params:o,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=(0,o.of)(n).pipe((0,a.b)(t=>this.handler.handle(t)));if(t instanceof y||"events"===i.observe)return s;const r=s.pipe((0,c.h)(t=>t instanceof E));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return r.pipe((0,l.U)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe((0,l.U)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe((0,l.U)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe((0,l.U)(t=>t.body))}case"response":return r;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new m).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,i={}){return this.request("PATCH",t,k(i,e))}post(t,e,i={}){return this.request("POST",t,k(i,e))}put(t,e,i={}){return this.request("PUT",t,k(i,e))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(u))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class x{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const R=new s.OlP("HTTP_INTERCEPTORS");let O=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const P=/^\)\]\}',?\n/;let D=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new r.y(e=>{const i=this.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((t,e)=>i.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&i.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();i.responseType="json"!==e?e:"text"}const n=t.serializeBody();let s=null;const o=()=>{if(null!==s)return s;const e=1223===i.status?204:i.status,n=i.statusText||"OK",o=new d(i.getAllResponseHeaders()),r=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new C({headers:o,status:e,statusText:n,url:r}),s},r=()=>{let{headers:n,status:s,statusText:r,url:a}=o(),c=null;204!==s&&(c=void 0===i.response?i.responseText:i.response),0===s&&(s=c?200:0);let l=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof c){const t=c;c=c.replace(P,"");try{c=""!==c?JSON.parse(c):null}catch(u){c=t,l&&(l=!1,c={error:u,text:c})}}l?(e.next(new E({body:c,headers:n,status:s,statusText:r,url:a||void 0})),e.complete()):e.error(new S({error:c,headers:n,status:s,statusText:r,url:a||void 0}))},a=t=>{const{url:n}=o(),s=new S({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:n||void 0});e.error(s)};let c=!1;const l=n=>{c||(e.next(o()),c=!0);let s={type:v.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(s.total=n.total),"text"===t.responseType&&i.responseText&&(s.partialText=i.responseText),e.next(s)},u=t=>{let i={type:v.UploadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),e.next(i)};return i.addEventListener("load",r),i.addEventListener("error",a),i.addEventListener("timeout",a),i.addEventListener("abort",a),t.reportProgress&&(i.addEventListener("progress",l),null!==n&&i.upload&&i.upload.addEventListener("progress",u)),i.send(n),e.next({type:v.Sent}),()=>{i.removeEventListener("error",a),i.removeEventListener("abort",a),i.removeEventListener("load",r),i.removeEventListener("timeout",a),t.reportProgress&&(i.removeEventListener("progress",l),null!==n&&i.upload&&i.upload.removeEventListener("progress",u)),i.readyState!==i.DONE&&i.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.JF))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const M=new s.OlP("XSRF_COOKIE_NAME"),L=new s.OlP("XSRF_HEADER_NAME");class N{}let z=(()=>{class t{constructor(t,e,i){this.doc=t,this.platform=e,this.cookieName=i,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,n.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0),s.LFG(s.Lbi),s.LFG(M))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Z=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);const n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(N),s.LFG(L))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(R,[]);this.chain=t.reduceRight((t,e)=>new x(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(h),s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),q=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Z,useClass:O}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:M,useValue:e.cookieName}:[],e.headerName?{provide:L,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Z,{provide:R,useExisting:Z,multi:!0},{provide:N,useClass:z},{provide:M,useValue:"XSRF-TOKEN"},{provide:L,useValue:"X-XSRF-TOKEN"}]}),t})(),F=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[I,{provide:u,useClass:B},D,{provide:h,useExisting:D}],imports:[[q.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},31572:function(t,e,i){"use strict";i.d(e,{deG:function(){return ni},tb:function(){return ll},AFp:function(){return sl},ip1:function(){return il},CZH:function(){return nl},hGG:function(){return iu},z2F:function(){return Yl},sBO:function(){return Va},Sil:function(){return Al},_Vd:function(){return _a},EJc:function(){return dl},SBq:function(){return va},qLn:function(){return Tn},vpe:function(){return Nc},gxx:function(){return go},tBr:function(){return Ti},XFs:function(){return x},OlP:function(){return ii},zs3:function(){return xo},ZZ4:function(){return Fa},aQg:function(){return Ha},soG:function(){return hl},YKP:function(){return sc},v3s:function(){return Vl},h0i:function(){return nc},PXZ:function(){return Fl},R0b:function(){return Tl},FiY:function(){return Ci},Lbi:function(){return cl},g9A:function(){return al},n_E:function(){return Zc},Qsj:function(){return Ea},FYo:function(){return Ca},JOm:function(){return xn},Tiy:function(){return ka},q3G:function(){return gn},tp0:function(){return Ei},EAV:function(){return Ql},Rgc:function(){return Xa},dDg:function(){return Rl},DyG:function(){return si},GfV:function(){return Ia},s_b:function(){return rc},ifc:function(){return L},eFA:function(){return Ul},G48:function(){return Bl},Gpc:function(){return p},f3M:function(){return Ai},X6Q:function(){return Zl},_c5:function(){return tu},VLi:function(){return Dl},c2e:function(){return ul},zSh:function(){return mo},wAp:function(){return oa},vHH:function(){return m},EiD:function(){return dn},mCW:function(){return Vi},qzn:function(){return zi},JVY:function(){return Bi},pB0:function(){return Hi},eBb:function(){return Fi},L6k:function(){return qi},LAX:function(){return Ui},cg1:function(){return ia},Tjo:function(){return Xl},kL8:function(){return na},yhl:function(){return Zi},dqk:function(){return q},sIi:function(){return Bo},CqO:function(){return ur},QGY:function(){return cr},F4k:function(){return lr},RDi:function(){return Tt},AaK:function(){return u},z3N:function(){return Ni},qOj:function(){return Oo},TTD:function(){return bt},_Bn:function(){return fa},xp6:function(){return fs},uIk:function(){return Yo},Q2q:function(){return $o},Tol:function(){return Or},Gre:function(){return Jr},ekj:function(){return Rr},Suo:function(){return Jc},Xpm:function(){return Q},lG2:function(){return ot},Yz7:function(){return A},cJS:function(){return y},oAB:function(){return it},Yjl:function(){return rt},Y36:function(){return Wo},_UZ:function(){return nr},GkF:function(){return rr},BQk:function(){return or},ynx:function(){return sr},qZA:function(){return ir},TgZ:function(){return er},EpF:function(){return ar},n5z:function(){return We},Ikx:function(){return Qr},LFG:function(){return wi},$8M:function(){return ti},NdJ:function(){return hr},CRH:function(){return Qc},kcU:function(){return be},O4$:function(){return me},oxw:function(){return mr},ALo:function(){return xc},lcZ:function(){return Rc},xi3:function(){return Oc},Dn7:function(){return Pc},Hsn:function(){return wr},F$t:function(){return _r},Q6J:function(){return Xo},s9C:function(){return Ar},MGl:function(){return yr},hYB:function(){return vr},DdM:function(){return yc},VKq:function(){return vc},WLB:function(){return Tc},kEZ:function(){return Cc},iGM:function(){return Vc},MAs:function(){return Qo},pYS:function(){return kn},evT:function(){return Sn},Jf7:function(){return En},CHM:function(){return Ut},oJD:function(){return fn},LSH:function(){return mn},B6R:function(){return W},kYT:function(){return nt},Udp:function(){return xr},WFA:function(){return dr},d8E:function(){return Wr},YNc:function(){return Jo},W1O:function(){return el},_uU:function(){return Hr},Oqu:function(){return Gr},hij:function(){return jr},AsE:function(){return Yr},lnq:function(){return Kr},HOy:function(){return Vr},xDo:function(){return $r},Gf:function(){return $c}});var n=i(55959),s=i(87570),o=i(48318),r=i(31906),a=i(1055);function c(t){for(let e in t)if(t[e]===c)return e;throw Error("Could not find renamed property on target object.")}function l(t,e){for(const i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function u(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(u).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const i=e.indexOf("\n");return-1===i?e:e.substring(0,i)}function h(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const d=c({__forward_ref__:c});function p(t){return t.__forward_ref__=p,t.toString=function(){return u(this())},t}function g(t){return f(t)?t():t}function f(t){return"function"==typeof t&&t.hasOwnProperty(d)&&t.__forward_ref__===p}class m extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function b(t){return"string"==typeof t?t:null==t?"":String(t)}function _(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():b(t)}function w(t,e){const i=e?` in ${e}`:"";throw new m("201",`No provider for ${_(t)} found${i}`)}function A(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function y(t){return{providers:t.providers||[],imports:t.imports||[]}}function v(t){return T(t,E)||T(t,k)}function T(t,e){return t.hasOwnProperty(e)?t[e]:null}function C(t){return t&&(t.hasOwnProperty(S)||t.hasOwnProperty(I))?t[S]:null}const E=c({"\u0275prov":c}),S=c({"\u0275inj":c}),k=c({ngInjectableDef:c}),I=c({ngInjectorDef:c});var x=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let R;function O(t){const e=R;return R=t,e}function P(t,e,i){const n=v(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:i&x.Optional?null:void 0!==e?e:void w(u(t),"Injector")}function D(t){return{toString:t}.toString()}var M=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),L=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const N="undefined"!=typeof globalThis&&globalThis,z="undefined"!=typeof window&&window,Z="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,B="undefined"!=typeof global&&global,q=N||B||z||Z,F={},U=[],H=c({"\u0275cmp":c}),G=c({"\u0275dir":c}),j=c({"\u0275pipe":c}),Y=c({"\u0275mod":c}),K=c({"\u0275loc":c}),V=c({"\u0275fac":c}),$=c({__NG_ELEMENT_ID__:c});let J=0;function Q(t){return D(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===M.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||U,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||L.Emulated,id:"c",styles:t.styles||U,_:null,setInput:null,schemas:t.schemas||null,tView:null},n=t.directives,s=t.features,o=t.pipes;return i.id+=J++,i.inputs=st(t.inputs,e),i.outputs=st(t.outputs),s&&s.forEach(t=>t(i)),i.directiveDefs=n?()=>("function"==typeof n?n():n).map(X):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(tt):null,i})}function W(t,e,i){const n=t.\u0275cmp;n.directiveDefs=()=>e.map(X),n.pipeDefs=()=>i.map(tt)}function X(t){return at(t)||function(t){return t[G]||null}(t)}function tt(t){return function(t){return t[j]||null}(t)}const et={};function it(t){return D(()=>{const e={type:t.type,bootstrap:t.bootstrap||U,declarations:t.declarations||U,imports:t.imports||U,exports:t.exports||U,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(et[t.id]=t.type),e})}function nt(t,e){return D(()=>{const i=ct(t,!0);i.declarations=e.declarations||U,i.imports=e.imports||U,i.exports=e.exports||U})}function st(t,e){if(null==t)return F;const i={};for(const n in t)if(t.hasOwnProperty(n)){let s=t[n],o=s;Array.isArray(s)&&(o=s[1],s=s[0]),i[s]=n,e&&(e[s]=o)}return i}const ot=Q;function rt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function at(t){return t[H]||null}function ct(t,e){const i=t[Y]||null;if(!i&&!0===e)throw new Error(`Type ${u(t)} does not have '\u0275mod' property.`);return i}function lt(t){return Array.isArray(t)&&"object"==typeof t[1]}function ut(t){return Array.isArray(t)&&!0===t[1]}function ht(t){return 0!=(8&t.flags)}function dt(t){return 2==(2&t.flags)}function pt(t){return 1==(1&t.flags)}function gt(t){return null!==t.template}function ft(t,e){return t.hasOwnProperty(V)?t[V]:null}class mt{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function bt(){return _t}function _t(t){return t.type.prototype.ngOnChanges&&(t.setInput=At),wt}function wt(){const t=yt(this),e=null==t?void 0:t.current;if(e){const i=t.previous;if(i===F)t.previous=e;else for(let t in e)i[t]=e[t];t.current=null,this.ngOnChanges(e)}}function At(t,e,i,n){const s=yt(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:F,current:null}),o=s.current||(s.current={}),r=s.previous,a=this.declaredInputs[i],c=r[a];o[a]=new mt(c&&c.currentValue,e,r===F),t[n]=e}function yt(t){return t.__ngSimpleChanges__||null}let vt;function Tt(t){vt=t}function Ct(){return void 0!==vt?vt:"undefined"!=typeof document?document:void 0}function Et(t){return!!t.listen}bt.ngInherit=!0;const St={createRenderer:(t,e)=>Ct()};function kt(t){for(;Array.isArray(t);)t=t[0];return t}function It(t,e){return kt(e[t])}function xt(t,e){return kt(e[t.index])}function Rt(t,e){return t.data[e]}function Ot(t,e){return t[e]}function Pt(t,e){const i=e[t];return lt(i)?i:i[0]}function Dt(t){return 4==(4&t[2])}function Mt(t){return 128==(128&t[2])}function Lt(t,e){return null==e?null:t[e]}function Nt(t){t[18]=0}function zt(t,e){t[5]+=e;let i=t,n=t[3];for(;null!==n&&(1===e&&1===i[5]||-1===e&&0===i[5]);)n[5]+=e,i=n,n=n[3]}const Zt={lFrame:le(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Bt(){return Zt.bindingsEnabled}function qt(){return Zt.lFrame.lView}function Ft(){return Zt.lFrame.tView}function Ut(t){return Zt.lFrame.contextLView=t,t[8]}function Ht(){let t=Gt();for(;null!==t&&64===t.type;)t=t.parent;return t}function Gt(){return Zt.lFrame.currentTNode}function jt(t,e){const i=Zt.lFrame;i.currentTNode=t,i.isParent=e}function Yt(){return Zt.lFrame.isParent}function Kt(){Zt.lFrame.isParent=!1}function Vt(){return Zt.isInCheckNoChangesMode}function $t(t){Zt.isInCheckNoChangesMode=t}function Jt(){const t=Zt.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Qt(){return Zt.lFrame.bindingIndex}function Wt(){return Zt.lFrame.bindingIndex++}function Xt(t){const e=Zt.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function te(t,e){const i=Zt.lFrame;i.bindingIndex=i.bindingRootIndex=t,ee(e)}function ee(t){Zt.lFrame.currentDirectiveIndex=t}function ie(t){const e=Zt.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function ne(){return Zt.lFrame.currentQueryIndex}function se(t){Zt.lFrame.currentQueryIndex=t}function oe(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function re(t,e,i){if(i&x.SkipSelf){let n=e,s=t;for(;n=n.parent,!(null!==n||i&x.Host||(n=oe(s),null===n)||(s=s[15],10&n.type)););if(null===n)return!1;e=n,t=s}const n=Zt.lFrame=ce();return n.currentTNode=e,n.lView=t,!0}function ae(t){const e=ce(),i=t[1];Zt.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function ce(){const t=Zt.lFrame,e=null===t?null:t.child;return null===e?le(t):e}function le(t){const e={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:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function ue(){const t=Zt.lFrame;return Zt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const he=ue;function de(){const t=ue();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function pe(){return Zt.lFrame.selectedIndex}function ge(t){Zt.lFrame.selectedIndex=t}function fe(){const t=Zt.lFrame;return Rt(t.tView,t.selectedIndex)}function me(){Zt.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function be(){Zt.lFrame.currentNamespace=null}function _e(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[a]<0&&(t[18]+=65536),(r>11>16&&(3&t[2])===e){t[2]+=2048;try{o.call(r)}finally{}}}else try{o.call(r)}finally{}}class Ce{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Ee(t,e,i){const n=Et(t);let s=0;for(;se){r=o-1;break}}}for(;o>16,n=e;for(;i>0;)n=n[15],i--;return n}let De=!0;function Me(t){const e=De;return De=t,e}let Le=0;function Ne(t,e){const i=Ze(t,e);if(-1!==i)return i;const n=e[1];n.firstCreatePass&&(t.injectorIndex=e.length,ze(n.data,t),ze(e,null),ze(n.blueprint,null));const s=Be(t,e),o=t.injectorIndex;if(Re(s)){const t=Oe(s),i=Pe(s,e),n=i[1].data;for(let s=0;s<8;s++)e[o+s]=i[t+s]|n[t+s]}return e[o+8]=s,o}function ze(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Ze(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Be(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let i=0,n=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(n=2===e?t.declTNode:1===e?s[6]:null,null===n)return-1;if(i++,s=s[15],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return-1}function qe(t,e,i){!function(t,e,i){let n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty($)&&(n=i[$]),null==n&&(n=i[$]=Le++);const s=255&n;e.data[t+(s>>5)]|=1<=0?255&e:je:e}(i);if("function"==typeof o){if(!re(e,t,n))return n&x.Host?Fe(s,i,n):Ue(e,i,n,s);try{const t=o(n);if(null!=t||n&x.Optional)return t;w(i)}finally{he()}}else if("number"==typeof o){let s=null,r=Ze(t,e),a=-1,c=n&x.Host?e[16][6]:null;for((-1===r||n&x.SkipSelf)&&(a=-1===r?Be(t,e):e[r+8],-1!==a&&Je(n,!1)?(s=e[1],r=Oe(a),e=Pe(a,e)):r=-1);-1!==r;){const t=e[1];if($e(o,r,t.data)){const t=Ye(r,e,i,s,n,c);if(t!==Ge)return t}a=e[r+8],-1!==a&&Je(n,e[1].data[r+8]===c)&&$e(o,r,e)?(s=t,r=Oe(a),e=Pe(a,e)):r=-1}}}return Ue(e,i,n,s)}const Ge={};function je(){return new Qe(Ht(),qt())}function Ye(t,e,i,n,s,o){const r=e[1],a=r.data[t+8],c=Ke(a,r,i,null==n?dt(a)&&De:n!=r&&0!=(3&a.type),s&x.Host&&o===a);return null!==c?Ve(e,r,c,a):Ge}function Ke(t,e,i,n,s){const o=t.providerIndexes,r=e.data,a=1048575&o,c=t.directiveStart,l=o>>20,u=s?a+l:t.directiveEnd;for(let h=n?a:a+l;h=c&&t.type===i)return h}if(s){const t=r[c];if(t&>(t)&&t.type===i)return c}return null}function Ve(t,e,i,n){let s=t[i];const o=e.data;if(s instanceof Ce){const r=s;r.resolving&&function(t,e){throw new m("200",`Circular dependency in DI detected for ${t}`)}(_(o[i]));const a=Me(r.canSeeViewProviders);r.resolving=!0;const c=r.injectImpl?O(r.injectImpl):null;re(t,n,x.Default);try{s=t[i]=r.factory(void 0,o,t,n),e.firstCreatePass&&i>=n.directiveStart&&function(t,e,i){const{ngOnChanges:n,ngOnInit:s,ngDoCheck:o}=e.type.prototype;if(n){const n=_t(e);(i.preOrderHooks||(i.preOrderHooks=[])).push(t,n),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,n)}s&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-t,s),o&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,o),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,o))}(i,o[i],e)}finally{null!==c&&O(c),Me(a),r.resolving=!1,he()}}return s}function $e(t,e,i){return!!(i[e+(t>>5)]&1<{const e=t.prototype.constructor,i=e[V]||Xe(e),n=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==n;){const t=s[V]||Xe(s);if(t&&t!==i)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function Xe(t){return f(t)?()=>{const e=Xe(g(t));return e&&e()}:ft(t)}function ti(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const i=t.attrs;if(i){const t=i.length;let n=0;for(;n{const n=function(t){return function(...e){if(t){const i=t(...e);for(const t in i)this[t]=i[t]}}}(e);function s(...t){if(this instanceof s)return n.apply(this,t),this;const e=new s(...t);return i.annotation=e,i;function i(t,i,n){const s=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;s.length<=n;)s.push(null);return(s[n]=s[n]||[]).push(e),t}}return i&&(s.prototype=Object.create(i.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class ii{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=A({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const ni=new ii("AnalyzeForEntryComponents"),si=Function;function oi(t,e){void 0===e&&(e=t);for(let i=0;iArray.isArray(t)?ri(t,e):e(t))}function ai(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function ci(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function li(t,e){const i=[];for(let n=0;n=0?t[1|n]=i:(n=~n,function(t,e,i,n){let s=t.length;if(s==e)t.push(i,n);else if(1===s)t.push(n,t[0]),t[0]=i;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=i,t[e+1]=n}}(t,n,e,i)),n}function hi(t,e){const i=di(t,e);if(i>=0)return t[1|i]}function di(t,e){return function(t,e,i){let n=0,s=t.length>>1;for(;s!==n;){const i=n+(s-n>>1),o=t[i<<1];if(e===o)return i<<1;o>e?s=i:n=i+1}return~(s<<1)}(t,e)}const pi={},gi=/\n/gm,fi=c({provide:String,useValue:c});let mi;function bi(t){const e=mi;return mi=t,e}function _i(t,e=x.Default){if(void 0===mi)throw new Error("inject() must be called from an injection context");return null===mi?P(t,void 0,e):mi.get(t,e&x.Optional?null:void 0,e)}function wi(t,e=x.Default){return(R||_i)(g(t),e)}const Ai=wi;function yi(t){const e=[];for(let i=0;i({token:t})),-1),Ci=vi(ei("Optional"),8),Ei=vi(ei("SkipSelf"),4);let Si,ki;function Ii(t){var e;return(null===(e=function(){if(void 0===Si&&(Si=null,q.trustedTypes))try{Si=q.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Si}())||void 0===e?void 0:e.createHTML(t))||t}function xi(t){var e;return(null===(e=function(){if(void 0===ki&&(ki=null,q.trustedTypes))try{ki=q.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return ki}())||void 0===e?void 0:e.createHTML(t))||t}class Ri{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Oi extends Ri{getTypeName(){return"HTML"}}class Pi extends Ri{getTypeName(){return"Style"}}class Di extends Ri{getTypeName(){return"Script"}}class Mi extends Ri{getTypeName(){return"URL"}}class Li extends Ri{getTypeName(){return"ResourceURL"}}function Ni(t){return t instanceof Ri?t.changingThisBreaksApplicationSecurity:t}function zi(t,e){const i=Zi(t);if(null!=i&&i!==e){if("ResourceURL"===i&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${i} (see https://g.co/ng/security#xss)`)}return i===e}function Zi(t){return t instanceof Ri&&t.getTypeName()||null}function Bi(t){return new Oi(t)}function qi(t){return new Pi(t)}function Fi(t){return new Di(t)}function Ui(t){return new Mi(t)}function Hi(t){return new Li(t)}class Gi{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Ii(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class ji{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Ii(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Ii(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let n=e.length-1;0Vi(t.trim())).join(", ")),this.buf.push(" ",e,'="',un(r),'"')}var n;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();en.hasOwnProperty(e)&&!Qi.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(un(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const cn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ln=/([^\#-~ |!])/g;function un(t){return t.replace(/&/g,"&").replace(cn,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(ln,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let hn;function dn(t,e){let i=null;try{hn=hn||function(t){const e=new ji(t);return function(){try{return!!(new window.DOMParser).parseFromString(Ii(""),"text/html")}catch(t){return!1}}()?new Gi(e):e}(t);let n=e?String(e):"";i=hn.getInertBodyElement(n);let s=5,o=n;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,n=o,o=i.innerHTML,i=hn.getInertBodyElement(n)}while(n!==o);return Ii((new an).sanitizeChildren(pn(i)||i))}finally{if(i){const t=pn(i)||i;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function pn(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var gn=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function fn(t){const e=bn();return e?xi(e.sanitize(gn.HTML,t)||""):zi(t,"HTML")?xi(Ni(t)):dn(Ct(),b(t))}function mn(t){const e=bn();return e?e.sanitize(gn.URL,t)||"":zi(t,"URL")?Ni(t):Vi(b(t))}function bn(){const t=qt();return t&&t[12]}function _n(t,e){t.__ngContext__=e}function wn(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function An(t){return t.ngDebugContext}function yn(t){return t.ngOriginalError}function vn(t,...e){t.error(...e)}class Tn{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=this._findContext(t),n=function(t){return t.ngErrorLogger||vn}(t);n(this._console,"ERROR",t),e&&n(this._console,"ORIGINAL ERROR",e),i&&n(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?An(t)?An(t):this._findContext(yn(t)):null}_findOriginalError(t){let e=yn(t);for(;e&&yn(e);)e=yn(e);return e}}const Cn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(q))();function En(t){return t.ownerDocument.defaultView}function Sn(t){return t.ownerDocument}function kn(t){return t.ownerDocument.body}function In(t){return t instanceof Function?t():t}var xn=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function Rn(t,e){return(void 0)(t,e)}function On(t){const e=t[3];return ut(e)?e[3]:e}function Pn(t){return Mn(t[13])}function Dn(t){return Mn(t[4])}function Mn(t){for(;null!==t&&!ut(t);)t=t[4];return t}function Ln(t,e,i,n,s){if(null!=n){let o,r=!1;ut(n)?o=n:lt(n)&&(r=!0,n=n[0]);const a=kt(n);0===t&&null!==i?null==s?Hn(e,i,a):Un(e,i,a,s||null,!0):1===t&&null!==i?Un(e,i,a,s||null,!0):2===t?function(t,e,i){const n=jn(t,e);n&&function(t,e,i,n){Et(t)?t.removeChild(e,i,n):e.removeChild(i)}(t,n,e,i)}(e,a,r):3===t&&e.destroyNode(a),null!=o&&function(t,e,i,n,s){const o=i[7];o!==kt(i)&&Ln(e,t,n,o,s);for(let r=10;r0&&(t[i-1][4]=n[4]);const r=ci(t,10+e);Xn(n[1],s=n,s[11],2,null,null),s[0]=null,s[6]=null;const a=r[19];null!==a&&a.detachView(r[1]),n[3]=null,n[4]=null,n[2]&=-129}var s;return n}function Bn(t,e){if(!(256&e[2])){const i=e[11];Et(i)&&i.destroyNode&&Xn(t,e,i,3,null,null),function(t){let e=t[13];if(!e)return qn(t[1],t);for(;e;){let i=null;if(lt(e))i=e[13];else{const t=e[10];t&&(i=t)}if(!i){for(;e&&!e[4]&&e!==t;)lt(e)&&qn(e[1],e),e=e[3];null===e&&(e=t),lt(e)&&qn(e[1],e),i=e&&e[4]}e=i}}(e)}}function qn(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let i;if(null!=t&&null!=(i=t.destroyHooks))for(let n=0;n=0?n[s=c]():n[s=-c].unsubscribe(),o+=2}else{const t=n[s=i[o+1]];i[o].call(t)}if(null!==n){for(let t=s+1;to?"":s[u+1].toLowerCase();const e=8&n?t:null;if(e&&-1!==ns(e,l,0)||2&n&&l!==t){if(cs(n))return!1;r=!0}}}}else{if(!r&&!cs(n)&&!cs(c))return!1;if(r&&cs(c))continue;r=!1,n=c|1&n}}return cs(n)||r}function cs(t){return 0==(1&t)}function ls(t,e,i,n){if(null===e)return-1;let s=0;if(n||!i){let i=!1;for(;s-1)for(i++;i0?'="'+e+'"':"")+"]"}else 8&n?s+="."+r:4&n&&(s+=" "+r);else""===s||cs(r)||(e+=ds(o,s),s=""),n=r,o=o||!cs(n);i++}return""!==s&&(e+=ds(o,s)),e}const gs={};function fs(t){ms(Ft(),qt(),pe()+t,Vt())}function ms(t,e,i,n){if(!n)if(3==(3&e[2])){const n=t.preOrderCheckHooks;null!==n&&we(e,n,i)}else{const n=t.preOrderHooks;null!==n&&Ae(e,n,0,i)}ge(i)}function bs(t,e){return t<<17|e<<2}function _s(t){return t>>17&32767}function ws(t){return 2|t}function As(t){return(131068&t)>>2}function ys(t,e){return-131069&t|e<<2}function vs(t){return 1|t}function Ts(t,e){const i=t.contentQueries;if(null!==i)for(let n=0;n20&&ms(t,e,20,Vt()),i(n,s)}finally{ge(o)}}function Os(t,e,i){if(ht(e)){const n=e.directiveEnd;for(let s=e.directiveStart;s0;){const i=t[--e];if("number"==typeof i&&i<0)return i}return 0})(i)!=o&&i.push(o),i.push(n,s,r)}}function Fs(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Us(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Hs(t,e,i){if(i){if(e.exportAs)for(let n=0;n0&&Ws(i)}}function Ws(t){for(let i=Pn(t);null!==i;i=Dn(i))for(let t=10;t0&&Ws(e)}const e=t[1].components;if(null!==e)for(let i=0;i0&&Ws(n)}}function Xs(t,e){const i=Pt(e,t),n=i[1];!function(t,e){for(let i=e.length;iPromise.resolve(null))();function ro(t){return t[7]||(t[7]=[])}function ao(t){return t.cleanup||(t.cleanup=[])}function co(t,e,i){return(null===t||gt(t))&&(i=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(i[e.index])),i[11]}function lo(t,e){const i=t[9],n=i?i.get(Tn,null):null;n&&n.handleError(e)}function uo(t,e,i,n,s){for(let o=0;othis.processProvider(i,t,e)),ri([t],t=>this.processInjectorType(t,[],s)),this.records.set(go,Eo(void 0,this));const o=this.records.get(mo);this.scope=null!=o?o.value:null,this.source=n||("object"==typeof t?null:u(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=pi,i=x.Default){this.assertNotDestroyed();const n=bi(this);try{if(!(i&x.SkipSelf)){let e=this.records.get(t);if(void 0===e){const i=("function"==typeof(s=t)||"object"==typeof s&&s instanceof ii)&&v(t);e=i&&this.injectableDefInScope(i)?Eo(To(t),bo):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(i&x.Self?Ao():this.parent).get(t,e=i&x.Optional&&e===pi?null:e)}catch(o){if("NullInjectorError"===o.name){if((o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(u(t)),n)throw o;return function(t,e,i,n){const s=t.ngTempTokenPath;throw e.__source&&s.unshift(e.__source),t.message=function(t,e,i,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=u(e);if(Array.isArray(e))s=e.map(u).join(" -> ");else if("object"==typeof e){let t=[];for(let i in e)if(e.hasOwnProperty(i)){let n=e[i];t.push(i+":"+("string"==typeof n?JSON.stringify(n):u(n)))}s=`{${t.join(", ")}}`}return`${i}${n?"("+n+")":""}[${s}]: ${t.replace(gi,"\n ")}`}("\n"+t.message,s,i,n),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(o,t,"R3InjectorError",this.source)}throw o}finally{bi(n)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,i)=>t.push(u(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,i){if(!(t=g(t)))return!1;let n=C(t);const s=null==n&&t.ngModule||void 0,o=void 0===s?t:s,r=-1!==i.indexOf(o);if(void 0!==s&&(n=C(s)),null==n)return!1;if(null!=n.imports&&!r){let t;i.push(o);try{ri(n.imports,n=>{this.processInjectorType(n,e,i)&&(void 0===t&&(t=[]),t.push(n))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,i,n||U))}}this.injectorDefTypes.add(o);const a=ft(o)||(()=>new o);this.records.set(o,Eo(a,bo));const c=n.providers;if(null!=c&&!r){const e=t;ri(c,t=>this.processProvider(t,e,c))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,i){let n=ko(t=g(t))?t:g(t&&t.provide);const s=function(t,e,i){return So(t)?Eo(void 0,t.useValue):Eo(Co(t),bo)}(t);if(ko(t)||!0!==t.multi)this.records.get(n);else{let e=this.records.get(n);e||(e=Eo(void 0,bo,!0),e.factory=()=>yi(e.multi),this.records.set(n,e)),n=t,e.multi.push(t)}this.records.set(n,s)}hydrate(t,e){var i;return e.value===bo&&(e.value=_o,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(i=e.value)&&"object"==typeof i&&"function"==typeof i.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=g(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function To(t){const e=v(t),i=null!==e?e.factory:ft(t);if(null!==i)return i;if(t instanceof ii)throw new Error(`Token ${u(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const i=li(e,"?");throw new Error(`Can't resolve all parameters for ${u(t)}: (${i.join(", ")}).`)}const i=function(t){const e=t&&(t[E]||t[k]);if(e){const i=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${i}" 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 "${i}" class.`),e}return null}(t);return null!==i?()=>i.factory(t):()=>new t}(t);throw new Error("unreachable")}function Co(t,e,i){let n;if(ko(t)){const e=g(t);return ft(e)||To(e)}if(So(t))n=()=>g(t.useValue);else if((s=t)&&s.useFactory)n=()=>t.useFactory(...yi(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))n=()=>wi(g(t.useExisting));else{const e=g(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return ft(e)||To(e);n=()=>new e(...yi(t.deps))}var s;return n}function Eo(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function So(t){return null!==t&&"object"==typeof t&&fi in t}function ko(t){return"function"==typeof t}const Io=function(t,e,i){return function(t,e=null,i=null,n){const s=yo(t,e,i,n);return s._resolveInjectorDefTypes(),s}({name:i},e,t,i)};let xo=(()=>{class t{static create(t,e){return Array.isArray(t)?Io(t,e,""):Io(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=pi,t.NULL=new fo,t.\u0275prov=A({token:t,providedIn:"any",factory:()=>wi(go)}),t.__NG_ELEMENT_ID__=-1,t})();function Ro(t,e){_e(wn(t)[1],Ht())}function Oo(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,i=!0;const n=[t];for(;e;){let s;if(gt(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(i){n.push(s);const e=t;e.inputs=Po(t.inputs),e.declaredInputs=Po(t.declaredInputs),e.outputs=Po(t.outputs);const i=s.hostBindings;i&&Lo(t,i);const o=s.viewQuery,r=s.contentQueries;if(o&&Do(t,o),r&&Mo(t,r),l(t.inputs,s.inputs),l(t.declaredInputs,s.declaredInputs),l(t.outputs,s.outputs),gt(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let n=0;n=0;n--){const s=t[n];s.hostVars=e+=s.hostVars,s.hostAttrs=Ie(s.hostAttrs,i=Ie(i,s.hostAttrs))}}(n)}function Po(t){return t===F?{}:t===U?[]:t}function Do(t,e){const i=t.viewQuery;t.viewQuery=i?(t,n)=>{e(t,n),i(t,n)}:e}function Mo(t,e){const i=t.contentQueries;t.contentQueries=i?(t,n,s)=>{e(t,n,s),i(t,n,s)}:e}function Lo(t,e){const i=t.hostBindings;t.hostBindings=i?(t,n)=>{e(t,n),i(t,n)}:e}let No=null;function zo(){if(!No){const t=q.Symbol;if(t&&t.iterator)No=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(kt(t[n.index])):n.index;if(Et(i)){let r=null;if(!a&&c&&(r=function(t,e,i,n){const s=t.cleanup;if(null!=s)for(let o=0;oi?t[i]:null}"string"==typeof t&&(o+=2)}return null}(t,e,s,n.index)),null!==r)(r.__ngLastListenerFn__||r).__ngNextListenerFn__=o,r.__ngLastListenerFn__=o,h=!1;else{o=fr(n,e,0,o,!1);const t=i.listen(p,s,o);u.push(o,t),l&&l.push(s,f,g,g+1)}}else o=fr(n,e,0,o,!0),p.addEventListener(s,o,r),u.push(o),l&&l.push(s,f,g,r)}else o=fr(n,e,0,o,!1);const d=n.outputs;let p;if(h&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let i=0;i0;)e=e[15],t--;return e}(t,Zt.lFrame.contextLView))[8]}(t)}function br(t,e){let i=null;const n=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s=0}const Er={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Sr(t){return t.substring(Er.key,Er.keyEnd)}function kr(t,e){const i=Er.textEnd;return i===e?-1:(e=Er.keyEnd=function(t,e,i){for(;e32;)e++;return e}(t,Er.key=e,i),Ir(t,e,i))}function Ir(t,e,i){for(;e=0;i=kr(e,i))ui(t,Sr(e),!0)}function Dr(t,e,i,n){const s=qt(),o=Ft(),r=Xt(2);o.firstUpdatePass&&Nr(o,t,r,n),e!==gs&&Uo(s,r,e)&&Br(o,o.data[pe()],s,s[11],t,s[r+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=u(Ni(t)))),t}(e,i),n,r)}function Mr(t,e,i,n){const s=Ft(),o=Xt(2);s.firstUpdatePass&&Nr(s,null,o,n);const r=qt();if(i!==gs&&Uo(r,o,i)){const a=s.data[pe()];if(Ur(a,n)&&!Lr(s,o)){let t=n?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(i=h(t,i||"")),tr(s,a,r,i,n)}else!function(t,e,i,n,s,o,r,a){s===gs&&(s=U);let c=0,l=0,u=0=t.expandoStartIndex}function Nr(t,e,i,n){const s=t.data;if(null===s[i+1]){const o=s[pe()],r=Lr(t,i);Ur(o,n)&&null===e&&!r&&(e=!1),e=function(t,e,i,n){const s=ie(t);let o=n?e.residualClasses:e.residualStyles;if(null===s)0===(n?e.classBindings:e.styleBindings)&&(i=Zr(i=zr(null,t,e,i,n),e.attrs,n),o=null);else{const r=e.directiveStylingLast;if(-1===r||t[r]!==s)if(i=zr(s,t,e,i,n),null===o){let i=function(t,e,i){const n=i?e.classBindings:e.styleBindings;if(0!==As(n))return t[_s(n)]}(t,e,n);void 0!==i&&Array.isArray(i)&&(i=zr(null,t,e,i[1],n),i=Zr(i,e.attrs,n),function(t,e,i,n){t[_s(i?e.classBindings:e.styleBindings)]=n}(t,e,n,i))}else o=function(t,e,i){let n;const s=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0)&&(u=!0)}else l=i;if(s)if(0!==c){const e=_s(t[a+1]);t[n+1]=bs(e,a),0!==e&&(t[e+1]=ys(t[e+1],n)),t[a+1]=131071&t[a+1]|n<<17}else t[n+1]=bs(a,0),0!==a&&(t[a+1]=ys(t[a+1],n)),a=n;else t[n+1]=bs(c,0),0===a?a=n:t[c+1]=ys(t[c+1],n),c=n;u&&(t[n+1]=ws(t[n+1])),Tr(t,l,n,!0),Tr(t,l,n,!1),function(t,e,i,n,s){const o=s?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&di(o,e)>=0&&(i[n+1]=vs(i[n+1]))}(e,l,t,n,o),r=bs(a,c),o?e.classBindings=r:e.styleBindings=r}(s,o,e,i,r,n)}}function zr(t,e,i,n,s){let o=null;const r=i.directiveEnd;let a=i.directiveStylingLast;for(-1===a?a=i.directiveStart:a++;a0;){const e=t[s],o=Array.isArray(e),c=o?e[1]:e,l=null===c;let u=i[s+1];u===gs&&(u=l?U:void 0);let h=l?hi(u,n):c===n?u:void 0;if(o&&!Fr(h)&&(h=hi(e,n)),Fr(h)&&(a=h,r))return a;const d=t[s+1];s=r?_s(d):As(d)}if(null!==e){let t=o?e.residualClasses:e.residualStyles;null!=t&&(a=hi(t,n))}return a}function Fr(t){return void 0!==t}function Ur(t,e){return 0!=(t.flags&(e?16:32))}function Hr(t,e=""){const i=qt(),n=Ft(),s=t+20,o=n.firstCreatePass?Es(n,s,1,e,null):n.data[s],r=i[s]=function(t,e){return Et(t)?t.createText(e):t.createTextNode(e)}(i[11],e);Vn(n,i,r,o),jt(o,!1)}function Gr(t){return jr("",t,""),Gr}function jr(t,e,i){const n=qt(),s=Ko(n,t,e,i);return s!==gs&&ho(n,pe(),s),jr}function Yr(t,e,i,n,s){const o=qt(),r=Vo(o,t,e,i,n,s);return r!==gs&&ho(o,pe(),r),Yr}function Kr(t,e,i,n,s,o,r){const a=qt(),c=function(t,e,i,n,s,o,r,a){const c=Go(t,Qt(),i,s,r);return Xt(3),c?e+b(i)+n+b(s)+o+b(r)+a:gs}(a,t,e,i,n,s,o,r);return c!==gs&&ho(a,pe(),c),Kr}function Vr(t,e,i,n,s,o,r,a,c){const l=qt(),u=function(t,e,i,n,s,o,r,a,c,l){const u=jo(t,Qt(),i,s,r,c);return Xt(4),u?e+b(i)+n+b(s)+o+b(r)+a+b(c)+l:gs}(l,t,e,i,n,s,o,r,a,c);return u!==gs&&ho(l,pe(),u),Vr}function $r(t,e,i,n,s,o,r,a,c,l,u){const h=qt(),d=function(t,e,i,n,s,o,r,a,c,l,u,h){const d=Qt();let p=jo(t,d,i,s,r,c);return p=Uo(t,d+4,u)||p,Xt(5),p?e+b(i)+n+b(s)+o+b(r)+a+b(c)+l+b(u)+h:gs}(h,t,e,i,n,s,o,r,a,c,l,u);return d!==gs&&ho(h,pe(),d),$r}function Jr(t,e,i){Mr(ui,Pr,Ko(qt(),t,e,i),!0)}function Qr(t,e,i){const n=qt();return Uo(n,Wt(),e)&&Zs(Ft(),fe(),n,t,e,n[11],i,!0),Qr}function Wr(t,e,i){const n=qt();if(Uo(n,Wt(),e)){const s=Ft(),o=fe();Zs(s,o,n,t,e,co(ie(s.data),o,n),i,!0)}return Wr}const Xr=void 0;var ta=["en",[["a","p"],["AM","PM"],Xr],[["AM","PM"],Xr,Xr],[["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"]],Xr,[["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"]],Xr,[["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}",Xr,"{1} 'at' {0}",Xr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let ea={};function ia(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let i=sa(e);if(i)return i;const n=e.split("-")[0];if(i=sa(n),i)return i;if("en"===n)return ta;throw new Error(`Missing locale data for the locale "${t}".`)}function na(t){return ia(t)[oa.PluralCase]}function sa(t){return t in ea||(ea[t]=q.ng&&q.ng.common&&q.ng.common.locales&&q.ng.common.locales[t]),ea[t]}var oa=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});let ra="en-US";function aa(t){var e,i;i="Expected localeId to be defined",null==(e=t)&&function(t,e,i,n){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(i,e),"string"==typeof t&&(ra=t.toLowerCase().replace(/_/g,"-"))}function ca(t,e,i,n,s){if(t=g(t),Array.isArray(t))for(let o=0;o>20;if(ko(t)||!t.multi){const n=new Ce(c,s,Wo),p=ha(a,e,s?u:u+d,h);-1===p?(qe(Ne(l,r),o,a),la(o,t,e.length),e.push(a),l.directiveStart++,l.directiveEnd++,s&&(l.providerIndexes+=1048576),i.push(n),r.push(n)):(i[p]=n,r[p]=n)}else{const p=ha(a,e,u+d,h),g=ha(a,e,u,u+d),f=p>=0&&i[p],m=g>=0&&i[g];if(s&&!m||!s&&!f){qe(Ne(l,r),o,a);const u=function(t,e,i,n,s){const o=new Ce(t,i,Wo);return o.multi=[],o.index=e,o.componentProviders=0,ua(o,s,n&&!i),o}(s?pa:da,i.length,s,n,c);!s&&m&&(i[g].providerFactory=u),la(o,t,e.length,0),e.push(a),l.directiveStart++,l.directiveEnd++,s&&(l.providerIndexes+=1048576),i.push(u),r.push(u)}else la(o,t,p>-1?p:g,ua(i[s?g:p],c,!s&&n));!s&&n&&m&&i[g].componentProviders++}}}function la(t,e,i,n){const s=ko(e);if(s||e.useClass){const o=(e.useClass||e).prototype.ngOnDestroy;if(o){const r=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=r.indexOf(i);-1===t?r.push(i,[n,o]):r[t+1].push(n,o)}else r.push(i,o)}}}function ua(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function ha(t,e,i,n){for(let s=i;s{i.providersResolver=(i,n)=>function(t,e,i){const n=Ft();if(n.firstCreatePass){const s=gt(t);ca(i,n.data,n.blueprint,s,!0),ca(e,n.data,n.blueprint,s,!1)}}(i,n?n(t):t,e)}}class ma{}class ba{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${u(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let _a=(()=>{class t{}return t.NULL=new ba,t})();function wa(...t){}function Aa(t,e){return new va(xt(t,e))}const ya=function(){return Aa(Ht(),qt())};let va=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=ya,t})();function Ta(t){return t instanceof va?t.nativeElement:t}class Ca{}let Ea=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Sa(),t})();const Sa=function(){const t=qt(),e=Pt(Ht().index,t);return function(t){return t[11]}(lt(e)?e:t)};let ka=(()=>{class t{}return t.\u0275prov=A({token:t,providedIn:"root",factory:()=>null}),t})();class Ia{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const xa=new Ia("12.0.5");class Ra{constructor(){}supports(t){return Bo(t)}create(t){return new Pa(t)}}const Oa=(t,e)=>e;class Pa{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Oa}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,n=0,s=null;for(;e||i;){const o=!i||e&&e.currentIndex{n=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,n)?(o&&(s=this._verifyReinsertion(s,t,n,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,n,e),o=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,n){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,n)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,n))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,n)):t=this._addAfter(new Da(e,i),s,n),t}_verifyReinsertion(t,e,i,n){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,n):t.currentIndex!=n&&(t.currentIndex=n,this._addToMoves(t,n)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const n=t._prevRemoved,s=t._nextRemoved;return null===n?this._removalsHead=s:n._nextRemoved=s,null===s?this._removalsTail=n:s._prevRemoved=n,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const n=null===e?this._itHead:e._next;return t._next=n,t._prev=e,null===n?this._itTail=t:n._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new La),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new La),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Da{constructor(t,e){this.item=t,this.trackById=e,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 Ma{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class La{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new Ma,this.map.set(e,i)),i.add(t)}get(t,e){const i=this.map.get(t);return i?i.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Na(t,e,i){const n=t.previousIndex;if(null===n)return n;let s=0;return i&&n{if(e&&e.key===i)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const n=this._getOrCreateRecordForKey(i,t);e=this._insertBeforeOrAppend(e,n)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,e);const n=i._prev,s=i._next;return n&&(n._next=s),s&&(s._prev=n),i._next=null,i._prev=null,i}const i=new Ba(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class Ba{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function qa(){return new Fa([new Ra])}let Fa=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(null!=i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||qa()),deps:[[t,new Ei,new Ci]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${i=t,i.name||typeof i}'`);var i}}return t.\u0275prov=A({token:t,providedIn:"root",factory:qa}),t})();function Ua(){return new Ha([new za])}let Ha=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Ua()),deps:[[t,new Ei,new Ci]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=A({token:t,providedIn:"root",factory:Ua}),t})();function Ga(t,e,i,n,s=!1){for(;null!==i;){const o=e[i.index];if(null!==o&&n.push(kt(o)),ut(o))for(let t=10;t-1&&(Zn(t,i),ci(e,i))}this._attachedToViewContainer=!1}Bn(this._lView[1],this._lView)}onDestroy(t){Ns(this._lView[1],this._lView,null,t)}markForCheck(){eo(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){io(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,i){$t(!0);try{io(t,e,i)}finally{$t(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,Xn(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Ya extends ja{constructor(t){super(t),this._view=t}detectChanges(){no(this._view)}checkNoChanges(){!function(t){$t(!0);try{no(t)}finally{$t(!1)}}(this._view)}get context(){return null}}const Ka=function(t){return function(t,e,i){if(dt(t)&&!i){const i=Pt(t.index,e);return new ja(i,i)}return 47&t.type?new ja(e[16],e):null}(Ht(),qt(),16==(16&t))};let Va=(()=>{class t{}return t.__NG_ELEMENT_ID__=Ka,t})();const $a=[new za],Ja=new Fa([new Ra]),Qa=new Ha($a),Wa=function(){return ic(Ht(),qt())};let Xa=(()=>{class t{}return t.__NG_ELEMENT_ID__=Wa,t})();const tc=Xa,ec=class extends tc{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=Cs(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const n=this._declarationLView[19];return null!==n&&(i[19]=n.createEmbeddedView(e)),ks(e,i,t),new ja(i)}};function ic(t,e){return 4&t.type?new ec(e,t,Aa(t,e)):null}class nc{}class sc{}const oc=function(){return hc(Ht(),qt())};let rc=(()=>{class t{}return t.__NG_ELEMENT_ID__=oc,t})();const ac=rc,cc=class extends ac{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return Aa(this._hostTNode,this._hostLView)}get injector(){return new Qe(this._hostTNode,this._hostLView)}get parentInjector(){const t=Be(this._hostTNode,this._hostLView);if(Re(t)){const e=Pe(t,this._hostLView),i=Oe(t);return new Qe(e[1].data[i+8],e)}return new Qe(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=lc(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){const n=t.createEmbeddedView(e||{});return this.insert(n,i),n}createComponent(t,e,i,n,s){const o=i||this.parentInjector;if(!s&&null==t.ngModule&&o){const t=o.get(nc,null);t&&(s=t)}const r=t.create(o,n,void 0,s);return this.insert(r.hostView,e),r}insert(t,e){const i=t._lView,n=i[1];if(ut(i[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=i[3],n=new cc(e,e[6],e[3]);n.detach(n.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function(t,e,i,n){const s=10+n,o=i.length;n>0&&(i[s-1][4]=e),nCn});class mc extends ma{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(ps).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return gc(this.componentDef.inputs)}get outputs(){return gc(this.componentDef.outputs)}create(t,e,i,n){const s=(n=n||this.ngModule)?function(t,e){return{get:(i,n,s)=>{const o=t.get(i,dc,s);return o!==dc||n===dc?o:e.get(i,n,s)}}}(t,n.injector):t,o=s.get(Ca,St),r=s.get(ka,null),a=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",l=i?function(t,e,i){if(Et(t))return t.selectRootElement(e,i===L.ShadowDom);let n="string"==typeof e?t.querySelector(e):e;return n.textContent="",n}(a,i,this.componentDef.encapsulation):Nn(o.createRenderer(null,this.componentDef),c,function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:Cn,clean:oo,playerHandler:null,flags:0},d=Ls(0,null,null,1,0,null,null,null,null,null),p=Cs(null,d,h,u,null,null,o,a,r,s);let g,f;ae(p);try{const t=function(t,e,i,n,s,o){const r=i[1];i[20]=t;const a=Es(r,20,2,"#host",null),c=a.mergedAttrs=e.hostAttrs;null!==c&&(po(a,c,!0),null!==t&&(Ee(s,t,c),null!==a.classes&&is(s,t,a.classes),null!==a.styles&&es(s,t,a.styles)));const l=n.createRenderer(t,e),u=Cs(i,Ms(e),null,e.onPush?64:16,i[20],a,n,l,null,null);return r.firstCreatePass&&(qe(Ne(a,i),r,e.type),Us(r,a),Gs(a,i.length,1)),to(i,u),i[20]=u}(l,this.componentDef,p,o,a);if(l)if(i)Ee(a,l,["ng-version",xa.full]);else{const{attrs:t,classes:e}=function(t){const e=[],i=[];let n=1,s=2;for(;n0&&is(a,l,e.join(" "))}if(f=Rt(d,20),void 0!==e){const t=f.projection=[];for(let i=0;it(r,e)),e.contentQueries){const t=Ht();e.contentQueries(1,r,t.directiveStart)}const a=Ht();return!o.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(ge(a.index),qs(i[1],a,0,a.directiveStart,a.directiveEnd,e),Fs(e,r)),r}(t,this.componentDef,p,h,[Ro]),ks(d,p,null)}finally{de()}return new bc(this.componentType,g,Aa(f,p),p,f)}}class bc extends class{}{constructor(t,e,i,n,s){super(),this.location=i,this._rootLView=n,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new Ya(n),this.componentType=t}get injector(){return new Qe(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const _c=new Map;class wc extends nc{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new pc(this);const i=ct(t),n=t[K]||null;n&&aa(n),this._bootstrapComponents=In(i.bootstrap),this._r3Injector=yo(t,e,[{provide:nc,useValue:this},{provide:_a,useValue:this.componentFactoryResolver}],u(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=xo.THROW_IF_NOT_FOUND,i=x.Default){return t===xo||t===nc||t===go?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Ac extends sc{constructor(t){super(),this.moduleType=t,null!==ct(t)&&function(t){const e=new Set;!function t(i){const n=ct(i,!0),s=n.id;null!==s&&(function(t,e,i){if(e&&e!==i)throw new Error(`Duplicate module registered for ${t} - ${u(e)} vs ${u(e.name)}`)}(s,_c.get(s),i),_c.set(s,i));const o=In(n.imports);for(const r of o)e.has(r)||(e.add(r),t(r))}(t)}(t)}create(t){return new wc(this.moduleType,t)}}function yc(t,e,i){const n=Jt()+t,s=qt();return s[n]===gs?Fo(s,n,i?e.call(i):e()):function(t,e){return t[e]}(s,n)}function vc(t,e,i,n){return Sc(qt(),Jt(),t,e,i,n)}function Tc(t,e,i,n,s){return kc(qt(),Jt(),t,e,i,n,s)}function Cc(t,e,i,n,s,o){return Ic(qt(),Jt(),t,e,i,n,s,o)}function Ec(t,e){const i=t[e];return i===gs?void 0:i}function Sc(t,e,i,n,s,o){const r=e+i;return Uo(t,r,s)?Fo(t,r+1,o?n.call(o,s):n(s)):Ec(t,r+1)}function kc(t,e,i,n,s,o,r){const a=e+i;return Ho(t,a,s,o)?Fo(t,a+2,r?n.call(r,s,o):n(s,o)):Ec(t,a+2)}function Ic(t,e,i,n,s,o,r,a){const c=e+i;return Go(t,c,s,o,r)?Fo(t,c+3,a?n.call(a,s,o,r):n(s,o,r)):Ec(t,c+3)}function xc(t,e){const i=Ft();let n;const s=t+20;i.firstCreatePass?(n=function(t,e){if(e)for(let i=e.length-1;i>=0;i--){const n=e[i];if(t===n.name)return n}throw new m("302",`The pipe '${t}' could not be found!`)}(e,i.pipeRegistry),i.data[s]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(s,n.onDestroy)):n=i.data[s];const o=n.factory||(n.factory=ft(n.type)),r=O(Wo);try{const t=Me(!1),e=o();return Me(t),function(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}(i,qt(),s,e),e}finally{O(r)}}function Rc(t,e,i){const n=t+20,s=qt(),o=Ot(s,n);return Mc(s,Dc(s,n)?Sc(s,Jt(),e,o.transform,i,o):o.transform(i))}function Oc(t,e,i,n){const s=t+20,o=qt(),r=Ot(o,s);return Mc(o,Dc(o,s)?kc(o,Jt(),e,r.transform,i,n,r):r.transform(i,n))}function Pc(t,e,i,n,s){const o=t+20,r=qt(),a=Ot(r,o);return Mc(r,Dc(r,o)?Ic(r,Jt(),e,a.transform,i,n,s,a):a.transform(i,n,s))}function Dc(t,e){return t[1].data[e].pure}function Mc(t,e){return Zo.isWrapped(e)&&(e=Zo.unwrap(e),t[Qt()]=gs),e}function Lc(t){return e=>{setTimeout(t,void 0,e)}}const Nc=class extends n.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var n,o,r;let a=t,c=e||(()=>null),l=i;if(t&&"object"==typeof t){const e=t;a=null===(n=e.next)||void 0===n?void 0:n.bind(e),c=null===(o=e.error)||void 0===o?void 0:o.bind(e),l=null===(r=e.complete)||void 0===r?void 0:r.bind(e)}this.__isAsync&&(c=Lc(c),a&&(a=Lc(a)),l&&(l=Lc(l)));const u=super.subscribe({next:a,error:c,complete:l});return t instanceof s.w&&t.add(u),u}};function zc(){return this._results[zo()]()}class Zc{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=zo(),i=Zc.prototype;i[e]||(i[e]=zc)}get changes(){return this._changes||(this._changes=new Nc)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){this.dirty=!1;const i=oi(t);(this._changesDetected=!function(t,e,i){if(t.length!==e.length)return!1;for(let n=0;n0)n.push(r[t/2]);else{const s=o[t+1],r=e[-i];for(let t=10;t{class t{constructor(t){this.appInits=t,this.resolve=wa,this.reject=wa,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{e.subscribe({complete:t,error:i})});t.push(i)}}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(wi(il,8))},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t})();const sl=new ii("AppId"),ol={provide:sl,useFactory:function(){return`${rl()}${rl()}${rl()}`},deps:[]};function rl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const al=new ii("Platform Initializer"),cl=new ii("Platform ID"),ll=new ii("appBootstrapListener");let ul=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t})();const hl=new ii("LocaleId"),dl=new ii("DefaultCurrencyCode");class pl{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const gl=function(t){return new Ac(t)},fl=gl,ml=function(t){return Promise.resolve(gl(t))},bl=function(t){const e=gl(t),i=In(ct(t).declarations).reduce((t,e)=>{const i=at(e);return i&&t.push(new mc(i)),t},[]);return new pl(e,i)},_l=bl,wl=function(t){return Promise.resolve(bl(t))};let Al=(()=>{class t{constructor(){this.compileModuleSync=fl,this.compileModuleAsync=ml,this.compileModuleAndAllComponentsSync=_l,this.compileModuleAndAllComponentsAsync=wl}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t})();const yl=(()=>Promise.resolve(0))();function vl(t){"undefined"==typeof Zone?yl.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Tl{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Nc(!1),this.onMicrotaskEmpty=new Nc(!1),this.onStable=new Nc(!1),this.onError=new Nc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=!i&&e,this.shouldCoalesceRunChangeDetection=i,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=q.requestAnimationFrame,e=q.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(q,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Sl(t),t.isCheckStableRunning=!0,El(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Sl(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,s,o,r,a)=>{try{return kl(t),i.invokeTask(s,o,r,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&e(),Il(t)}},onInvoke:(i,n,s,o,r,a,c)=>{try{return kl(t),i.invoke(s,o,r,a,c)}finally{t.shouldCoalesceRunChangeDetection&&e(),Il(t)}},onHasTask:(e,i,n,s)=>{e.hasTask(n,s),i===n&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,Sl(t),El(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,n,s)=>(e.handleError(n,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Tl.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Tl.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,n){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+n,t,Cl,wa,wa);try{return s.runTask(o,e,i)}finally{s.cancelTask(o)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const Cl={};function El(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Sl(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function kl(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Il(t){t._nesting--,El(t)}class xl{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Nc,this.onMicrotaskEmpty=new Nc,this.onStable=new Nc,this.onError=new Nc}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,n){return t.apply(e,i)}}let Rl=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Tl.assertNotInAngularZone(),vl(()=>{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())vl(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,i){let n=-1;e&&e>0&&(n=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==n),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:n,updateCb:i})}whenStable(t,e,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,e,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,i){return[]}}return t.\u0275fac=function(e){return new(e||t)(wi(Tl))},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t})(),Ol=(()=>{class t{constructor(){this._applications=new Map,Ll.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Ll.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t})();class Pl{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}function Dl(t){Ll=t}let Ml,Ll=new Pl,Nl=!0,zl=!1;function Zl(){return zl=!0,Nl}function Bl(){if(zl)throw new Error("Cannot enable prod mode after platform setup.");Nl=!1}const ql=new ii("AllowMultipleToken");class Fl{constructor(t,e){this.name=t,this.token=e}}function Ul(t,e,i=[]){const n=`Platform: ${e}`,s=new ii(n);return(e=[])=>{let o=Hl();if(!o||o.injector.get(ql,!1))if(t)t(i.concat(e).concat({provide:s,useValue:!0}));else{const t=i.concat(e).concat({provide:s,useValue:!0},{provide:mo,useValue:"platform"});!function(t){if(Ml&&!Ml.destroyed&&!Ml.injector.get(ql,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ml=t.get(Gl);const e=t.get(al,null);e&&e.forEach(t=>t())}(xo.create({providers:t,name:n}))}return function(t){const e=Hl();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function Hl(){return Ml&&!Ml.destroyed?Ml:null}let Gl=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const i=function(t,e){let i;return i="noop"===t?new xl:("zone.js"===t?void 0:t)||new Tl({enableLongStackTrace:Zl(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),i}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),n=[{provide:Tl,useValue:i}];return i.run(()=>{const e=xo.create({providers:n,parent:this.injector,name:t.moduleType.name}),s=t.create(e),o=s.injector.get(Tn,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.runOutsideAngular(()=>{const t=i.onError.subscribe({next:t=>{o.handleError(t)}});s.onDestroy(()=>{Kl(this._modules,s),t.unsubscribe()})}),function(t,e,i){try{const n=i();return cr(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}(o,i,()=>{const t=s.injector.get(nl);return t.runInitializers(),t.donePromise.then(()=>(aa(s.injector.get(hl,"en-US")||"en-US"),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const i=jl({},e);return function(t,e,i){const n=new Ac(i);return Promise.resolve(n)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,i))}_moduleDoBootstrap(t){const e=t.injector.get(Yl);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${u(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(wi(xo))},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t})();function jl(t,e){return Array.isArray(e)?e.reduce(jl,t):Object.assign(Object.assign({},t),e)}let Yl=(()=>{class t{constructor(t,e,i,n,s){this._zone=t,this._injector=e,this._exceptionHandler=i,this._componentFactoryResolver=n,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const c=new o.y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),l=new o.y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Tl.assertNotInAngularZone(),vl(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const i=this._zone.onUnstable.subscribe(()=>{Tl.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),i.unsubscribe()}});this.isStable=(0,r.T)(c,l.pipe((0,a.B)()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let i;i=t instanceof ma?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(i.componentType);const n=i.isBoundToModule?void 0:this._injector.get(nc),s=i.create(xo.NULL,[],e||i.selector,n),o=s.location.nativeElement,r=s.injector.get(Rl,null),a=r&&s.injector.get(Ol);return r&&a&&a.registerApplication(o,r),s.onDestroy(()=>{this.detachView(s.hostView),Kl(this.components,s),a&&a.unregisterApplication(o)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Kl(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(ll,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(wi(Tl),wi(xo),wi(Tn),wi(_a),wi(nl))},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t})();function Kl(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}class Vl{}class $l{}const Jl={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Ql=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Jl}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,n]=t.split("#");return void 0===n&&(n="default"),i(27622)(e).then(t=>t[n]).then(t=>Wl(t,e,n)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,n]=t.split("#"),s="NgFactory";return void 0===n&&(n="default",s=""),i(27622)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[n+s]).then(t=>Wl(t,e,n))}}return t.\u0275fac=function(e){return new(e||t)(wi(Al),wi($l,8))},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t})();function Wl(t,e,i){if(!t)throw new Error(`Cannot find '${i}' in '${e}'`);return t}const Xl=function(t){return null},tu=Ul(null,"core",[{provide:cl,useValue:"unknown"},{provide:Gl,deps:[xo]},{provide:Ol,deps:[]},{provide:ul,deps:[]}]),eu=[{provide:Yl,useClass:Yl,deps:[Tl,xo,Tn,_a,nl]},{provide:fc,deps:[Tl],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:nl,useClass:nl,deps:[[new Ci,il]]},{provide:Al,useClass:Al,deps:[]},ol,{provide:Fa,useFactory:function(){return Ja},deps:[]},{provide:Ha,useFactory:function(){return Qa},deps:[]},{provide:hl,useFactory:function(t){return aa(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new Ti(hl),new Ci,new Ei]]},{provide:dl,useValue:"USD"}];let iu=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(wi(Yl))},t.\u0275mod=it({type:t}),t.\u0275inj=y({providers:eu}),t})()},16073:function(t,e,i){"use strict";i.d(e,{Zs:function(){return zt},gN:function(){return z},Fj:function(){return p},qu:function(){return Ht},NI:function(){return rt},oH:function(){return yt},u:function(){return Et},sg:function(){return Tt},u5:function(){return Ft},Cf:function(){return m},JU:function(){return u},a5:function(){return Z},JJ:function(){return q},JL:function(){return F},F:function(){return ht},On:function(){return gt},YN:function(){return xt},wV:function(){return bt},c5:function(){return Bt},UX:function(){return Ut},Q7:function(){return Nt},EJ:function(){return It},kI:function(){return w},_Y:function(){return ft},Kr:function(){return Dt}});var n=i(31572),s=i(61511),o=i(19764),r=i(3148),a=i(79996);let c=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Qsj),n.Y36(n.SBq))},t.\u0275dir=n.lG2({type:t}),t})(),l=(()=>{class t extends c{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,features:[n.qOj]}),t})();const u=new n.OlP("NgValueAccessor"),h={provide:u,useExisting:(0,n.Gpc)(()=>p),multi:!0},d=new n.OlP("CompositionEventMode");let p=(()=>{class t extends c{constructor(t,e,i){super(t,e),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=(0,s.q)()?(0,s.q)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(d,8))},t.\u0275dir=n.lG2({type:t,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(t,e){1&t&&n.NdJ("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[n._Bn([h]),n.qOj]}),t})();function g(t){return null==t||0===t.length}function f(t){return null!=t&&"number"==typeof t.length}const m=new n.OlP("NgValidators"),b=new n.OlP("NgAsyncValidators"),_=/^(?=.{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 w{static min(t){return function(t){return e=>{if(g(e.value)||g(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i{if(g(e.value)||g(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}(t)}static required(t){return A(t)}static requiredTrue(t){return y(t)}static email(t){return function(t){return g(t.value)||_.test(t.value)?null:{email:!0}}(t)}static minLength(t){return function(t){return e=>g(e.value)||!f(e.value)?null:e.value.lengthf(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}(t)}static pattern(t){return v(t)}static nullValidator(t){return null}static compose(t){return x(t)}static composeAsync(t){return O(t)}}function A(t){return g(t.value)?{required:!0}:null}function y(t){return!0===t.value?null:{required:!0}}function v(t){if(!t)return T;let e,i;return"string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),t=>{if(g(t.value))return null;const n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}}function T(t){return null}function C(t){return null!=t}function E(t){const e=(0,n.QGY)(t)?(0,o.D)(t):t;return(0,n.CqO)(e),e}function S(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function k(t,e){return e.map(e=>e(t))}function I(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function x(t){if(!t)return null;const e=t.filter(C);return 0==e.length?null:function(t){return S(k(t,e))}}function R(t){return null!=t?x(I(t)):null}function O(t){if(!t)return null;const e=t.filter(C);return 0==e.length?null:function(t){const i=k(t,e).map(E);return(0,r.D)(i).pipe((0,a.U)(S))}}function P(t){return null!=t?O(I(t)):null}function D(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function M(t){return t._rawValidators}function L(t){return t._rawAsyncValidators}let N=(()=>{class t{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(t){this._rawValidators=t||[],this._composedValidatorFn=R(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=P(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t}),t})(),z=(()=>{class t extends N{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,features:[n.qOj]}),t})();class Z extends N{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class B{constructor(t){this._cd=t}is(t){var e,i;return!!(null===(i=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===i?void 0:i[t])}}let q=(()=>{class t extends B{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(Z,2))},t.\u0275dir=n.lG2({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&n.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[n.qOj]}),t})(),F=(()=>{class t extends B{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(z,10))},t.\u0275dir=n.lG2({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&n.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[n.qOj]}),t})();function U(t,e){return[...e.path,t]}function H(t,e){Y(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&V(t,e)})}(t,e),function(t,e){const i=(t,i)=>{e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&V(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const i=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}(t,e)}function G(t,e,i=!0){const n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),K(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function j(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Y(t,e){const i=M(t);null!==e.validator?t.setValidators(D(i,e.validator)):"function"==typeof i&&t.setValidators([i]);const n=L(t);null!==e.asyncValidator?t.setAsyncValidators(D(n,e.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);const s=()=>t.updateValueAndValidity();j(e._rawValidators,s),j(e._rawAsyncValidators,s)}function K(t,e){let i=!1;if(null!==t){if(null!==e.validator){const n=M(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.validator);s.length!==n.length&&(i=!0,t.setValidators(s))}}if(null!==e.asyncValidator){const n=L(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.asyncValidator);s.length!==n.length&&(i=!0,t.setAsyncValidators(s))}}}const n=()=>{};return j(e._rawValidators,n),j(e._rawAsyncValidators,n),i}function V(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function $(t,e){Y(t,e)}function J(t,e){if(!t.hasOwnProperty("model"))return!1;const i=t.model;return!!i.isFirstChange()||!Object.is(e,i.currentValue)}function Q(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function W(t,e){if(!e)return null;let i,n,s;return Array.isArray(e),e.forEach(t=>{t.constructor===p?i=t:Object.getPrototypeOf(t.constructor)===l?n=t:s=t}),s||n||i||null}function X(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}function tt(t){return(st(t)?t.validators:t)||null}function et(t){return Array.isArray(t)?R(t):t||null}function it(t,e){return(st(e)?e.asyncValidators:t)||null}function nt(t){return Array.isArray(t)?P(t):t||null}function st(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class ot{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=et(this._rawValidators),this._composedAsyncValidatorFn=nt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=et(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=nt(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const e=E(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let n=t;return e.forEach(t=>{n=n instanceof at?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof ct&&n.at(t)||null}),n}(this,t)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new n.vpe,this.statusChanges=new n.vpe}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){st(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class rt extends ot{constructor(t=null,e,i){super(tt(e),it(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){X(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){X(this._onDisabledChange,t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class at extends ot{constructor(t,e,i){super(tt(e),it(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof rt?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((t,n)=>{i=e(i,t,n)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class ct extends ot{constructor(t,e,i){super(tt(e),it(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,i)=>{this._throwIfControlMissing(i),this.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,i)=>{this.at(i)&&this.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof rt?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const lt={provide:z,useExisting:(0,n.Gpc)(()=>ht)},ut=(()=>Promise.resolve(null))();let ht=(()=>{class t extends z{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new n.vpe,this.form=new at({},R(t),P(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){ut.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),H(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){ut.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),X(this._directives,t)})}addFormGroup(t){ut.then(()=>{const e=this._findContainer(t.path),i=new at({});$(i,t),e.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){ut.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){ut.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,Q(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(m,10),n.Y36(b,10))},t.\u0275dir=n.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&n.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n._Bn([lt]),n.qOj]}),t})();const dt={provide:Z,useExisting:(0,n.Gpc)(()=>gt)},pt=(()=>Promise.resolve(null))();let gt=(()=>{class t extends Z{constructor(t,e,i,s){super(),this.control=new rt,this._registered=!1,this.update=new n.vpe,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=W(0,s)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),J(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?U(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_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(){H(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(t){pt.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,i=""===e||e&&"false"!==e;pt.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(z,9),n.Y36(m,10),n.Y36(b,10),n.Y36(u,10))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[n._Bn([dt]),n.qOj,n.TTD]}),t})(),ft=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const mt={provide:u,useExisting:(0,n.Gpc)(()=>bt),multi:!0};let bt=(()=>{class t extends l{writeValue(t){this.setProperty("value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&n.NdJ("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[n._Bn([mt]),n.qOj]}),t})(),_t=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})();const wt=new n.OlP("NgModelWithFormControlWarning"),At={provide:Z,useExisting:(0,n.Gpc)(()=>yt)};let yt=(()=>{class t extends Z{constructor(t,e,i,s){super(),this._ngModelWarningConfig=s,this.update=new n.vpe,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(e),this.valueAccessor=W(0,i)}set isDisabled(t){}ngOnChanges(t){if(this._isControlChanged(t)){const e=t.form.previousValue;e&&G(e,this,!1),H(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}J(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&G(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(m,10),n.Y36(b,10),n.Y36(u,10),n.Y36(wt,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[n._Bn([At]),n.qOj,n.TTD]}),t._ngModelWarningSentOnce=!1,t})();const vt={provide:z,useExisting:(0,n.Gpc)(()=>Tt)};let Tt=(()=>{class t extends z{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new n.vpe,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(K(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return H(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){G(t.control||null,t,!1),X(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,Q(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,i=this.form.get(t.path);e!==i&&(G(e||null,t),i instanceof rt&&(H(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);$(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return K(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Y(this.form,this),this._oldForm&&K(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(m,10),n.Y36(b,10))},t.\u0275dir=n.lG2({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&n.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n._Bn([vt]),n.qOj,n.TTD]}),t})();const Ct={provide:Z,useExisting:(0,n.Gpc)(()=>Et)};let Et=(()=>{class t extends Z{constructor(t,e,i,s,o){super(),this._ngModelWarningConfig=o,this._added=!1,this.update=new n.vpe,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=W(0,s)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),J(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return U(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.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(z,13),n.Y36(m,10),n.Y36(b,10),n.Y36(u,10),n.Y36(wt,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[n._Bn([Ct]),n.qOj,n.TTD]}),t._ngModelWarningSentOnce=!1,t})();const St={provide:u,useExisting:(0,n.Gpc)(()=>It),multi:!0};function kt(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let It=(()=>{class t extends l{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this.setProperty("selectedIndex",-1);const i=kt(e,t);this.setProperty("value",i)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&n.NdJ("change",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[n._Bn([St]),n.qOj]}),t})(),xt=(()=>{class t{constructor(t,e,i){this._element=t,this._renderer=e,this._select=i,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(kt(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(It,9))},t.\u0275dir=n.lG2({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const Rt={provide:u,useExisting:(0,n.Gpc)(()=>Pt),multi:!0};function Ot(t,e){return null==t?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let Pt=(()=>{class t extends l{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const i=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(i.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const i=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e{class t{constructor(t,e,i){this._element=t,this._renderer=e,this._select=i,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(Ot(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(Ot(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(Pt,9))},t.\u0275dir=n.lG2({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const Mt={provide:m,useExisting:(0,n.Gpc)(()=>Nt),multi:!0},Lt={provide:m,useExisting:(0,n.Gpc)(()=>zt),multi:!0};let Nt=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!=`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?A(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&n.uIk("required",e.required?"":null)},inputs:{required:"required"},features:[n._Bn([Mt])]}),t})(),zt=(()=>{class t extends Nt{validate(t){return this.required?y(t):null}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&n.uIk("required",e.required?"":null)},features:[n._Bn([Lt]),n.qOj]}),t})();const Zt={provide:m,useExisting:(0,n.Gpc)(()=>Bt),multi:!0};let Bt=(()=>{class t{constructor(){this._validator=T}ngOnChanges(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=v(this.pattern)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&n.uIk("pattern",e.pattern?e.pattern:null)},inputs:{pattern:"pattern"},features:[n._Bn([Zt]),n.TTD]}),t})(),qt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[_t]]}),t})(),Ft=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[qt]}),t})(),Ut=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:wt,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[qt]}),t})(),Ht=(()=>{class t{group(t,e=null){const i=this._reduceControls(t);let n,s=null,o=null;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(s=null!=e.validators?e.validators:null,o=null!=e.asyncValidators?e.asyncValidators:null,n=null!=e.updateOn?e.updateOn:void 0):(s=null!=e.validator?e.validator:null,o=null!=e.asyncValidator?e.asyncValidator:null)),new at(i,{asyncValidators:o,updateOn:n,validators:s})}control(t,e,i){return new rt(t,e,i)}array(t,e,i){const n=t.map(t=>this._createControl(t));return new ct(n,e,i)}_reduceControls(t){const e={};return Object.keys(t).forEach(i=>{e[i]=this._createControl(t[i])}),e}_createControl(t){return t instanceof rt||t instanceof at||t instanceof ct?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:function(){return new t},token:t,providedIn:Ut}),t})()},40084:function(t,e,i){"use strict";i.d(e,{XC:function(){return z},Bb:function(){return H},ZL:function(){return U}});var n=i(24621),s=i(19861),o=i(11353),r=i(31572),a=i(71522),c=i(87570),l=i(55959),u=i(31450),h=i(31906),d=i(40878),p=i(87254),g=i(61511),f=i(2522),m=i(4253),b=i(75842),_=i(26899),w=i(16073),A=i(66283),y=i(90611),v=i(44689),T=i(43835),C=i(79996),E=i(66599),S=i(60509),k=i(22526);const I=["panel"];function x(t,e){if(1&t&&(r.TgZ(0,"div",0,1),r.Hsn(2),r.qZA()),2&t){const t=e.id,i=r.oxw();r.Q6J("id",i.id)("ngClass",i._classList),r.uIk("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(t))}}const R=["*"];let O=0;class P{constructor(t,e){this.source=t,this.option=e}}class D{}const M=(0,a.Kr)(D),L=new r.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}});let N=(()=>{class t extends M{constructor(t,e,i,n){super(),this._changeDetectorRef=t,this._elementRef=e,this._activeOptionChanges=c.w.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new r.vpe,this.opened=new r.vpe,this.closed=new r.vpe,this.optionActivated=new r.vpe,this._classList={},this.id="mat-autocomplete-"+O++,this.inertGroups=(null==n?void 0:n.SAFARI)||!1,this._autoActiveFirstOption=!!i.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(t){this._autoActiveFirstOption=(0,s.Ig)(t)}set classList(t){this._classList=t&&t.length?(0,s.du)(t).reduce((t,e)=>(t[e]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new n.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){const e=new P(this,t);this.optionSelected.emit(e)}_getPanelAriaLabelledby(t){return this.ariaLabel?null:this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_setVisibilityClasses(t){t[this._visibleClass]=this.showPanel,t[this._hiddenClass]=!this.showPanel}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(L),r.Y36(o.t4))},t.\u0275dir=r.lG2({type:t,viewQuery:function(t,e){if(1&t&&(r.Gf(r.Rgc,7),r.Gf(I,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.template=t.first),r.iGM(t=r.CRH())&&(e.panel=t.first)}},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[r.qOj]}),t})(),z=(()=>{class t extends N{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=r.n5z(t)))(i||t)}}(),t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,i){if(1&t&&(r.Suo(i,a.K7,5),r.Suo(i,a.ey,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.optionGroups=t),r.iGM(t=r.CRH())&&(e.options=t)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[r._Bn([{provide:a.HF,useExisting:t}]),r.qOj],ngContentSelectors:R,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(r.F$t(),r.YNc(0,x,3,4,"ng-template"))},directives:[g.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}\n"],encapsulation:2,changeDetection:0}),t})();const Z=new r.OlP("mat-autocomplete-scroll-strategy"),B={provide:Z,deps:[f.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},q={provide:w.JU,useExisting:(0,r.Gpc)(()=>U),multi:!0};let F=(()=>{class t{constructor(t,e,i,n,s,o,r,a,d,p,g){this._element=t,this._overlay=e,this._viewContainerRef=i,this._zone=n,this._changeDetectorRef=s,this._dir=r,this._formField=a,this._document=d,this._viewportRuler=p,this._defaults=g,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=c.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new l.xQ,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,u.P)(()=>this.autocomplete&&this.autocomplete.options?(0,h.T)(...this.autocomplete.options.map(t=>t.onSelectionChange)):this._zone.onStable.pipe((0,y.q)(1),(0,v.w)(()=>this.optionSelections))),this._scrollStrategy=o}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(t){this._autocompleteDisabled=(0,s.Ig)(t)}ngAfterViewInit(){const t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular(()=>t.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const t=this._getWindow();void 0!==t&&t.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.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,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,h.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,T.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,T.h)(()=>this._overlayAttached)):(0,d.of)()).pipe((0,C.U)(t=>t instanceof a.rN?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,h.T)((0,p.R)(this._document,"click"),(0,p.R)(this._document,"auxclick"),(0,p.R)(this._document,"touchend")).pipe((0,T.h)(t=>{const e=this._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,i=this._formField?this._formField._elementRef.nativeElement:null,n=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&e!==this._element.nativeElement&&(!i||!i.contains(e))&&(!n||!n.contains(e))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(e)}))}writeValue(t){Promise.resolve(null).then(()=>this._setTriggerValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){const e=t.keyCode;if(e!==b.hY||(0,b.Vb)(t)||t.preventDefault(),this.activeOption&&e===b.K5&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){const i=this.autocomplete._keyManager.activeItem,n=e===b.LH||e===b.JH;this.panelOpen||e===b.Mf?this.autocomplete._keyManager.onKeydown(t):n&&this._canOpen()&&this.openPanel(),(n||this.autocomplete._keyManager.activeItem!==i)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(t){let e=t.target,i=e.value;"number"===e.type&&(i=""==i?null:parseFloat(i)),this._previousValue!==i&&(this._previousValue=i,this._onChange(i),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(t=!1){this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const t=this._zone.onStable.pipe((0,y.q)(1)),e=this.autocomplete.options.changes.pipe((0,E.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,S.g)(0));return(0,h.T)(t,e).pipe((0,v.w)(()=>{const t=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),t!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),(0,y.q)(1)).subscribe(t=>this._setValueAndClose(t))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(t){const e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,i=null!=e?e:"";this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}_setValueAndClose(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()}_clearPreviousSelectedOption(t){this.autocomplete.options.forEach(e=>{e!==t&&e.selected&&e.deselect()})}_attachOverlay(){var t;null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!(0,o.kV)(this._element.nativeElement));let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new _.UE(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,e.keydownEvents().subscribe(t=>{(t.keyCode===b.hY&&!(0,b.Vb)(t)||t.keyCode===b.LH&&(0,b.Vb)(t,"altKey"))&&(this._resetActiveItem(),this._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),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 i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var t;return new f.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(t=this._defaults)||void 0===t?void 0:t.overlayPanelClass})}_getOverlayPosition(){const t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){const e=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=this._aboveClass,n=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:i},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:i}];let s;s="above"===this.position?n:"below"===this.position?e:[...e,...n],t.withPositions(s)}_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 t=this.autocomplete;t.autoActiveFirstOption?t._keyManager.setFirstItemActive():t._keyManager.setActiveItem(-1)}_canOpen(){const t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}_getWindow(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}_scrollToOption(t){const e=this.autocomplete,i=(0,a.CB)(t,e.options,e.optionGroups);if(0===t&&1===i)e._setScrollTop(0);else if(e.panel){const i=e.options.toArray()[t];if(i){const t=i._getHostElement(),n=(0,a.jH)(t.offsetTop,t.offsetHeight,e._getScrollTop(),e.panel.nativeElement.offsetHeight);e._setScrollTop(n)}}}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(f.aV),r.Y36(r.s_b),r.Y36(r.R0b),r.Y36(r.sBO),r.Y36(Z),r.Y36(k.Is,8),r.Y36(A.G_,9),r.Y36(g.K0,8),r.Y36(m.rL),r.Y36(L,8))},t.\u0275dir=r.lG2({type:t,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[r.TTD]}),t})(),U=(()=>{class t extends F{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=r.n5z(t)))(i||t)}}(),t.\u0275dir=r.lG2({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&r.NdJ("focusin",function(){return e._handleFocus()})("blur",function(){return e._onTouched()})("input",function(t){return e._handleInput(t)})("keydown",function(t){return e._handleKeydown(t)}),2&t&&r.uIk("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[r._Bn([q]),r.qOj]}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[B],imports:[[f.U8,a.Ng,a.BQ,g.ez],m.ZD,a.Ng,a.BQ]}),t})()},41050:function(t,e,i){"use strict";i.d(e,{k:function(){return h},g:function(){return d}});var n=i(71522),s=i(24621),o=i(19861),r=i(43490),a=i(31572);let c=0;class l{}const u=(0,n.Id)(l);let h=(()=>{class t extends u{constructor(t,e,i,n,s){super(),this._ngZone=t,this._elementRef=e,this._ariaDescriber=i,this._renderer=n,this._animationMode=s,this._hasContent=!1,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=c++}get color(){return this._color}set color(t){this._setColor(t),this._color=t}get overlap(){return this._overlap}set overlap(t){this._overlap=(0,o.Ig)(t)}get description(){return this._description}set description(t){if(t!==this._description){const e=this._badgeElement;this._updateHostAriaDescription(t,this._description),this._description=t,e&&(t?e.setAttribute("aria-label",t):e.removeAttribute("aria-label"))}}get hidden(){return this._hidden}set hidden(t){this._hidden=(0,o.Ig)(t)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}ngOnChanges(t){const e=t.content;if(e){const t=e.currentValue;this._hasContent=null!=t&&`${t}`.trim().length>0,this._updateTextContent()}}ngOnDestroy(){const t=this._badgeElement;t&&(this.description&&this._ariaDescriber.removeDescription(t,this.description),this._renderer.destroyNode&&this._renderer.destroyNode(t))}getBadgeElement(){return this._badgeElement}_updateTextContent(){return this._badgeElement?this._badgeElement.textContent=this._stringifyContent():this._badgeElement=this._createBadgeElement(),this._badgeElement}_createBadgeElement(){const t=this._renderer.createElement("span");return this._clearExistingBadges("mat-badge-content"),t.setAttribute("id",`mat-badge-content-${this._id}`),t.classList.add("mat-badge-content"),t.textContent=this._stringifyContent(),"NoopAnimations"===this._animationMode&&t.classList.add("_mat-animation-noopable"),this.description&&t.setAttribute("aria-label",this.description),this._elementRef.nativeElement.appendChild(t),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{t.classList.add("mat-badge-active")})}):t.classList.add("mat-badge-active"),t}_updateHostAriaDescription(t,e){const i=this._updateTextContent();e&&this._ariaDescriber.removeDescription(i,e),t&&this._ariaDescriber.describe(i,t)}_setColor(t){if(t!==this._color){const e=this._elementRef.nativeElement.classList;this._color&&e.remove(`mat-badge-${this._color}`),t&&e.add(`mat-badge-${t}`)}}_clearExistingBadges(t){const e=this._elementRef.nativeElement;let i=e.children.length;for(;i--;){const n=e.children[i];n.classList.contains(t)&&e.removeChild(n)}}_stringifyContent(){const t=this.content;return null==t?"":`${t}`}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.R0b),a.Y36(a.SBq),a.Y36(s.$s),a.Y36(a.Qsj),a.Y36(r.Qb,8))},t.\u0275dir=a.lG2({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(t,e){2&t&&a.ekj("mat-badge-overlap",e.overlap)("mat-badge-above",e.isAbove())("mat-badge-below",!e.isAbove())("mat-badge-before",!e.isAfter())("mat-badge-after",e.isAfter())("mat-badge-small","small"===e.size)("mat-badge-medium","medium"===e.size)("mat-badge-large","large"===e.size)("mat-badge-hidden",e.hidden||!e._hasContent)("mat-badge-disabled",e.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],position:["matBadgePosition","position"],size:["matBadgeSize","size"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],description:["matBadgeDescription","description"],hidden:["matBadgeHidden","hidden"],content:["matBadge","content"]},features:[a.qOj,a.TTD]}),t})(),d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({imports:[[s.rt,n.BQ],n.BQ]}),t})()},15980:function(t,e,i){"use strict";i.d(e,{lW:function(){return d},ot:function(){return p}});var n=i(71522),s=i(43490),o=i(31572),r=i(24621);const a=["mat-button",""],c=["*"],l=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class u{constructor(t){this._elementRef=t}}const h=(0,n.pj)((0,n.Id)((0,n.Kr)(u)));let d=(()=>{class t extends h{constructor(t,e,i){super(t),this._focusMonitor=e,this._animationMode=i,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const n of l)this._hasHostAttributes(n)&&this._getHostElement().classList.add(n);t.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(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.SBq),o.Y36(r.tE),o.Y36(s.Qb,8))},t.\u0275cmp=o.Xpm({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){if(1&t&&o.Gf(n.wG,5),2&t){let t;o.iGM(t=o.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(o.uIk("disabled",e.disabled||null),o.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[o.qOj],attrs:a,ngContentSelectors:c,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(t,e){1&t&&(o.F$t(),o.TgZ(0,"span",0),o.Hsn(1),o.qZA(),o._UZ(2,"span",1),o._UZ(3,"span",2)),2&t&&(o.xp6(2),o.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),o.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[n.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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-animation-noopable.mat-raised-button{transition:none;animation:none}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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-animation-noopable.mat-fab{transition:none;animation:none}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[n.si,n.BQ],n.BQ]}),t})()},27439:function(t,e,i){"use strict";i.d(e,{a8:function(){return g},kc:function(){return p},dn:function(){return u},dk:function(){return f},QW:function(){return m},$j:function(){return d},n5:function(){return h}});var n=i(43490),s=i(71522),o=i(31572);const r=["*",[["mat-card-footer"]]],a=["*","mat-card-footer"],c=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],l=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t})(),h=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t})(),d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),t})(),g=(()=>{class t{constructor(t){this._animationMode=t}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.Qb,8))},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&o.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:a,decls:2,vars:0,template:function(t,e){1&t&&(o.F$t(r),o.Hsn(0),o.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-animation-noopable.mat-card{transition:none;animation:none}.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}.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}\n"],encapsulation:2,changeDetection:0}),t})(),f=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:l,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(o.F$t(c),o.Hsn(0),o.TgZ(1,"div",0),o.Hsn(2,1),o.qZA(),o.Hsn(3,2))},encapsulation:2,changeDetection:0}),t})(),m=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[s.BQ],s.BQ]}),t})()},29236:function(t,e,i){"use strict";i.d(e,{oG:function(){return y},p9:function(){return T}});var n=i(19861),s=i(31572),o=i(16073),r=i(71522),a=i(43490),c=i(36337),l=i(24621);const u=["input"],h=function(t){return{enterDuration:t}},d=["*"],p=new s.OlP("mat-checkbox-default-options",{providedIn:"root",factory:g});function g(){return{color:"accent",clickAction:"check-indeterminate"}}let f=0;const m=g(),b={provide:o.JU,useExisting:(0,s.Gpc)(()=>y),multi:!0};class _{}class w{constructor(t){this._elementRef=t}}const A=(0,r.sb)((0,r.pj)((0,r.Kr)((0,r.Id)(w))));let y=(()=>{class t extends A{constructor(t,e,i,n,o,r,a){super(t),this._changeDetectorRef=e,this._focusMonitor=i,this._ngZone=n,this._animationMode=r,this._options=a,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++f,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new s.vpe,this.indeterminateChange=new s.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||m,this.color=this.defaultColor=this._options.color||m.color,this.tabIndex=parseInt(o)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(t){this._required=(0,n.Ig)(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=(0,n.Ig)(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=(0,n.Ig)(t),e&&(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(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,i=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{i.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new _;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(t){var e;const i=null===(e=this._options)||void 0===e?void 0:e.clickAction;t.stopPropagation(),this.disabled||"noop"===i?this.disabled||"noop"!==i||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t,e){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let i="";switch(t){case 0:if(1===e)i="unchecked-checked";else{if(3!=e)return"";i="unchecked-indeterminate"}break;case 2:i=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===e?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${i}`}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(l.tE),s.Y36(s.R0b),s.$8M("tabindex"),s.Y36(a.Qb,8),s.Y36(p,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){if(1&t&&(s.Gf(u,5),s.Gf(r.wG,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._inputElement=t.first),s.iGM(t=s.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Ikx("id",e.id),s.uIk("tabindex",null),s.ekj("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[s._Bn([b]),s.qOj],ngContentSelectors:d,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",0,"xml","space","preserve",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(t,e){if(1&t&&(s.F$t(),s.TgZ(0,"label",0,1),s.TgZ(2,"span",2),s.TgZ(3,"input",3,4),s.NdJ("change",function(t){return e._onInteractionEvent(t)})("click",function(t){return e._onInputClick(t)}),s.qZA(),s.TgZ(5,"span",5),s._UZ(6,"span",6),s.qZA(),s._UZ(7,"span",7),s.TgZ(8,"span",8),s.O4$(),s.TgZ(9,"svg",9),s._UZ(10,"path",10),s.qZA(),s.kcU(),s._UZ(11,"span",11),s.qZA(),s.qZA(),s.TgZ(12,"span",12,13),s.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),s.TgZ(14,"span",14),s._uU(15,"\xa0"),s.qZA(),s.Hsn(16),s.qZA(),s.qZA()),2&t){const t=s.MAs(1),i=s.MAs(13);s.uIk("for",e.inputId),s.xp6(2),s.ekj("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),s.xp6(1),s.Q6J("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),s.uIk("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),s.xp6(2),s.Q6J("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",s.VKq(19,h,"NoopAnimations"===e._animationMode?0:150))}},directives:[r.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:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-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;-moz-user-select:auto;-ms-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:transparent;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:transparent}.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%}\n"],encapsulation:2,changeDetection:0}),t})(),v=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),T=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[r.si,r.BQ,c.Q8,v],r.BQ,v]}),t})()},10033:function(t,e,i){"use strict";i.d(e,{HS:function(){return S},oH:function(){return M},qn:function(){return P},Hi:function(){return N}});var n=i(75842),s=i(31572),o=i(71522),r=i(19861),a=i(61511),c=i(43490),l=i(55959),u=i(31906),h=i(90611),d=i(25416),p=i(56238),g=i(24621),f=i(4230),m=i(66283),b=i(11353),_=i(22526),w=i(16073);const A=["*"],y=new s.OlP("MatChipRemove"),v=new s.OlP("MatChipAvatar"),T=new s.OlP("MatChipTrailingIcon");class C{constructor(t){this._elementRef=t}}const E=(0,o.sb)((0,o.pj)((0,o.Kr)(C),"primary"),-1);let S=(()=>{class t extends E{constructor(t,e,i,n,r,a,c,u){super(t),this._elementRef=t,this._ngZone=e,this._changeDetectorRef=r,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new l.xQ,this._onBlur=new l.xQ,this.selectionChange=new s.vpe,this.destroyed=new s.vpe,this.removed=new s.vpe,this._addHostClassName(),this._chipRippleTarget=a.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new o.IR(this,e,this._chipRippleTarget,i),this._chipRipple.setupTriggerEvents(t),this.rippleConfig=n||{},this._animationsDisabled="NoopAnimations"===c,this.tabIndex=null!=u&&parseInt(u)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(t){const e=(0,r.Ig)(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(t){this._value=t}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(t){this._selectable=(0,r.Ig)(t)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(t){this._disabled=(0,r.Ig)(t)}get removable(){return this._removable}set removable(t){this._removable=(0,r.Ig)(t)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const t=this._elementRef.nativeElement;t.hasAttribute("mat-basic-chip")||"mat-basic-chip"===t.tagName.toLowerCase()?t.classList.add("mat-basic-chip"):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(t=!1){return this._selected=!this.selected,this._dispatchSelectionChange(t),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(t){this.disabled?t.preventDefault():t.stopPropagation()}_handleKeydown(t){if(!this.disabled)switch(t.keyCode){case n.yY:case n.ZH:this.remove(),t.preventDefault();break;case n.L_:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,h.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(t=!1){this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(b.t4),s.Y36(o.Y2,8),s.Y36(s.sBO),s.Y36(a.K0),s.Y36(c.Qb,8),s.$8M("tabindex"))},t.\u0275dir=s.lG2({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,v,5),s.Suo(i,T,5),s.Suo(i,y,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.avatar=t.first),s.iGM(t=s.CRH())&&(e.trailingIcon=t.first),s.iGM(t=s.CRH())&&(e.removeIcon=t.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&s.NdJ("click",function(t){return e._handleClick(t)})("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e.focus()})("blur",function(){return e._blur()}),2&t&&(s.uIk("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),s.ekj("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[s.qOj]}),t})();const k=new s.OlP("mat-chips-default-options");class I{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const x=(0,o.FD)(I);let R=0;class O{constructor(t,e){this.source=t,this.value=e}}let P=(()=>{class t extends x{constructor(t,e,i,n,o,r,a){super(r,n,o,a),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this.ngControl=a,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new l.xQ,this._uid="mat-chip-list-"+R++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(t,e)=>t===e,this._required=!1,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new s.vpe,this.valueChange=new s.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(t){this._multiple=(0,r.Ig)(t),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this.writeValue(t),this._value=t}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required}set required(t){this._required=(0,r.Ig)(t),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(t){this._placeholder=t,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(t){this._disabled=(0,r.Ig)(t),this._syncChipsState()}get selectable(){return this._selectable}set selectable(t){this._selectable=(0,r.Ig)(t),this.chips&&this.chips.forEach(t=>t.chipListSelectable=this._selectable)}set tabIndex(t){this._userTabIndex=t,this._tabIndex=t}get chipSelectionChanges(){return(0,u.T)(...this.chips.map(t=>t.selectionChange))}get chipFocusChanges(){return(0,u.T)(...this.chips.map(t=>t._onFocus))}get chipBlurChanges(){return(0,u.T)(...this.chips.map(t=>t._onBlur))}get chipRemoveChanges(){return(0,u.T)(...this.chips.map(t=>t.destroyed))}ngAfterContentInit(){this._keyManager=new g.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,d.R)(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.tabOut.pipe((0,d.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,p.O)(null),(0,d.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 f.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(t){this._chipInput=t,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",t.id)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}writeValue(t){this.chips&&this._setSelectionByValue(t,!1)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this.stateChanges.next()}onContainerClick(t){this._originatesFromChip(t)||this.focus()}focus(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}_focusInput(t){this._chipInput&&this._chipInput.focus(t)}_keydown(t){const e=t.target;e&&e.classList.contains("mat-chip")&&(this._keyManager.onKeydown(t),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(t){return t>=0&&tt.deselect()),Array.isArray(t))t.forEach(t=>this._selectValue(t,e)),this._sortValues();else{const i=this._selectValue(t,e);i&&e&&this._keyManager.setActiveItem(i)}}_selectValue(t,e=!0){const i=this.chips.find(e=>null!=e.value&&this._compareWith(e.value,t));return i&&(e?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(t){this._selectionModel.clear(),this.chips.forEach(e=>{e!==t&&e.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(t=>{t.selected&&this._selectionModel.select(t)}),this.stateChanges.next())}_propagateChanges(t){let e=null;e=Array.isArray(this.selected)?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.change.emit(new O(this,e)),this.valueChange.emit(e),this._onChange(e),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(t=>{t.source.selected?this._selectionModel.select(t.source):this._selectionModel.deselect(t.source),this.multiple||this.chips.forEach(t=>{!this._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),t.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(t=>{let e=this.chips.toArray().indexOf(t.chip);this._isValidIndex(e)&&this._keyManager.updateActiveItem(e),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(t=>{const e=t.chip,i=this.chips.toArray().indexOf(t.chip);this._isValidIndex(i)&&e._hasFocus&&(this._lastDestroyedChipIndex=i)})}_originatesFromChip(t){let e=t.target;for(;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-chip"))return!0;e=e.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(t=>t._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(t=>{t._chipListDisabled=this._disabled,t._chipListMultiple=this.multiple})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(_.Is,8),s.Y36(w.F,8),s.Y36(w.sg,8),s.Y36(o.rD),s.Y36(w.a5,10))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,S,5),2&t){let t;s.iGM(t=s.CRH())&&(e.chips=t)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&s.NdJ("focus",function(){return e.focus()})("blur",function(){return e._blur()})("keydown",function(t){return e._keydown(t)}),2&t&&(s.Ikx("id",e._uid),s.uIk("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),s.ekj("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[s._Bn([{provide:m.Eo,useExisting:t}]),s.qOj],ngContentSelectors:A,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.Hsn(1),s.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.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-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height: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:focus{outline:dotted 2px}.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}.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}\n'],encapsulation:2,changeDetection:0}),t})(),D=0,M=(()=>{class t{constructor(t,e){this._elementRef=t,this._defaultOptions=e,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new s.vpe,this.placeholder="",this.id="mat-chip-list-input-"+D++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(t){t&&(this._chipList=t,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(t){this._addOnBlur=(0,r.Ig)(t)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(t){this._disabled=(0,r.Ig)(t)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(t){if(t){if(t.keyCode!==n.Mf||(0,n.Vb)(t,"shiftKey")||this._chipList._allowFocusEscape(),t.keyCode===n.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void t.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(t)}_keyup(t){!this._focusLastChipOnBackspace&&t.keyCode===n.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,t.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._chipList.stateChanges.next()}_emitChipEnd(t){!this.inputElement.value&&t&&this._chipList._keydown(t),t&&!this._isSeparatorKey(t)||(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==t||t.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(t){this.inputElement.focus(t)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(t){return!(0,n.Vb)(t)&&new Set(this.separatorKeyCodes).has(t.keyCode)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(k))},t.\u0275dir=s.lG2({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,e){1&t&&s.NdJ("keydown",function(t){return e._keydown(t)})("keyup",function(t){return e._keyup(t)})("blur",function(){return e._blur()})("focus",function(){return e._focus()})("input",function(){return e._onInput()}),2&t&&(s.Ikx("id",e.id),s.uIk("disabled",e.disabled||null)("placeholder",e.placeholder||null)("aria-invalid",e._chipList&&e._chipList.ngControl?e._chipList.ngControl.invalid:null)("aria-required",e._chipList&&e._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[s.TTD]}),t})();const L={separatorKeyCodes:[n.K5]};let N=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[o.rD,{provide:k,useValue:L}],imports:[[o.BQ]]}),t})()},71522:function(t,e,i){"use strict";i.d(e,{yN:function(){return _},mZ:function(){return w},_A:function(){return R},rD:function(){return U},sG:function(){return O},K7:function(){return lt},HF:function(){return st},Y2:function(){return X},BQ:function(){return v},X2:function(){return H},uc:function(){return Y},XK:function(){return F},ey:function(){return pt},Ng:function(){return mt},rN:function(){return ht},nP:function(){return it},us:function(){return nt},wG:function(){return tt},si:function(){return et},LF:function(){return Z},IR:function(){return W},CB:function(){return gt},jH:function(){return ft},pj:function(){return C},Kr:function(){return E},Id:function(){return T},FD:function(){return k},dB:function(){return I},sb:function(){return S},E0:function(){return G}});var n=i(31572),s=i(24621),o=i(22526);const r=new n.GfV("12.0.5");var a=i(61511),c=i(19861),l=i(55959),u=i(48318),h=i(11353),d=i(56238),p=i(43490),g=i(75842);function f(t,e){if(1&t&&n._UZ(0,"mat-pseudo-checkbox",4),2&t){const t=n.oxw();n.Q6J("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function m(t,e){if(1&t&&(n.TgZ(0,"span",5),n._uU(1),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.hij("(",t.group.label,")")}}const b=["*"];let _=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),w=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const A=new n.GfV("12.0.5"),y=new n.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let v=(()=>{class t{constructor(t,e,i){this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return(0,n.X6Q)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&A.full!==r.full&&console.warn("The Angular Material version ("+A.full+") does not match the Angular CDK version ("+r.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(s.qm),n.LFG(y,8),n.LFG(a.K0))},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[o.vT],o.vT]}),t})();function T(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,c.Ig)(t)}}}function C(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function E(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=(0,c.Ig)(t)}}}function S(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?(0,c.su)(t):this.defaultTabIndex}}}function k(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new l.xQ}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}function I(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new u.y(t=>{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}const x=new n.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return(0,n.f3M)(n.soG)}});class R{constructor(){this._localeChanges=new l.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let i=this.isValid(t),n=this.isValid(e);return i&&n?!this.compareDate(t,e):i==n}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}}const O=new n.OlP("mat-date-formats");let P;try{P="undefined"!=typeof Intl}catch(bt){P=!1}const D={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},M=z(31,t=>String(t+1)),L={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},N=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function z(t,e){const i=Array(t);for(let n=0;n{class t extends R{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(P){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return z(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return D[t]}getDateNames(){if(P){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return z(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return M}getDayOfWeekNames(t){if(P){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return z(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return L[t]}getYearName(t){if(P){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,i){let n=this._createDateWithOverflow(t,e,i);return n.getMonth(),n}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(P){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});const i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(i,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let i=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(i)!=((this.getMonth(t)+e)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(N.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,i){const n=new Date;return n.setFullYear(t,e,i),n.setHours(0,0,0,0),n}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const i=new Date;return i.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),i.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(i)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(x,8),n.LFG(h.t4))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:R,useClass:Z}],imports:[[h.ud]]}),t})();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 F=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:O,useValue:q}],imports:[[B]]}),t})(),U=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function G(t,e,i="mat"){t.changes.pipe((0,d.O)(t)).subscribe(({length:t})=>{j(e,`${i}-2-line`,!1),j(e,`${i}-3-line`,!1),j(e,`${i}-multi-line`,!1),2===t||3===t?j(e,`${i}-${t}-line`,!0):t>3&&j(e,`${i}-multi-line`,!0)})}function j(t,e,i){const n=t.nativeElement.classList;i?n.add(e):n.remove(e)}let Y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[v],v]}),t})();class K{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const V={enterDuration:450,exitDuration:400},$=(0,h.i$)({passive:!0}),J=["mousedown","touchstart"],Q=["mouseup","mouseleave","touchend","touchcancel"];class W{constructor(t,e,i,n){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,n.isBrowser&&(this._containerElement=(0,c.fI)(i))}fadeInRipple(t,e,i={}){const n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},V),i.animation);i.centered&&(t=n.left+n.width/2,e=n.top+n.height/2);const o=i.radius||function(t,e,i){const n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),s=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+s*s)}(t,e,n),r=t-n.left,a=e-n.top,c=s.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=r-o+"px",l.style.top=a-o+"px",l.style.height=2*o+"px",l.style.width=2*o+"px",null!=i.color&&(l.style.backgroundColor=i.color),l.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(l),window.getComputedStyle(l).getPropertyValue("opacity"),l.style.transform="scale(1)";const u=new K(this,l,i);return u.state=0,this._activeRipples.add(u),i.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const t=u===this._mostRecentTransientRipple;u.state=1,i.persistent||t&&this._isPointerDown||u.fadeOut()},c),u}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,n=Object.assign(Object.assign({},V),t.config.animation);i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.parentNode.removeChild(i)},n.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=(0,c.fI)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(J))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Q),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=(0,s.X6)(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,$)})})}_removeTriggerEvents(){this._triggerElement&&(J.forEach(t=>{this._triggerElement.removeEventListener(t,this,$)}),this._pointerUpEventsRegistered&&Q.forEach(t=>{this._triggerElement.removeEventListener(t,this,$)}))}}const X=new n.OlP("mat-ripple-global-options");let tt=(()=>{class t{constructor(t,e,i,n,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=n||{},this._rippleRenderer=new W(this,e,t,i)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,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:Object.assign(Object.assign(Object.assign({},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(t,e=0,i){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(h.t4),n.Y36(X,8),n.Y36(p.Qb,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&n.ekj("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),et=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[v,h.ud],v]}),t})(),it=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(p.Qb,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&n.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},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:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::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}\n'],encapsulation:2,changeDetection:0}),t})(),nt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[v]]}),t})();const st=new n.OlP("MAT_OPTION_PARENT_COMPONENT");class ot{}const rt=T(ot);let at=0,ct=(()=>{class t extends rt{constructor(t){var e;super(),this._labelId="mat-optgroup-label-"+at++,this._inert=null!==(e=null==t?void 0:t.inertGroups)&&void 0!==e&&e}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(st,8))},t.\u0275dir=n.lG2({type:t,inputs:{label:"label"},features:[n.qOj]}),t})();const lt=new n.OlP("MatOptgroup");let ut=0;class ht{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let dt=(()=>{class t{constructor(t,e,i,s){this._element=t,this._changeDetectorRef=e,this._parent=i,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+ut++,this.onSelectionChange=new n.vpe,this._stateChanges=new l.xQ}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(t){this._disabled=(0,c.Ig)(t)}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(t,e){const i=this._getHostElement();"function"==typeof i.focus&&i.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){t.keyCode!==g.K5&&t.keyCode!==g.L_||(0,g.Vb)(t)||(this._selectViaInteraction(),t.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 t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new ht(this,t))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(void 0),n.Y36(ct))},t.\u0275dir=n.lG2({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),pt=(()=>{class t extends dt{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(st,8),n.Y36(lt,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&n.NdJ("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(n.Ikx("id",e.id),n.uIk("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),n.ekj("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[n.qOj],ngContentSelectors:b,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(t,e){1&t&&(n.F$t(),n.YNc(0,f,1,2,"mat-pseudo-checkbox",0),n.TgZ(1,"span",1),n.Hsn(2),n.qZA(),n.YNc(3,m,2,1,"span",2),n._UZ(4,"div",3)),2&t&&(n.Q6J("ngIf",e.multiple),n.xp6(3),n.Q6J("ngIf",e.group&&e.group._inert),n.xp6(1),n.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[a.O5,tt,it],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:transparent}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function gt(t,e,i){if(i.length){let n=e.toArray(),s=i.toArray(),o=0;for(let e=0;ei+n?Math.max(0,t-n+e):i}let mt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[et,a.ez,v,nt]]}),t})()},15812:function(t,e,i){"use strict";i.d(e,{Mq:function(){return bt},hl:function(){return vt},FA:function(){return Et},nW:function(){return Ct}});var n=i(24621),s=i(2522),o=i(26899),r=i(61511),a=i(31572),c=i(15980),l=i(4253),u=i(71522),h=i(55959),d=i(87570),p=i(31906),g=i(40878),f=i(75842),m=i(90611),b=i(56238),_=i(43835),w=i(19861),A=i(11353),y=i(10709),v=i(16073),T=i(66283),C=i(80340),E=i(22526);const S=["mat-calendar-body",""];function k(t,e){if(1&t&&(a.TgZ(0,"tr",2),a.TgZ(1,"td",3),a._uU(2),a.qZA(),a.qZA()),2&t){const t=a.oxw();a.xp6(1),a.Udp("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),a.uIk("colspan",t.numCols),a.xp6(1),a.hij(" ",t.label," ")}}function I(t,e){if(1&t&&(a.TgZ(0,"td",7),a._uU(1),a.qZA()),2&t){const t=a.oxw(2);a.Udp("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),a.uIk("colspan",t._firstRowOffset),a.xp6(1),a.hij(" ",t._firstRowOffset>=t.labelMinRequiredCells?t.label:""," ")}}function x(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"td",8),a.NdJ("click",function(e){const i=a.CHM(t).$implicit;return a.oxw(2)._cellClicked(i,e)}),a.TgZ(1,"div",9),a._uU(2),a.qZA(),a._UZ(3,"div",10),a.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=a.oxw().index,s=a.oxw();a.Udp("width",s._cellWidth)("padding-top",s._cellPadding)("padding-bottom",s._cellPadding),a.ekj("mat-calendar-body-disabled",!t.enabled)("mat-calendar-body-active",s._isActiveCell(n,i))("mat-calendar-body-range-start",s._isRangeStart(t.compareValue))("mat-calendar-body-range-end",s._isRangeEnd(t.compareValue))("mat-calendar-body-in-range",s._isInRange(t.compareValue))("mat-calendar-body-comparison-bridge-start",s._isComparisonBridgeStart(t.compareValue,n,i))("mat-calendar-body-comparison-bridge-end",s._isComparisonBridgeEnd(t.compareValue,n,i))("mat-calendar-body-comparison-start",s._isComparisonStart(t.compareValue))("mat-calendar-body-comparison-end",s._isComparisonEnd(t.compareValue))("mat-calendar-body-in-comparison-range",s._isInComparisonRange(t.compareValue))("mat-calendar-body-preview-start",s._isPreviewStart(t.compareValue))("mat-calendar-body-preview-end",s._isPreviewEnd(t.compareValue))("mat-calendar-body-in-preview",s._isInPreview(t.compareValue)),a.Q6J("ngClass",t.cssClasses)("tabindex",s._isActiveCell(n,i)?0:-1),a.uIk("data-mat-row",n)("data-mat-col",i)("aria-label",t.ariaLabel)("aria-disabled",!t.enabled||null)("aria-selected",s._isSelected(t.compareValue)),a.xp6(1),a.ekj("mat-calendar-body-selected",s._isSelected(t.compareValue))("mat-calendar-body-comparison-identical",s._isComparisonIdentical(t.compareValue))("mat-calendar-body-today",s.todayValue===t.compareValue),a.xp6(1),a.hij(" ",t.displayValue," ")}}function R(t,e){if(1&t&&(a.TgZ(0,"tr",4),a.YNc(1,I,2,6,"td",5),a.YNc(2,x,4,46,"td",6),a.qZA()),2&t){const t=e.$implicit,i=e.index,n=a.oxw();a.xp6(1),a.Q6J("ngIf",0===i&&n._firstRowOffset),a.xp6(1),a.Q6J("ngForOf",t)}}function O(t,e){if(1&t&&(a.TgZ(0,"th",5),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.uIk("aria-label",t.long),a.xp6(1),a.Oqu(t.narrow)}}const P=["*"];function D(t,e){}function M(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-month-view",5),a.NdJ("activeDateChange",function(e){return a.CHM(t),a.oxw().activeDate=e})("_userSelection",function(e){return a.CHM(t),a.oxw()._dateSelected(e)}),a.qZA()}if(2&t){const t=a.oxw();a.Q6J("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)}}function L(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-year-view",6),a.NdJ("activeDateChange",function(e){return a.CHM(t),a.oxw().activeDate=e})("monthSelected",function(e){return a.CHM(t),a.oxw()._monthSelectedInYearView(e)})("selectedChange",function(e){return a.CHM(t),a.oxw()._goToDateInView(e,"month")}),a.qZA()}if(2&t){const t=a.oxw();a.Q6J("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function N(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-multi-year-view",7),a.NdJ("activeDateChange",function(e){return a.CHM(t),a.oxw().activeDate=e})("yearSelected",function(e){return a.CHM(t),a.oxw()._yearSelectedInMultiYearView(e)})("selectedChange",function(e){return a.CHM(t),a.oxw()._goToDateInView(e,"year")}),a.qZA()}if(2&t){const t=a.oxw();a.Q6J("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function z(t,e){}const Z=["button"];function B(t,e){1&t&&(a.O4$(),a.TgZ(0,"svg",3),a._UZ(1,"path",4),a.qZA())}const q=[[["","matDatepickerToggleIcon",""]]],F=["[matDatepickerToggleIcon]"];let U=(()=>{class t{constructor(){this.changes=new h.xQ,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"}formatYearRange(t,e){return`${t} \u2013 ${e}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=a.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();class H{constructor(t,e,i,n,s={},o=t,r){this.value=t,this.displayValue=e,this.ariaLabel=i,this.enabled=n,this.cssClasses=s,this.compareValue=o,this.rawValue=r}}let G=(()=>{class t{constructor(t,e){this._elementRef=t,this._ngZone=e,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new a.vpe,this.previewChange=new a.vpe,this._enterHandler=t=>{if(this._skipNextFocus&&"focus"===t.type)this._skipNextFocus=!1;else if(t.target&&this.isRange){const e=this._getCellFromElement(t.target);e&&this._ngZone.run(()=>this.previewChange.emit({value:e.enabled?e:null,event:t}))}},this._leaveHandler=t=>{null!==this.previewEnd&&this.isRange&&t.target&&j(t.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:t}))},e.runOutsideAngular(()=>{const e=t.nativeElement;e.addEventListener("mouseenter",this._enterHandler,!0),e.addEventListener("focus",this._enterHandler,!0),e.addEventListener("mouseleave",this._leaveHandler,!0),e.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(t,e){t.enabled&&this.selectedValueChange.emit({value:t.value,event:e})}_isSelected(t){return this.startValue===t||this.endValue===t}ngOnChanges(t){const e=t.numCols,{rows:i,numCols:n}=this;(t.rows||e)&&(this._firstRowOffset=i&&i.length&&i[0].length?n-i[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/n+"%"),!e&&this._cellWidth||(this._cellWidth=100/n+"%")}ngOnDestroy(){const t=this._elementRef.nativeElement;t.removeEventListener("mouseenter",this._enterHandler,!0),t.removeEventListener("focus",this._enterHandler,!0),t.removeEventListener("mouseleave",this._leaveHandler,!0),t.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(t,e){let i=t*this.numCols+e;return t&&(i-=this._firstRowOffset),i==this.activeCell}_focusActiveCell(t=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,m.q)(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");e&&(t||(this._skipNextFocus=!0),e.focus())})})}_isRangeStart(t){return Y(t,this.startValue,this.endValue)}_isRangeEnd(t){return K(t,this.startValue,this.endValue)}_isInRange(t){return V(t,this.startValue,this.endValue,this.isRange)}_isComparisonStart(t){return Y(t,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(t,e,i){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;let n=this.rows[e][i-1];if(!n){const t=this.rows[e-1];n=t&&t[t.length-1]}return n&&!this._isRangeEnd(n.compareValue)}_isComparisonBridgeEnd(t,e,i){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;let n=this.rows[e][i+1];if(!n){const t=this.rows[e+1];n=t&&t[0]}return n&&!this._isRangeStart(n.compareValue)}_isComparisonEnd(t){return K(t,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(t){return V(t,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}_isPreviewStart(t){return Y(t,this.previewStart,this.previewEnd)}_isPreviewEnd(t){return K(t,this.previewStart,this.previewEnd)}_isInPreview(t){return V(t,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(t){let e;if(j(t)?e=t:j(t.parentNode)&&(e=t.parentNode),e){const t=e.getAttribute("data-mat-row"),i=e.getAttribute("data-mat-col");if(t&&i)return this.rows[parseInt(t)][parseInt(i)]}return null}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.R0b))},t.\u0275cmp=a.Xpm({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[a.TTD],attrs:S,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"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(t,e){1&t&&(a.YNc(0,k,3,6,"tr",0),a.YNc(1,R,3,2,"tr",1)),2&t&&(a.Q6J("ngIf",e._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),t})();function j(t){return"TD"===t.nodeName}function Y(t,e,i){return null!==i&&e!==i&&t=e&&t===i}function V(t,e,i,n){return n&&null!==e&&null!==i&&e!==i&&t>=e&&t<=i}class ${constructor(t,e){this.start=t,this.end=e}}let J=(()=>{class t{constructor(t,e){this.selection=t,this._adapter=e,this._selectionChanged=new h.xQ,this.selectionChanged=this._selectionChanged,this.selection=t}updateSelection(t,e){const i=this.selection;this.selection=t,this._selectionChanged.next({selection:t,source:e,oldValue:i})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}}return t.\u0275fac=function(e){return new(e||t)(a.LFG(void 0),a.LFG(u._A))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac}),t})(),Q=(()=>{class t extends J{constructor(t){super(null,t)}add(t){super.updateSelection(t,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new t(this._adapter);return e.updateSelection(this.selection,this),e}}return t.\u0275fac=function(e){return new(e||t)(a.LFG(u._A))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac}),t})();const W={provide:J,deps:[[new a.FiY,new a.tp0,J],u._A],useFactory:function(t,e){return t||new Q(e)}},X=new a.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let tt=(()=>{class t{constructor(t,e,i,n,s){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rangeStrategy=s,this._rerenderSubscription=d.w.EMPTY,this.selectedChange=new a.vpe,this._userSelection=new a.vpe,this.activeDateChange=new a.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){const e=this._activeDate,i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof $?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,b.O)(null)).subscribe(()=>this._init())}ngOnChanges(t){const e=t.comparisonStart||t.comparisonEnd;e&&!e.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(t){const e=t.value,i=this._dateAdapter.getYear(this.activeDate),n=this._dateAdapter.getMonth(this.activeDate),s=this._dateAdapter.createDate(i,n,e);let o,r;this._selected instanceof $?(o=this._getDateInCurrentMonth(this._selected.start),r=this._getDateInCurrentMonth(this._selected.end)):o=r=this._getDateInCurrentMonth(this._selected),o===e&&r===e||this.selectedChange.emit(s),this._userSelection.emit({value:s,event:t.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case f.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?1:-1);break;case f.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?-1:1);break;case f.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case f.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case f.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case f.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case f.Ku:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case f.VM:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case f.K5:case f.L_:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),t.preventDefault()));case f.hY:return void(null==this._previewEnd||(0,f.Vb)(t)||(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t}),t.preventDefault(),t.stopPropagation()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_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 t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(t){this._matCalendarBody._focusActiveCell(t)}_previewChanged({event:t,value:e}){if(this._rangeStrategy){const i=this._rangeStrategy.createPreview(e?e.rawValue:null,this.selected,t);this._previewStart=this._getCellCompareValue(i.start),this._previewEnd=this._getCellCompareValue(i.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow");let i=this._dateAdapter.getDayOfWeekNames("long").map((t,i)=>({long:t,narrow:e[i]}));this._weekdays=i.slice(t).concat(i.slice(0,t))}_createWeekCells(){const t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(let i=0,n=this._firstWeekOffset;i=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}_getDateInCurrentMonth(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}_hasSameMonthAndYear(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}_getCellCompareValue(t){if(t){const e=this._dateAdapter.getYear(t),i=this._dateAdapter.getMonth(t),n=this._dateAdapter.getDate(t);return new Date(e,i,n).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(t){t instanceof $?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.sBO),a.Y36(u.sG,8),a.Y36(u._A,8),a.Y36(E.Is,8),a.Y36(X,8))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){if(1&t&&a.Gf(G,5),2&t){let t;a.iGM(t=a.CRH())&&(e._matCalendarBody=t.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:[a.TTD],decls:7,vars:13,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"]],template:function(t,e){1&t&&(a.TgZ(0,"table",0),a.TgZ(1,"thead",1),a.TgZ(2,"tr"),a.YNc(3,O,2,2,"th",2),a.qZA(),a.TgZ(4,"tr"),a._UZ(5,"th",3),a.qZA(),a.qZA(),a.TgZ(6,"tbody",4),a.NdJ("selectedValueChange",function(t){return e._dateSelected(t)})("previewChange",function(t){return e._previewChanged(t)})("keydown",function(t){return e._handleCalendarBodyKeydown(t)}),a.qZA(),a.qZA()),2&t&&(a.xp6(3),a.Q6J("ngForOf",e._weekdays),a.xp6(3),a.Q6J("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("startValue",e._rangeStart)("endValue",e._rangeEnd)("comparisonStart",e._comparisonRangeStart)("comparisonEnd",e._comparisonRangeEnd)("previewStart",e._previewStart)("previewEnd",e._previewEnd)("isRange",e._isRange)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[r.sg,G],encapsulation:2,changeDetection:0}),t})(),et=(()=>{class t{constructor(t,e,i){this._changeDetectorRef=t,this._dateAdapter=e,this._dir=i,this._rerenderSubscription=d.w.EMPTY,this.selectedChange=new a.vpe,this.yearSelected=new a.vpe,this.activeDateChange=new a.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),it(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof $?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,b.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let e=0,i=[];e<24;e++)i.push(t+e),4==i.length&&(this._years.push(i.map(t=>this._createCellForYear(t))),i=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){const e=t.value;this.yearSelected.emit(this._dateAdapter.createDate(e,0,1));let i=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));this.selectedChange.emit(this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case f.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?1:-1);break;case f.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?-1:1);break;case f.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case f.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case f.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case f.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case f.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case f.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:24);break;case f.K5:case f.L_:this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_getActiveCell(){return nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(t){const e=this._dateAdapter.createDate(t,0,1),i=this._dateAdapter.getYearName(e),n=this.dateClass?this.dateClass(e,"multi-year"):void 0;return new H(t,i,i,this._shouldEnableYear(t),n)}_shouldEnableYear(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t{class t{constructor(t,e,i,n){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rerenderSubscription=d.w.EMPTY,this.selectedChange=new a.vpe,this.monthSelected=new a.vpe,this.activeDateChange=new a.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._dateAdapter.getYear(e)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof $?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedMonth(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,b.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(t){const e=t.value,i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1);this.monthSelected.emit(i);const n=this._dateAdapter.getNumDaysInMonth(i);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case f.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?1:-1);break;case f.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?-1:1);break;case f.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case f.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case f.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case f.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case f.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case f.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case f.K5:case f.L_:this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(e=>e.map(e=>this._createCellForMonth(e,t[e]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_createCellForMonth(t,e){const i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),n=this._dateAdapter.format(i,this._dateFormats.display.monthYearA11yLabel),s=this.dateClass?this.dateClass(i,"year"):void 0;return new H(t,e.toLocaleUpperCase(),n,this._shouldEnableMonth(t),s)}_shouldEnableMonth(t){const e=this._dateAdapter.getYear(this.activeDate);if(null==t||this._isYearAndMonthAfterMaxDate(e,t)||this._isYearAndMonthBeforeMinDate(e,t))return!1;if(!this.dateFilter)return!0;for(let i=this._dateAdapter.createDate(e,t,1);this._dateAdapter.getMonth(i)==t;i=this._dateAdapter.addCalendarDays(i,1))if(this.dateFilter(i))return!0;return!1}_isYearAndMonthAfterMaxDate(t,e){if(this.maxDate){const i=this._dateAdapter.getYear(this.maxDate),n=this._dateAdapter.getMonth(this.maxDate);return t>i||t===i&&e>n}return!1}_isYearAndMonthBeforeMinDate(t,e){if(this.minDate){const i=this._dateAdapter.getYear(this.minDate),n=this._dateAdapter.getMonth(this.minDate);return t{class t{constructor(t,e,i,n,s){this._intl=t,this.calendar=e,this._dateAdapter=i,this._dateFormats=n,this._buttonDescriptionId="mat-calendar-button-"+rt++,this.calendar.stateChanges.subscribe(()=>s.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)-nt(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),e=t+24-1,i=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),n=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1));return this._intl.formatYearRange(i,n)}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(t,e){return"month"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(e):"year"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e):it(this._dateAdapter,t,e,this.calendar.minDate,this.calendar.maxDate)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(U),a.Y36((0,a.Gpc)(()=>ct)),a.Y36(u._A,8),a.Y36(u.sG,8),a.Y36(a.sBO))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:P,decls:10,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],[1,"mat-calendar-arrow"],[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(t,e){1&t&&(a.F$t(),a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.TgZ(2,"button",2),a.NdJ("click",function(){return e.currentPeriodClicked()}),a.TgZ(3,"span"),a._uU(4),a.qZA(),a._UZ(5,"div",3),a.qZA(),a._UZ(6,"div",4),a.Hsn(7),a.TgZ(8,"button",5),a.NdJ("click",function(){return e.previousClicked()}),a.qZA(),a.TgZ(9,"button",6),a.NdJ("click",function(){return e.nextClicked()}),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.xp6(2),a.uIk("aria-label",e.periodButtonLabel)("aria-describedby",e._buttonDescriptionId),a.xp6(1),a.uIk("id",e._buttonDescriptionId),a.xp6(1),a.Oqu(e.periodButtonText),a.xp6(1),a.ekj("mat-calendar-invert","month"!==e.calendar.currentView),a.xp6(3),a.Q6J("disabled",!e.previousEnabled()),a.uIk("aria-label",e.prevButtonLabel),a.xp6(1),a.Q6J("disabled",!e.nextEnabled()),a.uIk("aria-label",e.nextButtonLabel))},directives:[c.lW,n.Qr],encapsulation:2,changeDetection:0}),t})(),ct=(()=>{class t{constructor(t,e,i,n){this._dateAdapter=e,this._dateFormats=i,this._changeDetectorRef=n,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new a.vpe,this.yearSelected=new a.vpe,this.monthSelected=new a.vpe,this.viewChanged=new a.vpe(!0),this._userSelection=new a.vpe,this.stateChanges=new h.xQ,this._intlChanges=t.changes.subscribe(()=>{n.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){this._selected=t instanceof $?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(t){const e=this._currentView!==t?t:null;this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),e&&this.viewChanged.emit(e)}ngAfterContentInit(){this._calendarHeaderPortal=new o.C5(this.headerComponent||at),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(t){const e=t.minDate||t.maxDate||t.dateFilter;if(e&&!e.firstChange){const t=this._getCurrentViewComponent();t&&(this._changeDetectorRef.detectChanges(),t._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){const t=this.currentView;let e;e="month"===t?this.monthView:"year"===t?this.yearView:this.multiYearView,e._init()}_dateSelected(t){const e=t.value;(this.selected instanceof $||e&&!this._dateAdapter.sameDate(e,this.selected))&&this.selectedChange.emit(e),this._userSelection.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_goToDateInView(t,e){this.activeDate=t,this.currentView=e}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(U),a.Y36(u._A,8),a.Y36(u.sG,8),a.Y36(a.sBO))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-calendar"]],viewQuery:function(t,e){if(1&t&&(a.Gf(tt,5),a.Gf(ot,5),a.Gf(et,5)),2&t){let t;a.iGM(t=a.CRH())&&(e.monthView=t.first),a.iGM(t=a.CRH())&&(e.yearView=t.first),a.iGM(t=a.CRH())&&(e.multiYearView=t.first)}},hostAttrs:[1,"mat-calendar"],inputs:{startView:"startView",startAt:"startAt",selected:"selected",minDate:"minDate",maxDate:"maxDate",headerComponent:"headerComponent",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[a._Bn([W]),a.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(t,e){1&t&&(a.YNc(0,D,0,0,"ng-template",0),a.TgZ(1,"div",1),a.YNc(2,M,1,8,"mat-month-view",2),a.YNc(3,L,1,6,"mat-year-view",3),a.YNc(4,N,1,6,"mat-multi-year-view",4),a.qZA()),2&t&&(a.Q6J("cdkPortalOutlet",e._calendarHeaderPortal),a.xp6(1),a.Q6J("ngSwitch",e.currentView),a.xp6(1),a.Q6J("ngSwitchCase","month"),a.xp6(1),a.Q6J("ngSwitchCase","year"),a.xp6(1),a.Q6J("ngSwitchCase","multi-year"))},directives:[o.Pl,n.kH,r.RF,r.n9,tt,ot,et],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(33% / 7 - 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:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;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}.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}\n'],encapsulation:2,changeDetection:0}),t})();const lt={transformPanel:(0,y.X$)("transformPanel",[(0,y.eR)("void => enter-dropdown",(0,y.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,y.F4)([(0,y.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,y.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,y.eR)("void => enter-dialog",(0,y.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,y.F4)([(0,y.oB)({opacity:0,transform:"scale(0.7)"}),(0,y.oB)({transform:"none",opacity:1})]))),(0,y.eR)("* => void",(0,y.jt)("100ms linear",(0,y.oB)({opacity:0})))]),fadeInCalendar:(0,y.X$)("fadeInCalendar",[(0,y.SB)("void",(0,y.oB)({opacity:0})),(0,y.SB)("enter",(0,y.oB)({opacity:1})),(0,y.eR)("void => *",(0,y.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let ut=0;const ht=new a.OlP("mat-datepicker-scroll-strategy"),dt={provide:ht,deps:[s.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class pt{constructor(t){this._elementRef=t}}const gt=(0,u.pj)(pt);let ft=(()=>{class t extends gt{constructor(t,e,i,n,s,o){super(t),this._changeDetectorRef=e,this._globalModel=i,this._dateAdapter=n,this._rangeSelectionStrategy=s,this._subscriptions=new d.w,this._animationDone=new h.xQ,this._actionsPortal=null,this._closeButtonText=o.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,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(t){const e=this._model.selection,i=t.value,n=e instanceof $;if(n&&this._rangeSelectionStrategy){const n=this._rangeSelectionStrategy.selectionFinished(i,e,t.event);this._model.updateSelection(n,this)}else!i||!n&&this._dateAdapter.sameDate(i,e)||this._model.add(i);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)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(J),a.Y36(u._A),a.Y36(X,8),a.Y36(U))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){if(1&t&&a.Gf(ct,5),2&t){let t;a.iGM(t=a.CRH())&&(e._calendar=t.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&a.WFA("@transformPanel.done",function(){return e._animationDone.next()}),2&t&&(a.d8E("@transformPanel",e._animationState),a.ekj("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[a.qOj],decls:5,vars:20,consts:[["cdkTrapFocus","",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(t,e){1&t&&(a.TgZ(0,"div",0),a.TgZ(1,"mat-calendar",1),a.NdJ("yearSelected",function(t){return e.datepicker._selectYear(t)})("monthSelected",function(t){return e.datepicker._selectMonth(t)})("viewChanged",function(t){return e.datepicker._viewChanged(t)})("_userSelection",function(t){return e._handleUserSelection(t)}),a.qZA(),a.YNc(2,z,0,0,"ng-template",2),a.TgZ(3,"button",3),a.NdJ("focus",function(){return e._closeButtonFocused=!0})("blur",function(){return e._closeButtonFocused=!1})("click",function(){return e.datepicker.close()}),a._uU(4),a.qZA(),a.qZA()),2&t&&(a.ekj("mat-datepicker-content-container-with-actions",e._actionsPortal),a.xp6(1),a.Q6J("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._getMinDate())("maxDate",e.datepicker._getMaxDate())("dateFilter",e.datepicker._getDateFilter())("headerComponent",e.datepicker.calendarHeaderComponent)("selected",e._getSelected())("dateClass",e.datepicker.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("@fadeInCalendar","enter"),a.xp6(1),a.Q6J("cdkPortalOutlet",e._actionsPortal),a.xp6(1),a.ekj("cdk-visually-hidden",!e._closeButtonFocused),a.Q6J("color",e.color||"primary"),a.xp6(1),a.Oqu(e._closeButtonText))},directives:[n.mK,ct,r.mk,o.Pl,c.lW],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.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}}\n"],encapsulation:2,data:{animation:[lt.transformPanel,lt.fadeInCalendar]},changeDetection:0}),t})(),mt=(()=>{class t{constructor(t,e,i,n,s,o,r,c,l){this._overlay=e,this._ngZone=i,this._viewContainerRef=n,this._dateAdapter=o,this._dir=r,this._model=l,this._inputStateChanges=d.w.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new a.vpe,this.monthSelected=new a.vpe,this.viewChanged=new a.vpe(!0),this.openedStream=new a.vpe,this.closedStream=new a.vpe,this._opened=!1,this.id="mat-datepicker-"+ut++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new h.xQ,this._scrollStrategy=s}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(t){this._color=t}get touchUi(){return this._touchUi}set touchUi(t){this._touchUi=(0,w.Ig)(t)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(t){const e=(0,w.Ig)(t);e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(t){this._restoreFocus=(0,w.Ig)(t)}get panelClass(){return this._panelClass}set panelClass(t){this._panelClass=(0,w.du)(t)}get opened(){return this._opened}set opened(t){(0,w.Ig)(t)?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(t){const e=t.xPosition||t.yPosition;if(e&&!e.firstChange&&this._overlayRef){const t=this._overlayRef.getConfig().positionStrategy;t instanceof s._G&&(this._setConnectedPositions(t),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(t){this._model.add(t)}_selectYear(t){this.yearSelected.emit(t)}_selectMonth(t){this.monthSelected.emit(t)}_viewChanged(t){this.viewChanged.emit(t)}registerInput(t){return this._inputStateChanges.unsubscribe(),this.datepickerInput=t,this._inputStateChanges=t.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(t){this._actionsPortal=t}removeActions(t){t===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,A.ht)(),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,m.q)(1)).subscribe(()=>this._destroyOverlay())}const t=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(t)):t()}_applyPendingSelection(){var t,e;null===(e=null===(t=this._componentRef)||void 0===t?void 0:t.instance)||void 0===e||e._applyPendingSelection()}_forwardContentValues(t){t.datepicker=this,t.color=this.color,t._actionsPortal=this._actionsPortal}_openOverlay(){this._destroyOverlay();const t=this.touchUi,e=this.datepickerInput.getOverlayLabelId(),i=new o.C5(ft,this._viewContainerRef),n=this._overlayRef=this._overlay.create(new s.X_({positionStrategy:t?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[t?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:t?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(t?"dialog":"popup")})),r=n.overlayElement;r.setAttribute("role","dialog"),e&&r.setAttribute("aria-labelledby",e),t&&r.setAttribute("aria-modal","true"),this._getCloseStream(n).subscribe(t=>{t&&t.preventDefault(),this.close()}),this._componentRef=n.attach(i),this._forwardContentValues(this._componentRef.instance),t||this._ngZone.onStable.pipe((0,m.q)(1)).subscribe(()=>n.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(t)}_setConnectedPositions(t){const e="end"===this.xPosition?"end":"start",i="start"===e?"end":"start",n="above"===this.yPosition?"bottom":"top",s="top"===n?"bottom":"top";return t.withPositions([{originX:e,originY:s,overlayX:e,overlayY:n},{originX:e,originY:n,overlayX:e,overlayY:s},{originX:i,originY:s,overlayX:i,overlayY:n},{originX:i,originY:n,overlayX:i,overlayY:s}])}_getCloseStream(t){return(0,p.T)(t.backdropClick(),t.detachments(),t.keydownEvents().pipe((0,_.h)(t=>t.keyCode===f.hY&&!(0,f.Vb)(t)||this.datepickerInput&&(0,f.Vb)(t,"altKey")&&t.keyCode===f.LH)))}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(s.aV),a.Y36(a.R0b),a.Y36(a.s_b),a.Y36(ht),a.Y36(u._A,8),a.Y36(E.Is,8),a.Y36(r.K0,8),a.Y36(J))},t.\u0275dir=a.lG2({type:t,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",restoreFocus:"restoreFocus",panelClass:"panelClass",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[a.TTD]}),t})(),bt=(()=>{class t extends mt{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=a.n5z(t)))(i||t)}}(),t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[a._Bn([W,{provide:mt,useExisting:t}]),a.qOj],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t})();class _t{constructor(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}let wt=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._dateAdapter=e,this._dateFormats=i,this.dateChange=new a.vpe,this.dateInput=new a.vpe,this.stateChanges=new h.xQ,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=d.w.EMPTY,this._localeSubscription=d.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value));return!e||this._matchesFilter(e)?null:{matDatepickerFilter:!0}},this._minValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),i=this._getMinDate();return!i||!e||this._dateAdapter.compareDate(i,e)<=0?null:{matDatepickerMin:{min:i,actual:e}}},this._maxValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),i=this._getMaxDate();return!i||!e||this._dateAdapter.compareDate(i,e)>=0?null:{matDatepickerMax:{max:i,actual:e}}},this._lastValueValid=!1,this._localeSubscription=e.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(t){this._assignValueProgrammatically(t)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(t){const e=(0,w.Ig)(t),i=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this.stateChanges.next(void 0)),e&&this._isInitialized&&i.blur&&i.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(t){this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(t=>{if(this._shouldHandleChangeEvent(t)){const e=this._getValueFromModel(t.selection);this._lastValueValid=this._isValidValue(e),this._cvaOnChange(e),this._onTouched(),this._formatValue(e),this.dateInput.emit(new _t(this,this._elementRef.nativeElement)),this.dateChange.emit(new _t(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(t){(function(t,e){const i=Object.keys(t);for(let n of i){const{previousValue:i,currentValue:s}=t[n];if(!e.isDateInstance(i)||!e.isDateInstance(s))return!0;if(!e.sameDate(i,s))return!0}return!1})(t,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(t){this._validatorOnChange=t}validate(t){return this._validator?this._validator(t):null}writeValue(t){this._assignValueProgrammatically(t)}registerOnChange(t){this._cvaOnChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_onKeydown(t){t.altKey&&t.keyCode===f.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),t.preventDefault())}_onInput(t){const e=this._lastValueValid;let i=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(i),i=this._dateAdapter.getValidDateOrNull(i),this._dateAdapter.sameDate(i,this.value)?(t&&!this.value&&this._cvaOnChange(i),e!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(i),this._cvaOnChange(i),this.dateInput.emit(new _t(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new _t(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(t){this._elementRef.nativeElement.value=t?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""}_assignValue(t){this._model?(this._assignValueToModel(t),this._pendingValue=null):this._pendingValue=t}_isValidValue(t){return!t||this._dateAdapter.isValid(t)}_parentDisabled(){return!1}_assignValueProgrammatically(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=this._isValidValue(t),t=this._dateAdapter.getValidDateOrNull(t),this._assignValue(t),this._formatValue(t)}_matchesFilter(t){const e=this._getDateFilter();return!e||e(t)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(u._A,8),a.Y36(u.sG,8))},t.\u0275dir=a.lG2({type:t,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[a.TTD]}),t})();const At={provide:v.JU,useExisting:(0,a.Gpc)(()=>vt),multi:!0},yt={provide:v.Cf,useExisting:(0,a.Gpc)(()=>vt),multi:!0};let vt=(()=>{class t extends wt{constructor(t,e,i,n){super(t,e,i),this._formField=n,this._closedSubscription=d.w.EMPTY,this._validator=v.kI.compose(super._getValidators())}set matDatepicker(t){t&&(this._datepicker=t,this._closedSubscription=t.closedStream.subscribe(()=>this._onTouched()),this._registerModel(t.registerInput(this)))}get min(){return this._min}set min(t){const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(e,this._min)||(this._min=e,this._validatorOnChange())}get max(){return this._max}set max(t){const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(e,this._max)||(this._max=e,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(t){const e=this._matchesFilter(this.value);this._dateFilter=t,this._matchesFilter(this.value)!==e&&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(t){return t}_assignValueToModel(t){this._model&&this._model.updateSelection(t,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(t){return t.source!==this}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(u._A,8),a.Y36(u.sG,8),a.Y36(T.G_,8))},t.\u0275dir=a.lG2({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(t,e){1&t&&a.NdJ("input",function(t){return e._onInput(t.target.value)})("change",function(){return e._onChange()})("blur",function(){return e._onBlur()})("keydown",function(t){return e._onKeydown(t)}),2&t&&(a.Ikx("disabled",e.disabled),a.uIk("aria-haspopup",e._datepicker?"dialog":null)("aria-owns",(null==e._datepicker?null:e._datepicker.opened)&&e._datepicker.id||null)("min",e.min?e._dateAdapter.toIso8601(e.min):null)("max",e.max?e._dateAdapter.toIso8601(e.max):null)("data-mat-calendar",e._datepicker?e._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[a._Bn([At,yt,{provide:C.Jk,useExisting:t}]),a.qOj]}),t})(),Tt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.lG2({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),t})(),Ct=(()=>{class t{constructor(t,e,i){this._intl=t,this._changeDetectorRef=e,this._stateChanges=d.w.EMPTY;const n=Number(i);this.tabIndex=n||0===n?n:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(t){this._disabled=(0,w.Ig)(t)}ngOnChanges(t){t.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())}_watchStateChanges(){const t=this.datepicker?this.datepicker.stateChanges:(0,g.of)(),e=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,g.of)(),i=this.datepicker?(0,p.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,g.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,p.T)(this._intl.changes,t,e,i).subscribe(()=>this._changeDetectorRef.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(U),a.Y36(a.sBO),a.$8M("tabindex"))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,e,i){if(1&t&&a.Suo(i,Tt,5),2&t){let t;a.iGM(t=a.CRH())&&(e._customIcon=t.first)}},viewQuery:function(t,e){if(1&t&&a.Gf(Z,5),2&t){let t;a.iGM(t=a.CRH())&&(e._button=t.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(t,e){1&t&&a.NdJ("click",function(t){return e._open(t)}),2&t&&(a.uIk("tabindex",null)("data-mat-calendar",e.datepicker?e.datepicker.id:null),a.ekj("mat-datepicker-toggle-active",e.datepicker&&e.datepicker.opened)("mat-accent",e.datepicker&&"accent"===e.datepicker.color)("mat-warn",e.datepicker&&"warn"===e.datepicker.color))},inputs:{tabIndex:"tabIndex",disabled:"disabled",datepicker:["for","datepicker"],ariaLabel:["aria-label","ariaLabel"],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[a.TTD],ngContentSelectors:F,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(t,e){1&t&&(a.F$t(q),a.TgZ(0,"button",0,1),a.YNc(2,B,2,0,"svg",2),a.Hsn(3),a.qZA()),2&t&&(a.Q6J("disabled",e.disabled)("disableRipple",e.disableRipple),a.uIk("aria-haspopup",e.datepicker?"dialog":null)("aria-label",e.ariaLabel||e._intl.openCalendarLabel)("tabindex",e.disabled?-1:e.tabIndex),a.xp6(2),a.Q6J("ngIf",!e._customIcon))},directives:[c.lW,r.O5],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}\n"],encapsulation:2,changeDetection:0}),t})(),Et=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({providers:[U,dt],imports:[[r.ez,c.ot,s.U8,n.rt,o.eL,u.BQ],l.ZD]}),t})()},84608:function(t,e,i){"use strict";i.d(e,{WI:function(){return k},uw:function(){return P},H8:function(){return N},vA:function(){return A},xY:function(){return L},Is:function(){return z},so:function(){return E},uh:function(){return M}});var n=i(2522),s=i(26899),o=i(31572),r=i(71522),a=i(22526),c=i(61511),l=i(55959),u=i(31450),h=i(40878),d=i(43835),p=i(90611),g=i(56238),f=i(11353),m=i(10709),b=i(75842),_=i(24621);function w(t,e){}class A{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=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const y={dialogContainer:(0,m.X$)("dialogContainer",[(0,m.SB)("void, exit",(0,m.oB)({opacity:0,transform:"scale(0.7)"})),(0,m.SB)("enter",(0,m.oB)({transform:"none"})),(0,m.eR)("* => enter",(0,m.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,m.oB)({transform:"none",opacity:1}))),(0,m.eR)("* => void, * => exit",(0,m.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,m.oB)({opacity:0})))])};let v=(()=>{class t extends s.en{constructor(t,e,i,n,s,r){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=i,this._config=s,this._focusMonitor=r,this._animationStateChanged=new o.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=n}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=(0,f.ht)(),i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,f.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=(0,f.ht)();return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.SBq),o.Y36(_.qV),o.Y36(o.sBO),o.Y36(c.K0,8),o.Y36(A),o.Y36(_.tE))},t.\u0275dir=o.lG2({type:t,viewQuery:function(t,e){if(1&t&&o.Gf(s.Pl,7),2&t){let t;o.iGM(t=o.CRH())&&(e._portalOutlet=t.first)}},features:[o.qOj]}),t})(),T=(()=>{class t extends v{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&o.WFA("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(o.Ikx("id",e._id),o.uIk("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),o.d8E("@dialogContainer",e._state))},features:[o.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&o.YNc(0,w,0,0,"ng-template",0)},directives:[s.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[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.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}\n"],encapsulation:2,data:{animation:[y.dialogContainer]}}),t})(),C=0;class E{constructor(t,e,i="mat-dialog-"+C++){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new l.xQ,this._afterClosed=new l.xQ,this._beforeClosed=new l.xQ,this._state=0,e._id=i,e._animationStateChanged.pipe((0,d.h)(t=>"opened"===t.state),(0,p.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,d.h)(t=>"closed"===t.state),(0,p.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe((0,d.h)(t=>t.keyCode===b.hY&&!this.disableClose&&!(0,b.Vb)(t))).subscribe(t=>{t.preventDefault(),S(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():S(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe((0,d.h)(t=>"closing"===t.state),(0,p.q)(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function S(t,e,i){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(i)}const k=new o.OlP("MatDialogData"),I=new o.OlP("mat-dialog-default-options"),x=new o.OlP("mat-dialog-scroll-strategy"),R={provide:x,deps:[n.aV],useFactory:function(t){return()=>t.scrollStrategies.block()}};let O=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c){this._overlay=t,this._injector=e,this._defaultOptions=i,this._parentDialog=n,this._overlayContainer=s,this._dialogRefConstructor=r,this._dialogContainerType=a,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new l.xQ,this._afterOpenedAtThisLevel=new l.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,u.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,g.O)(void 0))),this._scrollStrategy=o}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new A)).id&&this.getDialogById(e.id);const i=this._createOverlay(e),n=this._attachDialogContainer(i,e),s=this._attachDialogContent(t,n,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),n._initializeWithAttachedContent(),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new n.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const i=o.zs3.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:A,useValue:e}]}),n=new s.C5(this._dialogContainerType,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}_attachDialogContent(t,e,i,n){const r=new this._dialogRefConstructor(i,e,n.id);if(t instanceof o.Rgc)e.attachTemplatePortal(new s.UE(t,null,{$implicit:n.data,dialogRef:r}));else{const i=this._createInjector(n,r,e),o=e.attachComponentPortal(new s.C5(t,n.viewContainerRef,i));r.componentInstance=o.instance}return r.updateSize(n.width,n.height).updatePosition(n.position),r}_createInjector(t,e,i){const n=t&&t.viewContainerRef&&t.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||n&&n.get(a.Is,null,o.XFs.Optional)||s.push({provide:a.Is,useValue:{value:t.direction,change:(0,h.of)()}}),o.zs3.create({parent:n||this._injector,providers:s})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let i=e.length-1;i>-1;i--){let n=e[i];n===t||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.aV),o.Y36(o.zs3),o.Y36(void 0),o.Y36(void 0),o.Y36(n.Xj),o.Y36(void 0),o.Y36(o.DyG),o.Y36(o.DyG),o.Y36(o.OlP))},t.\u0275dir=o.lG2({type:t}),t})(),P=(()=>{class t extends O{constructor(t,e,i,n,s,o,r){super(t,e,n,o,r,s,E,T,k)}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.aV),o.LFG(o.zs3),o.LFG(c.Ye,8),o.LFG(I,8),o.LFG(x),o.LFG(t,12),o.LFG(n.Xj))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t})(),D=0,M=(()=>{class t{constructor(t,e,i){this._dialogRef=t,this._elementRef=e,this._dialog=i,this.id="mat-dialog-title-"+D++}ngOnInit(){this._dialogRef||(this._dialogRef=function(t,e){let i=t.nativeElement.parentElement;for(;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?e.find(t=>t.id===i.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(E,8),o.Y36(o.SBq),o.Y36(P))},t.\u0275dir=o.lG2({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&o.Ikx("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),L=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),N=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})(),z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[P,R],imports:[[n.U8,s.eL,r.BQ],r.BQ]}),t})()},27679:function(t,e,i){"use strict";i.d(e,{d:function(){return r},t:function(){return a}});var n=i(19861),s=i(71522),o=i(31572);let r=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(t){this._vertical=(0,n.Ig)(t)}get inset(){return this._inset}set inset(t){this._inset=(0,n.Ig)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(o.uIk("aria-orientation",e.vertical?"vertical":"horizontal"),o.ekj("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},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}\n"],encapsulation:2,changeDetection:0}),t})(),a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[s.BQ],s.BQ]}),t})()},45001:function(t,e,i){"use strict";i.d(e,{pp:function(){return H},To:function(){return G},ib:function(){return B},HS:function(){return N},u4:function(){return F},yz:function(){return q},yK:function(){return U}});var n=i(31572),s=i(19861),o=i(55959),r=i(87570),a=i(4230);let c=0;const l=new n.OlP("CdkAccordion");let u=(()=>{class t{constructor(){this._stateChanges=new o.xQ,this._openCloseAllActions=new o.xQ,this.id="cdk-accordion-"+c++,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=(0,s.Ig)(t)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[n._Bn([{provide:l,useExisting:t}]),n.TTD]}),t})(),h=0,d=(()=>{class t{constructor(t,e,i){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=i,this._openCloseAllSubscription=r.w.EMPTY,this.closed=new n.vpe,this.opened=new n.vpe,this.destroyed=new n.vpe,this.expandedChange=new n.vpe,this.id="cdk-accordion-child-"+h++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=i.listen((t,e)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===e&&this.id!==t&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(t){t=(0,s.Ig)(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(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(t){this._disabled=(0,s.Ig)(t)}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(t=>{this.disabled||(this.expanded=t)})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(l,12),n.Y36(n.sBO),n.Y36(a.A8))},t.\u0275dir=n.lG2({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[n._Bn([{provide:l,useValue:void 0}])]}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})();var g=i(26899),f=i(61511),m=i(71522),b=i(24621),_=i(98720),w=i(56238),A=i(43835),y=i(90611),v=i(75842),T=i(43490),C=i(70653),E=i(31906),S=i(10709);const k=["body"];function I(t,e){}const x=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],R=["mat-expansion-panel-header","*","mat-action-row"];function O(t,e){if(1&t&&n._UZ(0,"span",2),2&t){const t=n.oxw();n.Q6J("@indicatorRotate",t._getExpandedState())}}const P=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],D=["mat-panel-title","mat-panel-description","*"],M=new n.OlP("MAT_ACCORDION"),L={indicatorRotate:(0,S.X$)("indicatorRotate",[(0,S.SB)("collapsed, void",(0,S.oB)({transform:"rotate(0deg)"})),(0,S.SB)("expanded",(0,S.oB)({transform:"rotate(180deg)"})),(0,S.eR)("expanded <=> collapsed, void => collapsed",(0,S.jt)("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),bodyExpansion:(0,S.X$)("bodyExpansion",[(0,S.SB)("collapsed, void",(0,S.oB)({height:"0px",visibility:"hidden"})),(0,S.SB)("expanded",(0,S.oB)({height:"*",visibility:"visible"})),(0,S.eR)("expanded <=> collapsed, void => collapsed",(0,S.jt)("225ms cubic-bezier(0.4,0.0,0.2,1)"))])};let N=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Rgc))},t.\u0275dir=n.lG2({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),z=0;const Z=new n.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let B=(()=>{class t extends d{constructor(t,e,i,s,r,a,c){super(t,e,i),this._viewContainerRef=s,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new n.vpe,this.afterCollapse=new n.vpe,this._inputChanges=new o.xQ,this._headerId="mat-expansion-panel-header-"+z++,this._bodyAnimationDone=new o.xQ,this.accordion=t,this._document=r,this._bodyAnimationDone.pipe((0,_.x)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{"void"!==t.fromState&&("expanded"===t.toState?this.afterExpand.emit():"collapsed"===t.toState&&this.afterCollapse.emit())}),c&&(this.hideToggle=c.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=(0,s.Ig)(t)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}_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.opened.pipe((0,w.O)(null),(0,A.h)(()=>this.expanded&&!this._portal),(0,y.q)(1)).subscribe(()=>{this._portal=new g.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(M,12),n.Y36(n.sBO),n.Y36(a.A8),n.Y36(n.s_b),n.Y36(f.K0),n.Y36(T.Qb,8),n.Y36(Z,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,i){if(1&t&&n.Suo(i,N,5),2&t){let t;n.iGM(t=n.CRH())&&(e._lazyContent=t.first)}},viewQuery:function(t,e){if(1&t&&n.Gf(k,5),2&t){let t;n.iGM(t=n.CRH())&&(e._body=t.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&n.ekj("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[n._Bn([{provide:M,useValue:void 0}]),n.qOj,n.TTD],ngContentSelectors:R,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(n.F$t(x),n.Hsn(0),n.TgZ(1,"div",0,1),n.NdJ("@bodyExpansion.done",function(t){return e._bodyAnimationDone.next(t)}),n.TgZ(3,"div",2),n.Hsn(4,1),n.YNc(5,I,0,0,"ng-template",3),n.qZA(),n.Hsn(6,2),n.qZA()),2&t&&(n.xp6(1),n.Q6J("@bodyExpansion",e._getExpandedState())("id",e.id),n.uIk("aria-labelledby",e._headerId),n.xp6(4),n.Q6J("cdkPortalOutlet",e._portal))},directives:[g.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-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 button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[L.bodyExpansion]},changeDetection:0}),t})(),q=(()=>{class t{constructor(t,e,i,n,s,o){this.panel=t,this._element=e,this._focusMonitor=i,this._changeDetectorRef=n,this._animationMode=o,this._parentChangeSubscription=r.w.EMPTY;const a=t.accordion?t.accordion._stateChanges.pipe((0,A.h)(t=>!(!t.hideToggle&&!t.togglePosition))):C.E;this._parentChangeSubscription=(0,E.T)(t.opened,t.closed,a,t._inputChanges.pipe((0,A.h)(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe((0,A.h)(()=>t._containsFocus())).subscribe(()=>i.focusVia(e,"program")),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.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 t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}_keydown(t){switch(t.keyCode){case v.L_:case v.K5:(0,v.Vb)(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t,e){t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(t=>{t&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(B,1),n.Y36(n.SBq),n.Y36(b.tE),n.Y36(n.sBO),n.Y36(Z,8),n.Y36(T.Qb,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&n.NdJ("click",function(){return e._toggle()})("keydown",function(t){return e._keydown(t)}),2&t&&(n.uIk("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),n.Udp("height",e._getHeaderHeight()),n.ekj("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:D,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(n.F$t(P),n.TgZ(0,"span",0),n.Hsn(1),n.Hsn(2,1),n.Hsn(3,2),n.qZA(),n.YNc(4,O,1,1,"span",1)),2&t&&(n.xp6(4),n.Q6J("ngIf",e._showToggle()))},directives:[f.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}[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 .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[L.indicatorRotate]},changeDetection:0}),t})(),F=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t})(),U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),H=(()=>{class t extends u{constructor(){super(...arguments),this._ownHeaders=new n.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(t){this._hideToggle=(0,s.Ig)(t)}ngAfterContentInit(){this._headers.changes.pipe((0,w.O)(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new b.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(t){this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["mat-accordion"]],contentQueries:function(t,e,i){if(1&t&&n.Suo(i,q,5),2&t){let t;n.iGM(t=n.CRH())&&(e._headers=t)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&n.ekj("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[n._Bn([{provide:M,useExisting:t}]),n.qOj]}),t})(),G=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[f.ez,m.BQ,p,g.eL]]}),t})()},66283:function(t,e,i){"use strict";i.d(e,{G_:function(){return W},TO:function(){return z},KE:function(){return X},Eo:function(){return B},lN:function(){return tt},bx:function(){return U},hX:function(){return H},UY:function(){return G},R9:function(){return K}});var n=i(36337),s=i(61511),o=i(31572),r=i(71522),a=i(19861),c=i(55959),l=i(31906),u=i(87254),h=i(56238),d=i(25416),p=i(90611),g=i(10709),f=i(43490),m=i(22526),b=i(11353);const _=["underline"],w=["connectionContainer"],A=["inputContainer"],y=["label"];function v(t,e){1&t&&(o.ynx(0),o.TgZ(1,"div",14),o._UZ(2,"div",15),o._UZ(3,"div",16),o._UZ(4,"div",17),o.qZA(),o.TgZ(5,"div",18),o._UZ(6,"div",15),o._UZ(7,"div",16),o._UZ(8,"div",17),o.qZA(),o.BQk())}function T(t,e){1&t&&(o.TgZ(0,"div",19),o.Hsn(1,1),o.qZA())}function C(t,e){if(1&t&&(o.ynx(0),o.Hsn(1,2),o.TgZ(2,"span"),o._uU(3),o.qZA(),o.BQk()),2&t){const t=o.oxw(2);o.xp6(3),o.Oqu(t._control.placeholder)}}function E(t,e){1&t&&o.Hsn(0,3,["*ngSwitchCase","true"])}function S(t,e){1&t&&(o.TgZ(0,"span",23),o._uU(1," *"),o.qZA())}function k(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"label",20,21),o.NdJ("cdkObserveContent",function(){return o.CHM(t),o.oxw().updateOutlineGap()}),o.YNc(2,C,4,1,"ng-container",12),o.YNc(3,E,1,0,"ng-content",12),o.YNc(4,S,2,0,"span",22),o.qZA()}if(2&t){const t=o.oxw();o.ekj("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),o.Q6J("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),o.uIk("for",t._control.id)("aria-owns",t._control.id),o.xp6(2),o.Q6J("ngSwitchCase",!1),o.xp6(1),o.Q6J("ngSwitchCase",!0),o.xp6(1),o.Q6J("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function I(t,e){1&t&&(o.TgZ(0,"div",24),o.Hsn(1,4),o.qZA())}function x(t,e){if(1&t&&(o.TgZ(0,"div",25,26),o._UZ(2,"span",27),o.qZA()),2&t){const t=o.oxw();o.xp6(2),o.ekj("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function R(t,e){if(1&t&&(o.TgZ(0,"div"),o.Hsn(1,5),o.qZA()),2&t){const t=o.oxw();o.Q6J("@transitionMessages",t._subscriptAnimationState)}}function O(t,e){if(1&t&&(o.TgZ(0,"div",31),o._uU(1),o.qZA()),2&t){const t=o.oxw(2);o.Q6J("id",t._hintLabelId),o.xp6(1),o.Oqu(t.hintLabel)}}function P(t,e){if(1&t&&(o.TgZ(0,"div",28),o.YNc(1,O,2,2,"div",29),o.Hsn(2,6),o._UZ(3,"div",30),o.Hsn(4,7),o.qZA()),2&t){const t=o.oxw();o.Q6J("@transitionMessages",t._subscriptAnimationState),o.xp6(1),o.Q6J("ngIf",t.hintLabel)}}const D=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],M=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let L=0;const N=new o.OlP("MatError");let z=(()=>{class t{constructor(t,e){this.id="mat-error-"+L++,t||e.nativeElement.setAttribute("aria-live","polite")}}return t.\u0275fac=function(e){return new(e||t)(o.$8M("aria-live"),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&o.uIk("id",e.id)},inputs:{id:"id"},features:[o._Bn([{provide:N,useExisting:t}])]}),t})();const Z={transitionMessages:(0,g.X$)("transitionMessages",[(0,g.SB)("enter",(0,g.oB)({opacity:1,transform:"translateY(0%)"})),(0,g.eR)("void => enter",[(0,g.oB)({opacity:0,transform:"translateY(-5px)"}),(0,g.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let B=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t}),t})(),q=0;const F=new o.OlP("MatHint");let U=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+q++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(o.uIk("id",e.id)("align",null),o.ekj("mat-form-field-hint-end","end"===e.align))},inputs:{align:"align",id:"id"},features:[o._Bn([{provide:F,useExisting:t}])]}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-label"]]}),t})(),G=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-placeholder"]]}),t})();const j=new o.OlP("MatPrefix"),Y=new o.OlP("MatSuffix");let K=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["","matSuffix",""]],features:[o._Bn([{provide:Y,useExisting:t}])]}),t})(),V=0;class ${constructor(t){this._elementRef=t}}const J=(0,r.pj)($,"primary"),Q=new o.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),W=new o.OlP("MatFormField");let X=(()=>{class t extends J{constructor(t,e,i,n,s,o,r,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=n,this._defaults=s,this._platform=o,this._ngZone=r,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new c.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+V++,this._labelId="mat-form-field-label-"+V++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=(0,a.Ig)(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe((0,h.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe((0,d.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,d.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,l.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,h.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,h.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,d.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(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_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,u.R)(this._label.nativeElement,"transitionend").pipe((0,p.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 t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,i=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),i&&t.push(i.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,i=0;const n=this._connectionContainerRef.nativeElement,s=n.querySelectorAll(".mat-form-field-outline-start"),o=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=n.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const o=this._getStartEnd(s),r=t.children,a=this._getStartEnd(r[0].getBoundingClientRect());let c=0;for(let t=0;t0?.75*c+10:0}for(let r=0;r{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[s.ez,r.BQ,n.Q8],r.BQ]}),t})()},43691:function(t,e,i){"use strict";i.d(e,{Hw:function(){return D},Ps:function(){return M},jv:function(){return C}});var n=i(31572),s=i(71522),o=i(19861),r=i(61511),a=i(40878),c=i(31225),l=i(3148),u=i(87570),h=i(66599),d=i(79996),p=i(47727),g=i(11520),f=i(1055),m=i(90611),b=i(29063),_=i(30269);const w=["*"];function A(t){return Error(`Unable to find icon with the name "${t}"`)}function y(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function v(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class T{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let C=(()=>{class t{constructor(t,e,i,n){this._httpClient=t,this._sanitizer=e,this._errorHandler=n,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i}addSvgIcon(t,e,i){return this.addSvgIconInNamespace("",t,e,i)}addSvgIconLiteral(t,e,i){return this.addSvgIconLiteralInNamespace("",t,e,i)}addSvgIconInNamespace(t,e,i,n){return this._addSvgIconConfig(t,e,new T(i,null,n))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,i,s){const o=this._sanitizer.sanitize(n.q3G.HTML,i);if(!o)throw v(i);return this._addSvgIconConfig(t,e,new T("",o,s))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,i){return this._addSvgIconSetConfig(t,new T(e,null,i))}addSvgIconSetLiteralInNamespace(t,e,i){const s=this._sanitizer.sanitize(n.q3G.HTML,e);if(!s)throw v(e);return this._addSvgIconSetConfig(t,new T("",s,i))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(n.q3G.RESOURCE_URL,t);if(!e)throw y(t);const i=this._cachedIconsByUrl.get(e);return i?(0,a.of)(E(i)):this._loadSvgIconFromConfig(new T(t,null)).pipe((0,h.b)(t=>this._cachedIconsByUrl.set(e,t)),(0,d.U)(t=>E(t)))}getNamedSvgIcon(t,e=""){const i=S(e,t);let n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);if(n=this._getIconConfigFromResolvers(e,t),n)return this._svgIconConfigs.set(i,n),this._getSvgFromConfig(n);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):(0,c._)(A(i))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?(0,a.of)(E(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe((0,d.U)(t=>E(t)))}_getSvgFromIconSetConfigs(t,e){const i=this._extractIconWithNameFromAnySet(t,e);if(i)return(0,a.of)(i);const s=e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe((0,p.K)(e=>{const i=this._sanitizer.sanitize(n.q3G.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${i} failed: ${e.message}`)),(0,a.of)(null)})));return(0,l.D)(s).pipe((0,d.U)(()=>{const i=this._extractIconWithNameFromAnySet(t,e);if(!i)throw A(t);return i}))}_extractIconWithNameFromAnySet(t,e){for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.svgText&&n.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(n),i=this._extractSvgIconFromSet(e,t,n.options);if(i)return i}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe((0,h.b)(e=>t.svgText=e),(0,d.U)(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?(0,a.of)(null):this._fetchIcon(t).pipe((0,h.b)(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,i){const n=t.querySelector(`[id="${e}"]`);if(!n)return null;const s=n.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,i);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),i);const o=this._svgElementFromString("");return o.appendChild(s),this._setSvgAttributes(o,i)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const i=e.querySelector("svg");if(!i)throw Error(" tag not found");return i}_toSvgElement(t){const e=this._svgElementFromString(""),i=t.attributes;for(let n=0;nthis._inProgressUrlFetches.delete(r)),(0,f.B)());return this._inProgressUrlFetches.set(r,c),c}_addSvgIconConfig(t,e,i){return this._svgIconConfigs.set(S(t,e),i),this}_addSvgIconSetConfig(t,e){const i=this._iconSetConfigs.get(t);return i?i.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let n=0;ne?e.pathname+e.search:""}}}),R=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],O=R.map(t=>`[${t}]`).join(", "),P=/^url\(['"]?#(.*?)['"]?\)$/;let D=(()=>{class t extends I{constructor(t,e,i,n,s){super(t),this._iconRegistry=e,this._location=n,this._errorHandler=s,this._inline=!1,this._currentIconFetch=u.w.EMPTY,i||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=(0,o.Ig)(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.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(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let n=0;n{e.forEach(e=>{i.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(O),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let n=0;n{const s=e[n],o=s.getAttribute(t),r=o?o.match(P):null;if(r){let e=i.get(s);e||(e=[],i.set(s,e)),e.push({name:t,value:r[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,i]=this._splitIconName(t);e&&(this._svgNamespace=e),i&&(this._svgName=i),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(i,e).pipe((0,m.q)(1)).subscribe(t=>this._setSvgElement(t),t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${i}! ${t.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(C),n.$8M("aria-hidden"),n.Y36(x),n.Y36(n.qLn))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(n.uIk("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),n.ekj("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[n.qOj],ngContentSelectors:w,decls:1,vars:0,template:function(t,e){1&t&&(n.F$t(),n.Hsn(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),M=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[s.BQ],s.BQ]}),t})()},80340:function(t,e,i){"use strict";i.d(e,{Jk:function(){return d},Nt:function(){return b},c:function(){return _},D7:function(){return h}});var n=i(10901),s=i(31572),o=i(19861),r=i(11353),a=i(71522),c=i(66283),l=i(55959),u=i(16073);let h=(()=>{class t extends n.IC{get matAutosizeMinRows(){return this.minRows}set matAutosizeMinRows(t){this.minRows=t}get matAutosizeMaxRows(){return this.maxRows}set matAutosizeMaxRows(t){this.maxRows=t}get matAutosize(){return this.enabled}set matAutosize(t){this.enabled=t}get matTextareaAutosize(){return this.enabled}set matTextareaAutosize(t){this.enabled=t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["textarea","mat-autosize",""],["textarea","matTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize","mat-autosize"],inputs:{cdkAutosizeMinRows:"cdkAutosizeMinRows",cdkAutosizeMaxRows:"cdkAutosizeMaxRows",matAutosizeMinRows:"matAutosizeMinRows",matAutosizeMaxRows:"matAutosizeMaxRows",matAutosize:["mat-autosize","matAutosize"],matTextareaAutosize:"matTextareaAutosize"},exportAs:["matTextareaAutosize"],features:[s.qOj]}),t})();const d=new s.OlP("MAT_INPUT_VALUE_ACCESSOR"),p=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let g=0;class f{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const m=(0,a.FD)(f);let b=(()=>{class t extends m{constructor(t,e,i,n,s,o,a,c,u,h){super(o,n,s,i),this._elementRef=t,this._platform=e,this.ngControl=i,this._autofillMonitor=c,this._formField=h,this._uid="mat-input-"+g++,this.focused=!1,this.stateChanges=new l.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>(0,r.qK)().has(t));const d=this._elementRef.nativeElement,p=d.nodeName.toLowerCase();this._inputValueAccessor=a||d,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&u.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{const e=t.target;e.value||0!==e.selectionStart||0!==e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===p,this._isTextarea="textarea"===p,this._isNativeSelect&&(this.controlType=d.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=(0,o.Ig)(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=(0,o.Ig)(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&(0,r.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=(0,o.Ig)(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const i=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(i!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=i,i?t.setAttribute("placeholder",i):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){p.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(r.t4),s.Y36(u.a5,10),s.Y36(u.F,8),s.Y36(u.sg,8),s.Y36(a.rD),s.Y36(d,10),s.Y36(n.Lq),s.Y36(s.R0b),s.Y36(c.G_,8))},t.\u0275dir=s.lG2({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&s.NdJ("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(s.Ikx("disabled",e.disabled)("required",e.required),s.uIk("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),s.ekj("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[s._Bn([{provide:c.Eo,useExisting:t}]),s.qOj,s.TTD]}),t})(),_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[a.rD],imports:[[n.Ky,c.lN,a.BQ],n.Ky,c.lN]}),t})()},85250:function(t,e,i){"use strict";i.d(e,{i$:function(){return w},Tg:function(){return v},ie:function(){return T}});var n=i(61511),s=i(31572),o=i(71522),r=i(19861),a=i(55959),c=i(25416),l=(i(56238),i(24621),i(4230),i(75842),i(16073),i(27679));const u=["*"],h=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],d=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"];class p{}const g=(0,o.Id)((0,o.Kr)(p));class f{}const m=(0,o.Kr)(f),b=new s.OlP("MatList"),_=new s.OlP("MatNavList");let w=(()=>{class t extends g{constructor(t){super(),this._elementRef=t,this._stateChanges=new a.xQ,"action-list"===this._getListType()&&t.nativeElement.classList.add("mat-action-list")}_getListType(){const t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[s._Bn([{provide:b,useExisting:t}]),s.qOj,s.TTD],ngContentSelectors:u,decls:1,vars:0,template:function(t,e){1&t&&(s.F$t(),s.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.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:transparent;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{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:transparent;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{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 button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}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-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.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}}\n'],encapsulation:2,changeDetection:0}),t})(),A=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),v=(()=>{class t extends m{constructor(t,e,i,n){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new a.xQ,this._disabled=!1,this._isInteractiveList=!!(i||n&&"action-list"===n._getListType()),this._list=i||n;const s=this._getHostElement();"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,c.R)(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=(0,r.Ig)(t)}ngAfterContentInit(){(0,o.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 t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(_,8),s.Y36(b,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,A,5),s.Suo(i,y,5),s.Suo(i,o.X2,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._avatar=t.first),s.iGM(t=s.CRH())&&(e._icon=t.first),s.iGM(t=s.CRH())&&(e._lines=t)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&s.ekj("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[s.qOj],ngContentSelectors:d,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(t,e){1&t&&(s.F$t(h),s.TgZ(0,"div",0),s._UZ(1,"div",1),s.Hsn(2),s.TgZ(3,"div",2),s.Hsn(4,1),s.qZA(),s.Hsn(5,2),s.qZA()),2&t&&(s.xp6(1),s.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[o.wG],encapsulation:2,changeDetection:0}),t})(),T=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[o.uc,o.si,o.BQ,o.us,n.ez],o.uc,o.BQ,o.us,l.t]}),t})()},8055:function(t,e,i){"use strict";i.d(e,{VK:function(){return Z},OP:function(){return M},Tx:function(){return G},p6:function(){return U}});var n=i(24621),s=i(19861),o=i(75842),r=i(31572),a=i(55959),c=i(87570),l=i(31906),u=i(40878),h=i(92709),d=i(56238),p=i(44689),g=i(90611),f=i(43835),m=i(25416),b=i(60509),_=i(10709),w=i(26899),A=i(61511),y=i(71522),v=i(2522),T=i(11353),C=i(4253),E=i(22526);const S=["mat-menu-item",""],k=["*"];function I(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",0),r.NdJ("keydown",function(e){return r.CHM(t),r.oxw()._handleKeydown(e)})("click",function(){return r.CHM(t),r.oxw().closed.emit("click")})("@transformMenu.start",function(e){return r.CHM(t),r.oxw()._onAnimationStart(e)})("@transformMenu.done",function(e){return r.CHM(t),r.oxw()._onAnimationDone(e)}),r.TgZ(1,"div",1),r.Hsn(2),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),r.uIk("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const x={transformMenu:(0,_.X$)("transformMenu",[(0,_.SB)("void",(0,_.oB)({opacity:0,transform:"scale(0.8)"})),(0,_.eR)("void => enter",(0,_.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,_.oB)({opacity:1,transform:"scale(1)"}))),(0,_.eR)("* => void",(0,_.jt)("100ms 25ms linear",(0,_.oB)({opacity:0})))]),fadeInItems:(0,_.X$)("fadeInItems",[(0,_.SB)("showing",(0,_.oB)({opacity:1})),(0,_.eR)("void => *",[(0,_.oB)({opacity:0}),(0,_.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},R=new r.OlP("MatMenuContent"),O=new r.OlP("MAT_MENU_PANEL");class P{}const D=(0,y.Kr)((0,y.Id)(P));let M=(()=>{class t extends D{constructor(t,e,i,n){super(),this._elementRef=t,this._focusMonitor=i,this._parentMenu=n,this.role="menuitem",this._hovered=new a.xQ,this._focused=new a.xQ,this._highlighted=!1,this._triggersSubmenu=!1,n&&n.addItem&&n.addItem(this)}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),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(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t,e;const i=this._elementRef.nativeElement.cloneNode(!0),n=i.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class t{constructor(t,e,i){this._elementRef=t,this._ngZone=e,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new r.n_E,this._tabSubscription=c.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new a.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new r.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+N++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=(0,s.Ig)(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=(0,s.Ig)(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new n.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,d.O)(this._directDescendantItems),(0,p.w)(t=>(0,l.T)(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,d.O)(this._directDescendantItems),(0,p.w)(t=>(0,l.T)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,i=this._keyManager;switch(e){case o.hY:(0,o.Vb)(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case o.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case o.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:e!==o.LH&&e!==o.JH||i.setFocusOrigin("keyboard"),i.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e=`mat-elevation-z${Math.min(4+t,24)}`,i=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const i=this._classList;i["mat-menu-before"]="before"===t,i["mat-menu-after"]="after"===t,i["mat-menu-above"]="above"===e,i["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,d.O)(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(r.R0b),r.Y36(L))},t.\u0275dir=r.lG2({type:t,contentQueries:function(t,e,i){if(1&t&&(r.Suo(i,R,5),r.Suo(i,M,5),r.Suo(i,M,4)),2&t){let t;r.iGM(t=r.CRH())&&(e.lazyContent=t.first),r.iGM(t=r.CRH())&&(e._allItems=t),r.iGM(t=r.CRH())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&r.Gf(r.Rgc,5),2&t){let t;r.iGM(t=r.CRH())&&(e.templateRef=t.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),Z=(()=>{class t extends z{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(r.R0b),r.Y36(L))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&r.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[r._Bn([{provide:O,useExisting:t}]),r.qOj],ngContentSelectors:k,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(r.F$t(),r.YNc(0,I,3,6,"ng-template"))},directives:[A.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}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}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}\n'],encapsulation:2,data:{animation:[x.transformMenu,x.fadeInItems]},changeDetection:0}),t})();const B=new r.OlP("mat-menu-scroll-strategy"),q={provide:B,deps:[v.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},F=(0,T.i$)({passive:!0});let U=(()=>{class t{constructor(t,e,i,s,o,a,l,u){this._overlay=t,this._element=e,this._viewContainerRef=i,this._menuItemInstance=a,this._dir=l,this._focusMonitor=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=c.w.EMPTY,this._hoverSubscription=c.w.EMPTY,this._menuCloseSubscription=c.w.EMPTY,this._handleTouchStart=t=>{(0,n.yG)(t)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new r.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new r.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=s,this._parentMaterialMenu=o instanceof z?o:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,F),a&&(a._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(t),"click"!==t&&"tab"!==t||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),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(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof z&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}updatePosition(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==t&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,e instanceof z?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe((0,f.h)(t=>"void"===t.toState),(0,g.q)(1),(0,m.R)(e.lazyContent._attached)).subscribe({next:()=>e.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new v.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,i]="before"===this.menu.xPosition?["end","start"]:["start","end"],[n,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[o,r]=[n,s],[a,c]=[e,i],l=0;this.triggersSubmenu()?(c=e="before"===this.menu.xPosition?"start":"end",i=a="end"===e?"start":"end",l="bottom"===n?8:-8):this.menu.overlapTrigger||(o="top"===n?"bottom":"top",r="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:o,overlayX:a,overlayY:n,offsetY:l},{originX:i,originY:o,overlayX:c,overlayY:n,offsetY:l},{originX:e,originY:r,overlayX:a,overlayY:s,offsetY:-l},{originX:i,originY:r,overlayX:c,overlayY:s,offsetY:-l}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,u.of)(),n=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,f.h)(t=>t!==this._menuItemInstance),(0,f.h)(()=>this._menuOpen)):(0,u.of)();return(0,l.T)(t,i,n,e)}_handleMousedown(t){(0,n.X6)(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;e!==o.K5&&e!==o.L_||(this._openedBy="keyboard"),this.triggersSubmenu()&&(e===o.SV&&"ltr"===this.dir||e===o.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,f.h)(t=>t===this._menuItemInstance&&!t.disabled),(0,b.g)(0,h.e)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof z&&this.menu._isAnimating?this.menu._animationDone.pipe((0,g.q)(1),(0,b.g)(0,h.e),(0,m.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new w.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(v.aV),r.Y36(r.SBq),r.Y36(r.s_b),r.Y36(B),r.Y36(O,8),r.Y36(M,10),r.Y36(E.Is,8),r.Y36(n.tE))},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&r.NdJ("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&r.uIk("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[q],imports:[y.BQ]}),t})(),G=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[q],imports:[[A.ez,y.BQ,y.si,v.U8,H],C.ZD,y.BQ,H]}),t})()},73005:function(t,e,i){"use strict";i.d(e,{NW:function(){return C},ye:function(){return _},TU:function(){return E}});var n=i(61511),s=i(31572),o=i(71522),r=i(15980),a=i(4786),c=i(36922),l=i(19861),u=i(55959),h=i(66283);function d(t,e){if(1&t&&(s.TgZ(0,"mat-option",19),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.hij(" ",t," ")}}function p(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-form-field",16),s.TgZ(1,"mat-select",17),s.NdJ("selectionChange",function(e){return s.CHM(t),s.oxw(2)._changePageSize(e.value)}),s.YNc(2,d,2,2,"mat-option",18),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(2);s.Q6J("appearance",t._formFieldAppearance)("color",t.color),s.xp6(1),s.Q6J("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),s.xp6(1),s.Q6J("ngForOf",t._displayedPageSizeOptions)}}function g(t,e){if(1&t&&(s.TgZ(0,"div",20),s._uU(1),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Oqu(t.pageSize)}}function f(t,e){if(1&t&&(s.TgZ(0,"div",12),s.TgZ(1,"div",13),s._uU(2),s.qZA(),s.YNc(3,p,3,6,"mat-form-field",14),s.YNc(4,g,2,1,"div",15),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.hij(" ",t._intl.itemsPerPageLabel," "),s.xp6(1),s.Q6J("ngIf",t._displayedPageSizeOptions.length>1),s.xp6(1),s.Q6J("ngIf",t._displayedPageSizeOptions.length<=1)}}function m(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",21),s.NdJ("click",function(){return s.CHM(t),s.oxw().firstPage()}),s.O4$(),s.TgZ(1,"svg",7),s._UZ(2,"path",22),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),s.uIk("aria-label",t._intl.firstPageLabel)}}function b(t,e){if(1&t){const t=s.EpF();s.O4$(),s.kcU(),s.TgZ(0,"button",23),s.NdJ("click",function(){return s.CHM(t),s.oxw().lastPage()}),s.O4$(),s.TgZ(1,"svg",7),s._UZ(2,"path",24),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),s.uIk("aria-label",t._intl.lastPageLabel)}}let _=(()=>{class t{constructor(){this.changes=new u.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,i)=>{if(0==i||0==e)return`0 of ${i}`;const n=t*e;return`${n+1} \u2013 ${n<(i=Math.max(i,0))?Math.min(n+e,i):n+e} of ${i}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const w={provide:_,deps:[[new s.FiY,new s.tp0,_]],useFactory:function(t){return t||new _}},A=new s.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS");class y{}const v=(0,o.Id)((0,o.dB)(y));let T=(()=>{class t extends v{constructor(t,e,i){if(super(),this._intl=t,this._changeDetectorRef=e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new s.vpe,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){const{pageSize:t,pageSizeOptions:e,hidePageSize:n,showFirstLastButtons:s}=i;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=n&&(this._hidePageSize=n),null!=s&&(this._showFirstLastButtons=s)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max((0,l.su)(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=(0,l.su)(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max((0,l.su)(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>(0,l.su)(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=(0,l.Ig)(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=(0,l.Ig)(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndext-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(_),s.Y36(s.sBO),s.Y36(void 0))},t.\u0275dir=s.lG2({type:t,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[s.qOj]}),t})(),C=(()=>{class t extends T{constructor(t,e,i){super(t,e,i),i&&null!=i.formFieldAppearance&&(this._formFieldAppearance=i.formFieldAppearance)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(_),s.Y36(s.sBO),s.Y36(A,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[s.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","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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.YNc(2,f,5,3,"div",2),s.TgZ(3,"div",3),s.TgZ(4,"div",4),s._uU(5),s.qZA(),s.YNc(6,m,3,5,"button",5),s.TgZ(7,"button",6),s.NdJ("click",function(){return e.previousPage()}),s.O4$(),s.TgZ(8,"svg",7),s._UZ(9,"path",8),s.qZA(),s.qZA(),s.kcU(),s.TgZ(10,"button",9),s.NdJ("click",function(){return e.nextPage()}),s.O4$(),s.TgZ(11,"svg",7),s._UZ(12,"path",10),s.qZA(),s.qZA(),s.YNc(13,b,3,5,"button",11),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.Q6J("ngIf",!e.hidePageSize),s.xp6(3),s.hij(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),s.xp6(1),s.Q6J("ngIf",e.showFirstLastButtons),s.xp6(1),s.Q6J("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),s.uIk("aria-label",e._intl.previousPageLabel),s.xp6(3),s.Q6J("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),s.uIk("aria-label",e._intl.nextPageLabel),s.xp6(3),s.Q6J("ngIf",e.showFirstLastButtons))},directives:[n.O5,r.lW,c.gM,h.KE,a.gD,n.sg,o.ey],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{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),t})(),E=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[w],imports:[[n.ez,r.ot,a.LD,c.AV,o.BQ]]}),t})()},45994:function(t,e,i){"use strict";i.d(e,{Cv:function(){return r}});var n=i(31572),s=i(61511),o=i(71522);i(19861),i(43490),i(87570),i(87254),i(43835);let r=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[s.ez,o.BQ],o.BQ]}),t})()},67806:function(t,e,i){"use strict";i.d(e,{Cq:function(){return w},$g:function(){return _}});var n=i(31572),s=i(61511),o=i(71522),r=i(19861),a=i(11353),c=i(43490);function l(t,e){if(1&t&&(n.O4$(),n._UZ(0,"circle",3)),2&t){const t=n.oxw();n.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),n.uIk("r",t._getCircleRadius())}}function u(t,e){if(1&t&&(n.O4$(),n._UZ(0,"circle",3)),2&t){const t=n.oxw();n.Udp("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),n.uIk("r",t._getCircleRadius())}}function h(t,e){if(1&t&&(n.O4$(),n._UZ(0,"circle",3)),2&t){const t=n.oxw();n.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),n.uIk("r",t._getCircleRadius())}}function d(t,e){if(1&t&&(n.O4$(),n._UZ(0,"circle",3)),2&t){const t=n.oxw();n.Udp("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),n.uIk("r",t._getCircleRadius())}}const p=".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:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[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-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation: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)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n";class g{constructor(t){this._elementRef=t}}const f=(0,o.pj)(g,"primary"),m=new n.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let b=(()=>{class t extends f{constructor(e,i,n,s,o){super(e),this._elementRef=e,this._document=n,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const r=t._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),r.has(n.head)||r.set(n.head,new Set([100])),this._fallbackAnimation=i.EDGE||i.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!o&&!o._forceAnimations,o&&(o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=(0,r.su)(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=(0,r.su)(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,(0,r.su)(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=(0,a.kV)(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,i=this._diameter,n=t._diameters;let s=n.get(e);if(!s||!s.has(i)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),t.textContent=this._getAnimationText(),e.appendChild(t),s||(s=new Set,n.set(e,s)),s.add(i)}}_getAnimationText(){const t=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*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(a.t4),n.Y36(s.K0,8),n.Y36(c.Qb,8),n.Y36(m))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(n.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),n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[n.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"svg",0),n.YNc(1,l,1,9,"circle",1),n.YNc(2,u,1,7,"circle",2),n.qZA()),2&t&&(n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.Q6J("ngSwitch","indeterminate"===e.mode),n.uIk("viewBox",e._getViewBox()),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngSwitchCase",!1))},directives:[s.RF,s.n9],styles:[p],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),_=(()=>{class t extends b{constructor(t,e,i,n,s){super(t,e,i,n,s),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(a.t4),n.Y36(s.K0,8),n.Y36(c.Qb,8),n.Y36(m))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[n.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"svg",0),n.YNc(1,h,1,9,"circle",1),n.YNc(2,d,1,7,"circle",2),n.qZA()),2&t&&(n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.Q6J("ngSwitch","indeterminate"===e.mode),n.uIk("viewBox",e._getViewBox()),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngSwitchCase",!1))},directives:[s.RF,s.n9],styles:[p],encapsulation:2,changeDetection:0}),t})(),w=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[o.BQ,s.ez],o.BQ]}),t})()},54810:function(t,e,i){"use strict";i.d(e,{U0:function(){return T},VQ:function(){return w},Fk:function(){return C}});var n=i(31572),s=i(71522),o=i(19861),r=i(16073),a=i(43490),c=i(24621),l=i(4230);const u=["input"],h=function(t){return{enterDuration:t}},d=["*"],p=new n.OlP("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}});let g=0;const f={provide:r.JU,useExisting:(0,n.Gpc)(()=>w),multi:!0};class m{constructor(t,e){this.source=t,this.value=e}}const b=new n.OlP("MatRadioGroup");let _=(()=>{class t{constructor(t){this._changeDetector=t,this._value=null,this._name="mat-radio-group-"+g++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new n.vpe}get name(){return this._name}set name(t){this._name=t,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(t){this._labelPosition="before"===t?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,o.Ig)(t),this._markRadiosForCheck()}get required(){return this._required}set required(t){this._required=(0,o.Ig)(t),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(t=>{t.name=this.name,t._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 m(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(t=>t._markForCheck())}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO))},t.\u0275dir=n.lG2({type:t,inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"}}),t})(),w=(()=>{class t extends _{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["mat-radio-group"]],contentQueries:function(t,e,i){if(1&t&&n.Suo(i,T,5),2&t){let t;n.iGM(t=n.CRH())&&(e._radios=t)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[n._Bn([f,{provide:b,useExisting:t}]),n.qOj]}),t})();class A{constructor(t){this._elementRef=t}}const y=(0,s.Kr)((0,s.sb)(A));let v=(()=>{class t extends y{constructor(t,e,i,s,r,a,c,l){super(e),this._changeDetector=i,this._focusMonitor=s,this._radioDispatcher=r,this._providerOverride=c,this._uniqueId="mat-radio-"+ ++g,this.id=this._uniqueId,this.change=new n.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=t,this._noopAnimations="NoopAnimations"===a,l&&(this.tabIndex=(0,o.su)(l,0)),this._removeUniqueSelectionListener=r.listen((t,e)=>{t!==this.id&&e===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(t){const e=(0,o.Ig)(t);this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(t){this._labelPosition=t}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(t){this._setDisabled((0,o.Ig)(t))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(t){this._required=(0,o.Ig)(t)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(t){this._color=t}get inputId(){return`${this.id||this._uniqueId}-input`}focus(t,e){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}_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)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{!t&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new m(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(t){t.stopPropagation()}_onInputChange(t){t.stopPropagation();const e=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),e&&this.radioGroup._emitChangeEvent())}_setDisabled(t){this._disabled!==t&&(this._disabled=t,this._changeDetector.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(_),n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(c.tE),n.Y36(l.A8),n.Y36(String),n.Y36(void 0),n.Y36(String))},t.\u0275dir=n.lG2({type:t,viewQuery:function(t,e){if(1&t&&n.Gf(u,5),2&t){let t;n.iGM(t=n.CRH())&&(e._inputElement=t.first)}},inputs:{id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},features:[n.qOj]}),t})(),T=(()=>{class t extends v{constructor(t,e,i,n,s,o,r,a){super(t,e,i,n,s,o,r,a)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(b,8),n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(c.tE),n.Y36(l.A8),n.Y36(a.Qb,8),n.Y36(p,8),n.$8M("tabindex"))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,e){1&t&&n.NdJ("focus",function(){return e._inputElement.nativeElement.focus()}),2&t&&(n.uIk("tabindex",null)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),n.ekj("mat-radio-checked",e.checked)("mat-radio-disabled",e.disabled)("_mat-animation-noopable",e._noopAnimations)("mat-primary","primary"===e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[n.qOj],ngContentSelectors:d,decls:13,vars:20,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","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","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(t,e){if(1&t&&(n.F$t(),n.TgZ(0,"label",0,1),n.TgZ(2,"span",2),n._UZ(3,"span",3),n._UZ(4,"span",4),n.TgZ(5,"input",5,6),n.NdJ("change",function(t){return e._onInputChange(t)})("click",function(t){return e._onInputClick(t)}),n.qZA(),n.TgZ(7,"span",7),n._UZ(8,"span",8),n.qZA(),n.qZA(),n.TgZ(9,"span",9),n.TgZ(10,"span",10),n._uU(11,"\xa0"),n.qZA(),n.Hsn(12),n.qZA(),n.qZA()),2&t){const t=n.MAs(1);n.uIk("for",e.inputId),n.xp6(5),n.Q6J("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex)("required",e.required),n.uIk("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),n.xp6(2),n.Q6J("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",n.VKq(18,h,e._noopAnimations?0:150)),n.xp6(2),n.ekj("mat-radio-label-before","before"==e.labelPosition)}},directives:[s.wG],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-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;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-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{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),t})(),C=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[s.si,s.BQ],s.BQ]}),t})()},4786:function(t,e,i){"use strict";i.d(e,{gD:function(){return Y},LD:function(){return K},$L:function(){return G}});var n=i(2522),s=i(61511),o=i(31572),r=i(71522),a=i(66283),c=i(4253),l=i(24621),u=i(19861),h=i(4230),d=i(75842),p=i(55959),g=i(31450),f=i(31906),m=i(56238),b=i(44689),_=i(90611),w=i(43835),A=i(79996),y=i(98720),v=i(25416),T=i(10709),C=i(22526),E=i(16073);const S=["trigger"],k=["panel"];function I(t,e){if(1&t&&(o.TgZ(0,"span",8),o._uU(1),o.qZA()),2&t){const t=o.oxw();o.xp6(1),o.Oqu(t.placeholder)}}function x(t,e){if(1&t&&(o.TgZ(0,"span",12),o._uU(1),o.qZA()),2&t){const t=o.oxw(2);o.xp6(1),o.Oqu(t.triggerValue)}}function R(t,e){1&t&&o.Hsn(0,0,["*ngSwitchCase","true"])}function O(t,e){if(1&t&&(o.TgZ(0,"span",9),o.YNc(1,x,2,1,"span",10),o.YNc(2,R,1,0,"ng-content",11),o.qZA()),2&t){const t=o.oxw();o.Q6J("ngSwitch",!!t.customTrigger),o.xp6(2),o.Q6J("ngSwitchCase",!0)}}function P(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",13),o.TgZ(1,"div",14,15),o.NdJ("@transformPanel.done",function(e){return o.CHM(t),o.oxw()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return o.CHM(t),o.oxw()._handleKeydown(e)}),o.Hsn(3,1),o.qZA(),o.qZA()}if(2&t){const t=o.oxw();o.Q6J("@transformPanelWrap",void 0),o.xp6(1),o.Gre("mat-select-panel ",t._getPanelTheme(),""),o.Udp("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),o.Q6J("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),o.uIk("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const D=[[["mat-select-trigger"]],"*"],M=["mat-select-trigger","*"],L={transformPanelWrap:(0,T.X$)("transformPanelWrap",[(0,T.eR)("* => void",(0,T.IO)("@transformPanel",[(0,T.pV)()],{optional:!0}))]),transformPanel:(0,T.X$)("transformPanel",[(0,T.SB)("void",(0,T.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,T.SB)("showing",(0,T.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,T.SB)("showing-multiple",(0,T.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,T.eR)("void => *",(0,T.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,T.eR)("* => void",(0,T.jt)("100ms 25ms linear",(0,T.oB)({opacity:0})))])};let N=0;const z=new o.OlP("mat-select-scroll-strategy"),Z=new o.OlP("MAT_SELECT_CONFIG"),B={provide:z,deps:[n.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class q{constructor(t,e){this.source=t,this.value=e}}class F{constructor(t,e,i,n,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=s}}const U=(0,r.Kr)((0,r.sb)((0,r.Id)((0,r.FD)(F)))),H=new o.OlP("MatSelectTrigger");let G=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-select-trigger"]],features:[o._Bn([{provide:H,useExisting:t}])]}),t})(),j=(()=>{class t extends U{constructor(t,e,i,n,s,r,a,c,l,u,h,d,y,v){var T,C,E;super(s,n,a,c,u),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=i,this._dir=r,this._parentFormField=l,this.ngControl=u,this._liveAnnouncer=y,this._defaultOptions=v,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+N++,this._triggerAriaLabelledBy=null,this._destroy=new p.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+N++,this._panelDoneAnimatingStream=new p.xQ,this._overlayPanelClass=(null===(T=this._defaultOptions)||void 0===T?void 0:T.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(E=null===(C=this._defaultOptions)||void 0===C?void 0:C.disableOptionCentering)&&void 0!==E&&E,this.ariaLabel="",this.optionSelectionChanges=(0,g.P)(()=>{const t=this.options;return t?t.changes.pipe((0,m.O)(t),(0,b.w)(()=>(0,f.T)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe((0,_.q)(1),(0,b.w)(()=>this.optionSelectionChanges))}),this.openedChange=new o.vpe,this._openedStream=this.openedChange.pipe((0,w.h)(t=>t),(0,A.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,w.h)(t=>!t),(0,A.U)(()=>{})),this.selectionChange=new o.vpe,this.valueChange=new o.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==v?void 0:v.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=v.typeaheadDebounceInterval),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=(0,u.Ig)(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=(0,u.Ig)(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=(0,u.Ig)(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=(0,u.su)(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new h.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,y.x)(),(0,v.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,v.R)(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe((0,m.O)(null),(0,v.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.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(t){this.value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,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 t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,i=e===d.JH||e===d.LH||e===d.oh||e===d.SV,n=e===d.K5||e===d.L_,s=this._keyManager;if(!s.isTyping()&&n&&!(0,d.Vb)(t)||(this.multiple||t.altKey)&&i)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;s.onKeydown(t);const i=this.selected;i&&e!==i&&this._liveAnnouncer.announce(i.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,i=t.keyCode,n=i===d.JH||i===d.LH,s=e.isTyping();if(n&&t.altKey)t.preventDefault(),this.close();else if(s||i!==d.K5&&i!==d.L_||!e.activeItem||(0,d.Vb)(t))if(!s&&this._multiple&&i===d.A&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const i=e.activeItemIndex;e.onKeydown(t),this._multiple&&n&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==i&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.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,_.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._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(t=>this._selectValue(t)),this._sortValues();else{const e=this._selectValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{if(this._selectionModel.isSelected(e))return!1;try{return null!=e.value&&this._compareWith(e.value,t)}catch(i){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new l.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,v.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,v.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 t=(0,f.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,v.R)(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,f.T)(...this.options.map(t=>t._stateChanges)).pipe((0,v.R)(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(t,e){const i=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(i!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),i!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,i)=>this.sortComparator?this.sortComparator(e,i,t):t.indexOf(e)-t.indexOf(i)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();let i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(c.rL),o.Y36(o.sBO),o.Y36(o.R0b),o.Y36(r.rD),o.Y36(o.SBq),o.Y36(C.Is,8),o.Y36(E.F,8),o.Y36(E.sg,8),o.Y36(a.G_,8),o.Y36(E.a5,10),o.$8M("tabindex"),o.Y36(z),o.Y36(l.Kd),o.Y36(Z,8))},t.\u0275dir=o.lG2({type:t,viewQuery:function(t,e){if(1&t&&(o.Gf(S,5),o.Gf(k,5),o.Gf(n.pI,5)),2&t){let t;o.iGM(t=o.CRH())&&(e.trigger=t.first),o.iGM(t=o.CRH())&&(e.panel=t.first),o.iGM(t=o.CRH())&&(e._overlayDir=t.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[o.qOj,o.TTD]}),t})(),Y=(()=>{class t extends j{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(t,e,i){const n=this._getItemHeight();return Math.min(Math.max(0,n*t-e+n/2),i)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,v.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,_.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(t){const e=(0,r.CB)(t,this.options,this.optionGroups),i=this._getItemHeight();this.panel.nativeElement.scrollTop=(0,r.jH)((t+e)*i,i,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new q(this,t)}_calculateOverlayOffsetX(){const t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),i=this._isRtl(),n=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}i||(s*=-1);const o=0-(t.left+s-(i?n:0)),r=t.right+s-e.width+(i?0:n);o>0?s+=o+8:r>0&&(s-=r+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,i){const n=this._getItemHeight(),s=(n-this._triggerRect.height)/2,o=Math.floor(256/n);let r;return this.disableOptionCentering?0:(r=0===this._scrollTop?t*n:this._scrollTop===i?(t-(this._getItemCount()-o))*n+(n-(this._getItemCount()*n-256)%n):e-n/2,Math.round(-1*r-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,s=i.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),r=Math.min(this._getItemCount()*e,256)-o-this._triggerRect.height;r>s?this._adjustPanelUp(r,s):o>n?this._adjustPanelDown(o,n,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const i=Math.round(t-e);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,i){const n=Math.round(t-e);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),i=Math.min(e*t,256),n=e*t-i;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=(0,r.CB)(s,this.options,this.optionGroups);const o=i/2;this._scrollTop=this._calculateOverlayScroll(s,o,n),this._offsetY=this._calculateOverlayOffsetY(s,o,n),this._checkOverlayWithinViewport(n)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,i){if(1&t&&(o.Suo(i,H,5),o.Suo(i,r.ey,5),o.Suo(i,r.K7,5)),2&t){let t;o.iGM(t=o.CRH())&&(e.customTrigger=t.first),o.iGM(t=o.CRH())&&(e.options=t),o.iGM(t=o.CRH())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&o.NdJ("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(o.uIk("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),o.ekj("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[o._Bn([{provide:a.Eo,useExisting:t},{provide:r.HF,useExisting:t}]),o.qOj],ngContentSelectors:M,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(t,e){if(1&t&&(o.F$t(D),o.TgZ(0,"div",0,1),o.NdJ("click",function(){return e.toggle()}),o.TgZ(3,"div",2),o.YNc(4,I,2,1,"span",3),o.YNc(5,O,3,2,"span",4),o.qZA(),o.TgZ(6,"div",5),o._UZ(7,"div",6),o.qZA(),o.qZA(),o.YNc(8,P,4,14,"ng-template",7),o.NdJ("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=o.MAs(1);o.uIk("aria-owns",e.panelOpen?e.id+"-panel":null),o.xp6(3),o.Q6J("ngSwitch",e.empty),o.uIk("id",e._valueId),o.xp6(1),o.Q6J("ngSwitchCase",!0),o.xp6(1),o.Q6J("ngSwitchCase",!1),o.xp6(3),o.Q6J("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[n.xu,s.RF,s.n9,n.pI,s.ED,s.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;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{display:table-cell;vertical-align:middle}.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 transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.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:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[L.transformPanelWrap,L.transformPanel]},changeDetection:0}),t})(),K=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[B],imports:[[s.ez,n.U8,r.Ng,r.BQ],c.ZD,a.lN,r.Ng,r.BQ]}),t})()},25122:function(t,e,i){"use strict";i.d(e,{JX:function(){return U},TM:function(){return H},Rh:function(){return F},SJ:function(){return G}});var n=i(11353),s=i(4253),o=i(61511),r=i(31572),a=i(71522),c=i(19861),l=i(75842),u=i(55959),h=i(87254),d=i(31906),p=i(43835),g=i(79996),f=i(88414),m=i(25416),b=i(98720),_=i(90611),w=i(56238),A=i(47701),y=i(10709),v=i(43490),T=i(24621),C=i(22526);const E=["*"];function S(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",2),r.NdJ("click",function(){return r.CHM(t),r.oxw()._onBackdropClicked()}),r.qZA()}if(2&t){const t=r.oxw();r.ekj("mat-drawer-shown",t._isShowingBackdrop())}}function k(t,e){1&t&&(r.TgZ(0,"mat-drawer-content"),r.Hsn(1,2),r.qZA())}const I=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],x=["mat-drawer","mat-drawer-content","*"];function R(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",2),r.NdJ("click",function(){return r.CHM(t),r.oxw()._onBackdropClicked()}),r.qZA()}if(2&t){const t=r.oxw();r.ekj("mat-drawer-shown",t._isShowingBackdrop())}}function O(t,e){1&t&&(r.TgZ(0,"mat-sidenav-content",3),r.Hsn(1,2),r.qZA())}const P=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],D=["mat-sidenav","mat-sidenav-content","*"],M=".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-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",L={transformDrawer:(0,y.X$)("transform",[(0,y.SB)("open, open-instant",(0,y.oB)({transform:"none",visibility:"visible"})),(0,y.SB)("void",(0,y.oB)({"box-shadow":"none",visibility:"hidden"})),(0,y.eR)("void => open-instant",(0,y.jt)("0ms")),(0,y.eR)("void <=> open, open-instant => void",(0,y.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},N=new r.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),z=new r.OlP("MAT_DRAWER_CONTAINER");let Z=(()=>{class t extends s.PQ{constructor(t,e,i,n,s){super(i,n,s),this._changeDetectorRef=t,this._container=e}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.sBO),r.Y36((0,r.Gpc)(()=>q)),r.Y36(r.SBq),r.Y36(s.mF),r.Y36(r.R0b))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&r.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[r.qOj],ngContentSelectors:E,decls:1,vars:0,template:function(t,e){1&t&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),t})(),B=(()=>{class t{constructor(t,e,i,n,s,o,a){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=i,this._platform=n,this._ngZone=s,this._doc=o,this._container=a,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new u.xQ,this._animationEnd=new u.xQ,this._animationState="void",this.openedChange=new r.vpe(!0),this._openedStream=this.openedChange.pipe((0,p.h)(t=>t),(0,g.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,p.h)(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),(0,f.h)(void 0)),this._closedStream=this.openedChange.pipe((0,p.h)(t=>!t),(0,g.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,p.h)(t=>t.fromState!==t.toState&&"void"===t.toState),(0,f.h)(void 0)),this._destroyed=new u.xQ,this.onPositionChanged=new r.vpe,this._modeChanged=new u.xQ,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{(0,h.R)(this._elementRef.nativeElement,"keydown").pipe((0,p.h)(t=>t.keyCode===l.hY&&!this.disableClose&&!(0,l.Vb)(t)),(0,m.R)(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe((0,b.x)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{const{fromState:e,toState:i}=t;(0===i.indexOf("open")&&"void"===e||"void"===i&&0===e.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=(0,c.Ig)(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=(0,c.Ig)(t)}get opened(){return this._opened}set opened(t){this.toggle((0,c.Ig)(t))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(t=>{t||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}_isFocusWithinDrawer(){var t;const e=null===(t=this._doc)||void 0===t?void 0:t.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0)}toggle(t=!this.opened,e){return this._setOpen(t,!t&&this._isFocusWithinDrawer(),e)}_setOpen(t,e,i="program"){return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=i):(this._animationState="void",e&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(t=>{this.openedChange.pipe((0,_.q)(1)).subscribe(e=>t(e?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(t){this._animationStarted.next(t)}_animationDoneListener(t){this._animationEnd.next(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(T.qV),r.Y36(T.tE),r.Y36(n.t4),r.Y36(r.R0b),r.Y36(o.K0,8),r.Y36(z,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&r.WFA("@transform.start",function(t){return e._animationStartListener(t)})("@transform.done",function(t){return e._animationDoneListener(t)}),2&t&&(r.uIk("align",null),r.d8E("@transform",e._animationState),r.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.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:E,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"div",0),r.Hsn(1),r.qZA())},directives:[s.PQ],encapsulation:2,data:{animation:[L.transformDrawer]},changeDetection:0}),t})(),q=(()=>{class t{constructor(t,e,i,n,s,o=!1,a){this._dir=t,this._element=e,this._ngZone=i,this._changeDetectorRef=n,this._animationMode=a,this._drawers=new r.n_E,this.backdropClick=new r.vpe,this._destroyed=new u.xQ,this._doCheckSubject=new u.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new u.xQ,t&&t.change.pipe((0,m.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),s.change().pipe((0,m.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=o}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=(0,c.Ig)(t)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(t){this._backdropOverride=null==t?null:(0,c.Ig)(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,w.O)(this._allDrawers),(0,m.R)(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,w.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,A.b)(10),(0,m.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(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,e=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){const i=this._left._getWidth();t+=i,e-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)e+=this._right._getWidth();else if("push"==this._right.mode){const i=this._right._getWidth();e+=i,t-=i}t=t||null,e=e||null,t===this._contentMargins.left&&e===this._contentMargins.right||(this._contentMargins={left:t,right:e},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe((0,p.h)(t=>t.fromState!==t.toState),(0,m.R)(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"!==t.mode&&t.openedChange.pipe((0,m.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe((0,m.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,_.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe((0,m.R)((0,d.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const e=this._element.nativeElement.classList,i="mat-drawer-container-has-open";t?e.add(i):e.remove(i)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?this._end=t:this._start=t}),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(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(t){return"side"!==t.mode||!!this._backdropOverride}_isDrawerOpen(t){return null!=t&&t.opened}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(C.Is,8),r.Y36(r.SBq),r.Y36(r.R0b),r.Y36(r.sBO),r.Y36(s.rL),r.Y36(N),r.Y36(v.Qb,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,i){if(1&t&&(r.Suo(i,Z,5),r.Suo(i,B,5)),2&t){let t;r.iGM(t=r.CRH())&&(e._content=t.first),r.iGM(t=r.CRH())&&(e._allDrawers=t)}},viewQuery:function(t,e){if(1&t&&r.Gf(Z,5),2&t){let t;r.iGM(t=r.CRH())&&(e._userContent=t.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&r.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[r._Bn([{provide:z,useExisting:t}])],ngContentSelectors:x,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(t,e){1&t&&(r.F$t(I),r.YNc(0,S,1,2,"div",0),r.Hsn(1),r.Hsn(2,1),r.YNc(3,k,2,0,"mat-drawer-content",1)),2&t&&(r.Q6J("ngIf",e.hasBackdrop),r.xp6(3),r.Q6J("ngIf",!e._content))},directives:[o.O5,Z],styles:[M],encapsulation:2,changeDetection:0}),t})(),F=(()=>{class t extends Z{constructor(t,e,i,n,s){super(t,e,i,n,s)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.sBO),r.Y36((0,r.Gpc)(()=>H)),r.Y36(r.SBq),r.Y36(s.mF),r.Y36(r.R0b))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&r.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[r.qOj],ngContentSelectors:E,decls:1,vars:0,template:function(t,e){1&t&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),t})(),U=(()=>{class t extends B{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=(0,c.Ig)(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=(0,c.su)(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=(0,c.su)(t)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=r.n5z(t)))(i||t)}}(),t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(r.uIk("align",null),r.Udp("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),r.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[r.qOj],ngContentSelectors:E,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"div",0),r.Hsn(1),r.qZA())},directives:[s.PQ],encapsulation:2,data:{animation:[L.transformDrawer]},changeDetection:0}),t})(),H=(()=>{class t extends q{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=r.n5z(t)))(i||t)}}(),t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,i){if(1&t&&(r.Suo(i,F,5),r.Suo(i,U,5)),2&t){let t;r.iGM(t=r.CRH())&&(e._content=t.first),r.iGM(t=r.CRH())&&(e._allDrawers=t)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&r.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[r._Bn([{provide:z,useExisting:t}]),r.qOj],ngContentSelectors:D,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(r.F$t(P),r.YNc(0,R,1,2,"div",0),r.Hsn(1),r.Hsn(2,1),r.YNc(3,O,2,0,"mat-sidenav-content",1)),2&t&&(r.Q6J("ngIf",e.hasBackdrop),r.xp6(3),r.Q6J("ngIf",!e._content))},directives:[o.O5,F,s.PQ],styles:[M],encapsulation:2,changeDetection:0}),t})(),G=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[o.ez,a.BQ,n.ud,s.ZD],s.ZD,a.BQ]}),t})()},27521:function(t,e,i){"use strict";i.d(e,{Rr:function(){return y},rP:function(){return T}});var n=i(36337),s=i(31572),o=i(71522),r=i(19861),a=i(16073),c=i(43490),l=i(24621);const u=["thumbContainer"],h=["toggleBar"],d=["input"],p=function(t){return{enterDuration:t}},g=["*"],f=new s.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let m=0;const b={provide:a.JU,useExisting:(0,s.Gpc)(()=>y),multi:!0};class _{constructor(t,e){this.source=t,this.checked=e}}class w{constructor(t){this._elementRef=t}}const A=(0,o.sb)((0,o.pj)((0,o.Kr)((0,o.Id)(w))));let y=(()=>{class t extends A{constructor(t,e,i,n,o,r){super(t),this._focusMonitor=e,this._changeDetectorRef=i,this.defaults=o,this._onChange=t=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++m,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new s.vpe,this.toggleChange=new s.vpe,this.tabIndex=parseInt(n)||0,this.color=this.defaultColor=o.color||"accent",this._noopAnimations="NoopAnimations"===r}get required(){return this._required}set required(t){this._required=(0,r.Ig)(t)}get checked(){return this._checked}set checked(t){this._checked=(0,r.Ig)(t),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{"keyboard"===t||"program"===t?this._inputElement.nativeElement.focus():t||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(t){t.stopPropagation()}writeValue(t){this.checked=!!t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck()}focus(t,e){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new _(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(l.tE),s.Y36(s.sBO),s.$8M("tabindex"),s.Y36(f),s.Y36(c.Qb,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){if(1&t&&(s.Gf(u,5),s.Gf(h,5),s.Gf(d,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._thumbEl=t.first),s.iGM(t=s.CRH())&&(e._thumbBarEl=t.first),s.iGM(t=s.CRH())&&(e._inputElement=t.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Ikx("id",e.id),s.uIk("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),s.ekj("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable",e._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[s._Bn([b]),s.qOj],ngContentSelectors:g,decls:16,vars:19,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["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"],["thumbContainer",""],[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(t,e){if(1&t&&(s.F$t(),s.TgZ(0,"label",0,1),s.TgZ(2,"div",2,3),s.TgZ(4,"input",4,5),s.NdJ("change",function(t){return e._onChangeEvent(t)})("click",function(t){return e._onInputClick(t)}),s.qZA(),s.TgZ(6,"div",6,7),s._UZ(8,"div",8),s.TgZ(9,"div",9),s._UZ(10,"div",10),s.qZA(),s.qZA(),s.qZA(),s.TgZ(11,"span",11,12),s.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),s.TgZ(13,"span",13),s._uU(14,"\xa0"),s.qZA(),s.Hsn(15),s.qZA(),s.qZA()),2&t){const t=s.MAs(1),i=s.MAs(12);s.uIk("for",e.inputId),s.xp6(2),s.ekj("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),s.xp6(2),s.Q6J("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),s.uIk("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),s.xp6(5),s.Q6J("matRippleTrigger",t)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",s.VKq(17,p,e._noopAnimations?0:150))}},directives:[o.wG,n.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:transparent}.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{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%}.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}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),t})(),v=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),T=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[v,o.si,o.BQ,n.Q8],v,o.BQ]}),t})()},71403:function(t,e,i){"use strict";i.d(e,{ZX:function(){return l}});var n=i(2522),s=i(26899),o=i(61511),r=i(31572),a=i(71522),c=i(15980);i(55959),i(90611),i(10709),i(11353);let l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[n.U8,s.eL,o.ez,c.ot,a.BQ],a.BQ]}),t})()},58623:function(t,e,i){"use strict";i.d(e,{YE:function(){return _},nU:function(){return E},JX:function(){return S}});var n=i(31572),s=i(19861),o=i(71522),r=i(75842),a=i(55959),c=i(31906),l=i(10709),u=i(61511),h=i(24621);const d=["mat-sort-header",""];function p(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"div",3),n.NdJ("@arrowPosition.start",function(){return n.CHM(t),n.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return n.CHM(t),n.oxw()._disableViewStateAnimation=!1}),n._UZ(1,"div",4),n.TgZ(2,"div",5),n._UZ(3,"div",6),n._UZ(4,"div",7),n._UZ(5,"div",8),n.qZA(),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("@arrowOpacity",t._getArrowViewState())("@arrowPosition",t._getArrowViewState())("@allowChildren",t._getArrowDirectionState()),n.xp6(2),n.Q6J("@indicator",t._getArrowDirectionState()),n.xp6(1),n.Q6J("@leftPointer",t._getArrowDirectionState()),n.xp6(1),n.Q6J("@rightPointer",t._getArrowDirectionState())}}const g=["*"],f=new n.OlP("MAT_SORT_DEFAULT_OPTIONS");class m{}const b=(0,o.dB)((0,o.Id)(m));let _=(()=>{class t extends b{constructor(t){super(),this._defaultOptions=t,this.sortables=new Map,this._stateChanges=new a.xQ,this.start="asc",this._direction="",this.sortChange=new n.vpe}get direction(){return this._direction}set direction(t){this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=(0,s.Ig)(t)}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){var e,i,n;if(!t)return"";const s=null!==(i=null!==(e=null==t?void 0:t.disableClear)&&void 0!==e?e:this.disableClear)&&void 0!==i?i:!!(null===(n=this._defaultOptions)||void 0===n?void 0:n.disableClear);let o=function(t,e){let i=["asc","desc"];return"desc"==t&&i.reverse(),e||i.push(""),i}(t.start||this.start,s),r=o.indexOf(this.direction)+1;return r>=o.length&&(r=0),o[r]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(f,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[n.qOj,n.TTD]}),t})();const w=o.mZ.ENTERING+" "+o.yN.STANDARD_CURVE,A={indicator:(0,l.X$)("indicator",[(0,l.SB)("active-asc, asc",(0,l.oB)({transform:"translateY(0px)"})),(0,l.SB)("active-desc, desc",(0,l.oB)({transform:"translateY(10px)"})),(0,l.eR)("active-asc <=> active-desc",(0,l.jt)(w))]),leftPointer:(0,l.X$)("leftPointer",[(0,l.SB)("active-asc, asc",(0,l.oB)({transform:"rotate(-45deg)"})),(0,l.SB)("active-desc, desc",(0,l.oB)({transform:"rotate(45deg)"})),(0,l.eR)("active-asc <=> active-desc",(0,l.jt)(w))]),rightPointer:(0,l.X$)("rightPointer",[(0,l.SB)("active-asc, asc",(0,l.oB)({transform:"rotate(45deg)"})),(0,l.SB)("active-desc, desc",(0,l.oB)({transform:"rotate(-45deg)"})),(0,l.eR)("active-asc <=> active-desc",(0,l.jt)(w))]),arrowOpacity:(0,l.X$)("arrowOpacity",[(0,l.SB)("desc-to-active, asc-to-active, active",(0,l.oB)({opacity:1})),(0,l.SB)("desc-to-hint, asc-to-hint, hint",(0,l.oB)({opacity:.54})),(0,l.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,l.oB)({opacity:0})),(0,l.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,l.jt)("0ms")),(0,l.eR)("* <=> *",(0,l.jt)(w))]),arrowPosition:(0,l.X$)("arrowPosition",[(0,l.eR)("* => desc-to-hint, * => desc-to-active",(0,l.jt)(w,(0,l.F4)([(0,l.oB)({transform:"translateY(-25%)"}),(0,l.oB)({transform:"translateY(0)"})]))),(0,l.eR)("* => hint-to-desc, * => active-to-desc",(0,l.jt)(w,(0,l.F4)([(0,l.oB)({transform:"translateY(0)"}),(0,l.oB)({transform:"translateY(25%)"})]))),(0,l.eR)("* => asc-to-hint, * => asc-to-active",(0,l.jt)(w,(0,l.F4)([(0,l.oB)({transform:"translateY(25%)"}),(0,l.oB)({transform:"translateY(0)"})]))),(0,l.eR)("* => hint-to-asc, * => active-to-asc",(0,l.jt)(w,(0,l.F4)([(0,l.oB)({transform:"translateY(0)"}),(0,l.oB)({transform:"translateY(-25%)"})]))),(0,l.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,l.oB)({transform:"translateY(0)"})),(0,l.SB)("hint-to-desc, active-to-desc, desc",(0,l.oB)({transform:"translateY(-25%)"})),(0,l.SB)("hint-to-asc, active-to-asc, asc",(0,l.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,l.X$)("allowChildren",[(0,l.eR)("* <=> *",[(0,l.IO)("@*",(0,l.pV)(),{optional:!0})])])};let y=(()=>{class t{constructor(){this.changes=new a.xQ}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const v={provide:y,deps:[[new n.FiY,new n.tp0,y]],useFactory:function(t){return t||new y}};class T{}const C=(0,o.Id)(T);let E=(()=>{class t extends C{constructor(t,e,i,n,s,o){super(),this._intl=t,this._changeDetectorRef=e,this._sort=i,this._columnDef=n,this._focusMonitor=s,this._elementRef=o,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._handleStateChanges()}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=(0,s.Ig)(t)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{const e=!!t;e!==this._showIndicatorHint&&(this._setIndicatorHintVisible(e),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t||{},this._disableViewStateAnimation&&(this._viewState={toState:t.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(t){this._isDisabled()||t.keyCode!==r.L_&&t.keyCode!==r.K5||(t.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 t=this._viewState.fromState;return(t?`${t}-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()}_handleStateChanges(){this._rerenderSubscription=(0,c.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 t.\u0275fac=function(e){return new(e||t)(n.Y36(y),n.Y36(n.sBO),n.Y36(_,8),n.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),n.Y36(h.tE),n.Y36(n.SBq))},t.\u0275cmp=n.Xpm({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&n.NdJ("click",function(){return e._handleClick()})("keydown",function(t){return e._handleKeydown(t)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&t&&(n.uIk("aria-sort",e._getAriaSortAttribute()),n.ekj("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[n.qOj],attrs:d,ngContentSelectors:g,decls:4,vars:6,consts:[["role","button",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(t,e){1&t&&(n.F$t(),n.TgZ(0,"div",0),n.TgZ(1,"div",1),n.Hsn(2),n.qZA(),n.YNc(3,p,6,6,"div",2),n.qZA()),2&t&&(n.ekj("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),n.uIk("tabindex",e._isDisabled()?null:0),n.xp6(3),n.Q6J("ngIf",e._renderArrow()))},directives:[u.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-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}\n"],encapsulation:2,data:{animation:[A.indicator,A.leftPointer,A.rightPointer,A.arrowOpacity,A.arrowPosition,A.allowChildren]},changeDetection:0}),t})(),S=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[v],imports:[[u.ez,o.BQ]]}),t})()},70663:function(t,e,i){"use strict";i.d(e,{C0:function(){return rt},BY:function(){return ot},VY:function(){return Q},Vq:function(){return ut},T5:function(){return dt},fd:function(){return ht}});var n=i(26899),s=i(24621),o=i(22526),r=i(19861),a=i(75842),c=i(61511),l=i(31572),u=i(55959),h=i(40878),d=i(56238),p=i(25416);function g(t,e){1&t&&l.Hsn(0)}const f=["*"];let m=(()=>{class t{constructor(t){this._elementRef=t}focus(){this._elementRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(l.SBq))},t.\u0275dir=l.lG2({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),t})(),b=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(l.Rgc))},t.\u0275dir=l.lG2({type:t,selectors:[["","cdkStepLabel",""]]}),t})(),_=0;const w=new l.OlP("STEPPER_GLOBAL_OPTIONS");let A=(()=>{class t{constructor(t,e){this._stepper=t,this.interacted=!1,this.interactedStream=new l.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=e||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType,this._showError=!!this._stepperOptions.showError}get editable(){return this._editable}set editable(t){this._editable=(0,r.Ig)(t)}get optional(){return this._optional}set optional(t){this._optional=(0,r.Ig)(t)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(t){this._completedOverride=(0,r.Ig)(t)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(t){this._customError=(0,r.Ig)(t)}_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))}}return t.\u0275fac=function(e){return new(e||t)(l.Y36((0,l.Gpc)(()=>y)),l.Y36(w,8))},t.\u0275cmp=l.Xpm({type:t,selectors:[["cdk-step"]],contentQueries:function(t,e,i){if(1&t&&l.Suo(i,b,5),2&t){let t;l.iGM(t=l.CRH())&&(e.stepLabel=t.first)}},viewQuery:function(t,e){if(1&t&&l.Gf(l.Rgc,7),2&t){let t;l.iGM(t=l.CRH())&&(e.content=t.first)}},inputs:{editable:"editable",optional:"optional",completed:"completed",hasError:"hasError",stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[l.TTD],ngContentSelectors:f,decls:1,vars:0,template:function(t,e){1&t&&(l.F$t(),l.YNc(0,g,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t})(),y=(()=>{class t{constructor(t,e,i,n){this._dir=t,this._changeDetectorRef=e,this._elementRef=i,this._destroyed=new u.xQ,this.steps=new l.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new l.vpe,this._orientation="horizontal",this._groupId=_++,this._document=n}get linear(){return this._linear}set linear(t){this._linear=(0,r.Ig)(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){var e;const i=(0,r.su)(t);this.steps&&this._steps?(this._isValidIndex(t),null===(e=this.selected)||void 0===e||e._markAsInteracted(),this._selectedIndex!==i&&!this._anyControlsInvalidOrPending(i)&&(i>=this._selectedIndex||this.steps.toArray()[i].editable)&&this._updateSelectedItemIndex(t)):this._selectedIndex=i}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(t){this.selectedIndex=t&&this.steps?this.steps.toArray().indexOf(t):-1}get orientation(){return this._orientation}set orientation(t){this._orientation=t,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===t)}ngAfterContentInit(){this._steps.changes.pipe((0,d.O)(this._steps),(0,p.R)(this._destroyed)).subscribe(t=>{this.steps.reset(t.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._keyManager=new s.Em(this._stepHeader).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,h.of)()).pipe((0,d.O)(this._layoutDirection()),(0,p.R)(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),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._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(t=>t.reset()),this._stateChanged()}_getStepLabelId(t){return`cdk-step-label-${this._groupId}-${t}`}_getStepContentId(t){return`cdk-step-content-${this._groupId}-${t}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(t){const e=t-this._selectedIndex;return e<0?"rtl"===this._layoutDirection()?"next":"previous":e>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(t,e="number"){const i=this.steps.toArray()[t],n=this._isCurrentStep(t);return i._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(i,n):this._getGuidelineLogic(i,n,e)}_getDefaultIndicatorLogic(t,e){return t._showError&&t.hasError&&!e?"error":!t.completed||e?"number":t.editable?"edit":"done"}_getGuidelineLogic(t,e,i="number"){return t._showError&&t.hasError&&!e?"error":t.completed&&!e?"done":t.completed&&e?i:t.editable&&e?"edit":i}_isCurrentStep(t){return this._selectedIndex===t}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(t){const e=this.steps.toArray();this.selectionChange.emit({selectedIndex:t,previouslySelectedIndex:this._selectedIndex,selectedStep:e[t],previouslySelectedStep:e[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(t):this._keyManager.updateActiveItem(t),this._selectedIndex=t,this._stateChanged()}_onKeydown(t){const e=(0,a.Vb)(t),i=t.keyCode,n=this._keyManager;null==n.activeItemIndex||e||i!==a.L_&&i!==a.K5?n.onKeydown(t):(this.selectedIndex=n.activeItemIndex,t.preventDefault())}_anyControlsInvalidOrPending(t){return!!(this._linear&&t>=0)&&this.steps.toArray().slice(0,t).some(t=>{const e=t.stepControl;return(e?e.invalid||e.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}_isValidIndex(t){return t>-1&&(!this.steps||t{class t{constructor(t){this._stepper=t,this.type="button"}_handleClick(){this._stepper.previous()}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(y))},t.\u0275dir=l.lG2({type:t,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(t,e){1&t&&l.NdJ("click",function(){return e._handleClick()}),2&t&&l.Ikx("type",e.type)},inputs:{type:"type"}}),t})(),T=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({imports:[[o.vT]]}),t})();var C=i(15980),E=i(71522),S=i(43691),k=i(87570),I=i(44689),x=i(79996),R=i(98720),O=i(10709);function P(t,e){if(1&t&&l.GkF(0,8),2&t){const t=l.oxw();l.Q6J("ngTemplateOutlet",t.iconOverrides[t.state])("ngTemplateOutletContext",t._getIconContext())}}function D(t,e){if(1&t&&(l.TgZ(0,"span"),l._uU(1),l.qZA()),2&t){const t=l.oxw(2);l.xp6(1),l.Oqu(t._getDefaultTextForState(t.state))}}function M(t,e){if(1&t&&(l.TgZ(0,"mat-icon"),l._uU(1),l.qZA()),2&t){const t=l.oxw(2);l.xp6(1),l.Oqu(t._getDefaultTextForState(t.state))}}function L(t,e){if(1&t&&(l.ynx(0,9),l.YNc(1,D,2,1,"span",10),l.YNc(2,M,2,1,"mat-icon",11),l.BQk()),2&t){const t=l.oxw();l.Q6J("ngSwitch",t.state),l.xp6(1),l.Q6J("ngSwitchCase","number")}}function N(t,e){if(1&t&&(l.TgZ(0,"div",12),l.GkF(1,13),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.Q6J("ngTemplateOutlet",t._templateLabel().template)}}function z(t,e){if(1&t&&(l.TgZ(0,"div",12),l._uU(1),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.Oqu(t.label)}}function Z(t,e){if(1&t&&(l.TgZ(0,"div",14),l._uU(1),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.Oqu(t._intl.optionalLabel)}}function B(t,e){if(1&t&&(l.TgZ(0,"div",15),l._uU(1),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.Oqu(t.errorMessage)}}function q(t,e){}function F(t,e){if(1&t&&(l.Hsn(0),l.YNc(1,q,0,0,"ng-template",0)),2&t){const t=l.oxw();l.xp6(1),l.Q6J("cdkPortalOutlet",t._portal)}}const U=["*"];function H(t,e){1&t&&l._UZ(0,"div",9)}const G=function(t,e){return{step:t,i:e}};function j(t,e){if(1&t&&(l.ynx(0),l.GkF(1,7),l.YNc(2,H,1,0,"div",8),l.BQk()),2&t){const t=e.$implicit,i=e.index,n=e.last;l.oxw(2);const s=l.MAs(4);l.xp6(1),l.Q6J("ngTemplateOutlet",s)("ngTemplateOutletContext",l.WLB(3,G,t,i)),l.xp6(1),l.Q6J("ngIf",!n)}}function Y(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div",10),l.NdJ("@horizontalStepTransition.done",function(e){return l.CHM(t),l.oxw(2)._animationDone.next(e)}),l.GkF(1,11),l.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=l.oxw(2);l.Q6J("@horizontalStepTransition",n._getAnimationDirection(i))("id",n._getStepContentId(i)),l.uIk("aria-labelledby",n._getStepLabelId(i))("aria-expanded",n.selectedIndex===i),l.xp6(1),l.Q6J("ngTemplateOutlet",t.content)}}function K(t,e){if(1&t&&(l.ynx(0),l.TgZ(1,"div",3),l.YNc(2,j,3,6,"ng-container",4),l.qZA(),l.TgZ(3,"div",5),l.YNc(4,Y,2,5,"div",6),l.qZA(),l.BQk()),2&t){const t=l.oxw();l.xp6(2),l.Q6J("ngForOf",t.steps),l.xp6(2),l.Q6J("ngForOf",t.steps)}}function V(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div",13),l.GkF(1,7),l.TgZ(2,"div",14),l.TgZ(3,"div",15),l.NdJ("@verticalStepTransition.done",function(e){return l.CHM(t),l.oxw(2)._animationDone.next(e)}),l.TgZ(4,"div",16),l.GkF(5,11),l.qZA(),l.qZA(),l.qZA(),l.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=e.last,s=l.oxw(2),o=l.MAs(4);l.xp6(1),l.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",l.WLB(9,G,t,i)),l.xp6(1),l.ekj("mat-stepper-vertical-line",!n),l.xp6(1),l.Q6J("@verticalStepTransition",s._getAnimationDirection(i))("id",s._getStepContentId(i)),l.uIk("aria-labelledby",s._getStepLabelId(i))("aria-expanded",s.selectedIndex===i),l.xp6(2),l.Q6J("ngTemplateOutlet",t.content)}}function $(t,e){if(1&t&&(l.ynx(0),l.YNc(1,V,6,12,"div",12),l.BQk()),2&t){const t=l.oxw();l.xp6(1),l.Q6J("ngForOf",t.steps)}}function J(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"mat-step-header",17),l.NdJ("click",function(){return e.step.select()})("keydown",function(e){return l.CHM(t),l.oxw()._onKeydown(e)}),l.qZA()}if(2&t){const t=e.step,i=e.i,n=l.oxw();l.ekj("mat-horizontal-stepper-header","horizontal"===n.orientation)("mat-vertical-stepper-header","vertical"===n.orientation),l.Q6J("tabIndex",n._getFocusIndex()===i?0:-1)("id",n._getStepLabelId(i))("index",i)("state",n._getIndicatorType(i,t.state))("label",t.stepLabel||t.label)("selected",n.selectedIndex===i)("active",t.completed||n.selectedIndex===i||!n.linear)("optional",t.optional)("errorMessage",t.errorMessage)("iconOverrides",n._iconOverrides)("disableRipple",n.disableRipple)("color",t.color||n.color),l.uIk("aria-posinset",i+1)("aria-setsize",n.steps.length)("aria-controls",n._getStepContentId(i))("aria-selected",n.selectedIndex==i)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null)}}let Q=(()=>{class t extends b{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=l.n5z(t)))(i||t)}}(),t.\u0275dir=l.lG2({type:t,selectors:[["","matStepLabel",""]],features:[l.qOj]}),t})(),W=(()=>{class t{constructor(){this.changes=new u.xQ,this.optionalLabel="Optional"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=l.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const X={provide:W,deps:[[new l.FiY,new l.tp0,W]],useFactory:function(t){return t||new W}};class tt extends m{constructor(t){super(t)}}const et=(0,E.pj)(tt,"primary");let it=(()=>{class t extends et{constructor(t,e,i,n){super(i),this._intl=t,this._focusMonitor=e,this._intlSubscription=t.changes.subscribe(()=>n.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,e){t?this._focusMonitor.focusVia(this._elementRef,t,e):this._elementRef.nativeElement.focus(e)}_stringLabel(){return this.label instanceof Q?null:this.label}_templateLabel(){return this.label instanceof Q?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(t){return"number"==t?`${this.index+1}`:"edit"==t?"create":"error"==t?"warning":t}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(W),l.Y36(s.tE),l.Y36(l.SBq),l.Y36(l.sBO))},t.\u0275cmp=l.Xpm({type:t,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:[l.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"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(t,e){1&t&&(l._UZ(0,"div",0),l.TgZ(1,"div"),l.TgZ(2,"div",1),l.YNc(3,P,1,2,"ng-container",2),l.YNc(4,L,3,2,"ng-container",3),l.qZA(),l.qZA(),l.TgZ(5,"div",4),l.YNc(6,N,2,1,"div",5),l.YNc(7,z,2,1,"div",5),l.YNc(8,Z,2,1,"div",6),l.YNc(9,B,2,1,"div",7),l.qZA()),2&t&&(l.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disableRipple),l.xp6(1),l.Gre("mat-step-icon-state-",e.state," mat-step-icon"),l.ekj("mat-step-icon-selected",e.selected),l.xp6(1),l.Q6J("ngSwitch",!(!e.iconOverrides||!e.iconOverrides[e.state])),l.xp6(1),l.Q6J("ngSwitchCase",!0),l.xp6(2),l.ekj("mat-step-label-active",e.active)("mat-step-label-selected",e.selected)("mat-step-label-error","error"==e.state),l.xp6(1),l.Q6J("ngIf",e._templateLabel()),l.xp6(1),l.Q6J("ngIf",e._stringLabel()),l.xp6(1),l.Q6J("ngIf",e.optional&&"error"!=e.state),l.xp6(1),l.Q6J("ngIf","error"==e.state))},directives:[E.wG,c.RF,c.n9,c.ED,c.O5,c.tP,S.Hw],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.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,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.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}\n"],encapsulation:2,changeDetection:0}),t})();const nt={horizontalStepTransition:(0,O.X$)("horizontalStepTransition",[(0,O.SB)("previous",(0,O.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,O.SB)("current",(0,O.oB)({transform:"none",visibility:"inherit"})),(0,O.SB)("next",(0,O.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,O.eR)("* => *",(0,O.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,O.X$)("verticalStepTransition",[(0,O.SB)("previous",(0,O.oB)({height:"0px",visibility:"hidden"})),(0,O.SB)("next",(0,O.oB)({height:"0px",visibility:"hidden"})),(0,O.SB)("current",(0,O.oB)({height:"*",visibility:"inherit"})),(0,O.eR)("* <=> current",(0,O.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let st=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(l.Rgc))},t.\u0275dir=l.lG2({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),t})(),ot=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(l.Rgc))},t.\u0275dir=l.lG2({type:t,selectors:[["ng-template","matStepContent",""]]}),t})(),rt=(()=>{class t extends A{constructor(t,e,i,n){super(t,n),this._errorStateMatcher=e,this._viewContainerRef=i,this._isSelected=k.w.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,I.w)(()=>this._stepper.selectionChange.pipe((0,x.U)(t=>t.selectedStep===this),(0,d.O)(this._stepper.selected===this)))).subscribe(t=>{t&&this._lazyContent&&!this._portal&&(this._portal=new n.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(t,e){return this._errorStateMatcher.isErrorState(t,e)||!!(t&&t.invalid&&this.interacted)}}return t.\u0275fac=function(e){return new(e||t)(l.Y36((0,l.Gpc)(()=>ut)),l.Y36(E.rD,4),l.Y36(l.s_b),l.Y36(w,8))},t.\u0275cmp=l.Xpm({type:t,selectors:[["mat-step"]],contentQueries:function(t,e,i){if(1&t&&(l.Suo(i,Q,5),l.Suo(i,ot,5)),2&t){let t;l.iGM(t=l.CRH())&&(e.stepLabel=t.first),l.iGM(t=l.CRH())&&(e._lazyContent=t.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[l._Bn([{provide:E.rD,useExisting:t},{provide:A,useExisting:t}]),l.qOj],ngContentSelectors:U,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(l.F$t(),l.YNc(0,F,2,1,"ng-template"))},directives:[n.Pl],encapsulation:2,changeDetection:0}),t})(),at=(()=>{class t extends y{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=l.n5z(t)))(i||t)}}(),t.\u0275dir=l.lG2({type:t,features:[l.qOj]}),t})(),ct=(()=>{class t extends at{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=l.n5z(t)))(i||t)}}(),t.\u0275dir=l.lG2({type:t,selectors:[["mat-horizontal-stepper"]],features:[l.qOj]}),t})(),lt=(()=>{class t extends at{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=l.n5z(t)))(i||t)}}(),t.\u0275dir=l.lG2({type:t,selectors:[["mat-vertical-stepper"]],features:[l.qOj]}),t})(),ut=(()=>{class t extends y{constructor(t,e,i,n){super(t,e,i,n),this.steps=new l.n_E,this.animationDone=new l.vpe,this.labelPosition="end",this._iconOverrides={},this._animationDone=new u.xQ;const s=i.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===s?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:t,templateRef:e})=>this._iconOverrides[t]=e),this.steps.changes.pipe((0,p.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,R.x)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState),(0,p.R)(this._destroyed)).subscribe(t=>{"current"===t.toState&&this.animationDone.emit()})}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(o.Is,8),l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(c.K0))},t.\u0275cmp=l.Xpm({type:t,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(t,e,i){if(1&t&&(l.Suo(i,rt,5),l.Suo(i,st,5)),2&t){let t;l.iGM(t=l.CRH())&&(e._steps=t),l.iGM(t=l.CRH())&&(e._icons=t)}},viewQuery:function(t,e){if(1&t&&l.Gf(it,5),2&t){let t;l.iGM(t=l.CRH())&&(e._stepHeader=t)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(t,e){2&t&&(l.uIk("aria-orientation",e.orientation),l.ekj("mat-stepper-horizontal","horizontal"===e.orientation)("mat-stepper-vertical","vertical"===e.orientation)("mat-stepper-label-position-end","horizontal"===e.orientation&&"end"==e.labelPosition)("mat-stepper-label-position-bottom","horizontal"===e.orientation&&"bottom"==e.labelPosition))},inputs:{selectedIndex:"selectedIndex",labelPosition:"labelPosition",disableRipple:"disableRipple",color:"color"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[l._Bn([{provide:y,useExisting:t},{provide:ct,useExisting:t},{provide:lt,useExisting:t}]),l.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[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(t,e){1&t&&(l.ynx(0,0),l.YNc(1,K,5,2,"ng-container",1),l.YNc(2,$,2,1,"ng-container",1),l.BQk(),l.YNc(3,J,1,22,"ng-template",null,2,l.W1O)),2&t&&(l.Q6J("ngSwitch",e.orientation),l.xp6(1),l.Q6J("ngSwitchCase","horizontal"),l.xp6(1),l.Q6J("ngSwitchCase","vertical"))},directives:[c.RF,c.n9,c.sg,c.tP,c.O5,it],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-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-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}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[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}\n'],encapsulation:2,data:{animation:[nt.horizontalStepTransition,nt.verticalStepTransition]},changeDetection:0}),t})(),ht=(()=>{class t extends v{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=l.n5z(t)))(i||t)}}(),t.\u0275dir=l.lG2({type:t,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(t,e){2&t&&l.Ikx("type",e.type)},inputs:{type:"type"},features:[l.qOj]}),t})(),dt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({providers:[X,E.rD],imports:[[E.BQ,c.ez,n.eL,C.ot,T,S.Ps,E.si],E.BQ]}),t})()},67033:function(t,e,i){"use strict";i.d(e,{ev:function(){return dt},Dz:function(){return ct},w1:function(){return ut},ge:function(){return ht},fO:function(){return lt},XQ:function(){return ft},as:function(){return pt},Gk:function(){return mt},nj:function(){return gt},BZ:function(){return at},by:function(){return wt},p0:function(){return bt}});var n=i(19861),s=i(4230),o=i(31572),r=i(22526),a=i(11353),c=i(4253),l=i(61511),u=i(55959),h=i(19764),d=i(78512),p=i(4710),g=i(40878),f=i(25416),m=i(90611);const b=[[["caption"]],[["colgroup"],["col"]]],_=["caption","colgroup, col"];function w(t){return class extends t{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=(0,n.Ig)(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const A=new o.OlP("CDK_TABLE");let y=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc))},t.\u0275dir=o.lG2({type:t,selectors:[["","cdkCellDef",""]]}),t})(),v=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc))},t.\u0275dir=o.lG2({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),T=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc))},t.\u0275dir=o.lG2({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class C{}const E=w(C);let S=(()=>{class t extends E{constructor(t){super(),this._table=t,this._stickyEnd=!1}get name(){return this._name}set name(t){this._setNameInput(t)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const e=this._stickyEnd;this._stickyEnd=(0,n.Ig)(t),this._hasStickyChanged=e!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(A,8))},t.\u0275dir=o.lG2({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,i){if(1&t&&(o.Suo(i,y,5),o.Suo(i,v,5),o.Suo(i,T,5)),2&t){let t;o.iGM(t=o.CRH())&&(e.cell=t.first),o.iGM(t=o.CRH())&&(e.headerCell=t.first),o.iGM(t=o.CRH())&&(e.footerCell=t.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[o._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),o.qOj]}),t})();class k{constructor(t,e){const i=e.nativeElement.classList;for(const n of t._columnCssClassName)i.add(n)}}let I=(()=>{class t extends k{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(S),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[o.qOj]}),t})(),x=(()=>{class t extends k{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(S),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[o.qOj]}),t})();class R{constructor(){this.tasks=[],this.endTasks=[]}}const O=new o.OlP("_COALESCED_STYLE_SCHEDULER");let P=(()=>{class t{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new u.xQ}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new R,this._getScheduleObservable().pipe((0,f.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const t=this._currentSchedule;this._currentSchedule=new R;for(const e of t.tasks)e();for(const e of t.endTasks)e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,h.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,m.q)(1))}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(o.R0b))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t})(),D=(()=>{class t{constructor(t,e){this.template=t,this._differs=e}ngOnChanges(t){if(!this._columnsDiffer){const e=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof N?t.headerCell.template:this instanceof B?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc),o.Y36(o.ZZ4))},t.\u0275dir=o.lG2({type:t,features:[o.TTD]}),t})();class M extends D{}const L=w(M);let N=(()=>{class t extends L{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc),o.Y36(o.ZZ4),o.Y36(A,8))},t.\u0275dir=o.lG2({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[o.qOj,o.TTD]}),t})();class z extends D{}const Z=w(z);let B=(()=>{class t extends Z{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc),o.Y36(o.ZZ4),o.Y36(A,8))},t.\u0275dir=o.lG2({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[o.qOj,o.TTD]}),t})(),q=(()=>{class t extends D{constructor(t,e,i){super(t,e),this._table=i}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc),o.Y36(o.ZZ4),o.Y36(A,8))},t.\u0275dir=o.lG2({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[o.qOj]}),t})(),F=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.s_b))},t.\u0275dir=o.lG2({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&o.GkF(0,0)},directives:[F],encapsulation:2}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&o.GkF(0,0)},directives:[F],encapsulation:2}),t})(),G=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc))},t.\u0275dir=o.lG2({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const j=["top","bottom","left","right"];class Y{constructor(t,e,i,n,s=!0,o=!0,r){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=n,this._isBrowser=s,this._needsPositionStickyOnElement=o,this._positionListener=r,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(t,e){const i=[];for(const n of t)if(n.nodeType===n.ELEMENT_NODE){i.push(n);for(let t=0;t{for(const t of i)this._removeStickyStyle(t,e)})}updateStickyColumns(t,e,i,n=!0){if(!t.length||!this._isBrowser||!e.some(t=>t)&&!i.some(t=>t))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const s=t[0],o=s.children.length,r=this._getCellWidths(s,n),a=this._getStickyStartColumnPositions(r,e),c=this._getStickyEndColumnPositions(r,i),l=e.lastIndexOf(!0),u=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const n="rtl"===this.direction,s=n?"right":"left",h=n?"left":"right";for(const r of t)for(let t=0;te[i]?t:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===u?[]:r.slice(u).map((t,e)=>i[e+u]?t:null).reverse()}))})}stickRows(t,e,i){if(!this._isBrowser)return;const n="bottom"===i?t.slice().reverse():t,s="bottom"===i?e.slice().reverse():e,o=[],r=[],a=[];for(let l=0,u=0;l{var t,e;for(let r=0;r{e.some(t=>!t)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(t,e){for(const i of e)t.style[i]="",t.classList.remove(this._borderCellCss[i]);j.some(i=>-1===e.indexOf(i)&&t.style[i])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i,n){t.classList.add(this._stickCellCss),n&&t.classList.add(this._borderCellCss[e]),t.style[e]=`${i}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const n of j)t.style[n]&&(i+=e[n]);return i?`${i}`:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],n=t.children;for(let s=0;s0;s--)e[s]&&(i[s]=n,n+=t[s]);return i}}const K=new o.OlP("CDK_SPL");let V=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.s_b),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["","rowOutlet",""]]}),t})(),$=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.s_b),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),J=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.s_b),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),Q=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.s_b),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),W=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,l,h){this._differs=t,this._changeDetectorRef=e,this._elementRef=i,this._dir=s,this._platform=r,this._viewRepeater=a,this._coalescedStyleScheduler=c,this._viewportRuler=l,this._stickyPositioningListener=h,this._onDestroy=new u.xQ,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.viewChange=new d.X({start:0,end:Number.MAX_VALUE}),n||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=o,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=(0,n.Ig)(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=(0,n.Ig)(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,e)=>this.trackBy?this.trackBy(e.dataIndex,e.data):e),this._viewportRuler.change().pipe((0,f.R)(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.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),(0,s.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return void this._updateNoDataRow();const e=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,e,(t,e,i)=>this._getEmbeddedViewArgs(t.item,i),t=>t.item.data,t=>{1===t.operation&&t.context&&this._renderCellTemplateForItem(t.record.item.rowDef,t.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(t=>{e.get(t.currentIndex).context.$implicit=t.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");const i=this._headerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"top"),this._headerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");const i=this._footerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...e,...i],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((t,e)=>{this._addStickyColumnStyles([t],this._headerRowDefs[e])}),this._rowDefs.forEach(t=>{const i=[];for(let n=0;n{this._addStickyColumnStyles([t],this._footerRowDefs[e])}),Array.from(this._columnDefsByName.values()).forEach(t=>t.resetStickyChanged())}_getAllRenderRows(){const t=[],e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let i=0;i{const s=i&&i.has(n)?i.get(n):[];if(s.length){const t=s.shift();return t.dataIndex=e,t}return{data:t,rowDef:n,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),X(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=X(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=X(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=X(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(t,e)=>t||!!e.getColumnsDiff(),e=this._rowDefs.reduce(t,!1);e&&this._forceRenderDataRows();const i=this._headerRowDefs.reduce(t,!1);i&&this._forceRenderHeaderRows();const n=this._footerRowDefs.reduce(t,!1);return n&&this._forceRenderFooterRows(),e||i||n}_switchDataSource(t){this._data=[],(0,s.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;(0,s.Z9)(this.dataSource)?t=this.dataSource.connect(this):(0,p.b)(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=(0,g.of)(this.dataSource)),this._renderChangeSubscription=t.pipe((0,f.R)(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,e)=>this._renderRow(this._headerRowOutlet,t,e)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,e)=>this._renderRow(this._footerRowOutlet,t,e)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,e){const i=Array.from(e.columns||[]).map(t=>this._columnDefsByName.get(t)),n=i.map(t=>t.sticky),s=i.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,n,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){const e=[];for(let i=0;i!i.when||i.when(e,t));else{let n=this._rowDefs.find(i=>i.when&&i.when(e,t))||this._defaultRowDef;n&&i.push(n)}return i}_getEmbeddedViewArgs(t,e){return{templateRef:t.rowDef.template,context:{$implicit:t.data},index:e}}_renderRow(t,e,i,n={}){const s=t.viewContainer.createEmbeddedView(e.template,n,i);return this._renderCellTemplateForItem(e,n),s}_renderCellTemplateForItem(t,e){for(let i of this._getCellTemplates(t))F.mostRecentCellOutlet&&F.mostRecentCellOutlet._viewContainer.createEmbeddedView(i,e);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let e=0,i=t.length;e{const i=this._columnDefsByName.get(e);return t.extractCellTemplate(i)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),e=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const i of e){const e=this._document.createElement(i.tag);e.setAttribute("role","rowgroup");for(const t of i.outlets)e.appendChild(t.elementRef.nativeElement);t.appendChild(e)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const t=(t,e)=>t||e.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Y(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,g.of)()).pipe((0,f.R)(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const t=this._customNoDataRow||this._noDataRow;if(t){const e=0===this._rowOutlet.viewContainer.length;if(e!==this._isShowingNoDataRow){const i=this._noDataRowOutlet.viewContainer;e?i.createEmbeddedView(t.templateRef):i.clear(),this._isShowingNoDataRow=e}}}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.ZZ4),o.Y36(o.sBO),o.Y36(o.SBq),o.$8M("role"),o.Y36(r.Is,8),o.Y36(l.K0),o.Y36(a.t4),o.Y36(s.k),o.Y36(O),o.Y36(c.rL),o.Y36(K,12))},t.\u0275cmp=o.Xpm({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,i){if(1&t&&(o.Suo(i,G,5),o.Suo(i,S,5),o.Suo(i,q,5),o.Suo(i,N,5),o.Suo(i,B,5)),2&t){let t;o.iGM(t=o.CRH())&&(e._noDataRow=t.first),o.iGM(t=o.CRH())&&(e._contentColumnDefs=t),o.iGM(t=o.CRH())&&(e._contentRowDefs=t),o.iGM(t=o.CRH())&&(e._contentHeaderRowDefs=t),o.iGM(t=o.CRH())&&(e._contentFooterRowDefs=t)}},viewQuery:function(t,e){if(1&t&&(o.Gf(V,7),o.Gf($,7),o.Gf(J,7),o.Gf(Q,7)),2&t){let t;o.iGM(t=o.CRH())&&(e._rowOutlet=t.first),o.iGM(t=o.CRH())&&(e._headerRowOutlet=t.first),o.iGM(t=o.CRH())&&(e._footerRowOutlet=t.first),o.iGM(t=o.CRH())&&(e._noDataRowOutlet=t.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,e){2&t&&o.ekj("cdk-table-fixed-layout",e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[o._Bn([{provide:A,useExisting:t},{provide:s.k,useClass:s.yy},{provide:O,useClass:P},{provide:K,useValue:null}])],ngContentSelectors:_,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(o.F$t(b),o.Hsn(0),o.Hsn(1,1),o.GkF(2,0),o.GkF(3,1),o.GkF(4,2),o.GkF(5,3))},directives:[$,V,Q,J],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})();function X(t,e){return t.concat(Array.from(e))}let tt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[c.Cl]]}),t})();var et=i(71522),it=i(31906),nt=i(31305),st=i(79996);const ot=[[["caption"]],[["colgroup"],["col"]]],rt=["caption","colgroup, col"];let at=(()=>{class t extends W{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(t,e){2&t&&o.ekj("mat-table-fixed-layout",e.fixedLayout)},exportAs:["matTable"],features:[o._Bn([{provide:s.k,useClass:s.yy},{provide:W,useExisting:t},{provide:A,useExisting:t},{provide:O,useClass:P},{provide:K,useValue:null}]),o.qOj],ngContentSelectors:rt,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(o.F$t(ot),o.Hsn(0),o.Hsn(1,1),o.GkF(2,0),o.GkF(3,1),o.GkF(4,2),o.GkF(5,3))},directives:[$,V,Q,J],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-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}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:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),t})(),ct=(()=>{class t extends y{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["","matCellDef",""]],features:[o._Bn([{provide:y,useExisting:t}]),o.qOj]}),t})(),lt=(()=>{class t extends v{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["","matHeaderCellDef",""]],features:[o._Bn([{provide:v,useExisting:t}]),o.qOj]}),t})(),ut=(()=>{class t extends S{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[o._Bn([{provide:S,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),o.qOj]}),t})(),ht=(()=>{class t extends I{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[o.qOj]}),t})(),dt=(()=>{class t extends x{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[o.qOj]}),t})(),pt=(()=>{class t extends N{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[o._Bn([{provide:N,useExisting:t}]),o.qOj]}),t})(),gt=(()=>{class t extends q{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[o._Bn([{provide:q,useExisting:t}]),o.qOj]}),t})(),ft=(()=>{class t extends U{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[o._Bn([{provide:U,useExisting:t}]),o.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&o.GkF(0,0)},directives:[F],encapsulation:2}),t})(),mt=(()=>{class t extends H{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[o._Bn([{provide:H,useExisting:t}]),o.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&o.GkF(0,0)},directives:[F],encapsulation:2}),t})(),bt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[tt,et.BQ],et.BQ]}),t})();class _t extends s.o2{constructor(t=[]){super(),this._renderData=new d.X([]),this._filter=new d.X(""),this._internalPageChanges=new u.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(t,e)=>{const i=t[e];if((0,n.t6)(i)){const t=Number(i);return t<9007199254740991?t:i}return i},this.sortData=(t,e)=>{const i=e.active,n=e.direction;return i&&""!=n?t.sort((t,e)=>{let s=this.sortingDataAccessor(t,i),o=this.sortingDataAccessor(e,i);const r=typeof s,a=typeof o;r!==a&&("number"===r&&(s+=""),"number"===a&&(o+=""));let c=0;return null!=s&&null!=o?s>o?c=1:s{const i=Object.keys(t).reduce((e,i)=>e+t[i]+"\u25ec","").toLowerCase(),n=e.trim().toLowerCase();return-1!=i.indexOf(n)},this._data=new d.X(t),this._updateChangeSubscription()}get data(){return this._data.value}set data(t){this._data.next(t),this._renderChangesSubscription||this._filterData(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}_updateChangeSubscription(){var t;const e=this._sort?(0,it.T)(this._sort.sortChange,this._sort.initialized):(0,g.of)(null),i=this._paginator?(0,it.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,g.of)(null),n=(0,nt.aj)([this._data,this._filter]).pipe((0,st.U)(([t])=>this._filterData(t))),s=(0,nt.aj)([n,e]).pipe((0,st.U)(([t])=>this._orderData(t))),o=(0,nt.aj)([s,i]).pipe((0,st.U)(([t])=>this._pageData(t)));null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=o.subscribe(t=>this._renderData.next(t))}_filterData(t){return this.filteredData=null==this.filter||""===this.filter?t:t.filter(t=>this.filterPredicate(t,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;const e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=t,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,i=Math.min(e.pageIndex,t);i!==e.pageIndex&&(e.pageIndex=i,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var t;null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=null}}class wt extends _t{}},55109:function(t,e,i){"use strict";i.d(e,{uX:function(){return J},Vc:function(){return G},SP:function(){return at},uD:function(){return Y},Nh:function(){return ft}});var n=i(24621),s=i(36337),o=i(26899),r=i(61511),a=i(31572),c=i(71522),l=i(43490),u=i(55959),h=i(87570),d=i(31906),p=i(87254),g=i(40878),f=i(81110),m=i(10709),b=i(56238),_=i(98720),w=i(25416),A=i(19861),y=i(11353),v=i(75842),T=i(22526),C=i(4253);function E(t,e){1&t&&a.Hsn(0)}const S=["*"];function k(t,e){}const I=function(t){return{animationDuration:t}},x=function(t,e){return{value:t,params:e}},R=["tabBodyWrapper"],O=["tabHeader"];function P(t,e){}function D(t,e){if(1&t&&a.YNc(0,P,0,0,"ng-template",9),2&t){const t=a.oxw().$implicit;a.Q6J("cdkPortalOutlet",t.templateLabel)}}function M(t,e){if(1&t&&a._uU(0),2&t){const t=a.oxw().$implicit;a.Oqu(t.textLabel)}}function L(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div",6),a.NdJ("click",function(){const e=a.CHM(t),i=e.$implicit,n=e.index,s=a.oxw(),o=a.MAs(1);return s._handleClick(i,o,n)})("cdkFocusChange",function(e){const i=a.CHM(t).index;return a.oxw()._tabFocusChanged(e,i)}),a.TgZ(1,"div",7),a.YNc(2,D,1,1,"ng-template",8),a.YNc(3,M,1,1,"ng-template",8),a.qZA(),a.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=a.oxw();a.ekj("mat-tab-label-active",n.selectedIndex==i),a.Q6J("id",n._getTabLabelId(i))("disabled",t.disabled)("matRippleDisabled",t.disabled||n.disableRipple),a.uIk("tabIndex",n._getTabIndex(t,i))("aria-posinset",i+1)("aria-setsize",n._tabs.length)("aria-controls",n._getTabContentId(i))("aria-selected",n.selectedIndex==i)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),a.xp6(2),a.Q6J("ngIf",t.templateLabel),a.xp6(1),a.Q6J("ngIf",!t.templateLabel)}}function N(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-tab-body",10),a.NdJ("_onCentered",function(){return a.CHM(t),a.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(e){return a.CHM(t),a.oxw()._setTabBodyWrapperHeight(e)}),a.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=a.oxw();a.ekj("mat-tab-body-active",n.selectedIndex==i),a.Q6J("id",n._getTabContentId(i))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",n.animationDuration),a.uIk("aria-labelledby",n._getTabLabelId(i))}}const z=["tabListContainer"],Z=["tabList"],B=["nextPaginator"],q=["previousPaginator"],F=new a.OlP("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let U=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=i,this._animationMode=n}alignToElement(t){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(t))}):this._setStyles(t)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(t){const e=this._inkBarPositioner(t),i=this._elementRef.nativeElement;i.style.left=e.left,i.style.width=e.width}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(F),a.Y36(l.Qb,8))},t.\u0275dir=a.lG2({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&a.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t})();const H=new a.OlP("MatTabContent");let G=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.Rgc))},t.\u0275dir=a.lG2({type:t,selectors:[["","matTabContent",""]],features:[a._Bn([{provide:H,useExisting:t}])]}),t})();const j=new a.OlP("MatTabLabel");let Y=(()=>{class t extends o.ig{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=a.n5z(t)))(i||t)}}(),t.\u0275dir=a.lG2({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[a._Bn([{provide:j,useExisting:t}]),a.qOj]}),t})();class K{}const V=(0,c.Id)(K),$=new a.OlP("MAT_TAB_GROUP");let J=(()=>{class t extends V{constructor(t,e){super(),this._viewContainerRef=t,this._closestTabGroup=e,this.textLabel="",this._contentPortal=null,this._stateChanges=new u.xQ,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}get content(){return this._contentPortal}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new o.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&(this._templateLabel=t)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.s_b),a.Y36($,8))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,i){if(1&t&&(a.Suo(i,j,5),a.Suo(i,H,7,a.Rgc)),2&t){let t;a.iGM(t=a.CRH())&&(e.templateLabel=t.first),a.iGM(t=a.CRH())&&(e._explicitContent=t.first)}},viewQuery:function(t,e){if(1&t&&a.Gf(a.Rgc,7),2&t){let t;a.iGM(t=a.CRH())&&(e._implicitContent=t.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[a.qOj,a.TTD],ngContentSelectors:S,decls:1,vars:0,template:function(t,e){1&t&&(a.F$t(),a.YNc(0,E,1,0,"ng-template"))},encapsulation:2}),t})();const Q={translateTab:(0,m.X$)("translateTab",[(0,m.SB)("center, void, left-origin-center, right-origin-center",(0,m.oB)({transform:"none"})),(0,m.SB)("left",(0,m.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,m.SB)("right",(0,m.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,m.eR)("* => left, * => right, left => center, right => center",(0,m.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,m.eR)("void => left-origin-center",[(0,m.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,m.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,m.eR)("void => right-origin-center",[(0,m.oB)({transform:"translate3d(100%, 0, 0)"}),(0,m.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let W=(()=>{class t extends o.Pl{constructor(t,e,i,n){super(t,e,n),this._host=i,this._centeringSub=h.w.EMPTY,this._leavingSub=h.w.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,b.O)(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a._Vd),a.Y36(a.s_b),a.Y36((0,a.Gpc)(()=>tt)),a.Y36(r.K0))},t.\u0275dir=a.lG2({type:t,selectors:[["","matTabBodyHost",""]],features:[a.qOj]}),t})(),X=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._dir=e,this._dirChangeSubscription=h.w.EMPTY,this._translateTabComplete=new u.xQ,this._onCentering=new a.vpe,this._beforeCentering=new a.vpe,this._afterLeavingCenter=new a.vpe,this._onCentered=new a.vpe(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe(t=>{this._computePositionAnimationState(t),i.markForCheck()})),this._translateTabComplete.pipe((0,_.x)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(t){this._positionIndex=t,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){const e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}_computePositionAnimationState(t=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}_computePositionFromOrigin(t){const e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(T.Is,8),a.Y36(a.sBO))},t.\u0275dir=a.lG2({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),tt=(()=>{class t extends X{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(T.Is,8),a.Y36(a.sBO))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){if(1&t&&a.Gf(o.Pl,5),2&t){let t;a.iGM(t=a.CRH())&&(e._portalHost=t.first)}},hostAttrs:[1,"mat-tab-body"],features:[a.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(a.TgZ(0,"div",0,1),a.NdJ("@translateTab.start",function(t){return e._onTranslateTabStarted(t)})("@translateTab.done",function(t){return e._translateTabComplete.next(t)}),a.YNc(2,k,0,0,"ng-template",2),a.qZA()),2&t&&a.Q6J("@translateTab",a.WLB(3,x,e._position,a.VKq(1,I,e.animationDuration)))},directives:[W],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Q.translateTab]}}),t})();const et=new a.OlP("MAT_TABS_CONFIG");let it=0;class nt{}class st{constructor(t){this._elementRef=t}}const ot=(0,c.pj)((0,c.Kr)(st),"primary");let rt=(()=>{class t extends ot{constructor(t,e,i,n){super(t),this._changeDetectorRef=e,this._animationMode=n,this._tabs=new a.n_E,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=h.w.EMPTY,this._tabLabelSubscription=h.w.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new a.vpe,this.focusChange=new a.vpe,this.animationDone=new a.vpe,this.selectedTabChange=new a.vpe(!0),this._groupId=it++,this.animationDuration=i&&i.animationDuration?i.animationDuration:"500ms",this.disablePagination=!(!i||null==i.disablePagination)&&i.disablePagination,this.dynamicHeight=!(!i||null==i.dynamicHeight)&&i.dynamicHeight}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(t){this._dynamicHeight=(0,A.Ig)(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=(0,A.su)(t,null)}get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement;e.classList.remove(`mat-background-${this.backgroundColor}`),t&&e.classList.add(`mat-background-${t}`),this._backgroundColor=t}ngAfterContentChecked(){const t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){const e=null==this._selectedIndex;if(!e){this.selectedTabChange.emit(this._createChangeEvent(t));const e=this._tabBodyWrapper.nativeElement;e.style.minHeight=e.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((e,i)=>e.isActive=i===t),e||(this.selectedIndexChange.emit(t),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((e,i)=>{e.position=i-t,null==this._selectedIndex||0!=e.position||e.origin||(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let e=0;e{this._tabs.reset(t.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()}focusTab(t){const e=this._tabHeader;e&&(e.focusIndex=t)}_focusChanged(t){this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){const e=new nt;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,d.T)(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){const t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,e,i){t.disabled||(this.selectedIndex=e.focusIndex=i)}_getTabIndex(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}_tabFocusChanged(t,e){t&&(this._tabHeader.focusIndex=e)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(et,8),a.Y36(l.Qb,8))},t.\u0275dir=a.lG2({type:t,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[a.qOj]}),t})(),at=(()=>{class t extends rt{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(et,8),a.Y36(l.Qb,8))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-tab-group"]],contentQueries:function(t,e,i){if(1&t&&a.Suo(i,J,5),2&t){let t;a.iGM(t=a.CRH())&&(e._allTabs=t)}},viewQuery:function(t,e){if(1&t&&(a.Gf(R,5),a.Gf(O,5)),2&t){let t;a.iGM(t=a.CRH())&&(e._tabBodyWrapper=t.first),a.iGM(t=a.CRH())&&(e._tabHeader=t.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&a.ekj("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[a._Bn([{provide:$,useExisting:t}]),a.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","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(a.TgZ(0,"mat-tab-header",0,1),a.NdJ("indexFocused",function(t){return e._focusChanged(t)})("selectFocusedIndex",function(t){return e.selectedIndex=t}),a.YNc(2,L,4,14,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.YNc(5,N,1,8,"mat-tab-body",5),a.qZA()),2&t&&(a.Q6J("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),a.xp6(2),a.Q6J("ngForOf",e._tabs),a.xp6(1),a.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.xp6(2),a.Q6J("ngForOf",e._tabs))},directives:function(){return[gt,r.sg,ut,c.wG,n.kH,r.O5,o.Pl,tt]},styles:[".mat-tab-group{display:flex;flex-direction:column}.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}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.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-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;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}\n"],encapsulation:2}),t})();class ct{}const lt=(0,c.Id)(ct);let ut=(()=>{class t extends lt{constructor(t){super(),this.elementRef=t}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq))},t.\u0275dir=a.lG2({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(a.uIk("aria-disabled",!!e.disabled),a.ekj("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[a.qOj]}),t})();const ht=(0,y.i$)({passive:!0});let dt=(()=>{class t{constructor(t,e,i,n,s,o,r){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=i,this._dir=n,this._ngZone=s,this._platform=o,this._animationMode=r,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new u.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new u.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new a.vpe,this.indexFocused=new a.vpe,s.runOutsideAngular(()=>{(0,p.R)(t.nativeElement,"mouseleave").pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=(0,A.su)(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}ngAfterViewInit(){(0,p.R)(this._previousPaginator.nativeElement,"touchstart",ht).pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,p.R)(this._nextPaginator.nativeElement,"touchstart",ht).pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:(0,g.of)("ltr"),e=this._viewportRuler.change(150),i=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new n.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),(0,d.T)(t,e,this._items.changes).pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(i)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,w.R)(this._destroyed)).subscribe(t=>{this.indexFocused.emit(t),this._setTabFocus(t)})}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(t){if(!(0,v.Vb)(t))switch(t.keyCode){case v.K5:case v.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){const t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",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(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}_isValidIndex(t){if(!this._items)return!0;const e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();const e=this._tabListContainer.nativeElement,i=this._getLayoutDirection();e.scrollLeft="ltr"==i?0:e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(e)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;const e=this._items?this._items.toArray()[t]:null;if(!e)return;const i=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:n,offsetWidth:s}=e.elementRef.nativeElement;let o,r;"ltr"==this._getLayoutDirection()?(o=n,r=o+s):(r=this._tabList.nativeElement.offsetWidth-n,o=r-s);const a=this.scrollDistance,c=this.scrollDistance+i;oc&&(this.scrollDistance+=r-c+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}_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._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&null!=e.button&&0!==e.button||(this._stopInterval(),(0,f.H)(650,100).pipe((0,w.R)((0,d.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:e,distance:i}=this._scrollHeader(t);(0===i||i>=e)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(C.rL),a.Y36(T.Is,8),a.Y36(a.R0b),a.Y36(y.t4),a.Y36(l.Qb,8))},t.\u0275dir=a.lG2({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),pt=(()=>{class t extends dt{constructor(t,e,i,n,s,o,r){super(t,e,i,n,s,o,r),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=(0,A.Ig)(t)}_itemSelected(t){t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(C.rL),a.Y36(T.Is,8),a.Y36(a.R0b),a.Y36(y.t4),a.Y36(l.Qb,8))},t.\u0275dir=a.lG2({type:t,inputs:{disableRipple:"disableRipple"},features:[a.qOj]}),t})(),gt=(()=>{class t extends pt{constructor(t,e,i,n,s,o,r){super(t,e,i,n,s,o,r)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(C.rL),a.Y36(T.Is,8),a.Y36(a.R0b),a.Y36(y.t4),a.Y36(l.Qb,8))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,i){if(1&t&&a.Suo(i,ut,4),2&t){let t;a.iGM(t=a.CRH())&&(e._items=t)}},viewQuery:function(t,e){if(1&t&&(a.Gf(U,7),a.Gf(z,7),a.Gf(Z,7),a.Gf(B,5),a.Gf(q,5)),2&t){let t;a.iGM(t=a.CRH())&&(e._inkBar=t.first),a.iGM(t=a.CRH())&&(e._tabListContainer=t.first),a.iGM(t=a.CRH())&&(e._tabList=t.first),a.iGM(t=a.CRH())&&(e._nextPaginator=t.first),a.iGM(t=a.CRH())&&(e._previousPaginator=t.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&a.ekj("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[a.qOj],ngContentSelectors:S,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","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"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(a.F$t(),a.TgZ(0,"div",0,1),a.NdJ("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),a._UZ(2,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.NdJ("keydown",function(t){return e._handleKeydown(t)}),a.TgZ(5,"div",5,6),a.NdJ("cdkObserveContent",function(){return e._onContentChanges()}),a.TgZ(7,"div",7),a.Hsn(8),a.qZA(),a._UZ(9,"mat-ink-bar"),a.qZA(),a.qZA(),a.TgZ(10,"div",8,9),a.NdJ("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),a._UZ(12,"div",2),a.qZA()),2&t&&(a.ekj("mat-tab-header-pagination-disabled",e._disableScrollBefore),a.Q6J("matRippleDisabled",e._disableScrollBefore||e.disableRipple),a.xp6(5),a.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.xp6(5),a.ekj("mat-tab-header-pagination-disabled",e._disableScrollAfter),a.Q6J("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[c.wG,s.wD,U],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-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:transparent;touch-action:none}.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;content:"";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-animation-noopable.mat-ink-bar{transition:none;animation:none}.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-animation-noopable.mat-tab-list{transition:none;animation:none}.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}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.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{min-width:72px}}\n'],encapsulation:2}),t})(),ft=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({imports:[[r.ez,c.BQ,o.eL,c.si,s.Q8,n.rt],c.BQ]}),t})()},36922:function(t,e,i){"use strict";i.d(e,{gM:function(){return B},AV:function(){return U}});var n=i(2522),s=i(24621),o=i(61511),r=i(31572),a=i(71522),c=i(4253),l=i(19861),u=i(75842),h=i(55959),d=i(31305),p=i(47930),g=i(48318),f=i(90611),m=i(96673);class b{constructor(t){this.total=t}call(t,e){return e.subscribe(new _(t,this.total))}}class _ extends m.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}var w=i(47701),A=i(79996),y=i(56238),v=i(25416),T=i(11353);const C=new Set;let E,S=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):k}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!C.has(t))try{E||(E=document.createElement("style"),E.setAttribute("type","text/css"),document.head.appendChild(E)),E.sheet&&(E.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),C.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(T.t4))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(T.t4))},token:t,providedIn:"root"}),t})();function k(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let I=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new h.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return x((0,l.Eq)(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=x((0,l.Eq)(t)).map(t=>this._registerQuery(t).observable);let i=(0,d.aj)(e);return i=(0,p.z)(i.pipe((0,f.q)(1)),i.pipe(t=>t.lift(new b(1)),(0,w.b)(0))),i.pipe((0,A.U)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:i})=>{e.matches=e.matches||t,e.breakpoints[i]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),i={observable:new g.y(t=>{const i=e=>this._zone.run(()=>t.next(e));return e.addListener(i),()=>{e.removeListener(i)}}).pipe((0,y.O)(e),(0,A.U)(({matches:e})=>({query:t,matches:e})),(0,v.R)(this._destroySubject)),mql:e};return this._queries.set(t,i),i}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(S),r.LFG(r.R0b))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(S),r.LFG(r.R0b))},token:t,providedIn:"root"}),t})();function x(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}var R=i(26899),O=i(10709),P=i(22526);const D={tooltipState:(0,O.X$)("state",[(0,O.SB)("initial, void, hidden",(0,O.oB)({opacity:0,transform:"scale(0)"})),(0,O.SB)("visible",(0,O.oB)({transform:"scale(1)"})),(0,O.eR)("* => visible",(0,O.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,O.F4)([(0,O.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,O.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,O.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,O.eR)("* => hidden",(0,O.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,O.oB)({opacity:0})))])},M=(0,T.i$)({passive:!0}),L=new r.OlP("mat-tooltip-scroll-strategy"),N={provide:L,deps:[n.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},z=new r.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Z=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,l,d,p){this._overlay=t,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=n,this._ngZone=s,this._platform=o,this._ariaDescriber=r,this._focusMonitor=a,this._dir=l,this._defaultOptions=d,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 h.xQ,this._handleKeydown=t=>{this._isTooltipVisible()&&t.keyCode===u.hY&&!(0,u.Vb)(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=c,this._document=p,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),l.change.pipe((0,v.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){var e;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(e=this._tooltipInstance)||void 0===e||e.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,l.Ig)(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).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(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,v.R)(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,i])=>{t.removeEventListener(e,i,M)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new R.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,v.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return e.positionChanges.pipe((0,v.R)(this._destroyed)).subscribe(t=>{this._updateCurrentPositionClass(t.connectionPair),this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:`${this._cssClassPrefix}-tooltip-panel`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,v.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const e=t.getConfig().positionStrategy,i=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([this._addOffset(Object.assign(Object.assign({},i.main),n.main)),this._addOffset(Object.assign(Object.assign({},i.fallback),n.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e||"below"==e?i={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={originX:"end",originY:"center"});const{x:n,y:s}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:n,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e?i={overlayX:"center",overlayY:"bottom"}:"below"==e?i={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={overlayX:"start",overlayY:"center"});const{x:n,y:s}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:n,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,f.q)(1),(0,v.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){const{overlayY:e,originX:i,originY:n}=t;let s;if(s="center"===e?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===e&&"top"===n?"above":"below",s!==this._currentPosition){const t=this._overlayRef;if(t){const e=`${this._cssClassPrefix}-tooltip-panel-`;t.removePanelClass(e+this._currentPosition),t.addPanelClass(e+s)}this._currentPosition=s}}_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 t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,M)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const e=this._document.elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;e===i||i.contains(e)||this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,i=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),"on"!==t&&e.draggable||(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.aV),r.Y36(r.SBq),r.Y36(c.mF),r.Y36(r.s_b),r.Y36(r.R0b),r.Y36(T.t4),r.Y36(s.$s),r.Y36(s.tE),r.Y36(void 0),r.Y36(P.Is),r.Y36(void 0),r.Y36(o.K0))},t.\u0275dir=r.lG2({type:t,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),B=(()=>{class t extends Z{constructor(t,e,i,n,s,o,r,a,c,l,u,h){super(t,e,i,n,s,o,r,a,c,l,u,h),this._tooltipComponent=F}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.aV),r.Y36(r.SBq),r.Y36(c.mF),r.Y36(r.s_b),r.Y36(r.R0b),r.Y36(T.t4),r.Y36(s.$s),r.Y36(s.tE),r.Y36(L),r.Y36(P.Is,8),r.Y36(z,8),r.Y36(o.K0))},t.\u0275dir=r.lG2({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[r.qOj]}),t})(),q=(()=>{class t{constructor(t){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new h.xQ}show(t){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._markForCheck()},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.sBO))},t.\u0275dir=r.lG2({type:t}),t})(),F=(()=>{class t extends q{constructor(t,e){super(t),this._breakpointObserver=e,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.sBO),r.Y36(I))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&r.NdJ("click",function(){return e._handleBodyInteraction()},!1,r.pYS)("auxclick",function(){return e._handleBodyInteraction()},!1,r.pYS),2&t&&r.Udp("zoom","visible"===e._visibility?1:null)},features:[r.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(r.TgZ(0,"div",0),r.NdJ("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),r.ALo(1,"async"),r._uU(2),r.qZA()),2&t){let t;r.ekj("mat-tooltip-handset",null==(t=r.lcZ(1,5,e._isHandset))?null:t.matches),r.Q6J("ngClass",e.tooltipClass)("@state",e._visibility),r.xp6(2),r.Oqu(e.message)}},directives:[o.mk],pipes:[o.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[D.tooltipState]},changeDetection:0}),t})(),U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[N],imports:[[s.rt,o.ez,n.U8,a.BQ],a.BQ,c.ZD]}),t})()},91010:function(t,e,i){"use strict";i.d(e,{GZ:function(){return f},gi:function(){return b},kc:function(){return y},JZ:function(){return A},dp:function(){return w},WX:function(){return v},uo:function(){return p},fQ:function(){return g},Ar:function(){return m},eu:function(){return _}});var n=i(71709),s=i(71522),o=i(19861),r=i(4230),a=i(78512),c=i(31906),l=i(90611),u=i(79996),h=i(31572);const d=(0,s.sb)((0,s.Id)(n.Hs));let p=(()=>{class t extends d{constructor(t,e,i){super(t,e),this._elementRef=t,this._tree=e,this.tabIndex=Number(i)||0,this._elementRef.nativeElement.classList.add("mat-tree-node")}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}ngOnDestroy(){super.ngOnDestroy()}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(n._0),h.$8M("tabindex"))},t.\u0275dir=h.lG2({type:t,selectors:[["mat-tree-node"]],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[h._Bn([{provide:n.Hs,useExisting:t}]),h.qOj]}),t})(),g=(()=>{class t extends n.rO{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=h.n5z(t)))(i||t)}}(),t.\u0275dir=h.lG2({type:t,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[h._Bn([{provide:n.rO,useExisting:t}]),h.qOj]}),t})(),f=(()=>{class t extends n.Xx{constructor(t,e,i,n){super(t,e,i),this._elementRef=t,this._tree=e,this._differs=i,this._disabled=!1,this.tabIndex=Number(n)||0,this._elementRef.nativeElement.classList.add("mat-nested-tree-node")}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,o.Ig)(t)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?t:0}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(n._0),h.Y36(h.ZZ4),h.$8M("tabindex"))},t.\u0275dir=h.lG2({type:t,selectors:[["mat-nested-tree-node"]],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[h._Bn([{provide:n.Xx,useExisting:t},{provide:n.Hs,useExisting:t},{provide:n.HI,useExisting:t}]),h.qOj]}),t})(),m=(()=>{class t{constructor(t,e){this.viewContainer=t,this._node=e}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.s_b),h.Y36(n.HI,8))},t.\u0275dir=h.lG2({type:t,selectors:[["","matTreeNodeOutlet",""]],features:[h._Bn([{provide:n.cu,useExisting:t}])]}),t})(),b=(()=>{class t extends n._0{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=h.n5z(t)))(i||t)}}(),t.\u0275cmp=h.Xpm({type:t,selectors:[["mat-tree"]],viewQuery:function(t,e){if(1&t&&h.Gf(m,7),2&t){let t;h.iGM(t=h.CRH())&&(e._nodeOutlet=t.first)}},hostAttrs:["role","tree",1,"mat-tree","cdk-tree"],exportAs:["matTree"],features:[h._Bn([{provide:n._0,useExisting:t}]),h.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(t,e){1&t&&h.GkF(0,0)},directives:[m],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}\n"],encapsulation:2}),t})(),_=(()=>{class t extends n.Ud{get recursive(){return this._recursive}set recursive(t){this._recursive=(0,o.Ig)(t)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=h.n5z(t)))(i||t)}}(),t.\u0275dir=h.lG2({type:t,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[h._Bn([{provide:n.Ud,useExisting:t}]),h.qOj]}),t})(),w=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({imports:[[n.nZ,s.BQ],s.BQ]}),t})();class A{constructor(t,e,i,n){this.transformFunction=t,this.getLevel=e,this.isExpandable=i,this.getChildren=n}_flattenNode(t,e,i,n){const s=this.transformFunction(t,e);if(i.push(s),this.isExpandable(s)){const s=this.getChildren(t);s&&(Array.isArray(s)?this._flattenChildren(s,e,i,n):s.pipe((0,l.q)(1)).subscribe(t=>{this._flattenChildren(t,e,i,n)}))}return i}_flattenChildren(t,e,i,n){t.forEach((s,o)=>{let r=n.slice();r.push(o!=t.length-1),this._flattenNode(s,e+1,i,r)})}flattenNodes(t){let e=[];return t.forEach(t=>this._flattenNode(t,0,e,[])),e}expandFlattenedNodes(t,e){let i=[],n=[];return n[0]=!0,t.forEach(t=>{let s=!0;for(let e=0;e<=this.getLevel(t);e++)s=s&&n[e];s&&i.push(t),this.isExpandable(t)&&(n[this.getLevel(t)+1]=e.isExpanded(t))}),i}}class y extends r.o2{constructor(t,e,i){super(),this._treeControl=t,this._treeFlattener=e,this._flattenedData=new a.X([]),this._expandedData=new a.X([]),this._data=new a.X([]),i&&(this.data=i)}get data(){return this._data.value}set data(t){this._data.next(t),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}connect(t){return(0,c.T)(t.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe((0,u.U)(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}class v extends r.o2{constructor(){super(...arguments),this._data=new a.X([])}get data(){return this._data.value}set data(t){this._data.next(t)}connect(t){return(0,c.T)(t.viewChange,this._data).pipe((0,u.U)(()=>this.data))}disconnect(){}}},43490:function(t,e,i){"use strict";i.d(e,{Qb:function(){return be},PW:function(){return ye}});var n=i(31572),s=i(30269),o=i(10709);function r(){return"undefined"!=typeof window&&void 0!==window.document}function a(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function c(t){switch(t.length){case 0:return new o.ZN;case 1:return t[0];default:return new o.ZE(t)}}function l(t,e,i,n,s={},r={}){const a=[],c=[];let l=-1,u=null;if(n.forEach(t=>{const i=t.offset,n=i==l,h=n&&u||{};Object.keys(t).forEach(i=>{let n=i,c=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,a),c){case o.k1:c=s[i];break;case o.l3:c=r[i];break;default:c=e.normalizeStyleValue(i,n,c,a)}h[n]=c}),n||c.push(h),u=h,l=i}),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return c}function u(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&h(i,"start",t)));break;case"done":t.onDone(()=>n(i&&h(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&h(i,"destroy",t)))}}function h(t,e,i){const n=i.totalTime,s=d(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),o=t._data;return null!=o&&(s._data=o),s}function d(t,e,i,n,s="",o=0,r){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:s,totalTime:o,disabled:!!r}}function p(t,e,i){let n;return t instanceof Map?(n=t.get(e),n||t.set(e,n=i)):(n=t[e],n||(n=t[e]=i)),n}function g(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let f=(t,e)=>!1,m=(t,e)=>!1,b=(t,e,i)=>[];const _=a();(_||"undefined"!=typeof Element)&&(f=r()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),m=(()=>{if(_||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,i)=>e.apply(t,[i]):m}})(),b=(t,e,i)=>{let n=[];if(i){const i=t.querySelectorAll(e);for(let t=0;t{const n=i.replace(/([a-z])([A-Z])/g,"$1-$2");e[n]=t[i]}),e}let S=(()=>{class t{validateStyleProperty(t){return y(t)}matchesElement(t,e){return v(t,e)}containsElement(t,e){return T(t,e)}query(t,e,i){return C(t,e,i)}computeStyle(t,e,i){return i||""}animate(t,e,i,n,s,r=[],a){return new o.ZN(i,n)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),k=(()=>{class t{}return t.NOOP=new S,t})();function I(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:x(parseFloat(e[1]),e[2])}function x(t,e){switch(e){case"s":return 1e3*t;default:return t}}function R(t,e,i){return t.hasOwnProperty("duration")?t:function(t,e,i){let n,s=0,o="";if("string"==typeof t){const i=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===i)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};n=x(parseFloat(i[1]),i[2]);const r=i[3];null!=r&&(s=x(parseFloat(r),i[4]));const a=i[5];a&&(o=a)}else n=t;if(!i){let i=!1,o=e.length;n<0&&(e.push("Duration values below 0 are not allowed for this animation step."),i=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),i=!0),i&&e.splice(o,0,`The provided timing value "${t}" is invalid.`)}return{duration:n,delay:s,easing:o}}(t,e,i)}function O(t,e={}){return Object.keys(t).forEach(i=>{e[i]=t[i]}),e}function P(t,e,i={}){if(e)for(let n in t)i[n]=t[n];else O(t,i);return i}function D(t,e,i){return i?e+":"+i+";":""}function M(t){let e="";for(let i=0;i{const s=H(n);i&&!i.hasOwnProperty(n)&&(i[n]=t.style[s]),t.style[s]=e[n]}),a()&&M(t))}function N(t,e){t.style&&(Object.keys(e).forEach(e=>{const i=H(e);t.style[i]=""}),a()&&M(t))}function z(t){return Array.isArray(t)?1==t.length?t[0]:(0,o.vP)(t):t}const Z=new RegExp("{{\\s*(.+?)\\s*}}","g");function B(t){let e=[];if("string"==typeof t){let i;for(;i=Z.exec(t);)e.push(i[1]);Z.lastIndex=0}return e}function q(t,e,i){const n=t.toString(),s=n.replace(Z,(t,n)=>{let s=e[n];return e.hasOwnProperty(n)||(i.push(`Please provide a value for the animation param ${n}`),s=""),s.toString()});return s==n?t:s}function F(t){const e=[];let i=t.next();for(;!i.done;)e.push(i.value),i=t.next();return e}const U=/-+([a-z0-9])/g;function H(t){return t.replace(U,(...t)=>t[1].toUpperCase())}function G(t,e){return 0===t||0===e}function j(t,e,i){const n=Object.keys(i);if(n.length&&e.length){let o=e[0],r=[];if(n.forEach(t=>{o.hasOwnProperty(t)||r.push(t),o[t]=i[t]}),r.length)for(var s=1;sfunction(t,e,i){if(":"==t[0]){const n=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,i);if("function"==typeof n)return void e.push(n);t=n}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return i.push(`The provided transition expression "${t}" is not supported`),e;const s=n[1],o=n[2],r=n[3];e.push(Q(s,r)),"<"!=o[0]||"*"==s&&"*"==r||e.push(Q(r,s))}(t,i,e)):i.push(t),i}const $=new Set(["true","1"]),J=new Set(["false","0"]);function Q(t,e){const i=$.has(t)||J.has(t),n=$.has(e)||J.has(e);return(s,o)=>{let r="*"==t||t==s,a="*"==e||e==o;return!r&&i&&"boolean"==typeof s&&(r=s?$.has(t):J.has(t)),!a&&n&&"boolean"==typeof o&&(a=o?$.has(e):J.has(e)),r&&a}}const W=new RegExp("s*:selfs*,?","g");function X(t,e,i){return new tt(t).build(e,i)}class tt{constructor(t){this._driver=t}build(t,e){const i=new et(e);return this._resetContextStyleTimingState(i),Y(this,z(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,n=e.depCount=0;const s=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const i=t,n=i.name;n.toString().split(/\s*,\s*/).forEach(t=>{i.name=t,s.push(this.visitState(i,e))}),i.name=n}else if(1==t.type){const s=this.visitTransition(t,e);i+=s.queryCount,n+=s.depCount,o.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:o,queryCount:i,depCount:n,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),n=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=n||{};if(i.styles.forEach(t=>{if(it(t)){const e=t;Object.keys(e).forEach(t=>{B(e[t]).forEach(t=>{o.hasOwnProperty(t)||s.add(t)})})}}),s.size){const i=F(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${i.join(", ")}`)}}return{type:0,name:t.name,style:i,options:n?{params:n}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=Y(this,z(t.animation),e);return{type:1,matchers:V(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:nt(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>Y(this,t,e)),options:nt(t.options)}}visitGroup(t,e){const i=e.currentTime;let n=0;const s=t.steps.map(t=>{e.currentTime=i;const s=Y(this,t,e);return n=Math.max(n,e.currentTime),s});return e.currentTime=n,{type:3,steps:s,options:nt(t.options)}}visitAnimate(t,e){const i=function(t,e){let i=null;if(t.hasOwnProperty("duration"))i=t;else if("number"==typeof t)return st(R(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=st(0,0,"");return t.dynamic=!0,t.strValue=n,t}return i=i||R(n,e),st(i.duration,i.delay,i.easing)}(t.timings,e.errors);let n;e.currentAnimateTimings=i;let s=t.styles?t.styles:(0,o.oB)({});if(5==s.type)n=this.visitKeyframes(s,e);else{let s=t.styles,r=!1;if(!s){r=!0;const t={};i.easing&&(t.easing=i.easing),s=(0,o.oB)(t)}e.currentTime+=i.duration+i.delay;const a=this.visitStyle(s,e);a.isEmptyStep=r,n=a}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==o.l3?i.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):i.push(t)}):i.push(t.styles);let n=!1,s=null;return i.forEach(t=>{if(it(t)){const e=t,i=e.easing;if(i&&(s=i,delete e.easing),!n)for(let t in e)if(e[t].toString().indexOf("{{")>=0){n=!0;break}}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:n,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let n=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(i=>{if(!this._driver.validateStyleProperty(i))return void e.errors.push(`The provided animation property "${i}" is not a supported CSS property for animations`);const o=e.collectedStyles[e.currentQuerySelector],r=o[i];let a=!0;r&&(s!=n&&s>=r.startTime&&n<=r.endTime&&(e.errors.push(`The CSS property "${i}" that exists between the times of "${r.startTime}ms" and "${r.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${n}ms"`),a=!1),s=r.startTime),a&&(o[i]={startTime:s,endTime:n}),e.options&&function(t,e,i){const n=e.params||{},s=B(t);s.length&&s.forEach(t=>{n.hasOwnProperty(t)||i.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[i],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let n=0;const s=[];let o=!1,r=!1,a=0;const c=t.steps.map(t=>{const i=this._makeStyleAst(t,e);let c=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(it(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(it(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}return e}(i.styles),l=0;return null!=c&&(n++,l=i.offset=c),r=r||l<0||l>1,o=o||l0&&n{const o=u>0?n==h?1:u*n:s[n],r=o*g;e.currentTime=d+p.delay+r,p.duration=r,this._validateStyleAst(t,e),t.offset=o,i.styles.push(t)}),i}visitReference(t,e){return{type:8,animation:Y(this,z(t.animation),e),options:nt(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:nt(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:nt(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;const[s,o]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(W,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,p(e.collectedStyles,e.currentQuerySelector,{});const r=Y(this,z(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:n.limit||0,optional:!!n.optional,includeSelf:o,animation:r,originalSelector:t.selector,options:nt(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:R(t.timings,e.errors,!0);return{type:12,animation:Y(this,z(t.animation),e),timings:i,options:null}}}class et{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function it(t){return!Array.isArray(t)&&"object"==typeof t}function nt(t){var e;return t?(t=O(t)).params&&(t.params=(e=t.params)?O(e):null):t={},t}function st(t,e,i){return{duration:t,delay:e,easing:i}}function ot(t,e,i,n,s,o,r=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:s,delay:o,totalTime:s+o,easing:r,subTimeline:a}}class rt{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const at=new RegExp(":enter","g"),ct=new RegExp(":leave","g");function lt(t,e,i,n,s,o={},r={},a,c,l=[]){return(new ut).buildKeyframes(t,e,i,n,s,o,r,a,c,l)}class ut{buildKeyframes(t,e,i,n,s,o,r,a,c,l=[]){c=c||new rt;const u=new dt(t,e,c,n,s,l,[]);u.options=a,u.currentTimeline.setStyles([o],null,u.errors,a),Y(this,i,u);const h=u.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(r).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([r],null,u.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[ot(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.consume(e.element);if(i){const n=e.createSubContext(t.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,n,n.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let n=e.currentTimeline.currentTime;const s=null!=i.duration?I(i.duration):null,o=null!=i.delay?I(i.delay):null;return 0!==s&&t.forEach(t=>{const i=e.appendInstructionToTimeline(t,s,o);n=Math.max(n,i.duration+i.delay)}),n}visitReference(t,e){e.updateOptions(t.options,!0),Y(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let n=e;const s=t.options;if(s&&(s.params||s.delay)&&(n=e.createSubContext(s),n.transformIntoNewTimeline(),null!=s.delay)){6==n.previousNode.type&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=ht);const t=I(s.delay);n.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>Y(this,t,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let n=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?I(t.options.delay):0;t.steps.forEach(o=>{const r=e.createSubContext(t.options);s&&r.delayNextStep(s),Y(this,o,r),n=Math.max(n,r.currentTimeline.currentTime),i.push(r.currentTimeline)}),i.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(n),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return R(e.params?q(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,n=e.currentTimeline.duration,s=i.duration,o=e.createSubContext().currentTimeline;o.easing=i.easing,t.styles.forEach(t=>{o.forwardTime((t.offset||0)*s),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(n+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,n=t.options||{},s=n.delay?I(n.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=ht);let o=i;const r=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!n.optional,e.errors);e.currentQueryTotal=r.length;let a=null;r.forEach((i,n)=>{e.currentQueryIndex=n;const r=e.createSubContext(t.options,i);s&&r.delayNextStep(s),i===e.element&&(a=r.currentTimeline),Y(this,t.animation,r),r.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,r.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,n=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),r=o*(e.currentQueryTotal-1);let a=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=r-a;break;case"full":a=i.currentStaggerTime}const c=e.currentTimeline;a&&c.delayNextStep(a);const l=c.currentTime;Y(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-l+(n.startTime-i.currentTimeline.startTime)}}const ht={};class dt{constructor(t,e,i,n,s,o,r,a){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=s,this.errors=o,this.timelines=r,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ht,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new pt(this._driver,e,0),r.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let n=this.options;null!=i.duration&&(n.duration=I(i.duration)),null!=i.delay&&(n.delay=I(i.delay));const s=i.params;if(s){let t=n.params;t||(t=this.options.params={}),Object.keys(s).forEach(i=>{e&&t.hasOwnProperty(i)||(t[i]=q(s[i],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(t=>{i[t]=e[t]})}}return t}createSubContext(t=null,e,i){const n=e||this.element,s=new dt(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=ht,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const n={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new gt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(s),n}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,n,s,o){let r=[];if(n&&r.push(this.element),t.length>0){t=(t=t.replace(at,"."+this._enterClassName)).replace(ct,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=i);0!==i&&(e=i<0?e.slice(e.length+i,e.length):e.slice(0,i)),r.push(...e)}return s||0!=r.length||o.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),r}}class pt{constructor(t,e,i,n){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),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.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new pt(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||o.l3,this._currentKeyframe[t]=o.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,n){e&&(this._previousKeyframe.easing=e);const s=n&&n.params||{},r=function(t,e){const i={};let n;return t.forEach(t=>{"*"===t?(n=n||Object.keys(e),n.forEach(t=>{i[t]=o.l3})):P(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=q(r[t],s,i);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:o.l3),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],n=t._styleSummary[e];(!i||n.time>i.time)&&this._updateStyle(e,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let n=[];this._keyframes.forEach((s,r)=>{const a=P(s,!0);Object.keys(a).forEach(i=>{const n=a[i];n==o.k1?t.add(i):n==o.l3&&e.add(i)}),i||(a.offset=r/this.duration),n.push(a)});const s=t.size?F(t.values()):[],r=e.size?F(e.values()):[];if(i){const t=n[0],e=O(t);t.offset=0,e.offset=1,n=[t,e]}return ot(this.element,n,s,r,this.duration,this.startTime,this.easing,!1)}}class gt extends pt{constructor(t,e,i,n,s,o,r=!1){super(t,e,o.delay),this.element=e,this.keyframes=i,this.preStyleProps=n,this.postStyleProps=s,this._stretchStartingKeyframe=r,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],o=i+e,r=e/o,a=P(t[0],!1);a.offset=0,s.push(a);const c=P(t[0],!1);c.offset=ft(r),s.push(c);const l=t.length-1;for(let n=1;n<=l;n++){let r=P(t[n],!1);r.offset=ft((e+r.offset*i)/o),s.push(r)}i=o,e=0,n="",t=s}return ot(this.element,t,this.preStyleProps,this.postStyleProps,i,e,n,!0)}}function ft(t,e=3){const i=Math.pow(10,e-1);return Math.round(t*i)/i}class mt{}class bt extends mt{normalizePropertyName(t,e){return H(t)}normalizeStyleValue(t,e,i,n){let s="";const o=i.toString().trim();if(_t[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const e=i.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&n.push(`Please provide a CSS unit value for ${t}:${i}`)}return o+s}}const _t=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("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".split(",")))();function wt(t,e,i,n,s,o,r,a,c,l,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:i,fromStyles:o,toState:n,toStyles:r,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:h,errors:d}}const At={};class yt{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,n){return function(t,e,i,n,s){return t.some(t=>t(e,i,n,s))}(this.ast.matchers,t,e,i,n)}buildStyles(t,e,i){const n=this._stateStyles["*"],s=this._stateStyles[t],o=n?n.buildStyles(e,i):{};return s?s.buildStyles(e,i):o}build(t,e,i,n,s,o,r,a,c,l){const u=[],h=this.ast.options&&this.ast.options.params||At,d=this.buildStyles(i,r&&r.params||At,u),g=a&&a.params||At,f=this.buildStyles(n,g,u),m=new Set,b=new Map,_=new Map,w="void"===n,A={params:Object.assign(Object.assign({},h),g)},y=l?[]:lt(t,e,this.ast.animation,s,o,d,f,A,c,u);let v=0;if(y.forEach(t=>{v=Math.max(t.duration+t.delay,v)}),u.length)return wt(e,this._triggerName,i,n,w,d,f,[],[],b,_,v,u);y.forEach(t=>{const i=t.element,n=p(b,i,{});t.preStyleProps.forEach(t=>n[t]=!0);const s=p(_,i,{});t.postStyleProps.forEach(t=>s[t]=!0),i!==e&&m.add(i)});const T=F(m.values());return wt(e,this._triggerName,i,n,w,d,f,y,T,b,_,v)}}class vt{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const i={},n=O(this.defaultParams);return Object.keys(t).forEach(e=>{const i=t[e];null!=i&&(n[e]=i)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let o=s[t];o.length>1&&(o=q(o,n,e)),i[t]=o})}}),i}}class Tt{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new vt(t.style,t.options&&t.options.params||{})}),Ct(this.states,"true","1"),Ct(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new yt(t,e,this.states))}),this.fallbackTransition=new yt(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,n){return this.transitionFactories.find(s=>s.match(t,e,i,n))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function Ct(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}const Et=new rt;class St{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],n=X(this._driver,e,i);if(i.length)throw new Error(`Unable to build the animation due to the following errors: ${i.join("\n")}`);this._animations[t]=n}_buildPlayer(t,e,i){const n=t.element,s=l(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(n,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const n=[],s=this._animations[t];let r;const a=new Map;if(s?(r=lt(this._driver,e,s,"ng-enter","ng-leave",{},{},i,Et,n),r.forEach(t=>{const e=p(a,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(n.push("The requested animation doesn't exist or has already been destroyed"),r=[]),n.length)throw new Error(`Unable to create the animation due to the following errors: ${n.join("\n")}`);a.forEach((t,e)=>{Object.keys(t).forEach(i=>{t[i]=this._driver.computeStyle(e,i,o.l3)})});const l=c(r.map(t=>{const e=a.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=l,l.onDestroy(()=>this.destroy(t)),this.players.push(l),l}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,i,n){const s=d(e,"","","");return u(this._getPlayer(t),i,s,n),()=>{}}command(t,e,i,n){if("register"==i)return void this.register(t,n[0]);if("create"==i)return void this.create(t,e,n[0]||{});const s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(t)}}}const kt=[],It={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},xt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Rt{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=null!=(n=i?t.value:t)?n:null,i){const e=O(t);delete e.value,this.options=e}else this.options={};var n;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(i=>{null==t[i]&&(t[i]=e[i])})}}}const Ot=new Rt("void");class Pt{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Bt(e,this._hostClassName)}listen(t,e,i,n){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=i)&&"done"!=s)throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);var s;const o=p(this._elementListeners,t,[]),r={name:e,phase:i,callback:n};o.push(r);const a=p(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Bt(t,"ng-trigger"),Bt(t,"ng-trigger-"+e),a[e]=Ot),()=>{this._engine.afterFlush(()=>{const t=o.indexOf(r);t>=0&&o.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,i,n=!0){const s=this._getTrigger(e),o=new Mt(this.id,e,t);let r=this._engine.statesByElement.get(t);r||(Bt(t,"ng-trigger"),Bt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,r={}));let a=r[e];const c=new Rt(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),r[e]=c,a||(a=Ot),"void"!==c.value&&a.value===c.value){if(!function(t,e){const i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(let s=0;s{N(t,i),L(t,n)})}return}const l=p(this._engine.playersByElement,t,[]);l.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=s.matchTransition(a.value,c.value,t,c.params),h=!1;if(!u){if(!n)return;u=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:c,player:o,isFallbackTransition:h}),h||(Bt(t,"ng-animate-queued"),o.onStart(()=>{qt(t,"ng-animate-queued")})),o.onDone(()=>{let e=this.players.indexOf(o);e>=0&&this.players.splice(e,1);const i=this._engine.playersByElement.get(t);if(i){let t=i.indexOf(o);t>=0&&i.splice(t,1)}}),this.players.push(o),l.push(o),o}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,".ng-trigger",!0);i.forEach(t=>{if(t.__ng_removed)return;const i=this._engine.fetchNamespacesByElement(t);i.size?i.forEach(i=>i.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,i,n){const s=this._engine.statesByElement.get(t);if(s){const o=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const i=this.trigger(t,e,"void",n);i&&o.push(i)}}),o.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&c(o).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const n=new Set;e.forEach(e=>{const s=e.name;if(n.has(s))return;n.add(s);const o=this._triggers[s].fallbackTransition,r=i[s]||Ot,a=new Rt("void"),c=new Mt(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:o,fromState:r,toState:a,player:c,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let n=!1;if(i.totalAnimations){const e=i.players.length?i.playersByQueriedElement.get(t):[];if(e&&e.length)n=!0;else{let e=t;for(;e=e.parentNode;)if(i.statesByElement.get(e)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(t),n)i.markElementAsRemoved(this.id,t,!1,e);else{const n=t.__ng_removed;n&&n!==It||(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){Bt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const n=i.player;if(n.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(e=>{if(e.name==i.triggerName){const n=d(s,i.triggerName,i.fromState.value,i.toState.value);n._data=t,u(i.player,e.phase,n,e.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):e.push(i)}),this._queue=[],e.sort((t,e)=>{const i=t.transition.ast.depCount,n=e.transition.ast.depCount;return 0==i||0==n?i-n:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class Dt{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,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=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const i=new Pt(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList.length-1;if(i>=0){let n=!1;for(let s=i;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),n=!0;break}n||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(i);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const t=Object.keys(i);for(let n=0;n=0&&this.collectedLeaveElements.splice(t,1)}if(t){const n=this._fetchNamespace(t);n&&n.insertNode(e,i)}n&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Bt(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),qt(t,"ng-animate-disabled"))}removeNode(t,e,i,n){if(Lt(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n),i){const i=this.namespacesByHostElement.get(e);i&&i.id!==t&&i.removeNode(e,n)}}else this._onRemovalComplete(e,n)}markElementAsRemoved(t,e,i,n){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}listen(t,e,i,n,s){return Lt(e)?this._fetchNamespace(t).listen(e,i,n,s):()=>{}}_buildInstruction(t,e,i,n,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return c(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=It,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;it()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?c(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const i=new rt,n=[],s=new Map,r=[],a=new Map,l=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(t=>{h.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let i=0;i{const i="ng-enter"+b++;m.set(e,i),t.forEach(t=>Bt(t,i))});const _=[],w=new Set,A=new Set;for(let o=0;ow.add(t)):A.add(t))}const y=new Map,v=Zt(g,Array.from(w));v.forEach((t,e)=>{const i="ng-leave"+b++;y.set(e,i),t.forEach(t=>Bt(t,i))}),t.push(()=>{f.forEach((t,e)=>{const i=m.get(e);t.forEach(t=>qt(t,i))}),v.forEach((t,e)=>{const i=y.get(e);t.forEach(t=>qt(t,i))}),_.forEach(t=>{this.processLeaveNode(t)})});const T=[],C=[];for(let o=this._namespaceList.length-1;o>=0;o--)this._namespaceList[o].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(T.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const o=!d||!this.driver.containsElement(d,s),c=y.get(s),h=m.get(s),g=this._buildInstruction(t,i,h,c,o);if(g.errors&&g.errors.length)C.push(g);else{if(o)return e.onStart(()=>N(s,g.fromStyles)),e.onDestroy(()=>L(s,g.toStyles)),void n.push(e);if(t.isFallbackTransition)return e.onStart(()=>N(s,g.fromStyles)),e.onDestroy(()=>L(s,g.toStyles)),void n.push(e);g.timelines.forEach(t=>t.stretchStartingKeyframe=!0),i.append(s,g.timelines),r.push({instruction:g,player:e,element:s}),g.queriedElements.forEach(t=>p(a,t,[]).push(e)),g.preStyleProps.forEach((t,e)=>{const i=Object.keys(t);if(i.length){let t=l.get(e);t||l.set(e,t=new Set),i.forEach(e=>t.add(e))}}),g.postStyleProps.forEach((t,e)=>{const i=Object.keys(t);let n=u.get(e);n||u.set(e,n=new Set),i.forEach(t=>n.add(t))})}});if(C.length){const t=[];C.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),T.forEach(t=>t.destroy()),this.reportError(t)}const E=new Map,S=new Map;r.forEach(t=>{const e=t.element;i.has(e)&&(S.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,E))}),n.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{p(E,e,[]).push(t),t.destroy()})});const k=_.filter(t=>Ht(t,l,u)),I=new Map;zt(I,this.driver,A,u,o.l3).forEach(t=>{Ht(t,l,u)&&k.push(t)});const x=new Map;f.forEach((t,e)=>{zt(x,this.driver,new Set(t),l,o.k1)}),k.forEach(t=>{const e=I.get(t),i=x.get(t);I.set(t,Object.assign(Object.assign({},e),i))});const R=[],O=[],P={};r.forEach(t=>{const{element:e,player:o,instruction:r}=t;if(i.has(e)){if(h.has(e))return o.onDestroy(()=>L(e,r.toStyles)),o.disabled=!0,o.overrideTotalTime(r.totalTime),void n.push(o);let t=P;if(S.size>1){let i=e;const n=[];for(;i=i.parentNode;){const e=S.get(i);if(e){t=e;break}n.push(i)}n.forEach(e=>S.set(e,t))}const i=this._buildAnimation(o.namespaceId,r,E,s,x,I);if(o.setRealPlayer(i),t===P)R.push(o);else{const e=this.playersByElement.get(t);e&&e.length&&(o.parentPlayer=c(e)),n.push(o)}}else N(e,r.fromStyles),o.onDestroy(()=>L(e,r.toStyles)),O.push(o),h.has(e)&&n.push(o)}),O.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const i=c(e);t.setRealPlayer(i)}}),n.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let o=0;o<_.length;o++){const t=_[o],e=t.__ng_removed;if(qt(t,"ng-leave"),e&&e.hasAnimation)continue;let i=[];if(a.size){let e=a.get(t);e&&e.length&&i.push(...e);let n=this.driver.query(t,".ng-animating",!0);for(let t=0;t!t.destroyed);n.length?Ft(this,t,n):this.processLeaveNode(t)}return _.length=0,R.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),R}elementContainsData(t,e){let i=!1;const n=e.__ng_removed;return n&&n.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,n,s){let o=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(o=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||"void"==s;e.forEach(e=>{e.queued||(t||e.triggerName==n)&&o.push(e)})}}return(i||n)&&(o=o.filter(t=>!(i&&i!=t.namespaceId||n&&n!=t.triggerName))),o}_beforeAnimationBuild(t,e,i){const n=e.element,s=e.isRemovalTransition?void 0:t,o=e.isRemovalTransition?void 0:e.triggerName;for(const r of e.timelines){const t=r.element,a=t!==n,c=p(i,t,[]);this._getPreviousPlayers(t,a,s,o,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),c.push(t)})}N(n,e.fromStyles)}_buildAnimation(t,e,i,n,s,r){const a=e.triggerName,u=e.element,h=[],d=new Set,g=new Set,f=e.timelines.map(e=>{const c=e.element;d.add(c);const p=c.__ng_removed;if(p&&p.removedBeforeQueried)return new o.ZN(e.duration,e.delay);const f=c!==u,m=function(t){const e=[];return Ut(t,e),e}((i.get(c)||kt).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===c),b=s.get(c),_=r.get(c),w=l(0,this._normalizer,0,e.keyframes,b,_),A=this._buildPlayer(e,w,m);if(e.subTimeline&&n&&g.add(c),f){const e=new Mt(t,a,c);e.setRealPlayer(A),h.push(e)}return A});h.forEach(t=>{p(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,i){let n;if(t instanceof Map){if(n=t.get(e),n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&t.delete(e)}}else if(n=t[e],n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&delete t[e]}return n}(this.playersByQueriedElement,t.element,t))}),d.forEach(t=>Bt(t,"ng-animating"));const m=c(f);return m.onDestroy(()=>{d.forEach(t=>qt(t,"ng-animating")),L(u,e.toStyles)}),g.forEach(t=>{p(n,t,[]).push(m)}),m}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new o.ZN(t.duration,t.delay)}}class Mt{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new o.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>u(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){p(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Lt(t){return t&&1===t.nodeType}function Nt(t,e){const i=t.style.display;return t.style.display=null!=e?e:"none",i}function zt(t,e,i,n,s){const o=[];i.forEach(t=>o.push(Nt(t)));const r=[];n.forEach((i,n)=>{const o={};i.forEach(t=>{const i=o[t]=e.computeStyle(n,t,s);i&&0!=i.length||(n.__ng_removed=xt,r.push(n))}),t.set(n,o)});let a=0;return i.forEach(t=>Nt(t,o[a++])),r}function Zt(t,e){const i=new Map;if(t.forEach(t=>i.set(t,[])),0==e.length)return i;const n=new Set(e),s=new Map;function o(t){if(!t)return 1;let e=s.get(t);if(e)return e;const r=t.parentNode;return e=i.has(r)?r:n.has(r)?1:o(r),s.set(t,e),e}return e.forEach(t=>{const e=o(t);1!==e&&i.get(e).push(t)}),i}function Bt(t,e){if(t.classList)t.classList.add(e);else{let i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function qt(t,e){if(t.classList)t.classList.remove(e);else{let i=t.$$classes;i&&delete i[e]}}function Ft(t,e,i){c(i).onDone(()=>t.processLeaveNode(e))}function Ut(t,e){for(let i=0;is.add(t)):e.set(t,n),i.delete(t),!0}class Gt{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Dt(t,e,i),this._timelineEngine=new St(t,e,i),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,i,n,s){const o=t+"-"+n;let r=this._triggerCache[o];if(!r){const t=[],e=X(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${n}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);r=function(t,e){return new Tt(t,e)}(n,e),this._triggerCache[o]=r}this._transitionEngine.registerTrigger(e,n,r)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,n){this._transitionEngine.insertNode(t,e,i,n)}onRemove(t,e,i,n){this._transitionEngine.removeNode(t,e,n||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,n){if("@"==i.charAt(0)){const[t,s]=g(i);this._timelineEngine.command(t,e,s,n)}else this._transitionEngine.trigger(t,e,i,n)}listen(t,e,i,n,s){if("@"==i.charAt(0)){const[t,n]=g(i);return this._timelineEngine.listen(t,e,n,s)}return this._transitionEngine.listen(t,e,i,n,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function jt(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=Kt(e[0]),e.length>1&&(n=Kt(e[e.length-1]))):e&&(i=Kt(e)),i||n?new Yt(t,i,n):null}let Yt=(()=>{class t{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&L(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(L(this._element,this._initialStyles),this._endStyles&&(L(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(N(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(N(this._element,this._endStyles),this._endStyles=null),L(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Kt(t){let e=null;const i=Object.keys(t);for(let n=0;nthis._handleCallback(t)}apply(){!function(t,e){const i=ee(t,"").trim();i.length&&(function(t,e){let i=0;for(let n=0;n=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Xt(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const i=ee(t,"").split(","),n=Wt(i,e);n>=0&&(i.splice(n,1),te(t,"",i.join(",")))}(this._element,this._name))}}function Jt(t,e,i){te(t,"PlayState",i,Qt(t,e))}function Qt(t,e){const i=ee(t,"");return i.indexOf(",")>0?Wt(i.split(","),e):Wt([i],e)}function Wt(t,e){for(let i=0;i=0)return i;return-1}function Xt(t,e,i){i?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function te(t,e,i,n){const s="animation"+e;if(null!=n){const e=t.style[s];if(e.length){const t=e.split(",");t[n]=i,i=t.join(",")}}t.style[s]=i}function ee(t,e){return t.style["animation"+e]||""}class ie{constructor(t,e,i,n,s,o,r,a){this.element=t,this.keyframes=e,this.animationName=i,this._duration=n,this._delay=s,this._finalStyles=r,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=n+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new $t(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(i=>{"offset"!=i&&(t[i]=e?this._finalStyles[i]:K(this.element,i))})}this.currentSnapshot=t}}class ne extends o.ZN{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=E(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class se{constructor(){this._count=0}validateStyleProperty(t){return y(t)}matchesElement(t,e){return v(t,e)}containsElement(t,e){return T(t,e)}query(t,e,i){return C(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(t=>E(t));let n=`@keyframes ${e} {\n`,s="";i.forEach(t=>{s=" ";const e=parseFloat(t.offset);n+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const i=t[e];switch(e){case"offset":return;case"easing":return void(i&&(n+=`${s}animation-timing-function: ${i};\n`));default:return void(n+=`${s}${e}: ${i};\n`)}}),n+=`${s}}\n`}),n+="}\n";const o=document.createElement("style");return o.textContent=n,o}animate(t,e,i,n,s,o=[],r){const a=o.filter(t=>t instanceof ie),c={};G(i,n)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const l=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(i=>{"offset"!=i&&"easing"!=i&&(e[i]=t[i])})}),e}(e=j(t,e,c));if(0==i)return new ne(t,l);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e);(function(t){var e;const i=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&i instanceof ShadowRoot?i:document.head})(t).appendChild(h);const d=jt(t,e),p=new ie(t,e,u,i,n,s,l,d);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}}class oe{constructor(t,e,i,n){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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}_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(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:K(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class re{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ae().toString()),this._cssKeyframesDriver=new se}validateStyleProperty(t){return y(t)}matchesElement(t,e){return v(t,e)}containsElement(t,e){return T(t,e)}query(t,e,i){return C(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,n,s,o=[],r){if(!r&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,s,o);const a={duration:i,delay:n,fill:0==n?"both":"forwards"};s&&(a.easing=s);const c={},l=o.filter(t=>t instanceof oe);G(i,n)&&l.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const u=jt(t,e=j(t,e=e.map(t=>P(t,!1)),c));return new oe(t,e,a,u)}}function ae(){return r()&&Element.prototype.animate||{}}var ce=i(61511);let le=(()=>{class t extends o._j{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:n.ifc.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?(0,o.vP)(t):t;return de(this._renderer,null,e,"register",[i]),new ue(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.FYo),n.LFG(ce.K0))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();class ue extends o.LC{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new he(this._id,t,e||{},this._renderer)}}class he{constructor(t,e,i,n){this.id=t,this.element=e,this._renderer=n,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return de(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function de(t,e,i,n,s){return t.setProperty(e,`@@${i}:${n}`,s)}let pe=(()=>{class t{constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const i=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(i);return t||(t=new ge("",i,this.engine),this._rendererCache.set(i,t)),t}const n=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const o=e=>{Array.isArray(e)?e.forEach(o):this.engine.registerTrigger(n,s,t,e.name,e)};return e.data.animation.forEach(o),new fe(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){t>=0&&te(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,i]=t;e(i)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,i]))}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 t.\u0275fac=function(e){return new(e||t)(n.LFG(n.FYo),n.LFG(Gt),n.LFG(n.R0b))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();class ge{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,n=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,n)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,n){this.delegate.setAttribute(t,e,i,n)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,n){this.delegate.setStyle(t,e,i,n)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class fe extends ge{constructor(t,e,i,n){super(e,i,n),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const n=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,n,s,o,t=>{this.factory.scheduleListenerCallback(t._data||-1,i,t)})}return this.delegate.listen(t,e,i)}}let me=(()=>{class t extends Gt{constructor(t,e,i){super(t.body,e,i)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(ce.K0),n.LFG(k),n.LFG(mt))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();const be=new n.OlP("AnimationModuleType"),_e=[{provide:o._j,useClass:le},{provide:mt,useFactory:function(){return new bt}},{provide:Gt,useClass:me},{provide:n.FYo,useFactory:function(t,e,i){return new pe(t,e,i)},deps:[s.se,Gt,n.R0b]}],we=[{provide:k,useFactory:function(){return"function"==typeof ae()?new re:new se}},{provide:be,useValue:"BrowserAnimations"},..._e],Ae=[{provide:k,useClass:S},{provide:be,useValue:"NoopAnimations"},..._e];let ye=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?Ae:we}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:we,imports:[s.b2]}),t})()},30269:function(t,e,i){"use strict";i.d(e,{b2:function(){return Z},H7:function(){return D},Dx:function(){return q},q6:function(){return N},se:function(){return T}});var n=i(61511),s=i(31572);class o extends n.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class r extends o{static makeCurrent(){(0,n.HT)(new r)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(c=c||document.querySelector("base"),c?c.getAttribute("href"):null);return null==e?null:function(t){a=a||document.createElement("a"),a.setAttribute("href",t);const e=a.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){c=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return(0,n.Mx)(document.cookie,t)}}let a,c=null;const l=new s.OlP("TRANSITION_ID"),u=[{provide:s.ip1,useFactory:function(t,e,i){return()=>{i.get(s.CZH).donePromise.then(()=>{const i=(0,n.q)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>i.remove(t))})}},deps:[l,n.K0,s.zs3],multi:!0}];class h{static init(){(0,s.VLi)(new h)}addToWindow(t){s.dqk.getAngularTestability=(e,i=!0)=>{const n=t.findTestabilityInTree(e,i);if(null==n)throw new Error("Could not find testability for element.");return n},s.dqk.getAllAngularTestabilities=()=>t.getAllTestabilities(),s.dqk.getAllAngularRootElements=()=>t.getAllRootElements(),s.dqk.frameworkStabilizers||(s.dqk.frameworkStabilizers=[]),s.dqk.frameworkStabilizers.push(t=>{const e=s.dqk.getAllAngularTestabilities();let i=e.length,n=!1;const o=function(e){n=n||e,i--,0==i&&t(n)};e.forEach(function(t){t.whenStable(o)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:i?(0,n.q)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let d=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const p=new s.OlP("EventManagerPlugins");let g=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,i){return this._findPluginFor(e).addEventListener(t,e,i)}addGlobalEventListener(t,e,i){return this._findPluginFor(e).addGlobalEventListener(t,e,i)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const i=this._plugins;for(let n=0;n{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),b=(()=>{class t extends m{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,i){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,i.push(e.appendChild(n))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(_),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,i)=>{this._addStylesToHost(t,i,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(_))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function _(t){(0,n.q)().remove(t)}const w={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/"},A=/%COMP%/g;function y(t,e,i){for(let n=0;n{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let T=(()=>{class t{constructor(t,e,i){this.eventManager=t,this.sharedStylesHost=e,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new C(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case s.ifc.Emulated:{let i=this.rendererByCompId.get(e.id);return i||(i=new E(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,i)),i.applyToHost(t),i}case 1:case s.ifc.ShadowDom:return new S(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=y(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(g),s.LFG(b),s.LFG(s.AFp))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class C{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(w[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,n){if(n){e=n+":"+e;const s=w[n];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const n=w[i];n?t.removeAttributeNS(n,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,n){n&(s.JOm.DashCase|s.JOm.Important)?t.style.setProperty(e,i,n&s.JOm.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&s.JOm.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,v(i)):this.eventManager.addEventListener(t,e,v(i))}}class E extends C{constructor(t,e,i,n){super(t),this.component=i;const s=y(n+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(A,n+"-"+i.id),this.hostAttr="_nghost-%COMP%".replace(A,n+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class S extends C{constructor(t,e,i,n){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=y(n.id,n.styles,[]);for(let o=0;o{class t extends f{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,i){return t.addEventListener(e,i,!1),()=>this.removeEventListener(t,e,i)}removeEventListener(t,e,i){return t.removeEventListener(e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const I=["alt","control","meta","shift"],x={"\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"},R={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"},O={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let P=(()=>{class t extends f{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,s){const o=t.parseEventName(i),r=t.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,n.q)().onAndCancel(e,o.domEventName,r))}static parseEventName(e){const i=e.toLowerCase().split("."),n=i.shift();if(0===i.length||"keydown"!==n&&"keyup"!==n)return null;const s=t._normalizeKey(i.pop());let o="";if(I.forEach(t=>{const e=i.indexOf(t);e>-1&&(i.splice(e,1),o+=t+".")}),o+=s,0!=i.length||0===s.length)return null;const r={};return r.domEventName=n,r.fullKey=o,r}static getEventFullKey(t){let e="",i=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&R.hasOwnProperty(e)&&(e=R[e]))}return x[e]||e}(t);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),I.forEach(n=>{n!=i&&(0,O[n])(t)&&(e+=n+".")}),e+=i,e}static eventCallback(e,i,n){return s=>{t.getEventFullKey(s)===e&&n.runGuarded(()=>i(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),D=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,s.Yz7)({factory:function(){return(0,s.LFG)(L)},token:t,providedIn:"root"}),t})();function M(t){return new L(t.get(n.K0))}let L=(()=>{class t extends D{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case s.q3G.NONE:return e;case s.q3G.HTML:return(0,s.qzn)(e,"HTML")?(0,s.z3N)(e):(0,s.EiD)(this._doc,String(e)).toString();case s.q3G.STYLE:return(0,s.qzn)(e,"Style")?(0,s.z3N)(e):e;case s.q3G.SCRIPT:if((0,s.qzn)(e,"Script"))return(0,s.z3N)(e);throw new Error("unsafe value used in a script context");case s.q3G.URL:return(0,s.yhl)(e),(0,s.qzn)(e,"URL")?(0,s.z3N)(e):(0,s.mCW)(String(e));case s.q3G.RESOURCE_URL:if((0,s.qzn)(e,"ResourceURL"))return(0,s.z3N)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return(0,s.JVY)(t)}bypassSecurityTrustStyle(t){return(0,s.L6k)(t)}bypassSecurityTrustScript(t){return(0,s.eBb)(t)}bypassSecurityTrustUrl(t){return(0,s.LAX)(t)}bypassSecurityTrustResourceUrl(t){return(0,s.pB0)(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=(0,s.Yz7)({factory:function(){return M((0,s.LFG)(s.gxx))},token:t,providedIn:"root"}),t})();const N=(0,s.eFA)(s._c5,"browser",[{provide:s.Lbi,useValue:n.bD},{provide:s.g9A,useValue:function(){r.makeCurrent(),h.init()},multi:!0},{provide:n.K0,useFactory:function(){return(0,s.RDi)(document),document},deps:[]}]),z=[[],{provide:s.zSh,useValue:"root"},{provide:s.qLn,useFactory:function(){return new s.qLn},deps:[]},{provide:p,useClass:k,multi:!0,deps:[n.K0,s.R0b,s.Lbi]},{provide:p,useClass:P,multi:!0,deps:[n.K0]},[],{provide:T,useClass:T,deps:[g,b,s.AFp]},{provide:s.FYo,useExisting:T},{provide:m,useExisting:b},{provide:b,useClass:b,deps:[n.K0]},{provide:s.dDg,useClass:s.dDg,deps:[s.R0b]},{provide:g,useClass:g,deps:[p,s.R0b]},{provide:n.JF,useClass:d,deps:[]},[]];let Z=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:s.AFp,useValue:e.appId},{provide:l,useExisting:s.AFp},u]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(t,12))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:z,imports:[n.ez,s.hGG]}),t})();function B(){return new q((0,s.LFG)(n.K0))}let q=(()=>{class t{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=(0,s.Yz7)({factory:B,token:t,providedIn:"root"}),t})();"undefined"!=typeof window&&window},57629:function(t,e,i){"use strict";i.d(e,{gz:function(){return Yt},m2:function(){return U},OD:function(){return F},GZ:function(){return vi},wN:function(){return ni},F0:function(){return fi},rH:function(){return mi},yS:function(){return bi},Bz:function(){return xi},lC:function(){return wi}});var n=i(61511),s=i(31572),o=i(19764),r=i(40878),a=i(78512),c=i(31305),l=i(48318),u=i(39665),h=i(47930),d=i(31450),p=i(70653),g=i(42875),f=i(55959),m=i(96673);function b(t,e){let i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new _(t,e,i))}}class _{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new w(t,this.accumulator,this.seed,this.hasSeed))}}class w extends m.L{constructor(t,e,i,n){super(t),this.accumulator=e,this._seed=i,this.hasSeed=n,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(n){this.destination.error(n)}this.seed=i,this.destination.next(i)}}var A=i(43835),y=i(98402);function v(t){return function(e){return 0===t?(0,p.c)():e.lift(new T(t))}}class T{constructor(t){if(this.total=t,this.total<0)throw new y.W}call(t,e){return e.subscribe(new C(t,this.total))}}class C extends m.L{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,n=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,n=this.ring;for(let s=0;st.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.lengthn[e]===t)}return t===e}function lt(t){return Array.prototype.concat.apply([],t)}function ut(t){return t.length>0?t[t.length-1]:null}function ht(t,e){for(const i in t)t.hasOwnProperty(i)&&e(t[i],i)}function dt(t){return(0,s.CqO)(t)?t:(0,s.QGY)(t)?(0,o.D)(Promise.resolve(t)):(0,r.of)(t)}const pt={exact:function t(e,i,n){if(!vt(e.segments,i.segments))return!1;if(!_t(e.segments,i.segments,n))return!1;if(e.numberOfChildren!==i.numberOfChildren)return!1;for(const s in i.children){if(!e.children[s])return!1;if(!t(e.children[s],i.children[s],n))return!1}return!0},subset:mt},gt={exact:function(t,e){return at(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>ct(t[i],e[i]))},ignored:()=>!0};function ft(t,e,i){return pt[i.paths](t.root,e.root,i.matrixParams)&>[i.queryParams](t.queryParams,e.queryParams)&&!("exact"===i.fragment&&t.fragment!==e.fragment)}function mt(t,e,i){return bt(t,e,e.segments,i)}function bt(t,e,i,n){if(t.segments.length>i.length){const s=t.segments.slice(0,i.length);return!!vt(s,i)&&!e.hasChildren()&&!!_t(s,i,n)}if(t.segments.length===i.length){if(!vt(t.segments,i))return!1;if(!_t(t.segments,i,n))return!1;for(const i in e.children){if(!t.children[i])return!1;if(!mt(t.children[i],e.children[i],n))return!1}return!0}{const s=i.slice(0,t.segments.length),o=i.slice(t.segments.length);return!!vt(t.segments,s)&&!!_t(t.segments,s,n)&&!!t.children.primary&&bt(t.children.primary,e,o,n)}}function _t(t,e,i){return e.every((e,n)=>gt[i](t[n].parameters,e.parameters))}class wt{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=st(this.queryParams)),this._queryParamMap}toString(){return Et.serialize(this)}}class At{constructor(t,e){this.segments=t,this.children=e,this.parent=null,ht(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return St(this)}}class yt{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=st(this.parameters)),this._parameterMap}toString(){return Dt(this)}}function vt(t,e){return t.length===e.length&&t.every((t,i)=>t.path===e[i].path)}class Tt{}class Ct{parse(t){const e=new Zt(t);return new wt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${kt(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(t=>`${xt(e)}=${xt(t)}`).join("&"):`${xt(e)}=${xt(i)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const Et=new Ct;function St(t){return t.segments.map(t=>Dt(t)).join("/")}function kt(t,e){if(!t.hasChildren())return St(t);if(e){const e=t.children.primary?kt(t.children.primary,!1):"",i=[];return ht(t.children,(t,e)=>{"primary"!==e&&i.push(`${e}:${kt(t,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function(t,e){let i=[];return ht(t.children,(t,n)=>{"primary"===n&&(i=i.concat(e(t,n)))}),ht(t.children,(t,n)=>{"primary"!==n&&(i=i.concat(e(t,n)))}),i}(t,(e,i)=>"primary"===i?[kt(t.children.primary,!1)]:[`${i}:${kt(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${St(t)}/${e[0]}`:`${St(t)}/(${e.join("//")})`}}function It(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function xt(t){return It(t).replace(/%3B/gi,";")}function Rt(t){return It(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ot(t){return decodeURIComponent(t)}function Pt(t){return Ot(t.replace(/\+/g,"%20"))}function Dt(t){return`${Rt(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Rt(t)}=${Rt(e[t])}`).join("")}`;var e}const Mt=/^[^\/()?;=#]+/;function Lt(t){const e=t.match(Mt);return e?e[0]:""}const Nt=/^[^=?&#]+/,zt=/^[^?&#]+/;class Zt{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new At([],{}):new At([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new At(t,e)),i}parseSegment(){const t=Lt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new yt(Ot(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Lt(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=Lt(this.remaining);t&&(i=t,this.capture(i))}t[Ot(e)]=Ot(i)}parseQueryParam(t){const e=function(t){const e=t.match(Nt);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(zt);return e?e[0]:""}(this.remaining);t&&(i=t,this.capture(i))}const n=Pt(e),s=Pt(i);if(t.hasOwnProperty(n)){let e=t[n];Array.isArray(e)||(e=[e],t[n]=e),e.push(s)}else t[n]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Lt(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error(`Cannot parse url '${this.url}'`);let s;i.indexOf(":")>-1?(s=i.substr(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s="primary");const o=this.parseChildren();e[s]=1===Object.keys(o).length?o.primary:new At([],o),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Bt{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=qt(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=qt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Ft(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Ft(t,this._root).map(t=>t.value)}}function qt(t,e){if(t===e.value)return e;for(const i of e.children){const e=qt(t,i);if(e)return e}return null}function Ft(t,e){if(t===e.value)return[e];for(const i of e.children){const n=Ft(t,i);if(n.length)return n.unshift(e),n}return[]}class Ut{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Ht(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Gt extends Bt{constructor(t,e){super(t),this.snapshot=e,Jt(this,t)}toString(){return this.snapshot.toString()}}function jt(t,e){const i=function(t,e){const i=new Vt([],{},{},"",{},"primary",e,null,t.root,-1,{});return new $t("",new Ut(i,[]))}(t,e),n=new a.X([new yt("",{})]),s=new a.X({}),o=new a.X({}),r=new a.X({}),c=new a.X(""),l=new Yt(n,s,r,c,o,"primary",e,i.root);return l.snapshot=i.root,new Gt(new Ut(l,[]),i)}class Yt{constructor(t,e,i,n,s,o,r,a){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=o,this.component=r,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,I.U)(t=>st(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,I.U)(t=>st(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Kt(t,e="emptyOnly"){const i=t.pathFromRoot;let n=0;if("always"!==e)for(n=i.length-1;n>=1;){const t=i[n],e=i[n-1];if(t.routeConfig&&""===t.routeConfig.path)n--;else{if(e.component)break;n--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(i.slice(n))}class Vt{constructor(t,e,i,n,s,o,r,a,c,l,u){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=o,this.component=r,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=l,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=st(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=st(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class $t extends Bt{constructor(t,e){super(e),this.url=t,Jt(this,e)}toString(){return Qt(this._root)}}function Jt(t,e){e.value._routerState=t,e.children.forEach(e=>Jt(t,e))}function Qt(t){const e=t.children.length>0?` { ${t.children.map(Qt).join(", ")} } `:"";return`${t.value}${e}`}function Wt(t){if(t.snapshot){const e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,at(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),at(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(let i=0;iat(t.parameters,n[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Xt(t.parent,e.parent))}function te(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){const n=i.value;n._futureSnapshot=e.value;const s=function(t,e,i){return e.children.map(e=>{for(const n of i.children)if(t.shouldReuseRoute(e.value,n.value.snapshot))return te(t,e,n);return te(t,e)})}(t,e,i);return new Ut(n,s)}{if(t.shouldAttach(e.value)){const i=t.retrieve(e.value);if(null!==i){const t=i.route;return ee(e,t),t}}const i=new Yt(new a.X((n=e.value).url),new a.X(n.params),new a.X(n.queryParams),new a.X(n.fragment),new a.X(n.data),n.outlet,n.component,n),s=e.children.map(e=>te(t,e));return new Ut(i,s)}var n}function ee(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let i=0;i{o[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new wt(i.root===t?e:oe(i.root,t,e),o,s)}function oe(t,e,i){const n={};return ht(t.children,(t,s)=>{n[s]=t===e?i:oe(t,e,i)}),new At(t.segments,n)}class re{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&ie(i[0]))throw new Error("Root segment cannot have matrix parameters");const n=i.find(ne);if(n&&n!==ut(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ae{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function ce(t,e,i){if(t||(t=new At([],{})),0===t.segments.length&&t.hasChildren())return le(t,e,i);const n=function(t,e,i){let n=0,s=e;const o={match:!1,pathIndex:0,commandIndex:0};for(;s=i.length)return o;const e=t.segments[s],r=i[n];if(ne(r))break;const a=`${r}`,c=n0&&void 0===a)break;if(a&&c&&"object"==typeof c&&void 0===c.outlets){if(!pe(a,c,e))return o;n+=2}else{if(!pe(a,{},e))return o;n++}s++}return{match:!0,pathIndex:s,commandIndex:n}}(t,e,i),s=i.slice(n.commandIndex);if(n.match&&n.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(s[n]=ce(t.children[n],e,i))}),ht(t.children,(t,e)=>{void 0===n[e]&&(s[e]=t)}),new At(t.segments,s)}}function ue(t,e,i){const n=t.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[i]=ue(new At([],{}),0,t))}),e}function de(t){const e={};return ht(t,(t,i)=>e[i]=`${t}`),e}function pe(t,e,i){return t==i.path&&at(e,i.parameters)}class ge{constructor(t,e,i,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=n}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),Wt(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const n=Ht(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,n[e],i),delete n[e]}),ht(n,(t,e)=>{this.deactivateRouteAndItsChildren(t,i)})}deactivateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(n===s)if(n.component){const s=i.getContext(n.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet);if(i&&i.outlet){const e=i.outlet.detach(),n=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:n})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),n=i&&t.value.component?i.children:e,s=Ht(t);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],n);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const n=Ht(e);t.children.forEach(t=>{this.activateRoutes(t,n[t.value.outlet],i),this.forwardEvent(new et(t.value.snapshot))}),t.children.length&&this.forwardEvent(new X(t.value.snapshot))}activateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(Wt(n),n===s)if(n.component){const s=i.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(n.component){const e=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){const t=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),fe(t.route)}else{const i=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(n.snapshot),s=i?i.module.componentFactoryResolver:null;e.attachRef=null,e.route=n,e.resolver=s,e.outlet&&e.outlet.activateWith(n,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,i)}}function fe(t){Wt(t.value),t.children.forEach(fe)}class me{constructor(t,e){this.routes=t,this.module=e}}function be(t){return"function"==typeof t}function _e(t){return t instanceof wt}const we=Symbol("INITIAL_VALUE");function Ae(){return(0,x.w)(t=>(0,c.aj)(t.map(t=>t.pipe((0,R.q)(1),(0,O.O)(we)))).pipe(b((t,e)=>{let i=!1;return e.reduce((t,n,s)=>{if(t!==we)return t;if(n===we&&(i=!0),!i){if(!1===n)return n;if(s===e.length-1||_e(n))return n}return t},t)},we),(0,A.h)(t=>t!==we),(0,I.U)(t=>_e(t)?t:!0===t),(0,R.q)(1)))}let ye=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s._UZ(0,"router-outlet")},directives:function(){return[wi]},encapsulation:2}),t})();function ve(t,e=""){for(let i=0;iSe(t)===e);return i.push(...t.filter(t=>Se(t)!==e)),i}const Ie={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function xe(t,e,i){var n;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?Object.assign({},Ie):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||rt)(i,t,e);if(!s)return Object.assign({},Ie);const o={};ht(s.posParams,(t,e)=>{o[e]=t.path});const r=s.consumed.length>0?Object.assign(Object.assign({},o),s.consumed[s.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:r,positionalParamSegments:null!==(n=s.posParams)&&void 0!==n?n:{}}}function Re(t,e,i,n,s="corrected"){if(i.length>0&&function(t,e,i){return i.some(i=>Oe(t,e,i)&&"primary"!==Se(i))}(t,i,n)){const s=new At(e,function(t,e,i,n){const s={};s.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(const o of i)if(""===o.path&&"primary"!==Se(o)){const i=new At([],{});i._sourceSegment=t,i._segmentIndexShift=e.length,s[Se(o)]=i}return s}(t,e,n,new At(i,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some(i=>Oe(t,e,i))}(t,i,n)){const o=new At(t.segments,function(t,e,i,n,s,o){const r={};for(const a of n)if(Oe(t,i,a)&&!s[Se(a)]){const i=new At([],{});i._sourceSegment=t,i._segmentIndexShift="legacy"===o?t.segments.length:e.length,r[Se(a)]=i}return Object.assign(Object.assign({},s),r)}(t,e,i,n,t.children,s));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:i}}const o=new At(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:i}}function Oe(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path}function Pe(t,e,i,n){return!!(Se(t)===n||"primary"!==n&&Oe(e,i,t))&&("**"===t.path||xe(e,t,i).matched)}function De(t,e,i){return 0===e.length&&!t.children[i]}class Me{constructor(t){this.segmentGroup=t||null}}class Le{constructor(t){this.urlTree=t}}function Ne(t){return new l.y(e=>e.error(new Me(t)))}function ze(t){return new l.y(e=>e.error(new Le(t)))}function Ze(t){return new l.y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Be{constructor(t,e,i,n,o){this.configLoader=e,this.urlSerializer=i,this.urlTree=n,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(s.h0i)}apply(){const t=Re(this.urlTree.root,[],[],this.config).segmentGroup,e=new At(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,"primary").pipe((0,I.U)(t=>this.createUrlTree(qe(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,P.K)(t=>{if(t instanceof Le)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Me)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe((0,I.U)(e=>this.createUrlTree(qe(e),t.queryParams,t.fragment))).pipe((0,P.K)(t=>{if(t instanceof Me)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const n=t.segments.length>0?new At([],{primary:t}):t;return new wt(n,e,i)}expandSegmentGroup(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe((0,I.U)(t=>new At([],t))):this.expandSegment(t,i,e,i.segments,n,!0)}expandChildren(t,e,i){const n=[];for(const s of Object.keys(i.children))"primary"===s?n.unshift(s):n.push(s);return(0,o.D)(n).pipe((0,D.b)(n=>{const s=i.children[n],o=ke(e,n);return this.expandSegmentGroup(t,o,s,n).pipe((0,I.U)(t=>({segment:t,outlet:n})))}),b((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const i=arguments.length>=2;return n=>n.pipe(t?(0,A.h)((e,i)=>t(e,i,n)):k.y,v(1),i?(0,S.d)(e):(0,E.T)(()=>new u.K))}())}expandSegment(t,e,i,n,s,a){return(0,o.D)(i).pipe((0,D.b)(o=>this.expandSegmentAgainstRoute(t,e,i,o,n,s,a).pipe((0,P.K)(t=>{if(t instanceof Me)return(0,r.of)(null);throw t}))),(0,M.P)(t=>!!t),(0,P.K)((t,i)=>{if(t instanceof u.K||"EmptyError"===t.name){if(De(e,n,s))return(0,r.of)(new At([],{}));throw new Me(e)}throw t}))}expandSegmentAgainstRoute(t,e,i,n,s,o,r){return Pe(n,e,s,o)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,s,o):r&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o):Ne(e):Ne(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,n){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?ze(s):this.lineralizeSegments(i,s).pipe((0,L.zg)(i=>{const s=new At(i,{});return this.expandSegment(t,s,e,i,n,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o){const{matched:r,consumedSegments:a,lastChild:c,positionalParamSegments:l}=xe(e,n,s);if(!r)return Ne(e);const u=this.applyRedirectCommands(a,n.redirectTo,l);return n.redirectTo.startsWith("/")?ze(u):this.lineralizeSegments(n,u).pipe((0,L.zg)(n=>this.expandSegment(t,e,i,n.concat(s.slice(c)),o,!1)))}matchSegmentAgainstRoute(t,e,i,n,s){if("**"===i.path)return i.loadChildren?(i._loadedConfig?(0,r.of)(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe((0,I.U)(t=>(i._loadedConfig=t,new At(n,{})))):(0,r.of)(new At(n,{}));const{matched:o,consumedSegments:a,lastChild:c}=xe(e,i,n);if(!o)return Ne(e);const l=n.slice(c);return this.getChildConfig(t,i,n).pipe((0,L.zg)(t=>{const n=t.module,o=t.routes,{segmentGroup:c,slicedSegments:u}=Re(e,a,l,o),h=new At(c.segments,c.children);if(0===u.length&&h.hasChildren())return this.expandChildren(n,o,h).pipe((0,I.U)(t=>new At(a,t)));if(0===o.length&&0===u.length)return(0,r.of)(new At(a,{}));const d=Se(i)===s;return this.expandSegment(n,h,o,u,d?"primary":s,!0).pipe((0,I.U)(t=>new At(a.concat(t.segments),t.children)))}))}getChildConfig(t,e,i){return e.children?(0,r.of)(new me(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?(0,r.of)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe((0,L.zg)(i=>i?this.configLoader.load(t.injector,e).pipe((0,I.U)(t=>(e._loadedConfig=t,t))):function(t){return new l.y(e=>e.error(ot(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):(0,r.of)(new me([],t))}runCanLoadGuards(t,e,i){const n=e.canLoad;if(!n||0===n.length)return(0,r.of)(!0);const s=n.map(n=>{const s=t.get(n);let o;if(function(t){return t&&be(t.canLoad)}(s))o=s.canLoad(e,i);else{if(!be(s))throw new Error("Invalid CanLoad guard");o=s(e,i)}return dt(o)});return(0,r.of)(s).pipe(Ae(),(0,N.b)(t=>{if(!_e(t))return;const e=ot(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),(0,I.U)(t=>!0===t))}lineralizeSegments(t,e){let i=[],n=e.root;for(;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return(0,r.of)(i);if(n.numberOfChildren>1||!n.children.primary)return Ze(t.redirectTo);n=n.children.primary}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,n){const s=this.createSegmentGroup(t,e.root,i,n);return new wt(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return ht(t,(t,n)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);i[n]=e[s]}else i[n]=t}),i}createSegmentGroup(t,e,i,n){const s=this.createSegments(t,e.segments,i,n);let o={};return ht(e.children,(e,s)=>{o[s]=this.createSegmentGroup(t,e,i,n)}),new At(s,o)}createSegments(t,e,i,n){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,n):this.findOrReturn(e,i))}findPosParam(t,e,i){const n=i[e.path.substring(1)];if(!n)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return n}findOrReturn(t,e){let i=0;for(const n of e){if(n.path===t.path)return e.splice(i),n;i++}return t}}function qe(t){const e={};for(const i of Object.keys(t.children)){const n=qe(t.children[i]);(n.segments.length>0||n.hasChildren())&&(e[i]=n)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new At(t.segments.concat(e.segments),e.children)}return t}(new At(t.segments,e))}class Fe{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Ue{constructor(t,e){this.component=t,this.route=e}}function He(t,e,i){const n=t._root;return je(n,e?e._root:null,i,[n.value])}function Ge(t,e,i){const n=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(n?n.module.injector:i).get(t)}function je(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=Ht(e);return t.children.forEach(t=>{!function(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,r=e?e.value:null,a=i?i.getContext(t.value.outlet):null;if(r&&o.routeConfig===r.routeConfig){const c=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!vt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!vt(t.url,e.url)||!at(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Xt(t,e)||!at(t.queryParams,e.queryParams);case"paramsChange":default:return!Xt(t,e)}}(r,o,o.routeConfig.runGuardsAndResolvers);c?s.canActivateChecks.push(new Fe(n)):(o.data=r.data,o._resolvedData=r._resolvedData),je(t,e,o.component?a?a.children:null:i,n,s),c&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new Ue(a.outlet.component,r))}else r&&Ye(e,a,s),s.canActivateChecks.push(new Fe(n)),je(t,null,o.component?a?a.children:null:i,n,s)}(t,o[t.value.outlet],i,n.concat([t.value]),s),delete o[t.value.outlet]}),ht(o,(t,e)=>Ye(t,i.getContext(e),s)),s}function Ye(t,e,i){const n=Ht(t),s=t.value;ht(n,(t,n)=>{Ye(t,s.component?e?e.children.getContext(n):null:e,i)}),i.canDeactivateChecks.push(new Ue(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class Ke{}function Ve(t){return new l.y(e=>e.error(t))}class $e{constructor(t,e,i,n,s,o){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=n,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=o}recognize(){const t=Re(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary");if(null===e)return null;const i=new Vt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),n=new Ut(i,e),s=new $t(this.url,n);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,i=Kt(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=[];for(const s of Object.keys(e.children)){const n=e.children[s],o=ke(t,s),r=this.processSegmentGroup(o,n,s);if(null===r)return null;i.push(...r)}const n=Qe(i);return n.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,i,n){for(const s of t){const t=this.processSegmentAgainstRoute(s,e,i,n);if(null!==t)return t}return De(e,i,n)?[]:null}processSegmentAgainstRoute(t,e,i,n){if(t.redirectTo||!Pe(t,e,i,n))return null;let s,o=[],r=[];if("**"===t.path){const n=i.length>0?ut(i).parameters:{};s=new Vt(i,n,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ti(t),Se(t),t.component,t,We(e),Xe(e)+i.length,ei(t))}else{const n=xe(e,t,i);if(!n.matched)return null;o=n.consumedSegments,r=i.slice(n.lastChild),s=new Vt(o,n.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ti(t),Se(t),t.component,t,We(e),Xe(e)+o.length,ei(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:l}=Re(e,o,r,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===l.length&&c.hasChildren()){const t=this.processChildren(a,c);return null===t?null:[new Ut(s,t)]}if(0===a.length&&0===l.length)return[new Ut(s,[])];const u=Se(t)===n,h=this.processSegment(a,c,l,u?"primary":n);return null===h?null:[new Ut(s,h)]}}function Je(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function Qe(t){const e=[],i=new Set;for(const n of t){if(!Je(n)){e.push(n);continue}const t=e.find(t=>n.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...n.children),i.add(t)):e.push(n)}for(const n of i){const t=Qe(n.children);e.push(new Ut(n.value,t))}return e.filter(t=>!i.has(t))}function We(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Xe(t){let e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,i+=e._segmentIndexShift?e._segmentIndexShift:0;return i-1}function ti(t){return t.data||{}}function ei(t){return t.resolve||{}}function ii(t){return(0,x.w)(e=>{const i=t(e);return i?(0,o.D)(i).pipe((0,I.U)(()=>e)):(0,r.of)(e)})}class ni{}class si extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const oi=new s.OlP("ROUTES");class ri{constructor(t,e,i,n){this.loader=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=n}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const i=this.loadModuleFactory(e.loadChildren).pipe((0,I.U)(i=>{this.onLoadEndListener&&this.onLoadEndListener(e);const n=i.create(t);return new me(lt(n.injector.get(oi,void 0,s.XFs.Self|s.XFs.Optional)).map(Ee),n)}),(0,P.K)(t=>{throw e._loader$=void 0,t}));return e._loader$=new g.c(i,()=>new f.xQ).pipe((0,z.x)()),e._loader$}loadModuleFactory(t){return"string"==typeof t?(0,o.D)(this.loader.load(t)):dt(t()).pipe((0,L.zg)(t=>t instanceof s.YKP?(0,r.of)(t):(0,o.D)(this.compiler.compileModuleAsync(t))))}}class ai{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new ci,this.attachRef=null}}class ci{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new ai,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class li{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function ui(t){throw t}function hi(t,e,i){return e.parse("/")}function di(t,e){return(0,r.of)(null)}const pi={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},gi={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let fi=(()=>{class t{constructor(t,e,i,n,o,r,c,l){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=i,this.location=n,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new f.xQ,this.errorHandler=ui,this.malformedUriErrorHandler=hi,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:di,afterPreactivation:di},this.urlHandlingStrategy=new li,this.routeReuseStrategy=new si,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(s.h0i),this.console=o.get(s.c2e);const u=o.get(s.R0b);this.isNgZoneEnabled=u instanceof s.R0b&&s.R0b.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=new wt(new At([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new ri(r,c,t=>this.triggerEvent(new J(t)),t=>this.triggerEvent(new Q(t))),this.routerState=jt(this.currentUrlTree,this.rootComponentType),this.transitions=new a.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()}setupNavigations(t){const e=this.events;return t.pipe((0,A.h)(t=>0!==t.id),(0,I.U)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),(0,x.w)(t=>{let i=!1,n=!1;return(0,r.of)(t).pipe((0,N.b)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,x.w)(t=>{const i=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return(0,r.of)(t).pipe((0,x.w)(t=>{const i=this.transitions.getValue();return e.next(new F(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==this.transitions.getValue()?p.E:Promise.resolve(t)}),(n=this.ngModule.injector,s=this.configLoader,o=this.urlSerializer,a=this.config,(0,x.w)(t=>function(t,e,i,n,s){return new Be(t,e,i,n,s).apply()}(n,s,o,t.extractedUrl,a).pipe((0,I.U)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e}))))),(0,N.b)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,i,n,s){return(0,L.zg)(o=>function(t,e,i,n,s="emptyOnly",o="legacy"){try{const a=new $e(t,e,i,n,s,o).recognize();return null===a?Ve(new Ke):(0,r.of)(a)}catch(a){return Ve(a)}}(t,e,o.urlAfterRedirects,i(o.urlAfterRedirects),n,s).pipe((0,I.U)(t=>Object.assign(Object.assign({},o),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,N.b)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const i=new j(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(i)}));var n,s,o,a;if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:i,extractedUrl:n,source:s,restoredState:o,extras:a}=t,c=new F(i,this.serializeUrl(n),s,o);e.next(c);const l=jt(n,this.rootComponentType).snapshot;return(0,r.of)(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:n,extras:Object.assign(Object.assign({},a),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),p.E}),ii(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:o,replaceUrl:r}}=t;return this.hooks.beforePreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!r})}),(0,N.b)(t=>{const e=new Y(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,I.U)(t=>Object.assign(Object.assign({},t),{guards:He(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return(0,L.zg)(i=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:a,canDeactivateChecks:c}}=i;return 0===c.length&&0===a.length?(0,r.of)(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return(0,o.D)(t).pipe((0,L.zg)(t=>function(t,e,i,n,s){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return(0,r.of)(!0);const a=o.map(o=>{const r=Ge(o,e,s);let a;if(function(t){return t&&be(t.canDeactivate)}(r))a=dt(r.canDeactivate(t,e,i,n));else{if(!be(r))throw new Error("Invalid CanDeactivate guard");a=dt(r(t,e,i,n))}return a.pipe((0,M.P)())});return(0,r.of)(a).pipe(Ae())}(t.component,t.route,i,e,n)),(0,M.P)(t=>!0!==t,!0))}(c,n,s,t).pipe((0,L.zg)(i=>i&&"boolean"==typeof i?function(t,e,i,n){return(0,o.D)(e).pipe((0,D.b)(e=>(0,h.z)(function(t,e){return null!==t&&e&&e(new W(t)),(0,r.of)(!0)}(e.route.parent,n),function(t,e){return null!==t&&e&&e(new tt(t)),(0,r.of)(!0)}(e.route,n),function(t,e,i){const n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>(0,d.P)(()=>{const s=e.guards.map(s=>{const o=Ge(s,e.node,i);let r;if(function(t){return t&&be(t.canActivateChild)}(o))r=dt(o.canActivateChild(n,t));else{if(!be(o))throw new Error("Invalid CanActivateChild guard");r=dt(o(n,t))}return r.pipe((0,M.P)())});return(0,r.of)(s).pipe(Ae())}));return(0,r.of)(s).pipe(Ae())}(t,e.path,i),function(t,e,i){const n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||0===n.length)return(0,r.of)(!0);const s=n.map(n=>(0,d.P)(()=>{const s=Ge(n,e,i);let o;if(function(t){return t&&be(t.canActivate)}(s))o=dt(s.canActivate(e,t));else{if(!be(s))throw new Error("Invalid CanActivate guard");o=dt(s(e,t))}return o.pipe((0,M.P)())}));return(0,r.of)(s).pipe(Ae())}(t,e.route,i))),(0,M.P)(t=>!0!==t,!0))}(n,a,t,e):(0,r.of)(i)),(0,I.U)(t=>Object.assign(Object.assign({},i),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),(0,N.b)(t=>{if(_e(t.guardsResult)){const e=ot(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new K(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),(0,A.h)(t=>!!t.guardsResult||(this.cancelNavigationTransition(t,""),!1)),ii(t=>{if(t.guards.canActivateChecks.length)return(0,r.of)(t).pipe((0,N.b)(t=>{const e=new V(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,x.w)(t=>{let e=!1;return(0,r.of)(t).pipe((i=this.paramsInheritanceStrategy,n=this.ngModule.injector,(0,L.zg)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:s}}=t;if(!s.length)return(0,r.of)(t);let a=0;return(0,o.D)(s).pipe((0,D.b)(t=>function(t,e,i,n){return function(t,e,i,n){const s=Object.keys(t);if(0===s.length)return(0,r.of)({});const a={};return(0,o.D)(s).pipe((0,L.zg)(s=>function(t,e,i,n){const s=Ge(t,e,n);return dt(s.resolve?s.resolve(e,i):s(e,i))}(t[s],e,i,n).pipe((0,N.b)(t=>{a[s]=t}))),v(1),(0,L.zg)(()=>Object.keys(a).length===s.length?(0,r.of)(a):p.E))}(t._resolve,t,e,n).pipe((0,I.U)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Kt(t,i).resolve),null)))}(t.route,e,i,n)),(0,N.b)(()=>a++),v(1),(0,L.zg)(e=>a===s.length?(0,r.of)(t):p.E))})),(0,N.b)({next:()=>e=!0,complete:()=>{e||this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value.")}}));var i,n}),(0,N.b)(t=>{const e=new $(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),ii(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:o,replaceUrl:r}}=t;return this.hooks.afterPreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!r})}),(0,I.U)(t=>{const e=function(t,e,i){const n=te(t,e._root,i?i._root:void 0);return new Gt(n,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),(0,N.b)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,a=this.routeReuseStrategy,c=t=>this.triggerEvent(t),(0,I.U)(t=>(new ge(a,t.targetRouterState,t.currentRouterState,c).activate(s),t))),(0,N.b)({next(){i=!0},complete(){i=!0}}),(0,Z.x)(()=>{i||n||this.cancelNavigationTransition(t,`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`),this.currentNavigation=null}),(0,P.K)(i=>{if(n=!0,(s=i)&&s.ngNavigationCancelingError){const n=_e(i.url);n||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new H(t.id,this.serializeUrl(t.extractedUrl),i.message);e.next(s),n?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(i.url,this.rawUrlTree);this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const n=new G(t.id,this.serializeUrl(t.extractedUrl),i);e.next(n);try{t.resolve(this.errorHandler(i))}catch(o){t.reject(o)}}var s;return p.E}));var s,a,c}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:i,urlTree:n}=e,s={replaceUrl:!0};if(i){const t=Object.assign({},i);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(n,t,i,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const i=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&i&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){ve(t),this.config=t.map(Ee),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(t,e={}){const{relativeTo:i,queryParams:n,fragment:s,queryParamsHandling:o,preserveFragment:r}=e,a=i||this.routerState.root,c=r?this.currentUrlTree.fragment:s;let l=null;switch(o){case"merge":l=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=n||null}return null!==l&&(l=this.removeEmptyProps(l)),function(t,e,i,n,s){if(0===i.length)return se(e.root,e.root,e,n,s);const o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new re(!0,0,t);let e=0,i=!1;const n=t.reduce((t,n,s)=>{if("object"==typeof n&&null!=n){if(n.outlets){const e={};return ht(n.outlets,(t,i)=>{e[i]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(n.segmentPath)return[...t,n.segmentPath]}return"string"!=typeof n?[...t,n]:0===s?(n.split("/").forEach((n,s)=>{0==s&&"."===n||(0==s&&""===n?i=!0:".."===n?e++:""!=n&&t.push(n))}),t):[...t,n]},[]);return new re(i,e,n)}(i);if(o.toRoot())return se(e.root,new At([],{}),e,n,s);const r=function(t,e,i){if(t.isAbsolute)return new ae(e.root,!0,0);if(-1===i.snapshot._lastPathIndex){const t=i.snapshot._urlSegment;return new ae(t,t===e.root,0)}const n=ie(t.commands[0])?0:1;return function(t,e,i){let n=t,s=e,o=i;for(;o>s;){if(o-=s,n=n.parent,!n)throw new Error("Invalid number of '../'");s=n.segments.length}return new ae(n,!1,s-o)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(o,e,t),a=r.processChildren?le(r.segmentGroup,r.index,o.commands):ce(r.segmentGroup,r.index,o.commands);return se(r.segmentGroup,a,e,n,s)}(a,this.currentUrlTree,t,l,null!=c?c:null)}navigateByUrl(t,e={skipLocationChange:!1}){const i=_e(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree);let s=null;return"computed"===this.canceledNavigationResolution&&(0===this.currentPageId||e.skipLocationChange||e.replaceUrl)&&(s=this.location.getState()),this.scheduleNavigation(n,"imperative",s,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const n=t[i];return null!=n&&(e[i]=n),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new U(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,i,n,s){if(this.disposed)return Promise.resolve(!1);const o=this.getTransition(),r="imperative"!==e&&"imperative"===(null==o?void 0:o.source),a=(this.lastSuccessfulId===o.id||this.currentNavigation?o.rawUrl:o.urlAfterRedirects).toString()===t.toString();if(r&&a)return Promise.resolve(!0);let c,l,u;s?(c=s.resolve,l=s.reject,u=s.promise):u=new Promise((t,e)=>{c=t,l=e});const h=++this.navigationId;let d;return d="computed"===this.canceledNavigationResolution?i&&i.\u0275routerPageId?i.\u0275routerPageId:this.currentPageId+1:0,this.setTransition({id:h,targetPageId:d,source:e,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:c,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const i=this.urlSerializer.serialize(t),n=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(i)||e.extras.replaceUrl?this.location.replaceState(i,"",n):this.location.go(i,"",n)}resetStateAndUrl(t,e,i){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){"computed"===this.canceledNavigationResolution?"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy||this.location.historyGo(this.currentPageId-t.targetPageId):this.resetUrlToCurrentUrlTree();const i=new H(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(i),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.DyG),s.LFG(Tt),s.LFG(ci),s.LFG(n.Ye),s.LFG(s.zs3),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),mi=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new f.xQ,null==i&&n.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:_i(this.skipLocationChange),replaceUrl:_i(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:_i(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(fi),s.Y36(Yt),s.$8M("tabindex"),s.Y36(s.Qsj),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.TTD]}),t})(),bi=(()=>{class t{constructor(t,e,i){this.router=t,this.route=e,this.locationStrategy=i,this.commands=[],this.onChanges=new f.xQ,this.subscription=t.events.subscribe(t=>{t instanceof U&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,i,n,s){if(0!==t||e||i||n||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const o={skipLocationChange:_i(this.skipLocationChange),replaceUrl:_i(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:_i(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(fi),s.Y36(Yt),s.Y36(n.S$))},t.\u0275dir=s.lG2({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(s.Ikx("href",e.href,s.LSH),s.uIk("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.TTD]}),t})();function _i(t){return""===t||!!t}let wi=(()=>{class t{constructor(t,e,i,n,o){this.parentContexts=t,this.location=e,this.resolver=i,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.vpe,this.deactivateEvents=new s.vpe,this.name=n||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const i=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,s=new Ai(t,n,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(ci),s.Y36(s.s_b),s.Y36(s._Vd),s.$8M("name"),s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Ai{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===Yt?this.route:t===ci?this.childContexts:this.parent.get(t,e)}}class yi{}class vi{preload(t,e){return(0,r.of)(null)}}let Ti=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.injector=n,this.preloadingStrategy=s,this.loader=new ri(e,i,e=>t.triggerEvent(new J(e)),e=>t.triggerEvent(new Q(e)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,A.h)(t=>t instanceof U),(0,D.b)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(s.h0i);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const i=[];for(const n of e)if(n.loadChildren&&!n.canLoad&&n._loadedConfig){const t=n._loadedConfig;i.push(this.processRoutes(t.module,t.routes))}else n.loadChildren&&!n.canLoad?i.push(this.preloadConfig(t,n)):n.children&&i.push(this.processRoutes(t,n.children));return(0,o.D)(i).pipe((0,B.J)(),(0,I.U)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?(0,r.of)(e._loadedConfig):this.loader.load(t.injector,e)).pipe((0,L.zg)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(fi),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(s.zs3),s.LFG(yi))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Ci=(()=>{class t{constructor(t,e,i={}){this.router=t,this.viewportScroller=e,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.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(t=>{t instanceof F?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof U&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof it&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new it(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(fi),s.LFG(n.EM),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const Ei=new s.OlP("ROUTER_CONFIGURATION"),Si=new s.OlP("ROUTER_FORROOT_GUARD"),ki=[n.Ye,{provide:Tt,useClass:Ct},{provide:fi,useFactory:function(t,e,i,n,s,o,r,a={},c,l){const u=new fi(null,t,e,i,n,s,o,lt(r));return c&&(u.urlHandlingStrategy=c),l&&(u.routeReuseStrategy=l),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,u),a.enableTracing&&u.events.subscribe(t=>{var e,i;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(i=console.groupEnd)||void 0===i||i.call(console)}),u},deps:[Tt,ci,n.Ye,s.zs3,s.v3s,s.Sil,oi,Ei,[class{},new s.FiY],[ni,new s.FiY]]},ci,{provide:Yt,useFactory:function(t){return t.routerState.root},deps:[fi]},{provide:s.v3s,useClass:s.EAV},Ti,vi,class{preload(t,e){return e().pipe((0,P.K)(()=>(0,r.of)(null)))}},{provide:Ei,useValue:{enableTracing:!1}}];function Ii(){return new s.PXZ("Router",fi)}let xi=(()=>{class t{constructor(t,e){}static forRoot(e,i){return{ngModule:t,providers:[ki,Di(e),{provide:Si,useFactory:Pi,deps:[[fi,new s.FiY,new s.tp0]]},{provide:Ei,useValue:i||{}},{provide:n.S$,useFactory:Oi,deps:[n.lw,[new s.tBr(n.mr),new s.FiY],Ei]},{provide:Ci,useFactory:Ri,deps:[fi,n.EM,Ei]},{provide:yi,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:vi},{provide:s.PXZ,multi:!0,useFactory:Ii},[Mi,{provide:s.ip1,multi:!0,useFactory:Li,deps:[Mi]},{provide:zi,useFactory:Ni,deps:[Mi]},{provide:s.tb,multi:!0,useExisting:zi}]]}}static forChild(e){return{ngModule:t,providers:[Di(e)]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Si,8),s.LFG(fi,8))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();function Ri(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new Ci(t,e,i)}function Oi(t,e,i={}){return i.useHash?new n.Do(t,e):new n.b0(t,e)}function Pi(t){return"guarded"}function Di(t){return[{provide:s.deG,multi:!0,useValue:t},{provide:oi,multi:!0,useValue:t}]}let Mi=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new f.xQ}appInitializer(){return this.injector.get(n.V_,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),i=this.injector.get(fi),n=this.injector.get(Ei);return"disabled"===n.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===n.initialNavigation||"enabledBlocking"===n.initialNavigation?(i.hooks.afterPreactivation=()=>this.initNavigation?(0,r.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),i.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(Ei),i=this.injector.get(Ti),n=this.injector.get(Ci),o=this.injector.get(fi),r=this.injector.get(s.z2F);t===r.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||o.initialNavigation(),i.setUpPreloading(),n.init(),o.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function Li(t){return t.appInitializer.bind(t)}function Ni(t){return t.bootstrapListener.bind(t)}const zi=new s.OlP("Router Initializer")},48160:function(t,e,i){"use strict";i.d(e,{Zw:function(){return g},aw:function(){return D},X$:function(){return P},sK:function(){return O}});var n=i(31572),s=i(40878),o=i(4710),r=i(3148),a=i(47930),c=i(31450),l=i(90611),u=i(68303),h=i(79996),d=i(436),p=i(44689);class g{}let f=(()=>{class t extends g{getTranslation(t){return(0,s.of)({})}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();class m{}let b=(()=>{class t{handle(t){return t.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();function _(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;let i,n,s,o=typeof t;if(o==typeof e&&"object"==o){if(!Array.isArray(t)){if(Array.isArray(e))return!1;for(n in s=Object.create(null),t){if(!_(t[n],e[n]))return!1;s[n]=!0}for(n in e)if(!(n in s)&&void 0!==e[n])return!1;return!0}if(!Array.isArray(e))return!1;if((i=t.length)==e.length){for(n=0;n{A(e[n])?n in t?i[n]=y(t[n],e[n]):Object.assign(i,{[n]:e[n]}):Object.assign(i,{[n]:e[n]})}),i}class v{}let T=(()=>{class t extends v{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(t,e){let i;return i="string"==typeof t?this.interpolateString(t,e):"function"==typeof t?this.interpolateFunction(t,e):t,i}getValue(t,e){let i="string"==typeof e?e.split("."):[e];e="";do{e+=i.shift(),!w(t)||!w(t[e])||"object"!=typeof t[e]&&i.length?i.length?e+=".":t=void 0:(t=t[e],e="")}while(i.length);return t}interpolateFunction(t,e){return t(e)}interpolateString(t,e){return e?t.replace(this.templateMatcher,(t,i)=>{let n=this.getValue(e,i);return w(n)?n:t}):t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();class C{}let E=(()=>{class t extends C{compile(t,e){return t}compileTranslations(t,e){return t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();class S{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new n.vpe,this.onLangChange=new n.vpe,this.onDefaultLangChange=new n.vpe}}const k=new n.OlP("USE_STORE"),I=new n.OlP("USE_DEFAULT_LANG"),x=new n.OlP("DEFAULT_LANGUAGE"),R=new n.OlP("USE_EXTEND");let O=(()=>{class t{constructor(t,e,i,s,o,r=!0,a=!1,c=!1,l){this.store=t,this.currentLoader=e,this.compiler=i,this.parser=s,this.missingTranslationHandler=o,this.useDefaultLang=r,this.isolate=a,this.extend=c,this.pending=!1,this._onTranslationChange=new n.vpe,this._onLangChange=new n.vpe,this._onDefaultLangChange=new n.vpe,this._langs=[],this._translations={},this._translationRequests={},l&&this.setDefaultLang(l)}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(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}setDefaultLang(t){if(t===this.defaultLang)return;let e=this.retrieveTranslations(t);void 0!==e?(null==this.defaultLang&&(this.defaultLang=t),e.pipe((0,l.q)(1)).subscribe(e=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return(0,s.of)(this.translations[t]);let e=this.retrieveTranslations(t);return void 0!==e?(this.currentLang||(this.currentLang=t),e.pipe((0,l.q)(1)).subscribe(e=>{this.changeLang(t)}),e):(this.changeLang(t),(0,s.of)(this.translations[t]))}retrieveTranslations(t){let e;return(void 0===this.translations[t]||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),e=this._translationRequests[t]),e}getTranslation(t){this.pending=!0;const e=this.currentLoader.getTranslation(t).pipe((0,u.d)(1),(0,l.q)(1));return this.loadingTranslations=e.pipe((0,h.U)(e=>this.compiler.compileTranslations(e,t)),(0,u.d)(1),(0,l.q)(1)),this.loadingTranslations.subscribe({next:e=>{this.translations[t]=this.extend&&this.translations[t]?Object.assign(Object.assign({},e),this.translations[t]):e,this.updateLangs(),this.pending=!1},error:t=>{this.pending=!1}}),e}setTranslation(t,e,i=!1){e=this.compiler.compileTranslations(e,t),this.translations[t]=(i||this.extend)&&this.translations[t]?y(this.translations[t],e):e,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,e,i){let n;if(e instanceof Array){let n={},a=!1;for(let s of e)n[s]=this.getParsedResult(t,s,i),(0,o.b)(n[s])&&(a=!0);if(a){const t=e.map(t=>(0,o.b)(n[t])?n[t]:(0,s.of)(n[t]));return(0,r.D)(t).pipe((0,h.U)(t=>{let i={};return t.forEach((t,n)=>{i[e[n]]=t}),i}))}return n}if(t&&(n=this.parser.interpolate(this.parser.getValue(t,e),i)),void 0===n&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(n=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e),i)),void 0===n){let t={key:e,translateService:this};void 0!==i&&(t.interpolateParams=i),n=this.missingTranslationHandler.handle(t)}return void 0!==n?n:e}get(t,e){if(!w(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,d.b)(i=>(i=this.getParsedResult(i,t,e),(0,o.b)(i)?i:(0,s.of)(i))));{let i=this.getParsedResult(this.translations[this.currentLang],t,e);return(0,o.b)(i)?i:(0,s.of)(i)}}getStreamOnTranslationChange(t,e){if(!w(t)||!t.length)throw new Error('Parameter "key" required');return(0,a.z)((0,c.P)(()=>this.get(t,e)),this.onTranslationChange.pipe((0,p.w)(i=>{const n=this.getParsedResult(i.translations,t,e);return"function"==typeof n.subscribe?n:(0,s.of)(n)})))}stream(t,e){if(!w(t)||!t.length)throw new Error('Parameter "key" required');return(0,a.z)((0,c.P)(()=>this.get(t,e)),this.onLangChange.pipe((0,p.w)(i=>{const n=this.getParsedResult(i.translations,t,e);return(0,o.b)(n)?n:(0,s.of)(n)})))}instant(t,e){if(!w(t)||!t.length)throw new Error('Parameter "key" required');let i=this.getParsedResult(this.translations[this.currentLang],t,e);if((0,o.b)(i)){if(t instanceof Array){let e={};return t.forEach((i,n)=>{e[t[n]]=t[n]}),e}return t}return i}set(t,e,i=this.currentLang){this.translations[i][t]=this.compiler.compile(e,i),this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==t?(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(S),n.LFG(g),n.LFG(C),n.LFG(v),n.LFG(m),n.LFG(I),n.LFG(k),n.LFG(R),n.LFG(x))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),P=(()=>{class t{constructor(t,e){this.translate=t,this._ref=e,this.value=""}updateValue(t,e,i){let n=e=>{this.value=void 0!==e?e:t,this.lastKey=t,this._ref.markForCheck()};if(i){let s=this.translate.getParsedResult(i,t,e);(0,o.b)(s.subscribe)?s.subscribe(n):n(s)}this.translate.get(t,e).subscribe(n)}transform(t,...e){if(!t||!t.length)return t;if(_(t,this.lastKey)&&_(e,this.lastParams))return this.value;let i;if(w(e[0])&&e.length)if("string"==typeof e[0]&&e[0].length){let t=e[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{i=JSON.parse(t)}catch(n){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${e[0]}`)}}else"object"!=typeof e[0]||Array.isArray(e[0])||(i=e[0]);return this.lastKey=t,this.lastParams=e,this.updateValue(t,i),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(e=>{this.lastKey&&e.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(t,i,e.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(e=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i,e.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(O,16),n.Y36(n.sBO,16))},t.\u0275pipe=n.Yjl({name:"translate",type:t,pure:!1}),t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),D=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:g,useClass:f},e.compiler||{provide:C,useClass:E},e.parser||{provide:v,useClass:T},e.missingTranslationHandler||{provide:m,useClass:b},S,{provide:k,useValue:e.isolate},{provide:I,useValue:e.useDefaultLang},{provide:R,useValue:e.extend},{provide:x,useValue:e.defaultLanguage},O]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:g,useClass:f},e.compiler||{provide:C,useClass:E},e.parser||{provide:v,useClass:T},e.missingTranslationHandler||{provide:m,useClass:b},{provide:k,useValue:e.isolate},{provide:I,useValue:e.useDefaultLang},{provide:R,useValue:e.extend},{provide:x,useValue:e.defaultLanguage},O]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})()},52623:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{zr:function(){return OAuthModule},Ct:function(){return OAuthService}});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(31572),_angular_common__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(61511),_angular_common_http__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(29063),tslib__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(77632),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(55959),rxjs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(40878),rxjs__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(19764),rxjs__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(3875),rxjs__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(31225),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(31305),rxjs__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(31906),rxjs_operators__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(43835),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(66599),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(47701),rxjs_operators__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(60509),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(44689),rxjs_operators__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(79996),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(3530),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(47727),rxjs_operators__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(29085),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(90611),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(73982);module=__webpack_require__.hmd(module);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class t extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(t)))(i||t)}}(),t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class t{constructor(){this.data=new Map}getItem(t){return this.data.get(t)}removeItem(t){this.data.delete(t)}setItem(t,e){this.data.set(t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();class ReceivedTokens{}function b64DecodeUnicode(t){const e=t.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(e).split("").map(function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(t){return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(t){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){let e=this.inferHashAlgorithm(t.idTokenHeader),i=yield this.calcHash(t.accessToken,e),n=base64UrlEncode(i.substr(0,i.length/2)),s=t.idTokenClaims.at_hash.replace(/=/g,"");return n!==s&&(console.error("exptected at_hash: "+n),console.error("actual at_hash: "+s)),n===s})}inferHashAlgorithm(t){let e=t.alg;if(!e.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+e);return"sha-"+e.substr(2)}}let UrlHelperService=(()=>{class t{getHashFragmentParams(t){let e=t||window.location.hash;if(e=decodeURIComponent(e),0!==e.indexOf("#"))return{};const i=e.indexOf("?");return e=e.substr(i>-1?i+1:1),this.parseQueryString(e)}parseQueryString(t){const e={};let i,n,s,o,r,a,c;if(null===t)return e;i=t.split("&");for(let l=0;l{location.href=t},t&&Object.assign(this,t)}}class WebHttpUrlEncodingCodec{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&module.exports,AMD="function"==typeof define&&__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[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],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t,e){return function(i){return new Sha256(e,!0).update(i)[t]()}};const \u02750=createOutputMethod;var createMethod=function(t){var e=createOutputMethod("hex",t);NODE_JS&&(e=nodeWrap(e,t)),e.create=function(){return new Sha256(t)},e.update=function(t){return e.create().update(t)};for(var i=0;i>6,r[c++]=128|63&o):o<55296||o>=57344?(r[c++]=224|o>>12,r[c++]=128|o>>6&63,r[c++]=128|63&o):(o=65536+((1023&o)<<10|1023&t.charCodeAt(++n)),r[c++]=240|o>>18,r[c++]=128|o>>12&63,r[c++]=128|o>>6&63,r[c++]=128|63&o);t=r}else{if("object"!==s)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR)}t.length>64&&(t=new Sha256(e,!0).update(t).array());var l=[],u=[];for(n=0;n<64;++n){var h=t[n]||0;l[n]=92^h,u[n]=54^h}Sha256.call(this,e,i),this.update(u),this.oKeyPad=l,this.inner=!0,this.sharedMemory=i}Sha256.prototype.update=function(t){if(!this.finalized){var e,i=typeof t;if("string"!==i){if("object"!==i)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR);e=!0}for(var n,s,o=0,r=t.length,a=this.blocks;o>2]|=t[o]<>2]|=n<>2]|=(192|n>>6)<>2]|=(128|63&n)<=57344?(a[s>>2]|=(224|n>>12)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<>2]|=(240|n>>18)<>2]|=(128|n>>12&63)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<=64?(this.block=a[16],this.start=s-64,this.hash(),this.hashed=!0):this.start=s}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 t=this.blocks,e=this.lastByteIndex;t[16]=this.block,t[e>>2]|=EXTRA[3&e],this.block=t[16],e>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var t,e,i,n,s,o,r=this.h0,a=this.h1,c=this.h2,l=this.h3,u=this.h4,h=this.h5,d=this.h6,p=this.h7,g=this.blocks;for(t=16;t<64;++t)g[t]=g[t-16]+(((e=g[t-15])>>>7|e<<25)^(e>>>18|e<<14)^e>>>3)+g[t-7]+(((e=g[t-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)<<0;for(o=a&c,t=0;t<64;t+=4)this.first?(this.is224?(i=300032,p=(e=g[0]-1413257819)-150054599<<0,l=e+24177077<<0):(i=704751109,p=(e=g[0]-210244248)-1521486534<<0,l=e+143694565<<0),this.first=!1):(p=l+(e=p+((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&h^~u&d)+K[t]+g[t])<<0,l=e+(((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+((i=r&a)^r&c^o))<<0),d=c+(e=d+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&u^~p&h)+K[t+1]+g[t+1])<<0,c=e+(((l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10))+((n=l&r)^l&a^i))<<0,h=a+(e=h+((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&p^~d&u)+K[t+2]+g[t+2])<<0,a=e+(((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+((s=c&l)^c&r^n))<<0,u=r+(e=u+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&d^~h&p)+K[t+3]+g[t+3])<<0,r=e+(((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+((o=a&c)^a&l^s))<<0;this.h0=this.h0+r<<0,this.h1=this.h1+a<<0,this.h2=this.h2+c<<0,this.h3=this.h3+l<<0,this.h4=this.h4+u<<0,this.h5=this.h5+h<<0,this.h6=this.h6+d<<0,this.h7=this.h7+p<<0},Sha256.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,i=this.h2,n=this.h3,s=this.h4,o=this.h5,r=this.h6,a=this.h7,c=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[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[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[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[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]+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]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r];return this.is224||(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]),c},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,i=this.h2,n=this.h3,s=this.h4,o=this.h5,r=this.h6,a=this.h7,c=[t>>24&255,t>>16&255,t>>8&255,255&t,e>>24&255,e>>16&255,e>>8&255,255&e,i>>24&255,i>>16&255,i>>8&255,255&i,n>>24&255,n>>16&255,n>>8&255,255&n,s>>24&255,s>>16&255,s>>8&255,255&s,o>>24&255,o>>16&255,o>>8&255,255&o,r>>24&255,r>>16&255,r>>8&255,255&r];return this.is224||c.push(a>>24&255,a>>16&255,a>>8&255,255&a),c},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(this.is224?28:32),e=new DataView(t);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),e.setUint32(20,this.h5),e.setUint32(24,this.h6),this.is224||e.setUint32(28,this.h7),t},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(t),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0);class HashHandler{}let DefaultHashHandler=(()=>{class t{calcHash(t,e){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){const e=exports.array(t);return this.toHashString2(e)})}toHashString2(t){let e="";for(let i of t)e+=String.fromCharCode(i);return e}toHashString(t){const e=new Uint8Array(t);let i="";for(let n of e)i+=String.fromCharCode(n);return i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})(),OAuthService=(()=>{class t extends AuthConfig{constructor(t,e,i,n,s,o,r,a,c,l){var u;super(),this.ngZone=t,this.http=e,this.config=s,this.urlHelper=o,this.logger=r,this.crypto=a,this.dateTimeService=l,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_2__.xQ,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_2__.xQ,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=c,s||(s={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),n&&(this.tokenValidationHandler=n),s&&this.configure(s);try{i?this.setStorage(i):"undefined"!=typeof sessionStorage&&this.setStorage(sessionStorage)}catch(h){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",h)}if("undefined"!=typeof window&&void 0!==window.localStorage){const t=null===(u=null===window||void 0===window?void 0:window.navigator)||void 0===u?void 0:u.userAgent;((null==t?void 0:t.includes("MSIE "))||(null==t?void 0:t.includes("Trident")))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}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_3__.h)(t=>"token_received"===t.type)).subscribe(t=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(t={},e,i=!0){let n=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.b)(t=>{"token_received"===t.type?n=!0:"logout"===t.type&&(n=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>"token_expires"===t.type&&(null==e||"any"===e||t.info===e)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(1e3)).subscribe(e=>{n&&this.refreshInternal(t,i).catch(t=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(t,e){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(t,e):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(t=null){return this.loadDiscoveryDocument().then(e=>this.tryLogin(t))}loadDiscoveryDocumentAndLogin(t=null){return this.loadDiscoveryDocumentAndTryLogin(t=t||{}).then(e=>!(!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 e=[],i=this.validateUrlForHttps(t),n=this.validateUrlAgainstIssuer(t);return i||e.push("https for all urls required. Also for urls received by discovery."),n||e.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),e}validateUrlForHttps(t){if(!t)return!0;const e=t.toLowerCase();return!1===this.requireHttps||!(!e.match(/^http:\/\/localhost($|[:\/])/)&&!e.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps)||e.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(t,e){if(!t)throw new Error(`'${e}' should not be null`);if(!this.validateUrlForHttps(t))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(t){return!this.strictDiscoveryDocumentValidation||!t||t.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){"undefined"!=typeof window?((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_3__.h)(t=>"token_received"===t.type)).subscribe(t=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})):this.debug("timer not supported on this plattform")}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const t=this.getAccessTokenExpiration(),e=this.getAccessTokenStoredAt(),i=this.calcTimeout(e,t);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.g)(i)).subscribe(t=>{this.ngZone.run(()=>{this.eventsSubject.next(t)})})})}setupIdTokenTimer(){const t=this.getIdTokenExpiration(),e=this.getIdTokenStoredAt(),i=this.calcTimeout(e,t);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.g)(i)).subscribe(t=>{this.ngZone.run(()=>{this.eventsSubject.next(t)})})})}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,e){const i=this.dateTimeService.now();return Math.max(0,(e-t)*this.timeoutFactor-(i-t))}setStorage(t){this._storage=t,this.configChanged()}loadDiscoveryDocument(t=null){return new Promise((e,i)=>{t||((t=this.issuer||"").endsWith("/")||(t+="/"),t+=".well-known/openid-configuration"),this.validateUrlForHttps(t)?this.http.get(t).subscribe(t=>{if(!this.validateDiscoveryDocument(t))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void i("discovery_document_validation_error");this.loginUrl=t.authorization_endpoint,this.logoutUrl=t.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=t.grant_types_supported,this.issuer=t.issuer,this.tokenEndpoint=t.token_endpoint,this.userinfoEndpoint=t.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=t.jwks_uri,this.sessionCheckIFrameUrl=t.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(t),this.revocationEndpoint=t.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(i=>{const n=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:t,jwks:i});this.eventsSubject.next(n),e(n)}).catch(t=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",t)),i(t)})},t=>{this.logger.error("error loading discovery document",t),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",t)),i(t)}):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,e)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(e=>{this.jwks=e,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),t(e)},t=>{this.logger.error("error loading jwks",t),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",t)),e(t)}):t(null)})}validateDiscoveryDocument(t){let e;return this.skipIssuerCheck||t.issuer===this.issuer?(e=this.validateUrlFromDiscoveryDocument(t.authorization_endpoint),e.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(t.end_session_endpoint),e.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(t.token_endpoint),e.length>0&&this.logger.error("error validating token_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(t.revocation_endpoint),e.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(t.userinfo_endpoint),e.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(t.jwks_uri),e.length>0?(this.logger.error("error validating jwks_uri in discovery document",e),!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,e,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM){return this.fetchTokenUsingPasswordFlow(t,e,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,e)=>{const i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:i,observe:"response",responseType:"text"}).subscribe(i=>{if(this.debug("userinfo received",JSON.stringify(i)),i.headers.get("content-type").startsWith("application/json")){let n=JSON.parse(i.body);const s=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!s.sub||n.sub!==s.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");n=Object.assign({},s,n),this._storage.setItem("id_token_claims_obj",JSON.stringify(n)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),t({info:n})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),t(JSON.parse(i.body))},t=>{this.logger.error("error loading user info",t),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",t)),e(t)})})}fetchTokenUsingPasswordFlow(t,e,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM){return this.fetchTokenUsingGrant("password",{username:t,password:e},i)}fetchTokenUsingGrant(t,e,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",t).set("scope",this.scope);if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+t)}if(this.useHttpBasicAuth||(n=n.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(n=n.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const s of Object.getOwnPropertyNames(this.customQueryParams))n=n.set(s,this.customQueryParams[s]);for(const s of Object.keys(e))n=n.set(s,e[s]);return i=i.set("Content-Type","application/x-www-form-urlencoded"),new Promise((t,e)=>{this.http.post(this.tokenEndpoint,n,{headers:i}).subscribe(e=>{this.debug("tokenResponse",e),this.storeAccessTokenResponse(e.access_token,e.refresh_token,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,e.scope,this.extractRecognizedCustomParameters(e)),this.oidc&&e.id_token&&this.processIdToken(e.id_token,e.access_token).then(i=>{this.storeIdToken(i),t(e)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),t(e)},t=>{this.logger.error("Error performing ${grantType} flow",t),this.eventsSubject.next(new OAuthErrorEvent("token_error",t)),e(t)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((t,e)=>{let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),n=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);n=n.set("Authorization","Basic "+t)}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 s of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(s,this.customQueryParams[s]);this.http.post(this.tokenEndpoint,i,{headers:n}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.w)(t=>t.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_10__.D)(this.processIdToken(t.id_token,t.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.b)(t=>this.storeIdToken(t)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.U)(e=>t)):(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(t))).subscribe(e=>{this.debug("refresh tokenResponse",e),this.storeAccessTokenResponse(e.access_token,e.refresh_token,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,e.scope,this.extractRecognizedCustomParameters(e)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),t(e)},t=>{this.logger.error("Error refreshing token",t),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",t)),e(t)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=t=>{const e=this.processMessageEventMessage(t);this.tryLogin({customHashFragment:e,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(t=>this.debug("tryLogin during silent refresh failed",t))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(t={},e=!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(void 0===this.document)throw new Error("silent refresh is not supported on this platform");const n=this.document.getElementById(this.silentRefreshIFrameName);n&&this.document.body.removeChild(n),this.silentRefreshSubject=i.sub;const s=this.document.createElement("iframe");s.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,e,t).then(t=>{s.setAttribute("src",t),this.silentRefreshShowIFrame||(s.style.display="none"),this.document.body.appendChild(s)});const o=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>t instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.P)()),r=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>"token_received"===t.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.P)()),a=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_13__.S3)([o,r,a]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.U)(t=>{if(t instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===t.type||(t=new OAuthErrorEvent("silent_refresh_error",t)),this.eventsSubject.next(t),t;return"token_received"===t.type&&(t=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(t)),t})).toPromise()}initImplicitFlowInPopup(t){return this.initLoginFlowInPopup(t)}initLoginFlowInPopup(t){return t=t||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(e=>new Promise((i,n)=>{let s,o=null;t.windowRef?t.windowRef&&!t.windowRef.closed&&(o=t.windowRef,o.location.href=e):o=window.open(e,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(t));const r=t=>{this.tryLogin({customHashFragment:t,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{a(),i(!0)},t=>{a(),n(t)})};o?s=window.setInterval(()=>{o&&!o.closed||(a(),n(new OAuthErrorEvent("popup_closed",{})))},500):n(new OAuthErrorEvent("popup_blocked",{}));const a=()=>{window.clearInterval(s),window.removeEventListener("storage",l),window.removeEventListener("message",c),null!==o&&o.close(),o=null},c=t=>{const e=this.processMessageEventMessage(t);e&&null!==e?(window.removeEventListener("storage",l),r(e)):console.log("false event firing")},l=t=>{"auth_hash"===t.key&&(window.removeEventListener("message",c),r(t.newValue))};window.addEventListener("message",c),window.addEventListener("storage",l)}))}calculatePopupFeatures(t){const e=t.height||470,i=t.width||500,n=window.screenLeft+(window.outerWidth-i)/2;return`location=no,toolbar=no,width=${i},height=${e},top=${window.screenTop+(window.outerHeight-e)/2},left=${n}`}processMessageEventMessage(t){let e="#";if(this.silentRefreshMessagePrefix&&(e+=this.silentRefreshMessagePrefix),!t||!t.data||"string"!=typeof t.data)return;const i=t.data;return i.startsWith(e)?"#"+i.substr(e.length):void 0}canPerformSessionCheck(){return!!this.sessionChecksEnabled&&(this.sessionCheckIFrameUrl?this.getSessionState()?void 0!==this.document:(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 e=t.origin.toLowerCase(),i=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),i.startsWith(e)){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",e,"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_3__.h)(t=>"silently_refreshed"===t.type||"silent_refresh_timeout"===t.type||"silent_refresh_error"===t.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.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 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 t=this.document.getElementById(this.sessionCheckIFrameName);t||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const e=this.getSessionState();e||this.stopSessionCheckTimer(),t.contentWindow.postMessage(this.clientId+" "+e,this.issuer)}createLoginUrl(t="",e="",i="",n=!1,s={}){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){let o;o=i||this.redirectUri;const r=yield this.createAndSaveNonce();if(t=t?r+this.config.nonceStateSeparator+encodeURIComponent(t):r,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.responseType=this.config.responseType?this.config.responseType:this.oidc&&this.requestAccessToken?"id_token token":this.oidc&&!this.requestAccessToken?"id_token":"token";const a=this.loginUrl.indexOf("?")>-1?"&":"?";let c=this.scope;this.oidc&&!c.match(/(^|\s)openid($|\s)/)&&(c="openid "+c);let l=this.loginUrl+a+"response_type="+encodeURIComponent(this.responseType)+"&client_id="+encodeURIComponent(this.clientId)+"&state="+encodeURIComponent(t)+"&redirect_uri="+encodeURIComponent(o)+"&scope="+encodeURIComponent(c);if(this.responseType.includes("code")&&!this.disablePKCE){const[t,e]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("PKCE_verifier",e):this._storage.setItem("PKCE_verifier",e),l+="&code_challenge="+t,l+="&code_challenge_method=S256"}e&&(l+="&login_hint="+encodeURIComponent(e)),this.resource&&(l+="&resource="+encodeURIComponent(this.resource)),this.oidc&&(l+="&nonce="+encodeURIComponent(r)),n&&(l+="&prompt=none");for(const t of Object.keys(s))l+="&"+encodeURIComponent(t)+"="+encodeURIComponent(s[t]);if(this.customQueryParams)for(const t of Object.getOwnPropertyNames(this.customQueryParams))l+="&"+t+"="+encodeURIComponent(this.customQueryParams[t]);return l})}initImplicitFlowInternal(t="",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 i={},n=null;"string"==typeof e?n=e:"object"==typeof e&&(i=e),this.createLoginUrl(t,n,null,!1,i).then(this.config.openUri).catch(t=>{console.error("Error in initImplicitFlow",t),this.inImplicitFlow=!1})}initImplicitFlow(t="",e=""){""!==this.loginUrl?this.initImplicitFlowInternal(t,e):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>"discovery_document_loaded"===t.type)).subscribe(i=>this.initImplicitFlowInternal(t,e))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(t){const e=this;if(t.onTokenReceived){const i={idClaims:e.getIdentityClaims(),idToken:e.getIdToken(),accessToken:e.getAccessToken(),state:e.state};t.onTokenReceived(i)}}storeAccessTokenResponse(t,e,i,n,s){if(this._storage.setItem("access_token",t),n&&!Array.isArray(n)?this._storage.setItem("granted_scopes",JSON.stringify(n.split(" "))):n&&Array.isArray(n)&&this._storage.setItem("granted_scopes",JSON.stringify(n)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),i){const t=1e3*i,e=this.dateTimeService.new().getTime()+t;this._storage.setItem("expires_at",""+e)}e&&this._storage.setItem("refresh_token",e),s&&s.forEach((t,e)=>{this._storage.setItem(e,t)})}tryLogin(t=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(t).then(t=>!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){const e=(t=t||{}).customHashFragment?t.customHashFragment.substring(1):window.location.search,i=this.getCodePartsFromUrl(e),n=i.code,s=i.state,o=i.session_state;if(!t.preventClearHashAfterLogin){const t=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,t)}let[r,a]=this.parseState(s);if(this.state=a,i.error){this.debug("error trying to login"),this.handleLoginError(t,i);const e=new OAuthErrorEvent("code_error",{},i);return this.eventsSubject.next(e),Promise.reject(e)}if(!t.disableNonceCheck){if(!r)return Promise.resolve();if(!t.disableOAuth2StateCheck&&!this.validateNonce(r)){const t=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(t),Promise.reject(t)}return this.storeSessionState(o),n?this.getTokenFromCode(n,t).then(t=>null):Promise.resolve()}}getCodePartsFromUrl(t){return t&&0!==t.length?("?"===t.charAt(0)&&(t=t.substr(1)),this.urlHelper.parseQueryString(t)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(t,e){let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",t).set("redirect_uri",e.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let t;t=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),t?i=i.set("code_verifier",t):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(i,e)}fetchAndProcessToken(t,e){e=e||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+t)}return this.useHttpBasicAuth||(t=t.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(t=t.set("client_secret",this.dummyClientSecret)),new Promise((n,s)=>{if(this.customQueryParams)for(let e of Object.getOwnPropertyNames(this.customQueryParams))t=t.set(e,this.customQueryParams[e]);this.http.post(this.tokenEndpoint,t,{headers:i}).subscribe(t=>{this.debug("refresh tokenResponse",t),this.storeAccessTokenResponse(t.access_token,t.refresh_token,t.expires_in||this.fallbackAccessTokenExpirationTimeInSec,t.scope,this.extractRecognizedCustomParameters(t)),this.oidc&&t.id_token?this.processIdToken(t.id_token,t.access_token,e.disableNonceCheck).then(e=>{this.storeIdToken(e),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),n(t)}).catch(t=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",t)),console.error("Error validating tokens"),console.error(t),s(t)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),n(t))},t=>{console.error("Error getting token",t),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",t)),s(t)})})}tryLoginImplicitFlow(t=null){let e;e=(t=t||{}).customHashFragment?this.urlHelper.getHashFragmentParams(t.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",e);const i=e.state;let[n,s]=this.parseState(i);if(this.state=s,e.error){this.debug("error trying to login"),this.handleLoginError(t,e);const i=new OAuthErrorEvent("token_error",{},e);return this.eventsSubject.next(i),Promise.reject(i)}const o=e.access_token,r=e.id_token,a=e.session_state,c=e.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!o)return Promise.resolve(!1);if(this.requestAccessToken&&!t.disableOAuth2StateCheck&&!i)return Promise.resolve(!1);if(this.oidc&&!r)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!a&&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(n)){const t=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(t),Promise.reject(t)}return this.requestAccessToken&&this.storeAccessTokenResponse(o,null,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,c),this.oidc?this.processIdToken(r,o,t.disableNonceCheck).then(e=>t.validationHandler?t.validationHandler({accessToken:o,idClaims:e.idTokenClaims,idToken:e.idToken,state:i}).then(t=>e):e).then(e=>(this.storeIdToken(e),this.storeSessionState(a),this.clearHashAfterLogin&&!t.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(t),this.inImplicitFlow=!1,!0)).catch(t=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",t)),this.logger.error("Error validating tokens"),this.logger.error(t),Promise.reject(t))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!t.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(t),Promise.resolve(!0))}parseState(t){let e=t,i="";if(t){const n=t.indexOf(this.config.nonceStateSeparator);n>-1&&(e=t.substr(0,n),i=t.substr(n+this.config.nonceStateSeparator.length))}return[e,i]}validateNonce(t){let e;return e=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),e===t||(console.error("Validating access_token failed, wrong state/nonce.",e,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,e){t.onLoginError&&t.onLoginError(e),this.clearHashAfterLogin&&!t.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(t=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:t}processIdToken(t,e,i=!1){const n=t.split("."),s=b64DecodeUnicode(this.padBase64(n[0])),o=JSON.parse(s),r=b64DecodeUnicode(this.padBase64(n[1])),a=JSON.parse(r);let c;if(c=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(a.aud)){if(a.aud.every(t=>t!==this.clientId)){const t="Wrong audience: "+a.aud.join(",");return this.logger.warn(t),Promise.reject(t)}}else if(a.aud!==this.clientId){const t="Wrong audience: "+a.aud;return this.logger.warn(t),Promise.reject(t)}if(!a.sub){const t="No sub claim in id_token";return this.logger.warn(t),Promise.reject(t)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==a.sub){const t=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${a.sub}`;return this.logger.warn(t),Promise.reject(t)}if(!a.iat){const t="No iat claim in id_token";return this.logger.warn(t),Promise.reject(t)}if(!this.skipIssuerCheck&&a.iss!==this.issuer){const t="Wrong issuer: "+a.iss;return this.logger.warn(t),Promise.reject(t)}if(!i&&a.nonce!==c){const t="Wrong nonce: "+a.nonce;return this.logger.warn(t),Promise.reject(t)}if(!this.hasOwnProperty("responseType")||"code"!==this.responseType&&"id_token"!==this.responseType||(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!a.at_hash){const t="An at_hash is needed!";return this.logger.warn(t),Promise.reject(t)}const l=this.dateTimeService.now(),u=1e3*a.iat,h=1e3*a.exp,d=this.getClockSkewInMsec();if(u-d>=l||h+d<=l){const t="Token has expired";return console.error(t),console.error({now:l,issuedAtMSec:u,expiresAtMSec:h}),Promise.reject(t)}const p={accessToken:e,idToken:t,jwks:this.jwks,idTokenClaims:a,idTokenHeader:o,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(p).then(e=>({idToken:t,idTokenClaims:a,idTokenClaimsJson:r,idTokenHeader:o,idTokenHeaderJson:s,idTokenExpiresAt:h})):this.checkAtHash(p).then(e=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!e){const t="Wrong at_hash";return this.logger.warn(t),Promise.reject(t)}return this.checkSignature(p).then(e=>{const i={idToken:t,idTokenClaims:a,idTokenClaimsJson:r,idTokenHeader:o,idTokenHeaderJson:s,idTokenExpiresAt:h};return this.disableAtHashCheck?i:this.checkAtHash(p).then(t=>{if(this.requestAccessToken&&!t){const t="Wrong at_hash";return this.logger.warn(t),Promise.reject(t)}return i})})})}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"),e=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={},e=""){let i=!1;"boolean"==typeof t&&(i=t,t={});const n=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(t=>this._storage.removeItem(t)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl)return;if(i)return;if(!n&&!this.postLogoutRedirectUri)return;let s;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)s=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(n)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec});n&&(i=i.set("id_token_hint",n));const o=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";o&&(i=i.set("post_logout_redirect_uri",o),e&&(i=i.set("state",e)));for(let e in t)i=i.set(e,t[e]);s=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+i.toString()}this.config.openUri(s)}createAndSaveNonce(){const t=this;return this.createNonce().then(function(e){return t.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("nonce",e):t._storage.setItem("nonce",e),e})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const t=this.document.getElementById(this.silentRefreshIFrameName);t&&t.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const e=this.document.getElementById(this.sessionCheckIFrameName);e&&e.remove()}createNonce(){return new Promise(t=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let i=45,n="";const s="undefined"==typeof self?null:self.crypto||self.msCrypto;if(s){let t=new Uint8Array(i);s.getRandomValues(t),t.map||(t.map=Array.prototype.map),t=t.map(t=>e.charCodeAt(t%e.length)),n=String.fromCharCode.apply(null,t)}else for(;0"discovery_document_loaded"===t.type)).subscribe(i=>this.initCodeFlowInternal(t,e))}initCodeFlowInternal(t="",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 i={},n=null;"string"==typeof e?n=e:"object"==typeof e&&(i=e),this.createLoginUrl(t,n,null,!1,i).then(this.config.openUri).catch(t=>{console.error("Error in initAuthorizationCodeFlow"),console.error(t)})}createChallangeVerifierPairForPKCE(){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const t=yield this.createNonce();return[base64UrlEncode(yield this.crypto.calcHash(t,"sha-256")),t]})}extractRecognizedCustomParameters(t){let e=new Map;return this.config.customTokenParameters?(this.config.customTokenParameters.forEach(i=>{t[i]&&e.set(i,JSON.stringify(t[i]))}),e):e}revokeTokenAndLogout(t={},e=!1){let i=this.revocationEndpoint,n=this.getAccessToken(),s=this.getRefreshToken();if(!n)return;let o=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}),r=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);r=r.set("Authorization","Basic "+t)}if(this.useHttpBasicAuth||(o=o.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(o=o.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const a of Object.getOwnPropertyNames(this.customQueryParams))o=o.set(a,this.customQueryParams[a]);return new Promise((a,c)=>{let l,u;if(n){let t=o.set("token",n).set("token_type_hint","access_token");l=this.http.post(i,t,{headers:r})}else l=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null);if(s){let t=o.set("token",s).set("token_type_hint","refresh_token");u=this.http.post(i,t,{headers:r})}else u=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null);e&&(l=l.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>0===t.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(t))),u=u.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>0===t.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(t)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_16__.aj)([l,u]).subscribe(e=>{this.logOut(t),a(e),this.logger.info("Token successfully revoked")},t=>{this.logger.error("Error revoking token",t),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",t)),c(t)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return t.\u0275fac=function(e){return new(e||t)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_0__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_8__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_17__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DateTimeProvider))},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(t){return(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(t)}}let DefaultOAuthInterceptor=(()=>{class t{constructor(t,e,i){this.oAuthService=t,this.errorHandler=e,this.moduleConfig=i}checkUrl(t){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(t):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(e=>t.toLowerCase().startsWith(e.toLowerCase()))}intercept(t,e){const i=t.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(i)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_18__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>!!t)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>"token_received"===t.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_19__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.U)(t=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.zg)(i=>{if(i){const e=t.headers.set("Authorization","Bearer "+i);t=t.clone({headers:e})}return e.handle(t).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>this.errorHandler.handleError(t)))})):e.handle(t).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>this.errorHandler.handleError(t))):e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthModuleConfig,8))},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();class NullValidationHandler{validateSignature(t){return Promise.resolve(null)}validateAtHash(t){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return"undefined"!=typeof sessionStorage?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class t{static forRoot(e=null,i=NullValidationHandler){return{ngModule:t,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:i},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:e},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_8__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:t}),t.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_17__.ez]]}),t})();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_0__.OlP("AUTH_CONFIG")},82051:function(t,e){var i,n;void 0===(n="function"==typeof(i=function(){"use strict";function e(t,e,i){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){r(n.response,e,i)},n.onerror=function(){console.error("could not download file")},n.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function n(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,o=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),r=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(t,o,r){var a=s.URL||s.webkitURL,c=document.createElement("a");c.download=o=o||t.name||"download",c.rel="noopener","string"==typeof t?(c.href=t,c.origin===location.origin?n(c):i(c.href)?e(t,o,r):n(c,c.target="_blank")):(c.href=a.createObjectURL(t),setTimeout(function(){a.revokeObjectURL(c.href)},4e4),setTimeout(function(){n(c)},0))}:"msSaveOrOpenBlob"in navigator?function(t,s,o){if(s=s||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,o),s);else if(i(t))e(t,s,o);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){n(r)})}}:function(t,i,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return e(t,i,n);var a="application/octet-stream"===t.type,c=/constructor/i.test(s.HTMLElement)||s.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||a&&c||o)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var t=u.result;t=l?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},u.readAsDataURL(t)}else{var h=s.URL||s.webkitURL,d=h.createObjectURL(t);r?r.location=d:location.href=d,r=null,setTimeout(function(){h.revokeObjectURL(d)},4e4)}});s.saveAs=r.saveAs=r,t.exports=r})?i.apply(e,[]):i)||(t.exports=n)},30146:function(t,e,i){"use strict";i.d(e,{nu:function(){return H},Co:function(){return G}});var n=i(64762),s=i(31572),o=i(16073),r=i(71522),a=i(4786),c=i(66283),l=i(75842),u=i(78512),h=i(40878),d=i(31305),p=i(55959),g=i(44689),f=i(79996),m=i(56238),b=i(60509),_=i(25416),w=i(90611),A=i(43835),y=i(66599),v=i(15980),T=i(29236),C=i(43691),E=i(67806),S=i(36922),k=i(61511),I=i(4253),x=i(24621);const R=["searchSelectInput"],O=["innerSelectSearch"];function P(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-checkbox",9),s.NdJ("change",function(e){return s.CHM(t),s.oxw()._emitSelectAllBooleanToParent(e.checked)}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("color",null==t.matFormField?null:t.matFormField.color)("checked",t.toggleAllCheckboxChecked)("indeterminate",t.toggleAllCheckboxIndeterminate)("matTooltip",t.toggleAllCheckboxTooltipMessage)("matTooltipPosition",t.toogleAllCheckboxTooltipPosition)}}function D(t,e){1&t&&s._UZ(0,"mat-spinner",10)}function M(t,e){1&t&&s.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function L(t,e){1&t&&(s.TgZ(0,"mat-icon"),s._uU(1,"close"),s.qZA())}function N(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",11),s.NdJ("click",function(){return s.CHM(t),s.oxw()._reset(!0)}),s.YNc(1,M,1,0,"ng-content",12),s.YNc(2,L,2,0,"ng-template",null,13,s.W1O),s.qZA()}if(2&t){const t=s.MAs(3),e=s.oxw();s.xp6(1),s.Q6J("ngIf",e.clearIcon)("ngIfElse",t)}}function z(t,e){if(1&t&&(s.TgZ(0,"div",14),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.hij(" ",t.noEntriesFoundLabel,"\n")}}const Z=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]]],B=function(t,e){return{"mat-select-search-inner-multiple":t,"mat-select-search-inner-toggle-all":e}},q=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]"];let F=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","ngxMatSelectSearchClear",""]]}),t})();var U;let H=(()=>{let t=U=class{constructor(t,e,i,n=null,r,a=null){this.matSelect=t,this.changeDetectorRef=e,this._viewportRuler=i,this.matOption=n,this.liveAnnouncer=r,this.matFormField=a,this.placeholderLabel="Suche",this.type="text",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 s.vpe,this.onTouched=t=>{},this._options$=new u.X(null),this.optionsList$=this._options$.pipe((0,g.w)(t=>t?t.changes.pipe((0,f.U)(t=>t.toArray()),(0,m.O)(t.toArray())):(0,h.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,f.U)(t=>t?t.length:0)),this._formControl=new o.NI(""),this._showNoEntriesFound$=(0,d.aj)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,f.U)(([t,e])=>this.noEntriesFoundLabel&&t&&e===this.getOptionsLengthOffset())),this._onDestroy=new p.xQ}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(t){this._options$.next(t)}get _options(){return this._options$.getValue()}ngOnInit(){const t="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(t):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,t]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[t]=!0):this.matSelect.panelClass=t,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,b.g)(1),(0,_.R)(this._onDestroy)).subscribe(t=>{t?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,w.q)(1)).pipe((0,_.R)(this._onDestroy)).subscribe(()=>{this.matSelect._keyManager?this.matSelect._keyManager.change.pipe((0,_.R)(this._onDestroy)).subscribe(()=>this.adjustScrollTopToFitActiveOptionIntoView()):console.log("_keyManager was not initialized."),this._options=this.matSelect.options;let t=this._options.toArray()[this.getOptionsLengthOffset()];this._options.changes.pipe((0,_.R)(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const e=this._options.toArray(),i=e[this.getOptionsLengthOffset()],n=this.matSelect._keyManager;n&&this.matSelect.panelOpen&&(!!this.matSelect.compareWith(t,i)&&n.activeItem&&e.find(t=>this.matSelect.compareWith(t,n.activeItem))||n.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),t=i})})}),this._showNoEntriesFound$.pipe((0,_.R)(this._onDestroy)).subscribe(t=>{this.matOption&&(t?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,_.R)(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,_.R)(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(t){this.toggleAll.emit(t)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(t){(t.key&&1===t.key.length||t.keyCode>=l.A&&t.keyCode<=l.Z||t.keyCode>=l.xE&&t.keyCode<=l.aO||t.keyCode===l.L_||this.preventHomeEndKeyPropagation&&(t.keyCode===l.Sd||t.keyCode===l.uR))&&t.stopPropagation(),this.matSelect.multiple&&t.key&&t.keyCode===l.K5&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&t.keyCode===l.hY&&this.value&&(this._reset(!0),t.stopPropagation())}_handleKeyup(t){if(t.keyCode===l.LH||t.keyCode===l.JH){const t=this.matSelect._getAriaActiveDescendant(),e=this._options.toArray().findIndex(e=>e.id===t);if(-1!==e){const t=this._options.toArray()[e];this.liveAnnouncer.announce(t.viewValue+" "+this.getAriaIndex(e)+this.indexAndLengthScreenReaderText+this.getAriaLength())}}}getAriaIndex(t){return 0===this.getOptionsLengthOffset()?t+1:t}getAriaLength(){return this._options.toArray().length-this.getOptionsLengthOffset()}writeValue(t){this._lastExternalInputValue=t,this._formControl.setValue(t),this.changeDetectorRef.markForCheck()}onBlur(){this.onTouched()}registerOnChange(t){this._formControl.valueChanges.pipe((0,A.h)(t=>t!==this._lastExternalInputValue),(0,y.b)(()=>this._lastExternalInputValue=void 0),(0,_.R)(this._onDestroy)).subscribe(t)}registerOnTouched(t){this.onTouched=t}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const t=this.matSelect.panel.nativeElement,e=t.scrollTop;this.searchSelectInput.nativeElement.focus(),t.scrollTop=e}_reset(t){this._formControl.setValue(""),t&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,_.R)(this._onDestroy)).subscribe(t=>{let e=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){t&&Array.isArray(t)||(t=[]);const i=this.matSelect.options.map(t=>t.value);this.previousSelectedValues.forEach(n=>{t.some(t=>this.matSelect.compareWith(t,n))||i.some(t=>this.matSelect.compareWith(t,n))||(t.push(n),e=!0)})}this.previousSelectedValues=t,e&&this.matSelect._onChange(t)})):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 t=this.getMatOptionHeight(),e=this.matSelect._keyManager.activeItemIndex||0,i=(0,r.CB)(e,this.matSelect.options,this.matSelect.optionGroups),n=(this.matOption?-1:0)+i+e,s=this.matSelect.panel.nativeElement.scrollTop,o=this.innerSelectSearch.nativeElement.offsetHeight,a=Math.floor((256-o)/t),c=Math.round((s+o)/t)-1;c>=n?this.matSelect.panel.nativeElement.scrollTop=n*t:c+a<=n&&(this.matSelect.panel.nativeElement.scrollTop=(n+1)*t-(256-o))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let t,e=this.innerSelectSearch.nativeElement;for(;e=e.parentElement;)if(e.classList.contains("mat-select-panel")){t=e;break}t&&(this.innerSelectSearch.nativeElement.style.width=t.clientWidth+"px")}getMatOptionHeight(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}getOptionsLengthOffset(){return this.matOption?1:0}};return t.\u0275fac=function(e){return new(e||t)(s.Y36(a.gD),s.Y36(s.sBO),s.Y36(I.rL),s.Y36(r.ey,8),s.Y36(x.Kd),s.Y36(c.KE,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["ngx-mat-select-search"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,F,5),2&t){let t;s.iGM(t=s.CRH())&&(e.clearIcon=t.first)}},viewQuery:function(t,e){if(1&t&&(s.Gf(R,7,s.SBq),s.Gf(O,7,s.SBq)),2&t){let t;s.iGM(t=s.CRH())&&(e.searchSelectInput=t.first),s.iGM(t=s.CRH())&&(e.innerSelectSearch=t.first)}},hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-select-search-inside-mat-option",e.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",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:[s._Bn([{provide:o.JU,useExisting:(0,s.Gpc)(()=>U),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",""],[1,"mat-select-search-no-entries-found"]],template:function(t,e){1&t&&(s.F$t(Z),s._UZ(0,"input",0),s.TgZ(1,"div",1,2),s.YNc(3,P,1,5,"mat-checkbox",3),s.TgZ(4,"input",4,5),s.NdJ("keydown",function(t){return e._handleKeydown(t)})("keyup",function(t){return e._handleKeyup(t)})("blur",function(){return e.onBlur()}),s.qZA(),s.YNc(6,D,1,0,"mat-spinner",6),s.YNc(7,N,4,2,"button",7),s.Hsn(8),s.qZA(),s.YNc(9,z,2,1,"div",8),s.ALo(10,"async")),2&t&&(s.xp6(1),s.Q6J("ngClass",s.WLB(11,B,e.matSelect.multiple,e._isToggleAllCheckboxVisible())),s.xp6(2),s.Q6J("ngIf",e._isToggleAllCheckboxVisible()),s.xp6(1),s.Q6J("type",e.type)("formControl",e._formControl)("placeholder",e.placeholderLabel),s.uIk("aria-label",e.ariaLabel),s.xp6(2),s.Q6J("ngIf",e.searching),s.xp6(1),s.Q6J("ngIf",!e.hideClearSearchButton&&e.value&&!e.searching),s.xp6(2),s.Q6J("ngIf",s.lcZ(10,9,e._showNoEntriesFound$)))},directives:[k.mk,k.O5,o.Fj,o.JJ,o.oH,T.oG,S.gM,E.$g,v.lW,C.Hw],pipes:[k.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}),t=U=(0,n.gn)([(0,n.fM)(0,(0,s.tBr)(a.gD)),(0,n.fM)(3,(0,s.FiY)()),(0,n.fM)(3,(0,s.tBr)(r.ey)),(0,n.fM)(5,(0,s.FiY)()),(0,n.fM)(5,(0,s.tBr)(c.KE))],t),t})(),G=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[k.ez,o.UX,v.ot,T.p9,C.Ps,E.Cq,S.AV]]}),t})()},40963:function(t){"use strict";function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,i,n,s){n=n||"=";var o={};if("string"!=typeof t||0===t.length)return o;var r=/\+/g;t=t.split(i=i||"&");var a=1e3;s&&"number"==typeof s.maxKeys&&(a=s.maxKeys);var c=t.length;a>0&&c>a&&(c=a);for(var l=0;l=0?(u=g.substr(0,f),h=g.substr(f+1)):(u=g,h=""),d=decodeURIComponent(u),p=decodeURIComponent(h),e(o,d)?Array.isArray(o[d])?o[d].push(p):o[d]=[o[d],p]:o[d]=p}return o}},15341:function(t){"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,i,n,s){return i=i||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map(function(s){var o=encodeURIComponent(e(s))+n;return Array.isArray(t[s])?t[s].map(function(t){return o+encodeURIComponent(e(t))}).join(i):o+encodeURIComponent(e(t[s]))}).join(i):s?encodeURIComponent(e(s))+n+encodeURIComponent(e(t)):""}},96577:function(t,e,i){"use strict";i(40963),e.stringify=i(15341)},78512:function(t,e,i){"use strict";i.d(e,{X:function(){return o}});var n=i(55959),s=i(13895);class o extends n.xQ{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.N;return this._value}next(t){super.next(this._value=t)}}},99867:function(t,e,i){"use strict";i.d(e,{d:function(){return s}});var n=i(96673);class s extends n.L{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},3103:function(t,e,i){"use strict";i.d(e,{P:function(){return r}});var n=i(70653),s=i(40878),o=i(31225);let r=(()=>{class t{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return(0,s.of)(this.value);case"E":return(0,o._)(this.error);case"C":return(0,n.c)()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})()},48318:function(t,e,i){"use strict";i.d(e,{y:function(){return l}});var n=i(96673),s=i(55331),o=i(57498),r=i(56197),a=i(13392),c=i(51484);let l=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(t,e,i){const{operator:r}=this,a=function(t,e,i){if(t){if(t instanceof n.L)return t;if(t[s.b])return t[s.b]()}return t||e||i?new n.L(t,e,i):new n.L(o.c)}(t,e,i);if(a.add(r?r.call(a,this.source):this.source||c.v.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),c.v.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){c.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:i,isStopped:s}=t;if(e||s)return!1;t=i&&i instanceof n.L?i:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=u(e))((e,i)=>{let n;n=this.subscribe(e=>{try{t(e)}catch(s){i(s),n&&n.unsubscribe()}},i,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[r.L](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?a.y:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=u(t))((t,e)=>{let i;this.subscribe(t=>i=t,t=>e(t),()=>t(i))})}}return t.create=e=>new t(e),t})();function u(t){if(t||(t=c.v.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},57498:function(t,e,i){"use strict";i.d(e,{c:function(){return o}});var n=i(51484),s=i(14294);const o={closed:!0,next(t){},error(t){if(n.v.useDeprecatedSynchronousErrorHandling)throw t;(0,s.z)(t)},complete(){}}},59829:function(t,e,i){"use strict";i.d(e,{L:function(){return s}});var n=i(96673);class s extends n.L{notifyNext(t,e,i,n,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}},66994:function(t,e,i){"use strict";i.d(e,{t:function(){return m}});var n=i(55959),s=i(8277);class o extends s.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}var r=i(91098);class a extends r.v{}const c=new a(o);var l=i(87570),u=i(96673),h=i(3103);class d extends u.L{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(d.dispatch,this.delay,new p(t,this.destination)))}_next(t){this.scheduleMessage(h.P.createNext(t))}_error(t){this.scheduleMessage(h.P.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(h.P.createComplete()),this.unsubscribe()}}class p{constructor(t,e){this.notification=t,this.destination=e}}var g=i(13895),f=i(19291);class m extends n.xQ{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new b(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),n=this.scheduler,s=i.length;let o;if(this.closed)throw new g.N;if(this.isStopped||this.hasError?o=l.w.EMPTY:(this.observers.push(t),o=new f.W(this,t)),n&&t.add(t=new d(t,n)),e)for(let r=0;re&&(o=Math.max(o,s-e)),o>0&&n.splice(0,o),n}}class b{constructor(t,e){this.time=t,this.value=e}}},55959:function(t,e,i){"use strict";i.d(e,{Yc:function(){return l},xQ:function(){return u}});var n=i(48318),s=i(96673),o=i(87570),r=i(13895),a=i(19291),c=i(55331);class l extends s.L{constructor(t){super(t),this.destination=t}}let u=(()=>{class t extends n.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[c.b](){return new l(this)}lift(t){const e=new h(this,this);return e.operator=t,e}next(t){if(this.closed)throw new r.N;if(!this.isStopped){const{observers:e}=this,i=e.length,n=e.slice();for(let s=0;snew h(t,e),t})();class h extends u{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):o.w.EMPTY}}},19291:function(t,e,i){"use strict";i.d(e,{W:function(){return s}});var n=i(87570);class s extends n.w{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}},96673:function(t,e,i){"use strict";i.d(e,{L:function(){return l}});var n=i(85024),s=i(57498),o=i(87570),r=i(55331),a=i(51484),c=i(14294);class l extends o.w{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.c;break;case 1:if(!t){this.destination=s.c;break}if("object"==typeof t){t instanceof l?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,t,e,i)}}[r.b](){return this}static create(t,e,i){const n=new l(t,e,i);return n.syncErrorThrowable=!1,n}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class u extends l{constructor(t,e,i,o){let r;super(),this._parentSubscriber=t;let a=this;(0,n.m)(e)?r=e:e&&(r=e.next,i=e.error,o=e.complete,e!==s.c&&(a=Object.create(e),(0,n.m)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=r,this._error=i,this._complete=o}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=a.v;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):(0,c.z)(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;(0,c.z)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),a.v.useDeprecatedSynchronousErrorHandling)throw i;(0,c.z)(i)}}__tryOrSetError(t,e,i){if(!a.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(n){return a.v.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=n,t.syncErrorThrown=!0,!0):((0,c.z)(n),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},87570:function(t,e,i){"use strict";i.d(e,{w:function(){return a}});var n=i(98470),s=i(82056),o=i(85024);const r=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let a=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:i,_unsubscribe:a,_subscriptions:l}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof t)i.remove(this);else if(null!==i)for(let t=0;tt.concat(e instanceof r?e.errors:e),[])}},51484:function(t,e,i){"use strict";i.d(e,{v:function(){return s}});let n=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else n&&console.log("RxJS: Back to a better error behavior. Thank you. <3");n=t},get useDeprecatedSynchronousErrorHandling(){return n}}},42875:function(t,e,i){"use strict";i.d(e,{c:function(){return a},N:function(){return c}});var n=i(55959),s=i(48318),o=i(87570),r=i(21564);class a extends s.y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new o.w,t.add(this.source.subscribe(new l(this.getSubject(),this))),t.closed&&(this._connection=null,t=o.w.EMPTY)),t}refCount(){return(0,r.x)()(this)}}const c=(()=>{const t=a.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class l extends n.Yc{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}},31305:function(t,e,i){"use strict";i.d(e,{aj:function(){return l}});var n=i(76163),s=i(98470),o=i(59829),r=i(6268),a=i(99342);const c={};function l(...t){let e=null,i=null;return(0,n.K)(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&(0,s.k)(t[0])&&(t=t[0]),(0,a.n)(t,i).lift(new u(e))}class u{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new h(t,this.resultSelector))}}class h extends o.L{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(c),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i{let i;try{i=t()}catch(n){return void e.error(n)}return(i?(0,s.D)(i):(0,o.c)()).subscribe(e)})}},70653:function(t,e,i){"use strict";i.d(e,{E:function(){return s},c:function(){return o}});var n=i(48318);const s=new n.y(t=>t.complete());function o(t){return t?function(t){return new n.y(e=>t.schedule(()=>e.complete()))}(t):s}},3148:function(t,e,i){"use strict";i.d(e,{D:function(){return c}});var n=i(48318),s=i(98470),o=i(79996),r=i(82056),a=i(19764);function c(...t){if(1===t.length){const e=t[0];if((0,s.k)(e))return l(e,null);if((0,r.K)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return l(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return l(t=1===t.length&&(0,s.k)(t[0])?t[0]:t,null).pipe((0,o.U)(t=>e(...t)))}return l(t,null)}function l(t,e){return new n.y(i=>{const n=t.length;if(0===n)return void i.complete();const s=new Array(n);let o=0,r=0;for(let c=0;c{u||(u=!0,r++),s[c]=t},error:t=>i.error(t),complete:()=>{o++,o!==n&&u||(r===n&&i.next(e?e.reduce((t,e,i)=>(t[e]=s[i],t),{}):s),i.complete())}}))}})}},19764:function(t,e,i){"use strict";i.d(e,{D:function(){return h}});var n=i(48318),s=i(16015),o=i(87570),r=i(56197),a=i(62570),c=i(25686),l=i(5168),u=i(59653);function h(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[r.L]}(t))return function(t,e){return new n.y(i=>{const n=new o.w;return n.add(e.schedule(()=>{const s=t[r.L]();n.add(s.subscribe({next(t){n.add(e.schedule(()=>i.next(t)))},error(t){n.add(e.schedule(()=>i.error(t)))},complete(){n.add(e.schedule(()=>i.complete()))}}))})),n})}(t,e);if((0,l.t)(t))return function(t,e){return new n.y(i=>{const n=new o.w;return n.add(e.schedule(()=>t.then(t=>{n.add(e.schedule(()=>{i.next(t),n.add(e.schedule(()=>i.complete()))}))},t=>{n.add(e.schedule(()=>i.error(t)))}))),n})}(t,e);if((0,u.z)(t))return(0,a.r)(t,e);if(function(t){return t&&"function"==typeof t[c.hZ]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new n.y(i=>{const n=new o.w;let s;return n.add(()=>{s&&"function"==typeof s.return&&s.return()}),n.add(e.schedule(()=>{s=t[c.hZ](),n.add(e.schedule(function(){if(i.closed)return;let t,e;try{const i=s.next();t=i.value,e=i.done}catch(n){return void i.error(n)}e?i.complete():(i.next(t),this.schedule())}))})),n})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof n.y?t:new n.y((0,s.s)(t))}},99342:function(t,e,i){"use strict";i.d(e,{n:function(){return r}});var n=i(48318),s=i(30625),o=i(62570);function r(t,e){return e?(0,o.r)(t,e):new n.y((0,s.V)(t))}},87254:function(t,e,i){"use strict";i.d(e,{R:function(){return a}});var n=i(48318),s=i(98470),o=i(85024),r=i(79996);function a(t,e,i,l){return(0,o.m)(i)&&(l=i,i=void 0),l?a(t,e,i).pipe((0,r.U)(t=>(0,s.k)(t)?l(...t):l(t))):new n.y(n=>{c(t,e,function(t){n.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},n,i)})}function c(t,e,i,n,s){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const n=t;t.addEventListener(e,i,s),o=()=>n.removeEventListener(e,i,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const n=t;t.on(e,i),o=()=>n.off(e,i)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const n=t;t.addListener(e,i),o=()=>n.removeListener(e,i)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,r=t.length;o(i.add(e.schedule(a,t,{subscriber:i,counter:0,period:t})),i))}function a(t){const{subscriber:e,counter:i,period:n}=t;e.next(i),this.schedule({subscriber:e,counter:i+1,period:n},n)}},31906:function(t,e,i){"use strict";i.d(e,{T:function(){return a}});var n=i(48318),s=i(76163),o=i(97471),r=i(99342);function a(...t){let e=Number.POSITIVE_INFINITY,i=null,a=t[t.length-1];return(0,s.K)(a)?(i=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===i&&1===t.length&&t[0]instanceof n.y?t[0]:(0,o.J)(e)((0,r.n)(t,i))}},40878:function(t,e,i){"use strict";i.d(e,{of:function(){return r}});var n=i(76163),s=i(99342),o=i(62570);function r(...t){let e=t[t.length-1];return(0,n.K)(e)?(t.pop(),(0,o.r)(t,e)):(0,s.n)(t)}},3875:function(t,e,i){"use strict";i.d(e,{S3:function(){return a}});var n=i(98470),s=i(99342),o=i(59829),r=i(6268);function a(...t){if(1===t.length){if(!(0,n.k)(t[0]))return t[0];t=t[0]}return(0,s.n)(t,void 0).lift(new c)}class c{call(t,e){return e.subscribe(new l(t))}}class l extends o.L{constructor(t){super(t),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(t){this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(let i=0;ie.schedule(o,0,{error:t,subscriber:i}):e=>e.error(t))}function o({error:t,subscriber:e}){e.error(t)}},81110:function(t,e,i){"use strict";i.d(e,{H:function(){return a}});var n=i(48318),s=i(48569),o=i(62293),r=i(76163);function a(t=0,e,i){let a=-1;return(0,o.k)(e)?a=Number(e)<1?1:Number(e):(0,r.K)(e)&&(i=e),(0,r.K)(i)||(i=s.P),new n.y(e=>{const n=(0,o.k)(t)?t:+t-i.now();return i.schedule(c,n,{index:0,period:a,subscriber:e})})}function c(t){const{index:e,period:i,subscriber:n}=t;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}}},30810:function(t,e,i){"use strict";i.d(e,{e:function(){return l}});var n=i(48569),s=i(59829),o=i(6268);class r{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new a(t,this.durationSelector))}}class a extends s.L{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let i;try{const{durationSelector:e}=this;i=e(t)}catch(e){return this.destination.error(e)}const n=(0,o.D)(this,i);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=null,i.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,i,n){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var c=i(81110);function l(t,e=n.P){return i=()=>(0,c.H)(t,e),function(t){return t.lift(new r(i))};var i}},47727:function(t,e,i){"use strict";i.d(e,{K:function(){return r}});var n=i(59829),s=i(99867),o=i(6268);function r(t){return function(e){const i=new a(t),n=e.lift(i);return i.caught=n}}class a{constructor(t){this.selector=t}call(t,e){return e.subscribe(new c(t,this.selector,this.caught))}}class c extends n.L{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let i;try{i=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const n=new s.d(this,void 0,void 0);this.add(n);const r=(0,o.D)(this,i,void 0,void 0,n);r!==n&&this.add(r)}}}},436:function(t,e,i){"use strict";i.d(e,{b:function(){return s}});var n=i(73982);function s(t,e){return(0,n.zg)(t,e,1)}},47701:function(t,e,i){"use strict";i.d(e,{b:function(){return o}});var n=i(96673),s=i(48569);function o(t,e=s.P){return i=>i.lift(new r(t,e))}class r{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))}}class a extends n.L{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function c(t){t.debouncedNext()}},7768:function(t,e,i){"use strict";i.d(e,{d:function(){return s}});var n=i(96673);function s(t=null){return e=>e.lift(new o(t))}class o{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new r(t,this.defaultValue))}}class r extends n.L{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},60509:function(t,e,i){"use strict";i.d(e,{g:function(){return a}});var n=i(48569),s=i(38802),o=i(96673),r=i(3103);function a(t,e=n.P){const i=(0,s.J)(t)?+t-e.now():Math.abs(t);return t=>t.lift(new c(i,e))}class c{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new l(t,this.delay,this.scheduler))}}class l extends o.L{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,n=t.scheduler,s=t.destination;for(;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const e=Math.max(0,i[0].time-n.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(l.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new u(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(r.P.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(r.P.createComplete()),this.unsubscribe()}}class u{constructor(t,e){this.time=t,this.notification=e}}},98720:function(t,e,i){"use strict";i.d(e,{x:function(){return s}});var n=i(96673);function s(t,e){return i=>i.lift(new o(t,e))}class o{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new r(t,this.compare,this.keySelector))}}class r extends n.L{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:i}=this;e=i?i(t):t}catch(n){return this.destination.error(n)}let i=!1;if(this.hasKey)try{const{compare:t}=this;i=t(this.key,e)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}},43835:function(t,e,i){"use strict";i.d(e,{h:function(){return s}});var n=i(96673);function s(t,e){return function(i){return i.lift(new o(t,e))}}class o{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new r(t,this.predicate,this.thisArg))}}class r extends n.L{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}},11520:function(t,e,i){"use strict";i.d(e,{x:function(){return o}});var n=i(96673),s=i(87570);function o(t){return e=>e.lift(new r(t))}class r{constructor(t){this.callback=t}call(t,e){return e.subscribe(new a(t,this.callback))}}class a extends n.L{constructor(t,e){super(t),this.add(new s.w(e))}}},3530:function(t,e,i){"use strict";i.d(e,{P:function(){return l}});var n=i(39665),s=i(43835),o=i(90611),r=i(7768),a=i(90790),c=i(13392);function l(t,e){const i=arguments.length>=2;return l=>l.pipe(t?(0,s.h)((e,i)=>t(e,i,l)):c.y,(0,o.q)(1),i?(0,r.d)(e):(0,a.T)(()=>new n.K))}},79996:function(t,e,i){"use strict";i.d(e,{U:function(){return s}});var n=i(96673);function s(t,e){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new o(t,e))}}class o{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new r(t,this.project,this.thisArg))}}class r extends n.L{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}},88414:function(t,e,i){"use strict";i.d(e,{h:function(){return s}});var n=i(96673);function s(t){return e=>e.lift(new o(t))}class o{constructor(t){this.value=t}call(t,e){return e.subscribe(new r(t,this.value))}}class r extends n.L{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}},97471:function(t,e,i){"use strict";i.d(e,{J:function(){return o}});var n=i(73982),s=i(13392);function o(t=Number.POSITIVE_INFINITY){return(0,n.zg)(s.y,t)}},73982:function(t,e,i){"use strict";i.d(e,{zg:function(){return c}});var n=i(6268),s=i(59829),o=i(99867),r=i(79996),a=i(19764);function c(t,e,i=Number.POSITIVE_INFINITY){return"function"==typeof e?n=>n.pipe(c((i,n)=>(0,a.D)(t(i,n)).pipe((0,r.U)((t,s)=>e(i,t,n,s))),i)):("number"==typeof e&&(i=e),e=>e.lift(new l(t,i)))}class l{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new u(t,this.project,this.concurrent))}}class u extends s.L{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},21564:function(t,e,i){"use strict";i.d(e,{x:function(){return s}});var n=i(96673);function s(){return function(t){return t.lift(new o(t))}}class o{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const n=new r(t,i),s=e.subscribe(n);return n.closed||(n.connection=i.connect()),s}}class r extends n.L{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,n=t._connection;this.connection=null,!n||i&&n!==i||n.unsubscribe()}}},1055:function(t,e,i){"use strict";i.d(e,{B:function(){return a}});var n=i(42875),s=i(21564),o=i(55959);function r(){return new o.xQ}function a(){return t=>{return(0,s.x)()((e=r,function(t){let i;i="function"==typeof e?e:function(){return e};const s=Object.create(t,n.N);return s.source=t,s.subjectFactory=i,s})(t));var e}}},68303:function(t,e,i){"use strict";i.d(e,{d:function(){return s}});var n=i(66994);function s(t,e,i){let s;return s=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:i},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:i,scheduler:s}){let o,r,a=0,c=!1,l=!1;return function(u){a++,o&&!c||(c=!1,o=new n.t(t,e,s),r=u.subscribe({next(t){o.next(t)},error(t){c=!0,o.error(t)},complete(){l=!0,r=void 0,o.complete()}}));const h=o.subscribe(this);this.add(()=>{a--,h.unsubscribe(),r&&!l&&i&&0===a&&(r.unsubscribe(),r=void 0,o=void 0)})}}(s))}},56238:function(t,e,i){"use strict";i.d(e,{O:function(){return o}});var n=i(47930),s=i(76163);function o(...t){const e=t[t.length-1];return(0,s.K)(e)?(t.pop(),i=>(0,n.z)(t,i,e)):e=>(0,n.z)(t,e)}},44689:function(t,e,i){"use strict";i.d(e,{w:function(){return c}});var n=i(59829),s=i(99867),o=i(6268),r=i(79996),a=i(19764);function c(t,e){return"function"==typeof e?i=>i.pipe(c((i,n)=>(0,a.D)(t(i,n)).pipe((0,r.U)((t,s)=>e(i,t,n,s))))):e=>e.lift(new l(t))}class l{constructor(t){this.project=t}call(t,e){return e.subscribe(new u(t,this.project))}}class u extends n.L{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(n){return void this.destination.error(n)}this._innerSub(e,t,i)}_innerSub(t,e,i){const n=this.innerSubscription;n&&n.unsubscribe();const r=new s.d(this,e,i),a=this.destination;a.add(r),this.innerSubscription=(0,o.D)(this,t,void 0,void 0,r),this.innerSubscription!==r&&a.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,i,n,s){this.destination.next(e)}}},90611:function(t,e,i){"use strict";i.d(e,{q:function(){return r}});var n=i(96673),s=i(98402),o=i(70653);function r(t){return e=>0===t?(0,o.c)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new s.W}call(t,e){return e.subscribe(new c(t,this.total))}}class c extends n.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}},25416:function(t,e,i){"use strict";i.d(e,{R:function(){return o}});var n=i(59829),s=i(6268);function o(t){return e=>e.lift(new r(t))}class r{constructor(t){this.notifier=t}call(t,e){const i=new a(t),n=(0,s.D)(i,this.notifier);return n&&!i.seenValue?(i.add(n),e.subscribe(i)):i}}class a extends n.L{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,i,n,s){this.seenValue=!0,this.complete()}notifyComplete(){}}},66599:function(t,e,i){"use strict";i.d(e,{b:function(){return r}});var n=i(96673);function s(){}var o=i(85024);function r(t,e,i){return function(n){return n.lift(new a(t,e,i))}}class a{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new c(t,this.nextOrObserver,this.error,this.complete))}}class c extends n.L{constructor(t,e,i,n){super(t),this._tapNext=s,this._tapError=s,this._tapComplete=s,this._tapError=i||s,this._tapComplete=n||s,(0,o.m)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||s,this._tapError=e.error||s,this._tapComplete=e.complete||s)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},90790:function(t,e,i){"use strict";i.d(e,{T:function(){return o}});var n=i(39665),s=i(96673);function o(t=c){return e=>e.lift(new r(t))}class r{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new a(t,this.errorFactory))}}class a extends s.L{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function c(){return new n.K}},29085:function(t,e,i){"use strict";i.d(e,{V:function(){return h}});var n=i(48569);const s=(()=>{function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t})();var o=i(38802),r=i(59829),a=i(6268);class c{constructor(t,e,i,n){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=i,this.scheduler=n}call(t,e){return e.subscribe(new l(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class l extends r.L{constructor(t,e,i,n,s){super(t),this.absoluteTimeout=e,this.waitFor=i,this.withObservable=n,this.scheduler=s,this.action=null,this.scheduleTimeout()}static dispatchTimeout(t){const{withObservable:e}=t;t._unsubscribeAndRecycle(),t.add((0,a.D)(t,e))}scheduleTimeout(){const{action:t}=this;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(l.dispatchTimeout,this.waitFor,this))}_next(t){this.absoluteTimeout||this.scheduleTimeout(),super._next(t)}_unsubscribe(){this.action=null,this.scheduler=null,this.withObservable=null}}var u=i(31225);function h(t,e=n.P){return function(t,e,i=n.P){return n=>{let s=(0,o.J)(t),r=s?+t-i.now():Math.abs(t);return n.lift(new c(r,s,e,i))}}(t,(0,u._)(new s),e)}},62570:function(t,e,i){"use strict";i.d(e,{r:function(){return o}});var n=i(48318),s=i(87570);function o(t,e){return new n.y(i=>{const n=new s.w;let o=0;return n.add(e.schedule(function(){o!==t.length?(i.next(t[o++]),i.closed||n.add(this.schedule())):i.complete()})),n})}},8277:function(t,e,i){"use strict";i.d(e,{o:function(){return o}});var n=i(87570);class s extends n.w{constructor(t,e){super()}schedule(t,e=0){return this}}class o extends s{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 i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let i,n=!1;try{this.work(t)}catch(s){n=!0,i=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},91098:function(t,e,i){"use strict";i.d(e,{v:function(){return s}});let n=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(t,e=0,i){return new this.SchedulerAction(this,t).schedule(i,e)}}return t.now=()=>Date.now(),t})();class s extends n{constructor(t,e=n.now){super(t,()=>s.delegate&&s.delegate!==this?s.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return s.delegate&&s.delegate!==this?s.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}},91741:function(t,e,i){"use strict";i.d(e,{r:function(){return a}});var n=i(8277);class s extends n.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}var o=i(91098);class r extends o.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++nPromise.resolve())(),o={};function r(t){return t in o&&(delete o[t],!0)}const a={setImmediate(t){const e=n++;return o[e]=!0,s.then(()=>r(e)&&t()),e},clearImmediate(t){r(t)}};var c=i(8277);class l extends c.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=a.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(a.clearImmediate(e),t.scheduled=void 0)}}var u=i(91098);class h extends u.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++n"function"==typeof Symbol&&Symbol.observable||"@@observable")()},55331:function(t,e,i){"use strict";i.d(e,{b:function(){return n}});const n=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},98402:function(t,e,i){"use strict";i.d(e,{W:function(){return n}});const n=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},39665:function(t,e,i){"use strict";i.d(e,{K:function(){return n}});const n=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})()},13895:function(t,e,i){"use strict";i.d(e,{N:function(){return n}});const n=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},14294:function(t,e,i){"use strict";function n(t){setTimeout(()=>{throw t},0)}i.d(e,{z:function(){return n}})},13392:function(t,e,i){"use strict";function n(t){return t}i.d(e,{y:function(){return n}})},98470:function(t,e,i){"use strict";i.d(e,{k:function(){return n}});const n=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))()},59653:function(t,e,i){"use strict";i.d(e,{z:function(){return n}});const n=t=>t&&"number"==typeof t.length&&"function"!=typeof t},38802:function(t,e,i){"use strict";function n(t){return t instanceof Date&&!isNaN(+t)}i.d(e,{J:function(){return n}})},85024:function(t,e,i){"use strict";function n(t){return"function"==typeof t}i.d(e,{m:function(){return n}})},62293:function(t,e,i){"use strict";i.d(e,{k:function(){return s}});var n=i(98470);function s(t){return!(0,n.k)(t)&&t-parseFloat(t)+1>=0}},82056:function(t,e,i){"use strict";function n(t){return null!==t&&"object"==typeof t}i.d(e,{K:function(){return n}})},4710:function(t,e,i){"use strict";i.d(e,{b:function(){return s}});var n=i(48318);function s(t){return!!t&&(t instanceof n.y||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},5168:function(t,e,i){"use strict";function n(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}i.d(e,{t:function(){return n}})},76163:function(t,e,i){"use strict";function n(t){return t&&"function"==typeof t.schedule}i.d(e,{K:function(){return n}})},16015:function(t,e,i){"use strict";i.d(e,{s:function(){return u}});var n=i(30625),s=i(14294),o=i(25686),r=i(56197),a=i(59653),c=i(5168),l=i(82056);const u=t=>{if(t&&"function"==typeof t[r.L])return u=t,t=>{const e=u[r.L]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if((0,a.z)(t))return(0,n.V)(t);if((0,c.t)(t))return i=t,t=>(i.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,s.z),t);if(t&&"function"==typeof t[o.hZ])return e=t,t=>{const i=e[o.hZ]();for(;;){const e=i.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof i.return&&t.add(()=>{i.return&&i.return()}),t};{const e=(0,l.K)(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,i,u}},30625:function(t,e,i){"use strict";i.d(e,{V:function(){return n}});const n=t=>e=>{for(let i=0,n=t.length;i=0;a--)(s=t[a])&&(r=(o<3?s(r):o>3?s(e,i,r):s(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r}function s(t,e){return function(i,n){e(i,n,t)}}function o(t,e,i,n){return new(i||(i=Promise))(function(s,o){function r(t){try{c(n.next(t))}catch(e){o(e)}}function a(t){try{c(n.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(r,a)}c((n=n.apply(t,e||[])).next())})}i.d(e,{gn:function(){return n},fM:function(){return s},mG:function(){return o}})},60306:function(t){"use strict";t.exports={i8:"5.2.0"}}},function(t){"use strict";t(t.s=73868)}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/main-es2015.ded48bb90bba60081f0f.js b/dist/apps/admin-gui/main-es2015.ded48bb90bba60081f0f.js new file mode 100644 index 000000000..d1de88f5f --- /dev/null +++ b/dist/apps/admin-gui/main-es2015.ded48bb90bba60081f0f.js @@ -0,0 +1 @@ +(self.webpackChunkperun_web_apps=self.webpackChunkperun_web_apps||[]).push([[179],{27622:function(t){function e(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=function(){return[]},e.resolve=e,e.id=27622,t.exports=e},71313:function(t,e,i){"use strict";i.d(e,{t:function(){return d}});var n=i(60611),s=i(67004),o=i(68416),r=i(31572),a=i(91058),c=i(29236),l=i(16247),u=i(48160);const h=function(){return["user","id","name","email","logins","organization"]};let d=(()=>{class t{constructor(t){this.storeService=t,this.usersWithoutVo=!1,this.tableId=n.xx,this.attributes=[]}ngOnInit(){this.attributes=[s.r.USER_DEF_ORGANIZATION,s.r.USER_DEF_PREFERRED_MAIL],this.attributes=this.attributes.concat(this.storeService.getLoginAttributeNames())}onSearchByString(t){this.searchString=t}findUsersWithoutVO(){this.usersWithoutVo=!this.usersWithoutVo}}return t.id="AdminUsersComponent",t.\u0275fac=function(e){return new(e||t)(r.Y36(o.d6))},t.\u0275cmp=r.Xpm({type:t,selectors:[["app-admin-users"]],hostVars:2,hostBindings:function(t,e){2&t&&r.ekj("router-component",e.true)},decls:8,vars:15,consts:[[1,"page-subtitle"],[1,"mt-2","search-field",3,"placeholder","filter"],["color","primary",3,"checked","change"],[3,"disableRouting","searchString","withoutVo","displayedColumns","tableId","attrNames"]],template:function(t,e){1&t&&(r.TgZ(0,"h1",0),r._uU(1),r.ALo(2,"translate"),r.qZA(),r.TgZ(3,"perun-web-apps-debounce-filter",1),r.NdJ("filter",function(t){return e.onSearchByString(t)}),r.qZA(),r.TgZ(4,"mat-checkbox",2),r.NdJ("change",function(){return e.findUsersWithoutVO()}),r._uU(5),r.ALo(6,"translate"),r.qZA(),r._UZ(7,"perun-web-apps-users-dynamic-list",3)),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,10,"ADMIN.USERS.TITLE")),r.xp6(2),r.Q6J("placeholder","ADMIN.USERS.SEARCH_PLACEHOLDER"),r.xp6(1),r.Q6J("checked",e.usersWithoutVo),r.xp6(1),r.hij(" ",r.lcZ(6,12,"ADMIN.USERS.USERS_WITHOUT_VO"),"\n"),r.xp6(2),r.Q6J("disableRouting",!1)("searchString",e.searchString)("withoutVo",e.usersWithoutVo)("displayedColumns",r.DdM(14,h))("tableId",e.tableId)("attrNames",e.attributes))},directives:[a.P,c.oG,l.M],pipes:[u.X$],styles:[".search-field[_ngcontent-%COMP%]{width:325px}"]}),t})()},61601:function(t,e,i){"use strict";i.d(e,{y:function(){return E}});var n=i(68416),s=i(38289),o=i(29063),r=i(84140),a=i(31572),c=i(84608),l=i(15980),u=i(48160);let h=(()=>{class t{constructor(t){this.dialogRef=t}onReload(){location.reload()}onClose(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(c.so))},t.\u0275cmp=a.Xpm({type:t,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"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"]],template:function(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.TgZ(4,"div",2),a.TgZ(5,"p"),a._uU(6),a.ALo(7,"translate"),a.qZA(),a.qZA(),a.TgZ(8,"div",3),a.TgZ(9,"button",4),a.NdJ("click",function(){return e.onClose()}),a._uU(10),a.ALo(11,"translate"),a.qZA(),a.TgZ(12,"button",5),a.NdJ("click",function(){return e.onReload()}),a._uU(13),a.ALo(14,"translate"),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,4,"DIALOGS.NEW_VERSION.TITLE")),a.xp6(5),a.hij(" ",a.lcZ(7,6,"DIALOGS.NEW_VERSION.DESCRIPTION")," "),a.xp6(4),a.hij(" ",a.lcZ(11,8,"DIALOGS.NEW_VERSION.LATER")," "),a.xp6(3),a.hij(" ",a.lcZ(14,10,"DIALOGS.NEW_VERSION.RELOAD")," "))},directives:[c.uh,c.xY,c.H8,l.lW],pipes:[u.X$],styles:[""]}),t})();var d=i(57629),p=i(43835);let g=(()=>{class t{constructor(t,e){this.router=t,this.routeReuseStrategy=e;const i=e;t.events.subscribe(t=>{t instanceof d.OD&&i.setLastNavigationType("popstate"===t.navigationTrigger?"back":"direct")})}init(){}}return t.\u0275fac=function(e){return new(e||t)(a.LFG(d.F0),a.LFG(d.wN))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const f=["footer"];function m(t,e){if(1&t&&(a.TgZ(0,"div",3),a.TgZ(1,"mat-icon"),a._uU(2,"alert"),a.qZA(),a._uU(3),a.qZA()),2&t){const t=a.oxw();a.xp6(3),a.hij(" ",t.warningMessage,"\n")}}const b=function(t,e){return{top:t,background:e}},_=function(t,e){return{"margin-top":t,"min-height":e}},w=function(t){return{"border-color":t}},A=function(t){return{background:t}},y=function(t){return{"background-color":t}},v=function(t){return{"min-height":t}};function T(t,e){if(1&t&&(a._UZ(0,"app-perun-nav-menu",4),a.TgZ(1,"mat-sidenav-container",5),a.TgZ(2,"mat-sidenav",6,7),a.TgZ(4,"perfect-scrollbar",8),a._UZ(5,"app-side-menu",9),a.qZA(),a.qZA(),a.TgZ(6,"mat-sidenav-content",10),a.TgZ(7,"div",11),a._UZ(8,"router-outlet"),a.qZA(),a.TgZ(9,"div",null,12),a._UZ(11,"perun-web-apps-footer"),a.qZA(),a.qZA(),a.qZA()),2&t){const t=a.MAs(3),e=a.oxw();a.Q6J("ngStyle",a.WLB(14,b,e.getNavMenuTop(),e.navBackgroundColor))("sideNav",t)("principal",e.principal),a.xp6(1),a.Q6J("ngStyle",a.WLB(17,_,e.getSideNavMarginTop(),e.getSideNavMinHeight())),a.xp6(1),a.Q6J("ngStyle",a.VKq(20,w,e.sideBarBorderColor))("mode",e.sidebarMode)("opened",!e.isMobile())("fixedInViewport",!0)("fixedTopGap",e.getTopGap()),a.xp6(2),a.Q6J("ngStyle",a.VKq(22,A,e.sideMenubackgroundColor))("scrollIndicators",!0),a.xp6(1),a.Q6J("sideNav",t),a.xp6(1),a.Q6J("ngStyle",a.VKq(24,y,e.contentBackgroundColor)),a.xp6(1),a.Q6J("ngStyle",a.VKq(26,v,e.contentInnerMinHeight))}}function C(t,e){1&t&&a._UZ(0,"perun-web-apps-login-screen-base",13),2&t&&a.Q6J("application","admin-gui")}let E=(()=>{class t{constructor(t,e,n,s,o,r,a){this.cache=t,this.store=e,this.http=n,this.dialog=s,this.router=o,this.initAuth=r,this.cd=a,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=i(60306).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<=t.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,s.F)(3e4).subscribe(()=>{this.loadAppVersion()}),this.router.events.pipe((0,p.h)(t=>t instanceof d.OD)).subscribe(t=>{this.updateInitAccessedPage(t)})}updateInitAccessedPage(t){t.url===sessionStorage.getItem("initPage")?("imperative"===t.navigationTrigger&&t.id!==this.store.getInitialPageId()&&sessionStorage.setItem("onInitPage","false"),"popstate"===t.navigationTrigger&&(t.restoredState.navigationId===this.store.getInitialPageId()?(sessionStorage.setItem("onInitPage","true"),this.store.setInitialPageId(t.id)):sessionStorage.setItem("onInitPage","false"))):sessionStorage.setItem("onInitPage","false")}loadAppVersion(){const t=new o.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:t}).subscribe(t=>{const e=t.version;if(e)if(this.version&&"SNAPSHOT"!==e&&this.version!==e){const t=(0,r.kZ)();this.dialog.open(h,t)}else this.version=e},()=>{})}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(){this.contentInnerMinHeight=this.displayWarning?"calc(100vh - "+this.footer.nativeElement.offsetHeight+"px - 112px)":"calc(100vh - "+this.footer.nativeElement.offsetHeight+"px - 64px)",this.cd.detectChanges()}}return t.minWidth=992,t.\u0275fac=function(e){return new(e||t)(a.Y36(g),a.Y36(n.d6),a.Y36(o.eN),a.Y36(c.uw),a.Y36(d.F0),a.Y36(n.v0),a.Y36(a.sBO))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-root"]],viewQuery:function(t,e){if(1&t&&a.Gf(f,5),2&t){let t;a.iGM(t=a.CRH())&&(e.footer=t.first)}},hostBindings:function(t,e){1&t&&a.NdJ("resize",function(t){return e.getScreenSize(t)},!1,a.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,"ngStyle","sideNav","principal"],[3,"ngStyle"],[3,"ngStyle","mode","opened","fixedInViewport","fixedTopGap"],["sidenav",""],[3,"ngStyle","scrollIndicators"],[3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],["footer",""],[3,"application"]],template:function(t,e){1&t&&(a.YNc(0,m,4,1,"div",0),a._UZ(1,"perun-web-apps-notificator",1),a.YNc(2,T,12,28,"ng-template",2),a.YNc(3,C,1,1,"ng-template",2)),2&t&&(a.Q6J("ngIf",e.displayWarning),a.xp6(1),a.Q6J("displayWarning",e.displayWarning),a.xp6(1),a.Q6J("ngIf",!e.isLoginScreenShow&&!e.isServiceAccess&&!e.isServiceLogin()),a.xp6(1),a.Q6J("ngIf",e.isLoginScreenShow||e.isServiceAccess||e.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}"]}),t})()},48958:function(t,e,i){"use strict";i.d(e,{D:function(){return s}});var n=i(31572);let s=(()=>{class t{constructor(){this.accessItemsChange=new n.vpe,this.facilityItemsChange=new n.vpe,this.adminItemsChange=new n.vpe,this.userItemsChange=new n.vpe,this.resetChange=new n.vpe,this.homeItemsChange=new n.vpe}setHomeItems(t){this.homeItemsChange.emit(t)}setAccessMenuItems(t){this.accessItemsChange.emit(t)}setFacilityMenuItems(t){this.facilityItemsChange.emit(t)}setAdminItems(t){this.adminItemsChange.emit(t)}setUserItems(t){this.userItemsChange.emit(t)}reset(){this.resetChange.emit()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},39124:function(t,e,i){"use strict";i.d(e,{o:function(){return A}});var n=i(65249),s=i(60611),o=i(68416),r=i(31572),a=i(59403),c=i(66283),l=i(4786),u=i(71522),h=i(61511),d=i(19139),p=i(67806),g=i(78364),f=i(48160);function m(t,e){if(1&t&&(r.TgZ(0,"mat-option",9),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.Q6J("value",t.id),r.xp6(1),r.hij(" ",t.name," ")}}function b(t,e){1&t&&r._UZ(0,"mat-spinner",10)}const _=function(){return["id","vo","name","description"]};function w(t,e){if(1&t&&r._UZ(0,"perun-web-apps-groups-list",11),2&t){const t=r.oxw();r.Q6J("displayedColumns",r.DdM(6,_))("groups",t.groupsToShow)("tableId",t.tableId)("groupsToDisableRouting",t.groupsWithoutRouteAuth)("filter",t.filterValue)("disableMembers",!1)}}let A=(()=>{class t{constructor(t,e,i){this.facilityManager=t,this.authResolver=e,this.entityStorageService=i,this.filterValue="",this.groups=[],this.selected="all",this.groupsToShow=this.groups,this.tableId=s.Aj,this.groupsWithoutRouteAuth=new Set}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.facilityManager.getAllowedVos(this.facility.id).subscribe(t=>{this.vos=t,this.refreshTable()})}showGroup(){this.groupsToShow="all"!==this.selected?this.groups.filter(t=>t.voId===parseInt(this.selected,10)):this.groups}refreshTable(){this.loading=!0,this.groups=[],this.vos.forEach(t=>{this.facilityManager.getAllowedGroups(this.facility.id,t.id).subscribe(e=>{this.groups=this.groups.concat(e),this.groupsToShow=this.groups,this.setAuthRights(t,e),this.loading=!1})}),0===this.vos.length&&(this.loading=!1)}setAuthRights(t,e){e.forEach(e=>{this.authResolver.isAuthorized("getGroupById_int_policy",[t,e])||this.groupsWithoutRouteAuth.add(e.id)})}applyFilter(t){this.filterValue=t}}return t.id="FacilityAllowedGroupsComponent",t.\u0275fac=function(e){return new(e||t)(r.Y36(n.IQ),r.Y36(o.x4),r.Y36(o.fb))},t.\u0275cmp=r.Xpm({type:t,selectors:[["app-facility-allowed-groups"]],hostVars:2,hostBindings:function(t,e){2&t&&r.ekj("router-component",e.true)},inputs:{groups:"groups"},decls:17,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],[1,"mr-2"],[3,"value","valueChange","selectionChange"],["value","all"],[3,"value",4,"ngFor","ngForOf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","groups","tableId","groupsToDisableRouting","filter","disableMembers",4,"ngIf"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","groups","tableId","groupsToDisableRouting","filter","disableMembers"]],template:function(t,e){1&t&&(r.TgZ(0,"div"),r.TgZ(1,"h1",0),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.TgZ(4,"perun-web-apps-refresh-button",1),r.NdJ("refresh",function(){return e.refreshTable()}),r.qZA(),r.TgZ(5,"mat-form-field",2),r.TgZ(6,"mat-label"),r._uU(7),r.ALo(8,"translate"),r.qZA(),r.TgZ(9,"mat-select",3),r.NdJ("valueChange",function(t){return e.selected=t})("selectionChange",function(){return e.showGroup()}),r.TgZ(10,"mat-option",4),r._uU(11),r.ALo(12,"translate"),r.qZA(),r.YNc(13,m,2,2,"mat-option",5),r.qZA(),r.qZA(),r.TgZ(14,"perun-web-apps-immediate-filter",6),r.NdJ("filter",function(t){return e.applyFilter(t)}),r.qZA(),r.YNc(15,b,1,0,"mat-spinner",7),r.YNc(16,w,1,7,"perun-web-apps-groups-list",8),r.qZA()),2&t&&(r.xp6(2),r.Oqu(r.lcZ(3,8,"MENU_ITEMS.FACILITY.ALLOWED_GROUPS")),r.xp6(5),r.Oqu(r.lcZ(8,10,"FACILITY_DETAIL.ALLOWED_GROUPS.SHOW_VOS_GROUPS")),r.xp6(2),r.Q6J("value",e.selected),r.xp6(2),r.Oqu(r.lcZ(12,12,"FACILITY_DETAIL.ALLOWED_GROUPS.ALL")),r.xp6(2),r.Q6J("ngForOf",e.vos),r.xp6(1),r.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_GROUPS.FILTER"),r.xp6(1),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading))},directives:[a.t,c.KE,c.hX,l.gD,u.ey,h.sg,d.L,h.O5,p.$g,g.W],pipes:[f.X$],styles:[""]}),t})()},64467:function(t,e,i){"use strict";i.d(e,{f:function(){return x}});var n=i(4230),s=i(95909),o=i(65249),r=i(16073),a=i(84608),c=i(68416),l=i(31572),u=i(48160),h=i(61511),d=i(15980),p=i(67806),g=i(19386),f=i(66283),m=i(80340);function b(t,e){1&t&&l._UZ(0,"mat-spinner",5)}function _(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div",6),l.TgZ(1,"perun-web-apps-vo-search-select",7),l.NdJ("voSelected",function(e){return l.CHM(t),l.oxw().selectedVo=e}),l.qZA(),l.TgZ(2,"mat-form-field"),l._UZ(3,"input",8),l.ALo(4,"translate"),l.TgZ(5,"mat-error"),l._uU(6),l.ALo(7,"translate"),l.qZA(),l.qZA(),l.TgZ(8,"mat-form-field"),l._UZ(9,"input",9),l.ALo(10,"translate"),l.TgZ(11,"mat-error"),l._uU(12),l.ALo(13,"translate"),l.qZA(),l.qZA(),l.qZA()}if(2&t){const t=l.oxw();l.xp6(1),l.Q6J("vos",t.vos),l.xp6(2),l.s9C("placeholder",l.lcZ(4,7,"DIALOGS.CREATE_RESOURCE.NAME")),l.Q6J("formControl",t.nameCtrl),l.xp6(3),l.hij(" ",l.lcZ(7,9,"DIALOGS.CREATE_RESOURCE.INCORRECT_NAME")," "),l.xp6(3),l.s9C("placeholder",l.lcZ(10,11,"DIALOGS.CREATE_RESOURCE.DESCRIPTION")),l.Q6J("formControl",t.descriptionCtrl),l.xp6(3),l.hij(" ",l.lcZ(13,13,"DIALOGS.CREATE_RESOURCE.FILL_DESCRIPTION")," ")}}let w=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.notificator=i,this.voService=n,this.translate=s,this.resourcesManager=o,this.vos=[],this.selectedVo=null,s.get("DIALOGS.CREATE_RESOURCE.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voService.getAllVos().subscribe(t=>{this.vos=t,this.loading=!1},()=>this.loading=!1),this.nameCtrl=new r.NI(null,[r.kI.required,r.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new r.NI("")}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 t.\u0275fac=function(e){return new(e||t)(l.Y36(a.so),l.Y36(a.WI),l.Y36(c.V6),l.Y36(o.YF),l.Y36(u.sK),l.Y36(o.xk))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-create-resource-dialog"]],decls:10,vars:12,consts:[["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","accent",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"long-input",3,"vos","voSelected"],["matInput","","required","",3,"placeholder","formControl"],["matInput","",3,"placeholder","formControl"]],template:function(t,e){1&t&&(l.TgZ(0,"div"),l.YNc(1,b,1,0,"mat-spinner",0),l.YNc(2,_,14,15,"div",1),l.TgZ(3,"div",2),l.TgZ(4,"button",3),l.NdJ("click",function(){return e.onCancel()}),l._uU(5),l.ALo(6,"translate"),l.qZA(),l.TgZ(7,"button",4),l.NdJ("click",function(){return e.onSubmit()}),l._uU(8),l.ALo(9,"translate"),l.qZA(),l.qZA(),l.qZA()),2&t&&(l.Tol(e.theme),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(3),l.hij(" ",l.lcZ(6,8,"DIALOGS.CREATE_RESOURCE.CANCEL")," "),l.xp6(2),l.Q6J("disabled",e.nameCtrl.invalid||e.descriptionCtrl.invalid||null===e.selectedVo||e.loading),l.xp6(1),l.hij(" ",l.lcZ(9,10,"DIALOGS.CREATE_RESOURCE.CREATE")," "))},directives:[h.O5,a.H8,d.lW,p.$g,a.xY,g.M,f.KE,m.Nt,r.Fj,r.Q7,r.JJ,r.oH,f.TO],pipes:[u.X$],styles:[".long-input[_ngcontent-%COMP%]{width:100%}"]}),t})();var A=i(60611),y=i(84140),v=i(59403),T=i(19139),C=i(88884);function E(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",7),l.NdJ("click",function(){return l.CHM(t),l.oxw().createResource()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"FACILITY_DETAIL.RESOURCES.CREATE")," "))}function S(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",8),l.NdJ("click",function(){return l.CHM(t),l.oxw().removeResource()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}if(2&t){const t=l.oxw();l.Q6J("disabled",0===t.selected.selected.length),l.xp6(1),l.hij(" ",l.lcZ(2,2,"FACILITY_DETAIL.RESOURCES.DELETE")," ")}}function k(t,e){1&t&&l._UZ(0,"mat-spinner",9)}function I(t,e){if(1&t&&l._UZ(0,"perun-web-apps-resources-list",10),2&t){const t=l.oxw();l.Q6J("tableId",t.tableId)("filterValue",t.filterValue)("resources",t.resources)("selection",t.selected)("disableRouting",!t.routeAuth)("displayedColumns",t.displayedColumns)}}let x=(()=>{class t{constructor(t,e,i,s){this.dialog=t,this.facilitiesManager=e,this.authResolver=i,this.entityStorageService=s,this.resources=[],this.selected=new n.Ov(!0,[]),this.filterValue="",this.tableId=A.CP,this.displayedColumns=["id","vo","facility","description"]}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}removeResource(){const t=(0,y.kZ)();t.width="450px",t.data={theme:"facility-theme",resources:this.selected.selected},this.dialog.open(s.f,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}refreshTable(){this.loading=!0,this.facilitiesManager.getAssignedRichResourcesForFacility(this.facility.id).subscribe(t=>{this.resources=t,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(t){this.filterValue=t}createResource(){const t=(0,y.kZ)();t.width="1350px",t.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open(w,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}}return t.id="FacilityResourcesComponent",t.\u0275fac=function(e){return new(e||t)(l.Y36(a.uw),l.Y36(o.IQ),l.Y36(c.x4),l.Y36(c.fb))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-facility-resources"]],hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("router-component",e.true)},decls:10,vars:8,consts:[[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,"tableId","filterValue","resources","selection","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,"tableId","filterValue","resources","selection","disableRouting","displayedColumns"]],template:function(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"perun-web-apps-refresh-button",1),l.NdJ("refresh",function(){return e.refreshTable()}),l.qZA(),l.YNc(5,E,3,3,"button",2),l.YNc(6,S,3,4,"button",3),l.TgZ(7,"perun-web-apps-immediate-filter",4),l.NdJ("filter",function(t){return e.applyFilter(t)}),l.qZA(),l.YNc(8,k,1,0,"mat-spinner",5),l.YNc(9,I,1,6,"perun-web-apps-resources-list",6),l.qZA()),2&t&&(l.xp6(2),l.Oqu(l.lcZ(3,6,"FACILITY_DETAIL.RESOURCES.TITLE")),l.xp6(3),l.Q6J("ngIf",e.addAuth),l.xp6(1),l.Q6J("ngIf",e.removeAuth),l.xp6(1),l.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[v.t,h.O5,T.L,d.lW,p.$g,C.C],pipes:[u.X$],styles:[""]}),t})()},73916:function(t,e,i){"use strict";i.d(e,{P:function(){return L}});var n=i(65249),s=i(84140),o=i(60611),r=i(4230),a=i(84608),c=i(68416),l=i(16073),u=i(31572),h=i(48160),d=i(57629),p=i(61511),g=i(15980),f=i(67806),m=i(66283),b=i(80340),_=i(4786),w=i(71522),A=i(39571);function y(t,e){1&t&&u._UZ(0,"mat-spinner",6)}function v(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"mat-option",15),u.NdJ("click",function(){const e=u.CHM(t).$implicit;return u.oxw(2).srcFacility=e}),u._uU(1),u.qZA()}if(2&t){const t=e.$implicit;u.Q6J("value",t),u.xp6(1),u.hij(" ",t.name," ")}}function T(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"div",7),u.TgZ(1,"mat-form-field"),u._UZ(2,"input",8),u.ALo(3,"translate"),u.TgZ(4,"mat-error"),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA(),u.TgZ(7,"mat-form-field"),u._UZ(8,"input",9),u.ALo(9,"translate"),u.qZA(),u.TgZ(10,"mat-form-field"),u.TgZ(11,"mat-select",10),u.ALo(12,"translate"),u.TgZ(13,"mat-option",11),u.NdJ("click",function(){return u.CHM(t),u.oxw().srcFacility=null}),u._uU(14),u.ALo(15,"translate"),u.qZA(),u.YNc(16,v,2,2,"mat-option",12),u.qZA(),u.qZA(),u.TgZ(17,"app-alert",13),u._UZ(18,"i",14),u.ALo(19,"translate"),u.qZA(),u.qZA()}if(2&t){const t=u.oxw();u.xp6(2),u.s9C("placeholder",u.lcZ(3,9,"DIALOGS.CREATE_FACILITY.NAME")),u.Q6J("formControl",t.nameControl),u.xp6(3),u.Oqu(u.lcZ(6,11,"DIALOGS.CREATE_FACILITY.REQUIRE_NAME")),u.xp6(3),u.s9C("placeholder",u.lcZ(9,13,"DIALOGS.CREATE_FACILITY.DESCRIPTION")),u.Q6J("formControl",t.descControl),u.xp6(3),u.s9C("placeholder",u.lcZ(12,15,"DIALOGS.CREATE_FACILITY.AS_COPY")),u.xp6(3),u.hij(" ",u.lcZ(15,17,"DIALOGS.CREATE_FACILITY.NO_COPY")," "),u.xp6(2),u.Q6J("ngForOf",t.facilities),u.xp6(2),u.Q6J("innerHTML",u.lcZ(19,19,"DIALOGS.CREATE_FACILITY.HINT"),u.oJD)}}let C=(()=>{class t{constructor(t,e,i,n,s,o,r){this.dialogRef=t,this.data=e,this.facilitiesManager=i,this.notificator=n,this.translate=s,this.router=o,this.entityStorageService=r,this.nameControl=new l.NI("",[l.kI.required]),this.descControl=new l.NI(""),this.srcFacility=null,this.configure=!1,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.facilitiesManager.getAllFacilities().subscribe(t=>{this.facilities=t,this.loading=!1},()=>this.loading=!1)}copyFacilitySettings(t){this.facilitiesManager.copyAttributes(this.srcFacility.id,t).subscribe(()=>{this.facilitiesManager.copyManagers(this.srcFacility.id,t).subscribe(()=>{this.facilitiesManager.copyOwners(this.srcFacility.id,t).subscribe(()=>{this.handleSuccess(t)},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}onCreate(t){this.loading=!0,this.configure=t,this.facilitiesManager.createFacility(this.nameControl.value,this.descControl.value).subscribe(t=>{this.entityStorageService.setEntity({id:t.id,beanName:t.beanName}),sessionStorage.setItem("newFacilityId",String(t.id)),null!==this.srcFacility?this.copyFacilitySettings(t.id):this.handleSuccess(t.id)})}handleSuccess(t){this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_FACILITY.SUCCESS")),this.configure&&this.router.navigate(["facilities",t.toString(),"configuration"]),this.dialogRef.close(!0)}onCancel(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(a.so),u.Y36(a.WI),u.Y36(n.IQ),u.Y36(c.V6),u.Y36(h.sK),u.Y36(d.F0),u.Y36(c.fb))},t.\u0275cmp=u.Xpm({type:t,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"],["mat-flat-button","","color","accent",1,"ml2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"formControl","placeholder"],["matInput","",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(t,e){1&t&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.YNc(4,y,1,0,"mat-spinner",1),u.YNc(5,T,20,21,"div",2),u.TgZ(6,"div",3),u.TgZ(7,"button",4),u.NdJ("click",function(){return e.onCancel()}),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.TgZ(10,"button",5),u.NdJ("click",function(){return e.onCreate(!1)}),u._uU(11),u.ALo(12,"translate"),u.qZA(),u.TgZ(13,"button",5),u.NdJ("click",function(){return e.onCreate(!0)}),u._uU(14),u.ALo(15,"translate"),u.qZA(),u.qZA(),u.qZA()),2&t&&(u.Tol(e.theme),u.xp6(2),u.Oqu(u.lcZ(3,11,"DIALOGS.CREATE_FACILITY.TITLE")),u.xp6(2),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading),u.xp6(3),u.hij(" ",u.lcZ(9,13,"DIALOGS.CREATE_FACILITY.CANCEL")," "),u.xp6(2),u.Q6J("disabled",0===e.nameControl.value.trim().length||e.loading),u.xp6(1),u.hij(" ",u.lcZ(12,15,"DIALOGS.CREATE_FACILITY.CREATE")," "),u.xp6(2),u.Q6J("disabled",0===e.nameControl.value.trim().length||!!e.srcFacility||e.loading),u.xp6(1),u.hij(" ",u.lcZ(15,17,"DIALOGS.CREATE_FACILITY.CREATE_AND_CONFIGURE")," "))},directives:[p.O5,a.H8,g.lW,f.$g,a.xY,m.KE,b.Nt,l.Fj,l.Q7,l.JJ,l.oH,m.TO,_.gD,w.ey,p.sg,A.w],pipes:[h.X$],styles:[""]}),t})();var E=i(30570),S=i(48958),k=i(66297),I=i(43691),x=i(59403),R=i(19139),O=i(60007);function P(t,e){1&t&&u._UZ(0,"mat-spinner",9)}function D(t,e){if(1&t&&u._UZ(0,"perun-web-apps-facilities-list",10),2&t){const t=u.oxw();u.Q6J("tableId",t.tableId)("selection",t.selection)("filterValue",t.filterValue)("facilities",t.facilities)("recentIds",t.recentIds)}}const M=function(){return{color:"black"}};let L=(()=>{class t{constructor(t,e,i){this.facilityManager=t,this.sideMenuService=e,this.dialog=i,this.facilities=[],this.recentIds=[],this.filterValue="",this.tableId=o.xt,this.selection=new r.Ov(!1,[])}ngOnInit(){this.refreshTable()}ngAfterViewChecked(){this.sideMenuService.setFacilityMenuItems([])}refreshTable(){this.loading=!0,this.facilityManager.getEnrichedFacilities().subscribe(t=>{this.selection.clear(),this.facilities=t,this.recentIds=(0,s.vL)("facilities"),this.loading=!1})}onCreate(){const t=(0,s.kZ)();t.width="800px",t.data={theme:"facility-theme"},this.dialog.open(C,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.refreshTable())})}onDelete(){const t=(0,s.kZ)();t.width="500px",t.data={theme:"facility-theme",facility:this.selection.selected[0].facility},this.dialog.open(E.Y,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}applyFilter(t){this.filterValue=t}}return t.id="FacilitySelectPageComponent",t.\u0275fac=function(e){return new(e||t)(u.Y36(n.IQ),u.Y36(S.D),u.Y36(a.uw))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-facility-select-page"]],hostVars:2,hostBindings:function(t,e){2&t&&u.ekj("router-component",e.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","","color","accent",1,"mr-2",3,"click"],["mat-flat-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(t,e){1&t&&(u.TgZ(0,"div",0),u._UZ(1,"perun-web-apps-back-button"),u.TgZ(2,"h1",1),u._UZ(3,"mat-icon",2),u._uU(4),u.ALo(5,"translate"),u.qZA(),u.TgZ(6,"perun-web-apps-refresh-button",3),u.NdJ("refresh",function(){return e.refreshTable()}),u.qZA(),u.TgZ(7,"button",4),u.NdJ("click",function(){return e.onCreate()}),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.TgZ(10,"button",5),u.NdJ("click",function(){return e.onDelete()}),u._uU(11),u.ALo(12,"translate"),u.qZA(),u.TgZ(13,"perun-web-apps-immediate-filter",6),u.NdJ("filter",function(t){return e.applyFilter(t)}),u.qZA(),u.YNc(14,P,1,0,"mat-spinner",7),u.YNc(15,D,1,5,"perun-web-apps-facilities-list",8),u.qZA()),2&t&&(u.xp6(3),u.Q6J("ngStyle",u.DdM(15,M)),u.xp6(1),u.hij(" ",u.lcZ(5,9,"FACILITY_MANAGEMENT.TITLE")," "),u.xp6(4),u.hij(" ",u.lcZ(9,11,"FACILITY_MANAGEMENT.CREATE")," "),u.xp6(2),u.Q6J("disabled",0===e.selection.selected.length),u.xp6(1),u.hij(" ",u.lcZ(12,13,"FACILITY_MANAGEMENT.DELETE")," "),u.xp6(2),u.Q6J("autoFocus",!0)("placeholder","FACILITY_MANAGEMENT.FILTER_PLACEHOLDER"),u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading))},directives:[k.W,I.Hw,p.PC,x.t,g.lW,R.L,p.O5,f.$g,O.X],pipes:[h.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),t})()},92438:function(t,e,i){"use strict";i.d(e,{J:function(){return A}});var n=i(84608),s=i(68416),o=i(65249),r=i(84140),a=i(16073),c=i(31572),l=i(48160),u=i(66283),h=i(80340),d=i(4786),p=i(61511),g=i(15980),f=i(71522);let m=(()=>{class t{constructor(t){this.translateService=t,this.returnData=""}transform(t){switch(t){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.HEADER").subscribe(t=>{this.returnData=t});break;case"FROM_FEDERATION_HIDDEN":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.FROM_FEDERATION_HIDDEN").subscribe(t=>{this.returnData=t});break;case"HTML_COMMENT":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.HTML_COMMENT").subscribe(t=>{this.returnData=t});break;case"TEXTFIELD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TEXTFIELD").subscribe(t=>{this.returnData=t});break;case"FROM_FEDERATION_SHOW":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.FROM_FEDERATION_SHOW").subscribe(t=>{this.returnData=t});break;case"VALIDATED_EMAIL":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.VALIDATED_EMAIL").subscribe(t=>{this.returnData=t});break;case"USERNAME":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.USERNAME").subscribe(t=>{this.returnData=t});break;case"PASSWORD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.PASSWORD").subscribe(t=>{this.returnData=t});break;case"SELECTIONBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.SELECTIONBOX").subscribe(t=>{this.returnData=t});break;case"TEXTAREA":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TEXTAREA").subscribe(t=>{this.returnData=t});break;case"COMBOBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.COMBOBOX").subscribe(t=>{this.returnData=t});break;case"CHECKBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.CHECKBOX").subscribe(t=>{this.returnData=t});break;case"SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.SUBMIT_BUTTON").subscribe(t=>{this.returnData=t});break;case"RADIO":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.RADIO").subscribe(t=>{this.returnData=t});break;case"TIMEZONE":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TIMEZONE").subscribe(t=>{this.returnData=t});break;case"AUTO_SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.AUTO_SUBMIT_BUTTON").subscribe(t=>{this.returnData=t});break;case"EMBEDDED_GROUP_APPLICATION":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.EMBEDDED_GROUP_APPLICATION").subscribe(t=>{this.returnData=t});break;default:return t}return this.returnData}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(l.sK,16))},t.\u0275pipe=c.Yjl({name:"applicationFormWidgetDescription",type:t,pure:!0}),t})();var b=i(65050);function _(t,e){if(1&t&&(c.TgZ(0,"mat-option",9),c._uU(1),c.ALo(2,"applicationFormItemType"),c.qZA()),2&t){const t=e.$implicit;c.Q6J("value",t),c.xp6(1),c.hij(" ",c.lcZ(2,2,t)," ")}}function w(t,e){if(1&t&&(c.TgZ(0,"mat-option",9),c._uU(1),c.qZA()),2&t){const t=e.$implicit;c.Q6J("value",t),c.xp6(1),c.hij(" ",t," ")}}let A=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.data=e,this.translateService=i,this.store=n,this.languages=this.store.get("supported_languages"),this.items=[],this.selectedWidget="HEADING",this.widgets=["HEADING","FROM_FEDERATION_HIDDEN","HTML_COMMENT","TEXTFIELD","FROM_FEDERATION_SHOW","VALIDATED_EMAIL","USERNAME","PASSWORD","SELECTIONBOX","TEXTAREA","COMBOBOX","CHECKBOX","SUBMIT_BUTTON","RADIO","TIMEZONE","AUTO_SUBMIT_BUTTON","EMBEDDED_GROUP_APPLICATION"]}ngOnInit(){this.translateService.get("DIALOGS.APPLICATION_FORM_ADD_ITEM.INSERT_TO_BEGINNING").subscribe(t=>{this.nameCtrl=new a.NI("",[a.kI.required,a.kI.pattern(".*[\\S]+.*"),a.kI.maxLength(129)]),this.nameCtrl.markAllAsTouched(),this.items.push(t);for(const e of this.data.applicationFormItems)this.items.push(e.shortname),e.type===o.Dy.EMBEDDEDGROUPAPPLICATION&&(this.widgets=this.widgets.filter(t=>t!==o.Dy.EMBEDDEDGROUPAPPLICATION));this.selectedItem=t})}cancel(){this.dialogRef.close(!1)}submit(){const t=this.createApplicationItem();this.dialogRef.close([this.data.applicationFormItems,t])}createApplicationItem(){const t=(0,r.dv)(this.languages);t.id=this.data.fakeId,t.shortname=this.nameCtrl.value,t.type=this.selectedWidget;for(let e=0;e{class t{constructor(t){this.guiAuthResolver=t,this.blockManualAdding=!1,this.displayedColumns=["checkbox","status","fullName","voExtSource","email","logins","alreadyMember","local"],this.pageSizeOptions=c.f7,this.addAuth=!1}set matSort(t){this.sort=t,this.setDataSource()}getDataForColumn(t,e,i){var n,s;switch(e){case"status":return t.member&&null!==(n=t.member.status)&&void 0!==n?n:"";case"fullName":{const e=t.richUser?t.richUser:t.candidate;return e.lastName?e.lastName:null!==(s=e.firstName)&&void 0!==s?s:""}case"voExtSource":return t.richUser?(0,c.OV)(t.richUser):(0,c.v$)(t.candidate);case"email":return t.richUser||t.member?(0,c.kN)(t.richUser):i.getEmail(t);case"logins":return i.getLogins(t);case"alreadyMember":return i.getAlreadyMember(t);case"local":return t.richUser?"Local":"External identity";default:return t[e]}}getExportDataForColumn(t,e,i){var n;switch(e){case"status":return t.member&&null!==(n=t.member.status)&&void 0!==n?n:"";case"fullName":return(0,c.bD)(t.richUser?t.richUser:t.candidate);case"voExtSource":return t.richUser?(0,c.OV)(t.richUser):(0,c.v$)(t.candidate);case"email":return t.richUser||t.member?(0,c.kN)(t.richUser):i.getEmail(t);case"logins":return i.getLogins(t);case"alreadyMember":return i.getAlreadyMember(t);case"local":return t.richUser?"Local":"External identity";default:return t[e]}}exportData(t){(0,c.O6)((0,c.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}setDataSource(){null!=this.child&&this.child.paginator&&this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(t,e)=>(0,c.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,c.pR)(t,e,this.getDataForColumn,this),this.dataSource.paginator=this.child.paginator)}ngAfterViewInit(){this.setDataSource()}ngOnChanges(){this.dataSource=new h.by(this.members),this.setDataSource()}isAllSelected(){return this.selection.selected.length===this.dataSource.data.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(t=>this.selection.select(t)),this.setAddAuth()}getEmail(t){let e;if(t.richUser){for(const i of t.richUser.userAttributes)if(i.namespace+":"+i.friendlyName=="urn:perun:user:attribute-def:def:preferredMail"){e=i;break}return null!=e&&null!=e.value&&"null"!==e.value.toString().toLowerCase()?e.value.toString().replace(","," "):""}return(0,c.Jc)(t.candidate)}getOrganization(t){return(0,c.v$)(t)}getLogins(t){if(t.richUser)return this.getLoginsForRichUser(t.richUser);{let e=this.getLoginsForCandidate(t.candidate);return null!=e&&""!==e||(e=t.candidate.userExtSource.login),e}}getLoginsForRichUser(t){let e="";for(const i of t.userAttributes)i.friendlyName.startsWith("login-namespace")&&null!=i.value&&(e.length>0&&(e+=", "),e+=i.friendlyName.substring(16)+": "+i.value);return e}getLoginsForCandidate(t){let e="";for(const i in t.attributes)Object.prototype.hasOwnProperty.call(t.attributes,i)&&-1!==i.indexOf("urn:perun:user:attribute-def:def:login-namespace:")&&null!=t.attributes[i]&&(e.length>0&&(e+=", "),e+=i.substring(49)+": "+t.attributes[i]);return e}getAlreadyMember(t){if("vo"===this.type){if(null!=t.member)return"Member of VO"}else{if(null!=t.member&&0!==t.member.sourceGroupId&&"DIRECT"===t.member.membershipType)return"Member of Group";if(null!=t.member&&0!==t.member.sourceGroupId&&"INDIRECT"===t.member.membershipType)return"Indirect member of Group";if(null!=t.member)return"Member of VO"}return""}isCheckboxDisabled(t){return"vo"===this.type?null!=t.member:t.member?0!==t.member.sourceGroupId&&"DIRECT"===t.member.membershipType:this.blockManualAdding}setAddAuth(){void 0!==this.group&&0!==this.selection.selected.length&&(this.addAuth=!!this.selection.selected[0].member||this.guiAuthResolver.isAuthorized("createMember_Vo_User_List_policy",[this.group])&&this.guiAuthResolver.isAuthorized("createMember_Vo_Candidate_List_policy",[this.group]))}itemSelectionToggle(t){this.selection.toggle(t),this.setAddAuth()}getTooltip(t){return t.member?"MEMBERS_CANDIDATES_LIST.ALREADY_MEMBER":"MEMBERS_CANDIDATES_LIST.ADDING_BLOCKED"}}return t.\u0275fac=function(e){return new(e||t)(d.Y36(s.x4))},t.\u0275cmp=d.Xpm({type:t,selectors:[["app-members-candidates-list"]],viewQuery:function(t,e){if(1&t&&(d.Gf(u.YE,5),d.Gf(c.l9,7)),2&t){let t;d.iGM(t=d.CRH())&&(e.matSort=t.first),d.iGM(t=d.CRH())&&(e.child=t.first)}},inputs:{members:"members",selection:"selection",type:"type",tableId:"tableId",group:"group",blockManualAdding:"blockManualAdding"},features:[d.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"],["mat-cell","",1,"static-column-size","align-checkbox"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["color","primary",3,"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(t,e){1&t&&(d.TgZ(0,"div",0),d.TgZ(1,"perun-web-apps-table-wrapper",1),d.NdJ("exportData",function(t){return e.exportData(t)}),d.TgZ(2,"table",2),d.ynx(3,3),d.YNc(4,T,1,0,"th",4),d.YNc(5,C,6,11,"td",5),d.BQk(),d.ynx(6,6),d.YNc(7,E,3,3,"th",7),d.YNc(8,k,2,1,"td",8),d.BQk(),d.ynx(9,9),d.YNc(10,I,3,3,"th",7),d.YNc(11,x,4,5,"td",8),d.BQk(),d.ynx(12,10),d.YNc(13,R,3,3,"th",7),d.YNc(14,O,3,3,"td",8),d.BQk(),d.ynx(15,11),d.YNc(16,P,3,3,"th",7),d.YNc(17,D,2,1,"td",8),d.BQk(),d.ynx(18,12),d.YNc(19,M,3,3,"th",7),d.YNc(20,L,2,1,"td",8),d.BQk(),d.ynx(21,13),d.YNc(22,N,3,3,"th",7),d.YNc(23,z,2,1,"td",8),d.BQk(),d.ynx(24,14),d.YNc(25,Z,1,0,"th",7),d.YNc(26,B,2,1,"td",8),d.BQk(),d.YNc(27,F,1,0,"tr",15),d.YNc(28,U,1,0,"tr",16),d.qZA(),d.qZA(),d.qZA(),d.YNc(29,q,3,3,"app-alert",17)),2&t&&(d.Q6J("hidden",0===e.members.length),d.xp6(1),d.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),d.xp6(1),d.Q6J("dataSource",e.dataSource),d.xp6(25),d.Q6J("matHeaderRowDef",e.displayedColumns),d.xp6(1),d.Q6J("matRowDefColumns",e.displayedColumns),d.xp6(1),d.Q6J("ngIf",0===e.members.length))},directives:[p.l,h.BZ,u.YE,h.w1,h.fO,h.Dz,h.as,h.nj,g.O5,h.ge,h.ev,f.gM,m.oG,u.nU,h.XQ,h.Gk,b.w],pipes:[_.X$,g.i8,w.u,A.f,y.d,v.Z],styles:[""]}),t})();var G=i(16073),j=i(57629),Y=i(66283),K=i(80340),V=i(15980),$=i(67806),J=i(8055);const Q=["list"];function W(t,e){1&t&&d._UZ(0,"mat-spinner",10)}function X(t,e){if(1&t&&d._UZ(0,"app-members-candidates-list",13,14),2&t){const t=d.oxw(3);d.Q6J("group",t.data.group)("tableId",t.tableId)("selection",t.selection)("members",t.members)("type",t.data.type)("blockManualAdding",t.manualAddingBlocked)}}function tt(t,e){if(1&t&&(d.TgZ(0,"div",11),d.YNc(1,X,2,6,"app-members-candidates-list",12),d.qZA()),2&t){const t=d.oxw(2);d.xp6(1),d.Q6J("ngIf",t.firstSearchDone)}}function et(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"div",4),d.TgZ(1,"mat-form-field",5),d.TgZ(2,"label"),d.TgZ(3,"input",6),d.NdJ("keyup.enter",function(){return d.CHM(t),d.oxw().onSearchByString()}),d.ALo(4,"translate"),d.qZA(),d.qZA(),d.TgZ(5,"mat-error"),d._uU(6),d.ALo(7,"translate"),d.qZA(),d.qZA(),d.TgZ(8,"button",7),d.NdJ("click",function(){return d.CHM(t),d.oxw().onSearchByString()}),d._uU(9),d.ALo(10,"translate"),d.qZA(),d.TgZ(11,"div",8),d.YNc(12,W,1,0,"mat-spinner",2),d.qZA(),d.YNc(13,tt,2,1,"div",9),d.qZA()}if(2&t){const t=d.oxw();d.xp6(3),d.s9C("placeholder",d.lcZ(4,7,"DIALOGS.ADD_MEMBERS.DESCRIPTION")),d.Q6J("formControl",t.searchCtrl),d.xp6(3),d.hij(" ",d.lcZ(7,9,"DIALOGS.ADD_MEMBERS.EMPTY_SEARCH_MESSAGE")," "),d.xp6(2),d.Q6J("disabled",t.loading),d.xp6(1),d.hij(" ",d.lcZ(10,11,"DIALOGS.ADD_MEMBERS.SEARCH")," "),d.xp6(3),d.Q6J("ngIf",t.loading),d.xp6(1),d.Q6J("ngIf",!!t.members&&!t.loading)}}function it(t,e){1&t&&d._UZ(0,"mat-spinner",10)}function nt(t,e){if(1&t&&(d.TgZ(0,"button",22),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t){d.oxw();const t=d.MAs(8),e=d.oxw();d.Q6J("disabled",0===e.selection.selected.length||e.loading)("matMenuTriggerFor",t),d.xp6(1),d.hij(" ",d.lcZ(2,3,"DIALOGS.ADD_MEMBERS.INVITE")," ")}}function st(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"button",23),d.NdJ("click",function(){const e=d.CHM(t).$implicit;return d.oxw(2).onInvite(e)}),d._uU(1),d.ALo(2,"translate"),d.ALo(3,"translate"),d.ALo(4,"uppercase"),d.ALo(5,"translate"),d.qZA()}if(2&t){const t=e.$implicit;d.xp6(1),d.lnq(" ",d.lcZ(2,3,"DIALOGS.ADD_MEMBERS.INVITE_IN_LANGUAGE")," ",d.lcZ(3,5,d.lcZ(4,7,"SHARED_LIB.LANGUAGES."+t))," ",d.lcZ(5,9,"DIALOGS.ADD_MEMBERS.LANGUAGE")," ")}}function ot(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"div",15),d.TgZ(1,"button",16),d.NdJ("click",function(){return d.CHM(t),d.oxw().onCancel()}),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"span",17),d.ALo(5,"translate"),d.YNc(6,nt,3,5,"button",18),d.TgZ(7,"mat-menu",null,19),d.YNc(9,st,6,11,"button",20),d.qZA(),d.qZA(),d.TgZ(10,"button",21),d.NdJ("click",function(){return d.CHM(t),d.oxw().onAdd()}),d._uU(11),d.ALo(12,"translate"),d.qZA(),d.qZA()}if(2&t){const t=d.oxw();d.xp6(2),d.hij(" ",d.lcZ(3,7,"DIALOGS.ADD_MEMBERS.CANCEL")," "),d.xp6(2),d.s9C("matTooltip",d.lcZ(5,9,"DIALOGS.ADD_MEMBERS.ADD_MEMBER_PERMISSION_TOOLTIP")),d.Q6J("matTooltipDisabled",0===t.selection.selected.length||"group"!==t.data.type||void 0!==t.list&&t.list.addAuth),d.xp6(2),d.Q6J("ngIf","group"!==t.data.type||"group"===t.data.type&&t.inviteAuth),d.xp6(3),d.Q6J("ngForOf",t.languages),d.xp6(1),d.Q6J("disabled",0===t.selection.selected.length||t.loading||"group"===t.data.type&&void 0!==t.list&&!t.list.addAuth),d.xp6(1),d.hij(" ",d.lcZ(12,11,"DIALOGS.ADD_MEMBERS.CREATE")," ")}}let rt=(()=>{class t{constructor(t,e,i,n,s,r,a,c,u,h,d,p){this.dialogRef=t,this.data=e,this.membersManagerService=i,this.groupService=n,this.voService=s,this.registrarManager=r,this.translate=a,this.notificator=c,this.route=u,this.router=h,this.guiAuthResolver=d,this.store=p,this.languages=["en"],this.selection=new o.Ov(!1,[]),this.members=[],this.firstSearchDone=!1,this.tableId=l.tY,this.inviteAuth=!1,this.manualAddingBlocked=!1,a.get("DIALOGS.ADD_MEMBERS.TITLE").subscribe(t=>this.title=t)}onCancel(){this.dialogRef.close(!1)}onAdd(){this.processing=!0;const t=this.selection.selected[0];"vo"===this.data.type?t.richUser?this.addUserToVo(t):this.addCandidateToVo(t):"group"===this.data.type&&(t.member?this.addMemberToGroup(t):t.richUser?this.addUserToGroup(t):t.candidate&&this.addCandidateToGroup(t))}onInvite(t){this.processing=!0,this.selection.selected[0].richUser?"vo"===this.data.type?this.registrarManager.sendInvitationToExistingUser(this.selection.selected[0].richUser.id,this.data.entityId).subscribe(()=>{this.onInviteSuccess()},()=>this.onError()):"group"===this.data.type&&this.registrarManager.sendInvitationGroupToExistingUser(this.selection.selected[0].richUser.id,this.data.voId,this.data.group.id).subscribe(()=>{this.onInviteSuccess()},()=>this.onError()):"vo"===this.data.type?this.registrarManager.sendInvitation((0,c.Jc)(this.selection.selected[0].candidate),t,this.data.voId).subscribe(()=>{this.onInviteSuccess()},()=>this.onError()):"group"===this.data.type&&this.registrarManager.sendInvitationForGroup((0,c.Jc)(this.selection.selected[0].candidate),t,this.data.voId,this.data.group.id).subscribe(()=>{this.onInviteSuccess()},()=>this.onError())}onSearchByString(){this.searchCtrl.invalid?this.searchCtrl.markAllAsTouched():(this.loading=!0,this.selection.clear(),"vo"===this.data.type?this.voService.getCompleteCandidatesForVo(this.data.entityId,[a.r.USER_DEF_ORGANIZATION,a.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe(t=>{this.members=t,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1):this.voService.getCompleteCandidatesForGroup(this.data.entityId,[a.r.USER_DEF_ORGANIZATION,a.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe(t=>{this.members=t,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1))}ngOnInit(){this.languages=this.store.get("supported_languages"),this.theme=this.data.theme,this.manualAddingBlocked=this.data.manualAddingBlocked,"group"===this.data.type&&(this.inviteAuth=this.guiAuthResolver.isAuthorized("group-sendInvitation_Vo_Group_User_policy",[this.data.group])),this.searchCtrl=new G.NI("",[G.kI.required,G.kI.pattern(".*[\\S]+.*")])}addUserToVo(t){this.membersManagerService.createMemberForUser({vo:this.data.entityId,user:t.richUser.id}).subscribe(t=>{this.onAddSuccess(),this.membersManagerService.validateMemberAsync(t.id).subscribe(()=>{this.onValidateSuccess()},()=>this.onCancel())},()=>this.onError())}addCandidateToVo(t){this.membersManagerService.createMemberForCandidate({vo:this.data.entityId,candidate:this.createCandidate(t.candidate)}).subscribe(t=>{this.onAddSuccess(),this.membersManagerService.validateMemberAsync(t.id).subscribe(()=>{this.onValidateSuccess()},()=>this.onCancel())},()=>this.onError())}addUserToGroup(t){this.membersManagerService.createMemberForUser({vo:this.data.voId,user:t.richUser.id,groups:[{id:this.data.group.id,beanName:this.data.group.beanName,name:this.data.group.name,voId:this.data.group.voId}]}).subscribe(t=>{this.onAddSuccess(),this.membersManagerService.validateMemberAsync(t.id).subscribe(()=>{this.onValidateSuccess()},()=>this.onCancel())},()=>this.onError())}addMemberToGroup(t){this.groupService.addMembers(this.data.entityId,[t.member.id]).subscribe(()=>{this.onAddSuccess()},()=>this.onError())}addCandidateToGroup(t){const e={id:this.data.group.id,beanName:this.data.group.beanName,name:this.data.group.name,voId:this.data.group.voId};this.membersManagerService.createMemberForCandidate({vo:this.data.voId,candidate:this.createCandidate(t.candidate),groups:[e]}).subscribe(t=>{this.onAddSuccess(),this.membersManagerService.validateMemberAsync(t.id).subscribe(()=>{this.onValidateSuccess()},()=>this.onCancel())},()=>this.onError())}onAddSuccess(){this.translate.get("DIALOGS.ADD_MEMBERS.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})}onError(){this.selection.clear(),this.processing=!1}onInviteSuccess(){this.translate.get("DIALOGS.ADD_MEMBERS.SUCCESS_INVITE").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})}onValidateSuccess(){this.dialogRef.close(!0)}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}}}return t.\u0275fac=function(e){return new(e||t)(d.Y36(n.so),d.Y36(n.WI),d.Y36(r.uq),d.Y36(r.ff),d.Y36(r.YF),d.Y36(r.tk),d.Y36(_.sK),d.Y36(s.V6),d.Y36(j.gz),d.Y36(j.F0),d.Y36(s.x4),d.Y36(s.d6))},t.\u0275cmp=d.Xpm({type:t,selectors:[["app-add-member-dialog"]],viewQuery:function(t,e){if(1&t&&d.Gf(Q,5),2&t){let t;d.iGM(t=d.CRH())&&(e.list=t.first)}},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,"mr-2","search-field","adjust-width"],["matInput","","autocomplete","false","data-cy","search-members",3,"placeholder","formControl","keyup.enter"],["mat-flat-button","","color","accent","data-cy","search-button",1,"ml-auto",3,"disabled","click"],[1,"no-bounce-scrollbar"],["class","mt-3",4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"mt-3"],[3,"group","tableId","selection","members","type","blockManualAdding",4,"ngIf"],[3,"group","tableId","selection","members","type","blockManualAdding"],["list",""],["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"],["color","accent","mat-flat-button","",1,"ml-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",3,"click"]],template:function(t,e){1&t&&(d.TgZ(0,"div"),d.TgZ(1,"h1",0),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.YNc(4,et,14,13,"div",1),d.YNc(5,it,1,0,"mat-spinner",2),d.YNc(6,ot,13,13,"div",3),d.qZA()),2&t&&(d.Tol(e.theme),d.xp6(2),d.Oqu(d.lcZ(3,7,"DIALOGS.ADD_MEMBERS.TITLE")),d.xp6(2),d.Q6J("ngIf",!e.processing),d.xp6(1),d.Q6J("ngIf",e.processing),d.xp6(1),d.Q6J("ngIf",!e.processing))},directives:[n.uh,g.O5,n.xY,Y.KE,K.Nt,G.Fj,G.JJ,G.oH,Y.TO,V.lW,$.$g,H,n.H8,f.gM,J.VK,g.sg,J.p6,J.OP],pipes:[_.X$,g.gd],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}.no-bounce-scrollbar[_ngcontent-%COMP%]{overflow:hidden}"]}),t})()},68570:function(t,e,i){"use strict";i.d(e,{W:function(){return g}});var n=i(84608),s=i(65249),o=i(68416),r=i(31572),a=i(48160),c=i(61511),l=i(19386),u=i(37665),h=i(15980),d=i(67806);function p(t,e){1&t&&r._UZ(0,"mat-spinner",9)}let g=(()=>{class t{constructor(t,e,i,n,s,o,r,a){this.dialogRef=t,this.voService=e,this.groupService=i,this.translateService=n,this.registrarManager=s,this.notificatorService=o,this.apiRequest=r,this.data=a,this.vos=[],this.groups=[],this.selectedGroup=null,this.loading=!1,this.nameFunction=t=>t.name,n.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUCCESS").subscribe(t=>this.successMessage=t),n.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.PRIVILEGE").subscribe(t=>this.privilegeMessage=t),n.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_FORM").subscribe(t=>this.noFormMessage=t)}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(t=>{this.vos=t.sort((t,e)=>t.name>e.name?1:t.namethis.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)},t=>{"FormNotExistsException"===t.error.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===t.error.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)},t=>{"FormNotExistsException"===t.error.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===t.error.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)},t=>{"FormNotExistsException"===t.error.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===t.error.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)},t=>{"FormNotExistsException"===t.error.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===t.error.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1})}voSelected(t){this.selectedVo=t,this.getGroups()}getGroups(){void 0!==this.selectedVo?this.groupService.getAllGroups(this.selectedVo.id).subscribe(t=>{this.groups=t}):this.groups=[],this.selectedGroup=null}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(s.YF),r.Y36(s.ff),r.Y36(a.sK),r.Y36(s.tk),r.Y36(o.V6),r.Y36(o.F5),r.Y36(n.WI))},t.\u0275cmp=r.Xpm({type:t,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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(r.TgZ(0,"div"),r.TgZ(1,"h1",0),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.YNc(4,p,1,0,"mat-spinner",1),r.TgZ(5,"div",2),r.TgZ(6,"div",3),r._uU(7),r.ALo(8,"translate"),r.qZA(),r._uU(9),r.ALo(10,"translate"),r.TgZ(11,"perun-web-apps-vo-search-select",4),r.NdJ("voSelected",function(t){return e.voSelected(t)}),r.qZA(),r._uU(12),r.ALo(13,"translate"),r.TgZ(14,"perun-web-apps-group-search-select",5),r.NdJ("groupSelected",function(t){return e.selectedGroup=t}),r.qZA(),r.qZA(),r.TgZ(15,"div",6),r.TgZ(16,"button",7),r.NdJ("click",function(){return e.cancel()}),r._uU(17),r.ALo(18,"translate"),r.qZA(),r.TgZ(19,"button",8),r.NdJ("click",function(){return e.submit()}),r._uU(20),r.ALo(21,"translate"),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.Tol(e.theme),r.xp6(2),r.Oqu(r.lcZ(3,15,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.TITLE")),r.xp6(2),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("hidden",e.loading),r.xp6(2),r.hij(" ",r.lcZ(8,17,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.DESCRIPTION")," "),r.xp6(2),r.hij(" ",r.lcZ(10,19,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_VO"),": "),r.xp6(2),r.Q6J("vos",e.vos),r.xp6(1),r.hij(" ",r.lcZ(13,21,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_GROUP"),": "),r.xp6(2),r.Q6J("groups",e.groups)("disableAutoSelect",!0),r.xp6(3),r.hij(" ",r.lcZ(18,23,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.CANCEL_BUTTON")," "),r.xp6(2),r.Q6J("disabled",!e.selectedVo&&!e.selectedGroup||e.loading),r.xp6(1),r.hij(" ",r.lcZ(21,25,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUBMIT_BUTTON")," "))},directives:[n.uh,c.O5,n.xY,l.M,u.h,n.H8,h.lW,d.$g],pipes:[a.X$],styles:[""]}),t})()},88419:function(t,e,i){"use strict";i.d(e,{y:function(){return A}});var n=i(84608),s=i(68416),o=i(65249),r=i(16073),a=i(31572),c=i(48160),l=i(61511),u=i(67806),h=i(66283),d=i(80340),p=i(15980),g=i(29236),f=i(37665);function m(t,e){1&t&&a._UZ(0,"mat-spinner",3)}function b(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-checkbox",14),a.NdJ("click",function(){return a.CHM(t),a.oxw(2).loadVoGroups()})("ngModelChange",function(e){return a.CHM(t),a.oxw(2).asSubgroup=e}),a._uU(1),a.ALo(2,"translate"),a.qZA()}if(2&t){const t=a.oxw(2);a.Q6J("labelPosition","before")("ngModel",t.asSubgroup),a.xp6(1),a.hij(" ",a.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function _(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"perun-web-apps-group-search-select",15),a.NdJ("groupSelected",function(e){return a.CHM(t),a.oxw(2).selectedParent=e}),a.qZA()}if(2&t){const t=a.oxw(2);a.Q6J("disableAutoSelect",!0)("groups",t.voGroups)}}function w(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div"),a.TgZ(1,"div",4),a.TgZ(2,"mat-form-field"),a.TgZ(3,"label",5),a._UZ(4,"input",6),a.ALo(5,"translate"),a.qZA(),a.TgZ(6,"mat-error"),a._uU(7),a.ALo(8,"translate"),a.qZA(),a.qZA(),a.TgZ(9,"mat-form-field",7),a.TgZ(10,"label",5),a.TgZ(11,"textarea",8),a.ALo(12,"translate"),a._uU(13," "),a.qZA(),a.qZA(),a.qZA(),a.YNc(14,b,3,5,"mat-checkbox",9),a.YNc(15,_,1,2,"perun-web-apps-group-search-select",10),a.qZA(),a.TgZ(16,"div",11),a.TgZ(17,"button",12),a.NdJ("click",function(){return a.CHM(t),a.oxw().onCancel()}),a._uU(18),a.ALo(19,"translate"),a.qZA(),a.TgZ(20,"button",13),a.NdJ("click",function(){return a.CHM(t),a.oxw().onSubmit()}),a._uU(21),a.ALo(22,"translate"),a.qZA(),a.qZA(),a.qZA()}if(2&t){const t=a.oxw();a.xp6(4),a.s9C("placeholder",a.lcZ(5,10,"DIALOGS.CREATE_GROUP.NAME")),a.Q6J("formControl",t.nameControl),a.xp6(3),a.hij(" ",t.invalidNameMessage.length?t.invalidNameMessage:a.lcZ(8,12,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),a.xp6(4),a.s9C("placeholder",a.lcZ(12,14,"DIALOGS.CREATE_GROUP.DESCRIPTION")),a.Q6J("formControl",t.descriptionControl),a.xp6(3),a.Q6J("ngIf",t.isNotSubGroup),a.xp6(1),a.Q6J("ngIf",t.asSubgroup),a.xp6(3),a.hij(" ",a.lcZ(19,16,"DIALOGS.CREATE_GROUP.CANCEL")," "),a.xp6(2),a.Q6J("disabled",t.nameControl.invalid||t.descriptionControl.invalid||t.asSubgroup&&null===t.selectedParent||t.loading),a.xp6(1),a.hij(" ",a.lcZ(22,18,"DIALOGS.CREATE_GROUP.CREATE")," ")}}let A=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.groupService=i,this.translate=n,this.notificator=s,this.store=o,this.asSubgroup=!1,this.invalidNameMessage=this.store.get("group_name_error_message"),this.secondaryRegex=this.store.get("group_name_secondary_regex"),this.voGroups=[],this.nameFunction=t=>t.name,this.isNotSubGroup=null===this.data.parentGroup,this.isNotSubGroup?n.get("DIALOGS.CREATE_GROUP.TITLE").subscribe(t=>this.title=t):n.get("DIALOGS.CREATE_GROUP.TITLE_SUB_GROUP").subscribe(t=>{this.title=t+this.data.parentGroup.name}),n.get("DIALOGS.CREATE_GROUP.SUCCESS").subscribe(t=>this.successMessage=t),n.get("DIALOGS.CREATE_GROUP.SUCCESS_SUBGROUP").subscribe(t=>this.successSubGroupMessage=t)}ngOnInit(){this.theme=this.data.theme,this.invalidNameMessage=this.invalidNameMessage&&this.secondaryRegex?this.invalidNameMessage:"",this.nameControl=new r.NI("",[r.kI.required,r.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),r.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new r.NI(""),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(t=>{this.voGroups=t.filter(t=>"members"!==t.name)})}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(o.ff),a.Y36(c.sK),a.Y36(s.V6),a.Y36(s.d6))},t.\u0275cmp=a.Xpm({type:t,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,"labelPosition","ngModel","click","ngModelChange",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,"labelPosition","ngModel","click","ngModelChange"],[1,"long-input",3,"disableAutoSelect","groups","groupSelected"]],template:function(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.qZA(),a.TgZ(2,"div"),a.YNc(3,m,1,0,"mat-spinner",1),a.YNc(4,w,23,20,"div",2),a.qZA()),2&t&&(a.xp6(1),a.Oqu(e.title),a.xp6(1),a.Tol(e.theme),a.xp6(1),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading))},directives:[n.uh,l.O5,u.$g,n.xY,h.KE,d.Nt,r.Fj,r.Q7,r.JJ,r.oH,h.TO,d.D7,n.H8,p.lW,g.oG,r.On,f.h],pipes:[c.X$],styles:[""]}),t})()},20247:function(t,e,i){"use strict";i.d(e,{e:function(){return D}});var n=i(31572),s=i(16073),o=i(67033),r=i(61511),a=i(67806),c=i(84608),l=i(15980),u=i(43691),h=i(85250),d=i(39571),p=i(66283),g=i(80340),f=i(48160);function m(t,e){1&t&&n._UZ(0,"mat-spinner",2)}function b(t,e){if(1&t&&(n.TgZ(0,"div",16),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"translate"),n.TgZ(4,"span",17),n._uU(5),n.ALo(6,"translate"),n.qZA(),n._uU(7),n.ALo(8,"translate"),n.qZA()),2&t){const t=n.oxw(2);n.xp6(1),n.lnq(" ",n.lcZ(2,6,"DIALOGS.DELETE_ENTITY.BASIC")," ",n.lcZ(3,8,"DIALOGS.DELETE_ENTITY.ONLY")," ",t.entityType," "),n.xp6(4),n.Oqu(n.lcZ(6,10,"DIALOGS.DELETE_ENTITY.OR")),n.xp6(2),n.AsE(" ",t.entityType," ",n.lcZ(8,12,"DIALOGS.DELETE_ENTITY.RELATIONS"),"? ")}}function _(t,e){if(1&t&&(n.TgZ(0,"div",16),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t){const t=n.oxw(2);n.xp6(1),n.AsE(" ",n.lcZ(2,2,"DIALOGS.DELETE_ENTITY.BASIC")," ",t.entityType," ? ")}}function w(t,e){1&t&&n._UZ(0,"th",18)}function A(t,e){if(1&t&&(n.TgZ(0,"td",19),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.name)}}function y(t,e){1&t&&n._UZ(0,"tr",20)}function v(t,e){1&t&&n._UZ(0,"tr",21)}function T(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",22),n.NdJ("click",function(){return n.CHM(t),n.oxw(2).force=!0}),n.TgZ(1,"mat-icon"),n._uU(2,"warning"),n.qZA(),n._uU(3),n.ALo(4,"translate"),n.ALo(5,"translate"),n.qZA()}2&t&&(n.xp6(3),n.AsE(" ",n.lcZ(4,2,"DIALOGS.DELETE_ENTITY.DELETE")," ",n.lcZ(5,4,"DIALOGS.DELETE_ENTITY.RELATIONS")," "))}const C=function(){return["name"]};function E(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"div"),n.TgZ(1,"h1",3),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"div",4),n.YNc(5,b,9,14,"div",5),n.YNc(6,_,3,4,"div",5),n.TgZ(7,"table",6),n.ynx(8,7),n.YNc(9,w,1,0,"th",8),n.YNc(10,A,2,1,"td",9),n.BQk(),n.YNc(11,y,1,0,"tr",10),n.YNc(12,v,1,0,"tr",11),n.qZA(),n.qZA(),n.TgZ(13,"div",12),n.TgZ(14,"button",13),n.NdJ("click",function(){return n.CHM(t),n.oxw().onCancel()}),n._uU(15),n.ALo(16,"translate"),n.qZA(),n.TgZ(17,"button",14),n.NdJ("click",function(){return n.CHM(t),n.oxw().onDelete()}),n._uU(18),n.ALo(19,"translate"),n.qZA(),n.YNc(20,T,6,6,"button",15),n.qZA(),n.qZA()}if(2&t){const t=n.oxw();n.xp6(2),n.AsE("",n.lcZ(3,10,"DIALOGS.DELETE_ENTITY.DELETE")," ",t.entityType,""),n.xp6(3),n.Q6J("ngIf",!t.disableForce),n.xp6(1),n.Q6J("ngIf",t.disableForce),n.xp6(1),n.Q6J("dataSource",t.entityNames),n.xp6(4),n.Q6J("matHeaderRowDef",n.DdM(16,C)),n.xp6(1),n.Q6J("matRowDefColumns",n.DdM(17,C)),n.xp6(3),n.hij(" ",n.lcZ(16,12,"DIALOGS.DELETE_ENTITY.CANCEL")," "),n.xp6(3),n.hij(" ",n.lcZ(19,14,"DIALOGS.DELETE_ENTITY.DELETE")," "),n.xp6(2),n.Q6J("ngIf",!t.disableForce)}}function S(t,e){if(1&t&&(n.TgZ(0,"mat-list-item"),n.TgZ(1,"span"),n.TgZ(2,"mat-icon",27),n._uU(3,"fiber_manual_record"),n.qZA(),n._uU(4),n.qZA(),n.qZA()),2&t){const t=e.$implicit;n.xp6(4),n.hij(" ",t," ")}}function k(t,e){if(1&t&&(n.TgZ(0,"div"),n._uU(1),n.qZA()),2&t){const t=n.oxw(2);n.xp6(1),n.hij(" ",t.anotherMessage," ")}}function I(t,e){1&t&&n._UZ(0,"th",18)}function x(t,e){if(1&t&&(n.TgZ(0,"td",19),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.name)}}function R(t,e){1&t&&n._UZ(0,"tr",20)}function O(t,e){1&t&&n._UZ(0,"tr",21)}function P(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"div"),n.TgZ(1,"h1",3),n._uU(2),n.ALo(3,"translate"),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"div",4),n.TgZ(6,"div",16),n._uU(7),n.ALo(8,"translate"),n.TgZ(9,"mat-list"),n.YNc(10,S,5,1,"mat-list-item",23),n.qZA(),n.YNc(11,k,2,1,"div",1),n.TgZ(12,"app-alert",24),n._uU(13),n.ALo(14,"translate"),n.qZA(),n.TgZ(15,"table",6),n.ynx(16,7),n.YNc(17,I,1,0,"th",8),n.YNc(18,x,2,1,"td",9),n.BQk(),n.YNc(19,R,1,0,"tr",10),n.YNc(20,O,1,0,"tr",11),n.qZA(),n.qZA(),n.TgZ(21,"mat-form-field"),n._UZ(22,"input",25),n.ALo(23,"translate"),n.qZA(),n.qZA(),n.TgZ(24,"div",12),n.TgZ(25,"button",13),n.NdJ("click",function(){return n.CHM(t),n.oxw().onCancel()}),n._uU(26),n.ALo(27,"translate"),n.qZA(),n.TgZ(28,"button",26),n.NdJ("click",function(){return n.CHM(t),n.oxw().onDelete()}),n.TgZ(29,"mat-icon"),n._uU(30,"warning"),n.qZA(),n._uU(31),n.ALo(32,"translate"),n.ALo(33,"translate"),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=n.oxw();n.xp6(2),n.lnq(" ",n.lcZ(3,17,"DIALOGS.DELETE_ENTITY.DELETE")," ",t.entityType," ",n.lcZ(4,19,"DIALOGS.DELETE_ENTITY.RELATIONS")," "),n.xp6(5),n.hij(" ",n.lcZ(8,21,"DIALOGS.DELETE_ENTITY.WARN"),": "),n.xp6(3),n.Q6J("ngForOf",t.relations),n.xp6(1),n.Q6J("ngIf",t.anotherMessage),n.xp6(2),n.AsE(" ",n.lcZ(14,23,"DIALOGS.DELETE_ENTITY.ASK")," ",t.entityType," ? "),n.xp6(2),n.Q6J("dataSource",t.entityNames),n.xp6(4),n.Q6J("matHeaderRowDef",n.DdM(33,C)),n.xp6(1),n.Q6J("matRowDefColumns",n.DdM(34,C)),n.xp6(2),n.s9C("placeholder",n.lcZ(23,25,"DIALOGS.DELETE_ENTITY.CONTROL")),n.Q6J("formControl",t.deleteControl),n.xp6(4),n.hij(" ",n.lcZ(27,27,"DIALOGS.DELETE_ENTITY.CANCEL")," "),n.xp6(2),n.Q6J("disabled",t.deleteControl.invalid),n.xp6(3),n.AsE(" ",n.lcZ(32,29,"DIALOGS.DELETE_ENTITY.DELETE")," ",n.lcZ(33,31,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}let D=(()=>{class t{constructor(){this.entityNames=new o.by,this.relations=[],this.disableForce=!1,this.loading=!1,this.deleted=new n.vpe,this.force=!1,this.deleteReg=/^DELETE$/,this.deleteControl=new s.NI("",[s.kI.required,s.kI.pattern(this.deleteReg)])}onCancel(){this.deleted.emit({deleted:!1,force:!1})}onDelete(){this.deleted.emit({deleted:!0,force:this.force})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-delete-entity-dialog"]],inputs:{title:"title",entityNames:"entityNames",entityType:"entityType",relations:"relations",anotherMessage:"anotherMessage",disableForce:"disableForce",loading:"loading"},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"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn","data-cy","delete-button-dialog",1,"ml-2",3,"click"],["class","ml-2","mat-flat-button","","color","warn","data-cy","force-delete",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",""],["mat-flat-button","","color","warn","data-cy","force-delete",1,"ml-2",3,"click"],[4,"ngFor","ngForOf"],["alert_type","warn"],["data-cy","force-delete-control","matInput","",3,"formControl","placeholder"],["mat-flat-button","","color","warn","data-cy","force-delete-button",1,"ml-2",3,"disabled","click"],[1,"dot-icon"]],template:function(t,e){1&t&&(n.YNc(0,m,1,0,"mat-spinner",0),n.YNc(1,E,21,18,"div",1),n.YNc(2,P,34,35,"div",1)),2&t&&(n.Q6J("ngIf",e.loading),n.xp6(1),n.Q6J("ngIf",!e.force&&!e.loading),n.xp6(1),n.Q6J("ngIf",e.force&&!e.loading))},directives:[r.O5,a.$g,c.uh,c.xY,o.BZ,o.w1,o.fO,o.Dz,o.as,o.nj,c.H8,l.lW,o.ge,o.ev,o.XQ,o.Gk,u.Hw,h.i$,r.sg,d.w,p.KE,g.Nt,s.Fj,s.JJ,s.oH,h.Tg],pipes:[f.X$],styles:[".dot-icon[_ngcontent-%COMP%]{font-size:small;vertical-align:-1px}.table-margin[_ngcontent-%COMP%]{margin-top:-50px;margin-bottom:20px}"]}),t})()},30570:function(t,e,i){"use strict";i.d(e,{Y:function(){return u}});var n=i(65249),s=i(84608),o=i(68416),r=i(67033),a=i(31572),c=i(48160),l=i(20247);let u=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.facilitiesManager=i,this.notificator=n,this.translate=s,this.displayedColumns=["name"],this.loading=!1,this.force=!1,this.relations=[]}ngOnInit(){this.theme=this.data.theme,this.facility=this.data.facility,this.dataSource=new r.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(t){this.force=t.force,t.deleted?this.onConfirm():this.onCancel()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI),a.Y36(n.IQ),a.Y36(o.V6),a.Y36(c.sK))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-delete-facility-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","relations","loading","deleted"]],template:function(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"app-delete-entity-dialog",0),a.NdJ("deleted",function(t){return e.onSubmit(t)}),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(1),a.Q6J("entityNames",e.dataSource)("entityType","facilities")("relations",e.relations)("loading",e.loading))},directives:[l.e],styles:[""]}),t})()},43491:function(t,e,i){"use strict";i.d(e,{P:function(){return u}});var n=i(84608),s=i(67033),o=i(68416),r=i(65249),a=i(31572),c=i(48160),l=i(20247);let u=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.groupService=s,this.displayedColumns=["name"],this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new s.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 t=this.data.groups.map(t=>t.id);this.groupService.deleteGroups({groups:t,forceDelete:this.force}).subscribe(()=>{this.translate.get("DIALOGS.DELETE_GROUP.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}onSubmit(t){this.force=t.force,t.deleted?this.onDelete():this.onCancel()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(o.V6),a.Y36(c.sK),a.Y36(r.ff))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-delete-group-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","relations","loading","deleted"]],template:function(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"app-delete-entity-dialog",0),a.NdJ("deleted",function(t){return e.onSubmit(t)}),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(1),a.Q6J("entityNames",e.dataSource)("entityType","groups")("relations",e.relations)("loading",e.loading))},directives:[l.e],styles:[""]}),t})()},75954:function(t,e,i){"use strict";i.d(e,{_:function(){return X}});var n=i(84608),s=i(65249),o=i(84140),r=i(41939),a=i(68416),c=i(31572),l=i(48160),u=i(61511),h=i(15980),d=i(67806),p=i(55109);const g=["*"];let f=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-edit-application-form-item-line"]],inputs:{label:"label",description:"description"},ngContentSelectors:g,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(t,e){1&t&&(c.F$t(),c.TgZ(0,"div",0),c.TgZ(1,"span",1),c._uU(2),c.qZA(),c.TgZ(3,"div",2),c.Hsn(4),c.qZA(),c.qZA(),c.TgZ(5,"div",3),c._UZ(6,"span",4),c.TgZ(7,"div",5),c._uU(8),c.qZA(),c.qZA()),2&t&&(c.xp6(2),c.hij("",e.label,":"),c.xp6(6),c.hij(" ",e.description," "))},styles:[""]}),t})();var m=i(66283),b=i(80340),_=i(16073),w=i(29236),A=i(4786),y=i(94327),v=i(71522),T=i(30725),C=i(10901),E=i(36922),S=i(43691),k=i(65050);let I=(()=>{class t{constructor(t){this.translateService=t}transform(t){switch(t){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED."+t);default:return t}}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(l.sK,16))},t.\u0275pipe=c.Yjl({name:"applicationFormItemDisabled",type:t,pure:!0}),t})(),x=(()=>{class t{constructor(t){this.translateService=t}transform(t){switch(t){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN."+t);default:return t}}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(l.sK,16))},t.\u0275pipe=c.Yjl({name:"applicationFormItemHidden",type:t,pure:!0}),t})();function R(t,e){1&t&&c._UZ(0,"mat-spinner",7)}function O(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"section"),c.TgZ(5,"mat-checkbox",21),c.NdJ("ngModelChange",function(e){return c.CHM(t),c.oxw(3).applicationFormItem.updatable=e}),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=c.oxw(3);c.xp6(1),c.Q6J("label",c.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE"))("description",c.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",t.applicationFormItem.updatable)}}function P(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div",12),c.TgZ(1,"mat-form-field",12),c.TgZ(2,"input",13),c.NdJ("ngModelChange",function(e){return c.CHM(t),c.oxw(3).applicationFormItem.federationAttribute=e}),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=c.oxw(3);c.xp6(2),c.Q6J("ngModel",t.applicationFormItem.federationAttribute)}}function D(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"section"),c.TgZ(5,"mat-checkbox",21),c.NdJ("ngModelChange",function(e){return c.CHM(t),c.oxw(2).applicationFormItem.required=e}),c.qZA(),c.qZA(),c.qZA(),c.YNc(6,O,6,7,"div",16),c.TgZ(7,"app-edit-application-form-item-line",11),c.ALo(8,"translate"),c.ALo(9,"translate"),c.TgZ(10,"div",12),c.TgZ(11,"perun-web-apps-selection-item-search-select",22),c.NdJ("itemSelected",function(e){return c.CHM(t),c.oxw(2).applicationFormItem.perunSourceAttribute=e.value}),c.qZA(),c.qZA(),c.qZA(),c.TgZ(12,"app-edit-application-form-item-line",11),c.ALo(13,"translate"),c.ALo(14,"translate"),c.TgZ(15,"div",12),c.TgZ(16,"perun-web-apps-selection-item-search-select",22),c.NdJ("itemSelected",function(e){return c.CHM(t),c.oxw(2).applicationFormItem.perunDestinationAttribute=e.value}),c.qZA(),c.qZA(),c.qZA(),c.TgZ(17,"app-edit-application-form-item-line",11),c.ALo(18,"translate"),c.ALo(19,"translate"),c.TgZ(20,"div",12),c.TgZ(21,"perun-web-apps-selection-item-search-select",23),c.NdJ("itemSelected",function(e){return c.CHM(t),c.oxw(2).federationAttribute=e.value}),c.qZA(),c.qZA(),c.YNc(22,P,3,1,"div",24),c.qZA(),c.qZA()}if(2&t){const t=c.oxw(2);c.xp6(1),c.Q6J("label",c.lcZ(2,22,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED"))("description",c.lcZ(3,24,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",t.applicationFormItem.required),c.xp6(1),c.Q6J("ngIf",t.typesWithUpdatable.indexOf(t.applicationFormItem.type)>-1),c.xp6(1),c.Q6J("label",c.lcZ(8,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE"))("description",c.lcZ(9,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE_DESCRIPTION")),c.xp6(4),c.Q6J("attributes",t.attributeDefinitions)("selectedAttribute",t.applicationFormItem.perunSourceAttribute)("asGroup",!!t.data.group)("type",t.itemType.SOURCE),c.xp6(1),c.Q6J("label",c.lcZ(13,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE"))("description",c.lcZ(14,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE_DESCRIPTION")),c.xp6(4),c.Q6J("attributes",t.attributeDefinitions)("selectedAttribute",t.applicationFormItem.perunDestinationAttribute)("asGroup",!!t.data.group)("type",t.itemType.DESTINATION),c.xp6(1),c.Q6J("label",c.lcZ(18,34,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE"))("description",c.lcZ(19,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE_DESCRIPTION")),c.xp6(4),c.Q6J("selectedAttribute",t.applicationFormItem.federationAttribute)("asGroup",!!t.data.group)("type",t.itemType.FEDERATION),c.xp6(1),c.Q6J("ngIf","custom"===t.federationAttribute)}}function M(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"mat-form-field",12),c.TgZ(5,"input",13),c.NdJ("ngModelChange",function(e){return c.CHM(t),c.oxw(2).applicationFormItem.regex=e}),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=c.oxw(2);c.xp6(1),c.Q6J("label",c.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX"))("description",c.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",t.applicationFormItem.regex)}}function L(t,e){if(1&t&&(c.TgZ(0,"mat-option",25),c._uU(1),c.ALo(2,"applicationFormItemDisabled"),c.qZA()),2&t){const t=e.$implicit;c.Q6J("value",t),c.xp6(1),c.hij(" ",c.lcZ(2,2,t)," ")}}function N(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"perun-web-apps-app-form-item-search-select",26),c.NdJ("itemSelected",function(e){return c.CHM(t),c.oxw(3).disabledDependencyItem=e}),c.qZA()}if(2&t){const t=c.oxw(3);c.Q6J("item",t.disabledDependencyItem)("items",t.possibleDependencyItems)}}function z(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"mat-form-field",12),c.TgZ(5,"mat-select",17),c.NdJ("valueChange",function(e){return c.CHM(t),c.oxw(2).applicationFormItem.disabled=e}),c.YNc(6,L,3,4,"mat-option",18),c.qZA(),c.qZA(),c.qZA(),c.TgZ(7,"app-edit-application-form-item-line",11),c.ALo(8,"translate"),c.ALo(9,"translate"),c.TgZ(10,"div",12),c.YNc(11,N,1,2,"perun-web-apps-app-form-item-search-select",19),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=c.oxw(2);c.xp6(1),c.Q6J("label",c.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED"))("description",c.lcZ(3,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DESCRIPTION")),c.xp6(4),c.Q6J("value",t.applicationFormItem.disabled),c.xp6(1),c.Q6J("ngForOf",t.disabledValues),c.xp6(1),c.Q6J("label",c.lcZ(8,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY"))("description",c.lcZ(9,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY_DESCRIPTION")),c.xp6(4),c.Q6J("ngIf",null!==t.disabledDependencyItem)}}function Z(t,e){if(1&t&&(c.TgZ(0,"mat-option",25),c._uU(1),c.ALo(2,"applicationFormItemHidden"),c.qZA()),2&t){const t=e.$implicit;c.Q6J("value",t),c.xp6(1),c.hij(" ",c.lcZ(2,2,t)," ")}}function B(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"perun-web-apps-app-form-item-search-select",26),c.NdJ("itemSelected",function(e){return c.CHM(t),c.oxw(2).hiddenDependencyItem=e}),c.qZA()}if(2&t){const t=c.oxw(2);c.Q6J("item",t.hiddenDependencyItem)("items",t.possibleDependencyItems)}}function F(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"mat-form-field",12),c.TgZ(5,"textarea",27),c.NdJ("ngModelChange",function(e){c.CHM(t);const i=c.oxw().$implicit;return c.oxw(2).applicationFormItem.i18n[i].label=e}),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=c.oxw().$implicit,e=c.oxw(2);c.xp6(1),c.Q6J("label",c.lcZ(2,4,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT"))("description",c.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT_DESCRIPTION")),c.xp6(4),c.Q6J("cdkTextareaAutosize",!0)("ngModel",e.applicationFormItem.i18n[t].label)}}function U(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"mat-form-field",12),c.TgZ(5,"textarea",13),c.NdJ("ngModelChange",function(e){c.CHM(t);const i=c.oxw().$implicit;return c.oxw(2).applicationFormItem.i18n[i].label=e}),c.qZA(),c.qZA(),c.qZA(),c.TgZ(6,"app-edit-application-form-item-line",11),c.ALo(7,"translate"),c.ALo(8,"translate"),c.TgZ(9,"mat-form-field",12),c.TgZ(10,"textarea",13),c.NdJ("ngModelChange",function(e){c.CHM(t);const i=c.oxw().$implicit;return c.oxw(2).applicationFormItem.i18n[i].help=e}),c.qZA(),c.qZA(),c.qZA(),c.TgZ(11,"app-edit-application-form-item-line",11),c.ALo(12,"translate"),c.ALo(13,"translate"),c.TgZ(14,"mat-form-field",12),c.TgZ(15,"textarea",13),c.NdJ("ngModelChange",function(e){c.CHM(t);const i=c.oxw().$implicit;return c.oxw(2).applicationFormItem.i18n[i].errorMessage=e}),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=c.oxw().$implicit,e=c.oxw(2);c.xp6(1),c.Q6J("label",c.lcZ(2,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"))("description",c.lcZ(3,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",e.applicationFormItem.i18n[t].label),c.xp6(1),c.Q6J("label",c.lcZ(7,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP"))("description",c.lcZ(8,15,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",e.applicationFormItem.i18n[t].help),c.xp6(1),c.Q6J("label",c.lcZ(12,17,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR"))("description",c.lcZ(13,19,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",e.applicationFormItem.i18n[t].errorMessage)}}function q(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"mat-form-field",12),c.TgZ(5,"textarea",13),c.NdJ("ngModelChange",function(e){c.CHM(t);const i=c.oxw().$implicit;return c.oxw(2).applicationFormItem.i18n[i].label=e}),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=c.oxw().$implicit,e=c.oxw(2);c.xp6(1),c.Q6J("label",c.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"))("description",c.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_BUTTON_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",e.applicationFormItem.i18n[t].label)}}function H(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.TgZ(3,"mat-form-field"),c.TgZ(4,"input",13),c.NdJ("ngModelChange",function(t){return e.$implicit[0]=t}),c.qZA(),c.qZA(),c._uU(5),c.ALo(6,"translate"),c.TgZ(7,"mat-form-field"),c.TgZ(8,"input",13),c.NdJ("ngModelChange",function(t){return e.$implicit[1]=t}),c.qZA(),c.qZA(),c.TgZ(9,"button",36),c.NdJ("click",function(){const e=c.CHM(t).$implicit,i=c.oxw(2).$implicit;return c.oxw(2).removeOption(e,i)}),c.ALo(10,"translate"),c.TgZ(11,"mat-icon"),c._uU(12,"clear"),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=e.$implicit;c.xp6(1),c.hij(" ",c.lcZ(2,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.VALUE"),": "),c.xp6(3),c.Q6J("ngModel",t[0]),c.xp6(1),c.hij(" ",c.lcZ(6,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"),": "),c.xp6(3),c.Q6J("ngModel",t[1]),c.xp6(1),c.s9C("matTooltip",c.lcZ(10,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REMOVE_OPTION"))}}function G(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"div",28),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"div",29),c._uU(5),c.ALo(6,"translate"),c.qZA(),c.TgZ(7,"div",30),c.TgZ(8,"button",31),c.NdJ("click",function(){c.CHM(t);const e=c.oxw().$implicit;return c.oxw(2).sortOptionsAZ(e)}),c.TgZ(9,"i",32),c._uU(10,"arrow_downward"),c.qZA(),c._uU(11),c.ALo(12,"translate"),c.qZA(),c.TgZ(13,"button",33),c.NdJ("click",function(){c.CHM(t);const e=c.oxw().$implicit;return c.oxw(2).sortOptionsZA(e)}),c.TgZ(14,"i",32),c._uU(15,"arrow_upward"),c.qZA(),c._uU(16),c.ALo(17,"translate"),c.qZA(),c.qZA(),c.YNc(18,H,13,11,"div",34),c.TgZ(19,"button",35),c.NdJ("click",function(){c.CHM(t);const e=c.oxw().$implicit;return c.oxw(2).addOption(e)}),c._uU(20),c.ALo(21,"translate"),c.qZA(),c.qZA()}if(2&t){const t=c.oxw().$implicit,e=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",e.options[t]),c.xp6(2),c.hij(" ",c.lcZ(21,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ADD_OPTION")," ")}}const j=function(){return["HEADING","HTML_COMMENT"]},Y=function(){return["TEXTFIELD","FROM_FEDERATION_HIDDEN","FROM_FEDERATION_SHOW","VALIDATED_EMAIL","USERNAME","PASSWORD","RADIO","TEXTAREA","COMBOBOX","CHECKBOX","TIMEZONE","SELECTIONBOX","EMBEDDED_GROUP_APPLICATION"]},K=function(){return["SUBMIT_BUTTON","AUTO_SUBMIT_BUTTON"]},V=function(){return["RADIO","COMBOBOX","CHECKBOX","SELECTIONBOX"]};function $(t,e){if(1&t&&(c.TgZ(0,"mat-tab",10),c.ALo(1,"translate"),c.ALo(2,"uppercase"),c.YNc(3,F,6,8,"div",16),c.YNc(4,U,16,21,"div",16),c.YNc(5,q,6,7,"div",16),c.YNc(6,G,22,16,"div",16),c.qZA()),2&t){const t=e.$implicit,i=c.oxw(2);c.s9C("label",c.lcZ(1,5,c.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LANGUAGE_"+t))),c.xp6(3),c.Q6J("ngIf",i.isApplicationFormItemOfType(c.DdM(9,j))),c.xp6(1),c.Q6J("ngIf",i.isApplicationFormItemOfType(c.DdM(10,Y))),c.xp6(1),c.Q6J("ngIf",i.isApplicationFormItemOfType(c.DdM(11,K))),c.xp6(1),c.Q6J("ngIf",i.isApplicationFormItemOfType(c.DdM(12,V)))}}const J=function(){return["TEXTFIELD","FROM_FEDERATION_HIDDEN","FROM_FEDERATION_SHOW","USERNAME","VALIDATED_EMAIL","PASSWORD","TEXTAREA","TIMEZONE","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX"]},Q=function(){return["TEXTFIELD","FROM_FEDERATION_HIDDEN","FROM_FEDERATION_SHOW","USERNAME","PASSWORD","TEXTAREA","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX"]};function W(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div",8),c.TgZ(1,"mat-tab-group",9),c.TgZ(2,"mat-tab",10),c.ALo(3,"translate"),c.TgZ(4,"app-edit-application-form-item-line",11),c.ALo(5,"translate"),c.ALo(6,"translate"),c.TgZ(7,"mat-form-field",12),c.TgZ(8,"input",13),c.NdJ("ngModelChange",function(e){return c.CHM(t),c.oxw().applicationFormItem.shortname=e}),c.qZA(),c.qZA(),c.qZA(),c.TgZ(9,"app-edit-application-form-item-line",11),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",11),c.ALo(15,"translate"),c.ALo(16,"translate"),c.TgZ(17,"section"),c.TgZ(18,"mat-checkbox",14),c.NdJ("change",function(){return c.CHM(t),c.oxw().onChangingType("INITIAL")}),c._uU(19),c.ALo(20,"translate"),c.qZA(),c.TgZ(21,"mat-checkbox",15),c.NdJ("change",function(){return c.CHM(t),c.oxw().onChangingType("EXTENSION")}),c._uU(22),c.ALo(23,"translate"),c.qZA(),c.qZA(),c.qZA(),c.YNc(24,D,23,38,"div",16),c.YNc(25,M,6,7,"div",16),c.YNc(26,z,12,15,"div",16),c.TgZ(27,"app-edit-application-form-item-line",11),c.ALo(28,"translate"),c.ALo(29,"translate"),c.TgZ(30,"mat-form-field",12),c.TgZ(31,"mat-select",17),c.NdJ("valueChange",function(e){return c.CHM(t),c.oxw().applicationFormItem.hidden=e}),c.YNc(32,Z,3,4,"mat-option",18),c.qZA(),c.qZA(),c.qZA(),c.TgZ(33,"app-edit-application-form-item-line",11),c.ALo(34,"translate"),c.ALo(35,"translate"),c.TgZ(36,"div",12),c.YNc(37,B,1,2,"perun-web-apps-app-form-item-search-select",19),c.qZA(),c.qZA(),c.qZA(),c.YNc(38,$,7,13,"mat-tab",20),c.qZA(),c.qZA()}if(2&t){const t=c.oxw();c.xp6(2),c.s9C("label",c.lcZ(3,24,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.BASIC_SETTINGS")),c.xp6(2),c.Q6J("label",c.lcZ(5,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME"))("description",c.lcZ(6,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",t.applicationFormItem.shortname),c.xp6(1),c.Q6J("label",c.lcZ(10,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET"))("description",c.lcZ(11,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET_DESCRIPTION")),c.xp6(3),c.hij(" ",c.lcZ(13,34,t.applicationFormItem.type)," "),c.xp6(2),c.Q6J("label",c.lcZ(15,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION"))("description",c.lcZ(16,38,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",t.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",t.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",t.isApplicationFormItemOfType(c.DdM(52,J))),c.xp6(1),c.Q6J("ngIf",t.isApplicationFormItemOfType(c.DdM(53,Q))),c.xp6(1),c.Q6J("ngIf",t.typesWithDisabled.indexOf(t.applicationFormItem.type)>-1),c.xp6(1),c.Q6J("label",c.lcZ(28,44,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN"))("description",c.lcZ(29,46,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DESCRIPTION")),c.xp6(4),c.Q6J("value",t.applicationFormItem.hidden),c.xp6(1),c.Q6J("ngForOf",t.hiddenValues),c.xp6(1),c.Q6J("label",c.lcZ(34,48,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY"))("description",c.lcZ(35,50,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY_DESCRIPTION")),c.xp6(4),c.Q6J("ngIf",null!==t.hiddenDependencyItem),c.xp6(1),c.Q6J("ngForOf",t.languages)}}let X=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.attributesManager=i,this.translateService=n,this.store=s,this.federationAttribute="",this.itemType=r.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"],this.hiddenDependencyItem=null,this.disabledDependencyItem=null,this.dependencyTypes=["PASSWORD","VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","USERNAME"],this.languages=["en"]}ngOnInit(){this.languages=this.store.get("supported_languages"),this.hiddenDependencyItem=this.data.allItems.find(t=>t.id===this.data.applicationFormItem.hiddenDependencyItemId),this.hiddenDependencyItem||(this.hiddenDependencyItem=r.Sx),this.disabledDependencyItem=this.data.allItems.find(t=>t.id===this.data.applicationFormItem.disabledDependencyItemId),this.disabledDependencyItem||(this.disabledDependencyItem=r.Sx),this.theme=this.data.theme,this.possibleDependencyItems=this.getPossibleDepItems(),this.applicationFormItem=(0,o.dv)(this.languages),this.copy(this.data.applicationFormItem,this.applicationFormItem),this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(t=>{this.attributeDefinitions=t,this.loading=!1},()=>this.loading=!1),null===this.applicationFormItem.perunDestinationAttribute&&(this.applicationFormItem.perunDestinationAttribute=""),null===this.applicationFormItem.perunSourceAttribute&&(this.applicationFormItem.perunSourceAttribute=""),this.getOptions()}getPossibleDepItems(){return[r.Sx].concat(this.data.allItems.filter(t=>this.dependencyTypes.indexOf(t.type)>-1).filter(t=>t.id!==this.data.applicationFormItem.id))}cancel(){this.dialogRef.close()}submit(){this.applicationFormItem.hiddenDependencyItemId=this.hiddenDependencyItem===r.Sx?null:this.hiddenDependencyItem.id,this.applicationFormItem.disabledDependencyItemId=this.disabledDependencyItem===r.Sx?null:this.disabledDependencyItem.id,this.updateOptions(),this.copy(this.applicationFormItem,this.data.applicationFormItem),this.dialogRef.close(!0)}onChangingType(t){if(this.applicationFormItem.applicationTypes.includes(t)){const e=this.applicationFormItem.applicationTypes.indexOf(t);this.applicationFormItem.applicationTypes.splice(e,1)}else this.applicationFormItem.applicationTypes.push(t)}addOption(t){this.options[t].push(["",""])}removeOption(t,e){this.options[e]=this.options[e].filter(e=>!(e[0]===t[0]&&e[1]===t[1]))}updateOption(t){let e="";if(this.options&&this.options[t])for(const i of this.options[t])""!==i[0]&&""!==i[1]&&(e=""===e?i[0]+"#"+i[1]:e+"|"+i[0]+"#"+i[1]);this.applicationFormItem.i18n[t].options=e}updateOptions(){for(const t of this.languages)this.updateOption(t)}copy(t,e){e.applicationTypes=t.applicationTypes,e.federationAttribute=t.federationAttribute,e.forDelete=t.forDelete;for(const i of this.languages)e.i18n[i].errorMessage=t.i18n[i].errorMessage,e.i18n[i].help=t.i18n[i].help,e.i18n[i].label=t.i18n[i].label,e.i18n[i].options=t.i18n[i].options;e.id=t.id,e.ordnum=t.ordnum,e.perunDestinationAttribute=t.perunDestinationAttribute,e.perunSourceAttribute=t.perunSourceAttribute,e.regex=t.regex,e.required=t.required,e.shortname=t.shortname,e.type=t.type,e.updatable=t.updatable,e.disabled=t.disabled,e.hidden=t.hidden,e.disabledDependencyItemId=t.disabledDependencyItemId,e.hiddenDependencyItemId=t.hiddenDependencyItemId}sortOptionsAZ(t){this.options[t]=this.options[t].sort((t,e)=>t[1]>e[1]?1:t[1]t[1]>e[1]?-1:t[1]-1}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(n.so),c.Y36(n.WI),c.Y36(s.H8),c.Y36(l.sK),c.Y36(a.d6))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-edit-application-form-item-dialog"]],decls:14,vars:16,consts:[[1,"h-100","d-flex","flex-column"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto","mt-auto",3,"click"],["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,"label","description"],[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"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-icon-button","","color","warn",3,"matTooltip","click"]],template:function(t,e){1&t&&(c.TgZ(0,"div"),c.TgZ(1,"div",0),c.TgZ(2,"h1",1),c._uU(3),c.ALo(4,"translate"),c.qZA(),c.YNc(5,R,1,0,"mat-spinner",2),c.YNc(6,W,39,54,"div",3),c.TgZ(7,"div",4),c.TgZ(8,"button",5),c.NdJ("click",function(){return e.cancel()}),c._uU(9),c.ALo(10,"translate"),c.qZA(),c.TgZ(11,"button",6),c.NdJ("click",function(){return e.submit()}),c._uU(12),c.ALo(13,"translate"),c.qZA(),c.qZA(),c.qZA(),c.qZA()),2&t&&(c.Gre("",e.theme," h-100"),c.xp6(3),c.AsE(" ",c.lcZ(4,10,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.TITLE")," : ",e.applicationFormItem.shortname," "),c.xp6(2),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading),c.xp6(3),c.hij(" ",c.lcZ(10,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CANCEL_BUTTON")," "),c.xp6(2),c.Q6J("disabled",e.loading),c.xp6(1),c.hij(" ",c.lcZ(13,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON")," "))},directives:[n.uh,u.O5,n.H8,h.lW,d.$g,n.xY,p.SP,p.uX,f,m.KE,b.Nt,_.Fj,_.JJ,_.On,w.oG,A.gD,u.sg,y.$x,v.ey,T.Y,C.IC,E.gM,S.Hw],pipes:[l.X$,k.c,I,x,u.gd],styles:[""]}),t})()},79592:function(t,e,i){"use strict";i.d(e,{H:function(){return P}});var n=i(65249),s=i(84608),o=i(68416),r=i(67033),a=i(84140),c=i(6527),l=i(61511),u=i(31572),h=i(48160),d=i(15980),p=i(67806),g=i(43691),f=i(36922),m=i(22196);function b(t,e){1&t&&u._UZ(0,"mat-spinner",6)}function _(t,e){1&t&&(u.TgZ(0,"th",17),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_ID")," "))}function w(t,e){if(1&t&&(u.TgZ(0,"td",18),u._uU(1),u.qZA()),2&t){const t=e.$implicit;u.xp6(1),u.Oqu(t.user.id)}}function A(t,e){1&t&&(u.TgZ(0,"th",17),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_NAME")," "))}function y(t,e){if(1&t&&(u.TgZ(0,"td",18),u._uU(1),u.ALo(2,"userFullName"),u.qZA()),2&t){const t=e.$implicit;u.xp6(1),u.Oqu(u.lcZ(2,1,t.user))}}function v(t,e){1&t&&(u.TgZ(0,"th",17),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_EXPIRATION")," "))}function T(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"button",20),u.NdJ("click",function(){u.CHM(t);const e=u.oxw().$implicit;return u.oxw(2).changeExpiration(e)}),u.TgZ(1,"mat-icon"),u._uU(2," today "),u.qZA(),u.qZA()}}function C(t,e){if(1&t&&(u.TgZ(0,"td",18),u.TgZ(1,"span"),u._uU(2),u.qZA(),u.YNc(3,T,3,0,"button",19),u.qZA()),2&t){const t=e.$implicit,i=u.oxw(2);u.xp6(2),u.Oqu(i.parseDate(t.validityTo)),u.xp6(1),u.Q6J("ngIf",i.isExpirationAuthorized(t))}}function E(t,e){1&t&&u._UZ(0,"th",17)}function S(t,e){1&t&&(u.TgZ(0,"mat-icon",25),u._uU(1,"clear"),u.qZA())}function k(t,e){1&t&&(u.TgZ(0,"mat-icon"),u._uU(1,"settings_backup_restore"),u.qZA())}function I(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"td",18),u.TgZ(1,"div",21),u.ALo(2,"translate"),u.TgZ(3,"button",22),u.NdJ("click",function(){const e=u.CHM(t).$implicit;return u.oxw(2).markSponsor(e)}),u.YNc(4,S,2,0,"mat-icon",23),u.YNc(5,k,2,0,"mat-icon",24),u.qZA(),u.qZA(),u.qZA()}if(2&t){const t=e.$implicit,i=u.oxw(2);u.xp6(1),u.s9C("matTooltip",u.lcZ(2,6,"DIALOGS.EDIT_MEMBER_SPONSORS.REMOVE_SPONSOR_DISABLED")),u.Q6J("matTooltipPosition","above")("matTooltipDisabled",i.isRemoveAuthorized(t)),u.xp6(2),u.Q6J("disabled",!i.isRemoveAuthorized(t)),u.xp6(1),u.Q6J("ngIf",!i.sponsorsToRemove.has(t.user.id)),u.xp6(1),u.Q6J("ngIf",i.sponsorsToRemove.has(t.user.id))}}function x(t,e){1&t&&u._UZ(0,"tr",26)}function R(t,e){if(1&t&&u._UZ(0,"tr",27),2&t){const t=e.$implicit,i=u.oxw(2);u.ekj("make-red",i.sponsorsToRemove.has(t.user.id))}}function O(t,e){if(1&t&&(u.TgZ(0,"div",7),u.TgZ(1,"table",8),u.ynx(2,9),u.YNc(3,_,3,3,"th",10),u.YNc(4,w,2,1,"td",11),u.BQk(),u.ynx(5,12),u.YNc(6,A,3,3,"th",10),u.YNc(7,y,3,3,"td",11),u.BQk(),u.ynx(8,13),u.YNc(9,v,3,3,"th",10),u.YNc(10,C,4,2,"td",11),u.BQk(),u.ynx(11,14),u.YNc(12,E,1,0,"th",10),u.YNc(13,I,6,8,"td",11),u.BQk(),u.YNc(14,x,1,0,"tr",15),u.YNc(15,R,1,2,"tr",16),u.qZA(),u.qZA()),2&t){const t=u.oxw();u.xp6(1),u.Q6J("dataSource",t.dataSource),u.xp6(13),u.Q6J("matHeaderRowDef",t.displayedColumns),u.xp6(1),u.Q6J("matRowDefColumns",t.displayedColumns)}}let P=(()=>{class t{constructor(t,e,i,n,s,o,r,a){this.dialogRef=t,this.data=e,this.memberService=i,this.userService=n,this.notificator=s,this.authResolver=o,this.translate=r,this.dialog=a,this.displayedColumns=["id","name","expiration","remove"],this.loading=!1,this.expirationChanged=!1,this.sponsorsToRemove=new Set}ngOnInit(){this.theme=this.data.theme,this.sponsors=this.data.sponsors,this.dataSource=new r.by(this.data.sponsors),this.vo={beanName:"Vo",id:this.data.member.voId}}markSponsor(t){this.sponsorsToRemove.has(t.user.id)?this.sponsorsToRemove.delete(t.user.id):this.sponsorsToRemove.add(t.user.id)}removeSponsors(t){if(0===t.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_MEMBER_SPONSORS.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);const e=t.pop();this.memberService.removeSponsor(this.data.member.id,e).subscribe(()=>{this.removeSponsors(t)},()=>this.loading=!1)}onSubmit(){this.loading=!0;const t=Array.from(this.sponsorsToRemove);this.removeSponsors(t)}onCancel(){this.dialogRef.close(this.expirationChanged)}isRemoveAuthorized(t){return this.authResolver.isAuthorized("sponsored-removeSponsor_Member_User_policy",[this.data.member])&&this.authResolver.isAuthorized("sponsor-removeSponsor_Member_User_policy",[t.user])}isExpirationAuthorized(t){return this.authResolver.isAuthorized("updateSponsorshipValidity_Member_User_LocalDate",[t.user,this.vo])}parseDate(t){return null===t?"Never expire":(0,l.p6)(t,"d.M.y","en")}changeExpiration(t){const e=(0,a.kZ)();e.width="400px",e.data={memberId:this.data.member.id,sponsor:t},this.dialog.open(c.hd,e).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.expirationChanged=!0,this.userService.getSponsorsForMember(this.data.member.id,[]).subscribe(t=>{this.sponsors=t,this.dataSource=new r.by(this.sponsors),this.loading=!1}))})}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(s.so),u.Y36(s.WI),u.Y36(n.uq),u.Y36(n.Fv),u.Y36(o.V6),u.Y36(o.x4),u.Y36(h.sK),u.Y36(s.uw))},t.\u0275cmp=u.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["mat-header-row","","class","font-weight-bolder",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,"matTooltip","matTooltipPosition","matTooltipDisabled"],["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(t,e){1&t&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.TgZ(3,"div"),u.YNc(4,b,1,0,"mat-spinner",1),u.YNc(5,O,16,3,"div",2),u.TgZ(6,"div",3),u.TgZ(7,"button",4),u.NdJ("click",function(){return e.onCancel()}),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.TgZ(10,"button",5),u.NdJ("click",function(){return e.onSubmit()}),u._uU(11),u.ALo(12,"translate"),u.qZA(),u.qZA(),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,9,"DIALOGS.EDIT_MEMBER_SPONSORS.TITLE")),u.xp6(2),u.Tol(e.theme),u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading),u.xp6(3),u.hij(" ",u.lcZ(9,11,"DIALOGS.EDIT_MEMBER_SPONSORS.CANCEL")," "),u.xp6(2),u.Q6J("disabled",e.loading||0===e.sponsorsToRemove.size),u.xp6(1),u.hij(" ",u.lcZ(12,13,"DIALOGS.EDIT_MEMBER_SPONSORS.SUBMIT")," "))},directives:[s.uh,l.O5,s.H8,d.lW,p.$g,s.xY,r.BZ,r.w1,r.fO,r.Dz,r.as,r.nj,r.ge,r.ev,g.Hw,f.gM,r.XQ,r.Gk],pipes:[h.X$,m.d],styles:[".make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.btn-delete[_ngcontent-%COMP%]:disabled .icn-delete[_ngcontent-%COMP%]{color:grey}"]}),t})()},88690:function(t,e,i){"use strict";i.d(e,{R:function(){return T}});var n=i(84608),s=i(16073),o=i(65249),r=i(68416),a=i(31572),c=i(48160),l=i(61511),u=i(15980),h=i(67806),d=i(66283),p=i(80340),g=i(4786),f=i(71522);function m(t,e){1&t&&a._UZ(0,"mat-spinner",6)}function b(t,e){1&t&&(a.TgZ(0,"div",14),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_VO")," "))}function _(t,e){1&t&&(a.TgZ(0,"div",14),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_GROUP")," "))}function w(t,e){1&t&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"DIALOGS.INVITE_MEMBER.NAME_ERROR")))}function A(t,e){1&t&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"DIALOGS.INVITE_MEMBER.EMAIL_ERROR")))}function y(t,e){if(1&t&&(a.TgZ(0,"mat-option",15),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"uppercase"),a.qZA()),2&t){const t=e.$implicit;a.s9C("value",t),a.xp6(1),a.Oqu(a.lcZ(2,2,a.lcZ(3,4,"SHARED_LIB.LANGUAGES."+t)))}}function v(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div",7),a.YNc(1,b,3,3,"div",8),a.YNc(2,_,3,3,"div",8),a.TgZ(3,"mat-form-field",9),a._UZ(4,"input",10),a.ALo(5,"translate"),a.YNc(6,w,3,3,"mat-error",11),a.qZA(),a.TgZ(7,"mat-form-field",9),a._UZ(8,"textarea",10),a.ALo(9,"translate"),a.YNc(10,A,3,3,"mat-error",11),a.qZA(),a.TgZ(11,"mat-form-field",9),a.TgZ(12,"mat-label"),a._uU(13),a.ALo(14,"translate"),a.qZA(),a.TgZ(15,"mat-select",12),a.NdJ("valueChange",function(e){return a.CHM(t),a.oxw().currentLanguage=e}),a.YNc(16,y,4,6,"mat-option",13),a.qZA(),a.qZA(),a.qZA()}if(2&t){const t=a.oxw();a.xp6(1),a.Q6J("ngIf",!t.data.groupId),a.xp6(1),a.Q6J("ngIf",t.data.groupId),a.xp6(2),a.s9C("placeholder",a.lcZ(5,11,"DIALOGS.INVITE_MEMBER.NAME")),a.Q6J("formControl",t.name),a.xp6(2),a.Q6J("ngIf",t.name.invalid),a.xp6(2),a.s9C("placeholder",a.lcZ(9,13,"DIALOGS.INVITE_MEMBER.EMAIL")),a.Q6J("formControl",t.emailForm),a.xp6(2),a.Q6J("ngIf",t.emailForm.invalid),a.xp6(3),a.Oqu(a.lcZ(14,15,"DIALOGS.INVITE_MEMBER.LANGUAGE")),a.xp6(2),a.Q6J("value",t.currentLanguage),a.xp6(1),a.Q6J("ngForOf",t.languages)}}let T=(()=>{class t{constructor(t,e,i,n,o,r){this.dialogRef=t,this.data=e,this.registrarManager=i,this.notificator=n,this.translate=o,this.store=r,this.emailForm=new s.NI("",[s.kI.required,s.kI.email]),this.languages=["en"],this.currentLanguage="en",this.name=new s.NI("",s.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(t=>{this.notificator.showSuccess(t),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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)))}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(o.tk),a.Y36(r.V6),a.Y36(c.sK),a.Y36(r.d6))},t.\u0275cmp=a.Xpm({type:t,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"],["mat-flat-button","","color","accent",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(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"h1",0),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,m,1,0,"mat-spinner",1),a.YNc(5,v,17,17,"div",2),a.TgZ(6,"div",3),a.TgZ(7,"button",4),a.NdJ("click",function(){return e.onCancel()}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"button",5),a.NdJ("click",function(){return e.onSubmit()}),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(2),a.Oqu(a.lcZ(3,9,"DIALOGS.INVITE_MEMBER.TITLE")),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading),a.xp6(3),a.hij(" ",a.lcZ(9,11,"DIALOGS.INVITE_MEMBER.CANCEL")," "),a.xp6(2),a.Q6J("disabled",e.emailForm.invalid||e.name.invalid||e.loading),a.xp6(1),a.hij(" ",a.lcZ(12,13,"DIALOGS.INVITE_MEMBER.INVITE")," "))},directives:[n.uh,l.O5,n.H8,u.lW,h.$g,n.xY,d.KE,p.Nt,s.Fj,s.Q7,s.JJ,s.oH,d.hX,g.gD,l.sg,d.TO,f.ey],pipes:[c.X$,l.gd],styles:[""]}),t})()},57820:function(t,e,i){"use strict";i.d(e,{c:function(){return I}});var n=i(84608),s=i(16073),o=i(56238),r=i(79996),a=i(17),c=i(68416),l=i(65249),u=i(31572),h=i(48160),d=i(54810),p=i(61511),g=i(15980),f=i(36922),m=i(39571),b=i(66283),_=i(80340),w=i(40084),A=i(71522),y=i(67806);function v(t,e){1&t&&(u.TgZ(0,"mat-radio-button",12),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"DIALOGS.MOVE_GROUP.NO_GROUP")," "))}function T(t,e){1&t&&(u.TgZ(0,"mat-radio-button",13),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"DIALOGS.MOVE_GROUP.TO_GROUP")," "))}function C(t,e){1&t&&(u.TgZ(0,"app-alert",14),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"DIALOGS.MOVE_GROUP.CANNOT_MOVE")," "))}function E(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"mat-option",20),u.NdJ("click",function(){const e=u.CHM(t).$implicit;return u.oxw(2).selectedGroup=e}),u.TgZ(1,"span"),u._uU(2),u.qZA(),u.qZA()}if(2&t){const t=e.$implicit;u.Q6J("value",t),u.xp6(2),u.Oqu(t.name)}}function S(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"mat-form-field",15),u.TgZ(1,"input",16),u.NdJ("change",function(){return u.CHM(t),u.oxw().selectedGroup=null}),u.ALo(2,"translate"),u.qZA(),u.TgZ(3,"mat-autocomplete",17,18),u.YNc(5,E,3,2,"mat-option",19),u.ALo(6,"async"),u.qZA(),u.qZA()}if(2&t){const t=u.MAs(4),e=u.oxw();u.Q6J("@openClose","toGroup"===e.moveOption?"open":"closed"),u.xp6(1),u.s9C("placeholder",u.lcZ(2,6,"DIALOGS.MOVE_GROUP.GROUP_SELECT")),u.Q6J("matAutocomplete",t)("formControl",e.otherGroupsCtrl),u.xp6(2),u.Q6J("displayWith",e.displayFn),u.xp6(2),u.Q6J("ngForOf",u.lcZ(6,8,e.filteredGroups))}}function k(t,e){1&t&&u._UZ(0,"mat-spinner",21)}let I=(()=>{class t{constructor(t,e,i,n,o,r,a){this.dialogRef=t,this.data=e,this.groupService=i,this.notificator=n,this.translate=o,this.apiRequest=r,this.authResolver=a,this.toRootOptionDisabled=!1,this.toGroupOptionDisabled=!1,this.otherGroups=[],this.otherGroupsCtrl=new s.NI(null,[s.kI.required]),this.loading=!1,this.selectedGroup=null,this.translate.get("DIALOGS.MOVE_GROUP.SUCCESS").subscribe(t=>this.successMessage=t),this.translate.get("DIALOGS.MOVE_GROUP.ERROR").subscribe(t=>this.errorMessage=t)}ngOnInit(){this.loading=!0,this.groupService.getAllGroups(this.data.group.voId).subscribe(t=>{this.otherGroups=t.filter(t=>t.id!==this.data.group.id&&"members"!==t.name&&this.canMove(t)),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,o.O)(""),(0,r.U)(t=>t?this._filterGroups(t):this.otherGroups.slice())),this.loading=!1},()=>this.loading=!1)}displayFn(t){return t?t.name:t}_filterGroups(t){if("object"==typeof t)return[];const e=t.toLowerCase();return t?this.otherGroups.filter(t=>t.name.toLowerCase().indexOf(e)>-1):this.otherGroups}canMove(t){return this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[t,this.data.group])&&this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[this.data.group,t])}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)},t=>{this.notificator.showRPCError(t,this.errorMessage),this.dialogRef.close(!1)})}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(n.so),u.Y36(n.WI),u.Y36(l.ff),u.Y36(c.V6),u.Y36(h.sK),u.Y36(c.F5),u.Y36(c.x4))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-move-group-dialog"]],decls:23,vars:28,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"ngModel","ngModelChange"],["color","primary","value","toRoot","class","move-options",4,"ngIf"],["value","toGroup","color","primary",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,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["color","primary","value","toRoot",1,"move-options"],["value","toGroup","color","primary"],["alert_type","warn"],[1,"w-100","mt-2"],["matInput","","required","",3,"placeholder","matAutocomplete","formControl","change"],[3,"displayWith"],["groupSelectAutocomplete","matAutocomplete"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"div",1),u.TgZ(5,"p"),u._uU(6),u.ALo(7,"translate"),u.qZA(),u.TgZ(8,"mat-radio-group",2),u.NdJ("ngModelChange",function(t){return e.moveOption=t}),u.YNc(9,v,3,3,"mat-radio-button",3),u.YNc(10,T,3,3,"mat-radio-button",4),u.qZA(),u.YNc(11,C,3,3,"app-alert",5),u.YNc(12,S,7,10,"mat-form-field",6),u.qZA(),u.YNc(13,k,1,0,"mat-spinner",7),u.TgZ(14,"div",8),u.TgZ(15,"button",9),u.NdJ("click",function(){return e.close()}),u._uU(16),u.ALo(17,"translate"),u.qZA(),u.TgZ(18,"span",10),u.ALo(19,"translate"),u.TgZ(20,"button",11),u.NdJ("click",function(){return e.confirm()}),u._uU(21),u.ALo(22,"translate"),u.qZA(),u.qZA(),u.qZA(),u.qZA()),2&t&&(u.Tol(e.data.theme),u.xp6(2),u.AsE("",u.lcZ(3,18,"DIALOGS.MOVE_GROUP.TITLE"),"",e.data.group.name,""),u.xp6(4),u.hij(" ",u.lcZ(7,20,"DIALOGS.MOVE_GROUP.INFO")," "),u.xp6(2),u.Q6J("ngModel",e.moveOption),u.xp6(1),u.Q6J("ngIf",!e.toRootOptionDisabled),u.xp6(1),u.Q6J("ngIf",!e.toGroupOptionDisabled),u.xp6(1),u.Q6J("ngIf",e.toRootOptionDisabled&&e.toGroupOptionDisabled),u.xp6(1),u.Q6J("ngIf",!e.toGroupOptionDisabled),u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(3),u.hij(" ",u.lcZ(17,22,"DIALOGS.MOVE_GROUP.CANCEL")," "),u.xp6(2),u.s9C("matTooltip",u.lcZ(19,24,"DIALOGS.MOVE_GROUP.DISABLED_HINT")),u.Q6J("matTooltipPosition","above")("matTooltipDisabled",null!==e.selectedGroup||"toRoot"===e.moveOption),u.xp6(2),u.Q6J("disabled",(e.otherGroupsCtrl.invalid||null===e.selectedGroup)&&"toRoot"!==e.moveOption||e.loading),u.xp6(1),u.hij(" ",u.lcZ(22,26,"DIALOGS.MOVE_GROUP.CONFIRM")," "))},directives:[n.uh,n.xY,d.VQ,s.JJ,s.On,p.O5,n.H8,g.lW,f.gM,d.U0,m.w,b.KE,_.Nt,w.ZL,s.Fj,s.Q7,s.oH,w.XC,p.sg,A.ey,y.$g],pipes:[h.X$,p.Ov],styles:[".move-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"],data:{animation:[a.BQ]}}),t})()},95121:function(t,e,i){"use strict";i.d(e,{m:function(){return w}});var n=i(84608),s=i(65249),o=i(68416),r=i(31572),a=i(48160),c=i(61511),l=i(15980),u=i(67806),h=i(66283),d=i(4786),p=i(71522);function g(t,e){1&t&&r._UZ(0,"mat-spinner",7)}function f(t,e){if(1&t&&(r.TgZ(0,"mat-option",13),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.Q6J("value",t),r.xp6(1),r.hij(" ",t.friendlyNameParameter," ")}}function m(t,e){if(1&t&&(r.TgZ(0,"mat-option",13),r._uU(1),r.ALo(2,"translate"),r.ALo(3,"uppercase"),r.qZA()),2&t){const t=e.$implicit;r.Q6J("value",t),r.xp6(1),r.hij(" ",r.lcZ(2,2,r.lcZ(3,4,"SHARED_LIB.LANGUAGES."+t))," ")}}function b(t,e){if(1&t&&(r.TgZ(0,"mat-option",13),r._uU(1),r.qZA()),2&t){const t=e.$implicit;r.Q6J("value",t),r.xp6(1),r.hij(" ",t," ")}}function _(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",8),r.TgZ(1,"mat-form-field"),r.TgZ(2,"mat-label"),r._uU(3),r.ALo(4,"translate"),r.qZA(),r.TgZ(5,"mat-select",9),r.NdJ("valueChange",function(e){return r.CHM(t),r.oxw().selectedLogin=e}),r.YNc(6,f,2,2,"mat-option",10),r.qZA(),r.qZA(),r.TgZ(7,"mat-form-field"),r.TgZ(8,"mat-label"),r._uU(9),r.ALo(10,"translate"),r.qZA(),r.TgZ(11,"mat-select",9),r.NdJ("valueChange",function(e){return r.CHM(t),r.oxw().selectedLang=e}),r.YNc(12,m,4,6,"mat-option",10),r.qZA(),r.qZA(),r.TgZ(13,"mat-form-field"),r.TgZ(14,"mat-label"),r._uU(15),r.ALo(16,"translate"),r.qZA(),r.TgZ(17,"mat-select",9),r.NdJ("valueChange",function(e){return r.CHM(t),r.oxw().selectedMail=e}),r.YNc(18,b,2,2,"mat-option",10),r.qZA(),r.qZA(),r.TgZ(19,"div",11),r.TgZ(20,"p",12),r._uU(21),r.ALo(22,"translate"),r.qZA(),r.TgZ(23,"p"),r._uU(24),r.qZA(),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.xp6(3),r.Oqu(r.lcZ(4,11,"DIALOGS.PASSWORD_RESET_REQUEST.NAMESPACE")),r.xp6(2),r.Q6J("value",t.selectedLogin),r.xp6(1),r.Q6J("ngForOf",t.logins),r.xp6(3),r.Oqu(r.lcZ(10,13,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),r.xp6(2),r.Q6J("value",t.selectedLang),r.xp6(1),r.Q6J("ngForOf",t.languages),r.xp6(3),r.Oqu(r.lcZ(16,15,"DIALOGS.PASSWORD_RESET_REQUEST.EMAIL")),r.xp6(2),r.Q6J("value",t.selectedMail),r.xp6(1),r.Q6J("ngForOf",t.mails),r.xp6(3),r.Oqu(r.lcZ(22,17,"DIALOGS.PASSWORD_RESET_REQUEST.LOGIN")),r.xp6(3),r.Oqu(t.selectedLogin.value)}}let w=(()=>{class t{constructor(t,e,i,n,s,o,r){this.dialogRef=t,this.data=e,this.membersManagerService=i,this.attributesManagerService=n,this.store=s,this.translate=o,this.notificator=r,this.languages=this.store.get("supported_languages"),this.selectedLang="en",this.pwdMails=new Map,this.logins=[],this.selectedMail="user:preferredMail",this.mails=[],o.get("DIALOGS.PASSWORD_RESET_REQUEST.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.getMailAttributes(),this.logins=this.data.logins,this.selectedLogin=this.logins[0]}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"}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0;const t=this.selectedLogin.friendlyNameParameter,e=window.location.href.split("/"),i=e[0]+"//"+e[2];this.membersManagerService.sendPasswordResetLinkEmail(this.data.memberId,t,this.pwdMails.get(this.selectedMail),this.selectedLang,i).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close()},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.so),r.Y36(n.WI),r.Y36(s.uq),r.Y36(s.H8),r.Y36(o.d6),r.Y36(a.sK),r.Y36(o.V6))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"h1",0),r._uU(1),r.ALo(2,"translate"),r.qZA(),r.TgZ(3,"div",1),r.YNc(4,g,1,0,"mat-spinner",2),r.qZA(),r.YNc(5,_,25,19,"div",3),r.TgZ(6,"div",4),r.TgZ(7,"button",5),r.NdJ("click",function(){return e.onCancel()}),r._uU(8),r.ALo(9,"translate"),r.qZA(),r.TgZ(10,"button",6),r.NdJ("click",function(){return e.onSubmit()}),r._uU(11),r.ALo(12,"translate"),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,6,"DIALOGS.PASSWORD_RESET_REQUEST.TITLE")),r.xp6(3),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading),r.xp6(3),r.hij(" ",r.lcZ(9,8,"DIALOGS.PASSWORD_RESET_REQUEST.CANCEL")," "),r.xp6(2),r.Q6J("disabled",e.loading),r.xp6(1),r.hij(" ",r.lcZ(12,10,"DIALOGS.PASSWORD_RESET_REQUEST.SEND")," "))},directives:[n.uh,c.O5,n.H8,l.lW,u.$g,n.xY,h.KE,h.hX,d.gD,c.sg,p.ey],pipes:[a.X$,c.gd],styles:[".column-size[_ngcontent-%COMP%]{width:8rem}"]}),t})()},4374:function(t,e,i){"use strict";i.d(e,{X:function(){return v}});var n=i(84608),s=i(67033),o=i(68416),r=i(65249),a=i(31572),c=i(48160),l=i(61511),u=i(67806),h=i(15980),d=i(22196);function p(t,e){1&t&&a._UZ(0,"th",13)}function g(t,e){if(1&t&&(a.TgZ(0,"td",14),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(t.id)}}function f(t,e){1&t&&a._UZ(0,"th",13)}function m(t,e){if(1&t&&(a.TgZ(0,"td",14),a._uU(1),a.ALo(2,"userFullName"),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(a.lcZ(2,1,t.user))}}function b(t,e){1&t&&a._UZ(0,"tr",15)}function _(t,e){1&t&&a._UZ(0,"tr",16)}function w(t,e){if(1&t&&(a.TgZ(0,"div",4),a.TgZ(1,"p"),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"div",5),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.TgZ(7,"table",6),a.ynx(8,7),a.YNc(9,p,1,0,"th",8),a.YNc(10,g,2,1,"td",9),a.BQk(),a.ynx(11,10),a.YNc(12,f,1,0,"th",8),a.YNc(13,m,3,3,"td",9),a.BQk(),a.YNc(14,b,1,0,"tr",11),a.YNc(15,_,1,0,"tr",12),a.qZA(),a.qZA()),2&t){const t=a.oxw();a.xp6(2),a.hij(" ",a.lcZ(3,5,t.data.groupId?"DIALOGS.REMOVE_MEMBERS.DESCRIPTION_GROUP":"DIALOGS.REMOVE_MEMBERS.DESCRIPTION")," "),a.xp6(3),a.hij(" ",a.lcZ(6,7,"DIALOGS.REMOVE_MEMBERS.ASK")," "),a.xp6(2),a.Q6J("dataSource",t.dataSource),a.xp6(7),a.Q6J("matHeaderRowDef",t.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",t.displayedColumns)}}function A(t,e){1&t&&a._UZ(0,"mat-spinner",17)}function y(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div",18),a.TgZ(1,"button",19),a.NdJ("click",function(){return a.CHM(t),a.oxw().onCancel()}),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"button",20),a.NdJ("click",function(){return a.CHM(t),a.oxw().onSubmit()}),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.qZA()}if(2&t){const t=a.oxw();a.xp6(2),a.hij(" ",a.lcZ(3,2,"DIALOGS.REMOVE_MEMBERS.CANCEL")," "),a.xp6(3),a.hij(" ",a.lcZ(6,4,t.data.groupId?"DIALOGS.REMOVE_MEMBERS.REMOVE_GROUP":"DIALOGS.REMOVE_MEMBERS.REMOVE")," ")}}let v=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.membersService=i,this.groupService=n,this.notificator=s,this.translate=o,this.displayedColumns=["id","name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new s.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(t=>t.id)).subscribe(()=>this.onSuccess(),()=>this.onError()):this.membersService.deleteMembers(this.data.members.map(t=>t.id)).subscribe(()=>this.onSuccess(),()=>this.onError())}onSuccess(){const t=this.translate.instant(this.data.groupId?"DIALOGS.REMOVE_MEMBERS.SUCCESS_GROUP":"DIALOGS.REMOVE_MEMBERS.SUCCESS");this.notificator.showSuccess(t),this.dialogRef.close(!0),this.loading=!1}onError(){this.loading=!1}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(r.uq),a.Y36(r.ff),a.Y36(o.V6),a.Y36(c.sK))},t.\u0275cmp=a.Xpm({type:t,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"],["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",""],[1,"mr-auto","ml-auto"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn","data-cy","remove-members-dialog",1,"ml-2",3,"click"]],template:function(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"h1",0),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,w,16,9,"div",1),a.YNc(5,A,1,0,"mat-spinner",2),a.YNc(6,y,7,6,"div",3),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(2),a.Oqu(a.lcZ(3,7,"DIALOGS.REMOVE_MEMBERS.TITLE")),a.xp6(2),a.Q6J("ngIf",!e.loading),a.xp6(1),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading))},directives:[n.uh,l.O5,n.xY,s.BZ,s.w1,s.fO,s.Dz,s.as,s.nj,s.ge,s.ev,s.XQ,s.Gk,u.$g,n.H8,h.lW],pipes:[c.X$,d.d],styles:[""]}),t})()},95909:function(t,e,i){"use strict";i.d(e,{f:function(){return u}});var n=i(84608),s=i(67033),o=i(68416),r=i(65249),a=i(31572),c=i(48160),l=i(20247);let u=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.resourcesManager=s,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new s.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(t=>{this.loading=!1,this.notificator.showSuccess(t),this.dialogRef.close(!0)}):this.resourcesManager.deleteResource(this.data.resources[0].id).subscribe(()=>{this.data.resources.shift(),this.onDelete()},()=>{this.dialogRef.close(!0)})}onSubmit(t){t.deleted?this.onDelete():this.onCancel()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(o.V6),a.Y36(c.sK),a.Y36(r.xk))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-remove-resource-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","disableForce","loading","deleted"]],template:function(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"app-delete-entity-dialog",0),a.NdJ("deleted",function(t){return e.onSubmit(t)}),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(1),a.Q6J("entityNames",e.dataSource)("entityType","resources")("disableForce",!0)("loading",e.loading))},directives:[l.e],styles:[""]}),t})()},99608:function(t,e,i){"use strict";i.d(e,{o:function(){return u}});var n=i(84608),s=i(67033),o=i(68416),r=i(65249),a=i(31572),c=i(48160),l=i(20247);let u=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.voService=n,this.translate=s,this.force=!1,this.displayedColumns=["name"],this.relations=[],s.get("DIALOGS.REMOVE_VO.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new s.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(t){this.force=t.force,t.deleted?this.onDelete():this.onCancel()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(o.V6),a.Y36(r.YF),a.Y36(c.sK))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-remove-vo-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","relations","loading","deleted"]],template:function(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"app-delete-entity-dialog",0),a.NdJ("deleted",function(t){return e.onSubmit(t)}),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(1),a.Q6J("entityNames",e.dataSource)("entityType","organizations")("relations",e.relations)("loading",e.loading))},directives:[l.e],styles:[".foo[_ngcontent-%COMP%]{margin-top:20px}"]}),t})()},24555:function(t,e,i){"use strict";i.d(e,{E:function(){return _}});var n=i(84608),s=i(65249),o=i(31572),r=i(61511),a=i(15980),c=i(67806),l=i(66283),u=i(80340),h=i(16073),d=i(4786),p=i(71522),g=i(48160);function f(t,e){1&t&&o._UZ(0,"mat-spinner",6)}function m(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div"),o.TgZ(1,"mat-form-field",9),o.TgZ(2,"mat-select",10),o.NdJ("valueChange",function(e){return o.CHM(t),o.oxw(2).embeddedState=e}),o.ALo(3,"translate"),o.TgZ(4,"mat-option",11),o._uU(5),o.ALo(6,"translate"),o.qZA(),o.TgZ(7,"mat-option",12),o._uU(8),o.ALo(9,"translate"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&t){const t=o.oxw(2);o.xp6(2),o.MGl("placeholder","",o.lcZ(3,4,"DIALOGS.UPDATE_APPLICATION_FORM.EMBEDDED"),":"),o.Q6J("value",t.embeddedState),o.xp6(3),o.Oqu(o.lcZ(6,6,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),o.xp6(3),o.Oqu(o.lcZ(9,8,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL"))}}function b(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",7),o.TgZ(1,"mat-form-field"),o.TgZ(2,"input",8),o.NdJ("ngModelChange",function(e){return o.CHM(t),o.oxw().moduleName=e}),o.ALo(3,"translate"),o.qZA(),o.qZA(),o.TgZ(4,"mat-form-field",9),o.TgZ(5,"mat-select",10),o.NdJ("valueChange",function(e){return o.CHM(t),o.oxw().initialState=e}),o.ALo(6,"translate"),o.TgZ(7,"mat-option",11),o._uU(8),o.ALo(9,"translate"),o.qZA(),o.TgZ(10,"mat-option",12),o._uU(11),o.ALo(12,"translate"),o.qZA(),o.qZA(),o.qZA(),o.TgZ(13,"mat-form-field",9),o.TgZ(14,"mat-select",10),o.NdJ("valueChange",function(e){return o.CHM(t),o.oxw().extensionState=e}),o.ALo(15,"translate"),o.TgZ(16,"mat-option",11),o._uU(17),o.ALo(18,"translate"),o.qZA(),o.TgZ(19,"mat-option",12),o._uU(20),o.ALo(21,"translate"),o.qZA(),o.qZA(),o.qZA(),o.YNc(22,m,10,10,"div",13),o.qZA()}if(2&t){const t=o.oxw();o.xp6(2),o.s9C("placeholder",o.lcZ(3,11,"DIALOGS.UPDATE_APPLICATION_FORM.MODULE_NAME")),o.Q6J("ngModel",t.moduleName),o.xp6(3),o.MGl("placeholder","",o.lcZ(6,13,"DIALOGS.UPDATE_APPLICATION_FORM.INITIAL"),":"),o.Q6J("value",t.initialState),o.xp6(3),o.Oqu(o.lcZ(9,15,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),o.xp6(3),o.Oqu(o.lcZ(12,17,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),o.xp6(3),o.MGl("placeholder","",o.lcZ(15,19,"DIALOGS.UPDATE_APPLICATION_FORM.EXTENSION"),":"),o.Q6J("value",t.extensionState),o.xp6(3),o.Oqu(o.lcZ(18,21,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),o.xp6(3),o.Oqu(o.lcZ(21,23,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),o.xp6(2),o.Q6J("ngIf","group"===t.entity&&t.autoRegistrationEnabled)}}let _=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.registrarManager=i,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(t=>{this.dialogRef.close(t)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.so),o.Y36(n.WI),o.Y36(s.tk))},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-update-application-form-dialog"]],decls:13,vars:15,consts:[["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","accent",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(t,e){1&t&&(o.TgZ(0,"div"),o.TgZ(1,"h1",0),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.YNc(4,f,1,0,"mat-spinner",1),o.YNc(5,b,23,25,"div",2),o.TgZ(6,"div",3),o.TgZ(7,"button",4),o.NdJ("click",function(){return e.onCancel()}),o._uU(8),o.ALo(9,"translate"),o.qZA(),o.TgZ(10,"button",5),o.NdJ("click",function(){return e.submit()}),o._uU(11),o.ALo(12,"translate"),o.qZA(),o.qZA(),o.qZA()),2&t&&(o.Tol(e.theme),o.xp6(2),o.Oqu(o.lcZ(3,9,"DIALOGS.UPDATE_APPLICATION_FORM.TITLE")),o.xp6(2),o.Q6J("ngIf",e.loading),o.xp6(1),o.Q6J("ngIf",!e.loading),o.xp6(3),o.hij(" ",o.lcZ(9,11,"DIALOGS.UPDATE_APPLICATION_FORM.CANCEL_BUTTON")," "),o.xp6(2),o.Q6J("disabled",e.loading),o.xp6(1),o.hij(" ",o.lcZ(12,13,"DIALOGS.UPDATE_APPLICATION_FORM.SUBMIT_BUTTON")," "))},directives:[n.uh,r.O5,n.H8,a.lW,c.$g,n.xY,l.KE,u.Nt,h.Fj,h.JJ,h.On,d.gD,p.ey],pipes:[g.X$],styles:[""]}),t})()},65050:function(t,e,i){"use strict";i.d(e,{c:function(){return o}});var n=i(31572),s=i(48160);let o=(()=>{class t{constructor(t){this.translateService=t,this.returnData=""}transform(t){switch(t){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.HEADER").subscribe(t=>{this.returnData=t});break;case"FROM_FEDERATION_HIDDEN":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.FROM_FEDERATION_HIDDEN").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"FROM_FEDERATION_SHOW":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.FROM_FEDERATION_SHOW").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;default:return t}return this.returnData}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(s.sK,16))},t.\u0275pipe=n.Yjl({name:"applicationFormItemType",type:t,pure:!0}),t})()},84650:function(t,e,i){"use strict";i.d(e,{h:function(){return o}});var n=i(31572),s=i(48160);let o=(()=>{class t{constructor(t){this.translate=t,this.returnData=""}transform(t){switch(t){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=t}return this.returnData}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(s.sK,16))},t.\u0275pipe=n.Yjl({name:"applicationState",type:t,pure:!1}),t})()},99373:function(t,e,i){"use strict";i.d(e,{A:function(){return s}});var n=i(31572);let s=(()=>{class t{transform(t){return t.substring(40)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"extSourceType",type:t,pure:!0}),t})()},28780:function(t,e,i){"use strict";i.d(e,{m:function(){return kt}});var n=i(61511),s=i(57629),o=i(40084),r=i(15980),a=i(29236),c=i(71522),l=i(15812),u=i(84608),h=i(27679),d=i(45001),p=i(66283),g=i(43691),f=i(80340),m=i(73005),b=i(45994),_=i(67806),w=i(54810),A=i(4786),y=i(25122),v=i(27521),T=i(71403),C=i(58623),E=i(67033),S=i(55109),k=i(36922),I=i(91010),x=i(27439),R=i(41050),O=i(10033),P=i(8055),D=i(70663),M=i(16073),L=i(24081),N=i(17),z=i(68416),Z=i(31572),B=i(84534),F=i(48160);const U=["collapse"],q=function(){return{color:"linkTextColor"}};function H(t,e){1&t&&(Z.TgZ(0,"mat-icon",14),Z._uU(1,"keyboard_arrow_right"),Z.qZA()),2&t&&Z.Q6J("ngStyle",Z.DdM(1,q))}function G(t,e){1&t&&(Z.TgZ(0,"mat-icon",14),Z._uU(1,"keyboard_arrow_down"),Z.qZA()),2&t&&Z.Q6J("ngStyle",Z.DdM(1,q))}function j(t,e){if(1&t&&(Z.TgZ(0,"span",12),Z.YNc(1,H,2,2,"mat-icon",13),Z.YNc(2,G,2,2,"mat-icon",13),Z.qZA()),2&t){const t=Z.oxw().$implicit,e=Z.oxw(2);Z.xp6(1),Z.Q6J("ngIf",!e.isActive(e.currentUrl,t.showChildrenRegex)),Z.xp6(1),Z.Q6J("ngIf",e.isActive(e.currentUrl,t.showChildrenRegex))}}const Y=function(t,e){return{color:t,"border-color":e}};function K(t,e){if(1&t){const t=Z.EpF();Z.TgZ(0,"a",17),Z.NdJ("click",function(){const e=Z.CHM(t).$implicit;return Z.oxw(4).navigate(e.url)}),Z._uU(1),Z.ALo(2,"translate"),Z.qZA()}if(2&t){const t=e.$implicit,i=Z.oxw(4);Z.ekj("activated",i.isActive(i.currentUrl,t.activatedRegex)&&void 0===i.item.activatedClass),Z.Q6J("perunWebAppsMiddleClickRouterLink",t.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",i.isActive(i.currentUrl,t.activatedRegex)&&void 0!==i.item.activatedClass?i.item.activatedClass:"")("ngStyle",Z.WLB(9,Y,i.linkTextColor,i.linkTextColor)),Z.xp6(1),Z.hij(" ",Z.lcZ(2,7,t.label)," ")}}function V(t,e){if(1&t&&(Z.TgZ(0,"div",15),Z.YNc(1,K,3,12,"a",16),Z.qZA()),2&t){const t=Z.oxw().$implicit;Z.Q6J("@rollInOut",void 0),Z.xp6(1),Z.Q6J("ngForOf",null==t?null:t.children)}}function $(t,e){if(1&t){const t=Z.EpF();Z.TgZ(0,"div"),Z.TgZ(1,"a",9),Z.NdJ("click",function(){const e=Z.CHM(t).$implicit;return Z.oxw(2).navigate(e.url)}),Z._uU(2),Z.ALo(3,"translate"),Z.YNc(4,j,3,2,"span",10),Z.qZA(),Z.YNc(5,V,2,2,"div",11),Z.qZA()}if(2&t){const t=e.$implicit,i=Z.oxw(2);Z.xp6(1),Z.ekj("activated",i.isActive(i.currentUrl,t.activatedRegex)&&void 0===i.item.activatedClass),Z.Q6J("perunWebAppsMiddleClickRouterLink",t.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",i.isActive(i.currentUrl,t.activatedRegex)&&void 0!==i.item.activatedClass?i.item.activatedClass:"")("ngStyle",Z.WLB(11,Y,i.linkTextColor,i.linkTextColor)),Z.xp6(1),Z.hij(" ",Z.lcZ(3,9,t.label)," "),Z.xp6(2),Z.Q6J("ngIf",t.children),Z.xp6(1),Z.Q6J("ngIf",i.isActive(i.currentUrl,t.showChildrenRegex))}}function J(t,e){if(1&t&&(Z.TgZ(0,"div"),Z.YNc(1,$,6,14,"div",8),Z.qZA()),2&t){const t=Z.oxw();Z.Q6J("@rollInOut",void 0),Z.xp6(1),Z.Q6J("ngForOf",t.item.links)}}const Q=function(t,e){return{background:t,"border-top":e}},W=function(t){return{color:t}},X=function(){return{color:"currentColor"}},tt=function(t){return{background:t}};let et=(()=>{class t{constructor(t,e){this.router=t,this.store=e,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=t.url,t.events.subscribe(t=>{t instanceof s.m2&&(this.currentUrl=t.url)})}toggle(){void 0!==this.item.baseLink&&this.navigate(this.item.baseLink)}isActive(t,e){return new RegExp(e).test(t)}navigate(t){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.router.navigate(t)):this.router.navigate(t)}}return t.\u0275fac=function(e){return new(e||t)(Z.Y36(s.F0),Z.Y36(z.d6))},t.\u0275cmp=Z.Xpm({type:t,selectors:[["app-side-menu-item"]],viewQuery:function(t,e){if(1&t&&Z.Gf(U,5),2&t){let t;Z.iGM(t=Z.CRH())&&(e.collapseDiv=t.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(t,e){1&t&&(Z.TgZ(0,"div",0),Z.TgZ(1,"div",1),Z.NdJ("click",function(){return e.toggle()}),Z.TgZ(2,"div",2),Z.TgZ(3,"a",3),Z.TgZ(4,"div"),Z._UZ(5,"mat-icon",4),Z.qZA(),Z.TgZ(6,"div",5),Z._uU(7),Z.ALo(8,"translate"),Z.qZA(),Z.qZA(),Z.qZA(),Z.qZA(),Z.TgZ(9,"div"),Z.TgZ(10,"div",6),Z.YNc(11,J,2,2,"div",7),Z.qZA(),Z.qZA(),Z.qZA()),2&t&&(Z.xp6(1),Z.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",Z.WLB(18,Q,e.item.backgroundColorCss,e.index?e.dividerStyle:"none")),Z.xp6(1),Z.Gre("entity-menu-item-link ",e.item.labelClass,""),Z.Q6J("perunWebAppsMiddleClickRouterLink",e.item.baseLink),Z.xp6(1),Z.Q6J("ngStyle",Z.VKq(21,W,e.item.textColorCss)),Z.xp6(2),Z.Q6J("ngStyle",Z.DdM(23,X))("svgIcon",e.item.icon),Z.xp6(2),Z.Oqu(Z.lcZ(8,16,e.item.label)),Z.xp6(2),Z.Q6J("@openClose",e.expanded?"open":"closed"),Z.xp6(1),Z.Gre("side-entity-menu ",e.item.linksClass,""),Z.Q6J("ngStyle",Z.VKq(24,tt,e.linkBgColor)),Z.xp6(1),Z.Q6J("ngIf",e.showLinks))},directives:[c.wG,n.PC,B.YH,g.Hw,n.O5,n.sg,n.mk],pipes:[F.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:[N.BQ,N.Ly]}}),t})(),it=(()=>{class t{transform(t){if(void 0===t.value)return"";switch(t.type){case"java.lang.String":return t.value;case"java.lang.Integer":return t.value.toString();case"java.util.ArrayList":return this.whenValueIsArray(t.value);case"java.util.LinkedHashMap":return this.whenValueIsMap(t.value);case"java.lang.Boolean":return t.value.toString();default:return t.value}}whenValueIsArray(t){let e="";return t.forEach(function(t){e=e.concat(t+", ")}),e}whenValueIsMap(t){let e="";return t.forEach((t,i)=>{e=e.concat(i+": "+t+", ")}),e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Z.Yjl({name:"anyToString",type:t,pure:!0}),t})();const nt=["collapse"],st=function(){return{color:"linkTextColor"}};function ot(t,e){1&t&&(Z.TgZ(0,"mat-icon",12),Z._uU(1,"keyboard_arrow_right"),Z.qZA()),2&t&&Z.Q6J("ngStyle",Z.DdM(1,st))}function rt(t,e){1&t&&(Z.TgZ(0,"mat-icon",12),Z._uU(1,"keyboard_arrow_down"),Z.qZA()),2&t&&Z.Q6J("ngStyle",Z.DdM(1,st))}function at(t,e){if(1&t&&(Z.TgZ(0,"span",10),Z.YNc(1,ot,2,2,"mat-icon",11),Z.YNc(2,rt,2,2,"mat-icon",11),Z.qZA()),2&t){const t=Z.oxw().$implicit,e=Z.oxw();Z.xp6(1),Z.Q6J("ngIf",!e.isActive(e.currentUrl,t.showChildrenRegex)),Z.xp6(1),Z.Q6J("ngIf",e.isActive(e.currentUrl,t.showChildrenRegex))}}const ct=function(t,e){return{color:t,"border-color":e}};function lt(t,e){if(1&t){const t=Z.EpF();Z.TgZ(0,"a",14),Z.NdJ("click",function(){const e=Z.CHM(t).$implicit;return Z.oxw(3).navigate(e.url)}),Z._uU(1),Z.ALo(2,"translate"),Z.qZA()}if(2&t){const t=e.$implicit,i=Z.oxw(3);Z.ekj("activated",i.isActive(i.currentUrl,t.activatedRegex)&&void 0===i.item.activatedClass),Z.Q6J("perunWebAppsMiddleClickRouterLink",t.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",Z.WLB(9,ct,i.linkTextColor,i.linkTextColor))("ngClass",i.isActive(i.currentUrl,t.activatedRegex)&&void 0!==i.item.activatedClass?i.item.activatedClass:""),Z.xp6(1),Z.hij(" ",Z.lcZ(2,7,t.label)," ")}}function ut(t,e){if(1&t&&(Z.TgZ(0,"div"),Z.YNc(1,lt,3,12,"a",13),Z.qZA()),2&t){const t=Z.oxw().$implicit;Z.Q6J("@rollInOut",void 0),Z.xp6(1),Z.Q6J("ngForOf",null==t?null:t.children)}}function ht(t,e){if(1&t){const t=Z.EpF();Z.TgZ(0,"div"),Z.TgZ(1,"a",7),Z.NdJ("click",function(){const e=Z.CHM(t).$implicit;return Z.oxw().navigate(e.url)}),Z._uU(2),Z.ALo(3,"translate"),Z.YNc(4,at,3,2,"span",8),Z.qZA(),Z.YNc(5,ut,2,2,"div",9),Z.qZA()}if(2&t){const t=e.$implicit,i=Z.oxw();Z.xp6(1),Z.ekj("activated",i.isActive(i.currentUrl,t.activatedRegex)&&void 0===i.item.activatedClass),Z.Q6J("perunWebAppsMiddleClickRouterLink",t.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",Z.WLB(11,ct,i.linkTextColor,i.linkTextColor))("ngClass",i.isActive(i.currentUrl,t.activatedRegex)&&void 0!==i.item.activatedClass?i.item.activatedClass:""),Z.xp6(1),Z.hij(" ",Z.lcZ(3,9,t.label)," "),Z.xp6(2),Z.Q6J("ngIf",t.children),Z.xp6(1),Z.Q6J("ngIf",i.isActive(i.currentUrl,t.showChildrenRegex))}}const dt=function(t){return{background:t}},pt=function(t){return{color:t}},gt=function(){return{color:"currentColor"}};let ft=(()=>{class t{constructor(t,e){this.router=t,this.store=e,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=t.url,t.events.subscribe(t=>{t instanceof s.m2&&(this.currentUrl=t.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(t,e){return new RegExp(e).test(t)}getBgClass(){return this.item.baseColorClass?this.isActive(this.currentUrl,this.item.baseColorClassRegex)?this.item.colorClass:this.item.baseColorClass:this.item.colorClass}navigate(t){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.router.navigate(t)):this.router.navigate(t)}}return t.\u0275fac=function(e){return new(e||t)(Z.Y36(s.F0),Z.Y36(z.d6))},t.\u0275cmp=Z.Xpm({type:t,selectors:[["app-side-menu-root-item"]],viewQuery:function(t,e){if(1&t&&Z.Gf(nt,5),2&t){let t;Z.iGM(t=Z.CRH())&&(e.collapseDiv=t.first)}},inputs:{item:"item",index:"index",showOpen:"showOpen",id:"id",sideNav:"sideNav"},features:[Z.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","ngStyle","ngClass","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"],["matRipple","","class","pl-5 clickable",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngStyle","activated","ngClass","click",4,"ngFor","ngForOf"],["matRipple","",1,"pl-5","clickable",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngStyle","ngClass","click"]],template:function(t,e){1&t&&(Z.TgZ(0,"div",0),Z.TgZ(1,"div",1),Z.NdJ("click",function(){return e.toggle()}),Z.TgZ(2,"div"),Z.TgZ(3,"a",2),Z.TgZ(4,"div"),Z._UZ(5,"mat-icon",3),Z.qZA(),Z.TgZ(6,"div",4),Z._uU(7),Z.ALo(8,"translate"),Z.qZA(),Z.qZA(),Z.qZA(),Z.qZA(),Z.TgZ(9,"div"),Z.TgZ(10,"div",5),Z.YNc(11,ht,6,14,"div",6),Z.qZA(),Z.qZA(),Z.qZA()),2&t&&(Z.s9C("id",e.id),Z.xp6(1),Z.ekj("root-header-activated",e.isActive(e.currentUrl,e.item.baseColorClassRegex)),Z.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",Z.VKq(21,dt,e.item.backgroundColorCss))("perunWebAppsMiddleClickRouterLink",e.item.baseLink),Z.xp6(1),Z.Gre("entity-menu-item-link ",e.item.labelClass,""),Z.xp6(1),Z.Q6J("ngStyle",Z.VKq(23,pt,e.item.textColorCss)),Z.xp6(2),Z.Q6J("ngStyle",Z.DdM(25,gt))("svgIcon",e.item.icon),Z.xp6(2),Z.Oqu(Z.lcZ(8,19,e.item.label)),Z.xp6(2),Z.Q6J("@openClose",e.expanded?"open":"closed"),Z.xp6(1),Z.Gre("side-entity-menu ",e.item.linksClass,""),Z.Q6J("ngStyle",Z.VKq(26,dt,e.linkBgColor)),Z.xp6(1),Z.Q6J("ngForOf",e.item.links))},directives:[c.wG,n.PC,B.YH,g.Hw,n.sg,n.mk,n.O5],pipes:[F.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:[N.BQ,N.Ly]}}),t})();var mt=i(88975),bt=i(4253),_t=i(22727),wt=i(99373),At=i(41939),yt=i(7423),vt=i(22280),Tt=i(30146),Ct=i(85250),Et=i(84140),St=i(18820);let kt=(()=>{class t{constructor(t){this.translate=t,t.addLangs(["en","cs"])}}return t.\u0275fac=function(e){return new(e||t)(Z.LFG(F.sK))},t.\u0275mod=Z.oAB({type:t}),t.\u0275inj=Z.cJS({providers:[it,wt.A],imports:[[n.ez,s.Bz,o.Bb,f.c,p.lN,M.UX,M.u5,g.Ps,y.SJ,d.To,F.aw.forChild({}),r.ot,C.JX,E.p0,S.Nh,I.dp,r.ot,a.p9,u.Is,A.LD,T.ZX,_.Cq,b.Cv,k.AV,v.rP,l.FA,c.XK,w.Fk,h.t,c.si,m.TU,x.QW,D.T5,mt._t,x.QW,O.Hi,P.Tx,bt.Cl,_t.r,R.g,At.ez,yt.r,vt.d4,Tt.Co,Ct.ie,Et.Je,St.E3],Tt.Co,o.Bb,f.c,s.Bz,M.UX,M.u5,g.Ps,y.SJ,F.aw,C.JX,E.p0,S.Nh,I.dp,r.ot,a.p9,u.Is,A.LD,T.ZX,_.Cq,b.Cv,k.AV,v.rP,l.FA,c.XK,w.Fk,h.t,x.QW,D.T5,c.si,m.TU,mt._t,O.Hi,O.Hi,d.To,P.Tx,bt.Cl,bt.Cl,bt.Cl,yt.r]}),t})();Z.B6R(L.V,[ft,n.sg,et,n.O5],[])},75585:function(t,e,i){"use strict";i.d(e,{V:function(){return u}});var n=i(68416),s=i(65249),o=i(84140),r=i(22280),a=i(67004),c=i(31572),l=i(48160);let u=(()=>{class t{constructor(t,e,i,n,s,o,r){this.translate=t,this.authResolver=e,this.store=i,this.apiRequest=n,this.attributesManager=s,this.notificator=o,this.guiAuthResolver=r,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$"}]}}parseFacility(t){return{label:t.name,baseLink:[`/facilities/${t.id}`],backgroundColorCss:this.facilityBgColor,textColorCss:this.facilityTextColor,links:this.getFacilityLinks(t),colorClass:"facility-item",icon:"perun-facility-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseResource(t,e){const i=(new r.r5).transform(t,e);return{label:t.name,baseLink:[i],backgroundColorCss:this.resourceBgColor,textColorCss:this.resourceTextColor,links:this.getResourceLinks(i,e?"/organizations":"/facilities",t),colorClass:"resource-item",icon:"perun-resource-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}getResourceLinks(t,e,i){const n=[{label:"MENU_ITEMS.RESOURCE.OVERVIEW",url:[t],activatedRegex:`${e}/\\d+/resources/\\d+$`}];return this.authResolver.isAuthorized("getAssignedGroups_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",url:[t,"groups"],activatedRegex:`${e}/\\d+/resources/\\d+/groups$`}),this.authResolver.isAuthorized("getAssignedServices_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",url:[t,"services"],activatedRegex:`${e}/\\d+/resources/\\d+/services$`}),this.authResolver.isAuthorized("getAssignedMembers_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",url:[t,"members"],activatedRegex:`${e}/\\d+/resources/\\d+/members$`}),this.authResolver.isAuthorized("getAllResourcesTagsForResource_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",url:[t,"tags"],activatedRegex:`${e}/\\d+/resources/\\d+/tags$`}),n.push({label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",url:[t,"attributes"],activatedRegex:`${e}/\\d+/resources/\\d+/attributes$`}),this.authResolver.isManagerPagePrivileged(i)&&n.push({label:"MENU_ITEMS.RESOURCE.SETTINGS",url:[t,"settings"],activatedRegex:`${e}/\\d+/resources/\\d+/settings$`,children:[{label:"MENU_ITEMS.RESOURCE.MANAGERS",url:[t,"settings","managers"],activatedRegex:`${e}/\\d+/resources/\\d+/settings/managers$`}],showChildrenRegex:`${e}/\\d+/resources/\\d+/settings`}),n}parseGroup(t){return{label:t.name,baseLink:[`/organizations/${t.voId}/groups/${t.id}`],backgroundColorCss:this.groupBgColor,textColorCss:this.groupTextColor,links:this.getGroupLinks(t),colorClass:"group-item",icon:"perun-group",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseVo(t){return{label:t.name,baseLink:[`/organizations/${t.id}`],links:this.getVoLinks(t),colorClass:"vo-item",icon:"perun-vo",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.voBgColor,textColorCss:this.voTextColor}}parseMember(t,e){return{label:(0,o.bD)(t.user),baseLink:[`/organizations/${t.voId}/members/${t.id}`],backgroundColorCss:this.memberBgColor,textColorCss:this.memberTextColor,links:this.getMemberLinks(t,e),colorClass:"member-item",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseUser(t,e,i){return{label:(0,o.bD)(t),baseLink:[e],backgroundColorCss:this.userBgColor,textColorCss:this.userTextColor,links:this.getUserLinks(t,e,i),colorClass:"user-bg-color",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseServiceIdentity(t){return{label:(0,o.bD)(t),baseLink:[`/myProfile/service-identities/${t.id}`],backgroundColorCss:this.userBgColor,textColorCss:this.userTextColor,links:[{label:"MENU_ITEMS.USER.OVERVIEW",url:[`/myProfile/service-identities/${t.id}`],activatedRegex:"/myProfile/service-identities/\\d+$"},{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:[`/myProfile/service-identities/${t.id}/associated-users`],activatedRegex:"/myProfile/service-identities/\\d+/associated-users"}],colorClass:"user-bg-color",icon:"perun-service-identity",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseService(t){return{label:t.name,baseLink:[`/admin/services/${t.id}`],backgroundColorCss:this.serviceBgColor,textColorCss:this.serviceTextColor,links:[{label:"MENU_ITEMS.SERVICE.OVERVIEW",url:[`/admin/services/${t.id}`],activatedRegex:"/admin/services/\\d+$"},{label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",url:[`/admin/services/${t.id}/required-attributes`],activatedRegex:"/admin/services/\\d+/required-attributes"},{label:"MENU_ITEMS.SERVICE.DESTINATIONS",url:[`/admin/services/${t.id}/destinations`],activatedRegex:"/admin/services/\\d+/destinations"}],colorClass:"service-item",icon:"perun-service",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}getVoLinks(t){const e=[];if(e.push({label:"MENU_ITEMS.VO.OVERVIEW",url:[`/organizations/${t.id}`],activatedRegex:"/organizations/\\d+$"}),this.authResolver.isAuthorized("getCompleteRichMembers_Vo_List_policy",[t])&&e.push({label:"MENU_ITEMS.VO.MEMBERS",url:[`/organizations/${t.id}/members`],activatedRegex:"/organizations/\\d+/members$"}),this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[t])&&e.push({label:"MENU_ITEMS.VO.GROUPS",url:[`/organizations/${t.id}/groups`],activatedRegex:"/organizations/\\d+/groups$"}),this.authResolver.isAuthorized("getRichResources_Vo_policy",[t])){const i=[{label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",url:[`/organizations/${t.id}/resources/preview`],activatedRegex:"/organizations/\\d+/resources/preview$"}];this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[t])&&i.push({label:"MENU_ITEMS.VO.RESOURCE_TAGS",url:[`/organizations/${t.id}/resources/tags`],activatedRegex:"/organizations/\\d+/resources/tags$"}),this.authResolver.isAuthorized("getResourcesState_Vo_policy",[t])&&i.push({label:"MENU_ITEMS.VO.RESOURCE_STATES",url:[`/organizations/${t.id}/resources/states`],activatedRegex:"/organizations/\\d+/resources/states$"}),e.push({label:"MENU_ITEMS.VO.RESOURCES",url:[`/organizations/${t.id}/resources`],activatedRegex:"/organizations/\\d+/resources$",children:i,showChildrenRegex:"/organizations/\\d+/resources"})}this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[t])&&e.push({label:"MENU_ITEMS.VO.APPLICATIONS",url:[`/organizations/${t.id}/applications`],activatedRegex:"/organizations/\\d+/applications"}),this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[t])&&e.push({label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",url:[`/organizations/${t.id}/sponsoredMembers`],activatedRegex:"/organizations/\\d+/sponsoredMembers$"}),this.authResolver.isAuthorized("createSpecificMember_Vo_Candidate_List_SpecificUserType_List_policy",[t])&&e.push({label:"MENU_ITEMS.VO.SERVICE_MEMBERS",url:[`/organizations/${t.id}/serviceAccounts`],activatedRegex:"/organizations/\\d+/serviceAccounts$"}),e.push({label:"MENU_ITEMS.VO.ATTRIBUTES",url:[`/organizations/${t.id}/attributes`],activatedRegex:"/organizations/\\d+/attributes$"}),this.guiAuthResolver.isAuthorized("getMembersCount_Vo_Status_policy",[t])&&this.guiAuthResolver.isAuthorized("getMembersCount_Vo_policy",[t])&&e.push({label:"MENU_ITEMS.VO.STATISTICS",url:[`/organizations/${t.id}/statistics`],activatedRegex:"/organizations/\\d+/statistics"});const i=this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[t]),n=this.authResolver.isManagerPagePrivileged(t),s=this.authResolver.isThisVoAdminOrObserver(t.id);if(n||i||s){const o=[];s&&o.push({label:"MENU_ITEMS.VO.EXPIRATION",url:[`/organizations/${t.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/settings/expiration$"}),n&&o.push({label:"MENU_ITEMS.VO.MANAGERS",url:[`/organizations/${t.id}/settings/managers`],activatedRegex:"/organizations/\\d+/settings/managers$"}),s&&o.push({label:"MENU_ITEMS.VO.APPLICATION_FORM",url:[`/organizations/${t.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/settings/applicationForm$"}),s&&o.push({label:"MENU_ITEMS.VO.NOTIFICATIONS",url:[`/organizations/${t.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/settings/notifications$"}),i&&o.push({label:"MENU_ITEMS.VO.EXTSOURCES",url:[`/organizations/${t.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/settings/extsources$"}),e.push({label:"MENU_ITEMS.VO.SETTINGS",url:[`/organizations/${t.id}/settings`],activatedRegex:"/organizations/\\d+/settings$",children:o,showChildrenRegex:"/organizations/\\d+/settings"})}return e}getUserLinks(t,e,i){const n=[];return n.push({label:"MENU_ITEMS.USER.OVERVIEW",url:[e],activatedRegex:`${i}$`}),n.push({label:"MENU_ITEMS.ADMIN.ORGANIZATIONS",url:[`${e}/organizations`],activatedRegex:`${i}/organizations`}),n.push({label:"MENU_ITEMS.ADMIN.GROUPS",url:[`${e}/groups`],activatedRegex:`${i}/groups`}),n.push({label:"MENU_ITEMS.USER.ACCOUNTS",url:[`${e}/accounts`],activatedRegex:`${i}/accounts`}),n.push({label:"MENU_ITEMS.USER.IDENTITIES",url:[`${e}/identities`],activatedRegex:`${i}/identities`}),n.push({label:"MENU_ITEMS.USER.FACILITIES",url:[`${e}/facilities`],activatedRegex:`${i}/facilities`}),n.push({label:"MENU_ITEMS.USER.RESOURCES",url:[`${e}/resources`],activatedRegex:`${i}/resources`}),n.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`${e}/attributes`],activatedRegex:`${i}/attributes`}),n.push({label:"MENU_ITEMS.USER.ROLES",url:[`${e}/roles`],activatedRegex:`^${e}/roles`}),n.push(t.serviceUser?{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:[`${e}/associated-users`],activatedRegex:`^${e}/associated-users`}:{label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",url:[`${e}/service-identities`],activatedRegex:`^${e}/service-identities`}),n}getMemberLinks(t,e){const i=[{label:"MENU_ITEMS.MEMBER.OVERVIEW",url:[`/organizations/${t.voId}/members/${t.id}`],activatedRegex:"/organizations/\\d+/members/\\d+$"}];return this.authResolver.isAuthorized("getMemberGroups_Member_policy",[e])&&i.push({label:"MENU_ITEMS.MEMBER.GROUPS",url:[`//organizations/${t.voId}/members/${t.id}/groups`],activatedRegex:"/organizations/\\d+/members/\\d+/groups"}),this.authResolver.isAuthorized("vo-getApplicationsForMember_Group_Member_policy",[e])&&i.push({label:"MENU_ITEMS.MEMBER.APPLICATIONS",url:[`//organizations/${t.voId}/members/${t.id}/applications`],activatedRegex:"/organizations/\\d+/members/\\d+/applications"}),this.authResolver.isAuthorized("getAssignedRichResources_Member_policy",[e])&&i.push({label:"MENU_ITEMS.MEMBER.RESOURCES",url:[`/organizations/${t.voId}/members/${t.id}/resources`],activatedRegex:"/organizations/\\d+/members/\\d+/resources"}),i.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`/organizations/${t.voId}/members/${t.id}/attributes`],activatedRegex:"/organizations/\\d+/members/\\d+/attributes$"}),i}getFacilityLinks(t){const e=[{label:"MENU_ITEMS.FACILITY.OVERVIEW",url:[`/facilities/${t.id}`],activatedRegex:"/facilities/\\d+$"}];this.authResolver.isAuthorized("getAssignedRichResources_Facility_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.RESOURCES",url:[`/facilities/${t.id}/resources`],activatedRegex:"/facilities/\\d+/resources$"}),this.authResolver.isAuthorized("getAssignedUsers_Facility_Service_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",url:[`/facilities/${t.id}/allowed-users`],activatedRegex:"/facilities/\\d+/allowed-users"}),this.authResolver.isAuthorized("getAllowedGroups_Facility_Vo_Service_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",url:[`/facilities/${t.id}/allowed-groups`],activatedRegex:"/facilities/\\d+/allowed-groups"}),this.authResolver.isAuthorized("getFacilityServicesState_Facility_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",url:[`/facilities/${t.id}/services-status`],activatedRegex:"/facilities/\\d+/services-status"}),this.authResolver.isAuthorized("getAllRichDestinations_Facility_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",url:[`/facilities/${t.id}/services-destinations`],activatedRegex:"facilities/\\d+/services-destinations"}),this.authResolver.isFacilityAdmin()&&e.push({label:"MENU_ITEMS.FACILITY.HOSTS",url:[`/facilities/${t.id}/hosts`],activatedRegex:"facilities/\\d+/hosts"}),e.push({label:"MENU_ITEMS.FACILITY.ATTRIBUTES",url:["/facilities",t.id,"attributes"],activatedRegex:"/facilities/\\d+/attributes$"});const i=this.authResolver.isAuthorized("getBansForFacility_int_policy",[t]),n=this.authResolver.isAuthorized("getRichAdmins_Facility_List_boolean_boolean_policy",[t]),s=this.authResolver.isAuthorized("getOwners_Facility_policy",[t]),o=this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[t]);if(i||n||s||o){const r=[];s&&r.push({label:"MENU_ITEMS.FACILITY.OWNERS",url:["/facilities",t.id,"settings","owners"],activatedRegex:"/facilities/\\d+/settings/owners$"}),n&&r.push({label:"MENU_ITEMS.FACILITY.MANAGERS",url:["/facilities",t.id,"settings","managers"],activatedRegex:"/facilities/\\d+/settings/managers$"}),o&&r.push({label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",url:[`/facilities/${t.id}/settings/security-teams`],activatedRegex:"facilities/\\d+/settings/security-teams"}),i&&r.push({label:"MENU_ITEMS.FACILITY.BLACKLIST",url:["facilities",t.id,"settings","blacklist"],activatedRegex:"/facilities/\\d+/settings/blacklist"}),e.push({label:"MENU_ITEMS.FACILITY.SETTINGS",url:["/facilities",t.id,"settings"],activatedRegex:"/facilities/\\d+/settings$",children:r,showChildrenRegex:"/facilities/\\d+/settings"})}return e}getGroupLinks(t){const e=[],i=[];e.push({label:"MENU_ITEMS.GROUP.OVERVIEW",url:[`/organizations/${t.voId}/groups/${t.id}`],activatedRegex:"/organizations/\\d+/groups/\\d+$"}),this.authResolver.isAuthorized("getCompleteRichMembers_Group_List_boolean_policy",[t])&&e.push({label:"MENU_ITEMS.GROUP.MEMBERS",url:[`/organizations/${t.voId}/groups/${t.id}/members`],activatedRegex:"/organizations/\\d+/groups/\\d+/members$"}),this.authResolver.isAuthorized("getAllRichSubGroupsWithAttributesByNames_Group_List_policy",[t])&&"members"!==t.name&&e.push({label:"MENU_ITEMS.GROUP.SUBGROUPS",url:[`/organizations/${t.voId}/groups/${t.id}/subgroups`],activatedRegex:"/organizations/\\d+/groups/\\d+/subgroups$"}),this.authResolver.isAuthorized("getAssignedRichResources_Group_policy",[t])&&e.push({label:"MENU_ITEMS.GROUP.RESOURCES",url:[`/organizations/${t.voId}/groups/${t.id}/resources`],activatedRegex:"/organizations/\\d+/groups/\\d+/resources$"}),this.authResolver.isAuthorized("getApplicationsForGroup_Group_List_policy",[t])&&e.push({label:"MENU_ITEMS.GROUP.APPLICATIONS",url:[`/organizations/${t.voId}/groups/${t.id}/applications`],activatedRegex:"/organizations/\\d+/groups/\\d+/applications$"}),e.push({label:"MENU_ITEMS.GROUP.ATTRIBUTES",url:[`/organizations/${t.voId}/groups/${t.id}/attributes`],activatedRegex:"/organizations/\\d+/groups/\\d+/attributes$"});const n=this.guiAuthResolver.isAuthorized("getGroupMembersCount_Group_policy",[t]),s=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByVoStatus_Group_policy",[t]),o=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByGroupStatus_Group_policy",[t]);return n&&s&&o&&e.push({label:"MENU_ITEMS.GROUP.STATISTICS",url:[`/organizations/${t.voId}/groups/${t.id}/statistics`],activatedRegex:"/organizations/\\d+/groups/\\d+/statistics"}),this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(t.id,a.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{i.push({label:"MENU_ITEMS.GROUP.EXPIRATION",url:[`/organizations/${t.voId}/groups/${t.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/expiration$"})},t=>{"HttpErrorResponse"!==t.name&&this.notificator.showRPCError(t)}),this.authResolver.isManagerPagePrivileged(t)&&i.push({label:"MENU_ITEMS.GROUP.MANAGERS",url:[`/organizations/${t.voId}/groups/${t.id}/settings/managers`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/managers$"}),this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[t])&&i.push({label:"MENU_ITEMS.GROUP.APPLICATION_FORM",url:[`/organizations/${t.voId}/groups/${t.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/applicationForm$"}),this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[t])&&i.push({label:"MENU_ITEMS.GROUP.NOTIFICATIONS",url:[`/organizations/${t.voId}/groups/${t.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/notifications$"}),this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[t])&&i.push({label:"MENU_ITEMS.GROUP.RELATIONS",url:[`/organizations/${t.voId}/groups/${t.id}/settings/relations`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/relations$"}),this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[t])&&i.push({label:"MENU_ITEMS.GROUP.EXTSOURCES",url:[`/organizations/${t.voId}/groups/${t.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/extsources$"}),0!==i.length&&e.push({label:"MENU_ITEMS.GROUP.SETTINGS",url:[`/organizations/${t.voId}/groups/${t.id}/settings`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings$",children:i,showChildrenRegex:"/organizations/\\d+/groups/\\d+/settings"}),e}}return t.\u0275fac=function(e){return new(e||t)(c.LFG(l.sK),c.LFG(n.x4),c.LFG(n.d6),c.LFG(n.F5),c.LFG(s.H8),c.LFG(n.V6),c.LFG(n.x4))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},24081:function(t,e,i){"use strict";i.d(e,{V:function(){return _}});var n=i(61601),s=i(75585),o=i(68416),r=i(17),a=i(31572),c=i(48958);function l(t,e){if(1&t&&(a.TgZ(0,"div",9),a._UZ(1,"app-side-menu-item",10),a.qZA()),2&t){const t=e.$implicit,i=e.index,n=a.oxw();a.Q6J("@rollInOut",void 0),a.xp6(1),a.Q6J("sideNav",n.sideNav)("item",t)("index",i)}}function u(t,e){if(1&t&&(a.TgZ(0,"div",9),a._UZ(1,"app-side-menu-item",11),a.qZA()),2&t){const t=e.$implicit,i=e.index,n=a.oxw();a.Q6J("@rollInOut",void 0),a.xp6(1),a.Q6J("sideNav",n.sideNav)("item",t)("index",i)("showLinks",i===n.accessItems.length-1)}}function h(t,e){if(1&t&&a._UZ(0,"app-side-menu-root-item",2),2&t){const t=a.oxw();a.Q6J("id","facilities-item-btn")("sideNav",t.sideNav)("item",t.facilityItem)}}function d(t,e){if(1&t&&(a.TgZ(0,"div",9),a._UZ(1,"app-side-menu-item",11),a.qZA()),2&t){const t=e.$implicit,i=e.index,n=a.oxw(2);a.Q6J("@rollInOut",void 0),a.xp6(1),a.Q6J("sideNav",n.sideNav)("item",t)("index",i)("showLinks",i===n.facilityItems.length-1)}}function p(t,e){if(1&t&&(a.TgZ(0,"div"),a.YNc(1,d,2,5,"div",3),a.qZA()),2&t){const t=a.oxw();a.xp6(1),a.Q6J("ngForOf",t.facilityItems)}}function g(t,e){if(1&t&&(a.TgZ(0,"div",9),a._UZ(1,"app-side-menu-item",11),a.qZA()),2&t){const t=e.$implicit,i=e.index,n=a.oxw();a.Q6J("@rollInOut",void 0),a.xp6(1),a.Q6J("sideNav",n.sideNav)("item",t)("index",i)("showLinks",i===n.userItems.length-1)}}function f(t,e){if(1&t&&a._UZ(0,"app-side-menu-root-item",7),2&t){const t=a.oxw();a.Q6J("id","admin-item-btn")("sideNav",t.sideNav)("showOpen",t.adminItemOpened)("item",t.adminItem)}}function m(t,e){if(1&t&&(a.TgZ(0,"div",9),a._UZ(1,"app-side-menu-item",11),a.qZA()),2&t){const t=e.$implicit,i=e.index,n=a.oxw(2);a.Q6J("@rollInOut",void 0),a.xp6(1),a.Q6J("sideNav",n.sideNav)("item",t)("index",i)("showLinks",!0)}}function b(t,e){if(1&t&&(a.TgZ(0,"div"),a.YNc(1,m,2,5,"div",3),a.qZA()),2&t){const t=a.oxw();a.xp6(1),a.Q6J("ngForOf",t.adminItems)}}let _=(()=>{class t{constructor(t,e,i){this.sideMenuService=t,this.sideMenuItemService=e,this.authResolver=i,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}ngOnInit(){this.mobileView=window.innerWidth<=n.y.minWidth,this.mobileView?this.sideNav.close():this.sideNav.open(),this.sideMenuService.facilityItemsChange.subscribe(t=>{this.setFacilityItems(t)}),this.sideMenuService.accessItemsChange.subscribe(t=>{this.setAccessItems(t)}),this.sideMenuService.adminItemsChange.subscribe(t=>{this.setAdminItems(t)}),this.sideMenuService.userItemsChange.subscribe(t=>{this.setUserItems(t)}),this.sideMenuService.homeItemsChange.subscribe(t=>{this.setHomeItems(t)}),this.sideMenuService.resetChange.subscribe(()=>{this.reset()})}reset(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.adminItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}resetExceptHome(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.adminItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}resetExceptFacility(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.adminItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.userItems,[])}resetExceptAccess(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.adminItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}resetExceptAdmin(){this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}resetExceptUser(){this.adminItemOpened=!1,this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.adminItems,[])}setHomeItems(t){this.resetExceptHome(),this.setNewItems(this.homeItems,t)}setFacilityItems(t){this.resetExceptFacility(),this.setNewItems(this.facilityItems,t)}setAccessItems(t){this.resetExceptAccess(),this.setNewItems(this.accessItems,t)}setUserItems(t){this.userItemOpened=0===t.length,this.resetExceptUser(),this.setNewItems(this.userItems,t)}setAdminItems(t){this.adminItemOpened=0===t.length,this.resetExceptAdmin(),this.setNewItems(this.adminItems,t)}setNewItems(t,e){const i=t.length>e.length?t.length:e.length;for(let n=0;nt.length-1)t.push(e[n]);else{if(n>e.length-1){const e=t.length;for(let i=0;i{class t{constructor(t){this.dialogRef=t}onCancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(o.so))},t.\u0275cmp=n.Xpm({type:t,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"],["mat-flat-button","","color","warn","data-cy","delete-application-form-item-dialog",1,"ml-2",3,"click"]],template:function(t,e){1&t&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",1),n.TgZ(4,"div",2),n._uU(5),n.ALo(6,"translate"),n.qZA(),n.TgZ(7,"div"),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.TgZ(10,"div",3),n._uU(11),n.ALo(12,"translate"),n.qZA(),n.qZA(),n.TgZ(13,"div",4),n.TgZ(14,"button",5),n.NdJ("click",function(){return e.onCancel()}),n._uU(15),n.ALo(16,"translate"),n.qZA(),n.TgZ(17,"button",6),n.NdJ("click",function(){return e.submit()}),n._uU(18),n.ALo(19,"translate"),n.qZA(),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,6,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.TITLE")),n.xp6(4),n.hij(" ",n.lcZ(6,8,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_1")," "),n.xp6(3),n.Oqu(n.lcZ(9,10,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_2")),n.xp6(3),n.Oqu(n.lcZ(12,12,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_3")),n.xp6(4),n.hij(" ",n.lcZ(16,14,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.CANCEL_BUTTON")," "),n.xp6(3),n.hij(" ",n.lcZ(19,16,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.SUBMIT_BUTTON")," "))},directives:[o.uh,o.xY,o.H8,r.lW],pipes:[a.X$],styles:[""]}),t})();var l=i(68416),u=i(75954),h=i(84140),d=i(57629),p=i(61511),g=i(67806),f=i(67033),m=i(43691),b=i(36922),_=i(16073),w=i(39571),A=i(65050),y=i(82877);const v=["table"];function T(t,e){1&t&&n._UZ(0,"mat-spinner",3)}function C(t,e){1&t&&n._UZ(0,"th",24)}function E(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",25),n.TgZ(1,"button",26),n.NdJ("mousedown",function(){return n.CHM(t),n.oxw(2).dragDisabled=!1}),n.TgZ(2,"mat-icon"),n._uU(3,"drag_indicator"),n.qZA(),n.qZA(),n.qZA()}}function S(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SHORTNAME")," "))}function k(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.shortname)}}function I(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPE")," "))}function x(t,e){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.ALo(2,"applicationFormItemType"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,t.type)," ")}}function R(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HEADER")," "))}function O(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"mat-icon",30),n._uU(2,"lock"),n.qZA(),n._UZ(3,"br"),n._uU(4),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(1),n.Q6J("matTooltip",e.disabledTooltip(t)),n.xp6(3),n.hij(" ",e.disabledHiddenDependency(t,t.disabled,t.disabledDependencyItemId)," ")}}function P(t,e){if(1&t&&(n.TgZ(0,"td",28),n.YNc(1,O,5,2,"div",29),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf","NEVER"!==t.disabled)}}function D(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN_HEADER")," "))}function M(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"mat-icon",30),n._uU(2,"visibility_off"),n.qZA(),n._UZ(3,"br"),n._uU(4),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(1),n.Q6J("matTooltip",e.hiddenTooltip(t)),n.xp6(3),n.hij(" ",e.disabledHiddenDependency(t,t.hidden,t.hiddenDependencyItemId)," ")}}function L(t,e){if(1&t&&(n.TgZ(0,"td",28),n.YNc(1,M,5,2,"div",29),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf","NEVER"!==t.hidden)}}function N(t,e){1&t&&(n.TgZ(0,"th",24),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW")," "))}function z(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"form"),n._UZ(2,"input",32),n.qZA(),n.qZA())}function Z(t,e){1&t&&(n.TgZ(0,"div",33),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN_VALUE")," "))}function B(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"form"),n._UZ(2,"input",34),n.qZA(),n.qZA())}function F(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"form"),n._UZ(2,"input",35),n._UZ(3,"br"),n._UZ(4,"input",32),n.qZA(),n.qZA())}function U(t,e){if(1&t&&(n.TgZ(0,"div"),n._UZ(1,"input",38),n._uU(2),n._UZ(3,"br"),n.qZA()),2&t){const t=e.$implicit;n.xp6(2),n.hij(" ",t,"")}}function q(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"form"),n.YNc(2,U,4,1,"div",36),n._UZ(3,"input",37),n.ALo(4,"translate"),n.qZA(),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(2),n.Q6J("ngForOf",e.getLocalizedOptions(t)),n.xp6(1),n.s9C("value",n.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION"))}}function H(t,e){if(1&t&&(n.TgZ(0,"div"),n._UZ(1,"span",39),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(1),n.Q6J("innerHTML",e.getLocalizedLabel(t),n.oJD)}}function G(t,e){if(1&t&&(n.TgZ(0,"option"),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.hij(" ",t," ")}}function j(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"select"),n.YNc(2,G,2,1,"option",36),n.qZA(),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(2),n.Q6J("ngForOf",e.getLocalizedOptions(t))}}function Y(t,e){1&t&&(n.TgZ(0,"div"),n._UZ(1,"textarea"),n.qZA())}function K(t,e){if(1&t&&(n.TgZ(0,"option",43),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.hij(" ",t," ")}}function V(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"form"),n._UZ(2,"input",32),n.qZA(),n.qZA())}function $(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"div"),n.TgZ(1,"select",40),n.NdJ("ngModelChange",function(e){n.CHM(t);const i=n.oxw().$implicit;return n.oxw(2).mapForCombobox[i.id]=e}),n.YNc(2,K,2,1,"option",41),n.TgZ(3,"option",42),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.qZA(),n.YNc(6,V,3,0,"div",29),n.qZA()}if(2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(1),n.Q6J("ngModel",e.mapForCombobox[t.id]),n.xp6(1),n.Q6J("ngForOf",e.getLocalizedOptions(t)),n.xp6(2),n.hij(" ",n.lcZ(5,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")," "),n.xp6(2),n.Q6J("ngIf","true"===e.mapForCombobox[t.id])}}function J(t,e){if(1&t&&(n.TgZ(0,"div"),n._UZ(1,"input",44),n._uU(2),n.qZA()),2&t){const t=e.$implicit;n.xp6(2),n.hij(" ",t," ")}}function Q(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"form"),n.YNc(2,J,3,1,"div",36),n.qZA(),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(2),n.Q6J("ngForOf",e.getLocalizedOptions(t))}}function W(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"button",45),n._uU(2),n.qZA(),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(2),n.hij(" ",e.getLocalizedLabel(t)," ")}}function X(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"select",46),n.TgZ(2,"option",47),n._uU(3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"option",48),n._uU(6,"(GMT -12:00) Eniwetok, Kwajalein"),n.qZA(),n.TgZ(7,"option",49),n._uU(8,"(GMT -11:00) Midway Island, Samoa"),n.qZA(),n.TgZ(9,"option",50),n._uU(10,"(GMT -10:00) Hawaii"),n.qZA(),n.TgZ(11,"option",51),n._uU(12,"(GMT -9:30) Taiohae"),n.qZA(),n.TgZ(13,"option",52),n._uU(14,"(GMT -9:00) Alaska"),n.qZA(),n.TgZ(15,"option",53),n._uU(16,"(GMT -8:00) Pacific Time (US & Canada)"),n.qZA(),n.TgZ(17,"option",54),n._uU(18,"(GMT -7:00) Mountain Time (US & Canada)"),n.qZA(),n.TgZ(19,"option",55),n._uU(20," (GMT -6:00) Central Time (US & Canada), Mexico City "),n.qZA(),n.TgZ(21,"option",56),n._uU(22," (GMT -5:00) Eastern Time (US & Canada), Bogota, Lima "),n.qZA(),n.TgZ(23,"option",57),n._uU(24,"(GMT -4:30) Caracas"),n.qZA(),n.TgZ(25,"option",58),n._uU(26,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),n.qZA(),n.TgZ(27,"option",59),n._uU(28,"(GMT -3:30) Newfoundland"),n.qZA(),n.TgZ(29,"option",60),n._uU(30,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),n.qZA(),n.TgZ(31,"option",61),n._uU(32,"(GMT -2:00) Mid-Atlantic"),n.qZA(),n.TgZ(33,"option",62),n._uU(34,"(GMT -1:00) Azores, Cape Verde Islands"),n.qZA(),n.TgZ(35,"option",63),n._uU(36," (GMT) Western Europe Time, London, Lisbon, Casablanca "),n.qZA(),n.TgZ(37,"option",64),n._uU(38,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),n.qZA(),n.TgZ(39,"option",65),n._uU(40,"(GMT +2:00) Kaliningrad, South Africa"),n.qZA(),n.TgZ(41,"option",66),n._uU(42,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),n.qZA(),n.TgZ(43,"option",67),n._uU(44,"(GMT +3:30) Tehran"),n.qZA(),n.TgZ(45,"option",68),n._uU(46,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),n.qZA(),n.TgZ(47,"option",69),n._uU(48,"(GMT +4:30) Kabul"),n.qZA(),n.TgZ(49,"option",70),n._uU(50," (GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent "),n.qZA(),n.TgZ(51,"option",71),n._uU(52,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),n.qZA(),n.TgZ(53,"option",72),n._uU(54,"(GMT +5:45) Kathmandu, Pokhara"),n.qZA(),n.TgZ(55,"option",73),n._uU(56,"(GMT +6:00) Almaty, Dhaka, Colombo"),n.qZA(),n.TgZ(57,"option",74),n._uU(58,"(GMT +6:30) Yangon, Mandalay"),n.qZA(),n.TgZ(59,"option",75),n._uU(60,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),n.qZA(),n.TgZ(61,"option",76),n._uU(62,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),n.qZA(),n.TgZ(63,"option",77),n._uU(64,"(GMT +8:45) Eucla"),n.qZA(),n.TgZ(65,"option",78),n._uU(66,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),n.qZA(),n.TgZ(67,"option",79),n._uU(68,"(GMT +9:30) Adelaide, Darwin"),n.qZA(),n.TgZ(69,"option",80),n._uU(70,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),n.qZA(),n.TgZ(71,"option",81),n._uU(72,"(GMT +10:30) Lord Howe Island"),n.qZA(),n.TgZ(73,"option",82),n._uU(74,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),n.qZA(),n.TgZ(75,"option",83),n._uU(76,"(GMT +11:30) Norfolk Island"),n.qZA(),n.TgZ(77,"option",84),n._uU(78,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),n.qZA(),n.TgZ(79,"option",85),n._uU(80,"(GMT +12:45) Chatham Islands"),n.qZA(),n.TgZ(81,"option",86),n._uU(82,"(GMT +13:00) Apia, Nukualofa"),n.qZA(),n.TgZ(83,"option",87),n._uU(84,"(GMT +14:00) Line Islands, Tokelau"),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.xp6(3),n.hij(" ",n.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")," "))}function tt(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"button",45),n._uU(2),n.qZA(),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(2),n.hij(" ",e.getLocalizedLabel(t)," ")}}function et(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"form"),n._UZ(2,"input",44),n._uU(3," example group1 "),n._UZ(4,"br"),n._UZ(5,"input",44),n._uU(6," example group2 "),n._UZ(7,"br"),n._UZ(8,"input",44),n._uU(9," example group3 "),n.qZA(),n.qZA())}function it(t,e){if(1&t&&(n.TgZ(0,"td",25),n.YNc(1,z,3,0,"div",29),n.YNc(2,Z,3,3,"div",31),n.YNc(3,B,3,0,"div",29),n.YNc(4,F,5,0,"div",29),n.YNc(5,q,5,4,"div",29),n.YNc(6,H,2,1,"div",29),n.YNc(7,j,3,1,"div",29),n.YNc(8,Y,2,0,"div",29),n.YNc(9,$,7,6,"div",29),n.YNc(10,Q,3,1,"div",29),n.YNc(11,W,3,1,"div",29),n.YNc(12,X,85,3,"div",29),n.YNc(13,tt,3,1,"div",29),n.YNc(14,et,10,0,"div",29),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf","TEXTFIELD"===t.type||"VALIDATED_EMAIL"===t.type||"USERNAME"===t.type),n.xp6(1),n.Q6J("ngIf","FROM_FEDERATION_HIDDEN"===t.type),n.xp6(1),n.Q6J("ngIf","FROM_FEDERATION_SHOW"===t.type),n.xp6(1),n.Q6J("ngIf","PASSWORD"===t.type),n.xp6(1),n.Q6J("ngIf","RADIO"===t.type),n.xp6(1),n.Q6J("ngIf","HEADING"===t.type||"HTML_COMMENT"===t.type),n.xp6(1),n.Q6J("ngIf","SELECTIONBOX"===t.type),n.xp6(1),n.Q6J("ngIf","TEXTAREA"===t.type),n.xp6(1),n.Q6J("ngIf","COMBOBOX"===t.type),n.xp6(1),n.Q6J("ngIf","CHECKBOX"===t.type),n.xp6(1),n.Q6J("ngIf","SUBMIT_BUTTON"===t.type),n.xp6(1),n.Q6J("ngIf","TIMEZONE"===t.type),n.xp6(1),n.Q6J("ngIf","AUTO_SUBMIT_BUTTON"===t.type),n.xp6(1),n.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===t.type)}}function nt(t,e){1&t&&n._UZ(0,"th",24)}function st(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",89),n.NdJ("click",function(){return n.CHM(t),n.oxw(3).openManagingGroups()}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon"),n._uU(3,"supervised_user_circle"),n.qZA(),n.qZA()}2&t&&n.s9C("matTooltip",n.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS"))}function ot(t,e){if(1&t&&(n.TgZ(0,"td",25),n.YNc(1,st,4,3,"button",88),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===t.type&&!t.forDelete)}}function rt(t,e){1&t&&n._UZ(0,"th",24)}function at(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",92),n.NdJ("click",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw(2).edit(e)}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon"),n._uU(3,"edit"),n.qZA(),n.qZA()}2&t&&n.s9C("matTooltip",n.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.EDIT"))}function ct(t,e){1&t&&(n.TgZ(0,"div",93),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MARK_DELETE")," "))}function lt(t,e){if(1&t&&(n.TgZ(0,"td",25),n.YNc(1,at,4,3,"button",90),n.YNc(2,ct,3,3,"div",91),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf",!t.forDelete),n.xp6(1),n.Q6J("ngIf",t.forDelete)}}function ut(t,e){1&t&&n._UZ(0,"th",24)}function ht(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",95),n.NdJ("click",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw(2).delete(e)}),n.ALo(1,"multiWordDataCy"),n.ALo(2,"translate"),n.TgZ(3,"mat-icon"),n._uU(4,"delete"),n.qZA(),n.qZA()}if(2&t){const t=n.oxw().$implicit;n.Q2q("data-cy","",n.lcZ(1,2,t.shortname),"-delete"),n.s9C("matTooltip",n.lcZ(2,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DELETE"))}}function dt(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",89),n.NdJ("click",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw(2).restore(e)}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon"),n._uU(3,"settings_backup_restore"),n.qZA(),n.qZA()}2&t&&n.s9C("matTooltip",n.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.REVERT_DELETE"))}function pt(t,e){if(1&t&&(n.TgZ(0,"td",25),n.YNc(1,ht,5,6,"button",94),n.YNc(2,dt,4,3,"button",88),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf",!t.forDelete),n.xp6(1),n.Q6J("ngIf",t.forDelete)}}function gt(t,e){1&t&&n._UZ(0,"tr",96)}function ft(t,e){if(1&t&&n._UZ(0,"tr",97),2&t){const t=e.$implicit,i=n.oxw(2);n.ekj("make-green",t.id<=0)("make-red",t.forDelete)("make-yellow",-1!==i.itemsChanged.indexOf(t.id)&&!t.forDelete&&t.id>0),n.Q6J("cdkDragData",t)}}function mt(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"div",4),n.TgZ(1,"div",5),n.TgZ(2,"div",6),n.TgZ(3,"table",7,8),n.NdJ("cdkDropListDropped",function(e){return n.CHM(t),n.oxw().drop(e)}),n.ynx(5,9),n.YNc(6,C,1,0,"th",10),n.YNc(7,E,4,0,"td",11),n.BQk(),n.ynx(8,12),n.YNc(9,S,3,3,"th",10),n.YNc(10,k,2,1,"td",11),n.BQk(),n.ynx(11,13),n.YNc(12,I,3,3,"th",10),n.YNc(13,x,3,3,"td",11),n.BQk(),n.ynx(14,14),n.YNc(15,R,3,3,"th",15),n.YNc(16,P,2,1,"td",16),n.BQk(),n.ynx(17,17),n.YNc(18,D,3,3,"th",15),n.YNc(19,L,2,1,"td",16),n.BQk(),n.ynx(20,18),n.YNc(21,N,3,3,"th",10),n.YNc(22,it,15,14,"td",11),n.BQk(),n.ynx(23,19),n.YNc(24,nt,1,0,"th",10),n.YNc(25,ot,2,1,"td",11),n.BQk(),n.ynx(26,20),n.YNc(27,rt,1,0,"th",10),n.YNc(28,lt,3,2,"td",11),n.BQk(),n.ynx(29,21),n.YNc(30,ut,1,0,"th",10),n.YNc(31,pt,3,2,"td",11),n.BQk(),n.YNc(32,gt,1,0,"tr",22),n.YNc(33,ft,1,7,"tr",23),n.qZA(),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=n.oxw();n.xp6(3),n.Q6J("cdkDropListDisabled",t.dragDisabled)("dataSource",t.dataSource),n.xp6(29),n.Q6J("matHeaderRowDef",t.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",t.displayedColumns)}}function bt(t,e){1&t&&(n.TgZ(0,"app-alert",98),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM"),"\n"))}let _t=(()=>{class t{constructor(t,e,i,s){this.dialog=t,this.notificator=e,this.router=i,this.translate=s,this.applicationFormItems=[],this.displayedColumns=["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"],this.applicationFormItemsChange=new n.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(t,e,i){let n="";if("IF_EMPTY"===e||"IF_PREFILLED"===e){const t=null===i?"":this.applicationFormItems.find(t=>t.id===i).shortname;n="IF_EMPTY"===e?`(${this.ifEmpty} ${t})`:`(${this.ifPrefilled} ${t})`}return n}disabledTooltip(t){let e;switch(t.disabled){case"ALWAYS":return this.alwaysDisabled;case"IF_EMPTY":return e=null===t.disabledDependencyItemId?"":this.applicationFormItems.find(e=>e.id===t.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${e} ${this.isEmpty}`;case"IF_PREFILLED":return e=null===t.disabledDependencyItemId?"":this.applicationFormItems.find(e=>e.id===t.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${e} ${this.isPrefilled}`}}hiddenTooltip(t){let e;switch(t.hidden){case"ALWAYS":return this.alwaysHidden;case"IF_EMPTY":return e=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(e=>e.id===t.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${e} ${this.isEmpty}`;case"IF_PREFILLED":return e=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(e=>e.id===t.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${e} ${this.isPrefilled}`}}edit(t){const e=(0,h.kZ)();e.width="600px",e.height="600px",e.data={voId:this.applicationForm.vo.id,group:this.applicationForm.group,applicationFormItem:t,theme:this.theme,allItems:this.applicationFormItems},this.dialog.open(u._,e).afterClosed().subscribe(e=>{e&&(this.itemsChanged.push(t.id),this.applicationFormItemsChange.emit())})}delete(t){const e=(0,h.kZ)();e.width="500px",this.dialog.open(c,e).afterClosed().subscribe(e=>{e&&(t.forDelete=!0,0===t.id&&(this.applicationFormItems.splice(this.applicationFormItems.indexOf(t),1),this.table.renderRows()),this.applicationFormItemsChange.emit())})}drop(t){this.dragDisabled=!0;const e=this.applicationFormItems.indexOf(t.item.data);(0,s.bA)(this.applicationFormItems,e,t.currentIndex),this.itemsChanged.push(this.applicationFormItems[t.currentIndex].id),this.applicationFormItemsChange.emit(),this.table.renderRows()}getLocalizedOptions(t){if(t.i18n[this.translate.getDefaultLang()]){const e=t.i18n[this.translate.getDefaultLang()].options;if(null!==e&&""!==e){const t=[];for(const i of e.split("|"))t.push(i.split("#")[1]);return t}}return[]}getLocalizedLabel(t){return t.i18n[this.translate.getDefaultLang()]?t.i18n[this.translate.getDefaultLang()].label:t.shortname}restore(t){t.forDelete=!1}openManagingGroups(){this.router.navigate(["/organizations",this.applicationForm.vo.id,"settings","applicationForm","manageGroups"])}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(o.uw),n.Y36(l.V6),n.Y36(d.F0),n.Y36(a.sK))},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-application-form-list"]],viewQuery:function(t,e){if(1&t&&n.Gf(v,5),2&t){let t;n.iGM(t=n.CRH())&&(e.table=t.first)}},inputs:{loading:"loading",applicationForm:"applicationForm",applicationFormItems:"applicationFormItems",theme:"theme",displayedColumns:"displayedColumns",refreshApplicationForm:"refreshApplicationForm"},outputs:{applicationFormItemsChange:"applicationFormItemsChange"},features:[n.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"],["class","font-italic disabled",4,"ngIf"],["type","text"],[1,"font-italic","disabled"],["disabled",""],["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"],["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(t,e){1&t&&(n.YNc(0,T,1,0,"mat-spinner",0),n.YNc(1,mt,34,4,"div",1),n.YNc(2,bt,3,3,"app-alert",2)),2&t&&(n.Q6J("ngIf",e.loading),n.xp6(1),n.Q6J("ngIf",0!==e.applicationFormItems.length&&!e.loading),n.xp6(1),n.Q6J("ngIf",0===e.applicationFormItems.length&&!e.loading))},directives:[p.O5,g.$g,f.BZ,s.Wj,f.w1,f.fO,f.Dz,f.as,f.nj,f.ge,f.ev,r.lW,m.Hw,b.gM,_._Y,_.JL,_.F,p.sg,_.YN,_.Kr,_.EJ,_.JJ,_.On,f.XQ,f.Gk,s.Zt,w.w],pipes:[a.X$,A.c,y.R],styles:[".cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%], .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}"]}),t})()},29851:function(t,e,i){"use strict";i.d(e,{w:function(){return tt}});var n=i(65249),s=i(67033),o=i(84140),r=i(68416),a=i(31572),c=i(57629),l=i(82819),u=i(61511),h=i(84534),d=i(39571),p=i(67806),g=i(48160),f=i(22196);function m(t,e){1&t&&(a.TgZ(0,"th",26),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_ID")))}function b(t,e){if(1&t&&(a.TgZ(0,"td",27),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.hij(" ",t.id," ")}}function _(t,e){1&t&&(a.TgZ(0,"th",26),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_VO_ID")," "))}function w(t,e){if(1&t&&(a.TgZ(0,"td",27),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.hij(" ",t.vo.id," ")}}function A(t,e){1&t&&(a.TgZ(0,"th",26),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_VO_NAME")," "))}function y(t,e){if(1&t&&(a.TgZ(0,"td",27),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.hij(" ",t.vo.name," ")}}function v(t,e){1&t&&(a.TgZ(0,"th",26),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_GROUP_ID")," "))}function T(t,e){if(1&t&&(a.TgZ(0,"td",27),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.hij(" ",t.group?t.group.id:""," ")}}function C(t,e){1&t&&(a.TgZ(0,"th",26),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_GROUP_NAME")," "))}function E(t,e){if(1&t&&(a.TgZ(0,"td",27),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.hij(" ",t.group?t.group.name:""," ")}}function S(t,e){1&t&&(a.TgZ(0,"th",26),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_TYPE")," "))}function k(t,e){if(1&t&&(a.TgZ(0,"td",28),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(t.type)}}function I(t,e){1&t&&(a.TgZ(0,"th",26),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_STATE")," "))}function x(t,e){if(1&t&&(a.TgZ(0,"td",28),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(t.state)}}function R(t,e){1&t&&(a.TgZ(0,"th",26),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_EXTSOURCENAME")," "))}function O(t,e){if(1&t&&(a.TgZ(0,"td",28),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(t.extSourceName)}}function P(t,e){1&t&&(a.TgZ(0,"th",26),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_EXTSOURCETYPE")," "))}function D(t,e){if(1&t&&(a.TgZ(0,"td",28),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(t.extSourceType)}}function M(t,e){1&t&&(a.TgZ(0,"th",26),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_USER")," "))}function L(t,e){if(1&t&&(a.TgZ(0,"td",28),a._uU(1),a.ALo(2,"userFullName"),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.hij(" ",t.user?a.lcZ(2,1,t.user):"null"," ")}}function N(t,e){1&t&&(a.TgZ(0,"th",26),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_CREATED_BY")," "))}function z(t,e){if(1&t&&(a.TgZ(0,"td",28),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.hij(" ",t.createdBy.slice(t.createdBy.lastIndexOf("=")+1,t.createdBy.length)," ")}}function Z(t,e){1&t&&(a.TgZ(0,"th",26),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_CREATED_DATE")," "))}function B(t,e){if(1&t&&(a.TgZ(0,"td",28),a._uU(1),a.ALo(2,"date"),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(a.xi3(2,1,t.createdAt,"d.M.y"))}}function F(t,e){1&t&&(a.TgZ(0,"th",26),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_MODIFIED_BY")," "))}function U(t,e){if(1&t&&(a.TgZ(0,"td",28),a._uU(1),a.qZA()),2&t){const t=e.$implicit,i=a.oxw();a.xp6(1),a.Oqu(i.getFriendlyName(t.modifiedBy))}}function q(t,e){1&t&&(a.TgZ(0,"th",26),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_MODIFIED_AT")," "))}function H(t,e){if(1&t&&(a.TgZ(0,"td",28),a._uU(1),a.ALo(2,"date"),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(a.xi3(2,1,t.modifiedAt,"d.M.y"))}}function G(t,e){if(1&t&&(a.TgZ(0,"th",26),a._uU(1),a.qZA()),2&t){const t=a.oxw().$implicit;a.xp6(1),a.Oqu(t)}}function j(t,e){if(1&t&&(a.TgZ(0,"td",28),a._uU(1),a.qZA()),2&t){const t=e.$implicit,i=a.oxw().$implicit;a.xp6(1),a.Oqu(t[i])}}function Y(t,e){1&t&&(a.ynx(0,29),a.YNc(1,G,2,1,"th",4),a.YNc(2,j,2,1,"td",11),a.BQk()),2&t&&a.Q6J("matColumnDef",e.$implicit)}function K(t,e){1&t&&(a.TgZ(0,"th",26),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_FEDINFO")," "))}function V(t,e){if(1&t&&(a.TgZ(0,"td",28),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(t.fedInfo)}}function $(t,e){1&t&&a._UZ(0,"tr",30)}function J(t,e){if(1&t&&a._UZ(0,"tr",31),2&t){const t=e.$implicit,i=a.oxw();a.ekj("cursor-pointer",!i.disableRouting),a.Q6J("perunWebAppsMiddleClickRouterLink",i.selectApplication(t))("routerLink",i.selectApplication(t))}}function Q(t,e){1&t&&(a.TgZ(0,"app-alert",32),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"VO_DETAIL.APPLICATION.NO_APPLICATION_FOUND"),"\n"))}function W(t,e){1&t&&(a.TgZ(0,"app-alert",32),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function X(t,e){1&t&&a._UZ(0,"mat-spinner",33)}let tt=(()=>{class t{constructor(t,e,i){this.router=t,this.authResolver=e,this.registrarManager=i,this.applications=[],this.disableRouting=!1,this.displayedColumns=["id","voId","voName","groupId","groupName","type","state","extSourceName","extSourceType","user","createdBy","createdAt","modifiedBy","modifiedAt","fedInfo"],this.loading=!1,this.table=[],this.addedColumns=new Set,this.pageSizeOptions=o.f7}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.loading=!0,this.table=[],this.initialize(),this.getApplicationsData(0)}getExportDataForColumn(t,e){var i,n,s,r;switch(e){case"id":return t.id.toString();case"voId":return t.vo.id.toString();case"voName":return t.vo.name;case"groupId":return null!==(n=null===(i=t.group)||void 0===i?void 0:i.id.toString())&&void 0!==n?n:"";case"groupName":return null!==(r=null===(s=t.group)||void 0===s?void 0:s.name)&&void 0!==r?r:"";case"type":return t.type;case"fedInfo":return t.fedInfo;case"state":return t.state;case"extSourceName":return t.extSourceName;case"extSourceType":return t.extSourceType;case"user":return t.user?(0,o.bD)(t.user):"";case"createdBy":return t.createdBy;case"createdAt":return t.createdAt;case"modifiedBy":return t.modifiedBy;case"modifiedAt":return t.modifiedAt;default:return t[e]}}exportData(t){(0,o.O6)((0,o.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}getApplicationsData(t){if(this.applications.length===t)return void this.initialize();const e=this.applications[t],i={};i.id=e.id,i.vo=e.vo,i.group=e.group,i.type=e.type,i.fedInfo=e.fedInfo,i.state=e.state,i.extSourceName=e.extSourceName,i.extSourceType=e.extSourceType,i.extSourceLoa=e.extSourceLoa,i.user=e.user,i.createdBy=e.createdBy,i.createdAt=e.createdAt,i.modifiedBy=e.modifiedBy,i.modifiedAt=e.modifiedAt,this.registrarManager.getApplicationDataById(e.id).subscribe(e=>{for(const t of e)null!==t.formItem.i18n.en.label&&0!==t.formItem.i18n.en.label.length?(i[t.formItem.i18n.en.label]=t.value,this.addedColumns.add(t.formItem.i18n.en.label)):(i[t.shortname]=t.value,this.addedColumns.add(t.shortname));this.table.push(i),this.getApplicationsData(t+1)})}initialize(){for(const t of this.addedColumns)this.displayedColumns.push(t);this.dataSource=new s.by(this.table),this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue.trim().toLowerCase(),this.dataSource.paginator&&this.dataSource.paginator.firstPage(),this.loading=!1}getFriendlyName(t){const e=t.lastIndexOf("/CN=");if(-1!==e){const i=t.slice(e+4,t.length).replace("/unstructuredName="," ");return-1!==i.lastIndexOf("\\")?t.slice(t.lastIndexOf("=")+1,t.length):i}return t}selectApplication(t){return this.disableRouting?null:this.group?["/organizations",t.vo.id,"groups",this.group.id,"applications",t.id]:this.member?["/organizations",t.vo.id,"members",this.member.id,"applications",t.id]:["/organizations",t.vo.id,"applications",t.id]}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(c.F0),a.Y36(r.x4),a.Y36(n.tk))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-perun-web-apps-application-list-details"]],viewQuery:function(t,e){if(1&t&&a.Gf(o.l9,7),2&t){let t;a.iGM(t=a.CRH())&&(e.child=t.first)}},inputs:{applications:"applications",group:"group",member:"member",filterValue:"filterValue",tableId:"tableId",disableRouting:"disableRouting"},features:[a.TTD],decls:54,vars:13,consts:[[1,"card","mt-2","w-100",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","voId"],["matColumnDef","voName"],["matColumnDef","groupId"],["matColumnDef","groupName"],["matColumnDef","type"],["mat-cell","",4,"matCellDef"],["matColumnDef","state"],["matColumnDef","extSourceName"],["matColumnDef","extSourceType"],["matColumnDef","user"],["matColumnDef","createdBy"],["matColumnDef","createdAt"],["matColumnDef","modifiedBy"],["matColumnDef","modifiedAt"],[3,"matColumnDef",4,"ngFor","ngForOf"],["matColumnDef","fedInfo"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"matColumnDef"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(a.TgZ(0,"div",0),a.TgZ(1,"perun-web-apps-table-wrapper",1),a.NdJ("exportData",function(t){return e.exportData(t)}),a.TgZ(2,"table",2),a.ynx(3,3),a.YNc(4,m,3,3,"th",4),a.YNc(5,b,2,1,"td",5),a.BQk(),a.ynx(6,6),a.YNc(7,_,3,3,"th",4),a.YNc(8,w,2,1,"td",5),a.BQk(),a.ynx(9,7),a.YNc(10,A,3,3,"th",4),a.YNc(11,y,2,1,"td",5),a.BQk(),a.ynx(12,8),a.YNc(13,v,3,3,"th",4),a.YNc(14,T,2,1,"td",5),a.BQk(),a.ynx(15,9),a.YNc(16,C,3,3,"th",4),a.YNc(17,E,2,1,"td",5),a.BQk(),a.ynx(18,10),a.YNc(19,S,3,3,"th",4),a.YNc(20,k,2,1,"td",11),a.BQk(),a.ynx(21,12),a.YNc(22,I,3,3,"th",4),a.YNc(23,x,2,1,"td",11),a.BQk(),a.ynx(24,13),a.YNc(25,R,3,3,"th",4),a.YNc(26,O,2,1,"td",11),a.BQk(),a.ynx(27,14),a.YNc(28,P,3,3,"th",4),a.YNc(29,D,2,1,"td",11),a.BQk(),a.ynx(30,15),a.YNc(31,M,3,3,"th",4),a.YNc(32,L,3,3,"td",11),a.BQk(),a.ynx(33,16),a.YNc(34,N,3,3,"th",4),a.YNc(35,z,2,1,"td",11),a.BQk(),a.ynx(36,17),a.YNc(37,Z,3,3,"th",4),a.YNc(38,B,3,4,"td",11),a.BQk(),a.ynx(39,18),a.YNc(40,F,3,3,"th",4),a.YNc(41,U,2,1,"td",11),a.BQk(),a.ynx(42,19),a.YNc(43,q,3,3,"th",4),a.YNc(44,H,3,4,"td",11),a.BQk(),a.YNc(45,Y,3,1,"ng-container",20),a.ynx(46,21),a.YNc(47,K,3,3,"th",4),a.YNc(48,V,2,1,"td",11),a.BQk(),a.YNc(49,$,1,0,"tr",22),a.YNc(50,J,1,4,"tr",23),a.qZA(),a.qZA(),a.qZA(),a.YNc(51,Q,3,3,"app-alert",24),a.YNc(52,W,3,3,"app-alert",24),a.YNc(53,X,1,0,"mat-spinner",25)),2&t&&(a.ekj("hide-table",e.loading),a.Q6J("hidden",0===e.table.length||!!e.dataSource&&0===e.dataSource.filteredData.length),a.xp6(1),a.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),a.xp6(1),a.Q6J("dataSource",e.dataSource),a.xp6(43),a.Q6J("ngForOf",e.addedColumns),a.xp6(4),a.Q6J("matHeaderRowDef",e.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",e.displayedColumns),a.xp6(1),a.Q6J("ngIf",0===e.dataSource.data.length),a.xp6(1),a.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.table.length),a.xp6(1),a.Q6J("ngIf",e.loading))},directives:[l.l,s.BZ,s.w1,s.fO,s.Dz,u.sg,s.as,s.nj,u.O5,s.ge,s.ev,s.XQ,s.Gk,h.YH,c.rH,d.w,p.$g],pipes:[g.X$,f.d,u.uU],styles:[".mat-row[_ngcontent-%COMP%]{height:auto}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%], mat-cell[_ngcontent-%COMP%], mat-header-cell[_ngcontent-%COMP%]{padding:8px!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})()},21548:function(t,e,i){"use strict";i.d(e,{M:function(){return H}});var n=i(58623),s=i(67033),o=i(84140),r=i(68416),a=i(31572),c=i(82819),l=i(61511),u=i(43691),h=i(36922),d=i(84534),p=i(57629),g=i(39571),f=i(48160),m=i(84650),b=i(22196);function _(t,e){1&t&&(a.TgZ(0,"th",16),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_ID")," "))}function w(t,e){if(1&t&&(a.TgZ(0,"td",17),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.hij(" ",t.id," ")}}function A(t,e){1&t&&(a.TgZ(0,"th",16),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_CREATED_DATE")," "))}function y(t,e){if(1&t&&(a.TgZ(0,"td",18),a._uU(1),a.ALo(2,"date"),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(a.xi3(2,1,t.createdAt,"d.M.y"))}}function v(t,e){1&t&&(a.TgZ(0,"th",16),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_TYPE")," "))}function T(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"mat-icon",20),a._uU(2,"arrow_right_alt"),a.qZA(),a.qZA())}function C(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"mat-icon",21),a._uU(2,"restore"),a.qZA(),a.qZA())}function E(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"mat-icon",22),a._uU(2,"nat"),a.qZA(),a.qZA())}function S(t,e){if(1&t&&(a.TgZ(0,"td",18),a.YNc(1,T,3,0,"div",19),a.YNc(2,C,3,0,"div",19),a.YNc(3,E,3,0,"div",19),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Q6J("ngIf","INITIAL"===t.type),a.xp6(1),a.Q6J("ngIf","EXTENSION"===t.type),a.xp6(1),a.Q6J("ngIf","EMBEDDED"===t.type)}}function k(t,e){1&t&&(a.TgZ(0,"th",16),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_STATE")," "))}function I(t,e){if(1&t&&(a.TgZ(0,"td",18),a._UZ(1,"span",23),a.ALo(2,"applicationState"),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Q6J("outerHTML",a.lcZ(2,1,t.state),a.oJD)}}function x(t,e){1&t&&(a.TgZ(0,"th",16),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_SUBMITTED_BY")," "))}function R(t,e){if(1&t&&(a.TgZ(0,"div"),a._uU(1),a.qZA()),2&t){const t=a.oxw().$implicit;a.xp6(1),a.hij(" ",t.createdBy.slice(t.createdBy.lastIndexOf("=")+1,t.createdBy.length)," ")}}function O(t,e){if(1&t&&(a._uU(0),a.ALo(1,"userFullName")),2&t){const t=a.oxw().$implicit;a.hij(" ",a.lcZ(1,1,t.user)," ")}}function P(t,e){if(1&t&&(a.TgZ(0,"td",18),a.YNc(1,R,2,1,"div",24),a.YNc(2,O,2,3,"ng-template",null,25,a.W1O),a.qZA()),2&t){const t=e.$implicit,i=a.MAs(3);a.xp6(1),a.Q6J("ngIf",null===t.user)("ngIfElse",i)}}function D(t,e){1&t&&(a.TgZ(0,"th",16),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_GROUP_NAME")," "))}function M(t,e){1&t&&(a.TgZ(0,"div",28),a._uU(1," - "),a.qZA())}function L(t,e){if(1&t&&a._uU(0),2&t){const t=a.oxw().$implicit;a.hij(" ",t.group.name," ")}}function N(t,e){if(1&t&&(a.TgZ(0,"td",18),a.YNc(1,M,2,0,"div",26),a.YNc(2,L,1,1,"ng-template",null,27,a.W1O),a.qZA()),2&t){const t=e.$implicit,i=a.MAs(3);a.xp6(1),a.Q6J("ngIf",null===t.group)("ngIfElse",i)}}function z(t,e){1&t&&(a.TgZ(0,"th",16),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_MODIFIED_BY")," "))}function Z(t,e){if(1&t&&(a.TgZ(0,"td",18),a._uU(1),a.qZA()),2&t){const t=e.$implicit,i=a.oxw();a.xp6(1),a.Oqu(i.getFriendlyName(t.modifiedBy))}}function B(t,e){1&t&&a._UZ(0,"tr",29)}function F(t,e){if(1&t&&a._UZ(0,"tr",30),2&t){const t=e.$implicit,i=a.oxw();a.ekj("cursor-pointer",!i.disableRouting),a.Q6J("perunWebAppsMiddleClickRouterLink",i.selectApplication(t))("routerLink",i.selectApplication(t))}}function U(t,e){1&t&&(a.TgZ(0,"app-alert",31),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"VO_DETAIL.APPLICATION.NO_APPLICATION_FOUND"),"\n"))}function q(t,e){1&t&&(a.TgZ(0,"app-alert",31),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let H=(()=>{class t{constructor(t){this.authResolver=t,this.applications=[],this.displayedColumns=[],this.disableRouting=!1,this.pageSizeOptions=o.f7}set matSort(t){this.sort=t}ngAfterViewInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t))}ngOnChanges(){this.setDataSource()}getSortDataForColumn(t,e,i){var n;switch(e){case"id":return t.id.toString();case"createdAt":return t.createdAt;case"type":return t.type;case"state":return t.state;case"user":return t.user?t.user.lastName?t.user.lastName:null!==(n=t.user.firstName)&&void 0!==n?n:"":t.createdBy.slice(t.createdBy.lastIndexOf("=")+1,t.createdBy.length);case"group":return t.group?t.group.name:"";case"modifiedBy":return i.parseModifiedBy(t);default:return""}}getDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"createdAt":return t.createdAt;case"type":return t.type;case"state":return t.state;case"user":return t.user?(0,o.bD)(t.user):t.createdBy.slice(t.createdBy.lastIndexOf("=")+1,t.createdBy.length);case"group":return t.group?t.group.name:"";case"modifiedBy":return i.parseModifiedBy(t);default:return""}}parseModifiedBy(t){const e=t.modifiedBy.lastIndexOf("/CN=");if(-1!==e){const i=t.modifiedBy.slice(e+4,t.modifiedBy.length).replace("/unstructuredName="," ").toLowerCase();return-1!==i.lastIndexOf("\\")?t.modifiedBy.slice(t.modifiedBy.lastIndexOf("=")+1,t.modifiedBy.length):i}return t.modifiedBy.toLowerCase()}exportData(t){(0,o.O6)((0,o.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource||(this.dataSource=new s.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(t,e)=>(0,o.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,o.pR)(t,e,this.getSortDataForColumn,this)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.applications}getFriendlyName(t){const e=t.lastIndexOf("/CN=");if(-1!==e){const i=t.slice(e+4,t.length).replace("/unstructuredName="," ");return-1!==i.lastIndexOf("\\")?t.slice(t.lastIndexOf("=")+1,t.length):i}return t}selectApplication(t){return this.disableRouting?null:this.group?["/organizations",t.vo.id,"groups",this.group.id,"applications",t.id]:this.member?["/organizations",t.vo.id,"members",this.member.id,"applications",t.id]:["/organizations",t.vo.id,"applications",t.id]}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(r.x4))},t.\u0275cmp=a.Xpm({type:t,selectors:[["app-applications-list"]],viewQuery:function(t,e){if(1&t&&(a.Gf(n.YE,7),a.Gf(o.l9,7)),2&t){let t;a.iGM(t=a.CRH())&&(e.matSort=t.first),a.iGM(t=a.CRH())&&(e.child=t.first)}},inputs:{applications:"applications",group:"group",member:"member",displayedColumns:"displayedColumns",filterValue:"filterValue",tableId:"tableId",disableRouting:"disableRouting"},features:[a.TTD],decls:28,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportData"],["mat-table","","matSort","","matSortActive","createdAt","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","createdAt"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","state"],["matColumnDef","user"],["matColumnDef","group"],["matColumnDef","modifiedBy"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[4,"ngIf"],["matTooltip","Initial","matTooltipPosition","above"],["matTooltip","Extension","matTooltipPosition","above"],["matTooltip","Embedded","matTooltipPosition","above"],[3,"outerHTML"],[4,"ngIf","ngIfElse"],["name",""],["class","font-italic text-muted",4,"ngIf","ngIfElse"],["groupName",""],[1,"font-italic","text-muted"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(t,e){1&t&&(a.TgZ(0,"div",0),a.TgZ(1,"perun-web-apps-table-wrapper",1),a.NdJ("exportData",function(t){return e.exportData(t)}),a.TgZ(2,"table",2),a.ynx(3,3),a.YNc(4,_,3,3,"th",4),a.YNc(5,w,2,1,"td",5),a.BQk(),a.ynx(6,6),a.YNc(7,A,3,3,"th",4),a.YNc(8,y,3,4,"td",7),a.BQk(),a.ynx(9,8),a.YNc(10,v,3,3,"th",4),a.YNc(11,S,4,3,"td",7),a.BQk(),a.ynx(12,9),a.YNc(13,k,3,3,"th",4),a.YNc(14,I,3,3,"td",7),a.BQk(),a.ynx(15,10),a.YNc(16,x,3,3,"th",4),a.YNc(17,P,4,2,"td",7),a.BQk(),a.ynx(18,11),a.YNc(19,D,3,3,"th",4),a.YNc(20,N,4,2,"td",7),a.BQk(),a.ynx(21,12),a.YNc(22,z,3,3,"th",4),a.YNc(23,Z,2,1,"td",7),a.BQk(),a.YNc(24,B,1,0,"tr",13),a.YNc(25,F,1,4,"tr",14),a.qZA(),a.qZA(),a.qZA(),a.YNc(26,U,3,3,"app-alert",15),a.YNc(27,q,3,3,"app-alert",15)),2&t&&(a.Q6J("hidden",0===e.applications.length||!e.dataSource||0===e.dataSource.filteredData.length),a.xp6(1),a.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("tableId",e.tableId),a.xp6(1),a.Q6J("dataSource",e.dataSource),a.xp6(22),a.Q6J("matHeaderRowDef",e.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",e.displayedColumns),a.xp6(1),a.Q6J("ngIf",0===e.applications.length),a.xp6(1),a.Q6J("ngIf",!!e.dataSource&&0===e.dataSource.filteredData.length&&0!==e.applications.length))},directives:[c.l,s.BZ,n.YE,s.w1,s.fO,s.Dz,s.as,s.nj,l.O5,s.ge,n.nU,s.ev,u.Hw,h.gM,s.XQ,s.Gk,d.YH,p.rH,g.w],pipes:[f.X$,l.uU,m.h,b.d],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})()},62284:function(t,e,i){"use strict";i.d(e,{W:function(){return S}});var n=i(65249),s=i(60611),o=i(68416),r=i(16073),a=i(61511),c=i(31572),l=i(59403),u=i(66283),h=i(4786),d=i(71522),p=i(91058),g=i(51613),f=i(15980),m=i(67806),b=i(21548),_=i(29851),w=i(48160);function A(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",15),c.NdJ("click",function(){return c.CHM(t),c.oxw().showAllDetails=!0}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function y(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",15),c.NdJ("click",function(){return c.CHM(t),c.oxw().showAllDetails=!1}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}function v(t,e){1&t&&c._UZ(0,"mat-spinner",16)}function T(t,e){if(1&t&&c._UZ(0,"app-applications-list",19),2&t){const t=c.oxw(2);c.Q6J("tableId",t.tableId)("disableRouting",!t.routeAuth)("filterValue",t.filterValue)("applications",t.applications)("displayedColumns",t.displayedColumns)("group",t.group)}}function C(t,e){if(1&t&&c._UZ(0,"app-perun-web-apps-application-list-details",20),2&t){const t=c.oxw(2);c.Q6J("tableId",t.detailTableId)("disableRouting",!t.routeAuth)("filterValue",t.filterValue)("applications",t.applications)("group",t.group)}}function E(t,e){if(1&t&&(c.TgZ(0,"div"),c.YNc(1,T,1,6,"app-applications-list",17),c.YNc(2,C,1,5,"app-perun-web-apps-application-list-details",18),c.qZA()),2&t){const t=c.oxw();c.xp6(1),c.Q6J("ngIf",!t.showAllDetails),c.xp6(1),c.Q6J("ngIf",t.showAllDetails)}}let S=(()=>{class t{constructor(t,e,i){this.registrarManager=t,this.guiAuthResolver=e,this.entityStorageService=i,this.state="pending",this.loading=!1,this.applications=[],this.displayedColumns=["id","createdAt","type","state","user","modifiedBy"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=s.Af,this.tableId=s.gB,this.routeAuth=!1}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.startDate=new r.NI((0,a.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new r.NI((0,a.p6)(new Date,"yyyy-MM-dd","en-GB")),this.setData(["NEW","VERIFIED"])}setAuth(){0!==this.applications.length&&(this.routeAuth=this.guiAuthResolver.isAuthorized("group-getApplicationById_int_policy",[this.group]))}setData(t){this.registrarManager.getApplicationsForGroup(this.group.id,t,(0,a.p6)(this.startDate.value,"yyyy-MM-dd","en-GB"),(0,a.p6)(this.endDate.value,"yyyy-MM-dd","en-GB")).subscribe(t=>{this.applications=t,this.setAuth(),this.loading=!1})}select(){switch(this.loading=!0,this.state){case"approved":this.setData(["APPROVED"]);break;case"rejected":this.setData(["REJECTED"]);break;case"wfmv":this.setData(["NEW"]);break;case"submited":this.setData(["VERIFIED"]);break;case"pending":this.setData(["NEW","VERIFIED"]);break;case"all":this.setData(null)}}yearAgo(){const t=new Date,e=t.getFullYear()-1,i=t.getMonth(),n=t.getDate();return new Date(e,i,n)}applyFilter(t){this.filterValue=t}}return t.id="GroupApplicationsComponent",t.\u0275fac=function(e){return new(e||t)(c.Y36(n.tk),c.Y36(o.x4),c.Y36(o.fb))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-group-applications"]],hostVars:2,hostBindings:function(t,e){2&t&&c.ekj("router-component",e.true)},decls:34,vars:32,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-stroked-button","","class","mr-2",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,"startDate","endDate","datePicker"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"tableId","disableRouting","filterValue","applications","displayedColumns","group",4,"ngIf"],[3,"tableId","disableRouting","filterValue","applications","group",4,"ngIf"],[3,"tableId","disableRouting","filterValue","applications","displayedColumns","group"],[3,"tableId","disableRouting","filterValue","applications","group"]],template:function(t,e){1&t&&(c.TgZ(0,"h1",0),c._uU(1),c.ALo(2,"translate"),c.qZA(),c.TgZ(3,"div"),c.TgZ(4,"perun-web-apps-refresh-button",1),c.NdJ("refresh",function(){return e.select()}),c.qZA(),c.YNc(5,A,3,3,"button",2),c.YNc(6,y,3,3,"button",2),c.TgZ(7,"mat-form-field",3),c.TgZ(8,"mat-label"),c._uU(9),c.ALo(10,"translate"),c.qZA(),c.TgZ(11,"mat-select",4),c.NdJ("selectionChange",function(){return e.select()})("valueChange",function(t){return e.state=t}),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.qZA(),c.qZA(),c.TgZ(30,"perun-web-apps-debounce-filter",11),c.NdJ("filter",function(t){return e.applyFilter(t)}),c.qZA(),c.TgZ(31,"perun-web-apps-date-range",12),c.NdJ("datePicker",function(){return e.select()}),c.qZA(),c.qZA(),c.YNc(32,v,1,0,"mat-spinner",13),c.YNc(33,E,3,2,"div",14)),2&t&&(c.xp6(1),c.Oqu(c.lcZ(2,16,"VO_DETAIL.APPLICATION.TITLE")),c.xp6(4),c.Q6J("ngIf",!e.showAllDetails),c.xp6(1),c.Q6J("ngIf",e.showAllDetails),c.xp6(3),c.Oqu(c.lcZ(10,18,"VO_DETAIL.APPLICATION.TABLE_STATE")),c.xp6(2),c.Q6J("value",e.state),c.xp6(2),c.Oqu(c.lcZ(14,20,"VO_DETAIL.APPLICATION.SELECTION_ALL")),c.xp6(3),c.Oqu(c.lcZ(17,22,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),c.xp6(3),c.Oqu(c.lcZ(20,24,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),c.xp6(3),c.Oqu(c.lcZ(23,26,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),c.xp6(3),c.Oqu(c.lcZ(26,28,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),c.xp6(3),c.Oqu(c.lcZ(29,30,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),c.xp6(2),c.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),c.xp6(1),c.Q6J("startDate",e.startDate)("endDate",e.endDate),c.xp6(1),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading))},directives:[l.t,a.O5,u.KE,u.hX,h.gD,d.ey,p.P,g.S,f.lW,m.$g,b.M,_.w],pipes:[w.X$],styles:[""]}),t})()},11930:function(t,e,i){"use strict";i.d(e,{y:function(){return N}});var n=i(4230),s=i(68416),o=i(67004),r=i(85613),a=i(4374),c=i(65249),l=i(60611),u=i(84140),h=i(88690),d=i(16073),p=i(31572),g=i(84608),f=i(61511),m=i(59403),b=i(36922),_=i(66283),w=i(4786),A=i(91058),y=i(39571),v=i(15980),T=i(71522),C=i(67806),E=i(91779),S=i(48160),k=i(5725);function I(t,e){1&t&&(p.TgZ(0,"app-alert",15),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"GROUP_DETAIL.MEMBERS.ACTIONS_DISABLED"),"\n"))}function x(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",16),p.NdJ("click",function(){return p.CHM(t),p.oxw().onAddMember()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",t.synchEnabled||t.blockGroupManualMemberAdding),p.xp6(1),p.hij(" ",p.lcZ(2,2,"GROUP_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function R(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",17),p.NdJ("click",function(){return p.CHM(t),p.oxw().onInviteMember()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",t.synchEnabled),p.xp6(1),p.hij(" ",p.lcZ(2,2,"GROUP_DETAIL.MEMBERS.INVITE_MEMBER")," ")}}function O(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",18),p.NdJ("click",function(){return p.CHM(t),p.oxw().onRemoveMembers()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",t.selection.isEmpty()||t.synchEnabled),p.xp6(1),p.hij(" ",p.lcZ(2,2,"GROUP_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function P(t,e){if(1&t&&(p.TgZ(0,"mat-option",19),p._uU(1),p.ALo(2,"memberStatus"),p.qZA()),2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.Oqu(p.lcZ(2,2,t))}}function D(t,e){if(1&t&&(p.TgZ(0,"mat-option",19),p._uU(1),p.ALo(2,"memberStatus"),p.qZA()),2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.Oqu(p.lcZ(2,2,t))}}function M(t,e){1&t&&p._UZ(0,"mat-spinner",20)}function L(t,e){if(1&t&&p._UZ(0,"perun-web-apps-members-dynamic-list",21),2&t){const t=p.oxw();p.Q6J("voId",t.group.voId)("groupId",t.group.id)("tableId",t.tableId)("selection",t.selection)("displayedColumns",t.displayedColumns)("updateTable",t.updateTable)("searchString",t.searchString)("selectedStatuses",t.selectedStatuses)("selectedGroupStatuses",t.selectedGroupStatuses)("attrNames",t.memberAttrNames)}}let N=(()=>{class t{constructor(t,e,i,n,s,r,a,c){this.groupService=t,this.dialog=e,this.guiAuthResolver=i,this.storeService=n,this.attributesManager=s,this.apiRequest=r,this.notificator=a,this.entityStorageService=c,this.synchEnabled=!1,this.updateTable=!1,this.loading=!1,this.tableId=l.dI,this.memberAttrNames=[o.r.MEMBER_DEF_ORGANIZATION,o.r.MEMBER_DEF_MAIL,o.r.USER_DEF_ORGANIZATION,o.r.USER_DEF_PREFERRED_MAIL,o.r.MEMBER_DEF_EXPIRATION,o.r.MEMBER_DEF_GROUP_EXPIRATION],this.groupAttrNames=[o.r.GROUP_SYNC_ENABLED,o.r.GROUP_LAST_SYNC_STATE,o.r.GROUP_LAST_SYNC_TIMESTAMP,o.r.GROUP_STRUCTURE_SYNC_ENABLED,o.r.GROUP_LAST_STRUCTURE_SYNC_STATE,o.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP],this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.statuses=new d.NI,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=["VALID","INVALID"],this.groupStatuses=new d.NI,this.groupStatusList=["VALID","EXPIRED"],this.selectedGroupStatuses=["VALID"]}ngOnInit(){this.loading=!0,this.selection=new n.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,this.group.id).then(()=>this.loadPage(this.group.id))}loadPage(t){this.groupService.getRichGroupByIdWithAttributesByNames(t,this.groupAttrNames).subscribe(t=>{this.group=t,this.synchEnabled=this.isSynchronized(),this.loading=!1})}isSynchronized(){return this.group.attributes.some(t=>"synchronizationEnabled"===t.friendlyName&&null!==t.value&&"true"===t.value.toString())}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(t){this.searchString=t,this.updateTable=!this.updateTable}onAddMember(){const t=(0,u.kZ)();t.width="1000px",t.data={voId:this.group.voId,group:this.group,entityId:this.group.id,manualAddingBlocked:this.blockManualMemberAdding,theme:"group-theme",type:"group"},this.dialog.open(r.o,t).afterClosed().subscribe(t=>{t&&(this.selection.clear(),this.updateTable=!this.updateTable)})}onRemoveMembers(){const t=(0,u.kZ)();t.width="450px",t.data={groupId:this.group.id,members:this.selection.selected,theme:"group-theme"},this.dialog.open(a.X,t).afterClosed().subscribe(t=>{t&&(this.selection.clear(),this.updateTable=!this.updateTable)})}onInviteMember(){const t=(0,u.kZ)();t.width="650px",t.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(h.R,t)}displaySelectedStatuses(){return this.selectedStatuses.length===this.statusList.length?"ALL":this.statuses.value?`${this.statuses.value[0]} ${this.statuses.value.length>1?"(+"+(this.statuses.value.length-1)+" "+(2===this.statuses.value.length?"other)":"others)"):""}`:""}displaySelectedGroupStatuses(){return this.selectedGroupStatuses.length===this.groupStatusList.length?"ALL":`${this.groupStatuses.value[0]}`}isManualAddingBlocked(t,e){return new Promise(i=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName(t,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe(t=>{this.blockManualMemberAdding=null!==t.value,this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(e,"urn:perun:group:attribute-def:def:blockManualMemberAdding").subscribe(t=>{this.blockGroupManualMemberAdding=null!==t.value,i()},t=>{"PrivilegeException"!==t.error.name&&this.notificator.showError(t),i()})},t=>{"PrivilegeException"!==t.error.name&&this.notificator.showError(t),i()})})}changeVoStatuses(){this.selectedStatuses=this.statuses.value}changeGroupStatuses(){this.selectedGroupStatuses=this.groupStatuses.value}}return t.id="GroupMembersComponent",t.\u0275fac=function(e){return new(e||t)(p.Y36(c.ff),p.Y36(g.uw),p.Y36(s.x4),p.Y36(s.d6),p.Y36(c.H8),p.Y36(s.F5),p.Y36(s.V6),p.Y36(s.fb))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-group-members"]],hostVars:2,hostBindings:function(t,e){2&t&&p.ekj("router-component",e.true)},decls:38,vars:45,consts:[[1,"page-subtitle"],["alert_type","warn",4,"ngIf"],[1,"align-elements"],[3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],[3,"matTooltip","matTooltipDisabled"],["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,"voId","groupId","tableId","selection","displayedColumns","updateTable","searchString","selectedStatuses","selectedGroupStatuses","attrNames",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,"voId","groupId","tableId","selection","displayedColumns","updateTable","searchString","selectedStatuses","selectedGroupStatuses","attrNames"]],template:function(t,e){1&t&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.YNc(3,I,3,3,"app-alert",1),p.TgZ(4,"div",2),p.TgZ(5,"perun-web-apps-refresh-button",3),p.NdJ("click",function(){return e.updateTable=!e.updateTable}),p.qZA(),p.TgZ(6,"span",4),p.ALo(7,"translate"),p.TgZ(8,"div",5),p.ALo(9,"translate"),p.YNc(10,x,3,4,"button",6),p.qZA(),p.qZA(),p.TgZ(11,"span",4),p.ALo(12,"translate"),p.YNc(13,R,3,4,"button",7),p.qZA(),p.TgZ(14,"span",4),p.ALo(15,"translate"),p.YNc(16,O,3,4,"button",8),p.qZA(),p.TgZ(17,"mat-form-field",9),p.TgZ(18,"mat-label"),p._uU(19),p.ALo(20,"translate"),p.qZA(),p.TgZ(21,"mat-select",10),p.NdJ("closed",function(){return e.changeVoStatuses()}),p.TgZ(22,"mat-select-trigger"),p._uU(23),p.ALo(24,"memberStatus"),p.qZA(),p.YNc(25,P,3,4,"mat-option",11),p.qZA(),p.qZA(),p.TgZ(26,"mat-form-field",9),p.TgZ(27,"mat-label"),p._uU(28),p.ALo(29,"translate"),p.qZA(),p.TgZ(30,"mat-select",10),p.NdJ("closed",function(){return e.changeGroupStatuses()}),p.TgZ(31,"mat-select-trigger"),p._uU(32),p.ALo(33,"memberStatus"),p.qZA(),p.YNc(34,D,3,4,"mat-option",11),p.qZA(),p.qZA(),p.TgZ(35,"perun-web-apps-debounce-filter",12),p.NdJ("filter",function(t){return e.onSearchByString(t)}),p.qZA(),p.qZA(),p.YNc(36,M,1,0,"mat-spinner",13),p.YNc(37,L,1,10,"perun-web-apps-members-dynamic-list",14)),2&t&&(p.xp6(1),p.Oqu(p.lcZ(2,27,"GROUP_DETAIL.MEMBERS.TITLE")),p.xp6(2),p.Q6J("ngIf",e.synchEnabled),p.xp6(3),p.s9C("matTooltip",p.lcZ(7,29,"GROUP_DETAIL.MEMBERS.SYNCHRONIZED")),p.Q6J("matTooltipDisabled",!e.synchEnabled)("matTooltipPosition","above"),p.xp6(2),p.s9C("matTooltip",p.lcZ(9,31,"GROUP_DETAIL.MEMBERS.ADD_MEMBER_DISABLED")),p.Q6J("matTooltipDisabled",!e.blockGroupManualMemberAdding),p.xp6(2),p.Q6J("ngIf",e.addAuth),p.xp6(1),p.s9C("matTooltip",p.lcZ(12,33,"GROUP_DETAIL.MEMBERS.SYNCHRONIZED")),p.Q6J("matTooltipDisabled",!e.synchEnabled)("matTooltipPosition","above"),p.xp6(2),p.Q6J("ngIf",e.inviteAuth),p.xp6(1),p.s9C("matTooltip",p.lcZ(15,35,"GROUP_DETAIL.MEMBERS.SYNCHRONIZED")),p.Q6J("matTooltipDisabled",!e.synchEnabled)("matTooltipPosition","above"),p.xp6(2),p.Q6J("ngIf",e.removeAuth),p.xp6(3),p.Oqu(p.lcZ(20,37,"GROUP_DETAIL.MEMBERS.FILTER_STATUS")),p.xp6(2),p.Q6J("formControl",e.statuses),p.xp6(2),p.hij(" ",p.lcZ(24,39,e.displaySelectedStatuses())," "),p.xp6(2),p.Q6J("ngForOf",e.statusList),p.xp6(3),p.Oqu(p.lcZ(29,41,"GROUP_DETAIL.MEMBERS.FILTER_GROUP_STATUS")),p.xp6(2),p.Q6J("formControl",e.groupStatuses),p.xp6(2),p.hij(" ",p.lcZ(33,43,e.displaySelectedGroupStatuses())," "),p.xp6(2),p.Q6J("ngForOf",e.groupStatusList),p.xp6(1),p.Q6J("placeholder","GROUP_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[f.O5,m.t,b.gM,_.KE,_.hX,w.gD,d.JJ,d.oH,w.$L,f.sg,A.P,y.w,v.lW,T.ey,C.$g,E.m],pipes:[S.X$,k.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}"]}),t})()},7433:function(t,e,i){"use strict";i.d(e,{q:function(){return V}});var n=i(4230),s=i(65249),o=i(60611),r=i(84608),a=i(68416),c=(i(41939),i(31572)),l=i(48160),u=i(61511),h=i(67806),d=i(70663),p=i(91058),g=i(88884),f=i(27521),m=i(16073),b=i(15980),_=i(36922);const w=["list"],A=["stepper"];function y(t,e){1&t&&c._UZ(0,"mat-spinner",4)}function v(t,e){1&t&&(c._uU(0),c.ALo(1,"translate")),2&t&&c.Oqu(c.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.RESOURCES"))}function T(t,e){1&t&&(c._uU(0),c.ALo(1,"translate")),2&t&&c.Oqu(c.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.OPTIONS"))}const C=function(){return["select","id","name","facility","tags","description"]};function E(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div",5),c.TgZ(1,"mat-stepper",6,7),c.TgZ(3,"mat-step",8),c.YNc(4,v,2,3,"ng-template",9),c.TgZ(5,"perun-web-apps-debounce-filter",10),c.NdJ("filter",function(e){return c.CHM(t),c.oxw().applyFilter(e)}),c.ALo(6,"translate"),c.qZA(),c._UZ(7,"perun-web-apps-resources-list",11,12),c.qZA(),c.TgZ(9,"mat-step"),c.YNc(10,T,2,3,"ng-template",9),c.TgZ(11,"mat-slide-toggle",13),c.NdJ("toggleChange",function(){return c.CHM(t),c.oxw().changeSubgroupsMessage()})("ngModelChange",function(e){return c.CHM(t),c.oxw().autoAssignSubgroups=e}),c._uU(12),c.ALo(13,"translate"),c.qZA(),c.TgZ(14,"div",14),c._UZ(15,"i",15),c.qZA(),c.TgZ(16,"mat-slide-toggle",13),c.NdJ("toggleChange",function(){return c.CHM(t),c.oxw().changeInactiveMessage()})("ngModelChange",function(e){return c.CHM(t),c.oxw().asActive=e}),c._uU(17),c.ALo(18,"translate"),c.qZA(),c.TgZ(19,"div",14),c._uU(20),c.qZA(),c.TgZ(21,"mat-slide-toggle",13),c.NdJ("toggleChange",function(){return c.CHM(t),c.oxw().changeAsyncMessage()})("ngModelChange",function(e){return c.CHM(t),c.oxw().async=e}),c._uU(22),c.ALo(23,"translate"),c.qZA(),c.TgZ(24,"div",14),c._uU(25),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=c.MAs(8),e=c.oxw();c.xp6(1),c.Q6J("linear",!0),c.xp6(2),c.Q6J("completed",0!==e.selection.selected.length&&void 0!==t&&t.addAuth),c.xp6(2),c.s9C("placeholder",c.lcZ(6,19,"DIALOGS.ADD_GROUP_RESOURCES.FILTER")),c.xp6(2),c.Q6J("tableId",e.tableId)("resources",e.resources)("disableRouting",!0)("selection",e.selection)("groupToResource",e.data.group)("displayedColumns",c.DdM(27,C))("filterValue",e.filterValue),c.xp6(4),c.Q6J("ngModel",e.autoAssignSubgroups),c.xp6(1),c.hij(" ",c.lcZ(13,21,"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS")," "),c.xp6(3),c.Q6J("innerHTML",e.autoAssignHint,c.oJD),c.xp6(1),c.Q6J("ngModel",e.asActive),c.xp6(1),c.hij(" ",c.lcZ(18,23,"DIALOGS.ADD_GROUP_RESOURCES.AS_ACTIVE")," "),c.xp6(3),c.hij(" ",e.asActiveHint," "),c.xp6(1),c.Q6J("ngModel",e.async),c.xp6(1),c.hij(" ",c.lcZ(23,25,"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OPT")," "),c.xp6(3),c.hij(" ",e.asyncHint," ")}}function S(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",22),c.NdJ("click",function(){return c.CHM(t),c.oxw(2).stepperPrevious()}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"DIALOGS.ADD_GROUP_RESOURCES.BACK")," "))}function k(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",23),c.NdJ("click",function(){return c.CHM(t),c.oxw(2).stepperNext()}),c._uU(1),c.ALo(2,"translate"),c.qZA()}if(2&t){const t=c.oxw(2);c.ekj("ml-2",void 0!==t.stepper&&0!==t.stepper.selectedIndex)("ml-auto",!(void 0!==t.stepper&&0!==t.stepper.selectedIndex)),c.Q6J("disabled",0===t.selection.selected.length||void 0!==t.list&&!t.list.addAuth),c.xp6(1),c.hij(" ",c.lcZ(2,6,"DIALOGS.ADD_GROUP_RESOURCES.NEXT")," ")}}function I(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",24),c.NdJ("click",function(){return c.CHM(t),c.oxw(2).onSubmit()}),c._uU(1),c.ALo(2,"translate"),c.qZA()}if(2&t){const t=c.oxw(2);c.Q6J("disabled",0===t.selection.selected.length||t.loading),c.xp6(1),c.hij(" ",c.lcZ(2,2,"DIALOGS.ADD_GROUP_RESOURCES.ADD")," ")}}function x(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div",16),c.TgZ(1,"button",17),c.NdJ("click",function(){return c.CHM(t),c.oxw().onCancel()}),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.YNc(4,S,3,3,"button",18),c.YNc(5,k,3,8,"button",19),c.TgZ(6,"span",20),c.ALo(7,"translate"),c.YNc(8,I,3,4,"button",21),c.qZA(),c.qZA()}if(2&t){const t=c.oxw();c.xp6(2),c.hij(" ",c.lcZ(3,6,"DIALOGS.ADD_GROUP_RESOURCES.CANCEL")," "),c.xp6(2),c.Q6J("ngIf",void 0!==t.stepper&&0!==t.stepper.selectedIndex),c.xp6(1),c.Q6J("ngIf",void 0!==t.stepper&&t.stepper.selectedIndex!==t.stepper._steps.length-1),c.xp6(1),c.s9C("matTooltip",c.lcZ(7,8,"DIALOGS.ADD_GROUP_RESOURCES.ADD_PERMISSION_TOOLTIP")),c.Q6J("matTooltipDisabled",void 0===t.list||t.list.addAuth),c.xp6(2),c.Q6J("ngIf",void 0!==t.stepper&&t.stepper.selectedIndex===t.stepper._steps.length-1)}}let R=(()=>{class t{constructor(t,e,i,s,r,a,c){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=s,this.resourcesManager=r,this.guiAuthResolver=a,this.cd=c,this.filterValue="",this.resources=[],this.selection=new n.Ov(!0,[]),this.theme="",this.async=!0,this.autoAssignSubgroups=!1,this.asActive=!0,this.tableId=o.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(t=>{this.resourcesManager.getAssignedResourcesWithGroup(this.data.group.id).subscribe(e=>{for(const i of t)-1===e.findIndex(t=>t.id===i.id)&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",[this.data.group,i])&&this.resources.push(i);this.loading=!1,this.cd.detectChanges()},()=>this.loading=!1)},()=>this.loading=!1)}applyFilter(t){this.filterValue=t}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const t=this.selection.selected.map(t=>t.id);this.resourcesManager.assignGroupToResources(this.data.group.id,t,this.async,!this.asActive,this.autoAssignSubgroups).subscribe(()=>{this.translate.get("DIALOGS.ADD_GROUP_RESOURCES.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),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 t.\u0275fac=function(e){return new(e||t)(c.Y36(r.so),c.Y36(r.WI),c.Y36(a.V6),c.Y36(l.sK),c.Y36(s.xk),c.Y36(a.x4),c.Y36(c.sBO))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-add-group-resource-dialog"]],viewQuery:function(t,e){if(1&t&&(c.Gf(w,5),c.Gf(A,5)),2&t){let t;c.iGM(t=c.CRH())&&(e.list=t.first),c.iGM(t=c.CRH())&&(e.stepper=t.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,"tableId","resources","disableRouting","selection","groupToResource","displayedColumns","filterValue"],["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"],["mat-flat-button","","class","ml-2","color","accent",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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(c.TgZ(0,"div"),c.TgZ(1,"h1",0),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.YNc(4,y,1,0,"mat-spinner",1),c.YNc(5,E,26,28,"div",2),c.YNc(6,x,9,10,"div",3),c.qZA()),2&t&&(c.Tol(e.theme),c.xp6(2),c.Oqu(c.lcZ(3,7,"DIALOGS.ADD_GROUP_RESOURCES.TITLE")),c.xp6(2),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading&&void 0!==e.stepper))},directives:[r.uh,u.O5,h.$g,r.xY,d.Vq,d.C0,d.VY,p.P,g.C,f.Rr,m.JJ,m.On,r.H8,b.lW,_.gM],pipes:[l.X$],styles:[""]}),t})();var O=i(67033);function P(t,e){1&t&&c._UZ(0,"mat-spinner",4)}function D(t,e){1&t&&c._UZ(0,"th",13)}function M(t,e){if(1&t&&(c.TgZ(0,"td",14),c._uU(1),c.qZA()),2&t){const t=e.$implicit;c.xp6(1),c.Oqu(t.name)}}function L(t,e){1&t&&c._UZ(0,"tr",15)}function N(t,e){1&t&&c._UZ(0,"tr",16)}function z(t,e){if(1&t&&(c.TgZ(0,"div",5),c.TgZ(1,"p"),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"div",6),c._uU(5),c.ALo(6,"translate"),c.qZA(),c.TgZ(7,"table",7),c.ynx(8,8),c.YNc(9,D,1,0,"th",9),c.YNc(10,M,2,1,"td",10),c.BQk(),c.YNc(11,L,1,0,"tr",11),c.YNc(12,N,1,0,"tr",12),c.qZA(),c.qZA()),2&t){const t=c.oxw();c.xp6(2),c.hij(" ",c.lcZ(3,5,"DIALOGS.REMOVE_RESOURCES.DESCRIPTION")," "),c.xp6(3),c.hij(" ",c.lcZ(6,7,"DIALOGS.REMOVE_RESOURCES.ASK")," "),c.xp6(2),c.Q6J("dataSource",t.dataSource),c.xp6(4),c.Q6J("matHeaderRowDef",t.displayedColumns),c.xp6(1),c.Q6J("matRowDefColumns",t.displayedColumns)}}function Z(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div",17),c.TgZ(1,"button",18),c.NdJ("click",function(){return c.CHM(t),c.oxw().onCancel()}),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"button",19),c.NdJ("click",function(){return c.CHM(t),c.oxw().onSubmit()}),c._uU(5),c.ALo(6,"translate"),c.qZA(),c.qZA()}if(2&t){const t=c.oxw();c.xp6(2),c.hij(" ",c.lcZ(3,3,"DIALOGS.REMOVE_RESOURCES.CANCEL")," "),c.xp6(2),c.Q6J("disabled",t.loading),c.xp6(1),c.hij(" ",c.lcZ(6,5,"DIALOGS.REMOVE_RESOURCES.DELETE")," ")}}let B=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.resourcesManager=s,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new O.by(this.data.resources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const t=this.data.resources.map(t=>t.id);this.resourcesManager.removeGroupFromResources(this.data.groupId,t).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(t=>{this.loading=!1,this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(r.so),c.Y36(r.WI),c.Y36(a.V6),c.Y36(l.sK),c.Y36(s.xk))},t.\u0275cmp=c.Xpm({type:t,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"],["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(t,e){1&t&&(c.TgZ(0,"div"),c.TgZ(1,"h1",0),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.YNc(4,P,1,0,"mat-spinner",1),c.YNc(5,z,13,9,"div",2),c.YNc(6,Z,7,7,"div",3),c.qZA()),2&t&&(c.Tol(e.data.theme),c.xp6(2),c.Oqu(c.lcZ(3,7,"DIALOGS.REMOVE_RESOURCES.TITLE")),c.xp6(2),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading))},directives:[r.uh,u.O5,h.$g,r.xY,O.BZ,O.w1,O.fO,O.Dz,O.as,O.nj,O.ge,O.ev,O.XQ,O.Gk,r.H8,b.lW],pipes:[l.X$],styles:[""]}),t})();var F=i(84140),U=i(59403),q=i(19139);const H=["list"];function G(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",8),c.NdJ("click",function(){return c.CHM(t),c.oxw().addResource()}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"GROUP_DETAIL.RESOURCES.ADD")," "))}function j(t,e){1&t&&c._UZ(0,"mat-spinner",9)}const Y=function(){return["select","id","indirectResourceAssigment","name","status","facility","tags","description"]};function K(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"perun-web-apps-resources-list",10,11),c.NdJ("refreshTable",function(){return c.CHM(t),c.oxw().refreshTable()}),c.qZA()}if(2&t){const t=c.oxw();c.Q6J("tableId",t.tableId)("filterValue",t.filterValue)("resources",t.resources)("routingVo",!0)("disableRouting",!t.routingAuth)("selection",t.selected)("groupToResource",t.group)("groupId",t.group.id)("resourcesToDisableCheckbox",t.resourcesToDisable)("displayedColumns",c.DdM(10,Y))}}let V=(()=>{class t{constructor(t,e,i,s,r){this.resourcesManager=t,this.groupService=e,this.dialog=i,this.guiAuthResolver=s,this.entityStorageService=r,this.resources=null,this.selected=new n.Ov(!0,[]),this.filterValue="",this.tableId=o.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(t=>{this.resources=t.map(t=>{const e=t.enrichedResource.resource;return e.facility=t.facility,e.status=t.status,e.resourceTags=t.resourceTags,e.failureCause=t.failureCause,e.sourceGroupId=t.sourceGroupId,e}),this.selected.clear(),this.resourcesToDisable=new Set(this.resources.filter(t=>null!==t.sourceGroupId).map(t=>t.id)),this.setAuthorization(),this.loading=!1})}applyFilter(t){this.filterValue=t}addResource(){const t=(0,F.kZ)();t.width="1000px",t.data={theme:"group-theme",group:this.group},this.dialog.open(R,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}removeResource(){const t=(0,F.kZ)();t.width="450px",t.data={theme:"group-theme",resources:this.selected.selected,groupId:this.group.id},this.dialog.open(B,t).afterClosed().subscribe(t=>{t&&(this.selected.clear(),this.refreshTable())})}}return t.id="GroupResourcesComponent",t.\u0275fac=function(e){return new(e||t)(c.Y36(s.xk),c.Y36(s.ff),c.Y36(r.uw),c.Y36(a.x4),c.Y36(a.fb))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-group-resources"]],viewQuery:function(t,e){if(1&t&&c.Gf(H,5),2&t){let t;c.iGM(t=c.CRH())&&(e.list=t.first)}},hostVars:2,hostBindings:function(t,e){2&t&&c.ekj("router-component",e.true)},decls:14,vars:15,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","filterValue","resources","routingVo","disableRouting","selection","groupToResource","groupId","resourcesToDisableCheckbox","displayedColumns","refreshTable",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","resources","routingVo","disableRouting","selection","groupToResource","groupId","resourcesToDisableCheckbox","displayedColumns","refreshTable"],["list",""]],template:function(t,e){1&t&&(c.TgZ(0,"div"),c.TgZ(1,"h1",0),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"perun-web-apps-refresh-button",1),c.NdJ("refresh",function(){return e.refreshTable()}),c.qZA(),c.YNc(5,G,3,3,"button",2),c.TgZ(6,"span",3),c.ALo(7,"translate"),c.TgZ(8,"button",4),c.NdJ("click",function(){return e.removeResource()}),c._uU(9),c.ALo(10,"translate"),c.qZA(),c.qZA(),c.TgZ(11,"perun-web-apps-immediate-filter",5),c.NdJ("filter",function(t){return e.applyFilter(t)}),c.qZA(),c.YNc(12,j,1,0,"mat-spinner",6),c.YNc(13,K,2,11,"perun-web-apps-resources-list",7),c.qZA()),2&t&&(c.xp6(2),c.Oqu(c.lcZ(3,9,"GROUP_DETAIL.RESOURCES.TITLE")),c.xp6(3),c.Q6J("ngIf",e.addAuth),c.xp6(1),c.s9C("matTooltip",c.lcZ(7,11,"GROUP_DETAIL.RESOURCES.DELETE_PERMISSION_HINT")),c.Q6J("matTooltipDisabled",0===e.selected.selected.length||void 0!==e.list&&e.list.removeAuth),c.xp6(2),c.Q6J("disabled",0===e.selected.selected.length||void 0!==e.list&&!e.list.removeAuth),c.xp6(1),c.hij(" ",c.lcZ(10,13,"GROUP_DETAIL.RESOURCES.DELETE")," "),c.xp6(2),c.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),c.xp6(1),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",e.resources&&!e.loading))},directives:[U.t,u.O5,_.gM,b.lW,q.L,h.$g,g.C],pipes:[l.X$],styles:[""]}),t})()},65423:function(t,e,i){"use strict";i.d(e,{Z:function(){return F}});var n=i(68416),s=i(92438),o=i(75954),r=i(68570),a=i(24555),c=i(65249),l=i(84140),u=i(31572),h=i(84608),d=i(48160),p=i(57629),g=i(61511),f=i(67806),m=i(27679),b=i(59403),_=i(15980),w=i(92846),A=i(43691),y=i(36922),v=i(27521),T=i(16073),C=i(39571);const E=["autoRegToggle"];function S(t,e){1&t&&u._UZ(0,"mat-spinner",3)}function k(t,e){if(1&t&&(u.TgZ(0,"span"),u._uU(1," , "),u.TgZ(2,"mat-icon",22),u._uU(3,"nat"),u.qZA(),u._uU(4),u.ALo(5,"translate"),u.ALo(6,"translate"),u.qZA()),2&t){const t=u.oxw(3);u.xp6(4),u.hij(" ",t.applicationForm.automaticApprovalEmbedded?u.lcZ(5,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):u.lcZ(6,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," ")}}function I(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"div"),u.TgZ(1,"mat-slide-toggle",23,24),u.NdJ("change",function(){return u.CHM(t),u.oxw(3).updateAutoRegistration()}),u._uU(3),u.ALo(4,"translate"),u.qZA(),u.qZA()}if(2&t){const t=u.oxw(3);u.xp6(1),u.Q6J("disabled",!t.changeAutoRegistration)("ngModel",t.autoRegistrationEnabled),u.xp6(2),u.hij(" ",u.lcZ(4,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ALLOW_EMBEDDED")," ")}}function x(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"button",25),u.NdJ("click",function(){return u.CHM(t),u.oxw(3).settings()}),u.TgZ(1,"i",12),u._uU(2,"edit"),u.qZA(),u._uU(3),u.ALo(4,"translate"),u.qZA()}2&t&&(u.xp6(3),u.hij(" ",u.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function R(t,e){if(1&t&&(u.TgZ(0,"div",15),u.TgZ(1,"div",16),u.TgZ(2,"div",17),u._uU(3),u.ALo(4,"translate"),u.qZA(),u.TgZ(5,"div"),u.TgZ(6,"span",17),u._uU(7),u.ALo(8,"translate"),u.qZA(),u._uU(9,": "),u.TgZ(10,"mat-icon",18),u._uU(11,"arrow_right_alt"),u.qZA(),u._uU(12),u.ALo(13,"translate"),u.ALo(14,"translate"),u.TgZ(15,"mat-icon",19),u._uU(16,"restore"),u.qZA(),u._uU(17),u.ALo(18,"translate"),u.ALo(19,"translate"),u.YNc(20,k,7,5,"span",2),u.qZA(),u.YNc(21,I,5,5,"div",2),u.qZA(),u.TgZ(22,"div",20),u.YNc(23,x,5,3,"button",21),u.qZA(),u.qZA()),2&t){const t=u.oxw(2);u.xp6(1),u.Q6J("ngClass",t.autoRegistrationEnabled?"w-75":"w-50"),u.xp6(2),u.AsE(" ",u.lcZ(4,9,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",t.applicationForm.moduleClassName," "),u.xp6(4),u.Oqu(u.lcZ(8,11,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),u.xp6(5),u.hij(" ",t.applicationForm.automaticApproval?u.lcZ(13,13,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):u.lcZ(14,15,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL"),", "),u.xp6(5),u.hij(" ",t.applicationForm.automaticApprovalExtension?u.lcZ(18,17,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):u.lcZ(19,19,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),u.xp6(3),u.Q6J("ngIf",t.autoRegistrationEnabled),u.xp6(1),u.Q6J("ngIf",t.voHasEmbeddedGroupApplication),u.xp6(2),u.Q6J("ngIf",t.editAuth)}}function O(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"button",26),u.NdJ("click",function(){return u.CHM(t),u.oxw(2).add()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function P(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"button",27),u.NdJ("click",function(){return u.CHM(t),u.oxw(2).save()}),u.TgZ(1,"i",12),u._uU(2,"save"),u.qZA(),u._uU(3),u.ALo(4,"translate"),u.qZA()}if(2&t){const t=u.oxw(2);u.Q6J("disabled",!t.itemsChanged),u.xp6(3),u.hij(" ",u.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function D(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"button",28),u.NdJ("click",function(){return u.CHM(t),u.oxw(2).copy()}),u.TgZ(1,"i",12),u._uU(2,"file_copy"),u.qZA(),u._uU(3),u.ALo(4,"translate"),u.qZA()}2&t&&(u.xp6(3),u.hij(" ",u.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.COPY_GROUP_BUTTON")," "))}function M(t,e){1&t&&(u.TgZ(0,"app-alert",29),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}const L=function(){return["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"]},N=function(){return["shortname","type","disabled","hidden","preview","managegroups"]};function z(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"div"),u.YNc(1,R,24,21,"div",4),u._UZ(2,"mat-divider",5),u.TgZ(3,"div",6),u.TgZ(4,"perun-web-apps-refresh-button",7),u.NdJ("refresh",function(){return u.CHM(t),u.oxw().updateFormItems()}),u.qZA(),u.YNc(5,O,3,3,"button",8),u.YNc(6,P,5,4,"button",9),u.YNc(7,D,5,3,"button",10),u.TgZ(8,"button",11),u.NdJ("click",function(){return u.CHM(t),u.oxw().preview()}),u.TgZ(9,"i",12),u._uU(10,"search"),u.qZA(),u._uU(11),u.ALo(12,"translate"),u.qZA(),u.qZA(),u.YNc(13,M,3,3,"app-alert",13),u.TgZ(14,"app-application-form-list",14),u.NdJ("applicationFormItemsChange",function(){return u.CHM(t),u.oxw().changeItems()}),u.qZA(),u.qZA()}if(2&t){const t=u.oxw();u.xp6(1),u.Q6J("ngIf",!t.loading),u.xp6(4),u.Q6J("ngIf",t.editAuth),u.xp6(1),u.Q6J("ngIf",t.editAuth),u.xp6(1),u.Q6J("ngIf",t.editAuth),u.xp6(4),u.hij(" ",u.lcZ(12,12,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),u.xp6(2),u.Q6J("ngIf",t.editAuth),u.xp6(1),u.Q6J("loading",t.loading)("applicationForm",t.applicationForm)("applicationFormItems",t.applicationFormItems)("theme","group-theme")("displayedColumns",t.editAuth?u.DdM(14,L):u.DdM(15,N))("refreshApplicationForm",t.refreshApplicationForm)}}function Z(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"button",32),u.NdJ("click",function(){return u.CHM(t),u.oxw(2).createEmptyApplicationForm()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CREATE_APPLICATION_FORM")," "))}function B(t,e){if(1&t&&(u.TgZ(0,"div"),u.TgZ(1,"app-alert",30),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.YNc(4,Z,3,3,"button",31),u.qZA()),2&t){const t=u.oxw();u.xp6(2),u.Oqu(u.lcZ(3,2,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM")),u.xp6(2),u.Q6J("ngIf",t.createEmptyForm)}}let F=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c){this.registrarManager=t,this.dialog=e,this.notificator=i,this.translate=n,this.apiRequest=s,this.router=o,this.guiAuthResolver=r,this.attributesManager=a,this.entityStorageService=c,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(t=>{this.applicationForm=t,this.registrarManager.getFormItemsForGroup(this.group.id).subscribe(t=>{this.applicationFormItems=t,this.attributesManager.getGroupAttributeByName(this.group.id,"urn:perun:group:attribute-def:virt:autoRegistrationEnabled").subscribe(t=>{this.voHasEmbeddedGroupApplication=null!==t.value,this.autoRegistrationEnabled=!!t.value,this.loading=!1})},()=>this.loading=!1)},t=>{"FormNotExistsException"===t.error.name?(this.noApplicationForm=!0,this.loading=!1):this.notificator.showRPCError(t.error)})}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 t=(0,l.kZ)();t.width="500px",t.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(s.J,t).afterClosed().subscribe(e=>{e&&(this.applicationFormItems=Object.assign([],e[0]),t=(0,l.kZ)(),t.width="600px",t.height="600px",t.data={voId:this.group.voId,groupId:this.group.id,applicationFormItem:e[1],theme:"group-theme",allItems:this.applicationFormItems},this.dialog.open(o._,t),this.itemsChanged=!0)})}copy(){const t=(0,l.kZ)();t.width="500px",t.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(r.W,t).afterClosed().subscribe(t=>{t&&this.updateFormItems()})}settings(){const t=(0,l.kZ)();t.width="400px",t.data={entity:"group",applicationForm:this.applicationForm,theme:"group-theme",autoRegistrationEnabled:this.autoRegistrationEnabled},this.dialog.open(a.E,t).afterClosed().subscribe(t=>{t&&(this.translate.get("GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.applicationForm=t)})}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(t=>{this.applicationFormItems=t,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 t=0;for(const e of this.applicationFormItems)e.ordnum=t,e.forDelete||t++;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(t=>{this.notificator.showSuccess(t)}),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(t=>{this.notificator.showSuccess(t)}),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(t=>{this.notificator.showSuccess(t)}),this.autoRegToggle.setDisabledState(!1)},()=>this.autoRegToggle.setDisabledState(!1))}}return t.id="GroupSettingsApplicationFormComponent",t.\u0275fac=function(e){return new(e||t)(u.Y36(c.tk),u.Y36(h.uw),u.Y36(n.V6),u.Y36(d.sK),u.Y36(n.F5),u.Y36(p.F0),u.Y36(n.x4),u.Y36(c.H8),u.Y36(n.fb))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-group-settings-application-form"]],viewQuery:function(t,e){if(1&t&&u.Gf(E,5),2&t){let t;u.iGM(t=u.CRH())&&(e.autoRegToggle=t.first)}},hostVars:2,hostBindings:function(t,e){2&t&&u.ekj("router-component",e.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"],["mat-flat-button","","color","accent","class","mr-2 action-button","data-cy","add-form-item",3,"click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2","data-cy","save-application-form",3,"disabled","click",4,"ngIf"],["mat-stroked-button","","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],["alert_type","info",4,"ngIf"],[3,"loading","applicationForm","applicationFormItems","theme","displayedColumns","refreshApplicationForm","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"],["mat-stroked-button","","class","ml-auto action-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"],["mat-flat-button","","color","accent","data-cy","add-form-item",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","accent","data-cy","save-application-form",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],["alert_type","info"],["alert_type","warn"],["mat-stroked-button","","data-cy","create-empty-form",3,"click",4,"ngIf"],["mat-stroked-button","","data-cy","create-empty-form",3,"click"]],template:function(t,e){1&t&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.YNc(3,S,1,0,"mat-spinner",1),u.YNc(4,z,15,16,"div",2),u.YNc(5,B,5,4,"div",2)),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,4,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),u.xp6(2),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.noApplicationForm),u.xp6(1),u.Q6J("ngIf",!e.loading&&e.noApplicationForm))},directives:[g.O5,f.$g,m.d,b.t,_.lW,w.b,g.mk,A.Hw,y.gM,v.Rr,T.JJ,T.On,C.w],pipes:[d.X$],styles:[""]}),t})()},82044:function(t,e,i){"use strict";i.d(e,{u:function(){return N}});var n=i(88419),s=i(4230),o=i(43491),r=i(84140),a=i(65249),c=i(67004),l=i(60611),u=i(57820),h=i(68416),d=(i(41939),i(31572)),p=i(84608),g=i(59403),f=i(61511),m=i(36922),b=i(91058),_=i(27521),w=i(16073),A=i(15980),y=i(67806),v=i(11441),T=i(78364),C=i(48160);const E=["tree"],S=["list"],k=["toggle"];function I(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"button",10),d.NdJ("click",function(){return d.CHM(t),d.oxw().onCreateGroup()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}2&t&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"GROUP_DETAIL.SUBGROUPS.CREATE_GROUP")," "))}function x(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"button",11),d.NdJ("click",function(){return d.CHM(t),d.oxw().deleteGroup()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}if(2&t){const t=d.oxw();d.Q6J("disabled",0===t.selected.selected.length||void 0!==t.tree&&!t.tree.removeAuth||void 0!==t.list&&!t.list.removeAuth),d.xp6(1),d.hij(" ",d.lcZ(2,2,"GROUP_DETAIL.SUBGROUPS.DELETE_GROUP")," ")}}function R(t,e){1&t&&d._UZ(0,"mat-spinner",12)}function O(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"perun-web-apps-groups-tree",16,17),d.NdJ("moveGroup",function(e){return d.CHM(t),d.oxw(2).onMoveGroup(e)})("refreshTable",function(){return d.CHM(t),d.oxw(2).refreshTable()}),d.qZA()}if(2&t){const t=d.oxw(2);d.Q6J("groups",t.groups)("expandAll",t.filtering)("hideCheckbox",!t.deleteAuth)("selection",t.selected)("filterValue",t.filterValue)("disableRouting",!t.routeAuth)}}const P=function(){return["select","id","name","description","menu"]},D=function(){return["id","name","description","menu"]};function M(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"perun-web-apps-groups-list",18,19),d.NdJ("moveGroup",function(e){return d.CHM(t),d.oxw(2).onMoveGroup(e)})("refreshTable",function(){return d.CHM(t),d.oxw(2).refreshTable()}),d.qZA()}if(2&t){const t=d.oxw(2);d.Q6J("tableId",t.tableId)("groups",t.groups)("selection",t.selected)("authType","group-subgroups")("disableMembers",!0)("disableRouting",!t.routeAuth)("displayedColumns",t.deleteAuth?d.DdM(8,P):d.DdM(9,D))("filter",t.filterValue)}}function L(t,e){if(1&t&&(d.TgZ(0,"div",13),d.YNc(1,O,2,6,"perun-web-apps-groups-tree",14),d.YNc(2,M,2,10,"perun-web-apps-groups-list",15),d.qZA()),2&t){const t=d.oxw();d.xp6(1),d.Q6J("ngIf",!t.showGroupList),d.xp6(1),d.Q6J("ngIf",t.showGroupList)}}let N=(()=>{class t{constructor(t,e,i,n){this.dialog=t,this.groupService=e,this.guiAuthResolver=i,this.entityStorageService=n,this.groups=[],this.selected=new s.Ov(!0,[]),this.showGroupList=!1,this.filtering=!1,this.tableId=l.bf,this.filterValue=""}onCreateGroup(){const t=(0,r.kZ)();t.width="450px",t.data={parentGroup:this.group,theme:"group-theme"},this.dialog.open(n.y,t).afterClosed().subscribe(t=>{t&&(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 t=(0,r.kZ)();t.width="450px",t.data={voId:this.group.id,groups:this.selected.selected,theme:"group-theme"},this.dialog.open(o.P,t).afterClosed().subscribe(t=>{t&&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(t=>{this.groups=t,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(t){this.filterValue=t,this.filtering=""!==t}onMoveGroup(t){const e=(0,r.kZ)();e.width="550px",e.data={group:t,theme:"group-theme"},this.dialog.open(u.c,e).afterClosed().subscribe(t=>{t&&this.refreshTable()})}}return t.id="GroupSubgroupsComponent",t.\u0275fac=function(e){return new(e||t)(d.Y36(p.uw),d.Y36(a.ff),d.Y36(h.x4),d.Y36(h.fb))},t.\u0275cmp=d.Xpm({type:t,selectors:[["app-group-subgroups"]],viewQuery:function(t,e){if(1&t&&(d.Gf(E,5),d.Gf(S,5),d.Gf(k,7)),2&t){let t;d.iGM(t=d.CRH())&&(e.tree=t.first),d.iGM(t=d.CRH())&&(e.list=t.first),d.iGM(t=d.CRH())&&(e.toggle=t.first)}},hostVars:2,hostBindings:function(t,e){2&t&&d.ekj("router-component",e.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,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","warn","class","mr-2","data-cy","delete-group-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"],["mat-flat-button","","color","warn","data-cy","delete-group-button",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],[3,"groups","expandAll","hideCheckbox","selection","filterValue","disableRouting","moveGroup","refreshTable",4,"ngIf"],[3,"tableId","groups","selection","authType","disableMembers","disableRouting","displayedColumns","filter","moveGroup","refreshTable",4,"ngIf"],[3,"groups","expandAll","hideCheckbox","selection","filterValue","disableRouting","moveGroup","refreshTable"],["tree",""],[3,"tableId","groups","selection","authType","disableMembers","disableRouting","displayedColumns","filter","moveGroup","refreshTable"],["list",""]],template:function(t,e){if(1&t&&(d.TgZ(0,"div"),d.TgZ(1,"h1",0),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"perun-web-apps-refresh-button",1),d.NdJ("refresh",function(){return e.refreshTable()}),d.qZA(),d.YNc(5,I,3,3,"button",2),d.TgZ(6,"span",3),d.ALo(7,"translate"),d.YNc(8,x,3,4,"button",4),d.qZA(),d.TgZ(9,"perun-web-apps-debounce-filter",5),d.NdJ("filter",function(t){return e.applyFilter(t)}),d.qZA(),d.TgZ(10,"mat-slide-toggle",6,7),d.NdJ("change",function(){return e.selected.clear()})("ngModelChange",function(t){return e.showGroupList=t}),d._uU(12),d.ALo(13,"translate"),d.qZA(),d.TgZ(14,"label"),d._uU(15),d.ALo(16,"translate"),d.qZA(),d.YNc(17,R,1,0,"mat-spinner",8),d.YNc(18,L,3,2,"div",9),d.qZA()),2&t){const t=d.MAs(11);d.xp6(2),d.Oqu(d.lcZ(3,12,"GROUP_DETAIL.SUBGROUPS.TITLE")),d.xp6(3),d.Q6J("ngIf",e.createAuth),d.xp6(1),d.s9C("matTooltip",d.lcZ(7,14,"GROUP_DETAIL.SUBGROUPS.DELETE_PERMISSION_HINT")),d.Q6J("matTooltipDisabled",void 0===e.tree&&void 0===e.list||void 0!==e.tree&&e.tree.removeAuth||void 0!==e.list&&e.list.removeAuth),d.xp6(2),d.Q6J("ngIf",e.deleteAuth),d.xp6(1),d.Q6J("placeholder","GROUP_DETAIL.SUBGROUPS.FILTER"),d.xp6(1),d.Q6J("ngModel",e.showGroupList),d.xp6(2),d.Oqu(d.lcZ(13,16,"GROUP_DETAIL.SUBGROUPS.TREE_VIEW")),d.xp6(2),d.uIk("for",t.inputId),d.xp6(1),d.Oqu(d.lcZ(16,18,"GROUP_DETAIL.SUBGROUPS.LIST_VIEW")),d.xp6(2),d.Q6J("ngIf",e.loading),d.xp6(1),d.Q6J("ngIf",!e.loading)}},directives:[g.t,f.O5,m.gM,b.P,_.Rr,w.JJ,w.On,A.lW,y.$g,v.I,T.W],pipes:[C.X$],styles:[""]}),t})()},81835:function(t,e,i){"use strict";i.d(e,{j:function(){return B}});var n=i(65249),s=i(60611),o=i(4230),r=i(84140),a=i(84608),c=i(68416),l=i(67004),u=i(31572),h=i(48160),d=i(61511),p=i(67806),g=i(19139),f=i(78364),m=i(15980);function b(t,e){1&t&&u._UZ(0,"mat-spinner",6)}function _(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"perun-web-apps-immediate-filter",7),u.NdJ("filter",function(e){return u.CHM(t),u.oxw().applyFilter(e)}),u.qZA()}2&t&&u.Q6J("placeholder","DIALOGS.ADD_MEMBER_GROUP.FILTER")}const w=function(){return["select","id","name","description"]};function A(t,e){if(1&t&&u._UZ(0,"perun-web-apps-groups-list",8),2&t){const t=u.oxw();u.Q6J("groups",t.groups)("selection",t.selection)("displayedColumns",u.DdM(8,w))("filter",t.filterValue)("groupsToDisableCheckbox",t.membersGroups)("disableGroups",!0)("disableRouting",!0)("disableMembers",!0)}}function y(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"div",9),u.TgZ(1,"button",10),u.NdJ("click",function(){return u.CHM(t),u.oxw().onCancel()}),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"button",11),u.NdJ("click",function(){return u.CHM(t),u.oxw().onAdd()}),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.qZA()}if(2&t){const t=u.oxw();u.xp6(2),u.hij(" ",u.lcZ(3,3,"DIALOGS.ADD_MEMBER_GROUP.CANCEL")," "),u.xp6(2),u.Q6J("disabled",0===t.selection.selected.length),u.xp6(1),u.hij(" ",u.lcZ(6,5,"DIALOGS.ADD_MEMBER_GROUP.ADD")," ")}}let v=(()=>{class t{constructor(t,e,i,n,s,r,a){this.dialogRef=t,this.data=e,this.groupManager=i,this.memberManager=n,this.notificator=s,this.translate=r,this.authResolver=a,this.loading=!1,this.groups=[],this.selection=new o.Ov(!0,[]),this.attrNames=[l.r.GROUP_SYNC_ENABLED,l.r.GROUP_LAST_SYNC_STATE,l.r.GROUP_LAST_SYNC_TIMESTAMP,l.r.GROUP_STRUCTURE_SYNC_ENABLED,l.r.GROUP_LAST_STRUCTURE_SYNC_STATE,l.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(t=>{this.member=t,this.groupManager.getAllRichGroupsWithAttributesByNames(this.member.voId,this.attrNames).subscribe(t=>{this.groups=t.filter(t=>this.authResolver.isAuthorized("addMember_Group_Member_policy",[t])),this.loading=!1},()=>this.loading=!1)})}onAdd(){const t=this.selection.selected.map(t=>t.id);this.loading=!0,this.groupManager.addMember(t,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(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(a.so),u.Y36(a.WI),u.Y36(n.ff),u.Y36(n.uq),u.Y36(c.V6),u.Y36(h.sK),u.Y36(c.x4))},t.\u0275cmp=u.Xpm({type:t,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,"groups","selection","displayedColumns","filter","groupsToDisableCheckbox","disableGroups","disableRouting","disableMembers",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"placeholder","filter"],[3,"groups","selection","displayedColumns","filter","groupsToDisableCheckbox","disableGroups","disableRouting","disableMembers"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.YNc(4,b,1,0,"mat-spinner",1),u.TgZ(5,"div",2),u.YNc(6,_,1,1,"perun-web-apps-immediate-filter",3),u.YNc(7,A,1,9,"perun-web-apps-groups-list",4),u.qZA(),u.YNc(8,y,7,7,"div",5),u.qZA()),2&t&&(u.Tol(e.theme),u.xp6(2),u.Oqu(u.lcZ(3,8,"DIALOGS.ADD_MEMBER_GROUP.TITLE")),u.xp6(2),u.Q6J("ngIf",e.loading),u.xp6(2),u.Q6J("ngIf",!e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading))},directives:[a.uh,d.O5,a.xY,p.$g,g.L,f.W,a.H8,m.lW],pipes:[h.X$],styles:[""]}),t})();var T=i(67033);function C(t,e){1&t&&u._UZ(0,"mat-spinner",6)}function E(t,e){1&t&&u._UZ(0,"th",15)}function S(t,e){if(1&t&&(u.TgZ(0,"td",16),u._uU(1),u.qZA()),2&t){const t=e.$implicit;u.xp6(1),u.Oqu(t.name)}}function k(t,e){1&t&&u._UZ(0,"tr",17)}function I(t,e){1&t&&u._UZ(0,"tr",18)}function x(t,e){if(1&t&&(u.TgZ(0,"div",7),u.TgZ(1,"p"),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"div",8),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.TgZ(7,"table",9),u.ynx(8,10),u.YNc(9,E,1,0,"th",11),u.YNc(10,S,2,1,"td",12),u.BQk(),u.YNc(11,k,1,0,"tr",13),u.YNc(12,I,1,0,"tr",14),u.qZA(),u.qZA()),2&t){const t=u.oxw();u.xp6(2),u.Oqu(u.lcZ(3,5,"DIALOGS.REMOVE_MEMBER_GROUP.DESCRIPTION")),u.xp6(3),u.hij(" ",u.lcZ(6,7,"DIALOGS.REMOVE_MEMBER_GROUP.ASK")," "),u.xp6(2),u.Q6J("dataSource",t.dataSource),u.xp6(4),u.Q6J("matHeaderRowDef",t.displayedColumns),u.xp6(1),u.Q6J("matRowDefColumns",t.displayedColumns)}}let R=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.groupManager=i,this.notificator=n,this.translate=s,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new T.by(this.data.groups)}onRemove(){this.loading=!0;const t=this.dataSource.data.map(t=>t.id);this.groupManager.removeMember(t,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 t.\u0275fac=function(e){return new(e||t)(u.Y36(a.so),u.Y36(a.WI),u.Y36(n.ff),u.Y36(c.V6),u.Y36(h.sK))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-remove-member-group-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-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,"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"],["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(t,e){1&t&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.YNc(4,C,1,0,"mat-spinner",1),u.YNc(5,x,13,9,"div",2),u.TgZ(6,"div",3),u.TgZ(7,"button",4),u.NdJ("click",function(){return e.onCancel()}),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.TgZ(10,"button",5),u.NdJ("click",function(){return e.onRemove()}),u._uU(11),u.ALo(12,"translate"),u.qZA(),u.qZA(),u.qZA()),2&t&&(u.Tol(e.theme),u.xp6(2),u.Oqu(u.lcZ(3,9,"DIALOGS.REMOVE_MEMBER_GROUP.TITLE")),u.xp6(2),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading),u.xp6(3),u.hij(" ",u.lcZ(9,11,"DIALOGS.REMOVE_MEMBER_GROUP.CANCEL")," "),u.xp6(2),u.Q6J("disabled",e.loading),u.xp6(1),u.hij(" ",u.lcZ(12,13,"DIALOGS.REMOVE_MEMBER_GROUP.REMOVE")," "))},directives:[a.uh,d.O5,a.H8,m.lW,p.$g,a.xY,T.BZ,T.w1,T.fO,T.Dz,T.as,T.nj,T.ge,T.ev,T.XQ,T.Gk],pipes:[h.X$],styles:[""]}),t})();i(41939);var O=i(57629),P=i(59403),D=i(36922);const M=["list"];function L(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"button",8),u.NdJ("click",function(){return u.CHM(t),u.oxw().addGroup()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"MEMBER_DETAIL.GROUPS.ADD"),"\n"))}function N(t,e){1&t&&u._UZ(0,"mat-spinner",9)}const z=function(){return["select","id","vo","name","description","expiration"]};function Z(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"perun-web-apps-groups-list",10,11),u.NdJ("refreshTable",function(){return u.CHM(t),u.oxw().refreshTable()}),u.qZA()}if(2&t){const t=u.oxw();u.Q6J("tableId",t.tableId)("groups",t.groups)("displayedColumns",u.DdM(9,z))("selection",t.selection)("filter",t.filterValue)("memberId",t.memberId)("memberGroupStatus",t.member.groupStatus)("disableRouting",!t.routeAuth)("authType","member-groups")}}let B=(()=>{class t{constructor(t,e,i,n,r){this.groupsService=t,this.route=e,this.dialog=i,this.authResolver=n,this.memberService=r,this.filterValue="",this.tableId=s.W1,this.selection=new o.Ov(!0,[])}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(t=>{this.memberId=t.memberId,this.memberService.getMemberById(this.memberId).subscribe(t=>{this.member=t,this.groupsService.getAllGroups(this.member.voId).subscribe(t=>{this.allGroups=t,this.refreshTable()})})})}refreshTable(){this.loading=!0,this.groupsService.getMemberRichGroupsWithAttributesByNames(this.memberId,["urn:perun:member_group:attribute-def:def:groupMembershipExpiration"]).subscribe(t=>{this.selection.clear(),this.groups=t,this.setAuthRights(),this.loading=!1},()=>this.loading=!1)}setAuthRights(){const t={id:this.member.voId,beanName:"Vo"};this.addAuth=this.allGroups.reduce((t,e)=>t||this.authResolver.isAuthorized("addMember_Group_Member_policy",[e]),!1),0!==this.groups.length&&(this.routeAuth=this.authResolver.isAuthorized("getGroupById_int_policy",[t,this.groups[0]]))}addGroup(){const t=(0,r.kZ)();t.width="850px",t.data={memberId:this.memberId,membersGroups:new Set(this.groups.map(t=>t.id)),theme:"member-theme"},this.dialog.open(v,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}removeGroup(){const t=(0,r.kZ)();t.width="650px",t.data={memberId:this.memberId,groups:this.selection.selected,theme:"member-theme"},this.dialog.open(R,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}applyFilter(t){this.filterValue=t}}return t.id="MemberGroupsComponent",t.\u0275fac=function(e){return new(e||t)(u.Y36(n.ff),u.Y36(O.gz),u.Y36(a.uw),u.Y36(c.x4),u.Y36(n.uq))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-member-groups"]],viewQuery:function(t,e){if(1&t&&u.Gf(M,5),2&t){let t;u.iGM(t=u.CRH())&&(e.list=t.first)}},hostVars:2,hostBindings:function(t,e){2&t&&u.ekj("router-component",e.true)},decls:13,vars:15,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"tableId","groups","displayedColumns","selection","filter","memberId","memberGroupStatus","disableRouting","authType","refreshTable",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],[1,"mr-auto","ml-auto"],[3,"tableId","groups","displayedColumns","selection","filter","memberId","memberGroupStatus","disableRouting","authType","refreshTable"],["list",""]],template:function(t,e){1&t&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.TgZ(3,"perun-web-apps-refresh-button",1),u.NdJ("refresh",function(){return e.refreshTable()}),u.qZA(),u.YNc(4,L,3,3,"button",2),u.TgZ(5,"span",3),u.ALo(6,"translate"),u.TgZ(7,"button",4),u.NdJ("click",function(){return e.removeGroup()}),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.qZA(),u.TgZ(10,"perun-web-apps-immediate-filter",5),u.NdJ("filter",function(t){return e.applyFilter(t)}),u.qZA(),u.YNc(11,N,1,0,"mat-spinner",6),u.YNc(12,Z,2,10,"perun-web-apps-groups-list",7)),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,9,"MEMBER_DETAIL.GROUPS.TITLE")),u.xp6(3),u.Q6J("ngIf",e.addAuth),u.xp6(1),u.s9C("matTooltip",u.lcZ(6,11,"MEMBER_DETAIL.GROUPS.REMOVE_PERMISSION_HINT")),u.Q6J("matTooltipDisabled",void 0===e.list||void 0!==e.list&&e.list.removeAuth),u.xp6(2),u.Q6J("disabled",0===e.selection.selected.length||void 0!==e.list&&!e.list.removeAuth),u.xp6(1),u.hij(" ",u.lcZ(9,13,"MEMBER_DETAIL.GROUPS.REMOVE")," "),u.xp6(2),u.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading))},directives:[P.t,d.O5,D.gM,m.lW,g.L,p.$g,f.W],pipes:[h.X$],styles:[""]}),t})()},40659:function(t,e,i){"use strict";i.d(e,{c:function(){return k}});var n=i(65249),s=i(60611),o=i(16073),r=i(61511),a=i(68416),c=i(31572),l=i(59403),u=i(66283),h=i(4786),d=i(71522),p=i(91058),g=i(51613),f=i(29236),m=i(15980),b=i(67806),_=i(21548),w=i(29851),A=i(48160);function y(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",16),c.NdJ("click",function(){return c.CHM(t),c.oxw().showAllDetails=!0}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function v(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",16),c.NdJ("click",function(){return c.CHM(t),c.oxw().showAllDetails=!1}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}function T(t,e){1&t&&c._UZ(0,"mat-spinner",17)}function C(t,e){if(1&t&&c._UZ(0,"app-applications-list",20),2&t){const t=c.oxw(2);c.Q6J("tableId",t.tableId)("filterValue",t.filterValue)("applications",t.applications)("displayedColumns",t.displayedColumns)}}function E(t,e){if(1&t&&c._UZ(0,"app-perun-web-apps-application-list-details",21),2&t){const t=c.oxw(2);c.Q6J("tableId",t.detailTableId)("filterValue",t.filterValue)("applications",t.applications)}}function S(t,e){if(1&t&&(c.TgZ(0,"div"),c.YNc(1,C,1,4,"app-applications-list",18),c.YNc(2,E,1,3,"app-perun-web-apps-application-list-details",19),c.qZA()),2&t){const t=c.oxw();c.xp6(1),c.Q6J("ngIf",!t.showAllDetails),c.xp6(1),c.Q6J("ngIf",t.showAllDetails)}}let k=(()=>{class t{constructor(t,e){this.registrarManager=t,this.entityStorageService=e,this.state="pending",this.loading=!1,this.applications=[],this.displayedColumns=["id","createdAt","type","state","user","group","modifiedBy"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=s.Jf,this.tableId=s.Hi,this.checked=!1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.startDate=new o.NI((0,r.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new o.NI((0,r.p6)(new Date,"yyyy-MM-dd","en-GB")),this.setData(["NEW","VERIFIED"])}setData(t){this.registrarManager.getApplicationsForVo(this.vo.id,t,(0,r.p6)(this.startDate.value,"yyyy-MM-dd","en-GB"),(0,r.p6)(this.endDate.value,"yyyy-MM-dd","en-GB")).subscribe(t=>{this.applications=!1===this.checked?t.filter(t=>null===t.group):t,this.loading=!1})}select(){switch(this.loading=!0,this.state){case"approved":this.setData(["APPROVED"]);break;case"rejected":this.setData(["REJECTED"]);break;case"wfmv":this.setData(["NEW"]);break;case"submited":this.setData(["VERIFIED"]);break;case"pending":this.setData(["NEW","VERIFIED"]);break;case"all":this.setData(null)}}yearAgo(){const t=new Date,e=t.getFullYear()-1,i=t.getMonth(),n=t.getDate();return new Date(e,i,n)}showGroupApplications(t){this.checked=t.checked,this.select()}applyFilter(t){this.filterValue=t}}return t.id="VoApplicationsComponent",t.\u0275fac=function(e){return new(e||t)(c.Y36(n.tk),c.Y36(a.fb))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-vo-applications"]],hostVars:2,hostBindings:function(t,e){2&t&&c.ekj("router-component",e.true)},decls:38,vars:36,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,"startDate","endDate","datePicker"],["color","primary",3,"checked","change"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","applications","displayedColumns",4,"ngIf"],[3,"tableId","filterValue","applications",4,"ngIf"],[3,"tableId","filterValue","applications","displayedColumns"],[3,"tableId","filterValue","applications"]],template:function(t,e){1&t&&(c.TgZ(0,"h1",0),c._uU(1),c.ALo(2,"translate"),c.qZA(),c.TgZ(3,"div"),c.TgZ(4,"perun-web-apps-refresh-button",1),c.NdJ("refresh",function(){return e.select()}),c.qZA(),c.YNc(5,y,3,3,"button",2),c.YNc(6,v,3,3,"button",2),c.TgZ(7,"mat-form-field",3),c.TgZ(8,"mat-label"),c._uU(9),c.ALo(10,"translate"),c.qZA(),c.TgZ(11,"mat-select",4),c.NdJ("selectionChange",function(){return e.select()})("valueChange",function(t){return e.state=t}),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.qZA(),c.qZA(),c.TgZ(30,"perun-web-apps-debounce-filter",11),c.NdJ("filter",function(t){return e.applyFilter(t)}),c.qZA(),c.TgZ(31,"perun-web-apps-date-range",12),c.NdJ("datePicker",function(){return e.select()}),c.qZA(),c.TgZ(32,"div"),c.TgZ(33,"mat-checkbox",13),c.NdJ("change",function(t){return e.showGroupApplications(t)}),c._uU(34),c.ALo(35,"translate"),c.qZA(),c.qZA(),c.qZA(),c.YNc(36,T,1,0,"mat-spinner",14),c.YNc(37,S,3,2,"div",15)),2&t&&(c.xp6(1),c.Oqu(c.lcZ(2,18,"VO_DETAIL.APPLICATION.TITLE")),c.xp6(4),c.Q6J("ngIf",!e.showAllDetails),c.xp6(1),c.Q6J("ngIf",e.showAllDetails),c.xp6(3),c.Oqu(c.lcZ(10,20,"VO_DETAIL.APPLICATION.TABLE_STATE")),c.xp6(2),c.Q6J("value",e.state),c.xp6(2),c.Oqu(c.lcZ(14,22,"VO_DETAIL.APPLICATION.SELECTION_ALL")),c.xp6(3),c.Oqu(c.lcZ(17,24,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),c.xp6(3),c.Oqu(c.lcZ(20,26,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),c.xp6(3),c.Oqu(c.lcZ(23,28,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),c.xp6(3),c.Oqu(c.lcZ(26,30,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),c.xp6(3),c.Oqu(c.lcZ(29,32,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),c.xp6(2),c.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),c.xp6(1),c.Q6J("startDate",e.startDate)("endDate",e.endDate),c.xp6(2),c.Q6J("checked",e.checked),c.xp6(1),c.hij(" ",c.lcZ(35,34,"VO_DETAIL.APPLICATION.SHOW_GROUP_APPLICATIONS")," "),c.xp6(2),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading))},directives:[l.t,r.O5,u.KE,u.hX,h.gD,d.ey,p.P,g.S,f.oG,m.lW,b.$g,_.M,w.w],pipes:[A.X$],styles:[""]}),t})()},48002:function(t,e,i){"use strict";i.d(e,{G:function(){return N}});var n=i(88419),s=i(43491),o=i(4230),r=i(57820),a=i(84140),c=i(65249),l=i(60611),u=i(67004),h=i(68416),d=(i(41939),i(31572)),p=i(84608),g=i(59403),f=i(61511),m=i(36922),b=i(15980),_=i(91058),w=i(27521),A=i(16073),y=i(67806),v=i(11441),T=i(78364),C=i(39571),E=i(48160);const S=["toggle"],k=["tree"],I=["list"];function x(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"button",11),d.NdJ("click",function(){return d.CHM(t),d.oxw().onCreateGroup()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}2&t&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"VO_DETAIL.GROUPS.CREATE_GROUP")," "))}function R(t,e){1&t&&d._UZ(0,"mat-spinner",12)}function O(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"perun-web-apps-groups-tree",16,17),d.NdJ("moveGroup",function(e){return d.CHM(t),d.oxw(2).onMoveGroup(e)})("refreshTable",function(){return d.CHM(t),d.oxw(2).loadAllGroups()}),d.qZA()}if(2&t){const t=d.oxw(2);d.Q6J("groups",t.groups)("expandAll",t.filtering)("vo",t.vo)("selection",t.selected)("disableRouting",!t.routeAuth)("filterValue",t.filterValue)}}const P=function(){return["select","id","name","description","menu"]};function D(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"perun-web-apps-groups-list",18,19),d.NdJ("moveGroup",function(e){return d.CHM(t),d.oxw(2).onMoveGroup(e)})("refreshTable",function(){return d.CHM(t),d.oxw(2).loadAllGroups()}),d.qZA()}if(2&t){const t=d.oxw(2);d.Q6J("tableId",t.tableId)("groups",t.groups)("selection",t.selected)("disableMembers",!0)("displayedColumns",d.DdM(8,P))("disableRouting",!t.routeAuth)("authType","vo-groups")("filter",t.filterValue)}}function M(t,e){if(1&t&&(d.TgZ(0,"div",13),d.YNc(1,O,2,6,"perun-web-apps-groups-tree",14),d.YNc(2,D,2,9,"perun-web-apps-groups-list",15),d.qZA()),2&t){const t=d.oxw();d.xp6(1),d.Q6J("ngIf",!t.showGroupList),d.xp6(1),d.Q6J("ngIf",t.showGroupList)}}function L(t,e){1&t&&(d.TgZ(0,"app-alert",20),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"VO_DETAIL.GROUPS.NO_GROUPS")," "))}let N=(()=>{class t{constructor(t,e,i,n){this.dialog=t,this.groupService=e,this.authResolver=i,this.entityStorageService=n,this.groups=[],this.showGroupList=!1,this.selected=new o.Ov(!0,[]),this.filtering=!1,this.filterValue="",this.tableId=l.rc}onCreateGroup(){const t=(0,a.kZ)();t.width="450px",t.data={voId:this.vo.id,parentGroup:null,theme:"vo-theme"},this.dialog.open(n.y,t).afterClosed().subscribe(t=>{t&&(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 void 0!==this.tree&&this.tree.removeAuth||void 0!==this.list&&this.list.removeAuth}deleteGroup(){const t=(0,a.kZ)();t.width="450px",t.data={voId:this.vo.id,groups:this.selected.selected,theme:"vo-theme"},this.dialog.open(s.P,t).afterClosed().subscribe(t=>{t&&this.loadAllGroups()})}removeAllGroups(){this.selected.clear()}onMoveGroup(t){const e=(0,a.kZ)();e.width="550px",e.data={group:t,theme:"vo-theme"},this.dialog.open(r.c,e).afterClosed().subscribe(t=>{t&&this.loadAllGroups()})}loadAllGroups(){this.loading=!0,this.groupService.getAllRichGroupsWithAttributesByNames(this.vo.id,[u.r.GROUP_SYNC_ENABLED,u.r.GROUP_LAST_SYNC_STATE,u.r.GROUP_LAST_SYNC_TIMESTAMP,u.r.GROUP_STRUCTURE_SYNC_ENABLED,u.r.GROUP_LAST_STRUCTURE_SYNC_STATE,u.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(t=>{this.groups=t,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(t){this.filterValue=t,this.filtering=""!==t}}return t.id="VoGroupsComponent",t.\u0275fac=function(e){return new(e||t)(d.Y36(p.uw),d.Y36(c.ff),d.Y36(h.x4),d.Y36(h.fb))},t.\u0275cmp=d.Xpm({type:t,selectors:[["app-vo-groups"]],viewQuery:function(t,e){if(1&t&&(d.Gf(S,7),d.Gf(k,5),d.Gf(I,5)),2&t){let t;d.iGM(t=d.CRH())&&(e.toggle=t.first),d.iGM(t=d.CRH())&&(e.tree=t.first),d.iGM(t=d.CRH())&&(e.list=t.first)}},hostVars:2,hostBindings:function(t,e){2&t&&d.ekj("router-component",e.true)},decls:22,vars:24,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2 action-button","data-cy","create-group-button",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","warn","data-cy","delete-group-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"],["mat-flat-button","","color","accent","data-cy","create-group-button",1,"mr-2","action-button",3,"click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],["theme","vo-theme",3,"groups","expandAll","vo","selection","disableRouting","filterValue","moveGroup","refreshTable",4,"ngIf"],["theme","vo-theme",3,"tableId","groups","selection","disableMembers","displayedColumns","disableRouting","authType","filter","moveGroup","refreshTable",4,"ngIf"],["theme","vo-theme",3,"groups","expandAll","vo","selection","disableRouting","filterValue","moveGroup","refreshTable"],["tree",""],["theme","vo-theme",3,"tableId","groups","selection","disableMembers","displayedColumns","disableRouting","authType","filter","moveGroup","refreshTable"],["list",""],["alert_type","warn"]],template:function(t,e){if(1&t&&(d.TgZ(0,"div"),d.TgZ(1,"h1",0),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"perun-web-apps-refresh-button",1),d.NdJ("refresh",function(){return e.loadAllGroups()}),d.qZA(),d.YNc(5,x,3,3,"button",2),d.TgZ(6,"span",3),d.ALo(7,"translate"),d.TgZ(8,"button",4),d.NdJ("click",function(){return e.deleteGroup()}),d._uU(9),d.ALo(10,"translate"),d.qZA(),d.qZA(),d.TgZ(11,"perun-web-apps-debounce-filter",5),d.NdJ("filter",function(t){return e.applyFilter(t)}),d.qZA(),d.TgZ(12,"mat-slide-toggle",6,7),d.NdJ("change",function(){return e.removeAllGroups()})("ngModelChange",function(t){return e.showGroupList=t}),d._uU(14),d.ALo(15,"translate"),d.qZA(),d.TgZ(16,"label"),d._uU(17),d.ALo(18,"translate"),d.qZA(),d.YNc(19,R,1,0,"mat-spinner",8),d.YNc(20,M,3,2,"div",9),d.YNc(21,L,3,3,"app-alert",10),d.qZA()),2&t){const t=d.MAs(13);d.xp6(2),d.Oqu(d.lcZ(3,14,"VO_DETAIL.GROUPS.TITLE")),d.xp6(3),d.Q6J("ngIf",e.createAuth),d.xp6(1),d.s9C("matTooltip",d.lcZ(7,16,"VO_DETAIL.GROUPS.DELETE_PERMISSION_HINT")),d.Q6J("matTooltipDisabled",void 0===e.tree&&void 0===e.list||e.disableTooltip()),d.xp6(2),d.Q6J("disabled",0===e.selected.selected.length||e.disableRemove()),d.xp6(1),d.hij(" ",d.lcZ(10,18,"VO_DETAIL.GROUPS.DELETE_GROUP")," "),d.xp6(2),d.Q6J("placeholder","VO_DETAIL.GROUPS.FILTER"),d.xp6(1),d.Q6J("ngModel",e.showGroupList),d.xp6(2),d.Oqu(d.lcZ(15,20,"VO_DETAIL.GROUPS.TREE_VIEW")),d.xp6(2),d.uIk("for",t.inputId),d.xp6(1),d.Oqu(d.lcZ(18,22,"VO_DETAIL.GROUPS.LIST_VIEW")),d.xp6(2),d.Q6J("ngIf",e.loading),d.xp6(1),d.Q6J("ngIf",!e.loading&&0!==e.groups.length),d.xp6(1),d.Q6J("ngIf",0===e.groups.length&&!e.loading)}},directives:[g.t,f.O5,m.gM,b.lW,_.P,w.Rr,A.JJ,A.On,y.$g,v.I,T.W,C.w],pipes:[E.X$],styles:[""]}),t})()},28940:function(t,e,i){"use strict";i.d(e,{y:function(){return D}});var n=i(4230),s=i(68416),o=i(4374),r=i(85613),a=i(65249),c=i(67004),l=i(16073),u=i(60611),h=i(84140),d=i(88690),p=i(31572),g=i(84608),f=i(59403),m=i(36922),b=i(61511),_=i(66283),w=i(4786),A=i(91058),y=i(15980),v=i(71522),T=i(67806),C=i(91779),E=i(48160),S=i(5725);function k(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",14),p.NdJ("click",function(){return p.CHM(t),p.oxw().onAddMember()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",t.blockManualMemberAdding),p.xp6(1),p.hij(" ",p.lcZ(2,2,"VO_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function I(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",15),p.NdJ("click",function(){return p.CHM(t),p.oxw().onInviteMember()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"VO_DETAIL.MEMBERS.INVITE")," "))}function x(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",16),p.NdJ("click",function(){return p.CHM(t),p.oxw().onRemoveMembers()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("disabled",t.selection.isEmpty()),p.xp6(1),p.hij(" ",p.lcZ(2,2,"VO_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function R(t,e){if(1&t&&(p.TgZ(0,"mat-option",17),p._uU(1),p.ALo(2,"memberStatus"),p.qZA()),2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.Oqu(p.lcZ(2,2,t))}}function O(t,e){1&t&&p._UZ(0,"mat-spinner",18)}function P(t,e){if(1&t&&p._UZ(0,"perun-web-apps-members-dynamic-list",19),2&t){const t=p.oxw();p.Q6J("voId",t.vo.id)("tableId",t.tableId)("selection",t.selection)("displayedColumns",t.displayedColumns)("attrNames",t.attrNames)("searchString",t.searchString)("selectedStatuses",t.selectedStatuses)("updateTable",t.updateTable)}}let D=(()=>{class t{constructor(t,e,i,s,o,r,a){this.notificator=t,this.dialog=e,this.authzService=i,this.storeService=s,this.attributesManager=o,this.apiRequest=r,this.entityStorageService=a,this.members=null,this.selection=new n.Ov(!0,[]),this.loading=!1,this.attrNames=[c.r.MEMBER_DEF_ORGANIZATION,c.r.MEMBER_DEF_MAIL,c.r.USER_DEF_ORGANIZATION,c.r.USER_DEF_PREFERRED_MAIL,c.r.MEMBER_DEF_EXPIRATION],this.statuses=new l.NI,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=[],this.tableId=u.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(t){this.searchString=t,this.updateTable=!this.updateTable}onAddMember(){const t=(0,h.kZ)();t.width="1000px",t.data={entityId:this.vo.id,voId:this.vo.id,theme:"vo-theme",type:"vo"},this.dialog.open(r.o,t).afterClosed().subscribe(t=>{t&&(this.updateTable=!this.updateTable,this.selection.clear())})}onRemoveMembers(){const t=(0,h.kZ)();t.width="450px",t.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(o.X,t).afterClosed().subscribe(t=>{t&&(this.updateTable=!this.updateTable,this.selection.clear())})}onInviteMember(){const t=(0,h.kZ)();t.width="650px",t.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(d.R,t)}displaySelectedStatuses(){return this.selectedStatuses.length===this.statusList.length?"ALL":this.statuses.value?`${this.statuses.value[0]} ${this.statuses.value.length>1?"(+"+(this.statuses.value.length-1)+" "+(2===this.statuses.value.length?"other)":"others)"):""}`:""}isManualAddingBlocked(t){return new Promise(e=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName(t,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe(t=>{this.blockManualMemberAdding=null!==t.value,e()},t=>{"PrivilegeException"!==t.error.name&&this.notificator.showError(t),e()})})}changeStatuses(){this.selectedStatuses=this.statuses.value}}return t.id="VoMembersComponent",t.\u0275fac=function(e){return new(e||t)(p.Y36(s.V6),p.Y36(g.uw),p.Y36(s.x4),p.Y36(s.d6),p.Y36(a.H8),p.Y36(s.F5),p.Y36(s.fb))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-vo-members"]],hostVars:2,hostBindings:function(t,e){2&t&&p.ekj("router-component",e.true)},decls:23,vars:21,consts:[[1,"vo-theme"],[1,"page-subtitle"],[1,"align-elements"],[3,"click"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent","class","mr-2 action-button","data-cy","add-members",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2","data-cy","remove-members",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,"voId","tableId","selection","displayedColumns","attrNames","searchString","selectedStatuses","updateTable",4,"ngIf"],["mat-flat-button","","color","accent","data-cy","add-members",1,"mr-2","action-button",3,"disabled","click"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn","data-cy","remove-members",1,"mr-2",3,"disabled","click"],[1,"vo-theme",3,"value"],[1,"ml-auto","mr-auto"],[3,"voId","tableId","selection","displayedColumns","attrNames","searchString","selectedStatuses","updateTable"]],template:function(t,e){1&t&&(p.TgZ(0,"div",0),p.TgZ(1,"h1",1),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"div",2),p.TgZ(5,"perun-web-apps-refresh-button",3),p.NdJ("click",function(){return e.updateTable=!e.updateTable}),p.qZA(),p.TgZ(6,"div",4),p.ALo(7,"translate"),p.YNc(8,k,3,4,"button",5),p.qZA(),p.YNc(9,I,3,3,"button",6),p.YNc(10,x,3,4,"button",7),p.TgZ(11,"mat-form-field",8),p.TgZ(12,"mat-label"),p._uU(13),p.ALo(14,"translate"),p.qZA(),p.TgZ(15,"mat-select",9),p.NdJ("closed",function(){return e.changeStatuses()}),p.TgZ(16,"mat-select-trigger"),p._uU(17),p.ALo(18,"memberStatus"),p.qZA(),p.YNc(19,R,3,4,"mat-option",10),p.qZA(),p.qZA(),p.TgZ(20,"perun-web-apps-debounce-filter",11),p.NdJ("filter",function(t){return e.onSearchByString(t)}),p.qZA(),p.qZA(),p.YNc(21,O,1,0,"mat-spinner",12),p.YNc(22,P,1,8,"perun-web-apps-members-dynamic-list",13),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,13,"VO_DETAIL.MEMBERS.TITLE")),p.xp6(4),p.s9C("matTooltip",p.lcZ(7,15,"VO_DETAIL.MEMBERS.ADD_MEMBER_DISABLED")),p.Q6J("matTooltipDisabled",!e.blockManualMemberAdding),p.xp6(2),p.Q6J("ngIf",e.addAuth),p.xp6(1),p.Q6J("ngIf",e.inviteAuth),p.xp6(1),p.Q6J("ngIf",e.removeAuth),p.xp6(3),p.Oqu(p.lcZ(14,17,"VO_DETAIL.MEMBERS.FILTER_STATUS")),p.xp6(2),p.Q6J("formControl",e.statuses),p.xp6(2),p.hij(" ",p.lcZ(18,19,e.displaySelectedStatuses())," "),p.xp6(2),p.Q6J("ngForOf",e.statusList),p.xp6(1),p.Q6J("placeholder","VO_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[f.t,m.gM,b.O5,_.KE,_.hX,w.gD,l.JJ,l.oH,w.$L,b.sg,A.P,y.lW,v.ey,T.$g,C.m],pipes:[E.X$,S.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}"]}),t})()},88227:function(t,e,i){"use strict";i.d(e,{z:function(){return y}});var n=i(4230),s=i(65249),o=i(95909),r=i(60611),a=i(84140),c=i(68416),l=i(31572),u=i(84608),h=i(59403),d=i(61511),p=i(19139),g=i(15980),f=i(67806),m=i(88884),b=i(48160);function _(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",6),l.NdJ("click",function(){return l.CHM(t),l.oxw().deleteSelectedResources()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}if(2&t){const t=l.oxw();l.Q6J("disabled",0===t.selected.selected.length),l.xp6(1),l.hij(" ",l.lcZ(2,2,"VO_DETAIL.RESOURCES.LIST.DELETE")," ")}}function w(t,e){1&t&&l._UZ(0,"mat-spinner",7)}function A(t,e){if(1&t&&l._UZ(0,"perun-web-apps-resources-list",8),2&t){const t=l.oxw();l.Q6J("tableId",t.tableId)("filterValue",t.filterValue)("resources",t.resources)("routingVo",!0)("disableRouting",!t.routeAuth)("selection",t.selected)("displayedColumns",t.displayedColumns)}}let y=(()=>{class t{constructor(t,e,i,s){this.resourcesManager=t,this.dialog=e,this.authResolver=i,this.entityStorageService=s,this.resources=[],this.selected=new n.Ov(!0,[]),this.filterValue="",this.displayedColumns=[],this.tableId=r.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(t=>{this.resources=t,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(t){this.filterValue=t}deleteSelectedResources(){const t=(0,a.kZ)();t.width="450px",t.data={theme:"vo-theme",resources:this.selected.selected},this.dialog.open(o.f,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}}return t.id="VoResourcesPreviewComponent",t.\u0275fac=function(e){return new(e||t)(l.Y36(s.xk),l.Y36(u.uw),l.Y36(c.x4),l.Y36(c.fb))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-vo-resources-preview"]],hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("router-component",e.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,"tableId","filterValue","resources","routingVo","disableRouting","selection","displayedColumns",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","resources","routingVo","disableRouting","selection","displayedColumns"]],template:function(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"perun-web-apps-refresh-button",1),l.NdJ("refresh",function(){return e.refreshTable()}),l.qZA(),l.YNc(5,_,3,4,"button",2),l.TgZ(6,"perun-web-apps-immediate-filter",3),l.NdJ("filter",function(t){return e.applyFilter(t)}),l.qZA(),l.YNc(7,w,1,0,"mat-spinner",4),l.YNc(8,A,1,7,"perun-web-apps-resources-list",5),l.qZA()),2&t&&(l.xp6(2),l.Oqu(l.lcZ(3,5,"VO_DETAIL.RESOURCES.LIST.TITLE")),l.xp6(3),l.Q6J("ngIf",e.removeAuth),l.xp6(1),l.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[h.t,d.O5,p.L,g.lW,f.$g,m.C],pipes:[b.X$],styles:[""]}),t})()},97397:function(t,e,i){"use strict";i.d(e,{z:function(){return J}});var n=i(68416),s=i(65249),o=i(31572),r=i(59403),a=i(55109),c=i(61511),l=i(67033),u=i(67806),h=i(45001),d=i(27679),p=i(48160);function g(t,e){1&t&&o._UZ(0,"mat-spinner",2)}function f(t,e){if(1&t&&(o.TgZ(0,"mat-panel-description"),o.TgZ(1,"div"),o.TgZ(2,"i",10),o._uU(3," error "),o.qZA(),o._uU(4),o.ALo(5,"translate"),o.ALo(6,"translate"),o.qZA(),o.qZA()),2&t){const t=o.oxw().$implicit,e=o.oxw(2);o.xp6(4),o.HOy(" ",e.getErrorCountStates(t)," ",o.lcZ(5,4,"VO_DETAIL.RESOURCES.STATES.FROM")," ",t.taskList.length," ",o.lcZ(6,6,"VO_DETAIL.RESOURCES.STATES.TASKS_WITH_ERROR_STATE")," ")}}function m(t,e){1&t&&(o.TgZ(0,"th",23),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ID")," "))}function b(t,e){if(1&t&&(o.TgZ(0,"td",24),o._uU(1),o.qZA()),2&t){const t=e.$implicit;o.xp6(1),o.Oqu(t.id)}}function _(t,e){1&t&&(o.TgZ(0,"th",23),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SERVICE")," "))}function w(t,e){if(1&t&&(o.TgZ(0,"td",24),o._uU(1),o.qZA()),2&t){const t=e.$implicit;o.xp6(1),o.Oqu(t.service.name)}}function A(t,e){1&t&&(o.TgZ(0,"th",23),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STATUS")," "))}function y(t,e){if(1&t&&(o.TgZ(0,"td",24),o._uU(1),o.qZA()),2&t){const t=e.$implicit;o.xp6(1),o.Oqu(t.status)}}function v(t,e){1&t&&(o.TgZ(0,"th",23),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SCHEDULED")," "))}function T(t,e){if(1&t&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&t){const t=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,t.schedule,"d.M.y H:mm:ss")," ")}}function C(t,e){1&t&&(o._uU(0),o.ALo(1,"translate")),2&t&&o.hij(" ",o.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function E(t,e){if(1&t&&(o.TgZ(0,"td",24),o.YNc(1,T,3,4,"div",25),o.YNc(2,C,2,3,"ng-template",26,27,o.W1O),o.qZA()),2&t){const t=e.$implicit,i=o.MAs(3);o.xp6(1),o.Q6J("ngIf",t.schedule)("ngIfElse",i)}}function S(t,e){1&t&&(o.TgZ(0,"th",23),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STARTED")," "))}function k(t,e){if(1&t&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&t){const t=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,t.schedule,"d.M.y H:mm:ss")," ")}}function I(t,e){1&t&&(o._uU(0),o.ALo(1,"translate")),2&t&&o.hij(" ",o.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function x(t,e){if(1&t&&(o.TgZ(0,"td",24),o.YNc(1,k,3,4,"div",25),o.YNc(2,I,2,3,"ng-template",26,27,o.W1O),o.qZA()),2&t){const t=e.$implicit,i=o.MAs(3);o.xp6(1),o.Q6J("ngIf",t.startTime)("ngIfElse",i)}}function R(t,e){1&t&&(o.TgZ(0,"th",23),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ENDED")," "))}function O(t,e){if(1&t&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&t){const t=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,t.schedule,"d.M.y H:mm:ss")," ")}}function P(t,e){1&t&&(o._uU(0),o.ALo(1,"translate")),2&t&&o.hij(" ",o.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function D(t,e){if(1&t&&(o.TgZ(0,"td",24),o.YNc(1,O,3,4,"div",25),o.YNc(2,P,2,3,"ng-template",26,27,o.W1O),o.qZA()),2&t){const t=e.$implicit,i=o.MAs(3);o.xp6(1),o.Q6J("ngIf",t.endTime)("ngIfElse",i)}}function M(t,e){1&t&&o._UZ(0,"tr",28)}const L=function(t,e,i){return{redTableItem:t,greenTableItem:e,yellowTableItem:i}};function N(t,e){if(1&t&&o._UZ(0,"tr",29),2&t){const t=e.$implicit;o.Q6J("ngClass",o.kEZ(1,L,"ERROR"===t.status||"SENDERROR"===t.status||"GENERROR"===t.status,"DONE"===t.status,"WARNING"===t.status))}}function z(t,e){if(1&t&&(o.TgZ(0,"table",12),o.ynx(1,13),o.YNc(2,m,3,3,"th",14),o.YNc(3,b,2,1,"td",15),o.BQk(),o.ynx(4,16),o.YNc(5,_,3,3,"th",14),o.YNc(6,w,2,1,"td",15),o.BQk(),o.ynx(7,17),o.YNc(8,A,3,3,"th",14),o.YNc(9,y,2,1,"td",15),o.BQk(),o.ynx(10,18),o.YNc(11,v,3,3,"th",14),o.YNc(12,E,4,2,"td",15),o.BQk(),o.ynx(13,19),o.YNc(14,S,3,3,"th",14),o.YNc(15,x,4,2,"td",15),o.BQk(),o.ynx(16,20),o.YNc(17,R,3,3,"th",14),o.YNc(18,D,4,2,"td",15),o.BQk(),o.YNc(19,M,1,0,"tr",21),o.YNc(20,N,1,5,"tr",22),o.qZA()),2&t){const t=o.oxw(2).$implicit,e=o.oxw(2);o.Q6J("dataSource",e.datasources[e.propagation.indexOf(t)]),o.xp6(19),o.Q6J("matHeaderRowDef",e.displayedColumns),o.xp6(1),o.Q6J("matRowDefColumns",e.displayedColumns)}}function Z(t,e){1&t&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_TASKS")," "))}function B(t,e){if(1&t&&(o._UZ(0,"mat-divider"),o.YNc(1,z,21,3,"table",11),o.YNc(2,Z,3,3,"div",8)),2&t){const t=o.oxw().$implicit;o.xp6(1),o.Q6J("ngIf",0!==t.taskList.length),o.xp6(1),o.Q6J("ngIf",0===t.taskList.length)}}function F(t,e){if(1&t&&(o.TgZ(0,"mat-expansion-panel"),o.TgZ(1,"mat-expansion-panel-header"),o.TgZ(2,"mat-panel-title"),o._UZ(3,"img",6),o.TgZ(4,"div",7),o._uU(5),o.qZA(),o.qZA(),o.YNc(6,f,7,8,"mat-panel-description",8),o.qZA(),o.YNc(7,B,3,2,"ng-template",9),o.qZA()),2&t){const t=e.$implicit,i=o.oxw(2);o.xp6(5),o.hij(" ",t.resource.name," "),o.xp6(1),o.Q6J("ngIf",0!==i.getErrorCountStates(t))}}function U(t,e){if(1&t&&(o.TgZ(0,"div",3),o.TgZ(1,"mat-accordion",4),o.YNc(2,F,8,2,"mat-expansion-panel",5),o.qZA(),o.qZA()),2&t){const t=o.oxw();o.xp6(2),o.Q6J("ngForOf",t.propagation)}}let q=(()=>{class t{constructor(){this.propagation=[],this.loading=!1,this.datasources=[],this.displayedColumns=["id","service","status","scheduled","started","ended"]}getErrorCountStates(t){let e=0;for(const i of t.taskList)"ERROR"!==i.status&&"GENERROR"!==i.status&&"SENDERROR"!==i.status||e++;return e}getDataSource(){this.datasources=[];for(const t of this.propagation)this.datasources.push(new l.by(t.taskList))}ngOnChanges(){this.getDataSource()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-state-tab"]],inputs:{propagation:"propagation",loading:"loading"},features:[o.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"],["src","assets/img/PerunWebImages/resource-black.svg","height","28","width","28"],[1,"ml-2"],[4,"ngIf"],["matExpansionPanelContent",""],[1,"material-icons","red"],["mat-table","","class","w-100",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(t,e){1&t&&(o.YNc(0,g,1,0,"mat-spinner",0),o.YNc(1,U,3,1,"div",1)),2&t&&(o.Q6J("ngIf",e.loading),o.xp6(1),o.Q6J("ngIf",!e.loading))},directives:[c.O5,u.$g,h.pp,c.sg,h.ib,h.yz,h.yK,h.HS,h.u4,d.d,l.BZ,l.w1,l.fO,l.Dz,l.as,l.nj,l.ge,l.ev,l.XQ,l.Gk,c.mk],pipes:[p.X$,c.uU],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-description[_ngcontent-%COMP%], .headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_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}"]}),t})();var H=i(39571);function G(t,e){if(1&t&&(o._uU(0),o.ALo(1,"translate"),o.TgZ(2,"span",5),o._uU(3),o.qZA()),2&t){const t=o.oxw();o.hij(" ",o.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.ERROR_RESOURCES")," "),o.xp6(3),o.Oqu(t.errorPropagation.length)}}function j(t,e){1&t&&(o.TgZ(0,"app-alert",8),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_ERROR")," "))}function Y(t,e){if(1&t&&(o.YNc(0,j,3,3,"app-alert",6),o._UZ(1,"app-state-tab",7)),2&t){const t=o.oxw();o.Q6J("ngIf",!t.loading&&0===t.errorPropagation.length),o.xp6(1),o.Q6J("loading",t.loading)("propagation",t.errorPropagation)}}function K(t,e){if(1&t&&(o._uU(0),o.ALo(1,"translate"),o.TgZ(2,"span",9),o._uU(3),o.qZA()),2&t){const t=o.oxw();o.hij(" ",o.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.OK_RESOURCES")," "),o.xp6(3),o.Oqu(t.okPropagation.length)}}function V(t,e){1&t&&(o.TgZ(0,"app-alert",8),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_OK")," "))}function $(t,e){if(1&t&&(o.YNc(0,V,3,3,"app-alert",6),o._UZ(1,"app-state-tab",7)),2&t){const t=o.oxw();o.Q6J("ngIf",!t.loading&&0===t.okPropagation.length),o.xp6(1),o.Q6J("loading",t.loading)("propagation",t.okPropagation)}}let J=(()=>{class t{constructor(t,e){this.taskService=t,this.entityStorageService=e,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(t=>{this.resourceStates=t,this.okPropagation=[],this.errorPropagation=[];for(const e of t){let t=!0;for(const i of e.taskList)if("ERROR"===i.status||"GENERROR"===i.status||"SENDERROR"===i.status){t=!1;break}t?this.okPropagation.push(e):this.errorPropagation.push(e)}this.loading=!1},()=>this.loading=!1)}}return t.id="VoResourcesStatesComponent",t.\u0275fac=function(e){return new(e||t)(o.Y36(s.Ob),o.Y36(n.fb))},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-vo-resources-states"]],hostVars:2,hostBindings:function(t,e){2&t&&o.ekj("router-component",e.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(t,e){1&t&&(o.TgZ(0,"h1",0),o._uU(1),o.ALo(2,"translate"),o.qZA(),o.TgZ(3,"perun-web-apps-refresh-button",1),o.NdJ("refresh",function(){return e.refreshTable()}),o.qZA(),o.TgZ(4,"mat-tab-group",2),o.NdJ("selectedIndexChange",function(t){return e.selectedIndex=t}),o.TgZ(5,"mat-tab"),o.YNc(6,G,4,4,"ng-template",3),o.YNc(7,Y,2,3,"ng-template",4),o.qZA(),o.TgZ(8,"mat-tab"),o.YNc(9,K,4,4,"ng-template",3),o.YNc(10,$,2,3,"ng-template",4),o.qZA(),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,2,"VO_DETAIL.RESOURCES.STATES.TITLE")),o.xp6(3),o.Q6J("selectedIndex",e.selectedIndex))},directives:[r.t,a.SP,a.uX,a.uD,a.Vc,c.O5,q,H.w],pipes:[p.X$],styles:[""]}),t})()},14527:function(t,e,i){"use strict";i.d(e,{w:function(){return R}});var n=i(24555),s=i(68416),o=i(68570),r=i(92438),a=i(75954),c=i(65249),l=i(84140),u=i(31572),h=i(84608),d=i(48160),p=i(57629),g=i(61511),f=i(27679),m=i(59403),b=i(15980),_=i(92846),w=i(67806),A=i(43691),y=i(36922),v=i(39571);function T(t,e){1&t&&u._UZ(0,"mat-spinner",13)}function C(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"button",21),u.NdJ("click",function(){return u.CHM(t),u.oxw(2).settings()}),u.TgZ(1,"i",10),u._uU(2,"edit"),u.qZA(),u._uU(3),u.ALo(4,"translate"),u.qZA()}2&t&&(u.xp6(3),u.hij(" ",u.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function E(t,e){if(1&t&&(u.TgZ(0,"div",14),u.TgZ(1,"div",15),u.TgZ(2,"div",16),u._uU(3),u.ALo(4,"translate"),u.qZA(),u.TgZ(5,"div"),u.TgZ(6,"span",16),u._uU(7),u.ALo(8,"translate"),u.qZA(),u._uU(9,": "),u.TgZ(10,"mat-icon",17),u._uU(11,"arrow_right_alt"),u.qZA(),u._uU(12),u.ALo(13,"translate"),u.ALo(14,"translate"),u.TgZ(15,"mat-icon",18),u._uU(16,"restore"),u.qZA(),u._uU(17),u.ALo(18,"translate"),u.ALo(19,"translate"),u.qZA(),u.qZA(),u.TgZ(20,"div",19),u.YNc(21,C,5,3,"button",20),u.qZA(),u.qZA()),2&t){const t=u.oxw();u.xp6(3),u.AsE(" ",u.lcZ(4,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",t.applicationForm.moduleClassName," "),u.xp6(4),u.Oqu(u.lcZ(8,8,"VO_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),u.xp6(5),u.hij(" ",t.applicationForm.automaticApproval?u.lcZ(13,10,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):u.lcZ(14,12,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL"),", "),u.xp6(5),u.hij(" ",t.applicationForm.automaticApprovalExtension?u.lcZ(18,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):u.lcZ(19,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),u.xp6(4),u.Q6J("ngIf",t.editAuth)}}function S(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"button",22),u.NdJ("click",function(){return u.CHM(t),u.oxw().add()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function k(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"button",23),u.NdJ("click",function(){return u.CHM(t),u.oxw().save()}),u.TgZ(1,"i",10),u._uU(2,"save"),u.qZA(),u._uU(3),u.ALo(4,"translate"),u.qZA()}if(2&t){const t=u.oxw();u.Q6J("disabled",!t.itemsChanged),u.xp6(3),u.hij(" ",u.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function I(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"button",24),u.NdJ("click",function(){return u.CHM(t),u.oxw().copy()}),u.TgZ(1,"i",10),u._uU(2,"file_copy"),u.qZA(),u._uU(3),u.ALo(4,"translate"),u.qZA()}2&t&&(u.xp6(3),u.hij(" ",u.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.COPY_VO_BUTTON")," "))}function x(t,e){1&t&&(u.TgZ(0,"app-alert",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}let R=(()=>{class t{constructor(t,e,i,n,s,o,r,a){this.registrarManager=t,this.dialog=e,this.notificator=i,this.translate=n,this.router=s,this.authResolver=o,this.voService=r,this.entityStorageService=a,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(t=>{this.applicationForm=t,this.registrarManager.getFormItemsForVo(this.vo.id).subscribe(t=>{this.applicationFormItems=t,this.loading=!1})})}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"]}add(){let t=(0,l.kZ)();t.width="500px",t.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(r.J,t).afterClosed().subscribe(e=>{e&&(this.applicationFormItems=Object.assign([],e[0]),t=(0,l.kZ)(),t.width="600px",t.height="600px",t.data={voId:this.vo.id,applicationFormItem:e[1],theme:"vo-theme",allItems:this.applicationFormItems},this.dialog.open(a._,t),this.itemsChanged=!0)})}copy(){const t=(0,l.kZ)();t.width="500px",t.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(o.W,t).afterClosed().subscribe(t=>{t&&this.updateFormItems()})}settings(){const t=(0,l.kZ)();t.width="400px",t.data={entity:"vo",applicationForm:this.applicationForm,theme:"vo-theme"},this.dialog.open(n.E,t).afterClosed().subscribe(t=>{t&&(this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t)}),this.applicationForm=t)})}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(t=>{this.applicationFormItems=t,this.itemsChanged=!1,this.setAuthRights(),this.refreshApplicationForm=!1,this.loading=!1})}changeItems(){this.itemsChanged=!0}save(){let t=0;for(const e of this.applicationFormItems)e.ordnum=t,e.forDelete||t++;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(t=>{this.notificator.showSuccess(t)}),this.updateFormItems()})}clear(){this.applicationFormItems.forEach(t=>t.forDelete=!0),this.itemsChanged=!0}}return t.id="VoSettingsApplicationFormComponent",t.\u0275fac=function(e){return new(e||t)(u.Y36(c.tk),u.Y36(h.uw),u.Y36(s.V6),u.Y36(d.sK),u.Y36(p.F0),u.Y36(s.x4),u.Y36(c.YF),u.Y36(s.fb))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-vo-settings-application-form"]],hostVars:2,hostBindings:function(t,e){2&t&&u.ekj("router-component",e.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"],["mat-flat-button","","color","accent","class","mr-2 action-button","data-cy","add-form-item",3,"click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2","data-cy","save-application-form",3,"disabled","click",4,"ngIf"],["mat-stroked-button","","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],["alert_type","info",4,"ngIf"],[3,"loading","applicationForm","applicationFormItems","theme","displayedColumns","refreshApplicationForm","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"],["mat-stroked-button","","class","ml-auto action-button",3,"click",4,"ngIf"],["mat-stroked-button","",1,"ml-auto","action-button",3,"click"],["mat-flat-button","","color","accent","data-cy","add-form-item",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","accent","data-cy","save-application-form",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],["alert_type","info"]],template:function(t,e){1&t&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.YNc(3,T,1,0,"mat-spinner",1),u.TgZ(4,"div"),u.YNc(5,E,22,18,"div",2),u._UZ(6,"mat-divider",3),u.TgZ(7,"div",4),u.TgZ(8,"perun-web-apps-refresh-button",5),u.NdJ("refresh",function(){return e.updateFormItems()}),u.qZA(),u.YNc(9,S,3,3,"button",6),u.YNc(10,k,5,4,"button",7),u.YNc(11,I,5,3,"button",8),u.TgZ(12,"button",9),u.NdJ("click",function(){return e.preview()}),u.TgZ(13,"i",10),u._uU(14,"search"),u.qZA(),u._uU(15),u.ALo(16,"translate"),u.qZA(),u.qZA(),u.YNc(17,x,3,3,"app-alert",11),u.TgZ(18,"app-application-form-list",12),u.NdJ("applicationFormItemsChange",function(){return e.changeItems()}),u.qZA(),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),u.xp6(2),u.Q6J("ngIf",e.loading),u.xp6(2),u.Q6J("ngIf",!e.loading),u.xp6(4),u.Q6J("ngIf",e.editAuth),u.xp6(1),u.Q6J("ngIf",e.editAuth),u.xp6(1),u.Q6J("ngIf",e.editAuth),u.xp6(4),u.hij(" ",u.lcZ(16,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),u.xp6(2),u.Q6J("ngIf",e.editAuth),u.xp6(1),u.Q6J("loading",e.loading)("applicationForm",e.applicationForm)("applicationFormItems",e.applicationFormItems)("theme","vo-theme")("displayedColumns",e.displayedColumns)("refreshApplicationForm",e.refreshApplicationForm))},directives:[g.O5,f.d,m.t,b.lW,_.b,w.$g,A.Hw,y.gM,v.w],pipes:[d.X$],styles:[""]}),t})()},48666:function(t,e,i){"use strict";i.d(e,{T:function(){return we}});var n=i(65249),s=i(4230),o=i(60611),r=i(84140),a=i(84608),c=i(68416),l=i(16073),u=i(61511),h=i(14732),d=i(18820),p=i(31572),g=i(48160),f=i(67806),m=i(70663),b=i(66283),_=i(80340),w=i(4786),A=i(36922),y=i(29236),v=i(90888),T=i(54810),C=i(15812);let E=(()=>{class t{constructor(){this.expiration="never",this.expirationControl=new l.NI(null),this.datePicker=new p.vpe}ngOnInit(){const t=new Date;this.minDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()),this.expirationControl.setValue((0,u.p6)(this.minDate,"yyyy-MM-dd","en-GB"))}setExpiration(){this.expiration=(0,u.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB"),this.expirationControl.setValue((0,u.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB")),this.emitDate()}emitDate(){"never"!==this.expiration&&""===this.expirationControl.value||this.datePicker.emit(this.expiration)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=p.Xpm({type:t,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(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-radio-group",0),p.NdJ("ngModelChange",function(t){return e.expiration=t})("change",function(){return e.emitDate()}),p.TgZ(1,"mat-radio-button",1),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"mat-radio-button",2),p.TgZ(5,"mat-form-field",3),p.NdJ("click",function(){return p.CHM(t),p.MAs(12).open()}),p.TgZ(6,"mat-label"),p._uU(7),p.ALo(8,"translate"),p.qZA(),p.TgZ(9,"input",4),p.NdJ("dateChange",function(){return e.setExpiration()}),p.qZA(),p._UZ(10,"mat-datepicker-toggle",5),p._UZ(11,"mat-datepicker",6,7),p.qZA(),p.qZA(),p.qZA()}if(2&t){const t=p.MAs(12);p.Q6J("ngModel",e.expiration),p.xp6(2),p.hij(" ",p.lcZ(3,10,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),p.xp6(2),p.s9C("value",e.expirationControl.value),p.xp6(3),p.Oqu(p.lcZ(8,12,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),p.xp6(2),p.Q6J("min",e.minDate)("formControl",e.expirationControl)("matDatepicker",t),p.xp6(1),p.Q6J("for",t)("disabled",!1),p.xp6(1),p.Q6J("disabled",!1)}},directives:[T.VQ,l.JJ,l.On,T.U0,b.KE,b.hX,_.Nt,l.Fj,C.hl,l.oH,C.nW,b.R9,C.Mq],pipes:[g.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();var S=i(39571),k=i(71522),I=i(7927),x=i(43691),R=i(15980),O=i(22196);const P=["stepper"];function D(t,e){1&t&&(p.TgZ(0,"h1",4),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE")," "))}function M(t,e){1&t&&p._UZ(0,"mat-spinner",5)}function L(t,e){1&t&&(p._uU(0),p.ALo(1,"translate")),2&t&&p.Oqu(p.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_LABEL"))}function N(t,e){1&t&&(p.TgZ(0,"app-alert",34),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function z(t,e){1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function Z(t,e){1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function B(t,e){1&t&&(p._uU(0),p.ALo(1,"translate")),2&t&&p.Oqu(p.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_LABEL"))}function F(t,e){if(1&t&&(p.TgZ(0,"mat-option",35),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.hij(" ",t," ")}}function U(t,e){1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_ERROR")," "))}function q(t,e){1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function H(t,e){1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL_ERROR")," "))}function G(t,e){1&t&&(p._uU(0),p.ALo(1,"translate")),2&t&&p.Oqu(p.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_LABEL"))}function j(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div"),p.TgZ(1,"perun-web-apps-user-search-select",36),p.NdJ("userSelected",function(e){return p.CHM(t),p.oxw(2).selectedSponsor=e}),p.qZA(),p.qZA()}if(2&t){const t=p.oxw(2);p.xp6(1),p.Q6J("users",t.voSponsors)("disableAutoSelect",!0)}}function Y(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div",6),p.TgZ(1,"mat-stepper",7,8),p.TgZ(3,"mat-step",9),p.YNc(4,L,2,3,"ng-template",10),p.YNc(5,N,3,3,"app-alert",11),p.TgZ(6,"form",12),p.TgZ(7,"h5",13),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"mat-form-field",14),p._UZ(11,"input",15),p.ALo(12,"translate"),p.YNc(13,z,3,3,"mat-error",16),p.qZA(),p.TgZ(14,"mat-form-field"),p._UZ(15,"input",17),p.ALo(16,"translate"),p.YNc(17,Z,3,3,"mat-error",16),p.qZA(),p.TgZ(18,"mat-form-field"),p._UZ(19,"input",18),p.ALo(20,"translate"),p.qZA(),p.TgZ(21,"mat-form-field"),p._UZ(22,"input",19),p.ALo(23,"translate"),p.qZA(),p.qZA(),p.qZA(),p.TgZ(24,"mat-step",9),p.YNc(25,B,2,3,"ng-template",10),p.TgZ(26,"h5",13),p._uU(27),p.ALo(28,"translate"),p.qZA(),p.TgZ(29,"form",20),p.TgZ(30,"mat-form-field"),p.TgZ(31,"mat-select",21),p.NdJ("valueChange",function(e){return p.CHM(t),p.oxw().onNamespaceChanged(e)}),p.ALo(32,"translate"),p.YNc(33,F,2,2,"mat-option",22),p.qZA(),p.YNc(34,U,3,3,"mat-error",16),p.qZA(),p.TgZ(35,"mat-form-field",23),p.ALo(36,"translate"),p._UZ(37,"input",24),p.ALo(38,"translate"),p.YNc(39,q,3,3,"mat-error",16),p.qZA(),p.TgZ(40,"mat-form-field"),p._UZ(41,"input",25),p.ALo(42,"translate"),p.YNc(43,H,3,3,"mat-error",16),p.qZA(),p.TgZ(44,"span",23),p.ALo(45,"translate"),p.TgZ(46,"mat-checkbox",26),p.NdJ("change",function(){return p.CHM(t),p.oxw().passwordResetChange()}),p._uU(47),p.ALo(48,"translate"),p.qZA(),p.qZA(),p._UZ(49,"perun-web-apps-password-form",27),p.qZA(),p.qZA(),p.TgZ(50,"mat-step"),p.YNc(51,G,2,3,"ng-template",10),p.TgZ(52,"div",28),p.TgZ(53,"h5",13),p._uU(54),p.ALo(55,"translate"),p.qZA(),p.TgZ(56,"div",14),p.TgZ(57,"h6"),p._uU(58),p.ALo(59,"translate"),p.qZA(),p.TgZ(60,"mat-radio-group",29),p.NdJ("ngModelChange",function(e){return p.CHM(t),p.oxw().sponsorType=e}),p.TgZ(61,"span",30),p.ALo(62,"translate"),p.TgZ(63,"mat-radio-button",31),p.NdJ("click",function(){return p.CHM(t),p.oxw().selectedSponsor=null}),p._uU(64),p.ALo(65,"translate"),p.qZA(),p.qZA(),p.TgZ(66,"span",30),p.ALo(67,"translate"),p.TgZ(68,"mat-radio-button",32),p._uU(69),p.ALo(70,"translate"),p.qZA(),p.qZA(),p.qZA(),p.YNc(71,j,2,2,"div",16),p.qZA(),p.TgZ(72,"h6",14),p._uU(73),p.ALo(74,"translate"),p.qZA(),p.TgZ(75,"perun-web-apps-expiration-select",33),p.NdJ("datePicker",function(e){return p.CHM(t),p.oxw().setExpiration(e)}),p.qZA(),p.qZA(),p.qZA(),p.qZA(),p.qZA()}if(2&t){const t=p.oxw();p.xp6(1),p.Q6J("linear",!0),p.xp6(2),p.Q6J("stepControl",t.userControl),p.xp6(2),p.Q6J("ngIf",t.functionalityNotSupported),p.xp6(1),p.Q6J("formGroup",t.userControl),p.xp6(2),p.hij(" ",p.lcZ(9,42,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_TITLE")," "),p.xp6(3),p.s9C("placeholder",p.lcZ(12,44,"DIALOGS.CREATE_SPONSORED_MEMBER.FIRST_NAME")),p.xp6(2),p.Q6J("ngIf",t.userControl.hasError("required","firstName")),p.xp6(2),p.s9C("placeholder",p.lcZ(16,46,"DIALOGS.CREATE_SPONSORED_MEMBER.LAST_NAME")),p.xp6(2),p.Q6J("ngIf",t.userControl.hasError("required","lastName")),p.xp6(2),p.s9C("placeholder",p.lcZ(20,48,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_BEFORE")),p.xp6(3),p.s9C("placeholder",p.lcZ(23,50,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_AFTER")),p.xp6(2),p.Q6J("stepControl",t.namespaceControl),p.xp6(3),p.Oqu(p.lcZ(28,52,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_TITLE")),p.xp6(2),p.Q6J("formGroup",t.namespaceControl),p.xp6(2),p.s9C("placeholder",p.lcZ(32,54,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE")),p.xp6(2),p.Q6J("ngForOf",t.namespaceOptions),p.xp6(1),p.Q6J("ngIf",t.namespaceControl.hasError("required","namespace")),p.xp6(1),p.s9C("matTooltip",p.lcZ(36,56,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN_DISABLED")),p.Q6J("matTooltipDisabled",t.namespaceControl.get("login").enabled),p.xp6(2),p.s9C("placeholder",p.lcZ(38,58,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN")),p.xp6(2),p.Q6J("ngIf",t.namespaceControl.hasError("required","login")),p.xp6(2),p.s9C("placeholder",p.lcZ(42,60,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL")),p.xp6(2),p.Q6J("ngIf",t.namespaceControl.hasError("required","email")||t.namespaceControl.hasError("pattern","email")),p.xp6(1),p.s9C("matTooltip",p.lcZ(45,62,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET_DISABLED")),p.Q6J("matTooltipDisabled",t.namespaceControl.get("passwordReset").enabled),p.xp6(3),p.hij("",p.lcZ(48,64,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET")," "),p.xp6(2),p.Q6J("formGroup",t.namespaceControl)("tooltipPwdViaEmail",t.namespaceControl.get("passwordReset").value)("namespace",t.selectedNamespace),p.xp6(5),p.Oqu(p.lcZ(55,66,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_TITLE")),p.xp6(4),p.Oqu(p.lcZ(59,68,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SPONSOR")),p.xp6(2),p.Q6J("ngModel",t.sponsorType),p.xp6(1),p.s9C("matTooltip",p.lcZ(62,70,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF_DISABLED")),p.Q6J("matTooltipDisabled",t.isSponsor),p.xp6(2),p.Q6J("disabled",!t.isSponsor),p.xp6(1),p.hij(" ",p.lcZ(65,72,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF")," "),p.xp6(2),p.s9C("matTooltip",p.lcZ(67,74,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER_DISABLED")),p.Q6J("matTooltipDisabled",t.isPerunAdmin),p.xp6(2),p.Q6J("disabled",!t.isPerunAdmin),p.xp6(1),p.hij(" ",p.lcZ(70,76,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER")," "),p.xp6(2),p.Q6J("ngIf","other"===t.sponsorType),p.xp6(2),p.Oqu(p.lcZ(74,78,"DIALOGS.CREATE_SPONSORED_MEMBER.EXPIRATION"))}}function K(t,e){if(1&t&&(p.TgZ(0,"div",6),p.TgZ(1,"div",37),p.TgZ(2,"mat-icon",38),p._uU(3,"done"),p.qZA(),p._uU(4),p.ALo(5,"translate"),p.TgZ(6,"i"),p._uU(7),p.ALo(8,"userFullName"),p.qZA(),p._uU(9),p.ALo(10,"translate"),p.qZA(),p.TgZ(11,"div"),p._uU(12),p.ALo(13,"translate"),p.qZA(),p.TgZ(14,"div"),p._uU(15),p.ALo(16,"translate"),p.qZA(),p.TgZ(17,"app-alert",39),p._uU(18),p.ALo(19,"translate"),p.qZA(),p.qZA()),2&t){const t=p.oxw();p.xp6(4),p.hij(" ",p.lcZ(5,8,"DIALOGS.CREATE_SPONSORED_MEMBER.USER")," "),p.xp6(3),p.Oqu(p.lcZ(8,10,t.createdMember.user)),p.xp6(2),p.hij(" ",p.lcZ(10,12,"DIALOGS.CREATE_SPONSORED_MEMBER.WAS_CREATED")," "),p.xp6(3),p.AsE("",p.lcZ(13,14,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN"),": ",t.loginThatWasSet,""),p.xp6(3),p.AsE(" ",p.lcZ(16,16,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD")," : ",t.namespaceControl.get("passwordCtrl").value," "),p.xp6(3),p.Oqu(p.lcZ(19,18,"DIALOGS.CREATE_SPONSORED_MEMBER.COPY_INFORMATION"))}}function V(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div",40),p.TgZ(1,"button",41),p.NdJ("click",function(){return p.CHM(t),p.oxw().onCancel()}),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.qZA()}2&t&&(p.xp6(2),p.hij(" ",p.lcZ(3,1,"DIALOGS.CREATE_SPONSORED_MEMBER.OK")," "))}function $(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",41),p.NdJ("click",function(){return p.CHM(t),p.oxw(2).stepperPrevious()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.BACK")," "))}function J(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",46),p.NdJ("click",function(){return p.CHM(t),p.oxw(2).stepperNext()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw(2);p.ekj("ml-2",void 0!==t.stepper&&0!==t.stepper.selectedIndex)("ml-auto",!(void 0!==t.stepper&&0!==t.stepper.selectedIndex)),p.Q6J("disabled",t.getStepperNextConditions()),p.xp6(1),p.hij(" ",p.lcZ(2,6,"DIALOGS.CREATE_SPONSORED_MEMBER.NEXT")," ")}}function Q(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",47),p.NdJ("click",function(){return p.CHM(t),p.oxw(2).onConfirm()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw(2);p.Q6J("disabled",null===t.sponsorType||"other"===t.sponsorType&&null===t.selectedSponsor),p.xp6(1),p.hij(" ",p.lcZ(2,2,"DIALOGS.CREATE_SPONSORED_MEMBER.SUBMIT")," ")}}function W(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div",40),p.TgZ(1,"button",42),p.NdJ("click",function(){return p.CHM(t),p.oxw().onCancel()}),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.YNc(4,$,3,3,"button",43),p.YNc(5,J,3,8,"button",44),p.YNc(6,Q,3,4,"button",45),p.qZA()}if(2&t){const t=p.oxw();p.xp6(2),p.hij(" ",p.lcZ(3,4,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),p.xp6(2),p.Q6J("ngIf",void 0!==t.stepper&&0!==t.stepper.selectedIndex),p.xp6(1),p.Q6J("ngIf",void 0!==t.stepper&&t.stepper.selectedIndex!==t.stepper._steps.length-1),p.xp6(1),p.Q6J("ngIf",void 0!==t.stepper&&t.stepper.selectedIndex===t.stepper._steps.length-1)}}let X=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,l,u){this.dialogRef=t,this.data=e,this.membersService=i,this.apiRequestConfiguration=n,this.usersService=s,this.store=o,this.translator=r,this.authzService=a,this.guiAuthResolver=c,this.formBuilder=l,this.cd=u,this.loading=!1,this.functionalityNotSupported=!1,this.loginThatWasSet="",this.successfullyCreated=!1,this.namespaceOptions=[],this.namespaceRules=[],this.selectedNamespace=null,this.parsedRules=new Map,this.userControl=null,this.namespaceControl=null,this.voSponsors=[],this.selectedSponsor=null,this.sponsorType="self",this.isSponsor=!1,this.isPerunAdmin=!1,this.expiration="never"}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voSponsors=this.data.sponsors,this.isSponsor=this.guiAuthResolver.principalHasRole(h.u.SPONSOR,"Vo",this.data.voId),this.isPerunAdmin=this.guiAuthResolver.isPerunAdmin(),this.sponsorType=this.isSponsor?"self":"other",this.userControl=this.formBuilder.group({firstName:["",l.kI.required],lastName:["",l.kI.required],titleBefore:[""],titleAfter:[""]}),this.namespaceControl=this.formBuilder.group({namespace:["",l.kI.required],login:["",[l.kI.required]],passwordCtrl:["",l.kI.required,[(0,d.yT)(null,this.usersService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],passwordReset:[!1,[]],email:["",[l.kI.required,l.kI.pattern(r.B2)]]},{validators:r.dN.passwordMatchValidator}),this.membersService.getAllNamespacesRules().subscribe(t=>{this.store.get("allow_empty_sponsor_namespace")&&this.namespaceRules.push({namespaceName:"No namespace",requiredAttributes:[],optionalAttributes:[]}),this.namespaceRules=this.namespaceRules.concat(t),this.parseNamespaceRules(),0===this.namespaceOptions.length&&(this.functionalityNotSupported=!0),this.loading=!1,this.cd.detectChanges()})}parseNamespaceRules(){for(const t of this.namespaceRules){this.namespaceOptions.push(t.namespaceName);const e={login:"disabled",password:"disabled"};this.parseAttributes(e,t.requiredAttributes,"required"),this.parseAttributes(e,t.optionalAttributes,"optional"),this.parsedRules.set(t.namespaceName,e)}}parseAttributes(t,e,i){for(const n of e)switch(n){case"login":t.login=i;break;case"password":t.password=i}}onConfirm(){this.loading=!0;const t={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},e=this.namespaceControl.get("namespace").value,i=this.parsedRules.get(e);"No namespace"!==e&&(t.userData.namespace=e),"disabled"!==i.login&&(t.userData.login=this.namespaceControl.get("login").value),"disabled"!==i.password&&(t.sendActivationLink=this.namespaceControl.get("passwordReset").value,t.userData.password=this.namespaceControl.get("passwordCtrl").value),"never"!==this.expiration&&(t.validityTo=this.expiration),this.membersService.createSponsoredMember(t).subscribe(t=>{this.successfullyCreated=!0,this.dialogRef.updateSize("600px"),this.createdMember=t,t&&t.userAttributes&&t.userAttributes.filter(t=>"login-namespace"===t.baseFriendlyName).filter(t=>t.friendlyNameParameter===e).filter(t=>null!==t.value).forEach(t=>{this.loginThatWasSet=t.value.toString()}),this.loading=!1},()=>{this.loading=!1})}onCancel(){this.successfullyCreated?this.dialogRef.close(!0):this.dialogRef.close()}onNamespaceChanged(t){this.selectedNamespace=t;const e=this.parsedRules.get(t),i=this.namespaceControl.get("login"),n=this.namespaceControl.get("passwordCtrl"),s=this.namespaceControl.get("passwordAgainCtrl"),o=this.namespaceControl.get("passwordReset");"disabled"!==e.login?(0,r.mH)(i,"optional"===e.login?[]:[l.kI.required]):(i.disable(),i.setValue("")),"disabled"!==e.password?((0,r.mH)(n,"optional"===e.password?[]:[l.kI.required],[(0,d.yT)(t,this.usersService,this.apiRequestConfiguration)]),(0,r.mH)(s,[]),(0,r.mH)(o,[]),this.namespaceControl.get("passwordReset").setValue(!1)):(n.disable(),n.setValue(""),s.disable(),s.setValue(""),o.disable(),o.setValue(!1))}passwordResetChange(){const t=this.namespaceControl.get("passwordCtrl"),e=this.namespaceControl.get("passwordAgainCtrl");this.namespaceControl.get("passwordReset").value?(t.disable(),t.setValue(""),e.disable(),e.setValue("")):(t.enable(),e.enable())}setExpiration(t){this.expiration="never"===t?"never":(0,u.p6)(t,"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()}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(a.so),p.Y36(a.WI),p.Y36(n.uq),p.Y36(c.F5),p.Y36(n.Fv),p.Y36(c.d6),p.Y36(g.sK),p.Y36(n.Ct),p.Y36(c.x4),p.Y36(l.qu),p.Y36(p.sBO))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-create-sponsored-member-dialog"]],viewQuery:function(t,e){if(1&t&&p.Gf(P,5),2&t){let t;p.iGM(t=p.CRH())&&(e.stepper=t.first)}},decls:7,vars:9,consts:[["mat-dialog-title","",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",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"],["required","","formControlName","namespace",3,"placeholder","valueChange"],[3,"value",4,"ngFor","ngForOf"],["matTooltipPosition","left",3,"matTooltip","matTooltipDisabled"],["matInput","","required","","formControlName","login",3,"placeholder"],["matInput","","required","","formControlName","email",3,"placeholder"],["labelPosition","before","formControlName","passwordReset",3,"change"],[3,"formGroup","tooltipPwdViaEmail","namespace"],[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,"users","disableAutoSelect","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(t,e){1&t&&(p.TgZ(0,"div"),p.YNc(1,D,3,3,"h1",0),p.YNc(2,M,1,0,"mat-spinner",1),p.YNc(3,Y,76,80,"div",2),p.YNc(4,K,20,20,"div",2),p.YNc(5,V,4,3,"div",3),p.YNc(6,W,7,6,"div",3),p.qZA()),2&t&&(p.Tol(e.theme),p.xp6(1),p.Q6J("ngIf",!e.successfullyCreated),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading&&!e.successfullyCreated),p.xp6(1),p.Q6J("ngIf",!e.loading&&e.successfullyCreated),p.xp6(1),p.Q6J("ngIf",e.successfullyCreated),p.xp6(1),p.Q6J("ngIf",!e.loading&&!e.successfullyCreated))},directives:[u.O5,a.uh,f.$g,a.xY,m.Vq,m.C0,m.VY,l._Y,l.JL,l.sg,b.KE,_.Nt,l.Fj,l.JJ,l.u,l.Q7,w.gD,u.sg,A.gM,y.oG,v.G,T.VQ,l.On,T.U0,E,S.w,b.TO,k.ey,I.S,x.Hw,a.H8,R.lW],pipes:[g.X$,O.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}"]}),t})();var tt=i(67004),et=i(43005),it=i(19139),nt=i(78364),st=i(8055);const ot=["stepper"];function rt(t,e){1&t&&p._UZ(0,"mat-spinner",4)}function at(t,e){1&t&&(p._uU(0),p.ALo(1,"translate")),2&t&&p.Oqu(p.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_LABEL"))}function ct(t,e){1&t&&(p.TgZ(0,"app-alert",29),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function lt(t,e){if(1&t&&(p.TgZ(0,"mat-option",30),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.Q6J("value",t),p.xp6(1),p.hij(" ",t," ")}}function ut(t,e){1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE_ERROR")," "))}function ht(t,e){1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMES_ERROR")," "))}function dt(t,e){if(1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t){const t=p.oxw(3);p.xp6(1),p.AsE(" ",p.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_FORMAT"),": ",t.usersInfoFormGroup.get("sponsoredMembers").getError("invalidFormat").value," ")}}function pt(t,e){if(1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t){const t=p.oxw(3);p.xp6(1),p.AsE(" ",p.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_EMAIL"),": ",t.usersInfoFormGroup.get("sponsoredMembers").getError("invalidEmail").value," ")}}function gt(t,e){if(1&t&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t){const t=p.oxw(3);p.xp6(1),p.AsE(" ",p.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_LOGIN"),": ",t.usersInfoFormGroup.get("sponsoredMembers").getError("invalidLogin").value," ")}}function ft(t,e){1&t&&(p._uU(0),p.ALo(1,"translate")),2&t&&p.Oqu(p.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_LABEL"))}function mt(t,e){1&t&&(p.TgZ(0,"app-alert",31),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_NAMESPACE_PASSWORD_INFO")," "))}function bt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-radio-group",32),p.NdJ("ngModelChange",function(e){return p.CHM(t),p.oxw(3).passwordReset=e}),p.TgZ(1,"mat-radio-button",33),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"mat-radio-button",34),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.qZA()}if(2&t){const t=p.oxw(3);p.Q6J("ngModel",t.passwordReset),p.xp6(2),p.hij(" ",p.lcZ(3,3,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GENERATE_PASSWORD")," "),p.xp6(3),p.hij(" ",p.lcZ(6,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_RESET")," ")}}function _t(t,e){1&t&&(p._uU(0),p.ALo(1,"translate")),2&t&&p.Oqu(p.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION_LABEL"))}function wt(t,e){1&t&&(p._uU(0),p.ALo(1,"translate")),2&t&&p.Oqu(p.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUPS_LABEL"))}function At(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"app-alert",35),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DONT_ASSIGN_INFO")))}function yt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div"),p.TgZ(1,"h5",36),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"perun-web-apps-create-group-form",37),p.NdJ("nameChanged",function(e){return p.CHM(t),p.oxw(3).name=e})("descriptionChanged",function(e){return p.CHM(t),p.oxw(3).description=e})("parentGroupChanged",function(e){return p.CHM(t),p.oxw(3).parentGroup=e})("asSubgroupChanged",function(e){return p.CHM(t),p.oxw(3).asSubGroup=e}),p.qZA(),p.qZA()}if(2&t){const t=p.oxw(3);p.xp6(2),p.hij(" ",p.lcZ(3,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CREATE_NEW_GROUP")," "),p.xp6(2),p.Q6J("voGroups",t.allVoGroups)}}const vt=function(){return["select","id","name","description"]};function Tt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div"),p.TgZ(1,"h5",36),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"perun-web-apps-immediate-filter",38),p.NdJ("filter",function(e){return p.CHM(t),p.oxw(3).applyFilter(e)}),p.qZA(),p._UZ(5,"perun-web-apps-groups-list",39),p.qZA()}if(2&t){const t=p.oxw(3);p.xp6(2),p.hij(" ",p.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SELECT_EXISTING_GROUPS")," "),p.xp6(2),p.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),p.xp6(1),p.Q6J("groups",t.assignableGroups)("selection",t.selection)("displayedColumns",p.DdM(10,vt))("disableRouting",!0)("tableId",t.tableId)("filter",t.filterValue)}}function Ct(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"mat-stepper",8,9),p.TgZ(2,"mat-step",10),p.YNc(3,at,2,3,"ng-template",11),p.YNc(4,ct,3,3,"app-alert",12),p.TgZ(5,"h5",13),p._uU(6),p.ALo(7,"translate"),p.qZA(),p.TgZ(8,"form",14),p.TgZ(9,"mat-form-field"),p.TgZ(10,"mat-select",15),p.ALo(11,"translate"),p.YNc(12,lt,2,2,"mat-option",16),p.qZA(),p.YNc(13,ut,3,3,"mat-error",7),p.qZA(),p.TgZ(14,"div"),p._uU(15),p.ALo(16,"translate"),p.qZA(),p.TgZ(17,"div",17),p._uU(18),p.qZA(),p.TgZ(19,"mat-form-field",18),p.TgZ(20,"mat-label"),p._uU(21),p.ALo(22,"translate"),p.qZA(),p.TgZ(23,"textarea",19),p._uU(24," "),p.qZA(),p.YNc(25,ht,3,3,"mat-error",7),p.YNc(26,dt,3,4,"mat-error",7),p.YNc(27,pt,3,4,"mat-error",7),p.YNc(28,gt,3,4,"mat-error",7),p.qZA(),p.qZA(),p.qZA(),p.TgZ(29,"mat-step"),p.YNc(30,ft,2,3,"ng-template",11),p.TgZ(31,"div",13),p.TgZ(32,"h5",20),p._uU(33),p.ALo(34,"translate"),p.qZA(),p.YNc(35,mt,3,3,"app-alert",21),p.YNc(36,bt,7,7,"mat-radio-group",22),p.qZA(),p.qZA(),p.TgZ(37,"mat-step"),p.YNc(38,_t,2,3,"ng-template",11),p.TgZ(39,"div",13),p.TgZ(40,"h5",20),p._uU(41),p.ALo(42,"translate"),p.qZA(),p.TgZ(43,"perun-web-apps-expiration-select",23),p.NdJ("datePicker",function(e){return p.CHM(t),p.oxw(2).setExpiration(e)}),p.qZA(),p.qZA(),p.qZA(),p.TgZ(44,"mat-step"),p.YNc(45,wt,2,3,"ng-template",11),p.TgZ(46,"div",13),p.TgZ(47,"h5",20),p._uU(48),p.ALo(49,"translate"),p.qZA(),p.TgZ(50,"mat-radio-group",24),p.NdJ("change",function(){return p.CHM(t),p.oxw(2).groupAssigmentChanged()})("ngModelChange",function(e){return p.CHM(t),p.oxw(2).groupAssignment=e}),p.TgZ(51,"mat-radio-button",25),p._uU(52),p.ALo(53,"translate"),p.qZA(),p.TgZ(54,"span",26),p.ALo(55,"translate"),p.TgZ(56,"mat-radio-button",27),p._uU(57),p.ALo(58,"translate"),p.qZA(),p.qZA(),p.TgZ(59,"span",26),p.ALo(60,"translate"),p.TgZ(61,"mat-radio-button",28),p._uU(62),p.ALo(63,"translate"),p.qZA(),p.qZA(),p.qZA(),p.qZA(),p.YNc(64,At,4,3,"div",7),p.YNc(65,yt,5,4,"div",7),p.YNc(66,Tt,6,11,"div",7),p.qZA(),p.qZA()}if(2&t){const t=p.oxw(2);p.Q6J("linear",!0),p.xp6(2),p.Q6J("stepControl",t.usersInfoFormGroup),p.xp6(2),p.Q6J("ngIf",t.functionalityNotSupported),p.xp6(2),p.Oqu(p.lcZ(7,35,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_INFO")),p.xp6(2),p.Q6J("formGroup",t.usersInfoFormGroup),p.xp6(2),p.s9C("placeholder",p.lcZ(11,37,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE")),p.xp6(2),p.Q6J("ngForOf",t.namespaceOptions),p.xp6(1),p.Q6J("ngIf",t.usersInfoFormGroup.hasError("required","namespace")),p.xp6(2),p.Oqu(p.lcZ(16,39,"DIALOGS.GENERATE_SPONSORED_MEMBERS.HINT")),p.xp6(3),p.hij(" ",t.getSelectedNamespaceRules().csvGenHeaderDescription," "),p.xp6(3),p.Oqu(p.lcZ(22,41,"DIALOGS.GENERATE_SPONSORED_MEMBERS.INSERT_HERE")),p.xp6(2),p.s9C("placeholder",t.getSelectedNamespaceRules().csvGenPlaceholder),p.xp6(2),p.Q6J("ngIf",t.usersInfoFormGroup.hasError("required","sponsoredMembers")),p.xp6(1),p.Q6J("ngIf",t.usersInfoFormGroup.hasError("invalidFormat","sponsoredMembers")),p.xp6(1),p.Q6J("ngIf",t.usersInfoFormGroup.hasError("invalidEmail","sponsoredMembers")),p.xp6(1),p.Q6J("ngIf",t.usersInfoFormGroup.hasError("invalidLogin","sponsoredMembers")),p.xp6(5),p.hij(" ",p.lcZ(34,43,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_MANAGEMENT")," "),p.xp6(2),p.Q6J("ngIf","No namespace"===t.getSelectedNamespaceRules().namespaceName),p.xp6(1),p.Q6J("ngIf","No namespace"!==t.getSelectedNamespaceRules().namespaceName),p.xp6(5),p.Oqu(p.lcZ(42,45,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION")),p.xp6(2),p.Q6J("expiration",t.expiration),p.xp6(5),p.Oqu(p.lcZ(49,47,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUP_ASSIGMENT")),p.xp6(2),p.Q6J("ngModel",t.groupAssignment),p.xp6(2),p.hij(" ",p.lcZ(53,49,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_ASSIGN")," "),p.xp6(2),p.s9C("matTooltip",p.lcZ(55,51,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_NEW")),p.Q6J("matTooltipDisabled",!t.manualMemberAddingBlocked&&t.createGroupAuth),p.xp6(2),p.Q6J("disabled",t.manualMemberAddingBlocked||!t.createGroupAuth),p.xp6(1),p.hij(" ",p.lcZ(58,53,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_TO_NEW")," "),p.xp6(2),p.s9C("matTooltip",p.lcZ(60,55,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_EXISTING")),p.Q6J("matTooltipDisabled",!t.manualMemberAddingBlocked&&0!==t.assignableGroups.length),p.xp6(2),p.Q6J("disabled",t.manualMemberAddingBlocked||0===t.assignableGroups.length),p.xp6(1),p.hij(" ",p.lcZ(63,57,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_EXISTING")," "),p.xp6(2),p.Q6J("ngIf","none"===t.groupAssignment),p.xp6(1),p.Q6J("ngIf","new"===t.groupAssignment),p.xp6(1),p.Q6J("ngIf","existing"===t.groupAssignment)}}function Et(t,e){1&t&&(p.TgZ(0,"app-alert",41),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.Q6J("alert_type","success"),p.xp6(1),p.hij(" ",p.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUCCESS")," "))}function St(t,e){1&t&&(p.TgZ(0,"app-alert",41),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.Q6J("alert_type","warn"),p.xp6(1),p.hij(" ",p.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.FINISHED_WITH_ERRORS")," "))}function kt(t,e){if(1&t&&(p.TgZ(0,"div"),p.YNc(1,Et,3,4,"app-alert",40),p.YNc(2,St,3,4,"app-alert",40),p.qZA()),2&t){const t=p.oxw(2);p.xp6(1),p.Q6J("ngIf",!1===t.finishedWithErrors),p.xp6(1),p.Q6J("ngIf",t.finishedWithErrors)}}function It(t,e){if(1&t&&(p.TgZ(0,"div",5),p.YNc(1,Ct,67,59,"mat-stepper",6),p.YNc(2,kt,3,2,"div",7),p.qZA()),2&t){const t=p.oxw();p.xp6(1),p.Q6J("ngIf","user-input"===t.state),p.xp6(1),p.Q6J("ngIf","results"===t.state)}}function xt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",47),p.NdJ("click",function(){return p.CHM(t),p.oxw(2).stepperPrevious()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.BACK")," "))}function Rt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",48),p.NdJ("click",function(){return p.CHM(t),p.oxw(2).stepperNext()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw(2);p.ekj("ml-2",void 0!==t.stepper&&0!==t.stepper.selectedIndex)("ml-auto",!(void 0!==t.stepper&&0!==t.stepper.selectedIndex)),p.Q6J("disabled",t.getStepperNextConditions()),p.xp6(1),p.hij(" ",p.lcZ(2,6,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NEXT")," ")}}function Ot(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",48),p.NdJ("click",function(){return p.CHM(t),p.oxw(2).onSubmit()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}if(2&t){const t=p.oxw(2);p.Q6J("disabled",null===t.groupAssignment||"existing"===t.groupAssignment&&0===t.selection.selected.length||"new"===t.groupAssignment&&(0===t.name.length||0===t.description.length)||!0===t.asSubGroup&&null===t.parentGroup),p.xp6(1),p.hij(" ",p.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUBMIT")," ")}}function Pt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div",42),p.TgZ(1,"button",43),p.NdJ("click",function(){return p.CHM(t),p.oxw().onCancel()}),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.YNc(4,xt,3,3,"button",44),p.YNc(5,Rt,3,8,"button",45),p.YNc(6,Ot,3,4,"button",46),p.qZA()}if(2&t){const t=p.oxw();p.xp6(2),p.hij(" ",p.lcZ(3,4,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),p.xp6(2),p.Q6J("ngIf",void 0!==t.stepper&&0!==t.stepper.selectedIndex),p.xp6(1),p.Q6J("ngIf",void 0!==t.stepper&&t.stepper.selectedIndex!==t.stepper._steps.length-1),p.xp6(1),p.Q6J("ngIf",void 0!==t.stepper&&t.stepper.selectedIndex===t.stepper._steps.length-1)}}function Dt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"div",42),p.TgZ(1,"button",43),p.NdJ("click",function(){return p.CHM(t),p.oxw().onClose()}),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"button",49),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.TgZ(7,"mat-menu",null,50),p.TgZ(9,"button",51),p.NdJ("click",function(){return p.CHM(t),p.oxw().generatePdf()}),p._uU(10),p.ALo(11,"translate"),p.qZA(),p.TgZ(12,"button",51),p.NdJ("click",function(){return p.CHM(t),p.oxw().downloadCsv()}),p._uU(13),p.ALo(14,"translate"),p.qZA(),p.qZA(),p.qZA()}if(2&t){const t=p.MAs(8);p.xp6(2),p.hij(" ",p.lcZ(3,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CLOSE")," "),p.xp6(2),p.Q6J("matMenuTriggerFor",t),p.xp6(1),p.hij(" ",p.lcZ(6,7,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD")," "),p.xp6(5),p.hij(" ",p.lcZ(11,9,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_PDF")," "),p.xp6(3),p.hij(" ",p.lcZ(14,11,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_CSV")," ")}}let Mt=(()=>{class t{constructor(t,e,i,n,r,a,c,l,u,h,d,p){this.dialogRef=t,this.data=e,this.store=i,this.membersService=n,this.notificator=r,this.translate=a,this.guiAuthResolver=c,this.groupsService=l,this.attributesService=u,this.formBuilder=h,this.sponsoredMembersPDFService=d,this.cd=p,this.loading=!1,this.functionalityNotSupported=!1,this.namespaceOptions=[],this.namespaceRules=[],this.state="user-input",this.passwordReset="generate",this.groupAssignment=null,this.expiration="never",this.assignableGroups=[],this.allVoGroups=[],this.selection=new s.Ov(!0,[]),this.manualMemberAddingBlocked=!1,this.name="",this.description="",this.asSubGroup=!1,this.parentGroup=null,this.groupIds=[],this.submitDisabled=!1,this.filterValue="",this.tableId=o.rc,this.finishedWithErrors=!1,this.groupAttrNames=[tt.r.GROUP_SYNC_ENABLED,tt.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}static didSomeGenerationFailed(t){return t.forEach(t=>{if("OK"!==t.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:["",l.kI.required],sponsoredMembers:["",[l.kI.required,this.userInputValidator()]]}),this.usersInfoFormGroup.controls.namespace.valueChanges.subscribe({next:()=>{this.usersInfoFormGroup.controls.sponsoredMembers.updateValueAndValidity()}}),this.attributesService.getVoAttributes(this.data.voId).subscribe(t=>{this.manualMemberAddingBlocked=this.hasAttributeEnabled(t,"blockManualMemberAdding"),!0!==this.manualMemberAddingBlocked?this.groupsService.getAllRichGroupsWithAttributesByNames(this.data.voId,this.groupAttrNames).subscribe(t=>{this.allVoGroups=t.filter(t=>"members"!==t.name),this.assignableGroups=this.filterAssignableGroups(t),this.membersService.getAllNamespacesRules().subscribe(t=>{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(t),this.namespaceRules.forEach(t=>this.namespaceOptions.push(t.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,this.cd.detectChanges())},()=>this.loading=!1)}filterAssignableGroups(t){const e=[];for(const i of t)this.hasAttributeEnabled(i.attributes,"synchronizationEnabled")||this.hasAttributeEnabled(i.attributes,"blockManualMemberAdding")||!this.guiAuthResolver.isAuthorized("addMembers_Group_List_policy",[i])||e.push(i);return e}hasAttributeEnabled(t,e){return t.some(t=>t.friendlyName===e&&null!==t.value&&"true"===t.value.toString())}createOutputObjects(t){let e="",i="",n="",s="";const o=[];return t.forEach(t=>{e=t.name.replace(";"," ").split(";")[0],i=t.status,n=t.login?t.login:n,s=t.password?t.password:s,o.push({name:e,status:i,login:n,password:s})}),o}onGenerate(){this.loading=!0;const e=this.usersInfoFormGroup.get("sponsoredMembers").value.split("\n"),i=this.getSelectedNamespaceRules().csvGenHeader,n=[];for(const t of e){const e=this.parseMemberLine(t);if("format"===e||"email"===e)return void(this.loading=!1);""!==e&&n.push(e)}const s={data:n,header:i,namespace:"",sponsor:this.store.getPerunPrincipal().userId,vo:this.data.voId,sendActivationLinks:"reset"===this.passwordReset};"none"!==this.groupAssignment&&(s.groups=this.groupIds),"never"!==this.expiration&&(s.validityTo=(0,u.p6)(this.expiration,"yyyy-MM-dd","en-GB")),"No namespace"!==this.usersInfoFormGroup.get("namespace").value&&(s.namespace=this.usersInfoFormGroup.get("namespace").value),this.membersService.createSponsoredMembersFromCSV(s).subscribe(e=>{this.state="results",this.finishedWithErrors=t.didSomeGenerationFailed(e),this.loading=!1,this.resultData=e},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onClose(){this.dialogRef.close(!0)}parseMemberLine(t){const e=t.trim();if(""===e)return"";const i=e.split(";"),n=this.getSelectedNamespaceRules().csvGenHeader.split(";");if(i.length!==n.length)return"format";if("mail"===n[2].slice(n[2].length-4).toLowerCase()&&!i[2].trim().match(r.B2))return"email";if("login"===n[3]&&""===i[3].trim())return"login";let s="";for(const o of i)s+=o.trim()+";";return s.slice(0,-1)}userInputValidator(){return t=>{const e=t.value.split("\n");for(const i of e){const t=this.parseMemberLine(i);if("format"===t)return{invalidFormat:{value:i}};if("email"===t)return{invalidEmail:{value:i}};if("login"===t)return{invalidLogin:{value:i}}}return null}}setExpiration(t){this.expiration="never"===t?"never":(0,u.p6)(t,"yyyy-MM-dd","en-GB")}applyFilter(t){this.filterValue=t}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(t=>{this.groupIds.push(t.id),this.onGenerate()},()=>this.loading=!1):this.groupsService.createGroupWithVoNameDescription(this.data.voId,this.name,this.description).subscribe(t=>{this.groupIds.push(t.id),this.onGenerate()},()=>this.loading=!1):("existing"===this.groupAssignment&&(this.groupIds=this.selection.selected.map(t=>t.id)),this.onGenerate())}getSelectedNamespaceRules(){return this.namespaceRules.find(t=>t.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,r.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()}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(a.so),p.Y36(a.WI),p.Y36(c.d6),p.Y36(n.uq),p.Y36(c.V6),p.Y36(g.sK),p.Y36(c.x4),p.Y36(n.ff),p.Y36(n.H8),p.Y36(l.qu),p.Y36(c.HV),p.Y36(p.sBO))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-generate-sponsored-members-dialog"]],viewQuery:function(t,e){if(1&t&&p.Gf(ot,5),2&t){let t;p.iGM(t=p.CRH())&&(e.stepper=t.first)}},decls:8,vars:10,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",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"],["required","","formControlName","namespace",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],[1,"font-weight-bold"],[1,"pt-2"],["id","voGenerateSponsoredMembers","name","voGenerateSponsoredMembers","rows","8","cols","50","matInput","","formControlName","sponsoredMembers",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","nameChanged","descriptionChanged","parentGroupChanged","asSubgroupChanged"],[3,"placeholder","filter"],[3,"groups","selection","displayedColumns","disableRouting","tableId","filter"],[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"],["mat-flat-button","","color","accent",1,"ml-auto","dropdown-toggle",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.YNc(4,rt,1,0,"mat-spinner",1),p.YNc(5,It,3,2,"div",2),p.YNc(6,Pt,7,6,"div",3),p.YNc(7,Dt,15,13,"div",3),p.qZA()),2&t&&(p.Tol(e.theme),p.xp6(2),p.Oqu(p.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.TITLE")),p.xp6(2),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading&&void 0!==e.stepper&&"results"!==e.state),p.xp6(1),p.Q6J("ngIf","results"===e.state))},directives:[a.uh,u.O5,f.$g,a.xY,m.Vq,m.C0,m.VY,l._Y,l.JL,l.sg,b.KE,w.gD,l.Q7,l.JJ,l.u,u.sg,b.hX,_.Nt,l.Fj,E,T.VQ,l.On,T.U0,A.gM,S.w,k.ey,b.TO,et.r,it.L,nt.W,a.H8,R.lW,st.p6,st.VK,st.OP],pipes:[g.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})();var Lt=i(4252);function Nt(t,e){1&t&&p._UZ(0,"mat-spinner",12)}const zt=function(){return["checkbox","id","fullName","status","sponsored","email"]};function Zt(t,e){if(1&t&&p._UZ(0,"perun-web-apps-members-list",13),2&t){const t=p.oxw();p.Q6J("tableId",t.tableId)("hidden",t.loading)("members",t.members)("selection",t.selection)("displayedColumns",p.DdM(6,zt))("disableRouting",!0)}}function Bt(t,e){1&t&&(p.TgZ(0,"app-alert",14),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"DIALOGS.SPONSOR_EXISTING_MEMBER.BEGIN_SEARCH")," "))}let Ft=(()=>{class t{constructor(t,e,i,n,r,a){this.dialogRef=t,this.data=e,this.store=i,this.membersService=n,this.notificator=r,this.translate=a,this.loading=!1,this.tableId=o.US,this.expiration="never",this.searchCtrl=new l.NI("",[l.kI.required]),this.firstSearchDone=!1,this.members=[],this.selection=new s.Ov(!0,[])}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}sponsor(t){if(this.loading=!0,0===t.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.SPONSOR_EXISTING_MEMBER.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);const e=t.pop();e.sponsored?this.membersService.sponsorMember(e.id,this.store.getPerunPrincipal().user.id,this.expiration).subscribe(()=>{this.sponsor(t)},()=>this.loading=!1):this.membersService.setSponsorshipForMember(e.id,this.store.getPerunPrincipal().user.id,this.expiration).subscribe(()=>{this.sponsor(t)},()=>this.loading=!1)}onSubmit(){this.loading=!0;const t=Array.from(this.selection.selected);this.expiration="never"===this.expiration?null:this.expiration,this.sponsor(t)}setExpiration(t){this.expiration="never"===t?"never":(0,u.p6)(t,"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,[tt.r.MEMBER_DEF_EXPIRATION,tt.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe(t=>{this.members=t,this.loading=!1},()=>this.loading=!1))}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(a.so),p.Y36(a.WI),p.Y36(c.d6),p.Y36(n.uq),p.Y36(c.V6),p.Y36(g.sK))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-sponsor-existing-member-dialog"]],decls:31,vars:30,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"mr-2","search-field","adjust-width"],["matInput","","autocomplete","false",3,"placeholder","formControl","keyup.enter"],["mat-flat-button","","color","accent",1,"ml-auto",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","hidden","members","selection","displayedColumns","disableRouting",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"datePicker"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","hidden","members","selection","displayedColumns","disableRouting"],["alert_type","info"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"div",1),p.TgZ(5,"mat-form-field",2),p.TgZ(6,"label"),p.TgZ(7,"input",3),p.NdJ("keyup.enter",function(){return e.onSearchByString()}),p.ALo(8,"translate"),p.qZA(),p.qZA(),p.TgZ(9,"mat-error"),p._uU(10),p.ALo(11,"translate"),p.qZA(),p.qZA(),p.TgZ(12,"button",4),p.NdJ("click",function(){return e.onSearchByString()}),p._uU(13),p.ALo(14,"translate"),p.qZA(),p.YNc(15,Nt,1,0,"mat-spinner",5),p.YNc(16,Zt,1,7,"perun-web-apps-members-list",6),p.YNc(17,Bt,3,3,"app-alert",7),p.TgZ(18,"div"),p._UZ(19,"br"),p.TgZ(20,"h6"),p._uU(21),p.ALo(22,"translate"),p.qZA(),p.TgZ(23,"perun-web-apps-expiration-select",8),p.NdJ("datePicker",function(t){return e.setExpiration(t)}),p.qZA(),p.qZA(),p.qZA(),p.TgZ(24,"div",9),p.TgZ(25,"button",10),p.NdJ("click",function(){return e.onCancel()}),p._uU(26),p.ALo(27,"translate"),p.qZA(),p.TgZ(28,"button",11),p.NdJ("click",function(){return e.onSubmit()}),p._uU(29),p.ALo(30,"translate"),p.qZA(),p.qZA(),p.qZA()),2&t&&(p.Tol(e.theme),p.xp6(2),p.Oqu(p.lcZ(3,16,"DIALOGS.SPONSOR_EXISTING_MEMBER.TITLE")),p.xp6(5),p.s9C("placeholder",p.lcZ(8,18,"DIALOGS.SPONSOR_EXISTING_MEMBER.DESCRIPTION")),p.Q6J("formControl",e.searchCtrl),p.xp6(3),p.hij(" ",p.lcZ(11,20,"DIALOGS.SPONSOR_EXISTING_MEMBER.EMPTY_SEARCH_MESSAGE")," "),p.xp6(2),p.Q6J("disabled",e.loading),p.xp6(1),p.hij(" ",p.lcZ(14,22,"DIALOGS.SPONSOR_EXISTING_MEMBER.SEARCH")," "),p.xp6(2),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",e.firstSearchDone),p.xp6(1),p.Q6J("ngIf",!e.firstSearchDone),p.xp6(4),p.Oqu(p.lcZ(22,24,"DIALOGS.SPONSOR_EXISTING_MEMBER.EXPIRATION")),p.xp6(5),p.hij(" ",p.lcZ(27,26,"DIALOGS.SPONSOR_EXISTING_MEMBER.CANCEL")," "),p.xp6(2),p.Q6J("disabled",e.loading||0===e.selection.selected.length),p.xp6(1),p.hij(" ",p.lcZ(30,28,"DIALOGS.SPONSOR_EXISTING_MEMBER.SPONSOR")," "))},directives:[a.uh,a.xY,b.KE,_.Nt,l.Fj,l.JJ,l.oH,b.TO,R.lW,u.O5,E,a.H8,f.$g,Lt.O,S.w],pipes:[g.X$],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}"]}),t})();var Ut=i(59403),qt=i(58623),Ht=i(67033),Gt=i(79592),jt=i(95121),Yt=i(82819),Kt=i(84534),Vt=i(57629);function $t(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"th",16),p.TgZ(1,"mat-checkbox",17),p.NdJ("change",function(e){p.CHM(t);const i=p.oxw();return e?i.masterToggle():null}),p.qZA(),p.qZA()}if(2&t){const t=p.oxw();p.xp6(1),p.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function Jt(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"td",18),p.TgZ(1,"mat-checkbox",19),p.NdJ("change",function(e){const i=p.CHM(t).$implicit,n=p.oxw();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),p.qZA(),p.qZA()}if(2&t){const t=e.$implicit,i=p.oxw();p.xp6(1),p.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function Qt(t,e){1&t&&(p.TgZ(0,"th",20),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.ID")," "))}function Wt(t,e){if(1&t&&(p.TgZ(0,"td",21),p._uU(1),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.hij(" ",t.member.id," ")}}function Xt(t,e){1&t&&(p.TgZ(0,"th",20),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NAME")," "))}function te(t,e){if(1&t&&(p.TgZ(0,"td",22),p._uU(1),p.ALo(2,"userFullName"),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.hij(" ",p.lcZ(2,1,t.member.user)," ")}}function ee(t,e){1&t&&(p.TgZ(0,"th",20),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.SPONSORS")," "))}function ie(t,e){if(1&t&&(p.TgZ(0,"span"),p._uU(1),p.ALo(2,"userFullName"),p._UZ(3,"br"),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.hij(" ",p.lcZ(2,1,t.user),"")}}function ne(t,e){if(1&t&&(p.TgZ(0,"td",22),p.YNc(1,ie,4,3,"span",23),p.qZA()),2&t){const t=e.$implicit;p.xp6(1),p.Q6J("ngForOf",t.sponsors)}}function se(t,e){1&t&&p._UZ(0,"th",20)}function oe(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"span",26),p.ALo(1,"translate"),p.TgZ(2,"button",27),p.NdJ("mouseenter",function(){return p.CHM(t),p.oxw(2).disableRouting=!0})("mouseleave",function(){p.CHM(t);const e=p.oxw(2);return e.disableRouting=e.routingStrategy})("click",function(){p.CHM(t);const e=p.oxw().$implicit;return p.oxw().resetPassword(e)}),p.TgZ(3,"mat-icon"),p._uU(4,"vpn_key"),p.qZA(),p.qZA(),p.qZA()}if(2&t){const t=p.oxw(2);p.Q6J("matTooltipPosition","above")("matTooltip",p.lcZ(1,3,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.PASSWORD_RESET")),p.xp6(2),p.Q6J("disabled",t.loading)}}function re(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"td",22),p.TgZ(1,"button",24),p.NdJ("click",function(){const e=p.CHM(t).$implicit;return p.oxw().showSponsors(e)})("mouseenter",function(){return p.CHM(t),p.oxw().disableRouting=!0})("mouseleave",function(){p.CHM(t);const e=p.oxw();return e.disableRouting=e.routingStrategy}),p.TgZ(2,"mat-icon"),p._uU(3,"edit"),p.qZA(),p.qZA(),p.YNc(4,oe,5,5,"span",25),p.qZA()}if(2&t){const t=e.$implicit,i=p.oxw();p.xp6(4),p.Q6J("ngIf",i.passwdResetAuth(t))}}function ae(t,e){1&t&&p._UZ(0,"tr",28)}const ce=function(t,e){return["/organizations",t,"members",e]};function le(t,e){if(1&t&&p._UZ(0,"tr",29),2&t){const t=e.$implicit,i=p.oxw();p.ekj("cursor-pointer",!i.disableRouting)("disable-outline",i.disableRouting),p.Q6J("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:p.WLB(6,ce,t.member.voId,t.member.id))("routerLink",i.disableRouting?null:p.WLB(9,ce,t.member.voId,t.member.id))}}function ue(t,e){1&t&&(p.TgZ(0,"app-alert",30),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function he(t,e){1&t&&(p.TgZ(0,"app-alert",30),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NO_SPONSORED_MEMBERS_WARNING"),"\n"))}let de=(()=>{class t{constructor(t,e,i,n,s){this.dialog=t,this.authResolver=e,this.storeService=i,this.attributesManager=n,this.tableCheckbox=s,this.sponsoredMembers=[],this.filterValue="",this.displayedColumns=["id","name","sponsors","menu"],this.disableRouting=!1,this.refreshTable=new p.vpe,this.loading=!1,this.routingStrategy=!1,this.pageSizeOptions=r.f7}set matSort(t){this.sort=t}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.setDataSource(),this.routingStrategy=this.disableRouting}getSortDataForColumn(t,e){var i;switch(e){case"id":return t.member.id.toString();case"name":return t.member.user?t.member.user.lastName?t.member.user.lastName:null!==(i=t.member.user.firstName)&&void 0!==i?i:"":"";case"sponsors":return t.sponsors.length.toString();default:return""}}getDataForColumn(t,e){switch(e){case"id":return t.member.id.toString();case"name":return t.member.user?(0,r.bD)(t.member.user):"";case"sponsors":return t.sponsors.map(t=>(0,r.bD)(t.user)).join();default:return""}}exportData(t){(0,r.O6)((0,r.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource||(this.dataSource=new Ht.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(t,e)=>(0,r.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,r.pR)(t,e,this.getSortDataForColumn,this)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.sponsoredMembers}showSponsors(t){const e=(0,r.kZ)();e.width="650px",e.data={sponsors:t.sponsors,member:t.member,theme:"vo-theme"},this.dialog.open(Gt.H,e).afterClosed().subscribe(t=>{t&&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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.member.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}resetPassword(t){this.loading=!0;const e=this.storeService.get("password_namespace_attributes").map(t=>(t=t.split(":"))[t.length-1]);this.attributesManager.getLogins(t.member.userId).subscribe(i=>{const n=i.filter(t=>e.includes(t.friendlyNameParameter)),s=(0,r.kZ)();s.width="400px",s.data={userId:t.member.userId,memberId:t.member.id,logins:n},this.dialog.open(jt.m,s).afterClosed().subscribe(()=>{this.loading=!1})},()=>this.loading=!1)}passwdResetAuth(t){return this.authResolver.isAuthorized("sendPasswordResetLinkEmail_Member_String_String_String_String_policy",[{id:t.member.voId,beanName:"Vo"},t.member])}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(a.uw),p.Y36(c.x4),p.Y36(c.d6),p.Y36(n.H8),p.Y36(c.UA))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-sponsored-members-list"]],viewQuery:function(t,e){if(1&t&&(p.Gf(qt.YE,7),p.Gf(r.l9,7)),2&t){let t;p.iGM(t=p.CRH())&&(e.matSort=t.first),p.iGM(t=p.CRH())&&(e.child=t.first)}},inputs:{sponsoredMembers:"sponsoredMembers",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",disableRouting:"disableRouting",tableId:"tableId"},outputs:{refreshTable:"refreshTable"},features:[p.TTD],decls:22,vars:9,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","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",""],[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(t,e){1&t&&(p.TgZ(0,"div",0),p.TgZ(1,"perun-web-apps-table-wrapper",1),p.NdJ("exportData",function(t){return e.exportData(t)}),p.TgZ(2,"table",2),p.ynx(3,3),p.YNc(4,$t,2,3,"th",4),p.YNc(5,Jt,2,2,"td",5),p.BQk(),p.ynx(6,6),p.YNc(7,Qt,3,3,"th",7),p.YNc(8,Wt,2,1,"td",8),p.BQk(),p.ynx(9,9),p.YNc(10,Xt,3,3,"th",7),p.YNc(11,te,3,3,"td",10),p.BQk(),p.ynx(12,11),p.YNc(13,ee,3,3,"th",7),p.YNc(14,ne,2,1,"td",10),p.BQk(),p.ynx(15,12),p.YNc(16,se,1,0,"th",7),p.YNc(17,re,5,1,"td",10),p.BQk(),p.YNc(18,ae,1,0,"tr",13),p.YNc(19,le,1,12,"tr",14),p.qZA(),p.qZA(),p.qZA(),p.YNc(20,ue,3,3,"app-alert",15),p.YNc(21,he,3,3,"app-alert",15)),2&t&&(p.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.sponsoredMembers.length),p.xp6(1),p.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),p.xp6(1),p.Q6J("dataSource",e.dataSource),p.xp6(16),p.Q6J("matHeaderRowDef",e.displayedColumns),p.xp6(1),p.Q6J("matRowDefColumns",e.displayedColumns),p.xp6(1),p.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.sponsoredMembers.length),p.xp6(1),p.Q6J("ngIf",0===e.sponsoredMembers.length))},directives:[Yt.l,Ht.BZ,qt.YE,Ht.w1,Ht.fO,Ht.Dz,Ht.as,Ht.nj,u.O5,Ht.ge,y.oG,Ht.ev,qt.nU,u.sg,R.lW,x.Hw,A.gM,Ht.XQ,Ht.Gk,Kt.YH,Vt.rH,S.w],pipes:[g.X$,O.d],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();function pe(t,e){if(1&t&&(p.TgZ(0,"button",10),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t){const t=p.oxw(),e=p.MAs(9);p.Q6J("disabled",t.findSponsorsAuth&&0===t.voSponsors.length)("matMenuTriggerFor",e),p.xp6(1),p.hij(" ",p.lcZ(2,3,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE")," ")}}function ge(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",11),p.NdJ("click",function(){return p.CHM(t),p.oxw().onCreate()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE_ONE")," "))}function fe(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",11),p.NdJ("click",function(){return p.CHM(t),p.oxw().onGenerate()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.GENERATE")," "))}function me(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"button",12),p.NdJ("click",function(){return p.CHM(t),p.oxw().onSponsorExistingMember()}),p._uU(1),p.ALo(2,"translate"),p.qZA()}2&t&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.SPONSOR_EXISTING")," "))}function be(t,e){1&t&&p._UZ(0,"mat-spinner",13)}function _e(t,e){if(1&t){const t=p.EpF();p.TgZ(0,"app-sponsored-members-list",14),p.NdJ("refreshTable",function(){return p.CHM(t),p.oxw().refresh()}),p.qZA()}if(2&t){const t=p.oxw();p.Q6J("sponsoredMembers",t.members)("disableRouting",!t.routeAuth)("selection",t.selection)("filterValue",t.searchString)("tableId",t.tableId)}}let we=(()=>{class t{constructor(t,e,i,n,r,a){this.membersManager=t,this.dialog=e,this.authResolver=i,this.storeService=n,this.authzResolver=r,this.entityStorageService=a,this.members=[],this.voSponsors=[],this.attrNames=[],this.selection=new s.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=o.Bf}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights();const t=["SPONSOR"],e=new Map;this.authResolver.getRolesAuthorization(t,this.vo,e),this.findSponsorsAuth=e.get(t[0]).readAuth,this.findSponsorsAuth?this.authzResolver.getAuthzRichAdmins(h.u.SPONSOR,this.vo.id,"Vo",[tt.r.USER_DEF_PREFERRED_MAIL],!1,!1).subscribe(t=>{this.voSponsors=t,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 t=(0,r.kZ)();t.width="620px",t.data={entityId:this.vo.id,voId:this.vo.id,sponsors:this.voSponsors,theme:"vo-theme"},this.dialog.open(X,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(t=>{this.storeService.setPerunPrincipal(t),this.refresh()}))})}onGenerate(){const t=(0,r.kZ)();t.width="750px",t.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(Mt,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(t=>{this.storeService.setPerunPrincipal(t),this.refresh()}))})}onSponsorExistingMember(){const t=(0,r.kZ)();t.width="650px",t.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(Ft,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(t=>{this.storeService.setPerunPrincipal(t),this.refresh()}))})}refresh(){this.loading=!0,this.membersManager.getSponsoredMembersAndTheirSponsors(this.vo.id,this.attrNames).subscribe(t=>{this.selection.clear(),this.members=t,this.setAuthRights(),this.loading=!1})}applyFilter(t){this.searchString=t}}return t.id="VoSponsoredMembersComponent",t.\u0275fac=function(e){return new(e||t)(p.Y36(n.uq),p.Y36(a.uw),p.Y36(c.x4),p.Y36(c.d6),p.Y36(n.Ct),p.Y36(c.fb))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-vo-settings-sponsored-members"]],hostVars:2,hostBindings:function(t,e){2&t&&p.ekj("router-component",e.true)},decls:16,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent","class","mr-2 dropdown-toggle",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["mat-menu-item","","class","action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"sponsoredMembers","disableRouting","selection","filterValue","tableId","refreshTable",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",1,"action-button",3,"click"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"sponsoredMembers","disableRouting","selection","filterValue","tableId","refreshTable"]],template:function(t,e){1&t&&(p.TgZ(0,"div"),p.TgZ(1,"h1",0),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"perun-web-apps-refresh-button",1),p.NdJ("refresh",function(){return e.refresh()}),p.qZA(),p.TgZ(5,"span",2),p.ALo(6,"translate"),p.YNc(7,pe,3,5,"button",3),p.qZA(),p.TgZ(8,"mat-menu",null,4),p.YNc(10,ge,3,3,"button",5),p.YNc(11,fe,3,3,"button",5),p.qZA(),p.YNc(12,me,3,3,"button",6),p.TgZ(13,"perun-web-apps-immediate-filter",7),p.NdJ("filter",function(t){return e.applyFilter(t)}),p.qZA(),p.YNc(14,be,1,0,"mat-spinner",8),p.YNc(15,_e,1,5,"app-sponsored-members-list",9),p.qZA()),2&t&&(p.xp6(2),p.Oqu(p.lcZ(3,10,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.TITLE")),p.xp6(3),p.s9C("matTooltip",p.lcZ(6,12,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.NO_SPONSORS")),p.Q6J("matTooltipDisabled",!(e.findSponsorsAuth&&0===e.voSponsors.length)),p.xp6(2),p.Q6J("ngIf",e.createAuth||e.generateAuth),p.xp6(3),p.Q6J("ngIf",e.createAuth),p.xp6(1),p.Q6J("ngIf",e.generateAuth),p.xp6(1),p.Q6J("ngIf",e.setSponsorshipAuth),p.xp6(1),p.Q6J("placeholder","VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.FILTER"),p.xp6(1),p.Q6J("ngIf",e.loading),p.xp6(1),p.Q6J("ngIf",!e.loading))},directives:[Ut.t,A.gM,u.O5,st.VK,it.L,R.lW,st.p6,st.OP,f.$g,de],pipes:[g.X$],styles:[""]}),t})()},17249:function(t,e,i){"use strict";i.d(e,{Y:function(){return M}});var n=i(65249),s=i(84140),o=i(68416),r=i(99608),a=i(4230),c=i(84608),l=i(16073),u=i(31572),h=i(48160),d=i(57629),p=i(61511),g=i(67806),f=i(66283),m=i(80340),b=i(15980),_=i(36922);function w(t,e){1&t&&u._UZ(0,"mat-spinner",3)}function A(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"div"),u.TgZ(1,"div",4),u.TgZ(2,"mat-form-field"),u._UZ(3,"input",5),u.ALo(4,"translate"),u.TgZ(5,"mat-error"),u._uU(6),u.ALo(7,"translate"),u.qZA(),u.qZA(),u.TgZ(8,"mat-form-field"),u._UZ(9,"input",6),u.ALo(10,"translate"),u.TgZ(11,"mat-error"),u._uU(12),u.ALo(13,"translate"),u.qZA(),u.qZA(),u.qZA(),u.TgZ(14,"div",7),u.TgZ(15,"button",8),u.NdJ("click",function(){return u.CHM(t),u.oxw().onCancel()}),u._uU(16),u.ALo(17,"translate"),u.qZA(),u.TgZ(18,"div",9),u.ALo(19,"translate"),u.TgZ(20,"button",10),u.NdJ("click",function(){return u.CHM(t),u.oxw().onSubmit()}),u._uU(21),u.ALo(22,"translate"),u.qZA(),u.qZA(),u.qZA(),u.qZA()}if(2&t){const t=u.oxw();u.xp6(3),u.s9C("placeholder",u.lcZ(4,11,"DIALOGS.CREATE_VO.FULL_NAME")),u.Q6J("formControl",t.fullNameCtrl),u.xp6(3),u.hij(" ",u.lcZ(7,13,"DIALOGS.CREATE_VO.FILL_FULL_NAME")," "),u.xp6(3),u.s9C("placeholder",u.lcZ(10,15,"DIALOGS.CREATE_VO.SHORT_NAME")),u.Q6J("formControl",t.shortNameCtrl),u.xp6(3),u.hij(" ",u.lcZ(13,17,"DIALOGS.CREATE_VO.FILL_SHORT_NAME")," "),u.xp6(4),u.hij(" ",u.lcZ(17,19,"DIALOGS.CREATE_VO.CANCEL")," "),u.xp6(2),u.s9C("matTooltip",u.lcZ(19,21,"DIALOGS.CREATE_VO.TOOLTIP")),u.Q6J("matTooltipDisabled",t.shortNameCtrl.valid&&t.fullNameCtrl.valid),u.xp6(2),u.Q6J("disabled",t.shortNameCtrl.invalid||t.fullNameCtrl.invalid),u.xp6(1),u.hij(" ",u.lcZ(22,23,"DIALOGS.CREATE_VO.CREATE")," ")}}let y=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.notificator=i,this.voService=n,this.translate=s,this.router=o,s.get("DIALOGS.CREATE_VO.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.theme=this.data.theme,this.shortNameCtrl=new l.NI(null,[l.kI.required,l.kI.pattern("^[\\w.-]+$"),l.kI.maxLength(33)]),this.fullNameCtrl=new l.NI(null,[l.kI.required,l.kI.pattern(".*[\\S]+.*"),l.kI.maxLength(129)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.voService.createVoWithName(this.fullNameCtrl.value,this.shortNameCtrl.value).subscribe(t=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0),this.router.navigate(["/organizations",t.id])},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(u.Y36(c.so),u.Y36(c.WI),u.Y36(o.V6),u.Y36(n.YF),u.Y36(h.sK),u.Y36(d.F0))},t.\u0275cmp=u.Xpm({type:t,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","","required","","data-cy","vo-name-input",3,"placeholder","formControl"],["matInput","","required","","data-cy","vo-shortname-input",3,"placeholder","formControl"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent","data-cy","create-vo-button",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.YNc(4,w,1,0,"mat-spinner",1),u.YNc(5,A,23,25,"div",2),u.qZA()),2&t&&(u.Tol(e.theme),u.xp6(2),u.Oqu(u.lcZ(3,6,"DIALOGS.CREATE_VO.TITLE")),u.xp6(2),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading))},directives:[c.uh,p.O5,g.$g,c.xY,f.KE,m.Nt,l.Fj,l.Q7,l.JJ,l.oH,f.TO,c.H8,b.lW,_.gM],pipes:[h.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}}"]}),t})();var v=i(60611),T=i(48958),C=i(66297),E=i(43691),S=i(59403),k=i(19139),I=i(97162);function x(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"button",9),u.NdJ("click",function(){return u.CHM(t),u.oxw().onCreateVo()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"VO_MANAGEMENT.CREATE_VO")," "))}function R(t,e){if(1&t){const t=u.EpF();u.TgZ(0,"button",10),u.NdJ("click",function(){return u.CHM(t),u.oxw().onRemoveVo()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}if(2&t){const t=u.oxw();u.Q6J("disabled",0===t.selection.selected.length),u.xp6(1),u.hij(" ",u.lcZ(2,2,"VO_MANAGEMENT.REMOVE_VO")," ")}}function O(t,e){1&t&&u._UZ(0,"mat-spinner",11)}function P(t,e){if(1&t&&u._UZ(0,"perun-web-apps-vos-list",12),2&t){const t=u.oxw();u.Q6J("tableId",t.tableId)("displayedColumns",t.displayedColumns)("filterValue",t.filterValue)("recentIds",t.recentIds)("selection",t.selection)("vos",t.vos)}}const D=function(){return{color:"black"}};let M=(()=>{class t{constructor(t,e,i,n,s,o){this.sideMenuService=t,this.voService=e,this.guiAuthResolver=i,this.dialog=n,this.notificator=s,this.apiRequest=o,this.vos=[],this.recentIds=[],this.filterValue="",this.tableId=v.tw}ngOnInit(){this.loading=!0,this.selection=new a.Ov(!1,[]),this.createAuth=this.guiAuthResolver.isAuthorized("createVo_Vo_policy",[]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteVo_Vo_policy",[]),this.displayedColumns=this.deleteAuth?["checkbox","id","recent","shortName","name"]:["id","recent","shortName","name"],this.refreshTable()}ngAfterViewChecked(){this.sideMenuService.setAccessMenuItems([])}refreshTable(){this.loading=!0,this.selection.clear(),this.apiRequest.dontHandleErrorForNext(),this.voService.getMyVos().subscribe(t=>{this.vos=t,this.recentIds=(0,s.vL)("vos"),this.loading=!1},t=>{"PrivilegeException"===t.error.name?(this.vos=[],this.loading=!1):this.notificator.showRPCError(t)})}applyFilter(t){this.filterValue=t}onCreateVo(){const t=(0,s.kZ)();t.width="610px",t.data={theme:"vo-theme"},this.dialog.open(y,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.refreshTable())})}onRemoveVo(){const t=(0,s.kZ)();t.width="500px",t.data={theme:"vo-theme",vos:[this.selection.selected[0]]},this.dialog.open(r.o,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}}return t.id="VoSelectPageComponent",t.\u0275fac=function(e){return new(e||t)(u.Y36(T.D),u.Y36(n.YF),u.Y36(o.x4),u.Y36(c.uw),u.Y36(o.V6),u.Y36(o.F5))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-vo-select-page"]],hostVars:2,hostBindings:function(t,e){2&t&&u.ekj("router-component",e.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"],["mat-flat-button","","color","accent","class","mr-2 action-button","data-cy","new-vo-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"],["mat-flat-button","","color","accent","data-cy","new-vo-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(t,e){1&t&&(u.TgZ(0,"div",0),u._UZ(1,"perun-web-apps-back-button"),u.TgZ(2,"h1",1),u._UZ(3,"mat-icon",2),u._uU(4),u.ALo(5,"translate"),u.qZA(),u.TgZ(6,"perun-web-apps-refresh-button",3),u.NdJ("refresh",function(){return e.refreshTable()}),u.qZA(),u.YNc(7,x,3,3,"button",4),u.YNc(8,R,3,4,"button",5),u.TgZ(9,"perun-web-apps-immediate-filter",6),u.NdJ("filter",function(t){return e.applyFilter(t)}),u.qZA(),u.YNc(10,O,1,0,"mat-spinner",7),u.YNc(11,P,1,6,"perun-web-apps-vos-list",8),u.qZA()),2&t&&(u.xp6(3),u.Q6J("ngStyle",u.DdM(10,D)),u.xp6(1),u.hij(" ",u.lcZ(5,8,"VO_MANAGEMENT.TITLE")," "),u.xp6(3),u.Q6J("ngIf",e.createAuth),u.xp6(1),u.Q6J("ngIf",e.deleteAuth),u.xp6(1),u.Q6J("autoFocus",!0)("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER"),u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading))},directives:[C.W,E.Hw,p.PC,S.t,p.O5,k.L,b.lW,g.$g,I.Z],pipes:[h.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),t})()},73868:function(t,e,i){"use strict";var n=i(30269),s=i(31572),o=i(57629);let r=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-auth-callback"]],decls:0,vars:0,template:function(t,e){},styles:[""]}),t})();var a=i(65249),c=i(68416),l=i(84140),u=i(6527),h=i(48958),d=i(48160),p=i(84608),g=i(25122),f=i(29236),m=i(16073),b=i(61511),_=i(43691),w=i(15980),A=i(67806),y=i(39571),v=i(71522),T=i(84534),C=i(36922);function E(t,e){1&t&&s._UZ(0,"mat-spinner",3)}function S(t,e){1&t&&(s.TgZ(0,"app-alert",4),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"USER_DETAIL.DASHBOARD.NO_RECENTLY_VIEWED")))}const k=function(t){return[t]};function I(t,e){if(1&t&&(s.TgZ(0,"div",7),s.TgZ(1,"a",8),s.TgZ(2,"span",9),s._uU(3),s.qZA(),s._UZ(4,"mat-icon",10),s.TgZ(5,"p",11),s._uU(6),s.qZA(),s.qZA(),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Gre("",t.style," item-itself"),s.s9C("matTooltip",t.tooltip),s.Q6J("routerLink",t.url)("perunWebAppsMiddleClickRouterLink",s.VKq(9,k,t.url)),s.xp6(2),s.Oqu(t.type),s.xp6(1),s.Q6J("svgIcon",t.cssIcon),s.xp6(2),s.Oqu(t.label)}}function x(t,e){if(1&t&&(s.TgZ(0,"div",5),s.YNc(1,I,7,11,"div",6),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngForOf",t.items)}}let R=(()=>{class t{constructor(t,e,i,n){this.vosManager=t,this.groupsManager=e,this.authResolver=i,this.facilitiesManager=n,this.items=[],this.vosIds=[],this.groupsIds=[],this.facilitiesIds=[],this.existingRecentIds=[],this.vos=[],this.groups=[],this.facilities=[]}ngOnInit(){this.loading=!0,this.recentItems=(0,l.vL)("recent");for(const t of this.recentItems)switch(t.type){case"Vo":this.vosIds.push(t.id);break;case"Group":this.groupsIds.push(t.id);break;case"Facility":this.facilitiesIds.push(t.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(t=>{this.vos=t,this.getGroups()}):this.getGroups()}getGroups(){this.authResolver.isAuthorized("getGroupsByIds_List_policy",[])?this.groupsManager.getGroupsByIds(this.groupsIds).subscribe(t=>{this.groups=t,this.getFacilities()}):this.getFacilities()}getFacilities(){this.authResolver.isAuthorized("getFacilitiesByIds_List_policy",[])?this.facilitiesManager.getFacilitiesByIds(this.facilitiesIds).subscribe(t=>{this.facilities=t,this.addRecentlyViewedToDashboard()}):this.addRecentlyViewedToDashboard()}addRecentlyViewedToDashboard(){for(const t of this.recentItems)switch(t.type){case"Vo":{const e=this.vos.filter(e=>e.id===t.id)[0];e&&this.items.push({cssIcon:"perun-vo",url:`/organizations/${e.id}`,label:e.name,tooltip:e.name,style:"vo-btn",type:"Organization"});break}case"Group":{const e=this.groups.filter(e=>e.id===t.id)[0];e&&this.items.push({cssIcon:"perun-group",url:`/organizations/${e.voId}/groups/${e.id}`,label:e.shortName,tooltip:`${t.voName} : ${e.name.replace(/:/g," : ")}`,style:"group-btn",type:"Group"});break}case"Facility":{const e=this.facilities.filter(e=>e.id===t.id)[0];e&&this.items.push({cssIcon:"perun-facility-white",url:`/facilities/${e.id}`,label:e.name,tooltip:e.name,style:"facility-btn",type:"Facility"});break}}this.loading=!1}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(a.YF),s.Y36(a.ff),s.Y36(c.x4),s.Y36(a.IQ))},t.\u0275cmp=s.Xpm({type:t,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","perunWebAppsMiddleClickRouterLink","matTooltip"],[1,"item-type"],[1,"item-pic","perun-icon",3,"svgIcon"],[1,"truncate"]],template:function(t,e){1&t&&(s.YNc(0,E,1,0,"mat-spinner",0),s.YNc(1,S,3,3,"app-alert",1),s.YNc(2,x,2,1,"div",2)),2&t&&(s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",0===e.items.length&&!e.loading),s.xp6(1),s.Q6J("ngIf",e.items.length>0))},directives:[b.O5,A.$g,y.w,b.sg,v.wG,o.yS,T.YH,C.gM,_.Hw],pipes:[d.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%]{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap}"]}),t})();var O=i(97162),P=i(78364),D=i(88884),M=i(60007);function L(t,e){1&t&&s._UZ(0,"mat-spinner",7)}const N=function(){return["id","recent","shortName","name"]};function z(t,e){if(1&t&&(s.TgZ(0,"span"),s._UZ(1,"perun-web-apps-vos-list",8),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("pageSizeOptions",null)("displayedColumns",s.DdM(4,N))("recentIds",t.recentIds)("vos",t.objects)}}const Z=function(){return["id","recent","vo","name","description"]};function B(t,e){if(1&t&&(s.TgZ(0,"span"),s._UZ(1,"perun-web-apps-groups-list",9),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("pageSizeOptions",null)("groups",t.objects)("recentIds",t.recentIds)("displayedColumns",s.DdM(4,Z))}}const F=function(){return["id","recent","name","vo","facility"]};function U(t,e){if(1&t&&(s.TgZ(0,"span"),s._UZ(1,"perun-web-apps-resources-list",10),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("pageSizeOptions",null)("resources",t.objects)("displayedColumns",s.DdM(5,F))("recentIds",t.recentIds)("routingVo",!0)}}const q=function(){return["id","recent","name","description"]};function H(t,e){if(1&t&&(s.TgZ(0,"span"),s._UZ(1,"perun-web-apps-facilities-list",11),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("pageSizeOptions",null)("facilities",t.objects)("recentIds",t.recentIds)("displayedColumns",s.DdM(4,q))}}function G(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,z,2,5,"span",6),s.YNc(2,B,2,5,"span",6),s.YNc(3,U,2,6,"span",6),s.YNc(4,H,2,5,"span",6),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngIf","Vo"===t.primaryObject),s.xp6(1),s.Q6J("ngIf","Group"===t.primaryObject),s.xp6(1),s.Q6J("ngIf","Resource"===t.primaryObject),s.xp6(1),s.Q6J("ngIf","Facility"===t.primaryObject)}}let j=(()=>{class t{constructor(t,e,i){this.authzResolver=t,this.guiAuthResolver=e,this.resourceService=i,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(t=>{this.objects=t,this.recentIds=(0,l.vL)("vos"),this.loading=!1});break;case"Group":this.authzResolver.getGroupsWhereUserIsInRoles([this.roleName]).subscribe(t=>{this.objects=t,this.recentIds=(0,l.vL)("groups"),this.loading=!1});break;case"Resource":this.resourceService.getRichResourcesByIds(this.role[this.primaryObject]).subscribe(t=>{this.objects=t,this.recentIds=(0,l.vL)("resources"),this.loading=!1});break;case"Facility":this.authzResolver.getFacilitiesWhereUserIsInRoles([this.roleName]).subscribe(t=>{this.objects=t.map(t=>({facility:t})),this.recentIds=(0,l.vL)("facilities"),this.loading=!1});break;default:this.objects=[],this.loading=!1}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(a.Ct),s.Y36(c.x4),s.Y36(a.xk))},t.\u0275cmp=s.Xpm({type:t,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","groups","recentIds","displayedColumns"],[3,"pageSizeOptions","resources","displayedColumns","recentIds","routingVo"],[3,"pageSizeOptions","facilities","recentIds","displayedColumns"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s._UZ(2,"mat-icon",2),s._uU(3),s.ALo(4,"translate"),s.TgZ(5,"span",3),s.ALo(6,"translate"),s.TgZ(7,"mat-icon",4),s._uU(8,"info_outline"),s.qZA(),s.qZA(),s.qZA(),s.YNc(9,L,1,0,"mat-spinner",5),s.YNc(10,G,5,4,"div",6),s.qZA()),2&t&&(s.xp6(2),s.Q6J("svgIcon",e.svgIcon),s.xp6(1),s.hij(" ",s.lcZ(4,5,e.title)," "),s.xp6(2),s.s9C("matTooltip",s.lcZ(6,7,e.roleTooltipInfo)),s.xp6(4),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[_.Hw,C.gM,b.O5,A.$g,O.Z,P.W,D.C,M.X],pipes:[d.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}"]}),t})();var Y=i(22196);function K(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"mat-checkbox",8),s.NdJ("change",function(e){const i=s.CHM(t).$implicit,n=s.oxw();return e?n.changeRoleView(i):null}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.Q6J("checked",i.isRoleShowed(t)),s.xp6(1),s.Oqu(s.lcZ(3,2,"USER_DETAIL.DASHBOARD.CARD_TITLE_"+t))}}function V(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",15),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).rightSettingOpened=!0}),s.TgZ(1,"mat-icon"),s._uU(2,"settings"),s.qZA(),s.qZA()}}function $(t,e){1&t&&(s.TgZ(0,"span"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO_NO_USER_PROFILE")))}function J(t,e){1&t&&(s.TgZ(0,"span"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO")))}function Q(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",23),s.NdJ("click",function(){return s.CHM(t),s.oxw(3).goToUserProfile()}),s.TgZ(1,"mat-icon",24),s._uU(2,"exit_to_app"),s.qZA(),s._uU(3),s.ALo(4,"translate"),s.qZA()}if(2&t){const t=s.oxw(3);s.xp6(3),s.AsE("",s.lcZ(4,2,"USER_DETAIL.DASHBOARD.GO_TO_USER_PROFILE")," ",t.userProfileName," ")}}const W=function(){return["/myProfile"]};function X(t,e){if(1&t&&(s.TgZ(0,"div"),s.TgZ(1,"div",16),s.TgZ(2,"div",17),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.TgZ(5,"div",18),s.YNc(6,$,3,3,"span",14),s.YNc(7,J,3,3,"span",14),s.qZA(),s.TgZ(8,"div",19),s.TgZ(9,"button",20),s._UZ(10,"mat-icon",21),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.YNc(13,Q,5,4,"button",22),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.oxw(2);s.xp6(3),s.hij(" ",s.lcZ(4,6,"USER_DETAIL.DASHBOARD.NOT_MANAGER")," "),s.xp6(3),s.Q6J("ngIf",!t.userProfileUrl),s.xp6(1),s.Q6J("ngIf",t.userProfileUrl),s.xp6(2),s.Q6J("routerLink",s.DdM(10,W)),s.xp6(2),s.hij(" ",s.lcZ(12,8,"USER_DETAIL.DASHBOARD.GO_TO_MY_PROFILE")," "),s.xp6(2),s.Q6J("ngIf",t.userProfileUrl)}}function tt(t,e){1&t&&(s.TgZ(0,"span"),s.TgZ(1,"div",3),s._uU(2),s.ALo(3,"translate"),s.qZA(),s._UZ(4,"app-perun-web-apps-dashboard-recently-viewed-button-field"),s.qZA()),2&t&&(s.xp6(2),s.hij(" ",s.lcZ(3,1,"USER_DETAIL.DASHBOARD.RECENTLY_VIEWED")," "))}function et(t,e){1&t&&(s.TgZ(0,"div",27),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"USER_DETAIL.DASHBOARD.MANAGEABLE_ENTITIES")," "))}function it(t,e){if(1&t&&s._UZ(0,"app-perun-web-apps-dashboard-card",30),2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Q6J("roleName",t)("role",e.roles[t])}}function nt(t,e){if(1&t&&(s.TgZ(0,"div",28),s.YNc(1,it,1,2,"app-perun-web-apps-dashboard-card",29),s.qZA()),2&t){const t=e.$implicit,i=s.oxw(3);s.xp6(1),s.Q6J("ngIf",i.isRoleShowed(t))}}function st(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,tt,5,3,"span",14),s.YNc(2,et,3,3,"div",25),s.TgZ(3,"div"),s.YNc(4,nt,2,1,"div",26),s.qZA(),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("ngIf",t.recentlyViewedShow),s.xp6(1),s.Q6J("ngIf",t.rolesToHide.toString()!==t.roleNames.toString()),s.xp6(2),s.Q6J("ngForOf",t.roleNames)}}function ot(t,e){if(1&t&&(s.TgZ(0,"div",9),s.TgZ(1,"h1",10),s._UZ(2,"mat-icon",11),s.TgZ(3,"span",12),s._uU(4),s.ALo(5,"translate"),s.ALo(6,"userFullName"),s.qZA(),s.YNc(7,V,3,0,"button",13),s.qZA(),s.YNc(8,X,14,11,"div",14),s.YNc(9,st,5,3,"div",14),s.qZA()),2&t){const t=s.oxw();s.xp6(4),s.AsE("",s.lcZ(5,5,"USER_DETAIL.DASHBOARD.TITLE")," ",s.lcZ(6,7,t.user),""),s.xp6(3),s.Q6J("ngIf",!t.isOnlySelfRole),s.xp6(1),s.Q6J("ngIf",t.isOnlySelfRole),s.xp6(1),s.Q6J("ngIf",!t.isOnlySelfRole)}}let rt=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,l){this.userManager=t,this.storeService=e,this.sideMenuService=i,this.route=n,this.router=s,this.notificator=o,this.translateService=r,this.dialog=a,this.apiRequestConfiguration=c,this.otherApplicationService=l,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"],r.get("USER_DETAIL.DASHBOARD.MAIL_CHANGE_SUCCESS").subscribe(t=>this.mailSuccessMessage=t)}ngOnInit(){this.sideMenuService.setHomeItems([]),this.validatePreferredMailChange(),this.user=this.storeService.getPerunPrincipal().user,this.roles=this.storeService.getPerunPrincipal().roles,this.getUserProfile();const t=Object.keys(this.roles);this.isOnlySelfRole=t.toString()===["SELF"].toString(),this.roleNames=this.allowedRoles.filter(e=>t.includes(e)),this.getDashboardSettings()}validatePreferredMailChange(){const t=this.route.snapshot.queryParamMap,e=t.get("token"),i=t.get("u");e&&i&&(this.apiRequestConfiguration.dontHandleErrorForNext(),this.userManager.validatePreferredEmailChangeWithToken(e,Number.parseInt(i,10)).subscribe(()=>{this.notificator.showSuccess(this.mailSuccessMessage),this.router.navigate([],{replaceUrl:!0})},()=>{const t=(0,l.kZ)();t.width="600px",this.dialog.open(u.qD,t).afterClosed().subscribe(()=>{this.getDashboardSettings()})}))}goToUserProfile(){window.open(this.userProfileUrl)}recentlyViewedChanged(){localStorage.setItem("showRecentlyViewed",JSON.stringify(this.recentlyViewedShow))}getDashboardSettings(){const t=JSON.parse(localStorage.getItem("showRecentlyViewed"));this.recentlyViewedShow=null===t||t;const e=JSON.parse(localStorage.getItem("rolesToHide"));this.rolesToHide=null===e?[]:e}changeRoleView(t){if(this.isRoleShowed(t)){const e=[];for(const i of this.roleNames)this.isRoleShowed(i)||e.push(i),i===t&&e.push(i);this.rolesToHide=e}else this.rolesToHide=this.rolesToHide.filter(e=>e!==t);localStorage.setItem("rolesToHide",JSON.stringify(this.rolesToHide))}isRoleShowed(t){for(const e of this.rolesToHide)if(e===t)return!1;return!0}getUserProfile(){this.userProfileUrl=this.otherApplicationService.getUrlForOtherApplication("profile"),this.userProfileName=this.storeService.get("profile_label_en")}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(a.Fv),s.Y36(c.d6),s.Y36(h.D),s.Y36(o.gz),s.Y36(o.F0),s.Y36(c.V6),s.Y36(d.sK),s.Y36(p.uw),s.Y36(c.F5),s.Y36(c.jq))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-perun-web-apps-user-dashboard"]],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("router-component",e.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"],["mat-stroked-button","","class","ml-auto text-bigger",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"],["mat-stroked-button","","class","text-bigger ml-2 mt-2",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(t,e){1&t&&(s.TgZ(0,"mat-sidenav-container",0),s.TgZ(1,"mat-sidenav",1),s.NdJ("openedChange",function(t){return e.rightSettingOpened=t}),s.TgZ(2,"div",2),s.TgZ(3,"div",3),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"div"),s.TgZ(7,"mat-checkbox",4),s.NdJ("ngModelChange",function(t){return e.recentlyViewedShow=t})("change",function(t){return t?e.recentlyViewedChanged():null}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.qZA(),s.TgZ(10,"div",5),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.YNc(13,K,4,4,"div",6),s.qZA(),s.qZA(),s.TgZ(14,"mat-sidenav-content"),s.YNc(15,ot,10,9,"div",7),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Q6J("opened",e.rightSettingOpened),s.xp6(3),s.Oqu(s.lcZ(5,7,"USER_DETAIL.DASHBOARD.DASHBOARD_SETTINGS")),s.xp6(3),s.Q6J("ngModel",e.recentlyViewedShow),s.xp6(1),s.Oqu(s.lcZ(9,9,"USER_DETAIL.DASHBOARD.SHOW_RECENTLY_VIEWED")),s.xp6(3),s.Oqu(s.lcZ(12,11,"USER_DETAIL.DASHBOARD.SHOW_ROLES")),s.xp6(2),s.Q6J("ngForOf",e.roleNames),s.xp6(2),s.Q6J("ngIf",void 0!==e.user))},directives:[g.TM,g.JX,f.oG,m.JJ,m.On,b.sg,g.Rh,b.O5,_.Hw,w.lW,o.rH,R,j],pipes:[d.X$,Y.d],styles:[".dashboard-container[_ngcontent-%COMP%]{-moz-columns:300px 2;columns:300px 2;grid-column-gap:1rem;-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 - 34px - 200px);margin-bottom:-60px!important;padding-bottom:50px;top:-10px!important;left:0;right:0}"]}),t})();var at=i(66297);let ct=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s._UZ(1,"perun-web-apps-back-button"),s.TgZ(2,"h1",1),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(3),s.Oqu(s.lcZ(4,1,"GENERAL.PAGE_NOT_FOUND.TITLE")))},directives:[at.W],pipes:[d.X$],styles:[""]}),t})();var lt=i(41939),ut=i(66283),ht=i(80340),dt=i(22727);let pt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[b.ez,w.ot,_.Ps,o.Bz,lt.ez,d.aw,ut.lN,m.UX,ht.c,dt.r]]}),t})(),gt=(()=>{class t{constructor(t){this.auth=t}startAuth(){this.auth.startAuthentication()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(c.e8))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.TgZ(3,"h4",3),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"button",4),s.NdJ("click",function(){return e.startAuth()}),s._uU(7),s.ALo(8,"translate"),s.TgZ(9,"mat-icon"),s._uU(10," login "),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(4),s.hij(" ",s.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),s.xp6(3),s.hij(" ",s.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},directives:[w.lW,_.Hw],pipes:[d.X$],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),t})();var ft=i(67474);function mt(t,e){if(1&t&&(s.TgZ(0,"div",8),s._UZ(1,"div",9),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("innerHTML",t.logo,s.oJD)}}function bt(t,e){if(1&t&&(s.TgZ(0,"div",10),s._UZ(1,"div",11),s._UZ(2,"mat-icon",12),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("innerHTML",t.logo,s.oJD)}}function _t(t,e){if(1&t&&(s.TgZ(0,"div",8),s._UZ(1,"a",9),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("innerHTML",t.logo,s.oJD)}}const wt=function(t){return{color:t}};function At(t,e){if(1&t&&(s.TgZ(0,"p",13),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.Q6J("ngStyle",s.VKq(2,wt,t.textColor)),s.xp6(1),s.hij(" ",t.headerTitle," ")}}const yt=function(t,e){return{background:t,color:e}},vt=function(t,e){return{"min-height":t,"background-color":e}};let Tt=(()=>{class t{constructor(t,e,i,n){this.storeService=t,this.sanitizer=e,this.preferredLangService=i,this.translateService=n,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 t=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(t)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(c.d6),s.Y36(n.H7),s.Y36(c.BN),s.Y36(d.sK))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:11,vars:12,consts:[["id","login-nav",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["style"," display: flex; flex-direction: 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"],[2,"display","flex","flex-direction","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(t,e){1&t&&(s.TgZ(0,"div",0),s.YNc(1,mt,2,1,"div",1),s.YNc(2,bt,3,1,"div",2),s.YNc(3,_t,2,1,"div",1),s.YNc(4,At,2,4,"p",3),s.qZA(),s.TgZ(5,"div",4),s.TgZ(6,"div",5),s.TgZ(7,"div",6),s._UZ(8,"router-outlet"),s.qZA(),s.TgZ(9,"div",7),s._UZ(10,"perun-web-apps-footer"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Q6J("ngStyle",s.WLB(6,yt,e.headerBackgroundColor,e.headerTextColor)),s.xp6(1),s.Q6J("ngIf","admin-gui"===e.application),s.xp6(1),s.Q6J("ngIf","publications"===e.application),s.xp6(1),s.Q6J("ngIf","user-profile"===e.application),s.xp6(1),s.Q6J("ngIf",!!e.headerTitle),s.xp6(2),s.Q6J("ngStyle",s.WLB(9,vt,e.getContentInnerMinHeight(),e.contentBackgroundColor)))},directives:[b.PC,b.O5,o.lC,ft.$,_.Hw],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}"]}),t})();function Ct(t,e){1&t&&(s.TgZ(0,"app-alert",8),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}const Et=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"redirect",component:lt.t$},{path:"api-callback",component:r},{path:"login",component:gt},{path:"service-access",component:(()=>{class t{constructor(t,e,i){this.authzService=t,this.dialog=e,this.translate=i,this.wrongUsernameOrPassword=!1}ngOnInit(){this.usernameCtrl=new m.NI(null,[m.kI.required]),this.passwordCtrl=new m.NI(null,[m.kI.required])}startAuth(){sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe(t=>{sessionStorage.setItem("baPrincipal",JSON.stringify(t)),location.reload()},()=>{this.wrongUsernameOrPassword=!0})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(a.Ct),s.Y36(p.uw),s.Y36(d.sK))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.TgZ(3,"h2"),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.YNc(6,Ct,3,3,"app-alert",3),s.TgZ(7,"mat-form-field",4),s.TgZ(8,"mat-label"),s._uU(9),s.ALo(10,"translate"),s.qZA(),s._UZ(11,"input",5),s.TgZ(12,"mat-error"),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.qZA(),s.TgZ(15,"mat-form-field",4),s.TgZ(16,"mat-label"),s._uU(17),s.ALo(18,"translate"),s.qZA(),s._UZ(19,"input",6),s.TgZ(20,"mat-error"),s._uU(21),s.ALo(22,"translate"),s.qZA(),s.qZA(),s.TgZ(23,"button",7),s.NdJ("click",function(){return e.startAuth()}),s._uU(24),s.ALo(25,"translate"),s.TgZ(26,"mat-icon"),s._uU(27," login "),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(4),s.Oqu(s.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),s.xp6(2),s.Q6J("ngIf",e.wrongUsernameOrPassword),s.xp6(3),s.Oqu(s.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),s.xp6(2),s.Q6J("formControl",e.usernameCtrl),s.xp6(2),s.hij(" ",s.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),s.xp6(4),s.Oqu(s.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),s.xp6(2),s.Q6J("formControl",e.passwordCtrl)("type","password"),s.xp6(2),s.hij(" ",s.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),s.xp6(2),s.Q6J("disabled",e.usernameCtrl.invalid||e.passwordCtrl.invalid),s.xp6(1),s.hij(" ",s.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},directives:[b.O5,ut.KE,ut.hX,ht.Nt,m.Fj,m.Q7,m.JJ,m.oH,ut.TO,w.lW,_.Hw,y.w],pipes:[d.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}"]}),t})()},{path:"organizations",loadChildren:()=>Promise.all([i.e(917),i.e(202),i.e(827),i.e(427)]).then(i.bind(i,67427)).then(t=>t.VosModule)},{path:"admin",loadChildren:()=>Promise.all([i.e(917),i.e(515),i.e(202),i.e(781)]).then(i.bind(i,21781)).then(t=>t.AdminModule)},{path:"facilities",loadChildren:()=>Promise.all([i.e(917),i.e(515),i.e(202),i.e(781),i.e(827),i.e(749)]).then(i.bind(i,89749)).then(t=>t.FacilitiesModule)},{path:"myProfile",loadChildren:()=>Promise.all([i.e(917),i.e(515)]).then(i.bind(i,65515)).then(t=>t.UsersModule)},{path:"home",component:rt},{path:"**",component:ct}];let St=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[o.Bz.forRoot(Et,{preloadingStrategy:o.GZ,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})],o.Bz]}),t})();var kt=i(61601),It=i(28780);class xt{constructor(t,e="/assets/i18n/",i=".json"){this.http=t,this.prefix=e,this.suffix=i}getTranslation(t){return this.http.get(`${this.prefix}${t}${this.suffix}`)}}var Rt=i(29063),Ot=i(43490);let Pt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[c.e8],imports:[[b.ez]]}),t})();var Dt=i(28940),Mt=i(48002),Lt=i(40659),Nt=i(62284),zt=i(7433),Zt=i(82044),Bt=i(11930),Ft=i(39124),Ut=i(64467),qt=i(81835),Ht=i(88227),Gt=i(97397),jt=i(71313),Yt=i(14527),Kt=i(65423),Vt=i(17249),$t=i(73916),Jt=i(48666);let Qt=(()=>{class t{constructor(){this.allowCachePages=[{type:"vo",components:[Dt.y.id,Mt.G.id,Lt.c.id,Ht.z.id,Gt.z.id,Yt.w.id,Jt.T.id]},{type:"group",components:[Bt.y.id,Zt.u.id,zt.q.id,Nt.W.id,Kt.Z.id]},{type:"facility",components:[Ft.o.id,Ut.f.id]},{type:"member",components:[qt.j.id]},{type:"admin",components:[jt.t.id]},{type:"entitySelect",components:[Vt.Y.id,$t.P.id]}],this.cacheTimeMs=3e5,this.resets=[{lastValue:null,resetType:"vo",resetPath:":voId",param:"voId"},{lastValue:null,resetType:"group",resetPath:":voId/groups/:groupId",param:"groupId"},{lastValue:null,resetType:"facility",resetPath:":facilityId",param:"facilityId"},{lastValue:null,resetType:"member",resetPath:":voId/members/:memberId",param:"memberId"},{lastValue:null,resetType:"admin",resetPath:"admin/users"}],this.isUserNavigatingBack=!1,this.typeToComponentToHandlers=new Map;for(const t of this.allowCachePages)this.typeToComponentToHandlers.set(t.type,new Map)}setLastNavigationType(t){this.isUserNavigatingBack="back"===t}checkResets(t){const e=this.getPath(t);for(const i of this.resets)if(i.resetPath===e){const e=t.params[i.param];null!==i.lastValue&&i.lastValue!==e&&this.typeToComponentToHandlers.get(i.resetType).clear(),i.lastValue=e}}shouldReuseRoute(t,e){return this.checkResets(e),t.routeConfig===e.routeConfig}retrieve(t){if(t.component){const e=this.getComponentName(t.component);for(const t of this.allowCachePages)if(-1!==t.components.indexOf(e)){const i=this.typeToComponentToHandlers.get(t.type).get(e);return void 0===i?null:i.routeHandle}}return null}shouldAttach(t){if(!this.isUserNavigatingBack)return!1;if(t.component){const e=this.getComponentName(t.component);for(const t of this.allowCachePages){const i=this.typeToComponentToHandlers.get(t.type).get(e);if(void 0!==i&&this.getCurrentTimestamp()-i.saveTimeStamp0;)document.getElementsByTagName("mat-tooltip-component")[0].remove();const i=this.getComponentType(t);this.typeToComponentToHandlers.get(i).set(this.getComponentName(t.component),{routeHandle:e,saveTimeStamp:this.getCurrentTimestamp()})}}getCurrentTimestamp(){return+Date.now()}getComponentName(t){return t.id}getComponentType(t){const e=this.getComponentName(t.component);for(const i of this.allowCachePages)if(-1!==i.components.indexOf(e))return i.type;return null}getPath(t){return null!==t.routeConfig&&null!==t.routeConfig.path?t.routeConfig.path:""}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const Wt=new s.OlP("perun-api-service");let Xt=(()=>{class t{constructor(t,e,i,n,s){this.http=t,this.storeService=e,this.authzSevice=i,this.titleService=n,this.utilsService=s}initializeColors(t,e){return new Promise(i=>{e.forEach(t=>{const e=this.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e)}),t.forEach(t=>{const e=this.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e),this.setEntityTheme(t.entity,e)}),i()})}setEntityTheme(t,e){const i=(n=e,[te(tinycolor(n).lighten(52),"50"),te(tinycolor(n).lighten(37),"100"),te(tinycolor(n).lighten(26),"200"),te(tinycolor(n).lighten(12),"300"),te(tinycolor(n).lighten(6),"400"),te(tinycolor(n),"500"),te(tinycolor(n).darken(6),"600"),te(tinycolor(n).darken(12),"700"),te(tinycolor(n).darken(18),"800"),te(tinycolor(n).darken(24),"900"),te(tinycolor(n).lighten(50).saturate(30),"A100"),te(tinycolor(n).lighten(30).saturate(30),"A200"),te(tinycolor(n).lighten(10).saturate(15),"A400"),te(tinycolor(n).lighten(5).saturate(5),"A700")]);var n;for(const s of i){const e=`--${t}-theme-primary-contrast-${s.name}`,i=s.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${t}-theme-primary-${s.name}`,`${s.red},${s.green},${s.blue}`),document.documentElement.style.setProperty(e,i)}}loadAppDefaultConfig(){return new Promise(t=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(e=>{this.storeService.setDefaultConfig(e),t()})})}loadAppInstanceConfig(){return new Promise(t=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(e=>{this.storeService.setInstanceConfig(e);const i=document.location.hostname;void 0!==e.brandings&&void 0!==e.brandings[i]&&this.storeService.setBanding(i),t()},()=>{console.log("instance config not detected"),t()})})}getNoCacheHeaders(){return new Rt.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(t=>{const e=document.querySelector("link[rel*='icon']")||document.createElement("link");e.type="image/x-icon",e.rel="shortcut icon",e.href=this.storeService.get("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(e),t()})}setApiUrl(){return new Promise(t=>{let e=this.storeService.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(e=e.replace("oauth","ba")),this.authzSevice.configuration.basePath=e,this.titleService.setTitle(this.storeService.get("document_title")),t()})}loadAppsConfig(){return new Promise((t,e)=>{this.utilsService.getAppsConfig().subscribe(e=>{this.storeService.setAppsConfig(e),t()},t=>e(t))})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Rt.eN),s.LFG(c.d6),s.LFG(a.Ct),s.LFG(n.Dx),s.LFG(a.FW))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function te(t,e){const i=tinycolor(t),n=i.toRgb();return{name:e,hex:i.toHexString(),darkContrast:i.isLight(),red:n.r,green:n.g,blue:n.b}}let ee=(()=>{class t{constructor(t,e){this.data=t,this.location=e}redirect(){this.location.go("/"),location.reload()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(p.WI),s.Y36(b.Ye))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-prevent-proxy-overload-dialog"]],decls:10,vars:9,consts:[[3,"click"]],template:function(t,e){1&t&&(s.TgZ(0,"h2"),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"p"),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"div"),s.TgZ(7,"button",0),s.NdJ("click",function(){return e.redirect()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,3,e.data.title),"\n"),s.xp6(3),s.hij(" ",s.lcZ(5,5,e.data.message),"\n"),s.xp6(4),s.hij(" ",s.lcZ(9,7,e.data.action)," "))},pipes:[d.X$],styles:[""]}),t})(),ie=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}refresh(){location.reload()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(p.so),s.Y36(p.WI))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-server-down-dialog"]],decls:10,vars:9,consts:[[3,"click"]],template:function(t,e){1&t&&(s.TgZ(0,"h2"),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"p"),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"div"),s.TgZ(7,"button",0),s.NdJ("click",function(){return e.refresh()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,3,e.data.title),"\n"),s.xp6(3),s.hij(" ",s.lcZ(5,5,e.data.message),"\n"),s.xp6(4),s.hij(" ",s.lcZ(9,7,e.data.action)," "))},pipes:[d.X$],styles:[""]}),t})(),ne=(()=>{class t{constructor(t,e,i,n,s,o){this.initAuthService=t,this.appConfigService=e,this.authzSevice=i,this.dialog=n,this.location=s,this.guiAuthResolver=o,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(t=>{if("Invalid path"!==t)throw console.error(t),this.location.go("/"),location.reload(),t;this.handleErr(t)}).then(t=>t?this.initAuthService.loadPrincipal().catch(t=>this.handleErr(t)).then(()=>this.loadPolicies()).then(()=>this.appConfigService.loadAppsConfig()).then(()=>this.guiAuthResolver.loadRolesManagementRules()):this.initAuthService.handleAuthStart())}handleErr(t){const e=(0,l.kZ)();throw"Invalid path"===t?(e.data={title:"GENERAL.PROXY_OVERLOAD_PREVENTION.TITLE",message:"GENERAL.PROXY_OVERLOAD_PREVENTION.MESSAGE",action:"GENERAL.PROXY_OVERLOAD_PREVENTION.ACTION"},this.dialog.open(ee,e)):(e.data={title:"GENERAL.PRINCIPAL_ERROR.TITLE",message:0===t.status?"GENERAL.PRINCIPAL_ERROR.MESSAGE":t.message,action:"GENERAL.PRINCIPAL_ERROR.ACTION"},this.dialog.open(ie,e)),console.error(t),t}loadPolicies(){return new Promise((t,e)=>{this.authzSevice.getAllPolicies().subscribe(e=>{this.guiAuthResolver.setPerunPolicies(e),t()},t=>e(t))})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(c.v0),s.LFG(Xt),s.LFG(a.Ct),s.LFG(p.uw),s.LFG(b.Ye),s.LFG(c.x4))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),se=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[b.ez,p.Is,w.ot,d.aw]]}),t})();var oe=i(64762),re=i(55959),ae=i(87254),ce=i(31906),le=i(30810),ue=i(25416),he=i(98720),de=i(88414);function pe(t){return getComputedStyle(t)}function ge(t,e){for(var i in e){var n=e[i];"number"==typeof n&&(n+="px"),t.style[i]=n}return t}function fe(t){var e=document.createElement("div");return e.className=t,e}var me="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function be(t,e){if(!me)throw new Error("No element matching method supported");return me.call(t,e)}function _e(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function we(t,e){return Array.prototype.filter.call(t.children,function(t){return be(t,e)})}var Ae=function(t){return"ps__thumb-"+t},ye=function(t){return"ps__rail-"+t},ve=function(t){return"ps--active-"+t},Te=function(t){return"ps--scrolling-"+t},Ce={x:null,y:null};function Ee(t,e){var i=t.element.classList,n=Te(e);i.contains(n)?clearTimeout(Ce[e]):i.add(n)}function Se(t,e){Ce[e]=setTimeout(function(){return t.isAlive&&t.element.classList.remove(Te(e))},t.settings.scrollingThreshold)}var ke=function(t){this.element=t,this.handlers={}},Ie={isEmpty:{configurable:!0}};ke.prototype.bind=function(t,e){void 0===this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e),this.element.addEventListener(t,e,!1)},ke.prototype.unbind=function(t,e){var i=this;this.handlers[t]=this.handlers[t].filter(function(n){return!(!e||n===e)||(i.element.removeEventListener(t,n,!1),!1)})},ke.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)},Ie.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every(function(e){return 0===t.handlers[e].length})},Object.defineProperties(ke.prototype,Ie);var xe=function(){this.eventElements=[]};function Re(t){if("function"==typeof window.CustomEvent)return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}function Oe(t,e,i,n,s){var o;if(void 0===n&&(n=!0),void 0===s&&(s=!1),"top"===e)o=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==e)throw new Error("A proper axis should be provided");o=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(t,e,i,n,s){var o=i[0],r=i[1],a=i[2],c=i[3],l=i[4],u=i[5];void 0===n&&(n=!0),void 0===s&&(s=!1);var h=t.element;t.reach[c]=null,h[a]<1&&(t.reach[c]="start"),h[a]>t[o]-t[r]-1&&(t.reach[c]="end"),e&&(h.dispatchEvent(Re("ps-scroll-"+c)),e<0?h.dispatchEvent(Re("ps-scroll-"+l)):e>0&&h.dispatchEvent(Re("ps-scroll-"+u)),n&&function(t,e){Ee(t,e),Se(t,e)}(t,c)),t.reach[c]&&(e||s)&&h.dispatchEvent(Re("ps-"+c+"-reach-"+t.reach[c]))}(t,i,o,n,s)}function Pe(t){return parseInt(t,10)||0}xe.prototype.eventElement=function(t){var e=this.eventElements.filter(function(e){return e.element===t})[0];return e||(e=new ke(t),this.eventElements.push(e)),e},xe.prototype.bind=function(t,e,i){this.eventElement(t).bind(e,i)},xe.prototype.unbind=function(t,e,i){var n=this.eventElement(t);n.unbind(e,i),n.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(n),1)},xe.prototype.unbindAll=function(){this.eventElements.forEach(function(t){return t.unbindAll()}),this.eventElements=[]},xe.prototype.once=function(t,e,i){var n=this.eventElement(t),s=function(t){n.unbind(e,s),i(t)};n.bind(e,s)};var De={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function Me(t){var e=t.element,i=Math.floor(e.scrollTop),n=e.getBoundingClientRect();t.containerWidth=Math.ceil(n.width),t.containerHeight=Math.ceil(n.height),t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(we(e,ye("x")).forEach(function(t){return _e(t)}),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(we(e,ye("y")).forEach(function(t){return _e(t)}),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),function(t,e){var i={width:e.railXWidth},n=Math.floor(t.scrollTop);i.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:t.scrollLeft,e.isScrollbarXUsingBottom?i.bottom=e.scrollbarXBottom-n:i.top=e.scrollbarXTop+n,ge(e.scrollbarXRail,i);var s={top:n,height:e.railYHeight};e.isScrollbarYUsingRight?s.right=e.isRtl?e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth-9:e.scrollbarYRight-t.scrollLeft:s.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+2*e.containerWidth-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:e.scrollbarYLeft+t.scrollLeft,ge(e.scrollbarYRail,s),ge(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),ge(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}(e,t),t.scrollbarXActive?e.classList.add(ve("x")):(e.classList.remove(ve("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?e.classList.add(ve("y")):(e.classList.remove(ve("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)}function Le(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function Ne(t,e){var i=e[0],n=e[1],s=e[2],o=e[3],r=e[4],a=e[5],c=e[6],l=e[7],u=e[8],h=t.element,d=null,p=null,g=null;function f(e){e.touches&&e.touches[0]&&(e[s]=e.touches[0].pageY),h[c]=d+g*(e[s]-p),Ee(t,l),Me(t),e.stopPropagation(),e.preventDefault()}function m(){Se(t,l),t[u].classList.remove("ps--clicking"),t.event.unbind(t.ownerDocument,"mousemove",f)}function b(e,r){d=h[c],r&&e.touches&&(e[s]=e.touches[0].pageY),p=e[s],g=(t[n]-t[i])/(t[o]-t[a]),r?t.event.bind(t.ownerDocument,"touchmove",f):(t.event.bind(t.ownerDocument,"mousemove",f),t.event.once(t.ownerDocument,"mouseup",m),e.preventDefault()),t[u].classList.add("ps--clicking"),e.stopPropagation()}t.event.bind(t[r],"mousedown",function(t){b(t)}),t.event.bind(t[r],"touchstart",function(t){b(t,!0)})}var ze={"click-rail":function(t){t.event.bind(t.scrollbarY,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarYRail,"mousedown",function(e){var i=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top;t.element.scrollTop+=(i>t.scrollbarYTop?1:-1)*t.containerHeight,Me(t),e.stopPropagation()}),t.event.bind(t.scrollbarX,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarXRail,"mousedown",function(e){var i=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left;t.element.scrollLeft+=(i>t.scrollbarXLeft?1:-1)*t.containerWidth,Me(t),e.stopPropagation()})},"drag-thumb":function(t){Ne(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),Ne(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(t){var e=t.element;t.event.bind(t.ownerDocument,"keydown",function(i){if(!(i.isDefaultPrevented&&i.isDefaultPrevented()||i.defaultPrevented)&&(be(e,":hover")||be(t.scrollbarX,":focus")||be(t.scrollbarY,":focus"))){var n,s=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(s){if("IFRAME"===s.tagName)s=s.contentDocument.activeElement;else for(;s.shadowRoot;)s=s.shadowRoot.activeElement;if(be(n=s,"input,[contenteditable]")||be(n,"select,[contenteditable]")||be(n,"textarea,[contenteditable]")||be(n,"button,[contenteditable]"))return}var o=0,r=0;switch(i.which){case 37:o=i.metaKey?-t.contentWidth:i.altKey?-t.containerWidth:-30;break;case 38:r=i.metaKey?t.contentHeight:i.altKey?t.containerHeight:30;break;case 39:o=i.metaKey?t.contentWidth:i.altKey?t.containerWidth:30;break;case 40:r=i.metaKey?-t.contentHeight:i.altKey?-t.containerHeight:-30;break;case 32:r=i.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:r=t.containerHeight;break;case 34:r=-t.containerHeight;break;case 36:r=t.contentHeight;break;case 35:r=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==o||t.settings.suppressScrollY&&0!==r||(e.scrollTop-=r,e.scrollLeft+=o,Me(t),function(i,n){var s=Math.floor(e.scrollTop);if(0===i){if(!t.scrollbarYActive)return!1;if(0===s&&n>0||s>=t.contentHeight-t.containerHeight&&n<0)return!t.settings.wheelPropagation}var o=e.scrollLeft;if(0===n){if(!t.scrollbarXActive)return!1;if(0===o&&i<0||o>=t.contentWidth-t.containerWidth&&i>0)return!t.settings.wheelPropagation}return!0}(o,r)&&i.preventDefault())}})},wheel:function(t){var e=t.element;function i(i){var n=function(t){var e=t.deltaX,i=-1*t.deltaY;return void 0!==e&&void 0!==i||(e=-1*t.wheelDeltaX/6,i=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(e*=10,i*=10),e!=e&&i!=i&&(e=0,i=t.wheelDelta),t.shiftKey?[-i,-e]:[e,i]}(i),s=n[0],o=n[1];if(!function(t,i,n){if(!De.isWebKit&&e.querySelector("select:focus"))return!0;if(!e.contains(t))return!1;for(var s=t;s&&s!==e;){if(s.classList.contains("ps__child--consume"))return!0;var o=pe(s);if(n&&o.overflowY.match(/(scroll|auto)/)){var r=s.scrollHeight-s.clientHeight;if(r>0&&(s.scrollTop>0&&n<0||s.scrollTop0))return!0}if(i&&o.overflowX.match(/(scroll|auto)/)){var a=s.scrollWidth-s.clientWidth;if(a>0&&(s.scrollLeft>0&&i<0||s.scrollLeft0))return!0}s=s.parentNode}return!1}(i.target,s,o)){var r=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(o?e.scrollTop-=o*t.settings.wheelSpeed:e.scrollTop+=s*t.settings.wheelSpeed,r=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(s?e.scrollLeft+=s*t.settings.wheelSpeed:e.scrollLeft-=o*t.settings.wheelSpeed,r=!0):(e.scrollTop-=o*t.settings.wheelSpeed,e.scrollLeft+=s*t.settings.wheelSpeed),Me(t),(r=r||function(i,n){var s=Math.floor(e.scrollTop),o=0===e.scrollTop,r=s+e.offsetHeight===e.scrollHeight,a=0===e.scrollLeft,c=e.scrollLeft+e.offsetWidth===e.scrollWidth;return!(Math.abs(n)>Math.abs(i)?o||r:a||c)||!t.settings.wheelPropagation}(s,o))&&!i.ctrlKey&&(i.stopPropagation(),i.preventDefault())}}void 0!==window.onwheel?t.event.bind(e,"wheel",i):void 0!==window.onmousewheel&&t.event.bind(e,"mousewheel",i)},touch:function(t){if(De.supportsTouch||De.supportsIePointer){var e=t.element,i={},n=0,s={},o=null;De.supportsTouch?(t.event.bind(e,"touchstart",l),t.event.bind(e,"touchmove",u),t.event.bind(e,"touchend",h)):De.supportsIePointer&&(window.PointerEvent?(t.event.bind(e,"pointerdown",l),t.event.bind(e,"pointermove",u),t.event.bind(e,"pointerup",h)):window.MSPointerEvent&&(t.event.bind(e,"MSPointerDown",l),t.event.bind(e,"MSPointerMove",u),t.event.bind(e,"MSPointerUp",h)))}function r(i,n){e.scrollTop-=n,e.scrollLeft-=i,Me(t)}function a(t){return t.targetTouches?t.targetTouches[0]:t}function c(t){return!(t.pointerType&&"pen"===t.pointerType&&0===t.buttons||(!t.targetTouches||1!==t.targetTouches.length)&&(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function l(t){if(c(t)){var e=a(t);i.pageX=e.pageX,i.pageY=e.pageY,n=(new Date).getTime(),null!==o&&clearInterval(o)}}function u(o){if(c(o)){var l=a(o),u={pageX:l.pageX,pageY:l.pageY},h=u.pageX-i.pageX,d=u.pageY-i.pageY;if(function(t,i,n){if(!e.contains(t))return!1;for(var s=t;s&&s!==e;){if(s.classList.contains("ps__child--consume"))return!0;var o=pe(s);if(n&&o.overflowY.match(/(scroll|auto)/)){var r=s.scrollHeight-s.clientHeight;if(r>0&&(s.scrollTop>0&&n<0||s.scrollTop0))return!0}if(i&&o.overflowX.match(/(scroll|auto)/)){var a=s.scrollWidth-s.clientWidth;if(a>0&&(s.scrollLeft>0&&i<0||s.scrollLeft0))return!0}s=s.parentNode}return!1}(o.target,h,d))return;r(h,d),i=u;var p=(new Date).getTime(),g=p-n;g>0&&(s.x=h/g,s.y=d/g,n=p),function(i,n){var s=Math.floor(e.scrollTop),o=e.scrollLeft,r=Math.abs(i),a=Math.abs(n);if(a>r){if(n<0&&s===t.contentHeight-t.containerHeight||n>0&&0===s)return 0===window.scrollY&&n>0&&De.isChrome}else if(r>a&&(i<0&&o===t.contentWidth-t.containerWidth||i>0&&0===o))return!0;return!0}(h,d)&&o.preventDefault()}}function h(){t.settings.swipeEasing&&(clearInterval(o),o=setInterval(function(){t.isInitialized?clearInterval(o):s.x||s.y?Math.abs(s.x)<.01&&Math.abs(s.y)<.01?clearInterval(o):(r(30*s.x,30*s.y),s.x*=.8,s.y*=.8):clearInterval(o)},10))}}},Ze=function(t,e){var i=this;if(void 0===e&&(e={}),"string"==typeof t&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var n in this.element=t,t.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},e)this.settings[n]=e[n];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var s,o,r=function(){return t.classList.add("ps--focus")},a=function(){return t.classList.remove("ps--focus")};this.isRtl="rtl"===pe(t).direction,!0===this.isRtl&&t.classList.add("ps__rtl"),this.isNegativeScroll=(o=t.scrollLeft,t.scrollLeft=-1,s=t.scrollLeft<0,t.scrollLeft=o,s),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new xe,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=fe(ye("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=fe(Ae("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",r),this.event.bind(this.scrollbarX,"blur",a),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var c=pe(this.scrollbarXRail);this.scrollbarXBottom=parseInt(c.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=Pe(c.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=Pe(c.borderLeftWidth)+Pe(c.borderRightWidth),ge(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=Pe(c.marginLeft)+Pe(c.marginRight),ge(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=fe(ye("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=fe(Ae("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",r),this.event.bind(this.scrollbarY,"blur",a),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var l=pe(this.scrollbarYRail);this.scrollbarYRight=parseInt(l.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=Pe(l.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(t){var e=pe(t);return Pe(e.width)+Pe(e.paddingLeft)+Pe(e.paddingRight)+Pe(e.borderLeftWidth)+Pe(e.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=Pe(l.borderTopWidth)+Pe(l.borderBottomWidth),ge(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=Pe(l.marginTop)+Pe(l.marginBottom),ge(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(t){return ze[t](i)}),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",function(t){return i.onScroll(t)}),Me(this)};Ze.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,ge(this.scrollbarXRail,{display:"block"}),ge(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=Pe(pe(this.scrollbarXRail).marginLeft)+Pe(pe(this.scrollbarXRail).marginRight),this.railYMarginHeight=Pe(pe(this.scrollbarYRail).marginTop)+Pe(pe(this.scrollbarYRail).marginBottom),ge(this.scrollbarXRail,{display:"none"}),ge(this.scrollbarYRail,{display:"none"}),Me(this),Oe(this,"top",0,!1,!0),Oe(this,"left",0,!1,!0),ge(this.scrollbarXRail,{display:""}),ge(this.scrollbarYRail,{display:""}))},Ze.prototype.onScroll=function(t){this.isAlive&&(Me(this),Oe(this,"top",this.element.scrollTop-this.lastScrollTop),Oe(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},Ze.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),_e(this.scrollbarX),_e(this.scrollbarY),_e(this.scrollbarXRail),_e(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},Ze.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(t){return!t.match(/^ps([-_].+|)$/)}).join(" ")};var Be=Ze,Fe=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var i=-1;return t.some(function(t,n){return t[0]===e&&(i=n,!0)}),i}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var i=t(this.__entries__,e),n=this.__entries__[i];return n&&n[1]},e.prototype.set=function(e,i){var n=t(this.__entries__,e);~n?this.__entries__[n][1]=i:this.__entries__.push([e,i])},e.prototype.delete=function(e){var i=this.__entries__,n=t(i,e);~n&&i.splice(n,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var i=0,n=this.__entries__;i0},t.prototype.connect_=function(){Ue&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),je?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){Ue&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,i=void 0===e?"":e;Ge.some(function(t){return!!~i.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),Ke=function(t,e){for(var i=0,n=Object.keys(e);i0},t}(),ni="undefined"!=typeof WeakMap?new WeakMap:new Fe,si=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=Ye.getInstance(),n=new ii(e,i,this);ni.set(this,n)};["observe","unobserve","disconnect"].forEach(function(t){si.prototype[t]=function(){var e;return(e=ni.get(this))[t].apply(e,arguments)}});var oi=void 0!==qe.ResizeObserver?qe.ResizeObserver:si;function ri(t,e){if(1&t&&(s.TgZ(0,"div",3),s._UZ(1,"div",4),s._UZ(2,"div",5),s._UZ(3,"div",6),s._UZ(4,"div",7),s.qZA()),2&t){const t=s.oxw();s.ekj("ps-at-top",t.states.top)("ps-at-left",t.states.left)("ps-at-right",t.states.right)("ps-at-bottom",t.states.bottom),s.xp6(1),s.ekj("ps-indicator-show",t.indicatorY&&t.interaction),s.xp6(1),s.ekj("ps-indicator-show",t.indicatorX&&t.interaction),s.xp6(1),s.ekj("ps-indicator-show",t.indicatorX&&t.interaction),s.xp6(1),s.ekj("ps-indicator-show",t.indicatorY&&t.interaction)}}const ai=["*"],ci=new s.OlP("PERFECT_SCROLLBAR_CONFIG");class li{constructor(t,e,i,n){this.x=t,this.y=e,this.w=i,this.h=n}}class ui{constructor(t,e){this.x=t,this.y=e}}const hi=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class di{constructor(t={}){this.assign(t)}assign(t={}){for(const e in t)this[e]=t[e]}}let pi=(()=>{let t=class{constructor(t,e,i,n,o){this.zone=t,this.differs=e,this.elementRef=i,this.platformId=n,this.defaults=o,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new re.xQ,this.disabled=!1,this.psScrollY=new s.vpe,this.psScrollX=new s.vpe,this.psScrollUp=new s.vpe,this.psScrollDown=new s.vpe,this.psScrollLeft=new s.vpe,this.psScrollRight=new s.vpe,this.psYReachEnd=new s.vpe,this.psYReachStart=new s.vpe,this.psXReachEnd=new s.vpe,this.psXReachStart=new s.vpe}ngOnInit(){if(!this.disabled&&(0,b.NF)(this.platformId)){const t=new di(this.defaults);t.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new Be(this.elementRef.nativeElement,t)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new oi(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{hi.forEach(t=>{const e=t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`);(0,ae.R)(this.elementRef.nativeElement,e).pipe((0,le.e)(20),(0,ue.R)(this.ngDestroy)).subscribe(e=>{this[t].emit(e)})})})}}ngOnDestroy(){(0,b.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&"undefined"!=typeof window&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.instance&&this.instance.destroy()}),this.instance=null)}ngDoCheck(){!this.disabled&&this.configDiff&&(0,b.NF)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(t){t.disabled&&!t.disabled.isFirstChange()&&(0,b.NF)(this.platformId)&&t.disabled.currentValue!==t.disabled.previousValue&&(!0===t.disabled.currentValue?this.ngOnDestroy():!1===t.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){"undefined"!=typeof window&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(()=>{if(!this.disabled&&this.configDiff)try{this.zone.runOutsideAngular(()=>{this.instance&&this.instance.update()})}catch(t){}},0))}geometry(t="scroll"){return new li(this.elementRef.nativeElement[t+"Left"],this.elementRef.nativeElement[t+"Top"],this.elementRef.nativeElement[t+"Width"],this.elementRef.nativeElement[t+"Height"])}position(t=!1){return!t&&this.instance?new ui(this.instance.reach.x||0,this.instance.reach.y||0):new ui(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(t="any"){const e=this.elementRef.nativeElement;return"any"===t?e.classList.contains("ps--active-x")||e.classList.contains("ps--active-y"):"both"===t?e.classList.contains("ps--active-x")&&e.classList.contains("ps--active-y"):e.classList.contains("ps--active-"+t)}scrollTo(t,e,i){this.disabled||(null==e&&null==i?this.animateScrolling("scrollTop",t,i):(null!=t&&this.animateScrolling("scrollLeft",t,i),null!=e&&this.animateScrolling("scrollTop",e,i)))}scrollToX(t,e){this.animateScrolling("scrollLeft",t,e)}scrollToY(t,e){this.animateScrolling("scrollTop",t,e)}scrollToTop(t,e){this.animateScrolling("scrollTop",t||0,e)}scrollToLeft(t,e){this.animateScrolling("scrollLeft",t||0,e)}scrollToRight(t,e){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(t||0),e)}scrollToBottom(t,e){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(t||0),e)}scrollToElement(t,e,i){const n=this.elementRef.nativeElement.querySelector(t);if(n){const t=n.getBoundingClientRect(),s=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",t.left-s.left+this.elementRef.nativeElement.scrollLeft+(e||0),i),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",t.top-s.top+this.elementRef.nativeElement.scrollTop+(e||0),i)}}animateScrolling(t,e,i){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),i&&"undefined"!=typeof window){if(e!==this.elementRef.nativeElement[t]){let n=0,s=0,o=performance.now(),r=this.elementRef.nativeElement[t];const a=(r-e)/2,c=l=>{s+=Math.PI/(i/(l-o)),n=Math.round(e+a+a*Math.cos(s)),this.elementRef.nativeElement[t]===r&&(s>=Math.PI?this.animateScrolling(t,e,0):(this.elementRef.nativeElement[t]=n,r=this.elementRef.nativeElement[t],o=l,this.animation=window.requestAnimationFrame(c)))};window.requestAnimationFrame(c)}}else this.elementRef.nativeElement[t]=e}};return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.R0b),s.Y36(s.aQg),s.Y36(s.SBq),s.Y36(s.Lbi),s.Y36(ci,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:["perfectScrollbar","config"]},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],features:[s.TTD]}),t=(0,oe.gn)([(0,oe.fM)(3,(0,s.tBr)(s.Lbi)),(0,oe.fM)(4,(0,s.FiY)()),(0,oe.fM)(4,(0,s.tBr)(ci))],t),t})(),gi=(()=>{let t=class{constructor(t,e,i){this.zone=t,this.cdRef=e,this.platformId=i,this.states={},this.indicatorX=!1,this.indicatorY=!1,this.interaction=!1,this.scrollPositionX=0,this.scrollPositionY=0,this.scrollDirectionX=0,this.scrollDirectionY=0,this.usePropagationX=!1,this.usePropagationY=!1,this.allowPropagationX=!1,this.allowPropagationY=!1,this.stateTimeout=null,this.ngDestroy=new re.xQ,this.stateUpdate=new re.xQ,this.disabled=!1,this.usePSClass=!0,this.autoPropagation=!1,this.scrollIndicators=!1,this.psScrollY=new s.vpe,this.psScrollX=new s.vpe,this.psScrollUp=new s.vpe,this.psScrollDown=new s.vpe,this.psScrollLeft=new s.vpe,this.psScrollRight=new s.vpe,this.psYReachEnd=new s.vpe,this.psYReachStart=new s.vpe,this.psXReachEnd=new s.vpe,this.psXReachStart=new s.vpe}ngOnInit(){(0,b.NF)(this.platformId)&&(this.stateUpdate.pipe((0,ue.R)(this.ngDestroy),(0,he.x)((t,e)=>t===e&&!this.stateTimeout)).subscribe(t=>{this.stateTimeout&&"undefined"!=typeof window&&(window.clearTimeout(this.stateTimeout),this.stateTimeout=null),"x"===t||"y"===t?(this.interaction=!1,"x"===t?(this.indicatorX=!1,this.states.left=!1,this.states.right=!1,this.autoPropagation&&this.usePropagationX&&(this.allowPropagationX=!1)):"y"===t&&(this.indicatorY=!1,this.states.top=!1,this.states.bottom=!1,this.autoPropagation&&this.usePropagationY&&(this.allowPropagationY=!1))):("left"===t||"right"===t?(this.states.left=!1,this.states.right=!1,this.states[t]=!0,this.autoPropagation&&this.usePropagationX&&(this.indicatorX=!0)):"top"!==t&&"bottom"!==t||(this.states.top=!1,this.states.bottom=!1,this.states[t]=!0,this.autoPropagation&&this.usePropagationY&&(this.indicatorY=!0)),this.autoPropagation&&"undefined"!=typeof window&&(this.stateTimeout=window.setTimeout(()=>{this.indicatorX=!1,this.indicatorY=!1,this.stateTimeout=null,this.interaction&&(this.states.left||this.states.right)&&(this.allowPropagationX=!0),this.interaction&&(this.states.top||this.states.bottom)&&(this.allowPropagationY=!0),this.cdRef.markForCheck()},500))),this.cdRef.markForCheck(),this.cdRef.detectChanges()}),this.zone.runOutsideAngular(()=>{if(this.directiveRef){const t=this.directiveRef.elementRef.nativeElement;(0,ae.R)(t,"wheel").pipe((0,ue.R)(this.ngDestroy)).subscribe(t=>{!this.disabled&&this.autoPropagation&&this.checkPropagation(t,t.deltaX,t.deltaY)}),(0,ae.R)(t,"touchmove").pipe((0,ue.R)(this.ngDestroy)).subscribe(t=>{if(!this.disabled&&this.autoPropagation){const e=t.touches[0].clientX,i=t.touches[0].clientY;this.checkPropagation(t,e-this.scrollPositionX,i-this.scrollPositionY),this.scrollPositionX=e,this.scrollPositionY=i}}),(0,ce.T)((0,ae.R)(t,"ps-scroll-x").pipe((0,de.h)("x")),(0,ae.R)(t,"ps-scroll-y").pipe((0,de.h)("y")),(0,ae.R)(t,"ps-x-reach-end").pipe((0,de.h)("right")),(0,ae.R)(t,"ps-y-reach-end").pipe((0,de.h)("bottom")),(0,ae.R)(t,"ps-x-reach-start").pipe((0,de.h)("left")),(0,ae.R)(t,"ps-y-reach-start").pipe((0,de.h)("top"))).pipe((0,ue.R)(this.ngDestroy)).subscribe(t=>{this.disabled||!this.autoPropagation&&!this.scrollIndicators||this.stateUpdate.next(t)})}}),window.setTimeout(()=>{hi.forEach(t=>{this.directiveRef&&(this.directiveRef[t]=this[t])})},0))}ngOnDestroy(){(0,b.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.unsubscribe(),this.stateTimeout&&"undefined"!=typeof window&&window.clearTimeout(this.stateTimeout))}ngDoCheck(){if((0,b.NF)(this.platformId)&&!this.disabled&&this.autoPropagation&&this.directiveRef){const t=this.directiveRef.elementRef.nativeElement;this.usePropagationX=t.classList.contains("ps--active-x"),this.usePropagationY=t.classList.contains("ps--active-y")}}checkPropagation(t,e,i){this.interaction=!0;const n=e<0?-1:1,s=i<0?-1:1;(this.usePropagationX&&this.usePropagationY||this.usePropagationX&&(!this.allowPropagationX||this.scrollDirectionX!==n)||this.usePropagationY&&(!this.allowPropagationY||this.scrollDirectionY!==s))&&(t.preventDefault(),t.stopPropagation()),e&&(this.scrollDirectionX=n),i&&(this.scrollDirectionY=s),this.stateUpdate.next("interaction"),this.cdRef.detectChanges()}};return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.R0b),s.Y36(s.sBO),s.Y36(s.Lbi))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perfect-scrollbar"]],viewQuery:function(t,e){if(1&t&&s.Gf(pi,7),2&t){let t;s.iGM(t=s.CRH())&&(e.directiveRef=t.first)}},hostVars:4,hostBindings:function(t,e){2&t&&s.ekj("ps-show-limits",e.autoPropagation)("ps-show-active",e.scrollIndicators)},inputs:{disabled:"disabled",usePSClass:"usePSClass",autoPropagation:"autoPropagation",scrollIndicators:"scrollIndicators",config:"config"},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],ngContentSelectors:ai,decls:4,vars:5,consts:[[2,"position","static",3,"perfectScrollbar","disabled"],[1,"ps-content"],["class","ps-overlay",3,"ps-at-top","ps-at-left","ps-at-right","ps-at-bottom",4,"ngIf"],[1,"ps-overlay"],[1,"ps-indicator-top"],[1,"ps-indicator-left"],[1,"ps-indicator-right"],[1,"ps-indicator-bottom"]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.Hsn(2),s.qZA(),s.YNc(3,ri,5,16,"div",2),s.qZA()),2&t&&(s.ekj("ps",e.usePSClass),s.Q6J("perfectScrollbar",e.config)("disabled",e.disabled),s.xp6(3),s.Q6J("ngIf",e.scrollIndicators))},directives:[pi,b.O5],styles:["perfect-scrollbar{position:relative;display:block;overflow:hidden;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar[hidden]{display:none}perfect-scrollbar[fxflex]{display:-webkit-box;display:flex;flex-direction:column;height:auto;min-width:0;min-height:0;-webkit-box-direction:column;-webkit-box-orient:column}perfect-scrollbar[fxflex]>.ps{flex:1 1 auto;width:auto;height:auto;min-width:0;min-height:0;-webkit-box-flex:1}perfect-scrollbar[fxlayout]>.ps,perfect-scrollbar[fxlayout]>.ps>.ps-content{display:-webkit-box;display:flex;flex:1 1 auto;flex-direction:inherit;align-items:inherit;align-content:inherit;justify-content:inherit;width:100%;height:100%;-webkit-box-align:inherit;-webkit-box-direction:inherit;-webkit-box-flex:1;-webkit-box-orient:inherit;-webkit-box-pack:inherit},perfect-scrollbar[fxlayout=row]>.ps,perfect-scrollbar[fxlayout=row]>.ps>.ps-content{flex-direction:row!important;-webkit-box-direction:row!important;-webkit-box-orient:row!important}perfect-scrollbar[fxlayout=column]>.ps,perfect-scrollbar[fxlayout=column]>.ps>.ps-content{flex-direction:column!important;-webkit-box-direction:column!important;-webkit-box-orient:column!important}perfect-scrollbar>.ps{position:static;display:block;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar>.ps textarea{-ms-overflow-style:scrollbar}perfect-scrollbar>.ps>.ps-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:block;overflow:hidden;pointer-events:none}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{position:absolute;opacity:0;-webkit-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{left:0;min-width:100%;min-height:24px}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{top:0;min-width:24px;min-height:100%}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left{left:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{right:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{bottom:0}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y{top:0!important;right:0!important;left:auto!important;width:10px;cursor:default;-webkit-transition:width .2s linear,opacity .2s linear,background-color .2s linear;transition:width .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y.ps--clicking,perfect-scrollbar>.ps.ps--active-y>.ps__rail-y:hover{width:15px}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x{top:auto!important;bottom:0!important;left:0!important;height:10px;cursor:default;-webkit-transition:height .2s linear,opacity .2s linear,background-color .2s linear;transition:height .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x.ps--clicking,perfect-scrollbar>.ps.ps--active-x>.ps__rail-x:hover{height:15px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-y{margin:0 0 10px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-x{margin:0 10px 0 0}perfect-scrollbar>.ps.ps--scrolling-x>.ps__rail-x,perfect-scrollbar>.ps.ps--scrolling-y>.ps__rail-y{opacity:.9;background-color:#eee}perfect-scrollbar.ps-show-always>.ps.ps--active-x>.ps__rail-x,perfect-scrollbar.ps-show-always>.ps.ps--active-y>.ps__rail-y{opacity:.6}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-top) .ps-indicator-top{opacity:1;background:-webkit-gradient(linear,left top,left bottom,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to bottom,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-bottom) .ps-indicator-bottom{opacity:1;background:-webkit-gradient(linear,left bottom,left top,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to top,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-left) .ps-indicator-left{opacity:1;background:-webkit-gradient(linear,left top,right top,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to right,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-right) .ps-indicator-right{opacity:1;background:-webkit-gradient(linear,right top,left top,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to left,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top{background:-webkit-gradient(linear,left top,left bottom,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to bottom,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom{background:-webkit-gradient(linear,left bottom,left top,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to top,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left{background:-webkit-gradient(linear,left top,right top,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to right,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right{background:-webkit-gradient(linear,right top,left top,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to left,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top.ps-indicator-show{opacity:1}",".ps{overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.ps__rail-x{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;height:15px;bottom:0;position:absolute}.ps__rail-y{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;width:15px;right:0;position:absolute}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{display:block;background-color:transparent}.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y,.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y{opacity:.6}.ps .ps__rail-x.ps--clicking,.ps .ps__rail-x:focus,.ps .ps__rail-x:hover,.ps .ps__rail-y.ps--clicking,.ps .ps__rail-y:focus,.ps .ps__rail-y:hover{background-color:#eee;opacity:.9}.ps__thumb-x{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px;position:absolute}.ps__thumb-y{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px;position:absolute}.ps__rail-x.ps--clicking .ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x:hover>.ps__thumb-x{background-color:#999;height:11px}.ps__rail-y.ps--clicking .ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y:hover>.ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style:none){.ps{overflow:auto!important}}@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){.ps{overflow:auto!important}}"],encapsulation:2}),t=(0,oe.gn)([(0,oe.fM)(2,(0,s.tBr)(s.Lbi))],t),t})(),fi=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[b.ez],b.ez]}),t})();var mi=i(52623),bi=i(17),_i=i(11418);function wi(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"perun-web-apps-notification",2),s.NdJ("closeNotification",function(){const e=s.CHM(t).index;return s.oxw().removeNotification(e)}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit;s.Q6J("@flyInOut",void 0),s.xp6(1),s.Q6J("data",t)("newNotification",!0)}}const Ai=function(t){return{top:t}};let yi=(()=>{class t{constructor(t,e){this.notificator=t,this.notificationStorageService=e,this.mobileView=!1,this.minWidth=992,this.displayWarning=!1,this.notifications=[],this.notificator.addNotification.subscribe(t=>{this.processNotification(t)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}processNotification(t){this.notifications.push(t),this.notificationStorageService.storeNotification(t)}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(t){this.notifications.splice(t,1)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(c.V6),s.Y36(c.SZ))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-notificator"]],hostBindings:function(t,e){1&t&&s.NdJ("resize",function(t){return e.getScreenSize(t)},!1,s.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.YNc(1,wi,2,3,"div",1),s.qZA()),2&t&&(s.Q6J("ngStyle",s.VKq(2,Ai,e.getNotificatorTop())),s.xp6(1),s.Q6J("ngForOf",e.notifications))},directives:[b.PC,b.sg,_i.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;bottom:0}}"],data:{animation:[bi.Pd]}}),t})();var vi=i(4253);function Ti(t,e){if(1&t&&(s.TgZ(0,"div",9),s._UZ(1,"perun-web-apps-notification",10),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Q6J("data",t)("inDialog",!0)}}function Ci(t,e){if(1&t&&(s.TgZ(0,"div",6),s.TgZ(1,"cdk-virtual-scroll-viewport",7),s.YNc(2,Ti,2,2,"div",8),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.Q6J("cdkVirtualForOf",t.notifications)}}function Ei(t,e){1&t&&(s.TgZ(0,"app-alert",11),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT")))}let Si=(()=>{class t{constructor(t,e){this.dialogRef=t,this.notificationStorageService=e}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(p.so),s.Y36(c.SZ))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.YNc(3,Ci,3,1,"div",1),s.YNc(4,Ei,3,3,"app-alert",2),s.TgZ(5,"div",3),s.TgZ(6,"button",4),s.NdJ("click",function(){return e.onClear()}),s._uU(7),s.ALo(8,"translate"),s.qZA(),s.TgZ(9,"button",5),s.NdJ("click",function(){return e.onCancel()}),s._uU(10),s.ALo(11,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,5,"DIALOGS.NOTIFICATION_LIST.TITLE")),s.xp6(2),s.Q6J("ngIf",0!==e.notifications.length),s.xp6(1),s.Q6J("ngIf",0===e.notifications.length),s.xp6(3),s.hij(" ",s.lcZ(8,7,"DIALOGS.NOTIFICATION_LIST.CLEAR")," "),s.xp6(3),s.hij(" ",s.lcZ(11,9,"DIALOGS.NOTIFICATION_LIST.CANCEL")," "))},directives:[p.uh,b.O5,p.H8,w.lW,vi.N7,vi.xd,vi.x0,_i.c,y.w],pipes:[d.X$],styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),t})();var ki=i(41050),Ii=i(66438);function xi(t,e){1&t&&(s.TgZ(0,"div",10),s.TgZ(1,"span",11),s._uU(2," ~ \ud83d\uddf2\xa0 "),s.qZA(),s.TgZ(3,"span",12),s._uU(4," DEVEL "),s.qZA(),s.TgZ(5,"span",11),s._uU(6," \xa0\ud83d\uddf2 ~ "),s.qZA(),s.qZA())}const Ri=function(t){return{color:t}},Oi=function(){return["/home"]};let Pi=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,l){this.storeService=t,this.authService=e,this.authzResolverService=i,this.dialog=n,this.notificator=s,this.translateService=o,this.store=r,this.sanitizer=a,this.notificationStorageService=c,this.otherApplicationService=l,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 t=(0,l.kZ)();t.width="520px",this.dialog.open(Si,t)}getNewNotificationsCount(){return this.notificationStorageService.newNotificationsCount}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(c.d6),s.Y36(c.e8),s.Y36(a.Ct),s.Y36(p.uw),s.Y36(c.V6),s.Y36(d.sK),s.Y36(c.d6),s.Y36(n.H7),s.Y36(c.SZ),s.Y36(c.jq))},t.\u0275cmp=s.Xpm({type:t,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,"url","label","user","logoutEnabled","iconColor","textColor"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"button",1),s.NdJ("click",function(){return e.sideNav.toggle()}),s.TgZ(2,"mat-icon",2),s._uU(3," menu "),s.qZA(),s.qZA(),s.TgZ(4,"a",3),s._UZ(5,"div",4),s.qZA(),s.qZA(),s.YNc(6,xi,7,0,"div",5),s.TgZ(7,"div",6),s.TgZ(8,"button",7),s.NdJ("click",function(){return e.showNotificationHistory()}),s.ALo(9,"translate"),s.TgZ(10,"mat-icon",8),s._uU(11),s.qZA(),s.qZA(),s._UZ(12,"perun-web-apps-header-menu",9),s.qZA()),2&t&&(s.Q6J("ngStyle",s.VKq(19,Ri,e.navTextColor)),s.xp6(2),s.Q6J("ngStyle",s.VKq(21,Ri,e.iconColor)),s.xp6(2),s.Q6J("routerLink",s.DdM(23,Oi)),s.xp6(1),s.Q6J("innerHTML",e.logo,s.oJD),s.xp6(1),s.Q6J("ngIf",e.isDevel),s.xp6(1),s.Q6J("ngStyle",s.VKq(24,Ri,e.navTextColor)),s.xp6(1),s.Q6J("matTooltip",s.lcZ(9,17,"NAV.NOTIFICATIONS_TOOLTIP")),s.xp6(2),s.s9C("matBadge",e.getNewNotificationsCount()>5?"5+":e.getNewNotificationsCount()),s.Q6J("ngStyle",s.VKq(26,Ri,e.iconColor))("matBadgeHidden",0===e.getNewNotificationsCount()),s.xp6(1),s.hij(" ",e.getNewNotificationsCount()?"notifications_active":"notifications"," "),s.xp6(1),s.Q6J("url",e.profileUrl)("label",e.profileLabel)("user",e.principal.user)("logoutEnabled",e.logoutEnabled)("iconColor",e.iconColor)("textColor",e.navTextColor))},directives:[b.PC,w.lW,_.Hw,o.yS,b.O5,C.gM,ki.k,Ii.X],pipes:[d.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}"]}),t})();var Di=i(24081);const Mi={provide:Rt.TP,useExisting:(0,s.Gpc)(()=>c.yC),multi:!0};function Li(t){return new xt(t,"./assets/i18n/",".json")}function Ni(t){const e={basePath:t.get("api_url")};return new a.VK(e)}const zi=t=>()=>t.initialize(),Zi={suppressScrollX:!0};let Bi=(()=>{class t{constructor(t,e){this.customIconService=t,this.translate=e,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(c.EB),s.LFG(d.sK))},t.\u0275mod=s.oAB({type:t,bootstrap:[kt.y]}),t.\u0275inj=s.cJS({providers:[ne,{provide:s.ip1,useFactory:zi,multi:!0,deps:[ne]},{provide:a.VK,useFactory:Ni,deps:[c.d6]},{provide:o.wN,useClass:Qt},c.EB,{provide:Wt,useClass:c.sM},c.yC,Mi,{provide:ci,useValue:Zi}],imports:[[Ot.PW,n.b2,Rt.JF,It.m,Pt,St,_.Ps,se,d.aw.forRoot({loader:{provide:d.Zw,useFactory:Li,deps:[Rt.eN]}}),a.au,fi,lt.ez,pt,mi.zr.forRoot()]]}),t})();s.B6R(kt.y,[b.O5,_.Hw,yi,Pi,b.PC,g.TM,g.JX,gi,Di.V,g.Rh,o.lC,ft.$,Tt],[]),(0,s.G48)(),n.q6().bootstrapModule(Bi).catch(t=>console.error(t))},7423:function(t,e,i){"use strict";i.d(e,{r:function(){return o}});var n=i(61511),s=i(31572);let o=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez]]}),t})()},13857:function(t,e,i){"use strict";i.d(e,{Rc:function(){return s},pI:function(){return o},Ng:function(){return r}});var n=i(31572);const s="GUI_CONFIG.PREF_PAGE_SIZE",o="GUI_CONFIG.PREF_PAGE_SIZE.";let r=(()=>{class t{constructor(){}getString(t){return localStorage.getItem(t)}getNumber(t){return parseInt(localStorage.getItem(t),10)}setNumber(t,e){localStorage.setItem(t,e.toString())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},60611:function(t,e,i){"use strict";i.d(e,{dB:function(){return o},CP:function(){return r},tw:function(){return a},nT:function(){return c},YF:function(){return l},gc:function(){return u},v1:function(){return h},AA:function(){return d},VR:function(){return p},uM:function(){return g},xx:function(){return f},H2:function(){return m},xt:function(){return b},dI:function(){return _},j1:function(){return w},Wv:function(){return A},qy:function(){return y},BV:function(){return v},qV:function(){return T},tY:function(){return C},Af:function(){return E},O7:function(){return S},gB:function(){return k},Hi:function(){return I},Jf:function(){return x},W1:function(){return R},rF:function(){return O},Aj:function(){return P},Ad:function(){return D},kZ:function(){return M},cL:function(){return L},RS:function(){return N},HC:function(){return z},KE:function(){return Z},Sb:function(){return B},_7:function(){return F},bf:function(){return U},rc:function(){return q},Cf:function(){return H},eq:function(){return G},NG:function(){return j},O9:function(){return Y},d7:function(){return K},vq:function(){return V},NL:function(){return $},kO:function(){return J},aL:function(){return Q},DR:function(){return W},uC:function(){return X},JO:function(){return tt},oK:function(){return et},Iz:function(){return it},It:function(){return nt},z6:function(){return st},iQ:function(){return ot},e5:function(){return rt},Bf:function(){return at},zp:function(){return ct},US:function(){return lt},gG:function(){return ut},$V:function(){return ht},S7:function(){return dt},zW:function(){return pt},CE:function(){return gt},Is:function(){return ft},M8:function(){return mt},g:function(){return bt},_c:function(){return _t},dK:function(){return wt},yW:function(){return At}});var n=i(13857),s=i(31572);let o=(()=>{class t{constructor(t){this.guiConfigService=t}getTablePageSize(t){const e=this.guiConfigService.getNumber(n.pI+t);if(!isNaN(e))return e;const i=this.guiConfigService.getNumber(n.Rc);return isNaN(i)?10:i}setTablePageSize(t,e){this.guiConfigService.setNumber(n.pI+t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.Ng))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const r="0",a="1",c="2",l="3",u="4",h="5",d="6",p="7",g="8",f="9",m="10",b="11",_="12",w="13",A="14",y="15",v="16",T="17",C="18",E="19",S="20",k="21",I="22",x="23",R="24",O="25",P="26",D="27",M="28",L="29",N="30",z="31",Z="32",B="33",F="34",U="35",q="36",H="37",G="42",j="43",Y="44",K="45",V="46",$="47",J="48",Q="49",W="50",X="51",tt="52",et="53",it="54",nt="55",st="56",ot="57",rt="58",at="59",ct="62",lt="63",ut="64",ht="65",dt="66",pt="69",gt="71",ft="72",mt="75",bt="76",_t="77",wt="78",At="79"},17:function(t,e,i){"use strict";i.d(e,{Ji:function(){return a},Pd:function(){return o},BQ:function(){return s},Ly:function(){return r},GH:function(){return u},Ls:function(){return h},SG:function(){return l},es:function(){return c}});var n=i(10709);const s=(0,n.X$)("openClose",[(0,n.SB)("open",(0,n.oB)({overflow:"hidden"})),(0,n.SB)("closed",(0,n.oB)({height:"0px",overflow:"hidden"})),(0,n.eR)("open <=> closed",[(0,n.jt)(".3s ease-in")])]),o=(0,n.X$)("flyInOut",[(0,n.eR)(":enter",[(0,n.oB)({transform:"translateX(100%)"}),(0,n.jt)(".25s")]),(0,n.eR)(":leave",[(0,n.jt)(".5s",(0,n.oB)({transform:"translateX(100%)"}))])]),r=(0,n.X$)("rollInOut",[(0,n.eR)(":enter",[(0,n.oB)({height:"0px"}),(0,n.jt)(".25s")]),(0,n.eR)(":leave",[(0,n.jt)(".25s",(0,n.oB)({height:"0px"}))])]),a=(0,n.X$)("routeAnimations",[(0,n.eR)("* => *",[(0,n.oB)({position:"relative"}),(0,n.IO)(":enter",[(0,n.oB)({width:"100%",opacity:0})],{optional:!0}),(0,n.IO)(":leave",[(0,n.oB)({position:"absolute",width:"100%",opacity:1}),(0,n.jt)("0.15s",(0,n.oB)({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),(0,n.IO)(":enter",[(0,n.oB)({position:"absolute",width:"100%",opacity:0}),(0,n.jt)("0.15s",(0,n.oB)({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),c=(0,n.X$)("tagsOpenClose",[(0,n.SB)("open",(0,n.oB)({})),(0,n.SB)("closed",(0,n.oB)({width:"0px",height:"0px"})),(0,n.eR)("open <=> closed",[(0,n.jt)(".3s ease-in")])]),l=(0,n.X$)("switchAnimations",[(0,n.eR)("true => false",[(0,n.IO)(":enter, :leave",(0,n.oB)({})),(0,n.ru)([(0,n.IO)(":enter",[(0,n.oB)({transform:"translateX(-100%)"}),(0,n.jt)("1s ease-in-out",(0,n.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,n.IO)(":leave",[(0,n.oB)({transform:"translateX(0%)",position:"absolute"}),(0,n.jt)("1s ease-in-out",(0,n.oB)({transform:"translateX(100%)"}))],{optional:!0})])]),(0,n.eR)("false => true",[(0,n.IO)(":enter, :leave",(0,n.oB)({})),(0,n.ru)([(0,n.IO)(":enter",[(0,n.oB)({transform:"translateX(100%)"}),(0,n.jt)("1s ease-in-out",(0,n.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,n.IO)(":leave",[(0,n.oB)({transform:"translateX(0%)",position:"absolute"}),(0,n.jt)("1s ease-in-out",(0,n.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])]),u=(0,n.X$)("slideInOutLeft",[(0,n.eR)(":enter",[(0,n.oB)({transform:"translateX(-100%)",position:"relative"}),(0,n.jt)("0.5s ease-in",(0,n.oB)({transform:"translateX(0%)"}))]),(0,n.eR)(":leave",[(0,n.jt)("0.5s ease-in",(0,n.oB)({transform:"translateX(-100%)"}))])]),h=(0,n.X$)("slideInOutRight",[(0,n.eR)(":enter",[(0,n.oB)({transform:"translateX(100%)",position:"fixed"}),(0,n.jt)("0.5s ease-in",(0,n.oB)({transform:"translateX(0%)"}))]),(0,n.eR)(":leave",[(0,n.oB)({transform:"translateX(-100%)",position:"relative"}),(0,n.jt)("0.5s ease-in",(0,n.oB)({transform:"translateX(100%)"}))])])},41939:function(t,e,i){"use strict";i.d(e,{Mw:function(){return N.M},qG:function(){return it.qG},Sx:function(){return et.S},Nj:function(){return X},ez:function(){return L},t$:function(){return tt}});var n=i(61511),s=i(29236),o=i(67033),r=i(48160),a=i(57629),c=i(58623),l=i(73005),u=i(67806),h=i(22727),d=i(43691),p=i(8055),g=i(15980),f=i(36922),m=i(66283),b=i(16073),_=i(80340),w=i(10033),A=i(88975),y=i(71522),v=i(22280),T=i(81391),C=i(91010),E=i(15812),S=i(54810),k=i(4786),I=i(30146),x=i(4253),R=i(84608),O=i(84140),P=i(31572);let D=(()=>{class t extends y.LF{format(t,e){return"input"===e?`${t.getDate().toString()}.${(t.getMonth()+1).toString()}.${t.getFullYear()}`:t.toDateString()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=P.n5z(t)))(i||t)}}(),t.\u0275prov=P.Yz7({token:t,factory:t.\u0275fac}),t})();const M={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 L=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=P.oAB({type:t}),t.\u0275inj=P.cJS({providers:[{provide:y._A,useClass:D},{provide:y.sG,useValue:M}],imports:[[n.ez,s.p9,o.p0,b.u5,w.Hi,A._t,r.aw,a.Bz,c.JX,l.TU,u.Cq,h.r,d.Ps,p.Tx,g.ot,f.AV,m.lN,b.UX,_.c,y.si,v.d4,T.Iq,C.dp,E.FA,S.Fk,y.Ng,k.LD,I.Co,x.Cl,R.Is,O.Je]]}),t})();i(41186);var N=i(51556),z=(i(76021),i(84584),i(22230),i(33596),i(88884),i(11418),i(23888),i(65249)),Z=i(68416),B=i(6527),F=i(39571),U=i(83787);function q(t,e){1&t&&(P.TgZ(0,"app-alert"),P._uU(1),P.ALo(2,"translate"),P.ALo(3,"customTranslate"),P.qZA()),2&t&&(P.xp6(1),P.Oqu(P.lcZ(2,1,P.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function H(t,e){1&t&&(P.TgZ(0,"th",16),P._uU(1),P.ALo(2,"translate"),P.ALo(3,"customTranslate"),P.qZA()),2&t&&(P.xp6(1),P.hij(" ",P.lcZ(2,1,P.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))," "))}function G(t,e){if(1&t&&(P.TgZ(0,"td",17),P._uU(1),P.qZA()),2&t){const t=e.$implicit;P.xp6(1),P.Oqu(t.friendlyNameParameter)}}function j(t,e){1&t&&(P.TgZ(0,"th",16),P._uU(1),P.ALo(2,"translate"),P.ALo(3,"customTranslate"),P.qZA()),2&t&&(P.xp6(1),P.hij(" ",P.lcZ(2,1,P.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))," "))}function Y(t,e){if(1&t&&(P.TgZ(0,"td",18),P._uU(1),P.qZA()),2&t){const t=e.$implicit;P.xp6(1),P.Oqu(t.value)}}function K(t,e){1&t&&P._UZ(0,"th",16)}function V(t,e){if(1&t){const t=P.EpF();P.TgZ(0,"td",19),P.TgZ(1,"button",20),P.NdJ("click",function(){const e=P.CHM(t).$implicit;return P.oxw().resetPassword(e.friendlyNameParameter)}),P._uU(2),P.ALo(3,"translate"),P.ALo(4,"customTranslate"),P.qZA(),P.qZA()}if(2&t){const t=e.$implicit,i=P.oxw();P.xp6(1),P.Q6J("disabled",!i.logins.includes(t)),P.xp6(1),P.hij(" ",P.lcZ(3,2,P.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.RESET_PASSWORD"))," ")}}function $(t,e){1&t&&P._UZ(0,"th",16)}function J(t,e){if(1&t){const t=P.EpF();P.TgZ(0,"td",19),P.TgZ(1,"button",21),P.NdJ("click",function(){const e=P.CHM(t).$implicit;return P.oxw().changePassword(e)}),P._uU(2),P.ALo(3,"translate"),P.ALo(4,"customTranslate"),P.qZA(),P.qZA()}if(2&t){const t=e.$implicit,i=P.oxw();P.xp6(1),P.Q6J("disabled",!i.logins.includes(t)),P.xp6(1),P.hij(" ",P.lcZ(3,2,P.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD"))," ")}}function Q(t,e){1&t&&P._UZ(0,"tr",22)}function W(t,e){1&t&&P._UZ(0,"tr",23)}let X=(()=>{class t{constructor(t,e,i,n,s,o){this.attributesManagerService=t,this.store=e,this.dialog=i,this.route=n,this.router=s,this.otherApplicationService=o,this.nameSpaces=[],this.logins=[],this.displayedColumns=["namespace","value","reset","change"]}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.nameSpaces=this.store.get("password_namespace_attributes"),this.attributesManagerService.getLogins(this.userId).subscribe(t=>{const e=this.nameSpaces.map(t=>{const e=t.split(":");return e[e.length-1]});this.logins=t.filter(t=>e.includes(t.friendlyNameParameter)),this.dataSource=new o.by(t);const i=this.route.snapshot.queryParamMap.get("namespace");if(i){const t=this.logins.find(t=>t.friendlyNameParameter===i);t&&this.changePassword(t)}})}resetPassword(t){window.open(this.otherApplicationService.getUrlForOtherApplication("pwdReset",t),"_blank")}changePassword(t){this.router.navigate([],{queryParams:{namespace:t.friendlyNameParameter},queryParamsHandling:"merge"});const e=(0,O.kZ)();e.width="600px",e.data={login:t.value,namespace:t.friendlyName.split(":")[1]},this.dialog.open(B.xF,e).afterClosed().subscribe(()=>{this.router.navigate([],{queryParams:{namespace:null},queryParamsHandling:"merge"})})}}return t.\u0275fac=function(e){return new(e||t)(P.Y36(z.H8),P.Y36(Z.d6),P.Y36(R.uw),P.Y36(a.gz),P.Y36(a.F0),P.Y36(Z.jq))},t.\u0275cmp=P.Xpm({type:t,selectors:[["perun-web-apps-password-reset"]],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(t,e){1&t&&(P.TgZ(0,"h1",0),P._uU(1),P.ALo(2,"translate"),P.ALo(3,"customTranslate"),P.qZA(),P.YNc(4,q,4,5,"app-alert",1),P.TgZ(5,"div",2),P.TgZ(6,"div",3),P.TgZ(7,"div",4),P.TgZ(8,"table",5),P.ynx(9,6),P.YNc(10,H,4,5,"th",7),P.YNc(11,G,2,1,"td",8),P.BQk(),P.ynx(12,9),P.YNc(13,j,4,5,"th",7),P.YNc(14,Y,2,1,"td",10),P.BQk(),P.ynx(15,11),P.YNc(16,K,1,0,"th",7),P.YNc(17,V,5,6,"td",12),P.BQk(),P.ynx(18,13),P.YNc(19,$,1,0,"th",7),P.YNc(20,J,5,6,"td",12),P.BQk(),P.YNc(21,Q,1,0,"tr",14),P.YNc(22,W,1,0,"tr",15),P.qZA(),P.qZA(),P.qZA(),P.qZA()),2&t&&(P.xp6(1),P.hij(" ",P.lcZ(2,5,P.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE")),"\n"),P.xp6(3),P.Q6J("ngIf",!e.logins.length),P.xp6(4),P.Q6J("dataSource",e.dataSource),P.xp6(13),P.Q6J("matHeaderRowDef",e.displayedColumns),P.xp6(1),P.Q6J("matRowDefColumns",e.displayedColumns))},directives:[n.O5,o.BZ,c.YE,o.w1,o.fO,o.Dz,o.as,o.nj,F.w,o.ge,o.ev,g.lW,o.XQ,o.Gk],pipes:[r.X$,U.a],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}"]}),t})(),tt=(()=>{class t{constructor(t,e,i,n){this.router=t,this.route=e,this.location=i,this.forceRoute=n}ngOnInit(){"back"!==this.forceRoute.getLastState()?this.route.queryParams.subscribe(t=>{this.router.navigate([t.redirectTo])}):this.location.back()}}return t.\u0275fac=function(e){return new(e||t)(P.Y36(a.F0),P.Y36(a.gz),P.Y36(n.Ye),P.Y36(Z.xw))},t.\u0275cmp=P.Xpm({type:t,selectors:[["perun-web-apps-redirect-page"]],decls:0,vars:0,template:function(t,e){},styles:[""]}),t})();i(78364),i(11441),i(67474),i(43005);var et=i(30725),it=(i(66438),i(94327))},30725:function(t,e,i){"use strict";i.d(e,{S:function(){return r},Y:function(){return a}});var n=i(31572),s=(i(65249),i(48160)),o=i(44973);const r={};let a=(()=>{class t{constructor(t){this.translate=t,this.item=null,this.itemSelected=new n.vpe,this.nameFunction=t=>t===r?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM"):t.shortname,this.secondaryFunction=t=>t===r?"":t.id<0?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NEW_ITEM"):"#"+t.id,this.searchFunction=t=>t===r?"":t.shortname+t.id}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(s.sK))},t.\u0275cmp=n.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(t,e){1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.itemSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t&&n.Q6J("entities",e.items)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.secondaryFunction)("entity",e.item)("disableAutoSelect",!0)("selectPlaceholder",n.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",n.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",n.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},directives:[o.i],pipes:[s.X$],styles:[""]}),t})()},76021:function(t,e,i){"use strict";i.d(e,{u:function(){return d}});var n=i(31572),s=i(84140),o=i(61511),r=i(29236),a=i(16073),c=i(66283),l=i(82877);function u(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-checkbox",2),n.NdJ("change",function(){return n.CHM(t),n.oxw()._sendEventToParent()})("ngModelChange",function(e){return n.CHM(t),n.oxw().attribute.value=e}),n.ALo(1,"multiWordDataCy"),n.qZA()}if(2&t){const t=n.oxw();n.Q2q("data-cy","",n.lcZ(1,2,t.attribute.displayName),"-value"),n.Q6J("ngModel",t.attribute.value)}}function h(t,e){if(1&t&&(n.TgZ(0,"mat-label"),n._uU(1),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.Oqu(t.attribute.value)}}let d=(()=>{class t{constructor(){this.readonly=!1,this.sendEventToParent=new n.vpe}ngOnInit(){this.readonly||(this.readonly=(0,s.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"div"),n.YNc(1,u,2,4,"mat-checkbox",0),n.YNc(2,h,2,1,"mat-label",1),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf",!e.readonly),n.xp6(1),n.Q6J("ngIf",e.readonly))},directives:[o.O5,r.oG,a.JJ,a.On,c.hX],pipes:[l.R],styles:[""]}),t})()},84584:function(t,e,i){"use strict";i.d(e,{H:function(){return C}});var n=i(31572),s=i(75842),o=i(88975),r=i(6527),a=i(84140),c=i(84608),l=i(10033),u=i(61511),h=i(43691),d=i(36922),p=i(15980),g=i(66283),f=i(80340);function m(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-icon",9),n.NdJ("mousedown",function(){return n.CHM(t),n.oxw(2).dragDisabled=!1}),n._uU(1,"drag_indicator"),n.qZA()}}function b(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-icon",10),n.NdJ("click",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw().edit(e)}),n._uU(1,"edit"),n.qZA()}}function _(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-icon",11),n.NdJ("click",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw().remove(e)}),n._uU(1,"cancel"),n.qZA()}}function w(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-chip",4),n.NdJ("removed",function(){const e=n.CHM(t).$implicit,i=n.oxw();return i.remove(e),i._sendEventToParent()}),n.YNc(1,m,2,0,"mat-icon",5),n.TgZ(2,"div",6),n.NdJ("click",function(){const e=n.CHM(t).$implicit,i=n.oxw();return i.readonly&&void 0!==i.attribute.displayName&&i.showValue(e,i.attribute.displayName)}),n._uU(3),n.qZA(),n.YNc(4,b,2,0,"mat-icon",7),n.YNc(5,_,2,0,"mat-icon",8),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.Q6J("selectable",i.selectable)("cdkDragData",t)("removable",i.removable),n.xp6(1),n.Q6J("ngIf",i.removable),n.xp6(1),n.ekj("cursor-pointer",i.readonly&&void 0!==i.attribute.displayName),n.xp6(1),n.hij(" ",t," "),n.xp6(1),n.Q6J("ngIf",i.removable),n.xp6(1),n.Q6J("ngIf",i.removable)}}function A(t,e){1&t&&(n.TgZ(0,"mat-icon"),n._uU(1,"more_horiz"),n.qZA())}function y(t,e){1&t&&(n.TgZ(0,"mat-icon"),n._uU(1,"keyboard_arrow_up"),n.qZA())}function v(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"div",12),n.TgZ(1,"span",13),n.TgZ(2,"button",14),n.NdJ("click",function(){return n.CHM(t),n.oxw().onShowChange()}),n.YNc(3,A,2,0,"mat-icon",15),n.YNc(4,y,2,0,"mat-icon",15),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=n.oxw();n.xp6(1),n.Q6J("matTooltip",t.showMore?"Show less":"Show more")("matTooltipPosition","above"),n.xp6(2),n.Q6J("ngIf",!t.showMore),n.xp6(1),n.Q6J("ngIf",t.showMore)}}function T(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-form-field",12),n.TgZ(1,"input",16),n.NdJ("matChipInputTokenEnd",function(e){return n.CHM(t),n.oxw().add(e)})("change",function(){return n.CHM(t),n.oxw()._sendEventToParent()}),n.qZA(),n.qZA()}if(2&t){const t=n.oxw(),e=n.MAs(2);n.xp6(1),n.Q6J("matChipInputFor",e)("matChipInputSeparatorKeyCodes",t.separatorKeysCodes)("matChipInputAddOnBlur",t.addOnBlur)}}let C=(()=>{class t{constructor(t){this.dialog=t,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[s.K5,s.OC],this.values=[],this.showMore=!1,this.defaultItemsShown=5,this.sendEventToParent=new n.vpe,this.readonly=!1}ngOnInit(){this.removable=!(0,a.Hm)(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=Object.values(this.attribute.value),this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,a.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}add(t){const e=t.input,i=t.value;(i||"").trim()&&(this.attribute.value.push(i.trim()),this.values=Object.values(this.attribute.value),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),e&&(e.value=""),this.sendEventToParent.emit()}remove(t){const e=(0,a.kZ)();e.width="400px",e.data={name:t},this.dialog.open(r.Wr,e).afterClosed().subscribe(e=>{if(e){const e=this.attribute.value.indexOf(t);this.attribute.value.splice(e,1),this.values=Object.values(this.attribute.value),this.sendEventToParent.emit()}})}drop(t){this.dragDisabled=!0,(0,o.bA)(this.attribute.value,t.previousIndex,t.currentIndex),this.values=Object.values(this.attribute.value)}edit(t){const e=this.attribute.value.indexOf(t),i=(0,a.kZ)();i.width="600px",i.data={attribute:this.attribute,index:e},this.dialog.open(r.r2,i).afterClosed().subscribe(t=>{t&&(this.values=Object.values(this.attribute.value),this.sendEventToParent.emit())})}showValue(t,e){const i=(0,a.kZ)();i.width="350px",i.data={value:t,title:e},this.dialog.open(r.mk,i)}setItemsShown(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(c.uw))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"mat-chip-list",0,1),n.NdJ("cdkDropListDropped",function(t){return e.drop(t),e._sendEventToParent()}),n.YNc(3,w,6,9,"mat-chip",2),n.YNc(4,v,5,4,"div",3),n.YNc(5,T,2,3,"mat-form-field",3),n.qZA(),n.qZA()),2&t&&(n.xp6(1),n.Q6J("cdkDropListDisabled",e.dragDisabled),n.xp6(2),n.Q6J("ngForOf",e.values.slice(0,e.itemsShown)),n.xp6(1),n.Q6J("ngIf",e.values.length>e.defaultItemsShown),n.xp6(1),n.Q6J("ngIf",!e.readonly))},directives:[l.qn,o.Wj,u.sg,u.O5,l.HS,o.Zt,h.Hw,d.gM,p.lW,g.KE,f.Nt,l.oH],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%], .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}.edit-delete-icon[_ngcontent-%COMP%], .handle-icon[_ngcontent-%COMP%]{justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),t})()},22230:function(t,e,i){"use strict";i.d(e,{$:function(){return A}});var n=i(6527),s=i(84140),o=i(31572),r=i(84608),a=i(16073),c=i(61511),l=i(36922),u=i(66283),h=i(80340),d=i(15980),p=i(43691);function g(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",15),o.NdJ("click",function(){o.CHM(t);const e=o.oxw().index;return o.oxw().removeValue(e)}),o.TgZ(1,"mat-icon"),o._uU(2," indeterminate_check_box "),o.qZA(),o.qZA()}}function f(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",9),o.TgZ(1,"mat-form-field",10),o._UZ(2,"label",11),o.TgZ(3,"input",12),o.NdJ("click",function(){const e=o.CHM(t).index,i=o.oxw();return i.readonly&&i.attribute.displayName&&i.showValue(i.keys[e],i.attribute.displayName)})("ngModelChange",function(e){const i=o.CHM(t).index;return o.oxw().keys[i]=e}),o.qZA(),o.qZA(),o.TgZ(4,"mat-form-field",10),o._UZ(5,"label",11),o.TgZ(6,"input",13),o.NdJ("click",function(){const e=o.CHM(t).$implicit,i=o.oxw();return i.readonly&&void 0!==i.attribute.displayName&&i.showValue(e,i.attribute.displayName)})("ngModelChange",function(e){const i=o.CHM(t).index;return o.oxw().values[i]=e}),o.qZA(),o.qZA(),o.YNc(7,g,3,0,"button",14),o.qZA()}if(2&t){const t=e.index,i=o.oxw();o.xp6(1),o.s9C("appearance",i.readonly?"none":"standard"),o.xp6(1),o.hYB("for","",i.attribute.id,"-key-",t,""),o.xp6(1),o.ekj("cursor-pointer",i.readonly&&void 0!==i.attribute.displayName),o.hYB("id","",i.attribute.id,"-key-",t,""),o.MGl("name","key-",t,""),o.Q6J("ngModel",i.keys[t])("readonly",i.readonly),o.xp6(1),o.s9C("appearance",i.readonly?"none":"standard"),o.xp6(1),o.hYB("for","",i.attribute.id,"-value-",t,""),o.xp6(1),o.ekj("cursor-pointer",i.readonly&&void 0!==i.attribute.displayName),o.MGl("name","value-",t,""),o.hYB("id","",i.attribute.id,"-value-",t,""),o.Q6J("readonly",i.readonly)("ngModel",i.values[t]),o.xp6(1),o.Q6J("ngIf",!i.readonly)}}function m(t,e){1&t&&(o.TgZ(0,"mat-icon"),o._uU(1,"more_horiz"),o.qZA())}function b(t,e){1&t&&(o.TgZ(0,"mat-icon"),o._uU(1,"keyboard_arrow_up"),o.qZA())}function _(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",16),o.NdJ("click",function(){return o.CHM(t),o.oxw().onShowChange()}),o.YNc(1,m,2,0,"mat-icon",17),o.YNc(2,b,2,0,"mat-icon",17),o.qZA()}if(2&t){const t=o.oxw();o.xp6(1),o.Q6J("ngIf",!t.showMore),o.xp6(1),o.Q6J("ngIf",t.showMore)}}function w(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",18),o.NdJ("click",function(){return o.CHM(t),o.oxw().addValue()}),o.TgZ(1,"mat-icon"),o._uU(2," add_box "),o.qZA(),o.qZA()}}let A=(()=>{class t{constructor(t){this.dialog=t,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}ngOnInit(){if(this.attribute.value){const t=this.attribute.value;for(const[e,i]of Object.entries(t))this.keys.push(e),this.values.push(i)}this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,s.Hm)(this.attribute))}customTrackBy(t){return t}addValue(){this.keys.push(""),this.values.push(""),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}removeValue(t){this.keys.splice(t,1),this.values.splice(t,1)}updateAttribute(){const t={};for(let e=0;ee.defaultItemsShown),o.xp6(1),o.Q6J("ngIf",!e.readonly))},directives:[a._Y,a.JL,a.F,c.sg,l.gM,c.O5,u.KE,h.Nt,a.Fj,a.Q7,a.JJ,a.On,d.lW,p.Hw],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}"]}),t})()},33596:function(t,e,i){"use strict";i.d(e,{_:function(){return h}});var n=i(31572),s=i(84140),o=i(6527),r=i(84608),a=i(66283),c=i(80340),l=i(16073),u=i(82877);let h=(()=>{class t{constructor(t){this.dialog=t,this.readonly=!1,this.sendEventToParent=new n.vpe}ngOnInit(){this.value=this.attribute.value,this.readonly||(this.readonly=(0,s.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(t,e){const i=(0,s.kZ)();i.width="350px",i.data={value:t,title:e},this.dialog.open(o.mk,i)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(r.uw))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n.TgZ(1,"input",1),n.NdJ("click",function(){return e.readonly&&void 0!==e.value&&e.showValue(e.value,e.attribute.displayName)})("ngModelChange",function(t){return e.attribute.value=t})("keydown",function(){return e._sendEventToParent()}),n.ALo(2,"multiWordDataCy"),n.qZA(),n.qZA()),2&t&&(n.s9C("appearance",e.readonly?"none":"standard"),n.xp6(1),n.ekj("cursor-pointer",e.readonly&&void 0!==e.value),n.Q2q("data-cy","",n.lcZ(2,6,e.attribute.displayName),"-value"),n.Q6J("readonly",e.readonly)("ngModel",e.attribute.value))},directives:[a.KE,c.Nt,l.Fj,l.JJ,l.On],pipes:[u.R],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),t})()},51556:function(t,e,i){"use strict";i.d(e,{M:function(){return v}});var n=i(31572),s=i(22230),o=i(61511),r=i(76021),a=i(84584),c=i(33596),l=i(84140),u=i(6527),h=i(84608),d=i(66283),p=i(80340),g=i(16073);let f=(()=>{class t{constructor(t){this.dialog=t,this.readonly=!1,this.sendEventToParent=new n.vpe}ngOnInit(){this.readonly||(this.readonly=(0,l.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(t){const e=(0,l.kZ)();e.width="350px",e.data={value:t.value,title:t.displayName},this.dialog.open(u.mk,e)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(h.uw))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n.TgZ(1,"input",1),n.NdJ("click",function(){return e.readonly&&void 0!==e.attribute.value&&e.showValue(e.attribute)})("ngModelChange",function(t){return e.attribute.value=t})("keydown",function(){return e._sendEventToParent()}),n.qZA(),n.qZA()),2&t&&(n.s9C("appearance",e.readonly?"none":"standard"),n.xp6(1),n.ekj("cursor-pointer",e.readonly&&void 0!==e.attribute.value),n.Q6J("readonly",e.readonly)("ngModel",e.attribute.value))},directives:[d.KE,p.Nt,g.wV,g.Fj,g.JJ,g.On],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();const m=["map"];function b(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-boolean",3),n.NdJ("sendEventToParent",function(){return n.CHM(t),n.oxw()._sendEventToParent2()}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("attribute",t.attribute)("readonly",t.readonly)}}function _(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-list",3),n.NdJ("sendEventToParent",function(){return n.CHM(t),n.oxw()._sendEventToParent2()}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("attribute",t.attribute)("readonly",t.readonly)}}function w(t,e){if(1&t&&n._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&t){const t=n.oxw();n.Q6J("attribute",t.attribute)("readonly",t.readonly)}}function A(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-string",3),n.NdJ("sendEventToParent",function(){return n.CHM(t),n.oxw()._sendEventToParent2()}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("attribute",t.attribute)("readonly",t.readonly)}}function y(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-integer",3),n.NdJ("sendEventToParent",function(){return n.CHM(t),n.oxw()._sendEventToParent2()}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("attribute",t.attribute)("readonly",t.readonly)}}let v=(()=>{class t{constructor(){this.readonly=!1,this.sendEventToParent2=new n.vpe}updateMapAttribute(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}_sendEventToParent2(){this.sendEventToParent2.emit()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(t,e){if(1&t&&n.Gf(m,5),2&t){let t;n.iGM(t=n.CRH())&&(e.mapComponent=t.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(t,e){1&t&&(n.TgZ(0,"div"),n.YNc(1,b,1,2,"perun-web-apps-attribute-value-boolean",0),n.YNc(2,_,1,2,"perun-web-apps-attribute-value-list",0),n.TgZ(3,"div",1),n.NdJ("click",function(){return e._sendEventToParent2()}),n.YNc(4,w,2,2,"perun-web-apps-attribute-value-map",2),n.qZA(),n.YNc(5,A,1,2,"perun-web-apps-attribute-value-string",0),n.YNc(6,y,1,2,"perun-web-apps-attribute-value-integer",0),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf","java.lang.Boolean"===e.attribute.type),n.xp6(1),n.Q6J("ngIf","java.util.ArrayList"===e.attribute.type),n.xp6(2),n.Q6J("ngIf","java.util.LinkedHashMap"===e.attribute.type),n.xp6(1),n.Q6J("ngIf","java.lang.String"===e.attribute.type||"java.lang.LargeString"===e.attribute.type),n.xp6(1),n.Q6J("ngIf","java.lang.Integer"===e.attribute.type))},directives:[o.O5,r.u,a.H,s.$,c._,f],styles:[""]}),t})()},41186:function(t,e,i){"use strict";i.d(e,{p:function(){return P}});var n=i(58623),s=i(67033),o=i(4230),r=i(51556),a=i(84140),c=i(68416),l=i(31572),u=i(82819),h=i(61511),d=i(29236),p=i(36922),g=i(39571),f=i(82877);let m=(()=>{class t{transform(t){return"virt"===t.namespace.split(":")[4]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=l.Yjl({name:"isVirtualAttribute",type:t,pure:!0}),t})();var b=i(48160);function _(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"th",17),l.TgZ(1,"mat-checkbox",18),l.NdJ("change",function(e){l.CHM(t);const i=l.oxw();return e?i.masterToggle():null}),l.qZA(),l.qZA()}if(2&t){const t=l.oxw();l.xp6(1),l.Q6J("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())("aria-label",t.checkboxLabel())}}function w(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"td",19),l.TgZ(1,"mat-checkbox",20),l.NdJ("click",function(t){return t.stopPropagation()})("change",function(e){const i=l.CHM(t).$implicit,n=l.oxw();return e?n.selection.toggle(i):null}),l.ALo(2,"multiWordDataCy"),l.ALo(3,"isVirtualAttribute"),l.qZA(),l.qZA()}if(2&t){const t=e.$implicit,i=l.oxw();l.xp6(1),l.Q2q("data-cy","",l.lcZ(2,4,t.displayName),"-checkbox"),l.Q6J("checked",i.selection.isSelected(t))("disabled",l.lcZ(3,6,t)||!t.writable)("aria-label",i.checkboxLabel(t))}}function A(t,e){1&t&&(l.TgZ(0,"th",21),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")," "))}function y(t,e){if(1&t&&(l.TgZ(0,"td",22),l._uU(1),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.Oqu(t.id)}}function v(t,e){1&t&&(l.TgZ(0,"th",21),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")," "))}function T(t,e){if(1&t&&(l.TgZ(0,"td",23),l.TgZ(1,"div",24),l._uU(2),l.qZA(),l.qZA()),2&t){const t=e.$implicit,i=l.oxw();l.xp6(1),l.s9C("matTooltip",i.getAttributeFullName(t)),l.xp6(1),l.hij(" ",t.displayName," ")}}function C(t,e){1&t&&(l.TgZ(0,"th",25),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")," "))}function E(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"td",23),l.TgZ(1,"perun-web-apps-attribute-value",26),l.NdJ("sendEventToParent2",function(){const e=l.CHM(t).$implicit;return l.oxw().onValueChange(e)}),l.qZA(),l.qZA()}if(2&t){const t=e.$implicit,i=l.oxw();l.xp6(1),l.Q6J("attribute",t)("readonly",i.readonly||!t.writable)}}function S(t,e){1&t&&(l.TgZ(0,"th",21),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")," "))}function k(t,e){if(1&t&&(l.TgZ(0,"td",23),l._uU(1),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.Oqu(t.description)}}function I(t,e){1&t&&l._UZ(0,"tr",27)}function x(t,e){if(1&t&&(l._UZ(0,"tr",28),l.ALo(1,"translate")),2&t){const t=e.$implicit,i=l.oxw();l.s9C("matTooltip",l.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),l.Q6J("matTooltipPosition","before")("matTooltipDisabled",t.writable||i.readonly)}}function R(t,e){1&t&&(l.TgZ(0,"app-alert",29),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function O(t,e){if(1&t&&(l.TgZ(0,"app-alert",29),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.hij(" ",l.lcZ(2,1,t.emptyListText),"\n")}}let P=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.attributes=[],this.selection=new o.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=a.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new s.by((0,a.MX)(this.attributes)),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"displayName":return t.displayName;case"description":return t.description;case"value":return JSON.stringify(t.value);case"urn":return t.namespace+":"+t.baseFriendlyName;default:return""}}exportData(t){(0,a.O6)((0,a.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(t=>!this.hiddenColumns.includes(t)),this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>(0,a.Sd)(t,e,this.displayedColumns.concat("urn"),this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,a.pR)(t,e,this.getDataForColumn,this),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,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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}updateMapAttributes(){for(const t of this.items.toArray())"java.util.LinkedHashMap"===t.attribute.type&&t.updateMapAttribute()}onValueChange(t){this.canBeSelected(t)&&this.selection.select(t)}canBeSelected(t){return!(0,a.Hm)(t)&&t.writable}getAttributeFullName(t){return`${t.namespace}:${t.friendlyName}`}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(c.x4),l.Y36(c.UA))},t.\u0275cmp=l.Xpm({type:t,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(t,e){if(1&t&&(l.Gf(n.YE,7),l.Gf(a.l9,7),l.Gf(r.M,5)),2&t){let t;l.iGM(t=l.CRH())&&(e.matSort=t.first),l.iGM(t=l.CRH())&&(e.child=t.first),l.iGM(t=l.CRH())&&(e.items=t)}},inputs:{attributes:"attributes",selection:"selection",displayedColumns:"displayedColumns",inDialog:"inDialog",filterValue:"filterValue",tableId:"tableId",readonly:"readonly",hiddenColumns:"hiddenColumns",emptyListText:"emptyListText"},features:[l.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(t,e){1&t&&(l.TgZ(0,"div",0),l.TgZ(1,"perun-web-apps-table-wrapper",1),l.NdJ("exportData",function(t){return e.exportData(t)}),l.TgZ(2,"table",2),l.ynx(3,3),l.YNc(4,_,2,3,"th",4),l.YNc(5,w,4,8,"td",5),l.BQk(),l.ynx(6,6),l.YNc(7,A,3,3,"th",7),l.YNc(8,y,2,1,"td",8),l.BQk(),l.ynx(9,9),l.YNc(10,v,3,3,"th",7),l.YNc(11,T,3,2,"td",10),l.BQk(),l.ynx(12,11),l.YNc(13,C,3,3,"th",12),l.YNc(14,E,2,2,"td",10),l.BQk(),l.ynx(15,13),l.YNc(16,S,3,3,"th",7),l.YNc(17,k,2,1,"td",10),l.BQk(),l.YNc(18,I,1,0,"tr",14),l.YNc(19,x,2,5,"tr",15),l.qZA(),l.qZA(),l.qZA(),l.YNc(20,R,3,3,"app-alert",16),l.YNc(21,O,3,3,"app-alert",16)),2&t&&(l.Q6J("hidden",0===e.dataSource.filteredData.length),l.xp6(1),l.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),l.xp6(1),l.Q6J("dataSource",e.dataSource),l.xp6(16),l.Q6J("matHeaderRowDef",e.displayedColumns),l.xp6(1),l.Q6J("matRowDefColumns",e.displayedColumns),l.xp6(1),l.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.dataSource.data.length),l.xp6(1),l.Q6J("ngIf",0===e.dataSource.data.length))},directives:[u.l,s.BZ,n.YE,s.w1,s.fO,s.Dz,s.as,s.nj,h.O5,s.ge,d.oG,s.ev,n.nU,p.gM,r.M,s.XQ,s.Gk,g.w],pipes:[f.R,m,b.X$],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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important} .urn-tooltip{max-width:800px!important}"]}),t})()},66297:function(t,e,i){"use strict";i.d(e,{W:function(){return h}});var n=i(68416),s=i(31572),o=i(61511),r=i(15980),a=i(36922),c=i(43691),l=i(48160);const u=function(t){return{color:t}};let h=(()=>{class t{constructor(t,e){this.location=t,this.storeService=e}ngOnInit(){this.backButtonColor=this.storeService.get("theme","back_button_color")}goBack(){"false"===sessionStorage.getItem("onInitPage")&&this.location.back()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(o.Ye),s.Y36(n.d6))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"button",0),s.NdJ("click",function(){return e.goBack()}),s.ALo(1,"translate"),s.TgZ(2,"mat-icon",1),s._uU(3,"arrow_right_alt"),s.qZA(),s.qZA()),2&t&&(s.s9C("matTooltip",s.lcZ(1,2,"Back")),s.Q6J("ngStyle",s.VKq(4,u,e.backButtonColor)))},directives:[r.lW,o.PC,a.gM,c.Hw],pipes:[l.X$],styles:[".rotate[_ngcontent-%COMP%]{transform:rotate(180deg) scale(1.5)}"]}),t})()},43005:function(t,e,i){"use strict";i.d(e,{r:function(){return g}});var n=i(31572),s=i(16073),o=i(68416),r=i(66283),a=i(80340),c=i(61511),l=i(29236),u=i(37665),h=i(48160);function d(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-checkbox",7),n.NdJ("change",function(){return n.CHM(t),n.oxw().emitAsSubGroup()})("ngModelChange",function(e){return n.CHM(t),n.oxw().asSubgroup=e}),n._uU(1),n.ALo(2,"translate"),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("labelPosition","before")("ngModel",t.asSubgroup),n.xp6(1),n.hij(" ",n.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function p(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"perun-web-apps-group-search-select",8),n.NdJ("groupSelected",function(e){return n.CHM(t),n.oxw().emitParentGroup(e)}),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("disableAutoSelect",!0)("groups",t.voGroups)}}let g=(()=>{class t{constructor(t){this.store=t,this.parentGroup=null,this.voGroups=[],this.asSubgroup=!1,this.invalidNameMessage=this.store.get("group_name_error_message"),this.secondaryRegex=this.store.get("group_name_secondary_regex"),this.nameChanged=new n.vpe,this.descriptionChanged=new n.vpe,this.parentGroupChanged=new n.vpe,this.asSubgroupChanged=new n.vpe}ngOnInit(){this.isNotSubGroup=null===this.parentGroup,this.nameControl=new s.NI("",[s.kI.required,s.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),s.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new s.NI("",[s.kI.required,s.kI.maxLength(129)]),this.selectedParent=null,this.voGroups=this.voGroups.filter(t=>"members"!==t.name)}emitName(){this.nameChanged.emit(this.nameControl.invalid?"":this.nameControl.value)}emitDescription(){this.descriptionChanged.emit(this.descriptionControl.invalid?"":this.descriptionControl.value)}emitParentGroup(t){this.selectedParent=t,this.parentGroupChanged.emit(t)}emitAsSubGroup(){this.asSubgroup||this.emitParentGroup(null),this.asSubgroupChanged.emit(this.asSubgroup)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(o.d6))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"mat-form-field",1),n.NdJ("keyup",function(){return e.emitName()}),n.TgZ(2,"label",2),n._UZ(3,"input",3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"mat-error"),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.qZA(),n.TgZ(8,"mat-form-field",4),n.NdJ("keyup",function(){return e.emitDescription()}),n.TgZ(9,"label",2),n._UZ(10,"textarea",3),n.ALo(11,"translate"),n.qZA(),n.TgZ(12,"mat-error"),n._uU(13),n.ALo(14,"translate"),n.qZA(),n.qZA(),n.YNc(15,d,3,5,"mat-checkbox",5),n.YNc(16,p,1,2,"perun-web-apps-group-search-select",6),n.qZA()),2&t&&(n.xp6(3),n.s9C("placeholder",n.lcZ(4,8,"DIALOGS.CREATE_GROUP.NAME")),n.Q6J("formControl",e.nameControl),n.xp6(3),n.hij(" ",e.invalidNameMessage.length?e.invalidNameMessage:n.lcZ(7,10,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),n.xp6(4),n.s9C("placeholder",n.lcZ(11,12,"DIALOGS.CREATE_GROUP.DESCRIPTION")),n.Q6J("formControl",e.descriptionControl),n.xp6(3),n.hij(" ",n.lcZ(14,14,"DIALOGS.CREATE_GROUP.INVALID_DESCRIPTION")," "),n.xp6(2),n.Q6J("ngIf",e.isNotSubGroup),n.xp6(1),n.Q6J("ngIf",e.asSubgroup))},directives:[r.KE,a.Nt,s.Fj,s.Q7,s.JJ,s.oH,r.TO,c.O5,l.oG,s.On,u.h],pipes:[h.X$],styles:[""]}),t})()},51613:function(t,e,i){"use strict";i.d(e,{S:function(){return l}});var n=i(31572),s=i(66283),o=i(80340),r=i(15812),a=i(16073),c=i(48160);let l=(()=>{class t{constructor(){this.datePicker=new n.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 t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,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(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-form-field",0),n.NdJ("click",function(){return n.CHM(t),n.MAs(7).open()}),n.TgZ(1,"mat-label"),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"input",1),n.NdJ("dateChange",function(){return e.dateChange()}),n.qZA(),n._UZ(5,"mat-datepicker-toggle",2),n._UZ(6,"mat-datepicker",null,3),n.qZA(),n.TgZ(8,"mat-form-field",4),n.NdJ("click",function(){return n.CHM(t),n.MAs(15).open()}),n.TgZ(9,"mat-label"),n._uU(10),n.ALo(11,"translate"),n.qZA(),n.TgZ(12,"input",1),n.NdJ("dateChange",function(){return e.dateChange()}),n.qZA(),n._UZ(13,"mat-datepicker-toggle",2),n._UZ(14,"mat-datepicker",null,5),n.qZA()}if(2&t){const t=n.MAs(7),i=n.MAs(15);n.xp6(2),n.Oqu(n.lcZ(3,12,"VO_DETAIL.APPLICATION.DATE.START")),n.xp6(2),n.Q6J("matDatepicker",t)("min",e.startMinDate)("max",e.startMaxDate)("formControl",e.startDate),n.xp6(1),n.Q6J("for",t),n.xp6(5),n.Oqu(n.lcZ(11,14,"VO_DETAIL.APPLICATION.DATE.END")),n.xp6(2),n.Q6J("matDatepicker",i)("min",e.endMinDate)("max",e.endMaxDate)("formControl",e.endDate),n.xp6(1),n.Q6J("for",i)}},directives:[s.KE,s.hX,o.Nt,r.hl,a.Fj,a.JJ,a.oH,r.nW,s.R9,r.Mq],pipes:[c.X$],styles:[""]}),t})()},91058:function(t,e,i){"use strict";i.d(e,{P:function(){return d}});var n=i(31572),s=i(87254),o=i(79996),r=i(47701),a=i(98720),c=i(66283),l=i(80340),u=i(48160);const h=["groupFilterInput"];let d=(()=>{class t{constructor(){this.filter=new n.vpe}ngOnInit(){(0,s.R)(this.groupFilterInput.nativeElement,"keyup").pipe((0,o.U)(t=>t.target.value),(0,r.b)(500),(0,a.x)()).subscribe(t=>{this.filter.emit(t)})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(t,e){if(1&t&&n.Gf(h,7),2&t){let t;n.iGM(t=n.CRH())&&(e.groupFilterInput=t.first)}},inputs:{placeholder:"placeholder"},outputs:{filter:"filter"},decls:4,vars:3,consts:[[1,"filter-field","mr-2"],["matInput","",3,"placeholder"],["groupFilterInput",""]],template:function(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n._UZ(1,"input",1,2),n.ALo(3,"translate"),n.qZA()),2&t&&(n.xp6(1),n.s9C("placeholder",n.lcZ(3,1,e.placeholder)))},directives:[c.KE,l.Nt],pipes:[u.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),t})()},44973:function(t,e,i){"use strict";i.d(e,{i:function(){return y}});var n=i(31572),s=i(16073),o=i(66994),r=i(55959),a=i(25416),c=i(96577),l=i(66283),u=i(4786),h=i(61511),d=i(71522),p=i(30146),g=i(4253);const f=["scrollViewport"];function m(t,e){if(1&t&&(n.TgZ(0,"mat-select-trigger"),n._uU(1),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.hij(" ",t.multipleSelectedText()," ")}}function b(t,e){if(1&t&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&t){const t=n.oxw(2);n.Tol(t.colorByStatus(null==t.entitiesCtrl?null:t.entitiesCtrl.value)),n.xp6(1),n.hij(" ",t.statusTextFunction(null==t.entitiesCtrl?null:t.entitiesCtrl.value)?"("+t.statusTextFunction(null==t.entitiesCtrl?null:t.entitiesCtrl.value)+")":""," ")}}function _(t,e){if(1&t&&(n.TgZ(0,"mat-option",8),n._uU(1),n.TgZ(2,"span",9),n._uU(3),n.qZA(),n.YNc(4,b,2,4,"span",10),n.qZA()),2&t){const t=n.oxw();n.Q6J("value",null==t.entitiesCtrl?null:t.entitiesCtrl.value),n.xp6(1),n.hij(" ",t.mainTextFunction(null==t.entitiesCtrl?null:t.entitiesCtrl.value)," "),n.xp6(2),n.Oqu(t.secondaryTextFunction(null==t.entitiesCtrl?null:t.entitiesCtrl.value)),n.xp6(1),n.Q6J("ngIf",t.displayStatus)}}function w(t,e){if(1&t&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw();n.Tol(e.colorByStatus(t)),n.xp6(1),n.hij(" ",e.statusTextFunction(t)?"("+e.statusTextFunction(t)+")":""," ")}}function A(t,e){if(1&t&&(n.TgZ(0,"mat-option",11),n._uU(1),n.TgZ(2,"span",9),n._uU(3),n.qZA(),n.YNc(4,w,2,4,"span",10),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.Tol(i.theme),n.Q6J("value",t),n.xp6(1),n.hij(" ",i.mainTextFunction(t)," "),n.xp6(2),n.Oqu(i.secondaryTextFunction(t)),n.xp6(1),n.Q6J("ngIf",i.displayStatus)}}let y=(()=>{class t{constructor(t){this.cd=t,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 n.vpe,this.entitiesCtrl=new s.NI,this.entityFilterCtrl=new s.NI,this.filteredEntities=new o.t(1),this.entitiesLen=0,this._onDestroy=new r.xQ,this.mainTextFunction=t=>(0,c.stringify)(t),this.secondaryTextFunction=t=>"#"+t.id+(t.description?" "+t.description:""),this.statusTextFunction=t=>t.status}ngOnInit(){this.entitiesCtrl.valueChanges.subscribe(t=>this.entitySelected.emit(t)),this.disableAutoSelect||null!==this.entity||this.entitiesCtrl.setValue(this.entities[0]),this.filteredEntities.subscribe(t=>this.entitiesLen=t.length),this.entityFilterCtrl.valueChanges.pipe((0,a.R)(this._onDestroy)).subscribe(()=>{this.filterEntites()}),null!==this.entity&&this.entitiesCtrl.setValue(this.entity)}colorByStatus(t){switch(t.status){case"ACTIVE":return"green";case"INACTIVE":return"grey";case"FAILED":return"red";case"PROCESSING":return"black"}}ngOnChanges(t){null!==this.entity&&this.entitiesCtrl.setValue(this.entity),t.entities&&this.filteredEntities.next(this.entities.slice())}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}filterEntites(){if(!this.entities)return;let t=this.entityFilterCtrl.value;if(!t)return this.filteredEntities.next(this.entities.slice()),void this.cd.detectChanges();t=this.normalize(t),this.filteredEntities.next(this.entities.filter(e=>this.normalize(this.searchFunction(e)).indexOf(t)>=0)),this.cd.detectChanges()}normalize(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}openChange(){this.scrollViewport.scrollToIndex(0),this.scrollViewport.checkViewportSize()}getViewportHeight(){let t=48*this.entitiesLen;return t>192&&(t=192),this.scrollViewport&&this.scrollViewport.checkViewportSize(),t}multipleSelectedText(){if(this.entitiesCtrl.value&&0!==this.entitiesCtrl.value.length)return this.entitiesCtrl.value.length===this.entities.length?"ALL":this.entitiesCtrl.value.length>1?this.mainTextFunction(this.entitiesCtrl.value[0])+` + ${this.entitiesCtrl.value.length-1} other(s)`:this.mainTextFunction(this.entitiesCtrl.value[0])+" "+this.secondaryTextFunction(this.entitiesCtrl.value[0])}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-entity-search-select"]],viewQuery:function(t,e){if(1&t&&n.Gf(f,5),2&t){let t;n.iGM(t=n.CRH())&&(e.scrollViewport=t.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:[n.TTD],decls:10,vars:16,consts:[[1,"w-100"],[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(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n.TgZ(1,"mat-select",1),n.NdJ("openedChange",function(){return e.openChange()}),n.YNc(2,m,2,1,"mat-select-trigger",2),n.TgZ(3,"mat-option"),n._UZ(4,"ngx-mat-select-search",3),n.qZA(),n.YNc(5,_,5,4,"mat-option",4),n.TgZ(6,"cdk-virtual-scroll-viewport",5,6),n.YNc(8,A,5,7,"mat-option",7),n.ALo(9,"async"),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.xp6(1),n.s9C("placeholder",e.selectPlaceholder),n.Q6J("formControl",e.entitiesCtrl)("multiple",e.multiple),n.xp6(1),n.Q6J("ngIf",e.multiple),n.xp6(2),n.s9C("placeholderLabel",e.findPlaceholder),n.s9C("noEntriesFoundLabel",e.noEntriesText),n.Q6J("clearSearchInput",!1)("formControl",e.entityFilterCtrl),n.xp6(1),n.Q6J("ngIf",null==e.entitiesCtrl?null:e.entitiesCtrl.value),n.xp6(1),n.Udp("height",e.getViewportHeight(),"px"),n.Q6J("minBufferPx",240)("maxBufferPx",480),n.xp6(2),n.Q6J("cdkVirtualForOf",n.lcZ(9,14,e.filteredEntities)))},directives:[l.KE,u.gD,s.JJ,s.oH,h.O5,d.ey,p.nu,g.N7,g.xd,g.x0,u.$L],pipes:[h.Ov],styles:[".selected-options-bottom[_ngcontent-%COMP%]{visibility:hidden;position:absolute}.green[_ngcontent-%COMP%]{color:green}.grey[_ngcontent-%COMP%]{color:grey}.red[_ngcontent-%COMP%]{color:red}.black[_ngcontent-%COMP%]{color:#000}"]}),t})()},60007:function(t,e,i){"use strict";i.d(e,{X:function(){return $}});var n=i(58623),s=i(67033),o=i(84140),r=i(68416),a=i(31572),c=i(82819),l=i(61511),u=i(29236),h=i(72953),d=i(16073),p=i(36922),g=i(15980),f=i(43691);function m(t,e){if(1&t&&(a.TgZ(0,"div",6),a._uU(1),a.qZA()),2&t){const t=e.$implicit,i=a.oxw();a.xp6(1),a.hij(" ",t[i.paramName]," ")}}function b(t,e){1&t&&(a.TgZ(0,"mat-icon"),a._uU(1,"more_horiz"),a.qZA())}function _(t,e){1&t&&(a.TgZ(0,"mat-icon"),a._uU(1,"keyboard_arrow_up"),a.qZA())}function w(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"button",7),a.NdJ("click",function(){return a.CHM(t),a.oxw().onShowChange()}),a.YNc(1,b,2,0,"mat-icon",8),a.YNc(2,_,2,0,"mat-icon",8),a.qZA()}if(2&t){const t=a.oxw();a.xp6(1),a.Q6J("ngIf",!t.showMore),a.xp6(1),a.Q6J("ngIf",t.showMore)}}let A=(()=>{class t{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 t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=a.Xpm({type:t,selectors:[["perun-web-apps-object-list-values"]],inputs:{objects:"objects",filterValue:"filterValue",paramName:"paramName"},features:[a.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(t,e){1&t&&(a.TgZ(0,"form",0),a.TgZ(1,"div",1),a.TgZ(2,"div",2),a.YNc(3,m,2,1,"div",3),a.qZA(),a.TgZ(4,"div"),a.TgZ(5,"span",4),a.YNc(6,w,3,2,"button",5),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.xp6(3),a.Q6J("ngForOf",e.objects.slice(0,e.itemsShown)),a.xp6(2),a.Q6J("matTooltip",e.showMore?"Show less":"Show more")("matTooltipPosition","above"),a.xp6(1),a.Q6J("ngIf",e.objects.length>e.defaultItemsShown))},directives:[d._Y,d.JL,d.F,l.sg,p.gM,l.O5,g.lW,f.Hw],styles:[""]}),t})();var y=i(84534),v=i(57629),T=i(39571),C=i(48160),E=i(48853);let S=(()=>{class t{transform(t,e,i){return t.filter(t=>t[i].includes(e)).filter((t,e,n)=>n.findIndex(e=>e[i]===t[i])===e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=a.Yjl({name:"filterUniqueObjects",type:t,pure:!0}),t})();function k(t,e){1&t&&a._UZ(0,"th",20)}function I(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"td",21),a.TgZ(1,"mat-checkbox",22),a.NdJ("change",function(e){const i=a.CHM(t).$implicit,n=a.oxw();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),a.qZA(),a.qZA()}if(2&t){const t=e.$implicit,i=a.oxw();a.xp6(1),a.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function x(t,e){1&t&&(a.TgZ(0,"th",23),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.ID")," "))}function R(t,e){if(1&t&&(a.TgZ(0,"td",24),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.hij(" ",t.facility.id," ")}}function O(t,e){1&t&&a._UZ(0,"th",25)}function P(t,e){if(1&t&&(a.TgZ(0,"td",26),a._UZ(1,"perun-web-apps-recently-viewed-icon",27),a.qZA()),2&t){const t=e.$implicit,i=a.oxw();a.xp6(1),a.Q6J("id",t.facility.id)("recentIds",i.recentIds)}}function D(t,e){1&t&&(a.TgZ(0,"th",23),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.NAME")," "))}function M(t,e){if(1&t&&(a.TgZ(0,"td",26),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(t.facility.name)}}function L(t,e){1&t&&(a.TgZ(0,"th",25),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESCRIPTION")," "))}function N(t,e){if(1&t&&(a.TgZ(0,"td",26),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(t.facility.description)}}function z(t,e){1&t&&(a.TgZ(0,"th",25),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.TECHNICAL_OWNERS")," "))}function Z(t,e){if(1&t&&(a.TgZ(0,"td",26),a._uU(1),a.ALo(2,"technicalOwners"),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(a.lcZ(2,1,t.owners))}}function B(t,e){1&t&&(a.TgZ(0,"th",25),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESTINATIONS")," "))}function F(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"td",26),a.TgZ(1,"perun-web-apps-object-list-values",28),a.NdJ("mouseenter",function(){return a.CHM(t),a.oxw().disableRouting=!0})("mouseleave",function(){return a.CHM(t),a.oxw().disableRouting=!1}),a.ALo(2,"filterUniqueObjects"),a.qZA(),a.qZA()}if(2&t){const t=e.$implicit,i=a.oxw();a.xp6(1),a.Q6J("objects",a.Dn7(2,2,t.destinations,i.filterValue,"destination"))("paramName","destination")}}function U(t,e){1&t&&(a.TgZ(0,"th",25),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.HOSTS")," "))}function q(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"td",26),a.TgZ(1,"perun-web-apps-object-list-values",28),a.NdJ("mouseenter",function(){return a.CHM(t),a.oxw().disableRouting=!0})("mouseleave",function(){return a.CHM(t),a.oxw().disableRouting=!1}),a.ALo(2,"filterUniqueObjects"),a.qZA(),a.qZA()}if(2&t){const t=e.$implicit,i=a.oxw();a.xp6(1),a.Q6J("objects",a.Dn7(2,2,t.hosts,i.filterValue,"hostname"))("paramName","hostname")}}function H(t,e){1&t&&a._UZ(0,"tr",29)}const G=function(t){return["/facilities",t]},j=function(){return[]};function Y(t,e){if(1&t&&a._UZ(0,"tr",30),2&t){const t=e.$implicit,i=a.oxw();a.Q6J("perunWebAppsMiddleClickRouterLink",a.VKq(2,G,t.facility.id))("routerLink",i.disableRouting?a.DdM(4,j):a.VKq(5,G,t.facility.id))}}function K(t,e){1&t&&(a.TgZ(0,"app-alert",31),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function V(t,e){1&t&&(a.TgZ(0,"app-alert",31),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FACILITIES"),"\n"))}let $=(()=>{class t{constructor(t){this.authResolver=t,this.displayedColumns=["select","id","recent","name","description","technicalOwners","destinations","hosts"],this.pageSizeOptions=o.f7}set matSort(t){this.sort=t}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.setDataSource()}getDataForColumn(t,e,i){switch(e){case"id":return t.facility.id.toString();case"name":return t.facility.name;case"description":return t.facility.description;case"technicalOwners":return(0,o.te)(t.owners);case"recent":return i.recentIds&&i.recentIds.indexOf(t.facility.id)>-1?"#".repeat(i.recentIds.indexOf(t.facility.id)):t.name;case"destinations":return t.destinations.map(t=>t.destination).join(" ; ");case"hosts":return t.hosts.map(t=>t.hostname).join(" ; ");default:return t[e]}}exportData(t){(0,o.O6)((0,o.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource||(this.dataSource=new s.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(t,e)=>(0,o.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,o.pR)(t,e,this.getDataForColumn,this)),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(t=>this.selection.select(t))}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.facility.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(r.x4))},t.\u0275cmp=a.Xpm({type:t,selectors:[["perun-web-apps-facilities-list"]],viewQuery:function(t,e){if(1&t&&(a.Gf(n.YE,7),a.Gf(o.l9,7)),2&t){let t;a.iGM(t=a.CRH())&&(e.matSort=t.first),a.iGM(t=a.CRH())&&(e.child=t.first)}},inputs:{facilities:"facilities",recentIds:"recentIds",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",selection:"selection",pageSizeOptions:"pageSizeOptions"},features:[a.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,"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(t,e){1&t&&(a.TgZ(0,"div",0),a.TgZ(1,"perun-web-apps-table-wrapper",1),a.NdJ("exportData",function(t){return e.exportData(t)}),a.TgZ(2,"table",2),a.ynx(3,3),a.YNc(4,k,1,0,"th",4),a.YNc(5,I,2,2,"td",5),a.BQk(),a.ynx(6,6),a.YNc(7,x,3,3,"th",7),a.YNc(8,R,2,1,"td",8),a.BQk(),a.ynx(9,9),a.YNc(10,O,1,0,"th",10),a.YNc(11,P,2,2,"td",11),a.BQk(),a.ynx(12,12),a.YNc(13,D,3,3,"th",7),a.YNc(14,M,2,1,"td",11),a.BQk(),a.ynx(15,13),a.YNc(16,L,3,3,"th",10),a.YNc(17,N,2,1,"td",11),a.BQk(),a.ynx(18,14),a.YNc(19,z,3,3,"th",10),a.YNc(20,Z,3,3,"td",11),a.BQk(),a.ynx(21,15),a.YNc(22,B,3,3,"th",10),a.YNc(23,F,3,6,"td",11),a.BQk(),a.ynx(24,16),a.YNc(25,U,3,3,"th",10),a.YNc(26,q,3,6,"td",11),a.BQk(),a.YNc(27,H,1,0,"tr",17),a.YNc(28,Y,1,7,"tr",18),a.qZA(),a.qZA(),a.qZA(),a.YNc(29,K,3,3,"app-alert",19),a.YNc(30,V,3,3,"app-alert",19)),2&t&&(a.Q6J("hidden",!e.dataSource||0===e.dataSource.filteredData.length||0===e.facilities.length),a.xp6(1),a.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),a.xp6(1),a.Q6J("dataSource",e.dataSource),a.xp6(25),a.Q6J("matHeaderRowDef",e.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",e.displayedColumns),a.xp6(1),a.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.facilities.length),a.xp6(1),a.Q6J("ngIf",0===e.facilities.length))},directives:[c.l,s.BZ,n.YE,s.w1,s.fO,s.Dz,s.as,s.nj,l.O5,s.ge,s.ev,u.oG,n.nU,h.W,A,s.XQ,s.Gk,y.YH,v.rH,T.w],pipes:[C.X$,E.J,S],styles:["tr[_ngcontent-%COMP%]{cursor:pointer}"]}),t})()},54930:function(t,e,i){"use strict";i.d(e,{i:function(){return T}});var n=i(31572),s=i(68416),o=i(61511),r=i(15980),a=i(81391),c=i(36922),l=i(43691),u=i(8055),h=i(48160),d=i(44385),p=i(52984),g=i(51392);function f(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"span",5),n.ALo(1,"translate"),n.ALo(2,"groupSyncToolTip"),n.TgZ(3,"button",6),n.NdJ("click",function(){return n.CHM(t),n.oxw(2).onSyncDetail()}),n.ALo(4,"groupSyncIcon"),n.TgZ(5,"mat-icon"),n.ALo(6,"groupSyncIconColor"),n._uU(7),n.ALo(8,"groupSyncIcon"),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=n.oxw(2);n.Q6J("matTooltipPosition","above")("matTooltip",n.lcZ(1,7,n.lcZ(2,9,t.group))),n.xp6(3),n.Q6J("disabled","sync_disabled"===n.lcZ(4,11,t.group)),n.xp6(2),n.Tol(n.lcZ(6,13,t.group)),n.xp6(2),n.hij(" ",n.lcZ(8,15,t.group)," ")}}function m(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"span",5),n.ALo(1,"translate"),n.TgZ(2,"button",6),n.NdJ("click",function(){return n.CHM(t),n.oxw(2).onMoveGroup()}),n.TgZ(3,"mat-icon"),n._uU(4,"arrow_right_alt"),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=n.oxw(2);n.s9C("matTooltip",n.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE")),n.Q6J("matTooltipPosition","above"),n.xp6(2),n.Q6J("disabled",t.disabled)}}function b(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"span",5),n.ALo(1,"translate"),n.TgZ(2,"button",6),n.NdJ("click",function(){return n.CHM(t),n.oxw(2).onChangeNameDescription()}),n.TgZ(3,"mat-icon"),n._uU(4,"text_format"),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=n.oxw(2);n.s9C("matTooltip",n.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME")),n.Q6J("matTooltipPosition","above"),n.xp6(2),n.Q6J("disabled",t.disabled)}}function _(t,e){if(1&t&&(n.TgZ(0,"div",2),n.TgZ(1,"button",3),n.ALo(2,"translate"),n.TgZ(3,"mat-icon"),n._uU(4," file_copy "),n.qZA(),n.qZA(),n.YNc(5,f,9,17,"span",4),n.YNc(6,m,5,5,"span",4),n.YNc(7,b,5,5,"span",4),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.s9C("matTooltip",n.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),n.Q6J("cdkCopyToClipboard",t.group.name)("matTooltipPosition","above"),n.xp6(4),n.Q6J("ngIf",t.syncAuth),n.xp6(1),n.Q6J("ngIf",t.moveAuth),n.xp6(1),n.Q6J("ngIf",t.editAuth)}}function w(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",11),n.NdJ("click",function(){return n.CHM(t),n.oxw(2).onSyncDetail()}),n.ALo(1,"groupSyncIcon"),n.TgZ(2,"mat-icon"),n.ALo(3,"groupSyncIconColor"),n._uU(4),n.ALo(5,"groupSyncIcon"),n.qZA(),n.TgZ(6,"span"),n._uU(7),n.ALo(8,"translate"),n.ALo(9,"groupSyncToolTip"),n.qZA(),n.qZA()}if(2&t){const t=n.oxw(2);n.Q6J("disabled","sync_disabled"===n.lcZ(1,6,t.group)),n.xp6(2),n.Tol(n.lcZ(3,8,t.group)),n.xp6(2),n.hij(" ",n.lcZ(5,10,t.group)," "),n.xp6(3),n.Oqu(n.lcZ(8,12,n.lcZ(9,14,t.group)))}}function A(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",11),n.NdJ("click",function(){return n.CHM(t),n.oxw(2).onMoveGroup()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_right_alt"),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.qZA()}if(2&t){const t=n.oxw(2);n.Q6J("disabled",t.disabled),n.xp6(4),n.Oqu(n.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE"))}}function y(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",11),n.NdJ("click",function(){return n.CHM(t),n.oxw(2).onChangeNameDescription()}),n.TgZ(1,"mat-icon"),n._uU(2,"text_format"),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.qZA()}if(2&t){const t=n.oxw(2);n.Q6J("disabled",t.disabled),n.xp6(4),n.Oqu(n.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME"))}}function v(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"button",7),n.TgZ(2,"mat-icon"),n._uU(3,"more_vert"),n.qZA(),n.qZA(),n.TgZ(4,"mat-menu",null,8),n.TgZ(6,"button",9),n.TgZ(7,"mat-icon"),n._uU(8," file_copy "),n.qZA(),n.TgZ(9,"span"),n._uU(10),n.ALo(11,"translate"),n.qZA(),n.qZA(),n.YNc(12,w,10,16,"button",10),n.YNc(13,A,6,4,"button",10),n.YNc(14,y,6,4,"button",10),n.qZA(),n.qZA()),2&t){const t=n.MAs(5),e=n.oxw();n.xp6(1),n.Q6J("mat-menu-trigger-for",t),n.xp6(5),n.Q6J("cdkCopyToClipboard",e.group.name),n.xp6(4),n.Oqu(n.lcZ(11,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),n.xp6(2),n.Q6J("ngIf",e.syncAuth),n.xp6(1),n.Q6J("ngIf",e.moveAuth),n.xp6(1),n.Q6J("ngIf",e.editAuth)}}let T=(()=>{class t{constructor(t){this.authResolver=t,this.disabled=!1,this.moveGroup=new n.vpe,this.syncGroup=new n.vpe,this.changeNameDescription=new n.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 t.\u0275fac=function(e){return new(e||t)(n.Y36(s.x4))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.YNc(0,_,8,8,"div",0),n.YNc(1,v,15,8,"div",1)),2&t&&(n.Q6J("ngIf",e.displayButtons),n.xp6(1),n.Q6J("ngIf",!e.displayButtons))},directives:[o.O5,r.lW,a.i3,c.gM,l.Hw,u.p6,u.VK,u.OP],pipes:[h.X$,d.r,p.J,g.F],styles:[".buttons-container[_ngcontent-%COMP%]{white-space:nowrap;width:160px}.horiz_right[_ngcontent-%COMP%]{float:right}"]}),t})()},46837:function(t,e,i){"use strict";i.d(e,{x:function(){return f}});var n=i(31572),s=i(84140),o=i(6527),r=i(84608),a=i(61511),c=i(36922),l=i(43691),u=i(48160);function h(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"span",3),n.NdJ("click",function(){return n.CHM(t),n.oxw().changeStatus()}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",4),n._uU(3,"check_circle_outline"),n.qZA(),n.qZA()}2&t&&n.s9C("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE"))}function d(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"span",3),n.NdJ("click",function(){return n.CHM(t),n.oxw().changeStatus()}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",5),n._uU(3,"block"),n.qZA(),n.qZA()}2&t&&n.s9C("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE"))}function p(t,e){if(1&t&&(n.TgZ(0,"span",6),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",7),n._uU(3,"report"),n.qZA(),n.qZA()),2&t){const t=n.oxw();n.hYB("matTooltip","",n.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",t.failureCause,"")}}function g(t,e){1&t&&(n.TgZ(0,"span",6),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",8),n._uU(3,"autorenew"),n.qZA(),n.qZA()),2&t&&n.s9C("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}let f=(()=>{class t{constructor(t){this.dialog=t,this.status="",this.statusChange=new n.vpe}changeStatus(){const t=(0,s.kZ)();t.width="500px",t.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(o.Qu,t).afterClosed().subscribe(t=>{t&&this.statusChange.emit()})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(r.uw))},t.\u0275cmp=n.Xpm({type:t,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"],["matTooltipPosition","above",3,"matTooltip"],[1,"red"],[1,"black"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.YNc(1,h,4,3,"span",1),n.YNc(2,d,4,3,"span",1),n.YNc(3,p,4,4,"span",2),n.YNc(4,g,4,3,"span",2),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf","ACTIVE"===e.status),n.xp6(1),n.Q6J("ngIf","INACTIVE"===e.status),n.xp6(1),n.Q6J("ngIf","FAILED"===e.status),n.xp6(1),n.Q6J("ngIf","PROCESSING"===e.status))},directives:[a.O5,c.gM,l.Hw],pipes:[u.X$],styles:[""]}),t})()},37665:function(t,e,i){"use strict";i.d(e,{h:function(){return a}});var n=i(31572),s=i(84140),o=i(44973),r=i(48160);let a=(()=>{class t{constructor(){this.groupSelected=new n.vpe,this.disableAutoSelect=!1,this.displayStatus=!1,this.nameFunction=t=>t.name}ngOnInit(){this.groups=this.groups.sort(s.aC)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,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(t,e){if(1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.groupSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t){let t;n.Q6J("entities",e.groups)("entity",null!==(t=e.firstSelectedGroup)&&void 0!==t?t:null)("displayStatus",e.displayStatus)("disableAutoSelect",e.disableAutoSelect)("mainTextFunction",e.nameFunction)("searchFunction",e.nameFunction)("selectPlaceholder",n.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.SELECT_GROUP"))("findPlaceholder",n.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.FIND_GROUP"))("noEntriesText",n.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.NO_GROUP_FOUND"))}},directives:[o.i],pipes:[r.X$],styles:[""]}),t})()},78364:function(t,e,i){"use strict";i.d(e,{W:function(){return rt}});var n=i(31572),s=i(58623),o=i(67033),r=i(4230),a=i(65249),c=i(84140),l=i(6527),u=i(68416),h=i(61511),d=i(84608),p=i(82819),g=i(29236),f=i(36922),m=i(72953),b=i(43691),_=i(46837),w=i(15980),A=i(54930),y=i(84534),v=i(57629),T=i(39571),C=i(48160),E=i(74842),S=i(37043),k=i(58506);let I=(()=>{class t{transform(t){const e=t.attributes.find(t=>"groupMembershipExpiration"===t.baseFriendlyName);return e&&e.value?e.value:"Never"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"groupExpiration",type:t,pure:!0}),t})();function x(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-checkbox",26),n.NdJ("change",function(e){n.CHM(t);const i=n.oxw(2);return e?i.masterToggle():null}),n.qZA()}if(2&t){const t=n.oxw(2);n.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function R(t,e){if(1&t&&(n.TgZ(0,"th",24),n.YNc(1,x,1,3,"mat-checkbox",25),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.Q6J("ngIf",!t.disableHeadCheckbox)}}function O(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",27),n.TgZ(1,"span",28),n.ALo(2,"translate"),n.TgZ(3,"mat-checkbox",29),n.NdJ("change",function(e){const i=n.CHM(t).$implicit,s=n.oxw();return e?s.itemSelectionToggle(i):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.s9C("matTooltip",n.lcZ(2,7,i.getCheckboxTooltipMessage(t))),n.Q6J("matTooltipPosition","above")("matTooltipDisabled",!i.disableSelect(t)),n.xp6(2),n.Q2q("data-cy","",t.name,"-checkbox"),n.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))("disabled","members"===t.name&&i.disableMembers||i.disableSelect(t))}}function P(t,e){1&t&&(n.TgZ(0,"th",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_ID")," "))}function D(t,e){if(1&t&&(n.TgZ(0,"td",31),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.id)}}function M(t,e){1&t&&n._UZ(0,"th",32)}function L(t,e){if(1&t&&(n.TgZ(0,"td",33),n._UZ(1,"perun-web-apps-recently-viewed-icon",34),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("recentIds",i.recentIds)("id",t.id)}}function N(t,e){1&t&&(n.TgZ(0,"th",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_VO_NAME")," "))}function z(t,e){if(1&t&&(n.TgZ(0,"td",31),n._uU(1),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.hij(" ",i.voNames.get(t.voId)," ")}}function Z(t,e){1&t&&n._UZ(0,"th",32)}function B(t,e){1&t&&(n.TgZ(0,"mat-icon",36),n.ALo(1,"translate"),n._uU(2,"account_tree"),n.qZA()),2&t&&n.Q6J("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.INDIRECT_GROUP"))}function F(t,e){1&t&&(n.TgZ(0,"mat-icon",36),n.ALo(1,"translate"),n._uU(2,"alt_route"),n.qZA()),2&t&&n.Q6J("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.MULTIPLE_ASSIGNMENTS"))}function U(t,e){if(1&t&&(n.TgZ(0,"td",33),n.YNc(1,B,3,3,"mat-icon",35),n.YNc(2,F,3,3,"mat-icon",35),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf",t.sourceGroupId&&!t.moreTypesOfAssignment),n.xp6(1),n.Q6J("ngIf",t.moreTypesOfAssignment)}}function q(t,e){1&t&&(n.TgZ(0,"th",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_NAME")," "))}function H(t,e){if(1&t&&(n.TgZ(0,"td",33),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.uIk("data-cy",t.name),n.xp6(1),n.hij(" ",t.name," ")}}function G(t,e){1&t&&(n.TgZ(0,"th",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")," "))}function j(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",37),n.TgZ(1,"perun-web-apps-group-resource-status",38),n.NdJ("mouseenter",function(){return n.CHM(t),n.oxw().disabledRouting=!0})("mouseleave",function(){n.CHM(t);const e=n.oxw();return e.disabledRouting=e.disableRouting})("statusChange",function(){return n.CHM(t),n.oxw().refreshTable.emit()}),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("theme","resource-theme")("groupId",t.id)("resourceId",i.resourceId)("failureCause",t.failureCause)("status",t.status)}}function Y(t,e){1&t&&(n.TgZ(0,"th",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")," "))}function K(t,e){if(1&t&&(n.TgZ(0,"td",33),n.TgZ(1,"i",39),n.ALo(2,"memberStatusIconColor"),n.TgZ(3,"span"),n._uU(4),n.ALo(5,"memberStatusIcon"),n.qZA(),n.qZA(),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Gre("material-icons ",n.lcZ(2,5,i.getStatusAttribute(t)),""),n.s9C("matTooltip",i.getStatusAttribute(t)),n.xp6(3),n.hij(" ",n.lcZ(5,7,i.getStatusAttribute(t))," ")}}function V(t,e){1&t&&(n.TgZ(0,"th",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_DESCRIPTION")," "))}function $(t,e){if(1&t&&(n.TgZ(0,"td",37),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.description)}}function J(t,e){1&t&&(n.TgZ(0,"th",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_EXPIRATION")," "))}function Q(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"button",41),n.NdJ("click",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw().changeExpiration(e)})("mouseenter",function(){return n.CHM(t),n.oxw(2).disabledRouting=!0})("mouseleave",function(){n.CHM(t);const e=n.oxw(2);return e.disabledRouting=e.disableRouting}),n.TgZ(1,"mat-icon"),n._uU(2,"edit"),n.qZA(),n.qZA()}}function W(t,e){if(1&t&&(n.TgZ(0,"td",37),n._uU(1),n.ALo(2,"parseDate"),n.ALo(3,"groupExpiration"),n.YNc(4,Q,3,0,"button",40),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.hij(" ",n.lcZ(2,2,n.lcZ(3,4,t))," "),n.xp6(3),n.Q6J("ngIf",i.canManageGroup(t))}}function X(t,e){1&t&&n._UZ(0,"th",32)}function tt(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",33),n.TgZ(1,"perun-web-apps-group-menu",42),n.NdJ("mouseenter",function(){return n.CHM(t),n.oxw().disabledRouting=!0})("mouseleave",function(){n.CHM(t);const e=n.oxw();return e.disabledRouting=e.disableRouting})("moveGroup",function(){const e=n.CHM(t).$implicit;return n.oxw().onMoveGroup(e)})("changeNameDescription",function(){const e=n.CHM(t).$implicit;return n.oxw().onChangeNameDescription(e)})("syncGroup",function(){const e=n.CHM(t).$implicit;return n.oxw().onSyncDetail(e)}),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("disabled","members"===t.name)("displayButtons",i.displayButtons)("group",t)}}function et(t,e){1&t&&n._UZ(0,"tr",43)}const it=function(t,e){return["/organizations",t,"groups",e]};function nt(t,e){if(1&t&&n._UZ(0,"tr",44),2&t){const t=e.$implicit,i=n.oxw();n.ekj("cursor-pointer",!i.disableRouting&&!i.groupsToDisableRouting.has(t.id))("disable-outline",i.disabledRouting||i.groupsToDisableRouting.has(t.id)),n.Q6J("perunWebAppsMiddleClickRouterLink",i.disabledRouting||i.groupsToDisableRouting.has(t.id)?null:n.WLB(6,it,t.voId,t.id))("routerLink",i.disabledRouting||i.groupsToDisableRouting.has(t.id)?null:n.WLB(9,it,t.voId,t.id))}}function st(t,e){1&t&&(n.TgZ(0,"app-alert",45),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_GROUPS"),"\n"))}function ot(t,e){1&t&&(n.TgZ(0,"app-alert",45),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let rt=(()=>{class t{constructor(t,e,i,s,o){this.dialog=t,this.authResolver=e,this.voService=i,this.tableCheckbox=s,this.changeDetector=o,this.displayButtons=window.innerWidth>800,this.theme="group-theme",this.moveGroup=new n.vpe,this.groups=[],this.selection=new r.Ov(!0,[]),this.hasMembersGroup=!1,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=c.f7,this.recentIds=[],this.resourceId=null,this.refreshTable=new n.vpe,this.disabledRouting=!1,this.voIds=new Set,this.voNames=new Map,this.canBeSelected=t=>!("members"===t.name&&this.disableMembers||this.disableSelect(t))}set matSort(t){this.sort=t}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 t of this.groups)if("members"===t.name)return!0;return!1}getDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return i.voNames.get(t.voId);case"name":return t.name;case"description":return t.description;case"expiration":{const e=(0,c.x2)(t);return(0,c.sG)(e)}case"recent":return"";case"status":return t.status;case"uuid":return t.uuid;default:return t[e]}}getSortDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return i.voNames.get(t.voId);case"name":return t.name;case"description":return t.description;case"expiration":{const e=(0,c.x2)(t);return e&&"never"!==e.toLowerCase()?(0,h.p6)(e,"yyyy.MM.dd","en"):e}case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;case"status":return t.status;default:return t[e]}}exportData(t){(0,c.O6)((0,c.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource||(this.dataSource=new o.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(t,e)=>(0,c.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this,!0),this.dataSource.sortData=(t,e)=>(0,c.pR)(t,e,this.getSortDataForColumn,this)),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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}disableSelect(t){return this.disableGroups&&(this.groupsToDisableCheckbox.has(t.id)||this.isSynchronized(t))}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(t=>"id"!==t),this.changeDetector.detectChanges())}onMoveGroup(t){this.moveGroup.emit(t)}onSyncDetail(t){const e=(0,c.kZ)();e.data={groupId:t.id,theme:this.theme},this.dialog.open(l.Bp,e)}onChangeNameDescription(t){const e=(0,c.kZ)();e.data={theme:"group-theme",group:t,dialogType:l.Eg.GROUP},this.dialog.open(l.rd,e).afterClosed().subscribe(t=>{t&&this.refreshTable.emit()})}setAuth(){return"group-subgroups"===this.authType?this.selection.selected.reduce((t,e)=>t&&this.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[e]),!0):"group-relations"===this.authType?this.selection.selected.reduce((t,e)=>t&&this.authResolver.isAuthorized("removeGroupUnion_Group_Group_policy",[this.parentGroup,e]),!0):"vo-groups"===this.authType?this.selection.selected.reduce((t,e)=>t&&this.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[this.vo,e]),!0):"member-groups"===this.authType?this.selection.selected.reduce((t,e)=>t&&this.authResolver.isAuthorized("removeMember_Member_List_policy",[e]),!0):"application-form-manage-groups"===this.authType?this.selection.selected.reduce((t,e)=>t&&this.authResolver.isAuthorized("deleteGroupsFromAutoRegistration_List_policy",[this.vo,e]),!0):void 0}itemSelectionToggle(t){this.selection.toggle(t),this.removeAuth=this.setAuth()}isSynchronized(t){return!!t.attributes&&t.attributes.some(t=>"synchronizationEnabled"===t.friendlyName&&null!==t.value&&"true"===t.value.toString())}getCheckboxTooltipMessage(t){return"create-relation-dialog"===this.authType?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.CREATE_RELATION_AUTH_TOOLTIP":this.isSynchronized(t)?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.SYNCHRONIZED_GROUP":t.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(t=>{this.voIds.has(t.voId)||this.voIds.add(t.voId)}),this.voIds.size>0&&this.voService.getVosByIds([...this.voIds]).subscribe(t=>{t.forEach(t=>{this.voNames.set(t.id,t.name)})}))}changeExpiration(t){const e=t.attributes.find(t=>"groupMembershipExpiration"===t.baseFriendlyName),i=(0,c.kZ)();i.width="400px",i.data={memberId:this.memberId,groupId:t.id,expirationAttr:e,mode:"group",status:this.memberGroupStatus},this.dialog.open(l.u3,i).afterClosed().subscribe(t=>{t&&this.refreshTable.emit()})}canManageGroup(t){return this.authResolver.isThisGroupAdmin(t.id)||this.authResolver.isThisVoAdmin(t.voId)}getStatusAttribute(t){return t.attributes.find(t=>"groupStatus"===t.baseFriendlyName).value.toString()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(d.uw),n.Y36(u.x4),n.Y36(a.YF),n.Y36(u.UA),n.Y36(n.sBO))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-groups-list"]],viewQuery:function(t,e){if(1&t&&(n.Gf(s.YE,7),n.Gf(c.l9,7)),2&t){let t;n.iGM(t=n.CRH())&&(e.matSort=t.first),n.iGM(t=n.CRH())&&(e.child=t.first)}},hostBindings:function(t,e){1&t&&n.NdJ("resize",function(t){return e.shouldHideButtons(t)},!1,n.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"},outputs:{moveGroup:"moveGroup",refreshTable:"refreshTable"},features:[n.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","routerLink",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","routerLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,R,2,1,"th",4),n.YNc(5,O,4,9,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,P,3,3,"th",7),n.YNc(8,D,2,1,"td",8),n.BQk(),n.ynx(9,9),n.YNc(10,M,1,0,"th",10),n.YNc(11,L,2,2,"td",11),n.BQk(),n.ynx(12,12),n.YNc(13,N,3,3,"th",7),n.YNc(14,z,2,1,"td",8),n.BQk(),n.ynx(15,13),n.YNc(16,Z,1,0,"th",10),n.YNc(17,U,3,2,"td",11),n.BQk(),n.ynx(18,14),n.YNc(19,q,3,3,"th",7),n.YNc(20,H,2,2,"td",11),n.BQk(),n.ynx(21,15),n.YNc(22,G,3,3,"th",7),n.YNc(23,j,2,5,"td",16),n.BQk(),n.ynx(24,17),n.YNc(25,Y,3,3,"th",7),n.YNc(26,K,6,9,"td",11),n.BQk(),n.ynx(27,18),n.YNc(28,V,3,3,"th",7),n.YNc(29,$,2,1,"td",16),n.BQk(),n.ynx(30,19),n.YNc(31,J,3,3,"th",7),n.YNc(32,W,5,6,"td",16),n.BQk(),n.ynx(33,20),n.YNc(34,X,1,0,"th",10),n.YNc(35,tt,2,3,"td",11),n.BQk(),n.YNc(36,et,1,0,"tr",21),n.YNc(37,nt,1,12,"tr",22),n.qZA(),n.qZA(),n.qZA(),n.YNc(38,st,3,3,"app-alert",23),n.YNc(39,ot,3,3,"app-alert",23)),2&t&&(n.Q6J("hidden",0===e.groups.length||!e.dataSource||0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("tableId",e.tableId),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(34),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.groups.length),n.xp6(1),n.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.groups.length))},directives:[p.l,o.BZ,s.YE,o.w1,o.fO,o.Dz,o.as,o.nj,h.O5,o.ge,g.oG,o.ev,f.gM,s.nU,m.W,b.Hw,_.x,w.lW,A.i,o.XQ,o.Gk,y.YH,v.rH,T.w],pipes:[C.X$,E.u,S.f,k.M,I],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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t})()},11441:function(t,e,i){"use strict";i.d(e,{I:function(){return O}});var n=i(31572),s=i(91010),o=i(71709),r=i(4230),a=i(14732),c=i(84140),l=i(6527),u=i(68416),h=i(84608),d=i(61511),p=i(4253),g=i(57629),f=i(15980),m=i(36922),b=i(54930),_=i(29236),w=i(43691),A=i(39571),y=i(48160);const v=["scrollViewport"];function T(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-checkbox",19),n.NdJ("change",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw(2).itemSelectionToggle(e)}),n.qZA()}if(2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.Q2q("data-cy","",t.name,"-checkbox"),n.Q6J("disabled","members"===t.fullName)("checked",e.selection.isSelected(t))("indeterminate",e.descendantsPartiallySelected(t))}}function C(t,e){if(1&t&&(n.TgZ(0,"mat-icon",20),n._uU(1),n.qZA()),2&t){const t=n.oxw().$implicit,e=n.oxw(2);n.xp6(1),n.hij(" ",e.treeControl.isExpanded(t)?"expand_more":"chevron_right"," ")}}function E(t,e){if(1&t&&(n.TgZ(0,"span",21),n._uU(1),n.qZA()),2&t){const t=n.oxw().$implicit;n.xp6(1),n.hij(" #",t.id," ")}}const S=function(t,e){return["/organizations",t,"groups",e]};function k(t,e){if(1&t){const t=n.EpF();n.ynx(0),n.TgZ(1,"div",6),n.YNc(2,T,1,4,"mat-checkbox",7),n.TgZ(3,"a",8),n.TgZ(4,"button",9),n.NdJ("mouseenter",function(){return n.CHM(t),n.oxw(2).disableRouting=!0})("mouseleave",function(){return n.CHM(t),n.oxw(2).disableRouting=!1})("click",function(){const e=n.CHM(t).$implicit;return n.oxw(2).treeControl.toggle(e)}),n.YNc(5,C,2,1,"mat-icon",10),n.qZA(),n.TgZ(6,"div",11),n.TgZ(7,"span",12),n._uU(8),n.qZA(),n.YNc(9,E,2,1,"span",13),n.qZA(),n.TgZ(10,"div",14,15),n.TgZ(12,"span",16),n._uU(13),n.qZA(),n.qZA(),n.qZA(),n.TgZ(14,"div",17),n.TgZ(15,"perun-web-apps-group-menu",18),n.NdJ("moveGroup",function(){const e=n.CHM(t).$implicit;return n.oxw(2).onMoveGroup(e)})("syncGroup",function(){const e=n.CHM(t).$implicit;return n.oxw(2).onSyncDetail(e)})("changeNameDescription",function(){const e=n.CHM(t).$implicit;return n.oxw(2).onChangeNameDescription(e)}),n.qZA(),n.qZA(),n.qZA(),n.BQk()}if(2&t){const t=e.$implicit,i=n.oxw(2);n.xp6(1),n.Udp("padding-left",24*t.level+"px"),n.xp6(1),n.Q6J("ngIf",!i.hideCheckbox),n.xp6(1),n.Q6J("routerLink",i.disableRouting?null:n.WLB(15,S,t.voId,t.id)),n.xp6(1),n.Q6J("disabled",!t.expandable),n.uIk("aria-label","toggle "+t.name),n.xp6(1),n.Q6J("ngIf",t.expandable),n.xp6(2),n.uIk("data-cy",t.name),n.xp6(1),n.hij(" ",t.name," "),n.xp6(1),n.Q6J("ngIf",i.authResolver.isPerunAdminOrObserver()),n.xp6(3),n.s9C("matTooltip",t.description),n.xp6(1),n.hij(" ",t.description," "),n.xp6(2),n.Q6J("disabled","members"===t.fullName)("displayButtons",i.displayButtons)("group",t)}}const I=function(t){return{height:t}};function x(t,e){if(1&t&&(n.TgZ(0,"div",2),n.TgZ(1,"cdk-virtual-scroll-viewport",3,4),n.YNc(3,k,16,18,"ng-container",5),n.qZA(),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.Q6J("minBufferPx",240)("maxBufferPx",480)("ngStyle",n.VKq(4,I,t.getTreeViewHeight())),n.xp6(2),n.Q6J("cdkVirtualForOf",t.dataSource)}}function R(t,e){1&t&&(n.TgZ(0,"app-alert",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let O=(()=>{class t{constructor(t,e,i){this.cd=t,this.dialog=e,this.authResolver=i,this.transformer=(t,e)=>({expandable:!!t.children&&t.children.length>0,name:t.shortName,fullName:t.name,parentGroupId:t.parentGroupId,level:e,id:t.id,voId:t.voId,attributes:t.attributes,beanName:t.beanName,description:t.description}),this.displayButtons=window.innerWidth>600,this.theme="group-theme",this.moveGroup=new n.vpe,this.refreshTable=new n.vpe,this.expandAll=!1,this.disableRouting=!1,this.selection=new r.Ov(!0,[]),this.hideCheckbox=!1,this.treeControl=new o.C2(t=>t.level,t=>t.expandable),this.treeFlattener=new s.JZ(this.transformer,t=>t.level,t=>t.expandable,t=>t.children),this.dataSource=new s.kc(this.treeControl,this.treeFlattener),this.hasChild=(t,e)=>e.expandable,this.getLevel=t=>t.level}shouldHideButtons(){this.displayButtons=window.innerWidth>600}ngOnChanges(){if(this.expandAll){this.filteredGroups=this.groups.filter(t=>{var e,i;return(null===(e=t.name)||void 0===e?void 0:e.toLowerCase().includes(this.filterValue.toLowerCase()))||(null===(i=t.description)||void 0===i?void 0:i.toLowerCase().includes(this.filterValue.toLowerCase()))||t.id.toString().includes(this.filterValue.toLowerCase())||t.uuid.toLowerCase().includes(this.filterValue.toLowerCase())});for(const t of this.filteredGroups)t.parentGroupId&&(this.filteredGroups=this.filteredGroups.concat((0,c.oU)(t.parentGroupId,this.groups)))}else this.filteredGroups=this.groups;this.createGroupTrees(this.filteredGroups),this.expandAll&&this.treeControl.expandAll(),this.removeAuth=this.setRemoveAuth()}onSyncDetail(t){const e=(0,c.kZ)();e.data={groupId:t.id,theme:this.theme},this.dialog.open(l.Bp,e)}onChangeNameDescription(t){const e=(0,c.kZ)();e.data={theme:"group-theme",group:t,dialogType:l.Eg.GROUP},this.dialog.open(l.rd,e).afterClosed().subscribe(t=>{t&&this.refreshTable.emit()})}createGroupTrees(t){const e=new Map;for(const s of t)e.set(s.id,new a.m(s));const i=new Set;e.forEach((t,e,n)=>{const s=n.get(t.parentGroupId);void 0!==s&&(s.addChild(t),n.set(t.parentGroupId,s)),null!==t.parentGroupId&&void 0===s&&i.add(t.id)});const n=[];e.forEach(t=>{(null===t.parentGroupId||i.has(t.id))&&n.push(t)}),this.dataSource.data=n,this.cd.detectChanges()}getParentNode(t){const e=this.getLevel(t);if(e<1)return null;for(let i=this.treeControl.dataNodes.indexOf(t)-1;i>=0;i--){const t=this.treeControl.dataNodes[i];if(this.getLevel(t)this.selection.isSelected(t));e&&!i&&this.selection.deselect(t)}checkAllParentsSelection(t){let e=this.getParentNode(t);for(;e;)this.checkRootNodeSelection(e),e=this.getParentNode(e);this.removeAuth=this.setRemoveAuth()}descendantsPartiallySelected(t){return this.treeControl.getDescendants(t).some(t=>this.selection.isSelected(t))&&!this.selection.isSelected(t)}itemSelectionToggle(t){this.selection.toggle(t);const e=this.treeControl.getDescendants(t);this.selection.isSelected(t)?this.selection.select(...e):this.selection.deselect(...e),e.every(t=>this.selection.isSelected(t)),this.checkAllParentsSelection(t)}setRemoveAuth(){return this.selection.selected.reduce(void 0!==this.vo?(t,e)=>t&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[this.vo,e]):(t,e)=>t&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[e]),!0)}onMoveGroup(t){this.moveGroup.emit(t)}getTreeViewHeight(){let t=0;this.scrollViewport&&(t=this.scrollViewport.getDataLength());let e=48*t;return e>672&&(e=696),this.scrollViewport&&this.scrollViewport.checkViewportSize(),e+"px"}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO),n.Y36(h.uw),n.Y36(u.x4))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-groups-tree"]],viewQuery:function(t,e){if(1&t&&n.Gf(v,5),2&t){let t;n.iGM(t=n.CRH())&&(e.scrollViewport=t.first)}},hostBindings:function(t,e){1&t&&n.NdJ("resize",function(t){return e.shouldHideButtons(t)},!1,n.Jf7)},inputs:{theme:"theme",groups:"groups",filterValue:"filterValue",expandAll:"expandAll",disableRouting:"disableRouting",selection:"selection",hideCheckbox:"hideCheckbox",vo:"vo"},outputs:{moveGroup:"moveGroup",refreshTable:"refreshTable"},features:[n.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(t,e){1&t&&(n.YNc(0,x,4,6,"div",0),n.YNc(1,R,3,3,"app-alert",1)),2&t&&(n.Q6J("ngIf",0!==e.filteredGroups.length),n.xp6(1),n.Q6J("ngIf",0===e.filteredGroups.length))},directives:[d.O5,p.N7,p.xd,d.PC,p.x0,g.yS,f.lW,m.gM,b.i,_.oG,w.Hw,A.w],pipes:[y.X$],styles:[".group-tree-node[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}.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:rgba(0,0,0,.05)}.text-format[_ngcontent-%COMP%]{text-decoration:none;color:#000;font-weight:400!important}"]}),t})()},66438:function(t,e,i){"use strict";i.d(e,{X:function(){return f}});var n=i(65249),s=i(68416),o=i(31572),r=i(48160),a=i(61511),c=i(8055),l=i(15980),u=i(43691),h=i(36922);const d=function(t){return{color:t}};function p(t,e){if(1&t&&(o.TgZ(0,"button",8),o.ALo(1,"translate"),o.TgZ(2,"mat-icon",4),o._uU(3," apps "),o.qZA(),o.qZA()),2&t){const t=o.oxw(),e=o.MAs(2);o.Q6J("matMenuTriggerFor",e)("matTooltip",o.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),o.xp6(2),o.Q6J("ngStyle",o.VKq(5,d,t.iconColor))}}function g(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",2),o.NdJ("click",function(){return o.CHM(t),o.oxw().onLogOut()}),o._uU(1),o.ALo(2,"translate"),o.qZA()}2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"NAV.LOGOUT")," "))}let f=(()=>{class t{constructor(t,e,i,n){this.authService=t,this.authzResolverService=e,this.notificator=i,this.translateService=n}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(s.e8),o.Y36(n.Ct),o.Y36(s.V6),o.Y36(r.sK))},t.\u0275cmp=o.Xpm({type:t,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:14,vars:15,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],[1,"d-none","d-lg-inline",3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"]],template:function(t,e){if(1&t&&(o.YNc(0,p,4,7,"button",0),o.TgZ(1,"mat-menu",null,1),o.TgZ(3,"button",2),o.NdJ("click",function(){return e.redirectToUrl()}),o.TgZ(4,"span"),o._uU(5),o.qZA(),o.qZA(),o.qZA(),o.TgZ(6,"button",3),o.TgZ(7,"mat-icon",4),o._uU(8," person "),o.qZA(),o.TgZ(9,"span",5),o._uU(10),o.qZA(),o.qZA(),o.TgZ(11,"mat-menu",null,6),o.YNc(13,g,3,3,"button",7),o.qZA()),2&t){const t=o.MAs(12);o.Q6J("ngIf",e.url),o.xp6(5),o.Oqu(e.label),o.xp6(1),o.Q6J("matMenuTriggerFor",t),o.xp6(1),o.Q6J("ngStyle",o.VKq(11,d,e.iconColor)),o.xp6(2),o.Q6J("ngStyle",o.VKq(13,d,e.textColor)),o.xp6(1),o.xDo(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," "),o.xp6(3),o.Q6J("ngIf",e.logoutEnabled)}},directives:[a.O5,c.VK,c.OP,l.lW,c.p6,u.Hw,a.PC,h.gM],pipes:[r.X$],styles:["@media (max-width:991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),t})()},19139:function(t,e,i){"use strict";i.d(e,{L:function(){return d}});var n=i(31572),s=i(16073),o=i(66283),r=i(61511),a=i(80340),c=i(84534),l=i(48160);function u(t,e){if(1&t&&(n._UZ(0,"input",3),n.ALo(1,"translate")),2&t){const t=n.oxw();n.s9C("placeholder",n.lcZ(1,2,t.placeholder)),n.Q6J("formControl",t.formControl)}}function h(t,e){if(1&t&&(n._UZ(0,"input",4),n.ALo(1,"translate")),2&t){const t=n.oxw();n.s9C("placeholder",n.lcZ(1,2,t.placeholder)),n.Q6J("formControl",t.formControl)}}let d=(()=>{class t{constructor(){this.filter=new n.vpe,this.autoFocus=!1,this.formControl=new s.NI}ngOnInit(){this.formControl.valueChanges.subscribe(t=>{let e=t.trim();e=e.toLowerCase(),this.filter.emit(e)})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,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","",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n.YNc(1,u,2,4,"input",1),n.YNc(2,h,2,4,"input",2),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf",e.autoFocus),n.xp6(1),n.Q6J("ngIf",!e.autoFocus))},directives:[o.KE,r.O5,a.Nt,s.Fj,c.hT,s.JJ,s.oH],pipes:[l.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:auto!important}"]}),t})()},91779:function(t,e,i){"use strict";i.d(e,{m:function(){return tt}});var n=i(58623),s=i(84140),o=i(6527),r=i(68416),a=i(31906),c=i(66599),l=i(31572),u=i(84608),h=i(60611),d=i(82819),p=i(61511),g=i(67033),f=i(67806),m=i(29236),b=i(43691),_=i(36922),w=i(84534),A=i(57629),y=i(39571),v=i(48160),T=i(22196),C=i(74842),E=i(91322),S=i(37043),k=i(99197),I=i(63720),x=i(1157);function R(t,e){1&t&&(l.TgZ(0,"div",22),l._UZ(1,"mat-spinner",23),l.qZA())}function O(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"th",24),l.TgZ(1,"mat-checkbox",25),l.NdJ("change",function(e){l.CHM(t);const i=l.oxw();return e?i.masterToggle():null}),l.qZA(),l.qZA()}if(2&t){const t=l.oxw();l.xp6(1),l.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function P(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"td",26),l.TgZ(1,"mat-checkbox",27),l.NdJ("change",function(e){const i=l.CHM(t).$implicit,n=l.oxw();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),l.ALo(2,"lowercase"),l.qZA(),l.qZA()}if(2&t){const t=e.$implicit,i=l.oxw();l.xp6(1),l.Q2q("data-cy","",l.lcZ(2,3,t.user.firstName),"-checkbox"),l.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function D(t,e){1&t&&(l.TgZ(0,"th",28),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"MEMBERS_LIST.ID")))}function M(t,e){if(1&t&&(l.TgZ(0,"td",29),l._uU(1),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.Oqu(t.id)}}function L(t,e){1&t&&l._UZ(0,"th",28)}function N(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"mat-icon",32),l.NdJ("click",function(e){l.CHM(t);const i=l.oxw().$implicit;return l.oxw().viewMemberGroupTree(e,i)}),l.ALo(1,"translate"),l._uU(2,"transfer_within_a_station"),l.qZA()}2&t&&l.Q6J("matTooltip",l.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function z(t,e){if(1&t&&(l.TgZ(0,"td",30),l.YNc(1,N,3,3,"mat-icon",31),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.Q6J("ngIf","DIRECT"!==t.membershipType)}}function Z(t,e){1&t&&(l.TgZ(0,"th",28),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"MEMBERS_LIST.NAME")," "))}function B(t,e){if(1&t&&(l.TgZ(0,"td",30),l._uU(1),l.ALo(2,"userFullName"),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.Oqu(l.lcZ(2,1,t.user))}}function F(t,e){1&t&&(l.TgZ(0,"th",33),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"MEMBERS_LIST.STATUS")))}function U(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"td",30),l.TgZ(1,"i",34),l.NdJ("click",function(e){const i=l.CHM(t).$implicit;return l.oxw().changeStatus(e,i)}),l.ALo(2,"memberStatusIconColor"),l.ALo(3,"memberStatusTooltip"),l.TgZ(4,"span"),l._uU(5),l.ALo(6,"memberStatusIcon"),l.qZA(),l.qZA(),l.qZA()}if(2&t){const t=e.$implicit;l.xp6(1),l.Gre("material-icons ",l.lcZ(2,5,t.status),""),l.s9C("matTooltip",l.xi3(3,7,t,!1)),l.xp6(4),l.hij(" ",l.lcZ(6,10,t.status)," ")}}function q(t,e){1&t&&(l.TgZ(0,"th",33),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")))}function H(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"td",30),l.TgZ(1,"i",34),l.NdJ("click",function(e){const i=l.CHM(t).$implicit,n=l.oxw();return n.changeStatus(e,i,n.groupId)}),l.ALo(2,"memberStatusIconColor"),l.ALo(3,"memberStatusTooltip"),l.TgZ(4,"span"),l._uU(5),l.ALo(6,"memberStatusIcon"),l.qZA(),l.qZA(),l.qZA()}if(2&t){const t=e.$implicit;l.xp6(1),l.Gre("material-icons ",l.lcZ(2,5,t.groupStatus),""),l.s9C("matTooltip",l.xi3(3,7,t,!0)),l.xp6(4),l.hij(" ",l.lcZ(6,10,t.groupStatus)," ")}}function G(t,e){1&t&&(l.TgZ(0,"th",33),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")))}function j(t,e){if(1&t&&(l.TgZ(0,"td",30),l._uU(1),l.ALo(2,"memberOrganization"),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.Oqu(l.lcZ(2,1,t))}}function Y(t,e){1&t&&(l.TgZ(0,"th",33),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"MEMBERS_LIST.EMAIL")))}function K(t,e){if(1&t&&(l.TgZ(0,"td",30),l._uU(1),l.ALo(2,"memberEmail"),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.Oqu(l.lcZ(2,1,t))}}function V(t,e){1&t&&(l.TgZ(0,"th",33),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function $(t,e){if(1&t&&(l.TgZ(0,"td",30),l._uU(1),l.ALo(2,"memberLogins"),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.Oqu(l.lcZ(2,1,t))}}function J(t,e){1&t&&l._UZ(0,"tr",35)}const Q=function(t,e){return["/organizations",t,"members",e]};function W(t,e){if(1&t&&l._UZ(0,"tr",36),2&t){const t=e.$implicit,i=l.oxw();l.ekj("cursor-pointer",i.dataSource.routeAuth)("italic_font","INDIRECT"===t.membershipType)("disable-outline",!i.dataSource.routeAuth),l.Q6J("perunWebAppsMiddleClickRouterLink",i.dataSource.routeAuth?l.WLB(8,Q,t.voId,t.id):null)("routerLink",i.dataSource.routeAuth?l.WLB(11,Q,t.voId,t.id):null)}}function X(t,e){1&t&&(l.TgZ(0,"app-alert",37),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}let tt=(()=>{class t{constructor(t,e,i,n,o){this.dialog=t,this.authResolver=e,this.tableCheckbox=i,this.tableConfigService=n,this.dynamicPaginatingService=o,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.selectedGroupStatuses=[],this.pageSizeOptions=s.f7}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,a.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,c.b)(()=>this.loadMembersPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new r.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(t=>this.selection.select(t))}isAllSelected(){return this.selection.selected.length===this.child.paginator.pageSize}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}changeStatus(t,e,i){t.stopPropagation();const n=(0,s.kZ)();n.width="500px",n.data={member:e,voId:this.voId,groupId:i};const r=i?e.groupStatus:e.status;this.dialog.open(o.pf,n).afterClosed().subscribe(t=>{if(t){const n=i?t.groupStatus:t.status;"VALID"===r&&("EXPIRED"===n||"DISABLED"===n)||"VALID"===n?(i?e.groupStatus=n:e.status=n,this.changeExpiration(e,i)):this.loadMembersPage()}})}changeExpiration(t,e){const i=t.memberAttributes.find(e?t=>"groupMembershipExpiration"===t.friendlyName:t=>"membershipExpiration"===t.friendlyName),n=(0,s.kZ)();let r;n.width="400px",n.data={voId:this.voId,groupId:e,memberId:t.id,expirationAttr:i,status:e?t.groupStatus:t.status,statusChanged:!0},r=this.dialog.open(e?o.u3:o.kZ,n),r.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(t){(0,s.O6)((0,s.Xn)(this.dataSource.getData(),this.displayedColumns,this.getExportDataForColumn,this),t)}getExportDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"fullName":return t.user?(0,s.bD)(t.user):"";case"status":return t.status;case"groupStatus":return t.groupStatus;case"organization":return(0,s.Gw)(t);case"email":return(0,s.g$)(t);case"logins":return(0,s.lt)(t);default:return""}}viewMemberGroupTree(t,e){t.stopPropagation();const i=(0,s.kZ)();i.width="800px",i.data={member:e,groupId:this.groupId},this.dialog.open(o.jd,i)}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(u.uw),l.Y36(r.x4),l.Y36(r.UA),l.Y36(h.dB),l.Y36(r.ly))},t.\u0275cmp=l.Xpm({type:t,selectors:[["perun-web-apps-members-dynamic-list"]],viewQuery:function(t,e){if(1&t&&(l.Gf(s.l9,7),l.Gf(n.YE,5)),2&t){let t;l.iGM(t=l.CRH())&&(e.child=t.first),l.iGM(t=l.CRH())&&(e.sort=t.first)}},inputs:{selection:"selection",displayedColumns:"displayedColumns",voId:"voId",groupId:"groupId",selectedGroupStatuses:"selectedGroupStatuses",attrNames:"attrNames",searchString:"searchString",selectedStatuses:"selectedStatuses",tableId:"tableId",updateTable:"updateTable"},features:[l.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","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(t,e){1&t&&(l.TgZ(0,"div",0),l.ALo(1,"async"),l.TgZ(2,"perun-web-apps-table-wrapper",1),l.NdJ("exportData",function(t){return e.exportData(t)}),l.YNc(3,R,2,0,"div",2),l.ALo(4,"async"),l.TgZ(5,"table",3),l.ynx(6,4),l.YNc(7,O,2,3,"th",5),l.YNc(8,P,3,5,"td",6),l.BQk(),l.ynx(9,7),l.YNc(10,D,3,3,"th",8),l.YNc(11,M,2,1,"td",9),l.BQk(),l.ynx(12,10),l.YNc(13,L,1,0,"th",8),l.YNc(14,z,2,1,"td",11),l.BQk(),l.ynx(15,12),l.YNc(16,Z,3,3,"th",8),l.YNc(17,B,3,3,"td",11),l.BQk(),l.ynx(18,13),l.YNc(19,F,3,3,"th",14),l.YNc(20,U,7,12,"td",11),l.BQk(),l.ynx(21,15),l.YNc(22,q,3,3,"th",14),l.YNc(23,H,7,12,"td",11),l.BQk(),l.ynx(24,16),l.YNc(25,G,3,3,"th",14),l.YNc(26,j,3,3,"td",11),l.BQk(),l.ynx(27,17),l.YNc(28,Y,3,3,"th",14),l.YNc(29,K,3,3,"td",11),l.BQk(),l.ynx(30,18),l.YNc(31,V,3,3,"th",14),l.YNc(32,$,3,3,"td",11),l.BQk(),l.YNc(33,J,1,0,"tr",19),l.YNc(34,W,1,14,"tr",20),l.qZA(),l.qZA(),l.qZA(),l.YNc(35,X,3,3,"app-alert",21),l.ALo(36,"async")),2&t&&(l.Q6J("hidden",0===e.dataSource.allObjectCount&&!1===l.lcZ(1,9,e.dataSource.loading$)),l.xp6(2),l.Q6J("tableId",e.tableId)("dataLength",e.dataSource.allObjectCount)("pageSizeOptions",e.pageSizeOptions),l.xp6(1),l.Q6J("ngIf",l.lcZ(4,11,e.dataSource.loading$)),l.xp6(2),l.Q6J("dataSource",e.dataSource),l.xp6(28),l.Q6J("matHeaderRowDef",e.displayedColumns),l.xp6(1),l.Q6J("matRowDefColumns",e.displayedColumns),l.xp6(1),l.Q6J("ngIf",0===e.dataSource.allObjectCount&&!1===l.lcZ(36,13,e.dataSource.loading$)))},directives:[d.l,p.O5,g.BZ,n.YE,g.w1,g.fO,g.Dz,g.as,g.nj,f.$g,g.ge,m.oG,g.ev,n.nU,b.Hw,_.gM,g.XQ,g.Gk,w.YH,A.rH,y.w],pipes:[p.Ov,p.i8,v.X$,T.d,C.u,E.i,S.f,k.M,I.D,x.p],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;top:0;left:0;bottom:56px;right:0;background:rgba(0,0,0,.15);z-index:1;display:flex;align-items:center;justify-content:center}.italic_font[_ngcontent-%COMP%]{font-style:italic}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})()},4252:function(t,e,i){"use strict";i.d(e,{O:function(){return tt}});var n=i(31572),s=i(58623),o=i(67033),r=i(4230),a=i(84140),c=i(6527),l=i(68416),u=i(84608),h=i(57629),d=i(82819),p=i(61511),g=i(29236),f=i(36922),m=i(43691),b=i(84534),_=i(39571),w=i(48160),A=i(22196),y=i(74842),v=i(91322),T=i(37043),C=i(99197),E=i(63720),S=i(1157);function k(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"th",24),n.TgZ(1,"mat-checkbox",25),n.NdJ("change",function(e){n.CHM(t);const i=n.oxw();return e?i.masterToggle():null}),n.qZA(),n.qZA()}if(2&t){const t=n.oxw();n.xp6(1),n.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function I(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",26),n.TgZ(1,"mat-checkbox",27),n.NdJ("change",function(e){const i=n.CHM(t).$implicit,s=n.oxw();return e?s.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),n.ALo(2,"translate"),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))("disabled","DIRECT"!==t.membershipType)("matTooltip","DIRECT"!==t.membershipType?n.lcZ(2,4,"MEMBERS_LIST.CHECKBOX_TOOLTIP"):"")}}function x(t,e){1&t&&(n.TgZ(0,"th",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.ID")))}function R(t,e){if(1&t&&(n.TgZ(0,"td",29),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.id)}}function O(t,e){1&t&&n._UZ(0,"th",28)}function P(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"mat-icon",32),n.NdJ("click",function(){n.CHM(t);const e=n.oxw().$implicit;return n.oxw().viewMemberGroupTree(e)})("mouseenter",function(){return n.CHM(t),n.oxw(2).disableRouting=!0})("mouseleave",function(){n.CHM(t);const e=n.oxw(2);return e.disableRouting=e.disabledRouting}),n.ALo(1,"translate"),n._uU(2,"transfer_within_a_station"),n.qZA()}2&t&&n.Q6J("matTooltip",n.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function D(t,e){if(1&t&&(n.TgZ(0,"td",30),n.YNc(1,P,3,3,"mat-icon",31),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf","DIRECT"!==t.membershipType)}}function M(t,e){1&t&&(n.TgZ(0,"th",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"MEMBERS_LIST.NAME")," "))}function L(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.ALo(2,"userFullName"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t.user))}}function N(t,e){1&t&&(n.TgZ(0,"th",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"MEMBERS_LIST.STATUS")," "))}function z(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",30),n.TgZ(1,"i",33),n.NdJ("click",function(e){const i=n.CHM(t).$implicit;return n.oxw().changeStatus(e,i)}),n.ALo(2,"memberStatusIconColor"),n.ALo(3,"memberStatusTooltip"),n.TgZ(4,"span"),n._uU(5),n.ALo(6,"memberStatusIcon"),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit;n.xp6(1),n.Gre("material-icons ",n.lcZ(2,5,t.status),""),n.s9C("matTooltip",n.xi3(3,7,t,!1)),n.xp6(4),n.hij(" ",n.lcZ(6,10,t.status)," ")}}function Z(t,e){1&t&&(n.TgZ(0,"th",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")," "))}function B(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",30),n.TgZ(1,"i",33),n.NdJ("click",function(e){const i=n.CHM(t).$implicit;return n.oxw().changeStatus(e,i)}),n.ALo(2,"memberStatusIconColor"),n.ALo(3,"memberStatusTooltip"),n.TgZ(4,"span"),n._uU(5),n.ALo(6,"memberStatusIcon"),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit;n.xp6(1),n.Gre("material-icons ",n.lcZ(2,5,t.groupStatus),""),n.s9C("matTooltip",n.xi3(3,7,t,!0)),n.xp6(4),n.hij(" ",n.lcZ(6,10,t.groupStatus)," ")}}function F(t,e){1&t&&(n.TgZ(0,"th",34),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"MEMBERS_LIST.ALREADY_SPONSORED")," "))}function U(t,e){1&t&&(n.TgZ(0,"mat-icon"),n._uU(1,"check_circle_outline"),n.qZA())}function q(t,e){if(1&t&&(n.TgZ(0,"td",35),n.YNc(1,U,2,0,"mat-icon",36),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf",t.sponsored)}}function H(t,e){1&t&&(n.TgZ(0,"th",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")," "))}function G(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.ALo(2,"memberOrganization"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t))}}function j(t,e){1&t&&(n.TgZ(0,"th",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"MEMBERS_LIST.EMAIL")," "))}function Y(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.ALo(2,"memberEmail"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t))}}function K(t,e){1&t&&(n.TgZ(0,"th",37),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function V(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.ALo(2,"memberLogins"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,t))}}function $(t,e){1&t&&n._UZ(0,"tr",38)}const J=function(t,e){return["/organizations",t,"members",e]};function Q(t,e){if(1&t&&n._UZ(0,"tr",39),2&t){const t=e.$implicit,i=n.oxw();n.ekj("cursor-pointer",!i.disabledRouting)("disable-outline",i.disableRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:n.WLB(6,J,t.voId,t.id))("routerLink",i.disableRouting?null:n.WLB(9,J,t.voId,t.id))}}function W(t,e){1&t&&(n.TgZ(0,"app-alert",40),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function X(t,e){1&t&&(n.TgZ(0,"app-alert",40),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}let tt=(()=>{class t{constructor(t,e,i,s){this.dialog=t,this.authResolver=e,this.tableCheckbox=i,this.route=s,this.selection=new r.Ov,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","sponsored","organization","email","logins"],this.disableRouting=!1,this.filter="",this.updateTable=new n.vpe,this.pageSizeOptions=a.f7,this.canBeSelected=t=>"DIRECT"===t.membershipType}set matSort(t){this.sort=t}getSortDataForColumn(t,e,i){var n;switch(e){case"id":return t.id.toString();case"fullName":return t.user?t.user.lastName?t.user.lastName:null!==(n=t.user.firstName)&&void 0!==n?n:"":"";case"status":return i.showGroupStatuses?t.groupStatus:t.status;case"organization":return(0,a.Gw)(t);case"email":return(0,a.g$)(t);default:return""}}getFilterDataForColumn(t,e){switch(e){case"fullName":return t.user?(0,a.bD)(t.user):"";case"email":return(0,a.g$)(t);case"logins":return(0,a.lt)(t);default:return""}}getExportDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"fullName":return t.user?(0,a.bD)(t.user):"";case"status":return i.showGroupStatuses?t.groupStatus:t.status;case"organization":return(0,a.Gw)(t);case"email":return(0,a.g$)(t);case"logins":return(0,a.lt)(t);default:return""}}exportData(t){(0,a.O6)((0,a.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}setDataSource(){this.dataSource||(this.dataSource=new o.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(t,e)=>(0,a.Sd)(t,e,this.displayedColumns,this.getFilterDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,a.pR)(t,e,this.getSortDataForColumn,this)),this.dataSource.filter=this.filter,this.dataSource.data=this.members}ngAfterViewInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t))}ngOnChanges(){var t;this.setDataSource(),this.disabledRouting=this.disableRouting,null===(t=this.route.parent)||void 0===t||t.params.subscribe(t=>{t.groupId&&(this.groupId=t.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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}changeStatus(t,e){if(t.stopPropagation(),"INVALID"===e.status){const t=(0,a.kZ)();t.width="500px",t.data={member:e},this.dialog.open(c.pf,t).afterClosed().subscribe(t=>{t&&this.updateTable.emit(!0)})}}viewMemberGroupTree(t){const e=(0,a.kZ)();e.width="800px",e.data={member:t,groupId:this.groupId},this.dialog.open(c.jd,e)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(u.uw),n.Y36(l.x4),n.Y36(l.UA),n.Y36(h.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-members-list"]],viewQuery:function(t,e){if(1&t&&(n.Gf(s.YE,7),n.Gf(a.l9,7)),2&t){let t;n.iGM(t=n.CRH())&&(e.matSort=t.first),n.iGM(t=n.CRH())&&(e.child=t.first)}},inputs:{showGroupStatuses:"showGroupStatuses",members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",disableRouting:"disableRouting",filter:"filter"},outputs:{updateTable:"updateTable"},features:[n.TTD],decls:37,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","type"],["mat-cell","",4,"matCellDef"],["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(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,k,2,3,"th",4),n.YNc(5,I,3,6,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,x,3,3,"th",7),n.YNc(8,R,2,1,"td",8),n.BQk(),n.ynx(9,9),n.YNc(10,O,1,0,"th",7),n.YNc(11,D,2,1,"td",10),n.BQk(),n.ynx(12,11),n.YNc(13,M,3,3,"th",7),n.YNc(14,L,3,3,"td",10),n.BQk(),n.ynx(15,12),n.YNc(16,N,3,3,"th",7),n.YNc(17,z,7,12,"td",10),n.BQk(),n.ynx(18,13),n.YNc(19,Z,3,3,"th",7),n.YNc(20,B,7,12,"td",10),n.BQk(),n.ynx(21,14),n.YNc(22,F,3,3,"th",15),n.YNc(23,q,2,1,"td",16),n.BQk(),n.ynx(24,17),n.YNc(25,H,3,3,"th",7),n.YNc(26,G,3,3,"td",10),n.BQk(),n.ynx(27,18),n.YNc(28,j,3,3,"th",7),n.YNc(29,Y,3,3,"td",10),n.BQk(),n.ynx(30,19),n.YNc(31,K,3,3,"th",20),n.YNc(32,V,3,3,"td",10),n.BQk(),n.YNc(33,$,1,0,"tr",21),n.YNc(34,Q,1,12,"tr",22),n.qZA(),n.qZA(),n.qZA(),n.YNc(35,W,3,3,"app-alert",23),n.YNc(36,X,3,3,"app-alert",23)),2&t&&(n.Q6J("hidden",0===e.members.length||!e.dataSource||0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("tableId",e.tableId)("pageSizeOptions",e.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(31),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0!==e.members.length&&0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("ngIf",0===e.members.length))},directives:[d.l,o.BZ,s.YE,o.w1,o.fO,o.Dz,o.as,o.nj,p.O5,o.ge,g.oG,o.ev,f.gM,s.nU,m.Hw,o.XQ,o.Gk,b.YH,h.rH,_.w],pipes:[w.X$,A.d,y.u,v.i,T.f,C.M,E.D,S.p],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}td[_ngcontent-%COMP%], th[_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}"]}),t})()},11418:function(t,e,i){"use strict";i.d(e,{c:function(){return p}});var n=i(31572),s=i(68416),o=i(84140),r=i(6527),a=i(84608),c=i(61511),l=i(43691),u=i(48160);function h(t,e){if(1&t&&(n.TgZ(0,"div",5),n.TgZ(1,"mat-icon"),n._uU(2),n.qZA(),n.qZA()),2&t){const t=n.oxw();n.xp6(2),n.Oqu(t.data.icon)}}function d(t,e){if(1&t&&(n.TgZ(0,"div",6),n._uU(1),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.hij(" ",t.showTimestamp()," ")}}let p=(()=>{class t{constructor(t,e){this.dialog=t,this.notificationStorageService=e,this.newNotification=!1,this.closeNotification=new n.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 t=(0,o.kZ)();t.width="550px",t.data=this.data,t.autoFocus=!1,this.dialog.open(r.FM,t).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){(0,o.ys)(this.data.delay,()=>{this.alreadyClosed||this.waiting||this.closeSelf()})}showTimestamp(){const[t,e]=this.data.timeStamp.split(":");return e.length<2?t+":0"+e:this.data.timeStamp}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(a.uw),n.Y36(s.SZ))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"div",0),n.NdJ("click",function(){return e.alreadyClosed||e.waiting?"":e.closeSelf()}),n.YNc(2,h,3,1,"div",1),n.TgZ(3,"div",2),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.YNc(6,d,2,1,"div",3),n.TgZ(7,"div",4),n.NdJ("click",function(){return e.waiting=!0,e.doAction()}),n._uU(8),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.Gre("notification ",e.inDialog?"":"mat-elevation-z7",""),n.ekj("error","error"===e.data.type)("success","success"===e.data.type),n.xp6(2),n.Q6J("ngIf",null!==e.data.icon),n.xp6(2),n.hij(" ",n.lcZ(5,12,e.data.title)," "),n.xp6(2),n.Q6J("ngIf",e.inDialog),n.xp6(1),n.Q6J("hidden",e.alreadyPressed),n.xp6(1),n.hij(" ",e.data.actionText," "))},directives:[c.O5,l.Hw],pipes:[u.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}"]}),t})()},67474:function(t,e,i){"use strict";i.d(e,{$:function(){return L}});var n=i(68416),s=i(65249),o=i(31572),r=i(84608),a=i(48160),c=i(66283),l=i(80340),u=i(16073),h=i(61511),d=i(15980);function p(t,e){1&t&&(o.TgZ(0,"mat-error"),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let g=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.translate=e,this.notificator=i,this.rtMessages=n,this.storeService=s,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(t=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+t.ticketNumber)),this.dialogRef.close()})}getFullEmailBody(){return this.message+"\n ------------------------\n Perun instance: "+this.instanceName+"\n Sended from new Perun Gui, version: "+i(60306).i8}close(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(r.so),o.Y36(a.sK),o.Y36(n.V6),o.Y36(s.Hr),o.Y36(n.d6))},t.\u0275cmp=o.Xpm({type:t,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(t,e){if(1&t&&(o.TgZ(0,"h1",0),o._uU(1),o.ALo(2,"translate"),o.qZA(),o.TgZ(3,"div",1),o.TgZ(4,"mat-form-field"),o.TgZ(5,"mat-label"),o._uU(6),o.ALo(7,"translate"),o.qZA(),o.TgZ(8,"input",2,3),o.NdJ("ngModelChange",function(t){return e.subject=t}),o.qZA(),o.YNc(10,p,3,3,"mat-error",4),o.qZA(),o.TgZ(11,"mat-form-field"),o.TgZ(12,"mat-label"),o._uU(13),o.ALo(14,"translate"),o.qZA(),o.TgZ(15,"textarea",5),o.NdJ("ngModelChange",function(t){return e.message=t}),o.ALo(16,"translate"),o._uU(17," "),o.qZA(),o.TgZ(18,"mat-hint"),o._uU(19),o.ALo(20,"translate"),o.qZA(),o.qZA(),o.qZA(),o.TgZ(21,"div",6),o.TgZ(22,"div",7),o.TgZ(23,"button",8),o.NdJ("click",function(){return e.close()}),o._uU(24),o.ALo(25,"translate"),o.qZA(),o.TgZ(26,"button",9),o.NdJ("click",function(){return e.sendBugReport()}),o._uU(27),o.ALo(28,"translate"),o.qZA(),o.qZA(),o.qZA()),2&t){const t=o.MAs(9);o.xp6(1),o.Oqu(o.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),o.xp6(5),o.Oqu(o.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),o.xp6(2),o.Q6J("ngModel",e.subject),o.xp6(2),o.Q6J("ngIf",t.invalid),o.xp6(3),o.Oqu(o.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),o.xp6(2),o.s9C("placeholder",o.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),o.Q6J("ngModel",e.message),o.xp6(4),o.Oqu(o.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),o.xp6(5),o.hij(" ",o.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),o.xp6(2),o.Q6J("disabled",t.invalid),o.xp6(1),o.hij(" ",o.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[r.uh,r.xY,c.KE,c.hX,l.Nt,u.Fj,u.Q7,u.JJ,u.On,h.O5,c.bx,r.H8,d.lW,c.TO],pipes:[a.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})();var f=i(84140);let m=(()=>{class t{transform(t,e,i){return t[`${i}_${e}`]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"localisedText",type:t,pure:!0}),t})(),b=(()=>{class t{transform(t,e){return t["link_"+e]||t.link_en}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"localisedLink",type:t,pure:!0}),t})(),_=(()=>{class t{transform(t){return t.includes("/")?t:"/assets/config/"+t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"footerLogoPath",type:t,pure:!0}),t})();function w(t,e){if(1&t&&(o.TgZ(0,"a",13),o.ALo(1,"localisedLink"),o._UZ(2,"img",14),o.ALo(3,"footerLogoPath"),o.qZA()),2&t){const t=o.oxw().$implicit,e=o.oxw(3);o.Q6J("href",o.xi3(1,2,t,e.language),o.LSH),o.xp6(2),o.s9C("src",o.lcZ(3,5,t.logo),o.LSH)}}function A(t,e){if(1&t&&(o.TgZ(0,"span"),o._UZ(1,"img",14),o.ALo(2,"footerLogoPath"),o.qZA()),2&t){const t=o.oxw().$implicit;o.xp6(1),o.s9C("src",o.lcZ(2,1,t.logo),o.LSH)}}function y(t,e){if(1&t&&(o.TgZ(0,"div"),o.YNc(1,w,4,7,"a",11),o.ALo(2,"localisedLink"),o.YNc(3,A,3,3,"span",12),o.ALo(4,"localisedLink"),o.qZA()),2&t){const t=e.$implicit,i=o.oxw(3);o.xp6(1),o.Q6J("ngIf",o.xi3(2,2,t,i.language)),o.xp6(2),o.Q6J("ngIf",!o.xi3(4,5,t,i.language))}}const v=function(t){return{"min-height":t}};function T(t,e){if(1&t&&(o.TgZ(0,"div",10),o.YNc(1,y,5,8,"div",5),o.qZA()),2&t){const t=o.oxw().$implicit,e=o.oxw();o.Q6J("ngStyle",o.VKq(2,v,e.columnContentHeight+"px")),o.xp6(1),o.Q6J("ngForOf",t.elements)}}const C=function(t){return{color:t}};function E(t,e){if(1&t&&(o.TgZ(0,"i",20),o._uU(1),o.qZA()),2&t){const t=o.oxw().$implicit,e=o.oxw(3);o.Q6J("ngStyle",o.VKq(2,C,e.linksTextColor)),o.xp6(1),o.hij(" ",t.icon," ")}}function S(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"span",21),o.NdJ("click",function(){o.CHM(t);const e=o.oxw().$implicit;return o.oxw(3).openDialog(e.dialog)}),o._uU(1),o.ALo(2,"localisedText"),o.qZA()}if(2&t){const t=o.oxw().$implicit,e=o.oxw(3);o.Q6J("ngStyle",o.VKq(6,C,e.linksTextColor)),o.xp6(1),o.hij("",o.Dn7(2,2,t,e.language,"label")," ")}}function k(t,e){if(1&t&&(o.TgZ(0,"a",22),o.ALo(1,"localisedLink"),o._uU(2),o.ALo(3,"localisedText"),o.qZA()),2&t){const t=o.oxw().$implicit,e=o.oxw(3);o.Q6J("href",o.xi3(1,3,t,e.language),o.LSH)("ngStyle",o.VKq(10,C,e.linksTextColor)),o.xp6(2),o.Oqu(o.Dn7(3,6,t,e.language,"label"))}}function I(t,e){if(1&t&&(o.TgZ(0,"span",10),o._uU(1),o.ALo(2,"localisedText"),o.qZA()),2&t){const t=o.oxw().$implicit,e=o.oxw(3);o.Q6J("ngStyle",o.VKq(6,C,e.linksTextColor)),o.xp6(1),o.Oqu(o.Dn7(2,2,t,e.language,"label"))}}function x(t,e){if(1&t&&(o.TgZ(0,"div",16),o.YNc(1,E,2,4,"i",17),o.YNc(2,S,3,8,"span",18),o.YNc(3,k,4,12,"a",19),o.ALo(4,"localisedLink"),o.YNc(5,I,3,8,"span",9),o.ALo(6,"localisedLink"),o.qZA()),2&t){const t=e.$implicit,i=o.oxw(3);o.xp6(1),o.Q6J("ngIf",t.icon),o.xp6(1),o.Q6J("ngIf",t.dialog),o.xp6(1),o.Q6J("ngIf",o.xi3(4,4,t,i.language)&&!t.dialog),o.xp6(2),o.Q6J("ngIf",!o.xi3(6,7,t,i.language)&&!t.dialog)}}const R=function(t){return{height:t}};function O(t,e){if(1&t&&(o.TgZ(0,"div",10),o.YNc(1,x,7,10,"div",15),o.qZA()),2&t){const t=o.oxw().$implicit,e=o.oxw();o.Q6J("ngStyle",o.VKq(2,R,e.columnContentHeight+"px")),o.xp6(1),o.Q6J("ngForOf",t.elements)}}function P(t,e){if(1&t&&(o.TgZ(0,"div",7),o.TgZ(1,"h6",8),o._uU(2),o.ALo(3,"localisedText"),o.qZA(),o.YNc(4,T,2,4,"div",9),o.YNc(5,O,2,4,"div",9),o.qZA()),2&t){const t=e.$implicit,i=o.oxw();o.ekj("my-auto",i.containsLogos),o.xp6(1),o.Q6J("ngStyle",o.VKq(10,C,i.headersTextColor)),o.xp6(1),o.hij(" ",o.Dn7(3,6,t,i.language,"title")," "),o.xp6(2),o.Q6J("ngIf",t.logos),o.xp6(1),o.Q6J("ngIf",t.elements&&!t.logos)}}function D(t,e){if(1&t&&(o.TgZ(0,"span"),o.TgZ(1,"a",6),o._uU(2),o.qZA(),o.qZA()),2&t){const t=e.$implicit,i=e.index,n=o.oxw();o.xp6(1),o.Q6J("href",t.url,o.LSH)("ngStyle",o.VKq(3,C,n.copyrightTextColor)),o.xp6(1),o.Oqu(i?", "+t.name:t.name)}}const M=function(t){return{background:t}};let L=(()=>{class t{constructor(t,e,i){this.storeService=t,this.translateService=e,this.dialog=i,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.items=[],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(t=>{this.language=t.lang}),this.version=i(60306).i8,this.items=this.storeService.get("footer","columns");for(const t of this.items)t.logos?this.containsLogos=!0:25*t.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*t.elements.length);this.copyrightItems=this.storeService.get("footer","copyright_items")}openDialog(t){const e=(0,f.kZ)();switch(t){case"reportIssue":e.width="550px",this.dialog.open(g,e)}}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.d6),o.Y36(a.sK),o.Y36(r.uw))},t.\u0275cmp=o.Xpm({type:t,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(t,e){1&t&&(o.TgZ(0,"footer",0),o.TgZ(1,"div",1),o.YNc(2,P,6,12,"div",2),o.qZA(),o._UZ(3,"hr",3),o.TgZ(4,"div",4),o._uU(5),o.YNc(6,D,3,5,"span",5),o._uU(7," Version "),o.TgZ(8,"a",6),o._uU(9),o.qZA(),o.qZA(),o.qZA()),2&t&&(o.Q6J("ngStyle",o.VKq(8,M,e.bgColor)),o.xp6(2),o.Q6J("ngForOf",e.items),o.xp6(2),o.Q6J("ngStyle",o.VKq(10,C,e.copyrightTextColor)),o.xp6(1),o.hij(" \xa9 ",e.currentYear," Copyright: "),o.xp6(1),o.Q6J("ngForOf",e.copyrightItems),o.xp6(2),o.Q6J("href",e.githubRepository,o.LSH)("ngStyle",o.VKq(12,C,e.copyrightTextColor)),o.xp6(1),o.Oqu(e.version))},directives:[h.PC,h.sg,h.O5],pipes:[m,b,_],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}"]}),t})()},72953:function(t,e,i){"use strict";i.d(e,{W:function(){return l}});var n=i(31572),s=i(61511),o=i(43691),r=i(36922),a=i(48160);function c(t,e){1&t&&(n.TgZ(0,"mat-icon",1),n.ALo(1,"translate"),n._uU(2," visibility\n"),n.qZA()),2&t&&n.s9C("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}let l=(()=>{class t{constructor(){this.recentIds=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&n.YNc(0,c,3,3,"mat-icon",0),2&t&&n.Q6J("ngIf",e.recentIds.indexOf(e.id)>-1)},directives:[s.O5,o.Hw,r.gM],pipes:[a.X$],styles:[".disabled-icon[_ngcontent-%COMP%]{color:rgba(0,0,0,.26)}"]}),t})()},59403:function(t,e,i){"use strict";i.d(e,{t:function(){return c}});var n=i(31572),s=i(15980),o=i(36922),r=i(43691),a=i(48160);let c=(()=>{class t{constructor(){this.refresh=new n.vpe}onClickbutton(t){this.refresh.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.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(t,e){1&t&&(n.TgZ(0,"button",0),n.NdJ("click",function(t){return e.onClickbutton(t)}),n.ALo(1,"translate"),n._UZ(2,"mat-icon",1),n.qZA()),2&t&&(n.s9C("matTooltip",n.lcZ(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),n.Q6J("disabled",e.disabled),n.xp6(2),n.s9C("svgIcon",e.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},directives:[s.lW,o.gM,r.Hw],pipes:[a.X$],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%], .perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%], .perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}"]}),t})()},88884:function(t,e,i){"use strict";i.d(e,{C:function(){return V}});var n=i(31572),s=i(58623),o=i(67033),r=i(4230),a=i(84140),c=i(68416),l=i(82819),u=i(61511),h=i(29236),d=i(36922),p=i(72953),g=i(43691),f=i(46837),m=i(84534),b=i(57629),_=i(39571),w=i(48160);let A=(()=>{class t{transform(t){if(null==t)return null;let e="";return t.forEach(function(t){e=e.concat(t.tagName)}),e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"resourceTagsToString",type:t,pure:!0}),t})();var y=i(95603);function v(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"th",22),n.TgZ(1,"mat-checkbox",23),n.NdJ("change",function(e){n.CHM(t);const i=n.oxw();return e?i.masterToggle():null}),n.qZA(),n.qZA()}if(2&t){const t=n.oxw();n.xp6(1),n.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function T(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",24),n.TgZ(1,"span",25),n.ALo(2,"translate"),n.TgZ(3,"mat-checkbox",26),n.NdJ("change",function(e){const i=n.CHM(t).$implicit,s=n.oxw();return e?s.itemSelectionToggle(i):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.s9C("matTooltip",n.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE")),n.Q6J("matTooltipPosition","above")("matTooltipDisabled",!i.disableSelect(t)),n.xp6(2),n.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))("disabled",i.disableSelect(t))}}function C(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")," "))}function E(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.id)}}function S(t,e){1&t&&n._UZ(0,"th",29)}function k(t,e){if(1&t&&(n.TgZ(0,"td",30),n._UZ(1,"perun-web-apps-recently-viewed-icon",31),n.qZA()),2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("recentIds",i.recentIds)("id",t.id)}}function I(t,e){1&t&&n._UZ(0,"th",29)}function x(t,e){1&t&&(n.TgZ(0,"mat-icon",33),n.ALo(1,"translate"),n._uU(2,"account_tree"),n.qZA()),2&t&&n.Q6J("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE"))}function R(t,e){if(1&t&&(n.TgZ(0,"td",30),n.YNc(1,x,3,3,"mat-icon",32),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Q6J("ngIf",t.sourceGroupId)}}function O(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")," "))}function P(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.name)}}function D(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")," "))}function M(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.vo.name)}}function L(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")," "))}function N(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"td",30),n.TgZ(1,"perun-web-apps-group-resource-status",34),n.NdJ("mouseenter",function(){return n.CHM(t),n.oxw().disabledRouting=!0})("mouseleave",function(){n.CHM(t);const e=n.oxw();return e.disabledRouting=e.disableRouting})("statusChange",function(){return n.CHM(t),n.oxw().refreshTable.emit()}),n.qZA(),n.qZA()}if(2&t){const t=e.$implicit,i=n.oxw();n.xp6(1),n.Q6J("theme","group-theme")("resourceId",t.id)("groupId",i.groupId)("failureCause",t.failureCause)("status",t.status)}}function z(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")," "))}function Z(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.facility.name)}}function B(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")," "))}function F(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.ALo(2,"resourceTagsToString"),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,t.resourceTags)," ")}}function U(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")," "))}function q(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.qZA()),2&t){const t=e.$implicit;n.xp6(1),n.Oqu(t.description)}}function H(t,e){1&t&&n._UZ(0,"tr",35)}const G=function(t){return[t]};function j(t,e){if(1&t&&(n._UZ(0,"tr",36),n.ALo(1,"getResourceRoute"),n.ALo(2,"getResourceRoute")),2&t){const t=e.$implicit,i=n.oxw();n.ekj("cursor-pointer",!i.disableRouting)("disable-outline",i.disabledRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",n.VKq(12,G,i.disabledRouting?null:n.xi3(1,6,t,i.routingVo)))("routerLink",i.disabledRouting?null:n.xi3(2,9,t,i.routingVo))}}function Y(t,e){1&t&&(n.TgZ(0,"app-alert",37),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function K(t,e){1&t&&(n.TgZ(0,"app-alert",37),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}let V=(()=>{class t{constructor(t,e){this.guiAuthResolver=t,this.tableCheckbox=e,this.resources=[],this.selection=new r.Ov(!0,[]),this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","indirectResourceAssigment","name","vo","status","facility","tags","description"],this.pageSizeOptions=a.f7,this.groupId=null,this.resourcesToDisableCheckbox=new Set,this.refreshTable=new n.vpe,this.allSelected=new n.vpe,this.removeAuth=!1,this.addAuth=!1,this.canBeSelected=t=>!this.disableSelect(t)}set matSort(t){this.sort=t}ngOnInit(){this.disabledRouting=this.disableRouting}ngOnChanges(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.setDataSource(),this.setAuth()}getDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return t.vo.name;case"name":return t.name;case"facility":return t.facility.name;case"description":return t.description;case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;case"tags":{if(!t.resourceTags)return t[e];let i="";return t.resourceTags.forEach(function(t){i=i.concat(t.tagName)}),i}case"status":return t.status;case"uuid":return t.uuid;default:return t[e]}}exportData(t){(0,a.O6)((0,a.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource||(this.dataSource=new o.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(t,e)=>(0,a.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this,!0),this.dataSource.sortData=(t,e)=>(0,a.pR)(t,e,this.getDataForColumn,this)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}isAllSelected(){const t=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(t),t}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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}setAuth(){const t=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce((e,i)=>e&&this.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",t.concat([i])),!0),this.addAuth=this.selection.selected.reduce((e,i)=>e&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",t.concat([i])),!0)}itemSelectionToggle(t){this.selection.toggle(t),this.setAuth()}disableSelect(t){return this.resourcesToDisableCheckbox.has(t.id)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(c.x4),n.Y36(c.UA))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(t,e){if(1&t&&(n.Gf(s.YE,7),n.Gf(a.l9,7)),2&t){let t;n.iGM(t=n.CRH())&&(e.matSort=t.first),n.iGM(t=n.CRH())&&(e.child=t.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:[n.TTD],decls:37,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","status"],["matColumnDef","facility"],["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(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,v,2,3,"th",4),n.YNc(5,T,4,8,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,C,3,3,"th",7),n.YNc(8,E,2,1,"td",8),n.BQk(),n.ynx(9,9),n.YNc(10,S,1,0,"th",10),n.YNc(11,k,2,2,"td",11),n.BQk(),n.ynx(12,12),n.YNc(13,I,1,0,"th",10),n.YNc(14,R,2,1,"td",11),n.BQk(),n.ynx(15,13),n.YNc(16,O,3,3,"th",7),n.YNc(17,P,2,1,"td",11),n.BQk(),n.ynx(18,14),n.YNc(19,D,3,3,"th",7),n.YNc(20,M,2,1,"td",11),n.BQk(),n.ynx(21,15),n.YNc(22,L,3,3,"th",7),n.YNc(23,N,2,5,"td",11),n.BQk(),n.ynx(24,16),n.YNc(25,z,3,3,"th",7),n.YNc(26,Z,2,1,"td",11),n.BQk(),n.ynx(27,17),n.YNc(28,B,3,3,"th",7),n.YNc(29,F,3,3,"td",11),n.BQk(),n.ynx(30,18),n.YNc(31,U,3,3,"th",7),n.YNc(32,q,2,1,"td",11),n.BQk(),n.YNc(33,H,1,0,"tr",19),n.YNc(34,j,3,14,"tr",20),n.qZA(),n.qZA(),n.qZA(),n.YNc(35,Y,3,3,"app-alert",21),n.YNc(36,K,3,3,"app-alert",21)),2&t&&(n.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.resources.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("tableId",e.tableId)("pageSizeOptions",e.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(31),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.resources.length),n.xp6(1),n.Q6J("ngIf",0===e.resources.length))},directives:[l.l,o.BZ,s.YE,o.w1,o.fO,o.Dz,o.as,o.nj,u.O5,o.ge,h.oG,o.ev,d.gM,s.nU,p.W,g.Hw,f.x,o.XQ,o.Gk,m.YH,b.rH,_.w],pipes:[w.X$,A,y.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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t})()},94327:function(t,e,i){"use strict";i.d(e,{qG:function(){return a},$x:function(){return c}});var n=i(31572),s=i(48160),o=i(44973);class r{constructor(t,e){this.value=e,this.displayName=t}}var a=function(t){return t[t.SOURCE=0]="SOURCE",t[t.DESTINATION=1]="DESTINATION",t[t.FEDERATION=2]="FEDERATION",t}({});let c=(()=>{class t{constructor(t){this.translateService=t,this.attributes=[],this.asGroup=!1,this.itemSelected=new n.vpe,this.items=[],this.nameFunction=t=>t.displayName,this.shortNameFunction=()=>null,this.searchFunction=t=>t.displayName}static getDefinition(t){const e=t.namespace.split(":");return null===e[4]?"null":e[4]}ngOnInit(){this.type===a.FEDERATION?(this.getFederationAttributes(),this.getFederationAttribute()):this.createSelectionItems(),this.sortAttributes(this.items)}createSelectionItems(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(t=>{const e=new r(t,"");this.items.push(e),this.item=e});for(const e of this.attributes){const i=new r(e.friendlyName+" ("+e.entity+" / "+t.getDefinition(e)+")",e.namespace+":"+e.friendlyName);i.value===this.selectedAttribute&&(this.item=i),("user"===e.entity.toLowerCase()||"member"===e.entity.toLowerCase()||"vo"===e.entity.toLowerCase()&&this.type===a.SOURCE||"group"===e.entity.toLowerCase()&&this.asGroup&&this.type===a.SOURCE)&&this.items.push(i)}}getFederationAttributes(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(t=>{this.items.push(new r(t,"")),this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.CUSTOM_VALUE").subscribe(t=>{this.items.push(new r(t,"custom")),this.items.push(new r("Display name","displayName")),this.items.push(new r("Common name","cn")),this.items.push(new r("Mail","mail")),this.items.push(new r("Organization","o")),this.items.push(new r("Level of Assurance (LoA)","loa")),this.items.push(new r("First name","givenName")),this.items.push(new r("Surname","sn")),this.items.push(new r("EPPN","eppn")),this.items.push(new r("IdP Category","md_entityCategory")),this.items.push(new r("IdP Affiliation","affiliation")),this.items.push(new r("EduPersonScopedAffiliation","eduPersonScopedAffiliation")),this.items.push(new r("Forwarded Affiliation from Proxy","forwardedScopedAffiliation")),this.items.push(new r("schacHomeOrganization","schacHomeOrganization")),this.items.push(new r("Login","uid")),this.items.push(new r("Alternative login name","alternativeLoginName"))})})}getFederationAttribute(){for(const t of this.items)if(t.value===this.selectedAttribute)return void(this.item=t)}sortAttributes(t){t.sort((t,e)=>""===t.value?-1:""===e.value?1:t.displayName.localeCompare(e.displayName))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(s.sK))},t.\u0275cmp=n.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(t,e){1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.itemSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t&&n.Q6J("entities",e.items)("entity",e.item)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.shortNameFunction)("selectPlaceholder",n.lcZ(1,8,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",n.lcZ(2,10,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",n.lcZ(3,12,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},directives:[o.i],pipes:[s.X$],styles:[""]}),t})()},23888:function(t,e,i){"use strict";i.d(e,{j:function(){return N}});var n=i(4230),s=i(58623),o=i(67033),r=i(68416),a=i(84140),c=i(31572),l=i(57629),u=i(82819),h=i(61511),d=i(36922),p=i(29236),g=i(84534),f=i(39571),m=i(48160),b=i(83787);let _=(()=>{class t{transform(t){const e=t.find(t=>"mail"===t.friendlyName);return e?e.value.toString():"N/A"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=c.Yjl({name:"getMailFromAttributes",type:t,pure:!0}),t})();function w(t,e){1&t&&c._UZ(0,"th",18)}function A(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"td",19),c.TgZ(1,"span",20),c.ALo(2,"translate"),c.ALo(3,"customTranslate"),c.TgZ(4,"mat-checkbox",21),c.NdJ("change",function(e){const i=c.CHM(t).$implicit,n=c.oxw();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=e.$implicit,i=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",!t.userExtSource.persistent),c.xp6(3),c.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))("disabled",t.userExtSource.persistent)}}function y(t,e){1&t&&(c.TgZ(0,"th",22),c._uU(1),c.ALo(2,"translate"),c.ALo(3,"customTranslate"),c.qZA()),2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,c.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))," "))}function v(t,e){if(1&t&&(c.TgZ(0,"td",23),c._uU(1),c.qZA()),2&t){const t=e.$implicit;c.xp6(1),c.hij(" ",t.userExtSource.id," ")}}function T(t,e){1&t&&(c.TgZ(0,"th",24),c._uU(1),c.ALo(2,"translate"),c.ALo(3,"customTranslate"),c.qZA()),2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,c.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))," "))}function C(t,e){if(1&t&&(c.TgZ(0,"td",23),c._uU(1),c.ALo(2,"getMailFromAttributes"),c.qZA()),2&t){const t=e.$implicit;c.xp6(1),c.hij(" ",c.lcZ(2,1,t.attributes)," ")}}function E(t,e){if(1&t&&(c.TgZ(0,"th",22),c._uU(1),c.ALo(2,"translate"),c.ALo(3,"customTranslate"),c.qZA()),2&t){const t=c.oxw();c.xp6(1),c.hij(" ",c.lcZ(2,1,c.lcZ(3,3,t.extSourceNameHeader?t.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME"))," ")}}function S(t,e){if(1&t&&(c.TgZ(0,"td",23),c._uU(1),c.qZA()),2&t){const t=e.$implicit;c.xp6(1),c.hij(" ",t.userExtSource.extSource.name," ")}}function k(t,e){if(1&t&&(c.TgZ(0,"th",22),c._uU(1),c.ALo(2,"translate"),c.ALo(3,"customTranslate"),c.qZA()),2&t){const t=c.oxw();c.xp6(1),c.hij(" ",c.lcZ(2,1,c.lcZ(3,3,t.loginHeader?t.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN"))," ")}}function I(t,e){if(1&t&&(c.TgZ(0,"td",23),c._uU(1),c.qZA()),2&t){const t=e.$implicit;c.xp6(1),c.hij(" ",t.userExtSource.login," ")}}function x(t,e){1&t&&(c.TgZ(0,"th",22),c._uU(1),c.ALo(2,"translate"),c.ALo(3,"customTranslate"),c.qZA()),2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,c.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))," "))}function R(t,e){if(1&t&&(c.TgZ(0,"td",25),c._uU(1),c.ALo(2,"date"),c.qZA()),2&t){const t=e.$implicit;c.xp6(1),c.hij(" ",c.xi3(2,1,t.userExtSource.lastAccess,"d.M.y H:mm:ss")," ")}}function O(t,e){1&t&&c._UZ(0,"tr",26)}const P=function(t,e){return["/admin","users",t,"identities",e]};function D(t,e){if(1&t&&c._UZ(0,"tr",27),2&t){const t=e.$implicit,i=c.oxw();c.ekj("cursor-pointer",!i.disableRouting)("disable-outline",i.disableRouting),c.Q6J("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:c.WLB(6,P,i.userId,t.userExtSource.id))("routerLink",i.disableRouting?null:c.WLB(9,P,i.userId,t.userExtSource.id))}}function M(t,e){1&t&&(c.TgZ(0,"app-alert",28),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function L(t,e){1&t&&(c.TgZ(0,"app-alert",28),c._uU(1),c.ALo(2,"translate"),c.ALo(3,"customTranslate"),c.qZA()),2&t&&(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 N=(()=>{class t{constructor(t,e){this.route=t,this.authResolver=e,this.selection=new n.Ov,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSizeOptions=a.f7}set matSort(t){this.sort=t,this.setDataSource()}ngOnInit(){this.disableRouting||this.route.parent.params.subscribe(t=>{this.userId=t.userId}),this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new o.by(this.userExtSources),this.setDataSource()}getDataForColumn(t,e){switch(e){case"id":return t.userExtSource.id.toString();case"mail":{const e=t.attributes.find(t=>"mail"===t.friendlyName);return e?e.value.toString():"N/A"}case"extSourceName":return t.userExtSource.extSource.name;case"login":return t.userExtSource.login;case"lastAccess":return t.userExtSource.lastAccess.split(".")[0];default:return t[e]}}exportData(t){(0,a.O6)((0,a.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>(0,a.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,a.pR)(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}checkboxLabel(t){return`${this.selection.isSelected(t.userExtSource)?"deselect":"select"} row ${t.userExtSource.id+1}`}}return t.\u0275fac=function(e){return new(e||t)(c.Y36(l.gz),c.Y36(r.x4))},t.\u0275cmp=c.Xpm({type:t,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(t,e){if(1&t&&(c.Gf(a.l9,7),c.Gf(s.YE,7)),2&t){let t;c.iGM(t=c.CRH())&&(e.child=t.first),c.iGM(t=c.CRH())&&(e.matSort=t.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(t,e){1&t&&(c.TgZ(0,"div",0),c.TgZ(1,"perun-web-apps-table-wrapper",1),c.NdJ("exportData",function(t){return e.exportData(t)}),c.TgZ(2,"table",2),c.ynx(3,3),c.YNc(4,w,1,0,"th",4),c.YNc(5,A,5,10,"td",5),c.BQk(),c.ynx(6,6),c.YNc(7,y,4,5,"th",7),c.YNc(8,v,2,1,"td",8),c.BQk(),c.ynx(9,9),c.YNc(10,T,4,5,"th",10),c.YNc(11,C,3,3,"td",8),c.BQk(),c.ynx(12,11),c.YNc(13,E,4,5,"th",7),c.YNc(14,S,2,1,"td",8),c.BQk(),c.ynx(15,12),c.YNc(16,k,4,5,"th",7),c.YNc(17,I,2,1,"td",8),c.BQk(),c.ynx(18,13),c.YNc(19,x,4,5,"th",7),c.YNc(20,R,3,4,"td",14),c.BQk(),c.YNc(21,O,1,0,"tr",15),c.YNc(22,D,1,12,"tr",16),c.qZA(),c.qZA(),c.qZA(),c.YNc(23,M,3,3,"app-alert",17),c.YNc(24,L,4,5,"app-alert",17)),2&t&&(c.Q6J("hidden",0===e.userExtSources.length||0===e.dataSource.filteredData.length),c.xp6(1),c.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),c.xp6(1),c.Q6J("dataSource",e.dataSource),c.xp6(19),c.Q6J("matHeaderRowDef",e.displayedColumns),c.xp6(1),c.Q6J("matRowDefColumns",e.displayedColumns),c.xp6(1),c.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.userExtSources.length),c.xp6(1),c.Q6J("ngIf",0===e.userExtSources.length))},directives:[u.l,o.BZ,s.YE,o.w1,o.fO,o.Dz,o.as,o.nj,h.O5,o.ge,o.ev,d.gM,p.oG,s.nU,o.XQ,o.Gk,g.YH,l.rH,f.w],pipes:[m.X$,b.a,_,h.uU],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),t})()},7927:function(t,e,i){"use strict";i.d(e,{S:function(){return a}});var n=i(31572),s=i(84140),o=i(44973),r=i(48160);let a=(()=>{class t{constructor(){this.disableAutoSelect=!1,this.userSelected=new n.vpe,this.userFullNameFunction=s.bD}ngOnInit(){this.users=this.users.sort(s.fx)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.userSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t&&n.Q6J("entities",e.users)("disableAutoSelect",e.disableAutoSelect)("searchFunction",e.userFullNameFunction)("mainTextFunction",e.userFullNameFunction)("selectPlaceholder",n.lcZ(1,7,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.SELECT_USER"))("findPlaceholder",n.lcZ(2,9,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.FIND_USER"))("noEntriesText",n.lcZ(3,11,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.NO_USER_FOUND"))},directives:[o.i],pipes:[r.X$],styles:[""]}),t})()},16247:function(t,e,i){"use strict";i.d(e,{M:function(){return K}});var n=i(4230),s=i(84140),o=i(58623),r=i(68416),a=i(31906),c=i(66599),l=i(31572),u=i(60611),h=i(82819),d=i(61511),p=i(67033),g=i(67806),f=i(29236),m=i(43691),b=i(36922),_=i(84534),w=i(39571),A=i(48160),y=i(22196),v=i(92898),T=i(44031),C=i(31447);function E(t,e){1&t&&(l.TgZ(0,"div",20),l._UZ(1,"mat-spinner",21),l.qZA())}function S(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"mat-checkbox",24),l.NdJ("change",function(e){l.CHM(t);const i=l.oxw(2);return e?i.masterToggle():null}),l.qZA()}if(2&t){const t=l.oxw(2);l.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function k(t,e){if(1&t&&(l.TgZ(0,"th",22),l.YNc(1,S,1,3,"mat-checkbox",23),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.Q6J("ngIf",t.selection.isMultipleSelection())}}function I(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"td",25),l.TgZ(1,"mat-checkbox",26),l.NdJ("change",function(e){const i=l.CHM(t).$implicit,n=l.oxw();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),l.qZA(),l.qZA()}if(2&t){const t=e.$implicit,i=l.oxw();l.xp6(1),l.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function x(t,e){1&t&&l._UZ(0,"th",27)}function R(t,e){1&t&&(l.TgZ(0,"mat-icon",31),l.ALo(1,"translate"),l._uU(2," account_circle "),l.qZA()),2&t&&l.s9C("matTooltip",l.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function O(t,e){if(1&t&&(l._UZ(0,"mat-icon",32),l.ALo(1,"translate")),2&t){const t=l.oxw(2);l.s9C("matTooltip",l.lcZ(1,2,"MANAGERS_LIST.SERVICE")),l.Q6J("svgIcon",t.svgIcon)}}function P(t,e){if(1&t&&(l.TgZ(0,"td",28),l.YNc(1,R,3,3,"mat-icon",29),l.YNc(2,O,2,4,"mat-icon",30),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.Q6J("ngIf",!t.serviceUser),l.xp6(1),l.Q6J("ngIf",t.serviceUser)}}function D(t,e){1&t&&(l.TgZ(0,"th",33),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"MANAGERS_LIST.ID")," "))}function M(t,e){if(1&t&&(l.TgZ(0,"td",28),l._uU(1),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.hij(" ",t.id," ")}}function L(t,e){1&t&&(l.TgZ(0,"th",33),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"MANAGERS_LIST.NAME")," "))}function N(t,e){if(1&t&&(l.TgZ(0,"td",34),l._uU(1),l.ALo(2,"userFullName"),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.Oqu(l.lcZ(2,1,t))}}function z(t,e){1&t&&(l.TgZ(0,"th",27),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")))}function Z(t,e){if(1&t&&(l.TgZ(0,"td",34),l._uU(1),l.ALo(2,"userVo"),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.Oqu(l.lcZ(2,1,t))}}function B(t,e){1&t&&(l.TgZ(0,"th",27),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"MANAGERS_LIST.EMAIL")))}function F(t,e){if(1&t&&(l.TgZ(0,"td",34),l._uU(1),l.ALo(2,"userEmail"),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.Oqu(l.lcZ(2,1,t))}}function U(t,e){1&t&&(l.TgZ(0,"th",27),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"MANAGERS_LIST.LOGINS")))}function q(t,e){if(1&t&&(l.TgZ(0,"td",34),l._uU(1),l.ALo(2,"userLogins"),l.qZA()),2&t){const t=e.$implicit;l.xp6(1),l.Oqu(l.lcZ(2,1,t))}}function H(t,e){1&t&&l._UZ(0,"tr",35)}const G=function(t){return["/admin/users",t]};function j(t,e){if(1&t&&l._UZ(0,"tr",36),2&t){const t=e.$implicit,i=l.oxw();l.ekj("cursor-pointer",!i.disableRouting),l.Q6J("perunWebAppsForceRouterLink",i.disableRouting?null:l.VKq(4,G,t.id))("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:l.VKq(6,G,t.id))}}function Y(t,e){1&t&&(l.TgZ(0,"app-alert",37),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.Q6J("alert_type","warn"),l.xp6(1),l.hij(" ",l.lcZ(2,2,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n"))}let K=(()=>{class t{constructor(t,e,i,o){this.authResolver=t,this.tableCheckbox=e,this.tableConfigService=i,this.dynamicPaginatingService=o,this.svgIcon="perun-service-identity-black",this.selection=new n.Ov(!0,[]),this.displayedColumns=["select","user","id","name","email","logins","organization"],this.disableRouting=!1,this.searchString="",this.attrNames=[],this.pageSizeOptions=s.f7}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,a.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,c.b)(()=>this.loadUsersPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new r.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(t=>this.selection.select(t))}isAllSelected(){return this.selection.selected.length===this.child.paginator.pageSize}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.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(t){(0,s.O6)((0,s.Xn)(this.dataSource.getData(),this.displayedColumns,this.getExportDataForColumn,this),t)}getExportDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"user":return t.serviceUser?"service-user":"user";case"name":return t?(0,s.bD)(t):"";case"organization":return(0,s.OV)(t);case"email":return(0,s.kN)(t);case"logins":return(0,s.lt)(t);default:return""}}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(r.x4),l.Y36(r.UA),l.Y36(u.dB),l.Y36(r.ly))},t.\u0275cmp=l.Xpm({type:t,selectors:[["perun-web-apps-users-dynamic-list"]],viewQuery:function(t,e){if(1&t&&(l.Gf(s.l9,7),l.Gf(o.YE,5)),2&t){let t;l.iGM(t=l.CRH())&&(e.child=t.first),l.iGM(t=l.CRH())&&(e.sort=t.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:[l.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(t,e){1&t&&(l.TgZ(0,"div",0),l.ALo(1,"async"),l.TgZ(2,"perun-web-apps-table-wrapper",1),l.NdJ("exportData",function(t){return e.exportData(t)}),l.YNc(3,E,2,0,"div",2),l.ALo(4,"async"),l.TgZ(5,"table",3),l.ynx(6,4),l.YNc(7,k,2,1,"th",5),l.YNc(8,I,2,2,"td",6),l.BQk(),l.ynx(9,7),l.YNc(10,x,1,0,"th",8),l.YNc(11,P,3,2,"td",9),l.BQk(),l.ynx(12,10),l.YNc(13,D,3,3,"th",11),l.YNc(14,M,2,1,"td",9),l.BQk(),l.ynx(15,12),l.YNc(16,L,3,3,"th",11),l.YNc(17,N,3,3,"td",13),l.BQk(),l.ynx(18,14),l.YNc(19,z,3,3,"th",8),l.YNc(20,Z,3,3,"td",13),l.BQk(),l.ynx(21,15),l.YNc(22,B,3,3,"th",8),l.YNc(23,F,3,3,"td",13),l.BQk(),l.ynx(24,16),l.YNc(25,U,3,3,"th",8),l.YNc(26,q,3,3,"td",13),l.BQk(),l.YNc(27,H,1,0,"tr",17),l.YNc(28,j,1,8,"tr",18),l.qZA(),l.qZA(),l.qZA(),l.YNc(29,Y,3,4,"app-alert",19),l.ALo(30,"async")),2&t&&(l.Q6J("hidden",0===e.dataSource.allObjectCount&&!1===l.lcZ(1,9,e.dataSource.loading$)),l.xp6(2),l.Q6J("tableId",e.tableId)("dataLength",e.dataSource.allObjectCount)("pageSizeOptions",e.pageSizeOptions),l.xp6(1),l.Q6J("ngIf",l.lcZ(4,11,e.dataSource.loading$)),l.xp6(2),l.Q6J("dataSource",e.dataSource),l.xp6(22),l.Q6J("matHeaderRowDef",e.displayedColumns),l.xp6(1),l.Q6J("matRowDefColumns",e.displayedColumns),l.xp6(1),l.Q6J("ngIf",0===e.dataSource.allObjectCount&&!1===l.lcZ(30,13,e.dataSource.loading$)))},directives:[h.l,d.O5,p.BZ,o.YE,p.w1,p.fO,p.Dz,p.as,p.nj,g.$g,p.ge,f.oG,p.ev,m.Hw,b.gM,o.nU,p.XQ,p.Gk,_.Kd,_.YH,w.w],pipes:[d.Ov,A.X$,y.d,v.Z,T.S,C.g],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;top:0;left:0;bottom:56px;right:0;background:rgba(0,0,0,.15);z-index:1;display:flex;align-items:center;justify-content:center}.italic_font[_ngcontent-%COMP%]{font-style:italic}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})()},19386:function(t,e,i){"use strict";i.d(e,{M:function(){return r}});var n=i(31572),s=i(44973),o=i(48160);let r=(()=>{class t{constructor(){this.voSelected=new n.vpe,this.nameFunction=t=>t.name,this.shortNameFunction=t=>t.shortName,this.searchFunction=t=>t.name+t.shortName+t.id}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-vo-search-select"]],inputs:{vo:"vo",vos:"vos"},outputs:{voSelected:"voSelected"},decls:4,vars:14,consts:[[3,"entity","entities","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(t,e){1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.voSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t&&n.Q6J("entity",e.vo)("entities",e.vos)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.shortNameFunction)("selectPlaceholder",n.lcZ(1,8,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.SELECT_VO"))("findPlaceholder",n.lcZ(2,10,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.FIND_VO"))("noEntriesText",n.lcZ(3,12,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.NO_VO_FOUND"))},directives:[s.i],pipes:[o.X$],styles:[""]}),t})()},97162:function(t,e,i){"use strict";i.d(e,{Z:function(){return O}});var n=i(58623),s=i(67033),o=i(84140),r=i(68416),a=i(31572),c=i(82819),l=i(61511),u=i(29236),h=i(72953),d=i(84534),p=i(57629),g=i(39571),f=i(48160);function m(t,e){1&t&&a._UZ(0,"th",18)}function b(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"td",19),a.TgZ(1,"mat-checkbox",20),a.NdJ("change",function(e){const i=a.CHM(t).$implicit,n=a.oxw();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),a.qZA(),a.qZA()}if(2&t){const t=e.$implicit,i=a.oxw();a.xp6(1),a.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function _(t,e){1&t&&(a.TgZ(0,"th",21),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.ID")," "))}function w(t,e){if(1&t&&(a.TgZ(0,"td",22),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(t.id)}}function A(t,e){1&t&&a._UZ(0,"th",23)}function y(t,e){if(1&t&&(a.TgZ(0,"td",24),a._UZ(1,"perun-web-apps-recently-viewed-icon",25),a.qZA()),2&t){const t=e.$implicit,i=a.oxw();a.xp6(1),a.Q6J("recentIds",i.recentIds)("id",t.id)}}function v(t,e){1&t&&(a.TgZ(0,"th",21),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.SHORTNAME")," "))}function T(t,e){if(1&t&&(a.TgZ(0,"td",24),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.uIk("data-cy",t.shortName),a.xp6(1),a.Oqu(t.shortName)}}function C(t,e){1&t&&(a.TgZ(0,"th",21),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.NAME")," "))}function E(t,e){if(1&t&&(a.TgZ(0,"td",24),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(t.name)}}function S(t,e){1&t&&a._UZ(0,"tr",26)}const k=function(t){return["/organizations",t]};function I(t,e){if(1&t&&a._UZ(0,"tr",27),2&t){const t=e.$implicit,i=a.oxw();a.ekj("disable-outline",i.disableRouting),a.Q6J("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:a.VKq(4,k,t.id))("routerLink",i.disableRouting?null:a.VKq(6,k,t.id))}}function x(t,e){1&t&&(a.TgZ(0,"app-alert",28),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function R(t,e){1&t&&(a.TgZ(0,"app-alert",29),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_ORGANIZATIONS"),"\n"))}let O=(()=>{class t{constructor(t){this.authResolver=t,this.vos=[],this.displayedColumns=[],this.disableRouting=!1,this.pageSizeOptions=o.f7}set matSort(t){this.sort=t}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.setDataSource()}getDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"shortName":return t.shortName;case"name":return t.name;case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;default:return t[e]}}exportData(t){(0,o.O6)((0,o.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource||(this.dataSource=new s.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(t,e)=>(0,o.Sd)(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>(0,o.pR)(t,e,this.getDataForColumn,this)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.vos}checkboxLabel(t){return`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(r.x4))},t.\u0275cmp=a.Xpm({type:t,selectors:[["perun-web-apps-vos-list"]],viewQuery:function(t,e){if(1&t&&(a.Gf(n.YE,7),a.Gf(o.l9,7)),2&t){let t;a.iGM(t=a.CRH())&&(e.matSort=t.first),a.iGM(t=a.CRH())&&(e.child=t.first)}},inputs:{vos:"vos",recentIds:"recentIds",filterValue:"filterValue",selection:"selection",displayedColumns:"displayedColumns",disableRouting:"disableRouting",pageSizeOptions:"pageSizeOptions",tableId:"tableId"},features:[a.TTD],decls:22,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","shortName"],["matColumnDef","name"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",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"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn","data-cy","no-filter-result"],["alert_type","warn"]],template:function(t,e){1&t&&(a.TgZ(0,"div",0),a.TgZ(1,"perun-web-apps-table-wrapper",1),a.NdJ("exportData",function(t){return e.exportData(t)}),a.TgZ(2,"table",2),a.ynx(3,3),a.YNc(4,m,1,0,"th",4),a.YNc(5,b,2,2,"td",5),a.BQk(),a.ynx(6,6),a.YNc(7,_,3,3,"th",7),a.YNc(8,w,2,1,"td",8),a.BQk(),a.ynx(9,9),a.YNc(10,A,1,0,"th",10),a.YNc(11,y,2,2,"td",11),a.BQk(),a.ynx(12,12),a.YNc(13,v,3,3,"th",7),a.YNc(14,T,2,2,"td",11),a.BQk(),a.ynx(15,13),a.YNc(16,C,3,3,"th",7),a.YNc(17,E,2,1,"td",11),a.BQk(),a.YNc(18,S,1,0,"tr",14),a.YNc(19,I,1,8,"tr",15),a.qZA(),a.qZA(),a.qZA(),a.YNc(20,x,3,3,"app-alert",16),a.YNc(21,R,3,3,"app-alert",17)),2&t&&(a.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.vos.length),a.xp6(1),a.Q6J("dataLength",e.dataSource.filteredData.length)("tableId",e.tableId)("pageSizeOptions",e.pageSizeOptions),a.xp6(1),a.Q6J("dataSource",e.dataSource),a.xp6(16),a.Q6J("matHeaderRowDef",e.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",e.displayedColumns),a.xp6(1),a.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.vos.length),a.xp6(1),a.Q6J("ngIf",0===e.vos.length))},directives:[c.l,s.BZ,n.YE,s.w1,s.fO,s.Dz,s.as,s.nj,l.O5,s.ge,s.ev,u.oG,n.nU,h.W,s.XQ,s.Gk,d.YH,p.rH,g.w],pipes:[f.X$],styles:[".card[_ngcontent-%COMP%]{border-radius:0!important}.static-column-size[_ngcontent-%COMP%]{width:80px}.disable-outline[_ngcontent-%COMP%]{outline:none!important}tr[_ngcontent-%COMP%]{cursor:pointer}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t})()},6527:function(t,e,i){"use strict";i.d(e,{Wr:function(){return pt},r2:function(){return dt},gr:function(){return bt},u3:function(){return Wt},Qu:function(){return we},pf:function(){return v},xF:function(){return se},hd:function(){return ue},kZ:function(){return ae},wA:function(){return ht},rd:function(){return M},Eg:function(){return D},Bp:function(){return q},qD:function(){return qt},jd:function(){return Ft},FM:function(){return V},Lc:function(){return nt},mk:function(){return rt},Tf:function(){return Ct}}),i(22280);var n=i(18820),s=i(84608),o=i(65249),r=i(68416),a=i(31572),c=i(48160),l=i(61511),u=i(15980),h=i(67806),d=i(66283),p=i(4786),g=i(71522),f=i(5725);function m(t,e){1&t&&a._UZ(0,"mat-spinner",6)}function b(t,e){if(1&t&&(a.TgZ(0,"mat-option",17),a._uU(1),a.ALo(2,"memberStatus"),a.qZA()),2&t){const t=e.$implicit;a.Q6J("value",t),a.xp6(1),a.Oqu(a.lcZ(2,2,t))}}function _(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-form-field",14),a.TgZ(1,"mat-label"),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"mat-select",15),a.NdJ("selectionChange",function(e){return a.CHM(t),a.oxw(3).changeStatus(e)}),a.YNc(5,b,3,4,"mat-option",16),a.qZA(),a.qZA()}if(2&t){const t=a.oxw(3);a.xp6(2),a.Oqu(a.lcZ(3,2,"DIALOGS.CHANGE_STATUS.SELECT_STATUS")),a.xp6(3),a.Q6J("ngForOf",t.allStatuses)}}function w(t,e){if(1&t&&(a.TgZ(0,"div",8),a._uU(1),a.ALo(2,"translate"),a.YNc(3,_,6,4,"mat-form-field",13),a.qZA()),2&t){const t=a.oxw(2);a.xp6(1),a.hij(" ",a.lcZ(2,2,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," "),a.xp6(2),a.Q6J("ngIf",!t.loading)}}function A(t,e){if(1&t&&(a.TgZ(0,"div",8),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"memberStatus"),a.qZA()),2&t){const t=a.oxw(2);a.xp6(1),a.AsE(" ",a.lcZ(2,2,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," ",a.lcZ(3,4,t.allStatuses[0])," ")}}function y(t,e){if(1&t&&(a.TgZ(0,"div",7),a.TgZ(1,"div",8),a._uU(2),a.ALo(3,"translate"),a.ALo(4,"memberStatus"),a.qZA(),a.TgZ(5,"div",9),a._uU(6),a.qZA(),a.YNc(7,w,4,4,"div",10),a.YNc(8,A,4,6,"div",10),a.TgZ(9,"div",11),a._UZ(10,"i",12),a.qZA(),a.qZA()),2&t){const t=a.oxw();a.xp6(2),a.AsE(" ",a.lcZ(3,6,"DIALOGS.CHANGE_STATUS.CURRENT_STATUS")," ",a.lcZ(4,8,t.actualStatus)," "),a.xp6(4),a.Oqu(t.description),a.xp6(1),a.Q6J("ngIf",t.allStatuses.length>1),a.xp6(1),a.Q6J("ngIf",1===t.allStatuses.length),a.xp6(2),a.Q6J("innerHTML",t.changeMessage,a.oJD)}}let v=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.memberManager=i,this.groupsManager=n,this.notificatorService=s,this.translate=o,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(t=>t!==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(t){this.selectedStatus=t.value,this.submitButtonText="VALID"===this.actualStatus&&"EXPIRED"===this.selectedStatus||"VALID"===this.actualStatus&&"DISABLED"===this.selectedStatus||"VALID"===this.selectedStatus?this.changeStatusWithExpButton:this.changeStatusButton,this.changeStatusMessage(this.actualStatus,this.selectedStatus)}changeStatusMessage(t,e){if("VALID"===t)switch(e){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(e){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=""}}cancel(){this.dialogRef.close()}submit(){this.loading=!0,this.data.groupId?this.groupsManager.setGroupsMemberStatus(this.data.member.id,this.data.groupId,this.selectedStatus).subscribe(t=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(e=>{this.notificatorService.showSuccess(e),this.dialogRef.close(t)})},()=>this.loading=!1):this.memberManager.setStatus(this.data.member.id,this.selectedStatus).subscribe(t=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(e=>{this.notificatorService.showSuccess(e),this.dialogRef.close(t)})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI),a.Y36(o.uq),a.Y36(o.ff),a.Y36(r.V6),a.Y36(c.sK))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"h1",0),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,m,1,0,"mat-spinner",1),a.YNc(5,y,11,10,"div",2),a.TgZ(6,"div",3),a.TgZ(7,"button",4),a.NdJ("click",function(){return e.cancel()}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"button",5),a.NdJ("click",function(){return e.submit()}),a._uU(11),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(2),a.Oqu(a.lcZ(3,9,"DIALOGS.CHANGE_STATUS.TITLE")),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading),a.xp6(3),a.hij(" ",a.lcZ(9,11,"DIALOGS.CHANGE_STATUS.CANCEL")," "),a.xp6(2),a.Q6J("disabled",e.loading||!e.selectedStatus),a.xp6(1),a.hij(" ",e.submitButtonText," "))},directives:[s.uh,l.O5,s.H8,u.lW,h.$g,s.xY,d.KE,d.hX,p.gD,l.sg,g.ey],pipes:[c.X$,f.l],styles:[".new-line[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),t})();var T=i(16073),C=i(80340);function E(t,e){1&t&&(a.TgZ(0,"h1",7),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_FACILITY")," "))}function S(t,e){1&t&&(a.TgZ(0,"h1",7),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_RESOURCE")," "))}function k(t,e){1&t&&(a.TgZ(0,"h1",7),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_VO")," "))}function I(t,e){1&t&&(a.TgZ(0,"h1",7),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_GROUP")," "))}function x(t,e){1&t&&a._UZ(0,"mat-spinner",8)}function R(t,e){if(1&t&&(a.TgZ(0,"mat-form-field"),a._UZ(1,"input",13),a.ALo(2,"translate"),a.qZA()),2&t){const t=a.oxw(2);a.xp6(1),a.MGl("placeholder","",a.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SHORT_NAME"),":"),a.Q6J("value",t.shortName)}}function O(t,e){if(1&t&&(a.TgZ(0,"mat-form-field",14),a._UZ(1,"textarea",15),a.ALo(2,"translate"),a.qZA()),2&t){const t=a.oxw(2);a.xp6(1),a.MGl("placeholder","",a.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.DESCRIPTION"),":"),a.Q6J("formControl",t.descriptionCtrl)}}function P(t,e){if(1&t&&(a.TgZ(0,"div",9),a.YNc(1,R,3,4,"mat-form-field",10),a.TgZ(2,"mat-form-field"),a._UZ(3,"input",11),a.ALo(4,"translate"),a.TgZ(5,"mat-error"),a._uU(6),a.ALo(7,"translate"),a.qZA(),a.qZA(),a.YNc(8,O,3,4,"mat-form-field",12),a.qZA()),2&t){const t=a.oxw();a.xp6(1),a.Q6J("ngIf",2===t.dialogType),a.xp6(2),a.MGl("placeholder","",a.lcZ(4,5,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.NAME"),":"),a.Q6J("formControl",t.nameCtrl),a.xp6(3),a.hij(" ",t.invalidNameMessage.length?t.invalidNameMessage:a.lcZ(7,7,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FILL_NAME")," "),a.xp6(2),a.Q6J("ngIf",2!==t.dialogType)}}var D=function(t){return t[t.FACILITY=0]="FACILITY",t[t.RESOURCE=1]="RESOURCE",t[t.VO=2]="VO",t[t.GROUP=3]="GROUP",t}({});let M=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c){this.dialogRef=t,this.data=e,this.notificator=i,this.translateService=n,this.facilitiesManager=s,this.resourcesManager=o,this.groupsManager=r,this.vosManager=a,this.store=c,this.invalidNameMessage=this.data.dialogType===D.GROUP?this.store.get("group_name_error_message"):"",this.loading=!1,this.secondaryRegex=this.data.dialogType===D.GROUP?this.store.get("group_name_secondary_regex"):""}ngOnInit(){switch(this.theme=this.data.theme,this.dialogType=this.data.dialogType,this.dialogType){case D.FACILITY:this.nameCtrl=new T.NI(this.data.facility.name,[T.kI.required,T.kI.pattern(".*[\\S]+.*"),T.kI.maxLength(129)]),this.descriptionCtrl=new T.NI(this.data.facility.description);break;case D.RESOURCE:this.nameCtrl=new T.NI(this.data.resource.name,[T.kI.required,T.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new T.NI(this.data.resource.description);break;case D.GROUP:{const t=this.data.group.name.split(":");this.nameCtrl=new T.NI(t[t.length-1],[T.kI.required,T.kI.pattern(".*[\\S]+.*"),T.kI.pattern(this.secondaryRegex),T.kI.maxLength(129)]),this.descriptionCtrl=new T.NI(this.data.group.description);break}case D.VO:this.shortName=this.data.vo.shortName,this.nameCtrl=new T.NI(this.data.vo.name,[T.kI.required,T.kI.pattern(".*[\\S]+.*"),T.kI.maxLength(129)]),this.descriptionCtrl=new T.NI}}cancel(){this.dialogRef.close(!1)}submit(){switch(this.loading=!0,this.dialogType){case D.FACILITY:this.editFacility();break;case D.RESOURCE:this.editResource();break;case D.GROUP:this.editGroup();break;case D.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(t=>{this.notificator.showSuccess(t),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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}editGroup(){this.groupsManager.getGroupById(this.data.group.id).subscribe(t=>{const e=t;e.name=this.nameCtrl.value,e.description=this.descriptionCtrl.value,this.groupsManager.updateGroup({group:e}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.GROUP_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI),a.Y36(r.V6),a.Y36(c.sK),a.Y36(o.IQ),a.Y36(o.xk),a.Y36(o.ff),a.Y36(o.YF),a.Y36(r.d6))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"div"),a.YNc(1,E,3,3,"h1",0),a.YNc(2,S,3,3,"h1",0),a.YNc(3,k,3,3,"h1",0),a.YNc(4,I,3,3,"h1",0),a.TgZ(5,"div",1),a.YNc(6,x,1,0,"mat-spinner",2),a.YNc(7,P,9,9,"div",3),a.qZA(),a.TgZ(8,"div",4),a.TgZ(9,"button",5),a.NdJ("click",function(){return e.cancel()}),a._uU(10),a.ALo(11,"translate"),a.qZA(),a.TgZ(12,"button",6),a.NdJ("click",function(){return e.submit()}),a._uU(13),a.ALo(14,"translate"),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(1),a.Q6J("ngIf",0===e.dialogType),a.xp6(1),a.Q6J("ngIf",1===e.dialogType),a.xp6(1),a.Q6J("ngIf",2===e.dialogType),a.xp6(1),a.Q6J("ngIf",3===e.dialogType),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading),a.xp6(3),a.hij(" ",a.lcZ(11,12,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.CANCEL_BUTTON")," "),a.xp6(2),a.Q6J("disabled",e.loading||e.nameCtrl.invalid||e.descriptionCtrl.invalid),a.xp6(1),a.hij(" ",a.lcZ(14,14,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SUBMIT_BUTTON")," "))},directives:[l.O5,s.xY,s.H8,u.lW,s.uh,h.$g,d.KE,C.Nt,T.Fj,T.Q7,T.JJ,T.oH,d.TO,C.D7],pipes:[c.X$],styles:[""]}),t})();var L=i(67004),N=i(84140),z=i(43691);function Z(t,e){1&t&&a._UZ(0,"mat-spinner",8)}function B(t,e){if(1&t&&(a.TgZ(0,"div",9),a.TgZ(1,"span"),a._uU(2),a.ALo(3,"translate"),a.TgZ(4,"b"),a._uU(5),a.qZA(),a.qZA(),a._UZ(6,"br"),a.TgZ(7,"span"),a._uU(8),a.ALo(9,"translate"),a.TgZ(10,"b"),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.qZA(),a._UZ(13,"br"),a.TgZ(14,"span"),a._uU(15),a.ALo(16,"translate"),a.TgZ(17,"b"),a._uU(18),a.ALo(19,"translate"),a.qZA(),a.qZA(),a._UZ(20,"br"),a.TgZ(21,"span"),a._uU(22),a.ALo(23,"translate"),a.TgZ(24,"b"),a._uU(25),a.ALo(26,"translate"),a.qZA(),a.qZA(),a.qZA()),2&t){const t=a.oxw();a.xp6(2),a.hij(" ",a.lcZ(3,8,"DIALOGS.GROUP_SYNC_DETAIL.GROUP_NAME")," "),a.xp6(3),a.Oqu(t.group.name),a.xp6(3),a.hij(" ",a.lcZ(9,10,"DIALOGS.GROUP_SYNC_DETAIL.SYNCHRONIZATION")," "),a.xp6(3),a.Oqu(a.lcZ(12,12,t.getSynchronizationType())),a.xp6(4),a.hij(" ",a.lcZ(16,14,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_STATE")," "),a.xp6(3),a.Oqu(a.lcZ(19,16,t.getLastSyncState())),a.xp6(4),a.hij(" ",a.lcZ(23,18,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_TIME")," "),a.xp6(3),a.Oqu(a.lcZ(26,20,t.getLastSyncTime()))}}function F(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"button",10),a.NdJ("click",function(){return a.CHM(t),a.oxw().onForceStructure()}),a._uU(1),a.ALo(2,"translate"),a.qZA()}if(2&t){const t=a.oxw();a.Q6J("disabled",t.loading),a.xp6(1),a.hij(" ",a.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE_STRUCTURE")," ")}}function U(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"button",10),a.NdJ("click",function(){return a.CHM(t),a.oxw().onForce()}),a._uU(1),a.ALo(2,"translate"),a.qZA()}if(2&t){const t=a.oxw();a.Q6J("disabled",t.loading),a.xp6(1),a.hij(" ",a.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE")," ")}}let q=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.data=e,this.groupService=i,this.notificator=n,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,[L.r.GROUP_SYNC_ENABLED,L.r.GROUP_LAST_SYNC_STATE,L.r.GROUP_LAST_SYNC_TIMESTAMP,L.r.GROUP_STRUCTURE_SYNC_ENABLED,L.r.GROUP_LAST_STRUCTURE_SYNC_STATE,L.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(t=>{this.group=t,this.syncEnabled=(0,N.IL)(this.group.attributes,L.r.GROUP_SYNC_ENABLED).value,this.lastSyncState=(0,N.IL)(this.group.attributes,L.r.GROUP_LAST_SYNC_STATE).value,this.lastSyncTime=(0,N.IL)(this.group.attributes,L.r.GROUP_LAST_SYNC_TIMESTAMP).value,this.structSyncEnabled=(0,N.IL)(this.group.attributes,L.r.GROUP_STRUCTURE_SYNC_ENABLED).value,this.lastStructSyncState=(0,N.IL)(this.group.attributes,L.r.GROUP_LAST_STRUCTURE_SYNC_STATE).value,this.lastStructSyncTime=(0,N.IL)(this.group.attributes,L.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 t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI),a.Y36(o.ff),a.Y36(r.V6))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"h1",0),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,Z,1,0,"mat-spinner",1),a.YNc(5,B,27,22,"div",2),a.TgZ(6,"div",3),a.TgZ(7,"div",4),a.TgZ(8,"button",5),a.NdJ("click",function(){return e.refresh()}),a.TgZ(9,"mat-icon"),a._uU(10,"refresh"),a.qZA(),a.qZA(),a.YNc(11,F,3,4,"button",6),a.YNc(12,U,3,4,"button",6),a.TgZ(13,"button",7),a.NdJ("click",function(){return e.onCancel()}),a._uU(14),a.ALo(15,"translate"),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(2),a.Oqu(a.lcZ(3,9,"DIALOGS.GROUP_SYNC_DETAIL.TITLE")),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading),a.xp6(6),a.Q6J("ngIf",e.isStructured()),a.xp6(1),a.Q6J("ngIf",e.isBasic()||e.isStructured()),a.xp6(2),a.hij(" ",a.lcZ(15,11,"DIALOGS.GROUP_SYNC_DETAIL.CANCEL")," "))},directives:[s.uh,l.O5,s.H8,u.lW,z.Hw,h.$g,s.xY],pipes:[c.X$],styles:[""]}),t})();function H(t,e){1&t&&a._UZ(0,"mat-spinner",7)}function G(t,e){1&t&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function j(t,e){1&t&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function Y(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div",8),a.TgZ(1,"mat-form-field"),a.TgZ(2,"mat-label"),a._uU(3),a.ALo(4,"translate"),a.qZA(),a.TgZ(5,"input",9,10),a.NdJ("ngModelChange",function(e){return a.CHM(t),a.oxw().subject=e}),a.qZA(),a.YNc(7,G,3,3,"mat-error",11),a.qZA(),a.TgZ(8,"mat-form-field"),a.TgZ(9,"mat-label"),a._uU(10),a.ALo(11,"translate"),a.qZA(),a.TgZ(12,"textarea",12,13),a.NdJ("ngModelChange",function(e){return a.CHM(t),a.oxw().message=e}),a.ALo(14,"translate"),a._uU(15," "),a.qZA(),a.YNc(16,j,3,3,"mat-error",11),a.qZA(),a.qZA()}if(2&t){const t=a.MAs(6),e=a.MAs(13),i=a.oxw();a.xp6(3),a.Oqu(a.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),a.xp6(2),a.Q6J("ngModel",i.subject),a.xp6(2),a.Q6J("ngIf",t.invalid),a.xp6(3),a.Oqu(a.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),a.xp6(2),a.s9C("placeholder",a.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),a.Q6J("ngModel",i.message),a.xp6(4),a.Q6J("ngIf",e.invalid)}}let K=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.translate=e,this.notificator=i,this.rtMessages=n,this.data=s,this.storeService=o,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data.error&&this.data.error.errorId&&(this.subject=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(t=>{this.dialogRef.afterClosed().subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1")+t.ticketNumber+this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"))}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const t=this.storeService.get("config");let e=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(e=e.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),e=e.concat(this.data.error.message+"\nPerun instance: "+t+"\nRequest:\n"+this.data.error.urlWithParams+"\n\n"),this.data.error.payload){const t=/"password":".+?"/;let i=JSON.stringify(this.data.error.payload);i=i.replace(t,'"password":"####"'),e=e.concat("Payload:\n"+i+"\n\n")}return e=e.concat("Sended from new Perun Gui, version: "+i(60306).i8),e.split("\n").join("\n ")}parseMethod(t){return t?this.methodRegexp.exec(t)[1]:t}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(c.sK),a.Y36(r.V6),a.Y36(o.Hr),a.Y36(s.WI),a.Y36(r.d6))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.YNc(3,H,1,0,"mat-spinner",1),a.YNc(4,Y,17,13,"div",2),a.TgZ(5,"div",3),a.TgZ(6,"div",4),a.TgZ(7,"button",5),a.NdJ("click",function(){return e.dialogRef.close()}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"button",6),a.NdJ("click",function(){return e.sendBugReport()}),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading),a.xp6(4),a.hij(" ",a.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),a.xp6(2),a.Q6J("disabled",""===e.message||""===e.subject||e.loading),a.xp6(1),a.hij(" ",a.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},directives:[s.uh,l.O5,s.H8,u.lW,h.$g,s.xY,d.KE,d.hX,C.Nt,T.Fj,T.Q7,T.JJ,T.On,d.TO],pipes:[c.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})(),V=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.dialog=e,this.data=i}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const t=(0,N.kZ)();t.width="550px",t.data={error:this.data.error},t.autoFocus=!1,this.dialog.open(K,t)}),this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.uw),a.Y36(s.WI))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.qZA(),a.TgZ(2,"div",1),a._uU(3),a.qZA(),a.TgZ(4,"div",2),a.TgZ(5,"div",3),a.TgZ(6,"button",4),a.NdJ("click",function(){return e.onBugReportClick()}),a._uU(7),a.ALo(8,"translate"),a.qZA(),a.TgZ(9,"button",5),a.NdJ("click",function(){return e.onCloseClick()}),a._uU(10),a.ALo(11,"translate"),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(e.data.title),a.xp6(2),a.hij(" ",e.data.description,"\n"),a.xp6(3),a.Q6J("hidden","error"!==e.data.type),a.xp6(1),a.hij(" ",a.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),a.xp6(3),a.hij(" ",a.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},directives:[s.uh,s.xY,s.H8,u.lW],pipes:[c.X$],styles:[""]}),t})();var $=i(67033),J=i(83787);function Q(t,e){1&t&&a._UZ(0,"mat-spinner",3)}function W(t,e){1&t&&a._UZ(0,"th",15)}function X(t,e){if(1&t&&(a.TgZ(0,"td",16),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.hij(" ",t.userExtSource.extSource.name," ")}}function tt(t,e){1&t&&a._UZ(0,"tr",17)}function et(t,e){1&t&&a._UZ(0,"tr",18)}function it(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div"),a.TgZ(1,"div",4),a.TgZ(2,"p"),a._uU(3),a.ALo(4,"translate"),a.ALo(5,"customTranslate"),a.qZA(),a.TgZ(6,"div",5),a._uU(7),a.ALo(8,"translate"),a.ALo(9,"customTranslate"),a.qZA(),a.TgZ(10,"table",6),a.ynx(11,7),a.YNc(12,W,1,0,"th",8),a.YNc(13,X,2,1,"td",9),a.BQk(),a.YNc(14,tt,1,0,"tr",10),a.YNc(15,et,1,0,"tr",11),a.qZA(),a.qZA(),a.TgZ(16,"div",12),a.TgZ(17,"button",13),a.NdJ("click",function(){return a.CHM(t),a.oxw().onCancel()}),a._uU(18),a.ALo(19,"translate"),a.ALo(20,"customTranslate"),a.qZA(),a.TgZ(21,"button",14),a.NdJ("click",function(){return a.CHM(t),a.oxw().onSubmit()}),a._uU(22),a.ALo(23,"translate"),a.ALo(24,"customTranslate"),a.qZA(),a.qZA(),a.qZA()}if(2&t){const t=a.oxw();a.xp6(3),a.hij(" ",a.lcZ(4,7,a.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),a.xp6(4),a.hij(" ",a.lcZ(8,11,a.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),a.xp6(3),a.Q6J("dataSource",t.dataSource),a.xp6(4),a.Q6J("matHeaderRowDef",t.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",t.displayedColumns),a.xp6(3),a.hij(" ",a.lcZ(19,15,a.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),a.xp6(4),a.hij(" ",a.lcZ(23,19,a.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let nt=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.usersManagerService=i,this.translate=n,this.notificator=s,this.force=!1,this.displayedColumns=["name"],n.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new $.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 t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI),a.Y36(o.Fv),a.Y36(c.sK),a.Y36(r.V6))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA(),a.TgZ(4,"div"),a.YNc(5,Q,1,0,"mat-spinner",1),a.YNc(6,it,25,23,"div",2),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,6,a.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE")),"\n"),a.xp6(3),a.Tol(e.theme),a.xp6(1),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading))},directives:[s.uh,l.O5,h.$g,s.xY,$.BZ,$.w1,$.fO,$.Dz,$.as,$.nj,s.H8,u.lW,$.ge,$.ev,$.XQ,$.Gk],pipes:[c.X$,J.a],styles:[""]}),t})();var st=i(10901),ot=i(81391);let rt=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}ngOnInit(){this.value=this.data.value,this.title=this.data.title}onCancel(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.qZA(),a.TgZ(2,"div",1),a.TgZ(3,"textarea",2),a._uU(4),a.qZA(),a.qZA(),a.TgZ(5,"div",3),a.TgZ(6,"button",4),a.NdJ("click",function(){return e.onCancel()}),a._uU(7),a.ALo(8,"translate"),a.qZA(),a.TgZ(9,"button",5),a._uU(10),a.ALo(11,"translate"),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(e.title),a.xp6(3),a.Oqu(e.value),a.xp6(3),a.hij(" ",a.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),a.xp6(2),a.Q6J("cdkCopyToClipboard",e.value),a.xp6(1),a.hij(" ",a.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},directives:[s.uh,s.xY,st.IC,C.Nt,s.H8,u.lW,ot.i3],pipes:[c.X$],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),t})();function at(t,e){1&t&&a._UZ(0,"th",12)}function ct(t,e){if(1&t&&(a.TgZ(0,"td",13),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(t.displayName)}}function lt(t,e){1&t&&a._UZ(0,"tr",14)}function ut(t,e){1&t&&a._UZ(0,"tr",15)}let ht=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.attributesManager=s,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new $.by(this.data.attributes)}onCancel(){this.dialogRef.close(!1)}onSubmit(){const t=[];for(const i of this.data.attributes)t.push(i.id);const e={};switch(e[this.data.entity]=this.data.entityId,e.attributes=t,void 0!==this.data.secondEntity&&(e[this.data.secondEntity]=this.data.secondEntityId),this.data.entity){case"vo":this.attributesManager.setVoAttributes({vo:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"group":switch(this.data.secondEntity){case"resource":this.attributesManager.setGroupResourceAttributes({group:this.data.entityId,resource:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;default:this.attributesManager.setGroupAttributes({group:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()})}break;case"user":switch(this.data.secondEntity){case"facility":this.attributesManager.setUserFacilityAttributes({user:this.data.entityId,facility:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;default: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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)})}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI),a.Y36(r.V6),a.Y36(c.sK),a.Y36(o.H8))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.TgZ(4,"div"),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.TgZ(7,"div",2),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"table",3),a.ynx(11,4),a.YNc(12,at,1,0,"th",5),a.YNc(13,ct,2,1,"td",6),a.BQk(),a.YNc(14,lt,1,0,"tr",7),a.YNc(15,ut,1,0,"tr",8),a.qZA(),a.qZA(),a.TgZ(16,"div",9),a.TgZ(17,"button",10),a.NdJ("click",function(){return e.onCancel()}),a._uU(18),a.ALo(19,"translate"),a.qZA(),a.TgZ(20,"button",11),a.NdJ("click",function(){return e.onSubmit()}),a._uU(21),a.ALo(22,"translate"),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,8,"DIALOGS.EDIT_ATTRIBUTES.TITLE")),a.xp6(4),a.hij(" ",a.lcZ(6,10,"DIALOGS.EDIT_ATTRIBUTES.DESCRIPTION")," "),a.xp6(3),a.hij(" ",a.lcZ(9,12,"DIALOGS.EDIT_ATTRIBUTES.ASK")," "),a.xp6(2),a.Q6J("dataSource",e.dataSource),a.xp6(4),a.Q6J("matHeaderRowDef",e.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",e.displayedColumns),a.xp6(3),a.hij(" ",a.lcZ(19,14,"DIALOGS.EDIT_ATTRIBUTES.CANCEL")," "),a.xp6(3),a.hij(" ",a.lcZ(22,16,"DIALOGS.EDIT_ATTRIBUTES.SAVE")," "))},directives:[s.uh,s.xY,$.BZ,$.w1,$.fO,$.Dz,$.as,$.nj,s.H8,u.lW,$.ge,$.ev,$.XQ,$.Gk],pipes:[c.X$],styles:[""]}),t})(),dt=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,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 t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h5",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.TgZ(4,"mat-form-field"),a.TgZ(5,"textarea",2),a.NdJ("ngModelChange",function(t){return e.attributeValue=t}),a.qZA(),a.qZA(),a.qZA(),a.TgZ(6,"div",3),a.TgZ(7,"button",4),a.NdJ("click",function(){return e.cancel()}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"button",5),a.NdJ("click",function(){return e.submit()}),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE"),"\n"),a.xp6(4),a.Q6J("ngModel",e.attributeValue),a.xp6(3),a.hij(" ",a.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),a.xp6(3),a.hij(" ",a.lcZ(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},directives:[s.uh,s.xY,d.KE,st.IC,C.Nt,T.Fj,T.JJ,T.On,s.H8,u.lW],pipes:[c.X$],styles:[""]}),t})(),pt=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}cancel(){this.dialogRef.close()}submit(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h5",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.TgZ(4,"div"),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.TgZ(7,"div",2),a._uU(8),a.qZA(),a.qZA(),a.TgZ(9,"div",3),a.TgZ(10,"button",4),a.NdJ("click",function(){return e.cancel()}),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.TgZ(13,"button",5),a.NdJ("click",function(){return e.submit()}),a._uU(14),a.ALo(15,"translate"),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE"),"\n"),a.xp6(4),a.hij(" ",a.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),a.xp6(3),a.hij(" ",e.data.name," "),a.xp6(3),a.hij(" ",a.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),a.xp6(3),a.hij(" ",a.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},directives:[s.uh,s.xY,s.H8,u.lW],pipes:[c.X$],styles:[""]}),t})();var gt=i(39571);function ft(t,e){if(1&t&&(a.TgZ(0,"app-alert",9),a._uU(1),a.qZA()),2&t){const t=a.oxw();a.xp6(1),a.Oqu(t.pendingEmailsMessage)}}function mt(t,e){1&t&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,a.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}let bt=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.translate=i,this.notificator=n,this.usersManagerService=s,this.authService=o,this.pendingMails=[],i.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(t=>this.successMessage=t),i.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(t=>this.pendingEmailsMessageStart=t),i.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(t=>this.pendingEmailsMessageEnd=t)}ngOnInit(){this.emailControl=new T.NI(null,[T.kI.required,T.kI.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(t=>{this.pendingMails=t.filter((t,e,i)=>e===i.indexOf(t));let e="";this.pendingMails.forEach(t=>e+=`${t===this.pendingMails[0]?"":", "}${t}`),console.log(e),this.pendingEmailsMessage=this.pendingEmailsMessageStart+e+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 t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI),a.Y36(c.sK),a.Y36(r.V6),a.Y36(o.Fv),a.Y36(r.e8))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA(),a.TgZ(4,"div",1),a.YNc(5,ft,2,1,"app-alert",2),a.TgZ(6,"mat-form-field",3),a.TgZ(7,"label",3),a._UZ(8,"input",4),a.ALo(9,"translate"),a.ALo(10,"customTranslate"),a.qZA(),a.YNc(11,mt,4,5,"mat-error",5),a.qZA(),a.qZA(),a.TgZ(12,"div",6),a.TgZ(13,"button",7),a.NdJ("click",function(){return e.onCancel()}),a._uU(14),a.ALo(15,"translate"),a.ALo(16,"customTranslate"),a.qZA(),a.TgZ(17,"button",8),a.NdJ("click",function(){return e.onSubmit()}),a._uU(18),a.ALo(19,"translate"),a.ALo(20,"customTranslate"),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,8,a.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),a.xp6(4),a.Q6J("ngIf",e.pendingMails.length),a.xp6(3),a.s9C("placeholder",a.lcZ(9,12,a.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),a.Q6J("formControl",e.emailControl),a.xp6(3),a.Q6J("ngIf",e.emailControl.invalid),a.xp6(3),a.hij(" ",a.lcZ(15,16,a.lcZ(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),a.xp6(3),a.Q6J("disabled",!e.emailControl.valid),a.xp6(1),a.hij(" ",a.lcZ(19,20,a.lcZ(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},directives:[s.uh,s.xY,l.O5,d.KE,C.Nt,T.Fj,T.Q7,T.JJ,T.oH,s.H8,u.lW,gt.w,d.TO],pipes:[c.X$,J.a],styles:[""]}),t})();function _t(t,e){1&t&&a._UZ(0,"mat-spinner",6)}function wt(t,e){1&t&&a._UZ(0,"th",15)}function At(t,e){if(1&t&&(a.TgZ(0,"td",16),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.xp6(1),a.Oqu(t)}}function yt(t,e){1&t&&a._UZ(0,"tr",17)}function vt(t,e){1&t&&a._UZ(0,"tr",18)}function Tt(t,e){if(1&t&&(a.TgZ(0,"div",7),a.TgZ(1,"p"),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,wt,1,0,"th",11),a.YNc(10,At,2,1,"td",12),a.BQk(),a.YNc(11,yt,1,0,"tr",13),a.YNc(12,vt,1,0,"tr",14),a.qZA(),a.qZA()),2&t){const t=a.oxw();a.xp6(2),a.hij(" ",a.lcZ(3,5,t.data.description)," "),a.xp6(3),a.hij(" ",a.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "),a.xp6(2),a.Q6J("dataSource",t.dataSource),a.xp6(4),a.Q6J("matHeaderRowDef",t.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",t.displayedColumns)}}let Ct=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new $.by(this.data.items)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI))},t.\u0275cmp=a.Xpm({type:t,selectors:[["perun-web-apps-universal-remove-items-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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"h1",0),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,_t,1,0,"mat-spinner",1),a.YNc(5,Tt,13,9,"div",2),a.TgZ(6,"div",3),a.TgZ(7,"button",4),a.NdJ("click",function(){return e.onCancel()}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"button",5),a.NdJ("click",function(){return e.onSubmit()}),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(2),a.Oqu(a.lcZ(3,9,e.data.title)),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading),a.xp6(3),a.hij(" ",a.lcZ(9,11,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),a.xp6(2),a.Q6J("disabled",e.loading),a.xp6(1),a.hij(" ",a.lcZ(12,13,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," "))},directives:[s.uh,l.O5,s.H8,u.lW,h.$g,s.xY,$.BZ,$.w1,$.fO,$.Dz,$.as,$.nj,$.ge,$.ev,$.XQ,$.Gk],pipes:[c.X$],styles:[""]}),t})();var Et=i(71709),St=i(91010);let kt=(()=>{class t{transform(t){const e=t.split(":");return e[e.length-1]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=a.Yjl({name:"parseGroupName",type:t,pure:!0}),t})();function It(t,e){1&t&&a._UZ(0,"mat-spinner",7)}function xt(t,e){1&t&&(a.TgZ(0,"app-alert"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.NO_PATHS")))}function Rt(t,e){1&t&&(a.TgZ(0,"span",23),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function Ot(t,e){1&t&&(a.TgZ(0,"span",23),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}const Pt=function(t){return{"min-width":t}};function Dt(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-tree-node",16),a.TgZ(1,"li",17),a.TgZ(2,"div",18),a.NdJ("click",function(){const e=a.CHM(t).$implicit;return a.oxw(3).navigate(e.id,e.include)}),a._UZ(3,"button",19),a.TgZ(4,"div",20),a.TgZ(5,"span"),a._uU(6),a.ALo(7,"parseGroupName"),a.qZA(),a.YNc(8,Rt,3,3,"span",21),a.YNc(9,Ot,3,3,"span",21),a.qZA(),a.TgZ(10,"span",22),a._uU(11),a.qZA(),a.qZA(),a.qZA(),a.qZA()}if(2&t){const t=e.$implicit,i=a.oxw(3);a.xp6(2),a.ekj("cursor-pointer",t.direct||t.include)("act-disabled",!t.direct&&!t.include),a.xp6(2),a.Q6J("ngStyle",a.VKq(11,Pt,i.getMinWidth(t.level))),a.xp6(2),a.Oqu(a.lcZ(7,9,t.name)),a.xp6(2),a.Q6J("ngIf",t.direct),a.xp6(1),a.Q6J("ngIf",t.include),a.xp6(2),a.Oqu(t.description)}}function Mt(t,e){1&t&&(a.TgZ(0,"span",23),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function Lt(t,e){1&t&&(a.TgZ(0,"span",23),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}function Nt(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-nested-tree-node"),a.TgZ(1,"li"),a.TgZ(2,"div",17),a.TgZ(3,"button",24),a.TgZ(4,"mat-icon",25),a._uU(5),a.qZA(),a.qZA(),a.TgZ(6,"div",18),a.NdJ("click",function(){const e=a.CHM(t).$implicit;return a.oxw(3).navigate(e.id,e.include)}),a.TgZ(7,"div",20),a.TgZ(8,"span"),a._uU(9),a.ALo(10,"parseGroupName"),a.qZA(),a.YNc(11,Mt,3,3,"span",21),a.YNc(12,Lt,3,3,"span",21),a.qZA(),a.TgZ(13,"span",22),a._uU(14),a.qZA(),a.qZA(),a.qZA(),a.TgZ(15,"ul"),a.GkF(16,26),a.qZA(),a.qZA(),a.qZA()}if(2&t){const t=e.$implicit,i=a.oxw(3);a.xp6(3),a.uIk("aria-label","Toggle "+t.name),a.xp6(2),a.hij(" ",i.treeControl.isExpanded(t)?"expand_more":"chevron_right"," "),a.xp6(1),a.ekj("cursor-pointer",t.direct||t.include)("act-disabled",!t.direct&&!t.include),a.xp6(1),a.Q6J("ngStyle",a.VKq(15,Pt,i.getMinWidth(t.level))),a.xp6(2),a.Oqu(a.lcZ(10,13,t.name)),a.xp6(2),a.Q6J("ngIf",t.direct),a.xp6(1),a.Q6J("ngIf",t.include),a.xp6(2),a.Oqu(t.description),a.xp6(1),a.ekj("example-tree-invisible",!i.treeControl.isExpanded(t))}}function zt(t,e){if(1&t&&(a.TgZ(0,"mat-tree",13),a.YNc(1,Dt,12,13,"mat-tree-node",14),a.YNc(2,Nt,17,17,"mat-nested-tree-node",15),a.qZA()),2&t){const t=a.oxw(2);a.Q6J("dataSource",t.dataSource)("treeControl",t.treeControl),a.xp6(2),a.Q6J("matTreeNodeDefWhen",t.hasChild)}}function Zt(t,e){if(1&t&&(a.TgZ(0,"div",8),a.TgZ(1,"p"),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"mat-form-field",9),a._UZ(5,"input",10),a.ALo(6,"translate"),a.qZA(),a.YNc(7,xt,3,3,"app-alert",11),a.YNc(8,zt,3,3,"mat-tree",12),a.qZA()),2&t){const t=a.oxw();a.xp6(2),a.Oqu(a.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INFO")),a.xp6(3),a.s9C("placeholder",a.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.FILTER")),a.Q6J("formControl",t.formControl),a.xp6(2),a.Q6J("ngIf",!t.dataSource.data.length),a.xp6(1),a.Q6J("ngIf",t.dataSource.data.length)}}const Bt=function(t){return{name:t}};let Ft=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.groupsManagerService=i,this.treeControl=new Et.VY(t=>t.children),this.dataSource=new St.WX,this.groupTree=[],this.paths=[],this.formControl=new T.NI(""),this.userName="",this.hasChild=(t,e)=>!!e.children&&e.children.length>0}recursiveSearch(t,e,i){for(let n=0;n{this.groupTree=this.recursiveSearch(this.groupTree,t,0)}),this.groupTree.length&&(this.groupTree=this.groupTree[0].children)}ngOnInit(){this.loading=!0,this.groupsManagerService.getIndirectMembershipPaths(this.data.member.id,this.data.groupId).subscribe(t=>{this.paths=t,this.createGroupTree(this.paths),this.dataSource.data=this.groupTree,this.loading=!1}),this.formControl.valueChanges.subscribe(t=>{const e=t.trim().toLowerCase(),i=this.paths.filter(t=>t.filter(t=>t.name.includes(e)).length);this.createGroupTree(i),this.dataSource.data=this.groupTree}),this.userName=(0,N.bD)(this.data.member.user)}onCancel(){this.dialogRef.close()}navigate(t,e=!1){window.open(`/organizations/${this.data.member.voId}/groups/${t}${e?"/settings/relations":""}`,"_blank")}getMinWidth(t){return 400-40*t+"px"}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI),a.Y36(o.ff))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"div",0),a.TgZ(1,"h1",1),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,It,1,0,"mat-spinner",2),a.YNc(5,Zt,9,9,"div",3),a.TgZ(6,"div",4),a.TgZ(7,"div",5),a.TgZ(8,"button",6),a.NdJ("click",function(){return e.onCancel()}),a._uU(9),a.ALo(10,"translate"),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.xp6(2),a.hij(" ",a.xi3(3,4,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.TITLE",a.VKq(9,Bt,e.userName))," "),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading),a.xp6(4),a.hij(" ",a.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.CLOSE")," "))},directives:[s.uh,l.O5,s.H8,u.lW,h.$g,s.xY,d.KE,C.Nt,T.Fj,T.JJ,T.oH,gt.w,St.gi,St.fQ,St.uo,St.eu,l.PC,St.GZ,z.Hw,St.Ar],pipes:[c.X$,kt],styles:[".example-tree-invisible[_ngcontent-%COMP%]{display:none}.example-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .example-tree[_ngcontent-%COMP%] ul[_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:auto!important}"]}),t})();var Ut=i(57629);let qt=(()=>{class t{constructor(t,e){this.dialogRef=t,this.router=e}onClose(){this.router.navigate([]),this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(Ut.F0))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.TgZ(4,"app-alert",2),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.qZA(),a.TgZ(7,"div",3),a.TgZ(8,"button",4),a.NdJ("click",function(){return e.onClose()}),a._uU(9),a.ALo(10,"translate"),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE"),"\n"),a.xp6(4),a.Oqu(a.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),a.xp6(4),a.hij(" ",a.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},directives:[s.uh,s.xY,gt.w,s.H8,u.lW],pipes:[c.X$],styles:[""]}),t})();var Ht=i(54810),Gt=i(15812),jt=i(58506);function Yt(t,e){1&t&&(a.TgZ(0,"mat-radio-button",16),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.VO_RULES")," "))}function Kt(t,e){1&t&&(a.TgZ(0,"mat-radio-button",17),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.GROUP_RULES")," "))}function Vt(t,e){1&t&&(a.TgZ(0,"app-alert",18),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.STATUS_CHANGE_INFO")))}let $t=(()=>{class t{constructor(t){this.dialogRef=t,this.canExtendMembership=!1,this.expirationChanged=new a.vpe,this.statusChange=new a.vpe,this.expirationControl=new T.NI(null)}ngOnInit(){const t=new Date;this.currentDate=(0,l.p6)(new Date(t.getFullYear(),t.getMonth(),t.getDate()),"yyyy-MM-dd","en_US"),"never"!==this.newExpiration&&this.expirationControl.setValue(this.newExpiration)}parseDate(t){return(0,l.p6)(t,"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,l.p6)(this.expirationControl.value,"yyyy-MM-dd","en"),this.expirationControl.setValue((0,l.p6)(this.expirationControl.value,"yyyy-MM-dd","en"))}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so))},t.\u0275cmp=a.Xpm({type:t,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(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.TgZ(2,"p"),a.TgZ(3,"strong"),a._uU(4),a.ALo(5,"translate"),a.qZA(),a._uU(6),a.ALo(7,"parseDate"),a.qZA(),a.TgZ(8,"p"),a.TgZ(9,"strong"),a._uU(10),a.ALo(11,"translate"),a.qZA(),a._uU(12),a.ALo(13,"parseDate"),a.qZA(),a.TgZ(14,"mat-radio-group",2),a.NdJ("ngModelChange",function(t){return e.newExpiration=t}),a.TgZ(15,"mat-radio-button",3),a.TgZ(16,"mat-form-field",4),a.NdJ("click",function(){return a.CHM(t),a.MAs(23).open()}),a.TgZ(17,"mat-label"),a._uU(18),a.ALo(19,"translate"),a.qZA(),a.TgZ(20,"input",5),a.NdJ("dateChange",function(){return e.setExpiration()}),a.qZA(),a._UZ(21,"mat-datepicker-toggle",6),a._UZ(22,"mat-datepicker",7,8),a.qZA(),a.qZA(),a.YNc(24,Yt,3,3,"mat-radio-button",9),a.YNc(25,Kt,3,3,"mat-radio-button",10),a.TgZ(26,"mat-radio-button",11),a._uU(27),a.ALo(28,"translate"),a.qZA(),a.qZA(),a.YNc(29,Vt,3,3,"app-alert",12),a.qZA(),a.TgZ(30,"div",13),a.TgZ(31,"button",14),a.NdJ("click",function(){return e.onCancel()}),a._uU(32),a.ALo(33,"translate"),a.qZA(),a.TgZ(34,"button",15),a.NdJ("click",function(){return e.onChange()}),a._uU(35),a.ALo(36,"translate"),a.qZA(),a.qZA(),a.qZA()}if(2&t){const t=a.MAs(23);a.xp6(4),a.Oqu(a.lcZ(5,21,"DIALOGS.CHANGE_EXPIRATION.CURRENT_EXPIRATION")),a.xp6(2),a.hij(" ",a.lcZ(7,23,e.currentExpiration)," "),a.xp6(4),a.Oqu(a.lcZ(11,25,"DIALOGS.CHANGE_EXPIRATION.NEW_EXPIRATION")),a.xp6(2),a.hij(" ",e.newExpiration?a.lcZ(13,27,e.newExpiration):"never"," "),a.xp6(2),a.Q6J("ngModel",e.newExpiration),a.xp6(1),a.s9C("value",e.expirationControl.value),a.xp6(3),a.Oqu(a.lcZ(19,29,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),a.xp6(2),a.Q6J("min",e.minDate)("max",e.maxDate)("formControl",e.expirationControl)("matDatepicker",t),a.xp6(1),a.Q6J("for",t)("disabled",!1),a.xp6(1),a.Q6J("disabled",!1),a.xp6(2),a.Q6J("ngIf",e.canExtendMembership&&"vo"===e.mode),a.xp6(1),a.Q6J("ngIf",e.canExtendMembership&&"group"===e.mode),a.xp6(2),a.hij(" ",a.lcZ(28,31,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),a.xp6(2),a.Q6J("ngIf","EXPIRED"===e.status&&("never"===e.newExpiration||e.parseDate(e.expirationControl.value)>e.currentDate)),a.xp6(3),a.hij(" ",a.lcZ(33,33,"DIALOGS.CHANGE_EXPIRATION.CANCEL")," "),a.xp6(2),a.Q6J("disabled",e.expirationControl.invalid),a.xp6(1),a.hij(" ",a.lcZ(36,35,"DIALOGS.CHANGE_EXPIRATION.SAVE")," ")}},directives:[s.xY,Ht.VQ,T.JJ,T.On,Ht.U0,d.KE,d.hX,C.Nt,T.Fj,Gt.hl,T.oH,Gt.nW,d.R9,Gt.Mq,l.O5,s.H8,u.lW,gt.w],pipes:[c.X$,jt.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}"]}),t})();function Jt(t,e){1&t&&a._UZ(0,"mat-spinner",4)}function Qt(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"perun-web-apps-change-expiration-dialog",5),a.NdJ("statusChange",function(){return a.CHM(t),a.oxw().changeStatus=!0})("expirationChanged",function(e){return a.CHM(t),a.oxw().onExpirationChanged(e)}),a.qZA()}if(2&t){const t=a.oxw();a.Q6J("minDate",t.minDate)("maxDate",t.maxDate)("currentExpiration",t.currentExpiration)("newExpiration",t.newExpiration)("canExtendMembership",t.canExtendMembership)("mode","group")("status",t.status)}}let Wt=(()=>{class t{constructor(t,e,i,n,s,o,r){this.dialogRef=t,this.data=e,this.attributesManagerService=i,this.memberManager=n,this.groupManager=s,this.translate=o,this.notificator=r,this.loading=!1,this.expirationAttr=null,this.canExtendMembership=!1,o.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.status=this.data.status,this.loading=!0;const t=new Date;"VALID"!==this.data.status?this.maxDate="EXPIRED"===this.data.status?void 0:new Date(t.getFullYear(),t.getMonth(),t.getDate()):this.minDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=this.expirationAttr&&this.expirationAttr.value?this.expirationAttr.value:"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&("VALID"!==this.data.status?(this.newExpiration=(0,l.p6)(t,"yyyy-MM-dd","en"),this.maxDate=t):this.newExpiration="never"),"VALID"===this.data.status?this.attributesManagerService.getGroupAttributeByName(this.data.groupId,L.r.GROUP_DEF_EXPIRATION_RULES).subscribe(t=>{null!==t.value?this.groupManager.canExtendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe(t=>{this.canExtendMembership=!!t,this.loading=!1},()=>this.loading=!1):this.loading=!1},()=>this.loading=!1):this.loading=!1}onExpirationChanged(t){this.loading=!0,"groupRules"===t?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"===t?null:t,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(t=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0,member:t})})},()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0}))},()=>this.loading=!1))}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI),a.Y36(o.H8),a.Y36(o.uq),a.Y36(o.ff),a.Y36(c.sK),a.Y36(r.V6))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"div",0),a.TgZ(1,"h1",1),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,Jt,1,0,"mat-spinner",2),a.YNc(5,Qt,1,7,"perun-web-apps-change-expiration-dialog",3),a.qZA()),2&t&&(a.xp6(2),a.Oqu(a.lcZ(3,3,"DIALOGS.CHANGE_GROUP_EXPIRATION.TITLE")),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading))},directives:[s.uh,l.O5,h.$g,$t],pipes:[c.X$],styles:[""]}),t})();var Xt=i(90888);function te(t,e){1&t&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.FIELD_EMPTY")))}function ee(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"form",5),a.TgZ(1,"div",6),a.TgZ(2,"mat-form-field"),a.TgZ(3,"mat-label"),a._uU(4),a.ALo(5,"translate"),a.qZA(),a._UZ(6,"input",7),a.TgZ(7,"mat-icon",8),a.NdJ("click",function(){a.CHM(t);const e=a.oxw();return e.showOldPassword=!e.showOldPassword}),a._uU(8),a.qZA(),a.YNc(9,te,3,3,"mat-error",9),a.qZA(),a._UZ(10,"perun-web-apps-password-form",10),a.qZA(),a.qZA()}if(2&t){const t=a.oxw();a.Q6J("formGroup",t.formGroup),a.xp6(4),a.Oqu(a.lcZ(5,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.OLD_PASSWORD")),a.xp6(2),a.Q6J("type",t.showOldPassword?"text":"password"),a.xp6(2),a.hij(" ",t.showOldPassword?"visibility_off":"visibility"," "),a.xp6(1),a.Q6J("ngIf",t.oldPwd.hasError("required")),a.xp6(1),a.Q6J("formGroup",t.formGroup)("namespace",t.data.namespace)}}function ie(t,e){1&t&&a._UZ(0,"mat-spinner",11)}function ne(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div",12),a.TgZ(1,"div",13),a.TgZ(2,"button",14),a.NdJ("click",function(){return a.CHM(t),a.oxw().close()}),a._uU(3),a.ALo(4,"translate"),a.qZA(),a.TgZ(5,"button",15),a.NdJ("click",function(){return a.CHM(t),a.oxw().changePassword()}),a._uU(6),a.ALo(7,"translate"),a.qZA(),a.qZA(),a.qZA()}if(2&t){const t=a.oxw();a.xp6(3),a.hij(" ",a.lcZ(4,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CANCEL")," "),a.xp6(2),a.Q6J("disabled",t.formGroup.invalid||t.formGroup.pending),a.xp6(1),a.hij(" ",a.lcZ(7,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CHANGE")," ")}}let se=(()=>{class t{constructor(t,e,i,n,s,o,r){this.dialogRef=t,this.data=e,this._formBuilder=i,this.usersManagerService=n,this.apiRequestConfiguration=s,this.notificator=o,this.translate=r,this.showOldPassword=!1,r.get("SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.formGroup=this._formBuilder.group({oldPasswordCtrl:["",T.kI.required],passwordCtrl:["",T.kI.required,[(0,n.yT)(this.data.namespace,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""]},{validators:N.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(this.data.login,this.data.namespace,this.newPwd.value,this.oldPwd.value,!0).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)})}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI),a.Y36(T.qu),a.Y36(o.Fv),a.Y36(r.F5),a.Y36(r.V6),a.Y36(c.sK))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.YNc(4,ee,11,9,"form",2),a.YNc(5,ie,1,0,"mat-spinner",3),a.qZA(),a.YNc(6,ne,8,7,"div",4)),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.TITLE")),a.xp6(3),a.Q6J("ngIf",!e.loading),a.xp6(1),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading))},directives:[s.uh,s.xY,l.O5,T._Y,T.JL,T.sg,d.KE,d.hX,T.Fj,C.Nt,T.JJ,T.u,T.Q7,z.Hw,d.R9,Xt.G,d.TO,h.$g,s.H8,u.lW],pipes:[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}"]}),t})();function oe(t,e){1&t&&a._UZ(0,"mat-spinner",4)}function re(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"perun-web-apps-change-expiration-dialog",5),a.NdJ("statusChange",function(){return a.CHM(t),a.oxw().changeStatus=!0})("expirationChanged",function(e){return a.CHM(t),a.oxw().onExpirationChanged(e)}),a.qZA()}if(2&t){const t=a.oxw();a.Q6J("minDate",t.minDate)("maxDate",t.maxDate)("currentExpiration",t.currentExpiration)("newExpiration",t.newExpiration)("canExtendMembership",t.canExtendMembership)("mode","vo")("status",t.status)}}let ae=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.attributesManagerService=i,this.memberManager=n,this.translate=s,this.notificator=o,this.loading=!1,this.expirationAttr=null,this.canExtendMembership=!1,s.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.status=this.data.status,this.loading=!0;const t=new Date;"VALID"!==this.data.status?this.maxDate="EXPIRED"===this.data.status?void 0:new Date(t.getFullYear(),t.getMonth(),t.getDate()):this.minDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=this.expirationAttr&&this.expirationAttr.value?this.expirationAttr.value:"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&("VALID"!==this.data.status?(this.newExpiration=(0,l.p6)(t,"yyyy-MM-dd","en"),this.maxDate=t):this.newExpiration="never"),"VALID"===this.data.status?this.attributesManagerService.getVoAttributeByName(this.data.voId,L.r.VO_DEF_EXPIRATION_RULES).subscribe(t=>{null!==t.value?this.memberManager.canExtendMembership(this.data.memberId).subscribe(t=>{this.canExtendMembership=!!t,this.loading=!1},()=>this.loading=!1):this.loading=!1},()=>this.loading=!1):this.loading=!1}onExpirationChanged(t){this.loading=!0,"voRules"===t?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"===t?null:t,this.attributesManagerService.setMemberAttribute({member:this.data.memberId,attribute:this.expirationAttr}).subscribe(()=>{this.changeStatus&&"EXPIRED"===this.status?this.memberManager.setStatus(this.data.memberId,"VALID").subscribe(t=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0,member:t})})},()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0}))},()=>this.loading=!1))}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI),a.Y36(o.H8),a.Y36(o.uq),a.Y36(c.sK),a.Y36(r.V6))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"div",0),a.TgZ(1,"h1",1),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,oe,1,0,"mat-spinner",2),a.YNc(5,re,1,7,"perun-web-apps-change-expiration-dialog",3),a.qZA()),2&t&&(a.xp6(2),a.Oqu(a.lcZ(3,3,"DIALOGS.CHANGE_VO_EXPIRATION.TITLE")),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading))},directives:[s.uh,l.O5,h.$g,$t],pipes:[c.X$],styles:[""]}),t})();function ce(t,e){1&t&&a._UZ(0,"mat-spinner",4)}function le(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"perun-web-apps-change-expiration-dialog",5),a.NdJ("expirationChanged",function(e){return a.CHM(t),a.oxw().onExpirationChanged(e)}),a.qZA()}if(2&t){const t=a.oxw();a.Q6J("minDate",t.minDate)("currentExpiration",t.currentExpiration)("newExpiration",t.newExpiration)("mode","sponsor")}}let ue=(()=>{class t{constructor(t,e,i,n,s,o,r){this.dialogRef=t,this.data=e,this.attributesManagerService=i,this.memberManager=n,this.groupManager=s,this.translate=o,this.notificator=r,this.loading=!1,o.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.loading=!0,this.currentExpiration=this.data.sponsor.validityTo?this.data.sponsor.validityTo:"never",this.newExpiration=this.currentExpiration;const t=new Date;this.minDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()),this.loading=!1}onExpirationChanged(t){this.loading=!0,this.memberManager.updateSponsorshipValidity(this.data.memberId,this.data.sponsor.user.id,"never"===t?null:t).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI),a.Y36(o.H8),a.Y36(o.uq),a.Y36(o.ff),a.Y36(c.sK),a.Y36(r.V6))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"div",0),a.TgZ(1,"h1",1),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,ce,1,0,"mat-spinner",2),a.YNc(5,le,1,4,"perun-web-apps-change-expiration-dialog",3),a.qZA()),2&t&&(a.xp6(2),a.Oqu(a.lcZ(3,3,"DIALOGS.CHANGE_SPONSORSHIP_EXPIRATION.TITLE")),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading))},directives:[s.uh,l.O5,h.$g,$t],pipes:[c.X$],styles:[""]}),t})();function he(t,e){1&t&&a._UZ(0,"mat-spinner",4)}function de(t,e){1&t&&(a.TgZ(0,"span",11),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function pe(t,e){1&t&&(a.TgZ(0,"span",11),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function ge(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-radio-group",12),a.NdJ("ngModelChange",function(e){return a.CHM(t),a.oxw(2).asyncValidation=e}),a.TgZ(1,"span",13),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"mat-radio-button",14),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.TgZ(7,"mat-radio-button",14),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.qZA()}if(2&t){const t=a.oxw(2);a.Q6J("ngModel",t.asyncValidation),a.xp6(2),a.hij(" ",a.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE"),": "),a.xp6(2),a.Q6J("value",!1),a.xp6(1),a.hij(" ",a.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),a.xp6(2),a.Q6J("value",!0),a.xp6(1),a.hij(" ",a.lcZ(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," ")}}function fe(t,e){1&t&&(a.TgZ(0,"span",11),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function me(t,e){1&t&&(a.TgZ(0,"span",11),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function be(t,e){if(1&t&&(a.TgZ(0,"div",5),a.TgZ(1,"p",6),a._uU(2),a.TgZ(3,"span",7),a._uU(4),a.qZA(),a._uU(5),a.TgZ(6,"span",7),a._uU(7),a.qZA(),a.qZA(),a.TgZ(8,"p"),a.TgZ(9,"strong",8),a._uU(10),a.ALo(11,"translate"),a.qZA(),a._uU(12),a.qZA(),a.TgZ(13,"p"),a.TgZ(14,"strong",8),a._uU(15),a.ALo(16,"translate"),a.qZA(),a._uU(17),a.qZA(),a.YNc(18,de,3,3,"span",9),a.YNc(19,pe,3,3,"span",9),a.YNc(20,ge,10,12,"mat-radio-group",10),a.YNc(21,fe,3,3,"span",9),a.YNc(22,me,3,3,"span",9),a.qZA()),2&t){const t=a.oxw();a.xp6(2),a.hij(" ",t.group.name," "),a.xp6(2),a.hij("#",t.group.id,""),a.xp6(1),a.hij(" - ",t.resource.name," "),a.xp6(2),a.hij("#",t.resource.id,""),a.xp6(3),a.hij("",a.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT"),":"),a.xp6(2),a.hij(" ",t.status," "),a.xp6(3),a.hij("",a.lcZ(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW"),":"),a.xp6(2),a.hij(" ",t.getReversedStatus()," "),a.xp6(1),a.Q6J("ngIf","INACTIVE"===t.status),a.xp6(1),a.Q6J("ngIf","ACTIVE"===t.status),a.xp6(1),a.Q6J("ngIf","INACTIVE"===t.status),a.xp6(1),a.Q6J("ngIf","INACTIVE"===t.status&&!1===t.asyncValidation),a.xp6(1),a.Q6J("ngIf","INACTIVE"===t.status&&!0===t.asyncValidation)}}function _e(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div",15),a.TgZ(1,"button",16),a.NdJ("click",function(){return a.CHM(t),a.oxw().onCancel()}),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"button",17),a.NdJ("click",function(){return a.CHM(t),a.oxw().onSubmit()}),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.qZA()}if(2&t){const t=a.oxw();a.xp6(2),a.hij(" ",a.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),a.xp6(2),a.Q6J("disabled",t.loading),a.xp6(1),a.hij(" ",a.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG."+("ACTIVE"===t.status?"DEACTIVATE":"ACTIVATE"))," ")}}let we=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.data=e,this.resourceService=i,this.groupService=n,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(t=>{this.resource=t,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 t.\u0275fac=function(e){return new(e||t)(a.Y36(s.so),a.Y36(s.WI),a.Y36(o.xk),a.Y36(o.ff))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"div"),a.TgZ(1,"h1",0),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,he,1,0,"mat-spinner",1),a.YNc(5,be,23,17,"div",2),a.YNc(6,_e,7,7,"div",3),a.qZA()),2&t&&(a.Tol(e.theme),a.xp6(2),a.hij(" ",a.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")," "),a.xp6(2),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading))},directives:[s.uh,l.O5,h.$g,s.xY,Ht.VQ,T.JJ,T.On,Ht.U0,s.H8,u.lW],pipes:[c.X$],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),t})()},84534:function(t,e,i){"use strict";i.d(e,{hT:function(){return s},Kd:function(){return r},YH:function(){return a}});var n=i(31572);let s=(()=>{class t{constructor(t){this.elementRef=t}ngOnInit(){this.elementRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq))},t.\u0275dir=n.lG2({type:t,selectors:[["","perunWebAppsAutoFocus",""]]}),t})();var o=i(68416);let r=(()=>{class t{constructor(t,e){this.el=t,this.router=e}onClick(){this.router.forceNavigate(this.perunWebAppsForceRouterLink)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(o.xw))},t.\u0275dir=n.lG2({type:t,selectors:[["","perunWebAppsForceRouterLink",""]],hostBindings:function(t,e){1&t&&n.NdJ("click",function(){return e.onClick()})},inputs:{perunWebAppsForceRouterLink:"perunWebAppsForceRouterLink"}}),t})(),a=(()=>{class t{constructor(){}onClick(t){if(1===t.button&&null!=this.perunWebAppsMiddleClickRouterLink){const t=this.perunWebAppsMiddleClickRouterLink.join("/"),e=location.search;window.open(t+e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(t,e){1&t&&n.NdJ("mouseup",function(t){return e.onClick(t)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),t})()},14732:function(t,e,i){"use strict";i.d(e,{u:function(){return n},m:function(){return s}});var n=function(t){return t.PERUNADMIN="PERUNADMIN",t.PERUNOBSERVER="PERUNOBSERVER",t.VOADMIN="VOADMIN",t.GROUPADMIN="GROUPADMIN",t.SELF="SELF",t.FACILITYADMIN="FACILITYADMIN",t.FACILITIYOBSERVER="FACILITYOBSERVER",t.RESOURCEADMIN="RESOURCEADMIN",t.RESOURCESELFSERVICE="RESOURCESELFSERVICE",t.REGISTRAR="REGISTRAR",t.ENGINE="ENGINE",t.RPC="RPC",t.NOTIFICATIONS="NOTIFICATIONS",t.SERVICEUSER="SERVICEUSER",t.SPONSOR="SPONSOR",t.VOOBSERVER="VOOBSERVER",t.TOPGROUPCREATOR="TOPGROUPCREATOR",t.SECURITYADMIN="SECURITYADMIN",t.CABINETADMIN="CABINETADMIN",t.UNKNOWNROLENAME="UNKNOWNROLENAME",t}({});class s{constructor(t){this.id=t.id,this.name=t.name,this.parentGroupId=t.parentGroupId,this.voId=t.voId,this.shortName=t.shortName,this.description=t.description,this.attributes=t.attributes,this.beanName=t.beanName}addChild(t){null==this.children?this.children=[t]:this.children.push(t)}}},18820:function(t,e,i){"use strict";i.d(e,{E3:function(){return p},yT:function(){return g.y}});var n=i(61511),s=i(66283),o=i(36922),r=i(16073),a=i(80340),c=i(48160),l=i(67806),u=i(43691),h=i(22727),d=i(31572);let p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d.oAB({type:t}),t.\u0275inj=d.cJS({providers:[],imports:[[n.ez,s.lN,o.AV,r.UX,a.c,c.aw,l.Cq,u.Ps,h.r]]}),t})();var g=i(63618);i(90888)},90888:function(t,e,i){"use strict";i.d(e,{G:function(){return v}});var n=i(63618),s=i(68416),o=i(65249),r=i(31572),a=i(48160),c=i(16073),l=i(66283),u=i(36922),h=i(80340),d=i(61511),p=i(43691),g=i(39571),f=i(67806);function m(t,e){1&t&&r._UZ(0,"mat-spinner",12),2&t&&r.Q6J("diameter",18)}function b(t,e){if(1&t&&(r.TgZ(0,"mat-icon",13),r._uU(1," error "),r.qZA()),2&t){const t=r.oxw();r.Q6J("matTooltip",t.getErrorTooltip())("matTooltipDisabled",!t.formGroup.get("passwordCtrl").hasError("backendError"))}}function _(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function w(t,e){if(1&t&&(r.TgZ(0,"mat-error",14),r._uU(1),r.qZA()),2&t){const t=r.oxw();r.Q6J("matTooltip",t.getErrorTooltip()),r.xp6(1),r.Oqu(t.getErrorTooltip())}}function A(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function y(t,e){1&t&&(r.TgZ(0,"mat-error"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let v=(()=>{class t{constructor(t,e,i){this.translator=t,this.usersManagerService=e,this.store=i,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.multiLanguage=!1,this.language="en",this.allPasswordRequirements=this.store.get("password_requirements_help"),this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new n.S}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(t=>{const e=t.userAttributes.find(t=>"preferredLanguage"===t.friendlyName);this.language=e&&e.value?e.value.toString():"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 t=this.formGroup.get("passwordCtrl").getError("backendError");return t&&(t=t.replace(":null","")),t}changeHelp(){this.passwordRequirement=this.allPasswordRequirements.find(t=>t.split(":")[0]===this.namespace),this.passwordRequirement=void 0===this.passwordRequirement?this.allPasswordRequirements.find(t=>"default"===t.split(":")[0]).split(/:(.+)/)[1]:this.passwordRequirement.split(/:(.+)/)[1]}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(a.sK),r.Y36(o.Fv),r.Y36(s.d6))},t.\u0275cmp=r.Xpm({type:t,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",namespace:"namespace",multiLanguage:"multiLanguage",language:"language"},features:[r.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(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"mat-form-field",1),r._UZ(2,"input",2),r.ALo(3,"translate"),r.YNc(4,m,1,1,"mat-spinner",3),r.TgZ(5,"mat-icon",4),r.NdJ("click",function(){return e.showNewPassword=!e.showNewPassword}),r._uU(6),r.qZA(),r.YNc(7,b,2,2,"mat-icon",5),r.YNc(8,_,3,3,"mat-error",6),r.YNc(9,w,2,2,"mat-error",7),r.qZA(),r.TgZ(10,"mat-form-field",8),r.TgZ(11,"mat-label"),r._uU(12),r.ALo(13,"translate"),r.qZA(),r._UZ(14,"input",9),r.TgZ(15,"mat-icon",4),r.NdJ("click",function(){return e.showPasswordConfirm=!e.showPasswordConfirm}),r._uU(16),r.qZA(),r.YNc(17,A,3,3,"mat-error",6),r.YNc(18,y,3,3,"mat-error",6),r.qZA(),r.TgZ(19,"app-alert",10),r._UZ(20,"div",11),r.qZA(),r.qZA()),2&t&&(r.Q6J("formGroup",e.formGroup),r.xp6(1),r.Q6J("matTooltip",e.getPasswordDisabledTooltip())("matTooltipDisabled",e.formGroup.get("passwordCtrl").enabled),r.xp6(1),r.s9C("placeholder",r.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),r.Q6J("type",e.showNewPassword?"text":"password")("required",e.passwordRequired)("errorStateMatcher",e.passwordStateMatcher),r.xp6(2),r.Q6J("ngIf",e.formGroup.get("passwordCtrl").pending),r.xp6(2),r.hij(" ",e.showNewPassword?"visibility_off":"visibility"," "),r.xp6(1),r.Q6J("ngIf",e.formGroup.get("passwordCtrl").dirty&&null!==e.formGroup.get("passwordCtrl").errors),r.xp6(1),r.Q6J("ngIf",e.formGroup.get("passwordCtrl").hasError("required")),r.xp6(1),r.Q6J("ngIf",e.formGroup.get("passwordCtrl").hasError("backendError")),r.xp6(3),r.Oqu(r.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),r.xp6(2),r.Q6J("type",e.showPasswordConfirm?"text":"password")("required",e.passwordRequired),r.xp6(2),r.hij(" ",e.showPasswordConfirm?"visibility_off":"visibility"," "),r.xp6(1),r.Q6J("ngIf",e.formGroup.get("passwordAgainCtrl").hasError("required")),r.xp6(1),r.Q6J("ngIf",e.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),r.xp6(2),r.Q6J("innerHTML",e.passwordRequirement,r.oJD))},directives:[c.JL,c.sg,l.KE,u.gM,h.Nt,c.Fj,c.JJ,c.u,c.Q7,d.O5,p.Hw,l.R9,l.hX,g.w,f.$g,l.TO],pipes:[a.X$],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right}.error-icon[_ngcontent-%COMP%], .input-spinner[_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;display:block;margin-top:-1px}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple, [_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{position:static!important;display:table}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}"]}),t})()},63618:function(t,e,i){"use strict";i.d(e,{S:function(){return c},y:function(){return l}});var n=i(81110),s=i(40878),o=i(44689),r=i(79996),a=i(47727);class c{isErrorState(t){return!!(t&&t.invalid&&t.dirty)}}const l=(t,e,i,c=500)=>l=>(0,n.H)(c).pipe((0,o.w)(()=>(i.dontHandleErrorForNext(),t&&"No namespace"!==t?e.checkPasswordStrength(l.value,t):(0,s.of)(null))),(0,r.U)(()=>null),(0,a.K)(t=>(0,s.of)({backendError:t.error.message.substr(t.error.message.indexOf(":")+1)})))},65249:function(t,e,i){"use strict";i.d(e,{Us:function(){return I},au:function(){return M},H8:function(){return c},jw:function(){return l},Ct:function(){return u},VK:function(){return a},KG:function(){return p},IQ:function(){return g},ff:function(){return m},uq:function(){return _},aC:function(){return w},Hr:function(){return A},tk:function(){return y},xk:function(){return v},KK:function(){return T},Ob:function(){return C},Dy:function(){return D},Fv:function(){return E},FW:function(){return S},YF:function(){return k}});var n=i(29063);class s{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}var o=i(31572);const r=new o.OlP("basePath");class a{constructor(t={}){this.apiKeys=t.apiKeys,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.withCredentials=t.withCredentials,this.encoder=t.encoder}selectHeaderContentType(t){if(0===t.length)return;const e=t.find(t=>this.isJsonMime(t));return void 0===e?t[0]:e}selectHeaderAccept(t){if(0===t.length)return;const e=t.find(t=>this.isJsonMime(t));return void 0===e?t[0]:e}isJsonMime(t){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==t&&(e.test(t)||"application/json-patch+json"===t.toLowerCase())}}let c=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}convertAttributeToNonunique(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeDefinition",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}convertAttributeToUnique(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeDefinition",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}createAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("attribute",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteAttributeDefinitions(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllAttributeDefinitions(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAttribute(t,e,i,s,o,r,a,c,l,u,h,d="body",p=!1){let g=new n.LE({encoder:this.encoder});null!=t&&(g=g.set("attributeName",t)),null!=e&&(g=g.set("attributeId",e)),null!=i&&(g=g.set("facility",i)),null!=s&&(g=g.set("user",s)),null!=o&&(g=g.set("vo",o)),null!=r&&(g=g.set("resource",r)),null!=a&&(g=g.set("member",a)),null!=c&&(g=g.set("group",c)),null!=l&&(g=g.set("host",l)),null!=u&&(g=g.set("userExtSource",u)),null!=h&&(g=g.set("key",h));let f=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(f=f.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(f=f.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;f=f.set("Authorization","Bearer "+t)}const m=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==m&&(f=f.set("Accept",m)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{params:g,withCredentials:this.configuration.withCredentials,headers:f,observe:d,reportProgress:p})}getAttributeDefinitionById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAttributeDefinitionByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeName",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAttributeDefinitionsByNamespace(t,e="body",i=!1){if(null==t)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("namespace",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAttributeModulesDependenciesForAttributeGraphText(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("format",t)),null!=e&&(o=o.set("attrName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAttributeModulesDependenciesGraphText(t,e="body",i=!1){if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("format",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAttributeRights(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAttributesDefinitionWithRights(t,e,i,s,o,r,a,c,l="body",u=!1){let h=new n.LE({encoder:this.encoder});null!=t&&(h=h.set("member",t)),null!=e&&(h=h.set("user",e)),null!=i&&(h=h.set("vo",i)),null!=s&&(h=h.set("group",s)),null!=o&&(h=h.set("resource",o)),null!=r&&(h=h.set("facility",r)),null!=a&&(h=h.set("host",a)),null!=c&&(h=h.set("userExtSource",c));let d=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(d=d.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(d=d.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;d=d.set("Authorization","Bearer "+t)}const p=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==p&&(d=d.set("Accept",p)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{params:h,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:u})}getEntitylessAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("key",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getEntitylessAttributesByKey(t,e="body",i=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("key",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getEntitylessAttributesByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("attrName",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getEntitylessAttributesWithKeys(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("attrName",t)),e&&e.forEach(t=>{o=o.append("keys[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getEntitylessKeys(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeDefinition",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilityAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilityResourceUserMemberAttributes(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("user",i)),null!=s&&(a=a.set("member",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getFacilityUserAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupResourceAttributeById(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeId",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getGroupResourceAttributeByName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeName",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getGroupResourceAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getHostAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("host",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getHostAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("host",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getHostAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getHostAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("host",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getLogins(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getLogins.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMemberAndUserAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==e)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("workWithUserAttributes",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMemberAndUserAttributesByNames(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("workWithUserAttributes",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMemberAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMemberAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMemberGroupAndUserAttributesByNames(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("group",e)),i&&i.forEach(t=>{a=a.append("attrNames[]",t)}),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getMemberGroupAttributeById(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("attributeId",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberGroupAttributeByName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("attributeName",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberGroupAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMemberGroupAttributesByNames(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberResourceAndUserFacilityAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("workWithUserAttributes",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberResourceAndUserFacilityAttributesByNames(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("resource",e)),i&&i.forEach(t=>{a=a.append("attrNames[]",t)}),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getMemberResourceAttributeById(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeId",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberResourceAttributeByName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attributeName",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberResourceAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRequiredAttributesFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRequiredAttributesFacilityService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesFacilityServices(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let o=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("services[]",t)}),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesGroupResourceService(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("group",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRequiredAttributesHostService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==e)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("host",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesMember(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("workWithUserAttributes",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesMemberGroup(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("workWithUserAttributes",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRequiredAttributesMemberGroupResourceService(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let c=new n.LE({encoder:this.encoder});null!=t&&(c=c.set("service",t)),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("group",i)),null!=s&&(c=c.set("member",s)),null!=o&&(c=c.set("workWithUserAttributes",o));let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(l=l.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:a})}getRequiredAttributesMemberGroupService(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("group",e)),null!=i&&(a=a.set("member",i)),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getRequiredAttributesMemberResource(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("workWithUserAttributes",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRequiredAttributesMemberResourceService(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("member",i)),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getRequiredAttributesResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRequiredAttributesResourceService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesResourceServices(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let o=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("services[]",t)}),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRequiredAttributesUserFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRequiredAttributesVoService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("vo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getResourceAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceGroupAndGroupAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==i)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("workWithGroupAttributes",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getResourceGroupAndGroupAttributesByNames(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==s)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("resource",t)),null!=e&&(a=a.set("group",e)),i&&i.forEach(t=>{a=a.append("attrNames[]",t)}),null!=s&&(a=a.set("workWithGroupAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getResourceGroupAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceGroupMemberAttributesByNames(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("resource",t)),null!=e&&(a=a.set("group",e)),null!=i&&(a=a.set("member",i)),s&&s.forEach(t=>{a=a.append("attrNames[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getUserAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUserAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserExtSourceAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("userExtSource",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserExtSourceAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("userExtSource",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserExtSourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUserExtSourceAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("userExtSource",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserFacilityAttributeById(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("attributeId",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getUserFacilityAttributeByName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("attributeName",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getUserFacilityAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getVoAttributeById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getVoAttributeByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("attributeName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getVoAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeAttributesForFacilityResourceGroupUserMember(t,e,i,s,o,r,a="body",c=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==i)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)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==r)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let l=new n.LE({encoder:this.encoder});null!=t&&(l=l.set("facility",t)),null!=e&&(l=l.set("resource",e)),null!=i&&(l=l.set("group",i)),null!=s&&(l=l.set("user",s)),null!=o&&(l=l.set("member",o)),r&&r.forEach(t=>{l=l.append("attributes[]",t)});let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{params:l,withCredentials:this.configuration.withCredentials,headers:u,observe:a,reportProgress:c})}removeAttributesForFacilityResourceUserMember(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==i)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==s)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 c=new n.LE({encoder:this.encoder});null!=t&&(c=c.set("facility",t)),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("user",i)),null!=s&&(c=c.set("member",s)),o&&o.forEach(t=>{c=c.append("attributes[]",t)});let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(l=l.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:a})}removeEntitylessAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("key",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupResourceAttribute(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attribute",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeGroupResourceAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeGroupResourceAttributesWorkWithGroupAttributes(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==s)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),null!=e&&(a=a.set("resource",e)),i&&i.forEach(t=>{a=a.append("attributes[]",t)}),null!=s&&(a=a.set("workWithGroupAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}removeHostAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("host",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeHostAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("host",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeMemberAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeMemberAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeMemberAttributesWorkWithUserAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(t=>{r=r.append("attributes[]",t)}),null!=i&&(r=r.set("workWithUserAttributes",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeMemberGroupAttribute(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("attribute",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeMemberGroupAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeMemberGroupAttributesWorkWithUserAttributes(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("group",e)),i&&i.forEach(t=>{a=a.append("attributes[]",t)}),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}removeMemberResourceAttribute(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("attribute",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeMemberResourceAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeResourceAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeResourceAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeUesAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("userExtSource",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeUserAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeUserAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeUserExtSourceAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("userExtSource",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeUserFacilityAttribute(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("attribute",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeUserFacilityAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeVoAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("attribute",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeVoAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}setAttributeRights(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAttributeRights was null or undefined when calling setAttributeRights.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setEntitylessAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityResourceGroupUserMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityResourceUserMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setHostAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetHostAttribute was null or undefined when calling setHostAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setHostAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetHostAttributes was null or undefined when calling setHostAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupWithUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAndUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberWithUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceGroupWithGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserAttribute was null or undefined when calling setUserAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserAttributes was null or undefined when calling setUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserExtSourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserExtSourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserFacilityAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setVoAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoAttribute was null or undefined when calling setVoAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setVoAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoAttributes was null or undefined when calling setVoAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),l=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}auditMessagesManagerLog(t,e="body",i=!1){if(null==t)throw new Error("Required parameter msg was null or undefined when calling auditMessagesManagerLog.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("msg",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/log`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}createAuditerConsumer(t,e="body",i=!1){if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling createAuditerConsumer.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("consumerName",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/createAuditerConsumer`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllAuditerConsumers(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getAllAuditerConsumers`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAuditerMessagesCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getAuditerMessagesCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getLastMessageId(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getLastMessageId`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getMessages(t,e="body",i=!1){let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("count",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getMessages`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMessagesByCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter count was null or undefined when calling getMessagesByCount.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("count",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getMessagesByCount`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMessagesPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetMessagesPage was null or undefined when calling getMessagesPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/auditMessagesManager/getMessagesPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}pollConsumerMessages(t,e="body",i=!1){if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling pollConsumerMessages.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("consumerName",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/pollConsumerMessages`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}setLastProcessedId(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling setLastProcessedId.");if(null==e)throw new Error("Required parameter lastProcessedId was null or undefined when calling setLastProcessedId.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("consumerName",t)),null!=e&&(o=o.set("lastProcessedId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/setLastProcessedId`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),u=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}getAllPolicies(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllRolesManagementRules(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAuthzAdminGroups(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("role",t)),null!=e&&(r=r.set("complementaryObjectId",e)),null!=i&&(r=r.set("complementaryObjectName",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAuthzRichAdmins(t,e,i,s,o,r,a="body",c=!1){if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==s)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let l=new n.LE({encoder:this.encoder});null!=t&&(l=l.set("role",t)),null!=e&&(l=l.set("complementaryObjectId",e)),null!=i&&(l=l.set("complementaryObjectName",i)),s&&s.forEach(t=>{l=l.append("specificAttributes",t)}),null!=o&&(l=l.set("allUserAttributes",o)),null!=r&&(l=l.set("onlyDirectAdmins",r));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{params:l,withCredentials:this.configuration.withCredentials,headers:u,observe:a,reportProgress:c})}getFacilitiesWhereUserIsInRoles(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let o=new n.LE({encoder:this.encoder});null!=e&&(o=o.set("user",e)),t&&t.forEach(t=>{o=o.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupRoleNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupRoles(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("groupId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupsWhereUserIsInRoles(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let o=new n.LE({encoder:this.encoder});null!=e&&(o=o.set("user",e)),t&&t.forEach(t=>{o=o.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getLoggedUser(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getMembersWhereUserIsInRoles(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let o=new n.LE({encoder:this.encoder});null!=e&&(o=o.set("user",e)),t&&t.forEach(t=>{o=o.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getPerunPrincipal(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPrincipalRoleNames(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getResourcesWhereUserIsInRoles(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let o=new n.LE({encoder:this.encoder});null!=e&&(o=o.set("user",e)),t&&t.forEach(t=>{o=o.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getSecurityTeamsWhereUserIsInRoles(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let o=new n.LE({encoder:this.encoder});null!=e&&(o=o.set("user",e)),t&&t.forEach(t=>{o=o.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserRoleNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUserRoles(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("userId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVosWhereUserIsInRoles(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let o=new n.LE({encoder:this.encoder});null!=e&&(o=o.set("user",e)),t&&t.forEach(t=>{o=o.append("roles[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}isFacilityAdmin(t,e="body",i=!1){let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}isGroupAdmin(t,e="body",i=!1){let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}isPerunAdmin(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}isVoAdmin(t,e="body",i=!1){let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}keepAlive(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}loadAuthorizationComponents(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}setRoleWithGroupComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter setRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setRoleWithUserComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter setRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unsetRoleWithGroupComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter unsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unsetRoleWithUserComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter unsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),h=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}createAutorship(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateAuthorship was null or undefined when calling createAutorship.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createAuthorship`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createCategoryCat(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateCategory was null or undefined when calling createCategoryCat.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/cat`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createCategoryNR(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateCategory1 was null or undefined when calling createCategoryNR.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/n-r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createPublication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreatePublication was null or undefined when calling createPublication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublication`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createPublicationSystem(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreatePublicationSystem was null or undefined when calling createPublicationSystem.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublicationSystem`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createThanks(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateThanks was null or undefined when calling createThanks.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createThanks`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAuthorship(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter publicationId was null or undefined when calling deleteAuthorship.");if(null==e)throw new Error("Required parameter userId was null or undefined when calling deleteAuthorship.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("publicationId",t)),null!=e&&(o=o.set("userId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteAuthorship`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteCategory(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteCategory.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteCategory`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deletePublication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deletePublication.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublication`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deletePublicationSystem(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deletePublicationSystem.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublicationSystem`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteThanks(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteThanks.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteThanks`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}findAllAuthors(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAllAuthors`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}findAuthorsByPublicationId(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findAuthorsByPublicationId.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAuthorsByPublicationId`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}findExternalPublications(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling findExternalPublications.");if(null==e)throw new Error("Required parameter yearSince was null or undefined when calling findExternalPublications.");if(null==i)throw new Error("Required parameter yearTill was null or undefined when calling findExternalPublications.");if(null==s)throw new Error("Required parameter pubSysNamespace was null or undefined when calling findExternalPublications.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("user",t)),null!=e&&(a=a.set("yearSince",e)),null!=i&&(a=a.set("yearTill",i)),null!=s&&(a=a.set("pubSysNamespace",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findExternalPublications`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}findNewAuthors(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findNewAuthors.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("searchString",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findNewAuthors`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}findPublicationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findPublicationById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}findPublicationsByFilter(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter userId was null or undefined when calling findPublicationsByFilter.");let r=new n.LE({encoder:this.encoder});null!=e&&(r=r.set("yearSince",e)),null!=i&&(r=r.set("yearTill",i)),null!=t&&(r=r.set("userId",t));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByFilter`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}findPublicationsByGUIFilter(t,e,i,s,o,r,a,c,l,u="body",h=!1){let d=new n.LE({encoder:this.encoder});null!=t&&(d=d.set("title",t)),null!=e&&(d=d.set("isbn",e)),null!=i&&(d=d.set("doi",i)),null!=s&&(d=d.set("id",s)),null!=o&&(d=d.set("year",o)),null!=r&&(d=d.set("category",r)),null!=a&&(d=d.set("yearSince",a)),null!=c&&(d=d.set("yearTill",c)),null!=l&&(d=d.set("userId",l));let p=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(p=p.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(p=p.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;p=p.set("Authorization","Bearer "+t)}const g=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==g&&(p=p.set("Accept",g)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByGUIFilter`,{params:d,withCredentials:this.configuration.withCredentials,headers:p,observe:u,reportProgress:h})}findSimilarPublications(t,e,i,s="body",o=!1){let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("title",t)),null!=e&&(r=r.set("doi",e)),null!=i&&(r=r.set("isbn",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findSimilarPublications`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getCategories(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getCategories`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPublicationSystems(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getPublicationSystems`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getRank(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRank.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getRank`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichThanksByPublicationId(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichThanksByPublicationId.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getRichThanksByPublicationId`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}lockPublications(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputLockPublications was null or undefined when calling lockPublications.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/lockPublications`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateCategory(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateCategory was null or undefined when calling updateCategory.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updateCategory`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updatePublication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdatePublication was null or undefined when calling updatePublication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublication`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updatePublicationSystem(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdatePublicationSystem was null or undefined when calling updatePublicationSystem.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublicationSystem`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),d=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}getCurrentDatabaseVersion(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getCurrentDatabaseVersion`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getDatabaseDriverInformation(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getDatabaseDriverInformation`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getDatabaseInformation(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getDatabaseInformation`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getTimeOfQueryPerformance(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getTimeOfQueryPerformance`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),p=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addExtSourceWithGroupSource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling addExtSourceWithGroupSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithGroupSource.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("source",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/g-s`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addExtSourceWithVoSource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addExtSourceWithVoSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithVoSource.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("source",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/v-s`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createExtSourceFromExtSourceObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter extSourceObject was null or undefined when calling createExtSourceFromExtSourceObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/extSourcesManager/createExtSource/es`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createExtSourceWithNameType(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createExtSourceWithNameType.");if(null==e)throw new Error("Required parameter type was null or undefined when calling createExtSourceWithNameType.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("name",t)),null!=e&&(o=o.set("type",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/createExtSource/n-t`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteExtSource.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/deleteExtSource`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getExtSourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getExtSourceById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getExtSourceByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getExtSourceByName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("name",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceByName`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getExtSources(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSources`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getGroupExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupExtSources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getGroupExtSources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoExtSources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getVoExtSources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}loadExtSourcesDefinitions(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/loadExtSourcesDefinitions`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeExtSourceWithGroupSource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeExtSourceWithGroupSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithGroupSource.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("source",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/g-s`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeExtSourceWithVoSource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeExtSourceWithVoSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithVoSource.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("source",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/v-s`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),g=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addFacilityAdminGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addFacilityAdminGroupByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroupByFacilityName.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroupByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addFacilityAdminUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addFacilityAdminUserByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUserByFacilityName.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUserByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addFacilityOwner(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwner.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwner.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addFacilityOwnerByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addFacilityOwnerByFacilityNameOwnerName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-o-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addFacilityOwnerByOwnerName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByOwnerName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/o-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addHost(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHost.");if(null==e)throw new Error("Required parameter hostname was null or undefined when calling addHost.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("hostname",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addHostByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHostByFacilityName.");if(null==e)throw new Error("Required parameter hostname was null or undefined when calling addHostByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("hostname",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addHosts(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHosts.");if(null==e)throw new Error("Required parameter hostnames was null or undefined when calling addHosts.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("hostnames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addHostsByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHostsByFacilityName.");if(null==e)throw new Error("Required parameter hostnames was null or undefined when calling addHostsByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("hostnames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}assignSecurityTeam(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeam.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeam.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("securityTeam",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}assignSecurityTeamByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeamByFacilityName.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeamByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("securityTeam",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributes.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacility",t)),null!=e&&(o=o.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyAttributesByDestinationName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributesByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesByDestinationName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacility",t)),null!=e&&(o=o.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/dest-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyAttributesBySourceDestinationNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacilityName",t)),null!=e&&(o=o.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-dest-names`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyAttributesBySourceName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributesBySourceName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacilityName",t)),null!=e&&(o=o.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyManagers(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagers.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyManagers.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacility",t)),null!=e&&(o=o.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyManagersByDestinationName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagersByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersByDestinationName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacility",t)),null!=e&&(o=o.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/dest-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyManagersBySourceDestinationNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacilityName",t)),null!=e&&(o=o.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-dest-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyManagersBySourceName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyManagersBySourceName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacilityName",t)),null!=e&&(o=o.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyOwners(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwners.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyOwners.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacility",t)),null!=e&&(o=o.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyOwnersByDestinationName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwnersByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersByDestinationName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacility",t)),null!=e&&(o=o.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/dest-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyOwnersBySourceDestinationNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacilityName",t)),null!=e&&(o=o.set("destFacilityName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-dest-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyOwnersBySourceName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyOwnersBySourceName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("srcFacilityName",t)),null!=e&&(o=o.set("destFacility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("name",t)),null!=e&&(o=o.set("description",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/createFacility`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling deleteFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling deleteFacilityByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilities`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllowedGroups(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroups.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("service",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAllowedGroupsByFacilityName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroupsByFacilityName.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("service",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups/f-name`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAllowedRichGroupsWithAttributes(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributes.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributes.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),e&&e.forEach(t=>{a=a.append("attrNames[]",t)}),null!=i&&(a=a.set("vo",i)),null!=s&&(a=a.set("service",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getAllowedRichGroupsWithAttributesByFacilityName(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),e&&e.forEach(t=>{a=a.append("attrNames[]",t)}),null!=i&&(a=a.set("vo",i)),null!=s&&(a=a.set("service",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes/f-name`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getAllowedUsersOfFacility(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacility.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("service",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAllowedUsersOfFacilityByFacilityName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacilityByFacilityName.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("service",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s/f-name`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAllowedVos(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedVos.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllowedVosByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedVosByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedFacilitiesByGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedFacilitiesByGroup.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/group`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedFacilitiesByMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedFacilitiesByMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/member`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedFacilitiesByService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedFacilitiesByService.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/service`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedFacilitiesByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedFacilitiesByUser.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/user`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedResourcesByAssignedServiceForFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResourcesByAssignedService`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAssignedResourcesForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedResourcesForFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacilityByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedRichResourcesForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedRichResourcesForFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedSecurityTeams(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeams.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedSecurityTeamsByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeamsByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedUsers(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsers.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAssignedUsersByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsersByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers/f-name`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getBansForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facilityId was null or undefined when calling getBansForFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facilityId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForFacility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getBansForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getBansForUser.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForUser`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getEnrichedFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedFacilities`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getEnrichedHosts(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedHosts.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getEnrichedHosts.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedHosts`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilitiesByAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttribute.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("attributeName",t)),null!=e&&(o=o.set("attributeValue",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByAttribute`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilitiesByDestination(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling getFacilitiesByDestination.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("destination",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByDestination`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilitiesByHostName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling getFacilitiesByHostName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("hostname",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByHostName`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilitiesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getFacilitiesByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilitiesCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFacilitiesWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilitiesWhereUserIsAdmin.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesWhereUserIsAdmin`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityAdminGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroups.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityAdminUsers(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsers.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsers.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("onlyDirectAdmins",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilityAdminUsersByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsersByFacilityName.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsersByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("onlyDirectAdmins",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins/f-name`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilityBan(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityBan.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityBan.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBan`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacilityBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getFacilityBanById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("banId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBanById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getFacilityById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getFacilityByName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("name",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityByName`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityForHost(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getFacilityForHost.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityForHost`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityOwners(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwners.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityOwnersByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwnersByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getHostById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getHostById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getHosts(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHosts.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getHostsByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getHostsByHostname(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling getHostsByHostname.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("hostname",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsByHostname`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getHostsCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsCount.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getHostsCountByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsCountByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getOwnerFacilities(t,e="body",i=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling getOwnerFacilities.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("owner",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwnerFacilities`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getRichFacilities`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeBanByUserIdFacilityId(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeBanByUserIdFacilityId.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeBanByUserIdFacilityId.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byUserIdFacilityId`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityAdminGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityAdminGroupByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroupByFacilityName.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroupByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityAdminUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityAdminUserByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUserByFacilityName.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUserByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeFacilityBanById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("banId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byId`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeFacilityOwner(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwner.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwner.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityOwnerByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityOwnerByFacilityNameOwnerName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-o-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeFacilityOwnerByOwnerName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByOwnerName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("owner",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/o-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeHost(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHost.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHost`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeHostByHostname(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling removeHostByHostname.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("hostname",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHostByHostname`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeHosts(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeHosts.");if(null==e)throw new Error("Required parameter hosts was null or undefined when calling removeHosts.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("hosts[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeHostsByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeHostsByFacilityName.");if(null==e)throw new Error("Required parameter hosts was null or undefined when calling removeHostsByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("hosts[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeSecurityTeam(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeam.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeam.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("securityTeam",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeSecurityTeamByFacilityName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeamByFacilityName.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeamByFacilityName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("securityTeam",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam/f-name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}setFacilityBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetBanForUserOnFacility was null or undefined when calling setFacilityBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFacility was null or undefined when calling updateFacility.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateFacility`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFacilityBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateBanForFacility was null or undefined when calling updateFacilityBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),f=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}getFacilityAdminGroupsByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroupsByFacilityName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),m=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addMember(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling addMember.");let o=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("groups[]",t)}),null!=e&&(o=o.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addMembers(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling addMembers.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("members[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}canExtendMembershipInGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createGroupUnion(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resultGroup",t)),null!=e&&(o=o.set("operandGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createGroupWithParentGroupNameDescription(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("parentGroup",t)),null!=e&&(r=r.set("name",e)),null!=i&&(r=r.set("description",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}createGroupWithVoNameDescription(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("name",e)),null!=i&&(r=r.set("description",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}deleteGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputDeleteGroups was null or undefined when calling deleteGroups.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/deleteGroups`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}extendMembershipInGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}forceAllSubGroupsSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}forceGroupStructureSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}forceGroupSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllGroupsFromAllVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups/all`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllMemberGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllRichGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllRichGroupsWithAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAllRichSubGroupsWithGroupAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==e)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("name",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupByName`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupMemberById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==e)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupMembersCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupMembersCountsByGroupStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupMembersCountsByVoStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupRichMembersByIds(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==e)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(t=>{r=r.append("members[]",t)}),i&&i.forEach(t=>{r=r.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getGroupUnions(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==e)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("reverseDirection",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupUnions`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupsByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupsPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedGroups was null or undefined when calling getGroupsPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getGroupsPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getIndirectMembershipPaths(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMemberGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMemberRichGroupsWithAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRichGroupByIdWithAttributesByNames(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("groupId",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getSubgroupsPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getSubgroupsPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}isGroupMember(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==e)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isGroupMember`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}moveGroupWithDestinationGroupMovingGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let o=new n.LE({encoder:this.encoder});null!=e&&(o=o.set("destinationGroup",e)),null!=t&&(o=o.set("movingGroup",t));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupUnion(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resultGroup",t)),null!=e&&(o=o.set("operandGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeMember(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMember.");let o=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("groups[]",t)}),null!=e&&(o=o.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeMembers(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("members[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}setGroupsMemberStatus(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==e)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==i)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("status",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}updateGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateGroup was null or undefined when calling updateGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/updateGroup`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),b=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}getGroupMemberData(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/integrationManager/getGroupMemberData`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),_=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}canExtendMembership(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/canExtendMembership`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}createMemberForCandidate(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/c`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createMemberForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberForUser was null or undefined when calling createMemberForUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createMemberFromExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/extSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSpecificMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSpecificMember was null or undefined when calling createSpecificMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSpecificMember`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMember1 was null or undefined when calling createSponsoredMembers.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMembersFromCSV(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("members[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}extendMembership(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}findCompleteRichMembersByAttributes(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let r=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{r=r.append("attrsNames[]",t)}),null!=e&&(r=r.set("searchString",e)),i&&i.forEach(t=>{r=r.append("allowedStatuses[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}findCompleteRichMembersForGroup(t,e,i,s,o,r,a="body",c=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==s)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let l=new n.LE({encoder:this.encoder});null!=t&&(l=l.set("group",t)),e&&e.forEach(t=>{l=l.append("attrsNames[]",t)}),o&&o.forEach(t=>{l=l.append("allowedStatuses[]",t)}),r&&r.forEach(t=>{l=l.append("allowedGroupStatuses[]",t)}),null!=i&&(l=l.set("searchString",i)),null!=s&&(l=l.set("lookingInParentGroup",s));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`,{params:l,withCredentials:this.configuration.withCredentials,headers:u,observe:a,reportProgress:c})}findCompleteRichMembersForVo(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),e&&e.forEach(t=>{a=a.append("attrsNames[]",t)}),s&&s.forEach(t=>{a=a.append("allowedStatuses[]",t)}),null!=i&&(a=a.set("searchString",i));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}findMembersInVo(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("searchString",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findMembersInVo`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}findSponsoredCompleteRichMembersForVo(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==s)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),e&&e.forEach(t=>{a=a.append("attrsNames[]",t)}),null!=i&&(a=a.set("searchString",i)),null!=s&&(a=a.set("onlySponsored",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getAllMembers(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllMembers`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllNamespacesRules(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllSponsoredMembersAndTheirSponsors(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getCompleteRichMembersForGroup(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let c=new n.LE({encoder:this.encoder});null!=t&&(c=c.set("group",t)),i&&i.forEach(t=>{c=c.append("allowedStatuses[]",t)}),s&&s.forEach(t=>{c=c.append("allowedGroupStatuses[]",t)}),null!=e&&(c=c.set("lookingInParentGroup",e)),o&&o.forEach(t=>{c=c.append("attrsNames[]",t)});let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(l=l.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`,{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:a})}getCompleteRichMembersForGroupResource(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==i)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==s)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),null!=e&&(a=a.set("resource",e)),i&&i.forEach(t=>{a=a.append("attrsNames[]",t)}),s&&s.forEach(t=>{a=a.append("allowedStatuses[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getCompleteRichMembersForVo(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("allowedStatuses[]",t)}),i&&i.forEach(t=>{r=r.append("attrsNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberByExtSourceNameAndExtLogin(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==i)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("extLogin",e)),null!=i&&(r=r.set("extSourceName",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMemberByUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByUser`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMembers(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("status",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembers`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getMembersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMembersByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByUser`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMembersCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getMembersPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedMembers was null or undefined when calling getMembersPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/getMembersPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getMembersWithStatusCount(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==e)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("status",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount/status`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getRichMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichMemberWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichMembersByIds(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let o=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("ids[]",t)}),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getSponsoredMembersAndTheirSponsors(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getSponsorsByMember(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/member`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getSponsorsByVo(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("extSourceName",e)),null!=i&&(a=a.set("extLogin",i)),s&&s.forEach(t=>{a=a.append("attrNames[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/vo`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}moveMembership(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==e)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==i)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("sourceUser",e)),null!=i&&(r=r.set("targetUser",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeSponsor(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("sponsor",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}sendAccountActivationLinkEmail(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==s)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("emailAttributeURN",i)),null!=s&&(a=a.set("language",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}sendPasswordResetLinkEmail(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==s)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let c=new n.LE({encoder:this.encoder});null!=t&&(c=c.set("member",t)),null!=e&&(c=c.set("namespace",e)),null!=i&&(c=c.set("emailAttributeURN",i)),null!=s&&(c=c.set("language",s)),null!=o&&(c=c.set("baseUrl",o));let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(l=l.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:a})}setSponsoredMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/setSponsoredMember`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setSponsorshipForMember(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("sponsoredMember",t)),null!=e&&(r=r.set("sponsor",e)),null!=i&&(r=r.set("validityTo",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}setStatus(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==e)throw new Error("Required parameter status was null or undefined when calling setStatus.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("status",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}sponsorMember(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("sponsor",e)),null!=i&&(r=r.set("validityTo",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}updateSponsorshipValidity(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("sponsor",e)),null!=i&&(r=r.set("validityTo",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}validateMemberAsync(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),w=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}createOwner(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateOwner was null or undefined when calling createOwner.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/ownersManager/createOwner`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteOwner(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("owner",t)),null!=e&&(o=o.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAllOwners(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwners`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getOwnerById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getOwnerByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("owner",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerByName`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),A=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}sentMessageToRTWithMemberQueue(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==s)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("memberId",t)),null!=e&&(a=a.set("queue",e)),null!=i&&(a=a.set("subject",i)),null!=s&&(a=a.set("text",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}sentMessageToRTWithQueue(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("queue",t)),null!=e&&(r=r.set("subject",e)),null!=i&&(r=r.set("text",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}sentMessageToRTWithVo(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("voId",t)),null!=e&&(r=r.set("subject",e)),null!=i&&(r=r.set("text",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}sentMessageToRTWithVoQueue(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==s)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("voId",t)),null!=e&&(a=a.set("queue",e)),null!=i&&(a=a.set("subject",i)),null!=s&&(a=a.set("text",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),y=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addApplicationMailForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addApplicationMailForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addGroupsToAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}approveApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}checkForSimilarUsersWithAuthInfo(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}consolidateIdentityUsingToken(t,e="body",i=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("token",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}copyFormFromGroupToGroup(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("fromGroup",t)),null!=e&&(o=o.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyFormFromGroupToVo(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("fromGroup",t)),null!=e&&(o=o.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyFormFromVoToGroup(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("fromVo",t)),null!=e&&(o=o.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyFormFromVoToVo(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("fromVo",t)),null!=e&&(o=o.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyMailsFromGroupToGroup(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("fromGroup",t)),null!=e&&(o=o.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyMailsFromGroupToVo(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("fromGroup",t)),null!=e&&(o=o.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyMailsFromVoToGroup(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("fromVo",t)),null!=e&&(o=o.set("toGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyMailsFromVoToVo(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("fromVo",t)),null!=e&&(o=o.set("toVo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createApplicationFormInGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}createApplicationFormInVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteApplicationMailForGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("id",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteApplicationMailForVo(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("id",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteGroupsFromAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getApplicationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getApplicationDataById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getApplicationMailsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getApplicationMailsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getApplicationsForGroup(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),e&&e.forEach(t=>{a=a.append("state[]",t)}),null!=i&&(a=a.set("dateFrom",i)),null!=s&&(a=a.set("dateTo",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getApplicationsForMember(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getApplicationsForVo(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),e&&e.forEach(t=>{a=a.append("state[]",t)}),null!=i&&(a=a.set("dateFrom",i)),null!=s&&(a=a.set("dateTo",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getConsolidatorToken(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFormItemsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFormItemsForGroupWithType(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("type",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFormItemsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFormItemsForVoWithType(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("type",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupApplicationForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupsToAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoApplicationForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}rejectApplication(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("id",t)),null!=e&&(o=o.set("reason",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}sendInvitation(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let a=new n.LE({encoder:this.encoder});null!=i&&(a=a.set("voId",i)),null!=s&&(a=a.set("name",s)),null!=t&&(a=a.set("email",t)),null!=e&&(a=a.set("language",e));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}sendInvitationForGroup(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let c=new n.LE({encoder:this.encoder});null!=i&&(c=c.set("voId",i)),null!=s&&(c=c.set("groupId",s)),null!=o&&(c=c.set("name",o)),null!=t&&(c=c.set("email",t)),null!=e&&(c=c.set("language",e));let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(l=l.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:a})}sendInvitationGroupToExistingUser(t,e,i,s="body",o=!1){let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("userId",t)),null!=e&&(r=r.set("voId",e)),null!=i&&(r=r.set("groupId",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}sendInvitationToExistingUser(t,e,i="body",s=!1){let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("userId",t)),null!=e&&(o=o.set("voId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}sendMessage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSendMessage was null or undefined when calling sendMessage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setSendingEnabled(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}submitApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSubmitApplication was null or undefined when calling submitApplication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateApplicationMail(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateForm was null or undefined when calling updateForm.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemData(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputFormItemData was null or undefined when calling updateFormItemData.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsData(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputFormItemData1 was null or undefined when calling updateFormItemsData.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}verifyApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),v=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}activateGroupResourceAssignment(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("async",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}addAdminToGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addAdminToUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addResourceSelfServiceGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addResourceSelfServiceUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}allowGroupsToResources(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");let r=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{r=r.append("groups[]",t)}),e&&e.forEach(t=>{r=r.append("resources[]",t)}),null!=i&&(r=r.set("async",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}assignGroupToResource(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let c=new n.LE({encoder:this.encoder});null!=t&&(c=c.set("group",t)),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("async",i)),null!=s&&(c=c.set("assignInactive",s)),null!=o&&(c=c.set("autoAssignSubgroups",o));let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(l=l.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:a})}assignGroupToResources(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let c=new n.LE({encoder:this.encoder});null!=t&&(c=c.set("group",t)),e&&e.forEach(t=>{c=c.append("resources[]",t)}),null!=i&&(c=c.set("async",i)),null!=s&&(c=c.set("assignInactive",s)),null!=o&&(c=c.set("autoAssignSubgroups",o));let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(l=l.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:a})}assignGroupsToResource(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let c=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{c=c.append("groups[]",t)}),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("async",i)),null!=s&&(c=c.set("assignInactive",s)),null!=o&&(c=c.set("autoAssignSubgroups",o));let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(l=l.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:a})}assignResourceTagToResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}assignService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling assignService.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}assignServices(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling assignServices.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),e&&e.forEach(t=>{o=o.append("services[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}assignServicesPackage(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("servicesPackage",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}copyResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCopyResource was null or undefined when calling copyResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/copyResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createResource(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==i)throw new Error("Required parameter name was null or undefined when calling createResource.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("facility",e)),null!=i&&(a=a.set("name",i)),null!=s&&(a=a.set("description",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}createResourceTagWithResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createResourceTagWithTagName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("tagName",t)),null!=e&&(o=o.set("vo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deactivateGroupResourceAssignment(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteAllResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteAllResourcesTagsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}deleteResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAdminGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAdmins(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("onlyDirectAdmins",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdmins`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAllResourcesByResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAllResourcesTagsForResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllResourcesTagsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllResourcesWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllowedMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllowedResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllowedUsersOfResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedGroups(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("member",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAssignedMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedMembersWithStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembersWithStatus`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedResourcesWithGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedResourcesWithMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedResourcesWithStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResourcesWithStatus`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedRichMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedRichResourcesWithGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedRichResourcesWithMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedRichResourcesWithMemberService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAssignedServicesToResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getBansForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getBansForResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForResource`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getEnrichedResourceById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("id",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getEnrichedResourcesForFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getEnrichedResourcesForVo(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getFacility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupAssignments(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceAssignments(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceBan(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBan`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourceBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("banId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBanById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getResourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getResourceByName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==i)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("name",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceByName`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getResourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getResourcesCountForAll(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getResourcesCountForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getResourcesFromVoWhereUserIsAdmin(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getResourcesWhereGroupIsAdmin(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("group",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getResourcesWhereUserIsAdmin(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("vo",e)),null!=i&&(r=r.set("user",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRichAdmins(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==e)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==i)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==s)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("resource",t)),e&&e.forEach(t=>{a=a.append("specificAttributes",t)}),null!=i&&(a=a.set("allUserAttributes",i)),null!=s&&(a=a.set("onlyDirectAdmins",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getRichResourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichResourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getVo.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeAllResourceTagsFromResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeBanByMemberAndResource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupAdminResource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupFromResource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupFromResources(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("resources[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeGroupsFromResource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let o=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("groups[]",t)}),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeResourceBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("banId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeResourceSelfServiceGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeResourceSelfServiceUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeResourceTagFromResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}removeService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeService.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeServices(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling removeServices.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),e&&e.forEach(t=>{o=o.append("services[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeServicesPackage(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("servicesPackage",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeUserAdminResource(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}setResourceBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetBan was null or undefined when calling setResourceBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unallowGroupsFromResources(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let o=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("groups[]",t)}),e&&e.forEach(t=>{o=o.append("resources[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}updateResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateResource was null or undefined when calling updateResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateResourceBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateBan was null or undefined when calling updateResourceBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateResourceTag was null or undefined when calling updateResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),T=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addDestination(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addDestination.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling addDestination.");if(null==i)throw new Error("Required parameter destination was null or undefined when calling addDestination.");if(null==s)throw new Error("Required parameter type was null or undefined when calling addDestination.");let c=new n.LE({encoder:this.encoder});null!=t&&(c=c.set("service",t)),null!=e&&(c=c.set("facility",e)),null!=i&&(c=c.set("destination",i)),null!=s&&(c=c.set("type",s)),null!=o&&(c=c.set("propagationType",o));let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(l=l.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestination`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:a})}addDestinationToMultipleServices(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddDestinationToMultipleServices was null or undefined when calling addDestinationToMultipleServices.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestination`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addDestinationsDefinedByHostsOnFacilityWithFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/f`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddDestinationsDefinedByHostsOnFacility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestinationsDefinedByHostsOnFacility/lists-f`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/s-f`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addDestinationsForAllServicesOnFacility(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==i)throw new Error("Required parameter type was null or undefined when calling addDestinationsForAllServicesOnFacility.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),null!=e&&(a=a.set("destination",e)),null!=i&&(a=a.set("type",i)),null!=s&&(a=a.set("propagationType",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsForAllServicesOnFacility`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}addRequiredAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addRequiredAttribute.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling addRequiredAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttribute`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addRequiredAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addRequiredAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling addRequiredAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttributes`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addServiceToServicesPackage(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling addServiceToServicesPackage.");if(null==e)throw new Error("Required parameter service was null or undefined when calling addServiceToServicesPackage.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("servicesPackage",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addServiceToServicesPackage`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}blockAllServicesOnDestinationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("destination",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/d`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}blockAllServicesOnDestinationByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationByName.");if(null==e)throw new Error("Required parameter destinationType was null or undefined when calling blockAllServicesOnDestinationByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("destination",t)),null!=e&&(o=o.set("destinationType",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/dname-dtype`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}blockAllServicesOnFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling blockAllServicesOnFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnFacility`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}blockServiceOnDestination(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestination.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("destination",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-d`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}blockServiceOnDestinationWithNameAndType(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==i)throw new Error("Required parameter destinationType was null or undefined when calling blockServiceOnDestinationWithNameAndType.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("destination",e)),null!=i&&(r=r.set("destinationType",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-dname-dtype`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}blockServiceOnFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling blockServiceOnFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnFacility`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createService(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createService.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createService.");if(null==i)throw new Error("Required parameter script was null or undefined when calling createService.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("name",t)),null!=e&&(r=r.set("description",e)),null!=i&&(r=r.set("script",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createService`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}createServiceWithService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateService was null or undefined when calling createServiceWithService.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createService`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateServicesPackage was null or undefined when calling createServicesPackage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createServicesPackage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createServicesPackageByNameAndDescription(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createServicesPackageByNameAndDescription.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createServicesPackageByNameAndDescription.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("name",t)),null!=e&&(o=o.set("description",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createServicesPackage`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteService(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling deleteService.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteService`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling deleteServicesPackage.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("servicesPackage",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}forceServicePropagation(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling forceServicePropagation.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/forceServicePropagation`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAllDestinations(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/all`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllRichDestinationsForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllRichDestinationsForFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/f`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllRichDestinationsForService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getAllRichDestinationsForService.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/s`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedResources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedResourcesForService`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedServices(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedServices.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedServices`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getDataWithGroups(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getDataWithGroups.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDataWithGroups.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithGroups`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getDataWithVos(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getDataWithVos.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDataWithVos.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithVos`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getDestinationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getDestinationById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getDestinations(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDestinations.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/s-f`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getDestinationsCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationsCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFacilitiesDestinations(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFacilitiesDestinations.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilitiesDestinations`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityAssignedServicesForGUI(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAssignedServicesForGUI.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilityAssignedServicesForGUI`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFlatData(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getFlatData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFlatData.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFlatData`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getHashedDataWithGroups(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getHashedDataWithGroups.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHashedDataWithGroups.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedDataWithGroups`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getHashedHierarchicalData(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getHashedHierarchicalData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHashedHierarchicalData.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedHierarchicalData`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getHierarchicalData(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getHierarchicalData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHierarchicalData.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("filterExpiredMembers",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHierarchicalData`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRichDestinations(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRichDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRichDestinations.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getRichDestinations`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getServiceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getServiceById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServiceByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getServiceByName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("name",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceByName`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServices(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServices`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getServicesBlockedOnDestination(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling getServicesBlockedOnDestination.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("destination",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnDestination`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServicesBlockedOnFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getServicesBlockedOnFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnFacility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServicesByAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getServicesByAttributeDefinition.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeDefinition",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesByAttributeDefinition`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServicesFromServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesFromServicesPackage.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("servicesPackage",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesFromServicesPackage`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServicesPackageById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesPackageById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("servicesPackage",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServicesPackageByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getServicesPackageByName.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("name",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageByName`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getServicesPackages(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackages`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}isServiceBlockedOnDestination(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling isServiceBlockedOnDestination.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("destination",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnDestination`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}isServiceBlockedOnFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling isServiceBlockedOnFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnFacility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}planServicePropagation(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling planServicePropagation.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/planServicePropagation`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeAllDestinations(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeAllDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAllDestinations.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllDestinations`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeAllRequiredAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeAllRequiredAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllRequiredAttributes`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeDestination(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeDestination.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeDestination.");if(null==i)throw new Error("Required parameter destination was null or undefined when calling removeDestination.");if(null==s)throw new Error("Required parameter type was null or undefined when calling removeDestination.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("facility",e)),null!=i&&(a=a.set("destination",i)),null!=s&&(a=a.set("type",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeDestination`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}removeRequiredAttribute(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttribute.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling removeRequiredAttribute.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("attributeId",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttribute`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeRequiredAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeRequiredAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttributes`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeServiceFromServicesPackage(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServiceFromServicesPackage.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeServiceFromServicesPackage.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("servicesPackage",t)),null!=e&&(o=o.set("service",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeServiceFromServicesPackage`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}unblockAllServicesOnDestinationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("destination",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/d`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}unblockAllServicesOnDestinationByName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationByName.");if(null==e)throw new Error("Required parameter destinationType was null or undefined when calling unblockAllServicesOnDestinationByName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("destination",t)),null!=e&&(o=o.set("destinationType",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/dname-dtype`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}unblockAllServicesOnFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling unblockAllServicesOnFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnFacility`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}unblockServiceOnDestinationById(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationById.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationById.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("destination",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-d`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}unblockServiceOnDestinationByName(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationByName.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationByName.");if(null==i)throw new Error("Required parameter destinationType was null or undefined when calling unblockServiceOnDestinationByName.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("destination",e)),null!=i&&(r=r.set("destinationType",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-dname-dtype`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}unblockServiceOnFacility(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling unblockServiceOnFacility.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnFacility`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}updateService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateService was null or undefined when calling updateService.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateService`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateServicesPackage was null or undefined when calling updateServicesPackage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateServicesPackage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),C=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}countTasks(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/countTasks`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}deleteTask(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskIdObject was null or undefined when calling deleteTask.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTask`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteTaskResultById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskResultIdObject was null or undefined when calling deleteTaskResultById.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResultById`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteTaskResultsIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskAndDestinationIdObject was null or undefined when calling deleteTaskResultsIds.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/id`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteTaskResultsNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskAndDestinationNameObject was null or undefined when calling deleteTaskResultsNames.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/name`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAllFacilitiesStates(t,e="body",i=!1){let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllFacilitiesStates`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAllResourcesState(t,e="body",i=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling getAllResourcesState.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("voId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllResourcesState`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityServicesState(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityServicesState.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityServicesState`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getFacilityState(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityState.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityState`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getTask(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getTask.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getTask.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTask`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getTaskById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getTaskById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getTaskResultById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskResult was null or undefined when calling getTaskResultById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("taskResult",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getTaskResults(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResults`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getTaskResultsByTask(t,e="body",i=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsByTask.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("task",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsByTask`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getTaskResultsForDestinations(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destinations was null or undefined when calling getTaskResultsForDestinations.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("destinations[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForDestinations`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getTaskResultsForGUIByTask(t,e="body",i=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTask.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("task",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTask`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getTaskResultsForGUIByTaskAndDestination(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("task",t)),null!=e&&(o=o.set("destination",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskAndDestination`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getTaskResultsForGUIByTaskOnlyNewest(t,e="body",i=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskOnlyNewest.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("task",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskOnlyNewest`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}isThereSuchTask(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling isThereSuchTask.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling isThereSuchTask.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/isThereSuchTask`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}listAllTasks(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasks`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}listAllTasksForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling listAllTasksForFacility.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasksForFacility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}suspendTasksPropagation(t,e="body",i=!1){if(null==t)throw new Error("Required parameter suspend was null or undefined when calling suspendTasksPropagation.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("suspend",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/suspendTasksPropagation`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),E=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addSpecificUserOwner(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("specificUser",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addUserExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter addUserExtSourceInput was null or undefined when calling addUserExtSource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}anonymizeUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}changeNonAuthzPasswordByToken(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==e)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("token",t)),null!=e&&(r=r.set("password",e)),null!=i&&(r=r.set("lang",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changeNonAuthzPassword/token`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}changePasswordForLogin(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");let c=new n.LE({encoder:this.encoder});null!=t&&(c=c.set("login",t)),null!=e&&(c=c.set("namespace",e)),null!=i&&(c=c.set("newPassword",i)),null!=s&&(c=c.set("oldPassword",s)),null!=o&&(c=c.set("checkOldPassword",o));let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(l=l.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/login`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:a})}changePasswordForUser(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");let c=new n.LE({encoder:this.encoder});null!=t&&(c=c.set("user",t)),null!=e&&(c=c.set("namespace",e)),null!=i&&(c=c.set("newPassword",i)),null!=s&&(c=c.set("oldPassword",s)),null!=o&&(c=c.set("checkOldPassword",o));let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(l=l.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/user`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:a})}checkPasswordResetRequestByTokenIsValid(t,e="body",i=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("token",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}checkPasswordStrength(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("password",t)),null!=e&&(o=o.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createAlternativePassword(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==i)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==s)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("user",t)),null!=e&&(a=a.set("description",e)),null!=i&&(a=a.set("loginNamespace",i)),null!=s&&(a=a.set("password",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/createAlternativePassword`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}createServiceUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateServiceUser was null or undefined when calling createServiceUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAlternativePassword(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==i)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("loginNamespace",e)),null!=i&&(r=r.set("passwordId",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}deletePasswordForLogin(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("login",t)),null!=e&&(o=o.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deletePasswordForUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}deleteUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}findRichUsers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("searchString",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}findRichUsersWithAttributes(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("searchString",t)),e&&e.forEach(t=>{o=o.append("attrsNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}findUsers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("searchString",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}generateAccountForName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("namespace",t)),null!=e&&(o=o.set("name",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAllRichUsersWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("includedSpecificUsers",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getAssignedRichResourcesForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getGroupsForFacilityWhereUserIsActive(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupsForResourceWhereUserIsActive(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("resource",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupsInVoWhereUserIsAdmin(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("vo",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getGroupsWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getPendingPreferredEmailChanges(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichUserExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichUserWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichUsersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichUsersWithAttributesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getRichUsersWithoutVoWithAttributes(t,e="body",i=!1){let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("attrsNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getSpecificUsersByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getSponsorsForMember(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getSponsorsForMemberByVoAndLogin(t,e,i,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let a=new n.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("extSourceName",e)),null!=i&&(a=a.set("extLogin",i)),s&&s.forEach(t=>{a=a.append("attrNames[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getUserByExtSourceNameAndExtLogin(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("extLogin",t)),null!=e&&(o=o.set("extSourceName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getUserById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUserExtSourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUserExtSourceByUniqueAttributeValueAndAttributeId(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("attributeId",t)),null!=e&&(o=o.set("attributeValue",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserExtSourceByUniqueAttributeValueAndAttributeName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("attributeName",t)),null!=e&&(o=o.set("attributeValue",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getUserExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUserExtSourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUsers(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getUsersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUsersBySpecificUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("specificUser",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getUsersPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedUsers was null or undefined when calling getUsersPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getVosWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVosWhereUserIsMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}isLoginAvailable(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==e)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("loginNamespace",t)),null!=e&&(o=o.set("login",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}loginExist(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeSpecificUserOwner(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("specificUser",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeUserExtSource(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("userExtSource",e)),null!=i&&(r=r.set("force",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}requestPreferredEmailChange(t,e,i,s,o,r,a="body",c=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==e)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let l=new n.LE({encoder:this.encoder});null!=t&&(l=l.set("user",t)),null!=e&&(l=l.set("email",e)),null!=i&&(l=l.set("lang",i)),null!=s&&(l=l.set("linkPath",s)),null!=o&&(l=l.set("customUrl",o)),null!=r&&(l=l.set("idpFilter",r));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{params:l,withCredentials:this.configuration.withCredentials,headers:u,observe:a,reportProgress:c})}reservePasswordForLogin(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("login",t)),null!=e&&(r=r.set("namespace",e)),null!=i&&(r=r.set("password",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/login`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}reservePasswordForUser(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("namespace",e)),null!=i&&(r=r.set("password",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/user`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}reserveRandomPassword(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}updateUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateUser was null or undefined when calling updateUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}validatePasswordForLogin(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("login",t)),null!=e&&(o=o.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}validatePasswordForUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("namespace",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}validatePreferredEmailChangeWithToken(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==e)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("token",t)),null!=e&&(o=o.set("u",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),S=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}getAppsConfig(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getGuiConfiguration(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunRPCVersion(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["text/plain"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunStatistics(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunStatus(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunSystemTimeInMillis(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),k=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new n.WM,this.configuration=new a,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new s}addSponsorRoleToGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addSponsorRoleToUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addVoAdminGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}addVoAdminUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createVoWithName(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==e)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("name",t)),null!=e&&(o=o.set("shortName",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}createVoWithVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateVoWithVo was null or undefined when calling createVoWithVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/createVo/withVo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteVo(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("force",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}findCandidates(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("id",t)),null!=e&&(r=r.set("searchString",e)),null!=i&&(r=r.set("maxNumOfResults",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}findCandidatesForGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("searchString",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getAllVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAllVos`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getCompleteCandidatesForGroup(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("searchString",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getCompleteCandidatesForVo(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("searchString",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMyVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVos`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getRichAdminsForVo(t,e,i,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==i)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==s)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 c=new n.LE({encoder:this.encoder});null!=t&&(c=c.set("vo",t)),null!=e&&(c=c.set("role",e)),i&&i.forEach(t=>{c=c.append("specificAttributes",t)}),null!=s&&(c=c.set("allUserAttributes",s)),null!=o&&(c=c.set("onlyDirectAdmins",o));let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(l=l.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getRichAdmins`,{params:c,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:a})}getVoAdminGroups(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("role",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdminGroups`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}getVoAdminUsers(t,e,i,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==i)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");let r=new n.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("role",e)),null!=i&&(r=r.set("onlyDirectAdmins",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdmins`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getVoBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("banId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoBanForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanForMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoBansForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBansForVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getVoById.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoByShortName(t,e="body",i=!1){let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("shortName",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoByShortName`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVoMembersCountsByStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVosByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let s=new n.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}getVosCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeSponsorRoleFromGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeSponsorRoleFromUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeVoAdminGroup(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("authorizedGroup",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeVoAdminUser(t,e,i="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let o=new n.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("user",e));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:i,reportProgress:s})}removeVoBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("banId",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}removeVoBanForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let s=new n.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:e,reportProgress:i})}setVoBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoBan was null or undefined when calling setVoBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateVo was null or undefined when calling updateVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/updateVo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.eN),o.LFG(r,8),o.LFG(a,8))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const I={WRITE:"WRITE",WRITEVO:"WRITE_VO",WRITEPUBLIC:"WRITE_PUBLIC",READ:"READ",READVO:"READ_VO",READPUBLIC:"READ_PUBLIC"};var x,R,O,P;!function(t){t.HiddenEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"},t.DisabledEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"}}(x||(x={})),function(t){t.FormatEnum={DOT:"DOT",TGF:"TGF"}}(R||(R={})),function(t){t.OwnerTypeEnum={NUMBER_0:0,NUMBER_1:1}}(O||(O={})),function(t){t.TypeEnum={Technical:"technical",Administrative:"administrative"}}(P||(P={}));const D={HTMLCOMMENT:"HTML_COMMENT",SUBMITBUTTON:"SUBMIT_BUTTON",AUTOSUBMITBUTTON:"AUTO_SUBMIT_BUTTON",FROMFEDERATIONSHOW:"FROM_FEDERATION_SHOW",FROMFEDERATIONHIDDEN:"FROM_FEDERATION_HIDDEN",PASSWORD:"PASSWORD",VALIDATEDEMAIL:"VALIDATED_EMAIL",TEXTFIELD:"TEXTFIELD",TEXTAREA:"TEXTAREA",CHECKBOX:"CHECKBOX",RADIO:"RADIO",SELECTIONBOX:"SELECTIONBOX",COMBOBOX:"COMBOBOX",USERNAME:"USERNAME",HEADING:"HEADING",TIMEZONE:"TIMEZONE",EMBEDDEDGROUPAPPLICATION:"EMBEDDED_GROUP_APPLICATION"};let M=(()=>{class t{constructor(t,e){if(t)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!e)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:t,providers:[{provide:a,useFactory:e}]}}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(t,12),o.LFG(n.eN,8))},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[c,l,u,h,d,p,g,f,m,b,_,w,A,y,v,T,C,E,S,k],imports:[[]]}),t})()},22280:function(t,e,i){"use strict";i.d(e,{r5:function(){return a.r},d4:function(){return o},dp:function(){return r.d}});var n=i(61511),s=i(31572);let o=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez]]}),t})();var r=i(22196),a=(i(83787),i(95603));i(91322),i(63720),i(1157),i(48853),i(44031),i(31447),i(92898)},83787:function(t,e,i){"use strict";i.d(e,{a:function(){return r}});var n=i(68416),s=i(31572),o=i(48160);let r=(()=>{class t{constructor(t,e){this.translate=t,this.storage=e}transform(t,e="en"){const i=this.storage.get("custom_labels");if(i){const n=Object.keys(i);for(const i of n){const n=this.storage.get("custom_labels",i);if(n.label===t)return n[e]}}return t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(o.sK,16),s.Y36(n.d6,16))},t.\u0275pipe=s.Yjl({name:"customTranslate",type:t,pure:!0}),t})()},95603:function(t,e,i){"use strict";i.d(e,{r:function(){return s}});var n=i(31572);let s=(()=>{class t{transform(t,e){return e?`/organizations/${t.voId}/resources/${t.id}`:`/facilities/${t.facilityId}/resources/${t.id}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"getResourceRoute",type:t,pure:!0}),t})()},51392:function(t,e,i){"use strict";i.d(e,{F:function(){return r}});var n=i(84140),s=i(67004),o=i(31572);let r=(()=>{class t{transform(t){if(null==t||null==t.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const e=(0,n.IL)(t.attributes,s.r.GROUP_SYNC_ENABLED),i=(0,n.IL)(t.attributes,s.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===e&&null===i)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const o=i.value;if("true"===e.value){const e=(0,n.IL)(t.attributes,s.r.GROUP_LAST_SYNC_STATE),i=(0,n.IL)(t.attributes,s.r.GROUP_LAST_SYNC_TIMESTAMP),o=e.value,r=i.value;return null!=o&&o.trim().length>0?"red":null!==r&&r.trim().length>0?"green":""}if(o){const e=(0,n.IL)(t.attributes,s.r.GROUP_LAST_STRUCTURE_SYNC_STATE),i=(0,n.IL)(t.attributes,s.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),o=e.value,r=i.value;return null!=o&&o.trim().length>0?"red":null!==r&&r.trim().length>0?"green":""}return""}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"groupSyncIconColor",type:t,pure:!0}),t})()},52984:function(t,e,i){"use strict";i.d(e,{J:function(){return r}});var n=i(67004),s=i(84140),o=i(31572);let r=(()=>{class t{transform(t){if(null==t||null==t.attributes)return"";const e=(0,s.IL)(t.attributes,n.r.GROUP_SYNC_ENABLED),i=(0,s.IL)(t.attributes,n.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===e&&null===i)return"";const o=i.value;if("true"===e.value){const e=(0,s.IL)(t.attributes,n.r.GROUP_LAST_SYNC_STATE),i=(0,s.IL)(t.attributes,n.r.GROUP_LAST_SYNC_TIMESTAMP),o=e.value,r=i.value;return null!=o&&o.trim().length>0?"sync_problem":(null!==r&&r.trim(),"sync")}if(o){const e=(0,s.IL)(t.attributes,n.r.GROUP_LAST_STRUCTURE_SYNC_STATE),i=(0,s.IL)(t.attributes,n.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),o=e.value,r=i.value;return null!=o&&o.trim().length>0?"sync_problem":(null!==r&&r.trim(),"sync")}return"sync_disabled"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"groupSyncIcon",type:t,pure:!0}),t})()},44385:function(t,e,i){"use strict";i.d(e,{r:function(){return r}});var n=i(84140),s=i(67004),o=i(31572);let r=(()=>{class t{transform(t){if(null==t||null==t.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const e=(0,n.IL)(t.attributes,s.r.GROUP_SYNC_ENABLED),i=(0,n.IL)(t.attributes,s.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===e&&null===i)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const o=i.value;if("true"===e.value){const e=(0,n.IL)(t.attributes,s.r.GROUP_LAST_SYNC_STATE),i=(0,n.IL)(t.attributes,s.r.GROUP_LAST_SYNC_TIMESTAMP),o=e.value,r=i.value;return null!=o&&o.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==r&&r.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}if(o){const e=(0,n.IL)(t.attributes,s.r.GROUP_LAST_STRUCTURE_SYNC_STATE),i=(0,n.IL)(t.attributes,s.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),o=e.value,r=i.value;return null!=o&&o.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==r&&r.trim().length>0?"VO_DETAIL.GROUPS.GROUP_STRUCTURE_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"groupSyncToolTip",type:t,pure:!0}),t})()},63720:function(t,e,i){"use strict";i.d(e,{D:function(){return o}});var n=i(84140),s=i(31572);let o=(()=>{class t{transform(t){return(0,n.g$)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"memberEmail",type:t,pure:!0}),t})()},1157:function(t,e,i){"use strict";i.d(e,{p:function(){return o}});var n=i(84140),s=i(31572);let o=(()=>{class t{transform(t){return(0,n.lt)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"memberLogins",type:t,pure:!0}),t})()},99197:function(t,e,i){"use strict";i.d(e,{M:function(){return o}});var n=i(84140),s=i(31572);let o=(()=>{class t{transform(t){return(0,n.Gw)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"memberOrganization",type:t,pure:!0}),t})()},74842:function(t,e,i){"use strict";i.d(e,{u:function(){return s}});var n=i(31572);let s=(()=>{class t{transform(t){switch(t){case"VALID":return"green";case"INVALID":return"red";default:return""}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"memberStatusIconColor",type:t,pure:!0}),t})()},37043:function(t,e,i){"use strict";i.d(e,{f:function(){return s}});var n=i(31572);let s=(()=>{class t{transform(t){switch(t){case"VALID":return"verified_user";case"INVALID":return"report";case"EXPIRED":return"schedule";case"DISABLED":return"delete";default:return t}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"memberStatusIcon",type:t,pure:!0}),t})()},91322:function(t,e,i){"use strict";i.d(e,{i:function(){return o}});var n=i(84140),s=i(31572);let o=(()=>{class t{transform(t,e){let i=null,s=null;null!==t.memberAttributes&&(i=t.memberAttributes.find(t=>"membershipExpiration"===t.friendlyName),s=t.memberAttributes.find(t=>"groupMembershipExpiration"===t.friendlyName));let o="";return o=e?`\n Group status: ${(0,n.Oe)(t.groupStatus)}, Expiration: ${s&&s.value?s.value:"never"}`:`Status: ${(0,n.Oe)(t.status,t.groupStatus)}\n Vo status: ${(0,n.Oe)(t.status)}, Expiration: ${i&&i.value?i.value:"never"}`,o}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"memberStatusTooltip",type:t,pure:!0}),t})()},5725:function(t,e,i){"use strict";i.d(e,{l:function(){return s}});var n=i(31572);let s=(()=>{class t{transform(t){return t.replace("VALID","ACTIVE")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"memberStatus",type:t,pure:!0}),t})()},82877:function(t,e,i){"use strict";i.d(e,{R:function(){return s}});var n=i(31572);let s=(()=>{class t{transform(t){return t.replace(/\s/g,"-").toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"multiWordDataCy",type:t,pure:!0}),t})()},58506:function(t,e,i){"use strict";i.d(e,{M:function(){return o}});var n=i(61511),s=i(31572);let o=(()=>{class t{transform(t,e){return"voRules"===t?"Vo rules":"groupRules"===t?"Group rules":t&&"never"!==t.toLowerCase()?(0,n.p6)(t.replace(" ","T"),"d.M.yyyy "+(e?"H:mm:ss":""),"en"):"never"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"parseDate",type:t,pure:!0}),t})()},48853:function(t,e,i){"use strict";i.d(e,{J:function(){return o}});var n=i(84140),s=i(31572);let o=(()=>{class t{transform(t){return(0,n.te)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"technicalOwners",type:t,pure:!0}),t})()},44031:function(t,e,i){"use strict";i.d(e,{S:function(){return o}});var n=i(84140),s=i(31572);let o=(()=>{class t{transform(t){return(0,n.kN)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"userEmail",type:t,pure:!0}),t})()},22196:function(t,e,i){"use strict";i.d(e,{d:function(){return s}});var n=i(31572);let s=(()=>{class t{transform(t){let e="";return null!==t.titleBefore&&(e+=t.titleBefore+" "),null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),null!==t.titleAfter&&(e+=t.titleAfter+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"userFullName",type:t,pure:!0}),t})()},31447:function(t,e,i){"use strict";i.d(e,{g:function(){return o}});var n=i(84140),s=i(31572);let o=(()=>{class t{transform(t){return(0,n.$0)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"userLogins",type:t,pure:!0}),t})()},92898:function(t,e,i){"use strict";i.d(e,{Z:function(){return o}});var n=i(84140),s=i(31572);let o=(()=>{class t{transform(t){return(0,n.OV)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"userVo",type:t,pure:!0}),t})()},68416:function(t,e,i){"use strict";i.d(e,{yC:function(){return k},F5:function(){return E},sM:function(){return R},e8:function(){return d},EB:function(){return w},Be:function(){return G},Hy:function(){return z},ly:function(){return D},fb:function(){return j},xw:function(){return O},x4:function(){return r},v0:function(){return m},SZ:function(){return I},V6:function(){return S},jq:function(){return q},BN:function(){return Z},HV:function(){return U},d6:function(){return l},UA:function(){return P}});var n=i(65249),s=i(14732),o=i(31572);let r=(()=>{class t{constructor(t){this.authzSevice=t,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(t){this.principal=t,this.initData(t)}setPerunPolicies(t){this.perunPolicies=t}getPerunPolicies(){return this.perunPolicies}isAuthorized(t,e){if(null===this.principal.roles)return!1;const i=this.fetchPolicyWithAllIncludedPolicies(t);let n=[];for(const o of i)n=n.concat(o.perunRoles);const s=this.fetchAllRelatedObjects(e);return this.resolveAuthorization(n,s)}resolveAuthorization(t,e){for(const i of t){let t=!0;for(const n of Object.keys(i)){const s=i[n];if(null===s)this.principalRoles.has(n)||(t=!1);else if(e[s]){for(const i of e[s])if(!this.principalHasRole(n,s,i)){t=!1;break}}else t=!1;if(!t)break}if(t)return!0}return!1}fetchAllRelatedObjects(t){const e={};for(const i of t){let t=i.beanName;switch(i.beanName.startsWith("Rich")&&(t=i.beanName.substring(4)),e[t]?e[t].push(i.id):e[t]=[i.id],t){case"Member":e.User?e.User.push(i.userId):e.User=[i.userId],e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"Group":e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"Resource":e.Facility?e.Facility.push(i.facilityId):e.Facility=[i.facilityId],e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"ResourceTag":e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId]}}return e}principalHasRole(t,e,i){let n=e;return e.startsWith("Rich")&&(n=e.substring(4)),!(!this.principal.roles[t]||!this.principal.roles[t][n])&&this.principal.roles[t][n].includes(Number(i.toString()))}fetchPolicyWithAllIncludedPolicies(t){const e=new Map;let i=[];for(i.push(t);0!==i.length;){const n=i.shift();if(e.has(n)){console.log("Policy {} creates a cycle in the included policies of the policy {}",n,t);continue}const s=this.getPerunPolicy(n);if(!s)return[];e.set(n,s),i=i.concat(s.includePolicies)}const n=[];for(const s of e.values())n.push(s);return n}getPerunPolicy(t){for(const e of this.perunPolicies)if(e.policyName===t)return e;return console.log("policy with name"+t+"was not found"),null}canManageFacilities(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.PERUNOBSERVER,s.u.FACILITYADMIN,s.u.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(s.u.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.VOADMIN)}isThisVoAdminOrObserver(t){return this.editableVos.includes(Number(t.toString()))||this.observableVos.includes(Number(t.toString()))||this.hasAtLeastOne(s.u.PERUNADMIN,s.u.PERUNOBSERVER)}isThisVoAdmin(t){return this.editableVos.includes(t)||this.principalRoles.has(s.u.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(s.u.SPONSOR)}isThisGroupAdmin(t){return this.editableGroups.includes(t)||this.principalRoles.has(s.u.PERUNADMIN)}isGroupAdminInThisVo(t){return this.hasGroupInTheseVos.includes(t)}isFacilityAdmin(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.FACILITYADMIN)}isThisFacilityAdmin(t){return this.editableFacilities.includes(t)||this.principalRoles.has(s.u.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(s.u.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.VOOBSERVER,s.u.PERUNOBSERVER)}isThisVoObserver(t){return this.hasAtLeastOne(s.u.PERUNADMIN,s.u.PERUNOBSERVER)||this.observableVos.includes(t)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((t,e)=>{this.authzSevice.getAllRolesManagementRules().subscribe(e=>{this.allRolesManagementRules=e,t()},t=>e(t))})}assignAvailableRoles(t,e){this.allRolesManagementRules.forEach(i=>{i.primaryObject===e&&t.push(i.roleName)}),t.sort(),"Vo"===e&&this.voCustomSort(t)}isManagerPagePrivileged(t){const e=[];let i=t.beanName;i.startsWith("Rich")&&(i=i.substr(4)),this.assignAvailableRoles(e,i);const n=new Map;this.getRolesAuthorization(e,t,n);for(const s of n.values())if(s.readAuth||s.manageAuth)return!0;return!1}getRolesAuthorization(t,e,i){for(const n of t){let t=[],s=[],o=[];for(const e of this.allRolesManagementRules)if(e.roleName===n){t=t.concat(e.privilegedRolesToRead),s=s.concat(e.privilegedRolesToManage);for(const t of Object.keys(e.entitiesToManage))o="User"===t?[t].concat(o):o.concat(t);break}const r=this.fetchAllRelatedObjects([e]),a=this.resolveAuthorization(t,r),c=this.resolveAuthorization(s,r);i.set(n,{readAuth:a,manageAuth:c,modes:o})}}voCustomSort(t){for(let e=0;e{class t{constructor(){this.branding=""}setInstanceConfig(t){this.instanceConfig=t}setDefaultConfig(t){this.defaultConfig=t}getAppsConfig(){return this.appsConfig}setAppsConfig(t){this.appsConfig=t}setPerunPrincipal(t){this.principal=t}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(t){this.initialPageId=t}getLoginAttributeNames(){return this.get("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.get("member_profile_attributes_friendly_names")}setBanding(t){this.branding=t}skipOidc(){return this.get("skip_oidc")}get(...t){let e;if(""!==this.branding){const i=this.instanceConfig.brandings[this.branding];for(let n=0;n{class t{constructor(t,e,i,n,s){this.injector=t,this.store=e,this.dialog=i,this.route=n,this.oauthService=s,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(c.F0),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(t=>{t.idpFilter&&(this.filterShortname=t.idpFilter)})}getClientConfig(){const t=this.setIdpFilter(),e=t?{acr_values:t}:{};return this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(e.prompt="consent"),{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"),customQueryParams:e}}setIdpFilter(){const t=location.search.substr(1).split("&");this.filterShortname=null;const e=this.store.get("oidc_client","filters");if(!e)return null;let i=null;return t.forEach(t=>{const n=t.split("=");"idpFilter"===n[0]&&e[n[1]]&&(this.filterShortname=n[1],i=e[n[1]])}),e.default&&!i?(this.filterShortname="default",e.default):i}startIdpFilterKeeper(){this.router.events.pipe((0,a.h)(t=>t instanceof c.m2)).subscribe(()=>{const t={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===t.idpFilter?{}:t,queryParamsHandling:"merge",replaceUrl:!0})})}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const t=location.pathname,e=location.search.substr(1);return"/api-callback"===t?this.handleAuthCallback().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(t,e).then(()=>this.startRefreshToken())}startRefreshToken(){return this.isLoggedInPromise().then(t=>!!t&&(this.oauthService.events.pipe((0,a.h)(t=>"token_expires"===t.type)).subscribe(()=>{this.oauthService.refreshToken().then(t=>{localStorage.setItem("refresh_token",t.refresh_token)})}),!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()}isPotentiallyValidPath(t){const e=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===t)return!0;for(const i of e)if(t.startsWith(i))return!0;return!1}tryRefreshToken(){return localStorage.getItem("refresh_token")?(sessionStorage.setItem("refresh_token",localStorage.getItem("refresh_token")),this.oauthService.loadDiscoveryDocument().then(()=>this.oauthService.refreshToken()).then(()=>Promise.resolve()).catch(t=>t)):Promise.resolve()}verifyAuthentication(t,e){return this.tryRefreshToken().then(()=>this.isLoggedInPromise()).then(i=>i?(this.oauthService.loadDiscoveryDocument().then(()=>localStorage.setItem("refresh_token",this.oauthService.getRefreshToken())),!0):this.isPotentiallyValidPath(t)?(sessionStorage.setItem("auth:redirect",t),sessionStorage.setItem("auth:queryParams",e),!1):new Promise((t,e)=>e("Invalid path")))}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const t=sessionStorage.getItem("mfa_route");if(t)return this.router.navigate([t],{replaceUrl:!0});let e=sessionStorage.getItem("auth:redirect");const i=sessionStorage.getItem("auth:queryParams");let n=[];i&&(n=i.split("&"));const s={};return n.forEach(t=>{const e=t.split("=");s[e[0]]=e[1]}),e&&"/login"!==e||(e="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),s.idpFilter&&(this.filterShortname=s.idpFilter),this.router.navigate([e],{queryParams:s,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(o.zs3),o.LFG(l),o.LFG(u.uw),o.LFG(c.gz),o.LFG(h.Ct))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var p=i(48160);let g=(()=>{class t{constructor(t){this.dialogRef=t}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(u.so))},t.\u0275cmp=o.Xpm({type:t,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(t,e){1&t&&(o.TgZ(0,"h2",0),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},directives:[u.xY],pipes:[p.X$],styles:[""]}),t})();var f=i(84140);let m=(()=>{class t{constructor(t,e,i,n,s,o){this.authService=t,this.storeService=e,this.authResolver=i,this.authzService=n,this.dialog=s,this.router=o,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(t){this.loginScreenShown=t}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)):(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(t=>t(!0)):this.authService.verifyAuth())}startAuth(){return this.authService.startAuthentication(),new Promise(()=>{})}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(t=>{if(null===t.user){const t=(0,f.kZ)();this.dialog.open(g,t)}else this.storeService.setPerunPrincipal(t),this.authResolver.init(t)})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(t=>{t()});if(this.storeService.get("auto_auth_redirect"))return this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0);const t=location.search.substr(1).split("&"),e={};for(const i of t){const t=i.split("=");e[t[0]]=t[1]}return this.router.navigate(["login"],{queryParams:e,queryParamsHandling:"merge"}).then(()=>null)}}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(d),o.LFG(l),o.LFG(r),o.LFG(n.Ct),o.LFG(u.uw),o.LFG(c.F0))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var b=i(43691),_=i(30269);let w=(()=>{class t{constructor(t,e){this.matIconRegistry=t,this.domSanitizer=e,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/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/settings1-blue.svg",name:"settings-blue"},{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"}]}registerPerunRefreshIcon(){this.customIcons.forEach(t=>{this.matIconRegistry.addSvgIcon(t.name,this.domSanitizer.bypassSecurityTrustResourceUrl(t.url))})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(b.jv),o.LFG(_.H7))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t})();var A=i(29063),y=i(31225),v=i(66599),T=i(15980);let C=(()=>{class t{constructor(t){this.dialogRef=t}close(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(u.so))},t.\u0275cmp=o.Xpm({type:t,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(t,e){1&t&&(o.TgZ(0,"h1",0),o._uU(1),o.ALo(2,"translate"),o.qZA(),o.TgZ(3,"div",1),o._uU(4),o.ALo(5,"translate"),o.qZA(),o.TgZ(6,"div",2),o.TgZ(7,"div",3),o.TgZ(8,"button",4),o.NdJ("click",function(){return e.close()}),o._uU(9),o.ALo(10,"translate"),o.qZA(),o.qZA(),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),o.xp6(3),o.hij(" ",o.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),o.xp6(5),o.hij(" ",o.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},directives:[u.uh,u.xY,u.H8,T.lW],pipes:[p.X$],styles:[""]}),t})(),E=(()=>{class t{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const t=this.handleNextError;return this.handleNextError=!0,t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),S=(()=>{class t{constructor(t){this.translate=t,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3,this.addNotification=new o.vpe}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(t,e=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===t.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===t.name?e:e+"\n"+t.name,t,t.message)}showError(t,e,i,n,s){this.addNotification.emit({type:"error",error:e,description:i,title:t,actionText:void 0===n&&void 0!==i?this.getDefaultActionMessage():n,delay:this.defaultErrorDelayMs,icon:"error_outline",action:s,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(t,e,i,n){this.addNotification.emit({type:"success",description:e,title:t,actionText:void 0===i&&void 0!==e?this.getDefaultActionMessage():i,delay:this.defaultSuccessDelayMs,icon:"done",action:n,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(p.sK))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),k=(()=>{class t{constructor(t,e,i,n,s,o){this.authService=t,this.apiRequestConfiguration=e,this.notificator=i,this.store=n,this.dialog=s,this.initAuthService=o}intercept(t,e){const i=this.store.get("api_url");if(-1!==t.url.indexOf("i18n")&&(t=t.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==i&&-1!==t.url.toString().indexOf(i)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()){const t=(0,f.kZ)();t.width="450px",this.dialog.open(C,t).afterClosed().subscribe(()=>{sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substr(1)),this.authService.startAuthentication()})}t=this.initAuthService.isServiceAccess()?t.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):t.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}});const n=this.apiRequestConfiguration.shouldHandleError(),s="POST"===t.method&&!this.store.skipOidc()&&this.isCallToPerunApi(t.url);return e.handle(t).pipe((0,v.b)(t=>{t instanceof A.Zn&&s&&this.initAuthService.loadPrincipal()},e=>{const i=this.formatErrors(e,t);return void 0===i?(0,y._)(e):n?void this.notificator.showRPCError(i):(0,y._)(i)}))}isCallToPerunApi(t){return t.startsWith(this.store.get("api_url"))}formatErrors(t,e){let i;if(console.error(t),t.error.errorId?i=t.error:t.errorId&&(i=JSON.parse(t.error)),void 0!==i)return i.urlWithParams=e.urlWithParams,i.call=e.url,i.payload=e.body,i}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(d),o.LFG(E),o.LFG(S),o.LFG(l),o.LFG(u.uw),o.LFG(m))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t})(),I=(()=>{class t{constructor(){this.notificationData=[],this.newNotificationsCount=0}storeNotification(t){this.newNotificationsCount++,this.notificationData.push(t)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var x=i(47727);let R=(()=>{class t{constructor(t,e,i,n){this.http=t,this.notificator=e,this.authService=i,this.storeService=n}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}formatErrors(t,e,i,n){const s=t.error;return s.call=e,s.payload=i,n&&this.notificator.showRPCError(t.error),(0,y._)(s)}getHeaders(){let t=new A.WM;return t=t.set("Authorization",this.authService.getAuthorizationHeaderValue()),t}get(t,e=!0){const i=`${this.getApiUrl()}${t}`;return this.http.get(i,{headers:this.getHeaders()}).pipe((0,x.K)(t=>this.formatErrors(t,i,null,e)))}put(t,e={},i=!0){const n=`${this.getApiUrl()}${t}`,s=JSON.stringify(e);return this.http.put(n,s,{headers:this.getHeaders()}).pipe((0,x.K)(t=>this.formatErrors(t,n,s,i)))}post(t,e={},i=!0){const n=`${this.getApiUrl()}${t}`,s=JSON.stringify(e);let o=this.getHeaders();return o=o.set("Content-Type","application/json; charset=utf-8"),this.http.post(n,s,{headers:o}).pipe((0,x.K)(t=>this.formatErrors(t,n,s,i)))}delete(t,e=!0){const i=`${this.getApiUrl()}${t}`;return this.http.delete(i,{headers:this.getHeaders()}).pipe((0,x.K)(t=>this.formatErrors(t,i,null,e)))}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(A.eN),o.LFG(S),o.LFG(d),o.LFG(l))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),O=(()=>{class t{constructor(t){this.router=t,this.lastState="forward",this.history=new Set,t.events.subscribe(t=>{t instanceof c.OD&&("popstate"===t.navigationTrigger?this.history.has(t.restoredState.navigationId)?(this.lastState="back",this.history.delete(t.restoredState.navigationId)):(this.lastState="forward",this.history.add(t.id)):(this.history.add(t.id),this.lastState="forward"))})}forceNavigate(t,e){if(null===t)return;let i="";t.forEach(t=>i+="/"+t),i.length>0&&(i=i.substring(1)),void 0===e&&(e={}),e.queryParams={redirectTo:i},this.router.navigate(["redirect"],e)}getLastState(){return this.lastState}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(c.F0))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),P=(()=>{class t{constructor(){}isAllSelectedWithDisabledCheckbox(t,e,i,n,s,o,r,a){return this.numSelected=t,this.numCanBeSelected=0,this.pageStart=s*i,this.pageEnd=this.pageStart+i,this.pageIterator=0,this.dataLength=""===e?o.data.length:o.filteredData.length,n||(this.modulo=this.dataLength%i,this.pageEnd=0===this.modulo?this.pageStart+i:this.pageStart+this.modulo),o.sortData(o.filteredData,r).forEach(t=>{this.pageStart<=this.pageIterator&&this.pageIterator{a?c(t)&&this.pageStart<=this.pageIterator&&this.pageIterator{class t{constructor(t,e,i){this.membersService=t,this.usersService=e,this.auditMessagesManagerService=i}getMembers(t,e,i,n,s,o,r,a,c,l){return this.membersService.getMembersPage({vo:t,attrNames:e,query:{pageSize:s,offset:n*s,order:i,sortColumn:o,statuses:r,searchString:a,groupId:c,groupStatuses:l}})}getUsers(t,e,i,n,s,o,r,a,c,l,u,h){return this.usersService.getUsersPage({attrNames:t,query:{offset:n*i,pageSize:n,order:e,sortColumn:s,searchString:o,withoutVo:r,facilityId:a,voId:c,resourceId:l,serviceId:u,onlyAllowed:h}})}getAuditMessages(t,e,i){return this.auditMessagesManagerService.getMessagesPage({query:{offset:i*e,pageSize:i,order:t}})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.uq),o.LFG(n.Fv),o.LFG(n.jw))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var M=i(78512),L=i(40878),N=i(11520);class z{constructor(t,e){this.dynamicPaginatingService=t,this.authzService=e,this.dataSubject=new M.X([]),this.loadingSubject=new M.X(!1),this.loading$=this.loadingSubject.asObservable(),this.allObjectCount=0,this.routeAuth=!0}loadMembers(t,e,i,n,s,o,r,a,c,l){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const u=this.latestQueryTime;this.dynamicPaginatingService.getMembers(t,e,i,n,s,o,r,a,c,l).pipe((0,x.K)(()=>(0,L.of)([])),(0,N.x)(()=>this.loadingSubject.next(!1))).subscribe(e=>{if(this.latestQueryTime<=u){const i=e.data;null!==i&&0!==i.length&&(this.routeAuth=this.authzService.isAuthorized("getMemberById_int_policy",[{beanName:"Vo",id:t},i[0]])),this.allObjectCount=e.totalCount,this.dataSubject.next(i)}})}loadUsers(t,e,i,n,s,o,r,a,c,l,u,h){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const d=this.latestQueryTime;this.dynamicPaginatingService.getUsers(t,n,i,e,s,o,r,a,c,l,u,h).pipe((0,x.K)(()=>(0,L.of)([])),(0,N.x)(()=>this.loadingSubject.next(!1))).subscribe(t=>{if(this.latestQueryTime<=d){const e=t.data;this.allObjectCount=t.totalCount,this.dataSubject.next(e)}})}loadAuditMessages(t,e,i){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const n=this.latestQueryTime;this.dynamicPaginatingService.getAuditMessages(i,e,t).pipe((0,x.K)(()=>(0,L.of)([])),(0,N.x)(()=>this.loadingSubject.next(!1))).subscribe(t=>{if(this.latestQueryTime<=n){const e=t.data;this.allObjectCount=t.totalCount,this.dataSubject.next(e)}})}connect(){return this.dataSubject.asObservable()}disconnect(){this.dataSubject.complete(),this.loadingSubject.complete()}getData(){return this.dataSubject.value}}let Z=(()=>{class t{constructor(t,e){this.route=t,this.store=e}getPreferredLanguage(t){const e=this.store.get("supported_languages"),i=navigator.languages.map(t=>t.split("-")[0]),n=location.search.substr(1).split("&");let s=null;for(const o of n){const t=o.split("=");"lang"===t[0]&&(s=t[1])}return s&&e.includes(s)?s:t&&e.includes(t)?t:i&&e.includes(i[0])?i[0]:"en"}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(c.gz),o.LFG(l))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var B=i(64762);let F=(()=>{class t{constructor(){}loadPdfMake(){return(0,B.mG)(this,void 0,void 0,function*(){if(!this.pdfMake){const t=yield i.e(943).then(i.t.bind(i,34943,23)),e=yield i.e(518).then(i.t.bind(i,70518,19));this.pdfMake=t.default,this.pdfMake.vfs=e.default.pdfMake.vfs}})}generatePdf(t){return(0,B.mG)(this,void 0,void 0,function*(){yield this.loadPdfMake(),this.pdfMake.createPdf(t).open()})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),U=(()=>{class t{constructor(t){this.pdfService=t}static generateTableForUser(e){const i=e.name.replace(";"," ").split(";")[0];return"OK"!==e.status?this.generateErrorRowForUser(i,e.status):t.generateRowForUser(i,e.login,e.password)}static generateErrorRowForUser(t,e){return{table:{heights:[30,1,1],widths:[249,249],body:[[{text:t,colSpan:1,alignment:"center",bold:!0,fontSize:12,margin:[20,25],color:"red"},{text:e,alignment:"center",bold:!0,color:"red"}]]}}}static generateRowForUser(e,i,n){return{table:{heights:[30,0],widths:[120,120,120,120],body:[[t.generateNameCell(e),{},t.getPasswordLabelCell(),t.generatePasswordCell(n)],[t.getLoginLabelCell(),t.generateLoginCell(i),{},{}]]}}}static generateNameCell(t){return{text:t,colSpan:2,alignment:"center",border:[!0,!0,!0,!1],bold:!0,fontSize:12,margin:[10,10]}}static generatePasswordCell(t){return{text:null==t?"N/A":t,border:[!1,!0,!0,!0],bold:!0,margin:[0,25],rowSpan:2,alignment:"left"}}static generateLoginCell(t){return{text:null==t?"N/A":t,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(e){return(0,B.mG)(this,void 0,void 0,function*(){const i=[];for(const n of e)i.push(t.generateTableForUser(n));return this.pdfService.generatePdf({content:i})})}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(F))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),q=(()=>{class t{constructor(t){this.storeService=t}static getBrandContainingDomain(t,e){for(const i of t)if(i.newApps.admin===e||i.newApps.profile===e||i.newApps.pwdReset===e)return i;return t[0]}getUrlForOtherApplication(e,i){const n=window.location.href.split("/"),s=n[0]+"//"+n[2],o=t.getBrandContainingDomain(this.storeService.getAppsConfig().brands,s);let r;if(o.newApps[e])r=o.newApps[e],"pwdReset"===e&&(r+=`?login-namespace=${i}`);else switch(r=o.oldGuiDomain+"/fed",e){case"admin":r+="/gui/";break;case"profile":r+="/profile/";break;case"pwdReset":r+="/pwd-reset/"}return r}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(l))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var H=i(73005);let G=(()=>{class t extends H.ye{constructor(){super(...arguments),this.getRangeLabel=function(t,e,i){let n;return n=i<1e3?i:i<1e4?"1 000":i<1e5?"10 000":"100 000",`${t*e+1} \u2013 ${(t+1)*e} of ${n} +`}}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t})(),j=(()=>{class t{setEntity(t){this.entity=t}getEntity(){return this.entity}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},67004:function(t,e,i){"use strict";i.d(e,{r:function(){return n}});let n=(()=>{class t{}return t.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",t.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",t.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",t.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",t.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",t.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",t.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",t.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",t.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",t.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",t.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",t.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",t.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",t.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",t.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",t.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",t.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",t.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",t.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",t.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",t.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",t})()},84140:function(t,e,i){"use strict";i.d(e,{dN:function(){return p},Je:function(){return u},f7:function(){return h.f7},l9:function(){return d.l},sF:function(){return h.sF},XI:function(){return h.XI},aC:function(){return h.aC},fx:function(){return h.fx},dv:function(){return h.dv},i5:function(){return h.i5},Sd:function(){return h.Sd},pR:function(){return h.pR},ys:function(){return h.ys},O6:function(){return h.O6},B2:function(){return h.B2},mH:function(){return h.mH},MX:function(){return h.MX},oU:function(){return h.oU},IL:function(){return h.IL},Jc:function(){return h.Jc},Xn:function(){return h.Xn},kZ:function(){return h.kZ},v$:function(){return h.v$},x2:function(){return h.x2},vL:function(){return h.vL},Hm:function(){return h.Hm},Cz:function(){return h.Cz},sG:function(){return h.sG},g$:function(){return h.g$},bD:function(){return h.bD},lt:function(){return h.lt},Oe:function(){return h.Oe},hu:function(){return h.hu},Gw:function(){return h.Gw},te:function(){return h.te},kN:function(){return h.kN},$0:function(){return h.$0},OV:function(){return h.OV}});var n=i(73005),s=i(8055),o=i(43691),r=i(15980),a=i(48160),c=i(61511),l=i(31572);let u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({providers:[],imports:[[n.TU,s.Tx,o.Ps,r.ot,a.aw,c.ez]]}),t})();var h=i(38457),d=i(82819);class p{static passwordMatchValidator(t){const e=t.get("passwordCtrl").value,i=t.get("passwordAgainCtrl").value;return t.get("passwordAgainCtrl").setErrors(e!==i?{noPasswordMatch:!0}:null),null}static patternValidator(t){return e=>{if(!e.value)return null;let i=0;for(const n of t)i+=n.test(e.value)?1:0;return i>=3?null:{isWeak:!0}}}}},38457:function(t,e,i){"use strict";i.d(e,{f7:function(){return a},B2:function(){return c},g$:function(){return l},kN:function(){return u},$0:function(){return h},lt:function(){return d},bD:function(){return p},hu:function(){return g},Cz:function(){return f},te:function(){return m},ys:function(){return b},vL:function(){return _},sF:function(){return w},XI:function(){return A},OV:function(){return y},MX:function(){return v},oU:function(){return T},IL:function(){return C},Jc:function(){return E},v$:function(){return S},i5:function(){return k},kZ:function(){return I},dv:function(){return x},Hm:function(){return R},Oe:function(){return O},Gw:function(){return P},x2:function(){return D},sG:function(){return M},pR:function(){return N},Sd:function(){return z},Xn:function(){return Z},O6:function(){return B},aC:function(){return F},fx:function(){return U},mH:function(){return q}});var n=i(64762),s=i(84608),o=i(61511),r=i(82051);const a=[5,10,25,100],c=/^(([^<>+()[\]\\.,;:\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 l(t){let e="";return t&&null!==t.userAttributes&&(t.userAttributes.forEach(t=>{"preferredMail"===t.friendlyName&&(e=t.value)}),e&&0===e.length&&null!==t.memberAttributes&&t.memberAttributes.forEach(t=>{"mail"===t.friendlyName&&null!==t.value&&(e=t.value)})),e}function u(t){let e="";return t&&t.userAttributes.forEach(t=>{"preferredMail"===t.friendlyName&&(e=t.value)}),e}function h(t){let e="";return t&&t.userAttributes&&t.userAttributes.filter(t=>"login-namespace"===t.baseFriendlyName).filter(t=>null!==t.value).forEach(t=>{e+=t.friendlyNameParameter+": "+t.value+", "}),e.endsWith(", ")&&(e=e.substring(0,e.length-2)),e}function d(t){let e="";return t&&t.userAttributes&&t.userAttributes.filter(t=>"login-namespace"===t.baseFriendlyName).filter(t=>null!==t.value).forEach(t=>{e+=t.friendlyNameParameter+": "+t.value+", "}),e.endsWith(", ")&&(e=e.substring(0,e.length-2)),e}function p(t){let e="";return null!==t.titleBefore&&(e+=t.titleBefore+" "),null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),null!==t.titleAfter&&(e+=t.titleAfter+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}function g(t){let e="";return null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}function f(t){let e="";return t.split(/(?=[A-Z])/g).forEach(t=>{e=e.concat(t.toLowerCase()),e=e.concat(" ")}),e=e.charAt(0).toUpperCase()+e.slice(1,e.length-1),e}function m(t){let e="";for(const i of t)"technical"===i.type&&(e+=i.name+", ");return e.endsWith(", ")&&(e=e.substring(0,e.length-2)),e}function b(t,e){return(0,n.mG)(this,void 0,void 0,function*(){var i;yield(i=t,new Promise(t=>setTimeout(t,i))),e()})}function _(t){return JSON.parse(localStorage.getItem(t))||[]}function w(t,e){if(null===localStorage.getItem(t)){const i=[];i.unshift(e.id),localStorage.setItem(t,JSON.stringify(i))}else{const i=JSON.parse(localStorage.getItem(t)),n=function(t,e){for(let i=0;i0&&i.splice(n,1),0!==n&&i.unshift(e.id),i.length>5&&i.pop(),localStorage.setItem(t,JSON.stringify(i))}}function A(t,e){if(null===localStorage.getItem("recent")){let i;i="Group"===t.beanName?[{id:t.id,name:t.shortName,fullName:t.name,type:t.beanName,voId:t.voId,voName:e}]:[{id:t.id,name:t.name,type:t.beanName,voId:t.voId}],localStorage.setItem("recent",JSON.stringify(i))}else{const i=JSON.parse(localStorage.getItem("recent"));let n;n="Group"===t.beanName?{id:t.id,name:t.shortName,fullName:t.name,type:t.beanName,voId:t.voId,voName:e}:{id:t.id,name:t.name,type:t.beanName,voId:t.voId};const s=function(t,e){for(let i=0;i0&&i.splice(s,1),0!==s&&i.unshift(n),i.length>5&&i.pop(),localStorage.setItem("recent",JSON.stringify(i))}}function y(t){let e="";return t&&t.userAttributes.forEach(t=>{"organization"===t.friendlyName&&(e=t.value)}),e}function v(t){return t.filter(t=>!t.namespace.includes("def:core"))}function T(t,e){const i=e.find(e=>e.id===t);return i?i.parentGroupId?T(i.parentGroupId,e).concat(i):[i]:[]}function C(t,e){for(const i of t)if(i.namespace+":"+i.friendlyName===e)return i;return null}function E(t){return null!=t.attributes["urn:perun:member:attribute-def:def:mail"]?t.attributes["urn:perun:member:attribute-def:def:mail"]:null!=t.attributes["urn:perun:user:attribute-def:def:preferredMail"]?t.attributes["urn:perun:user:attribute-def:def:preferredMail"]:""}function S(t){return t.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceX509".toLowerCase()?function(t){if(t.includes("/CN=")){const i=t.split("/");for(const t in i)if(t.startsWith("CN="))return e=t.substring(3),decodeURIComponent(e.replace(/\\x/g,"%"))}var e;return t}(t.userExtSource.extSource.name):t.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceIdp".toLowerCase()?function(t){switch(t){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":return"Elixir Europe";case"https://login.elixir-czech.org/idp":return"Elixir Czech";case"https://mojeid.cz/saml/idp.xml":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"@mojeid.extidp.cesnet.cz":return"MojeID";case"@linkedin.extidp.cesnet.cz":return"LinkedIn";case"@twitter.extidp.cesnet.cz":return"Twitter";case"@seznam.extidp.cesnet.cz":return"Seznam";case"@elixir-europe.org":return"Elixir Europe";case"@github.extidp.cesnet.cz":return"GitHub";case"@orcid.extidp.cesnet.cz":return"OrcID";default:return t}}(t.userExtSource.extSource.name):t.userExtSource.extSource.name}function k(t=["en","cs"]){const e={appType:"INITIAL",formId:0,mailType:"APP_CREATED_USER",send:!0,message:{}};return t.forEach(t=>{e.message[t]={locale:t,subject:"",text:""}}),e}function I(){const t=new s.vA;return t.disableClose=!0,t.autoFocus=!1,t}function x(t){const e={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 i of t)e.i18n[i]={locale:i,errorMessage:"",help:"",label:"",options:""};return e}function R(t){return"virt"===t.namespace.split(":")[4]}function O(t,e){return"valid"!==t.toLowerCase()||e&&"valid"!==t.toLowerCase()?t:"ACTIVE"}function P(t){let e="";return t&&null!==t.memberAttributes&&(t.memberAttributes.forEach(t=>{"organization"===t.friendlyName&&null!==t.value&&(e=t.value)}),0===e.length&&null!==t.userAttributes&&t.userAttributes.forEach(t=>{"organization"===t.friendlyName&&(e=t.value)})),e}function D(t){const e=t.attributes.find(t=>"groupMembershipExpiration"===t.baseFriendlyName);return e&&e.value?e.value:"Never"}function M(t){return t&&"never"!==t.toLowerCase()?(0,o.p6)(t,"d.M.yyyy","en"):t}const L=new Intl.Collator("cs",{numeric:!0});function N(t,e,i,n){const s=e.active,o=e.direction;return s&&""!==o?t.sort((t,e)=>{const r=i(t,s,n),a=i(e,s,n);return L.compare(r,a)*("asc"===o?1:-1)}):t}function z(t,e,i,n,s,o){e=e.toLowerCase();let r="";return i.forEach(e=>{r+=";"+n(t,e,s)}),o&&(r+=";"+n(t,"uuid",s)),-1!==r.toLowerCase().indexOf(e)}function Z(t,e,i,n){const s=[],o=["checkbox","select","edit","menu","cite","extend","recent"];return e=e.filter(t=>!o.includes(t)),t.forEach(t=>{const o={};e.forEach(e=>{var s;o[e]=(null!==(s=i(t,e,n))&&void 0!==s?s:"").split('"').join("''").trim()}),s.push(o)}),s}function B(t,e="csv",i="export"){switch(e){case"csv":{const n=(t,e)=>null===e?"":e,s=Object.keys(t[0]),o=t.map(t=>s.map(e=>JSON.stringify(t[e],n)).join(","));o.unshift(s.join(",").split(" ").join("_").split('"').join("''"));const a=o.join("\r\n"),c=new Blob([a],{type:"text/csv"});(0,r.saveAs)(c,`${i}.${e}`)}}}function F(t,e){return t.name.toLowerCase()>e.name.toLowerCase()?1:t.name.toLowerCase()===e.name.toLowerCase()?0:-1}function U(t,e){var i,n,s,o;let r,a;return t.user?(r=t.user.lastName?t.user.lastName:null!==(i=t.user.firstName)&&void 0!==i?i:"",a=e.user.lastName?e.user.lastName:null!==(n=e.user.firstName)&&void 0!==n?n:""):(r=t.lastName?t.lastName:null!==(s=t.firstName)&&void 0!==s?s:"",a=e.lastName?e.lastName:null!==(o=e.firstName)&&void 0!==o?o:""),r>a?1:r===a?0:-1}function q(t,e,i=[]){t.enable(),t.clearValidators(),t.clearAsyncValidators(),t.setValidators(e),t.setAsyncValidators(i),t.updateValueAndValidity()}},82819:function(t,e,i){"use strict";i.d(e,{l:function(){return m}});var n=i(31572),s=i(73005),o=i(38457),r=i(60611),a=i(61511),c=i(15980),l=i(8055),u=i(43691),h=i(48160);let d=(()=>{class t{constructor(){this.exportData=new n.vpe}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,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(t,e){if(1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"button",1),n.TgZ(2,"mat-icon"),n._uU(3,"more_vert"),n.qZA(),n.qZA(),n.TgZ(4,"mat-menu",null,2),n.TgZ(6,"button",3),n._uU(7),n.ALo(8,"translate"),n.qZA(),n.qZA(),n.TgZ(9,"mat-menu",null,4),n.TgZ(11,"button",5),n.NdJ("click",function(){return e.exportData.emit("csv")}),n._uU(12,"Csv"),n.qZA(),n.qZA(),n.qZA()),2&t){const t=n.MAs(5),e=n.MAs(10);n.xp6(1),n.Q6J("matMenuTriggerFor",t),n.xp6(5),n.Q6J("matMenuTriggerFor",e),n.xp6(1),n.hij(" ",n.lcZ(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[c.lW,l.p6,u.Hw,l.VK,l.OP],pipes:[h.X$],styles:[""]}),t})();function p(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"perun-web-apps-table-options",6),n.NdJ("exportData",function(e){return n.CHM(t),n.oxw().exportData.emit(e)}),n.qZA()}}function g(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"perun-web-apps-table-options",6),n.NdJ("exportData",function(e){return n.CHM(t),n.oxw().exportData.emit(e)}),n.qZA()}}const f=["*"];let m=(()=>{class t{constructor(t){this.tableConfigService=t,this.hideExport=!1,this.pageSizeOptions=o.f7,this.dataLength=0,this.exportData=new n.vpe,this.pageSize=5}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5)}set matPaginator(t){this.paginator=t}pageChangedTop(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}pageChangedBottom(t){this.paginator.pageSize=t.pageSize,this.paginator.pageIndex=t.pageIndex,this.paginator.page.emit(t),this.pageSize=t.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(r.dB))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(t,e){if(1&t&&n.Gf(s.NW,7),2&t){let t;n.iGM(t=n.CRH())&&(e.matPaginator=t.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId"},outputs:{exportData:"exportData"},ngContentSelectors:f,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(t,e){1&t&&(n.F$t(),n.TgZ(0,"div",0),n.TgZ(1,"div",1),n.TgZ(2,"mat-paginator",2),n.NdJ("page",function(t){return e.pageChangedTop(t)}),n.qZA(),n.YNc(3,p,1,0,"perun-web-apps-table-options",3),n.qZA(),n.TgZ(4,"div",4),n.Hsn(5),n.qZA(),n.TgZ(6,"div",1),n.TgZ(7,"mat-paginator",5),n.NdJ("page",function(t){return e.pageChangedBottom(t)}),n.qZA(),n.YNc(8,g,1,0,"perun-web-apps-table-options",3),n.qZA(),n.qZA()),2&t&&(n.xp6(2),n.Q6J("length",e.dataLength)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("ngIf",!e.hideExport),n.xp6(4),n.Q6J("length",e.paginator.length)("pageIndex",e.paginator.pageIndex)("pageSizeOptions",e.paginator.pageSizeOptions)("pageSize",e.paginator.pageSize),n.xp6(1),n.Q6J("ngIf",!e.hideExport))},directives:[s.NW,a.O5,d],styles:[""]}),t})()},39571:function(t,e,i){"use strict";i.d(e,{w:function(){return h}});var n=i(31572),s=i(61511),o=i(43691);function r(t,e){1&t&&(n.TgZ(0,"mat-icon",2),n._uU(1," info "),n.qZA())}function a(t,e){1&t&&(n.TgZ(0,"mat-icon",2),n._uU(1," warning "),n.qZA())}function c(t,e){1&t&&(n.TgZ(0,"mat-icon",2),n._uU(1," dangerous "),n.qZA())}function l(t,e){1&t&&(n.TgZ(0,"mat-icon",2),n._uU(1," check_circle "),n.qZA())}const u=["*"];let h=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:u,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(t,e){1&t&&(n.F$t(),n.TgZ(0,"div",0),n.YNc(1,r,2,0,"mat-icon",1),n.YNc(2,a,2,0,"mat-icon",1),n.YNc(3,c,2,0,"mat-icon",1),n.YNc(4,l,2,0,"mat-icon",1),n.Hsn(5),n.qZA()),2&t&&(n.ekj("warn-alert","warn"===e.alert_type)("error-alert","error"===e.alert_type)("success-alert","success"===e.alert_type)("info-alert","info"===e.alert_type),n.xp6(1),n.Q6J("ngIf","info"===e.alert_type),n.xp6(1),n.Q6J("ngIf","warn"===e.alert_type),n.xp6(1),n.Q6J("ngIf","error"===e.alert_type),n.xp6(1),n.Q6J("ngIf","success"===e.alert_type))},directives:[s.O5,o.Hw],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:grey;text-align:left;border:1px solid #b3b3b3;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px solid #ececec;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 solid #fedcda;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px solid #d7ffd7;border-radius:10px;background-color:#d7ffd7}"]}),t})()},22727:function(t,e,i){"use strict";i.d(e,{r:function(){return r}});var n=i(43691),s=i(61511),o=i(31572);let r=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[n.Ps,s.ez]]}),t})()},10709:function(t,e,i){"use strict";i.d(e,{l3:function(){return o},_j:function(){return n},LC:function(){return s},ZN:function(){return b},jt:function(){return a},pV:function(){return g},ru:function(){return c},F4:function(){return d},IO:function(){return f},vP:function(){return l},SB:function(){return h},oB:function(){return u},eR:function(){return p},X$:function(){return r},ZE:function(){return _},k1:function(){return w}});class n{}class s{}const o="*";function r(t,e){return{type:7,name:t,definitions:e,options:{}}}function a(t,e=null){return{type:4,styles:e,timings:t}}function c(t,e=null){return{type:3,steps:t,options:e}}function l(t,e=null){return{type:2,steps:t,options:e}}function u(t){return{type:6,styles:t,offset:null}}function h(t,e,i){return{type:0,name:t,styles:e,options:i}}function d(t){return{type:5,steps:t}}function p(t,e,i=null){return{type:1,expr:t,animation:e,options:i}}function g(t=null){return{type:9,options:t}}function f(t,e,i=null){return{type:11,selector:t,animation:e,options:i}}function m(t){Promise.resolve(null).then(t)}class b{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){m(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class _{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,n=0;const s=this.players.length;0==s?m(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++i==s&&this._onDestroy()}),t.onStart(()=>{++n==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const w="!"},24621:function(t,e,i){"use strict";i.d(e,{rt:function(){return j},s1:function(){return E},$s:function(){return y},Qr:function(){return N},kH:function(){return H},mK:function(){return P},Em:function(){return S},tE:function(){return U},qV:function(){return O},qm:function(){return G},Kd:function(){return L},X6:function(){return z},yG:function(){return Z}});var n=i(61511),s=i(31572),o=i(55959),r=i(87570),a=i(40878),c=i(75842),l=i(66599),u=i(47701),h=i(43835),d=i(79996),p=i(90611),g=i(19861),f=i(11353),m=i(36337);function b(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}let _=0;const w=new Map;let A=null,y=(()=>{class t{constructor(t){this._document=t}describe(t,e,i){if(!this._canBeDescribed(t,e))return;const n=v(e,i);"string"!=typeof e?(T(e),w.set(n,{messageElement:e,referenceCount:0})):w.has(n)||this._createMessageElement(e,i),this._isElementDescribedByMessage(t,n)||this._addMessageReference(t,n)}removeDescription(t,e,i){if(!e||!this._isElementNode(t))return;const n=v(e,i);if(this._isElementDescribedByMessage(t,n)&&this._removeMessageReference(t,n),"string"==typeof e){const t=w.get(n);t&&0===t.referenceCount&&this._deleteMessageElement(n)}A&&0===A.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const i=w.get(e);!function(t,e,i){const n=b(t,e);n.some(t=>t.trim()==i.trim())||(n.push(i.trim()),t.setAttribute(e,n.join(" ")))}(t,"aria-describedby",i.messageElement.id),t.setAttribute("cdk-describedby-host",""),i.referenceCount++}_removeMessageReference(t,e){const i=w.get(e);i.referenceCount--,function(t,e,i){const n=b(t,e).filter(t=>t!=i.trim());n.length?t.setAttribute(e,n.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",i.messageElement.id),t.removeAttribute("cdk-describedby-host")}_isElementDescribedByMessage(t,e){const i=b(t,"aria-describedby"),n=w.get(e),s=n&&n.messageElement.id;return!!s&&-1!=i.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const i=null==e?"":`${e}`.trim(),n=t.getAttribute("aria-label");return!(!i||n&&n.trim()===i)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0))},token:t,providedIn:"root"}),t})();function v(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function T(t){t.id||(t.id="cdk-describedby-message-"+_++)}class C{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new o.xQ,this._typeaheadSubscription=r.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new o.xQ,this.change=new o.xQ,t instanceof s.n_E&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,l.b)(t=>this._pressedLetters.push(t)),(0,u.b)(t),(0,h.h)(()=>this._pressedLetters.length>0),(0,d.U)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let i=1;i!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case c.Mf:return void this.tabOut.next();case c.JH:if(this._vertical&&i){this.setNextItemActive();break}return;case c.LH:if(this._vertical&&i){this.setPreviousItemActive();break}return;case c.SV:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case c.oh:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case c.Sd:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case c.uR:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||(0,c.Vb)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=c.A&&e<=c.Z||e>=c.xE&&e<=c.aO)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.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(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),n=e[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const n=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[n]))return void this.setActiveItem(n)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof s.n_E?this._items.toArray():this._items}}class E extends C{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class S extends C{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let k=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(e){return null}}((i=t).ownerDocument&&i.ownerDocument.defaultView||window);var i;if(e){if(-1===x(e))return!1;if(!this.isVisible(e))return!1}let n=t.nodeName.toLowerCase(),s=x(t);return t.hasAttribute("contenteditable")?-1!==s:"iframe"!==n&&"object"!==n&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),i="input"===e&&t.type;return"text"===i||"password"===i||"select"===e||"textarea"===e}(t))&&("audio"===n?!!t.hasAttribute("controls")&&-1!==s:"video"===n?-1!==s&&(null!==s||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||I(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(f.t4))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(f.t4))},token:t,providedIn:"root"}),t})();function I(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function x(t){if(!I(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class R{constructor(t,e,i,n,s=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=n,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),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(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let i=0;i=0;i--){let t=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe((0,p.q)(1)).subscribe(t)}}let O=(()=>{class t{constructor(t,e,i){this._checker=t,this._ngZone=e,this._document=i}create(t,e=!1){return new R(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(k),s.LFG(s.R0b),s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(k),s.LFG(s.R0b),s.LFG(n.K0))},token:t,providedIn:"root"}),t})(),P=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=(0,g.Ig)(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=(0,g.Ig)(t)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(t){const e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,f.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(O),s.Y36(n.K0))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[s.TTD]}),t})();"undefined"!=typeof Element&∈const D=new s.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),M=new s.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let L=(()=>{class t{constructor(t,e,i,n){this._ngZone=e,this._defaultOptions=n,this._document=i,this._liveElement=t||this._createLiveElement()}announce(t,...e){const i=this._defaultOptions;let n,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[n,s]=e,this.clear(),clearTimeout(this._previousTimeout),n||(n=i&&i.politeness?i.politeness:"polite"),null==s&&i&&(s=i.duration),this._liveElement.setAttribute("aria-live",n),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div");for(let i=0;i{class t{constructor(t,e,i,n){this._elementRef=t,this._liveAnnouncer=e,this._contentObserver=i,this._ngZone=n,this._politeness="polite"}get politeness(){return this._politeness}set politeness(t){this._politeness="off"===t||"assertive"===t?t:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const t=this._elementRef.nativeElement.textContent;t!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(t,this._politeness),this._previousAnnouncedText=t)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(L),s.Y36(m.yq),s.Y36(s.R0b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),t})();function z(t){return 0===t.buttons}function Z(t){const e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}const B=new s.OlP("cdk-focus-monitor-default-options"),F=(0,f.i$)({passive:!0,capture:!0});let U=(()=>{class t{constructor(t,e,i,n){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=z(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{Z(t)?this._lastTouchTarget||this._setOriginForCurrentEventQueue("keyboard"):(null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=q(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650))},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=q(t),i="focus"===t.type?this._onFocus:this._onBlur;for(let n=e;n;n=n.parentElement)i.call(this,t,n)},this._document=i,this._detectionMode=(null==n?void 0:n.detectionMode)||0}monitor(t,e=!1){const i=(0,g.fI)(t);if(!this._platform.isBrowser||1!==i.nodeType)return(0,a.of)(null);const n=(0,f.kV)(i)||this._getDocument(),s=this._elementInfo.get(i);if(s)return e&&(s.checkChildren=!0),s.subject;const r={checkChildren:e,subject:new o.xQ,rootNode:n};return this._elementInfo.set(i,r),this._registerGlobalListeners(r),r.subject}stopMonitoring(t){const e=(0,g.fI)(t),i=this._elementInfo.get(e);i&&(i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(i))}focusVia(t,e,i){const n=(0,g.fI)(t);n===this._getDocument().activeElement?this._getClosestElementsInfo(n).forEach(([t,i])=>this._originChanged(t,e,i)):(this._setOriginForCurrentEventQueue(e),"function"==typeof n.focus&&n.focus(i))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,i){i?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=q(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const i=this._elementInfo.get(e);i&&(i.checkChildren||e===q(t))&&this._originChanged(e,this._getFocusOrigin(t),i)}_onBlur(t,e){const i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,i=this._rootNodeFocusListenerCount.get(e)||0;i||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,F),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,F)}),this._rootNodeFocusListenerCount.set(e,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,F),t.addEventListener("mousedown",this._documentMousedownListener,F),t.addEventListener("touchstart",this._documentTouchstartListener,F),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,F),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,F),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,F),t.removeEventListener("mousedown",this._documentMousedownListener,F),t.removeEventListener("touchstart",this._documentTouchstartListener,F),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,i){this._setClasses(t,e),this._emitOrigin(i.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((i,n)=>{(n===t||i.checkChildren&&n.contains(t))&&e.push([n,i])}),e}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(f.t4),s.LFG(n.K0,8),s.LFG(B,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(f.t4),s.LFG(n.K0,8),s.LFG(B,8))},token:t,providedIn:"root"}),t})();function q(t){return t.composedPath?t.composedPath()[0]:t.target}let H=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new s.vpe}ngAfterViewInit(){const t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(U))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})(),G=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,i=e&&e.getComputedStyle?e.getComputedStyle(t):null,n=(i&&i.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),n){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black"),this._hasCheckedHighContrastMode=!0;const e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(f.t4),s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(f.t4),s.LFG(n.K0))},token:t,providedIn:"root"}),t})(),j=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(G))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[f.ud,m.Q8]]}),t})()},22526:function(t,e,i){"use strict";i.d(e,{vT:function(){return a},Is:function(){return r}});var n=i(31572),s=i(61511);const o=new n.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,n.f3M)(s.K0)}});let r=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new n.vpe,t){const e=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||e;this.value="ltr"===i||"rtl"===i?i:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(o,8))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(o,8))},token:t,providedIn:"root"}),t})(),a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})()},81391:function(t,e,i){"use strict";i.d(e,{i3:function(){return c},TU:function(){return r},Iq:function(){return l}});var n=i(61511),s=i(31572);class o{constructor(t,e){this._document=e;const i=this._textarea=this._document.createElement("textarea"),n=i.style;n.position="fixed",n.top=n.opacity="0",n.left="-999em",i.setAttribute("aria-hidden","true"),i.value=t,this._document.body.appendChild(i)}copy(){const t=this._textarea;let e=!1;try{if(t){const i=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch(i){}return e}destroy(){const t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}let r=(()=>{class t{constructor(t){this._document=t}copy(t){const e=this.beginCopy(t),i=e.copy();return e.destroy(),i}beginCopy(t){return new o(t,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0))},token:t,providedIn:"root"}),t})();const a=new s.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let c=(()=>{class t{constructor(t,e,i){this._clipboard=t,this._ngZone=e,this.text="",this.attempts=1,this.copied=new s.vpe,this._pending=new Set,i&&null!=i.attempts&&(this.attempts=i.attempts)}copy(t=this.attempts){if(t>1){let e=t;const i=this._clipboard.beginCopy(this.text);this._pending.add(i);const n=()=>{const t=i.copy();t||!--e||this._destroyed?(this._currentTimeout=null,this._pending.delete(i),i.destroy(),this.copied.emit(t)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(n,1))};n()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(t=>t.destroy()),this._pending.clear(),this._destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(r),s.Y36(s.R0b),s.Y36(a,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),t})(),l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})()},19861:function(t,e,i){"use strict";i.d(e,{t6:function(){return r},Eq:function(){return a},Ig:function(){return s},HM:function(){return c},fI:function(){return l},su:function(){return o},du:function(){return u}});var n=i(31572);function s(t){return null!=t&&"false"!=`${t}`}function o(t,e=0){return r(t)?Number(t):e}function r(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function a(t){return Array.isArray(t)?t:[t]}function c(t){return null==t?"":"string"==typeof t?t:`${t}px`}function l(t){return t instanceof n.SBq?t.nativeElement:t}function u(t,e=/\s+/){const i=[];if(null!=t){const n=Array.isArray(t)?t:`${t}`.split(e);for(const t of n){const e=`${t}`.trim();e&&i.push(e)}}return i}},4230:function(t,e,i){"use strict";i.d(e,{P3:function(){return l},o2:function(){return a},Ov:function(){return d},A8:function(){return p},yy:function(){return u},eX:function(){return h},k:function(){return g},Z9:function(){return c}});var n=i(4710),s=i(40878),o=i(55959),r=i(31572);class a{}function c(t){return t&&"function"==typeof t.connect}class l extends a{constructor(t){super(),this._data=t}connect(){return(0,n.b)(this._data)?this._data:(0,s.of)(this._data)}disconnect(){}}class u{applyChanges(t,e,i,n,s){t.forEachOperation((t,n,o)=>{let r,a;if(null==t.previousIndex){const s=i(t,n,o);r=e.createEmbeddedView(s.templateRef,s.context,s.index),a=1}else null==o?(e.remove(n),a=3):(r=e.get(n),e.move(r,o),a=2);s&&s({context:null==r?void 0:r.context,operation:a,record:t})})}detach(){}}class h{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(t,e,i,n,s){t.forEachOperation((t,o,r)=>{let a,c;null==t.previousIndex?(a=this._insertView(()=>i(t,o,r),r,e,n(t)),c=a?1:0):null==r?(this._detachAndCacheView(o,e),c=3):(a=this._moveView(o,r,e,n(t)),c=2),s&&s({context:null==a?void 0:a.context,operation:c,record:t})})}detach(){for(const t of this._viewCache)t.destroy();this._viewCache=[]}_insertView(t,e,i,n){const s=this._insertViewFromCache(e,i);if(s)return void(s.context.$implicit=n);const o=t();return i.createEmbeddedView(o.templateRef,o.context,o.index)}_detachAndCacheView(t,e){const i=e.detach(t);this._maybeCacheView(i,e)}_moveView(t,e,i,n){const s=i.get(t);return i.move(s,e),s.context.$implicit=n,s}_maybeCacheView(t,e){if(this._viewCache.lengththis._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}let p=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let i of this._listeners)i(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const g=new r.OlP("_ViewRepeater")},88975:function(t,e,i){"use strict";i.d(e,{Zt:function(){return pt},Wj:function(){return lt},_t:function(){return ft},bA:function(){return Y}});var n=i(31572),s=i(61511),o=i(4253),r=i(11353),a=i(19861),c=i(55959),l=i(87570),u=i(38289),h=i(91741),d=i(48318),p=i(31906),g=i(25416),f=i(56238),m=i(79996),b=i(90611),_=i(66599),w=i(44689),A=i(22526);function y(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function v(t,e){const i=e?"":"none";y(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:i,msUserSelect:i,webkitUserSelect:i,MozUserSelect:i})}function T(t,e){const i=t.style;i.position=e?"":"fixed",i.top=i.opacity=e?"":"0",i.left=e?"":"-999em"}function C(t,e){return e?t+" "+e:t}function E(t){const e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function S(t,e){return t.getPropertyValue(e).split(",").map(t=>t.trim())}function k(t){const e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function I(t,e,i){const{top:n,bottom:s,left:o,right:r}=t;return i>=n&&i<=s&&e>=o&&e<=r}function x(t,e,i){t.top+=e,t.bottom=t.top+t.height,t.left+=i,t.right=t.left+t.width}function R(t,e,i,n){const{top:s,right:o,bottom:r,left:a,width:c,height:l}=t,u=c*e,h=l*e;return n>s-h&&na-u&&i{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:k(t)})})}handleScroll(t){const e=t.target,i=this.positions.get(e);if(!i)return null;const n=e===this._document?e.documentElement:e,s=i.scrollPosition;let o,r;if(e===this._document){const t=this._viewportRuler.getViewportScrollPosition();o=t.top,r=t.left}else o=e.scrollTop,r=e.scrollLeft;const a=s.top-o,c=s.left-r;return this.positions.forEach((t,i)=>{t.clientRect&&e!==i&&n.contains(i)&&x(t.clientRect,a,c)}),s.top=o,s.left=r,{top:a,left:c}}}function P(t){const e=t.cloneNode(!0),i=e.querySelectorAll("[id]"),n=t.nodeName.toLowerCase();e.removeAttribute("id");for(let s=0;s{if(this.beforeStarted.next(),this._handles.length){const e=this._handles.find(e=>{const i=t.target;return!!i&&(i===e||e.contains(i))});!e||this._disabledHandles.has(e)||this.disabled||this._initializeDragSequence(e,t)}else this.disabled||this._initializeDragSequence(this._rootElement,t)},this._pointerMove=t=>{const e=this._getPointerPositionOnPage(t);if(!this._hasStartedDragging){if(Math.abs(e.x-this._pickupPositionOnPage.x)+Math.abs(e.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const e=Date.now()>=this._dragStartTime+this._getDragStartDelay(t),i=this._dropContainer;if(!e)return void this._endDragSequence(t);i&&(i.isDragging()||i.isReceiving())||(t.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(t)))}return}this._boundaryElement&&(this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect())),t.preventDefault();const i=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._lastKnownPointerPosition=e,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,e);else{const t=this._activeTransform;t.x=i.x-this._pickupPositionOnPage.x+this._passiveTransform.x,t.y=i.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(t.x,t.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform",`translate(${t.x} ${t.y})`)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:t,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})},this._pointerUp=t=>{this._endDragSequence(t)},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new O(i,s),o.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=(0,a.Ig)(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>v(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(t=>(0,a.fI)(t)),this._handles.forEach(t=>v(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(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=(0,a.fI)(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,Z),e.addEventListener("touchstart",this._pointerDown,z)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?(0,a.fI)(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&q(this._rootElement),q(this._anchor),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(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),v(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),v(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&q(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&q(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){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}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){H(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,i=t.parentNode,n=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),o=this._getShadowRoot();i.insertBefore(s,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),T(t,!1),this._document.body.appendChild(i.replaceChild(n,t)),this._getPreviewInsertionPoint(i,o).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),n=H(e),s=!n&&0!==e.button,o=this._rootElement,r=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),i||s||r)return;this._handles.length&&(this._rootElementTapHighlight=o.style.webkitTapHighlightColor||"",o.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{this._updateOnScroll(t)}),this._boundaryElement&&(this._boundaryRect=k(this._boundaryElement));const a=this._previewTemplate;this._pickupPositionInElement=a&&a.template&&!a.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);const c=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){T(this._rootElement,!0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),n=this._getPointerPositionOnPage(t),s=this._getDragDistance(n),o=e._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:s,dropPoint:n}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:o,distance:s,dropPoint:n}),e.drop(this,i,this._initialIndex,this._initialContainer,o,s,n),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:i,y:n}){let s=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=s,this._dropContainer.enter(this,t,e,s===this._initialContainer&&s.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:s,currentIndex:s.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,n),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let n;if(i&&t){const e=t.matchSize?this._rootElement.getBoundingClientRect():null,s=t.viewContainer.createEmbeddedView(i,t.context);s.detectChanges(),n=G(s,this._document),this._previewRef=s,t.matchSize?j(n,e):n.style.transform=F(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const t=this._rootElement;n=P(t),j(n,t.getBoundingClientRect()),this._initialTransform&&(n.style.transform=this._initialTransform)}return y(n.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:`${this._config.zIndex||1e3}`}),v(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(t=>n.classList.add(t)):n.classList.add(e)),n}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);const e=function(t){const e=getComputedStyle(t),i=S(e,"transition-property"),n=i.find(t=>"transform"===t||"all"===t);if(!n)return 0;const s=i.indexOf(n),o=S(e,"transition-duration"),r=S(e,"transition-delay");return E(o[s])+E(r[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const i=e=>{(!e||e.target===this._preview&&"transform"===e.propertyName)&&(this._preview.removeEventListener("transitionend",i),t(),clearTimeout(n))},n=setTimeout(i,1.5*e);this._preview.addEventListener("transitionend",i)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=G(this._placeholderRef,this._document)):i=P(this._rootElement),i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e){const i=this._rootElement.getBoundingClientRect(),n=t===this._rootElement?null:t,s=n?n.getBoundingClientRect():i,o=H(e)?e.targetTouches[0]:e,r=this._getViewportScrollPosition();return{x:s.left-i.left+(o.pageX-s.left-r.left),y:s.top-i.top+(o.pageY-s.top-r.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),i=H(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,n=i.pageX-e.left,s=i.pageY-e.top;if(this._ownerSVGElement){const t=this._ownerSVGElement.getScreenCTM();if(t){const e=this._ownerSVGElement.createSVGPoint();return e.x=n,e.y=s,e.matrixTransform(t.inverse())}}return{x:n,y:s}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:n}=this.constrainPosition?this.constrainPosition(t,this):t;if("x"===this.lockAxis||"x"===e?n=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==e||(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:t,y:e}=this._pickupPositionInElement,s=this._boundaryRect,o=this._previewRect,r=s.top+e,a=s.bottom-(o.height-e);i=U(i,s.left+t,s.right-(o.width-t)),n=U(n,r,a)}return{x:i,y:n}}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,n=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,o=Math.abs(e-s.x),r=Math.abs(i-s.y);return o>this._config.pointerDirectionChangeThreshold&&(n.x=e>s.x?1:-1,s.x=e),r>this._config.pointerDirectionChangeThreshold&&(n.y=i>s.y?1:-1,s.y=i),n}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,v(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,Z),t.removeEventListener("touchstart",this._pointerDown,z)}_applyRootElementTransform(t,e){const i=F(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=C(i,this._initialTransform)}_applyPreviewTransform(t,e){var i;const n=(null===(i=this._previewTemplate)||void 0===i?void 0:i.template)?void 0:this._initialTransform,s=F(t,e);this._preview.style.transform=C(s,n)}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._boundaryElement.getBoundingClientRect(),n=this._rootElement.getBoundingClientRect();if(0===i.width&&0===i.height||0===n.width&&0===n.height)return;const s=i.left-n.left,o=n.right-i.right,r=i.top-n.top,a=n.bottom-i.bottom;i.width>n.width?(s>0&&(t+=s),o>0&&(t-=o)):t=0,i.height>n.height?(r>0&&(e+=r),a>0&&(e-=a)):e=0,t===this._passiveTransform.x&&e===this._passiveTransform.y||this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:H(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const i=t.target;this._boundaryRect&&(i===this._document||i!==this._boundaryElement&&i.contains(this._boundaryElement))&&x(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(){const t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,r.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){const i=this._previewContainer||"global";if("parent"===i)return t;if("global"===i){const t=this._document;return e||t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement||t.body}return(0,a.fI)(i)}}function F(t,e){return`translate3d(${Math.round(t)}px, ${Math.round(e)}px, 0)`}function U(t,e,i){return Math.max(e,Math.min(i,t))}function q(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function H(t){return"t"===t.type[0]}function G(t,e){const i=t.rootNodes;if(1===i.length&&i[0].nodeType===e.ELEMENT_NODE)return i[0];const n=e.createElement("div");return i.forEach(t=>n.appendChild(t)),n}function j(t,e){t.style.width=`${e.width}px`,t.style.height=`${e.height}px`,t.style.transform=F(e.left,e.top)}function Y(t,e,i){const n=K(e,t.length-1),s=K(i,t.length-1);if(n===s)return;const o=t[n],r=s!0,this.sortPredicate=()=>!0,this.beforeStarted=new c.xQ,this.entered=new c.xQ,this.exited=new c.xQ,this.dropped=new c.xQ,this.sorted=new c.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=l.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new c.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),(0,u.F)(0,h.r).pipe((0,g.R)(this._stopScrollTimers)).subscribe(()=>{const t=this._scrollNode,e=this.autoScrollStep;1===this._verticalScrollDirection?J(t,-e):2===this._verticalScrollDirection&&J(t,e),1===this._horizontalScrollDirection?Q(t,-e):2===this._horizontalScrollDirection&&Q(t,e)})},this.element=(0,a.fI)(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new O(i,s)}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(t,e,i,n){let s;this._draggingStarted(),null==n?(s=this.sortingDisabled?this._draggables.indexOf(t):-1,-1===s&&(s=this._getItemIndexFromPointerPosition(t,e,i))):s=n;const o=this._activeDraggables,r=o.indexOf(t),c=t.getPlaceholderElement();let l=o[s];if(l===t&&(l=o[s+1]),r>-1&&o.splice(r,1),l&&!this._dragDropRegistry.isDragging(l)){const e=l.getRootElement();e.parentElement.insertBefore(c,e),o.splice(s,0,t)}else if(this._shouldEnterAsFirstChild(e,i)){const e=o[0].getRootElement();e.parentNode.insertBefore(c,e),o.unshift(t)}else(0,a.fI)(this.element).appendChild(c),o.push(t);c.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,n,s,o,r){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:n,isPointerOverContainer:s,distance:o,dropPoint:r})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(t=>t.isDragging()).every(e=>-1===t.indexOf(e))?this._reset():this._cacheItems()),this}withDirection(t){return this._direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._orientation=t,this}withScrollableParents(t){const e=(0,a.fI)(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?$("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,e=>e.drag===t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,n){if(this.sortingDisabled||!this._clientRect||!R(this._clientRect,.05,e,i))return;const s=this._itemPositions,o=this._getItemIndexFromPointerPosition(t,e,i,n);if(-1===o&&s.length>0)return;const r="horizontal"===this._orientation,a=$(s,e=>e.drag===t),c=s[o],l=c.clientRect,u=a>o?1:-1,h=this._getItemOffsetPx(s[a].clientRect,l,u),d=this._getSiblingOffsetPx(a,s,u),p=s.slice();Y(s,a,o),this.sorted.next({previousIndex:a,currentIndex:o,container:this,item:t}),s.forEach((e,i)=>{if(p[i]===e)return;const n=e.drag===t,s=n?h:d,o=n?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=s,r?(o.style.transform=C(`translate3d(${Math.round(e.offset)}px, 0, 0)`,e.initialTransform),x(e.clientRect,0,s)):(o.style.transform=C(`translate3d(0, ${Math.round(e.offset)}px, 0)`,e.initialTransform),x(e.clientRect,s,0))}),this._previousSwap.overlaps=I(l,e,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=r?n.x:n.y}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,n=0,s=0;if(this._parentPositions.positions.forEach((o,r)=>{r!==this._document&&o.clientRect&&!i&&R(o.clientRect,.05,t,e)&&([n,s]=function(t,e,i,n){const s=W(e,n),o=X(e,i);let r=0,a=0;if(s){const e=t.scrollTop;1===s?e>0&&(r=1):t.scrollHeight-e>t.clientHeight&&(r=2)}if(o){const e=t.scrollLeft;1===o?e>0&&(a=1):t.scrollWidth-e>t.clientWidth&&(a=2)}return[r,a]}(r,o.clientRect,t,e),(n||s)&&(i=r))}),!n&&!s){const{width:o,height:r}=this._viewportRuler.getViewportSize(),a={width:o,height:r,top:0,right:o,bottom:r,left:0};n=W(a,e),s=X(a,t),i=window}!i||n===this._verticalScrollDirection&&s===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=n,this._horizontalScrollDirection=s,this._scrollNode=i,(n||s)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=(0,a.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=(0,a.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_cacheItemPositions(){const t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(t=>{const e=t.getVisibleElement();return{drag:t,offset:0,initialTransform:e.style.transform||"",clientRect:k(e)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_reset(){this._isDragging=!1;const t=(0,a.fI)(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(t=>{var e;const i=t.getRootElement();if(i){const n=null===(e=this._itemPositions.find(e=>e.drag===t))||void 0===e?void 0:e.initialTransform;i.style.transform=n||""}}),this._siblings.forEach(t=>t._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(t,e,i){const n="horizontal"===this._orientation,s=e[t].clientRect,o=e[t+-1*i];let r=s[n?"width":"height"]*i;if(o){const t=n?"left":"top",e=n?"right":"bottom";-1===i?r-=o.clientRect[t]-s[e]:r+=s[t]-o.clientRect[e]}return r}_getItemOffsetPx(t,e,i){const n="horizontal"===this._orientation;let s=n?e.left-t.left:e.top-t.top;return-1===i&&(s+=n?e.width-t.width:e.height-t.height),s}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,n="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){const s=i[i.length-1].clientRect;return n?t>=s.right:e>=s.bottom}{const s=i[0].clientRect;return n?t<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(t,e,i,n){const s="horizontal"===this._orientation,o=$(this._itemPositions,({drag:o,clientRect:r},a,c)=>{if(o===t)return c.length<2;if(n){const t=s?n.x:n.y;if(o===this._previousSwap.drag&&this._previousSwap.overlaps&&t===this._previousSwap.delta)return!1}return s?e>=Math.floor(r.left)&&e=Math.floor(r.top)&&in._canReceive(t,e,i))}_canReceive(t,e,i){if(!this._clientRect||!I(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const n=this._getShadowRoot().elementFromPoint(e,i);if(!n)return!1;const s=(0,a.fI)(this.element);return n===s||s.contains(n)}_startReceiving(t,e){const i=this._activeSiblings;!i.has(t)&&e.every(t=>this.enterPredicate(t,this)||this._draggables.indexOf(t)>-1)&&(i.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&(this._itemPositions.forEach(({clientRect:t})=>{x(t,e.top,e.left)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=(0,r.kV)((0,a.fI)(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._activeDraggables.filter(t=>t.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function $(t,e){for(let i=0;i=i-o&&e<=i+o?1:e>=n-o&&e<=n+o?2:0}function X(t,e){const{left:i,right:n,width:s}=t,o=.05*s;return e>=i-o&&e<=i+o?1:e>=n-o&&e<=n+o?2:0}const tt=(0,r.i$)({passive:!1,capture:!0});let et=(()=>{class t{constructor(t,e){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=t=>t.isDragging(),this.pointerMove=new c.xQ,this.pointerUp=new c.xQ,this.scroll=new c.xQ,this._preventDefaultWhileDragging=t=>{this._activeDragInstances.length>0&&t.preventDefault()},this._persistentTouchmoveListener=t=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&t.preventDefault(),this.pointerMove.next(t))},this._document=e}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,tt)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,tt)}startDragging(t,e){if(!(this._activeDragInstances.indexOf(t)>-1)&&(this._activeDragInstances.push(t),1===this._activeDragInstances.length)){const t=e.type.startsWith("touch");this._globalListeners.set(t?"touchend":"mouseup",{handler:t=>this.pointerUp.next(t),options:!0}).set("scroll",{handler:t=>this.scroll.next(t),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:tt}),t||this._globalListeners.set("mousemove",{handler:t=>this.pointerMove.next(t),options:tt}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((t,e)=>{this._document.addEventListener(e,t.handler,t.options)})})}}stopDragging(t){const e=this._activeDragInstances.indexOf(t);e>-1&&(this._activeDragInstances.splice(e,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(t){return this._activeDragInstances.indexOf(t)>-1}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,e)=>{this._document.removeEventListener(e,t.handler,t.options)}),this._globalListeners.clear()}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.R0b),n.LFG(s.K0))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(n.R0b),n.LFG(s.K0))},token:t,providedIn:"root"}),t})();const it={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let nt=(()=>{class t{constructor(t,e,i,n){this._document=t,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=n}createDrag(t,e=it){return new B(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new V(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(s.K0),n.LFG(n.R0b),n.LFG(o.rL),n.LFG(et))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(s.K0),n.LFG(n.R0b),n.LFG(o.rL),n.LFG(et))},token:t,providedIn:"root"}),t})();const st=new n.OlP("CDK_DRAG_PARENT"),ot=new n.OlP("CdkDropListGroup"),rt=new n.OlP("CDK_DRAG_CONFIG");let at=0;const ct=new n.OlP("CdkDropList");let lt=(()=>{class t{constructor(e,i,s,o,r,a,l){this.element=e,this._changeDetectorRef=s,this._scrollDispatcher=o,this._dir=r,this._group=a,this._destroyed=new c.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+at++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new n.vpe,this.entered=new n.vpe,this.exited=new n.vpe,this.sorted=new n.vpe,this._unsortedItems=new Set,this._dropListRef=i.createDropList(e),this._dropListRef.data=this,l&&this._assignDefaults(l),this._dropListRef.enterPredicate=(t,e)=>this.enterPredicate(t.data,e.data),this._dropListRef.sortPredicate=(t,e,i)=>this.sortPredicate(t,e.data,i.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),a&&a._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(t){this._dropListRef.disabled=this._disabled=(0,a.Ig)(t)}addItem(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((t,e)=>t._dragRef.getVisibleElement().compareDocumentPosition(e._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=t._dropLists.indexOf(this);e>-1&&t._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((0,f.O)(this._dir.value),(0,g.R)(this._destroyed)).subscribe(t=>e.withDirection(t)),e.beforeStarted.subscribe(()=>{const i=(0,a.Eq)(this.connectedTo).map(e=>"string"==typeof e?t._dropLists.find(t=>t.id===e):e);if(this._group&&this._group._items.forEach(t=>{-1===i.indexOf(t)&&i.push(t)}),!this._scrollableParentsResolved){const t=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(t=>t.getElementRef().nativeElement);this._dropListRef.withScrollableParents(t),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=(0,a.Ig)(this.sortingDisabled),e.autoScrollDisabled=(0,a.Ig)(this.autoScrollDisabled),e.autoScrollStep=(0,a.su)(this.autoScrollStep,2),e.connectedTo(i.filter(t=>t&&t!==this).map(t=>t._dropListRef)).withOrientation(this.orientation)})}_handleEvents(t){t.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:this,item:t.item.data,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:this,item:t.item.data}),this._changeDetectorRef.markForCheck()}),t.sorted.subscribe(t=>{this.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:this,item:t.item.data})}),t.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}),this._changeDetectorRef.markForCheck()})}_assignDefaults(t){const{lockAxis:e,draggingDisabled:i,sortingDisabled:n,listAutoScrollDisabled:s,listOrientation:o}=t;this.disabled=null!=i&&i,this.sortingDisabled=null!=n&&n,this.autoScrollDisabled=null!=s&&s,this.orientation=o||"vertical",e&&(this.lockAxis=e)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(t=>t._dragRef))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(nt),n.Y36(n.sBO),n.Y36(o.mF),n.Y36(A.Is,8),n.Y36(ot,12),n.Y36(rt,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,e){2&t&&(n.uIk("id",e.id),n.ekj("cdk-drop-list-disabled",e.disabled)("cdk-drop-list-dragging",e._dropListRef.isDragging())("cdk-drop-list-receiving",e._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[n._Bn([{provide:ot,useValue:void 0},{provide:ct,useExisting:t}])]}),t._dropLists=[],t})();const ut=new n.OlP("CdkDragHandle"),ht=new n.OlP("CdkDragPlaceholder"),dt=new n.OlP("CdkDragPreview");let pt=(()=>{class t{constructor(e,i,s,o,r,a,l,u,h,p,g){this.element=e,this.dropContainer=i,this._ngZone=o,this._viewContainerRef=r,this._dir=l,this._changeDetectorRef=h,this._selfHandle=p,this._parentDrag=g,this._destroyed=new c.xQ,this.started=new n.vpe,this.released=new n.vpe,this.ended=new n.vpe,this.entered=new n.vpe,this.exited=new n.vpe,this.dropped=new n.vpe,this.moved=new d.y(t=>{const e=this._dragRef.moved.pipe((0,m.U)(t=>({source:this,pointerPosition:t.pointerPosition,event:t.event,delta:t.delta,distance:t.distance}))).subscribe(t);return()=>{e.unsubscribe()}}),this._dragRef=u.createDrag(e,{dragStartThreshold:a&&null!=a.dragStartThreshold?a.dragStartThreshold:5,pointerDirectionChangeThreshold:a&&null!=a.pointerDirectionChangeThreshold?a.pointerDirectionChangeThreshold:5,zIndex:null==a?void 0:a.zIndex}),this._dragRef.data=this,t._dragInstances.push(this),a&&this._assignDefaults(a),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(t){this._disabled=(0,a.Ig)(t),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.onStable.pipe((0,b.q)(1),(0,g.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._handles.changes.pipe((0,f.O)(this._handles),(0,_.b)(t=>{const e=t.filter(t=>t._parentDrag===this).map(t=>t.element);this._selfHandle&&this.rootElementSelector&&e.push(this.element),this._dragRef.withHandles(e)}),(0,w.w)(t=>(0,p.T)(...t.map(t=>t._stateChanges.pipe((0,f.O)(t))))),(0,g.R)(this._destroyed)).subscribe(t=>{const e=this._dragRef,i=t.element.nativeElement;t.disabled?e.disableHandle(i):e.enableHandle(i)}),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})}ngOnChanges(t){const e=t.rootElementSelector,i=t.freeDragPosition;e&&!e.firstChange&&this._updateRootElement(),i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=t._dragInstances.indexOf(this);e>-1&&t._dragInstances.splice(e,1),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}_updateRootElement(){const t=this.element.nativeElement,e=this.rootElementSelector?gt(t,this.rootElementSelector):t;this._dragRef.withRootElement(e||t)}_getBoundaryElement(){const t=this.boundaryElement;return t?"string"==typeof t?gt(this.element.nativeElement,t):(0,a.fI)(t):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const t=this._dir,i=this.dragStartDelay,n=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,s=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 i&&i?i:(0,a.su)(i),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(n).withPreviewTemplate(s).withPreviewContainer(this.previewContainer||"global"),t&&e.withDirection(t.value)}}),e.beforeStarted.pipe((0,b.q)(1)).subscribe(()=>{var i,n;if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let s=this.element.nativeElement.parentElement;for(;s;){if(null===(i=s.classList)||void 0===i?void 0:i.contains("cdk-drag")){e.withParent((null===(n=t._dragInstances.find(t=>t.element.nativeElement===s))||void 0===n?void 0:n._dragRef)||null);break}s=s.parentElement}})}_handleEvents(t){t.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),t.released.subscribe(()=>{this.released.emit({source:this})}),t.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance,dropPoint:t.dropPoint}),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),t.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})})}_assignDefaults(t){const{lockAxis:e,dragStartDelay:i,constrainPosition:n,previewClass:s,boundaryElement:o,draggingDisabled:r,rootElementSelector:a,previewContainer:c}=t;this.disabled=null!=r&&r,this.dragStartDelay=i||0,e&&(this.lockAxis=e),n&&(this.constrainPosition=n),s&&(this.previewClass=s),o&&(this.boundaryElement=o),a&&(this.rootElementSelector=a),c&&(this.previewContainer=c)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(ct,12),n.Y36(s.K0),n.Y36(n.R0b),n.Y36(n.s_b),n.Y36(rt,8),n.Y36(A.Is,8),n.Y36(nt),n.Y36(n.sBO),n.Y36(ut,10),n.Y36(st,12))},t.\u0275dir=n.lG2({type:t,selectors:[["","cdkDrag",""]],contentQueries:function(t,e,i){if(1&t&&(n.Suo(i,dt,5),n.Suo(i,ht,5),n.Suo(i,ut,5)),2&t){let t;n.iGM(t=n.CRH())&&(e._previewTemplate=t.first),n.iGM(t=n.CRH())&&(e._placeholderTemplate=t.first),n.iGM(t=n.CRH())&&(e._handles=t)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,e){2&t&&n.ekj("cdk-drag-disabled",e.disabled)("cdk-drag-dragging",e._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],previewContainer:["cdkDragPreviewContainer","previewContainer"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[n._Bn([{provide:st,useExisting:t}]),n.TTD]}),t._dragInstances=[],t})();function gt(t,e){let i=t.parentElement;for(;i;){if(i.matches?i.matches(e):i.msMatchesSelector(e))return i;i=i.parentElement}return null}let ft=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[nt],imports:[o.ZD]}),t})()},75842:function(t,e,i){"use strict";i.d(e,{A:function(){return w},ZH:function(){return n},OC:function(){return y},yY:function(){return m},JH:function(){return f},uR:function(){return u},K5:function(){return o},hY:function(){return r},Sd:function(){return h},oh:function(){return d},aO:function(){return _},VM:function(){return l},Ku:function(){return c},SV:function(){return g},L_:function(){return a},Mf:function(){return s},LH:function(){return p},Z:function(){return A},xE:function(){return b},Vb:function(){return v}});const n=8,s=9,o=13,r=27,a=32,c=33,l=34,u=35,h=36,d=37,p=38,g=39,f=40,m=46,b=48,_=57,w=65,A=90,y=188;function v(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}},36337:function(t,e,i){"use strict";i.d(e,{wD:function(){return u},yq:function(){return l},Q8:function(){return h}});var n=i(19861),s=i(31572),o=i(48318),r=i(55959),a=i(47701);let c=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),l=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=(0,n.fI)(t);return new o.y(t=>{const i=this._observeElement(e).subscribe(t);return()=>{i.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new r.xQ,i=this._mutationObserverFactory.create(t=>e.next(t));i&&i.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:i,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:i}=this._observedElements.get(t);e&&e.disconnect(),i.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(c))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(c))},token:t,providedIn:"root"}),t})(),u=(()=>{class t{constructor(t,e,i){this._contentObserver=t,this._elementRef=e,this._ngZone=i,this.event=new s.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,n.Ig)(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=(0,n.su)(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe((0,a.b)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(l),s.Y36(s.SBq),s.Y36(s.R0b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),h=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[c]}),t})()},2522:function(t,e,i){"use strict";i.d(e,{pI:function(){return $},xu:function(){return V},_G:function(){return z},aV:function(){return j},X_:function(){return k},Xj:function(){return M},U8:function(){return Q}});var n=i(4253),s=i(31572),o=i(11353),r=i(22526),a=i(61511),c=i(19861),l=i(26899),u=i(55959),h=i(87570),d=i(31906),p=i(96673);class g{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new f(t,this.predicate,this.inclusive))}}class f extends p.L{constructor(t,e,i){super(t),this.predicate=e,this.inclusive=i,this.index=0}_next(t){const e=this.destination;let i;try{i=this.predicate(t,this.index++)}catch(n){return void e.error(n)}this.nextOrComplete(t,i)}nextOrComplete(t,e){const i=this.destination;Boolean(e)?i.next(t):(this.inclusive&&i.next(t),i.complete())}}var m=i(90611),b=i(25416),_=i(75842);const w=(0,o.Mq)();class A{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=(0,c.HM)(-this._previousScrollPosition.left),t.style.top=(0,c.HM)(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,i=this._document.body.style,n=e.scrollBehavior||"",s=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),w&&(e.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),w&&(e.scrollBehavior=n,i.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class y{constructor(t,e,i,n){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class v{enable(){}disable(){}attach(){}}function T(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function C(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class E{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=n,this._scrollSubscription=null}attach(t){this._overlayRef=t}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 t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:i}=this._viewportRuler.getViewportSize();T(t,[{width:e,height:i,bottom:i,right:e,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 S=(()=>{class t{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this.noop=()=>new v,this.close=t=>new y(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new A(this._viewportRuler,this._document),this.reposition=t=>new E(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=n}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.mF),s.LFG(n.rL),s.LFG(s.R0b),s.LFG(a.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.mF),s.LFG(n.rL),s.LFG(s.R0b),s.LFG(a.K0))},token:t,providedIn:"root"}),t})();class k{constructor(t){if(this.scrollStrategy=new v,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class I{constructor(t,e,i,n,s){this.offsetX=i,this.offsetY=n,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class x{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let R=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(a.K0))},token:t,providedIn:"root"}),t})(),O=(()=>{class t extends R{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let i=e.length-1;i>-1;i--)if(e[i]._keydownEvents.observers.length>0){e[i]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(a.K0))},token:t,providedIn:"root"}),t})(),P=(()=>{class t extends R{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,i=this._attachedOverlays.slice();for(let n=i.length-1;n>-1;n--){const s=i[n];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){if(super.add(t),!this._isAttached){const t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),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 t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0),s.LFG(o.t4))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(a.K0),s.LFG(o.t4))},token:t,providedIn:"root"}),t})();const D="undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha;let M=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){if(this._platform.isBrowser||D){const t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let e=0;ethis._backdropClick.next(t),this._keydownEvents=new u.xQ,this._outsidePointerEvents=new u.xQ,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,m.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),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 t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),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&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=(0,c.HM)(this._config.width),t.height=(0,c.HM)(this._config.height),t.minWidth=(0,c.HM)(this._config.minWidth),t.minHeight=(0,c.HM)(this._config.minHeight),t.maxWidth=(0,c.HM)(this._config.maxWidth),t.maxHeight=(0,c.HM)(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),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),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const n=t.classList;(0,c.Eq)(e).forEach(t=>{t&&(i?n.add(t):n.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe((0,b.R)((0,d.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._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const N=/([A-Za-z%]+)$/;class z{constructor(t,e,i,n,s){this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=s,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 u.xQ,this._resizeSubscription=h.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.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();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,n=[];let s;for(let o of this._preferredPositions){let r=this._getOriginPoint(t,o),a=this._getOverlayPoint(r,e,o),c=this._getOverlayFit(a,e,i,o);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(o,r);this._canFitWithFlexibleDimensions(c,a,i)?n.push({position:o,origin:r,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(r,o)}):(!s||s.overlayFit.visibleAreae&&(e=n,t=i)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Z(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let i,n;if("center"==e.originX)i=t.left+t.width/2;else{const n=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;i="start"==e.originX?n:s}return n="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:n}}_getOverlayPoint(t,e,i){let n,s;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+s}}_getOverlayFit(t,e,i,n){const s=F(e);let{x:o,y:r}=t,a=this._getOffset(n,"x"),c=this._getOffset(n,"y");a&&(o+=a),c&&(r+=c);let l=0-r,u=r+s.height-i.height,h=this._subtractOverflows(s.width,0-o,o+s.width-i.width),d=this._subtractOverflows(s.height,l,u),p=h*d;return{visibleArea:p,isCompletelyWithinViewport:s.width*s.height===p,fitsInViewportVertically:d===s.height,fitsInViewportHorizontally:h==s.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const n=i.bottom-e.y,s=i.right-e.x,o=B(this._overlayRef.getConfig().minHeight),r=B(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=r&&r<=s;return(t.fitsInViewportVertically||null!=o&&o<=n)&&a}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const n=F(e),s=this._viewportRect,o=Math.max(t.x+n.width-s.width,0),r=Math.max(t.y+n.height-s.height,0),a=Math.max(s.top-i.top-t.y,0),c=Math.max(s.left-i.left-t.x,0);let l=0,u=0;return l=n.width<=s.width?c||-o:t.xn&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-n/2)}if("end"===e.overlayX&&!n||"start"===e.overlayX&&n)l=i.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!n||"end"===e.overlayX&&n)c=t.x,a=i.right-t.x;else{const e=Math.min(i.right-t.x+i.left,t.x),n=this._lastBoundingBoxSize.width;a=2*e,c=t.x-e,a>n&&!this._isInitialRender&&!this._growAfterOpen&&(c=t.x-n/2)}return{top:o,left:c,bottom:r,right:l,width:a,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;n.height=(0,c.HM)(i.height),n.top=(0,c.HM)(i.top),n.bottom=(0,c.HM)(i.bottom),n.width=(0,c.HM)(i.width),n.left=(0,c.HM)(i.left),n.right=(0,c.HM)(i.right),n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(n.maxHeight=(0,c.HM)(t)),s&&(n.maxWidth=(0,c.HM)(s))}this._lastBoundingBoxSize=i,Z(this._boundingBox.style,n)}_resetBoundingBoxStyles(){Z(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Z(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},n=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(n){const n=this._viewportRuler.getViewportScrollPosition();Z(i,this._getExactOverlayY(e,t,n)),Z(i,this._getExactOverlayX(e,t,n))}else i.position="static";let r="",a=this._getOffset(e,"x"),l=this._getOffset(e,"y");a&&(r+=`translateX(${a}px) `),l&&(r+=`translateY(${l}px)`),i.transform=r.trim(),o.maxHeight&&(n?i.maxHeight=(0,c.HM)(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(n?i.maxWidth=(0,c.HM)(o.maxWidth):s&&(i.maxWidth="")),Z(this._pane.style,i)}_getExactOverlayY(t,e,i){let n={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i));let o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=o,"bottom"===t.overlayY?n.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":n.top=(0,c.HM)(s.y),n}_getExactOverlayX(t,e,i){let n,s={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),n=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===n?s.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":s.left=(0,c.HM)(o.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:C(t,i),isOriginOutsideView:T(t,i),isOverlayClipped:C(e,i),isOverlayOutsideView:T(e,i)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&(0,c.Eq)(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof s.SBq)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function Z(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function B(t){if("number"!=typeof t&&null!=t){const[e,i]=t.split(N);return i&&"px"!==i?null:parseFloat(e)}return t||null}function F(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class U{constructor(t,e,i,n,s,o,r){this._preferredPositions=[],this._positionStrategy=new z(i,n,s,o,r).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,i,n){const s=new I(t,e,i,n);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}class q{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:n,height:s,maxWidth:o,maxHeight:r}=i,a=!("100%"!==n&&"100vw"!==n||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||r&&"100%"!==r&&"100vh"!==r);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove("cdk-global-overlay-wrapper"),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let H=(()=>{class t{constructor(t,e,i,n){this._viewportRuler=t,this._document=e,this._platform=i,this._overlayContainer=n}global(){return new q}connectedTo(t,e,i){return new U(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new z(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.rL),s.LFG(a.K0),s.LFG(o.t4),s.LFG(M))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.rL),s.LFG(a.K0),s.LFG(o.t4),s.LFG(M))},token:t,providedIn:"root"}),t})(),G=0,j=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,l,u){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=s,this._injector=o,this._ngZone=r,this._document=a,this._directionality=c,this._location=l,this._outsideClickDispatcher=u}create(t){const e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),s=new k(t);return s.direction=s.direction||this._directionality.value,new L(n,e,i,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+G++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(s.z2F)),new l.u0(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(S),s.LFG(M),s.LFG(s._Vd),s.LFG(H),s.LFG(O),s.LFG(s.zs3),s.LFG(s.R0b),s.LFG(a.K0),s.LFG(r.Is),s.LFG(a.Ye),s.LFG(P))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const Y=[{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"}],K=new s.OlP("cdk-connected-overlay-scroll-strategy");let V=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),$=(()=>{class t{constructor(t,e,i,n,o){this._overlay=t,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.w.EMPTY,this._attachSubscription=h.w.EMPTY,this._detachSubscription=h.w.EMPTY,this._positionSubscription=h.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new s.vpe,this.positionChange=new s.vpe,this.attach=new s.vpe,this.detach=new s.vpe,this.overlayKeydown=new s.vpe,this.overlayOutsideClick=new s.vpe,this._templatePortal=new l.UE(e,i),this._scrollStrategyFactory=n,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=(0,c.Ig)(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=(0,c.Ig)(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=(0,c.Ig)(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=(0,c.Ig)(t)}get push(){return this._push}set push(t){this._push=(0,c.Ig)(t)}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(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=Y);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),t.keyCode!==_.hY||this.disableClose||(0,_.Vb)(t)||(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new k({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}_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(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t,e=!1){return i=>i.lift(new g(t,e))}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(j),s.Y36(s.Rgc),s.Y36(s.s_b),s.Y36(K),s.Y36(r.Is,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[s.TTD]}),t})();const J={provide:K,deps:[j],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[j,J],imports:[[r.vT,l.eL,n.Cl],n.Cl]}),t})()},11353:function(t,e,i){"use strict";i.d(e,{t4:function(){return a},ud:function(){return c},ht:function(){return w},kV:function(){return _},_i:function(){return b},qK:function(){return u},i$:function(){return f},Mq:function(){return m}});var n=i(31572),s=i(61511);let o;try{o="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(A){o=!1}let r,a=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?(0,s.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&&!o)&&"undefined"!=typeof CSS&&!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 t.\u0275fac=function(e){return new(e||t)(n.LFG(n.Lbi))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(n.Lbi))},token:t,providedIn:"root"}),t})(),c=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})();const l=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function u(){if(r)return r;if("object"!=typeof document||!document)return r=new Set(l),r;let t=document.createElement("input");return r=new Set(l.filter(e=>(t.setAttribute("type",e),t.type===e))),r}let h,d,p,g;function f(t){return function(){if(null==h&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>h=!0}))}finally{h=h||!1}return h}()?t:!!t.capture}function m(){if(null==p){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return p=!1,p;if("scrollBehavior"in document.documentElement.style)p=!0;else{const t=Element.prototype.scrollTo;p=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return p}function b(){if("object"!=typeof document||!document)return 0;if(null==d){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",t.appendChild(i),document.body.appendChild(t),d=0,0===t.scrollLeft&&(t.scrollLeft=1,d=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return d}function _(t){if(function(){if(null==g){const t="undefined"!=typeof document?document.head:null;g=!(!t||!t.createShadowRoot&&!t.attachShadow)}return g}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function w(){let t="undefined"!=typeof document&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}},26899:function(t,e,i){"use strict";i.d(e,{en:function(){return l},ig:function(){return d},Pl:function(){return p},C5:function(){return r},F0:function(){return h},u0:function(){return u},eL:function(){return g},UE:function(){return a}});var n=i(31572),s=i(61511);class o{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class r extends o{constructor(t,e,i,n){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=n}}class a extends o{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class c extends o{constructor(t){super(),this.element=t instanceof n.SBq?t.nativeElement:t}}class l{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof r?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof a?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof c?(this._attachedPortal=t,this.attachDomPortal(t)):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(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class u extends l{constructor(t,e,i,n,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=n,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=t,i}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(t=>this.outletElement.appendChild(t)),i.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(i);-1!==t&&e.remove(t)}),this._attachedPortal=t,i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}class h extends u{}let d=(()=>{class t extends a{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Rgc),n.Y36(n.s_b))},t.\u0275dir=n.lG2({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[n.qOj]}),t})(),p=(()=>{class t extends l{constructor(t,e,i){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new n.vpe,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(i,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=i}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),n=e.createComponent(i,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n._Vd),n.Y36(n.s_b),n.Y36(s.K0))},t.\u0275dir=n.lG2({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[n.qOj]}),t})(),g=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})()},4253:function(t,e,i){"use strict";i.d(e,{xd:function(){return P},PQ:function(){return M},ZD:function(){return F},x0:function(){return B},N7:function(){return z},mF:function(){return D},Cl:function(){return U},rL:function(){return L}});var n=i(19861),s=i(31572),o=i(55959),r=i(40878),a=i(48318),c=i(87254),l=i(91741),u=i(92709),h=i(87570),d=i(4710),p=i(96673);class g{call(t,e){return e.subscribe(new f(t))}}class f extends p.L{constructor(t){super(t),this.hasPrev=!1}_next(t){let e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}var m=i(98720),b=i(30810),_=i(43835),w=i(25416),A=i(56238),y=i(44689),v=i(68303),T=i(11353),C=i(61511),E=i(22526),S=i(4230);const k=["contentWrapper"],I=["*"],x=new s.OlP("VIRTUAL_SCROLL_STRATEGY");class R{constructor(t,e,i){this._scrolledIndexChange=new o.xQ,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,m.x)()),this._viewport=null,this._itemSize=t,this._minBufferPx=e,this._maxBufferPx=i}attach(t){this._viewport=t,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(t,e,i){this._itemSize=t,this._minBufferPx=e,this._maxBufferPx=i,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(t,e){this._viewport&&this._viewport.scrollToOffset(t*this._itemSize,e)}_updateTotalContentSize(){this._viewport&&this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const t=this._viewport.getRenderedRange(),e={start:t.start,end:t.end},i=this._viewport.getViewportSize(),n=this._viewport.getDataLength();let s=this._viewport.measureScrollOffset(),o=this._itemSize>0?s/this._itemSize:0;if(e.end>n){const t=Math.ceil(i/this._itemSize),r=Math.max(0,Math.min(o,n-t));o!=r&&(o=r,s=r*this._itemSize,e.start=Math.floor(o)),e.end=Math.max(0,Math.min(n,e.start+t))}const r=s-e.start*this._itemSize;if(r0&&(e.end=Math.min(n,e.end+i),e.start=Math.max(0,Math.floor(o-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(o))}}function O(t){return t._scrollStrategy}let P=(()=>{class t{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new R(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(t){this._itemSize=(0,n.su)(t)}get minBufferPx(){return this._minBufferPx}set minBufferPx(t){this._minBufferPx=(0,n.su)(t)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(t){this._maxBufferPx=(0,n.su)(t)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[s._Bn([{provide:x,useFactory:O,deps:[(0,s.Gpc)(()=>t)]}]),s.TTD]}),t})(),D=(()=>{class t{constructor(t,e,i){this._ngZone=t,this._platform=e,this._scrolled=new o.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new a.y(e=>{this._globalSubscription||this._addGlobalListener();const i=t>0?this._scrolled.pipe((0,b.e)(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,r.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe((0,_.h)(t=>!t||i.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((i,n)=>{this._scrollableContainsElement(n,t)&&e.push(n)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let i=(0,n.fI)(e),s=t.getElementRef().nativeElement;do{if(i==s)return!0}while(i=i.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();return(0,c.R)(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(T.t4),s.LFG(C.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(T.t4),s.LFG(C.K0,8))},token:t,providedIn:"root"}),t})(),M=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=i,this.dir=n,this._destroyed=new o.xQ,this._elementScrolled=new a.y(t=>this.ngZone.runOutsideAngular(()=>(0,c.R)(this.elementRef.nativeElement,"scroll").pipe((0,w.R)(this._destroyed)).subscribe(t)))}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(t){const e=this.elementRef.nativeElement,i=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=i?t.end:t.start),null==t.right&&(t.right=i?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),i&&0!=(0,T._i)()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==(0,T._i)()?t.left=t.right:1==(0,T._i)()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const e=this.elementRef.nativeElement;(0,T.Mq)()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;const i=this.dir&&"rtl"==this.dir.value;return"start"==t?t=i?"right":"left":"end"==t&&(t=i?"left":"right"),i&&2==(0,T._i)()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:i&&1==(0,T._i)()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(D),s.Y36(s.R0b),s.Y36(E.Is,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),L=(()=>{class t{constructor(t,e,i){this._platform=t,this._change=new o.xQ,this._changeListener=t=>{this._change.next(t)},this._document=i,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:i}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+e,height:i,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}change(t=20){return t>0?this._change.pipe((0,b.e)(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(T.t4),s.LFG(s.R0b),s.LFG(C.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(T.t4),s.LFG(s.R0b),s.LFG(C.K0,8))},token:t,providedIn:"root"}),t})();const N="undefined"!=typeof requestAnimationFrame?l.r:u.e;let z=(()=>{class t extends M{constructor(t,e,i,n,s,r,c){super(t,r,i,s),this.elementRef=t,this._changeDetectorRef=e,this._scrollStrategy=n,this._detachedSubject=new o.xQ,this._renderedRangeSubject=new o.xQ,this._orientation="vertical",this.scrolledIndexChange=new a.y(t=>this._scrollStrategy.scrolledIndexChange.subscribe(e=>Promise.resolve().then(()=>this.ngZone.run(()=>t.next(e))))),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=h.w.EMPTY,this._viewportChanges=c.change().subscribe(()=>{this.checkViewportSize()})}get orientation(){return this._orientation}set orientation(t){this._orientation!==t&&(this._orientation=t,this._calculateSpacerSize())}ngOnInit(){super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.elementScrolled().pipe((0,A.O)(null),(0,b.e)(0,N)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(t){this.ngZone.runOutsideAngular(()=>{this._forOf=t,this._forOf.dataStream.pipe((0,w.R)(this._detachedSubject)).subscribe(t=>{const e=t.length;e!==this._dataLength&&(this._dataLength=e,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}setTotalContentSize(t){this._totalContentSize!==t&&(this._totalContentSize=t,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(t){var e,i;((e=this._renderedRange).start!=(i=t).start||e.end!=i.end)&&(this._renderedRangeSubject.next(this._renderedRange=t),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(t,e="to-start"){const i="horizontal"==this.orientation,n=i?"X":"Y";let s=`translate${n}(${Number((i&&this.dir&&"rtl"==this.dir.value?-1:1)*t)}px)`;this._renderedContentOffset=t,"to-end"===e&&(s+=` translate${n}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=s&&(this._renderedContentTransform=s,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(t,e="auto"){const i={behavior:e};"horizontal"===this.orientation?i.start=t:i.top=t,this.scrollTo(i)}scrollToIndex(t,e="auto"){this._scrollStrategy.scrollToIndex(t,e)}measureScrollOffset(t){return super.measureScrollOffset(t||("horizontal"===this.orientation?"start":"top"))}measureRenderedContentSize(){const t=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?t.offsetWidth:t.offsetHeight}measureRangeSize(t){return this._forOf?this._forOf.measureRangeSize(t,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){const t=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?t.clientWidth:t.clientHeight}_markChangeDetectionNeeded(t){t&&this._runAfterChangeDetection.push(t),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 t=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const e of t)e()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(s.R0b),s.Y36(x,8),s.Y36(E.Is,8),s.Y36(D),s.Y36(L))},t.\u0275cmp=s.Xpm({type:t,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(t,e){if(1&t&&s.Gf(k,7),2&t){let t;s.iGM(t=s.CRH())&&(e._contentWrapper=t.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(t,e){2&t&&s.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===e.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==e.orientation)},inputs:{orientation:"orientation"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[s._Bn([{provide:M,useExisting:t}]),s.qOj],ngContentSelectors:I,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0,1),s.Hsn(2),s.qZA(),s._UZ(3,"div",2)),2&t&&(s.xp6(3),s.Udp("width",e._totalContentWidth)("height",e._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-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{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0}),t})();function Z(t,e,i){if(!i.getBoundingClientRect)return 0;const n=i.getBoundingClientRect();return"horizontal"===t?"start"===e?n.left:n.right:"start"===e?n.top:n.bottom}let B=(()=>{class t{constructor(t,e,i,n,s,r){this._viewContainerRef=t,this._template=e,this._differs=i,this._viewRepeater=n,this._viewport=s,this.viewChange=new o.xQ,this._dataSourceChanges=new o.xQ,this.dataStream=this._dataSourceChanges.pipe((0,A.O)(null),t=>t.lift(new g),(0,y.w)(([t,e])=>this._changeDataSource(t,e)),(0,v.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new o.xQ,this.dataStream.subscribe(t=>{this._data=t,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,w.R)(this._destroyed)).subscribe(t=>{this._renderedRange=t,r.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(t){this._cdkVirtualForOf=t,(0,S.Z9)(t)?this._dataSourceChanges.next(t):this._dataSourceChanges.next(new S.P3((0,d.b)(t)?t:Array.from(t||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(t){this._needsUpdate=!0,this._cdkVirtualForTrackBy=t?(e,i)=>t(e+(this._renderedRange?this._renderedRange.start:0),i):void 0}set cdkVirtualForTemplate(t){t&&(this._needsUpdate=!0,this._template=t)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(t){this._viewRepeater.viewCacheSize=(0,n.su)(t)}measureRangeSize(t,e){if(t.start>=t.end)return 0;const i=t.start-this._renderedRange.start,n=t.end-t.start;let s,o;for(let r=0;r-1;r--){const t=this._viewContainerRef.get(r+i);if(t&&t.rootNodes.length){o=t.rootNodes[t.rootNodes.length-1];break}}return s&&o?Z(e,"end",o)-Z(e,"start",s):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const t=this._differ.diff(this._renderedItems);t?this._applyChanges(t):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((t,e)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(t,e):e)),this._needsUpdate=!0)}_changeDataSource(t,e){return t&&t.disconnect(this),this._needsUpdate=!0,e?e.connect(this):(0,r.of)()}_updateContext(){const t=this._data.length;let e=this._viewContainerRef.length;for(;e--;){const i=this._viewContainerRef.get(e);i.context.index=this._renderedRange.start+e,i.context.count=t,this._updateComputedContextProperties(i.context),i.detectChanges()}}_applyChanges(t){this._viewRepeater.applyChanges(t,this._viewContainerRef,(t,e,i)=>this._getEmbeddedViewArgs(t,i),t=>t.item),t.forEachIdentityChange(t=>{this._viewContainerRef.get(t.currentIndex).context.$implicit=t.item});const e=this._data.length;let i=this._viewContainerRef.length;for(;i--;){const t=this._viewContainerRef.get(i);t.context.index=this._renderedRange.start+i,t.context.count=e,this._updateComputedContextProperties(t.context)}}_updateComputedContextProperties(t){t.first=0===t.index,t.last=t.index===t.count-1,t.even=t.index%2==0,t.odd=!t.even}_getEmbeddedViewArgs(t,e){return{templateRef:this._template,context:{$implicit:t.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:e}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(S.k),s.Y36(z,4),s.Y36(s.R0b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[s._Bn([{provide:S.k,useClass:S.eX}])]}),t})(),F=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[E.vT,T.ud,F],E.vT,F]}),t})()},10901:function(t,e,i){"use strict";i.d(e,{Lq:function(){return p},IC:function(){return g},Ky:function(){return f}});var n=i(11353),s=i(31572),o=i(19861),r=i(70653),a=i(55959),c=i(87254),l=i(30810),u=i(25416),h=i(61511);const d=(0,n.i$)({passive:!0});let p=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return r.E;const e=(0,o.fI)(t),i=this._monitoredElements.get(e);if(i)return i.subject;const n=new a.xQ,s="cdk-text-field-autofilled",c=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",c,d),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:n,unlisten:()=>{e.removeEventListener("animationstart",c,d)}}),n}stopMonitoring(t){const e=(0,o.fI)(t),i=this._monitoredElements.get(e);i&&(i.unlisten(),i.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.t4),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.t4),s.LFG(s.R0b))},token:t,providedIn:"root"}),t})(),g=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._platform=e,this._ngZone=i,this._destroyed=new a.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._document=n,this._textareaElement=this._elementRef.nativeElement,this._measuringClass=e.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring"}get minRows(){return this._minRows}set minRows(t){this._minRows=(0,o.su)(t),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(t){this._maxRows=(0,o.su)(t),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(t){t=(0,o.Ig)(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(t){this._cachedPlaceholderHeight=void 0,this._textareaElement.placeholder=t,this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const t=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.minHeight=t)}_setMaxHeight(){const t=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.maxHeight=t)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();(0,c.R)(t,"resize").pipe((0,l.e)(16),(0,u.R)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0))}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let t=this._textareaElement.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,this._textareaElement.parentNode.removeChild(t),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){this._textareaElement.classList.add(this._measuringClass);const t=this._textareaElement.scrollHeight-4;return this._textareaElement.classList.remove(this._measuringClass),t}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const t=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=t}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(t=!1){if(!this._enabled)return;if(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight)return;const e=this._elementRef.nativeElement,i=e.value;if(!t&&this._minRows===this._previousMinRows&&i===this._previousValue)return;const n=this._measureScrollHeight(),s=Math.max(n,this._cachedPlaceholderHeight||0);e.style.height=`${s}px`,this._ngZone.runOutsideAngular(()=>{"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(()=>this._scrollToCaretPosition(e)):setTimeout(()=>this._scrollToCaretPosition(e))}),this._previousValue=i,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(t){const{selectionStart:e,selectionEnd:i}=t,n=this._getDocument();this._destroyed.isStopped||n.activeElement!==t||t.setSelectionRange(e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(n.t4),s.Y36(s.R0b),s.Y36(h.K0,8))},t.\u0275dir=s.lG2({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&s.NdJ("input",function(){return e._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),t})(),f=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ud]]}),t})()},71709:function(t,e,i){"use strict";i.d(e,{HI:function(){return b},Xx:function(){return C},_0:function(){return y},nZ:function(){return I},Hs:function(){return v},rO:function(){return A},cu:function(){return _},XJ:function(){return S},Ud:function(){return k},C2:function(){return f},VY:function(){return m}});var n=i(4230),s=i(4710),o=i(55959),r=i(78512),a=i(40878),c=i(90611),l=i(43835),u=i(25416),h=i(31572),d=i(19861),p=i(22526);class g{constructor(){this.expansionModel=new n.Ov(!0)}toggle(t){this.expansionModel.toggle(this._trackByValue(t))}expand(t){this.expansionModel.select(this._trackByValue(t))}collapse(t){this.expansionModel.deselect(this._trackByValue(t))}isExpanded(t){return this.expansionModel.isSelected(this._trackByValue(t))}toggleDescendants(t){this.expansionModel.isSelected(this._trackByValue(t))?this.collapseDescendants(t):this.expandDescendants(t)}collapseAll(){this.expansionModel.clear()}expandDescendants(t){let e=[t];e.push(...this.getDescendants(t)),this.expansionModel.select(...e.map(t=>this._trackByValue(t)))}collapseDescendants(t){let e=[t];e.push(...this.getDescendants(t)),this.expansionModel.deselect(...e.map(t=>this._trackByValue(t)))}_trackByValue(t){return this.trackBy?this.trackBy(t):t}}class f extends g{constructor(t,e,i){super(),this.getLevel=t,this.isExpandable=e,this.options=i,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(t){const e=[];for(let i=this.dataNodes.indexOf(t)+1;ithis._trackByValue(t)))}}class m extends g{constructor(t,e){super(),this.getChildren=t,this.options=e,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const t=this.dataNodes.reduce((t,e)=>[...t,...this.getDescendants(e),e],[]);this.expansionModel.select(...t.map(t=>this._trackByValue(t)))}getDescendants(t){const e=[];return this._getDescendants(e,t),e.splice(1)}_getDescendants(t,e){t.push(e);const i=this.getChildren(e);Array.isArray(i)?i.forEach(e=>this._getDescendants(t,e)):(0,s.b)(i)&&i.pipe((0,c.q)(1),(0,l.h)(Boolean)).subscribe(e=>{for(const i of e)this._getDescendants(t,i)})}}const b=new h.OlP("CDK_TREE_NODE_OUTLET_NODE");let _=(()=>{class t{constructor(t,e){this.viewContainer=t,this._node=e}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.s_b),h.Y36(b,8))},t.\u0275dir=h.lG2({type:t,selectors:[["","cdkTreeNodeOutlet",""]]}),t})();class w{constructor(t){this.$implicit=t}}let A=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.Rgc))},t.\u0275dir=h.lG2({type:t,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),t})(),y=(()=>{class t{constructor(t,e){this._differs=t,this._changeDetectorRef=e,this._onDestroy=new o.xQ,this._levels=new Map,this.viewChange=new r.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}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 t=this._nodeDefs.filter(t=>!t.when);this._defaultNodeDef=t[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(t){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),t||this._nodeOutlet.viewContainer.clear(),this._dataSource=t,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let t;(0,n.Z9)(this._dataSource)?t=this._dataSource.connect(this):(0,s.b)(this._dataSource)?t=this._dataSource:Array.isArray(this._dataSource)&&(t=(0,a.of)(this._dataSource)),t&&(this._dataSubscription=t.pipe((0,u.R)(this._onDestroy)).subscribe(t=>this.renderNodeChanges(t)))}renderNodeChanges(t,e=this._dataDiffer,i=this._nodeOutlet.viewContainer,n){const s=e.diff(t);s&&(s.forEachOperation((e,s,o)=>{if(null==e.previousIndex)this.insertNode(t[o],o,i,n);else if(null==o)i.remove(s),this._levels.delete(e.item);else{const t=i.get(s);i.move(t,o)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(t,e){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(i=>i.when&&i.when(e,t))||this._defaultNodeDef}insertNode(t,e,i,n){const s=this._getNodeDef(t,e),o=new w(t);o.level=this.treeControl.getLevel?this.treeControl.getLevel(t):void 0!==n&&this._levels.has(n)?this._levels.get(n)+1:0,this._levels.set(t,o.level),(i||this._nodeOutlet.viewContainer).createEmbeddedView(s.template,o,e),v.mostRecentTreeNode&&(v.mostRecentTreeNode.data=t)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.ZZ4),h.Y36(h.sBO))},t.\u0275cmp=h.Xpm({type:t,selectors:[["cdk-tree"]],contentQueries:function(t,e,i){if(1&t&&h.Suo(i,A,5),2&t){let t;h.iGM(t=h.CRH())&&(e._nodeDefs=t)}},viewQuery:function(t,e){if(1&t&&h.Gf(_,7),2&t){let t;h.iGM(t=h.CRH())&&(e._nodeOutlet=t.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(t,e){1&t&&h.GkF(0,0)},directives:[_],encapsulation:2}),t})(),v=(()=>{class t{constructor(e,i){this._elementRef=e,this._tree=i,this._destroyed=new o.xQ,this._dataChanges=new o.xQ,t.mostRecentTreeNode=this,this._elementRef.nativeElement.classList.add("cdk-tree-node"),this.role="treeitem"}get role(){return"treeitem"}set role(t){this._elementRef.nativeElement.setAttribute("role",t)}get data(){return this._data}set data(t){t!==this._data&&(this._data=t,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}_setExpanded(t){this._isAriaExpanded=t,this._elementRef.nativeElement.setAttribute("aria-expanded",`${t}`)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function(t){let e=t.parentElement;for(;e&&!T(e);)e=e.parentElement;return e?e.classList.contains("cdk-nested-tree-node")?(0,d.su)(e.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngDoCheck(){this.isExpanded!=this._isAriaExpanded&&this._setExpanded(this.isExpanded)}ngOnDestroy(){t.mostRecentTreeNode===this&&(t.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(y))},t.\u0275dir=h.lG2({type:t,selectors:[["cdk-tree-node"]],inputs:{role:"role"},exportAs:["cdkTreeNode"]}),t.mostRecentTreeNode=null,t})();function T(t){const e=t.classList;return!(!(null==e?void 0:e.contains("cdk-nested-tree-node"))&&!(null==e?void 0:e.contains("cdk-tree")))}let C=(()=>{class t extends v{constructor(t,e,i){super(t,e),this._elementRef=t,this._tree=e,this._differs=i,this._elementRef.nativeElement.classList.add("cdk-nested-tree-node")}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const t=this._tree.treeControl.getChildren(this.data);Array.isArray(t)?this.updateChildrenNodes(t):(0,s.b)(t)&&t.pipe((0,u.R)(this._destroyed)).subscribe(t=>this.updateChildrenNodes(t)),this.nodeOutlet.changes.pipe((0,u.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(t){const e=this._getNodeOutlet();t&&(this._children=t),e&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,e.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const t=this._getNodeOutlet();t&&(t.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const t=this.nodeOutlet;return t&&t.find(t=>!t._node||t._node===this)}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(y),h.Y36(h.ZZ4))},t.\u0275dir=h.lG2({type:t,selectors:[["cdk-nested-tree-node"]],contentQueries:function(t,e,i){if(1&t&&h.Suo(i,_,5),2&t){let t;h.iGM(t=h.CRH())&&(e.nodeOutlet=t)}},inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[h._Bn([{provide:v,useExisting:t},{provide:b,useExisting:t}]),h.qOj]}),t})();const E=/([A-Za-z%]+)$/;let S=(()=>{class t{constructor(t,e,i,n){this._treeNode=t,this._tree=e,this._element=i,this._dir=n,this._destroyed=new o.xQ,this.indentUnits="px",this._indent=40,this._setPadding(),n&&n.change.pipe((0,u.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),t._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(t){this._setLevelInput(t)}get indent(){return this._indent}set indent(t){this._setIndentInput(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const t=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,e=null==this._level?t:this._level;return"number"==typeof e?`${e*this._indent}${this.indentUnits}`:null}_setPadding(t=!1){const e=this._paddingIndent();if(e!==this._currentPadding||t){const t=this._element.nativeElement,i=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",n="paddingLeft"===i?"paddingRight":"paddingLeft";t.style[i]=e||"",t.style[n]="",this._currentPadding=e}}_setLevelInput(t){this._level=(0,d.su)(t,null),this._setPadding()}_setIndentInput(t){let e=t,i="px";if("string"==typeof t){const n=t.split(E);e=n[0],i=n[1]||i}this.indentUnits=i,this._indent=(0,d.su)(e),this._setPadding()}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(v),h.Y36(y),h.Y36(h.SBq),h.Y36(p.Is,8))},t.\u0275dir=h.lG2({type:t,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),t})(),k=(()=>{class t{constructor(t,e){this._tree=t,this._treeNode=e,this._recursive=!1}get recursive(){return this._recursive}set recursive(t){this._recursive=(0,d.Ig)(t)}_toggle(t){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),t.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(y),h.Y36(v))},t.\u0275dir=h.lG2({type:t,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(t,e){1&t&&h.NdJ("click",function(t){return e._toggle(t)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),t})(),I=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({}),t})()},61511:function(t,e,i){"use strict";i.d(e,{mr:function(){return A},Ov:function(){return St},ez:function(){return Rt},K0:function(){return c},uU:function(){return xt},Do:function(){return v},V_:function(){return h},Ye:function(){return T},S$:function(){return _},i8:function(){return kt},mk:function(){return ct},sg:function(){return ut},O5:function(){return dt},PC:function(){return wt},RF:function(){return mt},n9:function(){return bt},ED:function(){return _t},tP:function(){return At},b0:function(){return y},lw:function(){return l},gd:function(){return It},EM:function(){return Mt},JF:function(){return zt},p6:function(){return j},NF:function(){return Pt},PM:function(){return Dt},w_:function(){return a},bD:function(){return Ot},q:function(){return o},Mx:function(){return at},HT:function(){return r}});var n=i(31572);let s=null;function o(){return s}function r(t){s||(s=t)}class a{}const c=new n.OlP("DocumentToken");let l=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:u,token:t,providedIn:"platform"}),t})();function u(){return(0,n.LFG)(d)}const h=new n.OlP("Location Initialized");let d=(()=>{class t extends l{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return o().getBaseHref(this._doc)}onPopState(t){const e=o().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=o().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}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(t){this.location.pathname=t}pushState(t,e,i){p()?this._history.pushState(t,e,i):this.location.hash=i}replaceState(t,e,i){p()?this._history.replaceState(t,e,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(c))},t.\u0275prov=(0,n.Yz7)({factory:g,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function g(){return new d((0,n.LFG)(c))}function f(t,e){if(0==t.length)return e;if(0==e.length)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,2==i?t+e.substring(1):1==i?t+e:t+"/"+e}function m(t){const e=t.match(/#|\?|$/),i=e&&e.index||t.length;return t.slice(0,i-("/"===t[i-1]?1:0))+t.slice(i)}function b(t){return t&&"?"!==t[0]?"?"+t:t}let _=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:w,token:t,providedIn:"root"}),t})();function w(t){const e=(0,n.LFG)(c).location;return new y((0,n.LFG)(l),e&&e.origin||"")}const A=new n.OlP("appBaseHref");let y=(()=>{class t extends _{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return f(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+b(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${e}${i}`:e}pushState(t,e,i,n){const s=this.prepareExternalUrl(i+b(n));this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){const s=this.prepareExternalUrl(i+b(n));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformLocation).historyGo)||void 0===i||i.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(l),n.LFG(A,8))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),v=(()=>{class t extends _{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=f(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,i,n){let s=this.prepareExternalUrl(i+b(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){let s=this.prepareExternalUrl(i+b(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformLocation).historyGo)||void 0===i||i.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(l),n.LFG(A,8))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),T=(()=>{class t{constructor(t,e){this._subject=new n.vpe,this._urlChangeListeners=[],this._platformStrategy=t;const i=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=m(E(i)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+b(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,E(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",i=null){this._platformStrategy.pushState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+b(e)),i)}replaceState(t,e="",i=null){this._platformStrategy.replaceState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+b(e)),i)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformStrategy).historyGo)||void 0===i||i.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(i=>i(t,e))}subscribe(t,e,i){return this._subject.subscribe({next:t,error:e,complete:i})}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(_),n.LFG(l))},t.normalizeQueryParams=b,t.joinWithSlash=f,t.stripTrailingSlash=m,t.\u0275prov=(0,n.Yz7)({factory:C,token:t,providedIn:"root"}),t})();function C(){return new T((0,n.LFG)(_),(0,n.LFG)(l))}function E(t){return t.replace(/\/index.html$/,"")}var S=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),k=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),I=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),x=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),R=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function O(t,e){return z((0,n.cg1)(t)[n.wAp.DateFormat],e)}function P(t,e){return z((0,n.cg1)(t)[n.wAp.TimeFormat],e)}function D(t,e){return z((0,n.cg1)(t)[n.wAp.DateTimeFormat],e)}function M(t,e){const i=(0,n.cg1)(t),s=i[n.wAp.NumberSymbols][e];if(void 0===s){if(e===R.CurrencyDecimal)return i[n.wAp.NumberSymbols][R.Decimal];if(e===R.CurrencyGroup)return i[n.wAp.NumberSymbols][R.Group]}return s}const L=n.kL8;function N(t){if(!t[n.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[n.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function z(t,e){for(let i=e;i>-1;i--)if(void 0!==t[i])return t[i];throw new Error("Locale data API: locale data undefined")}function Z(t){const[e,i]=t.split(":");return{hours:+e,minutes:+i}}const B=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,F={},U=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var q=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),H=function(t){return 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}({}),G=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function j(t,e,i,n){let s=function(t){if(st(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[e,i=1,n=1]=t.split("-").map(t=>+t);return Y(e,i-1,n)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(B))return function(t){const e=new Date(0);let i=0,n=0;const s=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),s.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const r=Number(t[4]||0)-i,a=Number(t[5]||0)-n,c=Number(t[6]||0),l=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,r,a,c,l),e}(i)}const e=new Date(t);if(!st(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=K(i,e)||e;let o,r=[];for(;e;){if(o=U.exec(e),!o){r.push(e);break}{r=r.concat(o.slice(1));const t=r.pop();if(!t)break;e=t}}let a=s.getTimezoneOffset();n&&(a=nt(n,a),s=function(t,e,i){const n=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(nt(e,n)-n))}(s,n));let c="";return r.forEach(t=>{const e=function(t){if(it[t])return it[t];let e;switch(t){case"G":case"GG":case"GGG":e=Q(G.Eras,I.Abbreviated);break;case"GGGG":e=Q(G.Eras,I.Wide);break;case"GGGGG":e=Q(G.Eras,I.Narrow);break;case"y":e=J(H.FullYear,1,0,!1,!0);break;case"yy":e=J(H.FullYear,2,0,!0,!0);break;case"yyy":e=J(H.FullYear,3,0,!1,!0);break;case"yyyy":e=J(H.FullYear,4,0,!1,!0);break;case"Y":e=et(1);break;case"YY":e=et(2,!0);break;case"YYY":e=et(3);break;case"YYYY":e=et(4);break;case"M":case"L":e=J(H.Month,1,1);break;case"MM":case"LL":e=J(H.Month,2,1);break;case"MMM":e=Q(G.Months,I.Abbreviated);break;case"MMMM":e=Q(G.Months,I.Wide);break;case"MMMMM":e=Q(G.Months,I.Narrow);break;case"LLL":e=Q(G.Months,I.Abbreviated,k.Standalone);break;case"LLLL":e=Q(G.Months,I.Wide,k.Standalone);break;case"LLLLL":e=Q(G.Months,I.Narrow,k.Standalone);break;case"w":e=tt(1);break;case"ww":e=tt(2);break;case"W":e=tt(1,!0);break;case"d":e=J(H.Date,1);break;case"dd":e=J(H.Date,2);break;case"c":case"cc":e=J(H.Day,1);break;case"ccc":e=Q(G.Days,I.Abbreviated,k.Standalone);break;case"cccc":e=Q(G.Days,I.Wide,k.Standalone);break;case"ccccc":e=Q(G.Days,I.Narrow,k.Standalone);break;case"cccccc":e=Q(G.Days,I.Short,k.Standalone);break;case"E":case"EE":case"EEE":e=Q(G.Days,I.Abbreviated);break;case"EEEE":e=Q(G.Days,I.Wide);break;case"EEEEE":e=Q(G.Days,I.Narrow);break;case"EEEEEE":e=Q(G.Days,I.Short);break;case"a":case"aa":case"aaa":e=Q(G.DayPeriods,I.Abbreviated);break;case"aaaa":e=Q(G.DayPeriods,I.Wide);break;case"aaaaa":e=Q(G.DayPeriods,I.Narrow);break;case"b":case"bb":case"bbb":e=Q(G.DayPeriods,I.Abbreviated,k.Standalone,!0);break;case"bbbb":e=Q(G.DayPeriods,I.Wide,k.Standalone,!0);break;case"bbbbb":e=Q(G.DayPeriods,I.Narrow,k.Standalone,!0);break;case"B":case"BB":case"BBB":e=Q(G.DayPeriods,I.Abbreviated,k.Format,!0);break;case"BBBB":e=Q(G.DayPeriods,I.Wide,k.Format,!0);break;case"BBBBB":e=Q(G.DayPeriods,I.Narrow,k.Format,!0);break;case"h":e=J(H.Hours,1,-12);break;case"hh":e=J(H.Hours,2,-12);break;case"H":e=J(H.Hours,1);break;case"HH":e=J(H.Hours,2);break;case"m":e=J(H.Minutes,1);break;case"mm":e=J(H.Minutes,2);break;case"s":e=J(H.Seconds,1);break;case"ss":e=J(H.Seconds,2);break;case"S":e=J(H.FractionalSeconds,1);break;case"SS":e=J(H.FractionalSeconds,2);break;case"SSS":e=J(H.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=W(q.Short);break;case"ZZZZZ":e=W(q.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=W(q.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=W(q.Long);break;default:return null}return it[t]=e,e}(t);c+=e?e(s,i,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Y(t,e,i){const n=new Date(0);return n.setFullYear(t,e,i),n.setHours(0,0,0),n}function K(t,e){const i=function(t){return(0,n.cg1)(t)[n.wAp.LocaleId]}(t);if(F[i]=F[i]||{},F[i][e])return F[i][e];let s="";switch(e){case"shortDate":s=O(t,x.Short);break;case"mediumDate":s=O(t,x.Medium);break;case"longDate":s=O(t,x.Long);break;case"fullDate":s=O(t,x.Full);break;case"shortTime":s=P(t,x.Short);break;case"mediumTime":s=P(t,x.Medium);break;case"longTime":s=P(t,x.Long);break;case"fullTime":s=P(t,x.Full);break;case"short":const e=K(t,"shortTime"),i=K(t,"shortDate");s=V(D(t,x.Short),[e,i]);break;case"medium":const n=K(t,"mediumTime"),o=K(t,"mediumDate");s=V(D(t,x.Medium),[n,o]);break;case"long":const r=K(t,"longTime"),a=K(t,"longDate");s=V(D(t,x.Long),[r,a]);break;case"full":const c=K(t,"fullTime"),l=K(t,"fullDate");s=V(D(t,x.Full),[c,l])}return s&&(F[i][e]=s),s}function V(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,i){return null!=e&&i in e?e[i]:t})),t}function $(t,e,i="-",n,s){let o="";(t<0||s&&t<=0)&&(s?t=1-t:(t=-t,o=i));let r=String(t);for(;r.length0||a>-i)&&(a+=i),t===H.Hours)0===a&&-12===i&&(a=12);else if(t===H.FractionalSeconds)return c=e,$(a,3).substr(0,c);var c;const l=M(r,R.MinusSign);return $(a,e,l,n,s)}}function Q(t,e,i=k.Format,s=!1){return function(o,r){return function(t,e,i,s,o,r){switch(i){case G.Months:return function(t,e,i){const s=(0,n.cg1)(t),o=z([s[n.wAp.MonthsFormat],s[n.wAp.MonthsStandalone]],e);return z(o,i)}(e,o,s)[t.getMonth()];case G.Days:return function(t,e,i){const s=(0,n.cg1)(t),o=z([s[n.wAp.DaysFormat],s[n.wAp.DaysStandalone]],e);return z(o,i)}(e,o,s)[t.getDay()];case G.DayPeriods:const a=t.getHours(),c=t.getMinutes();if(r){const t=function(t){const e=(0,n.cg1)(t);return N(e),(e[n.wAp.ExtraData][2]||[]).map(t=>"string"==typeof t?Z(t):[Z(t[0]),Z(t[1])])}(e),i=function(t,e,i){const s=(0,n.cg1)(t);N(s);const o=z([s[n.wAp.ExtraData][0],s[n.wAp.ExtraData][1]],e)||[];return z(o,i)||[]}(e,o,s),r=t.findIndex(t=>{if(Array.isArray(t)){const[e,i]=t,n=a>=e.hours&&c>=e.minutes,s=a0?Math.floor(s/60):Math.ceil(s/60);switch(t){case q.Short:return(s>=0?"+":"")+$(r,2,o)+$(Math.abs(s%60),2,o);case q.ShortGMT:return"GMT"+(s>=0?"+":"")+$(r,1,o);case q.Long:return"GMT"+(s>=0?"+":"")+$(r,2,o)+":"+$(Math.abs(s%60),2,o);case q.Extended:return 0===n?"Z":(s>=0?"+":"")+$(r,2,o)+":"+$(Math.abs(s%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}function X(t){return Y(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function tt(t,e=!1){return function(i,n){let s;if(e){const t=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,e=i.getDate();s=1+Math.floor((e+t)/7)}else{const t=X(i),e=function(t){const e=Y(t,0,1).getDay();return Y(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),n=t.getTime()-e.getTime();s=1+Math.round(n/6048e5)}return $(s,t,M(n,R.MinusSign))}}function et(t,e=!1){return function(i,n){return $(X(i).getFullYear(),t,M(n,R.MinusSign),e)}}const it={};function nt(t,e){t=t.replace(/:/g,"");const i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function st(t){return t instanceof Date&&!isNaN(t.valueOf())}class ot{}let rt=(()=>{class t extends ot{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(L(e||this.locale)(t)){case S.Zero:return"zero";case S.One:return"one";case S.Two:return"two";case S.Few:return"few";case S.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.soG))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();function at(t,e){e=encodeURIComponent(e);for(const i of t.split(";")){const t=i.indexOf("="),[n,s]=-1==t?[i,""]:[i.slice(0,t),i.slice(t+1)];if(n.trim()===e)return decodeURIComponent(s)}return null}let ct=(()=>{class t{constructor(t,e,i,n){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=i,this._renderer=n,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&((0,n.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,n.AaK)(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.ZZ4),n.Y36(n.aQg),n.Y36(n.SBq),n.Y36(n.Qsj))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class lt{constructor(t,e,i,n){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=n}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 ut=(()=>{class t{constructor(t,e,i){this._viewContainer=t,this._template=e,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const i=this._ngForOf;if(!this._differ&&i)try{this._differ=this._differs.find(i).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${i}' of type '${t=i,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,i,n)=>{if(null==t.previousIndex){const i=this._viewContainer.createEmbeddedView(this._template,new lt(null,this._ngForOf,-1,-1),null===n?void 0:n),s=new ht(t,i);e.push(s)}else if(null==n)this._viewContainer.remove(null===i?void 0:i);else if(null!==i){const s=this._viewContainer.get(i);this._viewContainer.move(s,n);const o=new ht(t,s);e.push(o)}});for(let i=0;i{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(n.ZZ4))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class ht{constructor(t,e){this.record=t,this.view=e}}let dt=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new pt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){gt("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){gt("ngIfElse",t),this._elseTemplateRef=t,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(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class pt{constructor(){this.$implicit=null,this.ngIf=null}}function gt(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${(0,n.AaK)(e)}'.`)}class ft{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let mt=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,i){this.ngSwitch=i,i._addCase(),this._view=new ft(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(mt,9))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),_t=(()=>{class t{constructor(t,e,i){i._addDefault(new ft(t,e))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(mt,9))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),wt=(()=>{class t{constructor(t,e,i){this._ngEl=t,this._differs=e,this._renderer=i,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[i,n]=t.split(".");null!=(e=null!=e&&n?`${e}${n}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,i,e):this._renderer.removeStyle(this._ngEl.nativeElement,i)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.aQg),n.Y36(n.Qsj))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),At=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[n.TTD]}),t})();function yt(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${(0,n.AaK)(t)}'`)}class vt{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Tt{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Ct=new Tt,Et=new vt;let St=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if((0,n.QGY)(e))return Ct;if((0,n.F4k)(e))return Et;throw yt(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO,16))},t.\u0275pipe=n.Yjl({name:"async",type:t,pure:!1}),t})(),kt=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw yt(t,e);return e.toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"lowercase",type:t,pure:!0}),t})(),It=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw yt(t,e);return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"uppercase",type:t,pure:!0}),t})(),xt=(()=>{class t{constructor(t){this.locale=t}transform(e,i="mediumDate",n,s){if(null==e||""===e||e!=e)return null;try{return j(e,i,s||this.locale,n)}catch(o){throw yt(t,o.message)}}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.soG,16))},t.\u0275pipe=n.Yjl({name:"date",type:t,pure:!0}),t})(),Rt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:ot,useClass:rt}]}),t})();const Ot="browser";function Pt(t){return t===Ot}function Dt(t){return"server"===t}let Mt=(()=>{class t{}return t.\u0275prov=(0,n.Yz7)({token:t,providedIn:"root",factory:()=>new Lt((0,n.LFG)(c),window)}),t})();class Lt{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const i=t.getElementById(e)||t.getElementsByName(e)[0];if(i)return i;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let n=i.currentNode;for(;n;){const t=n.shadowRoot;if(t){const i=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(i)return i}n=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,n=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(i-s[0],n-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Nt(this.window.history)||Nt(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function Nt(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class zt{}},29063:function(t,e,i){"use strict";i.d(e,{TP:function(){return R},eN:function(){return I},JF:function(){return U},WM:function(){return d},LE:function(){return m},Zn:function(){return E}});var n=i(61511),s=i(31572),o=i(40878),r=i(48318),a=i(436),c=i(43835),l=i(79996);class u{}class h{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const i=t.slice(0,e),n=i.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(s):this.headers.set(n,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const n=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(n,i),this.maybeSetNormalizedName(e,n))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const n=("a"===t.op?this.headers.get(e):void 0)||[];n.push(...i),this.headers.set(e,n);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class p{encodeKey(t){return g(t)}encodeValue(t){return g(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function g(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function f(t){return`${t}`}class m{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new p,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const n=t.indexOf("="),[s,o]=-1==n?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,n)),e.decodeValue(t.slice(n+1))],r=i.get(s)||[];r.push(o),i.set(s,r)}),i}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const n=t[i];Array.isArray(n)?n.forEach(t=>{e.push({param:i,value:t,op:"a"})}):e.push({param:i,value:n,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new m({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(f(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const i=e.indexOf(f(t.value));-1!==i&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class b{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function _(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function w(t){return"undefined"!=typeof Blob&&t instanceof Blob}function A(t){return"undefined"!=typeof FormData&&t instanceof FormData}class y{constructor(t,e,i,n){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||n?(this.body=void 0!==i?i:null,s=n):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new d),this.context||(this.context=new b),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const i=e.indexOf("?");this.urlWithParams=e+(-1===i?"?":ie.set(i,t.setHeaders[i]),c)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,i)=>e.set(i,t.setParams[i]),l)),new y(i,n,o,{params:l,headers:c,context:u,reportProgress:a,responseType:s,withCredentials:r})}}var v=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class T{constructor(t,e=200,i="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class C extends T{constructor(t={}){super(t),this.type=v.ResponseHeader}clone(t={}){return new C({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class E extends T{constructor(t={}){super(t),this.type=v.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new E({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class S extends T{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function k(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let I=(()=>{class t{constructor(t){this.handler=t}request(t,e,i={}){let n;if(t instanceof y)n=t;else{let s,o;s=i.headers instanceof d?i.headers:new d(i.headers),i.params&&(o=i.params instanceof m?i.params:new m({fromObject:i.params})),n=new y(t,e,void 0!==i.body?i.body:null,{headers:s,context:i.context,params:o,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=(0,o.of)(n).pipe((0,a.b)(t=>this.handler.handle(t)));if(t instanceof y||"events"===i.observe)return s;const r=s.pipe((0,c.h)(t=>t instanceof E));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return r.pipe((0,l.U)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe((0,l.U)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe((0,l.U)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe((0,l.U)(t=>t.body))}case"response":return r;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new m).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,i={}){return this.request("PATCH",t,k(i,e))}post(t,e,i={}){return this.request("POST",t,k(i,e))}put(t,e,i={}){return this.request("PUT",t,k(i,e))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(u))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class x{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const R=new s.OlP("HTTP_INTERCEPTORS");let O=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const P=/^\)\]\}',?\n/;let D=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new r.y(e=>{const i=this.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((t,e)=>i.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&i.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();i.responseType="json"!==e?e:"text"}const n=t.serializeBody();let s=null;const o=()=>{if(null!==s)return s;const e=1223===i.status?204:i.status,n=i.statusText||"OK",o=new d(i.getAllResponseHeaders()),r=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new C({headers:o,status:e,statusText:n,url:r}),s},r=()=>{let{headers:n,status:s,statusText:r,url:a}=o(),c=null;204!==s&&(c=void 0===i.response?i.responseText:i.response),0===s&&(s=c?200:0);let l=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof c){const t=c;c=c.replace(P,"");try{c=""!==c?JSON.parse(c):null}catch(u){c=t,l&&(l=!1,c={error:u,text:c})}}l?(e.next(new E({body:c,headers:n,status:s,statusText:r,url:a||void 0})),e.complete()):e.error(new S({error:c,headers:n,status:s,statusText:r,url:a||void 0}))},a=t=>{const{url:n}=o(),s=new S({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:n||void 0});e.error(s)};let c=!1;const l=n=>{c||(e.next(o()),c=!0);let s={type:v.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(s.total=n.total),"text"===t.responseType&&i.responseText&&(s.partialText=i.responseText),e.next(s)},u=t=>{let i={type:v.UploadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),e.next(i)};return i.addEventListener("load",r),i.addEventListener("error",a),i.addEventListener("timeout",a),i.addEventListener("abort",a),t.reportProgress&&(i.addEventListener("progress",l),null!==n&&i.upload&&i.upload.addEventListener("progress",u)),i.send(n),e.next({type:v.Sent}),()=>{i.removeEventListener("error",a),i.removeEventListener("abort",a),i.removeEventListener("load",r),i.removeEventListener("timeout",a),t.reportProgress&&(i.removeEventListener("progress",l),null!==n&&i.upload&&i.upload.removeEventListener("progress",u)),i.readyState!==i.DONE&&i.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.JF))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const M=new s.OlP("XSRF_COOKIE_NAME"),L=new s.OlP("XSRF_HEADER_NAME");class N{}let z=(()=>{class t{constructor(t,e,i){this.doc=t,this.platform=e,this.cookieName=i,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,n.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0),s.LFG(s.Lbi),s.LFG(M))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Z=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);const n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(N),s.LFG(L))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(R,[]);this.chain=t.reduceRight((t,e)=>new x(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(h),s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),F=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Z,useClass:O}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:M,useValue:e.cookieName}:[],e.headerName?{provide:L,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Z,{provide:R,useExisting:Z,multi:!0},{provide:N,useClass:z},{provide:M,useValue:"XSRF-TOKEN"},{provide:L,useValue:"X-XSRF-TOKEN"}]}),t})(),U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[I,{provide:u,useClass:B},D,{provide:h,useExisting:D}],imports:[[F.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},31572:function(t,e,i){"use strict";i.d(e,{deG:function(){return ni},tb:function(){return ll},AFp:function(){return sl},ip1:function(){return il},CZH:function(){return nl},hGG:function(){return iu},z2F:function(){return Yl},sBO:function(){return Va},Sil:function(){return Al},_Vd:function(){return _a},EJc:function(){return dl},SBq:function(){return va},qLn:function(){return Tn},vpe:function(){return Nc},gxx:function(){return go},tBr:function(){return Ti},XFs:function(){return x},OlP:function(){return ii},zs3:function(){return xo},ZZ4:function(){return Ua},aQg:function(){return Ha},soG:function(){return hl},YKP:function(){return sc},v3s:function(){return Vl},h0i:function(){return nc},PXZ:function(){return Ul},R0b:function(){return Tl},FiY:function(){return Ci},Lbi:function(){return cl},g9A:function(){return al},n_E:function(){return Zc},Qsj:function(){return Ea},FYo:function(){return Ca},JOm:function(){return xn},Tiy:function(){return ka},q3G:function(){return gn},tp0:function(){return Ei},EAV:function(){return Ql},Rgc:function(){return Xa},dDg:function(){return Rl},DyG:function(){return si},GfV:function(){return Ia},s_b:function(){return rc},ifc:function(){return L},eFA:function(){return ql},G48:function(){return Bl},Gpc:function(){return p},f3M:function(){return Ai},X6Q:function(){return Zl},_c5:function(){return tu},VLi:function(){return Dl},c2e:function(){return ul},zSh:function(){return mo},wAp:function(){return oa},vHH:function(){return m},EiD:function(){return dn},mCW:function(){return Vi},qzn:function(){return zi},JVY:function(){return Bi},pB0:function(){return Hi},eBb:function(){return Ui},L6k:function(){return Fi},LAX:function(){return qi},cg1:function(){return ia},Tjo:function(){return Xl},kL8:function(){return na},yhl:function(){return Zi},dqk:function(){return F},sIi:function(){return Bo},CqO:function(){return ur},QGY:function(){return cr},F4k:function(){return lr},RDi:function(){return Tt},AaK:function(){return u},z3N:function(){return Ni},qOj:function(){return Oo},TTD:function(){return bt},_Bn:function(){return fa},xp6:function(){return fs},uIk:function(){return Yo},Q2q:function(){return $o},Tol:function(){return Or},Gre:function(){return Jr},ekj:function(){return Rr},Suo:function(){return Jc},Xpm:function(){return Q},lG2:function(){return ot},Yz7:function(){return A},cJS:function(){return y},oAB:function(){return it},Yjl:function(){return rt},Y36:function(){return Wo},_UZ:function(){return nr},GkF:function(){return rr},BQk:function(){return or},ynx:function(){return sr},qZA:function(){return ir},TgZ:function(){return er},EpF:function(){return ar},n5z:function(){return We},Ikx:function(){return Qr},LFG:function(){return wi},$8M:function(){return ti},NdJ:function(){return hr},CRH:function(){return Qc},kcU:function(){return be},O4$:function(){return me},oxw:function(){return mr},ALo:function(){return xc},lcZ:function(){return Rc},xi3:function(){return Oc},Dn7:function(){return Pc},Hsn:function(){return wr},F$t:function(){return _r},Q6J:function(){return Xo},s9C:function(){return Ar},MGl:function(){return yr},hYB:function(){return vr},DdM:function(){return yc},VKq:function(){return vc},WLB:function(){return Tc},kEZ:function(){return Cc},iGM:function(){return Vc},MAs:function(){return Qo},pYS:function(){return kn},evT:function(){return Sn},Jf7:function(){return En},CHM:function(){return qt},oJD:function(){return fn},LSH:function(){return mn},B6R:function(){return W},kYT:function(){return nt},Udp:function(){return xr},WFA:function(){return dr},d8E:function(){return Wr},YNc:function(){return Jo},W1O:function(){return el},_uU:function(){return Hr},Oqu:function(){return Gr},hij:function(){return jr},AsE:function(){return Yr},lnq:function(){return Kr},HOy:function(){return Vr},xDo:function(){return $r},Gf:function(){return $c}});var n=i(55959),s=i(87570),o=i(48318),r=i(31906),a=i(1055);function c(t){for(let e in t)if(t[e]===c)return e;throw Error("Could not find renamed property on target object.")}function l(t,e){for(const i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function u(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(u).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const i=e.indexOf("\n");return-1===i?e:e.substring(0,i)}function h(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const d=c({__forward_ref__:c});function p(t){return t.__forward_ref__=p,t.toString=function(){return u(this())},t}function g(t){return f(t)?t():t}function f(t){return"function"==typeof t&&t.hasOwnProperty(d)&&t.__forward_ref__===p}class m extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function b(t){return"string"==typeof t?t:null==t?"":String(t)}function _(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():b(t)}function w(t,e){const i=e?` in ${e}`:"";throw new m("201",`No provider for ${_(t)} found${i}`)}function A(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function y(t){return{providers:t.providers||[],imports:t.imports||[]}}function v(t){return T(t,E)||T(t,k)}function T(t,e){return t.hasOwnProperty(e)?t[e]:null}function C(t){return t&&(t.hasOwnProperty(S)||t.hasOwnProperty(I))?t[S]:null}const E=c({"\u0275prov":c}),S=c({"\u0275inj":c}),k=c({ngInjectableDef:c}),I=c({ngInjectorDef:c});var x=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let R;function O(t){const e=R;return R=t,e}function P(t,e,i){const n=v(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:i&x.Optional?null:void 0!==e?e:void w(u(t),"Injector")}function D(t){return{toString:t}.toString()}var M=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),L=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const N="undefined"!=typeof globalThis&&globalThis,z="undefined"!=typeof window&&window,Z="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,B="undefined"!=typeof global&&global,F=N||B||z||Z,U={},q=[],H=c({"\u0275cmp":c}),G=c({"\u0275dir":c}),j=c({"\u0275pipe":c}),Y=c({"\u0275mod":c}),K=c({"\u0275loc":c}),V=c({"\u0275fac":c}),$=c({__NG_ELEMENT_ID__:c});let J=0;function Q(t){return D(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===M.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||q,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||L.Emulated,id:"c",styles:t.styles||q,_:null,setInput:null,schemas:t.schemas||null,tView:null},n=t.directives,s=t.features,o=t.pipes;return i.id+=J++,i.inputs=st(t.inputs,e),i.outputs=st(t.outputs),s&&s.forEach(t=>t(i)),i.directiveDefs=n?()=>("function"==typeof n?n():n).map(X):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(tt):null,i})}function W(t,e,i){const n=t.\u0275cmp;n.directiveDefs=()=>e.map(X),n.pipeDefs=()=>i.map(tt)}function X(t){return at(t)||function(t){return t[G]||null}(t)}function tt(t){return function(t){return t[j]||null}(t)}const et={};function it(t){return D(()=>{const e={type:t.type,bootstrap:t.bootstrap||q,declarations:t.declarations||q,imports:t.imports||q,exports:t.exports||q,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(et[t.id]=t.type),e})}function nt(t,e){return D(()=>{const i=ct(t,!0);i.declarations=e.declarations||q,i.imports=e.imports||q,i.exports=e.exports||q})}function st(t,e){if(null==t)return U;const i={};for(const n in t)if(t.hasOwnProperty(n)){let s=t[n],o=s;Array.isArray(s)&&(o=s[1],s=s[0]),i[s]=n,e&&(e[s]=o)}return i}const ot=Q;function rt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function at(t){return t[H]||null}function ct(t,e){const i=t[Y]||null;if(!i&&!0===e)throw new Error(`Type ${u(t)} does not have '\u0275mod' property.`);return i}function lt(t){return Array.isArray(t)&&"object"==typeof t[1]}function ut(t){return Array.isArray(t)&&!0===t[1]}function ht(t){return 0!=(8&t.flags)}function dt(t){return 2==(2&t.flags)}function pt(t){return 1==(1&t.flags)}function gt(t){return null!==t.template}function ft(t,e){return t.hasOwnProperty(V)?t[V]:null}class mt{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function bt(){return _t}function _t(t){return t.type.prototype.ngOnChanges&&(t.setInput=At),wt}function wt(){const t=yt(this),e=null==t?void 0:t.current;if(e){const i=t.previous;if(i===U)t.previous=e;else for(let t in e)i[t]=e[t];t.current=null,this.ngOnChanges(e)}}function At(t,e,i,n){const s=yt(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:U,current:null}),o=s.current||(s.current={}),r=s.previous,a=this.declaredInputs[i],c=r[a];o[a]=new mt(c&&c.currentValue,e,r===U),t[n]=e}function yt(t){return t.__ngSimpleChanges__||null}let vt;function Tt(t){vt=t}function Ct(){return void 0!==vt?vt:"undefined"!=typeof document?document:void 0}function Et(t){return!!t.listen}bt.ngInherit=!0;const St={createRenderer:(t,e)=>Ct()};function kt(t){for(;Array.isArray(t);)t=t[0];return t}function It(t,e){return kt(e[t])}function xt(t,e){return kt(e[t.index])}function Rt(t,e){return t.data[e]}function Ot(t,e){return t[e]}function Pt(t,e){const i=e[t];return lt(i)?i:i[0]}function Dt(t){return 4==(4&t[2])}function Mt(t){return 128==(128&t[2])}function Lt(t,e){return null==e?null:t[e]}function Nt(t){t[18]=0}function zt(t,e){t[5]+=e;let i=t,n=t[3];for(;null!==n&&(1===e&&1===i[5]||-1===e&&0===i[5]);)n[5]+=e,i=n,n=n[3]}const Zt={lFrame:le(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Bt(){return Zt.bindingsEnabled}function Ft(){return Zt.lFrame.lView}function Ut(){return Zt.lFrame.tView}function qt(t){return Zt.lFrame.contextLView=t,t[8]}function Ht(){let t=Gt();for(;null!==t&&64===t.type;)t=t.parent;return t}function Gt(){return Zt.lFrame.currentTNode}function jt(t,e){const i=Zt.lFrame;i.currentTNode=t,i.isParent=e}function Yt(){return Zt.lFrame.isParent}function Kt(){Zt.lFrame.isParent=!1}function Vt(){return Zt.isInCheckNoChangesMode}function $t(t){Zt.isInCheckNoChangesMode=t}function Jt(){const t=Zt.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Qt(){return Zt.lFrame.bindingIndex}function Wt(){return Zt.lFrame.bindingIndex++}function Xt(t){const e=Zt.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function te(t,e){const i=Zt.lFrame;i.bindingIndex=i.bindingRootIndex=t,ee(e)}function ee(t){Zt.lFrame.currentDirectiveIndex=t}function ie(t){const e=Zt.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function ne(){return Zt.lFrame.currentQueryIndex}function se(t){Zt.lFrame.currentQueryIndex=t}function oe(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function re(t,e,i){if(i&x.SkipSelf){let n=e,s=t;for(;n=n.parent,!(null!==n||i&x.Host||(n=oe(s),null===n)||(s=s[15],10&n.type)););if(null===n)return!1;e=n,t=s}const n=Zt.lFrame=ce();return n.currentTNode=e,n.lView=t,!0}function ae(t){const e=ce(),i=t[1];Zt.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function ce(){const t=Zt.lFrame,e=null===t?null:t.child;return null===e?le(t):e}function le(t){const e={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:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function ue(){const t=Zt.lFrame;return Zt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const he=ue;function de(){const t=ue();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function pe(){return Zt.lFrame.selectedIndex}function ge(t){Zt.lFrame.selectedIndex=t}function fe(){const t=Zt.lFrame;return Rt(t.tView,t.selectedIndex)}function me(){Zt.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function be(){Zt.lFrame.currentNamespace=null}function _e(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[a]<0&&(t[18]+=65536),(r>11>16&&(3&t[2])===e){t[2]+=2048;try{o.call(r)}finally{}}}else try{o.call(r)}finally{}}class Ce{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Ee(t,e,i){const n=Et(t);let s=0;for(;se){r=o-1;break}}}for(;o>16,n=e;for(;i>0;)n=n[15],i--;return n}let De=!0;function Me(t){const e=De;return De=t,e}let Le=0;function Ne(t,e){const i=Ze(t,e);if(-1!==i)return i;const n=e[1];n.firstCreatePass&&(t.injectorIndex=e.length,ze(n.data,t),ze(e,null),ze(n.blueprint,null));const s=Be(t,e),o=t.injectorIndex;if(Re(s)){const t=Oe(s),i=Pe(s,e),n=i[1].data;for(let s=0;s<8;s++)e[o+s]=i[t+s]|n[t+s]}return e[o+8]=s,o}function ze(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Ze(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Be(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let i=0,n=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(n=2===e?t.declTNode:1===e?s[6]:null,null===n)return-1;if(i++,s=s[15],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return-1}function Fe(t,e,i){!function(t,e,i){let n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty($)&&(n=i[$]),null==n&&(n=i[$]=Le++);const s=255&n;e.data[t+(s>>5)]|=1<=0?255&e:je:e}(i);if("function"==typeof o){if(!re(e,t,n))return n&x.Host?Ue(s,i,n):qe(e,i,n,s);try{const t=o(n);if(null!=t||n&x.Optional)return t;w(i)}finally{he()}}else if("number"==typeof o){let s=null,r=Ze(t,e),a=-1,c=n&x.Host?e[16][6]:null;for((-1===r||n&x.SkipSelf)&&(a=-1===r?Be(t,e):e[r+8],-1!==a&&Je(n,!1)?(s=e[1],r=Oe(a),e=Pe(a,e)):r=-1);-1!==r;){const t=e[1];if($e(o,r,t.data)){const t=Ye(r,e,i,s,n,c);if(t!==Ge)return t}a=e[r+8],-1!==a&&Je(n,e[1].data[r+8]===c)&&$e(o,r,e)?(s=t,r=Oe(a),e=Pe(a,e)):r=-1}}}return qe(e,i,n,s)}const Ge={};function je(){return new Qe(Ht(),Ft())}function Ye(t,e,i,n,s,o){const r=e[1],a=r.data[t+8],c=Ke(a,r,i,null==n?dt(a)&&De:n!=r&&0!=(3&a.type),s&x.Host&&o===a);return null!==c?Ve(e,r,c,a):Ge}function Ke(t,e,i,n,s){const o=t.providerIndexes,r=e.data,a=1048575&o,c=t.directiveStart,l=o>>20,u=s?a+l:t.directiveEnd;for(let h=n?a:a+l;h=c&&t.type===i)return h}if(s){const t=r[c];if(t&>(t)&&t.type===i)return c}return null}function Ve(t,e,i,n){let s=t[i];const o=e.data;if(s instanceof Ce){const r=s;r.resolving&&function(t,e){throw new m("200",`Circular dependency in DI detected for ${t}`)}(_(o[i]));const a=Me(r.canSeeViewProviders);r.resolving=!0;const c=r.injectImpl?O(r.injectImpl):null;re(t,n,x.Default);try{s=t[i]=r.factory(void 0,o,t,n),e.firstCreatePass&&i>=n.directiveStart&&function(t,e,i){const{ngOnChanges:n,ngOnInit:s,ngDoCheck:o}=e.type.prototype;if(n){const n=_t(e);(i.preOrderHooks||(i.preOrderHooks=[])).push(t,n),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,n)}s&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-t,s),o&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,o),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,o))}(i,o[i],e)}finally{null!==c&&O(c),Me(a),r.resolving=!1,he()}}return s}function $e(t,e,i){return!!(i[e+(t>>5)]&1<{const e=t.prototype.constructor,i=e[V]||Xe(e),n=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==n;){const t=s[V]||Xe(s);if(t&&t!==i)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function Xe(t){return f(t)?()=>{const e=Xe(g(t));return e&&e()}:ft(t)}function ti(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const i=t.attrs;if(i){const t=i.length;let n=0;for(;n{const n=function(t){return function(...e){if(t){const i=t(...e);for(const t in i)this[t]=i[t]}}}(e);function s(...t){if(this instanceof s)return n.apply(this,t),this;const e=new s(...t);return i.annotation=e,i;function i(t,i,n){const s=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;s.length<=n;)s.push(null);return(s[n]=s[n]||[]).push(e),t}}return i&&(s.prototype=Object.create(i.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class ii{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=A({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const ni=new ii("AnalyzeForEntryComponents"),si=Function;function oi(t,e){void 0===e&&(e=t);for(let i=0;iArray.isArray(t)?ri(t,e):e(t))}function ai(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function ci(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function li(t,e){const i=[];for(let n=0;n=0?t[1|n]=i:(n=~n,function(t,e,i,n){let s=t.length;if(s==e)t.push(i,n);else if(1===s)t.push(n,t[0]),t[0]=i;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=i,t[e+1]=n}}(t,n,e,i)),n}function hi(t,e){const i=di(t,e);if(i>=0)return t[1|i]}function di(t,e){return function(t,e,i){let n=0,s=t.length>>1;for(;s!==n;){const i=n+(s-n>>1),o=t[i<<1];if(e===o)return i<<1;o>e?s=i:n=i+1}return~(s<<1)}(t,e)}const pi={},gi=/\n/gm,fi=c({provide:String,useValue:c});let mi;function bi(t){const e=mi;return mi=t,e}function _i(t,e=x.Default){if(void 0===mi)throw new Error("inject() must be called from an injection context");return null===mi?P(t,void 0,e):mi.get(t,e&x.Optional?null:void 0,e)}function wi(t,e=x.Default){return(R||_i)(g(t),e)}const Ai=wi;function yi(t){const e=[];for(let i=0;i({token:t})),-1),Ci=vi(ei("Optional"),8),Ei=vi(ei("SkipSelf"),4);let Si,ki;function Ii(t){var e;return(null===(e=function(){if(void 0===Si&&(Si=null,F.trustedTypes))try{Si=F.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Si}())||void 0===e?void 0:e.createHTML(t))||t}function xi(t){var e;return(null===(e=function(){if(void 0===ki&&(ki=null,F.trustedTypes))try{ki=F.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return ki}())||void 0===e?void 0:e.createHTML(t))||t}class Ri{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Oi extends Ri{getTypeName(){return"HTML"}}class Pi extends Ri{getTypeName(){return"Style"}}class Di extends Ri{getTypeName(){return"Script"}}class Mi extends Ri{getTypeName(){return"URL"}}class Li extends Ri{getTypeName(){return"ResourceURL"}}function Ni(t){return t instanceof Ri?t.changingThisBreaksApplicationSecurity:t}function zi(t,e){const i=Zi(t);if(null!=i&&i!==e){if("ResourceURL"===i&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${i} (see https://g.co/ng/security#xss)`)}return i===e}function Zi(t){return t instanceof Ri&&t.getTypeName()||null}function Bi(t){return new Oi(t)}function Fi(t){return new Pi(t)}function Ui(t){return new Di(t)}function qi(t){return new Mi(t)}function Hi(t){return new Li(t)}class Gi{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Ii(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class ji{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Ii(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Ii(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let n=e.length-1;0Vi(t.trim())).join(", ")),this.buf.push(" ",e,'="',un(r),'"')}var n;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();en.hasOwnProperty(e)&&!Qi.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(un(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const cn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ln=/([^\#-~ |!])/g;function un(t){return t.replace(/&/g,"&").replace(cn,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(ln,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let hn;function dn(t,e){let i=null;try{hn=hn||function(t){const e=new ji(t);return function(){try{return!!(new window.DOMParser).parseFromString(Ii(""),"text/html")}catch(t){return!1}}()?new Gi(e):e}(t);let n=e?String(e):"";i=hn.getInertBodyElement(n);let s=5,o=n;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,n=o,o=i.innerHTML,i=hn.getInertBodyElement(n)}while(n!==o);return Ii((new an).sanitizeChildren(pn(i)||i))}finally{if(i){const t=pn(i)||i;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function pn(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var gn=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function fn(t){const e=bn();return e?xi(e.sanitize(gn.HTML,t)||""):zi(t,"HTML")?xi(Ni(t)):dn(Ct(),b(t))}function mn(t){const e=bn();return e?e.sanitize(gn.URL,t)||"":zi(t,"URL")?Ni(t):Vi(b(t))}function bn(){const t=Ft();return t&&t[12]}function _n(t,e){t.__ngContext__=e}function wn(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function An(t){return t.ngDebugContext}function yn(t){return t.ngOriginalError}function vn(t,...e){t.error(...e)}class Tn{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=this._findContext(t),n=function(t){return t.ngErrorLogger||vn}(t);n(this._console,"ERROR",t),e&&n(this._console,"ORIGINAL ERROR",e),i&&n(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?An(t)?An(t):this._findContext(yn(t)):null}_findOriginalError(t){let e=yn(t);for(;e&&yn(e);)e=yn(e);return e}}const Cn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(F))();function En(t){return t.ownerDocument.defaultView}function Sn(t){return t.ownerDocument}function kn(t){return t.ownerDocument.body}function In(t){return t instanceof Function?t():t}var xn=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function Rn(t,e){return(void 0)(t,e)}function On(t){const e=t[3];return ut(e)?e[3]:e}function Pn(t){return Mn(t[13])}function Dn(t){return Mn(t[4])}function Mn(t){for(;null!==t&&!ut(t);)t=t[4];return t}function Ln(t,e,i,n,s){if(null!=n){let o,r=!1;ut(n)?o=n:lt(n)&&(r=!0,n=n[0]);const a=kt(n);0===t&&null!==i?null==s?Hn(e,i,a):qn(e,i,a,s||null,!0):1===t&&null!==i?qn(e,i,a,s||null,!0):2===t?function(t,e,i){const n=jn(t,e);n&&function(t,e,i,n){Et(t)?t.removeChild(e,i,n):e.removeChild(i)}(t,n,e,i)}(e,a,r):3===t&&e.destroyNode(a),null!=o&&function(t,e,i,n,s){const o=i[7];o!==kt(i)&&Ln(e,t,n,o,s);for(let r=10;r0&&(t[i-1][4]=n[4]);const r=ci(t,10+e);Xn(n[1],s=n,s[11],2,null,null),s[0]=null,s[6]=null;const a=r[19];null!==a&&a.detachView(r[1]),n[3]=null,n[4]=null,n[2]&=-129}var s;return n}function Bn(t,e){if(!(256&e[2])){const i=e[11];Et(i)&&i.destroyNode&&Xn(t,e,i,3,null,null),function(t){let e=t[13];if(!e)return Fn(t[1],t);for(;e;){let i=null;if(lt(e))i=e[13];else{const t=e[10];t&&(i=t)}if(!i){for(;e&&!e[4]&&e!==t;)lt(e)&&Fn(e[1],e),e=e[3];null===e&&(e=t),lt(e)&&Fn(e[1],e),i=e&&e[4]}e=i}}(e)}}function Fn(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let i;if(null!=t&&null!=(i=t.destroyHooks))for(let n=0;n=0?n[s=c]():n[s=-c].unsubscribe(),o+=2}else{const t=n[s=i[o+1]];i[o].call(t)}if(null!==n){for(let t=s+1;to?"":s[u+1].toLowerCase();const e=8&n?t:null;if(e&&-1!==ns(e,l,0)||2&n&&l!==t){if(cs(n))return!1;r=!0}}}}else{if(!r&&!cs(n)&&!cs(c))return!1;if(r&&cs(c))continue;r=!1,n=c|1&n}}return cs(n)||r}function cs(t){return 0==(1&t)}function ls(t,e,i,n){if(null===e)return-1;let s=0;if(n||!i){let i=!1;for(;s-1)for(i++;i0?'="'+e+'"':"")+"]"}else 8&n?s+="."+r:4&n&&(s+=" "+r);else""===s||cs(r)||(e+=ds(o,s),s=""),n=r,o=o||!cs(n);i++}return""!==s&&(e+=ds(o,s)),e}const gs={};function fs(t){ms(Ut(),Ft(),pe()+t,Vt())}function ms(t,e,i,n){if(!n)if(3==(3&e[2])){const n=t.preOrderCheckHooks;null!==n&&we(e,n,i)}else{const n=t.preOrderHooks;null!==n&&Ae(e,n,0,i)}ge(i)}function bs(t,e){return t<<17|e<<2}function _s(t){return t>>17&32767}function ws(t){return 2|t}function As(t){return(131068&t)>>2}function ys(t,e){return-131069&t|e<<2}function vs(t){return 1|t}function Ts(t,e){const i=t.contentQueries;if(null!==i)for(let n=0;n20&&ms(t,e,20,Vt()),i(n,s)}finally{ge(o)}}function Os(t,e,i){if(ht(e)){const n=e.directiveEnd;for(let s=e.directiveStart;s0;){const i=t[--e];if("number"==typeof i&&i<0)return i}return 0})(i)!=o&&i.push(o),i.push(n,s,r)}}function Us(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function qs(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Hs(t,e,i){if(i){if(e.exportAs)for(let n=0;n0&&Ws(i)}}function Ws(t){for(let i=Pn(t);null!==i;i=Dn(i))for(let t=10;t0&&Ws(e)}const e=t[1].components;if(null!==e)for(let i=0;i0&&Ws(n)}}function Xs(t,e){const i=Pt(e,t),n=i[1];!function(t,e){for(let i=e.length;iPromise.resolve(null))();function ro(t){return t[7]||(t[7]=[])}function ao(t){return t.cleanup||(t.cleanup=[])}function co(t,e,i){return(null===t||gt(t))&&(i=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(i[e.index])),i[11]}function lo(t,e){const i=t[9],n=i?i.get(Tn,null):null;n&&n.handleError(e)}function uo(t,e,i,n,s){for(let o=0;othis.processProvider(i,t,e)),ri([t],t=>this.processInjectorType(t,[],s)),this.records.set(go,Eo(void 0,this));const o=this.records.get(mo);this.scope=null!=o?o.value:null,this.source=n||("object"==typeof t?null:u(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=pi,i=x.Default){this.assertNotDestroyed();const n=bi(this);try{if(!(i&x.SkipSelf)){let e=this.records.get(t);if(void 0===e){const i=("function"==typeof(s=t)||"object"==typeof s&&s instanceof ii)&&v(t);e=i&&this.injectableDefInScope(i)?Eo(To(t),bo):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(i&x.Self?Ao():this.parent).get(t,e=i&x.Optional&&e===pi?null:e)}catch(o){if("NullInjectorError"===o.name){if((o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(u(t)),n)throw o;return function(t,e,i,n){const s=t.ngTempTokenPath;throw e.__source&&s.unshift(e.__source),t.message=function(t,e,i,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=u(e);if(Array.isArray(e))s=e.map(u).join(" -> ");else if("object"==typeof e){let t=[];for(let i in e)if(e.hasOwnProperty(i)){let n=e[i];t.push(i+":"+("string"==typeof n?JSON.stringify(n):u(n)))}s=`{${t.join(", ")}}`}return`${i}${n?"("+n+")":""}[${s}]: ${t.replace(gi,"\n ")}`}("\n"+t.message,s,i,n),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(o,t,"R3InjectorError",this.source)}throw o}finally{bi(n)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,i)=>t.push(u(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,i){if(!(t=g(t)))return!1;let n=C(t);const s=null==n&&t.ngModule||void 0,o=void 0===s?t:s,r=-1!==i.indexOf(o);if(void 0!==s&&(n=C(s)),null==n)return!1;if(null!=n.imports&&!r){let t;i.push(o);try{ri(n.imports,n=>{this.processInjectorType(n,e,i)&&(void 0===t&&(t=[]),t.push(n))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,i,n||q))}}this.injectorDefTypes.add(o);const a=ft(o)||(()=>new o);this.records.set(o,Eo(a,bo));const c=n.providers;if(null!=c&&!r){const e=t;ri(c,t=>this.processProvider(t,e,c))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,i){let n=ko(t=g(t))?t:g(t&&t.provide);const s=function(t,e,i){return So(t)?Eo(void 0,t.useValue):Eo(Co(t),bo)}(t);if(ko(t)||!0!==t.multi)this.records.get(n);else{let e=this.records.get(n);e||(e=Eo(void 0,bo,!0),e.factory=()=>yi(e.multi),this.records.set(n,e)),n=t,e.multi.push(t)}this.records.set(n,s)}hydrate(t,e){var i;return e.value===bo&&(e.value=_o,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(i=e.value)&&"object"==typeof i&&"function"==typeof i.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=g(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function To(t){const e=v(t),i=null!==e?e.factory:ft(t);if(null!==i)return i;if(t instanceof ii)throw new Error(`Token ${u(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const i=li(e,"?");throw new Error(`Can't resolve all parameters for ${u(t)}: (${i.join(", ")}).`)}const i=function(t){const e=t&&(t[E]||t[k]);if(e){const i=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${i}" 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 "${i}" class.`),e}return null}(t);return null!==i?()=>i.factory(t):()=>new t}(t);throw new Error("unreachable")}function Co(t,e,i){let n;if(ko(t)){const e=g(t);return ft(e)||To(e)}if(So(t))n=()=>g(t.useValue);else if((s=t)&&s.useFactory)n=()=>t.useFactory(...yi(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))n=()=>wi(g(t.useExisting));else{const e=g(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return ft(e)||To(e);n=()=>new e(...yi(t.deps))}var s;return n}function Eo(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function So(t){return null!==t&&"object"==typeof t&&fi in t}function ko(t){return"function"==typeof t}const Io=function(t,e,i){return function(t,e=null,i=null,n){const s=yo(t,e,i,n);return s._resolveInjectorDefTypes(),s}({name:i},e,t,i)};let xo=(()=>{class t{static create(t,e){return Array.isArray(t)?Io(t,e,""):Io(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=pi,t.NULL=new fo,t.\u0275prov=A({token:t,providedIn:"any",factory:()=>wi(go)}),t.__NG_ELEMENT_ID__=-1,t})();function Ro(t,e){_e(wn(t)[1],Ht())}function Oo(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,i=!0;const n=[t];for(;e;){let s;if(gt(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(i){n.push(s);const e=t;e.inputs=Po(t.inputs),e.declaredInputs=Po(t.declaredInputs),e.outputs=Po(t.outputs);const i=s.hostBindings;i&&Lo(t,i);const o=s.viewQuery,r=s.contentQueries;if(o&&Do(t,o),r&&Mo(t,r),l(t.inputs,s.inputs),l(t.declaredInputs,s.declaredInputs),l(t.outputs,s.outputs),gt(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let n=0;n=0;n--){const s=t[n];s.hostVars=e+=s.hostVars,s.hostAttrs=Ie(s.hostAttrs,i=Ie(i,s.hostAttrs))}}(n)}function Po(t){return t===U?{}:t===q?[]:t}function Do(t,e){const i=t.viewQuery;t.viewQuery=i?(t,n)=>{e(t,n),i(t,n)}:e}function Mo(t,e){const i=t.contentQueries;t.contentQueries=i?(t,n,s)=>{e(t,n,s),i(t,n,s)}:e}function Lo(t,e){const i=t.hostBindings;t.hostBindings=i?(t,n)=>{e(t,n),i(t,n)}:e}let No=null;function zo(){if(!No){const t=F.Symbol;if(t&&t.iterator)No=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(kt(t[n.index])):n.index;if(Et(i)){let r=null;if(!a&&c&&(r=function(t,e,i,n){const s=t.cleanup;if(null!=s)for(let o=0;oi?t[i]:null}"string"==typeof t&&(o+=2)}return null}(t,e,s,n.index)),null!==r)(r.__ngLastListenerFn__||r).__ngNextListenerFn__=o,r.__ngLastListenerFn__=o,h=!1;else{o=fr(n,e,0,o,!1);const t=i.listen(p,s,o);u.push(o,t),l&&l.push(s,f,g,g+1)}}else o=fr(n,e,0,o,!0),p.addEventListener(s,o,r),u.push(o),l&&l.push(s,f,g,r)}else o=fr(n,e,0,o,!1);const d=n.outputs;let p;if(h&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let i=0;i0;)e=e[15],t--;return e}(t,Zt.lFrame.contextLView))[8]}(t)}function br(t,e){let i=null;const n=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s=0}const Er={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Sr(t){return t.substring(Er.key,Er.keyEnd)}function kr(t,e){const i=Er.textEnd;return i===e?-1:(e=Er.keyEnd=function(t,e,i){for(;e32;)e++;return e}(t,Er.key=e,i),Ir(t,e,i))}function Ir(t,e,i){for(;e=0;i=kr(e,i))ui(t,Sr(e),!0)}function Dr(t,e,i,n){const s=Ft(),o=Ut(),r=Xt(2);o.firstUpdatePass&&Nr(o,t,r,n),e!==gs&&qo(s,r,e)&&Br(o,o.data[pe()],s,s[11],t,s[r+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=u(Ni(t)))),t}(e,i),n,r)}function Mr(t,e,i,n){const s=Ut(),o=Xt(2);s.firstUpdatePass&&Nr(s,null,o,n);const r=Ft();if(i!==gs&&qo(r,o,i)){const a=s.data[pe()];if(qr(a,n)&&!Lr(s,o)){let t=n?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(i=h(t,i||"")),tr(s,a,r,i,n)}else!function(t,e,i,n,s,o,r,a){s===gs&&(s=q);let c=0,l=0,u=0=t.expandoStartIndex}function Nr(t,e,i,n){const s=t.data;if(null===s[i+1]){const o=s[pe()],r=Lr(t,i);qr(o,n)&&null===e&&!r&&(e=!1),e=function(t,e,i,n){const s=ie(t);let o=n?e.residualClasses:e.residualStyles;if(null===s)0===(n?e.classBindings:e.styleBindings)&&(i=Zr(i=zr(null,t,e,i,n),e.attrs,n),o=null);else{const r=e.directiveStylingLast;if(-1===r||t[r]!==s)if(i=zr(s,t,e,i,n),null===o){let i=function(t,e,i){const n=i?e.classBindings:e.styleBindings;if(0!==As(n))return t[_s(n)]}(t,e,n);void 0!==i&&Array.isArray(i)&&(i=zr(null,t,e,i[1],n),i=Zr(i,e.attrs,n),function(t,e,i,n){t[_s(i?e.classBindings:e.styleBindings)]=n}(t,e,n,i))}else o=function(t,e,i){let n;const s=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0)&&(u=!0)}else l=i;if(s)if(0!==c){const e=_s(t[a+1]);t[n+1]=bs(e,a),0!==e&&(t[e+1]=ys(t[e+1],n)),t[a+1]=131071&t[a+1]|n<<17}else t[n+1]=bs(a,0),0!==a&&(t[a+1]=ys(t[a+1],n)),a=n;else t[n+1]=bs(c,0),0===a?a=n:t[c+1]=ys(t[c+1],n),c=n;u&&(t[n+1]=ws(t[n+1])),Tr(t,l,n,!0),Tr(t,l,n,!1),function(t,e,i,n,s){const o=s?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&di(o,e)>=0&&(i[n+1]=vs(i[n+1]))}(e,l,t,n,o),r=bs(a,c),o?e.classBindings=r:e.styleBindings=r}(s,o,e,i,r,n)}}function zr(t,e,i,n,s){let o=null;const r=i.directiveEnd;let a=i.directiveStylingLast;for(-1===a?a=i.directiveStart:a++;a0;){const e=t[s],o=Array.isArray(e),c=o?e[1]:e,l=null===c;let u=i[s+1];u===gs&&(u=l?q:void 0);let h=l?hi(u,n):c===n?u:void 0;if(o&&!Ur(h)&&(h=hi(e,n)),Ur(h)&&(a=h,r))return a;const d=t[s+1];s=r?_s(d):As(d)}if(null!==e){let t=o?e.residualClasses:e.residualStyles;null!=t&&(a=hi(t,n))}return a}function Ur(t){return void 0!==t}function qr(t,e){return 0!=(t.flags&(e?16:32))}function Hr(t,e=""){const i=Ft(),n=Ut(),s=t+20,o=n.firstCreatePass?Es(n,s,1,e,null):n.data[s],r=i[s]=function(t,e){return Et(t)?t.createText(e):t.createTextNode(e)}(i[11],e);Vn(n,i,r,o),jt(o,!1)}function Gr(t){return jr("",t,""),Gr}function jr(t,e,i){const n=Ft(),s=Ko(n,t,e,i);return s!==gs&&ho(n,pe(),s),jr}function Yr(t,e,i,n,s){const o=Ft(),r=Vo(o,t,e,i,n,s);return r!==gs&&ho(o,pe(),r),Yr}function Kr(t,e,i,n,s,o,r){const a=Ft(),c=function(t,e,i,n,s,o,r,a){const c=Go(t,Qt(),i,s,r);return Xt(3),c?e+b(i)+n+b(s)+o+b(r)+a:gs}(a,t,e,i,n,s,o,r);return c!==gs&&ho(a,pe(),c),Kr}function Vr(t,e,i,n,s,o,r,a,c){const l=Ft(),u=function(t,e,i,n,s,o,r,a,c,l){const u=jo(t,Qt(),i,s,r,c);return Xt(4),u?e+b(i)+n+b(s)+o+b(r)+a+b(c)+l:gs}(l,t,e,i,n,s,o,r,a,c);return u!==gs&&ho(l,pe(),u),Vr}function $r(t,e,i,n,s,o,r,a,c,l,u){const h=Ft(),d=function(t,e,i,n,s,o,r,a,c,l,u,h){const d=Qt();let p=jo(t,d,i,s,r,c);return p=qo(t,d+4,u)||p,Xt(5),p?e+b(i)+n+b(s)+o+b(r)+a+b(c)+l+b(u)+h:gs}(h,t,e,i,n,s,o,r,a,c,l,u);return d!==gs&&ho(h,pe(),d),$r}function Jr(t,e,i){Mr(ui,Pr,Ko(Ft(),t,e,i),!0)}function Qr(t,e,i){const n=Ft();return qo(n,Wt(),e)&&Zs(Ut(),fe(),n,t,e,n[11],i,!0),Qr}function Wr(t,e,i){const n=Ft();if(qo(n,Wt(),e)){const s=Ut(),o=fe();Zs(s,o,n,t,e,co(ie(s.data),o,n),i,!0)}return Wr}const Xr=void 0;var ta=["en",[["a","p"],["AM","PM"],Xr],[["AM","PM"],Xr,Xr],[["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"]],Xr,[["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"]],Xr,[["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}",Xr,"{1} 'at' {0}",Xr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let ea={};function ia(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let i=sa(e);if(i)return i;const n=e.split("-")[0];if(i=sa(n),i)return i;if("en"===n)return ta;throw new Error(`Missing locale data for the locale "${t}".`)}function na(t){return ia(t)[oa.PluralCase]}function sa(t){return t in ea||(ea[t]=F.ng&&F.ng.common&&F.ng.common.locales&&F.ng.common.locales[t]),ea[t]}var oa=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});let ra="en-US";function aa(t){var e,i;i="Expected localeId to be defined",null==(e=t)&&function(t,e,i,n){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(i,e),"string"==typeof t&&(ra=t.toLowerCase().replace(/_/g,"-"))}function ca(t,e,i,n,s){if(t=g(t),Array.isArray(t))for(let o=0;o>20;if(ko(t)||!t.multi){const n=new Ce(c,s,Wo),p=ha(a,e,s?u:u+d,h);-1===p?(Fe(Ne(l,r),o,a),la(o,t,e.length),e.push(a),l.directiveStart++,l.directiveEnd++,s&&(l.providerIndexes+=1048576),i.push(n),r.push(n)):(i[p]=n,r[p]=n)}else{const p=ha(a,e,u+d,h),g=ha(a,e,u,u+d),f=p>=0&&i[p],m=g>=0&&i[g];if(s&&!m||!s&&!f){Fe(Ne(l,r),o,a);const u=function(t,e,i,n,s){const o=new Ce(t,i,Wo);return o.multi=[],o.index=e,o.componentProviders=0,ua(o,s,n&&!i),o}(s?pa:da,i.length,s,n,c);!s&&m&&(i[g].providerFactory=u),la(o,t,e.length,0),e.push(a),l.directiveStart++,l.directiveEnd++,s&&(l.providerIndexes+=1048576),i.push(u),r.push(u)}else la(o,t,p>-1?p:g,ua(i[s?g:p],c,!s&&n));!s&&n&&m&&i[g].componentProviders++}}}function la(t,e,i,n){const s=ko(e);if(s||e.useClass){const o=(e.useClass||e).prototype.ngOnDestroy;if(o){const r=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=r.indexOf(i);-1===t?r.push(i,[n,o]):r[t+1].push(n,o)}else r.push(i,o)}}}function ua(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function ha(t,e,i,n){for(let s=i;s{i.providersResolver=(i,n)=>function(t,e,i){const n=Ut();if(n.firstCreatePass){const s=gt(t);ca(i,n.data,n.blueprint,s,!0),ca(e,n.data,n.blueprint,s,!1)}}(i,n?n(t):t,e)}}class ma{}class ba{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${u(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let _a=(()=>{class t{}return t.NULL=new ba,t})();function wa(...t){}function Aa(t,e){return new va(xt(t,e))}const ya=function(){return Aa(Ht(),Ft())};let va=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=ya,t})();function Ta(t){return t instanceof va?t.nativeElement:t}class Ca{}let Ea=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Sa(),t})();const Sa=function(){const t=Ft(),e=Pt(Ht().index,t);return function(t){return t[11]}(lt(e)?e:t)};let ka=(()=>{class t{}return t.\u0275prov=A({token:t,providedIn:"root",factory:()=>null}),t})();class Ia{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const xa=new Ia("12.0.5");class Ra{constructor(){}supports(t){return Bo(t)}create(t){return new Pa(t)}}const Oa=(t,e)=>e;class Pa{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Oa}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,n=0,s=null;for(;e||i;){const o=!i||e&&e.currentIndex{n=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,n)?(o&&(s=this._verifyReinsertion(s,t,n,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,n,e),o=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,n){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,n)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,n))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,n)):t=this._addAfter(new Da(e,i),s,n),t}_verifyReinsertion(t,e,i,n){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,n):t.currentIndex!=n&&(t.currentIndex=n,this._addToMoves(t,n)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const n=t._prevRemoved,s=t._nextRemoved;return null===n?this._removalsHead=s:n._nextRemoved=s,null===s?this._removalsTail=n:s._prevRemoved=n,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const n=null===e?this._itHead:e._next;return t._next=n,t._prev=e,null===n?this._itTail=t:n._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new La),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new La),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Da{constructor(t,e){this.item=t,this.trackById=e,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 Ma{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class La{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new Ma,this.map.set(e,i)),i.add(t)}get(t,e){const i=this.map.get(t);return i?i.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Na(t,e,i){const n=t.previousIndex;if(null===n)return n;let s=0;return i&&n{if(e&&e.key===i)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const n=this._getOrCreateRecordForKey(i,t);e=this._insertBeforeOrAppend(e,n)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,e);const n=i._prev,s=i._next;return n&&(n._next=s),s&&(s._prev=n),i._next=null,i._prev=null,i}const i=new Ba(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class Ba{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Fa(){return new Ua([new Ra])}let Ua=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(null!=i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Fa()),deps:[[t,new Ei,new Ci]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${i=t,i.name||typeof i}'`);var i}}return t.\u0275prov=A({token:t,providedIn:"root",factory:Fa}),t})();function qa(){return new Ha([new za])}let Ha=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||qa()),deps:[[t,new Ei,new Ci]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=A({token:t,providedIn:"root",factory:qa}),t})();function Ga(t,e,i,n,s=!1){for(;null!==i;){const o=e[i.index];if(null!==o&&n.push(kt(o)),ut(o))for(let t=10;t-1&&(Zn(t,i),ci(e,i))}this._attachedToViewContainer=!1}Bn(this._lView[1],this._lView)}onDestroy(t){Ns(this._lView[1],this._lView,null,t)}markForCheck(){eo(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){io(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,i){$t(!0);try{io(t,e,i)}finally{$t(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,Xn(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Ya extends ja{constructor(t){super(t),this._view=t}detectChanges(){no(this._view)}checkNoChanges(){!function(t){$t(!0);try{no(t)}finally{$t(!1)}}(this._view)}get context(){return null}}const Ka=function(t){return function(t,e,i){if(dt(t)&&!i){const i=Pt(t.index,e);return new ja(i,i)}return 47&t.type?new ja(e[16],e):null}(Ht(),Ft(),16==(16&t))};let Va=(()=>{class t{}return t.__NG_ELEMENT_ID__=Ka,t})();const $a=[new za],Ja=new Ua([new Ra]),Qa=new Ha($a),Wa=function(){return ic(Ht(),Ft())};let Xa=(()=>{class t{}return t.__NG_ELEMENT_ID__=Wa,t})();const tc=Xa,ec=class extends tc{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=Cs(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const n=this._declarationLView[19];return null!==n&&(i[19]=n.createEmbeddedView(e)),ks(e,i,t),new ja(i)}};function ic(t,e){return 4&t.type?new ec(e,t,Aa(t,e)):null}class nc{}class sc{}const oc=function(){return hc(Ht(),Ft())};let rc=(()=>{class t{}return t.__NG_ELEMENT_ID__=oc,t})();const ac=rc,cc=class extends ac{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return Aa(this._hostTNode,this._hostLView)}get injector(){return new Qe(this._hostTNode,this._hostLView)}get parentInjector(){const t=Be(this._hostTNode,this._hostLView);if(Re(t)){const e=Pe(t,this._hostLView),i=Oe(t);return new Qe(e[1].data[i+8],e)}return new Qe(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=lc(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){const n=t.createEmbeddedView(e||{});return this.insert(n,i),n}createComponent(t,e,i,n,s){const o=i||this.parentInjector;if(!s&&null==t.ngModule&&o){const t=o.get(nc,null);t&&(s=t)}const r=t.create(o,n,void 0,s);return this.insert(r.hostView,e),r}insert(t,e){const i=t._lView,n=i[1];if(ut(i[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=i[3],n=new cc(e,e[6],e[3]);n.detach(n.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function(t,e,i,n){const s=10+n,o=i.length;n>0&&(i[s-1][4]=e),nCn});class mc extends ma{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(ps).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return gc(this.componentDef.inputs)}get outputs(){return gc(this.componentDef.outputs)}create(t,e,i,n){const s=(n=n||this.ngModule)?function(t,e){return{get:(i,n,s)=>{const o=t.get(i,dc,s);return o!==dc||n===dc?o:e.get(i,n,s)}}}(t,n.injector):t,o=s.get(Ca,St),r=s.get(ka,null),a=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",l=i?function(t,e,i){if(Et(t))return t.selectRootElement(e,i===L.ShadowDom);let n="string"==typeof e?t.querySelector(e):e;return n.textContent="",n}(a,i,this.componentDef.encapsulation):Nn(o.createRenderer(null,this.componentDef),c,function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:Cn,clean:oo,playerHandler:null,flags:0},d=Ls(0,null,null,1,0,null,null,null,null,null),p=Cs(null,d,h,u,null,null,o,a,r,s);let g,f;ae(p);try{const t=function(t,e,i,n,s,o){const r=i[1];i[20]=t;const a=Es(r,20,2,"#host",null),c=a.mergedAttrs=e.hostAttrs;null!==c&&(po(a,c,!0),null!==t&&(Ee(s,t,c),null!==a.classes&&is(s,t,a.classes),null!==a.styles&&es(s,t,a.styles)));const l=n.createRenderer(t,e),u=Cs(i,Ms(e),null,e.onPush?64:16,i[20],a,n,l,null,null);return r.firstCreatePass&&(Fe(Ne(a,i),r,e.type),qs(r,a),Gs(a,i.length,1)),to(i,u),i[20]=u}(l,this.componentDef,p,o,a);if(l)if(i)Ee(a,l,["ng-version",xa.full]);else{const{attrs:t,classes:e}=function(t){const e=[],i=[];let n=1,s=2;for(;n0&&is(a,l,e.join(" "))}if(f=Rt(d,20),void 0!==e){const t=f.projection=[];for(let i=0;it(r,e)),e.contentQueries){const t=Ht();e.contentQueries(1,r,t.directiveStart)}const a=Ht();return!o.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(ge(a.index),Fs(i[1],a,0,a.directiveStart,a.directiveEnd,e),Us(e,r)),r}(t,this.componentDef,p,h,[Ro]),ks(d,p,null)}finally{de()}return new bc(this.componentType,g,Aa(f,p),p,f)}}class bc extends class{}{constructor(t,e,i,n,s){super(),this.location=i,this._rootLView=n,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new Ya(n),this.componentType=t}get injector(){return new Qe(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const _c=new Map;class wc extends nc{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new pc(this);const i=ct(t),n=t[K]||null;n&&aa(n),this._bootstrapComponents=In(i.bootstrap),this._r3Injector=yo(t,e,[{provide:nc,useValue:this},{provide:_a,useValue:this.componentFactoryResolver}],u(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=xo.THROW_IF_NOT_FOUND,i=x.Default){return t===xo||t===nc||t===go?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Ac extends sc{constructor(t){super(),this.moduleType=t,null!==ct(t)&&function(t){const e=new Set;!function t(i){const n=ct(i,!0),s=n.id;null!==s&&(function(t,e,i){if(e&&e!==i)throw new Error(`Duplicate module registered for ${t} - ${u(e)} vs ${u(e.name)}`)}(s,_c.get(s),i),_c.set(s,i));const o=In(n.imports);for(const r of o)e.has(r)||(e.add(r),t(r))}(t)}(t)}create(t){return new wc(this.moduleType,t)}}function yc(t,e,i){const n=Jt()+t,s=Ft();return s[n]===gs?Uo(s,n,i?e.call(i):e()):function(t,e){return t[e]}(s,n)}function vc(t,e,i,n){return Sc(Ft(),Jt(),t,e,i,n)}function Tc(t,e,i,n,s){return kc(Ft(),Jt(),t,e,i,n,s)}function Cc(t,e,i,n,s,o){return Ic(Ft(),Jt(),t,e,i,n,s,o)}function Ec(t,e){const i=t[e];return i===gs?void 0:i}function Sc(t,e,i,n,s,o){const r=e+i;return qo(t,r,s)?Uo(t,r+1,o?n.call(o,s):n(s)):Ec(t,r+1)}function kc(t,e,i,n,s,o,r){const a=e+i;return Ho(t,a,s,o)?Uo(t,a+2,r?n.call(r,s,o):n(s,o)):Ec(t,a+2)}function Ic(t,e,i,n,s,o,r,a){const c=e+i;return Go(t,c,s,o,r)?Uo(t,c+3,a?n.call(a,s,o,r):n(s,o,r)):Ec(t,c+3)}function xc(t,e){const i=Ut();let n;const s=t+20;i.firstCreatePass?(n=function(t,e){if(e)for(let i=e.length-1;i>=0;i--){const n=e[i];if(t===n.name)return n}throw new m("302",`The pipe '${t}' could not be found!`)}(e,i.pipeRegistry),i.data[s]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(s,n.onDestroy)):n=i.data[s];const o=n.factory||(n.factory=ft(n.type)),r=O(Wo);try{const t=Me(!1),e=o();return Me(t),function(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}(i,Ft(),s,e),e}finally{O(r)}}function Rc(t,e,i){const n=t+20,s=Ft(),o=Ot(s,n);return Mc(s,Dc(s,n)?Sc(s,Jt(),e,o.transform,i,o):o.transform(i))}function Oc(t,e,i,n){const s=t+20,o=Ft(),r=Ot(o,s);return Mc(o,Dc(o,s)?kc(o,Jt(),e,r.transform,i,n,r):r.transform(i,n))}function Pc(t,e,i,n,s){const o=t+20,r=Ft(),a=Ot(r,o);return Mc(r,Dc(r,o)?Ic(r,Jt(),e,a.transform,i,n,s,a):a.transform(i,n,s))}function Dc(t,e){return t[1].data[e].pure}function Mc(t,e){return Zo.isWrapped(e)&&(e=Zo.unwrap(e),t[Qt()]=gs),e}function Lc(t){return e=>{setTimeout(t,void 0,e)}}const Nc=class extends n.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var n,o,r;let a=t,c=e||(()=>null),l=i;if(t&&"object"==typeof t){const e=t;a=null===(n=e.next)||void 0===n?void 0:n.bind(e),c=null===(o=e.error)||void 0===o?void 0:o.bind(e),l=null===(r=e.complete)||void 0===r?void 0:r.bind(e)}this.__isAsync&&(c=Lc(c),a&&(a=Lc(a)),l&&(l=Lc(l)));const u=super.subscribe({next:a,error:c,complete:l});return t instanceof s.w&&t.add(u),u}};function zc(){return this._results[zo()]()}class Zc{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=zo(),i=Zc.prototype;i[e]||(i[e]=zc)}get changes(){return this._changes||(this._changes=new Nc)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){this.dirty=!1;const i=oi(t);(this._changesDetected=!function(t,e,i){if(t.length!==e.length)return!1;for(let n=0;n0)n.push(r[t/2]);else{const s=o[t+1],r=e[-i];for(let t=10;t{class t{constructor(t){this.appInits=t,this.resolve=wa,this.reject=wa,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{e.subscribe({complete:t,error:i})});t.push(i)}}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(wi(il,8))},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t})();const sl=new ii("AppId"),ol={provide:sl,useFactory:function(){return`${rl()}${rl()}${rl()}`},deps:[]};function rl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const al=new ii("Platform Initializer"),cl=new ii("Platform ID"),ll=new ii("appBootstrapListener");let ul=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t})();const hl=new ii("LocaleId"),dl=new ii("DefaultCurrencyCode");class pl{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const gl=function(t){return new Ac(t)},fl=gl,ml=function(t){return Promise.resolve(gl(t))},bl=function(t){const e=gl(t),i=In(ct(t).declarations).reduce((t,e)=>{const i=at(e);return i&&t.push(new mc(i)),t},[]);return new pl(e,i)},_l=bl,wl=function(t){return Promise.resolve(bl(t))};let Al=(()=>{class t{constructor(){this.compileModuleSync=fl,this.compileModuleAsync=ml,this.compileModuleAndAllComponentsSync=_l,this.compileModuleAndAllComponentsAsync=wl}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t})();const yl=(()=>Promise.resolve(0))();function vl(t){"undefined"==typeof Zone?yl.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Tl{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Nc(!1),this.onMicrotaskEmpty=new Nc(!1),this.onStable=new Nc(!1),this.onError=new Nc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=!i&&e,this.shouldCoalesceRunChangeDetection=i,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=F.requestAnimationFrame,e=F.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(F,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Sl(t),t.isCheckStableRunning=!0,El(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Sl(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,s,o,r,a)=>{try{return kl(t),i.invokeTask(s,o,r,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&e(),Il(t)}},onInvoke:(i,n,s,o,r,a,c)=>{try{return kl(t),i.invoke(s,o,r,a,c)}finally{t.shouldCoalesceRunChangeDetection&&e(),Il(t)}},onHasTask:(e,i,n,s)=>{e.hasTask(n,s),i===n&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,Sl(t),El(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,n,s)=>(e.handleError(n,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Tl.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Tl.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,n){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+n,t,Cl,wa,wa);try{return s.runTask(o,e,i)}finally{s.cancelTask(o)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const Cl={};function El(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Sl(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function kl(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Il(t){t._nesting--,El(t)}class xl{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Nc,this.onMicrotaskEmpty=new Nc,this.onStable=new Nc,this.onError=new Nc}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,n){return t.apply(e,i)}}let Rl=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Tl.assertNotInAngularZone(),vl(()=>{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())vl(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,i){let n=-1;e&&e>0&&(n=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==n),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:n,updateCb:i})}whenStable(t,e,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,e,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,i){return[]}}return t.\u0275fac=function(e){return new(e||t)(wi(Tl))},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t})(),Ol=(()=>{class t{constructor(){this._applications=new Map,Ll.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Ll.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t})();class Pl{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}function Dl(t){Ll=t}let Ml,Ll=new Pl,Nl=!0,zl=!1;function Zl(){return zl=!0,Nl}function Bl(){if(zl)throw new Error("Cannot enable prod mode after platform setup.");Nl=!1}const Fl=new ii("AllowMultipleToken");class Ul{constructor(t,e){this.name=t,this.token=e}}function ql(t,e,i=[]){const n=`Platform: ${e}`,s=new ii(n);return(e=[])=>{let o=Hl();if(!o||o.injector.get(Fl,!1))if(t)t(i.concat(e).concat({provide:s,useValue:!0}));else{const t=i.concat(e).concat({provide:s,useValue:!0},{provide:mo,useValue:"platform"});!function(t){if(Ml&&!Ml.destroyed&&!Ml.injector.get(Fl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ml=t.get(Gl);const e=t.get(al,null);e&&e.forEach(t=>t())}(xo.create({providers:t,name:n}))}return function(t){const e=Hl();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function Hl(){return Ml&&!Ml.destroyed?Ml:null}let Gl=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const i=function(t,e){let i;return i="noop"===t?new xl:("zone.js"===t?void 0:t)||new Tl({enableLongStackTrace:Zl(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),i}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),n=[{provide:Tl,useValue:i}];return i.run(()=>{const e=xo.create({providers:n,parent:this.injector,name:t.moduleType.name}),s=t.create(e),o=s.injector.get(Tn,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.runOutsideAngular(()=>{const t=i.onError.subscribe({next:t=>{o.handleError(t)}});s.onDestroy(()=>{Kl(this._modules,s),t.unsubscribe()})}),function(t,e,i){try{const n=i();return cr(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}(o,i,()=>{const t=s.injector.get(nl);return t.runInitializers(),t.donePromise.then(()=>(aa(s.injector.get(hl,"en-US")||"en-US"),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const i=jl({},e);return function(t,e,i){const n=new Ac(i);return Promise.resolve(n)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,i))}_moduleDoBootstrap(t){const e=t.injector.get(Yl);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${u(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(wi(xo))},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t})();function jl(t,e){return Array.isArray(e)?e.reduce(jl,t):Object.assign(Object.assign({},t),e)}let Yl=(()=>{class t{constructor(t,e,i,n,s){this._zone=t,this._injector=e,this._exceptionHandler=i,this._componentFactoryResolver=n,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const c=new o.y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),l=new o.y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Tl.assertNotInAngularZone(),vl(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const i=this._zone.onUnstable.subscribe(()=>{Tl.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),i.unsubscribe()}});this.isStable=(0,r.T)(c,l.pipe((0,a.B)()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let i;i=t instanceof ma?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(i.componentType);const n=i.isBoundToModule?void 0:this._injector.get(nc),s=i.create(xo.NULL,[],e||i.selector,n),o=s.location.nativeElement,r=s.injector.get(Rl,null),a=r&&s.injector.get(Ol);return r&&a&&a.registerApplication(o,r),s.onDestroy(()=>{this.detachView(s.hostView),Kl(this.components,s),a&&a.unregisterApplication(o)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Kl(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(ll,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(wi(Tl),wi(xo),wi(Tn),wi(_a),wi(nl))},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t})();function Kl(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}class Vl{}class $l{}const Jl={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Ql=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Jl}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,n]=t.split("#");return void 0===n&&(n="default"),i(27622)(e).then(t=>t[n]).then(t=>Wl(t,e,n)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,n]=t.split("#"),s="NgFactory";return void 0===n&&(n="default",s=""),i(27622)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[n+s]).then(t=>Wl(t,e,n))}}return t.\u0275fac=function(e){return new(e||t)(wi(Al),wi($l,8))},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t})();function Wl(t,e,i){if(!t)throw new Error(`Cannot find '${i}' in '${e}'`);return t}const Xl=function(t){return null},tu=ql(null,"core",[{provide:cl,useValue:"unknown"},{provide:Gl,deps:[xo]},{provide:Ol,deps:[]},{provide:ul,deps:[]}]),eu=[{provide:Yl,useClass:Yl,deps:[Tl,xo,Tn,_a,nl]},{provide:fc,deps:[Tl],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:nl,useClass:nl,deps:[[new Ci,il]]},{provide:Al,useClass:Al,deps:[]},ol,{provide:Ua,useFactory:function(){return Ja},deps:[]},{provide:Ha,useFactory:function(){return Qa},deps:[]},{provide:hl,useFactory:function(t){return aa(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new Ti(hl),new Ci,new Ei]]},{provide:dl,useValue:"USD"}];let iu=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(wi(Yl))},t.\u0275mod=it({type:t}),t.\u0275inj=y({providers:eu}),t})()},16073:function(t,e,i){"use strict";i.d(e,{Zs:function(){return zt},gN:function(){return z},Fj:function(){return p},qu:function(){return Ht},NI:function(){return rt},oH:function(){return yt},u:function(){return Et},sg:function(){return Tt},u5:function(){return Ut},Cf:function(){return m},JU:function(){return u},a5:function(){return Z},JJ:function(){return F},JL:function(){return U},F:function(){return ht},On:function(){return gt},YN:function(){return xt},wV:function(){return bt},c5:function(){return Bt},UX:function(){return qt},Q7:function(){return Nt},EJ:function(){return It},kI:function(){return w},_Y:function(){return ft},Kr:function(){return Dt}});var n=i(31572),s=i(61511),o=i(19764),r=i(3148),a=i(79996);let c=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Qsj),n.Y36(n.SBq))},t.\u0275dir=n.lG2({type:t}),t})(),l=(()=>{class t extends c{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,features:[n.qOj]}),t})();const u=new n.OlP("NgValueAccessor"),h={provide:u,useExisting:(0,n.Gpc)(()=>p),multi:!0},d=new n.OlP("CompositionEventMode");let p=(()=>{class t extends c{constructor(t,e,i){super(t,e),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=(0,s.q)()?(0,s.q)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(d,8))},t.\u0275dir=n.lG2({type:t,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(t,e){1&t&&n.NdJ("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[n._Bn([h]),n.qOj]}),t})();function g(t){return null==t||0===t.length}function f(t){return null!=t&&"number"==typeof t.length}const m=new n.OlP("NgValidators"),b=new n.OlP("NgAsyncValidators"),_=/^(?=.{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 w{static min(t){return function(t){return e=>{if(g(e.value)||g(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i{if(g(e.value)||g(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}(t)}static required(t){return A(t)}static requiredTrue(t){return y(t)}static email(t){return function(t){return g(t.value)||_.test(t.value)?null:{email:!0}}(t)}static minLength(t){return function(t){return e=>g(e.value)||!f(e.value)?null:e.value.lengthf(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}(t)}static pattern(t){return v(t)}static nullValidator(t){return null}static compose(t){return x(t)}static composeAsync(t){return O(t)}}function A(t){return g(t.value)?{required:!0}:null}function y(t){return!0===t.value?null:{required:!0}}function v(t){if(!t)return T;let e,i;return"string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),t=>{if(g(t.value))return null;const n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}}function T(t){return null}function C(t){return null!=t}function E(t){const e=(0,n.QGY)(t)?(0,o.D)(t):t;return(0,n.CqO)(e),e}function S(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function k(t,e){return e.map(e=>e(t))}function I(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function x(t){if(!t)return null;const e=t.filter(C);return 0==e.length?null:function(t){return S(k(t,e))}}function R(t){return null!=t?x(I(t)):null}function O(t){if(!t)return null;const e=t.filter(C);return 0==e.length?null:function(t){const i=k(t,e).map(E);return(0,r.D)(i).pipe((0,a.U)(S))}}function P(t){return null!=t?O(I(t)):null}function D(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function M(t){return t._rawValidators}function L(t){return t._rawAsyncValidators}let N=(()=>{class t{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(t){this._rawValidators=t||[],this._composedValidatorFn=R(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=P(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t}),t})(),z=(()=>{class t extends N{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,features:[n.qOj]}),t})();class Z extends N{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class B{constructor(t){this._cd=t}is(t){var e,i;return!!(null===(i=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===i?void 0:i[t])}}let F=(()=>{class t extends B{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(Z,2))},t.\u0275dir=n.lG2({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&n.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[n.qOj]}),t})(),U=(()=>{class t extends B{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(z,10))},t.\u0275dir=n.lG2({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&n.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[n.qOj]}),t})();function q(t,e){return[...e.path,t]}function H(t,e){Y(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&V(t,e)})}(t,e),function(t,e){const i=(t,i)=>{e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&V(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const i=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}(t,e)}function G(t,e,i=!0){const n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),K(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function j(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Y(t,e){const i=M(t);null!==e.validator?t.setValidators(D(i,e.validator)):"function"==typeof i&&t.setValidators([i]);const n=L(t);null!==e.asyncValidator?t.setAsyncValidators(D(n,e.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);const s=()=>t.updateValueAndValidity();j(e._rawValidators,s),j(e._rawAsyncValidators,s)}function K(t,e){let i=!1;if(null!==t){if(null!==e.validator){const n=M(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.validator);s.length!==n.length&&(i=!0,t.setValidators(s))}}if(null!==e.asyncValidator){const n=L(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.asyncValidator);s.length!==n.length&&(i=!0,t.setAsyncValidators(s))}}}const n=()=>{};return j(e._rawValidators,n),j(e._rawAsyncValidators,n),i}function V(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function $(t,e){Y(t,e)}function J(t,e){if(!t.hasOwnProperty("model"))return!1;const i=t.model;return!!i.isFirstChange()||!Object.is(e,i.currentValue)}function Q(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function W(t,e){if(!e)return null;let i,n,s;return Array.isArray(e),e.forEach(t=>{t.constructor===p?i=t:Object.getPrototypeOf(t.constructor)===l?n=t:s=t}),s||n||i||null}function X(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}function tt(t){return(st(t)?t.validators:t)||null}function et(t){return Array.isArray(t)?R(t):t||null}function it(t,e){return(st(e)?e.asyncValidators:t)||null}function nt(t){return Array.isArray(t)?P(t):t||null}function st(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class ot{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=et(this._rawValidators),this._composedAsyncValidatorFn=nt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=et(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=nt(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const e=E(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let n=t;return e.forEach(t=>{n=n instanceof at?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof ct&&n.at(t)||null}),n}(this,t)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new n.vpe,this.statusChanges=new n.vpe}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){st(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class rt extends ot{constructor(t=null,e,i){super(tt(e),it(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){X(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){X(this._onDisabledChange,t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class at extends ot{constructor(t,e,i){super(tt(e),it(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof rt?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((t,n)=>{i=e(i,t,n)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class ct extends ot{constructor(t,e,i){super(tt(e),it(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,i)=>{this._throwIfControlMissing(i),this.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,i)=>{this.at(i)&&this.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof rt?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const lt={provide:z,useExisting:(0,n.Gpc)(()=>ht)},ut=(()=>Promise.resolve(null))();let ht=(()=>{class t extends z{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new n.vpe,this.form=new at({},R(t),P(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){ut.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),H(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){ut.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),X(this._directives,t)})}addFormGroup(t){ut.then(()=>{const e=this._findContainer(t.path),i=new at({});$(i,t),e.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){ut.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){ut.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,Q(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(m,10),n.Y36(b,10))},t.\u0275dir=n.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&n.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n._Bn([lt]),n.qOj]}),t})();const dt={provide:Z,useExisting:(0,n.Gpc)(()=>gt)},pt=(()=>Promise.resolve(null))();let gt=(()=>{class t extends Z{constructor(t,e,i,s){super(),this.control=new rt,this._registered=!1,this.update=new n.vpe,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=W(0,s)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),J(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?q(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_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(){H(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(t){pt.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,i=""===e||e&&"false"!==e;pt.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(z,9),n.Y36(m,10),n.Y36(b,10),n.Y36(u,10))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[n._Bn([dt]),n.qOj,n.TTD]}),t})(),ft=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const mt={provide:u,useExisting:(0,n.Gpc)(()=>bt),multi:!0};let bt=(()=>{class t extends l{writeValue(t){this.setProperty("value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&n.NdJ("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[n._Bn([mt]),n.qOj]}),t})(),_t=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})();const wt=new n.OlP("NgModelWithFormControlWarning"),At={provide:Z,useExisting:(0,n.Gpc)(()=>yt)};let yt=(()=>{class t extends Z{constructor(t,e,i,s){super(),this._ngModelWarningConfig=s,this.update=new n.vpe,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(e),this.valueAccessor=W(0,i)}set isDisabled(t){}ngOnChanges(t){if(this._isControlChanged(t)){const e=t.form.previousValue;e&&G(e,this,!1),H(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}J(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&G(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(m,10),n.Y36(b,10),n.Y36(u,10),n.Y36(wt,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[n._Bn([At]),n.qOj,n.TTD]}),t._ngModelWarningSentOnce=!1,t})();const vt={provide:z,useExisting:(0,n.Gpc)(()=>Tt)};let Tt=(()=>{class t extends z{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new n.vpe,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(K(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return H(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){G(t.control||null,t,!1),X(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,Q(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,i=this.form.get(t.path);e!==i&&(G(e||null,t),i instanceof rt&&(H(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);$(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return K(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Y(this.form,this),this._oldForm&&K(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(m,10),n.Y36(b,10))},t.\u0275dir=n.lG2({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&n.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n._Bn([vt]),n.qOj,n.TTD]}),t})();const Ct={provide:Z,useExisting:(0,n.Gpc)(()=>Et)};let Et=(()=>{class t extends Z{constructor(t,e,i,s,o){super(),this._ngModelWarningConfig=o,this._added=!1,this.update=new n.vpe,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=W(0,s)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),J(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return q(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.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(z,13),n.Y36(m,10),n.Y36(b,10),n.Y36(u,10),n.Y36(wt,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[n._Bn([Ct]),n.qOj,n.TTD]}),t._ngModelWarningSentOnce=!1,t})();const St={provide:u,useExisting:(0,n.Gpc)(()=>It),multi:!0};function kt(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let It=(()=>{class t extends l{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this.setProperty("selectedIndex",-1);const i=kt(e,t);this.setProperty("value",i)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&n.NdJ("change",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[n._Bn([St]),n.qOj]}),t})(),xt=(()=>{class t{constructor(t,e,i){this._element=t,this._renderer=e,this._select=i,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(kt(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(It,9))},t.\u0275dir=n.lG2({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const Rt={provide:u,useExisting:(0,n.Gpc)(()=>Pt),multi:!0};function Ot(t,e){return null==t?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let Pt=(()=>{class t extends l{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const i=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(i.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const i=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e{class t{constructor(t,e,i){this._element=t,this._renderer=e,this._select=i,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(Ot(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(Ot(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(Pt,9))},t.\u0275dir=n.lG2({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const Mt={provide:m,useExisting:(0,n.Gpc)(()=>Nt),multi:!0},Lt={provide:m,useExisting:(0,n.Gpc)(()=>zt),multi:!0};let Nt=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!=`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?A(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&n.uIk("required",e.required?"":null)},inputs:{required:"required"},features:[n._Bn([Mt])]}),t})(),zt=(()=>{class t extends Nt{validate(t){return this.required?y(t):null}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&n.uIk("required",e.required?"":null)},features:[n._Bn([Lt]),n.qOj]}),t})();const Zt={provide:m,useExisting:(0,n.Gpc)(()=>Bt),multi:!0};let Bt=(()=>{class t{constructor(){this._validator=T}ngOnChanges(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=v(this.pattern)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&n.uIk("pattern",e.pattern?e.pattern:null)},inputs:{pattern:"pattern"},features:[n._Bn([Zt]),n.TTD]}),t})(),Ft=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[_t]]}),t})(),Ut=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[Ft]}),t})(),qt=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:wt,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[Ft]}),t})(),Ht=(()=>{class t{group(t,e=null){const i=this._reduceControls(t);let n,s=null,o=null;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(s=null!=e.validators?e.validators:null,o=null!=e.asyncValidators?e.asyncValidators:null,n=null!=e.updateOn?e.updateOn:void 0):(s=null!=e.validator?e.validator:null,o=null!=e.asyncValidator?e.asyncValidator:null)),new at(i,{asyncValidators:o,updateOn:n,validators:s})}control(t,e,i){return new rt(t,e,i)}array(t,e,i){const n=t.map(t=>this._createControl(t));return new ct(n,e,i)}_reduceControls(t){const e={};return Object.keys(t).forEach(i=>{e[i]=this._createControl(t[i])}),e}_createControl(t){return t instanceof rt||t instanceof at||t instanceof ct?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:function(){return new t},token:t,providedIn:qt}),t})()},40084:function(t,e,i){"use strict";i.d(e,{XC:function(){return z},Bb:function(){return H},ZL:function(){return q}});var n=i(24621),s=i(19861),o=i(11353),r=i(31572),a=i(71522),c=i(87570),l=i(55959),u=i(31450),h=i(31906),d=i(40878),p=i(87254),g=i(61511),f=i(2522),m=i(4253),b=i(75842),_=i(26899),w=i(16073),A=i(66283),y=i(90611),v=i(44689),T=i(43835),C=i(79996),E=i(66599),S=i(60509),k=i(22526);const I=["panel"];function x(t,e){if(1&t&&(r.TgZ(0,"div",0,1),r.Hsn(2),r.qZA()),2&t){const t=e.id,i=r.oxw();r.Q6J("id",i.id)("ngClass",i._classList),r.uIk("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(t))}}const R=["*"];let O=0;class P{constructor(t,e){this.source=t,this.option=e}}class D{}const M=(0,a.Kr)(D),L=new r.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}});let N=(()=>{class t extends M{constructor(t,e,i,n){super(),this._changeDetectorRef=t,this._elementRef=e,this._activeOptionChanges=c.w.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new r.vpe,this.opened=new r.vpe,this.closed=new r.vpe,this.optionActivated=new r.vpe,this._classList={},this.id="mat-autocomplete-"+O++,this.inertGroups=(null==n?void 0:n.SAFARI)||!1,this._autoActiveFirstOption=!!i.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(t){this._autoActiveFirstOption=(0,s.Ig)(t)}set classList(t){this._classList=t&&t.length?(0,s.du)(t).reduce((t,e)=>(t[e]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new n.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){const e=new P(this,t);this.optionSelected.emit(e)}_getPanelAriaLabelledby(t){return this.ariaLabel?null:this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_setVisibilityClasses(t){t[this._visibleClass]=this.showPanel,t[this._hiddenClass]=!this.showPanel}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(L),r.Y36(o.t4))},t.\u0275dir=r.lG2({type:t,viewQuery:function(t,e){if(1&t&&(r.Gf(r.Rgc,7),r.Gf(I,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.template=t.first),r.iGM(t=r.CRH())&&(e.panel=t.first)}},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[r.qOj]}),t})(),z=(()=>{class t extends N{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=r.n5z(t)))(i||t)}}(),t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,i){if(1&t&&(r.Suo(i,a.K7,5),r.Suo(i,a.ey,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.optionGroups=t),r.iGM(t=r.CRH())&&(e.options=t)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[r._Bn([{provide:a.HF,useExisting:t}]),r.qOj],ngContentSelectors:R,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(r.F$t(),r.YNc(0,x,3,4,"ng-template"))},directives:[g.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}\n"],encapsulation:2,changeDetection:0}),t})();const Z=new r.OlP("mat-autocomplete-scroll-strategy"),B={provide:Z,deps:[f.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},F={provide:w.JU,useExisting:(0,r.Gpc)(()=>q),multi:!0};let U=(()=>{class t{constructor(t,e,i,n,s,o,r,a,d,p,g){this._element=t,this._overlay=e,this._viewContainerRef=i,this._zone=n,this._changeDetectorRef=s,this._dir=r,this._formField=a,this._document=d,this._viewportRuler=p,this._defaults=g,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=c.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new l.xQ,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,u.P)(()=>this.autocomplete&&this.autocomplete.options?(0,h.T)(...this.autocomplete.options.map(t=>t.onSelectionChange)):this._zone.onStable.pipe((0,y.q)(1),(0,v.w)(()=>this.optionSelections))),this._scrollStrategy=o}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(t){this._autocompleteDisabled=(0,s.Ig)(t)}ngAfterViewInit(){const t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular(()=>t.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const t=this._getWindow();void 0!==t&&t.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.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,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,h.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,T.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,T.h)(()=>this._overlayAttached)):(0,d.of)()).pipe((0,C.U)(t=>t instanceof a.rN?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,h.T)((0,p.R)(this._document,"click"),(0,p.R)(this._document,"auxclick"),(0,p.R)(this._document,"touchend")).pipe((0,T.h)(t=>{const e=this._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,i=this._formField?this._formField._elementRef.nativeElement:null,n=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&e!==this._element.nativeElement&&(!i||!i.contains(e))&&(!n||!n.contains(e))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(e)}))}writeValue(t){Promise.resolve(null).then(()=>this._setTriggerValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){const e=t.keyCode;if(e!==b.hY||(0,b.Vb)(t)||t.preventDefault(),this.activeOption&&e===b.K5&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){const i=this.autocomplete._keyManager.activeItem,n=e===b.LH||e===b.JH;this.panelOpen||e===b.Mf?this.autocomplete._keyManager.onKeydown(t):n&&this._canOpen()&&this.openPanel(),(n||this.autocomplete._keyManager.activeItem!==i)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(t){let e=t.target,i=e.value;"number"===e.type&&(i=""==i?null:parseFloat(i)),this._previousValue!==i&&(this._previousValue=i,this._onChange(i),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(t=!1){this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const t=this._zone.onStable.pipe((0,y.q)(1)),e=this.autocomplete.options.changes.pipe((0,E.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,S.g)(0));return(0,h.T)(t,e).pipe((0,v.w)(()=>{const t=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),t!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),(0,y.q)(1)).subscribe(t=>this._setValueAndClose(t))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(t){const e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,i=null!=e?e:"";this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}_setValueAndClose(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()}_clearPreviousSelectedOption(t){this.autocomplete.options.forEach(e=>{e!==t&&e.selected&&e.deselect()})}_attachOverlay(){var t;null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!(0,o.kV)(this._element.nativeElement));let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new _.UE(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,e.keydownEvents().subscribe(t=>{(t.keyCode===b.hY&&!(0,b.Vb)(t)||t.keyCode===b.LH&&(0,b.Vb)(t,"altKey"))&&(this._resetActiveItem(),this._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),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 i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var t;return new f.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(t=this._defaults)||void 0===t?void 0:t.overlayPanelClass})}_getOverlayPosition(){const t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){const e=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=this._aboveClass,n=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:i},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:i}];let s;s="above"===this.position?n:"below"===this.position?e:[...e,...n],t.withPositions(s)}_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 t=this.autocomplete;t.autoActiveFirstOption?t._keyManager.setFirstItemActive():t._keyManager.setActiveItem(-1)}_canOpen(){const t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}_getWindow(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}_scrollToOption(t){const e=this.autocomplete,i=(0,a.CB)(t,e.options,e.optionGroups);if(0===t&&1===i)e._setScrollTop(0);else if(e.panel){const i=e.options.toArray()[t];if(i){const t=i._getHostElement(),n=(0,a.jH)(t.offsetTop,t.offsetHeight,e._getScrollTop(),e.panel.nativeElement.offsetHeight);e._setScrollTop(n)}}}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(f.aV),r.Y36(r.s_b),r.Y36(r.R0b),r.Y36(r.sBO),r.Y36(Z),r.Y36(k.Is,8),r.Y36(A.G_,9),r.Y36(g.K0,8),r.Y36(m.rL),r.Y36(L,8))},t.\u0275dir=r.lG2({type:t,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[r.TTD]}),t})(),q=(()=>{class t extends U{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=r.n5z(t)))(i||t)}}(),t.\u0275dir=r.lG2({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&r.NdJ("focusin",function(){return e._handleFocus()})("blur",function(){return e._onTouched()})("input",function(t){return e._handleInput(t)})("keydown",function(t){return e._handleKeydown(t)}),2&t&&r.uIk("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[r._Bn([F]),r.qOj]}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[B],imports:[[f.U8,a.Ng,a.BQ,g.ez],m.ZD,a.Ng,a.BQ]}),t})()},41050:function(t,e,i){"use strict";i.d(e,{k:function(){return h},g:function(){return d}});var n=i(71522),s=i(24621),o=i(19861),r=i(43490),a=i(31572);let c=0;class l{}const u=(0,n.Id)(l);let h=(()=>{class t extends u{constructor(t,e,i,n,s){super(),this._ngZone=t,this._elementRef=e,this._ariaDescriber=i,this._renderer=n,this._animationMode=s,this._hasContent=!1,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=c++}get color(){return this._color}set color(t){this._setColor(t),this._color=t}get overlap(){return this._overlap}set overlap(t){this._overlap=(0,o.Ig)(t)}get description(){return this._description}set description(t){if(t!==this._description){const e=this._badgeElement;this._updateHostAriaDescription(t,this._description),this._description=t,e&&(t?e.setAttribute("aria-label",t):e.removeAttribute("aria-label"))}}get hidden(){return this._hidden}set hidden(t){this._hidden=(0,o.Ig)(t)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}ngOnChanges(t){const e=t.content;if(e){const t=e.currentValue;this._hasContent=null!=t&&`${t}`.trim().length>0,this._updateTextContent()}}ngOnDestroy(){const t=this._badgeElement;t&&(this.description&&this._ariaDescriber.removeDescription(t,this.description),this._renderer.destroyNode&&this._renderer.destroyNode(t))}getBadgeElement(){return this._badgeElement}_updateTextContent(){return this._badgeElement?this._badgeElement.textContent=this._stringifyContent():this._badgeElement=this._createBadgeElement(),this._badgeElement}_createBadgeElement(){const t=this._renderer.createElement("span");return this._clearExistingBadges("mat-badge-content"),t.setAttribute("id",`mat-badge-content-${this._id}`),t.classList.add("mat-badge-content"),t.textContent=this._stringifyContent(),"NoopAnimations"===this._animationMode&&t.classList.add("_mat-animation-noopable"),this.description&&t.setAttribute("aria-label",this.description),this._elementRef.nativeElement.appendChild(t),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{t.classList.add("mat-badge-active")})}):t.classList.add("mat-badge-active"),t}_updateHostAriaDescription(t,e){const i=this._updateTextContent();e&&this._ariaDescriber.removeDescription(i,e),t&&this._ariaDescriber.describe(i,t)}_setColor(t){if(t!==this._color){const e=this._elementRef.nativeElement.classList;this._color&&e.remove(`mat-badge-${this._color}`),t&&e.add(`mat-badge-${t}`)}}_clearExistingBadges(t){const e=this._elementRef.nativeElement;let i=e.children.length;for(;i--;){const n=e.children[i];n.classList.contains(t)&&e.removeChild(n)}}_stringifyContent(){const t=this.content;return null==t?"":`${t}`}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.R0b),a.Y36(a.SBq),a.Y36(s.$s),a.Y36(a.Qsj),a.Y36(r.Qb,8))},t.\u0275dir=a.lG2({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(t,e){2&t&&a.ekj("mat-badge-overlap",e.overlap)("mat-badge-above",e.isAbove())("mat-badge-below",!e.isAbove())("mat-badge-before",!e.isAfter())("mat-badge-after",e.isAfter())("mat-badge-small","small"===e.size)("mat-badge-medium","medium"===e.size)("mat-badge-large","large"===e.size)("mat-badge-hidden",e.hidden||!e._hasContent)("mat-badge-disabled",e.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],position:["matBadgePosition","position"],size:["matBadgeSize","size"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],description:["matBadgeDescription","description"],hidden:["matBadgeHidden","hidden"],content:["matBadge","content"]},features:[a.qOj,a.TTD]}),t})(),d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({imports:[[s.rt,n.BQ],n.BQ]}),t})()},15980:function(t,e,i){"use strict";i.d(e,{lW:function(){return d},ot:function(){return p}});var n=i(71522),s=i(43490),o=i(31572),r=i(24621);const a=["mat-button",""],c=["*"],l=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class u{constructor(t){this._elementRef=t}}const h=(0,n.pj)((0,n.Id)((0,n.Kr)(u)));let d=(()=>{class t extends h{constructor(t,e,i){super(t),this._focusMonitor=e,this._animationMode=i,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const n of l)this._hasHostAttributes(n)&&this._getHostElement().classList.add(n);t.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(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.SBq),o.Y36(r.tE),o.Y36(s.Qb,8))},t.\u0275cmp=o.Xpm({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){if(1&t&&o.Gf(n.wG,5),2&t){let t;o.iGM(t=o.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(o.uIk("disabled",e.disabled||null),o.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[o.qOj],attrs:a,ngContentSelectors:c,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(t,e){1&t&&(o.F$t(),o.TgZ(0,"span",0),o.Hsn(1),o.qZA(),o._UZ(2,"span",1),o._UZ(3,"span",2)),2&t&&(o.xp6(2),o.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),o.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[n.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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-animation-noopable.mat-raised-button{transition:none;animation:none}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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-animation-noopable.mat-fab{transition:none;animation:none}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[n.si,n.BQ],n.BQ]}),t})()},27439:function(t,e,i){"use strict";i.d(e,{a8:function(){return g},kc:function(){return p},dn:function(){return u},dk:function(){return f},QW:function(){return m},$j:function(){return d},n5:function(){return h}});var n=i(43490),s=i(71522),o=i(31572);const r=["*",[["mat-card-footer"]]],a=["*","mat-card-footer"],c=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],l=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t})(),h=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t})(),d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),t})(),g=(()=>{class t{constructor(t){this._animationMode=t}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.Qb,8))},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&o.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:a,decls:2,vars:0,template:function(t,e){1&t&&(o.F$t(r),o.Hsn(0),o.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-animation-noopable.mat-card{transition:none;animation:none}.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}.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}\n"],encapsulation:2,changeDetection:0}),t})(),f=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:l,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(o.F$t(c),o.Hsn(0),o.TgZ(1,"div",0),o.Hsn(2,1),o.qZA(),o.Hsn(3,2))},encapsulation:2,changeDetection:0}),t})(),m=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[s.BQ],s.BQ]}),t})()},29236:function(t,e,i){"use strict";i.d(e,{oG:function(){return y},p9:function(){return T}});var n=i(19861),s=i(31572),o=i(16073),r=i(71522),a=i(43490),c=i(36337),l=i(24621);const u=["input"],h=function(t){return{enterDuration:t}},d=["*"],p=new s.OlP("mat-checkbox-default-options",{providedIn:"root",factory:g});function g(){return{color:"accent",clickAction:"check-indeterminate"}}let f=0;const m=g(),b={provide:o.JU,useExisting:(0,s.Gpc)(()=>y),multi:!0};class _{}class w{constructor(t){this._elementRef=t}}const A=(0,r.sb)((0,r.pj)((0,r.Kr)((0,r.Id)(w))));let y=(()=>{class t extends A{constructor(t,e,i,n,o,r,a){super(t),this._changeDetectorRef=e,this._focusMonitor=i,this._ngZone=n,this._animationMode=r,this._options=a,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++f,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new s.vpe,this.indeterminateChange=new s.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||m,this.color=this.defaultColor=this._options.color||m.color,this.tabIndex=parseInt(o)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(t){this._required=(0,n.Ig)(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=(0,n.Ig)(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=(0,n.Ig)(t),e&&(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(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,i=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{i.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new _;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(t){var e;const i=null===(e=this._options)||void 0===e?void 0:e.clickAction;t.stopPropagation(),this.disabled||"noop"===i?this.disabled||"noop"!==i||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t,e){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let i="";switch(t){case 0:if(1===e)i="unchecked-checked";else{if(3!=e)return"";i="unchecked-indeterminate"}break;case 2:i=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===e?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${i}`}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(l.tE),s.Y36(s.R0b),s.$8M("tabindex"),s.Y36(a.Qb,8),s.Y36(p,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){if(1&t&&(s.Gf(u,5),s.Gf(r.wG,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._inputElement=t.first),s.iGM(t=s.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Ikx("id",e.id),s.uIk("tabindex",null),s.ekj("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[s._Bn([b]),s.qOj],ngContentSelectors:d,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",0,"xml","space","preserve",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(t,e){if(1&t&&(s.F$t(),s.TgZ(0,"label",0,1),s.TgZ(2,"span",2),s.TgZ(3,"input",3,4),s.NdJ("change",function(t){return e._onInteractionEvent(t)})("click",function(t){return e._onInputClick(t)}),s.qZA(),s.TgZ(5,"span",5),s._UZ(6,"span",6),s.qZA(),s._UZ(7,"span",7),s.TgZ(8,"span",8),s.O4$(),s.TgZ(9,"svg",9),s._UZ(10,"path",10),s.qZA(),s.kcU(),s._UZ(11,"span",11),s.qZA(),s.qZA(),s.TgZ(12,"span",12,13),s.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),s.TgZ(14,"span",14),s._uU(15,"\xa0"),s.qZA(),s.Hsn(16),s.qZA(),s.qZA()),2&t){const t=s.MAs(1),i=s.MAs(13);s.uIk("for",e.inputId),s.xp6(2),s.ekj("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),s.xp6(1),s.Q6J("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),s.uIk("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),s.xp6(2),s.Q6J("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",s.VKq(19,h,"NoopAnimations"===e._animationMode?0:150))}},directives:[r.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:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-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;-moz-user-select:auto;-ms-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:transparent;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:transparent}.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%}\n"],encapsulation:2,changeDetection:0}),t})(),v=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),T=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[r.si,r.BQ,c.Q8,v],r.BQ,v]}),t})()},10033:function(t,e,i){"use strict";i.d(e,{HS:function(){return S},oH:function(){return M},qn:function(){return P},Hi:function(){return N}});var n=i(75842),s=i(31572),o=i(71522),r=i(19861),a=i(61511),c=i(43490),l=i(55959),u=i(31906),h=i(90611),d=i(25416),p=i(56238),g=i(24621),f=i(4230),m=i(66283),b=i(11353),_=i(22526),w=i(16073);const A=["*"],y=new s.OlP("MatChipRemove"),v=new s.OlP("MatChipAvatar"),T=new s.OlP("MatChipTrailingIcon");class C{constructor(t){this._elementRef=t}}const E=(0,o.sb)((0,o.pj)((0,o.Kr)(C),"primary"),-1);let S=(()=>{class t extends E{constructor(t,e,i,n,r,a,c,u){super(t),this._elementRef=t,this._ngZone=e,this._changeDetectorRef=r,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new l.xQ,this._onBlur=new l.xQ,this.selectionChange=new s.vpe,this.destroyed=new s.vpe,this.removed=new s.vpe,this._addHostClassName(),this._chipRippleTarget=a.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new o.IR(this,e,this._chipRippleTarget,i),this._chipRipple.setupTriggerEvents(t),this.rippleConfig=n||{},this._animationsDisabled="NoopAnimations"===c,this.tabIndex=null!=u&&parseInt(u)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(t){const e=(0,r.Ig)(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(t){this._value=t}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(t){this._selectable=(0,r.Ig)(t)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(t){this._disabled=(0,r.Ig)(t)}get removable(){return this._removable}set removable(t){this._removable=(0,r.Ig)(t)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const t=this._elementRef.nativeElement;t.hasAttribute("mat-basic-chip")||"mat-basic-chip"===t.tagName.toLowerCase()?t.classList.add("mat-basic-chip"):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(t=!1){return this._selected=!this.selected,this._dispatchSelectionChange(t),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(t){this.disabled?t.preventDefault():t.stopPropagation()}_handleKeydown(t){if(!this.disabled)switch(t.keyCode){case n.yY:case n.ZH:this.remove(),t.preventDefault();break;case n.L_:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,h.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(t=!1){this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(b.t4),s.Y36(o.Y2,8),s.Y36(s.sBO),s.Y36(a.K0),s.Y36(c.Qb,8),s.$8M("tabindex"))},t.\u0275dir=s.lG2({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,v,5),s.Suo(i,T,5),s.Suo(i,y,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.avatar=t.first),s.iGM(t=s.CRH())&&(e.trailingIcon=t.first),s.iGM(t=s.CRH())&&(e.removeIcon=t.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&s.NdJ("click",function(t){return e._handleClick(t)})("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e.focus()})("blur",function(){return e._blur()}),2&t&&(s.uIk("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),s.ekj("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[s.qOj]}),t})();const k=new s.OlP("mat-chips-default-options");class I{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const x=(0,o.FD)(I);let R=0;class O{constructor(t,e){this.source=t,this.value=e}}let P=(()=>{class t extends x{constructor(t,e,i,n,o,r,a){super(r,n,o,a),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this.ngControl=a,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new l.xQ,this._uid="mat-chip-list-"+R++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(t,e)=>t===e,this._required=!1,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new s.vpe,this.valueChange=new s.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(t){this._multiple=(0,r.Ig)(t),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this.writeValue(t),this._value=t}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required}set required(t){this._required=(0,r.Ig)(t),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(t){this._placeholder=t,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(t){this._disabled=(0,r.Ig)(t),this._syncChipsState()}get selectable(){return this._selectable}set selectable(t){this._selectable=(0,r.Ig)(t),this.chips&&this.chips.forEach(t=>t.chipListSelectable=this._selectable)}set tabIndex(t){this._userTabIndex=t,this._tabIndex=t}get chipSelectionChanges(){return(0,u.T)(...this.chips.map(t=>t.selectionChange))}get chipFocusChanges(){return(0,u.T)(...this.chips.map(t=>t._onFocus))}get chipBlurChanges(){return(0,u.T)(...this.chips.map(t=>t._onBlur))}get chipRemoveChanges(){return(0,u.T)(...this.chips.map(t=>t.destroyed))}ngAfterContentInit(){this._keyManager=new g.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,d.R)(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.tabOut.pipe((0,d.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,p.O)(null),(0,d.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 f.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(t){this._chipInput=t,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",t.id)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}writeValue(t){this.chips&&this._setSelectionByValue(t,!1)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this.stateChanges.next()}onContainerClick(t){this._originatesFromChip(t)||this.focus()}focus(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}_focusInput(t){this._chipInput&&this._chipInput.focus(t)}_keydown(t){const e=t.target;e&&e.classList.contains("mat-chip")&&(this._keyManager.onKeydown(t),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(t){return t>=0&&tt.deselect()),Array.isArray(t))t.forEach(t=>this._selectValue(t,e)),this._sortValues();else{const i=this._selectValue(t,e);i&&e&&this._keyManager.setActiveItem(i)}}_selectValue(t,e=!0){const i=this.chips.find(e=>null!=e.value&&this._compareWith(e.value,t));return i&&(e?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(t){this._selectionModel.clear(),this.chips.forEach(e=>{e!==t&&e.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(t=>{t.selected&&this._selectionModel.select(t)}),this.stateChanges.next())}_propagateChanges(t){let e=null;e=Array.isArray(this.selected)?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.change.emit(new O(this,e)),this.valueChange.emit(e),this._onChange(e),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(t=>{t.source.selected?this._selectionModel.select(t.source):this._selectionModel.deselect(t.source),this.multiple||this.chips.forEach(t=>{!this._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),t.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(t=>{let e=this.chips.toArray().indexOf(t.chip);this._isValidIndex(e)&&this._keyManager.updateActiveItem(e),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(t=>{const e=t.chip,i=this.chips.toArray().indexOf(t.chip);this._isValidIndex(i)&&e._hasFocus&&(this._lastDestroyedChipIndex=i)})}_originatesFromChip(t){let e=t.target;for(;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-chip"))return!0;e=e.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(t=>t._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(t=>{t._chipListDisabled=this._disabled,t._chipListMultiple=this.multiple})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(_.Is,8),s.Y36(w.F,8),s.Y36(w.sg,8),s.Y36(o.rD),s.Y36(w.a5,10))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,S,5),2&t){let t;s.iGM(t=s.CRH())&&(e.chips=t)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&s.NdJ("focus",function(){return e.focus()})("blur",function(){return e._blur()})("keydown",function(t){return e._keydown(t)}),2&t&&(s.Ikx("id",e._uid),s.uIk("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),s.ekj("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[s._Bn([{provide:m.Eo,useExisting:t}]),s.qOj],ngContentSelectors:A,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.Hsn(1),s.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.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-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height: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:focus{outline:dotted 2px}.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}.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}\n'],encapsulation:2,changeDetection:0}),t})(),D=0,M=(()=>{class t{constructor(t,e){this._elementRef=t,this._defaultOptions=e,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new s.vpe,this.placeholder="",this.id="mat-chip-list-input-"+D++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(t){t&&(this._chipList=t,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(t){this._addOnBlur=(0,r.Ig)(t)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(t){this._disabled=(0,r.Ig)(t)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(t){if(t){if(t.keyCode!==n.Mf||(0,n.Vb)(t,"shiftKey")||this._chipList._allowFocusEscape(),t.keyCode===n.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void t.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(t)}_keyup(t){!this._focusLastChipOnBackspace&&t.keyCode===n.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,t.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._chipList.stateChanges.next()}_emitChipEnd(t){!this.inputElement.value&&t&&this._chipList._keydown(t),t&&!this._isSeparatorKey(t)||(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==t||t.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(t){this.inputElement.focus(t)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(t){return!(0,n.Vb)(t)&&new Set(this.separatorKeyCodes).has(t.keyCode)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(k))},t.\u0275dir=s.lG2({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,e){1&t&&s.NdJ("keydown",function(t){return e._keydown(t)})("keyup",function(t){return e._keyup(t)})("blur",function(){return e._blur()})("focus",function(){return e._focus()})("input",function(){return e._onInput()}),2&t&&(s.Ikx("id",e.id),s.uIk("disabled",e.disabled||null)("placeholder",e.placeholder||null)("aria-invalid",e._chipList&&e._chipList.ngControl?e._chipList.ngControl.invalid:null)("aria-required",e._chipList&&e._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[s.TTD]}),t})();const L={separatorKeyCodes:[n.K5]};let N=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[o.rD,{provide:k,useValue:L}],imports:[[o.BQ]]}),t})()},71522:function(t,e,i){"use strict";i.d(e,{yN:function(){return _},mZ:function(){return w},_A:function(){return R},rD:function(){return q},sG:function(){return O},K7:function(){return lt},HF:function(){return st},Y2:function(){return X},BQ:function(){return v},X2:function(){return H},uc:function(){return Y},XK:function(){return U},ey:function(){return pt},Ng:function(){return mt},rN:function(){return ht},nP:function(){return it},us:function(){return nt},wG:function(){return tt},si:function(){return et},LF:function(){return Z},IR:function(){return W},CB:function(){return gt},jH:function(){return ft},pj:function(){return C},Kr:function(){return E},Id:function(){return T},FD:function(){return k},dB:function(){return I},sb:function(){return S},E0:function(){return G}});var n=i(31572),s=i(24621),o=i(22526);const r=new n.GfV("12.0.5");var a=i(61511),c=i(19861),l=i(55959),u=i(48318),h=i(11353),d=i(56238),p=i(43490),g=i(75842);function f(t,e){if(1&t&&n._UZ(0,"mat-pseudo-checkbox",4),2&t){const t=n.oxw();n.Q6J("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function m(t,e){if(1&t&&(n.TgZ(0,"span",5),n._uU(1),n.qZA()),2&t){const t=n.oxw();n.xp6(1),n.hij("(",t.group.label,")")}}const b=["*"];let _=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),w=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const A=new n.GfV("12.0.5"),y=new n.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let v=(()=>{class t{constructor(t,e,i){this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return(0,n.X6Q)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&A.full!==r.full&&console.warn("The Angular Material version ("+A.full+") does not match the Angular CDK version ("+r.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(s.qm),n.LFG(y,8),n.LFG(a.K0))},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[o.vT],o.vT]}),t})();function T(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,c.Ig)(t)}}}function C(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function E(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=(0,c.Ig)(t)}}}function S(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?(0,c.su)(t):this.defaultTabIndex}}}function k(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new l.xQ}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}function I(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new u.y(t=>{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}const x=new n.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return(0,n.f3M)(n.soG)}});class R{constructor(){this._localeChanges=new l.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let i=this.isValid(t),n=this.isValid(e);return i&&n?!this.compareDate(t,e):i==n}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}}const O=new n.OlP("mat-date-formats");let P;try{P="undefined"!=typeof Intl}catch(bt){P=!1}const D={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},M=z(31,t=>String(t+1)),L={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},N=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function z(t,e){const i=Array(t);for(let n=0;n{class t extends R{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(P){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return z(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return D[t]}getDateNames(){if(P){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return z(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return M}getDayOfWeekNames(t){if(P){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return z(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return L[t]}getYearName(t){if(P){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,i){let n=this._createDateWithOverflow(t,e,i);return n.getMonth(),n}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(P){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});const i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(i,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let i=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(i)!=((this.getMonth(t)+e)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(N.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,i){const n=new Date;return n.setFullYear(t,e,i),n.setHours(0,0,0,0),n}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const i=new Date;return i.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),i.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(i)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(x,8),n.LFG(h.t4))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:R,useClass:Z}],imports:[[h.ud]]}),t})();const F={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 U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:O,useValue:F}],imports:[[B]]}),t})(),q=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function G(t,e,i="mat"){t.changes.pipe((0,d.O)(t)).subscribe(({length:t})=>{j(e,`${i}-2-line`,!1),j(e,`${i}-3-line`,!1),j(e,`${i}-multi-line`,!1),2===t||3===t?j(e,`${i}-${t}-line`,!0):t>3&&j(e,`${i}-multi-line`,!0)})}function j(t,e,i){const n=t.nativeElement.classList;i?n.add(e):n.remove(e)}let Y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[v],v]}),t})();class K{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const V={enterDuration:450,exitDuration:400},$=(0,h.i$)({passive:!0}),J=["mousedown","touchstart"],Q=["mouseup","mouseleave","touchend","touchcancel"];class W{constructor(t,e,i,n){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,n.isBrowser&&(this._containerElement=(0,c.fI)(i))}fadeInRipple(t,e,i={}){const n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},V),i.animation);i.centered&&(t=n.left+n.width/2,e=n.top+n.height/2);const o=i.radius||function(t,e,i){const n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),s=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+s*s)}(t,e,n),r=t-n.left,a=e-n.top,c=s.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=r-o+"px",l.style.top=a-o+"px",l.style.height=2*o+"px",l.style.width=2*o+"px",null!=i.color&&(l.style.backgroundColor=i.color),l.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(l),window.getComputedStyle(l).getPropertyValue("opacity"),l.style.transform="scale(1)";const u=new K(this,l,i);return u.state=0,this._activeRipples.add(u),i.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const t=u===this._mostRecentTransientRipple;u.state=1,i.persistent||t&&this._isPointerDown||u.fadeOut()},c),u}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,n=Object.assign(Object.assign({},V),t.config.animation);i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.parentNode.removeChild(i)},n.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=(0,c.fI)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(J))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Q),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=(0,s.X6)(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,$)})})}_removeTriggerEvents(){this._triggerElement&&(J.forEach(t=>{this._triggerElement.removeEventListener(t,this,$)}),this._pointerUpEventsRegistered&&Q.forEach(t=>{this._triggerElement.removeEventListener(t,this,$)}))}}const X=new n.OlP("mat-ripple-global-options");let tt=(()=>{class t{constructor(t,e,i,n,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=n||{},this._rippleRenderer=new W(this,e,t,i)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,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:Object.assign(Object.assign(Object.assign({},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(t,e=0,i){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(h.t4),n.Y36(X,8),n.Y36(p.Qb,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&n.ekj("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),et=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[v,h.ud],v]}),t})(),it=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(p.Qb,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&n.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},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:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::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}\n'],encapsulation:2,changeDetection:0}),t})(),nt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[v]]}),t})();const st=new n.OlP("MAT_OPTION_PARENT_COMPONENT");class ot{}const rt=T(ot);let at=0,ct=(()=>{class t extends rt{constructor(t){var e;super(),this._labelId="mat-optgroup-label-"+at++,this._inert=null!==(e=null==t?void 0:t.inertGroups)&&void 0!==e&&e}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(st,8))},t.\u0275dir=n.lG2({type:t,inputs:{label:"label"},features:[n.qOj]}),t})();const lt=new n.OlP("MatOptgroup");let ut=0;class ht{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let dt=(()=>{class t{constructor(t,e,i,s){this._element=t,this._changeDetectorRef=e,this._parent=i,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+ut++,this.onSelectionChange=new n.vpe,this._stateChanges=new l.xQ}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(t){this._disabled=(0,c.Ig)(t)}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(t,e){const i=this._getHostElement();"function"==typeof i.focus&&i.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){t.keyCode!==g.K5&&t.keyCode!==g.L_||(0,g.Vb)(t)||(this._selectViaInteraction(),t.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 t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new ht(this,t))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(void 0),n.Y36(ct))},t.\u0275dir=n.lG2({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),pt=(()=>{class t extends dt{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(st,8),n.Y36(lt,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&n.NdJ("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(n.Ikx("id",e.id),n.uIk("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),n.ekj("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[n.qOj],ngContentSelectors:b,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(t,e){1&t&&(n.F$t(),n.YNc(0,f,1,2,"mat-pseudo-checkbox",0),n.TgZ(1,"span",1),n.Hsn(2),n.qZA(),n.YNc(3,m,2,1,"span",2),n._UZ(4,"div",3)),2&t&&(n.Q6J("ngIf",e.multiple),n.xp6(3),n.Q6J("ngIf",e.group&&e.group._inert),n.xp6(1),n.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[a.O5,tt,it],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:transparent}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function gt(t,e,i){if(i.length){let n=e.toArray(),s=i.toArray(),o=0;for(let e=0;ei+n?Math.max(0,t-n+e):i}let mt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[et,a.ez,v,nt]]}),t})()},15812:function(t,e,i){"use strict";i.d(e,{Mq:function(){return bt},hl:function(){return vt},FA:function(){return Et},nW:function(){return Ct}});var n=i(24621),s=i(2522),o=i(26899),r=i(61511),a=i(31572),c=i(15980),l=i(4253),u=i(71522),h=i(55959),d=i(87570),p=i(31906),g=i(40878),f=i(75842),m=i(90611),b=i(56238),_=i(43835),w=i(19861),A=i(11353),y=i(10709),v=i(16073),T=i(66283),C=i(80340),E=i(22526);const S=["mat-calendar-body",""];function k(t,e){if(1&t&&(a.TgZ(0,"tr",2),a.TgZ(1,"td",3),a._uU(2),a.qZA(),a.qZA()),2&t){const t=a.oxw();a.xp6(1),a.Udp("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),a.uIk("colspan",t.numCols),a.xp6(1),a.hij(" ",t.label," ")}}function I(t,e){if(1&t&&(a.TgZ(0,"td",7),a._uU(1),a.qZA()),2&t){const t=a.oxw(2);a.Udp("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),a.uIk("colspan",t._firstRowOffset),a.xp6(1),a.hij(" ",t._firstRowOffset>=t.labelMinRequiredCells?t.label:""," ")}}function x(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"td",8),a.NdJ("click",function(e){const i=a.CHM(t).$implicit;return a.oxw(2)._cellClicked(i,e)}),a.TgZ(1,"div",9),a._uU(2),a.qZA(),a._UZ(3,"div",10),a.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=a.oxw().index,s=a.oxw();a.Udp("width",s._cellWidth)("padding-top",s._cellPadding)("padding-bottom",s._cellPadding),a.ekj("mat-calendar-body-disabled",!t.enabled)("mat-calendar-body-active",s._isActiveCell(n,i))("mat-calendar-body-range-start",s._isRangeStart(t.compareValue))("mat-calendar-body-range-end",s._isRangeEnd(t.compareValue))("mat-calendar-body-in-range",s._isInRange(t.compareValue))("mat-calendar-body-comparison-bridge-start",s._isComparisonBridgeStart(t.compareValue,n,i))("mat-calendar-body-comparison-bridge-end",s._isComparisonBridgeEnd(t.compareValue,n,i))("mat-calendar-body-comparison-start",s._isComparisonStart(t.compareValue))("mat-calendar-body-comparison-end",s._isComparisonEnd(t.compareValue))("mat-calendar-body-in-comparison-range",s._isInComparisonRange(t.compareValue))("mat-calendar-body-preview-start",s._isPreviewStart(t.compareValue))("mat-calendar-body-preview-end",s._isPreviewEnd(t.compareValue))("mat-calendar-body-in-preview",s._isInPreview(t.compareValue)),a.Q6J("ngClass",t.cssClasses)("tabindex",s._isActiveCell(n,i)?0:-1),a.uIk("data-mat-row",n)("data-mat-col",i)("aria-label",t.ariaLabel)("aria-disabled",!t.enabled||null)("aria-selected",s._isSelected(t.compareValue)),a.xp6(1),a.ekj("mat-calendar-body-selected",s._isSelected(t.compareValue))("mat-calendar-body-comparison-identical",s._isComparisonIdentical(t.compareValue))("mat-calendar-body-today",s.todayValue===t.compareValue),a.xp6(1),a.hij(" ",t.displayValue," ")}}function R(t,e){if(1&t&&(a.TgZ(0,"tr",4),a.YNc(1,I,2,6,"td",5),a.YNc(2,x,4,46,"td",6),a.qZA()),2&t){const t=e.$implicit,i=e.index,n=a.oxw();a.xp6(1),a.Q6J("ngIf",0===i&&n._firstRowOffset),a.xp6(1),a.Q6J("ngForOf",t)}}function O(t,e){if(1&t&&(a.TgZ(0,"th",5),a._uU(1),a.qZA()),2&t){const t=e.$implicit;a.uIk("aria-label",t.long),a.xp6(1),a.Oqu(t.narrow)}}const P=["*"];function D(t,e){}function M(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-month-view",5),a.NdJ("activeDateChange",function(e){return a.CHM(t),a.oxw().activeDate=e})("_userSelection",function(e){return a.CHM(t),a.oxw()._dateSelected(e)}),a.qZA()}if(2&t){const t=a.oxw();a.Q6J("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)}}function L(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-year-view",6),a.NdJ("activeDateChange",function(e){return a.CHM(t),a.oxw().activeDate=e})("monthSelected",function(e){return a.CHM(t),a.oxw()._monthSelectedInYearView(e)})("selectedChange",function(e){return a.CHM(t),a.oxw()._goToDateInView(e,"month")}),a.qZA()}if(2&t){const t=a.oxw();a.Q6J("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function N(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-multi-year-view",7),a.NdJ("activeDateChange",function(e){return a.CHM(t),a.oxw().activeDate=e})("yearSelected",function(e){return a.CHM(t),a.oxw()._yearSelectedInMultiYearView(e)})("selectedChange",function(e){return a.CHM(t),a.oxw()._goToDateInView(e,"year")}),a.qZA()}if(2&t){const t=a.oxw();a.Q6J("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function z(t,e){}const Z=["button"];function B(t,e){1&t&&(a.O4$(),a.TgZ(0,"svg",3),a._UZ(1,"path",4),a.qZA())}const F=[[["","matDatepickerToggleIcon",""]]],U=["[matDatepickerToggleIcon]"];let q=(()=>{class t{constructor(){this.changes=new h.xQ,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"}formatYearRange(t,e){return`${t} \u2013 ${e}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=a.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();class H{constructor(t,e,i,n,s={},o=t,r){this.value=t,this.displayValue=e,this.ariaLabel=i,this.enabled=n,this.cssClasses=s,this.compareValue=o,this.rawValue=r}}let G=(()=>{class t{constructor(t,e){this._elementRef=t,this._ngZone=e,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new a.vpe,this.previewChange=new a.vpe,this._enterHandler=t=>{if(this._skipNextFocus&&"focus"===t.type)this._skipNextFocus=!1;else if(t.target&&this.isRange){const e=this._getCellFromElement(t.target);e&&this._ngZone.run(()=>this.previewChange.emit({value:e.enabled?e:null,event:t}))}},this._leaveHandler=t=>{null!==this.previewEnd&&this.isRange&&t.target&&j(t.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:t}))},e.runOutsideAngular(()=>{const e=t.nativeElement;e.addEventListener("mouseenter",this._enterHandler,!0),e.addEventListener("focus",this._enterHandler,!0),e.addEventListener("mouseleave",this._leaveHandler,!0),e.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(t,e){t.enabled&&this.selectedValueChange.emit({value:t.value,event:e})}_isSelected(t){return this.startValue===t||this.endValue===t}ngOnChanges(t){const e=t.numCols,{rows:i,numCols:n}=this;(t.rows||e)&&(this._firstRowOffset=i&&i.length&&i[0].length?n-i[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/n+"%"),!e&&this._cellWidth||(this._cellWidth=100/n+"%")}ngOnDestroy(){const t=this._elementRef.nativeElement;t.removeEventListener("mouseenter",this._enterHandler,!0),t.removeEventListener("focus",this._enterHandler,!0),t.removeEventListener("mouseleave",this._leaveHandler,!0),t.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(t,e){let i=t*this.numCols+e;return t&&(i-=this._firstRowOffset),i==this.activeCell}_focusActiveCell(t=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,m.q)(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");e&&(t||(this._skipNextFocus=!0),e.focus())})})}_isRangeStart(t){return Y(t,this.startValue,this.endValue)}_isRangeEnd(t){return K(t,this.startValue,this.endValue)}_isInRange(t){return V(t,this.startValue,this.endValue,this.isRange)}_isComparisonStart(t){return Y(t,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(t,e,i){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;let n=this.rows[e][i-1];if(!n){const t=this.rows[e-1];n=t&&t[t.length-1]}return n&&!this._isRangeEnd(n.compareValue)}_isComparisonBridgeEnd(t,e,i){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;let n=this.rows[e][i+1];if(!n){const t=this.rows[e+1];n=t&&t[0]}return n&&!this._isRangeStart(n.compareValue)}_isComparisonEnd(t){return K(t,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(t){return V(t,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}_isPreviewStart(t){return Y(t,this.previewStart,this.previewEnd)}_isPreviewEnd(t){return K(t,this.previewStart,this.previewEnd)}_isInPreview(t){return V(t,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(t){let e;if(j(t)?e=t:j(t.parentNode)&&(e=t.parentNode),e){const t=e.getAttribute("data-mat-row"),i=e.getAttribute("data-mat-col");if(t&&i)return this.rows[parseInt(t)][parseInt(i)]}return null}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.R0b))},t.\u0275cmp=a.Xpm({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[a.TTD],attrs:S,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"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(t,e){1&t&&(a.YNc(0,k,3,6,"tr",0),a.YNc(1,R,3,2,"tr",1)),2&t&&(a.Q6J("ngIf",e._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),t})();function j(t){return"TD"===t.nodeName}function Y(t,e,i){return null!==i&&e!==i&&t=e&&t===i}function V(t,e,i,n){return n&&null!==e&&null!==i&&e!==i&&t>=e&&t<=i}class ${constructor(t,e){this.start=t,this.end=e}}let J=(()=>{class t{constructor(t,e){this.selection=t,this._adapter=e,this._selectionChanged=new h.xQ,this.selectionChanged=this._selectionChanged,this.selection=t}updateSelection(t,e){const i=this.selection;this.selection=t,this._selectionChanged.next({selection:t,source:e,oldValue:i})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}}return t.\u0275fac=function(e){return new(e||t)(a.LFG(void 0),a.LFG(u._A))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac}),t})(),Q=(()=>{class t extends J{constructor(t){super(null,t)}add(t){super.updateSelection(t,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new t(this._adapter);return e.updateSelection(this.selection,this),e}}return t.\u0275fac=function(e){return new(e||t)(a.LFG(u._A))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac}),t})();const W={provide:J,deps:[[new a.FiY,new a.tp0,J],u._A],useFactory:function(t,e){return t||new Q(e)}},X=new a.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let tt=(()=>{class t{constructor(t,e,i,n,s){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rangeStrategy=s,this._rerenderSubscription=d.w.EMPTY,this.selectedChange=new a.vpe,this._userSelection=new a.vpe,this.activeDateChange=new a.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){const e=this._activeDate,i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof $?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,b.O)(null)).subscribe(()=>this._init())}ngOnChanges(t){const e=t.comparisonStart||t.comparisonEnd;e&&!e.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(t){const e=t.value,i=this._dateAdapter.getYear(this.activeDate),n=this._dateAdapter.getMonth(this.activeDate),s=this._dateAdapter.createDate(i,n,e);let o,r;this._selected instanceof $?(o=this._getDateInCurrentMonth(this._selected.start),r=this._getDateInCurrentMonth(this._selected.end)):o=r=this._getDateInCurrentMonth(this._selected),o===e&&r===e||this.selectedChange.emit(s),this._userSelection.emit({value:s,event:t.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case f.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?1:-1);break;case f.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?-1:1);break;case f.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case f.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case f.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case f.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case f.Ku:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case f.VM:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case f.K5:case f.L_:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),t.preventDefault()));case f.hY:return void(null==this._previewEnd||(0,f.Vb)(t)||(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t}),t.preventDefault(),t.stopPropagation()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_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 t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(t){this._matCalendarBody._focusActiveCell(t)}_previewChanged({event:t,value:e}){if(this._rangeStrategy){const i=this._rangeStrategy.createPreview(e?e.rawValue:null,this.selected,t);this._previewStart=this._getCellCompareValue(i.start),this._previewEnd=this._getCellCompareValue(i.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow");let i=this._dateAdapter.getDayOfWeekNames("long").map((t,i)=>({long:t,narrow:e[i]}));this._weekdays=i.slice(t).concat(i.slice(0,t))}_createWeekCells(){const t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(let i=0,n=this._firstWeekOffset;i=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}_getDateInCurrentMonth(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}_hasSameMonthAndYear(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}_getCellCompareValue(t){if(t){const e=this._dateAdapter.getYear(t),i=this._dateAdapter.getMonth(t),n=this._dateAdapter.getDate(t);return new Date(e,i,n).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(t){t instanceof $?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.sBO),a.Y36(u.sG,8),a.Y36(u._A,8),a.Y36(E.Is,8),a.Y36(X,8))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){if(1&t&&a.Gf(G,5),2&t){let t;a.iGM(t=a.CRH())&&(e._matCalendarBody=t.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:[a.TTD],decls:7,vars:13,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"]],template:function(t,e){1&t&&(a.TgZ(0,"table",0),a.TgZ(1,"thead",1),a.TgZ(2,"tr"),a.YNc(3,O,2,2,"th",2),a.qZA(),a.TgZ(4,"tr"),a._UZ(5,"th",3),a.qZA(),a.qZA(),a.TgZ(6,"tbody",4),a.NdJ("selectedValueChange",function(t){return e._dateSelected(t)})("previewChange",function(t){return e._previewChanged(t)})("keydown",function(t){return e._handleCalendarBodyKeydown(t)}),a.qZA(),a.qZA()),2&t&&(a.xp6(3),a.Q6J("ngForOf",e._weekdays),a.xp6(3),a.Q6J("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("startValue",e._rangeStart)("endValue",e._rangeEnd)("comparisonStart",e._comparisonRangeStart)("comparisonEnd",e._comparisonRangeEnd)("previewStart",e._previewStart)("previewEnd",e._previewEnd)("isRange",e._isRange)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[r.sg,G],encapsulation:2,changeDetection:0}),t})(),et=(()=>{class t{constructor(t,e,i){this._changeDetectorRef=t,this._dateAdapter=e,this._dir=i,this._rerenderSubscription=d.w.EMPTY,this.selectedChange=new a.vpe,this.yearSelected=new a.vpe,this.activeDateChange=new a.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),it(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof $?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,b.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let e=0,i=[];e<24;e++)i.push(t+e),4==i.length&&(this._years.push(i.map(t=>this._createCellForYear(t))),i=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){const e=t.value;this.yearSelected.emit(this._dateAdapter.createDate(e,0,1));let i=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));this.selectedChange.emit(this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case f.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?1:-1);break;case f.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?-1:1);break;case f.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case f.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case f.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case f.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case f.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case f.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:24);break;case f.K5:case f.L_:this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_getActiveCell(){return nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(t){const e=this._dateAdapter.createDate(t,0,1),i=this._dateAdapter.getYearName(e),n=this.dateClass?this.dateClass(e,"multi-year"):void 0;return new H(t,i,i,this._shouldEnableYear(t),n)}_shouldEnableYear(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t{class t{constructor(t,e,i,n){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rerenderSubscription=d.w.EMPTY,this.selectedChange=new a.vpe,this.monthSelected=new a.vpe,this.activeDateChange=new a.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._dateAdapter.getYear(e)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof $?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedMonth(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,b.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(t){const e=t.value,i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1);this.monthSelected.emit(i);const n=this._dateAdapter.getNumDaysInMonth(i);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case f.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?1:-1);break;case f.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?-1:1);break;case f.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case f.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case f.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case f.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case f.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case f.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case f.K5:case f.L_:this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(e=>e.map(e=>this._createCellForMonth(e,t[e]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_createCellForMonth(t,e){const i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),n=this._dateAdapter.format(i,this._dateFormats.display.monthYearA11yLabel),s=this.dateClass?this.dateClass(i,"year"):void 0;return new H(t,e.toLocaleUpperCase(),n,this._shouldEnableMonth(t),s)}_shouldEnableMonth(t){const e=this._dateAdapter.getYear(this.activeDate);if(null==t||this._isYearAndMonthAfterMaxDate(e,t)||this._isYearAndMonthBeforeMinDate(e,t))return!1;if(!this.dateFilter)return!0;for(let i=this._dateAdapter.createDate(e,t,1);this._dateAdapter.getMonth(i)==t;i=this._dateAdapter.addCalendarDays(i,1))if(this.dateFilter(i))return!0;return!1}_isYearAndMonthAfterMaxDate(t,e){if(this.maxDate){const i=this._dateAdapter.getYear(this.maxDate),n=this._dateAdapter.getMonth(this.maxDate);return t>i||t===i&&e>n}return!1}_isYearAndMonthBeforeMinDate(t,e){if(this.minDate){const i=this._dateAdapter.getYear(this.minDate),n=this._dateAdapter.getMonth(this.minDate);return t{class t{constructor(t,e,i,n,s){this._intl=t,this.calendar=e,this._dateAdapter=i,this._dateFormats=n,this._buttonDescriptionId="mat-calendar-button-"+rt++,this.calendar.stateChanges.subscribe(()=>s.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)-nt(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),e=t+24-1,i=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),n=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1));return this._intl.formatYearRange(i,n)}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(t,e){return"month"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(e):"year"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e):it(this._dateAdapter,t,e,this.calendar.minDate,this.calendar.maxDate)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(q),a.Y36((0,a.Gpc)(()=>ct)),a.Y36(u._A,8),a.Y36(u.sG,8),a.Y36(a.sBO))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:P,decls:10,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],[1,"mat-calendar-arrow"],[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(t,e){1&t&&(a.F$t(),a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.TgZ(2,"button",2),a.NdJ("click",function(){return e.currentPeriodClicked()}),a.TgZ(3,"span"),a._uU(4),a.qZA(),a._UZ(5,"div",3),a.qZA(),a._UZ(6,"div",4),a.Hsn(7),a.TgZ(8,"button",5),a.NdJ("click",function(){return e.previousClicked()}),a.qZA(),a.TgZ(9,"button",6),a.NdJ("click",function(){return e.nextClicked()}),a.qZA(),a.qZA(),a.qZA()),2&t&&(a.xp6(2),a.uIk("aria-label",e.periodButtonLabel)("aria-describedby",e._buttonDescriptionId),a.xp6(1),a.uIk("id",e._buttonDescriptionId),a.xp6(1),a.Oqu(e.periodButtonText),a.xp6(1),a.ekj("mat-calendar-invert","month"!==e.calendar.currentView),a.xp6(3),a.Q6J("disabled",!e.previousEnabled()),a.uIk("aria-label",e.prevButtonLabel),a.xp6(1),a.Q6J("disabled",!e.nextEnabled()),a.uIk("aria-label",e.nextButtonLabel))},directives:[c.lW,n.Qr],encapsulation:2,changeDetection:0}),t})(),ct=(()=>{class t{constructor(t,e,i,n){this._dateAdapter=e,this._dateFormats=i,this._changeDetectorRef=n,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new a.vpe,this.yearSelected=new a.vpe,this.monthSelected=new a.vpe,this.viewChanged=new a.vpe(!0),this._userSelection=new a.vpe,this.stateChanges=new h.xQ,this._intlChanges=t.changes.subscribe(()=>{n.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){this._selected=t instanceof $?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(t){const e=this._currentView!==t?t:null;this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),e&&this.viewChanged.emit(e)}ngAfterContentInit(){this._calendarHeaderPortal=new o.C5(this.headerComponent||at),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(t){const e=t.minDate||t.maxDate||t.dateFilter;if(e&&!e.firstChange){const t=this._getCurrentViewComponent();t&&(this._changeDetectorRef.detectChanges(),t._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){const t=this.currentView;let e;e="month"===t?this.monthView:"year"===t?this.yearView:this.multiYearView,e._init()}_dateSelected(t){const e=t.value;(this.selected instanceof $||e&&!this._dateAdapter.sameDate(e,this.selected))&&this.selectedChange.emit(e),this._userSelection.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_goToDateInView(t,e){this.activeDate=t,this.currentView=e}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(q),a.Y36(u._A,8),a.Y36(u.sG,8),a.Y36(a.sBO))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-calendar"]],viewQuery:function(t,e){if(1&t&&(a.Gf(tt,5),a.Gf(ot,5),a.Gf(et,5)),2&t){let t;a.iGM(t=a.CRH())&&(e.monthView=t.first),a.iGM(t=a.CRH())&&(e.yearView=t.first),a.iGM(t=a.CRH())&&(e.multiYearView=t.first)}},hostAttrs:[1,"mat-calendar"],inputs:{startView:"startView",startAt:"startAt",selected:"selected",minDate:"minDate",maxDate:"maxDate",headerComponent:"headerComponent",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[a._Bn([W]),a.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(t,e){1&t&&(a.YNc(0,D,0,0,"ng-template",0),a.TgZ(1,"div",1),a.YNc(2,M,1,8,"mat-month-view",2),a.YNc(3,L,1,6,"mat-year-view",3),a.YNc(4,N,1,6,"mat-multi-year-view",4),a.qZA()),2&t&&(a.Q6J("cdkPortalOutlet",e._calendarHeaderPortal),a.xp6(1),a.Q6J("ngSwitch",e.currentView),a.xp6(1),a.Q6J("ngSwitchCase","month"),a.xp6(1),a.Q6J("ngSwitchCase","year"),a.xp6(1),a.Q6J("ngSwitchCase","multi-year"))},directives:[o.Pl,n.kH,r.RF,r.n9,tt,ot,et],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(33% / 7 - 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:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;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}.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}\n'],encapsulation:2,changeDetection:0}),t})();const lt={transformPanel:(0,y.X$)("transformPanel",[(0,y.eR)("void => enter-dropdown",(0,y.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,y.F4)([(0,y.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,y.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,y.eR)("void => enter-dialog",(0,y.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,y.F4)([(0,y.oB)({opacity:0,transform:"scale(0.7)"}),(0,y.oB)({transform:"none",opacity:1})]))),(0,y.eR)("* => void",(0,y.jt)("100ms linear",(0,y.oB)({opacity:0})))]),fadeInCalendar:(0,y.X$)("fadeInCalendar",[(0,y.SB)("void",(0,y.oB)({opacity:0})),(0,y.SB)("enter",(0,y.oB)({opacity:1})),(0,y.eR)("void => *",(0,y.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let ut=0;const ht=new a.OlP("mat-datepicker-scroll-strategy"),dt={provide:ht,deps:[s.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class pt{constructor(t){this._elementRef=t}}const gt=(0,u.pj)(pt);let ft=(()=>{class t extends gt{constructor(t,e,i,n,s,o){super(t),this._changeDetectorRef=e,this._globalModel=i,this._dateAdapter=n,this._rangeSelectionStrategy=s,this._subscriptions=new d.w,this._animationDone=new h.xQ,this._actionsPortal=null,this._closeButtonText=o.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,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(t){const e=this._model.selection,i=t.value,n=e instanceof $;if(n&&this._rangeSelectionStrategy){const n=this._rangeSelectionStrategy.selectionFinished(i,e,t.event);this._model.updateSelection(n,this)}else!i||!n&&this._dateAdapter.sameDate(i,e)||this._model.add(i);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)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(J),a.Y36(u._A),a.Y36(X,8),a.Y36(q))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){if(1&t&&a.Gf(ct,5),2&t){let t;a.iGM(t=a.CRH())&&(e._calendar=t.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&a.WFA("@transformPanel.done",function(){return e._animationDone.next()}),2&t&&(a.d8E("@transformPanel",e._animationState),a.ekj("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[a.qOj],decls:5,vars:20,consts:[["cdkTrapFocus","",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(t,e){1&t&&(a.TgZ(0,"div",0),a.TgZ(1,"mat-calendar",1),a.NdJ("yearSelected",function(t){return e.datepicker._selectYear(t)})("monthSelected",function(t){return e.datepicker._selectMonth(t)})("viewChanged",function(t){return e.datepicker._viewChanged(t)})("_userSelection",function(t){return e._handleUserSelection(t)}),a.qZA(),a.YNc(2,z,0,0,"ng-template",2),a.TgZ(3,"button",3),a.NdJ("focus",function(){return e._closeButtonFocused=!0})("blur",function(){return e._closeButtonFocused=!1})("click",function(){return e.datepicker.close()}),a._uU(4),a.qZA(),a.qZA()),2&t&&(a.ekj("mat-datepicker-content-container-with-actions",e._actionsPortal),a.xp6(1),a.Q6J("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._getMinDate())("maxDate",e.datepicker._getMaxDate())("dateFilter",e.datepicker._getDateFilter())("headerComponent",e.datepicker.calendarHeaderComponent)("selected",e._getSelected())("dateClass",e.datepicker.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("@fadeInCalendar","enter"),a.xp6(1),a.Q6J("cdkPortalOutlet",e._actionsPortal),a.xp6(1),a.ekj("cdk-visually-hidden",!e._closeButtonFocused),a.Q6J("color",e.color||"primary"),a.xp6(1),a.Oqu(e._closeButtonText))},directives:[n.mK,ct,r.mk,o.Pl,c.lW],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.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}}\n"],encapsulation:2,data:{animation:[lt.transformPanel,lt.fadeInCalendar]},changeDetection:0}),t})(),mt=(()=>{class t{constructor(t,e,i,n,s,o,r,c,l){this._overlay=e,this._ngZone=i,this._viewContainerRef=n,this._dateAdapter=o,this._dir=r,this._model=l,this._inputStateChanges=d.w.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new a.vpe,this.monthSelected=new a.vpe,this.viewChanged=new a.vpe(!0),this.openedStream=new a.vpe,this.closedStream=new a.vpe,this._opened=!1,this.id="mat-datepicker-"+ut++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new h.xQ,this._scrollStrategy=s}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(t){this._color=t}get touchUi(){return this._touchUi}set touchUi(t){this._touchUi=(0,w.Ig)(t)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(t){const e=(0,w.Ig)(t);e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(t){this._restoreFocus=(0,w.Ig)(t)}get panelClass(){return this._panelClass}set panelClass(t){this._panelClass=(0,w.du)(t)}get opened(){return this._opened}set opened(t){(0,w.Ig)(t)?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(t){const e=t.xPosition||t.yPosition;if(e&&!e.firstChange&&this._overlayRef){const t=this._overlayRef.getConfig().positionStrategy;t instanceof s._G&&(this._setConnectedPositions(t),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(t){this._model.add(t)}_selectYear(t){this.yearSelected.emit(t)}_selectMonth(t){this.monthSelected.emit(t)}_viewChanged(t){this.viewChanged.emit(t)}registerInput(t){return this._inputStateChanges.unsubscribe(),this.datepickerInput=t,this._inputStateChanges=t.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(t){this._actionsPortal=t}removeActions(t){t===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,A.ht)(),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,m.q)(1)).subscribe(()=>this._destroyOverlay())}const t=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(t)):t()}_applyPendingSelection(){var t,e;null===(e=null===(t=this._componentRef)||void 0===t?void 0:t.instance)||void 0===e||e._applyPendingSelection()}_forwardContentValues(t){t.datepicker=this,t.color=this.color,t._actionsPortal=this._actionsPortal}_openOverlay(){this._destroyOverlay();const t=this.touchUi,e=this.datepickerInput.getOverlayLabelId(),i=new o.C5(ft,this._viewContainerRef),n=this._overlayRef=this._overlay.create(new s.X_({positionStrategy:t?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[t?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:t?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(t?"dialog":"popup")})),r=n.overlayElement;r.setAttribute("role","dialog"),e&&r.setAttribute("aria-labelledby",e),t&&r.setAttribute("aria-modal","true"),this._getCloseStream(n).subscribe(t=>{t&&t.preventDefault(),this.close()}),this._componentRef=n.attach(i),this._forwardContentValues(this._componentRef.instance),t||this._ngZone.onStable.pipe((0,m.q)(1)).subscribe(()=>n.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(t)}_setConnectedPositions(t){const e="end"===this.xPosition?"end":"start",i="start"===e?"end":"start",n="above"===this.yPosition?"bottom":"top",s="top"===n?"bottom":"top";return t.withPositions([{originX:e,originY:s,overlayX:e,overlayY:n},{originX:e,originY:n,overlayX:e,overlayY:s},{originX:i,originY:s,overlayX:i,overlayY:n},{originX:i,originY:n,overlayX:i,overlayY:s}])}_getCloseStream(t){return(0,p.T)(t.backdropClick(),t.detachments(),t.keydownEvents().pipe((0,_.h)(t=>t.keyCode===f.hY&&!(0,f.Vb)(t)||this.datepickerInput&&(0,f.Vb)(t,"altKey")&&t.keyCode===f.LH)))}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(s.aV),a.Y36(a.R0b),a.Y36(a.s_b),a.Y36(ht),a.Y36(u._A,8),a.Y36(E.Is,8),a.Y36(r.K0,8),a.Y36(J))},t.\u0275dir=a.lG2({type:t,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",restoreFocus:"restoreFocus",panelClass:"panelClass",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[a.TTD]}),t})(),bt=(()=>{class t extends mt{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=a.n5z(t)))(i||t)}}(),t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[a._Bn([W,{provide:mt,useExisting:t}]),a.qOj],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t})();class _t{constructor(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}let wt=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._dateAdapter=e,this._dateFormats=i,this.dateChange=new a.vpe,this.dateInput=new a.vpe,this.stateChanges=new h.xQ,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=d.w.EMPTY,this._localeSubscription=d.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value));return!e||this._matchesFilter(e)?null:{matDatepickerFilter:!0}},this._minValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),i=this._getMinDate();return!i||!e||this._dateAdapter.compareDate(i,e)<=0?null:{matDatepickerMin:{min:i,actual:e}}},this._maxValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),i=this._getMaxDate();return!i||!e||this._dateAdapter.compareDate(i,e)>=0?null:{matDatepickerMax:{max:i,actual:e}}},this._lastValueValid=!1,this._localeSubscription=e.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(t){this._assignValueProgrammatically(t)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(t){const e=(0,w.Ig)(t),i=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this.stateChanges.next(void 0)),e&&this._isInitialized&&i.blur&&i.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(t){this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(t=>{if(this._shouldHandleChangeEvent(t)){const e=this._getValueFromModel(t.selection);this._lastValueValid=this._isValidValue(e),this._cvaOnChange(e),this._onTouched(),this._formatValue(e),this.dateInput.emit(new _t(this,this._elementRef.nativeElement)),this.dateChange.emit(new _t(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(t){(function(t,e){const i=Object.keys(t);for(let n of i){const{previousValue:i,currentValue:s}=t[n];if(!e.isDateInstance(i)||!e.isDateInstance(s))return!0;if(!e.sameDate(i,s))return!0}return!1})(t,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(t){this._validatorOnChange=t}validate(t){return this._validator?this._validator(t):null}writeValue(t){this._assignValueProgrammatically(t)}registerOnChange(t){this._cvaOnChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_onKeydown(t){t.altKey&&t.keyCode===f.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),t.preventDefault())}_onInput(t){const e=this._lastValueValid;let i=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(i),i=this._dateAdapter.getValidDateOrNull(i),this._dateAdapter.sameDate(i,this.value)?(t&&!this.value&&this._cvaOnChange(i),e!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(i),this._cvaOnChange(i),this.dateInput.emit(new _t(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new _t(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(t){this._elementRef.nativeElement.value=t?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""}_assignValue(t){this._model?(this._assignValueToModel(t),this._pendingValue=null):this._pendingValue=t}_isValidValue(t){return!t||this._dateAdapter.isValid(t)}_parentDisabled(){return!1}_assignValueProgrammatically(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=this._isValidValue(t),t=this._dateAdapter.getValidDateOrNull(t),this._assignValue(t),this._formatValue(t)}_matchesFilter(t){const e=this._getDateFilter();return!e||e(t)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(u._A,8),a.Y36(u.sG,8))},t.\u0275dir=a.lG2({type:t,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[a.TTD]}),t})();const At={provide:v.JU,useExisting:(0,a.Gpc)(()=>vt),multi:!0},yt={provide:v.Cf,useExisting:(0,a.Gpc)(()=>vt),multi:!0};let vt=(()=>{class t extends wt{constructor(t,e,i,n){super(t,e,i),this._formField=n,this._closedSubscription=d.w.EMPTY,this._validator=v.kI.compose(super._getValidators())}set matDatepicker(t){t&&(this._datepicker=t,this._closedSubscription=t.closedStream.subscribe(()=>this._onTouched()),this._registerModel(t.registerInput(this)))}get min(){return this._min}set min(t){const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(e,this._min)||(this._min=e,this._validatorOnChange())}get max(){return this._max}set max(t){const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(e,this._max)||(this._max=e,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(t){const e=this._matchesFilter(this.value);this._dateFilter=t,this._matchesFilter(this.value)!==e&&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(t){return t}_assignValueToModel(t){this._model&&this._model.updateSelection(t,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(t){return t.source!==this}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(u._A,8),a.Y36(u.sG,8),a.Y36(T.G_,8))},t.\u0275dir=a.lG2({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(t,e){1&t&&a.NdJ("input",function(t){return e._onInput(t.target.value)})("change",function(){return e._onChange()})("blur",function(){return e._onBlur()})("keydown",function(t){return e._onKeydown(t)}),2&t&&(a.Ikx("disabled",e.disabled),a.uIk("aria-haspopup",e._datepicker?"dialog":null)("aria-owns",(null==e._datepicker?null:e._datepicker.opened)&&e._datepicker.id||null)("min",e.min?e._dateAdapter.toIso8601(e.min):null)("max",e.max?e._dateAdapter.toIso8601(e.max):null)("data-mat-calendar",e._datepicker?e._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[a._Bn([At,yt,{provide:C.Jk,useExisting:t}]),a.qOj]}),t})(),Tt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.lG2({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),t})(),Ct=(()=>{class t{constructor(t,e,i){this._intl=t,this._changeDetectorRef=e,this._stateChanges=d.w.EMPTY;const n=Number(i);this.tabIndex=n||0===n?n:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(t){this._disabled=(0,w.Ig)(t)}ngOnChanges(t){t.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())}_watchStateChanges(){const t=this.datepicker?this.datepicker.stateChanges:(0,g.of)(),e=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,g.of)(),i=this.datepicker?(0,p.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,g.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,p.T)(this._intl.changes,t,e,i).subscribe(()=>this._changeDetectorRef.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(q),a.Y36(a.sBO),a.$8M("tabindex"))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,e,i){if(1&t&&a.Suo(i,Tt,5),2&t){let t;a.iGM(t=a.CRH())&&(e._customIcon=t.first)}},viewQuery:function(t,e){if(1&t&&a.Gf(Z,5),2&t){let t;a.iGM(t=a.CRH())&&(e._button=t.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(t,e){1&t&&a.NdJ("click",function(t){return e._open(t)}),2&t&&(a.uIk("tabindex",null)("data-mat-calendar",e.datepicker?e.datepicker.id:null),a.ekj("mat-datepicker-toggle-active",e.datepicker&&e.datepicker.opened)("mat-accent",e.datepicker&&"accent"===e.datepicker.color)("mat-warn",e.datepicker&&"warn"===e.datepicker.color))},inputs:{tabIndex:"tabIndex",disabled:"disabled",datepicker:["for","datepicker"],ariaLabel:["aria-label","ariaLabel"],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[a.TTD],ngContentSelectors:U,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(t,e){1&t&&(a.F$t(F),a.TgZ(0,"button",0,1),a.YNc(2,B,2,0,"svg",2),a.Hsn(3),a.qZA()),2&t&&(a.Q6J("disabled",e.disabled)("disableRipple",e.disableRipple),a.uIk("aria-haspopup",e.datepicker?"dialog":null)("aria-label",e.ariaLabel||e._intl.openCalendarLabel)("tabindex",e.disabled?-1:e.tabIndex),a.xp6(2),a.Q6J("ngIf",!e._customIcon))},directives:[c.lW,r.O5],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}\n"],encapsulation:2,changeDetection:0}),t})(),Et=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({providers:[q,dt],imports:[[r.ez,c.ot,s.U8,n.rt,o.eL,u.BQ],l.ZD]}),t})()},84608:function(t,e,i){"use strict";i.d(e,{WI:function(){return k},uw:function(){return P},H8:function(){return N},vA:function(){return A},xY:function(){return L},Is:function(){return z},so:function(){return E},uh:function(){return M}});var n=i(2522),s=i(26899),o=i(31572),r=i(71522),a=i(22526),c=i(61511),l=i(55959),u=i(31450),h=i(40878),d=i(43835),p=i(90611),g=i(56238),f=i(11353),m=i(10709),b=i(75842),_=i(24621);function w(t,e){}class A{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=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const y={dialogContainer:(0,m.X$)("dialogContainer",[(0,m.SB)("void, exit",(0,m.oB)({opacity:0,transform:"scale(0.7)"})),(0,m.SB)("enter",(0,m.oB)({transform:"none"})),(0,m.eR)("* => enter",(0,m.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,m.oB)({transform:"none",opacity:1}))),(0,m.eR)("* => void, * => exit",(0,m.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,m.oB)({opacity:0})))])};let v=(()=>{class t extends s.en{constructor(t,e,i,n,s,r){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=i,this._config=s,this._focusMonitor=r,this._animationStateChanged=new o.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=n}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=(0,f.ht)(),i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,f.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=(0,f.ht)();return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.SBq),o.Y36(_.qV),o.Y36(o.sBO),o.Y36(c.K0,8),o.Y36(A),o.Y36(_.tE))},t.\u0275dir=o.lG2({type:t,viewQuery:function(t,e){if(1&t&&o.Gf(s.Pl,7),2&t){let t;o.iGM(t=o.CRH())&&(e._portalOutlet=t.first)}},features:[o.qOj]}),t})(),T=(()=>{class t extends v{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&o.WFA("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(o.Ikx("id",e._id),o.uIk("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),o.d8E("@dialogContainer",e._state))},features:[o.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&o.YNc(0,w,0,0,"ng-template",0)},directives:[s.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[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.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}\n"],encapsulation:2,data:{animation:[y.dialogContainer]}}),t})(),C=0;class E{constructor(t,e,i="mat-dialog-"+C++){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new l.xQ,this._afterClosed=new l.xQ,this._beforeClosed=new l.xQ,this._state=0,e._id=i,e._animationStateChanged.pipe((0,d.h)(t=>"opened"===t.state),(0,p.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,d.h)(t=>"closed"===t.state),(0,p.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe((0,d.h)(t=>t.keyCode===b.hY&&!this.disableClose&&!(0,b.Vb)(t))).subscribe(t=>{t.preventDefault(),S(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():S(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe((0,d.h)(t=>"closing"===t.state),(0,p.q)(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function S(t,e,i){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(i)}const k=new o.OlP("MatDialogData"),I=new o.OlP("mat-dialog-default-options"),x=new o.OlP("mat-dialog-scroll-strategy"),R={provide:x,deps:[n.aV],useFactory:function(t){return()=>t.scrollStrategies.block()}};let O=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c){this._overlay=t,this._injector=e,this._defaultOptions=i,this._parentDialog=n,this._overlayContainer=s,this._dialogRefConstructor=r,this._dialogContainerType=a,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new l.xQ,this._afterOpenedAtThisLevel=new l.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,u.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,g.O)(void 0))),this._scrollStrategy=o}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new A)).id&&this.getDialogById(e.id);const i=this._createOverlay(e),n=this._attachDialogContainer(i,e),s=this._attachDialogContent(t,n,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),n._initializeWithAttachedContent(),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new n.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const i=o.zs3.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:A,useValue:e}]}),n=new s.C5(this._dialogContainerType,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}_attachDialogContent(t,e,i,n){const r=new this._dialogRefConstructor(i,e,n.id);if(t instanceof o.Rgc)e.attachTemplatePortal(new s.UE(t,null,{$implicit:n.data,dialogRef:r}));else{const i=this._createInjector(n,r,e),o=e.attachComponentPortal(new s.C5(t,n.viewContainerRef,i));r.componentInstance=o.instance}return r.updateSize(n.width,n.height).updatePosition(n.position),r}_createInjector(t,e,i){const n=t&&t.viewContainerRef&&t.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||n&&n.get(a.Is,null,o.XFs.Optional)||s.push({provide:a.Is,useValue:{value:t.direction,change:(0,h.of)()}}),o.zs3.create({parent:n||this._injector,providers:s})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let i=e.length-1;i>-1;i--){let n=e[i];n===t||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.aV),o.Y36(o.zs3),o.Y36(void 0),o.Y36(void 0),o.Y36(n.Xj),o.Y36(void 0),o.Y36(o.DyG),o.Y36(o.DyG),o.Y36(o.OlP))},t.\u0275dir=o.lG2({type:t}),t})(),P=(()=>{class t extends O{constructor(t,e,i,n,s,o,r){super(t,e,n,o,r,s,E,T,k)}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.aV),o.LFG(o.zs3),o.LFG(c.Ye,8),o.LFG(I,8),o.LFG(x),o.LFG(t,12),o.LFG(n.Xj))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t})(),D=0,M=(()=>{class t{constructor(t,e,i){this._dialogRef=t,this._elementRef=e,this._dialog=i,this.id="mat-dialog-title-"+D++}ngOnInit(){this._dialogRef||(this._dialogRef=function(t,e){let i=t.nativeElement.parentElement;for(;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?e.find(t=>t.id===i.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(E,8),o.Y36(o.SBq),o.Y36(P))},t.\u0275dir=o.lG2({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&o.Ikx("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),L=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),N=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})(),z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[P,R],imports:[[n.U8,s.eL,r.BQ],r.BQ]}),t})()},27679:function(t,e,i){"use strict";i.d(e,{d:function(){return r},t:function(){return a}});var n=i(19861),s=i(71522),o=i(31572);let r=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(t){this._vertical=(0,n.Ig)(t)}get inset(){return this._inset}set inset(t){this._inset=(0,n.Ig)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(o.uIk("aria-orientation",e.vertical?"vertical":"horizontal"),o.ekj("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},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}\n"],encapsulation:2,changeDetection:0}),t})(),a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[s.BQ],s.BQ]}),t})()},45001:function(t,e,i){"use strict";i.d(e,{pp:function(){return H},To:function(){return G},ib:function(){return B},HS:function(){return N},u4:function(){return U},yz:function(){return F},yK:function(){return q}});var n=i(31572),s=i(19861),o=i(55959),r=i(87570),a=i(4230);let c=0;const l=new n.OlP("CdkAccordion");let u=(()=>{class t{constructor(){this._stateChanges=new o.xQ,this._openCloseAllActions=new o.xQ,this.id="cdk-accordion-"+c++,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=(0,s.Ig)(t)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[n._Bn([{provide:l,useExisting:t}]),n.TTD]}),t})(),h=0,d=(()=>{class t{constructor(t,e,i){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=i,this._openCloseAllSubscription=r.w.EMPTY,this.closed=new n.vpe,this.opened=new n.vpe,this.destroyed=new n.vpe,this.expandedChange=new n.vpe,this.id="cdk-accordion-child-"+h++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=i.listen((t,e)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===e&&this.id!==t&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(t){t=(0,s.Ig)(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(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(t){this._disabled=(0,s.Ig)(t)}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(t=>{this.disabled||(this.expanded=t)})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(l,12),n.Y36(n.sBO),n.Y36(a.A8))},t.\u0275dir=n.lG2({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[n._Bn([{provide:l,useValue:void 0}])]}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})();var g=i(26899),f=i(61511),m=i(71522),b=i(24621),_=i(98720),w=i(56238),A=i(43835),y=i(90611),v=i(75842),T=i(43490),C=i(70653),E=i(31906),S=i(10709);const k=["body"];function I(t,e){}const x=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],R=["mat-expansion-panel-header","*","mat-action-row"];function O(t,e){if(1&t&&n._UZ(0,"span",2),2&t){const t=n.oxw();n.Q6J("@indicatorRotate",t._getExpandedState())}}const P=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],D=["mat-panel-title","mat-panel-description","*"],M=new n.OlP("MAT_ACCORDION"),L={indicatorRotate:(0,S.X$)("indicatorRotate",[(0,S.SB)("collapsed, void",(0,S.oB)({transform:"rotate(0deg)"})),(0,S.SB)("expanded",(0,S.oB)({transform:"rotate(180deg)"})),(0,S.eR)("expanded <=> collapsed, void => collapsed",(0,S.jt)("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),bodyExpansion:(0,S.X$)("bodyExpansion",[(0,S.SB)("collapsed, void",(0,S.oB)({height:"0px",visibility:"hidden"})),(0,S.SB)("expanded",(0,S.oB)({height:"*",visibility:"visible"})),(0,S.eR)("expanded <=> collapsed, void => collapsed",(0,S.jt)("225ms cubic-bezier(0.4,0.0,0.2,1)"))])};let N=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Rgc))},t.\u0275dir=n.lG2({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),z=0;const Z=new n.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let B=(()=>{class t extends d{constructor(t,e,i,s,r,a,c){super(t,e,i),this._viewContainerRef=s,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new n.vpe,this.afterCollapse=new n.vpe,this._inputChanges=new o.xQ,this._headerId="mat-expansion-panel-header-"+z++,this._bodyAnimationDone=new o.xQ,this.accordion=t,this._document=r,this._bodyAnimationDone.pipe((0,_.x)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{"void"!==t.fromState&&("expanded"===t.toState?this.afterExpand.emit():"collapsed"===t.toState&&this.afterCollapse.emit())}),c&&(this.hideToggle=c.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=(0,s.Ig)(t)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}_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.opened.pipe((0,w.O)(null),(0,A.h)(()=>this.expanded&&!this._portal),(0,y.q)(1)).subscribe(()=>{this._portal=new g.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(M,12),n.Y36(n.sBO),n.Y36(a.A8),n.Y36(n.s_b),n.Y36(f.K0),n.Y36(T.Qb,8),n.Y36(Z,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,i){if(1&t&&n.Suo(i,N,5),2&t){let t;n.iGM(t=n.CRH())&&(e._lazyContent=t.first)}},viewQuery:function(t,e){if(1&t&&n.Gf(k,5),2&t){let t;n.iGM(t=n.CRH())&&(e._body=t.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&n.ekj("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[n._Bn([{provide:M,useValue:void 0}]),n.qOj,n.TTD],ngContentSelectors:R,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(n.F$t(x),n.Hsn(0),n.TgZ(1,"div",0,1),n.NdJ("@bodyExpansion.done",function(t){return e._bodyAnimationDone.next(t)}),n.TgZ(3,"div",2),n.Hsn(4,1),n.YNc(5,I,0,0,"ng-template",3),n.qZA(),n.Hsn(6,2),n.qZA()),2&t&&(n.xp6(1),n.Q6J("@bodyExpansion",e._getExpandedState())("id",e.id),n.uIk("aria-labelledby",e._headerId),n.xp6(4),n.Q6J("cdkPortalOutlet",e._portal))},directives:[g.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-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 button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[L.bodyExpansion]},changeDetection:0}),t})(),F=(()=>{class t{constructor(t,e,i,n,s,o){this.panel=t,this._element=e,this._focusMonitor=i,this._changeDetectorRef=n,this._animationMode=o,this._parentChangeSubscription=r.w.EMPTY;const a=t.accordion?t.accordion._stateChanges.pipe((0,A.h)(t=>!(!t.hideToggle&&!t.togglePosition))):C.E;this._parentChangeSubscription=(0,E.T)(t.opened,t.closed,a,t._inputChanges.pipe((0,A.h)(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe((0,A.h)(()=>t._containsFocus())).subscribe(()=>i.focusVia(e,"program")),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.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 t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}_keydown(t){switch(t.keyCode){case v.L_:case v.K5:(0,v.Vb)(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t,e){t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(t=>{t&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(B,1),n.Y36(n.SBq),n.Y36(b.tE),n.Y36(n.sBO),n.Y36(Z,8),n.Y36(T.Qb,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&n.NdJ("click",function(){return e._toggle()})("keydown",function(t){return e._keydown(t)}),2&t&&(n.uIk("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),n.Udp("height",e._getHeaderHeight()),n.ekj("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:D,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(n.F$t(P),n.TgZ(0,"span",0),n.Hsn(1),n.Hsn(2,1),n.Hsn(3,2),n.qZA(),n.YNc(4,O,1,1,"span",1)),2&t&&(n.xp6(4),n.Q6J("ngIf",e._showToggle()))},directives:[f.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}[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 .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[L.indicatorRotate]},changeDetection:0}),t})(),U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t})(),q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),H=(()=>{class t extends u{constructor(){super(...arguments),this._ownHeaders=new n.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(t){this._hideToggle=(0,s.Ig)(t)}ngAfterContentInit(){this._headers.changes.pipe((0,w.O)(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new b.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(t){this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["mat-accordion"]],contentQueries:function(t,e,i){if(1&t&&n.Suo(i,F,5),2&t){let t;n.iGM(t=n.CRH())&&(e._headers=t)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&n.ekj("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[n._Bn([{provide:M,useExisting:t}]),n.qOj]}),t})(),G=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[f.ez,m.BQ,p,g.eL]]}),t})()},66283:function(t,e,i){"use strict";i.d(e,{G_:function(){return W},TO:function(){return z},KE:function(){return X},Eo:function(){return B},lN:function(){return tt},bx:function(){return q},hX:function(){return H},UY:function(){return G},R9:function(){return K}});var n=i(36337),s=i(61511),o=i(31572),r=i(71522),a=i(19861),c=i(55959),l=i(31906),u=i(87254),h=i(56238),d=i(25416),p=i(90611),g=i(10709),f=i(43490),m=i(22526),b=i(11353);const _=["underline"],w=["connectionContainer"],A=["inputContainer"],y=["label"];function v(t,e){1&t&&(o.ynx(0),o.TgZ(1,"div",14),o._UZ(2,"div",15),o._UZ(3,"div",16),o._UZ(4,"div",17),o.qZA(),o.TgZ(5,"div",18),o._UZ(6,"div",15),o._UZ(7,"div",16),o._UZ(8,"div",17),o.qZA(),o.BQk())}function T(t,e){1&t&&(o.TgZ(0,"div",19),o.Hsn(1,1),o.qZA())}function C(t,e){if(1&t&&(o.ynx(0),o.Hsn(1,2),o.TgZ(2,"span"),o._uU(3),o.qZA(),o.BQk()),2&t){const t=o.oxw(2);o.xp6(3),o.Oqu(t._control.placeholder)}}function E(t,e){1&t&&o.Hsn(0,3,["*ngSwitchCase","true"])}function S(t,e){1&t&&(o.TgZ(0,"span",23),o._uU(1," *"),o.qZA())}function k(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"label",20,21),o.NdJ("cdkObserveContent",function(){return o.CHM(t),o.oxw().updateOutlineGap()}),o.YNc(2,C,4,1,"ng-container",12),o.YNc(3,E,1,0,"ng-content",12),o.YNc(4,S,2,0,"span",22),o.qZA()}if(2&t){const t=o.oxw();o.ekj("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),o.Q6J("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),o.uIk("for",t._control.id)("aria-owns",t._control.id),o.xp6(2),o.Q6J("ngSwitchCase",!1),o.xp6(1),o.Q6J("ngSwitchCase",!0),o.xp6(1),o.Q6J("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function I(t,e){1&t&&(o.TgZ(0,"div",24),o.Hsn(1,4),o.qZA())}function x(t,e){if(1&t&&(o.TgZ(0,"div",25,26),o._UZ(2,"span",27),o.qZA()),2&t){const t=o.oxw();o.xp6(2),o.ekj("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function R(t,e){if(1&t&&(o.TgZ(0,"div"),o.Hsn(1,5),o.qZA()),2&t){const t=o.oxw();o.Q6J("@transitionMessages",t._subscriptAnimationState)}}function O(t,e){if(1&t&&(o.TgZ(0,"div",31),o._uU(1),o.qZA()),2&t){const t=o.oxw(2);o.Q6J("id",t._hintLabelId),o.xp6(1),o.Oqu(t.hintLabel)}}function P(t,e){if(1&t&&(o.TgZ(0,"div",28),o.YNc(1,O,2,2,"div",29),o.Hsn(2,6),o._UZ(3,"div",30),o.Hsn(4,7),o.qZA()),2&t){const t=o.oxw();o.Q6J("@transitionMessages",t._subscriptAnimationState),o.xp6(1),o.Q6J("ngIf",t.hintLabel)}}const D=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],M=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let L=0;const N=new o.OlP("MatError");let z=(()=>{class t{constructor(t,e){this.id="mat-error-"+L++,t||e.nativeElement.setAttribute("aria-live","polite")}}return t.\u0275fac=function(e){return new(e||t)(o.$8M("aria-live"),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&o.uIk("id",e.id)},inputs:{id:"id"},features:[o._Bn([{provide:N,useExisting:t}])]}),t})();const Z={transitionMessages:(0,g.X$)("transitionMessages",[(0,g.SB)("enter",(0,g.oB)({opacity:1,transform:"translateY(0%)"})),(0,g.eR)("void => enter",[(0,g.oB)({opacity:0,transform:"translateY(-5px)"}),(0,g.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let B=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t}),t})(),F=0;const U=new o.OlP("MatHint");let q=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+F++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(o.uIk("id",e.id)("align",null),o.ekj("mat-form-field-hint-end","end"===e.align))},inputs:{align:"align",id:"id"},features:[o._Bn([{provide:U,useExisting:t}])]}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-label"]]}),t})(),G=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-placeholder"]]}),t})();const j=new o.OlP("MatPrefix"),Y=new o.OlP("MatSuffix");let K=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["","matSuffix",""]],features:[o._Bn([{provide:Y,useExisting:t}])]}),t})(),V=0;class ${constructor(t){this._elementRef=t}}const J=(0,r.pj)($,"primary"),Q=new o.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),W=new o.OlP("MatFormField");let X=(()=>{class t extends J{constructor(t,e,i,n,s,o,r,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=n,this._defaults=s,this._platform=o,this._ngZone=r,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new c.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+V++,this._labelId="mat-form-field-label-"+V++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=(0,a.Ig)(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe((0,h.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe((0,d.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,d.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,l.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,h.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,h.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,d.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(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_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,u.R)(this._label.nativeElement,"transitionend").pipe((0,p.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 t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,i=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),i&&t.push(i.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,i=0;const n=this._connectionContainerRef.nativeElement,s=n.querySelectorAll(".mat-form-field-outline-start"),o=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=n.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const o=this._getStartEnd(s),r=t.children,a=this._getStartEnd(r[0].getBoundingClientRect());let c=0;for(let t=0;t0?.75*c+10:0}for(let r=0;r{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[s.ez,r.BQ,n.Q8],r.BQ]}),t})()},43691:function(t,e,i){"use strict";i.d(e,{Hw:function(){return D},Ps:function(){return M},jv:function(){return C}});var n=i(31572),s=i(71522),o=i(19861),r=i(61511),a=i(40878),c=i(31225),l=i(3148),u=i(87570),h=i(66599),d=i(79996),p=i(47727),g=i(11520),f=i(1055),m=i(90611),b=i(29063),_=i(30269);const w=["*"];function A(t){return Error(`Unable to find icon with the name "${t}"`)}function y(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function v(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class T{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let C=(()=>{class t{constructor(t,e,i,n){this._httpClient=t,this._sanitizer=e,this._errorHandler=n,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i}addSvgIcon(t,e,i){return this.addSvgIconInNamespace("",t,e,i)}addSvgIconLiteral(t,e,i){return this.addSvgIconLiteralInNamespace("",t,e,i)}addSvgIconInNamespace(t,e,i,n){return this._addSvgIconConfig(t,e,new T(i,null,n))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,i,s){const o=this._sanitizer.sanitize(n.q3G.HTML,i);if(!o)throw v(i);return this._addSvgIconConfig(t,e,new T("",o,s))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,i){return this._addSvgIconSetConfig(t,new T(e,null,i))}addSvgIconSetLiteralInNamespace(t,e,i){const s=this._sanitizer.sanitize(n.q3G.HTML,e);if(!s)throw v(e);return this._addSvgIconSetConfig(t,new T("",s,i))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(n.q3G.RESOURCE_URL,t);if(!e)throw y(t);const i=this._cachedIconsByUrl.get(e);return i?(0,a.of)(E(i)):this._loadSvgIconFromConfig(new T(t,null)).pipe((0,h.b)(t=>this._cachedIconsByUrl.set(e,t)),(0,d.U)(t=>E(t)))}getNamedSvgIcon(t,e=""){const i=S(e,t);let n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);if(n=this._getIconConfigFromResolvers(e,t),n)return this._svgIconConfigs.set(i,n),this._getSvgFromConfig(n);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):(0,c._)(A(i))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?(0,a.of)(E(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe((0,d.U)(t=>E(t)))}_getSvgFromIconSetConfigs(t,e){const i=this._extractIconWithNameFromAnySet(t,e);if(i)return(0,a.of)(i);const s=e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe((0,p.K)(e=>{const i=this._sanitizer.sanitize(n.q3G.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${i} failed: ${e.message}`)),(0,a.of)(null)})));return(0,l.D)(s).pipe((0,d.U)(()=>{const i=this._extractIconWithNameFromAnySet(t,e);if(!i)throw A(t);return i}))}_extractIconWithNameFromAnySet(t,e){for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.svgText&&n.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(n),i=this._extractSvgIconFromSet(e,t,n.options);if(i)return i}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe((0,h.b)(e=>t.svgText=e),(0,d.U)(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?(0,a.of)(null):this._fetchIcon(t).pipe((0,h.b)(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,i){const n=t.querySelector(`[id="${e}"]`);if(!n)return null;const s=n.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,i);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),i);const o=this._svgElementFromString("");return o.appendChild(s),this._setSvgAttributes(o,i)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const i=e.querySelector("svg");if(!i)throw Error(" tag not found");return i}_toSvgElement(t){const e=this._svgElementFromString(""),i=t.attributes;for(let n=0;nthis._inProgressUrlFetches.delete(r)),(0,f.B)());return this._inProgressUrlFetches.set(r,c),c}_addSvgIconConfig(t,e,i){return this._svgIconConfigs.set(S(t,e),i),this}_addSvgIconSetConfig(t,e){const i=this._iconSetConfigs.get(t);return i?i.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let n=0;ne?e.pathname+e.search:""}}}),R=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],O=R.map(t=>`[${t}]`).join(", "),P=/^url\(['"]?#(.*?)['"]?\)$/;let D=(()=>{class t extends I{constructor(t,e,i,n,s){super(t),this._iconRegistry=e,this._location=n,this._errorHandler=s,this._inline=!1,this._currentIconFetch=u.w.EMPTY,i||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=(0,o.Ig)(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.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(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let n=0;n{e.forEach(e=>{i.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(O),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let n=0;n{const s=e[n],o=s.getAttribute(t),r=o?o.match(P):null;if(r){let e=i.get(s);e||(e=[],i.set(s,e)),e.push({name:t,value:r[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,i]=this._splitIconName(t);e&&(this._svgNamespace=e),i&&(this._svgName=i),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(i,e).pipe((0,m.q)(1)).subscribe(t=>this._setSvgElement(t),t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${i}! ${t.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(C),n.$8M("aria-hidden"),n.Y36(x),n.Y36(n.qLn))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(n.uIk("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),n.ekj("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[n.qOj],ngContentSelectors:w,decls:1,vars:0,template:function(t,e){1&t&&(n.F$t(),n.Hsn(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),M=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[s.BQ],s.BQ]}),t})()},80340:function(t,e,i){"use strict";i.d(e,{Jk:function(){return d},Nt:function(){return b},c:function(){return _},D7:function(){return h}});var n=i(10901),s=i(31572),o=i(19861),r=i(11353),a=i(71522),c=i(66283),l=i(55959),u=i(16073);let h=(()=>{class t extends n.IC{get matAutosizeMinRows(){return this.minRows}set matAutosizeMinRows(t){this.minRows=t}get matAutosizeMaxRows(){return this.maxRows}set matAutosizeMaxRows(t){this.maxRows=t}get matAutosize(){return this.enabled}set matAutosize(t){this.enabled=t}get matTextareaAutosize(){return this.enabled}set matTextareaAutosize(t){this.enabled=t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["textarea","mat-autosize",""],["textarea","matTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize","mat-autosize"],inputs:{cdkAutosizeMinRows:"cdkAutosizeMinRows",cdkAutosizeMaxRows:"cdkAutosizeMaxRows",matAutosizeMinRows:"matAutosizeMinRows",matAutosizeMaxRows:"matAutosizeMaxRows",matAutosize:["mat-autosize","matAutosize"],matTextareaAutosize:"matTextareaAutosize"},exportAs:["matTextareaAutosize"],features:[s.qOj]}),t})();const d=new s.OlP("MAT_INPUT_VALUE_ACCESSOR"),p=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let g=0;class f{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const m=(0,a.FD)(f);let b=(()=>{class t extends m{constructor(t,e,i,n,s,o,a,c,u,h){super(o,n,s,i),this._elementRef=t,this._platform=e,this.ngControl=i,this._autofillMonitor=c,this._formField=h,this._uid="mat-input-"+g++,this.focused=!1,this.stateChanges=new l.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>(0,r.qK)().has(t));const d=this._elementRef.nativeElement,p=d.nodeName.toLowerCase();this._inputValueAccessor=a||d,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&u.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{const e=t.target;e.value||0!==e.selectionStart||0!==e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===p,this._isTextarea="textarea"===p,this._isNativeSelect&&(this.controlType=d.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=(0,o.Ig)(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=(0,o.Ig)(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&(0,r.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=(0,o.Ig)(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const i=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(i!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=i,i?t.setAttribute("placeholder",i):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){p.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(r.t4),s.Y36(u.a5,10),s.Y36(u.F,8),s.Y36(u.sg,8),s.Y36(a.rD),s.Y36(d,10),s.Y36(n.Lq),s.Y36(s.R0b),s.Y36(c.G_,8))},t.\u0275dir=s.lG2({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&s.NdJ("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(s.Ikx("disabled",e.disabled)("required",e.required),s.uIk("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),s.ekj("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[s._Bn([{provide:c.Eo,useExisting:t}]),s.qOj,s.TTD]}),t})(),_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[a.rD],imports:[[n.Ky,c.lN,a.BQ],n.Ky,c.lN]}),t})()},85250:function(t,e,i){"use strict";i.d(e,{i$:function(){return w},Tg:function(){return v},ie:function(){return T}});var n=i(61511),s=i(31572),o=i(71522),r=i(19861),a=i(55959),c=i(25416),l=(i(56238),i(24621),i(4230),i(75842),i(16073),i(27679));const u=["*"],h=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],d=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"];class p{}const g=(0,o.Id)((0,o.Kr)(p));class f{}const m=(0,o.Kr)(f),b=new s.OlP("MatList"),_=new s.OlP("MatNavList");let w=(()=>{class t extends g{constructor(t){super(),this._elementRef=t,this._stateChanges=new a.xQ,"action-list"===this._getListType()&&t.nativeElement.classList.add("mat-action-list")}_getListType(){const t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[s._Bn([{provide:b,useExisting:t}]),s.qOj,s.TTD],ngContentSelectors:u,decls:1,vars:0,template:function(t,e){1&t&&(s.F$t(),s.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.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:transparent;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{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:transparent;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{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 button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}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-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.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}}\n'],encapsulation:2,changeDetection:0}),t})(),A=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),v=(()=>{class t extends m{constructor(t,e,i,n){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new a.xQ,this._disabled=!1,this._isInteractiveList=!!(i||n&&"action-list"===n._getListType()),this._list=i||n;const s=this._getHostElement();"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,c.R)(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=(0,r.Ig)(t)}ngAfterContentInit(){(0,o.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 t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(_,8),s.Y36(b,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,A,5),s.Suo(i,y,5),s.Suo(i,o.X2,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._avatar=t.first),s.iGM(t=s.CRH())&&(e._icon=t.first),s.iGM(t=s.CRH())&&(e._lines=t)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&s.ekj("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[s.qOj],ngContentSelectors:d,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(t,e){1&t&&(s.F$t(h),s.TgZ(0,"div",0),s._UZ(1,"div",1),s.Hsn(2),s.TgZ(3,"div",2),s.Hsn(4,1),s.qZA(),s.Hsn(5,2),s.qZA()),2&t&&(s.xp6(1),s.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[o.wG],encapsulation:2,changeDetection:0}),t})(),T=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[o.uc,o.si,o.BQ,o.us,n.ez],o.uc,o.BQ,o.us,l.t]}),t})()},8055:function(t,e,i){"use strict";i.d(e,{VK:function(){return Z},OP:function(){return M},Tx:function(){return G},p6:function(){return q}});var n=i(24621),s=i(19861),o=i(75842),r=i(31572),a=i(55959),c=i(87570),l=i(31906),u=i(40878),h=i(92709),d=i(56238),p=i(44689),g=i(90611),f=i(43835),m=i(25416),b=i(60509),_=i(10709),w=i(26899),A=i(61511),y=i(71522),v=i(2522),T=i(11353),C=i(4253),E=i(22526);const S=["mat-menu-item",""],k=["*"];function I(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",0),r.NdJ("keydown",function(e){return r.CHM(t),r.oxw()._handleKeydown(e)})("click",function(){return r.CHM(t),r.oxw().closed.emit("click")})("@transformMenu.start",function(e){return r.CHM(t),r.oxw()._onAnimationStart(e)})("@transformMenu.done",function(e){return r.CHM(t),r.oxw()._onAnimationDone(e)}),r.TgZ(1,"div",1),r.Hsn(2),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),r.uIk("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const x={transformMenu:(0,_.X$)("transformMenu",[(0,_.SB)("void",(0,_.oB)({opacity:0,transform:"scale(0.8)"})),(0,_.eR)("void => enter",(0,_.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,_.oB)({opacity:1,transform:"scale(1)"}))),(0,_.eR)("* => void",(0,_.jt)("100ms 25ms linear",(0,_.oB)({opacity:0})))]),fadeInItems:(0,_.X$)("fadeInItems",[(0,_.SB)("showing",(0,_.oB)({opacity:1})),(0,_.eR)("void => *",[(0,_.oB)({opacity:0}),(0,_.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},R=new r.OlP("MatMenuContent"),O=new r.OlP("MAT_MENU_PANEL");class P{}const D=(0,y.Kr)((0,y.Id)(P));let M=(()=>{class t extends D{constructor(t,e,i,n){super(),this._elementRef=t,this._focusMonitor=i,this._parentMenu=n,this.role="menuitem",this._hovered=new a.xQ,this._focused=new a.xQ,this._highlighted=!1,this._triggersSubmenu=!1,n&&n.addItem&&n.addItem(this)}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),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(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t,e;const i=this._elementRef.nativeElement.cloneNode(!0),n=i.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class t{constructor(t,e,i){this._elementRef=t,this._ngZone=e,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new r.n_E,this._tabSubscription=c.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new a.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new r.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+N++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=(0,s.Ig)(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=(0,s.Ig)(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new n.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,d.O)(this._directDescendantItems),(0,p.w)(t=>(0,l.T)(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,d.O)(this._directDescendantItems),(0,p.w)(t=>(0,l.T)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,i=this._keyManager;switch(e){case o.hY:(0,o.Vb)(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case o.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case o.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:e!==o.LH&&e!==o.JH||i.setFocusOrigin("keyboard"),i.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e=`mat-elevation-z${Math.min(4+t,24)}`,i=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const i=this._classList;i["mat-menu-before"]="before"===t,i["mat-menu-after"]="after"===t,i["mat-menu-above"]="above"===e,i["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,d.O)(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(r.R0b),r.Y36(L))},t.\u0275dir=r.lG2({type:t,contentQueries:function(t,e,i){if(1&t&&(r.Suo(i,R,5),r.Suo(i,M,5),r.Suo(i,M,4)),2&t){let t;r.iGM(t=r.CRH())&&(e.lazyContent=t.first),r.iGM(t=r.CRH())&&(e._allItems=t),r.iGM(t=r.CRH())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&r.Gf(r.Rgc,5),2&t){let t;r.iGM(t=r.CRH())&&(e.templateRef=t.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),Z=(()=>{class t extends z{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(r.R0b),r.Y36(L))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&r.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[r._Bn([{provide:O,useExisting:t}]),r.qOj],ngContentSelectors:k,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(r.F$t(),r.YNc(0,I,3,6,"ng-template"))},directives:[A.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}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}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}\n'],encapsulation:2,data:{animation:[x.transformMenu,x.fadeInItems]},changeDetection:0}),t})();const B=new r.OlP("mat-menu-scroll-strategy"),F={provide:B,deps:[v.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},U=(0,T.i$)({passive:!0});let q=(()=>{class t{constructor(t,e,i,s,o,a,l,u){this._overlay=t,this._element=e,this._viewContainerRef=i,this._menuItemInstance=a,this._dir=l,this._focusMonitor=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=c.w.EMPTY,this._hoverSubscription=c.w.EMPTY,this._menuCloseSubscription=c.w.EMPTY,this._handleTouchStart=t=>{(0,n.yG)(t)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new r.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new r.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=s,this._parentMaterialMenu=o instanceof z?o:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,U),a&&(a._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(t),"click"!==t&&"tab"!==t||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,U),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(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof z&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}updatePosition(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==t&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,e instanceof z?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe((0,f.h)(t=>"void"===t.toState),(0,g.q)(1),(0,m.R)(e.lazyContent._attached)).subscribe({next:()=>e.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new v.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,i]="before"===this.menu.xPosition?["end","start"]:["start","end"],[n,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[o,r]=[n,s],[a,c]=[e,i],l=0;this.triggersSubmenu()?(c=e="before"===this.menu.xPosition?"start":"end",i=a="end"===e?"start":"end",l="bottom"===n?8:-8):this.menu.overlapTrigger||(o="top"===n?"bottom":"top",r="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:o,overlayX:a,overlayY:n,offsetY:l},{originX:i,originY:o,overlayX:c,overlayY:n,offsetY:l},{originX:e,originY:r,overlayX:a,overlayY:s,offsetY:-l},{originX:i,originY:r,overlayX:c,overlayY:s,offsetY:-l}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,u.of)(),n=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,f.h)(t=>t!==this._menuItemInstance),(0,f.h)(()=>this._menuOpen)):(0,u.of)();return(0,l.T)(t,i,n,e)}_handleMousedown(t){(0,n.X6)(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;e!==o.K5&&e!==o.L_||(this._openedBy="keyboard"),this.triggersSubmenu()&&(e===o.SV&&"ltr"===this.dir||e===o.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,f.h)(t=>t===this._menuItemInstance&&!t.disabled),(0,b.g)(0,h.e)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof z&&this.menu._isAnimating?this.menu._animationDone.pipe((0,g.q)(1),(0,b.g)(0,h.e),(0,m.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new w.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(v.aV),r.Y36(r.SBq),r.Y36(r.s_b),r.Y36(B),r.Y36(O,8),r.Y36(M,10),r.Y36(E.Is,8),r.Y36(n.tE))},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&r.NdJ("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&r.uIk("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[F],imports:[y.BQ]}),t})(),G=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[F],imports:[[A.ez,y.BQ,y.si,v.U8,H],C.ZD,y.BQ,H]}),t})()},73005:function(t,e,i){"use strict";i.d(e,{NW:function(){return C},ye:function(){return _},TU:function(){return E}});var n=i(61511),s=i(31572),o=i(71522),r=i(15980),a=i(4786),c=i(36922),l=i(19861),u=i(55959),h=i(66283);function d(t,e){if(1&t&&(s.TgZ(0,"mat-option",19),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.hij(" ",t," ")}}function p(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-form-field",16),s.TgZ(1,"mat-select",17),s.NdJ("selectionChange",function(e){return s.CHM(t),s.oxw(2)._changePageSize(e.value)}),s.YNc(2,d,2,2,"mat-option",18),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(2);s.Q6J("appearance",t._formFieldAppearance)("color",t.color),s.xp6(1),s.Q6J("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),s.xp6(1),s.Q6J("ngForOf",t._displayedPageSizeOptions)}}function g(t,e){if(1&t&&(s.TgZ(0,"div",20),s._uU(1),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Oqu(t.pageSize)}}function f(t,e){if(1&t&&(s.TgZ(0,"div",12),s.TgZ(1,"div",13),s._uU(2),s.qZA(),s.YNc(3,p,3,6,"mat-form-field",14),s.YNc(4,g,2,1,"div",15),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.hij(" ",t._intl.itemsPerPageLabel," "),s.xp6(1),s.Q6J("ngIf",t._displayedPageSizeOptions.length>1),s.xp6(1),s.Q6J("ngIf",t._displayedPageSizeOptions.length<=1)}}function m(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",21),s.NdJ("click",function(){return s.CHM(t),s.oxw().firstPage()}),s.O4$(),s.TgZ(1,"svg",7),s._UZ(2,"path",22),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),s.uIk("aria-label",t._intl.firstPageLabel)}}function b(t,e){if(1&t){const t=s.EpF();s.O4$(),s.kcU(),s.TgZ(0,"button",23),s.NdJ("click",function(){return s.CHM(t),s.oxw().lastPage()}),s.O4$(),s.TgZ(1,"svg",7),s._UZ(2,"path",24),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),s.uIk("aria-label",t._intl.lastPageLabel)}}let _=(()=>{class t{constructor(){this.changes=new u.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,i)=>{if(0==i||0==e)return`0 of ${i}`;const n=t*e;return`${n+1} \u2013 ${n<(i=Math.max(i,0))?Math.min(n+e,i):n+e} of ${i}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const w={provide:_,deps:[[new s.FiY,new s.tp0,_]],useFactory:function(t){return t||new _}},A=new s.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS");class y{}const v=(0,o.Id)((0,o.dB)(y));let T=(()=>{class t extends v{constructor(t,e,i){if(super(),this._intl=t,this._changeDetectorRef=e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new s.vpe,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){const{pageSize:t,pageSizeOptions:e,hidePageSize:n,showFirstLastButtons:s}=i;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=n&&(this._hidePageSize=n),null!=s&&(this._showFirstLastButtons=s)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max((0,l.su)(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=(0,l.su)(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max((0,l.su)(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>(0,l.su)(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=(0,l.Ig)(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=(0,l.Ig)(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndext-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(_),s.Y36(s.sBO),s.Y36(void 0))},t.\u0275dir=s.lG2({type:t,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[s.qOj]}),t})(),C=(()=>{class t extends T{constructor(t,e,i){super(t,e,i),i&&null!=i.formFieldAppearance&&(this._formFieldAppearance=i.formFieldAppearance)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(_),s.Y36(s.sBO),s.Y36(A,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[s.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","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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.YNc(2,f,5,3,"div",2),s.TgZ(3,"div",3),s.TgZ(4,"div",4),s._uU(5),s.qZA(),s.YNc(6,m,3,5,"button",5),s.TgZ(7,"button",6),s.NdJ("click",function(){return e.previousPage()}),s.O4$(),s.TgZ(8,"svg",7),s._UZ(9,"path",8),s.qZA(),s.qZA(),s.kcU(),s.TgZ(10,"button",9),s.NdJ("click",function(){return e.nextPage()}),s.O4$(),s.TgZ(11,"svg",7),s._UZ(12,"path",10),s.qZA(),s.qZA(),s.YNc(13,b,3,5,"button",11),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.Q6J("ngIf",!e.hidePageSize),s.xp6(3),s.hij(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),s.xp6(1),s.Q6J("ngIf",e.showFirstLastButtons),s.xp6(1),s.Q6J("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),s.uIk("aria-label",e._intl.previousPageLabel),s.xp6(3),s.Q6J("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),s.uIk("aria-label",e._intl.nextPageLabel),s.xp6(3),s.Q6J("ngIf",e.showFirstLastButtons))},directives:[n.O5,r.lW,c.gM,h.KE,a.gD,n.sg,o.ey],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{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),t})(),E=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[w],imports:[[n.ez,r.ot,a.LD,c.AV,o.BQ]]}),t})()},45994:function(t,e,i){"use strict";i.d(e,{Cv:function(){return r}});var n=i(31572),s=i(61511),o=i(71522);i(19861),i(43490),i(87570),i(87254),i(43835);let r=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[s.ez,o.BQ],o.BQ]}),t})()},67806:function(t,e,i){"use strict";i.d(e,{Cq:function(){return w},$g:function(){return _}});var n=i(31572),s=i(61511),o=i(71522),r=i(19861),a=i(11353),c=i(43490);function l(t,e){if(1&t&&(n.O4$(),n._UZ(0,"circle",3)),2&t){const t=n.oxw();n.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),n.uIk("r",t._getCircleRadius())}}function u(t,e){if(1&t&&(n.O4$(),n._UZ(0,"circle",3)),2&t){const t=n.oxw();n.Udp("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),n.uIk("r",t._getCircleRadius())}}function h(t,e){if(1&t&&(n.O4$(),n._UZ(0,"circle",3)),2&t){const t=n.oxw();n.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),n.uIk("r",t._getCircleRadius())}}function d(t,e){if(1&t&&(n.O4$(),n._UZ(0,"circle",3)),2&t){const t=n.oxw();n.Udp("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),n.uIk("r",t._getCircleRadius())}}const p=".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:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[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-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation: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)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n";class g{constructor(t){this._elementRef=t}}const f=(0,o.pj)(g,"primary"),m=new n.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let b=(()=>{class t extends f{constructor(e,i,n,s,o){super(e),this._elementRef=e,this._document=n,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const r=t._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),r.has(n.head)||r.set(n.head,new Set([100])),this._fallbackAnimation=i.EDGE||i.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!o&&!o._forceAnimations,o&&(o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=(0,r.su)(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=(0,r.su)(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,(0,r.su)(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=(0,a.kV)(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,i=this._diameter,n=t._diameters;let s=n.get(e);if(!s||!s.has(i)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),t.textContent=this._getAnimationText(),e.appendChild(t),s||(s=new Set,n.set(e,s)),s.add(i)}}_getAnimationText(){const t=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*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(a.t4),n.Y36(s.K0,8),n.Y36(c.Qb,8),n.Y36(m))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(n.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),n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[n.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"svg",0),n.YNc(1,l,1,9,"circle",1),n.YNc(2,u,1,7,"circle",2),n.qZA()),2&t&&(n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.Q6J("ngSwitch","indeterminate"===e.mode),n.uIk("viewBox",e._getViewBox()),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngSwitchCase",!1))},directives:[s.RF,s.n9],styles:[p],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),_=(()=>{class t extends b{constructor(t,e,i,n,s){super(t,e,i,n,s),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(a.t4),n.Y36(s.K0,8),n.Y36(c.Qb,8),n.Y36(m))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[n.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"svg",0),n.YNc(1,h,1,9,"circle",1),n.YNc(2,d,1,7,"circle",2),n.qZA()),2&t&&(n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.Q6J("ngSwitch","indeterminate"===e.mode),n.uIk("viewBox",e._getViewBox()),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngSwitchCase",!1))},directives:[s.RF,s.n9],styles:[p],encapsulation:2,changeDetection:0}),t})(),w=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[o.BQ,s.ez],o.BQ]}),t})()},54810:function(t,e,i){"use strict";i.d(e,{U0:function(){return T},VQ:function(){return w},Fk:function(){return C}});var n=i(31572),s=i(71522),o=i(19861),r=i(16073),a=i(43490),c=i(24621),l=i(4230);const u=["input"],h=function(t){return{enterDuration:t}},d=["*"],p=new n.OlP("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}});let g=0;const f={provide:r.JU,useExisting:(0,n.Gpc)(()=>w),multi:!0};class m{constructor(t,e){this.source=t,this.value=e}}const b=new n.OlP("MatRadioGroup");let _=(()=>{class t{constructor(t){this._changeDetector=t,this._value=null,this._name="mat-radio-group-"+g++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new n.vpe}get name(){return this._name}set name(t){this._name=t,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(t){this._labelPosition="before"===t?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,o.Ig)(t),this._markRadiosForCheck()}get required(){return this._required}set required(t){this._required=(0,o.Ig)(t),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(t=>{t.name=this.name,t._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 m(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(t=>t._markForCheck())}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO))},t.\u0275dir=n.lG2({type:t,inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"}}),t})(),w=(()=>{class t extends _{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275dir=n.lG2({type:t,selectors:[["mat-radio-group"]],contentQueries:function(t,e,i){if(1&t&&n.Suo(i,T,5),2&t){let t;n.iGM(t=n.CRH())&&(e._radios=t)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[n._Bn([f,{provide:b,useExisting:t}]),n.qOj]}),t})();class A{constructor(t){this._elementRef=t}}const y=(0,s.Kr)((0,s.sb)(A));let v=(()=>{class t extends y{constructor(t,e,i,s,r,a,c,l){super(e),this._changeDetector=i,this._focusMonitor=s,this._radioDispatcher=r,this._providerOverride=c,this._uniqueId="mat-radio-"+ ++g,this.id=this._uniqueId,this.change=new n.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=t,this._noopAnimations="NoopAnimations"===a,l&&(this.tabIndex=(0,o.su)(l,0)),this._removeUniqueSelectionListener=r.listen((t,e)=>{t!==this.id&&e===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(t){const e=(0,o.Ig)(t);this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(t){this._labelPosition=t}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(t){this._setDisabled((0,o.Ig)(t))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(t){this._required=(0,o.Ig)(t)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(t){this._color=t}get inputId(){return`${this.id||this._uniqueId}-input`}focus(t,e){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}_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)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{!t&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new m(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(t){t.stopPropagation()}_onInputChange(t){t.stopPropagation();const e=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),e&&this.radioGroup._emitChangeEvent())}_setDisabled(t){this._disabled!==t&&(this._disabled=t,this._changeDetector.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(_),n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(c.tE),n.Y36(l.A8),n.Y36(String),n.Y36(void 0),n.Y36(String))},t.\u0275dir=n.lG2({type:t,viewQuery:function(t,e){if(1&t&&n.Gf(u,5),2&t){let t;n.iGM(t=n.CRH())&&(e._inputElement=t.first)}},inputs:{id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},features:[n.qOj]}),t})(),T=(()=>{class t extends v{constructor(t,e,i,n,s,o,r,a){super(t,e,i,n,s,o,r,a)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(b,8),n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(c.tE),n.Y36(l.A8),n.Y36(a.Qb,8),n.Y36(p,8),n.$8M("tabindex"))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,e){1&t&&n.NdJ("focus",function(){return e._inputElement.nativeElement.focus()}),2&t&&(n.uIk("tabindex",null)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),n.ekj("mat-radio-checked",e.checked)("mat-radio-disabled",e.disabled)("_mat-animation-noopable",e._noopAnimations)("mat-primary","primary"===e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[n.qOj],ngContentSelectors:d,decls:13,vars:20,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","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","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(t,e){if(1&t&&(n.F$t(),n.TgZ(0,"label",0,1),n.TgZ(2,"span",2),n._UZ(3,"span",3),n._UZ(4,"span",4),n.TgZ(5,"input",5,6),n.NdJ("change",function(t){return e._onInputChange(t)})("click",function(t){return e._onInputClick(t)}),n.qZA(),n.TgZ(7,"span",7),n._UZ(8,"span",8),n.qZA(),n.qZA(),n.TgZ(9,"span",9),n.TgZ(10,"span",10),n._uU(11,"\xa0"),n.qZA(),n.Hsn(12),n.qZA(),n.qZA()),2&t){const t=n.MAs(1);n.uIk("for",e.inputId),n.xp6(5),n.Q6J("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex)("required",e.required),n.uIk("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),n.xp6(2),n.Q6J("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",n.VKq(18,h,e._noopAnimations?0:150)),n.xp6(2),n.ekj("mat-radio-label-before","before"==e.labelPosition)}},directives:[s.wG],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-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;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-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{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),t})(),C=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[s.si,s.BQ],s.BQ]}),t})()},4786:function(t,e,i){"use strict";i.d(e,{gD:function(){return Y},LD:function(){return K},$L:function(){return G}});var n=i(2522),s=i(61511),o=i(31572),r=i(71522),a=i(66283),c=i(4253),l=i(24621),u=i(19861),h=i(4230),d=i(75842),p=i(55959),g=i(31450),f=i(31906),m=i(56238),b=i(44689),_=i(90611),w=i(43835),A=i(79996),y=i(98720),v=i(25416),T=i(10709),C=i(22526),E=i(16073);const S=["trigger"],k=["panel"];function I(t,e){if(1&t&&(o.TgZ(0,"span",8),o._uU(1),o.qZA()),2&t){const t=o.oxw();o.xp6(1),o.Oqu(t.placeholder)}}function x(t,e){if(1&t&&(o.TgZ(0,"span",12),o._uU(1),o.qZA()),2&t){const t=o.oxw(2);o.xp6(1),o.Oqu(t.triggerValue)}}function R(t,e){1&t&&o.Hsn(0,0,["*ngSwitchCase","true"])}function O(t,e){if(1&t&&(o.TgZ(0,"span",9),o.YNc(1,x,2,1,"span",10),o.YNc(2,R,1,0,"ng-content",11),o.qZA()),2&t){const t=o.oxw();o.Q6J("ngSwitch",!!t.customTrigger),o.xp6(2),o.Q6J("ngSwitchCase",!0)}}function P(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",13),o.TgZ(1,"div",14,15),o.NdJ("@transformPanel.done",function(e){return o.CHM(t),o.oxw()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return o.CHM(t),o.oxw()._handleKeydown(e)}),o.Hsn(3,1),o.qZA(),o.qZA()}if(2&t){const t=o.oxw();o.Q6J("@transformPanelWrap",void 0),o.xp6(1),o.Gre("mat-select-panel ",t._getPanelTheme(),""),o.Udp("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),o.Q6J("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),o.uIk("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const D=[[["mat-select-trigger"]],"*"],M=["mat-select-trigger","*"],L={transformPanelWrap:(0,T.X$)("transformPanelWrap",[(0,T.eR)("* => void",(0,T.IO)("@transformPanel",[(0,T.pV)()],{optional:!0}))]),transformPanel:(0,T.X$)("transformPanel",[(0,T.SB)("void",(0,T.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,T.SB)("showing",(0,T.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,T.SB)("showing-multiple",(0,T.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,T.eR)("void => *",(0,T.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,T.eR)("* => void",(0,T.jt)("100ms 25ms linear",(0,T.oB)({opacity:0})))])};let N=0;const z=new o.OlP("mat-select-scroll-strategy"),Z=new o.OlP("MAT_SELECT_CONFIG"),B={provide:z,deps:[n.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class F{constructor(t,e){this.source=t,this.value=e}}class U{constructor(t,e,i,n,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=s}}const q=(0,r.Kr)((0,r.sb)((0,r.Id)((0,r.FD)(U)))),H=new o.OlP("MatSelectTrigger");let G=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-select-trigger"]],features:[o._Bn([{provide:H,useExisting:t}])]}),t})(),j=(()=>{class t extends q{constructor(t,e,i,n,s,r,a,c,l,u,h,d,y,v){var T,C,E;super(s,n,a,c,u),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=i,this._dir=r,this._parentFormField=l,this.ngControl=u,this._liveAnnouncer=y,this._defaultOptions=v,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+N++,this._triggerAriaLabelledBy=null,this._destroy=new p.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+N++,this._panelDoneAnimatingStream=new p.xQ,this._overlayPanelClass=(null===(T=this._defaultOptions)||void 0===T?void 0:T.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(E=null===(C=this._defaultOptions)||void 0===C?void 0:C.disableOptionCentering)&&void 0!==E&&E,this.ariaLabel="",this.optionSelectionChanges=(0,g.P)(()=>{const t=this.options;return t?t.changes.pipe((0,m.O)(t),(0,b.w)(()=>(0,f.T)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe((0,_.q)(1),(0,b.w)(()=>this.optionSelectionChanges))}),this.openedChange=new o.vpe,this._openedStream=this.openedChange.pipe((0,w.h)(t=>t),(0,A.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,w.h)(t=>!t),(0,A.U)(()=>{})),this.selectionChange=new o.vpe,this.valueChange=new o.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==v?void 0:v.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=v.typeaheadDebounceInterval),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=(0,u.Ig)(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=(0,u.Ig)(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=(0,u.Ig)(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=(0,u.su)(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new h.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,y.x)(),(0,v.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,v.R)(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe((0,m.O)(null),(0,v.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.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(t){this.value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,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 t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,i=e===d.JH||e===d.LH||e===d.oh||e===d.SV,n=e===d.K5||e===d.L_,s=this._keyManager;if(!s.isTyping()&&n&&!(0,d.Vb)(t)||(this.multiple||t.altKey)&&i)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;s.onKeydown(t);const i=this.selected;i&&e!==i&&this._liveAnnouncer.announce(i.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,i=t.keyCode,n=i===d.JH||i===d.LH,s=e.isTyping();if(n&&t.altKey)t.preventDefault(),this.close();else if(s||i!==d.K5&&i!==d.L_||!e.activeItem||(0,d.Vb)(t))if(!s&&this._multiple&&i===d.A&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const i=e.activeItemIndex;e.onKeydown(t),this._multiple&&n&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==i&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.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,_.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._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(t=>this._selectValue(t)),this._sortValues();else{const e=this._selectValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{if(this._selectionModel.isSelected(e))return!1;try{return null!=e.value&&this._compareWith(e.value,t)}catch(i){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new l.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,v.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,v.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 t=(0,f.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,v.R)(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,f.T)(...this.options.map(t=>t._stateChanges)).pipe((0,v.R)(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(t,e){const i=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(i!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),i!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,i)=>this.sortComparator?this.sortComparator(e,i,t):t.indexOf(e)-t.indexOf(i)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();let i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(c.rL),o.Y36(o.sBO),o.Y36(o.R0b),o.Y36(r.rD),o.Y36(o.SBq),o.Y36(C.Is,8),o.Y36(E.F,8),o.Y36(E.sg,8),o.Y36(a.G_,8),o.Y36(E.a5,10),o.$8M("tabindex"),o.Y36(z),o.Y36(l.Kd),o.Y36(Z,8))},t.\u0275dir=o.lG2({type:t,viewQuery:function(t,e){if(1&t&&(o.Gf(S,5),o.Gf(k,5),o.Gf(n.pI,5)),2&t){let t;o.iGM(t=o.CRH())&&(e.trigger=t.first),o.iGM(t=o.CRH())&&(e.panel=t.first),o.iGM(t=o.CRH())&&(e._overlayDir=t.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[o.qOj,o.TTD]}),t})(),Y=(()=>{class t extends j{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(t,e,i){const n=this._getItemHeight();return Math.min(Math.max(0,n*t-e+n/2),i)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,v.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,_.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(t){const e=(0,r.CB)(t,this.options,this.optionGroups),i=this._getItemHeight();this.panel.nativeElement.scrollTop=(0,r.jH)((t+e)*i,i,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new F(this,t)}_calculateOverlayOffsetX(){const t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),i=this._isRtl(),n=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}i||(s*=-1);const o=0-(t.left+s-(i?n:0)),r=t.right+s-e.width+(i?0:n);o>0?s+=o+8:r>0&&(s-=r+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,i){const n=this._getItemHeight(),s=(n-this._triggerRect.height)/2,o=Math.floor(256/n);let r;return this.disableOptionCentering?0:(r=0===this._scrollTop?t*n:this._scrollTop===i?(t-(this._getItemCount()-o))*n+(n-(this._getItemCount()*n-256)%n):e-n/2,Math.round(-1*r-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,s=i.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),r=Math.min(this._getItemCount()*e,256)-o-this._triggerRect.height;r>s?this._adjustPanelUp(r,s):o>n?this._adjustPanelDown(o,n,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const i=Math.round(t-e);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,i){const n=Math.round(t-e);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),i=Math.min(e*t,256),n=e*t-i;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=(0,r.CB)(s,this.options,this.optionGroups);const o=i/2;this._scrollTop=this._calculateOverlayScroll(s,o,n),this._offsetY=this._calculateOverlayOffsetY(s,o,n),this._checkOverlayWithinViewport(n)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,i){if(1&t&&(o.Suo(i,H,5),o.Suo(i,r.ey,5),o.Suo(i,r.K7,5)),2&t){let t;o.iGM(t=o.CRH())&&(e.customTrigger=t.first),o.iGM(t=o.CRH())&&(e.options=t),o.iGM(t=o.CRH())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&o.NdJ("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(o.uIk("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),o.ekj("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[o._Bn([{provide:a.Eo,useExisting:t},{provide:r.HF,useExisting:t}]),o.qOj],ngContentSelectors:M,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(t,e){if(1&t&&(o.F$t(D),o.TgZ(0,"div",0,1),o.NdJ("click",function(){return e.toggle()}),o.TgZ(3,"div",2),o.YNc(4,I,2,1,"span",3),o.YNc(5,O,3,2,"span",4),o.qZA(),o.TgZ(6,"div",5),o._UZ(7,"div",6),o.qZA(),o.qZA(),o.YNc(8,P,4,14,"ng-template",7),o.NdJ("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=o.MAs(1);o.uIk("aria-owns",e.panelOpen?e.id+"-panel":null),o.xp6(3),o.Q6J("ngSwitch",e.empty),o.uIk("id",e._valueId),o.xp6(1),o.Q6J("ngSwitchCase",!0),o.xp6(1),o.Q6J("ngSwitchCase",!1),o.xp6(3),o.Q6J("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[n.xu,s.RF,s.n9,n.pI,s.ED,s.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;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{display:table-cell;vertical-align:middle}.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 transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.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:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[L.transformPanelWrap,L.transformPanel]},changeDetection:0}),t})(),K=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[B],imports:[[s.ez,n.U8,r.Ng,r.BQ],c.ZD,a.lN,r.Ng,r.BQ]}),t})()},25122:function(t,e,i){"use strict";i.d(e,{JX:function(){return q},TM:function(){return H},Rh:function(){return U},SJ:function(){return G}});var n=i(11353),s=i(4253),o=i(61511),r=i(31572),a=i(71522),c=i(19861),l=i(75842),u=i(55959),h=i(87254),d=i(31906),p=i(43835),g=i(79996),f=i(88414),m=i(25416),b=i(98720),_=i(90611),w=i(56238),A=i(47701),y=i(10709),v=i(43490),T=i(24621),C=i(22526);const E=["*"];function S(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",2),r.NdJ("click",function(){return r.CHM(t),r.oxw()._onBackdropClicked()}),r.qZA()}if(2&t){const t=r.oxw();r.ekj("mat-drawer-shown",t._isShowingBackdrop())}}function k(t,e){1&t&&(r.TgZ(0,"mat-drawer-content"),r.Hsn(1,2),r.qZA())}const I=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],x=["mat-drawer","mat-drawer-content","*"];function R(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",2),r.NdJ("click",function(){return r.CHM(t),r.oxw()._onBackdropClicked()}),r.qZA()}if(2&t){const t=r.oxw();r.ekj("mat-drawer-shown",t._isShowingBackdrop())}}function O(t,e){1&t&&(r.TgZ(0,"mat-sidenav-content",3),r.Hsn(1,2),r.qZA())}const P=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],D=["mat-sidenav","mat-sidenav-content","*"],M=".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-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",L={transformDrawer:(0,y.X$)("transform",[(0,y.SB)("open, open-instant",(0,y.oB)({transform:"none",visibility:"visible"})),(0,y.SB)("void",(0,y.oB)({"box-shadow":"none",visibility:"hidden"})),(0,y.eR)("void => open-instant",(0,y.jt)("0ms")),(0,y.eR)("void <=> open, open-instant => void",(0,y.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},N=new r.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),z=new r.OlP("MAT_DRAWER_CONTAINER");let Z=(()=>{class t extends s.PQ{constructor(t,e,i,n,s){super(i,n,s),this._changeDetectorRef=t,this._container=e}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.sBO),r.Y36((0,r.Gpc)(()=>F)),r.Y36(r.SBq),r.Y36(s.mF),r.Y36(r.R0b))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&r.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[r.qOj],ngContentSelectors:E,decls:1,vars:0,template:function(t,e){1&t&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),t})(),B=(()=>{class t{constructor(t,e,i,n,s,o,a){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=i,this._platform=n,this._ngZone=s,this._doc=o,this._container=a,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new u.xQ,this._animationEnd=new u.xQ,this._animationState="void",this.openedChange=new r.vpe(!0),this._openedStream=this.openedChange.pipe((0,p.h)(t=>t),(0,g.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,p.h)(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),(0,f.h)(void 0)),this._closedStream=this.openedChange.pipe((0,p.h)(t=>!t),(0,g.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,p.h)(t=>t.fromState!==t.toState&&"void"===t.toState),(0,f.h)(void 0)),this._destroyed=new u.xQ,this.onPositionChanged=new r.vpe,this._modeChanged=new u.xQ,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{(0,h.R)(this._elementRef.nativeElement,"keydown").pipe((0,p.h)(t=>t.keyCode===l.hY&&!this.disableClose&&!(0,l.Vb)(t)),(0,m.R)(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe((0,b.x)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{const{fromState:e,toState:i}=t;(0===i.indexOf("open")&&"void"===e||"void"===i&&0===e.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=(0,c.Ig)(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=(0,c.Ig)(t)}get opened(){return this._opened}set opened(t){this.toggle((0,c.Ig)(t))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(t=>{t||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}_isFocusWithinDrawer(){var t;const e=null===(t=this._doc)||void 0===t?void 0:t.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0)}toggle(t=!this.opened,e){return this._setOpen(t,!t&&this._isFocusWithinDrawer(),e)}_setOpen(t,e,i="program"){return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=i):(this._animationState="void",e&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(t=>{this.openedChange.pipe((0,_.q)(1)).subscribe(e=>t(e?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(t){this._animationStarted.next(t)}_animationDoneListener(t){this._animationEnd.next(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(T.qV),r.Y36(T.tE),r.Y36(n.t4),r.Y36(r.R0b),r.Y36(o.K0,8),r.Y36(z,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&r.WFA("@transform.start",function(t){return e._animationStartListener(t)})("@transform.done",function(t){return e._animationDoneListener(t)}),2&t&&(r.uIk("align",null),r.d8E("@transform",e._animationState),r.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.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:E,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"div",0),r.Hsn(1),r.qZA())},directives:[s.PQ],encapsulation:2,data:{animation:[L.transformDrawer]},changeDetection:0}),t})(),F=(()=>{class t{constructor(t,e,i,n,s,o=!1,a){this._dir=t,this._element=e,this._ngZone=i,this._changeDetectorRef=n,this._animationMode=a,this._drawers=new r.n_E,this.backdropClick=new r.vpe,this._destroyed=new u.xQ,this._doCheckSubject=new u.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new u.xQ,t&&t.change.pipe((0,m.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),s.change().pipe((0,m.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=o}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=(0,c.Ig)(t)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(t){this._backdropOverride=null==t?null:(0,c.Ig)(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,w.O)(this._allDrawers),(0,m.R)(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,w.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,A.b)(10),(0,m.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(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,e=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){const i=this._left._getWidth();t+=i,e-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)e+=this._right._getWidth();else if("push"==this._right.mode){const i=this._right._getWidth();e+=i,t-=i}t=t||null,e=e||null,t===this._contentMargins.left&&e===this._contentMargins.right||(this._contentMargins={left:t,right:e},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe((0,p.h)(t=>t.fromState!==t.toState),(0,m.R)(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"!==t.mode&&t.openedChange.pipe((0,m.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe((0,m.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,_.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe((0,m.R)((0,d.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const e=this._element.nativeElement.classList,i="mat-drawer-container-has-open";t?e.add(i):e.remove(i)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?this._end=t:this._start=t}),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(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(t){return"side"!==t.mode||!!this._backdropOverride}_isDrawerOpen(t){return null!=t&&t.opened}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(C.Is,8),r.Y36(r.SBq),r.Y36(r.R0b),r.Y36(r.sBO),r.Y36(s.rL),r.Y36(N),r.Y36(v.Qb,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,i){if(1&t&&(r.Suo(i,Z,5),r.Suo(i,B,5)),2&t){let t;r.iGM(t=r.CRH())&&(e._content=t.first),r.iGM(t=r.CRH())&&(e._allDrawers=t)}},viewQuery:function(t,e){if(1&t&&r.Gf(Z,5),2&t){let t;r.iGM(t=r.CRH())&&(e._userContent=t.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&r.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[r._Bn([{provide:z,useExisting:t}])],ngContentSelectors:x,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(t,e){1&t&&(r.F$t(I),r.YNc(0,S,1,2,"div",0),r.Hsn(1),r.Hsn(2,1),r.YNc(3,k,2,0,"mat-drawer-content",1)),2&t&&(r.Q6J("ngIf",e.hasBackdrop),r.xp6(3),r.Q6J("ngIf",!e._content))},directives:[o.O5,Z],styles:[M],encapsulation:2,changeDetection:0}),t})(),U=(()=>{class t extends Z{constructor(t,e,i,n,s){super(t,e,i,n,s)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.sBO),r.Y36((0,r.Gpc)(()=>H)),r.Y36(r.SBq),r.Y36(s.mF),r.Y36(r.R0b))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&r.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[r.qOj],ngContentSelectors:E,decls:1,vars:0,template:function(t,e){1&t&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),t})(),q=(()=>{class t extends B{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=(0,c.Ig)(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=(0,c.su)(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=(0,c.su)(t)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=r.n5z(t)))(i||t)}}(),t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(r.uIk("align",null),r.Udp("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),r.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[r.qOj],ngContentSelectors:E,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"div",0),r.Hsn(1),r.qZA())},directives:[s.PQ],encapsulation:2,data:{animation:[L.transformDrawer]},changeDetection:0}),t})(),H=(()=>{class t extends F{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=r.n5z(t)))(i||t)}}(),t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,i){if(1&t&&(r.Suo(i,U,5),r.Suo(i,q,5)),2&t){let t;r.iGM(t=r.CRH())&&(e._content=t.first),r.iGM(t=r.CRH())&&(e._allDrawers=t)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&r.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[r._Bn([{provide:z,useExisting:t}]),r.qOj],ngContentSelectors:D,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(r.F$t(P),r.YNc(0,R,1,2,"div",0),r.Hsn(1),r.Hsn(2,1),r.YNc(3,O,2,0,"mat-sidenav-content",1)),2&t&&(r.Q6J("ngIf",e.hasBackdrop),r.xp6(3),r.Q6J("ngIf",!e._content))},directives:[o.O5,U,s.PQ],styles:[M],encapsulation:2,changeDetection:0}),t})(),G=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[o.ez,a.BQ,n.ud,s.ZD],s.ZD,a.BQ]}),t})()},27521:function(t,e,i){"use strict";i.d(e,{Rr:function(){return y},rP:function(){return T}});var n=i(36337),s=i(31572),o=i(71522),r=i(19861),a=i(16073),c=i(43490),l=i(24621);const u=["thumbContainer"],h=["toggleBar"],d=["input"],p=function(t){return{enterDuration:t}},g=["*"],f=new s.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let m=0;const b={provide:a.JU,useExisting:(0,s.Gpc)(()=>y),multi:!0};class _{constructor(t,e){this.source=t,this.checked=e}}class w{constructor(t){this._elementRef=t}}const A=(0,o.sb)((0,o.pj)((0,o.Kr)((0,o.Id)(w))));let y=(()=>{class t extends A{constructor(t,e,i,n,o,r){super(t),this._focusMonitor=e,this._changeDetectorRef=i,this.defaults=o,this._onChange=t=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++m,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new s.vpe,this.toggleChange=new s.vpe,this.tabIndex=parseInt(n)||0,this.color=this.defaultColor=o.color||"accent",this._noopAnimations="NoopAnimations"===r}get required(){return this._required}set required(t){this._required=(0,r.Ig)(t)}get checked(){return this._checked}set checked(t){this._checked=(0,r.Ig)(t),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{"keyboard"===t||"program"===t?this._inputElement.nativeElement.focus():t||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(t){t.stopPropagation()}writeValue(t){this.checked=!!t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck()}focus(t,e){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new _(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(l.tE),s.Y36(s.sBO),s.$8M("tabindex"),s.Y36(f),s.Y36(c.Qb,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){if(1&t&&(s.Gf(u,5),s.Gf(h,5),s.Gf(d,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._thumbEl=t.first),s.iGM(t=s.CRH())&&(e._thumbBarEl=t.first),s.iGM(t=s.CRH())&&(e._inputElement=t.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Ikx("id",e.id),s.uIk("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),s.ekj("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable",e._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[s._Bn([b]),s.qOj],ngContentSelectors:g,decls:16,vars:19,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["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"],["thumbContainer",""],[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(t,e){if(1&t&&(s.F$t(),s.TgZ(0,"label",0,1),s.TgZ(2,"div",2,3),s.TgZ(4,"input",4,5),s.NdJ("change",function(t){return e._onChangeEvent(t)})("click",function(t){return e._onInputClick(t)}),s.qZA(),s.TgZ(6,"div",6,7),s._UZ(8,"div",8),s.TgZ(9,"div",9),s._UZ(10,"div",10),s.qZA(),s.qZA(),s.qZA(),s.TgZ(11,"span",11,12),s.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),s.TgZ(13,"span",13),s._uU(14,"\xa0"),s.qZA(),s.Hsn(15),s.qZA(),s.qZA()),2&t){const t=s.MAs(1),i=s.MAs(12);s.uIk("for",e.inputId),s.xp6(2),s.ekj("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),s.xp6(2),s.Q6J("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),s.uIk("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),s.xp6(5),s.Q6J("matRippleTrigger",t)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",s.VKq(17,p,e._noopAnimations?0:150))}},directives:[o.wG,n.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:transparent}.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{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%}.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}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),t})(),v=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),T=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[v,o.si,o.BQ,n.Q8],v,o.BQ]}),t})()},71403:function(t,e,i){"use strict";i.d(e,{ZX:function(){return l}});var n=i(2522),s=i(26899),o=i(61511),r=i(31572),a=i(71522),c=i(15980);i(55959),i(90611),i(10709),i(11353);let l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[n.U8,s.eL,o.ez,c.ot,a.BQ],a.BQ]}),t})()},58623:function(t,e,i){"use strict";i.d(e,{YE:function(){return _},nU:function(){return E},JX:function(){return S}});var n=i(31572),s=i(19861),o=i(71522),r=i(75842),a=i(55959),c=i(31906),l=i(10709),u=i(61511),h=i(24621);const d=["mat-sort-header",""];function p(t,e){if(1&t){const t=n.EpF();n.TgZ(0,"div",3),n.NdJ("@arrowPosition.start",function(){return n.CHM(t),n.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return n.CHM(t),n.oxw()._disableViewStateAnimation=!1}),n._UZ(1,"div",4),n.TgZ(2,"div",5),n._UZ(3,"div",6),n._UZ(4,"div",7),n._UZ(5,"div",8),n.qZA(),n.qZA()}if(2&t){const t=n.oxw();n.Q6J("@arrowOpacity",t._getArrowViewState())("@arrowPosition",t._getArrowViewState())("@allowChildren",t._getArrowDirectionState()),n.xp6(2),n.Q6J("@indicator",t._getArrowDirectionState()),n.xp6(1),n.Q6J("@leftPointer",t._getArrowDirectionState()),n.xp6(1),n.Q6J("@rightPointer",t._getArrowDirectionState())}}const g=["*"],f=new n.OlP("MAT_SORT_DEFAULT_OPTIONS");class m{}const b=(0,o.dB)((0,o.Id)(m));let _=(()=>{class t extends b{constructor(t){super(),this._defaultOptions=t,this.sortables=new Map,this._stateChanges=new a.xQ,this.start="asc",this._direction="",this.sortChange=new n.vpe}get direction(){return this._direction}set direction(t){this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=(0,s.Ig)(t)}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){var e,i,n;if(!t)return"";const s=null!==(i=null!==(e=null==t?void 0:t.disableClear)&&void 0!==e?e:this.disableClear)&&void 0!==i?i:!!(null===(n=this._defaultOptions)||void 0===n?void 0:n.disableClear);let o=function(t,e){let i=["asc","desc"];return"desc"==t&&i.reverse(),e||i.push(""),i}(t.start||this.start,s),r=o.indexOf(this.direction)+1;return r>=o.length&&(r=0),o[r]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(f,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[n.qOj,n.TTD]}),t})();const w=o.mZ.ENTERING+" "+o.yN.STANDARD_CURVE,A={indicator:(0,l.X$)("indicator",[(0,l.SB)("active-asc, asc",(0,l.oB)({transform:"translateY(0px)"})),(0,l.SB)("active-desc, desc",(0,l.oB)({transform:"translateY(10px)"})),(0,l.eR)("active-asc <=> active-desc",(0,l.jt)(w))]),leftPointer:(0,l.X$)("leftPointer",[(0,l.SB)("active-asc, asc",(0,l.oB)({transform:"rotate(-45deg)"})),(0,l.SB)("active-desc, desc",(0,l.oB)({transform:"rotate(45deg)"})),(0,l.eR)("active-asc <=> active-desc",(0,l.jt)(w))]),rightPointer:(0,l.X$)("rightPointer",[(0,l.SB)("active-asc, asc",(0,l.oB)({transform:"rotate(45deg)"})),(0,l.SB)("active-desc, desc",(0,l.oB)({transform:"rotate(-45deg)"})),(0,l.eR)("active-asc <=> active-desc",(0,l.jt)(w))]),arrowOpacity:(0,l.X$)("arrowOpacity",[(0,l.SB)("desc-to-active, asc-to-active, active",(0,l.oB)({opacity:1})),(0,l.SB)("desc-to-hint, asc-to-hint, hint",(0,l.oB)({opacity:.54})),(0,l.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,l.oB)({opacity:0})),(0,l.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,l.jt)("0ms")),(0,l.eR)("* <=> *",(0,l.jt)(w))]),arrowPosition:(0,l.X$)("arrowPosition",[(0,l.eR)("* => desc-to-hint, * => desc-to-active",(0,l.jt)(w,(0,l.F4)([(0,l.oB)({transform:"translateY(-25%)"}),(0,l.oB)({transform:"translateY(0)"})]))),(0,l.eR)("* => hint-to-desc, * => active-to-desc",(0,l.jt)(w,(0,l.F4)([(0,l.oB)({transform:"translateY(0)"}),(0,l.oB)({transform:"translateY(25%)"})]))),(0,l.eR)("* => asc-to-hint, * => asc-to-active",(0,l.jt)(w,(0,l.F4)([(0,l.oB)({transform:"translateY(25%)"}),(0,l.oB)({transform:"translateY(0)"})]))),(0,l.eR)("* => hint-to-asc, * => active-to-asc",(0,l.jt)(w,(0,l.F4)([(0,l.oB)({transform:"translateY(0)"}),(0,l.oB)({transform:"translateY(-25%)"})]))),(0,l.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,l.oB)({transform:"translateY(0)"})),(0,l.SB)("hint-to-desc, active-to-desc, desc",(0,l.oB)({transform:"translateY(-25%)"})),(0,l.SB)("hint-to-asc, active-to-asc, asc",(0,l.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,l.X$)("allowChildren",[(0,l.eR)("* <=> *",[(0,l.IO)("@*",(0,l.pV)(),{optional:!0})])])};let y=(()=>{class t{constructor(){this.changes=new a.xQ}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const v={provide:y,deps:[[new n.FiY,new n.tp0,y]],useFactory:function(t){return t||new y}};class T{}const C=(0,o.Id)(T);let E=(()=>{class t extends C{constructor(t,e,i,n,s,o){super(),this._intl=t,this._changeDetectorRef=e,this._sort=i,this._columnDef=n,this._focusMonitor=s,this._elementRef=o,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._handleStateChanges()}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=(0,s.Ig)(t)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{const e=!!t;e!==this._showIndicatorHint&&(this._setIndicatorHintVisible(e),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t||{},this._disableViewStateAnimation&&(this._viewState={toState:t.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(t){this._isDisabled()||t.keyCode!==r.L_&&t.keyCode!==r.K5||(t.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 t=this._viewState.fromState;return(t?`${t}-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()}_handleStateChanges(){this._rerenderSubscription=(0,c.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 t.\u0275fac=function(e){return new(e||t)(n.Y36(y),n.Y36(n.sBO),n.Y36(_,8),n.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),n.Y36(h.tE),n.Y36(n.SBq))},t.\u0275cmp=n.Xpm({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&n.NdJ("click",function(){return e._handleClick()})("keydown",function(t){return e._handleKeydown(t)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&t&&(n.uIk("aria-sort",e._getAriaSortAttribute()),n.ekj("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[n.qOj],attrs:d,ngContentSelectors:g,decls:4,vars:6,consts:[["role","button",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(t,e){1&t&&(n.F$t(),n.TgZ(0,"div",0),n.TgZ(1,"div",1),n.Hsn(2),n.qZA(),n.YNc(3,p,6,6,"div",2),n.qZA()),2&t&&(n.ekj("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),n.uIk("tabindex",e._isDisabled()?null:0),n.xp6(3),n.Q6J("ngIf",e._renderArrow()))},directives:[u.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-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}\n"],encapsulation:2,data:{animation:[A.indicator,A.leftPointer,A.rightPointer,A.arrowOpacity,A.arrowPosition,A.allowChildren]},changeDetection:0}),t})(),S=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[v],imports:[[u.ez,o.BQ]]}),t})()},70663:function(t,e,i){"use strict";i.d(e,{C0:function(){return rt},BY:function(){return ot},VY:function(){return Q},Vq:function(){return ut},T5:function(){return dt},fd:function(){return ht}});var n=i(26899),s=i(24621),o=i(22526),r=i(19861),a=i(75842),c=i(61511),l=i(31572),u=i(55959),h=i(40878),d=i(56238),p=i(25416);function g(t,e){1&t&&l.Hsn(0)}const f=["*"];let m=(()=>{class t{constructor(t){this._elementRef=t}focus(){this._elementRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(l.SBq))},t.\u0275dir=l.lG2({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),t})(),b=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(l.Rgc))},t.\u0275dir=l.lG2({type:t,selectors:[["","cdkStepLabel",""]]}),t})(),_=0;const w=new l.OlP("STEPPER_GLOBAL_OPTIONS");let A=(()=>{class t{constructor(t,e){this._stepper=t,this.interacted=!1,this.interactedStream=new l.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=e||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType,this._showError=!!this._stepperOptions.showError}get editable(){return this._editable}set editable(t){this._editable=(0,r.Ig)(t)}get optional(){return this._optional}set optional(t){this._optional=(0,r.Ig)(t)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(t){this._completedOverride=(0,r.Ig)(t)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(t){this._customError=(0,r.Ig)(t)}_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))}}return t.\u0275fac=function(e){return new(e||t)(l.Y36((0,l.Gpc)(()=>y)),l.Y36(w,8))},t.\u0275cmp=l.Xpm({type:t,selectors:[["cdk-step"]],contentQueries:function(t,e,i){if(1&t&&l.Suo(i,b,5),2&t){let t;l.iGM(t=l.CRH())&&(e.stepLabel=t.first)}},viewQuery:function(t,e){if(1&t&&l.Gf(l.Rgc,7),2&t){let t;l.iGM(t=l.CRH())&&(e.content=t.first)}},inputs:{editable:"editable",optional:"optional",completed:"completed",hasError:"hasError",stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[l.TTD],ngContentSelectors:f,decls:1,vars:0,template:function(t,e){1&t&&(l.F$t(),l.YNc(0,g,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t})(),y=(()=>{class t{constructor(t,e,i,n){this._dir=t,this._changeDetectorRef=e,this._elementRef=i,this._destroyed=new u.xQ,this.steps=new l.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new l.vpe,this._orientation="horizontal",this._groupId=_++,this._document=n}get linear(){return this._linear}set linear(t){this._linear=(0,r.Ig)(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){var e;const i=(0,r.su)(t);this.steps&&this._steps?(this._isValidIndex(t),null===(e=this.selected)||void 0===e||e._markAsInteracted(),this._selectedIndex!==i&&!this._anyControlsInvalidOrPending(i)&&(i>=this._selectedIndex||this.steps.toArray()[i].editable)&&this._updateSelectedItemIndex(t)):this._selectedIndex=i}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(t){this.selectedIndex=t&&this.steps?this.steps.toArray().indexOf(t):-1}get orientation(){return this._orientation}set orientation(t){this._orientation=t,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===t)}ngAfterContentInit(){this._steps.changes.pipe((0,d.O)(this._steps),(0,p.R)(this._destroyed)).subscribe(t=>{this.steps.reset(t.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._keyManager=new s.Em(this._stepHeader).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,h.of)()).pipe((0,d.O)(this._layoutDirection()),(0,p.R)(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),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._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(t=>t.reset()),this._stateChanged()}_getStepLabelId(t){return`cdk-step-label-${this._groupId}-${t}`}_getStepContentId(t){return`cdk-step-content-${this._groupId}-${t}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(t){const e=t-this._selectedIndex;return e<0?"rtl"===this._layoutDirection()?"next":"previous":e>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(t,e="number"){const i=this.steps.toArray()[t],n=this._isCurrentStep(t);return i._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(i,n):this._getGuidelineLogic(i,n,e)}_getDefaultIndicatorLogic(t,e){return t._showError&&t.hasError&&!e?"error":!t.completed||e?"number":t.editable?"edit":"done"}_getGuidelineLogic(t,e,i="number"){return t._showError&&t.hasError&&!e?"error":t.completed&&!e?"done":t.completed&&e?i:t.editable&&e?"edit":i}_isCurrentStep(t){return this._selectedIndex===t}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(t){const e=this.steps.toArray();this.selectionChange.emit({selectedIndex:t,previouslySelectedIndex:this._selectedIndex,selectedStep:e[t],previouslySelectedStep:e[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(t):this._keyManager.updateActiveItem(t),this._selectedIndex=t,this._stateChanged()}_onKeydown(t){const e=(0,a.Vb)(t),i=t.keyCode,n=this._keyManager;null==n.activeItemIndex||e||i!==a.L_&&i!==a.K5?n.onKeydown(t):(this.selectedIndex=n.activeItemIndex,t.preventDefault())}_anyControlsInvalidOrPending(t){return!!(this._linear&&t>=0)&&this.steps.toArray().slice(0,t).some(t=>{const e=t.stepControl;return(e?e.invalid||e.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}_isValidIndex(t){return t>-1&&(!this.steps||t{class t{constructor(t){this._stepper=t,this.type="button"}_handleClick(){this._stepper.previous()}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(y))},t.\u0275dir=l.lG2({type:t,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(t,e){1&t&&l.NdJ("click",function(){return e._handleClick()}),2&t&&l.Ikx("type",e.type)},inputs:{type:"type"}}),t})(),T=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({imports:[[o.vT]]}),t})();var C=i(15980),E=i(71522),S=i(43691),k=i(87570),I=i(44689),x=i(79996),R=i(98720),O=i(10709);function P(t,e){if(1&t&&l.GkF(0,8),2&t){const t=l.oxw();l.Q6J("ngTemplateOutlet",t.iconOverrides[t.state])("ngTemplateOutletContext",t._getIconContext())}}function D(t,e){if(1&t&&(l.TgZ(0,"span"),l._uU(1),l.qZA()),2&t){const t=l.oxw(2);l.xp6(1),l.Oqu(t._getDefaultTextForState(t.state))}}function M(t,e){if(1&t&&(l.TgZ(0,"mat-icon"),l._uU(1),l.qZA()),2&t){const t=l.oxw(2);l.xp6(1),l.Oqu(t._getDefaultTextForState(t.state))}}function L(t,e){if(1&t&&(l.ynx(0,9),l.YNc(1,D,2,1,"span",10),l.YNc(2,M,2,1,"mat-icon",11),l.BQk()),2&t){const t=l.oxw();l.Q6J("ngSwitch",t.state),l.xp6(1),l.Q6J("ngSwitchCase","number")}}function N(t,e){if(1&t&&(l.TgZ(0,"div",12),l.GkF(1,13),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.Q6J("ngTemplateOutlet",t._templateLabel().template)}}function z(t,e){if(1&t&&(l.TgZ(0,"div",12),l._uU(1),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.Oqu(t.label)}}function Z(t,e){if(1&t&&(l.TgZ(0,"div",14),l._uU(1),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.Oqu(t._intl.optionalLabel)}}function B(t,e){if(1&t&&(l.TgZ(0,"div",15),l._uU(1),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.Oqu(t.errorMessage)}}function F(t,e){}function U(t,e){if(1&t&&(l.Hsn(0),l.YNc(1,F,0,0,"ng-template",0)),2&t){const t=l.oxw();l.xp6(1),l.Q6J("cdkPortalOutlet",t._portal)}}const q=["*"];function H(t,e){1&t&&l._UZ(0,"div",9)}const G=function(t,e){return{step:t,i:e}};function j(t,e){if(1&t&&(l.ynx(0),l.GkF(1,7),l.YNc(2,H,1,0,"div",8),l.BQk()),2&t){const t=e.$implicit,i=e.index,n=e.last;l.oxw(2);const s=l.MAs(4);l.xp6(1),l.Q6J("ngTemplateOutlet",s)("ngTemplateOutletContext",l.WLB(3,G,t,i)),l.xp6(1),l.Q6J("ngIf",!n)}}function Y(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div",10),l.NdJ("@horizontalStepTransition.done",function(e){return l.CHM(t),l.oxw(2)._animationDone.next(e)}),l.GkF(1,11),l.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=l.oxw(2);l.Q6J("@horizontalStepTransition",n._getAnimationDirection(i))("id",n._getStepContentId(i)),l.uIk("aria-labelledby",n._getStepLabelId(i))("aria-expanded",n.selectedIndex===i),l.xp6(1),l.Q6J("ngTemplateOutlet",t.content)}}function K(t,e){if(1&t&&(l.ynx(0),l.TgZ(1,"div",3),l.YNc(2,j,3,6,"ng-container",4),l.qZA(),l.TgZ(3,"div",5),l.YNc(4,Y,2,5,"div",6),l.qZA(),l.BQk()),2&t){const t=l.oxw();l.xp6(2),l.Q6J("ngForOf",t.steps),l.xp6(2),l.Q6J("ngForOf",t.steps)}}function V(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div",13),l.GkF(1,7),l.TgZ(2,"div",14),l.TgZ(3,"div",15),l.NdJ("@verticalStepTransition.done",function(e){return l.CHM(t),l.oxw(2)._animationDone.next(e)}),l.TgZ(4,"div",16),l.GkF(5,11),l.qZA(),l.qZA(),l.qZA(),l.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=e.last,s=l.oxw(2),o=l.MAs(4);l.xp6(1),l.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",l.WLB(9,G,t,i)),l.xp6(1),l.ekj("mat-stepper-vertical-line",!n),l.xp6(1),l.Q6J("@verticalStepTransition",s._getAnimationDirection(i))("id",s._getStepContentId(i)),l.uIk("aria-labelledby",s._getStepLabelId(i))("aria-expanded",s.selectedIndex===i),l.xp6(2),l.Q6J("ngTemplateOutlet",t.content)}}function $(t,e){if(1&t&&(l.ynx(0),l.YNc(1,V,6,12,"div",12),l.BQk()),2&t){const t=l.oxw();l.xp6(1),l.Q6J("ngForOf",t.steps)}}function J(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"mat-step-header",17),l.NdJ("click",function(){return e.step.select()})("keydown",function(e){return l.CHM(t),l.oxw()._onKeydown(e)}),l.qZA()}if(2&t){const t=e.step,i=e.i,n=l.oxw();l.ekj("mat-horizontal-stepper-header","horizontal"===n.orientation)("mat-vertical-stepper-header","vertical"===n.orientation),l.Q6J("tabIndex",n._getFocusIndex()===i?0:-1)("id",n._getStepLabelId(i))("index",i)("state",n._getIndicatorType(i,t.state))("label",t.stepLabel||t.label)("selected",n.selectedIndex===i)("active",t.completed||n.selectedIndex===i||!n.linear)("optional",t.optional)("errorMessage",t.errorMessage)("iconOverrides",n._iconOverrides)("disableRipple",n.disableRipple)("color",t.color||n.color),l.uIk("aria-posinset",i+1)("aria-setsize",n.steps.length)("aria-controls",n._getStepContentId(i))("aria-selected",n.selectedIndex==i)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null)}}let Q=(()=>{class t extends b{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=l.n5z(t)))(i||t)}}(),t.\u0275dir=l.lG2({type:t,selectors:[["","matStepLabel",""]],features:[l.qOj]}),t})(),W=(()=>{class t{constructor(){this.changes=new u.xQ,this.optionalLabel="Optional"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=l.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const X={provide:W,deps:[[new l.FiY,new l.tp0,W]],useFactory:function(t){return t||new W}};class tt extends m{constructor(t){super(t)}}const et=(0,E.pj)(tt,"primary");let it=(()=>{class t extends et{constructor(t,e,i,n){super(i),this._intl=t,this._focusMonitor=e,this._intlSubscription=t.changes.subscribe(()=>n.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,e){t?this._focusMonitor.focusVia(this._elementRef,t,e):this._elementRef.nativeElement.focus(e)}_stringLabel(){return this.label instanceof Q?null:this.label}_templateLabel(){return this.label instanceof Q?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(t){return"number"==t?`${this.index+1}`:"edit"==t?"create":"error"==t?"warning":t}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(W),l.Y36(s.tE),l.Y36(l.SBq),l.Y36(l.sBO))},t.\u0275cmp=l.Xpm({type:t,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:[l.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"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(t,e){1&t&&(l._UZ(0,"div",0),l.TgZ(1,"div"),l.TgZ(2,"div",1),l.YNc(3,P,1,2,"ng-container",2),l.YNc(4,L,3,2,"ng-container",3),l.qZA(),l.qZA(),l.TgZ(5,"div",4),l.YNc(6,N,2,1,"div",5),l.YNc(7,z,2,1,"div",5),l.YNc(8,Z,2,1,"div",6),l.YNc(9,B,2,1,"div",7),l.qZA()),2&t&&(l.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disableRipple),l.xp6(1),l.Gre("mat-step-icon-state-",e.state," mat-step-icon"),l.ekj("mat-step-icon-selected",e.selected),l.xp6(1),l.Q6J("ngSwitch",!(!e.iconOverrides||!e.iconOverrides[e.state])),l.xp6(1),l.Q6J("ngSwitchCase",!0),l.xp6(2),l.ekj("mat-step-label-active",e.active)("mat-step-label-selected",e.selected)("mat-step-label-error","error"==e.state),l.xp6(1),l.Q6J("ngIf",e._templateLabel()),l.xp6(1),l.Q6J("ngIf",e._stringLabel()),l.xp6(1),l.Q6J("ngIf",e.optional&&"error"!=e.state),l.xp6(1),l.Q6J("ngIf","error"==e.state))},directives:[E.wG,c.RF,c.n9,c.ED,c.O5,c.tP,S.Hw],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.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,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.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}\n"],encapsulation:2,changeDetection:0}),t})();const nt={horizontalStepTransition:(0,O.X$)("horizontalStepTransition",[(0,O.SB)("previous",(0,O.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,O.SB)("current",(0,O.oB)({transform:"none",visibility:"inherit"})),(0,O.SB)("next",(0,O.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,O.eR)("* => *",(0,O.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,O.X$)("verticalStepTransition",[(0,O.SB)("previous",(0,O.oB)({height:"0px",visibility:"hidden"})),(0,O.SB)("next",(0,O.oB)({height:"0px",visibility:"hidden"})),(0,O.SB)("current",(0,O.oB)({height:"*",visibility:"inherit"})),(0,O.eR)("* <=> current",(0,O.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let st=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(l.Rgc))},t.\u0275dir=l.lG2({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),t})(),ot=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(l.Rgc))},t.\u0275dir=l.lG2({type:t,selectors:[["ng-template","matStepContent",""]]}),t})(),rt=(()=>{class t extends A{constructor(t,e,i,n){super(t,n),this._errorStateMatcher=e,this._viewContainerRef=i,this._isSelected=k.w.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,I.w)(()=>this._stepper.selectionChange.pipe((0,x.U)(t=>t.selectedStep===this),(0,d.O)(this._stepper.selected===this)))).subscribe(t=>{t&&this._lazyContent&&!this._portal&&(this._portal=new n.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(t,e){return this._errorStateMatcher.isErrorState(t,e)||!!(t&&t.invalid&&this.interacted)}}return t.\u0275fac=function(e){return new(e||t)(l.Y36((0,l.Gpc)(()=>ut)),l.Y36(E.rD,4),l.Y36(l.s_b),l.Y36(w,8))},t.\u0275cmp=l.Xpm({type:t,selectors:[["mat-step"]],contentQueries:function(t,e,i){if(1&t&&(l.Suo(i,Q,5),l.Suo(i,ot,5)),2&t){let t;l.iGM(t=l.CRH())&&(e.stepLabel=t.first),l.iGM(t=l.CRH())&&(e._lazyContent=t.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[l._Bn([{provide:E.rD,useExisting:t},{provide:A,useExisting:t}]),l.qOj],ngContentSelectors:q,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(l.F$t(),l.YNc(0,U,2,1,"ng-template"))},directives:[n.Pl],encapsulation:2,changeDetection:0}),t})(),at=(()=>{class t extends y{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=l.n5z(t)))(i||t)}}(),t.\u0275dir=l.lG2({type:t,features:[l.qOj]}),t})(),ct=(()=>{class t extends at{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=l.n5z(t)))(i||t)}}(),t.\u0275dir=l.lG2({type:t,selectors:[["mat-horizontal-stepper"]],features:[l.qOj]}),t})(),lt=(()=>{class t extends at{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=l.n5z(t)))(i||t)}}(),t.\u0275dir=l.lG2({type:t,selectors:[["mat-vertical-stepper"]],features:[l.qOj]}),t})(),ut=(()=>{class t extends y{constructor(t,e,i,n){super(t,e,i,n),this.steps=new l.n_E,this.animationDone=new l.vpe,this.labelPosition="end",this._iconOverrides={},this._animationDone=new u.xQ;const s=i.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===s?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:t,templateRef:e})=>this._iconOverrides[t]=e),this.steps.changes.pipe((0,p.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,R.x)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState),(0,p.R)(this._destroyed)).subscribe(t=>{"current"===t.toState&&this.animationDone.emit()})}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(o.Is,8),l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(c.K0))},t.\u0275cmp=l.Xpm({type:t,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(t,e,i){if(1&t&&(l.Suo(i,rt,5),l.Suo(i,st,5)),2&t){let t;l.iGM(t=l.CRH())&&(e._steps=t),l.iGM(t=l.CRH())&&(e._icons=t)}},viewQuery:function(t,e){if(1&t&&l.Gf(it,5),2&t){let t;l.iGM(t=l.CRH())&&(e._stepHeader=t)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(t,e){2&t&&(l.uIk("aria-orientation",e.orientation),l.ekj("mat-stepper-horizontal","horizontal"===e.orientation)("mat-stepper-vertical","vertical"===e.orientation)("mat-stepper-label-position-end","horizontal"===e.orientation&&"end"==e.labelPosition)("mat-stepper-label-position-bottom","horizontal"===e.orientation&&"bottom"==e.labelPosition))},inputs:{selectedIndex:"selectedIndex",labelPosition:"labelPosition",disableRipple:"disableRipple",color:"color"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[l._Bn([{provide:y,useExisting:t},{provide:ct,useExisting:t},{provide:lt,useExisting:t}]),l.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[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(t,e){1&t&&(l.ynx(0,0),l.YNc(1,K,5,2,"ng-container",1),l.YNc(2,$,2,1,"ng-container",1),l.BQk(),l.YNc(3,J,1,22,"ng-template",null,2,l.W1O)),2&t&&(l.Q6J("ngSwitch",e.orientation),l.xp6(1),l.Q6J("ngSwitchCase","horizontal"),l.xp6(1),l.Q6J("ngSwitchCase","vertical"))},directives:[c.RF,c.n9,c.sg,c.tP,c.O5,it],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-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-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}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[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}\n'],encapsulation:2,data:{animation:[nt.horizontalStepTransition,nt.verticalStepTransition]},changeDetection:0}),t})(),ht=(()=>{class t extends v{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=l.n5z(t)))(i||t)}}(),t.\u0275dir=l.lG2({type:t,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(t,e){2&t&&l.Ikx("type",e.type)},inputs:{type:"type"},features:[l.qOj]}),t})(),dt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({providers:[X,E.rD],imports:[[E.BQ,c.ez,n.eL,C.ot,T,S.Ps,E.si],E.BQ]}),t})()},67033:function(t,e,i){"use strict";i.d(e,{ev:function(){return dt},Dz:function(){return ct},w1:function(){return ut},ge:function(){return ht},fO:function(){return lt},XQ:function(){return ft},as:function(){return pt},Gk:function(){return mt},nj:function(){return gt},BZ:function(){return at},by:function(){return wt},p0:function(){return bt}});var n=i(19861),s=i(4230),o=i(31572),r=i(22526),a=i(11353),c=i(4253),l=i(61511),u=i(55959),h=i(19764),d=i(78512),p=i(4710),g=i(40878),f=i(25416),m=i(90611);const b=[[["caption"]],[["colgroup"],["col"]]],_=["caption","colgroup, col"];function w(t){return class extends t{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=(0,n.Ig)(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const A=new o.OlP("CDK_TABLE");let y=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc))},t.\u0275dir=o.lG2({type:t,selectors:[["","cdkCellDef",""]]}),t})(),v=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc))},t.\u0275dir=o.lG2({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),T=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc))},t.\u0275dir=o.lG2({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class C{}const E=w(C);let S=(()=>{class t extends E{constructor(t){super(),this._table=t,this._stickyEnd=!1}get name(){return this._name}set name(t){this._setNameInput(t)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const e=this._stickyEnd;this._stickyEnd=(0,n.Ig)(t),this._hasStickyChanged=e!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(A,8))},t.\u0275dir=o.lG2({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,i){if(1&t&&(o.Suo(i,y,5),o.Suo(i,v,5),o.Suo(i,T,5)),2&t){let t;o.iGM(t=o.CRH())&&(e.cell=t.first),o.iGM(t=o.CRH())&&(e.headerCell=t.first),o.iGM(t=o.CRH())&&(e.footerCell=t.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[o._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),o.qOj]}),t})();class k{constructor(t,e){const i=e.nativeElement.classList;for(const n of t._columnCssClassName)i.add(n)}}let I=(()=>{class t extends k{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(S),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[o.qOj]}),t})(),x=(()=>{class t extends k{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(S),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[o.qOj]}),t})();class R{constructor(){this.tasks=[],this.endTasks=[]}}const O=new o.OlP("_COALESCED_STYLE_SCHEDULER");let P=(()=>{class t{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new u.xQ}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new R,this._getScheduleObservable().pipe((0,f.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const t=this._currentSchedule;this._currentSchedule=new R;for(const e of t.tasks)e();for(const e of t.endTasks)e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,h.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,m.q)(1))}}return t.\u0275fac=function(e){return new(e||t)(o.LFG(o.R0b))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t})(),D=(()=>{class t{constructor(t,e){this.template=t,this._differs=e}ngOnChanges(t){if(!this._columnsDiffer){const e=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof N?t.headerCell.template:this instanceof B?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc),o.Y36(o.ZZ4))},t.\u0275dir=o.lG2({type:t,features:[o.TTD]}),t})();class M extends D{}const L=w(M);let N=(()=>{class t extends L{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc),o.Y36(o.ZZ4),o.Y36(A,8))},t.\u0275dir=o.lG2({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[o.qOj,o.TTD]}),t})();class z extends D{}const Z=w(z);let B=(()=>{class t extends Z{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc),o.Y36(o.ZZ4),o.Y36(A,8))},t.\u0275dir=o.lG2({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[o.qOj,o.TTD]}),t})(),F=(()=>{class t extends D{constructor(t,e,i){super(t,e),this._table=i}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc),o.Y36(o.ZZ4),o.Y36(A,8))},t.\u0275dir=o.lG2({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[o.qOj]}),t})(),U=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.s_b))},t.\u0275dir=o.lG2({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&o.GkF(0,0)},directives:[U],encapsulation:2}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&o.GkF(0,0)},directives:[U],encapsulation:2}),t})(),G=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.Rgc))},t.\u0275dir=o.lG2({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const j=["top","bottom","left","right"];class Y{constructor(t,e,i,n,s=!0,o=!0,r){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=n,this._isBrowser=s,this._needsPositionStickyOnElement=o,this._positionListener=r,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(t,e){const i=[];for(const n of t)if(n.nodeType===n.ELEMENT_NODE){i.push(n);for(let t=0;t{for(const t of i)this._removeStickyStyle(t,e)})}updateStickyColumns(t,e,i,n=!0){if(!t.length||!this._isBrowser||!e.some(t=>t)&&!i.some(t=>t))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const s=t[0],o=s.children.length,r=this._getCellWidths(s,n),a=this._getStickyStartColumnPositions(r,e),c=this._getStickyEndColumnPositions(r,i),l=e.lastIndexOf(!0),u=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const n="rtl"===this.direction,s=n?"right":"left",h=n?"left":"right";for(const r of t)for(let t=0;te[i]?t:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===u?[]:r.slice(u).map((t,e)=>i[e+u]?t:null).reverse()}))})}stickRows(t,e,i){if(!this._isBrowser)return;const n="bottom"===i?t.slice().reverse():t,s="bottom"===i?e.slice().reverse():e,o=[],r=[],a=[];for(let l=0,u=0;l{var t,e;for(let r=0;r{e.some(t=>!t)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(t,e){for(const i of e)t.style[i]="",t.classList.remove(this._borderCellCss[i]);j.some(i=>-1===e.indexOf(i)&&t.style[i])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i,n){t.classList.add(this._stickCellCss),n&&t.classList.add(this._borderCellCss[e]),t.style[e]=`${i}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const n of j)t.style[n]&&(i+=e[n]);return i?`${i}`:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],n=t.children;for(let s=0;s0;s--)e[s]&&(i[s]=n,n+=t[s]);return i}}const K=new o.OlP("CDK_SPL");let V=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.s_b),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["","rowOutlet",""]]}),t})(),$=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.s_b),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),J=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.s_b),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),Q=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.s_b),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),W=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,l,h){this._differs=t,this._changeDetectorRef=e,this._elementRef=i,this._dir=s,this._platform=r,this._viewRepeater=a,this._coalescedStyleScheduler=c,this._viewportRuler=l,this._stickyPositioningListener=h,this._onDestroy=new u.xQ,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.viewChange=new d.X({start:0,end:Number.MAX_VALUE}),n||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=o,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=(0,n.Ig)(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=(0,n.Ig)(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,e)=>this.trackBy?this.trackBy(e.dataIndex,e.data):e),this._viewportRuler.change().pipe((0,f.R)(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.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),(0,s.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return void this._updateNoDataRow();const e=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,e,(t,e,i)=>this._getEmbeddedViewArgs(t.item,i),t=>t.item.data,t=>{1===t.operation&&t.context&&this._renderCellTemplateForItem(t.record.item.rowDef,t.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(t=>{e.get(t.currentIndex).context.$implicit=t.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");const i=this._headerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"top"),this._headerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");const i=this._footerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...e,...i],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((t,e)=>{this._addStickyColumnStyles([t],this._headerRowDefs[e])}),this._rowDefs.forEach(t=>{const i=[];for(let n=0;n{this._addStickyColumnStyles([t],this._footerRowDefs[e])}),Array.from(this._columnDefsByName.values()).forEach(t=>t.resetStickyChanged())}_getAllRenderRows(){const t=[],e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let i=0;i{const s=i&&i.has(n)?i.get(n):[];if(s.length){const t=s.shift();return t.dataIndex=e,t}return{data:t,rowDef:n,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),X(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=X(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=X(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=X(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(t,e)=>t||!!e.getColumnsDiff(),e=this._rowDefs.reduce(t,!1);e&&this._forceRenderDataRows();const i=this._headerRowDefs.reduce(t,!1);i&&this._forceRenderHeaderRows();const n=this._footerRowDefs.reduce(t,!1);return n&&this._forceRenderFooterRows(),e||i||n}_switchDataSource(t){this._data=[],(0,s.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;(0,s.Z9)(this.dataSource)?t=this.dataSource.connect(this):(0,p.b)(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=(0,g.of)(this.dataSource)),this._renderChangeSubscription=t.pipe((0,f.R)(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,e)=>this._renderRow(this._headerRowOutlet,t,e)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,e)=>this._renderRow(this._footerRowOutlet,t,e)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,e){const i=Array.from(e.columns||[]).map(t=>this._columnDefsByName.get(t)),n=i.map(t=>t.sticky),s=i.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,n,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){const e=[];for(let i=0;i!i.when||i.when(e,t));else{let n=this._rowDefs.find(i=>i.when&&i.when(e,t))||this._defaultRowDef;n&&i.push(n)}return i}_getEmbeddedViewArgs(t,e){return{templateRef:t.rowDef.template,context:{$implicit:t.data},index:e}}_renderRow(t,e,i,n={}){const s=t.viewContainer.createEmbeddedView(e.template,n,i);return this._renderCellTemplateForItem(e,n),s}_renderCellTemplateForItem(t,e){for(let i of this._getCellTemplates(t))U.mostRecentCellOutlet&&U.mostRecentCellOutlet._viewContainer.createEmbeddedView(i,e);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let e=0,i=t.length;e{const i=this._columnDefsByName.get(e);return t.extractCellTemplate(i)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),e=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const i of e){const e=this._document.createElement(i.tag);e.setAttribute("role","rowgroup");for(const t of i.outlets)e.appendChild(t.elementRef.nativeElement);t.appendChild(e)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const t=(t,e)=>t||e.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Y(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,g.of)()).pipe((0,f.R)(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const t=this._customNoDataRow||this._noDataRow;if(t){const e=0===this._rowOutlet.viewContainer.length;if(e!==this._isShowingNoDataRow){const i=this._noDataRowOutlet.viewContainer;e?i.createEmbeddedView(t.templateRef):i.clear(),this._isShowingNoDataRow=e}}}}return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.ZZ4),o.Y36(o.sBO),o.Y36(o.SBq),o.$8M("role"),o.Y36(r.Is,8),o.Y36(l.K0),o.Y36(a.t4),o.Y36(s.k),o.Y36(O),o.Y36(c.rL),o.Y36(K,12))},t.\u0275cmp=o.Xpm({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,i){if(1&t&&(o.Suo(i,G,5),o.Suo(i,S,5),o.Suo(i,F,5),o.Suo(i,N,5),o.Suo(i,B,5)),2&t){let t;o.iGM(t=o.CRH())&&(e._noDataRow=t.first),o.iGM(t=o.CRH())&&(e._contentColumnDefs=t),o.iGM(t=o.CRH())&&(e._contentRowDefs=t),o.iGM(t=o.CRH())&&(e._contentHeaderRowDefs=t),o.iGM(t=o.CRH())&&(e._contentFooterRowDefs=t)}},viewQuery:function(t,e){if(1&t&&(o.Gf(V,7),o.Gf($,7),o.Gf(J,7),o.Gf(Q,7)),2&t){let t;o.iGM(t=o.CRH())&&(e._rowOutlet=t.first),o.iGM(t=o.CRH())&&(e._headerRowOutlet=t.first),o.iGM(t=o.CRH())&&(e._footerRowOutlet=t.first),o.iGM(t=o.CRH())&&(e._noDataRowOutlet=t.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,e){2&t&&o.ekj("cdk-table-fixed-layout",e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[o._Bn([{provide:A,useExisting:t},{provide:s.k,useClass:s.yy},{provide:O,useClass:P},{provide:K,useValue:null}])],ngContentSelectors:_,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(o.F$t(b),o.Hsn(0),o.Hsn(1,1),o.GkF(2,0),o.GkF(3,1),o.GkF(4,2),o.GkF(5,3))},directives:[$,V,Q,J],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})();function X(t,e){return t.concat(Array.from(e))}let tt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[c.Cl]]}),t})();var et=i(71522),it=i(31906),nt=i(31305),st=i(79996);const ot=[[["caption"]],[["colgroup"],["col"]]],rt=["caption","colgroup, col"];let at=(()=>{class t extends W{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(t,e){2&t&&o.ekj("mat-table-fixed-layout",e.fixedLayout)},exportAs:["matTable"],features:[o._Bn([{provide:s.k,useClass:s.yy},{provide:W,useExisting:t},{provide:A,useExisting:t},{provide:O,useClass:P},{provide:K,useValue:null}]),o.qOj],ngContentSelectors:rt,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(o.F$t(ot),o.Hsn(0),o.Hsn(1,1),o.GkF(2,0),o.GkF(3,1),o.GkF(4,2),o.GkF(5,3))},directives:[$,V,Q,J],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-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}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:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),t})(),ct=(()=>{class t extends y{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["","matCellDef",""]],features:[o._Bn([{provide:y,useExisting:t}]),o.qOj]}),t})(),lt=(()=>{class t extends v{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["","matHeaderCellDef",""]],features:[o._Bn([{provide:v,useExisting:t}]),o.qOj]}),t})(),ut=(()=>{class t extends S{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[o._Bn([{provide:S,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),o.qOj]}),t})(),ht=(()=>{class t extends I{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[o.qOj]}),t})(),dt=(()=>{class t extends x{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[o.qOj]}),t})(),pt=(()=>{class t extends N{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[o._Bn([{provide:N,useExisting:t}]),o.qOj]}),t})(),gt=(()=>{class t extends F{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275dir=o.lG2({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[o._Bn([{provide:F,useExisting:t}]),o.qOj]}),t})(),ft=(()=>{class t extends q{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[o._Bn([{provide:q,useExisting:t}]),o.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&o.GkF(0,0)},directives:[U],encapsulation:2}),t})(),mt=(()=>{class t extends H{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=o.n5z(t)))(i||t)}}(),t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[o._Bn([{provide:H,useExisting:t}]),o.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&o.GkF(0,0)},directives:[U],encapsulation:2}),t})(),bt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[tt,et.BQ],et.BQ]}),t})();class _t extends s.o2{constructor(t=[]){super(),this._renderData=new d.X([]),this._filter=new d.X(""),this._internalPageChanges=new u.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(t,e)=>{const i=t[e];if((0,n.t6)(i)){const t=Number(i);return t<9007199254740991?t:i}return i},this.sortData=(t,e)=>{const i=e.active,n=e.direction;return i&&""!=n?t.sort((t,e)=>{let s=this.sortingDataAccessor(t,i),o=this.sortingDataAccessor(e,i);const r=typeof s,a=typeof o;r!==a&&("number"===r&&(s+=""),"number"===a&&(o+=""));let c=0;return null!=s&&null!=o?s>o?c=1:s{const i=Object.keys(t).reduce((e,i)=>e+t[i]+"\u25ec","").toLowerCase(),n=e.trim().toLowerCase();return-1!=i.indexOf(n)},this._data=new d.X(t),this._updateChangeSubscription()}get data(){return this._data.value}set data(t){this._data.next(t),this._renderChangesSubscription||this._filterData(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}_updateChangeSubscription(){var t;const e=this._sort?(0,it.T)(this._sort.sortChange,this._sort.initialized):(0,g.of)(null),i=this._paginator?(0,it.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,g.of)(null),n=(0,nt.aj)([this._data,this._filter]).pipe((0,st.U)(([t])=>this._filterData(t))),s=(0,nt.aj)([n,e]).pipe((0,st.U)(([t])=>this._orderData(t))),o=(0,nt.aj)([s,i]).pipe((0,st.U)(([t])=>this._pageData(t)));null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=o.subscribe(t=>this._renderData.next(t))}_filterData(t){return this.filteredData=null==this.filter||""===this.filter?t:t.filter(t=>this.filterPredicate(t,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;const e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=t,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,i=Math.min(e.pageIndex,t);i!==e.pageIndex&&(e.pageIndex=i,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var t;null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=null}}class wt extends _t{}},55109:function(t,e,i){"use strict";i.d(e,{uX:function(){return J},Vc:function(){return G},SP:function(){return at},uD:function(){return Y},Nh:function(){return ft}});var n=i(24621),s=i(36337),o=i(26899),r=i(61511),a=i(31572),c=i(71522),l=i(43490),u=i(55959),h=i(87570),d=i(31906),p=i(87254),g=i(40878),f=i(81110),m=i(10709),b=i(56238),_=i(98720),w=i(25416),A=i(19861),y=i(11353),v=i(75842),T=i(22526),C=i(4253);function E(t,e){1&t&&a.Hsn(0)}const S=["*"];function k(t,e){}const I=function(t){return{animationDuration:t}},x=function(t,e){return{value:t,params:e}},R=["tabBodyWrapper"],O=["tabHeader"];function P(t,e){}function D(t,e){if(1&t&&a.YNc(0,P,0,0,"ng-template",9),2&t){const t=a.oxw().$implicit;a.Q6J("cdkPortalOutlet",t.templateLabel)}}function M(t,e){if(1&t&&a._uU(0),2&t){const t=a.oxw().$implicit;a.Oqu(t.textLabel)}}function L(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div",6),a.NdJ("click",function(){const e=a.CHM(t),i=e.$implicit,n=e.index,s=a.oxw(),o=a.MAs(1);return s._handleClick(i,o,n)})("cdkFocusChange",function(e){const i=a.CHM(t).index;return a.oxw()._tabFocusChanged(e,i)}),a.TgZ(1,"div",7),a.YNc(2,D,1,1,"ng-template",8),a.YNc(3,M,1,1,"ng-template",8),a.qZA(),a.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=a.oxw();a.ekj("mat-tab-label-active",n.selectedIndex==i),a.Q6J("id",n._getTabLabelId(i))("disabled",t.disabled)("matRippleDisabled",t.disabled||n.disableRipple),a.uIk("tabIndex",n._getTabIndex(t,i))("aria-posinset",i+1)("aria-setsize",n._tabs.length)("aria-controls",n._getTabContentId(i))("aria-selected",n.selectedIndex==i)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),a.xp6(2),a.Q6J("ngIf",t.templateLabel),a.xp6(1),a.Q6J("ngIf",!t.templateLabel)}}function N(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"mat-tab-body",10),a.NdJ("_onCentered",function(){return a.CHM(t),a.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(e){return a.CHM(t),a.oxw()._setTabBodyWrapperHeight(e)}),a.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=a.oxw();a.ekj("mat-tab-body-active",n.selectedIndex==i),a.Q6J("id",n._getTabContentId(i))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",n.animationDuration),a.uIk("aria-labelledby",n._getTabLabelId(i))}}const z=["tabListContainer"],Z=["tabList"],B=["nextPaginator"],F=["previousPaginator"],U=new a.OlP("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let q=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=i,this._animationMode=n}alignToElement(t){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(t))}):this._setStyles(t)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(t){const e=this._inkBarPositioner(t),i=this._elementRef.nativeElement;i.style.left=e.left,i.style.width=e.width}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(U),a.Y36(l.Qb,8))},t.\u0275dir=a.lG2({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&a.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t})();const H=new a.OlP("MatTabContent");let G=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.Rgc))},t.\u0275dir=a.lG2({type:t,selectors:[["","matTabContent",""]],features:[a._Bn([{provide:H,useExisting:t}])]}),t})();const j=new a.OlP("MatTabLabel");let Y=(()=>{class t extends o.ig{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=a.n5z(t)))(i||t)}}(),t.\u0275dir=a.lG2({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[a._Bn([{provide:j,useExisting:t}]),a.qOj]}),t})();class K{}const V=(0,c.Id)(K),$=new a.OlP("MAT_TAB_GROUP");let J=(()=>{class t extends V{constructor(t,e){super(),this._viewContainerRef=t,this._closestTabGroup=e,this.textLabel="",this._contentPortal=null,this._stateChanges=new u.xQ,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}get content(){return this._contentPortal}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new o.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&(this._templateLabel=t)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.s_b),a.Y36($,8))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,i){if(1&t&&(a.Suo(i,j,5),a.Suo(i,H,7,a.Rgc)),2&t){let t;a.iGM(t=a.CRH())&&(e.templateLabel=t.first),a.iGM(t=a.CRH())&&(e._explicitContent=t.first)}},viewQuery:function(t,e){if(1&t&&a.Gf(a.Rgc,7),2&t){let t;a.iGM(t=a.CRH())&&(e._implicitContent=t.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[a.qOj,a.TTD],ngContentSelectors:S,decls:1,vars:0,template:function(t,e){1&t&&(a.F$t(),a.YNc(0,E,1,0,"ng-template"))},encapsulation:2}),t})();const Q={translateTab:(0,m.X$)("translateTab",[(0,m.SB)("center, void, left-origin-center, right-origin-center",(0,m.oB)({transform:"none"})),(0,m.SB)("left",(0,m.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,m.SB)("right",(0,m.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,m.eR)("* => left, * => right, left => center, right => center",(0,m.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,m.eR)("void => left-origin-center",[(0,m.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,m.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,m.eR)("void => right-origin-center",[(0,m.oB)({transform:"translate3d(100%, 0, 0)"}),(0,m.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let W=(()=>{class t extends o.Pl{constructor(t,e,i,n){super(t,e,n),this._host=i,this._centeringSub=h.w.EMPTY,this._leavingSub=h.w.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,b.O)(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a._Vd),a.Y36(a.s_b),a.Y36((0,a.Gpc)(()=>tt)),a.Y36(r.K0))},t.\u0275dir=a.lG2({type:t,selectors:[["","matTabBodyHost",""]],features:[a.qOj]}),t})(),X=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._dir=e,this._dirChangeSubscription=h.w.EMPTY,this._translateTabComplete=new u.xQ,this._onCentering=new a.vpe,this._beforeCentering=new a.vpe,this._afterLeavingCenter=new a.vpe,this._onCentered=new a.vpe(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe(t=>{this._computePositionAnimationState(t),i.markForCheck()})),this._translateTabComplete.pipe((0,_.x)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(t){this._positionIndex=t,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){const e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}_computePositionAnimationState(t=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}_computePositionFromOrigin(t){const e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(T.Is,8),a.Y36(a.sBO))},t.\u0275dir=a.lG2({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),tt=(()=>{class t extends X{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(T.Is,8),a.Y36(a.sBO))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){if(1&t&&a.Gf(o.Pl,5),2&t){let t;a.iGM(t=a.CRH())&&(e._portalHost=t.first)}},hostAttrs:[1,"mat-tab-body"],features:[a.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(a.TgZ(0,"div",0,1),a.NdJ("@translateTab.start",function(t){return e._onTranslateTabStarted(t)})("@translateTab.done",function(t){return e._translateTabComplete.next(t)}),a.YNc(2,k,0,0,"ng-template",2),a.qZA()),2&t&&a.Q6J("@translateTab",a.WLB(3,x,e._position,a.VKq(1,I,e.animationDuration)))},directives:[W],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Q.translateTab]}}),t})();const et=new a.OlP("MAT_TABS_CONFIG");let it=0;class nt{}class st{constructor(t){this._elementRef=t}}const ot=(0,c.pj)((0,c.Kr)(st),"primary");let rt=(()=>{class t extends ot{constructor(t,e,i,n){super(t),this._changeDetectorRef=e,this._animationMode=n,this._tabs=new a.n_E,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=h.w.EMPTY,this._tabLabelSubscription=h.w.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new a.vpe,this.focusChange=new a.vpe,this.animationDone=new a.vpe,this.selectedTabChange=new a.vpe(!0),this._groupId=it++,this.animationDuration=i&&i.animationDuration?i.animationDuration:"500ms",this.disablePagination=!(!i||null==i.disablePagination)&&i.disablePagination,this.dynamicHeight=!(!i||null==i.dynamicHeight)&&i.dynamicHeight}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(t){this._dynamicHeight=(0,A.Ig)(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=(0,A.su)(t,null)}get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement;e.classList.remove(`mat-background-${this.backgroundColor}`),t&&e.classList.add(`mat-background-${t}`),this._backgroundColor=t}ngAfterContentChecked(){const t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){const e=null==this._selectedIndex;if(!e){this.selectedTabChange.emit(this._createChangeEvent(t));const e=this._tabBodyWrapper.nativeElement;e.style.minHeight=e.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((e,i)=>e.isActive=i===t),e||(this.selectedIndexChange.emit(t),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((e,i)=>{e.position=i-t,null==this._selectedIndex||0!=e.position||e.origin||(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let e=0;e{this._tabs.reset(t.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()}focusTab(t){const e=this._tabHeader;e&&(e.focusIndex=t)}_focusChanged(t){this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){const e=new nt;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,d.T)(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){const t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,e,i){t.disabled||(this.selectedIndex=e.focusIndex=i)}_getTabIndex(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}_tabFocusChanged(t,e){t&&(this._tabHeader.focusIndex=e)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(et,8),a.Y36(l.Qb,8))},t.\u0275dir=a.lG2({type:t,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[a.qOj]}),t})(),at=(()=>{class t extends rt{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(et,8),a.Y36(l.Qb,8))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-tab-group"]],contentQueries:function(t,e,i){if(1&t&&a.Suo(i,J,5),2&t){let t;a.iGM(t=a.CRH())&&(e._allTabs=t)}},viewQuery:function(t,e){if(1&t&&(a.Gf(R,5),a.Gf(O,5)),2&t){let t;a.iGM(t=a.CRH())&&(e._tabBodyWrapper=t.first),a.iGM(t=a.CRH())&&(e._tabHeader=t.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&a.ekj("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[a._Bn([{provide:$,useExisting:t}]),a.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","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(a.TgZ(0,"mat-tab-header",0,1),a.NdJ("indexFocused",function(t){return e._focusChanged(t)})("selectFocusedIndex",function(t){return e.selectedIndex=t}),a.YNc(2,L,4,14,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.YNc(5,N,1,8,"mat-tab-body",5),a.qZA()),2&t&&(a.Q6J("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),a.xp6(2),a.Q6J("ngForOf",e._tabs),a.xp6(1),a.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.xp6(2),a.Q6J("ngForOf",e._tabs))},directives:function(){return[gt,r.sg,ut,c.wG,n.kH,r.O5,o.Pl,tt]},styles:[".mat-tab-group{display:flex;flex-direction:column}.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}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.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-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;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}\n"],encapsulation:2}),t})();class ct{}const lt=(0,c.Id)(ct);let ut=(()=>{class t extends lt{constructor(t){super(),this.elementRef=t}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq))},t.\u0275dir=a.lG2({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(a.uIk("aria-disabled",!!e.disabled),a.ekj("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[a.qOj]}),t})();const ht=(0,y.i$)({passive:!0});let dt=(()=>{class t{constructor(t,e,i,n,s,o,r){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=i,this._dir=n,this._ngZone=s,this._platform=o,this._animationMode=r,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new u.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new u.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new a.vpe,this.indexFocused=new a.vpe,s.runOutsideAngular(()=>{(0,p.R)(t.nativeElement,"mouseleave").pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=(0,A.su)(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}ngAfterViewInit(){(0,p.R)(this._previousPaginator.nativeElement,"touchstart",ht).pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,p.R)(this._nextPaginator.nativeElement,"touchstart",ht).pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:(0,g.of)("ltr"),e=this._viewportRuler.change(150),i=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new n.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),(0,d.T)(t,e,this._items.changes).pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(i)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,w.R)(this._destroyed)).subscribe(t=>{this.indexFocused.emit(t),this._setTabFocus(t)})}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(t){if(!(0,v.Vb)(t))switch(t.keyCode){case v.K5:case v.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){const t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",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(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}_isValidIndex(t){if(!this._items)return!0;const e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();const e=this._tabListContainer.nativeElement,i=this._getLayoutDirection();e.scrollLeft="ltr"==i?0:e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(e)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;const e=this._items?this._items.toArray()[t]:null;if(!e)return;const i=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:n,offsetWidth:s}=e.elementRef.nativeElement;let o,r;"ltr"==this._getLayoutDirection()?(o=n,r=o+s):(r=this._tabList.nativeElement.offsetWidth-n,o=r-s);const a=this.scrollDistance,c=this.scrollDistance+i;oc&&(this.scrollDistance+=r-c+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}_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._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&null!=e.button&&0!==e.button||(this._stopInterval(),(0,f.H)(650,100).pipe((0,w.R)((0,d.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:e,distance:i}=this._scrollHeader(t);(0===i||i>=e)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(C.rL),a.Y36(T.Is,8),a.Y36(a.R0b),a.Y36(y.t4),a.Y36(l.Qb,8))},t.\u0275dir=a.lG2({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),pt=(()=>{class t extends dt{constructor(t,e,i,n,s,o,r){super(t,e,i,n,s,o,r),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=(0,A.Ig)(t)}_itemSelected(t){t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(C.rL),a.Y36(T.Is,8),a.Y36(a.R0b),a.Y36(y.t4),a.Y36(l.Qb,8))},t.\u0275dir=a.lG2({type:t,inputs:{disableRipple:"disableRipple"},features:[a.qOj]}),t})(),gt=(()=>{class t extends pt{constructor(t,e,i,n,s,o,r){super(t,e,i,n,s,o,r)}}return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(C.rL),a.Y36(T.Is,8),a.Y36(a.R0b),a.Y36(y.t4),a.Y36(l.Qb,8))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,i){if(1&t&&a.Suo(i,ut,4),2&t){let t;a.iGM(t=a.CRH())&&(e._items=t)}},viewQuery:function(t,e){if(1&t&&(a.Gf(q,7),a.Gf(z,7),a.Gf(Z,7),a.Gf(B,5),a.Gf(F,5)),2&t){let t;a.iGM(t=a.CRH())&&(e._inkBar=t.first),a.iGM(t=a.CRH())&&(e._tabListContainer=t.first),a.iGM(t=a.CRH())&&(e._tabList=t.first),a.iGM(t=a.CRH())&&(e._nextPaginator=t.first),a.iGM(t=a.CRH())&&(e._previousPaginator=t.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&a.ekj("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[a.qOj],ngContentSelectors:S,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","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"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(a.F$t(),a.TgZ(0,"div",0,1),a.NdJ("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),a._UZ(2,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.NdJ("keydown",function(t){return e._handleKeydown(t)}),a.TgZ(5,"div",5,6),a.NdJ("cdkObserveContent",function(){return e._onContentChanges()}),a.TgZ(7,"div",7),a.Hsn(8),a.qZA(),a._UZ(9,"mat-ink-bar"),a.qZA(),a.qZA(),a.TgZ(10,"div",8,9),a.NdJ("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),a._UZ(12,"div",2),a.qZA()),2&t&&(a.ekj("mat-tab-header-pagination-disabled",e._disableScrollBefore),a.Q6J("matRippleDisabled",e._disableScrollBefore||e.disableRipple),a.xp6(5),a.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.xp6(5),a.ekj("mat-tab-header-pagination-disabled",e._disableScrollAfter),a.Q6J("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[c.wG,s.wD,q],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-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:transparent;touch-action:none}.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;content:"";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-animation-noopable.mat-ink-bar{transition:none;animation:none}.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-animation-noopable.mat-tab-list{transition:none;animation:none}.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}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.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{min-width:72px}}\n'],encapsulation:2}),t})(),ft=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({imports:[[r.ez,c.BQ,o.eL,c.si,s.Q8,n.rt],c.BQ]}),t})()},36922:function(t,e,i){"use strict";i.d(e,{gM:function(){return B},AV:function(){return q}});var n=i(2522),s=i(24621),o=i(61511),r=i(31572),a=i(71522),c=i(4253),l=i(19861),u=i(75842),h=i(55959),d=i(31305),p=i(47930),g=i(48318),f=i(90611),m=i(96673);class b{constructor(t){this.total=t}call(t,e){return e.subscribe(new _(t,this.total))}}class _ extends m.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}var w=i(47701),A=i(79996),y=i(56238),v=i(25416),T=i(11353);const C=new Set;let E,S=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):k}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!C.has(t))try{E||(E=document.createElement("style"),E.setAttribute("type","text/css"),document.head.appendChild(E)),E.sheet&&(E.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),C.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(T.t4))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(T.t4))},token:t,providedIn:"root"}),t})();function k(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let I=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new h.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return x((0,l.Eq)(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=x((0,l.Eq)(t)).map(t=>this._registerQuery(t).observable);let i=(0,d.aj)(e);return i=(0,p.z)(i.pipe((0,f.q)(1)),i.pipe(t=>t.lift(new b(1)),(0,w.b)(0))),i.pipe((0,A.U)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:i})=>{e.matches=e.matches||t,e.breakpoints[i]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),i={observable:new g.y(t=>{const i=e=>this._zone.run(()=>t.next(e));return e.addListener(i),()=>{e.removeListener(i)}}).pipe((0,y.O)(e),(0,A.U)(({matches:e})=>({query:t,matches:e})),(0,v.R)(this._destroySubject)),mql:e};return this._queries.set(t,i),i}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(S),r.LFG(r.R0b))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(S),r.LFG(r.R0b))},token:t,providedIn:"root"}),t})();function x(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}var R=i(26899),O=i(10709),P=i(22526);const D={tooltipState:(0,O.X$)("state",[(0,O.SB)("initial, void, hidden",(0,O.oB)({opacity:0,transform:"scale(0)"})),(0,O.SB)("visible",(0,O.oB)({transform:"scale(1)"})),(0,O.eR)("* => visible",(0,O.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,O.F4)([(0,O.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,O.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,O.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,O.eR)("* => hidden",(0,O.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,O.oB)({opacity:0})))])},M=(0,T.i$)({passive:!0}),L=new r.OlP("mat-tooltip-scroll-strategy"),N={provide:L,deps:[n.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},z=new r.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Z=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,l,d,p){this._overlay=t,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=n,this._ngZone=s,this._platform=o,this._ariaDescriber=r,this._focusMonitor=a,this._dir=l,this._defaultOptions=d,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 h.xQ,this._handleKeydown=t=>{this._isTooltipVisible()&&t.keyCode===u.hY&&!(0,u.Vb)(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=c,this._document=p,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),l.change.pipe((0,v.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){var e;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(e=this._tooltipInstance)||void 0===e||e.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,l.Ig)(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).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(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,v.R)(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,i])=>{t.removeEventListener(e,i,M)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new R.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,v.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return e.positionChanges.pipe((0,v.R)(this._destroyed)).subscribe(t=>{this._updateCurrentPositionClass(t.connectionPair),this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:`${this._cssClassPrefix}-tooltip-panel`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,v.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const e=t.getConfig().positionStrategy,i=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([this._addOffset(Object.assign(Object.assign({},i.main),n.main)),this._addOffset(Object.assign(Object.assign({},i.fallback),n.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e||"below"==e?i={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={originX:"end",originY:"center"});const{x:n,y:s}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:n,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e?i={overlayX:"center",overlayY:"bottom"}:"below"==e?i={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={overlayX:"start",overlayY:"center"});const{x:n,y:s}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:n,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,f.q)(1),(0,v.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){const{overlayY:e,originX:i,originY:n}=t;let s;if(s="center"===e?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===e&&"top"===n?"above":"below",s!==this._currentPosition){const t=this._overlayRef;if(t){const e=`${this._cssClassPrefix}-tooltip-panel-`;t.removePanelClass(e+this._currentPosition),t.addPanelClass(e+s)}this._currentPosition=s}}_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 t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,M)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const e=this._document.elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;e===i||i.contains(e)||this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,i=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),"on"!==t&&e.draggable||(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.aV),r.Y36(r.SBq),r.Y36(c.mF),r.Y36(r.s_b),r.Y36(r.R0b),r.Y36(T.t4),r.Y36(s.$s),r.Y36(s.tE),r.Y36(void 0),r.Y36(P.Is),r.Y36(void 0),r.Y36(o.K0))},t.\u0275dir=r.lG2({type:t,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),B=(()=>{class t extends Z{constructor(t,e,i,n,s,o,r,a,c,l,u,h){super(t,e,i,n,s,o,r,a,c,l,u,h),this._tooltipComponent=U}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(n.aV),r.Y36(r.SBq),r.Y36(c.mF),r.Y36(r.s_b),r.Y36(r.R0b),r.Y36(T.t4),r.Y36(s.$s),r.Y36(s.tE),r.Y36(L),r.Y36(P.Is,8),r.Y36(z,8),r.Y36(o.K0))},t.\u0275dir=r.lG2({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[r.qOj]}),t})(),F=(()=>{class t{constructor(t){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new h.xQ}show(t){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._markForCheck()},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.sBO))},t.\u0275dir=r.lG2({type:t}),t})(),U=(()=>{class t extends F{constructor(t,e){super(t),this._breakpointObserver=e,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.sBO),r.Y36(I))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&r.NdJ("click",function(){return e._handleBodyInteraction()},!1,r.pYS)("auxclick",function(){return e._handleBodyInteraction()},!1,r.pYS),2&t&&r.Udp("zoom","visible"===e._visibility?1:null)},features:[r.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(r.TgZ(0,"div",0),r.NdJ("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),r.ALo(1,"async"),r._uU(2),r.qZA()),2&t){let t;r.ekj("mat-tooltip-handset",null==(t=r.lcZ(1,5,e._isHandset))?null:t.matches),r.Q6J("ngClass",e.tooltipClass)("@state",e._visibility),r.xp6(2),r.Oqu(e.message)}},directives:[o.mk],pipes:[o.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[D.tooltipState]},changeDetection:0}),t})(),q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[N],imports:[[s.rt,o.ez,n.U8,a.BQ],a.BQ,c.ZD]}),t})()},91010:function(t,e,i){"use strict";i.d(e,{GZ:function(){return f},gi:function(){return b},kc:function(){return y},JZ:function(){return A},dp:function(){return w},WX:function(){return v},uo:function(){return p},fQ:function(){return g},Ar:function(){return m},eu:function(){return _}});var n=i(71709),s=i(71522),o=i(19861),r=i(4230),a=i(78512),c=i(31906),l=i(90611),u=i(79996),h=i(31572);const d=(0,s.sb)((0,s.Id)(n.Hs));let p=(()=>{class t extends d{constructor(t,e,i){super(t,e),this._elementRef=t,this._tree=e,this.tabIndex=Number(i)||0,this._elementRef.nativeElement.classList.add("mat-tree-node")}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}ngOnDestroy(){super.ngOnDestroy()}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(n._0),h.$8M("tabindex"))},t.\u0275dir=h.lG2({type:t,selectors:[["mat-tree-node"]],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[h._Bn([{provide:n.Hs,useExisting:t}]),h.qOj]}),t})(),g=(()=>{class t extends n.rO{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=h.n5z(t)))(i||t)}}(),t.\u0275dir=h.lG2({type:t,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[h._Bn([{provide:n.rO,useExisting:t}]),h.qOj]}),t})(),f=(()=>{class t extends n.Xx{constructor(t,e,i,n){super(t,e,i),this._elementRef=t,this._tree=e,this._differs=i,this._disabled=!1,this.tabIndex=Number(n)||0,this._elementRef.nativeElement.classList.add("mat-nested-tree-node")}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,o.Ig)(t)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?t:0}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(n._0),h.Y36(h.ZZ4),h.$8M("tabindex"))},t.\u0275dir=h.lG2({type:t,selectors:[["mat-nested-tree-node"]],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[h._Bn([{provide:n.Xx,useExisting:t},{provide:n.Hs,useExisting:t},{provide:n.HI,useExisting:t}]),h.qOj]}),t})(),m=(()=>{class t{constructor(t,e){this.viewContainer=t,this._node=e}}return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.s_b),h.Y36(n.HI,8))},t.\u0275dir=h.lG2({type:t,selectors:[["","matTreeNodeOutlet",""]],features:[h._Bn([{provide:n.cu,useExisting:t}])]}),t})(),b=(()=>{class t extends n._0{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=h.n5z(t)))(i||t)}}(),t.\u0275cmp=h.Xpm({type:t,selectors:[["mat-tree"]],viewQuery:function(t,e){if(1&t&&h.Gf(m,7),2&t){let t;h.iGM(t=h.CRH())&&(e._nodeOutlet=t.first)}},hostAttrs:["role","tree",1,"mat-tree","cdk-tree"],exportAs:["matTree"],features:[h._Bn([{provide:n._0,useExisting:t}]),h.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(t,e){1&t&&h.GkF(0,0)},directives:[m],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}\n"],encapsulation:2}),t})(),_=(()=>{class t extends n.Ud{get recursive(){return this._recursive}set recursive(t){this._recursive=(0,o.Ig)(t)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=h.n5z(t)))(i||t)}}(),t.\u0275dir=h.lG2({type:t,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[h._Bn([{provide:n.Ud,useExisting:t}]),h.qOj]}),t})(),w=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({imports:[[n.nZ,s.BQ],s.BQ]}),t})();class A{constructor(t,e,i,n){this.transformFunction=t,this.getLevel=e,this.isExpandable=i,this.getChildren=n}_flattenNode(t,e,i,n){const s=this.transformFunction(t,e);if(i.push(s),this.isExpandable(s)){const s=this.getChildren(t);s&&(Array.isArray(s)?this._flattenChildren(s,e,i,n):s.pipe((0,l.q)(1)).subscribe(t=>{this._flattenChildren(t,e,i,n)}))}return i}_flattenChildren(t,e,i,n){t.forEach((s,o)=>{let r=n.slice();r.push(o!=t.length-1),this._flattenNode(s,e+1,i,r)})}flattenNodes(t){let e=[];return t.forEach(t=>this._flattenNode(t,0,e,[])),e}expandFlattenedNodes(t,e){let i=[],n=[];return n[0]=!0,t.forEach(t=>{let s=!0;for(let e=0;e<=this.getLevel(t);e++)s=s&&n[e];s&&i.push(t),this.isExpandable(t)&&(n[this.getLevel(t)+1]=e.isExpanded(t))}),i}}class y extends r.o2{constructor(t,e,i){super(),this._treeControl=t,this._treeFlattener=e,this._flattenedData=new a.X([]),this._expandedData=new a.X([]),this._data=new a.X([]),i&&(this.data=i)}get data(){return this._data.value}set data(t){this._data.next(t),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}connect(t){return(0,c.T)(t.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe((0,u.U)(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}class v extends r.o2{constructor(){super(...arguments),this._data=new a.X([])}get data(){return this._data.value}set data(t){this._data.next(t)}connect(t){return(0,c.T)(t.viewChange,this._data).pipe((0,u.U)(()=>this.data))}disconnect(){}}},43490:function(t,e,i){"use strict";i.d(e,{Qb:function(){return be},PW:function(){return ye}});var n=i(31572),s=i(30269),o=i(10709);function r(){return"undefined"!=typeof window&&void 0!==window.document}function a(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function c(t){switch(t.length){case 0:return new o.ZN;case 1:return t[0];default:return new o.ZE(t)}}function l(t,e,i,n,s={},r={}){const a=[],c=[];let l=-1,u=null;if(n.forEach(t=>{const i=t.offset,n=i==l,h=n&&u||{};Object.keys(t).forEach(i=>{let n=i,c=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,a),c){case o.k1:c=s[i];break;case o.l3:c=r[i];break;default:c=e.normalizeStyleValue(i,n,c,a)}h[n]=c}),n||c.push(h),u=h,l=i}),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return c}function u(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&h(i,"start",t)));break;case"done":t.onDone(()=>n(i&&h(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&h(i,"destroy",t)))}}function h(t,e,i){const n=i.totalTime,s=d(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),o=t._data;return null!=o&&(s._data=o),s}function d(t,e,i,n,s="",o=0,r){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:s,totalTime:o,disabled:!!r}}function p(t,e,i){let n;return t instanceof Map?(n=t.get(e),n||t.set(e,n=i)):(n=t[e],n||(n=t[e]=i)),n}function g(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let f=(t,e)=>!1,m=(t,e)=>!1,b=(t,e,i)=>[];const _=a();(_||"undefined"!=typeof Element)&&(f=r()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),m=(()=>{if(_||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,i)=>e.apply(t,[i]):m}})(),b=(t,e,i)=>{let n=[];if(i){const i=t.querySelectorAll(e);for(let t=0;t{const n=i.replace(/([a-z])([A-Z])/g,"$1-$2");e[n]=t[i]}),e}let S=(()=>{class t{validateStyleProperty(t){return y(t)}matchesElement(t,e){return v(t,e)}containsElement(t,e){return T(t,e)}query(t,e,i){return C(t,e,i)}computeStyle(t,e,i){return i||""}animate(t,e,i,n,s,r=[],a){return new o.ZN(i,n)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),k=(()=>{class t{}return t.NOOP=new S,t})();function I(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:x(parseFloat(e[1]),e[2])}function x(t,e){switch(e){case"s":return 1e3*t;default:return t}}function R(t,e,i){return t.hasOwnProperty("duration")?t:function(t,e,i){let n,s=0,o="";if("string"==typeof t){const i=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===i)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};n=x(parseFloat(i[1]),i[2]);const r=i[3];null!=r&&(s=x(parseFloat(r),i[4]));const a=i[5];a&&(o=a)}else n=t;if(!i){let i=!1,o=e.length;n<0&&(e.push("Duration values below 0 are not allowed for this animation step."),i=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),i=!0),i&&e.splice(o,0,`The provided timing value "${t}" is invalid.`)}return{duration:n,delay:s,easing:o}}(t,e,i)}function O(t,e={}){return Object.keys(t).forEach(i=>{e[i]=t[i]}),e}function P(t,e,i={}){if(e)for(let n in t)i[n]=t[n];else O(t,i);return i}function D(t,e,i){return i?e+":"+i+";":""}function M(t){let e="";for(let i=0;i{const s=H(n);i&&!i.hasOwnProperty(n)&&(i[n]=t.style[s]),t.style[s]=e[n]}),a()&&M(t))}function N(t,e){t.style&&(Object.keys(e).forEach(e=>{const i=H(e);t.style[i]=""}),a()&&M(t))}function z(t){return Array.isArray(t)?1==t.length?t[0]:(0,o.vP)(t):t}const Z=new RegExp("{{\\s*(.+?)\\s*}}","g");function B(t){let e=[];if("string"==typeof t){let i;for(;i=Z.exec(t);)e.push(i[1]);Z.lastIndex=0}return e}function F(t,e,i){const n=t.toString(),s=n.replace(Z,(t,n)=>{let s=e[n];return e.hasOwnProperty(n)||(i.push(`Please provide a value for the animation param ${n}`),s=""),s.toString()});return s==n?t:s}function U(t){const e=[];let i=t.next();for(;!i.done;)e.push(i.value),i=t.next();return e}const q=/-+([a-z0-9])/g;function H(t){return t.replace(q,(...t)=>t[1].toUpperCase())}function G(t,e){return 0===t||0===e}function j(t,e,i){const n=Object.keys(i);if(n.length&&e.length){let o=e[0],r=[];if(n.forEach(t=>{o.hasOwnProperty(t)||r.push(t),o[t]=i[t]}),r.length)for(var s=1;sfunction(t,e,i){if(":"==t[0]){const n=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,i);if("function"==typeof n)return void e.push(n);t=n}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return i.push(`The provided transition expression "${t}" is not supported`),e;const s=n[1],o=n[2],r=n[3];e.push(Q(s,r)),"<"!=o[0]||"*"==s&&"*"==r||e.push(Q(r,s))}(t,i,e)):i.push(t),i}const $=new Set(["true","1"]),J=new Set(["false","0"]);function Q(t,e){const i=$.has(t)||J.has(t),n=$.has(e)||J.has(e);return(s,o)=>{let r="*"==t||t==s,a="*"==e||e==o;return!r&&i&&"boolean"==typeof s&&(r=s?$.has(t):J.has(t)),!a&&n&&"boolean"==typeof o&&(a=o?$.has(e):J.has(e)),r&&a}}const W=new RegExp("s*:selfs*,?","g");function X(t,e,i){return new tt(t).build(e,i)}class tt{constructor(t){this._driver=t}build(t,e){const i=new et(e);return this._resetContextStyleTimingState(i),Y(this,z(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,n=e.depCount=0;const s=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const i=t,n=i.name;n.toString().split(/\s*,\s*/).forEach(t=>{i.name=t,s.push(this.visitState(i,e))}),i.name=n}else if(1==t.type){const s=this.visitTransition(t,e);i+=s.queryCount,n+=s.depCount,o.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:o,queryCount:i,depCount:n,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),n=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=n||{};if(i.styles.forEach(t=>{if(it(t)){const e=t;Object.keys(e).forEach(t=>{B(e[t]).forEach(t=>{o.hasOwnProperty(t)||s.add(t)})})}}),s.size){const i=U(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${i.join(", ")}`)}}return{type:0,name:t.name,style:i,options:n?{params:n}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=Y(this,z(t.animation),e);return{type:1,matchers:V(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:nt(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>Y(this,t,e)),options:nt(t.options)}}visitGroup(t,e){const i=e.currentTime;let n=0;const s=t.steps.map(t=>{e.currentTime=i;const s=Y(this,t,e);return n=Math.max(n,e.currentTime),s});return e.currentTime=n,{type:3,steps:s,options:nt(t.options)}}visitAnimate(t,e){const i=function(t,e){let i=null;if(t.hasOwnProperty("duration"))i=t;else if("number"==typeof t)return st(R(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=st(0,0,"");return t.dynamic=!0,t.strValue=n,t}return i=i||R(n,e),st(i.duration,i.delay,i.easing)}(t.timings,e.errors);let n;e.currentAnimateTimings=i;let s=t.styles?t.styles:(0,o.oB)({});if(5==s.type)n=this.visitKeyframes(s,e);else{let s=t.styles,r=!1;if(!s){r=!0;const t={};i.easing&&(t.easing=i.easing),s=(0,o.oB)(t)}e.currentTime+=i.duration+i.delay;const a=this.visitStyle(s,e);a.isEmptyStep=r,n=a}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==o.l3?i.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):i.push(t)}):i.push(t.styles);let n=!1,s=null;return i.forEach(t=>{if(it(t)){const e=t,i=e.easing;if(i&&(s=i,delete e.easing),!n)for(let t in e)if(e[t].toString().indexOf("{{")>=0){n=!0;break}}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:n,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let n=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(i=>{if(!this._driver.validateStyleProperty(i))return void e.errors.push(`The provided animation property "${i}" is not a supported CSS property for animations`);const o=e.collectedStyles[e.currentQuerySelector],r=o[i];let a=!0;r&&(s!=n&&s>=r.startTime&&n<=r.endTime&&(e.errors.push(`The CSS property "${i}" that exists between the times of "${r.startTime}ms" and "${r.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${n}ms"`),a=!1),s=r.startTime),a&&(o[i]={startTime:s,endTime:n}),e.options&&function(t,e,i){const n=e.params||{},s=B(t);s.length&&s.forEach(t=>{n.hasOwnProperty(t)||i.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[i],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let n=0;const s=[];let o=!1,r=!1,a=0;const c=t.steps.map(t=>{const i=this._makeStyleAst(t,e);let c=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(it(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(it(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}return e}(i.styles),l=0;return null!=c&&(n++,l=i.offset=c),r=r||l<0||l>1,o=o||l0&&n{const o=u>0?n==h?1:u*n:s[n],r=o*g;e.currentTime=d+p.delay+r,p.duration=r,this._validateStyleAst(t,e),t.offset=o,i.styles.push(t)}),i}visitReference(t,e){return{type:8,animation:Y(this,z(t.animation),e),options:nt(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:nt(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:nt(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;const[s,o]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(W,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,p(e.collectedStyles,e.currentQuerySelector,{});const r=Y(this,z(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:n.limit||0,optional:!!n.optional,includeSelf:o,animation:r,originalSelector:t.selector,options:nt(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:R(t.timings,e.errors,!0);return{type:12,animation:Y(this,z(t.animation),e),timings:i,options:null}}}class et{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function it(t){return!Array.isArray(t)&&"object"==typeof t}function nt(t){var e;return t?(t=O(t)).params&&(t.params=(e=t.params)?O(e):null):t={},t}function st(t,e,i){return{duration:t,delay:e,easing:i}}function ot(t,e,i,n,s,o,r=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:s,delay:o,totalTime:s+o,easing:r,subTimeline:a}}class rt{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const at=new RegExp(":enter","g"),ct=new RegExp(":leave","g");function lt(t,e,i,n,s,o={},r={},a,c,l=[]){return(new ut).buildKeyframes(t,e,i,n,s,o,r,a,c,l)}class ut{buildKeyframes(t,e,i,n,s,o,r,a,c,l=[]){c=c||new rt;const u=new dt(t,e,c,n,s,l,[]);u.options=a,u.currentTimeline.setStyles([o],null,u.errors,a),Y(this,i,u);const h=u.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(r).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([r],null,u.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[ot(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.consume(e.element);if(i){const n=e.createSubContext(t.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,n,n.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let n=e.currentTimeline.currentTime;const s=null!=i.duration?I(i.duration):null,o=null!=i.delay?I(i.delay):null;return 0!==s&&t.forEach(t=>{const i=e.appendInstructionToTimeline(t,s,o);n=Math.max(n,i.duration+i.delay)}),n}visitReference(t,e){e.updateOptions(t.options,!0),Y(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let n=e;const s=t.options;if(s&&(s.params||s.delay)&&(n=e.createSubContext(s),n.transformIntoNewTimeline(),null!=s.delay)){6==n.previousNode.type&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=ht);const t=I(s.delay);n.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>Y(this,t,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let n=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?I(t.options.delay):0;t.steps.forEach(o=>{const r=e.createSubContext(t.options);s&&r.delayNextStep(s),Y(this,o,r),n=Math.max(n,r.currentTimeline.currentTime),i.push(r.currentTimeline)}),i.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(n),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return R(e.params?F(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,n=e.currentTimeline.duration,s=i.duration,o=e.createSubContext().currentTimeline;o.easing=i.easing,t.styles.forEach(t=>{o.forwardTime((t.offset||0)*s),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(n+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,n=t.options||{},s=n.delay?I(n.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=ht);let o=i;const r=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!n.optional,e.errors);e.currentQueryTotal=r.length;let a=null;r.forEach((i,n)=>{e.currentQueryIndex=n;const r=e.createSubContext(t.options,i);s&&r.delayNextStep(s),i===e.element&&(a=r.currentTimeline),Y(this,t.animation,r),r.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,r.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,n=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),r=o*(e.currentQueryTotal-1);let a=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=r-a;break;case"full":a=i.currentStaggerTime}const c=e.currentTimeline;a&&c.delayNextStep(a);const l=c.currentTime;Y(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-l+(n.startTime-i.currentTimeline.startTime)}}const ht={};class dt{constructor(t,e,i,n,s,o,r,a){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=s,this.errors=o,this.timelines=r,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ht,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new pt(this._driver,e,0),r.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let n=this.options;null!=i.duration&&(n.duration=I(i.duration)),null!=i.delay&&(n.delay=I(i.delay));const s=i.params;if(s){let t=n.params;t||(t=this.options.params={}),Object.keys(s).forEach(i=>{e&&t.hasOwnProperty(i)||(t[i]=F(s[i],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(t=>{i[t]=e[t]})}}return t}createSubContext(t=null,e,i){const n=e||this.element,s=new dt(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=ht,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const n={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new gt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(s),n}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,n,s,o){let r=[];if(n&&r.push(this.element),t.length>0){t=(t=t.replace(at,"."+this._enterClassName)).replace(ct,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=i);0!==i&&(e=i<0?e.slice(e.length+i,e.length):e.slice(0,i)),r.push(...e)}return s||0!=r.length||o.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),r}}class pt{constructor(t,e,i,n){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),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.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new pt(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||o.l3,this._currentKeyframe[t]=o.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,n){e&&(this._previousKeyframe.easing=e);const s=n&&n.params||{},r=function(t,e){const i={};let n;return t.forEach(t=>{"*"===t?(n=n||Object.keys(e),n.forEach(t=>{i[t]=o.l3})):P(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=F(r[t],s,i);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:o.l3),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],n=t._styleSummary[e];(!i||n.time>i.time)&&this._updateStyle(e,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let n=[];this._keyframes.forEach((s,r)=>{const a=P(s,!0);Object.keys(a).forEach(i=>{const n=a[i];n==o.k1?t.add(i):n==o.l3&&e.add(i)}),i||(a.offset=r/this.duration),n.push(a)});const s=t.size?U(t.values()):[],r=e.size?U(e.values()):[];if(i){const t=n[0],e=O(t);t.offset=0,e.offset=1,n=[t,e]}return ot(this.element,n,s,r,this.duration,this.startTime,this.easing,!1)}}class gt extends pt{constructor(t,e,i,n,s,o,r=!1){super(t,e,o.delay),this.element=e,this.keyframes=i,this.preStyleProps=n,this.postStyleProps=s,this._stretchStartingKeyframe=r,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],o=i+e,r=e/o,a=P(t[0],!1);a.offset=0,s.push(a);const c=P(t[0],!1);c.offset=ft(r),s.push(c);const l=t.length-1;for(let n=1;n<=l;n++){let r=P(t[n],!1);r.offset=ft((e+r.offset*i)/o),s.push(r)}i=o,e=0,n="",t=s}return ot(this.element,t,this.preStyleProps,this.postStyleProps,i,e,n,!0)}}function ft(t,e=3){const i=Math.pow(10,e-1);return Math.round(t*i)/i}class mt{}class bt extends mt{normalizePropertyName(t,e){return H(t)}normalizeStyleValue(t,e,i,n){let s="";const o=i.toString().trim();if(_t[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const e=i.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&n.push(`Please provide a CSS unit value for ${t}:${i}`)}return o+s}}const _t=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("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".split(",")))();function wt(t,e,i,n,s,o,r,a,c,l,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:i,fromStyles:o,toState:n,toStyles:r,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:h,errors:d}}const At={};class yt{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,n){return function(t,e,i,n,s){return t.some(t=>t(e,i,n,s))}(this.ast.matchers,t,e,i,n)}buildStyles(t,e,i){const n=this._stateStyles["*"],s=this._stateStyles[t],o=n?n.buildStyles(e,i):{};return s?s.buildStyles(e,i):o}build(t,e,i,n,s,o,r,a,c,l){const u=[],h=this.ast.options&&this.ast.options.params||At,d=this.buildStyles(i,r&&r.params||At,u),g=a&&a.params||At,f=this.buildStyles(n,g,u),m=new Set,b=new Map,_=new Map,w="void"===n,A={params:Object.assign(Object.assign({},h),g)},y=l?[]:lt(t,e,this.ast.animation,s,o,d,f,A,c,u);let v=0;if(y.forEach(t=>{v=Math.max(t.duration+t.delay,v)}),u.length)return wt(e,this._triggerName,i,n,w,d,f,[],[],b,_,v,u);y.forEach(t=>{const i=t.element,n=p(b,i,{});t.preStyleProps.forEach(t=>n[t]=!0);const s=p(_,i,{});t.postStyleProps.forEach(t=>s[t]=!0),i!==e&&m.add(i)});const T=U(m.values());return wt(e,this._triggerName,i,n,w,d,f,y,T,b,_,v)}}class vt{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const i={},n=O(this.defaultParams);return Object.keys(t).forEach(e=>{const i=t[e];null!=i&&(n[e]=i)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let o=s[t];o.length>1&&(o=F(o,n,e)),i[t]=o})}}),i}}class Tt{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new vt(t.style,t.options&&t.options.params||{})}),Ct(this.states,"true","1"),Ct(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new yt(t,e,this.states))}),this.fallbackTransition=new yt(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,n){return this.transitionFactories.find(s=>s.match(t,e,i,n))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function Ct(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}const Et=new rt;class St{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],n=X(this._driver,e,i);if(i.length)throw new Error(`Unable to build the animation due to the following errors: ${i.join("\n")}`);this._animations[t]=n}_buildPlayer(t,e,i){const n=t.element,s=l(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(n,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const n=[],s=this._animations[t];let r;const a=new Map;if(s?(r=lt(this._driver,e,s,"ng-enter","ng-leave",{},{},i,Et,n),r.forEach(t=>{const e=p(a,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(n.push("The requested animation doesn't exist or has already been destroyed"),r=[]),n.length)throw new Error(`Unable to create the animation due to the following errors: ${n.join("\n")}`);a.forEach((t,e)=>{Object.keys(t).forEach(i=>{t[i]=this._driver.computeStyle(e,i,o.l3)})});const l=c(r.map(t=>{const e=a.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=l,l.onDestroy(()=>this.destroy(t)),this.players.push(l),l}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,i,n){const s=d(e,"","","");return u(this._getPlayer(t),i,s,n),()=>{}}command(t,e,i,n){if("register"==i)return void this.register(t,n[0]);if("create"==i)return void this.create(t,e,n[0]||{});const s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(t)}}}const kt=[],It={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},xt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Rt{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=null!=(n=i?t.value:t)?n:null,i){const e=O(t);delete e.value,this.options=e}else this.options={};var n;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(i=>{null==t[i]&&(t[i]=e[i])})}}}const Ot=new Rt("void");class Pt{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Bt(e,this._hostClassName)}listen(t,e,i,n){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=i)&&"done"!=s)throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);var s;const o=p(this._elementListeners,t,[]),r={name:e,phase:i,callback:n};o.push(r);const a=p(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Bt(t,"ng-trigger"),Bt(t,"ng-trigger-"+e),a[e]=Ot),()=>{this._engine.afterFlush(()=>{const t=o.indexOf(r);t>=0&&o.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,i,n=!0){const s=this._getTrigger(e),o=new Mt(this.id,e,t);let r=this._engine.statesByElement.get(t);r||(Bt(t,"ng-trigger"),Bt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,r={}));let a=r[e];const c=new Rt(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),r[e]=c,a||(a=Ot),"void"!==c.value&&a.value===c.value){if(!function(t,e){const i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(let s=0;s{N(t,i),L(t,n)})}return}const l=p(this._engine.playersByElement,t,[]);l.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=s.matchTransition(a.value,c.value,t,c.params),h=!1;if(!u){if(!n)return;u=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:c,player:o,isFallbackTransition:h}),h||(Bt(t,"ng-animate-queued"),o.onStart(()=>{Ft(t,"ng-animate-queued")})),o.onDone(()=>{let e=this.players.indexOf(o);e>=0&&this.players.splice(e,1);const i=this._engine.playersByElement.get(t);if(i){let t=i.indexOf(o);t>=0&&i.splice(t,1)}}),this.players.push(o),l.push(o),o}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,".ng-trigger",!0);i.forEach(t=>{if(t.__ng_removed)return;const i=this._engine.fetchNamespacesByElement(t);i.size?i.forEach(i=>i.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,i,n){const s=this._engine.statesByElement.get(t);if(s){const o=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const i=this.trigger(t,e,"void",n);i&&o.push(i)}}),o.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&c(o).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const n=new Set;e.forEach(e=>{const s=e.name;if(n.has(s))return;n.add(s);const o=this._triggers[s].fallbackTransition,r=i[s]||Ot,a=new Rt("void"),c=new Mt(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:o,fromState:r,toState:a,player:c,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let n=!1;if(i.totalAnimations){const e=i.players.length?i.playersByQueriedElement.get(t):[];if(e&&e.length)n=!0;else{let e=t;for(;e=e.parentNode;)if(i.statesByElement.get(e)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(t),n)i.markElementAsRemoved(this.id,t,!1,e);else{const n=t.__ng_removed;n&&n!==It||(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){Bt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const n=i.player;if(n.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(e=>{if(e.name==i.triggerName){const n=d(s,i.triggerName,i.fromState.value,i.toState.value);n._data=t,u(i.player,e.phase,n,e.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):e.push(i)}),this._queue=[],e.sort((t,e)=>{const i=t.transition.ast.depCount,n=e.transition.ast.depCount;return 0==i||0==n?i-n:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class Dt{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,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=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const i=new Pt(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList.length-1;if(i>=0){let n=!1;for(let s=i;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),n=!0;break}n||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(i);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const t=Object.keys(i);for(let n=0;n=0&&this.collectedLeaveElements.splice(t,1)}if(t){const n=this._fetchNamespace(t);n&&n.insertNode(e,i)}n&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Bt(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Ft(t,"ng-animate-disabled"))}removeNode(t,e,i,n){if(Lt(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n),i){const i=this.namespacesByHostElement.get(e);i&&i.id!==t&&i.removeNode(e,n)}}else this._onRemovalComplete(e,n)}markElementAsRemoved(t,e,i,n){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}listen(t,e,i,n,s){return Lt(e)?this._fetchNamespace(t).listen(e,i,n,s):()=>{}}_buildInstruction(t,e,i,n,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return c(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=It,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;it()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?c(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const i=new rt,n=[],s=new Map,r=[],a=new Map,l=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(t=>{h.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let i=0;i{const i="ng-enter"+b++;m.set(e,i),t.forEach(t=>Bt(t,i))});const _=[],w=new Set,A=new Set;for(let o=0;ow.add(t)):A.add(t))}const y=new Map,v=Zt(g,Array.from(w));v.forEach((t,e)=>{const i="ng-leave"+b++;y.set(e,i),t.forEach(t=>Bt(t,i))}),t.push(()=>{f.forEach((t,e)=>{const i=m.get(e);t.forEach(t=>Ft(t,i))}),v.forEach((t,e)=>{const i=y.get(e);t.forEach(t=>Ft(t,i))}),_.forEach(t=>{this.processLeaveNode(t)})});const T=[],C=[];for(let o=this._namespaceList.length-1;o>=0;o--)this._namespaceList[o].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(T.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const o=!d||!this.driver.containsElement(d,s),c=y.get(s),h=m.get(s),g=this._buildInstruction(t,i,h,c,o);if(g.errors&&g.errors.length)C.push(g);else{if(o)return e.onStart(()=>N(s,g.fromStyles)),e.onDestroy(()=>L(s,g.toStyles)),void n.push(e);if(t.isFallbackTransition)return e.onStart(()=>N(s,g.fromStyles)),e.onDestroy(()=>L(s,g.toStyles)),void n.push(e);g.timelines.forEach(t=>t.stretchStartingKeyframe=!0),i.append(s,g.timelines),r.push({instruction:g,player:e,element:s}),g.queriedElements.forEach(t=>p(a,t,[]).push(e)),g.preStyleProps.forEach((t,e)=>{const i=Object.keys(t);if(i.length){let t=l.get(e);t||l.set(e,t=new Set),i.forEach(e=>t.add(e))}}),g.postStyleProps.forEach((t,e)=>{const i=Object.keys(t);let n=u.get(e);n||u.set(e,n=new Set),i.forEach(t=>n.add(t))})}});if(C.length){const t=[];C.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),T.forEach(t=>t.destroy()),this.reportError(t)}const E=new Map,S=new Map;r.forEach(t=>{const e=t.element;i.has(e)&&(S.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,E))}),n.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{p(E,e,[]).push(t),t.destroy()})});const k=_.filter(t=>Ht(t,l,u)),I=new Map;zt(I,this.driver,A,u,o.l3).forEach(t=>{Ht(t,l,u)&&k.push(t)});const x=new Map;f.forEach((t,e)=>{zt(x,this.driver,new Set(t),l,o.k1)}),k.forEach(t=>{const e=I.get(t),i=x.get(t);I.set(t,Object.assign(Object.assign({},e),i))});const R=[],O=[],P={};r.forEach(t=>{const{element:e,player:o,instruction:r}=t;if(i.has(e)){if(h.has(e))return o.onDestroy(()=>L(e,r.toStyles)),o.disabled=!0,o.overrideTotalTime(r.totalTime),void n.push(o);let t=P;if(S.size>1){let i=e;const n=[];for(;i=i.parentNode;){const e=S.get(i);if(e){t=e;break}n.push(i)}n.forEach(e=>S.set(e,t))}const i=this._buildAnimation(o.namespaceId,r,E,s,x,I);if(o.setRealPlayer(i),t===P)R.push(o);else{const e=this.playersByElement.get(t);e&&e.length&&(o.parentPlayer=c(e)),n.push(o)}}else N(e,r.fromStyles),o.onDestroy(()=>L(e,r.toStyles)),O.push(o),h.has(e)&&n.push(o)}),O.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const i=c(e);t.setRealPlayer(i)}}),n.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let o=0;o<_.length;o++){const t=_[o],e=t.__ng_removed;if(Ft(t,"ng-leave"),e&&e.hasAnimation)continue;let i=[];if(a.size){let e=a.get(t);e&&e.length&&i.push(...e);let n=this.driver.query(t,".ng-animating",!0);for(let t=0;t!t.destroyed);n.length?Ut(this,t,n):this.processLeaveNode(t)}return _.length=0,R.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),R}elementContainsData(t,e){let i=!1;const n=e.__ng_removed;return n&&n.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,n,s){let o=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(o=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||"void"==s;e.forEach(e=>{e.queued||(t||e.triggerName==n)&&o.push(e)})}}return(i||n)&&(o=o.filter(t=>!(i&&i!=t.namespaceId||n&&n!=t.triggerName))),o}_beforeAnimationBuild(t,e,i){const n=e.element,s=e.isRemovalTransition?void 0:t,o=e.isRemovalTransition?void 0:e.triggerName;for(const r of e.timelines){const t=r.element,a=t!==n,c=p(i,t,[]);this._getPreviousPlayers(t,a,s,o,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),c.push(t)})}N(n,e.fromStyles)}_buildAnimation(t,e,i,n,s,r){const a=e.triggerName,u=e.element,h=[],d=new Set,g=new Set,f=e.timelines.map(e=>{const c=e.element;d.add(c);const p=c.__ng_removed;if(p&&p.removedBeforeQueried)return new o.ZN(e.duration,e.delay);const f=c!==u,m=function(t){const e=[];return qt(t,e),e}((i.get(c)||kt).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===c),b=s.get(c),_=r.get(c),w=l(0,this._normalizer,0,e.keyframes,b,_),A=this._buildPlayer(e,w,m);if(e.subTimeline&&n&&g.add(c),f){const e=new Mt(t,a,c);e.setRealPlayer(A),h.push(e)}return A});h.forEach(t=>{p(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,i){let n;if(t instanceof Map){if(n=t.get(e),n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&t.delete(e)}}else if(n=t[e],n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&delete t[e]}return n}(this.playersByQueriedElement,t.element,t))}),d.forEach(t=>Bt(t,"ng-animating"));const m=c(f);return m.onDestroy(()=>{d.forEach(t=>Ft(t,"ng-animating")),L(u,e.toStyles)}),g.forEach(t=>{p(n,t,[]).push(m)}),m}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new o.ZN(t.duration,t.delay)}}class Mt{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new o.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>u(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){p(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Lt(t){return t&&1===t.nodeType}function Nt(t,e){const i=t.style.display;return t.style.display=null!=e?e:"none",i}function zt(t,e,i,n,s){const o=[];i.forEach(t=>o.push(Nt(t)));const r=[];n.forEach((i,n)=>{const o={};i.forEach(t=>{const i=o[t]=e.computeStyle(n,t,s);i&&0!=i.length||(n.__ng_removed=xt,r.push(n))}),t.set(n,o)});let a=0;return i.forEach(t=>Nt(t,o[a++])),r}function Zt(t,e){const i=new Map;if(t.forEach(t=>i.set(t,[])),0==e.length)return i;const n=new Set(e),s=new Map;function o(t){if(!t)return 1;let e=s.get(t);if(e)return e;const r=t.parentNode;return e=i.has(r)?r:n.has(r)?1:o(r),s.set(t,e),e}return e.forEach(t=>{const e=o(t);1!==e&&i.get(e).push(t)}),i}function Bt(t,e){if(t.classList)t.classList.add(e);else{let i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function Ft(t,e){if(t.classList)t.classList.remove(e);else{let i=t.$$classes;i&&delete i[e]}}function Ut(t,e,i){c(i).onDone(()=>t.processLeaveNode(e))}function qt(t,e){for(let i=0;is.add(t)):e.set(t,n),i.delete(t),!0}class Gt{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Dt(t,e,i),this._timelineEngine=new St(t,e,i),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,i,n,s){const o=t+"-"+n;let r=this._triggerCache[o];if(!r){const t=[],e=X(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${n}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);r=function(t,e){return new Tt(t,e)}(n,e),this._triggerCache[o]=r}this._transitionEngine.registerTrigger(e,n,r)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,n){this._transitionEngine.insertNode(t,e,i,n)}onRemove(t,e,i,n){this._transitionEngine.removeNode(t,e,n||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,n){if("@"==i.charAt(0)){const[t,s]=g(i);this._timelineEngine.command(t,e,s,n)}else this._transitionEngine.trigger(t,e,i,n)}listen(t,e,i,n,s){if("@"==i.charAt(0)){const[t,n]=g(i);return this._timelineEngine.listen(t,e,n,s)}return this._transitionEngine.listen(t,e,i,n,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function jt(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=Kt(e[0]),e.length>1&&(n=Kt(e[e.length-1]))):e&&(i=Kt(e)),i||n?new Yt(t,i,n):null}let Yt=(()=>{class t{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&L(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(L(this._element,this._initialStyles),this._endStyles&&(L(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(N(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(N(this._element,this._endStyles),this._endStyles=null),L(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Kt(t){let e=null;const i=Object.keys(t);for(let n=0;nthis._handleCallback(t)}apply(){!function(t,e){const i=ee(t,"").trim();i.length&&(function(t,e){let i=0;for(let n=0;n=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Xt(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const i=ee(t,"").split(","),n=Wt(i,e);n>=0&&(i.splice(n,1),te(t,"",i.join(",")))}(this._element,this._name))}}function Jt(t,e,i){te(t,"PlayState",i,Qt(t,e))}function Qt(t,e){const i=ee(t,"");return i.indexOf(",")>0?Wt(i.split(","),e):Wt([i],e)}function Wt(t,e){for(let i=0;i=0)return i;return-1}function Xt(t,e,i){i?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function te(t,e,i,n){const s="animation"+e;if(null!=n){const e=t.style[s];if(e.length){const t=e.split(",");t[n]=i,i=t.join(",")}}t.style[s]=i}function ee(t,e){return t.style["animation"+e]||""}class ie{constructor(t,e,i,n,s,o,r,a){this.element=t,this.keyframes=e,this.animationName=i,this._duration=n,this._delay=s,this._finalStyles=r,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=n+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new $t(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(i=>{"offset"!=i&&(t[i]=e?this._finalStyles[i]:K(this.element,i))})}this.currentSnapshot=t}}class ne extends o.ZN{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=E(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class se{constructor(){this._count=0}validateStyleProperty(t){return y(t)}matchesElement(t,e){return v(t,e)}containsElement(t,e){return T(t,e)}query(t,e,i){return C(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(t=>E(t));let n=`@keyframes ${e} {\n`,s="";i.forEach(t=>{s=" ";const e=parseFloat(t.offset);n+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const i=t[e];switch(e){case"offset":return;case"easing":return void(i&&(n+=`${s}animation-timing-function: ${i};\n`));default:return void(n+=`${s}${e}: ${i};\n`)}}),n+=`${s}}\n`}),n+="}\n";const o=document.createElement("style");return o.textContent=n,o}animate(t,e,i,n,s,o=[],r){const a=o.filter(t=>t instanceof ie),c={};G(i,n)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const l=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(i=>{"offset"!=i&&"easing"!=i&&(e[i]=t[i])})}),e}(e=j(t,e,c));if(0==i)return new ne(t,l);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e);(function(t){var e;const i=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&i instanceof ShadowRoot?i:document.head})(t).appendChild(h);const d=jt(t,e),p=new ie(t,e,u,i,n,s,l,d);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}}class oe{constructor(t,e,i,n){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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}_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(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:K(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class re{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ae().toString()),this._cssKeyframesDriver=new se}validateStyleProperty(t){return y(t)}matchesElement(t,e){return v(t,e)}containsElement(t,e){return T(t,e)}query(t,e,i){return C(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,n,s,o=[],r){if(!r&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,s,o);const a={duration:i,delay:n,fill:0==n?"both":"forwards"};s&&(a.easing=s);const c={},l=o.filter(t=>t instanceof oe);G(i,n)&&l.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const u=jt(t,e=j(t,e=e.map(t=>P(t,!1)),c));return new oe(t,e,a,u)}}function ae(){return r()&&Element.prototype.animate||{}}var ce=i(61511);let le=(()=>{class t extends o._j{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:n.ifc.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?(0,o.vP)(t):t;return de(this._renderer,null,e,"register",[i]),new ue(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.FYo),n.LFG(ce.K0))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();class ue extends o.LC{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new he(this._id,t,e||{},this._renderer)}}class he{constructor(t,e,i,n){this.id=t,this.element=e,this._renderer=n,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return de(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function de(t,e,i,n,s){return t.setProperty(e,`@@${i}:${n}`,s)}let pe=(()=>{class t{constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const i=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(i);return t||(t=new ge("",i,this.engine),this._rendererCache.set(i,t)),t}const n=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const o=e=>{Array.isArray(e)?e.forEach(o):this.engine.registerTrigger(n,s,t,e.name,e)};return e.data.animation.forEach(o),new fe(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){t>=0&&te(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,i]=t;e(i)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,i]))}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 t.\u0275fac=function(e){return new(e||t)(n.LFG(n.FYo),n.LFG(Gt),n.LFG(n.R0b))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();class ge{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,n=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,n)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,n){this.delegate.setAttribute(t,e,i,n)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,n){this.delegate.setStyle(t,e,i,n)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class fe extends ge{constructor(t,e,i,n){super(e,i,n),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const n=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,n,s,o,t=>{this.factory.scheduleListenerCallback(t._data||-1,i,t)})}return this.delegate.listen(t,e,i)}}let me=(()=>{class t extends Gt{constructor(t,e,i){super(t.body,e,i)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(ce.K0),n.LFG(k),n.LFG(mt))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();const be=new n.OlP("AnimationModuleType"),_e=[{provide:o._j,useClass:le},{provide:mt,useFactory:function(){return new bt}},{provide:Gt,useClass:me},{provide:n.FYo,useFactory:function(t,e,i){return new pe(t,e,i)},deps:[s.se,Gt,n.R0b]}],we=[{provide:k,useFactory:function(){return"function"==typeof ae()?new re:new se}},{provide:be,useValue:"BrowserAnimations"},..._e],Ae=[{provide:k,useClass:S},{provide:be,useValue:"NoopAnimations"},..._e];let ye=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?Ae:we}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:we,imports:[s.b2]}),t})()},30269:function(t,e,i){"use strict";i.d(e,{b2:function(){return Z},H7:function(){return D},Dx:function(){return F},q6:function(){return N},se:function(){return T}});var n=i(61511),s=i(31572);class o extends n.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class r extends o{static makeCurrent(){(0,n.HT)(new r)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(c=c||document.querySelector("base"),c?c.getAttribute("href"):null);return null==e?null:function(t){a=a||document.createElement("a"),a.setAttribute("href",t);const e=a.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){c=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return(0,n.Mx)(document.cookie,t)}}let a,c=null;const l=new s.OlP("TRANSITION_ID"),u=[{provide:s.ip1,useFactory:function(t,e,i){return()=>{i.get(s.CZH).donePromise.then(()=>{const i=(0,n.q)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>i.remove(t))})}},deps:[l,n.K0,s.zs3],multi:!0}];class h{static init(){(0,s.VLi)(new h)}addToWindow(t){s.dqk.getAngularTestability=(e,i=!0)=>{const n=t.findTestabilityInTree(e,i);if(null==n)throw new Error("Could not find testability for element.");return n},s.dqk.getAllAngularTestabilities=()=>t.getAllTestabilities(),s.dqk.getAllAngularRootElements=()=>t.getAllRootElements(),s.dqk.frameworkStabilizers||(s.dqk.frameworkStabilizers=[]),s.dqk.frameworkStabilizers.push(t=>{const e=s.dqk.getAllAngularTestabilities();let i=e.length,n=!1;const o=function(e){n=n||e,i--,0==i&&t(n)};e.forEach(function(t){t.whenStable(o)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:i?(0,n.q)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let d=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const p=new s.OlP("EventManagerPlugins");let g=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,i){return this._findPluginFor(e).addEventListener(t,e,i)}addGlobalEventListener(t,e,i){return this._findPluginFor(e).addGlobalEventListener(t,e,i)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const i=this._plugins;for(let n=0;n{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),b=(()=>{class t extends m{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,i){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,i.push(e.appendChild(n))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(_),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,i)=>{this._addStylesToHost(t,i,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(_))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function _(t){(0,n.q)().remove(t)}const w={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/"},A=/%COMP%/g;function y(t,e,i){for(let n=0;n{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let T=(()=>{class t{constructor(t,e,i){this.eventManager=t,this.sharedStylesHost=e,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new C(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case s.ifc.Emulated:{let i=this.rendererByCompId.get(e.id);return i||(i=new E(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,i)),i.applyToHost(t),i}case 1:case s.ifc.ShadowDom:return new S(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=y(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(g),s.LFG(b),s.LFG(s.AFp))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class C{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(w[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,n){if(n){e=n+":"+e;const s=w[n];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const n=w[i];n?t.removeAttributeNS(n,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,n){n&(s.JOm.DashCase|s.JOm.Important)?t.style.setProperty(e,i,n&s.JOm.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&s.JOm.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,v(i)):this.eventManager.addEventListener(t,e,v(i))}}class E extends C{constructor(t,e,i,n){super(t),this.component=i;const s=y(n+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(A,n+"-"+i.id),this.hostAttr="_nghost-%COMP%".replace(A,n+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class S extends C{constructor(t,e,i,n){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=y(n.id,n.styles,[]);for(let o=0;o{class t extends f{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,i){return t.addEventListener(e,i,!1),()=>this.removeEventListener(t,e,i)}removeEventListener(t,e,i){return t.removeEventListener(e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const I=["alt","control","meta","shift"],x={"\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"},R={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"},O={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let P=(()=>{class t extends f{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,s){const o=t.parseEventName(i),r=t.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,n.q)().onAndCancel(e,o.domEventName,r))}static parseEventName(e){const i=e.toLowerCase().split("."),n=i.shift();if(0===i.length||"keydown"!==n&&"keyup"!==n)return null;const s=t._normalizeKey(i.pop());let o="";if(I.forEach(t=>{const e=i.indexOf(t);e>-1&&(i.splice(e,1),o+=t+".")}),o+=s,0!=i.length||0===s.length)return null;const r={};return r.domEventName=n,r.fullKey=o,r}static getEventFullKey(t){let e="",i=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&R.hasOwnProperty(e)&&(e=R[e]))}return x[e]||e}(t);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),I.forEach(n=>{n!=i&&(0,O[n])(t)&&(e+=n+".")}),e+=i,e}static eventCallback(e,i,n){return s=>{t.getEventFullKey(s)===e&&n.runGuarded(()=>i(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),D=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,s.Yz7)({factory:function(){return(0,s.LFG)(L)},token:t,providedIn:"root"}),t})();function M(t){return new L(t.get(n.K0))}let L=(()=>{class t extends D{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case s.q3G.NONE:return e;case s.q3G.HTML:return(0,s.qzn)(e,"HTML")?(0,s.z3N)(e):(0,s.EiD)(this._doc,String(e)).toString();case s.q3G.STYLE:return(0,s.qzn)(e,"Style")?(0,s.z3N)(e):e;case s.q3G.SCRIPT:if((0,s.qzn)(e,"Script"))return(0,s.z3N)(e);throw new Error("unsafe value used in a script context");case s.q3G.URL:return(0,s.yhl)(e),(0,s.qzn)(e,"URL")?(0,s.z3N)(e):(0,s.mCW)(String(e));case s.q3G.RESOURCE_URL:if((0,s.qzn)(e,"ResourceURL"))return(0,s.z3N)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return(0,s.JVY)(t)}bypassSecurityTrustStyle(t){return(0,s.L6k)(t)}bypassSecurityTrustScript(t){return(0,s.eBb)(t)}bypassSecurityTrustUrl(t){return(0,s.LAX)(t)}bypassSecurityTrustResourceUrl(t){return(0,s.pB0)(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=(0,s.Yz7)({factory:function(){return M((0,s.LFG)(s.gxx))},token:t,providedIn:"root"}),t})();const N=(0,s.eFA)(s._c5,"browser",[{provide:s.Lbi,useValue:n.bD},{provide:s.g9A,useValue:function(){r.makeCurrent(),h.init()},multi:!0},{provide:n.K0,useFactory:function(){return(0,s.RDi)(document),document},deps:[]}]),z=[[],{provide:s.zSh,useValue:"root"},{provide:s.qLn,useFactory:function(){return new s.qLn},deps:[]},{provide:p,useClass:k,multi:!0,deps:[n.K0,s.R0b,s.Lbi]},{provide:p,useClass:P,multi:!0,deps:[n.K0]},[],{provide:T,useClass:T,deps:[g,b,s.AFp]},{provide:s.FYo,useExisting:T},{provide:m,useExisting:b},{provide:b,useClass:b,deps:[n.K0]},{provide:s.dDg,useClass:s.dDg,deps:[s.R0b]},{provide:g,useClass:g,deps:[p,s.R0b]},{provide:n.JF,useClass:d,deps:[]},[]];let Z=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:s.AFp,useValue:e.appId},{provide:l,useExisting:s.AFp},u]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(t,12))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:z,imports:[n.ez,s.hGG]}),t})();function B(){return new F((0,s.LFG)(n.K0))}let F=(()=>{class t{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=(0,s.Yz7)({factory:B,token:t,providedIn:"root"}),t})();"undefined"!=typeof window&&window},57629:function(t,e,i){"use strict";i.d(e,{gz:function(){return Yt},m2:function(){return q},OD:function(){return U},GZ:function(){return vi},wN:function(){return ni},F0:function(){return fi},rH:function(){return mi},yS:function(){return bi},Bz:function(){return xi},lC:function(){return wi}});var n=i(61511),s=i(31572),o=i(19764),r=i(40878),a=i(78512),c=i(31305),l=i(48318),u=i(39665),h=i(47930),d=i(31450),p=i(70653),g=i(42875),f=i(55959),m=i(96673);function b(t,e){let i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new _(t,e,i))}}class _{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new w(t,this.accumulator,this.seed,this.hasSeed))}}class w extends m.L{constructor(t,e,i,n){super(t),this.accumulator=e,this._seed=i,this.hasSeed=n,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(n){this.destination.error(n)}this.seed=i,this.destination.next(i)}}var A=i(43835),y=i(98402);function v(t){return function(e){return 0===t?(0,p.c)():e.lift(new T(t))}}class T{constructor(t){if(this.total=t,this.total<0)throw new y.W}call(t,e){return e.subscribe(new C(t,this.total))}}class C extends m.L{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,n=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,n=this.ring;for(let s=0;st.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.lengthn[e]===t)}return t===e}function lt(t){return Array.prototype.concat.apply([],t)}function ut(t){return t.length>0?t[t.length-1]:null}function ht(t,e){for(const i in t)t.hasOwnProperty(i)&&e(t[i],i)}function dt(t){return(0,s.CqO)(t)?t:(0,s.QGY)(t)?(0,o.D)(Promise.resolve(t)):(0,r.of)(t)}const pt={exact:function t(e,i,n){if(!vt(e.segments,i.segments))return!1;if(!_t(e.segments,i.segments,n))return!1;if(e.numberOfChildren!==i.numberOfChildren)return!1;for(const s in i.children){if(!e.children[s])return!1;if(!t(e.children[s],i.children[s],n))return!1}return!0},subset:mt},gt={exact:function(t,e){return at(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>ct(t[i],e[i]))},ignored:()=>!0};function ft(t,e,i){return pt[i.paths](t.root,e.root,i.matrixParams)&>[i.queryParams](t.queryParams,e.queryParams)&&!("exact"===i.fragment&&t.fragment!==e.fragment)}function mt(t,e,i){return bt(t,e,e.segments,i)}function bt(t,e,i,n){if(t.segments.length>i.length){const s=t.segments.slice(0,i.length);return!!vt(s,i)&&!e.hasChildren()&&!!_t(s,i,n)}if(t.segments.length===i.length){if(!vt(t.segments,i))return!1;if(!_t(t.segments,i,n))return!1;for(const i in e.children){if(!t.children[i])return!1;if(!mt(t.children[i],e.children[i],n))return!1}return!0}{const s=i.slice(0,t.segments.length),o=i.slice(t.segments.length);return!!vt(t.segments,s)&&!!_t(t.segments,s,n)&&!!t.children.primary&&bt(t.children.primary,e,o,n)}}function _t(t,e,i){return e.every((e,n)=>gt[i](t[n].parameters,e.parameters))}class wt{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=st(this.queryParams)),this._queryParamMap}toString(){return Et.serialize(this)}}class At{constructor(t,e){this.segments=t,this.children=e,this.parent=null,ht(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return St(this)}}class yt{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=st(this.parameters)),this._parameterMap}toString(){return Dt(this)}}function vt(t,e){return t.length===e.length&&t.every((t,i)=>t.path===e[i].path)}class Tt{}class Ct{parse(t){const e=new Zt(t);return new wt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${kt(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(t=>`${xt(e)}=${xt(t)}`).join("&"):`${xt(e)}=${xt(i)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const Et=new Ct;function St(t){return t.segments.map(t=>Dt(t)).join("/")}function kt(t,e){if(!t.hasChildren())return St(t);if(e){const e=t.children.primary?kt(t.children.primary,!1):"",i=[];return ht(t.children,(t,e)=>{"primary"!==e&&i.push(`${e}:${kt(t,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function(t,e){let i=[];return ht(t.children,(t,n)=>{"primary"===n&&(i=i.concat(e(t,n)))}),ht(t.children,(t,n)=>{"primary"!==n&&(i=i.concat(e(t,n)))}),i}(t,(e,i)=>"primary"===i?[kt(t.children.primary,!1)]:[`${i}:${kt(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${St(t)}/${e[0]}`:`${St(t)}/(${e.join("//")})`}}function It(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function xt(t){return It(t).replace(/%3B/gi,";")}function Rt(t){return It(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ot(t){return decodeURIComponent(t)}function Pt(t){return Ot(t.replace(/\+/g,"%20"))}function Dt(t){return`${Rt(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Rt(t)}=${Rt(e[t])}`).join("")}`;var e}const Mt=/^[^\/()?;=#]+/;function Lt(t){const e=t.match(Mt);return e?e[0]:""}const Nt=/^[^=?&#]+/,zt=/^[^?&#]+/;class Zt{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new At([],{}):new At([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new At(t,e)),i}parseSegment(){const t=Lt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new yt(Ot(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Lt(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=Lt(this.remaining);t&&(i=t,this.capture(i))}t[Ot(e)]=Ot(i)}parseQueryParam(t){const e=function(t){const e=t.match(Nt);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(zt);return e?e[0]:""}(this.remaining);t&&(i=t,this.capture(i))}const n=Pt(e),s=Pt(i);if(t.hasOwnProperty(n)){let e=t[n];Array.isArray(e)||(e=[e],t[n]=e),e.push(s)}else t[n]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Lt(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error(`Cannot parse url '${this.url}'`);let s;i.indexOf(":")>-1?(s=i.substr(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s="primary");const o=this.parseChildren();e[s]=1===Object.keys(o).length?o.primary:new At([],o),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Bt{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Ft(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Ft(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Ut(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Ut(t,this._root).map(t=>t.value)}}function Ft(t,e){if(t===e.value)return e;for(const i of e.children){const e=Ft(t,i);if(e)return e}return null}function Ut(t,e){if(t===e.value)return[e];for(const i of e.children){const n=Ut(t,i);if(n.length)return n.unshift(e),n}return[]}class qt{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Ht(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Gt extends Bt{constructor(t,e){super(t),this.snapshot=e,Jt(this,t)}toString(){return this.snapshot.toString()}}function jt(t,e){const i=function(t,e){const i=new Vt([],{},{},"",{},"primary",e,null,t.root,-1,{});return new $t("",new qt(i,[]))}(t,e),n=new a.X([new yt("",{})]),s=new a.X({}),o=new a.X({}),r=new a.X({}),c=new a.X(""),l=new Yt(n,s,r,c,o,"primary",e,i.root);return l.snapshot=i.root,new Gt(new qt(l,[]),i)}class Yt{constructor(t,e,i,n,s,o,r,a){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=o,this.component=r,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,I.U)(t=>st(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,I.U)(t=>st(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Kt(t,e="emptyOnly"){const i=t.pathFromRoot;let n=0;if("always"!==e)for(n=i.length-1;n>=1;){const t=i[n],e=i[n-1];if(t.routeConfig&&""===t.routeConfig.path)n--;else{if(e.component)break;n--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(i.slice(n))}class Vt{constructor(t,e,i,n,s,o,r,a,c,l,u){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=o,this.component=r,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=l,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=st(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=st(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class $t extends Bt{constructor(t,e){super(e),this.url=t,Jt(this,e)}toString(){return Qt(this._root)}}function Jt(t,e){e.value._routerState=t,e.children.forEach(e=>Jt(t,e))}function Qt(t){const e=t.children.length>0?` { ${t.children.map(Qt).join(", ")} } `:"";return`${t.value}${e}`}function Wt(t){if(t.snapshot){const e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,at(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),at(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(let i=0;iat(t.parameters,n[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Xt(t.parent,e.parent))}function te(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){const n=i.value;n._futureSnapshot=e.value;const s=function(t,e,i){return e.children.map(e=>{for(const n of i.children)if(t.shouldReuseRoute(e.value,n.value.snapshot))return te(t,e,n);return te(t,e)})}(t,e,i);return new qt(n,s)}{if(t.shouldAttach(e.value)){const i=t.retrieve(e.value);if(null!==i){const t=i.route;return ee(e,t),t}}const i=new Yt(new a.X((n=e.value).url),new a.X(n.params),new a.X(n.queryParams),new a.X(n.fragment),new a.X(n.data),n.outlet,n.component,n),s=e.children.map(e=>te(t,e));return new qt(i,s)}var n}function ee(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let i=0;i{o[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new wt(i.root===t?e:oe(i.root,t,e),o,s)}function oe(t,e,i){const n={};return ht(t.children,(t,s)=>{n[s]=t===e?i:oe(t,e,i)}),new At(t.segments,n)}class re{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&ie(i[0]))throw new Error("Root segment cannot have matrix parameters");const n=i.find(ne);if(n&&n!==ut(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ae{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function ce(t,e,i){if(t||(t=new At([],{})),0===t.segments.length&&t.hasChildren())return le(t,e,i);const n=function(t,e,i){let n=0,s=e;const o={match:!1,pathIndex:0,commandIndex:0};for(;s=i.length)return o;const e=t.segments[s],r=i[n];if(ne(r))break;const a=`${r}`,c=n0&&void 0===a)break;if(a&&c&&"object"==typeof c&&void 0===c.outlets){if(!pe(a,c,e))return o;n+=2}else{if(!pe(a,{},e))return o;n++}s++}return{match:!0,pathIndex:s,commandIndex:n}}(t,e,i),s=i.slice(n.commandIndex);if(n.match&&n.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(s[n]=ce(t.children[n],e,i))}),ht(t.children,(t,e)=>{void 0===n[e]&&(s[e]=t)}),new At(t.segments,s)}}function ue(t,e,i){const n=t.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[i]=ue(new At([],{}),0,t))}),e}function de(t){const e={};return ht(t,(t,i)=>e[i]=`${t}`),e}function pe(t,e,i){return t==i.path&&at(e,i.parameters)}class ge{constructor(t,e,i,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=n}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),Wt(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const n=Ht(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,n[e],i),delete n[e]}),ht(n,(t,e)=>{this.deactivateRouteAndItsChildren(t,i)})}deactivateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(n===s)if(n.component){const s=i.getContext(n.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet);if(i&&i.outlet){const e=i.outlet.detach(),n=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:n})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),n=i&&t.value.component?i.children:e,s=Ht(t);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],n);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const n=Ht(e);t.children.forEach(t=>{this.activateRoutes(t,n[t.value.outlet],i),this.forwardEvent(new et(t.value.snapshot))}),t.children.length&&this.forwardEvent(new X(t.value.snapshot))}activateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(Wt(n),n===s)if(n.component){const s=i.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(n.component){const e=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){const t=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),fe(t.route)}else{const i=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(n.snapshot),s=i?i.module.componentFactoryResolver:null;e.attachRef=null,e.route=n,e.resolver=s,e.outlet&&e.outlet.activateWith(n,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,i)}}function fe(t){Wt(t.value),t.children.forEach(fe)}class me{constructor(t,e){this.routes=t,this.module=e}}function be(t){return"function"==typeof t}function _e(t){return t instanceof wt}const we=Symbol("INITIAL_VALUE");function Ae(){return(0,x.w)(t=>(0,c.aj)(t.map(t=>t.pipe((0,R.q)(1),(0,O.O)(we)))).pipe(b((t,e)=>{let i=!1;return e.reduce((t,n,s)=>{if(t!==we)return t;if(n===we&&(i=!0),!i){if(!1===n)return n;if(s===e.length-1||_e(n))return n}return t},t)},we),(0,A.h)(t=>t!==we),(0,I.U)(t=>_e(t)?t:!0===t),(0,R.q)(1)))}let ye=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s._UZ(0,"router-outlet")},directives:function(){return[wi]},encapsulation:2}),t})();function ve(t,e=""){for(let i=0;iSe(t)===e);return i.push(...t.filter(t=>Se(t)!==e)),i}const Ie={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function xe(t,e,i){var n;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?Object.assign({},Ie):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||rt)(i,t,e);if(!s)return Object.assign({},Ie);const o={};ht(s.posParams,(t,e)=>{o[e]=t.path});const r=s.consumed.length>0?Object.assign(Object.assign({},o),s.consumed[s.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:r,positionalParamSegments:null!==(n=s.posParams)&&void 0!==n?n:{}}}function Re(t,e,i,n,s="corrected"){if(i.length>0&&function(t,e,i){return i.some(i=>Oe(t,e,i)&&"primary"!==Se(i))}(t,i,n)){const s=new At(e,function(t,e,i,n){const s={};s.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(const o of i)if(""===o.path&&"primary"!==Se(o)){const i=new At([],{});i._sourceSegment=t,i._segmentIndexShift=e.length,s[Se(o)]=i}return s}(t,e,n,new At(i,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some(i=>Oe(t,e,i))}(t,i,n)){const o=new At(t.segments,function(t,e,i,n,s,o){const r={};for(const a of n)if(Oe(t,i,a)&&!s[Se(a)]){const i=new At([],{});i._sourceSegment=t,i._segmentIndexShift="legacy"===o?t.segments.length:e.length,r[Se(a)]=i}return Object.assign(Object.assign({},s),r)}(t,e,i,n,t.children,s));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:i}}const o=new At(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:i}}function Oe(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path}function Pe(t,e,i,n){return!!(Se(t)===n||"primary"!==n&&Oe(e,i,t))&&("**"===t.path||xe(e,t,i).matched)}function De(t,e,i){return 0===e.length&&!t.children[i]}class Me{constructor(t){this.segmentGroup=t||null}}class Le{constructor(t){this.urlTree=t}}function Ne(t){return new l.y(e=>e.error(new Me(t)))}function ze(t){return new l.y(e=>e.error(new Le(t)))}function Ze(t){return new l.y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Be{constructor(t,e,i,n,o){this.configLoader=e,this.urlSerializer=i,this.urlTree=n,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(s.h0i)}apply(){const t=Re(this.urlTree.root,[],[],this.config).segmentGroup,e=new At(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,"primary").pipe((0,I.U)(t=>this.createUrlTree(Fe(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,P.K)(t=>{if(t instanceof Le)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Me)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe((0,I.U)(e=>this.createUrlTree(Fe(e),t.queryParams,t.fragment))).pipe((0,P.K)(t=>{if(t instanceof Me)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const n=t.segments.length>0?new At([],{primary:t}):t;return new wt(n,e,i)}expandSegmentGroup(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe((0,I.U)(t=>new At([],t))):this.expandSegment(t,i,e,i.segments,n,!0)}expandChildren(t,e,i){const n=[];for(const s of Object.keys(i.children))"primary"===s?n.unshift(s):n.push(s);return(0,o.D)(n).pipe((0,D.b)(n=>{const s=i.children[n],o=ke(e,n);return this.expandSegmentGroup(t,o,s,n).pipe((0,I.U)(t=>({segment:t,outlet:n})))}),b((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const i=arguments.length>=2;return n=>n.pipe(t?(0,A.h)((e,i)=>t(e,i,n)):k.y,v(1),i?(0,S.d)(e):(0,E.T)(()=>new u.K))}())}expandSegment(t,e,i,n,s,a){return(0,o.D)(i).pipe((0,D.b)(o=>this.expandSegmentAgainstRoute(t,e,i,o,n,s,a).pipe((0,P.K)(t=>{if(t instanceof Me)return(0,r.of)(null);throw t}))),(0,M.P)(t=>!!t),(0,P.K)((t,i)=>{if(t instanceof u.K||"EmptyError"===t.name){if(De(e,n,s))return(0,r.of)(new At([],{}));throw new Me(e)}throw t}))}expandSegmentAgainstRoute(t,e,i,n,s,o,r){return Pe(n,e,s,o)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,s,o):r&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o):Ne(e):Ne(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,n){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?ze(s):this.lineralizeSegments(i,s).pipe((0,L.zg)(i=>{const s=new At(i,{});return this.expandSegment(t,s,e,i,n,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o){const{matched:r,consumedSegments:a,lastChild:c,positionalParamSegments:l}=xe(e,n,s);if(!r)return Ne(e);const u=this.applyRedirectCommands(a,n.redirectTo,l);return n.redirectTo.startsWith("/")?ze(u):this.lineralizeSegments(n,u).pipe((0,L.zg)(n=>this.expandSegment(t,e,i,n.concat(s.slice(c)),o,!1)))}matchSegmentAgainstRoute(t,e,i,n,s){if("**"===i.path)return i.loadChildren?(i._loadedConfig?(0,r.of)(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe((0,I.U)(t=>(i._loadedConfig=t,new At(n,{})))):(0,r.of)(new At(n,{}));const{matched:o,consumedSegments:a,lastChild:c}=xe(e,i,n);if(!o)return Ne(e);const l=n.slice(c);return this.getChildConfig(t,i,n).pipe((0,L.zg)(t=>{const n=t.module,o=t.routes,{segmentGroup:c,slicedSegments:u}=Re(e,a,l,o),h=new At(c.segments,c.children);if(0===u.length&&h.hasChildren())return this.expandChildren(n,o,h).pipe((0,I.U)(t=>new At(a,t)));if(0===o.length&&0===u.length)return(0,r.of)(new At(a,{}));const d=Se(i)===s;return this.expandSegment(n,h,o,u,d?"primary":s,!0).pipe((0,I.U)(t=>new At(a.concat(t.segments),t.children)))}))}getChildConfig(t,e,i){return e.children?(0,r.of)(new me(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?(0,r.of)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe((0,L.zg)(i=>i?this.configLoader.load(t.injector,e).pipe((0,I.U)(t=>(e._loadedConfig=t,t))):function(t){return new l.y(e=>e.error(ot(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):(0,r.of)(new me([],t))}runCanLoadGuards(t,e,i){const n=e.canLoad;if(!n||0===n.length)return(0,r.of)(!0);const s=n.map(n=>{const s=t.get(n);let o;if(function(t){return t&&be(t.canLoad)}(s))o=s.canLoad(e,i);else{if(!be(s))throw new Error("Invalid CanLoad guard");o=s(e,i)}return dt(o)});return(0,r.of)(s).pipe(Ae(),(0,N.b)(t=>{if(!_e(t))return;const e=ot(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),(0,I.U)(t=>!0===t))}lineralizeSegments(t,e){let i=[],n=e.root;for(;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return(0,r.of)(i);if(n.numberOfChildren>1||!n.children.primary)return Ze(t.redirectTo);n=n.children.primary}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,n){const s=this.createSegmentGroup(t,e.root,i,n);return new wt(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return ht(t,(t,n)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);i[n]=e[s]}else i[n]=t}),i}createSegmentGroup(t,e,i,n){const s=this.createSegments(t,e.segments,i,n);let o={};return ht(e.children,(e,s)=>{o[s]=this.createSegmentGroup(t,e,i,n)}),new At(s,o)}createSegments(t,e,i,n){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,n):this.findOrReturn(e,i))}findPosParam(t,e,i){const n=i[e.path.substring(1)];if(!n)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return n}findOrReturn(t,e){let i=0;for(const n of e){if(n.path===t.path)return e.splice(i),n;i++}return t}}function Fe(t){const e={};for(const i of Object.keys(t.children)){const n=Fe(t.children[i]);(n.segments.length>0||n.hasChildren())&&(e[i]=n)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new At(t.segments.concat(e.segments),e.children)}return t}(new At(t.segments,e))}class Ue{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class qe{constructor(t,e){this.component=t,this.route=e}}function He(t,e,i){const n=t._root;return je(n,e?e._root:null,i,[n.value])}function Ge(t,e,i){const n=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(n?n.module.injector:i).get(t)}function je(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=Ht(e);return t.children.forEach(t=>{!function(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,r=e?e.value:null,a=i?i.getContext(t.value.outlet):null;if(r&&o.routeConfig===r.routeConfig){const c=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!vt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!vt(t.url,e.url)||!at(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Xt(t,e)||!at(t.queryParams,e.queryParams);case"paramsChange":default:return!Xt(t,e)}}(r,o,o.routeConfig.runGuardsAndResolvers);c?s.canActivateChecks.push(new Ue(n)):(o.data=r.data,o._resolvedData=r._resolvedData),je(t,e,o.component?a?a.children:null:i,n,s),c&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new qe(a.outlet.component,r))}else r&&Ye(e,a,s),s.canActivateChecks.push(new Ue(n)),je(t,null,o.component?a?a.children:null:i,n,s)}(t,o[t.value.outlet],i,n.concat([t.value]),s),delete o[t.value.outlet]}),ht(o,(t,e)=>Ye(t,i.getContext(e),s)),s}function Ye(t,e,i){const n=Ht(t),s=t.value;ht(n,(t,n)=>{Ye(t,s.component?e?e.children.getContext(n):null:e,i)}),i.canDeactivateChecks.push(new qe(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class Ke{}function Ve(t){return new l.y(e=>e.error(t))}class $e{constructor(t,e,i,n,s,o){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=n,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=o}recognize(){const t=Re(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary");if(null===e)return null;const i=new Vt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),n=new qt(i,e),s=new $t(this.url,n);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,i=Kt(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=[];for(const s of Object.keys(e.children)){const n=e.children[s],o=ke(t,s),r=this.processSegmentGroup(o,n,s);if(null===r)return null;i.push(...r)}const n=Qe(i);return n.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,i,n){for(const s of t){const t=this.processSegmentAgainstRoute(s,e,i,n);if(null!==t)return t}return De(e,i,n)?[]:null}processSegmentAgainstRoute(t,e,i,n){if(t.redirectTo||!Pe(t,e,i,n))return null;let s,o=[],r=[];if("**"===t.path){const n=i.length>0?ut(i).parameters:{};s=new Vt(i,n,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ti(t),Se(t),t.component,t,We(e),Xe(e)+i.length,ei(t))}else{const n=xe(e,t,i);if(!n.matched)return null;o=n.consumedSegments,r=i.slice(n.lastChild),s=new Vt(o,n.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ti(t),Se(t),t.component,t,We(e),Xe(e)+o.length,ei(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:l}=Re(e,o,r,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===l.length&&c.hasChildren()){const t=this.processChildren(a,c);return null===t?null:[new qt(s,t)]}if(0===a.length&&0===l.length)return[new qt(s,[])];const u=Se(t)===n,h=this.processSegment(a,c,l,u?"primary":n);return null===h?null:[new qt(s,h)]}}function Je(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function Qe(t){const e=[],i=new Set;for(const n of t){if(!Je(n)){e.push(n);continue}const t=e.find(t=>n.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...n.children),i.add(t)):e.push(n)}for(const n of i){const t=Qe(n.children);e.push(new qt(n.value,t))}return e.filter(t=>!i.has(t))}function We(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Xe(t){let e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,i+=e._segmentIndexShift?e._segmentIndexShift:0;return i-1}function ti(t){return t.data||{}}function ei(t){return t.resolve||{}}function ii(t){return(0,x.w)(e=>{const i=t(e);return i?(0,o.D)(i).pipe((0,I.U)(()=>e)):(0,r.of)(e)})}class ni{}class si extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const oi=new s.OlP("ROUTES");class ri{constructor(t,e,i,n){this.loader=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=n}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const i=this.loadModuleFactory(e.loadChildren).pipe((0,I.U)(i=>{this.onLoadEndListener&&this.onLoadEndListener(e);const n=i.create(t);return new me(lt(n.injector.get(oi,void 0,s.XFs.Self|s.XFs.Optional)).map(Ee),n)}),(0,P.K)(t=>{throw e._loader$=void 0,t}));return e._loader$=new g.c(i,()=>new f.xQ).pipe((0,z.x)()),e._loader$}loadModuleFactory(t){return"string"==typeof t?(0,o.D)(this.loader.load(t)):dt(t()).pipe((0,L.zg)(t=>t instanceof s.YKP?(0,r.of)(t):(0,o.D)(this.compiler.compileModuleAsync(t))))}}class ai{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new ci,this.attachRef=null}}class ci{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new ai,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class li{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function ui(t){throw t}function hi(t,e,i){return e.parse("/")}function di(t,e){return(0,r.of)(null)}const pi={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},gi={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let fi=(()=>{class t{constructor(t,e,i,n,o,r,c,l){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=i,this.location=n,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new f.xQ,this.errorHandler=ui,this.malformedUriErrorHandler=hi,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:di,afterPreactivation:di},this.urlHandlingStrategy=new li,this.routeReuseStrategy=new si,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(s.h0i),this.console=o.get(s.c2e);const u=o.get(s.R0b);this.isNgZoneEnabled=u instanceof s.R0b&&s.R0b.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=new wt(new At([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new ri(r,c,t=>this.triggerEvent(new J(t)),t=>this.triggerEvent(new Q(t))),this.routerState=jt(this.currentUrlTree,this.rootComponentType),this.transitions=new a.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()}setupNavigations(t){const e=this.events;return t.pipe((0,A.h)(t=>0!==t.id),(0,I.U)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),(0,x.w)(t=>{let i=!1,n=!1;return(0,r.of)(t).pipe((0,N.b)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,x.w)(t=>{const i=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return(0,r.of)(t).pipe((0,x.w)(t=>{const i=this.transitions.getValue();return e.next(new U(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==this.transitions.getValue()?p.E:Promise.resolve(t)}),(n=this.ngModule.injector,s=this.configLoader,o=this.urlSerializer,a=this.config,(0,x.w)(t=>function(t,e,i,n,s){return new Be(t,e,i,n,s).apply()}(n,s,o,t.extractedUrl,a).pipe((0,I.U)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e}))))),(0,N.b)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,i,n,s){return(0,L.zg)(o=>function(t,e,i,n,s="emptyOnly",o="legacy"){try{const a=new $e(t,e,i,n,s,o).recognize();return null===a?Ve(new Ke):(0,r.of)(a)}catch(a){return Ve(a)}}(t,e,o.urlAfterRedirects,i(o.urlAfterRedirects),n,s).pipe((0,I.U)(t=>Object.assign(Object.assign({},o),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,N.b)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const i=new j(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(i)}));var n,s,o,a;if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:i,extractedUrl:n,source:s,restoredState:o,extras:a}=t,c=new U(i,this.serializeUrl(n),s,o);e.next(c);const l=jt(n,this.rootComponentType).snapshot;return(0,r.of)(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:n,extras:Object.assign(Object.assign({},a),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),p.E}),ii(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:o,replaceUrl:r}}=t;return this.hooks.beforePreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!r})}),(0,N.b)(t=>{const e=new Y(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,I.U)(t=>Object.assign(Object.assign({},t),{guards:He(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return(0,L.zg)(i=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:a,canDeactivateChecks:c}}=i;return 0===c.length&&0===a.length?(0,r.of)(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return(0,o.D)(t).pipe((0,L.zg)(t=>function(t,e,i,n,s){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return(0,r.of)(!0);const a=o.map(o=>{const r=Ge(o,e,s);let a;if(function(t){return t&&be(t.canDeactivate)}(r))a=dt(r.canDeactivate(t,e,i,n));else{if(!be(r))throw new Error("Invalid CanDeactivate guard");a=dt(r(t,e,i,n))}return a.pipe((0,M.P)())});return(0,r.of)(a).pipe(Ae())}(t.component,t.route,i,e,n)),(0,M.P)(t=>!0!==t,!0))}(c,n,s,t).pipe((0,L.zg)(i=>i&&"boolean"==typeof i?function(t,e,i,n){return(0,o.D)(e).pipe((0,D.b)(e=>(0,h.z)(function(t,e){return null!==t&&e&&e(new W(t)),(0,r.of)(!0)}(e.route.parent,n),function(t,e){return null!==t&&e&&e(new tt(t)),(0,r.of)(!0)}(e.route,n),function(t,e,i){const n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>(0,d.P)(()=>{const s=e.guards.map(s=>{const o=Ge(s,e.node,i);let r;if(function(t){return t&&be(t.canActivateChild)}(o))r=dt(o.canActivateChild(n,t));else{if(!be(o))throw new Error("Invalid CanActivateChild guard");r=dt(o(n,t))}return r.pipe((0,M.P)())});return(0,r.of)(s).pipe(Ae())}));return(0,r.of)(s).pipe(Ae())}(t,e.path,i),function(t,e,i){const n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||0===n.length)return(0,r.of)(!0);const s=n.map(n=>(0,d.P)(()=>{const s=Ge(n,e,i);let o;if(function(t){return t&&be(t.canActivate)}(s))o=dt(s.canActivate(e,t));else{if(!be(s))throw new Error("Invalid CanActivate guard");o=dt(s(e,t))}return o.pipe((0,M.P)())}));return(0,r.of)(s).pipe(Ae())}(t,e.route,i))),(0,M.P)(t=>!0!==t,!0))}(n,a,t,e):(0,r.of)(i)),(0,I.U)(t=>Object.assign(Object.assign({},i),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),(0,N.b)(t=>{if(_e(t.guardsResult)){const e=ot(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new K(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),(0,A.h)(t=>!!t.guardsResult||(this.cancelNavigationTransition(t,""),!1)),ii(t=>{if(t.guards.canActivateChecks.length)return(0,r.of)(t).pipe((0,N.b)(t=>{const e=new V(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,x.w)(t=>{let e=!1;return(0,r.of)(t).pipe((i=this.paramsInheritanceStrategy,n=this.ngModule.injector,(0,L.zg)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:s}}=t;if(!s.length)return(0,r.of)(t);let a=0;return(0,o.D)(s).pipe((0,D.b)(t=>function(t,e,i,n){return function(t,e,i,n){const s=Object.keys(t);if(0===s.length)return(0,r.of)({});const a={};return(0,o.D)(s).pipe((0,L.zg)(s=>function(t,e,i,n){const s=Ge(t,e,n);return dt(s.resolve?s.resolve(e,i):s(e,i))}(t[s],e,i,n).pipe((0,N.b)(t=>{a[s]=t}))),v(1),(0,L.zg)(()=>Object.keys(a).length===s.length?(0,r.of)(a):p.E))}(t._resolve,t,e,n).pipe((0,I.U)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Kt(t,i).resolve),null)))}(t.route,e,i,n)),(0,N.b)(()=>a++),v(1),(0,L.zg)(e=>a===s.length?(0,r.of)(t):p.E))})),(0,N.b)({next:()=>e=!0,complete:()=>{e||this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value.")}}));var i,n}),(0,N.b)(t=>{const e=new $(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),ii(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:o,replaceUrl:r}}=t;return this.hooks.afterPreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!r})}),(0,I.U)(t=>{const e=function(t,e,i){const n=te(t,e._root,i?i._root:void 0);return new Gt(n,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),(0,N.b)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,a=this.routeReuseStrategy,c=t=>this.triggerEvent(t),(0,I.U)(t=>(new ge(a,t.targetRouterState,t.currentRouterState,c).activate(s),t))),(0,N.b)({next(){i=!0},complete(){i=!0}}),(0,Z.x)(()=>{i||n||this.cancelNavigationTransition(t,`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`),this.currentNavigation=null}),(0,P.K)(i=>{if(n=!0,(s=i)&&s.ngNavigationCancelingError){const n=_e(i.url);n||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new H(t.id,this.serializeUrl(t.extractedUrl),i.message);e.next(s),n?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(i.url,this.rawUrlTree);this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const n=new G(t.id,this.serializeUrl(t.extractedUrl),i);e.next(n);try{t.resolve(this.errorHandler(i))}catch(o){t.reject(o)}}var s;return p.E}));var s,a,c}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:i,urlTree:n}=e,s={replaceUrl:!0};if(i){const t=Object.assign({},i);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(n,t,i,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const i=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&i&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){ve(t),this.config=t.map(Ee),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(t,e={}){const{relativeTo:i,queryParams:n,fragment:s,queryParamsHandling:o,preserveFragment:r}=e,a=i||this.routerState.root,c=r?this.currentUrlTree.fragment:s;let l=null;switch(o){case"merge":l=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=n||null}return null!==l&&(l=this.removeEmptyProps(l)),function(t,e,i,n,s){if(0===i.length)return se(e.root,e.root,e,n,s);const o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new re(!0,0,t);let e=0,i=!1;const n=t.reduce((t,n,s)=>{if("object"==typeof n&&null!=n){if(n.outlets){const e={};return ht(n.outlets,(t,i)=>{e[i]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(n.segmentPath)return[...t,n.segmentPath]}return"string"!=typeof n?[...t,n]:0===s?(n.split("/").forEach((n,s)=>{0==s&&"."===n||(0==s&&""===n?i=!0:".."===n?e++:""!=n&&t.push(n))}),t):[...t,n]},[]);return new re(i,e,n)}(i);if(o.toRoot())return se(e.root,new At([],{}),e,n,s);const r=function(t,e,i){if(t.isAbsolute)return new ae(e.root,!0,0);if(-1===i.snapshot._lastPathIndex){const t=i.snapshot._urlSegment;return new ae(t,t===e.root,0)}const n=ie(t.commands[0])?0:1;return function(t,e,i){let n=t,s=e,o=i;for(;o>s;){if(o-=s,n=n.parent,!n)throw new Error("Invalid number of '../'");s=n.segments.length}return new ae(n,!1,s-o)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(o,e,t),a=r.processChildren?le(r.segmentGroup,r.index,o.commands):ce(r.segmentGroup,r.index,o.commands);return se(r.segmentGroup,a,e,n,s)}(a,this.currentUrlTree,t,l,null!=c?c:null)}navigateByUrl(t,e={skipLocationChange:!1}){const i=_e(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree);let s=null;return"computed"===this.canceledNavigationResolution&&(0===this.currentPageId||e.skipLocationChange||e.replaceUrl)&&(s=this.location.getState()),this.scheduleNavigation(n,"imperative",s,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const n=t[i];return null!=n&&(e[i]=n),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new q(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,i,n,s){if(this.disposed)return Promise.resolve(!1);const o=this.getTransition(),r="imperative"!==e&&"imperative"===(null==o?void 0:o.source),a=(this.lastSuccessfulId===o.id||this.currentNavigation?o.rawUrl:o.urlAfterRedirects).toString()===t.toString();if(r&&a)return Promise.resolve(!0);let c,l,u;s?(c=s.resolve,l=s.reject,u=s.promise):u=new Promise((t,e)=>{c=t,l=e});const h=++this.navigationId;let d;return d="computed"===this.canceledNavigationResolution?i&&i.\u0275routerPageId?i.\u0275routerPageId:this.currentPageId+1:0,this.setTransition({id:h,targetPageId:d,source:e,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:c,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const i=this.urlSerializer.serialize(t),n=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(i)||e.extras.replaceUrl?this.location.replaceState(i,"",n):this.location.go(i,"",n)}resetStateAndUrl(t,e,i){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){"computed"===this.canceledNavigationResolution?"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy||this.location.historyGo(this.currentPageId-t.targetPageId):this.resetUrlToCurrentUrlTree();const i=new H(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(i),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.DyG),s.LFG(Tt),s.LFG(ci),s.LFG(n.Ye),s.LFG(s.zs3),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),mi=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new f.xQ,null==i&&n.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:_i(this.skipLocationChange),replaceUrl:_i(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:_i(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(fi),s.Y36(Yt),s.$8M("tabindex"),s.Y36(s.Qsj),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.TTD]}),t})(),bi=(()=>{class t{constructor(t,e,i){this.router=t,this.route=e,this.locationStrategy=i,this.commands=[],this.onChanges=new f.xQ,this.subscription=t.events.subscribe(t=>{t instanceof q&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,i,n,s){if(0!==t||e||i||n||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const o={skipLocationChange:_i(this.skipLocationChange),replaceUrl:_i(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:_i(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(fi),s.Y36(Yt),s.Y36(n.S$))},t.\u0275dir=s.lG2({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(s.Ikx("href",e.href,s.LSH),s.uIk("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.TTD]}),t})();function _i(t){return""===t||!!t}let wi=(()=>{class t{constructor(t,e,i,n,o){this.parentContexts=t,this.location=e,this.resolver=i,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.vpe,this.deactivateEvents=new s.vpe,this.name=n||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const i=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,s=new Ai(t,n,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(ci),s.Y36(s.s_b),s.Y36(s._Vd),s.$8M("name"),s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Ai{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===Yt?this.route:t===ci?this.childContexts:this.parent.get(t,e)}}class yi{}class vi{preload(t,e){return(0,r.of)(null)}}let Ti=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.injector=n,this.preloadingStrategy=s,this.loader=new ri(e,i,e=>t.triggerEvent(new J(e)),e=>t.triggerEvent(new Q(e)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,A.h)(t=>t instanceof q),(0,D.b)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(s.h0i);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const i=[];for(const n of e)if(n.loadChildren&&!n.canLoad&&n._loadedConfig){const t=n._loadedConfig;i.push(this.processRoutes(t.module,t.routes))}else n.loadChildren&&!n.canLoad?i.push(this.preloadConfig(t,n)):n.children&&i.push(this.processRoutes(t,n.children));return(0,o.D)(i).pipe((0,B.J)(),(0,I.U)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?(0,r.of)(e._loadedConfig):this.loader.load(t.injector,e)).pipe((0,L.zg)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(fi),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(s.zs3),s.LFG(yi))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Ci=(()=>{class t{constructor(t,e,i={}){this.router=t,this.viewportScroller=e,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.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(t=>{t instanceof U?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof q&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof it&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new it(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(fi),s.LFG(n.EM),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const Ei=new s.OlP("ROUTER_CONFIGURATION"),Si=new s.OlP("ROUTER_FORROOT_GUARD"),ki=[n.Ye,{provide:Tt,useClass:Ct},{provide:fi,useFactory:function(t,e,i,n,s,o,r,a={},c,l){const u=new fi(null,t,e,i,n,s,o,lt(r));return c&&(u.urlHandlingStrategy=c),l&&(u.routeReuseStrategy=l),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,u),a.enableTracing&&u.events.subscribe(t=>{var e,i;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(i=console.groupEnd)||void 0===i||i.call(console)}),u},deps:[Tt,ci,n.Ye,s.zs3,s.v3s,s.Sil,oi,Ei,[class{},new s.FiY],[ni,new s.FiY]]},ci,{provide:Yt,useFactory:function(t){return t.routerState.root},deps:[fi]},{provide:s.v3s,useClass:s.EAV},Ti,vi,class{preload(t,e){return e().pipe((0,P.K)(()=>(0,r.of)(null)))}},{provide:Ei,useValue:{enableTracing:!1}}];function Ii(){return new s.PXZ("Router",fi)}let xi=(()=>{class t{constructor(t,e){}static forRoot(e,i){return{ngModule:t,providers:[ki,Di(e),{provide:Si,useFactory:Pi,deps:[[fi,new s.FiY,new s.tp0]]},{provide:Ei,useValue:i||{}},{provide:n.S$,useFactory:Oi,deps:[n.lw,[new s.tBr(n.mr),new s.FiY],Ei]},{provide:Ci,useFactory:Ri,deps:[fi,n.EM,Ei]},{provide:yi,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:vi},{provide:s.PXZ,multi:!0,useFactory:Ii},[Mi,{provide:s.ip1,multi:!0,useFactory:Li,deps:[Mi]},{provide:zi,useFactory:Ni,deps:[Mi]},{provide:s.tb,multi:!0,useExisting:zi}]]}}static forChild(e){return{ngModule:t,providers:[Di(e)]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Si,8),s.LFG(fi,8))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();function Ri(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new Ci(t,e,i)}function Oi(t,e,i={}){return i.useHash?new n.Do(t,e):new n.b0(t,e)}function Pi(t){return"guarded"}function Di(t){return[{provide:s.deG,multi:!0,useValue:t},{provide:oi,multi:!0,useValue:t}]}let Mi=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new f.xQ}appInitializer(){return this.injector.get(n.V_,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),i=this.injector.get(fi),n=this.injector.get(Ei);return"disabled"===n.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===n.initialNavigation||"enabledBlocking"===n.initialNavigation?(i.hooks.afterPreactivation=()=>this.initNavigation?(0,r.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),i.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(Ei),i=this.injector.get(Ti),n=this.injector.get(Ci),o=this.injector.get(fi),r=this.injector.get(s.z2F);t===r.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||o.initialNavigation(),i.setUpPreloading(),n.init(),o.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function Li(t){return t.appInitializer.bind(t)}function Ni(t){return t.bootstrapListener.bind(t)}const zi=new s.OlP("Router Initializer")},48160:function(t,e,i){"use strict";i.d(e,{Zw:function(){return g},aw:function(){return D},X$:function(){return P},sK:function(){return O}});var n=i(31572),s=i(40878),o=i(4710),r=i(3148),a=i(47930),c=i(31450),l=i(90611),u=i(68303),h=i(79996),d=i(436),p=i(44689);class g{}let f=(()=>{class t extends g{getTranslation(t){return(0,s.of)({})}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();class m{}let b=(()=>{class t{handle(t){return t.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();function _(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;let i,n,s,o=typeof t;if(o==typeof e&&"object"==o){if(!Array.isArray(t)){if(Array.isArray(e))return!1;for(n in s=Object.create(null),t){if(!_(t[n],e[n]))return!1;s[n]=!0}for(n in e)if(!(n in s)&&void 0!==e[n])return!1;return!0}if(!Array.isArray(e))return!1;if((i=t.length)==e.length){for(n=0;n{A(e[n])?n in t?i[n]=y(t[n],e[n]):Object.assign(i,{[n]:e[n]}):Object.assign(i,{[n]:e[n]})}),i}class v{}let T=(()=>{class t extends v{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(t,e){let i;return i="string"==typeof t?this.interpolateString(t,e):"function"==typeof t?this.interpolateFunction(t,e):t,i}getValue(t,e){let i="string"==typeof e?e.split("."):[e];e="";do{e+=i.shift(),!w(t)||!w(t[e])||"object"!=typeof t[e]&&i.length?i.length?e+=".":t=void 0:(t=t[e],e="")}while(i.length);return t}interpolateFunction(t,e){return t(e)}interpolateString(t,e){return e?t.replace(this.templateMatcher,(t,i)=>{let n=this.getValue(e,i);return w(n)?n:t}):t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();class C{}let E=(()=>{class t extends C{compile(t,e){return t}compileTranslations(t,e){return t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=n.n5z(t)))(i||t)}}(),t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();class S{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new n.vpe,this.onLangChange=new n.vpe,this.onDefaultLangChange=new n.vpe}}const k=new n.OlP("USE_STORE"),I=new n.OlP("USE_DEFAULT_LANG"),x=new n.OlP("DEFAULT_LANGUAGE"),R=new n.OlP("USE_EXTEND");let O=(()=>{class t{constructor(t,e,i,s,o,r=!0,a=!1,c=!1,l){this.store=t,this.currentLoader=e,this.compiler=i,this.parser=s,this.missingTranslationHandler=o,this.useDefaultLang=r,this.isolate=a,this.extend=c,this.pending=!1,this._onTranslationChange=new n.vpe,this._onLangChange=new n.vpe,this._onDefaultLangChange=new n.vpe,this._langs=[],this._translations={},this._translationRequests={},l&&this.setDefaultLang(l)}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(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}setDefaultLang(t){if(t===this.defaultLang)return;let e=this.retrieveTranslations(t);void 0!==e?(null==this.defaultLang&&(this.defaultLang=t),e.pipe((0,l.q)(1)).subscribe(e=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return(0,s.of)(this.translations[t]);let e=this.retrieveTranslations(t);return void 0!==e?(this.currentLang||(this.currentLang=t),e.pipe((0,l.q)(1)).subscribe(e=>{this.changeLang(t)}),e):(this.changeLang(t),(0,s.of)(this.translations[t]))}retrieveTranslations(t){let e;return(void 0===this.translations[t]||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),e=this._translationRequests[t]),e}getTranslation(t){this.pending=!0;const e=this.currentLoader.getTranslation(t).pipe((0,u.d)(1),(0,l.q)(1));return this.loadingTranslations=e.pipe((0,h.U)(e=>this.compiler.compileTranslations(e,t)),(0,u.d)(1),(0,l.q)(1)),this.loadingTranslations.subscribe({next:e=>{this.translations[t]=this.extend&&this.translations[t]?Object.assign(Object.assign({},e),this.translations[t]):e,this.updateLangs(),this.pending=!1},error:t=>{this.pending=!1}}),e}setTranslation(t,e,i=!1){e=this.compiler.compileTranslations(e,t),this.translations[t]=(i||this.extend)&&this.translations[t]?y(this.translations[t],e):e,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,e,i){let n;if(e instanceof Array){let n={},a=!1;for(let s of e)n[s]=this.getParsedResult(t,s,i),(0,o.b)(n[s])&&(a=!0);if(a){const t=e.map(t=>(0,o.b)(n[t])?n[t]:(0,s.of)(n[t]));return(0,r.D)(t).pipe((0,h.U)(t=>{let i={};return t.forEach((t,n)=>{i[e[n]]=t}),i}))}return n}if(t&&(n=this.parser.interpolate(this.parser.getValue(t,e),i)),void 0===n&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(n=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e),i)),void 0===n){let t={key:e,translateService:this};void 0!==i&&(t.interpolateParams=i),n=this.missingTranslationHandler.handle(t)}return void 0!==n?n:e}get(t,e){if(!w(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,d.b)(i=>(i=this.getParsedResult(i,t,e),(0,o.b)(i)?i:(0,s.of)(i))));{let i=this.getParsedResult(this.translations[this.currentLang],t,e);return(0,o.b)(i)?i:(0,s.of)(i)}}getStreamOnTranslationChange(t,e){if(!w(t)||!t.length)throw new Error('Parameter "key" required');return(0,a.z)((0,c.P)(()=>this.get(t,e)),this.onTranslationChange.pipe((0,p.w)(i=>{const n=this.getParsedResult(i.translations,t,e);return"function"==typeof n.subscribe?n:(0,s.of)(n)})))}stream(t,e){if(!w(t)||!t.length)throw new Error('Parameter "key" required');return(0,a.z)((0,c.P)(()=>this.get(t,e)),this.onLangChange.pipe((0,p.w)(i=>{const n=this.getParsedResult(i.translations,t,e);return(0,o.b)(n)?n:(0,s.of)(n)})))}instant(t,e){if(!w(t)||!t.length)throw new Error('Parameter "key" required');let i=this.getParsedResult(this.translations[this.currentLang],t,e);if((0,o.b)(i)){if(t instanceof Array){let e={};return t.forEach((i,n)=>{e[t[n]]=t[n]}),e}return t}return i}set(t,e,i=this.currentLang){this.translations[i][t]=this.compiler.compile(e,i),this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==t?(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(S),n.LFG(g),n.LFG(C),n.LFG(v),n.LFG(m),n.LFG(I),n.LFG(k),n.LFG(R),n.LFG(x))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),P=(()=>{class t{constructor(t,e){this.translate=t,this._ref=e,this.value=""}updateValue(t,e,i){let n=e=>{this.value=void 0!==e?e:t,this.lastKey=t,this._ref.markForCheck()};if(i){let s=this.translate.getParsedResult(i,t,e);(0,o.b)(s.subscribe)?s.subscribe(n):n(s)}this.translate.get(t,e).subscribe(n)}transform(t,...e){if(!t||!t.length)return t;if(_(t,this.lastKey)&&_(e,this.lastParams))return this.value;let i;if(w(e[0])&&e.length)if("string"==typeof e[0]&&e[0].length){let t=e[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{i=JSON.parse(t)}catch(n){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${e[0]}`)}}else"object"!=typeof e[0]||Array.isArray(e[0])||(i=e[0]);return this.lastKey=t,this.lastParams=e,this.updateValue(t,i),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(e=>{this.lastKey&&e.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(t,i,e.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(e=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i,e.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(O,16),n.Y36(n.sBO,16))},t.\u0275pipe=n.Yjl({name:"translate",type:t,pure:!1}),t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),D=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:g,useClass:f},e.compiler||{provide:C,useClass:E},e.parser||{provide:v,useClass:T},e.missingTranslationHandler||{provide:m,useClass:b},S,{provide:k,useValue:e.isolate},{provide:I,useValue:e.useDefaultLang},{provide:R,useValue:e.extend},{provide:x,useValue:e.defaultLanguage},O]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:g,useClass:f},e.compiler||{provide:C,useClass:E},e.parser||{provide:v,useClass:T},e.missingTranslationHandler||{provide:m,useClass:b},{provide:k,useValue:e.isolate},{provide:I,useValue:e.useDefaultLang},{provide:R,useValue:e.extend},{provide:x,useValue:e.defaultLanguage},O]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t})()},52623:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{zr:function(){return OAuthModule},Ct:function(){return OAuthService}});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(31572),_angular_common__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(61511),_angular_common_http__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(29063),tslib__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(77632),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(55959),rxjs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(40878),rxjs__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(19764),rxjs__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(3875),rxjs__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(31225),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(31305),rxjs__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(31906),rxjs_operators__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(43835),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(66599),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(47701),rxjs_operators__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(60509),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(44689),rxjs_operators__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(79996),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(3530),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(47727),rxjs_operators__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(29085),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(90611),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(73982);module=__webpack_require__.hmd(module);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class t extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(t)))(i||t)}}(),t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class t{constructor(){this.data=new Map}getItem(t){return this.data.get(t)}removeItem(t){this.data.delete(t)}setItem(t,e){this.data.set(t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();class ReceivedTokens{}function b64DecodeUnicode(t){const e=t.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(e).split("").map(function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(t){return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(t){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){let e=this.inferHashAlgorithm(t.idTokenHeader),i=yield this.calcHash(t.accessToken,e),n=base64UrlEncode(i.substr(0,i.length/2)),s=t.idTokenClaims.at_hash.replace(/=/g,"");return n!==s&&(console.error("exptected at_hash: "+n),console.error("actual at_hash: "+s)),n===s})}inferHashAlgorithm(t){let e=t.alg;if(!e.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+e);return"sha-"+e.substr(2)}}let UrlHelperService=(()=>{class t{getHashFragmentParams(t){let e=t||window.location.hash;if(e=decodeURIComponent(e),0!==e.indexOf("#"))return{};const i=e.indexOf("?");return e=e.substr(i>-1?i+1:1),this.parseQueryString(e)}parseQueryString(t){const e={};let i,n,s,o,r,a,c;if(null===t)return e;i=t.split("&");for(let l=0;l{location.href=t},t&&Object.assign(this,t)}}class WebHttpUrlEncodingCodec{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&module.exports,AMD="function"==typeof define&&__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[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],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t,e){return function(i){return new Sha256(e,!0).update(i)[t]()}};const \u02750=createOutputMethod;var createMethod=function(t){var e=createOutputMethod("hex",t);NODE_JS&&(e=nodeWrap(e,t)),e.create=function(){return new Sha256(t)},e.update=function(t){return e.create().update(t)};for(var i=0;i>6,r[c++]=128|63&o):o<55296||o>=57344?(r[c++]=224|o>>12,r[c++]=128|o>>6&63,r[c++]=128|63&o):(o=65536+((1023&o)<<10|1023&t.charCodeAt(++n)),r[c++]=240|o>>18,r[c++]=128|o>>12&63,r[c++]=128|o>>6&63,r[c++]=128|63&o);t=r}else{if("object"!==s)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR)}t.length>64&&(t=new Sha256(e,!0).update(t).array());var l=[],u=[];for(n=0;n<64;++n){var h=t[n]||0;l[n]=92^h,u[n]=54^h}Sha256.call(this,e,i),this.update(u),this.oKeyPad=l,this.inner=!0,this.sharedMemory=i}Sha256.prototype.update=function(t){if(!this.finalized){var e,i=typeof t;if("string"!==i){if("object"!==i)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR);e=!0}for(var n,s,o=0,r=t.length,a=this.blocks;o>2]|=t[o]<>2]|=n<>2]|=(192|n>>6)<>2]|=(128|63&n)<=57344?(a[s>>2]|=(224|n>>12)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<>2]|=(240|n>>18)<>2]|=(128|n>>12&63)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<=64?(this.block=a[16],this.start=s-64,this.hash(),this.hashed=!0):this.start=s}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 t=this.blocks,e=this.lastByteIndex;t[16]=this.block,t[e>>2]|=EXTRA[3&e],this.block=t[16],e>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var t,e,i,n,s,o,r=this.h0,a=this.h1,c=this.h2,l=this.h3,u=this.h4,h=this.h5,d=this.h6,p=this.h7,g=this.blocks;for(t=16;t<64;++t)g[t]=g[t-16]+(((e=g[t-15])>>>7|e<<25)^(e>>>18|e<<14)^e>>>3)+g[t-7]+(((e=g[t-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)<<0;for(o=a&c,t=0;t<64;t+=4)this.first?(this.is224?(i=300032,p=(e=g[0]-1413257819)-150054599<<0,l=e+24177077<<0):(i=704751109,p=(e=g[0]-210244248)-1521486534<<0,l=e+143694565<<0),this.first=!1):(p=l+(e=p+((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&h^~u&d)+K[t]+g[t])<<0,l=e+(((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+((i=r&a)^r&c^o))<<0),d=c+(e=d+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&u^~p&h)+K[t+1]+g[t+1])<<0,c=e+(((l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10))+((n=l&r)^l&a^i))<<0,h=a+(e=h+((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&p^~d&u)+K[t+2]+g[t+2])<<0,a=e+(((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+((s=c&l)^c&r^n))<<0,u=r+(e=u+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&d^~h&p)+K[t+3]+g[t+3])<<0,r=e+(((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+((o=a&c)^a&l^s))<<0;this.h0=this.h0+r<<0,this.h1=this.h1+a<<0,this.h2=this.h2+c<<0,this.h3=this.h3+l<<0,this.h4=this.h4+u<<0,this.h5=this.h5+h<<0,this.h6=this.h6+d<<0,this.h7=this.h7+p<<0},Sha256.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,i=this.h2,n=this.h3,s=this.h4,o=this.h5,r=this.h6,a=this.h7,c=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[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[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[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[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]+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]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r];return this.is224||(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]),c},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,i=this.h2,n=this.h3,s=this.h4,o=this.h5,r=this.h6,a=this.h7,c=[t>>24&255,t>>16&255,t>>8&255,255&t,e>>24&255,e>>16&255,e>>8&255,255&e,i>>24&255,i>>16&255,i>>8&255,255&i,n>>24&255,n>>16&255,n>>8&255,255&n,s>>24&255,s>>16&255,s>>8&255,255&s,o>>24&255,o>>16&255,o>>8&255,255&o,r>>24&255,r>>16&255,r>>8&255,255&r];return this.is224||c.push(a>>24&255,a>>16&255,a>>8&255,255&a),c},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(this.is224?28:32),e=new DataView(t);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),e.setUint32(20,this.h5),e.setUint32(24,this.h6),this.is224||e.setUint32(28,this.h7),t},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(t),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0);class HashHandler{}let DefaultHashHandler=(()=>{class t{calcHash(t,e){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){const e=exports.array(t);return this.toHashString2(e)})}toHashString2(t){let e="";for(let i of t)e+=String.fromCharCode(i);return e}toHashString(t){const e=new Uint8Array(t);let i="";for(let n of e)i+=String.fromCharCode(n);return i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})(),OAuthService=(()=>{class t extends AuthConfig{constructor(t,e,i,n,s,o,r,a,c,l){var u;super(),this.ngZone=t,this.http=e,this.config=s,this.urlHelper=o,this.logger=r,this.crypto=a,this.dateTimeService=l,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_2__.xQ,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_2__.xQ,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=c,s||(s={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),n&&(this.tokenValidationHandler=n),s&&this.configure(s);try{i?this.setStorage(i):"undefined"!=typeof sessionStorage&&this.setStorage(sessionStorage)}catch(h){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",h)}if("undefined"!=typeof window&&void 0!==window.localStorage){const t=null===(u=null===window||void 0===window?void 0:window.navigator)||void 0===u?void 0:u.userAgent;((null==t?void 0:t.includes("MSIE "))||(null==t?void 0:t.includes("Trident")))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}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_3__.h)(t=>"token_received"===t.type)).subscribe(t=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(t={},e,i=!0){let n=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.b)(t=>{"token_received"===t.type?n=!0:"logout"===t.type&&(n=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>"token_expires"===t.type&&(null==e||"any"===e||t.info===e)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(1e3)).subscribe(e=>{n&&this.refreshInternal(t,i).catch(t=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(t,e){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(t,e):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(t=null){return this.loadDiscoveryDocument().then(e=>this.tryLogin(t))}loadDiscoveryDocumentAndLogin(t=null){return this.loadDiscoveryDocumentAndTryLogin(t=t||{}).then(e=>!(!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 e=[],i=this.validateUrlForHttps(t),n=this.validateUrlAgainstIssuer(t);return i||e.push("https for all urls required. Also for urls received by discovery."),n||e.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),e}validateUrlForHttps(t){if(!t)return!0;const e=t.toLowerCase();return!1===this.requireHttps||!(!e.match(/^http:\/\/localhost($|[:\/])/)&&!e.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps)||e.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(t,e){if(!t)throw new Error(`'${e}' should not be null`);if(!this.validateUrlForHttps(t))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(t){return!this.strictDiscoveryDocumentValidation||!t||t.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){"undefined"!=typeof window?((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_3__.h)(t=>"token_received"===t.type)).subscribe(t=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})):this.debug("timer not supported on this plattform")}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const t=this.getAccessTokenExpiration(),e=this.getAccessTokenStoredAt(),i=this.calcTimeout(e,t);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.g)(i)).subscribe(t=>{this.ngZone.run(()=>{this.eventsSubject.next(t)})})})}setupIdTokenTimer(){const t=this.getIdTokenExpiration(),e=this.getIdTokenStoredAt(),i=this.calcTimeout(e,t);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.g)(i)).subscribe(t=>{this.ngZone.run(()=>{this.eventsSubject.next(t)})})})}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,e){const i=this.dateTimeService.now();return Math.max(0,(e-t)*this.timeoutFactor-(i-t))}setStorage(t){this._storage=t,this.configChanged()}loadDiscoveryDocument(t=null){return new Promise((e,i)=>{t||((t=this.issuer||"").endsWith("/")||(t+="/"),t+=".well-known/openid-configuration"),this.validateUrlForHttps(t)?this.http.get(t).subscribe(t=>{if(!this.validateDiscoveryDocument(t))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void i("discovery_document_validation_error");this.loginUrl=t.authorization_endpoint,this.logoutUrl=t.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=t.grant_types_supported,this.issuer=t.issuer,this.tokenEndpoint=t.token_endpoint,this.userinfoEndpoint=t.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=t.jwks_uri,this.sessionCheckIFrameUrl=t.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(t),this.revocationEndpoint=t.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(i=>{const n=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:t,jwks:i});this.eventsSubject.next(n),e(n)}).catch(t=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",t)),i(t)})},t=>{this.logger.error("error loading discovery document",t),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",t)),i(t)}):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,e)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(e=>{this.jwks=e,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),t(e)},t=>{this.logger.error("error loading jwks",t),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",t)),e(t)}):t(null)})}validateDiscoveryDocument(t){let e;return this.skipIssuerCheck||t.issuer===this.issuer?(e=this.validateUrlFromDiscoveryDocument(t.authorization_endpoint),e.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(t.end_session_endpoint),e.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(t.token_endpoint),e.length>0&&this.logger.error("error validating token_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(t.revocation_endpoint),e.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(t.userinfo_endpoint),e.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(t.jwks_uri),e.length>0?(this.logger.error("error validating jwks_uri in discovery document",e),!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,e,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM){return this.fetchTokenUsingPasswordFlow(t,e,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,e)=>{const i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:i,observe:"response",responseType:"text"}).subscribe(i=>{if(this.debug("userinfo received",JSON.stringify(i)),i.headers.get("content-type").startsWith("application/json")){let n=JSON.parse(i.body);const s=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!s.sub||n.sub!==s.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");n=Object.assign({},s,n),this._storage.setItem("id_token_claims_obj",JSON.stringify(n)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),t({info:n})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),t(JSON.parse(i.body))},t=>{this.logger.error("error loading user info",t),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",t)),e(t)})})}fetchTokenUsingPasswordFlow(t,e,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM){return this.fetchTokenUsingGrant("password",{username:t,password:e},i)}fetchTokenUsingGrant(t,e,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",t).set("scope",this.scope);if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+t)}if(this.useHttpBasicAuth||(n=n.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(n=n.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const s of Object.getOwnPropertyNames(this.customQueryParams))n=n.set(s,this.customQueryParams[s]);for(const s of Object.keys(e))n=n.set(s,e[s]);return i=i.set("Content-Type","application/x-www-form-urlencoded"),new Promise((t,e)=>{this.http.post(this.tokenEndpoint,n,{headers:i}).subscribe(e=>{this.debug("tokenResponse",e),this.storeAccessTokenResponse(e.access_token,e.refresh_token,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,e.scope,this.extractRecognizedCustomParameters(e)),this.oidc&&e.id_token&&this.processIdToken(e.id_token,e.access_token).then(i=>{this.storeIdToken(i),t(e)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),t(e)},t=>{this.logger.error("Error performing ${grantType} flow",t),this.eventsSubject.next(new OAuthErrorEvent("token_error",t)),e(t)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((t,e)=>{let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),n=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);n=n.set("Authorization","Basic "+t)}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 s of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(s,this.customQueryParams[s]);this.http.post(this.tokenEndpoint,i,{headers:n}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.w)(t=>t.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_10__.D)(this.processIdToken(t.id_token,t.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.b)(t=>this.storeIdToken(t)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.U)(e=>t)):(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(t))).subscribe(e=>{this.debug("refresh tokenResponse",e),this.storeAccessTokenResponse(e.access_token,e.refresh_token,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,e.scope,this.extractRecognizedCustomParameters(e)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),t(e)},t=>{this.logger.error("Error refreshing token",t),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",t)),e(t)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=t=>{const e=this.processMessageEventMessage(t);this.tryLogin({customHashFragment:e,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(t=>this.debug("tryLogin during silent refresh failed",t))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(t={},e=!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(void 0===this.document)throw new Error("silent refresh is not supported on this platform");const n=this.document.getElementById(this.silentRefreshIFrameName);n&&this.document.body.removeChild(n),this.silentRefreshSubject=i.sub;const s=this.document.createElement("iframe");s.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,e,t).then(t=>{s.setAttribute("src",t),this.silentRefreshShowIFrame||(s.style.display="none"),this.document.body.appendChild(s)});const o=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>t instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.P)()),r=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>"token_received"===t.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.P)()),a=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_13__.S3)([o,r,a]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.U)(t=>{if(t instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===t.type||(t=new OAuthErrorEvent("silent_refresh_error",t)),this.eventsSubject.next(t),t;return"token_received"===t.type&&(t=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(t)),t})).toPromise()}initImplicitFlowInPopup(t){return this.initLoginFlowInPopup(t)}initLoginFlowInPopup(t){return t=t||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(e=>new Promise((i,n)=>{let s,o=null;t.windowRef?t.windowRef&&!t.windowRef.closed&&(o=t.windowRef,o.location.href=e):o=window.open(e,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(t));const r=t=>{this.tryLogin({customHashFragment:t,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{a(),i(!0)},t=>{a(),n(t)})};o?s=window.setInterval(()=>{o&&!o.closed||(a(),n(new OAuthErrorEvent("popup_closed",{})))},500):n(new OAuthErrorEvent("popup_blocked",{}));const a=()=>{window.clearInterval(s),window.removeEventListener("storage",l),window.removeEventListener("message",c),null!==o&&o.close(),o=null},c=t=>{const e=this.processMessageEventMessage(t);e&&null!==e?(window.removeEventListener("storage",l),r(e)):console.log("false event firing")},l=t=>{"auth_hash"===t.key&&(window.removeEventListener("message",c),r(t.newValue))};window.addEventListener("message",c),window.addEventListener("storage",l)}))}calculatePopupFeatures(t){const e=t.height||470,i=t.width||500,n=window.screenLeft+(window.outerWidth-i)/2;return`location=no,toolbar=no,width=${i},height=${e},top=${window.screenTop+(window.outerHeight-e)/2},left=${n}`}processMessageEventMessage(t){let e="#";if(this.silentRefreshMessagePrefix&&(e+=this.silentRefreshMessagePrefix),!t||!t.data||"string"!=typeof t.data)return;const i=t.data;return i.startsWith(e)?"#"+i.substr(e.length):void 0}canPerformSessionCheck(){return!!this.sessionChecksEnabled&&(this.sessionCheckIFrameUrl?this.getSessionState()?void 0!==this.document:(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 e=t.origin.toLowerCase(),i=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),i.startsWith(e)){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",e,"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_3__.h)(t=>"silently_refreshed"===t.type||"silent_refresh_timeout"===t.type||"silent_refresh_error"===t.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.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 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 t=this.document.getElementById(this.sessionCheckIFrameName);t||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const e=this.getSessionState();e||this.stopSessionCheckTimer(),t.contentWindow.postMessage(this.clientId+" "+e,this.issuer)}createLoginUrl(t="",e="",i="",n=!1,s={}){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){let o;o=i||this.redirectUri;const r=yield this.createAndSaveNonce();if(t=t?r+this.config.nonceStateSeparator+encodeURIComponent(t):r,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.responseType=this.config.responseType?this.config.responseType:this.oidc&&this.requestAccessToken?"id_token token":this.oidc&&!this.requestAccessToken?"id_token":"token";const a=this.loginUrl.indexOf("?")>-1?"&":"?";let c=this.scope;this.oidc&&!c.match(/(^|\s)openid($|\s)/)&&(c="openid "+c);let l=this.loginUrl+a+"response_type="+encodeURIComponent(this.responseType)+"&client_id="+encodeURIComponent(this.clientId)+"&state="+encodeURIComponent(t)+"&redirect_uri="+encodeURIComponent(o)+"&scope="+encodeURIComponent(c);if(this.responseType.includes("code")&&!this.disablePKCE){const[t,e]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("PKCE_verifier",e):this._storage.setItem("PKCE_verifier",e),l+="&code_challenge="+t,l+="&code_challenge_method=S256"}e&&(l+="&login_hint="+encodeURIComponent(e)),this.resource&&(l+="&resource="+encodeURIComponent(this.resource)),this.oidc&&(l+="&nonce="+encodeURIComponent(r)),n&&(l+="&prompt=none");for(const t of Object.keys(s))l+="&"+encodeURIComponent(t)+"="+encodeURIComponent(s[t]);if(this.customQueryParams)for(const t of Object.getOwnPropertyNames(this.customQueryParams))l+="&"+t+"="+encodeURIComponent(this.customQueryParams[t]);return l})}initImplicitFlowInternal(t="",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 i={},n=null;"string"==typeof e?n=e:"object"==typeof e&&(i=e),this.createLoginUrl(t,n,null,!1,i).then(this.config.openUri).catch(t=>{console.error("Error in initImplicitFlow",t),this.inImplicitFlow=!1})}initImplicitFlow(t="",e=""){""!==this.loginUrl?this.initImplicitFlowInternal(t,e):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>"discovery_document_loaded"===t.type)).subscribe(i=>this.initImplicitFlowInternal(t,e))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(t){const e=this;if(t.onTokenReceived){const i={idClaims:e.getIdentityClaims(),idToken:e.getIdToken(),accessToken:e.getAccessToken(),state:e.state};t.onTokenReceived(i)}}storeAccessTokenResponse(t,e,i,n,s){if(this._storage.setItem("access_token",t),n&&!Array.isArray(n)?this._storage.setItem("granted_scopes",JSON.stringify(n.split(" "))):n&&Array.isArray(n)&&this._storage.setItem("granted_scopes",JSON.stringify(n)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),i){const t=1e3*i,e=this.dateTimeService.new().getTime()+t;this._storage.setItem("expires_at",""+e)}e&&this._storage.setItem("refresh_token",e),s&&s.forEach((t,e)=>{this._storage.setItem(e,t)})}tryLogin(t=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(t).then(t=>!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){const e=(t=t||{}).customHashFragment?t.customHashFragment.substring(1):window.location.search,i=this.getCodePartsFromUrl(e),n=i.code,s=i.state,o=i.session_state;if(!t.preventClearHashAfterLogin){const t=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,t)}let[r,a]=this.parseState(s);if(this.state=a,i.error){this.debug("error trying to login"),this.handleLoginError(t,i);const e=new OAuthErrorEvent("code_error",{},i);return this.eventsSubject.next(e),Promise.reject(e)}if(!t.disableNonceCheck){if(!r)return Promise.resolve();if(!t.disableOAuth2StateCheck&&!this.validateNonce(r)){const t=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(t),Promise.reject(t)}return this.storeSessionState(o),n?this.getTokenFromCode(n,t).then(t=>null):Promise.resolve()}}getCodePartsFromUrl(t){return t&&0!==t.length?("?"===t.charAt(0)&&(t=t.substr(1)),this.urlHelper.parseQueryString(t)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(t,e){let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",t).set("redirect_uri",e.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let t;t=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),t?i=i.set("code_verifier",t):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(i,e)}fetchAndProcessToken(t,e){e=e||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+t)}return this.useHttpBasicAuth||(t=t.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(t=t.set("client_secret",this.dummyClientSecret)),new Promise((n,s)=>{if(this.customQueryParams)for(let e of Object.getOwnPropertyNames(this.customQueryParams))t=t.set(e,this.customQueryParams[e]);this.http.post(this.tokenEndpoint,t,{headers:i}).subscribe(t=>{this.debug("refresh tokenResponse",t),this.storeAccessTokenResponse(t.access_token,t.refresh_token,t.expires_in||this.fallbackAccessTokenExpirationTimeInSec,t.scope,this.extractRecognizedCustomParameters(t)),this.oidc&&t.id_token?this.processIdToken(t.id_token,t.access_token,e.disableNonceCheck).then(e=>{this.storeIdToken(e),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),n(t)}).catch(t=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",t)),console.error("Error validating tokens"),console.error(t),s(t)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),n(t))},t=>{console.error("Error getting token",t),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",t)),s(t)})})}tryLoginImplicitFlow(t=null){let e;e=(t=t||{}).customHashFragment?this.urlHelper.getHashFragmentParams(t.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",e);const i=e.state;let[n,s]=this.parseState(i);if(this.state=s,e.error){this.debug("error trying to login"),this.handleLoginError(t,e);const i=new OAuthErrorEvent("token_error",{},e);return this.eventsSubject.next(i),Promise.reject(i)}const o=e.access_token,r=e.id_token,a=e.session_state,c=e.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!o)return Promise.resolve(!1);if(this.requestAccessToken&&!t.disableOAuth2StateCheck&&!i)return Promise.resolve(!1);if(this.oidc&&!r)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!a&&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(n)){const t=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(t),Promise.reject(t)}return this.requestAccessToken&&this.storeAccessTokenResponse(o,null,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,c),this.oidc?this.processIdToken(r,o,t.disableNonceCheck).then(e=>t.validationHandler?t.validationHandler({accessToken:o,idClaims:e.idTokenClaims,idToken:e.idToken,state:i}).then(t=>e):e).then(e=>(this.storeIdToken(e),this.storeSessionState(a),this.clearHashAfterLogin&&!t.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(t),this.inImplicitFlow=!1,!0)).catch(t=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",t)),this.logger.error("Error validating tokens"),this.logger.error(t),Promise.reject(t))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!t.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(t),Promise.resolve(!0))}parseState(t){let e=t,i="";if(t){const n=t.indexOf(this.config.nonceStateSeparator);n>-1&&(e=t.substr(0,n),i=t.substr(n+this.config.nonceStateSeparator.length))}return[e,i]}validateNonce(t){let e;return e=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),e===t||(console.error("Validating access_token failed, wrong state/nonce.",e,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,e){t.onLoginError&&t.onLoginError(e),this.clearHashAfterLogin&&!t.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(t=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:t}processIdToken(t,e,i=!1){const n=t.split("."),s=b64DecodeUnicode(this.padBase64(n[0])),o=JSON.parse(s),r=b64DecodeUnicode(this.padBase64(n[1])),a=JSON.parse(r);let c;if(c=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(a.aud)){if(a.aud.every(t=>t!==this.clientId)){const t="Wrong audience: "+a.aud.join(",");return this.logger.warn(t),Promise.reject(t)}}else if(a.aud!==this.clientId){const t="Wrong audience: "+a.aud;return this.logger.warn(t),Promise.reject(t)}if(!a.sub){const t="No sub claim in id_token";return this.logger.warn(t),Promise.reject(t)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==a.sub){const t=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${a.sub}`;return this.logger.warn(t),Promise.reject(t)}if(!a.iat){const t="No iat claim in id_token";return this.logger.warn(t),Promise.reject(t)}if(!this.skipIssuerCheck&&a.iss!==this.issuer){const t="Wrong issuer: "+a.iss;return this.logger.warn(t),Promise.reject(t)}if(!i&&a.nonce!==c){const t="Wrong nonce: "+a.nonce;return this.logger.warn(t),Promise.reject(t)}if(!this.hasOwnProperty("responseType")||"code"!==this.responseType&&"id_token"!==this.responseType||(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!a.at_hash){const t="An at_hash is needed!";return this.logger.warn(t),Promise.reject(t)}const l=this.dateTimeService.now(),u=1e3*a.iat,h=1e3*a.exp,d=this.getClockSkewInMsec();if(u-d>=l||h+d<=l){const t="Token has expired";return console.error(t),console.error({now:l,issuedAtMSec:u,expiresAtMSec:h}),Promise.reject(t)}const p={accessToken:e,idToken:t,jwks:this.jwks,idTokenClaims:a,idTokenHeader:o,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(p).then(e=>({idToken:t,idTokenClaims:a,idTokenClaimsJson:r,idTokenHeader:o,idTokenHeaderJson:s,idTokenExpiresAt:h})):this.checkAtHash(p).then(e=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!e){const t="Wrong at_hash";return this.logger.warn(t),Promise.reject(t)}return this.checkSignature(p).then(e=>{const i={idToken:t,idTokenClaims:a,idTokenClaimsJson:r,idTokenHeader:o,idTokenHeaderJson:s,idTokenExpiresAt:h};return this.disableAtHashCheck?i:this.checkAtHash(p).then(t=>{if(this.requestAccessToken&&!t){const t="Wrong at_hash";return this.logger.warn(t),Promise.reject(t)}return i})})})}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"),e=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={},e=""){let i=!1;"boolean"==typeof t&&(i=t,t={});const n=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(t=>this._storage.removeItem(t)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl)return;if(i)return;if(!n&&!this.postLogoutRedirectUri)return;let s;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)s=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(n)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec});n&&(i=i.set("id_token_hint",n));const o=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";o&&(i=i.set("post_logout_redirect_uri",o),e&&(i=i.set("state",e)));for(let e in t)i=i.set(e,t[e]);s=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+i.toString()}this.config.openUri(s)}createAndSaveNonce(){const t=this;return this.createNonce().then(function(e){return t.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("nonce",e):t._storage.setItem("nonce",e),e})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const t=this.document.getElementById(this.silentRefreshIFrameName);t&&t.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const e=this.document.getElementById(this.sessionCheckIFrameName);e&&e.remove()}createNonce(){return new Promise(t=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let i=45,n="";const s="undefined"==typeof self?null:self.crypto||self.msCrypto;if(s){let t=new Uint8Array(i);s.getRandomValues(t),t.map||(t.map=Array.prototype.map),t=t.map(t=>e.charCodeAt(t%e.length)),n=String.fromCharCode.apply(null,t)}else for(;0"discovery_document_loaded"===t.type)).subscribe(i=>this.initCodeFlowInternal(t,e))}initCodeFlowInternal(t="",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 i={},n=null;"string"==typeof e?n=e:"object"==typeof e&&(i=e),this.createLoginUrl(t,n,null,!1,i).then(this.config.openUri).catch(t=>{console.error("Error in initAuthorizationCodeFlow"),console.error(t)})}createChallangeVerifierPairForPKCE(){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const t=yield this.createNonce();return[base64UrlEncode(yield this.crypto.calcHash(t,"sha-256")),t]})}extractRecognizedCustomParameters(t){let e=new Map;return this.config.customTokenParameters?(this.config.customTokenParameters.forEach(i=>{t[i]&&e.set(i,JSON.stringify(t[i]))}),e):e}revokeTokenAndLogout(t={},e=!1){let i=this.revocationEndpoint,n=this.getAccessToken(),s=this.getRefreshToken();if(!n)return;let o=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}),r=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);r=r.set("Authorization","Basic "+t)}if(this.useHttpBasicAuth||(o=o.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(o=o.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const a of Object.getOwnPropertyNames(this.customQueryParams))o=o.set(a,this.customQueryParams[a]);return new Promise((a,c)=>{let l,u;if(n){let t=o.set("token",n).set("token_type_hint","access_token");l=this.http.post(i,t,{headers:r})}else l=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null);if(s){let t=o.set("token",s).set("token_type_hint","refresh_token");u=this.http.post(i,t,{headers:r})}else u=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null);e&&(l=l.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>0===t.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(t))),u=u.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>0===t.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(t)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_16__.aj)([l,u]).subscribe(e=>{this.logOut(t),a(e),this.logger.info("Token successfully revoked")},t=>{this.logger.error("Error revoking token",t),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",t)),c(t)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return t.\u0275fac=function(e){return new(e||t)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_0__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_8__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_17__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DateTimeProvider))},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(t){return(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(t)}}let DefaultOAuthInterceptor=(()=>{class t{constructor(t,e,i){this.oAuthService=t,this.errorHandler=e,this.moduleConfig=i}checkUrl(t){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(t):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(e=>t.toLowerCase().startsWith(e.toLowerCase()))}intercept(t,e){const i=t.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(i)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_18__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>!!t)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>"token_received"===t.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_19__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.U)(t=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.zg)(i=>{if(i){const e=t.headers.set("Authorization","Bearer "+i);t=t.clone({headers:e})}return e.handle(t).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>this.errorHandler.handleError(t)))})):e.handle(t).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>this.errorHandler.handleError(t))):e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthModuleConfig,8))},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();class NullValidationHandler{validateSignature(t){return Promise.resolve(null)}validateAtHash(t){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return"undefined"!=typeof sessionStorage?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class t{static forRoot(e=null,i=NullValidationHandler){return{ngModule:t,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:i},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:e},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_8__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:t}),t.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_17__.ez]]}),t})();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_0__.OlP("AUTH_CONFIG")},82051:function(t,e){var i,n;void 0===(n="function"==typeof(i=function(){"use strict";function e(t,e,i){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){r(n.response,e,i)},n.onerror=function(){console.error("could not download file")},n.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function n(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,o=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),r=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(t,o,r){var a=s.URL||s.webkitURL,c=document.createElement("a");c.download=o=o||t.name||"download",c.rel="noopener","string"==typeof t?(c.href=t,c.origin===location.origin?n(c):i(c.href)?e(t,o,r):n(c,c.target="_blank")):(c.href=a.createObjectURL(t),setTimeout(function(){a.revokeObjectURL(c.href)},4e4),setTimeout(function(){n(c)},0))}:"msSaveOrOpenBlob"in navigator?function(t,s,o){if(s=s||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,o),s);else if(i(t))e(t,s,o);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){n(r)})}}:function(t,i,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return e(t,i,n);var a="application/octet-stream"===t.type,c=/constructor/i.test(s.HTMLElement)||s.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||a&&c||o)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var t=u.result;t=l?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},u.readAsDataURL(t)}else{var h=s.URL||s.webkitURL,d=h.createObjectURL(t);r?r.location=d:location.href=d,r=null,setTimeout(function(){h.revokeObjectURL(d)},4e4)}});s.saveAs=r.saveAs=r,t.exports=r})?i.apply(e,[]):i)||(t.exports=n)},30146:function(t,e,i){"use strict";i.d(e,{nu:function(){return H},Co:function(){return G}});var n=i(64762),s=i(31572),o=i(16073),r=i(71522),a=i(4786),c=i(66283),l=i(75842),u=i(78512),h=i(40878),d=i(31305),p=i(55959),g=i(44689),f=i(79996),m=i(56238),b=i(60509),_=i(25416),w=i(90611),A=i(43835),y=i(66599),v=i(15980),T=i(29236),C=i(43691),E=i(67806),S=i(36922),k=i(61511),I=i(4253),x=i(24621);const R=["searchSelectInput"],O=["innerSelectSearch"];function P(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-checkbox",9),s.NdJ("change",function(e){return s.CHM(t),s.oxw()._emitSelectAllBooleanToParent(e.checked)}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("color",null==t.matFormField?null:t.matFormField.color)("checked",t.toggleAllCheckboxChecked)("indeterminate",t.toggleAllCheckboxIndeterminate)("matTooltip",t.toggleAllCheckboxTooltipMessage)("matTooltipPosition",t.toogleAllCheckboxTooltipPosition)}}function D(t,e){1&t&&s._UZ(0,"mat-spinner",10)}function M(t,e){1&t&&s.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function L(t,e){1&t&&(s.TgZ(0,"mat-icon"),s._uU(1,"close"),s.qZA())}function N(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",11),s.NdJ("click",function(){return s.CHM(t),s.oxw()._reset(!0)}),s.YNc(1,M,1,0,"ng-content",12),s.YNc(2,L,2,0,"ng-template",null,13,s.W1O),s.qZA()}if(2&t){const t=s.MAs(3),e=s.oxw();s.xp6(1),s.Q6J("ngIf",e.clearIcon)("ngIfElse",t)}}function z(t,e){if(1&t&&(s.TgZ(0,"div",14),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.hij(" ",t.noEntriesFoundLabel,"\n")}}const Z=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]]],B=function(t,e){return{"mat-select-search-inner-multiple":t,"mat-select-search-inner-toggle-all":e}},F=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]"];let U=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","ngxMatSelectSearchClear",""]]}),t})();var q;let H=(()=>{let t=q=class{constructor(t,e,i,n=null,r,a=null){this.matSelect=t,this.changeDetectorRef=e,this._viewportRuler=i,this.matOption=n,this.liveAnnouncer=r,this.matFormField=a,this.placeholderLabel="Suche",this.type="text",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 s.vpe,this.onTouched=t=>{},this._options$=new u.X(null),this.optionsList$=this._options$.pipe((0,g.w)(t=>t?t.changes.pipe((0,f.U)(t=>t.toArray()),(0,m.O)(t.toArray())):(0,h.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,f.U)(t=>t?t.length:0)),this._formControl=new o.NI(""),this._showNoEntriesFound$=(0,d.aj)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,f.U)(([t,e])=>this.noEntriesFoundLabel&&t&&e===this.getOptionsLengthOffset())),this._onDestroy=new p.xQ}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(t){this._options$.next(t)}get _options(){return this._options$.getValue()}ngOnInit(){const t="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(t):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,t]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[t]=!0):this.matSelect.panelClass=t,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,b.g)(1),(0,_.R)(this._onDestroy)).subscribe(t=>{t?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,w.q)(1)).pipe((0,_.R)(this._onDestroy)).subscribe(()=>{this.matSelect._keyManager?this.matSelect._keyManager.change.pipe((0,_.R)(this._onDestroy)).subscribe(()=>this.adjustScrollTopToFitActiveOptionIntoView()):console.log("_keyManager was not initialized."),this._options=this.matSelect.options;let t=this._options.toArray()[this.getOptionsLengthOffset()];this._options.changes.pipe((0,_.R)(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const e=this._options.toArray(),i=e[this.getOptionsLengthOffset()],n=this.matSelect._keyManager;n&&this.matSelect.panelOpen&&(!!this.matSelect.compareWith(t,i)&&n.activeItem&&e.find(t=>this.matSelect.compareWith(t,n.activeItem))||n.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),t=i})})}),this._showNoEntriesFound$.pipe((0,_.R)(this._onDestroy)).subscribe(t=>{this.matOption&&(t?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,_.R)(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,_.R)(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(t){this.toggleAll.emit(t)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(t){(t.key&&1===t.key.length||t.keyCode>=l.A&&t.keyCode<=l.Z||t.keyCode>=l.xE&&t.keyCode<=l.aO||t.keyCode===l.L_||this.preventHomeEndKeyPropagation&&(t.keyCode===l.Sd||t.keyCode===l.uR))&&t.stopPropagation(),this.matSelect.multiple&&t.key&&t.keyCode===l.K5&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&t.keyCode===l.hY&&this.value&&(this._reset(!0),t.stopPropagation())}_handleKeyup(t){if(t.keyCode===l.LH||t.keyCode===l.JH){const t=this.matSelect._getAriaActiveDescendant(),e=this._options.toArray().findIndex(e=>e.id===t);if(-1!==e){const t=this._options.toArray()[e];this.liveAnnouncer.announce(t.viewValue+" "+this.getAriaIndex(e)+this.indexAndLengthScreenReaderText+this.getAriaLength())}}}getAriaIndex(t){return 0===this.getOptionsLengthOffset()?t+1:t}getAriaLength(){return this._options.toArray().length-this.getOptionsLengthOffset()}writeValue(t){this._lastExternalInputValue=t,this._formControl.setValue(t),this.changeDetectorRef.markForCheck()}onBlur(){this.onTouched()}registerOnChange(t){this._formControl.valueChanges.pipe((0,A.h)(t=>t!==this._lastExternalInputValue),(0,y.b)(()=>this._lastExternalInputValue=void 0),(0,_.R)(this._onDestroy)).subscribe(t)}registerOnTouched(t){this.onTouched=t}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const t=this.matSelect.panel.nativeElement,e=t.scrollTop;this.searchSelectInput.nativeElement.focus(),t.scrollTop=e}_reset(t){this._formControl.setValue(""),t&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,_.R)(this._onDestroy)).subscribe(t=>{let e=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){t&&Array.isArray(t)||(t=[]);const i=this.matSelect.options.map(t=>t.value);this.previousSelectedValues.forEach(n=>{t.some(t=>this.matSelect.compareWith(t,n))||i.some(t=>this.matSelect.compareWith(t,n))||(t.push(n),e=!0)})}this.previousSelectedValues=t,e&&this.matSelect._onChange(t)})):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 t=this.getMatOptionHeight(),e=this.matSelect._keyManager.activeItemIndex||0,i=(0,r.CB)(e,this.matSelect.options,this.matSelect.optionGroups),n=(this.matOption?-1:0)+i+e,s=this.matSelect.panel.nativeElement.scrollTop,o=this.innerSelectSearch.nativeElement.offsetHeight,a=Math.floor((256-o)/t),c=Math.round((s+o)/t)-1;c>=n?this.matSelect.panel.nativeElement.scrollTop=n*t:c+a<=n&&(this.matSelect.panel.nativeElement.scrollTop=(n+1)*t-(256-o))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let t,e=this.innerSelectSearch.nativeElement;for(;e=e.parentElement;)if(e.classList.contains("mat-select-panel")){t=e;break}t&&(this.innerSelectSearch.nativeElement.style.width=t.clientWidth+"px")}getMatOptionHeight(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}getOptionsLengthOffset(){return this.matOption?1:0}};return t.\u0275fac=function(e){return new(e||t)(s.Y36(a.gD),s.Y36(s.sBO),s.Y36(I.rL),s.Y36(r.ey,8),s.Y36(x.Kd),s.Y36(c.KE,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["ngx-mat-select-search"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,U,5),2&t){let t;s.iGM(t=s.CRH())&&(e.clearIcon=t.first)}},viewQuery:function(t,e){if(1&t&&(s.Gf(R,7,s.SBq),s.Gf(O,7,s.SBq)),2&t){let t;s.iGM(t=s.CRH())&&(e.searchSelectInput=t.first),s.iGM(t=s.CRH())&&(e.innerSelectSearch=t.first)}},hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-select-search-inside-mat-option",e.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",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:[s._Bn([{provide:o.JU,useExisting:(0,s.Gpc)(()=>q),multi:!0}])],ngContentSelectors:F,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",""],[1,"mat-select-search-no-entries-found"]],template:function(t,e){1&t&&(s.F$t(Z),s._UZ(0,"input",0),s.TgZ(1,"div",1,2),s.YNc(3,P,1,5,"mat-checkbox",3),s.TgZ(4,"input",4,5),s.NdJ("keydown",function(t){return e._handleKeydown(t)})("keyup",function(t){return e._handleKeyup(t)})("blur",function(){return e.onBlur()}),s.qZA(),s.YNc(6,D,1,0,"mat-spinner",6),s.YNc(7,N,4,2,"button",7),s.Hsn(8),s.qZA(),s.YNc(9,z,2,1,"div",8),s.ALo(10,"async")),2&t&&(s.xp6(1),s.Q6J("ngClass",s.WLB(11,B,e.matSelect.multiple,e._isToggleAllCheckboxVisible())),s.xp6(2),s.Q6J("ngIf",e._isToggleAllCheckboxVisible()),s.xp6(1),s.Q6J("type",e.type)("formControl",e._formControl)("placeholder",e.placeholderLabel),s.uIk("aria-label",e.ariaLabel),s.xp6(2),s.Q6J("ngIf",e.searching),s.xp6(1),s.Q6J("ngIf",!e.hideClearSearchButton&&e.value&&!e.searching),s.xp6(2),s.Q6J("ngIf",s.lcZ(10,9,e._showNoEntriesFound$)))},directives:[k.mk,k.O5,o.Fj,o.JJ,o.oH,T.oG,S.gM,E.$g,v.lW,C.Hw],pipes:[k.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}),t=q=(0,n.gn)([(0,n.fM)(0,(0,s.tBr)(a.gD)),(0,n.fM)(3,(0,s.FiY)()),(0,n.fM)(3,(0,s.tBr)(r.ey)),(0,n.fM)(5,(0,s.FiY)()),(0,n.fM)(5,(0,s.tBr)(c.KE))],t),t})(),G=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[k.ez,o.UX,v.ot,T.p9,C.Ps,E.Cq,S.AV]]}),t})()},40963:function(t){"use strict";function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,i,n,s){n=n||"=";var o={};if("string"!=typeof t||0===t.length)return o;var r=/\+/g;t=t.split(i=i||"&");var a=1e3;s&&"number"==typeof s.maxKeys&&(a=s.maxKeys);var c=t.length;a>0&&c>a&&(c=a);for(var l=0;l=0?(u=g.substr(0,f),h=g.substr(f+1)):(u=g,h=""),d=decodeURIComponent(u),p=decodeURIComponent(h),e(o,d)?Array.isArray(o[d])?o[d].push(p):o[d]=[o[d],p]:o[d]=p}return o}},15341:function(t){"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,i,n,s){return i=i||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map(function(s){var o=encodeURIComponent(e(s))+n;return Array.isArray(t[s])?t[s].map(function(t){return o+encodeURIComponent(e(t))}).join(i):o+encodeURIComponent(e(t[s]))}).join(i):s?encodeURIComponent(e(s))+n+encodeURIComponent(e(t)):""}},96577:function(t,e,i){"use strict";i(40963),e.stringify=i(15341)},78512:function(t,e,i){"use strict";i.d(e,{X:function(){return o}});var n=i(55959),s=i(13895);class o extends n.xQ{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.N;return this._value}next(t){super.next(this._value=t)}}},99867:function(t,e,i){"use strict";i.d(e,{d:function(){return s}});var n=i(96673);class s extends n.L{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},3103:function(t,e,i){"use strict";i.d(e,{P:function(){return r}});var n=i(70653),s=i(40878),o=i(31225);let r=(()=>{class t{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return(0,s.of)(this.value);case"E":return(0,o._)(this.error);case"C":return(0,n.c)()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})()},48318:function(t,e,i){"use strict";i.d(e,{y:function(){return l}});var n=i(96673),s=i(55331),o=i(57498),r=i(56197),a=i(13392),c=i(51484);let l=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(t,e,i){const{operator:r}=this,a=function(t,e,i){if(t){if(t instanceof n.L)return t;if(t[s.b])return t[s.b]()}return t||e||i?new n.L(t,e,i):new n.L(o.c)}(t,e,i);if(a.add(r?r.call(a,this.source):this.source||c.v.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),c.v.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){c.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:i,isStopped:s}=t;if(e||s)return!1;t=i&&i instanceof n.L?i:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=u(e))((e,i)=>{let n;n=this.subscribe(e=>{try{t(e)}catch(s){i(s),n&&n.unsubscribe()}},i,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[r.L](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?a.y:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=u(t))((t,e)=>{let i;this.subscribe(t=>i=t,t=>e(t),()=>t(i))})}}return t.create=e=>new t(e),t})();function u(t){if(t||(t=c.v.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},57498:function(t,e,i){"use strict";i.d(e,{c:function(){return o}});var n=i(51484),s=i(14294);const o={closed:!0,next(t){},error(t){if(n.v.useDeprecatedSynchronousErrorHandling)throw t;(0,s.z)(t)},complete(){}}},59829:function(t,e,i){"use strict";i.d(e,{L:function(){return s}});var n=i(96673);class s extends n.L{notifyNext(t,e,i,n,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}},66994:function(t,e,i){"use strict";i.d(e,{t:function(){return m}});var n=i(55959),s=i(8277);class o extends s.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}var r=i(91098);class a extends r.v{}const c=new a(o);var l=i(87570),u=i(96673),h=i(3103);class d extends u.L{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(d.dispatch,this.delay,new p(t,this.destination)))}_next(t){this.scheduleMessage(h.P.createNext(t))}_error(t){this.scheduleMessage(h.P.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(h.P.createComplete()),this.unsubscribe()}}class p{constructor(t,e){this.notification=t,this.destination=e}}var g=i(13895),f=i(19291);class m extends n.xQ{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new b(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),n=this.scheduler,s=i.length;let o;if(this.closed)throw new g.N;if(this.isStopped||this.hasError?o=l.w.EMPTY:(this.observers.push(t),o=new f.W(this,t)),n&&t.add(t=new d(t,n)),e)for(let r=0;re&&(o=Math.max(o,s-e)),o>0&&n.splice(0,o),n}}class b{constructor(t,e){this.time=t,this.value=e}}},55959:function(t,e,i){"use strict";i.d(e,{Yc:function(){return l},xQ:function(){return u}});var n=i(48318),s=i(96673),o=i(87570),r=i(13895),a=i(19291),c=i(55331);class l extends s.L{constructor(t){super(t),this.destination=t}}let u=(()=>{class t extends n.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[c.b](){return new l(this)}lift(t){const e=new h(this,this);return e.operator=t,e}next(t){if(this.closed)throw new r.N;if(!this.isStopped){const{observers:e}=this,i=e.length,n=e.slice();for(let s=0;snew h(t,e),t})();class h extends u{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):o.w.EMPTY}}},19291:function(t,e,i){"use strict";i.d(e,{W:function(){return s}});var n=i(87570);class s extends n.w{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}},96673:function(t,e,i){"use strict";i.d(e,{L:function(){return l}});var n=i(85024),s=i(57498),o=i(87570),r=i(55331),a=i(51484),c=i(14294);class l extends o.w{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.c;break;case 1:if(!t){this.destination=s.c;break}if("object"==typeof t){t instanceof l?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,t,e,i)}}[r.b](){return this}static create(t,e,i){const n=new l(t,e,i);return n.syncErrorThrowable=!1,n}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class u extends l{constructor(t,e,i,o){let r;super(),this._parentSubscriber=t;let a=this;(0,n.m)(e)?r=e:e&&(r=e.next,i=e.error,o=e.complete,e!==s.c&&(a=Object.create(e),(0,n.m)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=r,this._error=i,this._complete=o}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=a.v;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):(0,c.z)(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;(0,c.z)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),a.v.useDeprecatedSynchronousErrorHandling)throw i;(0,c.z)(i)}}__tryOrSetError(t,e,i){if(!a.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(n){return a.v.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=n,t.syncErrorThrown=!0,!0):((0,c.z)(n),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},87570:function(t,e,i){"use strict";i.d(e,{w:function(){return a}});var n=i(98470),s=i(82056),o=i(85024);const r=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let a=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:i,_unsubscribe:a,_subscriptions:l}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof t)i.remove(this);else if(null!==i)for(let t=0;tt.concat(e instanceof r?e.errors:e),[])}},51484:function(t,e,i){"use strict";i.d(e,{v:function(){return s}});let n=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else n&&console.log("RxJS: Back to a better error behavior. Thank you. <3");n=t},get useDeprecatedSynchronousErrorHandling(){return n}}},42875:function(t,e,i){"use strict";i.d(e,{c:function(){return a},N:function(){return c}});var n=i(55959),s=i(48318),o=i(87570),r=i(21564);class a extends s.y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new o.w,t.add(this.source.subscribe(new l(this.getSubject(),this))),t.closed&&(this._connection=null,t=o.w.EMPTY)),t}refCount(){return(0,r.x)()(this)}}const c=(()=>{const t=a.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class l extends n.Yc{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}},31305:function(t,e,i){"use strict";i.d(e,{aj:function(){return l}});var n=i(76163),s=i(98470),o=i(59829),r=i(6268),a=i(99342);const c={};function l(...t){let e=null,i=null;return(0,n.K)(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&(0,s.k)(t[0])&&(t=t[0]),(0,a.n)(t,i).lift(new u(e))}class u{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new h(t,this.resultSelector))}}class h extends o.L{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(c),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i{let i;try{i=t()}catch(n){return void e.error(n)}return(i?(0,s.D)(i):(0,o.c)()).subscribe(e)})}},70653:function(t,e,i){"use strict";i.d(e,{E:function(){return s},c:function(){return o}});var n=i(48318);const s=new n.y(t=>t.complete());function o(t){return t?function(t){return new n.y(e=>t.schedule(()=>e.complete()))}(t):s}},3148:function(t,e,i){"use strict";i.d(e,{D:function(){return c}});var n=i(48318),s=i(98470),o=i(79996),r=i(82056),a=i(19764);function c(...t){if(1===t.length){const e=t[0];if((0,s.k)(e))return l(e,null);if((0,r.K)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return l(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return l(t=1===t.length&&(0,s.k)(t[0])?t[0]:t,null).pipe((0,o.U)(t=>e(...t)))}return l(t,null)}function l(t,e){return new n.y(i=>{const n=t.length;if(0===n)return void i.complete();const s=new Array(n);let o=0,r=0;for(let c=0;c{u||(u=!0,r++),s[c]=t},error:t=>i.error(t),complete:()=>{o++,o!==n&&u||(r===n&&i.next(e?e.reduce((t,e,i)=>(t[e]=s[i],t),{}):s),i.complete())}}))}})}},19764:function(t,e,i){"use strict";i.d(e,{D:function(){return h}});var n=i(48318),s=i(16015),o=i(87570),r=i(56197),a=i(62570),c=i(25686),l=i(5168),u=i(59653);function h(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[r.L]}(t))return function(t,e){return new n.y(i=>{const n=new o.w;return n.add(e.schedule(()=>{const s=t[r.L]();n.add(s.subscribe({next(t){n.add(e.schedule(()=>i.next(t)))},error(t){n.add(e.schedule(()=>i.error(t)))},complete(){n.add(e.schedule(()=>i.complete()))}}))})),n})}(t,e);if((0,l.t)(t))return function(t,e){return new n.y(i=>{const n=new o.w;return n.add(e.schedule(()=>t.then(t=>{n.add(e.schedule(()=>{i.next(t),n.add(e.schedule(()=>i.complete()))}))},t=>{n.add(e.schedule(()=>i.error(t)))}))),n})}(t,e);if((0,u.z)(t))return(0,a.r)(t,e);if(function(t){return t&&"function"==typeof t[c.hZ]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new n.y(i=>{const n=new o.w;let s;return n.add(()=>{s&&"function"==typeof s.return&&s.return()}),n.add(e.schedule(()=>{s=t[c.hZ](),n.add(e.schedule(function(){if(i.closed)return;let t,e;try{const i=s.next();t=i.value,e=i.done}catch(n){return void i.error(n)}e?i.complete():(i.next(t),this.schedule())}))})),n})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof n.y?t:new n.y((0,s.s)(t))}},99342:function(t,e,i){"use strict";i.d(e,{n:function(){return r}});var n=i(48318),s=i(30625),o=i(62570);function r(t,e){return e?(0,o.r)(t,e):new n.y((0,s.V)(t))}},87254:function(t,e,i){"use strict";i.d(e,{R:function(){return a}});var n=i(48318),s=i(98470),o=i(85024),r=i(79996);function a(t,e,i,l){return(0,o.m)(i)&&(l=i,i=void 0),l?a(t,e,i).pipe((0,r.U)(t=>(0,s.k)(t)?l(...t):l(t))):new n.y(n=>{c(t,e,function(t){n.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},n,i)})}function c(t,e,i,n,s){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const n=t;t.addEventListener(e,i,s),o=()=>n.removeEventListener(e,i,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const n=t;t.on(e,i),o=()=>n.off(e,i)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const n=t;t.addListener(e,i),o=()=>n.removeListener(e,i)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,r=t.length;o(i.add(e.schedule(a,t,{subscriber:i,counter:0,period:t})),i))}function a(t){const{subscriber:e,counter:i,period:n}=t;e.next(i),this.schedule({subscriber:e,counter:i+1,period:n},n)}},31906:function(t,e,i){"use strict";i.d(e,{T:function(){return a}});var n=i(48318),s=i(76163),o=i(97471),r=i(99342);function a(...t){let e=Number.POSITIVE_INFINITY,i=null,a=t[t.length-1];return(0,s.K)(a)?(i=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===i&&1===t.length&&t[0]instanceof n.y?t[0]:(0,o.J)(e)((0,r.n)(t,i))}},40878:function(t,e,i){"use strict";i.d(e,{of:function(){return r}});var n=i(76163),s=i(99342),o=i(62570);function r(...t){let e=t[t.length-1];return(0,n.K)(e)?(t.pop(),(0,o.r)(t,e)):(0,s.n)(t)}},3875:function(t,e,i){"use strict";i.d(e,{S3:function(){return a}});var n=i(98470),s=i(99342),o=i(59829),r=i(6268);function a(...t){if(1===t.length){if(!(0,n.k)(t[0]))return t[0];t=t[0]}return(0,s.n)(t,void 0).lift(new c)}class c{call(t,e){return e.subscribe(new l(t))}}class l extends o.L{constructor(t){super(t),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(t){this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(let i=0;ie.schedule(o,0,{error:t,subscriber:i}):e=>e.error(t))}function o({error:t,subscriber:e}){e.error(t)}},81110:function(t,e,i){"use strict";i.d(e,{H:function(){return a}});var n=i(48318),s=i(48569),o=i(62293),r=i(76163);function a(t=0,e,i){let a=-1;return(0,o.k)(e)?a=Number(e)<1?1:Number(e):(0,r.K)(e)&&(i=e),(0,r.K)(i)||(i=s.P),new n.y(e=>{const n=(0,o.k)(t)?t:+t-i.now();return i.schedule(c,n,{index:0,period:a,subscriber:e})})}function c(t){const{index:e,period:i,subscriber:n}=t;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}}},30810:function(t,e,i){"use strict";i.d(e,{e:function(){return l}});var n=i(48569),s=i(59829),o=i(6268);class r{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new a(t,this.durationSelector))}}class a extends s.L{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let i;try{const{durationSelector:e}=this;i=e(t)}catch(e){return this.destination.error(e)}const n=(0,o.D)(this,i);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=null,i.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,i,n){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var c=i(81110);function l(t,e=n.P){return i=()=>(0,c.H)(t,e),function(t){return t.lift(new r(i))};var i}},47727:function(t,e,i){"use strict";i.d(e,{K:function(){return r}});var n=i(59829),s=i(99867),o=i(6268);function r(t){return function(e){const i=new a(t),n=e.lift(i);return i.caught=n}}class a{constructor(t){this.selector=t}call(t,e){return e.subscribe(new c(t,this.selector,this.caught))}}class c extends n.L{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let i;try{i=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const n=new s.d(this,void 0,void 0);this.add(n);const r=(0,o.D)(this,i,void 0,void 0,n);r!==n&&this.add(r)}}}},436:function(t,e,i){"use strict";i.d(e,{b:function(){return s}});var n=i(73982);function s(t,e){return(0,n.zg)(t,e,1)}},47701:function(t,e,i){"use strict";i.d(e,{b:function(){return o}});var n=i(96673),s=i(48569);function o(t,e=s.P){return i=>i.lift(new r(t,e))}class r{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))}}class a extends n.L{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function c(t){t.debouncedNext()}},7768:function(t,e,i){"use strict";i.d(e,{d:function(){return s}});var n=i(96673);function s(t=null){return e=>e.lift(new o(t))}class o{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new r(t,this.defaultValue))}}class r extends n.L{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},60509:function(t,e,i){"use strict";i.d(e,{g:function(){return a}});var n=i(48569),s=i(38802),o=i(96673),r=i(3103);function a(t,e=n.P){const i=(0,s.J)(t)?+t-e.now():Math.abs(t);return t=>t.lift(new c(i,e))}class c{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new l(t,this.delay,this.scheduler))}}class l extends o.L{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,n=t.scheduler,s=t.destination;for(;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const e=Math.max(0,i[0].time-n.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(l.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new u(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(r.P.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(r.P.createComplete()),this.unsubscribe()}}class u{constructor(t,e){this.time=t,this.notification=e}}},98720:function(t,e,i){"use strict";i.d(e,{x:function(){return s}});var n=i(96673);function s(t,e){return i=>i.lift(new o(t,e))}class o{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new r(t,this.compare,this.keySelector))}}class r extends n.L{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:i}=this;e=i?i(t):t}catch(n){return this.destination.error(n)}let i=!1;if(this.hasKey)try{const{compare:t}=this;i=t(this.key,e)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}},43835:function(t,e,i){"use strict";i.d(e,{h:function(){return s}});var n=i(96673);function s(t,e){return function(i){return i.lift(new o(t,e))}}class o{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new r(t,this.predicate,this.thisArg))}}class r extends n.L{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}},11520:function(t,e,i){"use strict";i.d(e,{x:function(){return o}});var n=i(96673),s=i(87570);function o(t){return e=>e.lift(new r(t))}class r{constructor(t){this.callback=t}call(t,e){return e.subscribe(new a(t,this.callback))}}class a extends n.L{constructor(t,e){super(t),this.add(new s.w(e))}}},3530:function(t,e,i){"use strict";i.d(e,{P:function(){return l}});var n=i(39665),s=i(43835),o=i(90611),r=i(7768),a=i(90790),c=i(13392);function l(t,e){const i=arguments.length>=2;return l=>l.pipe(t?(0,s.h)((e,i)=>t(e,i,l)):c.y,(0,o.q)(1),i?(0,r.d)(e):(0,a.T)(()=>new n.K))}},79996:function(t,e,i){"use strict";i.d(e,{U:function(){return s}});var n=i(96673);function s(t,e){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new o(t,e))}}class o{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new r(t,this.project,this.thisArg))}}class r extends n.L{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}},88414:function(t,e,i){"use strict";i.d(e,{h:function(){return s}});var n=i(96673);function s(t){return e=>e.lift(new o(t))}class o{constructor(t){this.value=t}call(t,e){return e.subscribe(new r(t,this.value))}}class r extends n.L{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}},97471:function(t,e,i){"use strict";i.d(e,{J:function(){return o}});var n=i(73982),s=i(13392);function o(t=Number.POSITIVE_INFINITY){return(0,n.zg)(s.y,t)}},73982:function(t,e,i){"use strict";i.d(e,{zg:function(){return c}});var n=i(6268),s=i(59829),o=i(99867),r=i(79996),a=i(19764);function c(t,e,i=Number.POSITIVE_INFINITY){return"function"==typeof e?n=>n.pipe(c((i,n)=>(0,a.D)(t(i,n)).pipe((0,r.U)((t,s)=>e(i,t,n,s))),i)):("number"==typeof e&&(i=e),e=>e.lift(new l(t,i)))}class l{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new u(t,this.project,this.concurrent))}}class u extends s.L{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},21564:function(t,e,i){"use strict";i.d(e,{x:function(){return s}});var n=i(96673);function s(){return function(t){return t.lift(new o(t))}}class o{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const n=new r(t,i),s=e.subscribe(n);return n.closed||(n.connection=i.connect()),s}}class r extends n.L{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,n=t._connection;this.connection=null,!n||i&&n!==i||n.unsubscribe()}}},1055:function(t,e,i){"use strict";i.d(e,{B:function(){return a}});var n=i(42875),s=i(21564),o=i(55959);function r(){return new o.xQ}function a(){return t=>{return(0,s.x)()((e=r,function(t){let i;i="function"==typeof e?e:function(){return e};const s=Object.create(t,n.N);return s.source=t,s.subjectFactory=i,s})(t));var e}}},68303:function(t,e,i){"use strict";i.d(e,{d:function(){return s}});var n=i(66994);function s(t,e,i){let s;return s=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:i},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:i,scheduler:s}){let o,r,a=0,c=!1,l=!1;return function(u){a++,o&&!c||(c=!1,o=new n.t(t,e,s),r=u.subscribe({next(t){o.next(t)},error(t){c=!0,o.error(t)},complete(){l=!0,r=void 0,o.complete()}}));const h=o.subscribe(this);this.add(()=>{a--,h.unsubscribe(),r&&!l&&i&&0===a&&(r.unsubscribe(),r=void 0,o=void 0)})}}(s))}},56238:function(t,e,i){"use strict";i.d(e,{O:function(){return o}});var n=i(47930),s=i(76163);function o(...t){const e=t[t.length-1];return(0,s.K)(e)?(t.pop(),i=>(0,n.z)(t,i,e)):e=>(0,n.z)(t,e)}},44689:function(t,e,i){"use strict";i.d(e,{w:function(){return c}});var n=i(59829),s=i(99867),o=i(6268),r=i(79996),a=i(19764);function c(t,e){return"function"==typeof e?i=>i.pipe(c((i,n)=>(0,a.D)(t(i,n)).pipe((0,r.U)((t,s)=>e(i,t,n,s))))):e=>e.lift(new l(t))}class l{constructor(t){this.project=t}call(t,e){return e.subscribe(new u(t,this.project))}}class u extends n.L{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(n){return void this.destination.error(n)}this._innerSub(e,t,i)}_innerSub(t,e,i){const n=this.innerSubscription;n&&n.unsubscribe();const r=new s.d(this,e,i),a=this.destination;a.add(r),this.innerSubscription=(0,o.D)(this,t,void 0,void 0,r),this.innerSubscription!==r&&a.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,i,n,s){this.destination.next(e)}}},90611:function(t,e,i){"use strict";i.d(e,{q:function(){return r}});var n=i(96673),s=i(98402),o=i(70653);function r(t){return e=>0===t?(0,o.c)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new s.W}call(t,e){return e.subscribe(new c(t,this.total))}}class c extends n.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}},25416:function(t,e,i){"use strict";i.d(e,{R:function(){return o}});var n=i(59829),s=i(6268);function o(t){return e=>e.lift(new r(t))}class r{constructor(t){this.notifier=t}call(t,e){const i=new a(t),n=(0,s.D)(i,this.notifier);return n&&!i.seenValue?(i.add(n),e.subscribe(i)):i}}class a extends n.L{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,i,n,s){this.seenValue=!0,this.complete()}notifyComplete(){}}},66599:function(t,e,i){"use strict";i.d(e,{b:function(){return r}});var n=i(96673);function s(){}var o=i(85024);function r(t,e,i){return function(n){return n.lift(new a(t,e,i))}}class a{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new c(t,this.nextOrObserver,this.error,this.complete))}}class c extends n.L{constructor(t,e,i,n){super(t),this._tapNext=s,this._tapError=s,this._tapComplete=s,this._tapError=i||s,this._tapComplete=n||s,(0,o.m)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||s,this._tapError=e.error||s,this._tapComplete=e.complete||s)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},90790:function(t,e,i){"use strict";i.d(e,{T:function(){return o}});var n=i(39665),s=i(96673);function o(t=c){return e=>e.lift(new r(t))}class r{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new a(t,this.errorFactory))}}class a extends s.L{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function c(){return new n.K}},29085:function(t,e,i){"use strict";i.d(e,{V:function(){return h}});var n=i(48569);const s=(()=>{function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t})();var o=i(38802),r=i(59829),a=i(6268);class c{constructor(t,e,i,n){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=i,this.scheduler=n}call(t,e){return e.subscribe(new l(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class l extends r.L{constructor(t,e,i,n,s){super(t),this.absoluteTimeout=e,this.waitFor=i,this.withObservable=n,this.scheduler=s,this.action=null,this.scheduleTimeout()}static dispatchTimeout(t){const{withObservable:e}=t;t._unsubscribeAndRecycle(),t.add((0,a.D)(t,e))}scheduleTimeout(){const{action:t}=this;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(l.dispatchTimeout,this.waitFor,this))}_next(t){this.absoluteTimeout||this.scheduleTimeout(),super._next(t)}_unsubscribe(){this.action=null,this.scheduler=null,this.withObservable=null}}var u=i(31225);function h(t,e=n.P){return function(t,e,i=n.P){return n=>{let s=(0,o.J)(t),r=s?+t-i.now():Math.abs(t);return n.lift(new c(r,s,e,i))}}(t,(0,u._)(new s),e)}},62570:function(t,e,i){"use strict";i.d(e,{r:function(){return o}});var n=i(48318),s=i(87570);function o(t,e){return new n.y(i=>{const n=new s.w;let o=0;return n.add(e.schedule(function(){o!==t.length?(i.next(t[o++]),i.closed||n.add(this.schedule())):i.complete()})),n})}},8277:function(t,e,i){"use strict";i.d(e,{o:function(){return o}});var n=i(87570);class s extends n.w{constructor(t,e){super()}schedule(t,e=0){return this}}class o extends s{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 i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let i,n=!1;try{this.work(t)}catch(s){n=!0,i=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},91098:function(t,e,i){"use strict";i.d(e,{v:function(){return s}});let n=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(t,e=0,i){return new this.SchedulerAction(this,t).schedule(i,e)}}return t.now=()=>Date.now(),t})();class s extends n{constructor(t,e=n.now){super(t,()=>s.delegate&&s.delegate!==this?s.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return s.delegate&&s.delegate!==this?s.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}},91741:function(t,e,i){"use strict";i.d(e,{r:function(){return a}});var n=i(8277);class s extends n.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}var o=i(91098);class r extends o.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++nPromise.resolve())(),o={};function r(t){return t in o&&(delete o[t],!0)}const a={setImmediate(t){const e=n++;return o[e]=!0,s.then(()=>r(e)&&t()),e},clearImmediate(t){r(t)}};var c=i(8277);class l extends c.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=a.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(a.clearImmediate(e),t.scheduled=void 0)}}var u=i(91098);class h extends u.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++n"function"==typeof Symbol&&Symbol.observable||"@@observable")()},55331:function(t,e,i){"use strict";i.d(e,{b:function(){return n}});const n=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},98402:function(t,e,i){"use strict";i.d(e,{W:function(){return n}});const n=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},39665:function(t,e,i){"use strict";i.d(e,{K:function(){return n}});const n=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})()},13895:function(t,e,i){"use strict";i.d(e,{N:function(){return n}});const n=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},14294:function(t,e,i){"use strict";function n(t){setTimeout(()=>{throw t},0)}i.d(e,{z:function(){return n}})},13392:function(t,e,i){"use strict";function n(t){return t}i.d(e,{y:function(){return n}})},98470:function(t,e,i){"use strict";i.d(e,{k:function(){return n}});const n=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))()},59653:function(t,e,i){"use strict";i.d(e,{z:function(){return n}});const n=t=>t&&"number"==typeof t.length&&"function"!=typeof t},38802:function(t,e,i){"use strict";function n(t){return t instanceof Date&&!isNaN(+t)}i.d(e,{J:function(){return n}})},85024:function(t,e,i){"use strict";function n(t){return"function"==typeof t}i.d(e,{m:function(){return n}})},62293:function(t,e,i){"use strict";i.d(e,{k:function(){return s}});var n=i(98470);function s(t){return!(0,n.k)(t)&&t-parseFloat(t)+1>=0}},82056:function(t,e,i){"use strict";function n(t){return null!==t&&"object"==typeof t}i.d(e,{K:function(){return n}})},4710:function(t,e,i){"use strict";i.d(e,{b:function(){return s}});var n=i(48318);function s(t){return!!t&&(t instanceof n.y||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},5168:function(t,e,i){"use strict";function n(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}i.d(e,{t:function(){return n}})},76163:function(t,e,i){"use strict";function n(t){return t&&"function"==typeof t.schedule}i.d(e,{K:function(){return n}})},16015:function(t,e,i){"use strict";i.d(e,{s:function(){return u}});var n=i(30625),s=i(14294),o=i(25686),r=i(56197),a=i(59653),c=i(5168),l=i(82056);const u=t=>{if(t&&"function"==typeof t[r.L])return u=t,t=>{const e=u[r.L]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if((0,a.z)(t))return(0,n.V)(t);if((0,c.t)(t))return i=t,t=>(i.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,s.z),t);if(t&&"function"==typeof t[o.hZ])return e=t,t=>{const i=e[o.hZ]();for(;;){const e=i.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof i.return&&t.add(()=>{i.return&&i.return()}),t};{const e=(0,l.K)(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,i,u}},30625:function(t,e,i){"use strict";i.d(e,{V:function(){return n}});const n=t=>e=>{for(let i=0,n=t.length;i=0;a--)(s=t[a])&&(r=(o<3?s(r):o>3?s(e,i,r):s(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r}function s(t,e){return function(i,n){e(i,n,t)}}function o(t,e,i,n){return new(i||(i=Promise))(function(s,o){function r(t){try{c(n.next(t))}catch(e){o(e)}}function a(t){try{c(n.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(r,a)}c((n=n.apply(t,e||[])).next())})}i.d(e,{gn:function(){return n},fM:function(){return s},mG:function(){return o}})},60306:function(t){"use strict";t.exports={i8:"5.3.0"}}},function(t){"use strict";t(t.s=73868)}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/main-es5.b8f3d0f37d2ca9fa06cc.js b/dist/apps/admin-gui/main-es5.b8f3d0f37d2ca9fa06cc.js deleted file mode 100644 index 35ccc98c3..000000000 --- a/dist/apps/admin-gui/main-es5.b8f3d0f37d2ca9fa06cc.js +++ /dev/null @@ -1 +0,0 @@ -(function(){function _defineProperty(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function _wrapNativeSuper(t){var e="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,i)}function i(){return _construct(t,arguments,_getPrototypeOf(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(i,t)})(t)}function _construct(t,e,i){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(t,e,i){var n=[null];n.push.apply(n,e);var r=new(Function.bind.apply(t,n));return i&&_setPrototypeOf(r,i.prototype),r}).apply(null,arguments)}function _isNativeFunction(t){return-1!==Function.toString.call(t).indexOf("[native code]")}function _get(t,e,i){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=_superPropBase(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function _superPropBase(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_getPrototypeOf(t)););return t}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){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 _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,r,o=[],a=!0,s=!1;try{for(i=i.call(t);!(a=(n=i.next()).done)&&(o.push(n.value),!e||o.length!==e);a=!0);}catch(c){s=!0,r=c}finally{try{a||null==i.return||i.return()}finally{if(s)throw r}}return o}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var i,n=_getPrototypeOf(t);if(e){var r=_getPrototypeOf(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return _possibleConstructorReturn(this,i)}}function _possibleConstructorReturn(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?_assertThisInitialized(t):e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _createForOfIteratorHelper(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw o}}}}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i0&&(i+=", "),i+=r.friendlyName.substring(16)+": "+r.value)}}catch(o){n.e(o)}finally{n.f()}return i}},{key:"getLoginsForCandidate",value:function(t){var e="";for(var i in t.attributes)Object.prototype.hasOwnProperty.call(t.attributes,i)&&-1!==i.indexOf("urn:perun:user:attribute-def:def:login-namespace:")&&null!=t.attributes[i]&&(e.length>0&&(e+=", "),e+=i.substring(49)+": "+t.attributes[i]);return e}},{key:"getAlreadyMember",value:function(t){if("vo"===this.type){if(null!=t.member)return"Member of VO"}else{if(null!=t.member&&0!==t.member.sourceGroupId&&"DIRECT"===t.member.membershipType)return"Member of Group";if(null!=t.member&&0!==t.member.sourceGroupId&&"INDIRECT"===t.member.membershipType)return"Indirect member of Group";if(null!=t.member)return"Member of VO"}return""}},{key:"isCheckboxDisabled",value:function(t){return"vo"===this.type?null!=t.member:t.member?0!==t.member.sourceGroupId&&"DIRECT"===t.member.membershipType:this.blockManualAdding}},{key:"setAddAuth",value:function(){void 0!==this.group&&0!==this.selection.selected.length&&(this.addAuth=!!this.selection.selected[0].member||this.guiAuthResolver.isAuthorized("createMember_Vo_User_List_policy",[this.group])&&this.guiAuthResolver.isAuthorized("createMember_Vo_Candidate_List_policy",[this.group]))}},{key:"itemSelectionToggle",value:function(t){this.selection.toggle(t),this.setAddAuth()}},{key:"getTooltip",value:function(t){return t.member?"MEMBERS_CANDIDATES_LIST.ALREADY_MEMBER":"MEMBERS_CANDIDATES_LIST.ADDING_BLOCKED"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(d.Y36(r.x4))},t.\u0275cmp=d.Xpm({type:t,selectors:[["app-members-candidates-list"]],viewQuery:function(t,e){var i;(1&t&&(d.Gf(l.YE,5),d.Gf(c.l9,7)),2&t)&&(d.iGM(i=d.CRH())&&(e.matSort=i.first),d.iGM(i=d.CRH())&&(e.child=i.first))},inputs:{members:"members",selection:"selection",type:"type",tableId:"tableId",group:"group",blockManualAdding:"blockManualAdding"},features:[d.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"],["mat-cell","",1,"static-column-size","align-checkbox"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["color","primary",3,"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(t,e){1&t&&(d.TgZ(0,"div",0),d.TgZ(1,"perun-web-apps-table-wrapper",1),d.NdJ("exportData",function(t){return e.exportData(t)}),d.TgZ(2,"table",2),d.ynx(3,3),d.YNc(4,k,1,0,"th",4),d.YNc(5,C,6,11,"td",5),d.BQk(),d.ynx(6,6),d.YNc(7,T,3,3,"th",7),d.YNc(8,S,2,1,"td",8),d.BQk(),d.ynx(9,9),d.YNc(10,I,3,3,"th",7),d.YNc(11,R,4,5,"td",8),d.BQk(),d.ynx(12,10),d.YNc(13,x,3,3,"th",7),d.YNc(14,O,3,3,"td",8),d.BQk(),d.ynx(15,11),d.YNc(16,P,3,3,"th",7),d.YNc(17,D,2,1,"td",8),d.BQk(),d.ynx(18,12),d.YNc(19,M,3,3,"th",7),d.YNc(20,L,2,1,"td",8),d.BQk(),d.ynx(21,13),d.YNc(22,N,3,3,"th",7),d.YNc(23,z,2,1,"td",8),d.BQk(),d.ynx(24,14),d.YNc(25,Z,1,0,"th",7),d.YNc(26,B,2,1,"td",8),d.BQk(),d.YNc(27,F,1,0,"tr",15),d.YNc(28,q,1,0,"tr",16),d.qZA(),d.qZA(),d.qZA(),d.YNc(29,H,3,3,"app-alert",17)),2&t&&(d.Q6J("hidden",0===e.members.length),d.xp6(1),d.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),d.xp6(1),d.Q6J("dataSource",e.dataSource),d.xp6(25),d.Q6J("matHeaderRowDef",e.displayedColumns),d.xp6(1),d.Q6J("matRowDefColumns",e.displayedColumns),d.xp6(1),d.Q6J("ngIf",0===e.members.length))},directives:[f.l,h.BZ,l.YE,h.w1,h.fO,h.Dz,h.as,h.nj,p.O5,h.ge,h.ev,g.gM,m.oG,l.nU,h.XQ,h.Gk,v.w],pipes:[y.X$,p.i8,_.u,b.f,w.d,A.Z],styles:[""]}),t}(),G=i(16073),j=i(57629),Y=i(66283),K=i(80340),V=i(15980),J=i(67806),Q=i(8055),W=["list"];function X(t,e){1&t&&d._UZ(0,"mat-spinner",10)}function $(t,e){if(1&t&&d._UZ(0,"app-members-candidates-list",13,14),2&t){var i=d.oxw(3);d.Q6J("group",i.data.group)("tableId",i.tableId)("selection",i.selection)("members",i.members)("type",i.data.type)("blockManualAdding",i.manualAddingBlocked)}}function tt(t,e){if(1&t&&(d.TgZ(0,"div",11),d.YNc(1,$,2,6,"app-members-candidates-list",12),d.qZA()),2&t){var i=d.oxw(2);d.xp6(1),d.Q6J("ngIf",i.firstSearchDone)}}function et(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"div",4),d.TgZ(1,"mat-form-field",5),d.TgZ(2,"label"),d.TgZ(3,"input",6),d.NdJ("keyup.enter",function(){return d.CHM(i),d.oxw().onSearchByString()}),d.ALo(4,"translate"),d.qZA(),d.qZA(),d.TgZ(5,"mat-error"),d._uU(6),d.ALo(7,"translate"),d.qZA(),d.qZA(),d.TgZ(8,"button",7),d.NdJ("click",function(){return d.CHM(i),d.oxw().onSearchByString()}),d._uU(9),d.ALo(10,"translate"),d.qZA(),d.TgZ(11,"div",8),d.YNc(12,X,1,0,"mat-spinner",2),d.qZA(),d.YNc(13,tt,2,1,"div",9),d.qZA()}if(2&t){var n=d.oxw();d.xp6(3),d.s9C("placeholder",d.lcZ(4,7,"DIALOGS.ADD_MEMBERS.DESCRIPTION")),d.Q6J("formControl",n.searchCtrl),d.xp6(3),d.hij(" ",d.lcZ(7,9,"DIALOGS.ADD_MEMBERS.EMPTY_SEARCH_MESSAGE")," "),d.xp6(2),d.Q6J("disabled",n.loading),d.xp6(1),d.hij(" ",d.lcZ(10,11,"DIALOGS.ADD_MEMBERS.SEARCH")," "),d.xp6(3),d.Q6J("ngIf",n.loading),d.xp6(1),d.Q6J("ngIf",!!n.members&&!n.loading)}}function it(t,e){1&t&&d._UZ(0,"mat-spinner",10)}function nt(t,e){if(1&t&&(d.TgZ(0,"button",22),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t){d.oxw();var i=d.MAs(8),n=d.oxw();d.Q6J("disabled",0===n.selection.selected.length||n.loading)("matMenuTriggerFor",i),d.xp6(1),d.hij(" ",d.lcZ(2,3,"DIALOGS.ADD_MEMBERS.INVITE")," ")}}function rt(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"button",23),d.NdJ("click",function(){var t=d.CHM(i).$implicit;return d.oxw(2).onInvite(t)}),d._uU(1),d.ALo(2,"translate"),d.ALo(3,"translate"),d.ALo(4,"uppercase"),d.ALo(5,"translate"),d.qZA()}if(2&t){var n=e.$implicit;d.xp6(1),d.lnq(" ",d.lcZ(2,3,"DIALOGS.ADD_MEMBERS.INVITE_IN_LANGUAGE")," ",d.lcZ(3,5,d.lcZ(4,7,"SHARED_LIB.LANGUAGES."+n))," ",d.lcZ(5,9,"DIALOGS.ADD_MEMBERS.LANGUAGE")," ")}}function ot(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"div",15),d.TgZ(1,"button",16),d.NdJ("click",function(){return d.CHM(i),d.oxw().onCancel()}),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"span",17),d.ALo(5,"translate"),d.YNc(6,nt,3,5,"button",18),d.TgZ(7,"mat-menu",null,19),d.YNc(9,rt,6,11,"button",20),d.qZA(),d.qZA(),d.TgZ(10,"button",21),d.NdJ("click",function(){return d.CHM(i),d.oxw().onAdd()}),d._uU(11),d.ALo(12,"translate"),d.qZA(),d.qZA()}if(2&t){var n=d.oxw();d.xp6(2),d.hij(" ",d.lcZ(3,7,"DIALOGS.ADD_MEMBERS.CANCEL")," "),d.xp6(2),d.s9C("matTooltip",d.lcZ(5,9,"DIALOGS.ADD_MEMBERS.ADD_MEMBER_PERMISSION_TOOLTIP")),d.Q6J("matTooltipDisabled",0===n.selection.selected.length||"group"!==n.data.type||void 0!==n.list&&n.list.addAuth),d.xp6(2),d.Q6J("ngIf","group"!==n.data.type||"group"===n.data.type&&n.inviteAuth),d.xp6(3),d.Q6J("ngForOf",n.languages),d.xp6(1),d.Q6J("disabled",0===n.selection.selected.length||n.loading||"group"===n.data.type&&void 0!==n.list&&!n.list.addAuth),d.xp6(1),d.hij(" ",d.lcZ(12,11,"DIALOGS.ADD_MEMBERS.CREATE")," ")}}var at=function(){var t=function(){function t(e,i,n,r,a,s,c,l,h,d,f,p){var g=this;_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.membersManagerService=n,this.groupService=r,this.voService=a,this.registrarManager=s,this.translate=c,this.notificator=l,this.route=h,this.router=d,this.guiAuthResolver=f,this.store=p,this.languages=["en"],this.selection=new o.Ov(!1,[]),this.members=[],this.firstSearchDone=!1,this.tableId=u.tY,this.inviteAuth=!1,this.manualAddingBlocked=!1,c.get("DIALOGS.ADD_MEMBERS.TITLE").subscribe(function(t){return g.title=t})}return _createClass(t,[{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onAdd",value:function(){this.processing=!0;var t=this.selection.selected[0];"vo"===this.data.type?t.richUser?this.addUserToVo(t):this.addCandidateToVo(t):"group"===this.data.type&&(t.member?this.addMemberToGroup(t):t.richUser?this.addUserToGroup(t):t.candidate&&this.addCandidateToGroup(t))}},{key:"onInvite",value:function(t){var e=this;this.processing=!0,this.selection.selected[0].richUser?"vo"===this.data.type?this.registrarManager.sendInvitationToExistingUser(this.selection.selected[0].richUser.id,this.data.entityId).subscribe(function(){e.onInviteSuccess()},function(){return e.onError()}):"group"===this.data.type&&this.registrarManager.sendInvitationGroupToExistingUser(this.selection.selected[0].richUser.id,this.data.voId,this.data.group.id).subscribe(function(){e.onInviteSuccess()},function(){return e.onError()}):"vo"===this.data.type?this.registrarManager.sendInvitation((0,c.Jc)(this.selection.selected[0].candidate),t,this.data.voId).subscribe(function(){e.onInviteSuccess()},function(){return e.onError()}):"group"===this.data.type&&this.registrarManager.sendInvitationForGroup((0,c.Jc)(this.selection.selected[0].candidate),t,this.data.voId,this.data.group.id).subscribe(function(){e.onInviteSuccess()},function(){return e.onError()})}},{key:"onSearchByString",value:function(){var t=this;this.searchCtrl.invalid?this.searchCtrl.markAllAsTouched():(this.loading=!0,this.selection.clear(),"vo"===this.data.type?this.voService.getCompleteCandidatesForVo(this.data.entityId,[s.r.USER_DEF_ORGANIZATION,s.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe(function(e){t.members=e,t.loading=!1,t.firstSearchDone=!0},function(){return t.loading=!1}):this.voService.getCompleteCandidatesForGroup(this.data.entityId,[s.r.USER_DEF_ORGANIZATION,s.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe(function(e){t.members=e,t.loading=!1,t.firstSearchDone=!0},function(){return t.loading=!1}))}},{key:"ngOnInit",value:function(){this.languages=this.store.get("supported_languages"),this.theme=this.data.theme,this.manualAddingBlocked=this.data.manualAddingBlocked,"group"===this.data.type&&(this.inviteAuth=this.guiAuthResolver.isAuthorized("group-sendInvitation_Vo_Group_User_policy",[this.data.group])),this.searchCtrl=new G.NI("",[G.kI.required,G.kI.pattern(".*[\\S]+.*")])}},{key:"addUserToVo",value:function(t){var e=this;this.membersManagerService.createMemberForUser({vo:this.data.entityId,user:t.richUser.id}).subscribe(function(t){e.onAddSuccess(),e.membersManagerService.validateMemberAsync(t.id).subscribe(function(){e.onValidateSuccess()},function(){return e.onCancel()})},function(){return e.onError()})}},{key:"addCandidateToVo",value:function(t){var e=this;this.membersManagerService.createMemberForCandidate({vo:this.data.entityId,candidate:this.createCandidate(t.candidate)}).subscribe(function(t){e.onAddSuccess(),e.membersManagerService.validateMemberAsync(t.id).subscribe(function(){e.onValidateSuccess()},function(){return e.onCancel()})},function(){return e.onError()})}},{key:"addUserToGroup",value:function(t){var e=this;this.membersManagerService.createMemberForUser({vo:this.data.voId,user:t.richUser.id,groups:[{id:this.data.group.id,beanName:this.data.group.beanName,name:this.data.group.name,voId:this.data.group.voId}]}).subscribe(function(t){e.onAddSuccess(),e.membersManagerService.validateMemberAsync(t.id).subscribe(function(){e.onValidateSuccess()},function(){return e.onCancel()})},function(){return e.onError()})}},{key:"addMemberToGroup",value:function(t){var e=this;this.groupService.addMembers(this.data.entityId,[t.member.id]).subscribe(function(){e.onAddSuccess()},function(){return e.onError()})}},{key:"addCandidateToGroup",value:function(t){var e=this,i={id:this.data.group.id,beanName:this.data.group.beanName,name:this.data.group.name,voId:this.data.group.voId};this.membersManagerService.createMemberForCandidate({vo:this.data.voId,candidate:this.createCandidate(t.candidate),groups:[i]}).subscribe(function(t){e.onAddSuccess(),e.membersManagerService.validateMemberAsync(t.id).subscribe(function(){e.onValidateSuccess()},function(){return e.onCancel()})},function(){return e.onError()})}},{key:"onAddSuccess",value:function(){var t=this;this.translate.get("DIALOGS.ADD_MEMBERS.SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})}},{key:"onError",value:function(){this.selection.clear(),this.processing=!1}},{key:"onInviteSuccess",value:function(){var t=this;this.translate.get("DIALOGS.ADD_MEMBERS.SUCCESS_INVITE").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})}},{key:"onValidateSuccess",value:function(){this.dialogRef.close(!0)}},{key:"createCandidate",value:function(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}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(d.Y36(n.so),d.Y36(n.WI),d.Y36(a.uq),d.Y36(a.ff),d.Y36(a.YF),d.Y36(a.tk),d.Y36(y.sK),d.Y36(r.V6),d.Y36(j.gz),d.Y36(j.F0),d.Y36(r.x4),d.Y36(r.d6))},t.\u0275cmp=d.Xpm({type:t,selectors:[["app-add-member-dialog"]],viewQuery:function(t,e){var i;(1&t&&d.Gf(W,5),2&t)&&(d.iGM(i=d.CRH())&&(e.list=i.first))},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,"mr-2","search-field","adjust-width"],["matInput","","autocomplete","false","data-cy","search-members",3,"placeholder","formControl","keyup.enter"],["mat-flat-button","","color","accent","data-cy","search-button",1,"ml-auto",3,"disabled","click"],[1,"no-bounce-scrollbar"],["class","mt-3",4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"mt-3"],[3,"group","tableId","selection","members","type","blockManualAdding",4,"ngIf"],[3,"group","tableId","selection","members","type","blockManualAdding"],["list",""],["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"],["color","accent","mat-flat-button","",1,"ml-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",3,"click"]],template:function(t,e){1&t&&(d.TgZ(0,"div"),d.TgZ(1,"h1",0),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.YNc(4,et,14,13,"div",1),d.YNc(5,it,1,0,"mat-spinner",2),d.YNc(6,ot,13,13,"div",3),d.qZA()),2&t&&(d.Tol(e.theme),d.xp6(2),d.Oqu(d.lcZ(3,7,"DIALOGS.ADD_MEMBERS.TITLE")),d.xp6(2),d.Q6J("ngIf",!e.processing),d.xp6(1),d.Q6J("ngIf",e.processing),d.xp6(1),d.Q6J("ngIf",!e.processing))},directives:[n.uh,p.O5,n.xY,Y.KE,K.Nt,G.Fj,G.JJ,G.oH,Y.TO,V.lW,J.$g,U,n.H8,g.gM,Q.VK,p.sg,Q.p6,Q.OP],pipes:[y.X$,p.gd],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}.no-bounce-scrollbar[_ngcontent-%COMP%]{overflow:hidden}"]}),t}()},68570:function(t,e,i){"use strict";i.d(e,{W:function(){return p}});var n=i(84608),r=i(65249),o=i(68416),a=i(31572),s=i(48160),c=i(61511),u=i(19386),l=i(37665),h=i(15980),d=i(67806);function f(t,e){1&t&&a._UZ(0,"mat-spinner",9)}var p=function(){var t=function(){function t(e,i,n,r,o,a,s,c){var u=this;_classCallCheck(this,t),this.dialogRef=e,this.voService=i,this.groupService=n,this.translateService=r,this.registrarManager=o,this.notificatorService=a,this.apiRequest=s,this.data=c,this.vos=[],this.groups=[],this.selectedGroup=null,this.loading=!1,this.nameFunction=function(t){return t.name},r.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUCCESS").subscribe(function(t){return u.successMessage=t}),r.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.PRIVILEGE").subscribe(function(t){return u.privilegeMessage=t}),r.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_FORM").subscribe(function(t){return u.noFormMessage=t})}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.theme=this.data.theme,this.translateService.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_GROUP_SELECTED").subscribe(function(){t.voService.getMyVos().subscribe(function(e){t.vos=e.sort(function(t,e){return t.name>e.name?1:t.name-1),c.xp6(1),c.Q6J("label",c.lcZ(8,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE"))("description",c.lcZ(9,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE_DESCRIPTION")),c.xp6(4),c.Q6J("attributes",n.attributeDefinitions)("selectedAttribute",n.applicationFormItem.perunSourceAttribute)("asGroup",!!n.data.group)("type",n.itemType.SOURCE),c.xp6(1),c.Q6J("label",c.lcZ(13,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE"))("description",c.lcZ(14,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE_DESCRIPTION")),c.xp6(4),c.Q6J("attributes",n.attributeDefinitions)("selectedAttribute",n.applicationFormItem.perunDestinationAttribute)("asGroup",!!n.data.group)("type",n.itemType.DESTINATION),c.xp6(1),c.Q6J("label",c.lcZ(18,34,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE"))("description",c.lcZ(19,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE_DESCRIPTION")),c.xp6(4),c.Q6J("selectedAttribute",n.applicationFormItem.federationAttribute)("asGroup",!!n.data.group)("type",n.itemType.FEDERATION),c.xp6(1),c.Q6J("ngIf","custom"===n.federationAttribute)}}function M(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"mat-form-field",12),c.TgZ(5,"input",13),c.NdJ("ngModelChange",function(t){return c.CHM(i),c.oxw(2).applicationFormItem.regex=t}),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){var n=c.oxw(2);c.xp6(1),c.Q6J("label",c.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX"))("description",c.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",n.applicationFormItem.regex)}}function L(t,e){if(1&t&&(c.TgZ(0,"mat-option",25),c._uU(1),c.ALo(2,"applicationFormItemDisabled"),c.qZA()),2&t){var i=e.$implicit;c.Q6J("value",i),c.xp6(1),c.hij(" ",c.lcZ(2,2,i)," ")}}function N(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"perun-web-apps-app-form-item-search-select",26),c.NdJ("itemSelected",function(t){return c.CHM(i),c.oxw(3).disabledDependencyItem=t}),c.qZA()}if(2&t){var n=c.oxw(3);c.Q6J("item",n.disabledDependencyItem)("items",n.possibleDependencyItems)}}function z(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"mat-form-field",12),c.TgZ(5,"mat-select",17),c.NdJ("valueChange",function(t){return c.CHM(i),c.oxw(2).applicationFormItem.disabled=t}),c.YNc(6,L,3,4,"mat-option",18),c.qZA(),c.qZA(),c.qZA(),c.TgZ(7,"app-edit-application-form-item-line",11),c.ALo(8,"translate"),c.ALo(9,"translate"),c.TgZ(10,"div",12),c.YNc(11,N,1,2,"perun-web-apps-app-form-item-search-select",19),c.qZA(),c.qZA(),c.qZA()}if(2&t){var n=c.oxw(2);c.xp6(1),c.Q6J("label",c.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED"))("description",c.lcZ(3,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DESCRIPTION")),c.xp6(4),c.Q6J("value",n.applicationFormItem.disabled),c.xp6(1),c.Q6J("ngForOf",n.disabledValues),c.xp6(1),c.Q6J("label",c.lcZ(8,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY"))("description",c.lcZ(9,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY_DESCRIPTION")),c.xp6(4),c.Q6J("ngIf",null!==n.disabledDependencyItem)}}function Z(t,e){if(1&t&&(c.TgZ(0,"mat-option",25),c._uU(1),c.ALo(2,"applicationFormItemHidden"),c.qZA()),2&t){var i=e.$implicit;c.Q6J("value",i),c.xp6(1),c.hij(" ",c.lcZ(2,2,i)," ")}}function B(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"perun-web-apps-app-form-item-search-select",26),c.NdJ("itemSelected",function(t){return c.CHM(i),c.oxw(2).hiddenDependencyItem=t}),c.qZA()}if(2&t){var n=c.oxw(2);c.Q6J("item",n.hiddenDependencyItem)("items",n.possibleDependencyItems)}}function F(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"mat-form-field",12),c.TgZ(5,"textarea",27),c.NdJ("ngModelChange",function(t){c.CHM(i);var e=c.oxw().$implicit;return c.oxw(2).applicationFormItem.i18n[e].label=t}),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){var n=c.oxw().$implicit,r=c.oxw(2);c.xp6(1),c.Q6J("label",c.lcZ(2,4,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT"))("description",c.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT_DESCRIPTION")),c.xp6(4),c.Q6J("cdkTextareaAutosize",!0)("ngModel",r.applicationFormItem.i18n[n].label)}}function q(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"mat-form-field",12),c.TgZ(5,"textarea",13),c.NdJ("ngModelChange",function(t){c.CHM(i);var e=c.oxw().$implicit;return c.oxw(2).applicationFormItem.i18n[e].label=t}),c.qZA(),c.qZA(),c.qZA(),c.TgZ(6,"app-edit-application-form-item-line",11),c.ALo(7,"translate"),c.ALo(8,"translate"),c.TgZ(9,"mat-form-field",12),c.TgZ(10,"textarea",13),c.NdJ("ngModelChange",function(t){c.CHM(i);var e=c.oxw().$implicit;return c.oxw(2).applicationFormItem.i18n[e].help=t}),c.qZA(),c.qZA(),c.qZA(),c.TgZ(11,"app-edit-application-form-item-line",11),c.ALo(12,"translate"),c.ALo(13,"translate"),c.TgZ(14,"mat-form-field",12),c.TgZ(15,"textarea",13),c.NdJ("ngModelChange",function(t){c.CHM(i);var e=c.oxw().$implicit;return c.oxw(2).applicationFormItem.i18n[e].errorMessage=t}),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){var n=c.oxw().$implicit,r=c.oxw(2);c.xp6(1),c.Q6J("label",c.lcZ(2,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"))("description",c.lcZ(3,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",r.applicationFormItem.i18n[n].label),c.xp6(1),c.Q6J("label",c.lcZ(7,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP"))("description",c.lcZ(8,15,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",r.applicationFormItem.i18n[n].help),c.xp6(1),c.Q6J("label",c.lcZ(12,17,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR"))("description",c.lcZ(13,19,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",r.applicationFormItem.i18n[n].errorMessage)}}function H(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"mat-form-field",12),c.TgZ(5,"textarea",13),c.NdJ("ngModelChange",function(t){c.CHM(i);var e=c.oxw().$implicit;return c.oxw(2).applicationFormItem.i18n[e].label=t}),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){var n=c.oxw().$implicit,r=c.oxw(2);c.xp6(1),c.Q6J("label",c.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"))("description",c.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_BUTTON_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",r.applicationFormItem.i18n[n].label)}}function U(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.TgZ(3,"mat-form-field"),c.TgZ(4,"input",13),c.NdJ("ngModelChange",function(t){return e.$implicit[0]=t}),c.qZA(),c.qZA(),c._uU(5),c.ALo(6,"translate"),c.TgZ(7,"mat-form-field"),c.TgZ(8,"input",13),c.NdJ("ngModelChange",function(t){return e.$implicit[1]=t}),c.qZA(),c.qZA(),c.TgZ(9,"button",36),c.NdJ("click",function(){var t=c.CHM(i).$implicit,e=c.oxw(2).$implicit;return c.oxw(2).removeOption(t,e)}),c.ALo(10,"translate"),c.TgZ(11,"mat-icon"),c._uU(12,"clear"),c.qZA(),c.qZA(),c.qZA()}if(2&t){var n=e.$implicit;c.xp6(1),c.hij(" ",c.lcZ(2,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.VALUE"),": "),c.xp6(3),c.Q6J("ngModel",n[0]),c.xp6(1),c.hij(" ",c.lcZ(6,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"),": "),c.xp6(3),c.Q6J("ngModel",n[1]),c.xp6(1),c.s9C("matTooltip",c.lcZ(10,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REMOVE_OPTION"))}}function G(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"div",28),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"div",29),c._uU(5),c.ALo(6,"translate"),c.qZA(),c.TgZ(7,"div",30),c.TgZ(8,"button",31),c.NdJ("click",function(){c.CHM(i);var t=c.oxw().$implicit;return c.oxw(2).sortOptionsAZ(t)}),c.TgZ(9,"i",32),c._uU(10,"arrow_downward"),c.qZA(),c._uU(11),c.ALo(12,"translate"),c.qZA(),c.TgZ(13,"button",33),c.NdJ("click",function(){c.CHM(i);var t=c.oxw().$implicit;return c.oxw(2).sortOptionsZA(t)}),c.TgZ(14,"i",32),c._uU(15,"arrow_upward"),c.qZA(),c._uU(16),c.ALo(17,"translate"),c.qZA(),c.qZA(),c.YNc(18,U,13,11,"div",34),c.TgZ(19,"button",35),c.NdJ("click",function(){c.CHM(i);var t=c.oxw().$implicit;return c.oxw(2).addOption(t)}),c._uU(20),c.ALo(21,"translate"),c.qZA(),c.qZA()}if(2&t){var n=c.oxw().$implicit,r=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",r.options[n]),c.xp6(2),c.hij(" ",c.lcZ(21,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ADD_OPTION")," ")}}var j=function(){return["HEADING","HTML_COMMENT"]},Y=function(){return["TEXTFIELD","FROM_FEDERATION_HIDDEN","FROM_FEDERATION_SHOW","VALIDATED_EMAIL","USERNAME","PASSWORD","RADIO","TEXTAREA","COMBOBOX","CHECKBOX","TIMEZONE","SELECTIONBOX","EMBEDDED_GROUP_APPLICATION"]},K=function(){return["SUBMIT_BUTTON","AUTO_SUBMIT_BUTTON"]},V=function(){return["RADIO","COMBOBOX","CHECKBOX","SELECTIONBOX"]};function J(t,e){if(1&t&&(c.TgZ(0,"mat-tab",10),c.ALo(1,"translate"),c.ALo(2,"uppercase"),c.YNc(3,F,6,8,"div",16),c.YNc(4,q,16,21,"div",16),c.YNc(5,H,6,7,"div",16),c.YNc(6,G,22,16,"div",16),c.qZA()),2&t){var i=e.$implicit,n=c.oxw(2);c.s9C("label",c.lcZ(1,5,c.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LANGUAGE_"+i))),c.xp6(3),c.Q6J("ngIf",n.isApplicationFormItemOfType(c.DdM(9,j))),c.xp6(1),c.Q6J("ngIf",n.isApplicationFormItemOfType(c.DdM(10,Y))),c.xp6(1),c.Q6J("ngIf",n.isApplicationFormItemOfType(c.DdM(11,K))),c.xp6(1),c.Q6J("ngIf",n.isApplicationFormItemOfType(c.DdM(12,V)))}}var Q=function(){return["TEXTFIELD","FROM_FEDERATION_HIDDEN","FROM_FEDERATION_SHOW","USERNAME","VALIDATED_EMAIL","PASSWORD","TEXTAREA","TIMEZONE","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX"]},W=function(){return["TEXTFIELD","FROM_FEDERATION_HIDDEN","FROM_FEDERATION_SHOW","USERNAME","PASSWORD","TEXTAREA","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX"]};function X(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"div",8),c.TgZ(1,"mat-tab-group",9),c.TgZ(2,"mat-tab",10),c.ALo(3,"translate"),c.TgZ(4,"app-edit-application-form-item-line",11),c.ALo(5,"translate"),c.ALo(6,"translate"),c.TgZ(7,"mat-form-field",12),c.TgZ(8,"input",13),c.NdJ("ngModelChange",function(t){return c.CHM(i),c.oxw().applicationFormItem.shortname=t}),c.qZA(),c.qZA(),c.qZA(),c.TgZ(9,"app-edit-application-form-item-line",11),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",11),c.ALo(15,"translate"),c.ALo(16,"translate"),c.TgZ(17,"section"),c.TgZ(18,"mat-checkbox",14),c.NdJ("change",function(){return c.CHM(i),c.oxw().onChangingType("INITIAL")}),c._uU(19),c.ALo(20,"translate"),c.qZA(),c.TgZ(21,"mat-checkbox",15),c.NdJ("change",function(){return c.CHM(i),c.oxw().onChangingType("EXTENSION")}),c._uU(22),c.ALo(23,"translate"),c.qZA(),c.qZA(),c.qZA(),c.YNc(24,D,23,38,"div",16),c.YNc(25,M,6,7,"div",16),c.YNc(26,z,12,15,"div",16),c.TgZ(27,"app-edit-application-form-item-line",11),c.ALo(28,"translate"),c.ALo(29,"translate"),c.TgZ(30,"mat-form-field",12),c.TgZ(31,"mat-select",17),c.NdJ("valueChange",function(t){return c.CHM(i),c.oxw().applicationFormItem.hidden=t}),c.YNc(32,Z,3,4,"mat-option",18),c.qZA(),c.qZA(),c.qZA(),c.TgZ(33,"app-edit-application-form-item-line",11),c.ALo(34,"translate"),c.ALo(35,"translate"),c.TgZ(36,"div",12),c.YNc(37,B,1,2,"perun-web-apps-app-form-item-search-select",19),c.qZA(),c.qZA(),c.qZA(),c.YNc(38,J,7,13,"mat-tab",20),c.qZA(),c.qZA()}if(2&t){var n=c.oxw();c.xp6(2),c.s9C("label",c.lcZ(3,24,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.BASIC_SETTINGS")),c.xp6(2),c.Q6J("label",c.lcZ(5,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME"))("description",c.lcZ(6,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",n.applicationFormItem.shortname),c.xp6(1),c.Q6J("label",c.lcZ(10,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET"))("description",c.lcZ(11,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET_DESCRIPTION")),c.xp6(3),c.hij(" ",c.lcZ(13,34,n.applicationFormItem.type)," "),c.xp6(2),c.Q6J("label",c.lcZ(15,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION"))("description",c.lcZ(16,38,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",n.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",n.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",n.isApplicationFormItemOfType(c.DdM(52,Q))),c.xp6(1),c.Q6J("ngIf",n.isApplicationFormItemOfType(c.DdM(53,W))),c.xp6(1),c.Q6J("ngIf",n.typesWithDisabled.indexOf(n.applicationFormItem.type)>-1),c.xp6(1),c.Q6J("label",c.lcZ(28,44,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN"))("description",c.lcZ(29,46,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DESCRIPTION")),c.xp6(4),c.Q6J("value",n.applicationFormItem.hidden),c.xp6(1),c.Q6J("ngForOf",n.hiddenValues),c.xp6(1),c.Q6J("label",c.lcZ(34,48,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY"))("description",c.lcZ(35,50,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY_DESCRIPTION")),c.xp6(4),c.Q6J("ngIf",null!==n.hiddenDependencyItem),c.xp6(1),c.Q6J("ngForOf",n.languages)}}var $=function(){var t=function(){function t(e,i,n,r,o){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.attributesManager=n,this.translateService=r,this.store=o,this.federationAttribute="",this.itemType=a.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"],this.hiddenDependencyItem=null,this.disabledDependencyItem=null,this.dependencyTypes=["PASSWORD","VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","USERNAME"],this.languages=["en"]}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.languages=this.store.get("supported_languages"),this.hiddenDependencyItem=this.data.allItems.find(function(e){return e.id===t.data.applicationFormItem.hiddenDependencyItemId}),this.hiddenDependencyItem||(this.hiddenDependencyItem=a.Sx),this.disabledDependencyItem=this.data.allItems.find(function(e){return e.id===t.data.applicationFormItem.disabledDependencyItemId}),this.disabledDependencyItem||(this.disabledDependencyItem=a.Sx),this.theme=this.data.theme,this.possibleDependencyItems=this.getPossibleDepItems(),this.applicationFormItem=(0,o.dv)(this.languages),this.copy(this.data.applicationFormItem,this.applicationFormItem),this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(function(e){t.attributeDefinitions=e,t.loading=!1},function(){return t.loading=!1}),null===this.applicationFormItem.perunDestinationAttribute&&(this.applicationFormItem.perunDestinationAttribute=""),null===this.applicationFormItem.perunSourceAttribute&&(this.applicationFormItem.perunSourceAttribute=""),this.getOptions()}},{key:"getPossibleDepItems",value:function(){var t=this;return[a.Sx].concat(this.data.allItems.filter(function(e){return t.dependencyTypes.indexOf(e.type)>-1}).filter(function(e){return e.id!==t.data.applicationFormItem.id}))}},{key:"cancel",value:function(){this.dialogRef.close()}},{key:"submit",value:function(){this.applicationFormItem.hiddenDependencyItemId=this.hiddenDependencyItem===a.Sx?null:this.hiddenDependencyItem.id,this.applicationFormItem.disabledDependencyItemId=this.disabledDependencyItem===a.Sx?null:this.disabledDependencyItem.id,this.updateOptions(),this.copy(this.applicationFormItem,this.data.applicationFormItem),this.dialogRef.close(!0)}},{key:"onChangingType",value:function(t){if(this.applicationFormItem.applicationTypes.includes(t)){var e=this.applicationFormItem.applicationTypes.indexOf(t);this.applicationFormItem.applicationTypes.splice(e,1)}else this.applicationFormItem.applicationTypes.push(t)}},{key:"addOption",value:function(t){this.options[t].push(["",""])}},{key:"removeOption",value:function(t,e){this.options[e]=this.options[e].filter(function(e){return!(e[0]===t[0]&&e[1]===t[1])})}},{key:"updateOption",value:function(t){var e="";if(this.options&&this.options[t]){var i,n=_createForOfIteratorHelper(this.options[t]);try{for(n.s();!(i=n.n()).done;){var r=i.value;""!==r[0]&&""!==r[1]&&(e=""===e?r[0]+"#"+r[1]:e+"|"+r[0]+"#"+r[1])}}catch(o){n.e(o)}finally{n.f()}}this.applicationFormItem.i18n[t].options=e}},{key:"updateOptions",value:function(){var t,e=_createForOfIteratorHelper(this.languages);try{for(e.s();!(t=e.n()).done;){var i=t.value;this.updateOption(i)}}catch(n){e.e(n)}finally{e.f()}}},{key:"copy",value:function(t,e){e.applicationTypes=t.applicationTypes,e.federationAttribute=t.federationAttribute,e.forDelete=t.forDelete;var i,n=_createForOfIteratorHelper(this.languages);try{for(n.s();!(i=n.n()).done;){var r=i.value;e.i18n[r].errorMessage=t.i18n[r].errorMessage,e.i18n[r].help=t.i18n[r].help,e.i18n[r].label=t.i18n[r].label,e.i18n[r].options=t.i18n[r].options}}catch(o){n.e(o)}finally{n.f()}e.id=t.id,e.ordnum=t.ordnum,e.perunDestinationAttribute=t.perunDestinationAttribute,e.perunSourceAttribute=t.perunSourceAttribute,e.regex=t.regex,e.required=t.required,e.shortname=t.shortname,e.type=t.type,e.updatable=t.updatable,e.disabled=t.disabled,e.hidden=t.hidden,e.disabledDependencyItemId=t.disabledDependencyItemId,e.hiddenDependencyItemId=t.hiddenDependencyItemId}},{key:"sortOptionsAZ",value:function(t){this.options[t]=this.options[t].sort(function(t,e){return t[1]>e[1]?1:t[1]e[1]?-1:t[1]-1}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.Y36(n.so),c.Y36(n.WI),c.Y36(r.H8),c.Y36(u.sK),c.Y36(s.d6))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-edit-application-form-item-dialog"]],decls:14,vars:16,consts:[[1,"h-100","d-flex","flex-column"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto","mt-auto",3,"click"],["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,"label","description"],[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"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-icon-button","","color","warn",3,"matTooltip","click"]],template:function(t,e){1&t&&(c.TgZ(0,"div"),c.TgZ(1,"div",0),c.TgZ(2,"h1",1),c._uU(3),c.ALo(4,"translate"),c.qZA(),c.YNc(5,x,1,0,"mat-spinner",2),c.YNc(6,X,39,54,"div",3),c.TgZ(7,"div",4),c.TgZ(8,"button",5),c.NdJ("click",function(){return e.cancel()}),c._uU(9),c.ALo(10,"translate"),c.qZA(),c.TgZ(11,"button",6),c.NdJ("click",function(){return e.submit()}),c._uU(12),c.ALo(13,"translate"),c.qZA(),c.qZA(),c.qZA(),c.qZA()),2&t&&(c.Gre("",e.theme," h-100"),c.xp6(3),c.AsE("",c.lcZ(4,10,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.TITLE")," : ",e.applicationFormItem.shortname,""),c.xp6(2),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading),c.xp6(3),c.hij(" ",c.lcZ(10,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CANCEL_BUTTON")," "),c.xp6(2),c.Q6J("disabled",e.loading),c.xp6(1),c.hij(" ",c.lcZ(13,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON")," "))},directives:[n.uh,l.O5,n.H8,h.lW,d.$g,n.xY,f.SP,f.uX,g,m.KE,v.Nt,y.Fj,y.JJ,y.On,_.oG,b.gD,l.sg,w.$x,A.ey,k.Y,C.IC,T.gM,E.Hw],pipes:[u.X$,S.c,I,R,l.gd],styles:[""]}),t}()},79592:function(t,e,i){"use strict";i.d(e,{H:function(){return P}});var n=i(65249),r=i(84608),o=i(68416),a=i(67033),s=i(84140),c=i(6527),u=i(61511),l=i(31572),h=i(48160),d=i(15980),f=i(67806),p=i(43691),g=i(36922),m=i(22196);function v(t,e){1&t&&l._UZ(0,"mat-spinner",6)}function y(t,e){1&t&&(l.TgZ(0,"th",17),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_ID")))}function _(t,e){if(1&t&&(l.TgZ(0,"td",18),l._uU(1),l.qZA()),2&t){var i=e.$implicit;l.xp6(1),l.hij(" ",i.user.id," ")}}function b(t,e){1&t&&(l.TgZ(0,"th",17),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_NAME")))}function w(t,e){if(1&t&&(l.TgZ(0,"td",18),l._uU(1),l.ALo(2,"userFullName"),l.qZA()),2&t){var i=e.$implicit;l.xp6(1),l.hij(" ",l.lcZ(2,1,i.user)," ")}}function A(t,e){1&t&&(l.TgZ(0,"th",17),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_EXPIRATION")))}function k(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",20),l.NdJ("click",function(){l.CHM(i);var t=l.oxw().$implicit;return l.oxw(2).changeExpiration(t)}),l.TgZ(1,"mat-icon"),l._uU(2," today "),l.qZA(),l.qZA()}}function C(t,e){if(1&t&&(l.TgZ(0,"td",18),l.TgZ(1,"span"),l._uU(2),l.qZA(),l.YNc(3,k,3,0,"button",19),l.qZA()),2&t){var i=e.$implicit,n=l.oxw(2);l.xp6(2),l.Oqu(n.parseDate(i.validityTo)),l.xp6(1),l.Q6J("ngIf",n.isExpirationAuthorized(i))}}function T(t,e){1&t&&l._UZ(0,"th",17)}function E(t,e){1&t&&(l.TgZ(0,"mat-icon",25),l._uU(1,"clear"),l.qZA())}function S(t,e){1&t&&(l.TgZ(0,"mat-icon"),l._uU(1,"settings_backup_restore"),l.qZA())}function I(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"td",18),l.TgZ(1,"div",21),l.ALo(2,"translate"),l.TgZ(3,"button",22),l.NdJ("click",function(){var t=l.CHM(i).$implicit;return l.oxw(2).markSponsor(t)}),l.YNc(4,E,2,0,"mat-icon",23),l.YNc(5,S,2,0,"mat-icon",24),l.qZA(),l.qZA(),l.qZA()}if(2&t){var n=e.$implicit,r=l.oxw(2);l.xp6(1),l.s9C("matTooltip",l.lcZ(2,6,"DIALOGS.EDIT_MEMBER_SPONSORS.REMOVE_SPONSOR_DISABLED")),l.Q6J("matTooltipPosition","above")("matTooltipDisabled",r.isRemoveAuthorized(n)),l.xp6(2),l.Q6J("disabled",!r.isRemoveAuthorized(n)),l.xp6(1),l.Q6J("ngIf",!r.sponsorsToRemove.has(n.user.id)),l.xp6(1),l.Q6J("ngIf",r.sponsorsToRemove.has(n.user.id))}}function R(t,e){1&t&&l._UZ(0,"tr",26)}function x(t,e){if(1&t&&l._UZ(0,"tr",27),2&t){var i=e.$implicit,n=l.oxw(2);l.ekj("make-red",n.sponsorsToRemove.has(i.user.id))}}function O(t,e){if(1&t&&(l.TgZ(0,"div",7),l.TgZ(1,"table",8),l.ynx(2,9),l.YNc(3,y,3,3,"th",10),l.YNc(4,_,2,1,"td",11),l.BQk(),l.ynx(5,12),l.YNc(6,b,3,3,"th",10),l.YNc(7,w,3,3,"td",11),l.BQk(),l.ynx(8,13),l.YNc(9,A,3,3,"th",10),l.YNc(10,C,4,2,"td",11),l.BQk(),l.ynx(11,14),l.YNc(12,T,1,0,"th",10),l.YNc(13,I,6,8,"td",11),l.BQk(),l.YNc(14,R,1,0,"tr",15),l.YNc(15,x,1,2,"tr",16),l.qZA(),l.qZA()),2&t){var i=l.oxw();l.xp6(1),l.Q6J("dataSource",i.dataSource),l.xp6(13),l.Q6J("matHeaderRowDef",i.displayedColumns),l.xp6(1),l.Q6J("matRowDefColumns",i.displayedColumns)}}var P=function(){var t=function(){function t(e,i,n,r,o,a,s,c){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.memberService=n,this.userService=r,this.notificator=o,this.authResolver=a,this.translate=s,this.dialog=c,this.displayedColumns=["id","name","expiration","remove"],this.loading=!1,this.expirationChanged=!1,this.sponsorsToRemove=new Set}return _createClass(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.sponsors=this.data.sponsors,this.dataSource=new a.by(this.data.sponsors),this.vo={beanName:"Vo",id:this.data.member.voId}}},{key:"markSponsor",value:function(t){this.sponsorsToRemove.has(t.user.id)?this.sponsorsToRemove.delete(t.user.id):this.sponsorsToRemove.add(t.user.id)}},{key:"removeSponsors",value:function(t){var e=this;if(0===t.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_MEMBER_SPONSORS.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);var i=t.pop();this.memberService.removeSponsor(this.data.member.id,i).subscribe(function(){e.removeSponsors(t)},function(){return e.loading=!1})}},{key:"onSubmit",value:function(){this.loading=!0;var t=Array.from(this.sponsorsToRemove);this.removeSponsors(t)}},{key:"onCancel",value:function(){this.dialogRef.close(this.expirationChanged)}},{key:"isRemoveAuthorized",value:function(t){return this.authResolver.isAuthorized("sponsored-removeSponsor_Member_User_policy",[this.data.member])&&this.authResolver.isAuthorized("sponsor-removeSponsor_Member_User_policy",[t.user])}},{key:"isExpirationAuthorized",value:function(t){return this.authResolver.isAuthorized("updateSponsorshipValidity_Member_User_LocalDate",[t.user,this.vo])}},{key:"parseDate",value:function(t){return null===t?"Never expire":(0,u.p6)(t,"d.M.y","en")}},{key:"changeExpiration",value:function(t){var e=this,i=(0,s.kZ)();i.width="400px",i.data={memberId:this.data.member.id,sponsor:t},this.dialog.open(c.hd,i).afterClosed().subscribe(function(t){t&&(e.loading=!0,e.expirationChanged=!0,e.userService.getSponsorsForMember(e.data.member.id,[]).subscribe(function(t){e.sponsors=t,e.dataSource=new a.by(e.sponsors),e.loading=!1}))})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Y36(r.so),l.Y36(r.WI),l.Y36(n.uq),l.Y36(n.Fv),l.Y36(o.V6),l.Y36(o.x4),l.Y36(h.sK),l.Y36(r.uw))},t.\u0275cmp=l.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["mat-header-row","","class","font-weight-bolder",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,"matTooltip","matTooltipPosition","matTooltipDisabled"],["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(t,e){1&t&&(l.TgZ(0,"h1",0),l._uU(1),l.ALo(2,"translate"),l.qZA(),l.TgZ(3,"div"),l.YNc(4,v,1,0,"mat-spinner",1),l.YNc(5,O,16,3,"div",2),l.TgZ(6,"div",3),l.TgZ(7,"button",4),l.NdJ("click",function(){return e.onCancel()}),l._uU(8),l.ALo(9,"translate"),l.qZA(),l.TgZ(10,"button",5),l.NdJ("click",function(){return e.onSubmit()}),l._uU(11),l.ALo(12,"translate"),l.qZA(),l.qZA(),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,9,"DIALOGS.EDIT_MEMBER_SPONSORS.TITLE")),l.xp6(2),l.Tol(e.theme),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(3),l.hij(" ",l.lcZ(9,11,"DIALOGS.EDIT_MEMBER_SPONSORS.CANCEL"),""),l.xp6(2),l.Q6J("disabled",e.loading||0===e.sponsorsToRemove.size),l.xp6(1),l.hij(" ",l.lcZ(12,13,"DIALOGS.EDIT_MEMBER_SPONSORS.SUBMIT"),""))},directives:[r.uh,u.O5,r.H8,d.lW,f.$g,r.xY,a.BZ,a.w1,a.fO,a.Dz,a.as,a.nj,a.ge,a.ev,p.Hw,g.gM,a.XQ,a.Gk],pipes:[h.X$,m.d],styles:[".make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.btn-delete[_ngcontent-%COMP%]:disabled .icn-delete[_ngcontent-%COMP%]{color:grey}"]}),t}()},88690:function(t,e,i){"use strict";i.d(e,{R:function(){return k}});var n=i(84608),r=i(16073),o=i(65249),a=i(68416),s=i(31572),c=i(48160),u=i(61511),l=i(15980),h=i(67806),d=i(66283),f=i(80340),p=i(4786),g=i(71522);function m(t,e){1&t&&s._UZ(0,"mat-spinner",6)}function v(t,e){1&t&&(s.TgZ(0,"div",14),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_VO")," "))}function y(t,e){1&t&&(s.TgZ(0,"div",14),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_GROUP")," "))}function _(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.INVITE_MEMBER.NAME_ERROR")))}function b(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.INVITE_MEMBER.EMAIL_ERROR")))}function w(t,e){if(1&t&&(s.TgZ(0,"mat-option",15),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"uppercase"),s.qZA()),2&t){var i=e.$implicit;s.s9C("value",i),s.xp6(1),s.Oqu(s.lcZ(2,2,s.lcZ(3,4,"SHARED_LIB.LANGUAGES."+i)))}}function A(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"div",7),s.YNc(1,v,3,3,"div",8),s.YNc(2,y,3,3,"div",8),s.TgZ(3,"mat-form-field",9),s._UZ(4,"input",10),s.ALo(5,"translate"),s.YNc(6,_,3,3,"mat-error",11),s.qZA(),s.TgZ(7,"mat-form-field",9),s._UZ(8,"textarea",10),s.ALo(9,"translate"),s.YNc(10,b,3,3,"mat-error",11),s.qZA(),s.TgZ(11,"mat-form-field",9),s.TgZ(12,"mat-label"),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.TgZ(15,"mat-select",12),s.NdJ("valueChange",function(t){return s.CHM(i),s.oxw().currentLanguage=t}),s.YNc(16,w,4,6,"mat-option",13),s.qZA(),s.qZA(),s.qZA()}if(2&t){var n=s.oxw();s.xp6(1),s.Q6J("ngIf",!n.data.groupId),s.xp6(1),s.Q6J("ngIf",n.data.groupId),s.xp6(2),s.s9C("placeholder",s.lcZ(5,11,"DIALOGS.INVITE_MEMBER.NAME")),s.Q6J("formControl",n.name),s.xp6(2),s.Q6J("ngIf",n.name.invalid),s.xp6(2),s.s9C("placeholder",s.lcZ(9,13,"DIALOGS.INVITE_MEMBER.EMAIL")),s.Q6J("formControl",n.emailForm),s.xp6(2),s.Q6J("ngIf",n.emailForm.invalid),s.xp6(3),s.Oqu(s.lcZ(14,15,"DIALOGS.INVITE_MEMBER.LANGUAGE")),s.xp6(2),s.Q6J("value",n.currentLanguage),s.xp6(1),s.Q6J("ngForOf",n.languages)}}var k=function(){var t=function(){function t(e,i,n,o,a,s){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.registrarManager=n,this.notificator=o,this.translate=a,this.store=s,this.emailForm=new r.NI("",[r.kI.required,r.kI.email]),this.languages=["en"],this.currentLanguage="en",this.name=new r.NI("",r.kI.required),this.loading=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.languages=this.store.get("supported_languages"),this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;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(function(){t.translate.get("DIALOGS.INVITE_MEMBER.SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})):(this.loading=!0,this.registrarManager.sendInvitationForGroup(this.emailForm.value,this.currentLanguage,this.data.voId,this.data.groupId).subscribe(function(){t.translate.get("DIALOGS.INVITE_MEMBER.SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(n.so),s.Y36(n.WI),s.Y36(o.tk),s.Y36(a.V6),s.Y36(c.sK),s.Y36(a.d6))},t.\u0275cmp=s.Xpm({type:t,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"],["mat-flat-button","","color","accent",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(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,m,1,0,"mat-spinner",1),s.YNc(5,A,17,17,"div",2),s.TgZ(6,"div",3),s.TgZ(7,"button",4),s.NdJ("click",function(){return e.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return e.onSubmit()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.Oqu(s.lcZ(3,9,"DIALOGS.INVITE_MEMBER.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,11,"DIALOGS.INVITE_MEMBER.CANCEL")," "),s.xp6(2),s.Q6J("disabled",e.emailForm.invalid||e.name.invalid||e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,13,"DIALOGS.INVITE_MEMBER.INVITE")," "))},directives:[n.uh,u.O5,n.H8,l.lW,h.$g,n.xY,d.KE,f.Nt,r.Fj,r.Q7,r.JJ,r.oH,d.hX,p.gD,u.sg,d.TO,g.ey],pipes:[c.X$,u.gd],styles:[""]}),t}()},57820:function(t,e,i){"use strict";i.d(e,{c:function(){return I}});var n=i(84608),r=i(16073),o=i(56238),a=i(79996),s=i(17),c=i(68416),u=i(65249),l=i(31572),h=i(48160),d=i(54810),f=i(61511),p=i(15980),g=i(36922),m=i(39571),v=i(66283),y=i(80340),_=i(40084),b=i(71522),w=i(67806);function A(t,e){1&t&&(l.TgZ(0,"mat-radio-button",12),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"DIALOGS.MOVE_GROUP.NO_GROUP")," "))}function k(t,e){1&t&&(l.TgZ(0,"mat-radio-button",13),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"DIALOGS.MOVE_GROUP.TO_GROUP")," "))}function C(t,e){1&t&&(l.TgZ(0,"app-alert",14),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"DIALOGS.MOVE_GROUP.CANNOT_MOVE")," "))}function T(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"mat-option",20),l.NdJ("click",function(){var t=l.CHM(i).$implicit;return l.oxw(2).selectedGroup=t}),l.TgZ(1,"span"),l._uU(2),l.qZA(),l.qZA()}if(2&t){var n=e.$implicit;l.Q6J("value",n),l.xp6(2),l.Oqu(n.name)}}function E(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"mat-form-field",15),l.TgZ(1,"input",16),l.NdJ("change",function(){return l.CHM(i),l.oxw().selectedGroup=null}),l.ALo(2,"translate"),l.qZA(),l.TgZ(3,"mat-autocomplete",17,18),l.YNc(5,T,3,2,"mat-option",19),l.ALo(6,"async"),l.qZA(),l.qZA()}if(2&t){var n=l.MAs(4),r=l.oxw();l.Q6J("@openClose","toGroup"===r.moveOption?"open":"closed"),l.xp6(1),l.s9C("placeholder",l.lcZ(2,6,"DIALOGS.MOVE_GROUP.GROUP_SELECT")),l.Q6J("matAutocomplete",n)("formControl",r.otherGroupsCtrl),l.xp6(2),l.Q6J("displayWith",r.displayFn),l.xp6(2),l.Q6J("ngForOf",l.lcZ(6,8,r.filteredGroups))}}function S(t,e){1&t&&l._UZ(0,"mat-spinner",21)}var I=function(){var t=function(){function t(e,i,n,o,a,s,c){var u=this;_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.groupService=n,this.notificator=o,this.translate=a,this.apiRequest=s,this.authResolver=c,this.toRootOptionDisabled=!1,this.toGroupOptionDisabled=!1,this.otherGroups=[],this.otherGroupsCtrl=new r.NI(null,[r.kI.required]),this.loading=!1,this.selectedGroup=null,this.translate.get("DIALOGS.MOVE_GROUP.SUCCESS").subscribe(function(t){return u.successMessage=t}),this.translate.get("DIALOGS.MOVE_GROUP.ERROR").subscribe(function(t){return u.errorMessage=t})}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.groupService.getAllGroups(this.data.group.voId).subscribe(function(e){t.otherGroups=e.filter(function(e){return e.id!==t.data.group.id&&"members"!==e.name&&t.canMove(e)}),0===t.otherGroups.length&&(t.toGroupOptionDisabled=!0),null!==t.data.group.parentGroupId&&t.authResolver.isAuthorized("destination_null-moveGroup_Group_Group_policy",[t.data.group])||(t.toRootOptionDisabled=!0,t.moveOption="toGroup"),t.filteredGroups=t.otherGroupsCtrl.valueChanges.pipe((0,o.O)(""),(0,a.U)(function(e){return e?t._filterGroups(e):t.otherGroups.slice()})),t.loading=!1},function(){return t.loading=!1})}},{key:"displayFn",value:function(t){return t?t.name:t}},{key:"_filterGroups",value:function(t){if("object"==typeof t)return[];var e=t.toLowerCase();return t?this.otherGroups.filter(function(t){return t.name.toLowerCase().indexOf(e)>-1}):this.otherGroups}},{key:"canMove",value:function(t){return this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[t,this.data.group])&&this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[this.data.group,t])}},{key:"close",value:function(){this.dialogRef.close()}},{key:"confirm",value:function(){var t=this;this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.groupService.moveGroupWithDestinationGroupMovingGroup(this.data.group.id,this.otherGroupsCtrl.value?this.otherGroupsCtrl.value.id:void 0).subscribe(function(){t.notificator.showSuccess(t.successMessage),t.dialogRef.close(!0)},function(e){t.notificator.showRPCError(e,t.errorMessage),t.dialogRef.close(!1)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Y36(n.so),l.Y36(n.WI),l.Y36(u.ff),l.Y36(c.V6),l.Y36(h.sK),l.Y36(c.F5),l.Y36(c.x4))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-move-group-dialog"]],decls:23,vars:28,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"ngModel","ngModelChange"],["color","primary","value","toRoot","class","move-options",4,"ngIf"],["value","toGroup","color","primary",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,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["color","primary","value","toRoot",1,"move-options"],["value","toGroup","color","primary"],["alert_type","warn"],[1,"w-100","mt-2"],["matInput","","required","",3,"placeholder","matAutocomplete","formControl","change"],[3,"displayWith"],["groupSelectAutocomplete","matAutocomplete"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"div",1),l.TgZ(5,"p"),l._uU(6),l.ALo(7,"translate"),l.qZA(),l.TgZ(8,"mat-radio-group",2),l.NdJ("ngModelChange",function(t){return e.moveOption=t}),l.YNc(9,A,3,3,"mat-radio-button",3),l.YNc(10,k,3,3,"mat-radio-button",4),l.qZA(),l.YNc(11,C,3,3,"app-alert",5),l.YNc(12,E,7,10,"mat-form-field",6),l.qZA(),l.YNc(13,S,1,0,"mat-spinner",7),l.TgZ(14,"div",8),l.TgZ(15,"button",9),l.NdJ("click",function(){return e.close()}),l._uU(16),l.ALo(17,"translate"),l.qZA(),l.TgZ(18,"span",10),l.ALo(19,"translate"),l.TgZ(20,"button",11),l.NdJ("click",function(){return e.confirm()}),l._uU(21),l.ALo(22,"translate"),l.qZA(),l.qZA(),l.qZA(),l.qZA()),2&t&&(l.Tol(e.data.theme),l.xp6(2),l.AsE("",l.lcZ(3,18,"DIALOGS.MOVE_GROUP.TITLE"),"",e.data.group.name,""),l.xp6(4),l.hij(" ",l.lcZ(7,20,"DIALOGS.MOVE_GROUP.INFO")," "),l.xp6(2),l.Q6J("ngModel",e.moveOption),l.xp6(1),l.Q6J("ngIf",!e.toRootOptionDisabled),l.xp6(1),l.Q6J("ngIf",!e.toGroupOptionDisabled),l.xp6(1),l.Q6J("ngIf",e.toRootOptionDisabled&&e.toGroupOptionDisabled),l.xp6(1),l.Q6J("ngIf",!e.toGroupOptionDisabled),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(3),l.hij(" ",l.lcZ(17,22,"DIALOGS.MOVE_GROUP.CANCEL")," "),l.xp6(2),l.s9C("matTooltip",l.lcZ(19,24,"DIALOGS.MOVE_GROUP.DISABLED_HINT")),l.Q6J("matTooltipPosition","above")("matTooltipDisabled",null!==e.selectedGroup||"toRoot"===e.moveOption),l.xp6(2),l.Q6J("disabled",(e.otherGroupsCtrl.invalid||null===e.selectedGroup)&&"toRoot"!==e.moveOption||e.loading),l.xp6(1),l.hij(" ",l.lcZ(22,26,"DIALOGS.MOVE_GROUP.CONFIRM")," "))},directives:[n.uh,n.xY,d.VQ,r.JJ,r.On,f.O5,n.H8,p.lW,g.gM,d.U0,m.w,v.KE,y.Nt,_.ZL,r.Fj,r.Q7,r.oH,_.XC,f.sg,b.ey,w.$g],pipes:[h.X$,f.Ov],styles:[".move-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"],data:{animation:[s.BQ]}}),t}()},95121:function(t,e,i){"use strict";i.d(e,{m:function(){return _}});var n=i(84608),r=i(65249),o=i(68416),a=i(31572),s=i(48160),c=i(61511),u=i(15980),l=i(67806),h=i(66283),d=i(4786),f=i(71522);function p(t,e){1&t&&a._UZ(0,"mat-spinner",7)}function g(t,e){if(1&t&&(a.TgZ(0,"mat-option",13),a._uU(1),a.qZA()),2&t){var i=e.$implicit;a.Q6J("value",i),a.xp6(1),a.hij(" ",i.friendlyNameParameter," ")}}function m(t,e){if(1&t&&(a.TgZ(0,"mat-option",13),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"uppercase"),a.qZA()),2&t){var i=e.$implicit;a.Q6J("value",i),a.xp6(1),a.hij(" ",a.lcZ(2,2,a.lcZ(3,4,"SHARED_LIB.LANGUAGES."+i))," ")}}function v(t,e){if(1&t&&(a.TgZ(0,"mat-option",13),a._uU(1),a.qZA()),2&t){var i=e.$implicit;a.Q6J("value",i),a.xp6(1),a.hij(" ",i," ")}}function y(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"div",8),a.TgZ(1,"mat-form-field"),a.TgZ(2,"mat-label"),a._uU(3),a.ALo(4,"translate"),a.qZA(),a.TgZ(5,"mat-select",9),a.NdJ("valueChange",function(t){return a.CHM(i),a.oxw().selectedLogin=t}),a.YNc(6,g,2,2,"mat-option",10),a.qZA(),a.qZA(),a.TgZ(7,"mat-form-field"),a.TgZ(8,"mat-label"),a._uU(9),a.ALo(10,"translate"),a.qZA(),a.TgZ(11,"mat-select",9),a.NdJ("valueChange",function(t){return a.CHM(i),a.oxw().selectedLang=t}),a.YNc(12,m,4,6,"mat-option",10),a.qZA(),a.qZA(),a.TgZ(13,"mat-form-field"),a.TgZ(14,"mat-label"),a._uU(15),a.ALo(16,"translate"),a.qZA(),a.TgZ(17,"mat-select",9),a.NdJ("valueChange",function(t){return a.CHM(i),a.oxw().selectedMail=t}),a.YNc(18,v,2,2,"mat-option",10),a.qZA(),a.qZA(),a.TgZ(19,"div",11),a.TgZ(20,"p",12),a._uU(21),a.ALo(22,"translate"),a.qZA(),a.TgZ(23,"p"),a._uU(24),a.qZA(),a.qZA(),a.qZA()}if(2&t){var n=a.oxw();a.xp6(3),a.Oqu(a.lcZ(4,11,"DIALOGS.PASSWORD_RESET_REQUEST.NAMESPACE")),a.xp6(2),a.Q6J("value",n.selectedLogin),a.xp6(1),a.Q6J("ngForOf",n.logins),a.xp6(3),a.Oqu(a.lcZ(10,13,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),a.xp6(2),a.Q6J("value",n.selectedLang),a.xp6(1),a.Q6J("ngForOf",n.languages),a.xp6(3),a.Oqu(a.lcZ(16,15,"DIALOGS.PASSWORD_RESET_REQUEST.EMAIL")),a.xp6(2),a.Q6J("value",n.selectedMail),a.xp6(1),a.Q6J("ngForOf",n.mails),a.xp6(3),a.Oqu(a.lcZ(22,17,"DIALOGS.PASSWORD_RESET_REQUEST.LOGIN")),a.xp6(3),a.Oqu(n.selectedLogin.value)}}var _=function(){var t=function(){function t(e,i,n,r,o,a,s){var c=this;_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.membersManagerService=n,this.attributesManagerService=r,this.store=o,this.translate=a,this.notificator=s,this.languages=this.store.get("supported_languages"),this.selectedLang="en",this.pwdMails=new Map,this.logins=[],this.selectedMail="user:preferredMail",this.mails=[],a.get("DIALOGS.PASSWORD_RESET_REQUEST.SUCCESS").subscribe(function(t){return c.successMessage=t})}return _createClass(t,[{key:"ngOnInit",value:function(){this.getMailAttributes(),this.logins=this.data.logins,this.selectedLogin=this.logins[0]}},{key:"getMailAttributes",value:function(){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"}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var t=this;this.loading=!0;var e=this.selectedLogin.friendlyNameParameter,i=window.location.href.split("/"),n=i[0]+"//"+i[2];this.membersManagerService.sendPasswordResetLinkEmail(this.data.memberId,e,this.pwdMails.get(this.selectedMail),this.selectedLang,n).subscribe(function(){t.notificator.showSuccess(t.successMessage),t.loading=!1,t.dialogRef.close()},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(r.uq),a.Y36(r.H8),a.Y36(o.d6),a.Y36(s.sK),a.Y36(o.V6))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.YNc(4,p,1,0,"mat-spinner",2),a.qZA(),a.YNc(5,y,25,19,"div",3),a.TgZ(6,"div",4),a.TgZ(7,"button",5),a.NdJ("click",function(){return e.onCancel()}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"button",6),a.NdJ("click",function(){return e.onSubmit()}),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,6,"DIALOGS.PASSWORD_RESET_REQUEST.TITLE")),a.xp6(3),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading),a.xp6(3),a.hij(" ",a.lcZ(9,8,"DIALOGS.PASSWORD_RESET_REQUEST.CANCEL")," "),a.xp6(2),a.Q6J("disabled",e.loading),a.xp6(1),a.hij(" ",a.lcZ(12,10,"DIALOGS.PASSWORD_RESET_REQUEST.SEND")," "))},directives:[n.uh,c.O5,n.H8,u.lW,l.$g,n.xY,h.KE,h.hX,d.gD,c.sg,f.ey],pipes:[s.X$,c.gd],styles:[".column-size[_ngcontent-%COMP%]{width:8rem}"]}),t}()},4374:function(t,e,i){"use strict";i.d(e,{X:function(){return A}});var n=i(84608),r=i(67033),o=i(68416),a=i(65249),s=i(31572),c=i(48160),u=i(61511),l=i(67806),h=i(15980),d=i(22196);function f(t,e){1&t&&s._UZ(0,"th",13)}function p(t,e){if(1&t&&(s.TgZ(0,"td",14),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.hij(" ",i.id," ")}}function g(t,e){1&t&&s._UZ(0,"th",13)}function m(t,e){if(1&t&&(s.TgZ(0,"td",14),s._uU(1),s.ALo(2,"userFullName"),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.hij(" ",s.lcZ(2,1,i.user)," ")}}function v(t,e){1&t&&s._UZ(0,"tr",15)}function y(t,e){1&t&&s._UZ(0,"tr",16)}function _(t,e){if(1&t&&(s.TgZ(0,"div",4),s.TgZ(1,"p"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"div",5),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"table",6),s.ynx(8,7),s.YNc(9,f,1,0,"th",8),s.YNc(10,p,2,1,"td",9),s.BQk(),s.ynx(11,10),s.YNc(12,g,1,0,"th",8),s.YNc(13,m,3,3,"td",9),s.BQk(),s.YNc(14,v,1,0,"tr",11),s.YNc(15,y,1,0,"tr",12),s.qZA(),s.qZA()),2&t){var i=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,5,i.data.groupId?"DIALOGS.REMOVE_MEMBERS.DESCRIPTION_GROUP":"DIALOGS.REMOVE_MEMBERS.DESCRIPTION")," "),s.xp6(3),s.hij(" ",s.lcZ(6,7,"DIALOGS.REMOVE_MEMBERS.ASK")," "),s.xp6(2),s.Q6J("dataSource",i.dataSource),s.xp6(7),s.Q6J("matHeaderRowDef",i.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",i.displayedColumns)}}function b(t,e){1&t&&s._UZ(0,"mat-spinner",17)}function w(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"div",18),s.TgZ(1,"button",19),s.NdJ("click",function(){return s.CHM(i),s.oxw().onCancel()}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"button",20),s.NdJ("click",function(){return s.CHM(i),s.oxw().onSubmit()}),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA()}if(2&t){var n=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,2,"DIALOGS.REMOVE_MEMBERS.CANCEL")," "),s.xp6(3),s.hij(" ",s.lcZ(6,4,n.data.groupId?"DIALOGS.REMOVE_MEMBERS.REMOVE_GROUP":"DIALOGS.REMOVE_MEMBERS.REMOVE")," ")}}var A=function(){var t=function(){function t(e,i,n,r,o,a){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.membersService=n,this.groupService=r,this.notificator=o,this.translate=a,this.displayedColumns=["id","name"]}return _createClass(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new r.by(this.data.members)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.data.groupId?this.groupService.removeMembers(this.data.groupId,this.data.members.map(function(t){return t.id})).subscribe(function(){return t.onSuccess()},function(){return t.onError()}):this.membersService.deleteMembers(this.data.members.map(function(t){return t.id})).subscribe(function(){return t.onSuccess()},function(){return t.onError()})}},{key:"onSuccess",value:function(){var t=this.translate.instant(this.data.groupId?"DIALOGS.REMOVE_MEMBERS.SUCCESS_GROUP":"DIALOGS.REMOVE_MEMBERS.SUCCESS");this.notificator.showSuccess(t),this.dialogRef.close(!0),this.loading=!1}},{key:"onError",value:function(){this.loading=!1}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(n.so),s.Y36(n.WI),s.Y36(a.uq),s.Y36(a.ff),s.Y36(o.V6),s.Y36(c.sK))},t.\u0275cmp=s.Xpm({type:t,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"],["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",""],[1,"mr-auto","ml-auto"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn","data-cy","remove-members-dialog",1,"ml-2",3,"click"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,_,16,9,"div",1),s.YNc(5,b,1,0,"mat-spinner",2),s.YNc(6,w,7,6,"div",3),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.Oqu(s.lcZ(3,7,"DIALOGS.REMOVE_MEMBERS.TITLE")),s.xp6(2),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[n.uh,u.O5,n.xY,r.BZ,r.w1,r.fO,r.Dz,r.as,r.nj,r.ge,r.ev,r.XQ,r.Gk,l.$g,n.H8,h.lW],pipes:[c.X$,d.d],styles:[""]}),t}()},95909:function(t,e,i){"use strict";i.d(e,{f:function(){return l}});var n=i(84608),r=i(67033),o=i(68416),a=i(65249),s=i(31572),c=i(48160),u=i(20247),l=function(){var t=function(){function t(e,i,n,r,o){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translate=r,this.resourcesManager=o,this.displayedColumns=["name"],this.loading=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new r.by(this.data.resources)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onDelete",value:function(){var t=this;this.loading=!0,0===this.data.resources.length?this.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(function(e){t.loading=!1,t.notificator.showSuccess(e),t.dialogRef.close(!0)}):this.resourcesManager.deleteResource(this.data.resources[0].id).subscribe(function(){t.data.resources.shift(),t.onDelete()},function(){t.dialogRef.close(!0)})}},{key:"onSubmit",value:function(t){t.deleted?this.onDelete():this.onCancel()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(n.so),s.Y36(n.WI),s.Y36(o.V6),s.Y36(c.sK),s.Y36(a.xk))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-remove-resource-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","disableForce","loading","deleted"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"app-delete-entity-dialog",0),s.NdJ("deleted",function(t){return e.onSubmit(t)}),s.qZA(),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(1),s.Q6J("entityNames",e.dataSource)("entityType","resources")("disableForce",!0)("loading",e.loading))},directives:[u.e],styles:[""]}),t}()},99608:function(t,e,i){"use strict";i.d(e,{o:function(){return l}});var n=i(84608),r=i(67033),o=i(68416),a=i(65249),s=i(31572),c=i(48160),u=i(20247),l=function(){var t=function(){function t(e,i,n,r,o){var a=this;_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.voService=r,this.translate=o,this.force=!1,this.displayedColumns=["name"],this.relations=[],o.get("DIALOGS.REMOVE_VO.SUCCESS").subscribe(function(t){return a.successMessage=t})}return _createClass(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new r.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"))}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onDelete",value:function(){var t=this;this.loading=!0,this.voService.deleteVo(this.data.vos[0].id,this.force).subscribe(function(){t.notificator.showSuccess(t.successMessage),t.loading=!1,t.dialogRef.close(!0)},function(){return t.loading=!1})}},{key:"onSubmit",value:function(t){this.force=t.force,t.deleted?this.onDelete():this.onCancel()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(n.so),s.Y36(n.WI),s.Y36(o.V6),s.Y36(a.YF),s.Y36(c.sK))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-remove-vo-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","relations","loading","deleted"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"app-delete-entity-dialog",0),s.NdJ("deleted",function(t){return e.onSubmit(t)}),s.qZA(),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(1),s.Q6J("entityNames",e.dataSource)("entityType","organizations")("relations",e.relations)("loading",e.loading))},directives:[u.e],styles:[".foo[_ngcontent-%COMP%]{margin-top:20px}"]}),t}()},24555:function(t,e,i){"use strict";i.d(e,{E:function(){return y}});var n=i(84608),r=i(65249),o=i(31572),a=i(61511),s=i(15980),c=i(67806),u=i(66283),l=i(80340),h=i(16073),d=i(4786),f=i(71522),p=i(48160);function g(t,e){1&t&&o._UZ(0,"mat-spinner",6)}function m(t,e){if(1&t){var i=o.EpF();o.TgZ(0,"div"),o.TgZ(1,"mat-form-field",9),o.TgZ(2,"mat-select",10),o.NdJ("valueChange",function(t){return o.CHM(i),o.oxw(2).embeddedState=t}),o.ALo(3,"translate"),o.TgZ(4,"mat-option",11),o._uU(5),o.ALo(6,"translate"),o.qZA(),o.TgZ(7,"mat-option",12),o._uU(8),o.ALo(9,"translate"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&t){var n=o.oxw(2);o.xp6(2),o.MGl("placeholder","",o.lcZ(3,4,"DIALOGS.UPDATE_APPLICATION_FORM.EMBEDDED"),":"),o.Q6J("value",n.embeddedState),o.xp6(3),o.Oqu(o.lcZ(6,6,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),o.xp6(3),o.Oqu(o.lcZ(9,8,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL"))}}function v(t,e){if(1&t){var i=o.EpF();o.TgZ(0,"div",7),o.TgZ(1,"mat-form-field"),o.TgZ(2,"input",8),o.NdJ("ngModelChange",function(t){return o.CHM(i),o.oxw().moduleName=t}),o.ALo(3,"translate"),o.qZA(),o.qZA(),o.TgZ(4,"mat-form-field",9),o.TgZ(5,"mat-select",10),o.NdJ("valueChange",function(t){return o.CHM(i),o.oxw().initialState=t}),o.ALo(6,"translate"),o.TgZ(7,"mat-option",11),o._uU(8),o.ALo(9,"translate"),o.qZA(),o.TgZ(10,"mat-option",12),o._uU(11),o.ALo(12,"translate"),o.qZA(),o.qZA(),o.qZA(),o.TgZ(13,"mat-form-field",9),o.TgZ(14,"mat-select",10),o.NdJ("valueChange",function(t){return o.CHM(i),o.oxw().extensionState=t}),o.ALo(15,"translate"),o.TgZ(16,"mat-option",11),o._uU(17),o.ALo(18,"translate"),o.qZA(),o.TgZ(19,"mat-option",12),o._uU(20),o.ALo(21,"translate"),o.qZA(),o.qZA(),o.qZA(),o.YNc(22,m,10,10,"div",13),o.qZA()}if(2&t){var n=o.oxw();o.xp6(2),o.s9C("placeholder",o.lcZ(3,11,"DIALOGS.UPDATE_APPLICATION_FORM.MODULE_NAME")),o.Q6J("ngModel",n.moduleName),o.xp6(3),o.MGl("placeholder","",o.lcZ(6,13,"DIALOGS.UPDATE_APPLICATION_FORM.INITIAL"),":"),o.Q6J("value",n.initialState),o.xp6(3),o.Oqu(o.lcZ(9,15,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),o.xp6(3),o.Oqu(o.lcZ(12,17,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),o.xp6(3),o.MGl("placeholder","",o.lcZ(15,19,"DIALOGS.UPDATE_APPLICATION_FORM.EXTENSION"),":"),o.Q6J("value",n.extensionState),o.xp6(3),o.Oqu(o.lcZ(18,21,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),o.xp6(3),o.Oqu(o.lcZ(21,23,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),o.xp6(2),o.Q6J("ngIf","group"===n.entity&&n.autoRegistrationEnabled)}}var y=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.registrarManager=n,this.loading=!1}return _createClass(t,[{key:"ngOnInit",value:function(){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}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"submit",value:function(){var t=this;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(function(e){t.dialogRef.close(e)},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.so),o.Y36(n.WI),o.Y36(r.tk))},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-update-application-form-dialog"]],decls:13,vars:15,consts:[["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","accent",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(t,e){1&t&&(o.TgZ(0,"div"),o.TgZ(1,"h1",0),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.YNc(4,g,1,0,"mat-spinner",1),o.YNc(5,v,23,25,"div",2),o.TgZ(6,"div",3),o.TgZ(7,"button",4),o.NdJ("click",function(){return e.onCancel()}),o._uU(8),o.ALo(9,"translate"),o.qZA(),o.TgZ(10,"button",5),o.NdJ("click",function(){return e.submit()}),o._uU(11),o.ALo(12,"translate"),o.qZA(),o.qZA(),o.qZA()),2&t&&(o.Tol(e.theme),o.xp6(2),o.Oqu(o.lcZ(3,9,"DIALOGS.UPDATE_APPLICATION_FORM.TITLE")),o.xp6(2),o.Q6J("ngIf",e.loading),o.xp6(1),o.Q6J("ngIf",!e.loading),o.xp6(3),o.hij(" ",o.lcZ(9,11,"DIALOGS.UPDATE_APPLICATION_FORM.CANCEL_BUTTON")," "),o.xp6(2),o.Q6J("disabled",e.loading),o.xp6(1),o.hij(" ",o.lcZ(12,13,"DIALOGS.UPDATE_APPLICATION_FORM.SUBMIT_BUTTON")," "))},directives:[n.uh,a.O5,n.H8,s.lW,c.$g,n.xY,u.KE,l.Nt,h.Fj,h.JJ,h.On,d.gD,f.ey],pipes:[p.X$],styles:[""]}),t}()},65050:function(t,e,i){"use strict";i.d(e,{c:function(){return o}});var n=i(31572),r=i(48160),o=function(){var t=function(){function t(e){_classCallCheck(this,t),this.translateService=e,this.returnData=""}return _createClass(t,[{key:"transform",value:function(t){var e=this;switch(t){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.HEADER").subscribe(function(t){e.returnData=t});break;case"FROM_FEDERATION_HIDDEN":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.FROM_FEDERATION_HIDDEN").subscribe(function(t){e.returnData=t});break;case"HTML_COMMENT":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.HTML_COMMENT").subscribe(function(t){e.returnData=t});break;case"TEXTFIELD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TEXTFIELD").subscribe(function(t){e.returnData=t});break;case"FROM_FEDERATION_SHOW":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.FROM_FEDERATION_SHOW").subscribe(function(t){e.returnData=t});break;case"VALIDATED_EMAIL":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.VALIDATED_EMAIL").subscribe(function(t){e.returnData=t});break;case"USERNAME":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.USERNAME").subscribe(function(t){e.returnData=t});break;case"PASSWORD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.PASSWORD").subscribe(function(t){e.returnData=t});break;case"SELECTIONBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.SELECTIONBOX").subscribe(function(t){e.returnData=t});break;case"TEXTAREA":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TEXTAREA").subscribe(function(t){e.returnData=t});break;case"COMBOBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.COMBOBOX").subscribe(function(t){e.returnData=t});break;case"CHECKBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.CHECKBOX").subscribe(function(t){e.returnData=t});break;case"SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.SUBMIT_BUTTON").subscribe(function(t){e.returnData=t});break;case"RADIO":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.RADIO").subscribe(function(t){e.returnData=t});break;case"TIMEZONE":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TIMEZONE").subscribe(function(t){e.returnData=t});break;case"AUTO_SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.AUTO_SUBMIT_BUTTON").subscribe(function(t){e.returnData=t});break;case"EMBEDDED_GROUP_APPLICATION":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.EMBEDDED_GROUP_APPLICATION").subscribe(function(t){e.returnData=t});break;default:return t}return this.returnData}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(r.sK,16))},t.\u0275pipe=n.Yjl({name:"applicationFormItemType",type:t,pure:!0}),t}()},84650:function(t,e,i){"use strict";i.d(e,{h:function(){return o}});var n=i(31572),r=i(48160),o=function(){var t=function(){function t(e){_classCallCheck(this,t),this.translate=e,this.returnData=""}return _createClass(t,[{key:"transform",value:function(t){var e=this;switch(t){case"APPROVED":this.translate.get("VO_DETAIL.APPLICATION.STATE.APPROVED").subscribe(function(t){e.returnData='done'.concat(t)});break;case"REJECTED":this.translate.get("VO_DETAIL.APPLICATION.STATE.REJECTED").subscribe(function(t){e.returnData='clear'.concat(t)});break;case"NEW":this.translate.get("VO_DETAIL.APPLICATION.STATE.NEW").subscribe(function(t){e.returnData='contact_mail '.concat(t)});break;case"VERIFIED":this.translate.get("VO_DETAIL.APPLICATION.STATE.VERIFIED").subscribe(function(t){e.returnData='gavel'.concat(t)});break;default:this.returnData=t}return this.returnData}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(r.sK,16))},t.\u0275pipe=n.Yjl({name:"applicationState",type:t,pure:!1}),t}()},99373:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var n=i(31572),r=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){return t.substring(40)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"extSourceType",type:t,pure:!0}),t}()},28780:function(t,e,i){"use strict";i.d(e,{m:function(){return St}});var n=i(61511),r=i(57629),o=i(40084),a=i(15980),s=i(29236),c=i(71522),u=i(15812),l=i(84608),h=i(27679),d=i(45001),f=i(66283),p=i(43691),g=i(80340),m=i(73005),v=i(45994),y=i(67806),_=i(54810),b=i(4786),w=i(25122),A=i(27521),k=i(71403),C=i(58623),T=i(67033),E=i(55109),S=i(36922),I=i(91010),R=i(27439),x=i(41050),O=i(10033),P=i(8055),D=i(70663),M=i(16073),L=i(24081),N=i(17),z=i(68416),Z=i(31572),B=i(84534),F=i(48160),q=["collapse"],H=function(){return{color:"linkTextColor"}};function U(t,e){1&t&&(Z.TgZ(0,"mat-icon",14),Z._uU(1,"keyboard_arrow_right"),Z.qZA()),2&t&&Z.Q6J("ngStyle",Z.DdM(1,H))}function G(t,e){1&t&&(Z.TgZ(0,"mat-icon",14),Z._uU(1,"keyboard_arrow_down"),Z.qZA()),2&t&&Z.Q6J("ngStyle",Z.DdM(1,H))}function j(t,e){if(1&t&&(Z.TgZ(0,"span",12),Z.YNc(1,U,2,2,"mat-icon",13),Z.YNc(2,G,2,2,"mat-icon",13),Z.qZA()),2&t){var i=Z.oxw().$implicit,n=Z.oxw(2);Z.xp6(1),Z.Q6J("ngIf",!n.isActive(n.currentUrl,i.showChildrenRegex)),Z.xp6(1),Z.Q6J("ngIf",n.isActive(n.currentUrl,i.showChildrenRegex))}}var Y=function(t,e){return{color:t,"border-color":e}};function K(t,e){if(1&t){var i=Z.EpF();Z.TgZ(0,"a",17),Z.NdJ("click",function(){var t=Z.CHM(i).$implicit;return Z.oxw(4).navigate(t.url)}),Z._uU(1),Z.ALo(2,"translate"),Z.qZA()}if(2&t){var n=e.$implicit,r=Z.oxw(4);Z.ekj("activated",r.isActive(r.currentUrl,n.activatedRegex)&&void 0===r.item.activatedClass),Z.Q6J("perunWebAppsMiddleClickRouterLink",n.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",r.isActive(r.currentUrl,n.activatedRegex)&&void 0!==r.item.activatedClass?r.item.activatedClass:"")("ngStyle",Z.WLB(9,Y,r.linkTextColor,r.linkTextColor)),Z.xp6(1),Z.hij(" ",Z.lcZ(2,7,n.label)," ")}}function V(t,e){if(1&t&&(Z.TgZ(0,"div",15),Z.YNc(1,K,3,12,"a",16),Z.qZA()),2&t){var i=Z.oxw().$implicit;Z.Q6J("@rollInOut",void 0),Z.xp6(1),Z.Q6J("ngForOf",null==i?null:i.children)}}function J(t,e){if(1&t){var i=Z.EpF();Z.TgZ(0,"div"),Z.TgZ(1,"a",9),Z.NdJ("click",function(){var t=Z.CHM(i).$implicit;return Z.oxw(2).navigate(t.url)}),Z._uU(2),Z.ALo(3,"translate"),Z.YNc(4,j,3,2,"span",10),Z.qZA(),Z.YNc(5,V,2,2,"div",11),Z.qZA()}if(2&t){var n=e.$implicit,r=Z.oxw(2);Z.xp6(1),Z.ekj("activated",r.isActive(r.currentUrl,n.activatedRegex)&&void 0===r.item.activatedClass),Z.Q6J("perunWebAppsMiddleClickRouterLink",n.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",r.isActive(r.currentUrl,n.activatedRegex)&&void 0!==r.item.activatedClass?r.item.activatedClass:"")("ngStyle",Z.WLB(11,Y,r.linkTextColor,r.linkTextColor)),Z.xp6(1),Z.hij(" ",Z.lcZ(3,9,n.label)," "),Z.xp6(2),Z.Q6J("ngIf",n.children),Z.xp6(1),Z.Q6J("ngIf",r.isActive(r.currentUrl,n.showChildrenRegex))}}function Q(t,e){if(1&t&&(Z.TgZ(0,"div"),Z.YNc(1,J,6,14,"div",8),Z.qZA()),2&t){var i=Z.oxw();Z.Q6J("@rollInOut",void 0),Z.xp6(1),Z.Q6J("ngForOf",i.item.links)}}var W=function(t,e){return{background:t,"border-top":e}},X=function(t){return{color:t}},$=function(){return{color:"currentColor"}},tt=function(t){return{background:t}},et=function(){var t=function(){function t(e,i){var n=this;_classCallCheck(this,t),this.router=e,this.store=i,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.iconColor=this.store.get("theme","sidemenu_item_icon_color"),this.dividerStyle="1px solid "+this.store.get("theme","sidemenu_divider_color"),this.currentUrl=e.url,e.events.subscribe(function(t){t instanceof r.m2&&(n.currentUrl=t.url)})}return _createClass(t,[{key:"toggle",value:function(){void 0!==this.item.baseLink&&this.navigate(this.item.baseLink)}},{key:"isActive",value:function(t,e){return new RegExp(e).test(t)}},{key:"navigate",value:function(t){var e=this;"over"===this.sideNav.mode?this.sideNav.close().then(function(){return e.router.navigate(t)}):this.router.navigate(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Z.Y36(r.F0),Z.Y36(z.d6))},t.\u0275cmp=Z.Xpm({type:t,selectors:[["app-side-menu-item"]],viewQuery:function(t,e){var i;(1&t&&Z.Gf(q,5),2&t)&&(Z.iGM(i=Z.CRH())&&(e.collapseDiv=i.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(t,e){1&t&&(Z.TgZ(0,"div",0),Z.TgZ(1,"div",1),Z.NdJ("click",function(){return e.toggle()}),Z.TgZ(2,"div",2),Z.TgZ(3,"a",3),Z.TgZ(4,"div"),Z._UZ(5,"mat-icon",4),Z.qZA(),Z.TgZ(6,"div",5),Z._uU(7),Z.ALo(8,"translate"),Z.qZA(),Z.qZA(),Z.qZA(),Z.qZA(),Z.TgZ(9,"div"),Z.TgZ(10,"div",6),Z.YNc(11,Q,2,2,"div",7),Z.qZA(),Z.qZA(),Z.qZA()),2&t&&(Z.xp6(1),Z.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",Z.WLB(18,W,e.item.backgroundColorCss,e.index?e.dividerStyle:"none")),Z.xp6(1),Z.Gre("entity-menu-item-link ",e.item.labelClass,""),Z.Q6J("perunWebAppsMiddleClickRouterLink",e.item.baseLink),Z.xp6(1),Z.Q6J("ngStyle",Z.VKq(21,X,e.item.textColorCss)),Z.xp6(2),Z.Q6J("ngStyle",Z.DdM(23,$))("svgIcon",e.item.icon),Z.xp6(2),Z.Oqu(Z.lcZ(8,16,e.item.label)),Z.xp6(2),Z.Q6J("@openClose",e.expanded?"open":"closed"),Z.xp6(1),Z.Gre("side-entity-menu ",e.item.linksClass,""),Z.Q6J("ngStyle",Z.VKq(24,tt,e.linkBgColor)),Z.xp6(1),Z.Q6J("ngIf",e.showLinks))},directives:[c.wG,n.PC,B.YH,p.Hw,n.O5,n.sg,n.mk],pipes:[F.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:[N.BQ,N.Ly]}}),t}(),it=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){if(void 0===t.value)return"";switch(t.type){case"java.lang.String":return t.value;case"java.lang.Integer":return t.value.toString();case"java.util.ArrayList":return this.whenValueIsArray(t.value);case"java.util.LinkedHashMap":return this.whenValueIsMap(t.value);case"java.lang.Boolean":return t.value.toString();default:return t.value}}},{key:"whenValueIsArray",value:function(t){var e="";return t.forEach(function(t){e=e.concat(t+", ")}),e}},{key:"whenValueIsMap",value:function(t){var e="";return t.forEach(function(t,i){e=e.concat(i+": "+t+", ")}),e}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Z.Yjl({name:"anyToString",type:t,pure:!0}),t}(),nt=["collapse"],rt=function(){return{color:"linkTextColor"}};function ot(t,e){1&t&&(Z.TgZ(0,"mat-icon",12),Z._uU(1,"keyboard_arrow_right"),Z.qZA()),2&t&&Z.Q6J("ngStyle",Z.DdM(1,rt))}function at(t,e){1&t&&(Z.TgZ(0,"mat-icon",12),Z._uU(1,"keyboard_arrow_down"),Z.qZA()),2&t&&Z.Q6J("ngStyle",Z.DdM(1,rt))}function st(t,e){if(1&t&&(Z.TgZ(0,"span",10),Z.YNc(1,ot,2,2,"mat-icon",11),Z.YNc(2,at,2,2,"mat-icon",11),Z.qZA()),2&t){var i=Z.oxw().$implicit,n=Z.oxw();Z.xp6(1),Z.Q6J("ngIf",!n.isActive(n.currentUrl,i.showChildrenRegex)),Z.xp6(1),Z.Q6J("ngIf",n.isActive(n.currentUrl,i.showChildrenRegex))}}var ct=function(t,e){return{color:t,"border-color":e}};function ut(t,e){if(1&t){var i=Z.EpF();Z.TgZ(0,"a",14),Z.NdJ("click",function(){var t=Z.CHM(i).$implicit;return Z.oxw(3).navigate(t.url)}),Z._uU(1),Z.ALo(2,"translate"),Z.qZA()}if(2&t){var n=e.$implicit,r=Z.oxw(3);Z.ekj("activated",r.isActive(r.currentUrl,n.activatedRegex)&&void 0===r.item.activatedClass),Z.Q6J("perunWebAppsMiddleClickRouterLink",n.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",Z.WLB(9,ct,r.linkTextColor,r.linkTextColor))("ngClass",r.isActive(r.currentUrl,n.activatedRegex)&&void 0!==r.item.activatedClass?r.item.activatedClass:""),Z.xp6(1),Z.hij(" ",Z.lcZ(2,7,n.label)," ")}}function lt(t,e){if(1&t&&(Z.TgZ(0,"div"),Z.YNc(1,ut,3,12,"a",13),Z.qZA()),2&t){var i=Z.oxw().$implicit;Z.Q6J("@rollInOut",void 0),Z.xp6(1),Z.Q6J("ngForOf",null==i?null:i.children)}}function ht(t,e){if(1&t){var i=Z.EpF();Z.TgZ(0,"div"),Z.TgZ(1,"a",7),Z.NdJ("click",function(){var t=Z.CHM(i).$implicit;return Z.oxw().navigate(t.url)}),Z._uU(2),Z.ALo(3,"translate"),Z.YNc(4,st,3,2,"span",8),Z.qZA(),Z.YNc(5,lt,2,2,"div",9),Z.qZA()}if(2&t){var n=e.$implicit,r=Z.oxw();Z.xp6(1),Z.ekj("activated",r.isActive(r.currentUrl,n.activatedRegex)&&void 0===r.item.activatedClass),Z.Q6J("perunWebAppsMiddleClickRouterLink",n.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",Z.WLB(11,ct,r.linkTextColor,r.linkTextColor))("ngClass",r.isActive(r.currentUrl,n.activatedRegex)&&void 0!==r.item.activatedClass?r.item.activatedClass:""),Z.xp6(1),Z.hij(" ",Z.lcZ(3,9,n.label)," "),Z.xp6(2),Z.Q6J("ngIf",n.children),Z.xp6(1),Z.Q6J("ngIf",r.isActive(r.currentUrl,n.showChildrenRegex))}}var dt=function(t){return{background:t}},ft=function(t){return{color:t}},pt=function(){return{color:"currentColor"}},gt=function(){var t=function(){function t(e,i){var n=this;_classCallCheck(this,t),this.router=e,this.store=i,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.iconColor=this.store.get("theme","sidemenu_item_icon_color"),this.currentUrl=e.url,e.events.subscribe(function(t){t instanceof r.m2&&(n.currentUrl=t.url)})}return _createClass(t,[{key:"ngOnInit",value:function(){this.expanded=this.showOpen}},{key:"ngOnChanges",value:function(){this.expanded=this.showOpen}},{key:"toggle",value:function(){void 0!==this.item.baseLink?this.navigate(this.item.baseLink):this.expanded=!this.expanded}},{key:"isActive",value:function(t,e){return new RegExp(e).test(t)}},{key:"getBgClass",value:function(){return this.item.baseColorClass?this.isActive(this.currentUrl,this.item.baseColorClassRegex)?this.item.colorClass:this.item.baseColorClass:this.item.colorClass}},{key:"navigate",value:function(t){var e=this;"over"===this.sideNav.mode?this.sideNav.close().then(function(){return e.router.navigate(t)}):this.router.navigate(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Z.Y36(r.F0),Z.Y36(z.d6))},t.\u0275cmp=Z.Xpm({type:t,selectors:[["app-side-menu-root-item"]],viewQuery:function(t,e){var i;(1&t&&Z.Gf(nt,5),2&t)&&(Z.iGM(i=Z.CRH())&&(e.collapseDiv=i.first))},inputs:{item:"item",index:"index",showOpen:"showOpen",id:"id",sideNav:"sideNav"},features:[Z.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","ngStyle","ngClass","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"],["matRipple","","class","pl-5 clickable",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngStyle","activated","ngClass","click",4,"ngFor","ngForOf"],["matRipple","",1,"pl-5","clickable",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngStyle","ngClass","click"]],template:function(t,e){1&t&&(Z.TgZ(0,"div",0),Z.TgZ(1,"div",1),Z.NdJ("click",function(){return e.toggle()}),Z.TgZ(2,"div"),Z.TgZ(3,"a",2),Z.TgZ(4,"div"),Z._UZ(5,"mat-icon",3),Z.qZA(),Z.TgZ(6,"div",4),Z._uU(7),Z.ALo(8,"translate"),Z.qZA(),Z.qZA(),Z.qZA(),Z.qZA(),Z.TgZ(9,"div"),Z.TgZ(10,"div",5),Z.YNc(11,ht,6,14,"div",6),Z.qZA(),Z.qZA(),Z.qZA()),2&t&&(Z.s9C("id",e.id),Z.xp6(1),Z.ekj("root-header-activated",e.isActive(e.currentUrl,e.item.baseColorClassRegex)),Z.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",Z.VKq(21,dt,e.item.backgroundColorCss))("perunWebAppsMiddleClickRouterLink",e.item.baseLink),Z.xp6(1),Z.Gre("entity-menu-item-link ",e.item.labelClass,""),Z.xp6(1),Z.Q6J("ngStyle",Z.VKq(23,ft,e.item.textColorCss)),Z.xp6(2),Z.Q6J("ngStyle",Z.DdM(25,pt))("svgIcon",e.item.icon),Z.xp6(2),Z.Oqu(Z.lcZ(8,19,e.item.label)),Z.xp6(2),Z.Q6J("@openClose",e.expanded?"open":"closed"),Z.xp6(1),Z.Gre("side-entity-menu ",e.item.linksClass,""),Z.Q6J("ngStyle",Z.VKq(26,dt,e.linkBgColor)),Z.xp6(1),Z.Q6J("ngForOf",e.item.links))},directives:[c.wG,n.PC,B.YH,p.Hw,n.sg,n.mk,n.O5],pipes:[F.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:[N.BQ,N.Ly]}}),t}(),mt=i(88975),vt=i(4253),yt=i(22727),_t=i(99373),bt=i(41939),wt=i(7423),At=i(22280),kt=i(30146),Ct=i(85250),Tt=i(84140),Et=i(18820),St=function(){var t=function t(e){_classCallCheck(this,t),this.translate=e,e.addLangs(["en","cs"])};return t.\u0275fac=function(e){return new(e||t)(Z.LFG(F.sK))},t.\u0275mod=Z.oAB({type:t}),t.\u0275inj=Z.cJS({providers:[it,_t.A],imports:[[n.ez,r.Bz,o.Bb,g.c,f.lN,M.UX,M.u5,p.Ps,w.SJ,d.To,F.aw.forChild({}),a.ot,C.JX,T.p0,E.Nh,I.dp,a.ot,s.p9,l.Is,b.LD,k.ZX,y.Cq,v.Cv,S.AV,A.rP,u.FA,c.XK,_.Fk,h.t,c.si,m.TU,R.QW,D.T5,mt._t,R.QW,O.Hi,P.Tx,vt.Cl,yt.r,x.g,bt.ez,wt.r,At.d4,kt.Co,Ct.ie,Tt.Je,Et.E3],kt.Co,o.Bb,g.c,r.Bz,M.UX,M.u5,p.Ps,w.SJ,F.aw,C.JX,T.p0,E.Nh,I.dp,a.ot,s.p9,l.Is,b.LD,k.ZX,y.Cq,v.Cv,S.AV,A.rP,u.FA,c.XK,_.Fk,h.t,R.QW,D.T5,c.si,m.TU,mt._t,O.Hi,O.Hi,d.To,P.Tx,vt.Cl,vt.Cl,vt.Cl,wt.r]}),t}();Z.B6R(L.V,[gt,n.sg,et,n.O5],[])},75585:function(t,e,i){"use strict";i.d(e,{V:function(){return l}});var n=i(68416),r=i(65249),o=i(84140),a=i(22280),s=i(67004),c=i(31572),u=i(48160),l=function(){var t=function(){function t(e,i,n,r,o,a,s){_classCallCheck(this,t),this.translate=e,this.authResolver=i,this.store=n,this.apiRequest=r,this.attributesManager=o,this.notificator=a,this.guiAuthResolver=s,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")}return _createClass(t,[{key:"getFacilitiesManagementItem",value:function(){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}}},{key:"getAccessManagementItem",value:function(){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}}},{key:"getHomeItem",value:function(){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:[]}}},{key:"getUserItem",value:function(){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"}]}}},{key:"getAdminItem",value:function(){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$"}]}}},{key:"parseFacility",value:function(t){return{label:t.name,baseLink:["/facilities/".concat(t.id)],backgroundColorCss:this.facilityBgColor,textColorCss:this.facilityTextColor,links:this.getFacilityLinks(t),colorClass:"facility-item",icon:"perun-facility-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}},{key:"parseResource",value:function(t,e){var i=(new a.r5).transform(t,e);return{label:t.name,baseLink:[i],backgroundColorCss:this.resourceBgColor,textColorCss:this.resourceTextColor,links:this.getResourceLinks(i,e?"/organizations":"/facilities",t),colorClass:"resource-item",icon:"perun-resource-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}},{key:"getResourceLinks",value:function(t,e,i){var n=[{label:"MENU_ITEMS.RESOURCE.OVERVIEW",url:[t],activatedRegex:"".concat(e,"/\\d+/resources/\\d+$")}];return this.authResolver.isAuthorized("getAssignedGroups_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",url:[t,"groups"],activatedRegex:"".concat(e,"/\\d+/resources/\\d+/groups$")}),this.authResolver.isAuthorized("getAssignedServices_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",url:[t,"services"],activatedRegex:"".concat(e,"/\\d+/resources/\\d+/services$")}),this.authResolver.isAuthorized("getAssignedMembers_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",url:[t,"members"],activatedRegex:"".concat(e,"/\\d+/resources/\\d+/members$")}),this.authResolver.isAuthorized("getAllResourcesTagsForResource_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",url:[t,"tags"],activatedRegex:"".concat(e,"/\\d+/resources/\\d+/tags$")}),n.push({label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",url:[t,"attributes"],activatedRegex:"".concat(e,"/\\d+/resources/\\d+/attributes$")}),this.authResolver.isManagerPagePrivileged(i)&&n.push({label:"MENU_ITEMS.RESOURCE.SETTINGS",url:[t,"settings"],activatedRegex:"".concat(e,"/\\d+/resources/\\d+/settings$"),children:[{label:"MENU_ITEMS.RESOURCE.MANAGERS",url:[t,"settings","managers"],activatedRegex:"".concat(e,"/\\d+/resources/\\d+/settings/managers$")}],showChildrenRegex:"".concat(e,"/\\d+/resources/\\d+/settings")}),n}},{key:"parseGroup",value:function(t){return{label:t.name,baseLink:["/organizations/".concat(t.voId,"/groups/").concat(t.id)],backgroundColorCss:this.groupBgColor,textColorCss:this.groupTextColor,links:this.getGroupLinks(t),colorClass:"group-item",icon:"perun-group",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}},{key:"parseVo",value:function(t){return{label:t.name,baseLink:["/organizations/".concat(t.id)],links:this.getVoLinks(t),colorClass:"vo-item",icon:"perun-vo",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.voBgColor,textColorCss:this.voTextColor}}},{key:"parseMember",value:function(t,e){return{label:(0,o.bD)(t.user),baseLink:["/organizations/".concat(t.voId,"/members/").concat(t.id)],backgroundColorCss:this.memberBgColor,textColorCss:this.memberTextColor,links:this.getMemberLinks(t,e),colorClass:"member-item",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}},{key:"parseUser",value:function(t,e,i){return{label:(0,o.bD)(t),baseLink:[e],backgroundColorCss:this.userBgColor,textColorCss:this.userTextColor,links:this.getUserLinks(t,e,i),colorClass:"user-bg-color",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}},{key:"parseServiceIdentity",value:function(t){return{label:(0,o.bD)(t),baseLink:["/myProfile/service-identities/".concat(t.id)],backgroundColorCss:this.userBgColor,textColorCss:this.userTextColor,links:[{label:"MENU_ITEMS.USER.OVERVIEW",url:["/myProfile/service-identities/".concat(t.id)],activatedRegex:"/myProfile/service-identities/\\d+$"},{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:["/myProfile/service-identities/".concat(t.id,"/associated-users")],activatedRegex:"/myProfile/service-identities/\\d+/associated-users"}],colorClass:"user-bg-color",icon:"perun-service-identity",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}},{key:"parseService",value:function(t){return{label:t.name,baseLink:["/admin/services/".concat(t.id)],backgroundColorCss:this.serviceBgColor,textColorCss:this.serviceTextColor,links:[{label:"MENU_ITEMS.SERVICE.OVERVIEW",url:["/admin/services/".concat(t.id)],activatedRegex:"/admin/services/\\d+$"},{label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",url:["/admin/services/".concat(t.id,"/required-attributes")],activatedRegex:"/admin/services/\\d+/required-attributes"},{label:"MENU_ITEMS.SERVICE.DESTINATIONS",url:["/admin/services/".concat(t.id,"/destinations")],activatedRegex:"/admin/services/\\d+/destinations"}],colorClass:"service-item",icon:"perun-service",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}},{key:"getVoLinks",value:function(t){var e=[];if(e.push({label:"MENU_ITEMS.VO.OVERVIEW",url:["/organizations/".concat(t.id)],activatedRegex:"/organizations/\\d+$"}),this.authResolver.isAuthorized("getCompleteRichMembers_Vo_List_policy",[t])&&e.push({label:"MENU_ITEMS.VO.MEMBERS",url:["/organizations/".concat(t.id,"/members")],activatedRegex:"/organizations/\\d+/members$"}),this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[t])&&e.push({label:"MENU_ITEMS.VO.GROUPS",url:["/organizations/".concat(t.id,"/groups")],activatedRegex:"/organizations/\\d+/groups$"}),this.authResolver.isAuthorized("getRichResources_Vo_policy",[t])){var i=[{label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",url:["/organizations/".concat(t.id,"/resources/preview")],activatedRegex:"/organizations/\\d+/resources/preview$"}];this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[t])&&i.push({label:"MENU_ITEMS.VO.RESOURCE_TAGS",url:["/organizations/".concat(t.id,"/resources/tags")],activatedRegex:"/organizations/\\d+/resources/tags$"}),this.authResolver.isAuthorized("getResourcesState_Vo_policy",[t])&&i.push({label:"MENU_ITEMS.VO.RESOURCE_STATES",url:["/organizations/".concat(t.id,"/resources/states")],activatedRegex:"/organizations/\\d+/resources/states$"}),e.push({label:"MENU_ITEMS.VO.RESOURCES",url:["/organizations/".concat(t.id,"/resources")],activatedRegex:"/organizations/\\d+/resources$",children:i,showChildrenRegex:"/organizations/\\d+/resources"})}this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[t])&&e.push({label:"MENU_ITEMS.VO.APPLICATIONS",url:["/organizations/".concat(t.id,"/applications")],activatedRegex:"/organizations/\\d+/applications"}),this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[t])&&e.push({label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",url:["/organizations/".concat(t.id,"/sponsoredMembers")],activatedRegex:"/organizations/\\d+/sponsoredMembers$"}),this.authResolver.isAuthorized("createSpecificMember_Vo_Candidate_List_SpecificUserType_List_policy",[t])&&e.push({label:"MENU_ITEMS.VO.SERVICE_MEMBERS",url:["/organizations/".concat(t.id,"/serviceAccounts")],activatedRegex:"/organizations/\\d+/serviceAccounts$"}),e.push({label:"MENU_ITEMS.VO.ATTRIBUTES",url:["/organizations/".concat(t.id,"/attributes")],activatedRegex:"/organizations/\\d+/attributes$"}),this.guiAuthResolver.isAuthorized("getMembersCount_Vo_Status_policy",[t])&&this.guiAuthResolver.isAuthorized("getMembersCount_Vo_policy",[t])&&e.push({label:"MENU_ITEMS.VO.STATISTICS",url:["/organizations/".concat(t.id,"/statistics")],activatedRegex:"/organizations/\\d+/statistics"});var n=this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[t]),r=this.authResolver.isManagerPagePrivileged(t),o=this.authResolver.isThisVoAdminOrObserver(t.id);if(r||n||o){var a=[];o&&a.push({label:"MENU_ITEMS.VO.EXPIRATION",url:["/organizations/".concat(t.id,"/settings/expiration")],activatedRegex:"/organizations/\\d+/settings/expiration$"}),r&&a.push({label:"MENU_ITEMS.VO.MANAGERS",url:["/organizations/".concat(t.id,"/settings/managers")],activatedRegex:"/organizations/\\d+/settings/managers$"}),o&&a.push({label:"MENU_ITEMS.VO.APPLICATION_FORM",url:["/organizations/".concat(t.id,"/settings/applicationForm")],activatedRegex:"/organizations/\\d+/settings/applicationForm$"}),o&&a.push({label:"MENU_ITEMS.VO.NOTIFICATIONS",url:["/organizations/".concat(t.id,"/settings/notifications")],activatedRegex:"/organizations/\\d+/settings/notifications$"}),n&&a.push({label:"MENU_ITEMS.VO.EXTSOURCES",url:["/organizations/".concat(t.id,"/settings/extsources")],activatedRegex:"/organizations/\\d+/settings/extsources$"}),e.push({label:"MENU_ITEMS.VO.SETTINGS",url:["/organizations/".concat(t.id,"/settings")],activatedRegex:"/organizations/\\d+/settings$",children:a,showChildrenRegex:"/organizations/\\d+/settings"})}return e}},{key:"getUserLinks",value:function(t,e,i){var n=[];return n.push({label:"MENU_ITEMS.USER.OVERVIEW",url:[e],activatedRegex:"".concat(i,"$")}),n.push({label:"MENU_ITEMS.ADMIN.ORGANIZATIONS",url:["".concat(e,"/organizations")],activatedRegex:"".concat(i,"/organizations")}),n.push({label:"MENU_ITEMS.ADMIN.GROUPS",url:["".concat(e,"/groups")],activatedRegex:"".concat(i,"/groups")}),n.push({label:"MENU_ITEMS.USER.ACCOUNTS",url:["".concat(e,"/accounts")],activatedRegex:"".concat(i,"/accounts")}),n.push({label:"MENU_ITEMS.USER.IDENTITIES",url:["".concat(e,"/identities")],activatedRegex:"".concat(i,"/identities")}),n.push({label:"MENU_ITEMS.USER.FACILITIES",url:["".concat(e,"/facilities")],activatedRegex:"".concat(i,"/facilities")}),n.push({label:"MENU_ITEMS.USER.RESOURCES",url:["".concat(e,"/resources")],activatedRegex:"".concat(i,"/resources")}),n.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:["".concat(e,"/attributes")],activatedRegex:"".concat(i,"/attributes")}),n.push({label:"MENU_ITEMS.USER.ROLES",url:["".concat(e,"/roles")],activatedRegex:"^".concat(e,"/roles")}),n.push(t.serviceUser?{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:["".concat(e,"/associated-users")],activatedRegex:"^".concat(e,"/associated-users")}:{label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",url:["".concat(e,"/service-identities")],activatedRegex:"^".concat(e,"/service-identities")}),n}},{key:"getMemberLinks",value:function(t,e){var i=[{label:"MENU_ITEMS.MEMBER.OVERVIEW",url:["/organizations/".concat(t.voId,"/members/").concat(t.id)],activatedRegex:"/organizations/\\d+/members/\\d+$"}];return this.authResolver.isAuthorized("getMemberGroups_Member_policy",[e])&&i.push({label:"MENU_ITEMS.MEMBER.GROUPS",url:["//organizations/".concat(t.voId,"/members/").concat(t.id,"/groups")],activatedRegex:"/organizations/\\d+/members/\\d+/groups"}),this.authResolver.isAuthorized("vo-getApplicationsForMember_Group_Member_policy",[e])&&i.push({label:"MENU_ITEMS.MEMBER.APPLICATIONS",url:["//organizations/".concat(t.voId,"/members/").concat(t.id,"/applications")],activatedRegex:"/organizations/\\d+/members/\\d+/applications"}),this.authResolver.isAuthorized("getAssignedRichResources_Member_policy",[e])&&i.push({label:"MENU_ITEMS.MEMBER.RESOURCES",url:["/organizations/".concat(t.voId,"/members/").concat(t.id,"/resources")],activatedRegex:"/organizations/\\d+/members/\\d+/resources"}),i.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:["/organizations/".concat(t.voId,"/members/").concat(t.id,"/attributes")],activatedRegex:"/organizations/\\d+/members/\\d+/attributes$"}),i}},{key:"getFacilityLinks",value:function(t){var e=[{label:"MENU_ITEMS.FACILITY.OVERVIEW",url:["/facilities/".concat(t.id)],activatedRegex:"/facilities/\\d+$"}];this.authResolver.isAuthorized("getAssignedRichResources_Facility_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.RESOURCES",url:["/facilities/".concat(t.id,"/resources")],activatedRegex:"/facilities/\\d+/resources$"}),this.authResolver.isAuthorized("getAssignedUsers_Facility_Service_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",url:["/facilities/".concat(t.id,"/allowed-users")],activatedRegex:"/facilities/\\d+/allowed-users"}),this.authResolver.isAuthorized("getAllowedGroups_Facility_Vo_Service_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",url:["/facilities/".concat(t.id,"/allowed-groups")],activatedRegex:"/facilities/\\d+/allowed-groups"}),this.authResolver.isAuthorized("getFacilityServicesState_Facility_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",url:["/facilities/".concat(t.id,"/services-status")],activatedRegex:"/facilities/\\d+/services-status"}),this.authResolver.isAuthorized("getAllRichDestinations_Facility_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",url:["/facilities/".concat(t.id,"/services-destinations")],activatedRegex:"facilities/\\d+/services-destinations"}),this.authResolver.isFacilityAdmin()&&e.push({label:"MENU_ITEMS.FACILITY.HOSTS",url:["/facilities/".concat(t.id,"/hosts")],activatedRegex:"facilities/\\d+/hosts"}),e.push({label:"MENU_ITEMS.FACILITY.ATTRIBUTES",url:["/facilities",t.id,"attributes"],activatedRegex:"/facilities/\\d+/attributes$"});var i=this.authResolver.isAuthorized("getBansForFacility_int_policy",[t]),n=this.authResolver.isAuthorized("getRichAdmins_Facility_List_boolean_boolean_policy",[t]),r=this.authResolver.isAuthorized("getOwners_Facility_policy",[t]),o=this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[t]);if(i||n||r||o){var a=[];r&&a.push({label:"MENU_ITEMS.FACILITY.OWNERS",url:["/facilities",t.id,"settings","owners"],activatedRegex:"/facilities/\\d+/settings/owners$"}),n&&a.push({label:"MENU_ITEMS.FACILITY.MANAGERS",url:["/facilities",t.id,"settings","managers"],activatedRegex:"/facilities/\\d+/settings/managers$"}),o&&a.push({label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",url:["/facilities/".concat(t.id,"/settings/security-teams")],activatedRegex:"facilities/\\d+/settings/security-teams"}),i&&a.push({label:"MENU_ITEMS.FACILITY.BLACKLIST",url:["facilities",t.id,"settings","blacklist"],activatedRegex:"/facilities/\\d+/settings/blacklist"}),e.push({label:"MENU_ITEMS.FACILITY.SETTINGS",url:["/facilities",t.id,"settings"],activatedRegex:"/facilities/\\d+/settings$",children:a,showChildrenRegex:"/facilities/\\d+/settings"})}return e}},{key:"getGroupLinks",value:function(t){var e=this,i=[],n=[];i.push({label:"MENU_ITEMS.GROUP.OVERVIEW",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id)],activatedRegex:"/organizations/\\d+/groups/\\d+$"}),this.authResolver.isAuthorized("getCompleteRichMembers_Group_List_boolean_policy",[t])&&i.push({label:"MENU_ITEMS.GROUP.MEMBERS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/members")],activatedRegex:"/organizations/\\d+/groups/\\d+/members$"}),this.authResolver.isAuthorized("getAllRichSubGroupsWithAttributesByNames_Group_List_policy",[t])&&"members"!==t.name&&i.push({label:"MENU_ITEMS.GROUP.SUBGROUPS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/subgroups")],activatedRegex:"/organizations/\\d+/groups/\\d+/subgroups$"}),this.authResolver.isAuthorized("getAssignedRichResources_Group_policy",[t])&&i.push({label:"MENU_ITEMS.GROUP.RESOURCES",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/resources")],activatedRegex:"/organizations/\\d+/groups/\\d+/resources$"}),this.authResolver.isAuthorized("getApplicationsForGroup_Group_List_policy",[t])&&i.push({label:"MENU_ITEMS.GROUP.APPLICATIONS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/applications")],activatedRegex:"/organizations/\\d+/groups/\\d+/applications$"}),i.push({label:"MENU_ITEMS.GROUP.ATTRIBUTES",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/attributes")],activatedRegex:"/organizations/\\d+/groups/\\d+/attributes$"});var r=this.guiAuthResolver.isAuthorized("getGroupMembersCount_Group_policy",[t]),o=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByVoStatus_Group_policy",[t]),a=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByGroupStatus_Group_policy",[t]);return r&&o&&a&&i.push({label:"MENU_ITEMS.GROUP.STATISTICS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/statistics")],activatedRegex:"/organizations/\\d+/groups/\\d+/statistics"}),this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(t.id,s.r.GROUP_DEF_EXPIRATION_RULES).subscribe(function(){n.push({label:"MENU_ITEMS.GROUP.EXPIRATION",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/settings/expiration")],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/expiration$"})},function(t){"HttpErrorResponse"!==t.name&&e.notificator.showRPCError(t)}),this.authResolver.isManagerPagePrivileged(t)&&n.push({label:"MENU_ITEMS.GROUP.MANAGERS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/settings/managers")],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/managers$"}),this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[t])&&n.push({label:"MENU_ITEMS.GROUP.APPLICATION_FORM",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/settings/applicationForm")],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/applicationForm$"}),this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[t])&&n.push({label:"MENU_ITEMS.GROUP.NOTIFICATIONS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/settings/notifications")],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/notifications$"}),this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[t])&&n.push({label:"MENU_ITEMS.GROUP.RELATIONS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/settings/relations")],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/relations$"}),this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[t])&&n.push({label:"MENU_ITEMS.GROUP.EXTSOURCES",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/settings/extsources")],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/extsources$"}),0!==n.length&&i.push({label:"MENU_ITEMS.GROUP.SETTINGS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/settings")],activatedRegex:"/organizations/\\d+/groups/\\d+/settings$",children:n,showChildrenRegex:"/organizations/\\d+/groups/\\d+/settings"}),i}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(u.sK),c.LFG(n.x4),c.LFG(n.d6),c.LFG(n.F5),c.LFG(r.H8),c.LFG(n.V6),c.LFG(n.x4))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}()},24081:function(t,e,i){"use strict";i.d(e,{V:function(){return y}});var n=i(61601),r=i(75585),o=i(68416),a=i(17),s=i(31572),c=i(48958);function u(t,e){if(1&t&&(s.TgZ(0,"div",9),s._UZ(1,"app-side-menu-item",10),s.qZA()),2&t){var i=e.$implicit,n=e.index,r=s.oxw();s.Q6J("@rollInOut",void 0),s.xp6(1),s.Q6J("sideNav",r.sideNav)("item",i)("index",n)}}function l(t,e){if(1&t&&(s.TgZ(0,"div",9),s._UZ(1,"app-side-menu-item",11),s.qZA()),2&t){var i=e.$implicit,n=e.index,r=s.oxw();s.Q6J("@rollInOut",void 0),s.xp6(1),s.Q6J("sideNav",r.sideNav)("item",i)("index",n)("showLinks",n===r.accessItems.length-1)}}function h(t,e){if(1&t&&s._UZ(0,"app-side-menu-root-item",2),2&t){var i=s.oxw();s.Q6J("id","facilities-item-btn")("sideNav",i.sideNav)("item",i.facilityItem)}}function d(t,e){if(1&t&&(s.TgZ(0,"div",9),s._UZ(1,"app-side-menu-item",11),s.qZA()),2&t){var i=e.$implicit,n=e.index,r=s.oxw(2);s.Q6J("@rollInOut",void 0),s.xp6(1),s.Q6J("sideNav",r.sideNav)("item",i)("index",n)("showLinks",n===r.facilityItems.length-1)}}function f(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,d,2,5,"div",3),s.qZA()),2&t){var i=s.oxw();s.xp6(1),s.Q6J("ngForOf",i.facilityItems)}}function p(t,e){if(1&t&&(s.TgZ(0,"div",9),s._UZ(1,"app-side-menu-item",11),s.qZA()),2&t){var i=e.$implicit,n=e.index,r=s.oxw();s.Q6J("@rollInOut",void 0),s.xp6(1),s.Q6J("sideNav",r.sideNav)("item",i)("index",n)("showLinks",n===r.userItems.length-1)}}function g(t,e){if(1&t&&s._UZ(0,"app-side-menu-root-item",7),2&t){var i=s.oxw();s.Q6J("id","admin-item-btn")("sideNav",i.sideNav)("showOpen",i.adminItemOpened)("item",i.adminItem)}}function m(t,e){if(1&t&&(s.TgZ(0,"div",9),s._UZ(1,"app-side-menu-item",11),s.qZA()),2&t){var i=e.$implicit,n=e.index,r=s.oxw(2);s.Q6J("@rollInOut",void 0),s.xp6(1),s.Q6J("sideNav",r.sideNav)("item",i)("index",n)("showLinks",!0)}}function v(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,m,2,5,"div",3),s.qZA()),2&t){var i=s.oxw();s.xp6(1),s.Q6J("ngForOf",i.adminItems)}}var y=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.sideMenuService=e,this.sideMenuItemService=i,this.authResolver=n,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}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.mobileView=window.innerWidth<=n.y.minWidth,this.mobileView?this.sideNav.close():this.sideNav.open(),this.sideMenuService.facilityItemsChange.subscribe(function(e){t.setFacilityItems(e)}),this.sideMenuService.accessItemsChange.subscribe(function(e){t.setAccessItems(e)}),this.sideMenuService.adminItemsChange.subscribe(function(e){t.setAdminItems(e)}),this.sideMenuService.userItemsChange.subscribe(function(e){t.setUserItems(e)}),this.sideMenuService.homeItemsChange.subscribe(function(e){t.setHomeItems(e)}),this.sideMenuService.resetChange.subscribe(function(){t.reset()})}},{key:"reset",value:function(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.adminItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}},{key:"resetExceptHome",value:function(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.adminItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}},{key:"resetExceptFacility",value:function(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.adminItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.userItems,[])}},{key:"resetExceptAccess",value:function(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.adminItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}},{key:"resetExceptAdmin",value:function(){this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}},{key:"resetExceptUser",value:function(){this.adminItemOpened=!1,this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.adminItems,[])}},{key:"setHomeItems",value:function(t){this.resetExceptHome(),this.setNewItems(this.homeItems,t)}},{key:"setFacilityItems",value:function(t){this.resetExceptFacility(),this.setNewItems(this.facilityItems,t)}},{key:"setAccessItems",value:function(t){this.resetExceptAccess(),this.setNewItems(this.accessItems,t)}},{key:"setUserItems",value:function(t){this.userItemOpened=0===t.length,this.resetExceptUser(),this.setNewItems(this.userItems,t)}},{key:"setAdminItems",value:function(t){this.adminItemOpened=0===t.length,this.resetExceptAdmin(),this.setNewItems(this.adminItems,t)}},{key:"setNewItems",value:function(t,e){for(var i=t.length>e.length?t.length:e.length,n=0;nt.length-1)t.push(e[n]);else{if(n>e.length-1){for(var r=t.length,o=0;o0),n.Q6J("cdkDragData",i)}}function mt(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"div",4),n.TgZ(1,"div",5),n.TgZ(2,"div",6),n.TgZ(3,"table",7,8),n.NdJ("cdkDropListDropped",function(t){return n.CHM(i),n.oxw().drop(t)}),n.ynx(5,9),n.YNc(6,C,1,0,"th",10),n.YNc(7,T,4,0,"td",11),n.BQk(),n.ynx(8,12),n.YNc(9,E,3,3,"th",10),n.YNc(10,S,2,1,"td",11),n.BQk(),n.ynx(11,13),n.YNc(12,I,3,3,"th",10),n.YNc(13,R,3,3,"td",11),n.BQk(),n.ynx(14,14),n.YNc(15,x,3,3,"th",15),n.YNc(16,P,2,1,"td",16),n.BQk(),n.ynx(17,17),n.YNc(18,D,3,3,"th",15),n.YNc(19,L,2,1,"td",16),n.BQk(),n.ynx(20,18),n.YNc(21,N,3,3,"th",10),n.YNc(22,it,15,14,"td",11),n.BQk(),n.ynx(23,19),n.YNc(24,nt,1,0,"th",10),n.YNc(25,ot,2,1,"td",11),n.BQk(),n.ynx(26,20),n.YNc(27,at,1,0,"th",10),n.YNc(28,ut,3,2,"td",11),n.BQk(),n.ynx(29,21),n.YNc(30,lt,1,0,"th",10),n.YNc(31,ft,3,2,"td",11),n.BQk(),n.YNc(32,pt,1,0,"tr",22),n.YNc(33,gt,1,7,"tr",23),n.qZA(),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=n.oxw();n.xp6(3),n.Q6J("cdkDropListDisabled",r.dragDisabled)("dataSource",r.dataSource),n.xp6(29),n.Q6J("matHeaderRowDef",r.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",r.displayedColumns)}}function vt(t,e){1&t&&(n.TgZ(0,"app-alert",98),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM"),"\n"))}var yt=function(){var t=function(){function t(e,i,r,o){_classCallCheck(this,t),this.dialog=e,this.notificator=i,this.router=r,this.translate=o,this.applicationFormItems=[],this.displayedColumns=["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"],this.applicationFormItemsChange=new n.vpe,this.itemsChanged=[],this.dataSource=this.applicationFormItems,this.mapForCombobox=new Map,this.dragDisabled=!0}return _createClass(t,[{key:"ngOnInit",value:function(){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")}},{key:"ngOnChanges",value:function(){this.dataSource=this.applicationFormItems}},{key:"disabledHiddenDependency",value:function(t,e,i){var n="";if("IF_EMPTY"===e||"IF_PREFILLED"===e){var r=null===i?"":this.applicationFormItems.find(function(t){return t.id===i}).shortname;n="IF_EMPTY"===e?"(".concat(this.ifEmpty," ").concat(r,")"):"(".concat(this.ifPrefilled," ").concat(r,")")}return n}},{key:"disabledTooltip",value:function(t){var e;switch(t.disabled){case"ALWAYS":return this.alwaysDisabled;case"IF_EMPTY":return e=null===t.disabledDependencyItemId?"":this.applicationFormItems.find(function(e){return e.id===t.disabledDependencyItemId}).shortname,"".concat(this.isDisabledIf," ").concat(e," ").concat(this.isEmpty);case"IF_PREFILLED":return e=null===t.disabledDependencyItemId?"":this.applicationFormItems.find(function(e){return e.id===t.disabledDependencyItemId}).shortname,"".concat(this.isDisabledIf," ").concat(e," ").concat(this.isPrefilled)}}},{key:"hiddenTooltip",value:function(t){var e;switch(t.hidden){case"ALWAYS":return this.alwaysHidden;case"IF_EMPTY":return e=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(function(e){return e.id===t.hiddenDependencyItemId}).shortname,"".concat(this.isHiddenIf," ").concat(e," ").concat(this.isEmpty);case"IF_PREFILLED":return e=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(function(e){return e.id===t.hiddenDependencyItemId}).shortname,"".concat(this.isHiddenIf," ").concat(e," ").concat(this.isPrefilled)}}},{key:"edit",value:function(t){var e=this,i=(0,h.kZ)();i.width="600px",i.height="600px",i.data={voId:this.applicationForm.vo.id,group:this.applicationForm.group,applicationFormItem:t,theme:this.theme,allItems:this.applicationFormItems},this.dialog.open(l._,i).afterClosed().subscribe(function(i){i&&(e.itemsChanged.push(t.id),e.applicationFormItemsChange.emit())})}},{key:"delete",value:function(t){var e=this,i=(0,h.kZ)();i.width="500px",this.dialog.open(c,i).afterClosed().subscribe(function(i){i&&(t.forDelete=!0,0===t.id&&(e.applicationFormItems.splice(e.applicationFormItems.indexOf(t),1),e.table.renderRows()),e.applicationFormItemsChange.emit())})}},{key:"drop",value:function(t){this.dragDisabled=!0;var e=this.applicationFormItems.indexOf(t.item.data);(0,r.bA)(this.applicationFormItems,e,t.currentIndex),this.itemsChanged.push(this.applicationFormItems[t.currentIndex].id),this.applicationFormItemsChange.emit(),this.table.renderRows()}},{key:"getLocalizedOptions",value:function(t){if(t.i18n[this.translate.getDefaultLang()]){var e=t.i18n[this.translate.getDefaultLang()].options;if(null!==e&&""!==e){var i,n=[],r=_createForOfIteratorHelper(e.split("|"));try{for(r.s();!(i=r.n()).done;){var o=i.value;n.push(o.split("#")[1])}}catch(a){r.e(a)}finally{r.f()}return n}}return[]}},{key:"getLocalizedLabel",value:function(t){return t.i18n[this.translate.getDefaultLang()]?t.i18n[this.translate.getDefaultLang()].label:t.shortname}},{key:"restore",value:function(t){t.forDelete=!1}},{key:"openManagingGroups",value:function(){this.router.navigate(["/organizations",this.applicationForm.vo.id,"settings","applicationForm","manageGroups"])}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(o.uw),n.Y36(u.V6),n.Y36(d.F0),n.Y36(s.sK))},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-application-form-list"]],viewQuery:function(t,e){var i;(1&t&&n.Gf(A,5),2&t)&&(n.iGM(i=n.CRH())&&(e.table=i.first))},inputs:{loading:"loading",applicationForm:"applicationForm",applicationFormItems:"applicationFormItems",theme:"theme",displayedColumns:"displayedColumns"},outputs:{applicationFormItemsChange:"applicationFormItemsChange"},features:[n.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"],["class","font-italic disabled",4,"ngIf"],["type","text"],[1,"font-italic","disabled"],["disabled",""],["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"],["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(t,e){1&t&&(n.YNc(0,k,1,0,"mat-spinner",0),n.YNc(1,mt,34,4,"div",1),n.YNc(2,vt,3,3,"app-alert",2)),2&t&&(n.Q6J("ngIf",e.loading),n.xp6(1),n.Q6J("ngIf",0!==e.applicationFormItems.length&&!e.loading),n.xp6(1),n.Q6J("ngIf",0===e.applicationFormItems.length&&!e.loading))},directives:[f.O5,p.$g,g.BZ,r.Wj,g.w1,g.fO,g.Dz,g.as,g.nj,g.ge,g.ev,a.lW,m.Hw,v.gM,y._Y,y.JL,y.F,f.sg,y.YN,y.Kr,y.EJ,y.JJ,y.On,g.XQ,g.Gk,r.Zt,_.w],pipes:[s.X$,b.c,w.R],styles:[".cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%], .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}"]}),t}()},29851:function(t,e,i){"use strict";i.d(e,{w:function(){return tt}});var n=i(65249),r=i(67033),o=i(84140),a=i(68416),s=i(31572),c=i(57629),u=i(82819),l=i(61511),h=i(84534),d=i(39571),f=i(67806),p=i(48160),g=i(22196);function m(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_ID")))}function v(t,e){if(1&t&&(s.TgZ(0,"td",27),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(i.id)}}function y(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_VO_ID")))}function _(t,e){if(1&t&&(s.TgZ(0,"td",27),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(i.vo.id)}}function b(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_VO_NAME")))}function w(t,e){if(1&t&&(s.TgZ(0,"td",27),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(i.vo.name)}}function A(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_GROUP_ID")))}function k(t,e){if(1&t&&(s.TgZ(0,"td",27),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(i.group?i.group.id:"")}}function C(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_GROUP_NAME")))}function T(t,e){if(1&t&&(s.TgZ(0,"td",27),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(i.group?i.group.name:"")}}function E(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_TYPE")))}function S(t,e){if(1&t&&(s.TgZ(0,"td",28),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(i.type)}}function I(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_STATE")))}function R(t,e){if(1&t&&(s.TgZ(0,"td",28),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(i.state)}}function x(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_EXTSOURCENAME")))}function O(t,e){if(1&t&&(s.TgZ(0,"td",28),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(i.extSourceName)}}function P(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_EXTSOURCETYPE")))}function D(t,e){if(1&t&&(s.TgZ(0,"td",28),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(i.extSourceType)}}function M(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_USER")))}function L(t,e){if(1&t&&(s.TgZ(0,"td",28),s._uU(1),s.ALo(2,"userFullName"),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.hij(" ",i.user?s.lcZ(2,1,i.user):"null"," ")}}function N(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_CREATED_BY")))}function z(t,e){if(1&t&&(s.TgZ(0,"td",28),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.hij(" ",i.createdBy.slice(i.createdBy.lastIndexOf("=")+1,i.createdBy.length)," ")}}function Z(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_CREATED_DATE")))}function B(t,e){if(1&t&&(s.TgZ(0,"td",28),s._uU(1),s.ALo(2,"date"),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(s.xi3(2,1,i.createdAt,"d.M.y"))}}function F(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_MODIFIED_BY")))}function q(t,e){if(1&t&&(s.TgZ(0,"td",28),s._uU(1),s.qZA()),2&t){var i=e.$implicit,n=s.oxw();s.xp6(1),s.Oqu(n.getFriendlyName(i.modifiedBy))}}function H(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_MODIFIED_AT")))}function U(t,e){if(1&t&&(s.TgZ(0,"td",28),s._uU(1),s.ALo(2,"date"),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(s.xi3(2,1,i.modifiedAt,"d.M.y"))}}function G(t,e){if(1&t&&(s.TgZ(0,"th",26),s._uU(1),s.qZA()),2&t){var i=s.oxw().$implicit;s.xp6(1),s.Oqu(i)}}function j(t,e){if(1&t&&(s.TgZ(0,"td",28),s._uU(1),s.qZA()),2&t){var i=e.$implicit,n=s.oxw().$implicit;s.xp6(1),s.Oqu(i[n])}}function Y(t,e){1&t&&(s.ynx(0,29),s.YNc(1,G,2,1,"th",4),s.YNc(2,j,2,1,"td",11),s.BQk()),2&t&&s.Q6J("matColumnDef",e.$implicit)}function K(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_FEDINFO")))}function V(t,e){if(1&t&&(s.TgZ(0,"td",28),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(i.fedInfo)}}function J(t,e){1&t&&s._UZ(0,"tr",30)}function Q(t,e){if(1&t&&s._UZ(0,"tr",31),2&t){var i=e.$implicit,n=s.oxw();s.ekj("cursor-pointer",!n.disableRouting),s.Q6J("perunWebAppsMiddleClickRouterLink",n.selectApplication(i))("routerLink",n.selectApplication(i))}}function W(t,e){1&t&&(s.TgZ(0,"app-alert",32),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"VO_DETAIL.APPLICATION.NO_APPLICATION_FOUND"),"\n"))}function X(t,e){1&t&&(s.TgZ(0,"app-alert",32),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function $(t,e){1&t&&s._UZ(0,"mat-spinner",33)}var tt=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.router=e,this.authResolver=i,this.registrarManager=n,this.applications=[],this.disableRouting=!1,this.displayedColumns=["id","voId","voName","groupId","groupName","type","state","extSourceName","extSourceType","user","createdBy","createdAt","modifiedBy","modifiedAt","fedInfo"],this.loading=!1,this.table=[],this.addedColumns=new Set,this.pageSizeOptions=o.f7}return _createClass(t,[{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.loading=!0,this.table=[],this.initialize(),this.getApplicationsData(0)}},{key:"getExportDataForColumn",value:function(t,e){var i,n,r,a;switch(e){case"id":return t.id.toString();case"voId":return t.vo.id.toString();case"voName":return t.vo.name;case"groupId":return null!==(n=null===(i=t.group)||void 0===i?void 0:i.id.toString())&&void 0!==n?n:"";case"groupName":return null!==(a=null===(r=t.group)||void 0===r?void 0:r.name)&&void 0!==a?a:"";case"type":return t.type;case"fedInfo":return t.fedInfo;case"state":return t.state;case"extSourceName":return t.extSourceName;case"extSourceType":return t.extSourceType;case"user":return t.user?(0,o.bD)(t.user):"";case"createdBy":return t.createdBy;case"createdAt":return t.createdAt;case"modifiedBy":return t.modifiedBy;case"modifiedAt":return t.modifiedAt;default:return t[e]}}},{key:"exportData",value:function(t){(0,o.O6)((0,o.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}},{key:"getApplicationsData",value:function(t){var e=this;if(this.applications.length!==t){var i=this.applications[t],n={};n.id=i.id,n.vo=i.vo,n.group=i.group,n.type=i.type,n.fedInfo=i.fedInfo,n.state=i.state,n.extSourceName=i.extSourceName,n.extSourceType=i.extSourceType,n.extSourceLoa=i.extSourceLoa,n.user=i.user,n.createdBy=i.createdBy,n.createdAt=i.createdAt,n.modifiedBy=i.modifiedBy,n.modifiedAt=i.modifiedAt,this.registrarManager.getApplicationDataById(i.id).subscribe(function(i){var r,o=_createForOfIteratorHelper(i);try{for(o.s();!(r=o.n()).done;){var a=r.value;null!==a.formItem.i18n.en.label&&0!==a.formItem.i18n.en.label.length?(n[a.formItem.i18n.en.label]=a.value,e.addedColumns.add(a.formItem.i18n.en.label)):(n[a.shortname]=a.value,e.addedColumns.add(a.shortname))}}catch(s){o.e(s)}finally{o.f()}e.table.push(n),e.getApplicationsData(t+1)})}else this.initialize()}},{key:"initialize",value:function(){var t,e=_createForOfIteratorHelper(this.addedColumns);try{for(e.s();!(t=e.n()).done;){var i=t.value;this.displayedColumns.push(i)}}catch(n){e.e(n)}finally{e.f()}this.dataSource=new r.by(this.table),this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue.trim().toLowerCase(),this.dataSource.paginator&&this.dataSource.paginator.firstPage(),this.loading=!1}},{key:"getFriendlyName",value:function(t){var e=t.lastIndexOf("/CN=");if(-1!==e){var i=t.slice(e+4,t.length).replace("/unstructuredName="," ");return-1!==i.lastIndexOf("\\")?t.slice(t.lastIndexOf("=")+1,t.length):i}return t}},{key:"selectApplication",value:function(t){return this.disableRouting?null:this.group?["/organizations",t.vo.id,"groups",this.group.id,"applications",t.id]:this.member?["/organizations",t.vo.id,"members",this.member.id,"applications",t.id]:["/organizations",t.vo.id,"applications",t.id]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(c.F0),s.Y36(a.x4),s.Y36(n.tk))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-perun-web-apps-application-list-details"]],viewQuery:function(t,e){var i;(1&t&&s.Gf(o.l9,7),2&t)&&(s.iGM(i=s.CRH())&&(e.child=i.first))},inputs:{applications:"applications",group:"group",member:"member",filterValue:"filterValue",tableId:"tableId",disableRouting:"disableRouting"},features:[s.TTD],decls:54,vars:13,consts:[[1,"card","mt-2","w-100",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","voId"],["matColumnDef","voName"],["matColumnDef","groupId"],["matColumnDef","groupName"],["matColumnDef","type"],["mat-cell","",4,"matCellDef"],["matColumnDef","state"],["matColumnDef","extSourceName"],["matColumnDef","extSourceType"],["matColumnDef","user"],["matColumnDef","createdBy"],["matColumnDef","createdAt"],["matColumnDef","modifiedBy"],["matColumnDef","modifiedAt"],[3,"matColumnDef",4,"ngFor","ngForOf"],["matColumnDef","fedInfo"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"matColumnDef"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,m,3,3,"th",4),s.YNc(5,v,2,1,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,y,3,3,"th",4),s.YNc(8,_,2,1,"td",5),s.BQk(),s.ynx(9,7),s.YNc(10,b,3,3,"th",4),s.YNc(11,w,2,1,"td",5),s.BQk(),s.ynx(12,8),s.YNc(13,A,3,3,"th",4),s.YNc(14,k,2,1,"td",5),s.BQk(),s.ynx(15,9),s.YNc(16,C,3,3,"th",4),s.YNc(17,T,2,1,"td",5),s.BQk(),s.ynx(18,10),s.YNc(19,E,3,3,"th",4),s.YNc(20,S,2,1,"td",11),s.BQk(),s.ynx(21,12),s.YNc(22,I,3,3,"th",4),s.YNc(23,R,2,1,"td",11),s.BQk(),s.ynx(24,13),s.YNc(25,x,3,3,"th",4),s.YNc(26,O,2,1,"td",11),s.BQk(),s.ynx(27,14),s.YNc(28,P,3,3,"th",4),s.YNc(29,D,2,1,"td",11),s.BQk(),s.ynx(30,15),s.YNc(31,M,3,3,"th",4),s.YNc(32,L,3,3,"td",11),s.BQk(),s.ynx(33,16),s.YNc(34,N,3,3,"th",4),s.YNc(35,z,2,1,"td",11),s.BQk(),s.ynx(36,17),s.YNc(37,Z,3,3,"th",4),s.YNc(38,B,3,4,"td",11),s.BQk(),s.ynx(39,18),s.YNc(40,F,3,3,"th",4),s.YNc(41,q,2,1,"td",11),s.BQk(),s.ynx(42,19),s.YNc(43,H,3,3,"th",4),s.YNc(44,U,3,4,"td",11),s.BQk(),s.YNc(45,Y,3,1,"ng-container",20),s.ynx(46,21),s.YNc(47,K,3,3,"th",4),s.YNc(48,V,2,1,"td",11),s.BQk(),s.YNc(49,J,1,0,"tr",22),s.YNc(50,Q,1,4,"tr",23),s.qZA(),s.qZA(),s.qZA(),s.YNc(51,W,3,3,"app-alert",24),s.YNc(52,X,3,3,"app-alert",24),s.YNc(53,$,1,0,"mat-spinner",25)),2&t&&(s.ekj("hide-table",e.loading),s.Q6J("hidden",0===e.table.length||!!e.dataSource&&0===e.dataSource.filteredData.length),s.xp6(1),s.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),s.xp6(1),s.Q6J("dataSource",e.dataSource),s.xp6(43),s.Q6J("ngForOf",e.addedColumns),s.xp6(4),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===e.dataSource.data.length),s.xp6(1),s.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.table.length),s.xp6(1),s.Q6J("ngIf",e.loading))},directives:[u.l,r.BZ,r.w1,r.fO,r.Dz,l.sg,r.as,r.nj,l.O5,r.ge,r.ev,r.XQ,r.Gk,h.YH,c.rH,d.w,f.$g],pipes:[p.X$,g.d,l.uU],styles:[".mat-row[_ngcontent-%COMP%]{height:auto}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%], mat-cell[_ngcontent-%COMP%], mat-header-cell[_ngcontent-%COMP%]{padding:8px!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t}()},21548:function(t,e,i){"use strict";i.d(e,{M:function(){return U}});var n=i(58623),r=i(67033),o=i(84140),a=i(68416),s=i(31572),c=i(82819),u=i(61511),l=i(43691),h=i(36922),d=i(84534),f=i(57629),p=i(39571),g=i(48160),m=i(84650),v=i(22196);function y(t,e){1&t&&(s.TgZ(0,"th",16),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_ID")))}function _(t,e){if(1&t&&(s.TgZ(0,"td",17),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(i.id)}}function b(t,e){1&t&&(s.TgZ(0,"th",16),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_CREATED_DATE")))}function w(t,e){if(1&t&&(s.TgZ(0,"td",18),s._uU(1),s.ALo(2,"date"),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(s.xi3(2,1,i.createdAt,"d.M.y"))}}function A(t,e){1&t&&(s.TgZ(0,"th",16),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_TYPE")))}function k(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"mat-icon",20),s._uU(2,"arrow_right_alt"),s.qZA(),s.qZA())}function C(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"mat-icon",21),s._uU(2,"restore"),s.qZA(),s.qZA())}function T(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"mat-icon",22),s._uU(2,"nat"),s.qZA(),s.qZA())}function E(t,e){if(1&t&&(s.TgZ(0,"td",18),s.YNc(1,k,3,0,"div",19),s.YNc(2,C,3,0,"div",19),s.YNc(3,T,3,0,"div",19),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Q6J("ngIf","INITIAL"===i.type),s.xp6(1),s.Q6J("ngIf","EXTENSION"===i.type),s.xp6(1),s.Q6J("ngIf","EMBEDDED"===i.type)}}function S(t,e){1&t&&(s.TgZ(0,"th",16),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_STATE")))}function I(t,e){if(1&t&&(s.TgZ(0,"td",18),s._UZ(1,"span",23),s.ALo(2,"applicationState"),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Q6J("outerHTML",s.lcZ(2,1,i.state),s.oJD)}}function R(t,e){1&t&&(s.TgZ(0,"th",16),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_SUBMITTED_BY")))}function x(t,e){if(1&t&&(s.TgZ(0,"div"),s._uU(1),s.qZA()),2&t){var i=s.oxw().$implicit;s.xp6(1),s.hij(" ",i.createdBy.slice(i.createdBy.lastIndexOf("=")+1,i.createdBy.length)," ")}}function O(t,e){if(1&t&&(s._uU(0),s.ALo(1,"userFullName")),2&t){var i=s.oxw().$implicit;s.hij(" ",s.lcZ(1,1,i.user)," ")}}function P(t,e){if(1&t&&(s.TgZ(0,"td",18),s.YNc(1,x,2,1,"div",24),s.YNc(2,O,2,3,"ng-template",null,25,s.W1O),s.qZA()),2&t){var i=e.$implicit,n=s.MAs(3);s.xp6(1),s.Q6J("ngIf",null===i.user)("ngIfElse",n)}}function D(t,e){1&t&&(s.TgZ(0,"th",16),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_GROUP_NAME")))}function M(t,e){1&t&&(s.TgZ(0,"div",28),s._uU(1," - "),s.qZA())}function L(t,e){if(1&t&&s._uU(0),2&t){var i=s.oxw().$implicit;s.hij(" ",i.group.name," ")}}function N(t,e){if(1&t&&(s.TgZ(0,"td",18),s.YNc(1,M,2,0,"div",26),s.YNc(2,L,1,1,"ng-template",null,27,s.W1O),s.qZA()),2&t){var i=e.$implicit,n=s.MAs(3);s.xp6(1),s.Q6J("ngIf",null===i.group)("ngIfElse",n)}}function z(t,e){1&t&&(s.TgZ(0,"th",16),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_MODIFIED_BY")))}function Z(t,e){if(1&t&&(s.TgZ(0,"td",18),s._uU(1),s.qZA()),2&t){var i=e.$implicit,n=s.oxw();s.xp6(1),s.Oqu(n.getFriendlyName(i.modifiedBy))}}function B(t,e){1&t&&s._UZ(0,"tr",29)}function F(t,e){if(1&t&&s._UZ(0,"tr",30),2&t){var i=e.$implicit,n=s.oxw();s.ekj("cursor-pointer",!n.disableRouting),s.Q6J("perunWebAppsMiddleClickRouterLink",n.selectApplication(i))("routerLink",n.selectApplication(i))}}function q(t,e){1&t&&(s.TgZ(0,"app-alert",31),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"VO_DETAIL.APPLICATION.NO_APPLICATION_FOUND"),"\n"))}function H(t,e){1&t&&(s.TgZ(0,"app-alert",31),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}var U=function(){var t=function(){function t(e){_classCallCheck(this,t),this.authResolver=e,this.applications=[],this.displayedColumns=[],this.disableRouting=!1,this.pageSizeOptions=o.f7}return _createClass(t,[{key:"matSort",set:function(t){this.sort=t}},{key:"ngAfterViewInit",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t}))}},{key:"ngOnChanges",value:function(){this.setDataSource()}},{key:"getSortDataForColumn",value:function(t,e,i){var n;switch(e){case"id":return t.id.toString();case"createdAt":return t.createdAt;case"type":return t.type;case"state":return t.state;case"user":return t.user?t.user.lastName?t.user.lastName:null!==(n=t.user.firstName)&&void 0!==n?n:"":t.createdBy.slice(t.createdBy.lastIndexOf("=")+1,t.createdBy.length);case"group":return t.group?t.group.name:"";case"modifiedBy":return i.parseModifiedBy(t);default:return""}}},{key:"getDataForColumn",value:function(t,e,i){switch(e){case"id":return t.id.toString();case"createdAt":return t.createdAt;case"type":return t.type;case"state":return t.state;case"user":return t.user?(0,o.bD)(t.user):t.createdBy.slice(t.createdBy.lastIndexOf("=")+1,t.createdBy.length);case"group":return t.group?t.group.name:"";case"modifiedBy":return i.parseModifiedBy(t);default:return""}}},{key:"parseModifiedBy",value:function(t){var e=t.modifiedBy.lastIndexOf("/CN=");if(-1!==e){var i=t.modifiedBy.slice(e+4,t.modifiedBy.length).replace("/unstructuredName="," ").toLowerCase();return-1!==i.lastIndexOf("\\")?t.modifiedBy.slice(t.modifiedBy.lastIndexOf("=")+1,t.modifiedBy.length):i}return t.modifiedBy.toLowerCase()}},{key:"exportData",value:function(t){(0,o.O6)((0,o.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource||(this.dataSource=new r.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=function(e,i){return(0,o.Sd)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return(0,o.pR)(e,i,t.getSortDataForColumn,t)}),this.dataSource.filter=this.filterValue,this.dataSource.data=this.applications}},{key:"getFriendlyName",value:function(t){var e=t.lastIndexOf("/CN=");if(-1!==e){var i=t.slice(e+4,t.length).replace("/unstructuredName="," ");return-1!==i.lastIndexOf("\\")?t.slice(t.lastIndexOf("=")+1,t.length):i}return t}},{key:"selectApplication",value:function(t){return this.disableRouting?null:this.group?["/organizations",t.vo.id,"groups",this.group.id,"applications",t.id]:this.member?["/organizations",t.vo.id,"members",this.member.id,"applications",t.id]:["/organizations",t.vo.id,"applications",t.id]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(a.x4))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-applications-list"]],viewQuery:function(t,e){var i;(1&t&&(s.Gf(n.YE,7),s.Gf(o.l9,7)),2&t)&&(s.iGM(i=s.CRH())&&(e.matSort=i.first),s.iGM(i=s.CRH())&&(e.child=i.first))},inputs:{applications:"applications",group:"group",member:"member",displayedColumns:"displayedColumns",filterValue:"filterValue",tableId:"tableId",disableRouting:"disableRouting"},features:[s.TTD],decls:28,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportData"],["mat-table","","matSort","","matSortActive","createdAt","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","createdAt"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","state"],["matColumnDef","user"],["matColumnDef","group"],["matColumnDef","modifiedBy"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[4,"ngIf"],["matTooltip","Initial","matTooltipPosition","above"],["matTooltip","Extension","matTooltipPosition","above"],["matTooltip","Embedded","matTooltipPosition","above"],[3,"outerHTML"],[4,"ngIf","ngIfElse"],["name",""],["class","font-italic text-muted",4,"ngIf","ngIfElse"],["groupName",""],[1,"font-italic","text-muted"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,y,3,3,"th",4),s.YNc(5,_,2,1,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,b,3,3,"th",4),s.YNc(8,w,3,4,"td",7),s.BQk(),s.ynx(9,8),s.YNc(10,A,3,3,"th",4),s.YNc(11,E,4,3,"td",7),s.BQk(),s.ynx(12,9),s.YNc(13,S,3,3,"th",4),s.YNc(14,I,3,3,"td",7),s.BQk(),s.ynx(15,10),s.YNc(16,R,3,3,"th",4),s.YNc(17,P,4,2,"td",7),s.BQk(),s.ynx(18,11),s.YNc(19,D,3,3,"th",4),s.YNc(20,N,4,2,"td",7),s.BQk(),s.ynx(21,12),s.YNc(22,z,3,3,"th",4),s.YNc(23,Z,2,1,"td",7),s.BQk(),s.YNc(24,B,1,0,"tr",13),s.YNc(25,F,1,4,"tr",14),s.qZA(),s.qZA(),s.qZA(),s.YNc(26,q,3,3,"app-alert",15),s.YNc(27,H,3,3,"app-alert",15)),2&t&&(s.Q6J("hidden",0===e.applications.length||!e.dataSource||0===e.dataSource.filteredData.length),s.xp6(1),s.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("tableId",e.tableId),s.xp6(1),s.Q6J("dataSource",e.dataSource),s.xp6(22),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===e.applications.length),s.xp6(1),s.Q6J("ngIf",!!e.dataSource&&0===e.dataSource.filteredData.length&&0!==e.applications.length))},directives:[c.l,r.BZ,n.YE,r.w1,r.fO,r.Dz,r.as,r.nj,u.O5,r.ge,n.nU,r.ev,l.Hw,h.gM,r.XQ,r.Gk,d.YH,f.rH,p.w],pipes:[g.X$,u.uU,m.h,v.d],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t}()},62284:function(t,e,i){"use strict";i.d(e,{W:function(){return E}});var n=i(65249),r=i(60611),o=i(68416),a=i(16073),s=i(61511),c=i(31572),u=i(59403),l=i(66283),h=i(4786),d=i(71522),f=i(91058),p=i(51613),g=i(15980),m=i(67806),v=i(21548),y=i(29851),_=i(48160);function b(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"button",15),c.NdJ("click",function(){return c.CHM(i),c.oxw().showAllDetails=!0}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function w(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"button",15),c.NdJ("click",function(){return c.CHM(i),c.oxw().showAllDetails=!1}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}function A(t,e){1&t&&c._UZ(0,"mat-spinner",16)}function k(t,e){if(1&t&&c._UZ(0,"app-applications-list",19),2&t){var i=c.oxw(2);c.Q6J("tableId",i.tableId)("disableRouting",!i.routeAuth)("filterValue",i.filterValue)("applications",i.applications)("displayedColumns",i.displayedColumns)("group",i.group)}}function C(t,e){if(1&t&&c._UZ(0,"app-perun-web-apps-application-list-details",20),2&t){var i=c.oxw(2);c.Q6J("tableId",i.detailTableId)("disableRouting",!i.routeAuth)("filterValue",i.filterValue)("applications",i.applications)("group",i.group)}}function T(t,e){if(1&t&&(c.TgZ(0,"div"),c.YNc(1,k,1,6,"app-applications-list",17),c.YNc(2,C,1,5,"app-perun-web-apps-application-list-details",18),c.qZA()),2&t){var i=c.oxw();c.xp6(1),c.Q6J("ngIf",!i.showAllDetails),c.xp6(1),c.Q6J("ngIf",i.showAllDetails)}}var E=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.registrarManager=e,this.guiAuthResolver=i,this.entityStorageService=n,this.state="pending",this.loading=!1,this.applications=[],this.displayedColumns=["id","createdAt","type","state","user","modifiedBy"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=r.Af,this.tableId=r.gB,this.routeAuth=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.startDate=new a.NI((0,s.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new a.NI((0,s.p6)(new Date,"yyyy-MM-dd","en-GB")),this.setData(["NEW","VERIFIED"])}},{key:"setAuth",value:function(){0!==this.applications.length&&(this.routeAuth=this.guiAuthResolver.isAuthorized("group-getApplicationById_int_policy",[this.group]))}},{key:"setData",value:function(t){var e=this;this.registrarManager.getApplicationsForGroup(this.group.id,t,(0,s.p6)(this.startDate.value,"yyyy-MM-dd","en-GB"),(0,s.p6)(this.endDate.value,"yyyy-MM-dd","en-GB")).subscribe(function(t){e.applications=t,e.setAuth(),e.loading=!1})}},{key:"select",value:function(){switch(this.loading=!0,this.state){case"approved":this.setData(["APPROVED"]);break;case"rejected":this.setData(["REJECTED"]);break;case"wfmv":this.setData(["NEW"]);break;case"submited":this.setData(["VERIFIED"]);break;case"pending":this.setData(["NEW","VERIFIED"]);break;case"all":this.setData(null)}}},{key:"yearAgo",value:function(){var t=new Date,e=t.getFullYear()-1,i=t.getMonth(),n=t.getDate();return new Date(e,i,n)}},{key:"applyFilter",value:function(t){this.filterValue=t}}]),t}();return t.id="GroupApplicationsComponent",t.\u0275fac=function(e){return new(e||t)(c.Y36(n.tk),c.Y36(o.x4),c.Y36(o.fb))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-group-applications"]],hostVars:2,hostBindings:function(t,e){2&t&&c.ekj("router-component",e.true)},decls:34,vars:32,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-stroked-button","","class","mr-2",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,"startDate","endDate","datePicker"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"tableId","disableRouting","filterValue","applications","displayedColumns","group",4,"ngIf"],[3,"tableId","disableRouting","filterValue","applications","group",4,"ngIf"],[3,"tableId","disableRouting","filterValue","applications","displayedColumns","group"],[3,"tableId","disableRouting","filterValue","applications","group"]],template:function(t,e){1&t&&(c.TgZ(0,"h1",0),c._uU(1),c.ALo(2,"translate"),c.qZA(),c.TgZ(3,"div"),c.TgZ(4,"perun-web-apps-refresh-button",1),c.NdJ("refresh",function(){return e.select()}),c.qZA(),c.YNc(5,b,3,3,"button",2),c.YNc(6,w,3,3,"button",2),c.TgZ(7,"mat-form-field",3),c.TgZ(8,"mat-label"),c._uU(9),c.ALo(10,"translate"),c.qZA(),c.TgZ(11,"mat-select",4),c.NdJ("selectionChange",function(){return e.select()})("valueChange",function(t){return e.state=t}),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.qZA(),c.qZA(),c.TgZ(30,"perun-web-apps-debounce-filter",11),c.NdJ("filter",function(t){return e.applyFilter(t)}),c.qZA(),c.TgZ(31,"perun-web-apps-date-range",12),c.NdJ("datePicker",function(){return e.select()}),c.qZA(),c.qZA(),c.YNc(32,A,1,0,"mat-spinner",13),c.YNc(33,T,3,2,"div",14)),2&t&&(c.xp6(1),c.Oqu(c.lcZ(2,16,"VO_DETAIL.APPLICATION.TITLE")),c.xp6(4),c.Q6J("ngIf",!e.showAllDetails),c.xp6(1),c.Q6J("ngIf",e.showAllDetails),c.xp6(3),c.Oqu(c.lcZ(10,18,"VO_DETAIL.APPLICATION.TABLE_STATE")),c.xp6(2),c.Q6J("value",e.state),c.xp6(2),c.Oqu(c.lcZ(14,20,"VO_DETAIL.APPLICATION.SELECTION_ALL")),c.xp6(3),c.Oqu(c.lcZ(17,22,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),c.xp6(3),c.Oqu(c.lcZ(20,24,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),c.xp6(3),c.Oqu(c.lcZ(23,26,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),c.xp6(3),c.Oqu(c.lcZ(26,28,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),c.xp6(3),c.Oqu(c.lcZ(29,30,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),c.xp6(2),c.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),c.xp6(1),c.Q6J("startDate",e.startDate)("endDate",e.endDate),c.xp6(1),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading))},directives:[u.t,s.O5,l.KE,l.hX,h.gD,d.ey,f.P,p.S,g.lW,m.$g,v.M,y.w],pipes:[_.X$],styles:[""]}),t}()},11930:function(t,e,i){"use strict";i.d(e,{y:function(){return N}});var n=i(4230),r=i(68416),o=i(67004),a=i(85613),s=i(4374),c=i(65249),u=i(60611),l=i(84140),h=i(88690),d=i(16073),f=i(31572),p=i(84608),g=i(61511),m=i(59403),v=i(36922),y=i(66283),_=i(4786),b=i(91058),w=i(39571),A=i(15980),k=i(71522),C=i(67806),T=i(91779),E=i(48160),S=i(5725);function I(t,e){1&t&&(f.TgZ(0,"app-alert",14),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"GROUP_DETAIL.MEMBERS.ACTIONS_DISABLED"),"\n"))}function R(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",15),f.NdJ("click",function(){return f.CHM(i),f.oxw().onAddMember()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}if(2&t){var n=f.oxw();f.Q6J("disabled",n.synchEnabled||n.blockGroupManualMemberAdding),f.xp6(1),f.hij(" ",f.lcZ(2,2,"GROUP_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function x(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",15),f.NdJ("click",function(){return f.CHM(i),f.oxw().onInviteMember()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}if(2&t){var n=f.oxw();f.Q6J("disabled",n.synchEnabled),f.xp6(1),f.hij(" ",f.lcZ(2,2,"GROUP_DETAIL.MEMBERS.INVITE_MEMBER")," ")}}function O(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",16),f.NdJ("click",function(){return f.CHM(i),f.oxw().onRemoveMembers()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}if(2&t){var n=f.oxw();f.Q6J("disabled",n.selection.isEmpty()||n.synchEnabled),f.xp6(1),f.hij(" ",f.lcZ(2,2,"GROUP_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function P(t,e){if(1&t&&(f.TgZ(0,"mat-option",17),f._uU(1),f.ALo(2,"memberStatus"),f.qZA()),2&t){var i=e.$implicit;f.Q6J("value",i),f.xp6(1),f.Oqu(f.lcZ(2,2,i))}}function D(t,e){if(1&t&&(f.TgZ(0,"mat-option",17),f._uU(1),f.ALo(2,"memberStatus"),f.qZA()),2&t){var i=e.$implicit;f.Q6J("value",i),f.xp6(1),f.Oqu(f.lcZ(2,2,i))}}function M(t,e){1&t&&f._UZ(0,"mat-spinner",18)}function L(t,e){if(1&t&&f._UZ(0,"perun-web-apps-members-dynamic-list",19),2&t){var i=f.oxw();f.Q6J("voId",i.group.voId)("groupId",i.group.id)("tableId",i.tableId)("selection",i.selection)("displayedColumns",i.displayedColumns)("updateTable",i.updateTable)("searchString",i.searchString)("selectedStatuses",i.selectedStatuses)("selectedGroupStatuses",i.selectedGroupStatuses)("attrNames",i.memberAttrNames)}}var N=function(){var t=function(){function t(e,i,n,r,a,s,c,l){_classCallCheck(this,t),this.groupService=e,this.dialog=i,this.guiAuthResolver=n,this.storeService=r,this.attributesManager=a,this.apiRequest=s,this.notificator=c,this.entityStorageService=l,this.synchEnabled=!1,this.updateTable=!1,this.loading=!1,this.tableId=u.dI,this.memberAttrNames=[o.r.MEMBER_DEF_ORGANIZATION,o.r.MEMBER_DEF_MAIL,o.r.USER_DEF_ORGANIZATION,o.r.USER_DEF_PREFERRED_MAIL,o.r.MEMBER_DEF_EXPIRATION,o.r.MEMBER_DEF_GROUP_EXPIRATION],this.groupAttrNames=[o.r.GROUP_SYNC_ENABLED,o.r.GROUP_LAST_SYNC_STATE,o.r.GROUP_LAST_SYNC_TIMESTAMP,o.r.GROUP_STRUCTURE_SYNC_ENABLED,o.r.GROUP_LAST_STRUCTURE_SYNC_STATE,o.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP],this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.statuses=new d.NI,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=["VALID","INVALID"],this.groupStatuses=new d.NI,this.groupStatusList=["VALID","EXPIRED"],this.selectedGroupStatuses=["VALID"]}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.selection=new n.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,this.group.id).then(function(){return t.loadPage(t.group.id)})}},{key:"loadPage",value:function(t){var e=this;this.groupService.getRichGroupByIdWithAttributesByNames(t,this.groupAttrNames).subscribe(function(t){e.group=t,e.synchEnabled=e.isSynchronized(),e.loading=!1})}},{key:"isSynchronized",value:function(){return this.group.attributes.some(function(t){return"synchronizationEnabled"===t.friendlyName&&null!==t.value&&"true"===t.value.toString()})}},{key:"setAuthRights",value:function(){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])}},{key:"onSearchByString",value:function(t){this.searchString=t,this.updateTable=!this.updateTable}},{key:"onAddMember",value:function(){var t=this,e=(0,l.kZ)();e.width="1000px",e.data={voId:this.group.voId,group:this.group,entityId:this.group.id,manualAddingBlocked:this.blockManualMemberAdding,theme:"group-theme",type:"group"},this.dialog.open(a.o,e).afterClosed().subscribe(function(e){e&&(t.selection.clear(),t.updateTable=!t.updateTable)})}},{key:"onRemoveMembers",value:function(){var t=this,e=(0,l.kZ)();e.width="450px",e.data={groupId:this.group.id,members:this.selection.selected,theme:"group-theme"},this.dialog.open(s.X,e).afterClosed().subscribe(function(e){e&&(t.selection.clear(),t.updateTable=!t.updateTable)})}},{key:"onInviteMember",value:function(){var t=(0,l.kZ)();t.width="650px",t.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(h.R,t)}},{key:"displaySelectedStatuses",value:function(){return this.selectedStatuses.length===this.statusList.length?"ALL":this.statuses.value?"".concat(this.statuses.value[0]," ").concat(this.statuses.value.length>1?"(+"+(this.statuses.value.length-1)+" "+(2===this.statuses.value.length?"other)":"others)"):""):""}},{key:"displaySelectedGroupStatuses",value:function(){return this.selectedGroupStatuses.length===this.groupStatusList.length?"ALL":"".concat(this.groupStatuses.value[0])}},{key:"isManualAddingBlocked",value:function(t,e){var i=this;return new Promise(function(n){i.apiRequest.dontHandleErrorForNext(),i.attributesManager.getVoAttributeByName(t,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe(function(t){i.blockManualMemberAdding=null!==t.value,i.apiRequest.dontHandleErrorForNext(),i.attributesManager.getGroupAttributeByName(e,"urn:perun:group:attribute-def:def:blockManualMemberAdding").subscribe(function(t){i.blockGroupManualMemberAdding=null!==t.value,n()},function(t){"PrivilegeException"!==t.error.name&&i.notificator.showError(t),n()})},function(t){"PrivilegeException"!==t.error.name&&i.notificator.showError(t),n()})})}},{key:"changeVoStatuses",value:function(){this.selectedStatuses=this.statuses.value}},{key:"changeGroupStatuses",value:function(){this.selectedGroupStatuses=this.groupStatuses.value}}]),t}();return t.id="GroupMembersComponent",t.\u0275fac=function(e){return new(e||t)(f.Y36(c.ff),f.Y36(p.uw),f.Y36(r.x4),f.Y36(r.d6),f.Y36(c.H8),f.Y36(r.F5),f.Y36(r.V6),f.Y36(r.fb))},t.\u0275cmp=f.Xpm({type:t,selectors:[["app-group-members"]],hostVars:2,hostBindings:function(t,e){2&t&&f.ekj("router-component",e.true)},decls:38,vars:45,consts:[[1,"page-subtitle"],["alert_type","warn",4,"ngIf"],[1,"align-elements"],[3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],[3,"matTooltip","matTooltipDisabled"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","warn","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,"voId","groupId","tableId","selection","displayedColumns","updateTable","searchString","selectedStatuses","selectedGroupStatuses","attrNames",4,"ngIf"],["alert_type","warn"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"group-theme",3,"value"],[1,"ml-auto","mr-auto"],[3,"voId","groupId","tableId","selection","displayedColumns","updateTable","searchString","selectedStatuses","selectedGroupStatuses","attrNames"]],template:function(t,e){1&t&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.qZA(),f.YNc(3,I,3,3,"app-alert",1),f.TgZ(4,"div",2),f.TgZ(5,"perun-web-apps-refresh-button",3),f.NdJ("click",function(){return e.updateTable=!e.updateTable}),f.qZA(),f.TgZ(6,"span",4),f.ALo(7,"translate"),f.TgZ(8,"div",5),f.ALo(9,"translate"),f.YNc(10,R,3,4,"button",6),f.qZA(),f.qZA(),f.TgZ(11,"span",4),f.ALo(12,"translate"),f.YNc(13,x,3,4,"button",6),f.qZA(),f.TgZ(14,"span",4),f.ALo(15,"translate"),f.YNc(16,O,3,4,"button",7),f.qZA(),f.TgZ(17,"mat-form-field",8),f.TgZ(18,"mat-label"),f._uU(19),f.ALo(20,"translate"),f.qZA(),f.TgZ(21,"mat-select",9),f.NdJ("closed",function(){return e.changeVoStatuses()}),f.TgZ(22,"mat-select-trigger"),f._uU(23),f.ALo(24,"memberStatus"),f.qZA(),f.YNc(25,P,3,4,"mat-option",10),f.qZA(),f.qZA(),f.TgZ(26,"mat-form-field",8),f.TgZ(27,"mat-label"),f._uU(28),f.ALo(29,"translate"),f.qZA(),f.TgZ(30,"mat-select",9),f.NdJ("closed",function(){return e.changeGroupStatuses()}),f.TgZ(31,"mat-select-trigger"),f._uU(32),f.ALo(33,"memberStatus"),f.qZA(),f.YNc(34,D,3,4,"mat-option",10),f.qZA(),f.qZA(),f.TgZ(35,"perun-web-apps-debounce-filter",11),f.NdJ("filter",function(t){return e.onSearchByString(t)}),f.qZA(),f.qZA(),f.YNc(36,M,1,0,"mat-spinner",12),f.YNc(37,L,1,10,"perun-web-apps-members-dynamic-list",13)),2&t&&(f.xp6(1),f.Oqu(f.lcZ(2,27,"GROUP_DETAIL.MEMBERS.TITLE")),f.xp6(2),f.Q6J("ngIf",e.synchEnabled),f.xp6(3),f.s9C("matTooltip",f.lcZ(7,29,"GROUP_DETAIL.MEMBERS.SYNCHRONIZED")),f.Q6J("matTooltipDisabled",!e.synchEnabled)("matTooltipPosition","above"),f.xp6(2),f.s9C("matTooltip",f.lcZ(9,31,"GROUP_DETAIL.MEMBERS.ADD_MEMBER_DISABLED")),f.Q6J("matTooltipDisabled",!e.blockGroupManualMemberAdding),f.xp6(2),f.Q6J("ngIf",e.addAuth),f.xp6(1),f.s9C("matTooltip",f.lcZ(12,33,"GROUP_DETAIL.MEMBERS.SYNCHRONIZED")),f.Q6J("matTooltipDisabled",!e.synchEnabled)("matTooltipPosition","above"),f.xp6(2),f.Q6J("ngIf",e.inviteAuth),f.xp6(1),f.s9C("matTooltip",f.lcZ(15,35,"GROUP_DETAIL.MEMBERS.SYNCHRONIZED")),f.Q6J("matTooltipDisabled",!e.synchEnabled)("matTooltipPosition","above"),f.xp6(2),f.Q6J("ngIf",e.removeAuth),f.xp6(3),f.Oqu(f.lcZ(20,37,"GROUP_DETAIL.MEMBERS.FILTER_STATUS")),f.xp6(2),f.Q6J("formControl",e.statuses),f.xp6(2),f.hij(" ",f.lcZ(24,39,e.displaySelectedStatuses())," "),f.xp6(2),f.Q6J("ngForOf",e.statusList),f.xp6(3),f.Oqu(f.lcZ(29,41,"GROUP_DETAIL.MEMBERS.FILTER_GROUP_STATUS")),f.xp6(2),f.Q6J("formControl",e.groupStatuses),f.xp6(2),f.hij(" ",f.lcZ(33,43,e.displaySelectedGroupStatuses())," "),f.xp6(2),f.Q6J("ngForOf",e.groupStatusList),f.xp6(1),f.Q6J("placeholder","GROUP_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),f.xp6(1),f.Q6J("ngIf",e.loading),f.xp6(1),f.Q6J("ngIf",!e.loading))},directives:[g.O5,m.t,v.gM,y.KE,y.hX,_.gD,d.JJ,d.oH,_.$L,g.sg,b.P,w.w,A.lW,k.ey,C.$g,T.m],pipes:[E.X$,S.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}"]}),t}()},7433:function(t,e,i){"use strict";i.d(e,{q:function(){return V}});var n=i(4230),r=i(65249),o=i(60611),a=i(84608),s=i(68416),c=(i(41939),i(31572)),u=i(48160),l=i(61511),h=i(67806),d=i(70663),f=i(91058),p=i(88884),g=i(27521),m=i(16073),v=i(15980),y=i(36922),_=["list"],b=["stepper"];function w(t,e){1&t&&c._UZ(0,"mat-spinner",4)}function A(t,e){1&t&&(c._uU(0),c.ALo(1,"translate")),2&t&&c.Oqu(c.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.RESOURCES"))}function k(t,e){1&t&&(c._uU(0),c.ALo(1,"translate")),2&t&&c.Oqu(c.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.OPTIONS"))}var C=function(){return["select","id","name","facility","tags","description"]};function T(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"div",5),c.TgZ(1,"mat-stepper",6,7),c.TgZ(3,"mat-step",8),c.YNc(4,A,2,3,"ng-template",9),c.TgZ(5,"perun-web-apps-debounce-filter",10),c.NdJ("filter",function(t){return c.CHM(i),c.oxw().applyFilter(t)}),c.ALo(6,"translate"),c.qZA(),c._UZ(7,"perun-web-apps-resources-list",11,12),c.qZA(),c.TgZ(9,"mat-step"),c.YNc(10,k,2,3,"ng-template",9),c.TgZ(11,"mat-slide-toggle",13),c.NdJ("toggleChange",function(){return c.CHM(i),c.oxw().changeSubgroupsMessage()})("ngModelChange",function(t){return c.CHM(i),c.oxw().autoAssignSubgroups=t}),c._uU(12),c.ALo(13,"translate"),c.qZA(),c.TgZ(14,"div",14),c._UZ(15,"i",15),c.qZA(),c.TgZ(16,"mat-slide-toggle",13),c.NdJ("toggleChange",function(){return c.CHM(i),c.oxw().changeInactiveMessage()})("ngModelChange",function(t){return c.CHM(i),c.oxw().asActive=t}),c._uU(17),c.ALo(18,"translate"),c.qZA(),c.TgZ(19,"div",14),c._uU(20),c.qZA(),c.TgZ(21,"mat-slide-toggle",13),c.NdJ("toggleChange",function(){return c.CHM(i),c.oxw().changeAsyncMessage()})("ngModelChange",function(t){return c.CHM(i),c.oxw().async=t}),c._uU(22),c.ALo(23,"translate"),c.qZA(),c.TgZ(24,"div",14),c._uU(25),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){var n=c.MAs(8),r=c.oxw();c.xp6(1),c.Q6J("linear",!0),c.xp6(2),c.Q6J("completed",0!==r.selection.selected.length&&void 0!==n&&n.addAuth),c.xp6(2),c.s9C("placeholder",c.lcZ(6,19,"DIALOGS.ADD_GROUP_RESOURCES.FILTER")),c.xp6(2),c.Q6J("tableId",r.tableId)("resources",r.resources)("disableRouting",!0)("selection",r.selection)("groupToResource",r.data.group)("displayedColumns",c.DdM(27,C))("filterValue",r.filterValue),c.xp6(4),c.Q6J("ngModel",r.autoAssignSubgroups),c.xp6(1),c.hij(" ",c.lcZ(13,21,"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS")," "),c.xp6(3),c.Q6J("innerHTML",r.autoAssignHint,c.oJD),c.xp6(1),c.Q6J("ngModel",r.asActive),c.xp6(1),c.hij(" ",c.lcZ(18,23,"DIALOGS.ADD_GROUP_RESOURCES.AS_ACTIVE")," "),c.xp6(3),c.hij(" ",r.asActiveHint," "),c.xp6(1),c.Q6J("ngModel",r.async),c.xp6(1),c.hij(" ",c.lcZ(23,25,"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OPT")," "),c.xp6(3),c.hij(" ",r.asyncHint," ")}}function E(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"button",22),c.NdJ("click",function(){return c.CHM(i),c.oxw(2).stepperPrevious()}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"DIALOGS.ADD_GROUP_RESOURCES.BACK")," "))}function S(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"button",23),c.NdJ("click",function(){return c.CHM(i),c.oxw(2).stepperNext()}),c._uU(1),c.ALo(2,"translate"),c.qZA()}if(2&t){var n=c.oxw(2);c.ekj("ml-2",void 0!==n.stepper&&0!==n.stepper.selectedIndex)("ml-auto",!(void 0!==n.stepper&&0!==n.stepper.selectedIndex)),c.Q6J("disabled",0===n.selection.selected.length||void 0!==n.list&&!n.list.addAuth),c.xp6(1),c.hij(" ",c.lcZ(2,6,"DIALOGS.ADD_GROUP_RESOURCES.NEXT")," ")}}function I(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"button",24),c.NdJ("click",function(){return c.CHM(i),c.oxw(2).onSubmit()}),c._uU(1),c.ALo(2,"translate"),c.qZA()}if(2&t){var n=c.oxw(2);c.Q6J("disabled",0===n.selection.selected.length||n.loading),c.xp6(1),c.hij(" ",c.lcZ(2,2,"DIALOGS.ADD_GROUP_RESOURCES.ADD")," ")}}function R(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"div",16),c.TgZ(1,"button",17),c.NdJ("click",function(){return c.CHM(i),c.oxw().onCancel()}),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.YNc(4,E,3,3,"button",18),c.YNc(5,S,3,8,"button",19),c.TgZ(6,"span",20),c.ALo(7,"translate"),c.YNc(8,I,3,4,"button",21),c.qZA(),c.qZA()}if(2&t){var n=c.oxw();c.xp6(2),c.hij(" ",c.lcZ(3,6,"DIALOGS.ADD_GROUP_RESOURCES.CANCEL")," "),c.xp6(2),c.Q6J("ngIf",void 0!==n.stepper&&0!==n.stepper.selectedIndex),c.xp6(1),c.Q6J("ngIf",void 0!==n.stepper&&n.stepper.selectedIndex!==n.stepper._steps.length-1),c.xp6(1),c.s9C("matTooltip",c.lcZ(7,8,"DIALOGS.ADD_GROUP_RESOURCES.ADD_PERMISSION_TOOLTIP")),c.Q6J("matTooltipDisabled",void 0===n.list||n.list.addAuth),c.xp6(2),c.Q6J("ngIf",void 0!==n.stepper&&n.stepper.selectedIndex===n.stepper._steps.length-1)}}var x=function(){var t=function(){function t(e,i,r,a,s,c,u){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.notificator=r,this.translate=a,this.resourcesManager=s,this.guiAuthResolver=c,this.cd=u,this.filterValue="",this.resources=[],this.selection=new n.Ov(!0,[]),this.theme="",this.async=!0,this.autoAssignSubgroups=!1,this.asActive=!0,this.tableId=o.dK}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;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(function(e){t.resourcesManager.getAssignedResourcesWithGroup(t.data.group.id).subscribe(function(i){var n,r=_createForOfIteratorHelper(e);try{var o=function(){var e=n.value;-1===i.findIndex(function(t){return t.id===e.id})&&t.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",[t.data.group,e])&&t.resources.push(e)};for(r.s();!(n=r.n()).done;)o()}catch(a){r.e(a)}finally{r.f()}t.loading=!1,t.cd.detectChanges()},function(){return t.loading=!1})},function(){return t.loading=!1})}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0;var e=this.selection.selected.map(function(t){return t.id});this.resourcesManager.assignGroupToResources(this.data.group.id,e,this.async,!this.asActive,this.autoAssignSubgroups).subscribe(function(){t.translate.get("DIALOGS.ADD_GROUP_RESOURCES.SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})}},{key:"changeSubgroupsMessage",value:function(){this.autoAssignHint=this.translate.instant(this.autoAssignSubgroups?"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS_ON_HINT")}},{key:"changeInactiveMessage",value:function(){this.asActiveHint=this.translate.instant(this.asActive?"DIALOGS.ADD_GROUP_RESOURCES.ACTIVE_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.ACTIVE_ON_HINT")}},{key:"changeAsyncMessage",value:function(){this.asyncHint=this.translate.instant(this.async?"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_ON_HINT")}},{key:"stepperPrevious",value:function(){this.stepper.previous()}},{key:"stepperNext",value:function(){this.stepper.next()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.Y36(a.so),c.Y36(a.WI),c.Y36(s.V6),c.Y36(u.sK),c.Y36(r.xk),c.Y36(s.x4),c.Y36(c.sBO))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-add-group-resource-dialog"]],viewQuery:function(t,e){var i;(1&t&&(c.Gf(_,5),c.Gf(b,5)),2&t)&&(c.iGM(i=c.CRH())&&(e.list=i.first),c.iGM(i=c.CRH())&&(e.stepper=i.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,"tableId","resources","disableRouting","selection","groupToResource","displayedColumns","filterValue"],["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"],["mat-flat-button","","class","ml-2","color","accent",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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(c.TgZ(0,"div"),c.TgZ(1,"h1",0),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.YNc(4,w,1,0,"mat-spinner",1),c.YNc(5,T,26,28,"div",2),c.YNc(6,R,9,10,"div",3),c.qZA()),2&t&&(c.Tol(e.theme),c.xp6(2),c.Oqu(c.lcZ(3,7,"DIALOGS.ADD_GROUP_RESOURCES.TITLE")),c.xp6(2),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading&&void 0!==e.stepper))},directives:[a.uh,l.O5,h.$g,a.xY,d.Vq,d.C0,d.VY,f.P,p.C,g.Rr,m.JJ,m.On,a.H8,v.lW,y.gM],pipes:[u.X$],styles:[""]}),t}(),O=i(67033);function P(t,e){1&t&&c._UZ(0,"mat-spinner",4)}function D(t,e){1&t&&c._UZ(0,"th",13)}function M(t,e){if(1&t&&(c.TgZ(0,"td",14),c._uU(1),c.qZA()),2&t){var i=e.$implicit;c.xp6(1),c.hij(" ",i.name," ")}}function L(t,e){1&t&&c._UZ(0,"tr",15)}function N(t,e){1&t&&c._UZ(0,"tr",16)}function z(t,e){if(1&t&&(c.TgZ(0,"div",5),c.TgZ(1,"p"),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"div",6),c._uU(5),c.ALo(6,"translate"),c.qZA(),c.TgZ(7,"table",7),c.ynx(8,8),c.YNc(9,D,1,0,"th",9),c.YNc(10,M,2,1,"td",10),c.BQk(),c.YNc(11,L,1,0,"tr",11),c.YNc(12,N,1,0,"tr",12),c.qZA(),c.qZA()),2&t){var i=c.oxw();c.xp6(2),c.hij(" ",c.lcZ(3,5,"DIALOGS.REMOVE_RESOURCES.DESCRIPTION")," "),c.xp6(3),c.hij(" ",c.lcZ(6,7,"DIALOGS.REMOVE_RESOURCES.ASK")," "),c.xp6(2),c.Q6J("dataSource",i.dataSource),c.xp6(4),c.Q6J("matHeaderRowDef",i.displayedColumns),c.xp6(1),c.Q6J("matRowDefColumns",i.displayedColumns)}}function Z(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"div",17),c.TgZ(1,"button",18),c.NdJ("click",function(){return c.CHM(i),c.oxw().onCancel()}),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"button",19),c.NdJ("click",function(){return c.CHM(i),c.oxw().onSubmit()}),c._uU(5),c.ALo(6,"translate"),c.qZA(),c.qZA()}if(2&t){var n=c.oxw();c.xp6(2),c.hij(" ",c.lcZ(3,3,"DIALOGS.REMOVE_RESOURCES.CANCEL")," "),c.xp6(2),c.Q6J("disabled",n.loading),c.xp6(1),c.hij(" ",c.lcZ(6,5,"DIALOGS.REMOVE_RESOURCES.DELETE")," ")}}var B=function(){var t=function(){function t(e,i,n,r,o){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translate=r,this.resourcesManager=o,this.displayedColumns=["name"]}return _createClass(t,[{key:"ngOnInit",value:function(){this.dataSource=new O.by(this.data.resources)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0;var e=this.data.resources.map(function(t){return t.id});this.resourcesManager.removeGroupFromResources(this.data.groupId,e).subscribe(function(){t.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(function(e){t.loading=!1,t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.Y36(a.so),c.Y36(a.WI),c.Y36(s.V6),c.Y36(u.sK),c.Y36(r.xk))},t.\u0275cmp=c.Xpm({type:t,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"],["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(t,e){1&t&&(c.TgZ(0,"div"),c.TgZ(1,"h1",0),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.YNc(4,P,1,0,"mat-spinner",1),c.YNc(5,z,13,9,"div",2),c.YNc(6,Z,7,7,"div",3),c.qZA()),2&t&&(c.Tol(e.data.theme),c.xp6(2),c.Oqu(c.lcZ(3,7,"DIALOGS.REMOVE_RESOURCES.TITLE")),c.xp6(2),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading))},directives:[a.uh,l.O5,h.$g,a.xY,O.BZ,O.w1,O.fO,O.Dz,O.as,O.nj,O.ge,O.ev,O.XQ,O.Gk,a.H8,v.lW],pipes:[u.X$],styles:[""]}),t}(),F=i(84140),q=i(59403),H=i(19139),U=["list"];function G(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"button",8),c.NdJ("click",function(){return c.CHM(i),c.oxw().addResource()}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"GROUP_DETAIL.RESOURCES.ADD")," "))}function j(t,e){1&t&&c._UZ(0,"mat-spinner",9)}var Y=function(){return["select","id","indirectResourceAssigment","name","status","facility","tags","description"]};function K(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"perun-web-apps-resources-list",10,11),c.NdJ("refreshTable",function(){return c.CHM(i),c.oxw().refreshTable()}),c.qZA()}if(2&t){var n=c.oxw();c.Q6J("tableId",n.tableId)("filterValue",n.filterValue)("resources",n.resources)("routingVo",!0)("disableRouting",!n.routingAuth)("selection",n.selected)("groupToResource",n.group)("groupId",n.group.id)("resourcesToDisableCheckbox",n.resourcesToDisable)("displayedColumns",c.DdM(10,Y))}}var V=function(){var t=function(){function t(e,i,r,a,s){_classCallCheck(this,t),this.resourcesManager=e,this.groupService=i,this.dialog=r,this.guiAuthResolver=a,this.entityStorageService=s,this.resources=null,this.selected=new n.Ov(!0,[]),this.filterValue="",this.tableId=o.v1,this.addAuth=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.group=this.entityStorageService.getEntity(),this.setAuthorization(),this.refreshTable()}},{key:"setAuthorization",value:function(){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])}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.resourcesManager.getResourceAssignments(this.group.id).subscribe(function(e){t.resources=e.map(function(t){var e=t.enrichedResource.resource;return e.facility=t.facility,e.status=t.status,e.resourceTags=t.resourceTags,e.failureCause=t.failureCause,e.sourceGroupId=t.sourceGroupId,e}),t.selected.clear(),t.resourcesToDisable=new Set(t.resources.filter(function(t){return null!==t.sourceGroupId}).map(function(t){return t.id})),t.setAuthorization(),t.loading=!1})}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"addResource",value:function(){var t=this,e=(0,F.kZ)();e.width="1000px",e.data={theme:"group-theme",group:this.group},this.dialog.open(x,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"removeResource",value:function(){var t=this,e=(0,F.kZ)();e.width="450px",e.data={theme:"group-theme",resources:this.selected.selected,groupId:this.group.id},this.dialog.open(B,e).afterClosed().subscribe(function(e){e&&(t.selected.clear(),t.refreshTable())})}}]),t}();return t.id="GroupResourcesComponent",t.\u0275fac=function(e){return new(e||t)(c.Y36(r.xk),c.Y36(r.ff),c.Y36(a.uw),c.Y36(s.x4),c.Y36(s.fb))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-group-resources"]],viewQuery:function(t,e){var i;(1&t&&c.Gf(U,5),2&t)&&(c.iGM(i=c.CRH())&&(e.list=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&c.ekj("router-component",e.true)},decls:14,vars:15,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","filterValue","resources","routingVo","disableRouting","selection","groupToResource","groupId","resourcesToDisableCheckbox","displayedColumns","refreshTable",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","resources","routingVo","disableRouting","selection","groupToResource","groupId","resourcesToDisableCheckbox","displayedColumns","refreshTable"],["list",""]],template:function(t,e){1&t&&(c.TgZ(0,"div"),c.TgZ(1,"h1",0),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"perun-web-apps-refresh-button",1),c.NdJ("refresh",function(){return e.refreshTable()}),c.qZA(),c.YNc(5,G,3,3,"button",2),c.TgZ(6,"span",3),c.ALo(7,"translate"),c.TgZ(8,"button",4),c.NdJ("click",function(){return e.removeResource()}),c._uU(9),c.ALo(10,"translate"),c.qZA(),c.qZA(),c.TgZ(11,"perun-web-apps-immediate-filter",5),c.NdJ("filter",function(t){return e.applyFilter(t)}),c.qZA(),c.YNc(12,j,1,0,"mat-spinner",6),c.YNc(13,K,2,11,"perun-web-apps-resources-list",7),c.qZA()),2&t&&(c.xp6(2),c.Oqu(c.lcZ(3,9,"GROUP_DETAIL.RESOURCES.TITLE")),c.xp6(3),c.Q6J("ngIf",e.addAuth),c.xp6(1),c.s9C("matTooltip",c.lcZ(7,11,"GROUP_DETAIL.RESOURCES.DELETE_PERMISSION_HINT")),c.Q6J("matTooltipDisabled",0===e.selected.selected.length||void 0!==e.list&&e.list.removeAuth),c.xp6(2),c.Q6J("disabled",0===e.selected.selected.length||void 0!==e.list&&!e.list.removeAuth),c.xp6(1),c.hij(" ",c.lcZ(10,13,"GROUP_DETAIL.RESOURCES.DELETE")," "),c.xp6(2),c.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),c.xp6(1),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",e.resources&&!e.loading))},directives:[q.t,l.O5,y.gM,v.lW,H.L,h.$g,p.C],pipes:[u.X$],styles:[""]}),t}()},65423:function(t,e,i){"use strict";i.d(e,{Z:function(){return F}});var n=i(68416),r=i(92438),o=i(75954),a=i(68570),s=i(24555),c=i(65249),u=i(84140),l=i(31572),h=i(84608),d=i(48160),f=i(57629),p=i(61511),g=i(67806),m=i(27679),v=i(59403),y=i(15980),_=i(92846),b=i(43691),w=i(36922),A=i(27521),k=i(16073),C=i(39571),T=["autoRegToggle"];function E(t,e){1&t&&l._UZ(0,"mat-spinner",3)}function S(t,e){if(1&t&&(l.TgZ(0,"span"),l._uU(1," , "),l.TgZ(2,"mat-icon",22),l._uU(3,"nat"),l.qZA(),l._uU(4),l.ALo(5,"translate"),l.ALo(6,"translate"),l.qZA()),2&t){var i=l.oxw(3);l.xp6(4),l.hij(" ",i.applicationForm.automaticApprovalEmbedded?l.lcZ(5,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):l.lcZ(6,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," ")}}function I(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"div"),l.TgZ(1,"mat-slide-toggle",23,24),l.NdJ("change",function(){return l.CHM(i),l.oxw(3).updateAutoRegistration()}),l._uU(3),l.ALo(4,"translate"),l.qZA(),l.qZA()}if(2&t){var n=l.oxw(3);l.xp6(1),l.Q6J("disabled",!n.changeAutoRegistration)("ngModel",n.autoRegistrationEnabled),l.xp6(2),l.hij(" ",l.lcZ(4,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ALLOW_EMBEDDED")," ")}}function R(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",25),l.NdJ("click",function(){return l.CHM(i),l.oxw(3).settings()}),l.TgZ(1,"i",12),l._uU(2,"edit"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}2&t&&(l.xp6(3),l.hij(" ",l.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function x(t,e){if(1&t&&(l.TgZ(0,"div",15),l.TgZ(1,"div",16),l.TgZ(2,"div",17),l._uU(3),l.ALo(4,"translate"),l.qZA(),l.TgZ(5,"div"),l.TgZ(6,"span",17),l._uU(7),l.ALo(8,"translate"),l.qZA(),l._uU(9,": "),l.TgZ(10,"mat-icon",18),l._uU(11,"arrow_right_alt"),l.qZA(),l._uU(12),l.ALo(13,"translate"),l.ALo(14,"translate"),l.TgZ(15,"mat-icon",19),l._uU(16,"restore"),l.qZA(),l._uU(17),l.ALo(18,"translate"),l.ALo(19,"translate"),l.YNc(20,S,7,5,"span",2),l.qZA(),l.YNc(21,I,5,5,"div",2),l.qZA(),l.TgZ(22,"div",20),l.YNc(23,R,5,3,"button",21),l.qZA(),l.qZA()),2&t){var i=l.oxw(2);l.xp6(1),l.Q6J("ngClass",i.autoRegistrationEnabled?"w-75":"w-50"),l.xp6(2),l.AsE("",l.lcZ(4,9,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",i.applicationForm.moduleClassName," "),l.xp6(4),l.Oqu(l.lcZ(8,11,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),l.xp6(5),l.hij(" ",i.applicationForm.automaticApproval?l.lcZ(13,13,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):l.lcZ(14,15,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL"),", "),l.xp6(5),l.hij(" ",i.applicationForm.automaticApprovalExtension?l.lcZ(18,17,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):l.lcZ(19,19,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),l.xp6(3),l.Q6J("ngIf",i.autoRegistrationEnabled),l.xp6(1),l.Q6J("ngIf",i.voHasEmbeddedGroupApplication),l.xp6(2),l.Q6J("ngIf",i.editAuth)}}function O(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",26),l.NdJ("click",function(){return l.CHM(i),l.oxw(2).add()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function P(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",27),l.NdJ("click",function(){return l.CHM(i),l.oxw(2).save()}),l.TgZ(1,"i",12),l._uU(2,"save"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}if(2&t){var n=l.oxw(2);l.Q6J("disabled",!n.itemsChanged),l.xp6(3),l.hij(" ",l.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function D(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",28),l.NdJ("click",function(){return l.CHM(i),l.oxw(2).copy()}),l.TgZ(1,"i",12),l._uU(2,"file_copy"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}2&t&&(l.xp6(3),l.hij(" ",l.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.COPY_GROUP_BUTTON")," "))}function M(t,e){1&t&&(l.TgZ(0,"app-alert",29),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}var L=function(){return["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"]},N=function(){return["shortname","type","disabled","hidden","preview","managegroups"]};function z(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"div"),l.YNc(1,x,24,21,"div",4),l._UZ(2,"mat-divider",5),l.TgZ(3,"div",6),l.TgZ(4,"perun-web-apps-refresh-button",7),l.NdJ("refresh",function(){return l.CHM(i),l.oxw().updateFormItems()}),l.qZA(),l.YNc(5,O,3,3,"button",8),l.YNc(6,P,5,4,"button",9),l.YNc(7,D,5,3,"button",10),l.TgZ(8,"button",11),l.NdJ("click",function(){return l.CHM(i),l.oxw().preview()}),l.TgZ(9,"i",12),l._uU(10,"search"),l.qZA(),l._uU(11),l.ALo(12,"translate"),l.qZA(),l.qZA(),l.YNc(13,M,3,3,"app-alert",13),l.TgZ(14,"app-application-form-list",14),l.NdJ("applicationFormItemsChange",function(){return l.CHM(i),l.oxw().changeItems()}),l.qZA(),l.qZA()}if(2&t){var n=l.oxw();l.xp6(1),l.Q6J("ngIf",!n.loading),l.xp6(4),l.Q6J("ngIf",n.editAuth),l.xp6(1),l.Q6J("ngIf",n.editAuth),l.xp6(1),l.Q6J("ngIf",n.editAuth),l.xp6(4),l.hij(" ",l.lcZ(12,11,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),l.xp6(2),l.Q6J("ngIf",n.editAuth),l.xp6(1),l.Q6J("loading",n.loading)("applicationForm",n.applicationForm)("applicationFormItems",n.applicationFormItems)("theme","group-theme")("displayedColumns",n.editAuth?l.DdM(13,L):l.DdM(14,N))}}function Z(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",11),l.NdJ("click",function(){return l.CHM(i),l.oxw(2).createEmptyApplicationForm()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CREATE_APPLICATION_FORM")," "))}function B(t,e){if(1&t&&(l.TgZ(0,"div"),l.TgZ(1,"app-alert",30),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,Z,3,3,"button",31),l.qZA()),2&t){var i=l.oxw();l.xp6(2),l.Oqu(l.lcZ(3,2,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM")),l.xp6(2),l.Q6J("ngIf",i.createEmptyForm)}}var F=function(){var t=function(){function t(e,i,n,r,o,a,s,c,u){_classCallCheck(this,t),this.registrarManager=e,this.dialog=i,this.notificator=n,this.translate=r,this.apiRequest=o,this.router=a,this.guiAuthResolver=s,this.attributesManager=c,this.entityStorageService=u,this.loading=!1,this.applicationFormItems=[],this.noApplicationForm=!1,this.itemsChanged=!1,this.editAuth=!1,this.createEmptyForm=!1,this.voHasEmbeddedGroupApplication=!1,this.idCounter=-1}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.group=this.entityStorageService.getEntity(),this.setAuth(),this.apiRequest.dontHandleErrorForNext(),this.registrarManager.getGroupApplicationForm(this.group.id).subscribe(function(e){t.applicationForm=e,t.registrarManager.getFormItemsForGroup(t.group.id).subscribe(function(e){t.applicationFormItems=e,t.attributesManager.getGroupAttributeByName(t.group.id,"urn:perun:group:attribute-def:virt:autoRegistrationEnabled").subscribe(function(e){t.voHasEmbeddedGroupApplication=null!==e.value,t.autoRegistrationEnabled=!!e.value,t.loading=!1})},function(){return t.loading=!1})},function(e){"FormNotExistsException"===e.error.name?(t.noApplicationForm=!0,t.loading=!1):t.notificator.showRPCError(e.error)})}},{key:"setAuth",value:function(){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])}},{key:"add",value:function(){var t=this,e=(0,u.kZ)();e.width="500px",e.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(r.J,e).afterClosed().subscribe(function(i){i&&(t.applicationFormItems=Object.assign([],i[0]),(e=(0,u.kZ)()).width="600px",e.height="600px",e.data={voId:t.group.voId,groupId:t.group.id,applicationFormItem:i[1],theme:"group-theme",allItems:t.applicationFormItems},t.dialog.open(o._,e),t.itemsChanged=!0)})}},{key:"copy",value:function(){var t=this,e=(0,u.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(a.W,e).afterClosed().subscribe(function(e){e&&t.updateFormItems()})}},{key:"settings",value:function(){var t=this,e=(0,u.kZ)();e.width="400px",e.data={entity:"group",applicationForm:this.applicationForm,theme:"group-theme",autoRegistrationEnabled:this.autoRegistrationEnabled},this.dialog.open(s.E,e).afterClosed().subscribe(function(e){e&&(t.translate.get("GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e)}),t.applicationForm=e)})}},{key:"preview",value:function(){this.router.navigate(["/organizations",this.group.voId,"groups",this.group.id,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)}})}},{key:"updateFormItems",value:function(){var t=this;this.loading=!0,this.registrarManager.getFormItemsForGroup(this.group.id).subscribe(function(e){t.applicationFormItems=e,t.itemsChanged=!1,t.loading=!1})}},{key:"changeItems",value:function(){this.itemsChanged=!0}},{key:"createEmptyApplicationForm",value:function(){var t=this;this.registrarManager.createApplicationFormInGroup(this.group.id).subscribe(function(){t.noApplicationForm=!1,t.ngOnInit()})}},{key:"save",value:function(){var t,e=this,i=0,n=_createForOfIteratorHelper(this.applicationFormItems);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.ordnum=i,r.forDelete||i++}}catch(o){n.e(o)}finally{n.f()}this.registrarManager.updateFormItemsForGroup({group:this.group.id,items:this.applicationFormItems}).subscribe(function(){e.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe(function(t){e.notificator.showSuccess(t)}),e.updateFormItems()})}},{key:"clear",value:function(){this.applicationFormItems=[],this.itemsChanged=!0}},{key:"updateAutoRegistration",value:function(){var t=this;this.autoRegToggle.setDisabledState(!0),this.autoRegistrationEnabled?this.registrarManager.deleteGroupsFromAutoRegistration([this.group.id]).subscribe(function(){t.autoRegistrationEnabled=!t.autoRegistrationEnabled,t.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e)}),t.autoRegToggle.setDisabledState(!1)},function(){return t.autoRegToggle.setDisabledState(!1)}):this.registrarManager.addGroupsToAutoRegistration([this.group.id]).subscribe(function(){t.autoRegistrationEnabled=!t.autoRegistrationEnabled,t.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e)}),t.autoRegToggle.setDisabledState(!1)},function(){return t.autoRegToggle.setDisabledState(!1)})}}]),t}();return t.id="GroupSettingsApplicationFormComponent",t.\u0275fac=function(e){return new(e||t)(l.Y36(c.tk),l.Y36(h.uw),l.Y36(n.V6),l.Y36(d.sK),l.Y36(n.F5),l.Y36(f.F0),l.Y36(n.x4),l.Y36(c.H8),l.Y36(n.fb))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-group-settings-application-form"]],viewQuery:function(t,e){var i;(1&t&&l.Gf(T,5),2&t)&&(l.iGM(i=l.CRH())&&(e.autoRegToggle=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("router-component",e.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"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-stroked-button","","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],["alert_type","info",4,"ngIf"],[3,"loading","applicationForm","applicationFormItems","theme","displayedColumns","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"],["mat-stroked-button","","class","ml-auto action-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"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],["alert_type","info"],["alert_type","warn"],["mat-stroked-button","",3,"click",4,"ngIf"]],template:function(t,e){1&t&&(l.TgZ(0,"h1",0),l._uU(1),l.ALo(2,"translate"),l.qZA(),l.YNc(3,E,1,0,"mat-spinner",1),l.YNc(4,z,15,15,"div",2),l.YNc(5,B,5,4,"div",2)),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,4,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),l.xp6(2),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.noApplicationForm),l.xp6(1),l.Q6J("ngIf",!e.loading&&e.noApplicationForm))},directives:[p.O5,g.$g,m.d,v.t,y.lW,_.b,p.mk,b.Hw,w.gM,A.Rr,k.JJ,k.On,C.w],pipes:[d.X$],styles:[""]}),t}()},82044:function(t,e,i){"use strict";i.d(e,{u:function(){return N}});var n=i(88419),r=i(4230),o=i(43491),a=i(84140),s=i(65249),c=i(67004),u=i(60611),l=i(57820),h=i(68416),d=(i(41939),i(31572)),f=i(84608),p=i(59403),g=i(61511),m=i(36922),v=i(91058),y=i(27521),_=i(16073),b=i(15980),w=i(67806),A=i(11441),k=i(78364),C=i(48160),T=["tree"],E=["list"],S=["toggle"];function I(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"button",10),d.NdJ("click",function(){return d.CHM(i),d.oxw().onCreateGroup()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}2&t&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"GROUP_DETAIL.SUBGROUPS.CREATE_GROUP")," "))}function R(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"button",11),d.NdJ("click",function(){return d.CHM(i),d.oxw().deleteGroup()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}if(2&t){var n=d.oxw();d.Q6J("disabled",0===n.selected.selected.length||void 0!==n.tree&&!n.tree.removeAuth||void 0!==n.list&&!n.list.removeAuth),d.xp6(1),d.hij(" ",d.lcZ(2,2,"GROUP_DETAIL.SUBGROUPS.DELETE_GROUP")," ")}}function x(t,e){1&t&&d._UZ(0,"mat-spinner",12)}function O(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"perun-web-apps-groups-tree",16,17),d.NdJ("moveGroup",function(t){return d.CHM(i),d.oxw(2).onMoveGroup(t)})("refreshTable",function(){return d.CHM(i),d.oxw(2).refreshTable()}),d.qZA()}if(2&t){var n=d.oxw(2);d.Q6J("groups",n.groups)("expandAll",n.filtering)("hideCheckbox",!n.deleteAuth)("selection",n.selected)("filterValue",n.filterValue)("disableRouting",!n.routeAuth)}}var P=function(){return["select","id","name","description","menu"]},D=function(){return["id","name","description","menu"]};function M(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"perun-web-apps-groups-list",18,19),d.NdJ("moveGroup",function(t){return d.CHM(i),d.oxw(2).onMoveGroup(t)})("refreshTable",function(){return d.CHM(i),d.oxw(2).refreshTable()}),d.qZA()}if(2&t){var n=d.oxw(2);d.Q6J("tableId",n.tableId)("groups",n.groups)("selection",n.selected)("authType","group-subgroups")("disableMembers",!0)("disableRouting",!n.routeAuth)("displayedColumns",n.deleteAuth?d.DdM(8,P):d.DdM(9,D))("filter",n.filterValue)}}function L(t,e){if(1&t&&(d.TgZ(0,"div",13),d.YNc(1,O,2,6,"perun-web-apps-groups-tree",14),d.YNc(2,M,2,10,"perun-web-apps-groups-list",15),d.qZA()),2&t){var i=d.oxw();d.xp6(1),d.Q6J("ngIf",!i.showGroupList),d.xp6(1),d.Q6J("ngIf",i.showGroupList)}}var N=function(){var t=function(){function t(e,i,n,o){_classCallCheck(this,t),this.dialog=e,this.groupService=i,this.guiAuthResolver=n,this.entityStorageService=o,this.groups=[],this.selected=new r.Ov(!0,[]),this.showGroupList=!1,this.filtering=!1,this.tableId=u.bf,this.filterValue=""}return _createClass(t,[{key:"onCreateGroup",value:function(){var t=this,e=(0,a.kZ)();e.width="450px",e.data={parentGroup:this.group,theme:"group-theme"},this.dialog.open(n.y,e).afterClosed().subscribe(function(e){e&&(t.loading=!0,t.refreshTable())})}},{key:"ngOnInit",value:function(){var t=this;"list"===localStorage.getItem("preferedValue")&&(this.toggle.toggle(),this.selected.clear(),this.showGroupList=!0),this.toggle.change.subscribe(function(){localStorage.setItem("preferedValue",t.toggle.checked?"list":"tree")}),this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}},{key:"setAuthRights",value:function(){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]]))}},{key:"deleteGroup",value:function(){var t=this,e=(0,a.kZ)();e.width="450px",e.data={voId:this.group.id,groups:this.selected.selected,theme:"group-theme"},this.dialog.open(o.P,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"refreshTable",value:function(){var t=this;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(function(e){t.groups=e,t.selected.clear(),t.setAuthRights(),t.loading=!1})}},{key:"applyFilter",value:function(t){this.filterValue=t,this.filtering=""!==t}},{key:"onMoveGroup",value:function(t){var e=this,i=(0,a.kZ)();i.width="550px",i.data={group:t,theme:"group-theme"},this.dialog.open(l.c,i).afterClosed().subscribe(function(t){t&&e.refreshTable()})}}]),t}();return t.id="GroupSubgroupsComponent",t.\u0275fac=function(e){return new(e||t)(d.Y36(f.uw),d.Y36(s.ff),d.Y36(h.x4),d.Y36(h.fb))},t.\u0275cmp=d.Xpm({type:t,selectors:[["app-group-subgroups"]],viewQuery:function(t,e){var i;(1&t&&(d.Gf(T,5),d.Gf(E,5),d.Gf(S,7)),2&t)&&(d.iGM(i=d.CRH())&&(e.tree=i.first),d.iGM(i=d.CRH())&&(e.list=i.first),d.iGM(i=d.CRH())&&(e.toggle=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&d.ekj("router-component",e.true)},decls:19,vars:20,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","warn","class","mr-2",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","mat-flat-button","",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],[3,"groups","expandAll","hideCheckbox","selection","filterValue","disableRouting","moveGroup","refreshTable",4,"ngIf"],[3,"tableId","groups","selection","authType","disableMembers","disableRouting","displayedColumns","filter","moveGroup","refreshTable",4,"ngIf"],[3,"groups","expandAll","hideCheckbox","selection","filterValue","disableRouting","moveGroup","refreshTable"],["tree",""],[3,"tableId","groups","selection","authType","disableMembers","disableRouting","displayedColumns","filter","moveGroup","refreshTable"],["list",""]],template:function(t,e){if(1&t&&(d.TgZ(0,"div"),d.TgZ(1,"h1",0),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"perun-web-apps-refresh-button",1),d.NdJ("refresh",function(){return e.refreshTable()}),d.qZA(),d.YNc(5,I,3,3,"button",2),d.TgZ(6,"span",3),d.ALo(7,"translate"),d.YNc(8,R,3,4,"button",4),d.qZA(),d.TgZ(9,"perun-web-apps-debounce-filter",5),d.NdJ("filter",function(t){return e.applyFilter(t)}),d.qZA(),d.TgZ(10,"mat-slide-toggle",6,7),d.NdJ("change",function(){return e.selected.clear()})("ngModelChange",function(t){return e.showGroupList=t}),d._uU(12),d.ALo(13,"translate"),d.qZA(),d.TgZ(14,"label"),d._uU(15),d.ALo(16,"translate"),d.qZA(),d.YNc(17,x,1,0,"mat-spinner",8),d.YNc(18,L,3,2,"div",9),d.qZA()),2&t){var i=d.MAs(11);d.xp6(2),d.Oqu(d.lcZ(3,12,"GROUP_DETAIL.SUBGROUPS.TITLE")),d.xp6(3),d.Q6J("ngIf",e.createAuth),d.xp6(1),d.s9C("matTooltip",d.lcZ(7,14,"GROUP_DETAIL.SUBGROUPS.DELETE_PERMISSION_HINT")),d.Q6J("matTooltipDisabled",void 0===e.tree&&void 0===e.list||void 0!==e.tree&&e.tree.removeAuth||void 0!==e.list&&e.list.removeAuth),d.xp6(2),d.Q6J("ngIf",e.deleteAuth),d.xp6(1),d.Q6J("placeholder","GROUP_DETAIL.SUBGROUPS.FILTER"),d.xp6(1),d.Q6J("ngModel",e.showGroupList),d.xp6(2),d.Oqu(d.lcZ(13,16,"GROUP_DETAIL.SUBGROUPS.TREE_VIEW")),d.xp6(2),d.uIk("for",i.inputId),d.xp6(1),d.Oqu(d.lcZ(16,18,"GROUP_DETAIL.SUBGROUPS.LIST_VIEW")),d.xp6(2),d.Q6J("ngIf",e.loading),d.xp6(1),d.Q6J("ngIf",!e.loading)}},directives:[p.t,g.O5,m.gM,v.P,y.Rr,_.JJ,_.On,b.lW,w.$g,A.I,k.W],pipes:[C.X$],styles:[""]}),t}()},81835:function(t,e,i){"use strict";i.d(e,{j:function(){return B}});var n=i(65249),r=i(60611),o=i(4230),a=i(84140),s=i(84608),c=i(68416),u=i(67004),l=i(31572),h=i(48160),d=i(61511),f=i(67806),p=i(19139),g=i(78364),m=i(15980);function v(t,e){1&t&&l._UZ(0,"mat-spinner",6)}function y(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"perun-web-apps-immediate-filter",7),l.NdJ("filter",function(t){return l.CHM(i),l.oxw().applyFilter(t)}),l.qZA()}2&t&&l.Q6J("placeholder","DIALOGS.ADD_MEMBER_GROUP.FILTER")}var _=function(){return["select","id","name","description"]};function b(t,e){if(1&t&&l._UZ(0,"perun-web-apps-groups-list",8),2&t){var i=l.oxw();l.Q6J("groups",i.groups)("selection",i.selection)("displayedColumns",l.DdM(8,_))("filter",i.filterValue)("groupsToDisableCheckbox",i.membersGroups)("disableGroups",!0)("disableRouting",!0)("disableMembers",!0)}}function w(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"div",9),l.TgZ(1,"button",10),l.NdJ("click",function(){return l.CHM(i),l.oxw().onCancel()}),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"button",11),l.NdJ("click",function(){return l.CHM(i),l.oxw().onAdd()}),l._uU(5),l.ALo(6,"translate"),l.qZA(),l.qZA()}if(2&t){var n=l.oxw();l.xp6(2),l.hij(" ",l.lcZ(3,3,"DIALOGS.ADD_MEMBER_GROUP.CANCEL")," "),l.xp6(2),l.Q6J("disabled",0===n.selection.selected.length),l.xp6(1),l.hij(" ",l.lcZ(6,5,"DIALOGS.ADD_MEMBER_GROUP.ADD")," ")}}var A=function(){var t=function(){function t(e,i,n,r,a,s,c){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.groupManager=n,this.memberManager=r,this.notificator=a,this.translate=s,this.authResolver=c,this.loading=!1,this.groups=[],this.selection=new o.Ov(!0,[]),this.attrNames=[u.r.GROUP_SYNC_ENABLED,u.r.GROUP_LAST_SYNC_STATE,u.r.GROUP_LAST_SYNC_TIMESTAMP,u.r.GROUP_STRUCTURE_SYNC_ENABLED,u.r.GROUP_LAST_STRUCTURE_SYNC_STATE,u.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP],this.filterValue=""}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.theme=this.data.theme,this.membersGroups=this.data.membersGroups,this.loading=!0,this.memberManager.getMemberById(this.data.memberId).subscribe(function(e){t.member=e,t.groupManager.getAllRichGroupsWithAttributesByNames(t.member.voId,t.attrNames).subscribe(function(e){t.groups=e.filter(function(e){return t.authResolver.isAuthorized("addMember_Group_Member_policy",[e])}),t.loading=!1},function(){return t.loading=!1})})}},{key:"onAdd",value:function(){var t=this,e=this.selection.selected.map(function(t){return t.id});this.loading=!0,this.groupManager.addMember(e,this.member.id).subscribe(function(){t.notificator.showSuccess(t.translate.instant("DIALOGS.ADD_MEMBER_GROUP.SUCCESS")),t.dialogRef.close(!0)},function(){return t.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"applyFilter",value:function(t){this.filterValue=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Y36(s.so),l.Y36(s.WI),l.Y36(n.ff),l.Y36(n.uq),l.Y36(c.V6),l.Y36(h.sK),l.Y36(c.x4))},t.\u0275cmp=l.Xpm({type:t,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,"groups","selection","displayedColumns","filter","groupsToDisableCheckbox","disableGroups","disableRouting","disableMembers",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"placeholder","filter"],[3,"groups","selection","displayedColumns","filter","groupsToDisableCheckbox","disableGroups","disableRouting","disableMembers"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,v,1,0,"mat-spinner",1),l.TgZ(5,"div",2),l.YNc(6,y,1,1,"perun-web-apps-immediate-filter",3),l.YNc(7,b,1,9,"perun-web-apps-groups-list",4),l.qZA(),l.YNc(8,w,7,7,"div",5),l.qZA()),2&t&&(l.Tol(e.theme),l.xp6(2),l.Oqu(l.lcZ(3,8,"DIALOGS.ADD_MEMBER_GROUP.TITLE")),l.xp6(2),l.Q6J("ngIf",e.loading),l.xp6(2),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[s.uh,d.O5,s.xY,f.$g,p.L,g.W,s.H8,m.lW],pipes:[h.X$],styles:[""]}),t}(),k=i(67033);function C(t,e){1&t&&l._UZ(0,"mat-spinner",6)}function T(t,e){1&t&&l._UZ(0,"th",15)}function E(t,e){if(1&t&&(l.TgZ(0,"td",16),l._uU(1),l.qZA()),2&t){var i=e.$implicit;l.xp6(1),l.hij(" ",i.name," ")}}function S(t,e){1&t&&l._UZ(0,"tr",17)}function I(t,e){1&t&&l._UZ(0,"tr",18)}function R(t,e){if(1&t&&(l.TgZ(0,"div",7),l.TgZ(1,"p"),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"div",8),l._uU(5),l.ALo(6,"translate"),l.qZA(),l.TgZ(7,"table",9),l.ynx(8,10),l.YNc(9,T,1,0,"th",11),l.YNc(10,E,2,1,"td",12),l.BQk(),l.YNc(11,S,1,0,"tr",13),l.YNc(12,I,1,0,"tr",14),l.qZA(),l.qZA()),2&t){var i=l.oxw();l.xp6(2),l.Oqu(l.lcZ(3,5,"DIALOGS.REMOVE_MEMBER_GROUP.DESCRIPTION")),l.xp6(3),l.hij(" ",l.lcZ(6,7,"DIALOGS.REMOVE_MEMBER_GROUP.ASK")," "),l.xp6(2),l.Q6J("dataSource",i.dataSource),l.xp6(4),l.Q6J("matHeaderRowDef",i.displayedColumns),l.xp6(1),l.Q6J("matRowDefColumns",i.displayedColumns)}}var x=function(){var t=function(){function t(e,i,n,r,o){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.groupManager=n,this.notificator=r,this.translate=o,this.displayedColumns=["name"],this.loading=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new k.by(this.data.groups)}},{key:"onRemove",value:function(){var t=this;this.loading=!0;var e=this.dataSource.data.map(function(t){return t.id});this.groupManager.removeMember(e,this.data.memberId).subscribe(function(){t.notificator.showSuccess(t.translate.instant("DIALOGS.REMOVE_MEMBER_GROUP.SUCCESS")),t.dialogRef.close(!0)},function(){return t.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Y36(s.so),l.Y36(s.WI),l.Y36(n.ff),l.Y36(c.V6),l.Y36(h.sK))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-remove-member-group-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-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,"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"],["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(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,C,1,0,"mat-spinner",1),l.YNc(5,R,13,9,"div",2),l.TgZ(6,"div",3),l.TgZ(7,"button",4),l.NdJ("click",function(){return e.onCancel()}),l._uU(8),l.ALo(9,"translate"),l.qZA(),l.TgZ(10,"button",5),l.NdJ("click",function(){return e.onRemove()}),l._uU(11),l.ALo(12,"translate"),l.qZA(),l.qZA(),l.qZA()),2&t&&(l.Tol(e.theme),l.xp6(2),l.Oqu(l.lcZ(3,9,"DIALOGS.REMOVE_MEMBER_GROUP.TITLE")),l.xp6(2),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(3),l.hij("",l.lcZ(9,11,"DIALOGS.REMOVE_MEMBER_GROUP.CANCEL")," "),l.xp6(2),l.Q6J("disabled",e.loading),l.xp6(1),l.hij("",l.lcZ(12,13,"DIALOGS.REMOVE_MEMBER_GROUP.REMOVE")," "))},directives:[s.uh,d.O5,s.H8,m.lW,f.$g,s.xY,k.BZ,k.w1,k.fO,k.Dz,k.as,k.nj,k.ge,k.ev,k.XQ,k.Gk],pipes:[h.X$],styles:[""]}),t}();i(41939);var O=i(57629),P=i(59403),D=i(36922),M=["list"];function L(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",8),l.NdJ("click",function(){return l.CHM(i),l.oxw().addGroup()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"MEMBER_DETAIL.GROUPS.ADD"),"\n"))}function N(t,e){1&t&&l._UZ(0,"mat-spinner",9)}var z=function(){return["select","id","vo","name","description","expiration"]};function Z(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"perun-web-apps-groups-list",10,11),l.NdJ("refreshTable",function(){return l.CHM(i),l.oxw().refreshTable()}),l.qZA()}if(2&t){var n=l.oxw();l.Q6J("tableId",n.tableId)("groups",n.groups)("displayedColumns",l.DdM(9,z))("selection",n.selection)("filter",n.filterValue)("memberId",n.memberId)("memberGroupStatus",n.member.groupStatus)("disableRouting",!n.routeAuth)("authType","member-groups")}}var B=function(){var t=function(){function t(e,i,n,a,s){_classCallCheck(this,t),this.groupsService=e,this.route=i,this.dialog=n,this.authResolver=a,this.memberService=s,this.filterValue="",this.tableId=r.W1,this.selection=new o.Ov(!0,[])}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.parent.params.subscribe(function(e){t.memberId=e.memberId,t.memberService.getMemberById(t.memberId).subscribe(function(e){t.member=e,t.groupsService.getAllGroups(t.member.voId).subscribe(function(e){t.allGroups=e,t.refreshTable()})})})}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.groupsService.getMemberRichGroupsWithAttributesByNames(this.memberId,["urn:perun:member_group:attribute-def:def:groupMembershipExpiration"]).subscribe(function(e){t.selection.clear(),t.groups=e,t.setAuthRights(),t.loading=!1},function(){return t.loading=!1})}},{key:"setAuthRights",value:function(){var t=this,e={id:this.member.voId,beanName:"Vo"};this.addAuth=this.allGroups.reduce(function(e,i){return e||t.authResolver.isAuthorized("addMember_Group_Member_policy",[i])},!1),0!==this.groups.length&&(this.routeAuth=this.authResolver.isAuthorized("getGroupById_int_policy",[e,this.groups[0]]))}},{key:"addGroup",value:function(){var t=this,e=(0,a.kZ)();e.width="850px",e.data={memberId:this.memberId,membersGroups:new Set(this.groups.map(function(t){return t.id})),theme:"member-theme"},this.dialog.open(A,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"removeGroup",value:function(){var t=this,e=(0,a.kZ)();e.width="650px",e.data={memberId:this.memberId,groups:this.selection.selected,theme:"member-theme"},this.dialog.open(x,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"applyFilter",value:function(t){this.filterValue=t}}]),t}();return t.id="MemberGroupsComponent",t.\u0275fac=function(e){return new(e||t)(l.Y36(n.ff),l.Y36(O.gz),l.Y36(s.uw),l.Y36(c.x4),l.Y36(n.uq))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-member-groups"]],viewQuery:function(t,e){var i;(1&t&&l.Gf(M,5),2&t)&&(l.iGM(i=l.CRH())&&(e.list=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("router-component",e.true)},decls:13,vars:15,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"tableId","groups","displayedColumns","selection","filter","memberId","memberGroupStatus","disableRouting","authType","refreshTable",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],[1,"mr-auto","ml-auto"],[3,"tableId","groups","displayedColumns","selection","filter","memberId","memberGroupStatus","disableRouting","authType","refreshTable"],["list",""]],template:function(t,e){1&t&&(l.TgZ(0,"h1",0),l._uU(1),l.ALo(2,"translate"),l.qZA(),l.TgZ(3,"perun-web-apps-refresh-button",1),l.NdJ("refresh",function(){return e.refreshTable()}),l.qZA(),l.YNc(4,L,3,3,"button",2),l.TgZ(5,"span",3),l.ALo(6,"translate"),l.TgZ(7,"button",4),l.NdJ("click",function(){return e.removeGroup()}),l._uU(8),l.ALo(9,"translate"),l.qZA(),l.qZA(),l.TgZ(10,"perun-web-apps-immediate-filter",5),l.NdJ("filter",function(t){return e.applyFilter(t)}),l.qZA(),l.YNc(11,N,1,0,"mat-spinner",6),l.YNc(12,Z,2,10,"perun-web-apps-groups-list",7)),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,9,"MEMBER_DETAIL.GROUPS.TITLE")),l.xp6(3),l.Q6J("ngIf",e.addAuth),l.xp6(1),l.s9C("matTooltip",l.lcZ(6,11,"MEMBER_DETAIL.GROUPS.REMOVE_PERMISSION_HINT")),l.Q6J("matTooltipDisabled",void 0===e.list||void 0!==e.list&&e.list.removeAuth),l.xp6(2),l.Q6J("disabled",0===e.selection.selected.length||void 0!==e.list&&!e.list.removeAuth),l.xp6(1),l.hij(" ",l.lcZ(9,13,"MEMBER_DETAIL.GROUPS.REMOVE")," "),l.xp6(2),l.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[P.t,d.O5,D.gM,m.lW,p.L,f.$g,g.W],pipes:[h.X$],styles:[""]}),t}()},40659:function(t,e,i){"use strict";i.d(e,{c:function(){return S}});var n=i(65249),r=i(60611),o=i(16073),a=i(61511),s=i(68416),c=i(31572),u=i(59403),l=i(66283),h=i(4786),d=i(71522),f=i(91058),p=i(51613),g=i(29236),m=i(15980),v=i(67806),y=i(21548),_=i(29851),b=i(48160);function w(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"button",16),c.NdJ("click",function(){return c.CHM(i),c.oxw().showAllDetails=!0}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function A(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"button",16),c.NdJ("click",function(){return c.CHM(i),c.oxw().showAllDetails=!1}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}function k(t,e){1&t&&c._UZ(0,"mat-spinner",17)}function C(t,e){if(1&t&&c._UZ(0,"app-applications-list",20),2&t){var i=c.oxw(2);c.Q6J("tableId",i.tableId)("filterValue",i.filterValue)("applications",i.applications)("displayedColumns",i.displayedColumns)}}function T(t,e){if(1&t&&c._UZ(0,"app-perun-web-apps-application-list-details",21),2&t){var i=c.oxw(2);c.Q6J("tableId",i.detailTableId)("filterValue",i.filterValue)("applications",i.applications)}}function E(t,e){if(1&t&&(c.TgZ(0,"div"),c.YNc(1,C,1,4,"app-applications-list",18),c.YNc(2,T,1,3,"app-perun-web-apps-application-list-details",19),c.qZA()),2&t){var i=c.oxw();c.xp6(1),c.Q6J("ngIf",!i.showAllDetails),c.xp6(1),c.Q6J("ngIf",i.showAllDetails)}}var S=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.registrarManager=e,this.entityStorageService=i,this.state="pending",this.loading=!1,this.applications=[],this.displayedColumns=["id","createdAt","type","state","user","group","modifiedBy"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=r.Jf,this.tableId=r.Hi,this.checked=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.startDate=new o.NI((0,a.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new o.NI((0,a.p6)(new Date,"yyyy-MM-dd","en-GB")),this.setData(["NEW","VERIFIED"])}},{key:"setData",value:function(t){var e=this;this.registrarManager.getApplicationsForVo(this.vo.id,t,(0,a.p6)(this.startDate.value,"yyyy-MM-dd","en-GB"),(0,a.p6)(this.endDate.value,"yyyy-MM-dd","en-GB")).subscribe(function(t){e.applications=!1===e.checked?t.filter(function(t){return null===t.group}):t,e.loading=!1})}},{key:"select",value:function(){switch(this.loading=!0,this.state){case"approved":this.setData(["APPROVED"]);break;case"rejected":this.setData(["REJECTED"]);break;case"wfmv":this.setData(["NEW"]);break;case"submited":this.setData(["VERIFIED"]);break;case"pending":this.setData(["NEW","VERIFIED"]);break;case"all":this.setData(null)}}},{key:"yearAgo",value:function(){var t=new Date,e=t.getFullYear()-1,i=t.getMonth(),n=t.getDate();return new Date(e,i,n)}},{key:"showGroupApplications",value:function(t){this.checked=t.checked,this.select()}},{key:"applyFilter",value:function(t){this.filterValue=t}}]),t}();return t.id="VoApplicationsComponent",t.\u0275fac=function(e){return new(e||t)(c.Y36(n.tk),c.Y36(s.fb))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-vo-applications"]],hostVars:2,hostBindings:function(t,e){2&t&&c.ekj("router-component",e.true)},decls:38,vars:36,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,"startDate","endDate","datePicker"],["color","primary",3,"checked","change"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","applications","displayedColumns",4,"ngIf"],[3,"tableId","filterValue","applications",4,"ngIf"],[3,"tableId","filterValue","applications","displayedColumns"],[3,"tableId","filterValue","applications"]],template:function(t,e){1&t&&(c.TgZ(0,"h1",0),c._uU(1),c.ALo(2,"translate"),c.qZA(),c.TgZ(3,"div"),c.TgZ(4,"perun-web-apps-refresh-button",1),c.NdJ("refresh",function(){return e.select()}),c.qZA(),c.YNc(5,w,3,3,"button",2),c.YNc(6,A,3,3,"button",2),c.TgZ(7,"mat-form-field",3),c.TgZ(8,"mat-label"),c._uU(9),c.ALo(10,"translate"),c.qZA(),c.TgZ(11,"mat-select",4),c.NdJ("selectionChange",function(){return e.select()})("valueChange",function(t){return e.state=t}),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.qZA(),c.qZA(),c.TgZ(30,"perun-web-apps-debounce-filter",11),c.NdJ("filter",function(t){return e.applyFilter(t)}),c.qZA(),c.TgZ(31,"perun-web-apps-date-range",12),c.NdJ("datePicker",function(){return e.select()}),c.qZA(),c.TgZ(32,"div"),c.TgZ(33,"mat-checkbox",13),c.NdJ("change",function(t){return e.showGroupApplications(t)}),c._uU(34),c.ALo(35,"translate"),c.qZA(),c.qZA(),c.qZA(),c.YNc(36,k,1,0,"mat-spinner",14),c.YNc(37,E,3,2,"div",15)),2&t&&(c.xp6(1),c.Oqu(c.lcZ(2,18,"VO_DETAIL.APPLICATION.TITLE")),c.xp6(4),c.Q6J("ngIf",!e.showAllDetails),c.xp6(1),c.Q6J("ngIf",e.showAllDetails),c.xp6(3),c.Oqu(c.lcZ(10,20,"VO_DETAIL.APPLICATION.TABLE_STATE")),c.xp6(2),c.Q6J("value",e.state),c.xp6(2),c.Oqu(c.lcZ(14,22,"VO_DETAIL.APPLICATION.SELECTION_ALL")),c.xp6(3),c.Oqu(c.lcZ(17,24,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),c.xp6(3),c.Oqu(c.lcZ(20,26,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),c.xp6(3),c.Oqu(c.lcZ(23,28,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),c.xp6(3),c.Oqu(c.lcZ(26,30,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),c.xp6(3),c.Oqu(c.lcZ(29,32,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),c.xp6(2),c.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),c.xp6(1),c.Q6J("startDate",e.startDate)("endDate",e.endDate),c.xp6(2),c.Q6J("checked",e.checked),c.xp6(1),c.hij(" ",c.lcZ(35,34,"VO_DETAIL.APPLICATION.SHOW_GROUP_APPLICATIONS")," "),c.xp6(2),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading))},directives:[u.t,a.O5,l.KE,l.hX,h.gD,d.ey,f.P,p.S,g.oG,m.lW,v.$g,y.M,_.w],pipes:[b.X$],styles:[""]}),t}()},48002:function(t,e,i){"use strict";i.d(e,{G:function(){return N}});var n=i(88419),r=i(43491),o=i(4230),a=i(57820),s=i(84140),c=i(65249),u=i(60611),l=i(67004),h=i(68416),d=(i(41939),i(31572)),f=i(84608),p=i(59403),g=i(61511),m=i(36922),v=i(15980),y=i(91058),_=i(27521),b=i(16073),w=i(67806),A=i(11441),k=i(78364),C=i(39571),T=i(48160),E=["toggle"],S=["tree"],I=["list"];function R(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"button",11),d.NdJ("click",function(){return d.CHM(i),d.oxw().onCreateGroup()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}2&t&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"VO_DETAIL.GROUPS.CREATE_GROUP")," "))}function x(t,e){1&t&&d._UZ(0,"mat-spinner",12)}function O(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"perun-web-apps-groups-tree",16,17),d.NdJ("moveGroup",function(t){return d.CHM(i),d.oxw(2).onMoveGroup(t)})("refreshTable",function(){return d.CHM(i),d.oxw(2).loadAllGroups()}),d.qZA()}if(2&t){var n=d.oxw(2);d.Q6J("groups",n.groups)("expandAll",n.filtering)("vo",n.vo)("selection",n.selected)("disableRouting",!n.routeAuth)("filterValue",n.filterValue)}}var P=function(){return["select","id","name","description","menu"]};function D(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"perun-web-apps-groups-list",18,19),d.NdJ("moveGroup",function(t){return d.CHM(i),d.oxw(2).onMoveGroup(t)})("refreshTable",function(){return d.CHM(i),d.oxw(2).loadAllGroups()}),d.qZA()}if(2&t){var n=d.oxw(2);d.Q6J("tableId",n.tableId)("groups",n.groups)("selection",n.selected)("disableMembers",!0)("displayedColumns",d.DdM(8,P))("disableRouting",!n.routeAuth)("authType","vo-groups")("filter",n.filterValue)}}function M(t,e){if(1&t&&(d.TgZ(0,"div",13),d.YNc(1,O,2,6,"perun-web-apps-groups-tree",14),d.YNc(2,D,2,9,"perun-web-apps-groups-list",15),d.qZA()),2&t){var i=d.oxw();d.xp6(1),d.Q6J("ngIf",!i.showGroupList),d.xp6(1),d.Q6J("ngIf",i.showGroupList)}}function L(t,e){1&t&&(d.TgZ(0,"app-alert",20),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"VO_DETAIL.GROUPS.NO_GROUPS")," "))}var N=function(){var t=function(){function t(e,i,n,r){_classCallCheck(this,t),this.dialog=e,this.groupService=i,this.authResolver=n,this.entityStorageService=r,this.groups=[],this.showGroupList=!1,this.selected=new o.Ov(!0,[]),this.filtering=!1,this.filterValue="",this.tableId=u.rc}return _createClass(t,[{key:"onCreateGroup",value:function(){var t=this,e=(0,s.kZ)();e.width="450px",e.data={voId:this.vo.id,parentGroup:null,theme:"vo-theme"},this.dialog.open(n.y,e).afterClosed().subscribe(function(e){e&&(t.loading=!0,t.loadAllGroups())})}},{key:"ngOnInit",value:function(){var t=this;this.loading=!0,"list"===localStorage.getItem("preferedValue")&&(this.toggle.toggle(),this.selected.clear(),this.showGroupList=!0),this.toggle.change.subscribe(function(){localStorage.setItem("preferedValue",t.toggle.checked?"list":"tree"),t.loadAllGroups()}),this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.loadAllGroups()}},{key:"setAuthRights",value:function(){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]]))}},{key:"disableRemove",value:function(){return void 0!==this.tree&&!this.tree.removeAuth||void 0!==this.list&&!this.list.removeAuth}},{key:"disableTooltip",value:function(){return void 0!==this.tree&&this.tree.removeAuth||void 0!==this.list&&this.list.removeAuth}},{key:"deleteGroup",value:function(){var t=this,e=(0,s.kZ)();e.width="450px",e.data={voId:this.vo.id,groups:this.selected.selected,theme:"vo-theme"},this.dialog.open(r.P,e).afterClosed().subscribe(function(e){e&&t.loadAllGroups()})}},{key:"removeAllGroups",value:function(){this.selected.clear()}},{key:"onMoveGroup",value:function(t){var e=this,i=(0,s.kZ)();i.width="550px",i.data={group:t,theme:"vo-theme"},this.dialog.open(a.c,i).afterClosed().subscribe(function(t){t&&e.loadAllGroups()})}},{key:"loadAllGroups",value:function(){var t=this;this.loading=!0,this.groupService.getAllRichGroupsWithAttributesByNames(this.vo.id,[l.r.GROUP_SYNC_ENABLED,l.r.GROUP_LAST_SYNC_STATE,l.r.GROUP_LAST_SYNC_TIMESTAMP,l.r.GROUP_STRUCTURE_SYNC_ENABLED,l.r.GROUP_LAST_STRUCTURE_SYNC_STATE,l.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(function(e){t.groups=e,t.selected.clear(),t.setAuthRights(),t.loading=!1})}},{key:"applyFilter",value:function(t){this.filterValue=t,this.filtering=""!==t}}]),t}();return t.id="VoGroupsComponent",t.\u0275fac=function(e){return new(e||t)(d.Y36(f.uw),d.Y36(c.ff),d.Y36(h.x4),d.Y36(h.fb))},t.\u0275cmp=d.Xpm({type:t,selectors:[["app-vo-groups"]],viewQuery:function(t,e){var i;(1&t&&(d.Gf(E,7),d.Gf(S,5),d.Gf(I,5)),2&t)&&(d.iGM(i=d.CRH())&&(e.toggle=i.first),d.iGM(i=d.CRH())&&(e.tree=i.first),d.iGM(i=d.CRH())&&(e.list=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&d.ekj("router-component",e.true)},decls:22,vars:24,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2 action-button","data-cy","create-group-button",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","warn","data-cy","delete-group-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"],["mat-flat-button","","color","accent","data-cy","create-group-button",1,"mr-2","action-button",3,"click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],["theme","vo-theme",3,"groups","expandAll","vo","selection","disableRouting","filterValue","moveGroup","refreshTable",4,"ngIf"],["theme","vo-theme",3,"tableId","groups","selection","disableMembers","displayedColumns","disableRouting","authType","filter","moveGroup","refreshTable",4,"ngIf"],["theme","vo-theme",3,"groups","expandAll","vo","selection","disableRouting","filterValue","moveGroup","refreshTable"],["tree",""],["theme","vo-theme",3,"tableId","groups","selection","disableMembers","displayedColumns","disableRouting","authType","filter","moveGroup","refreshTable"],["list",""],["alert_type","warn"]],template:function(t,e){if(1&t&&(d.TgZ(0,"div"),d.TgZ(1,"h1",0),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"perun-web-apps-refresh-button",1),d.NdJ("refresh",function(){return e.loadAllGroups()}),d.qZA(),d.YNc(5,R,3,3,"button",2),d.TgZ(6,"span",3),d.ALo(7,"translate"),d.TgZ(8,"button",4),d.NdJ("click",function(){return e.deleteGroup()}),d._uU(9),d.ALo(10,"translate"),d.qZA(),d.qZA(),d.TgZ(11,"perun-web-apps-debounce-filter",5),d.NdJ("filter",function(t){return e.applyFilter(t)}),d.qZA(),d.TgZ(12,"mat-slide-toggle",6,7),d.NdJ("change",function(){return e.removeAllGroups()})("ngModelChange",function(t){return e.showGroupList=t}),d._uU(14),d.ALo(15,"translate"),d.qZA(),d.TgZ(16,"label"),d._uU(17),d.ALo(18,"translate"),d.qZA(),d.YNc(19,x,1,0,"mat-spinner",8),d.YNc(20,M,3,2,"div",9),d.YNc(21,L,3,3,"app-alert",10),d.qZA()),2&t){var i=d.MAs(13);d.xp6(2),d.Oqu(d.lcZ(3,14,"VO_DETAIL.GROUPS.TITLE")),d.xp6(3),d.Q6J("ngIf",e.createAuth),d.xp6(1),d.s9C("matTooltip",d.lcZ(7,16,"VO_DETAIL.GROUPS.DELETE_PERMISSION_HINT")),d.Q6J("matTooltipDisabled",void 0===e.tree&&void 0===e.list||e.disableTooltip()),d.xp6(2),d.Q6J("disabled",0===e.selected.selected.length||e.disableRemove()),d.xp6(1),d.hij(" ",d.lcZ(10,18,"VO_DETAIL.GROUPS.DELETE_GROUP")," "),d.xp6(2),d.Q6J("placeholder","VO_DETAIL.GROUPS.FILTER"),d.xp6(1),d.Q6J("ngModel",e.showGroupList),d.xp6(2),d.Oqu(d.lcZ(15,20,"VO_DETAIL.GROUPS.TREE_VIEW")),d.xp6(2),d.uIk("for",i.inputId),d.xp6(1),d.Oqu(d.lcZ(18,22,"VO_DETAIL.GROUPS.LIST_VIEW")),d.xp6(2),d.Q6J("ngIf",e.loading),d.xp6(1),d.Q6J("ngIf",!e.loading&&0!==e.groups.length),d.xp6(1),d.Q6J("ngIf",0===e.groups.length&&!e.loading)}},directives:[p.t,g.O5,m.gM,v.lW,y.P,_.Rr,b.JJ,b.On,w.$g,A.I,k.W,C.w],pipes:[T.X$],styles:[""]}),t}()},28940:function(t,e,i){"use strict";i.d(e,{y:function(){return D}});var n=i(4230),r=i(68416),o=i(4374),a=i(85613),s=i(65249),c=i(67004),u=i(16073),l=i(60611),h=i(84140),d=i(88690),f=i(31572),p=i(84608),g=i(59403),m=i(36922),v=i(61511),y=i(66283),_=i(4786),b=i(91058),w=i(15980),A=i(71522),k=i(67806),C=i(91779),T=i(48160),E=i(5725);function S(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",14),f.NdJ("click",function(){return f.CHM(i),f.oxw().onAddMember()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}if(2&t){var n=f.oxw();f.Q6J("disabled",n.blockManualMemberAdding),f.xp6(1),f.hij(" ",f.lcZ(2,2,"VO_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function I(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",15),f.NdJ("click",function(){return f.CHM(i),f.oxw().onInviteMember()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"VO_DETAIL.MEMBERS.INVITE")," "))}function R(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",16),f.NdJ("click",function(){return f.CHM(i),f.oxw().onRemoveMembers()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}if(2&t){var n=f.oxw();f.Q6J("disabled",n.selection.isEmpty()),f.xp6(1),f.hij(" ",f.lcZ(2,2,"VO_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function x(t,e){if(1&t&&(f.TgZ(0,"mat-option",17),f._uU(1),f.ALo(2,"memberStatus"),f.qZA()),2&t){var i=e.$implicit;f.Q6J("value",i),f.xp6(1),f.Oqu(f.lcZ(2,2,i))}}function O(t,e){1&t&&f._UZ(0,"mat-spinner",18)}function P(t,e){if(1&t&&f._UZ(0,"perun-web-apps-members-dynamic-list",19),2&t){var i=f.oxw();f.Q6J("voId",i.vo.id)("tableId",i.tableId)("selection",i.selection)("displayedColumns",i.displayedColumns)("attrNames",i.attrNames)("searchString",i.searchString)("selectedStatuses",i.selectedStatuses)("updateTable",i.updateTable)}}var D=function(){var t=function(){function t(e,i,r,o,a,s,h){_classCallCheck(this,t),this.notificator=e,this.dialog=i,this.authzService=r,this.storeService=o,this.attributesManager=a,this.apiRequest=s,this.entityStorageService=h,this.members=null,this.selection=new n.Ov(!0,[]),this.loading=!1,this.attrNames=[c.r.MEMBER_DEF_ORGANIZATION,c.r.MEMBER_DEF_MAIL,c.r.USER_DEF_ORGANIZATION,c.r.USER_DEF_PREFERRED_MAIL,c.r.MEMBER_DEF_EXPIRATION],this.statuses=new u.NI,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=[],this.tableId=l.j1,this.displayedColumns=["checkbox","id","fullName","status","organization","email","logins"],this.updateTable=!1}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;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(function(){return t.loading=!1})}},{key:"setAuthRights",value:function(){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])}},{key:"onSearchByString",value:function(t){this.searchString=t,this.updateTable=!this.updateTable}},{key:"onAddMember",value:function(){var t=this,e=(0,h.kZ)();e.width="1000px",e.data={entityId:this.vo.id,voId:this.vo.id,theme:"vo-theme",type:"vo"},this.dialog.open(a.o,e).afterClosed().subscribe(function(e){e&&(t.updateTable=!t.updateTable,t.selection.clear())})}},{key:"onRemoveMembers",value:function(){var t=this,e=(0,h.kZ)();e.width="450px",e.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(o.X,e).afterClosed().subscribe(function(e){e&&(t.updateTable=!t.updateTable,t.selection.clear())})}},{key:"onInviteMember",value:function(){var t=(0,h.kZ)();t.width="650px",t.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(d.R,t)}},{key:"displaySelectedStatuses",value:function(){return this.selectedStatuses.length===this.statusList.length?"ALL":this.statuses.value?"".concat(this.statuses.value[0]," ").concat(this.statuses.value.length>1?"(+"+(this.statuses.value.length-1)+" "+(2===this.statuses.value.length?"other)":"others)"):""):""}},{key:"isManualAddingBlocked",value:function(t){var e=this;return new Promise(function(i){e.apiRequest.dontHandleErrorForNext(),e.attributesManager.getVoAttributeByName(t,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe(function(t){e.blockManualMemberAdding=null!==t.value,i()},function(t){"PrivilegeException"!==t.error.name&&e.notificator.showError(t),i()})})}},{key:"changeStatuses",value:function(){this.selectedStatuses=this.statuses.value}}]),t}();return t.id="VoMembersComponent",t.\u0275fac=function(e){return new(e||t)(f.Y36(r.V6),f.Y36(p.uw),f.Y36(r.x4),f.Y36(r.d6),f.Y36(s.H8),f.Y36(r.F5),f.Y36(r.fb))},t.\u0275cmp=f.Xpm({type:t,selectors:[["app-vo-members"]],hostVars:2,hostBindings:function(t,e){2&t&&f.ekj("router-component",e.true)},decls:23,vars:21,consts:[[1,"vo-theme"],[1,"page-subtitle"],[1,"align-elements"],[3,"click"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent","class","mr-2 action-button","data-cy","add-members",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2","data-cy","remove-members",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,"voId","tableId","selection","displayedColumns","attrNames","searchString","selectedStatuses","updateTable",4,"ngIf"],["mat-flat-button","","color","accent","data-cy","add-members",1,"mr-2","action-button",3,"disabled","click"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn","data-cy","remove-members",1,"mr-2",3,"disabled","click"],[1,"vo-theme",3,"value"],[1,"ml-auto","mr-auto"],[3,"voId","tableId","selection","displayedColumns","attrNames","searchString","selectedStatuses","updateTable"]],template:function(t,e){1&t&&(f.TgZ(0,"div",0),f.TgZ(1,"h1",1),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"div",2),f.TgZ(5,"perun-web-apps-refresh-button",3),f.NdJ("click",function(){return e.updateTable=!e.updateTable}),f.qZA(),f.TgZ(6,"div",4),f.ALo(7,"translate"),f.YNc(8,S,3,4,"button",5),f.qZA(),f.YNc(9,I,3,3,"button",6),f.YNc(10,R,3,4,"button",7),f.TgZ(11,"mat-form-field",8),f.TgZ(12,"mat-label"),f._uU(13),f.ALo(14,"translate"),f.qZA(),f.TgZ(15,"mat-select",9),f.NdJ("closed",function(){return e.changeStatuses()}),f.TgZ(16,"mat-select-trigger"),f._uU(17),f.ALo(18,"memberStatus"),f.qZA(),f.YNc(19,x,3,4,"mat-option",10),f.qZA(),f.qZA(),f.TgZ(20,"perun-web-apps-debounce-filter",11),f.NdJ("filter",function(t){return e.onSearchByString(t)}),f.qZA(),f.qZA(),f.YNc(21,O,1,0,"mat-spinner",12),f.YNc(22,P,1,8,"perun-web-apps-members-dynamic-list",13),f.qZA()),2&t&&(f.xp6(2),f.Oqu(f.lcZ(3,13,"VO_DETAIL.MEMBERS.TITLE")),f.xp6(4),f.s9C("matTooltip",f.lcZ(7,15,"VO_DETAIL.MEMBERS.ADD_MEMBER_DISABLED")),f.Q6J("matTooltipDisabled",!e.blockManualMemberAdding),f.xp6(2),f.Q6J("ngIf",e.addAuth),f.xp6(1),f.Q6J("ngIf",e.inviteAuth),f.xp6(1),f.Q6J("ngIf",e.removeAuth),f.xp6(3),f.Oqu(f.lcZ(14,17,"VO_DETAIL.MEMBERS.FILTER_STATUS")),f.xp6(2),f.Q6J("formControl",e.statuses),f.xp6(2),f.hij(" ",f.lcZ(18,19,e.displaySelectedStatuses())," "),f.xp6(2),f.Q6J("ngForOf",e.statusList),f.xp6(1),f.Q6J("placeholder","VO_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),f.xp6(1),f.Q6J("ngIf",e.loading),f.xp6(1),f.Q6J("ngIf",!e.loading))},directives:[g.t,m.gM,v.O5,y.KE,y.hX,_.gD,u.JJ,u.oH,_.$L,v.sg,b.P,w.lW,A.ey,k.$g,C.m],pipes:[T.X$,E.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}"]}),t}()},88227:function(t,e,i){"use strict";i.d(e,{z:function(){return w}});var n=i(4230),r=i(65249),o=i(95909),a=i(60611),s=i(84140),c=i(68416),u=i(31572),l=i(84608),h=i(59403),d=i(61511),f=i(19139),p=i(15980),g=i(67806),m=i(88884),v=i(48160);function y(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"button",6),u.NdJ("click",function(){return u.CHM(i),u.oxw().deleteSelectedResources()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}if(2&t){var n=u.oxw();u.Q6J("disabled",0===n.selected.selected.length),u.xp6(1),u.hij(" ",u.lcZ(2,2,"VO_DETAIL.RESOURCES.LIST.DELETE")," ")}}function _(t,e){1&t&&u._UZ(0,"mat-spinner",7)}function b(t,e){if(1&t&&u._UZ(0,"perun-web-apps-resources-list",8),2&t){var i=u.oxw();u.Q6J("tableId",i.tableId)("filterValue",i.filterValue)("resources",i.resources)("routingVo",!0)("disableRouting",!i.routeAuth)("selection",i.selected)("displayedColumns",i.displayedColumns)}}var w=function(){var t=function(){function t(e,i,r,o){_classCallCheck(this,t),this.resourcesManager=e,this.dialog=i,this.authResolver=r,this.entityStorageService=o,this.resources=[],this.selected=new n.Ov(!0,[]),this.filterValue="",this.displayedColumns=[],this.tableId=a.nT,this.routeAuth=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}},{key:"setAuthRights",value:function(){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"]}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.resourcesManager.getRichResources(this.vo.id).subscribe(function(e){t.resources=e,t.selected.clear(),t.setAuthRights(),t.loading=!1})}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"deleteSelectedResources",value:function(){var t=this,e=(0,s.kZ)();e.width="450px",e.data={theme:"vo-theme",resources:this.selected.selected},this.dialog.open(o.f,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}}]),t}();return t.id="VoResourcesPreviewComponent",t.\u0275fac=function(e){return new(e||t)(u.Y36(r.xk),u.Y36(l.uw),u.Y36(c.x4),u.Y36(c.fb))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-vo-resources-preview"]],hostVars:2,hostBindings:function(t,e){2&t&&u.ekj("router-component",e.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,"tableId","filterValue","resources","routingVo","disableRouting","selection","displayedColumns",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","resources","routingVo","disableRouting","selection","displayedColumns"]],template:function(t,e){1&t&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"perun-web-apps-refresh-button",1),u.NdJ("refresh",function(){return e.refreshTable()}),u.qZA(),u.YNc(5,y,3,4,"button",2),u.TgZ(6,"perun-web-apps-immediate-filter",3),u.NdJ("filter",function(t){return e.applyFilter(t)}),u.qZA(),u.YNc(7,_,1,0,"mat-spinner",4),u.YNc(8,b,1,7,"perun-web-apps-resources-list",5),u.qZA()),2&t&&(u.xp6(2),u.Oqu(u.lcZ(3,5,"VO_DETAIL.RESOURCES.LIST.TITLE")),u.xp6(3),u.Q6J("ngIf",e.removeAuth),u.xp6(1),u.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading))},directives:[h.t,d.O5,f.L,p.lW,g.$g,m.C],pipes:[v.X$],styles:[""]}),t}()},97397:function(t,e,i){"use strict";i.d(e,{z:function(){return Q}});var n=i(68416),r=i(65249),o=i(31572),a=i(59403),s=i(55109),c=i(61511),u=i(67033),l=i(67806),h=i(45001),d=i(27679),f=i(48160);function p(t,e){1&t&&o._UZ(0,"mat-spinner",2)}function g(t,e){if(1&t&&(o.TgZ(0,"mat-panel-description"),o.TgZ(1,"div"),o.TgZ(2,"i",10),o._uU(3," error "),o.qZA(),o._uU(4),o.ALo(5,"translate"),o.ALo(6,"translate"),o.qZA(),o.qZA()),2&t){var i=o.oxw().$implicit,n=o.oxw(2);o.xp6(4),o.HOy(" ",n.getErrorCountStates(i)," ",o.lcZ(5,4,"VO_DETAIL.RESOURCES.STATES.FROM")," ",i.taskList.length," ",o.lcZ(6,6,"VO_DETAIL.RESOURCES.STATES.TASKS_WITH_ERROR_STATE")," ")}}function m(t,e){1&t&&(o.TgZ(0,"th",23),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ID")))}function v(t,e){if(1&t&&(o.TgZ(0,"td",24),o._uU(1),o.qZA()),2&t){var i=e.$implicit;o.xp6(1),o.Oqu(i.id)}}function y(t,e){1&t&&(o.TgZ(0,"th",23),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SERVICE")))}function _(t,e){if(1&t&&(o.TgZ(0,"td",24),o._uU(1),o.qZA()),2&t){var i=e.$implicit;o.xp6(1),o.Oqu(i.service.name)}}function b(t,e){1&t&&(o.TgZ(0,"th",23),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STATUS")))}function w(t,e){if(1&t&&(o.TgZ(0,"td",24),o._uU(1),o.qZA()),2&t){var i=e.$implicit;o.xp6(1),o.Oqu(i.status)}}function A(t,e){1&t&&(o.TgZ(0,"th",23),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SCHEDULED")))}function k(t,e){if(1&t&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&t){var i=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,i.schedule,"d.M.y H:mm:ss")," ")}}function C(t,e){1&t&&(o._uU(0),o.ALo(1,"translate")),2&t&&o.hij(" ",o.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function T(t,e){if(1&t&&(o.TgZ(0,"td",24),o.YNc(1,k,3,4,"div",25),o.YNc(2,C,2,3,"ng-template",26,27,o.W1O),o.qZA()),2&t){var i=e.$implicit,n=o.MAs(3);o.xp6(1),o.Q6J("ngIf",i.schedule)("ngIfElse",n)}}function E(t,e){1&t&&(o.TgZ(0,"th",23),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STARTED")))}function S(t,e){if(1&t&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&t){var i=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,i.schedule,"d.M.y H:mm:ss")," ")}}function I(t,e){1&t&&(o._uU(0),o.ALo(1,"translate")),2&t&&o.hij(" ",o.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function R(t,e){if(1&t&&(o.TgZ(0,"td",24),o.YNc(1,S,3,4,"div",25),o.YNc(2,I,2,3,"ng-template",26,27,o.W1O),o.qZA()),2&t){var i=e.$implicit,n=o.MAs(3);o.xp6(1),o.Q6J("ngIf",i.startTime)("ngIfElse",n)}}function x(t,e){1&t&&(o.TgZ(0,"th",23),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ENDED")))}function O(t,e){if(1&t&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&t){var i=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,i.schedule,"d.M.y H:mm:ss")," ")}}function P(t,e){1&t&&(o._uU(0),o.ALo(1,"translate")),2&t&&o.hij(" ",o.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function D(t,e){if(1&t&&(o.TgZ(0,"td",24),o.YNc(1,O,3,4,"div",25),o.YNc(2,P,2,3,"ng-template",26,27,o.W1O),o.qZA()),2&t){var i=e.$implicit,n=o.MAs(3);o.xp6(1),o.Q6J("ngIf",i.endTime)("ngIfElse",n)}}function M(t,e){1&t&&o._UZ(0,"tr",28)}var L=function(t,e,i){return{redTableItem:t,greenTableItem:e,yellowTableItem:i}};function N(t,e){if(1&t&&o._UZ(0,"tr",29),2&t){var i=e.$implicit;o.Q6J("ngClass",o.kEZ(1,L,"ERROR"===i.status||"SENDERROR"===i.status||"GENERROR"===i.status,"DONE"===i.status,"WARNING"===i.status))}}function z(t,e){if(1&t&&(o.TgZ(0,"table",12),o.ynx(1,13),o.YNc(2,m,3,3,"th",14),o.YNc(3,v,2,1,"td",15),o.BQk(),o.ynx(4,16),o.YNc(5,y,3,3,"th",14),o.YNc(6,_,2,1,"td",15),o.BQk(),o.ynx(7,17),o.YNc(8,b,3,3,"th",14),o.YNc(9,w,2,1,"td",15),o.BQk(),o.ynx(10,18),o.YNc(11,A,3,3,"th",14),o.YNc(12,T,4,2,"td",15),o.BQk(),o.ynx(13,19),o.YNc(14,E,3,3,"th",14),o.YNc(15,R,4,2,"td",15),o.BQk(),o.ynx(16,20),o.YNc(17,x,3,3,"th",14),o.YNc(18,D,4,2,"td",15),o.BQk(),o.YNc(19,M,1,0,"tr",21),o.YNc(20,N,1,5,"tr",22),o.qZA()),2&t){var i=o.oxw(2).$implicit,n=o.oxw(2);o.Q6J("dataSource",n.datasources[n.propagation.indexOf(i)]),o.xp6(19),o.Q6J("matHeaderRowDef",n.displayedColumns),o.xp6(1),o.Q6J("matRowDefColumns",n.displayedColumns)}}function Z(t,e){1&t&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_TASKS")," "))}function B(t,e){if(1&t&&(o._UZ(0,"mat-divider"),o.YNc(1,z,21,3,"table",11),o.YNc(2,Z,3,3,"div",8)),2&t){var i=o.oxw().$implicit;o.xp6(1),o.Q6J("ngIf",0!==i.taskList.length),o.xp6(1),o.Q6J("ngIf",0===i.taskList.length)}}function F(t,e){if(1&t&&(o.TgZ(0,"mat-expansion-panel"),o.TgZ(1,"mat-expansion-panel-header"),o.TgZ(2,"mat-panel-title"),o._UZ(3,"img",6),o.TgZ(4,"div",7),o._uU(5),o.qZA(),o.qZA(),o.YNc(6,g,7,8,"mat-panel-description",8),o.qZA(),o.YNc(7,B,3,2,"ng-template",9),o.qZA()),2&t){var i=e.$implicit,n=o.oxw(2);o.xp6(5),o.hij(" ",i.resource.name," "),o.xp6(1),o.Q6J("ngIf",0!==n.getErrorCountStates(i))}}function q(t,e){if(1&t&&(o.TgZ(0,"div",3),o.TgZ(1,"mat-accordion",4),o.YNc(2,F,8,2,"mat-expansion-panel",5),o.qZA(),o.qZA()),2&t){var i=o.oxw();o.xp6(2),o.Q6J("ngForOf",i.propagation)}}var H=function(){var t=function(){function t(){_classCallCheck(this,t),this.propagation=[],this.loading=!1,this.datasources=[],this.displayedColumns=["id","service","status","scheduled","started","ended"]}return _createClass(t,[{key:"getErrorCountStates",value:function(t){var e,i=0,n=_createForOfIteratorHelper(t.taskList);try{for(n.s();!(e=n.n()).done;){var r=e.value;"ERROR"!==r.status&&"GENERROR"!==r.status&&"SENDERROR"!==r.status||i++}}catch(o){n.e(o)}finally{n.f()}return i}},{key:"getDataSource",value:function(){this.datasources=[];var t,e=_createForOfIteratorHelper(this.propagation);try{for(e.s();!(t=e.n()).done;){var i=t.value;this.datasources.push(new u.by(i.taskList))}}catch(n){e.e(n)}finally{e.f()}}},{key:"ngOnChanges",value:function(){this.getDataSource()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-state-tab"]],inputs:{propagation:"propagation",loading:"loading"},features:[o.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"],["src","assets/img/PerunWebImages/resource-black.svg","height","28","width","28"],[1,"ml-2"],[4,"ngIf"],["matExpansionPanelContent",""],[1,"material-icons","red"],["mat-table","","class","w-100",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(t,e){1&t&&(o.YNc(0,p,1,0,"mat-spinner",0),o.YNc(1,q,3,1,"div",1)),2&t&&(o.Q6J("ngIf",e.loading),o.xp6(1),o.Q6J("ngIf",!e.loading))},directives:[c.O5,l.$g,h.pp,c.sg,h.ib,h.yz,h.yK,h.HS,h.u4,d.d,u.BZ,u.w1,u.fO,u.Dz,u.as,u.nj,u.ge,u.ev,u.XQ,u.Gk,c.mk],pipes:[f.X$,c.uU],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-description[_ngcontent-%COMP%], .headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_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}"]}),t}(),U=i(39571);function G(t,e){if(1&t&&(o._uU(0),o.ALo(1,"translate"),o.TgZ(2,"span",5),o._uU(3),o.qZA()),2&t){var i=o.oxw();o.hij(" ",o.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.ERROR_RESOURCES")," "),o.xp6(3),o.Oqu(i.errorPropagation.length)}}function j(t,e){1&t&&(o.TgZ(0,"app-alert",8),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_ERROR")," "))}function Y(t,e){if(1&t&&(o.YNc(0,j,3,3,"app-alert",6),o._UZ(1,"app-state-tab",7)),2&t){var i=o.oxw();o.Q6J("ngIf",!i.loading&&0===i.errorPropagation.length),o.xp6(1),o.Q6J("loading",i.loading)("propagation",i.errorPropagation)}}function K(t,e){if(1&t&&(o._uU(0),o.ALo(1,"translate"),o.TgZ(2,"span",9),o._uU(3),o.qZA()),2&t){var i=o.oxw();o.hij(" ",o.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.OK_RESOURCES")," "),o.xp6(3),o.Oqu(i.okPropagation.length)}}function V(t,e){1&t&&(o.TgZ(0,"app-alert",8),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_OK")," "))}function J(t,e){if(1&t&&(o.YNc(0,V,3,3,"app-alert",6),o._UZ(1,"app-state-tab",7)),2&t){var i=o.oxw();o.Q6J("ngIf",!i.loading&&0===i.okPropagation.length),o.xp6(1),o.Q6J("loading",i.loading)("propagation",i.okPropagation)}}var Q=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.taskService=e,this.entityStorageService=i,this.loading=!1,this.okPropagation=[],this.errorPropagation=[],this.resourceStates=[],this.selectedIndex=0}return _createClass(t,[{key:"ngOnInit",value:function(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.refreshTable()}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.taskService.getAllResourcesState(this.vo.id).subscribe(function(e){t.resourceStates=e,t.okPropagation=[],t.errorPropagation=[];var i,n=_createForOfIteratorHelper(e);try{for(n.s();!(i=n.n()).done;){var r,o=i.value,a=!0,s=_createForOfIteratorHelper(o.taskList);try{for(s.s();!(r=s.n()).done;){var c=r.value;if("ERROR"===c.status||"GENERROR"===c.status||"SENDERROR"===c.status){a=!1;break}}}catch(u){s.e(u)}finally{s.f()}a?t.okPropagation.push(o):t.errorPropagation.push(o)}}catch(u){n.e(u)}finally{n.f()}t.loading=!1},function(){return t.loading=!1})}}]),t}();return t.id="VoResourcesStatesComponent",t.\u0275fac=function(e){return new(e||t)(o.Y36(r.Ob),o.Y36(n.fb))},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-vo-resources-states"]],hostVars:2,hostBindings:function(t,e){2&t&&o.ekj("router-component",e.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(t,e){1&t&&(o.TgZ(0,"h1",0),o._uU(1),o.ALo(2,"translate"),o.qZA(),o.TgZ(3,"perun-web-apps-refresh-button",1),o.NdJ("refresh",function(){return e.refreshTable()}),o.qZA(),o.TgZ(4,"mat-tab-group",2),o.NdJ("selectedIndexChange",function(t){return e.selectedIndex=t}),o.TgZ(5,"mat-tab"),o.YNc(6,G,4,4,"ng-template",3),o.YNc(7,Y,2,3,"ng-template",4),o.qZA(),o.TgZ(8,"mat-tab"),o.YNc(9,K,4,4,"ng-template",3),o.YNc(10,J,2,3,"ng-template",4),o.qZA(),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,2,"VO_DETAIL.RESOURCES.STATES.TITLE")),o.xp6(3),o.Q6J("selectedIndex",e.selectedIndex))},directives:[a.t,s.SP,s.uX,s.uD,s.Vc,c.O5,H,U.w],pipes:[f.X$],styles:[""]}),t}()},14527:function(t,e,i){"use strict";i.d(e,{w:function(){return x}});var n=i(24555),r=i(68416),o=i(68570),a=i(92438),s=i(75954),c=i(65249),u=i(84140),l=i(31572),h=i(84608),d=i(48160),f=i(57629),p=i(61511),g=i(27679),m=i(59403),v=i(15980),y=i(92846),_=i(67806),b=i(43691),w=i(36922),A=i(39571);function k(t,e){1&t&&l._UZ(0,"mat-spinner",13)}function C(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",21),l.NdJ("click",function(){return l.CHM(i),l.oxw(2).settings()}),l.TgZ(1,"i",10),l._uU(2,"edit"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}2&t&&(l.xp6(3),l.hij(" ",l.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function T(t,e){if(1&t&&(l.TgZ(0,"div",14),l.TgZ(1,"div",15),l.TgZ(2,"div",16),l._uU(3),l.ALo(4,"translate"),l.qZA(),l.TgZ(5,"div"),l.TgZ(6,"span",16),l._uU(7),l.ALo(8,"translate"),l.qZA(),l._uU(9,": "),l.TgZ(10,"mat-icon",17),l._uU(11,"arrow_right_alt"),l.qZA(),l._uU(12),l.ALo(13,"translate"),l.ALo(14,"translate"),l.TgZ(15,"mat-icon",18),l._uU(16,"restore"),l.qZA(),l._uU(17),l.ALo(18,"translate"),l.ALo(19,"translate"),l.qZA(),l.qZA(),l.TgZ(20,"div",19),l.YNc(21,C,5,3,"button",20),l.qZA(),l.qZA()),2&t){var i=l.oxw();l.xp6(3),l.AsE("",l.lcZ(4,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",i.applicationForm.moduleClassName," "),l.xp6(4),l.Oqu(l.lcZ(8,8,"VO_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),l.xp6(5),l.hij(" ",i.applicationForm.automaticApproval?l.lcZ(13,10,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):l.lcZ(14,12,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL"),", "),l.xp6(5),l.hij(" ",i.applicationForm.automaticApprovalExtension?l.lcZ(18,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):l.lcZ(19,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),l.xp6(4),l.Q6J("ngIf",i.editAuth)}}function E(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",22),l.NdJ("click",function(){return l.CHM(i),l.oxw().add()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function S(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",23),l.NdJ("click",function(){return l.CHM(i),l.oxw().save()}),l.TgZ(1,"i",10),l._uU(2,"save"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}if(2&t){var n=l.oxw();l.Q6J("disabled",!n.itemsChanged),l.xp6(3),l.hij(" ",l.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function I(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",24),l.NdJ("click",function(){return l.CHM(i),l.oxw().copy()}),l.TgZ(1,"i",10),l._uU(2,"file_copy"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}2&t&&(l.xp6(3),l.hij(" ",l.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.COPY_VO_BUTTON")," "))}function R(t,e){1&t&&(l.TgZ(0,"app-alert",25),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}var x=function(){var t=function(){function t(e,i,n,r,o,a,s,c){_classCallCheck(this,t),this.registrarManager=e,this.dialog=i,this.notificator=n,this.translate=r,this.router=o,this.authResolver=a,this.voService=s,this.entityStorageService=c,this.loading=!1,this.applicationFormItems=[],this.itemsChanged=!1,this.displayedColumns=[],this.idCounter=-1}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.registrarManager.getVoApplicationForm(this.vo.id).subscribe(function(e){t.applicationForm=e,t.registrarManager.getFormItemsForVo(t.vo.id).subscribe(function(e){t.applicationFormItems=e,t.loading=!1})})}},{key:"setAuthRights",value:function(){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"]}},{key:"add",value:function(){var t=this,e=(0,u.kZ)();e.width="500px",e.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(a.J,e).afterClosed().subscribe(function(i){i&&(t.applicationFormItems=Object.assign([],i[0]),(e=(0,u.kZ)()).width="600px",e.height="600px",e.data={voId:t.vo.id,applicationFormItem:i[1],theme:"vo-theme",allItems:t.applicationFormItems},t.dialog.open(s._,e),t.itemsChanged=!0)})}},{key:"copy",value:function(){var t=this,e=(0,u.kZ)();e.width="500px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(o.W,e).afterClosed().subscribe(function(e){e&&t.updateFormItems()})}},{key:"settings",value:function(){var t=this,e=(0,u.kZ)();e.width="400px",e.data={entity:"vo",applicationForm:this.applicationForm,theme:"vo-theme"},this.dialog.open(n.E,e).afterClosed().subscribe(function(e){e&&(t.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e)}),t.applicationForm=e)})}},{key:"preview",value:function(){this.router.navigate(["/organizations",this.vo.id,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)}})}},{key:"updateFormItems",value:function(){var t=this;this.loading=!0,this.registrarManager.getFormItemsForVo(this.vo.id).subscribe(function(e){t.applicationFormItems=e,t.itemsChanged=!1,t.setAuthRights(),t.loading=!1})}},{key:"changeItems",value:function(){this.itemsChanged=!0}},{key:"save",value:function(){var t,e=this,i=0,n=_createForOfIteratorHelper(this.applicationFormItems);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.ordnum=i,r.forDelete||i++}}catch(o){n.e(o)}finally{n.f()}this.registrarManager.updateFormItemsForVo({vo:this.vo.id,items:this.applicationFormItems}).subscribe(function(){e.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe(function(t){e.notificator.showSuccess(t)}),e.updateFormItems()})}},{key:"clear",value:function(){this.applicationFormItems.forEach(function(t){return t.forDelete=!0}),this.itemsChanged=!0}}]),t}();return t.id="VoSettingsApplicationFormComponent",t.\u0275fac=function(e){return new(e||t)(l.Y36(c.tk),l.Y36(h.uw),l.Y36(r.V6),l.Y36(d.sK),l.Y36(f.F0),l.Y36(r.x4),l.Y36(c.YF),l.Y36(r.fb))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-vo-settings-application-form"]],hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("router-component",e.true)},decls:19,vars:17,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"],["mat-flat-button","","color","accent","class","mr-2 action-button","data-cy","add-form-item",3,"click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2","data-cy","save-application-form",3,"disabled","click",4,"ngIf"],["mat-stroked-button","","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],["alert_type","info",4,"ngIf"],[3,"loading","applicationForm","applicationFormItems","theme","displayedColumns","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"],["mat-stroked-button","","class","ml-auto action-button",3,"click",4,"ngIf"],["mat-stroked-button","",1,"ml-auto","action-button",3,"click"],["mat-flat-button","","color","accent","data-cy","add-form-item",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","accent","data-cy","save-application-form",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],["alert_type","info"]],template:function(t,e){1&t&&(l.TgZ(0,"h1",0),l._uU(1),l.ALo(2,"translate"),l.qZA(),l.YNc(3,k,1,0,"mat-spinner",1),l.TgZ(4,"div"),l.YNc(5,T,22,18,"div",2),l._UZ(6,"mat-divider",3),l.TgZ(7,"div",4),l.TgZ(8,"perun-web-apps-refresh-button",5),l.NdJ("refresh",function(){return e.updateFormItems()}),l.qZA(),l.YNc(9,E,3,3,"button",6),l.YNc(10,S,5,4,"button",7),l.YNc(11,I,5,3,"button",8),l.TgZ(12,"button",9),l.NdJ("click",function(){return e.preview()}),l.TgZ(13,"i",10),l._uU(14,"search"),l.qZA(),l._uU(15),l.ALo(16,"translate"),l.qZA(),l.qZA(),l.YNc(17,R,3,3,"app-alert",11),l.TgZ(18,"app-application-form-list",12),l.NdJ("applicationFormItemsChange",function(){return e.changeItems()}),l.qZA(),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,13,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),l.xp6(2),l.Q6J("ngIf",e.loading),l.xp6(2),l.Q6J("ngIf",!e.loading),l.xp6(4),l.Q6J("ngIf",e.editAuth),l.xp6(1),l.Q6J("ngIf",e.editAuth),l.xp6(1),l.Q6J("ngIf",e.editAuth),l.xp6(4),l.hij(" ",l.lcZ(16,15,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),l.xp6(2),l.Q6J("ngIf",e.editAuth),l.xp6(1),l.Q6J("loading",e.loading)("applicationForm",e.applicationForm)("applicationFormItems",e.applicationFormItems)("theme","vo-theme")("displayedColumns",e.displayedColumns))},directives:[p.O5,g.d,m.t,v.lW,y.b,_.$g,b.Hw,w.gM,A.w],pipes:[d.X$],styles:[""]}),t}()},48666:function(t,e,i){"use strict";i.d(e,{T:function(){return _e}});var n=i(65249),r=i(4230),o=i(60611),a=i(84140),s=i(84608),c=i(68416),u=i(16073),l=i(61511),h=i(14732),d=i(18820),f=i(31572),p=i(48160),g=i(67806),m=i(70663),v=i(66283),y=i(80340),_=i(4786),b=i(36922),w=i(29236),A=i(90888),k=i(54810),C=i(15812),T=function(){var t=function(){function t(){_classCallCheck(this,t),this.expiration="never",this.expirationControl=new u.NI(null),this.datePicker=new f.vpe}return _createClass(t,[{key:"ngOnInit",value:function(){var t=new Date;this.minDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()),this.expirationControl.setValue((0,l.p6)(this.minDate,"yyyy-MM-dd","en-GB"))}},{key:"setExpiration",value:function(){this.expiration=(0,l.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB"),this.expirationControl.setValue((0,l.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB")),this.emitDate()}},{key:"emitDate",value:function(){"never"!==this.expiration&&""===this.expirationControl.value||this.datePicker.emit(this.expiration)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=f.Xpm({type:t,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(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"mat-radio-group",0),f.NdJ("ngModelChange",function(t){return e.expiration=t})("change",function(){return e.emitDate()}),f.TgZ(1,"mat-radio-button",1),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"mat-radio-button",2),f.TgZ(5,"mat-form-field",3),f.NdJ("click",function(){return f.CHM(i),f.MAs(12).open()}),f.TgZ(6,"mat-label"),f._uU(7),f.ALo(8,"translate"),f.qZA(),f.TgZ(9,"input",4),f.NdJ("dateChange",function(){return e.setExpiration()}),f.qZA(),f._UZ(10,"mat-datepicker-toggle",5),f._UZ(11,"mat-datepicker",6,7),f.qZA(),f.qZA(),f.qZA()}if(2&t){var n=f.MAs(12);f.Q6J("ngModel",e.expiration),f.xp6(2),f.hij(" ",f.lcZ(3,10,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),f.xp6(2),f.s9C("value",e.expirationControl.value),f.xp6(3),f.Oqu(f.lcZ(8,12,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),f.xp6(2),f.Q6J("min",e.minDate)("formControl",e.expirationControl)("matDatepicker",n),f.xp6(1),f.Q6J("for",n)("disabled",!1),f.xp6(1),f.Q6J("disabled",!1)}},directives:[k.VQ,u.JJ,u.On,k.U0,v.KE,v.hX,y.Nt,u.Fj,C.hl,u.oH,C.nW,v.R9,C.Mq],pipes:[p.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t}(),E=i(39571),S=i(71522),I=i(7927),R=i(43691),x=i(15980),O=i(22196),P=["stepper"];function D(t,e){1&t&&(f.TgZ(0,"h1",4),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.Oqu(f.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE")))}function M(t,e){1&t&&f._UZ(0,"mat-spinner",5)}function L(t,e){1&t&&(f._uU(0),f.ALo(1,"translate")),2&t&&f.Oqu(f.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_LABEL"))}function N(t,e){1&t&&(f.TgZ(0,"app-alert",34),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function z(t,e){1&t&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function Z(t,e){1&t&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function B(t,e){1&t&&(f._uU(0),f.ALo(1,"translate")),2&t&&f.Oqu(f.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_LABEL"))}function F(t,e){if(1&t&&(f.TgZ(0,"mat-option",35),f._uU(1),f.qZA()),2&t){var i=e.$implicit;f.Q6J("value",i),f.xp6(1),f.hij(" ",i," ")}}function q(t,e){1&t&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_ERROR")," "))}function H(t,e){1&t&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function U(t,e){1&t&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL_ERROR")," "))}function G(t,e){1&t&&(f._uU(0),f.ALo(1,"translate")),2&t&&f.Oqu(f.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_LABEL"))}function j(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"div"),f.TgZ(1,"perun-web-apps-user-search-select",36),f.NdJ("userSelected",function(t){return f.CHM(i),f.oxw(2).selectedSponsor=t}),f.qZA(),f.qZA()}if(2&t){var n=f.oxw(2);f.xp6(1),f.Q6J("users",n.voSponsors)("disableAutoSelect",!0)}}function Y(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"div",6),f.TgZ(1,"mat-stepper",7,8),f.TgZ(3,"mat-step",9),f.YNc(4,L,2,3,"ng-template",10),f.YNc(5,N,3,3,"app-alert",11),f.TgZ(6,"form",12),f.TgZ(7,"h5",13),f._uU(8),f.ALo(9,"translate"),f.qZA(),f.TgZ(10,"mat-form-field",14),f._UZ(11,"input",15),f.ALo(12,"translate"),f.YNc(13,z,3,3,"mat-error",16),f.qZA(),f.TgZ(14,"mat-form-field"),f._UZ(15,"input",17),f.ALo(16,"translate"),f.YNc(17,Z,3,3,"mat-error",16),f.qZA(),f.TgZ(18,"mat-form-field"),f._UZ(19,"input",18),f.ALo(20,"translate"),f.qZA(),f.TgZ(21,"mat-form-field"),f._UZ(22,"input",19),f.ALo(23,"translate"),f.qZA(),f.qZA(),f.qZA(),f.TgZ(24,"mat-step",9),f.YNc(25,B,2,3,"ng-template",10),f.TgZ(26,"h5",13),f._uU(27),f.ALo(28,"translate"),f.qZA(),f.TgZ(29,"form",20),f.TgZ(30,"mat-form-field"),f.TgZ(31,"mat-select",21),f.NdJ("valueChange",function(t){return f.CHM(i),f.oxw().onNamespaceChanged(t)}),f.ALo(32,"translate"),f.YNc(33,F,2,2,"mat-option",22),f.qZA(),f.YNc(34,q,3,3,"mat-error",16),f.qZA(),f.TgZ(35,"mat-form-field",23),f.ALo(36,"translate"),f._UZ(37,"input",24),f.ALo(38,"translate"),f.YNc(39,H,3,3,"mat-error",16),f.qZA(),f.TgZ(40,"mat-form-field"),f._UZ(41,"input",25),f.ALo(42,"translate"),f.YNc(43,U,3,3,"mat-error",16),f.qZA(),f.TgZ(44,"span",23),f.ALo(45,"translate"),f.TgZ(46,"mat-checkbox",26),f.NdJ("change",function(){return f.CHM(i),f.oxw().passwordResetChange()}),f._uU(47),f.ALo(48,"translate"),f.qZA(),f.qZA(),f._UZ(49,"perun-web-apps-password-form",27),f.qZA(),f.qZA(),f.TgZ(50,"mat-step"),f.YNc(51,G,2,3,"ng-template",10),f.TgZ(52,"div",28),f.TgZ(53,"h5",13),f._uU(54),f.ALo(55,"translate"),f.qZA(),f.TgZ(56,"div",14),f.TgZ(57,"h6"),f._uU(58),f.ALo(59,"translate"),f.qZA(),f.TgZ(60,"mat-radio-group",29),f.NdJ("ngModelChange",function(t){return f.CHM(i),f.oxw().sponsorType=t}),f.TgZ(61,"span",30),f.ALo(62,"translate"),f.TgZ(63,"mat-radio-button",31),f.NdJ("click",function(){return f.CHM(i),f.oxw().selectedSponsor=null}),f._uU(64),f.ALo(65,"translate"),f.qZA(),f.qZA(),f.TgZ(66,"span",30),f.ALo(67,"translate"),f.TgZ(68,"mat-radio-button",32),f._uU(69),f.ALo(70,"translate"),f.qZA(),f.qZA(),f.qZA(),f.YNc(71,j,2,2,"div",16),f.qZA(),f.TgZ(72,"h6",14),f._uU(73),f.ALo(74,"translate"),f.qZA(),f.TgZ(75,"perun-web-apps-expiration-select",33),f.NdJ("datePicker",function(t){return f.CHM(i),f.oxw().setExpiration(t)}),f.qZA(),f.qZA(),f.qZA(),f.qZA(),f.qZA()}if(2&t){var n=f.oxw();f.xp6(1),f.Q6J("linear",!0),f.xp6(2),f.Q6J("stepControl",n.userControl),f.xp6(2),f.Q6J("ngIf",n.functionalityNotSupported),f.xp6(1),f.Q6J("formGroup",n.userControl),f.xp6(2),f.hij(" ",f.lcZ(9,42,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_TITLE")," "),f.xp6(3),f.s9C("placeholder",f.lcZ(12,44,"DIALOGS.CREATE_SPONSORED_MEMBER.FIRST_NAME")),f.xp6(2),f.Q6J("ngIf",n.userControl.hasError("required","firstName")),f.xp6(2),f.s9C("placeholder",f.lcZ(16,46,"DIALOGS.CREATE_SPONSORED_MEMBER.LAST_NAME")),f.xp6(2),f.Q6J("ngIf",n.userControl.hasError("required","lastName")),f.xp6(2),f.s9C("placeholder",f.lcZ(20,48,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_BEFORE")),f.xp6(3),f.s9C("placeholder",f.lcZ(23,50,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_AFTER")),f.xp6(2),f.Q6J("stepControl",n.namespaceControl),f.xp6(3),f.Oqu(f.lcZ(28,52,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_TITLE")),f.xp6(2),f.Q6J("formGroup",n.namespaceControl),f.xp6(2),f.s9C("placeholder",f.lcZ(32,54,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE")),f.xp6(2),f.Q6J("ngForOf",n.namespaceOptions),f.xp6(1),f.Q6J("ngIf",n.namespaceControl.hasError("required","namespace")),f.xp6(1),f.s9C("matTooltip",f.lcZ(36,56,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN_DISABLED")),f.Q6J("matTooltipDisabled",n.namespaceControl.get("login").enabled),f.xp6(2),f.s9C("placeholder",f.lcZ(38,58,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN")),f.xp6(2),f.Q6J("ngIf",n.namespaceControl.hasError("required","login")),f.xp6(2),f.s9C("placeholder",f.lcZ(42,60,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL")),f.xp6(2),f.Q6J("ngIf",n.namespaceControl.hasError("required","email")||n.namespaceControl.hasError("pattern","email")),f.xp6(1),f.s9C("matTooltip",f.lcZ(45,62,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET_DISABLED")),f.Q6J("matTooltipDisabled",n.namespaceControl.get("passwordReset").enabled),f.xp6(3),f.hij("",f.lcZ(48,64,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET")," "),f.xp6(2),f.Q6J("formGroup",n.namespaceControl)("tooltipPwdViaEmail",n.namespaceControl.get("passwordReset").value)("namespace",n.selectedNamespace),f.xp6(5),f.Oqu(f.lcZ(55,66,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_TITLE")),f.xp6(4),f.Oqu(f.lcZ(59,68,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SPONSOR")),f.xp6(2),f.Q6J("ngModel",n.sponsorType),f.xp6(1),f.s9C("matTooltip",f.lcZ(62,70,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF_DISABLED")),f.Q6J("matTooltipDisabled",n.isSponsor),f.xp6(2),f.Q6J("disabled",!n.isSponsor),f.xp6(1),f.hij(" ",f.lcZ(65,72,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF")," "),f.xp6(2),f.s9C("matTooltip",f.lcZ(67,74,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER_DISABLED")),f.Q6J("matTooltipDisabled",n.isPerunAdmin),f.xp6(2),f.Q6J("disabled",!n.isPerunAdmin),f.xp6(1),f.hij(" ",f.lcZ(70,76,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER")," "),f.xp6(2),f.Q6J("ngIf","other"===n.sponsorType),f.xp6(2),f.Oqu(f.lcZ(74,78,"DIALOGS.CREATE_SPONSORED_MEMBER.EXPIRATION"))}}function K(t,e){if(1&t&&(f.TgZ(0,"div",6),f.TgZ(1,"div",37),f.TgZ(2,"mat-icon",38),f._uU(3,"done"),f.qZA(),f._uU(4),f.ALo(5,"translate"),f.TgZ(6,"i"),f._uU(7),f.ALo(8,"userFullName"),f.qZA(),f._uU(9),f.ALo(10,"translate"),f.qZA(),f.TgZ(11,"div"),f._uU(12),f.ALo(13,"translate"),f.qZA(),f.TgZ(14,"div"),f._uU(15),f.ALo(16,"translate"),f.qZA(),f.TgZ(17,"app-alert",39),f._uU(18),f.ALo(19,"translate"),f.qZA(),f.qZA()),2&t){var i=f.oxw();f.xp6(4),f.hij(" ",f.lcZ(5,8,"DIALOGS.CREATE_SPONSORED_MEMBER.USER")," "),f.xp6(3),f.Oqu(f.lcZ(8,10,i.createdMember.user)),f.xp6(2),f.hij(" ",f.lcZ(10,12,"DIALOGS.CREATE_SPONSORED_MEMBER.WAS_CREATED")," "),f.xp6(3),f.AsE("",f.lcZ(13,14,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN"),": ",i.loginThatWasSet,""),f.xp6(3),f.AsE("",f.lcZ(16,16,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD")," : ",i.namespaceControl.get("passwordCtrl").value," "),f.xp6(3),f.Oqu(f.lcZ(19,18,"DIALOGS.CREATE_SPONSORED_MEMBER.COPY_INFORMATION"))}}function V(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"div",40),f.TgZ(1,"button",41),f.NdJ("click",function(){return f.CHM(i),f.oxw().onCancel()}),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.qZA()}2&t&&(f.xp6(2),f.hij(" ",f.lcZ(3,1,"DIALOGS.CREATE_SPONSORED_MEMBER.OK")," "))}function J(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",41),f.NdJ("click",function(){return f.CHM(i),f.oxw(2).stepperPrevious()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.BACK")," "))}function Q(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",46),f.NdJ("click",function(){return f.CHM(i),f.oxw(2).stepperNext()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}if(2&t){var n=f.oxw(2);f.ekj("ml-2",void 0!==n.stepper&&0!==n.stepper.selectedIndex)("ml-auto",!(void 0!==n.stepper&&0!==n.stepper.selectedIndex)),f.Q6J("disabled",n.getStepperNextConditions()),f.xp6(1),f.hij(" ",f.lcZ(2,6,"DIALOGS.CREATE_SPONSORED_MEMBER.NEXT")," ")}}function W(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",47),f.NdJ("click",function(){return f.CHM(i),f.oxw(2).onConfirm()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}if(2&t){var n=f.oxw(2);f.Q6J("disabled",null===n.sponsorType||"other"===n.sponsorType&&null===n.selectedSponsor),f.xp6(1),f.hij(" ",f.lcZ(2,2,"DIALOGS.CREATE_SPONSORED_MEMBER.SUBMIT")," ")}}function X(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"div",40),f.TgZ(1,"button",42),f.NdJ("click",function(){return f.CHM(i),f.oxw().onCancel()}),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.YNc(4,J,3,3,"button",43),f.YNc(5,Q,3,8,"button",44),f.YNc(6,W,3,4,"button",45),f.qZA()}if(2&t){var n=f.oxw();f.xp6(2),f.hij(" ",f.lcZ(3,4,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),f.xp6(2),f.Q6J("ngIf",void 0!==n.stepper&&0!==n.stepper.selectedIndex),f.xp6(1),f.Q6J("ngIf",void 0!==n.stepper&&n.stepper.selectedIndex!==n.stepper._steps.length-1),f.xp6(1),f.Q6J("ngIf",void 0!==n.stepper&&n.stepper.selectedIndex===n.stepper._steps.length-1)}}var $=function(){var t=function(){function t(e,i,n,r,o,a,s,c,u,l,h){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.membersService=n,this.apiRequestConfiguration=r,this.usersService=o,this.store=a,this.translator=s,this.authzService=c,this.guiAuthResolver=u,this.formBuilder=l,this.cd=h,this.loading=!1,this.functionalityNotSupported=!1,this.loginThatWasSet="",this.successfullyCreated=!1,this.namespaceOptions=[],this.namespaceRules=[],this.selectedNamespace=null,this.parsedRules=new Map,this.userControl=null,this.namespaceControl=null,this.voSponsors=[],this.selectedSponsor=null,this.sponsorType="self",this.isSponsor=!1,this.isPerunAdmin=!1,this.expiration="never"}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.theme=this.data.theme,this.voSponsors=this.data.sponsors,this.isSponsor=this.guiAuthResolver.principalHasRole(h.u.SPONSOR,"Vo",this.data.voId),this.isPerunAdmin=this.guiAuthResolver.isPerunAdmin(),this.sponsorType=this.isSponsor?"self":"other",this.userControl=this.formBuilder.group({firstName:["",u.kI.required],lastName:["",u.kI.required],titleBefore:[""],titleAfter:[""]}),this.namespaceControl=this.formBuilder.group({namespace:["",u.kI.required],login:["",[u.kI.required]],passwordCtrl:["",u.kI.required,[(0,d.yT)(null,this.usersService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],passwordReset:[!1,[]],email:["",[u.kI.required,u.kI.pattern(a.B2)]]},{validators:a.dN.passwordMatchValidator}),this.membersService.getAllNamespacesRules().subscribe(function(e){t.store.get("allow_empty_sponsor_namespace")&&t.namespaceRules.push({namespaceName:"No namespace",requiredAttributes:[],optionalAttributes:[]}),t.namespaceRules=t.namespaceRules.concat(e),t.parseNamespaceRules(),0===t.namespaceOptions.length&&(t.functionalityNotSupported=!0),t.loading=!1,t.cd.detectChanges()})}},{key:"parseNamespaceRules",value:function(){var t,e=_createForOfIteratorHelper(this.namespaceRules);try{for(e.s();!(t=e.n()).done;){var i=t.value;this.namespaceOptions.push(i.namespaceName);var n={login:"disabled",password:"disabled"};this.parseAttributes(n,i.requiredAttributes,"required"),this.parseAttributes(n,i.optionalAttributes,"optional"),this.parsedRules.set(i.namespaceName,n)}}catch(r){e.e(r)}finally{e.f()}}},{key:"parseAttributes",value:function(t,e,i){var n,r=_createForOfIteratorHelper(e);try{for(r.s();!(n=r.n()).done;){switch(n.value){case"login":t.login=i;break;case"password":t.password=i}}}catch(o){r.e(o)}finally{r.f()}}},{key:"onConfirm",value:function(){var t=this;this.loading=!0;var e={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},i=this.namespaceControl.get("namespace").value,n=this.parsedRules.get(i);"No namespace"!==i&&(e.userData.namespace=i),"disabled"!==n.login&&(e.userData.login=this.namespaceControl.get("login").value),"disabled"!==n.password&&(e.sendActivationLink=this.namespaceControl.get("passwordReset").value,e.userData.password=this.namespaceControl.get("passwordCtrl").value),"never"!==this.expiration&&(e.validityTo=this.expiration),this.membersService.createSponsoredMember(e).subscribe(function(e){t.successfullyCreated=!0,t.dialogRef.updateSize("600px"),t.createdMember=e,e&&e.userAttributes&&e.userAttributes.filter(function(t){return"login-namespace"===t.baseFriendlyName}).filter(function(t){return t.friendlyNameParameter===i}).filter(function(t){return null!==t.value}).forEach(function(e){t.loginThatWasSet=e.value.toString()}),t.loading=!1},function(){t.loading=!1})}},{key:"onCancel",value:function(){this.successfullyCreated?this.dialogRef.close(!0):this.dialogRef.close()}},{key:"onNamespaceChanged",value:function(t){this.selectedNamespace=t;var e=this.parsedRules.get(t),i=this.namespaceControl.get("login"),n=this.namespaceControl.get("passwordCtrl"),r=this.namespaceControl.get("passwordAgainCtrl"),o=this.namespaceControl.get("passwordReset");"disabled"!==e.login?(0,a.mH)(i,"optional"===e.login?[]:[u.kI.required]):(i.disable(),i.setValue("")),"disabled"!==e.password?((0,a.mH)(n,"optional"===e.password?[]:[u.kI.required],[(0,d.yT)(t,this.usersService,this.apiRequestConfiguration)]),(0,a.mH)(r,[]),(0,a.mH)(o,[]),this.namespaceControl.get("passwordReset").setValue(!1)):(n.disable(),n.setValue(""),r.disable(),r.setValue(""),o.disable(),o.setValue(!1))}},{key:"passwordResetChange",value:function(){var t=this.namespaceControl.get("passwordCtrl"),e=this.namespaceControl.get("passwordAgainCtrl");this.namespaceControl.get("passwordReset").value?(t.disable(),t.setValue(""),e.disable(),e.setValue("")):(t.enable(),e.enable())}},{key:"setExpiration",value:function(t){this.expiration="never"===t?"never":(0,l.p6)(t,"yyyy-MM-dd","en-GB")}},{key:"getStepperNextConditions",value:function(){switch(this.stepper.selectedIndex){case 0:return this.userControl.invalid;case 1:return this.namespaceControl.invalid||this.namespaceControl.get("passwordCtrl").pending;default:return!1}}},{key:"stepperPrevious",value:function(){this.stepper.previous()}},{key:"stepperNext",value:function(){this.stepper.next()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(f.Y36(s.so),f.Y36(s.WI),f.Y36(n.uq),f.Y36(c.F5),f.Y36(n.Fv),f.Y36(c.d6),f.Y36(p.sK),f.Y36(n.Ct),f.Y36(c.x4),f.Y36(u.qu),f.Y36(f.sBO))},t.\u0275cmp=f.Xpm({type:t,selectors:[["app-create-sponsored-member-dialog"]],viewQuery:function(t,e){var i;(1&t&&f.Gf(P,5),2&t)&&(f.iGM(i=f.CRH())&&(e.stepper=i.first))},decls:7,vars:9,consts:[["mat-dialog-title","",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",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"],["required","","formControlName","namespace",3,"placeholder","valueChange"],[3,"value",4,"ngFor","ngForOf"],["matTooltipPosition","left",3,"matTooltip","matTooltipDisabled"],["matInput","","required","","formControlName","login",3,"placeholder"],["matInput","","required","","formControlName","email",3,"placeholder"],["labelPosition","before","formControlName","passwordReset",3,"change"],[3,"formGroup","tooltipPwdViaEmail","namespace"],[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,"users","disableAutoSelect","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(t,e){1&t&&(f.TgZ(0,"div"),f.YNc(1,D,3,3,"h1",0),f.YNc(2,M,1,0,"mat-spinner",1),f.YNc(3,Y,76,80,"div",2),f.YNc(4,K,20,20,"div",2),f.YNc(5,V,4,3,"div",3),f.YNc(6,X,7,6,"div",3),f.qZA()),2&t&&(f.Tol(e.theme),f.xp6(1),f.Q6J("ngIf",!e.successfullyCreated),f.xp6(1),f.Q6J("ngIf",e.loading),f.xp6(1),f.Q6J("ngIf",!e.loading&&!e.successfullyCreated),f.xp6(1),f.Q6J("ngIf",!e.loading&&e.successfullyCreated),f.xp6(1),f.Q6J("ngIf",e.successfullyCreated),f.xp6(1),f.Q6J("ngIf",!e.loading&&!e.successfullyCreated))},directives:[l.O5,s.uh,g.$g,s.xY,m.Vq,m.C0,m.VY,u._Y,u.JL,u.sg,v.KE,y.Nt,u.Fj,u.JJ,u.u,u.Q7,_.gD,l.sg,b.gM,w.oG,A.G,k.VQ,u.On,k.U0,T,E.w,v.TO,S.ey,I.S,R.Hw,s.H8,x.lW],pipes:[p.X$,O.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}"]}),t}(),tt=i(67004),et=i(43005),it=i(19139),nt=i(78364),rt=i(8055),ot=["stepper"];function at(t,e){1&t&&f._UZ(0,"mat-spinner",4)}function st(t,e){1&t&&(f._uU(0),f.ALo(1,"translate")),2&t&&f.Oqu(f.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_LABEL"))}function ct(t,e){1&t&&(f.TgZ(0,"app-alert",29),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function ut(t,e){if(1&t&&(f.TgZ(0,"mat-option",30),f._uU(1),f.qZA()),2&t){var i=e.$implicit;f.Q6J("value",i),f.xp6(1),f.hij(" ",i," ")}}function lt(t,e){1&t&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE_ERROR")," "))}function ht(t,e){1&t&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMES_ERROR")," "))}function dt(t,e){if(1&t&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t){var i=f.oxw(3);f.xp6(1),f.AsE(" ",f.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_FORMAT"),": ",i.usersInfoFormGroup.get("sponsoredMembers").getError("invalidFormat").value," ")}}function ft(t,e){if(1&t&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t){var i=f.oxw(3);f.xp6(1),f.AsE(" ",f.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_EMAIL"),": ",i.usersInfoFormGroup.get("sponsoredMembers").getError("invalidEmail").value," ")}}function pt(t,e){if(1&t&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t){var i=f.oxw(3);f.xp6(1),f.AsE(" ",f.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_LOGIN"),": ",i.usersInfoFormGroup.get("sponsoredMembers").getError("invalidLogin").value," ")}}function gt(t,e){1&t&&(f._uU(0),f.ALo(1,"translate")),2&t&&f.Oqu(f.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_LABEL"))}function mt(t,e){1&t&&(f.TgZ(0,"app-alert",31),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_NAMESPACE_PASSWORD_INFO")," "))}function vt(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"mat-radio-group",32),f.NdJ("ngModelChange",function(t){return f.CHM(i),f.oxw(3).passwordReset=t}),f.TgZ(1,"mat-radio-button",33),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"mat-radio-button",34),f._uU(5),f.ALo(6,"translate"),f.qZA(),f.qZA()}if(2&t){var n=f.oxw(3);f.Q6J("ngModel",n.passwordReset),f.xp6(2),f.hij(" ",f.lcZ(3,3,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GENERATE_PASSWORD")," "),f.xp6(3),f.hij(" ",f.lcZ(6,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_RESET")," ")}}function yt(t,e){1&t&&(f._uU(0),f.ALo(1,"translate")),2&t&&f.Oqu(f.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION_LABEL"))}function _t(t,e){1&t&&(f._uU(0),f.ALo(1,"translate")),2&t&&f.Oqu(f.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUPS_LABEL"))}function bt(t,e){1&t&&(f.TgZ(0,"div"),f.TgZ(1,"app-alert",35),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.qZA()),2&t&&(f.xp6(2),f.Oqu(f.lcZ(3,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DONT_ASSIGN_INFO")))}function wt(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"div"),f.TgZ(1,"h5",36),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"perun-web-apps-create-group-form",37),f.NdJ("nameChanged",function(t){return f.CHM(i),f.oxw(3).name=t})("descriptionChanged",function(t){return f.CHM(i),f.oxw(3).description=t})("parentGroupChanged",function(t){return f.CHM(i),f.oxw(3).parentGroup=t})("asSubgroupChanged",function(t){return f.CHM(i),f.oxw(3).asSubGroup=t}),f.qZA(),f.qZA()}if(2&t){var n=f.oxw(3);f.xp6(2),f.Oqu(f.lcZ(3,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CREATE_NEW_GROUP")),f.xp6(2),f.Q6J("voGroups",n.allVoGroups)}}var At=function(){return["select","id","name","description"]};function kt(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"div"),f.TgZ(1,"h5",36),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"perun-web-apps-immediate-filter",38),f.NdJ("filter",function(t){return f.CHM(i),f.oxw(3).applyFilter(t)}),f.qZA(),f._UZ(5,"perun-web-apps-groups-list",39),f.qZA()}if(2&t){var n=f.oxw(3);f.xp6(2),f.Oqu(f.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SELECT_EXISTING_GROUPS")),f.xp6(2),f.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),f.xp6(1),f.Q6J("groups",n.assignableGroups)("selection",n.selection)("displayedColumns",f.DdM(10,At))("disableRouting",!0)("tableId",n.tableId)("filter",n.filterValue)}}function Ct(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"mat-stepper",8,9),f.TgZ(2,"mat-step",10),f.YNc(3,st,2,3,"ng-template",11),f.YNc(4,ct,3,3,"app-alert",12),f.TgZ(5,"h5",13),f._uU(6),f.ALo(7,"translate"),f.qZA(),f.TgZ(8,"form",14),f.TgZ(9,"mat-form-field"),f.TgZ(10,"mat-select",15),f.ALo(11,"translate"),f.YNc(12,ut,2,2,"mat-option",16),f.qZA(),f.YNc(13,lt,3,3,"mat-error",7),f.qZA(),f.TgZ(14,"div"),f._uU(15),f.ALo(16,"translate"),f.qZA(),f.TgZ(17,"div",17),f._uU(18),f.qZA(),f.TgZ(19,"mat-form-field",18),f.TgZ(20,"mat-label"),f._uU(21),f.ALo(22,"translate"),f.qZA(),f.TgZ(23,"textarea",19),f._uU(24," "),f.qZA(),f.YNc(25,ht,3,3,"mat-error",7),f.YNc(26,dt,3,4,"mat-error",7),f.YNc(27,ft,3,4,"mat-error",7),f.YNc(28,pt,3,4,"mat-error",7),f.qZA(),f.qZA(),f.qZA(),f.TgZ(29,"mat-step"),f.YNc(30,gt,2,3,"ng-template",11),f.TgZ(31,"div",13),f.TgZ(32,"h5",20),f._uU(33),f.ALo(34,"translate"),f.qZA(),f.YNc(35,mt,3,3,"app-alert",21),f.YNc(36,vt,7,7,"mat-radio-group",22),f.qZA(),f.qZA(),f.TgZ(37,"mat-step"),f.YNc(38,yt,2,3,"ng-template",11),f.TgZ(39,"div",13),f.TgZ(40,"h5",20),f._uU(41),f.ALo(42,"translate"),f.qZA(),f.TgZ(43,"perun-web-apps-expiration-select",23),f.NdJ("datePicker",function(t){return f.CHM(i),f.oxw(2).setExpiration(t)}),f.qZA(),f.qZA(),f.qZA(),f.TgZ(44,"mat-step"),f.YNc(45,_t,2,3,"ng-template",11),f.TgZ(46,"div",13),f.TgZ(47,"h5",20),f._uU(48),f.ALo(49,"translate"),f.qZA(),f.TgZ(50,"mat-radio-group",24),f.NdJ("change",function(){return f.CHM(i),f.oxw(2).groupAssigmentChanged()})("ngModelChange",function(t){return f.CHM(i),f.oxw(2).groupAssignment=t}),f.TgZ(51,"mat-radio-button",25),f._uU(52),f.ALo(53,"translate"),f.qZA(),f.TgZ(54,"span",26),f.ALo(55,"translate"),f.TgZ(56,"mat-radio-button",27),f._uU(57),f.ALo(58,"translate"),f.qZA(),f.qZA(),f.TgZ(59,"span",26),f.ALo(60,"translate"),f.TgZ(61,"mat-radio-button",28),f._uU(62),f.ALo(63,"translate"),f.qZA(),f.qZA(),f.qZA(),f.qZA(),f.YNc(64,bt,4,3,"div",7),f.YNc(65,wt,5,4,"div",7),f.YNc(66,kt,6,11,"div",7),f.qZA(),f.qZA()}if(2&t){var n=f.oxw(2);f.Q6J("linear",!0),f.xp6(2),f.Q6J("stepControl",n.usersInfoFormGroup),f.xp6(2),f.Q6J("ngIf",n.functionalityNotSupported),f.xp6(2),f.Oqu(f.lcZ(7,35,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_INFO")),f.xp6(2),f.Q6J("formGroup",n.usersInfoFormGroup),f.xp6(2),f.s9C("placeholder",f.lcZ(11,37,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE")),f.xp6(2),f.Q6J("ngForOf",n.namespaceOptions),f.xp6(1),f.Q6J("ngIf",n.usersInfoFormGroup.hasError("required","namespace")),f.xp6(2),f.Oqu(f.lcZ(16,39,"DIALOGS.GENERATE_SPONSORED_MEMBERS.HINT")),f.xp6(3),f.Oqu(n.getSelectedNamespaceRules().csvGenHeaderDescription),f.xp6(3),f.Oqu(f.lcZ(22,41,"DIALOGS.GENERATE_SPONSORED_MEMBERS.INSERT_HERE")),f.xp6(2),f.s9C("placeholder",n.getSelectedNamespaceRules().csvGenPlaceholder),f.xp6(2),f.Q6J("ngIf",n.usersInfoFormGroup.hasError("required","sponsoredMembers")),f.xp6(1),f.Q6J("ngIf",n.usersInfoFormGroup.hasError("invalidFormat","sponsoredMembers")),f.xp6(1),f.Q6J("ngIf",n.usersInfoFormGroup.hasError("invalidEmail","sponsoredMembers")),f.xp6(1),f.Q6J("ngIf",n.usersInfoFormGroup.hasError("invalidLogin","sponsoredMembers")),f.xp6(5),f.Oqu(f.lcZ(34,43,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_MANAGEMENT")),f.xp6(2),f.Q6J("ngIf","No namespace"===n.getSelectedNamespaceRules().namespaceName),f.xp6(1),f.Q6J("ngIf","No namespace"!==n.getSelectedNamespaceRules().namespaceName),f.xp6(5),f.Oqu(f.lcZ(42,45,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION")),f.xp6(2),f.Q6J("expiration",n.expiration),f.xp6(5),f.Oqu(f.lcZ(49,47,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUP_ASSIGMENT")),f.xp6(2),f.Q6J("ngModel",n.groupAssignment),f.xp6(2),f.hij(" ",f.lcZ(53,49,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_ASSIGN")," "),f.xp6(2),f.s9C("matTooltip",f.lcZ(55,51,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_NEW")),f.Q6J("matTooltipDisabled",!n.manualMemberAddingBlocked&&n.createGroupAuth),f.xp6(2),f.Q6J("disabled",n.manualMemberAddingBlocked||!n.createGroupAuth),f.xp6(1),f.hij(" ",f.lcZ(58,53,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_TO_NEW")," "),f.xp6(2),f.s9C("matTooltip",f.lcZ(60,55,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_EXISTING")),f.Q6J("matTooltipDisabled",!n.manualMemberAddingBlocked&&0!==n.assignableGroups.length),f.xp6(2),f.Q6J("disabled",n.manualMemberAddingBlocked||0===n.assignableGroups.length),f.xp6(1),f.hij(" ",f.lcZ(63,57,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_EXISTING")," "),f.xp6(2),f.Q6J("ngIf","none"===n.groupAssignment),f.xp6(1),f.Q6J("ngIf","new"===n.groupAssignment),f.xp6(1),f.Q6J("ngIf","existing"===n.groupAssignment)}}function Tt(t,e){1&t&&(f.TgZ(0,"app-alert",41),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.Q6J("alert_type","success"),f.xp6(1),f.hij(" ",f.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUCCESS")," "))}function Et(t,e){1&t&&(f.TgZ(0,"app-alert",41),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.Q6J("alert_type","warn"),f.xp6(1),f.hij(" ",f.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.FINISHED_WITH_ERRORS")," "))}function St(t,e){if(1&t&&(f.TgZ(0,"div"),f.YNc(1,Tt,3,4,"app-alert",40),f.YNc(2,Et,3,4,"app-alert",40),f.qZA()),2&t){var i=f.oxw(2);f.xp6(1),f.Q6J("ngIf",!1===i.finishedWithErrors),f.xp6(1),f.Q6J("ngIf",i.finishedWithErrors)}}function It(t,e){if(1&t&&(f.TgZ(0,"div",5),f.YNc(1,Ct,67,59,"mat-stepper",6),f.YNc(2,St,3,2,"div",7),f.qZA()),2&t){var i=f.oxw();f.xp6(1),f.Q6J("ngIf","user-input"===i.state),f.xp6(1),f.Q6J("ngIf","results"===i.state)}}function Rt(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",47),f.NdJ("click",function(){return f.CHM(i),f.oxw(2).stepperPrevious()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.BACK")," "))}function xt(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",48),f.NdJ("click",function(){return f.CHM(i),f.oxw(2).stepperNext()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}if(2&t){var n=f.oxw(2);f.ekj("ml-2",void 0!==n.stepper&&0!==n.stepper.selectedIndex)("ml-auto",!(void 0!==n.stepper&&0!==n.stepper.selectedIndex)),f.Q6J("disabled",n.getStepperNextConditions()),f.xp6(1),f.hij("",f.lcZ(2,6,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NEXT")," ")}}function Ot(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",48),f.NdJ("click",function(){return f.CHM(i),f.oxw(2).onSubmit()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}if(2&t){var n=f.oxw(2);f.Q6J("disabled",null===n.groupAssignment||"existing"===n.groupAssignment&&0===n.selection.selected.length||"new"===n.groupAssignment&&(0===n.name.length||0===n.description.length)||!0===n.asSubGroup&&null===n.parentGroup),f.xp6(1),f.hij(" ",f.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUBMIT")," ")}}function Pt(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"div",42),f.TgZ(1,"button",43),f.NdJ("click",function(){return f.CHM(i),f.oxw().onCancel()}),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.YNc(4,Rt,3,3,"button",44),f.YNc(5,xt,3,8,"button",45),f.YNc(6,Ot,3,4,"button",46),f.qZA()}if(2&t){var n=f.oxw();f.xp6(2),f.hij(" ",f.lcZ(3,4,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),f.xp6(2),f.Q6J("ngIf",void 0!==n.stepper&&0!==n.stepper.selectedIndex),f.xp6(1),f.Q6J("ngIf",void 0!==n.stepper&&n.stepper.selectedIndex!==n.stepper._steps.length-1),f.xp6(1),f.Q6J("ngIf",void 0!==n.stepper&&n.stepper.selectedIndex===n.stepper._steps.length-1)}}function Dt(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"div",42),f.TgZ(1,"button",43),f.NdJ("click",function(){return f.CHM(i),f.oxw().onClose()}),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"button",49),f._uU(5),f.ALo(6,"translate"),f.qZA(),f.TgZ(7,"mat-menu",null,50),f.TgZ(9,"button",51),f.NdJ("click",function(){return f.CHM(i),f.oxw().generatePdf()}),f._uU(10),f.ALo(11,"translate"),f.qZA(),f.TgZ(12,"button",51),f.NdJ("click",function(){return f.CHM(i),f.oxw().downloadCsv()}),f._uU(13),f.ALo(14,"translate"),f.qZA(),f.qZA(),f.qZA()}if(2&t){var n=f.MAs(8);f.xp6(2),f.hij(" ",f.lcZ(3,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CLOSE")," "),f.xp6(2),f.Q6J("matMenuTriggerFor",n),f.xp6(1),f.hij(" ",f.lcZ(6,7,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD")," "),f.xp6(5),f.hij(" ",f.lcZ(11,9,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_PDF")," "),f.xp6(3),f.hij(" ",f.lcZ(14,11,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_CSV")," ")}}var Mt=function(){var t=function(){function t(e,i,n,a,s,c,u,l,h,d,f,p){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.store=n,this.membersService=a,this.notificator=s,this.translate=c,this.guiAuthResolver=u,this.groupsService=l,this.attributesService=h,this.formBuilder=d,this.sponsoredMembersPDFService=f,this.cd=p,this.loading=!1,this.functionalityNotSupported=!1,this.namespaceOptions=[],this.namespaceRules=[],this.state="user-input",this.passwordReset="generate",this.groupAssignment=null,this.expiration="never",this.assignableGroups=[],this.allVoGroups=[],this.selection=new r.Ov(!0,[]),this.manualMemberAddingBlocked=!1,this.name="",this.description="",this.asSubGroup=!1,this.parentGroup=null,this.groupIds=[],this.submitDisabled=!1,this.filterValue="",this.tableId=o.rc,this.finishedWithErrors=!1,this.groupAttrNames=[tt.r.GROUP_SYNC_ENABLED,tt.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;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:["",u.kI.required],sponsoredMembers:["",[u.kI.required,this.userInputValidator()]]}),this.usersInfoFormGroup.controls.namespace.valueChanges.subscribe({next:function(){t.usersInfoFormGroup.controls.sponsoredMembers.updateValueAndValidity()}}),this.attributesService.getVoAttributes(this.data.voId).subscribe(function(e){t.manualMemberAddingBlocked=t.hasAttributeEnabled(e,"blockManualMemberAdding"),!0!==t.manualMemberAddingBlocked?t.groupsService.getAllRichGroupsWithAttributesByNames(t.data.voId,t.groupAttrNames).subscribe(function(e){t.allVoGroups=e.filter(function(t){return"members"!==t.name}),t.assignableGroups=t.filterAssignableGroups(e),t.membersService.getAllNamespacesRules().subscribe(function(e){t.store.get("allow_empty_sponsor_namespace")&&t.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"}),t.namespaceRules=t.namespaceRules.concat(e),t.namespaceRules.forEach(function(e){return t.namespaceOptions.push(e.namespaceName)}),0===t.namespaceOptions.length?t.functionalityNotSupported=!0:t.usersInfoFormGroup.setValue({namespace:t.namespaceOptions[0],sponsoredMembers:""}),t.loading=!1,t.cd.detectChanges()})},function(){return t.loading=!1}):(t.loading=!1,t.cd.detectChanges())},function(){return t.loading=!1})}},{key:"filterAssignableGroups",value:function(t){var e,i=[],n=_createForOfIteratorHelper(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;this.hasAttributeEnabled(r.attributes,"synchronizationEnabled")||this.hasAttributeEnabled(r.attributes,"blockManualMemberAdding")||!this.guiAuthResolver.isAuthorized("addMembers_Group_List_policy",[r])||i.push(r)}}catch(o){n.e(o)}finally{n.f()}return i}},{key:"hasAttributeEnabled",value:function(t,e){return t.some(function(t){return t.friendlyName===e&&null!==t.value&&"true"===t.value.toString()})}},{key:"createOutputObjects",value:function(t){var e="",i="",n="",r="",o=[];return t.forEach(function(t){e=t.name.replace(";"," ").split(";")[0],i=t.status,n=t.login?t.login:n,r=t.password?t.password:r,o.push({name:e,status:i,login:n,password:r})}),o}},{key:"onGenerate",value:function(){var e=this;this.loading=!0;var i,n=this.usersInfoFormGroup.get("sponsoredMembers").value.split("\n"),r=this.getSelectedNamespaceRules().csvGenHeader,o=[],a=_createForOfIteratorHelper(n);try{for(a.s();!(i=a.n()).done;){var s=i.value,c=this.parseMemberLine(s);if("format"===c||"email"===c)return void(this.loading=!1);""!==c&&o.push(c)}}catch(h){a.e(h)}finally{a.f()}var u={data:o,header:r,namespace:"",sponsor:this.store.getPerunPrincipal().userId,vo:this.data.voId,sendActivationLinks:"reset"===this.passwordReset};"none"!==this.groupAssignment&&(u.groups=this.groupIds),"never"!==this.expiration&&(u.validityTo=(0,l.p6)(this.expiration,"yyyy-MM-dd","en-GB")),"No namespace"!==this.usersInfoFormGroup.get("namespace").value&&(u.namespace=this.usersInfoFormGroup.get("namespace").value),this.membersService.createSponsoredMembersFromCSV(u).subscribe(function(i){e.state="results",e.finishedWithErrors=t.didSomeGenerationFailed(i),e.loading=!1,e.resultData=i},function(){return e.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onClose",value:function(){this.dialogRef.close(!0)}},{key:"parseMemberLine",value:function(t){var e=t.trim();if(""===e)return"";var i=e.split(";"),n=this.getSelectedNamespaceRules().csvGenHeader.split(";");if(i.length!==n.length)return"format";if("mail"===n[2].slice(n[2].length-4).toLowerCase()&&!i[2].trim().match(a.B2))return"email";if("login"===n[3]&&""===i[3].trim())return"login";var r,o="",s=_createForOfIteratorHelper(i);try{for(s.s();!(r=s.n()).done;){o+=r.value.trim()+";"}}catch(c){s.e(c)}finally{s.f()}return o.slice(0,-1)}},{key:"userInputValidator",value:function(){var t=this;return function(e){var i,n=_createForOfIteratorHelper(e.value.split("\n"));try{for(n.s();!(i=n.n()).done;){var r=i.value,o=t.parseMemberLine(r);if("format"===o)return{invalidFormat:{value:r}};if("email"===o)return{invalidEmail:{value:r}};if("login"===o)return{invalidLogin:{value:r}}}}catch(a){n.e(a)}finally{n.f()}return null}}},{key:"setExpiration",value:function(t){this.expiration="never"===t?"never":(0,l.p6)(t,"yyyy-MM-dd","en-GB")}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"groupAssigmentChanged",value:function(){this.selection.clear(),this.name="",this.description="",this.asSubGroup=!1,this.parentGroup=null}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,"new"===this.groupAssignment?this.asSubGroup?this.groupsService.createGroupWithParentGroupNameDescription(this.parentGroup.id,this.name,this.description).subscribe(function(e){t.groupIds.push(e.id),t.onGenerate()},function(){return t.loading=!1}):this.groupsService.createGroupWithVoNameDescription(this.data.voId,this.name,this.description).subscribe(function(e){t.groupIds.push(e.id),t.onGenerate()},function(){return t.loading=!1}):("existing"===this.groupAssignment&&(this.groupIds=this.selection.selected.map(function(t){return t.id})),this.onGenerate())}},{key:"getSelectedNamespaceRules",value:function(){var t=this;return this.namespaceRules.find(function(e){return e.namespaceName===t.usersInfoFormGroup.get("namespace").value})}},{key:"generatePdf",value:function(){var t=this;if(!this.resultData)throw new Error("Cannot generate pdf because there is no result");this.loading=!0,this.sponsoredMembersPDFService.generate(this.resultData).then(function(){return t.loading=!1})}},{key:"downloadCsv",value:function(){if(!this.resultData)throw new Error("Cannot generate pdf because there is no result");(0,a.O6)(this.createOutputObjects(this.resultData),"csv","member-logins")}},{key:"getStepperNextConditions",value:function(){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}}},{key:"stepperPrevious",value:function(){this.stepper.previous()}},{key:"stepperNext",value:function(){this.stepper.next()}}],[{key:"didSomeGenerationFailed",value:function(t){return t.forEach(function(t){if("OK"!==t.status)return!0}),!1}}]),t}();return t.\u0275fac=function(e){return new(e||t)(f.Y36(s.so),f.Y36(s.WI),f.Y36(c.d6),f.Y36(n.uq),f.Y36(c.V6),f.Y36(p.sK),f.Y36(c.x4),f.Y36(n.ff),f.Y36(n.H8),f.Y36(u.qu),f.Y36(c.HV),f.Y36(f.sBO))},t.\u0275cmp=f.Xpm({type:t,selectors:[["app-generate-sponsored-members-dialog"]],viewQuery:function(t,e){var i;(1&t&&f.Gf(ot,5),2&t)&&(f.iGM(i=f.CRH())&&(e.stepper=i.first))},decls:8,vars:10,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",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"],["required","","formControlName","namespace",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],[1,"font-weight-bold"],[1,"pt-2"],["id","voGenerateSponsoredMembers","name","voGenerateSponsoredMembers","rows","8","cols","50","matInput","","formControlName","sponsoredMembers",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","nameChanged","descriptionChanged","parentGroupChanged","asSubgroupChanged"],[3,"placeholder","filter"],[3,"groups","selection","displayedColumns","disableRouting","tableId","filter"],[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"],["mat-flat-button","","color","accent",1,"ml-auto","dropdown-toggle",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,e){1&t&&(f.TgZ(0,"div"),f.TgZ(1,"h1",0),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.YNc(4,at,1,0,"mat-spinner",1),f.YNc(5,It,3,2,"div",2),f.YNc(6,Pt,7,6,"div",3),f.YNc(7,Dt,15,13,"div",3),f.qZA()),2&t&&(f.Tol(e.theme),f.xp6(2),f.Oqu(f.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.TITLE")),f.xp6(2),f.Q6J("ngIf",e.loading),f.xp6(1),f.Q6J("ngIf",!e.loading),f.xp6(1),f.Q6J("ngIf",!e.loading&&void 0!==e.stepper&&"results"!==e.state),f.xp6(1),f.Q6J("ngIf","results"===e.state))},directives:[s.uh,l.O5,g.$g,s.xY,m.Vq,m.C0,m.VY,u._Y,u.JL,u.sg,v.KE,_.gD,u.Q7,u.JJ,u.u,l.sg,v.hX,y.Nt,u.Fj,T,k.VQ,u.On,k.U0,b.gM,E.w,S.ey,v.TO,et.r,it.L,nt.W,s.H8,x.lW,rt.p6,rt.VK,rt.OP],pipes:[p.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t}(),Lt=i(4252);function Nt(t,e){1&t&&f._UZ(0,"mat-spinner",12)}var zt=function(){return["checkbox","id","fullName","status","sponsored","email"]};function Zt(t,e){if(1&t&&f._UZ(0,"perun-web-apps-members-list",13),2&t){var i=f.oxw();f.Q6J("tableId",i.tableId)("hidden",i.loading)("members",i.members)("selection",i.selection)("displayedColumns",f.DdM(6,zt))("disableRouting",!0)}}function Bt(t,e){1&t&&(f.TgZ(0,"app-alert",14),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"DIALOGS.SPONSOR_EXISTING_MEMBER.BEGIN_SEARCH")," "))}var Ft=function(){var t=function(){function t(e,i,n,a,s,c){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.store=n,this.membersService=a,this.notificator=s,this.translate=c,this.loading=!1,this.tableId=o.US,this.expiration="never",this.searchCtrl=new u.NI("",[u.kI.required]),this.firstSearchDone=!1,this.members=[],this.selection=new r.Ov(!0,[])}return _createClass(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"sponsor",value:function(t){var e=this;if(this.loading=!0,0===t.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.SPONSOR_EXISTING_MEMBER.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);var i=t.pop();i.sponsored?this.membersService.sponsorMember(i.id,this.store.getPerunPrincipal().user.id,this.expiration).subscribe(function(){e.sponsor(t)},function(){return e.loading=!1}):this.membersService.setSponsorshipForMember(i.id,this.store.getPerunPrincipal().user.id,this.expiration).subscribe(function(){e.sponsor(t)},function(){return e.loading=!1})}},{key:"onSubmit",value:function(){this.loading=!0;var t=Array.from(this.selection.selected);this.expiration="never"===this.expiration?null:this.expiration,this.sponsor(t)}},{key:"setExpiration",value:function(t){this.expiration="never"===t?"never":(0,l.p6)(t,"yyyy-MM-dd","en-GB")}},{key:"onSearchByString",value:function(){var t=this;this.searchCtrl.invalid?this.searchCtrl.markAllAsTouched():(this.firstSearchDone=!0,this.loading=!0,this.selection.clear(),this.membersService.findCompleteRichMembersForVo(this.data.voId,[tt.r.MEMBER_DEF_EXPIRATION,tt.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe(function(e){t.members=e,t.loading=!1},function(){return t.loading=!1}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(f.Y36(s.so),f.Y36(s.WI),f.Y36(c.d6),f.Y36(n.uq),f.Y36(c.V6),f.Y36(p.sK))},t.\u0275cmp=f.Xpm({type:t,selectors:[["app-sponsor-existing-member-dialog"]],decls:31,vars:30,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"mr-2","search-field","adjust-width"],["matInput","","autocomplete","false",3,"placeholder","formControl","keyup.enter"],["mat-flat-button","","color","accent",1,"ml-auto",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","hidden","members","selection","displayedColumns","disableRouting",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"datePicker"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","hidden","members","selection","displayedColumns","disableRouting"],["alert_type","info"]],template:function(t,e){1&t&&(f.TgZ(0,"div"),f.TgZ(1,"h1",0),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"div",1),f.TgZ(5,"mat-form-field",2),f.TgZ(6,"label"),f.TgZ(7,"input",3),f.NdJ("keyup.enter",function(){return e.onSearchByString()}),f.ALo(8,"translate"),f.qZA(),f.qZA(),f.TgZ(9,"mat-error"),f._uU(10),f.ALo(11,"translate"),f.qZA(),f.qZA(),f.TgZ(12,"button",4),f.NdJ("click",function(){return e.onSearchByString()}),f._uU(13),f.ALo(14,"translate"),f.qZA(),f.YNc(15,Nt,1,0,"mat-spinner",5),f.YNc(16,Zt,1,7,"perun-web-apps-members-list",6),f.YNc(17,Bt,3,3,"app-alert",7),f.TgZ(18,"div"),f._UZ(19,"br"),f.TgZ(20,"h6"),f._uU(21),f.ALo(22,"translate"),f.qZA(),f.TgZ(23,"perun-web-apps-expiration-select",8),f.NdJ("datePicker",function(t){return e.setExpiration(t)}),f.qZA(),f.qZA(),f.qZA(),f.TgZ(24,"div",9),f.TgZ(25,"button",10),f.NdJ("click",function(){return e.onCancel()}),f._uU(26),f.ALo(27,"translate"),f.qZA(),f.TgZ(28,"button",11),f.NdJ("click",function(){return e.onSubmit()}),f._uU(29),f.ALo(30,"translate"),f.qZA(),f.qZA(),f.qZA()),2&t&&(f.Tol(e.theme),f.xp6(2),f.Oqu(f.lcZ(3,16,"DIALOGS.SPONSOR_EXISTING_MEMBER.TITLE")),f.xp6(5),f.s9C("placeholder",f.lcZ(8,18,"DIALOGS.SPONSOR_EXISTING_MEMBER.DESCRIPTION")),f.Q6J("formControl",e.searchCtrl),f.xp6(3),f.hij(" ",f.lcZ(11,20,"DIALOGS.SPONSOR_EXISTING_MEMBER.EMPTY_SEARCH_MESSAGE")," "),f.xp6(2),f.Q6J("disabled",e.loading),f.xp6(1),f.hij(" ",f.lcZ(14,22,"DIALOGS.SPONSOR_EXISTING_MEMBER.SEARCH")," "),f.xp6(2),f.Q6J("ngIf",e.loading),f.xp6(1),f.Q6J("ngIf",e.firstSearchDone),f.xp6(1),f.Q6J("ngIf",!e.firstSearchDone),f.xp6(4),f.Oqu(f.lcZ(22,24,"DIALOGS.SPONSOR_EXISTING_MEMBER.EXPIRATION")),f.xp6(5),f.hij(" ",f.lcZ(27,26,"DIALOGS.SPONSOR_EXISTING_MEMBER.CANCEL")," "),f.xp6(2),f.Q6J("disabled",e.loading||0===e.selection.selected.length),f.xp6(1),f.hij(" ",f.lcZ(30,28,"DIALOGS.SPONSOR_EXISTING_MEMBER.SPONSOR")," "))},directives:[s.uh,s.xY,v.KE,y.Nt,u.Fj,u.JJ,u.oH,v.TO,x.lW,l.O5,T,s.H8,g.$g,Lt.O,E.w],pipes:[p.X$],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}"]}),t}(),qt=i(59403),Ht=i(58623),Ut=i(67033),Gt=i(79592),jt=i(95121),Yt=i(82819),Kt=i(84534),Vt=i(57629);function Jt(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"th",16),f.TgZ(1,"mat-checkbox",17),f.NdJ("change",function(t){f.CHM(i);var e=f.oxw();return t?e.masterToggle():null}),f.qZA(),f.qZA()}if(2&t){var n=f.oxw();f.xp6(1),f.Q6J("aria-label",n.checkboxLabel())("checked",n.selection.hasValue()&&n.isAllSelected())("indeterminate",n.selection.hasValue()&&!n.isAllSelected())}}function Qt(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"td",18),f.TgZ(1,"mat-checkbox",19),f.NdJ("change",function(t){var e=f.CHM(i).$implicit,n=f.oxw();return t?n.selection.toggle(e):null})("click",function(t){return t.stopPropagation()}),f.qZA(),f.qZA()}if(2&t){var n=e.$implicit,r=f.oxw();f.xp6(1),f.Q6J("aria-label",r.checkboxLabel(n))("checked",r.selection.isSelected(n))}}function Wt(t,e){1&t&&(f.TgZ(0,"th",20),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.Oqu(f.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.ID")))}function Xt(t,e){if(1&t&&(f.TgZ(0,"td",21),f._uU(1),f.qZA()),2&t){var i=e.$implicit;f.xp6(1),f.Oqu(i.member.id)}}function $t(t,e){1&t&&(f.TgZ(0,"th",20),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.Oqu(f.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NAME")))}function te(t,e){if(1&t&&(f.TgZ(0,"td",22),f._uU(1),f.ALo(2,"userFullName"),f.qZA()),2&t){var i=e.$implicit;f.xp6(1),f.Oqu(f.lcZ(2,1,i.member.user))}}function ee(t,e){1&t&&(f.TgZ(0,"th",20),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.Oqu(f.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.SPONSORS")))}function ie(t,e){if(1&t&&(f.TgZ(0,"span"),f._uU(1),f.ALo(2,"userFullName"),f._UZ(3,"br"),f.qZA()),2&t){var i=e.$implicit;f.xp6(1),f.hij(" ",f.lcZ(2,1,i.user),"")}}function ne(t,e){if(1&t&&(f.TgZ(0,"td",22),f.YNc(1,ie,4,3,"span",23),f.qZA()),2&t){var i=e.$implicit;f.xp6(1),f.Q6J("ngForOf",i.sponsors)}}function re(t,e){1&t&&f._UZ(0,"th",20)}function oe(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"span",26),f.ALo(1,"translate"),f.TgZ(2,"button",27),f.NdJ("mouseenter",function(){return f.CHM(i),f.oxw(2).disableRouting=!0})("mouseleave",function(){f.CHM(i);var t=f.oxw(2);return t.disableRouting=t.routingStrategy})("click",function(){f.CHM(i);var t=f.oxw().$implicit;return f.oxw().resetPassword(t)}),f.TgZ(3,"mat-icon"),f._uU(4,"vpn_key"),f.qZA(),f.qZA(),f.qZA()}if(2&t){var n=f.oxw(2);f.Q6J("matTooltipPosition","above")("matTooltip",f.lcZ(1,3,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.PASSWORD_RESET")),f.xp6(2),f.Q6J("disabled",n.loading)}}function ae(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"td",22),f.TgZ(1,"button",24),f.NdJ("click",function(){var t=f.CHM(i).$implicit;return f.oxw().showSponsors(t)})("mouseenter",function(){return f.CHM(i),f.oxw().disableRouting=!0})("mouseleave",function(){f.CHM(i);var t=f.oxw();return t.disableRouting=t.routingStrategy}),f.TgZ(2,"mat-icon"),f._uU(3,"edit"),f.qZA(),f.qZA(),f.YNc(4,oe,5,5,"span",25),f.qZA()}if(2&t){var n=e.$implicit,r=f.oxw();f.xp6(4),f.Q6J("ngIf",r.passwdResetAuth(n))}}function se(t,e){1&t&&f._UZ(0,"tr",28)}var ce=function(t,e){return["/organizations",t,"members",e]};function ue(t,e){if(1&t&&f._UZ(0,"tr",29),2&t){var i=e.$implicit,n=f.oxw();f.ekj("cursor-pointer",!n.disableRouting)("disable-outline",n.disableRouting),f.Q6J("perunWebAppsMiddleClickRouterLink",n.disableRouting?null:f.WLB(6,ce,i.member.voId,i.member.id))("routerLink",n.disableRouting?null:f.WLB(9,ce,i.member.voId,i.member.id))}}function le(t,e){1&t&&(f.TgZ(0,"app-alert",30),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function he(t,e){1&t&&(f.TgZ(0,"app-alert",30),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NO_SPONSORED_MEMBERS_WARNING"),"\n"))}var de=function(){var t=function(){function t(e,i,n,r,o){_classCallCheck(this,t),this.dialog=e,this.authResolver=i,this.storeService=n,this.attributesManager=r,this.tableCheckbox=o,this.sponsoredMembers=[],this.filterValue="",this.displayedColumns=["id","name","sponsors","menu"],this.disableRouting=!1,this.refreshTable=new f.vpe,this.loading=!1,this.routingStrategy=!1,this.pageSizeOptions=a.f7}return _createClass(t,[{key:"matSort",set:function(t){this.sort=t}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.setDataSource(),this.routingStrategy=this.disableRouting}},{key:"getSortDataForColumn",value:function(t,e){var i;switch(e){case"id":return t.member.id.toString();case"name":return t.member.user?t.member.user.lastName?t.member.user.lastName:null!==(i=t.member.user.firstName)&&void 0!==i?i:"":"";case"sponsors":return t.sponsors.length.toString();default:return""}}},{key:"getDataForColumn",value:function(t,e){switch(e){case"id":return t.member.id.toString();case"name":return t.member.user?(0,a.bD)(t.member.user):"";case"sponsors":return t.sponsors.map(function(t){return(0,a.bD)(t.user)}).join();default:return""}}},{key:"exportData",value:function(t){(0,a.O6)((0,a.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource||(this.dataSource=new Ut.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=function(e,i){return(0,a.Sd)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return(0,a.pR)(e,i,t.getSortDataForColumn,t)}),this.dataSource.filter=this.filterValue,this.dataSource.data=this.sponsoredMembers}},{key:"showSponsors",value:function(t){var e=this,i=(0,a.kZ)();i.width="650px",i.data={sponsors:t.sponsors,member:t.member,theme:"vo-theme"},this.dialog.open(Gt.H,i).afterClosed().subscribe(function(t){t&&e.refreshTable.emit()})}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.member.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"resetPassword",value:function(t){var e=this;this.loading=!0;var i=this.storeService.get("password_namespace_attributes").map(function(t){return(t=t.split(":"))[t.length-1]});this.attributesManager.getLogins(t.member.userId).subscribe(function(n){var r=n.filter(function(t){return i.includes(t.friendlyNameParameter)}),o=(0,a.kZ)();o.width="400px",o.data={userId:t.member.userId,memberId:t.member.id,logins:r},e.dialog.open(jt.m,o).afterClosed().subscribe(function(){e.loading=!1})},function(){return e.loading=!1})}},{key:"passwdResetAuth",value:function(t){return this.authResolver.isAuthorized("sendPasswordResetLinkEmail_Member_String_String_String_String_policy",[{id:t.member.voId,beanName:"Vo"},t.member])}}]),t}();return t.\u0275fac=function(e){return new(e||t)(f.Y36(s.uw),f.Y36(c.x4),f.Y36(c.d6),f.Y36(n.H8),f.Y36(c.UA))},t.\u0275cmp=f.Xpm({type:t,selectors:[["app-sponsored-members-list"]],viewQuery:function(t,e){var i;(1&t&&(f.Gf(Ht.YE,7),f.Gf(a.l9,7)),2&t)&&(f.iGM(i=f.CRH())&&(e.matSort=i.first),f.iGM(i=f.CRH())&&(e.child=i.first))},inputs:{sponsoredMembers:"sponsoredMembers",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",disableRouting:"disableRouting",tableId:"tableId"},outputs:{refreshTable:"refreshTable"},features:[f.TTD],decls:22,vars:9,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","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",""],[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(t,e){1&t&&(f.TgZ(0,"div",0),f.TgZ(1,"perun-web-apps-table-wrapper",1),f.NdJ("exportData",function(t){return e.exportData(t)}),f.TgZ(2,"table",2),f.ynx(3,3),f.YNc(4,Jt,2,3,"th",4),f.YNc(5,Qt,2,2,"td",5),f.BQk(),f.ynx(6,6),f.YNc(7,Wt,3,3,"th",7),f.YNc(8,Xt,2,1,"td",8),f.BQk(),f.ynx(9,9),f.YNc(10,$t,3,3,"th",7),f.YNc(11,te,3,3,"td",10),f.BQk(),f.ynx(12,11),f.YNc(13,ee,3,3,"th",7),f.YNc(14,ne,2,1,"td",10),f.BQk(),f.ynx(15,12),f.YNc(16,re,1,0,"th",7),f.YNc(17,ae,5,1,"td",10),f.BQk(),f.YNc(18,se,1,0,"tr",13),f.YNc(19,ue,1,12,"tr",14),f.qZA(),f.qZA(),f.qZA(),f.YNc(20,le,3,3,"app-alert",15),f.YNc(21,he,3,3,"app-alert",15)),2&t&&(f.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.sponsoredMembers.length),f.xp6(1),f.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),f.xp6(1),f.Q6J("dataSource",e.dataSource),f.xp6(16),f.Q6J("matHeaderRowDef",e.displayedColumns),f.xp6(1),f.Q6J("matRowDefColumns",e.displayedColumns),f.xp6(1),f.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.sponsoredMembers.length),f.xp6(1),f.Q6J("ngIf",0===e.sponsoredMembers.length))},directives:[Yt.l,Ut.BZ,Ht.YE,Ut.w1,Ut.fO,Ut.Dz,Ut.as,Ut.nj,l.O5,Ut.ge,w.oG,Ut.ev,Ht.nU,l.sg,x.lW,R.Hw,b.gM,Ut.XQ,Ut.Gk,Kt.YH,Vt.rH,E.w],pipes:[p.X$,O.d],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t}();function fe(t,e){if(1&t&&(f.TgZ(0,"button",10),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t){var i=f.oxw(),n=f.MAs(9);f.Q6J("disabled",i.findSponsorsAuth&&0===i.voSponsors.length)("matMenuTriggerFor",n),f.xp6(1),f.hij(" ",f.lcZ(2,3,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE")," ")}}function pe(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",11),f.NdJ("click",function(){return f.CHM(i),f.oxw().onCreate()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE_ONE")," "))}function ge(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",11),f.NdJ("click",function(){return f.CHM(i),f.oxw().onGenerate()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.GENERATE")," "))}function me(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",12),f.NdJ("click",function(){return f.CHM(i),f.oxw().onSponsorExistingMember()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.SPONSOR_EXISTING")," "))}function ve(t,e){1&t&&f._UZ(0,"mat-spinner",13)}function ye(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"app-sponsored-members-list",14),f.NdJ("refreshTable",function(){return f.CHM(i),f.oxw().refresh()}),f.qZA()}if(2&t){var n=f.oxw();f.Q6J("sponsoredMembers",n.members)("disableRouting",!n.routeAuth)("selection",n.selection)("filterValue",n.searchString)("tableId",n.tableId)}}var _e=function(){var t=function(){function t(e,i,n,a,s,c){_classCallCheck(this,t),this.membersManager=e,this.dialog=i,this.authResolver=n,this.storeService=a,this.authzResolver=s,this.entityStorageService=c,this.members=[],this.voSponsors=[],this.attrNames=[],this.selection=new r.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=o.Bf}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights();var e=["SPONSOR"],i=new Map;this.authResolver.getRolesAuthorization(e,this.vo,i),this.findSponsorsAuth=i.get(e[0]).readAuth,this.findSponsorsAuth?this.authzResolver.getAuthzRichAdmins(h.u.SPONSOR,this.vo.id,"Vo",[tt.r.USER_DEF_PREFERRED_MAIL],!1,!1).subscribe(function(e){t.voSponsors=e,t.refresh()}):this.refresh()}},{key:"setAuthRights",value:function(){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]))}},{key:"onCreate",value:function(){var t=this,e=(0,a.kZ)();e.width="620px",e.data={entityId:this.vo.id,voId:this.vo.id,sponsors:this.voSponsors,theme:"vo-theme"},this.dialog.open($,e).afterClosed().subscribe(function(e){e&&(t.loading=!0,t.authzResolver.getPerunPrincipal().subscribe(function(e){t.storeService.setPerunPrincipal(e),t.refresh()}))})}},{key:"onGenerate",value:function(){var t=this,e=(0,a.kZ)();e.width="750px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(Mt,e).afterClosed().subscribe(function(e){e&&(t.loading=!0,t.authzResolver.getPerunPrincipal().subscribe(function(e){t.storeService.setPerunPrincipal(e),t.refresh()}))})}},{key:"onSponsorExistingMember",value:function(){var t=this,e=(0,a.kZ)();e.width="650px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(Ft,e).afterClosed().subscribe(function(e){e&&(t.loading=!0,t.authzResolver.getPerunPrincipal().subscribe(function(e){t.storeService.setPerunPrincipal(e),t.refresh()}))})}},{key:"refresh",value:function(){var t=this;this.loading=!0,this.membersManager.getSponsoredMembersAndTheirSponsors(this.vo.id,this.attrNames).subscribe(function(e){t.selection.clear(),t.members=e,t.setAuthRights(),t.loading=!1})}},{key:"applyFilter",value:function(t){this.searchString=t}}]),t}();return t.id="VoSponsoredMembersComponent",t.\u0275fac=function(e){return new(e||t)(f.Y36(n.uq),f.Y36(s.uw),f.Y36(c.x4),f.Y36(c.d6),f.Y36(n.Ct),f.Y36(c.fb))},t.\u0275cmp=f.Xpm({type:t,selectors:[["app-vo-settings-sponsored-members"]],hostVars:2,hostBindings:function(t,e){2&t&&f.ekj("router-component",e.true)},decls:16,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent","class","mr-2 dropdown-toggle",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["mat-menu-item","","class","action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"sponsoredMembers","disableRouting","selection","filterValue","tableId","refreshTable",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",1,"action-button",3,"click"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"sponsoredMembers","disableRouting","selection","filterValue","tableId","refreshTable"]],template:function(t,e){1&t&&(f.TgZ(0,"div"),f.TgZ(1,"h1",0),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"perun-web-apps-refresh-button",1),f.NdJ("refresh",function(){return e.refresh()}),f.qZA(),f.TgZ(5,"span",2),f.ALo(6,"translate"),f.YNc(7,fe,3,5,"button",3),f.qZA(),f.TgZ(8,"mat-menu",null,4),f.YNc(10,pe,3,3,"button",5),f.YNc(11,ge,3,3,"button",5),f.qZA(),f.YNc(12,me,3,3,"button",6),f.TgZ(13,"perun-web-apps-immediate-filter",7),f.NdJ("filter",function(t){return e.applyFilter(t)}),f.qZA(),f.YNc(14,ve,1,0,"mat-spinner",8),f.YNc(15,ye,1,5,"app-sponsored-members-list",9),f.qZA()),2&t&&(f.xp6(2),f.Oqu(f.lcZ(3,10,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.TITLE")),f.xp6(3),f.s9C("matTooltip",f.lcZ(6,12,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.NO_SPONSORS")),f.Q6J("matTooltipDisabled",!(e.findSponsorsAuth&&0===e.voSponsors.length)),f.xp6(2),f.Q6J("ngIf",e.createAuth||e.generateAuth),f.xp6(3),f.Q6J("ngIf",e.createAuth),f.xp6(1),f.Q6J("ngIf",e.generateAuth),f.xp6(1),f.Q6J("ngIf",e.setSponsorshipAuth),f.xp6(1),f.Q6J("placeholder","VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.FILTER"),f.xp6(1),f.Q6J("ngIf",e.loading),f.xp6(1),f.Q6J("ngIf",!e.loading))},directives:[qt.t,b.gM,l.O5,rt.VK,it.L,x.lW,rt.p6,rt.OP,g.$g,de],pipes:[p.X$],styles:[""]}),t}()},17249:function(t,e,i){"use strict";i.d(e,{Y:function(){return M}});var n=i(65249),r=i(84140),o=i(68416),a=i(99608),s=i(4230),c=i(84608),u=i(16073),l=i(31572),h=i(48160),d=i(57629),f=i(61511),p=i(67806),g=i(66283),m=i(80340),v=i(15980),y=i(36922);function _(t,e){1&t&&l._UZ(0,"mat-spinner",3)}function b(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"div"),l.TgZ(1,"div",4),l.TgZ(2,"mat-form-field"),l._UZ(3,"input",5),l.ALo(4,"translate"),l.TgZ(5,"mat-error"),l._uU(6),l.ALo(7,"translate"),l.qZA(),l.qZA(),l.TgZ(8,"mat-form-field"),l._UZ(9,"input",6),l.ALo(10,"translate"),l.TgZ(11,"mat-error"),l._uU(12),l.ALo(13,"translate"),l.qZA(),l.qZA(),l.qZA(),l.TgZ(14,"div",7),l.TgZ(15,"button",8),l.NdJ("click",function(){return l.CHM(i),l.oxw().onCancel()}),l._uU(16),l.ALo(17,"translate"),l.qZA(),l.TgZ(18,"div",9),l.ALo(19,"translate"),l.TgZ(20,"button",10),l.NdJ("click",function(){return l.CHM(i),l.oxw().onSubmit()}),l._uU(21),l.ALo(22,"translate"),l.qZA(),l.qZA(),l.qZA(),l.qZA()}if(2&t){var n=l.oxw();l.xp6(3),l.s9C("placeholder",l.lcZ(4,11,"DIALOGS.CREATE_VO.FULL_NAME")),l.Q6J("formControl",n.fullNameCtrl),l.xp6(3),l.hij(" ",l.lcZ(7,13,"DIALOGS.CREATE_VO.FILL_FULL_NAME")," "),l.xp6(3),l.s9C("placeholder",l.lcZ(10,15,"DIALOGS.CREATE_VO.SHORT_NAME")),l.Q6J("formControl",n.shortNameCtrl),l.xp6(3),l.hij(" ",l.lcZ(13,17,"DIALOGS.CREATE_VO.FILL_SHORT_NAME")," "),l.xp6(4),l.hij(" ",l.lcZ(17,19,"DIALOGS.CREATE_VO.CANCEL")," "),l.xp6(2),l.s9C("matTooltip",l.lcZ(19,21,"DIALOGS.CREATE_VO.TOOLTIP")),l.Q6J("matTooltipDisabled",n.shortNameCtrl.valid&&n.fullNameCtrl.valid),l.xp6(2),l.Q6J("disabled",n.shortNameCtrl.invalid||n.fullNameCtrl.invalid),l.xp6(1),l.hij(" ",l.lcZ(22,23,"DIALOGS.CREATE_VO.CREATE")," ")}}var w=function(){var t=function(){function t(e,i,n,r,o,a){var s=this;_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.voService=r,this.translate=o,this.router=a,o.get("DIALOGS.CREATE_VO.SUCCESS").subscribe(function(t){return s.successMessage=t})}return _createClass(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.shortNameCtrl=new u.NI(null,[u.kI.required,u.kI.pattern("^[\\w.-]+$"),u.kI.maxLength(33)]),this.fullNameCtrl=new u.NI(null,[u.kI.required,u.kI.pattern(".*[\\S]+.*"),u.kI.maxLength(129)])}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.voService.createVoWithName(this.fullNameCtrl.value,this.shortNameCtrl.value).subscribe(function(e){t.notificator.showSuccess(t.successMessage),t.loading=!1,t.dialogRef.close(!0),t.router.navigate(["/organizations",e.id])},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Y36(c.so),l.Y36(c.WI),l.Y36(o.V6),l.Y36(n.YF),l.Y36(h.sK),l.Y36(d.F0))},t.\u0275cmp=l.Xpm({type:t,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","","required","","data-cy","vo-name-input",3,"placeholder","formControl"],["matInput","","required","","data-cy","vo-shortname-input",3,"placeholder","formControl"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent","data-cy","create-vo-button",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,_,1,0,"mat-spinner",1),l.YNc(5,b,23,25,"div",2),l.qZA()),2&t&&(l.Tol(e.theme),l.xp6(2),l.Oqu(l.lcZ(3,6,"DIALOGS.CREATE_VO.TITLE")),l.xp6(2),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[c.uh,f.O5,p.$g,c.xY,g.KE,m.Nt,u.Fj,u.Q7,u.JJ,u.oH,g.TO,c.H8,v.lW,y.gM],pipes:[h.X$],styles:[""]}),t}(),A=i(60611),k=i(48958),C=i(66297),T=i(43691),E=i(59403),S=i(19139),I=i(97162);function R(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",9),l.NdJ("click",function(){return l.CHM(i),l.oxw().onCreateVo()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"VO_MANAGEMENT.CREATE_VO")," "))}function x(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",10),l.NdJ("click",function(){return l.CHM(i),l.oxw().onRemoveVo()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}if(2&t){var n=l.oxw();l.Q6J("disabled",0===n.selection.selected.length),l.xp6(1),l.hij(" ",l.lcZ(2,2,"VO_MANAGEMENT.REMOVE_VO")," ")}}function O(t,e){1&t&&l._UZ(0,"mat-spinner",11)}function P(t,e){if(1&t&&l._UZ(0,"perun-web-apps-vos-list",12),2&t){var i=l.oxw();l.Q6J("tableId",i.tableId)("displayedColumns",i.displayedColumns)("filterValue",i.filterValue)("recentIds",i.recentIds)("selection",i.selection)("vos",i.vos)}}var D=function(){return{color:"black"}},M=function(){var t=function(){function t(e,i,n,r,o,a){_classCallCheck(this,t),this.sideMenuService=e,this.voService=i,this.guiAuthResolver=n,this.dialog=r,this.notificator=o,this.apiRequest=a,this.vos=[],this.recentIds=[],this.filterValue="",this.tableId=A.tw}return _createClass(t,[{key:"ngOnInit",value:function(){this.loading=!0,this.selection=new s.Ov(!1,[]),this.createAuth=this.guiAuthResolver.isAuthorized("createVo_Vo_policy",[]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteVo_Vo_policy",[]),this.displayedColumns=this.deleteAuth?["checkbox","id","recent","shortName","name"]:["id","recent","shortName","name"],this.refreshTable()}},{key:"ngAfterViewChecked",value:function(){this.sideMenuService.setAccessMenuItems([])}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.selection.clear(),this.apiRequest.dontHandleErrorForNext(),this.voService.getMyVos().subscribe(function(e){t.vos=e,t.recentIds=(0,r.vL)("vos"),t.loading=!1},function(e){"PrivilegeException"===e.error.name?(t.vos=[],t.loading=!1):t.notificator.showRPCError(e)})}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"onCreateVo",value:function(){var t=this,e=(0,r.kZ)();e.width="600px",e.data={theme:"vo-theme"},this.dialog.open(w,e).afterClosed().subscribe(function(e){e&&(t.loading=!0,t.refreshTable())})}},{key:"onRemoveVo",value:function(){var t=this,e=(0,r.kZ)();e.width="500px",e.data={theme:"vo-theme",vos:[this.selection.selected[0]]},this.dialog.open(a.o,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}}]),t}();return t.id="VoSelectPageComponent",t.\u0275fac=function(e){return new(e||t)(l.Y36(k.D),l.Y36(n.YF),l.Y36(o.x4),l.Y36(c.uw),l.Y36(o.V6),l.Y36(o.F5))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-vo-select-page"]],hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("router-component",e.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"],["mat-flat-button","","color","accent","class","mr-2 action-button","data-cy","new-vo-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"],["mat-flat-button","","color","accent","data-cy","new-vo-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(t,e){1&t&&(l.TgZ(0,"div",0),l._UZ(1,"perun-web-apps-back-button"),l.TgZ(2,"h1",1),l._UZ(3,"mat-icon",2),l._uU(4),l.ALo(5,"translate"),l.qZA(),l.TgZ(6,"perun-web-apps-refresh-button",3),l.NdJ("refresh",function(){return e.refreshTable()}),l.qZA(),l.YNc(7,R,3,3,"button",4),l.YNc(8,x,3,4,"button",5),l.TgZ(9,"perun-web-apps-immediate-filter",6),l.NdJ("filter",function(t){return e.applyFilter(t)}),l.qZA(),l.YNc(10,O,1,0,"mat-spinner",7),l.YNc(11,P,1,6,"perun-web-apps-vos-list",8),l.qZA()),2&t&&(l.xp6(3),l.Q6J("ngStyle",l.DdM(10,D)),l.xp6(1),l.hij(" ",l.lcZ(5,8,"VO_MANAGEMENT.TITLE")," "),l.xp6(3),l.Q6J("ngIf",e.createAuth),l.xp6(1),l.Q6J("ngIf",e.deleteAuth),l.xp6(1),l.Q6J("autoFocus",!0)("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER"),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[C.W,T.Hw,f.PC,E.t,f.O5,S.L,v.lW,p.$g,I.Z],pipes:[h.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),t}()},73868:function(t,e,i){"use strict";var n=i(30269),r=i(31572),o=i(57629),a=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Xpm({type:t,selectors:[["app-auth-callback"]],decls:0,vars:0,template:function(t,e){},styles:[""]}),t}(),s=i(65249),c=i(68416),u=i(84140),l=i(6527),h=i(48958),d=i(48160),f=i(84608),p=i(25122),g=i(29236),m=i(16073),v=i(61511),y=i(43691),_=i(15980),b=i(67806),w=i(39571),A=i(71522),k=i(84534),C=i(36922);function T(t,e){1&t&&r._UZ(0,"mat-spinner",3)}function E(t,e){1&t&&(r.TgZ(0,"app-alert",4),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"USER_DETAIL.DASHBOARD.NO_RECENTLY_VIEWED")))}var S=function(t){return[t]};function I(t,e){if(1&t&&(r.TgZ(0,"div",7),r.TgZ(1,"a",8),r.TgZ(2,"span",9),r._uU(3),r.qZA(),r._UZ(4,"mat-icon",10),r.TgZ(5,"p",11),r._uU(6),r.qZA(),r.qZA(),r.qZA()),2&t){var i=e.$implicit;r.xp6(1),r.Gre("",i.style," item-itself"),r.s9C("matTooltip",i.tooltip),r.Q6J("routerLink",i.url)("perunWebAppsMiddleClickRouterLink",r.VKq(9,S,i.url)),r.xp6(2),r.Oqu(i.type),r.xp6(1),r.Q6J("svgIcon",i.cssIcon),r.xp6(2),r.Oqu(i.label)}}function R(t,e){if(1&t&&(r.TgZ(0,"div",5),r.YNc(1,I,7,11,"div",6),r.qZA()),2&t){var i=r.oxw();r.xp6(1),r.Q6J("ngForOf",i.items)}}var x=function(){var t=function(){function t(e,i,n,r){_classCallCheck(this,t),this.vosManager=e,this.groupsManager=i,this.authResolver=n,this.facilitiesManager=r,this.items=[],this.vosIds=[],this.groupsIds=[],this.facilitiesIds=[],this.existingRecentIds=[],this.vos=[],this.groups=[],this.facilities=[]}return _createClass(t,[{key:"ngOnInit",value:function(){this.loading=!0,this.recentItems=(0,u.vL)("recent");var t,e=_createForOfIteratorHelper(this.recentItems);try{for(e.s();!(t=e.n()).done;){var i=t.value;switch(i.type){case"Vo":this.vosIds.push(i.id);break;case"Group":this.groupsIds.push(i.id);break;case"Facility":this.facilitiesIds.push(i.id)}}}catch(n){e.e(n)}finally{e.f()}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()}},{key:"getVos",value:function(){var t=this;this.authResolver.isAuthorized("getVosByIds_List_policy",[])?this.vosManager.getVosByIds(this.vosIds).subscribe(function(e){t.vos=e,t.getGroups()}):this.getGroups()}},{key:"getGroups",value:function(){var t=this;this.authResolver.isAuthorized("getGroupsByIds_List_policy",[])?this.groupsManager.getGroupsByIds(this.groupsIds).subscribe(function(e){t.groups=e,t.getFacilities()}):this.getFacilities()}},{key:"getFacilities",value:function(){var t=this;this.authResolver.isAuthorized("getFacilitiesByIds_List_policy",[])?this.facilitiesManager.getFacilitiesByIds(this.facilitiesIds).subscribe(function(e){t.facilities=e,t.addRecentlyViewedToDashboard()}):this.addRecentlyViewedToDashboard()}},{key:"addRecentlyViewedToDashboard",value:function(){var t,e=this,i=_createForOfIteratorHelper(this.recentItems);try{var n=function(){var i=t.value;switch(i.type){case"Vo":var n=e.vos.filter(function(t){return t.id===i.id})[0];n&&e.items.push({cssIcon:"perun-vo",url:"/organizations/".concat(n.id),label:n.name,tooltip:n.name,style:"vo-btn",type:"Organization"});break;case"Group":var r=e.groups.filter(function(t){return t.id===i.id})[0];r&&e.items.push({cssIcon:"perun-group",url:"/organizations/".concat(r.voId,"/groups/").concat(r.id),label:r.shortName,tooltip:"".concat(i.voName," : ").concat(r.name.replace(/:/g," : ")),style:"group-btn",type:"Group"});break;case"Facility":var o=e.facilities.filter(function(t){return t.id===i.id})[0];o&&e.items.push({cssIcon:"perun-facility-white",url:"/facilities/".concat(o.id),label:o.name,tooltip:o.name,style:"facility-btn",type:"Facility"})}};for(i.s();!(t=i.n()).done;)n()}catch(r){i.e(r)}finally{i.f()}this.loading=!1}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(s.YF),r.Y36(s.ff),r.Y36(c.x4),r.Y36(s.IQ))},t.\u0275cmp=r.Xpm({type:t,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","perunWebAppsMiddleClickRouterLink","matTooltip"],[1,"item-type"],[1,"item-pic","perun-icon",3,"svgIcon"],[1,"truncate"]],template:function(t,e){1&t&&(r.YNc(0,T,1,0,"mat-spinner",0),r.YNc(1,E,3,3,"app-alert",1),r.YNc(2,R,2,1,"div",2)),2&t&&(r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",0===e.items.length&&!e.loading),r.xp6(1),r.Q6J("ngIf",e.items.length>0))},directives:[v.O5,b.$g,w.w,v.sg,A.wG,o.yS,k.YH,C.gM,y.Hw],pipes:[d.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%]{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap}"]}),t}(),O=i(97162),P=i(78364),D=i(88884),M=i(60007);function L(t,e){1&t&&r._UZ(0,"mat-spinner",7)}var N=function(){return["id","recent","shortName","name"]};function z(t,e){if(1&t&&(r.TgZ(0,"span"),r._UZ(1,"perun-web-apps-vos-list",8),r.qZA()),2&t){var i=r.oxw(2);r.xp6(1),r.Q6J("pageSizeOptions",null)("displayedColumns",r.DdM(4,N))("recentIds",i.recentIds)("vos",i.objects)}}var Z=function(){return["id","recent","vo","name","description"]};function B(t,e){if(1&t&&(r.TgZ(0,"span"),r._UZ(1,"perun-web-apps-groups-list",9),r.qZA()),2&t){var i=r.oxw(2);r.xp6(1),r.Q6J("pageSizeOptions",null)("groups",i.objects)("recentIds",i.recentIds)("displayedColumns",r.DdM(4,Z))}}var F=function(){return["id","recent","name","vo","facility"]};function q(t,e){if(1&t&&(r.TgZ(0,"span"),r._UZ(1,"perun-web-apps-resources-list",10),r.qZA()),2&t){var i=r.oxw(2);r.xp6(1),r.Q6J("pageSizeOptions",null)("resources",i.objects)("displayedColumns",r.DdM(5,F))("recentIds",i.recentIds)("routingVo",!0)}}var H=function(){return["id","recent","name","description"]};function U(t,e){if(1&t&&(r.TgZ(0,"span"),r._UZ(1,"perun-web-apps-facilities-list",11),r.qZA()),2&t){var i=r.oxw(2);r.xp6(1),r.Q6J("pageSizeOptions",null)("facilities",i.objects)("recentIds",i.recentIds)("displayedColumns",r.DdM(4,H))}}function G(t,e){if(1&t&&(r.TgZ(0,"div"),r.YNc(1,z,2,5,"span",6),r.YNc(2,B,2,5,"span",6),r.YNc(3,q,2,6,"span",6),r.YNc(4,U,2,5,"span",6),r.qZA()),2&t){var i=r.oxw();r.xp6(1),r.Q6J("ngIf","Vo"===i.primaryObject),r.xp6(1),r.Q6J("ngIf","Group"===i.primaryObject),r.xp6(1),r.Q6J("ngIf","Resource"===i.primaryObject),r.xp6(1),r.Q6J("ngIf","Facility"===i.primaryObject)}}var j=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.authzResolver=e,this.guiAuthResolver=i,this.resourceService=n,this.loading=!1,this.recentIds=[]}return _createClass(t,[{key:"ngOnInit",value:function(){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()}},{key:"getObjects",value:function(){var t=this;switch(this.primaryObject){case"Vo":this.authzResolver.getVosWhereUserIsInRoles([this.roleName]).subscribe(function(e){t.objects=e,t.recentIds=(0,u.vL)("vos"),t.loading=!1});break;case"Group":this.authzResolver.getGroupsWhereUserIsInRoles([this.roleName]).subscribe(function(e){t.objects=e,t.recentIds=(0,u.vL)("groups"),t.loading=!1});break;case"Resource":this.resourceService.getRichResourcesByIds(this.role[this.primaryObject]).subscribe(function(e){t.objects=e,t.recentIds=(0,u.vL)("resources"),t.loading=!1});break;case"Facility":this.authzResolver.getFacilitiesWhereUserIsInRoles([this.roleName]).subscribe(function(e){t.objects=e.map(function(t){return{facility:t}}),t.recentIds=(0,u.vL)("facilities"),t.loading=!1});break;default:this.objects=[],this.loading=!1}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(s.Ct),r.Y36(c.x4),r.Y36(s.xk))},t.\u0275cmp=r.Xpm({type:t,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","groups","recentIds","displayedColumns"],[3,"pageSizeOptions","resources","displayedColumns","recentIds","routingVo"],[3,"pageSizeOptions","facilities","recentIds","displayedColumns"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r._UZ(2,"mat-icon",2),r._uU(3),r.ALo(4,"translate"),r.TgZ(5,"span",3),r.ALo(6,"translate"),r.TgZ(7,"mat-icon",4),r._uU(8,"info_outline"),r.qZA(),r.qZA(),r.qZA(),r.YNc(9,L,1,0,"mat-spinner",5),r.YNc(10,G,5,4,"div",6),r.qZA()),2&t&&(r.xp6(2),r.Q6J("svgIcon",e.svgIcon),r.xp6(1),r.hij(" ",r.lcZ(4,5,e.title)," "),r.xp6(2),r.s9C("matTooltip",r.lcZ(6,7,e.roleTooltipInfo)),r.xp6(4),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading))},directives:[y.Hw,C.gM,v.O5,b.$g,O.Z,P.W,D.C,M.X],pipes:[d.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}"]}),t}(),Y=i(22196);function K(t,e){if(1&t){var i=r.EpF();r.TgZ(0,"div"),r.TgZ(1,"mat-checkbox",8),r.NdJ("change",function(t){var e=r.CHM(i).$implicit,n=r.oxw();return t?n.changeRoleView(e):null}),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.qZA()}if(2&t){var n=e.$implicit,o=r.oxw();r.xp6(1),r.Q6J("checked",o.isRoleShowed(n)),r.xp6(1),r.Oqu(r.lcZ(3,2,"USER_DETAIL.DASHBOARD.CARD_TITLE_"+n))}}function V(t,e){if(1&t){var i=r.EpF();r.TgZ(0,"button",15),r.NdJ("click",function(){return r.CHM(i),r.oxw(2).rightSettingOpened=!0}),r.TgZ(1,"mat-icon"),r._uU(2,"settings"),r.qZA(),r.qZA()}}function J(t,e){1&t&&(r.TgZ(0,"span"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO_NO_USER_PROFILE")))}function Q(t,e){1&t&&(r.TgZ(0,"span"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO")))}function W(t,e){if(1&t){var i=r.EpF();r.TgZ(0,"button",23),r.NdJ("click",function(){return r.CHM(i),r.oxw(3).goToUserProfile()}),r.TgZ(1,"mat-icon",24),r._uU(2,"exit_to_app"),r.qZA(),r._uU(3),r.ALo(4,"translate"),r.qZA()}if(2&t){var n=r.oxw(3);r.xp6(3),r.AsE("",r.lcZ(4,2,"USER_DETAIL.DASHBOARD.GO_TO_USER_PROFILE")," ",n.userProfileName," ")}}var X=function(){return["/myProfile"]};function $(t,e){if(1&t&&(r.TgZ(0,"div"),r.TgZ(1,"div",16),r.TgZ(2,"div",17),r._uU(3),r.ALo(4,"translate"),r.qZA(),r.TgZ(5,"div",18),r.YNc(6,J,3,3,"span",14),r.YNc(7,Q,3,3,"span",14),r.qZA(),r.TgZ(8,"div",19),r.TgZ(9,"button",20),r._UZ(10,"mat-icon",21),r._uU(11),r.ALo(12,"translate"),r.qZA(),r.YNc(13,W,5,4,"button",22),r.qZA(),r.qZA(),r.qZA()),2&t){var i=r.oxw(2);r.xp6(3),r.hij(" ",r.lcZ(4,6,"USER_DETAIL.DASHBOARD.NOT_MANAGER")," "),r.xp6(3),r.Q6J("ngIf",!i.userProfileUrl),r.xp6(1),r.Q6J("ngIf",i.userProfileUrl),r.xp6(2),r.Q6J("routerLink",r.DdM(10,X)),r.xp6(2),r.hij(" ",r.lcZ(12,8,"USER_DETAIL.DASHBOARD.GO_TO_MY_PROFILE")," "),r.xp6(2),r.Q6J("ngIf",i.userProfileUrl)}}function tt(t,e){1&t&&(r.TgZ(0,"span"),r.TgZ(1,"div",3),r._uU(2),r.ALo(3,"translate"),r.qZA(),r._UZ(4,"app-perun-web-apps-dashboard-recently-viewed-button-field"),r.qZA()),2&t&&(r.xp6(2),r.hij(" ",r.lcZ(3,1,"USER_DETAIL.DASHBOARD.RECENTLY_VIEWED")," "))}function et(t,e){1&t&&(r.TgZ(0,"div",27),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"USER_DETAIL.DASHBOARD.MANAGEABLE_ENTITIES")," "))}function it(t,e){if(1&t&&r._UZ(0,"app-perun-web-apps-dashboard-card",30),2&t){var i=r.oxw().$implicit,n=r.oxw(3);r.Q6J("roleName",i)("role",n.roles[i])}}function nt(t,e){if(1&t&&(r.TgZ(0,"div",28),r.YNc(1,it,1,2,"app-perun-web-apps-dashboard-card",29),r.qZA()),2&t){var i=e.$implicit,n=r.oxw(3);r.xp6(1),r.Q6J("ngIf",n.isRoleShowed(i))}}function rt(t,e){if(1&t&&(r.TgZ(0,"div"),r.YNc(1,tt,5,3,"span",14),r.YNc(2,et,3,3,"div",25),r.TgZ(3,"div"),r.YNc(4,nt,2,1,"div",26),r.qZA(),r.qZA()),2&t){var i=r.oxw(2);r.xp6(1),r.Q6J("ngIf",i.recentlyViewedShow),r.xp6(1),r.Q6J("ngIf",i.rolesToHide.toString()!==i.roleNames.toString()),r.xp6(2),r.Q6J("ngForOf",i.roleNames)}}function ot(t,e){if(1&t&&(r.TgZ(0,"div",9),r.TgZ(1,"h1",10),r._UZ(2,"mat-icon",11),r.TgZ(3,"span",12),r._uU(4),r.ALo(5,"translate"),r.ALo(6,"userFullName"),r.qZA(),r.YNc(7,V,3,0,"button",13),r.qZA(),r.YNc(8,$,14,11,"div",14),r.YNc(9,rt,5,3,"div",14),r.qZA()),2&t){var i=r.oxw();r.xp6(4),r.AsE("",r.lcZ(5,5,"USER_DETAIL.DASHBOARD.TITLE")," ",r.lcZ(6,7,i.user),""),r.xp6(3),r.Q6J("ngIf",!i.isOnlySelfRole),r.xp6(1),r.Q6J("ngIf",i.isOnlySelfRole),r.xp6(1),r.Q6J("ngIf",!i.isOnlySelfRole)}}var at=function(){var t=function(){function t(e,i,n,r,o,a,s,c,u,l){var h=this;_classCallCheck(this,t),this.userManager=e,this.storeService=i,this.sideMenuService=n,this.route=r,this.router=o,this.notificator=a,this.translateService=s,this.dialog=c,this.apiRequestConfiguration=u,this.otherApplicationService=l,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"],s.get("USER_DETAIL.DASHBOARD.MAIL_CHANGE_SUCCESS").subscribe(function(t){return h.mailSuccessMessage=t})}return _createClass(t,[{key:"ngOnInit",value:function(){this.sideMenuService.setHomeItems([]),this.validatePreferredMailChange(),this.user=this.storeService.getPerunPrincipal().user,this.roles=this.storeService.getPerunPrincipal().roles,this.getUserProfile();var t=Object.keys(this.roles);this.isOnlySelfRole=t.toString()===["SELF"].toString(),this.roleNames=this.allowedRoles.filter(function(e){return t.includes(e)}),this.getDashboardSettings()}},{key:"validatePreferredMailChange",value:function(){var t=this,e=this.route.snapshot.queryParamMap,i=e.get("token"),n=e.get("u");i&&n&&(this.apiRequestConfiguration.dontHandleErrorForNext(),this.userManager.validatePreferredEmailChangeWithToken(i,Number.parseInt(n,10)).subscribe(function(){t.notificator.showSuccess(t.mailSuccessMessage),t.router.navigate([],{replaceUrl:!0})},function(){var e=(0,u.kZ)();e.width="600px",t.dialog.open(l.qD,e).afterClosed().subscribe(function(){t.getDashboardSettings()})}))}},{key:"goToUserProfile",value:function(){window.open(this.userProfileUrl)}},{key:"recentlyViewedChanged",value:function(){localStorage.setItem("showRecentlyViewed",JSON.stringify(this.recentlyViewedShow))}},{key:"getDashboardSettings",value:function(){var t=JSON.parse(localStorage.getItem("showRecentlyViewed"));this.recentlyViewedShow=null===t||t;var e=JSON.parse(localStorage.getItem("rolesToHide"));this.rolesToHide=null===e?[]:e}},{key:"changeRoleView",value:function(t){if(this.isRoleShowed(t)){var e,i=[],n=_createForOfIteratorHelper(this.roleNames);try{for(n.s();!(e=n.n()).done;){var r=e.value;this.isRoleShowed(r)||i.push(r),r===t&&i.push(r)}}catch(o){n.e(o)}finally{n.f()}this.rolesToHide=i}else this.rolesToHide=this.rolesToHide.filter(function(e){return e!==t});localStorage.setItem("rolesToHide",JSON.stringify(this.rolesToHide))}},{key:"isRoleShowed",value:function(t){var e,i=_createForOfIteratorHelper(this.rolesToHide);try{for(i.s();!(e=i.n()).done;){if(e.value===t)return!1}}catch(n){i.e(n)}finally{i.f()}return!0}},{key:"getUserProfile",value:function(){this.userProfileUrl=this.otherApplicationService.getUrlForOtherApplication("profile"),this.userProfileName=this.storeService.get("profile_label_en")}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(s.Fv),r.Y36(c.d6),r.Y36(h.D),r.Y36(o.gz),r.Y36(o.F0),r.Y36(c.V6),r.Y36(d.sK),r.Y36(f.uw),r.Y36(c.F5),r.Y36(c.jq))},t.\u0275cmp=r.Xpm({type:t,selectors:[["app-perun-web-apps-user-dashboard"]],hostVars:2,hostBindings:function(t,e){2&t&&r.ekj("router-component",e.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"],["mat-stroked-button","","class","ml-auto text-bigger",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"],["mat-stroked-button","","class","text-bigger ml-2 mt-2",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(t,e){1&t&&(r.TgZ(0,"mat-sidenav-container",0),r.TgZ(1,"mat-sidenav",1),r.NdJ("openedChange",function(t){return e.rightSettingOpened=t}),r.TgZ(2,"div",2),r.TgZ(3,"div",3),r._uU(4),r.ALo(5,"translate"),r.qZA(),r.TgZ(6,"div"),r.TgZ(7,"mat-checkbox",4),r.NdJ("ngModelChange",function(t){return e.recentlyViewedShow=t})("change",function(t){return t?e.recentlyViewedChanged():null}),r._uU(8),r.ALo(9,"translate"),r.qZA(),r.qZA(),r.TgZ(10,"div",5),r._uU(11),r.ALo(12,"translate"),r.qZA(),r.YNc(13,K,4,4,"div",6),r.qZA(),r.qZA(),r.TgZ(14,"mat-sidenav-content"),r.YNc(15,ot,10,9,"div",7),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Q6J("opened",e.rightSettingOpened),r.xp6(3),r.Oqu(r.lcZ(5,7,"USER_DETAIL.DASHBOARD.DASHBOARD_SETTINGS")),r.xp6(3),r.Q6J("ngModel",e.recentlyViewedShow),r.xp6(1),r.Oqu(r.lcZ(9,9,"USER_DETAIL.DASHBOARD.SHOW_RECENTLY_VIEWED")),r.xp6(3),r.Oqu(r.lcZ(12,11,"USER_DETAIL.DASHBOARD.SHOW_ROLES")),r.xp6(2),r.Q6J("ngForOf",e.roleNames),r.xp6(2),r.Q6J("ngIf",void 0!==e.user))},directives:[p.TM,p.JX,g.oG,m.JJ,m.On,v.sg,p.Rh,v.O5,y.Hw,_.lW,o.rH,x,j],pipes:[d.X$,Y.d],styles:[".dashboard-container[_ngcontent-%COMP%]{-moz-columns:300px 2;columns:300px 2;grid-column-gap:1rem;-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 - 64px - 200px);margin-bottom:-60px!important;padding-bottom:50px;top:-10px!important;left:0;right:0}"]}),t}(),st=i(66297),ct=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"div",0),r._UZ(1,"perun-web-apps-back-button"),r.TgZ(2,"h1",1),r._uU(3),r.ALo(4,"translate"),r.qZA(),r.qZA()),2&t&&(r.xp6(3),r.Oqu(r.lcZ(4,1,"GENERAL.PAGE_NOT_FOUND.TITLE")))},directives:[st.W],pipes:[d.X$],styles:[""]}),t}(),ut=i(41939),lt=i(66283),ht=i(80340),dt=i(22727),ft=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[v.ez,_.ot,y.Ps,o.Bz,ut.ez,d.aw,lt.lN,m.UX,ht.c,dt.r]]}),t}(),pt=function(){var t=function(){function t(e){_classCallCheck(this,t),this.auth=e}return _createClass(t,[{key:"startAuth",value:function(){this.auth.startAuthentication()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(c.e8))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r.TgZ(2,"div",2),r.TgZ(3,"h4",3),r._uU(4),r.ALo(5,"translate"),r.qZA(),r.TgZ(6,"button",4),r.NdJ("click",function(){return e.startAuth()}),r._uU(7),r.ALo(8,"translate"),r.TgZ(9,"mat-icon"),r._uU(10," login "),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(4),r.hij(" ",r.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),r.xp6(3),r.hij(" ",r.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},directives:[_.lW,y.Hw],pipes:[d.X$],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),t}(),gt=i(67474);function mt(t,e){if(1&t&&(r.TgZ(0,"div",8),r._UZ(1,"div",9),r.qZA()),2&t){var i=r.oxw();r.xp6(1),r.Q6J("innerHTML",i.logo,r.oJD)}}function vt(t,e){if(1&t&&(r.TgZ(0,"div",10),r._UZ(1,"div",11),r._UZ(2,"mat-icon",12),r.qZA()),2&t){var i=r.oxw();r.xp6(1),r.Q6J("innerHTML",i.logo,r.oJD)}}function yt(t,e){if(1&t&&(r.TgZ(0,"div",8),r._UZ(1,"a",9),r.qZA()),2&t){var i=r.oxw();r.xp6(1),r.Q6J("innerHTML",i.logo,r.oJD)}}var _t=function(t){return{color:t}};function bt(t,e){if(1&t&&(r.TgZ(0,"p",13),r._uU(1),r.qZA()),2&t){var i=r.oxw();r.Q6J("ngStyle",r.VKq(2,_t,i.textColor)),r.xp6(1),r.hij(" ",i.headerTitle," ")}}var wt=function(t,e){return{background:t,color:e}},At=function(t,e){return{"min-height":t,"background-color":e}},kt=function(){var t=function(){function t(e,i,n,r){_classCallCheck(this,t),this.storeService=e,this.sanitizer=i,this.preferredLangService=n,this.translateService=r,this.contentBackgroundColor=this.storeService.get("theme","content_bg_color")}return _createClass(t,[{key:"ngOnInit",value:function(){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){var t=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(t)}}},{key:"getContentInnerMinHeight",value:function(){return"calc((100vh - 64px) + 0px)"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(c.d6),r.Y36(n.H7),r.Y36(c.BN),r.Y36(d.sK))},t.\u0275cmp=r.Xpm({type:t,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:11,vars:12,consts:[["id","login-nav",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["style"," display: flex; flex-direction: 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"],[2,"display","flex","flex-direction","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(t,e){1&t&&(r.TgZ(0,"div",0),r.YNc(1,mt,2,1,"div",1),r.YNc(2,vt,3,1,"div",2),r.YNc(3,yt,2,1,"div",1),r.YNc(4,bt,2,4,"p",3),r.qZA(),r.TgZ(5,"div",4),r.TgZ(6,"div",5),r.TgZ(7,"div",6),r._UZ(8,"router-outlet"),r.qZA(),r.TgZ(9,"div",7),r._UZ(10,"perun-web-apps-footer"),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.Q6J("ngStyle",r.WLB(6,wt,e.headerBackgroundColor,e.headerTextColor)),r.xp6(1),r.Q6J("ngIf","admin-gui"===e.application),r.xp6(1),r.Q6J("ngIf","publications"===e.application),r.xp6(1),r.Q6J("ngIf","user-profile"===e.application),r.xp6(1),r.Q6J("ngIf",!!e.headerTitle),r.xp6(2),r.Q6J("ngStyle",r.WLB(9,At,e.getContentInnerMinHeight(),e.contentBackgroundColor)))},directives:[v.PC,v.O5,o.lC,gt.$,y.Hw],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}"]}),t}();function Ct(t,e){1&t&&(r.TgZ(0,"app-alert",8),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}var Tt,Et=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"redirect",component:ut.t$},{path:"api-callback",component:a},{path:"login",component:pt},{path:"service-access",component:(Tt=function(){function t(e,i,n){_classCallCheck(this,t),this.authzService=e,this.dialog=i,this.translate=n,this.wrongUsernameOrPassword=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.usernameCtrl=new m.NI(null,[m.kI.required]),this.passwordCtrl=new m.NI(null,[m.kI.required])}},{key:"startAuth",value:function(){var t=this;sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe(function(t){sessionStorage.setItem("baPrincipal",JSON.stringify(t)),location.reload()},function(){t.wrongUsernameOrPassword=!0})}}]),t}(),Tt.\u0275fac=function(t){return new(t||Tt)(r.Y36(s.Ct),r.Y36(f.uw),r.Y36(d.sK))},Tt.\u0275cmp=r.Xpm({type:Tt,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(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r.TgZ(2,"div",2),r.TgZ(3,"h2"),r._uU(4),r.ALo(5,"translate"),r.qZA(),r.YNc(6,Ct,3,3,"app-alert",3),r.TgZ(7,"mat-form-field",4),r.TgZ(8,"mat-label"),r._uU(9),r.ALo(10,"translate"),r.qZA(),r._UZ(11,"input",5),r.TgZ(12,"mat-error"),r._uU(13),r.ALo(14,"translate"),r.qZA(),r.qZA(),r.TgZ(15,"mat-form-field",4),r.TgZ(16,"mat-label"),r._uU(17),r.ALo(18,"translate"),r.qZA(),r._UZ(19,"input",6),r.TgZ(20,"mat-error"),r._uU(21),r.ALo(22,"translate"),r.qZA(),r.qZA(),r.TgZ(23,"button",7),r.NdJ("click",function(){return e.startAuth()}),r._uU(24),r.ALo(25,"translate"),r.TgZ(26,"mat-icon"),r._uU(27," login "),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(4),r.Oqu(r.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),r.xp6(2),r.Q6J("ngIf",e.wrongUsernameOrPassword),r.xp6(3),r.Oqu(r.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),r.xp6(2),r.Q6J("formControl",e.usernameCtrl),r.xp6(2),r.hij(" ",r.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),r.xp6(4),r.Oqu(r.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),r.xp6(2),r.Q6J("formControl",e.passwordCtrl)("type","password"),r.xp6(2),r.hij(" ",r.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),r.xp6(2),r.Q6J("disabled",e.usernameCtrl.invalid||e.passwordCtrl.invalid),r.xp6(1),r.hij(" ",r.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},directives:[v.O5,lt.KE,lt.hX,ht.Nt,m.Fj,m.Q7,m.JJ,m.oH,lt.TO,_.lW,y.Hw,w.w],pipes:[d.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}"]}),Tt)},{path:"organizations",loadChildren:function(){return Promise.all([i.e(917),i.e(202),i.e(827),i.e(427)]).then(i.bind(i,67427)).then(function(t){return t.VosModule})}},{path:"admin",loadChildren:function(){return Promise.all([i.e(917),i.e(515),i.e(202),i.e(781)]).then(i.bind(i,21781)).then(function(t){return t.AdminModule})}},{path:"facilities",loadChildren:function(){return Promise.all([i.e(917),i.e(515),i.e(202),i.e(781),i.e(827),i.e(749)]).then(i.bind(i,89749)).then(function(t){return t.FacilitiesModule})}},{path:"myProfile",loadChildren:function(){return Promise.all([i.e(917),i.e(515)]).then(i.bind(i,65515)).then(function(t){return t.UsersModule})}},{path:"home",component:at},{path:"**",component:ct}],St=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[o.Bz.forRoot(Et,{preloadingStrategy:o.GZ,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})],o.Bz]}),t}(),It=i(61601),Rt=i(28780),xt=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/assets/i18n/",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".json";_classCallCheck(this,t),this.http=e,this.prefix=i,this.suffix=n}return _createClass(t,[{key:"getTranslation",value:function(t){return this.http.get("".concat(this.prefix).concat(t).concat(this.suffix))}}]),t}(),Ot=i(29063),Pt=i(43490),Dt=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[c.e8],imports:[[v.ez]]}),t}(),Mt=i(28940),Lt=i(48002),Nt=i(40659),zt=i(62284),Zt=i(7433),Bt=i(82044),Ft=i(11930),qt=i(39124),Ht=i(64467),Ut=i(81835),Gt=i(88227),jt=i(97397),Yt=i(71313),Kt=i(14527),Vt=i(65423),Jt=i(17249),Qt=i(73916),Wt=i(48666),Xt=function(){var t=function(){function t(){_classCallCheck(this,t),this.allowCachePages=[{type:"vo",components:[Mt.y.id,Lt.G.id,Nt.c.id,Gt.z.id,jt.z.id,Kt.w.id,Wt.T.id]},{type:"group",components:[Ft.y.id,Bt.u.id,Zt.q.id,zt.W.id,Vt.Z.id]},{type:"facility",components:[qt.o.id,Ht.f.id]},{type:"member",components:[Ut.j.id]},{type:"admin",components:[Yt.t.id]},{type:"entitySelect",components:[Jt.Y.id,Qt.P.id]}],this.cacheTimeMs=3e5,this.resets=[{lastValue:null,resetType:"vo",resetPath:":voId",param:"voId"},{lastValue:null,resetType:"group",resetPath:":voId/groups/:groupId",param:"groupId"},{lastValue:null,resetType:"facility",resetPath:":facilityId",param:"facilityId"},{lastValue:null,resetType:"member",resetPath:":voId/members/:memberId",param:"memberId"},{lastValue:null,resetType:"admin",resetPath:"admin/users"}],this.isUserNavigatingBack=!1,this.typeToComponentToHandlers=new Map;var e,i=_createForOfIteratorHelper(this.allowCachePages);try{for(i.s();!(e=i.n()).done;){var n=e.value;this.typeToComponentToHandlers.set(n.type,new Map)}}catch(r){i.e(r)}finally{i.f()}}return _createClass(t,[{key:"setLastNavigationType",value:function(t){this.isUserNavigatingBack="back"===t}},{key:"checkResets",value:function(t){var e,i=this.getPath(t),n=_createForOfIteratorHelper(this.resets);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r.resetPath===i){var o=t.params[r.param];null!==r.lastValue&&r.lastValue!==o&&this.typeToComponentToHandlers.get(r.resetType).clear(),r.lastValue=o}}}catch(a){n.e(a)}finally{n.f()}}},{key:"shouldReuseRoute",value:function(t,e){return this.checkResets(e),t.routeConfig===e.routeConfig}},{key:"retrieve",value:function(t){if(t.component){var e,i=this.getComponentName(t.component),n=_createForOfIteratorHelper(this.allowCachePages);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(-1!==r.components.indexOf(i)){var o=this.typeToComponentToHandlers.get(r.type).get(i);return void 0===o?null:o.routeHandle}}}catch(a){n.e(a)}finally{n.f()}}return null}},{key:"shouldAttach",value:function(t){if(!this.isUserNavigatingBack)return!1;if(t.component){var e,i=this.getComponentName(t.component),n=_createForOfIteratorHelper(this.allowCachePages);try{for(n.s();!(e=n.n()).done;){var r=e.value,o=this.typeToComponentToHandlers.get(r.type).get(i);if(void 0!==o&&this.getCurrentTimestamp()-o.saveTimeStamp0;)document.getElementsByTagName("mat-tooltip-component")[0].remove();var i=this.getComponentType(t);this.typeToComponentToHandlers.get(i).set(this.getComponentName(t.component),{routeHandle:e,saveTimeStamp:this.getCurrentTimestamp()})}}},{key:"getCurrentTimestamp",value:function(){return+Date.now()}},{key:"getComponentName",value:function(t){return t.id}},{key:"getComponentType",value:function(t){var e,i=this.getComponentName(t.component),n=_createForOfIteratorHelper(this.allowCachePages);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(-1!==r.components.indexOf(i))return r.type}}catch(o){n.e(o)}finally{n.f()}return null}},{key:"getPath",value:function(t){return null!==t.routeConfig&&null!==t.routeConfig.path?t.routeConfig.path:""}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t}(),$t=new r.OlP("perun-api-service"),te=function(){var t=function(){function t(e,i,n,r,o){_classCallCheck(this,t),this.http=e,this.storeService=i,this.authzSevice=n,this.titleService=r,this.utilsService=o}return _createClass(t,[{key:"initializeColors",value:function(t,e){var i=this;return new Promise(function(n){e.forEach(function(t){var e=i.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e)}),t.forEach(function(t){var e=i.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e),i.setEntityTheme(t.entity,e)}),n()})}},{key:"setEntityTheme",value:function(t,e){for(var i,n=0,r=(i=e,[ee(tinycolor(i).lighten(52),"50"),ee(tinycolor(i).lighten(37),"100"),ee(tinycolor(i).lighten(26),"200"),ee(tinycolor(i).lighten(12),"300"),ee(tinycolor(i).lighten(6),"400"),ee(tinycolor(i),"500"),ee(tinycolor(i).darken(6),"600"),ee(tinycolor(i).darken(12),"700"),ee(tinycolor(i).darken(18),"800"),ee(tinycolor(i).darken(24),"900"),ee(tinycolor(i).lighten(50).saturate(30),"A100"),ee(tinycolor(i).lighten(30).saturate(30),"A200"),ee(tinycolor(i).lighten(10).saturate(15),"A400"),ee(tinycolor(i).lighten(5).saturate(5),"A700")]);nt[o]-t[a]-1&&(t.reach[c]="end"),e&&(h.dispatchEvent(Oe("ps-scroll-"+c)),e<0?h.dispatchEvent(Oe("ps-scroll-"+u)):e>0&&h.dispatchEvent(Oe("ps-scroll-"+l)),n&&function(t,e){Ee(t,e),Se(t,e)}(t,c)),t.reach[c]&&(e||r)&&h.dispatchEvent(Oe("ps-"+c+"-reach-"+t.reach[c]))}(t,i,o,n,r)}function De(t){return parseInt(t,10)||0}xe.prototype.eventElement=function(t){var e=this.eventElements.filter(function(e){return e.element===t})[0];return e||(e=new Ie(t),this.eventElements.push(e)),e},xe.prototype.bind=function(t,e,i){this.eventElement(t).bind(e,i)},xe.prototype.unbind=function(t,e,i){var n=this.eventElement(t);n.unbind(e,i),n.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(n),1)},xe.prototype.unbindAll=function(){this.eventElements.forEach(function(t){return t.unbindAll()}),this.eventElements=[]},xe.prototype.once=function(t,e,i){var n=this.eventElement(t);n.bind(e,function t(r){n.unbind(e,t),i(r)})};var Me={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function Le(t){var e=t.element,i=Math.floor(e.scrollTop),n=e.getBoundingClientRect();t.containerWidth=Math.ceil(n.width),t.containerHeight=Math.ceil(n.height),t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(be(e,Ae("x")).forEach(function(t){return _e(t)}),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(be(e,Ae("y")).forEach(function(t){return _e(t)}),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),function(t,e){var i={width:e.railXWidth},n=Math.floor(t.scrollTop);i.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:t.scrollLeft,e.isScrollbarXUsingBottom?i.bottom=e.scrollbarXBottom-n:i.top=e.scrollbarXTop+n,ge(e.scrollbarXRail,i);var r={top:n,height:e.railYHeight};e.isScrollbarYUsingRight?r.right=e.isRtl?e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth-9:e.scrollbarYRight-t.scrollLeft:r.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+2*e.containerWidth-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:e.scrollbarYLeft+t.scrollLeft,ge(e.scrollbarYRail,r),ge(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),ge(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}(e,t),t.scrollbarXActive?e.classList.add(ke("x")):(e.classList.remove(ke("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?e.classList.add(ke("y")):(e.classList.remove(ke("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)}function Ne(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function ze(t,e){var i=e[0],n=e[1],r=e[2],o=e[3],a=e[4],s=e[5],c=e[6],u=e[7],l=e[8],h=t.element,d=null,f=null,p=null;function g(e){e.touches&&e.touches[0]&&(e[r]=e.touches[0].pageY),h[c]=d+p*(e[r]-f),Ee(t,u),Le(t),e.stopPropagation(),e.preventDefault()}function m(){Se(t,u),t[l].classList.remove("ps--clicking"),t.event.unbind(t.ownerDocument,"mousemove",g)}function v(e,a){d=h[c],a&&e.touches&&(e[r]=e.touches[0].pageY),f=e[r],p=(t[n]-t[i])/(t[o]-t[s]),a?t.event.bind(t.ownerDocument,"touchmove",g):(t.event.bind(t.ownerDocument,"mousemove",g),t.event.once(t.ownerDocument,"mouseup",m),e.preventDefault()),t[l].classList.add("ps--clicking"),e.stopPropagation()}t.event.bind(t[a],"mousedown",function(t){v(t)}),t.event.bind(t[a],"touchstart",function(t){v(t,!0)})}var Ze={"click-rail":function(t){t.event.bind(t.scrollbarY,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarYRail,"mousedown",function(e){var i=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top;t.element.scrollTop+=(i>t.scrollbarYTop?1:-1)*t.containerHeight,Le(t),e.stopPropagation()}),t.event.bind(t.scrollbarX,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarXRail,"mousedown",function(e){var i=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left;t.element.scrollLeft+=(i>t.scrollbarXLeft?1:-1)*t.containerWidth,Le(t),e.stopPropagation()})},"drag-thumb":function(t){ze(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),ze(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(t){var e=t.element;t.event.bind(t.ownerDocument,"keydown",function(i){if(!(i.isDefaultPrevented&&i.isDefaultPrevented()||i.defaultPrevented)&&(ye(e,":hover")||ye(t.scrollbarX,":focus")||ye(t.scrollbarY,":focus"))){var n,r=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(r){if("IFRAME"===r.tagName)r=r.contentDocument.activeElement;else for(;r.shadowRoot;)r=r.shadowRoot.activeElement;if(ye(n=r,"input,[contenteditable]")||ye(n,"select,[contenteditable]")||ye(n,"textarea,[contenteditable]")||ye(n,"button,[contenteditable]"))return}var o=0,a=0;switch(i.which){case 37:o=i.metaKey?-t.contentWidth:i.altKey?-t.containerWidth:-30;break;case 38:a=i.metaKey?t.contentHeight:i.altKey?t.containerHeight:30;break;case 39:o=i.metaKey?t.contentWidth:i.altKey?t.containerWidth:30;break;case 40:a=i.metaKey?-t.contentHeight:i.altKey?-t.containerHeight:-30;break;case 32:a=i.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:a=t.containerHeight;break;case 34:a=-t.containerHeight;break;case 36:a=t.contentHeight;break;case 35:a=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==o||t.settings.suppressScrollY&&0!==a||(e.scrollTop-=a,e.scrollLeft+=o,Le(t),function(i,n){var r=Math.floor(e.scrollTop);if(0===i){if(!t.scrollbarYActive)return!1;if(0===r&&n>0||r>=t.contentHeight-t.containerHeight&&n<0)return!t.settings.wheelPropagation}var o=e.scrollLeft;if(0===n){if(!t.scrollbarXActive)return!1;if(0===o&&i<0||o>=t.contentWidth-t.containerWidth&&i>0)return!t.settings.wheelPropagation}return!0}(o,a)&&i.preventDefault())}})},wheel:function(t){var e=t.element;function i(i){var n=function(t){var e=t.deltaX,i=-1*t.deltaY;return void 0!==e&&void 0!==i||(e=-1*t.wheelDeltaX/6,i=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(e*=10,i*=10),e!=e&&i!=i&&(e=0,i=t.wheelDelta),t.shiftKey?[-i,-e]:[e,i]}(i),r=n[0],o=n[1];if(!function(t,i,n){if(!Me.isWebKit&&e.querySelector("select:focus"))return!0;if(!e.contains(t))return!1;for(var r=t;r&&r!==e;){if(r.classList.contains("ps__child--consume"))return!0;var o=pe(r);if(n&&o.overflowY.match(/(scroll|auto)/)){var a=r.scrollHeight-r.clientHeight;if(a>0&&(r.scrollTop>0&&n<0||r.scrollTop0))return!0}if(i&&o.overflowX.match(/(scroll|auto)/)){var s=r.scrollWidth-r.clientWidth;if(s>0&&(r.scrollLeft>0&&i<0||r.scrollLeft0))return!0}r=r.parentNode}return!1}(i.target,r,o)){var a=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(o?e.scrollTop-=o*t.settings.wheelSpeed:e.scrollTop+=r*t.settings.wheelSpeed,a=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(r?e.scrollLeft+=r*t.settings.wheelSpeed:e.scrollLeft-=o*t.settings.wheelSpeed,a=!0):(e.scrollTop-=o*t.settings.wheelSpeed,e.scrollLeft+=r*t.settings.wheelSpeed),Le(t),(a=a||function(i,n){var r=Math.floor(e.scrollTop),o=0===e.scrollTop,a=r+e.offsetHeight===e.scrollHeight,s=0===e.scrollLeft,c=e.scrollLeft+e.offsetWidth===e.scrollWidth;return!(Math.abs(n)>Math.abs(i)?o||a:s||c)||!t.settings.wheelPropagation}(r,o))&&!i.ctrlKey&&(i.stopPropagation(),i.preventDefault())}}void 0!==window.onwheel?t.event.bind(e,"wheel",i):void 0!==window.onmousewheel&&t.event.bind(e,"mousewheel",i)},touch:function(t){if(Me.supportsTouch||Me.supportsIePointer){var e=t.element,i={},n=0,r={},o=null;Me.supportsTouch?(t.event.bind(e,"touchstart",u),t.event.bind(e,"touchmove",l),t.event.bind(e,"touchend",h)):Me.supportsIePointer&&(window.PointerEvent?(t.event.bind(e,"pointerdown",u),t.event.bind(e,"pointermove",l),t.event.bind(e,"pointerup",h)):window.MSPointerEvent&&(t.event.bind(e,"MSPointerDown",u),t.event.bind(e,"MSPointerMove",l),t.event.bind(e,"MSPointerUp",h)))}function a(i,n){e.scrollTop-=n,e.scrollLeft-=i,Le(t)}function s(t){return t.targetTouches?t.targetTouches[0]:t}function c(t){return!(t.pointerType&&"pen"===t.pointerType&&0===t.buttons||(!t.targetTouches||1!==t.targetTouches.length)&&(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function u(t){if(c(t)){var e=s(t);i.pageX=e.pageX,i.pageY=e.pageY,n=(new Date).getTime(),null!==o&&clearInterval(o)}}function l(o){if(c(o)){var u=s(o),l={pageX:u.pageX,pageY:u.pageY},h=l.pageX-i.pageX,d=l.pageY-i.pageY;if(function(t,i,n){if(!e.contains(t))return!1;for(var r=t;r&&r!==e;){if(r.classList.contains("ps__child--consume"))return!0;var o=pe(r);if(n&&o.overflowY.match(/(scroll|auto)/)){var a=r.scrollHeight-r.clientHeight;if(a>0&&(r.scrollTop>0&&n<0||r.scrollTop0))return!0}if(i&&o.overflowX.match(/(scroll|auto)/)){var s=r.scrollWidth-r.clientWidth;if(s>0&&(r.scrollLeft>0&&i<0||r.scrollLeft0))return!0}r=r.parentNode}return!1}(o.target,h,d))return;a(h,d),i=l;var f=(new Date).getTime(),p=f-n;p>0&&(r.x=h/p,r.y=d/p,n=f),function(i,n){var r=Math.floor(e.scrollTop),o=e.scrollLeft,a=Math.abs(i),s=Math.abs(n);if(s>a){if(n<0&&r===t.contentHeight-t.containerHeight||n>0&&0===r)return 0===window.scrollY&&n>0&&Me.isChrome}else if(a>s&&(i<0&&o===t.contentWidth-t.containerWidth||i>0&&0===o))return!0;return!0}(h,d)&&o.preventDefault()}}function h(){t.settings.swipeEasing&&(clearInterval(o),o=setInterval(function(){t.isInitialized?clearInterval(o):r.x||r.y?Math.abs(r.x)<.01&&Math.abs(r.y)<.01?clearInterval(o):(a(30*r.x,30*r.y),r.x*=.8,r.y*=.8):clearInterval(o)},10))}}},Be=function(t,e){var i=this;if(void 0===e&&(e={}),"string"==typeof t&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var n in this.element=t,t.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},e)this.settings[n]=e[n];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var r,o,a=function(){return t.classList.add("ps--focus")},s=function(){return t.classList.remove("ps--focus")};this.isRtl="rtl"===pe(t).direction,!0===this.isRtl&&t.classList.add("ps__rtl"),this.isNegativeScroll=(o=t.scrollLeft,t.scrollLeft=-1,r=t.scrollLeft<0,t.scrollLeft=o,r),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new xe,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=me(Ae("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=me(we("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",a),this.event.bind(this.scrollbarX,"blur",s),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var c=pe(this.scrollbarXRail);this.scrollbarXBottom=parseInt(c.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=De(c.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=De(c.borderLeftWidth)+De(c.borderRightWidth),ge(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=De(c.marginLeft)+De(c.marginRight),ge(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=me(Ae("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=me(we("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",a),this.event.bind(this.scrollbarY,"blur",s),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var u=pe(this.scrollbarYRail);this.scrollbarYRight=parseInt(u.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=De(u.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(t){var e=pe(t);return De(e.width)+De(e.paddingLeft)+De(e.paddingRight)+De(e.borderLeftWidth)+De(e.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=De(u.borderTopWidth)+De(u.borderBottomWidth),ge(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=De(u.marginTop)+De(u.marginBottom),ge(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(t){return Ze[t](i)}),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",function(t){return i.onScroll(t)}),Le(this)};Be.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,ge(this.scrollbarXRail,{display:"block"}),ge(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=De(pe(this.scrollbarXRail).marginLeft)+De(pe(this.scrollbarXRail).marginRight),this.railYMarginHeight=De(pe(this.scrollbarYRail).marginTop)+De(pe(this.scrollbarYRail).marginBottom),ge(this.scrollbarXRail,{display:"none"}),ge(this.scrollbarYRail,{display:"none"}),Le(this),Pe(this,"top",0,!1,!0),Pe(this,"left",0,!1,!0),ge(this.scrollbarXRail,{display:""}),ge(this.scrollbarYRail,{display:""}))},Be.prototype.onScroll=function(t){this.isAlive&&(Le(this),Pe(this,"top",this.element.scrollTop-this.lastScrollTop),Pe(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},Be.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),_e(this.scrollbarX),_e(this.scrollbarY),_e(this.scrollbarXRail),_e(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},Be.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(t){return!t.match(/^ps([-_].+|)$/)}).join(" ")};var Fe=Be,qe=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var i=-1;return t.some(function(t,n){return t[0]===e&&(i=n,!0)}),i}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var i=t(this.__entries__,e),n=this.__entries__[i];return n&&n[1]},e.prototype.set=function(e,i){var n=t(this.__entries__,e);~n?this.__entries__[n][1]=i:this.__entries__.push([e,i])},e.prototype.delete=function(e){var i=this.__entries__,n=t(i,e);~n&&i.splice(n,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var i=0,n=this.__entries__;i0},t.prototype.connect_=function(){He&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ye?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){He&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,i=void 0===e?"":e;je.some(function(t){return!!~i.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),Ve=function(t,e){for(var i=0,n=Object.keys(e);i0},t}(),ri="undefined"!=typeof WeakMap?new WeakMap:new qe,oi=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=Ke.getInstance(),n=new ni(e,i,this);ri.set(this,n)};["observe","unobserve","disconnect"].forEach(function(t){oi.prototype[t]=function(){var e;return(e=ri.get(this))[t].apply(e,arguments)}});var ai=void 0!==Ue.ResizeObserver?Ue.ResizeObserver:oi;function si(t,e){if(1&t&&(r.TgZ(0,"div",3),r._UZ(1,"div",4),r._UZ(2,"div",5),r._UZ(3,"div",6),r._UZ(4,"div",7),r.qZA()),2&t){var i=r.oxw();r.ekj("ps-at-top",i.states.top)("ps-at-left",i.states.left)("ps-at-right",i.states.right)("ps-at-bottom",i.states.bottom),r.xp6(1),r.ekj("ps-indicator-show",i.indicatorY&&i.interaction),r.xp6(1),r.ekj("ps-indicator-show",i.indicatorX&&i.interaction),r.xp6(1),r.ekj("ps-indicator-show",i.indicatorX&&i.interaction),r.xp6(1),r.ekj("ps-indicator-show",i.indicatorY&&i.interaction)}}var ci=["*"],ui=new r.OlP("PERFECT_SCROLLBAR_CONFIG"),li=function t(e,i,n,r){_classCallCheck(this,t),this.x=e,this.y=i,this.w=n,this.h=r},hi=function t(e,i){_classCallCheck(this,t),this.x=e,this.y=i},di=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"],fi=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.assign(e)}return _createClass(t,[{key:"assign",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var e in t)this[e]=t[e]}}]),t}(),pi=function(){var t=function(){function t(e,i,n,o,a){_classCallCheck(this,t),this.zone=e,this.differs=i,this.elementRef=n,this.platformId=o,this.defaults=a,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new se.xQ,this.disabled=!1,this.psScrollY=new r.vpe,this.psScrollX=new r.vpe,this.psScrollUp=new r.vpe,this.psScrollDown=new r.vpe,this.psScrollLeft=new r.vpe,this.psScrollRight=new r.vpe,this.psYReachEnd=new r.vpe,this.psYReachStart=new r.vpe,this.psXReachEnd=new r.vpe,this.psXReachStart=new r.vpe}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;if(!this.disabled&&(0,v.NF)(this.platformId)){var e=new fi(this.defaults);e.assign(this.config),this.zone.runOutsideAngular(function(){t.instance=new Fe(t.elementRef.nativeElement,e)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(function(){t.ro=new ai(function(){t.update()}),t.elementRef.nativeElement.children[0]&&t.ro.observe(t.elementRef.nativeElement.children[0]),t.ro.observe(t.elementRef.nativeElement)}),this.zone.runOutsideAngular(function(){di.forEach(function(e){var i=e.replace(/([A-Z])/g,function(t){return"-".concat(t.toLowerCase())});(0,ce.R)(t.elementRef.nativeElement,i).pipe((0,le.e)(20),(0,he.R)(t.ngDestroy)).subscribe(function(i){t[e].emit(i)})})})}}},{key:"ngOnDestroy",value:function(){var t=this;(0,v.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&"undefined"!=typeof window&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(function(){t.instance&&t.instance.destroy()}),this.instance=null)}},{key:"ngDoCheck",value:function(){!this.disabled&&this.configDiff&&(0,v.NF)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}},{key:"ngOnChanges",value:function(t){t.disabled&&!t.disabled.isFirstChange()&&(0,v.NF)(this.platformId)&&t.disabled.currentValue!==t.disabled.previousValue&&(!0===t.disabled.currentValue?this.ngOnDestroy():!1===t.disabled.currentValue&&this.ngOnInit())}},{key:"ps",value:function(){return this.instance}},{key:"update",value:function(){var t=this;"undefined"!=typeof window&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(function(){if(!t.disabled&&t.configDiff)try{t.zone.runOutsideAngular(function(){t.instance&&t.instance.update()})}catch(e){}},0))}},{key:"geometry",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scroll";return new li(this.elementRef.nativeElement[t+"Left"],this.elementRef.nativeElement[t+"Top"],this.elementRef.nativeElement[t+"Width"],this.elementRef.nativeElement[t+"Height"])}},{key:"position",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return!t&&this.instance?new hi(this.instance.reach.x||0,this.instance.reach.y||0):new hi(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}},{key:"scrollable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"any",e=this.elementRef.nativeElement;return"any"===t?e.classList.contains("ps--active-x")||e.classList.contains("ps--active-y"):"both"===t?e.classList.contains("ps--active-x")&&e.classList.contains("ps--active-y"):e.classList.contains("ps--active-"+t)}},{key:"scrollTo",value:function(t,e,i){this.disabled||(null==e&&null==i?this.animateScrolling("scrollTop",t,i):(null!=t&&this.animateScrolling("scrollLeft",t,i),null!=e&&this.animateScrolling("scrollTop",e,i)))}},{key:"scrollToX",value:function(t,e){this.animateScrolling("scrollLeft",t,e)}},{key:"scrollToY",value:function(t,e){this.animateScrolling("scrollTop",t,e)}},{key:"scrollToTop",value:function(t,e){this.animateScrolling("scrollTop",t||0,e)}},{key:"scrollToLeft",value:function(t,e){this.animateScrolling("scrollLeft",t||0,e)}},{key:"scrollToRight",value:function(t,e){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(t||0),e)}},{key:"scrollToBottom",value:function(t,e){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(t||0),e)}},{key:"scrollToElement",value:function(t,e,i){var n=this.elementRef.nativeElement.querySelector(t);if(n){var r=n.getBoundingClientRect(),o=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",r.left-o.left+this.elementRef.nativeElement.scrollLeft+(e||0),i),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",r.top-o.top+this.elementRef.nativeElement.scrollTop+(e||0),i)}}},{key:"animateScrolling",value:function(t,e,i){var n=this;if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),i&&"undefined"!=typeof window){if(e!==this.elementRef.nativeElement[t]){var r=0,o=0,a=performance.now(),s=this.elementRef.nativeElement[t],c=(s-e)/2;window.requestAnimationFrame(function u(l){o+=Math.PI/(i/(l-a)),r=Math.round(e+c+c*Math.cos(o)),n.elementRef.nativeElement[t]===s&&(o>=Math.PI?n.animateScrolling(t,e,0):(n.elementRef.nativeElement[t]=r,s=n.elementRef.nativeElement[t],a=l,n.animation=window.requestAnimationFrame(u)))})}}else this.elementRef.nativeElement[t]=e}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.R0b),r.Y36(r.aQg),r.Y36(r.SBq),r.Y36(r.Lbi),r.Y36(ui,8))},t.\u0275dir=r.lG2({type:t,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:["perfectScrollbar","config"]},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],features:[r.TTD]}),t=(0,ae.gn)([(0,ae.fM)(3,(0,r.tBr)(r.Lbi)),(0,ae.fM)(4,(0,r.FiY)()),(0,ae.fM)(4,(0,r.tBr)(ui))],t)}(),gi=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.zone=e,this.cdRef=i,this.platformId=n,this.states={},this.indicatorX=!1,this.indicatorY=!1,this.interaction=!1,this.scrollPositionX=0,this.scrollPositionY=0,this.scrollDirectionX=0,this.scrollDirectionY=0,this.usePropagationX=!1,this.usePropagationY=!1,this.allowPropagationX=!1,this.allowPropagationY=!1,this.stateTimeout=null,this.ngDestroy=new se.xQ,this.stateUpdate=new se.xQ,this.disabled=!1,this.usePSClass=!0,this.autoPropagation=!1,this.scrollIndicators=!1,this.psScrollY=new r.vpe,this.psScrollX=new r.vpe,this.psScrollUp=new r.vpe,this.psScrollDown=new r.vpe,this.psScrollLeft=new r.vpe,this.psScrollRight=new r.vpe,this.psYReachEnd=new r.vpe,this.psYReachStart=new r.vpe,this.psXReachEnd=new r.vpe,this.psXReachStart=new r.vpe}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;(0,v.NF)(this.platformId)&&(this.stateUpdate.pipe((0,he.R)(this.ngDestroy),(0,de.x)(function(e,i){return e===i&&!t.stateTimeout})).subscribe(function(e){t.stateTimeout&&"undefined"!=typeof window&&(window.clearTimeout(t.stateTimeout),t.stateTimeout=null),"x"===e||"y"===e?(t.interaction=!1,"x"===e?(t.indicatorX=!1,t.states.left=!1,t.states.right=!1,t.autoPropagation&&t.usePropagationX&&(t.allowPropagationX=!1)):"y"===e&&(t.indicatorY=!1,t.states.top=!1,t.states.bottom=!1,t.autoPropagation&&t.usePropagationY&&(t.allowPropagationY=!1))):("left"===e||"right"===e?(t.states.left=!1,t.states.right=!1,t.states[e]=!0,t.autoPropagation&&t.usePropagationX&&(t.indicatorX=!0)):"top"!==e&&"bottom"!==e||(t.states.top=!1,t.states.bottom=!1,t.states[e]=!0,t.autoPropagation&&t.usePropagationY&&(t.indicatorY=!0)),t.autoPropagation&&"undefined"!=typeof window&&(t.stateTimeout=window.setTimeout(function(){t.indicatorX=!1,t.indicatorY=!1,t.stateTimeout=null,t.interaction&&(t.states.left||t.states.right)&&(t.allowPropagationX=!0),t.interaction&&(t.states.top||t.states.bottom)&&(t.allowPropagationY=!0),t.cdRef.markForCheck()},500))),t.cdRef.markForCheck(),t.cdRef.detectChanges()}),this.zone.runOutsideAngular(function(){if(t.directiveRef){var e=t.directiveRef.elementRef.nativeElement;(0,ce.R)(e,"wheel").pipe((0,he.R)(t.ngDestroy)).subscribe(function(e){!t.disabled&&t.autoPropagation&&t.checkPropagation(e,e.deltaX,e.deltaY)}),(0,ce.R)(e,"touchmove").pipe((0,he.R)(t.ngDestroy)).subscribe(function(e){if(!t.disabled&&t.autoPropagation){var i=e.touches[0].clientX,n=e.touches[0].clientY;t.checkPropagation(e,i-t.scrollPositionX,n-t.scrollPositionY),t.scrollPositionX=i,t.scrollPositionY=n}}),(0,ue.T)((0,ce.R)(e,"ps-scroll-x").pipe((0,fe.h)("x")),(0,ce.R)(e,"ps-scroll-y").pipe((0,fe.h)("y")),(0,ce.R)(e,"ps-x-reach-end").pipe((0,fe.h)("right")),(0,ce.R)(e,"ps-y-reach-end").pipe((0,fe.h)("bottom")),(0,ce.R)(e,"ps-x-reach-start").pipe((0,fe.h)("left")),(0,ce.R)(e,"ps-y-reach-start").pipe((0,fe.h)("top"))).pipe((0,he.R)(t.ngDestroy)).subscribe(function(e){t.disabled||!t.autoPropagation&&!t.scrollIndicators||t.stateUpdate.next(e)})}}),window.setTimeout(function(){di.forEach(function(e){t.directiveRef&&(t.directiveRef[e]=t[e])})},0))}},{key:"ngOnDestroy",value:function(){(0,v.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.unsubscribe(),this.stateTimeout&&"undefined"!=typeof window&&window.clearTimeout(this.stateTimeout))}},{key:"ngDoCheck",value:function(){if((0,v.NF)(this.platformId)&&!this.disabled&&this.autoPropagation&&this.directiveRef){var t=this.directiveRef.elementRef.nativeElement;this.usePropagationX=t.classList.contains("ps--active-x"),this.usePropagationY=t.classList.contains("ps--active-y")}}},{key:"checkPropagation",value:function(t,e,i){this.interaction=!0;var n=e<0?-1:1,r=i<0?-1:1;(this.usePropagationX&&this.usePropagationY||this.usePropagationX&&(!this.allowPropagationX||this.scrollDirectionX!==n)||this.usePropagationY&&(!this.allowPropagationY||this.scrollDirectionY!==r))&&(t.preventDefault(),t.stopPropagation()),e&&(this.scrollDirectionX=n),i&&(this.scrollDirectionY=r),this.stateUpdate.next("interaction"),this.cdRef.detectChanges()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.R0b),r.Y36(r.sBO),r.Y36(r.Lbi))},t.\u0275cmp=r.Xpm({type:t,selectors:[["perfect-scrollbar"]],viewQuery:function(t,e){var i;(1&t&&r.Gf(pi,7),2&t)&&(r.iGM(i=r.CRH())&&(e.directiveRef=i.first))},hostVars:4,hostBindings:function(t,e){2&t&&r.ekj("ps-show-limits",e.autoPropagation)("ps-show-active",e.scrollIndicators)},inputs:{disabled:"disabled",usePSClass:"usePSClass",autoPropagation:"autoPropagation",scrollIndicators:"scrollIndicators",config:"config"},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],ngContentSelectors:ci,decls:4,vars:5,consts:[[2,"position","static",3,"perfectScrollbar","disabled"],[1,"ps-content"],["class","ps-overlay",3,"ps-at-top","ps-at-left","ps-at-right","ps-at-bottom",4,"ngIf"],[1,"ps-overlay"],[1,"ps-indicator-top"],[1,"ps-indicator-left"],[1,"ps-indicator-right"],[1,"ps-indicator-bottom"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"div",0),r.TgZ(1,"div",1),r.Hsn(2),r.qZA(),r.YNc(3,si,5,16,"div",2),r.qZA()),2&t&&(r.ekj("ps",e.usePSClass),r.Q6J("perfectScrollbar",e.config)("disabled",e.disabled),r.xp6(3),r.Q6J("ngIf",e.scrollIndicators))},directives:[pi,v.O5],styles:["perfect-scrollbar{position:relative;display:block;overflow:hidden;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar[hidden]{display:none}perfect-scrollbar[fxflex]{display:-webkit-box;display:flex;flex-direction:column;height:auto;min-width:0;min-height:0;-webkit-box-direction:column;-webkit-box-orient:column}perfect-scrollbar[fxflex]>.ps{flex:1 1 auto;width:auto;height:auto;min-width:0;min-height:0;-webkit-box-flex:1}perfect-scrollbar[fxlayout]>.ps,perfect-scrollbar[fxlayout]>.ps>.ps-content{display:-webkit-box;display:flex;flex:1 1 auto;flex-direction:inherit;align-items:inherit;align-content:inherit;justify-content:inherit;width:100%;height:100%;-webkit-box-align:inherit;-webkit-box-direction:inherit;-webkit-box-flex:1;-webkit-box-orient:inherit;-webkit-box-pack:inherit},perfect-scrollbar[fxlayout=row]>.ps,perfect-scrollbar[fxlayout=row]>.ps>.ps-content{flex-direction:row!important;-webkit-box-direction:row!important;-webkit-box-orient:row!important}perfect-scrollbar[fxlayout=column]>.ps,perfect-scrollbar[fxlayout=column]>.ps>.ps-content{flex-direction:column!important;-webkit-box-direction:column!important;-webkit-box-orient:column!important}perfect-scrollbar>.ps{position:static;display:block;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar>.ps textarea{-ms-overflow-style:scrollbar}perfect-scrollbar>.ps>.ps-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:block;overflow:hidden;pointer-events:none}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{position:absolute;opacity:0;-webkit-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{left:0;min-width:100%;min-height:24px}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{top:0;min-width:24px;min-height:100%}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left{left:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{right:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{bottom:0}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y{top:0!important;right:0!important;left:auto!important;width:10px;cursor:default;-webkit-transition:width .2s linear,opacity .2s linear,background-color .2s linear;transition:width .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y.ps--clicking,perfect-scrollbar>.ps.ps--active-y>.ps__rail-y:hover{width:15px}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x{top:auto!important;bottom:0!important;left:0!important;height:10px;cursor:default;-webkit-transition:height .2s linear,opacity .2s linear,background-color .2s linear;transition:height .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x.ps--clicking,perfect-scrollbar>.ps.ps--active-x>.ps__rail-x:hover{height:15px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-y{margin:0 0 10px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-x{margin:0 10px 0 0}perfect-scrollbar>.ps.ps--scrolling-x>.ps__rail-x,perfect-scrollbar>.ps.ps--scrolling-y>.ps__rail-y{opacity:.9;background-color:#eee}perfect-scrollbar.ps-show-always>.ps.ps--active-x>.ps__rail-x,perfect-scrollbar.ps-show-always>.ps.ps--active-y>.ps__rail-y{opacity:.6}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-top) .ps-indicator-top{opacity:1;background:-webkit-gradient(linear,left top,left bottom,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to bottom,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-bottom) .ps-indicator-bottom{opacity:1;background:-webkit-gradient(linear,left bottom,left top,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to top,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-left) .ps-indicator-left{opacity:1;background:-webkit-gradient(linear,left top,right top,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to right,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-right) .ps-indicator-right{opacity:1;background:-webkit-gradient(linear,right top,left top,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to left,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top{background:-webkit-gradient(linear,left top,left bottom,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to bottom,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom{background:-webkit-gradient(linear,left bottom,left top,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to top,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left{background:-webkit-gradient(linear,left top,right top,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to right,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right{background:-webkit-gradient(linear,right top,left top,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to left,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top.ps-indicator-show{opacity:1}",".ps{overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.ps__rail-x{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;height:15px;bottom:0;position:absolute}.ps__rail-y{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;width:15px;right:0;position:absolute}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{display:block;background-color:transparent}.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y,.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y{opacity:.6}.ps .ps__rail-x.ps--clicking,.ps .ps__rail-x:focus,.ps .ps__rail-x:hover,.ps .ps__rail-y.ps--clicking,.ps .ps__rail-y:focus,.ps .ps__rail-y:hover{background-color:#eee;opacity:.9}.ps__thumb-x{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px;position:absolute}.ps__thumb-y{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px;position:absolute}.ps__rail-x.ps--clicking .ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x:hover>.ps__thumb-x{background-color:#999;height:11px}.ps__rail-y.ps--clicking .ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y:hover>.ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style:none){.ps{overflow:auto!important}}@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){.ps{overflow:auto!important}}"],encapsulation:2}),t=(0,ae.gn)([(0,ae.fM)(2,(0,r.tBr)(r.Lbi))],t)}(),mi=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[v.ez],v.ez]}),t}(),vi=i(52623),yi=i(17),_i=i(11418);function bi(t,e){if(1&t){var i=r.EpF();r.TgZ(0,"div"),r.TgZ(1,"perun-web-apps-notification",2),r.NdJ("closeNotification",function(){var t=r.CHM(i).index;return r.oxw().removeNotification(t)}),r.qZA(),r.qZA()}if(2&t){var n=e.$implicit;r.Q6J("@flyInOut",void 0),r.xp6(1),r.Q6J("data",n)("newNotification",!0)}}var wi=function(t){return{top:t}},Ai=function(){var t=function(){function t(e,i){var n=this;_classCallCheck(this,t),this.notificator=e,this.notificationStorageService=i,this.mobileView=!1,this.minWidth=992,this.displayWarning=!1,this.notifications=[],this.notificator.addNotification.subscribe(function(t){n.processNotification(t)}),this.getScreenSize()}return _createClass(t,[{key:"getScreenSize",value:function(){this.mobileView=window.innerWidth<=this.minWidth}},{key:"processNotification",value:function(t){this.notifications.push(t),this.notificationStorageService.storeNotification(t)}},{key:"getNotificatorTop",value:function(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}},{key:"removeNotification",value:function(t){this.notifications.splice(t,1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(c.V6),r.Y36(c.SZ))},t.\u0275cmp=r.Xpm({type:t,selectors:[["perun-web-apps-notificator"]],hostBindings:function(t,e){1&t&&r.NdJ("resize",function(t){return e.getScreenSize(t)},!1,r.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.YNc(1,bi,2,3,"div",1),r.qZA()),2&t&&(r.Q6J("ngStyle",r.VKq(2,wi,e.getNotificatorTop())),r.xp6(1),r.Q6J("ngForOf",e.notifications))},directives:[v.PC,v.sg,_i.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;bottom:0}}"],data:{animation:[yi.Pd]}}),t}(),ki=i(4253);function Ci(t,e){if(1&t&&(r.TgZ(0,"div",9),r._UZ(1,"perun-web-apps-notification",10),r.qZA()),2&t){var i=e.$implicit;r.xp6(1),r.Q6J("data",i)("inDialog",!0)}}function Ti(t,e){if(1&t&&(r.TgZ(0,"div",6),r.TgZ(1,"cdk-virtual-scroll-viewport",7),r.YNc(2,Ci,2,2,"div",8),r.qZA(),r.qZA()),2&t){var i=r.oxw();r.xp6(2),r.Q6J("cdkVirtualForOf",i.notifications)}}function Ei(t,e){1&t&&(r.TgZ(0,"app-alert",11),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT")))}var Si=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.dialogRef=e,this.notificationStorageService=i}return _createClass(t,[{key:"ngOnInit",value:function(){this.notifications=this.notificationStorageService.getNotifications()}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onClear",value:function(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(f.so),r.Y36(c.SZ))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"h1",0),r._uU(1),r.ALo(2,"translate"),r.qZA(),r.YNc(3,Ti,3,1,"div",1),r.YNc(4,Ei,3,3,"app-alert",2),r.TgZ(5,"div",3),r.TgZ(6,"button",4),r.NdJ("click",function(){return e.onClear()}),r._uU(7),r.ALo(8,"translate"),r.qZA(),r.TgZ(9,"button",5),r.NdJ("click",function(){return e.onCancel()}),r._uU(10),r.ALo(11,"translate"),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,5,"DIALOGS.NOTIFICATION_LIST.TITLE")),r.xp6(2),r.Q6J("ngIf",0!==e.notifications.length),r.xp6(1),r.Q6J("ngIf",0===e.notifications.length),r.xp6(3),r.hij(" ",r.lcZ(8,7,"DIALOGS.NOTIFICATION_LIST.CLEAR")," "),r.xp6(3),r.hij(" ",r.lcZ(11,9,"DIALOGS.NOTIFICATION_LIST.CANCEL")," "))},directives:[f.uh,v.O5,f.H8,_.lW,ki.N7,ki.xd,ki.x0,_i.c,w.w],pipes:[d.X$],styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),t}(),Ii=i(41050),Ri=i(66438);function xi(t,e){1&t&&(r.TgZ(0,"div",10),r.TgZ(1,"span",11),r._uU(2," ~ \ud83d\uddf2\xa0 "),r.qZA(),r.TgZ(3,"span",12),r._uU(4," DEVEL "),r.qZA(),r.TgZ(5,"span",11),r._uU(6," \xa0\ud83d\uddf2 ~ "),r.qZA(),r.qZA())}var Oi=function(t){return{color:t}},Pi=function(){return["/home"]},Di=function(){var t=function(){function t(e,i,n,r,o,a,s,c,u,l){_classCallCheck(this,t),this.storeService=e,this.authService=i,this.authzResolverService=n,this.dialog=r,this.notificator=o,this.translateService=a,this.store=s,this.sanitizer=c,this.notificationStorageService=u,this.otherApplicationService=l,this.logoutEnabled=!0,this.navTextColor=this.store.get("theme","nav_text_color"),this.iconColor=this.store.get("theme","nav_icon_color"),this.isDevel=!1}return _createClass(t,[{key:"ngOnInit",value:function(){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")}},{key:"showNotificationHistory",value:function(){this.notificationStorageService.newNotificationsCount=0;var t=(0,u.kZ)();t.width="520px",this.dialog.open(Si,t)}},{key:"getNewNotificationsCount",value:function(){return this.notificationStorageService.newNotificationsCount}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(c.d6),r.Y36(c.e8),r.Y36(s.Ct),r.Y36(f.uw),r.Y36(c.V6),r.Y36(d.sK),r.Y36(c.d6),r.Y36(n.H7),r.Y36(c.SZ),r.Y36(c.jq))},t.\u0275cmp=r.Xpm({type:t,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,"url","label","user","logoutEnabled","iconColor","textColor"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"button",1),r.NdJ("click",function(){return e.sideNav.toggle()}),r.TgZ(2,"mat-icon",2),r._uU(3," menu "),r.qZA(),r.qZA(),r.TgZ(4,"a",3),r._UZ(5,"div",4),r.qZA(),r.qZA(),r.YNc(6,xi,7,0,"div",5),r.TgZ(7,"div",6),r.TgZ(8,"button",7),r.NdJ("click",function(){return e.showNotificationHistory()}),r.ALo(9,"translate"),r.TgZ(10,"mat-icon",8),r._uU(11),r.qZA(),r.qZA(),r._UZ(12,"perun-web-apps-header-menu",9),r.qZA()),2&t&&(r.Q6J("ngStyle",r.VKq(19,Oi,e.navTextColor)),r.xp6(2),r.Q6J("ngStyle",r.VKq(21,Oi,e.iconColor)),r.xp6(2),r.Q6J("routerLink",r.DdM(23,Pi)),r.xp6(1),r.Q6J("innerHTML",e.logo,r.oJD),r.xp6(1),r.Q6J("ngIf",e.isDevel),r.xp6(1),r.Q6J("ngStyle",r.VKq(24,Oi,e.navTextColor)),r.xp6(1),r.Q6J("matTooltip",r.lcZ(9,17,"NAV.NOTIFICATIONS_TOOLTIP")),r.xp6(2),r.s9C("matBadge",e.getNewNotificationsCount()>5?"5+":e.getNewNotificationsCount()),r.Q6J("ngStyle",r.VKq(26,Oi,e.iconColor))("matBadgeHidden",0===e.getNewNotificationsCount()),r.xp6(1),r.hij(" ",e.getNewNotificationsCount()?"notifications_active":"notifications"," "),r.xp6(1),r.Q6J("url",e.profileUrl)("label",e.profileLabel)("user",e.principal.user)("logoutEnabled",e.logoutEnabled)("iconColor",e.iconColor)("textColor",e.navTextColor))},directives:[v.PC,_.lW,y.Hw,o.yS,v.O5,C.gM,Ii.k,Ri.X],pipes:[d.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}"]}),t}(),Mi=i(24081),Li={provide:Ot.TP,useExisting:(0,r.Gpc)(function(){return c.yC}),multi:!0};function Ni(t){return new xt(t,"./assets/i18n/",".json")}function zi(t){var e={basePath:t.get("api_url")};return new s.VK(e)}var Zi=function(t){return function(){return t.initialize()}},Bi={suppressScrollX:!0},Fi=function(){var t=function t(e,i){_classCallCheck(this,t),this.customIconService=e,this.translate=i,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()};return t.\u0275fac=function(e){return new(e||t)(r.LFG(c.EB),r.LFG(d.sK))},t.\u0275mod=r.oAB({type:t,bootstrap:[It.y]}),t.\u0275inj=r.cJS({providers:[re,{provide:r.ip1,useFactory:Zi,multi:!0,deps:[re]},{provide:s.VK,useFactory:zi,deps:[c.d6]},{provide:o.wN,useClass:Xt},c.EB,{provide:$t,useClass:c.sM},c.yC,Li,{provide:ui,useValue:Bi}],imports:[[Pt.PW,n.b2,Ot.JF,Rt.m,Dt,St,y.Ps,oe,d.aw.forRoot({loader:{provide:d.Zw,useFactory:Ni,deps:[Ot.eN]}}),s.au,mi,ut.ez,ft,vi.zr.forRoot()]]}),t}();r.B6R(It.y,[v.O5,y.Hw,Ai,Di,v.PC,p.TM,p.JX,gi,Mi.V,p.Rh,o.lC,gt.$,kt],[]),(0,r.G48)(),n.q6().bootstrapModule(Fi).catch(function(t){return console.error(t)})},7423:function(t,e,i){"use strict";i.d(e,{r:function(){return o}});var n=i(61511),r=i(31572),o=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[n.ez]]}),t}()},13857:function(t,e,i){"use strict";i.d(e,{Rc:function(){return r},pI:function(){return o},Ng:function(){return a}});var n=i(31572),r="GUI_CONFIG.PREF_PAGE_SIZE",o="GUI_CONFIG.PREF_PAGE_SIZE.",a=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"getString",value:function(t){return localStorage.getItem(t)}},{key:"getNumber",value:function(t){return parseInt(localStorage.getItem(t),10)}},{key:"setNumber",value:function(t,e){localStorage.setItem(t,e.toString())}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}()},60611:function(t,e,i){"use strict";i.d(e,{dB:function(){return o},CP:function(){return a},tw:function(){return s},nT:function(){return c},YF:function(){return u},gc:function(){return l},v1:function(){return h},AA:function(){return d},VR:function(){return f},uM:function(){return p},xx:function(){return g},H2:function(){return m},xt:function(){return v},dI:function(){return y},j1:function(){return _},Wv:function(){return b},qy:function(){return w},BV:function(){return A},qV:function(){return k},tY:function(){return C},Af:function(){return T},O7:function(){return E},gB:function(){return S},Hi:function(){return I},Jf:function(){return R},W1:function(){return x},rF:function(){return O},Aj:function(){return P},Ad:function(){return D},kZ:function(){return M},cL:function(){return L},RS:function(){return N},HC:function(){return z},KE:function(){return Z},Sb:function(){return B},_7:function(){return F},bf:function(){return q},rc:function(){return H},Cf:function(){return U},eq:function(){return G},NG:function(){return j},O9:function(){return Y},d7:function(){return K},vq:function(){return V},NL:function(){return J},kO:function(){return Q},aL:function(){return W},DR:function(){return X},uC:function(){return $},JO:function(){return tt},oK:function(){return et},Iz:function(){return it},It:function(){return nt},z6:function(){return rt},iQ:function(){return ot},e5:function(){return at},Bf:function(){return st},zp:function(){return ct},US:function(){return ut},gG:function(){return lt},$V:function(){return ht},S7:function(){return dt},zW:function(){return ft},CE:function(){return pt},Is:function(){return gt},M8:function(){return mt},g:function(){return vt},_c:function(){return yt},dK:function(){return _t},yW:function(){return bt}});var n=i(13857),r=i(31572),o=function(){var t=function(){function t(e){_classCallCheck(this,t),this.guiConfigService=e}return _createClass(t,[{key:"getTablePageSize",value:function(t){var e=this.guiConfigService.getNumber(n.pI+t);if(!isNaN(e))return e;var i=this.guiConfigService.getNumber(n.Rc);return isNaN(i)?10:i}},{key:"setTablePageSize",value:function(t,e){this.guiConfigService.setNumber(n.pI+t,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.Ng))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),a="0",s="1",c="2",u="3",l="4",h="5",d="6",f="7",p="8",g="9",m="10",v="11",y="12",_="13",b="14",w="15",A="16",k="17",C="18",T="19",E="20",S="21",I="22",R="23",x="24",O="25",P="26",D="27",M="28",L="29",N="30",z="31",Z="32",B="33",F="34",q="35",H="36",U="37",G="42",j="43",Y="44",K="45",V="46",J="47",Q="48",W="49",X="50",$="51",tt="52",et="53",it="54",nt="55",rt="56",ot="57",at="58",st="59",ct="62",ut="63",lt="64",ht="65",dt="66",ft="69",pt="71",gt="72",mt="75",vt="76",yt="77",_t="78",bt="79"},17:function(t,e,i){"use strict";i.d(e,{Ji:function(){return s},Pd:function(){return o},BQ:function(){return r},Ly:function(){return a},GH:function(){return l},Ls:function(){return h},SG:function(){return u},es:function(){return c}});var n=i(10709),r=(0,n.X$)("openClose",[(0,n.SB)("open",(0,n.oB)({overflow:"hidden"})),(0,n.SB)("closed",(0,n.oB)({height:"0px",overflow:"hidden"})),(0,n.eR)("open <=> closed",[(0,n.jt)(".3s ease-in")])]),o=(0,n.X$)("flyInOut",[(0,n.eR)(":enter",[(0,n.oB)({transform:"translateX(100%)"}),(0,n.jt)(".25s")]),(0,n.eR)(":leave",[(0,n.jt)(".5s",(0,n.oB)({transform:"translateX(100%)"}))])]),a=(0,n.X$)("rollInOut",[(0,n.eR)(":enter",[(0,n.oB)({height:"0px"}),(0,n.jt)(".25s")]),(0,n.eR)(":leave",[(0,n.jt)(".25s",(0,n.oB)({height:"0px"}))])]),s=(0,n.X$)("routeAnimations",[(0,n.eR)("* => *",[(0,n.oB)({position:"relative"}),(0,n.IO)(":enter",[(0,n.oB)({width:"100%",opacity:0})],{optional:!0}),(0,n.IO)(":leave",[(0,n.oB)({position:"absolute",width:"100%",opacity:1}),(0,n.jt)("0.15s",(0,n.oB)({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),(0,n.IO)(":enter",[(0,n.oB)({position:"absolute",width:"100%",opacity:0}),(0,n.jt)("0.15s",(0,n.oB)({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),c=(0,n.X$)("tagsOpenClose",[(0,n.SB)("open",(0,n.oB)({})),(0,n.SB)("closed",(0,n.oB)({width:"0px",height:"0px"})),(0,n.eR)("open <=> closed",[(0,n.jt)(".3s ease-in")])]),u=(0,n.X$)("switchAnimations",[(0,n.eR)("true => false",[(0,n.IO)(":enter, :leave",(0,n.oB)({})),(0,n.ru)([(0,n.IO)(":enter",[(0,n.oB)({transform:"translateX(-100%)"}),(0,n.jt)("1s ease-in-out",(0,n.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,n.IO)(":leave",[(0,n.oB)({transform:"translateX(0%)",position:"absolute"}),(0,n.jt)("1s ease-in-out",(0,n.oB)({transform:"translateX(100%)"}))],{optional:!0})])]),(0,n.eR)("false => true",[(0,n.IO)(":enter, :leave",(0,n.oB)({})),(0,n.ru)([(0,n.IO)(":enter",[(0,n.oB)({transform:"translateX(100%)"}),(0,n.jt)("1s ease-in-out",(0,n.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,n.IO)(":leave",[(0,n.oB)({transform:"translateX(0%)",position:"absolute"}),(0,n.jt)("1s ease-in-out",(0,n.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])]),l=(0,n.X$)("slideInOutLeft",[(0,n.eR)(":enter",[(0,n.oB)({transform:"translateX(-100%)",position:"relative"}),(0,n.jt)("0.5s ease-in",(0,n.oB)({transform:"translateX(0%)"}))]),(0,n.eR)(":leave",[(0,n.jt)("0.5s ease-in",(0,n.oB)({transform:"translateX(-100%)"}))])]),h=(0,n.X$)("slideInOutRight",[(0,n.eR)(":enter",[(0,n.oB)({transform:"translateX(100%)",position:"fixed"}),(0,n.jt)("0.5s ease-in",(0,n.oB)({transform:"translateX(0%)"}))]),(0,n.eR)(":leave",[(0,n.oB)({transform:"translateX(-100%)",position:"relative"}),(0,n.jt)("0.5s ease-in",(0,n.oB)({transform:"translateX(100%)"}))])])},41939:function(t,e,i){"use strict";i.d(e,{Mw:function(){return N.M},qG:function(){return it.qG},Sx:function(){return et.S},Nj:function(){return $},ez:function(){return L},t$:function(){return tt}});var n=i(61511),r=i(29236),o=i(67033),a=i(48160),s=i(57629),c=i(58623),u=i(73005),l=i(67806),h=i(22727),d=i(43691),f=i(8055),p=i(15980),g=i(36922),m=i(66283),v=i(16073),y=i(80340),_=i(10033),b=i(88975),w=i(71522),A=i(22280),k=i(81391),C=i(91010),T=i(15812),E=i(54810),S=i(4786),I=i(30146),R=i(4253),x=i(84608),O=i(84140),P=i(31572),D=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"format",value:function(t,e){return"input"===e?"".concat(t.getDate().toString(),".").concat((t.getMonth()+1).toString(),".").concat(t.getFullYear()):t.toDateString()}}]),i}(w.LF);return e.\u0275fac=function(i){return(t||(t=P.n5z(e)))(i||e)},e.\u0275prov=P.Yz7({token:e,factory:e.\u0275fac}),e}(),M={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"}}},L=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=P.oAB({type:t}),t.\u0275inj=P.cJS({providers:[{provide:w._A,useClass:D},{provide:w.sG,useValue:M}],imports:[[n.ez,r.p9,o.p0,v.u5,_.Hi,b._t,a.aw,s.Bz,c.JX,u.TU,l.Cq,h.r,d.Ps,f.Tx,p.ot,g.AV,m.lN,v.UX,y.c,w.si,A.d4,k.Iq,C.dp,T.FA,E.Fk,w.Ng,S.LD,I.Co,R.Cl,x.Is,O.Je]]}),t}();i(41186);var N=i(51556),z=(i(76021),i(84584),i(22230),i(33596),i(88884),i(11418),i(23888),i(65249)),Z=i(68416),B=i(6527),F=i(39571),q=i(83787);function H(t,e){1&t&&(P.TgZ(0,"app-alert"),P._uU(1),P.ALo(2,"translate"),P.ALo(3,"customTranslate"),P.qZA()),2&t&&(P.xp6(1),P.Oqu(P.lcZ(2,1,P.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function U(t,e){1&t&&(P.TgZ(0,"th",16),P._uU(1),P.ALo(2,"translate"),P.ALo(3,"customTranslate"),P.qZA()),2&t&&(P.xp6(1),P.Oqu(P.lcZ(2,1,P.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))))}function G(t,e){if(1&t&&(P.TgZ(0,"td",17),P._uU(1),P.qZA()),2&t){var i=e.$implicit;P.xp6(1),P.Oqu(i.friendlyNameParameter)}}function j(t,e){1&t&&(P.TgZ(0,"th",16),P._uU(1),P.ALo(2,"translate"),P.ALo(3,"customTranslate"),P.qZA()),2&t&&(P.xp6(1),P.Oqu(P.lcZ(2,1,P.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))))}function Y(t,e){if(1&t&&(P.TgZ(0,"td",18),P._uU(1),P.qZA()),2&t){var i=e.$implicit;P.xp6(1),P.Oqu(i.value)}}function K(t,e){1&t&&P._UZ(0,"th",16)}function V(t,e){if(1&t){var i=P.EpF();P.TgZ(0,"td",19),P.TgZ(1,"button",20),P.NdJ("click",function(){var t=P.CHM(i).$implicit;return P.oxw().resetPassword(t.friendlyNameParameter)}),P._uU(2),P.ALo(3,"translate"),P.ALo(4,"customTranslate"),P.qZA(),P.qZA()}if(2&t){var n=e.$implicit,r=P.oxw();P.xp6(1),P.Q6J("disabled",!r.logins.includes(n)),P.xp6(1),P.Oqu(P.lcZ(3,2,P.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.RESET_PASSWORD")))}}function J(t,e){1&t&&P._UZ(0,"th",16)}function Q(t,e){if(1&t){var i=P.EpF();P.TgZ(0,"td",19),P.TgZ(1,"button",21),P.NdJ("click",function(){var t=P.CHM(i).$implicit;return P.oxw().changePassword(t)}),P._uU(2),P.ALo(3,"translate"),P.ALo(4,"customTranslate"),P.qZA(),P.qZA()}if(2&t){var n=e.$implicit,r=P.oxw();P.xp6(1),P.Q6J("disabled",!r.logins.includes(n)),P.xp6(1),P.Oqu(P.lcZ(3,2,P.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD")))}}function W(t,e){1&t&&P._UZ(0,"tr",22)}function X(t,e){1&t&&P._UZ(0,"tr",23)}var $=function(){var t=function(){function t(e,i,n,r,o,a){_classCallCheck(this,t),this.attributesManagerService=e,this.store=i,this.dialog=n,this.route=r,this.router=o,this.otherApplicationService=a,this.nameSpaces=[],this.logins=[],this.displayedColumns=["namespace","value","reset","change"]}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.userId=this.store.getPerunPrincipal().userId,this.nameSpaces=this.store.get("password_namespace_attributes"),this.attributesManagerService.getLogins(this.userId).subscribe(function(e){var i=t.nameSpaces.map(function(t){var e=t.split(":");return e[e.length-1]});t.logins=e.filter(function(t){return i.includes(t.friendlyNameParameter)}),t.dataSource=new o.by(e);var n=t.route.snapshot.queryParamMap.get("namespace");if(n){var r=t.logins.find(function(t){return t.friendlyNameParameter===n});r&&t.changePassword(r)}})}},{key:"resetPassword",value:function(t){window.open(this.otherApplicationService.getUrlForOtherApplication("pwdReset",t),"_blank")}},{key:"changePassword",value:function(t){var e=this;this.router.navigate([],{queryParams:{namespace:t.friendlyNameParameter},queryParamsHandling:"merge"});var i=(0,O.kZ)();i.width="600px",i.data={login:t.value,namespace:t.friendlyName.split(":")[1]},this.dialog.open(B.xF,i).afterClosed().subscribe(function(){e.router.navigate([],{queryParams:{namespace:null},queryParamsHandling:"merge"})})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(P.Y36(z.H8),P.Y36(Z.d6),P.Y36(x.uw),P.Y36(s.gz),P.Y36(s.F0),P.Y36(Z.jq))},t.\u0275cmp=P.Xpm({type:t,selectors:[["perun-web-apps-password-reset"]],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(t,e){1&t&&(P.TgZ(0,"h1",0),P._uU(1),P.ALo(2,"translate"),P.ALo(3,"customTranslate"),P.qZA(),P.YNc(4,H,4,5,"app-alert",1),P.TgZ(5,"div",2),P.TgZ(6,"div",3),P.TgZ(7,"div",4),P.TgZ(8,"table",5),P.ynx(9,6),P.YNc(10,U,4,5,"th",7),P.YNc(11,G,2,1,"td",8),P.BQk(),P.ynx(12,9),P.YNc(13,j,4,5,"th",7),P.YNc(14,Y,2,1,"td",10),P.BQk(),P.ynx(15,11),P.YNc(16,K,1,0,"th",7),P.YNc(17,V,5,6,"td",12),P.BQk(),P.ynx(18,13),P.YNc(19,J,1,0,"th",7),P.YNc(20,Q,5,6,"td",12),P.BQk(),P.YNc(21,W,1,0,"tr",14),P.YNc(22,X,1,0,"tr",15),P.qZA(),P.qZA(),P.qZA(),P.qZA()),2&t&&(P.xp6(1),P.Oqu(P.lcZ(2,5,P.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE"))),P.xp6(3),P.Q6J("ngIf",!e.logins.length),P.xp6(4),P.Q6J("dataSource",e.dataSource),P.xp6(13),P.Q6J("matHeaderRowDef",e.displayedColumns),P.xp6(1),P.Q6J("matRowDefColumns",e.displayedColumns))},directives:[n.O5,o.BZ,c.YE,o.w1,o.fO,o.Dz,o.as,o.nj,F.w,o.ge,o.ev,p.lW,o.XQ,o.Gk],pipes:[a.X$,q.a],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}"]}),t}(),tt=function(){var t=function(){function t(e,i,n,r){_classCallCheck(this,t),this.router=e,this.route=i,this.location=n,this.forceRoute=r}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;"back"!==this.forceRoute.getLastState()?this.route.queryParams.subscribe(function(e){t.router.navigate([e.redirectTo])}):this.location.back()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(P.Y36(s.F0),P.Y36(s.gz),P.Y36(n.Ye),P.Y36(Z.xw))},t.\u0275cmp=P.Xpm({type:t,selectors:[["perun-web-apps-redirect-page"]],decls:0,vars:0,template:function(t,e){},styles:[""]}),t}();i(78364),i(11441),i(67474),i(43005);var et=i(30725),it=(i(66438),i(94327))},30725:function(t,e,i){"use strict";i.d(e,{S:function(){return a},Y:function(){return s}});var n=i(31572),r=(i(65249),i(48160)),o=i(44973),a={},s=function(){var t=function t(e){var i=this;_classCallCheck(this,t),this.translate=e,this.item=null,this.itemSelected=new n.vpe,this.nameFunction=function(t){return t===a?i.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM"):t.shortname},this.secondaryFunction=function(t){return t===a?"":t.id<0?i.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NEW_ITEM"):"#"+t.id},this.searchFunction=function(t){return t===a?"":t.shortname+t.id}};return t.\u0275fac=function(e){return new(e||t)(n.Y36(r.sK))},t.\u0275cmp=n.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(t,e){1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.itemSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t&&n.Q6J("entities",e.items)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.secondaryFunction)("entity",e.item)("disableAutoSelect",!0)("selectPlaceholder",n.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",n.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",n.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},directives:[o.i],pipes:[r.X$],styles:[""]}),t}()},76021:function(t,e,i){"use strict";i.d(e,{u:function(){return h}});var n=i(31572),r=i(84140),o=i(61511),a=i(29236),s=i(16073),c=i(66283);function u(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-checkbox",2),n.NdJ("change",function(){return n.CHM(i),n.oxw()._sendEventToParent()})("ngModelChange",function(t){return n.CHM(i),n.oxw().attribute.value=t}),n.qZA()}if(2&t){var r=n.oxw();n.Q6J("ngModel",r.attribute.value)}}function l(t,e){if(1&t&&(n.TgZ(0,"mat-label"),n._uU(1),n.qZA()),2&t){var i=n.oxw();n.xp6(1),n.Oqu(i.attribute.value)}}var h=function(){var t=function(){function t(){_classCallCheck(this,t),this.readonly=!1,this.sendEventToParent=new n.vpe}return _createClass(t,[{key:"ngOnInit",value:function(){this.readonly||(this.readonly=(0,r.Hm)(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"div"),n.YNc(1,u,1,1,"mat-checkbox",0),n.YNc(2,l,2,1,"mat-label",1),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf",!e.readonly),n.xp6(1),n.Q6J("ngIf",e.readonly))},directives:[o.O5,a.oG,s.JJ,s.On,c.hX],styles:[""]}),t}()},84584:function(t,e,i){"use strict";i.d(e,{H:function(){return C}});var n=i(31572),r=i(75842),o=i(88975),a=i(6527),s=i(84140),c=i(84608),u=i(10033),l=i(61511),h=i(43691),d=i(36922),f=i(15980),p=i(66283),g=i(80340);function m(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-icon",9),n.NdJ("mousedown",function(){return n.CHM(i),n.oxw(2).dragDisabled=!1}),n._uU(1,"drag_indicator"),n.qZA()}}function v(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-icon",10),n.NdJ("click",function(){n.CHM(i);var t=n.oxw().$implicit;return n.oxw().edit(t)}),n._uU(1,"edit"),n.qZA()}}function y(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-icon",11),n.NdJ("click",function(){n.CHM(i);var t=n.oxw().$implicit;return n.oxw().remove(t)}),n._uU(1,"cancel"),n.qZA()}}function _(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-chip",4),n.NdJ("removed",function(){var t=n.CHM(i).$implicit,e=n.oxw();return e.remove(t),e._sendEventToParent()}),n.YNc(1,m,2,0,"mat-icon",5),n.TgZ(2,"div",6),n.NdJ("click",function(){var t=n.CHM(i).$implicit,e=n.oxw();return e.readonly&&void 0!==e.attribute.displayName&&e.showValue(t,e.attribute.displayName)}),n._uU(3),n.qZA(),n.YNc(4,v,2,0,"mat-icon",7),n.YNc(5,y,2,0,"mat-icon",8),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.Q6J("selectable",o.selectable)("cdkDragData",r)("removable",o.removable),n.xp6(1),n.Q6J("ngIf",o.removable),n.xp6(1),n.ekj("cursor-pointer",o.readonly&&void 0!==o.attribute.displayName),n.xp6(1),n.Oqu(r),n.xp6(1),n.Q6J("ngIf",o.removable),n.xp6(1),n.Q6J("ngIf",o.removable)}}function b(t,e){1&t&&(n.TgZ(0,"mat-icon"),n._uU(1,"more_horiz"),n.qZA())}function w(t,e){1&t&&(n.TgZ(0,"mat-icon"),n._uU(1,"keyboard_arrow_up"),n.qZA())}function A(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"div",12),n.TgZ(1,"span",13),n.TgZ(2,"button",14),n.NdJ("click",function(){return n.CHM(i),n.oxw().onShowChange()}),n.YNc(3,b,2,0,"mat-icon",15),n.YNc(4,w,2,0,"mat-icon",15),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=n.oxw();n.xp6(1),n.Q6J("matTooltip",r.showMore?"Show less":"Show more")("matTooltipPosition","above"),n.xp6(2),n.Q6J("ngIf",!r.showMore),n.xp6(1),n.Q6J("ngIf",r.showMore)}}function k(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-form-field",12),n.TgZ(1,"input",16),n.NdJ("matChipInputTokenEnd",function(t){return n.CHM(i),n.oxw().add(t)})("change",function(){return n.CHM(i),n.oxw()._sendEventToParent()}),n.qZA(),n.qZA()}if(2&t){var r=n.oxw(),o=n.MAs(2);n.xp6(1),n.Q6J("matChipInputFor",o)("matChipInputSeparatorKeyCodes",r.separatorKeysCodes)("matChipInputAddOnBlur",r.addOnBlur)}}var C=function(){var t=function(){function t(e){_classCallCheck(this,t),this.dialog=e,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[r.K5,r.OC],this.values=[],this.showMore=!1,this.defaultItemsShown=5,this.sendEventToParent=new n.vpe,this.readonly=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.removable=!(0,s.Hm)(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=Object.values(this.attribute.value),this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,s.Hm)(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}},{key:"add",value:function(t){var e=t.input,i=t.value;(i||"").trim()&&(this.attribute.value.push(i.trim()),this.values=Object.values(this.attribute.value),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),e&&(e.value=""),this.sendEventToParent.emit()}},{key:"remove",value:function(t){var e=this,i=(0,s.kZ)();i.width="400px",i.data={name:t},this.dialog.open(a.Wr,i).afterClosed().subscribe(function(i){if(i){var n=e.attribute.value.indexOf(t);e.attribute.value.splice(n,1),e.values=Object.values(e.attribute.value),e.sendEventToParent.emit()}})}},{key:"drop",value:function(t){this.dragDisabled=!0,(0,o.bA)(this.attribute.value,t.previousIndex,t.currentIndex),this.values=Object.values(this.attribute.value)}},{key:"edit",value:function(t){var e=this,i=this.attribute.value.indexOf(t),n=(0,s.kZ)();n.width="600px",n.data={attribute:this.attribute,index:i},this.dialog.open(a.r2,n).afterClosed().subscribe(function(t){t&&(e.values=Object.values(e.attribute.value),e.sendEventToParent.emit())})}},{key:"showValue",value:function(t,e){var i=(0,s.kZ)();i.width="350px",i.data={value:t,title:e},this.dialog.open(a.mk,i)}},{key:"setItemsShown",value:function(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}},{key:"onShowChange",value:function(){this.showMore=!this.showMore,this.setItemsShown()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(c.uw))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"mat-chip-list",0,1),n.NdJ("cdkDropListDropped",function(t){return e.drop(t),e._sendEventToParent()}),n.YNc(3,_,6,9,"mat-chip",2),n.YNc(4,A,5,4,"div",3),n.YNc(5,k,2,3,"mat-form-field",3),n.qZA(),n.qZA()),2&t&&(n.xp6(1),n.Q6J("cdkDropListDisabled",e.dragDisabled),n.xp6(2),n.Q6J("ngForOf",e.values.slice(0,e.itemsShown)),n.xp6(1),n.Q6J("ngIf",e.values.length>e.defaultItemsShown),n.xp6(1),n.Q6J("ngIf",!e.readonly))},directives:[u.qn,o.Wj,l.sg,l.O5,u.HS,o.Zt,h.Hw,d.gM,f.lW,p.KE,g.Nt,u.oH],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%], .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}.edit-delete-icon[_ngcontent-%COMP%], .handle-icon[_ngcontent-%COMP%]{justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),t}()},22230:function(t,e,i){"use strict";i.d(e,{$:function(){return b}});var n=i(6527),r=i(84140),o=i(31572),a=i(84608),s=i(16073),c=i(61511),u=i(36922),l=i(66283),h=i(80340),d=i(15980),f=i(43691);function p(t,e){if(1&t){var i=o.EpF();o.TgZ(0,"button",15),o.NdJ("click",function(){o.CHM(i);var t=o.oxw().index;return o.oxw().removeValue(t)}),o.TgZ(1,"mat-icon"),o._uU(2," indeterminate_check_box "),o.qZA(),o.qZA()}}function g(t,e){if(1&t){var i=o.EpF();o.TgZ(0,"div",9),o.TgZ(1,"mat-form-field",10),o._UZ(2,"label",11),o.TgZ(3,"input",12),o.NdJ("click",function(){var t=o.CHM(i).index,e=o.oxw();return e.readonly&&e.attribute.displayName&&e.showValue(e.keys[t],e.attribute.displayName)})("ngModelChange",function(t){var e=o.CHM(i).index;return o.oxw().keys[e]=t}),o.qZA(),o.qZA(),o.TgZ(4,"mat-form-field",10),o._UZ(5,"label",11),o.TgZ(6,"input",13),o.NdJ("click",function(){var t=o.CHM(i).$implicit,e=o.oxw();return e.readonly&&void 0!==e.attribute.displayName&&e.showValue(t,e.attribute.displayName)})("ngModelChange",function(t){var e=o.CHM(i).index;return o.oxw().values[e]=t}),o.qZA(),o.qZA(),o.YNc(7,p,3,0,"button",14),o.qZA()}if(2&t){var n=e.index,r=o.oxw();o.xp6(1),o.s9C("appearance",r.readonly?"none":"standard"),o.xp6(1),o.hYB("for","",r.attribute.id,"-key-",n,""),o.xp6(1),o.ekj("cursor-pointer",r.readonly&&void 0!==r.attribute.displayName),o.hYB("id","",r.attribute.id,"-key-",n,""),o.MGl("name","key-",n,""),o.Q6J("ngModel",r.keys[n])("readonly",r.readonly),o.xp6(1),o.s9C("appearance",r.readonly?"none":"standard"),o.xp6(1),o.hYB("for","",r.attribute.id,"-value-",n,""),o.xp6(1),o.ekj("cursor-pointer",r.readonly&&void 0!==r.attribute.displayName),o.MGl("name","value-",n,""),o.hYB("id","",r.attribute.id,"-value-",n,""),o.Q6J("readonly",r.readonly)("ngModel",r.values[n]),o.xp6(1),o.Q6J("ngIf",!r.readonly)}}function m(t,e){1&t&&(o.TgZ(0,"mat-icon"),o._uU(1,"more_horiz"),o.qZA())}function v(t,e){1&t&&(o.TgZ(0,"mat-icon"),o._uU(1,"keyboard_arrow_up"),o.qZA())}function y(t,e){if(1&t){var i=o.EpF();o.TgZ(0,"button",16),o.NdJ("click",function(){return o.CHM(i),o.oxw().onShowChange()}),o.YNc(1,m,2,0,"mat-icon",17),o.YNc(2,v,2,0,"mat-icon",17),o.qZA()}if(2&t){var n=o.oxw();o.xp6(1),o.Q6J("ngIf",!n.showMore),o.xp6(1),o.Q6J("ngIf",n.showMore)}}function _(t,e){if(1&t){var i=o.EpF();o.TgZ(0,"button",18),o.NdJ("click",function(){return o.CHM(i),o.oxw().addValue()}),o.TgZ(1,"mat-icon"),o._uU(2," add_box "),o.qZA(),o.qZA()}}var b=function(){var t=function(){function t(e){_classCallCheck(this,t),this.dialog=e,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}return _createClass(t,[{key:"ngOnInit",value:function(){if(this.attribute.value)for(var t=this.attribute.value,e=0,i=Object.entries(t);ethis.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}},{key:"removeValue",value:function(t){this.keys.splice(t,1),this.values.splice(t,1)}},{key:"updateAttribute",value:function(){for(var t={},e=0;ee.defaultItemsShown),o.xp6(1),o.Q6J("ngIf",!e.readonly))},directives:[s._Y,s.JL,s.F,c.sg,u.gM,c.O5,l.KE,h.Nt,s.Fj,s.Q7,s.JJ,s.On,d.lW,f.Hw],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}"]}),t}()},33596:function(t,e,i){"use strict";i.d(e,{_:function(){return h}});var n=i(31572),r=i(84140),o=i(6527),a=i(84608),s=i(66283),c=i(80340),u=i(16073),l=i(82877),h=function(){var t=function(){function t(e){_classCallCheck(this,t),this.dialog=e,this.readonly=!1,this.sendEventToParent=new n.vpe}return _createClass(t,[{key:"ngOnInit",value:function(){this.value=this.attribute.value,this.readonly||(this.readonly=(0,r.Hm)(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}},{key:"showValue",value:function(t,e){var i=(0,r.kZ)();i.width="350px",i.data={value:t,title:e},this.dialog.open(o.mk,i)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(a.uw))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n.TgZ(1,"input",1),n.NdJ("click",function(){return e.readonly&&void 0!==e.value&&e.showValue(e.value,e.attribute.displayName)})("ngModelChange",function(t){return e.attribute.value=t})("keydown",function(){return e._sendEventToParent()}),n.ALo(2,"multiWordDataCy"),n.qZA(),n.qZA()),2&t&&(n.s9C("appearance",e.readonly?"none":"standard"),n.xp6(1),n.ekj("cursor-pointer",e.readonly&&void 0!==e.value),n.Q2q("data-cy","",n.lcZ(2,6,e.attribute.displayName),"-value"),n.Q6J("readonly",e.readonly)("ngModel",e.attribute.value))},directives:[s.KE,c.Nt,u.Fj,u.JJ,u.On],pipes:[l.R],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),t}()},51556:function(t,e,i){"use strict";i.d(e,{M:function(){return A}});var n=i(31572),r=i(22230),o=i(61511),a=i(76021),s=i(84584),c=i(33596),u=i(84140),l=i(6527),h=i(84608),d=i(66283),f=i(80340),p=i(16073),g=function(){var t=function(){function t(e){_classCallCheck(this,t),this.dialog=e,this.readonly=!1,this.sendEventToParent=new n.vpe}return _createClass(t,[{key:"ngOnInit",value:function(){this.readonly||(this.readonly=(0,u.Hm)(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}},{key:"showValue",value:function(t){var e=(0,u.kZ)();e.width="350px",e.data={value:t.value,title:t.displayName},this.dialog.open(l.mk,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(h.uw))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n.TgZ(1,"input",1),n.NdJ("click",function(){return e.readonly&&void 0!==e.attribute.value&&e.showValue(e.attribute)})("ngModelChange",function(t){return e.attribute.value=t})("keydown",function(){return e._sendEventToParent()}),n.qZA(),n.qZA()),2&t&&(n.s9C("appearance",e.readonly?"none":"standard"),n.xp6(1),n.ekj("cursor-pointer",e.readonly&&void 0!==e.attribute.value),n.Q6J("readonly",e.readonly)("ngModel",e.attribute.value))},directives:[d.KE,f.Nt,p.wV,p.Fj,p.JJ,p.On],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t}(),m=["map"];function v(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-boolean",3),n.NdJ("sendEventToParent",function(){return n.CHM(i),n.oxw()._sendEventToParent2()}),n.qZA()}if(2&t){var r=n.oxw();n.Q6J("attribute",r.attribute)("readonly",r.readonly)}}function y(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-list",3),n.NdJ("sendEventToParent",function(){return n.CHM(i),n.oxw()._sendEventToParent2()}),n.qZA()}if(2&t){var r=n.oxw();n.Q6J("attribute",r.attribute)("readonly",r.readonly)}}function _(t,e){if(1&t&&n._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&t){var i=n.oxw();n.Q6J("attribute",i.attribute)("readonly",i.readonly)}}function b(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-string",3),n.NdJ("sendEventToParent",function(){return n.CHM(i),n.oxw()._sendEventToParent2()}),n.qZA()}if(2&t){var r=n.oxw();n.Q6J("attribute",r.attribute)("readonly",r.readonly)}}function w(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-integer",3),n.NdJ("sendEventToParent",function(){return n.CHM(i),n.oxw()._sendEventToParent2()}),n.qZA()}if(2&t){var r=n.oxw();n.Q6J("attribute",r.attribute)("readonly",r.readonly)}}var A=function(){var t=function(){function t(){_classCallCheck(this,t),this.readonly=!1,this.sendEventToParent2=new n.vpe}return _createClass(t,[{key:"updateMapAttribute",value:function(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}},{key:"_sendEventToParent2",value:function(){this.sendEventToParent2.emit()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(t,e){var i;(1&t&&n.Gf(m,5),2&t)&&(n.iGM(i=n.CRH())&&(e.mapComponent=i.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(t,e){1&t&&(n.TgZ(0,"div"),n.YNc(1,v,1,2,"perun-web-apps-attribute-value-boolean",0),n.YNc(2,y,1,2,"perun-web-apps-attribute-value-list",0),n.TgZ(3,"div",1),n.NdJ("click",function(){return e._sendEventToParent2()}),n.YNc(4,_,2,2,"perun-web-apps-attribute-value-map",2),n.qZA(),n.YNc(5,b,1,2,"perun-web-apps-attribute-value-string",0),n.YNc(6,w,1,2,"perun-web-apps-attribute-value-integer",0),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf","java.lang.Boolean"===e.attribute.type),n.xp6(1),n.Q6J("ngIf","java.util.ArrayList"===e.attribute.type),n.xp6(2),n.Q6J("ngIf","java.util.LinkedHashMap"===e.attribute.type),n.xp6(1),n.Q6J("ngIf","java.lang.String"===e.attribute.type||"java.lang.LargeString"===e.attribute.type),n.xp6(1),n.Q6J("ngIf","java.lang.Integer"===e.attribute.type))},directives:[o.O5,a.u,s.H,r.$,c._,g],styles:[""]}),t}()},41186:function(t,e,i){"use strict";i.d(e,{p:function(){return P}});var n=i(58623),r=i(67033),o=i(4230),a=i(51556),s=i(84140),c=i(68416),u=i(31572),l=i(82819),h=i(61511),d=i(29236),f=i(36922),p=i(39571),g=i(82877),m=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){return"virt"===t.namespace.split(":")[4]}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=u.Yjl({name:"isVirtualAttribute",type:t,pure:!0}),t}(),v=i(48160);function y(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"th",17),u.TgZ(1,"mat-checkbox",18),u.NdJ("change",function(t){u.CHM(i);var e=u.oxw();return t?e.masterToggle():null}),u.qZA(),u.qZA()}if(2&t){var n=u.oxw();u.xp6(1),u.Q6J("checked",n.selection.hasValue()&&n.isAllSelected())("indeterminate",n.selection.hasValue()&&!n.isAllSelected())("aria-label",n.checkboxLabel())}}function _(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"td",19),u.TgZ(1,"mat-checkbox",20),u.NdJ("click",function(t){return t.stopPropagation()})("change",function(t){var e=u.CHM(i).$implicit,n=u.oxw();return t?n.selection.toggle(e):null}),u.ALo(2,"multiWordDataCy"),u.ALo(3,"isVirtualAttribute"),u.qZA(),u.qZA()}if(2&t){var n=e.$implicit,r=u.oxw();u.xp6(1),u.Q2q("data-cy","",u.lcZ(2,4,n.displayName),"-checkbox"),u.Q6J("checked",r.selection.isSelected(n))("disabled",u.lcZ(3,6,n)||!n.writable)("aria-label",r.checkboxLabel(n))}}function b(t,e){1&t&&(u.TgZ(0,"th",21),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")))}function w(t,e){if(1&t&&(u.TgZ(0,"td",22),u._uU(1),u.qZA()),2&t){var i=e.$implicit;u.xp6(1),u.Oqu(i.id)}}function A(t,e){1&t&&(u.TgZ(0,"th",21),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")))}function k(t,e){if(1&t&&(u.TgZ(0,"td",23),u.TgZ(1,"div",24),u._uU(2),u.qZA(),u.qZA()),2&t){var i=e.$implicit,n=u.oxw();u.xp6(1),u.s9C("matTooltip",n.getAttributeFullName(i)),u.xp6(1),u.hij(" ",i.displayName," ")}}function C(t,e){1&t&&(u.TgZ(0,"th",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")))}function T(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"td",23),u.TgZ(1,"perun-web-apps-attribute-value",26),u.NdJ("sendEventToParent2",function(){var t=u.CHM(i).$implicit;return u.oxw().onValueChange(t)}),u.qZA(),u.qZA()}if(2&t){var n=e.$implicit,r=u.oxw();u.xp6(1),u.Q6J("attribute",n)("readonly",r.readonly||!n.writable)}}function E(t,e){1&t&&(u.TgZ(0,"th",21),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")))}function S(t,e){if(1&t&&(u.TgZ(0,"td",23),u._uU(1),u.qZA()),2&t){var i=e.$implicit;u.xp6(1),u.Oqu(i.description)}}function I(t,e){1&t&&u._UZ(0,"tr",27)}function R(t,e){if(1&t&&(u._UZ(0,"tr",28),u.ALo(1,"translate")),2&t){var i=e.$implicit,n=u.oxw();u.s9C("matTooltip",u.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),u.Q6J("matTooltipPosition","before")("matTooltipDisabled",i.writable||n.readonly)}}function x(t,e){1&t&&(u.TgZ(0,"app-alert",29),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function O(t,e){if(1&t&&(u.TgZ(0,"app-alert",29),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t){var i=u.oxw();u.xp6(1),u.hij(" ",u.lcZ(2,1,i.emptyListText),"\n")}}var P=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.authResolver=e,this.tableCheckbox=i,this.attributes=[],this.selection=new o.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=s.f7}return _createClass(t,[{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.dataSource=new r.by((0,s.MX)(this.attributes)),this.setDataSource()}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}},{key:"getDataForColumn",value:function(t,e){switch(e){case"id":return t.id.toString();case"displayName":return t.displayName;case"description":return t.description;case"value":return JSON.stringify(t.value);case"urn":return t.namespace+":"+t.baseFriendlyName;default:return""}}},{key:"exportData",value:function(t){(0,s.O6)((0,s.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.displayedColumns=this.displayedColumns.filter(function(e){return!t.hiddenColumns.includes(e)}),this.dataSource&&(this.dataSource.filterPredicate=function(e,i){return(0,s.Sd)(e,i,t.displayedColumns.concat("urn"),t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return(0,s.pR)(e,i,t.getDataForColumn,t)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}},{key:"isAllSelected",value:function(){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)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"updateMapAttributes",value:function(){var t,e=_createForOfIteratorHelper(this.items.toArray());try{for(e.s();!(t=e.n()).done;){var i=t.value;"java.util.LinkedHashMap"===i.attribute.type&&i.updateMapAttribute()}}catch(n){e.e(n)}finally{e.f()}}},{key:"onValueChange",value:function(t){this.canBeSelected(t)&&this.selection.select(t)}},{key:"canBeSelected",value:function(t){return!(0,s.Hm)(t)&&t.writable}},{key:"getAttributeFullName",value:function(t){return"".concat(t.namespace,":").concat(t.friendlyName)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Y36(c.x4),u.Y36(c.UA))},t.\u0275cmp=u.Xpm({type:t,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(t,e){var i;(1&t&&(u.Gf(n.YE,7),u.Gf(s.l9,7),u.Gf(a.M,5)),2&t)&&(u.iGM(i=u.CRH())&&(e.matSort=i.first),u.iGM(i=u.CRH())&&(e.child=i.first),u.iGM(i=u.CRH())&&(e.items=i))},inputs:{attributes:"attributes",selection:"selection",displayedColumns:"displayedColumns",inDialog:"inDialog",filterValue:"filterValue",tableId:"tableId",readonly:"readonly",hiddenColumns:"hiddenColumns",emptyListText:"emptyListText"},features:[u.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(t,e){1&t&&(u.TgZ(0,"div",0),u.TgZ(1,"perun-web-apps-table-wrapper",1),u.NdJ("exportData",function(t){return e.exportData(t)}),u.TgZ(2,"table",2),u.ynx(3,3),u.YNc(4,y,2,3,"th",4),u.YNc(5,_,4,8,"td",5),u.BQk(),u.ynx(6,6),u.YNc(7,b,3,3,"th",7),u.YNc(8,w,2,1,"td",8),u.BQk(),u.ynx(9,9),u.YNc(10,A,3,3,"th",7),u.YNc(11,k,3,2,"td",10),u.BQk(),u.ynx(12,11),u.YNc(13,C,3,3,"th",12),u.YNc(14,T,2,2,"td",10),u.BQk(),u.ynx(15,13),u.YNc(16,E,3,3,"th",7),u.YNc(17,S,2,1,"td",10),u.BQk(),u.YNc(18,I,1,0,"tr",14),u.YNc(19,R,2,5,"tr",15),u.qZA(),u.qZA(),u.qZA(),u.YNc(20,x,3,3,"app-alert",16),u.YNc(21,O,3,3,"app-alert",16)),2&t&&(u.Q6J("hidden",0===e.dataSource.filteredData.length),u.xp6(1),u.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),u.xp6(1),u.Q6J("dataSource",e.dataSource),u.xp6(16),u.Q6J("matHeaderRowDef",e.displayedColumns),u.xp6(1),u.Q6J("matRowDefColumns",e.displayedColumns),u.xp6(1),u.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.dataSource.data.length),u.xp6(1),u.Q6J("ngIf",0===e.dataSource.data.length))},directives:[l.l,r.BZ,n.YE,r.w1,r.fO,r.Dz,r.as,r.nj,h.O5,r.ge,d.oG,r.ev,n.nU,f.gM,a.M,r.XQ,r.Gk,p.w],pipes:[g.R,m,v.X$],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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important} .urn-tooltip{max-width:800px!important}"]}),t}()},66297:function(t,e,i){"use strict";i.d(e,{W:function(){return h}});var n=i(68416),r=i(31572),o=i(61511),a=i(15980),s=i(36922),c=i(43691),u=i(48160),l=function(t){return{color:t}},h=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.location=e,this.storeService=i}return _createClass(t,[{key:"ngOnInit",value:function(){this.backButtonColor=this.storeService.get("theme","back_button_color")}},{key:"goBack",value:function(){"false"===sessionStorage.getItem("onInitPage")&&this.location.back()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(o.Ye),r.Y36(n.d6))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"button",0),r.NdJ("click",function(){return e.goBack()}),r.ALo(1,"translate"),r.TgZ(2,"mat-icon",1),r._uU(3,"arrow_right_alt"),r.qZA(),r.qZA()),2&t&&(r.s9C("matTooltip",r.lcZ(1,2,"Back")),r.Q6J("ngStyle",r.VKq(4,l,e.backButtonColor)))},directives:[a.lW,o.PC,s.gM,c.Hw],pipes:[u.X$],styles:[".rotate[_ngcontent-%COMP%]{transform:rotate(180deg) scale(1.5)}"]}),t}()},43005:function(t,e,i){"use strict";i.d(e,{r:function(){return p}});var n=i(31572),r=i(16073),o=i(68416),a=i(66283),s=i(80340),c=i(61511),u=i(29236),l=i(37665),h=i(48160);function d(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-checkbox",7),n.NdJ("change",function(){return n.CHM(i),n.oxw().emitAsSubGroup()})("ngModelChange",function(t){return n.CHM(i),n.oxw().asSubgroup=t}),n._uU(1),n.ALo(2,"translate"),n.qZA()}if(2&t){var r=n.oxw();n.Q6J("labelPosition","before")("ngModel",r.asSubgroup),n.xp6(1),n.hij(" ",n.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function f(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"perun-web-apps-group-search-select",8),n.NdJ("groupSelected",function(t){return n.CHM(i),n.oxw().emitParentGroup(t)}),n.qZA()}if(2&t){var r=n.oxw();n.Q6J("disableAutoSelect",!0)("groups",r.voGroups)}}var p=function(){var t=function(){function t(e){_classCallCheck(this,t),this.store=e,this.parentGroup=null,this.voGroups=[],this.asSubgroup=!1,this.invalidNameMessage=this.store.get("group_name_error_message"),this.secondaryRegex=this.store.get("group_name_secondary_regex"),this.nameChanged=new n.vpe,this.descriptionChanged=new n.vpe,this.parentGroupChanged=new n.vpe,this.asSubgroupChanged=new n.vpe}return _createClass(t,[{key:"ngOnInit",value:function(){this.isNotSubGroup=null===this.parentGroup,this.nameControl=new r.NI("",[r.kI.required,r.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),r.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new r.NI("",[r.kI.required,r.kI.maxLength(129)]),this.selectedParent=null,this.voGroups=this.voGroups.filter(function(t){return"members"!==t.name})}},{key:"emitName",value:function(){this.nameChanged.emit(this.nameControl.invalid?"":this.nameControl.value)}},{key:"emitDescription",value:function(){this.descriptionChanged.emit(this.descriptionControl.invalid?"":this.descriptionControl.value)}},{key:"emitParentGroup",value:function(t){this.selectedParent=t,this.parentGroupChanged.emit(t)}},{key:"emitAsSubGroup",value:function(){this.asSubgroup||this.emitParentGroup(null),this.asSubgroupChanged.emit(this.asSubgroup)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(o.d6))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"mat-form-field",1),n.NdJ("keyup",function(){return e.emitName()}),n.TgZ(2,"label",2),n._UZ(3,"input",3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"mat-error"),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.qZA(),n.TgZ(8,"mat-form-field",4),n.NdJ("keyup",function(){return e.emitDescription()}),n.TgZ(9,"label",2),n._UZ(10,"textarea",3),n.ALo(11,"translate"),n.qZA(),n.TgZ(12,"mat-error"),n._uU(13),n.ALo(14,"translate"),n.qZA(),n.qZA(),n.YNc(15,d,3,5,"mat-checkbox",5),n.YNc(16,f,1,2,"perun-web-apps-group-search-select",6),n.qZA()),2&t&&(n.xp6(3),n.s9C("placeholder",n.lcZ(4,8,"DIALOGS.CREATE_GROUP.NAME")),n.Q6J("formControl",e.nameControl),n.xp6(3),n.hij(" ",e.invalidNameMessage.length?e.invalidNameMessage:n.lcZ(7,10,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),n.xp6(4),n.s9C("placeholder",n.lcZ(11,12,"DIALOGS.CREATE_GROUP.DESCRIPTION")),n.Q6J("formControl",e.descriptionControl),n.xp6(3),n.hij(" ",n.lcZ(14,14,"DIALOGS.CREATE_GROUP.INVALID_DESCRIPTION")," "),n.xp6(2),n.Q6J("ngIf",e.isNotSubGroup),n.xp6(1),n.Q6J("ngIf",e.asSubgroup))},directives:[a.KE,s.Nt,r.Fj,r.Q7,r.JJ,r.oH,a.TO,c.O5,u.oG,r.On,l.h],pipes:[h.X$],styles:[""]}),t}()},51613:function(t,e,i){"use strict";i.d(e,{S:function(){return u}});var n=i(31572),r=i(66283),o=i(80340),a=i(15812),s=i(16073),c=i(48160),u=function(){var t=function(){function t(){_classCallCheck(this,t),this.datePicker=new n.vpe}return _createClass(t,[{key:"ngOnInit",value:function(){this.startMinDate=new Date(2e3,0,1),this.endMaxDate=new Date,this.startMaxDate=this.endDate.value,this.endMinDate=this.startDate.value}},{key:"dateChange",value:function(){this.datePicker.emit(),this.startMaxDate=this.endDate.value,this.endMinDate=this.startDate.value}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,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(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-form-field",0),n.NdJ("click",function(){return n.CHM(i),n.MAs(7).open()}),n.TgZ(1,"mat-label"),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"input",1),n.NdJ("dateChange",function(){return e.dateChange()}),n.qZA(),n._UZ(5,"mat-datepicker-toggle",2),n._UZ(6,"mat-datepicker",null,3),n.qZA(),n.TgZ(8,"mat-form-field",4),n.NdJ("click",function(){return n.CHM(i),n.MAs(15).open()}),n.TgZ(9,"mat-label"),n._uU(10),n.ALo(11,"translate"),n.qZA(),n.TgZ(12,"input",1),n.NdJ("dateChange",function(){return e.dateChange()}),n.qZA(),n._UZ(13,"mat-datepicker-toggle",2),n._UZ(14,"mat-datepicker",null,5),n.qZA()}if(2&t){var r=n.MAs(7),o=n.MAs(15);n.xp6(2),n.Oqu(n.lcZ(3,12,"VO_DETAIL.APPLICATION.DATE.START")),n.xp6(2),n.Q6J("matDatepicker",r)("min",e.startMinDate)("max",e.startMaxDate)("formControl",e.startDate),n.xp6(1),n.Q6J("for",r),n.xp6(5),n.Oqu(n.lcZ(11,14,"VO_DETAIL.APPLICATION.DATE.END")),n.xp6(2),n.Q6J("matDatepicker",o)("min",e.endMinDate)("max",e.endMaxDate)("formControl",e.endDate),n.xp6(1),n.Q6J("for",o)}},directives:[r.KE,r.hX,o.Nt,a.hl,s.Fj,s.JJ,s.oH,a.nW,r.R9,a.Mq],pipes:[c.X$],styles:[""]}),t}()},91058:function(t,e,i){"use strict";i.d(e,{P:function(){return d}});var n=i(31572),r=i(87254),o=i(79996),a=i(47701),s=i(98720),c=i(66283),u=i(80340),l=i(48160),h=["groupFilterInput"],d=function(){var t=function(){function t(){_classCallCheck(this,t),this.filter=new n.vpe}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;(0,r.R)(this.groupFilterInput.nativeElement,"keyup").pipe((0,o.U)(function(t){return t.target.value}),(0,a.b)(500),(0,s.x)()).subscribe(function(e){t.filter.emit(e)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(t,e){var i;(1&t&&n.Gf(h,7),2&t)&&(n.iGM(i=n.CRH())&&(e.groupFilterInput=i.first))},inputs:{placeholder:"placeholder"},outputs:{filter:"filter"},decls:4,vars:3,consts:[[1,"filter-field","mr-2"],["matInput","",3,"placeholder"],["groupFilterInput",""]],template:function(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n._UZ(1,"input",1,2),n.ALo(3,"translate"),n.qZA()),2&t&&(n.xp6(1),n.s9C("placeholder",n.lcZ(3,1,e.placeholder)))},directives:[c.KE,u.Nt],pipes:[l.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),t}()},44973:function(t,e,i){"use strict";i.d(e,{i:function(){return w}});var n=i(31572),r=i(16073),o=i(66994),a=i(55959),s=i(25416),c=i(96577),u=i(66283),l=i(4786),h=i(61511),d=i(71522),f=i(30146),p=i(4253),g=["scrollViewport"];function m(t,e){if(1&t&&(n.TgZ(0,"mat-select-trigger"),n._uU(1),n.qZA()),2&t){var i=n.oxw();n.xp6(1),n.hij(" ",i.multipleSelectedText()," ")}}function v(t,e){if(1&t&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&t){var i=n.oxw(2);n.Tol(i.colorByStatus(null==i.entitiesCtrl?null:i.entitiesCtrl.value)),n.xp6(1),n.hij(" ",i.statusTextFunction(null==i.entitiesCtrl?null:i.entitiesCtrl.value)?"("+i.statusTextFunction(null==i.entitiesCtrl?null:i.entitiesCtrl.value)+")":""," ")}}function y(t,e){if(1&t&&(n.TgZ(0,"mat-option",8),n._uU(1),n.TgZ(2,"span",9),n._uU(3),n.qZA(),n.YNc(4,v,2,4,"span",10),n.qZA()),2&t){var i=n.oxw();n.Q6J("value",null==i.entitiesCtrl?null:i.entitiesCtrl.value),n.xp6(1),n.hij(" ",i.mainTextFunction(null==i.entitiesCtrl?null:i.entitiesCtrl.value)," "),n.xp6(2),n.Oqu(i.secondaryTextFunction(null==i.entitiesCtrl?null:i.entitiesCtrl.value)),n.xp6(1),n.Q6J("ngIf",i.displayStatus)}}function _(t,e){if(1&t&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&t){var i=n.oxw().$implicit,r=n.oxw();n.Tol(r.colorByStatus(i)),n.xp6(1),n.hij(" ",r.statusTextFunction(i)?"("+r.statusTextFunction(i)+")":""," ")}}function b(t,e){if(1&t&&(n.TgZ(0,"mat-option",11),n._uU(1),n.TgZ(2,"span",9),n._uU(3),n.qZA(),n.YNc(4,_,2,4,"span",10),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.Tol(r.theme),n.Q6J("value",i),n.xp6(1),n.hij(" ",r.mainTextFunction(i)," "),n.xp6(2),n.Oqu(r.secondaryTextFunction(i)),n.xp6(1),n.Q6J("ngIf",r.displayStatus)}}var w=function(){var t=function(){function t(e){_classCallCheck(this,t),this.cd=e,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 n.vpe,this.entitiesCtrl=new r.NI,this.entityFilterCtrl=new r.NI,this.filteredEntities=new o.t(1),this.entitiesLen=0,this._onDestroy=new a.xQ,this.mainTextFunction=function(t){return(0,c.stringify)(t)},this.secondaryTextFunction=function(t){return"#"+t.id+(t.description?" "+t.description:"")},this.statusTextFunction=function(t){return t.status}}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.entitiesCtrl.valueChanges.subscribe(function(e){return t.entitySelected.emit(e)}),this.disableAutoSelect||null!==this.entity||this.entitiesCtrl.setValue(this.entities[0]),this.filteredEntities.subscribe(function(e){return t.entitiesLen=e.length}),this.entityFilterCtrl.valueChanges.pipe((0,s.R)(this._onDestroy)).subscribe(function(){t.filterEntites()}),null!==this.entity&&this.entitiesCtrl.setValue(this.entity)}},{key:"colorByStatus",value:function(t){switch(t.status){case"ACTIVE":return"green";case"INACTIVE":return"grey";case"FAILED":return"red";case"PROCESSING":return"black"}}},{key:"ngOnChanges",value:function(t){null!==this.entity&&this.entitiesCtrl.setValue(this.entity),t.entities&&this.filteredEntities.next(this.entities.slice())}},{key:"ngOnDestroy",value:function(){this._onDestroy.next(),this._onDestroy.complete()}},{key:"filterEntites",value:function(){var t=this;if(this.entities){var e=this.entityFilterCtrl.value;if(!e)return this.filteredEntities.next(this.entities.slice()),void this.cd.detectChanges();e=this.normalize(e),this.filteredEntities.next(this.entities.filter(function(i){return t.normalize(t.searchFunction(i)).indexOf(e)>=0})),this.cd.detectChanges()}}},{key:"normalize",value:function(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}},{key:"openChange",value:function(){this.scrollViewport.scrollToIndex(0),this.scrollViewport.checkViewportSize()}},{key:"getViewportHeight",value:function(){var t=48*this.entitiesLen;return t>192&&(t=192),this.scrollViewport&&this.scrollViewport.checkViewportSize(),t}},{key:"multipleSelectedText",value:function(){if(this.entitiesCtrl.value&&0!==this.entitiesCtrl.value.length)return this.entitiesCtrl.value.length===this.entities.length?"ALL":this.entitiesCtrl.value.length>1?this.mainTextFunction(this.entitiesCtrl.value[0])+" + ".concat(this.entitiesCtrl.value.length-1," other(s)"):this.mainTextFunction(this.entitiesCtrl.value[0])+" "+this.secondaryTextFunction(this.entitiesCtrl.value[0])}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-entity-search-select"]],viewQuery:function(t,e){var i;(1&t&&n.Gf(g,5),2&t)&&(n.iGM(i=n.CRH())&&(e.scrollViewport=i.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:[n.TTD],decls:10,vars:16,consts:[[1,"w-100"],[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(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n.TgZ(1,"mat-select",1),n.NdJ("openedChange",function(){return e.openChange()}),n.YNc(2,m,2,1,"mat-select-trigger",2),n.TgZ(3,"mat-option"),n._UZ(4,"ngx-mat-select-search",3),n.qZA(),n.YNc(5,y,5,4,"mat-option",4),n.TgZ(6,"cdk-virtual-scroll-viewport",5,6),n.YNc(8,b,5,7,"mat-option",7),n.ALo(9,"async"),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.xp6(1),n.s9C("placeholder",e.selectPlaceholder),n.Q6J("formControl",e.entitiesCtrl)("multiple",e.multiple),n.xp6(1),n.Q6J("ngIf",e.multiple),n.xp6(2),n.s9C("placeholderLabel",e.findPlaceholder),n.s9C("noEntriesFoundLabel",e.noEntriesText),n.Q6J("clearSearchInput",!1)("formControl",e.entityFilterCtrl),n.xp6(1),n.Q6J("ngIf",null==e.entitiesCtrl?null:e.entitiesCtrl.value),n.xp6(1),n.Udp("height",e.getViewportHeight(),"px"),n.Q6J("minBufferPx",240)("maxBufferPx",480),n.xp6(2),n.Q6J("cdkVirtualForOf",n.lcZ(9,14,e.filteredEntities)))},directives:[u.KE,l.gD,r.JJ,r.oH,h.O5,d.ey,f.nu,p.N7,p.xd,p.x0,l.$L],pipes:[h.Ov],styles:[".selected-options-bottom[_ngcontent-%COMP%]{visibility:hidden;position:absolute}.green[_ngcontent-%COMP%]{color:green}.grey[_ngcontent-%COMP%]{color:grey}.red[_ngcontent-%COMP%]{color:red}.black[_ngcontent-%COMP%]{color:#000}"]}),t}()},60007:function(t,e,i){"use strict";i.d(e,{X:function(){return J}});var n=i(58623),r=i(67033),o=i(84140),a=i(68416),s=i(31572),c=i(82819),u=i(61511),l=i(29236),h=i(72953),d=i(16073),f=i(36922),p=i(15980),g=i(43691);function m(t,e){if(1&t&&(s.TgZ(0,"div",6),s._uU(1),s.qZA()),2&t){var i=e.$implicit,n=s.oxw();s.xp6(1),s.hij(" ",i[n.paramName]," ")}}function v(t,e){1&t&&(s.TgZ(0,"mat-icon"),s._uU(1,"more_horiz"),s.qZA())}function y(t,e){1&t&&(s.TgZ(0,"mat-icon"),s._uU(1,"keyboard_arrow_up"),s.qZA())}function _(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"button",7),s.NdJ("click",function(){return s.CHM(i),s.oxw().onShowChange()}),s.YNc(1,v,2,0,"mat-icon",8),s.YNc(2,y,2,0,"mat-icon",8),s.qZA()}if(2&t){var n=s.oxw();s.xp6(1),s.Q6J("ngIf",!n.showMore),s.xp6(1),s.Q6J("ngIf",n.showMore)}}var b=function(){var t=function(){function t(){_classCallCheck(this,t),this.objects=[],this.filterValue="",this.paramName="",this.showMore=!1,this.defaultItemsShown=3}return _createClass(t,[{key:"ngOnInit",value:function(){this.itemsShown=this.defaultItemsShown}},{key:"ngOnChanges",value:function(){this.itemsShown=this.defaultItemsShown,this.showMore=!1}},{key:"onShowChange",value:function(){this.showMore=!this.showMore,this.itemsShown=this.showMore?this.objects.length:this.defaultItemsShown}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-object-list-values"]],inputs:{objects:"objects",filterValue:"filterValue",paramName:"paramName"},features:[s.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(t,e){1&t&&(s.TgZ(0,"form",0),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.YNc(3,m,2,1,"div",3),s.qZA(),s.TgZ(4,"div"),s.TgZ(5,"span",4),s.YNc(6,_,3,2,"button",5),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(3),s.Q6J("ngForOf",e.objects.slice(0,e.itemsShown)),s.xp6(2),s.Q6J("matTooltip",e.showMore?"Show less":"Show more")("matTooltipPosition","above"),s.xp6(1),s.Q6J("ngIf",e.objects.length>e.defaultItemsShown))},directives:[d._Y,d.JL,d.F,u.sg,f.gM,u.O5,p.lW,g.Hw],styles:[""]}),t}(),w=i(84534),A=i(57629),k=i(39571),C=i(48160),T=i(48853),E=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t,e,i){return t.filter(function(t){return t[i].includes(e)}).filter(function(t,e,n){return n.findIndex(function(e){return e[i]===t[i]})===e})}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"filterUniqueObjects",type:t,pure:!0}),t}();function S(t,e){1&t&&s._UZ(0,"th",20)}function I(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"td",21),s.TgZ(1,"mat-checkbox",22),s.NdJ("change",function(t){var e=s.CHM(i).$implicit,n=s.oxw();return t?n.selection.toggle(e):null})("click",function(t){return t.stopPropagation()}),s.qZA(),s.qZA()}if(2&t){var n=e.$implicit,r=s.oxw();s.xp6(1),s.Q6J("aria-label",r.checkboxLabel(n))("checked",r.selection.isSelected(n))}}function R(t,e){1&t&&(s.TgZ(0,"th",23),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.ID")))}function x(t,e){if(1&t&&(s.TgZ(0,"td",24),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(i.facility.id)}}function O(t,e){1&t&&s._UZ(0,"th",25)}function P(t,e){if(1&t&&(s.TgZ(0,"td",26),s._UZ(1,"perun-web-apps-recently-viewed-icon",27),s.qZA()),2&t){var i=e.$implicit,n=s.oxw();s.xp6(1),s.Q6J("id",i.facility.id)("recentIds",n.recentIds)}}function D(t,e){1&t&&(s.TgZ(0,"th",23),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.NAME")))}function M(t,e){if(1&t&&(s.TgZ(0,"td",26),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(i.facility.name)}}function L(t,e){1&t&&(s.TgZ(0,"th",25),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESCRIPTION")))}function N(t,e){if(1&t&&(s.TgZ(0,"td",26),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(i.facility.description)}}function z(t,e){1&t&&(s.TgZ(0,"th",25),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.TECHNICAL_OWNERS")))}function Z(t,e){if(1&t&&(s.TgZ(0,"td",26),s._uU(1),s.ALo(2,"technicalOwners"),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(s.lcZ(2,1,i.owners))}}function B(t,e){1&t&&(s.TgZ(0,"th",25),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESTINATIONS")))}function F(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"td",26),s.TgZ(1,"perun-web-apps-object-list-values",28),s.NdJ("mouseenter",function(){return s.CHM(i),s.oxw().disableRouting=!0})("mouseleave",function(){return s.CHM(i),s.oxw().disableRouting=!1}),s.ALo(2,"filterUniqueObjects"),s.qZA(),s.qZA()}if(2&t){var n=e.$implicit,r=s.oxw();s.xp6(1),s.Q6J("objects",s.Dn7(2,2,n.destinations,r.filterValue,"destination"))("paramName","destination")}}function q(t,e){1&t&&(s.TgZ(0,"th",25),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.HOSTS")))}function H(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"td",26),s.TgZ(1,"perun-web-apps-object-list-values",28),s.NdJ("mouseenter",function(){return s.CHM(i),s.oxw().disableRouting=!0})("mouseleave",function(){return s.CHM(i),s.oxw().disableRouting=!1}),s.ALo(2,"filterUniqueObjects"),s.qZA(),s.qZA()}if(2&t){var n=e.$implicit,r=s.oxw();s.xp6(1),s.Q6J("objects",s.Dn7(2,2,n.hosts,r.filterValue,"hostname"))("paramName","hostname")}}function U(t,e){1&t&&s._UZ(0,"tr",29)}var G=function(t){return["/facilities",t]},j=function(){return[]};function Y(t,e){if(1&t&&s._UZ(0,"tr",30),2&t){var i=e.$implicit,n=s.oxw();s.Q6J("perunWebAppsMiddleClickRouterLink",s.VKq(2,G,i.facility.id))("routerLink",n.disableRouting?s.DdM(4,j):s.VKq(5,G,i.facility.id))}}function K(t,e){1&t&&(s.TgZ(0,"app-alert",31),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function V(t,e){1&t&&(s.TgZ(0,"app-alert",31),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FACILITIES"),"\n"))}var J=function(){var t=function(){function t(e){_classCallCheck(this,t),this.authResolver=e,this.displayedColumns=["select","id","recent","name","description","technicalOwners","destinations","hosts"],this.pageSizeOptions=o.f7}return _createClass(t,[{key:"matSort",set:function(t){this.sort=t}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.setDataSource()}},{key:"getDataForColumn",value:function(t,e,i){switch(e){case"id":return t.facility.id.toString();case"name":return t.facility.name;case"description":return t.facility.description;case"technicalOwners":return(0,o.te)(t.owners);case"recent":return i.recentIds&&i.recentIds.indexOf(t.facility.id)>-1?"#".repeat(i.recentIds.indexOf(t.facility.id)):t.name;case"destinations":return t.destinations.map(function(t){return t.destination}).join(" ; ");case"hosts":return t.hosts.map(function(t){return t.hostname}).join(" ; ");default:return t[e]}}},{key:"exportData",value:function(t){(0,o.O6)((0,o.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource||(this.dataSource=new r.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=function(e,i){return(0,o.Sd)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return(0,o.pR)(e,i,t.getDataForColumn,t)}),this.dataSource.filter=this.filterValue,this.dataSource.data=this.facilities}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.dataSource.data.length}},{key:"masterToggle",value:function(){var t=this;this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(function(e){return t.selection.select(e)})}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.facility.id+1):(this.isAllSelected()?"select":"deselect")+" all"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(a.x4))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-facilities-list"]],viewQuery:function(t,e){var i;(1&t&&(s.Gf(n.YE,7),s.Gf(o.l9,7)),2&t)&&(s.iGM(i=s.CRH())&&(e.matSort=i.first),s.iGM(i=s.CRH())&&(e.child=i.first))},inputs:{facilities:"facilities",recentIds:"recentIds",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",selection:"selection",pageSizeOptions:"pageSizeOptions"},features:[s.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,"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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,S,1,0,"th",4),s.YNc(5,I,2,2,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,R,3,3,"th",7),s.YNc(8,x,2,1,"td",8),s.BQk(),s.ynx(9,9),s.YNc(10,O,1,0,"th",10),s.YNc(11,P,2,2,"td",11),s.BQk(),s.ynx(12,12),s.YNc(13,D,3,3,"th",7),s.YNc(14,M,2,1,"td",11),s.BQk(),s.ynx(15,13),s.YNc(16,L,3,3,"th",10),s.YNc(17,N,2,1,"td",11),s.BQk(),s.ynx(18,14),s.YNc(19,z,3,3,"th",10),s.YNc(20,Z,3,3,"td",11),s.BQk(),s.ynx(21,15),s.YNc(22,B,3,3,"th",10),s.YNc(23,F,3,6,"td",11),s.BQk(),s.ynx(24,16),s.YNc(25,q,3,3,"th",10),s.YNc(26,H,3,6,"td",11),s.BQk(),s.YNc(27,U,1,0,"tr",17),s.YNc(28,Y,1,7,"tr",18),s.qZA(),s.qZA(),s.qZA(),s.YNc(29,K,3,3,"app-alert",19),s.YNc(30,V,3,3,"app-alert",19)),2&t&&(s.Q6J("hidden",!e.dataSource||0===e.dataSource.filteredData.length||0===e.facilities.length),s.xp6(1),s.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),s.xp6(1),s.Q6J("dataSource",e.dataSource),s.xp6(25),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.facilities.length),s.xp6(1),s.Q6J("ngIf",0===e.facilities.length))},directives:[c.l,r.BZ,n.YE,r.w1,r.fO,r.Dz,r.as,r.nj,u.O5,r.ge,r.ev,l.oG,n.nU,h.W,b,r.XQ,r.Gk,w.YH,A.rH,k.w],pipes:[C.X$,T.J,E],styles:["tr[_ngcontent-%COMP%]{cursor:pointer}"]}),t}()},54930:function(t,e,i){"use strict";i.d(e,{i:function(){return k}});var n=i(31572),r=i(68416),o=i(61511),a=i(15980),s=i(81391),c=i(36922),u=i(43691),l=i(8055),h=i(48160),d=i(44385),f=i(52984),p=i(51392);function g(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"span",5),n.ALo(1,"translate"),n.ALo(2,"groupSyncToolTip"),n.TgZ(3,"button",6),n.NdJ("click",function(){return n.CHM(i),n.oxw(2).onSyncDetail()}),n.ALo(4,"groupSyncIcon"),n.TgZ(5,"mat-icon"),n.ALo(6,"groupSyncIconColor"),n._uU(7),n.ALo(8,"groupSyncIcon"),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=n.oxw(2);n.Q6J("matTooltipPosition","above")("matTooltip",n.lcZ(1,7,n.lcZ(2,9,r.group))),n.xp6(3),n.Q6J("disabled","sync_disabled"===n.lcZ(4,11,r.group)),n.xp6(2),n.Tol(n.lcZ(6,13,r.group)),n.xp6(2),n.hij(" ",n.lcZ(8,15,r.group)," ")}}function m(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"span",5),n.ALo(1,"translate"),n.TgZ(2,"button",6),n.NdJ("click",function(){return n.CHM(i),n.oxw(2).onMoveGroup()}),n.TgZ(3,"mat-icon"),n._uU(4,"arrow_right_alt"),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=n.oxw(2);n.s9C("matTooltip",n.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE")),n.Q6J("matTooltipPosition","above"),n.xp6(2),n.Q6J("disabled",r.disabled)}}function v(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"span",5),n.ALo(1,"translate"),n.TgZ(2,"button",6),n.NdJ("click",function(){return n.CHM(i),n.oxw(2).onChangeNameDescription()}),n.TgZ(3,"mat-icon"),n._uU(4,"text_format"),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=n.oxw(2);n.s9C("matTooltip",n.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME")),n.Q6J("matTooltipPosition","above"),n.xp6(2),n.Q6J("disabled",r.disabled)}}function y(t,e){if(1&t&&(n.TgZ(0,"div",2),n.TgZ(1,"button",3),n.ALo(2,"translate"),n.TgZ(3,"mat-icon"),n._uU(4," file_copy "),n.qZA(),n.qZA(),n.YNc(5,g,9,17,"span",4),n.YNc(6,m,5,5,"span",4),n.YNc(7,v,5,5,"span",4),n.qZA()),2&t){var i=n.oxw();n.xp6(1),n.s9C("matTooltip",n.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),n.Q6J("cdkCopyToClipboard",i.group.name)("matTooltipPosition","above"),n.xp6(4),n.Q6J("ngIf",i.syncAuth),n.xp6(1),n.Q6J("ngIf",i.moveAuth),n.xp6(1),n.Q6J("ngIf",i.editAuth)}}function _(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"button",11),n.NdJ("click",function(){return n.CHM(i),n.oxw(2).onSyncDetail()}),n.ALo(1,"groupSyncIcon"),n.TgZ(2,"mat-icon"),n.ALo(3,"groupSyncIconColor"),n._uU(4),n.ALo(5,"groupSyncIcon"),n.qZA(),n.TgZ(6,"span"),n._uU(7),n.ALo(8,"translate"),n.ALo(9,"groupSyncToolTip"),n.qZA(),n.qZA()}if(2&t){var r=n.oxw(2);n.Q6J("disabled","sync_disabled"===n.lcZ(1,6,r.group)),n.xp6(2),n.Tol(n.lcZ(3,8,r.group)),n.xp6(2),n.hij(" ",n.lcZ(5,10,r.group)," "),n.xp6(3),n.Oqu(n.lcZ(8,12,n.lcZ(9,14,r.group)))}}function b(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"button",11),n.NdJ("click",function(){return n.CHM(i),n.oxw(2).onMoveGroup()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_right_alt"),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.qZA()}if(2&t){var r=n.oxw(2);n.Q6J("disabled",r.disabled),n.xp6(4),n.Oqu(n.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE"))}}function w(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"button",11),n.NdJ("click",function(){return n.CHM(i),n.oxw(2).onChangeNameDescription()}),n.TgZ(1,"mat-icon"),n._uU(2,"text_format"),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.qZA()}if(2&t){var r=n.oxw(2);n.Q6J("disabled",r.disabled),n.xp6(4),n.Oqu(n.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME"))}}function A(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"button",7),n.TgZ(2,"mat-icon"),n._uU(3,"more_vert"),n.qZA(),n.qZA(),n.TgZ(4,"mat-menu",null,8),n.TgZ(6,"button",9),n.TgZ(7,"mat-icon"),n._uU(8," file_copy "),n.qZA(),n.TgZ(9,"span"),n._uU(10),n.ALo(11,"translate"),n.qZA(),n.qZA(),n.YNc(12,_,10,16,"button",10),n.YNc(13,b,6,4,"button",10),n.YNc(14,w,6,4,"button",10),n.qZA(),n.qZA()),2&t){var i=n.MAs(5),r=n.oxw();n.xp6(1),n.Q6J("mat-menu-trigger-for",i),n.xp6(5),n.Q6J("cdkCopyToClipboard",r.group.name),n.xp6(4),n.Oqu(n.lcZ(11,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),n.xp6(2),n.Q6J("ngIf",r.syncAuth),n.xp6(1),n.Q6J("ngIf",r.moveAuth),n.xp6(1),n.Q6J("ngIf",r.editAuth)}}var k=function(){var t=function(){function t(e){_classCallCheck(this,t),this.authResolver=e,this.disabled=!1,this.moveGroup=new n.vpe,this.syncGroup=new n.vpe,this.changeNameDescription=new n.vpe}return _createClass(t,[{key:"ngOnInit",value:function(){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])}},{key:"onMoveGroup",value:function(){this.moveGroup.emit()}},{key:"onSyncDetail",value:function(){this.syncGroup.emit()}},{key:"onChangeNameDescription",value:function(){this.changeNameDescription.emit()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(r.x4))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.YNc(0,y,8,8,"div",0),n.YNc(1,A,15,8,"div",1)),2&t&&(n.Q6J("ngIf",e.displayButtons),n.xp6(1),n.Q6J("ngIf",!e.displayButtons))},directives:[o.O5,a.lW,s.i3,c.gM,u.Hw,l.p6,l.VK,l.OP],pipes:[h.X$,d.r,f.J,p.F],styles:[".buttons-container[_ngcontent-%COMP%]{white-space:nowrap;width:160px}.horiz_right[_ngcontent-%COMP%]{float:right}"]}),t}()},46837:function(t,e,i){"use strict";i.d(e,{x:function(){return g}});var n=i(31572),r=i(84140),o=i(6527),a=i(84608),s=i(61511),c=i(36922),u=i(43691),l=i(48160);function h(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"span",3),n.NdJ("click",function(){return n.CHM(i),n.oxw().changeStatus()}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",4),n._uU(3,"check_circle_outline"),n.qZA(),n.qZA()}2&t&&n.s9C("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE"))}function d(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"span",3),n.NdJ("click",function(){return n.CHM(i),n.oxw().changeStatus()}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",5),n._uU(3,"block"),n.qZA(),n.qZA()}2&t&&n.s9C("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE"))}function f(t,e){if(1&t&&(n.TgZ(0,"span",6),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",7),n._uU(3,"report"),n.qZA(),n.qZA()),2&t){var i=n.oxw();n.hYB("matTooltip","",n.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",i.failureCause,"")}}function p(t,e){1&t&&(n.TgZ(0,"span",6),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",8),n._uU(3,"autorenew"),n.qZA(),n.qZA()),2&t&&n.s9C("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}var g=function(){var t=function(){function t(e){_classCallCheck(this,t),this.dialog=e,this.status="",this.statusChange=new n.vpe}return _createClass(t,[{key:"changeStatus",value:function(){var t=this,e=(0,r.kZ)();e.width="500px",e.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(o.Qu,e).afterClosed().subscribe(function(e){e&&t.statusChange.emit()})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(a.uw))},t.\u0275cmp=n.Xpm({type:t,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"],["matTooltipPosition","above",3,"matTooltip"],[1,"red"],[1,"black"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.YNc(1,h,4,3,"span",1),n.YNc(2,d,4,3,"span",1),n.YNc(3,f,4,4,"span",2),n.YNc(4,p,4,3,"span",2),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf","ACTIVE"===e.status),n.xp6(1),n.Q6J("ngIf","INACTIVE"===e.status),n.xp6(1),n.Q6J("ngIf","FAILED"===e.status),n.xp6(1),n.Q6J("ngIf","PROCESSING"===e.status))},directives:[s.O5,c.gM,u.Hw],pipes:[l.X$],styles:[""]}),t}()},37665:function(t,e,i){"use strict";i.d(e,{h:function(){return s}});var n=i(31572),r=i(84140),o=i(44973),a=i(48160),s=function(){var t=function(){function t(){_classCallCheck(this,t),this.groupSelected=new n.vpe,this.disableAutoSelect=!1,this.displayStatus=!1,this.nameFunction=function(t){return t.name}}return _createClass(t,[{key:"ngOnInit",value:function(){this.groups=this.groups.sort(r.aC)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,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(t,e){var i;(1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.groupSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t)&&n.Q6J("entities",e.groups)("entity",null!==(i=e.firstSelectedGroup)&&void 0!==i?i:null)("displayStatus",e.displayStatus)("disableAutoSelect",e.disableAutoSelect)("mainTextFunction",e.nameFunction)("searchFunction",e.nameFunction)("selectPlaceholder",n.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.SELECT_GROUP"))("findPlaceholder",n.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.FIND_GROUP"))("noEntriesText",n.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.NO_GROUP_FOUND"))},directives:[o.i],pipes:[a.X$],styles:[""]}),t}()},78364:function(t,e,i){"use strict";i.d(e,{W:function(){return at}});var n=i(31572),r=i(58623),o=i(67033),a=i(4230),s=i(65249),c=i(84140),u=i(6527),l=i(68416),h=i(61511),d=i(84608),f=i(82819),p=i(29236),g=i(36922),m=i(72953),v=i(43691),y=i(46837),_=i(15980),b=i(54930),w=i(84534),A=i(57629),k=i(39571),C=i(48160),T=i(74842),E=i(37043),S=i(58506),I=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){var e=t.attributes.find(function(t){return"groupMembershipExpiration"===t.baseFriendlyName});return e&&e.value?e.value:"Never"}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"groupExpiration",type:t,pure:!0}),t}();function R(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-checkbox",26),n.NdJ("change",function(t){n.CHM(i);var e=n.oxw(2);return t?e.masterToggle():null}),n.qZA()}if(2&t){var r=n.oxw(2);n.Q6J("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())}}function x(t,e){if(1&t&&(n.TgZ(0,"th",24),n.YNc(1,R,1,3,"mat-checkbox",25),n.qZA()),2&t){var i=n.oxw();n.xp6(1),n.Q6J("ngIf",!i.disableHeadCheckbox)}}function O(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",27),n.TgZ(1,"span",28),n.ALo(2,"translate"),n.TgZ(3,"mat-checkbox",29),n.NdJ("change",function(t){var e=n.CHM(i).$implicit,r=n.oxw();return t?r.itemSelectionToggle(e):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.s9C("matTooltip",n.lcZ(2,7,o.getCheckboxTooltipMessage(r))),n.Q6J("matTooltipPosition","above")("matTooltipDisabled",!o.disableSelect(r)),n.xp6(2),n.Q2q("data-cy","",r.name,"-checkbox"),n.Q6J("aria-label",o.checkboxLabel(r))("checked",o.selection.isSelected(r))("disabled","members"===r.name&&o.disableMembers||o.disableSelect(r))}}function P(t,e){1&t&&(n.TgZ(0,"th",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_ID")))}function D(t,e){if(1&t&&(n.TgZ(0,"td",31),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.id)}}function M(t,e){1&t&&n._UZ(0,"th",32)}function L(t,e){if(1&t&&(n.TgZ(0,"td",33),n._UZ(1,"perun-web-apps-recently-viewed-icon",34),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.xp6(1),n.Q6J("recentIds",r.recentIds)("id",i.id)}}function N(t,e){1&t&&(n.TgZ(0,"th",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_VO_NAME")))}function z(t,e){if(1&t&&(n.TgZ(0,"td",31),n._uU(1),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.xp6(1),n.Oqu(r.voNames.get(i.voId))}}function Z(t,e){1&t&&n._UZ(0,"th",32)}function B(t,e){1&t&&(n.TgZ(0,"mat-icon",36),n.ALo(1,"translate"),n._uU(2,"account_tree"),n.qZA()),2&t&&n.Q6J("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.INDIRECT_GROUP"))}function F(t,e){1&t&&(n.TgZ(0,"mat-icon",36),n.ALo(1,"translate"),n._uU(2,"alt_route"),n.qZA()),2&t&&n.Q6J("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.MULTIPLE_ASSIGNMENTS"))}function q(t,e){if(1&t&&(n.TgZ(0,"td",33),n.YNc(1,B,3,3,"mat-icon",35),n.YNc(2,F,3,3,"mat-icon",35),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Q6J("ngIf",i.sourceGroupId&&!i.moreTypesOfAssignment),n.xp6(1),n.Q6J("ngIf",i.moreTypesOfAssignment)}}function H(t,e){1&t&&(n.TgZ(0,"th",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_NAME")))}function U(t,e){if(1&t&&(n.TgZ(0,"td",33),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.hij(" ",i.name," ")}}function G(t,e){1&t&&(n.TgZ(0,"th",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")))}function j(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",37),n.TgZ(1,"perun-web-apps-group-resource-status",38),n.NdJ("mouseenter",function(){return n.CHM(i),n.oxw().disabledRouting=!0})("mouseleave",function(){n.CHM(i);var t=n.oxw();return t.disabledRouting=t.disableRouting})("statusChange",function(){return n.CHM(i),n.oxw().refreshTable.emit()}),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("theme","resource-theme")("groupId",r.id)("resourceId",o.resourceId)("failureCause",r.failureCause)("status",r.status)}}function Y(t,e){1&t&&(n.TgZ(0,"th",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")))}function K(t,e){if(1&t&&(n.TgZ(0,"td",33),n.TgZ(1,"i",39),n.ALo(2,"memberStatusIconColor"),n.TgZ(3,"span"),n._uU(4),n.ALo(5,"memberStatusIcon"),n.qZA(),n.qZA(),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.xp6(1),n.Gre("material-icons ",n.lcZ(2,5,r.getStatusAttribute(i)),""),n.s9C("matTooltip",r.getStatusAttribute(i)),n.xp6(3),n.hij(" ",n.lcZ(5,7,r.getStatusAttribute(i))," ")}}function V(t,e){1&t&&(n.TgZ(0,"th",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_DESCRIPTION")))}function J(t,e){if(1&t&&(n.TgZ(0,"td",37),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.description)}}function Q(t,e){1&t&&(n.TgZ(0,"th",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_EXPIRATION")))}function W(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"button",41),n.NdJ("click",function(){n.CHM(i);var t=n.oxw().$implicit;return n.oxw().changeExpiration(t)})("mouseenter",function(){return n.CHM(i),n.oxw(2).disabledRouting=!0})("mouseleave",function(){n.CHM(i);var t=n.oxw(2);return t.disabledRouting=t.disableRouting}),n.TgZ(1,"mat-icon"),n._uU(2,"edit"),n.qZA(),n.qZA()}}function X(t,e){if(1&t&&(n.TgZ(0,"td",37),n._uU(1),n.ALo(2,"parseDate"),n.ALo(3,"groupExpiration"),n.YNc(4,W,3,0,"button",40),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.xp6(1),n.hij(" ",n.lcZ(2,2,n.lcZ(3,4,i))," "),n.xp6(3),n.Q6J("ngIf",r.canManageGroup(i))}}function $(t,e){1&t&&n._UZ(0,"th",32)}function tt(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",33),n.TgZ(1,"perun-web-apps-group-menu",42),n.NdJ("mouseenter",function(){return n.CHM(i),n.oxw().disabledRouting=!0})("mouseleave",function(){n.CHM(i);var t=n.oxw();return t.disabledRouting=t.disableRouting})("moveGroup",function(){var t=n.CHM(i).$implicit;return n.oxw().onMoveGroup(t)})("changeNameDescription",function(){var t=n.CHM(i).$implicit;return n.oxw().onChangeNameDescription(t)})("syncGroup",function(){var t=n.CHM(i).$implicit;return n.oxw().onSyncDetail(t)}),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("disabled","members"===r.name)("displayButtons",o.displayButtons)("group",r)}}function et(t,e){1&t&&n._UZ(0,"tr",43)}var it=function(t,e){return["/organizations",t,"groups",e]};function nt(t,e){if(1&t&&n._UZ(0,"tr",44),2&t){var i=e.$implicit,r=n.oxw();n.ekj("cursor-pointer",!r.disableRouting&&!r.groupsToDisableRouting.has(i.id))("disable-outline",r.disabledRouting||r.groupsToDisableRouting.has(i.id)),n.Q6J("perunWebAppsMiddleClickRouterLink",r.disabledRouting||r.groupsToDisableRouting.has(i.id)?null:n.WLB(6,it,i.voId,i.id))("routerLink",r.disabledRouting||r.groupsToDisableRouting.has(i.id)?null:n.WLB(9,it,i.voId,i.id))}}function rt(t,e){1&t&&(n.TgZ(0,"app-alert",45),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_GROUPS"),"\n"))}function ot(t,e){1&t&&(n.TgZ(0,"app-alert",45),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}var at=function(){var t=function(){function t(e,i,r,o,s){var u=this;_classCallCheck(this,t),this.dialog=e,this.authResolver=i,this.voService=r,this.tableCheckbox=o,this.changeDetector=s,this.displayButtons=window.innerWidth>800,this.theme="group-theme",this.moveGroup=new n.vpe,this.groups=[],this.selection=new a.Ov(!0,[]),this.hasMembersGroup=!1,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=c.f7,this.recentIds=[],this.resourceId=null,this.refreshTable=new n.vpe,this.disabledRouting=!1,this.voIds=new Set,this.voNames=new Map,this.canBeSelected=function(t){return!("members"===t.name&&u.disableMembers||u.disableSelect(t))}}return _createClass(t,[{key:"matSort",set:function(t){this.sort=t}},{key:"shouldHideButtons",value:function(){this.displayButtons=window.innerWidth>800}},{key:"ngOnChanges",value:function(){this.disabledRouting=this.disableRouting,this.hasMembersGroup=this.checkIfHasMembersGroup(),this.updateVoNames(),this.setDataSource(),this.authType&&(this.removeAuth=this.setAuth())}},{key:"checkIfHasMembersGroup",value:function(){var t,e=_createForOfIteratorHelper(this.groups);try{for(e.s();!(t=e.n()).done;){if("members"===t.value.name)return!0}}catch(i){e.e(i)}finally{e.f()}return!1}},{key:"getDataForColumn",value:function(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return i.voNames.get(t.voId);case"name":return t.name;case"description":return t.description;case"expiration":var n=(0,c.x2)(t);return(0,c.sG)(n);case"recent":return"";case"status":return t.status;case"uuid":return t.uuid;default:return t[e]}}},{key:"getSortDataForColumn",value:function(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return i.voNames.get(t.voId);case"name":return t.name;case"description":return t.description;case"expiration":var n=(0,c.x2)(t);return n&&"never"!==n.toLowerCase()?(0,h.p6)(n,"yyyy.MM.dd","en"):n;case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;case"status":return t.status;default:return t[e]}}},{key:"exportData",value:function(t){(0,c.O6)((0,c.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource||(this.dataSource=new o.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=function(e,i){return(0,c.Sd)(e,i,t.displayedColumns,t.getDataForColumn,t,!0)},this.dataSource.sortData=function(e,i){return(0,c.pR)(e,i,t.getSortDataForColumn,t)}),this.dataSource.filter=this.filter,this.dataSource.data=this.groups}},{key:"isAllSelected",value:function(){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)}},{key:"masterToggle",value:function(){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())}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"disableSelect",value:function(t){return this.disableGroups&&(this.groupsToDisableCheckbox.has(t.id)||this.isSynchronized(t))}},{key:"ngAfterViewInit",value:function(){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(function(t){return"id"!==t}),this.changeDetector.detectChanges())}},{key:"onMoveGroup",value:function(t){this.moveGroup.emit(t)}},{key:"onSyncDetail",value:function(t){var e=(0,c.kZ)();e.data={groupId:t.id,theme:this.theme},this.dialog.open(u.Bp,e)}},{key:"onChangeNameDescription",value:function(t){var e=this,i=(0,c.kZ)();i.data={theme:"group-theme",group:t,dialogType:u.Eg.GROUP},this.dialog.open(u.rd,i).afterClosed().subscribe(function(t){t&&e.refreshTable.emit()})}},{key:"setAuth",value:function(){var t=this;return"group-subgroups"===this.authType?this.selection.selected.reduce(function(e,i){return e&&t.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[i])},!0):"group-relations"===this.authType?this.selection.selected.reduce(function(e,i){return e&&t.authResolver.isAuthorized("removeGroupUnion_Group_Group_policy",[t.parentGroup,i])},!0):"vo-groups"===this.authType?this.selection.selected.reduce(function(e,i){return e&&t.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[t.vo,i])},!0):"member-groups"===this.authType?this.selection.selected.reduce(function(e,i){return e&&t.authResolver.isAuthorized("removeMember_Member_List_policy",[i])},!0):"application-form-manage-groups"===this.authType?this.selection.selected.reduce(function(e,i){return e&&t.authResolver.isAuthorized("deleteGroupsFromAutoRegistration_List_policy",[t.vo,i])},!0):void 0}},{key:"itemSelectionToggle",value:function(t){this.selection.toggle(t),this.removeAuth=this.setAuth()}},{key:"isSynchronized",value:function(t){return!!t.attributes&&t.attributes.some(function(t){return"synchronizationEnabled"===t.friendlyName&&null!==t.value&&"true"===t.value.toString()})}},{key:"getCheckboxTooltipMessage",value:function(t){return"create-relation-dialog"===this.authType?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.CREATE_RELATION_AUTH_TOOLTIP":this.isSynchronized(t)?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.SYNCHRONIZED_GROUP":t.sourceGroupId?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.INDIRECT_GROUP":"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.ALREADY_MEMBER_TOOLTIP"}},{key:"updateVoNames",value:function(){var t=this;this.displayedColumns.includes("vo")&&(this.groups.forEach(function(e){t.voIds.has(e.voId)||t.voIds.add(e.voId)}),this.voIds.size>0&&this.voService.getVosByIds(_toConsumableArray(this.voIds)).subscribe(function(e){e.forEach(function(e){t.voNames.set(e.id,e.name)})}))}},{key:"changeExpiration",value:function(t){var e=this,i=t.attributes.find(function(t){return"groupMembershipExpiration"===t.baseFriendlyName}),n=(0,c.kZ)();n.width="400px",n.data={memberId:this.memberId,groupId:t.id,expirationAttr:i,mode:"group",status:this.memberGroupStatus},this.dialog.open(u.u3,n).afterClosed().subscribe(function(t){t&&e.refreshTable.emit()})}},{key:"canManageGroup",value:function(t){return this.authResolver.isThisGroupAdmin(t.id)||this.authResolver.isThisVoAdmin(t.voId)}},{key:"getStatusAttribute",value:function(t){return t.attributes.find(function(t){return"groupStatus"===t.baseFriendlyName}).value.toString()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(d.uw),n.Y36(l.x4),n.Y36(s.YF),n.Y36(l.UA),n.Y36(n.sBO))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-groups-list"]],viewQuery:function(t,e){var i;(1&t&&(n.Gf(r.YE,7),n.Gf(c.l9,7)),2&t)&&(n.iGM(i=n.CRH())&&(e.matSort=i.first),n.iGM(i=n.CRH())&&(e.child=i.first))},hostBindings:function(t,e){1&t&&n.NdJ("resize",function(t){return e.shouldHideButtons(t)},!1,n.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"},outputs:{moveGroup:"moveGroup",refreshTable:"refreshTable"},features:[n.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","routerLink",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","routerLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,x,2,1,"th",4),n.YNc(5,O,4,9,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,P,3,3,"th",7),n.YNc(8,D,2,1,"td",8),n.BQk(),n.ynx(9,9),n.YNc(10,M,1,0,"th",10),n.YNc(11,L,2,2,"td",11),n.BQk(),n.ynx(12,12),n.YNc(13,N,3,3,"th",7),n.YNc(14,z,2,1,"td",8),n.BQk(),n.ynx(15,13),n.YNc(16,Z,1,0,"th",10),n.YNc(17,q,3,2,"td",11),n.BQk(),n.ynx(18,14),n.YNc(19,H,3,3,"th",7),n.YNc(20,U,2,1,"td",11),n.BQk(),n.ynx(21,15),n.YNc(22,G,3,3,"th",7),n.YNc(23,j,2,5,"td",16),n.BQk(),n.ynx(24,17),n.YNc(25,Y,3,3,"th",7),n.YNc(26,K,6,9,"td",11),n.BQk(),n.ynx(27,18),n.YNc(28,V,3,3,"th",7),n.YNc(29,J,2,1,"td",16),n.BQk(),n.ynx(30,19),n.YNc(31,Q,3,3,"th",7),n.YNc(32,X,5,6,"td",16),n.BQk(),n.ynx(33,20),n.YNc(34,$,1,0,"th",10),n.YNc(35,tt,2,3,"td",11),n.BQk(),n.YNc(36,et,1,0,"tr",21),n.YNc(37,nt,1,12,"tr",22),n.qZA(),n.qZA(),n.qZA(),n.YNc(38,rt,3,3,"app-alert",23),n.YNc(39,ot,3,3,"app-alert",23)),2&t&&(n.Q6J("hidden",0===e.groups.length||!e.dataSource||0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("tableId",e.tableId),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(34),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.groups.length),n.xp6(1),n.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.groups.length))},directives:[f.l,o.BZ,r.YE,o.w1,o.fO,o.Dz,o.as,o.nj,h.O5,o.ge,p.oG,o.ev,g.gM,r.nU,m.W,v.Hw,y.x,_.lW,b.i,o.XQ,o.Gk,w.YH,A.rH,k.w],pipes:[C.X$,T.u,E.f,S.M,I],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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t}()},11441:function(t,e,i){"use strict";i.d(e,{I:function(){return O}});var n=i(31572),r=i(91010),o=i(71709),a=i(4230),s=i(14732),c=i(84140),u=i(6527),l=i(68416),h=i(84608),d=i(61511),f=i(4253),p=i(57629),g=i(15980),m=i(36922),v=i(54930),y=i(29236),_=i(43691),b=i(39571),w=i(48160),A=["scrollViewport"];function k(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-checkbox",19),n.NdJ("change",function(){n.CHM(i);var t=n.oxw().$implicit;return n.oxw(2).itemSelectionToggle(t)}),n.qZA()}if(2&t){var r=n.oxw().$implicit,o=n.oxw(2);n.Q2q("data-cy","",r.name,"-checkbox"),n.Q6J("disabled","members"===r.fullName)("checked",o.selection.isSelected(r))("indeterminate",o.descendantsPartiallySelected(r))}}function C(t,e){if(1&t&&(n.TgZ(0,"mat-icon",20),n._uU(1),n.qZA()),2&t){var i=n.oxw().$implicit,r=n.oxw(2);n.xp6(1),n.hij(" ",r.treeControl.isExpanded(i)?"expand_more":"chevron_right"," ")}}function T(t,e){if(1&t&&(n.TgZ(0,"span",21),n._uU(1),n.qZA()),2&t){var i=n.oxw().$implicit;n.xp6(1),n.hij(" #",i.id," ")}}var E=function(t,e){return["/organizations",t,"groups",e]};function S(t,e){if(1&t){var i=n.EpF();n.ynx(0),n.TgZ(1,"div",6),n.YNc(2,k,1,4,"mat-checkbox",7),n.TgZ(3,"a",8),n.TgZ(4,"button",9),n.NdJ("mouseenter",function(){return n.CHM(i),n.oxw(2).disableRouting=!0})("mouseleave",function(){return n.CHM(i),n.oxw(2).disableRouting=!1})("click",function(){var t=n.CHM(i).$implicit;return n.oxw(2).treeControl.toggle(t)}),n.YNc(5,C,2,1,"mat-icon",10),n.qZA(),n.TgZ(6,"div",11),n.TgZ(7,"span",12),n._uU(8),n.qZA(),n.YNc(9,T,2,1,"span",13),n.qZA(),n.TgZ(10,"div",14,15),n.TgZ(12,"span",16),n._uU(13),n.qZA(),n.qZA(),n.qZA(),n.TgZ(14,"div",17),n.TgZ(15,"perun-web-apps-group-menu",18),n.NdJ("moveGroup",function(){var t=n.CHM(i).$implicit;return n.oxw(2).onMoveGroup(t)})("syncGroup",function(){var t=n.CHM(i).$implicit;return n.oxw(2).onSyncDetail(t)})("changeNameDescription",function(){var t=n.CHM(i).$implicit;return n.oxw(2).onChangeNameDescription(t)}),n.qZA(),n.qZA(),n.qZA(),n.BQk()}if(2&t){var r=e.$implicit,o=n.oxw(2);n.xp6(1),n.Udp("padding-left",24*r.level+"px"),n.xp6(1),n.Q6J("ngIf",!o.hideCheckbox),n.xp6(1),n.Q6J("routerLink",o.disableRouting?null:n.WLB(14,E,r.voId,r.id)),n.xp6(1),n.Q6J("disabled",!r.expandable),n.uIk("aria-label","toggle "+r.name),n.xp6(1),n.Q6J("ngIf",r.expandable),n.xp6(3),n.hij(" ",r.name," "),n.xp6(1),n.Q6J("ngIf",o.authResolver.isPerunAdminOrObserver()),n.xp6(3),n.s9C("matTooltip",r.description),n.xp6(1),n.hij(" ",r.description," "),n.xp6(2),n.Q6J("disabled","members"===r.fullName)("displayButtons",o.displayButtons)("group",r)}}var I=function(t){return{height:t}};function R(t,e){if(1&t&&(n.TgZ(0,"div",2),n.TgZ(1,"cdk-virtual-scroll-viewport",3,4),n.YNc(3,S,16,17,"ng-container",5),n.qZA(),n.qZA()),2&t){var i=n.oxw();n.xp6(1),n.Q6J("minBufferPx",240)("maxBufferPx",480)("ngStyle",n.VKq(4,I,i.getTreeViewHeight())),n.xp6(2),n.Q6J("cdkVirtualForOf",i.dataSource)}}function x(t,e){1&t&&(n.TgZ(0,"app-alert",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}var O=function(){var t=function(){function t(e,i,s){_classCallCheck(this,t),this.cd=e,this.dialog=i,this.authResolver=s,this.transformer=function(t,e){return{expandable:!!t.children&&t.children.length>0,name:t.shortName,fullName:t.name,parentGroupId:t.parentGroupId,level:e,id:t.id,voId:t.voId,attributes:t.attributes,beanName:t.beanName,description:t.description}},this.displayButtons=window.innerWidth>600,this.theme="group-theme",this.moveGroup=new n.vpe,this.refreshTable=new n.vpe,this.expandAll=!1,this.disableRouting=!1,this.selection=new a.Ov(!0,[]),this.hideCheckbox=!1,this.treeControl=new o.C2(function(t){return t.level},function(t){return t.expandable}),this.treeFlattener=new r.JZ(this.transformer,function(t){return t.level},function(t){return t.expandable},function(t){return t.children}),this.dataSource=new r.kc(this.treeControl,this.treeFlattener),this.hasChild=function(t,e){return e.expandable},this.getLevel=function(t){return t.level}}return _createClass(t,[{key:"shouldHideButtons",value:function(){this.displayButtons=window.innerWidth>600}},{key:"ngOnChanges",value:function(){var t=this;if(this.expandAll){this.filteredGroups=this.groups.filter(function(e){var i,n;return(null===(i=e.name)||void 0===i?void 0:i.toLowerCase().includes(t.filterValue.toLowerCase()))||(null===(n=e.description)||void 0===n?void 0:n.toLowerCase().includes(t.filterValue.toLowerCase()))||e.id.toString().includes(t.filterValue.toLowerCase())||e.uuid.toLowerCase().includes(t.filterValue.toLowerCase())});var e,i=_createForOfIteratorHelper(this.filteredGroups);try{for(i.s();!(e=i.n()).done;){var n=e.value;n.parentGroupId&&(this.filteredGroups=this.filteredGroups.concat((0,c.oU)(n.parentGroupId,this.groups)))}}catch(r){i.e(r)}finally{i.f()}}else this.filteredGroups=this.groups;this.createGroupTrees(this.filteredGroups),this.expandAll&&this.treeControl.expandAll(),this.removeAuth=this.setRemoveAuth()}},{key:"onSyncDetail",value:function(t){var e=(0,c.kZ)();e.data={groupId:t.id,theme:this.theme},this.dialog.open(u.Bp,e)}},{key:"onChangeNameDescription",value:function(t){var e=this,i=(0,c.kZ)();i.data={theme:"group-theme",group:t,dialogType:u.Eg.GROUP},this.dialog.open(u.rd,i).afterClosed().subscribe(function(t){t&&e.refreshTable.emit()})}},{key:"createGroupTrees",value:function(t){var e,i=new Map,n=_createForOfIteratorHelper(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;i.set(r.id,new s.m(r))}}catch(c){n.e(c)}finally{n.f()}var o=new Set;i.forEach(function(t,e,i){var n=i.get(t.parentGroupId);void 0!==n&&(n.addChild(t),i.set(t.parentGroupId,n)),null!==t.parentGroupId&&void 0===n&&o.add(t.id)});var a=[];i.forEach(function(t){(null===t.parentGroupId||o.has(t.id))&&a.push(t)}),this.dataSource.data=a,this.cd.detectChanges()}},{key:"getParentNode",value:function(t){var e=this.getLevel(t);if(e<1)return null;for(var i=this.treeControl.dataNodes.indexOf(t)-1;i>=0;i--){var n=this.treeControl.dataNodes[i];if(this.getLevel(n)_boolean_policy",[t.vo,i])}:function(e,i){return e&&t.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[i])},!0)}},{key:"onMoveGroup",value:function(t){this.moveGroup.emit(t)}},{key:"getTreeViewHeight",value:function(){var t=0;this.scrollViewport&&(t=this.scrollViewport.getDataLength());var e=48*t;return e>672&&(e=696),this.scrollViewport&&this.scrollViewport.checkViewportSize(),e+"px"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO),n.Y36(h.uw),n.Y36(l.x4))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-groups-tree"]],viewQuery:function(t,e){var i;(1&t&&n.Gf(A,5),2&t)&&(n.iGM(i=n.CRH())&&(e.scrollViewport=i.first))},hostBindings:function(t,e){1&t&&n.NdJ("resize",function(t){return e.shouldHideButtons(t)},!1,n.Jf7)},inputs:{theme:"theme",groups:"groups",filterValue:"filterValue",expandAll:"expandAll",disableRouting:"disableRouting",selection:"selection",hideCheckbox:"hideCheckbox",vo:"vo"},outputs:{moveGroup:"moveGroup",refreshTable:"refreshTable"},features:[n.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(t,e){1&t&&(n.YNc(0,R,4,6,"div",0),n.YNc(1,x,3,3,"app-alert",1)),2&t&&(n.Q6J("ngIf",0!==e.filteredGroups.length),n.xp6(1),n.Q6J("ngIf",0===e.filteredGroups.length))},directives:[d.O5,f.N7,f.xd,d.PC,f.x0,p.yS,g.lW,m.gM,v.i,y.oG,_.Hw,b.w],pipes:[w.X$],styles:[".group-tree-node[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}.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:rgba(0,0,0,.05)}.text-format[_ngcontent-%COMP%]{text-decoration:none;color:#000;font-weight:400!important}"]}),t}()},66438:function(t,e,i){"use strict";i.d(e,{X:function(){return g}});var n=i(65249),r=i(68416),o=i(31572),a=i(48160),s=i(61511),c=i(8055),u=i(15980),l=i(43691),h=i(36922),d=function(t){return{color:t}};function f(t,e){if(1&t&&(o.TgZ(0,"button",8),o.ALo(1,"translate"),o.TgZ(2,"mat-icon",4),o._uU(3," apps "),o.qZA(),o.qZA()),2&t){var i=o.oxw(),n=o.MAs(2);o.Q6J("matMenuTriggerFor",n)("matTooltip",o.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),o.xp6(2),o.Q6J("ngStyle",o.VKq(5,d,i.iconColor))}}function p(t,e){if(1&t){var i=o.EpF();o.TgZ(0,"button",2),o.NdJ("click",function(){return o.CHM(i),o.oxw().onLogOut()}),o._uU(1),o.ALo(2,"translate"),o.qZA()}2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"NAV.LOGOUT")))}var g=function(){var t=function(){function t(e,i,n,r){_classCallCheck(this,t),this.authService=e,this.authzResolverService=i,this.notificator=n,this.translateService=r}return _createClass(t,[{key:"redirectToUrl",value:function(){window.open(this.url,"_blank")}},{key:"onLogOut",value:function(){this.authService.logout()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Y36(r.e8),o.Y36(n.Ct),o.Y36(r.V6),o.Y36(a.sK))},t.\u0275cmp=o.Xpm({type:t,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:14,vars:15,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],[1,"d-none","d-lg-inline",3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"]],template:function(t,e){if(1&t&&(o.YNc(0,f,4,7,"button",0),o.TgZ(1,"mat-menu",null,1),o.TgZ(3,"button",2),o.NdJ("click",function(){return e.redirectToUrl()}),o.TgZ(4,"span"),o._uU(5),o.qZA(),o.qZA(),o.qZA(),o.TgZ(6,"button",3),o.TgZ(7,"mat-icon",4),o._uU(8," person "),o.qZA(),o.TgZ(9,"span",5),o._uU(10),o.qZA(),o.qZA(),o.TgZ(11,"mat-menu",null,6),o.YNc(13,p,3,3,"button",7),o.qZA()),2&t){var i=o.MAs(12);o.Q6J("ngIf",e.url),o.xp6(5),o.Oqu(e.label),o.xp6(1),o.Q6J("matMenuTriggerFor",i),o.xp6(1),o.Q6J("ngStyle",o.VKq(11,d,e.iconColor)),o.xp6(2),o.Q6J("ngStyle",o.VKq(13,d,e.textColor)),o.xp6(1),o.xDo(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," "),o.xp6(3),o.Q6J("ngIf",e.logoutEnabled)}},directives:[s.O5,c.VK,c.OP,u.lW,c.p6,l.Hw,s.PC,h.gM],pipes:[a.X$],styles:["@media (max-width:991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),t}()},19139:function(t,e,i){"use strict";i.d(e,{L:function(){return d}});var n=i(31572),r=i(16073),o=i(66283),a=i(61511),s=i(80340),c=i(84534),u=i(48160);function l(t,e){if(1&t&&(n._UZ(0,"input",3),n.ALo(1,"translate")),2&t){var i=n.oxw();n.s9C("placeholder",n.lcZ(1,2,i.placeholder)),n.Q6J("formControl",i.formControl)}}function h(t,e){if(1&t&&(n._UZ(0,"input",4),n.ALo(1,"translate")),2&t){var i=n.oxw();n.s9C("placeholder",n.lcZ(1,2,i.placeholder)),n.Q6J("formControl",i.formControl)}}var d=function(){var t=function(){function t(){_classCallCheck(this,t),this.filter=new n.vpe,this.autoFocus=!1,this.formControl=new r.NI}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.formControl.valueChanges.subscribe(function(e){var i=e.trim();i=i.toLowerCase(),t.filter.emit(i)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,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","",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n.YNc(1,l,2,4,"input",1),n.YNc(2,h,2,4,"input",2),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf",e.autoFocus),n.xp6(1),n.Q6J("ngIf",!e.autoFocus))},directives:[o.KE,a.O5,s.Nt,r.Fj,c.hT,r.JJ,r.oH],pipes:[u.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:auto!important}"]}),t}()},91779:function(t,e,i){"use strict";i.d(e,{m:function(){return tt}});var n=i(58623),r=i(84140),o=i(6527),a=i(68416),s=i(31906),c=i(66599),u=i(31572),l=i(84608),h=i(60611),d=i(82819),f=i(61511),p=i(67033),g=i(67806),m=i(29236),v=i(43691),y=i(36922),_=i(84534),b=i(57629),w=i(39571),A=i(48160),k=i(22196),C=i(74842),T=i(91322),E=i(37043),S=i(99197),I=i(63720),R=i(1157);function x(t,e){1&t&&(u.TgZ(0,"div",22),u._UZ(1,"mat-spinner",23),u.qZA())}function O(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"th",24),u.TgZ(1,"mat-checkbox",25),u.NdJ("change",function(t){u.CHM(i);var e=u.oxw();return t?e.masterToggle():null}),u.qZA(),u.qZA()}if(2&t){var n=u.oxw();u.xp6(1),u.Q6J("aria-label",n.checkboxLabel())("checked",n.selection.hasValue()&&n.isAllSelected())("indeterminate",n.selection.hasValue()&&!n.isAllSelected())}}function P(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"td",26),u.TgZ(1,"mat-checkbox",27),u.NdJ("change",function(t){var e=u.CHM(i).$implicit,n=u.oxw();return t?n.selection.toggle(e):null})("click",function(t){return t.stopPropagation()}),u.ALo(2,"lowercase"),u.qZA(),u.qZA()}if(2&t){var n=e.$implicit,r=u.oxw();u.xp6(1),u.Q2q("data-cy","",u.lcZ(2,3,n.user.firstName),"-checkbox"),u.Q6J("aria-label",r.checkboxLabel(n))("checked",r.selection.isSelected(n))}}function D(t,e){1&t&&(u.TgZ(0,"th",28),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"MEMBERS_LIST.ID")))}function M(t,e){if(1&t&&(u.TgZ(0,"td",29),u._uU(1),u.qZA()),2&t){var i=e.$implicit;u.xp6(1),u.Oqu(i.id)}}function L(t,e){1&t&&u._UZ(0,"th",28)}function N(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"mat-icon",32),u.NdJ("click",function(t){u.CHM(i);var e=u.oxw().$implicit;return u.oxw().viewMemberGroupTree(t,e)}),u.ALo(1,"translate"),u._uU(2,"transfer_within_a_station"),u.qZA()}2&t&&u.Q6J("matTooltip",u.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function z(t,e){if(1&t&&(u.TgZ(0,"td",30),u.YNc(1,N,3,3,"mat-icon",31),u.qZA()),2&t){var i=e.$implicit;u.xp6(1),u.Q6J("ngIf","DIRECT"!==i.membershipType)}}function Z(t,e){1&t&&(u.TgZ(0,"th",28),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"MEMBERS_LIST.NAME")))}function B(t,e){if(1&t&&(u.TgZ(0,"td",30),u._uU(1),u.ALo(2,"userFullName"),u.qZA()),2&t){var i=e.$implicit;u.xp6(1),u.Oqu(u.lcZ(2,1,i.user))}}function F(t,e){1&t&&(u.TgZ(0,"th",33),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"MEMBERS_LIST.STATUS")))}function q(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"td",30),u.TgZ(1,"i",34),u.NdJ("click",function(t){var e=u.CHM(i).$implicit;return u.oxw().changeStatus(t,e)}),u.ALo(2,"memberStatusIconColor"),u.ALo(3,"memberStatusTooltip"),u.TgZ(4,"span"),u._uU(5),u.ALo(6,"memberStatusIcon"),u.qZA(),u.qZA(),u.qZA()}if(2&t){var n=e.$implicit;u.xp6(1),u.Gre("material-icons ",u.lcZ(2,5,n.status),""),u.s9C("matTooltip",u.xi3(3,7,n,!1)),u.xp6(4),u.hij(" ",u.lcZ(6,10,n.status)," ")}}function H(t,e){1&t&&(u.TgZ(0,"th",33),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")))}function U(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"td",30),u.TgZ(1,"i",34),u.NdJ("click",function(t){var e=u.CHM(i).$implicit,n=u.oxw();return n.changeStatus(t,e,n.groupId)}),u.ALo(2,"memberStatusIconColor"),u.ALo(3,"memberStatusTooltip"),u.TgZ(4,"span"),u._uU(5),u.ALo(6,"memberStatusIcon"),u.qZA(),u.qZA(),u.qZA()}if(2&t){var n=e.$implicit;u.xp6(1),u.Gre("material-icons ",u.lcZ(2,5,n.groupStatus),""),u.s9C("matTooltip",u.xi3(3,7,n,!0)),u.xp6(4),u.hij(" ",u.lcZ(6,10,n.groupStatus)," ")}}function G(t,e){1&t&&(u.TgZ(0,"th",33),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")))}function j(t,e){if(1&t&&(u.TgZ(0,"td",30),u._uU(1),u.ALo(2,"memberOrganization"),u.qZA()),2&t){var i=e.$implicit;u.xp6(1),u.Oqu(u.lcZ(2,1,i))}}function Y(t,e){1&t&&(u.TgZ(0,"th",33),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"MEMBERS_LIST.EMAIL")))}function K(t,e){if(1&t&&(u.TgZ(0,"td",30),u._uU(1),u.ALo(2,"memberEmail"),u.qZA()),2&t){var i=e.$implicit;u.xp6(1),u.Oqu(u.lcZ(2,1,i))}}function V(t,e){1&t&&(u.TgZ(0,"th",33),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function J(t,e){if(1&t&&(u.TgZ(0,"td",30),u._uU(1),u.ALo(2,"memberLogins"),u.qZA()),2&t){var i=e.$implicit;u.xp6(1),u.Oqu(u.lcZ(2,1,i))}}function Q(t,e){1&t&&u._UZ(0,"tr",35)}var W=function(t,e){return["/organizations",t,"members",e]};function X(t,e){if(1&t&&u._UZ(0,"tr",36),2&t){var i=e.$implicit,n=u.oxw();u.ekj("cursor-pointer",n.dataSource.routeAuth)("italic_font","INDIRECT"===i.membershipType)("disable-outline",!n.dataSource.routeAuth),u.Q6J("perunWebAppsMiddleClickRouterLink",n.dataSource.routeAuth?u.WLB(8,W,i.voId,i.id):null)("routerLink",n.dataSource.routeAuth?u.WLB(11,W,i.voId,i.id):null)}}function $(t,e){1&t&&(u.TgZ(0,"app-alert",37),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}var tt=function(){var t=function(){function t(e,i,n,o,a){_classCallCheck(this,t),this.dialog=e,this.authResolver=i,this.tableCheckbox=n,this.tableConfigService=o,this.dynamicPaginatingService=a,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.selectedGroupStatuses=[],this.pageSizeOptions=r.f7}return _createClass(t,[{key:"ngAfterViewInit",value:function(){var t=this;this.sort.sortChange.subscribe(function(){return t.child.paginator.pageIndex=0}),(0,s.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,c.b)(function(){return t.loadMembersPage()})).subscribe()}},{key:"ngOnInit",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.dataSource=new a.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)}},{key:"ngOnChanges",value:function(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadMembersPage())}},{key:"masterToggle",value:function(){var t=this;this.isAllSelected()?this.selection.clear():this.dataSource.getData().forEach(function(e){return t.selection.select(e)})}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.child.paginator.pageSize}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"changeStatus",value:function(t,e,i){var n=this;t.stopPropagation();var a=(0,r.kZ)();a.width="500px",a.data={member:e,voId:this.voId,groupId:i};var s=i?e.groupStatus:e.status;this.dialog.open(o.pf,a).afterClosed().subscribe(function(t){if(t){var r=i?t.groupStatus:t.status;"VALID"===s&&("EXPIRED"===r||"DISABLED"===r)||"VALID"===r?(i?e.groupStatus=r:e.status=r,n.changeExpiration(e,i)):n.loadMembersPage()}})}},{key:"changeExpiration",value:function(t,e){var i=this,n=t.memberAttributes.find(e?function(t){return"groupMembershipExpiration"===t.friendlyName}:function(t){return"membershipExpiration"===t.friendlyName}),a=(0,r.kZ)();a.width="400px",a.data={voId:this.voId,groupId:e,memberId:t.id,expirationAttr:n,status:e?t.groupStatus:t.status,statusChanged:!0},this.dialog.open(e?o.u3:o.kZ,a).afterClosed().subscribe(function(){i.loadMembersPage()})}},{key:"loadMembersPage",value:function(){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)}},{key:"exportData",value:function(t){(0,r.O6)((0,r.Xn)(this.dataSource.getData(),this.displayedColumns,this.getExportDataForColumn,this),t)}},{key:"getExportDataForColumn",value:function(t,e){switch(e){case"id":return t.id.toString();case"fullName":return t.user?(0,r.bD)(t.user):"";case"status":return t.status;case"groupStatus":return t.groupStatus;case"organization":return(0,r.Gw)(t);case"email":return(0,r.g$)(t);case"logins":return(0,r.lt)(t);default:return""}}},{key:"viewMemberGroupTree",value:function(t,e){t.stopPropagation();var i=(0,r.kZ)();i.width="800px",i.data={member:e,groupId:this.groupId},this.dialog.open(o.jd,i)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Y36(l.uw),u.Y36(a.x4),u.Y36(a.UA),u.Y36(h.dB),u.Y36(a.ly))},t.\u0275cmp=u.Xpm({type:t,selectors:[["perun-web-apps-members-dynamic-list"]],viewQuery:function(t,e){var i;(1&t&&(u.Gf(r.l9,7),u.Gf(n.YE,5)),2&t)&&(u.iGM(i=u.CRH())&&(e.child=i.first),u.iGM(i=u.CRH())&&(e.sort=i.first))},inputs:{selection:"selection",displayedColumns:"displayedColumns",voId:"voId",groupId:"groupId",selectedGroupStatuses:"selectedGroupStatuses",attrNames:"attrNames",searchString:"searchString",selectedStatuses:"selectedStatuses",tableId:"tableId",updateTable:"updateTable"},features:[u.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","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(t,e){1&t&&(u.TgZ(0,"div",0),u.ALo(1,"async"),u.TgZ(2,"perun-web-apps-table-wrapper",1),u.NdJ("exportData",function(t){return e.exportData(t)}),u.YNc(3,x,2,0,"div",2),u.ALo(4,"async"),u.TgZ(5,"table",3),u.ynx(6,4),u.YNc(7,O,2,3,"th",5),u.YNc(8,P,3,5,"td",6),u.BQk(),u.ynx(9,7),u.YNc(10,D,3,3,"th",8),u.YNc(11,M,2,1,"td",9),u.BQk(),u.ynx(12,10),u.YNc(13,L,1,0,"th",8),u.YNc(14,z,2,1,"td",11),u.BQk(),u.ynx(15,12),u.YNc(16,Z,3,3,"th",8),u.YNc(17,B,3,3,"td",11),u.BQk(),u.ynx(18,13),u.YNc(19,F,3,3,"th",14),u.YNc(20,q,7,12,"td",11),u.BQk(),u.ynx(21,15),u.YNc(22,H,3,3,"th",14),u.YNc(23,U,7,12,"td",11),u.BQk(),u.ynx(24,16),u.YNc(25,G,3,3,"th",14),u.YNc(26,j,3,3,"td",11),u.BQk(),u.ynx(27,17),u.YNc(28,Y,3,3,"th",14),u.YNc(29,K,3,3,"td",11),u.BQk(),u.ynx(30,18),u.YNc(31,V,3,3,"th",14),u.YNc(32,J,3,3,"td",11),u.BQk(),u.YNc(33,Q,1,0,"tr",19),u.YNc(34,X,1,14,"tr",20),u.qZA(),u.qZA(),u.qZA(),u.YNc(35,$,3,3,"app-alert",21),u.ALo(36,"async")),2&t&&(u.Q6J("hidden",0===e.dataSource.allObjectCount&&!1===u.lcZ(1,9,e.dataSource.loading$)),u.xp6(2),u.Q6J("tableId",e.tableId)("dataLength",e.dataSource.allObjectCount)("pageSizeOptions",e.pageSizeOptions),u.xp6(1),u.Q6J("ngIf",u.lcZ(4,11,e.dataSource.loading$)),u.xp6(2),u.Q6J("dataSource",e.dataSource),u.xp6(28),u.Q6J("matHeaderRowDef",e.displayedColumns),u.xp6(1),u.Q6J("matRowDefColumns",e.displayedColumns),u.xp6(1),u.Q6J("ngIf",0===e.dataSource.allObjectCount&&!1===u.lcZ(36,13,e.dataSource.loading$)))},directives:[d.l,f.O5,p.BZ,n.YE,p.w1,p.fO,p.Dz,p.as,p.nj,g.$g,p.ge,m.oG,p.ev,n.nU,v.Hw,y.gM,p.XQ,p.Gk,_.YH,b.rH,w.w],pipes:[f.Ov,f.i8,A.X$,k.d,C.u,T.i,E.f,S.M,I.D,R.p],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;top:0;left:0;bottom:56px;right:0;background:rgba(0,0,0,.15);z-index:1;display:flex;align-items:center;justify-content:center}.italic_font[_ngcontent-%COMP%]{font-style:italic}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t}()},4252:function(t,e,i){"use strict";i.d(e,{O:function(){return tt}});var n=i(31572),r=i(58623),o=i(67033),a=i(4230),s=i(84140),c=i(6527),u=i(68416),l=i(84608),h=i(57629),d=i(82819),f=i(61511),p=i(29236),g=i(36922),m=i(43691),v=i(84534),y=i(39571),_=i(48160),b=i(22196),w=i(74842),A=i(91322),k=i(37043),C=i(99197),T=i(63720),E=i(1157);function S(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"th",24),n.TgZ(1,"mat-checkbox",25),n.NdJ("change",function(t){n.CHM(i);var e=n.oxw();return t?e.masterToggle():null}),n.qZA(),n.qZA()}if(2&t){var r=n.oxw();n.xp6(1),n.Q6J("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())}}function I(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",26),n.TgZ(1,"mat-checkbox",27),n.NdJ("change",function(t){var e=n.CHM(i).$implicit,r=n.oxw();return t?r.selection.toggle(e):null})("click",function(t){return t.stopPropagation()}),n.ALo(2,"translate"),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("aria-label",o.checkboxLabel(r))("checked",o.selection.isSelected(r))("disabled","DIRECT"!==r.membershipType)("matTooltip","DIRECT"!==r.membershipType?n.lcZ(2,4,"MEMBERS_LIST.CHECKBOX_TOOLTIP"):"")}}function R(t,e){1&t&&(n.TgZ(0,"th",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.ID")))}function x(t,e){if(1&t&&(n.TgZ(0,"td",29),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.id)}}function O(t,e){1&t&&n._UZ(0,"th",28)}function P(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-icon",32),n.NdJ("click",function(){n.CHM(i);var t=n.oxw().$implicit;return n.oxw().viewMemberGroupTree(t)})("mouseenter",function(){return n.CHM(i),n.oxw(2).disableRouting=!0})("mouseleave",function(){n.CHM(i);var t=n.oxw(2);return t.disableRouting=t.disabledRouting}),n.ALo(1,"translate"),n._uU(2,"transfer_within_a_station"),n.qZA()}2&t&&n.Q6J("matTooltip",n.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function D(t,e){if(1&t&&(n.TgZ(0,"td",30),n.YNc(1,P,3,3,"mat-icon",31),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Q6J("ngIf","DIRECT"!==i.membershipType)}}function M(t,e){1&t&&(n.TgZ(0,"th",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.NAME")))}function L(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.ALo(2,"userFullName"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i.user))}}function N(t,e){1&t&&(n.TgZ(0,"th",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.STATUS")))}function z(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",30),n.TgZ(1,"i",33),n.NdJ("click",function(t){var e=n.CHM(i).$implicit;return n.oxw().changeStatus(t,e)}),n.ALo(2,"memberStatusIconColor"),n.ALo(3,"memberStatusTooltip"),n.TgZ(4,"span"),n._uU(5),n.ALo(6,"memberStatusIcon"),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit;n.xp6(1),n.Gre("material-icons ",n.lcZ(2,5,r.status),""),n.s9C("matTooltip",n.xi3(3,7,r,!1)),n.xp6(4),n.hij(" ",n.lcZ(6,10,r.status)," ")}}function Z(t,e){1&t&&(n.TgZ(0,"th",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")))}function B(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",30),n.TgZ(1,"i",33),n.NdJ("click",function(t){var e=n.CHM(i).$implicit;return n.oxw().changeStatus(t,e)}),n.ALo(2,"memberStatusIconColor"),n.ALo(3,"memberStatusTooltip"),n.TgZ(4,"span"),n._uU(5),n.ALo(6,"memberStatusIcon"),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit;n.xp6(1),n.Gre("material-icons ",n.lcZ(2,5,r.groupStatus),""),n.s9C("matTooltip",n.xi3(3,7,r,!0)),n.xp6(4),n.hij(" ",n.lcZ(6,10,r.groupStatus)," ")}}function F(t,e){1&t&&(n.TgZ(0,"th",34),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.ALREADY_SPONSORED")))}function q(t,e){1&t&&(n.TgZ(0,"mat-icon"),n._uU(1,"check_circle_outline"),n.qZA())}function H(t,e){if(1&t&&(n.TgZ(0,"td",35),n.YNc(1,q,2,0,"mat-icon",36),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Q6J("ngIf",i.sponsored)}}function U(t,e){1&t&&(n.TgZ(0,"th",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")))}function G(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.ALo(2,"memberOrganization"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i))}}function j(t,e){1&t&&(n.TgZ(0,"th",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.EMAIL")))}function Y(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.ALo(2,"memberEmail"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i))}}function K(t,e){1&t&&(n.TgZ(0,"th",37),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function V(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.ALo(2,"memberLogins"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i))}}function J(t,e){1&t&&n._UZ(0,"tr",38)}var Q=function(t,e){return["/organizations",t,"members",e]};function W(t,e){if(1&t&&n._UZ(0,"tr",39),2&t){var i=e.$implicit,r=n.oxw();n.ekj("cursor-pointer",!r.disabledRouting)("disable-outline",r.disableRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",r.disableRouting?null:n.WLB(6,Q,i.voId,i.id))("routerLink",r.disableRouting?null:n.WLB(9,Q,i.voId,i.id))}}function X(t,e){1&t&&(n.TgZ(0,"app-alert",40),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function $(t,e){1&t&&(n.TgZ(0,"app-alert",40),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}var tt=function(){var t=function(){function t(e,i,r,o){_classCallCheck(this,t),this.dialog=e,this.authResolver=i,this.tableCheckbox=r,this.route=o,this.selection=new a.Ov,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","sponsored","organization","email","logins"],this.disableRouting=!1,this.filter="",this.updateTable=new n.vpe,this.pageSizeOptions=s.f7,this.canBeSelected=function(t){return"DIRECT"===t.membershipType}}return _createClass(t,[{key:"matSort",set:function(t){this.sort=t}},{key:"getSortDataForColumn",value:function(t,e,i){var n;switch(e){case"id":return t.id.toString();case"fullName":return t.user?t.user.lastName?t.user.lastName:null!==(n=t.user.firstName)&&void 0!==n?n:"":"";case"status":return i.showGroupStatuses?t.groupStatus:t.status;case"organization":return(0,s.Gw)(t);case"email":return(0,s.g$)(t);default:return""}}},{key:"getFilterDataForColumn",value:function(t,e){switch(e){case"fullName":return t.user?(0,s.bD)(t.user):"";case"email":return(0,s.g$)(t);case"logins":return(0,s.lt)(t);default:return""}}},{key:"getExportDataForColumn",value:function(t,e,i){switch(e){case"id":return t.id.toString();case"fullName":return t.user?(0,s.bD)(t.user):"";case"status":return i.showGroupStatuses?t.groupStatus:t.status;case"organization":return(0,s.Gw)(t);case"email":return(0,s.g$)(t);case"logins":return(0,s.lt)(t);default:return""}}},{key:"exportData",value:function(t){(0,s.O6)((0,s.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource||(this.dataSource=new o.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=function(e,i){return(0,s.Sd)(e,i,t.displayedColumns,t.getFilterDataForColumn,t)},this.dataSource.sortData=function(e,i){return(0,s.pR)(e,i,t.getSortDataForColumn,t)}),this.dataSource.filter=this.filter,this.dataSource.data=this.members}},{key:"ngAfterViewInit",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t}))}},{key:"ngOnChanges",value:function(){var t,e=this;this.setDataSource(),this.disabledRouting=this.disableRouting,null===(t=this.route.parent)||void 0===t||t.params.subscribe(function(t){t.groupId&&(e.groupId=t.groupId)})}},{key:"isAllSelected",value:function(){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)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"changeStatus",value:function(t,e){var i=this;if(t.stopPropagation(),"INVALID"===e.status){var n=(0,s.kZ)();n.width="500px",n.data={member:e},this.dialog.open(c.pf,n).afterClosed().subscribe(function(t){t&&i.updateTable.emit(!0)})}}},{key:"viewMemberGroupTree",value:function(t){var e=(0,s.kZ)();e.width="800px",e.data={member:t,groupId:this.groupId},this.dialog.open(c.jd,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(l.uw),n.Y36(u.x4),n.Y36(u.UA),n.Y36(h.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-members-list"]],viewQuery:function(t,e){var i;(1&t&&(n.Gf(r.YE,7),n.Gf(s.l9,7)),2&t)&&(n.iGM(i=n.CRH())&&(e.matSort=i.first),n.iGM(i=n.CRH())&&(e.child=i.first))},inputs:{showGroupStatuses:"showGroupStatuses",members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",disableRouting:"disableRouting",filter:"filter"},outputs:{updateTable:"updateTable"},features:[n.TTD],decls:37,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","type"],["mat-cell","",4,"matCellDef"],["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(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,S,2,3,"th",4),n.YNc(5,I,3,6,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,R,3,3,"th",7),n.YNc(8,x,2,1,"td",8),n.BQk(),n.ynx(9,9),n.YNc(10,O,1,0,"th",7),n.YNc(11,D,2,1,"td",10),n.BQk(),n.ynx(12,11),n.YNc(13,M,3,3,"th",7),n.YNc(14,L,3,3,"td",10),n.BQk(),n.ynx(15,12),n.YNc(16,N,3,3,"th",7),n.YNc(17,z,7,12,"td",10),n.BQk(),n.ynx(18,13),n.YNc(19,Z,3,3,"th",7),n.YNc(20,B,7,12,"td",10),n.BQk(),n.ynx(21,14),n.YNc(22,F,3,3,"th",15),n.YNc(23,H,2,1,"td",16),n.BQk(),n.ynx(24,17),n.YNc(25,U,3,3,"th",7),n.YNc(26,G,3,3,"td",10),n.BQk(),n.ynx(27,18),n.YNc(28,j,3,3,"th",7),n.YNc(29,Y,3,3,"td",10),n.BQk(),n.ynx(30,19),n.YNc(31,K,3,3,"th",20),n.YNc(32,V,3,3,"td",10),n.BQk(),n.YNc(33,J,1,0,"tr",21),n.YNc(34,W,1,12,"tr",22),n.qZA(),n.qZA(),n.qZA(),n.YNc(35,X,3,3,"app-alert",23),n.YNc(36,$,3,3,"app-alert",23)),2&t&&(n.Q6J("hidden",0===e.members.length||!e.dataSource||0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("tableId",e.tableId)("pageSizeOptions",e.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(31),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0!==e.members.length&&0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("ngIf",0===e.members.length))},directives:[d.l,o.BZ,r.YE,o.w1,o.fO,o.Dz,o.as,o.nj,f.O5,o.ge,p.oG,o.ev,g.gM,r.nU,m.Hw,o.XQ,o.Gk,v.YH,h.rH,y.w],pipes:[_.X$,b.d,w.u,A.i,k.f,C.M,T.D,E.p],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}td[_ngcontent-%COMP%], th[_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}"]}),t}()},11418:function(t,e,i){"use strict";i.d(e,{c:function(){return f}});var n=i(31572),r=i(68416),o=i(84140),a=i(6527),s=i(84608),c=i(61511),u=i(43691),l=i(48160);function h(t,e){if(1&t&&(n.TgZ(0,"div",5),n.TgZ(1,"mat-icon"),n._uU(2),n.qZA(),n.qZA()),2&t){var i=n.oxw();n.xp6(2),n.Oqu(i.data.icon)}}function d(t,e){if(1&t&&(n.TgZ(0,"div",6),n._uU(1),n.qZA()),2&t){var i=n.oxw();n.xp6(1),n.hij(" ",i.showTimestamp()," ")}}var f=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.dialog=e,this.notificationStorageService=i,this.newNotification=!1,this.closeNotification=new n.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}return _createClass(t,[{key:"doAction",value:function(){var t=this;if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{var e=(0,o.kZ)();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(a.FM,e).afterClosed().subscribe(function(){t.closeSelf()})}}},{key:"closeSelf",value:function(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}},{key:"ngOnInit",value:function(){var t=this;(0,o.ys)(this.data.delay,function(){t.alreadyClosed||t.waiting||t.closeSelf()})}},{key:"showTimestamp",value:function(){var t=_slicedToArray(this.data.timeStamp.split(":"),2),e=t[0],i=t[1];return i.length<2?e+":0"+i:this.data.timeStamp}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(s.uw),n.Y36(r.SZ))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"div",0),n.NdJ("click",function(){return e.alreadyClosed||e.waiting?"":e.closeSelf()}),n.YNc(2,h,3,1,"div",1),n.TgZ(3,"div",2),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.YNc(6,d,2,1,"div",3),n.TgZ(7,"div",4),n.NdJ("click",function(){return e.waiting=!0,e.doAction()}),n._uU(8),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.Gre("notification ",e.inDialog?"":"mat-elevation-z7",""),n.ekj("error","error"===e.data.type)("success","success"===e.data.type),n.xp6(2),n.Q6J("ngIf",null!==e.data.icon),n.xp6(2),n.hij(" ",n.lcZ(5,12,e.data.title)," "),n.xp6(2),n.Q6J("ngIf",e.inDialog),n.xp6(1),n.Q6J("hidden",e.alreadyPressed),n.xp6(1),n.hij(" ",e.data.actionText," "))},directives:[c.O5,u.Hw],pipes:[l.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}"]}),t}()},67474:function(t,e,i){"use strict";i.d(e,{$:function(){return L}});var n=i(68416),r=i(65249),o=i(31572),a=i(84608),s=i(48160),c=i(66283),u=i(80340),l=i(16073),h=i(61511),d=i(15980);function f(t,e){1&t&&(o.TgZ(0,"mat-error"),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}var p=function(){var t=function(){function t(e,i,n,r,o){_classCallCheck(this,t),this.dialogRef=e,this.translate=i,this.notificator=n,this.rtMessages=r,this.storeService=o,this.message="",this.subject="",this.instanceName=""}return _createClass(t,[{key:"ngOnInit",value:function(){this.instanceName=this.storeService.get("config")}},{key:"sendBugReport",value:function(){var t=this;this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(function(e){t.dialogRef.afterClosed().subscribe(function(){return t.notificator.showSuccess(t.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+e.ticketNumber)}),t.dialogRef.close()})}},{key:"getFullEmailBody",value:function(){return this.message+"\n ------------------------\n Perun instance: "+this.instanceName+"\n Sended from new Perun Gui, version: "+i(60306).i8}},{key:"close",value:function(){this.dialogRef.close()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Y36(a.so),o.Y36(s.sK),o.Y36(n.V6),o.Y36(r.Hr),o.Y36(n.d6))},t.\u0275cmp=o.Xpm({type:t,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(t,e){if(1&t&&(o.TgZ(0,"h1",0),o._uU(1),o.ALo(2,"translate"),o.qZA(),o.TgZ(3,"div",1),o.TgZ(4,"mat-form-field"),o.TgZ(5,"mat-label"),o._uU(6),o.ALo(7,"translate"),o.qZA(),o.TgZ(8,"input",2,3),o.NdJ("ngModelChange",function(t){return e.subject=t}),o.qZA(),o.YNc(10,f,3,3,"mat-error",4),o.qZA(),o.TgZ(11,"mat-form-field"),o.TgZ(12,"mat-label"),o._uU(13),o.ALo(14,"translate"),o.qZA(),o.TgZ(15,"textarea",5),o.NdJ("ngModelChange",function(t){return e.message=t}),o.ALo(16,"translate"),o._uU(17," "),o.qZA(),o.TgZ(18,"mat-hint"),o._uU(19),o.ALo(20,"translate"),o.qZA(),o.qZA(),o.qZA(),o.TgZ(21,"div",6),o.TgZ(22,"div",7),o.TgZ(23,"button",8),o.NdJ("click",function(){return e.close()}),o._uU(24),o.ALo(25,"translate"),o.qZA(),o.TgZ(26,"button",9),o.NdJ("click",function(){return e.sendBugReport()}),o._uU(27),o.ALo(28,"translate"),o.qZA(),o.qZA(),o.qZA()),2&t){var i=o.MAs(9);o.xp6(1),o.Oqu(o.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),o.xp6(5),o.Oqu(o.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),o.xp6(2),o.Q6J("ngModel",e.subject),o.xp6(2),o.Q6J("ngIf",i.invalid),o.xp6(3),o.Oqu(o.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),o.xp6(2),o.s9C("placeholder",o.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),o.Q6J("ngModel",e.message),o.xp6(4),o.Oqu(o.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),o.xp6(5),o.hij(" ",o.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),o.xp6(2),o.Q6J("disabled",i.invalid),o.xp6(1),o.hij(" ",o.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[a.uh,a.xY,c.KE,c.hX,u.Nt,l.Fj,l.Q7,l.JJ,l.On,h.O5,c.bx,a.H8,d.lW,c.TO],pipes:[s.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t}(),g=i(84140),m=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t,e,i){return t["".concat(i,"_").concat(e)]}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"localisedText",type:t,pure:!0}),t}(),v=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t,e){return t["link_"+e]||t.link_en}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"localisedLink",type:t,pure:!0}),t}(),y=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){return t.includes("/")?t:"/assets/config/"+t}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"footerLogoPath",type:t,pure:!0}),t}();function _(t,e){if(1&t&&(o.TgZ(0,"a",13),o.ALo(1,"localisedLink"),o._UZ(2,"img",14),o.ALo(3,"footerLogoPath"),o.qZA()),2&t){var i=o.oxw().$implicit,n=o.oxw(3);o.Q6J("href",o.xi3(1,2,i,n.language),o.LSH),o.xp6(2),o.s9C("src",o.lcZ(3,5,i.logo),o.LSH)}}function b(t,e){if(1&t&&(o.TgZ(0,"span"),o._UZ(1,"img",14),o.ALo(2,"footerLogoPath"),o.qZA()),2&t){var i=o.oxw().$implicit;o.xp6(1),o.s9C("src",o.lcZ(2,1,i.logo),o.LSH)}}function w(t,e){if(1&t&&(o.TgZ(0,"div"),o.YNc(1,_,4,7,"a",11),o.ALo(2,"localisedLink"),o.YNc(3,b,3,3,"span",12),o.ALo(4,"localisedLink"),o.qZA()),2&t){var i=e.$implicit,n=o.oxw(3);o.xp6(1),o.Q6J("ngIf",o.xi3(2,2,i,n.language)),o.xp6(2),o.Q6J("ngIf",!o.xi3(4,5,i,n.language))}}var A=function(t){return{"min-height":t}};function k(t,e){if(1&t&&(o.TgZ(0,"div",10),o.YNc(1,w,5,8,"div",5),o.qZA()),2&t){var i=o.oxw().$implicit,n=o.oxw();o.Q6J("ngStyle",o.VKq(2,A,n.columnContentHeight+"px")),o.xp6(1),o.Q6J("ngForOf",i.elements)}}var C=function(t){return{color:t}};function T(t,e){if(1&t&&(o.TgZ(0,"i",20),o._uU(1),o.qZA()),2&t){var i=o.oxw().$implicit,n=o.oxw(3);o.Q6J("ngStyle",o.VKq(2,C,n.linksTextColor)),o.xp6(1),o.hij(" ",i.icon," ")}}function E(t,e){if(1&t){var i=o.EpF();o.TgZ(0,"span",21),o.NdJ("click",function(){o.CHM(i);var t=o.oxw().$implicit;return o.oxw(3).openDialog(t.dialog)}),o._uU(1),o.ALo(2,"localisedText"),o.qZA()}if(2&t){var n=o.oxw().$implicit,r=o.oxw(3);o.Q6J("ngStyle",o.VKq(6,C,r.linksTextColor)),o.xp6(1),o.hij("",o.Dn7(2,2,n,r.language,"label")," ")}}function S(t,e){if(1&t&&(o.TgZ(0,"a",22),o.ALo(1,"localisedLink"),o._uU(2),o.ALo(3,"localisedText"),o.qZA()),2&t){var i=o.oxw().$implicit,n=o.oxw(3);o.Q6J("href",o.xi3(1,3,i,n.language),o.LSH)("ngStyle",o.VKq(10,C,n.linksTextColor)),o.xp6(2),o.Oqu(o.Dn7(3,6,i,n.language,"label"))}}function I(t,e){if(1&t&&(o.TgZ(0,"span",10),o._uU(1),o.ALo(2,"localisedText"),o.qZA()),2&t){var i=o.oxw().$implicit,n=o.oxw(3);o.Q6J("ngStyle",o.VKq(6,C,n.linksTextColor)),o.xp6(1),o.Oqu(o.Dn7(2,2,i,n.language,"label"))}}function R(t,e){if(1&t&&(o.TgZ(0,"div",16),o.YNc(1,T,2,4,"i",17),o.YNc(2,E,3,8,"span",18),o.YNc(3,S,4,12,"a",19),o.ALo(4,"localisedLink"),o.YNc(5,I,3,8,"span",9),o.ALo(6,"localisedLink"),o.qZA()),2&t){var i=e.$implicit,n=o.oxw(3);o.xp6(1),o.Q6J("ngIf",i.icon),o.xp6(1),o.Q6J("ngIf",i.dialog),o.xp6(1),o.Q6J("ngIf",o.xi3(4,4,i,n.language)&&!i.dialog),o.xp6(2),o.Q6J("ngIf",!o.xi3(6,7,i,n.language)&&!i.dialog)}}var x=function(t){return{height:t}};function O(t,e){if(1&t&&(o.TgZ(0,"div",10),o.YNc(1,R,7,10,"div",15),o.qZA()),2&t){var i=o.oxw().$implicit,n=o.oxw();o.Q6J("ngStyle",o.VKq(2,x,n.columnContentHeight+"px")),o.xp6(1),o.Q6J("ngForOf",i.elements)}}function P(t,e){if(1&t&&(o.TgZ(0,"div",7),o.TgZ(1,"h6",8),o._uU(2),o.ALo(3,"localisedText"),o.qZA(),o.YNc(4,k,2,4,"div",9),o.YNc(5,O,2,4,"div",9),o.qZA()),2&t){var i=e.$implicit,n=o.oxw();o.ekj("my-auto",n.containsLogos),o.xp6(1),o.Q6J("ngStyle",o.VKq(10,C,n.headersTextColor)),o.xp6(1),o.hij(" ",o.Dn7(3,6,i,n.language,"title")," "),o.xp6(2),o.Q6J("ngIf",i.logos),o.xp6(1),o.Q6J("ngIf",i.elements&&!i.logos)}}function D(t,e){if(1&t&&(o.TgZ(0,"span"),o.TgZ(1,"a",6),o._uU(2),o.qZA(),o.qZA()),2&t){var i=e.$implicit,n=e.index,r=o.oxw();o.xp6(1),o.Q6J("href",i.url,o.LSH)("ngStyle",o.VKq(3,C,r.copyrightTextColor)),o.xp6(1),o.Oqu(n?", "+i.name:i.name)}}var M=function(t){return{background:t}},L=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.storeService=e,this.translateService=i,this.dialog=n,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.items=[],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}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.translateService.onLangChange.subscribe(function(e){t.language=e.lang}),this.version=i(60306).i8,this.items=this.storeService.get("footer","columns");var e,n=_createForOfIteratorHelper(this.items);try{for(n.s();!(e=n.n()).done;){var r=e.value;r.logos?this.containsLogos=!0:25*r.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*r.elements.length)}}catch(o){n.e(o)}finally{n.f()}this.copyrightItems=this.storeService.get("footer","copyright_items")}},{key:"openDialog",value:function(t){var e=(0,g.kZ)();switch(t){case"reportIssue":e.width="550px",this.dialog.open(p,e)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.d6),o.Y36(s.sK),o.Y36(a.uw))},t.\u0275cmp=o.Xpm({type:t,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(t,e){1&t&&(o.TgZ(0,"footer",0),o.TgZ(1,"div",1),o.YNc(2,P,6,12,"div",2),o.qZA(),o._UZ(3,"hr",3),o.TgZ(4,"div",4),o._uU(5),o.YNc(6,D,3,5,"span",5),o._uU(7," Version "),o.TgZ(8,"a",6),o._uU(9),o.qZA(),o.qZA(),o.qZA()),2&t&&(o.Q6J("ngStyle",o.VKq(8,M,e.bgColor)),o.xp6(2),o.Q6J("ngForOf",e.items),o.xp6(2),o.Q6J("ngStyle",o.VKq(10,C,e.copyrightTextColor)),o.xp6(1),o.hij(" \xa9 ",e.currentYear," Copyright: "),o.xp6(1),o.Q6J("ngForOf",e.copyrightItems),o.xp6(2),o.Q6J("href",e.githubRepository,o.LSH)("ngStyle",o.VKq(12,C,e.copyrightTextColor)),o.xp6(1),o.Oqu(e.version))},directives:[h.PC,h.sg,h.O5],pipes:[m,v,y],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}"]}),t}()},72953:function(t,e,i){"use strict";i.d(e,{W:function(){return u}});var n=i(31572),r=i(61511),o=i(43691),a=i(36922),s=i(48160);function c(t,e){1&t&&(n.TgZ(0,"mat-icon",1),n.ALo(1,"translate"),n._uU(2," visibility\n"),n.qZA()),2&t&&n.s9C("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}var u=function(){var t=function t(){_classCallCheck(this,t),this.recentIds=[]};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&n.YNc(0,c,3,3,"mat-icon",0),2&t&&n.Q6J("ngIf",e.recentIds.indexOf(e.id)>-1)},directives:[r.O5,o.Hw,a.gM],pipes:[s.X$],styles:[".disabled-icon[_ngcontent-%COMP%]{color:rgba(0,0,0,.26)}"]}),t}()},59403:function(t,e,i){"use strict";i.d(e,{t:function(){return c}});var n=i(31572),r=i(15980),o=i(36922),a=i(43691),s=i(48160),c=function(){var t=function(){function t(){_classCallCheck(this,t),this.refresh=new n.vpe}return _createClass(t,[{key:"onClickbutton",value:function(t){this.refresh.emit(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.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(t,e){1&t&&(n.TgZ(0,"button",0),n.NdJ("click",function(t){return e.onClickbutton(t)}),n.ALo(1,"translate"),n._UZ(2,"mat-icon",1),n.qZA()),2&t&&(n.s9C("matTooltip",n.lcZ(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),n.Q6J("disabled",e.disabled),n.xp6(2),n.s9C("svgIcon",e.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},directives:[r.lW,o.gM,a.Hw],pipes:[s.X$],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%], .perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%], .perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}"]}),t}()},88884:function(t,e,i){"use strict";i.d(e,{C:function(){return V}});var n=i(31572),r=i(58623),o=i(67033),a=i(4230),s=i(84140),c=i(68416),u=i(82819),l=i(61511),h=i(29236),d=i(36922),f=i(72953),p=i(43691),g=i(46837),m=i(84534),v=i(57629),y=i(39571),_=i(48160),b=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){if(null==t)return null;var e="";return t.forEach(function(t){e=e.concat(t.tagName)}),e}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"resourceTagsToString",type:t,pure:!0}),t}(),w=i(95603);function A(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"th",22),n.TgZ(1,"mat-checkbox",23),n.NdJ("change",function(t){n.CHM(i);var e=n.oxw();return t?e.masterToggle():null}),n.qZA(),n.qZA()}if(2&t){var r=n.oxw();n.xp6(1),n.Q6J("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())}}function k(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",24),n.TgZ(1,"span",25),n.ALo(2,"translate"),n.TgZ(3,"mat-checkbox",26),n.NdJ("change",function(t){var e=n.CHM(i).$implicit,r=n.oxw();return t?r.itemSelectionToggle(e):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.s9C("matTooltip",n.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE")),n.Q6J("matTooltipPosition","above")("matTooltipDisabled",!o.disableSelect(r)),n.xp6(2),n.Q6J("aria-label",o.checkboxLabel(r))("checked",o.selection.isSelected(r))("disabled",o.disableSelect(r))}}function C(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")))}function T(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.id)}}function E(t,e){1&t&&n._UZ(0,"th",29)}function S(t,e){if(1&t&&(n.TgZ(0,"td",30),n._UZ(1,"perun-web-apps-recently-viewed-icon",31),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.xp6(1),n.Q6J("recentIds",r.recentIds)("id",i.id)}}function I(t,e){1&t&&n._UZ(0,"th",29)}function R(t,e){1&t&&(n.TgZ(0,"mat-icon",33),n.ALo(1,"translate"),n._uU(2,"account_tree"),n.qZA()),2&t&&n.Q6J("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE"))}function x(t,e){if(1&t&&(n.TgZ(0,"td",30),n.YNc(1,R,3,3,"mat-icon",32),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Q6J("ngIf",i.sourceGroupId)}}function O(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")))}function P(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.name)}}function D(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")))}function M(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.vo.name)}}function L(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")))}function N(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",30),n.TgZ(1,"perun-web-apps-group-resource-status",34),n.NdJ("mouseenter",function(){return n.CHM(i),n.oxw().disabledRouting=!0})("mouseleave",function(){n.CHM(i);var t=n.oxw();return t.disabledRouting=t.disableRouting})("statusChange",function(){return n.CHM(i),n.oxw().refreshTable.emit()}),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("theme","group-theme")("resourceId",r.id)("groupId",o.groupId)("failureCause",r.failureCause)("status",r.status)}}function z(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")))}function Z(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.facility.name)}}function B(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")))}function F(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.ALo(2,"resourceTagsToString"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i.resourceTags))}}function q(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")))}function H(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.description)}}function U(t,e){1&t&&n._UZ(0,"tr",35)}var G=function(t){return[t]};function j(t,e){if(1&t&&(n._UZ(0,"tr",36),n.ALo(1,"getResourceRoute"),n.ALo(2,"getResourceRoute")),2&t){var i=e.$implicit,r=n.oxw();n.ekj("cursor-pointer",!r.disableRouting)("disable-outline",r.disabledRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",n.VKq(12,G,r.disabledRouting?null:n.xi3(1,6,i,r.routingVo)))("routerLink",r.disabledRouting?null:n.xi3(2,9,i,r.routingVo))}}function Y(t,e){1&t&&(n.TgZ(0,"app-alert",37),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function K(t,e){1&t&&(n.TgZ(0,"app-alert",37),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}var V=function(){var t=function(){function t(e,i){var r=this;_classCallCheck(this,t),this.guiAuthResolver=e,this.tableCheckbox=i,this.resources=[],this.selection=new a.Ov(!0,[]),this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","indirectResourceAssigment","name","vo","status","facility","tags","description"],this.pageSizeOptions=s.f7,this.groupId=null,this.resourcesToDisableCheckbox=new Set,this.refreshTable=new n.vpe,this.allSelected=new n.vpe,this.removeAuth=!1,this.addAuth=!1,this.canBeSelected=function(t){return!r.disableSelect(t)}}return _createClass(t,[{key:"matSort",set:function(t){this.sort=t}},{key:"ngOnInit",value:function(){this.disabledRouting=this.disableRouting}},{key:"ngOnChanges",value:function(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.setDataSource(),this.setAuth()}},{key:"getDataForColumn",value:function(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return t.vo.name;case"name":return t.name;case"facility":return t.facility.name;case"description":return t.description;case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;case"tags":if(!t.resourceTags)return t[e];var n="";return t.resourceTags.forEach(function(t){n=n.concat(t.tagName)}),n;case"status":return t.status;case"uuid":return t.uuid;default:return t[e]}}},{key:"exportData",value:function(t){(0,s.O6)((0,s.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource||(this.dataSource=new o.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=function(e,i){return(0,s.Sd)(e,i,t.displayedColumns,t.getDataForColumn,t,!0)},this.dataSource.sortData=function(e,i){return(0,s.pR)(e,i,t.getDataForColumn,t)}),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}},{key:"isAllSelected",value:function(){var t=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(t),t}},{key:"masterToggle",value:function(){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()}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"setAuth",value:function(){var t=this,e=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce(function(i,n){return i&&t.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",e.concat([n]))},!0),this.addAuth=this.selection.selected.reduce(function(i,n){return i&&t.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",e.concat([n]))},!0)}},{key:"itemSelectionToggle",value:function(t){this.selection.toggle(t),this.setAuth()}},{key:"disableSelect",value:function(t){return this.resourcesToDisableCheckbox.has(t.id)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(c.x4),n.Y36(c.UA))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(t,e){var i;(1&t&&(n.Gf(r.YE,7),n.Gf(s.l9,7)),2&t)&&(n.iGM(i=n.CRH())&&(e.matSort=i.first),n.iGM(i=n.CRH())&&(e.child=i.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:[n.TTD],decls:37,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","status"],["matColumnDef","facility"],["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(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,A,2,3,"th",4),n.YNc(5,k,4,8,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,C,3,3,"th",7),n.YNc(8,T,2,1,"td",8),n.BQk(),n.ynx(9,9),n.YNc(10,E,1,0,"th",10),n.YNc(11,S,2,2,"td",11),n.BQk(),n.ynx(12,12),n.YNc(13,I,1,0,"th",10),n.YNc(14,x,2,1,"td",11),n.BQk(),n.ynx(15,13),n.YNc(16,O,3,3,"th",7),n.YNc(17,P,2,1,"td",11),n.BQk(),n.ynx(18,14),n.YNc(19,D,3,3,"th",7),n.YNc(20,M,2,1,"td",11),n.BQk(),n.ynx(21,15),n.YNc(22,L,3,3,"th",7),n.YNc(23,N,2,5,"td",11),n.BQk(),n.ynx(24,16),n.YNc(25,z,3,3,"th",7),n.YNc(26,Z,2,1,"td",11),n.BQk(),n.ynx(27,17),n.YNc(28,B,3,3,"th",7),n.YNc(29,F,3,3,"td",11),n.BQk(),n.ynx(30,18),n.YNc(31,q,3,3,"th",7),n.YNc(32,H,2,1,"td",11),n.BQk(),n.YNc(33,U,1,0,"tr",19),n.YNc(34,j,3,14,"tr",20),n.qZA(),n.qZA(),n.qZA(),n.YNc(35,Y,3,3,"app-alert",21),n.YNc(36,K,3,3,"app-alert",21)),2&t&&(n.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.resources.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("tableId",e.tableId)("pageSizeOptions",e.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(31),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.resources.length),n.xp6(1),n.Q6J("ngIf",0===e.resources.length))},directives:[u.l,o.BZ,r.YE,o.w1,o.fO,o.Dz,o.as,o.nj,l.O5,o.ge,h.oG,o.ev,d.gM,r.nU,f.W,p.Hw,g.x,o.XQ,o.Gk,m.YH,v.rH,y.w],pipes:[_.X$,b,w.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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t}()},94327:function(t,e,i){"use strict";i.d(e,{qG:function(){return s},$x:function(){return c}});var n=i(31572),r=i(48160),o=i(44973),a=function t(e,i){_classCallCheck(this,t),this.value=i,this.displayName=e},s=function(t){return t[t.SOURCE=0]="SOURCE",t[t.DESTINATION=1]="DESTINATION",t[t.FEDERATION=2]="FEDERATION",t}({}),c=function(){var t=function(){function t(e){_classCallCheck(this,t),this.translateService=e,this.attributes=[],this.asGroup=!1,this.itemSelected=new n.vpe,this.items=[],this.nameFunction=function(t){return t.displayName},this.shortNameFunction=function(){return null},this.searchFunction=function(t){return t.displayName}}return _createClass(t,[{key:"ngOnInit",value:function(){this.type===s.FEDERATION?(this.getFederationAttributes(),this.getFederationAttribute()):this.createSelectionItems(),this.sortAttributes(this.items)}},{key:"createSelectionItems",value:function(){var e=this;this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(function(t){var i=new a(t,"");e.items.push(i),e.item=i});var i,n=_createForOfIteratorHelper(this.attributes);try{for(n.s();!(i=n.n()).done;){var r=i.value,o=new a(r.friendlyName+" ("+r.entity+" / "+t.getDefinition(r)+")",r.namespace+":"+r.friendlyName);o.value===this.selectedAttribute&&(this.item=o),("user"===r.entity.toLowerCase()||"member"===r.entity.toLowerCase()||"vo"===r.entity.toLowerCase()&&this.type===s.SOURCE||"group"===r.entity.toLowerCase()&&this.asGroup&&this.type===s.SOURCE)&&this.items.push(o)}}catch(c){n.e(c)}finally{n.f()}}},{key:"getFederationAttributes",value:function(){var t=this;this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(function(e){t.items.push(new a(e,"")),t.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.CUSTOM_VALUE").subscribe(function(e){t.items.push(new a(e,"custom")),t.items.push(new a("Display name","displayName")),t.items.push(new a("Common name","cn")),t.items.push(new a("Mail","mail")),t.items.push(new a("Organization","o")),t.items.push(new a("Level of Assurance (LoA)","loa")),t.items.push(new a("First name","givenName")),t.items.push(new a("Surname","sn")),t.items.push(new a("EPPN","eppn")),t.items.push(new a("IdP Category","md_entityCategory")),t.items.push(new a("IdP Affiliation","affiliation")),t.items.push(new a("EduPersonScopedAffiliation","eduPersonScopedAffiliation")),t.items.push(new a("Forwarded Affiliation from Proxy","forwardedScopedAffiliation")),t.items.push(new a("schacHomeOrganization","schacHomeOrganization")),t.items.push(new a("Login","uid")),t.items.push(new a("Alternative login name","alternativeLoginName"))})})}},{key:"getFederationAttribute",value:function(){var t,e=_createForOfIteratorHelper(this.items);try{for(e.s();!(t=e.n()).done;){var i=t.value;if(i.value===this.selectedAttribute)return void(this.item=i)}}catch(n){e.e(n)}finally{e.f()}}},{key:"sortAttributes",value:function(t){t.sort(function(t,e){return""===t.value?-1:""===e.value?1:t.displayName.localeCompare(e.displayName)})}}],[{key:"getDefinition",value:function(t){var e=t.namespace.split(":");return null===e[4]?"null":e[4]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(r.sK))},t.\u0275cmp=n.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(t,e){1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.itemSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t&&n.Q6J("entities",e.items)("entity",e.item)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.shortNameFunction)("selectPlaceholder",n.lcZ(1,8,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",n.lcZ(2,10,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",n.lcZ(3,12,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},directives:[o.i],pipes:[r.X$],styles:[""]}),t}()},23888:function(t,e,i){"use strict";i.d(e,{j:function(){return N}});var n=i(4230),r=i(58623),o=i(67033),a=i(68416),s=i(84140),c=i(31572),u=i(57629),l=i(82819),h=i(61511),d=i(36922),f=i(29236),p=i(84534),g=i(39571),m=i(48160),v=i(83787),y=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){var e=t.find(function(t){return"mail"===t.friendlyName});return e?e.value.toString():"N/A"}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=c.Yjl({name:"getMailFromAttributes",type:t,pure:!0}),t}();function _(t,e){1&t&&c._UZ(0,"th",18)}function b(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"td",19),c.TgZ(1,"span",20),c.ALo(2,"translate"),c.ALo(3,"customTranslate"),c.TgZ(4,"mat-checkbox",21),c.NdJ("change",function(t){var e=c.CHM(i).$implicit,n=c.oxw();return t?n.selection.toggle(e):null})("click",function(t){return t.stopPropagation()}),c.qZA(),c.qZA(),c.qZA()}if(2&t){var n=e.$implicit,r=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",!n.userExtSource.persistent),c.xp6(3),c.Q6J("aria-label",r.checkboxLabel(n))("checked",r.selection.isSelected(n))("disabled",n.userExtSource.persistent)}}function w(t,e){1&t&&(c.TgZ(0,"th",22),c._uU(1),c.ALo(2,"translate"),c.ALo(3,"customTranslate"),c.qZA()),2&t&&(c.xp6(1),c.Oqu(c.lcZ(2,1,c.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))))}function A(t,e){if(1&t&&(c.TgZ(0,"td",23),c._uU(1),c.qZA()),2&t){var i=e.$implicit;c.xp6(1),c.Oqu(i.userExtSource.id)}}function k(t,e){1&t&&(c.TgZ(0,"th",24),c._uU(1),c.ALo(2,"translate"),c.ALo(3,"customTranslate"),c.qZA()),2&t&&(c.xp6(1),c.Oqu(c.lcZ(2,1,c.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))))}function C(t,e){if(1&t&&(c.TgZ(0,"td",23),c._uU(1),c.ALo(2,"getMailFromAttributes"),c.qZA()),2&t){var i=e.$implicit;c.xp6(1),c.Oqu(c.lcZ(2,1,i.attributes))}}function T(t,e){if(1&t&&(c.TgZ(0,"th",22),c._uU(1),c.ALo(2,"translate"),c.ALo(3,"customTranslate"),c.qZA()),2&t){var i=c.oxw();c.xp6(1),c.Oqu(c.lcZ(2,1,c.lcZ(3,3,i.extSourceNameHeader?i.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME")))}}function E(t,e){if(1&t&&(c.TgZ(0,"td",23),c._uU(1),c.qZA()),2&t){var i=e.$implicit;c.xp6(1),c.Oqu(i.userExtSource.extSource.name)}}function S(t,e){if(1&t&&(c.TgZ(0,"th",22),c._uU(1),c.ALo(2,"translate"),c.ALo(3,"customTranslate"),c.qZA()),2&t){var i=c.oxw();c.xp6(1),c.Oqu(c.lcZ(2,1,c.lcZ(3,3,i.loginHeader?i.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN")))}}function I(t,e){if(1&t&&(c.TgZ(0,"td",23),c._uU(1),c.qZA()),2&t){var i=e.$implicit;c.xp6(1),c.Oqu(i.userExtSource.login)}}function R(t,e){1&t&&(c.TgZ(0,"th",22),c._uU(1),c.ALo(2,"translate"),c.ALo(3,"customTranslate"),c.qZA()),2&t&&(c.xp6(1),c.Oqu(c.lcZ(2,1,c.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))))}function x(t,e){if(1&t&&(c.TgZ(0,"td",25),c._uU(1),c.ALo(2,"date"),c.qZA()),2&t){var i=e.$implicit;c.xp6(1),c.Oqu(c.xi3(2,1,i.userExtSource.lastAccess,"d.M.y H:mm:ss"))}}function O(t,e){1&t&&c._UZ(0,"tr",26)}var P=function(t,e){return["/admin","users",t,"identities",e]};function D(t,e){if(1&t&&c._UZ(0,"tr",27),2&t){var i=e.$implicit,n=c.oxw();c.ekj("cursor-pointer",!n.disableRouting)("disable-outline",n.disableRouting),c.Q6J("perunWebAppsMiddleClickRouterLink",n.disableRouting?null:c.WLB(6,P,n.userId,i.userExtSource.id))("routerLink",n.disableRouting?null:c.WLB(9,P,n.userId,i.userExtSource.id))}}function M(t,e){1&t&&(c.TgZ(0,"app-alert",28),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function L(t,e){1&t&&(c.TgZ(0,"app-alert",28),c._uU(1),c.ALo(2,"translate"),c.ALo(3,"customTranslate"),c.qZA()),2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,c.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}var N=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.route=e,this.authResolver=i,this.selection=new n.Ov,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSizeOptions=s.f7}return _createClass(t,[{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}},{key:"ngOnInit",value:function(){var t=this;this.disableRouting||this.route.parent.params.subscribe(function(e){t.userId=e.userId}),this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.dataSource=new o.by(this.userExtSources),this.setDataSource()}},{key:"getDataForColumn",value:function(t,e){switch(e){case"id":return t.userExtSource.id.toString();case"mail":var i=t.attributes.find(function(t){return"mail"===t.friendlyName});return i?i.value.toString():"N/A";case"extSourceName":return t.userExtSource.extSource.name;case"login":return t.userExtSource.login;case"lastAccess":return t.userExtSource.lastAccess.split(".")[0];default:return t[e]}}},{key:"exportData",value:function(t){(0,s.O6)((0,s.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource&&(this.dataSource.filterPredicate=function(e,i){return(0,s.Sd)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return(0,s.pR)(e,i,t.getDataForColumn,t)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}},{key:"checkboxLabel",value:function(t){return"".concat(this.selection.isSelected(t.userExtSource)?"deselect":"select"," row ").concat(t.userExtSource.id+1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.Y36(u.gz),c.Y36(a.x4))},t.\u0275cmp=c.Xpm({type:t,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(t,e){var i;(1&t&&(c.Gf(s.l9,7),c.Gf(r.YE,7)),2&t)&&(c.iGM(i=c.CRH())&&(e.child=i.first),c.iGM(i=c.CRH())&&(e.matSort=i.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(t,e){1&t&&(c.TgZ(0,"div",0),c.TgZ(1,"perun-web-apps-table-wrapper",1),c.NdJ("exportData",function(t){return e.exportData(t)}),c.TgZ(2,"table",2),c.ynx(3,3),c.YNc(4,_,1,0,"th",4),c.YNc(5,b,5,10,"td",5),c.BQk(),c.ynx(6,6),c.YNc(7,w,4,5,"th",7),c.YNc(8,A,2,1,"td",8),c.BQk(),c.ynx(9,9),c.YNc(10,k,4,5,"th",10),c.YNc(11,C,3,3,"td",8),c.BQk(),c.ynx(12,11),c.YNc(13,T,4,5,"th",7),c.YNc(14,E,2,1,"td",8),c.BQk(),c.ynx(15,12),c.YNc(16,S,4,5,"th",7),c.YNc(17,I,2,1,"td",8),c.BQk(),c.ynx(18,13),c.YNc(19,R,4,5,"th",7),c.YNc(20,x,3,4,"td",14),c.BQk(),c.YNc(21,O,1,0,"tr",15),c.YNc(22,D,1,12,"tr",16),c.qZA(),c.qZA(),c.qZA(),c.YNc(23,M,3,3,"app-alert",17),c.YNc(24,L,4,5,"app-alert",17)),2&t&&(c.Q6J("hidden",0===e.userExtSources.length||0===e.dataSource.filteredData.length),c.xp6(1),c.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),c.xp6(1),c.Q6J("dataSource",e.dataSource),c.xp6(19),c.Q6J("matHeaderRowDef",e.displayedColumns),c.xp6(1),c.Q6J("matRowDefColumns",e.displayedColumns),c.xp6(1),c.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.userExtSources.length),c.xp6(1),c.Q6J("ngIf",0===e.userExtSources.length))},directives:[l.l,o.BZ,r.YE,o.w1,o.fO,o.Dz,o.as,o.nj,h.O5,o.ge,o.ev,d.gM,f.oG,r.nU,o.XQ,o.Gk,p.YH,u.rH,g.w],pipes:[m.X$,v.a,y,h.uU],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),t}()},7927:function(t,e,i){"use strict";i.d(e,{S:function(){return s}});var n=i(31572),r=i(84140),o=i(44973),a=i(48160),s=function(){var t=function(){function t(){_classCallCheck(this,t),this.disableAutoSelect=!1,this.userSelected=new n.vpe,this.userFullNameFunction=r.bD}return _createClass(t,[{key:"ngOnInit",value:function(){this.users=this.users.sort(r.fx)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.userSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t&&n.Q6J("entities",e.users)("disableAutoSelect",e.disableAutoSelect)("searchFunction",e.userFullNameFunction)("mainTextFunction",e.userFullNameFunction)("selectPlaceholder",n.lcZ(1,7,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.SELECT_USER"))("findPlaceholder",n.lcZ(2,9,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.FIND_USER"))("noEntriesText",n.lcZ(3,11,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.NO_USER_FOUND"))},directives:[o.i],pipes:[a.X$],styles:[""]}),t}()},16247:function(t,e,i){"use strict";i.d(e,{M:function(){return K}});var n=i(4230),r=i(84140),o=i(58623),a=i(68416),s=i(31906),c=i(66599),u=i(31572),l=i(60611),h=i(82819),d=i(61511),f=i(67033),p=i(67806),g=i(29236),m=i(43691),v=i(36922),y=i(84534),_=i(39571),b=i(48160),w=i(22196),A=i(92898),k=i(44031),C=i(31447);function T(t,e){1&t&&(u.TgZ(0,"div",20),u._UZ(1,"mat-spinner",21),u.qZA())}function E(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"mat-checkbox",24),u.NdJ("change",function(t){u.CHM(i);var e=u.oxw(2);return t?e.masterToggle():null}),u.qZA()}if(2&t){var n=u.oxw(2);u.Q6J("aria-label",n.checkboxLabel())("checked",n.selection.hasValue()&&n.isAllSelected())("indeterminate",n.selection.hasValue()&&!n.isAllSelected())}}function S(t,e){if(1&t&&(u.TgZ(0,"th",22),u.YNc(1,E,1,3,"mat-checkbox",23),u.qZA()),2&t){var i=u.oxw();u.xp6(1),u.Q6J("ngIf",i.selection.isMultipleSelection())}}function I(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"td",25),u.TgZ(1,"mat-checkbox",26),u.NdJ("change",function(t){var e=u.CHM(i).$implicit,n=u.oxw();return t?n.selection.toggle(e):null})("click",function(t){return t.stopPropagation()}),u.qZA(),u.qZA()}if(2&t){var n=e.$implicit,r=u.oxw();u.xp6(1),u.Q6J("aria-label",r.checkboxLabel(n))("checked",r.selection.isSelected(n))}}function R(t,e){1&t&&u._UZ(0,"th",27)}function x(t,e){1&t&&(u.TgZ(0,"mat-icon",31),u.ALo(1,"translate"),u._uU(2," account_circle "),u.qZA()),2&t&&u.s9C("matTooltip",u.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function O(t,e){if(1&t&&(u._UZ(0,"mat-icon",32),u.ALo(1,"translate")),2&t){var i=u.oxw(2);u.s9C("matTooltip",u.lcZ(1,2,"MANAGERS_LIST.SERVICE")),u.Q6J("svgIcon",i.svgIcon)}}function P(t,e){if(1&t&&(u.TgZ(0,"td",28),u.YNc(1,x,3,3,"mat-icon",29),u.YNc(2,O,2,4,"mat-icon",30),u.qZA()),2&t){var i=e.$implicit;u.xp6(1),u.Q6J("ngIf",!i.serviceUser),u.xp6(1),u.Q6J("ngIf",i.serviceUser)}}function D(t,e){1&t&&(u.TgZ(0,"th",33),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"MANAGERS_LIST.ID")))}function M(t,e){if(1&t&&(u.TgZ(0,"td",28),u._uU(1),u.qZA()),2&t){var i=e.$implicit;u.xp6(1),u.hij(" ",i.id," ")}}function L(t,e){1&t&&(u.TgZ(0,"th",33),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"MANAGERS_LIST.NAME")))}function N(t,e){if(1&t&&(u.TgZ(0,"td",34),u._uU(1),u.ALo(2,"userFullName"),u.qZA()),2&t){var i=e.$implicit;u.xp6(1),u.Oqu(u.lcZ(2,1,i))}}function z(t,e){1&t&&(u.TgZ(0,"th",27),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")))}function Z(t,e){if(1&t&&(u.TgZ(0,"td",34),u._uU(1),u.ALo(2,"userVo"),u.qZA()),2&t){var i=e.$implicit;u.xp6(1),u.Oqu(u.lcZ(2,1,i))}}function B(t,e){1&t&&(u.TgZ(0,"th",27),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"MANAGERS_LIST.EMAIL")))}function F(t,e){if(1&t&&(u.TgZ(0,"td",34),u._uU(1),u.ALo(2,"userEmail"),u.qZA()),2&t){var i=e.$implicit;u.xp6(1),u.Oqu(u.lcZ(2,1,i))}}function q(t,e){1&t&&(u.TgZ(0,"th",27),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"MANAGERS_LIST.LOGINS")))}function H(t,e){if(1&t&&(u.TgZ(0,"td",34),u._uU(1),u.ALo(2,"userLogins"),u.qZA()),2&t){var i=e.$implicit;u.xp6(1),u.Oqu(u.lcZ(2,1,i))}}function U(t,e){1&t&&u._UZ(0,"tr",35)}var G=function(t){return["/admin/users",t]};function j(t,e){if(1&t&&u._UZ(0,"tr",36),2&t){var i=e.$implicit,n=u.oxw();u.ekj("cursor-pointer",!n.disableRouting),u.Q6J("perunWebAppsForceRouterLink",n.disableRouting?null:u.VKq(4,G,i.id))("perunWebAppsMiddleClickRouterLink",n.disableRouting?null:u.VKq(6,G,i.id))}}function Y(t,e){1&t&&(u.TgZ(0,"app-alert",37),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.Q6J("alert_type","warn"),u.xp6(1),u.hij(" ",u.lcZ(2,2,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n"))}var K=function(){var t=function(){function t(e,i,o,a){_classCallCheck(this,t),this.authResolver=e,this.tableCheckbox=i,this.tableConfigService=o,this.dynamicPaginatingService=a,this.svgIcon="perun-service-identity-black",this.selection=new n.Ov(!0,[]),this.displayedColumns=["select","user","id","name","email","logins","organization"],this.disableRouting=!1,this.searchString="",this.attrNames=[],this.pageSizeOptions=r.f7}return _createClass(t,[{key:"ngAfterViewInit",value:function(){var t=this;this.sort.sortChange.subscribe(function(){return t.child.paginator.pageIndex=0}),(0,s.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,c.b)(function(){return t.loadUsersPage()})).subscribe()}},{key:"ngOnInit",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.dataSource=new a.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)}},{key:"ngOnChanges",value:function(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadUsersPage())}},{key:"masterToggle",value:function(){var t=this;this.isAllSelected()?this.selection.clear():this.dataSource.getData().forEach(function(e){return t.selection.select(e)})}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.child.paginator.pageSize}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"loadUsersPage",value:function(){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)}},{key:"exportData",value:function(t){(0,r.O6)((0,r.Xn)(this.dataSource.getData(),this.displayedColumns,this.getExportDataForColumn,this),t)}},{key:"getExportDataForColumn",value:function(t,e){switch(e){case"id":return t.id.toString();case"user":return t.serviceUser?"service-user":"user";case"name":return t?(0,r.bD)(t):"";case"organization":return(0,r.OV)(t);case"email":return(0,r.kN)(t);case"logins":return(0,r.lt)(t);default:return""}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Y36(a.x4),u.Y36(a.UA),u.Y36(l.dB),u.Y36(a.ly))},t.\u0275cmp=u.Xpm({type:t,selectors:[["perun-web-apps-users-dynamic-list"]],viewQuery:function(t,e){var i;(1&t&&(u.Gf(r.l9,7),u.Gf(o.YE,5)),2&t)&&(u.iGM(i=u.CRH())&&(e.child=i.first),u.iGM(i=u.CRH())&&(e.sort=i.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:[u.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(t,e){1&t&&(u.TgZ(0,"div",0),u.ALo(1,"async"),u.TgZ(2,"perun-web-apps-table-wrapper",1),u.NdJ("exportData",function(t){return e.exportData(t)}),u.YNc(3,T,2,0,"div",2),u.ALo(4,"async"),u.TgZ(5,"table",3),u.ynx(6,4),u.YNc(7,S,2,1,"th",5),u.YNc(8,I,2,2,"td",6),u.BQk(),u.ynx(9,7),u.YNc(10,R,1,0,"th",8),u.YNc(11,P,3,2,"td",9),u.BQk(),u.ynx(12,10),u.YNc(13,D,3,3,"th",11),u.YNc(14,M,2,1,"td",9),u.BQk(),u.ynx(15,12),u.YNc(16,L,3,3,"th",11),u.YNc(17,N,3,3,"td",13),u.BQk(),u.ynx(18,14),u.YNc(19,z,3,3,"th",8),u.YNc(20,Z,3,3,"td",13),u.BQk(),u.ynx(21,15),u.YNc(22,B,3,3,"th",8),u.YNc(23,F,3,3,"td",13),u.BQk(),u.ynx(24,16),u.YNc(25,q,3,3,"th",8),u.YNc(26,H,3,3,"td",13),u.BQk(),u.YNc(27,U,1,0,"tr",17),u.YNc(28,j,1,8,"tr",18),u.qZA(),u.qZA(),u.qZA(),u.YNc(29,Y,3,4,"app-alert",19),u.ALo(30,"async")),2&t&&(u.Q6J("hidden",0===e.dataSource.allObjectCount&&!1===u.lcZ(1,9,e.dataSource.loading$)),u.xp6(2),u.Q6J("tableId",e.tableId)("dataLength",e.dataSource.allObjectCount)("pageSizeOptions",e.pageSizeOptions),u.xp6(1),u.Q6J("ngIf",u.lcZ(4,11,e.dataSource.loading$)),u.xp6(2),u.Q6J("dataSource",e.dataSource),u.xp6(22),u.Q6J("matHeaderRowDef",e.displayedColumns),u.xp6(1),u.Q6J("matRowDefColumns",e.displayedColumns),u.xp6(1),u.Q6J("ngIf",0===e.dataSource.allObjectCount&&!1===u.lcZ(30,13,e.dataSource.loading$)))},directives:[h.l,d.O5,f.BZ,o.YE,f.w1,f.fO,f.Dz,f.as,f.nj,p.$g,f.ge,g.oG,f.ev,m.Hw,v.gM,o.nU,f.XQ,f.Gk,y.Kd,y.YH,_.w],pipes:[d.Ov,b.X$,w.d,A.Z,k.S,C.g],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;top:0;left:0;bottom:56px;right:0;background:rgba(0,0,0,.15);z-index:1;display:flex;align-items:center;justify-content:center}.italic_font[_ngcontent-%COMP%]{font-style:italic}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t}()},19386:function(t,e,i){"use strict";i.d(e,{M:function(){return a}});var n=i(31572),r=i(44973),o=i(48160),a=function(){var t=function t(){_classCallCheck(this,t),this.voSelected=new n.vpe,this.nameFunction=function(t){return t.name},this.shortNameFunction=function(t){return t.shortName},this.searchFunction=function(t){return t.name+t.shortName+t.id}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-vo-search-select"]],inputs:{vo:"vo",vos:"vos"},outputs:{voSelected:"voSelected"},decls:4,vars:14,consts:[[3,"entity","entities","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(t,e){1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.voSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t&&n.Q6J("entity",e.vo)("entities",e.vos)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.shortNameFunction)("selectPlaceholder",n.lcZ(1,8,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.SELECT_VO"))("findPlaceholder",n.lcZ(2,10,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.FIND_VO"))("noEntriesText",n.lcZ(3,12,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.NO_VO_FOUND"))},directives:[r.i],pipes:[o.X$],styles:[""]}),t}()},97162:function(t,e,i){"use strict";i.d(e,{Z:function(){return O}});var n=i(58623),r=i(67033),o=i(84140),a=i(68416),s=i(31572),c=i(82819),u=i(61511),l=i(29236),h=i(72953),d=i(84534),f=i(57629),p=i(39571),g=i(48160);function m(t,e){1&t&&s._UZ(0,"th",18)}function v(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"td",19),s.TgZ(1,"mat-checkbox",20),s.NdJ("change",function(t){var e=s.CHM(i).$implicit,n=s.oxw();return t?n.selection.toggle(e):null})("click",function(t){return t.stopPropagation()}),s.qZA(),s.qZA()}if(2&t){var n=e.$implicit,r=s.oxw();s.xp6(1),s.Q6J("aria-label",r.checkboxLabel(n))("checked",r.selection.isSelected(n))}}function y(t,e){1&t&&(s.TgZ(0,"th",21),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.ID")))}function _(t,e){if(1&t&&(s.TgZ(0,"td",22),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(i.id)}}function b(t,e){1&t&&s._UZ(0,"th",23)}function w(t,e){if(1&t&&(s.TgZ(0,"td",24),s._UZ(1,"perun-web-apps-recently-viewed-icon",25),s.qZA()),2&t){var i=e.$implicit,n=s.oxw();s.xp6(1),s.Q6J("recentIds",n.recentIds)("id",i.id)}}function A(t,e){1&t&&(s.TgZ(0,"th",21),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.SHORTNAME")))}function k(t,e){if(1&t&&(s.TgZ(0,"td",24),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.uIk("data-cy",i.shortName),s.xp6(1),s.Oqu(i.shortName)}}function C(t,e){1&t&&(s.TgZ(0,"th",21),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.NAME")))}function T(t,e){if(1&t&&(s.TgZ(0,"td",24),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(i.name)}}function E(t,e){1&t&&s._UZ(0,"tr",26)}var S=function(t){return["/organizations",t]};function I(t,e){if(1&t&&s._UZ(0,"tr",27),2&t){var i=e.$implicit,n=s.oxw();s.ekj("disable-outline",n.disableRouting),s.Q6J("perunWebAppsMiddleClickRouterLink",n.disableRouting?null:s.VKq(4,S,i.id))("routerLink",n.disableRouting?null:s.VKq(6,S,i.id))}}function R(t,e){1&t&&(s.TgZ(0,"app-alert",28),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function x(t,e){1&t&&(s.TgZ(0,"app-alert",29),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_ORGANIZATIONS"),"\n"))}var O=function(){var t=function(){function t(e){_classCallCheck(this,t),this.authResolver=e,this.vos=[],this.displayedColumns=[],this.disableRouting=!1,this.pageSizeOptions=o.f7}return _createClass(t,[{key:"matSort",set:function(t){this.sort=t}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.setDataSource()}},{key:"getDataForColumn",value:function(t,e,i){switch(e){case"id":return t.id.toString();case"shortName":return t.shortName;case"name":return t.name;case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;default:return t[e]}}},{key:"exportData",value:function(t){(0,o.O6)((0,o.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource||(this.dataSource=new r.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=function(e,i){return(0,o.Sd)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return(0,o.pR)(e,i,t.getDataForColumn,t)}),this.dataSource.filter=this.filterValue,this.dataSource.data=this.vos}},{key:"checkboxLabel",value:function(t){return"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(a.x4))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-vos-list"]],viewQuery:function(t,e){var i;(1&t&&(s.Gf(n.YE,7),s.Gf(o.l9,7)),2&t)&&(s.iGM(i=s.CRH())&&(e.matSort=i.first),s.iGM(i=s.CRH())&&(e.child=i.first))},inputs:{vos:"vos",recentIds:"recentIds",filterValue:"filterValue",selection:"selection",displayedColumns:"displayedColumns",disableRouting:"disableRouting",pageSizeOptions:"pageSizeOptions",tableId:"tableId"},features:[s.TTD],decls:22,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","shortName"],["matColumnDef","name"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",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"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn","data-cy","no-filter-result"],["alert_type","warn"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,m,1,0,"th",4),s.YNc(5,v,2,2,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,y,3,3,"th",7),s.YNc(8,_,2,1,"td",8),s.BQk(),s.ynx(9,9),s.YNc(10,b,1,0,"th",10),s.YNc(11,w,2,2,"td",11),s.BQk(),s.ynx(12,12),s.YNc(13,A,3,3,"th",7),s.YNc(14,k,2,2,"td",11),s.BQk(),s.ynx(15,13),s.YNc(16,C,3,3,"th",7),s.YNc(17,T,2,1,"td",11),s.BQk(),s.YNc(18,E,1,0,"tr",14),s.YNc(19,I,1,8,"tr",15),s.qZA(),s.qZA(),s.qZA(),s.YNc(20,R,3,3,"app-alert",16),s.YNc(21,x,3,3,"app-alert",17)),2&t&&(s.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.vos.length),s.xp6(1),s.Q6J("dataLength",e.dataSource.filteredData.length)("tableId",e.tableId)("pageSizeOptions",e.pageSizeOptions),s.xp6(1),s.Q6J("dataSource",e.dataSource),s.xp6(16),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.vos.length),s.xp6(1),s.Q6J("ngIf",0===e.vos.length))},directives:[c.l,r.BZ,n.YE,r.w1,r.fO,r.Dz,r.as,r.nj,u.O5,r.ge,r.ev,l.oG,n.nU,h.W,r.XQ,r.Gk,d.YH,f.rH,p.w],pipes:[g.X$],styles:[".card[_ngcontent-%COMP%]{border-radius:0!important}.static-column-size[_ngcontent-%COMP%]{width:80px}.disable-outline[_ngcontent-%COMP%]{outline:none!important}tr[_ngcontent-%COMP%]{cursor:pointer}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t}()},6527:function(t,e,i){"use strict";i.d(e,{Wr:function(){return ft},r2:function(){return dt},gr:function(){return vt},u3:function(){return Xt},Qu:function(){return _e},pf:function(){return A},xF:function(){return re},hd:function(){return le},kZ:function(){return se},wA:function(){return ht},rd:function(){return M},Eg:function(){return D},Bp:function(){return H},qD:function(){return Ht},jd:function(){return Ft},FM:function(){return V},Lc:function(){return nt},mk:function(){return at},Tf:function(){return Ct}}),i(22280);var n=i(18820),r=i(84608),o=i(65249),a=i(68416),s=i(31572),c=i(48160),u=i(61511),l=i(15980),h=i(67806),d=i(66283),f=i(4786),p=i(71522),g=i(5725);function m(t,e){1&t&&s._UZ(0,"mat-spinner",6)}function v(t,e){if(1&t&&(s.TgZ(0,"mat-option",17),s._uU(1),s.ALo(2,"memberStatus"),s.qZA()),2&t){var i=e.$implicit;s.Q6J("value",i),s.xp6(1),s.Oqu(s.lcZ(2,2,i))}}function y(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"mat-form-field",14),s.TgZ(1,"mat-label"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"mat-select",15),s.NdJ("selectionChange",function(t){return s.CHM(i),s.oxw(3).changeStatus(t)}),s.YNc(5,v,3,4,"mat-option",16),s.qZA(),s.qZA()}if(2&t){var n=s.oxw(3);s.xp6(2),s.Oqu(s.lcZ(3,2,"DIALOGS.CHANGE_STATUS.SELECT_STATUS")),s.xp6(3),s.Q6J("ngForOf",n.allStatuses)}}function _(t,e){if(1&t&&(s.TgZ(0,"div",8),s._uU(1),s.ALo(2,"translate"),s.YNc(3,y,6,4,"mat-form-field",13),s.qZA()),2&t){var i=s.oxw(2);s.xp6(1),s.hij(" ",s.lcZ(2,2,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," "),s.xp6(2),s.Q6J("ngIf",!i.loading)}}function b(t,e){if(1&t&&(s.TgZ(0,"div",8),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"memberStatus"),s.qZA()),2&t){var i=s.oxw(2);s.xp6(1),s.AsE(" ",s.lcZ(2,2,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," ",s.lcZ(3,4,i.allStatuses[0])," ")}}function w(t,e){if(1&t&&(s.TgZ(0,"div",7),s.TgZ(1,"div",8),s._uU(2),s.ALo(3,"translate"),s.ALo(4,"memberStatus"),s.qZA(),s.TgZ(5,"div",9),s._uU(6),s.qZA(),s.YNc(7,_,4,4,"div",10),s.YNc(8,b,4,6,"div",10),s.TgZ(9,"div",11),s._UZ(10,"i",12),s.qZA(),s.qZA()),2&t){var i=s.oxw();s.xp6(2),s.AsE("",s.lcZ(3,6,"DIALOGS.CHANGE_STATUS.CURRENT_STATUS")," ",s.lcZ(4,8,i.actualStatus),""),s.xp6(4),s.Oqu(i.description),s.xp6(1),s.Q6J("ngIf",i.allStatuses.length>1),s.xp6(1),s.Q6J("ngIf",1===i.allStatuses.length),s.xp6(2),s.Q6J("innerHTML",i.changeMessage,s.oJD)}}var A=function(){var t=function(){function t(e,i,n,r,o,a){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.memberManager=n,this.groupsManager=r,this.notificatorService=o,this.translate=a,this.loading=!1,this.allStatuses=["VALID","INVALID","EXPIRED","DISABLED"]}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;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(function(e){return e!==t.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=""}}},{key:"changeStatus",value:function(t){this.selectedStatus=t.value,this.submitButtonText="VALID"===this.actualStatus&&"EXPIRED"===this.selectedStatus||"VALID"===this.actualStatus&&"DISABLED"===this.selectedStatus||"VALID"===this.selectedStatus?this.changeStatusWithExpButton:this.changeStatusButton,this.changeStatusMessage(this.actualStatus,this.selectedStatus)}},{key:"changeStatusMessage",value:function(t,e){if("VALID"===t)switch(e){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(e){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=""}}},{key:"cancel",value:function(){this.dialogRef.close()}},{key:"submit",value:function(){var t=this;this.loading=!0,this.data.groupId?this.groupsManager.setGroupsMemberStatus(this.data.member.id,this.data.groupId,this.selectedStatus).subscribe(function(e){t.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(function(i){t.notificatorService.showSuccess(i),t.dialogRef.close(e)})},function(){return t.loading=!1}):this.memberManager.setStatus(this.data.member.id,this.selectedStatus).subscribe(function(e){t.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(function(i){t.notificatorService.showSuccess(i),t.dialogRef.close(e)})},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(r.WI),s.Y36(o.uq),s.Y36(o.ff),s.Y36(a.V6),s.Y36(c.sK))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,m,1,0,"mat-spinner",1),s.YNc(5,w,11,10,"div",2),s.TgZ(6,"div",3),s.TgZ(7,"button",4),s.NdJ("click",function(){return e.cancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return e.submit()}),s._uU(11),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.Oqu(s.lcZ(3,9,"DIALOGS.CHANGE_STATUS.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,11,"DIALOGS.CHANGE_STATUS.CANCEL")," "),s.xp6(2),s.Q6J("disabled",e.loading||!e.selectedStatus),s.xp6(1),s.hij(" ",e.submitButtonText," "))},directives:[r.uh,u.O5,r.H8,l.lW,h.$g,r.xY,d.KE,d.hX,f.gD,u.sg,p.ey],pipes:[c.X$,g.l],styles:[".new-line[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),t}(),k=i(16073),C=i(80340);function T(t,e){1&t&&(s.TgZ(0,"h1",7),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_FACILITY")))}function E(t,e){1&t&&(s.TgZ(0,"h1",7),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_RESOURCE")))}function S(t,e){1&t&&(s.TgZ(0,"h1",7),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_VO")))}function I(t,e){1&t&&(s.TgZ(0,"h1",7),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_GROUP")))}function R(t,e){1&t&&s._UZ(0,"mat-spinner",8)}function x(t,e){if(1&t&&(s.TgZ(0,"mat-form-field"),s._UZ(1,"input",13),s.ALo(2,"translate"),s.qZA()),2&t){var i=s.oxw(2);s.xp6(1),s.MGl("placeholder","",s.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SHORT_NAME"),":"),s.Q6J("value",i.shortName)}}function O(t,e){if(1&t&&(s.TgZ(0,"mat-form-field",14),s._UZ(1,"textarea",15),s.ALo(2,"translate"),s.qZA()),2&t){var i=s.oxw(2);s.xp6(1),s.MGl("placeholder","",s.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.DESCRIPTION"),":"),s.Q6J("formControl",i.descriptionCtrl)}}function P(t,e){if(1&t&&(s.TgZ(0,"div",9),s.YNc(1,x,3,4,"mat-form-field",10),s.TgZ(2,"mat-form-field"),s._UZ(3,"input",11),s.ALo(4,"translate"),s.TgZ(5,"mat-error"),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.qZA(),s.YNc(8,O,3,4,"mat-form-field",12),s.qZA()),2&t){var i=s.oxw();s.xp6(1),s.Q6J("ngIf",2===i.dialogType),s.xp6(2),s.MGl("placeholder","",s.lcZ(4,5,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.NAME"),":"),s.Q6J("formControl",i.nameCtrl),s.xp6(3),s.hij(" ",i.invalidNameMessage.length?i.invalidNameMessage:s.lcZ(7,7,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FILL_NAME")," "),s.xp6(2),s.Q6J("ngIf",2!==i.dialogType)}}var D=function(t){return t[t.FACILITY=0]="FACILITY",t[t.RESOURCE=1]="RESOURCE",t[t.VO=2]="VO",t[t.GROUP=3]="GROUP",t}({}),M=function(){var t=function(){function t(e,i,n,r,o,a,s,c,u){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translateService=r,this.facilitiesManager=o,this.resourcesManager=a,this.groupsManager=s,this.vosManager=c,this.store=u,this.invalidNameMessage=this.data.dialogType===D.GROUP?this.store.get("group_name_error_message"):"",this.loading=!1,this.secondaryRegex=this.data.dialogType===D.GROUP?this.store.get("group_name_secondary_regex"):""}return _createClass(t,[{key:"ngOnInit",value:function(){switch(this.theme=this.data.theme,this.dialogType=this.data.dialogType,this.dialogType){case D.FACILITY:this.nameCtrl=new k.NI(this.data.facility.name,[k.kI.required,k.kI.pattern(".*[\\S]+.*"),k.kI.maxLength(129)]),this.descriptionCtrl=new k.NI(this.data.facility.description);break;case D.RESOURCE:this.nameCtrl=new k.NI(this.data.resource.name,[k.kI.required,k.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new k.NI(this.data.resource.description);break;case D.GROUP:var t=this.data.group.name.split(":");this.nameCtrl=new k.NI(t[t.length-1],[k.kI.required,k.kI.pattern(".*[\\S]+.*"),k.kI.pattern(this.secondaryRegex),k.kI.maxLength(129)]),this.descriptionCtrl=new k.NI(this.data.group.description);break;case D.VO:this.shortName=this.data.vo.shortName,this.nameCtrl=new k.NI(this.data.vo.name,[k.kI.required,k.kI.pattern(".*[\\S]+.*"),k.kI.maxLength(129)]),this.descriptionCtrl=new k.NI}}},{key:"cancel",value:function(){this.dialogRef.close(!1)}},{key:"submit",value:function(){switch(this.loading=!0,this.dialogType){case D.FACILITY:this.editFacility();break;case D.RESOURCE:this.editResource();break;case D.GROUP:this.editGroup();break;case D.VO:this.editVo()}}},{key:"editResource",value:function(){var t=this;this.data.resource.name=this.nameCtrl.value,this.data.resource.description=this.descriptionCtrl.value,this.resourcesManager.updateResource({resource:this.data.resource}).subscribe(function(){t.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.RESOURCE_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})}},{key:"editFacility",value:function(){var t=this;this.data.facility.name=this.nameCtrl.value,this.data.facility.description=this.descriptionCtrl.value,this.facilitiesManager.updateFacility({facility:this.data.facility}).subscribe(function(){t.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FACILITY_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})}},{key:"editGroup",value:function(){var t=this;this.groupsManager.getGroupById(this.data.group.id).subscribe(function(e){var i=e;i.name=t.nameCtrl.value,i.description=t.descriptionCtrl.value,t.groupsManager.updateGroup({group:i}).subscribe(function(){t.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.GROUP_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})},function(){return t.loading=!1})}},{key:"editVo",value:function(){var t=this;this.data.vo.name=this.nameCtrl.value,this.vosManager.updateVo({vo:this.data.vo}).subscribe(function(){t.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.VO_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(r.WI),s.Y36(a.V6),s.Y36(c.sK),s.Y36(o.IQ),s.Y36(o.xk),s.Y36(o.ff),s.Y36(o.YF),s.Y36(a.d6))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div"),s.YNc(1,T,3,3,"h1",0),s.YNc(2,E,3,3,"h1",0),s.YNc(3,S,3,3,"h1",0),s.YNc(4,I,3,3,"h1",0),s.TgZ(5,"div",1),s.YNc(6,R,1,0,"mat-spinner",2),s.YNc(7,P,9,9,"div",3),s.qZA(),s.TgZ(8,"div",4),s.TgZ(9,"button",5),s.NdJ("click",function(){return e.cancel()}),s._uU(10),s.ALo(11,"translate"),s.qZA(),s.TgZ(12,"button",6),s.NdJ("click",function(){return e.submit()}),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(1),s.Q6J("ngIf",0===e.dialogType),s.xp6(1),s.Q6J("ngIf",1===e.dialogType),s.xp6(1),s.Q6J("ngIf",2===e.dialogType),s.xp6(1),s.Q6J("ngIf",3===e.dialogType),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(11,12,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.CANCEL_BUTTON")," "),s.xp6(2),s.Q6J("disabled",e.loading||e.nameCtrl.invalid||e.descriptionCtrl.invalid),s.xp6(1),s.hij(" ",s.lcZ(14,14,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SUBMIT_BUTTON")," "))},directives:[u.O5,r.xY,r.H8,l.lW,r.uh,h.$g,d.KE,C.Nt,k.Fj,k.Q7,k.JJ,k.oH,d.TO,C.D7],pipes:[c.X$],styles:[""]}),t}(),L=i(67004),N=i(84140),z=i(43691);function Z(t,e){1&t&&s._UZ(0,"mat-spinner",8)}function B(t,e){if(1&t&&(s.TgZ(0,"div",9),s.TgZ(1,"span"),s._uU(2),s.ALo(3,"translate"),s.TgZ(4,"b"),s._uU(5),s.qZA(),s.qZA(),s._UZ(6,"br"),s.TgZ(7,"span"),s._uU(8),s.ALo(9,"translate"),s.TgZ(10,"b"),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s._UZ(13,"br"),s.TgZ(14,"span"),s._uU(15),s.ALo(16,"translate"),s.TgZ(17,"b"),s._uU(18),s.ALo(19,"translate"),s.qZA(),s.qZA(),s._UZ(20,"br"),s.TgZ(21,"span"),s._uU(22),s.ALo(23,"translate"),s.TgZ(24,"b"),s._uU(25),s.ALo(26,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t){var i=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,8,"DIALOGS.GROUP_SYNC_DETAIL.GROUP_NAME")," "),s.xp6(3),s.Oqu(i.group.name),s.xp6(3),s.hij(" ",s.lcZ(9,10,"DIALOGS.GROUP_SYNC_DETAIL.SYNCHRONIZATION")," "),s.xp6(3),s.Oqu(s.lcZ(12,12,i.getSynchronizationType())),s.xp6(4),s.hij(" ",s.lcZ(16,14,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_STATE")," "),s.xp6(3),s.Oqu(s.lcZ(19,16,i.getLastSyncState())),s.xp6(4),s.hij(" ",s.lcZ(23,18,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_TIME")," "),s.xp6(3),s.Oqu(s.lcZ(26,20,i.getLastSyncTime()))}}function F(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"button",10),s.NdJ("click",function(){return s.CHM(i),s.oxw().onForceStructure()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){var n=s.oxw();s.Q6J("disabled",n.loading),s.xp6(1),s.hij(" ",s.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE_STRUCTURE")," ")}}function q(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"button",10),s.NdJ("click",function(){return s.CHM(i),s.oxw().onForce()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){var n=s.oxw();s.Q6J("disabled",n.loading),s.xp6(1),s.hij(" ",s.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE")," ")}}var H=function(){var t=function(){function t(e,i,n,r){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.groupService=n,this.notificator=r,this.loading=!0}return _createClass(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.loadGroup()}},{key:"onForceStructure",value:function(){var t=this;this.loading=!0,this.groupService.forceGroupStructureSynchronization(this.data.groupId).subscribe(function(){t.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.STRUCT_FORCE_SUCCESS"),t.loading=!1},function(){return t.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(null)}},{key:"onForce",value:function(){var t=this;this.loading=!0,this.isBasic()&&this.groupService.forceGroupSynchronization(this.group.id).subscribe(function(){t.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),t.refresh()},function(){return t.loading=!1}),this.isStructured()&&this.groupService.forceGroupStructureSynchronization(this.group.id).subscribe(function(){t.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),t.refresh()},function(){return t.loading=!1})}},{key:"getSynchronizationType",value:function(){return this.isBasic()?"DIALOGS.GROUP_SYNC_DETAIL.NORMAL_SYNC":this.isStructured()?"DIALOGS.GROUP_SYNC_DETAIL.STRUCT_SYNC":"N/A"}},{key:"isBasic",value:function(){return"BASIC"===this.type}},{key:"isStructured",value:function(){return"STRUCTURED"===this.type}},{key:"getLastSyncState",value:function(){return this.isBasic()?""!==this.lastSyncState?this.lastSyncState:"OK":this.isStructured()?""!==this.lastStructSyncState?this.lastStructSyncState:"OK":"N/A"}},{key:"getLastSyncTime",value:function(){return this.isBasic()?this.lastSyncTime:this.isStructured()?this.lastStructSyncTime:"N/A"}},{key:"refresh",value:function(){this.loadGroup()}},{key:"loadGroup",value:function(){var t=this;this.loading=!0,this.groupService.getRichGroupByIdWithAttributesByNames(this.data.groupId,[L.r.GROUP_SYNC_ENABLED,L.r.GROUP_LAST_SYNC_STATE,L.r.GROUP_LAST_SYNC_TIMESTAMP,L.r.GROUP_STRUCTURE_SYNC_ENABLED,L.r.GROUP_LAST_STRUCTURE_SYNC_STATE,L.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(function(e){t.group=e,t.syncEnabled=(0,N.IL)(t.group.attributes,L.r.GROUP_SYNC_ENABLED).value,t.lastSyncState=(0,N.IL)(t.group.attributes,L.r.GROUP_LAST_SYNC_STATE).value,t.lastSyncTime=(0,N.IL)(t.group.attributes,L.r.GROUP_LAST_SYNC_TIMESTAMP).value,t.structSyncEnabled=(0,N.IL)(t.group.attributes,L.r.GROUP_STRUCTURE_SYNC_ENABLED).value,t.lastStructSyncState=(0,N.IL)(t.group.attributes,L.r.GROUP_LAST_STRUCTURE_SYNC_STATE).value,t.lastStructSyncTime=(0,N.IL)(t.group.attributes,L.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP).value,null!==t.syncEnabled&&"true"===t.syncEnabled&&(t.type="BASIC"),null!==t.structSyncEnabled&&t.structSyncEnabled&&(t.type="STRUCTURED"),t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(r.WI),s.Y36(o.ff),s.Y36(a.V6))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,Z,1,0,"mat-spinner",1),s.YNc(5,B,27,22,"div",2),s.TgZ(6,"div",3),s.TgZ(7,"div",4),s.TgZ(8,"button",5),s.NdJ("click",function(){return e.refresh()}),s.TgZ(9,"mat-icon"),s._uU(10,"refresh"),s.qZA(),s.qZA(),s.YNc(11,F,3,4,"button",6),s.YNc(12,q,3,4,"button",6),s.TgZ(13,"button",7),s.NdJ("click",function(){return e.onCancel()}),s._uU(14),s.ALo(15,"translate"),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.Oqu(s.lcZ(3,9,"DIALOGS.GROUP_SYNC_DETAIL.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(6),s.Q6J("ngIf",e.isStructured()),s.xp6(1),s.Q6J("ngIf",e.isBasic()||e.isStructured()),s.xp6(2),s.hij(" ",s.lcZ(15,11,"DIALOGS.GROUP_SYNC_DETAIL.CANCEL")," "))},directives:[r.uh,u.O5,r.H8,l.lW,z.Hw,h.$g,r.xY],pipes:[c.X$],styles:[""]}),t}();function U(t,e){1&t&&s._UZ(0,"mat-spinner",7)}function G(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function j(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function Y(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"div",8),s.TgZ(1,"mat-form-field"),s.TgZ(2,"mat-label"),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.TgZ(5,"input",9,10),s.NdJ("ngModelChange",function(t){return s.CHM(i),s.oxw().subject=t}),s.qZA(),s.YNc(7,G,3,3,"mat-error",11),s.qZA(),s.TgZ(8,"mat-form-field"),s.TgZ(9,"mat-label"),s._uU(10),s.ALo(11,"translate"),s.qZA(),s.TgZ(12,"textarea",12,13),s.NdJ("ngModelChange",function(t){return s.CHM(i),s.oxw().message=t}),s.ALo(14,"translate"),s._uU(15," "),s.qZA(),s.YNc(16,j,3,3,"mat-error",11),s.qZA(),s.qZA()}if(2&t){var n=s.MAs(6),r=s.MAs(13),o=s.oxw();s.xp6(3),s.Oqu(s.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),s.xp6(2),s.Q6J("ngModel",o.subject),s.xp6(2),s.Q6J("ngIf",n.invalid),s.xp6(3),s.Oqu(s.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),s.xp6(2),s.s9C("placeholder",s.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),s.Q6J("ngModel",o.message),s.xp6(4),s.Q6J("ngIf",r.invalid)}}var K=function(){var t=function(){function t(e,i,n,r,o,a){_classCallCheck(this,t),this.dialogRef=e,this.translate=i,this.notificator=n,this.rtMessages=r,this.data=o,this.storeService=a,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.data.error&&this.data.error.errorId&&(this.subject=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE")+this.parseMethod(this.data.error.call)+" ("+this.data.error.errorId+")")}},{key:"sendBugReport",value:function(){var t=this;this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(function(e){t.dialogRef.afterClosed().subscribe(function(){t.notificator.showSuccess(t.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1")+e.ticketNumber+t.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"))}),t.dialogRef.close()},function(){t.loading=!1,t.dialogRef.afterClosed().subscribe(function(){})})}},{key:"getFullEmailBody",value:function(){var t=this.storeService.get("config"),e=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(e=(e=e.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n")).concat(this.data.error.message+"\nPerun instance: "+t+"\nRequest:\n"+this.data.error.urlWithParams+"\n\n"),this.data.error.payload){var n=JSON.stringify(this.data.error.payload);n=n.replace(/"password":".+?"/,'"password":"####"'),e=e.concat("Payload:\n"+n+"\n\n")}return(e=e.concat("Sended from new Perun Gui, version: "+i(60306).i8)).split("\n").join("\n ")}},{key:"parseMethod",value:function(t){return t?this.methodRegexp.exec(t)[1]:t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(c.sK),s.Y36(a.V6),s.Y36(o.Hr),s.Y36(r.WI),s.Y36(a.d6))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.YNc(3,U,1,0,"mat-spinner",1),s.YNc(4,Y,17,13,"div",2),s.TgZ(5,"div",3),s.TgZ(6,"div",4),s.TgZ(7,"button",5),s.NdJ("click",function(){return e.dialogRef.close()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",6),s.NdJ("click",function(){return e.sendBugReport()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(4),s.hij(" ",s.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),s.xp6(2),s.Q6J("disabled",""===e.message||""===e.subject||e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},directives:[r.uh,u.O5,r.H8,l.lW,h.$g,r.xY,d.KE,d.hX,C.Nt,k.Fj,k.Q7,k.JJ,k.On,d.TO],pipes:[c.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t}(),V=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.dialogRef=e,this.dialog=i,this.data=n}return _createClass(t,[{key:"onCloseClick",value:function(){this.dialogRef.close()}},{key:"onBugReportClick",value:function(){var t=this;this.dialogRef.afterClosed().subscribe(function(){var e=(0,N.kZ)();e.width="550px",e.data={error:t.data.error},e.autoFocus=!1,t.dialog.open(K,e)}),this.dialogRef.close()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(r.uw),s.Y36(r.WI))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.qZA(),s.TgZ(2,"div",1),s._uU(3),s.qZA(),s.TgZ(4,"div",2),s.TgZ(5,"div",3),s.TgZ(6,"button",4),s.NdJ("click",function(){return e.onBugReportClick()}),s._uU(7),s.ALo(8,"translate"),s.qZA(),s.TgZ(9,"button",5),s.NdJ("click",function(){return e.onCloseClick()}),s._uU(10),s.ALo(11,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(e.data.title),s.xp6(2),s.hij("\n",e.data.description,"\n"),s.xp6(3),s.Q6J("hidden","error"!==e.data.type),s.xp6(1),s.hij(" ",s.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),s.xp6(3),s.hij(" ",s.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},directives:[r.uh,r.xY,r.H8,l.lW],pipes:[c.X$],styles:[""]}),t}(),J=i(67033),Q=i(83787);function W(t,e){1&t&&s._UZ(0,"mat-spinner",3)}function X(t,e){1&t&&s._UZ(0,"th",15)}function $(t,e){if(1&t&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.hij(" ",i.userExtSource.extSource.name," ")}}function tt(t,e){1&t&&s._UZ(0,"tr",17)}function et(t,e){1&t&&s._UZ(0,"tr",18)}function it(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"div",4),s.TgZ(2,"p"),s._uU(3),s.ALo(4,"translate"),s.ALo(5,"customTranslate"),s.qZA(),s.TgZ(6,"div",5),s._uU(7),s.ALo(8,"translate"),s.ALo(9,"customTranslate"),s.qZA(),s.TgZ(10,"table",6),s.ynx(11,7),s.YNc(12,X,1,0,"th",8),s.YNc(13,$,2,1,"td",9),s.BQk(),s.YNc(14,tt,1,0,"tr",10),s.YNc(15,et,1,0,"tr",11),s.qZA(),s.qZA(),s.TgZ(16,"div",12),s.TgZ(17,"button",13),s.NdJ("click",function(){return s.CHM(i),s.oxw().onCancel()}),s._uU(18),s.ALo(19,"translate"),s.ALo(20,"customTranslate"),s.qZA(),s.TgZ(21,"button",14),s.NdJ("click",function(){return s.CHM(i),s.oxw().onSubmit()}),s._uU(22),s.ALo(23,"translate"),s.ALo(24,"customTranslate"),s.qZA(),s.qZA(),s.qZA()}if(2&t){var n=s.oxw();s.xp6(3),s.hij(" ",s.lcZ(4,7,s.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),s.xp6(4),s.hij(" ",s.lcZ(8,11,s.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),s.xp6(3),s.Q6J("dataSource",n.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",n.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",n.displayedColumns),s.xp6(3),s.hij(" ",s.lcZ(19,15,s.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),s.xp6(4),s.hij(" ",s.lcZ(23,19,s.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}var nt=function(){var t=function(){function t(e,i,n,r,o){var a=this;_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.usersManagerService=n,this.translate=r,this.notificator=o,this.force=!1,this.displayedColumns=["name"],r.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(function(t){return a.successMessage=t})}return _createClass(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new J.by(this.data.extSources)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.data.extSources.length?this.usersManagerService.removeUserExtSource(this.data.userId,this.data.extSources.pop().userExtSource.id,this.force).subscribe(function(){t.onSubmit()},function(){return t.loading=!1}):(this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(r.WI),s.Y36(o.Fv),s.Y36(c.sK),s.Y36(a.V6))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.TgZ(4,"div"),s.YNc(5,W,1,0,"mat-spinner",1),s.YNc(6,it,25,23,"div",2),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,6,s.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE"))),s.xp6(3),s.Tol(e.theme),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[r.uh,u.O5,h.$g,r.xY,J.BZ,J.w1,J.fO,J.Dz,J.as,J.nj,r.H8,l.lW,J.ge,J.ev,J.XQ,J.Gk],pipes:[c.X$,Q.a],styles:[""]}),t}(),rt=i(10901),ot=i(81391),at=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.dialogRef=e,this.data=i}return _createClass(t,[{key:"ngOnInit",value:function(){this.value=this.data.value,this.title=this.data.title}},{key:"onCancel",value:function(){this.dialogRef.close()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(r.WI))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.qZA(),s.TgZ(2,"div",1),s.TgZ(3,"textarea",2),s._uU(4),s.qZA(),s.qZA(),s.TgZ(5,"div",3),s.TgZ(6,"button",4),s.NdJ("click",function(){return e.onCancel()}),s._uU(7),s.ALo(8,"translate"),s.qZA(),s.TgZ(9,"button",5),s._uU(10),s.ALo(11,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(e.title),s.xp6(3),s.Oqu(e.value),s.xp6(3),s.hij(" ",s.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),s.xp6(2),s.Q6J("cdkCopyToClipboard",e.value),s.xp6(1),s.hij(" ",s.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},directives:[r.uh,r.xY,rt.IC,C.Nt,r.H8,l.lW,ot.i3],pipes:[c.X$],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),t}();function st(t,e){1&t&&s._UZ(0,"th",12)}function ct(t,e){if(1&t&&(s.TgZ(0,"td",13),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.hij(" ",i.displayName," ")}}function ut(t,e){1&t&&s._UZ(0,"tr",14)}function lt(t,e){1&t&&s._UZ(0,"tr",15)}var ht=function(){var t=function(){function t(e,i,n,r,o){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translate=r,this.attributesManager=o,this.displayedColumns=["name"]}return _createClass(t,[{key:"ngOnInit",value:function(){this.dataSource=new J.by(this.data.attributes)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t,e=this,i=[],n=_createForOfIteratorHelper(this.data.attributes);try{for(n.s();!(t=n.n()).done;){var r=t.value;i.push(r.id)}}catch(a){n.e(a)}finally{n.f()}var o={};switch(o[this.data.entity]=this.data.entityId,o.attributes=i,void 0!==this.data.secondEntity&&(o[this.data.secondEntity]=this.data.secondEntityId),this.data.entity){case"vo":this.attributesManager.setVoAttributes({vo:this.data.entityId,attributes:this.data.attributes}).subscribe(function(){e.onSuccess()});break;case"group":switch(this.data.secondEntity){case"resource":this.attributesManager.setGroupResourceAttributes({group:this.data.entityId,resource:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(function(){return e.onSuccess()});break;default:this.attributesManager.setGroupAttributes({group:this.data.entityId,attributes:this.data.attributes}).subscribe(function(){e.onSuccess()})}break;case"user":switch(this.data.secondEntity){case"facility":this.attributesManager.setUserFacilityAttributes({user:this.data.entityId,facility:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(function(){return e.onSuccess()});break;default:this.attributesManager.setUserAttributes({user:this.data.entityId,attributes:this.data.attributes}).subscribe(function(){e.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(function(){return e.onSuccess()});break;case"group":this.attributesManager.setMemberGroupAttributes({member:this.data.entityId,group:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(function(){return e.onSuccess()});break;default:this.attributesManager.setMemberAttributes({member:this.data.entityId,attributes:this.data.attributes}).subscribe(function(){e.onSuccess()})}break;case"facility":this.attributesManager.setFacilityAttributes({facility:this.data.entityId,attributes:this.data.attributes}).subscribe(function(){e.onSuccess()});break;case"host":this.attributesManager.setHostAttributes({host:this.data.entityId,attributes:this.data.attributes}).subscribe(function(){e.onSuccess()});break;case"ues":this.attributesManager.setUserExtSourceAttributes({userExtSource:this.data.entityId,attributes:this.data.attributes}).subscribe(function(){e.onSuccess()});break;case"resource":this.attributesManager.setResourceAttributes({resource:this.data.entityId,attributes:this.data.attributes}).subscribe(function(){return e.onSuccess()})}}},{key:"onSuccess",value:function(){var t=this;this.translate.get("DIALOGS.EDIT_ATTRIBUTES.SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(r.WI),s.Y36(a.V6),s.Y36(c.sK),s.Y36(o.H8))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s.TgZ(4,"div"),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"div",2),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"table",3),s.ynx(11,4),s.YNc(12,st,1,0,"th",5),s.YNc(13,ct,2,1,"td",6),s.BQk(),s.YNc(14,ut,1,0,"tr",7),s.YNc(15,lt,1,0,"tr",8),s.qZA(),s.qZA(),s.TgZ(16,"div",9),s.TgZ(17,"button",10),s.NdJ("click",function(){return e.onCancel()}),s._uU(18),s.ALo(19,"translate"),s.qZA(),s.TgZ(20,"button",11),s.NdJ("click",function(){return e.onSubmit()}),s._uU(21),s.ALo(22,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,8,"DIALOGS.EDIT_ATTRIBUTES.TITLE")),s.xp6(4),s.hij(" ",s.lcZ(6,10,"DIALOGS.EDIT_ATTRIBUTES.DESCRIPTION")," "),s.xp6(3),s.hij(" ",s.lcZ(9,12,"DIALOGS.EDIT_ATTRIBUTES.ASK")," "),s.xp6(2),s.Q6J("dataSource",e.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(3),s.hij(" ",s.lcZ(19,14,"DIALOGS.EDIT_ATTRIBUTES.CANCEL")," "),s.xp6(3),s.hij(" ",s.lcZ(22,16,"DIALOGS.EDIT_ATTRIBUTES.SAVE")," "))},directives:[r.uh,r.xY,J.BZ,J.w1,J.fO,J.Dz,J.as,J.nj,r.H8,l.lW,J.ge,J.ev,J.XQ,J.Gk],pipes:[c.X$],styles:[""]}),t}(),dt=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.attributeValue=""}return _createClass(t,[{key:"ngOnInit",value:function(){this.attributeValue=this.data.attribute.value[this.data.index]}},{key:"cancel",value:function(){this.dialogRef.close()}},{key:"submit",value:function(){this.data.attribute.value[this.data.index]=this.attributeValue,this.dialogRef.close(!0)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(r.WI))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h5",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s.TgZ(4,"mat-form-field"),s.TgZ(5,"textarea",2),s.NdJ("ngModelChange",function(t){return e.attributeValue=t}),s.qZA(),s.qZA(),s.qZA(),s.TgZ(6,"div",3),s.TgZ(7,"button",4),s.NdJ("click",function(){return e.cancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return e.submit()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE")),s.xp6(4),s.Q6J("ngModel",e.attributeValue),s.xp6(3),s.hij(" ",s.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),s.xp6(3),s.hij(" ",s.lcZ(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},directives:[r.uh,r.xY,d.KE,rt.IC,C.Nt,k.Fj,k.JJ,k.On,r.H8,l.lW],pipes:[c.X$],styles:[""]}),t}(),ft=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.dialogRef=e,this.data=i}return _createClass(t,[{key:"cancel",value:function(){this.dialogRef.close()}},{key:"submit",value:function(){this.dialogRef.close(!0)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(r.WI))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h5",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s.TgZ(4,"div"),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"div",2),s._uU(8),s.qZA(),s.qZA(),s.TgZ(9,"div",3),s.TgZ(10,"button",4),s.NdJ("click",function(){return e.cancel()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.TgZ(13,"button",5),s.NdJ("click",function(){return e.submit()}),s._uU(14),s.ALo(15,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE")),s.xp6(4),s.hij(" ",s.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),s.xp6(3),s.hij(" ",e.data.name," "),s.xp6(3),s.hij(" ",s.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),s.xp6(3),s.hij(" ",s.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},directives:[r.uh,r.xY,r.H8,l.lW],pipes:[c.X$],styles:[""]}),t}(),pt=i(39571);function gt(t,e){if(1&t&&(s.TgZ(0,"app-alert",9),s._uU(1),s.qZA()),2&t){var i=s.oxw();s.xp6(1),s.Oqu(i.pendingEmailsMessage)}}function mt(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}var vt=function(){var t=function(){function t(e,i,n,r,o,a){var s=this;_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.translate=n,this.notificator=r,this.usersManagerService=o,this.authService=a,this.pendingMails=[],n.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(function(t){return s.successMessage=t}),n.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(function(t){return s.pendingEmailsMessageStart=t}),n.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(function(t){return s.pendingEmailsMessageEnd=t})}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.emailControl=new k.NI(null,[k.kI.required,k.kI.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(function(e){t.pendingMails=e.filter(function(t,e,i){return e===i.indexOf(t)});var i="";t.pendingMails.forEach(function(e){return i+="".concat(e===t.pendingMails[0]?"":", ").concat(e)}),console.log(i),t.pendingEmailsMessage=t.pendingEmailsMessageStart+i+t.pendingEmailsMessageEnd})}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var t=this,e=window.location.href.split("/");this.usersManagerService.requestPreferredEmailChange(this.data.userId,this.emailControl.value,this.translate.currentLang,"",e[0]+"//"+e[2],this.authService.getIdpFilter()).subscribe(function(){t.notificator.showSuccess(t.successMessage),t.dialogRef.close()})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(r.WI),s.Y36(c.sK),s.Y36(a.V6),s.Y36(o.Fv),s.Y36(a.e8))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.TgZ(4,"div",1),s.YNc(5,gt,2,1,"app-alert",2),s.TgZ(6,"mat-form-field",3),s.TgZ(7,"label",3),s._UZ(8,"input",4),s.ALo(9,"translate"),s.ALo(10,"customTranslate"),s.qZA(),s.YNc(11,mt,4,5,"mat-error",5),s.qZA(),s.qZA(),s.TgZ(12,"div",6),s.TgZ(13,"button",7),s.NdJ("click",function(){return e.onCancel()}),s._uU(14),s.ALo(15,"translate"),s.ALo(16,"customTranslate"),s.qZA(),s.TgZ(17,"button",8),s.NdJ("click",function(){return e.onSubmit()}),s._uU(18),s.ALo(19,"translate"),s.ALo(20,"customTranslate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,8,s.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),s.xp6(4),s.Q6J("ngIf",e.pendingMails.length),s.xp6(3),s.s9C("placeholder",s.lcZ(9,12,s.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),s.Q6J("formControl",e.emailControl),s.xp6(3),s.Q6J("ngIf",e.emailControl.invalid),s.xp6(3),s.hij(" ",s.lcZ(15,16,s.lcZ(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),s.xp6(3),s.Q6J("disabled",!e.emailControl.valid),s.xp6(1),s.hij(" ",s.lcZ(19,20,s.lcZ(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},directives:[r.uh,r.xY,u.O5,d.KE,C.Nt,k.Fj,k.Q7,k.JJ,k.oH,r.H8,l.lW,pt.w,d.TO],pipes:[c.X$,Q.a],styles:[""]}),t}();function yt(t,e){1&t&&s._UZ(0,"mat-spinner",6)}function _t(t,e){1&t&&s._UZ(0,"th",15)}function bt(t,e){if(1&t&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.hij(" ",i," ")}}function wt(t,e){1&t&&s._UZ(0,"tr",17)}function At(t,e){1&t&&s._UZ(0,"tr",18)}function kt(t,e){if(1&t&&(s.TgZ(0,"div",7),s.TgZ(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,_t,1,0,"th",11),s.YNc(10,bt,2,1,"td",12),s.BQk(),s.YNc(11,wt,1,0,"tr",13),s.YNc(12,At,1,0,"tr",14),s.qZA(),s.qZA()),2&t){var i=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,5,i.data.description)," "),s.xp6(3),s.hij(" ",s.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "),s.xp6(2),s.Q6J("dataSource",i.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",i.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",i.displayedColumns)}}var Ct=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.displayedColumns=["name"],this.loading=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new J.by(this.data.items)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){this.dialogRef.close(!0)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(r.WI))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-universal-remove-items-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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,yt,1,0,"mat-spinner",1),s.YNc(5,kt,13,9,"div",2),s.TgZ(6,"div",3),s.TgZ(7,"button",4),s.NdJ("click",function(){return e.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return e.onSubmit()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.Oqu(s.lcZ(3,9,e.data.title)),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,11,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),s.xp6(2),s.Q6J("disabled",e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,13,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," "))},directives:[r.uh,u.O5,r.H8,l.lW,h.$g,r.xY,J.BZ,J.w1,J.fO,J.Dz,J.as,J.nj,J.ge,J.ev,J.XQ,J.Gk],pipes:[c.X$],styles:[""]}),t}(),Tt=i(71709),Et=i(91010),St=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){var e=t.split(":");return e[e.length-1]}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"parseGroupName",type:t,pure:!0}),t}();function It(t,e){1&t&&s._UZ(0,"mat-spinner",7)}function Rt(t,e){1&t&&(s.TgZ(0,"app-alert"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.NO_PATHS")))}function xt(t,e){1&t&&(s.TgZ(0,"span",23),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function Ot(t,e){1&t&&(s.TgZ(0,"span",23),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}var Pt=function(t){return{"min-width":t}};function Dt(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"mat-tree-node",16),s.TgZ(1,"li",17),s.TgZ(2,"div",18),s.NdJ("click",function(){var t=s.CHM(i).$implicit;return s.oxw(3).navigate(t.id,t.include)}),s._UZ(3,"button",19),s.TgZ(4,"div",20),s.TgZ(5,"span"),s._uU(6),s.ALo(7,"parseGroupName"),s.qZA(),s.YNc(8,xt,3,3,"span",21),s.YNc(9,Ot,3,3,"span",21),s.qZA(),s.TgZ(10,"span",22),s._uU(11),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){var n=e.$implicit,r=s.oxw(3);s.xp6(2),s.ekj("cursor-pointer",n.direct||n.include)("act-disabled",!n.direct&&!n.include),s.xp6(2),s.Q6J("ngStyle",s.VKq(11,Pt,r.getMinWidth(n.level))),s.xp6(2),s.Oqu(s.lcZ(7,9,n.name)),s.xp6(2),s.Q6J("ngIf",n.direct),s.xp6(1),s.Q6J("ngIf",n.include),s.xp6(2),s.Oqu(n.description)}}function Mt(t,e){1&t&&(s.TgZ(0,"span",23),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function Lt(t,e){1&t&&(s.TgZ(0,"span",23),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}function Nt(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"mat-nested-tree-node"),s.TgZ(1,"li"),s.TgZ(2,"div",17),s.TgZ(3,"button",24),s.TgZ(4,"mat-icon",25),s._uU(5),s.qZA(),s.qZA(),s.TgZ(6,"div",18),s.NdJ("click",function(){var t=s.CHM(i).$implicit;return s.oxw(3).navigate(t.id,t.include)}),s.TgZ(7,"div",20),s.TgZ(8,"span"),s._uU(9),s.ALo(10,"parseGroupName"),s.qZA(),s.YNc(11,Mt,3,3,"span",21),s.YNc(12,Lt,3,3,"span",21),s.qZA(),s.TgZ(13,"span",22),s._uU(14),s.qZA(),s.qZA(),s.qZA(),s.TgZ(15,"ul"),s.GkF(16,26),s.qZA(),s.qZA(),s.qZA()}if(2&t){var n=e.$implicit,r=s.oxw(3);s.xp6(3),s.uIk("aria-label","Toggle "+n.name),s.xp6(2),s.hij(" ",r.treeControl.isExpanded(n)?"expand_more":"chevron_right"," "),s.xp6(1),s.ekj("cursor-pointer",n.direct||n.include)("act-disabled",!n.direct&&!n.include),s.xp6(1),s.Q6J("ngStyle",s.VKq(15,Pt,r.getMinWidth(n.level))),s.xp6(2),s.Oqu(s.lcZ(10,13,n.name)),s.xp6(2),s.Q6J("ngIf",n.direct),s.xp6(1),s.Q6J("ngIf",n.include),s.xp6(2),s.Oqu(n.description),s.xp6(1),s.ekj("example-tree-invisible",!r.treeControl.isExpanded(n))}}function zt(t,e){if(1&t&&(s.TgZ(0,"mat-tree",13),s.YNc(1,Dt,12,13,"mat-tree-node",14),s.YNc(2,Nt,17,17,"mat-nested-tree-node",15),s.qZA()),2&t){var i=s.oxw(2);s.Q6J("dataSource",i.dataSource)("treeControl",i.treeControl),s.xp6(2),s.Q6J("matTreeNodeDefWhen",i.hasChild)}}function Zt(t,e){if(1&t&&(s.TgZ(0,"div",8),s.TgZ(1,"p"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"mat-form-field",9),s._UZ(5,"input",10),s.ALo(6,"translate"),s.qZA(),s.YNc(7,Rt,3,3,"app-alert",11),s.YNc(8,zt,3,3,"mat-tree",12),s.qZA()),2&t){var i=s.oxw();s.xp6(2),s.Oqu(s.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INFO")),s.xp6(3),s.s9C("placeholder",s.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.FILTER")),s.Q6J("formControl",i.formControl),s.xp6(2),s.Q6J("ngIf",!i.dataSource.data.length),s.xp6(1),s.Q6J("ngIf",i.dataSource.data.length)}}var Bt=function(t){return{name:t}},Ft=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.groupsManagerService=n,this.treeControl=new Tt.VY(function(t){return t.children}),this.dataSource=new Et.WX,this.groupTree=[],this.paths=[],this.formControl=new k.NI(""),this.userName="",this.hasChild=function(t,e){return!!e.children&&e.children.length>0}}return _createClass(t,[{key:"recursiveSearch",value:function(t,e,i){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1];window.open("/organizations/".concat(this.data.member.voId,"/groups/").concat(t).concat(e?"/settings/relations":""),"_blank")}},{key:"getMinWidth",value:function(t){return 400-40*t+"px"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(r.WI),s.Y36(o.ff))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,It,1,0,"mat-spinner",2),s.YNc(5,Zt,9,9,"div",3),s.TgZ(6,"div",4),s.TgZ(7,"div",5),s.TgZ(8,"button",6),s.NdJ("click",function(){return e.onCancel()}),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.xi3(3,4,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.TITLE",s.VKq(9,Bt,e.userName))),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(4),s.hij(" ",s.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.CLOSE")," "))},directives:[r.uh,u.O5,r.H8,l.lW,h.$g,r.xY,d.KE,C.Nt,k.Fj,k.JJ,k.oH,pt.w,Et.gi,Et.fQ,Et.uo,Et.eu,u.PC,Et.GZ,z.Hw,Et.Ar],pipes:[c.X$,St],styles:[".example-tree-invisible[_ngcontent-%COMP%]{display:none}.example-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .example-tree[_ngcontent-%COMP%] ul[_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:auto!important}"]}),t}(),qt=i(57629),Ht=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.dialogRef=e,this.router=i}return _createClass(t,[{key:"onClose",value:function(){this.router.navigate([]),this.dialogRef.close()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(qt.F0))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s.TgZ(4,"app-alert",2),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA(),s.TgZ(7,"div",3),s.TgZ(8,"button",4),s.NdJ("click",function(){return e.onClose()}),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE")),s.xp6(4),s.Oqu(s.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),s.xp6(4),s.hij(" ",s.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},directives:[r.uh,r.xY,pt.w,r.H8,l.lW],pipes:[c.X$],styles:[""]}),t}(),Ut=i(54810),Gt=i(15812),jt=i(58506);function Yt(t,e){1&t&&(s.TgZ(0,"mat-radio-button",16),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.VO_RULES")," "))}function Kt(t,e){1&t&&(s.TgZ(0,"mat-radio-button",17),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.GROUP_RULES")," "))}function Vt(t,e){1&t&&(s.TgZ(0,"app-alert",18),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.STATUS_CHANGE_INFO")))}var Jt=function(){var t=function(){function t(e){_classCallCheck(this,t),this.dialogRef=e,this.canExtendMembership=!1,this.expirationChanged=new s.vpe,this.statusChange=new s.vpe,this.expirationControl=new k.NI(null)}return _createClass(t,[{key:"ngOnInit",value:function(){var t=new Date;this.currentDate=(0,u.p6)(new Date(t.getFullYear(),t.getMonth(),t.getDate()),"yyyy-MM-dd","en_US"),"never"!==this.newExpiration&&this.expirationControl.setValue(this.newExpiration)}},{key:"parseDate",value:function(t){return(0,u.p6)(t,"yyyy-MM-dd","en_US")}},{key:"onChange",value:function(){"EXPIRED"===this.status&&("never"===this.newExpiration||this.parseDate(this.expirationControl.value)>this.currentDate)&&this.statusChange.emit(!0),this.expirationChanged.emit(this.newExpiration)}},{key:"onCancel",value:function(){this.dialogRef.close({success:!1})}},{key:"setExpiration",value:function(){this.newExpiration=(0,u.p6)(this.expirationControl.value,"yyyy-MM-dd","en"),this.expirationControl.setValue((0,u.p6)(this.expirationControl.value,"yyyy-MM-dd","en"))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so))},t.\u0275cmp=s.Xpm({type:t,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(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"p"),s.TgZ(3,"strong"),s._uU(4),s.ALo(5,"translate"),s.qZA(),s._uU(6),s.ALo(7,"parseDate"),s.qZA(),s.TgZ(8,"p"),s.TgZ(9,"strong"),s._uU(10),s.ALo(11,"translate"),s.qZA(),s._uU(12),s.ALo(13,"parseDate"),s.qZA(),s.TgZ(14,"mat-radio-group",2),s.NdJ("ngModelChange",function(t){return e.newExpiration=t}),s.TgZ(15,"mat-radio-button",3),s.TgZ(16,"mat-form-field",4),s.NdJ("click",function(){return s.CHM(i),s.MAs(23).open()}),s.TgZ(17,"mat-label"),s._uU(18),s.ALo(19,"translate"),s.qZA(),s.TgZ(20,"input",5),s.NdJ("dateChange",function(){return e.setExpiration()}),s.qZA(),s._UZ(21,"mat-datepicker-toggle",6),s._UZ(22,"mat-datepicker",7,8),s.qZA(),s.qZA(),s.YNc(24,Yt,3,3,"mat-radio-button",9),s.YNc(25,Kt,3,3,"mat-radio-button",10),s.TgZ(26,"mat-radio-button",11),s._uU(27),s.ALo(28,"translate"),s.qZA(),s.qZA(),s.YNc(29,Vt,3,3,"app-alert",12),s.qZA(),s.TgZ(30,"div",13),s.TgZ(31,"button",14),s.NdJ("click",function(){return e.onCancel()}),s._uU(32),s.ALo(33,"translate"),s.qZA(),s.TgZ(34,"button",15),s.NdJ("click",function(){return e.onChange()}),s._uU(35),s.ALo(36,"translate"),s.qZA(),s.qZA(),s.qZA()}if(2&t){var n=s.MAs(23);s.xp6(4),s.Oqu(s.lcZ(5,21,"DIALOGS.CHANGE_EXPIRATION.CURRENT_EXPIRATION")),s.xp6(2),s.hij(" ",s.lcZ(7,23,e.currentExpiration),""),s.xp6(4),s.Oqu(s.lcZ(11,25,"DIALOGS.CHANGE_EXPIRATION.NEW_EXPIRATION")),s.xp6(2),s.hij(" ",e.newExpiration?s.lcZ(13,27,e.newExpiration):"never",""),s.xp6(2),s.Q6J("ngModel",e.newExpiration),s.xp6(1),s.s9C("value",e.expirationControl.value),s.xp6(3),s.Oqu(s.lcZ(19,29,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),s.xp6(2),s.Q6J("min",e.minDate)("max",e.maxDate)("formControl",e.expirationControl)("matDatepicker",n),s.xp6(1),s.Q6J("for",n)("disabled",!1),s.xp6(1),s.Q6J("disabled",!1),s.xp6(2),s.Q6J("ngIf",e.canExtendMembership&&"vo"===e.mode),s.xp6(1),s.Q6J("ngIf",e.canExtendMembership&&"group"===e.mode),s.xp6(2),s.hij(" ",s.lcZ(28,31,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),s.xp6(2),s.Q6J("ngIf","EXPIRED"===e.status&&("never"===e.newExpiration||e.parseDate(e.expirationControl.value)>e.currentDate)),s.xp6(3),s.hij(" ",s.lcZ(33,33,"DIALOGS.CHANGE_EXPIRATION.CANCEL")," "),s.xp6(2),s.Q6J("disabled",e.expirationControl.invalid),s.xp6(1),s.hij(" ",s.lcZ(36,35,"DIALOGS.CHANGE_EXPIRATION.SAVE")," ")}},directives:[r.xY,Ut.VQ,k.JJ,k.On,Ut.U0,d.KE,d.hX,C.Nt,k.Fj,Gt.hl,k.oH,Gt.nW,d.R9,Gt.Mq,u.O5,r.H8,l.lW,pt.w],pipes:[c.X$,jt.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}"]}),t}();function Qt(t,e){1&t&&s._UZ(0,"mat-spinner",4)}function Wt(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"perun-web-apps-change-expiration-dialog",5),s.NdJ("statusChange",function(){return s.CHM(i),s.oxw().changeStatus=!0})("expirationChanged",function(t){return s.CHM(i),s.oxw().onExpirationChanged(t)}),s.qZA()}if(2&t){var n=s.oxw();s.Q6J("minDate",n.minDate)("maxDate",n.maxDate)("currentExpiration",n.currentExpiration)("newExpiration",n.newExpiration)("canExtendMembership",n.canExtendMembership)("mode","group")("status",n.status)}}var Xt=function(){var t=function(){function t(e,i,n,r,o,a,s){var c=this;_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.attributesManagerService=n,this.memberManager=r,this.groupManager=o,this.translate=a,this.notificator=s,this.loading=!1,this.expirationAttr=null,this.canExtendMembership=!1,a.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(function(t){return c.successMessage=t})}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.status=this.data.status,this.loading=!0;var 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&&this.expirationAttr.value?this.expirationAttr.value:"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&("VALID"!==this.data.status?(this.newExpiration=(0,u.p6)(e,"yyyy-MM-dd","en"),this.maxDate=e):this.newExpiration="never"),"VALID"===this.data.status?this.attributesManagerService.getGroupAttributeByName(this.data.groupId,L.r.GROUP_DEF_EXPIRATION_RULES).subscribe(function(e){null!==e.value?t.groupManager.canExtendMembershipInGroup(t.data.memberId,t.data.groupId).subscribe(function(e){t.canExtendMembership=!!e,t.loading=!1},function(){return t.loading=!1}):t.loading=!1},function(){return t.loading=!1}):this.loading=!1}},{key:"onExpirationChanged",value:function(t){var e=this;this.loading=!0,"groupRules"===t?this.groupManager.extendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe(function(){e.loading=!1,e.notificator.showSuccess(e.successMessage),e.dialogRef.close({success:!0})},function(){return e.loading=!1}):(this.expirationAttr.value="never"===t?null:t,this.attributesManagerService.setMemberGroupAttributes({member:this.data.memberId,group:this.data.groupId,attributes:[this.expirationAttr]}).subscribe(function(){e.changeStatus&&"EXPIRED"===e.status?e.groupManager.setGroupsMemberStatus(e.data.memberId,e.data.groupId,"VALID").subscribe(function(t){e.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(function(i){e.notificator.showSuccess(i),e.loading=!1,e.notificator.showSuccess(e.successMessage),e.dialogRef.close({success:!0,member:t})})},function(){return e.loading=!1}):(e.loading=!1,e.notificator.showSuccess(e.successMessage),e.dialogRef.close({success:!0}))},function(){return e.loading=!1}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(r.WI),s.Y36(o.H8),s.Y36(o.uq),s.Y36(o.ff),s.Y36(c.sK),s.Y36(a.V6))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,Qt,1,0,"mat-spinner",2),s.YNc(5,Wt,1,7,"perun-web-apps-change-expiration-dialog",3),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,3,"DIALOGS.CHANGE_GROUP_EXPIRATION.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[r.uh,u.O5,h.$g,Jt],pipes:[c.X$],styles:[""]}),t}(),$t=i(90888);function te(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.FIELD_EMPTY")))}function ee(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"form",5),s.TgZ(1,"div",6),s.TgZ(2,"mat-form-field"),s.TgZ(3,"mat-label"),s._uU(4),s.ALo(5,"translate"),s.qZA(),s._UZ(6,"input",7),s.TgZ(7,"mat-icon",8),s.NdJ("click",function(){s.CHM(i);var t=s.oxw();return t.showOldPassword=!t.showOldPassword}),s._uU(8),s.qZA(),s.YNc(9,te,3,3,"mat-error",9),s.qZA(),s._UZ(10,"perun-web-apps-password-form",10),s.qZA(),s.qZA()}if(2&t){var n=s.oxw();s.Q6J("formGroup",n.formGroup),s.xp6(4),s.Oqu(s.lcZ(5,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.OLD_PASSWORD")),s.xp6(2),s.Q6J("type",n.showOldPassword?"text":"password"),s.xp6(2),s.hij(" ",n.showOldPassword?"visibility_off":"visibility"," "),s.xp6(1),s.Q6J("ngIf",n.oldPwd.hasError("required")),s.xp6(1),s.Q6J("formGroup",n.formGroup)("namespace",n.data.namespace)}}function ie(t,e){1&t&&s._UZ(0,"mat-spinner",11)}function ne(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"div",12),s.TgZ(1,"div",13),s.TgZ(2,"button",14),s.NdJ("click",function(){return s.CHM(i),s.oxw().close()}),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.TgZ(5,"button",15),s.NdJ("click",function(){return s.CHM(i),s.oxw().changePassword()}),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.qZA(),s.qZA()}if(2&t){var n=s.oxw();s.xp6(3),s.hij(" ",s.lcZ(4,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CANCEL")," "),s.xp6(2),s.Q6J("disabled",n.formGroup.invalid||n.formGroup.pending),s.xp6(1),s.hij(" ",s.lcZ(7,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CHANGE")," ")}}var re=function(){var t=function(){function t(e,i,n,r,o,a,s){var c=this;_classCallCheck(this,t),this.dialogRef=e,this.data=i,this._formBuilder=n,this.usersManagerService=r,this.apiRequestConfiguration=o,this.notificator=a,this.translate=s,this.showOldPassword=!1,s.get("SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.SUCCESS").subscribe(function(t){return c.successMessage=t})}return _createClass(t,[{key:"ngOnInit",value:function(){this.formGroup=this._formBuilder.group({oldPasswordCtrl:["",k.kI.required],passwordCtrl:["",k.kI.required,[(0,n.yT)(this.data.namespace,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""]},{validators:N.dN.passwordMatchValidator}),this.oldPwd=this.formGroup.get("oldPasswordCtrl"),this.newPwd=this.formGroup.get("passwordCtrl"),this.newPwdAgain=this.formGroup.get("passwordAgainCtrl")}},{key:"close",value:function(){this.dialogRef.close(!1)}},{key:"changePassword",value:function(){var t=this;this.loading=!0,this.usersManagerService.changePasswordForLogin(this.data.login,this.data.namespace,this.newPwd.value,this.oldPwd.value,!0).subscribe(function(){t.notificator.showSuccess(t.successMessage),t.loading=!1,t.dialogRef.close(!0)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(r.WI),s.Y36(k.qu),s.Y36(o.Fv),s.Y36(a.F5),s.Y36(a.V6),s.Y36(c.sK))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s.YNc(4,ee,11,9,"form",2),s.YNc(5,ie,1,0,"mat-spinner",3),s.qZA(),s.YNc(6,ne,8,7,"div",4)),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.TITLE")),s.xp6(3),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[r.uh,r.xY,u.O5,k._Y,k.JL,k.sg,d.KE,d.hX,k.Fj,C.Nt,k.JJ,k.u,k.Q7,z.Hw,d.R9,$t.G,d.TO,h.$g,r.H8,l.lW],pipes:[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}"]}),t}();function oe(t,e){1&t&&s._UZ(0,"mat-spinner",4)}function ae(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"perun-web-apps-change-expiration-dialog",5),s.NdJ("statusChange",function(){return s.CHM(i),s.oxw().changeStatus=!0})("expirationChanged",function(t){return s.CHM(i),s.oxw().onExpirationChanged(t)}),s.qZA()}if(2&t){var n=s.oxw();s.Q6J("minDate",n.minDate)("maxDate",n.maxDate)("currentExpiration",n.currentExpiration)("newExpiration",n.newExpiration)("canExtendMembership",n.canExtendMembership)("mode","vo")("status",n.status)}}var se=function(){var t=function(){function t(e,i,n,r,o,a){var s=this;_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.attributesManagerService=n,this.memberManager=r,this.translate=o,this.notificator=a,this.loading=!1,this.expirationAttr=null,this.canExtendMembership=!1,o.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(function(t){return s.successMessage=t})}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.status=this.data.status,this.loading=!0;var 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&&this.expirationAttr.value?this.expirationAttr.value:"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&("VALID"!==this.data.status?(this.newExpiration=(0,u.p6)(e,"yyyy-MM-dd","en"),this.maxDate=e):this.newExpiration="never"),"VALID"===this.data.status?this.attributesManagerService.getVoAttributeByName(this.data.voId,L.r.VO_DEF_EXPIRATION_RULES).subscribe(function(e){null!==e.value?t.memberManager.canExtendMembership(t.data.memberId).subscribe(function(e){t.canExtendMembership=!!e,t.loading=!1},function(){return t.loading=!1}):t.loading=!1},function(){return t.loading=!1}):this.loading=!1}},{key:"onExpirationChanged",value:function(t){var e=this;this.loading=!0,"voRules"===t?this.memberManager.extendMembership(this.data.memberId).subscribe(function(){e.loading=!1,e.notificator.showSuccess(e.successMessage),e.dialogRef.close({success:!0})},function(){return e.loading=!1}):(this.expirationAttr.value="never"===t?null:t,this.attributesManagerService.setMemberAttribute({member:this.data.memberId,attribute:this.expirationAttr}).subscribe(function(){e.changeStatus&&"EXPIRED"===e.status?e.memberManager.setStatus(e.data.memberId,"VALID").subscribe(function(t){e.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(function(i){e.notificator.showSuccess(i),e.loading=!1,e.notificator.showSuccess(e.successMessage),e.dialogRef.close({success:!0,member:t})})},function(){return e.loading=!1}):(e.loading=!1,e.notificator.showSuccess(e.successMessage),e.dialogRef.close({success:!0}))},function(){return e.loading=!1}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(r.WI),s.Y36(o.H8),s.Y36(o.uq),s.Y36(c.sK),s.Y36(a.V6))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,oe,1,0,"mat-spinner",2),s.YNc(5,ae,1,7,"perun-web-apps-change-expiration-dialog",3),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,3,"DIALOGS.CHANGE_VO_EXPIRATION.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[r.uh,u.O5,h.$g,Jt],pipes:[c.X$],styles:[""]}),t}();function ce(t,e){1&t&&s._UZ(0,"mat-spinner",4)}function ue(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"perun-web-apps-change-expiration-dialog",5),s.NdJ("expirationChanged",function(t){return s.CHM(i),s.oxw().onExpirationChanged(t)}),s.qZA()}if(2&t){var n=s.oxw();s.Q6J("minDate",n.minDate)("currentExpiration",n.currentExpiration)("newExpiration",n.newExpiration)("mode","sponsor")}}var le=function(){var t=function(){function t(e,i,n,r,o,a,s){var c=this;_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.attributesManagerService=n,this.memberManager=r,this.groupManager=o,this.translate=a,this.notificator=s,this.loading=!1,a.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(function(t){return c.successMessage=t})}return _createClass(t,[{key:"ngOnInit",value:function(){this.loading=!0,this.currentExpiration=this.data.sponsor.validityTo?this.data.sponsor.validityTo:"never",this.newExpiration=this.currentExpiration;var t=new Date;this.minDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()),this.loading=!1}},{key:"onExpirationChanged",value:function(t){var e=this;this.loading=!0,this.memberManager.updateSponsorshipValidity(this.data.memberId,this.data.sponsor.user.id,"never"===t?null:t).subscribe(function(){e.loading=!1,e.notificator.showSuccess(e.successMessage),e.dialogRef.close(!0)},function(){return e.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(r.WI),s.Y36(o.H8),s.Y36(o.uq),s.Y36(o.ff),s.Y36(c.sK),s.Y36(a.V6))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,ce,1,0,"mat-spinner",2),s.YNc(5,ue,1,4,"perun-web-apps-change-expiration-dialog",3),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,3,"DIALOGS.CHANGE_SPONSORSHIP_EXPIRATION.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[r.uh,u.O5,h.$g,Jt],pipes:[c.X$],styles:[""]}),t}();function he(t,e){1&t&&s._UZ(0,"mat-spinner",4)}function de(t,e){1&t&&(s.TgZ(0,"span",11),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function fe(t,e){1&t&&(s.TgZ(0,"span",11),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function pe(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"mat-radio-group",12),s.NdJ("ngModelChange",function(t){return s.CHM(i),s.oxw(2).asyncValidation=t}),s.TgZ(1,"span",13),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"mat-radio-button",14),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"mat-radio-button",14),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.qZA()}if(2&t){var n=s.oxw(2);s.Q6J("ngModel",n.asyncValidation),s.xp6(2),s.hij(" ",s.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE"),": "),s.xp6(2),s.Q6J("value",!1),s.xp6(1),s.hij(" ",s.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),s.xp6(2),s.Q6J("value",!0),s.xp6(1),s.hij(" ",s.lcZ(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," ")}}function ge(t,e){1&t&&(s.TgZ(0,"span",11),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function me(t,e){1&t&&(s.TgZ(0,"span",11),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function ve(t,e){if(1&t&&(s.TgZ(0,"div",5),s.TgZ(1,"p",6),s._uU(2),s.TgZ(3,"span",7),s._uU(4),s.qZA(),s._uU(5),s.TgZ(6,"span",7),s._uU(7),s.qZA(),s.qZA(),s.TgZ(8,"p"),s.TgZ(9,"strong",8),s._uU(10),s.ALo(11,"translate"),s.qZA(),s._uU(12),s.qZA(),s.TgZ(13,"p"),s.TgZ(14,"strong",8),s._uU(15),s.ALo(16,"translate"),s.qZA(),s._uU(17),s.qZA(),s.YNc(18,de,3,3,"span",9),s.YNc(19,fe,3,3,"span",9),s.YNc(20,pe,10,12,"mat-radio-group",10),s.YNc(21,ge,3,3,"span",9),s.YNc(22,me,3,3,"span",9),s.qZA()),2&t){var i=s.oxw();s.xp6(2),s.hij(" ",i.group.name," "),s.xp6(2),s.hij("#",i.group.id,""),s.xp6(1),s.hij(" - ",i.resource.name," "),s.xp6(2),s.hij("#",i.resource.id,""),s.xp6(3),s.hij("",s.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT"),":"),s.xp6(2),s.hij(" ",i.status," "),s.xp6(3),s.hij("",s.lcZ(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW"),":"),s.xp6(2),s.hij(" ",i.getReversedStatus()," "),s.xp6(1),s.Q6J("ngIf","INACTIVE"===i.status),s.xp6(1),s.Q6J("ngIf","ACTIVE"===i.status),s.xp6(1),s.Q6J("ngIf","INACTIVE"===i.status),s.xp6(1),s.Q6J("ngIf","INACTIVE"===i.status&&!1===i.asyncValidation),s.xp6(1),s.Q6J("ngIf","INACTIVE"===i.status&&!0===i.asyncValidation)}}function ye(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"div",15),s.TgZ(1,"button",16),s.NdJ("click",function(){return s.CHM(i),s.oxw().onCancel()}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"button",17),s.NdJ("click",function(){return s.CHM(i),s.oxw().onSubmit()}),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA()}if(2&t){var n=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),s.xp6(2),s.Q6J("disabled",n.loading),s.xp6(1),s.hij(" ",s.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG."+("ACTIVE"===n.status?"DEACTIVATE":"ACTIVATE"))," ")}}var _e=function(){var t=function(){function t(e,i,n,r){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.resourceService=n,this.groupService=r,this.loading=!1,this.asyncValidation=!1,this.resource=null,this.group=null}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.status=this.data.status,this.theme=this.data.theme,this.resourceService.getResourceById(this.data.resourceId).subscribe(function(e){t.resource=e,t.groupService.getGroupById(t.data.groupId).subscribe(function(e){t.group=e,t.loading=!1},function(){return t.loading=!1})},function(){return t.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,"ACTIVE"===this.status?this.resourceService.deactivateGroupResourceAssignment(this.data.groupId,this.data.resourceId).subscribe(function(){t.dialogRef.close(!0),t.loading=!1},function(){return t.loading=!1}):this.resourceService.activateGroupResourceAssignment(this.data.groupId,this.data.resourceId,this.asyncValidation).subscribe(function(){t.dialogRef.close(!0),t.loading=!1},function(){return t.loading=!1})}},{key:"getReversedStatus",value:function(){return"ACTIVE"===this.status?"INACTIVE":"ACTIVE"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(r.WI),s.Y36(o.xk),s.Y36(o.ff))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,he,1,0,"mat-spinner",1),s.YNc(5,ve,23,17,"div",2),s.YNc(6,ye,7,7,"div",3),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.Oqu(s.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[r.uh,u.O5,h.$g,r.xY,Ut.VQ,k.JJ,k.On,Ut.U0,r.H8,l.lW],pipes:[c.X$],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),t}()},84534:function(t,e,i){"use strict";i.d(e,{hT:function(){return r},Kd:function(){return a},YH:function(){return s}});var n=i(31572),r=function(){var t=function(){function t(e){_classCallCheck(this,t),this.elementRef=e}return _createClass(t,[{key:"ngOnInit",value:function(){this.elementRef.nativeElement.focus()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq))},t.\u0275dir=n.lG2({type:t,selectors:[["","perunWebAppsAutoFocus",""]]}),t}(),o=i(68416),a=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.el=e,this.router=i}return _createClass(t,[{key:"onClick",value:function(){this.router.forceNavigate(this.perunWebAppsForceRouterLink)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(o.xw))},t.\u0275dir=n.lG2({type:t,selectors:[["","perunWebAppsForceRouterLink",""]],hostBindings:function(t,e){1&t&&n.NdJ("click",function(){return e.onClick()})},inputs:{perunWebAppsForceRouterLink:"perunWebAppsForceRouterLink"}}),t}(),s=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"onClick",value:function(t){if(1===t.button&&null!=this.perunWebAppsMiddleClickRouterLink){var e=this.perunWebAppsMiddleClickRouterLink.join("/"),i=location.search;window.open(e+i)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(t,e){1&t&&n.NdJ("mouseup",function(t){return e.onClick(t)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),t}()},14732:function(t,e,i){"use strict";i.d(e,{u:function(){return n},m:function(){return r}});var n=function(t){return t.PERUNADMIN="PERUNADMIN",t.PERUNOBSERVER="PERUNOBSERVER",t.VOADMIN="VOADMIN",t.GROUPADMIN="GROUPADMIN",t.SELF="SELF",t.FACILITYADMIN="FACILITYADMIN",t.FACILITIYOBSERVER="FACILITYOBSERVER",t.RESOURCEADMIN="RESOURCEADMIN",t.RESOURCESELFSERVICE="RESOURCESELFSERVICE",t.REGISTRAR="REGISTRAR",t.ENGINE="ENGINE",t.RPC="RPC",t.NOTIFICATIONS="NOTIFICATIONS",t.SERVICEUSER="SERVICEUSER",t.SPONSOR="SPONSOR",t.VOOBSERVER="VOOBSERVER",t.TOPGROUPCREATOR="TOPGROUPCREATOR",t.SECURITYADMIN="SECURITYADMIN",t.CABINETADMIN="CABINETADMIN",t.UNKNOWNROLENAME="UNKNOWNROLENAME",t}({}),r=function(){function t(e){_classCallCheck(this,t),this.id=e.id,this.name=e.name,this.parentGroupId=e.parentGroupId,this.voId=e.voId,this.shortName=e.shortName,this.description=e.description,this.attributes=e.attributes,this.beanName=e.beanName}return _createClass(t,[{key:"addChild",value:function(t){null==this.children?this.children=[t]:this.children.push(t)}}]),t}()},18820:function(t,e,i){"use strict";i.d(e,{E3:function(){return f},yT:function(){return p.y}});var n=i(61511),r=i(66283),o=i(36922),a=i(16073),s=i(80340),c=i(48160),u=i(67806),l=i(43691),h=i(22727),d=i(31572),f=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d.oAB({type:t}),t.\u0275inj=d.cJS({providers:[],imports:[[n.ez,r.lN,o.AV,a.UX,s.c,c.aw,u.Cq,l.Ps,h.r]]}),t}(),p=i(63618);i(90888)},90888:function(t,e,i){"use strict";i.d(e,{G:function(){return A}});var n=i(63618),r=i(68416),o=i(65249),a=i(31572),s=i(48160),c=i(16073),u=i(66283),l=i(36922),h=i(80340),d=i(61511),f=i(43691),p=i(39571),g=i(67806);function m(t,e){1&t&&a._UZ(0,"mat-spinner",12),2&t&&a.Q6J("diameter",18)}function v(t,e){if(1&t&&(a.TgZ(0,"mat-icon",13),a._uU(1," error "),a.qZA()),2&t){var i=a.oxw();a.Q6J("matTooltip",i.getErrorTooltip())("matTooltipDisabled",!i.formGroup.get("passwordCtrl").hasError("backendError"))}}function y(t,e){1&t&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function _(t,e){if(1&t&&(a.TgZ(0,"mat-error",14),a._uU(1),a.qZA()),2&t){var i=a.oxw();a.Q6J("matTooltip",i.getErrorTooltip()),a.xp6(1),a.Oqu(i.getErrorTooltip())}}function b(t,e){1&t&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function w(t,e){1&t&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}var A=function(){var t=function(){function t(e,i,r){_classCallCheck(this,t),this.translator=e,this.usersManagerService=i,this.store=r,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.multiLanguage=!1,this.language="en",this.allPasswordRequirements=this.store.get("password_requirements_help"),this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new n.S}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(function(e){var i=e.userAttributes.find(function(t){return"preferredLanguage"===t.friendlyName});t.language=i&&i.value?i.value.toString():"en","en"!==t.language&&(t.allPasswordRequirements=t.store.get("password_requirements_help_".concat(t.language))),t.changeHelp()}):this.changeHelp()}},{key:"ngOnChanges",value:function(){this.allPasswordRequirements=this.store.get("en"!==this.language?"password_requirements_help_".concat(this.language):"password_requirements_help"),this.changeHelp()}},{key:"getPasswordDisabledTooltip",value:function(){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")}},{key:"getErrorTooltip",value:function(){var t=this.formGroup.get("passwordCtrl").getError("backendError");return t&&(t=t.replace(":null","")),t}},{key:"changeHelp",value:function(){var t=this;this.passwordRequirement=this.allPasswordRequirements.find(function(e){return e.split(":")[0]===t.namespace}),this.passwordRequirement=void 0===this.passwordRequirement?this.allPasswordRequirements.find(function(t){return"default"===t.split(":")[0]}).split(/:(.+)/)[1]:this.passwordRequirement.split(/:(.+)/)[1]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.sK),a.Y36(o.Fv),a.Y36(r.d6))},t.\u0275cmp=a.Xpm({type:t,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",namespace:"namespace",multiLanguage:"multiLanguage",language:"language"},features:[a.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(t,e){1&t&&(a.TgZ(0,"div",0),a.TgZ(1,"mat-form-field",1),a._UZ(2,"input",2),a.ALo(3,"translate"),a.YNc(4,m,1,1,"mat-spinner",3),a.TgZ(5,"mat-icon",4),a.NdJ("click",function(){return e.showNewPassword=!e.showNewPassword}),a._uU(6),a.qZA(),a.YNc(7,v,2,2,"mat-icon",5),a.YNc(8,y,3,3,"mat-error",6),a.YNc(9,_,2,2,"mat-error",7),a.qZA(),a.TgZ(10,"mat-form-field",8),a.TgZ(11,"mat-label"),a._uU(12),a.ALo(13,"translate"),a.qZA(),a._UZ(14,"input",9),a.TgZ(15,"mat-icon",4),a.NdJ("click",function(){return e.showPasswordConfirm=!e.showPasswordConfirm}),a._uU(16),a.qZA(),a.YNc(17,b,3,3,"mat-error",6),a.YNc(18,w,3,3,"mat-error",6),a.qZA(),a.TgZ(19,"app-alert",10),a._UZ(20,"div",11),a.qZA(),a.qZA()),2&t&&(a.Q6J("formGroup",e.formGroup),a.xp6(1),a.Q6J("matTooltip",e.getPasswordDisabledTooltip())("matTooltipDisabled",e.formGroup.get("passwordCtrl").enabled),a.xp6(1),a.s9C("placeholder",a.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),a.Q6J("type",e.showNewPassword?"text":"password")("required",e.passwordRequired)("errorStateMatcher",e.passwordStateMatcher),a.xp6(2),a.Q6J("ngIf",e.formGroup.get("passwordCtrl").pending),a.xp6(2),a.hij(" ",e.showNewPassword?"visibility_off":"visibility"," "),a.xp6(1),a.Q6J("ngIf",e.formGroup.get("passwordCtrl").dirty&&null!==e.formGroup.get("passwordCtrl").errors),a.xp6(1),a.Q6J("ngIf",e.formGroup.get("passwordCtrl").hasError("required")),a.xp6(1),a.Q6J("ngIf",e.formGroup.get("passwordCtrl").hasError("backendError")),a.xp6(3),a.Oqu(a.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),a.xp6(2),a.Q6J("type",e.showPasswordConfirm?"text":"password")("required",e.passwordRequired),a.xp6(2),a.hij(" ",e.showPasswordConfirm?"visibility_off":"visibility"," "),a.xp6(1),a.Q6J("ngIf",e.formGroup.get("passwordAgainCtrl").hasError("required")),a.xp6(1),a.Q6J("ngIf",e.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),a.xp6(2),a.Q6J("innerHTML",e.passwordRequirement,a.oJD))},directives:[c.JL,c.sg,u.KE,l.gM,h.Nt,c.Fj,c.JJ,c.u,c.Q7,d.O5,f.Hw,u.R9,u.hX,p.w,g.$g,u.TO],pipes:[s.X$],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right}.error-icon[_ngcontent-%COMP%], .input-spinner[_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;display:block;margin-top:-1px}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple, [_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{position:static!important;display:table}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}"]}),t}()},63618:function(t,e,i){"use strict";i.d(e,{S:function(){return c},y:function(){return u}});var n=i(81110),r=i(40878),o=i(44689),a=i(79996),s=i(47727),c=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"isErrorState",value:function(t){return!!(t&&t.invalid&&t.dirty)}}]),t}(),u=function(t,e,i){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:500;return function(u){return(0,n.H)(c).pipe((0,o.w)(function(){return i.dontHandleErrorForNext(),t&&"No namespace"!==t?e.checkPasswordStrength(u.value,t):(0,r.of)(null)}),(0,a.U)(function(){return null}),(0,s.K)(function(t){return(0,r.of)({backendError:t.error.message.substr(t.error.message.indexOf(":")+1)})}))}}},65249:function(t,e,i){"use strict";i.d(e,{Us:function(){return P},au:function(){return M},H8:function(){return d},jw:function(){return f},Ct:function(){return p},VK:function(){return h},KG:function(){return v},IQ:function(){return y},ff:function(){return b},uq:function(){return A},aC:function(){return k},Hr:function(){return C},tk:function(){return T},xk:function(){return E},KK:function(){return S},Ob:function(){return I},Dy:function(){return D},Fv:function(){return R},FW:function(){return x},YF:function(){return O}});var n,r,o,a,s=i(29063),c=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"encodeKey",value:function(t){return encodeURIComponent(t)}},{key:"encodeValue",value:function(t){return encodeURIComponent(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}(),u=i(31572),l=new u.OlP("basePath"),h=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.apiKeys=e.apiKeys,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.withCredentials=e.withCredentials,this.encoder=e.encoder}return _createClass(t,[{key:"selectHeaderContentType",value:function(t){var e=this;if(0!==t.length){var i=t.find(function(t){return e.isJsonMime(t)});return void 0===i?t[0]:i}}},{key:"selectHeaderAccept",value:function(t){var e=this;if(0!==t.length){var i=t.find(function(t){return e.isJsonMime(t)});return void 0===i?t[0]:i}}},{key:"isJsonMime",value:function(t){var e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==t&&(e.test(t)||"application/json-patch+json"===t.toLowerCase())}}]),t}(),d=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"convertAttributeToNonunique",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/convertAttributeToNonunique"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"convertAttributeToUnique",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/convertAttributeToUnique"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"createAttributeDefinition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/createAttribute"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteAttributeDefinition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("attribute",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/deleteAttribute"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteAttributeDefinitions",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("attributes[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/deleteAttributes"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllAttributeDefinitions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributesDefinition"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAttribute",value:function(t,e,i,n,r,o,a,c,u,l,h){var d=arguments.length>11&&void 0!==arguments[11]?arguments[11]:"body",f=arguments.length>12&&void 0!==arguments[12]&&arguments[12],p=new s.LE({encoder:this.encoder});null!=t&&(p=p.set("attributeName",t)),null!=e&&(p=p.set("attributeId",e)),null!=i&&(p=p.set("facility",i)),null!=n&&(p=p.set("user",n)),null!=r&&(p=p.set("vo",r)),null!=o&&(p=p.set("resource",o)),null!=a&&(p=p.set("member",a)),null!=c&&(p=p.set("group",c)),null!=u&&(p=p.set("host",u)),null!=l&&(p=p.set("userExtSource",l)),null!=h&&(p=p.set("key",h));var g=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(g=g.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(g=g.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var m="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;g=g.set("Authorization","Bearer "+m)}var v=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==v&&(g=g.set("Accept",v)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/any"),{params:p,withCredentials:this.configuration.withCredentials,headers:g,observe:d,reportProgress:f})}},{key:"getAttributeDefinitionById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeDefinitionById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAttributeDefinitionByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeName",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeDefinition"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAttributeDefinitionsByNamespace",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("namespace",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributesDefinitionByNamespace"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAttributeModulesDependenciesForAttributeGraphText",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("format",t)),null!=e&&(r=r.set("attrName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAttributeModulesDependenciesGraphText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("format",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeModulesDependenciesGraphText"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAttributeRights",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeRights"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAttributesDefinitionWithRights",value:function(t,e,i,n,r,o,a,c){var u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:"body",l=arguments.length>9&&void 0!==arguments[9]&&arguments[9],h=new s.LE({encoder:this.encoder});null!=t&&(h=h.set("member",t)),null!=e&&(h=h.set("user",e)),null!=i&&(h=h.set("vo",i)),null!=n&&(h=h.set("group",n)),null!=r&&(h=h.set("resource",r)),null!=o&&(h=h.set("facility",o)),null!=a&&(h=h.set("host",a)),null!=c&&(h=h.set("userExtSource",c));var d=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(d=d.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(d=d.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var f="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;d=d.set("Authorization","Bearer "+f)}var p=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==p&&(d=d.set("Accept",p)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/getAttributesDefinitionWithRights"),{params:h,withCredentials:this.configuration.withCredentials,headers:d,observe:u,reportProgress:l})}},{key:"getEntitylessAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("key",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-entityless"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getEntitylessAttributesByKey",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("key",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/key"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getEntitylessAttributesByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("attrName",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getEntitylessAttributes"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getEntitylessAttributesWithKeys",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("attrName",t)),e&&e.forEach(function(t){r=r.append("keys[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getEntitylessAttributesWithKeys"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getEntitylessKeys",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getEntitylessKeys"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-facility"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilityAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-facility"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilityAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/f"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/f-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilityResourceUserMemberAttributes",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==n)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("user",i)),null!=n&&(a=a.set("member",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/f-r-u-m"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"getFacilityUserAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/f-u"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-group"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-group"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/g"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/g-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupResourceAttributeById",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeId",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-group-resource"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getGroupResourceAttributeByName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeName",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-group-resource"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getGroupResourceAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/group-resource"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getHostAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("host",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-host"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getHostAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("host",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-host"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getHostAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("host",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/h"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getHostAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("host",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/h-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getLogins",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getLogins.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getLogins"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMemberAndUserAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==e)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("workWithUserAttributes",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-wu"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMemberAndUserAttributesByNames",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(function(t){o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("workWithUserAttributes",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-names-wu"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-member"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMemberAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-member"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMemberAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMemberAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMemberGroupAndUserAttributesByNames",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("group",e)),i&&i.forEach(function(t){a=a.append("attrNames[]",t)}),null!=n&&(a=a.set("workWithUserAttributes",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-g-names-wu"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"getMemberGroupAttributeById",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("attributeId",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-member-group"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberGroupAttributeByName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("attributeName",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-member-group"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberGroupAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-g"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMemberGroupAttributesByNames",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach(function(t){o=o.append("attrNames[]",t)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-g-names"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberResourceAndUserFacilityAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("workWithUserAttributes",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-r-wu"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberResourceAndUserFacilityAttributesByNames",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("resource",e)),i&&i.forEach(function(t){a=a.append("attrNames[]",t)}),null!=n&&(a=a.set("workWithUserAttributes",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-r-names-wu"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"getMemberResourceAttributeById",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeId",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-member-resource"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberResourceAttributeByName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeName",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-member-resource"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberResourceAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-r"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesDefinition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributesDefinition"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRequiredAttributesFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/f"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRequiredAttributesFacilityService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-f"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesFacilityServices",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");var r=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){r=r.append("services[]",t)}),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/ss-f"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesGroupResourceService",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("group",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-r-g"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getRequiredAttributesHostService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==e)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("host",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-h"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesMember",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("workWithUserAttributes",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/m"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesMemberGroup",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("workWithUserAttributes",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/m-g"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getRequiredAttributesMemberGroupResourceService",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==n)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");var c=new s.LE({encoder:this.encoder});null!=t&&(c=c.set("service",t)),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("group",i)),null!=n&&(c=c.set("member",n)),null!=r&&(c=c.set("workWithUserAttributes",r));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-r-g-m"),{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"getRequiredAttributesMemberGroupService",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("group",e)),null!=i&&(a=a.set("member",i)),null!=n&&(a=a.set("workWithUserAttributes",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-g-m"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"getRequiredAttributesMemberResource",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("workWithUserAttributes",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/m-r"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getRequiredAttributesMemberResourceService",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("member",i)),null!=n&&(a=a.set("workWithUserAttributes",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-r-m"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"getRequiredAttributesResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/r"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRequiredAttributesResourceService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-r"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesResourceServices",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");var r=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){r=r.append("services[]",t)}),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/ss-r"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/u"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRequiredAttributesUserFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/u-f"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesVoService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("vo",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-v"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-resource"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-resource"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getResourceAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceGroupAndGroupAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==i)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("workWithGroupAttributes",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-g-wg"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getResourceGroupAndGroupAttributesByNames",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("resource",t)),null!=e&&(a=a.set("group",e)),i&&i.forEach(function(t){a=a.append("attrNames[]",t)}),null!=n&&(a=a.set("workWithGroupAttributes",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-g-names-wg"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"getResourceGroupAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-g"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceGroupMemberAttributesByNames",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==n)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("resource",t)),null!=e&&(a=a.set("group",e)),null!=i&&(a=a.set("member",i)),n&&n.forEach(function(t){a=a.append("attrNames[]",t)});var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-g-m-names"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"getUserAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-user"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-user"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/u"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUserAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/u-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserExtSourceAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("userExtSource",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-ues"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserExtSourceAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("userExtSource",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-ues"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserExtSourceAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("userExtSource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/ues"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUserExtSourceAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("userExtSource",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/ues-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserFacilityAttributeById",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("attributeId",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-user_facility"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getUserFacilityAttributeByName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("attributeName",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-user_facility"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getUserFacilityAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/user-facility"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getVoAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-vo"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getVoAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-vo"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getVoAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/vo"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/vo-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeAttributesForFacilityResourceGroupUserMember",value:function(t,e,i,n,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",c=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==i)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==n)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==r)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");var u=new s.LE({encoder:this.encoder});null!=t&&(u=u.set("facility",t)),null!=e&&(u=u.set("resource",e)),null!=i&&(u=u.set("group",i)),null!=n&&(u=u.set("user",n)),null!=r&&(u=u.set("member",r)),o&&o.forEach(function(t){u=u.append("attributes[]",t)});var l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var h="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+h)}var d=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==d&&(l=l.set("Accept",d)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m"),null,{params:u,withCredentials:this.configuration.withCredentials,headers:l,observe:a,reportProgress:c})}},{key:"removeAttributesForFacilityResourceUserMember",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==i)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==n)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");var c=new s.LE({encoder:this.encoder});null!=t&&(c=c.set("facility",t)),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("user",i)),null!=n&&(c=c.set("member",n)),r&&r.forEach(function(t){c=c.append("attributes[]",t)});var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/f-r-u-m"),null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"removeEntitylessAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("key",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/e"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/f"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/f"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupResourceAttribute",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attribute",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/g-r"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeGroupResourceAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach(function(t){o=o.append("attributes[]",t)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/g-r"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeGroupResourceAttributesWorkWithGroupAttributes",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),null!=e&&(a=a.set("resource",e)),i&&i.forEach(function(t){a=a.append("attributes[]",t)}),null!=n&&(a=a.set("workWithGroupAttributes",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"removeHostAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("host",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/h"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeHostAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("host",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/h"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeMemberAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/m"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeMemberAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeMemberAttributesWorkWithUserAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(function(t){o=o.append("attributes[]",t)}),null!=i&&(o=o.set("workWithUserAttributes",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeMemberGroupAttribute",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("attribute",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/m-g"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeMemberGroupAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach(function(t){o=o.append("attributes[]",t)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m-g"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeMemberGroupAttributesWorkWithUserAttributes",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("group",e)),i&&i.forEach(function(t){a=a.append("attributes[]",t)}),null!=n&&(a=a.set("workWithUserAttributes",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"removeMemberResourceAttribute",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attribute",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/m-r"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeMemberResourceAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach(function(t){o=o.append("attributes[]",t)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m-r"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeResourceAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/r"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeResourceAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/r"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeUesAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("userExtSource",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/ues"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeUserAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeUserAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeUserExtSourceAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("userExtSource",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/ues"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeUserFacilityAttribute",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("attribute",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/u-f"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeUserFacilityAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),i&&i.forEach(function(t){o=o.append("attributes[]",t)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/u-f"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeVoAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/v"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeVoAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/v"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"setAttributeRights",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAttributeRights was null or undefined when calling setAttributeRights.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributeRights"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setEntitylessAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/entityless"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setFacilityAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/facility"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setFacilityAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/f"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setFacilityResourceGroupUserMemberAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/f-r-g-u-m"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setFacilityResourceUserMemberAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/f-r-u-m"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setFacilityUserAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/f-u"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setGroupAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetGroupAttribute was null or undefined when calling setGroupAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/group"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setGroupAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetGroupAttributes was null or undefined when calling setGroupAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/g"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setGroupResourceAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/group-resource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setGroupResourceAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/group-resource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setHostAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetHostAttribute was null or undefined when calling setHostAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/host"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setHostAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetHostAttributes was null or undefined when calling setHostAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/h"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberAttribute was null or undefined when calling setMemberAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/member"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberAttributes was null or undefined when calling setMemberAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberGroupAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/member-group"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberGroupAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-g"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberGroupWithUserAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-g-wu"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberResourceAndUserAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-r-wu"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberResourceAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/member-resource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberResourceAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-r"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberWithUserAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-wu"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setResourceAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetResourceAttribute was null or undefined when calling setResourceAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/resource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setResourceAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetResourceAttributes was null or undefined when calling setResourceAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/r"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setResourceGroupAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/r-g"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setResourceGroupWithGroupAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/r-g-wg"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setUserAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetUserAttribute was null or undefined when calling setUserAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/user"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setUserAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetUserAttributes was null or undefined when calling setUserAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/u"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setUserExtSourceAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/userExtSource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setUserExtSourceAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/ues"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setUserFacilityAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/facility-user"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setUserFacilityAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/facility-user"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setVoAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetVoAttribute was null or undefined when calling setVoAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/vo"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setVoAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetVoAttributes was null or undefined when calling setVoAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/vo"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateAttributeDefinition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/updateAttributeDefinition"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),f=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"auditMessagesManagerLog",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter msg was null or undefined when calling auditMessagesManagerLog.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("msg",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/auditMessagesManager/log"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"createAuditerConsumer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling createAuditerConsumer.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("consumerName",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/auditMessagesManager/createAuditerConsumer"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllAuditerConsumers",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/auditMessagesManager/getAllAuditerConsumers"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAuditerMessagesCount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/auditMessagesManager/getAuditerMessagesCount"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getLastMessageId",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/auditMessagesManager/getLastMessageId"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getMessages",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("count",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/auditMessagesManager/getMessages"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMessagesByCount",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter count was null or undefined when calling getMessagesByCount.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("count",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/auditMessagesManager/getMessagesByCount"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMessagesPage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputGetMessagesPage was null or undefined when calling getMessagesPage.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/auditMessagesManager/getMessagesPage"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"pollConsumerMessages",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling pollConsumerMessages.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("consumerName",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/auditMessagesManager/pollConsumerMessages"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"setLastProcessedId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling setLastProcessedId.");if(null==e)throw new Error("Required parameter lastProcessedId was null or undefined when calling setLastProcessedId.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("consumerName",t)),null!=e&&(r=r.set("lastProcessedId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/auditMessagesManager/setLastProcessedId"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),p=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"getAllPolicies",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getAllPolicies"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAllRolesManagementRules",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getAllRolesManagementRules"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAuthzAdminGroups",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("role",t)),null!=e&&(o=o.set("complementaryObjectId",e)),null!=i&&(o=o.set("complementaryObjectName",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getAdminGroups"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getAuthzRichAdmins",value:function(t,e,i,n,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",c=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==n)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");var u=new s.LE({encoder:this.encoder});null!=t&&(u=u.set("role",t)),null!=e&&(u=u.set("complementaryObjectId",e)),null!=i&&(u=u.set("complementaryObjectName",i)),n&&n.forEach(function(t){u=u.append("specificAttributes",t)}),null!=r&&(u=u.set("allUserAttributes",r)),null!=o&&(u=u.set("onlyDirectAdmins",o));var l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var h="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+h)}var d=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==d&&(l=l.set("Accept",d)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getRichAdmins"),{params:u,withCredentials:this.configuration.withCredentials,headers:l,observe:a,reportProgress:c})}},{key:"getFacilitiesWhereUserIsInRoles",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");var r=new s.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach(function(t){r=r.append("roles[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getFacilitiesWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupRoleNames",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getGroupRoleNames"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupRoles",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("groupId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/authzResolver/getGroupRoles"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupsWhereUserIsInRoles",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");var r=new s.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach(function(t){r=r.append("roles[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getGroupsWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getLoggedUser",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getLoggedUser"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getMembersWhereUserIsInRoles",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");var r=new s.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach(function(t){r=r.append("roles[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getMembersWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getPerunPrincipal",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getPerunPrincipal"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getPrincipalRoleNames",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getPrincipalRoleNames"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getResourcesWhereUserIsInRoles",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");var r=new s.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach(function(t){r=r.append("roles[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getResourcesWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getSecurityTeamsWhereUserIsInRoles",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");var r=new s.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach(function(t){r=r.append("roles[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getSecurityTeamsWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserRoleNames",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getUserRoleNames"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUserRoles",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("userId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getUserRoles"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVosWhereUserIsInRoles",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");var r=new s.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach(function(t){r=r.append("roles[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getVosWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"isFacilityAdmin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/authzResolver/isFacilityAdmin"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"isGroupAdmin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/authzResolver/isGroupAdmin"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"isPerunAdmin",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/isPerunAdmin"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"isVoAdmin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/authzResolver/isVoAdmin"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"keepAlive",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/keepAlive"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"loadAuthorizationComponents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/loadAuthorizationComponents"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"setRoleWithGroupComplementaryObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter setRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/authzResolver/setRole/g-co"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setRoleWithUserComplementaryObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter setRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/authzResolver/setRole/u-co"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"unsetRoleWithGroupComplementaryObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter unsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/authzResolver/unsetRole/g-co"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"unsetRoleWithUserComplementaryObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter unsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/authzResolver/unsetRole/u-co"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),g=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"createAutorship",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateAuthorship was null or undefined when calling createAutorship.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/createAuthorship"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createCategoryCat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateCategory was null or undefined when calling createCategoryCat.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/createCategory/cat"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createCategoryNR",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateCategory1 was null or undefined when calling createCategoryNR.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/createCategory/n-r"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createPublication",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreatePublication was null or undefined when calling createPublication.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/createPublication"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createPublicationSystem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreatePublicationSystem was null or undefined when calling createPublicationSystem.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/createPublicationSystem"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createThanks",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateThanks was null or undefined when calling createThanks.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/createThanks"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteAuthorship",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter publicationId was null or undefined when calling deleteAuthorship.");if(null==e)throw new Error("Required parameter userId was null or undefined when calling deleteAuthorship.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("publicationId",t)),null!=e&&(r=r.set("userId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/cabinetManager/deleteAuthorship"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteCategory",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteCategory.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/cabinetManager/deleteCategory"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deletePublication",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling deletePublication.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/cabinetManager/deletePublication"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deletePublicationSystem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling deletePublicationSystem.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/cabinetManager/deletePublicationSystem"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteThanks",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteThanks.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/cabinetManager/deleteThanks"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"findAllAuthors",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/findAllAuthors"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"findAuthorsByPublicationId",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling findAuthorsByPublicationId.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/findAuthorsByPublicationId"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"findExternalPublications",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter user was null or undefined when calling findExternalPublications.");if(null==e)throw new Error("Required parameter yearSince was null or undefined when calling findExternalPublications.");if(null==i)throw new Error("Required parameter yearTill was null or undefined when calling findExternalPublications.");if(null==n)throw new Error("Required parameter pubSysNamespace was null or undefined when calling findExternalPublications.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("user",t)),null!=e&&(a=a.set("yearSince",e)),null!=i&&(a=a.set("yearTill",i)),null!=n&&(a=a.set("pubSysNamespace",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/findExternalPublications"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"findNewAuthors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findNewAuthors.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/findNewAuthors"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"findPublicationById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling findPublicationById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/findPublicationById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"findPublicationsByFilter",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter userId was null or undefined when calling findPublicationsByFilter.");var o=new s.LE({encoder:this.encoder});null!=e&&(o=o.set("yearSince",e)),null!=i&&(o=o.set("yearTill",i)),null!=t&&(o=o.set("userId",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/findPublicationsByFilter"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"findPublicationsByGUIFilter",value:function(t,e,i,n,r,o,a,c,u){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:"body",h=arguments.length>10&&void 0!==arguments[10]&&arguments[10],d=new s.LE({encoder:this.encoder});null!=t&&(d=d.set("title",t)),null!=e&&(d=d.set("isbn",e)),null!=i&&(d=d.set("doi",i)),null!=n&&(d=d.set("id",n)),null!=r&&(d=d.set("year",r)),null!=o&&(d=d.set("category",o)),null!=a&&(d=d.set("yearSince",a)),null!=c&&(d=d.set("yearTill",c)),null!=u&&(d=d.set("userId",u));var f=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(f=f.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(f=f.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var p="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;f=f.set("Authorization","Bearer "+p)}var g=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==g&&(f=f.set("Accept",g)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/findPublicationsByGUIFilter"),{params:d,withCredentials:this.configuration.withCredentials,headers:f,observe:l,reportProgress:h})}},{key:"findSimilarPublications",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("title",t)),null!=e&&(o=o.set("doi",e)),null!=i&&(o=o.set("isbn",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/findSimilarPublications"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getCategories",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/getCategories"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getPublicationSystems",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/getPublicationSystems"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getRank",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getRank.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/getRank"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichThanksByPublicationId",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichThanksByPublicationId.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/getRichThanksByPublicationId"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"lockPublications",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputLockPublications was null or undefined when calling lockPublications.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/lockPublications"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateCategory",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateCategory was null or undefined when calling updateCategory.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/updateCategory"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updatePublication",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdatePublication was null or undefined when calling updatePublication.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/updatePublication"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updatePublicationSystem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdatePublicationSystem was null or undefined when calling updatePublicationSystem.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/updatePublicationSystem"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),m=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"getCurrentDatabaseVersion",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/databaseManager/getCurrentDatabaseVersion"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getDatabaseDriverInformation",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/databaseManager/getDatabaseDriverInformation"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getDatabaseInformation",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/databaseManager/getDatabaseInformation"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getTimeOfQueryPerformance",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/databaseManager/getTimeOfQueryPerformance"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),v=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"addExtSourceWithGroupSource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling addExtSourceWithGroupSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithGroupSource.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("source",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/extSourcesManager/addExtSource/g-s"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addExtSourceWithVoSource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling addExtSourceWithVoSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithVoSource.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("source",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/extSourcesManager/addExtSource/v-s"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createExtSourceFromExtSourceObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter extSourceObject was null or undefined when calling createExtSourceFromExtSourceObject.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/extSourcesManager/createExtSource/es"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createExtSourceWithNameType",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter name was null or undefined when calling createExtSourceWithNameType.");if(null==e)throw new Error("Required parameter type was null or undefined when calling createExtSourceWithNameType.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("name",t)),null!=e&&(r=r.set("type",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/extSourcesManager/createExtSource/n-t"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteExtSource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteExtSource.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/extSourcesManager/deleteExtSource"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getExtSourceById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getExtSourceById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/extSourcesManager/getExtSourceById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getExtSourceByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter name was null or undefined when calling getExtSourceByName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("name",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/extSourcesManager/getExtSourceByName"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getExtSources",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/extSourcesManager/getExtSources"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getGroupExtSources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupExtSources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/extSourcesManager/getGroupExtSources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoExtSources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoExtSources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/extSourcesManager/getVoExtSources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"loadExtSourcesDefinitions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/extSourcesManager/loadExtSourcesDefinitions"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"removeExtSourceWithGroupSource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeExtSourceWithGroupSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithGroupSource.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("source",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/extSourcesManager/removeExtSource/g-s"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeExtSourceWithVoSource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeExtSourceWithVoSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithVoSource.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("source",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/extSourcesManager/removeExtSource/v-s"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),y=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"addFacilityAdminGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addAdmin/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addFacilityAdminGroupByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroupByFacilityName.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroupByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addAdmin/group/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addFacilityAdminUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addAdmin/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addFacilityAdminUserByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUserByFacilityName.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUserByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addAdmin/user/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addFacilityOwner",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwner.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwner.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addOwner"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addFacilityOwnerByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addOwner/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addFacilityOwnerByFacilityNameOwnerName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addOwner/f-o-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addFacilityOwnerByOwnerName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByOwnerName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addOwner/o-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addHost",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHost.");if(null==e)throw new Error("Required parameter hostname was null or undefined when calling addHost.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("hostname",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addHost"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addHostByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHostByFacilityName.");if(null==e)throw new Error("Required parameter hostname was null or undefined when calling addHostByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("hostname",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addHost/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addHosts",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHosts.");if(null==e)throw new Error("Required parameter hostnames was null or undefined when calling addHosts.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(function(t){r=r.append("hostnames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addHosts"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addHostsByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHostsByFacilityName.");if(null==e)throw new Error("Required parameter hostnames was null or undefined when calling addHostsByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(function(t){r=r.append("hostnames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addHosts/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"assignSecurityTeam",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeam.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeam.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("securityTeam",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/assignSecurityTeam"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"assignSecurityTeamByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeamByFacilityName.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeamByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("securityTeam",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/assignSecurityTeam/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributes.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacility",t)),null!=e&&(r=r.set("destFacility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyAttributes"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyAttributesByDestinationName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributesByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesByDestinationName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacility",t)),null!=e&&(r=r.set("destFacilityName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyAttributes/dest-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyAttributesBySourceDestinationNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacilityName",t)),null!=e&&(r=r.set("destFacilityName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyAttributes/src-dest-names"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyAttributesBySourceName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributesBySourceName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacilityName",t)),null!=e&&(r=r.set("destFacility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyAttributes/src-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyManagers",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagers.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyManagers.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacility",t)),null!=e&&(r=r.set("destFacility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyManagers"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyManagersByDestinationName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagersByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersByDestinationName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacility",t)),null!=e&&(r=r.set("destFacilityName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyManagers/dest-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyManagersBySourceDestinationNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacilityName",t)),null!=e&&(r=r.set("destFacilityName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyManagers/src-dest-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyManagersBySourceName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyManagersBySourceName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacilityName",t)),null!=e&&(r=r.set("destFacility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyManagers/src-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyOwners",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwners.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyOwners.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacility",t)),null!=e&&(r=r.set("destFacility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyOwners"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyOwnersByDestinationName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwnersByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersByDestinationName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacility",t)),null!=e&&(r=r.set("destFacilityName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyOwners/dest-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyOwnersBySourceDestinationNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacilityName",t)),null!=e&&(r=r.set("destFacilityName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyOwners/src-dest-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyOwnersBySourceName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyOwnersBySourceName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacilityName",t)),null!=e&&(r=r.set("destFacility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyOwners/src-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter name was null or undefined when calling createFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("name",t)),null!=e&&(r=r.set("description",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/createFacility"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling deleteFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("force",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/deleteFacility"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteFacilityByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling deleteFacilityByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/deleteFacility/f-name"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllFacilities",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilities"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAllowedGroups",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroups.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("service",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAllowedGroups"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getAllowedGroupsByFacilityName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroupsByFacilityName.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("service",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAllowedGroups/f-name"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getAllowedRichGroupsWithAttributes",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributes.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributes.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),e&&e.forEach(function(t){a=a.append("attrNames[]",t)}),null!=i&&(a=a.set("vo",i)),null!=n&&(a=a.set("service",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAllowedRichGroupsWithAttributes"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"getAllowedRichGroupsWithAttributesByFacilityName",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),e&&e.forEach(function(t){a=a.append("attrNames[]",t)}),null!=i&&(a=a.set("vo",i)),null!=n&&(a=a.set("service",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAllowedRichGroupsWithAttributes/f-name"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"getAllowedUsersOfFacility",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacility.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("service",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAllowedUsers/v-f-s"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getAllowedUsersOfFacilityByFacilityName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacilityByFacilityName.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("service",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAllowedUsers/v-f-s/f-name"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getAllowedVos",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedVos.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/getAllowedVos"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllowedVosByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedVosByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/getAllowedVos/f-name"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedFacilitiesByGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedFacilitiesByGroup.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedFacilities/group"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedFacilitiesByMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedFacilitiesByMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedFacilities/member"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedFacilitiesByService",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedFacilitiesByService.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedFacilities/service"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedFacilitiesByUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedFacilitiesByUser.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedFacilities/user"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedResourcesByAssignedServiceForFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("service",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedResourcesByAssignedService"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAssignedResourcesForFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedResources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedResourcesForFacilityByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacilityByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedResources/f-name"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedRichResourcesForFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedRichResources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedRichResourcesForFacilityByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedRichResources/f-name"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedSecurityTeams",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeams.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedSecurityTeams"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedSecurityTeamsByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeamsByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedSecurityTeams/f-name"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedUsers",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsers.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("service",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedUsers"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAssignedUsersByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsersByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("service",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedUsers/f-name"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getBansForFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facilityId was null or undefined when calling getBansForFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facilityId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getBansForFacility"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getBansForUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getBansForUser.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getBansForUser"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getEnrichedFacilities",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getEnrichedFacilities"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getEnrichedHosts",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedHosts.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getEnrichedHosts.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getEnrichedHosts"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilitiesByAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttribute.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("attributeName",t)),null!=e&&(r=r.set("attributeValue",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilitiesByAttribute"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilitiesByDestination",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter destination was null or undefined when calling getFacilitiesByDestination.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("destination",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilitiesByDestination"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilitiesByHostName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter hostname was null or undefined when calling getFacilitiesByHostName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilitiesByHostName"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilitiesByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getFacilitiesByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilitiesByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilitiesCount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilitiesCount"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getFacilitiesWhereUserIsAdmin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilitiesWhereUserIsAdmin.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilitiesWhereUserIsAdmin"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityAdminGroups",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroups.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAdminGroups"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityAdminUsers",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsers.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsers.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("onlyDirectAdmins",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAdmins"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilityAdminUsersByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsersByFacilityName.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsersByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("onlyDirectAdmins",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAdmins/f-name"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilityBan",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityBan.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityBan.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getBan"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilityBanById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter banId was null or undefined when calling getFacilityBanById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getBanById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getFacilityById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilityById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter name was null or undefined when calling getFacilityByName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("name",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilityByName"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityForHost",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter host was null or undefined when calling getFacilityForHost.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("host",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilityForHost"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityOwners",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwners.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getOwners"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityOwnersByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwnersByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getOwners/f-name"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getHostById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getHostById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getHostById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getHosts",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHosts.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getHosts"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getHostsByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getHosts/f-name"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getHostsByHostname",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter hostname was null or undefined when calling getHostsByHostname.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getHostsByHostname"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getHostsCount",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsCount.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getHostsCount"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getHostsCountByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsCountByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getHostsCount/f-name"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getOwnerFacilities",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter owner was null or undefined when calling getOwnerFacilities.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("owner",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getOwnerFacilities"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichFacilities",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getRichFacilities"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"removeBanByUserIdFacilityId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling removeBanByUserIdFacilityId.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeBanByUserIdFacilityId.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeBan/byUserIdFacilityId"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityAdminGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeAdmin/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityAdminGroupByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroupByFacilityName.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroupByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeAdmin/group/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityAdminUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeAdmin/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityAdminUserByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUserByFacilityName.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUserByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeAdmin/user/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityBanById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeFacilityBanById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeBan/byId"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeFacilityOwner",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwner.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwner.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeOwner"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityOwnerByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeOwner/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityOwnerByFacilityNameOwnerName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeOwner/f-o-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityOwnerByOwnerName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByOwnerName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeOwner/o-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeHost",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHost.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("host",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeHost"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeHostByHostname",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter hostname was null or undefined when calling removeHostByHostname.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeHostByHostname"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeHosts",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeHosts.");if(null==e)throw new Error("Required parameter hosts was null or undefined when calling removeHosts.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(function(t){r=r.append("hosts[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeHosts"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeHostsByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeHostsByFacilityName.");if(null==e)throw new Error("Required parameter hosts was null or undefined when calling removeHostsByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(function(t){r=r.append("hosts[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeHosts/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeSecurityTeam",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeam.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeam.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("securityTeam",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeSecurityTeam"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeSecurityTeamByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeamByFacilityName.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeamByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("securityTeam",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeSecurityTeam/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"setFacilityBan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetBanForUserOnFacility was null or undefined when calling setFacilityBan.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/facilitiesManager/setBan"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateFacility was null or undefined when calling updateFacility.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/facilitiesManager/updateFacility"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateFacilityBan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateBanForFacility was null or undefined when calling updateFacilityBan.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/facilitiesManager/updateBan"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),_=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"getFacilityAdminGroupsByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroupsByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAdminGroups/f-name"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),b=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"addMember",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling addMember.");var r=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){r=r.append("groups[]",t)}),null!=e&&(r=r.set("member",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/addMember"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addMembers",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling addMembers.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(function(t){r=r.append("members[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/addMembers"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"canExtendMembershipInGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/canExtendMembershipInGroup"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createGroupUnion",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resultGroup",t)),null!=e&&(r=r.set("operandGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/createGroupUnion"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createGroupWithParentGroupNameDescription",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("parentGroup",t)),null!=e&&(o=o.set("name",e)),null!=i&&(o=o.set("description",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/createGroup/pg-n-d"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"createGroupWithVoNameDescription",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("name",e)),null!=i&&(o=o.set("description",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/createGroup/v-n-d"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"deleteGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("force",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/deleteGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteGroups",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputDeleteGroups was null or undefined when calling deleteGroups.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/groupsManager/deleteGroups"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"extendMembershipInGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/extendMembershipInGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"forceAllSubGroupsSynchronization",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"forceGroupStructureSynchronization",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/forceGroupStructureSynchronization"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"forceGroupSynchronization",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/forceGroupSynchronization"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllGroups",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllGroups"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllGroupsFromAllVos",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllGroups/all"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAllMemberGroups",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllMemberGroups"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllRichGroups",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("attrNames[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllRichGroups"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllRichGroupsWithAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllRichGroupsWithAttributesByNames"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAllRichSubGroupsWithGroupAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllRichSubGroupsWithAttributesByNames"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getGroupById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==e)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("name",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupByName"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupMemberById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==e)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("member",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMemberById"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMembers"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupMembersCount",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMembersCount"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupMembersCountsByGroupStatus",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMembersCountsByGroupStatus"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupMembersCountsByVoStatus",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMembersCountsByVoStatus"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupRichMembersByIds",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==e)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(function(t){o=o.append("members[]",t)}),i&&i.forEach(function(t){o=o.append("attrNames[]",t)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupRichMembersByIds"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getGroupUnions",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==e)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("reverseDirection",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupUnions"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupsByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupsByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupsPage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputGetPaginatedGroups was null or undefined when calling getGroupsPage.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/groupsManager/getGroupsPage"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"getIndirectMembershipPaths",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getIndirectMembershipPaths"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMemberGroups",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getMemberGroups"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMemberRichGroupsWithAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getMemberRichGroupsWithAttributesByNames"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRichGroupByIdWithAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("groupId",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getRichGroupByIdWithAttributesByNames"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getSubgroupsPage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/groupsManager/getSubgroupsPage"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"isGroupMember",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==e)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/isGroupMember"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"moveGroupWithDestinationGroupMovingGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");var r=new s.LE({encoder:this.encoder});null!=e&&(r=r.set("destinationGroup",e)),null!=t&&(r=r.set("movingGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/moveGroup/dg-mg"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupUnion",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resultGroup",t)),null!=e&&(r=r.set("operandGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/removeGroupUnion"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeMember",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMember.");var r=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){r=r.append("groups[]",t)}),null!=e&&(r=r.set("member",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/removeMember"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeMembers",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling removeMembers.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(function(t){r=r.append("members[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/removeMembers"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"setGroupsMemberStatus",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==e)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==i)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("status",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/setGroupsMemberStatus"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"updateGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateGroup was null or undefined when calling updateGroup.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/groupsManager/updateGroup"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),w=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"getGroupMemberData",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/integrationManager/getGroupMemberData"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),A=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"canExtendMembership",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/canExtendMembership"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"createMemberForCandidate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createMember/c"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createMemberForUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateMemberForUser was null or undefined when calling createMemberForUser.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createMember/u"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createMemberFromExtSource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createMember/extSource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createSpecificMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSpecificMember was null or undefined when calling createSpecificMember.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createSpecificMember"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createSponsoredMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createSponsoredMember/withFullName"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createSponsoredMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateSponsoredMember1 was null or undefined when calling createSponsoredMembers.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createSponsoredMembers"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createSponsoredMembersFromCSV",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createSponsoredMembersFromCSV"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling deleteMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/deleteMember"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("members[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/deleteMembers"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"extendMembership",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembership.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/extendMembership"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"findCompleteRichMembersByAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");var o=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){o=o.append("attrsNames[]",t)}),null!=e&&(o=o.set("searchString",e)),i&&i.forEach(function(t){o=o.append("allowedStatuses[]",t)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findCompleteRichMembers/attrs"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"findCompleteRichMembersForGroup",value:function(t,e,i,n,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",c=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(null==t)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==n)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");var u=new s.LE({encoder:this.encoder});null!=t&&(u=u.set("group",t)),e&&e.forEach(function(t){u=u.append("attrsNames[]",t)}),r&&r.forEach(function(t){u=u.append("allowedStatuses[]",t)}),o&&o.forEach(function(t){u=u.append("allowedGroupStatuses[]",t)}),null!=i&&(u=u.set("searchString",i)),null!=n&&(u=u.set("lookingInParentGroup",n));var l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var h="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+h)}var d=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==d&&(l=l.set("Accept",d)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findCompleteRichMembers/g"),{params:u,withCredentials:this.configuration.withCredentials,headers:l,observe:a,reportProgress:c})}},{key:"findCompleteRichMembersForVo",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),e&&e.forEach(function(t){a=a.append("attrsNames[]",t)}),n&&n.forEach(function(t){a=a.append("allowedStatuses[]",t)}),null!=i&&(a=a.set("searchString",i));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findCompleteRichMembers/v"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"findMembersInVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("searchString",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findMembersInVo"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"findSponsoredCompleteRichMembersForVo",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==n)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),e&&e.forEach(function(t){a=a.append("attrsNames[]",t)}),null!=i&&(a=a.set("searchString",i)),null!=n&&(a=a.set("onlySponsored",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findCompleteRichMembers/v-sponsored"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"getAllMembers",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getAllMembers"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAllNamespacesRules",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getAllNamespacesRules"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAllSponsoredMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getAllSponsoredMembers"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllSponsoredMembersAndTheirSponsors",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getAllSponsoredMembersAndTheirSponsors"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getCompleteRichMembersForGroup",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");var c=new s.LE({encoder:this.encoder});null!=t&&(c=c.set("group",t)),i&&i.forEach(function(t){c=c.append("allowedStatuses[]",t)}),n&&n.forEach(function(t){c=c.append("allowedGroupStatuses[]",t)}),null!=e&&(c=c.set("lookingInParentGroup",e)),r&&r.forEach(function(t){c=c.append("attrsNames[]",t)});var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getCompleteRichMembers/g"),{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"getCompleteRichMembersForGroupResource",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==i)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==n)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),null!=e&&(a=a.set("resource",e)),i&&i.forEach(function(t){a=a.append("attrsNames[]",t)}),n&&n.forEach(function(t){a=a.append("allowedStatuses[]",t)});var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getCompleteRichMembers/g-r"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"getCompleteRichMembersForVo",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(function(t){o=o.append("allowedStatuses[]",t)}),i&&i.forEach(function(t){o=o.append("attrsNames[]",t)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getCompleteRichMembers/v"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberByExtSourceNameAndExtLogin",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==i)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("extLogin",e)),null!=i&&(o=o.set("extSourceName",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMemberByExtSourceNameAndExtLogin"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getMemberById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMemberById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMemberByUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMemberByUser"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMembers",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembers.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("status",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembers"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMembersByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembersByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMembersByUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembersByUser"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMembersCount",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembersCount"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMembersPage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputGetPaginatedMembers was null or undefined when calling getMembersPage.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/getMembersPage"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"getMembersWithStatusCount",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==e)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("status",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembersCount/status"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRichMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getRichMember"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichMemberWithAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getRichMemberWithAttributes"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichMembersByIds",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");var r=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){r=r.append("ids[]",t)}),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getRichMembersByIds"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getSponsoredMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getSponsoredMembers/v"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getSponsoredMembersAndTheirSponsors",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getSponsoredMembersAndTheirSponsors"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getSponsorsByMember",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getSponsors/member"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getSponsorsByVo",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("extSourceName",e)),null!=i&&(a=a.set("extLogin",i)),n&&n.forEach(function(t){a=a.append("attrNames[]",t)});var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getSponsors/vo"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"moveMembership",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==e)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==i)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("sourceUser",e)),null!=i&&(o=o.set("targetUser",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/moveMembership"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeSponsor",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("sponsor",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/removeSponsor"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"sendAccountActivationLinkEmail",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==n)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("emailAttributeURN",i)),null!=n&&(a=a.set("language",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/sendAccountActivationLinkEmail"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"sendPasswordResetLinkEmail",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==n)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");var c=new s.LE({encoder:this.encoder});null!=t&&(c=c.set("member",t)),null!=e&&(c=c.set("namespace",e)),null!=i&&(c=c.set("emailAttributeURN",i)),null!=n&&(c=c.set("language",n)),null!=r&&(c=c.set("baseUrl",r));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/sendPasswordResetLinkEmail"),null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"setSponsoredMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetSponsoredMember was null or undefined when calling setSponsoredMember.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/setSponsoredMember"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setSponsorshipForMember",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("sponsoredMember",t)),null!=e&&(o=o.set("sponsor",e)),null!=i&&(o=o.set("validityTo",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/setSponsorshipForMember"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"setStatus",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==e)throw new Error("Required parameter status was null or undefined when calling setStatus.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("status",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/setStatus"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"sponsorMember",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("sponsor",e)),null!=i&&(o=o.set("validityTo",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/sponsorMember"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"updateSponsorshipValidity",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("sponsor",e)),null!=i&&(o=o.set("validityTo",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/updateSponsorshipValidity"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"validateMemberAsync",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/validateMemberAsync"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),k=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"createOwner",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateOwner was null or undefined when calling createOwner.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/ownersManager/createOwner"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteOwner",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("owner",t)),null!=e&&(r=r.set("force",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/ownersManager/deleteOwner"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAllOwners",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/ownersManager/getOwners"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getOwnerById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/ownersManager/getOwnerById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getOwnerByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("owner",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/ownersManager/getOwnerByName"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),C=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"sentMessageToRTWithMemberQueue",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("memberId",t)),null!=e&&(a=a.set("queue",e)),null!=i&&(a=a.set("subject",i)),null!=n&&(a=a.set("text",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"sentMessageToRTWithQueue",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("queue",t)),null!=e&&(o=o.set("subject",e)),null!=i&&(o=o.set("text",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/rtMessagesManager/sentMessageToRT/q"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"sentMessageToRTWithVo",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("voId",t)),null!=e&&(o=o.set("subject",e)),null!=i&&(o=o.set("text",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/rtMessagesManager/sentMessageToRT/v"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"sentMessageToRTWithVoQueue",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("voId",t)),null!=e&&(a=a.set("queue",e)),null!=i&&(a=a.set("subject",i)),null!=n&&(a=a.set("text",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),T=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"addApplicationMailForGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/addApplicationMail/g"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"addApplicationMailForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/addApplicationMail/v"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"addGroupsToAutoRegistration",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("groups[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/addGroupsToAutoRegistration"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"approveApplication",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling approveApplication.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/approveApplication"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"checkForSimilarUsersWithAuthInfo",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo"),null,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"consolidateIdentityUsingToken",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("token",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/consolidateIdentityUsingToken"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"copyFormFromGroupToGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("fromGroup",t)),null!=e&&(r=r.set("toGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyForm/groupToGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyFormFromGroupToVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("fromGroup",t)),null!=e&&(r=r.set("toVo",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyForm/groupToVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyFormFromVoToGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("fromVo",t)),null!=e&&(r=r.set("toGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyForm/voToGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyFormFromVoToVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("fromVo",t)),null!=e&&(r=r.set("toVo",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyForm/voToVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyMailsFromGroupToGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("fromGroup",t)),null!=e&&(r=r.set("toGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyMails/groupToGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyMailsFromGroupToVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("fromGroup",t)),null!=e&&(r=r.set("toVo",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyMails/groupToVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyMailsFromVoToGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("fromVo",t)),null!=e&&(r=r.set("toGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyMails/voToGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyMailsFromVoToVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("fromVo",t)),null!=e&&(r=r.set("toVo",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyMails/voToVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createApplicationFormInGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/createApplicationForm/group"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"createApplicationFormInVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/createApplicationForm/vo"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteApplication",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/deleteApplication"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteApplicationMailForGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("id",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/deleteApplicationMail/g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteApplicationMailForVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("id",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/deleteApplicationMail/v"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteGroupsFromAutoRegistration",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("groups[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getApplicationById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getApplicationDataById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationDataById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getApplicationMailsForGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationMails/g"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getApplicationMailsForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationMails/v"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getApplicationsForGroup",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),e&&e.forEach(function(t){a=a.append("state[]",t)}),null!=i&&(a=a.set("dateFrom",i)),null!=n&&(a=a.set("dateTo",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationsForGroup"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"getApplicationsForMember",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationsForMember"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getApplicationsForVo",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),e&&e.forEach(function(t){a=a.append("state[]",t)}),null!=i&&(a=a.set("dateFrom",i)),null!=n&&(a=a.set("dateTo",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationsForVo"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"getConsolidatorToken",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getConsolidatorToken"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getFormItemsForGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getFormItems/group"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFormItemsForGroupWithType",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("type",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getFormItems/group-type"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFormItemsForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getFormItems/vo"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFormItemsForVoWithType",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("type",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getFormItems/vo-type"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupApplicationForm",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationForm/group"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupsToAutoRegistration",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getGroupsToAutoRegistration"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoApplicationForm",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationForm/vo"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"rejectApplication",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("id",t)),null!=e&&(r=r.set("reason",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/rejectApplication"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"sendInvitation",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");var a=new s.LE({encoder:this.encoder});null!=i&&(a=a.set("voId",i)),null!=n&&(a=a.set("name",n)),null!=t&&(a=a.set("email",t)),null!=e&&(a=a.set("language",e));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/sendInvitation"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"sendInvitationForGroup",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");var c=new s.LE({encoder:this.encoder});null!=i&&(c=c.set("voId",i)),null!=n&&(c=c.set("groupId",n)),null!=r&&(c=c.set("name",r)),null!=t&&(c=c.set("email",t)),null!=e&&(c=c.set("language",e));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/sendInvitation/g"),null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"sendInvitationGroupToExistingUser",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("userId",t)),null!=e&&(o=o.set("voId",e)),null!=i&&(o=o.set("groupId",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/sendInvitation/u-g"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"sendInvitationToExistingUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("userId",t)),null!=e&&(r=r.set("voId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/sendInvitation/u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"sendMessage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSendMessage was null or undefined when calling sendMessage.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/sendMessage"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setSendingEnabled",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetSendingEnabled was null or undefined when calling setSendingEnabled.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/setSendingEnabled"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"submitApplication",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSubmitApplication was null or undefined when calling submitApplication.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/submitApplication"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateApplicationMail",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateApplicationMail"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateForm",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateForm was null or undefined when calling updateForm.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateForm"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateFormItemData",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputFormItemData was null or undefined when calling updateFormItemData.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateFormItemData"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateFormItemsData",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputFormItemData1 was null or undefined when calling updateFormItemsData.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateFormItemsData"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateFormItemsForGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateFormItems/group"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateFormItemsForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateFormItems/vo"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"verifyApplication",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/verifyApplication"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),E=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"activateGroupResourceAssignment",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("async",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/activateGroupResourceAssignment"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"addAdminToGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/addAdmin/r-g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addAdminToUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/addAdmin/r-u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addResourceSelfServiceGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/addResourceSelfServiceGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addResourceSelfServiceUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/addResourceSelfServiceUser"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"allowGroupsToResources",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");var o=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){o=o.append("groups[]",t)}),e&&e.forEach(function(t){o=o.append("resources[]",t)}),null!=i&&(o=o.set("async",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/allowGroupsToResources"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"assignGroupToResource",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");var c=new s.LE({encoder:this.encoder});null!=t&&(c=c.set("group",t)),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("async",i)),null!=n&&(c=c.set("assignInactive",n)),null!=r&&(c=c.set("autoAssignSubgroups",r));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignGroupToResource"),null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"assignGroupToResources",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");var c=new s.LE({encoder:this.encoder});null!=t&&(c=c.set("group",t)),e&&e.forEach(function(t){c=c.append("resources[]",t)}),null!=i&&(c=c.set("async",i)),null!=n&&(c=c.set("assignInactive",n)),null!=r&&(c=c.set("autoAssignSubgroups",r));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignGroupToResources"),null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"assignGroupsToResource",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");var c=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){c=c.append("groups[]",t)}),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("async",i)),null!=n&&(c=c.set("assignInactive",n)),null!=r&&(c=c.set("autoAssignSubgroups",r));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignGroupsToResource"),null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"assignResourceTagToResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/assignResourceTagToResource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"assignService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling assignService.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("service",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignService"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"assignServices",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling assignServices.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),e&&e.forEach(function(t){r=r.append("services[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignServices"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"assignServicesPackage",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("servicesPackage",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignServicesPackage"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCopyResource was null or undefined when calling copyResource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/copyResource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createResource",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==i)throw new Error("Required parameter name was null or undefined when calling createResource.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("facility",e)),null!=i&&(a=a.set("name",i)),null!=n&&(a=a.set("description",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/createResource"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"createResourceTagWithResourceTag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/createResourceTag/resourceTag"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createResourceTagWithTagName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("tagName",t)),null!=e&&(r=r.set("vo",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/createResourceTag/tagName"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deactivateGroupResourceAssignment",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteAllResources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/deleteAllResources"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteAllResourcesTagsForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/deleteResource"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteResourceTag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputDeleteResourceTag was null or undefined when calling deleteResourceTag.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/deleteResourceTag"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"getAdminGroups",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAdminGroups"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAdmins",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("onlyDirectAdmins",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAdmins"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAllResourcesByResourceTag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/getAllResourcesByResourceTag"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"getAllResourcesTagsForResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllResourcesTagsForResource"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllResourcesTagsForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllResourcesTagsForVo"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllResourcesWhereUserIsAdmin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesWhereUserIsAdmin/all"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllowedMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllowedMembers"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllowedResources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllowedResources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllowedUsersOfResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllowedUsers"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedGroups",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("member",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedGroups"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAssignedMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedMembers"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedMembersWithStatus",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedMembersWithStatus"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedResourcesWithGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedResources/g"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedResourcesWithMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedResources/m"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedResourcesWithStatus",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedResourcesWithStatus"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedRichMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedRichMembers"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedRichResourcesWithGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedRichResources/g"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedRichResourcesWithMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedRichResources/m"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedRichResourcesWithMemberService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("service",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedRichResources/s-m"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAssignedServicesToResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedServices"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getBansForMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getBansForMember"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getBansForResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getBansForResource"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getEnrichedResourceById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("id",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getEnrichedResourceById"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getEnrichedResourcesForFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getEnrichedResourcesForFacility"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getEnrichedResourcesForVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getEnrichedResourcesForVo"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getFacility"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupAssignments",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getGroupAssignments"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceAssignments",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourceAssignments"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceBan",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getBan"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceBanById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getBanById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getResourceById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getResourceById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourceById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getResourceByName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==i)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("name",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourceByName"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getResources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getResourcesByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getResourcesCountForAll",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesCount/all"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getResourcesCountForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesCount/vo"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getResourcesFromVoWhereUserIsAdmin",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourcesWhereGroupIsAdmin",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("group",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesWhereUserIsAdmin/group"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getResourcesWhereUserIsAdmin",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("user",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesWhereUserIsAdmin"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getRichAdmins",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==e)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==i)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==n)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("resource",t)),e&&e.forEach(function(t){a=a.append("specificAttributes",t)}),null!=i&&(a=a.set("allUserAttributes",i)),null!=n&&(a=a.set("onlyDirectAdmins",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getRichAdmins"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"getRichResourceById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getRichResourceById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichResources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getRichResources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichResourcesByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getRichResourcesByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getVo.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getVo"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeAllResourceTagsFromResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeBanByMemberAndResource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeBan/member-resource-id"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupAdminResource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeAdmin/r-g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupFromResource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeGroupFromResource"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupFromResources",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(function(t){r=r.append("resources[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeGroupFromResources"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupsFromResource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");var r=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){r=r.append("groups[]",t)}),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeGroupsFromResource"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeResourceBanById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeBan/id"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeResourceSelfServiceGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeResourceSelfServiceUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeResourceSelfServiceUser"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeResourceTagFromResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/removeResourceTagFromResource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"removeService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeService.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("service",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeService"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeServices",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling removeServices.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),e&&e.forEach(function(t){r=r.append("services[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeServices"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeServicesPackage",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("servicesPackage",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeServicesPackage"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeUserAdminResource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeAdmin/r-u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"setResourceBan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetBan was null or undefined when calling setResourceBan.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/setBan"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"unallowGroupsFromResources",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");var r=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){r=r.append("groups[]",t)}),e&&e.forEach(function(t){r=r.append("resources[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/unallowGroupsFromResources"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"updateResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateResource was null or undefined when calling updateResource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/updateResource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateResourceBan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateBan was null or undefined when calling updateResourceBan.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/updateBan"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateResourceTag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateResourceTag was null or undefined when calling updateResourceTag.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/updateResourceTag"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),S=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"addDestination",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter service was null or undefined when calling addDestination.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling addDestination.");if(null==i)throw new Error("Required parameter destination was null or undefined when calling addDestination.");if(null==n)throw new Error("Required parameter type was null or undefined when calling addDestination.");var c=new s.LE({encoder:this.encoder});null!=t&&(c=c.set("service",t)),null!=e&&(c=c.set("facility",e)),null!=i&&(c=c.set("destination",i)),null!=n&&(c=c.set("type",n)),null!=r&&(c=c.set("propagationType",r));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/addDestination"),null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"addDestinationToMultipleServices",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAddDestinationToMultipleServices was null or undefined when calling addDestinationToMultipleServices.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/servicesManager/addDestination"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"addDestinationsDefinedByHostsOnFacilityWithFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/f"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAddDestinationsDefinedByHostsOnFacility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/servicesManager/addDestinationsDefinedByHostsOnFacility/lists-f"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/s-f"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addDestinationsForAllServicesOnFacility",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==i)throw new Error("Required parameter type was null or undefined when calling addDestinationsForAllServicesOnFacility.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),null!=e&&(a=a.set("destination",e)),null!=i&&(a=a.set("type",i)),null!=n&&(a=a.set("propagationType",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/addDestinationsForAllServicesOnFacility"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"addRequiredAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling addRequiredAttribute.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling addRequiredAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/addRequiredAttribute"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addRequiredAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling addRequiredAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling addRequiredAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/addRequiredAttributes"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addServiceToServicesPackage",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling addServiceToServicesPackage.");if(null==e)throw new Error("Required parameter service was null or undefined when calling addServiceToServicesPackage.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("servicesPackage",t)),null!=e&&(r=r.set("service",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/addServiceToServicesPackage"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"blockAllServicesOnDestinationById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("destination",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/blockAllServicesOnDestination/d"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"blockAllServicesOnDestinationByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationByName.");if(null==e)throw new Error("Required parameter destinationType was null or undefined when calling blockAllServicesOnDestinationByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("destination",t)),null!=e&&(r=r.set("destinationType",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/blockAllServicesOnDestination/dname-dtype"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"blockAllServicesOnFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling blockAllServicesOnFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/blockAllServicesOnFacility"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"blockServiceOnDestination",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestination.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("destination",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/blockServiceOnDestination/s-d"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"blockServiceOnDestinationWithNameAndType",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==i)throw new Error("Required parameter destinationType was null or undefined when calling blockServiceOnDestinationWithNameAndType.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("destination",e)),null!=i&&(o=o.set("destinationType",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/blockServiceOnDestination/s-dname-dtype"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"blockServiceOnFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling blockServiceOnFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/blockServiceOnFacility"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createService",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter name was null or undefined when calling createService.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createService.");if(null==i)throw new Error("Required parameter script was null or undefined when calling createService.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("name",t)),null!=e&&(o=o.set("description",e)),null!=i&&(o=o.set("script",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/createService"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"createServiceWithService",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateService was null or undefined when calling createServiceWithService.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/servicesManager/createService"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createServicesPackage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateServicesPackage was null or undefined when calling createServicesPackage.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/servicesManager/createServicesPackage"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createServicesPackageByNameAndDescription",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter name was null or undefined when calling createServicesPackageByNameAndDescription.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createServicesPackageByNameAndDescription.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("name",t)),null!=e&&(r=r.set("description",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/createServicesPackage"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling deleteService.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("force",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/deleteService"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteServicesPackage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling deleteServicesPackage.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("servicesPackage",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/deleteServicesPackage"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"forceServicePropagation",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling forceServicePropagation.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/forceServicePropagation"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAllDestinations",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getDestinations/all"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAllRichDestinationsForFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllRichDestinationsForFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getAllRichDestinations/f"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllRichDestinationsForService",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter service was null or undefined when calling getAllRichDestinationsForService.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getAllRichDestinations/s"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedResources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedResources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getAssignedResourcesForService"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedServices",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedServices.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getAssignedServices"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getDataWithGroups",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling getDataWithGroups.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDataWithGroups.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getDataWithGroups"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getDataWithVos",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling getDataWithVos.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDataWithVos.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getDataWithVos"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getDestinationById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getDestinationById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getDestinationById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getDestinations",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling getDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDestinations.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getDestinations/s-f"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getDestinationsCount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getDestinationsCount"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getFacilitiesDestinations",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFacilitiesDestinations.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getFacilitiesDestinations"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityAssignedServicesForGUI",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAssignedServicesForGUI.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getFacilityAssignedServicesForGUI"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFlatData",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling getFlatData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFlatData.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getFlatData"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getHashedDataWithGroups",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling getHashedDataWithGroups.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHashedDataWithGroups.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getHashedDataWithGroups"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getHashedHierarchicalData",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling getHashedHierarchicalData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHashedHierarchicalData.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getHashedHierarchicalData"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getHierarchicalData",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling getHierarchicalData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHierarchicalData.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getHierarchicalData"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getRichDestinations",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRichDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRichDestinations.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getRichDestinations"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getServiceById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getServiceById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServiceById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServiceByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter name was null or undefined when calling getServiceByName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("name",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServiceByName"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServices",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServices"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getServicesBlockedOnDestination",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter destination was null or undefined when calling getServicesBlockedOnDestination.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("destination",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServicesBlockedOnDestination"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServicesBlockedOnFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getServicesBlockedOnFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServicesBlockedOnFacility"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServicesByAttributeDefinition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getServicesByAttributeDefinition.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServicesByAttributeDefinition"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServicesFromServicesPackage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesFromServicesPackage.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("servicesPackage",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServicesFromServicesPackage"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServicesPackageById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesPackageById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("servicesPackage",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServicesPackageById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServicesPackageByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter name was null or undefined when calling getServicesPackageByName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("name",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServicesPackageByName"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServicesPackages",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServicesPackages"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"isServiceBlockedOnDestination",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling isServiceBlockedOnDestination.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("destination",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/isServiceBlockedOnDestination"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"isServiceBlockedOnFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling isServiceBlockedOnFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/isServiceBlockedOnFacility"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"planServicePropagation",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling planServicePropagation.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/planServicePropagation"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeAllDestinations",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling removeAllDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAllDestinations.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/removeAllDestinations"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeAllRequiredAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter service was null or undefined when calling removeAllRequiredAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/removeAllRequiredAttributes"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeDestination",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter service was null or undefined when calling removeDestination.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeDestination.");if(null==i)throw new Error("Required parameter destination was null or undefined when calling removeDestination.");if(null==n)throw new Error("Required parameter type was null or undefined when calling removeDestination.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("facility",e)),null!=i&&(a=a.set("destination",i)),null!=n&&(a=a.set("type",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/removeDestination"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"removeRequiredAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttribute.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling removeRequiredAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/removeRequiredAttribute"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeRequiredAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeRequiredAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/removeRequiredAttributes"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeServiceFromServicesPackage",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServiceFromServicesPackage.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeServiceFromServicesPackage.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("servicesPackage",t)),null!=e&&(r=r.set("service",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/removeServiceFromServicesPackage"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"unblockAllServicesOnDestinationById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("destination",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/unblockAllServicesOnDestination/d"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"unblockAllServicesOnDestinationByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationByName.");if(null==e)throw new Error("Required parameter destinationType was null or undefined when calling unblockAllServicesOnDestinationByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("destination",t)),null!=e&&(r=r.set("destinationType",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/unblockAllServicesOnDestination/dname-dtype"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"unblockAllServicesOnFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling unblockAllServicesOnFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/unblockAllServicesOnFacility"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"unblockServiceOnDestinationById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationById.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("destination",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/unblockServiceOnDestination/s-d"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"unblockServiceOnDestinationByName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationByName.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationByName.");if(null==i)throw new Error("Required parameter destinationType was null or undefined when calling unblockServiceOnDestinationByName.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("destination",e)),null!=i&&(o=o.set("destinationType",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/unblockServiceOnDestination/s-dname-dtype"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"unblockServiceOnFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling unblockServiceOnFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/unblockServiceOnFacility"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"updateService",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateService was null or undefined when calling updateService.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/servicesManager/updateService"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateServicesPackage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateServicesPackage was null or undefined when calling updateServicesPackage.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/servicesManager/updateServicesPackage"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),I=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"countTasks",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/countTasks"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"deleteTask",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter taskIdObject was null or undefined when calling deleteTask.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/tasksManager/deleteTask"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteTaskResultById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter taskResultIdObject was null or undefined when calling deleteTaskResultById.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/tasksManager/deleteTaskResultById"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteTaskResultsIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter taskAndDestinationIdObject was null or undefined when calling deleteTaskResultsIds.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/tasksManager/deleteTaskResults/id"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteTaskResultsNames",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter taskAndDestinationNameObject was null or undefined when calling deleteTaskResultsNames.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/tasksManager/deleteTaskResults/name"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"getAllFacilitiesStates",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getAllFacilitiesStates"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllResourcesState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter voId was null or undefined when calling getAllResourcesState.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("voId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getAllResourcesState"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityServicesState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityServicesState.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getFacilityServicesState"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityState.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getFacilityState"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getTask",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling getTask.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getTask.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTask"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getTaskById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getTaskById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTaskById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getTaskResultById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter taskResult was null or undefined when calling getTaskResultById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("taskResult",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTaskResultById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getTaskResults",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTaskResults"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getTaskResultsByTask",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsByTask.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("task",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTaskResultsByTask"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getTaskResultsForDestinations",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter destinations was null or undefined when calling getTaskResultsForDestinations.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("destinations[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTaskResultsForDestinations"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getTaskResultsForGUIByTask",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTask.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("task",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTaskResultsForGUIByTask"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getTaskResultsForGUIByTaskAndDestination",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("task",t)),null!=e&&(r=r.set("destination",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTaskResultsForGUIByTaskAndDestination"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getTaskResultsForGUIByTaskOnlyNewest",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskOnlyNewest.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("task",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTaskResultsForGUIByTaskOnlyNewest"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"isThereSuchTask",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling isThereSuchTask.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling isThereSuchTask.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/isThereSuchTask"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"listAllTasks",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/listAllTasks"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"listAllTasksForFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling listAllTasksForFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/listAllTasksForFacility"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"suspendTasksPropagation",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter suspend was null or undefined when calling suspendTasksPropagation.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("suspend",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/tasksManager/suspendTasksPropagation"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),R=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"addSpecificUserOwner",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("specificUser",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/addSpecificUserOwner"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addUserExtSource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter addUserExtSourceInput was null or undefined when calling addUserExtSource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/usersManager/addUserExtSource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"anonymizeUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/anonymizeUser"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"changeNonAuthzPasswordByToken",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==e)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("token",t)),null!=e&&(o=o.set("password",e)),null!=i&&(o=o.set("lang",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/changeNonAuthzPassword/token"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"changePasswordForLogin",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");var c=new s.LE({encoder:this.encoder});null!=t&&(c=c.set("login",t)),null!=e&&(c=c.set("namespace",e)),null!=i&&(c=c.set("newPassword",i)),null!=n&&(c=c.set("oldPassword",n)),null!=r&&(c=c.set("checkOldPassword",r));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/changePassword/login"),null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"changePasswordForUser",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");var c=new s.LE({encoder:this.encoder});null!=t&&(c=c.set("user",t)),null!=e&&(c=c.set("namespace",e)),null!=i&&(c=c.set("newPassword",i)),null!=n&&(c=c.set("oldPassword",n)),null!=r&&(c=c.set("checkOldPassword",r));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/changePassword/user"),null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"checkPasswordResetRequestByTokenIsValid",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("token",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/checkPasswordResetRequestIsValid/token"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"checkPasswordStrength",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("password",t)),null!=e&&(r=r.set("namespace",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/checkPasswordStrength"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createAlternativePassword",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==i)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==n)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("user",t)),null!=e&&(a=a.set("description",e)),null!=i&&(a=a.set("loginNamespace",i)),null!=n&&(a=a.set("password",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/createAlternativePassword"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"createServiceUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateServiceUser was null or undefined when calling createServiceUser.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/usersManager/createServiceUser"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteAlternativePassword",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==i)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("loginNamespace",e)),null!=i&&(o=o.set("passwordId",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/deleteAlternativePassword"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"deletePasswordForLogin",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("login",t)),null!=e&&(r=r.set("namespace",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/deletePassword/login"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deletePasswordForUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("namespace",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/deletePassword/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("force",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/deleteUser"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"findRichUsers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/findRichUsers"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"findRichUsersWithAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("searchString",t)),e&&e.forEach(function(t){r=r.append("attrsNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/findRichUsersWithAttributes"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"findUsers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/findUsers"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"generateAccountForName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("namespace",t)),null!=e&&(r=r.set("name",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/generateAccount/name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAllRichUsersWithAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("includedSpecificUsers",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getAllRichUsersWithAttributes"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedRichResourcesForUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getAssignedRichResources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupsForFacilityWhereUserIsActive",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getGroupsWhereUserIsActive/facility"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupsForResourceWhereUserIsActive",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getGroupsWhereUserIsActive/resource"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupsInVoWhereUserIsAdmin",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("vo",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getGroupsWhereUserIsAdmin/u-v"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupsWhereUserIsAdmin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getGroupsWhereUserIsAdmin/u"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getPendingPreferredEmailChanges",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getPendingPreferredEmailChanges"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichUserExtSources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUserExtSources/u"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichUserWithAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUserWithAttributes"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichUsersByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUsersByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichUsersWithAttributesByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUsersWithAttributesByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichUsersWithoutVoWithAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("attrsNames[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUsersWithoutVoWithAttributes"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getSpecificUsersByUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getSpecificUsersByUser"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getSponsorsForMember",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getSponsorsForMember/member"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getSponsorsForMemberByVoAndLogin",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("extSourceName",e)),null!=i&&(a=a.set("extLogin",i)),n&&n.forEach(function(t){a=a.append("attrNames[]",t)});var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getSponsorsForMember/vo"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"getUserByExtSourceNameAndExtLogin",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("extLogin",t)),null!=e&&(r=r.set("extSourceName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserByExtSourceNameAndExtLogin"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getUserById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUserExtSourceById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("userExtSource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserExtSourceById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUserExtSourceByUniqueAttributeValueAndAttributeId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("attributeId",t)),null!=e&&(r=r.set("attributeValue",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserExtSourceByUniqueAttributeValue/id"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserExtSourceByUniqueAttributeValueAndAttributeName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("attributeName",t)),null!=e&&(r=r.set("attributeValue",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserExtSourceByUniqueAttributeValue/name"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserExtSources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserExtSources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUserExtSourcesByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserExtSourcesByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUsers",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUsers"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getUsersByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUsersByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUsersBySpecificUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("specificUser",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUsersBySpecificUser"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUsersPage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputGetPaginatedUsers was null or undefined when calling getUsersPage.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/usersManager/getUsersPage"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"getVosWhereUserIsAdmin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getVosWhereUserIsAdmin"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVosWhereUserIsMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getVosWhereUserIsMember"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"isLoginAvailable",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==e)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("loginNamespace",t)),null!=e&&(r=r.set("login",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/isLoginAvailable"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"loginExist",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("namespace",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/loginExist"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeSpecificUserOwner",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("specificUser",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/removeSpecificUserOwner"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeUserExtSource",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("userExtSource",e)),null!=i&&(o=o.set("force",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/removeUserExtSource"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"requestPreferredEmailChange",value:function(t,e,i,n,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",c=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(null==t)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==e)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");var u=new s.LE({encoder:this.encoder});null!=t&&(u=u.set("user",t)),null!=e&&(u=u.set("email",e)),null!=i&&(u=u.set("lang",i)),null!=n&&(u=u.set("linkPath",n)),null!=r&&(u=u.set("customUrl",r)),null!=o&&(u=u.set("idpFilter",o));var l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var h="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+h)}var d=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==d&&(l=l.set("Accept",d)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/requestPreferredEmailChange"),null,{params:u,withCredentials:this.configuration.withCredentials,headers:l,observe:a,reportProgress:c})}},{key:"reservePasswordForLogin",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("login",t)),null!=e&&(o=o.set("namespace",e)),null!=i&&(o=o.set("password",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/reservePassword/login"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"reservePasswordForUser",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("namespace",e)),null!=i&&(o=o.set("password",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/reservePassword/user"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"reserveRandomPassword",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("namespace",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/reserveRandomPassword"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"updateUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateUser was null or undefined when calling updateUser.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/usersManager/updateUser"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"validatePasswordForLogin",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("login",t)),null!=e&&(r=r.set("namespace",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/validatePassword/login"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"validatePasswordForUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("namespace",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/validatePassword/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"validatePreferredEmailChangeWithToken",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==e)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("token",t)),null!=e&&(r=r.set("u",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/validatePreferredEmailChange"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),x=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"getAppsConfig",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getAppsConfig"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getGuiConfiguration",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getGuiConfiguration"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getPerunRPCVersion",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["text/plain"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getPerunStatistics",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getPerunStatistics"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getPerunStatus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getPerunStatus"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getPerunSystemTimeInMillis",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getPerunSystemTimeInMillis"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),O=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"addSponsorRoleToGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/addSponsorRole/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addSponsorRoleToUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/addSponsorRole/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addVoAdminGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/addAdmin/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addVoAdminUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/addAdmin/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createVoWithName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==e)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("name",t)),null!=e&&(r=r.set("shortName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/createVo/withName"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createVoWithVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateVoWithVo was null or undefined when calling createVoWithVo.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/vosManager/createVo/withVo"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("force",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/deleteVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"findCandidates",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("id",t)),null!=e&&(o=o.set("searchString",e)),null!=i&&(o=o.set("maxNumOfResults",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/findCandidates"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"findCandidatesForGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("searchString",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/findCandidates/forGroup"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAllVos",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getAllVos"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getCompleteCandidatesForGroup",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(function(t){o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("searchString",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getCompleteCandidates/forGroup"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getCompleteCandidatesForVo",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(function(t){o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("searchString",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getCompleteCandidates/forVo"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMyVos",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVos"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getRichAdminsForVo",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==i)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==n)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==r)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");var c=new s.LE({encoder:this.encoder});null!=t&&(c=c.set("vo",t)),null!=e&&(c=c.set("role",e)),i&&i.forEach(function(t){c=c.append("specificAttributes",t)}),null!=n&&(c=c.set("allUserAttributes",n)),null!=r&&(c=c.set("onlyDirectAdmins",r));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getRichAdmins"),{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"getVoAdminGroups",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("role",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getAdminGroups"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getVoAdminUsers",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==i)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("role",e)),null!=i&&(o=o.set("onlyDirectAdmins",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getAdmins"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getVoBanById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getBanById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoBanForMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getBanForMember"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoBansForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getBansForVo"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getVoById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVoById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoByShortName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("shortName",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVoByShortName"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoMembersCountsByStatus",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVoMembersCountsByStatus"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVosByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVosByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVosCount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVosCount"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"removeSponsorRoleFromGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeSponsorRole/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeSponsorRoleFromUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeSponsorRole/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeVoAdminGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeAdmin/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeVoAdminUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeAdmin/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeVoBan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeBan"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeVoBanForMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeBanForMember"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"setVoBan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetVoBan was null or undefined when calling setVoBan.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/vosManager/setBan"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateVo was null or undefined when calling updateVo.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/vosManager/updateVo"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),P={WRITE:"WRITE",WRITEVO:"WRITE_VO",WRITEPUBLIC:"WRITE_PUBLIC",READ:"READ",READVO:"READ_VO",READPUBLIC:"READ_PUBLIC"};!function(t){t.HiddenEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"},t.DisabledEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"}}(n||(n={})),function(t){t.FormatEnum={DOT:"DOT",TGF:"TGF"}}(r||(r={})),function(t){t.OwnerTypeEnum={NUMBER_0:0,NUMBER_1:1}}(o||(o={})),function(t){t.TypeEnum={Technical:"technical",Administrative:"administrative"}}(a||(a={}));var D={HTMLCOMMENT:"HTML_COMMENT",SUBMITBUTTON:"SUBMIT_BUTTON",AUTOSUBMITBUTTON:"AUTO_SUBMIT_BUTTON",FROMFEDERATIONSHOW:"FROM_FEDERATION_SHOW",FROMFEDERATIONHIDDEN:"FROM_FEDERATION_HIDDEN",PASSWORD:"PASSWORD",VALIDATEDEMAIL:"VALIDATED_EMAIL",TEXTFIELD:"TEXTFIELD",TEXTAREA:"TEXTAREA",CHECKBOX:"CHECKBOX",RADIO:"RADIO",SELECTIONBOX:"SELECTIONBOX",COMBOBOX:"COMBOBOX",USERNAME:"USERNAME",HEADING:"HEADING",TIMEZONE:"TIMEZONE",EMBEDDEDGROUPAPPLICATION:"EMBEDDED_GROUP_APPLICATION"},M=function(){var t=function(){function t(e,i){if(_classCallCheck(this,t),e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!i)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}return _createClass(t,null,[{key:"forRoot",value:function(e){return{ngModule:t,providers:[{provide:h,useFactory:e}]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(t,12),u.LFG(s.eN,8))},t.\u0275mod=u.oAB({type:t}),t.\u0275inj=u.cJS({providers:[d,f,p,g,m,v,y,_,b,w,A,k,C,T,E,S,I,R,x,O],imports:[[]]}),t}()},22280:function(t,e,i){"use strict";i.d(e,{r5:function(){return s.r},d4:function(){return o},dp:function(){return a.d}});var n=i(61511),r=i(31572),o=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[n.ez]]}),t}(),a=i(22196),s=(i(83787),i(95603));i(91322),i(63720),i(1157),i(48853),i(44031),i(31447),i(92898)},83787:function(t,e,i){"use strict";i.d(e,{a:function(){return a}});var n=i(68416),r=i(31572),o=i(48160),a=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.translate=e,this.storage=i}return _createClass(t,[{key:"transform",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en",i=this.storage.get("custom_labels");if(i)for(var n=Object.keys(i),r=0,o=n;r0?"red":null!==u&&u.trim().length>0?"green":""}if(o){var l=(0,n.IL)(t.attributes,r.r.GROUP_LAST_STRUCTURE_SYNC_STATE),h=(0,n.IL)(t.attributes,r.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),d=l.value,f=h.value;return null!=d&&d.trim().length>0?"red":null!==f&&f.trim().length>0?"green":""}return""}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"groupSyncIconColor",type:t,pure:!0}),t}()},52984:function(t,e,i){"use strict";i.d(e,{J:function(){return a}});var n=i(67004),r=i(84140),o=i(31572),a=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){if(null==t||null==t.attributes)return"";var e=(0,r.IL)(t.attributes,n.r.GROUP_SYNC_ENABLED),i=(0,r.IL)(t.attributes,n.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===e&&null===i)return"";var o=i.value;if("true"===e.value){var a=(0,r.IL)(t.attributes,n.r.GROUP_LAST_SYNC_STATE),s=(0,r.IL)(t.attributes,n.r.GROUP_LAST_SYNC_TIMESTAMP),c=a.value,u=s.value;return null!=c&&c.trim().length>0?"sync_problem":(null!==u&&u.trim(),"sync")}if(o){var l=(0,r.IL)(t.attributes,n.r.GROUP_LAST_STRUCTURE_SYNC_STATE),h=(0,r.IL)(t.attributes,n.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),d=l.value,f=h.value;return null!=d&&d.trim().length>0?"sync_problem":(null!==f&&f.trim(),"sync")}return"sync_disabled"}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"groupSyncIcon",type:t,pure:!0}),t}()},44385:function(t,e,i){"use strict";i.d(e,{r:function(){return a}});var n=i(84140),r=i(67004),o=i(31572),a=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){if(null==t||null==t.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";var e=(0,n.IL)(t.attributes,r.r.GROUP_SYNC_ENABLED),i=(0,n.IL)(t.attributes,r.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===e&&null===i)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";var o=i.value;if("true"===e.value){var a=(0,n.IL)(t.attributes,r.r.GROUP_LAST_SYNC_STATE),s=(0,n.IL)(t.attributes,r.r.GROUP_LAST_SYNC_TIMESTAMP),c=a.value,u=s.value;return null!=c&&c.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==u&&u.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}if(o){var l=(0,n.IL)(t.attributes,r.r.GROUP_LAST_STRUCTURE_SYNC_STATE),h=(0,n.IL)(t.attributes,r.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),d=l.value,f=h.value;return null!=d&&d.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==f&&f.trim().length>0?"VO_DETAIL.GROUPS.GROUP_STRUCTURE_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED"}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"groupSyncToolTip",type:t,pure:!0}),t}()},63720:function(t,e,i){"use strict";i.d(e,{D:function(){return o}});var n=i(84140),r=i(31572),o=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){return(0,n.g$)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Yjl({name:"memberEmail",type:t,pure:!0}),t}()},1157:function(t,e,i){"use strict";i.d(e,{p:function(){return o}});var n=i(84140),r=i(31572),o=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){return(0,n.lt)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Yjl({name:"memberLogins",type:t,pure:!0}),t}()},99197:function(t,e,i){"use strict";i.d(e,{M:function(){return o}});var n=i(84140),r=i(31572),o=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){return(0,n.Gw)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Yjl({name:"memberOrganization",type:t,pure:!0}),t}()},74842:function(t,e,i){"use strict";i.d(e,{u:function(){return r}});var n=i(31572),r=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){switch(t){case"VALID":return"green";case"INVALID":return"red";default:return""}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"memberStatusIconColor",type:t,pure:!0}),t}()},37043:function(t,e,i){"use strict";i.d(e,{f:function(){return r}});var n=i(31572),r=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){switch(t){case"VALID":return"verified_user";case"INVALID":return"report";case"EXPIRED":return"schedule";case"DISABLED":return"delete";default:return t}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"memberStatusIcon",type:t,pure:!0}),t}()},91322:function(t,e,i){"use strict";i.d(e,{i:function(){return o}});var n=i(84140),r=i(31572),o=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t,e){var i=null,r=null;null!==t.memberAttributes&&(i=t.memberAttributes.find(function(t){return"membershipExpiration"===t.friendlyName}),r=t.memberAttributes.find(function(t){return"groupMembershipExpiration"===t.friendlyName}));return e?"\n Group status: ".concat((0,n.Oe)(t.groupStatus),", Expiration: ").concat(r&&r.value?r.value:"never"):"Status: ".concat((0,n.Oe)(t.status,t.groupStatus),"\n Vo status: ").concat((0,n.Oe)(t.status),", Expiration: ").concat(i&&i.value?i.value:"never")}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Yjl({name:"memberStatusTooltip",type:t,pure:!0}),t}()},5725:function(t,e,i){"use strict";i.d(e,{l:function(){return r}});var n=i(31572),r=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){return t.replace("VALID","ACTIVE")}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"memberStatus",type:t,pure:!0}),t}()},82877:function(t,e,i){"use strict";i.d(e,{R:function(){return r}});var n=i(31572),r=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){return t.replace(/\s/g,"-").toLowerCase()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"multiWordDataCy",type:t,pure:!0}),t}()},58506:function(t,e,i){"use strict";i.d(e,{M:function(){return o}});var n=i(61511),r=i(31572),o=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t,e){return"voRules"===t?"Vo rules":"groupRules"===t?"Group rules":t&&"never"!==t.toLowerCase()?(0,n.p6)(t.replace(" ","T"),"d.M.yyyy "+(e?"H:mm:ss":""),"en"):"never"}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Yjl({name:"parseDate",type:t,pure:!0}),t}()},48853:function(t,e,i){"use strict";i.d(e,{J:function(){return o}});var n=i(84140),r=i(31572),o=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){return(0,n.te)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Yjl({name:"technicalOwners",type:t,pure:!0}),t}()},44031:function(t,e,i){"use strict";i.d(e,{S:function(){return o}});var n=i(84140),r=i(31572),o=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){return(0,n.kN)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Yjl({name:"userEmail",type:t,pure:!0}),t}()},22196:function(t,e,i){"use strict";i.d(e,{d:function(){return r}});var n=i(31572),r=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){var e="";return null!==t.titleBefore&&(e+=t.titleBefore+" "),null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),null!==t.titleAfter&&(e+=t.titleAfter+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"userFullName",type:t,pure:!0}),t}()},31447:function(t,e,i){"use strict";i.d(e,{g:function(){return o}});var n=i(84140),r=i(31572),o=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){return(0,n.$0)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Yjl({name:"userLogins",type:t,pure:!0}),t}()},92898:function(t,e,i){"use strict";i.d(e,{Z:function(){return o}});var n=i(84140),r=i(31572),o=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){return(0,n.OV)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Yjl({name:"userVo",type:t,pure:!0}),t}()},68416:function(t,e,i){"use strict";i.d(e,{yC:function(){return S},F5:function(){return T},sM:function(){return x},e8:function(){return d},EB:function(){return _},Be:function(){return G},Hy:function(){return z},ly:function(){return D},fb:function(){return j},xw:function(){return O},x4:function(){return a},v0:function(){return m},SZ:function(){return I},V6:function(){return E},jq:function(){return H},BN:function(){return Z},HV:function(){return q},d6:function(){return u},UA:function(){return P}});var n=i(65249),r=i(14732),o=i(31572),a=function(){var t=function(){function t(e){_classCallCheck(this,t),this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}return _createClass(t,[{key:"init",value:function(t){this.principal=t,this.initData(t)}},{key:"setPerunPolicies",value:function(t){this.perunPolicies=t}},{key:"getPerunPolicies",value:function(){return this.perunPolicies}},{key:"isAuthorized",value:function(t,e){if(null===this.principal.roles)return!1;var i,n=[],r=_createForOfIteratorHelper(this.fetchPolicyWithAllIncludedPolicies(t));try{for(r.s();!(i=r.n()).done;){var o=i.value;n=n.concat(o.perunRoles)}}catch(s){r.e(s)}finally{r.f()}var a=this.fetchAllRelatedObjects(e);return this.resolveAuthorization(n,a)}},{key:"resolveAuthorization",value:function(t,e){var i,n=_createForOfIteratorHelper(t);try{for(n.s();!(i=n.n()).done;){for(var r=i.value,o=!0,a=0,s=Object.keys(r);a1&&void 0!==arguments[1]?arguments[1]:this.getDefaultRpcMessage();this.showError("PrivilegeException"===t.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===t.name?e:e+"\n"+t.name,t,t.message)}},{key:"showError",value:function(t,e,i,n,r){this.addNotification.emit({type:"error",error:e,description:i,title:t,actionText:void 0===n&&void 0!==i?this.getDefaultActionMessage():n,delay:this.defaultErrorDelayMs,icon:"error_outline",action:r,timeStamp:"".concat((new Date).getHours(),":").concat((new Date).getMinutes())})}},{key:"showSuccess",value:function(t,e,i,n){this.addNotification.emit({type:"success",description:e,title:t,actionText:void 0===i&&void 0!==e?this.getDefaultActionMessage():i,delay:this.defaultSuccessDelayMs,icon:"done",action:n,timeStamp:"".concat((new Date).getHours(),":").concat((new Date).getMinutes())})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.LFG(f.sK))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),S=function(){var t=function(){function t(e,i,n,r,o,a){_classCallCheck(this,t),this.authService=e,this.apiRequestConfiguration=i,this.notificator=n,this.store=r,this.dialog=o,this.initAuthService=a}return _createClass(t,[{key:"intercept",value:function(t,e){var i=this,n=this.store.get("api_url");if(-1!==t.url.indexOf("i18n")&&(t=t.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==n&&-1!==t.url.toString().indexOf(n)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()){var r=(0,g.kZ)();r.width="450px",this.dialog.open(C,r).afterClosed().subscribe(function(){sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substr(1)),i.authService.startAuthentication()})}t=this.initAuthService.isServiceAccess()?t.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):t.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}});var o=this.apiRequestConfiguration.shouldHandleError(),a="POST"===t.method&&!this.store.skipOidc()&&this.isCallToPerunApi(t.url);return e.handle(t).pipe((0,A.b)(function(t){t instanceof b.Zn&&a&&i.initAuthService.loadPrincipal()},function(e){var n=i.formatErrors(e,t);return void 0===n?(0,w._)(e):o?void i.notificator.showRPCError(n):(0,w._)(n)}))}},{key:"isCallToPerunApi",value:function(t){return t.startsWith(this.store.get("api_url"))}},{key:"formatErrors",value:function(t,e){var i;if(console.error(t),t.error.errorId?i=t.error:t.errorId&&(i=JSON.parse(t.error)),void 0!==i)return i.urlWithParams=e.urlWithParams,i.call=e.url,i.payload=e.body,i}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.LFG(d),o.LFG(T),o.LFG(E),o.LFG(u),o.LFG(l.uw),o.LFG(m))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t}(),I=function(){var t=function(){function t(){_classCallCheck(this,t),this.notificationData=[],this.newNotificationsCount=0}return _createClass(t,[{key:"storeNotification",value:function(t){this.newNotificationsCount++,this.notificationData.push(t)}},{key:"getNotifications",value:function(){return this.notificationData.reverse()}},{key:"clearNotifications",value:function(){this.notificationData=[]}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),R=i(47727),x=function(){var t=function(){function t(e,i,n,r){_classCallCheck(this,t),this.http=e,this.notificator=i,this.authService=n,this.storeService=r}return _createClass(t,[{key:"getApiUrl",value:function(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}},{key:"formatErrors",value:function(t,e,i,n){var r=t.error;return r.call=e,r.payload=i,n&&this.notificator.showRPCError(t.error),(0,w._)(r)}},{key:"getHeaders",value:function(){var t=new b.WM;return t=t.set("Authorization",this.authService.getAuthorizationHeaderValue())}},{key:"get",value:function(t){var e=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="".concat(this.getApiUrl()).concat(t);return this.http.get(n,{headers:this.getHeaders()}).pipe((0,R.K)(function(t){return e.formatErrors(t,n,null,i)}))}},{key:"put",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r="".concat(this.getApiUrl()).concat(t),o=JSON.stringify(i);return this.http.put(r,o,{headers:this.getHeaders()}).pipe((0,R.K)(function(t){return e.formatErrors(t,r,o,n)}))}},{key:"post",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r="".concat(this.getApiUrl()).concat(t),o=JSON.stringify(i),a=this.getHeaders();return a=a.set("Content-Type","application/json; charset=utf-8"),this.http.post(r,o,{headers:a}).pipe((0,R.K)(function(t){return e.formatErrors(t,r,o,n)}))}},{key:"delete",value:function(t){var e=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="".concat(this.getApiUrl()).concat(t);return this.http.delete(n,{headers:this.getHeaders()}).pipe((0,R.K)(function(t){return e.formatErrors(t,n,null,i)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.LFG(b.eN),o.LFG(E),o.LFG(d),o.LFG(u))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),O=function(){var t=function(){function t(e){var i=this;_classCallCheck(this,t),this.router=e,this.lastState="forward",this.history=new Set,e.events.subscribe(function(t){t instanceof c.OD&&("popstate"===t.navigationTrigger?i.history.has(t.restoredState.navigationId)?(i.lastState="back",i.history.delete(t.restoredState.navigationId)):(i.lastState="forward",i.history.add(t.id)):(i.history.add(t.id),i.lastState="forward"))})}return _createClass(t,[{key:"forceNavigate",value:function(t,e){if(null!==t){var i="";t.forEach(function(t){return i+="/"+t}),i.length>0&&(i=i.substring(1)),void 0===e&&(e={}),e.queryParams={redirectTo:i},this.router.navigate(["redirect"],e)}}},{key:"getLastState",value:function(){return this.lastState}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.LFG(c.F0))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),P=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"isAllSelectedWithDisabledCheckbox",value:function(t,e,i,n,r,o,a,s){var c=this;return this.numSelected=t,this.numCanBeSelected=0,this.pageStart=r*i,this.pageEnd=this.pageStart+i,this.pageIterator=0,this.dataLength=""===e?o.data.length:o.filteredData.length,n||(this.modulo=this.dataLength%i,this.pageEnd=0===this.modulo?this.pageStart+i:this.pageStart+this.modulo),o.sortData(o.filteredData,a).forEach(function(t){c.pageStart<=c.pageIterator&&c.pageIterator=3?null:{isWeak:!0}}}}]),t}()},38457:function(t,e,i){"use strict";i.d(e,{f7:function(){return s},B2:function(){return c},g$:function(){return u},kN:function(){return l},$0:function(){return h},lt:function(){return d},bD:function(){return f},hu:function(){return p},Cz:function(){return g},te:function(){return m},ys:function(){return v},vL:function(){return y},sF:function(){return _},XI:function(){return b},OV:function(){return w},MX:function(){return A},oU:function(){return k},IL:function(){return C},Jc:function(){return T},v$:function(){return E},i5:function(){return S},kZ:function(){return I},dv:function(){return R},Hm:function(){return x},Oe:function(){return O},Gw:function(){return P},x2:function(){return D},sG:function(){return M},pR:function(){return N},Sd:function(){return z},Xn:function(){return Z},O6:function(){return B},aC:function(){return F},fx:function(){return q},mH:function(){return H}});var n=i(64762),r=i(84608),o=i(61511),a=i(82051),s=[5,10,25,100],c=/^(([^<>+()[\]\\.,;:\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 u(t){var e="";return t&&null!==t.userAttributes&&(t.userAttributes.forEach(function(t){"preferredMail"===t.friendlyName&&(e=t.value)}),e&&0===e.length&&null!==t.memberAttributes&&t.memberAttributes.forEach(function(t){"mail"===t.friendlyName&&null!==t.value&&(e=t.value)})),e}function l(t){var e="";return t&&t.userAttributes.forEach(function(t){"preferredMail"===t.friendlyName&&(e=t.value)}),e}function h(t){var e="";return t&&t.userAttributes&&t.userAttributes.filter(function(t){return"login-namespace"===t.baseFriendlyName}).filter(function(t){return null!==t.value}).forEach(function(t){e+=t.friendlyNameParameter+": "+t.value+", "}),e.endsWith(", ")&&(e=e.substring(0,e.length-2)),e}function d(t){var e="";return t&&t.userAttributes&&t.userAttributes.filter(function(t){return"login-namespace"===t.baseFriendlyName}).filter(function(t){return null!==t.value}).forEach(function(t){e+=t.friendlyNameParameter+": "+t.value+", "}),e.endsWith(", ")&&(e=e.substring(0,e.length-2)),e}function f(t){var e="";return null!==t.titleBefore&&(e+=t.titleBefore+" "),null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),null!==t.titleAfter&&(e+=t.titleAfter+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}function p(t){var e="";return null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}function g(t){var e="";return t.split(/(?=[A-Z])/g).forEach(function(t){e=(e=e.concat(t.toLowerCase())).concat(" ")}),e=e.charAt(0).toUpperCase()+e.slice(1,e.length-1)}function m(t){var e,i="",n=_createForOfIteratorHelper(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;"technical"===r.type&&(i+=r.name+", ")}}catch(o){n.e(o)}finally{n.f()}return i.endsWith(", ")&&(i=i.substring(0,i.length-2)),i}function v(t,e){return(0,n.mG)(this,void 0,void 0,regeneratorRuntime.mark(function i(){var n;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n=t,new Promise(function(t){return setTimeout(t,n)});case 2:e();case 3:case"end":return i.stop()}},i)}))}function y(t){return JSON.parse(localStorage.getItem(t))||[]}function _(t,e){if(null===localStorage.getItem(t)){var i=[];i.unshift(e.id),localStorage.setItem(t,JSON.stringify(i))}else{var n=JSON.parse(localStorage.getItem(t)),r=function(t,e){for(var i=0;i0&&n.splice(r,1),0!==r&&n.unshift(e.id),n.length>5&&n.pop(),localStorage.setItem(t,JSON.stringify(n))}}function b(t,e){if(null===localStorage.getItem("recent")){var i;i="Group"===t.beanName?[{id:t.id,name:t.shortName,fullName:t.name,type:t.beanName,voId:t.voId,voName:e}]:[{id:t.id,name:t.name,type:t.beanName,voId:t.voId}],localStorage.setItem("recent",JSON.stringify(i))}else{var n,r=JSON.parse(localStorage.getItem("recent")),o=function(t,e){for(var i=0;i0&&r.splice(o,1),0!==o&&r.unshift(n),r.length>5&&r.pop(),localStorage.setItem("recent",JSON.stringify(r))}}function w(t){var e="";return t&&t.userAttributes.forEach(function(t){"organization"===t.friendlyName&&(e=t.value)}),e}function A(t){return t.filter(function(t){return!t.namespace.includes("def:core")})}function k(t,e){var i=e.find(function(e){return e.id===t});return i?i.parentGroupId?k(i.parentGroupId,e).concat(i):[i]:[]}function C(t,e){var i,n=_createForOfIteratorHelper(t);try{for(n.s();!(i=n.n()).done;){var r=i.value;if(r.namespace+":"+r.friendlyName===e)return r}}catch(o){n.e(o)}finally{n.f()}return null}function T(t){return null!=t.attributes["urn:perun:member:attribute-def:def:mail"]?t.attributes["urn:perun:member:attribute-def:def:mail"]:null!=t.attributes["urn:perun:user:attribute-def:def:preferredMail"]?t.attributes["urn:perun:user:attribute-def:def:preferredMail"]:""}function E(t){return t.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceX509".toLowerCase()?function(t){if(t.includes("/CN=")){var e=t.split("/");for(var i in e)if(i.startsWith("CN="))return n=i.substring(3),decodeURIComponent(n.replace(/\\x/g,"%"))}var n;return t}(t.userExtSource.extSource.name):t.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceIdp".toLowerCase()?function(t){switch(t){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":return"Elixir Europe";case"https://login.elixir-czech.org/idp":return"Elixir Czech";case"https://mojeid.cz/saml/idp.xml":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"@mojeid.extidp.cesnet.cz":return"MojeID";case"@linkedin.extidp.cesnet.cz":return"LinkedIn";case"@twitter.extidp.cesnet.cz":return"Twitter";case"@seznam.extidp.cesnet.cz":return"Seznam";case"@elixir-europe.org":return"Elixir Europe";case"@github.extidp.cesnet.cz":return"GitHub";case"@orcid.extidp.cesnet.cz":return"OrcID";default:return t}}(t.userExtSource.extSource.name):t.userExtSource.extSource.name}function S(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["en","cs"],e={appType:"INITIAL",formId:0,mailType:"APP_CREATED_USER",send:!0,message:{}};return t.forEach(function(t){e.message[t]={locale:t,subject:"",text:""}}),e}function I(){var t=new r.vA;return t.disableClose=!0,t.autoFocus=!1,t}function R(t){var e,i={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},n=_createForOfIteratorHelper(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;i.i18n[r]={locale:r,errorMessage:"",help:"",label:"",options:""}}}catch(o){n.e(o)}finally{n.f()}return i}function x(t){return"virt"===t.namespace.split(":")[4]}function O(t,e){return"valid"!==t.toLowerCase()||e&&"valid"!==t.toLowerCase()?t:"ACTIVE"}function P(t){var e="";return t&&null!==t.memberAttributes&&(t.memberAttributes.forEach(function(t){"organization"===t.friendlyName&&null!==t.value&&(e=t.value)}),0===e.length&&null!==t.userAttributes&&t.userAttributes.forEach(function(t){"organization"===t.friendlyName&&(e=t.value)})),e}function D(t){var e=t.attributes.find(function(t){return"groupMembershipExpiration"===t.baseFriendlyName});return e&&e.value?e.value:"Never"}function M(t){return t&&"never"!==t.toLowerCase()?(0,o.p6)(t,"d.M.yyyy","en"):t}var L=new Intl.Collator("cs",{numeric:!0});function N(t,e,i,n){var r=e.active,o=e.direction;return r&&""!==o?t.sort(function(t,e){var a=i(t,r,n),s=i(e,r,n);return L.compare(a,s)*("asc"===o?1:-1)}):t}function z(t,e,i,n,r,o){e=e.toLowerCase();var a="";return i.forEach(function(e){a+=";"+n(t,e,r)}),o&&(a+=";"+n(t,"uuid",r)),-1!==a.toLowerCase().indexOf(e)}function Z(t,e,i,n){var r=[],o=["checkbox","select","edit","menu","cite","extend","recent"];return e=e.filter(function(t){return!o.includes(t)}),t.forEach(function(t){var o={};e.forEach(function(e){var r;o[e]=(null!==(r=i(t,e,n))&&void 0!==r?r:"").split('"').join("''").trim()}),r.push(o)}),r}function B(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"csv",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"export";switch(e){case"csv":var n=function(t,e){return null===e?"":e},r=Object.keys(t[0]),o=t.map(function(t){return r.map(function(e){return JSON.stringify(t[e],n)}).join(",")});o.unshift(r.join(",").split(" ").join("_").split('"').join("''"));var s=o.join("\r\n"),c=new Blob([s],{type:"text/csv"});(0,a.saveAs)(c,"".concat(i,".").concat(e))}}function F(t,e){return t.name.toLowerCase()>e.name.toLowerCase()?1:t.name.toLowerCase()===e.name.toLowerCase()?0:-1}function q(t,e){var i,n,r,o,a,s;return t.user?(a=t.user.lastName?t.user.lastName:null!==(i=t.user.firstName)&&void 0!==i?i:"",s=e.user.lastName?e.user.lastName:null!==(n=e.user.firstName)&&void 0!==n?n:""):(a=t.lastName?t.lastName:null!==(r=t.firstName)&&void 0!==r?r:"",s=e.lastName?e.lastName:null!==(o=e.firstName)&&void 0!==o?o:""),a>s?1:a===s?0:-1}function H(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];t.enable(),t.clearValidators(),t.clearAsyncValidators(),t.setValidators(e),t.setAsyncValidators(i),t.updateValueAndValidity()}},82819:function(t,e,i){"use strict";i.d(e,{l:function(){return m}});var n=i(31572),r=i(73005),o=i(38457),a=i(60611),s=i(61511),c=i(15980),u=i(8055),l=i(43691),h=i(48160),d=function(){var t=function t(){_classCallCheck(this,t),this.exportData=new n.vpe};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,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(t,e){if(1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"button",1),n.TgZ(2,"mat-icon"),n._uU(3,"more_vert"),n.qZA(),n.qZA(),n.TgZ(4,"mat-menu",null,2),n.TgZ(6,"button",3),n._uU(7),n.ALo(8,"translate"),n.qZA(),n.qZA(),n.TgZ(9,"mat-menu",null,4),n.TgZ(11,"button",5),n.NdJ("click",function(){return e.exportData.emit("csv")}),n._uU(12,"Csv"),n.qZA(),n.qZA(),n.qZA()),2&t){var i=n.MAs(5),r=n.MAs(10);n.xp6(1),n.Q6J("matMenuTriggerFor",i),n.xp6(5),n.Q6J("matMenuTriggerFor",r),n.xp6(1),n.hij(" ",n.lcZ(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[c.lW,u.p6,l.Hw,u.VK,u.OP],pipes:[h.X$],styles:[""]}),t}();function f(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"perun-web-apps-table-options",6),n.NdJ("exportData",function(t){return n.CHM(i),n.oxw().exportData.emit(t)}),n.qZA()}}function p(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"perun-web-apps-table-options",6),n.NdJ("exportData",function(t){return n.CHM(i),n.oxw().exportData.emit(t)}),n.qZA()}}var g=["*"],m=function(){var t=function(){function t(e){_classCallCheck(this,t),this.tableConfigService=e,this.hideExport=!1,this.pageSizeOptions=o.f7,this.dataLength=0,this.exportData=new n.vpe,this.pageSize=5}return _createClass(t,[{key:"ngOnInit",value:function(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5)}},{key:"matPaginator",set:function(t){this.paginator=t}},{key:"pageChangedTop",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"pageChangedBottom",value:function(t){this.paginator.pageSize=t.pageSize,this.paginator.pageIndex=t.pageIndex,this.paginator.page.emit(t),this.pageSize=t.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(a.dB))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(t,e){var i;(1&t&&n.Gf(r.NW,7),2&t)&&(n.iGM(i=n.CRH())&&(e.matPaginator=i.first))},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId"},outputs:{exportData:"exportData"},ngContentSelectors:g,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(t,e){1&t&&(n.F$t(),n.TgZ(0,"div",0),n.TgZ(1,"div",1),n.TgZ(2,"mat-paginator",2),n.NdJ("page",function(t){return e.pageChangedTop(t)}),n.qZA(),n.YNc(3,f,1,0,"perun-web-apps-table-options",3),n.qZA(),n.TgZ(4,"div",4),n.Hsn(5),n.qZA(),n.TgZ(6,"div",1),n.TgZ(7,"mat-paginator",5),n.NdJ("page",function(t){return e.pageChangedBottom(t)}),n.qZA(),n.YNc(8,p,1,0,"perun-web-apps-table-options",3),n.qZA(),n.qZA()),2&t&&(n.xp6(2),n.Q6J("length",e.dataLength)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("ngIf",!e.hideExport),n.xp6(4),n.Q6J("length",e.paginator.length)("pageIndex",e.paginator.pageIndex)("pageSizeOptions",e.paginator.pageSizeOptions)("pageSize",e.paginator.pageSize),n.xp6(1),n.Q6J("ngIf",!e.hideExport))},directives:[r.NW,s.O5,d],styles:[""]}),t}()},39571:function(t,e,i){"use strict";i.d(e,{w:function(){return h}});var n=i(31572),r=i(61511),o=i(43691);function a(t,e){1&t&&(n.TgZ(0,"mat-icon",2),n._uU(1," info "),n.qZA())}function s(t,e){1&t&&(n.TgZ(0,"mat-icon",2),n._uU(1," warning "),n.qZA())}function c(t,e){1&t&&(n.TgZ(0,"mat-icon",2),n._uU(1," dangerous "),n.qZA())}function u(t,e){1&t&&(n.TgZ(0,"mat-icon",2),n._uU(1," check_circle "),n.qZA())}var l=["*"],h=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:l,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(t,e){1&t&&(n.F$t(),n.TgZ(0,"div",0),n.YNc(1,a,2,0,"mat-icon",1),n.YNc(2,s,2,0,"mat-icon",1),n.YNc(3,c,2,0,"mat-icon",1),n.YNc(4,u,2,0,"mat-icon",1),n.Hsn(5),n.qZA()),2&t&&(n.ekj("warn-alert","warn"===e.alert_type)("error-alert","error"===e.alert_type)("success-alert","success"===e.alert_type)("info-alert","info"===e.alert_type),n.xp6(1),n.Q6J("ngIf","info"===e.alert_type),n.xp6(1),n.Q6J("ngIf","warn"===e.alert_type),n.xp6(1),n.Q6J("ngIf","error"===e.alert_type),n.xp6(1),n.Q6J("ngIf","success"===e.alert_type))},directives:[r.O5,o.Hw],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:grey;text-align:left;border:1px solid #b3b3b3;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px solid #ececec;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 solid #fedcda;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px solid #d7ffd7;border-radius:10px;background-color:#d7ffd7}"]}),t}()},22727:function(t,e,i){"use strict";i.d(e,{r:function(){return a}});var n=i(43691),r=i(61511),o=i(31572),a=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[n.Ps,r.ez]]}),t}()},10709:function(t,e,i){"use strict";i.d(e,{l3:function(){return o},_j:function(){return n},LC:function(){return r},ZN:function(){return v},jt:function(){return s},pV:function(){return p},ru:function(){return c},F4:function(){return d},IO:function(){return g},vP:function(){return u},SB:function(){return h},oB:function(){return l},eR:function(){return f},X$:function(){return a},ZE:function(){return y},k1:function(){return _}});var n=function t(){_classCallCheck(this,t)},r=function t(){_classCallCheck(this,t)},o="*";function a(t,e){return{type:7,name:t,definitions:e,options:{}}}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:e,timings:t}}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:t,options:e}}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:t,options:e}}function l(t){return{type:6,styles:t,offset:null}}function h(t,e,i){return{type:0,name:t,styles:e,options:i}}function d(t){return{type:5,steps:t}}function f(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:t,animation:e,options:i}}function p(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:t}}function g(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:t,animation:e,options:i}}function m(t){Promise.resolve(null).then(t)}var v=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_classCallCheck(this,t),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+i}return _createClass(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var t=this;m(function(){return t._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(t){this._position=this.totalTime?t*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}]),t}(),y=function(){function t(e){var i=this;_classCallCheck(this,t),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var n=0,r=0,o=0,a=this.players.length;0==a?m(function(){return i._onFinish()}):this.players.forEach(function(t){t.onDone(function(){++n==a&&i._onFinish()}),t.onDestroy(function(){++r==a&&i._onDestroy()}),t.onStart(function(){++o==a&&i._onStart()})}),this.totalTime=this.players.reduce(function(t,e){return Math.max(t,e.totalTime)},0)}return _createClass(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(t){return t.init()})}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})}},{key:"pause",value:function(){this.players.forEach(function(t){return t.pause()})}},{key:"restart",value:function(){this.players.forEach(function(t){return t.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(t){var e=t*this.totalTime;this.players.forEach(function(t){var i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)})}},{key:"getPosition",value:function(){var t=this.players.reduce(function(t,e){return null===t||e.totalTime>t.totalTime?e:t},null);return null!=t?t.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}]),t}(),_="!"},24621:function(t,e,i){"use strict";i.d(e,{rt:function(){return j},s1:function(){return T},$s:function(){return w},Qr:function(){return N},kH:function(){return U},mK:function(){return P},Em:function(){return E},tE:function(){return q},qV:function(){return O},qm:function(){return G},Kd:function(){return L},X6:function(){return z},yG:function(){return Z}});var n=i(61511),r=i(31572),o=i(55959),a=i(87570),s=i(40878),c=i(75842),u=i(66599),l=i(47701),h=i(43835),d=i(79996),f=i(90611),p=i(19861),g=i(11353),m=i(36337);function v(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}var y=0,_=new Map,b=null,w=function(){var t=function(){function t(e){_classCallCheck(this,t),this._document=e}return _createClass(t,[{key:"describe",value:function(t,e,i){if(this._canBeDescribed(t,e)){var n=A(e,i);"string"!=typeof e?(k(e),_.set(n,{messageElement:e,referenceCount:0})):_.has(n)||this._createMessageElement(e,i),this._isElementDescribedByMessage(t,n)||this._addMessageReference(t,n)}}},{key:"removeDescription",value:function(t,e,i){if(e&&this._isElementNode(t)){var n=A(e,i);if(this._isElementDescribedByMessage(t,n)&&this._removeMessageReference(t,n),"string"==typeof e){var r=_.get(n);r&&0===r.referenceCount&&this._deleteMessageElement(n)}b&&0===b.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var t=this._document.querySelectorAll("[cdk-describedby-host]"),e=0;e-1&&e!==i._activeItemIndex&&(i._activeItemIndex=e)}})}return _createClass(t,[{key:"skipPredicate",value:function(t){return this._skipPredicateFn=t,this}},{key:"withWrap",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=t,this}},{key:"withVerticalOrientation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=t,this}},{key:"withHorizontalOrientation",value:function(t){return this._horizontal=t,this}},{key:"withAllowedModifierKeys",value:function(t){return this._allowedModifierKeys=t,this}},{key:"withTypeAhead",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,u.b)(function(e){return t._pressedLetters.push(e)}),(0,l.b)(e),(0,h.h)(function(){return t._pressedLetters.length>0}),(0,d.U)(function(){return t._pressedLetters.join("")})).subscribe(function(e){for(var i=t._getItemsArray(),n=1;n0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=t,this}},{key:"setActiveItem",value:function(t){var e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(t){var e=this,i=t.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(function(i){return!t[i]||e._allowedModifierKeys.indexOf(i)>-1});switch(i){case c.Mf:return void this.tabOut.next();case c.JH:if(this._vertical&&n){this.setNextItemActive();break}return;case c.LH:if(this._vertical&&n){this.setPreviousItemActive();break}return;case c.SV:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case c.oh:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case c.Sd:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case c.uR:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||(0,c.Vb)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(i>=c.A&&i<=c.Z||i>=c.xE&&i<=c.aO)&&this._letterKeyStream.next(String.fromCharCode(i))))}this._pressedLetters=[],t.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(t){var e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),n=e[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}},{key:"_setActiveItemByDelta",value:function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}},{key:"_setActiveInWrapMode",value:function(t){for(var e=this._getItemsArray(),i=1;i<=e.length;i++){var n=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[n]))return void this.setActiveItem(n)}}},{key:"_setActiveInDefaultMode",value:function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}},{key:"_setActiveItemByIndex",value:function(t,e){var i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}},{key:"_getItemsArray",value:function(){return this._items instanceof r.n_E?this._items.toArray():this._items}}]),t}(),T=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"setActiveItem",value:function(t){this.activeItem&&this.activeItem.setInactiveStyles(),_get(_getPrototypeOf(i.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.setActiveStyles()}}]),i}(C),E=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.apply(this,arguments))._origin="program",t}return _createClass(i,[{key:"setFocusOrigin",value:function(t){return this._origin=t,this}},{key:"setActiveItem",value:function(t){_get(_getPrototypeOf(i.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.focus(this._origin)}}]),i}(C),S=function(){var t=function(){function t(e){_classCallCheck(this,t),this._platform=e}return _createClass(t,[{key:"isDisabled",value:function(t){return t.hasAttribute("disabled")}},{key:"isVisible",value:function(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}},{key:"isTabbable",value:function(t){if(!this._platform.isBrowser)return!1;var e,i=function(t){try{return t.frameElement}catch(e){return null}}((e=t).ownerDocument&&e.ownerDocument.defaultView||window);if(i){if(-1===R(i))return!1;if(!this.isVisible(i))return!1}var n=t.nodeName.toLowerCase(),r=R(t);return t.hasAttribute("contenteditable")?-1!==r:"iframe"!==n&&"object"!==n&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){var e=t.nodeName.toLowerCase(),i="input"===e&&t.type;return"text"===i||"password"===i||"select"===e||"textarea"===e}(t))&&("audio"===n?!!t.hasAttribute("controls")&&-1!==r:"video"===n?-1!==r&&(null!==r||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}},{key:"isFocusable",value:function(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){var e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||I(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(g.t4))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(g.t4))},token:t,providedIn:"root"}),t}();function I(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function R(t){if(!I(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var x=function(){function t(e,i,n,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_classCallCheck(this,t),this._element=e,this._checker=i,this._ngZone=n,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return _createClass(t,[{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"destroy",value:function(){var t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.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)}},{key:"focusInitialElementWhenReady",value:function(t){var e=this;return new Promise(function(i){e._executeOnStable(function(){return i(e.focusInitialElement(t))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(t){var e=this;return new Promise(function(i){e._executeOnStable(function(){return i(e.focusFirstTabbableElement(t))})})}},{key:"focusLastTabbableElementWhenReady",value:function(t){var e=this;return new Promise(function(i){e._executeOnStable(function(){return i(e.focusLastTabbableElement(t))})})}},{key:"_getRegionBoundary",value:function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-".concat(t,"], [cdkFocusRegion").concat(t,"], [cdk-focus-").concat(t,"]")),i=0;i=0;i--){var n=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(n)return n}return null}},{key:"_createAnchor",value:function(){var t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}},{key:"_toggleAnchorTabIndex",value:function(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"_executeOnStable",value:function(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe((0,f.q)(1)).subscribe(t)}}]),t}(),O=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this._checker=e,this._ngZone=i,this._document=n}return _createClass(t,[{key:"create",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new x(t,this._checker,this._ngZone,this._document,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(S),r.LFG(r.R0b),r.LFG(n.K0))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(S),r.LFG(r.R0b),r.LFG(n.K0))},token:t,providedIn:"root"}),t}(),P=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this._elementRef=e,this._focusTrapFactory=i,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return _createClass(t,[{key:"enabled",get:function(){return this.focusTrap.enabled},set:function(t){this.focusTrap.enabled=(0,p.Ig)(t)}},{key:"autoCapture",get:function(){return this._autoCapture},set:function(t){this._autoCapture=(0,p.Ig)(t)}},{key:"ngOnDestroy",value:function(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}},{key:"ngAfterContentInit",value:function(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}},{key:"ngDoCheck",value:function(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}},{key:"ngOnChanges",value:function(t){var e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}},{key:"_captureFocus",value:function(){this._previouslyFocusedElement=(0,g.ht)(),this.focusTrap.focusInitialElementWhenReady()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(O),r.Y36(n.K0))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[r.TTD]}),t}();"undefined"!=typeof Element&∈var D=new r.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),M=new r.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),L=function(){var t=function(){function t(e,i,n,r){_classCallCheck(this,t),this._ngZone=i,this._defaultOptions=r,this._document=n,this._liveElement=e||this._createLiveElement()}return _createClass(t,[{key:"announce",value:function(t){for(var e,i,n,r=this,o=this._defaultOptions,a=arguments.length,s=new Array(a>1?a-1:0),c=1;c1&&void 0!==arguments[1]&&arguments[1],i=(0,p.fI)(t);if(!this._platform.isBrowser||1!==i.nodeType)return(0,s.of)(null);var n=(0,g.kV)(i)||this._getDocument(),r=this._elementInfo.get(i);if(r)return e&&(r.checkChildren=!0),r.subject;var a={checkChildren:e,subject:new o.xQ,rootNode:n};return this._elementInfo.set(i,a),this._registerGlobalListeners(a),a.subject}},{key:"stopMonitoring",value:function(t){var e=(0,p.fI)(t),i=this._elementInfo.get(e);i&&(i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(i))}},{key:"focusVia",value:function(t,e,i){var n=this,r=(0,p.fI)(t);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(function(t){var i=_slicedToArray(t,2),r=i[0],o=i[1];return n._originChanged(r,e,o)}):(this._setOriginForCurrentEventQueue(e),"function"==typeof r.focus&&r.focus(i))}},{key:"ngOnDestroy",value:function(){var t=this;this._elementInfo.forEach(function(e,i){return t.stopMonitoring(i)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(t,e,i){i?t.classList.add(e):t.classList.remove(e)}},{key:"_getFocusOrigin",value:function(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}},{key:"_setClasses",value:function(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}},{key:"_setOriginForCurrentEventQueue",value:function(t){var e=this;this._ngZone.runOutsideAngular(function(){e._origin=t,0===e._detectionMode&&(e._originTimeoutId=setTimeout(function(){return e._origin=null},1))})}},{key:"_wasCausedByTouch",value:function(t){var e=H(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(t,e){var i=this._elementInfo.get(e);i&&(i.checkChildren||e===H(t))&&this._originChanged(e,this._getFocusOrigin(t),i)}},{key:"_onBlur",value:function(t,e){var i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}},{key:"_emitOrigin",value:function(t,e){this._ngZone.run(function(){return t.next(e)})}},{key:"_registerGlobalListeners",value:function(t){var e=this;if(this._platform.isBrowser){var i=t.rootNode,n=this._rootNodeFocusListenerCount.get(i)||0;n||this._ngZone.runOutsideAngular(function(){i.addEventListener("focus",e._rootNodeFocusAndBlurListener,F),i.addEventListener("blur",e._rootNodeFocusAndBlurListener,F)}),this._rootNodeFocusListenerCount.set(i,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(function(){var t=e._getDocument(),i=e._getWindow();t.addEventListener("keydown",e._documentKeydownListener,F),t.addEventListener("mousedown",e._documentMousedownListener,F),t.addEventListener("touchstart",e._documentTouchstartListener,F),i.addEventListener("focus",e._windowFocusListener)})}}},{key:"_removeGlobalListeners",value:function(t){var e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){var i=this._rootNodeFocusListenerCount.get(e);i>1?this._rootNodeFocusListenerCount.set(e,i-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,F),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,F),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){var n=this._getDocument(),r=this._getWindow();n.removeEventListener("keydown",this._documentKeydownListener,F),n.removeEventListener("mousedown",this._documentMousedownListener,F),n.removeEventListener("touchstart",this._documentTouchstartListener,F),r.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}},{key:"_originChanged",value:function(t,e,i){this._setClasses(t,e),this._emitOrigin(i.subject,e),this._lastFocusOrigin=e}},{key:"_getClosestElementsInfo",value:function(t){var e=[];return this._elementInfo.forEach(function(i,n){(n===t||i.checkChildren&&n.contains(t))&&e.push([n,i])}),e}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(r.R0b),r.LFG(g.t4),r.LFG(n.K0,8),r.LFG(B,8))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(r.R0b),r.LFG(g.t4),r.LFG(n.K0,8),r.LFG(B,8))},token:t,providedIn:"root"}),t}();function H(t){return t.composedPath?t.composedPath()[0]:t.target}var U=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this._elementRef=e,this._focusMonitor=i,this.cdkFocusChange=new r.vpe}return _createClass(t,[{key:"ngAfterViewInit",value:function(){var t=this,e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(e){return t.cdkFocusChange.emit(e)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(q))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t}(),G=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this._platform=e,this._document=i}return _createClass(t,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);var e=this._document.defaultView||window,i=e&&e.getComputedStyle?e.getComputedStyle(t):null,n=(i&&i.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),n){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black"),this._hasCheckedHighContrastMode=!0;var e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(g.t4),r.LFG(n.K0))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(g.t4),r.LFG(n.K0))},token:t,providedIn:"root"}),t}(),j=function(){var t=function t(e){_classCallCheck(this,t),e._applyBodyHighContrastModeCssClasses()};return t.\u0275fac=function(e){return new(e||t)(r.LFG(G))},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[g.ud,m.Q8]]}),t}()},22526:function(t,e,i){"use strict";i.d(e,{vT:function(){return s},Is:function(){return a}});var n=i(31572),r=i(61511),o=new n.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,n.f3M)(r.K0)}}),a=function(){var t=function(){function t(e){if(_classCallCheck(this,t),this.value="ltr",this.change=new n.vpe,e){var i=e.documentElement?e.documentElement.dir:null,r=(e.body?e.body.dir:null)||i;this.value="ltr"===r||"rtl"===r?r:"ltr"}}return _createClass(t,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.LFG(o,8))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(o,8))},token:t,providedIn:"root"}),t}(),s=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t}()},81391:function(t,e,i){"use strict";i.d(e,{i3:function(){return c},TU:function(){return a},Iq:function(){return u}});var n=i(61511),r=i(31572),o=function(){function t(e,i){_classCallCheck(this,t),this._document=i;var n=this._textarea=this._document.createElement("textarea"),r=n.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",n.setAttribute("aria-hidden","true"),n.value=e,this._document.body.appendChild(n)}return _createClass(t,[{key:"copy",value:function(){var t=this._textarea,e=!1;try{if(t){var i=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch(n){}return e}},{key:"destroy",value:function(){var t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}]),t}(),a=function(){var t=function(){function t(e){_classCallCheck(this,t),this._document=e}return _createClass(t,[{key:"copy",value:function(t){var e=this.beginCopy(t),i=e.copy();return e.destroy(),i}},{key:"beginCopy",value:function(t){return new o(t,this._document)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.K0))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(n.K0))},token:t,providedIn:"root"}),t}(),s=new r.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG"),c=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this._clipboard=e,this._ngZone=i,this.text="",this.attempts=1,this.copied=new r.vpe,this._pending=new Set,n&&null!=n.attempts&&(this.attempts=n.attempts)}return _createClass(t,[{key:"copy",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.attempts;if(e>1){var i=e,n=this._clipboard.beginCopy(this.text);this._pending.add(n);var r=function e(){var r=n.copy();r||!--i||t._destroyed?(t._currentTimeout=null,t._pending.delete(n),n.destroy(),t.copied.emit(r)):t._currentTimeout=t._ngZone.runOutsideAngular(function(){return setTimeout(e,1)})};r()}else this.copied.emit(this._clipboard.copy(this.text))}},{key:"ngOnDestroy",value:function(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(function(t){return t.destroy()}),this._pending.clear(),this._destroyed=!0}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(a),r.Y36(r.R0b),r.Y36(s,8))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(t,e){1&t&&r.NdJ("click",function(){return e.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),t}(),u=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t}()},19861:function(t,e,i){"use strict";i.d(e,{t6:function(){return a},Eq:function(){return s},Ig:function(){return r},HM:function(){return c},fI:function(){return u},su:function(){return o},du:function(){return l}});var n=i(31572);function r(t){return null!=t&&"false"!="".concat(t)}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return a(t)?Number(t):e}function a(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function s(t){return Array.isArray(t)?t:[t]}function c(t){return null==t?"":"string"==typeof t?t:"".concat(t,"px")}function u(t){return t instanceof n.SBq?t.nativeElement:t}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\s+/,i=[];if(null!=t){var n,r=Array.isArray(t)?t:"".concat(t).split(e),o=_createForOfIteratorHelper(r);try{for(o.s();!(n=o.n()).done;){var a=n.value,s="".concat(a).trim();s&&i.push(s)}}catch(c){o.e(c)}finally{o.f()}}return i}},4230:function(t,e,i){"use strict";i.d(e,{P3:function(){return u},o2:function(){return s},Ov:function(){return d},A8:function(){return f},yy:function(){return l},eX:function(){return h},k:function(){return p},Z9:function(){return c}});var n=i(4710),r=i(40878),o=i(55959),a=i(31572),s=function t(){_classCallCheck(this,t)};function c(t){return t&&"function"==typeof t.connect}var u=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this))._data=t,n}return _createClass(i,[{key:"connect",value:function(){return(0,n.b)(this._data)?this._data:(0,r.of)(this._data)}},{key:"disconnect",value:function(){}}]),i}(s),l=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"applyChanges",value:function(t,e,i,n,r){t.forEachOperation(function(t,n,o){var a,s;if(null==t.previousIndex){var c=i(t,n,o);a=e.createEmbeddedView(c.templateRef,c.context,c.index),s=1}else null==o?(e.remove(n),s=3):(a=e.get(n),e.move(a,o),s=2);r&&r({context:null==a?void 0:a.context,operation:s,record:t})})}},{key:"detach",value:function(){}}]),t}(),h=function(){function t(){_classCallCheck(this,t),this.viewCacheSize=20,this._viewCache=[]}return _createClass(t,[{key:"applyChanges",value:function(t,e,i,n,r){var o=this;t.forEachOperation(function(t,a,s){var c,u;null==t.previousIndex?u=(c=o._insertView(function(){return i(t,a,s)},s,e,n(t)))?1:0:null==s?(o._detachAndCacheView(a,e),u=3):(c=o._moveView(a,s,e,n(t)),u=2),r&&r({context:null==c?void 0:c.context,operation:u,record:t})})}},{key:"detach",value:function(){var t,e=_createForOfIteratorHelper(this._viewCache);try{for(e.s();!(t=e.n()).done;){t.value.destroy()}}catch(i){e.e(i)}finally{e.f()}this._viewCache=[]}},{key:"_insertView",value:function(t,e,i,n){var r=this._insertViewFromCache(e,i);if(!r){var o=t();return i.createEmbeddedView(o.templateRef,o.context,o.index)}r.context.$implicit=n}},{key:"_detachAndCacheView",value:function(t,e){var i=e.detach(t);this._maybeCacheView(i,e)}},{key:"_moveView",value:function(t,e,i,n){var r=i.get(t);return i.move(r,e),r.context.$implicit=n,r}},{key:"_maybeCacheView",value:function(t,e){if(this._viewCache.length0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];_classCallCheck(this,t),this._multiple=i,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new o.xQ,n&&n.length&&(i?n.forEach(function(t){return e._markSelected(t)}):this._markSelected(n[0]),this._selectedToEmit.length=0)}return _createClass(t,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var t=this,e=arguments.length,i=new Array(e),n=0;n-1?1:1e3;return parseFloat(t)*e}function E(t,e){return t.getPropertyValue(e).split(",").map(function(t){return t.trim()})}function S(t){var e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function I(t,e,i){var n=t.top,r=t.bottom,o=t.left,a=t.right;return i>=n&&i<=r&&e>=o&&e<=a}function R(t,e,i){t.top+=e,t.bottom=t.top+t.height,t.left+=i,t.right=t.left+t.width}function x(t,e,i,n){var r=t.top,o=t.right,a=t.bottom,s=t.left,c=t.width*e,u=t.height*e;return n>r-u&&ns-c&&i=s._config.dragStartThreshold){var r=Date.now()>=s._dragStartTime+s._getDragStartDelay(t),o=s._dropContainer;if(!r)return void s._endDragSequence(t);o&&(o.isDragging()||o.isReceiving())||(t.preventDefault(),s._hasStartedDragging=!0,s._ngZone.run(function(){return s._startDragSequence(t)}))}},this._pointerUp=function(t){s._endDragSequence(t)},this.withRootElement(e).withParent(i.parentDragRef||null),this._parentPositions=new O(n,o),a.registerDragItem(this)}return _createClass(t,[{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(t){var e=(0,s.Ig)(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(function(t){return A(t,e)}))}},{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(t){var e=this;this._handles=t.map(function(t){return(0,s.fI)(t)}),this._handles.forEach(function(t){return A(t,e.disabled)}),this._toggleNativeDragInteractions();var i=new Set;return this._disabledHandles.forEach(function(t){e._handles.indexOf(t)>-1&&i.add(t)}),this._disabledHandles=i,this}},{key:"withPreviewTemplate",value:function(t){return this._previewTemplate=t,this}},{key:"withPlaceholderTemplate",value:function(t){return this._placeholderTemplate=t,this}},{key:"withRootElement",value:function(t){var e=this,i=(0,s.fI)(t);return i!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(function(){i.addEventListener("mousedown",e._pointerDown,Z),i.addEventListener("touchstart",e._pointerDown,z)}),this._initialTransform=void 0,this._rootElement=i),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}},{key:"withBoundaryElement",value:function(t){var e=this;return this._boundaryElement=t?(0,s.fI)(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(function(){return e._containInsideBoundaryOnResize()})),this}},{key:"withParent",value:function(t){return this._parentDragRef=t,this}},{key:"dispose",value:function(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&H(this._rootElement),H(this._anchor),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}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),A(t,!0))}},{key:"enableHandle",value:function(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),A(t,this.disabled))}},{key:"withDirection",value:function(t){return this._direction=t,this}},{key:"_withDropContainer",value:function(t){this._dropContainer=t}},{key:"getFreeDragPosition",value:function(){var t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}},{key:"setFreeDragPosition",value:function(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}},{key:"withPreviewContainer",value:function(t){return this._previewContainer=t,this}},{key:"_sortFromLastPointerPosition",value:function(){var t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){this._preview&&H(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&H(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(t){var e=this;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}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(function(){e._cleanupDragArtifacts(t),e._cleanupCachedDimensions(),e._dragDropRegistry.stopDragging(e)});else{this._passiveTransform.x=this._activeTransform.x;var i=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(function(){e.ended.next({source:e,distance:e._getDragDistance(i),dropPoint:i})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}},{key:"_startDragSequence",value:function(t){U(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();var e=this._dropContainer;if(e){var i=this._rootElement,n=i.parentNode,r=this._placeholder=this._createPlaceholderElement(),o=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();n.insertBefore(o,i),this._initialTransform=i.style.transform||"",this._preview=this._createPreviewElement(),k(i,!1),this._document.body.appendChild(n.replaceChild(r,i)),this._getPreviewInsertionPoint(n,a).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}},{key:"_initializeDragSequence",value:function(t,e){var i=this;this._parentDragRef&&e.stopPropagation();var n=this.isDragging(),r=U(e),o=!r&&0!==e.button,a=this._rootElement,s=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),!(n||o||s)){this._handles.length&&(this._rootElementTapHighlight=a.style.webkitTapHighlightColor||"",a.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(function(t){i._updateOnScroll(t)}),this._boundaryElement&&(this._boundaryRect=S(this._boundaryElement));var c=this._previewTemplate;this._pickupPositionInElement=c&&c.template&&!c.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);var 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)}}},{key:"_cleanupDragArtifacts",value:function(t){var e=this;k(this._rootElement,!0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(function(){var i=e._dropContainer,n=i.getItemIndex(e),r=e._getPointerPositionOnPage(t),o=e._getDragDistance(r),a=i._isOverContainer(r.x,r.y);e.ended.next({source:e,distance:o,dropPoint:r}),e.dropped.next({item:e,currentIndex:n,previousIndex:e._initialIndex,container:i,previousContainer:e._initialContainer,isPointerOverContainer:a,distance:o,dropPoint:r}),i.drop(e,n,e._initialIndex,e._initialContainer,a,o,r),e._dropContainer=e._initialContainer})}},{key:"_updateActiveDropContainer",value:function(t,e){var i=this,n=t.x,r=t.y,o=e.x,a=e.y,s=this._initialContainer._getSiblingContainerFromPosition(this,n,r);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(n,r)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(function(){i.exited.next({item:i,container:i._dropContainer}),i._dropContainer.exit(i),i._dropContainer=s,i._dropContainer.enter(i,n,r,s===i._initialContainer&&s.sortingDisabled?i._initialIndex:void 0),i.entered.next({item:i,container:s,currentIndex:s.getItemIndex(i)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(o,a),this._dropContainer._sortItem(this,n,r,this._pointerDirectionDelta),this._applyPreviewTransform(n-this._pickupPositionInElement.x,r-this._pickupPositionInElement.y))}},{key:"_createPreviewElement",value:function(){var t,e=this._previewTemplate,i=this.previewClass,n=e?e.template:null;if(n&&e){var r=e.matchSize?this._rootElement.getBoundingClientRect():null,o=e.viewContainer.createEmbeddedView(n,e.context);o.detectChanges(),t=G(o,this._document),this._previewRef=o,e.matchSize?j(t,r):t.style.transform=F(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var a=this._rootElement;j(t=P(a),a.getBoundingClientRect()),this._initialTransform&&(t.style.transform=this._initialTransform)}return w(t.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:"".concat(this._config.zIndex||1e3)}),A(t,!1),t.classList.add("cdk-drag-preview"),t.setAttribute("dir",this._direction),i&&(Array.isArray(i)?i.forEach(function(e){return t.classList.add(e)}):t.classList.add(i)),t}},{key:"_animatePreviewToPlaceholder",value:function(){var t=this;if(!this._hasMoved)return Promise.resolve();var e=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(e.left,e.top);var i=function(t){var e=getComputedStyle(t),i=E(e,"transition-property"),n=i.find(function(t){return"transform"===t||"all"===t});if(!n)return 0;var r=i.indexOf(n),o=E(e,"transition-duration"),a=E(e,"transition-delay");return T(o[r])+T(a[r])}(this._preview);return 0===i?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(e){var n=function i(n){(!n||n.target===t._preview&&"transform"===n.propertyName)&&(t._preview.removeEventListener("transitionend",i),e(),clearTimeout(r))},r=setTimeout(n,1.5*i);t._preview.addEventListener("transitionend",n)})})}},{key:"_createPlaceholderElement",value:function(){var t,e=this._placeholderTemplate,i=e?e.template:null;return i?(this._placeholderRef=e.viewContainer.createEmbeddedView(i,e.context),this._placeholderRef.detectChanges(),t=G(this._placeholderRef,this._document)):t=P(this._rootElement),t.classList.add("cdk-drag-placeholder"),t}},{key:"_getPointerPositionInElement",value:function(t,e){var i=this._rootElement.getBoundingClientRect(),n=t===this._rootElement?null:t,r=n?n.getBoundingClientRect():i,o=U(e)?e.targetTouches[0]:e,a=this._getViewportScrollPosition();return{x:r.left-i.left+(o.pageX-r.left-a.left),y:r.top-i.top+(o.pageY-r.top-a.top)}}},{key:"_getPointerPositionOnPage",value:function(t){var e=this._getViewportScrollPosition(),i=U(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,n=i.pageX-e.left,r=i.pageY-e.top;if(this._ownerSVGElement){var o=this._ownerSVGElement.getScreenCTM();if(o){var a=this._ownerSVGElement.createSVGPoint();return a.x=n,a.y=r,a.matrixTransform(o.inverse())}}return{x:n,y:r}}},{key:"_getConstrainedPointerPosition",value:function(t){var e=this._dropContainer?this._dropContainer.lockAxis:null,i=this.constrainPosition?this.constrainPosition(t,this):t,n=i.x,r=i.y;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==e||(n=this._pickupPositionOnPage.x),this._boundaryRect){var o=this._pickupPositionInElement,a=o.x,s=o.y,c=this._boundaryRect,u=this._previewRect,l=c.top+s,h=c.bottom-(u.height-s);n=q(n,c.left+a,c.right-(u.width-a)),r=q(r,l,h)}return{x:n,y:r}}},{key:"_updatePointerDirectionDelta",value:function(t){var e=t.x,i=t.y,n=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,o=Math.abs(e-r.x),a=Math.abs(i-r.y);return o>this._config.pointerDirectionChangeThreshold&&(n.x=e>r.x?1:-1,r.x=e),a>this._config.pointerDirectionChangeThreshold&&(n.y=i>r.y?1:-1,r.y=i),n}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,A(this._rootElement,t))}}},{key:"_removeRootElementListeners",value:function(t){t.removeEventListener("mousedown",this._pointerDown,Z),t.removeEventListener("touchstart",this._pointerDown,z)}},{key:"_applyRootElementTransform",value:function(t,e){var i=F(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=C(i,this._initialTransform)}},{key:"_applyPreviewTransform",value:function(t,e){var i,n=(null===(i=this._previewTemplate)||void 0===i?void 0:i.template)?void 0:this._initialTransform,r=F(t,e);this._preview.style.transform=C(r,n)}},{key:"_getDragDistance",value:function(t){var e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}},{key:"_containInsideBoundaryOnResize",value:function(){var t=this._passiveTransform,e=t.x,i=t.y;if(!(0===e&&0===i||this.isDragging())&&this._boundaryElement){var n=this._boundaryElement.getBoundingClientRect(),r=this._rootElement.getBoundingClientRect();if(!(0===n.width&&0===n.height||0===r.width&&0===r.height)){var o=n.left-r.left,a=r.right-n.right,s=n.top-r.top,c=r.bottom-n.bottom;n.width>r.width?(o>0&&(e+=o),a>0&&(e-=a)):e=0,n.height>r.height?(s>0&&(i+=s),c>0&&(i-=c)):i=0,e===this._passiveTransform.x&&i===this._passiveTransform.y||this.setFreeDragPosition({y:i,x:e})}}}},{key:"_getDragStartDelay",value:function(t){var e=this.dragStartDelay;return"number"==typeof e?e:U(t)?e.touch:e?e.mouse:0}},{key:"_updateOnScroll",value:function(t){var e=this._parentPositions.handleScroll(t);if(e){var i=t.target;this._boundaryRect&&(i===this._document||i!==this._boundaryElement&&i.contains(this._boundaryElement))&&R(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))}}},{key:"_getViewportScrollPosition",value:function(){var t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}},{key:"_getShadowRoot",value:function(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,a.kV)(this._rootElement)),this._cachedShadowRoot}},{key:"_getPreviewInsertionPoint",value:function(t,e){var i=this._previewContainer||"global";if("parent"===i)return t;if("global"===i){var n=this._document;return e||n.fullscreenElement||n.webkitFullscreenElement||n.mozFullScreenElement||n.msFullscreenElement||n.body}return(0,s.fI)(i)}}]),t}();function F(t,e){return"translate3d(".concat(Math.round(t),"px, ").concat(Math.round(e),"px, 0)")}function q(t,e,i){return Math.max(e,Math.min(i,t))}function H(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function U(t){return"t"===t.type[0]}function G(t,e){var i=t.rootNodes;if(1===i.length&&i[0].nodeType===e.ELEMENT_NODE)return i[0];var n=e.createElement("div");return i.forEach(function(t){return n.appendChild(t)}),n}function j(t,e){t.style.width="".concat(e.width,"px"),t.style.height="".concat(e.height,"px"),t.style.transform=F(e.left,e.top)}function Y(t,e,i){var n=K(e,t.length-1),r=K(i,t.length-1);if(n!==r){for(var o=t[n],a=r-1&&o.splice(a,1),u&&!this._dragDropRegistry.isDragging(u)){var l=u.getRootElement();l.parentElement.insertBefore(c,l),o.splice(r,0,t)}else if(this._shouldEnterAsFirstChild(e,i)){var h=o[0].getRootElement();h.parentNode.insertBefore(c,h),o.unshift(t)}else(0,s.fI)(this.element).appendChild(c),o.push(t);c.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}},{key:"exit",value:function(t){this._reset(),this.exited.next({item:t,container:this})}},{key:"drop",value:function(t,e,i,n,r,o,a){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:n,isPointerOverContainer:r,distance:o,dropPoint:a})}},{key:"withItems",value:function(t){var e=this,i=this._draggables;return this._draggables=t,t.forEach(function(t){return t._withDropContainer(e)}),this.isDragging()&&(i.filter(function(t){return t.isDragging()}).every(function(e){return-1===t.indexOf(e)})?this._reset():this._cacheItems()),this}},{key:"withDirection",value:function(t){return this._direction=t,this}},{key:"connectedTo",value:function(t){return this._siblings=t.slice(),this}},{key:"withOrientation",value:function(t){return this._orientation=t,this}},{key:"withScrollableParents",value:function(t){var e=(0,s.fI)(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e].concat(_toConsumableArray(t)):t.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(t){return this._isDragging?J("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,function(e){return e.drag===t}):this._draggables.indexOf(t)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(t,e,i,n){if(!this.sortingDisabled&&this._clientRect&&x(this._clientRect,.05,e,i)){var r=this._itemPositions,o=this._getItemIndexFromPointerPosition(t,e,i,n);if(!(-1===o&&r.length>0)){var a="horizontal"===this._orientation,s=J(r,function(e){return e.drag===t}),c=r[o],u=c.clientRect,l=s>o?1:-1,h=this._getItemOffsetPx(r[s].clientRect,u,l),d=this._getSiblingOffsetPx(s,r,l),f=r.slice();Y(r,s,o),this.sorted.next({previousIndex:s,currentIndex:o,container:this,item:t}),r.forEach(function(e,i){if(f[i]!==e){var n=e.drag===t,r=n?h:d,o=n?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=r,a?(o.style.transform=C("translate3d(".concat(Math.round(e.offset),"px, 0, 0)"),e.initialTransform),R(e.clientRect,0,r)):(o.style.transform=C("translate3d(0, ".concat(Math.round(e.offset),"px, 0)"),e.initialTransform),R(e.clientRect,r,0))}}),this._previousSwap.overlaps=I(u,e,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=a?n.x:n.y}}}},{key:"_startScrollingIfNecessary",value:function(t,e){var i=this;if(!this.autoScrollDisabled){var n,r=0,o=0;if(this._parentPositions.positions.forEach(function(a,s){var c;s!==i._document&&a.clientRect&&!n&&x(a.clientRect,.05,t,e)&&(c=_slicedToArray(function(t,e,i,n){var r=X(e,n),o=$(e,i),a=0,s=0;if(r){var c=t.scrollTop;1===r?c>0&&(a=1):t.scrollHeight-c>t.clientHeight&&(a=2)}if(o){var u=t.scrollLeft;1===o?u>0&&(s=1):t.scrollWidth-u>t.clientWidth&&(s=2)}return[a,s]}(s,a.clientRect,t,e),2),r=c[0],o=c[1],(r||o)&&(n=s))}),!r&&!o){var a=this._viewportRuler.getViewportSize(),s=a.width,c=a.height,u={width:s,height:c,top:0,right:s,bottom:c,left:0};r=X(u,e),o=$(u,t),n=window}!n||r===this._verticalScrollDirection&&o===this._horizontalScrollDirection&&n===this._scrollNode||(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=n,(r||o)&&n?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_draggingStarted",value:function(){var t=(0,s.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"_cacheParentPositions",value:function(){var t=(0,s.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}},{key:"_cacheItemPositions",value:function(){var t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(function(t){var e=t.getVisibleElement();return{drag:t,offset:0,initialTransform:e.style.transform||"",clientRect:S(e)}}).sort(function(e,i){return t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top})}},{key:"_reset",value:function(){var t=this;this._isDragging=!1;var e=(0,s.fI)(this.element).style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(function(e){var i,n=e.getRootElement();if(n){var r=null===(i=t._itemPositions.find(function(t){return t.drag===e}))||void 0===i?void 0:i.initialTransform;n.style.transform=r||""}}),this._siblings.forEach(function(e){return e._stopReceiving(t)}),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_getSiblingOffsetPx",value:function(t,e,i){var n="horizontal"===this._orientation,r=e[t].clientRect,o=e[t+-1*i],a=r[n?"width":"height"]*i;if(o){var s=n?"left":"top",c=n?"right":"bottom";-1===i?a-=o.clientRect[s]-r[c]:a+=r[s]-o.clientRect[c]}return a}},{key:"_getItemOffsetPx",value:function(t,e,i){var n="horizontal"===this._orientation,r=n?e.left-t.left:e.top-t.top;return-1===i&&(r+=n?e.width-t.width:e.height-t.height),r}},{key:"_shouldEnterAsFirstChild",value:function(t,e){if(!this._activeDraggables.length)return!1;var i=this._itemPositions,n="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){var r=i[i.length-1].clientRect;return n?t>=r.right:e>=r.bottom}var o=i[0].clientRect;return n?t<=o.left:e<=o.top}},{key:"_getItemIndexFromPointerPosition",value:function(t,e,i,n){var r=this,o="horizontal"===this._orientation,a=J(this._itemPositions,function(a,s,c){var u=a.drag,l=a.clientRect;if(u===t)return c.length<2;if(n){var h=o?n.x:n.y;if(u===r._previousSwap.drag&&r._previousSwap.overlaps&&h===r._previousSwap.delta)return!1}return o?e>=Math.floor(l.left)&&e=Math.floor(l.top)&&i-1})&&(n.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var t=this;this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(function(e){if(t.isDragging()){var i=t._parentPositions.handleScroll(e);i&&(t._itemPositions.forEach(function(t){R(t.clientRect,i.top,i.left)}),t._itemPositions.forEach(function(e){var i=e.drag;t._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()}))}else t.isReceiving()&&t._cacheParentPositions()})}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var t=(0,a.kV)((0,s.fI)(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}},{key:"_notifyReceivingSiblings",value:function(){var t=this,e=this._activeDraggables.filter(function(t){return t.isDragging()});this._siblings.forEach(function(i){return i._startReceiving(t,e)})}}]),t}();function J(t,e){for(var i=0;i=i-r&&e<=i+r?1:e>=n-r&&e<=n+r?2:0}function $(t,e){var i=t.left,n=t.right,r=.05*t.width;return e>=i-r&&e<=i+r?1:e>=n-r&&e<=n+r?2:0}var tt=(0,a.i$)({passive:!1,capture:!0}),et=function(){var t=function(){function t(e,i){var n=this;_classCallCheck(this,t),this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=function(t){return t.isDragging()},this.pointerMove=new c.xQ,this.pointerUp=new c.xQ,this.scroll=new c.xQ,this._preventDefaultWhileDragging=function(t){n._activeDragInstances.length>0&&t.preventDefault()},this._persistentTouchmoveListener=function(t){n._activeDragInstances.length>0&&(n._activeDragInstances.some(n._draggingPredicate)&&t.preventDefault(),n.pointerMove.next(t))},this._document=i}return _createClass(t,[{key:"registerDropContainer",value:function(t){this._dropInstances.has(t)||this._dropInstances.add(t)}},{key:"registerDragItem",value:function(t){var e=this;this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(function(){e._document.addEventListener("touchmove",e._persistentTouchmoveListener,tt)})}},{key:"removeDropContainer",value:function(t){this._dropInstances.delete(t)}},{key:"removeDragItem",value:function(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,tt)}},{key:"startDragging",value:function(t,e){var i=this;if(!(this._activeDragInstances.indexOf(t)>-1)&&(this._activeDragInstances.push(t),1===this._activeDragInstances.length)){var n=e.type.startsWith("touch");this._globalListeners.set(n?"touchend":"mouseup",{handler:function(t){return i.pointerUp.next(t)},options:!0}).set("scroll",{handler:function(t){return i.scroll.next(t)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:tt}),n||this._globalListeners.set("mousemove",{handler:function(t){return i.pointerMove.next(t)},options:tt}),this._ngZone.runOutsideAngular(function(){i._globalListeners.forEach(function(t,e){i._document.addEventListener(e,t.handler,t.options)})})}}},{key:"stopDragging",value:function(t){var e=this._activeDragInstances.indexOf(t);e>-1&&(this._activeDragInstances.splice(e,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}},{key:"isDragging",value:function(t){return this._activeDragInstances.indexOf(t)>-1}},{key:"ngOnDestroy",value:function(){var t=this;this._dragInstances.forEach(function(e){return t.removeDragItem(e)}),this._dropInstances.forEach(function(e){return t.removeDropContainer(e)}),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var t=this;this._globalListeners.forEach(function(e,i){t._document.removeEventListener(i,e.handler,e.options)}),this._globalListeners.clear()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.R0b),n.LFG(r.K0))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(n.R0b),n.LFG(r.K0))},token:t,providedIn:"root"}),t}(),it={dragStartThreshold:5,pointerDirectionChangeThreshold:5},nt=function(){var t=function(){function t(e,i,n,r){_classCallCheck(this,t),this._document=e,this._ngZone=i,this._viewportRuler=n,this._dragDropRegistry=r}return _createClass(t,[{key:"createDrag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:it;return new B(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(t){return new V(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.LFG(r.K0),n.LFG(n.R0b),n.LFG(o.rL),n.LFG(et))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(r.K0),n.LFG(n.R0b),n.LFG(o.rL),n.LFG(et))},token:t,providedIn:"root"}),t}(),rt=new n.OlP("CDK_DRAG_PARENT"),ot=new n.OlP("CdkDropListGroup"),at=new n.OlP("CDK_DRAG_CONFIG"),st=0,ct=new n.OlP("CdkDropList"),ut=function(){var t=function(){function t(e,i,r,o,a,s,u){var l=this;_classCallCheck(this,t),this.element=e,this._changeDetectorRef=r,this._scrollDispatcher=o,this._dir=a,this._group=s,this._destroyed=new c.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+st++,this.enterPredicate=function(){return!0},this.sortPredicate=function(){return!0},this.dropped=new n.vpe,this.entered=new n.vpe,this.exited=new n.vpe,this.sorted=new n.vpe,this._unsortedItems=new Set,this._dropListRef=i.createDropList(e),this._dropListRef.data=this,u&&this._assignDefaults(u),this._dropListRef.enterPredicate=function(t,e){return l.enterPredicate(t.data,e.data)},this._dropListRef.sortPredicate=function(t,e,i){return l.sortPredicate(t,e.data,i.data)},this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),s&&s._items.add(this)}return _createClass(t,[{key:"disabled",get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(t){this._dropListRef.disabled=this._disabled=(0,s.Ig)(t)}},{key:"addItem",value:function(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"removeItem",value:function(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"getSortedItems",value:function(){return Array.from(this._unsortedItems).sort(function(t,e){return t._dragRef.getVisibleElement().compareDocumentPosition(e._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1})}},{key:"ngOnDestroy",value:function(){var e=t._dropLists.indexOf(this);e>-1&&t._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}},{key:"_setupInputSyncSubscription",value:function(e){var i=this;this._dir&&this._dir.change.pipe((0,g.O)(this._dir.value),(0,p.R)(this._destroyed)).subscribe(function(t){return e.withDirection(t)}),e.beforeStarted.subscribe(function(){var n=(0,s.Eq)(i.connectedTo).map(function(e){return"string"==typeof e?t._dropLists.find(function(t){return t.id===e}):e});if(i._group&&i._group._items.forEach(function(t){-1===n.indexOf(t)&&n.push(t)}),!i._scrollableParentsResolved){var r=i._scrollDispatcher.getAncestorScrollContainers(i.element).map(function(t){return t.getElementRef().nativeElement});i._dropListRef.withScrollableParents(r),i._scrollableParentsResolved=!0}e.disabled=i.disabled,e.lockAxis=i.lockAxis,e.sortingDisabled=(0,s.Ig)(i.sortingDisabled),e.autoScrollDisabled=(0,s.Ig)(i.autoScrollDisabled),e.autoScrollStep=(0,s.su)(i.autoScrollStep,2),e.connectedTo(n.filter(function(t){return t&&t!==i}).map(function(t){return t._dropListRef})).withOrientation(i.orientation)})}},{key:"_handleEvents",value:function(t){var e=this;t.beforeStarted.subscribe(function(){e._syncItemsWithRef(),e._changeDetectorRef.markForCheck()}),t.entered.subscribe(function(t){e.entered.emit({container:e,item:t.item.data,currentIndex:t.currentIndex})}),t.exited.subscribe(function(t){e.exited.emit({container:e,item:t.item.data}),e._changeDetectorRef.markForCheck()}),t.sorted.subscribe(function(t){e.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:e,item:t.item.data})}),t.dropped.subscribe(function(t){e.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}),e._changeDetectorRef.markForCheck()})}},{key:"_assignDefaults",value:function(t){var e=t.lockAxis,i=t.draggingDisabled,n=t.sortingDisabled,r=t.listAutoScrollDisabled,o=t.listOrientation;this.disabled=null!=i&&i,this.sortingDisabled=null!=n&&n,this.autoScrollDisabled=null!=r&&r,this.orientation=o||"vertical",e&&(this.lockAxis=e)}},{key:"_syncItemsWithRef",value:function(){this._dropListRef.withItems(this.getSortedItems().map(function(t){return t._dragRef}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(nt),n.Y36(n.sBO),n.Y36(o.mF),n.Y36(b.Is,8),n.Y36(ot,12),n.Y36(at,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,e){2&t&&(n.uIk("id",e.id),n.ekj("cdk-drop-list-disabled",e.disabled)("cdk-drop-list-dragging",e._dropListRef.isDragging())("cdk-drop-list-receiving",e._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[n._Bn([{provide:ot,useValue:void 0},{provide:ct,useExisting:t}])]}),t._dropLists=[],t}(),lt=new n.OlP("CdkDragHandle"),ht=new n.OlP("CdkDragPlaceholder"),dt=new n.OlP("CdkDragPreview"),ft=function(){var t=function(){function t(e,i,r,o,a,s,u,l,h,f,p){var g=this;_classCallCheck(this,t),this.element=e,this.dropContainer=i,this._ngZone=o,this._viewContainerRef=a,this._dir=u,this._changeDetectorRef=h,this._selfHandle=f,this._parentDrag=p,this._destroyed=new c.xQ,this.started=new n.vpe,this.released=new n.vpe,this.ended=new n.vpe,this.entered=new n.vpe,this.exited=new n.vpe,this.dropped=new n.vpe,this.moved=new d.y(function(t){var e=g._dragRef.moved.pipe((0,m.U)(function(t){return{source:g,pointerPosition:t.pointerPosition,event:t.event,delta:t.delta,distance:t.distance}})).subscribe(t);return function(){e.unsubscribe()}}),this._dragRef=l.createDrag(e,{dragStartThreshold:s&&null!=s.dragStartThreshold?s.dragStartThreshold:5,pointerDirectionChangeThreshold:s&&null!=s.pointerDirectionChangeThreshold?s.pointerDirectionChangeThreshold:5,zIndex:null==s?void 0:s.zIndex}),this._dragRef.data=this,t._dragInstances.push(this),s&&this._assignDefaults(s),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}return _createClass(t,[{key:"disabled",get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(t){this._disabled=(0,s.Ig)(t),this._dragRef.disabled=this._disabled}},{key:"getPlaceholderElement",value:function(){return this._dragRef.getPlaceholderElement()}},{key:"getRootElement",value:function(){return this._dragRef.getRootElement()}},{key:"reset",value:function(){this._dragRef.reset()}},{key:"getFreeDragPosition",value:function(){return this._dragRef.getFreeDragPosition()}},{key:"ngAfterViewInit",value:function(){var t=this;this._ngZone.onStable.pipe((0,v.q)(1),(0,p.R)(this._destroyed)).subscribe(function(){t._updateRootElement(),t._handles.changes.pipe((0,g.O)(t._handles),(0,y.b)(function(e){var i=e.filter(function(e){return e._parentDrag===t}).map(function(t){return t.element});t._selfHandle&&t.rootElementSelector&&i.push(t.element),t._dragRef.withHandles(i)}),(0,_.w)(function(t){return f.T.apply(void 0,_toConsumableArray(t.map(function(t){return t._stateChanges.pipe((0,g.O)(t))})))}),(0,p.R)(t._destroyed)).subscribe(function(e){var i=t._dragRef,n=e.element.nativeElement;e.disabled?i.disableHandle(n):i.enableHandle(n)}),t.freeDragPosition&&t._dragRef.setFreeDragPosition(t.freeDragPosition)})}},{key:"ngOnChanges",value:function(t){var e=t.rootElementSelector,i=t.freeDragPosition;e&&!e.firstChange&&this._updateRootElement(),i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}},{key:"ngOnDestroy",value:function(){this.dropContainer&&this.dropContainer.removeItem(this);var e=t._dragInstances.indexOf(this);e>-1&&t._dragInstances.splice(e,1),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}},{key:"_updateRootElement",value:function(){var t=this.element.nativeElement,e=this.rootElementSelector?pt(t,this.rootElementSelector):t;this._dragRef.withRootElement(e||t)}},{key:"_getBoundaryElement",value:function(){var t=this.boundaryElement;return t?"string"==typeof t?pt(this.element.nativeElement,t):(0,s.fI)(t):null}},{key:"_syncInputs",value:function(e){var i=this;e.beforeStarted.subscribe(function(){if(!e.isDragging()){var t=i._dir,n=i.dragStartDelay,r=i._placeholderTemplate?{template:i._placeholderTemplate.templateRef,context:i._placeholderTemplate.data,viewContainer:i._viewContainerRef}:null,o=i._previewTemplate?{template:i._previewTemplate.templateRef,context:i._previewTemplate.data,matchSize:i._previewTemplate.matchSize,viewContainer:i._viewContainerRef}:null;e.disabled=i.disabled,e.lockAxis=i.lockAxis,e.dragStartDelay="object"==typeof n&&n?n:(0,s.su)(n),e.constrainPosition=i.constrainPosition,e.previewClass=i.previewClass,e.withBoundaryElement(i._getBoundaryElement()).withPlaceholderTemplate(r).withPreviewTemplate(o).withPreviewContainer(i.previewContainer||"global"),t&&e.withDirection(t.value)}}),e.beforeStarted.pipe((0,v.q)(1)).subscribe(function(){var n,r;if(i._parentDrag)e.withParent(i._parentDrag._dragRef);else for(var o=i.element.nativeElement.parentElement;o;){if(null===(n=o.classList)||void 0===n?void 0:n.contains("cdk-drag")){e.withParent((null===(r=t._dragInstances.find(function(t){return t.element.nativeElement===o}))||void 0===r?void 0:r._dragRef)||null);break}o=o.parentElement}})}},{key:"_handleEvents",value:function(t){var e=this;t.started.subscribe(function(){e.started.emit({source:e}),e._changeDetectorRef.markForCheck()}),t.released.subscribe(function(){e.released.emit({source:e})}),t.ended.subscribe(function(t){e.ended.emit({source:e,distance:t.distance,dropPoint:t.dropPoint}),e._changeDetectorRef.markForCheck()}),t.entered.subscribe(function(t){e.entered.emit({container:t.container.data,item:e,currentIndex:t.currentIndex})}),t.exited.subscribe(function(t){e.exited.emit({container:t.container.data,item:e})}),t.dropped.subscribe(function(t){e.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:e,distance:t.distance,dropPoint:t.dropPoint})})}},{key:"_assignDefaults",value:function(t){var e=t.lockAxis,i=t.dragStartDelay,n=t.constrainPosition,r=t.previewClass,o=t.boundaryElement,a=t.draggingDisabled,s=t.rootElementSelector,c=t.previewContainer;this.disabled=null!=a&&a,this.dragStartDelay=i||0,e&&(this.lockAxis=e),n&&(this.constrainPosition=n),r&&(this.previewClass=r),o&&(this.boundaryElement=o),s&&(this.rootElementSelector=s),c&&(this.previewContainer=c)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(ct,12),n.Y36(r.K0),n.Y36(n.R0b),n.Y36(n.s_b),n.Y36(at,8),n.Y36(b.Is,8),n.Y36(nt),n.Y36(n.sBO),n.Y36(lt,10),n.Y36(rt,12))},t.\u0275dir=n.lG2({type:t,selectors:[["","cdkDrag",""]],contentQueries:function(t,e,i){var r;(1&t&&(n.Suo(i,dt,5),n.Suo(i,ht,5),n.Suo(i,lt,5)),2&t)&&(n.iGM(r=n.CRH())&&(e._previewTemplate=r.first),n.iGM(r=n.CRH())&&(e._placeholderTemplate=r.first),n.iGM(r=n.CRH())&&(e._handles=r))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,e){2&t&&n.ekj("cdk-drag-disabled",e.disabled)("cdk-drag-dragging",e._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],previewContainer:["cdkDragPreviewContainer","previewContainer"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[n._Bn([{provide:rt,useExisting:t}]),n.TTD]}),t._dragInstances=[],t}();function pt(t,e){for(var i=t.parentElement;i;){if(i.matches?i.matches(e):i.msMatchesSelector(e))return i;i=i.parentElement}return null}var gt=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[nt],imports:[o.ZD]}),t}()},75842:function(t,e,i){"use strict";i.d(e,{A:function(){return _},ZH:function(){return n},OC:function(){return w},yY:function(){return m},JH:function(){return g},uR:function(){return l},K5:function(){return o},hY:function(){return a},Sd:function(){return h},oh:function(){return d},aO:function(){return y},VM:function(){return u},Ku:function(){return c},SV:function(){return p},L_:function(){return s},Mf:function(){return r},LH:function(){return f},Z:function(){return b},xE:function(){return v},Vb:function(){return A}});var n=8,r=9,o=13,a=27,s=32,c=33,u=34,l=35,h=36,d=37,f=38,p=39,g=40,m=46,v=48,y=57,_=65,b=90,w=188;function A(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;ne.height||t.scrollWidth>e.width}}]),t}(),w=function(){function t(e,i,n,r){var o=this;_classCallCheck(this,t),this._scrollDispatcher=e,this._ngZone=i,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return _createClass(t,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),A=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),t}();function k(t,e){return e.some(function(e){return t.bottome.bottom||t.righte.right})}function C(t,e){return e.some(function(e){return t.tope.bottom||t.lefte.right})}var T=function(){function t(e,i,n,r){_classCallCheck(this,t),this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=n,this._config=r,this._scrollSubscription=null}return _createClass(t,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var e=t._overlayRef.overlayElement.getBoundingClientRect(),i=t._viewportRuler.getViewportSize(),n=i.width,r=i.height;k(e,[{width:n,height:r,bottom:r,right:n,top:0,left:0}])&&(t.disable(),t._ngZone.run(function(){return t._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),E=function(){var t=function t(e,i,n,r){var o=this;_classCallCheck(this,t),this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=n,this.noop=function(){return new A},this.close=function(t){return new w(o._scrollDispatcher,o._ngZone,o._viewportRuler,t)},this.block=function(){return new b(o._viewportRuler,o._document)},this.reposition=function(t){return new T(o._scrollDispatcher,o._viewportRuler,o._ngZone,t)},this._document=r};return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.mF),r.LFG(n.rL),r.LFG(r.R0b),r.LFG(s.K0))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(n.mF),r.LFG(n.rL),r.LFG(r.R0b),r.LFG(s.K0))},token:t,providedIn:"root"}),t}(),S=function t(e){if(_classCallCheck(this,t),this.scrollStrategy=new A,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e)for(var i=0,n=Object.keys(e);i-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(s.K0))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(s.K0))},token:t,providedIn:"root"}),t}(),O=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this,t))._keydownListener=function(t){for(var e=n._attachedOverlays,i=e.length-1;i>-1;i--)if(e[i]._keydownEvents.observers.length>0){e[i]._keydownEvents.next(t);break}},n}return _createClass(i,[{key:"add",value:function(t){_get(_getPrototypeOf(i.prototype),"add",this).call(this,t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),i}(x);return t.\u0275fac=function(e){return new(e||t)(r.LFG(s.K0))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(s.K0))},token:t,providedIn:"root"}),t}(),P=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,t))._platform=n,r._cursorStyleIsSet=!1,r._clickListener=function(t){for(var e=t.composedPath?t.composedPath()[0]:t.target,i=r._attachedOverlays.slice(),n=i.length-1;n>-1;n--){var o=i[n];if(!(o._outsidePointerEvents.observers.length<1)&&o.hasAttached()){if(o.overlayElement.contains(e))break;o._outsidePointerEvents.next(t)}}},r}return _createClass(i,[{key:"add",value:function(t){if(_get(_getPrototypeOf(i.prototype),"add",this).call(this,t),!this._isAttached){var e=this._document.body;e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=e.style.cursor,e.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}]),i}(x);return t.\u0275fac=function(e){return new(e||t)(r.LFG(s.K0),r.LFG(o.t4))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(s.K0),r.LFG(o.t4))},token:t,providedIn:"root"}),t}(),D="undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha,M=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this._platform=i,this._document=e}return _createClass(t,[{key:"ngOnDestroy",value:function(){var t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){if(this._platform.isBrowser||D)for(var t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),e=0;ef&&(f=m,d=g)}}catch(v){p.e(v)}finally{p.f()}return this._isPushed=!1,void this._applyPosition(d.position,d.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(t.position,t.originPoint);this._applyPosition(t.position,t.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&Z(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}},{key:"withScrollableContainers",value:function(t){return this._scrollables=t,this}},{key:"withPositions",value:function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(t){return this._viewportMargin=t,this}},{key:"withFlexibleDimensions",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=t,this}},{key:"withGrowAfterOpen",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=t,this}},{key:"withPush",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=t,this}},{key:"withLockedPosition",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=t,this}},{key:"setOrigin",value:function(t){return this._origin=t,this}},{key:"withDefaultOffsetX",value:function(t){return this._offsetX=t,this}},{key:"withDefaultOffsetY",value:function(t){return this._offsetY=t,this}},{key:"withTransformOriginOn",value:function(t){return this._transformOriginSelector=t,this}},{key:"_getOriginPoint",value:function(t,e){var i;if("center"==e.originX)i=t.left+t.width/2;else{var n=this._isRtl()?t.right:t.left,r=this._isRtl()?t.left:t.right;i="start"==e.originX?n:r}return{x:i,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}}},{key:"_getOverlayPoint",value:function(t,e,i){var n,r;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+r}}},{key:"_getOverlayFit",value:function(t,e,i,n){var r=F(e),o=t.x,a=t.y,s=this._getOffset(n,"x"),c=this._getOffset(n,"y");s&&(o+=s),c&&(a+=c);var u=0-a,l=a+r.height-i.height,h=this._subtractOverflows(r.width,0-o,o+r.width-i.width),d=this._subtractOverflows(r.height,u,l),f=h*d;return{visibleArea:f,isCompletelyWithinViewport:r.width*r.height===f,fitsInViewportVertically:d===r.height,fitsInViewportHorizontally:h==r.width}}},{key:"_canFitWithFlexibleDimensions",value:function(t,e,i){if(this._hasFlexibleDimensions){var n=i.bottom-e.y,r=i.right-e.x,o=B(this._overlayRef.getConfig().minHeight),a=B(this._overlayRef.getConfig().minWidth),s=t.fitsInViewportHorizontally||null!=a&&a<=r;return(t.fitsInViewportVertically||null!=o&&o<=n)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var n,r,o=F(e),a=this._viewportRect,s=Math.max(t.x+o.width-a.width,0),c=Math.max(t.y+o.height-a.height,0),u=Math.max(a.top-i.top-t.y,0),l=Math.max(a.left-i.left-t.x,0);return n=o.width<=a.width?l||-s:t.xh&&!this._isInitialRender&&!this._growAfterOpen&&(n=t.y-h/2)}if("end"===e.overlayX&&!u||"start"===e.overlayX&&u)s=c.width-t.x+this._viewportMargin,o=t.x-this._viewportMargin;else if("start"===e.overlayX&&!u||"end"===e.overlayX&&u)a=t.x,o=c.right-t.x;else{var d=Math.min(c.right-t.x+c.left,t.x),f=this._lastBoundingBoxSize.width;o=2*d,a=t.x-d,o>f&&!this._isInitialRender&&!this._growAfterOpen&&(a=t.x-f/2)}return{top:n,left:a,bottom:r,right:s,width:o,height:i}}},{key:"_setBoundingBoxStyles",value:function(t,e){var i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));var n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;n.height=(0,c.HM)(i.height),n.top=(0,c.HM)(i.top),n.bottom=(0,c.HM)(i.bottom),n.width=(0,c.HM)(i.width),n.left=(0,c.HM)(i.left),n.right=(0,c.HM)(i.right),n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(n.maxHeight=(0,c.HM)(r)),o&&(n.maxWidth=(0,c.HM)(o))}this._lastBoundingBoxSize=i,Z(this._boundingBox.style,n)}},{key:"_resetBoundingBoxStyles",value:function(){Z(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){Z(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(t,e){var i={},n=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(n){var a=this._viewportRuler.getViewportScrollPosition();Z(i,this._getExactOverlayY(e,t,a)),Z(i,this._getExactOverlayX(e,t,a))}else i.position="static";var s="",u=this._getOffset(e,"x"),l=this._getOffset(e,"y");u&&(s+="translateX(".concat(u,"px) ")),l&&(s+="translateY(".concat(l,"px)")),i.transform=s.trim(),o.maxHeight&&(n?i.maxHeight=(0,c.HM)(o.maxHeight):r&&(i.maxHeight="")),o.maxWidth&&(n?i.maxWidth=(0,c.HM)(o.maxWidth):r&&(i.maxWidth="")),Z(this._pane.style,i)}},{key:"_getExactOverlayY",value:function(t,e,i){var n={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===t.overlayY?n.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":n.top=(0,c.HM)(r.y),n}},{key:"_getExactOverlayX",value:function(t,e,i){var n={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),"right"===(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?n.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":n.left=(0,c.HM)(r.x),n}},{key:"_getScrollVisibility",value:function(){var t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(function(t){return t.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:C(t,i),isOriginOutsideView:k(t,i),isOverlayClipped:C(e,i),isOverlayOutsideView:k(e,i)}}},{key:"_subtractOverflows",value:function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}},{key:"left",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}},{key:"right",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}},{key:"width",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}},{key:"height",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}},{key:"centerHorizontally",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(t),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(t),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),n=i.width,r=i.height,o=i.maxWidth,a=i.maxHeight,s=!("100%"!==n&&"100vw"!==n||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);t.position=this._cssPosition,t.marginLeft=s?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,s?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove("cdk-global-overlay-wrapper"),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}}]),t}(),U=function(){var t=function(){function t(e,i,n,r){_classCallCheck(this,t),this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=r}return _createClass(t,[{key:"global",value:function(){return new H}},{key:"connectedTo",value:function(t,e,i){return new q(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(t){return new z(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.rL),r.LFG(s.K0),r.LFG(o.t4),r.LFG(M))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(n.rL),r.LFG(s.K0),r.LFG(o.t4),r.LFG(M))},token:t,providedIn:"root"}),t}(),G=0,j=function(){var t=function(){function t(e,i,n,r,o,a,s,c,u,l,h){_classCallCheck(this,t),this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=n,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=a,this._ngZone=s,this._document=c,this._directionality=u,this._location=l,this._outsideClickDispatcher=h}return _createClass(t,[{key:"create",value:function(t){var e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),r=new S(t);return r.direction=r.direction||this._directionality.value,new L(n,e,i,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(t){var e=this._document.createElement("div");return e.id="cdk-overlay-"+G++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}},{key:"_createHostElement",value:function(){var t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}},{key:"_createPortalOutlet",value:function(t){return this._appRef||(this._appRef=this._injector.get(r.z2F)),new u.u0(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(E),r.LFG(M),r.LFG(r._Vd),r.LFG(U),r.LFG(O),r.LFG(r.zs3),r.LFG(r.R0b),r.LFG(s.K0),r.LFG(a.Is),r.LFG(s.Ye),r.LFG(P))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t}(),Y=[{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"}],K=new r.OlP("cdk-connected-overlay-scroll-strategy"),V=function(){var t=function t(e){_classCallCheck(this,t),this.elementRef=e};return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t}(),J=function(){var t=function(){function t(e,i,n,o,a){_classCallCheck(this,t),this._overlay=e,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.w.EMPTY,this._attachSubscription=h.w.EMPTY,this._detachSubscription=h.w.EMPTY,this._positionSubscription=h.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new r.vpe,this.positionChange=new r.vpe,this.attach=new r.vpe,this.detach=new r.vpe,this.overlayKeydown=new r.vpe,this.overlayOutsideClick=new r.vpe,this._templatePortal=new u.UE(i,n),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}return _createClass(t,[{key:"offsetX",get:function(){return this._offsetX},set:function(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=(0,c.Ig)(t)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(t){this._lockPosition=(0,c.Ig)(t)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(t){this._flexibleDimensions=(0,c.Ig)(t)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(t){this._growAfterOpen=(0,c.Ig)(t)}},{key:"push",get:function(){return this._push},set:function(t){this._push=(0,c.Ig)(t)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var t=this;this.positions&&this.positions.length||(this.positions=Y);var e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(function(){return t.attach.emit()}),this._detachSubscription=e.detachments().subscribe(function(){return t.detach.emit()}),e.keydownEvents().subscribe(function(e){t.overlayKeydown.next(e),e.keyCode!==y.hY||t.disableClose||(0,y.Vb)(e)||(e.preventDefault(),t._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(e){t.overlayOutsideClick.next(e)})}},{key:"_buildConfig",value:function(){var t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new S({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}},{key:"_updatePositionStrategy",value:function(t){var e=this,i=this.positions.map(function(t){return{originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||e.offsetX,offsetY:t.offsetY||e.offsetY,panelClass:t.panelClass||void 0}});return t.setOrigin(this.origin.elementRef).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}},{key:"_attachOverlay",value:function(){var t=this;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(function(e){t.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(i){return i.lift(new p(t,e))}}(function(){return t.positionChange.observers.length>0})).subscribe(function(e){t.positionChange.emit(e),0===t.positionChange.observers.length&&t._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(j),r.Y36(r.Rgc),r.Y36(r.s_b),r.Y36(K),r.Y36(a.Is,8))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[r.TTD]}),t}(),Q={provide:K,deps:[j],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},W=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[j,Q],imports:[[a.vT,u.eL,n.Cl],n.Cl]}),t}()},11353:function(t,e,i){"use strict";i.d(e,{t4:function(){return h},ud:function(){return d},ht:function(){return _},kV:function(){return y},_i:function(){return v},qK:function(){return p},i$:function(){return g},Mq:function(){return m}});var n,r=i(31572),o=i(61511);try{n="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(b){n=!1}var a,s,c,u,l,h=function(){var t=function t(e){_classCallCheck(this,t),this._platformId=e,this.isBrowser=this._platformId?(0,o.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!n)&&"undefined"!=typeof CSS&&!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 t.\u0275fac=function(e){return new(e||t)(r.LFG(r.Lbi))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(r.Lbi))},token:t,providedIn:"root"}),t}(),d=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t}(),f=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function p(){if(a)return a;if("object"!=typeof document||!document)return a=new Set(f);var t=document.createElement("input");return a=new Set(f.filter(function(e){return t.setAttribute("type",e),t.type===e}))}function g(t){return function(){if(null==s&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return s=!0}}))}finally{s=s||!1}return s}()?t:!!t.capture}function m(){if(null==u){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return u=!1;if("scrollBehavior"in document.documentElement.style)u=!0;else{var t=Element.prototype.scrollTo;u=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return u}function v(){if("object"!=typeof document||!document)return 0;if(null==c){var t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";var i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",t.appendChild(i),document.body.appendChild(t),c=0,0===t.scrollLeft&&(t.scrollLeft=1,c=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return c}function y(t){if(function(){if(null==l){var t="undefined"!=typeof document?document.head:null;l=!(!t||!t.createShadowRoot&&!t.attachShadow)}return l}()){var e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function _(){for(var t="undefined"!=typeof document&&document?document.activeElement:null;t&&t.shadowRoot;){var e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}},26899:function(t,e,i){"use strict";i.d(e,{en:function(){return u},ig:function(){return d},Pl:function(){return f},C5:function(){return a},F0:function(){return h},u0:function(){return l},eL:function(){return p},UE:function(){return s}});var n=i(31572),r=i(61511),o=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"attach",value:function(t){return this._attachedHost=t,t.attach(this)}},{key:"detach",value:function(){var t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(t){this._attachedHost=t}}]),t}(),a=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;return _classCallCheck(this,i),(a=e.call(this)).component=t,a.viewContainerRef=n,a.injector=r,a.componentFactoryResolver=o,a}return i}(o),s=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this)).templateRef=t,o.viewContainerRef=n,o.context=r,o}return _createClass(i,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=e,_get(_getPrototypeOf(i.prototype),"attach",this).call(this,t)}},{key:"detach",value:function(){return this.context=void 0,_get(_getPrototypeOf(i.prototype),"detach",this).call(this)}}]),i}(o),c=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var r;return _classCallCheck(this,i),(r=e.call(this)).element=t instanceof n.SBq?t.nativeElement:t,r}return i}(o),u=function(){function t(){_classCallCheck(this,t),this._isDisposed=!1,this.attachDomPortal=null}return _createClass(t,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(t){return t instanceof a?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof s?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof c?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(t){this._disposeFn=t}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),t}(),l=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,a){var s,c;return _classCallCheck(this,i),(c=e.call(this)).outletElement=t,c._componentFactoryResolver=n,c._appRef=r,c._defaultInjector=o,c.attachDomPortal=function(t){var e=t.element,n=c._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),c.outletElement.appendChild(e),c._attachedPortal=t,_get((s=_assertThisInitialized(c),_getPrototypeOf(i.prototype)),"setDisposeFn",s).call(s,function(){n.parentNode&&n.parentNode.replaceChild(e,n)})},c._document=a,c}return _createClass(i,[{key:"attachComponentPortal",value:function(t){var e,i=this,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(n,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(function(){return e.destroy()})):(e=n.create(t.injector||this._defaultInjector),this._appRef.attachView(e.hostView),this.setDisposeFn(function(){i._appRef.detachView(e.hostView),e.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=t,e}},{key:"attachTemplatePortal",value:function(t){var e=this,i=t.viewContainerRef,n=i.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(function(t){return e.outletElement.appendChild(t)}),n.detectChanges(),this.setDisposeFn(function(){var t=i.indexOf(n);-1!==t&&i.remove(t)}),this._attachedPortal=t,n}},{key:"dispose",value:function(){_get(_getPrototypeOf(i.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(t){return t.hostView.rootNodes[0]}}]),i}(u),h=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(l),d=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){return _classCallCheck(this,i),e.call(this,t,n)}return i}(s);return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Rgc),n.Y36(n.s_b))},t.\u0275dir=n.lG2({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[n.qOj]}),t}(),f=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,r,o){var a,s;return _classCallCheck(this,i),(s=e.call(this))._componentFactoryResolver=t,s._viewContainerRef=r,s._isInitialized=!1,s.attached=new n.vpe,s.attachDomPortal=function(t){var e=t.element,n=s._document.createComment("dom-portal");t.setAttachedHost(_assertThisInitialized(s)),e.parentNode.insertBefore(n,e),s._getRootNode().appendChild(e),s._attachedPortal=t,_get((a=_assertThisInitialized(s),_getPrototypeOf(i.prototype)),"setDisposeFn",a).call(a,function(){n.parentNode&&n.parentNode.replaceChild(e,n)})},s._document=o,s}return _createClass(i,[{key:"portal",get:function(){return this._attachedPortal},set:function(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&_get(_getPrototypeOf(i.prototype),"detach",this).call(this),t&&_get(_getPrototypeOf(i.prototype),"attach",this).call(this,t),this._attachedPortal=t)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(i.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(t){t.setAttachedHost(this);var e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),r=e.createComponent(n,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),_get(_getPrototypeOf(i.prototype),"setDisposeFn",this).call(this,function(){return r.destroy()}),this._attachedPortal=t,this._attachedRef=r,this.attached.emit(r),r}},{key:"attachTemplatePortal",value:function(t){var e=this;t.setAttachedHost(this);var n=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return _get(_getPrototypeOf(i.prototype),"setDisposeFn",this).call(this,function(){return e._viewContainerRef.clear()}),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}},{key:"_getRootNode",value:function(){var t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}]),i}(u);return t.\u0275fac=function(e){return new(e||t)(n.Y36(n._Vd),n.Y36(n.s_b),n.Y36(r.K0))},t.\u0275dir=n.lG2({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[n.qOj]}),t}(),p=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t}()},4253:function(t,e,i){"use strict";i.d(e,{xd:function(){return P},PQ:function(){return M},ZD:function(){return F},x0:function(){return B},N7:function(){return z},mF:function(){return D},Cl:function(){return q},rL:function(){return L}});var n=i(19861),r=i(31572),o=i(55959),a=i(40878),s=i(48318),c=i(87254),u=i(91741),l=i(92709),h=i(87570),d=i(4710),f=i(96673),p=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new g(t))}}]),t}(),g=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this,t)).hasPrev=!1,n}return _createClass(i,[{key:"_next",value:function(t){var e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}]),i}(f.L),m=i(98720),v=i(30810),y=i(43835),_=i(25416),b=i(56238),w=i(44689),A=i(68303),k=i(11353),C=i(61511),T=i(22526),E=i(4230),S=["contentWrapper"],I=["*"],R=new r.OlP("VIRTUAL_SCROLL_STRATEGY"),x=function(){function t(e,i,n){_classCallCheck(this,t),this._scrolledIndexChange=new o.xQ,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,m.x)()),this._viewport=null,this._itemSize=e,this._minBufferPx=i,this._maxBufferPx=n}return _createClass(t,[{key:"attach",value:function(t){this._viewport=t,this._updateTotalContentSize(),this._updateRenderedRange()}},{key:"detach",value:function(){this._scrolledIndexChange.complete(),this._viewport=null}},{key:"updateItemAndBufferSize",value:function(t,e,i){this._itemSize=t,this._minBufferPx=e,this._maxBufferPx=i,this._updateTotalContentSize(),this._updateRenderedRange()}},{key:"onContentScrolled",value:function(){this._updateRenderedRange()}},{key:"onDataLengthChanged",value:function(){this._updateTotalContentSize(),this._updateRenderedRange()}},{key:"onContentRendered",value:function(){}},{key:"onRenderedOffsetChanged",value:function(){}},{key:"scrollToIndex",value:function(t,e){this._viewport&&this._viewport.scrollToOffset(t*this._itemSize,e)}},{key:"_updateTotalContentSize",value:function(){this._viewport&&this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}},{key:"_updateRenderedRange",value:function(){if(this._viewport){var t=this._viewport.getRenderedRange(),e={start:t.start,end:t.end},i=this._viewport.getViewportSize(),n=this._viewport.getDataLength(),r=this._viewport.measureScrollOffset(),o=this._itemSize>0?r/this._itemSize:0;if(e.end>n){var a=Math.ceil(i/this._itemSize),s=Math.max(0,Math.min(o,n-a));o!=s&&(o=s,r=s*this._itemSize,e.start=Math.floor(o)),e.end=Math.max(0,Math.min(n,e.start+a))}var c=r-e.start*this._itemSize;if(c0&&(e.end=Math.min(n,e.end+h),e.start=Math.max(0,Math.floor(o-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(o))}}}]),t}();function O(t){return t._scrollStrategy}var P=function(){var t=function(){function t(){_classCallCheck(this,t),this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new x(this.itemSize,this.minBufferPx,this.maxBufferPx)}return _createClass(t,[{key:"itemSize",get:function(){return this._itemSize},set:function(t){this._itemSize=(0,n.su)(t)}},{key:"minBufferPx",get:function(){return this._minBufferPx},set:function(t){this._minBufferPx=(0,n.su)(t)}},{key:"maxBufferPx",get:function(){return this._maxBufferPx},set:function(t){this._maxBufferPx=(0,n.su)(t)}},{key:"ngOnChanges",value:function(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[r._Bn([{provide:R,useFactory:O,deps:[(0,r.Gpc)(function(){return t})]}]),r.TTD]}),t}(),D=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this._ngZone=e,this._platform=i,this._scrolled=new o.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}return _createClass(t,[{key:"register",value:function(t){var e=this;this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(function(){return e._scrolled.next(t)}))}},{key:"deregister",value:function(t){var e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}},{key:"scrolled",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new s.y(function(i){t._globalSubscription||t._addGlobalListener();var n=e>0?t._scrolled.pipe((0,v.e)(e)).subscribe(i):t._scrolled.subscribe(i);return t._scrolledCount++,function(){n.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}}):(0,a.of)()}},{key:"ngOnDestroy",value:function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(e,i){return t.deregister(i)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(t,e){var i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe((0,y.h)(function(t){return!t||i.indexOf(t)>-1}))}},{key:"getAncestorScrollContainers",value:function(t){var e=this,i=[];return this.scrollContainers.forEach(function(n,r){e._scrollableContainsElement(r,t)&&i.push(r)}),i}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(t,e){var i=(0,n.fI)(e),r=t.getElementRef().nativeElement;do{if(i==r)return!0}while(i=i.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){var e=t._getWindow();return(0,c.R)(e.document,"scroll").subscribe(function(){return t._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(r.R0b),r.LFG(k.t4),r.LFG(C.K0,8))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(r.R0b),r.LFG(k.t4),r.LFG(C.K0,8))},token:t,providedIn:"root"}),t}(),M=function(){var t=function(){function t(e,i,n,r){var a=this;_classCallCheck(this,t),this.elementRef=e,this.scrollDispatcher=i,this.ngZone=n,this.dir=r,this._destroyed=new o.xQ,this._elementScrolled=new s.y(function(t){return a.ngZone.runOutsideAngular(function(){return(0,c.R)(a.elementRef.nativeElement,"scroll").pipe((0,_.R)(a._destroyed)).subscribe(t)})})}return _createClass(t,[{key:"ngOnInit",value:function(){this.scrollDispatcher.register(this)}},{key:"ngOnDestroy",value:function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}},{key:"elementScrolled",value:function(){return this._elementScrolled}},{key:"getElementRef",value:function(){return this.elementRef}},{key:"scrollTo",value:function(t){var e=this.elementRef.nativeElement,i=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=i?t.end:t.start),null==t.right&&(t.right=i?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),i&&0!=(0,k._i)()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==(0,k._i)()?t.left=t.right:1==(0,k._i)()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}},{key:"_applyScrollToOptions",value:function(t){var e=this.elementRef.nativeElement;(0,k.Mq)()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}},{key:"measureScrollOffset",value:function(t){var e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;var i=this.dir&&"rtl"==this.dir.value;return"start"==t?t=i?"right":"left":"end"==t&&(t=i?"left":"right"),i&&2==(0,k._i)()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:i&&1==(0,k._i)()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(D),r.Y36(r.R0b),r.Y36(T.Is,8))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t}(),L=function(){var t=function(){function t(e,i,n){var r=this;_classCallCheck(this,t),this._platform=e,this._change=new o.xQ,this._changeListener=function(t){r._change.next(t)},this._document=n,i.runOutsideAngular(function(){if(e.isBrowser){var t=r._getWindow();t.addEventListener("resize",r._changeListener),t.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._updateViewportSize()})})}return _createClass(t,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}},{key:"getViewportRect",value:function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),i=e.width,n=e.height;return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+i,height:n,width:i}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=this._document,e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}},{key:"change",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return t>0?this._change.pipe((0,v.e)(t)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(k.t4),r.LFG(r.R0b),r.LFG(C.K0,8))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(k.t4),r.LFG(r.R0b),r.LFG(C.K0,8))},token:t,providedIn:"root"}),t}(),N="undefined"!=typeof requestAnimationFrame?u.r:l.e,z=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,a,c,u,l){var d;return _classCallCheck(this,i),(d=e.call(this,t,u,r,c)).elementRef=t,d._changeDetectorRef=n,d._scrollStrategy=a,d._detachedSubject=new o.xQ,d._renderedRangeSubject=new o.xQ,d._orientation="vertical",d.scrolledIndexChange=new s.y(function(t){return d._scrollStrategy.scrolledIndexChange.subscribe(function(e){return Promise.resolve().then(function(){return d.ngZone.run(function(){return t.next(e)})})})}),d.renderedRangeStream=d._renderedRangeSubject,d._totalContentSize=0,d._totalContentWidth="",d._totalContentHeight="",d._renderedRange={start:0,end:0},d._dataLength=0,d._viewportSize=0,d._renderedContentOffset=0,d._renderedContentOffsetNeedsRewrite=!1,d._isChangeDetectionPending=!1,d._runAfterChangeDetection=[],d._viewportChanges=h.w.EMPTY,d._viewportChanges=l.change().subscribe(function(){d.checkViewportSize()}),d}return _createClass(i,[{key:"orientation",get:function(){return this._orientation},set:function(t){this._orientation!==t&&(this._orientation=t,this._calculateSpacerSize())}},{key:"ngOnInit",value:function(){var t=this;_get(_getPrototypeOf(i.prototype),"ngOnInit",this).call(this),this.ngZone.runOutsideAngular(function(){return Promise.resolve().then(function(){t._measureViewportSize(),t._scrollStrategy.attach(t),t.elementScrolled().pipe((0,b.O)(null),(0,v.e)(0,N)).subscribe(function(){return t._scrollStrategy.onContentScrolled()}),t._markChangeDetectionNeeded()})})}},{key:"ngOnDestroy",value:function(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),_get(_getPrototypeOf(i.prototype),"ngOnDestroy",this).call(this)}},{key:"attach",value:function(t){var e=this;this.ngZone.runOutsideAngular(function(){e._forOf=t,e._forOf.dataStream.pipe((0,_.R)(e._detachedSubject)).subscribe(function(t){var i=t.length;i!==e._dataLength&&(e._dataLength=i,e._scrollStrategy.onDataLengthChanged()),e._doChangeDetection()})})}},{key:"detach",value:function(){this._forOf=null,this._detachedSubject.next()}},{key:"getDataLength",value:function(){return this._dataLength}},{key:"getViewportSize",value:function(){return this._viewportSize}},{key:"getRenderedRange",value:function(){return this._renderedRange}},{key:"setTotalContentSize",value:function(t){this._totalContentSize!==t&&(this._totalContentSize=t,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}},{key:"setRenderedRange",value:function(t){var e,i,n=this;((e=this._renderedRange).start!=(i=t).start||e.end!=i.end)&&(this._renderedRangeSubject.next(this._renderedRange=t),this._markChangeDetectionNeeded(function(){return n._scrollStrategy.onContentRendered()}))}},{key:"getOffsetToRenderedContentStart",value:function(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}},{key:"setRenderedContentOffset",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"to-start",n="horizontal"==this.orientation,r=n?"X":"Y",o="translate".concat(r,"(").concat(Number((n&&this.dir&&"rtl"==this.dir.value?-1:1)*t),"px)");this._renderedContentOffset=t,"to-end"===i&&(o+=" translate".concat(r,"(-100%)"),this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=o&&(this._renderedContentTransform=o,this._markChangeDetectionNeeded(function(){e._renderedContentOffsetNeedsRewrite?(e._renderedContentOffset-=e.measureRenderedContentSize(),e._renderedContentOffsetNeedsRewrite=!1,e.setRenderedContentOffset(e._renderedContentOffset)):e._scrollStrategy.onRenderedOffsetChanged()}))}},{key:"scrollToOffset",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",i={behavior:e};"horizontal"===this.orientation?i.start=t:i.top=t,this.scrollTo(i)}},{key:"scrollToIndex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";this._scrollStrategy.scrollToIndex(t,e)}},{key:"measureScrollOffset",value:function(t){return _get(_getPrototypeOf(i.prototype),"measureScrollOffset",this).call(this,t||("horizontal"===this.orientation?"start":"top"))}},{key:"measureRenderedContentSize",value:function(){var t=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?t.offsetWidth:t.offsetHeight}},{key:"measureRangeSize",value:function(t){return this._forOf?this._forOf.measureRangeSize(t,this.orientation):0}},{key:"checkViewportSize",value:function(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}},{key:"_measureViewportSize",value:function(){var t=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?t.clientWidth:t.clientHeight}},{key:"_markChangeDetectionNeeded",value:function(t){var e=this;t&&this._runAfterChangeDetection.push(t),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(function(){return Promise.resolve().then(function(){e._doChangeDetection()})}))}},{key:"_doChangeDetection",value:function(){var t=this;this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(function(){return t._changeDetectorRef.markForCheck()});var e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];var i,n=_createForOfIteratorHelper(e);try{for(n.s();!(i=n.n()).done;){(0,i.value)()}}catch(r){n.e(r)}finally{n.f()}}},{key:"_calculateSpacerSize",value:function(){this._totalContentHeight="horizontal"===this.orientation?"":"".concat(this._totalContentSize,"px"),this._totalContentWidth="horizontal"===this.orientation?"".concat(this._totalContentSize,"px"):""}}]),i}(M);return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(r.R0b),r.Y36(R,8),r.Y36(T.Is,8),r.Y36(D),r.Y36(L))},t.\u0275cmp=r.Xpm({type:t,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(t,e){var i;(1&t&&r.Gf(S,7),2&t)&&(r.iGM(i=r.CRH())&&(e._contentWrapper=i.first))},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(t,e){2&t&&r.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===e.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==e.orientation)},inputs:{orientation:"orientation"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[r._Bn([{provide:M,useExisting:t}]),r.qOj],ngContentSelectors:I,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"div",0,1),r.Hsn(2),r.qZA(),r._UZ(3,"div",2)),2&t&&(r.xp6(3),r.Udp("width",e._totalContentWidth)("height",e._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-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{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0}),t}();function Z(t,e,i){if(!i.getBoundingClientRect)return 0;var n=i.getBoundingClientRect();return"horizontal"===t?"start"===e?n.left:n.right:"start"===e?n.top:n.bottom}var B=function(){var t=function(){function t(e,i,n,r,a,s){var c=this;_classCallCheck(this,t),this._viewContainerRef=e,this._template=i,this._differs=n,this._viewRepeater=r,this._viewport=a,this.viewChange=new o.xQ,this._dataSourceChanges=new o.xQ,this.dataStream=this._dataSourceChanges.pipe((0,b.O)(null),function(t){return t.lift(new p)},(0,w.w)(function(t){var e=_slicedToArray(t,2),i=e[0],n=e[1];return c._changeDataSource(i,n)}),(0,A.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new o.xQ,this.dataStream.subscribe(function(t){c._data=t,c._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,_.R)(this._destroyed)).subscribe(function(t){c._renderedRange=t,s.run(function(){return c.viewChange.next(c._renderedRange)}),c._onRenderedDataChange()}),this._viewport.attach(this)}return _createClass(t,[{key:"cdkVirtualForOf",get:function(){return this._cdkVirtualForOf},set:function(t){this._cdkVirtualForOf=t,(0,E.Z9)(t)?this._dataSourceChanges.next(t):this._dataSourceChanges.next(new E.P3((0,d.b)(t)?t:Array.from(t||[])))}},{key:"cdkVirtualForTrackBy",get:function(){return this._cdkVirtualForTrackBy},set:function(t){var e=this;this._needsUpdate=!0,this._cdkVirtualForTrackBy=t?function(i,n){return t(i+(e._renderedRange?e._renderedRange.start:0),n)}:void 0}},{key:"cdkVirtualForTemplate",set:function(t){t&&(this._needsUpdate=!0,this._template=t)}},{key:"cdkVirtualForTemplateCacheSize",get:function(){return this._viewRepeater.viewCacheSize},set:function(t){this._viewRepeater.viewCacheSize=(0,n.su)(t)}},{key:"measureRangeSize",value:function(t,e){if(t.start>=t.end)return 0;for(var i,n,r=t.start-this._renderedRange.start,o=t.end-t.start,a=0;a-1;c--){var u=this._viewContainerRef.get(c+r);if(u&&u.rootNodes.length){n=u.rootNodes[u.rootNodes.length-1];break}}return i&&n?Z(e,"end",n)-Z(e,"start",i):0}},{key:"ngDoCheck",value:function(){if(this._differ&&this._needsUpdate){var t=this._differ.diff(this._renderedItems);t?this._applyChanges(t):this._updateContext(),this._needsUpdate=!1}}},{key:"ngOnDestroy",value:function(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}},{key:"_onRenderedDataChange",value:function(){var t=this;this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create(function(e,i){return t.cdkVirtualForTrackBy?t.cdkVirtualForTrackBy(e,i):i})),this._needsUpdate=!0)}},{key:"_changeDataSource",value:function(t,e){return t&&t.disconnect(this),this._needsUpdate=!0,e?e.connect(this):(0,a.of)()}},{key:"_updateContext",value:function(){for(var t=this._data.length,e=this._viewContainerRef.length;e--;){var i=this._viewContainerRef.get(e);i.context.index=this._renderedRange.start+e,i.context.count=t,this._updateComputedContextProperties(i.context),i.detectChanges()}}},{key:"_applyChanges",value:function(t){var e=this;this._viewRepeater.applyChanges(t,this._viewContainerRef,function(t,i,n){return e._getEmbeddedViewArgs(t,n)},function(t){return t.item}),t.forEachIdentityChange(function(t){e._viewContainerRef.get(t.currentIndex).context.$implicit=t.item});for(var i=this._data.length,n=this._viewContainerRef.length;n--;){var r=this._viewContainerRef.get(n);r.context.index=this._renderedRange.start+n,r.context.count=i,this._updateComputedContextProperties(r.context)}}},{key:"_updateComputedContextProperties",value:function(t){t.first=0===t.index,t.last=t.index===t.count-1,t.even=t.index%2==0,t.odd=!t.even}},{key:"_getEmbeddedViewArgs",value:function(t,e){return{templateRef:this._template,context:{$implicit:t.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:e}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.s_b),r.Y36(r.Rgc),r.Y36(r.ZZ4),r.Y36(E.k),r.Y36(z,4),r.Y36(r.R0b))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[r._Bn([{provide:E.k,useClass:E.eX}])]}),t}(),F=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t}(),q=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[T.vT,k.ud,F],T.vT,F]}),t}()},10901:function(t,e,i){"use strict";i.d(e,{Lq:function(){return f},IC:function(){return p},Ky:function(){return g}});var n=i(11353),r=i(31572),o=i(19861),a=i(70653),s=i(55959),c=i(87254),u=i(30810),l=i(25416),h=i(61511),d=(0,n.i$)({passive:!0}),f=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this._platform=e,this._ngZone=i,this._monitoredElements=new Map}return _createClass(t,[{key:"monitor",value:function(t){var e=this;if(!this._platform.isBrowser)return a.E;var i=(0,o.fI)(t),n=this._monitoredElements.get(i);if(n)return n.subject;var r=new s.xQ,c="cdk-text-field-autofilled",u=function(t){"cdk-text-field-autofill-start"!==t.animationName||i.classList.contains(c)?"cdk-text-field-autofill-end"===t.animationName&&i.classList.contains(c)&&(i.classList.remove(c),e._ngZone.run(function(){return r.next({target:t.target,isAutofilled:!1})})):(i.classList.add(c),e._ngZone.run(function(){return r.next({target:t.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){i.addEventListener("animationstart",u,d),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:r,unlisten:function(){i.removeEventListener("animationstart",u,d)}}),r}},{key:"stopMonitoring",value:function(t){var e=(0,o.fI)(t),i=this._monitoredElements.get(e);i&&(i.unlisten(),i.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}},{key:"ngOnDestroy",value:function(){var t=this;this._monitoredElements.forEach(function(e,i){return t.stopMonitoring(i)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.t4),r.LFG(r.R0b))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(n.t4),r.LFG(r.R0b))},token:t,providedIn:"root"}),t}(),p=function(){var t=function(){function t(e,i,n,r){_classCallCheck(this,t),this._elementRef=e,this._platform=i,this._ngZone=n,this._destroyed=new s.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._document=r,this._textareaElement=this._elementRef.nativeElement,this._measuringClass=i.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring"}return _createClass(t,[{key:"minRows",get:function(){return this._minRows},set:function(t){this._minRows=(0,o.su)(t),this._setMinHeight()}},{key:"maxRows",get:function(){return this._maxRows},set:function(t){this._maxRows=(0,o.su)(t),this._setMaxHeight()}},{key:"enabled",get:function(){return this._enabled},set:function(t){t=(0,o.Ig)(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}},{key:"placeholder",get:function(){return this._textareaElement.placeholder},set:function(t){this._cachedPlaceholderHeight=void 0,this._textareaElement.placeholder=t,this._cacheTextareaPlaceholderHeight()}},{key:"_setMinHeight",value:function(){var t=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.minHeight=t)}},{key:"_setMaxHeight",value:function(){var t=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.maxHeight=t)}},{key:"ngAfterViewInit",value:function(){var t=this;this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(function(){var e=t._getWindow();(0,c.R)(e,"resize").pipe((0,u.e)(16),(0,l.R)(t._destroyed)).subscribe(function(){return t.resizeToFitContent(!0)})}),this._isViewInited=!0,this.resizeToFitContent(!0))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_cacheTextareaLineHeight",value:function(){if(!this._cachedLineHeight){var t=this._textareaElement.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,this._textareaElement.parentNode.removeChild(t),this._setMinHeight(),this._setMaxHeight()}}},{key:"_measureScrollHeight",value:function(){this._textareaElement.classList.add(this._measuringClass);var t=this._textareaElement.scrollHeight-4;return this._textareaElement.classList.remove(this._measuringClass),t}},{key:"_cacheTextareaPlaceholderHeight",value:function(){if(this._isViewInited&&null==this._cachedPlaceholderHeight)if(this.placeholder){var t=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=t}else this._cachedPlaceholderHeight=0}},{key:"ngDoCheck",value:function(){this._platform.isBrowser&&this.resizeToFitContent()}},{key:"resizeToFitContent",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._enabled&&(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),this._cachedLineHeight)){var i=this._elementRef.nativeElement,n=i.value;if(e||this._minRows!==this._previousMinRows||n!==this._previousValue){var r=this._measureScrollHeight(),o=Math.max(r,this._cachedPlaceholderHeight||0);i.style.height="".concat(o,"px"),this._ngZone.runOutsideAngular(function(){"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(function(){return t._scrollToCaretPosition(i)}):setTimeout(function(){return t._scrollToCaretPosition(i)})}),this._previousValue=n,this._previousMinRows=this._minRows}}}},{key:"reset",value:function(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}},{key:"_noopInputHandler",value:function(){}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollToCaretPosition",value:function(t){var e=t.selectionStart,i=t.selectionEnd,n=this._getDocument();this._destroyed.isStopped||n.activeElement!==t||t.setSelectionRange(e,i)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(n.t4),r.Y36(r.R0b),r.Y36(h.K0,8))},t.\u0275dir=r.lG2({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&r.NdJ("input",function(){return e._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),t}(),g=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[n.ud]]}),t}()},71709:function(t,e,i){"use strict";i.d(e,{HI:function(){return v},Xx:function(){return k},_0:function(){return w},nZ:function(){return S},Hs:function(){return A},rO:function(){return b},cu:function(){return y},XJ:function(){return T},Ud:function(){return E},C2:function(){return g},VY:function(){return m}});var n=i(4230),r=i(4710),o=i(55959),a=i(78512),s=i(40878),c=i(90611),u=i(43835),l=i(25416),h=i(31572),d=i(19861),f=i(22526),p=function(){function t(){_classCallCheck(this,t),this.expansionModel=new n.Ov(!0)}return _createClass(t,[{key:"toggle",value:function(t){this.expansionModel.toggle(this._trackByValue(t))}},{key:"expand",value:function(t){this.expansionModel.select(this._trackByValue(t))}},{key:"collapse",value:function(t){this.expansionModel.deselect(this._trackByValue(t))}},{key:"isExpanded",value:function(t){return this.expansionModel.isSelected(this._trackByValue(t))}},{key:"toggleDescendants",value:function(t){this.expansionModel.isSelected(this._trackByValue(t))?this.collapseDescendants(t):this.expandDescendants(t)}},{key:"collapseAll",value:function(){this.expansionModel.clear()}},{key:"expandDescendants",value:function(t){var e,i=this,n=[t];n.push.apply(n,_toConsumableArray(this.getDescendants(t))),(e=this.expansionModel).select.apply(e,_toConsumableArray(n.map(function(t){return i._trackByValue(t)})))}},{key:"collapseDescendants",value:function(t){var e,i=this,n=[t];n.push.apply(n,_toConsumableArray(this.getDescendants(t))),(e=this.expansionModel).deselect.apply(e,_toConsumableArray(n.map(function(t){return i._trackByValue(t)})))}},{key:"_trackByValue",value:function(t){return this.trackBy?this.trackBy(t):t}}]),t}(),g=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this)).getLevel=t,o.isExpandable=n,o.options=r,o.options&&(o.trackBy=o.options.trackBy),o}return _createClass(i,[{key:"getDescendants",value:function(t){for(var e=[],i=this.dataNodes.indexOf(t)+1;i1&&void 0!==arguments[1]?arguments[1]:this._dataDiffer,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._nodeOutlet.viewContainer,r=arguments.length>3?arguments[3]:void 0,o=i.diff(t);o&&(o.forEachOperation(function(i,o,a){if(null==i.previousIndex)e.insertNode(t[a],a,n,r);else if(null==a)n.remove(o),e._levels.delete(i.item);else{var s=n.get(o);n.move(s,a)}}),this._changeDetectorRef.detectChanges())}},{key:"_getNodeDef",value:function(t,e){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(function(i){return i.when&&i.when(e,t)})||this._defaultNodeDef}},{key:"insertNode",value:function(t,e,i,n){var r=this._getNodeDef(t,e),o=new _(t);o.level=this.treeControl.getLevel?this.treeControl.getLevel(t):void 0!==n&&this._levels.has(n)?this._levels.get(n)+1:0,this._levels.set(t,o.level),(i||this._nodeOutlet.viewContainer).createEmbeddedView(r.template,o,e),A.mostRecentTreeNode&&(A.mostRecentTreeNode.data=t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.ZZ4),h.Y36(h.sBO))},t.\u0275cmp=h.Xpm({type:t,selectors:[["cdk-tree"]],contentQueries:function(t,e,i){var n;(1&t&&h.Suo(i,b,5),2&t)&&(h.iGM(n=h.CRH())&&(e._nodeDefs=n))},viewQuery:function(t,e){var i;(1&t&&h.Gf(y,7),2&t)&&(h.iGM(i=h.CRH())&&(e._nodeOutlet=i.first))},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(t,e){1&t&&h.GkF(0,0)},directives:[y],encapsulation:2}),t}(),A=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this._elementRef=e,this._tree=i,this._destroyed=new o.xQ,this._dataChanges=new o.xQ,t.mostRecentTreeNode=this,this._elementRef.nativeElement.classList.add("cdk-tree-node"),this.role="treeitem"}return _createClass(t,[{key:"role",get:function(){return"treeitem"},set:function(t){this._elementRef.nativeElement.setAttribute("role",t)}},{key:"data",get:function(){return this._data},set:function(t){t!==this._data&&(this._data=t,this._setRoleFromData(),this._dataChanges.next())}},{key:"isExpanded",get:function(){return this._tree.treeControl.isExpanded(this._data)}},{key:"_setExpanded",value:function(t){this._isAriaExpanded=t,this._elementRef.nativeElement.setAttribute("aria-expanded","".concat(t))}},{key:"level",get:function(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}},{key:"ngOnInit",value:function(){this._parentNodeAriaLevel=function(t){for(var e,i=t.parentElement;i&&(e=void 0,!(null==(e=i.classList)?void 0:e.contains("cdk-nested-tree-node"))&&!(null==e?void 0:e.contains("cdk-tree")));)i=i.parentElement;return i?i.classList.contains("cdk-nested-tree-node")?(0,d.su)(i.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level","".concat(this.level+1))}},{key:"ngDoCheck",value:function(){this.isExpanded!=this._isAriaExpanded&&this._setExpanded(this.isExpanded)}},{key:"ngOnDestroy",value:function(){t.mostRecentTreeNode===this&&(t.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"focus",value:function(){this._elementRef.nativeElement.focus()}},{key:"_setRoleFromData",value:function(){this.role="treeitem"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(w))},t.\u0275dir=h.lG2({type:t,selectors:[["cdk-tree-node"]],inputs:{role:"role"},exportAs:["cdkTreeNode"]}),t.mostRecentTreeNode=null,t}();var k=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this,t,n))._elementRef=t,o._tree=n,o._differs=r,o._elementRef.nativeElement.classList.add("cdk-nested-tree-node"),o}return _createClass(i,[{key:"ngAfterContentInit",value:function(){var t=this;this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);var e=this._tree.treeControl.getChildren(this.data);Array.isArray(e)?this.updateChildrenNodes(e):(0,r.b)(e)&&e.pipe((0,l.R)(this._destroyed)).subscribe(function(e){return t.updateChildrenNodes(e)}),this.nodeOutlet.changes.pipe((0,l.R)(this._destroyed)).subscribe(function(){return t.updateChildrenNodes()})}},{key:"ngOnInit",value:function(){_get(_getPrototypeOf(i.prototype),"ngOnInit",this).call(this)}},{key:"ngDoCheck",value:function(){_get(_getPrototypeOf(i.prototype),"ngDoCheck",this).call(this)}},{key:"ngOnDestroy",value:function(){this._clear(),_get(_getPrototypeOf(i.prototype),"ngOnDestroy",this).call(this)}},{key:"updateChildrenNodes",value:function(t){var e=this._getNodeOutlet();t&&(this._children=t),e&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,e.viewContainer,this._data):this._dataDiffer.diff([])}},{key:"_clear",value:function(){var t=this._getNodeOutlet();t&&(t.viewContainer.clear(),this._dataDiffer.diff([]))}},{key:"_getNodeOutlet",value:function(){var t=this,e=this.nodeOutlet;return e&&e.find(function(e){return!e._node||e._node===t})}}]),i}(A);return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(w),h.Y36(h.ZZ4))},t.\u0275dir=h.lG2({type:t,selectors:[["cdk-nested-tree-node"]],contentQueries:function(t,e,i){var n;(1&t&&h.Suo(i,y,5),2&t)&&(h.iGM(n=h.CRH())&&(e.nodeOutlet=n))},inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[h._Bn([{provide:A,useExisting:t},{provide:v,useExisting:t}]),h.qOj]}),t}(),C=/([A-Za-z%]+)$/,T=function(){var t=function(){function t(e,i,n,r){var a=this;_classCallCheck(this,t),this._treeNode=e,this._tree=i,this._element=n,this._dir=r,this._destroyed=new o.xQ,this.indentUnits="px",this._indent=40,this._setPadding(),r&&r.change.pipe((0,l.R)(this._destroyed)).subscribe(function(){return a._setPadding(!0)}),e._dataChanges.subscribe(function(){return a._setPadding()})}return _createClass(t,[{key:"level",get:function(){return this._level},set:function(t){this._setLevelInput(t)}},{key:"indent",get:function(){return this._indent},set:function(t){this._setIndentInput(t)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_paddingIndent",value:function(){var t=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,e=null==this._level?t:this._level;return"number"==typeof e?"".concat(e*this._indent).concat(this.indentUnits):null}},{key:"_setPadding",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._paddingIndent();if(e!==this._currentPadding||t){var i=this._element.nativeElement,n=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",r="paddingLeft"===n?"paddingRight":"paddingLeft";i.style[n]=e||"",i.style[r]="",this._currentPadding=e}}},{key:"_setLevelInput",value:function(t){this._level=(0,d.su)(t,null),this._setPadding()}},{key:"_setIndentInput",value:function(t){var e=t,i="px";if("string"==typeof t){var n=t.split(C);e=n[0],i=n[1]||i}this.indentUnits=i,this._indent=(0,d.su)(e),this._setPadding()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(h.Y36(A),h.Y36(w),h.Y36(h.SBq),h.Y36(f.Is,8))},t.\u0275dir=h.lG2({type:t,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),t}(),E=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this._tree=e,this._treeNode=i,this._recursive=!1}return _createClass(t,[{key:"recursive",get:function(){return this._recursive},set:function(t){this._recursive=(0,d.Ig)(t)}},{key:"_toggle",value:function(t){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),t.stopPropagation()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(h.Y36(w),h.Y36(A))},t.\u0275dir=h.lG2({type:t,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(t,e){1&t&&h.NdJ("click",function(t){return e._toggle(t)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),t}(),S=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({}),t}()},61511:function(t,e,i){"use strict";i.d(e,{mr:function(){return b},Ov:function(){return Tt},ez:function(){return Rt},K0:function(){return c},uU:function(){return It},Do:function(){return A},V_:function(){return h},Ye:function(){return k},S$:function(){return y},i8:function(){return Et},mk:function(){return ct},sg:function(){return lt},O5:function(){return dt},PC:function(){return _t},RF:function(){return mt},n9:function(){return vt},ED:function(){return yt},tP:function(){return bt},b0:function(){return w},lw:function(){return u},gd:function(){return St},EM:function(){return Dt},JF:function(){return Nt},p6:function(){return j},NF:function(){return Ot},PM:function(){return Pt},w_:function(){return s},bD:function(){return xt},q:function(){return o},Mx:function(){return st},HT:function(){return a}});var n=i(31572),r=null;function o(){return r}function a(t){r||(r=t)}var s=function t(){_classCallCheck(this,t)},c=new n.OlP("DocumentToken"),u=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"historyGo",value:function(t){throw new Error("Not implemented")}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:l,token:t,providedIn:"platform"}),t}();function l(){return(0,n.LFG)(d)}var h=new n.OlP("Location Initialized"),d=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this))._doc=t,n._init(),n}return _createClass(i,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return o().getBaseHref(this._doc)}},{key:"onPopState",value:function(t){var e=o().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),function(){return e.removeEventListener("popstate",t)}}},{key:"onHashChange",value:function(t){var e=o().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),function(){return e.removeEventListener("hashchange",t)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(t){this.location.pathname=t}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(t,e,i){f()?this._history.pushState(t,e,i):this.location.hash=i}},{key:"replaceState",value:function(t,e,i){f()?this._history.replaceState(t,e,i):this.location.hash=i}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(t)}},{key:"getState",value:function(){return this._history.state}}]),i}(u);return t.\u0275fac=function(e){return new(e||t)(n.LFG(c))},t.\u0275prov=(0,n.Yz7)({factory:p,token:t,providedIn:"platform"}),t}();function f(){return!!window.history.pushState}function p(){return new d((0,n.LFG)(c))}function g(t,e){if(0==t.length)return e;if(0==e.length)return t;var i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,2==i?t+e.substring(1):1==i?t+e:t+"/"+e}function m(t){var e=t.match(/#|\?|$/),i=e&&e.index||t.length;return t.slice(0,i-("/"===t[i-1]?1:0))+t.slice(i)}function v(t){return t&&"?"!==t[0]?"?"+t:t}var y=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"historyGo",value:function(t){throw new Error("Not implemented")}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:_,token:t,providedIn:"root"}),t}();function _(t){var e=(0,n.LFG)(c).location;return new w((0,n.LFG)(u),e&&e.origin||"")}var b=new n.OlP("appBaseHref"),w=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;if(_classCallCheck(this,i),(r=e.call(this))._platformLocation=t,r._removeListenerFns=[],null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,_possibleConstructorReturn(r)}return _createClass(i,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(t){return g(this._baseHref,t)}},{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._platformLocation.pathname+v(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?"".concat(e).concat(i):e}},{key:"pushState",value:function(t,e,i,n){var r=this.prepareExternalUrl(i+v(n));this._platformLocation.pushState(t,e,r)}},{key:"replaceState",value:function(t,e,i,n){var r=this.prepareExternalUrl(i+v(n));this._platformLocation.replaceState(t,e,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var t,e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(e=(t=this._platformLocation).historyGo)||void 0===e||e.call(t,i)}}]),i}(y);return t.\u0275fac=function(e){return new(e||t)(n.LFG(u),n.LFG(b,8))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t}(),A=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this))._platformLocation=t,r._baseHref="",r._removeListenerFns=[],null!=n&&(r._baseHref=n),r}return _createClass(i,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}},{key:"prepareExternalUrl",value:function(t){var e=g(this._baseHref,t);return e.length>0?"#"+e:e}},{key:"pushState",value:function(t,e,i,n){var r=this.prepareExternalUrl(i+v(n));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}},{key:"replaceState",value:function(t,e,i,n){var r=this.prepareExternalUrl(i+v(n));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var t,e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(e=(t=this._platformLocation).historyGo)||void 0===e||e.call(t,i)}}]),i}(y);return t.\u0275fac=function(e){return new(e||t)(n.LFG(u),n.LFG(b,8))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t}(),k=function(){var t=function(){function t(e,i){var r=this;_classCallCheck(this,t),this._subject=new n.vpe,this._urlChangeListeners=[],this._platformStrategy=e;var o=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=m(T(o)),this._platformStrategy.onPopState(function(t){r._subject.emit({url:r.path(!0),pop:!0,state:t.state,type:t.type})})}return _createClass(t,[{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(t))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(t+v(e))}},{key:"normalize",value:function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,T(e)))}},{key:"prepareExternalUrl",value:function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}},{key:"go",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+v(e)),i)}},{key:"replaceState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+v(e)),i)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var t,e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(e=(t=this._platformStrategy).historyGo)||void 0===e||e.call(t,i)}},{key:"onUrlChange",value:function(t){var e=this;this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(t){e._notifyUrlChangeListeners(t.url,t.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(i){return i(t,e)})}},{key:"subscribe",value:function(t,e,i){return this._subject.subscribe({next:t,error:e,complete:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.LFG(y),n.LFG(u))},t.normalizeQueryParams=v,t.joinWithSlash=g,t.stripTrailingSlash=m,t.\u0275prov=(0,n.Yz7)({factory:C,token:t,providedIn:"root"}),t}();function C(){return new k((0,n.LFG)(y),(0,n.LFG)(u))}function T(t){return t.replace(/\/index.html$/,"")}var E=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),S=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),I=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),R=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),x=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function O(t,e){return z((0,n.cg1)(t)[n.wAp.DateFormat],e)}function P(t,e){return z((0,n.cg1)(t)[n.wAp.TimeFormat],e)}function D(t,e){return z((0,n.cg1)(t)[n.wAp.DateTimeFormat],e)}function M(t,e){var i=(0,n.cg1)(t),r=i[n.wAp.NumberSymbols][e];if(void 0===r){if(e===x.CurrencyDecimal)return i[n.wAp.NumberSymbols][x.Decimal];if(e===x.CurrencyGroup)return i[n.wAp.NumberSymbols][x.Group]}return r}var L=n.kL8;function N(t){if(!t[n.wAp.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(t[n.wAp.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function z(t,e){for(var i=e;i>-1;i--)if(void 0!==t[i])return t[i];throw new Error("Locale data API: locale data undefined")}function Z(t){var e=_slicedToArray(t.split(":"),2);return{hours:+e[0],minutes:+e[1]}}var B=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,F={},q=/((?:[^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]*)/,H=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),U=function(t){return 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}({}),G=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function j(t,e,i,n){var r=function(t){if(rt(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){var e=_slicedToArray(t.split("-").map(function(t){return+t}),3),i=e[0],n=e[1],r=void 0===n?1:n,o=e[2];return Y(i,r-1,void 0===o?1:o)}var a,s=parseFloat(t);if(!isNaN(t-s))return new Date(s);if(a=t.match(B))return function(t){var e=new Date(0),i=0,n=0,r=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),r.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));var a=Number(t[4]||0)-i,s=Number(t[5]||0)-n,c=Number(t[6]||0),u=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,a,s,c,u),e}(a)}var c=new Date(t);if(!rt(c))throw new Error('Unable to convert "'.concat(t,'" into a date'));return c}(t);e=K(i,e)||e;for(var o,a=[];e;){if(!(o=q.exec(e))){a.push(e);break}var s=(a=a.concat(o.slice(1))).pop();if(!s)break;e=s}var c=r.getTimezoneOffset();n&&(c=nt(n,c),r=function(t,e,i){var n=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(nt(e,n)-n))}(r,n));var u="";return a.forEach(function(t){var e=function(t){if(it[t])return it[t];var e;switch(t){case"G":case"GG":case"GGG":e=W(G.Eras,I.Abbreviated);break;case"GGGG":e=W(G.Eras,I.Wide);break;case"GGGGG":e=W(G.Eras,I.Narrow);break;case"y":e=Q(U.FullYear,1,0,!1,!0);break;case"yy":e=Q(U.FullYear,2,0,!0,!0);break;case"yyy":e=Q(U.FullYear,3,0,!1,!0);break;case"yyyy":e=Q(U.FullYear,4,0,!1,!0);break;case"Y":e=et(1);break;case"YY":e=et(2,!0);break;case"YYY":e=et(3);break;case"YYYY":e=et(4);break;case"M":case"L":e=Q(U.Month,1,1);break;case"MM":case"LL":e=Q(U.Month,2,1);break;case"MMM":e=W(G.Months,I.Abbreviated);break;case"MMMM":e=W(G.Months,I.Wide);break;case"MMMMM":e=W(G.Months,I.Narrow);break;case"LLL":e=W(G.Months,I.Abbreviated,S.Standalone);break;case"LLLL":e=W(G.Months,I.Wide,S.Standalone);break;case"LLLLL":e=W(G.Months,I.Narrow,S.Standalone);break;case"w":e=tt(1);break;case"ww":e=tt(2);break;case"W":e=tt(1,!0);break;case"d":e=Q(U.Date,1);break;case"dd":e=Q(U.Date,2);break;case"c":case"cc":e=Q(U.Day,1);break;case"ccc":e=W(G.Days,I.Abbreviated,S.Standalone);break;case"cccc":e=W(G.Days,I.Wide,S.Standalone);break;case"ccccc":e=W(G.Days,I.Narrow,S.Standalone);break;case"cccccc":e=W(G.Days,I.Short,S.Standalone);break;case"E":case"EE":case"EEE":e=W(G.Days,I.Abbreviated);break;case"EEEE":e=W(G.Days,I.Wide);break;case"EEEEE":e=W(G.Days,I.Narrow);break;case"EEEEEE":e=W(G.Days,I.Short);break;case"a":case"aa":case"aaa":e=W(G.DayPeriods,I.Abbreviated);break;case"aaaa":e=W(G.DayPeriods,I.Wide);break;case"aaaaa":e=W(G.DayPeriods,I.Narrow);break;case"b":case"bb":case"bbb":e=W(G.DayPeriods,I.Abbreviated,S.Standalone,!0);break;case"bbbb":e=W(G.DayPeriods,I.Wide,S.Standalone,!0);break;case"bbbbb":e=W(G.DayPeriods,I.Narrow,S.Standalone,!0);break;case"B":case"BB":case"BBB":e=W(G.DayPeriods,I.Abbreviated,S.Format,!0);break;case"BBBB":e=W(G.DayPeriods,I.Wide,S.Format,!0);break;case"BBBBB":e=W(G.DayPeriods,I.Narrow,S.Format,!0);break;case"h":e=Q(U.Hours,1,-12);break;case"hh":e=Q(U.Hours,2,-12);break;case"H":e=Q(U.Hours,1);break;case"HH":e=Q(U.Hours,2);break;case"m":e=Q(U.Minutes,1);break;case"mm":e=Q(U.Minutes,2);break;case"s":e=Q(U.Seconds,1);break;case"ss":e=Q(U.Seconds,2);break;case"S":e=Q(U.FractionalSeconds,1);break;case"SS":e=Q(U.FractionalSeconds,2);break;case"SSS":e=Q(U.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=X(H.Short);break;case"ZZZZZ":e=X(H.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=X(H.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=X(H.Long);break;default:return null}return it[t]=e,e}(t);u+=e?e(r,i,c):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function Y(t,e,i){var n=new Date(0);return n.setFullYear(t,e,i),n.setHours(0,0,0),n}function K(t,e){var i=function(t){return(0,n.cg1)(t)[n.wAp.LocaleId]}(t);if(F[i]=F[i]||{},F[i][e])return F[i][e];var r="";switch(e){case"shortDate":r=O(t,R.Short);break;case"mediumDate":r=O(t,R.Medium);break;case"longDate":r=O(t,R.Long);break;case"fullDate":r=O(t,R.Full);break;case"shortTime":r=P(t,R.Short);break;case"mediumTime":r=P(t,R.Medium);break;case"longTime":r=P(t,R.Long);break;case"fullTime":r=P(t,R.Full);break;case"short":var o=K(t,"shortTime"),a=K(t,"shortDate");r=V(D(t,R.Short),[o,a]);break;case"medium":var s=K(t,"mediumTime"),c=K(t,"mediumDate");r=V(D(t,R.Medium),[s,c]);break;case"long":var u=K(t,"longTime"),l=K(t,"longDate");r=V(D(t,R.Long),[u,l]);break;case"full":var h=K(t,"fullTime"),d=K(t,"fullDate");r=V(D(t,R.Full),[h,d])}return r&&(F[i][e]=r),r}function V(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,i){return null!=e&&i in e?e[i]:t})),t}function J(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",n=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,o="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,o=i));for(var a=String(t);a.length2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(o,a){var s,c=function(t,e){switch(t){case U.FullYear:return e.getFullYear();case U.Month:return e.getMonth();case U.Date:return e.getDate();case U.Hours:return e.getHours();case U.Minutes:return e.getMinutes();case U.Seconds:return e.getSeconds();case U.FractionalSeconds:return e.getMilliseconds();case U.Day:return e.getDay();default:throw new Error('Unknown DateType value "'.concat(t,'".'))}}(t,o);if((i>0||c>-i)&&(c+=i),t===U.Hours)0===c&&-12===i&&(c=12);else if(t===U.FractionalSeconds)return s=e,J(c,3).substr(0,s);var u=M(a,x.MinusSign);return J(c,e,u,n,r)}}function W(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S.Format,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(o,a){return function(t,e,i,r,o,a){switch(i){case G.Months:return function(t,e,i){var r=(0,n.cg1)(t),o=z([r[n.wAp.MonthsFormat],r[n.wAp.MonthsStandalone]],e);return z(o,i)}(e,o,r)[t.getMonth()];case G.Days:return function(t,e,i){var r=(0,n.cg1)(t),o=z([r[n.wAp.DaysFormat],r[n.wAp.DaysStandalone]],e);return z(o,i)}(e,o,r)[t.getDay()];case G.DayPeriods:var s=t.getHours(),c=t.getMinutes();if(a){var u=function(t){var e=(0,n.cg1)(t);return N(e),(e[n.wAp.ExtraData][2]||[]).map(function(t){return"string"==typeof t?Z(t):[Z(t[0]),Z(t[1])]})}(e),l=function(t,e,i){var r=(0,n.cg1)(t);N(r);var o=z([r[n.wAp.ExtraData][0],r[n.wAp.ExtraData][1]],e)||[];return z(o,i)||[]}(e,o,r),h=u.findIndex(function(t){if(Array.isArray(t)){var e=_slicedToArray(t,2),i=e[0],n=e[1],r=s>=i.hours&&c>=i.minutes,o=s0?Math.floor(r/60):Math.ceil(r/60);switch(t){case H.Short:return(r>=0?"+":"")+J(a,2,o)+J(Math.abs(r%60),2,o);case H.ShortGMT:return"GMT"+(r>=0?"+":"")+J(a,1,o);case H.Long:return"GMT"+(r>=0?"+":"")+J(a,2,o)+":"+J(Math.abs(r%60),2,o);case H.Extended:return 0===n?"Z":(r>=0?"+":"")+J(a,2,o)+":"+J(Math.abs(r%60),2,o);default:throw new Error('Unknown zone width "'.concat(t,'"'))}}}function $(t){return Y(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function tt(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(i,n){var r,o,a;if(e){var s=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,c=i.getDate();r=1+Math.floor((c+s)/7)}else{var u=$(i),l=(o=u.getFullYear(),a=Y(o,0,1).getDay(),Y(o,0,1+(a<=4?4:11)-a)),h=u.getTime()-l.getTime();r=1+Math.round(h/6048e5)}return J(r,t,M(n,x.MinusSign))}}function et(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(i,n){return J($(i).getFullYear(),t,M(n,x.MinusSign),e)}}var it={};function nt(t,e){t=t.replace(/:/g,"");var i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function rt(t){return t instanceof Date&&!isNaN(t.valueOf())}var ot=function t(){_classCallCheck(this,t)},at=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this)).locale=t,n}return _createClass(i,[{key:"getPluralCategory",value:function(t,e){switch(L(e||this.locale)(t)){case E.Zero:return"zero";case E.One:return"one";case E.Two:return"two";case E.Few:return"few";case E.Many:return"many";default:return"other"}}}]),i}(ot);return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.soG))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t}();function st(t,e){e=encodeURIComponent(e);var i,n=_createForOfIteratorHelper(t.split(";"));try{for(n.s();!(i=n.n()).done;){var r=i.value,o=r.indexOf("="),a=_slicedToArray(-1==o?[r,""]:[r.slice(0,o),r.slice(o+1)],2),s=a[0],c=a[1];if(s.trim()===e)return decodeURIComponent(c)}}catch(u){n.e(u)}finally{n.f()}return null}var ct=function(){var t=function(){function t(e,i,n,r){_classCallCheck(this,t),this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=n,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return _createClass(t,[{key:"klass",set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&((0,n.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}},{key:"_applyKeyValueChanges",value:function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})}},{key:"_applyIterableChanges",value:function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat((0,n.AaK)(t.item)));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})}},{key:"_applyClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!0)}):Object.keys(t).forEach(function(i){return e._toggleClass(i,!!t[i])}))}},{key:"_removeClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!1)}):Object.keys(t).forEach(function(t){return e._toggleClass(t,!1)}))}},{key:"_toggleClass",value:function(t,e){var i=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){e?i._renderer.addClass(i._ngEl.nativeElement,t):i._renderer.removeClass(i._ngEl.nativeElement,t)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.ZZ4),n.Y36(n.aQg),n.Y36(n.SBq),n.Y36(n.Qsj))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t}(),ut=function(){function t(e,i,n,r){_classCallCheck(this,t),this.$implicit=e,this.ngForOf=i,this.index=n,this.count=r}return _createClass(t,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),t}(),lt=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this._viewContainer=e,this._template=i,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return _createClass(t,[{key:"ngForOf",set:function(t){this._ngForOf=t,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(t){this._trackByFn=t}},{key:"ngForTemplate",set:function(t){t&&(this._template=t)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(n){throw new Error("Cannot find a differ supporting object '".concat(t,"' of type '").concat((e=t).name||typeof e,"'. NgFor only supports binding to Iterables such as Arrays."))}}var e;if(this._differ){var i=this._differ.diff(this._ngForOf);i&&this._applyChanges(i)}}},{key:"_applyChanges",value:function(t){var e=this,i=[];t.forEachOperation(function(t,n,r){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new ut(null,e._ngForOf,-1,-1),null===r?void 0:r),a=new ht(t,o);i.push(a)}else if(null==r)e._viewContainer.remove(null===n?void 0:n);else if(null!==n){var s=e._viewContainer.get(n);e._viewContainer.move(s,r);var c=new ht(t,s);i.push(c)}});for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"mediumDate",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(null==e||""===e||e!=e)return null;try{return j(e,i,r||this.locale,n)}catch(o){throw wt(t,o.message)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.soG,16))},t.\u0275pipe=n.Yjl({name:"date",type:t,pure:!0}),t}(),Rt=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:ot,useClass:at}]}),t}(),xt="browser";function Ot(t){return t===xt}function Pt(t){return"server"===t}var Dt=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275prov=(0,n.Yz7)({token:t,providedIn:"root",factory:function(){return new Mt((0,n.LFG)(c),window)}}),t}(),Mt=function(){function t(e,i){_classCallCheck(this,t),this.document=e,this.window=i,this.offset=function(){return[0,0]}}return _createClass(t,[{key:"setOffset",value:function(t){this.offset=Array.isArray(t)?function(){return t}:t}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}},{key:"scrollToPosition",value:function(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}},{key:"scrollToAnchor",value:function(t){if(this.supportsScrolling()){var e=function(t,e){var i=t.getElementById(e)||t.getElementsByName(e)[0];if(i)return i;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow))for(var n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=n.currentNode;r;){var o=r.shadowRoot;if(o){var a=o.getElementById(e)||o.querySelector('[name="'.concat(e,'"]'));if(a)return a}r=n.nextNode()}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}}},{key:"setHistoryScrollRestoration",value:function(t){if(this.supportScrollRestoration()){var e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}},{key:"scrollToElement",value:function(t){var e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,n=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],n-r[1])}},{key:"attemptFocus",value:function(t){return t.focus(),this.document.activeElement===t}},{key:"supportScrollRestoration",value:function(){try{if(!this.supportsScrolling())return!1;var t=Lt(this.window.history)||Lt(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(e){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}]),t}();function Lt(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}var Nt=function t(){_classCallCheck(this,t)}},29063:function(t,e,i){"use strict";i.d(e,{TP:function(){return x},eN:function(){return I},JF:function(){return q},WM:function(){return d},LE:function(){return m},Zn:function(){return T}});var n=i(61511),r=i(31572),o=i(40878),a=i(48318),s=i(436),c=i(43835),u=i(79996),l=function t(){_classCallCheck(this,t)},h=function t(){_classCallCheck(this,t)},d=function(){function t(e){var i=this;_classCallCheck(this,t),this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?function(){i.headers=new Map,e.split("\n").forEach(function(t){var e=t.indexOf(":");if(e>0){var n=t.slice(0,e),r=n.toLowerCase(),o=t.slice(e+1).trim();i.maybeSetNormalizedName(n,r),i.headers.has(r)?i.headers.get(r).push(o):i.headers.set(r,[o])}})}:function(){i.headers=new Map,Object.keys(e).forEach(function(t){var n=e[t],r=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(i.headers.set(r,n),i.maybeSetNormalizedName(t,r))})}:this.headers=new Map}return _createClass(t,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,e){return this.clone({name:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({name:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({name:t,value:e,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}},{key:"init",value:function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(i){e.headers.set(i,t.headers.get(i)),e.normalizedNames.set(i,t.normalizedNames.get(i))})}},{key:"clone",value:function(e){var i=new t;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([e]),i}},{key:"applyUpdate",value:function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);var n=("a"===t.op?this.headers.get(e):void 0)||[];n.push.apply(n,_toConsumableArray(i)),this.headers.set(e,n);break;case"d":var r=t.value;if(r){var o=this.headers.get(e);if(!o)return;0===(o=o.filter(function(t){return-1===r.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}}},{key:"forEach",value:function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(i){return t(e.normalizedNames.get(i),e.headers.get(i))})}}]),t}(),f=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"encodeKey",value:function(t){return p(t)}},{key:"encodeValue",value:function(t){return p(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}();function p(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function g(t){return"".concat(t)}var m=function(){function t(){var e,i,n,r=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_classCallCheck(this,t),this.updates=null,this.cloneFrom=null,this.encoder=o.encoder||new f,o.fromString){if(o.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=o.fromString,i=this.encoder,n=new Map,e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(t){var e=t.indexOf("="),r=_slicedToArray(-1==e?[i.decodeKey(t),""]:[i.decodeKey(t.slice(0,e)),i.decodeValue(t.slice(e+1))],2),o=r[0],a=r[1],s=n.get(o)||[];s.push(a),n.set(o,s)}),n)}else o.fromObject?(this.map=new Map,Object.keys(o.fromObject).forEach(function(t){var e=o.fromObject[t];r.map.set(t,Array.isArray(e)?e:[e])})):this.map=null}return _createClass(t,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var e=this.map.get(t);return e?e[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,e){return this.clone({param:t,value:e,op:"a"})}},{key:"appendAll",value:function(t){var e=[];return Object.keys(t).forEach(function(i){var n=t[i];Array.isArray(n)?n.forEach(function(t){e.push({param:i,value:t,op:"a"})}):e.push({param:i,value:n,op:"a"})}),this.clone(e)}},{key:"set",value:function(t,e){return this.clone({param:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({param:t,value:e,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map(function(e){var i=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return i+"="+t.encoder.encodeValue(e)}).join("&")}).filter(function(t){return""!==t}).join("&")}},{key:"clone",value:function(e){var i=new t({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat(e),i}},{key:"init",value:function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var i=("a"===e.op?t.map.get(e.param):void 0)||[];i.push(g(e.value)),t.map.set(e.param,i);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var n=t.map.get(e.param)||[],r=n.indexOf(g(e.value));-1!==r&&n.splice(r,1),n.length>0?t.map.set(e.param,n):t.map.delete(e.param)}}),this.cloneFrom=this.updates=null)}}]),t}(),v=function(){function t(){_classCallCheck(this,t),this.map=new Map}return _createClass(t,[{key:"set",value:function(t,e){return this.map.set(t,e),this}},{key:"get",value:function(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}},{key:"delete",value:function(t){return this.map.delete(t),this}},{key:"keys",value:function(){return this.map.keys()}}]),t}();function y(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function _(t){return"undefined"!=typeof Blob&&t instanceof Blob}function b(t){return"undefined"!=typeof FormData&&t instanceof FormData}var w=function(){function t(e,i,n,r){var o;if(_classCallCheck(this,t),this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new d),this.context||(this.context=new v),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=i;else{var s=i.indexOf("?");this.urlWithParams=i+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},n=i.method||this.method,r=i.url||this.url,o=i.responseType||this.responseType,a=void 0!==i.body?i.body:this.body,s=void 0!==i.withCredentials?i.withCredentials:this.withCredentials,c=void 0!==i.reportProgress?i.reportProgress:this.reportProgress,u=i.headers||this.headers,l=i.params||this.params,h=null!==(e=i.context)&&void 0!==e?e:this.context;return void 0!==i.setHeaders&&(u=Object.keys(i.setHeaders).reduce(function(t,e){return t.set(e,i.setHeaders[e])},u)),i.setParams&&(l=Object.keys(i.setParams).reduce(function(t,e){return t.set(e,i.setParams[e])},l)),new t(n,r,a,{params:l,headers:u,context:h,reportProgress:c,responseType:o,withCredentials:s})}}]),t}(),A=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({}),k=function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";_classCallCheck(this,t),this.headers=e.headers||new d,this.status=void 0!==e.status?e.status:i,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300},C=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,i),(t=e.call(this,n)).type=A.ResponseHeader,t}return _createClass(i,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new i({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}]),i}(k),T=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,i),(t=e.call(this,n)).type=A.Response,t.body=void 0!==n.body?n.body:null,t}return _createClass(i,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new i({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}]),i}(k),E=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this,t,0,"Unknown Error")).name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for ".concat(t.url||"(unknown url)"):"Http failure response for ".concat(t.url||"(unknown url)",": ").concat(t.status," ").concat(t.statusText),n.error=t.error||null,n}return i}(k);function S(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var I=function(){var t=function(){function t(e){_classCallCheck(this,t),this.handler=e}return _createClass(t,[{key:"request",value:function(t,e){var i,n,r,a=this,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t instanceof w?i=t:(n=l.headers instanceof d?l.headers:new d(l.headers),l.params&&(r=l.params instanceof m?l.params:new m({fromObject:l.params})),i=new w(t,e,void 0!==l.body?l.body:null,{headers:n,context:l.context,params:r,reportProgress:l.reportProgress,responseType:l.responseType||"json",withCredentials:l.withCredentials}));var h=(0,o.of)(i).pipe((0,s.b)(function(t){return a.handler.handle(t)}));if(t instanceof w||"events"===l.observe)return h;var f=h.pipe((0,c.h)(function(t){return t instanceof T}));switch(l.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return f.pipe((0,u.U)(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return f.pipe((0,u.U)(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return f.pipe((0,u.U)(function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return f.pipe((0,u.U)(function(t){return t.body}))}case"response":return f;default:throw new Error("Unreachable: unhandled observe type ".concat(l.observe,"}"))}}},{key:"delete",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",t,e)}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",t,e)}},{key:"head",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",t,e)}},{key:"jsonp",value:function(t,e){return this.request("JSONP",t,{params:(new m).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",t,e)}},{key:"patch",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",t,S(i,e))}},{key:"post",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",t,S(i,e))}},{key:"put",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",t,S(i,e))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(l))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t}(),R=function(){function t(e,i){_classCallCheck(this,t),this.next=e,this.interceptor=i}return _createClass(t,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),t}(),x=new r.OlP("HTTP_INTERCEPTORS"),O=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"intercept",value:function(t,e){return e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t}(),P=/^\)\]\}',?\n/,D=function(){var t=function(){function t(e){_classCallCheck(this,t),this.xhrFactory=e}return _createClass(t,[{key:"handle",value:function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new a.y(function(i){var n=e.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach(function(t,e){return n.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var r=t.detectContentTypeHeader();null!==r&&n.setRequestHeader("Content-Type",r)}if(t.responseType){var o=t.responseType.toLowerCase();n.responseType="json"!==o?o:"text"}var a=t.serializeBody(),s=null,c=function(){if(null!==s)return s;var e=1223===n.status?204:n.status,i=n.statusText||"OK",r=new d(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new C({headers:r,status:e,statusText:i,url:o})},u=function(){var e=c(),r=e.headers,o=e.status,a=e.statusText,s=e.url,u=null;204!==o&&(u=void 0===n.response?n.responseText:n.response),0===o&&(o=u?200:0);var l=o>=200&&o<300;if("json"===t.responseType&&"string"==typeof u){var h=u;u=u.replace(P,"");try{u=""!==u?JSON.parse(u):null}catch(d){u=h,l&&(l=!1,u={error:d,text:u})}}l?(i.next(new T({body:u,headers:r,status:o,statusText:a,url:s||void 0})),i.complete()):i.error(new E({error:u,headers:r,status:o,statusText:a,url:s||void 0}))},l=function(t){var e=c().url,r=new E({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:e||void 0});i.error(r)},h=!1,f=function(e){h||(i.next(c()),h=!0);var r={type:A.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(r.total=e.total),"text"===t.responseType&&n.responseText&&(r.partialText=n.responseText),i.next(r)},p=function(t){var e={type:A.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),i.next(e)};return n.addEventListener("load",u),n.addEventListener("error",l),n.addEventListener("timeout",l),n.addEventListener("abort",l),t.reportProgress&&(n.addEventListener("progress",f),null!==a&&n.upload&&n.upload.addEventListener("progress",p)),n.send(a),i.next({type:A.Sent}),function(){n.removeEventListener("error",l),n.removeEventListener("abort",l),n.removeEventListener("load",u),n.removeEventListener("timeout",l),t.reportProgress&&(n.removeEventListener("progress",f),null!==a&&n.upload&&n.upload.removeEventListener("progress",p)),n.readyState!==n.DONE&&n.abort()}})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.JF))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t}(),M=new r.OlP("XSRF_COOKIE_NAME"),L=new r.OlP("XSRF_HEADER_NAME"),N=function t(){_classCallCheck(this,t)},z=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.doc=e,this.platform=i,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return _createClass(t,[{key:"getToken",value:function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,n.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.K0),r.LFG(r.Lbi),r.LFG(M))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t}(),Z=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.tokenService=e,this.headerName=i}return _createClass(t,[{key:"intercept",value:function(t,e){var i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);var n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(N),r.LFG(L))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t}(),B=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.backend=e,this.injector=i,this.chain=null}return _createClass(t,[{key:"handle",value:function(t){if(null===this.chain){var e=this.injector.get(x,[]);this.chain=e.reduceRight(function(t,e){return new R(t,e)},this.backend)}return this.chain.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(h),r.LFG(r.zs3))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t}(),F=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"disable",value:function(){return{ngModule:t,providers:[{provide:Z,useClass:O}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.cookieName?{provide:M,useValue:e.cookieName}:[],e.headerName?{provide:L,useValue:e.headerName}:[]]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[Z,{provide:x,useExisting:Z,multi:!0},{provide:N,useClass:z},{provide:M,useValue:"XSRF-TOKEN"},{provide:L,useValue:"X-XSRF-TOKEN"}]}),t}(),q=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[I,{provide:l,useClass:B},D,{provide:h,useExisting:D}],imports:[[F.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t}()},31572:function(t,e,i){"use strict";i.d(e,{deG:function(){return ii},tb:function(){return ou},AFp:function(){return tu},ip1:function(){return Xc},CZH:function(){return $c},hGG:function(){return Wu},z2F:function(){return qu},sBO:function(){return Ys},Sil:function(){return mu},_Vd:function(){return ms},EJc:function(){return cu},SBq:function(){return bs},qLn:function(){return An},vpe:function(){return Pc},gxx:function(){return po},tBr:function(){return Ci},XFs:function(){return x},OlP:function(){return ei},zs3:function(){return Io},ZZ4:function(){return Bs},aQg:function(){return qs},soG:function(){return su},YKP:function(){return ec},v3s:function(){return Uu},h0i:function(){return tc},PXZ:function(){return Nu},R0b:function(){return _u},FiY:function(){return Ti},Lbi:function(){return ru},g9A:function(){return nu},n_E:function(){return Mc},Qsj:function(){return ks},FYo:function(){return As},JOm:function(){return In},Tiy:function(){return Ts},q3G:function(){return fn},tp0:function(){return Ei},EAV:function(){return Yu},Rgc:function(){return Ws},dDg:function(){return Eu},DyG:function(){return ni},GfV:function(){return Es},s_b:function(){return nc},ifc:function(){return L},eFA:function(){return zu},G48:function(){return Mu},Gpc:function(){return f},f3M:function(){return _i},X6Q:function(){return Du},_c5:function(){return Ju},VLi:function(){return Iu},c2e:function(){return au},zSh:function(){return mo},wAp:function(){return rs},vHH:function(){return m},EiD:function(){return hn},mCW:function(){return Ki},qzn:function(){return Ni},JVY:function(){return Zi},pB0:function(){return Hi},eBb:function(){return Fi},L6k:function(){return Bi},LAX:function(){return qi},cg1:function(){return es},Tjo:function(){return Vu},kL8:function(){return is},yhl:function(){return zi},dqk:function(){return F},sIi:function(){return Zo},CqO:function(){return ua},QGY:function(){return sa},F4k:function(){return ca},RDi:function(){return kt},AaK:function(){return l},z3N:function(){return Li},qOj:function(){return xo},TTD:function(){return yt},_Bn:function(){return fs},xp6:function(){return pr},uIk:function(){return jo},Q2q:function(){return Vo},Tol:function(){return xa},Gre:function(){return Ja},ekj:function(){return Ra},Suo:function(){return Yc},Xpm:function(){return W},lG2:function(){return ot},Yz7:function(){return b},cJS:function(){return w},oAB:function(){return it},Yjl:function(){return at},Y36:function(){return Wo},_UZ:function(){return ia},GkF:function(){return oa},BQk:function(){return ra},ynx:function(){return na},qZA:function(){return ea},TgZ:function(){return ta},EpF:function(){return aa},n5z:function(){return We},Ikx:function(){return Qa},LFG:function(){return yi},$8M:function(){return $e},NdJ:function(){return la},CRH:function(){return Kc},kcU:function(){return me},O4$:function(){return ge},oxw:function(){return ga},ALo:function(){return Tc},lcZ:function(){return Ec},xi3:function(){return Sc},Dn7:function(){return Ic},Hsn:function(){return ya},F$t:function(){return va},Q6J:function(){return Xo},s9C:function(){return _a},MGl:function(){return ba},hYB:function(){return wa},DdM:function(){return vc},VKq:function(){return yc},WLB:function(){return _c},kEZ:function(){return bc},iGM:function(){return Gc},MAs:function(){return Qo},pYS:function(){return En},evT:function(){return Tn},Jf7:function(){return Cn},CHM:function(){return Ht},oJD:function(){return pn},LSH:function(){return gn},B6R:function(){return X},kYT:function(){return nt},Udp:function(){return Ia},WFA:function(){return ha},d8E:function(){return Wa},YNc:function(){return Jo},W1O:function(){return Wc},_uU:function(){return Ha},Oqu:function(){return Ua},hij:function(){return Ga},AsE:function(){return ja},lnq:function(){return Ya},HOy:function(){return Ka},xDo:function(){return Va},Gf:function(){return jc}});var n=i(55959),r=i(87570),o=i(48318),a=i(31906),s=i(1055);function c(t){for(var e in t)if(t[e]===c)return e;throw Error("Could not find renamed property on target object.")}function u(t,e){for(var i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function l(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(l).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return"".concat(t.overriddenName);if(t.name)return"".concat(t.name);var e=t.toString();if(null==e)return""+e;var i=e.indexOf("\n");return-1===i?e:e.substring(0,i)}function h(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}var d=c({__forward_ref__:c});function f(t){return t.__forward_ref__=f,t.toString=function(){return l(this())},t}function p(t){return g(t)?t():t}function g(t){return"function"==typeof t&&t.hasOwnProperty(d)&&t.__forward_ref__===f}var m=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,function(t,e){return"".concat(t?"NG0".concat(t,": "):"").concat(e)}(t,n))).code=t,r}return i}(_wrapNativeSuper(Error));function v(t){return"string"==typeof t?t:null==t?"":String(t)}function y(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():v(t)}function _(t,e){var i=e?" in ".concat(e):"";throw new m("201","No provider for ".concat(y(t)," found").concat(i))}function b(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function w(t){return{providers:t.providers||[],imports:t.imports||[]}}function A(t){return k(t,E)||k(t,I)}function k(t,e){return t.hasOwnProperty(e)?t[e]:null}function C(t){return t&&(t.hasOwnProperty(S)||t.hasOwnProperty(R))?t[S]:null}var T,E=c({"\u0275prov":c}),S=c({"\u0275inj":c}),I=c({ngInjectableDef:c}),R=c({ngInjectorDef:c}),x=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function O(t){var e=T;return T=t,e}function P(t,e,i){var n=A(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:i&x.Optional?null:void 0!==e?e:void _(l(t),"Injector")}function D(t){return{toString:t}.toString()}var M=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),L=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({}),N="undefined"!=typeof globalThis&&globalThis,z="undefined"!=typeof window&&window,Z="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,B="undefined"!=typeof global&&global,F=N||B||z||Z,q={},H=[],U=c({"\u0275cmp":c}),G=c({"\u0275dir":c}),j=c({"\u0275pipe":c}),Y=c({"\u0275mod":c}),K=c({"\u0275loc":c}),V=c({"\u0275fac":c}),J=c({__NG_ELEMENT_ID__:c}),Q=0;function W(t){return D(function(){var e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===M.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||H,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||L.Emulated,id:"c",styles:t.styles||H,_:null,setInput:null,schemas:t.schemas||null,tView:null},n=t.directives,r=t.features,o=t.pipes;return i.id+=Q++,i.inputs=rt(t.inputs,e),i.outputs=rt(t.outputs),r&&r.forEach(function(t){return t(i)}),i.directiveDefs=n?function(){return("function"==typeof n?n():n).map($)}:null,i.pipeDefs=o?function(){return("function"==typeof o?o():o).map(tt)}:null,i})}function X(t,e,i){var n=t.\u0275cmp;n.directiveDefs=function(){return e.map($)},n.pipeDefs=function(){return i.map(tt)}}function $(t){return st(t)||function(t){return t[G]||null}(t)}function tt(t){return function(t){return t[j]||null}(t)}var et={};function it(t){return D(function(){var e={type:t.type,bootstrap:t.bootstrap||H,declarations:t.declarations||H,imports:t.imports||H,exports:t.exports||H,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(et[t.id]=t.type),e})}function nt(t,e){return D(function(){var i=ct(t,!0);i.declarations=e.declarations||H,i.imports=e.imports||H,i.exports=e.exports||H})}function rt(t,e){if(null==t)return q;var i={};for(var n in t)if(t.hasOwnProperty(n)){var r=t[n],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),i[r]=n,e&&(e[r]=o)}return i}var ot=W;function at(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function st(t){return t[U]||null}function ct(t,e){var i=t[Y]||null;if(!i&&!0===e)throw new Error("Type ".concat(l(t)," does not have '\u0275mod' property."));return i}function ut(t){return Array.isArray(t)&&"object"==typeof t[1]}function lt(t){return Array.isArray(t)&&!0===t[1]}function ht(t){return 0!=(8&t.flags)}function dt(t){return 2==(2&t.flags)}function ft(t){return 1==(1&t.flags)}function pt(t){return null!==t.template}function gt(t,e){return t.hasOwnProperty(V)?t[V]:null}var mt,vt=function(){function t(e,i,n){_classCallCheck(this,t),this.previousValue=e,this.currentValue=i,this.firstChange=n}return _createClass(t,[{key:"isFirstChange",value:function(){return this.firstChange}}]),t}();function yt(){return _t}function _t(t){return t.type.prototype.ngOnChanges&&(t.setInput=wt),bt}function bt(){var t=At(this),e=null==t?void 0:t.current;if(e){var i=t.previous;if(i===q)t.previous=e;else for(var n in e)i[n]=e[n];t.current=null,this.ngOnChanges(e)}}function wt(t,e,i,n){var r=At(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:q,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[i],c=a[s];o[s]=new vt(c&&c.currentValue,e,a===q),t[n]=e}function At(t){return t.__ngSimpleChanges__||null}function kt(t){mt=t}function Ct(){return void 0!==mt?mt:"undefined"!=typeof document?document:void 0}function Tt(t){return!!t.listen}yt.ngInherit=!0;var Et={createRenderer:function(t,e){return Ct()}};function St(t){for(;Array.isArray(t);)t=t[0];return t}function It(t,e){return St(e[t])}function Rt(t,e){return St(e[t.index])}function xt(t,e){return t.data[e]}function Ot(t,e){return t[e]}function Pt(t,e){var i=e[t];return ut(i)?i:i[0]}function Dt(t){return 4==(4&t[2])}function Mt(t){return 128==(128&t[2])}function Lt(t,e){return null==e?null:t[e]}function Nt(t){t[18]=0}function zt(t,e){t[5]+=e;for(var i=t,n=t[3];null!==n&&(1===e&&1===i[5]||-1===e&&0===i[5]);)n[5]+=e,i=n,n=n[3]}var Zt={lFrame:ce(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Bt(){return Zt.bindingsEnabled}function Ft(){return Zt.lFrame.lView}function qt(){return Zt.lFrame.tView}function Ht(t){return Zt.lFrame.contextLView=t,t[8]}function Ut(){for(var t=Gt();null!==t&&64===t.type;)t=t.parent;return t}function Gt(){return Zt.lFrame.currentTNode}function jt(t,e){var i=Zt.lFrame;i.currentTNode=t,i.isParent=e}function Yt(){return Zt.lFrame.isParent}function Kt(){Zt.lFrame.isParent=!1}function Vt(){return Zt.isInCheckNoChangesMode}function Jt(t){Zt.isInCheckNoChangesMode=t}function Qt(){var t=Zt.lFrame,e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Wt(){return Zt.lFrame.bindingIndex}function Xt(){return Zt.lFrame.bindingIndex++}function $t(t){var e=Zt.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function te(t){Zt.lFrame.currentDirectiveIndex=t}function ee(t){var e=Zt.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function ie(){return Zt.lFrame.currentQueryIndex}function ne(t){Zt.lFrame.currentQueryIndex=t}function re(t){var e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function oe(t,e,i){if(i&x.SkipSelf){for(var n=e,r=t;!(null!==(n=n.parent)||i&x.Host||(n=re(r),null===n)||(r=r[15],10&n.type)););if(null===n)return!1;e=n,t=r}var o=Zt.lFrame=se();return o.currentTNode=e,o.lView=t,!0}function ae(t){var e=se(),i=t[1];Zt.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function se(){var t=Zt.lFrame,e=null===t?null:t.child;return null===e?ce(t):e}function ce(t){var e={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:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function ue(){var t=Zt.lFrame;return Zt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var le=ue;function he(){var t=ue();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function de(){return Zt.lFrame.selectedIndex}function fe(t){Zt.lFrame.selectedIndex=t}function pe(){var t=Zt.lFrame;return xt(t.tView,t.selectedIndex)}function ge(){Zt.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function me(){Zt.lFrame.currentNamespace=null}function ve(t,e){for(var i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[s]<0&&(t[18]+=65536),(a>11>16&&(3&t[2])===e){t[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}var ke=function t(e,i,n){_classCallCheck(this,t),this.factory=e,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=n};function Ce(t,e,i){for(var n=Tt(t),r=0;re){a=o-1;break}}}for(;o>16,n=e;i>0;)n=n[15],i--;return n}var Pe=!0;function De(t){var e=Pe;return Pe=t,e}var Me=0;function Le(t,e){var i=ze(t,e);if(-1!==i)return i;var n=e[1];n.firstCreatePass&&(t.injectorIndex=e.length,Ne(n.data,t),Ne(e,null),Ne(n.blueprint,null));var r=Ze(t,e),o=t.injectorIndex;if(Re(r))for(var a=xe(r),s=Oe(r,e),c=s[1].data,u=0;u<8;u++)e[o+u]=s[a+u]|c[a+u];return e[o+8]=r,o}function Ne(t,e){t.push(0,0,0,0,0,0,0,0,e)}function ze(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Ze(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var i=0,n=null,r=e;null!==r;){var o=r[1],a=o.type;if(null===(n=2===a?o.declTNode:1===a?r[6]:null))return-1;if(i++,r=r[15],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return-1}function Be(t,e,i){!function(t,e,i){var n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty(J)&&(n=i[J]),null==n&&(n=i[J]=Me++);var r=255&n;e.data[t+(r>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:x.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==t){var o=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;var e=t.hasOwnProperty(J)?t[J]:void 0;return"number"==typeof e?e>=0?255&e:Ge:e}(i);if("function"==typeof o){if(!oe(e,t,n))return n&x.Host?Fe(r,i,n):qe(e,i,n,r);try{var a=o(n);if(null!=a||n&x.Optional)return a;_(i)}finally{le()}}else if("number"==typeof o){var s=null,c=ze(t,e),u=-1,l=n&x.Host?e[16][6]:null;for((-1===c||n&x.SkipSelf)&&(-1!==(u=-1===c?Ze(t,e):e[c+8])&&Je(n,!1)?(s=e[1],c=xe(u),e=Oe(u,e)):c=-1);-1!==c;){var h=e[1];if(Ve(o,c,h.data)){var d=je(c,e,i,s,n,l);if(d!==Ue)return d}-1!==(u=e[c+8])&&Je(n,e[1].data[c+8]===l)&&Ve(o,c,e)?(s=h,c=xe(u),e=Oe(u,e)):c=-1}}}return qe(e,i,n,r)}var Ue={};function Ge(){return new Qe(Ut(),Ft())}function je(t,e,i,n,r,o){var a=e[1],s=a.data[t+8],c=Ye(s,a,i,null==n?dt(s)&&Pe:n!=a&&0!=(3&s.type),r&x.Host&&o===s);return null!==c?Ke(e,a,c,s):Ue}function Ye(t,e,i,n,r){for(var o=t.providerIndexes,a=e.data,s=1048575&o,c=t.directiveStart,u=o>>20,l=r?s+u:t.directiveEnd,h=n?s:s+u;h=c&&d.type===i)return h}if(r){var f=a[c];if(f&&pt(f)&&f.type===i)return c}return null}function Ke(t,e,i,n){var r=t[i],o=e.data;if(r instanceof ke){var a=r;a.resolving&&function(t,e){throw new m("200","Circular dependency in DI detected for ".concat(t))}(y(o[i]));var s=De(a.canSeeViewProviders);a.resolving=!0;var c=a.injectImpl?O(a.injectImpl):null;oe(t,n,x.Default);try{r=t[i]=a.factory(void 0,o,t,n),e.firstCreatePass&&i>=n.directiveStart&&function(t,e,i){var n=e.type.prototype,r=n.ngOnChanges,o=n.ngOnInit,a=n.ngDoCheck;if(r){var s=_t(e);(i.preOrderHooks||(i.preOrderHooks=[])).push(t,s),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,s)}o&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-t,o),a&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,a),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,a))}(i,o[i],e)}finally{null!==c&&O(c),De(s),a.resolving=!1,le()}}return r}function Ve(t,e,i){return!!(i[e+(t>>5)]&1<=t.length?t.push(i):t.splice(e,0,i)}function si(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function ci(t,e){for(var i=[],n=0;n=0?t[1|n]=i:function(t,e,i,n){var r=t.length;if(r==e)t.push(i,n);else if(1===r)t.push(n,t[0]),t[0]=i;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=i,t[e+1]=n}}(t,n=~n,e,i),n}function li(t,e){var i=hi(t,e);if(i>=0)return t[1|i]}function hi(t,e){return function(t,e,i){for(var n=0,r=t.length>>1;r!==n;){var o=n+(r-n>>1),a=t[o<<1];if(e===a)return o<<1;a>e?r=o:n=o+1}return~(r<<1)}(t,e)}var di,fi={},pi=/\n/gm,gi=c({provide:String,useValue:c});function mi(t){var e=di;return di=t,e}function vi(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:x.Default;if(void 0===di)throw new Error("inject() must be called from an injection context");return null===di?P(t,void 0,e):di.get(t,e&x.Optional?null:void 0,e)}function yi(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:x.Default;return(T||vi)(p(t),e)}var _i=yi;function bi(t){for(var e=[],i=0;i"),!0}},{key:"endElement",value:function(t){var e=t.nodeName.toLowerCase();en.hasOwnProperty(e)&&!Wi.hasOwnProperty(e)&&(this.buf.push(""))}},{key:"chars",value:function(t){this.buf.push(ln(t))}},{key:"checkClobberedElement",value:function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(t.outerHTML));return e}}]),t}(),cn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,un=/([^\#-~ |!])/g;function ln(t){return t.replace(/&/g,"&").replace(cn,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(un,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}function hn(t,e){var i=null;try{Qi=Qi||function(t){var e=new Gi(t);return function(){try{return!!(new window.DOMParser).parseFromString(Si(""),"text/html")}catch(t){return!1}}()?new Ui(e):e}(t);var n=e?String(e):"";i=Qi.getInertBodyElement(n);var r=5,o=n;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,n=o,o=i.innerHTML,i=Qi.getInertBodyElement(n)}while(n!==o);return Si((new sn).sanitizeChildren(dn(i)||i))}finally{if(i)for(var a=dn(i)||i;a.firstChild;)a.removeChild(a.firstChild)}}function dn(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var fn=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function pn(t){var e=mn();return e?Ii(e.sanitize(fn.HTML,t)||""):Ni(t,"HTML")?Ii(Li(t)):hn(Ct(),v(t))}function gn(t){var e=mn();return e?e.sanitize(fn.URL,t)||"":Ni(t,"URL")?Li(t):Ki(v(t))}function mn(){var t=Ft();return t&&t[12]}function vn(t,e){t.__ngContext__=e}function yn(t){var e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function _n(t){return t.ngDebugContext}function bn(t){return t.ngOriginalError}function wn(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n0&&(t[n-1][4]=r[4]);var a=si(t,10+e);Xn(r[1],i=r,i[11],2,null,null),i[0]=null,i[6]=null;var s=a[19];null!==s&&s.detachView(a[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function Zn(t,e){if(!(256&e[2])){var i=e[11];Tt(i)&&i.destroyNode&&Xn(t,e,i,3,null,null),function(t){var e=t[13];if(!e)return Bn(t[1],t);for(;e;){var i=null;if(ut(e))i=e[13];else{var n=e[10];n&&(i=n)}if(!i){for(;e&&!e[4]&&e!==t;)ut(e)&&Bn(e[1],e),e=e[3];null===e&&(e=t),ut(e)&&Bn(e[1],e),i=e&&e[4]}e=i}}(e)}}function Bn(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){var i;if(null!=t&&null!=(i=t.destroyHooks))for(var n=0;n=0?n[r=u]():n[r=-u].unsubscribe(),o+=2}else{var l=n[r=i[o+1]];i[o].call(l)}if(null!==n){for(var h=r+1;ho?"":r[l+1].toLowerCase();var d=8&n?h:null;if(d&&-1!==ir(d,u,0)||2&n&&u!==h){if(sr(n))return!1;a=!0}}}}else{if(!a&&!sr(n)&&!sr(c))return!1;if(a&&sr(c))continue;a=!1,n=c|1&n}}return sr(n)||a}function sr(t){return 0==(1&t)}function cr(t,e,i,n){if(null===e)return-1;var r=0;if(n||!i){for(var o=!1;r-1)for(i++;i2&&void 0!==arguments[2]&&arguments[2],n=0;n0?'="'+s+'"':"")+"]"}else 8&n?r+="."+a:4&n&&(r+=" "+a);else""===r||sr(a)||(e+=hr(o,r),r=""),n=a,o=o||!sr(n);i++}return""!==r&&(e+=hr(o,r)),e}var fr={};function pr(t){gr(qt(),Ft(),de()+t,Vt())}function gr(t,e,i,n){if(!n)if(3==(3&e[2])){var r=t.preOrderCheckHooks;null!==r&&ye(e,r,i)}else{var o=t.preOrderHooks;null!==o&&_e(e,o,0,i)}fe(i)}function mr(t,e){return t<<17|e<<2}function vr(t){return t>>17&32767}function yr(t){return 2|t}function _r(t){return(131068&t)>>2}function br(t,e){return-131069&t|e<<2}function wr(t){return 1|t}function Ar(t,e){var i=t.contentQueries;if(null!==i)for(var n=0;n20&&gr(t,e,20,Vt()),i(n,r)}finally{fe(o)}}function xr(t,e,i){if(ht(e))for(var n=e.directiveEnd,r=e.directiveStart;r2&&void 0!==arguments[2]?arguments[2]:Rt,n=e.localNames;if(null!==n)for(var r=e.index+1,o=0;o0;){var i=t[--e];if("number"==typeof i&&i<0)return i}return 0})(s)!=c&&s.push(c),s.push(n,r,a)}}function Fr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function qr(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Hr(t,e,i){if(i){if(e.exportAs)for(var n=0;n0&&Wr(i)}}function Wr(t){for(var e=On(t);null!==e;e=Pn(e))for(var i=10;i0&&Wr(n)}var o=t[1].components;if(null!==o)for(var a=0;a0&&Wr(s)}}function Xr(t,e){var i=Pt(e,t),n=i[1];!function(t,e){for(var i=e.length;i1&&void 0!==arguments[1]?arguments[1]:fi;if(e===fi){var i=new Error("NullInjectorError: No provider for ".concat(l(t),"!"));throw i.name="NullInjectorError",i}return e}}]),t}(),mo=new ei("Set Injector scope."),vo={},yo={};function _o(){return void 0===fo&&(fo=new go),fo}function bo(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0;return new wo(t,i,e||_o(),n)}var wo=function(){function t(e,i,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,t),this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];i&&oi(i,function(t){return r.processProvider(t,e,i)}),oi([e],function(t){return r.processInjectorType(t,[],a)}),this.records.set(po,Co(void 0,this));var s=this.records.get(mo);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof e?null:l(e))}return _createClass(t,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fi,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:x.Default;this.assertNotDestroyed();var n,r=mi(this);try{if(!(i&x.SkipSelf)){var o=this.records.get(t);if(void 0===o){var a=("function"==typeof(n=t)||"object"==typeof n&&n instanceof ei)&&A(t);o=a&&this.injectableDefInScope(a)?Co(Ao(t),vo):null,this.records.set(t,o)}if(null!=o)return this.hydrate(t,o)}return(i&x.Self?_o():this.parent).get(t,e=i&x.Optional&&e===fi?null:e)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(l(t)),r)throw s;return function(t,e,i,n){var r=t.ngTempTokenPath;throw e.__source&&r.unshift(e.__source),t.message=function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;var r=l(e);if(Array.isArray(e))r=e.map(l).join(" -> ");else if("object"==typeof e){var o=[];for(var a in e)if(e.hasOwnProperty(a)){var s=e[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):l(s)))}r="{".concat(o.join(", "),"}")}return"".concat(i).concat(n?"("+n+")":"","[").concat(r,"]: ").concat(t.replace(pi,"\n "))}("\n"+t.message,r,"R3InjectorError",n),t.ngTokenPath=r,t.ngTempTokenPath=null,t}(s,t,0,this.source)}throw s}finally{mi(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach(function(e){return t.get(e)})}},{key:"toString",value:function(){var t=[];return this.records.forEach(function(e,i){return t.push(l(i))}),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(t,e,i){var n=this;if(!(t=p(t)))return!1;var r=C(t),o=null==r&&t.ngModule||void 0,a=void 0===o?t:o,s=-1!==i.indexOf(a);if(void 0!==o&&(r=C(o)),null==r)return!1;if(null!=r.imports&&!s){var c;i.push(a);try{oi(r.imports,function(t){n.processInjectorType(t,e,i)&&(void 0===c&&(c=[]),c.push(t))})}finally{}if(void 0!==c)for(var u=function(t){var e=c[t],i=e.ngModule,r=e.providers;oi(r,function(t){return n.processProvider(t,i,r||H)})},l=0;l0){var i=ci(e,"?");throw new Error("Can't resolve all parameters for ".concat(l(t),": (").concat(i.join(", "),")."))}var n=function(t){var e=t&&(t[E]||t[I]);if(e){var i=function(t){if(t.hasOwnProperty("name"))return t.name;var e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(i,'" 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 "').concat(i,'" class.')),e}return null}(t);return null!==n?function(){return n.factory(t)}:function(){return new t}}(t);throw new Error("unreachable")}function ko(t,e,i){var n,r;if(Eo(t)){var o=p(t);return gt(o)||Ao(o)}if(To(t))n=function(){return p(t.useValue)};else if((r=t)&&r.useFactory)n=function(){return t.useFactory.apply(t,_toConsumableArray(bi(t.deps||[])))};else if(function(t){return!(!t||!t.useExisting)}(t))n=function(){return yi(p(t.useExisting))};else{var a=p(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return gt(a)||Ao(a);n=function(){return _construct(a,_toConsumableArray(bi(t.deps)))}}return n}function Co(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:t,value:e,multi:i?[]:void 0}}function To(t){return null!==t&&"object"==typeof t&&gi in t}function Eo(t){return"function"==typeof t}var So=function(t,e,i){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0,r=bo(t,e,i,n);return r._resolveInjectorDefTypes(),r}({name:i},e,t,i)},Io=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"create",value:function(t,e){return Array.isArray(t)?So(t,e,""):So(t.providers,t.parent,t.name||"")}}]),t}();return t.THROW_IF_NOT_FOUND=fi,t.NULL=new go,t.\u0275prov=b({token:t,providedIn:"any",factory:function(){return yi(po)}}),t.__NG_ELEMENT_ID__=-1,t}();function Ro(t,e){ve(yn(t)[1],Ut())}function xo(t){for(var e=Object.getPrototypeOf(t.type.prototype).constructor,i=!0,n=[t];e;){var r=void 0;if(pt(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");r=e.\u0275dir}if(r){if(i){n.push(r);var o=t;o.inputs=Oo(t.inputs),o.declaredInputs=Oo(t.declaredInputs),o.outputs=Oo(t.outputs);var a=r.hostBindings;a&&Mo(t,a);var s=r.viewQuery,c=r.contentQueries;if(s&&Po(t,s),c&&Do(t,c),u(t.inputs,r.inputs),u(t.declaredInputs,r.declaredInputs),u(t.outputs,r.outputs),pt(r)&&r.data.animation){var l=t.data;l.animation=(l.animation||[]).concat(r.data.animation)}}var h=r.features;if(h)for(var d=0;d=0;n--){var r=t[n];r.hostVars=e+=r.hostVars,r.hostAttrs=Se(r.hostAttrs,i=Se(i,r.hostAttrs))}}(n)}function Oo(t){return t===q?{}:t===H?[]:t}function Po(t,e){var i=t.viewQuery;t.viewQuery=i?function(t,n){e(t,n),i(t,n)}:e}function Do(t,e){var i=t.contentQueries;t.contentQueries=i?function(t,n,r){e(t,n,r),i(t,n,r)}:e}function Mo(t,e){var i=t.hostBindings;t.hostBindings=i?function(t,n){e(t,n),i(t,n)}:e}var Lo=null;function No(){if(!Lo){var t=F.Symbol;if(t&&t.iterator)Lo=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),i=0;i1&&void 0!==arguments[1]?arguments[1]:x.Default,i=Ft();return null===i?yi(t,e):He(Ut(),i,p(t),e)}function Xo(t,e,i){var n=Ft();return qo(n,Xt(),e)&&zr(qt(),pe(),n,t,e,n[11],i,!1),Xo}function $o(t,e,i,n,r){var o=r?"class":"style";uo(t,i,e.inputs[o],o,n)}function ta(t,e,i,n){var r=Ft(),o=qt(),a=20+t,s=r[11],c=r[a]=Ln(s,e,Zt.lFrame.currentNamespace),u=o.firstCreatePass?function(t,e,i,n,r,o,a){var s=e.consts,c=Cr(e,t,2,r,Lt(s,o));return Zr(e,i,c,Lt(s,a)),null!==c.attrs&&ho(c,c.attrs,!1),null!==c.mergedAttrs&&ho(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(a,o,r,0,e,i,n):o.data[a];jt(u,!0);var l=u.mergedAttrs;null!==l&&Ce(s,c,l);var h=u.classes;null!==h&&er(s,c,h);var d=u.styles;null!==d&&tr(s,c,d),64!=(64&u.flags)&&Kn(o,r,c,u),0===Zt.lFrame.elementDepthCount&&vn(c,r),Zt.lFrame.elementDepthCount++,ft(u)&&(Or(o,r,u),xr(o,u,r)),null!==n&&Pr(r,u)}function ea(){var t=Ut();Yt()?Kt():jt(t=t.parent,!1);var e=t;Zt.lFrame.elementDepthCount--;var i=qt();i.firstCreatePass&&(ve(i,t),ht(t)&&i.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&$o(i,e,Ft(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&$o(i,e,Ft(),e.stylesWithoutHost,!1)}function ia(t,e,i,n){ta(t,e,i,n),ea()}function na(t,e,i){var n=Ft(),r=qt(),o=t+20,a=r.firstCreatePass?function(t,e,i,n,r){var o=e.consts,a=Lt(o,n),s=Cr(e,t,8,"ng-container",a);return null!==a&&ho(s,a,!0),Zr(e,i,s,Lt(o,r)),null!==e.queries&&e.queries.elementStart(e,s),s}(o,r,n,e,i):r.data[o];jt(a,!0);var s=n[o]=n[11].createComment("");Kn(r,n,s,a),vn(s,n),ft(a)&&(Or(r,n,a),xr(r,a,n)),null!=i&&Pr(n,a)}function ra(){var t=Ut(),e=qt();Yt()?Kt():jt(t=t.parent,!1),e.firstCreatePass&&(ve(e,t),ht(t)&&e.queries.elementEnd(t))}function oa(t,e,i){na(t,e,i),ra()}function aa(){return Ft()}function sa(t){return!!t&&"function"==typeof t.then}function ca(t){return!!t&&"function"==typeof t.subscribe}var ua=ca;function la(t,e,i,n){var r=Ft(),o=qt(),a=Ut();return da(o,r,r[11],a,t,e,!!i,n),la}function ha(t,e){var i=Ut(),n=Ft(),r=qt();return da(r,n,so(ee(r.data),i,n),i,t,e,!1),ha}function da(t,e,i,n,r,o,a,s){var c=ft(n),u=t.firstCreatePass&&ao(t),l=oo(e),h=!0;if(3&n.type||s){var d=Rt(n,e),f=s?s(d):d,p=l.length,g=s?function(t){return s(St(t[n.index]))}:n.index;if(Tt(i)){var m=null;if(!s&&c&&(m=function(t,e,i,n){var r=t.cleanup;if(null!=r)for(var o=0;oc?s[c]:null}"string"==typeof a&&(o+=2)}return null}(t,e,r,n.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=o,m.__ngLastListenerFn__=o,h=!1;else{o=pa(n,e,0,o,!1);var v=i.listen(f,r,o);l.push(o,v),u&&u.push(r,g,p,p+1)}}else o=pa(n,e,0,o,!0),f.addEventListener(r,o,a),l.push(o),u&&u.push(r,g,p,a)}else o=pa(n,e,0,o,!1);var y,_=n.outputs;if(h&&null!==_&&(y=_[r])){var b=y.length;if(b)for(var w=0;w0&&void 0!==arguments[0]?arguments[0]:1;return function(t){return(Zt.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Zt.lFrame.contextLView))[8]}(t)}function ma(t,e){for(var i=null,n=function(t){var e=t.attrs;if(null!=e){var i=e.indexOf(5);if(0==(1&i))return e[i+1]}return null}(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,n=Ft(),r=qt(),o=Cr(r,20+t,16,null,i||null);null===o.projection&&(o.projection=e),Kt(),64!=(64&o.flags)&&function(t,e,i){$n(e[11],0,e,i,Fn(t,i,e),jn(i.parent||e[6],i,e))}(r,n,o)}function _a(t,e,i){return ba(t,"",e,"",i),_a}function ba(t,e,i,n,r){var o=Ft(),a=Yo(o,e,i,n);return a!==fr&&zr(qt(),pe(),o,t,a,o[11],r,!1),ba}function wa(t,e,i,n,r,o,a){var s=Ft(),c=Ko(s,e,i,n,r,o);return c!==fr&&zr(qt(),pe(),s,t,c,s[11],a,!1),wa}function Aa(t,e,i,n,r){for(var o=t[i+1],a=null===e,s=n?vr(o):_r(o),c=!1;0!==s&&(!1===c||a);){var u=t[s+1];ka(t[s],e)&&(c=!0,t[s+1]=n?wr(u):yr(u)),s=n?vr(u):_r(u)}c&&(t[i+1]=n?yr(o):wr(o))}function ka(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&hi(t,e)>=0}var Ca={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ta(t){return t.substring(Ca.key,Ca.keyEnd)}function Ea(t,e){var i=Ca.textEnd;return i===e?-1:(e=Ca.keyEnd=function(t,e,i){for(;e32;)e++;return e}(t,Ca.key=e,i),Sa(t,e,i))}function Sa(t,e,i){for(;e=0;i=Ea(e,i))ui(t,Ta(e),!0)}function Pa(t,e,i,n){var r=Ft(),o=qt(),a=$t(2);o.firstUpdatePass&&La(o,t,a,n),e!==fr&&qo(r,a,e)&&Za(o,o.data[de()],r,r[11],t,r[a+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=l(Li(t)))),t}(e,i),n,a)}function Da(t,e,i,n){var r=qt(),o=$t(2);r.firstUpdatePass&&La(r,null,o,n);var a=Ft();if(i!==fr&&qo(a,o,i)){var s=r.data[de()];if(qa(s,n)&&!Ma(r,o)){var c=n?s.classesWithoutHost:s.stylesWithoutHost;null!==c&&(i=h(c,i||"")),$o(r,s,a,i,n)}else!function(t,e,i,n,r,o,a,s){r===fr&&(r=H);for(var c=0,u=0,l=0=t.expandoStartIndex}function La(t,e,i,n){var r=t.data;if(null===r[i+1]){var o=r[de()],a=Ma(t,i);qa(o,n)&&null===e&&!a&&(e=!1),e=function(t,e,i,n){var r=ee(t),o=n?e.residualClasses:e.residualStyles;if(null===r)0===(n?e.classBindings:e.styleBindings)&&(i=za(i=Na(null,t,e,i,n),e.attrs,n),o=null);else{var a=e.directiveStylingLast;if(-1===a||t[a]!==r)if(i=Na(r,t,e,i,n),null===o){var s=function(t,e,i){var n=i?e.classBindings:e.styleBindings;if(0!==_r(n))return t[vr(n)]}(t,e,n);void 0!==s&&Array.isArray(s)&&function(t,e,i,n){t[vr(i?e.classBindings:e.styleBindings)]=n}(t,e,n,s=za(s=Na(null,t,e,s[1],n),e.attrs,n))}else o=function(t,e,i){for(var n,r=e.directiveEnd,o=1+e.directiveStylingLast;o0)&&(l=!0)}else u=i;if(r)if(0!==c){var d=vr(t[s+1]);t[n+1]=mr(d,s),0!==d&&(t[d+1]=br(t[d+1],n)),t[s+1]=131071&t[s+1]|n<<17}else t[n+1]=mr(s,0),0!==s&&(t[s+1]=br(t[s+1],n)),s=n;else t[n+1]=mr(c,0),0===s?s=n:t[c+1]=br(t[c+1],n),c=n;l&&(t[n+1]=yr(t[n+1])),Aa(t,u,n,!0),Aa(t,u,n,!1),function(t,e,i,n,r){var o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&hi(o,e)>=0&&(i[n+1]=wr(i[n+1]))}(e,u,t,n,o),a=mr(s,c),o?e.classBindings=a:e.styleBindings=a}(r,o,e,i,a,n)}}function Na(t,e,i,n,r){var o=null,a=i.directiveEnd,s=i.directiveStylingLast;for(-1===s?s=i.directiveStart:s++;s0;){var c=t[r],u=Array.isArray(c),l=u?c[1]:c,h=null===l,d=i[r+1];d===fr&&(d=h?H:void 0);var f=h?li(d,n):l===n?d:void 0;if(u&&!Fa(f)&&(f=li(c,n)),Fa(f)&&(a=f,s))return a;var p=t[r+1];r=s?vr(p):_r(p)}if(null!==e){var g=o?e.residualClasses:e.residualStyles;null!=g&&(a=li(g,n))}return a}function Fa(t){return void 0!==t}function qa(t,e){return 0!=(t.flags&(e?16:32))}function Ha(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=Ft(),n=qt(),r=t+20,o=n.firstCreatePass?Cr(n,r,1,e,null):n.data[r],a=i[r]=function(t,e){return Tt(t)?t.createText(e):t.createTextNode(e)}(i[11],e);Kn(n,i,a,o),jt(o,!1)}function Ua(t){return Ga("",t,""),Ua}function Ga(t,e,i){var n=Ft(),r=Yo(n,t,e,i);return r!==fr&&lo(n,de(),r),Ga}function ja(t,e,i,n,r){var o=Ft(),a=Ko(o,t,e,i,n,r);return a!==fr&&lo(o,de(),a),ja}function Ya(t,e,i,n,r,o,a){var s=Ft(),c=function(t,e,i,n,r,o,a,s){var c=Uo(t,Wt(),i,r,a);return $t(3),c?e+v(i)+n+v(r)+o+v(a)+s:fr}(s,t,e,i,n,r,o,a);return c!==fr&&lo(s,de(),c),Ya}function Ka(t,e,i,n,r,o,a,s,c){var u=Ft(),l=function(t,e,i,n,r,o,a,s,c,u){var l=Go(t,Wt(),i,r,a,c);return $t(4),l?e+v(i)+n+v(r)+o+v(a)+s+v(c)+u:fr}(u,t,e,i,n,r,o,a,s,c);return l!==fr&&lo(u,de(),l),Ka}function Va(t,e,i,n,r,o,a,s,c,u,l){var h=Ft(),d=function(t,e,i,n,r,o,a,s,c,u,l,h){var d=Wt(),f=Go(t,d,i,r,a,c);return f=qo(t,d+4,l)||f,$t(5),f?e+v(i)+n+v(r)+o+v(a)+s+v(c)+u+v(l)+h:fr}(h,t,e,i,n,r,o,a,s,c,u,l);return d!==fr&&lo(h,de(),d),Va}function Ja(t,e,i){Da(ui,Oa,Yo(Ft(),t,e,i),!0)}function Qa(t,e,i){var n=Ft();return qo(n,Xt(),e)&&zr(qt(),pe(),n,t,e,n[11],i,!0),Qa}function Wa(t,e,i){var n=Ft();if(qo(n,Xt(),e)){var r=qt(),o=pe();zr(r,o,n,t,e,so(ee(r.data),o,n),i,!0)}return Wa}var Xa=void 0,$a=["en",[["a","p"],["AM","PM"],Xa],[["AM","PM"],Xa,Xa],[["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"]],Xa,[["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"]],Xa,[["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}",Xa,"{1} 'at' {0}",Xa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){var e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}],ts={};function es(t){var e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t),i=ns(e);if(i)return i;var n=e.split("-")[0];if(i=ns(n))return i;if("en"===n)return $a;throw new Error('Missing locale data for the locale "'.concat(t,'".'))}function is(t){return es(t)[rs.PluralCase]}function ns(t){return t in ts||(ts[t]=F.ng&&F.ng.common&&F.ng.common.locales&&F.ng.common.locales[t]),ts[t]}var rs=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});function os(t){var e;null==(e=t)&&function(t,e,i,n){throw new Error("ASSERTION ERROR: ".concat("Expected localeId to be defined"," [Expected=> null != ").concat(e," <=Actual]"))}(0,e),"string"==typeof t&&t.toLowerCase().replace(/_/g,"-")}function as(t,e,i,n,r){if(t=p(t),Array.isArray(t))for(var o=0;o>20;if(Eo(t)||!t.multi){var g=new ke(u,r,Wo),m=us(c,e,r?h:h+f,d);-1===m?(Be(Le(l,s),a,c),ss(a,t,e.length),e.push(c),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),i.push(g),s.push(g)):(i[m]=g,s[m]=g)}else{var v=us(c,e,h+f,d),y=us(c,e,h,h+f),_=v>=0&&i[v],b=y>=0&&i[y];if(r&&!b||!r&&!_){Be(Le(l,s),a,c);var w=function(t,e,i,n,r){var o=new ke(t,i,Wo);return o.multi=[],o.index=e,o.componentProviders=0,cs(o,r,n&&!i),o}(r?hs:ls,i.length,r,n,u);!r&&b&&(i[y].providerFactory=w),ss(a,t,e.length,0),e.push(c),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),i.push(w),s.push(w)}else ss(a,t,v>-1?v:y,cs(i[r?y:v],u,!r&&n));!r&&n&&b&&i[y].componentProviders++}}}function ss(t,e,i,n){var r=Eo(e);if(r||e.useClass){var o=(e.useClass||e).prototype.ngOnDestroy;if(o){var a=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){var s=a.indexOf(i);-1===s?a.push(i,[n,o]):a[s+1].push(n,o)}else a.push(i,o)}}}function cs(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function us(t,e,i,n){for(var r=i;r1&&void 0!==arguments[1]?arguments[1]:[];return function(i){i.providersResolver=function(i,n){return function(t,e,i){var n=qt();if(n.firstCreatePass){var r=pt(t);as(i,n.data,n.blueprint,r,!0),as(e,n.data,n.blueprint,r,!1)}}(i,n?n(t):t,e)}}}var ps=function t(){_classCallCheck(this,t)},gs=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"resolveComponentFactory",value:function(t){throw function(t){var e=Error("No component factory found for ".concat(l(t),". Did you add it to @NgModule.entryComponents?"));return e.ngComponent=t,e}(t)}}]),t}(),ms=function(){var t=function t(){_classCallCheck(this,t)};return t.NULL=new gs,t}();function vs(){}function ys(t,e){return new bs(Rt(t,e))}var _s=function(){return ys(Ut(),Ft())},bs=function(){var t=function t(e){_classCallCheck(this,t),this.nativeElement=e};return t.__NG_ELEMENT_ID__=_s,t}();function ws(t){return t instanceof bs?t.nativeElement:t}var As=function t(){_classCallCheck(this,t)},ks=function(){var t=function t(){_classCallCheck(this,t)};return t.__NG_ELEMENT_ID__=function(){return Cs()},t}(),Cs=function(){var t=Ft(),e=Pt(Ut().index,t);return function(t){return t[11]}(ut(e)?e:t)},Ts=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275prov=b({token:t,providedIn:"root",factory:function(){return null}}),t}(),Es=function t(e){_classCallCheck(this,t),this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")},Ss=new Es("12.0.5"),Is=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"supports",value:function(t){return Zo(t)}},{key:"create",value:function(t){return new xs(t)}}]),t}(),Rs=function(t,e){return e},xs=function(){function t(e){_classCallCheck(this,t),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Rs}return _createClass(t,[{key:"forEachItem",value:function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)}},{key:"forEachOperation",value:function(t){for(var e=this._itHead,i=this._removalsHead,n=0,r=null;e||i;){var o=!i||e&&e.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==i;){var o=e[i.index];if(null!==o&&n.push(St(o)),lt(o))for(var a=10;a-1&&(zn(t,i),si(e,i))}this._attachedToViewContainer=!1}Zn(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){Lr(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){to(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){eo(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(t,e,i){Jt(!0);try{eo(t,e,i)}finally{Jt(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var t;this._appRef=null,Xn(this._lView[1],t=this._lView,t[11],2,null,null)}},{key:"attachToAppRef",value:function(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}]),t}(),Gs=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this,t))._view=t,n}return _createClass(i,[{key:"detectChanges",value:function(){io(this._view)}},{key:"checkNoChanges",value:function(){!function(t){Jt(!0);try{io(t)}finally{Jt(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),i}(Us),js=function(t){return function(t,e,i){if(dt(t)&&!i){var n=Pt(t.index,e);return new Us(n,n)}return 47&t.type?new Us(e[16],e):null}(Ut(),Ft(),16==(16&t))},Ys=function(){var t=function t(){_classCallCheck(this,t)};return t.__NG_ELEMENT_ID__=js,t}(),Ks=[new Ls],Vs=new Bs([new Is]),Js=new qs(Ks),Qs=function(){return $s(Ut(),Ft())},Ws=function(){var t=function t(){_classCallCheck(this,t)};return t.__NG_ELEMENT_ID__=Qs,t}(),Xs=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this))._declarationLView=t,o._declarationTContainer=n,o.elementRef=r,o}return _createClass(i,[{key:"createEmbeddedView",value:function(t){var e=this._declarationTContainer.tViews,i=kr(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];var n=this._declarationLView[19];return null!==n&&(i[19]=n.createEmbeddedView(e)),Er(e,i,t),new Us(i)}}]),i}(Ws);function $s(t,e){return 4&t.type?new Xs(e,t,ys(t,e)):null}var tc=function t(){_classCallCheck(this,t)},ec=function t(){_classCallCheck(this,t)},ic=function(){return sc(Ut(),Ft())},nc=function(){var t=function t(){_classCallCheck(this,t)};return t.__NG_ELEMENT_ID__=ic,t}(),rc=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this))._lContainer=t,o._hostTNode=n,o._hostLView=r,o}return _createClass(i,[{key:"element",get:function(){return ys(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new Qe(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var t=Ze(this._hostTNode,this._hostLView);if(Re(t)){var e=Oe(t,this._hostLView),i=xe(t);return new Qe(e[1].data[i+8],e)}return new Qe(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(t){var e=oc(this._lContainer);return null!==e&&e[t]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(t,e,i){var n=t.createEmbeddedView(e||{});return this.insert(n,i),n}},{key:"createComponent",value:function(t,e,i,n,r){var o=i||this.parentInjector;if(!r&&null==t.ngModule&&o){var a=o.get(tc,null);a&&(r=a)}var s=t.create(o,n,void 0,r);return this.insert(s.hostView,e),s}},{key:"insert",value:function(t,e){var n=t._lView,r=n[1];if(lt(n[3])){var o=this.indexOf(t);if(-1!==o)this.detach(o);else{var a=n[3],s=new i(a,a[6],a[3]);s.detach(s.indexOf(t))}}var c=this._adjustIndex(e),u=this._lContainer;!function(t,e,i,n){var r=10+n,o=i.length;n>0&&(i[r-1][4]=e),n1&&void 0!==arguments[1]?arguments[1]:0;return null==t?this.length+e:t}}]),i}(nc);function oc(t){return t[8]}function ac(t){return t[8]||(t[8]=[])}function sc(t,e){var i,n=e[t.index];if(lt(n))i=n;else{var r;if(8&t.type)r=St(n);else{var o=e[11];r=o.createComment("");var a=Rt(t,e);qn(o,Gn(o,a),r,function(t,e){return Tt(t)?t.nextSibling(e):e.nextSibling}(o,a),!1)}e[t.index]=i=Jr(n,e,r,t),$r(e,i)}return new rc(i,t,e)}var cc={},uc=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this)).ngModule=t,n}return _createClass(i,[{key:"resolveComponentFactory",value:function(t){var e=st(t);return new dc(e,this.ngModule)}}]),i}(ms);function lc(t){var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push({propName:t[i],templateName:i});return e}var hc=new ei("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return kn}}),dc=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this)).componentDef=t,r.ngModule=n,r.componentType=t.type,r.selector=t.selectors.map(dr).join(","),r.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],r.isBoundToModule=!!n,r}return _createClass(i,[{key:"inputs",get:function(){return lc(this.componentDef.inputs)}},{key:"outputs",get:function(){return lc(this.componentDef.outputs)}},{key:"create",value:function(t,e,i,n){var r,o,a=(n=n||this.ngModule)?function(t,e){return{get:function(i,n,r){var o=t.get(i,cc,r);return o!==cc||n===cc?o:e.get(i,n,r)}}}(t,n.injector):t,s=a.get(As,Et),c=a.get(Ts,null),u=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",h=i?function(t,e,i){if(Tt(t))return t.selectRootElement(e,i===L.ShadowDom);var n="string"==typeof e?t.querySelector(e):e;return n.textContent="",n}(u,i,this.componentDef.encapsulation):Ln(s.createRenderer(null,this.componentDef),l,function(t){var e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),d=this.componentDef.onPush?576:528,f={components:[],scheduler:kn,clean:ro,playerHandler:null,flags:0},p=Mr(0,null,null,1,0,null,null,null,null,null),g=kr(null,p,f,d,null,null,s,u,c,a);ae(g);try{var m=function(t,e,i,n,r,o){var a=i[1];i[20]=t;var s=Cr(a,20,2,"#host",null),c=s.mergedAttrs=e.hostAttrs;null!==c&&(ho(s,c,!0),null!==t&&(Ce(r,t,c),null!==s.classes&&er(r,t,s.classes),null!==s.styles&&tr(r,t,s.styles)));var u=n.createRenderer(t,e),l=kr(i,Dr(e),null,e.onPush?64:16,i[20],s,n,u,null,null);return a.firstCreatePass&&(Be(Le(s,i),a,e.type),qr(a,s),Ur(s,i.length,1)),$r(i,l),i[20]=l}(h,this.componentDef,g,s,u);if(h)if(i)Ce(u,h,["ng-version",Ss.full]);else{var v=function(t){for(var e=[],i=[],n=1,r=2;n0&&er(u,h,_.join(" "))}if(o=xt(p,20),void 0!==e)for(var b=o.projection=[],w=0;w1&&void 0!==arguments[1]?arguments[1]:Io.THROW_IF_NOT_FOUND,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:x.Default;return t===Io||t===tc||t===po?this:this._r3Injector.get(t,e,i)}},{key:"destroy",value:function(){var t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(function(t){return t()}),this.destroyCbs=null}},{key:"onDestroy",value:function(t){this.destroyCbs.push(t)}}]),i}(tc),mc=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n,r,o;return _classCallCheck(this,i),(n=e.call(this)).moduleType=t,null!==ct(t)&&(r=t,o=new Set,function t(e){var i=ct(e,!0),n=i.id;null!==n&&(function(t,e,i){if(e&&e!==i)throw new Error("Duplicate module registered for ".concat(t," - ").concat(l(e)," vs ").concat(l(e.name)))}(n,pc.get(n),e),pc.set(n,e));var r,a=_createForOfIteratorHelper(Sn(i.imports));try{for(a.s();!(r=a.n()).done;){var s=r.value;o.has(s)||(o.add(s),t(s))}}catch(c){a.e(c)}finally{a.f()}}(r)),n}return _createClass(i,[{key:"create",value:function(t){return new gc(this.moduleType,t)}}]),i}(ec);function vc(t,e,i){var n=Qt()+t,r=Ft();return r[n]===fr?Fo(r,n,i?e.call(i):e()):function(t,e){return t[e]}(r,n)}function yc(t,e,i,n){return Ac(Ft(),Qt(),t,e,i,n)}function _c(t,e,i,n,r){return kc(Ft(),Qt(),t,e,i,n,r)}function bc(t,e,i,n,r,o){return Cc(Ft(),Qt(),t,e,i,n,r,o)}function wc(t,e){var i=t[e];return i===fr?void 0:i}function Ac(t,e,i,n,r,o){var a=e+i;return qo(t,a,r)?Fo(t,a+1,o?n.call(o,r):n(r)):wc(t,a+1)}function kc(t,e,i,n,r,o,a){var s=e+i;return Ho(t,s,r,o)?Fo(t,s+2,a?n.call(a,r,o):n(r,o)):wc(t,s+2)}function Cc(t,e,i,n,r,o,a,s){var c=e+i;return Uo(t,c,r,o,a)?Fo(t,c+3,s?n.call(s,r,o,a):n(r,o,a)):wc(t,c+3)}function Tc(t,e){var i,n=qt(),r=t+20;n.firstCreatePass?(i=function(t,e){if(e)for(var i=e.length-1;i>=0;i--){var n=e[i];if(t===n.name)return n}throw new m("302","The pipe '".concat(t,"' could not be found!"))}(e,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];var o=i.factory||(i.factory=gt(i.type)),a=O(Wo);try{var s=De(!1),c=o();return De(s),function(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}(n,Ft(),r,c),c}finally{O(a)}}function Ec(t,e,i){var n=t+20,r=Ft(),o=Ot(r,n);return xc(r,Rc(r,n)?Ac(r,Qt(),e,o.transform,i,o):o.transform(i))}function Sc(t,e,i,n){var r=t+20,o=Ft(),a=Ot(o,r);return xc(o,Rc(o,r)?kc(o,Qt(),e,a.transform,i,n,a):a.transform(i,n))}function Ic(t,e,i,n,r){var o=t+20,a=Ft(),s=Ot(a,o);return xc(a,Rc(a,o)?Cc(a,Qt(),e,s.transform,i,n,r,s):s.transform(i,n,r))}function Rc(t,e){return t[1].data[e].pure}function xc(t,e){return zo.isWrapped(e)&&(e=zo.unwrap(e),t[Wt()]=fr),e}function Oc(t){return function(e){setTimeout(t,void 0,e)}}var Pc=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return _classCallCheck(this,i),(t=e.call(this)).__isAsync=n,t}return _createClass(i,[{key:"emit",value:function(t){_get(_getPrototypeOf(i.prototype),"next",this).call(this,t)}},{key:"subscribe",value:function(t,e,n){var o,a,s,c=t,u=e||function(){return null},l=n;if(t&&"object"==typeof t){var h=t;c=null===(o=h.next)||void 0===o?void 0:o.bind(h),u=null===(a=h.error)||void 0===a?void 0:a.bind(h),l=null===(s=h.complete)||void 0===s?void 0:s.bind(h)}this.__isAsync&&(u=Oc(u),c&&(c=Oc(c)),l&&(l=Oc(l)));var d=_get(_getPrototypeOf(i.prototype),"subscribe",this).call(this,{next:c,error:u,complete:l});return t instanceof r.w&&t.add(d),d}}]),i}(n.xQ);function Dc(){return this._results[No()]()}var Mc=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];_classCallCheck(this,t),this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var i=No(),n=t.prototype;n[i]||(n[i]=Dc)}return _createClass(t,[{key:"changes",get:function(){return this._changes||(this._changes=new Pc)}},{key:"get",value:function(t){return this._results[t]}},{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,e){return this._results.reduce(t,e)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t,e){this.dirty=!1;var i=ri(t);(this._changesDetected=!function(t,e,i){if(t.length!==e.length)return!1;for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,t),this.queries=e}return _createClass(t,[{key:"createEmbeddedView",value:function(e){var i=e.queries;if(null!==i){for(var n=null!==e.contentQueries?e.contentQueries[0]:i.length,r=[],o=0;o2&&void 0!==arguments[2]?arguments[2]:null;_classCallCheck(this,t),this.predicate=e,this.flags=i,this.read=n},Zc=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,t),this.queries=e}return _createClass(t,[{key:"elementStart",value:function(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:-1;_classCallCheck(this,t),this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=i}return _createClass(t,[{key:"elementStart",value:function(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,e){this.elementStart(t,e)}},{key:"embeddedTView",value:function(e,i){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,i),new t(this.metadata)):null}},{key:"isApplyingToNode",value:function(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var e=this._declarationNodeIndex,i=t.parent;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,e){var i=this.metadata.predicate;if(Array.isArray(i))for(var n=0;n0)n.push(a[s/2]);else{for(var u=o[s+1],l=e[-c],h=10;h0&&(r=setTimeout(function(){n._callbacks=n._callbacks.filter(function(t){return t.timeoutId!==r}),t(n._didWork,n.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:i})}},{key:"whenStable",value:function(t,e,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,e,i),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(t,e,i){return[]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(yi(_u))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t}(),Su=function(){var t=function(){function t(){_classCallCheck(this,t),this._applications=new Map,xu.addToWindow(this)}return _createClass(t,[{key:"registerApplication",value:function(t,e){this._applications.set(t,e)}},{key:"unregisterApplication",value:function(t){this._applications.delete(t)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(t){return this._applications.get(t)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return xu.findTestabilityInTree(this,t,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t}();function Iu(t){xu=t}var Ru,xu=new(function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,e,i){return null}}]),t}()),Ou=!0,Pu=!1;function Du(){return Pu=!0,Ou}function Mu(){if(Pu)throw new Error("Cannot enable prod mode after platform setup.");Ou=!1}var Lu=new ei("AllowMultipleToken"),Nu=function t(e,i){_classCallCheck(this,t),this.name=e,this.token=i};function zu(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n="Platform: ".concat(e),r=new ei(n);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Zu();if(!o||o.injector.get(Lu,!1))if(t)t(i.concat(e).concat({provide:r,useValue:!0}));else{var a=i.concat(e).concat({provide:r,useValue:!0},{provide:mo,useValue:"platform"});!function(t){if(Ru&&!Ru.destroyed&&!Ru.injector.get(Lu,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ru=t.get(Bu);var e=t.get(nu,null);e&&e.forEach(function(t){return t()})}(Io.create({providers:a,name:n}))}return function(t){var e=Zu();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(r)}}function Zu(){return Ru&&!Ru.destroyed?Ru:null}var Bu=function(){var t=function(){function t(e){_classCallCheck(this,t),this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return _createClass(t,[{key:"bootstrapModuleFactory",value:function(t,e){var i,n,r=this,o=(i=e?e.ngZone:void 0,n={ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1},"noop"===i?new Tu:("zone.js"===i?void 0:i)||new _u({enableLongStackTrace:Du(),shouldCoalesceEventChangeDetection:!!(null==n?void 0:n.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==n?void 0:n.ngZoneRunCoalescing)})),a=[{provide:_u,useValue:o}];return o.run(function(){var e=Io.create({providers:a,parent:r.injector,name:t.moduleType.name}),i=t.create(e),n=i.injector.get(An,null);if(!n)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.runOutsideAngular(function(){var t=o.onError.subscribe({next:function(t){n.handleError(t)}});i.onDestroy(function(){Hu(r._modules,i),t.unsubscribe()})}),function(t,e,n){try{var o=((a=i.injector.get($c)).runInitializers(),a.donePromise.then(function(){return os(i.injector.get(su,"en-US")||"en-US"),r._moduleDoBootstrap(i),i}));return sa(o)?o.catch(function(i){throw e.runOutsideAngular(function(){return t.handleError(i)}),i}):o}catch(s){throw e.runOutsideAngular(function(){return t.handleError(s)}),s}var a}(n,o)})}},{key:"bootstrapModule",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Fu({},i);return function(t,e,i){var n=new mc(i);return Promise.resolve(n)}(0,0,t).then(function(t){return e.bootstrapModuleFactory(t,n)})}},{key:"_moduleDoBootstrap",value:function(t){var e=t.injector.get(qu);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module ".concat(l(t.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));t.instance.ngDoBootstrap(e)}this._modules.push(t)}},{key:"onDestroy",value:function(t){this._destroyListeners.push(t)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),t}();return t.\u0275fac=function(e){return new(e||t)(yi(Io))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t}();function Fu(t,e){return Array.isArray(e)?e.reduce(Fu,t):Object.assign(Object.assign({},t),e)}var qu=function(){var t=function(){function t(e,i,n,r,c){var u=this;_classCallCheck(this,t),this._zone=e,this._injector=i,this._exceptionHandler=n,this._componentFactoryResolver=r,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){u._zone.run(function(){u.tick()})}});var l=new o.y(function(t){u._stable=u._zone.isStable&&!u._zone.hasPendingMacrotasks&&!u._zone.hasPendingMicrotasks,u._zone.runOutsideAngular(function(){t.next(u._stable),t.complete()})}),h=new o.y(function(t){var e;u._zone.runOutsideAngular(function(){e=u._zone.onStable.subscribe(function(){_u.assertNotInAngularZone(),yu(function(){u._stable||u._zone.hasPendingMacrotasks||u._zone.hasPendingMicrotasks||(u._stable=!0,t.next(!0))})})});var i=u._zone.onUnstable.subscribe(function(){_u.assertInAngularZone(),u._stable&&(u._stable=!1,u._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),i.unsubscribe()}});this.isStable=(0,a.T)(l,h.pipe((0,s.B)()))}return _createClass(t,[{key:"bootstrap",value:function(t,e){var i,n=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");i=t instanceof ps?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(i.componentType);var r=i.isBoundToModule?void 0:this._injector.get(tc),o=i.create(Io.NULL,[],e||i.selector,r),a=o.location.nativeElement,s=o.injector.get(Eu,null),c=s&&o.injector.get(Su);return s&&c&&c.registerApplication(a,s),o.onDestroy(function(){n.detachView(o.hostView),Hu(n.components,o),c&&c.unregisterApplication(a)}),this._loadComponent(o),o}},{key:"tick",value:function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var e,i=_createForOfIteratorHelper(this._views);try{for(i.s();!(e=i.n()).done;){e.value.detectChanges()}}catch(n){i.e(n)}finally{i.f()}}catch(r){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(r)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(t){var e=t;this._views.push(e),e.attachToAppRef(this)}},{key:"detachView",value:function(t){var e=t;Hu(this._views,e),e.detachFromAppRef()}},{key:"_loadComponent",value:function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(ou,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(t){return t.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),t}();return t.\u0275fac=function(e){return new(e||t)(yi(_u),yi(Io),yi(An),yi(ms),yi($c))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t}();function Hu(t,e){var i=t.indexOf(e);i>-1&&t.splice(i,1)}var Uu=function t(){_classCallCheck(this,t)},Gu=function t(){_classCallCheck(this,t)},ju={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Yu=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this._compiler=e,this._config=i||ju}return _createClass(t,[{key:"load",value:function(t){return this.loadAndCompile(t)}},{key:"loadAndCompile",value:function(t){var e=this,n=_slicedToArray(t.split("#"),2),r=n[0],o=n[1];return void 0===o&&(o="default"),i(27622)(r).then(function(t){return t[o]}).then(function(t){return Ku(t,r,o)}).then(function(t){return e._compiler.compileModuleAsync(t)})}},{key:"loadFactory",value:function(t){var e=_slicedToArray(t.split("#"),2),n=e[0],r=e[1],o="NgFactory";return void 0===r&&(r="default",o=""),i(27622)(this._config.factoryPathPrefix+n+this._config.factoryPathSuffix).then(function(t){return t[r+o]}).then(function(t){return Ku(t,n,r)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(yi(mu),yi(Gu,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t}();function Ku(t,e,i){if(!t)throw new Error("Cannot find '".concat(i,"' in '").concat(e,"'"));return t}var Vu=function(t){return null},Ju=zu(null,"core",[{provide:ru,useValue:"unknown"},{provide:Bu,deps:[Io]},{provide:Su,deps:[]},{provide:au,deps:[]}]),Qu=[{provide:qu,useClass:qu,deps:[_u,Io,An,ms,$c]},{provide:hc,deps:[_u],useFactory:function(t){var e=[];return t.onStable.subscribe(function(){for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:$c,useClass:$c,deps:[[new Ti,Xc]]},{provide:mu,useClass:mu,deps:[]},eu,{provide:Bs,useFactory:function(){return Vs},deps:[]},{provide:qs,useFactory:function(){return Js},deps:[]},{provide:su,useFactory:function(t){return os(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new Ci(su),new Ti,new Ei]]},{provide:cu,useValue:"USD"}],Wu=function(){var t=function t(e){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)(yi(qu))},t.\u0275mod=it({type:t}),t.\u0275inj=w({providers:Qu}),t}()},16073:function(t,e,i){"use strict";i.d(e,{Zs:function(){return zt},gN:function(){return z},Fj:function(){return f},qu:function(){return Ut},NI:function(){return at},oH:function(){return wt},u:function(){return Tt},sg:function(){return kt},u5:function(){return qt},Cf:function(){return m},JU:function(){return l},a5:function(){return Z},JJ:function(){return F},JL:function(){return q},F:function(){return ht},On:function(){return pt},YN:function(){return Rt},wV:function(){return vt},c5:function(){return Bt},UX:function(){return Ht},Q7:function(){return Nt},EJ:function(){return It},kI:function(){return _},_Y:function(){return gt},Kr:function(){return Dt}});var n=i(31572),r=i(61511),o=i(19764),a=i(3148),s=i(79996),c=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this._renderer=e,this._elementRef=i,this.onChange=function(t){},this.onTouched=function(){}}return _createClass(t,[{key:"setProperty",value:function(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"registerOnChange",value:function(t){this.onChange=t}},{key:"setDisabledState",value:function(t){this.setProperty("disabled",t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Qsj),n.Y36(n.SBq))},t.\u0275dir=n.lG2({type:t}),t}(),u=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(c);return e.\u0275fac=function(i){return(t||(t=n.n5z(e)))(i||e)},e.\u0275dir=n.lG2({type:e,features:[n.qOj]}),e}(),l=new n.OlP("NgValueAccessor"),h={provide:l,useExisting:(0,n.Gpc)(function(){return f}),multi:!0},d=new n.OlP("CompositionEventMode"),f=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,o){var a,s;return _classCallCheck(this,i),(a=e.call(this,t,n))._compositionMode=o,a._composing=!1,null==a._compositionMode&&(a._compositionMode=(s=(0,r.q)()?(0,r.q)().getUserAgent():"",!/android (\d+)/.test(s.toLowerCase()))),a}return _createClass(i,[{key:"writeValue",value:function(t){this.setProperty("value",null==t?"":t)}},{key:"_handleInput",value:function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}]),i}(c);return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(d,8))},t.\u0275dir=n.lG2({type:t,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(t,e){1&t&&n.NdJ("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[n._Bn([h]),n.qOj]}),t}();function p(t){return null==t||0===t.length}function g(t){return null!=t&&"number"==typeof t.length}var m=new n.OlP("NgValidators"),v=new n.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])?)*$/,_=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"min",value:function(t){return function(t){return function(e){if(p(e.value)||p(t))return null;var i=parseFloat(e.value);return!isNaN(i)&&it?{max:{max:t,actual:e.value}}:null}}(t)}},{key:"required",value:function(t){return b(t)}},{key:"requiredTrue",value:function(t){return w(t)}},{key:"email",value:function(t){return function(t){return p(t.value)||y.test(t.value)?null:{email:!0}}(t)}},{key:"minLength",value:function(t){return function(t){return function(e){return p(e.value)||!g(e.value)?null:e.value.lengtht?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}}(t)}},{key:"pattern",value:function(t){return A(t)}},{key:"nullValidator",value:function(t){return null}},{key:"compose",value:function(t){return R(t)}},{key:"composeAsync",value:function(t){return O(t)}}]),t}();function b(t){return p(t.value)?{required:!0}:null}function w(t){return!0===t.value?null:{required:!0}}function A(t){return t?("string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),function(t){if(p(t.value))return null;var n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}):k;var e,i}function k(t){return null}function C(t){return null!=t}function T(t){var e=(0,n.QGY)(t)?(0,o.D)(t):t;return(0,n.CqO)(e),e}function E(t){var e={};return t.forEach(function(t){e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function S(t,e){return e.map(function(e){return e(t)})}function I(t){return t.map(function(t){return function(t){return!t.validate}(t)?t:function(e){return t.validate(e)}})}function R(t){if(!t)return null;var e=t.filter(C);return 0==e.length?null:function(t){return E(S(t,e))}}function x(t){return null!=t?R(I(t)):null}function O(t){if(!t)return null;var e=t.filter(C);return 0==e.length?null:function(t){var i=S(t,e).map(T);return(0,a.D)(i).pipe((0,s.U)(E))}}function P(t){return null!=t?O(I(t)):null}function D(t,e){return null===t?[e]:Array.isArray(t)?[].concat(_toConsumableArray(t),[e]):[t,e]}function M(t){return t._rawValidators}function L(t){return t._rawAsyncValidators}var N=function(){var t=function(){function t(){_classCallCheck(this,t),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return _createClass(t,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(t){this._rawValidators=t||[],this._composedValidatorFn=x(this._rawValidators)}},{key:"_setAsyncValidators",value:function(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=P(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(t){this._onDestroyCallbacks.push(t)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(t){return t()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(t){this.control&&this.control.reset(t)}},{key:"hasError",value:function(t,e){return!!this.control&&this.control.hasError(t,e)}},{key:"getError",value:function(t,e){return this.control?this.control.getError(t,e):null}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t}),t}(),z=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),i}(N);return e.\u0275fac=function(i){return(t||(t=n.n5z(e)))(i||e)},e.\u0275dir=n.lG2({type:e,features:[n.qOj]}),e}(),Z=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.apply(this,arguments))._parent=null,t.name=null,t.valueAccessor=null,t}return i}(N),B=function(){function t(e){_classCallCheck(this,t),this._cd=e}return _createClass(t,[{key:"is",value:function(t){var e,i;return!!(null===(i=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===i?void 0:i[t])}}]),t}(),F=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){return _classCallCheck(this,i),e.call(this,t)}return i}(B);return t.\u0275fac=function(e){return new(e||t)(n.Y36(Z,2))},t.\u0275dir=n.lG2({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&n.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[n.qOj]}),t}(),q=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){return _classCallCheck(this,i),e.call(this,t)}return i}(B);return t.\u0275fac=function(e){return new(e||t)(n.Y36(z,10))},t.\u0275dir=n.lG2({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&n.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[n.qOj]}),t}();function H(t,e){return[].concat(_toConsumableArray(e.path),[t])}function U(t,e){Y(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(function(i){t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&V(t,e)})}(t,e),function(t,e){var i=function(t,i){e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)};t.registerOnChange(i),e._registerOnDestroy(function(){t._unregisterOnChange(i)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&V(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){var i=function(t){e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(i),e._registerOnDestroy(function(){t._unregisterOnDisabledChange(i)})}}(t,e)}function G(t,e){var i=function(){};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),K(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(function(){}))}function j(t,e){t.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Y(t,e){var i=M(t);null!==e.validator?t.setValidators(D(i,e.validator)):"function"==typeof i&&t.setValidators([i]);var n=L(t);null!==e.asyncValidator?t.setAsyncValidators(D(n,e.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);var r=function(){return t.updateValueAndValidity()};j(e._rawValidators,r),j(e._rawAsyncValidators,r)}function K(t,e){var i=!1;if(null!==t){if(null!==e.validator){var n=M(t);if(Array.isArray(n)&&n.length>0){var r=n.filter(function(t){return t!==e.validator});r.length!==n.length&&(i=!0,t.setValidators(r))}}if(null!==e.asyncValidator){var o=L(t);if(Array.isArray(o)&&o.length>0){var a=o.filter(function(t){return t!==e.asyncValidator});a.length!==o.length&&(i=!0,t.setAsyncValidators(a))}}}var s=function(){};return j(e._rawValidators,s),j(e._rawAsyncValidators,s),i}function V(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function J(t,e){Y(t,e)}function Q(t,e){if(!t.hasOwnProperty("model"))return!1;var i=t.model;return!!i.isFirstChange()||!Object.is(e,i.currentValue)}function W(t,e){t._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function X(t,e){return e?(Array.isArray(e),e.forEach(function(t){t.constructor===f?i=t:Object.getPrototypeOf(t.constructor)===u?n=t:r=t}),r||n||i||null):null;var i,n,r}function $(t,e){var i=t.indexOf(e);i>-1&&t.splice(i,1)}function tt(t){return(rt(t)?t.validators:t)||null}function et(t){return Array.isArray(t)?x(t):t||null}function it(t,e){return(rt(e)?e.asyncValidators:t)||null}function nt(t){return Array.isArray(t)?P(t):t||null}function rt(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var ot=function(){function t(e,i){_classCallCheck(this,t),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=i,this._composedValidatorFn=et(this._rawValidators),this._composedAsyncValidatorFn=nt(this._rawAsyncValidators)}return _createClass(t,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(t){this._rawValidators=t,this._composedValidatorFn=et(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=nt(t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(t){return t.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(function(e){e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(function(t){return t(!0)})}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(function(e){e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(function(t){return t(!1)})}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var e=this;if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;var i=T(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(function(i){e._hasOwnPendingAsyncValidator=!1,e.setErrors(i,{emitEvent:t})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}},{key:"get",value:function(t){return function(t,e,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;var n=t;return e.forEach(function(t){n=n instanceof st?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof ct&&n.at(t)||null}),n}(this,t)}},{key:"getError",value:function(t,e){var i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}},{key:"hasError",value:function(t,e){return!!this.getError(t,e)}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new n.vpe,this.statusChanges=new n.vpe}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls(function(e){return e.status===t})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(t){return t.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(t){return t.touched})}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){rt(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),t}(),at=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,i),(t=e.call(this,tt(r),it(o,r)))._onChange=[],t._applyFormState(n),t._setUpdateStrategy(r),t._initObservables(),t.updateValueAndValidity({onlySelf:!0,emitEvent:!!t.asyncValidator}),t}return _createClass(i,[{key:"setValue",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=t,this._onChange.length&&!1!==i.emitModelToViewChange&&this._onChange.forEach(function(t){return t(e.value,!1!==i.emitViewToModelChange)}),this.updateValueAndValidity(i)}},{key:"patchValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(t,e)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(t){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(t){this._onChange.push(t)}},{key:"_unregisterOnChange",value:function(t){$(this._onChange,t)}},{key:"registerOnDisabledChange",value:function(t){this._onDisabledChange.push(t)}},{key:"_unregisterOnDisabledChange",value:function(t){$(this._onDisabledChange,t)}},{key:"_forEachChild",value:function(t){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}]),i}(ot),st=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this,tt(n),it(r,n))).controls=t,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return _createClass(i,[{key:"registerControl",value:function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}},{key:"addControl",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}},{key:"setValue",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),Object.keys(t).forEach(function(n){e._throwIfControlMissing(n),e.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}},{key:"patchValue",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=t&&(Object.keys(t).forEach(function(n){e.controls[n]&&e.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(i,n){i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(t,e,i){return t[i]=e instanceof at?e.value:e.getRawValue(),t})}},{key:"_syncPendingControls",value:function(){var t=this._reduceChildren(!1,function(t,e){return!!e._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error("Cannot find form control with name: ".concat(t,"."))}},{key:"_forEachChild",value:function(t){var e=this;Object.keys(this.controls).forEach(function(i){var n=e.controls[i];n&&t(n,i)})}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(t){for(var e=0,i=Object.keys(this.controls);e0||this.disabled}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild(function(e,i){if(void 0===t[i])throw new Error("Must supply a value for form control with name: '".concat(i,"'."))})}}]),i}(ot),ct=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this,tt(n),it(r,n))).controls=t,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return _createClass(i,[{key:"at",value:function(t){return this.controls[t]}},{key:"push",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}},{key:"removeAt",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}},{key:"setControl",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),t.forEach(function(t,n){e._throwIfControlMissing(n),e.at(n).setValue(t,{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}},{key:"patchValue",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=t&&(t.forEach(function(t,n){e.at(n)&&e.at(n).patchValue(t,{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(i,n){i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this.controls.map(function(t){return t instanceof at?t.value:t.getRawValue()})}},{key:"clear",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(t){return t._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}},{key:"_syncPendingControls",value:function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index ".concat(t))}},{key:"_forEachChild",value:function(t){this.controls.forEach(function(e,i){t(e,i)})}},{key:"_updateValue",value:function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})}},{key:"_anyControls",value:function(t){return this.controls.some(function(e){return e.enabled&&t(e)})}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild(function(e,i){if(void 0===t[i])throw new Error("Must supply a value for form control at index: ".concat(i,"."))})}},{key:"_allControlsDisabled",value:function(){var t,e=_createForOfIteratorHelper(this.controls);try{for(e.s();!(t=e.n()).done;){if(t.value.enabled)return!1}}catch(i){e.e(i)}finally{e.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}]),i}(ot),ut={provide:z,useExisting:(0,n.Gpc)(function(){return ht})},lt=Promise.resolve(null),ht=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,r){var o;return _classCallCheck(this,i),(o=e.call(this)).submitted=!1,o._directives=[],o.ngSubmit=new n.vpe,o.form=new st({},x(t),P(r)),o}return _createClass(i,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(t){var e=this;lt.then(function(){var i=e._findContainer(t.path);t.control=i.registerControl(t.name,t.control),U(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){var e=this;lt.then(function(){var i=e._findContainer(t.path);i&&i.removeControl(t.name),$(e._directives,t)})}},{key:"addFormGroup",value:function(t){var e=this;lt.then(function(){var i=e._findContainer(t.path),n=new st({});J(n,t),i.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(t){var e=this;lt.then(function(){var i=e._findContainer(t.path);i&&i.removeControl(t.name)})}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){var i=this;lt.then(function(){i.form.get(t.path).setValue(e)})}},{key:"setValue",value:function(t){this.control.setValue(t)}},{key:"onSubmit",value:function(t){return this.submitted=!0,W(this.form,this._directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(t){this.form.reset(t),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(t){return t.pop(),t.length?this.form.get(t):this.form}}]),i}(z);return t.\u0275fac=function(e){return new(e||t)(n.Y36(m,10),n.Y36(v,10))},t.\u0275dir=n.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&n.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n._Bn([ut]),n.qOj]}),t}(),dt={provide:Z,useExisting:(0,n.Gpc)(function(){return pt})},ft=Promise.resolve(null),pt=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,r,o,a){var s;return _classCallCheck(this,i),(s=e.call(this)).control=new at,s._registered=!1,s.update=new n.vpe,s._parent=t,s._setValidators(r),s._setAsyncValidators(o),s.valueAccessor=X(0,a),s}return _createClass(i,[{key:"ngOnChanges",value:function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),Q(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?H(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){U(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(t){var e=this;ft.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(t){var e=this,i=t.isDisabled.currentValue,n=""===i||i&&"false"!==i;ft.then(function(){n&&!e.control.disabled?e.control.disable():!n&&e.control.disabled&&e.control.enable()})}}]),i}(Z);return t.\u0275fac=function(e){return new(e||t)(n.Y36(z,9),n.Y36(m,10),n.Y36(v,10),n.Y36(l,10))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[n._Bn([dt]),n.qOj,n.TTD]}),t}(),gt=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t}(),mt={provide:l,useExisting:(0,n.Gpc)(function(){return vt}),multi:!0},vt=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"writeValue",value:function(t){this.setProperty("value",null==t?"":t)}},{key:"registerOnChange",value:function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}}}]),i}(u);return e.\u0275fac=function(i){return(t||(t=n.n5z(e)))(i||e)},e.\u0275dir=n.lG2({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&n.NdJ("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[n._Bn([mt]),n.qOj]}),e}(),yt=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t}(),_t=new n.OlP("NgModelWithFormControlWarning"),bt={provide:Z,useExisting:(0,n.Gpc)(function(){return wt})},wt=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,r,o,a){var s;return _classCallCheck(this,i),(s=e.call(this))._ngModelWarningConfig=a,s.update=new n.vpe,s._ngModelWarningSent=!1,s._setValidators(t),s._setAsyncValidators(r),s.valueAccessor=X(0,o),s}return _createClass(i,[{key:"isDisabled",set:function(t){}},{key:"ngOnChanges",value:function(t){if(this._isControlChanged(t)){var e=t.form.previousValue;e&&G(e,this,!1),U(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Q(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&G(this.form,this,!1)}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_isControlChanged",value:function(t){return t.hasOwnProperty("form")}}]),i}(Z);return t.\u0275fac=function(e){return new(e||t)(n.Y36(m,10),n.Y36(v,10),n.Y36(l,10),n.Y36(_t,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[n._Bn([bt]),n.qOj,n.TTD]}),t._ngModelWarningSentOnce=!1,t}(),At={provide:z,useExisting:(0,n.Gpc)(function(){return kt})},kt=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,r){var o;return _classCallCheck(this,i),(o=e.call(this)).validators=t,o.asyncValidators=r,o.submitted=!1,o._onCollectionChange=function(){return o._updateDomValue()},o.directives=[],o.form=null,o.ngSubmit=new n.vpe,o._setValidators(t),o._setAsyncValidators(r),o}return _createClass(i,[{key:"ngOnChanges",value:function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(K(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(t){var e=this.form.get(t.path);return U(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){G(t.control||null,t,!1),$(this.directives,t)}},{key:"addFormGroup",value:function(t){this._setUpFormContainer(t)}},{key:"removeFormGroup",value:function(t){this._cleanUpFormContainer(t)}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"addFormArray",value:function(t){this._setUpFormContainer(t)}},{key:"removeFormArray",value:function(t){this._cleanUpFormContainer(t)}},{key:"getFormArray",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){this.form.get(t.path).setValue(e)}},{key:"onSubmit",value:function(t){return this.submitted=!0,W(this.form,this.directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(t){this.form.reset(t),this.submitted=!1}},{key:"_updateDomValue",value:function(){var t=this;this.directives.forEach(function(e){var i=e.control,n=t.form.get(e.path);i!==n&&(G(i||null,e),n instanceof at&&(U(n,e),e.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(t){var e=this.form.get(t.path);J(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(t){if(this.form){var e=this.form.get(t.path);e&&function(t,e){return K(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){Y(this.form,this),this._oldForm&&K(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),i}(z);return t.\u0275fac=function(e){return new(e||t)(n.Y36(m,10),n.Y36(v,10))},t.\u0275dir=n.lG2({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&n.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n._Bn([At]),n.qOj,n.TTD]}),t}(),Ct={provide:Z,useExisting:(0,n.Gpc)(function(){return Tt})},Tt=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,r,o,a,s){var c;return _classCallCheck(this,i),(c=e.call(this))._ngModelWarningConfig=s,c._added=!1,c.update=new n.vpe,c._ngModelWarningSent=!1,c._parent=t,c._setValidators(r),c._setAsyncValidators(o),c.valueAccessor=X(0,a),c}return _createClass(i,[{key:"isDisabled",set:function(t){}},{key:"ngOnChanges",value:function(t){this._added||this._setUpControl(),Q(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"path",get:function(){return H(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"_checkParentType",value:function(){}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}]),i}(Z);return t.\u0275fac=function(e){return new(e||t)(n.Y36(z,13),n.Y36(m,10),n.Y36(v,10),n.Y36(l,10),n.Y36(_t,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[n._Bn([Ct]),n.qOj,n.TTD]}),t._ngModelWarningSentOnce=!1,t}(),Et={provide:l,useExisting:(0,n.Gpc)(function(){return It}),multi:!0};function St(t,e){return null==t?"".concat(e):(e&&"object"==typeof e&&(e="Object"),"".concat(t,": ").concat(e).slice(0,50))}var It=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.apply(this,arguments))._optionMap=new Map,t._idCounter=0,t._compareWith=Object.is,t}return _createClass(i,[{key:"compareWith",set:function(t){this._compareWith=t}},{key:"writeValue",value:function(t){this.value=t;var e=this._getOptionId(t);null==e&&this.setProperty("selectedIndex",-1);var i=St(e,t);this.setProperty("value",i)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(i){e.value=e._getOptionValue(i),t(e.value)}}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(t){for(var e=0,i=Array.from(this._optionMap.keys());e-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(i){var n=[];if(void 0!==i.selectedOptions)for(var r=i.selectedOptions,o=0;o1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(t),r=null,o=null;return null!=i&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(i)?(r=null!=i.validators?i.validators:null,o=null!=i.asyncValidators?i.asyncValidators:null,e=null!=i.updateOn?i.updateOn:void 0):(r=null!=i.validator?i.validator:null,o=null!=i.asyncValidator?i.asyncValidator:null)),new st(n,{asyncValidators:o,updateOn:e,validators:r})}},{key:"control",value:function(t,e,i){return new at(t,e,i)}},{key:"array",value:function(t,e,i){var n=this,r=t.map(function(t){return n._createControl(t)});return new ct(r,e,i)}},{key:"_reduceControls",value:function(t){var e=this,i={};return Object.keys(t).forEach(function(n){i[n]=e._createControl(t[n])}),i}},{key:"_createControl",value:function(t){return t instanceof at||t instanceof st||t instanceof ct?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:function(){return new t},token:t,providedIn:Ht}),t}()},40084:function(t,e,i){"use strict";i.d(e,{XC:function(){return N},Bb:function(){return H},ZL:function(){return q}});var n=i(24621),r=i(19861),o=i(11353),a=i(31572),s=i(71522),c=i(87570),u=i(55959),l=i(31450),h=i(31906),d=i(40878),f=i(87254),p=i(61511),g=i(2522),m=i(4253),v=i(75842),y=i(26899),_=i(16073),b=i(66283),w=i(90611),A=i(44689),k=i(43835),C=i(79996),T=i(66599),E=i(60509),S=i(22526),I=["panel"];function R(t,e){if(1&t&&(a.TgZ(0,"div",0,1),a.Hsn(2),a.qZA()),2&t){var i=e.id,n=a.oxw();a.Q6J("id",n.id)("ngClass",n._classList),a.uIk("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(i))}}var x=["*"],O=0,P=function t(e,i){_classCallCheck(this,t),this.source=e,this.option=i},D=(0,s.Kr)(function t(){_classCallCheck(this,t)}),M=new a.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),L=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var s;return _classCallCheck(this,i),(s=e.call(this))._changeDetectorRef=t,s._elementRef=n,s._activeOptionChanges=c.w.EMPTY,s.showPanel=!1,s._isOpen=!1,s.displayWith=null,s.optionSelected=new a.vpe,s.opened=new a.vpe,s.closed=new a.vpe,s.optionActivated=new a.vpe,s._classList={},s.id="mat-autocomplete-"+O++,s.inertGroups=(null==o?void 0:o.SAFARI)||!1,s._autoActiveFirstOption=!!r.autoActiveFirstOption,s}return _createClass(i,[{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(t){this._autoActiveFirstOption=(0,r.Ig)(t)}},{key:"classList",set:function(t){this._classList=t&&t.length?(0,r.du)(t).reduce(function(t,e){return t[e]=!0,t},{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}},{key:"ngAfterContentInit",value:function(){var t=this;this._keyManager=new n.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(function(e){t.optionActivated.emit({source:t,option:t.options.toArray()[e]||null})}),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}},{key:"_getScrollTop",value:function(){return this.panel?this.panel.nativeElement.scrollTop:0}},{key:"_setVisibility",value:function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}},{key:"_emitSelectEvent",value:function(t){var e=new P(this,t);this.optionSelected.emit(e)}},{key:"_getPanelAriaLabelledby",value:function(t){return this.ariaLabel?null:this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}},{key:"_setVisibilityClasses",value:function(t){t[this._visibleClass]=this.showPanel,t[this._hiddenClass]=!this.showPanel}}]),i}(D);return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.sBO),a.Y36(a.SBq),a.Y36(M),a.Y36(o.t4))},t.\u0275dir=a.lG2({type:t,viewQuery:function(t,e){var i;(1&t&&(a.Gf(a.Rgc,7),a.Gf(I,5)),2&t)&&(a.iGM(i=a.CRH())&&(e.template=i.first),a.iGM(i=a.CRH())&&(e.panel=i.first))},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[a.qOj]}),t}(),N=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.apply(this,arguments))._visibleClass="mat-autocomplete-visible",t._hiddenClass="mat-autocomplete-hidden",t}return i}(L);return e.\u0275fac=function(i){return(t||(t=a.n5z(e)))(i||e)},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,i){var n;(1&t&&(a.Suo(i,s.K7,5),a.Suo(i,s.ey,5)),2&t)&&(a.iGM(n=a.CRH())&&(e.optionGroups=n),a.iGM(n=a.CRH())&&(e.options=n))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[a._Bn([{provide:s.HF,useExisting:e}]),a.qOj],ngContentSelectors:x,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(a.F$t(),a.YNc(0,R,3,4,"ng-template"))},directives:[p.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}\n"],encapsulation:2,changeDetection:0}),e}(),z=new a.OlP("mat-autocomplete-scroll-strategy"),Z={provide:z,deps:[g.aV],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},B={provide:_.JU,useExisting:(0,a.Gpc)(function(){return q}),multi:!0},F=function(){var t=function(){function t(e,i,n,r,o,a,s,d,f,p,g){var m=this;_classCallCheck(this,t),this._element=e,this._overlay=i,this._viewContainerRef=n,this._zone=r,this._changeDetectorRef=o,this._dir=s,this._formField=d,this._document=f,this._viewportRuler=p,this._defaults=g,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=c.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new u.xQ,this._windowBlurHandler=function(){m._canOpenOnNextFocus=m._document.activeElement!==m._element.nativeElement||m.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,l.P)(function(){return m.autocomplete&&m.autocomplete.options?h.T.apply(void 0,_toConsumableArray(m.autocomplete.options.map(function(t){return t.onSelectionChange}))):m._zone.onStable.pipe((0,w.q)(1),(0,A.w)(function(){return m.optionSelections}))}),this._scrollStrategy=a}return _createClass(t,[{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(t){this._autocompleteDisabled=(0,r.Ig)(t)}},{key:"ngAfterViewInit",value:function(){var t=this,e=this._getWindow();void 0!==e&&this._zone.runOutsideAngular(function(){return e.addEventListener("blur",t._windowBlurHandler)})}},{key:"ngOnChanges",value:function(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"openPanel",value:function(){this._attachOverlay(),this._floatLabel()}},{key:"closePanel",value:function(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}},{key:"updatePosition",value:function(){this._overlayAttached&&this._overlayRef.updatePosition()}},{key:"panelClosingActions",get:function(){var t=this;return(0,h.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,k.h)(function(){return t._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,k.h)(function(){return t._overlayAttached})):(0,d.of)()).pipe((0,C.U)(function(t){return t instanceof s.rN?t:null}))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}},{key:"_getOutsideClickStream",value:function(){var t=this;return(0,h.T)((0,f.R)(this._document,"click"),(0,f.R)(this._document,"auxclick"),(0,f.R)(this._document,"touchend")).pipe((0,k.h)(function(e){var i=t._isInsideShadowRoot&&e.composedPath?e.composedPath()[0]:e.target,n=t._formField?t._formField._elementRef.nativeElement:null,r=t.connectedTo?t.connectedTo.elementRef.nativeElement:null;return t._overlayAttached&&i!==t._element.nativeElement&&(!n||!n.contains(i))&&(!r||!r.contains(i))&&!!t._overlayRef&&!t._overlayRef.overlayElement.contains(i)}))}},{key:"writeValue",value:function(t){var e=this;Promise.resolve(null).then(function(){return e._setTriggerValue(t)})}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this._element.nativeElement.disabled=t}},{key:"_handleKeydown",value:function(t){var e=t.keyCode;if(e!==v.hY||(0,v.Vb)(t)||t.preventDefault(),this.activeOption&&e===v.K5&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){var i=this.autocomplete._keyManager.activeItem,n=e===v.LH||e===v.JH;this.panelOpen||e===v.Mf?this.autocomplete._keyManager.onKeydown(t):n&&this._canOpen()&&this.openPanel(),(n||this.autocomplete._keyManager.activeItem!==i)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}},{key:"_handleInput",value:function(t){var e=t.target,i=e.value;"number"===e.type&&(i=""==i?null:parseFloat(i)),this._previousValue!==i&&(this._previousValue=i,this._onChange(i),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}},{key:"_handleFocus",value:function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}},{key:"_floatLabel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}},{key:"_resetLabel",value:function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}},{key:"_subscribeToClosingActions",value:function(){var t=this,e=this._zone.onStable.pipe((0,w.q)(1)),i=this.autocomplete.options.changes.pipe((0,T.b)(function(){return t._positionStrategy.reapplyLastPosition()}),(0,E.g)(0));return(0,h.T)(e,i).pipe((0,A.w)(function(){var e=t.panelOpen;return t._resetActiveItem(),t.autocomplete._setVisibility(),t.panelOpen&&(t._overlayRef.updatePosition(),e!==t.panelOpen&&t.autocomplete.opened.emit()),t.panelClosingActions}),(0,w.q)(1)).subscribe(function(e){return t._setValueAndClose(e)})}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value:function(t){var e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,i=null!=e?e:"";this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}},{key:"_setValueAndClose",value:function(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()}},{key:"_clearPreviousSelectedOption",value:function(t){this.autocomplete.options.forEach(function(e){e!==t&&e.selected&&e.deselect()})}},{key:"_attachOverlay",value:function(){var t,e=this;null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!(0,o.kV)(this._element.nativeElement));var i=this._overlayRef;i?(this._positionStrategy.setOrigin(this._getConnectedElement()),i.updateSize({width:this._getPanelWidth()})):(this._portal=new y.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(t=this._formField)||void 0===t?void 0:t.getLabelId()}),i=this._overlay.create(this._getOverlayConfig()),this._overlayRef=i,i.keydownEvents().subscribe(function(t){(t.keyCode===v.hY&&!(0,v.Vb)(t)||t.keyCode===v.LH&&(0,v.Vb)(t,"altKey"))&&(e._resetActiveItem(),e._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(function(){e.panelOpen&&i&&i.updateSize({width:e._getPanelWidth()})})),i&&!i.hasAttached()&&(i.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var n=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&n!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){var t;return new g.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(t=this._defaults)||void 0===t?void 0:t.overlayPanelClass})}},{key:"_getOverlayPosition",value:function(){var t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}},{key:"_setStrategyPositions",value:function(t){var e,i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],n=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:n},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:n}];e="above"===this.position?r:"below"===this.position?i:[].concat(i,r),t.withPositions(e)}},{key:"_getConnectedElement",value:function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}},{key:"_getPanelWidth",value:function(){return this.autocomplete.panelWidth||this._getHostWidth()}},{key:"_getHostWidth",value:function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}},{key:"_resetActiveItem",value:function(){var t=this.autocomplete;t.autoActiveFirstOption?t._keyManager.setFirstItemActive():t._keyManager.setActiveItem(-1)}},{key:"_canOpen",value:function(){var t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}},{key:"_scrollToOption",value:function(t){var e=this.autocomplete,i=(0,s.CB)(t,e.options,e.optionGroups);if(0===t&&1===i)e._setScrollTop(0);else if(e.panel){var n=e.options.toArray()[t];if(n){var r=n._getHostElement(),o=(0,s.jH)(r.offsetTop,r.offsetHeight,e._getScrollTop(),e.panel.nativeElement.offsetHeight);e._setScrollTop(o)}}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(g.aV),a.Y36(a.s_b),a.Y36(a.R0b),a.Y36(a.sBO),a.Y36(z),a.Y36(S.Is,8),a.Y36(b.G_,9),a.Y36(p.K0,8),a.Y36(m.rL),a.Y36(M,8))},t.\u0275dir=a.lG2({type:t,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[a.TTD]}),t}(),q=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.apply(this,arguments))._aboveClass="mat-autocomplete-panel-above",t}return i}(F);return e.\u0275fac=function(i){return(t||(t=a.n5z(e)))(i||e)},e.\u0275dir=a.lG2({type:e,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&a.NdJ("focusin",function(){return e._handleFocus()})("blur",function(){return e._onTouched()})("input",function(t){return e._handleInput(t)})("keydown",function(t){return e._handleKeydown(t)}),2&t&&a.uIk("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[a._Bn([B]),a.qOj]}),e}(),H=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({providers:[Z],imports:[[g.U8,s.Ng,s.BQ,p.ez],m.ZD,s.Ng,s.BQ]}),t}()},41050:function(t,e,i){"use strict";i.d(e,{k:function(){return l},g:function(){return h}});var n=i(71522),r=i(24621),o=i(19861),a=i(43490),s=i(31572),c=0,u=(0,n.Id)(function t(){_classCallCheck(this,t)}),l=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,a){var s;return _classCallCheck(this,i),(s=e.call(this))._ngZone=t,s._elementRef=n,s._ariaDescriber=r,s._renderer=o,s._animationMode=a,s._hasContent=!1,s._color="primary",s._overlap=!0,s.position="above after",s.size="medium",s._id=c++,s}return _createClass(i,[{key:"color",get:function(){return this._color},set:function(t){this._setColor(t),this._color=t}},{key:"overlap",get:function(){return this._overlap},set:function(t){this._overlap=(0,o.Ig)(t)}},{key:"description",get:function(){return this._description},set:function(t){if(t!==this._description){var e=this._badgeElement;this._updateHostAriaDescription(t,this._description),this._description=t,e&&(t?e.setAttribute("aria-label",t):e.removeAttribute("aria-label"))}}},{key:"hidden",get:function(){return this._hidden},set:function(t){this._hidden=(0,o.Ig)(t)}},{key:"isAbove",value:function(){return-1===this.position.indexOf("below")}},{key:"isAfter",value:function(){return-1===this.position.indexOf("before")}},{key:"ngOnChanges",value:function(t){var e=t.content;if(e){var i=e.currentValue;this._hasContent=null!=i&&"".concat(i).trim().length>0,this._updateTextContent()}}},{key:"ngOnDestroy",value:function(){var t=this._badgeElement;t&&(this.description&&this._ariaDescriber.removeDescription(t,this.description),this._renderer.destroyNode&&this._renderer.destroyNode(t))}},{key:"getBadgeElement",value:function(){return this._badgeElement}},{key:"_updateTextContent",value:function(){return this._badgeElement?this._badgeElement.textContent=this._stringifyContent():this._badgeElement=this._createBadgeElement(),this._badgeElement}},{key:"_createBadgeElement",value:function(){var t=this._renderer.createElement("span");return this._clearExistingBadges("mat-badge-content"),t.setAttribute("id","mat-badge-content-".concat(this._id)),t.classList.add("mat-badge-content"),t.textContent=this._stringifyContent(),"NoopAnimations"===this._animationMode&&t.classList.add("_mat-animation-noopable"),this.description&&t.setAttribute("aria-label",this.description),this._elementRef.nativeElement.appendChild(t),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){t.classList.add("mat-badge-active")})}):t.classList.add("mat-badge-active"),t}},{key:"_updateHostAriaDescription",value:function(t,e){var i=this._updateTextContent();e&&this._ariaDescriber.removeDescription(i,e),t&&this._ariaDescriber.describe(i,t)}},{key:"_setColor",value:function(t){if(t!==this._color){var e=this._elementRef.nativeElement.classList;this._color&&e.remove("mat-badge-".concat(this._color)),t&&e.add("mat-badge-".concat(t))}}},{key:"_clearExistingBadges",value:function(t){for(var e=this._elementRef.nativeElement,i=e.children.length;i--;){var n=e.children[i];n.classList.contains(t)&&e.removeChild(n)}}},{key:"_stringifyContent",value:function(){var t=this.content;return null==t?"":"".concat(t)}}]),i}(u);return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.R0b),s.Y36(s.SBq),s.Y36(r.$s),s.Y36(s.Qsj),s.Y36(a.Qb,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(t,e){2&t&&s.ekj("mat-badge-overlap",e.overlap)("mat-badge-above",e.isAbove())("mat-badge-below",!e.isAbove())("mat-badge-before",!e.isAfter())("mat-badge-after",e.isAfter())("mat-badge-small","small"===e.size)("mat-badge-medium","medium"===e.size)("mat-badge-large","large"===e.size)("mat-badge-hidden",e.hidden||!e._hasContent)("mat-badge-disabled",e.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],position:["matBadgePosition","position"],size:["matBadgeSize","size"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],description:["matBadgeDescription","description"],hidden:["matBadgeHidden","hidden"],content:["matBadge","content"]},features:[s.qOj,s.TTD]}),t}(),h=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[r.rt,n.BQ],n.BQ]}),t}()},15980:function(t,e,i){"use strict";i.d(e,{lW:function(){return h},ot:function(){return d}});var n=i(71522),r=i(43490),o=i(31572),a=i(24621),s=["mat-button",""],c=["*"],u=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],l=(0,n.pj)((0,n.Id)((0,n.Kr)(function t(e){_classCallCheck(this,t),this._elementRef=e}))),h=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;_classCallCheck(this,i),(o=e.call(this,t))._focusMonitor=n,o._animationMode=r,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");var a,s=_createForOfIteratorHelper(u);try{for(s.s();!(a=s.n()).done;){var c=a.value;o._hasHostAttributes(c)&&o._getHostElement().classList.add(c)}}catch(l){s.e(l)}finally{s.f()}return t.nativeElement.classList.add("mat-button-base"),o.isRoundButton&&(o.color="accent"),o}return _createClass(i,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var t=this,e=arguments.length,i=new Array(e),n=0;n*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t}(),d=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[n.si,n.BQ],n.BQ]}),t}()},27439:function(t,e,i){"use strict";i.d(e,{a8:function(){return p},kc:function(){return f},dn:function(){return l},dk:function(){return g},QW:function(){return m},$j:function(){return d},n5:function(){return h}});var n=i(43490),r=i(71522),o=i(31572),a=["*",[["mat-card-footer"]]],s=["*","mat-card-footer"],c=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],u=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],l=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t}(),h=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t}(),d=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),t}(),f=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),t}(),p=function(){var t=function t(e){_classCallCheck(this,t),this._animationMode=e};return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.Qb,8))},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&o.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:s,decls:2,vars:0,template:function(t,e){1&t&&(o.F$t(a),o.Hsn(0),o.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-animation-noopable.mat-card{transition:none;animation:none}.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}.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}\n"],encapsulation:2,changeDetection:0}),t}(),g=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:u,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(o.F$t(c),o.Hsn(0),o.TgZ(1,"div",0),o.Hsn(2,1),o.qZA(),o.Hsn(3,2))},encapsulation:2,changeDetection:0}),t}(),m=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[r.BQ],r.BQ]}),t}()},29236:function(t,e,i){"use strict";i.d(e,{oG:function(){return b},p9:function(){return A}});var n=i(19861),r=i(31572),o=i(16073),a=i(71522),s=i(43490),c=i(36337),u=i(24621),l=["input"],h=function(t){return{enterDuration:t}},d=["*"],f=new r.OlP("mat-checkbox-default-options",{providedIn:"root",factory:p});function p(){return{color:"accent",clickAction:"check-indeterminate"}}var g=0,m={color:"accent",clickAction:"check-indeterminate"},v={provide:o.JU,useExisting:(0,r.Gpc)(function(){return b}),multi:!0},y=function t(){_classCallCheck(this,t)},_=(0,a.sb)((0,a.pj)((0,a.Kr)((0,a.Id)(function t(e){_classCallCheck(this,t),this._elementRef=e})))),b=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,o,a,s,c,u){var l;return _classCallCheck(this,i),(l=e.call(this,t))._changeDetectorRef=n,l._focusMonitor=o,l._ngZone=a,l._animationMode=c,l._options=u,l.ariaLabel="",l.ariaLabelledby=null,l._uniqueId="mat-checkbox-"+ ++g,l.id=l._uniqueId,l.labelPosition="after",l.name=null,l.change=new r.vpe,l.indeterminateChange=new r.vpe,l._onTouched=function(){},l._currentAnimationClass="",l._currentCheckState=0,l._controlValueAccessorChangeFn=function(){},l._checked=!1,l._disabled=!1,l._indeterminate=!1,l._options=l._options||m,l.color=l.defaultColor=l._options.color||m.color,l.tabIndex=parseInt(s)||0,l}return _createClass(i,[{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"required",get:function(){return this._required},set:function(t){this._required=(0,n.Ig)(t)}},{key:"ngAfterViewInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(e){e||Promise.resolve().then(function(){t._onTouched(),t._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"checked",get:function(){return this._checked},set:function(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(t){var e=(0,n.Ig)(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(t){var e=t!=this._indeterminate;this._indeterminate=(0,n.Ig)(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(t){this.checked=!!t}},{key:"registerOnChange",value:function(t){this._controlValueAccessorChangeFn=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(t){var e=this._currentCheckState,i=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);var n=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){i.classList.remove(n)},1e3)})}}},{key:"_emitChangeEvent",value:function(){var t=new y;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(t){var e,i=this,n=null===(e=this._options)||void 0===e?void 0:e.clickAction;t.stopPropagation(),this.disabled||"noop"===n?this.disabled||"noop"!==n||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==n&&Promise.resolve().then(function(){i._indeterminate=!1,i.indeterminateChange.emit(i._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(t,e){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}},{key:"_onInteractionEvent",value:function(t){t.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(t,e){if("NoopAnimations"===this._animationMode)return"";var i="";switch(t){case 0:if(1===e)i="unchecked-checked";else{if(3!=e)return"";i="unchecked-indeterminate"}break;case 2:i=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===e?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-".concat(i)}},{key:"_syncIndeterminate",value:function(t){var e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}]),i}(_);return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(u.tE),r.Y36(r.R0b),r.$8M("tabindex"),r.Y36(s.Qb,8),r.Y36(f,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){var i;(1&t&&(r.Gf(l,5),r.Gf(a.wG,5)),2&t)&&(r.iGM(i=r.CRH())&&(e._inputElement=i.first),r.iGM(i=r.CRH())&&(e.ripple=i.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(r.Ikx("id",e.id),r.uIk("tabindex",null),r.ekj("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[r._Bn([v]),r.qOj],ngContentSelectors:d,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",0,"xml","space","preserve",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(t,e){if(1&t&&(r.F$t(),r.TgZ(0,"label",0,1),r.TgZ(2,"span",2),r.TgZ(3,"input",3,4),r.NdJ("change",function(t){return e._onInteractionEvent(t)})("click",function(t){return e._onInputClick(t)}),r.qZA(),r.TgZ(5,"span",5),r._UZ(6,"span",6),r.qZA(),r._UZ(7,"span",7),r.TgZ(8,"span",8),r.O4$(),r.TgZ(9,"svg",9),r._UZ(10,"path",10),r.qZA(),r.kcU(),r._UZ(11,"span",11),r.qZA(),r.qZA(),r.TgZ(12,"span",12,13),r.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),r.TgZ(14,"span",14),r._uU(15,"\xa0"),r.qZA(),r.Hsn(16),r.qZA(),r.qZA()),2&t){var i=r.MAs(1),n=r.MAs(13);r.uIk("for",e.inputId),r.xp6(2),r.ekj("mat-checkbox-inner-container-no-side-margin",!n.textContent||!n.textContent.trim()),r.xp6(1),r.Q6J("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),r.uIk("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),r.xp6(2),r.Q6J("matRippleTrigger",i)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",r.VKq(19,h,"NoopAnimations"===e._animationMode?0:150))}},directives:[a.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:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-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;-moz-user-select:auto;-ms-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:transparent;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:transparent}.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%}\n"],encapsulation:2,changeDetection:0}),t}(),w=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t}(),A=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[a.si,a.BQ,c.Q8,w],a.BQ,w]}),t}()},10033:function(t,e,i){"use strict";i.d(e,{HS:function(){return T},oH:function(){return P},qn:function(){return x},Hi:function(){return M}});var n=i(75842),r=i(31572),o=i(71522),a=i(19861),s=i(61511),c=i(43490),u=i(55959),l=i(31906),h=i(90611),d=i(25416),f=i(56238),p=i(24621),g=i(4230),m=i(66283),v=i(11353),y=i(22526),_=i(16073),b=["*"],w=new r.OlP("MatChipRemove"),A=new r.OlP("MatChipAvatar"),k=new r.OlP("MatChipTrailingIcon"),C=(0,o.sb)((0,o.pj)((0,o.Kr)(function t(e){_classCallCheck(this,t),this._elementRef=e}),"primary"),-1),T=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,s,c,l,h,d){var f;return _classCallCheck(this,i),(f=e.call(this,t))._elementRef=t,f._ngZone=n,f._changeDetectorRef=c,f._hasFocus=!1,f.chipListSelectable=!0,f._chipListMultiple=!1,f._chipListDisabled=!1,f._selected=!1,f._selectable=!0,f._disabled=!1,f._removable=!0,f._onFocus=new u.xQ,f._onBlur=new u.xQ,f.selectionChange=new r.vpe,f.destroyed=new r.vpe,f.removed=new r.vpe,f._addHostClassName(),f._chipRippleTarget=l.createElement("div"),f._chipRippleTarget.classList.add("mat-chip-ripple"),f._elementRef.nativeElement.appendChild(f._chipRippleTarget),f._chipRipple=new o.IR(_assertThisInitialized(f),n,f._chipRippleTarget,a),f._chipRipple.setupTriggerEvents(t),f.rippleConfig=s||{},f._animationsDisabled="NoopAnimations"===h,f.tabIndex=null!=d&&parseInt(d)||-1,f}return _createClass(i,[{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(t){var e=(0,a.Ig)(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(t){this._value=t}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(t){this._selectable=(0,a.Ig)(t)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(t){this._disabled=(0,a.Ig)(t)}},{key:"removable",get:function(){return this._removable},set:function(t){this._removable=(0,a.Ig)(t)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}},{key:"_addHostClassName",value:function(){var t=this._elementRef.nativeElement;t.hasAttribute("mat-basic-chip")||"mat-basic-chip"===t.tagName.toLowerCase()?t.classList.add("mat-basic-chip"):t.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}},{key:"toggleSelected",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(t),this._changeDetectorRef.markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(t){this.disabled?t.preventDefault():t.stopPropagation()}},{key:"_handleKeydown",value:function(t){if(!this.disabled)switch(t.keyCode){case n.yY:case n.ZH:this.remove(),t.preventDefault();break;case n.L_:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}},{key:"_blur",value:function(){var t=this;this._ngZone.onStable.pipe((0,h.q)(1)).subscribe(function(){t._ngZone.run(function(){t._hasFocus=!1,t._onBlur.next({chip:t})})})}},{key:"_dispatchSelectionChange",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}}]),i}(C);return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(r.R0b),r.Y36(v.t4),r.Y36(o.Y2,8),r.Y36(r.sBO),r.Y36(s.K0),r.Y36(c.Qb,8),r.$8M("tabindex"))},t.\u0275dir=r.lG2({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,i){var n;(1&t&&(r.Suo(i,A,5),r.Suo(i,k,5),r.Suo(i,w,5)),2&t)&&(r.iGM(n=r.CRH())&&(e.avatar=n.first),r.iGM(n=r.CRH())&&(e.trailingIcon=n.first),r.iGM(n=r.CRH())&&(e.removeIcon=n.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&r.NdJ("click",function(t){return e._handleClick(t)})("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e.focus()})("blur",function(){return e._blur()}),2&t&&(r.uIk("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),r.ekj("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[r.qOj]}),t}(),E=new r.OlP("mat-chips-default-options"),S=(0,o.FD)(function t(e,i,n,r){_classCallCheck(this,t),this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=r}),I=0,R=function t(e,i){_classCallCheck(this,t),this.source=e,this.value=i},x=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,o,a,s,c,l){var h;return _classCallCheck(this,i),(h=e.call(this,c,a,s,l))._elementRef=t,h._changeDetectorRef=n,h._dir=o,h.ngControl=l,h.controlType="mat-chip-list",h._lastDestroyedChipIndex=null,h._destroyed=new u.xQ,h._uid="mat-chip-list-"+I++,h._tabIndex=0,h._userTabIndex=null,h._onTouched=function(){},h._onChange=function(){},h._multiple=!1,h._compareWith=function(t,e){return t===e},h._required=!1,h._disabled=!1,h.ariaOrientation="horizontal",h._selectable=!0,h.change=new r.vpe,h.valueChange=new r.vpe,h.ngControl&&(h.ngControl.valueAccessor=_assertThisInitialized(h)),h}return _createClass(i,[{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(t){this._multiple=(0,a.Ig)(t),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(t){this.writeValue(t),this._value=t}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(t){this._required=(0,a.Ig)(t),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(t){this._disabled=(0,a.Ig)(t),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(t){var e=this;this._selectable=(0,a.Ig)(t),this.chips&&this.chips.forEach(function(t){return t.chipListSelectable=e._selectable})}},{key:"tabIndex",set:function(t){this._userTabIndex=t,this._tabIndex=t}},{key:"chipSelectionChanges",get:function(){return l.T.apply(void 0,_toConsumableArray(this.chips.map(function(t){return t.selectionChange})))}},{key:"chipFocusChanges",get:function(){return l.T.apply(void 0,_toConsumableArray(this.chips.map(function(t){return t._onFocus})))}},{key:"chipBlurChanges",get:function(){return l.T.apply(void 0,_toConsumableArray(this.chips.map(function(t){return t._onBlur})))}},{key:"chipRemoveChanges",get:function(){return l.T.apply(void 0,_toConsumableArray(this.chips.map(function(t){return t.destroyed})))}},{key:"ngAfterContentInit",value:function(){var t=this;this._keyManager=new p.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,d.R)(this._destroyed)).subscribe(function(e){return t._keyManager.withHorizontalOrientation(e)}),this._keyManager.tabOut.pipe((0,d.R)(this._destroyed)).subscribe(function(){t._allowFocusEscape()}),this.chips.changes.pipe((0,f.O)(null),(0,d.R)(this._destroyed)).subscribe(function(){t.disabled&&Promise.resolve().then(function(){t._syncChipsState()}),t._resetChips(),t._initializeSelection(),t._updateTabIndex(),t._updateFocusForDestroyedChips(),t.stateChanges.next()})}},{key:"ngOnInit",value:function(){this._selectionModel=new g.Ov(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(t){this._chipInput=t,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",t.id)}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"writeValue",value:function(t){this.chips&&this._setSelectionByValue(t,!1)}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this.stateChanges.next()}},{key:"onContainerClick",value:function(t){this._originatesFromChip(t)||this.focus()}},{key:"focus",value:function(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}},{key:"_focusInput",value:function(t){this._chipInput&&this._chipInput.focus(t)}},{key:"_keydown",value:function(t){var e=t.target;e&&e.classList.contains("mat-chip")&&(this._keyManager.onKeydown(t),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(t){return t>=0&&t1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach(function(t){return t.deselect()}),Array.isArray(t))t.forEach(function(t){return e._selectValue(t,i)}),this._sortValues();else{var n=this._selectValue(t,i);n&&i&&this._keyManager.setActiveItem(n)}}},{key:"_selectValue",value:function(t){var e=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.chips.find(function(i){return null!=i.value&&e._compareWith(i.value,t)});return n&&(i?n.selectViaInteraction():n.select(),this._selectionModel.select(n)),n}},{key:"_initializeSelection",value:function(){var t=this;Promise.resolve().then(function(){(t.ngControl||t._value)&&(t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value,!1),t.stateChanges.next())})}},{key:"_clearSelection",value:function(t){this._selectionModel.clear(),this.chips.forEach(function(e){e!==t&&e.deselect()}),this.stateChanges.next()}},{key:"_sortValues",value:function(){var t=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(e){e.selected&&t._selectionModel.select(e)}),this.stateChanges.next())}},{key:"_propagateChanges",value:function(t){var e;e=Array.isArray(this.selected)?this.selected.map(function(t){return t.value}):this.selected?this.selected.value:t,this._value=e,this.change.emit(new R(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var t=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(function(){t.focused||t._markAsTouched()}):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var t=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(function(){t._tabIndex=t._userTabIndex||0,t._changeDetectorRef.markForCheck()}))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){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)}},{key:"_listenToChipsSelection",value:function(){var t=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(function(e){e.source.selected?t._selectionModel.select(e.source):t._selectionModel.deselect(e.source),t.multiple||t.chips.forEach(function(e){!t._selectionModel.isSelected(e)&&e.selected&&e.deselect()}),e.isUserInput&&t._propagateChanges()})}},{key:"_listenToChipsFocus",value:function(){var t=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(e){var i=t.chips.toArray().indexOf(e.chip);t._isValidIndex(i)&&t._keyManager.updateActiveItem(i),t.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(function(){t._blur(),t.stateChanges.next()})}},{key:"_listenToChipsRemoved",value:function(){var t=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(function(e){var i=e.chip,n=t.chips.toArray().indexOf(e.chip);t._isValidIndex(n)&&i._hasFocus&&(t._lastDestroyedChipIndex=n)})}},{key:"_originatesFromChip",value:function(t){for(var e=t.target;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-chip"))return!0;e=e.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips&&this.chips.some(function(t){return t._hasFocus})}},{key:"_syncChipsState",value:function(){var t=this;this.chips&&this.chips.forEach(function(e){e._chipListDisabled=t._disabled,e._chipListMultiple=t.multiple})}}]),i}(S);return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(y.Is,8),r.Y36(_.F,8),r.Y36(_.sg,8),r.Y36(o.rD),r.Y36(_.a5,10))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,i){var n;(1&t&&r.Suo(i,T,5),2&t)&&(r.iGM(n=r.CRH())&&(e.chips=n))},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&r.NdJ("focus",function(){return e.focus()})("blur",function(){return e._blur()})("keydown",function(t){return e._keydown(t)}),2&t&&(r.Ikx("id",e._uid),r.uIk("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),r.ekj("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[r._Bn([{provide:m.Eo,useExisting:t}]),r.qOj],ngContentSelectors:b,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"div",0),r.Hsn(1),r.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.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-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height: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:focus{outline:dotted 2px}.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}.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}\n'],encapsulation:2,changeDetection:0}),t}(),O=0,P=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this._elementRef=e,this._defaultOptions=i,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new r.vpe,this.placeholder="",this.id="mat-chip-list-input-"+O++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}return _createClass(t,[{key:"chipList",set:function(t){t&&(this._chipList=t,this._chipList.registerInput(this))}},{key:"addOnBlur",get:function(){return this._addOnBlur},set:function(t){this._addOnBlur=(0,a.Ig)(t)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(t){this._disabled=(0,a.Ig)(t)}},{key:"empty",get:function(){return!this.inputElement.value}},{key:"ngOnChanges",value:function(){this._chipList.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.chipEnd.complete()}},{key:"ngAfterContentInit",value:function(){this._focusLastChipOnBackspace=this.empty}},{key:"_keydown",value:function(t){if(t){if(t.keyCode!==n.Mf||(0,n.Vb)(t,"shiftKey")||this._chipList._allowFocusEscape(),t.keyCode===n.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void t.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(t)}},{key:"_keyup",value:function(t){!this._focusLastChipOnBackspace&&t.keyCode===n.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,t.preventDefault())}},{key:"_blur",value:function(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}},{key:"_focus",value:function(){this.focused=!0,this._chipList.stateChanges.next()}},{key:"_emitChipEnd",value:function(t){!this.inputElement.value&&t&&this._chipList._keydown(t),t&&!this._isSeparatorKey(t)||(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==t||t.preventDefault())}},{key:"_onInput",value:function(){this._chipList.stateChanges.next()}},{key:"focus",value:function(t){this.inputElement.focus(t)}},{key:"clear",value:function(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}},{key:"_isSeparatorKey",value:function(t){return!(0,n.Vb)(t)&&new Set(this.separatorKeyCodes).has(t.keyCode)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(E))},t.\u0275dir=r.lG2({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,e){1&t&&r.NdJ("keydown",function(t){return e._keydown(t)})("keyup",function(t){return e._keyup(t)})("blur",function(){return e._blur()})("focus",function(){return e._focus()})("input",function(){return e._onInput()}),2&t&&(r.Ikx("id",e.id),r.uIk("disabled",e.disabled||null)("placeholder",e.placeholder||null)("aria-invalid",e._chipList&&e._chipList.ngControl?e._chipList.ngControl.invalid:null)("aria-required",e._chipList&&e._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[r.TTD]}),t}(),D={separatorKeyCodes:[n.K5]},M=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[o.rD,{provide:E,useValue:D}],imports:[[o.BQ]]}),t}()},71522:function(t,e,i){"use strict";i.d(e,{yN:function(){return y},mZ:function(){return _},_A:function(){return O},rD:function(){return H},sG:function(){return P},K7:function(){return ct},HF:function(){return rt},Y2:function(){return $},BQ:function(){return A},X2:function(){return U},uc:function(){return Y},XK:function(){return q},ey:function(){return dt},Ng:function(){return gt},rN:function(){return lt},nP:function(){return it},us:function(){return nt},wG:function(){return tt},si:function(){return et},LF:function(){return Z},IR:function(){return X},CB:function(){return ft},jH:function(){return pt},pj:function(){return C},Kr:function(){return T},Id:function(){return k},FD:function(){return S},dB:function(){return I},sb:function(){return E},E0:function(){return G}});var n=i(31572),r=i(24621),o=i(22526),a=new n.GfV("12.0.5"),s=i(61511),c=i(19861),u=i(55959),l=i(48318),h=i(11353),d=i(56238),f=i(43490),p=i(75842);function g(t,e){if(1&t&&n._UZ(0,"mat-pseudo-checkbox",4),2&t){var i=n.oxw();n.Q6J("state",i.selected?"checked":"unchecked")("disabled",i.disabled)}}function m(t,e){if(1&t&&(n.TgZ(0,"span",5),n._uU(1),n.qZA()),2&t){var i=n.oxw();n.xp6(1),n.hij("(",i.group.label,")")}}var v=["*"],y=function(){var t=function t(){_classCallCheck(this,t)};return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t}(),_=function(){var t=function t(){_classCallCheck(this,t)};return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t}(),b=new n.GfV("12.0.5"),w=new n.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),A=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this._hasDoneGlobalChecks=!1,this._document=n,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=i,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return _createClass(t,[{key:"_getWindow",value:function(){var t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}},{key:"_checksAreEnabled",value:function(){return(0,n.X6Q)()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var t=this._getWindow();return t&&(t.__karma__||t.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document.body&&"function"==typeof getComputedStyle){var t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);var e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&b.full!==a.full&&console.warn("The Angular Material version ("+b.full+") does not match the Angular CDK version ("+a.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.LFG(r.qm),n.LFG(w,8),n.LFG(s.K0))},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[o.vT],o.vT]}),t}();function k(t){return function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;_classCallCheck(this,i);for(var n=arguments.length,r=new Array(n),o=0;o1&&void 0!==arguments[1]?arguments[1]:0;return function(t){_inherits(n,t);var i=_createSuper(n);function n(){var t;_classCallCheck(this,n);for(var r=arguments.length,o=new Array(r),a=0;a0?i:t}}]),t}(),P=new n.OlP("mat-date-formats");try{R="undefined"!=typeof Intl}catch(mt){R=!1}var D={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},M=z(31,function(t){return String(t+1)}),L={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},N=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function z(t,e){for(var i=Array(t),n=0;n9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});var i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(i,t))}return this._stripDirectionalityCharacters(t.toDateString())}},{key:"addCalendarYears",value:function(t,e){return this.addCalendarMonths(t,12*e)}},{key:"addCalendarMonths",value:function(t,e){var i=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(i)!=((this.getMonth(t)+e)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}},{key:"addCalendarDays",value:function(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}},{key:"toIso8601",value:function(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}},{key:"deserialize",value:function(t){if("string"==typeof t){if(!t)return null;if(N.test(t)){var e=new Date(t);if(this.isValid(e))return e}}return _get(_getPrototypeOf(i.prototype),"deserialize",this).call(this,t)}},{key:"isDateInstance",value:function(t){return t instanceof Date}},{key:"isValid",value:function(t){return!isNaN(t.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(t,e,i){var n=new Date;return n.setFullYear(t,e,i),n.setHours(0,0,0,0),n}},{key:"_2digit",value:function(t){return("00"+t).slice(-2)}},{key:"_stripDirectionalityCharacters",value:function(t){return t.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(t,e){var i=new Date;return i.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),i.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(i)}}]),i}(O);return t.\u0275fac=function(e){return new(e||t)(n.LFG(x,8),n.LFG(h.t4))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t}(),B=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:O,useClass:Z}],imports:[[h.ud]]}),t}(),F={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"}}},q=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:P,useValue:F}],imports:[[B]]}),t}(),H=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"isErrorState",value:function(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t}(),U=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t}();function G(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat";t.changes.pipe((0,d.O)(t)).subscribe(function(t){var n=t.length;j(e,"".concat(i,"-2-line"),!1),j(e,"".concat(i,"-3-line"),!1),j(e,"".concat(i,"-multi-line"),!1),2===n||3===n?j(e,"".concat(i,"-").concat(n,"-line"),!0):n>3&&j(e,"".concat(i,"-multi-line"),!0)})}function j(t,e,i){var n=t.nativeElement.classList;i?n.add(e):n.remove(e)}var Y=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[A],A]}),t}(),K=function(){function t(e,i,n){_classCallCheck(this,t),this._renderer=e,this.element=i,this.config=n,this.state=3}return _createClass(t,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),t}(),V={enterDuration:450,exitDuration:400},J=(0,h.i$)({passive:!0}),Q=["mousedown","touchstart"],W=["mouseup","mouseleave","touchend","touchcancel"],X=function(){function t(e,i,n,r){_classCallCheck(this,t),this._target=e,this._ngZone=i,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=(0,c.fI)(n))}return _createClass(t,[{key:"fadeInRipple",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},V),n.animation);n.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);var a=n.radius||function(t,e,i){var n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),r=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+r*r)}(t,e,r),s=t-r.left,c=e-r.top,u=o.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=s-a+"px",l.style.top=c-a+"px",l.style.height=2*a+"px",l.style.width=2*a+"px",null!=n.color&&(l.style.backgroundColor=n.color),l.style.transitionDuration="".concat(u,"ms"),this._containerElement.appendChild(l),window.getComputedStyle(l).getPropertyValue("opacity"),l.style.transform="scale(1)";var h=new K(this,l,n);return h.state=0,this._activeRipples.add(h),n.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(function(){var t=h===i._mostRecentTransientRipple;h.state=1,n.persistent||t&&i._isPointerDown||h.fadeOut()},u),h}},{key:"fadeOutRipple",value:function(t){var e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),e){var i=t.element,n=Object.assign(Object.assign({},V),t.config.animation);i.style.transitionDuration="".concat(n.exitDuration,"ms"),i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(function(){t.state=3,i.parentNode.removeChild(i)},n.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(t){return t.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(t){t.config.persistent||t.fadeOut()})}},{key:"setupTriggerEvents",value:function(t){var e=(0,c.fI)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Q))}},{key:"handleEvent",value:function(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(W),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(t){var e=(0,r.X6)(t),i=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(t,e)})}},{key:"_registerEvents",value:function(t){var e=this;this._ngZone.runOutsideAngular(function(){t.forEach(function(t){e._triggerElement.addEventListener(t,e,J)})})}},{key:"_removeTriggerEvents",value:function(){var t=this;this._triggerElement&&(Q.forEach(function(e){t._triggerElement.removeEventListener(e,t,J)}),this._pointerUpEventsRegistered&&W.forEach(function(e){t._triggerElement.removeEventListener(e,t,J)}))}}]),t}(),$=new n.OlP("mat-ripple-global-options"),tt=function(){var t=function(){function t(e,i,n,r,o){_classCallCheck(this,t),this._elementRef=e,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new X(this,i,e,n)}return _createClass(t,[{key:"disabled",get:function(){return this._disabled},set:function(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(h.t4),n.Y36($,8),n.Y36(f.Qb,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&n.ekj("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t}(),et=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[A,h.ud],A]}),t}(),it=function(){var t=function t(e){_classCallCheck(this,t),this._animationMode=e,this.state="unchecked",this.disabled=!1};return t.\u0275fac=function(e){return new(e||t)(n.Y36(f.Qb,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&n.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},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:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::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}\n'],encapsulation:2,changeDetection:0}),t}(),nt=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[A]]}),t}(),rt=new n.OlP("MAT_OPTION_PARENT_COMPONENT"),ot=k(function t(){_classCallCheck(this,t)}),at=0,st=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n,r;return _classCallCheck(this,i),(n=e.call(this))._labelId="mat-optgroup-label-"+at++,n._inert=null!==(r=null==t?void 0:t.inertGroups)&&void 0!==r&&r,n}return i}(ot);return t.\u0275fac=function(e){return new(e||t)(n.Y36(rt,8))},t.\u0275dir=n.lG2({type:t,inputs:{label:"label"},features:[n.qOj]}),t}(),ct=new n.OlP("MatOptgroup"),ut=0,lt=function t(e){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_classCallCheck(this,t),this.source=e,this.isUserInput=i},ht=function(){var t=function(){function t(e,i,r,o){_classCallCheck(this,t),this._element=e,this._changeDetectorRef=i,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+ut++,this.onSelectionChange=new n.vpe,this._stateChanges=new u.xQ}return _createClass(t,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(t){this._disabled=(0,c.Ig)(t)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(t,e){var i=this._getHostElement();"function"==typeof i.focus&&i.focus(e)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(t){t.keyCode!==p.K5&&t.keyCode!==p.L_||(0,p.Vb)(t)||(this._selectViaInteraction(),t.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new lt(this,t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(void 0),n.Y36(st))},t.\u0275dir=n.lG2({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t}(),dt=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){return _classCallCheck(this,i),e.call(this,t,n,r,o)}return i}(ht);return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(rt,8),n.Y36(ct,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&n.NdJ("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(n.Ikx("id",e.id),n.uIk("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),n.ekj("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[n.qOj],ngContentSelectors:v,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(t,e){1&t&&(n.F$t(),n.YNc(0,g,1,2,"mat-pseudo-checkbox",0),n.TgZ(1,"span",1),n.Hsn(2),n.qZA(),n.YNc(3,m,2,1,"span",2),n._UZ(4,"div",3)),2&t&&(n.Q6J("ngIf",e.multiple),n.xp6(3),n.Q6J("ngIf",e.group&&e.group._inert),n.xp6(1),n.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[s.O5,tt,it],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:transparent}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t}();function ft(t,e,i){if(i.length){for(var n=e.toArray(),r=i.toArray(),o=0,a=0;ai+n?Math.max(0,t-n+e):i}var gt=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[et,s.ez,A,nt]]}),t}()},15812:function(t,e,i){"use strict";i.d(e,{Mq:function(){return mt},hl:function(){return wt},FA:function(){return Ct},nW:function(){return kt}});var n=i(24621),r=i(2522),o=i(26899),a=i(61511),s=i(31572),c=i(15980),u=i(4253),l=i(71522),h=i(55959),d=i(87570),f=i(31906),p=i(40878),g=i(75842),m=i(90611),v=i(56238),y=i(43835),_=i(19861),b=i(11353),w=i(10709),A=i(16073),k=i(66283),C=i(80340),T=i(22526),E=["mat-calendar-body",""];function S(t,e){if(1&t&&(s.TgZ(0,"tr",2),s.TgZ(1,"td",3),s._uU(2),s.qZA(),s.qZA()),2&t){var i=s.oxw();s.xp6(1),s.Udp("padding-top",i._cellPadding)("padding-bottom",i._cellPadding),s.uIk("colspan",i.numCols),s.xp6(1),s.hij(" ",i.label," ")}}function I(t,e){if(1&t&&(s.TgZ(0,"td",7),s._uU(1),s.qZA()),2&t){var i=s.oxw(2);s.Udp("padding-top",i._cellPadding)("padding-bottom",i._cellPadding),s.uIk("colspan",i._firstRowOffset),s.xp6(1),s.hij(" ",i._firstRowOffset>=i.labelMinRequiredCells?i.label:""," ")}}function R(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"td",8),s.NdJ("click",function(t){var e=s.CHM(i).$implicit;return s.oxw(2)._cellClicked(e,t)}),s.TgZ(1,"div",9),s._uU(2),s.qZA(),s._UZ(3,"div",10),s.qZA()}if(2&t){var n=e.$implicit,r=e.index,o=s.oxw().index,a=s.oxw();s.Udp("width",a._cellWidth)("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),s.ekj("mat-calendar-body-disabled",!n.enabled)("mat-calendar-body-active",a._isActiveCell(o,r))("mat-calendar-body-range-start",a._isRangeStart(n.compareValue))("mat-calendar-body-range-end",a._isRangeEnd(n.compareValue))("mat-calendar-body-in-range",a._isInRange(n.compareValue))("mat-calendar-body-comparison-bridge-start",a._isComparisonBridgeStart(n.compareValue,o,r))("mat-calendar-body-comparison-bridge-end",a._isComparisonBridgeEnd(n.compareValue,o,r))("mat-calendar-body-comparison-start",a._isComparisonStart(n.compareValue))("mat-calendar-body-comparison-end",a._isComparisonEnd(n.compareValue))("mat-calendar-body-in-comparison-range",a._isInComparisonRange(n.compareValue))("mat-calendar-body-preview-start",a._isPreviewStart(n.compareValue))("mat-calendar-body-preview-end",a._isPreviewEnd(n.compareValue))("mat-calendar-body-in-preview",a._isInPreview(n.compareValue)),s.Q6J("ngClass",n.cssClasses)("tabindex",a._isActiveCell(o,r)?0:-1),s.uIk("data-mat-row",o)("data-mat-col",r)("aria-label",n.ariaLabel)("aria-disabled",!n.enabled||null)("aria-selected",a._isSelected(n.compareValue)),s.xp6(1),s.ekj("mat-calendar-body-selected",a._isSelected(n.compareValue))("mat-calendar-body-comparison-identical",a._isComparisonIdentical(n.compareValue))("mat-calendar-body-today",a.todayValue===n.compareValue),s.xp6(1),s.hij(" ",n.displayValue," ")}}function x(t,e){if(1&t&&(s.TgZ(0,"tr",4),s.YNc(1,I,2,6,"td",5),s.YNc(2,R,4,46,"td",6),s.qZA()),2&t){var i=e.$implicit,n=e.index,r=s.oxw();s.xp6(1),s.Q6J("ngIf",0===n&&r._firstRowOffset),s.xp6(1),s.Q6J("ngForOf",i)}}function O(t,e){if(1&t&&(s.TgZ(0,"th",5),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.uIk("aria-label",i.long),s.xp6(1),s.Oqu(i.narrow)}}var P=["*"];function D(t,e){}function M(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"mat-month-view",5),s.NdJ("activeDateChange",function(t){return s.CHM(i),s.oxw().activeDate=t})("_userSelection",function(t){return s.CHM(i),s.oxw()._dateSelected(t)}),s.qZA()}if(2&t){var n=s.oxw();s.Q6J("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)("comparisonStart",n.comparisonStart)("comparisonEnd",n.comparisonEnd)}}function L(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"mat-year-view",6),s.NdJ("activeDateChange",function(t){return s.CHM(i),s.oxw().activeDate=t})("monthSelected",function(t){return s.CHM(i),s.oxw()._monthSelectedInYearView(t)})("selectedChange",function(t){return s.CHM(i),s.oxw()._goToDateInView(t,"month")}),s.qZA()}if(2&t){var n=s.oxw();s.Q6J("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)}}function N(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"mat-multi-year-view",7),s.NdJ("activeDateChange",function(t){return s.CHM(i),s.oxw().activeDate=t})("yearSelected",function(t){return s.CHM(i),s.oxw()._yearSelectedInMultiYearView(t)})("selectedChange",function(t){return s.CHM(i),s.oxw()._goToDateInView(t,"year")}),s.qZA()}if(2&t){var n=s.oxw();s.Q6J("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)}}function z(t,e){}var Z=["button"];function B(t,e){1&t&&(s.O4$(),s.TgZ(0,"svg",3),s._UZ(1,"path",4),s.qZA())}var F=[[["","matDatepickerToggleIcon",""]]],q=["[matDatepickerToggleIcon]"],H=function(){var t=function(){function t(){_classCallCheck(this,t),this.changes=new h.xQ,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"}return _createClass(t,[{key:"formatYearRange",value:function(t,e){return"".concat(t," \u2013 ").concat(e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t}(),U=function t(e,i,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,s=arguments.length>6?arguments[6]:void 0;_classCallCheck(this,t),this.value=e,this.displayValue=i,this.ariaLabel=n,this.enabled=r,this.cssClasses=o,this.compareValue=a,this.rawValue=s},G=function(){var t=function(){function t(e,i){var n=this;_classCallCheck(this,t),this._elementRef=e,this._ngZone=i,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new s.vpe,this.previewChange=new s.vpe,this._enterHandler=function(t){if(n._skipNextFocus&&"focus"===t.type)n._skipNextFocus=!1;else if(t.target&&n.isRange){var e=n._getCellFromElement(t.target);e&&n._ngZone.run(function(){return n.previewChange.emit({value:e.enabled?e:null,event:t})})}},this._leaveHandler=function(t){null!==n.previewEnd&&n.isRange&&t.target&&j(t.target)&&n._ngZone.run(function(){return n.previewChange.emit({value:null,event:t})})},i.runOutsideAngular(function(){var t=e.nativeElement;t.addEventListener("mouseenter",n._enterHandler,!0),t.addEventListener("focus",n._enterHandler,!0),t.addEventListener("mouseleave",n._leaveHandler,!0),t.addEventListener("blur",n._leaveHandler,!0)})}return _createClass(t,[{key:"_cellClicked",value:function(t,e){t.enabled&&this.selectedValueChange.emit({value:t.value,event:e})}},{key:"_isSelected",value:function(t){return this.startValue===t||this.endValue===t}},{key:"ngOnChanges",value:function(t){var e=t.numCols,i=this.rows,n=this.numCols;(t.rows||e)&&(this._firstRowOffset=i&&i.length&&i[0].length?n-i[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/n+"%"),!e&&this._cellWidth||(this._cellWidth=100/n+"%")}},{key:"ngOnDestroy",value:function(){var t=this._elementRef.nativeElement;t.removeEventListener("mouseenter",this._enterHandler,!0),t.removeEventListener("focus",this._enterHandler,!0),t.removeEventListener("mouseleave",this._leaveHandler,!0),t.removeEventListener("blur",this._leaveHandler,!0)}},{key:"_isActiveCell",value:function(t,e){var i=t*this.numCols+e;return t&&(i-=this._firstRowOffset),i==this.activeCell}},{key:"_focusActiveCell",value:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.pipe((0,m.q)(1)).subscribe(function(){var i=t._elementRef.nativeElement.querySelector(".mat-calendar-body-active");i&&(e||(t._skipNextFocus=!0),i.focus())})})}},{key:"_isRangeStart",value:function(t){return Y(t,this.startValue,this.endValue)}},{key:"_isRangeEnd",value:function(t){return K(t,this.startValue,this.endValue)}},{key:"_isInRange",value:function(t){return V(t,this.startValue,this.endValue,this.isRange)}},{key:"_isComparisonStart",value:function(t){return Y(t,this.comparisonStart,this.comparisonEnd)}},{key:"_isComparisonBridgeStart",value:function(t,e,i){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;var n=this.rows[e][i-1];if(!n){var r=this.rows[e-1];n=r&&r[r.length-1]}return n&&!this._isRangeEnd(n.compareValue)}},{key:"_isComparisonBridgeEnd",value:function(t,e,i){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;var n=this.rows[e][i+1];if(!n){var r=this.rows[e+1];n=r&&r[0]}return n&&!this._isRangeStart(n.compareValue)}},{key:"_isComparisonEnd",value:function(t){return K(t,this.comparisonStart,this.comparisonEnd)}},{key:"_isInComparisonRange",value:function(t){return V(t,this.comparisonStart,this.comparisonEnd,this.isRange)}},{key:"_isComparisonIdentical",value:function(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}},{key:"_isPreviewStart",value:function(t){return Y(t,this.previewStart,this.previewEnd)}},{key:"_isPreviewEnd",value:function(t){return K(t,this.previewStart,this.previewEnd)}},{key:"_isInPreview",value:function(t){return V(t,this.previewStart,this.previewEnd,this.isRange)}},{key:"_getCellFromElement",value:function(t){var e;if(j(t)?e=t:j(t.parentNode)&&(e=t.parentNode),e){var i=e.getAttribute("data-mat-row"),n=e.getAttribute("data-mat-col");if(i&&n)return this.rows[parseInt(i)][parseInt(n)]}return null}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b))},t.\u0275cmp=s.Xpm({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[s.TTD],attrs:E,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"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(t,e){1&t&&(s.YNc(0,S,3,6,"tr",0),s.YNc(1,x,3,2,"tr",1)),2&t&&(s.Q6J("ngIf",e._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),t}();function j(t){return"TD"===t.nodeName}function Y(t,e,i){return null!==i&&e!==i&&t=e&&t===i}function V(t,e,i,n){return n&&null!==e&&null!==i&&e!==i&&t>=e&&t<=i}var J=function t(e,i){_classCallCheck(this,t),this.start=e,this.end=i},Q=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.selection=e,this._adapter=i,this._selectionChanged=new h.xQ,this.selectionChanged=this._selectionChanged,this.selection=e}return _createClass(t,[{key:"updateSelection",value:function(t,e){var i=this.selection;this.selection=t,this._selectionChanged.next({selection:t,source:e,oldValue:i})}},{key:"ngOnDestroy",value:function(){this._selectionChanged.complete()}},{key:"_isValidDateInstance",value:function(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(void 0),s.LFG(l._A))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),W=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){return _classCallCheck(this,i),e.call(this,null,t)}return _createClass(i,[{key:"add",value:function(t){_get(_getPrototypeOf(i.prototype),"updateSelection",this).call(this,t,this)}},{key:"isValid",value:function(){return null!=this.selection&&this._isValidDateInstance(this.selection)}},{key:"isComplete",value:function(){return null!=this.selection}},{key:"clone",value:function(){var t=new i(this._adapter);return t.updateSelection(this.selection,this),t}}]),i}(Q);return t.\u0275fac=function(e){return new(e||t)(s.LFG(l._A))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),X={provide:Q,deps:[[new s.FiY,new s.tp0,Q],l._A],useFactory:function(t,e){return t||new W(e)}},$=new s.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY"),tt=function(){var t=function(){function t(e,i,n,r,o){_classCallCheck(this,t),this._changeDetectorRef=e,this._dateFormats=i,this._dateAdapter=n,this._dir=r,this._rangeStrategy=o,this._rerenderSubscription=d.w.EMPTY,this.selectedChange=new s.vpe,this._userSelection=new s.vpe,this.activeDateChange=new s.vpe,this._activeDate=this._dateAdapter.today()}return _createClass(t,[{key:"activeDate",get:function(){return this._activeDate},set:function(t){var e=this._activeDate,i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(t){this._selected=t instanceof J?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}},{key:"minDate",get:function(){return this._minDate},set:function(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"maxDate",get:function(){return this._maxDate},set:function(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"ngAfterContentInit",value:function(){var t=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,v.O)(null)).subscribe(function(){return t._init()})}},{key:"ngOnChanges",value:function(t){var e=t.comparisonStart||t.comparisonEnd;e&&!e.firstChange&&this._setRanges(this.selected)}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_dateSelected",value:function(t){var e,i,n=t.value,r=this._dateAdapter.getYear(this.activeDate),o=this._dateAdapter.getMonth(this.activeDate),a=this._dateAdapter.createDate(r,o,n);this._selected instanceof J?(e=this._getDateInCurrentMonth(this._selected.start),i=this._getDateInCurrentMonth(this._selected.end)):e=i=this._getDateInCurrentMonth(this._selected),e===n&&i===n||this.selectedChange.emit(a),this._userSelection.emit({value:a,event:t.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}},{key:"_handleCalendarBodyKeydown",value:function(t){var e=this._activeDate,i=this._isRtl();switch(t.keyCode){case g.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?1:-1);break;case g.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?-1:1);break;case g.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case g.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case g.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case g.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case g.Ku:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case g.VM:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case g.K5:case g.L_:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),t.preventDefault()));case g.hY:return void(null==this._previewEnd||(0,g.Vb)(t)||(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t}),t.preventDefault(),t.stopPropagation()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}},{key:"_init",value:function(){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();var t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}},{key:"_focusActiveCell",value:function(t){this._matCalendarBody._focusActiveCell(t)}},{key:"_previewChanged",value:function(t){var e=t.event,i=t.value;if(this._rangeStrategy){var n=this._rangeStrategy.createPreview(i?i.rawValue:null,this.selected,e);this._previewStart=this._getCellCompareValue(n.start),this._previewEnd=this._getCellCompareValue(n.end),this._changeDetectorRef.detectChanges()}}},{key:"_initWeekdays",value:function(){var t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow"),i=this._dateAdapter.getDayOfWeekNames("long").map(function(t,i){return{long:t,narrow:e[i]}});this._weekdays=i.slice(t).concat(i.slice(0,t))}},{key:"_createWeekCells",value:function(){var t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(var i=0,n=this._firstWeekOffset;i=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}},{key:"_getDateInCurrentMonth",value:function(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}},{key:"_hasSameMonthAndYear",value:function(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}},{key:"_getCellCompareValue",value:function(t){if(t){var e=this._dateAdapter.getYear(t),i=this._dateAdapter.getMonth(t),n=this._dateAdapter.getDate(t);return new Date(e,i,n).getTime()}return null}},{key:"_isRtl",value:function(){return this._dir&&"rtl"===this._dir.value}},{key:"_setRanges",value:function(t){t instanceof J?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36(l.sG,8),s.Y36(l._A,8),s.Y36(T.Is,8),s.Y36($,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){var i;(1&t&&s.Gf(G,5),2&t)&&(s.iGM(i=s.CRH())&&(e._matCalendarBody=i.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:[s.TTD],decls:7,vars:13,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"]],template:function(t,e){1&t&&(s.TgZ(0,"table",0),s.TgZ(1,"thead",1),s.TgZ(2,"tr"),s.YNc(3,O,2,2,"th",2),s.qZA(),s.TgZ(4,"tr"),s._UZ(5,"th",3),s.qZA(),s.qZA(),s.TgZ(6,"tbody",4),s.NdJ("selectedValueChange",function(t){return e._dateSelected(t)})("previewChange",function(t){return e._previewChanged(t)})("keydown",function(t){return e._handleCalendarBodyKeydown(t)}),s.qZA(),s.qZA()),2&t&&(s.xp6(3),s.Q6J("ngForOf",e._weekdays),s.xp6(3),s.Q6J("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("startValue",e._rangeStart)("endValue",e._rangeEnd)("comparisonStart",e._comparisonRangeStart)("comparisonEnd",e._comparisonRangeEnd)("previewStart",e._previewStart)("previewEnd",e._previewEnd)("isRange",e._isRange)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[a.sg,G],encapsulation:2,changeDetection:0}),t}(),et=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this._changeDetectorRef=e,this._dateAdapter=i,this._dir=n,this._rerenderSubscription=d.w.EMPTY,this.selectedChange=new s.vpe,this.yearSelected=new s.vpe,this.activeDateChange=new s.vpe,this._activeDate=this._dateAdapter.today()}return _createClass(t,[{key:"activeDate",get:function(){return this._activeDate},set:function(t){var e=this._activeDate,i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),it(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(t){this._selected=t instanceof J?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}},{key:"minDate",get:function(){return this._minDate},set:function(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"maxDate",get:function(){return this._maxDate},set:function(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"ngAfterContentInit",value:function(){var t=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,v.O)(null)).subscribe(function(){return t._init()})}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_init",value:function(){var t=this;this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());var e=this._dateAdapter.getYear(this._activeDate)-nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var i=0,n=[];i<24;i++)n.push(e+i),4==n.length&&(this._years.push(n.map(function(e){return t._createCellForYear(e)})),n=[]);this._changeDetectorRef.markForCheck()}},{key:"_yearSelected",value:function(t){var e=t.value;this.yearSelected.emit(this._dateAdapter.createDate(e,0,1));var i=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));this.selectedChange.emit(this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}},{key:"_handleCalendarBodyKeydown",value:function(t){var e=this._activeDate,i=this._isRtl();switch(t.keyCode){case g.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?1:-1);break;case g.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?-1:1);break;case g.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case g.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case g.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case g.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case g.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case g.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:24);break;case g.K5:case g.L_:this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}},{key:"_getActiveCell",value:function(){return nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}},{key:"_focusActiveCell",value:function(){this._matCalendarBody._focusActiveCell()}},{key:"_createCellForYear",value:function(t){var e=this._dateAdapter.createDate(t,0,1),i=this._dateAdapter.getYearName(e),n=this.dateClass?this.dateClass(e,"multi-year"):void 0;return new U(t,i,i,this._shouldEnableYear(t),n)}},{key:"_shouldEnableYear",value:function(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&ti||t===i&&e>n}return!1}},{key:"_isYearAndMonthBeforeMinDate",value:function(t,e){if(this.minDate){var i=this._dateAdapter.getYear(this.minDate),n=this._dateAdapter.getMonth(this.minDate);return t enter-dropdown",(0,w.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,w.F4)([(0,w.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,w.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,w.eR)("void => enter-dialog",(0,w.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,w.F4)([(0,w.oB)({opacity:0,transform:"scale(0.7)"}),(0,w.oB)({transform:"none",opacity:1})]))),(0,w.eR)("* => void",(0,w.jt)("100ms linear",(0,w.oB)({opacity:0})))]),fadeInCalendar:(0,w.X$)("fadeInCalendar",[(0,w.SB)("void",(0,w.oB)({opacity:0})),(0,w.SB)("enter",(0,w.oB)({opacity:1})),(0,w.eR)("void => *",(0,w.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},lt=0,ht=new s.OlP("mat-datepicker-scroll-strategy"),dt={provide:ht,deps:[r.aV],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},ft=(0,l.pj)(function t(e){_classCallCheck(this,t),this._elementRef=e}),pt=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,a,s){var c;return _classCallCheck(this,i),(c=e.call(this,t))._changeDetectorRef=n,c._globalModel=r,c._dateAdapter=o,c._rangeSelectionStrategy=a,c._subscriptions=new d.w,c._animationDone=new h.xQ,c._actionsPortal=null,c._closeButtonText=s.closeCalendarLabel,c}return _createClass(i,[{key:"ngOnInit",value:function(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}},{key:"ngAfterViewInit",value:function(){var t=this;this._subscriptions.add(this.datepicker.stateChanges.subscribe(function(){t._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}},{key:"ngOnDestroy",value:function(){this._subscriptions.unsubscribe(),this._animationDone.complete()}},{key:"_handleUserSelection",value:function(t){var e=this._model.selection,i=t.value,n=e instanceof J;if(n&&this._rangeSelectionStrategy){var r=this._rangeSelectionStrategy.selectionFinished(i,e,t.event);this._model.updateSelection(r,this)}else!i||!n&&this._dateAdapter.sameDate(i,e)||this._model.add(i);this._model&&!this._model.isComplete()||this._actionsPortal||this.datepicker.close()}},{key:"_startExitAnimation",value:function(){this._animationState="void",this._changeDetectorRef.markForCheck()}},{key:"_getSelected",value:function(){return this._model.selection}},{key:"_applyPendingSelection",value:function(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}]),i}(ft);return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(Q),s.Y36(l._A),s.Y36($,8),s.Y36(H))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){var i;(1&t&&s.Gf(ct,5),2&t)&&(s.iGM(i=s.CRH())&&(e._calendar=i.first))},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&s.WFA("@transformPanel.done",function(){return e._animationDone.next()}),2&t&&(s.d8E("@transformPanel",e._animationState),s.ekj("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[s.qOj],decls:5,vars:20,consts:[["cdkTrapFocus","",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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"mat-calendar",1),s.NdJ("yearSelected",function(t){return e.datepicker._selectYear(t)})("monthSelected",function(t){return e.datepicker._selectMonth(t)})("viewChanged",function(t){return e.datepicker._viewChanged(t)})("_userSelection",function(t){return e._handleUserSelection(t)}),s.qZA(),s.YNc(2,z,0,0,"ng-template",2),s.TgZ(3,"button",3),s.NdJ("focus",function(){return e._closeButtonFocused=!0})("blur",function(){return e._closeButtonFocused=!1})("click",function(){return e.datepicker.close()}),s._uU(4),s.qZA(),s.qZA()),2&t&&(s.ekj("mat-datepicker-content-container-with-actions",e._actionsPortal),s.xp6(1),s.Q6J("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._getMinDate())("maxDate",e.datepicker._getMaxDate())("dateFilter",e.datepicker._getDateFilter())("headerComponent",e.datepicker.calendarHeaderComponent)("selected",e._getSelected())("dateClass",e.datepicker.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("@fadeInCalendar","enter"),s.xp6(1),s.Q6J("cdkPortalOutlet",e._actionsPortal),s.xp6(1),s.ekj("cdk-visually-hidden",!e._closeButtonFocused),s.Q6J("color",e.color||"primary"),s.xp6(1),s.Oqu(e._closeButtonText))},directives:[n.mK,ct,a.mk,o.Pl,c.lW],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.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}}\n"],encapsulation:2,data:{animation:[ut.transformPanel,ut.fadeInCalendar]},changeDetection:0}),t}(),gt=function(){var t=function(){function t(e,i,n,r,o,a,c,u,l){_classCallCheck(this,t),this._overlay=i,this._ngZone=n,this._viewContainerRef=r,this._dateAdapter=a,this._dir=c,this._model=l,this._inputStateChanges=d.w.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new s.vpe,this.monthSelected=new s.vpe,this.viewChanged=new s.vpe(!0),this.openedStream=new s.vpe,this.closedStream=new s.vpe,this._opened=!1,this.id="mat-datepicker-"+lt++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass="".concat(this.id,"-backdrop"),this.stateChanges=new h.xQ,this._scrollStrategy=o}return _createClass(t,[{key:"startAt",get:function(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)},set:function(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"color",get:function(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)},set:function(t){this._color=t}},{key:"touchUi",get:function(){return this._touchUi},set:function(t){this._touchUi=(0,_.Ig)(t)}},{key:"disabled",get:function(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled},set:function(t){var e=(0,_.Ig)(t);e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}},{key:"restoreFocus",get:function(){return this._restoreFocus},set:function(t){this._restoreFocus=(0,_.Ig)(t)}},{key:"panelClass",get:function(){return this._panelClass},set:function(t){this._panelClass=(0,_.du)(t)}},{key:"opened",get:function(){return this._opened},set:function(t){(0,_.Ig)(t)?this.open():this.close()}},{key:"_getMinDate",value:function(){return this.datepickerInput&&this.datepickerInput.min}},{key:"_getMaxDate",value:function(){return this.datepickerInput&&this.datepickerInput.max}},{key:"_getDateFilter",value:function(){return this.datepickerInput&&this.datepickerInput.dateFilter}},{key:"ngOnChanges",value:function(t){var e=t.xPosition||t.yPosition;if(e&&!e.firstChange&&this._overlayRef){var i=this._overlayRef.getConfig().positionStrategy;i instanceof r._G&&(this._setConnectedPositions(i),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}},{key:"ngOnDestroy",value:function(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}},{key:"select",value:function(t){this._model.add(t)}},{key:"_selectYear",value:function(t){this.yearSelected.emit(t)}},{key:"_selectMonth",value:function(t){this.monthSelected.emit(t)}},{key:"_viewChanged",value:function(t){this.viewChanged.emit(t)}},{key:"registerInput",value:function(t){var e=this;return this._inputStateChanges.unsubscribe(),this.datepickerInput=t,this._inputStateChanges=t.stateChanges.subscribe(function(){return e.stateChanges.next(void 0)}),this._model}},{key:"registerActions",value:function(t){this._actionsPortal=t}},{key:"removeActions",value:function(t){t===this._actionsPortal&&(this._actionsPortal=null)}},{key:"open",value:function(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,b.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}},{key:"close",value:function(){var t=this;if(this._opened){if(this._componentRef){var e=this._componentRef.instance;e._startExitAnimation(),e._animationDone.pipe((0,m.q)(1)).subscribe(function(){return t._destroyOverlay()})}var i=function(){t._opened&&(t._opened=!1,t.closedStream.emit(),t._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(i)):i()}}},{key:"_applyPendingSelection",value:function(){var t,e;null===(e=null===(t=this._componentRef)||void 0===t?void 0:t.instance)||void 0===e||e._applyPendingSelection()}},{key:"_forwardContentValues",value:function(t){t.datepicker=this,t.color=this.color,t._actionsPortal=this._actionsPortal}},{key:"_openOverlay",value:function(){var t=this;this._destroyOverlay();var e=this.touchUi,i=this.datepickerInput.getOverlayLabelId(),n=new o.C5(pt,this._viewContainerRef),a=this._overlayRef=this._overlay.create(new r.X_({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(e?"dialog":"popup")})),s=a.overlayElement;s.setAttribute("role","dialog"),i&&s.setAttribute("aria-labelledby",i),e&&s.setAttribute("aria-modal","true"),this._getCloseStream(a).subscribe(function(e){e&&e.preventDefault(),t.close()}),this._componentRef=a.attach(n),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe((0,m.q)(1)).subscribe(function(){return a.updatePosition()})}},{key:"_destroyOverlay",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}},{key:"_getDialogStrategy",value:function(){return this._overlay.position().global().centerHorizontally().centerVertically()}},{key:"_getDropdownStrategy",value:function(){var t=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(t)}},{key:"_setConnectedPositions",value:function(t){var e="end"===this.xPosition?"end":"start",i="start"===e?"end":"start",n="above"===this.yPosition?"bottom":"top",r="top"===n?"bottom":"top";return t.withPositions([{originX:e,originY:r,overlayX:e,overlayY:n},{originX:e,originY:n,overlayX:e,overlayY:r},{originX:i,originY:r,overlayX:i,overlayY:n},{originX:i,originY:n,overlayX:i,overlayY:r}])}},{key:"_getCloseStream",value:function(t){var e=this;return(0,f.T)(t.backdropClick(),t.detachments(),t.keydownEvents().pipe((0,y.h)(function(t){return t.keyCode===g.hY&&!(0,g.Vb)(t)||e.datepickerInput&&(0,g.Vb)(t,"altKey")&&t.keyCode===g.LH})))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(r.aV),s.Y36(s.R0b),s.Y36(s.s_b),s.Y36(ht),s.Y36(l._A,8),s.Y36(T.Is,8),s.Y36(a.K0,8),s.Y36(Q))},t.\u0275dir=s.lG2({type:t,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",restoreFocus:"restoreFocus",panelClass:"panelClass",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[s.TTD]}),t}(),mt=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(gt);return e.\u0275fac=function(i){return(t||(t=s.n5z(e)))(i||e)},e.\u0275cmp=s.Xpm({type:e,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[s._Bn([X,{provide:gt,useExisting:e}]),s.qOj],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),e}(),vt=function t(e,i){_classCallCheck(this,t),this.target=e,this.targetElement=i,this.value=this.target.value},yt=function(){var t=function(){function t(e,i,n){var r=this;_classCallCheck(this,t),this._elementRef=e,this._dateAdapter=i,this._dateFormats=n,this.dateChange=new s.vpe,this.dateInput=new s.vpe,this.stateChanges=new h.xQ,this._onTouched=function(){},this._validatorOnChange=function(){},this._cvaOnChange=function(){},this._valueChangesSubscription=d.w.EMPTY,this._localeSubscription=d.w.EMPTY,this._parseValidator=function(){return r._lastValueValid?null:{matDatepickerParse:{text:r._elementRef.nativeElement.value}}},this._filterValidator=function(t){var e=r._dateAdapter.getValidDateOrNull(r._dateAdapter.deserialize(t.value));return!e||r._matchesFilter(e)?null:{matDatepickerFilter:!0}},this._minValidator=function(t){var e=r._dateAdapter.getValidDateOrNull(r._dateAdapter.deserialize(t.value)),i=r._getMinDate();return!i||!e||r._dateAdapter.compareDate(i,e)<=0?null:{matDatepickerMin:{min:i,actual:e}}},this._maxValidator=function(t){var e=r._dateAdapter.getValidDateOrNull(r._dateAdapter.deserialize(t.value)),i=r._getMaxDate();return!i||!e||r._dateAdapter.compareDate(i,e)>=0?null:{matDatepickerMax:{max:i,actual:e}}},this._lastValueValid=!1,this._localeSubscription=i.localeChanges.subscribe(function(){r._assignValueProgrammatically(r.value)})}return _createClass(t,[{key:"value",get:function(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue},set:function(t){this._assignValueProgrammatically(t)}},{key:"disabled",get:function(){return!!this._disabled||this._parentDisabled()},set:function(t){var e=(0,_.Ig)(t),i=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this.stateChanges.next(void 0)),e&&this._isInitialized&&i.blur&&i.blur()}},{key:"_getValidators",value:function(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}},{key:"_registerModel",value:function(t){var e=this;this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(function(t){if(e._shouldHandleChangeEvent(t)){var i=e._getValueFromModel(t.selection);e._lastValueValid=e._isValidValue(i),e._cvaOnChange(i),e._onTouched(),e._formatValue(i),e.dateInput.emit(new vt(e,e._elementRef.nativeElement)),e.dateChange.emit(new vt(e,e._elementRef.nativeElement))}})}},{key:"ngAfterViewInit",value:function(){this._isInitialized=!0}},{key:"ngOnChanges",value:function(t){(function(t,e){for(var i=0,n=Object.keys(t);i enter",(0,m.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,m.oB)({transform:"none",opacity:1}))),(0,m.eR)("* => void, * => exit",(0,m.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,m.oB)({opacity:0})))])},A=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,a,s,c){var u;return _classCallCheck(this,i),(u=e.call(this))._elementRef=t,u._focusTrapFactory=n,u._changeDetectorRef=r,u._config=s,u._focusMonitor=c,u._animationStateChanged=new o.vpe,u._elementFocusedBeforeDialogWasOpened=null,u._closeInteractionType=null,u.attachDomPortal=function(t){return u._portalOutlet.hasAttached(),u._portalOutlet.attachDomPortal(t)},u._ariaLabelledBy=s.ariaLabelledBy||null,u._document=a,u}return _createClass(i,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}},{key:"attachTemplatePortal",value:function(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){var e=(0,g.ht)(),i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,g.ht)())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var t=this._elementRef.nativeElement,e=(0,g.ht)();return t===e||t.contains(e)}}]),i}(r.en);return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.SBq),o.Y36(y.qV),o.Y36(o.sBO),o.Y36(c.K0,8),o.Y36(b),o.Y36(y.tE))},t.\u0275dir=o.lG2({type:t,viewQuery:function(t,e){var i;(1&t&&o.Gf(r.Pl,7),2&t)&&(o.iGM(i=o.CRH())&&(e._portalOutlet=i.first))},features:[o.qOj]}),t}(),k=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.apply(this,arguments))._state="enter",t}return _createClass(i,[{key:"_onAnimationDone",value:function(t){var e=t.toState,i=t.totalTime;"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:i})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:i}))}},{key:"_onAnimationStart",value:function(t){var e=t.toState,i=t.totalTime;"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:i}):"exit"!==e&&"void"!==e||this._animationStateChanged.next({state:"closing",totalTime:i})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),i}(A);return e.\u0275fac=function(i){return(t||(t=o.n5z(e)))(i||e)},e.\u0275cmp=o.Xpm({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&o.WFA("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(o.Ikx("id",e._id),o.uIk("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),o.d8E("@dialogContainer",e._state))},features:[o.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&o.YNc(0,_,0,0,"ng-template",0)},directives:[r.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[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.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}\n"],encapsulation:2,data:{animation:[w.dialogContainer]}}),e}(),C=0,T=function(){function t(e,i){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-"+C++;_classCallCheck(this,t),this._overlayRef=e,this._containerInstance=i,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new u.xQ,this._afterClosed=new u.xQ,this._beforeClosed=new u.xQ,this._state=0,i._id=r,i._animationStateChanged.pipe((0,d.h)(function(t){return"opened"===t.state}),(0,f.q)(1)).subscribe(function(){n._afterOpened.next(),n._afterOpened.complete()}),i._animationStateChanged.pipe((0,d.h)(function(t){return"closed"===t.state}),(0,f.q)(1)).subscribe(function(){clearTimeout(n._closeFallbackTimeout),n._finishDialogClose()}),e.detachments().subscribe(function(){n._beforeClosed.next(n._result),n._beforeClosed.complete(),n._afterClosed.next(n._result),n._afterClosed.complete(),n.componentInstance=null,n._overlayRef.dispose()}),e.keydownEvents().pipe((0,d.h)(function(t){return t.keyCode===v.hY&&!n.disableClose&&!(0,v.Vb)(t)})).subscribe(function(t){t.preventDefault(),E(n,"keyboard")}),e.backdropClick().subscribe(function(){n.disableClose?n._containerInstance._recaptureFocus():E(n,"mouse")})}return _createClass(t,[{key:"close",value:function(t){var e=this;this._result=t,this._containerInstance._animationStateChanged.pipe((0,d.h)(function(t){return"closing"===t.state}),(0,f.q)(1)).subscribe(function(i){e._beforeClosed.next(t),e._beforeClosed.complete(),e._overlayRef.detachBackdrop(),e._closeFallbackTimeout=setTimeout(function(){return e._finishDialogClose()},i.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(t){var e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(t){return this._overlayRef.addPanelClass(t),this}},{key:"removePanelClass",value:function(t){return this._overlayRef.removePanelClass(t),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),t}();function E(t,e,i){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(i)}var S=new o.OlP("MatDialogData"),I=new o.OlP("mat-dialog-default-options"),R=new o.OlP("mat-dialog-scroll-strategy"),x={provide:R,deps:[n.aV],useFactory:function(t){return function(){return t.scrollStrategies.block()}}},O=function(){var t=function(){function t(e,i,n,r,o,a,s,c,h){var d=this;_classCallCheck(this,t),this._overlay=e,this._injector=i,this._defaultOptions=n,this._parentDialog=r,this._overlayContainer=o,this._dialogRefConstructor=s,this._dialogContainerType=c,this._dialogDataToken=h,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new u.xQ,this._afterOpenedAtThisLevel=new u.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,l.P)(function(){return d.openDialogs.length?d._getAfterAllClosed():d._getAfterAllClosed().pipe((0,p.O)(void 0))}),this._scrollStrategy=a}return _createClass(t,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(t,e){var i=this;(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new b)).id&&this.getDialogById(e.id);var n=this._createOverlay(e),r=this._attachDialogContainer(n,e),o=this._attachDialogContent(t,r,n,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(function(){return i._removeOpenDialog(o)}),this.afterOpened.next(o),r._initializeWithAttachedContent(),o}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(t){return this.openDialogs.find(function(e){return e.id===t})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(t){var e=this._getOverlayConfig(t);return this._overlay.create(e)}},{key:"_getOverlayConfig",value:function(t){var e=new n.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}},{key:"_attachDialogContainer",value:function(t,e){var i=o.zs3.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:b,useValue:e}]}),n=new r.C5(this._dialogContainerType,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}},{key:"_attachDialogContent",value:function(t,e,i,n){var a=new this._dialogRefConstructor(i,e,n.id);if(t instanceof o.Rgc)e.attachTemplatePortal(new r.UE(t,null,{$implicit:n.data,dialogRef:a}));else{var s=this._createInjector(n,a,e),c=e.attachComponentPortal(new r.C5(t,n.viewContainerRef,s));a.componentInstance=c.instance}return a.updateSize(n.width,n.height).updatePosition(n.position),a}},{key:"_createInjector",value:function(t,e,i){var n=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||n&&n.get(s.Is,null,o.XFs.Optional)||r.push({provide:s.Is,useValue:{value:t.direction,change:(0,h.of)()}}),o.zs3.create({parent:n||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(t){var e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var t=this._overlayContainer.getContainerElement();if(t.parentElement)for(var e=t.parentElement.children,i=e.length-1;i>-1;i--){var n=e[i];n===t||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(t){for(var e=t.length;e--;)t[e].close()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.aV),o.Y36(o.zs3),o.Y36(void 0),o.Y36(void 0),o.Y36(n.Xj),o.Y36(void 0),o.Y36(o.DyG),o.Y36(o.DyG),o.Y36(o.OlP))},t.\u0275dir=o.lG2({type:t}),t}(),P=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,a,s,c){return _classCallCheck(this,i),e.call(this,t,n,o,s,c,a,T,k,S)}return i}(O);return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.aV),o.LFG(o.zs3),o.LFG(c.Ye,8),o.LFG(I,8),o.LFG(R),o.LFG(t,12),o.LFG(n.Xj))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t}(),D=0,M=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this._dialogRef=e,this._elementRef=i,this._dialog=n,this.id="mat-dialog-title-"+D++}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this._dialogRef||(this._dialogRef=function(t,e){for(var i=t.nativeElement.parentElement;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?e.find(function(t){return t.id===i.id}):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var e=t._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=t.id)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Y36(T,8),o.Y36(o.SBq),o.Y36(P))},t.\u0275dir=o.lG2({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&o.Ikx("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t}(),L=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t}(),N=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t}(),z=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[P,x],imports:[[n.U8,r.eL,a.BQ],a.BQ]}),t}()},27679:function(t,e,i){"use strict";i.d(e,{d:function(){return a},t:function(){return s}});var n=i(19861),r=i(71522),o=i(31572),a=function(){var t=function(){function t(){_classCallCheck(this,t),this._vertical=!1,this._inset=!1}return _createClass(t,[{key:"vertical",get:function(){return this._vertical},set:function(t){this._vertical=(0,n.Ig)(t)}},{key:"inset",get:function(){return this._inset},set:function(t){this._inset=(0,n.Ig)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(o.uIk("aria-orientation",e.vertical?"vertical":"horizontal"),o.ekj("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},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}\n"],encapsulation:2,changeDetection:0}),t}(),s=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[r.BQ],r.BQ]}),t}()},45001:function(t,e,i){"use strict";i.d(e,{pp:function(){return U},To:function(){return G},ib:function(){return B},HS:function(){return N},u4:function(){return q},yz:function(){return F},yK:function(){return H}});var n=i(31572),r=i(19861),o=i(55959),a=i(87570),s=i(4230),c=0,u=new n.OlP("CdkAccordion"),l=function(){var t=function(){function t(){_classCallCheck(this,t),this._stateChanges=new o.xQ,this._openCloseAllActions=new o.xQ,this.id="cdk-accordion-"+c++,this._multi=!1}return _createClass(t,[{key:"multi",get:function(){return this._multi},set:function(t){this._multi=(0,r.Ig)(t)}},{key:"openAll",value:function(){this._multi&&this._openCloseAllActions.next(!0)}},{key:"closeAll",value:function(){this._openCloseAllActions.next(!1)}},{key:"ngOnChanges",value:function(t){this._stateChanges.next(t)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[n._Bn([{provide:u,useExisting:t}]),n.TTD]}),t}(),h=0,d=function(){var t=function(){function t(e,i,r){var o=this;_classCallCheck(this,t),this.accordion=e,this._changeDetectorRef=i,this._expansionDispatcher=r,this._openCloseAllSubscription=a.w.EMPTY,this.closed=new n.vpe,this.opened=new n.vpe,this.destroyed=new n.vpe,this.expandedChange=new n.vpe,this.id="cdk-accordion-child-"+h++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=r.listen(function(t,e){o.accordion&&!o.accordion.multi&&o.accordion.id===e&&o.id!==t&&(o.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return _createClass(t,[{key:"expanded",get:function(){return this._expanded},set:function(t){t=(0,r.Ig)(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=(0,r.Ig)(t)}},{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var t=this;return this.accordion._openCloseAllActions.subscribe(function(e){t.disabled||(t.expanded=e)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(u,12),n.Y36(n.sBO),n.Y36(s.A8))},t.\u0275dir=n.lG2({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[n._Bn([{provide:u,useValue:void 0}])]}),t}(),f=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t}(),p=i(26899),g=i(61511),m=i(71522),v=i(24621),y=i(98720),_=i(56238),b=i(43835),w=i(90611),A=i(75842),k=i(43490),C=i(70653),T=i(31906),E=i(10709),S=["body"];function I(t,e){}var R=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],x=["mat-expansion-panel-header","*","mat-action-row"];function O(t,e){if(1&t&&n._UZ(0,"span",2),2&t){var i=n.oxw();n.Q6J("@indicatorRotate",i._getExpandedState())}}var P=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],D=["mat-panel-title","mat-panel-description","*"],M=new n.OlP("MAT_ACCORDION"),L={indicatorRotate:(0,E.X$)("indicatorRotate",[(0,E.SB)("collapsed, void",(0,E.oB)({transform:"rotate(0deg)"})),(0,E.SB)("expanded",(0,E.oB)({transform:"rotate(180deg)"})),(0,E.eR)("expanded <=> collapsed, void => collapsed",(0,E.jt)("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),bodyExpansion:(0,E.X$)("bodyExpansion",[(0,E.SB)("collapsed, void",(0,E.oB)({height:"0px",visibility:"hidden"})),(0,E.SB)("expanded",(0,E.oB)({height:"*",visibility:"visible"})),(0,E.eR)("expanded <=> collapsed, void => collapsed",(0,E.jt)("225ms cubic-bezier(0.4,0.0,0.2,1)"))])},N=function(){var t=function t(e){_classCallCheck(this,t),this._template=e};return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Rgc))},t.\u0275dir=n.lG2({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t}(),z=0,Z=new n.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),B=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,r,a,s,c,u,l){var h;return _classCallCheck(this,i),(h=e.call(this,t,r,a))._viewContainerRef=s,h._animationMode=u,h._hideToggle=!1,h.afterExpand=new n.vpe,h.afterCollapse=new n.vpe,h._inputChanges=new o.xQ,h._headerId="mat-expansion-panel-header-"+z++,h._bodyAnimationDone=new o.xQ,h.accordion=t,h._document=c,h._bodyAnimationDone.pipe((0,y.x)(function(t,e){return t.fromState===e.fromState&&t.toState===e.toState})).subscribe(function(t){"void"!==t.fromState&&("expanded"===t.toState?h.afterExpand.emit():"collapsed"===t.toState&&h.afterCollapse.emit())}),l&&(h.hideToggle=l.hideToggle),h}return _createClass(i,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(t){this._hideToggle=(0,r.Ig)(t)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(t){this._togglePosition=t}},{key:"_hasSpacing",value:function(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var t=this;this._lazyContent&&this.opened.pipe((0,_.O)(null),(0,b.h)(function(){return t.expanded&&!t._portal}),(0,w.q)(1)).subscribe(function(){t._portal=new p.UE(t._lazyContent._template,t._viewContainerRef)})}},{key:"ngOnChanges",value:function(t){this._inputChanges.next(t)}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(i.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}}]),i}(d);return t.\u0275fac=function(e){return new(e||t)(n.Y36(M,12),n.Y36(n.sBO),n.Y36(s.A8),n.Y36(n.s_b),n.Y36(g.K0),n.Y36(k.Qb,8),n.Y36(Z,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,i){var r;(1&t&&n.Suo(i,N,5),2&t)&&(n.iGM(r=n.CRH())&&(e._lazyContent=r.first))},viewQuery:function(t,e){var i;(1&t&&n.Gf(S,5),2&t)&&(n.iGM(i=n.CRH())&&(e._body=i.first))},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&n.ekj("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[n._Bn([{provide:M,useValue:void 0}]),n.qOj,n.TTD],ngContentSelectors:x,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(n.F$t(R),n.Hsn(0),n.TgZ(1,"div",0,1),n.NdJ("@bodyExpansion.done",function(t){return e._bodyAnimationDone.next(t)}),n.TgZ(3,"div",2),n.Hsn(4,1),n.YNc(5,I,0,0,"ng-template",3),n.qZA(),n.Hsn(6,2),n.qZA()),2&t&&(n.xp6(1),n.Q6J("@bodyExpansion",e._getExpandedState())("id",e.id),n.uIk("aria-labelledby",e._headerId),n.xp6(4),n.Q6J("cdkPortalOutlet",e._portal))},directives:[p.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-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 button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[L.bodyExpansion]},changeDetection:0}),t}(),F=function(){var t=function(){function t(e,i,n,r,o,s){var c=this;_classCallCheck(this,t),this.panel=e,this._element=i,this._focusMonitor=n,this._changeDetectorRef=r,this._animationMode=s,this._parentChangeSubscription=a.w.EMPTY;var u=e.accordion?e.accordion._stateChanges.pipe((0,b.h)(function(t){return!(!t.hideToggle&&!t.togglePosition)})):C.E;this._parentChangeSubscription=(0,T.T)(e.opened,e.closed,u,e._inputChanges.pipe((0,b.h)(function(t){return!!(t.hideToggle||t.disabled||t.togglePosition)}))).subscribe(function(){return c._changeDetectorRef.markForCheck()}),e.closed.pipe((0,b.h)(function(){return e._containsFocus()})).subscribe(function(){return n.focusVia(i,"program")}),o&&(this.expandedHeight=o.expandedHeight,this.collapsedHeight=o.collapsedHeight)}return _createClass(t,[{key:"disabled",get:function(){return this.panel.disabled}},{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_getHeaderHeight",value:function(){var t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}},{key:"_keydown",value:function(t){switch(t.keyCode){case A.L_:case A.K5:(0,A.Vb)(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}},{key:"focus",value:function(t,e){t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}},{key:"ngAfterViewInit",value:function(){var t=this;this._focusMonitor.monitor(this._element).subscribe(function(e){e&&t.panel.accordion&&t.panel.accordion._handleHeaderFocus(t)})}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(B,1),n.Y36(n.SBq),n.Y36(v.tE),n.Y36(n.sBO),n.Y36(Z,8),n.Y36(k.Qb,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&n.NdJ("click",function(){return e._toggle()})("keydown",function(t){return e._keydown(t)}),2&t&&(n.uIk("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),n.Udp("height",e._getHeaderHeight()),n.ekj("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:D,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(n.F$t(P),n.TgZ(0,"span",0),n.Hsn(1),n.Hsn(2,1),n.Hsn(3,2),n.qZA(),n.YNc(4,O,1,1,"span",1)),2&t&&(n.xp6(4),n.Q6J("ngIf",e._showToggle()))},directives:[g.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}[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 .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[L.indicatorRotate]},changeDetection:0}),t}(),q=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t}(),H=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t}(),U=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.apply(this,arguments))._ownHeaders=new n.n_E,t._hideToggle=!1,t.displayMode="default",t.togglePosition="after",t}return _createClass(i,[{key:"hideToggle",get:function(){return this._hideToggle},set:function(t){this._hideToggle=(0,r.Ig)(t)}},{key:"ngAfterContentInit",value:function(){var t=this;this._headers.changes.pipe((0,_.O)(this._headers)).subscribe(function(e){t._ownHeaders.reset(e.filter(function(e){return e.panel.accordion===t})),t._ownHeaders.notifyOnChanges()}),this._keyManager=new v.Em(this._ownHeaders).withWrap().withHomeAndEnd()}},{key:"_handleHeaderKeydown",value:function(t){this._keyManager.onKeydown(t)}},{key:"_handleHeaderFocus",value:function(t){this._keyManager.updateActiveItem(t)}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(i.prototype),"ngOnDestroy",this).call(this),this._ownHeaders.destroy()}}]),i}(l);return e.\u0275fac=function(i){return(t||(t=n.n5z(e)))(i||e)},e.\u0275dir=n.lG2({type:e,selectors:[["mat-accordion"]],contentQueries:function(t,e,i){var r;(1&t&&n.Suo(i,F,5),2&t)&&(n.iGM(r=n.CRH())&&(e._headers=r))},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&n.ekj("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[n._Bn([{provide:M,useExisting:e}]),n.qOj]}),e}(),G=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[g.ez,m.BQ,f,p.eL]]}),t}()},66283:function(t,e,i){"use strict";i.d(e,{G_:function(){return W},TO:function(){return z},KE:function(){return X},Eo:function(){return B},lN:function(){return $},bx:function(){return H},hX:function(){return U},UY:function(){return G},R9:function(){return K}});var n=i(36337),r=i(61511),o=i(31572),a=i(71522),s=i(19861),c=i(55959),u=i(31906),l=i(87254),h=i(56238),d=i(25416),f=i(90611),p=i(10709),g=i(43490),m=i(22526),v=i(11353),y=["underline"],_=["connectionContainer"],b=["inputContainer"],w=["label"];function A(t,e){1&t&&(o.ynx(0),o.TgZ(1,"div",14),o._UZ(2,"div",15),o._UZ(3,"div",16),o._UZ(4,"div",17),o.qZA(),o.TgZ(5,"div",18),o._UZ(6,"div",15),o._UZ(7,"div",16),o._UZ(8,"div",17),o.qZA(),o.BQk())}function k(t,e){1&t&&(o.TgZ(0,"div",19),o.Hsn(1,1),o.qZA())}function C(t,e){if(1&t&&(o.ynx(0),o.Hsn(1,2),o.TgZ(2,"span"),o._uU(3),o.qZA(),o.BQk()),2&t){var i=o.oxw(2);o.xp6(3),o.Oqu(i._control.placeholder)}}function T(t,e){1&t&&o.Hsn(0,3,["*ngSwitchCase","true"])}function E(t,e){1&t&&(o.TgZ(0,"span",23),o._uU(1," *"),o.qZA())}function S(t,e){if(1&t){var i=o.EpF();o.TgZ(0,"label",20,21),o.NdJ("cdkObserveContent",function(){return o.CHM(i),o.oxw().updateOutlineGap()}),o.YNc(2,C,4,1,"ng-container",12),o.YNc(3,T,1,0,"ng-content",12),o.YNc(4,E,2,0,"span",22),o.qZA()}if(2&t){var n=o.oxw();o.ekj("mat-empty",n._control.empty&&!n._shouldAlwaysFloat())("mat-form-field-empty",n._control.empty&&!n._shouldAlwaysFloat())("mat-accent","accent"==n.color)("mat-warn","warn"==n.color),o.Q6J("cdkObserveContentDisabled","outline"!=n.appearance)("id",n._labelId)("ngSwitch",n._hasLabel()),o.uIk("for",n._control.id)("aria-owns",n._control.id),o.xp6(2),o.Q6J("ngSwitchCase",!1),o.xp6(1),o.Q6J("ngSwitchCase",!0),o.xp6(1),o.Q6J("ngIf",!n.hideRequiredMarker&&n._control.required&&!n._control.disabled)}}function I(t,e){1&t&&(o.TgZ(0,"div",24),o.Hsn(1,4),o.qZA())}function R(t,e){if(1&t&&(o.TgZ(0,"div",25,26),o._UZ(2,"span",27),o.qZA()),2&t){var i=o.oxw();o.xp6(2),o.ekj("mat-accent","accent"==i.color)("mat-warn","warn"==i.color)}}function x(t,e){if(1&t&&(o.TgZ(0,"div"),o.Hsn(1,5),o.qZA()),2&t){var i=o.oxw();o.Q6J("@transitionMessages",i._subscriptAnimationState)}}function O(t,e){if(1&t&&(o.TgZ(0,"div",31),o._uU(1),o.qZA()),2&t){var i=o.oxw(2);o.Q6J("id",i._hintLabelId),o.xp6(1),o.Oqu(i.hintLabel)}}function P(t,e){if(1&t&&(o.TgZ(0,"div",28),o.YNc(1,O,2,2,"div",29),o.Hsn(2,6),o._UZ(3,"div",30),o.Hsn(4,7),o.qZA()),2&t){var i=o.oxw();o.Q6J("@transitionMessages",i._subscriptAnimationState),o.xp6(1),o.Q6J("ngIf",i.hintLabel)}}var D=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],M=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],L=0,N=new o.OlP("MatError"),z=function(){var t=function t(e,i){_classCallCheck(this,t),this.id="mat-error-"+L++,e||i.nativeElement.setAttribute("aria-live","polite")};return t.\u0275fac=function(e){return new(e||t)(o.$8M("aria-live"),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&o.uIk("id",e.id)},inputs:{id:"id"},features:[o._Bn([{provide:N,useExisting:t}])]}),t}(),Z={transitionMessages:(0,p.X$)("transitionMessages",[(0,p.SB)("enter",(0,p.oB)({opacity:1,transform:"translateY(0%)"})),(0,p.eR)("void => enter",[(0,p.oB)({opacity:0,transform:"translateY(-5px)"}),(0,p.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},B=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t}),t}(),F=0,q=new o.OlP("MatHint"),H=function(){var t=function t(){_classCallCheck(this,t),this.align="start",this.id="mat-hint-"+F++};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(o.uIk("id",e.id)("align",null),o.ekj("mat-form-field-hint-end","end"===e.align))},inputs:{align:"align",id:"id"},features:[o._Bn([{provide:q,useExisting:t}])]}),t}(),U=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-label"]]}),t}(),G=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-placeholder"]]}),t}(),j=new o.OlP("MatPrefix"),Y=new o.OlP("MatSuffix"),K=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["","matSuffix",""]],features:[o._Bn([{provide:Y,useExisting:t}])]}),t}(),V=0,J=(0,a.pj)(function t(e){_classCallCheck(this,t),this._elementRef=e},"primary"),Q=new o.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),W=new o.OlP("MatFormField"),X=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,a,s,u,l){var h;return _classCallCheck(this,i),(h=e.call(this,t))._elementRef=t,h._changeDetectorRef=n,h._dir=o,h._defaults=a,h._platform=s,h._ngZone=u,h._outlineGapCalculationNeededImmediately=!1,h._outlineGapCalculationNeededOnStable=!1,h._destroyed=new c.xQ,h._showAlwaysAnimate=!1,h._subscriptAnimationState="",h._hintLabel="",h._hintLabelId="mat-hint-"+V++,h._labelId="mat-form-field-label-"+V++,h.floatLabel=h._getDefaultFloatLabelState(),h._animationsEnabled="NoopAnimations"!==l,h.appearance=a&&a.appearance?a.appearance:"legacy",h._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker,h}return _createClass(i,[{key:"appearance",get:function(){return this._appearance},set:function(t){var e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(t){this._hideRequiredMarker=(0,s.Ig)(t)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(t){this._hintLabel=t,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(t){this._explicitFormFieldControl=t}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var t=this;this._validateControlChild();var e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(e.controlType)),e.stateChanges.pipe((0,h.O)(null)).subscribe(function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe((0,d.R)(this._destroyed)).subscribe(function(){return t._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.pipe((0,d.R)(t._destroyed)).subscribe(function(){t._outlineGapCalculationNeededOnStable&&t.updateOutlineGap()})}),(0,u.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){t._outlineGapCalculationNeededOnStable=!0,t._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,h.O)(null)).subscribe(function(){t._processHints(),t._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,h.O)(null)).subscribe(function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,d.R)(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?t._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return t.updateOutlineGap()})}):t.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(t){var e=this._control?this._control.ngControl:null;return e&&e[t]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var t=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,l.R)(this._label.nativeElement,"transitionend").pipe((0,f.q)(1)).subscribe(function(){t._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push.apply(t,_toConsumableArray(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var e=this._hintChildren?this._hintChildren.find(function(t){return"start"===t.align}):null,i=this._hintChildren?this._hintChildren.find(function(t){return"end"===t.align}):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),i&&t.push(i.id)}else this._errorChildren&&t.push.apply(t,_toConsumableArray(this._errorChildren.map(function(t){return t.id})));this._control.setDescribedByIds(t)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var t=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&t&&t.children.length&&t.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var e=0,i=0,n=this._connectionContainerRef.nativeElement,r=n.querySelectorAll(".mat-form-field-outline-start"),o=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=n.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(a),c=t.children,u=this._getStartEnd(c[0].getBoundingClientRect()),l=0,h=0;h0?.75*l+10:0}for(var d=0;d1&&void 0!==arguments[1]?arguments[1]:t;return this._fontCssClassesByAlias.set(t,e),this}},{key:"classNameForFontAlias",value:function(t){return this._fontCssClassesByAlias.get(t)||t}},{key:"setDefaultFontSetClass",value:function(t){return this._defaultFontSetClass=t,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(t){var e=this,i=this._sanitizer.sanitize(n.q3G.RESOURCE_URL,t);if(!i)throw w(t);var r=this._cachedIconsByUrl.get(i);return r?(0,s.of)(T(r)):this._loadSvgIconFromConfig(new k(t,null)).pipe((0,h.b)(function(t){return e._cachedIconsByUrl.set(i,t)}),(0,d.U)(function(t){return T(t)}))}},{key:"getNamedSvgIcon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=E(e,t),n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);if(n=this._getIconConfigFromResolvers(e,t))return this._svgIconConfigs.set(i,n),this._getSvgFromConfig(n);var r=this._iconSetConfigs.get(e);return r?this._getSvgFromIconSetConfigs(t,r):(0,c._)(b(i))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(t){return t.svgText?(0,s.of)(T(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe((0,d.U)(function(t){return T(t)}))}},{key:"_getSvgFromIconSetConfigs",value:function(t,e){var i=this,r=this._extractIconWithNameFromAnySet(t,e);if(r)return(0,s.of)(r);var o=e.filter(function(t){return!t.svgText}).map(function(t){return i._loadSvgIconSetFromConfig(t).pipe((0,f.K)(function(e){var r=i._sanitizer.sanitize(n.q3G.RESOURCE_URL,t.url);return i._errorHandler.handleError(new Error("Loading icon set URL: ".concat(r," failed: ").concat(e.message))),(0,s.of)(null)}))});return(0,u.D)(o).pipe((0,d.U)(function(){var n=i._extractIconWithNameFromAnySet(t,e);if(!n)throw b(t);return n}))}},{key:"_extractIconWithNameFromAnySet",value:function(t,e){for(var i=e.length-1;i>=0;i--){var n=e[i];if(n.svgText&&n.svgText.indexOf(t)>-1){var r=this._svgElementFromConfig(n),o=this._extractSvgIconFromSet(r,t,n.options);if(o)return o}}return null}},{key:"_loadSvgIconFromConfig",value:function(t){var e=this;return this._fetchIcon(t).pipe((0,h.b)(function(e){return t.svgText=e}),(0,d.U)(function(){return e._svgElementFromConfig(t)}))}},{key:"_loadSvgIconSetFromConfig",value:function(t){return t.svgText?(0,s.of)(null):this._fetchIcon(t).pipe((0,h.b)(function(e){return t.svgText=e}))}},{key:"_extractSvgIconFromSet",value:function(t,e,i){var n=t.querySelector('[id="'.concat(e,'"]'));if(!n)return null;var r=n.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,i);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),i);var o=this._svgElementFromString("");return o.appendChild(r),this._setSvgAttributes(o,i)}},{key:"_svgElementFromString",value:function(t){var e=this._document.createElement("DIV");e.innerHTML=t;var i=e.querySelector("svg");if(!i)throw Error(" tag not found");return i}},{key:"_toSvgElement",value:function(t){for(var e=this._svgElementFromString(""),i=t.attributes,n=0;n-1}},{key:"_isBadInput",value:function(){var t=this._elementRef.nativeElement.validity;return t&&t.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}}]),i}(g);return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(a.t4),r.Y36(l.a5,10),r.Y36(l.F,8),r.Y36(l.sg,8),r.Y36(s.rD),r.Y36(d,10),r.Y36(n.Lq),r.Y36(r.R0b),r.Y36(c.G_,8))},t.\u0275dir=r.lG2({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&r.NdJ("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(r.Ikx("disabled",e.disabled)("required",e.required),r.uIk("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),r.ekj("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[r._Bn([{provide:c.Eo,useExisting:t}]),r.qOj,r.TTD]}),t}(),v=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[s.rD],imports:[[n.Ky,c.lN,s.BQ],n.Ky,c.lN]}),t}()},85250:function(t,e,i){"use strict";i.d(e,{i$:function(){return v},Tg:function(){return b},ie:function(){return w}});var n=i(61511),r=i(31572),o=i(71522),a=i(19861),s=i(55959),c=i(25416),u=(i(56238),i(24621),i(4230),i(75842),i(16073),i(27679)),l=["*"],h=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],d=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],f=(0,o.Id)((0,o.Kr)(function t(){_classCallCheck(this,t)})),p=(0,o.Kr)(function t(){_classCallCheck(this,t)}),g=new r.OlP("MatList"),m=new r.OlP("MatNavList"),v=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this))._elementRef=t,n._stateChanges=new s.xQ,"action-list"===n._getListType()&&t.nativeElement.classList.add("mat-action-list"),n}return _createClass(i,[{key:"_getListType",value:function(){var t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),i}(f);return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[r._Bn([{provide:g,useExisting:t}]),r.qOj,r.TTD],ngContentSelectors:l,decls:1,vars:0,template:function(t,e){1&t&&(r.F$t(),r.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.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:transparent;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{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:transparent;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{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 button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}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-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.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}}\n'],encapsulation:2,changeDetection:0}),t}(),y=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t}(),_=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t}(),b=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;_classCallCheck(this,i),(a=e.call(this))._element=t,a._isInteractiveList=!1,a._destroyed=new s.xQ,a._disabled=!1,a._isInteractiveList=!!(r||o&&"action-list"===o._getListType()),a._list=r||o;var u=a._getHostElement();return"button"!==u.nodeName.toLowerCase()||u.hasAttribute("type")||u.setAttribute("type","button"),a._list&&a._list._stateChanges.pipe((0,c.R)(a._destroyed)).subscribe(function(){n.markForCheck()}),a}return _createClass(i,[{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(t){this._disabled=(0,a.Ig)(t)}},{key:"ngAfterContentInit",value:function(){(0,o.E0)(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_isRippleDisabled",value:function(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}},{key:"_getHostElement",value:function(){return this._element.nativeElement}}]),i}(p);return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(m,8),r.Y36(g,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,i){var n;(1&t&&(r.Suo(i,y,5),r.Suo(i,_,5),r.Suo(i,o.X2,5)),2&t)&&(r.iGM(n=r.CRH())&&(e._avatar=n.first),r.iGM(n=r.CRH())&&(e._icon=n.first),r.iGM(n=r.CRH())&&(e._lines=n))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&r.ekj("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[r.qOj],ngContentSelectors:d,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(t,e){1&t&&(r.F$t(h),r.TgZ(0,"div",0),r._UZ(1,"div",1),r.Hsn(2),r.TgZ(3,"div",2),r.Hsn(4,1),r.qZA(),r.Hsn(5,2),r.qZA()),2&t&&(r.xp6(1),r.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[o.wG],encapsulation:2,changeDetection:0}),t}(),w=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[o.uc,o.si,o.BQ,o.us,n.ez],o.uc,o.BQ,o.us,u.t]}),t}()},8055:function(t,e,i){"use strict";i.d(e,{VK:function(){return z},OP:function(){return D},Tx:function(){return U},p6:function(){return q}});var n=i(24621),r=i(19861),o=i(75842),a=i(31572),s=i(55959),c=i(87570),u=i(31906),l=i(40878),h=i(92709),d=i(56238),f=i(44689),p=i(90611),g=i(43835),m=i(25416),v=i(60509),y=i(10709),_=i(26899),b=i(61511),w=i(71522),A=i(2522),k=i(11353),C=i(4253),T=i(22526),E=["mat-menu-item",""],S=["*"];function I(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"div",0),a.NdJ("keydown",function(t){return a.CHM(i),a.oxw()._handleKeydown(t)})("click",function(){return a.CHM(i),a.oxw().closed.emit("click")})("@transformMenu.start",function(t){return a.CHM(i),a.oxw()._onAnimationStart(t)})("@transformMenu.done",function(t){return a.CHM(i),a.oxw()._onAnimationDone(t)}),a.TgZ(1,"div",1),a.Hsn(2),a.qZA(),a.qZA()}if(2&t){var n=a.oxw();a.Q6J("id",n.panelId)("ngClass",n._classList)("@transformMenu",n._panelAnimationState),a.uIk("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby||null)("aria-describedby",n.ariaDescribedby||null)}}var R={transformMenu:(0,y.X$)("transformMenu",[(0,y.SB)("void",(0,y.oB)({opacity:0,transform:"scale(0.8)"})),(0,y.eR)("void => enter",(0,y.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,y.oB)({opacity:1,transform:"scale(1)"}))),(0,y.eR)("* => void",(0,y.jt)("100ms 25ms linear",(0,y.oB)({opacity:0})))]),fadeInItems:(0,y.X$)("fadeInItems",[(0,y.SB)("showing",(0,y.oB)({opacity:1})),(0,y.eR)("void => *",[(0,y.oB)({opacity:0}),(0,y.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},x=new a.OlP("MatMenuContent"),O=new a.OlP("MAT_MENU_PANEL"),P=(0,w.Kr)((0,w.Id)(function t(){_classCallCheck(this,t)})),D=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;return _classCallCheck(this,i),(a=e.call(this))._elementRef=t,a._focusMonitor=r,a._parentMenu=o,a.role="menuitem",a._hovered=new s.xQ,a._focused=new s.xQ,a._highlighted=!1,a._triggersSubmenu=!1,o&&o.addItem&&o.addItem(_assertThisInitialized(a)),a}return _createClass(i,[{key:"focus",value:function(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var t,e,i=this._elementRef.nativeElement.cloneNode(!0),n=i.querySelectorAll("mat-icon, .material-icons"),r=0;r0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe((0,p.q)(1)).subscribe(function(){return t._focusFirstItem(e)}):this._focusFirstItem(e)}},{key:"_focusFirstItem",value:function(t){var e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length)for(var i=this._directDescendantItems.first._getHostElement().parentElement;i;){if("menu"===i.getAttribute("role")){i.focus();break}i=i.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(t){var e="mat-elevation-z".concat(Math.min(4+t,24)),i=Object.keys(this._classList).find(function(t){return t.startsWith("mat-elevation-z")});i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}},{key:"setPositionClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,i=this._classList;i["mat-menu-before"]="before"===t,i["mat-menu-after"]="after"===t,i["mat-menu-above"]="above"===e,i["mat-menu-below"]="below"===e}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(t){this._animationDone.next(t),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var t=this;this._allItems.changes.pipe((0,d.O)(this._allItems)).subscribe(function(e){t._directDescendantItems.reset(e.filter(function(e){return e._parentMenu===t})),t._directDescendantItems.notifyOnChanges()})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(M))},t.\u0275dir=a.lG2({type:t,contentQueries:function(t,e,i){var n;(1&t&&(a.Suo(i,x,5),a.Suo(i,D,5),a.Suo(i,D,4)),2&t)&&(a.iGM(n=a.CRH())&&(e.lazyContent=n.first),a.iGM(n=a.CRH())&&(e._allItems=n),a.iGM(n=a.CRH())&&(e.items=n))},viewQuery:function(t,e){var i;(1&t&&a.Gf(a.Rgc,5),2&t)&&(a.iGM(i=a.CRH())&&(e.templateRef=i.first))},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t}(),z=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){return _classCallCheck(this,i),e.call(this,t,n,r)}return i}(N);return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(M))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&a.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[a._Bn([{provide:O,useExisting:t}]),a.qOj],ngContentSelectors:S,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(a.F$t(),a.YNc(0,I,3,6,"ng-template"))},directives:[b.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}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}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}\n'],encapsulation:2,data:{animation:[R.transformMenu,R.fadeInItems]},changeDetection:0}),t}(),Z=new a.OlP("mat-menu-scroll-strategy"),B={provide:Z,deps:[A.aV],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},F=(0,k.i$)({passive:!0}),q=function(){var t=function(){function t(e,i,r,o,s,u,l,h){var d=this;_classCallCheck(this,t),this._overlay=e,this._element=i,this._viewContainerRef=r,this._menuItemInstance=u,this._dir=l,this._focusMonitor=h,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=c.w.EMPTY,this._hoverSubscription=c.w.EMPTY,this._menuCloseSubscription=c.w.EMPTY,this._handleTouchStart=function(t){(0,n.yG)(t)||(d._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new a.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new a.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=s instanceof N?s:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,F),u&&(u._triggersSubmenu=this.triggersSubmenu())}return _createClass(t,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(t){this.menu=t}},{key:"menu",get:function(){return this._menu},set:function(t){var e=this;t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(function(t){e._destroyMenu(t),"click"!==t&&"tab"!==t||!e._parentMaterialMenu||e._parentMaterialMenu.closed.emit(t)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){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()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var t=this;if(!this._menuOpen){this._checkMenu();var e=this._createOverlay(),i=e.getConfig();this._setPosition(i.positionStrategy),i.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return t.closeMenu()}),this._initMenu(),this.menu instanceof N&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}},{key:"updatePosition",value:function(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}},{key:"_destroyMenu",value:function(t){var e=this;if(this._overlayRef&&this.menuOpen){var i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==t&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,i instanceof N?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe((0,g.h)(function(t){return"void"===t.toState}),(0,p.q)(1),(0,m.R)(i.lazyContent._attached)).subscribe({next:function(){return i.lazyContent.detach()},complete:function(){return e._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i.lazyContent&&i.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var t=0,e=this.menu.parentMenu;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}},{key:"_setIsMenuOpen",value:function(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new A.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(t){var e=this;this.menu.setPositionClasses&&t.positionChanges.subscribe(function(t){e.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(t){var e=_slicedToArray("before"===this.menu.xPosition?["end","start"]:["start","end"],2),i=e[0],n=e[1],r=_slicedToArray("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),o=r[0],a=r[1],s=o,c=a,u=i,l=n,h=0;this.triggersSubmenu()?(l=i="before"===this.menu.xPosition?"start":"end",n=u="end"===i?"start":"end",h="bottom"===o?8:-8):this.menu.overlapTrigger||(s="top"===o?"bottom":"top",c="top"===a?"bottom":"top"),t.withPositions([{originX:i,originY:s,overlayX:u,overlayY:o,offsetY:h},{originX:n,originY:s,overlayX:l,overlayY:o,offsetY:h},{originX:i,originY:c,overlayX:u,overlayY:a,offsetY:-h},{originX:n,originY:c,overlayX:l,overlayY:a,offsetY:-h}])}},{key:"_menuClosingActions",value:function(){var t=this,e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments(),n=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,l.of)(),r=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,g.h)(function(e){return e!==t._menuItemInstance}),(0,g.h)(function(){return t._menuOpen})):(0,l.of)();return(0,u.T)(e,n,r,i)}},{key:"_handleMousedown",value:function(t){(0,n.X6)(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}},{key:"_handleKeydown",value:function(t){var e=t.keyCode;e!==o.K5&&e!==o.L_||(this._openedBy="keyboard"),this.triggersSubmenu()&&(e===o.SV&&"ltr"===this.dir||e===o.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var t=this;this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,g.h)(function(e){return e===t._menuItemInstance&&!e.disabled}),(0,v.g)(0,h.e)).subscribe(function(){t._openedBy="mouse",t.menu instanceof N&&t.menu._isAnimating?t.menu._animationDone.pipe((0,p.q)(1),(0,v.g)(0,h.e),(0,m.R)(t._parentMaterialMenu._hovered())).subscribe(function(){return t.openMenu()}):t.openMenu()}))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new _.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(A.aV),a.Y36(a.SBq),a.Y36(a.s_b),a.Y36(Z),a.Y36(O,8),a.Y36(D,10),a.Y36(T.Is,8),a.Y36(n.tE))},t.\u0275dir=a.lG2({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&a.NdJ("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&a.uIk("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t}(),H=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({providers:[B],imports:[w.BQ]}),t}(),U=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({providers:[B],imports:[[b.ez,w.BQ,w.si,A.U8,H],C.ZD,w.BQ,H]}),t}()},73005:function(t,e,i){"use strict";i.d(e,{NW:function(){return k},ye:function(){return y},TU:function(){return C}});var n=i(61511),r=i(31572),o=i(71522),a=i(15980),s=i(4786),c=i(36922),u=i(19861),l=i(55959),h=i(66283);function d(t,e){if(1&t&&(r.TgZ(0,"mat-option",19),r._uU(1),r.qZA()),2&t){var i=e.$implicit;r.Q6J("value",i),r.xp6(1),r.hij(" ",i," ")}}function f(t,e){if(1&t){var i=r.EpF();r.TgZ(0,"mat-form-field",16),r.TgZ(1,"mat-select",17),r.NdJ("selectionChange",function(t){return r.CHM(i),r.oxw(2)._changePageSize(t.value)}),r.YNc(2,d,2,2,"mat-option",18),r.qZA(),r.qZA()}if(2&t){var n=r.oxw(2);r.Q6J("appearance",n._formFieldAppearance)("color",n.color),r.xp6(1),r.Q6J("value",n.pageSize)("disabled",n.disabled)("aria-label",n._intl.itemsPerPageLabel),r.xp6(1),r.Q6J("ngForOf",n._displayedPageSizeOptions)}}function p(t,e){if(1&t&&(r.TgZ(0,"div",20),r._uU(1),r.qZA()),2&t){var i=r.oxw(2);r.xp6(1),r.Oqu(i.pageSize)}}function g(t,e){if(1&t&&(r.TgZ(0,"div",12),r.TgZ(1,"div",13),r._uU(2),r.qZA(),r.YNc(3,f,3,6,"mat-form-field",14),r.YNc(4,p,2,1,"div",15),r.qZA()),2&t){var i=r.oxw();r.xp6(2),r.hij(" ",i._intl.itemsPerPageLabel," "),r.xp6(1),r.Q6J("ngIf",i._displayedPageSizeOptions.length>1),r.xp6(1),r.Q6J("ngIf",i._displayedPageSizeOptions.length<=1)}}function m(t,e){if(1&t){var i=r.EpF();r.TgZ(0,"button",21),r.NdJ("click",function(){return r.CHM(i),r.oxw().firstPage()}),r.O4$(),r.TgZ(1,"svg",7),r._UZ(2,"path",22),r.qZA(),r.qZA()}if(2&t){var n=r.oxw();r.Q6J("matTooltip",n._intl.firstPageLabel)("matTooltipDisabled",n._previousButtonsDisabled())("matTooltipPosition","above")("disabled",n._previousButtonsDisabled()),r.uIk("aria-label",n._intl.firstPageLabel)}}function v(t,e){if(1&t){var i=r.EpF();r.O4$(),r.kcU(),r.TgZ(0,"button",23),r.NdJ("click",function(){return r.CHM(i),r.oxw().lastPage()}),r.O4$(),r.TgZ(1,"svg",7),r._UZ(2,"path",24),r.qZA(),r.qZA()}if(2&t){var n=r.oxw();r.Q6J("matTooltip",n._intl.lastPageLabel)("matTooltipDisabled",n._nextButtonsDisabled())("matTooltipPosition","above")("disabled",n._nextButtonsDisabled()),r.uIk("aria-label",n._intl.lastPageLabel)}}var y=function(){var t=function t(){_classCallCheck(this,t),this.changes=new l.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(t,e,i){if(0==i||0==e)return"0 of ".concat(i);var n=t*e;return"".concat(n+1," \u2013 ").concat(n<(i=Math.max(i,0))?Math.min(n+e,i):n+e," of ").concat(i)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t}(),_={provide:y,deps:[[new r.FiY,new r.tp0,y]],useFactory:function(t){return t||new y}},b=new r.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),w=(0,o.Id)((0,o.dB)(function t(){_classCallCheck(this,t)})),A=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,o){var a;if(_classCallCheck(this,i),(a=e.call(this))._intl=t,a._changeDetectorRef=n,a._pageIndex=0,a._length=0,a._pageSizeOptions=[],a._hidePageSize=!1,a._showFirstLastButtons=!1,a.page=new r.vpe,a._intlChanges=t.changes.subscribe(function(){return a._changeDetectorRef.markForCheck()}),o){var s=o.pageSize,c=o.pageSizeOptions,u=o.hidePageSize,l=o.showFirstLastButtons;null!=s&&(a._pageSize=s),null!=c&&(a._pageSizeOptions=c),null!=u&&(a._hidePageSize=u),null!=l&&(a._showFirstLastButtons=l)}return _possibleConstructorReturn(a)}return _createClass(i,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(t){this._pageIndex=Math.max((0,u.su)(t),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(t){this._length=(0,u.su)(t),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(t){this._pageSize=Math.max((0,u.su)(t),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(t){this._pageSizeOptions=(t||[]).map(function(t){return(0,u.su)(t)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(t){this._hidePageSize=(0,u.Ig)(t)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(t){this._showFirstLastButtons=(0,u.Ig)(t)}},{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var t=this.getNumberOfPages()-1;return this.pageIndex void",(0,k.IO)("@transformPanel",[(0,k.pV)()],{optional:!0}))]),transformPanel:(0,k.X$)("transformPanel",[(0,k.SB)("void",(0,k.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,k.SB)("showing",(0,k.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,k.SB)("showing-multiple",(0,k.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,k.eR)("void => *",(0,k.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,k.eR)("* => void",(0,k.jt)("100ms 25ms linear",(0,k.oB)({opacity:0})))])},N=0,z=new o.OlP("mat-select-scroll-strategy"),Z=new o.OlP("MAT_SELECT_CONFIG"),B={provide:z,deps:[n.aV],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},F=function t(e,i){_classCallCheck(this,t),this.source=e,this.value=i},q=(0,a.Kr)((0,a.sb)((0,a.Id)((0,a.FD)(function t(e,i,n,r,o){_classCallCheck(this,t),this._elementRef=e,this._defaultErrorStateMatcher=i,this._parentForm=n,this._parentFormGroup=r,this.ngControl=o})))),H=new o.OlP("MatSelectTrigger"),U=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-select-trigger"]],features:[o._Bn([{provide:H,useExisting:t}])]}),t}(),G=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,a,s,c,u,l,h,d,w,A,k,C){var T,E,S,I;return _classCallCheck(this,i),(T=e.call(this,s,a,u,l,d))._viewportRuler=t,T._changeDetectorRef=n,T._ngZone=r,T._dir=c,T._parentFormField=h,T.ngControl=d,T._liveAnnouncer=k,T._defaultOptions=C,T._panelOpen=!1,T._compareWith=function(t,e){return t===e},T._uid="mat-select-"+N++,T._triggerAriaLabelledBy=null,T._destroy=new f.xQ,T._onChange=function(){},T._onTouched=function(){},T._valueId="mat-select-value-"+N++,T._panelDoneAnimatingStream=new f.xQ,T._overlayPanelClass=(null===(E=T._defaultOptions)||void 0===E?void 0:E.overlayPanelClass)||"",T._focused=!1,T.controlType="mat-select",T._required=!1,T._multiple=!1,T._disableOptionCentering=null!==(I=null===(S=T._defaultOptions)||void 0===S?void 0:S.disableOptionCentering)&&void 0!==I&&I,T.ariaLabel="",T.optionSelectionChanges=(0,p.P)(function(){var t=T.options;return t?t.changes.pipe((0,m.O)(t),(0,v.w)(function(){return g.T.apply(void 0,_toConsumableArray(t.map(function(t){return t.onSelectionChange})))})):T._ngZone.onStable.pipe((0,y.q)(1),(0,v.w)(function(){return T.optionSelectionChanges}))}),T.openedChange=new o.vpe,T._openedStream=T.openedChange.pipe((0,_.h)(function(t){return t}),(0,b.U)(function(){})),T._closedStream=T.openedChange.pipe((0,_.h)(function(t){return!t}),(0,b.U)(function(){})),T.selectionChange=new o.vpe,T.valueChange=new o.vpe,T.ngControl&&(T.ngControl.valueAccessor=_assertThisInitialized(T)),null!=(null==C?void 0:C.typeaheadDebounceInterval)&&(T._typeaheadDebounceInterval=C.typeaheadDebounceInterval),T._scrollStrategyFactory=A,T._scrollStrategy=T._scrollStrategyFactory(),T.tabIndex=parseInt(w)||0,T.id=T.id,T}return _createClass(i,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(t){this._required=(0,l.Ig)(t),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(t){this._multiple=(0,l.Ig)(t)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(t){this._disableOptionCentering=(0,l.Ig)(t)}},{key:"compareWith",get:function(){return this._compareWith},set:function(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(t){this._typeaheadDebounceInterval=(0,l.su)(t)}},{key:"id",get:function(){return this._id},set:function(t){this._id=t||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var t=this;this._selectionModel=new h.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,w.x)(),(0,A.R)(this._destroy)).subscribe(function(){return t._panelDoneAnimating(t.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var t=this;this._initKeyManager(),this._selectionModel.changed.pipe((0,A.R)(this._destroy)).subscribe(function(t){t.added.forEach(function(t){return t.select()}),t.removed.forEach(function(t){return t.deselect()})}),this.options.changes.pipe((0,m.O)(null),(0,A.R)(this._destroy)).subscribe(function(){t._resetOptions(),t._initializeSelection()})}},{key:"ngDoCheck",value:function(){var t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){var e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(t){this.value=t}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var t=this._selectionModel.selected.map(function(t){return t.viewValue});return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}},{key:"_handleClosedKeydown",value:function(t){var e=t.keyCode,i=e===d.JH||e===d.LH||e===d.oh||e===d.SV,n=e===d.K5||e===d.L_,r=this._keyManager;if(!r.isTyping()&&n&&!(0,d.Vb)(t)||(this.multiple||t.altKey)&&i)t.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;r.onKeydown(t);var a=this.selected;a&&o!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(t){var e=this._keyManager,i=t.keyCode,n=i===d.JH||i===d.LH,r=e.isTyping();if(n&&t.altKey)t.preventDefault(),this.close();else if(r||i!==d.K5&&i!==d.L_||!e.activeItem||(0,d.Vb)(t))if(!r&&this._multiple&&i===d.A&&t.ctrlKey){t.preventDefault();var o=this.options.some(function(t){return!t.disabled&&!t.selected});this.options.forEach(function(t){t.disabled||(o?t.select():t.deselect())})}else{var a=e.activeItemIndex;e.onKeydown(t),this._multiple&&n&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==a&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var t=this;this._overlayDir.positionChange.pipe((0,y.q)(1)).subscribe(function(){t._changeDetectorRef.detectChanges(),t._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var t=this;Promise.resolve().then(function(){t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value),t.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(t){var e=this;if(this._selectionModel.selected.forEach(function(t){return t.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(function(t){return e._selectValue(t)}),this._sortValues();else{var i=this._selectValue(t);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(t){var e=this,i=this.options.find(function(i){if(e._selectionModel.isSelected(i))return!1;try{return null!=i.value&&e._compareWith(i.value,t)}catch(n){return!1}});return i&&this._selectionModel.select(i),i}},{key:"_initKeyManager",value:function(){var t=this;this._keyManager=new u.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,A.R)(this._destroy)).subscribe(function(){t.panelOpen&&(!t.multiple&&t._keyManager.activeItem&&t._keyManager.activeItem._selectViaInteraction(),t.focus(),t.close())}),this._keyManager.change.pipe((0,A.R)(this._destroy)).subscribe(function(){t._panelOpen&&t.panel?t._scrollOptionIntoView(t._keyManager.activeItemIndex||0):t._panelOpen||t.multiple||!t._keyManager.activeItem||t._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var t=this,e=(0,g.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,A.R)(e)).subscribe(function(e){t._onSelect(e.source,e.isUserInput),e.isUserInput&&!t.multiple&&t._panelOpen&&(t.close(),t.focus())}),g.T.apply(void 0,_toConsumableArray(this.options.map(function(t){return t._stateChanges}))).pipe((0,A.R)(e)).subscribe(function(){t._changeDetectorRef.markForCheck(),t.stateChanges.next()})}},{key:"_onSelect",value:function(t,e){var i=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(i!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),i!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var t=this;if(this.multiple){var e=this.options.toArray();this._selectionModel.sort(function(i,n){return t.sortComparator?t.sortComparator(i,n,e):e.indexOf(i)-e.indexOf(n)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(t){var e;e=this.multiple?this.selected.map(function(t){return t.value}):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}},{key:"focus",value:function(t){this._elementRef.nativeElement.focus(t)}},{key:"_getPanelAriaLabelledby",value:function(){var t;if(this.ariaLabel)return null;var e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var t;if(this.ariaLabel)return null;var e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId(),i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}},{key:"_panelDoneAnimating",value:function(t){this.openedChange.emit(t)}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),i}(q);return t.\u0275fac=function(e){return new(e||t)(o.Y36(c.rL),o.Y36(o.sBO),o.Y36(o.R0b),o.Y36(a.rD),o.Y36(o.SBq),o.Y36(C.Is,8),o.Y36(T.F,8),o.Y36(T.sg,8),o.Y36(s.G_,8),o.Y36(T.a5,10),o.$8M("tabindex"),o.Y36(z),o.Y36(u.Kd),o.Y36(Z,8))},t.\u0275dir=o.lG2({type:t,viewQuery:function(t,e){var i;(1&t&&(o.Gf(E,5),o.Gf(S,5),o.Gf(n.pI,5)),2&t)&&(o.iGM(i=o.CRH())&&(e.trigger=i.first),o.iGM(i=o.CRH())&&(e.panel=i.first),o.iGM(i=o.CRH())&&(e._overlayDir=i.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[o.qOj,o.TTD]}),t}(),j=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.apply(this,arguments))._scrollTop=0,t._triggerFontSize=0,t._transformOrigin="top",t._offsetY=0,t._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],t}return _createClass(i,[{key:"_calculateOverlayScroll",value:function(t,e,i){var n=this._getItemHeight();return Math.min(Math.max(0,n*t-e+n/2),i)}},{key:"ngOnInit",value:function(){var t=this;_get(_getPrototypeOf(i.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe((0,A.R)(this._destroy)).subscribe(function(){t.panelOpen&&(t._triggerRect=t.trigger.nativeElement.getBoundingClientRect(),t._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var t=this;_get(_getPrototypeOf(i.prototype),"_canOpen",this).call(this)&&(_get(_getPrototypeOf(i.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,y.q)(1)).subscribe(function(){t._triggerFontSize&&t._overlayDir.overlayRef&&t._overlayDir.overlayRef.overlayElement&&(t._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(t._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(t){var e=(0,a.CB)(t,this.options,this.optionGroups),i=this._getItemHeight();this.panel.nativeElement.scrollTop=(0,a.jH)((t+e)*i,i,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(t){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),_get(_getPrototypeOf(i.prototype),"_panelDoneAnimating",this).call(this,t)}},{key:"_getChangeEvent",value:function(t){return new F(this,t)}},{key:"_calculateOverlayOffsetX",value:function(){var t,e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),n=this._isRtl(),r=this.multiple?56:32;if(this.multiple)t=40;else if(this.disableOptionCentering)t=16;else{var o=this._selectionModel.selected[0]||this.options.first;t=o&&o.group?32:16}n||(t*=-1);var a=0-(e.left+t-(n?r:0)),s=e.right+t-i.width+(n?0:r);a>0?t+=a+8:s>0&&(t-=s+8),this._overlayDir.offsetX=Math.round(t),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(t,e,i){var n,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(256/r);return this.disableOptionCentering?0:(n=0===this._scrollTop?t*r:this._scrollTop===i?(t-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):e-r/2,Math.round(-1*n-o))}},{key:"_checkOverlayWithinViewport",value:function(t){var e=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,r=i.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*e,256)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>n?this._adjustPanelDown(o,n,t):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(t,e){var i=Math.round(t-e);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(t,e,i){var n=Math.round(t-e);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var t,e=this._getItemHeight(),i=this._getItemCount(),n=Math.min(i*e,256),r=i*e-n;t=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),t+=(0,a.CB)(t,this.options,this.optionGroups);var o=n/2;this._scrollTop=this._calculateOverlayScroll(t,o,r),this._offsetY=this._calculateOverlayOffsetY(t,o,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-e+t/2,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),i}(G);return e.\u0275fac=function(i){return(t||(t=o.n5z(e)))(i||e)},e.\u0275cmp=o.Xpm({type:e,selectors:[["mat-select"]],contentQueries:function(t,e,i){var n;(1&t&&(o.Suo(i,H,5),o.Suo(i,a.ey,5),o.Suo(i,a.K7,5)),2&t)&&(o.iGM(n=o.CRH())&&(e.customTrigger=n.first),o.iGM(n=o.CRH())&&(e.options=n),o.iGM(n=o.CRH())&&(e.optionGroups=n))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&o.NdJ("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(o.uIk("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),o.ekj("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[o._Bn([{provide:s.Eo,useExisting:e},{provide:a.HF,useExisting:e}]),o.qOj],ngContentSelectors:M,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(t,e){if(1&t&&(o.F$t(D),o.TgZ(0,"div",0,1),o.NdJ("click",function(){return e.toggle()}),o.TgZ(3,"div",2),o.YNc(4,I,2,1,"span",3),o.YNc(5,O,3,2,"span",4),o.qZA(),o.TgZ(6,"div",5),o._UZ(7,"div",6),o.qZA(),o.qZA(),o.YNc(8,P,4,14,"ng-template",7),o.NdJ("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){var i=o.MAs(1);o.uIk("aria-owns",e.panelOpen?e.id+"-panel":null),o.xp6(3),o.Q6J("ngSwitch",e.empty),o.uIk("id",e._valueId),o.xp6(1),o.Q6J("ngSwitchCase",!0),o.xp6(1),o.Q6J("ngSwitchCase",!1),o.xp6(3),o.Q6J("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",i)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[n.xu,r.RF,r.n9,n.pI,r.ED,r.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;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{display:table-cell;vertical-align:middle}.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 transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.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:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[L.transformPanelWrap,L.transformPanel]},changeDetection:0}),e}(),Y=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[B],imports:[[r.ez,n.U8,a.Ng,a.BQ],c.ZD,s.lN,a.Ng,a.BQ]}),t}()},25122:function(t,e,i){"use strict";i.d(e,{JX:function(){return H},TM:function(){return U},Rh:function(){return q},SJ:function(){return G}});var n=i(11353),r=i(4253),o=i(61511),a=i(31572),s=i(71522),c=i(19861),u=i(75842),l=i(55959),h=i(87254),d=i(31906),f=i(43835),p=i(79996),g=i(88414),m=i(25416),v=i(98720),y=i(90611),_=i(56238),b=i(47701),w=i(10709),A=i(43490),k=i(24621),C=i(22526),T=["*"];function E(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"div",2),a.NdJ("click",function(){return a.CHM(i),a.oxw()._onBackdropClicked()}),a.qZA()}if(2&t){var n=a.oxw();a.ekj("mat-drawer-shown",n._isShowingBackdrop())}}function S(t,e){1&t&&(a.TgZ(0,"mat-drawer-content"),a.Hsn(1,2),a.qZA())}var I=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],R=["mat-drawer","mat-drawer-content","*"];function x(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"div",2),a.NdJ("click",function(){return a.CHM(i),a.oxw()._onBackdropClicked()}),a.qZA()}if(2&t){var n=a.oxw();a.ekj("mat-drawer-shown",n._isShowingBackdrop())}}function O(t,e){1&t&&(a.TgZ(0,"mat-sidenav-content",3),a.Hsn(1,2),a.qZA())}var P=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],D=["mat-sidenav","mat-sidenav-content","*"],M=".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-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",L={transformDrawer:(0,w.X$)("transform",[(0,w.SB)("open, open-instant",(0,w.oB)({transform:"none",visibility:"visible"})),(0,w.SB)("void",(0,w.oB)({"box-shadow":"none",visibility:"hidden"})),(0,w.eR)("void => open-instant",(0,w.jt)("0ms")),(0,w.eR)("void <=> open, open-instant => void",(0,w.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},N=new a.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),z=new a.OlP("MAT_DRAWER_CONTAINER"),Z=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,a){var s;return _classCallCheck(this,i),(s=e.call(this,r,o,a))._changeDetectorRef=t,s._container=n,s}return _createClass(i,[{key:"ngAfterContentInit",value:function(){var t=this;this._container._contentMarginChanges.subscribe(function(){t._changeDetectorRef.markForCheck()})}}]),i}(r.PQ);return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.sBO),a.Y36((0,a.Gpc)(function(){return F})),a.Y36(a.SBq),a.Y36(r.mF),a.Y36(a.R0b))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&a.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[a.qOj],ngContentSelectors:T,decls:1,vars:0,template:function(t,e){1&t&&(a.F$t(),a.Hsn(0))},encapsulation:2,changeDetection:0}),t}(),B=function(){var t=function(){function t(e,i,n,r,o,s,c){var d=this;_classCallCheck(this,t),this._elementRef=e,this._focusTrapFactory=i,this._focusMonitor=n,this._platform=r,this._ngZone=o,this._doc=s,this._container=c,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new l.xQ,this._animationEnd=new l.xQ,this._animationState="void",this.openedChange=new a.vpe(!0),this._openedStream=this.openedChange.pipe((0,f.h)(function(t){return t}),(0,p.U)(function(){})),this.openedStart=this._animationStarted.pipe((0,f.h)(function(t){return t.fromState!==t.toState&&0===t.toState.indexOf("open")}),(0,g.h)(void 0)),this._closedStream=this.openedChange.pipe((0,f.h)(function(t){return!t}),(0,p.U)(function(){})),this.closedStart=this._animationStarted.pipe((0,f.h)(function(t){return t.fromState!==t.toState&&"void"===t.toState}),(0,g.h)(void 0)),this._destroyed=new l.xQ,this.onPositionChanged=new a.vpe,this._modeChanged=new l.xQ,this.openedChange.subscribe(function(t){t?(d._doc&&(d._elementFocusedBeforeDrawerWasOpened=d._doc.activeElement),d._takeFocus()):d._isFocusWithinDrawer()&&d._restoreFocus()}),this._ngZone.runOutsideAngular(function(){(0,h.R)(d._elementRef.nativeElement,"keydown").pipe((0,f.h)(function(t){return t.keyCode===u.hY&&!d.disableClose&&!(0,u.Vb)(t)}),(0,m.R)(d._destroyed)).subscribe(function(t){return d._ngZone.run(function(){d.close(),t.stopPropagation(),t.preventDefault()})})}),this._animationEnd.pipe((0,v.x)(function(t,e){return t.fromState===e.fromState&&t.toState===e.toState})).subscribe(function(t){var e=t.fromState,i=t.toState;(0===i.indexOf("open")&&"void"===e||"void"===i&&0===e.indexOf("open"))&&d.openedChange.emit(d._opened)})}return _createClass(t,[{key:"position",get:function(){return this._position},set:function(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}},{key:"mode",get:function(){return this._mode},set:function(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}},{key:"disableClose",get:function(){return this._disableClose},set:function(t){this._disableClose=(0,c.Ig)(t)}},{key:"autoFocus",get:function(){var t=this._autoFocus;return null==t?"side"!==this.mode:t},set:function(t){this._autoFocus=(0,c.Ig)(t)}},{key:"opened",get:function(){return this._opened},set:function(t){this.toggle((0,c.Ig)(t))}},{key:"_takeFocus",value:function(){var t=this;this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(function(e){e||"function"!=typeof t._elementRef.nativeElement.focus||t._elementRef.nativeElement.focus()})}},{key:"_restoreFocus",value:function(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}},{key:"_isFocusWithinDrawer",value:function(){var t,e=null===(t=this._doc)||void 0===t?void 0:t.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}},{key:"ngAfterContentInit",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}},{key:"ngAfterContentChecked",value:function(){this._platform.isBrowser&&(this._enableAnimations=!0)}},{key:"ngOnDestroy",value:function(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(t){return this.toggle(!0,t)}},{key:"close",value:function(){return this.toggle(!1)}},{key:"_closeViaBackdropClick",value:function(){return this._setOpen(!1,!0)}},{key:"toggle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened,e=arguments.length>1?arguments[1]:void 0;return this._setOpen(t,!t&&this._isFocusWithinDrawer(),e)}},{key:"_setOpen",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"program";return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=n):(this._animationState="void",e&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(function(t){i.openedChange.pipe((0,y.q)(1)).subscribe(function(e){return t(e?"open":"close")})})}},{key:"_getWidth",value:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}},{key:"_updateFocusTrapState",value:function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}},{key:"_animationStartListener",value:function(t){this._animationStarted.next(t)}},{key:"_animationDoneListener",value:function(t){this._animationEnd.next(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(k.qV),a.Y36(k.tE),a.Y36(n.t4),a.Y36(a.R0b),a.Y36(o.K0,8),a.Y36(z,8))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&a.WFA("@transform.start",function(t){return e._animationStartListener(t)})("@transform.done",function(t){return e._animationDoneListener(t)}),2&t&&(a.uIk("align",null),a.d8E("@transform",e._animationState),a.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.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:T,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(a.F$t(),a.TgZ(0,"div",0),a.Hsn(1),a.qZA())},directives:[r.PQ],encapsulation:2,data:{animation:[L.transformDrawer]},changeDetection:0}),t}(),F=function(){var t=function(){function t(e,i,n,r,o){var s=this,c=arguments.length>5&&void 0!==arguments[5]&&arguments[5],u=arguments.length>6?arguments[6]:void 0;_classCallCheck(this,t),this._dir=e,this._element=i,this._ngZone=n,this._changeDetectorRef=r,this._animationMode=u,this._drawers=new a.n_E,this.backdropClick=new a.vpe,this._destroyed=new l.xQ,this._doCheckSubject=new l.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new l.xQ,e&&e.change.pipe((0,m.R)(this._destroyed)).subscribe(function(){s._validateDrawers(),s.updateContentMargins()}),o.change().pipe((0,m.R)(this._destroyed)).subscribe(function(){return s.updateContentMargins()}),this._autosize=c}return _createClass(t,[{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"autosize",get:function(){return this._autosize},set:function(t){this._autosize=(0,c.Ig)(t)}},{key:"hasBackdrop",get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(t){this._backdropOverride=null==t?null:(0,c.Ig)(t)}},{key:"scrollable",get:function(){return this._userContent||this._content}},{key:"ngAfterContentInit",value:function(){var t=this;this._allDrawers.changes.pipe((0,_.O)(this._allDrawers),(0,m.R)(this._destroyed)).subscribe(function(e){t._drawers.reset(e.filter(function(e){return!e._container||e._container===t})),t._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,_.O)(null)).subscribe(function(){t._validateDrawers(),t._drawers.forEach(function(e){t._watchDrawerToggle(e),t._watchDrawerPosition(e),t._watchDrawerMode(e)}),(!t._drawers.length||t._isDrawerOpen(t._start)||t._isDrawerOpen(t._end))&&t.updateContentMargins(),t._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){t._doCheckSubject.pipe((0,b.b)(10),(0,m.R)(t._destroyed)).subscribe(function(){return t.updateContentMargins()})})}},{key:"ngOnDestroy",value:function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(){this._drawers.forEach(function(t){return t.open()})}},{key:"close",value:function(){this._drawers.forEach(function(t){return t.close()})}},{key:"updateContentMargins",value:function(){var t=this,e=0,i=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){var n=this._left._getWidth();e+=n,i-=n}if(this._right&&this._right.opened)if("side"==this._right.mode)i+=this._right._getWidth();else if("push"==this._right.mode){var r=this._right._getWidth();i+=r,e-=r}i=i||null,(e=e||null)===this._contentMargins.left&&i===this._contentMargins.right||(this._contentMargins={left:e,right:i},this._ngZone.run(function(){return t._contentMarginChanges.next(t._contentMargins)}))}},{key:"ngDoCheck",value:function(){var t=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(function(){return t._doCheckSubject.next()})}},{key:"_watchDrawerToggle",value:function(t){var e=this;t._animationStarted.pipe((0,f.h)(function(t){return t.fromState!==t.toState}),(0,m.R)(this._drawers.changes)).subscribe(function(t){"open-instant"!==t.toState&&"NoopAnimations"!==e._animationMode&&e._element.nativeElement.classList.add("mat-drawer-transition"),e.updateContentMargins(),e._changeDetectorRef.markForCheck()}),"side"!==t.mode&&t.openedChange.pipe((0,m.R)(this._drawers.changes)).subscribe(function(){return e._setContainerClass(t.opened)})}},{key:"_watchDrawerPosition",value:function(t){var e=this;t&&t.onPositionChanged.pipe((0,m.R)(this._drawers.changes)).subscribe(function(){e._ngZone.onMicrotaskEmpty.pipe((0,y.q)(1)).subscribe(function(){e._validateDrawers()})})}},{key:"_watchDrawerMode",value:function(t){var e=this;t&&t._modeChanged.pipe((0,m.R)((0,d.T)(this._drawers.changes,this._destroyed))).subscribe(function(){e.updateContentMargins(),e._changeDetectorRef.markForCheck()})}},{key:"_setContainerClass",value:function(t){var e=this._element.nativeElement.classList,i="mat-drawer-container-has-open";t?e.add(i):e.remove(i)}},{key:"_validateDrawers",value:function(){var t=this;this._start=this._end=null,this._drawers.forEach(function(e){"end"==e.position?t._end=e:t._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)}},{key:"_isPushed",value:function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}},{key:"_onBackdropClicked",value:function(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}},{key:"_closeModalDrawersViaBackdrop",value:function(){var t=this;[this._start,this._end].filter(function(e){return e&&!e.disableClose&&t._canHaveBackdrop(e)}).forEach(function(t){return t._closeViaBackdropClick()})}},{key:"_isShowingBackdrop",value:function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}},{key:"_canHaveBackdrop",value:function(t){return"side"!==t.mode||!!this._backdropOverride}},{key:"_isDrawerOpen",value:function(t){return null!=t&&t.opened}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(C.Is,8),a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(a.sBO),a.Y36(r.rL),a.Y36(N),a.Y36(A.Qb,8))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,i){var n;(1&t&&(a.Suo(i,Z,5),a.Suo(i,B,5)),2&t)&&(a.iGM(n=a.CRH())&&(e._content=n.first),a.iGM(n=a.CRH())&&(e._allDrawers=n))},viewQuery:function(t,e){var i;(1&t&&a.Gf(Z,5),2&t)&&(a.iGM(i=a.CRH())&&(e._userContent=i.first))},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&a.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[a._Bn([{provide:z,useExisting:t}])],ngContentSelectors:R,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(t,e){1&t&&(a.F$t(I),a.YNc(0,E,1,2,"div",0),a.Hsn(1),a.Hsn(2,1),a.YNc(3,S,2,0,"mat-drawer-content",1)),2&t&&(a.Q6J("ngIf",e.hasBackdrop),a.xp6(3),a.Q6J("ngIf",!e._content))},directives:[o.O5,Z],styles:[M],encapsulation:2,changeDetection:0}),t}(),q=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,a){return _classCallCheck(this,i),e.call(this,t,n,r,o,a)}return i}(Z);return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.sBO),a.Y36((0,a.Gpc)(function(){return U})),a.Y36(a.SBq),a.Y36(r.mF),a.Y36(a.R0b))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&a.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[a.qOj],ngContentSelectors:T,decls:1,vars:0,template:function(t,e){1&t&&(a.F$t(),a.Hsn(0))},encapsulation:2,changeDetection:0}),t}(),H=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.apply(this,arguments))._fixedInViewport=!1,t._fixedTopGap=0,t._fixedBottomGap=0,t}return _createClass(i,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(t){this._fixedInViewport=(0,c.Ig)(t)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(t){this._fixedTopGap=(0,c.su)(t)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(t){this._fixedBottomGap=(0,c.su)(t)}}]),i}(B);return e.\u0275fac=function(i){return(t||(t=a.n5z(e)))(i||e)},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(a.uIk("align",null),a.Udp("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),a.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[a.qOj],ngContentSelectors:T,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(a.F$t(),a.TgZ(0,"div",0),a.Hsn(1),a.qZA())},directives:[r.PQ],encapsulation:2,data:{animation:[L.transformDrawer]},changeDetection:0}),e}(),U=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(F);return e.\u0275fac=function(i){return(t||(t=a.n5z(e)))(i||e)},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,i){var n;(1&t&&(a.Suo(i,q,5),a.Suo(i,H,5)),2&t)&&(a.iGM(n=a.CRH())&&(e._content=n.first),a.iGM(n=a.CRH())&&(e._allDrawers=n))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&a.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[a._Bn([{provide:z,useExisting:e}]),a.qOj],ngContentSelectors:D,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(a.F$t(P),a.YNc(0,x,1,2,"div",0),a.Hsn(1),a.Hsn(2,1),a.YNc(3,O,2,0,"mat-sidenav-content",1)),2&t&&(a.Q6J("ngIf",e.hasBackdrop),a.xp6(3),a.Q6J("ngIf",!e._content))},directives:[o.O5,q,r.PQ],styles:[M],encapsulation:2,changeDetection:0}),e}(),G=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({imports:[[o.ez,s.BQ,n.ud,r.ZD],r.ZD,s.BQ]}),t}()},27521:function(t,e,i){"use strict";i.d(e,{Rr:function(){return b},rP:function(){return A}});var n=i(36337),r=i(31572),o=i(71522),a=i(19861),s=i(16073),c=i(43490),u=i(24621),l=["thumbContainer"],h=["toggleBar"],d=["input"],f=function(t){return{enterDuration:t}},p=["*"],g=new r.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),m=0,v={provide:s.JU,useExisting:(0,r.Gpc)(function(){return b}),multi:!0},y=function t(e,i){_classCallCheck(this,t),this.source=e,this.checked=i},_=(0,o.sb)((0,o.pj)((0,o.Kr)((0,o.Id)(function t(e){_classCallCheck(this,t),this._elementRef=e})))),b=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,o,a,s,c){var u;return _classCallCheck(this,i),(u=e.call(this,t))._focusMonitor=n,u._changeDetectorRef=o,u.defaults=s,u._onChange=function(t){},u._onTouched=function(){},u._uniqueId="mat-slide-toggle-"+ ++m,u._required=!1,u._checked=!1,u.name=null,u.id=u._uniqueId,u.labelPosition="after",u.ariaLabel=null,u.ariaLabelledby=null,u.change=new r.vpe,u.toggleChange=new r.vpe,u.tabIndex=parseInt(a)||0,u.color=u.defaultColor=s.color||"accent",u._noopAnimations="NoopAnimations"===c,u}return _createClass(i,[{key:"required",get:function(){return this._required},set:function(t){this._required=(0,a.Ig)(t)}},{key:"checked",get:function(){return this._checked},set:function(t){this._checked=(0,a.Ig)(t),this._changeDetectorRef.markForCheck()}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"ngAfterContentInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(e){"keyboard"===e||"program"===e?t._inputElement.nativeElement.focus():e||Promise.resolve().then(function(){return t._onTouched()})})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_onChangeEvent",value:function(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}},{key:"_onInputClick",value:function(t){t.stopPropagation()}},{key:"writeValue",value:function(t){this.checked=!!t}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this._changeDetectorRef.markForCheck()}},{key:"focus",value:function(t,e){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}},{key:"toggle",value:function(){this.checked=!this.checked,this._onChange(this.checked)}},{key:"_emitChangeEvent",value:function(){this._onChange(this.checked),this.change.emit(new y(this,this.checked))}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}}]),i}(_);return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(u.tE),r.Y36(r.sBO),r.$8M("tabindex"),r.Y36(g),r.Y36(c.Qb,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){var i;(1&t&&(r.Gf(l,5),r.Gf(h,5),r.Gf(d,5)),2&t)&&(r.iGM(i=r.CRH())&&(e._thumbEl=i.first),r.iGM(i=r.CRH())&&(e._thumbBarEl=i.first),r.iGM(i=r.CRH())&&(e._inputElement=i.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(r.Ikx("id",e.id),r.uIk("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),r.ekj("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable",e._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[r._Bn([v]),r.qOj],ngContentSelectors:p,decls:16,vars:19,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["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"],["thumbContainer",""],[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(t,e){if(1&t&&(r.F$t(),r.TgZ(0,"label",0,1),r.TgZ(2,"div",2,3),r.TgZ(4,"input",4,5),r.NdJ("change",function(t){return e._onChangeEvent(t)})("click",function(t){return e._onInputClick(t)}),r.qZA(),r.TgZ(6,"div",6,7),r._UZ(8,"div",8),r.TgZ(9,"div",9),r._UZ(10,"div",10),r.qZA(),r.qZA(),r.qZA(),r.TgZ(11,"span",11,12),r.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),r.TgZ(13,"span",13),r._uU(14,"\xa0"),r.qZA(),r.Hsn(15),r.qZA(),r.qZA()),2&t){var i=r.MAs(1),n=r.MAs(12);r.uIk("for",e.inputId),r.xp6(2),r.ekj("mat-slide-toggle-bar-no-side-margin",!n.textContent||!n.textContent.trim()),r.xp6(2),r.Q6J("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),r.uIk("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),r.xp6(5),r.Q6J("matRippleTrigger",i)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",r.VKq(17,f,e._noopAnimations?0:150))}},directives:[o.wG,n.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:transparent}.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{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%}.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}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),t}(),w=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t}(),A=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[w,o.si,o.BQ,n.Q8],w,o.BQ]}),t}()},71403:function(t,e,i){"use strict";i.d(e,{ZX:function(){return u}});var n=i(2522),r=i(26899),o=i(61511),a=i(31572),s=i(71522),c=i(15980);i(55959),i(90611),i(10709),i(11353);var u=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({imports:[[n.U8,r.eL,o.ez,c.ot,s.BQ],s.BQ]}),t}()},58623:function(t,e,i){"use strict";i.d(e,{YE:function(){return v},nU:function(){return k},JX:function(){return C}});var n=i(31572),r=i(19861),o=i(71522),a=i(75842),s=i(55959),c=i(31906),u=i(10709),l=i(61511),h=i(24621),d=["mat-sort-header",""];function f(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"div",3),n.NdJ("@arrowPosition.start",function(){return n.CHM(i),n.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return n.CHM(i),n.oxw()._disableViewStateAnimation=!1}),n._UZ(1,"div",4),n.TgZ(2,"div",5),n._UZ(3,"div",6),n._UZ(4,"div",7),n._UZ(5,"div",8),n.qZA(),n.qZA()}if(2&t){var r=n.oxw();n.Q6J("@arrowOpacity",r._getArrowViewState())("@arrowPosition",r._getArrowViewState())("@allowChildren",r._getArrowDirectionState()),n.xp6(2),n.Q6J("@indicator",r._getArrowDirectionState()),n.xp6(1),n.Q6J("@leftPointer",r._getArrowDirectionState()),n.xp6(1),n.Q6J("@rightPointer",r._getArrowDirectionState())}}var p=["*"],g=new n.OlP("MAT_SORT_DEFAULT_OPTIONS"),m=(0,o.dB)((0,o.Id)(function t(){_classCallCheck(this,t)})),v=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var r;return _classCallCheck(this,i),(r=e.call(this))._defaultOptions=t,r.sortables=new Map,r._stateChanges=new s.xQ,r.start="asc",r._direction="",r.sortChange=new n.vpe,r}return _createClass(i,[{key:"direction",get:function(){return this._direction},set:function(t){this._direction=t}},{key:"disableClear",get:function(){return this._disableClear},set:function(t){this._disableClear=(0,r.Ig)(t)}},{key:"register",value:function(t){this.sortables.set(t.id,t)}},{key:"deregister",value:function(t){this.sortables.delete(t.id)}},{key:"sort",value:function(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}},{key:"getNextSortDirection",value:function(t){var e,i,n;if(!t)return"";var r=null!==(i=null!==(e=null==t?void 0:t.disableClear)&&void 0!==e?e:this.disableClear)&&void 0!==i?i:!!(null===(n=this._defaultOptions)||void 0===n?void 0:n.disableClear),o=function(t,e){var i=["asc","desc"];return"desc"==t&&i.reverse(),e||i.push(""),i}(t.start||this.start,r),a=o.indexOf(this.direction)+1;return a>=o.length&&(a=0),o[a]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),i}(m);return t.\u0275fac=function(e){return new(e||t)(n.Y36(g,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[n.qOj,n.TTD]}),t}(),y=o.mZ.ENTERING+" "+o.yN.STANDARD_CURVE,_={indicator:(0,u.X$)("indicator",[(0,u.SB)("active-asc, asc",(0,u.oB)({transform:"translateY(0px)"})),(0,u.SB)("active-desc, desc",(0,u.oB)({transform:"translateY(10px)"})),(0,u.eR)("active-asc <=> active-desc",(0,u.jt)(y))]),leftPointer:(0,u.X$)("leftPointer",[(0,u.SB)("active-asc, asc",(0,u.oB)({transform:"rotate(-45deg)"})),(0,u.SB)("active-desc, desc",(0,u.oB)({transform:"rotate(45deg)"})),(0,u.eR)("active-asc <=> active-desc",(0,u.jt)(y))]),rightPointer:(0,u.X$)("rightPointer",[(0,u.SB)("active-asc, asc",(0,u.oB)({transform:"rotate(45deg)"})),(0,u.SB)("active-desc, desc",(0,u.oB)({transform:"rotate(-45deg)"})),(0,u.eR)("active-asc <=> active-desc",(0,u.jt)(y))]),arrowOpacity:(0,u.X$)("arrowOpacity",[(0,u.SB)("desc-to-active, asc-to-active, active",(0,u.oB)({opacity:1})),(0,u.SB)("desc-to-hint, asc-to-hint, hint",(0,u.oB)({opacity:.54})),(0,u.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,u.oB)({opacity:0})),(0,u.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,u.jt)("0ms")),(0,u.eR)("* <=> *",(0,u.jt)(y))]),arrowPosition:(0,u.X$)("arrowPosition",[(0,u.eR)("* => desc-to-hint, * => desc-to-active",(0,u.jt)(y,(0,u.F4)([(0,u.oB)({transform:"translateY(-25%)"}),(0,u.oB)({transform:"translateY(0)"})]))),(0,u.eR)("* => hint-to-desc, * => active-to-desc",(0,u.jt)(y,(0,u.F4)([(0,u.oB)({transform:"translateY(0)"}),(0,u.oB)({transform:"translateY(25%)"})]))),(0,u.eR)("* => asc-to-hint, * => asc-to-active",(0,u.jt)(y,(0,u.F4)([(0,u.oB)({transform:"translateY(25%)"}),(0,u.oB)({transform:"translateY(0)"})]))),(0,u.eR)("* => hint-to-asc, * => active-to-asc",(0,u.jt)(y,(0,u.F4)([(0,u.oB)({transform:"translateY(0)"}),(0,u.oB)({transform:"translateY(-25%)"})]))),(0,u.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,u.oB)({transform:"translateY(0)"})),(0,u.SB)("hint-to-desc, active-to-desc, desc",(0,u.oB)({transform:"translateY(-25%)"})),(0,u.SB)("hint-to-asc, active-to-asc, asc",(0,u.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,u.X$)("allowChildren",[(0,u.eR)("* <=> *",[(0,u.IO)("@*",(0,u.pV)(),{optional:!0})])])},b=function(){var t=function t(){_classCallCheck(this,t),this.changes=new s.xQ};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t}(),w={provide:b,deps:[[new n.FiY,new n.tp0,b]],useFactory:function(t){return t||new b}},A=(0,o.Id)(function t(){_classCallCheck(this,t)}),k=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,a,s){var c;return _classCallCheck(this,i),(c=e.call(this))._intl=t,c._changeDetectorRef=n,c._sort=r,c._columnDef=o,c._focusMonitor=a,c._elementRef=s,c._showIndicatorHint=!1,c._viewState={},c._arrowDirection="",c._disableViewStateAnimation=!1,c.arrowPosition="after",c._handleStateChanges(),c}return _createClass(i,[{key:"disableClear",get:function(){return this._disableClear},set:function(t){this._disableClear=(0,r.Ig)(t)}},{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngAfterViewInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(e){var i=!!e;i!==t._showIndicatorHint&&(t._setIndicatorHintVisible(i),t._changeDetectorRef.markForCheck())})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(t){this._viewState=t||{},this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0)}},{key:"_handleClick",value:function(){this._isDisabled()||this._sort.sort(this)}},{key:"_handleKeydown",value:function(t){this._isDisabled()||t.keyCode!==a.L_&&t.keyCode!==a.K5||(t.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var t=this._viewState.fromState;return(t?"".concat(t,"-to-"):"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"_handleStateChanges",value:function(){var t=this;this._rerenderSubscription=(0,c.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){t._isSorted()&&(t._updateArrowDirection(),"hint"!==t._viewState.toState&&"active"!==t._viewState.toState||(t._disableViewStateAnimation=!0),t._setAnimationTransitionState({fromState:t._arrowDirection,toState:"active"}),t._showIndicatorHint=!1),!t._isSorted()&&t._viewState&&"active"===t._viewState.toState&&(t._disableViewStateAnimation=!1,t._setAnimationTransitionState({fromState:"active",toState:t._arrowDirection})),t._changeDetectorRef.markForCheck()})}}]),i}(A);return t.\u0275fac=function(e){return new(e||t)(n.Y36(b),n.Y36(n.sBO),n.Y36(v,8),n.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),n.Y36(h.tE),n.Y36(n.SBq))},t.\u0275cmp=n.Xpm({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&n.NdJ("click",function(){return e._handleClick()})("keydown",function(t){return e._handleKeydown(t)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&t&&(n.uIk("aria-sort",e._getAriaSortAttribute()),n.ekj("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[n.qOj],attrs:d,ngContentSelectors:p,decls:4,vars:6,consts:[["role","button",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(t,e){1&t&&(n.F$t(),n.TgZ(0,"div",0),n.TgZ(1,"div",1),n.Hsn(2),n.qZA(),n.YNc(3,f,6,6,"div",2),n.qZA()),2&t&&(n.ekj("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),n.uIk("tabindex",e._isDisabled()?null:0),n.xp6(3),n.Q6J("ngIf",e._renderArrow()))},directives:[l.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-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}\n"],encapsulation:2,data:{animation:[_.indicator,_.leftPointer,_.rightPointer,_.arrowOpacity,_.arrowPosition,_.allowChildren]},changeDetection:0}),t}(),C=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[w],imports:[[l.ez,o.BQ]]}),t}()},70663:function(t,e,i){"use strict";i.d(e,{C0:function(){return at},BY:function(){return ot},VY:function(){return W},Vq:function(){return lt},T5:function(){return dt},fd:function(){return ht}});var n=i(26899),r=i(24621),o=i(22526),a=i(19861),s=i(75842),c=i(61511),u=i(31572),l=i(55959),h=i(40878),d=i(56238),f=i(25416);function p(t,e){1&t&&u.Hsn(0)}var g=["*"],m=function(){var t=function(){function t(e){_classCallCheck(this,t),this._elementRef=e}return _createClass(t,[{key:"focus",value:function(){this._elementRef.nativeElement.focus()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.SBq))},t.\u0275dir=u.lG2({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),t}(),v=function(){var t=function t(e){_classCallCheck(this,t),this.template=e};return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.Rgc))},t.\u0275dir=u.lG2({type:t,selectors:[["","cdkStepLabel",""]]}),t}(),y=0,_=new u.OlP("STEPPER_GLOBAL_OPTIONS"),b=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this._stepper=e,this.interacted=!1,this.interactedStream=new u.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=i||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType,this._showError=!!this._stepperOptions.showError}return _createClass(t,[{key:"editable",get:function(){return this._editable},set:function(t){this._editable=(0,a.Ig)(t)}},{key:"optional",get:function(){return this._optional},set:function(t){this._optional=(0,a.Ig)(t)}},{key:"completed",get:function(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride},set:function(t){this._completedOverride=(0,a.Ig)(t)}},{key:"_getDefaultCompleted",value:function(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}},{key:"hasError",get:function(){return null==this._customError?this._getDefaultError():this._customError},set:function(t){this._customError=(0,a.Ig)(t)}},{key:"_getDefaultError",value:function(){return this.stepControl&&this.stepControl.invalid&&this.interacted}},{key:"select",value:function(){this._stepper.selected=this}},{key:"reset",value:function(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}},{key:"ngOnChanges",value:function(){this._stepper._stateChanged()}},{key:"_markAsInteracted",value:function(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Y36((0,u.Gpc)(function(){return w})),u.Y36(_,8))},t.\u0275cmp=u.Xpm({type:t,selectors:[["cdk-step"]],contentQueries:function(t,e,i){var n;(1&t&&u.Suo(i,v,5),2&t)&&(u.iGM(n=u.CRH())&&(e.stepLabel=n.first))},viewQuery:function(t,e){var i;(1&t&&u.Gf(u.Rgc,7),2&t)&&(u.iGM(i=u.CRH())&&(e.content=i.first))},inputs:{editable:"editable",optional:"optional",completed:"completed",hasError:"hasError",stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[u.TTD],ngContentSelectors:g,decls:1,vars:0,template:function(t,e){1&t&&(u.F$t(),u.YNc(0,p,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t}(),w=function(){var t=function(){function t(e,i,n,r){_classCallCheck(this,t),this._dir=e,this._changeDetectorRef=i,this._elementRef=n,this._destroyed=new l.xQ,this.steps=new u.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new u.vpe,this._orientation="horizontal",this._groupId=y++,this._document=r}return _createClass(t,[{key:"linear",get:function(){return this._linear},set:function(t){this._linear=(0,a.Ig)(t)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(t){var e,i=(0,a.su)(t);this.steps&&this._steps?(this._isValidIndex(t),null===(e=this.selected)||void 0===e||e._markAsInteracted(),this._selectedIndex!==i&&!this._anyControlsInvalidOrPending(i)&&(i>=this._selectedIndex||this.steps.toArray()[i].editable)&&this._updateSelectedItemIndex(t)):this._selectedIndex=i}},{key:"selected",get:function(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0},set:function(t){this.selectedIndex=t&&this.steps?this.steps.toArray().indexOf(t):-1}},{key:"orientation",get:function(){return this._orientation},set:function(t){this._orientation=t,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===t)}},{key:"ngAfterContentInit",value:function(){var t=this;this._steps.changes.pipe((0,d.O)(this._steps),(0,f.R)(this._destroyed)).subscribe(function(e){t.steps.reset(e.filter(function(e){return e._stepper===t})),t.steps.notifyOnChanges()})}},{key:"ngAfterViewInit",value:function(){var t=this;this._keyManager=new r.Em(this._stepHeader).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,h.of)()).pipe((0,d.O)(this._layoutDirection()),(0,f.R)(this._destroyed)).subscribe(function(e){return t._keyManager.withHorizontalOrientation(e)}),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(function(){t.selected||(t._selectedIndex=Math.max(t._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}},{key:"ngOnDestroy",value:function(){this.steps.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"next",value:function(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}},{key:"previous",value:function(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}},{key:"reset",value:function(){this._updateSelectedItemIndex(0),this.steps.forEach(function(t){return t.reset()}),this._stateChanged()}},{key:"_getStepLabelId",value:function(t){return"cdk-step-label-".concat(this._groupId,"-").concat(t)}},{key:"_getStepContentId",value:function(t){return"cdk-step-content-".concat(this._groupId,"-").concat(t)}},{key:"_stateChanged",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_getAnimationDirection",value:function(t){var e=t-this._selectedIndex;return e<0?"rtl"===this._layoutDirection()?"next":"previous":e>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}},{key:"_getIndicatorType",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number",i=this.steps.toArray()[t],n=this._isCurrentStep(t);return i._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(i,n):this._getGuidelineLogic(i,n,e)}},{key:"_getDefaultIndicatorLogic",value:function(t,e){return t._showError&&t.hasError&&!e?"error":!t.completed||e?"number":t.editable?"edit":"done"}},{key:"_getGuidelineLogic",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"number";return t._showError&&t.hasError&&!e?"error":t.completed&&!e?"done":t.completed&&e?i:t.editable&&e?"edit":i}},{key:"_isCurrentStep",value:function(t){return this._selectedIndex===t}},{key:"_getFocusIndex",value:function(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}},{key:"_updateSelectedItemIndex",value:function(t){var e=this.steps.toArray();this.selectionChange.emit({selectedIndex:t,previouslySelectedIndex:this._selectedIndex,selectedStep:e[t],previouslySelectedStep:e[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(t):this._keyManager.updateActiveItem(t),this._selectedIndex=t,this._stateChanged()}},{key:"_onKeydown",value:function(t){var e=(0,s.Vb)(t),i=t.keyCode,n=this._keyManager;null==n.activeItemIndex||e||i!==s.L_&&i!==s.K5?n.onKeydown(t):(this.selectedIndex=n.activeItemIndex,t.preventDefault())}},{key:"_anyControlsInvalidOrPending",value:function(t){return!!(this._linear&&t>=0)&&this.steps.toArray().slice(0,t).some(function(t){var e=t.stepControl;return(e?e.invalid||e.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride})}},{key:"_layoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_containsFocus",value:function(){var t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}},{key:"_isValidIndex",value:function(t){return t>-1&&(!this.steps||t *",(0,O.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,O.X$)("verticalStepTransition",[(0,O.SB)("previous",(0,O.oB)({height:"0px",visibility:"hidden"})),(0,O.SB)("next",(0,O.oB)({height:"0px",visibility:"hidden"})),(0,O.SB)("current",(0,O.oB)({height:"*",visibility:"inherit"})),(0,O.eR)("* <=> current",(0,O.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])},rt=function(){var t=function t(e){_classCallCheck(this,t),this.templateRef=e};return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.Rgc))},t.\u0275dir=u.lG2({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),t}(),ot=function(){var t=function t(e){_classCallCheck(this,t),this._template=e};return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.Rgc))},t.\u0275dir=u.lG2({type:t,selectors:[["ng-template","matStepContent",""]]}),t}(),at=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;return _classCallCheck(this,i),(a=e.call(this,t,o))._errorStateMatcher=n,a._viewContainerRef=r,a._isSelected=S.w.EMPTY,a}return _createClass(i,[{key:"ngAfterContentInit",value:function(){var t=this;this._isSelected=this._stepper.steps.changes.pipe((0,I.w)(function(){return t._stepper.selectionChange.pipe((0,R.U)(function(e){return e.selectedStep===t}),(0,d.O)(t._stepper.selected===t))})).subscribe(function(e){e&&t._lazyContent&&!t._portal&&(t._portal=new n.UE(t._lazyContent._template,t._viewContainerRef))})}},{key:"ngOnDestroy",value:function(){this._isSelected.unsubscribe()}},{key:"isErrorState",value:function(t,e){return this._errorStateMatcher.isErrorState(t,e)||!!(t&&t.invalid&&this.interacted)}}]),i}(b);return t.\u0275fac=function(e){return new(e||t)(u.Y36((0,u.Gpc)(function(){return lt})),u.Y36(T.rD,4),u.Y36(u.s_b),u.Y36(_,8))},t.\u0275cmp=u.Xpm({type:t,selectors:[["mat-step"]],contentQueries:function(t,e,i){var n;(1&t&&(u.Suo(i,W,5),u.Suo(i,ot,5)),2&t)&&(u.iGM(n=u.CRH())&&(e.stepLabel=n.first),u.iGM(n=u.CRH())&&(e._lazyContent=n.first))},inputs:{color:"color"},exportAs:["matStep"],features:[u._Bn([{provide:T.rD,useExisting:t},{provide:b,useExisting:t}]),u.qOj],ngContentSelectors:H,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(u.F$t(),u.YNc(0,q,2,1,"ng-template"))},directives:[n.Pl],encapsulation:2,changeDetection:0}),t}(),st=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(w);return e.\u0275fac=function(i){return(t||(t=u.n5z(e)))(i||e)},e.\u0275dir=u.lG2({type:e,features:[u.qOj]}),e}(),ct=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(st);return e.\u0275fac=function(i){return(t||(t=u.n5z(e)))(i||e)},e.\u0275dir=u.lG2({type:e,selectors:[["mat-horizontal-stepper"]],features:[u.qOj]}),e}(),ut=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(st);return e.\u0275fac=function(i){return(t||(t=u.n5z(e)))(i||e)},e.\u0275dir=u.lG2({type:e,selectors:[["mat-vertical-stepper"]],features:[u.qOj]}),e}(),lt=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;_classCallCheck(this,i),(a=e.call(this,t,n,r,o)).steps=new u.n_E,a.animationDone=new u.vpe,a.labelPosition="end",a._iconOverrides={},a._animationDone=new l.xQ;var s=r.nativeElement.nodeName.toLowerCase();return a.orientation="mat-vertical-stepper"===s?"vertical":"horizontal",a}return _createClass(i,[{key:"ngAfterContentInit",value:function(){var t=this;_get(_getPrototypeOf(i.prototype),"ngAfterContentInit",this).call(this),this._icons.forEach(function(e){var i=e.name,n=e.templateRef;return t._iconOverrides[i]=n}),this.steps.changes.pipe((0,f.R)(this._destroyed)).subscribe(function(){t._stateChanged()}),this._animationDone.pipe((0,x.x)(function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}),(0,f.R)(this._destroyed)).subscribe(function(e){"current"===e.toState&&t.animationDone.emit()})}}]),i}(w);return t.\u0275fac=function(e){return new(e||t)(u.Y36(o.Is,8),u.Y36(u.sBO),u.Y36(u.SBq),u.Y36(c.K0))},t.\u0275cmp=u.Xpm({type:t,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(t,e,i){var n;(1&t&&(u.Suo(i,at,5),u.Suo(i,rt,5)),2&t)&&(u.iGM(n=u.CRH())&&(e._steps=n),u.iGM(n=u.CRH())&&(e._icons=n))},viewQuery:function(t,e){var i;(1&t&&u.Gf(it,5),2&t)&&(u.iGM(i=u.CRH())&&(e._stepHeader=i))},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(t,e){2&t&&(u.uIk("aria-orientation",e.orientation),u.ekj("mat-stepper-horizontal","horizontal"===e.orientation)("mat-stepper-vertical","vertical"===e.orientation)("mat-stepper-label-position-end","horizontal"===e.orientation&&"end"==e.labelPosition)("mat-stepper-label-position-bottom","horizontal"===e.orientation&&"bottom"==e.labelPosition))},inputs:{selectedIndex:"selectedIndex",labelPosition:"labelPosition",disableRipple:"disableRipple",color:"color"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[u._Bn([{provide:w,useExisting:t},{provide:ct,useExisting:t},{provide:ut,useExisting:t}]),u.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[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(t,e){1&t&&(u.ynx(0,0),u.YNc(1,K,5,2,"ng-container",1),u.YNc(2,J,2,1,"ng-container",1),u.BQk(),u.YNc(3,Q,1,22,"ng-template",null,2,u.W1O)),2&t&&(u.Q6J("ngSwitch",e.orientation),u.xp6(1),u.Q6J("ngSwitchCase","horizontal"),u.xp6(1),u.Q6J("ngSwitchCase","vertical"))},directives:[c.RF,c.n9,c.sg,c.tP,c.O5,it],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-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-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}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[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}\n'],encapsulation:2,data:{animation:[nt.horizontalStepTransition,nt.verticalStepTransition]},changeDetection:0}),t}(),ht=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(A);return e.\u0275fac=function(i){return(t||(t=u.n5z(e)))(i||e)},e.\u0275dir=u.lG2({type:e,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(t,e){2&t&&u.Ikx("type",e.type)},inputs:{type:"type"},features:[u.qOj]}),e}(),dt=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u.oAB({type:t}),t.\u0275inj=u.cJS({providers:[$,T.rD],imports:[[T.BQ,c.ez,n.eL,C.ot,k,E.Ps,T.si],T.BQ]}),t}()},67033:function(t,e,i){"use strict";i.d(e,{ev:function(){return ut},Dz:function(){return ot},w1:function(){return st},ge:function(){return ct},fO:function(){return at},XQ:function(){return dt},as:function(){return lt},Gk:function(){return ft},nj:function(){return ht},BZ:function(){return rt},by:function(){return gt},p0:function(){return pt}});var n=i(19861),r=i(4230),o=i(31572),a=i(22526),s=i(11353),c=i(4253),u=i(61511),l=i(55959),h=i(19764),d=i(78512),f=i(4710),p=i(40878),g=i(25416),m=i(90611),v=[[["caption"]],[["colgroup"],["col"]]],y=["caption","colgroup, col"];function _(t){return function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;_classCallCheck(this,i);for(var n=arguments.length,r=new Array(n),o=0;o4&&void 0!==arguments[4])||arguments[4],a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],s=arguments.length>6?arguments[6]:void 0;_classCallCheck(this,t),this._isNativeHtmlTable=e,this._stickCellCss=i,this.direction=n,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=a,this._positionListener=s,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(i,"-border-elem-top"),bottom:"".concat(i,"-border-elem-bottom"),left:"".concat(i,"-border-elem-left"),right:"".concat(i,"-border-elem-right")}}return _createClass(t,[{key:"clearStickyPositioning",value:function(t,e){var i,n=this,r=[],o=_createForOfIteratorHelper(t);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(a.nodeType===a.ELEMENT_NODE){r.push(a);for(var s=0;s3&&void 0!==arguments[3])||arguments[3];if(t.length&&this._isBrowser&&(e.some(function(t){return t})||i.some(function(t){return t}))){var o=t[0],a=o.children.length,s=this._getCellWidths(o,r),c=this._getStickyStartColumnPositions(s,e),u=this._getStickyEndColumnPositions(s,i),l=e.lastIndexOf(!0),h=i.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var r,o="rtl"===n.direction,d=o?"right":"left",f=o?"left":"right",p=_createForOfIteratorHelper(t);try{for(p.s();!(r=p.n()).done;)for(var g=r.value,m=0;m1&&void 0!==arguments[1])||arguments[1];if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var i=[],n=t.children,r=0;r0;r--)e[r]&&(i[r]=n,n+=t[r]);return i}}]),t}(),G=new o.OlP("CDK_SPL"),j=function(){var t=function t(e,i){_classCallCheck(this,t),this.viewContainer=e,this.elementRef=i};return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.s_b),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["","rowOutlet",""]]}),t}(),Y=function(){var t=function t(e,i){_classCallCheck(this,t),this.viewContainer=e,this.elementRef=i};return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.s_b),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["","headerRowOutlet",""]]}),t}(),K=function(){var t=function t(e,i){_classCallCheck(this,t),this.viewContainer=e,this.elementRef=i};return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.s_b),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["","footerRowOutlet",""]]}),t}(),V=function(){var t=function t(e,i){_classCallCheck(this,t),this.viewContainer=e,this.elementRef=i};return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.s_b),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["","noDataRowOutlet",""]]}),t}(),J=function(){var t=function(){function t(e,i,n,r,o,a,s,c,u,h,f){_classCallCheck(this,t),this._differs=e,this._changeDetectorRef=i,this._elementRef=n,this._dir=o,this._platform=s,this._viewRepeater=c,this._coalescedStyleScheduler=u,this._viewportRuler=h,this._stickyPositioningListener=f,this._onDestroy=new l.xQ,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.viewChange=new d.X({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return _createClass(t,[{key:"trackBy",get:function(){return this._trackByFn},set:function(t){this._trackByFn=t}},{key:"dataSource",get:function(){return this._dataSource},set:function(t){this._dataSource!==t&&this._switchDataSource(t)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(t){this._multiTemplateDataRows=(0,n.Ig)(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(t){this._fixedLayout=(0,n.Ig)(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}},{key:"ngOnInit",value:function(){var t=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(e,i){return t.trackBy?t.trackBy(i.dataIndex,i.data):i}),this._viewportRuler.change().pipe((0,g.R)(this._onDestroy)).subscribe(function(){t._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var 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()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),(0,r.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var t=this;this._renderRows=this._getAllRenderRows();var e=this._dataDiffer.diff(this._renderRows);if(e){var i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,function(e,i,n){return t._getEmbeddedViewArgs(e.item,n)},function(t){return t.item.data},function(e){1===e.operation&&e.context&&t._renderCellTemplateForItem(e.record.item.rowDef,e.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(function(t){i.get(t.currentIndex).context.$implicit=t.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}else this._updateNoDataRow()}},{key:"addColumnDef",value:function(t){this._customColumnDefs.add(t)}},{key:"removeColumnDef",value:function(t){this._customColumnDefs.delete(t)}},{key:"addRowDef",value:function(t){this._customRowDefs.add(t)}},{key:"removeRowDef",value:function(t){this._customRowDefs.delete(t)}},{key:"addHeaderRowDef",value:function(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(t){this._customNoDataRow=t}},{key:"updateStickyHeaderRowStyles",value:function(){var t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");var i=this._headerRowDefs.map(function(t){return t.sticky});this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"top"),this._headerRowDefs.forEach(function(t){return t.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");var i=this._footerRowDefs.map(function(t){return t.sticky});this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(function(t){return t.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var t=this,e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),n=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(_toConsumableArray(e),_toConsumableArray(i),_toConsumableArray(n)),["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach(function(e,i){t._addStickyColumnStyles([e],t._headerRowDefs[i])}),this._rowDefs.forEach(function(e){for(var n=[],r=0;r0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(e,i){return t._renderRow(t._headerRowOutlet,e,i)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var t=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(e,i){return t._renderRow(t._footerRowOutlet,e,i)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(t,e){var i=this,n=Array.from(e.columns||[]).map(function(t){return i._columnDefsByName.get(t)}),r=n.map(function(t){return t.sticky}),o=n.map(function(t){return t.stickyEnd});this._stickyStyler.updateStickyColumns(t,r,o,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(t){for(var e=[],i=0;i3&&void 0!==arguments[3]?arguments[3]:{},r=t.viewContainer.createEmbeddedView(e.template,n,i);return this._renderCellTemplateForItem(e,n),r}},{key:"_renderCellTemplateForItem",value:function(t,e){var i,n=_createForOfIteratorHelper(this._getCellTemplates(t));try{for(n.s();!(i=n.n()).done;){var r=i.value;Z.mostRecentCellOutlet&&Z.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,e)}}catch(o){n.e(o)}finally{n.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var t=this._rowOutlet.viewContainer,e=0,i=t.length;e0&&void 0!==arguments[0]?arguments[0]:[];return _classCallCheck(this,i),(t=e.call(this))._renderData=new d.X([]),t._filter=new d.X(""),t._internalPageChanges=new l.xQ,t._renderChangesSubscription=null,t.sortingDataAccessor=function(t,e){var i=t[e];if((0,n.t6)(i)){var r=Number(i);return r<9007199254740991?r:i}return i},t.sortData=function(e,i){var n=i.active,r=i.direction;return n&&""!=r?e.sort(function(e,i){var o=t.sortingDataAccessor(e,n),a=t.sortingDataAccessor(i,n),s=typeof o,c=typeof a;s!==c&&("number"===s&&(o+=""),"number"===c&&(a+=""));var u=0;return null!=o&&null!=a?o>a?u=1:o0)){var n=Math.ceil(i.length/i.pageSize)-1||0,r=Math.min(i.pageIndex,n);r!==i.pageIndex&&(i.pageIndex=r,e._internalPageChanges.next())}})}},{key:"connect",value:function(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}},{key:"disconnect",value:function(){var t;null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=null}}]),i}(r.o2))},55109:function(t,e,i){"use strict";i.d(e,{uX:function(){return J},Vc:function(){return G},SP:function(){return ot},uD:function(){return Y},Nh:function(){return dt}});var n=i(24621),r=i(36337),o=i(26899),a=i(61511),s=i(31572),c=i(71522),u=i(43490),l=i(55959),h=i(87570),d=i(31906),f=i(87254),p=i(40878),g=i(81110),m=i(10709),v=i(56238),y=i(98720),_=i(25416),b=i(19861),w=i(11353),A=i(75842),k=i(22526),C=i(4253);function T(t,e){1&t&&s.Hsn(0)}var E=["*"];function S(t,e){}var I=function(t){return{animationDuration:t}},R=function(t,e){return{value:t,params:e}},x=["tabBodyWrapper"],O=["tabHeader"];function P(t,e){}function D(t,e){if(1&t&&s.YNc(0,P,0,0,"ng-template",9),2&t){var i=s.oxw().$implicit;s.Q6J("cdkPortalOutlet",i.templateLabel)}}function M(t,e){if(1&t&&s._uU(0),2&t){var i=s.oxw().$implicit;s.Oqu(i.textLabel)}}function L(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"div",6),s.NdJ("click",function(){var t=s.CHM(i),e=t.$implicit,n=t.index,r=s.oxw(),o=s.MAs(1);return r._handleClick(e,o,n)})("cdkFocusChange",function(t){var e=s.CHM(i).index;return s.oxw()._tabFocusChanged(t,e)}),s.TgZ(1,"div",7),s.YNc(2,D,1,1,"ng-template",8),s.YNc(3,M,1,1,"ng-template",8),s.qZA(),s.qZA()}if(2&t){var n=e.$implicit,r=e.index,o=s.oxw();s.ekj("mat-tab-label-active",o.selectedIndex==r),s.Q6J("id",o._getTabLabelId(r))("disabled",n.disabled)("matRippleDisabled",n.disabled||o.disableRipple),s.uIk("tabIndex",o._getTabIndex(n,r))("aria-posinset",r+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(r))("aria-selected",o.selectedIndex==r)("aria-label",n.ariaLabel||null)("aria-labelledby",!n.ariaLabel&&n.ariaLabelledby?n.ariaLabelledby:null),s.xp6(2),s.Q6J("ngIf",n.templateLabel),s.xp6(1),s.Q6J("ngIf",!n.templateLabel)}}function N(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"mat-tab-body",10),s.NdJ("_onCentered",function(){return s.CHM(i),s.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(t){return s.CHM(i),s.oxw()._setTabBodyWrapperHeight(t)}),s.qZA()}if(2&t){var n=e.$implicit,r=e.index,o=s.oxw();s.ekj("mat-tab-body-active",o.selectedIndex==r),s.Q6J("id",o._getTabContentId(r))("content",n.content)("position",n.position)("origin",n.origin)("animationDuration",o.animationDuration),s.uIk("aria-labelledby",o._getTabLabelId(r))}}var z=["tabListContainer"],Z=["tabList"],B=["nextPaginator"],F=["previousPaginator"],q=new s.OlP("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(t){return{left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"}}}}),H=function(){var t=function(){function t(e,i,n,r){_classCallCheck(this,t),this._elementRef=e,this._ngZone=i,this._inkBarPositioner=n,this._animationMode=r}return _createClass(t,[{key:"alignToElement",value:function(t){var e=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e._setStyles(t)})}):this._setStyles(t)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(t){var e=this._inkBarPositioner(t),i=this._elementRef.nativeElement;i.style.left=e.left,i.style.width=e.width}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(q),s.Y36(u.Qb,8))},t.\u0275dir=s.lG2({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t}(),U=new s.OlP("MatTabContent"),G=function(){var t=function t(e){_classCallCheck(this,t),this.template=e};return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","matTabContent",""]],features:[s._Bn([{provide:U,useExisting:t}])]}),t}(),j=new s.OlP("MatTabLabel"),Y=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(o.ig);return e.\u0275fac=function(i){return(t||(t=s.n5z(e)))(i||e)},e.\u0275dir=s.lG2({type:e,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[s._Bn([{provide:j,useExisting:e}]),s.qOj]}),e}(),K=(0,c.Id)(function t(){_classCallCheck(this,t)}),V=new s.OlP("MAT_TAB_GROUP"),J=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this))._viewContainerRef=t,r._closestTabGroup=n,r.textLabel="",r._contentPortal=null,r._stateChanges=new l.xQ,r.position=null,r.origin=null,r.isActive=!1,r}return _createClass(i,[{key:"templateLabel",get:function(){return this._templateLabel},set:function(t){this._setTemplateLabelInput(t)}},{key:"content",get:function(){return this._contentPortal}},{key:"ngOnChanges",value:function(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new o.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(t){t&&(this._templateLabel=t)}}]),i}(K);return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(V,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,i){var n;(1&t&&(s.Suo(i,j,5),s.Suo(i,U,7,s.Rgc)),2&t)&&(s.iGM(n=s.CRH())&&(e.templateLabel=n.first),s.iGM(n=s.CRH())&&(e._explicitContent=n.first))},viewQuery:function(t,e){var i;(1&t&&s.Gf(s.Rgc,7),2&t)&&(s.iGM(i=s.CRH())&&(e._implicitContent=i.first))},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[s.qOj,s.TTD],ngContentSelectors:E,decls:1,vars:0,template:function(t,e){1&t&&(s.F$t(),s.YNc(0,T,1,0,"ng-template"))},encapsulation:2}),t}(),Q={translateTab:(0,m.X$)("translateTab",[(0,m.SB)("center, void, left-origin-center, right-origin-center",(0,m.oB)({transform:"none"})),(0,m.SB)("left",(0,m.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,m.SB)("right",(0,m.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,m.eR)("* => left, * => right, left => center, right => center",(0,m.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,m.eR)("void => left-origin-center",[(0,m.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,m.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,m.eR)("void => right-origin-center",[(0,m.oB)({transform:"translate3d(100%, 0, 0)"}),(0,m.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},W=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;return _classCallCheck(this,i),(a=e.call(this,t,n,o))._host=r,a._centeringSub=h.w.EMPTY,a._leavingSub=h.w.EMPTY,a}return _createClass(i,[{key:"ngOnInit",value:function(){var t=this;_get(_getPrototypeOf(i.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe((0,v.O)(this._host._isCenterPosition(this._host._position))).subscribe(function(e){e&&!t.hasAttached()&&t.attach(t._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){t.detach()})}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(i.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),i}(o.Pl);return t.\u0275fac=function(e){return new(e||t)(s.Y36(s._Vd),s.Y36(s.s_b),s.Y36((0,s.Gpc)(function(){return $})),s.Y36(a.K0))},t.\u0275dir=s.lG2({type:t,selectors:[["","matTabBodyHost",""]],features:[s.qOj]}),t}(),X=function(){var t=function(){function t(e,i,n){var r=this;_classCallCheck(this,t),this._elementRef=e,this._dir=i,this._dirChangeSubscription=h.w.EMPTY,this._translateTabComplete=new l.xQ,this._onCentering=new s.vpe,this._beforeCentering=new s.vpe,this._afterLeavingCenter=new s.vpe,this._onCentered=new s.vpe(!0),this.animationDuration="500ms",i&&(this._dirChangeSubscription=i.change.subscribe(function(t){r._computePositionAnimationState(t),n.markForCheck()})),this._translateTabComplete.pipe((0,y.x)(function(t,e){return t.fromState===e.fromState&&t.toState===e.toState})).subscribe(function(t){r._isCenterPosition(t.toState)&&r._isCenterPosition(r._position)&&r._onCentered.emit(),r._isCenterPosition(t.fromState)&&!r._isCenterPosition(r._position)&&r._afterLeavingCenter.emit()})}return _createClass(t,[{key:"position",set:function(t){this._positionIndex=t,this._computePositionAnimationState()}},{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(t){var e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}},{key:"_computePositionAnimationState",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(t){var e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(k.Is,8),s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t}(),$=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){return _classCallCheck(this,i),e.call(this,t,n,r)}return i}(X);return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(k.Is,8),s.Y36(s.sBO))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){var i;(1&t&&s.Gf(o.Pl,5),2&t)&&(s.iGM(i=s.CRH())&&(e._portalHost=i.first))},hostAttrs:[1,"mat-tab-body"],features:[s.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(s.TgZ(0,"div",0,1),s.NdJ("@translateTab.start",function(t){return e._onTranslateTabStarted(t)})("@translateTab.done",function(t){return e._translateTabComplete.next(t)}),s.YNc(2,S,0,0,"ng-template",2),s.qZA()),2&t&&s.Q6J("@translateTab",s.WLB(3,R,e._position,s.VKq(1,I,e.animationDuration)))},directives:[W],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Q.translateTab]}}),t}(),tt=new s.OlP("MAT_TABS_CONFIG"),et=0,it=function t(){_classCallCheck(this,t)},nt=(0,c.pj)((0,c.Kr)(function t(e){_classCallCheck(this,t),this._elementRef=e}),"primary"),rt=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;return _classCallCheck(this,i),(a=e.call(this,t))._changeDetectorRef=n,a._animationMode=o,a._tabs=new s.n_E,a._indexToSelect=0,a._tabBodyWrapperHeight=0,a._tabsSubscription=h.w.EMPTY,a._tabLabelSubscription=h.w.EMPTY,a._selectedIndex=null,a.headerPosition="above",a.selectedIndexChange=new s.vpe,a.focusChange=new s.vpe,a.animationDone=new s.vpe,a.selectedTabChange=new s.vpe(!0),a._groupId=et++,a.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",a.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,a.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,a}return _createClass(i,[{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(t){this._dynamicHeight=(0,b.Ig)(t)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(t){this._indexToSelect=(0,b.su)(t,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(t){var e=this._elementRef.nativeElement;e.classList.remove("mat-background-".concat(this.backgroundColor)),t&&e.classList.add("mat-background-".concat(t)),this._backgroundColor=t}},{key:"ngAfterContentChecked",value:function(){var t=this,e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){var i=null==this._selectedIndex;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));var n=this._tabBodyWrapper.nativeElement;n.style.minHeight=n.clientHeight+"px"}Promise.resolve().then(function(){t._tabs.forEach(function(t,i){return t.isActive=i===e}),i||(t.selectedIndexChange.emit(e),t._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(i,n){i.position=n-e,null==t._selectedIndex||0!=i.position||i.origin||(i.origin=e-t._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var t=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){if(t._clampTabIndex(t._indexToSelect)===t._selectedIndex)for(var e=t._tabs.toArray(),i=0;i.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-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;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}\n"],encapsulation:2}),t}(),at=(0,c.Id)(function t(){_classCallCheck(this,t)}),st=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this)).elementRef=t,n}return _createClass(i,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),i}(at);return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(s.uIk("aria-disabled",!!e.disabled),s.ekj("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[s.qOj]}),t}(),ct=(0,w.i$)({passive:!0}),ut=function(){var t=function(){function t(e,i,n,r,o,a,c){var u=this;_classCallCheck(this,t),this._elementRef=e,this._changeDetectorRef=i,this._viewportRuler=n,this._dir=r,this._ngZone=o,this._platform=a,this._animationMode=c,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new l.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new l.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new s.vpe,this.indexFocused=new s.vpe,o.runOutsideAngular(function(){(0,f.R)(e.nativeElement,"mouseleave").pipe((0,_.R)(u._destroyed)).subscribe(function(){u._stopInterval()})})}return _createClass(t,[{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(t){t=(0,b.su)(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}},{key:"ngAfterViewInit",value:function(){var t=this;(0,f.R)(this._previousPaginator.nativeElement,"touchstart",ct).pipe((0,_.R)(this._destroyed)).subscribe(function(){t._handlePaginatorPress("before")}),(0,f.R)(this._nextPaginator.nativeElement,"touchstart",ct).pipe((0,_.R)(this._destroyed)).subscribe(function(){t._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var t=this,e=this._dir?this._dir.change:(0,p.of)("ltr"),i=this._viewportRuler.change(150),r=function(){t.updatePagination(),t._alignInkBarToSelectedTab()};this._keyManager=new n.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(r):r(),(0,d.T)(e,i,this._items.changes).pipe((0,_.R)(this._destroyed)).subscribe(function(){t._ngZone.run(function(){return Promise.resolve().then(r)}),t._keyManager.withHorizontalOrientation(t._getLayoutDirection())}),this._keyManager.change.pipe((0,_.R)(this._destroyed)).subscribe(function(e){t.indexFocused.emit(e),t._setTabFocus(e)})}},{key:"ngAfterContentChecked",value:function(){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())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(t){if(!(0,A.Vb)(t))switch(t.keyCode){case A.K5:case A.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}},{key:"_onContentChanges",value:function(){var t=this,e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(function(){t.updatePagination(),t._alignInkBarToSelectedTab(),t._changeDetectorRef.markForCheck()}))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}},{key:"_isValidIndex",value:function(t){if(!this._items)return!0;var e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}},{key:"_setTabFocus",value:function(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();var e=this._tabListContainer.nativeElement,i=this._getLayoutDirection();e.scrollLeft="ltr"==i?0:e.scrollWidth-e.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(e),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(t){this._scrollTo(t)}},{key:"_scrollHeader",value:function(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(t){this._stopInterval(),this._scrollHeader(t)}},{key:"_scrollToLabel",value:function(t){if(!this.disablePagination){var e=this._items?this._items.toArray()[t]:null;if(e){var i,n,r=this._tabListContainer.nativeElement.offsetWidth,o=e.elementRef.nativeElement,a=o.offsetLeft,s=o.offsetWidth;"ltr"==this._getLayoutDirection()?n=(i=a)+s:i=(n=this._tabList.nativeElement.offsetWidth-a)-s;var c=this.scrollDistance,u=this.scrollDistance+r;iu&&(this.scrollDistance+=n-u+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(t,e){var i=this;e&&null!=e.button&&0!==e.button||(this._stopInterval(),(0,g.H)(650,100).pipe((0,_.R)((0,d.T)(this._stopScrolling,this._destroyed))).subscribe(function(){var e=i._scrollHeader(t),n=e.maxScrollDistance,r=e.distance;(0===r||r>=n)&&i._stopInterval()}))}},{key:"_scrollTo",value:function(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(C.rL),s.Y36(k.Is,8),s.Y36(s.R0b),s.Y36(w.t4),s.Y36(u.Qb,8))},t.\u0275dir=s.lG2({type:t,inputs:{disablePagination:"disablePagination"}}),t}(),lt=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,a,s,c){var u;return _classCallCheck(this,i),(u=e.call(this,t,n,r,o,a,s,c))._disableRipple=!1,u}return _createClass(i,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(t){this._disableRipple=(0,b.Ig)(t)}},{key:"_itemSelected",value:function(t){t.preventDefault()}}]),i}(ut);return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(C.rL),s.Y36(k.Is,8),s.Y36(s.R0b),s.Y36(w.t4),s.Y36(u.Qb,8))},t.\u0275dir=s.lG2({type:t,inputs:{disableRipple:"disableRipple"},features:[s.qOj]}),t}(),ht=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,a,s,c){return _classCallCheck(this,i),e.call(this,t,n,r,o,a,s,c)}return i}(lt);return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(C.rL),s.Y36(k.Is,8),s.Y36(s.R0b),s.Y36(w.t4),s.Y36(u.Qb,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,i){var n;(1&t&&s.Suo(i,st,4),2&t)&&(s.iGM(n=s.CRH())&&(e._items=n))},viewQuery:function(t,e){var i;(1&t&&(s.Gf(H,7),s.Gf(z,7),s.Gf(Z,7),s.Gf(B,5),s.Gf(F,5)),2&t)&&(s.iGM(i=s.CRH())&&(e._inkBar=i.first),s.iGM(i=s.CRH())&&(e._tabListContainer=i.first),s.iGM(i=s.CRH())&&(e._tabList=i.first),s.iGM(i=s.CRH())&&(e._nextPaginator=i.first),s.iGM(i=s.CRH())&&(e._previousPaginator=i.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&s.ekj("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[s.qOj],ngContentSelectors:E,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","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"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0,1),s.NdJ("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),s._UZ(2,"div",2),s.qZA(),s.TgZ(3,"div",3,4),s.NdJ("keydown",function(t){return e._handleKeydown(t)}),s.TgZ(5,"div",5,6),s.NdJ("cdkObserveContent",function(){return e._onContentChanges()}),s.TgZ(7,"div",7),s.Hsn(8),s.qZA(),s._UZ(9,"mat-ink-bar"),s.qZA(),s.qZA(),s.TgZ(10,"div",8,9),s.NdJ("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),s._UZ(12,"div",2),s.qZA()),2&t&&(s.ekj("mat-tab-header-pagination-disabled",e._disableScrollBefore),s.Q6J("matRippleDisabled",e._disableScrollBefore||e.disableRipple),s.xp6(5),s.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode),s.xp6(5),s.ekj("mat-tab-header-pagination-disabled",e._disableScrollAfter),s.Q6J("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[c.wG,r.wD,H],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-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:transparent;touch-action:none}.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;content:"";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-animation-noopable.mat-ink-bar{transition:none;animation:none}.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-animation-noopable.mat-tab-list{transition:none;animation:none}.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}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.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{min-width:72px}}\n'],encapsulation:2}),t}(),dt=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[a.ez,c.BQ,o.eL,c.si,r.Q8,n.rt],c.BQ]}),t}()},36922:function(t,e,i){"use strict";i.d(e,{gM:function(){return B},AV:function(){return H}});var n,r=i(2522),o=i(24621),a=i(61511),s=i(31572),c=i(71522),u=i(4253),l=i(19861),h=i(75842),d=i(55959),f=i(31305),p=i(47930),g=i(48318),m=i(90611),v=i(96673),y=function(){function t(e){_classCallCheck(this,t),this.total=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new _(t,this.total))}}]),t}(),_=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,t)).total=n,r.count=0,r}return _createClass(i,[{key:"_next",value:function(t){++this.count>this.total&&this.destination.next(t)}}]),i}(v.L),b=i(47701),w=i(79996),A=i(56238),k=i(25416),C=i(11353),T=new Set,E=function(){var t=function(){function t(e){_classCallCheck(this,t),this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):S}return _createClass(t,[{key:"matchMedia",value:function(t){return this._platform.WEBKIT&&function(t){if(!T.has(t))try{n||((n=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(n)),n.sheet&&(n.sheet.insertRule("@media ".concat(t," {.fx-query-test{ }}"),0),T.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(C.t4))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(C.t4))},token:t,providedIn:"root"}),t}();function S(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}var I=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new d.xQ}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(t){var e=this;return R((0,l.Eq)(t)).some(function(t){return e._registerQuery(t).mql.matches})}},{key:"observe",value:function(t){var e=this,i=R((0,l.Eq)(t)).map(function(t){return e._registerQuery(t).observable}),n=(0,f.aj)(i);return(n=(0,p.z)(n.pipe((0,m.q)(1)),n.pipe(function(t){return t.lift(new y(1))},(0,b.b)(0)))).pipe((0,w.U)(function(t){var e={matches:!1,breakpoints:{}};return t.forEach(function(t){var i=t.matches,n=t.query;e.matches=e.matches||i,e.breakpoints[n]=i}),e}))}},{key:"_registerQuery",value:function(t){var e=this;if(this._queries.has(t))return this._queries.get(t);var i=this._mediaMatcher.matchMedia(t),n={observable:new g.y(function(t){var n=function(i){return e._zone.run(function(){return t.next(i)})};return i.addListener(n),function(){i.removeListener(n)}}).pipe((0,A.O)(i),(0,w.U)(function(e){var i=e.matches;return{query:t,matches:i}}),(0,k.R)(this._destroySubject)),mql:i};return this._queries.set(t,n),n}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(E),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(E),s.LFG(s.R0b))},token:t,providedIn:"root"}),t}();function R(t){return t.map(function(t){return t.split(",")}).reduce(function(t,e){return t.concat(e)}).map(function(t){return t.trim()})}var x=i(26899),O=i(10709),P=i(22526),D={tooltipState:(0,O.X$)("state",[(0,O.SB)("initial, void, hidden",(0,O.oB)({opacity:0,transform:"scale(0)"})),(0,O.SB)("visible",(0,O.oB)({transform:"scale(1)"})),(0,O.eR)("* => visible",(0,O.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,O.F4)([(0,O.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,O.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,O.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,O.eR)("* => hidden",(0,O.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,O.oB)({opacity:0})))])},M=(0,C.i$)({passive:!0}),L=new s.OlP("mat-tooltip-scroll-strategy"),N={provide:L,deps:[r.aV],useFactory:function(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:20})}}},z=new s.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),Z=function(){var t=function(){function t(e,i,n,r,o,a,s,c,u,l,f,p){var g=this;_classCallCheck(this,t),this._overlay=e,this._elementRef=i,this._scrollDispatcher=n,this._viewContainerRef=r,this._ngZone=o,this._platform=a,this._ariaDescriber=s,this._focusMonitor=c,this._dir=l,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 d.xQ,this._handleKeydown=function(t){g._isTooltipVisible()&&t.keyCode===h.hY&&!(0,h.Vb)(t)&&(t.preventDefault(),t.stopPropagation(),g._ngZone.run(function(){return g.hide(0)}))},this._scrollStrategy=u,this._document=p,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),l.change.pipe((0,k.R)(this._destroyed)).subscribe(function(){g._overlayRef&&g._updatePosition(g._overlayRef)}),o.runOutsideAngular(function(){i.nativeElement.addEventListener("keydown",g._handleKeydown)})}return _createClass(t,[{key:"position",get:function(){return this._position},set:function(t){var e;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(e=this._tooltipInstance)||void 0===e||e.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=(0,l.Ig)(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(t){var e=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){e._ariaDescriber.describe(e._elementRef.nativeElement,e.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var t=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,k.R)(this._destroyed)).subscribe(function(e){e?"keyboard"===e&&t._ngZone.run(function(){return t.show()}):t._ngZone.run(function(){return t.hide(0)})})}},{key:"ngOnDestroy",value:function(){var t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(e){var i=_slicedToArray(e,2),n=i[0],r=i[1];t.removeEventListener(n,r,M)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}},{key:"show",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var i=this._createOverlay();this._detach(),this._portal=this._portal||new x.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=i.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,k.R)(this._destroyed)).subscribe(function(){return t._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}}},{key:"hide",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(t)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var t=this;if(this._overlayRef)return this._overlayRef;var e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),i=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return i.positionChanges.pipe((0,k.R)(this._destroyed)).subscribe(function(e){t._updateCurrentPositionClass(e.connectionPair),t._tooltipInstance&&e.scrollableViewProperties.isOverlayClipped&&t._tooltipInstance.isVisible()&&t._ngZone.run(function(){return t.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:i,panelClass:"".concat(this._cssClassPrefix,"-tooltip-panel"),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,k.R)(this._destroyed)).subscribe(function(){return t._detach()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(t){var e=t.getConfig().positionStrategy,i=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([this._addOffset(Object.assign(Object.assign({},i.main),n.main)),this._addOffset(Object.assign(Object.assign({},i.fallback),n.fallback))])}},{key:"_addOffset",value:function(t){return t}},{key:"_getOrigin",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,i=this.position;"above"==i||"below"==i?t={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?t={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(t={originX:"end",originY:"center"});var n=this._invertPosition(t.originX,t.originY);return{main:t,fallback:{originX:n.x,originY:n.y}}}},{key:"_getOverlayPosition",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,i=this.position;"above"==i?t={overlayX:"center",overlayY:"bottom"}:"below"==i?t={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?t={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(t={overlayX:"start",overlayY:"center"});var n=this._invertPosition(t.overlayX,t.overlayY);return{main:t,fallback:{overlayX:n.x,overlayY:n.y}}}},{key:"_updateTooltipMessage",value:function(){var t=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,m.q)(1),(0,k.R)(this._destroyed)).subscribe(function(){t._tooltipInstance&&t._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}},{key:"_updateCurrentPositionClass",value:function(t){var e,i=t.overlayY,n=t.originX,r=t.originY;if((e="center"===i?this._dir&&"rtl"===this._dir.value?"end"===n?"left":"right":"start"===n?"left":"right":"bottom"===i&&"top"===r?"above":"below")!==this._currentPosition){var o=this._overlayRef;if(o){var a="".concat(this._cssClassPrefix,"-tooltip-panel-");o.removePanelClass(a+this._currentPosition),o.addPanelClass(a+e)}this._currentPosition=e}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var t=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){t._setupPointerExitEventsIfNeeded(),t.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){t._setupPointerExitEventsIfNeeded(),clearTimeout(t._touchstartTimeout),t._touchstartTimeout=setTimeout(function(){return t.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var t,e=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var i=[];if(this._platformSupportsMouseEvents())i.push(["mouseleave",function(){return e.hide()}],["wheel",function(t){return e._wheelListener(t)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var n=function(){clearTimeout(e._touchstartTimeout),e.hide(e._defaultOptions.touchendHideDelay)};i.push(["touchend",n],["touchcancel",n])}this._addListeners(i),(t=this._passiveListeners).push.apply(t,i)}}},{key:"_addListeners",value:function(t){var e=this;t.forEach(function(t){var i=_slicedToArray(t,2),n=i[0],r=i[1];e._elementRef.nativeElement.addEventListener(n,r,M)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(t){if(this._isTooltipVisible()){var e=this._document.elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;e===i||i.contains(e)||this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var t=this.touchGestures;if("off"!==t){var e=this._elementRef.nativeElement,i=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),"on"!==t&&e.draggable||(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent"}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.aV),s.Y36(s.SBq),s.Y36(u.mF),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(C.t4),s.Y36(o.$s),s.Y36(o.tE),s.Y36(void 0),s.Y36(P.Is),s.Y36(void 0),s.Y36(a.K0))},t.\u0275dir=s.lG2({type:t,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t}(),B=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,a,s,c,u,l,h,d,f){var p;return _classCallCheck(this,i),(p=e.call(this,t,n,r,o,a,s,c,u,l,h,d,f))._tooltipComponent=q,p}return i}(Z);return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.aV),s.Y36(s.SBq),s.Y36(u.mF),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(C.t4),s.Y36(o.$s),s.Y36(o.tE),s.Y36(L),s.Y36(P.Is,8),s.Y36(z,8),s.Y36(a.K0))},t.\u0275dir=s.lG2({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[s.qOj]}),t}(),F=function(){var t=function(){function t(e){_classCallCheck(this,t),this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new d.xQ}return _createClass(t,[{key:"show",value:function(t){var e=this;clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){e._visibility="visible",e._showTimeoutId=void 0,e._markForCheck()},t)}},{key:"hide",value:function(t){var e=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){e._visibility="hidden",e._hideTimeoutId=void 0,e._markForCheck()},t)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(t){var e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t}),t}(),q=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,t))._breakpointObserver=n,r._isHandset=r._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),r}return i}(F);return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36(I))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e._handleBodyInteraction()},!1,s.pYS)("auxclick",function(){return e._handleBodyInteraction()},!1,s.pYS),2&t&&s.Udp("zoom","visible"===e._visibility?1:null)},features:[s.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){var i;(1&t&&(s.TgZ(0,"div",0),s.NdJ("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),s.ALo(1,"async"),s._uU(2),s.qZA()),2&t)&&(s.ekj("mat-tooltip-handset",null==(i=s.lcZ(1,5,e._isHandset))?null:i.matches),s.Q6J("ngClass",e.tooltipClass)("@state",e._visibility),s.xp6(2),s.Oqu(e.message))},directives:[a.mk],pipes:[a.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[D.tooltipState]},changeDetection:0}),t}(),H=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[N],imports:[[o.rt,a.ez,r.U8,c.BQ],c.BQ,u.ZD]}),t}()},91010:function(t,e,i){"use strict";i.d(e,{GZ:function(){return g},gi:function(){return v},kc:function(){return w},JZ:function(){return b},dp:function(){return _},WX:function(){return A},uo:function(){return f},fQ:function(){return p},Ar:function(){return m},eu:function(){return y}});var n=i(71709),r=i(71522),o=i(19861),a=i(4230),s=i(78512),c=i(31906),u=i(90611),l=i(79996),h=i(31572),d=(0,r.sb)((0,r.Id)(n.Hs)),f=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this,t,n))._elementRef=t,o._tree=n,o.tabIndex=Number(r)||0,o._elementRef.nativeElement.classList.add("mat-tree-node"),o}return _createClass(i,[{key:"ngOnInit",value:function(){_get(_getPrototypeOf(i.prototype),"ngOnInit",this).call(this)}},{key:"ngDoCheck",value:function(){_get(_getPrototypeOf(i.prototype),"ngDoCheck",this).call(this)}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(i.prototype),"ngOnDestroy",this).call(this)}}]),i}(d);return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(n._0),h.$8M("tabindex"))},t.\u0275dir=h.lG2({type:t,selectors:[["mat-tree-node"]],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[h._Bn([{provide:n.Hs,useExisting:t}]),h.qOj]}),t}(),p=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(n.rO);return e.\u0275fac=function(i){return(t||(t=h.n5z(e)))(i||e)},e.\u0275dir=h.lG2({type:e,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[h._Bn([{provide:n.rO,useExisting:e}]),h.qOj]}),e}(),g=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;return _classCallCheck(this,i),(a=e.call(this,t,n,r))._elementRef=t,a._tree=n,a._differs=r,a._disabled=!1,a.tabIndex=Number(o)||0,a._elementRef.nativeElement.classList.add("mat-nested-tree-node"),a}return _createClass(i,[{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=(0,o.Ig)(t)}},{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(t){this._tabIndex=null!=t?t:0}},{key:"ngOnInit",value:function(){_get(_getPrototypeOf(i.prototype),"ngOnInit",this).call(this)}},{key:"ngDoCheck",value:function(){_get(_getPrototypeOf(i.prototype),"ngDoCheck",this).call(this)}},{key:"ngAfterContentInit",value:function(){_get(_getPrototypeOf(i.prototype),"ngAfterContentInit",this).call(this)}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(i.prototype),"ngOnDestroy",this).call(this)}}]),i}(n.Xx);return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(n._0),h.Y36(h.ZZ4),h.$8M("tabindex"))},t.\u0275dir=h.lG2({type:t,selectors:[["mat-nested-tree-node"]],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[h._Bn([{provide:n.Xx,useExisting:t},{provide:n.Hs,useExisting:t},{provide:n.HI,useExisting:t}]),h.qOj]}),t}(),m=function(){var t=function t(e,i){_classCallCheck(this,t),this.viewContainer=e,this._node=i};return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.s_b),h.Y36(n.HI,8))},t.\u0275dir=h.lG2({type:t,selectors:[["","matTreeNodeOutlet",""]],features:[h._Bn([{provide:n.cu,useExisting:t}])]}),t}(),v=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(n._0);return e.\u0275fac=function(i){return(t||(t=h.n5z(e)))(i||e)},e.\u0275cmp=h.Xpm({type:e,selectors:[["mat-tree"]],viewQuery:function(t,e){var i;(1&t&&h.Gf(m,7),2&t)&&(h.iGM(i=h.CRH())&&(e._nodeOutlet=i.first))},hostAttrs:["role","tree",1,"mat-tree","cdk-tree"],exportAs:["matTree"],features:[h._Bn([{provide:n._0,useExisting:e}]),h.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(t,e){1&t&&h.GkF(0,0)},directives:[m],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}\n"],encapsulation:2}),e}(),y=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"recursive",get:function(){return this._recursive},set:function(t){this._recursive=(0,o.Ig)(t)}}]),i}(n.Ud);return e.\u0275fac=function(i){return(t||(t=h.n5z(e)))(i||e)},e.\u0275dir=h.lG2({type:e,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[h._Bn([{provide:n.Ud,useExisting:e}]),h.qOj]}),e}(),_=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({imports:[[n.nZ,r.BQ],r.BQ]}),t}(),b=function(){function t(e,i,n,r){_classCallCheck(this,t),this.transformFunction=e,this.getLevel=i,this.isExpandable=n,this.getChildren=r}return _createClass(t,[{key:"_flattenNode",value:function(t,e,i,n){var r=this,o=this.transformFunction(t,e);if(i.push(o),this.isExpandable(o)){var a=this.getChildren(t);a&&(Array.isArray(a)?this._flattenChildren(a,e,i,n):a.pipe((0,u.q)(1)).subscribe(function(t){r._flattenChildren(t,e,i,n)}))}return i}},{key:"_flattenChildren",value:function(t,e,i,n){var r=this;t.forEach(function(o,a){var s=n.slice();s.push(a!=t.length-1),r._flattenNode(o,e+1,i,s)})}},{key:"flattenNodes",value:function(t){var e=this,i=[];return t.forEach(function(t){return e._flattenNode(t,0,i,[])}),i}},{key:"expandFlattenedNodes",value:function(t,e){var i=this,n=[],r=[];return r[0]=!0,t.forEach(function(t){for(var o=!0,a=0;a<=i.getLevel(t);a++)o=o&&r[a];o&&n.push(t),i.isExpandable(t)&&(r[i.getLevel(t)+1]=e.isExpanded(t))}),n}}]),t}(),w=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this))._treeControl=t,o._treeFlattener=n,o._flattenedData=new s.X([]),o._expandedData=new s.X([]),o._data=new s.X([]),r&&(o.data=r),o}return _createClass(i,[{key:"data",get:function(){return this._data.value},set:function(t){this._data.next(t),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}},{key:"connect",value:function(t){var e=this;return(0,c.T)(t.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe((0,l.U)(function(){return e._expandedData.next(e._treeFlattener.expandFlattenedNodes(e._flattenedData.value,e._treeControl)),e._expandedData.value}))}},{key:"disconnect",value:function(){}}]),i}(a.o2),A=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.apply(this,arguments))._data=new s.X([]),t}return _createClass(i,[{key:"data",get:function(){return this._data.value},set:function(t){this._data.next(t)}},{key:"connect",value:function(t){var e=this;return(0,c.T)(t.viewChange,this._data).pipe((0,l.U)(function(){return e.data}))}},{key:"disconnect",value:function(){}}]),i}(a.o2)},43490:function(t,e,i){"use strict";i.d(e,{Qb:function(){return ye},PW:function(){return Ae}});var n=i(31572),r=i(30269),o=i(10709);function a(){return"undefined"!=typeof window&&void 0!==window.document}function s(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function c(t){switch(t.length){case 0:return new o.ZN;case 1:return t[0];default:return new o.ZE(t)}}function u(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=[],c=[],u=-1,l=null;if(n.forEach(function(t){var i=t.offset,n=i==u,h=n&&l||{};Object.keys(t).forEach(function(i){var n=i,c=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,s),c){case o.k1:c=r[i];break;case o.l3:c=a[i];break;default:c=e.normalizeStyleValue(i,n,c,s)}h[n]=c}),n||c.push(h),l=h,u=i}),s.length){var h="\n - ";throw new Error("Unable to animate due to the following errors:".concat(h).concat(s.join(h)))}return c}function l(t,e,i,n){switch(e){case"start":t.onStart(function(){return n(i&&h(i,"start",t))});break;case"done":t.onDone(function(){return n(i&&h(i,"done",t))});break;case"destroy":t.onDestroy(function(){return n(i&&h(i,"destroy",t))})}}function h(t,e,i){var n=i.totalTime,r=d(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),o=t._data;return null!=o&&(r._data=o),r}function d(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:t,triggerName:e,fromState:i,toState:n,phaseName:r,totalTime:o,disabled:!!a}}function f(t,e,i){var n;return t instanceof Map?(n=t.get(e))||t.set(e,n=i):(n=t[e])||(n=t[e]=i),n}function p(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var g=function(t,e){return!1},m=function(t,e){return!1},v=function(t,e,i){return[]},y=s();(y||"undefined"!=typeof Element)&&(g=a()?function(t,e){for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:function(t,e){return t.contains(e)},m=function(){if(y||Element.prototype.matches)return function(t,e){return t.matches(e)};var t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?function(t,i){return e.apply(t,[i])}:m}(),v=function(t,e,i){var n=[];if(i)for(var r=t.querySelectorAll(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach(function(i){e[i]=t[i]}),e}function P(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e)for(var n in t)i[n]=t[n];else O(t,i);return i}function D(t,e,i){return i?e+":"+i+";":""}function M(t){for(var e="",i=0;i *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,i);if("function"==typeof n)return void e.push(n);t=n}var r=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return i.push('The provided transition expression "'.concat(t,'" is not supported')),e;var o=r[1],a=r[2],s=r[3];e.push(Q(o,s)),"<"!=a[0]||"*"==o&&"*"==s||e.push(Q(s,o))}(t,r,n)}):r.push(i),r),animation:o,queryCount:e.queryCount,depCount:e.depCount,options:it(t.options)}}},{key:"visitSequence",value:function(t,e){var i=this;return{type:2,steps:t.steps.map(function(t){return Y(i,t,e)}),options:it(t.options)}}},{key:"visitGroup",value:function(t,e){var i=this,n=e.currentTime,r=0,o=t.steps.map(function(t){e.currentTime=n;var o=Y(i,t,e);return r=Math.max(r,e.currentTime),o});return e.currentTime=r,{type:3,steps:o,options:it(t.options)}}},{key:"visitAnimate",value:function(t,e){var i,n=function(t,e){var i=null;if(t.hasOwnProperty("duration"))i=t;else if("number"==typeof t)return nt(x(t,e).duration,0,"");var n=t;if(n.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var r=nt(0,0,"");return r.dynamic=!0,r.strValue=n,r}return nt((i=i||x(n,e)).duration,i.delay,i.easing)}(t.timings,e.errors);e.currentAnimateTimings=n;var r=t.styles?t.styles:(0,o.oB)({});if(5==r.type)i=this.visitKeyframes(r,e);else{var a=t.styles,s=!1;if(!a){s=!0;var c={};n.easing&&(c.easing=n.easing),a=(0,o.oB)(c)}e.currentTime+=n.duration+n.delay;var u=this.visitStyle(a,e);u.isEmptyStep=s,i=u}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}},{key:"visitStyle",value:function(t,e){var i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}},{key:"_makeStyleAst",value:function(t,e){var i=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==o.l3?i.push(t):e.errors.push("The provided style string value ".concat(t," is not allowed.")):i.push(t)}):i.push(t.styles);var n=!1,r=null;return i.forEach(function(t){if(et(t)){var e=t,i=e.easing;if(i&&(r=i,delete e.easing),!n)for(var o in e)if(e[o].toString().indexOf("{{")>=0){n=!0;break}}}),{type:6,styles:i,easing:r,offset:t.offset,containsDynamicStyles:n,options:null}}},{key:"_validateStyleAst",value:function(t,e){var i=this,n=e.currentAnimateTimings,r=e.currentTime,o=e.currentTime;n&&o>0&&(o-=n.duration+n.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(n){if(i._driver.validateStyleProperty(n)){var a,s,c,u,l,h=e.collectedStyles[e.currentQuerySelector],d=h[n],f=!0;d&&(o!=r&&o>=d.startTime&&r<=d.endTime&&(e.errors.push('The CSS property "'.concat(n,'" that exists between the times of "').concat(d.startTime,'ms" and "').concat(d.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(r,'ms"')),f=!1),o=d.startTime),f&&(h[n]={startTime:o,endTime:r}),e.options&&(a=t[n],s=e.options,c=e.errors,u=s.params||{},(l=B(a)).length&&l.forEach(function(t){u.hasOwnProperty(t)||c.push("Unable to resolve the local animation param ".concat(t," in the given list of values"))}))}else e.errors.push('The provided animation property "'.concat(n,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(t,e){var i=this,n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;var r=0,o=[],a=!1,s=!1,c=0,u=t.steps.map(function(t){var n=i._makeStyleAst(t,e),u=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach(function(t){if(et(t)&&t.hasOwnProperty("offset")){var i=t;e=parseFloat(i.offset),delete i.offset}});else if(et(t)&&t.hasOwnProperty("offset")){var i=t;e=parseFloat(i.offset),delete i.offset}return e}(n.styles),l=0;return null!=u&&(r++,l=n.offset=u),s=s||l<0||l>1,a=a||l0&&r0?r==d?1:h*r:o[r],s=a*g;e.currentTime=f+p.delay+s,p.duration=s,i._validateStyleAst(t,e),t.offset=a,n.styles.push(t)}),n}},{key:"visitReference",value:function(t,e){return{type:8,animation:Y(this,z(t.animation),e),options:it(t.options)}}},{key:"visitAnimateChild",value:function(t,e){return e.depCount++,{type:9,options:it(t.options)}}},{key:"visitAnimateRef",value:function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:it(t.options)}}},{key:"visitQuery",value:function(t,e){var i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;var r=_slicedToArray(function(t){var e=!!t.split(/\s*,\s*/).find(function(t){return":self"==t});return e&&(t=t.replace(W,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(t){return".ng-trigger-"+t.substr(1)}).replace(/:animating/g,".ng-animating"),e]}(t.selector),2),o=r[0],a=r[1];e.currentQuerySelector=i.length?i+" "+o:o,f(e.collectedStyles,e.currentQuerySelector,{});var s=Y(this,z(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:n.limit||0,optional:!!n.optional,includeSelf:a,animation:s,originalSelector:t.selector,options:it(t.options)}}},{key:"visitStagger",value:function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var i="full"===t.timings?{duration:0,delay:0,easing:"full"}:x(t.timings,e.errors,!0);return{type:12,animation:Y(this,z(t.animation),e),timings:i,options:null}}}]),t}(),tt=function t(e){_classCallCheck(this,t),this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function et(t){return!Array.isArray(t)&&"object"==typeof t}function it(t){var e;return t?(t=O(t)).params&&(t.params=(e=t.params)?O(e):null):t={},t}function nt(t,e,i){return{duration:t,delay:e,easing:i}}function rt(t,e,i,n,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var ot=function(){function t(){_classCallCheck(this,t),this._map=new Map}return _createClass(t,[{key:"consume",value:function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e}},{key:"append",value:function(t,e){var i,n=this._map.get(t);n||this._map.set(t,n=[]),(i=n).push.apply(i,_toConsumableArray(e))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),t}(),at=new RegExp(":enter","g"),st=new RegExp(":leave","g");function ct(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,c=arguments.length>8?arguments[8]:void 0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new ut).buildKeyframes(t,e,i,n,r,o,a,s,c,u)}var ut=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"buildKeyframes",value:function(t,e,i,n,r,o,a,s,c){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];c=c||new ot;var l=new ht(t,e,c,n,r,u,[]);l.options=s,l.currentTimeline.setStyles([o],null,l.errors,s),Y(this,i,l);var h=l.timelines.filter(function(t){return t.containsAnimation()});if(h.length&&Object.keys(a).length){var d=h[h.length-1];d.allowOnlyTimelineStyles()||d.setStyles([a],null,l.errors,s)}return h.length?h.map(function(t){return t.buildKeyframes()}):[rt(e,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,e){}},{key:"visitState",value:function(t,e){}},{key:"visitTransition",value:function(t,e){}},{key:"visitAnimateChild",value:function(t,e){var i=e.subInstructions.consume(e.element);if(i){var n=e.createSubContext(t.options),r=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,n,n.options);r!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}},{key:"visitAnimateRef",value:function(t,e){var i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}},{key:"_visitSubInstructions",value:function(t,e,i){var n=e.currentTimeline.currentTime,r=null!=i.duration?I(i.duration):null,o=null!=i.delay?I(i.delay):null;return 0!==r&&t.forEach(function(t){var i=e.appendInstructionToTimeline(t,r,o);n=Math.max(n,i.duration+i.delay)}),n}},{key:"visitReference",value:function(t,e){e.updateOptions(t.options,!0),Y(this,t.animation,e),e.previousNode=t}},{key:"visitSequence",value:function(t,e){var i=this,n=e.subContextCount,r=e,o=t.options;if(o&&(o.params||o.delay)&&((r=e.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=lt);var a=I(o.delay);r.delayNextStep(a)}t.steps.length&&(t.steps.forEach(function(t){return Y(i,t,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),e.previousNode=t}},{key:"visitGroup",value:function(t,e){var i=this,n=[],r=e.currentTimeline.currentTime,o=t.options&&t.options.delay?I(t.options.delay):0;t.steps.forEach(function(a){var s=e.createSubContext(t.options);o&&s.delayNextStep(o),Y(i,a,s),r=Math.max(r,s.currentTimeline.currentTime),n.push(s.currentTimeline)}),n.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(r),e.previousNode=t}},{key:"_visitTiming",value:function(t,e){if(t.dynamic){var i=t.strValue;return x(e.params?F(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,e){var i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());var r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}},{key:"visitStyle",value:function(t,e){var i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();var r=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(r):i.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}},{key:"visitKeyframes",value:function(t,e){var i=e.currentAnimateTimings,n=e.currentTimeline.duration,r=i.duration,o=e.createSubContext().currentTimeline;o.easing=i.easing,t.styles.forEach(function(t){o.forwardTime((t.offset||0)*r),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(n+r),e.previousNode=t}},{key:"visitQuery",value:function(t,e){var i=this,n=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?I(r.delay):0;o&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=lt);var a=n,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;var c=null;s.forEach(function(n,r){e.currentQueryIndex=r;var s=e.createSubContext(t.options,n);o&&s.delayNextStep(o),n===e.element&&(c=s.currentTimeline),Y(i,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}},{key:"visitStagger",value:function(t,e){var i=e.parentContext,n=e.currentTimeline,r=t.timings,o=Math.abs(r.duration),a=o*(e.currentQueryTotal-1),s=o*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=i.currentStaggerTime}var c=e.currentTimeline;s&&c.delayNextStep(s);var u=c.currentTime;Y(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-u+(n.startTime-i.currentTimeline.startTime)}}]),t}(),lt={},ht=function(){function t(e,i,n,r,o,a,s,c){_classCallCheck(this,t),this._driver=e,this.element=i,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=lt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new dt(this._driver,i,0),s.push(this.currentTimeline)}return _createClass(t,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(t,e){var i=this;if(t){var n=t,r=this.options;null!=n.duration&&(r.duration=I(n.duration)),null!=n.delay&&(r.delay=I(n.delay));var o=n.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(t){e&&a.hasOwnProperty(t)||(a[t]=F(o[t],a,i.errors))})}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var e=this.options.params;if(e){var i=t.params={};Object.keys(e).forEach(function(t){i[t]=e[t]})}}return t}},{key:"createSubContext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=i||this.element,o=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=lt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,e,i){var n={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},r=new ft(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(r),n}},{key:"incrementTime",value:function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}},{key:"delayNextStep",value:function(t){t>0&&this.currentTimeline.delayNextStep(t)}},{key:"invokeQuery",value:function(t,e,i,n,r,o){var a=[];if(n&&a.push(this.element),t.length>0){t=(t=t.replace(at,"."+this._enterClassName)).replace(st,"."+this._leaveClassName);var s=this._driver.query(this.element,t,1!=i);0!==i&&(s=i<0?s.slice(s.length+i,s.length):s.slice(0,i)),a.push.apply(a,_toConsumableArray(s))}return r||0!=a.length||o.push('`query("'.concat(e,'")` returned zero elements. (Use `query("').concat(e,'", { optional: true })` if you wish to allow this.)')),a}}]),t}(),dt=function(){function t(e,i,n,r){_classCallCheck(this,t),this._driver=e,this.element=i,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,this._localTimelineStyles)),this._loadKeyframe()}return _createClass(t,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}},{key:"fork",value:function(e,i){return this.applyStylesToKeyframe(),new t(this._driver,e,i||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}},{key:"_updateStyle",value:function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){e._backFill[t]=e._globalTimelineStyles[t]||o.l3,e._currentKeyframe[t]=o.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,e,i,n){var r=this;e&&(this._previousKeyframe.easing=e);var a=n&&n.params||{},s=function(t,e){var i,n={};return t.forEach(function(t){"*"===t?(i=i||Object.keys(e)).forEach(function(t){n[t]=o.l3}):P(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(s).forEach(function(t){var e=F(s[t],a,i);r._pendingStyles[t]=e,r._localTimelineStyles.hasOwnProperty(t)||(r._backFill[t]=r._globalTimelineStyles.hasOwnProperty(t)?r._globalTimelineStyles[t]:o.l3),r._updateStyle(t,e)})}},{key:"applyStylesToKeyframe",value:function(){var t=this,e=this._pendingStyles,i=Object.keys(e);0!=i.length&&(this._pendingStyles={},i.forEach(function(i){t._currentKeyframe[i]=e[i]}),Object.keys(this._localTimelineStyles).forEach(function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])}))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var i=t._localTimelineStyles[e];t._pendingStyles[e]=i,t._updateStyle(e,i)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t}},{key:"mergeTimelineCollectedStyles",value:function(t){var e=this;Object.keys(t._styleSummary).forEach(function(i){var n=e._styleSummary[i],r=t._styleSummary[i];(!n||r.time>n.time)&&e._updateStyle(i,r.value)})}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var e=new Set,i=new Set,n=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(a,s){var c=P(a,!0);Object.keys(c).forEach(function(t){var n=c[t];n==o.k1?e.add(t):n==o.l3&&i.add(t)}),n||(c.offset=s/t.duration),r.push(c)});var a=e.size?q(e.values()):[],s=i.size?q(i.values()):[];if(n){var c=r[0],u=O(c);c.offset=0,u.offset=1,r=[c,u]}return rt(this.element,r,a,s,this.duration,this.startTime,this.easing,!1)}}]),t}(),ft=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,a,s){var c,u=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return _classCallCheck(this,i),(c=e.call(this,t,n,s.delay)).element=n,c.keyframes=r,c.preStyleProps=o,c.postStyleProps=a,c._stretchStartingKeyframe=u,c.timings={duration:s.duration,delay:s.delay,easing:s.easing},c}return _createClass(i,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var t=this.keyframes,e=this.timings,i=e.delay,n=e.duration,r=e.easing;if(this._stretchStartingKeyframe&&i){var o=[],a=n+i,s=i/a,c=P(t[0],!1);c.offset=0,o.push(c);var u=P(t[0],!1);u.offset=pt(s),o.push(u);for(var l=t.length-1,h=1;h<=l;h++){var d=P(t[h],!1);d.offset=pt((i+d.offset*n)/a),o.push(d)}n=a,i=0,r="",t=o}return rt(this.element,t,this.preStyleProps,this.postStyleProps,n,i,r,!0)}}]),i}(dt);function pt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,i=Math.pow(10,e-1);return Math.round(t*i)/i}var gt,mt,vt=function t(){_classCallCheck(this,t)},yt=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"normalizePropertyName",value:function(t,e){return U(t)}},{key:"normalizeStyleValue",value:function(t,e,i,n){var r="",o=i.toString().trim();if(_t[e]&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{var a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&n.push("Please provide a CSS unit value for ".concat(t,":").concat(i))}return o+r}}]),i}(vt),_t=(gt="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".split(","),mt={},gt.forEach(function(t){return mt[t]=!0}),mt);function bt(t,e,i,n,r,o,a,s,c,u,l,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:i,fromStyles:o,toState:n,toStyles:a,timelines:s,queriedElements:c,preStyleProps:u,postStyleProps:l,totalTime:h,errors:d}}var wt={},At=function(){function t(e,i,n){_classCallCheck(this,t),this._triggerName=e,this.ast=i,this._stateStyles=n}return _createClass(t,[{key:"match",value:function(t,e,i,n){return function(t,e,i,n,r){return t.some(function(t){return t(e,i,n,r)})}(this.ast.matchers,t,e,i,n)}},{key:"buildStyles",value:function(t,e,i){var n=this._stateStyles["*"],r=this._stateStyles[t],o=n?n.buildStyles(e,i):{};return r?r.buildStyles(e,i):o}},{key:"build",value:function(t,e,i,n,r,o,a,s,c,u){var l=[],h=this.ast.options&&this.ast.options.params||wt,d=this.buildStyles(i,a&&a.params||wt,l),p=s&&s.params||wt,g=this.buildStyles(n,p,l),m=new Set,v=new Map,y=new Map,_="void"===n,b={params:Object.assign(Object.assign({},h),p)},w=u?[]:ct(t,e,this.ast.animation,r,o,d,g,b,c,l),A=0;if(w.forEach(function(t){A=Math.max(t.duration+t.delay,A)}),l.length)return bt(e,this._triggerName,i,n,_,d,g,[],[],v,y,A,l);w.forEach(function(t){var i=t.element,n=f(v,i,{});t.preStyleProps.forEach(function(t){return n[t]=!0});var r=f(y,i,{});t.postStyleProps.forEach(function(t){return r[t]=!0}),i!==e&&m.add(i)});var k=q(m.values());return bt(e,this._triggerName,i,n,_,d,g,w,k,v,y,A)}}]),t}(),kt=function(){function t(e,i){_classCallCheck(this,t),this.styles=e,this.defaultParams=i}return _createClass(t,[{key:"buildStyles",value:function(t,e){var i={},n=O(this.defaultParams);return Object.keys(t).forEach(function(e){var i=t[e];null!=i&&(n[e]=i)}),this.styles.styles.forEach(function(t){if("string"!=typeof t){var r=t;Object.keys(r).forEach(function(t){var o=r[t];o.length>1&&(o=F(o,n,e)),i[t]=o})}}),i}}]),t}(),Ct=function(){function t(e,i){var n=this;_classCallCheck(this,t),this.name=e,this.ast=i,this.transitionFactories=[],this.states={},i.states.forEach(function(t){n.states[t.name]=new kt(t.style,t.options&&t.options.params||{})}),Tt(this.states,"true","1"),Tt(this.states,"false","0"),i.transitions.forEach(function(t){n.transitionFactories.push(new At(e,t,n.states))}),this.fallbackTransition=new At(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return _createClass(t,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(t,e,i,n){return this.transitionFactories.find(function(r){return r.match(t,e,i,n)})||null}},{key:"matchStyles",value:function(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}]),t}();function Tt(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}var Et=new ot,St=function(){function t(e,i,n){_classCallCheck(this,t),this.bodyNode=e,this._driver=i,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return _createClass(t,[{key:"register",value:function(t,e){var i=[],n=X(this._driver,e,i);if(i.length)throw new Error("Unable to build the animation due to the following errors: ".concat(i.join("\n")));this._animations[t]=n}},{key:"_buildPlayer",value:function(t,e,i){var n=t.element,r=u(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(n,r,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,e){var i,n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=[],s=this._animations[t],u=new Map;if(s?(i=ct(this._driver,e,s,"ng-enter","ng-leave",{},{},r,Et,a)).forEach(function(t){var e=f(u,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=null})}):(a.push("The requested animation doesn't exist or has already been destroyed"),i=[]),a.length)throw new Error("Unable to create the animation due to the following errors: ".concat(a.join("\n")));u.forEach(function(t,e){Object.keys(t).forEach(function(i){t[i]=n._driver.computeStyle(e,i,o.l3)})});var l=c(i.map(function(t){var e=u.get(t.element);return n._buildPlayer(t,{},e)}));return this._playersById[t]=l,l.onDestroy(function(){return n.destroy(t)}),this.players.push(l),l}},{key:"destroy",value:function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}},{key:"_getPlayer",value:function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by ".concat(t));return e}},{key:"listen",value:function(t,e,i,n){var r=d(e,"","","");return l(this._getPlayer(t),i,r,n),function(){}}},{key:"command",value:function(t,e,i,n){if("register"!=i)if("create"!=i){var r=this._getPlayer(t);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,n[0]||{});else this.register(t,n[0])}}]),t}(),It=[],Rt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},xt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ot=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";_classCallCheck(this,t),this.namespaceId=i;var n,r=e&&e.hasOwnProperty("value");if(this.value=null!=(n=r?e.value:e)?n:null,r){var o=O(e);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return _createClass(t,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(t){var e=t.params;if(e){var i=this.options.params;Object.keys(e).forEach(function(t){null==i[t]&&(i[t]=e[t])})}}}]),t}(),Pt=new Ot("void"),Dt=function(){function t(e,i,n){_classCallCheck(this,t),this.id=e,this.hostElement=i,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Ft(i,this._hostClassName)}return _createClass(t,[{key:"listen",value:function(t,e,i,n){var r,o=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'.concat(i,'" because the animation trigger "').concat(e,"\" doesn't exist!"));if(null==i||0==i.length)throw new Error('Unable to listen on the animation trigger "'.concat(e,'" because the provided event is undefined!'));if("start"!=(r=i)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(i,'" for the animation trigger "').concat(e,'" is not supported!'));var a=f(this._elementListeners,t,[]),s={name:e,phase:i,callback:n};a.push(s);var c=f(this._engine.statesByElement,t,{});return c.hasOwnProperty(e)||(Ft(t,"ng-trigger"),Ft(t,"ng-trigger-"+e),c[e]=Pt),function(){o._engine.afterFlush(function(){var t=a.indexOf(s);t>=0&&a.splice(t,1),o._triggers[e]||delete c[e]})}}},{key:"register",value:function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}},{key:"_getTrigger",value:function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'.concat(t,'" has not been registered!'));return e}},{key:"trigger",value:function(t,e,i){var n=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(e),a=new Lt(this.id,e,t),s=this._engine.statesByElement.get(t);s||(Ft(t,"ng-trigger"),Ft(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var c=s[e],u=new Ot(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&c&&u.absorbOptions(c.options),s[e]=u,c||(c=Pt),"void"===u.value||c.value!==u.value){var l=f(this._engine.playersByElement,t,[]);l.forEach(function(t){t.namespaceId==n.id&&t.triggerName==e&&t.queued&&t.destroy()});var h=o.matchTransition(c.value,u.value,t,u.params),d=!1;if(!h){if(!r)return;h=o.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:c,toState:u,player:a,isFallbackTransition:d}),d||(Ft(t,"ng-animate-queued"),a.onStart(function(){qt(t,"ng-animate-queued")})),a.onDone(function(){var e=n.players.indexOf(a);e>=0&&n.players.splice(e,1);var i=n._engine.playersByElement.get(t);if(i){var r=i.indexOf(a);r>=0&&i.splice(r,1)}}),this.players.push(a),l.push(a),a}if(!function(t,e){var i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(var r=0;r=0){for(var n=!1,r=i;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),n=!0;break}n||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}},{key:"register",value:function(t,e){var i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}},{key:"registerTrigger",value:function(t,e,i){var n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}},{key:"destroy",value:function(t,e){var i=this;if(t){var n=this._fetchNamespace(t);this.afterFlush(function(){i.namespacesByHostElement.delete(n.hostElement),delete i._namespaceLookup[t];var e=i._namespaceList.indexOf(n);e>=0&&i._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return n.destroy(e)})}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var e=new Set,i=this.statesByElement.get(t);if(i)for(var n=Object.keys(i),r=0;r=0&&this.collectedLeaveElements.splice(o,1)}if(t){var a=this._fetchNamespace(t);a&&a.insertNode(e,i)}n&&this.collectEnterElement(e)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Ft(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),qt(t,"ng-animate-disabled"))}},{key:"removeNode",value:function(t,e,i,n){if(Nt(e)){var r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n),i){var o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,n)}}else this._onRemovalComplete(e,n)}},{key:"markElementAsRemoved",value:function(t,e,i,n){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}},{key:"listen",value:function(t,e,i,n,r){return Nt(e)?this._fetchNamespace(t).listen(e,i,n,r):function(){}}},{key:"_buildInstruction",value:function(t,e,i,n,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,r)}},{key:"destroyInnerAnimations",value:function(t){var e=this,i=this.driver.query(t,".ng-trigger",!0);i.forEach(function(t){return e.destroyActiveAnimationsForElement(t)}),0!=this.playersByQueriedElement.size&&(i=this.driver.query(t,".ng-animating",!0)).forEach(function(t){return e.finishActiveQueriedAnimationOnElement(t)})}},{key:"destroyActiveAnimationsForElement",value:function(t){var e=this.playersByElement.get(t);e&&e.forEach(function(t){t.queued?t.markedForDestroy=!0:t.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach(function(t){return t.finish()})}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise(function(e){if(t.players.length)return c(t.players).onDone(function(){return e()});e()})}},{key:"processLeaveNode",value:function(t){var e=this,i=t.__ng_removed;if(i&&i.setForRemoval){if(t.__ng_removed=Rt,i.namespaceId){this.destroyInnerAnimations(t);var n=this._fetchNamespace(i.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,i.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(function(t){e.markElementAsDisabled(t,!1)})}},{key:"flush",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,i=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(e,i){return t._balanceNamespaceList(e,i)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var n=0;n=0;R--)this._namespaceList[R].drainQueuedTransitions(e).forEach(function(t){var e=t.player,o=t.element;if(S.push(e),i.collectedEnterElements.length){var a=o.__ng_removed;if(a&&a.setForMove)return void e.destroy()}var c=!p||!i.driver.containsElement(p,o),d=T.get(o),g=v.get(o),m=i._buildInstruction(t,n,g,d,c);if(m.errors&&m.errors.length)I.push(m);else{if(c)return e.onStart(function(){return N(o,m.fromStyles)}),e.onDestroy(function(){return L(o,m.toStyles)}),void r.push(e);if(t.isFallbackTransition)return e.onStart(function(){return N(o,m.fromStyles)}),e.onDestroy(function(){return L(o,m.toStyles)}),void r.push(e);m.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),n.append(o,m.timelines),s.push({instruction:m,player:e,element:o}),m.queriedElements.forEach(function(t){return f(u,t,[]).push(e)}),m.preStyleProps.forEach(function(t,e){var i=Object.keys(t);if(i.length){var n=l.get(e);n||l.set(e,n=new Set),i.forEach(function(t){return n.add(t)})}}),m.postStyleProps.forEach(function(t,e){var i=Object.keys(t),n=h.get(e);n||h.set(e,n=new Set),i.forEach(function(t){return n.add(t)})})}});if(I.length){var x=[];I.forEach(function(t){x.push("@".concat(t.triggerName," has failed due to:\n")),t.errors.forEach(function(t){return x.push("- ".concat(t,"\n"))})}),S.forEach(function(t){return t.destroy()}),this.reportError(x)}var O=new Map,P=new Map;s.forEach(function(t){var e=t.element;n.has(e)&&(P.set(e,e),i._beforeAnimationBuild(t.player.namespaceId,t.instruction,O))}),r.forEach(function(t){var e=t.element;i._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){f(O,e,[]).push(t),t.destroy()})});var D=_.filter(function(t){return Gt(t,l,h)}),M=new Map;Zt(M,this.driver,w,h,o.l3).forEach(function(t){Gt(t,l,h)&&D.push(t)});var z=new Map;m.forEach(function(t,e){Zt(z,i.driver,new Set(t),l,o.k1)}),D.forEach(function(t){var e=M.get(t),i=z.get(t);M.set(t,Object.assign(Object.assign({},e),i))});var Z=[],B=[],F={};s.forEach(function(t){var e=t.element,o=t.player,s=t.instruction;if(n.has(e)){if(d.has(e))return o.onDestroy(function(){return L(e,s.toStyles)}),o.disabled=!0,o.overrideTotalTime(s.totalTime),void r.push(o);var u=F;if(P.size>1){for(var l=e,h=[];l=l.parentNode;){var f=P.get(l);if(f){u=f;break}h.push(l)}h.forEach(function(t){return P.set(t,u)})}var p=i._buildAnimation(o.namespaceId,s,O,a,z,M);if(o.setRealPlayer(p),u===F)Z.push(o);else{var g=i.playersByElement.get(u);g&&g.length&&(o.parentPlayer=c(g)),r.push(o)}}else N(e,s.fromStyles),o.onDestroy(function(){return L(e,s.toStyles)}),B.push(o),d.has(e)&&r.push(o)}),B.forEach(function(t){var e=a.get(t.element);if(e&&e.length){var i=c(e);t.setRealPlayer(i)}}),r.forEach(function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(var q=0;q<_.length;q++){var H=_[q],U=H.__ng_removed;if(qt(H,"ng-leave"),!U||!U.hasAnimation){var G=[];if(u.size){var j=u.get(H);j&&j.length&&G.push.apply(G,_toConsumableArray(j));for(var Y=this.driver.query(H,".ng-animating",!0),K=0;K0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new o.ZN(t.duration,t.delay)}}]),t}(),Lt=function(){function t(e,i,n){_classCallCheck(this,t),this.namespaceId=e,this.triggerName=i,this.element=n,this._player=new o.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return _createClass(t,[{key:"setRealPlayer",value:function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(i){e._queuedCallbacks[i].forEach(function(e){return l(t,i,void 0,e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(t){this.totalTime=t}},{key:"syncPlayerEvents",value:function(t){var e=this,i=this._player;i.triggerCallback&&t.onStart(function(){return i.triggerCallback("start")}),t.onDone(function(){return e.finish()}),t.onDestroy(function(){return e.destroy()})}},{key:"_queueEvent",value:function(t,e){f(this._queuedCallbacks,t,[]).push(e)}},{key:"onDone",value:function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}},{key:"onStart",value:function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}},{key:"onDestroy",value:function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(t){this.queued||this._player.setPosition(t)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)}}]),t}();function Nt(t){return t&&1===t.nodeType}function zt(t,e){var i=t.style.display;return t.style.display=null!=e?e:"none",i}function Zt(t,e,i,n,r){var o=[];i.forEach(function(t){return o.push(zt(t))});var a=[];n.forEach(function(i,n){var o={};i.forEach(function(t){var i=o[t]=e.computeStyle(n,t,r);i&&0!=i.length||(n.__ng_removed=xt,a.push(n))}),t.set(n,o)});var s=0;return i.forEach(function(t){return zt(t,o[s++])}),a}function Bt(t,e){var i=new Map;if(t.forEach(function(t){return i.set(t,[])}),0==e.length)return i;var n=new Set(e),r=new Map;function o(t){if(!t)return 1;var e=r.get(t);if(e)return e;var a=t.parentNode;return e=i.has(a)?a:n.has(a)?1:o(a),r.set(t,e),e}return e.forEach(function(t){var e=o(t);1!==e&&i.get(e).push(t)}),i}function Ft(t,e){if(t.classList)t.classList.add(e);else{var i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function qt(t,e){if(t.classList)t.classList.remove(e);else{var i=t.$$classes;i&&delete i[e]}}function Ht(t,e,i){c(i).onDone(function(){return t.processLeaveNode(e)})}function Ut(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),t}();function Yt(t,e){var i=null,n=null;return Array.isArray(e)&&e.length?(i=Vt(e[0]),e.length>1&&(n=Vt(e[e.length-1]))):e&&(i=Vt(e)),i||n?new Kt(t,i,n):null}var Kt=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;var r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}return _createClass(t,[{key:"start",value:function(){this._state<1&&(this._startStyles&&L(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(L(this._element,this._initialStyles),this._endStyles&&(L(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(N(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(N(this._element,this._endStyles),this._endStyles=null),L(this._element,this._initialStyles),this._state=3)}}]),t}();return t.initialStylesByElement=new WeakMap,t}();function Vt(t){for(var e=null,i=Object.keys(t),n=0;n=this._delay&&i>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),te(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var t,e,i,n;this._destroyed||(this._destroyed=!0,this.finish(),t=this._element,e=this._name,i=ie(t,"").split(","),(n=$t(i,e))>=0&&(i.splice(n,1),ee(t,"",i.join(","))))}}]),t}();function Wt(t,e,i){ee(t,"PlayState",i,Xt(t,e))}function Xt(t,e){var i=ie(t,"");return i.indexOf(",")>0?$t(i.split(","),e):$t([i],e)}function $t(t,e){for(var i=0;i=0)return i;return-1}function te(t,e,i){i?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function ee(t,e,i,n){var r="animation"+e;if(null!=n){var o=t.style[r];if(o.length){var a=o.split(",");a[n]=i,i=a.join(",")}}t.style[r]=i}function ie(t,e){return t.style["animation"+e]||""}var ne=function(){function t(e,i,n,r,o,a,s,c){_classCallCheck(this,t),this.element=e,this.keyframes=i,this.animationName=n,this._duration=r,this._delay=o,this._finalStyles=s,this._specialStyles=c,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=r+o,this._buildStyler()}return _createClass(t,[{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(t){this._styler.setPosition(t)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var t=this;this._styler=new Qt(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return t.finish()})}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}},{key:"beforeDestroy",value:function(){var t=this;this.init();var e={};if(this.hasStarted()){var i=this._state>=3;Object.keys(this._finalStyles).forEach(function(n){"offset"!=n&&(e[n]=i?t._finalStyles[n]:K(t.element,n))})}this.currentSnapshot=e}}]),t}(),re=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this)).element=t,r._startingStyles={},r.__initialized=!1,r._styles=T(n),r}return _createClass(i,[{key:"init",value:function(){var t=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(e){t._startingStyles[e]=t.element.style[e]}),_get(_getPrototypeOf(i.prototype),"init",this).call(this))}},{key:"play",value:function(){var t=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(e){return t.element.style.setProperty(e,t._styles[e])}),_get(_getPrototypeOf(i.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var t=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(e){var i=t._startingStyles[e];i?t.element.style.setProperty(e,i):t.element.style.removeProperty(e)}),this._startingStyles=null,_get(_getPrototypeOf(i.prototype),"destroy",this).call(this))}}]),i}(o.ZN),oe=function(){function t(){_classCallCheck(this,t),this._count=0}return _createClass(t,[{key:"validateStyleProperty",value:function(t){return w(t)}},{key:"matchesElement",value:function(t,e){return A(t,e)}},{key:"containsElement",value:function(t,e){return k(t,e)}},{key:"query",value:function(t,e,i){return C(t,e,i)}},{key:"computeStyle",value:function(t,e,i){return window.getComputedStyle(t)[e]}},{key:"buildKeyframeElement",value:function(t,e,i){i=i.map(function(t){return T(t)});var n="@keyframes ".concat(e," {\n"),r="";i.forEach(function(t){r=" ";var e=parseFloat(t.offset);n+="".concat(r).concat(100*e,"% {\n"),r+=" ",Object.keys(t).forEach(function(e){var i=t[e];switch(e){case"offset":return;case"easing":return void(i&&(n+="".concat(r,"animation-timing-function: ").concat(i,";\n")));default:return void(n+="".concat(r).concat(e,": ").concat(i,";\n"))}}),n+="".concat(r,"}\n")}),n+="}\n";var o=document.createElement("style");return o.textContent=n,o}},{key:"animate",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=o.filter(function(t){return t instanceof ne}),s={};G(i,n)&&a.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return s[t]=e[t]})});var c=function(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach(function(t){Object.keys(t).forEach(function(i){"offset"!=i&&"easing"!=i&&(e[i]=t[i])})}),e}(e=j(t,e,s));if(0==i)return new re(t,c);var u="gen_css_kf_"+this._count++,l=this.buildKeyframeElement(t,u,e);(function(t){var e,i=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&i instanceof ShadowRoot?i:document.head})(t).appendChild(l);var h=Yt(t,e),d=new ne(t,e,u,i,n,r,c,h);return d.onDestroy(function(){var t;(t=l).parentNode.removeChild(t)}),d}}]),t}(),ae=function(){function t(e,i,n,r){_classCallCheck(this,t),this.element=e,this.keyframes=i,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return _createClass(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",function(){return t._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(t,e,i){return t.animate(e,i)}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(i){"offset"!=i&&(e[i]=t._finished?t._finalKeyframe[i]:K(t.element,i))}),this.currentSnapshot=e}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}]),t}(),se=function(){function t(){_classCallCheck(this,t),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ce().toString()),this._cssKeyframesDriver=new oe}return _createClass(t,[{key:"validateStyleProperty",value:function(t){return w(t)}},{key:"matchesElement",value:function(t,e){return A(t,e)}},{key:"containsElement",value:function(t,e){return k(t,e)}},{key:"query",value:function(t,e,i){return C(t,e,i)}},{key:"computeStyle",value:function(t,e,i){return window.getComputedStyle(t)[e]}},{key:"overrideWebAnimationsSupport",value:function(t){this._isNativeImpl=t}},{key:"animate",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,r,o);var s={duration:i,delay:n,fill:0==n?"both":"forwards"};r&&(s.easing=r);var c={},u=o.filter(function(t){return t instanceof ae});G(i,n)&&u.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return c[t]=e[t]})});var l=Yt(t,e=j(t,e=e.map(function(t){return P(t,!1)}),c));return new ae(t,e,s,l)}}]),t}();function ce(){return a()&&Element.prototype.animate||{}}var ue=i(61511),le=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,r){var o;return _classCallCheck(this,i),(o=e.call(this))._nextAnimationId=0,o._renderer=t.createRenderer(r.body,{id:"0",encapsulation:n.ifc.None,styles:[],data:{animation:[]}}),o}return _createClass(i,[{key:"build",value:function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var i=Array.isArray(t)?(0,o.vP)(t):t;return fe(this._renderer,null,e,"register",[i]),new he(e,this._renderer)}}]),i}(o._j);return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.FYo),n.LFG(ue.K0))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t}(),he=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this))._id=t,r._renderer=n,r}return _createClass(i,[{key:"create",value:function(t,e){return new de(this._id,t,e||{},this._renderer)}}]),i}(o.LC),de=function(){function t(e,i,n,r){_classCallCheck(this,t),this.id=e,this.element=i,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return _createClass(t,[{key:"_listen",value:function(t,e){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),e)}},{key:"_command",value:function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n=0&&t3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,n)}},{key:"removeChild",value:function(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}},{key:"selectRootElement",value:function(t,e){return this.delegate.selectRootElement(t,e)}},{key:"parentNode",value:function(t){return this.delegate.parentNode(t)}},{key:"nextSibling",value:function(t){return this.delegate.nextSibling(t)}},{key:"setAttribute",value:function(t,e,i,n){this.delegate.setAttribute(t,e,i,n)}},{key:"removeAttribute",value:function(t,e,i){this.delegate.removeAttribute(t,e,i)}},{key:"addClass",value:function(t,e){this.delegate.addClass(t,e)}},{key:"removeClass",value:function(t,e){this.delegate.removeClass(t,e)}},{key:"setStyle",value:function(t,e,i,n){this.delegate.setStyle(t,e,i,n)}},{key:"removeStyle",value:function(t,e,i){this.delegate.removeStyle(t,e,i)}},{key:"setProperty",value:function(t,e,i){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}},{key:"setValue",value:function(t,e){this.delegate.setValue(t,e)}},{key:"listen",value:function(t,e,i){return this.delegate.listen(t,e,i)}},{key:"disableAnimations",value:function(t,e){this.engine.disableAnimations(t,e)}}]),t}(),me=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;return _classCallCheck(this,i),(a=e.call(this,n,r,o)).factory=t,a.namespaceId=n,a}return _createClass(i,[{key:"setProperty",value:function(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}},{key:"listen",value:function(t,e,i){var n,r,o=this;if("@"==e.charAt(0)){var a,s=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t),c=e.substr(1),u="";return"@"!=c.charAt(0)&&(r=(n=c).indexOf("."),c=(a=_slicedToArray([n.substring(0,r),n.substr(r+1)],2))[0],u=a[1]),this.engine.listen(this.namespaceId,s,c,u,function(t){o.factory.scheduleListenerCallback(t._data||-1,i,t)})}return this.delegate.listen(t,e,i)}}]),i}(ge),ve=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){return _classCallCheck(this,i),e.call(this,t.body,n,r)}return _createClass(i,[{key:"ngOnDestroy",value:function(){this.flush()}}]),i}(jt);return t.\u0275fac=function(e){return new(e||t)(n.LFG(ue.K0),n.LFG(S),n.LFG(vt))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t}(),ye=new n.OlP("AnimationModuleType"),_e=[{provide:o._j,useClass:le},{provide:vt,useFactory:function(){return new yt}},{provide:jt,useClass:ve},{provide:n.FYo,useFactory:function(t,e,i){return new pe(t,e,i)},deps:[r.se,jt,n.R0b]}],be=[{provide:S,useFactory:function(){return"function"==typeof ce()?new se:new oe}},{provide:ye,useValue:"BrowserAnimations"}].concat(_e),we=[{provide:S,useClass:E},{provide:ye,useValue:"NoopAnimations"}].concat(_e),Ae=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"withConfig",value:function(e){return{ngModule:t,providers:e.disableAnimations?we:be}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:be,imports:[r.b2]}),t}()},30269:function(t,e,i){"use strict";i.d(e,{b2:function(){return z},H7:function(){return P},Dx:function(){return B},q6:function(){return L},se:function(){return A}});var n,r=i(61511),o=i(31572),a=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"onAndCancel",value:function(t,e,i){return t.addEventListener(e,i,!1),function(){t.removeEventListener(e,i,!1)}}},{key:"dispatchEvent",value:function(t,e){t.dispatchEvent(e)}},{key:"remove",value:function(t){t.parentNode&&t.parentNode.removeChild(t)}},{key:"createElement",value:function(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(t){return t.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(t){return t instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}},{key:"getBaseHref",value:function(t){var e=(s=s||document.querySelector("base"))?s.getAttribute("href"):null;return null==e?null:function(t){(n=n||document.createElement("a")).setAttribute("href",t);var e=n.pathname;return"/"===e.charAt(0)?e:"/".concat(e)}(e)}},{key:"resetBaseElement",value:function(){s=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function(t){return(0,r.Mx)(document.cookie,t)}}],[{key:"makeCurrent",value:function(){(0,r.HT)(new i)}}]),i}(function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.apply(this,arguments)).supportsDOMEvents=!0,t}return i}(r.w_)),s=null,c=new o.OlP("TRANSITION_ID"),u=[{provide:o.ip1,useFactory:function(t,e,i){return function(){i.get(o.CZH).donePromise.then(function(){var i=(0,r.q)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(function(e){return e.getAttribute("ng-transition")===t}).forEach(function(t){return i.remove(t)})})}},deps:[c,r.K0,o.zs3],multi:!0}],l=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"addToWindow",value:function(t){o.dqk.getAngularTestability=function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t.findTestabilityInTree(e,i);if(null==n)throw new Error("Could not find testability for element.");return n},o.dqk.getAllAngularTestabilities=function(){return t.getAllTestabilities()},o.dqk.getAllAngularRootElements=function(){return t.getAllRootElements()},o.dqk.frameworkStabilizers||(o.dqk.frameworkStabilizers=[]),o.dqk.frameworkStabilizers.push(function(t){var e=o.dqk.getAllAngularTestabilities(),i=e.length,n=!1,r=function(e){n=n||e,0==--i&&t(n)};e.forEach(function(t){t.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(t,e,i){if(null==e)return null;var n=t.getTestability(e);return null!=n?n:i?(0,r.q)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}],[{key:"init",value:function(){(0,o.VLi)(new t)}}]),t}(),h=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"build",value:function(){return new XMLHttpRequest}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t}(),d=new o.OlP("EventManagerPlugins"),f=function(){var t=function(){function t(e,i){var n=this;_classCallCheck(this,t),this._zone=i,this._eventNameToPlugin=new Map,e.forEach(function(t){return t.manager=n}),this._plugins=e.slice().reverse()}return _createClass(t,[{key:"addEventListener",value:function(t,e,i){return this._findPluginFor(e).addEventListener(t,e,i)}},{key:"addGlobalEventListener",value:function(t,e,i){return this._findPluginFor(e).addGlobalEventListener(t,e,i)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var i=this._plugins,n=0;n-1&&(e.splice(i,1),o+=t+".")}),o+=r,0!=e.length||0===r.length)return null;var a={};return a.domEventName=n,a.fullKey=o,a}},{key:"getEventFullKey",value:function(t){var e="",i=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&R.hasOwnProperty(e)&&(e=R[e]))}return I[e]||e}(t);return" "===(i=i.toLowerCase())?i="space":"."===i&&(i="dot"),S.forEach(function(n){n!=i&&(0,x[n])(t)&&(e+=n+".")}),e+=i}},{key:"eventCallback",value:function(t,e,n){return function(r){i.getEventFullKey(r)===t&&n.runGuarded(function(){return e(r)})}}},{key:"_normalizeKey",value:function(t){switch(t){case"esc":return"escape";default:return t}}}]),i}(p);return t.\u0275fac=function(e){return new(e||t)(o.LFG(r.K0))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t}(),P=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,o.Yz7)({factory:function(){return(0,o.LFG)(M)},token:t,providedIn:"root"}),t}();function D(t){return new M(t.get(r.K0))}var M=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this))._doc=t,n}return _createClass(i,[{key:"sanitize",value:function(t,e){if(null==e)return null;switch(t){case o.q3G.NONE:return e;case o.q3G.HTML:return(0,o.qzn)(e,"HTML")?(0,o.z3N)(e):(0,o.EiD)(this._doc,String(e)).toString();case o.q3G.STYLE:return(0,o.qzn)(e,"Style")?(0,o.z3N)(e):e;case o.q3G.SCRIPT:if((0,o.qzn)(e,"Script"))return(0,o.z3N)(e);throw new Error("unsafe value used in a script context");case o.q3G.URL:return(0,o.yhl)(e),(0,o.qzn)(e,"URL")?(0,o.z3N)(e):(0,o.mCW)(String(e));case o.q3G.RESOURCE_URL:if((0,o.qzn)(e,"ResourceURL"))return(0,o.z3N)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(t," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(t){return(0,o.JVY)(t)}},{key:"bypassSecurityTrustStyle",value:function(t){return(0,o.L6k)(t)}},{key:"bypassSecurityTrustScript",value:function(t){return(0,o.eBb)(t)}},{key:"bypassSecurityTrustUrl",value:function(t){return(0,o.LAX)(t)}},{key:"bypassSecurityTrustResourceUrl",value:function(t){return(0,o.pB0)(t)}}]),i}(P);return t.\u0275fac=function(e){return new(e||t)(o.LFG(r.K0))},t.\u0275prov=(0,o.Yz7)({factory:function(){return D((0,o.LFG)(o.gxx))},token:t,providedIn:"root"}),t}(),L=(0,o.eFA)(o._c5,"browser",[{provide:o.Lbi,useValue:r.bD},{provide:o.g9A,useValue:function(){a.makeCurrent(),l.init()},multi:!0},{provide:r.K0,useFactory:function(){return(0,o.RDi)(document),document},deps:[]}]),N=[[],{provide:o.zSh,useValue:"root"},{provide:o.qLn,useFactory:function(){return new o.qLn},deps:[]},{provide:d,useClass:E,multi:!0,deps:[r.K0,o.R0b,o.Lbi]},{provide:d,useClass:O,multi:!0,deps:[r.K0]},[],{provide:A,useClass:A,deps:[f,m,o.AFp]},{provide:o.FYo,useExisting:A},{provide:g,useExisting:m},{provide:m,useClass:m,deps:[r.K0]},{provide:o.dDg,useClass:o.dDg,deps:[o.R0b]},{provide:f,useClass:f,deps:[d,o.R0b]},{provide:r.JF,useClass:h,deps:[]},[]],z=function(){var t=function(){function t(e){if(_classCallCheck(this,t),e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return _createClass(t,null,[{key:"withServerTransition",value:function(e){return{ngModule:t,providers:[{provide:o.AFp,useValue:e.appId},{provide:c,useExisting:o.AFp},u]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.LFG(t,12))},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:N,imports:[r.ez,o.hGG]}),t}();function Z(){return new B((0,o.LFG)(r.K0))}var B=function(){var t=function(){function t(e){_classCallCheck(this,t),this._doc=e}return _createClass(t,[{key:"getTitle",value:function(){return this._doc.title}},{key:"setTitle",value:function(t){this._doc.title=t||""}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.LFG(r.K0))},t.\u0275prov=(0,o.Yz7)({factory:Z,token:t,providedIn:"root"}),t}();"undefined"!=typeof window&&window},57629:function(t,e,i){"use strict";i.d(e,{gz:function(){return Yt},m2:function(){return H},OD:function(){return q},GZ:function(){return wi},wN:function(){return ii},F0:function(){return pi},rH:function(){return gi},yS:function(){return mi},Bz:function(){return Ii},lC:function(){return yi}});var n=i(61511),r=i(31572),o=i(19764),a=i(40878),s=i(78512),c=i(31305),u=i(48318),l=i(39665),h=i(47930),d=i(31450),f=i(70653),p=i(42875),g=i(55959),m=i(96673);function v(t,e){var i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new y(t,e,i))}}var y=function(){function t(e,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,t),this.accumulator=e,this.seed=i,this.hasSeed=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new _(t,this.accumulator,this.seed,this.hasSeed))}}]),t}(),_=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;return _classCallCheck(this,i),(a=e.call(this,t)).accumulator=n,a._seed=r,a.hasSeed=o,a.index=0,a}return _createClass(i,[{key:"seed",get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t}},{key:"_next",value:function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}},{key:"_tryNext",value:function(t){var e,i=this.index++;try{e=this.accumulator(this.seed,t,i)}catch(n){this.destination.error(n)}this.seed=e,this.destination.next(e)}}]),i}(m.L),b=i(43835),w=i(98402);function A(t){return function(e){return 0===t?(0,f.c)():e.lift(new k(t))}}var k=function(){function t(e){if(_classCallCheck(this,t),this.total=e,this.total<0)throw new w.W}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new C(t,this.total))}}]),t}(),C=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,t)).total=n,r.ring=new Array,r.count=0,r}return _createClass(i,[{key:"_next",value:function(t){var e=this.ring,i=this.total,n=this.count++;e.length0)for(var i=this.count>=this.total?this.total:this.count,n=this.ring,r=0;r2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _classCallCheck(this,i),(r=e.call(this,t,n)).navigationTrigger=o,r.restoredState=a,r}return _createClass(i,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),i}(F),H=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this,t,n)).urlAfterRedirects=r,o}return _createClass(i,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),i}(F),U=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this,t,n)).reason=r,o}return _createClass(i,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),i}(F),G=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this,t,n)).error=r,o}return _createClass(i,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),i}(F),j=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;return _classCallCheck(this,i),(a=e.call(this,t,n)).urlAfterRedirects=r,a.state=o,a}return _createClass(i,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(F),Y=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;return _classCallCheck(this,i),(a=e.call(this,t,n)).urlAfterRedirects=r,a.state=o,a}return _createClass(i,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(F),K=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,a){var s;return _classCallCheck(this,i),(s=e.call(this,t,n)).urlAfterRedirects=r,s.state=o,s.shouldActivate=a,s}return _createClass(i,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),i}(F),V=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;return _classCallCheck(this,i),(a=e.call(this,t,n)).urlAfterRedirects=r,a.state=o,a}return _createClass(i,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(F),J=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;return _classCallCheck(this,i),(a=e.call(this,t,n)).urlAfterRedirects=r,a.state=o,a}return _createClass(i,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(F),Q=function(){function t(e){_classCallCheck(this,t),this.route=e}return _createClass(t,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),t}(),W=function(){function t(e){_classCallCheck(this,t),this.route=e}return _createClass(t,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),t}(),X=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),$=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),tt=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),et=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),it=function(){function t(e,i,n){_classCallCheck(this,t),this.routerEvent=e,this.position=i,this.anchor=n}return _createClass(t,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),t}(),nt=function(){function t(e){_classCallCheck(this,t),this.params=e||{}}return _createClass(t,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null}},{key:"getAll",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),t}();function rt(t){return new nt(t)}function ot(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function at(t,e,i){var n=i.path.split("/");if(n.length>t.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.length0?t[t.length-1]:null}function ht(t,e){for(var i in t)t.hasOwnProperty(i)&&e(t[i],i)}function dt(t){return(0,r.CqO)(t)?t:(0,r.QGY)(t)?(0,o.D)(Promise.resolve(t)):(0,a.of)(t)}var ft={exact:function t(e,i,n){if(!At(e.segments,i.segments))return!1;if(!yt(e.segments,i.segments,n))return!1;if(e.numberOfChildren!==i.numberOfChildren)return!1;for(var r in i.children){if(!e.children[r])return!1;if(!t(e.children[r],i.children[r],n))return!1}return!0},subset:mt},pt={exact:function(t,e){return st(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(i){return ct(t[i],e[i])})},ignored:function(){return!0}};function gt(t,e,i){return ft[i.paths](t.root,e.root,i.matrixParams)&&pt[i.queryParams](t.queryParams,e.queryParams)&&!("exact"===i.fragment&&t.fragment!==e.fragment)}function mt(t,e,i){return vt(t,e,e.segments,i)}function vt(t,e,i,n){if(t.segments.length>i.length){var r=t.segments.slice(0,i.length);return!!At(r,i)&&!e.hasChildren()&&!!yt(r,i,n)}if(t.segments.length===i.length){if(!At(t.segments,i))return!1;if(!yt(t.segments,i,n))return!1;for(var o in e.children){if(!t.children[o])return!1;if(!mt(t.children[o],e.children[o],n))return!1}return!0}var a=i.slice(0,t.segments.length),s=i.slice(t.segments.length);return!!At(t.segments,a)&&!!yt(t.segments,a,n)&&!!t.children.primary&&vt(t.children.primary,e,s,n)}function yt(t,e,i){return e.every(function(e,n){return pt[i](t[n].parameters,e.parameters)})}var _t=function(){function t(e,i,n){_classCallCheck(this,t),this.root=e,this.queryParams=i,this.fragment=n}return _createClass(t,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=rt(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Tt.serialize(this)}}]),t}(),bt=function(){function t(e,i){var n=this;_classCallCheck(this,t),this.segments=e,this.children=i,this.parent=null,ht(i,function(t,e){return t.parent=n})}return _createClass(t,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return Et(this)}}]),t}(),wt=function(){function t(e,i){_classCallCheck(this,t),this.path=e,this.parameters=i}return _createClass(t,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=rt(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return Dt(this)}}]),t}();function At(t,e){return t.length===e.length&&t.every(function(t,i){return t.path===e[i].path})}var kt=function t(){_classCallCheck(this,t)},Ct=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"parse",value:function(t){var e=new Zt(t);return new _t(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}},{key:"serialize",value:function(t){var e,i,n;return"/".concat(St(t.root,!0)).concat((i=t.queryParams,n=Object.keys(i).map(function(t){var e=i[t];return Array.isArray(e)?e.map(function(e){return"".concat(Rt(t),"=").concat(Rt(e))}).join("&"):"".concat(Rt(t),"=").concat(Rt(e))}).filter(function(t){return!!t}),n.length?"?".concat(n.join("&")):"")).concat("string"==typeof t.fragment?"#".concat((e=t.fragment,encodeURI(e))):"")}}]),t}(),Tt=new Ct;function Et(t){return t.segments.map(function(t){return Dt(t)}).join("/")}function St(t,e){if(!t.hasChildren())return Et(t);if(e){var i=t.children.primary?St(t.children.primary,!1):"",n=[];return ht(t.children,function(t,e){"primary"!==e&&n.push("".concat(e,":").concat(St(t,!1)))}),n.length>0?"".concat(i,"(").concat(n.join("//"),")"):i}var r=function(t,e){var i=[];return ht(t.children,function(t,n){"primary"===n&&(i=i.concat(e(t,n)))}),ht(t.children,function(t,n){"primary"!==n&&(i=i.concat(e(t,n)))}),i}(t,function(e,i){return"primary"===i?[St(t.children.primary,!1)]:["".concat(i,":").concat(St(e,!1))]});return 1===Object.keys(t.children).length&&null!=t.children.primary?"".concat(Et(t),"/").concat(r[0]):"".concat(Et(t),"/(").concat(r.join("//"),")")}function It(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Rt(t){return It(t).replace(/%3B/gi,";")}function xt(t){return It(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ot(t){return decodeURIComponent(t)}function Pt(t){return Ot(t.replace(/\+/g,"%20"))}function Dt(t){return"".concat(xt(t.path)).concat((e=t.parameters,Object.keys(e).map(function(t){return";".concat(xt(t),"=").concat(xt(e[t]))}).join("")));var e}var Mt=/^[^\/()?;=#]+/;function Lt(t){var e=t.match(Mt);return e?e[0]:""}var Nt=/^[^=?&#]+/,zt=/^[^?&#]+/,Zt=function(){function t(e){_classCallCheck(this,t),this.url=e,this.remaining=e}return _createClass(t,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new bt([],{}):new bt([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new bt(t,e)),i}},{key:"parseSegment",value:function(){var t=Lt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new wt(Ot(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=Lt(this.remaining);if(e){this.capture(e);var i="";if(this.consumeOptional("=")){var n=Lt(this.remaining);n&&(i=n,this.capture(i))}t[Ot(e)]=Ot(i)}}},{key:"parseQueryParam",value:function(t){var e=function(t){var e=t.match(Nt);return e?e[0]:""}(this.remaining);if(e){this.capture(e);var i="";if(this.consumeOptional("=")){var n=function(t){var e=t.match(zt);return e?e[0]:""}(this.remaining);n&&(i=n,this.capture(i))}var r=Pt(e),o=Pt(i);if(t.hasOwnProperty(r)){var a=t[r];Array.isArray(a)||(a=[a],t[r]=a),a.push(o)}else t[r]=o}}},{key:"parseParens",value:function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var i=Lt(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;i.indexOf(":")>-1?(r=i.substr(0,i.indexOf(":")),this.capture(r),this.capture(":")):t&&(r="primary");var o=this.parseChildren();e[r]=1===Object.keys(o).length?o.primary:new bt([],o),this.consumeOptional("//")}return e}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),t}(),Bt=function(){function t(e){_classCallCheck(this,t),this._root=e}return _createClass(t,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}},{key:"children",value:function(t){var e=Ft(t,this._root);return e?e.children.map(function(t){return t.value}):[]}},{key:"firstChild",value:function(t){var e=Ft(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=qt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})}},{key:"pathFromRoot",value:function(t){return qt(t,this._root).map(function(t){return t.value})}}]),t}();function Ft(t,e){if(t===e.value)return e;var i,n=_createForOfIteratorHelper(e.children);try{for(n.s();!(i=n.n()).done;){var r=Ft(t,i.value);if(r)return r}}catch(o){n.e(o)}finally{n.f()}return null}function qt(t,e){if(t===e.value)return[e];var i,n=_createForOfIteratorHelper(e.children);try{for(n.s();!(i=n.n()).done;){var r=qt(t,i.value);if(r.length)return r.unshift(e),r}}catch(o){n.e(o)}finally{n.f()}return[]}var Ht=function(){function t(e,i){_classCallCheck(this,t),this.value=e,this.children=i}return _createClass(t,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),t}();function Ut(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var Gt=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,t)).snapshot=n,Qt(_assertThisInitialized(r),t),r}return _createClass(i,[{key:"toString",value:function(){return this.snapshot.toString()}}]),i}(Bt);function jt(t,e){var i=function(t,e){var i=new Vt([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Jt("",new Ht(i,[]))}(t,e),n=new s.X([new wt("",{})]),r=new s.X({}),o=new s.X({}),a=new s.X({}),c=new s.X(""),u=new Yt(n,r,a,c,o,"primary",e,i.root);return u.snapshot=i.root,new Gt(new Ht(u,[]),i)}var Yt=function(){function t(e,i,n,r,o,a,s,c){_classCallCheck(this,t),this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=c}return _createClass(t,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe((0,I.U)(function(t){return rt(t)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,I.U)(function(t){return rt(t)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),t}();function Kt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",i=t.pathFromRoot,n=0;if("always"!==e)for(n=i.length-1;n>=1;){var r=i[n],o=i[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(o.component)break;n--}}return function(t){return t.reduce(function(t,e){return{params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}},{params:{},data:{},resolve:{}})}(i.slice(n))}var Vt=function(){function t(e,i,n,r,o,a,s,c,u,l,h){_classCallCheck(this,t),this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=c,this._urlSegment=u,this._lastPathIndex=l,this._resolve=h}return _createClass(t,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=rt(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=rt(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(t){return t.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}}]),t}(),Jt=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,n)).url=t,Qt(_assertThisInitialized(r),n),r}return _createClass(i,[{key:"toString",value:function(){return Wt(this._root)}}]),i}(Bt);function Qt(t,e){e.value._routerState=t,e.children.forEach(function(e){return Qt(t,e)})}function Wt(t){var e=t.children.length>0?" { ".concat(t.children.map(Wt).join(", ")," } "):"";return"".concat(t.value).concat(e)}function Xt(t){if(t.snapshot){var e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,st(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),st(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(var i=0;i0&&ie(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(ne);if(r&&r!==lt(n))throw new Error("{outlets:{}} has to be the last command")}return _createClass(t,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),t}(),se=function t(e,i,n){_classCallCheck(this,t),this.segmentGroup=e,this.processChildren=i,this.index=n};function ce(t,e,i){if(t||(t=new bt([],{})),0===t.segments.length&&t.hasChildren())return ue(t,e,i);var n=function(t,e,i){for(var n=0,r=e,o={match:!1,pathIndex:0,commandIndex:0};r=i.length)return o;var a=t.segments[r],s=i[n];if(ne(s))break;var c="".concat(s),u=n0&&void 0===c)break;if(c&&u&&"object"==typeof u&&void 0===u.outlets){if(!fe(c,u,a))return o;n+=2}else{if(!fe(c,{},a))return o;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}(t,e,i),r=i.slice(n.commandIndex);if(n.match&&n.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",i=0;i0)?Object.assign({},Ie):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var r=(e.matcher||at)(i,t,e);if(!r)return Object.assign({},Ie);var o={};ht(r.posParams,function(t,e){o[e]=t.path});var a=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a,positionalParamSegments:null!==(n=r.posParams)&&void 0!==n?n:{}}}function xe(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(i.length>0&&function(t,e,i){return i.some(function(i){return Oe(t,e,i)&&"primary"!==Ee(i)})}(t,i,n)){var o=new bt(e,function(t,e,i,n){var r={};r.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;var o,a=_createForOfIteratorHelper(i);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&"primary"!==Ee(s)){var c=new bt([],{});c._sourceSegment=t,c._segmentIndexShift=e.length,r[Ee(s)]=c}}}catch(u){a.e(u)}finally{a.f()}return r}(t,e,n,new bt(i,t.children)));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some(function(i){return Oe(t,e,i)})}(t,i,n)){var a=new bt(t.segments,function(t,e,i,n,r,o){var a,s={},c=_createForOfIteratorHelper(n);try{for(c.s();!(a=c.n()).done;){var u=a.value;if(Oe(t,i,u)&&!r[Ee(u)]){var l=new bt([],{});l._sourceSegment=t,l._segmentIndexShift="legacy"===o?t.segments.length:e.length,s[Ee(u)]=l}}}catch(h){c.e(h)}finally{c.f()}return Object.assign(Object.assign({},r),s)}(t,e,i,n,t.children,r));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:i}}var s=new bt(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:i}}function Oe(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path}function Pe(t,e,i,n){return!!(Ee(t)===n||"primary"!==n&&Oe(e,i,t))&&("**"===t.path||Re(e,t,i).matched)}function De(t,e,i){return 0===e.length&&!t.children[i]}var Me=function t(e){_classCallCheck(this,t),this.segmentGroup=e||null},Le=function t(e){_classCallCheck(this,t),this.urlTree=e};function Ne(t){return new u.y(function(e){return e.error(new Me(t))})}function ze(t){return new u.y(function(e){return e.error(new Le(t))})}function Ze(t){return new u.y(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(t,"'")))})}var Be=function(){function t(e,i,n,o,a){_classCallCheck(this,t),this.configLoader=i,this.urlSerializer=n,this.urlTree=o,this.config=a,this.allowRedirects=!0,this.ngModule=e.get(r.h0i)}return _createClass(t,[{key:"apply",value:function(){var t=this,e=xe(this.urlTree.root,[],[],this.config).segmentGroup,i=new bt(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,i,"primary").pipe((0,I.U)(function(e){return t.createUrlTree(Fe(e),t.urlTree.queryParams,t.urlTree.fragment)})).pipe((0,P.K)(function(e){if(e instanceof Le)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof Me)throw t.noMatchError(e);throw e}))}},{key:"match",value:function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe((0,I.U)(function(i){return e.createUrlTree(Fe(i),t.queryParams,t.fragment)})).pipe((0,P.K)(function(t){if(t instanceof Me)throw e.noMatchError(t);throw t}))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(t,e,i){var n=t.segments.length>0?new bt([],{primary:t}):t;return new _t(n,e,i)}},{key:"expandSegmentGroup",value:function(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe((0,I.U)(function(t){return new bt([],t)})):this.expandSegment(t,i,e,i.segments,n,!0)}},{key:"expandChildren",value:function(t,e,i){for(var n=this,r=[],a=0,s=Object.keys(i.children);a=2;return function(n){return n.pipe(t?(0,b.h)(function(e,i){return t(e,i,n)}):S.y,A(1),i?(0,E.d)(e):(0,T.T)(function(){return new l.K}))}}())}},{key:"expandSegment",value:function(t,e,i,n,r,s){var c=this;return(0,o.D)(i).pipe((0,D.b)(function(o){return c.expandSegmentAgainstRoute(t,e,i,o,n,r,s).pipe((0,P.K)(function(t){if(t instanceof Me)return(0,a.of)(null);throw t}))}),(0,M.P)(function(t){return!!t}),(0,P.K)(function(t,i){if(t instanceof l.K||"EmptyError"===t.name){if(De(e,n,r))return(0,a.of)(new bt([],{}));throw new Me(e)}throw t}))}},{key:"expandSegmentAgainstRoute",value:function(t,e,i,n,r,o,a){return Pe(n,e,r,o)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,r,o):Ne(e):Ne(e)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,e,i,n,r,o){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,r,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,e,i,n){var r=this,o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?ze(o):this.lineralizeSegments(i,o).pipe((0,L.zg)(function(i){var o=new bt(i,{});return r.expandSegment(t,o,e,i,n,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,i,n,r,o){var a=this,s=Re(e,n,r),c=s.matched,u=s.consumedSegments,l=s.lastChild,h=s.positionalParamSegments;if(!c)return Ne(e);var d=this.applyRedirectCommands(u,n.redirectTo,h);return n.redirectTo.startsWith("/")?ze(d):this.lineralizeSegments(n,d).pipe((0,L.zg)(function(n){return a.expandSegment(t,e,i,n.concat(r.slice(l)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(t,e,i,n,r){var o=this;if("**"===i.path)return i.loadChildren?(i._loadedConfig?(0,a.of)(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe((0,I.U)(function(t){return i._loadedConfig=t,new bt(n,{})})):(0,a.of)(new bt(n,{}));var s=Re(e,i,n),c=s.matched,u=s.consumedSegments,l=s.lastChild;if(!c)return Ne(e);var h=n.slice(l);return this.getChildConfig(t,i,n).pipe((0,L.zg)(function(t){var n=t.module,s=t.routes,c=xe(e,u,h,s),l=c.segmentGroup,d=c.slicedSegments,f=new bt(l.segments,l.children);if(0===d.length&&f.hasChildren())return o.expandChildren(n,s,f).pipe((0,I.U)(function(t){return new bt(u,t)}));if(0===s.length&&0===d.length)return(0,a.of)(new bt(u,{}));var p=Ee(i)===r;return o.expandSegment(n,f,s,d,p?"primary":r,!0).pipe((0,I.U)(function(t){return new bt(u.concat(t.segments),t.children)}))}))}},{key:"getChildConfig",value:function(t,e,i){var n=this;return e.children?(0,a.of)(new me(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?(0,a.of)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe((0,L.zg)(function(i){return i?n.configLoader.load(t.injector,e).pipe((0,I.U)(function(t){return e._loadedConfig=t,t})):function(t){return new u.y(function(e){return e.error(ot("Cannot load children because the guard of the route \"path: '".concat(t.path,"'\" returned false")))})}(e)})):(0,a.of)(new me([],t))}},{key:"runCanLoadGuards",value:function(t,e,i){var n=this,r=e.canLoad;if(!r||0===r.length)return(0,a.of)(!0);var o=r.map(function(n){var r,o=t.get(n);if(function(t){return t&&ve(t.canLoad)}(o))r=o.canLoad(e,i);else{if(!ve(o))throw new Error("Invalid CanLoad guard");r=o(e,i)}return dt(r)});return(0,a.of)(o).pipe(be(),(0,N.b)(function(t){if(ye(t)){var e=ot('Redirecting to "'.concat(n.urlSerializer.serialize(t),'"'));throw e.url=t,e}}),(0,I.U)(function(t){return!0===t}))}},{key:"lineralizeSegments",value:function(t,e){for(var i=[],n=e.root;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return(0,a.of)(i);if(n.numberOfChildren>1||!n.children.primary)return Ze(t.redirectTo);n=n.children.primary}}},{key:"applyRedirectCommands",value:function(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}},{key:"applyRedirectCreatreUrlTree",value:function(t,e,i,n){var r=this.createSegmentGroup(t,e.root,i,n);return new _t(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var i={};return ht(t,function(t,n){if("string"==typeof t&&t.startsWith(":")){var r=t.substring(1);i[n]=e[r]}else i[n]=t}),i}},{key:"createSegmentGroup",value:function(t,e,i,n){var r=this,o=this.createSegments(t,e.segments,i,n),a={};return ht(e.children,function(e,o){a[o]=r.createSegmentGroup(t,e,i,n)}),new bt(o,a)}},{key:"createSegments",value:function(t,e,i,n){var r=this;return e.map(function(e){return e.path.startsWith(":")?r.findPosParam(t,e,n):r.findOrReturn(e,i)})}},{key:"findPosParam",value:function(t,e,i){var n=i[e.path.substring(1)];if(!n)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(e.path,"'."));return n}},{key:"findOrReturn",value:function(t,e){var i,n=0,r=_createForOfIteratorHelper(e);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.path===t.path)return e.splice(n),o;n++}}catch(a){r.e(a)}finally{r.f()}return t}}]),t}();function Fe(t){for(var e={},i=0,n=Object.keys(t.children);i0||o.hasChildren())&&(e[r]=o)}return function(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new bt(t.segments.concat(e.segments),e.children)}return t}(new bt(t.segments,e))}var qe=function t(e){_classCallCheck(this,t),this.path=e,this.route=this.path[this.path.length-1]},He=function t(e,i){_classCallCheck(this,t),this.component=e,this.route=i};function Ue(t,e,i){var n=t._root;return je(n,e?e._root:null,i,[n.value])}function Ge(t,e,i){var n=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var i=e.routeConfig;if(i&&i._loadedConfig)return i._loadedConfig}return null}(e);return(n?n.module.injector:i).get(t)}function je(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=Ut(e);return t.children.forEach(function(t){!function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=t.value,a=e?e.value:null,s=i?i.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var c=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!At(t.url,e.url);case"pathParamsOrQueryParamsChange":return!At(t.url,e.url)||!st(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!$t(t,e)||!st(t.queryParams,e.queryParams);case"paramsChange":default:return!$t(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new qe(n)):(o.data=a.data,o._resolvedData=a._resolvedData),je(t,e,o.component?s?s.children:null:i,n,r),c&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new He(s.outlet.component,a))}else a&&Ye(e,s,r),r.canActivateChecks.push(new qe(n)),je(t,null,o.component?s?s.children:null:i,n,r)}(t,o[t.value.outlet],i,n.concat([t.value]),r),delete o[t.value.outlet]}),ht(o,function(t,e){return Ye(t,i.getContext(e),r)}),r}function Ye(t,e,i){var n=Ut(t),r=t.value;ht(n,function(t,n){Ye(t,r.component?e?e.children.getContext(n):null:e,i)}),i.canDeactivateChecks.push(new He(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}var Ke=function t(){_classCallCheck(this,t)};function Ve(t){return new u.y(function(e){return e.error(t)})}var Je=function(){function t(e,i,n,r,o,a){_classCallCheck(this,t),this.rootComponentType=e,this.config=i,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return _createClass(t,[{key:"recognize",value:function(){var t=xe(this.urlTree.root,[],[],this.config.filter(function(t){return void 0===t.redirectTo}),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary");if(null===e)return null;var i=new Vt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),n=new Ht(i,e),r=new Jt(this.url,n);return this.inheritParamsAndData(r._root),r}},{key:"inheritParamsAndData",value:function(t){var e=this,i=t.value,n=Kt(i,this.paramsInheritanceStrategy);i.params=Object.freeze(n.params),i.data=Object.freeze(n.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})}},{key:"processSegmentGroup",value:function(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}},{key:"processChildren",value:function(t,e){for(var i=[],n=0,r=Object.keys(e.children);n0?lt(i).parameters:{};r=new Vt(i,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,$e(t),Ee(t),t.component,t,We(e),Xe(e)+i.length,ti(t))}else{var c=Re(e,t,i);if(!c.matched)return null;o=c.consumedSegments,a=i.slice(c.lastChild),r=new Vt(o,c.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,$e(t),Ee(t),t.component,t,We(e),Xe(e)+o.length,ti(t))}var u=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),l=xe(e,o,a,u.filter(function(t){return void 0===t.redirectTo}),this.relativeLinkResolution),h=l.segmentGroup,d=l.slicedSegments;if(0===d.length&&h.hasChildren()){var f=this.processChildren(u,h);return null===f?null:[new Ht(r,f)]}if(0===u.length&&0===d.length)return[new Ht(r,[])];var p=Ee(t)===n,g=this.processSegment(u,h,d,p?"primary":n);return null===g?null:[new Ht(r,g)]}}]),t}();function Qe(t){var e,i=[],n=new Set,r=_createForOfIteratorHelper(t);try{var o=function(){var t,r=e.value;if(!function(t){var e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}(r))return i.push(r),"continue";var o=i.find(function(t){return r.value.routeConfig===t.value.routeConfig});void 0!==o?((t=o.children).push.apply(t,_toConsumableArray(r.children)),n.add(o)):i.push(r)};for(r.s();!(e=r.n()).done;)o()}catch(l){r.e(l)}finally{r.f()}var a,s=_createForOfIteratorHelper(n);try{for(s.s();!(a=s.n()).done;){var c=a.value,u=Qe(c.children);i.push(new Ht(c.value,u))}}catch(l){s.e(l)}finally{s.f()}return i.filter(function(t){return!n.has(t)})}function We(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Xe(t){for(var e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)i+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return i-1}function $e(t){return t.data||{}}function ti(t){return t.resolve||{}}function ei(t){return(0,R.w)(function(e){var i=t(e);return i?(0,o.D)(i).pipe((0,I.U)(function(){return e})):(0,a.of)(e)})}var ii=function t(){_classCallCheck(this,t)},ni=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,e){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,e){return t.routeConfig===e.routeConfig}}]),t}()),ri=new r.OlP("ROUTES"),oi=function(){function t(e,i,n,r){_classCallCheck(this,t),this.loader=e,this.compiler=i,this.onLoadStartListener=n,this.onLoadEndListener=r}return _createClass(t,[{key:"load",value:function(t,e){var i=this;if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);var n=this.loadModuleFactory(e.loadChildren).pipe((0,I.U)(function(n){i.onLoadEndListener&&i.onLoadEndListener(e);var o=n.create(t);return new me(ut(o.injector.get(ri,void 0,r.XFs.Self|r.XFs.Optional)).map(Te),o)}),(0,P.K)(function(t){throw e._loader$=void 0,t}));return e._loader$=new p.c(n,function(){return new g.xQ}).pipe((0,z.x)()),e._loader$}},{key:"loadModuleFactory",value:function(t){var e=this;return"string"==typeof t?(0,o.D)(this.loader.load(t)):dt(t()).pipe((0,L.zg)(function(t){return t instanceof r.YKP?(0,a.of)(t):(0,o.D)(e.compiler.compileModuleAsync(t))}))}}]),t}(),ai=function t(){_classCallCheck(this,t),this.outlet=null,this.route=null,this.resolver=null,this.children=new si,this.attachRef=null},si=function(){function t(){_classCallCheck(this,t),this.contexts=new Map}return _createClass(t,[{key:"onChildOutletCreated",value:function(t,e){var i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}},{key:"onChildOutletDestroyed",value:function(t){var e=this.getContext(t);e&&(e.outlet=null)}},{key:"onOutletDeactivated",value:function(){var t=this.contexts;return this.contexts=new Map,t}},{key:"onOutletReAttached",value:function(t){this.contexts=t}},{key:"getOrCreateContext",value:function(t){var e=this.getContext(t);return e||(e=new ai,this.contexts.set(t,e)),e}},{key:"getContext",value:function(t){return this.contexts.get(t)||null}}]),t}(),ci=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,e){return t}}]),t}();function ui(t){throw t}function li(t,e,i){return e.parse("/")}function hi(t,e){return(0,a.of)(null)}var di={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},fi={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},pi=function(){var t=function(){function t(e,i,n,o,a,c,u,l){var h=this;_classCallCheck(this,t),this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=n,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new g.xQ,this.errorHandler=ui,this.malformedUriErrorHandler=li,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:hi,afterPreactivation:hi},this.urlHandlingStrategy=new ci,this.routeReuseStrategy=new ni,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=a.get(r.h0i),this.console=a.get(r.c2e);var d=a.get(r.R0b);this.isNgZoneEnabled=d instanceof r.R0b&&r.R0b.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=new _t(new bt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new oi(c,u,function(t){return h.triggerEvent(new Q(t))},function(t){return h.triggerEvent(new W(t))}),this.routerState=jt(this.currentUrlTree,this.rootComponentType),this.transitions=new s.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()}return _createClass(t,[{key:"setupNavigations",value:function(t){var e=this,i=this.events;return t.pipe((0,b.h)(function(t){return 0!==t.id}),(0,I.U)(function(t){return Object.assign(Object.assign({},t),{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}),(0,R.w)(function(t){var n,r,s,c=!1,u=!1;return(0,a.of)(t).pipe((0,N.b)(function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?Object.assign(Object.assign({},e.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,R.w)(function(t){var n,r,o,s,c=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||c)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return(0,a.of)(t).pipe((0,R.w)(function(t){var n=e.transitions.getValue();return i.next(new q(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==e.transitions.getValue()?f.E:Promise.resolve(t)}),(n=e.ngModule.injector,r=e.configLoader,o=e.urlSerializer,s=e.config,(0,R.w)(function(t){return function(t,e,i,n,r){return new Be(t,e,i,n,r).apply()}(n,r,o,t.extractedUrl,s).pipe((0,I.U)(function(e){return Object.assign(Object.assign({},t),{urlAfterRedirects:e})}))})),(0,N.b)(function(t){e.currentNavigation=Object.assign(Object.assign({},e.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,i,n,r,o){return(0,L.zg)(function(n){return function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var s=new Je(t,e,i,n,r,o).recognize();return null===s?Ve(new Ke):(0,a.of)(s)}catch(c){return Ve(c)}}(t,i,n.urlAfterRedirects,(s=n.urlAfterRedirects,e.serializeUrl(s)),r,o).pipe((0,I.U)(function(t){return Object.assign(Object.assign({},n),{targetSnapshot:t})}));var s})}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),(0,N.b)(function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,t),e.browserUrlTree=t.urlAfterRedirects);var n=new j(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);i.next(n)}));if(c&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var u=t.id,l=t.extractedUrl,h=t.source,d=t.restoredState,p=t.extras,g=new q(u,e.serializeUrl(l),h,d);i.next(g);var m=jt(l,e.rootComponentType).snapshot;return(0,a.of)(Object.assign(Object.assign({},t),{targetSnapshot:m,urlAfterRedirects:l,extras:Object.assign(Object.assign({},p),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),f.E}),ei(function(t){var i=t.targetSnapshot,n=t.id,r=t.extractedUrl,o=t.rawUrl,a=t.extras,s=a.skipLocationChange,c=a.replaceUrl;return e.hooks.beforePreactivation(i,{navigationId:n,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!c})}),(0,N.b)(function(t){var i=new Y(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(i)}),(0,I.U)(function(t){return Object.assign(Object.assign({},t),{guards:Ue(t.targetSnapshot,t.currentSnapshot,e.rootContexts)})}),function(t,e){return(0,L.zg)(function(i){var n=i.targetSnapshot,r=i.currentSnapshot,s=i.guards,c=s.canActivateChecks,u=s.canDeactivateChecks;return 0===u.length&&0===c.length?(0,a.of)(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return(0,o.D)(t).pipe((0,L.zg)(function(t){return function(t,e,i,n,r){var o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return(0,a.of)(!0);var s=o.map(function(o){var a,s=Ge(o,e,r);if(function(t){return t&&ve(t.canDeactivate)}(s))a=dt(s.canDeactivate(t,e,i,n));else{if(!ve(s))throw new Error("Invalid CanDeactivate guard");a=dt(s(t,e,i,n))}return a.pipe((0,M.P)())});return(0,a.of)(s).pipe(be())}(t.component,t.route,i,e,n)}),(0,M.P)(function(t){return!0!==t},!0))}(u,n,r,t).pipe((0,L.zg)(function(i){return i&&"boolean"==typeof i?function(t,e,i,n){return(0,o.D)(e).pipe((0,D.b)(function(e){return(0,h.z)(function(t,e){return null!==t&&e&&e(new X(t)),(0,a.of)(!0)}(e.route.parent,n),function(t,e){return null!==t&&e&&e(new tt(t)),(0,a.of)(!0)}(e.route,n),function(t,e,i){var n=e[e.length-1],r=e.slice(0,e.length-1).reverse().map(function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)}).filter(function(t){return null!==t}).map(function(e){return(0,d.P)(function(){var r=e.guards.map(function(r){var o,a=Ge(r,e.node,i);if(function(t){return t&&ve(t.canActivateChild)}(a))o=dt(a.canActivateChild(n,t));else{if(!ve(a))throw new Error("Invalid CanActivateChild guard");o=dt(a(n,t))}return o.pipe((0,M.P)())});return(0,a.of)(r).pipe(be())})});return(0,a.of)(r).pipe(be())}(t,e.path,i),function(t,e,i){var n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||0===n.length)return(0,a.of)(!0);var r=n.map(function(n){return(0,d.P)(function(){var r,o=Ge(n,e,i);if(function(t){return t&&ve(t.canActivate)}(o))r=dt(o.canActivate(e,t));else{if(!ve(o))throw new Error("Invalid CanActivate guard");r=dt(o(e,t))}return r.pipe((0,M.P)())})});return(0,a.of)(r).pipe(be())}(t,e.route,i))}),(0,M.P)(function(t){return!0!==t},!0))}(n,c,t,e):(0,a.of)(i)}),(0,I.U)(function(t){return Object.assign(Object.assign({},i),{guardsResult:t})}))})}(e.ngModule.injector,function(t){return e.triggerEvent(t)}),(0,N.b)(function(t){if(ye(t.guardsResult)){var i=ot('Redirecting to "'.concat(e.serializeUrl(t.guardsResult),'"'));throw i.url=t.guardsResult,i}var n=new K(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)}),(0,b.h)(function(t){return!!t.guardsResult||(e.cancelNavigationTransition(t,""),!1)}),ei(function(t){if(t.guards.canActivateChecks.length)return(0,a.of)(t).pipe((0,N.b)(function(t){var i=new V(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(i)}),(0,R.w)(function(t){var i,n,r=!1;return(0,a.of)(t).pipe((i=e.paramsInheritanceStrategy,n=e.ngModule.injector,(0,L.zg)(function(t){var e=t.targetSnapshot,r=t.guards.canActivateChecks;if(!r.length)return(0,a.of)(t);var s=0;return(0,o.D)(r).pipe((0,D.b)(function(t){return function(t,e,i,n){return function(t,e,i,n){var r=Object.keys(t);if(0===r.length)return(0,a.of)({});var s={};return(0,o.D)(r).pipe((0,L.zg)(function(r){return function(t,e,i,n){var r=Ge(t,e,n);return dt(r.resolve?r.resolve(e,i):r(e,i))}(t[r],e,i,n).pipe((0,N.b)(function(t){s[r]=t}))}),A(1),(0,L.zg)(function(){return Object.keys(s).length===r.length?(0,a.of)(s):f.E}))}(t._resolve,t,e,n).pipe((0,I.U)(function(e){return t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Kt(t,i).resolve),null}))}(t.route,e,i,n)}),(0,N.b)(function(){return s++}),A(1),(0,L.zg)(function(e){return s===r.length?(0,a.of)(t):f.E}))})),(0,N.b)({next:function(){return r=!0},complete:function(){r||e.cancelNavigationTransition(t,"At least one route resolver didn't emit any value.")}}))}),(0,N.b)(function(t){var i=new J(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(i)}))}),ei(function(t){var i=t.targetSnapshot,n=t.id,r=t.extractedUrl,o=t.rawUrl,a=t.extras,s=a.skipLocationChange,c=a.replaceUrl;return e.hooks.afterPreactivation(i,{navigationId:n,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!c})}),(0,I.U)(function(t){var i=function(t,e,i){var n=te(t,e._root,i?i._root:void 0);return new Gt(n,e)}(e.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:i})}),(0,N.b)(function(t){e.currentUrlTree=t.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(e.currentUrlTree,t.rawUrl),e.routerState=t.targetRouterState,"deferred"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,t),e.browserUrlTree=t.urlAfterRedirects)}),(n=e.rootContexts,r=e.routeReuseStrategy,s=function(t){return e.triggerEvent(t)},(0,I.U)(function(t){return new pe(r,t.targetRouterState,t.currentRouterState,s).activate(n),t})),(0,N.b)({next:function(){c=!0},complete:function(){c=!0}}),(0,Z.x)(function(){c||u||e.cancelNavigationTransition(t,"Navigation ID ".concat(t.id," is not equal to the current navigation id ").concat(e.navigationId)),e.currentNavigation=null}),(0,P.K)(function(n){if(u=!0,(s=n)&&s.ngNavigationCancelingError){var r=ye(n.url);r||(e.navigated=!0,e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));var o=new U(t.id,e.serializeUrl(t.extractedUrl),n.message);i.next(o),r?setTimeout(function(){var i=e.urlHandlingStrategy.merge(n.url,e.rawUrlTree);e.scheduleNavigation(i,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);var a=new G(t.id,e.serializeUrl(t.extractedUrl),n);i.next(a);try{t.resolve(e.errorHandler(n))}catch(c){t.reject(c)}}var s;return f.E}))}))}},{key:"resetRootComponentType",value:function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}},{key:"setTransition",value:function(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(e){var i=t.extractLocationChangeInfoFromEvent(e);t.shouldScheduleNavigation(t.lastLocationChangeInfo,i)&&setTimeout(function(){var e=i.source,n=i.state,r=i.urlTree,o={replaceUrl:!0};if(n){var a=Object.assign({},n);delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(o.state=a)}t.scheduleNavigation(r,e,n,o)},0),t.lastLocationChangeInfo=i}))}},{key:"extractLocationChangeInfoFromEvent",value:function(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(t,e){if(!t)return!0;var i=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&i&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(t){this.events.next(t)}},{key:"resetConfig",value:function(t){Ae(t),this.config=t.map(Te),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.relativeTo,n=e.queryParams,r=e.fragment,o=e.queryParamsHandling,a=e.preserveFragment,s=i||this.routerState.root,c=a?this.currentUrlTree.fragment:r,u=null;switch(o){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=n||null}return null!==u&&(u=this.removeEmptyProps(u)),function(t,e,i,n,r){if(0===i.length)return re(e.root,e.root,e,n,r);var o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ae(!0,0,t);var e=0,i=!1,n=t.reduce(function(t,n,r){if("object"==typeof n&&null!=n){if(n.outlets){var o={};return ht(n.outlets,function(t,e){o[e]="string"==typeof t?t.split("/"):t}),[].concat(_toConsumableArray(t),[{outlets:o}])}if(n.segmentPath)return[].concat(_toConsumableArray(t),[n.segmentPath])}return"string"!=typeof n?[].concat(_toConsumableArray(t),[n]):0===r?(n.split("/").forEach(function(n,r){0==r&&"."===n||(0==r&&""===n?i=!0:".."===n?e++:""!=n&&t.push(n))}),t):[].concat(_toConsumableArray(t),[n])},[]);return new ae(i,e,n)}(i);if(o.toRoot())return re(e.root,new bt([],{}),e,n,r);var a=function(t,e,i){if(t.isAbsolute)return new se(e.root,!0,0);if(-1===i.snapshot._lastPathIndex){var n=i.snapshot._urlSegment;return new se(n,n===e.root,0)}var r=ie(t.commands[0])?0:1;return function(t,e,i){for(var n=t,r=e,o=i;o>r;){if(o-=r,!(n=n.parent))throw new Error("Invalid number of '../'");r=n.segments.length}return new se(n,!1,r-o)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(o,e,t),s=a.processChildren?ue(a.segmentGroup,a.index,o.commands):ce(a.segmentGroup,a.index,o.commands);return re(a.segmentGroup,s,e,n,r)}(s,this.currentUrlTree,t,u,null!=c?c:null)}},{key:"navigateByUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},i=ye(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree),r=null;return"computed"===this.canceledNavigationResolution&&(0===this.currentPageId||e.skipLocationChange||e.replaceUrl)&&(r=this.location.getState()),this.scheduleNavigation(n,"imperative",r,e)}},{key:"navigate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(t){for(var e=0;e2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,t),this.router=e,this.viewportScroller=i,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}return _createClass(t,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var t=this;return this.router.events.subscribe(function(e){e instanceof q?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof H&&(t.lastId=e.id,t.scheduleScrollEvent(e,t.router.parseUrl(e.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var t=this;return this.router.events.subscribe(function(e){e instanceof it&&(e.position?"top"===t.options.scrollPositionRestoration?t.viewportScroller.scrollToPosition([0,0]):"enabled"===t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===t.options.anchorScrolling?t.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(t,e){this.router.triggerEvent(new it(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(pi),r.LFG(n.EM),r.LFG(void 0))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t}(),Ci=new r.OlP("ROUTER_CONFIGURATION"),Ti=new r.OlP("ROUTER_FORROOT_GUARD"),Ei=[n.Ye,{provide:kt,useClass:Ct},{provide:pi,useFactory:function(t,e,i,n,r,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},c=arguments.length>8?arguments[8]:void 0,u=arguments.length>9?arguments[9]:void 0,l=new pi(null,t,e,i,n,r,o,ut(a));return c&&(l.urlHandlingStrategy=c),u&&(l.routeReuseStrategy=u),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(s,l),s.enableTracing&&l.events.subscribe(function(t){var e,i;null===(e=console.group)||void 0===e||e.call(console,"Router Event: ".concat(t.constructor.name)),console.log(t.toString()),console.log(t),null===(i=console.groupEnd)||void 0===i||i.call(console)}),l},deps:[kt,si,n.Ye,r.zs3,r.v3s,r.Sil,ri,Ci,[function(){return function t(){_classCallCheck(this,t)}}(),new r.FiY],[ii,new r.FiY]]},si,{provide:Yt,useFactory:function(t){return t.routerState.root},deps:[pi]},{provide:r.v3s,useClass:r.EAV},Ai,wi,function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"preload",value:function(t,e){return e().pipe((0,P.K)(function(){return(0,a.of)(null)}))}}]),t}(),{provide:Ci,useValue:{enableTracing:!1}}];function Si(){return new r.PXZ("Router",pi)}var Ii=function(){var t=function(){function t(e,i){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(e,i){return{ngModule:t,providers:[Ei,Pi(e),{provide:Ti,useFactory:Oi,deps:[[pi,new r.FiY,new r.tp0]]},{provide:Ci,useValue:i||{}},{provide:n.S$,useFactory:xi,deps:[n.lw,[new r.tBr(n.mr),new r.FiY],Ci]},{provide:ki,useFactory:Ri,deps:[pi,n.EM,Ci]},{provide:bi,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:wi},{provide:r.PXZ,multi:!0,useFactory:Si},[Di,{provide:r.ip1,multi:!0,useFactory:Mi,deps:[Di]},{provide:Ni,useFactory:Li,deps:[Di]},{provide:r.tb,multi:!0,useExisting:Ni}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[Pi(e)]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(Ti,8),r.LFG(pi,8))},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t}();function Ri(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new ki(t,e,i)}function xi(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.useHash?new n.Do(t,e):new n.b0(t,e)}function Oi(t){return"guarded"}function Pi(t){return[{provide:r.deG,multi:!0,useValue:t},{provide:ri,multi:!0,useValue:t}]}var Di=function(){var t=function(){function t(e){_classCallCheck(this,t),this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new g.xQ}return _createClass(t,[{key:"appInitializer",value:function(){var t=this;return this.injector.get(n.V_,Promise.resolve(null)).then(function(){var e=null,i=new Promise(function(t){return e=t}),n=t.injector.get(pi),r=t.injector.get(Ci);return"disabled"===r.initialNavigation?(n.setUpLocationChangeListener(),e(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(n.hooks.afterPreactivation=function(){return t.initNavigation?(0,a.of)(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},n.initialNavigation()):e(!0),i})}},{key:"bootstrapListener",value:function(t){var e=this.injector.get(Ci),i=this.injector.get(Ai),n=this.injector.get(ki),o=this.injector.get(pi),a=this.injector.get(r.z2F);t===a.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||o.initialNavigation(),i.setUpPreloading(),n.init(),o.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(r.zs3))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t}();function Mi(t){return t.appInitializer.bind(t)}function Li(t){return t.bootstrapListener.bind(t)}var Ni=new r.OlP("Router Initializer")},48160:function(t,e,i){"use strict";i.d(e,{Zw:function(){return p},aw:function(){return D},X$:function(){return P},sK:function(){return O}});var n=i(31572),r=i(40878),o=i(4710),a=i(3148),s=i(47930),c=i(31450),u=i(90611),l=i(68303),h=i(79996),d=i(436),f=i(44689),p=function t(){_classCallCheck(this,t)},g=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"getTranslation",value:function(t){return(0,r.of)({})}}]),i}(p);return e.\u0275fac=function(i){return(t||(t=n.n5z(e)))(i||e)},e.\u0275prov=n.Yz7({token:e,factory:e.\u0275fac}),e}(),m=function t(){_classCallCheck(this,t)},v=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"handle",value:function(t){return t.key}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t}();function y(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;var i,n,r,o=typeof t;if(o==typeof e&&"object"==o){if(!Array.isArray(t)){if(Array.isArray(e))return!1;for(n in r=Object.create(null),t){if(!y(t[n],e[n]))return!1;r[n]=!0}for(n in e)if(!(n in r)&&void 0!==e[n])return!1;return!0}if(!Array.isArray(e))return!1;if((i=t.length)==e.length){for(n=0;n5&&void 0!==arguments[5])||arguments[5],c=arguments.length>6&&void 0!==arguments[6]&&arguments[6],u=arguments.length>7&&void 0!==arguments[7]&&arguments[7],l=arguments.length>8?arguments[8]:void 0;_classCallCheck(this,t),this.store=e,this.currentLoader=i,this.compiler=r,this.parser=o,this.missingTranslationHandler=a,this.useDefaultLang=s,this.isolate=c,this.extend=u,this.pending=!1,this._onTranslationChange=new n.vpe,this._onLangChange=new n.vpe,this._onDefaultLangChange=new n.vpe,this._langs=[],this._translations={},this._translationRequests={},l&&this.setDefaultLang(l)}return _createClass(t,[{key:"onTranslationChange",get:function(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}},{key:"onLangChange",get:function(){return this.isolate?this._onLangChange:this.store.onLangChange}},{key:"onDefaultLangChange",get:function(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}},{key:"defaultLang",get:function(){return this.isolate?this._defaultLang:this.store.defaultLang},set:function(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}},{key:"currentLang",get:function(){return this.isolate?this._currentLang:this.store.currentLang},set:function(t){this.isolate?this._currentLang=t:this.store.currentLang=t}},{key:"langs",get:function(){return this.isolate?this._langs:this.store.langs},set:function(t){this.isolate?this._langs=t:this.store.langs=t}},{key:"translations",get:function(){return this.isolate?this._translations:this.store.translations},set:function(t){this.isolate?this._translations=t:this.store.translations=t}},{key:"setDefaultLang",value:function(t){var e=this;if(t!==this.defaultLang){var i=this.retrieveTranslations(t);void 0!==i?(null==this.defaultLang&&(this.defaultLang=t),i.pipe((0,u.q)(1)).subscribe(function(i){e.changeDefaultLang(t)})):this.changeDefaultLang(t)}}},{key:"getDefaultLang",value:function(){return this.defaultLang}},{key:"use",value:function(t){var e=this;if(t===this.currentLang)return(0,r.of)(this.translations[t]);var i=this.retrieveTranslations(t);return void 0!==i?(this.currentLang||(this.currentLang=t),i.pipe((0,u.q)(1)).subscribe(function(i){e.changeLang(t)}),i):(this.changeLang(t),(0,r.of)(this.translations[t]))}},{key:"retrieveTranslations",value:function(t){var e;return(void 0===this.translations[t]||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),e=this._translationRequests[t]),e}},{key:"getTranslation",value:function(t){var e=this;this.pending=!0;var i=this.currentLoader.getTranslation(t).pipe((0,l.d)(1),(0,u.q)(1));return this.loadingTranslations=i.pipe((0,h.U)(function(i){return e.compiler.compileTranslations(i,t)}),(0,l.d)(1),(0,u.q)(1)),this.loadingTranslations.subscribe({next:function(i){e.translations[t]=e.extend&&e.translations[t]?Object.assign(Object.assign({},i),e.translations[t]):i,e.updateLangs(),e.pending=!1},error:function(t){e.pending=!1}}),i}},{key:"setTranslation",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e=this.compiler.compileTranslations(e,t),this.translations[t]=(i||this.extend)&&this.translations[t]?w(this.translations[t],e):e,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}},{key:"getLangs",value:function(){return this.langs}},{key:"addLangs",value:function(t){var e=this;t.forEach(function(t){-1===e.langs.indexOf(t)&&e.langs.push(t)})}},{key:"updateLangs",value:function(){this.addLangs(Object.keys(this.translations))}},{key:"getParsedResult",value:function(t,e,i){var n;if(e instanceof Array){var s,c={},u=!1,l=_createForOfIteratorHelper(e);try{for(l.s();!(s=l.n()).done;){var d=s.value;c[d]=this.getParsedResult(t,d,i),(0,o.b)(c[d])&&(u=!0)}}catch(g){l.e(g)}finally{l.f()}if(u){var f=e.map(function(t){return(0,o.b)(c[t])?c[t]:(0,r.of)(c[t])});return(0,a.D)(f).pipe((0,h.U)(function(t){var i={};return t.forEach(function(t,n){i[e[n]]=t}),i}))}return c}if(t&&(n=this.parser.interpolate(this.parser.getValue(t,e),i)),void 0===n&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(n=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e),i)),void 0===n){var p={key:e,translateService:this};void 0!==i&&(p.interpolateParams=i),n=this.missingTranslationHandler.handle(p)}return void 0!==n?n:e}},{key:"get",value:function(t,e){var i=this;if(!_(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,d.b)(function(n){return n=i.getParsedResult(n,t,e),(0,o.b)(n)?n:(0,r.of)(n)}));var n=this.getParsedResult(this.translations[this.currentLang],t,e);return(0,o.b)(n)?n:(0,r.of)(n)}},{key:"getStreamOnTranslationChange",value:function(t,e){var i=this;if(!_(t)||!t.length)throw new Error('Parameter "key" required');return(0,s.z)((0,c.P)(function(){return i.get(t,e)}),this.onTranslationChange.pipe((0,f.w)(function(n){var o=i.getParsedResult(n.translations,t,e);return"function"==typeof o.subscribe?o:(0,r.of)(o)})))}},{key:"stream",value:function(t,e){var i=this;if(!_(t)||!t.length)throw new Error('Parameter "key" required');return(0,s.z)((0,c.P)(function(){return i.get(t,e)}),this.onLangChange.pipe((0,f.w)(function(n){var a=i.getParsedResult(n.translations,t,e);return(0,o.b)(a)?a:(0,r.of)(a)})))}},{key:"instant",value:function(t,e){if(!_(t)||!t.length)throw new Error('Parameter "key" required');var i=this.getParsedResult(this.translations[this.currentLang],t,e);if((0,o.b)(i)){if(t instanceof Array){var n={};return t.forEach(function(e,i){n[t[i]]=t[i]}),n}return t}return i}},{key:"set",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.currentLang;this.translations[i][t]=this.compiler.compile(e,i),this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}},{key:"changeLang",value:function(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}},{key:"changeDefaultLang",value:function(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}},{key:"reloadLang",value:function(t){return this.resetLang(t),this.getTranslation(t)}},{key:"resetLang",value:function(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}},{key:"getBrowserLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var t=window.navigator.languages?window.navigator.languages[0]:null;return void 0!==(t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage)?(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t):void 0}}},{key:"getBrowserCultureLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.LFG(E),n.LFG(p),n.LFG(C),n.LFG(A),n.LFG(m),n.LFG(I),n.LFG(S),n.LFG(x),n.LFG(R))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t}(),P=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.translate=e,this._ref=i,this.value=""}return _createClass(t,[{key:"updateValue",value:function(t,e,i){var n=this,r=function(e){n.value=void 0!==e?e:t,n.lastKey=t,n._ref.markForCheck()};if(i){var a=this.translate.getParsedResult(i,t,e);(0,o.b)(a.subscribe)?a.subscribe(r):r(a)}this.translate.get(t,e).subscribe(r)}},{key:"transform",value:function(t){var e,i=this;if(!t||!t.length)return t;for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.loader||{provide:p,useClass:g},e.compiler||{provide:C,useClass:T},e.parser||{provide:A,useClass:k},e.missingTranslationHandler||{provide:m,useClass:v},E,{provide:S,useValue:e.isolate},{provide:I,useValue:e.useDefaultLang},{provide:x,useValue:e.extend},{provide:R,useValue:e.defaultLanguage},O]}}},{key:"forChild",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.loader||{provide:p,useClass:g},e.compiler||{provide:C,useClass:T},e.parser||{provide:A,useClass:k},e.missingTranslationHandler||{provide:m,useClass:v},{provide:S,useValue:e.isolate},{provide:I,useValue:e.useDefaultLang},{provide:x,useValue:e.extend},{provide:R,useValue:e.defaultLanguage},O]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t}()},52623:function _(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{zr:function(){return OAuthModule},Ct:function(){return OAuthService}});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(31572),_angular_common__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(61511),_angular_common_http__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(29063),tslib__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(77632),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(55959),rxjs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(40878),rxjs__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(19764),rxjs__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(3875),rxjs__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(31225),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(31305),rxjs__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(31906),rxjs_operators__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(43835),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(66599),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(47701),rxjs_operators__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(60509),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(44689),rxjs_operators__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(79996),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(3530),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(47727),rxjs_operators__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(29085),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(90611),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(73982);module=__webpack_require__.hmd(module);var DateTimeProvider=function t(){_classCallCheck(this,t)},SystemDateTimeProvider=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"now",value:function(){return Date.now()}},{key:"new",value:function(){return new Date}}]),i}(DateTimeProvider);return e.\u0275fac=function(i){return(t||(t=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(e)))(i||e)},e.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:e,factory:e.\u0275fac}),e}(),LoginOptions=function t(){_classCallCheck(this,t),this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1},OAuthLogger=function t(){_classCallCheck(this,t)},OAuthStorage=function t(){_classCallCheck(this,t)},MemoryStorage=function(){var t=function(){function t(){_classCallCheck(this,t),this.data=new Map}return _createClass(t,[{key:"getItem",value:function(t){return this.data.get(t)}},{key:"removeItem",value:function(t){this.data.delete(t)}},{key:"setItem",value:function(t,e){this.data.set(t,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t}(),ReceivedTokens=function t(){_classCallCheck(this,t)};function b64DecodeUnicode(t){var e=t.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(e).split("").map(function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(t){return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}var ValidationHandler=function t(){_classCallCheck(this,t)},AbstractValidationHandler=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"validateAtHash",value:function(t){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var i,n,r,o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=this.inferHashAlgorithm(t.idTokenHeader),e.next=3,this.calcHash(t.accessToken,i);case 3:return n=e.sent,r=base64UrlEncode(n.substr(0,n.length/2)),o=t.idTokenClaims.at_hash.replace(/=/g,""),e.abrupt("return",(r!==o&&(console.error("exptected at_hash: "+r),console.error("actual at_hash: "+o)),r===o));case 7:case"end":return e.stop()}},e,this)}))}},{key:"inferHashAlgorithm",value:function(t){var e=t.alg;if(!e.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+e);return"sha-"+e.substr(2)}}]),t}(),UrlHelperService=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"getHashFragmentParams",value:function(t){var e=t||window.location.hash;if(0!==(e=decodeURIComponent(e)).indexOf("#"))return{};var i=e.indexOf("?");return e=e.substr(i>-1?i+1:1),this.parseQueryString(e)}},{key:"parseQueryString",value:function(t){var e,i,n,r,o,a,s,c={};if(null===t)return c;e=t.split("&");for(var u=0;u1&&void 0!==arguments[1]?arguments[1]:null;return _classCallCheck(this,i),(n=e.call(this,t)).info=r,n}return i}(OAuthEvent),OAuthInfoEvent=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return _classCallCheck(this,i),(n=e.call(this,t)).info=r,n}return i}(OAuthEvent),OAuthErrorEvent=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return _classCallCheck(this,i),(r=e.call(this,t)).reason=n,r.params=o,r}return i}(OAuthEvent),AuthConfig=function t(e){_classCallCheck(this,t),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.openUri=function(t){location.href=t},e&&Object.assign(this,e)},WebHttpUrlEncodingCodec=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"encodeKey",value:function(t){return encodeURIComponent(t)}},{key:"encodeValue",value:function(t){return encodeURIComponent(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}(),ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&module.exports,AMD="function"==typeof define&&__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[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],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t,e){return function(i){return new Sha256(e,!0).update(i)[t]()}},\u02750=createOutputMethod,createMethod=function(t){var e=createOutputMethod("hex",t);NODE_JS&&(e=nodeWrap(e,t)),e.create=function(){return new Sha256(t)},e.update=function(t){return e.create().update(t)};for(var i=0;i>6,a[c++]=128|63&o):o<55296||o>=57344?(a[c++]=224|o>>12,a[c++]=128|o>>6&63,a[c++]=128|63&o):(o=65536+((1023&o)<<10|1023&t.charCodeAt(++n)),a[c++]=240|o>>18,a[c++]=128|o>>12&63,a[c++]=128|o>>6&63,a[c++]=128|63&o);t=a}else{if("object"!==r)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR)}t.length>64&&(t=new Sha256(e,!0).update(t).array());var u=[],l=[];for(n=0;n<64;++n){var h=t[n]||0;u[n]=92^h,l[n]=54^h}Sha256.call(this,e,i),this.update(l),this.oKeyPad=u,this.inner=!0,this.sharedMemory=i}Sha256.prototype.update=function(t){if(!this.finalized){var e,i=typeof t;if("string"!==i){if("object"!==i)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR);e=!0}for(var n,r,o=0,a=t.length,s=this.blocks;o>2]|=t[o]<>2]|=n<>2]|=(192|n>>6)<>2]|=(128|63&n)<=57344?(s[r>>2]|=(224|n>>12)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<>2]|=(240|n>>18)<>2]|=(128|n>>12&63)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<=64?(this.block=s[16],this.start=r-64,this.hash(),this.hashed=!0):this.start=r}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 t=this.blocks,e=this.lastByteIndex;t[16]=this.block,t[e>>2]|=EXTRA[3&e],this.block=t[16],e>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var t,e,i,n,r,o,a=this.h0,s=this.h1,c=this.h2,u=this.h3,l=this.h4,h=this.h5,d=this.h6,f=this.h7,p=this.blocks;for(t=16;t<64;++t)p[t]=p[t-16]+(((e=p[t-15])>>>7|e<<25)^(e>>>18|e<<14)^e>>>3)+p[t-7]+(((e=p[t-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)<<0;for(o=s&c,t=0;t<64;t+=4)this.first?(this.is224?(i=300032,f=(e=p[0]-1413257819)-150054599<<0,u=e+24177077<<0):(i=704751109,f=(e=p[0]-210244248)-1521486534<<0,u=e+143694565<<0),this.first=!1):(f=u+(e=f+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&h^~l&d)+K[t]+p[t])<<0,u=e+(((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+((i=a&s)^a&c^o))<<0),d=c+(e=d+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&l^~f&h)+K[t+1]+p[t+1])<<0,c=e+(((u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10))+((n=u&a)^u&s^i))<<0,h=s+(e=h+((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&f^~d&l)+K[t+2]+p[t+2])<<0,s=e+(((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+((r=c&u)^c&a^n))<<0,l=a+(e=l+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&d^~h&f)+K[t+3]+p[t+3])<<0,a=e+(((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((o=s&c)^s&u^r))<<0;this.h0=this.h0+a<<0,this.h1=this.h1+s<<0,this.h2=this.h2+c<<0,this.h3=this.h3+u<<0,this.h4=this.h4+l<<0,this.h5=this.h5+h<<0,this.h6=this.h6+d<<0,this.h7=this.h7+f<<0},Sha256.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,i=this.h2,n=this.h3,r=this.h4,o=this.h5,a=this.h6,s=this.h7,c=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[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[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[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[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+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]+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];return this.is224||(c+=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]),c},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,i=this.h2,n=this.h3,r=this.h4,o=this.h5,a=this.h6,s=this.h7,c=[t>>24&255,t>>16&255,t>>8&255,255&t,e>>24&255,e>>16&255,e>>8&255,255&e,i>>24&255,i>>16&255,i>>8&255,255&i,n>>24&255,n>>16&255,n>>8&255,255&n,r>>24&255,r>>16&255,r>>8&255,255&r,o>>24&255,o>>16&255,o>>8&255,255&o,a>>24&255,a>>16&255,a>>8&255,255&a];return this.is224||c.push(s>>24&255,s>>16&255,s>>8&255,255&s),c},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(this.is224?28:32),e=new DataView(t);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),e.setUint32(20,this.h5),e.setUint32(24,this.h6),this.is224||e.setUint32(28,this.h7),t},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(t),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0);var HashHandler=function t(){_classCallCheck(this,t)},DefaultHashHandler=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"calcHash",value:function(t,e){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=exports.array(t),e.abrupt("return",this.toHashString2(i));case 2:case"end":return e.stop()}},e,this)}))}},{key:"toHashString2",value:function(t){var e,i="",n=_createForOfIteratorHelper(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;i+=String.fromCharCode(r)}}catch(err){n.e(err)}finally{n.f()}return i}},{key:"toHashString",value:function(t){var e,i="",n=_createForOfIteratorHelper(new Uint8Array(t));try{for(n.s();!(e=n.n()).done;){var r=e.value;i+=String.fromCharCode(r)}}catch(err){n.e(err)}finally{n.f()}return i}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t}(),OAuthService=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,a,s,c,u,l,h){var d,f;_classCallCheck(this,i),(d=e.call(this)).ngZone=t,d.http=n,d.config=a,d.urlHelper=s,d.logger=c,d.crypto=u,d.dateTimeService=h,d.discoveryDocumentLoaded=!1,d.state="",d.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_2__.xQ,d.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_2__.xQ,d.grantTypesSupported=[],d.inImplicitFlow=!1,d.saveNoncesInLocalStorage=!1,d.debug("angular-oauth2-oidc v10"),d.document=l,a||(a={}),d.discoveryDocumentLoaded$=d.discoveryDocumentLoadedSubject.asObservable(),d.events=d.eventsSubject.asObservable(),o&&(d.tokenValidationHandler=o),a&&d.configure(a);try{r?d.setStorage(r):"undefined"!=typeof sessionStorage&&d.setStorage(sessionStorage)}catch(g){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",g)}if("undefined"!=typeof window&&void 0!==window.localStorage){var p=null===(f=null===window||void 0===window?void 0:window.navigator)||void 0===f?void 0:f.userAgent;((null==p?void 0:p.includes("MSIE "))||(null==p?void 0:p.includes("Trident")))&&(d.saveNoncesInLocalStorage=!0)}return d.setupRefreshTimer(),d}return _createClass(i,[{key:"configure",value:function(t){Object.assign(this,new AuthConfig,t),this.config=Object.assign({},new AuthConfig,t),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}},{key:"configChanged",value:function(){this.setupRefreshTimer()}},{key:"restartSessionChecksIfStillLoggedIn",value:function(){this.hasValidIdToken()&&this.initSessionCheck()}},{key:"restartRefreshTimerIfStillLoggedIn",value:function(){this.setupExpirationTimers()}},{key:"setupSessionCheck",value:function(){var t=this;this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(t){return"token_received"===t.type})).subscribe(function(e){t.initSessionCheck()})}},{key:"setupAutomaticSilentRefresh",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.b)(function(t){"token_received"===t.type?r=!0:"logout"===t.type&&(r=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(t){return"token_expires"===t.type&&(null==i||"any"===i||t.info===i)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(1e3)).subscribe(function(i){r&&t.refreshInternal(e,n).catch(function(e){t.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}},{key:"refreshInternal",value:function(t,e){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(t,e):this.refreshToken()}},{key:"loadDiscoveryDocumentAndTryLogin",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.loadDiscoveryDocument().then(function(i){return t.tryLogin(e)})}},{key:"loadDiscoveryDocumentAndLogin",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.loadDiscoveryDocumentAndTryLogin(e=e||{}).then(function(i){return!(!t.hasValidIdToken()||!t.hasValidAccessToken())||(t.initLoginFlow("string"==typeof e.state?e.state:""),!1)})}},{key:"debug",value:function(){for(var t=arguments.length,e=new Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:null;return new Promise(function(i,n){e||((e=t.issuer||"").endsWith("/")||(e+="/"),e+=".well-known/openid-configuration"),t.validateUrlForHttps(e)?t.http.get(e).subscribe(function(e){if(!t.validateDiscoveryDocument(e))return t.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void n("discovery_document_validation_error");t.loginUrl=e.authorization_endpoint,t.logoutUrl=e.end_session_endpoint||t.logoutUrl,t.grantTypesSupported=e.grant_types_supported,t.issuer=e.issuer,t.tokenEndpoint=e.token_endpoint,t.userinfoEndpoint=e.userinfo_endpoint||t.userinfoEndpoint,t.jwksUri=e.jwks_uri,t.sessionCheckIFrameUrl=e.check_session_iframe||t.sessionCheckIFrameUrl,t.discoveryDocumentLoaded=!0,t.discoveryDocumentLoadedSubject.next(e),t.revocationEndpoint=e.revocation_endpoint||t.revocationEndpoint,t.sessionChecksEnabled&&t.restartSessionChecksIfStillLoggedIn(),t.loadJwks().then(function(n){var r=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:e,jwks:n});t.eventsSubject.next(r),i(r)}).catch(function(e){t.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",e)),n(e)})},function(e){t.logger.error("error loading discovery document",e),t.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",e)),n(e)}):n("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}},{key:"loadJwks",value:function(){var t=this;return new Promise(function(e,i){t.jwksUri?t.http.get(t.jwksUri).subscribe(function(i){t.jwks=i,t.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),e(i)},function(e){t.logger.error("error loading jwks",e),t.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",e)),i(e)}):e(null)})}},{key:"validateDiscoveryDocument",value:function(t){var e;return this.skipIssuerCheck||t.issuer===this.issuer?(e=this.validateUrlFromDiscoveryDocument(t.authorization_endpoint)).length>0?(this.logger.error("error validating authorization_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(t.end_session_endpoint)).length>0?(this.logger.error("error validating end_session_endpoint in discovery document",e),!1):((e=this.validateUrlFromDiscoveryDocument(t.token_endpoint)).length>0&&this.logger.error("error validating token_endpoint in discovery document",e),(e=this.validateUrlFromDiscoveryDocument(t.revocation_endpoint)).length>0&&this.logger.error("error validating revocation_endpoint in discovery document",e),(e=this.validateUrlFromDiscoveryDocument(t.userinfo_endpoint)).length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(t.jwks_uri)).length>0?(this.logger.error("error validating jwks_uri in discovery document",e),!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)}},{key:"fetchTokenUsingPasswordFlowAndLoadUserProfile",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM;return this.fetchTokenUsingPasswordFlow(t,e,n).then(function(){return i.loadUserProfile()})}},{key:"loadUserProfile",value:function(){var t=this;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(function(e,i){var n=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Authorization","Bearer "+t.getAccessToken());t.http.get(t.userinfoEndpoint,{headers:n,observe:"response",responseType:"text"}).subscribe(function(n){if(t.debug("userinfo received",JSON.stringify(n)),n.headers.get("content-type").startsWith("application/json")){var r=JSON.parse(n.body),o=t.getIdentityClaims()||{};if(!t.skipSubjectCheck&&t.oidc&&(!o.sub||r.sub!==o.sub))return void i("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");r=Object.assign({},o,r),t._storage.setItem("id_token_claims_obj",JSON.stringify(r)),t.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),e({info:r})}else t.debug("userinfo is not JSON, treating it as JWE/JWS"),t.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),e(JSON.parse(n.body))},function(e){t.logger.error("error loading user info",e),t.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",e)),i(e)})})}},{key:"fetchTokenUsingPasswordFlow",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM;return this.fetchTokenUsingGrant("password",{username:t,password:e},i)}},{key:"fetchTokenUsingGrant",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM;this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");var r=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",t).set("scope",this.scope);if(this.useHttpBasicAuth){var o=btoa("".concat(this.clientId,":").concat(this.dummyClientSecret));n=n.set("Authorization","Basic "+o)}if(this.useHttpBasicAuth||(r=r.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(r=r.set("client_secret",this.dummyClientSecret)),this.customQueryParams){var a,s=_createForOfIteratorHelper(Object.getOwnPropertyNames(this.customQueryParams));try{for(s.s();!(a=s.n()).done;){var c=a.value;r=r.set(c,this.customQueryParams[c])}}catch(err){s.e(err)}finally{s.f()}}for(var u=0,l=Object.keys(e);u0&&void 0!==arguments[0]?arguments[0]:{},i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(e.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(void 0===this.document)throw new Error("silent refresh is not supported on this platform");var r=this.document.getElementById(this.silentRefreshIFrameName);r&&this.document.body.removeChild(r),this.silentRefreshSubject=n.sub;var o=this.document.createElement("iframe");o.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,i,e).then(function(e){o.setAttribute("src",e),t.silentRefreshShowIFrame||(o.style.display="none"),t.document.body.appendChild(o)});var a=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(t){return t instanceof OAuthErrorEvent}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.P)()),s=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(t){return"token_received"===t.type}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.P)()),c=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_13__.S3)([a,s,c]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.U)(function(e){if(e instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===e.type||(e=new OAuthErrorEvent("silent_refresh_error",e)),t.eventsSubject.next(e),e;return"token_received"===e.type&&(e=new OAuthSuccessEvent("silently_refreshed"),t.eventsSubject.next(e)),e})).toPromise()}},{key:"initImplicitFlowInPopup",value:function(t){return this.initLoginFlowInPopup(t)}},{key:"initLoginFlowInPopup",value:function(t){var e=this;return t=t||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(function(i){return new Promise(function(n,r){var o,a=null;t.windowRef?t.windowRef&&!t.windowRef.closed&&((a=t.windowRef).location.href=i):a=window.open(i,"ngx-oauth2-oidc-login",e.calculatePopupFeatures(t));var s=function(t){e.tryLogin({customHashFragment:t,preventClearHashAfterLogin:!0,customRedirectUri:e.silentRefreshRedirectUri}).then(function(){c(),n(!0)},function(t){c(),r(t)})};a?o=window.setInterval(function(){a&&!a.closed||(c(),r(new OAuthErrorEvent("popup_closed",{})))},500):r(new OAuthErrorEvent("popup_blocked",{}));var c=function(){window.clearInterval(o),window.removeEventListener("storage",l),window.removeEventListener("message",u),null!==a&&a.close(),a=null},u=function(t){var i=e.processMessageEventMessage(t);i&&null!==i?(window.removeEventListener("storage",l),s(i)):console.log("false event firing")},l=function(t){"auth_hash"===t.key&&(window.removeEventListener("message",u),s(t.newValue))};window.addEventListener("message",u),window.addEventListener("storage",l)})})}},{key:"calculatePopupFeatures",value:function(t){var e=t.height||470,i=t.width||500,n=window.screenLeft+(window.outerWidth-i)/2;return"location=no,toolbar=no,width=".concat(i,",height=").concat(e,",top=").concat(window.screenTop+(window.outerHeight-e)/2,",left=").concat(n)}},{key:"processMessageEventMessage",value:function(t){var e="#";if(this.silentRefreshMessagePrefix&&(e+=this.silentRefreshMessagePrefix),t&&t.data&&"string"==typeof t.data){var i=t.data;return i.startsWith(e)?"#"+i.substr(e.length):void 0}}},{key:"canPerformSessionCheck",value:function(){return!!this.sessionChecksEnabled&&(this.sessionCheckIFrameUrl?this.getSessionState()?void 0!==this.document:(console.warn("sessionChecksEnabled is activated but there is no session_state"),!1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),!1))}},{key:"setupSessionCheckEventListener",value:function(){var t=this;this.removeSessionCheckEventListener(),this.sessionCheckEventListener=function(e){var i=e.origin.toLowerCase(),n=t.issuer.toLowerCase();if(t.debug("sessionCheckEventListener"),n.startsWith(i)){switch(e.data){case"unchanged":t.ngZone.run(function(){t.handleSessionUnchanged()});break;case"changed":t.ngZone.run(function(){t.handleSessionChange()});break;case"error":t.ngZone.run(function(){t.handleSessionError()})}t.debug("got info from session check inframe",e)}else t.debug("sessionCheckEventListener","wrong origin",i,"expected",n,"event",e)},this.ngZone.runOutsideAngular(function(){window.addEventListener("message",t.sessionCheckEventListener)})}},{key:"handleSessionUnchanged",value:function(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}},{key:"handleSessionChange",value:function(){var t=this;this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(function(e){return t.debug("silent refresh failed after session changed")}),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(function(e){t.debug("token refresh after session change worked")}).catch(function(e){t.debug("token refresh did not work after session changed"),t.eventsSubject.next(new OAuthInfoEvent("session_terminated")),t.logOut(!0)})}},{key:"waitForSilentRefreshAfterSessionChange",value:function(){var t=this;this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(t){return"silently_refreshed"===t.type||"silent_refresh_timeout"===t.type||"silent_refresh_error"===t.type}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.P)()).subscribe(function(e){"silently_refreshed"!==e.type&&(t.debug("silent refresh did not work after session changed"),t.eventsSubject.next(new OAuthInfoEvent("session_terminated")),t.logOut(!0))})}},{key:"handleSessionError",value:function(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}},{key:"removeSessionCheckEventListener",value:function(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}},{key:"initSessionCheck",value:function(){if(this.canPerformSessionCheck()){var t=this.document.getElementById(this.sessionCheckIFrameName);t&&this.document.body.removeChild(t);var 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()}}},{key:"startSessionCheckTimer",value:function(){var t=this;this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(function(){t.sessionCheckTimer=setInterval(t.checkSession.bind(t),t.sessionCheckIntervall)})}},{key:"stopSessionCheckTimer",value:function(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}},{key:"checkSession",value:function(){var t=this.document.getElementById(this.sessionCheckIFrameName);t||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);var e=this.getSessionState();e||this.stopSessionCheckTimer(),t.contentWindow.postMessage(this.clientId+" "+e,this.issuer)}},{key:"createLoginUrl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,regeneratorRuntime.mark(function o(){var a,s,c,u,l,h,d,f,p,g,m,v,y,_,b;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return a=i||this.redirectUri,o.next=3,this.createAndSaveNonce();case 3:if(s=o.sent,t=t?s+this.config.nonceStateSeparator+encodeURIComponent(t):s,this.requestAccessToken||this.oidc){o.next=6;break}throw new Error("Either requestAccessToken or oidc or both must be true");case 6:if(this.responseType=this.config.responseType?this.config.responseType:this.oidc&&this.requestAccessToken?"id_token token":this.oidc&&!this.requestAccessToken?"id_token":"token",c=this.loginUrl.indexOf("?")>-1?"&":"?",u=this.scope,this.oidc&&!u.match(/(^|\s)openid($|\s)/)&&(u="openid "+u),l=this.loginUrl+c+"response_type="+encodeURIComponent(this.responseType)+"&client_id="+encodeURIComponent(this.clientId)+"&state="+encodeURIComponent(t)+"&redirect_uri="+encodeURIComponent(a)+"&scope="+encodeURIComponent(u),!this.responseType.includes("code")||this.disablePKCE){o.next=19;break}return o.next=14,this.createChallangeVerifierPairForPKCE();case 14:h=o.sent,d=_slicedToArray(h,2),f=d[0],p=d[1],this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("PKCE_verifier",p):this._storage.setItem("PKCE_verifier",p),l+="&code_challenge="+f,l+="&code_challenge_method=S256";case 19:for(e&&(l+="&login_hint="+encodeURIComponent(e)),this.resource&&(l+="&resource="+encodeURIComponent(this.resource)),this.oidc&&(l+="&nonce="+encodeURIComponent(s)),n&&(l+="&prompt=none"),g=0,m=Object.keys(r);g0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!this.inImplicitFlow){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).");var n={},r=null;"string"==typeof i?r=i:"object"==typeof i&&(n=i),this.createLoginUrl(e,r,null,!1,n).then(this.config.openUri).catch(function(e){console.error("Error in initImplicitFlow",e),t.inImplicitFlow=!1})}}},{key:"initImplicitFlow",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";""!==this.loginUrl?this.initImplicitFlowInternal(e,i):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(t){return"discovery_document_loaded"===t.type})).subscribe(function(n){return t.initImplicitFlowInternal(e,i)})}},{key:"resetImplicitFlow",value:function(){this.inImplicitFlow=!1}},{key:"callOnTokenReceivedIfExists",value:function(t){var e=this;if(t.onTokenReceived){var i={idClaims:e.getIdentityClaims(),idToken:e.getIdToken(),accessToken:e.getAccessToken(),state:e.state};t.onTokenReceived(i)}}},{key:"storeAccessTokenResponse",value:function(t,e,i,n,r){var o=this;if(this._storage.setItem("access_token",t),n&&!Array.isArray(n)?this._storage.setItem("granted_scopes",JSON.stringify(n.split(" "))):n&&Array.isArray(n)&&this._storage.setItem("granted_scopes",JSON.stringify(n)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),i){var a=1e3*i,s=this.dateTimeService.new().getTime()+a;this._storage.setItem("expires_at",""+s)}e&&this._storage.setItem("refresh_token",e),r&&r.forEach(function(t,e){o._storage.setItem(e,t)})}},{key:"tryLogin",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return"code"===this.config.responseType?this.tryLoginCodeFlow(t).then(function(t){return!0}):this.tryLoginImplicitFlow(t)}},{key:"parseQueryString",value:function(t){return t&&0!==t.length?("?"===t.charAt(0)&&(t=t.substr(1)),this.urlHelper.parseQueryString(t)):{}}},{key:"tryLoginCodeFlow",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=(t=t||{}).customHashFragment?t.customHashFragment.substring(1):window.location.search,i=this.getCodePartsFromUrl(e),n=i.code,r=i.state,o=i.session_state;if(!t.preventClearHashAfterLogin){var a=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,a)}var s=this.parseState(r),c=_slicedToArray(s,2),u=c[0],l=c[1];if(this.state=l,i.error){this.debug("error trying to login"),this.handleLoginError(t,i);var h=new OAuthErrorEvent("code_error",{},i);return this.eventsSubject.next(h),Promise.reject(h)}if(!t.disableNonceCheck){if(!u)return Promise.resolve();if(!t.disableOAuth2StateCheck&&!this.validateNonce(u)){var d=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(d),Promise.reject(d)}return this.storeSessionState(o),n?this.getTokenFromCode(n,t).then(function(t){return null}):Promise.resolve()}}},{key:"getCodePartsFromUrl",value:function(t){return t&&0!==t.length?("?"===t.charAt(0)&&(t=t.substr(1)),this.urlHelper.parseQueryString(t)):this.urlHelper.getHashFragmentParams()}},{key:"getTokenFromCode",value:function(t,e){var i,n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",t).set("redirect_uri",e.customRedirectUri||this.redirectUri);this.disablePKCE||((i=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"))?n=n.set("code_verifier",i):console.warn("No PKCE verifier found in oauth storage!"));return this.fetchAndProcessToken(n,e)}},{key:"fetchAndProcessToken",value:function(t,e){var i=this;e=e||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");var n=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){var r=btoa("".concat(this.clientId,":").concat(this.dummyClientSecret));n=n.set("Authorization","Basic "+r)}return this.useHttpBasicAuth||(t=t.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(t=t.set("client_secret",this.dummyClientSecret)),new Promise(function(r,o){if(i.customQueryParams){var a,s=_createForOfIteratorHelper(Object.getOwnPropertyNames(i.customQueryParams));try{for(s.s();!(a=s.n()).done;){var c=a.value;t=t.set(c,i.customQueryParams[c])}}catch(err){s.e(err)}finally{s.f()}}i.http.post(i.tokenEndpoint,t,{headers:n}).subscribe(function(t){i.debug("refresh tokenResponse",t),i.storeAccessTokenResponse(t.access_token,t.refresh_token,t.expires_in||i.fallbackAccessTokenExpirationTimeInSec,t.scope,i.extractRecognizedCustomParameters(t)),i.oidc&&t.id_token?i.processIdToken(t.id_token,t.access_token,e.disableNonceCheck).then(function(e){i.storeIdToken(e),i.eventsSubject.next(new OAuthSuccessEvent("token_received")),i.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),r(t)}).catch(function(t){i.eventsSubject.next(new OAuthErrorEvent("token_validation_error",t)),console.error("Error validating tokens"),console.error(t),o(t)}):(i.eventsSubject.next(new OAuthSuccessEvent("token_received")),i.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),r(t))},function(t){console.error("Error getting token",t),i.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",t)),o(t)})})}},{key:"tryLoginImplicitFlow",value:function(){var t,e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t=(i=i||{}).customHashFragment?this.urlHelper.getHashFragmentParams(i.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",t);var n=t.state,r=this.parseState(n),o=_slicedToArray(r,2),a=o[0],s=o[1];if(this.state=s,t.error){this.debug("error trying to login"),this.handleLoginError(i,t);var c=new OAuthErrorEvent("token_error",{},t);return this.eventsSubject.next(c),Promise.reject(c)}var u=t.access_token,l=t.id_token,h=t.session_state,d=t.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!u)return Promise.resolve(!1);if(this.requestAccessToken&&!i.disableOAuth2StateCheck&&!n)return Promise.resolve(!1);if(this.oidc&&!l)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!h&&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&&!i.disableNonceCheck&&!this.validateNonce(a)){var f=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(f),Promise.reject(f)}return this.requestAccessToken&&this.storeAccessTokenResponse(u,null,t.expires_in||this.fallbackAccessTokenExpirationTimeInSec,d),this.oidc?this.processIdToken(l,u,i.disableNonceCheck).then(function(t){return i.validationHandler?i.validationHandler({accessToken:u,idClaims:t.idTokenClaims,idToken:t.idToken,state:n}).then(function(e){return t}):t}).then(function(t){return e.storeIdToken(t),e.storeSessionState(h),e.clearHashAfterLogin&&!i.preventClearHashAfterLogin&&e.clearLocationHash(),e.eventsSubject.next(new OAuthSuccessEvent("token_received")),e.callOnTokenReceivedIfExists(i),e.inImplicitFlow=!1,!0}).catch(function(t){return e.eventsSubject.next(new OAuthErrorEvent("token_validation_error",t)),e.logger.error("Error validating tokens"),e.logger.error(t),Promise.reject(t)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!i.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(i),Promise.resolve(!0))}},{key:"parseState",value:function(t){var e=t,i="";if(t){var n=t.indexOf(this.config.nonceStateSeparator);n>-1&&(e=t.substr(0,n),i=t.substr(n+this.config.nonceStateSeparator.length))}return[e,i]}},{key:"validateNonce",value:function(t){var e;return(e=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"))===t||(console.error("Validating access_token failed, wrong state/nonce.",e,t),!1)}},{key:"storeIdToken",value:function(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())}},{key:"storeSessionState",value:function(t){this._storage.setItem("session_state",t)}},{key:"getSessionState",value:function(){return this._storage.getItem("session_state")}},{key:"handleLoginError",value:function(t,e){t.onLoginError&&t.onLoginError(e),this.clearHashAfterLogin&&!t.preventClearHashAfterLogin&&this.clearLocationHash()}},{key:"getClockSkewInMsec",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6e5;return this.clockSkewInSec?1e3*this.clockSkewInSec:t}},{key:"processIdToken",value:function(t,e){var i,n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=t.split("."),a=b64DecodeUnicode(this.padBase64(o[0])),s=JSON.parse(a),c=b64DecodeUnicode(this.padBase64(o[1])),u=JSON.parse(c);if(i=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(u.aud)){if(u.aud.every(function(t){return t!==n.clientId})){var l="Wrong audience: "+u.aud.join(",");return this.logger.warn(l),Promise.reject(l)}}else if(u.aud!==this.clientId){var h="Wrong audience: "+u.aud;return this.logger.warn(h),Promise.reject(h)}if(!u.sub){var d="No sub claim in id_token";return this.logger.warn(d),Promise.reject(d)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==u.sub){var f="After refreshing, we got an id_token for another user (sub). Expected sub: ".concat(this.silentRefreshSubject,", received sub: ").concat(u.sub);return this.logger.warn(f),Promise.reject(f)}if(!u.iat){var p="No iat claim in id_token";return this.logger.warn(p),Promise.reject(p)}if(!this.skipIssuerCheck&&u.iss!==this.issuer){var g="Wrong issuer: "+u.iss;return this.logger.warn(g),Promise.reject(g)}if(!r&&u.nonce!==i){var m="Wrong nonce: "+u.nonce;return this.logger.warn(m),Promise.reject(m)}if(!this.hasOwnProperty("responseType")||"code"!==this.responseType&&"id_token"!==this.responseType||(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!u.at_hash){var v="An at_hash is needed!";return this.logger.warn(v),Promise.reject(v)}var y=this.dateTimeService.now(),_=1e3*u.iat,b=1e3*u.exp,w=this.getClockSkewInMsec();if(_-w>=y||b+w<=y){var A="Token has expired";return console.error(A),console.error({now:y,issuedAtMSec:_,expiresAtMSec:b}),Promise.reject(A)}var k={accessToken:e,idToken:t,jwks:this.jwks,idTokenClaims:u,idTokenHeader:s,loadKeys:function(){return n.loadJwks()}};return this.disableAtHashCheck?this.checkSignature(k).then(function(e){return{idToken:t,idTokenClaims:u,idTokenClaimsJson:c,idTokenHeader:s,idTokenHeaderJson:a,idTokenExpiresAt:b}}):this.checkAtHash(k).then(function(e){if(!n.disableAtHashCheck&&n.requestAccessToken&&!e){var i="Wrong at_hash";return n.logger.warn(i),Promise.reject(i)}return n.checkSignature(k).then(function(e){var i={idToken:t,idTokenClaims:u,idTokenClaimsJson:c,idTokenHeader:s,idTokenHeaderJson:a,idTokenExpiresAt:b};return n.disableAtHashCheck?i:n.checkAtHash(k).then(function(t){if(n.requestAccessToken&&!t){var e="Wrong at_hash";return n.logger.warn(e),Promise.reject(e)}return i})})})}},{key:"getIdentityClaims",value:function(){var t=this._storage.getItem("id_token_claims_obj");return t?JSON.parse(t):null}},{key:"getGrantedScopes",value:function(){var t=this._storage.getItem("granted_scopes");return t?JSON.parse(t):null}},{key:"getIdToken",value:function(){return this._storage?this._storage.getItem("id_token"):null}},{key:"padBase64",value:function(t){for(;t.length%4!=0;)t+="=";return t}},{key:"getAccessToken",value:function(){return this._storage?this._storage.getItem("access_token"):null}},{key:"getRefreshToken",value:function(){return this._storage?this._storage.getItem("refresh_token"):null}},{key:"getAccessTokenExpiration",value:function(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}},{key:"getAccessTokenStoredAt",value:function(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}},{key:"getIdTokenStoredAt",value:function(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}},{key:"getIdTokenExpiration",value:function(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}},{key:"hasValidAccessToken",value:function(){if(this.getAccessToken()){var t=this._storage.getItem("expires_at"),e=this.dateTimeService.new();return!(t&&parseInt(t,10)=0&&null!==this._storage.getItem(t)?JSON.parse(this._storage.getItem(t)):null}},{key:"authorizationHeader",value:function(){return"Bearer "+this.getAccessToken()}},{key:"logOut",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=!1;"boolean"==typeof e&&(n=e,e={});var r=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(function(e){return t._storage.removeItem(e)}),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),this.logoutUrl&&!n&&(r||this.postLogoutRedirectUri)){var 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(r)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{var a=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec});r&&(a=a.set("id_token_hint",r));var s=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";for(var c in s&&(a=a.set("post_logout_redirect_uri",s),i&&(a=a.set("state",i))),e)a=a.set(c,e[c]);o=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+a.toString()}this.config.openUri(o)}}},{key:"createAndSaveNonce",value:function(){var t=this;return this.createNonce().then(function(e){return t.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("nonce",e):t._storage.setItem("nonce",e),e})}},{key:"ngOnDestroy",value:function(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();var t=this.document.getElementById(this.silentRefreshIFrameName);t&&t.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();var e=this.document.getElementById(this.sessionCheckIFrameName);e&&e.remove()}},{key:"createNonce",value:function(){var t=this;return new Promise(function(e){if(t.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",n=45,r="",o="undefined"==typeof self?null:self.crypto||self.msCrypto;if(o){var a=new Uint8Array(n);o.getRandomValues(a),a.map||(a.map=Array.prototype.map),a=a.map(function(t){return i.charCodeAt(t%i.length)}),r=String.fromCharCode.apply(null,a)}else for(;00&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"code"===this.responseType?this.initCodeFlow(t,e):this.initImplicitFlow(t,e)}},{key:"initCodeFlow",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};""!==this.loginUrl?this.initCodeFlowInternal(e,i):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(t){return"discovery_document_loaded"===t.type})).subscribe(function(n){return t.initCodeFlowInternal(e,i)})}},{key:"initCodeFlowInternal",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};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).");var i={},n=null;"string"==typeof e?n=e:"object"==typeof e&&(i=e),this.createLoginUrl(t,n,null,!1,i).then(this.config.openUri).catch(function(t){console.error("Error in initAuthorizationCodeFlow"),console.error(t)})}},{key:"createChallangeVerifierPairForPKCE",value:function(){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.crypto){t.next=2;break}throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");case 2:return t.next=4,this.createNonce();case 4:return e=t.sent,t.t0=base64UrlEncode,t.next=8,this.crypto.calcHash(e,"sha-256");case 8:return t.t1=t.sent,t.t2=(0,t.t0)(t.t1),t.t3=e,t.abrupt("return",[t.t2,t.t3]);case 12:case"end":return t.stop()}},t,this)}))}},{key:"extractRecognizedCustomParameters",value:function(t){var e=new Map;return this.config.customTokenParameters?(this.config.customTokenParameters.forEach(function(i){t[i]&&e.set(i,JSON.stringify(t[i]))}),e):e}},{key:"revokeTokenAndLogout",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.revocationEndpoint,r=this.getAccessToken(),o=this.getRefreshToken();if(r){var a=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}),s=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){var c=btoa("".concat(this.clientId,":").concat(this.dummyClientSecret));s=s.set("Authorization","Basic "+c)}if(this.useHttpBasicAuth||(a=a.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(a=a.set("client_secret",this.dummyClientSecret)),this.customQueryParams){var u,l=_createForOfIteratorHelper(Object.getOwnPropertyNames(this.customQueryParams));try{for(l.s();!(u=l.n()).done;){var h=u.value;a=a.set(h,this.customQueryParams[h])}}catch(err){l.e(err)}finally{l.f()}}return new Promise(function(c,u){var l,h;if(r){var d=a.set("token",r).set("token_type_hint","access_token");l=t.http.post(n,d,{headers:s})}else l=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null);if(o){var f=a.set("token",o).set("token_type_hint","refresh_token");h=t.http.post(n,f,{headers:s})}else h=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null);i&&(l=l.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(function(t){return 0===t.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(t)})),h=h.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(function(t){return 0===t.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(t)}))),(0,rxjs__WEBPACK_IMPORTED_MODULE_16__.aj)([l,h]).subscribe(function(i){t.logOut(e),c(i),t.logger.info("Token successfully revoked")},function(e){t.logger.error("Error revoking token",e),t.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",e)),u(e)})})}}},{key:"clearLocationHash",value:function(){""!=location.hash&&(location.hash="")}}]),i}(AuthConfig);return t.\u0275fac=function(e){return new(e||t)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_0__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_8__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_17__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DateTimeProvider))},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t}(),OAuthModuleConfig=function t(){_classCallCheck(this,t)},OAuthResourceServerConfig=function t(){_classCallCheck(this,t)},OAuthResourceServerErrorHandler=function t(){_classCallCheck(this,t)},OAuthNoopResourceServerErrorHandler=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"handleError",value:function(t){return(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(t)}}]),t}(),DefaultOAuthInterceptor=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.oAuthService=e,this.errorHandler=i,this.moduleConfig=n}return _createClass(t,[{key:"checkUrl",value:function(t){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(t):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(function(e){return t.toLowerCase().startsWith(e.toLowerCase())})}},{key:"intercept",value:function(t,e){var i=this,n=t.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(n)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_18__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(t){return!!t})),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(t){return"token_received"===t.type}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_19__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(function(t){return(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.U)(function(t){return i.oAuthService.getAccessToken()}))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.zg)(function(n){if(n){var r=t.headers.set("Authorization","Bearer "+n);t=t.clone({headers:r})}return e.handle(t).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(function(t){return i.errorHandler.handleError(t)}))})):e.handle(t).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(function(t){return i.errorHandler.handleError(t)})):e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthModuleConfig,8))},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t}(),NullValidationHandler=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"validateSignature",value:function(t){return Promise.resolve(null)}},{key:"validateAtHash",value:function(t){return Promise.resolve(!0)}}]),t}();function createDefaultLogger(){return console}function createDefaultStorage(){return"undefined"!=typeof sessionStorage?sessionStorage:new MemoryStorage}var OAuthModule=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NullValidationHandler;return{ngModule:t,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:i},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:e},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_8__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:t}),t.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_17__.ez]]}),t}(),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",JwksValidationHandler=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),t=e.call(this),console.error(err),t}return i}(NullValidationHandler),AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("AUTH_CONFIG")},82051:function(t,e){var i,n;void 0===(n="function"==typeof(i=function(){"use strict";function e(t,e,i){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){a(n.response,e,i)},n.onerror=function(){console.error("could not download file")},n.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function n(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}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,o=r.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),a=r.saveAs||("object"!=typeof window||window!==r?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(t,o,a){var s=r.URL||r.webkitURL,c=document.createElement("a");c.download=o=o||t.name||"download",c.rel="noopener","string"==typeof t?(c.href=t,c.origin===location.origin?n(c):i(c.href)?e(t,o,a):n(c,c.target="_blank")):(c.href=s.createObjectURL(t),setTimeout(function(){s.revokeObjectURL(c.href)},4e4),setTimeout(function(){n(c)},0))}:"msSaveOrOpenBlob"in navigator?function(t,r,o){if(r=r||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,o),r);else if(i(t))e(t,r,o);else{var a=document.createElement("a");a.href=t,a.target="_blank",setTimeout(function(){n(a)})}}:function(t,i,n,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof t)return e(t,i,n);var s="application/octet-stream"===t.type,c=/constructor/i.test(r.HTMLElement)||r.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||s&&c||o)&&"undefined"!=typeof FileReader){var l=new FileReader;l.onloadend=function(){var t=l.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=t:location=t,a=null},l.readAsDataURL(t)}else{var h=r.URL||r.webkitURL,d=h.createObjectURL(t);a?a.location=d:location.href=d,a=null,setTimeout(function(){h.revokeObjectURL(d)},4e4)}});r.saveAs=a.saveAs=a,t.exports=a})?i.apply(e,[]):i)||(t.exports=n)},30146:function(t,e,i){"use strict";i.d(e,{nu:function(){return U},Co:function(){return G}});var n=i(64762),r=i(31572),o=i(16073),a=i(71522),s=i(4786),c=i(66283),u=i(75842),l=i(78512),h=i(40878),d=i(31305),f=i(55959),p=i(44689),g=i(79996),m=i(56238),v=i(60509),y=i(25416),_=i(90611),b=i(43835),w=i(66599),A=i(15980),k=i(29236),C=i(43691),T=i(67806),E=i(36922),S=i(61511),I=i(4253),R=i(24621),x=["searchSelectInput"],O=["innerSelectSearch"];function P(t,e){if(1&t){var i=r.EpF();r.TgZ(0,"mat-checkbox",9),r.NdJ("change",function(t){return r.CHM(i),r.oxw()._emitSelectAllBooleanToParent(t.checked)}),r.qZA()}if(2&t){var n=r.oxw();r.Q6J("color",null==n.matFormField?null:n.matFormField.color)("checked",n.toggleAllCheckboxChecked)("indeterminate",n.toggleAllCheckboxIndeterminate)("matTooltip",n.toggleAllCheckboxTooltipMessage)("matTooltipPosition",n.toogleAllCheckboxTooltipPosition)}}function D(t,e){1&t&&r._UZ(0,"mat-spinner",10)}function M(t,e){1&t&&r.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function L(t,e){1&t&&(r.TgZ(0,"mat-icon"),r._uU(1,"close"),r.qZA())}function N(t,e){if(1&t){var i=r.EpF();r.TgZ(0,"button",11),r.NdJ("click",function(){return r.CHM(i),r.oxw()._reset(!0)}),r.YNc(1,M,1,0,"ng-content",12),r.YNc(2,L,2,0,"ng-template",null,13,r.W1O),r.qZA()}if(2&t){var n=r.MAs(3),o=r.oxw();r.xp6(1),r.Q6J("ngIf",o.clearIcon)("ngIfElse",n)}}function z(t,e){if(1&t&&(r.TgZ(0,"div",14),r._uU(1),r.qZA()),2&t){var i=r.oxw();r.xp6(1),r.hij(" ",i.noEntriesFoundLabel,"\n")}}var Z,B=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]]],F=function(t,e){return{"mat-select-search-inner-multiple":t,"mat-select-search-inner-toggle-all":e}},q=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]"],H=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","ngxMatSelectSearchClear",""]]}),t}(),U=function(){var t=Z=function(){function t(e,i,n){var a=this,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,c=arguments.length>4?arguments[4]:void 0,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;_classCallCheck(this,t),this.matSelect=e,this.changeDetectorRef=i,this._viewportRuler=n,this.matOption=s,this.liveAnnouncer=c,this.matFormField=u,this.placeholderLabel="Suche",this.type="text",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 r.vpe,this.onTouched=function(t){},this._options$=new l.X(null),this.optionsList$=this._options$.pipe((0,p.w)(function(t){return t?t.changes.pipe((0,g.U)(function(t){return t.toArray()}),(0,m.O)(t.toArray())):(0,h.of)(null)})),this.optionsLength$=this.optionsList$.pipe((0,g.U)(function(t){return t?t.length:0})),this._formControl=new o.NI(""),this._showNoEntriesFound$=(0,d.aj)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,g.U)(function(t){var e=_slicedToArray(t,2),i=e[0],n=e[1];return a.noEntriesFoundLabel&&i&&n===a.getOptionsLengthOffset()})),this._onDestroy=new f.xQ}return _createClass(t,[{key:"isInsideMatOption",get:function(){return!!this.matOption}},{key:"value",get:function(){return this._formControl.value}},{key:"_options",get:function(){return this._options$.getValue()},set:function(t){this._options$.next(t)}},{key:"ngOnInit",value:function(){var t=this,e="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(e):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,e]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[e]=!0):this.matSelect.panelClass=e,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,v.g)(1),(0,y.R)(this._onDestroy)).subscribe(function(e){e?(t.updateInputWidth(),t.disableInitialFocus||t._focus()):t.clearSearchInput&&t._reset()}),this.matSelect.openedChange.pipe((0,_.q)(1)).pipe((0,y.R)(this._onDestroy)).subscribe(function(){t.matSelect._keyManager?t.matSelect._keyManager.change.pipe((0,y.R)(t._onDestroy)).subscribe(function(){return t.adjustScrollTopToFitActiveOptionIntoView()}):console.log("_keyManager was not initialized."),t._options=t.matSelect.options;var e=t._options.toArray()[t.getOptionsLengthOffset()];t._options.changes.pipe((0,y.R)(t._onDestroy)).subscribe(function(){setTimeout(function(){var i=t._options.toArray(),n=i[t.getOptionsLengthOffset()],r=t.matSelect._keyManager;r&&t.matSelect.panelOpen&&(!!t.matSelect.compareWith(e,n)&&r.activeItem&&i.find(function(e){return t.matSelect.compareWith(e,r.activeItem)})||r.setFirstItemActive(),setTimeout(function(){t.updateInputWidth()}),t.disableScrollToActiveOnOptionsChanged||t.adjustScrollTopToFitActiveOptionIntoView()),e=n})})}),this._showNoEntriesFound$.pipe((0,y.R)(this._onDestroy)).subscribe(function(e){t.matOption&&(e?t.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):t.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe((0,y.R)(this._onDestroy)).subscribe(function(){t.matSelect.panelOpen&&t.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,y.R)(this._onDestroy)).subscribe(function(){t.changeDetectorRef.markForCheck()})}},{key:"_emitSelectAllBooleanToParent",value:function(t){this.toggleAll.emit(t)}},{key:"ngOnDestroy",value:function(){this._onDestroy.next(),this._onDestroy.complete()}},{key:"_isToggleAllCheckboxVisible",value:function(){return this.matSelect.multiple&&this.showToggleAllCheckbox}},{key:"_handleKeydown",value:function(t){var e=this;(t.key&&1===t.key.length||t.keyCode>=u.A&&t.keyCode<=u.Z||t.keyCode>=u.xE&&t.keyCode<=u.aO||t.keyCode===u.L_||this.preventHomeEndKeyPropagation&&(t.keyCode===u.Sd||t.keyCode===u.uR))&&t.stopPropagation(),this.matSelect.multiple&&t.key&&t.keyCode===u.K5&&setTimeout(function(){return e._focus()}),!0===this.enableClearOnEscapePressed&&t.keyCode===u.hY&&this.value&&(this._reset(!0),t.stopPropagation())}},{key:"_handleKeyup",value:function(t){if(t.keyCode===u.LH||t.keyCode===u.JH){var e=this.matSelect._getAriaActiveDescendant(),i=this._options.toArray().findIndex(function(t){return t.id===e});if(-1!==i){var n=this._options.toArray()[i];this.liveAnnouncer.announce(n.viewValue+" "+this.getAriaIndex(i)+this.indexAndLengthScreenReaderText+this.getAriaLength())}}}},{key:"getAriaIndex",value:function(t){return 0===this.getOptionsLengthOffset()?t+1:t}},{key:"getAriaLength",value:function(){return this._options.toArray().length-this.getOptionsLengthOffset()}},{key:"writeValue",value:function(t){this._lastExternalInputValue=t,this._formControl.setValue(t),this.changeDetectorRef.markForCheck()}},{key:"onBlur",value:function(){this.onTouched()}},{key:"registerOnChange",value:function(t){var e=this;this._formControl.valueChanges.pipe((0,b.h)(function(t){return t!==e._lastExternalInputValue}),(0,w.b)(function(){return e._lastExternalInputValue=void 0}),(0,y.R)(this._onDestroy)).subscribe(t)}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"_focus",value:function(){if(this.searchSelectInput&&this.matSelect.panel){var t=this.matSelect.panel.nativeElement,e=t.scrollTop;this.searchSelectInput.nativeElement.focus(),t.scrollTop=e}}},{key:"_reset",value:function(t){this._formControl.setValue(""),t&&this._focus()}},{key:"initMultipleHandling",value:function(){var t=this;this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,y.R)(this._onDestroy)).subscribe(function(e){var i=!1;if(t.matSelect.multiple&&(t.alwaysRestoreSelectedOptionsMulti||t._formControl.value&&t._formControl.value.length)&&t.previousSelectedValues&&Array.isArray(t.previousSelectedValues)){e&&Array.isArray(e)||(e=[]);var n=t.matSelect.options.map(function(t){return t.value});t.previousSelectedValues.forEach(function(r){e.some(function(e){return t.matSelect.compareWith(e,r)})||n.some(function(e){return t.matSelect.compareWith(e,r)})||(e.push(r),i=!0)})}t.previousSelectedValues=e,i&&t.matSelect._onChange(e)})):this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true")}},{key:"adjustScrollTopToFitActiveOptionIntoView",value:function(){if(this.matSelect.panel&&this.matSelect.options.length>0){var t=this.getMatOptionHeight(),e=this.matSelect._keyManager.activeItemIndex||0,i=(0,a.CB)(e,this.matSelect.options,this.matSelect.optionGroups),n=(this.matOption?-1:0)+i+e,r=this.matSelect.panel.nativeElement.scrollTop,o=this.innerSelectSearch.nativeElement.offsetHeight,s=Math.floor((256-o)/t),c=Math.round((r+o)/t)-1;c>=n?this.matSelect.panel.nativeElement.scrollTop=n*t:c+s<=n&&(this.matSelect.panel.nativeElement.scrollTop=(n+1)*t-(256-o))}}},{key:"updateInputWidth",value:function(){if(this.innerSelectSearch&&this.innerSelectSearch.nativeElement){for(var t,e=this.innerSelectSearch.nativeElement;e=e.parentElement;)if(e.classList.contains("mat-select-panel")){t=e;break}t&&(this.innerSelectSearch.nativeElement.style.width=t.clientWidth+"px")}}},{key:"getMatOptionHeight",value:function(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}},{key:"getOptionsLengthOffset",value:function(){return this.matOption?1:0}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(s.gD),r.Y36(r.sBO),r.Y36(I.rL),r.Y36(a.ey,8),r.Y36(R.Kd),r.Y36(c.KE,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["ngx-mat-select-search"]],contentQueries:function(t,e,i){var n;(1&t&&r.Suo(i,H,5),2&t)&&(r.iGM(n=r.CRH())&&(e.clearIcon=n.first))},viewQuery:function(t,e){var i;(1&t&&(r.Gf(x,7,r.SBq),r.Gf(O,7,r.SBq)),2&t)&&(r.iGM(i=r.CRH())&&(e.searchSelectInput=i.first),r.iGM(i=r.CRH())&&(e.innerSelectSearch=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&r.ekj("mat-select-search-inside-mat-option",e.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",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:[r._Bn([{provide:o.JU,useExisting:(0,r.Gpc)(function(){return Z}),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",""],[1,"mat-select-search-no-entries-found"]],template:function(t,e){1&t&&(r.F$t(B),r._UZ(0,"input",0),r.TgZ(1,"div",1,2),r.YNc(3,P,1,5,"mat-checkbox",3),r.TgZ(4,"input",4,5),r.NdJ("keydown",function(t){return e._handleKeydown(t)})("keyup",function(t){return e._handleKeyup(t)})("blur",function(){return e.onBlur()}),r.qZA(),r.YNc(6,D,1,0,"mat-spinner",6),r.YNc(7,N,4,2,"button",7),r.Hsn(8),r.qZA(),r.YNc(9,z,2,1,"div",8),r.ALo(10,"async")),2&t&&(r.xp6(1),r.Q6J("ngClass",r.WLB(11,F,e.matSelect.multiple,e._isToggleAllCheckboxVisible())),r.xp6(2),r.Q6J("ngIf",e._isToggleAllCheckboxVisible()),r.xp6(1),r.Q6J("type",e.type)("formControl",e._formControl)("placeholder",e.placeholderLabel),r.uIk("aria-label",e.ariaLabel),r.xp6(2),r.Q6J("ngIf",e.searching),r.xp6(1),r.Q6J("ngIf",!e.hideClearSearchButton&&e.value&&!e.searching),r.xp6(2),r.Q6J("ngIf",r.lcZ(10,9,e._showNoEntriesFound$)))},directives:[S.mk,S.O5,o.Fj,o.JJ,o.oH,k.oG,E.gM,T.$g,A.lW,C.Hw],pipes:[S.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}),t=Z=(0,n.gn)([(0,n.fM)(0,(0,r.tBr)(s.gD)),(0,n.fM)(3,(0,r.FiY)()),(0,n.fM)(3,(0,r.tBr)(a.ey)),(0,n.fM)(5,(0,r.FiY)()),(0,n.fM)(5,(0,r.tBr)(c.KE))],t)}(),G=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[S.ez,o.UX,A.ot,k.p9,C.Ps,T.Cq,E.AV]]}),t}()},40963:function(t){"use strict";function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,i,n,r){n=n||"=";var o={};if("string"!=typeof t||0===t.length)return o;var a=/\+/g;t=t.split(i=i||"&");var s=1e3;r&&"number"==typeof r.maxKeys&&(s=r.maxKeys);var c=t.length;s>0&&c>s&&(c=s);for(var u=0;u=0?(l=p.substr(0,g),h=p.substr(g+1)):(l=p,h=""),d=decodeURIComponent(l),f=decodeURIComponent(h),e(o,d)?Array.isArray(o[d])?o[d].push(f):o[d]=[o[d],f]:o[d]=f}return o}},15341:function(t){"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,i,n,r){return i=i||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map(function(r){var o=encodeURIComponent(e(r))+n;return Array.isArray(t[r])?t[r].map(function(t){return o+encodeURIComponent(e(t))}).join(i):o+encodeURIComponent(e(t[r]))}).join(i):r?encodeURIComponent(e(r))+n+encodeURIComponent(e(t)):""}},96577:function(t,e,i){"use strict";i(40963),e.stringify=i(15341)},78512:function(t,e,i){"use strict";i.d(e,{X:function(){return o}});var n=i(55959),r=i(13895),o=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this))._value=t,n}return _createClass(i,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(t){var e=_get(_getPrototypeOf(i.prototype),"_subscribe",this).call(this,t);return e&&!e.closed&&t.next(this._value),e}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new r.N;return this._value}},{key:"next",value:function(t){_get(_getPrototypeOf(i.prototype),"next",this).call(this,this._value=t)}}]),i}(n.xQ)},99867:function(t,e,i){"use strict";i.d(e,{d:function(){return n}});var n=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this)).parent=t,o.outerValue=n,o.outerIndex=r,o.index=0,o}return _createClass(i,[{key:"_next",value:function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}},{key:"_error",value:function(t){this.parent.notifyError(t,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),i}(i(96673).L)},3103:function(t,e,i){"use strict";i.d(e,{P:function(){return a}});var n=i(70653),r=i(40878),o=i(31225),a=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.kind=e,this.value=i,this.error=n,this.hasValue="N"===e}return _createClass(t,[{key:"observe",value:function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}},{key:"do",value:function(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}},{key:"accept",value:function(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return(0,r.of)(this.value);case"E":return(0,o._)(this.error);case"C":return(0,n.c)()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}},{key:"createError",value:function(e){return new t("E",void 0,e)}},{key:"createComplete",value:function(){return t.completeNotification}}]),t}();return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}()},48318:function(t,e,i){"use strict";i.d(e,{y:function(){return u}});var n=i(96673),r=i(55331),o=i(57498),a=i(56197),s=i(13392),c=i(51484),u=function(){var t=function(){function t(e){_classCallCheck(this,t),this._isScalar=!1,e&&(this._subscribe=e)}return _createClass(t,[{key:"lift",value:function(e){var i=new t;return i.source=this,i.operator=e,i}},{key:"subscribe",value:function(t,e,i){var a=this.operator,s=function(t,e,i){if(t){if(t instanceof n.L)return t;if(t[r.b])return t[r.b]()}return t||e||i?new n.L(t,e,i):new n.L(o.c)}(t,e,i);if(s.add(a?a.call(s,this.source):this.source||c.v.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),c.v.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}},{key:"_trySubscribe",value:function(t){try{return this._subscribe(t)}catch(e){c.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){var e=t,i=e.closed,r=e.destination,o=e.isStopped;if(i||o)return!1;t=r&&r instanceof n.L?r:null}return!0}(t)?t.error(e):console.warn(e)}}},{key:"forEach",value:function(t,e){var i=this;return new(e=l(e))(function(e,n){var r;r=i.subscribe(function(e){try{t(e)}catch(i){n(i),r&&r.unsubscribe()}},n,e)})}},{key:"_subscribe",value:function(t){var e=this.source;return e&&e.subscribe(t)}},{key:a.L,value:function(){return this}},{key:"pipe",value:function(){for(var t=arguments.length,e=new Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:0;return e>0?_get(_getPrototypeOf(i.prototype),"schedule",this).call(this,t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}},{key:"execute",value:function(t,e){return e>0||this.closed?_get(_getPrototypeOf(i.prototype),"execute",this).call(this,t,e):this._execute(t,e)}},{key:"requestAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==n&&n>0||null===n&&this.delay>0?_get(_getPrototypeOf(i.prototype),"requestAsyncId",this).call(this,t,e,n):t.flush(this)}}]),i}(i(8277).o),o=new(function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(i(91098).v))(r),a=i(87570),s=i(96673),c=i(3103),u=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return _classCallCheck(this,i),(r=e.call(this,t)).scheduler=n,r.delay=o,r}return _createClass(i,[{key:"scheduleMessage",value:function(t){this.destination.add(this.scheduler.schedule(i.dispatch,this.delay,new l(t,this.destination)))}},{key:"_next",value:function(t){this.scheduleMessage(c.P.createNext(t))}},{key:"_error",value:function(t){this.scheduleMessage(c.P.createError(t)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(c.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){var e=t.notification,i=t.destination;e.observe(i),this.unsubscribe()}}]),i}(s.L),l=function t(e,i){_classCallCheck(this,t),this.notification=e,this.destination=i},h=i(13895),d=i(19291),f=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,o=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,i),(t=e.call(this)).scheduler=o,t._events=[],t._infiniteTimeWindow=!1,t._bufferSize=n<1?1:n,t._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(t._infiniteTimeWindow=!0,t.next=t.nextInfiniteTimeWindow):t.next=t.nextTimeWindow,t}return _createClass(i,[{key:"nextInfiniteTimeWindow",value:function(t){var e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),_get(_getPrototypeOf(i.prototype),"next",this).call(this,t)}},{key:"nextTimeWindow",value:function(t){this._events.push(new p(this._getNow(),t)),this._trimBufferThenGetEvents(),_get(_getPrototypeOf(i.prototype),"next",this).call(this,t)}},{key:"_subscribe",value:function(t){var e,i=this._infiniteTimeWindow,n=i?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=n.length;if(this.closed)throw new h.N;if(this.isStopped||this.hasError?e=a.w.EMPTY:(this.observers.push(t),e=new d.W(this,t)),r&&t.add(t=new u(t,r)),i)for(var s=0;se&&(o=Math.max(o,r-e)),o>0&&n.splice(0,o),n}}]),i}(n.xQ),p=function t(e,i){_classCallCheck(this,t),this.time=e,this.value=i}},55959:function(t,e,i){"use strict";i.d(e,{Yc:function(){return u},xQ:function(){return l}});var n=i(48318),r=i(96673),o=i(87570),a=i(13895),s=i(19291),c=i(55331),u=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this,t)).destination=t,n}return i}(r.L),l=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.call(this)).observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return _createClass(i,[{key:c.b,value:function(){return new u(this)}},{key:"lift",value:function(t){var e=new h(this,this);return e.operator=t,e}},{key:"next",value:function(t){if(this.closed)throw new a.N;if(!this.isStopped)for(var e=this.observers,i=e.length,n=e.slice(),r=0;r1?Array.prototype.slice.call(arguments):t)},n,i)})}function c(t,e,i,n,r){var o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){var a=t;t.addEventListener(e,i,r),o=function(){return a.removeEventListener(e,i,r)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){var s=t;t.on(e,i),o=function(){return s.off(e,i)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){var u=t;t.addListener(e,i),o=function(){return u.removeListener(e,i)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var l=0,h=t.length;l0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.P;return(!(0,o.k)(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=r.P),new n.y(function(i){return i.add(e.schedule(s,t,{subscriber:i,counter:0,period:t})),i})}function s(t){var e=t.subscriber,i=t.counter,n=t.period;e.next(i),this.schedule({subscriber:e,counter:i+1,period:n},n)}},31906:function(t,e,i){"use strict";i.d(e,{T:function(){return s}});var n=i(48318),r=i(76163),o=i(97471),a=i(99342);function s(){for(var t=arguments.length,e=new Array(t),i=0;i1&&"number"==typeof e[e.length-1]&&(s=e.pop())):"number"==typeof u&&(s=e.pop()),null===c&&1===e.length&&e[0]instanceof n.y?e[0]:(0,o.J)(s)((0,a.n)(e,c))}},40878:function(t,e,i){"use strict";i.d(e,{of:function(){return a}});var n=i(76163),r=i(99342),o=i(62570);function a(){for(var t=arguments.length,e=new Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,s=-1;return(0,o.k)(e)?s=Number(e)<1?1:Number(e):(0,a.K)(e)&&(i=e),(0,a.K)(i)||(i=r.P),new n.y(function(e){var n=(0,o.k)(t)?t:+t-i.now();return i.schedule(c,n,{index:0,period:s,subscriber:e})})}function c(t){var e=t.index,i=t.period,n=t.subscriber;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}}},30810:function(t,e,i){"use strict";i.d(e,{e:function(){return u}});var n=i(48569),r=i(59829),o=i(6268),a=function(){function t(e){_classCallCheck(this,t),this.durationSelector=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new s(t,this.durationSelector))}}]),t}(),s=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,t)).durationSelector=n,r.hasValue=!1,r}return _createClass(i,[{key:"_next",value:function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e;try{e=(0,this.durationSelector)(t)}catch(n){return this.destination.error(n)}var i=(0,o.D)(this,e);!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}},{key:"clearThrottle",value:function(){var t=this.value,e=this.hasValue,i=this.throttled;i&&(this.remove(i),this.throttled=null,i.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}},{key:"notifyNext",value:function(t,e,i,n){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),i}(r.L),c=i(81110);function u(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.P;return e=function(){return(0,c.H)(t,i)},function(t){return t.lift(new a(e))}}},47727:function(t,e,i){"use strict";i.d(e,{K:function(){return a}});var n=i(59829),r=i(99867),o=i(6268);function a(t){return function(e){var i=new s(t),n=e.lift(i);return i.caught=n}}var s=function(){function t(e){_classCallCheck(this,t),this.selector=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new c(t,this.selector,this.caught))}}]),t}(),c=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this,t)).selector=n,o.caught=r,o}return _createClass(i,[{key:"error",value:function(t){if(!this.isStopped){var e;try{e=this.selector(t,this.caught)}catch(s){return void _get(_getPrototypeOf(i.prototype),"error",this).call(this,s)}this._unsubscribeAndRecycle();var n=new r.d(this,void 0,void 0);this.add(n);var a=(0,o.D)(this,e,void 0,void 0,n);a!==n&&this.add(a)}}}]),i}(n.L)},436:function(t,e,i){"use strict";i.d(e,{b:function(){return r}});var n=i(73982);function r(t,e){return(0,n.zg)(t,e,1)}},47701:function(t,e,i){"use strict";i.d(e,{b:function(){return o}});var n=i(96673),r=i(48569);function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.P;return function(i){return i.lift(new a(t,e))}}var a=function(){function t(e,i){_classCallCheck(this,t),this.dueTime=e,this.scheduler=i}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new s(t,this.dueTime,this.scheduler))}}]),t}(),s=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this,t)).dueTime=n,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return _createClass(i,[{key:"_next",value:function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}},{key:"clearDebounce",value:function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}]),i}(n.L);function c(t){t.debouncedNext()}},7768:function(t,e,i){"use strict";i.d(e,{d:function(){return r}});var n=i(96673);function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(e){return e.lift(new o(t))}}var o=function(){function t(e){_classCallCheck(this,t),this.defaultValue=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new a(t,this.defaultValue))}}]),t}(),a=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,t)).defaultValue=n,r.isEmpty=!0,r}return _createClass(i,[{key:"_next",value:function(t){this.isEmpty=!1,this.destination.next(t)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),i}(n.L)},60509:function(t,e,i){"use strict";i.d(e,{g:function(){return s}});var n=i(48569),r=i(38802),o=i(96673),a=i(3103);function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.P,i=(0,r.J)(t)?+t-e.now():Math.abs(t);return function(t){return t.lift(new c(i,e))}}var c=function(){function t(e,i){_classCallCheck(this,t),this.delay=e,this.scheduler=i}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new u(t,this.delay,this.scheduler))}}]),t}(),u=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this,t)).delay=n,o.scheduler=r,o.queue=[],o.active=!1,o.errored=!1,o}return _createClass(i,[{key:"_schedule",value:function(t){this.active=!0,this.destination.add(t.schedule(i.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}},{key:"scheduleNotification",value:function(t){if(!0!==this.errored){var e=this.scheduler,i=new l(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}}},{key:"_next",value:function(t){this.scheduleNotification(a.P.createNext(t))}},{key:"_error",value:function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(a.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){for(var e=t.source,i=e.queue,n=t.scheduler,r=t.destination;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(r);if(i.length>0){var o=Math.max(0,i[0].time-n.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1}}]),i}(o.L),l=function t(e,i){_classCallCheck(this,t),this.time=e,this.notification=i}},98720:function(t,e,i){"use strict";i.d(e,{x:function(){return r}});var n=i(96673);function r(t,e){return function(i){return i.lift(new o(t,e))}}var o=function(){function t(e,i){_classCallCheck(this,t),this.compare=e,this.keySelector=i}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new a(t,this.compare,this.keySelector))}}]),t}(),a=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this,t)).keySelector=r,o.hasKey=!1,"function"==typeof n&&(o.compare=n),o}return _createClass(i,[{key:"compare",value:function(t,e){return t===e}},{key:"_next",value:function(t){var e;try{var i=this.keySelector;e=i?i(t):t}catch(r){return this.destination.error(r)}var n=!1;if(this.hasKey)try{n=(0,this.compare)(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}]),i}(n.L)},43835:function(t,e,i){"use strict";i.d(e,{h:function(){return r}});var n=i(96673);function r(t,e){return function(i){return i.lift(new o(t,e))}}var o=function(){function t(e,i){_classCallCheck(this,t),this.predicate=e,this.thisArg=i}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg))}}]),t}(),a=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this,t)).predicate=n,o.thisArg=r,o.count=0,o}return _createClass(i,[{key:"_next",value:function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}]),i}(n.L)},11520:function(t,e,i){"use strict";i.d(e,{x:function(){return o}});var n=i(96673),r=i(87570);function o(t){return function(e){return e.lift(new a(t))}}var a=function(){function t(e){_classCallCheck(this,t),this.callback=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new s(t,this.callback))}}]),t}(),s=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var o;return _classCallCheck(this,i),(o=e.call(this,t)).add(new r.w(n)),o}return i}(n.L)},3530:function(t,e,i){"use strict";i.d(e,{P:function(){return u}});var n=i(39665),r=i(43835),o=i(90611),a=i(7768),s=i(90790),c=i(13392);function u(t,e){var i=arguments.length>=2;return function(u){return u.pipe(t?(0,r.h)(function(e,i){return t(e,i,u)}):c.y,(0,o.q)(1),i?(0,a.d)(e):(0,s.T)(function(){return new n.K}))}}},79996:function(t,e,i){"use strict";i.d(e,{U:function(){return r}});var n=i(96673);function r(t,e){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new o(t,e))}}var o=function(){function t(e,i){_classCallCheck(this,t),this.project=e,this.thisArg=i}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new a(t,this.project,this.thisArg))}}]),t}(),a=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this,t)).project=n,o.count=0,o.thisArg=r||_assertThisInitialized(o),o}return _createClass(i,[{key:"_next",value:function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}]),i}(n.L)},88414:function(t,e,i){"use strict";i.d(e,{h:function(){return r}});var n=i(96673);function r(t){return function(e){return e.lift(new o(t))}}var o=function(){function t(e){_classCallCheck(this,t),this.value=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new a(t,this.value))}}]),t}(),a=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,t)).value=n,r}return _createClass(i,[{key:"_next",value:function(t){this.destination.next(this.value)}}]),i}(n.L)},97471:function(t,e,i){"use strict";i.d(e,{J:function(){return o}});var n=i(73982),r=i(13392);function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return(0,n.zg)(r.y,t)}},73982:function(t,e,i){"use strict";i.d(e,{zg:function(){return c}});var n=i(6268),r=i(59829),o=i(99867),a=i(79996),s=i(19764);function c(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof e?function(n){return n.pipe(c(function(i,n){return(0,s.D)(t(i,n)).pipe((0,a.U)(function(t,r){return e(i,t,n,r)}))},i))}:("number"==typeof e&&(i=e),function(e){return e.lift(new u(t,i))})}var u=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;_classCallCheck(this,t),this.project=e,this.concurrent=i}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new l(t,this.project,this.concurrent))}}]),t}(),l=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _classCallCheck(this,i),(r=e.call(this,t)).project=n,r.concurrent=o,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return _createClass(i,[{key:"_next",value:function(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),i}(r.L)},21564:function(t,e,i){"use strict";i.d(e,{x:function(){return r}});var n=i(96673);function r(){return function(t){return t.lift(new o(t))}}var o=function(){function t(e){_classCallCheck(this,t),this.connectable=e}return _createClass(t,[{key:"call",value:function(t,e){var i=this.connectable;i._refCount++;var n=new a(t,i),r=e.subscribe(n);return n.closed||(n.connection=i.connect()),r}}]),t}(),a=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,t)).connectable=n,r}return _createClass(i,[{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var i=this.connection,n=t._connection;this.connection=null,!n||i&&n!==i||n.unsubscribe()}}else this.connection=null}}]),i}(n.L)},1055:function(t,e,i){"use strict";i.d(e,{B:function(){return s}});var n=i(42875),r=i(21564),o=i(55959);function a(){return new o.xQ}function s(){return function(t){return(0,r.x)()((e=a,function(t){var i;i="function"==typeof e?e:function(){return e};var r=Object.create(t,n.N);return r.source=t,r.subjectFactory=i,r})(t));var e}}},68303:function(t,e,i){"use strict";i.d(e,{d:function(){return r}});var n=i(66994);function r(t,e,i){var r;return r=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:i},function(t){return t.lift(function(t){var e,i,r=t.bufferSize,o=void 0===r?Number.POSITIVE_INFINITY:r,a=t.windowTime,s=void 0===a?Number.POSITIVE_INFINITY:a,c=t.refCount,u=t.scheduler,l=0,h=!1,d=!1;return function(t){l++,e&&!h||(h=!1,e=new n.t(o,s,u),i=t.subscribe({next:function(t){e.next(t)},error:function(t){h=!0,e.error(t)},complete:function(){d=!0,i=void 0,e.complete()}}));var r=e.subscribe(this);this.add(function(){l--,r.unsubscribe(),i&&!d&&c&&0===l&&(i.unsubscribe(),i=void 0,e=void 0)})}}(r))}}},56238:function(t,e,i){"use strict";i.d(e,{O:function(){return o}});var n=i(47930),r=i(76163);function o(){for(var t=arguments.length,e=new Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:c;return function(e){return e.lift(new a(t))}}var a=function(){function t(e){_classCallCheck(this,t),this.errorFactory=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new s(t,this.errorFactory))}}]),t}(),s=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,t)).errorFactory=n,r.hasValue=!1,r}return _createClass(i,[{key:"_next",value:function(t){this.hasValue=!0,this.destination.next(t)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}]),i}(r.L);function c(){return new n.K}},29085:function(t,e,i){"use strict";i.d(e,{V:function(){return h}});var n=i(48569),r=function(){function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t}(),o=i(38802),a=i(59829),s=i(6268),c=function(){function t(e,i,n,r){_classCallCheck(this,t),this.waitFor=e,this.absoluteTimeout=i,this.withObservable=n,this.scheduler=r}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new u(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}]),t}(),u=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,a){var s;return _classCallCheck(this,i),(s=e.call(this,t)).absoluteTimeout=n,s.waitFor=r,s.withObservable=o,s.scheduler=a,s.action=null,s.scheduleTimeout(),s}return _createClass(i,[{key:"scheduleTimeout",value:function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(i.dispatchTimeout,this.waitFor,this))}},{key:"_next",value:function(t){this.absoluteTimeout||this.scheduleTimeout(),_get(_getPrototypeOf(i.prototype),"_next",this).call(this,t)}},{key:"_unsubscribe",value:function(){this.action=null,this.scheduler=null,this.withObservable=null}}],[{key:"dispatchTimeout",value:function(t){var e=t.withObservable;t._unsubscribeAndRecycle(),t.add((0,s.D)(t,e))}}]),i}(a.L),l=i(31225);function h(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.P;return function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.P;return function(n){var r=(0,o.J)(t),a=r?+t-i.now():Math.abs(t);return n.lift(new c(a,r,e,i))}}(t,(0,l._)(new r),e)}},62570:function(t,e,i){"use strict";i.d(e,{r:function(){return o}});var n=i(48318),r=i(87570);function o(t,e){return new n.y(function(i){var n=new r.w,o=0;return n.add(e.schedule(function(){o!==t.length?(i.next(t[o++]),i.closed||n.add(this.schedule())):i.complete()})),n})}},8277:function(t,e,i){"use strict";i.d(e,{o:function(){return n}});var n=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,t,n)).scheduler=t,r.work=n,r.pending=!1,r}return _createClass(i,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=t;var i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this}},{key:"requestAsyncId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(t.flush.bind(t,this),i)}},{key:"recycleAsyncId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}},{key:"execute",value:function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(t,e){var i,n=!1;try{this.work(t)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}},{key:"_unsubscribe",value:function(){var t=this.id,e=this.scheduler,i=e.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}]),i}(function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){return _classCallCheck(this,i),e.call(this)}return _createClass(i,[{key:"schedule",value:function(t){return this}}]),i}(i(87570).w))},91098:function(t,e,i){"use strict";i.d(e,{v:function(){return r}});var n=function(){var t=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.now;_classCallCheck(this,t),this.SchedulerAction=e,this.now=i}return _createClass(t,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,t).schedule(i,e)}}]),t}();return t.now=function(){return Date.now()},t}(),r=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.now;return _classCallCheck(this,i),(r=e.call(this,t,function(){return i.delegate&&i.delegate!==_assertThisInitialized(r)?i.delegate.now():o()})).actions=[],r.active=!1,r.scheduled=void 0,r}return _createClass(i,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return i.delegate&&i.delegate!==this?i.delegate.schedule(t,e,n):_get(_getPrototypeOf(i.prototype),"schedule",this).call(this,t,e,n)}},{key:"flush",value:function(t){var e=this.actions;if(this.active)e.push(t);else{var i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}}]),i}(n)},91741:function(t,e,i){"use strict";i.d(e,{r:function(){return r}});var n=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,t,n)).scheduler=t,r.work=n,r}return _createClass(i,[{key:"requestAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==n&&n>0?_get(_getPrototypeOf(i.prototype),"requestAsyncId",this).call(this,t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(function(){return t.flush(null)})))}},{key:"recycleAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&n>0||null===n&&this.delay>0)return _get(_getPrototypeOf(i.prototype),"recycleAsyncId",this).call(this,t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}]),i}(i(8277).o),r=new(function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"flush",value:function(t){this.active=!0,this.scheduled=void 0;var e,i=this.actions,n=-1,r=i.length;t=t||i.shift();do{if(e=t.execute(t.state,t.delay))break}while(++n2&&void 0!==arguments[2]?arguments[2]:0;return null!==n&&n>0?_get(_getPrototypeOf(i.prototype),"requestAsyncId",this).call(this,t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=s(t.flush.bind(t,null))))}},{key:"recycleAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&n>0||null===n&&this.delay>0)return _get(_getPrototypeOf(i.prototype),"recycleAsyncId",this).call(this,t,e,n);0===t.actions.length&&(c(e),t.scheduled=void 0)}}]),i}(i(8277).o),l=new(function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"flush",value:function(t){this.active=!0,this.scheduled=void 0;var e,i=this.actions,n=-1,r=i.length;t=t||i.shift();do{if(e=t.execute(t.state,t.delay))break}while(++n=0}},82056:function(t,e,i){"use strict";function n(t){return null!==t&&"object"==typeof t}i.d(e,{K:function(){return n}})},4710:function(t,e,i){"use strict";i.d(e,{b:function(){return r}});var n=i(48318);function r(t){return!!t&&(t instanceof n.y||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},5168:function(t,e,i){"use strict";function n(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}i.d(e,{t:function(){return n}})},76163:function(t,e,i){"use strict";function n(t){return t&&"function"==typeof t.schedule}i.d(e,{K:function(){return n}})},16015:function(t,e,i){"use strict";i.d(e,{s:function(){return l}});var n=i(30625),r=i(14294),o=i(25686),a=i(56197),s=i(59653),c=i(5168),u=i(82056),l=function(t){if(t&&"function"==typeof t[a.L])return l=t,function(t){var e=l[a.L]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if((0,s.z)(t))return(0,n.V)(t);if((0,c.t)(t))return i=t,function(t){return i.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,r.z),t};if(t&&"function"==typeof t[o.hZ])return e=t,function(t){for(var i=e[o.hZ]();;){var n=i.next();if(n.done){t.complete();break}if(t.next(n.value),t.closed)break}return"function"==typeof i.return&&t.add(function(){i.return&&i.return()}),t};var e,i,l,h=(0,u.K)(t)?"an invalid object":"'".concat(t,"'");throw new TypeError("You provided ".concat(h," where a stream was expected. You can provide an Observable, Promise, Array, or Iterable."))}},30625:function(t,e,i){"use strict";i.d(e,{V:function(){return n}});var n=function(t){return function(e){for(var i=0,n=t.length;i4&&void 0!==arguments[4]?arguments[4]:new n.d(t,i,a);if(!s.closed)return e instanceof o.y?e.subscribe(s):(0,r.s)(e)(s)}},77632:function(t,e,i){"use strict";function n(t,e,i,n){return new(i||(i=Promise))(function(r,o){function a(t){try{c(n.next(t))}catch(e){o(e)}}function s(t){try{c(n.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(a,s)}c((n=n.apply(t,e||[])).next())})}i.d(e,{mG:function(){return n}})},64762:function(t,e,i){"use strict";function n(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a}function r(t,e){return function(i,n){e(i,n,t)}}function o(t,e,i,n){return new(i||(i=Promise))(function(r,o){function a(t){try{c(n.next(t))}catch(e){o(e)}}function s(t){try{c(n.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(a,s)}c((n=n.apply(t,e||[])).next())})}i.d(e,{gn:function(){return n},fM:function(){return r},mG:function(){return o}})},60306:function(t){"use strict";t.exports={i8:"5.2.0"}}},function(t){"use strict";t(t.s=73868)}])})(); \ No newline at end of file diff --git a/dist/apps/admin-gui/main-es5.ded48bb90bba60081f0f.js b/dist/apps/admin-gui/main-es5.ded48bb90bba60081f0f.js new file mode 100644 index 000000000..31b190581 --- /dev/null +++ b/dist/apps/admin-gui/main-es5.ded48bb90bba60081f0f.js @@ -0,0 +1 @@ +(function(){function _defineProperty(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function _wrapNativeSuper(t){var e="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,i)}function i(){return _construct(t,arguments,_getPrototypeOf(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(i,t)})(t)}function _construct(t,e,i){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(t,e,i){var n=[null];n.push.apply(n,e);var r=new(Function.bind.apply(t,n));return i&&_setPrototypeOf(r,i.prototype),r}).apply(null,arguments)}function _isNativeFunction(t){return-1!==Function.toString.call(t).indexOf("[native code]")}function _get(t,e,i){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=_superPropBase(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function _superPropBase(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_getPrototypeOf(t)););return t}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){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 _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,r,o=[],a=!0,s=!1;try{for(i=i.call(t);!(a=(n=i.next()).done)&&(o.push(n.value),!e||o.length!==e);a=!0);}catch(c){s=!0,r=c}finally{try{a||null==i.return||i.return()}finally{if(s)throw r}}return o}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var i,n=_getPrototypeOf(t);if(e){var r=_getPrototypeOf(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return _possibleConstructorReturn(this,i)}}function _possibleConstructorReturn(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?_assertThisInitialized(t):e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _createForOfIteratorHelper(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw o}}}}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i0&&(i+=", "),i+=r.friendlyName.substring(16)+": "+r.value)}}catch(o){n.e(o)}finally{n.f()}return i}},{key:"getLoginsForCandidate",value:function(t){var e="";for(var i in t.attributes)Object.prototype.hasOwnProperty.call(t.attributes,i)&&-1!==i.indexOf("urn:perun:user:attribute-def:def:login-namespace:")&&null!=t.attributes[i]&&(e.length>0&&(e+=", "),e+=i.substring(49)+": "+t.attributes[i]);return e}},{key:"getAlreadyMember",value:function(t){if("vo"===this.type){if(null!=t.member)return"Member of VO"}else{if(null!=t.member&&0!==t.member.sourceGroupId&&"DIRECT"===t.member.membershipType)return"Member of Group";if(null!=t.member&&0!==t.member.sourceGroupId&&"INDIRECT"===t.member.membershipType)return"Indirect member of Group";if(null!=t.member)return"Member of VO"}return""}},{key:"isCheckboxDisabled",value:function(t){return"vo"===this.type?null!=t.member:t.member?0!==t.member.sourceGroupId&&"DIRECT"===t.member.membershipType:this.blockManualAdding}},{key:"setAddAuth",value:function(){void 0!==this.group&&0!==this.selection.selected.length&&(this.addAuth=!!this.selection.selected[0].member||this.guiAuthResolver.isAuthorized("createMember_Vo_User_List_policy",[this.group])&&this.guiAuthResolver.isAuthorized("createMember_Vo_Candidate_List_policy",[this.group]))}},{key:"itemSelectionToggle",value:function(t){this.selection.toggle(t),this.setAddAuth()}},{key:"getTooltip",value:function(t){return t.member?"MEMBERS_CANDIDATES_LIST.ALREADY_MEMBER":"MEMBERS_CANDIDATES_LIST.ADDING_BLOCKED"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(d.Y36(r.x4))},t.\u0275cmp=d.Xpm({type:t,selectors:[["app-members-candidates-list"]],viewQuery:function(t,e){var i;(1&t&&(d.Gf(l.YE,5),d.Gf(c.l9,7)),2&t)&&(d.iGM(i=d.CRH())&&(e.matSort=i.first),d.iGM(i=d.CRH())&&(e.child=i.first))},inputs:{members:"members",selection:"selection",type:"type",tableId:"tableId",group:"group",blockManualAdding:"blockManualAdding"},features:[d.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"],["mat-cell","",1,"static-column-size","align-checkbox"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["color","primary",3,"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(t,e){1&t&&(d.TgZ(0,"div",0),d.TgZ(1,"perun-web-apps-table-wrapper",1),d.NdJ("exportData",function(t){return e.exportData(t)}),d.TgZ(2,"table",2),d.ynx(3,3),d.YNc(4,k,1,0,"th",4),d.YNc(5,C,6,11,"td",5),d.BQk(),d.ynx(6,6),d.YNc(7,T,3,3,"th",7),d.YNc(8,S,2,1,"td",8),d.BQk(),d.ynx(9,9),d.YNc(10,I,3,3,"th",7),d.YNc(11,R,4,5,"td",8),d.BQk(),d.ynx(12,10),d.YNc(13,x,3,3,"th",7),d.YNc(14,O,3,3,"td",8),d.BQk(),d.ynx(15,11),d.YNc(16,P,3,3,"th",7),d.YNc(17,D,2,1,"td",8),d.BQk(),d.ynx(18,12),d.YNc(19,M,3,3,"th",7),d.YNc(20,L,2,1,"td",8),d.BQk(),d.ynx(21,13),d.YNc(22,N,3,3,"th",7),d.YNc(23,z,2,1,"td",8),d.BQk(),d.ynx(24,14),d.YNc(25,Z,1,0,"th",7),d.YNc(26,B,2,1,"td",8),d.BQk(),d.YNc(27,F,1,0,"tr",15),d.YNc(28,H,1,0,"tr",16),d.qZA(),d.qZA(),d.qZA(),d.YNc(29,U,3,3,"app-alert",17)),2&t&&(d.Q6J("hidden",0===e.members.length),d.xp6(1),d.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),d.xp6(1),d.Q6J("dataSource",e.dataSource),d.xp6(25),d.Q6J("matHeaderRowDef",e.displayedColumns),d.xp6(1),d.Q6J("matRowDefColumns",e.displayedColumns),d.xp6(1),d.Q6J("ngIf",0===e.members.length))},directives:[f.l,h.BZ,l.YE,h.w1,h.fO,h.Dz,h.as,h.nj,p.O5,h.ge,h.ev,g.gM,m.oG,l.nU,h.XQ,h.Gk,v.w],pipes:[y.X$,p.i8,_.u,b.f,w.d,A.Z],styles:[""]}),t}(),G=i(16073),j=i(57629),Y=i(66283),K=i(80340),V=i(15980),J=i(67806),Q=i(8055),W=["list"];function X(t,e){1&t&&d._UZ(0,"mat-spinner",10)}function $(t,e){if(1&t&&d._UZ(0,"app-members-candidates-list",13,14),2&t){var i=d.oxw(3);d.Q6J("group",i.data.group)("tableId",i.tableId)("selection",i.selection)("members",i.members)("type",i.data.type)("blockManualAdding",i.manualAddingBlocked)}}function tt(t,e){if(1&t&&(d.TgZ(0,"div",11),d.YNc(1,$,2,6,"app-members-candidates-list",12),d.qZA()),2&t){var i=d.oxw(2);d.xp6(1),d.Q6J("ngIf",i.firstSearchDone)}}function et(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"div",4),d.TgZ(1,"mat-form-field",5),d.TgZ(2,"label"),d.TgZ(3,"input",6),d.NdJ("keyup.enter",function(){return d.CHM(i),d.oxw().onSearchByString()}),d.ALo(4,"translate"),d.qZA(),d.qZA(),d.TgZ(5,"mat-error"),d._uU(6),d.ALo(7,"translate"),d.qZA(),d.qZA(),d.TgZ(8,"button",7),d.NdJ("click",function(){return d.CHM(i),d.oxw().onSearchByString()}),d._uU(9),d.ALo(10,"translate"),d.qZA(),d.TgZ(11,"div",8),d.YNc(12,X,1,0,"mat-spinner",2),d.qZA(),d.YNc(13,tt,2,1,"div",9),d.qZA()}if(2&t){var n=d.oxw();d.xp6(3),d.s9C("placeholder",d.lcZ(4,7,"DIALOGS.ADD_MEMBERS.DESCRIPTION")),d.Q6J("formControl",n.searchCtrl),d.xp6(3),d.hij(" ",d.lcZ(7,9,"DIALOGS.ADD_MEMBERS.EMPTY_SEARCH_MESSAGE")," "),d.xp6(2),d.Q6J("disabled",n.loading),d.xp6(1),d.hij(" ",d.lcZ(10,11,"DIALOGS.ADD_MEMBERS.SEARCH")," "),d.xp6(3),d.Q6J("ngIf",n.loading),d.xp6(1),d.Q6J("ngIf",!!n.members&&!n.loading)}}function it(t,e){1&t&&d._UZ(0,"mat-spinner",10)}function nt(t,e){if(1&t&&(d.TgZ(0,"button",22),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t){d.oxw();var i=d.MAs(8),n=d.oxw();d.Q6J("disabled",0===n.selection.selected.length||n.loading)("matMenuTriggerFor",i),d.xp6(1),d.hij(" ",d.lcZ(2,3,"DIALOGS.ADD_MEMBERS.INVITE")," ")}}function rt(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"button",23),d.NdJ("click",function(){var t=d.CHM(i).$implicit;return d.oxw(2).onInvite(t)}),d._uU(1),d.ALo(2,"translate"),d.ALo(3,"translate"),d.ALo(4,"uppercase"),d.ALo(5,"translate"),d.qZA()}if(2&t){var n=e.$implicit;d.xp6(1),d.lnq(" ",d.lcZ(2,3,"DIALOGS.ADD_MEMBERS.INVITE_IN_LANGUAGE")," ",d.lcZ(3,5,d.lcZ(4,7,"SHARED_LIB.LANGUAGES."+n))," ",d.lcZ(5,9,"DIALOGS.ADD_MEMBERS.LANGUAGE")," ")}}function ot(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"div",15),d.TgZ(1,"button",16),d.NdJ("click",function(){return d.CHM(i),d.oxw().onCancel()}),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"span",17),d.ALo(5,"translate"),d.YNc(6,nt,3,5,"button",18),d.TgZ(7,"mat-menu",null,19),d.YNc(9,rt,6,11,"button",20),d.qZA(),d.qZA(),d.TgZ(10,"button",21),d.NdJ("click",function(){return d.CHM(i),d.oxw().onAdd()}),d._uU(11),d.ALo(12,"translate"),d.qZA(),d.qZA()}if(2&t){var n=d.oxw();d.xp6(2),d.hij(" ",d.lcZ(3,7,"DIALOGS.ADD_MEMBERS.CANCEL")," "),d.xp6(2),d.s9C("matTooltip",d.lcZ(5,9,"DIALOGS.ADD_MEMBERS.ADD_MEMBER_PERMISSION_TOOLTIP")),d.Q6J("matTooltipDisabled",0===n.selection.selected.length||"group"!==n.data.type||void 0!==n.list&&n.list.addAuth),d.xp6(2),d.Q6J("ngIf","group"!==n.data.type||"group"===n.data.type&&n.inviteAuth),d.xp6(3),d.Q6J("ngForOf",n.languages),d.xp6(1),d.Q6J("disabled",0===n.selection.selected.length||n.loading||"group"===n.data.type&&void 0!==n.list&&!n.list.addAuth),d.xp6(1),d.hij(" ",d.lcZ(12,11,"DIALOGS.ADD_MEMBERS.CREATE")," ")}}var at=function(){var t=function(){function t(e,i,n,r,a,s,c,l,h,d,f,p){var g=this;_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.membersManagerService=n,this.groupService=r,this.voService=a,this.registrarManager=s,this.translate=c,this.notificator=l,this.route=h,this.router=d,this.guiAuthResolver=f,this.store=p,this.languages=["en"],this.selection=new o.Ov(!1,[]),this.members=[],this.firstSearchDone=!1,this.tableId=u.tY,this.inviteAuth=!1,this.manualAddingBlocked=!1,c.get("DIALOGS.ADD_MEMBERS.TITLE").subscribe(function(t){return g.title=t})}return _createClass(t,[{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onAdd",value:function(){this.processing=!0;var t=this.selection.selected[0];"vo"===this.data.type?t.richUser?this.addUserToVo(t):this.addCandidateToVo(t):"group"===this.data.type&&(t.member?this.addMemberToGroup(t):t.richUser?this.addUserToGroup(t):t.candidate&&this.addCandidateToGroup(t))}},{key:"onInvite",value:function(t){var e=this;this.processing=!0,this.selection.selected[0].richUser?"vo"===this.data.type?this.registrarManager.sendInvitationToExistingUser(this.selection.selected[0].richUser.id,this.data.entityId).subscribe(function(){e.onInviteSuccess()},function(){return e.onError()}):"group"===this.data.type&&this.registrarManager.sendInvitationGroupToExistingUser(this.selection.selected[0].richUser.id,this.data.voId,this.data.group.id).subscribe(function(){e.onInviteSuccess()},function(){return e.onError()}):"vo"===this.data.type?this.registrarManager.sendInvitation((0,c.Jc)(this.selection.selected[0].candidate),t,this.data.voId).subscribe(function(){e.onInviteSuccess()},function(){return e.onError()}):"group"===this.data.type&&this.registrarManager.sendInvitationForGroup((0,c.Jc)(this.selection.selected[0].candidate),t,this.data.voId,this.data.group.id).subscribe(function(){e.onInviteSuccess()},function(){return e.onError()})}},{key:"onSearchByString",value:function(){var t=this;this.searchCtrl.invalid?this.searchCtrl.markAllAsTouched():(this.loading=!0,this.selection.clear(),"vo"===this.data.type?this.voService.getCompleteCandidatesForVo(this.data.entityId,[s.r.USER_DEF_ORGANIZATION,s.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe(function(e){t.members=e,t.loading=!1,t.firstSearchDone=!0},function(){return t.loading=!1}):this.voService.getCompleteCandidatesForGroup(this.data.entityId,[s.r.USER_DEF_ORGANIZATION,s.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe(function(e){t.members=e,t.loading=!1,t.firstSearchDone=!0},function(){return t.loading=!1}))}},{key:"ngOnInit",value:function(){this.languages=this.store.get("supported_languages"),this.theme=this.data.theme,this.manualAddingBlocked=this.data.manualAddingBlocked,"group"===this.data.type&&(this.inviteAuth=this.guiAuthResolver.isAuthorized("group-sendInvitation_Vo_Group_User_policy",[this.data.group])),this.searchCtrl=new G.NI("",[G.kI.required,G.kI.pattern(".*[\\S]+.*")])}},{key:"addUserToVo",value:function(t){var e=this;this.membersManagerService.createMemberForUser({vo:this.data.entityId,user:t.richUser.id}).subscribe(function(t){e.onAddSuccess(),e.membersManagerService.validateMemberAsync(t.id).subscribe(function(){e.onValidateSuccess()},function(){return e.onCancel()})},function(){return e.onError()})}},{key:"addCandidateToVo",value:function(t){var e=this;this.membersManagerService.createMemberForCandidate({vo:this.data.entityId,candidate:this.createCandidate(t.candidate)}).subscribe(function(t){e.onAddSuccess(),e.membersManagerService.validateMemberAsync(t.id).subscribe(function(){e.onValidateSuccess()},function(){return e.onCancel()})},function(){return e.onError()})}},{key:"addUserToGroup",value:function(t){var e=this;this.membersManagerService.createMemberForUser({vo:this.data.voId,user:t.richUser.id,groups:[{id:this.data.group.id,beanName:this.data.group.beanName,name:this.data.group.name,voId:this.data.group.voId}]}).subscribe(function(t){e.onAddSuccess(),e.membersManagerService.validateMemberAsync(t.id).subscribe(function(){e.onValidateSuccess()},function(){return e.onCancel()})},function(){return e.onError()})}},{key:"addMemberToGroup",value:function(t){var e=this;this.groupService.addMembers(this.data.entityId,[t.member.id]).subscribe(function(){e.onAddSuccess()},function(){return e.onError()})}},{key:"addCandidateToGroup",value:function(t){var e=this,i={id:this.data.group.id,beanName:this.data.group.beanName,name:this.data.group.name,voId:this.data.group.voId};this.membersManagerService.createMemberForCandidate({vo:this.data.voId,candidate:this.createCandidate(t.candidate),groups:[i]}).subscribe(function(t){e.onAddSuccess(),e.membersManagerService.validateMemberAsync(t.id).subscribe(function(){e.onValidateSuccess()},function(){return e.onCancel()})},function(){return e.onError()})}},{key:"onAddSuccess",value:function(){var t=this;this.translate.get("DIALOGS.ADD_MEMBERS.SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})}},{key:"onError",value:function(){this.selection.clear(),this.processing=!1}},{key:"onInviteSuccess",value:function(){var t=this;this.translate.get("DIALOGS.ADD_MEMBERS.SUCCESS_INVITE").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})}},{key:"onValidateSuccess",value:function(){this.dialogRef.close(!0)}},{key:"createCandidate",value:function(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}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(d.Y36(n.so),d.Y36(n.WI),d.Y36(a.uq),d.Y36(a.ff),d.Y36(a.YF),d.Y36(a.tk),d.Y36(y.sK),d.Y36(r.V6),d.Y36(j.gz),d.Y36(j.F0),d.Y36(r.x4),d.Y36(r.d6))},t.\u0275cmp=d.Xpm({type:t,selectors:[["app-add-member-dialog"]],viewQuery:function(t,e){var i;(1&t&&d.Gf(W,5),2&t)&&(d.iGM(i=d.CRH())&&(e.list=i.first))},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,"mr-2","search-field","adjust-width"],["matInput","","autocomplete","false","data-cy","search-members",3,"placeholder","formControl","keyup.enter"],["mat-flat-button","","color","accent","data-cy","search-button",1,"ml-auto",3,"disabled","click"],[1,"no-bounce-scrollbar"],["class","mt-3",4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"mt-3"],[3,"group","tableId","selection","members","type","blockManualAdding",4,"ngIf"],[3,"group","tableId","selection","members","type","blockManualAdding"],["list",""],["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"],["color","accent","mat-flat-button","",1,"ml-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",3,"click"]],template:function(t,e){1&t&&(d.TgZ(0,"div"),d.TgZ(1,"h1",0),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.YNc(4,et,14,13,"div",1),d.YNc(5,it,1,0,"mat-spinner",2),d.YNc(6,ot,13,13,"div",3),d.qZA()),2&t&&(d.Tol(e.theme),d.xp6(2),d.Oqu(d.lcZ(3,7,"DIALOGS.ADD_MEMBERS.TITLE")),d.xp6(2),d.Q6J("ngIf",!e.processing),d.xp6(1),d.Q6J("ngIf",e.processing),d.xp6(1),d.Q6J("ngIf",!e.processing))},directives:[n.uh,p.O5,n.xY,Y.KE,K.Nt,G.Fj,G.JJ,G.oH,Y.TO,V.lW,J.$g,q,n.H8,g.gM,Q.VK,p.sg,Q.p6,Q.OP],pipes:[y.X$,p.gd],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}.no-bounce-scrollbar[_ngcontent-%COMP%]{overflow:hidden}"]}),t}()},68570:function(t,e,i){"use strict";i.d(e,{W:function(){return p}});var n=i(84608),r=i(65249),o=i(68416),a=i(31572),s=i(48160),c=i(61511),u=i(19386),l=i(37665),h=i(15980),d=i(67806);function f(t,e){1&t&&a._UZ(0,"mat-spinner",9)}var p=function(){var t=function(){function t(e,i,n,r,o,a,s,c){var u=this;_classCallCheck(this,t),this.dialogRef=e,this.voService=i,this.groupService=n,this.translateService=r,this.registrarManager=o,this.notificatorService=a,this.apiRequest=s,this.data=c,this.vos=[],this.groups=[],this.selectedGroup=null,this.loading=!1,this.nameFunction=function(t){return t.name},r.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUCCESS").subscribe(function(t){return u.successMessage=t}),r.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.PRIVILEGE").subscribe(function(t){return u.privilegeMessage=t}),r.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_FORM").subscribe(function(t){return u.noFormMessage=t})}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.theme=this.data.theme,this.translateService.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_GROUP_SELECTED").subscribe(function(){t.voService.getMyVos().subscribe(function(e){t.vos=e.sort(function(t,e){return t.name>e.name?1:t.name-1),c.xp6(1),c.Q6J("label",c.lcZ(8,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE"))("description",c.lcZ(9,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE_DESCRIPTION")),c.xp6(4),c.Q6J("attributes",n.attributeDefinitions)("selectedAttribute",n.applicationFormItem.perunSourceAttribute)("asGroup",!!n.data.group)("type",n.itemType.SOURCE),c.xp6(1),c.Q6J("label",c.lcZ(13,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE"))("description",c.lcZ(14,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE_DESCRIPTION")),c.xp6(4),c.Q6J("attributes",n.attributeDefinitions)("selectedAttribute",n.applicationFormItem.perunDestinationAttribute)("asGroup",!!n.data.group)("type",n.itemType.DESTINATION),c.xp6(1),c.Q6J("label",c.lcZ(18,34,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE"))("description",c.lcZ(19,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE_DESCRIPTION")),c.xp6(4),c.Q6J("selectedAttribute",n.applicationFormItem.federationAttribute)("asGroup",!!n.data.group)("type",n.itemType.FEDERATION),c.xp6(1),c.Q6J("ngIf","custom"===n.federationAttribute)}}function M(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"mat-form-field",12),c.TgZ(5,"input",13),c.NdJ("ngModelChange",function(t){return c.CHM(i),c.oxw(2).applicationFormItem.regex=t}),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){var n=c.oxw(2);c.xp6(1),c.Q6J("label",c.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX"))("description",c.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",n.applicationFormItem.regex)}}function L(t,e){if(1&t&&(c.TgZ(0,"mat-option",25),c._uU(1),c.ALo(2,"applicationFormItemDisabled"),c.qZA()),2&t){var i=e.$implicit;c.Q6J("value",i),c.xp6(1),c.hij(" ",c.lcZ(2,2,i)," ")}}function N(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"perun-web-apps-app-form-item-search-select",26),c.NdJ("itemSelected",function(t){return c.CHM(i),c.oxw(3).disabledDependencyItem=t}),c.qZA()}if(2&t){var n=c.oxw(3);c.Q6J("item",n.disabledDependencyItem)("items",n.possibleDependencyItems)}}function z(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"mat-form-field",12),c.TgZ(5,"mat-select",17),c.NdJ("valueChange",function(t){return c.CHM(i),c.oxw(2).applicationFormItem.disabled=t}),c.YNc(6,L,3,4,"mat-option",18),c.qZA(),c.qZA(),c.qZA(),c.TgZ(7,"app-edit-application-form-item-line",11),c.ALo(8,"translate"),c.ALo(9,"translate"),c.TgZ(10,"div",12),c.YNc(11,N,1,2,"perun-web-apps-app-form-item-search-select",19),c.qZA(),c.qZA(),c.qZA()}if(2&t){var n=c.oxw(2);c.xp6(1),c.Q6J("label",c.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED"))("description",c.lcZ(3,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DESCRIPTION")),c.xp6(4),c.Q6J("value",n.applicationFormItem.disabled),c.xp6(1),c.Q6J("ngForOf",n.disabledValues),c.xp6(1),c.Q6J("label",c.lcZ(8,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY"))("description",c.lcZ(9,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY_DESCRIPTION")),c.xp6(4),c.Q6J("ngIf",null!==n.disabledDependencyItem)}}function Z(t,e){if(1&t&&(c.TgZ(0,"mat-option",25),c._uU(1),c.ALo(2,"applicationFormItemHidden"),c.qZA()),2&t){var i=e.$implicit;c.Q6J("value",i),c.xp6(1),c.hij(" ",c.lcZ(2,2,i)," ")}}function B(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"perun-web-apps-app-form-item-search-select",26),c.NdJ("itemSelected",function(t){return c.CHM(i),c.oxw(2).hiddenDependencyItem=t}),c.qZA()}if(2&t){var n=c.oxw(2);c.Q6J("item",n.hiddenDependencyItem)("items",n.possibleDependencyItems)}}function F(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"mat-form-field",12),c.TgZ(5,"textarea",27),c.NdJ("ngModelChange",function(t){c.CHM(i);var e=c.oxw().$implicit;return c.oxw(2).applicationFormItem.i18n[e].label=t}),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){var n=c.oxw().$implicit,r=c.oxw(2);c.xp6(1),c.Q6J("label",c.lcZ(2,4,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT"))("description",c.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT_DESCRIPTION")),c.xp6(4),c.Q6J("cdkTextareaAutosize",!0)("ngModel",r.applicationFormItem.i18n[n].label)}}function H(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"mat-form-field",12),c.TgZ(5,"textarea",13),c.NdJ("ngModelChange",function(t){c.CHM(i);var e=c.oxw().$implicit;return c.oxw(2).applicationFormItem.i18n[e].label=t}),c.qZA(),c.qZA(),c.qZA(),c.TgZ(6,"app-edit-application-form-item-line",11),c.ALo(7,"translate"),c.ALo(8,"translate"),c.TgZ(9,"mat-form-field",12),c.TgZ(10,"textarea",13),c.NdJ("ngModelChange",function(t){c.CHM(i);var e=c.oxw().$implicit;return c.oxw(2).applicationFormItem.i18n[e].help=t}),c.qZA(),c.qZA(),c.qZA(),c.TgZ(11,"app-edit-application-form-item-line",11),c.ALo(12,"translate"),c.ALo(13,"translate"),c.TgZ(14,"mat-form-field",12),c.TgZ(15,"textarea",13),c.NdJ("ngModelChange",function(t){c.CHM(i);var e=c.oxw().$implicit;return c.oxw(2).applicationFormItem.i18n[e].errorMessage=t}),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){var n=c.oxw().$implicit,r=c.oxw(2);c.xp6(1),c.Q6J("label",c.lcZ(2,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"))("description",c.lcZ(3,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",r.applicationFormItem.i18n[n].label),c.xp6(1),c.Q6J("label",c.lcZ(7,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP"))("description",c.lcZ(8,15,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",r.applicationFormItem.i18n[n].help),c.xp6(1),c.Q6J("label",c.lcZ(12,17,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR"))("description",c.lcZ(13,19,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",r.applicationFormItem.i18n[n].errorMessage)}}function U(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"app-edit-application-form-item-line",11),c.ALo(2,"translate"),c.ALo(3,"translate"),c.TgZ(4,"mat-form-field",12),c.TgZ(5,"textarea",13),c.NdJ("ngModelChange",function(t){c.CHM(i);var e=c.oxw().$implicit;return c.oxw(2).applicationFormItem.i18n[e].label=t}),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){var n=c.oxw().$implicit,r=c.oxw(2);c.xp6(1),c.Q6J("label",c.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"))("description",c.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_BUTTON_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",r.applicationFormItem.i18n[n].label)}}function q(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.TgZ(3,"mat-form-field"),c.TgZ(4,"input",13),c.NdJ("ngModelChange",function(t){return e.$implicit[0]=t}),c.qZA(),c.qZA(),c._uU(5),c.ALo(6,"translate"),c.TgZ(7,"mat-form-field"),c.TgZ(8,"input",13),c.NdJ("ngModelChange",function(t){return e.$implicit[1]=t}),c.qZA(),c.qZA(),c.TgZ(9,"button",36),c.NdJ("click",function(){var t=c.CHM(i).$implicit,e=c.oxw(2).$implicit;return c.oxw(2).removeOption(t,e)}),c.ALo(10,"translate"),c.TgZ(11,"mat-icon"),c._uU(12,"clear"),c.qZA(),c.qZA(),c.qZA()}if(2&t){var n=e.$implicit;c.xp6(1),c.hij(" ",c.lcZ(2,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.VALUE"),": "),c.xp6(3),c.Q6J("ngModel",n[0]),c.xp6(1),c.hij(" ",c.lcZ(6,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"),": "),c.xp6(3),c.Q6J("ngModel",n[1]),c.xp6(1),c.s9C("matTooltip",c.lcZ(10,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REMOVE_OPTION"))}}function G(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"div"),c.TgZ(1,"div",28),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"div",29),c._uU(5),c.ALo(6,"translate"),c.qZA(),c.TgZ(7,"div",30),c.TgZ(8,"button",31),c.NdJ("click",function(){c.CHM(i);var t=c.oxw().$implicit;return c.oxw(2).sortOptionsAZ(t)}),c.TgZ(9,"i",32),c._uU(10,"arrow_downward"),c.qZA(),c._uU(11),c.ALo(12,"translate"),c.qZA(),c.TgZ(13,"button",33),c.NdJ("click",function(){c.CHM(i);var t=c.oxw().$implicit;return c.oxw(2).sortOptionsZA(t)}),c.TgZ(14,"i",32),c._uU(15,"arrow_upward"),c.qZA(),c._uU(16),c.ALo(17,"translate"),c.qZA(),c.qZA(),c.YNc(18,q,13,11,"div",34),c.TgZ(19,"button",35),c.NdJ("click",function(){c.CHM(i);var t=c.oxw().$implicit;return c.oxw(2).addOption(t)}),c._uU(20),c.ALo(21,"translate"),c.qZA(),c.qZA()}if(2&t){var n=c.oxw().$implicit,r=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",r.options[n]),c.xp6(2),c.hij(" ",c.lcZ(21,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ADD_OPTION")," ")}}var j=function(){return["HEADING","HTML_COMMENT"]},Y=function(){return["TEXTFIELD","FROM_FEDERATION_HIDDEN","FROM_FEDERATION_SHOW","VALIDATED_EMAIL","USERNAME","PASSWORD","RADIO","TEXTAREA","COMBOBOX","CHECKBOX","TIMEZONE","SELECTIONBOX","EMBEDDED_GROUP_APPLICATION"]},K=function(){return["SUBMIT_BUTTON","AUTO_SUBMIT_BUTTON"]},V=function(){return["RADIO","COMBOBOX","CHECKBOX","SELECTIONBOX"]};function J(t,e){if(1&t&&(c.TgZ(0,"mat-tab",10),c.ALo(1,"translate"),c.ALo(2,"uppercase"),c.YNc(3,F,6,8,"div",16),c.YNc(4,H,16,21,"div",16),c.YNc(5,U,6,7,"div",16),c.YNc(6,G,22,16,"div",16),c.qZA()),2&t){var i=e.$implicit,n=c.oxw(2);c.s9C("label",c.lcZ(1,5,c.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LANGUAGE_"+i))),c.xp6(3),c.Q6J("ngIf",n.isApplicationFormItemOfType(c.DdM(9,j))),c.xp6(1),c.Q6J("ngIf",n.isApplicationFormItemOfType(c.DdM(10,Y))),c.xp6(1),c.Q6J("ngIf",n.isApplicationFormItemOfType(c.DdM(11,K))),c.xp6(1),c.Q6J("ngIf",n.isApplicationFormItemOfType(c.DdM(12,V)))}}var Q=function(){return["TEXTFIELD","FROM_FEDERATION_HIDDEN","FROM_FEDERATION_SHOW","USERNAME","VALIDATED_EMAIL","PASSWORD","TEXTAREA","TIMEZONE","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX"]},W=function(){return["TEXTFIELD","FROM_FEDERATION_HIDDEN","FROM_FEDERATION_SHOW","USERNAME","PASSWORD","TEXTAREA","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX"]};function X(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"div",8),c.TgZ(1,"mat-tab-group",9),c.TgZ(2,"mat-tab",10),c.ALo(3,"translate"),c.TgZ(4,"app-edit-application-form-item-line",11),c.ALo(5,"translate"),c.ALo(6,"translate"),c.TgZ(7,"mat-form-field",12),c.TgZ(8,"input",13),c.NdJ("ngModelChange",function(t){return c.CHM(i),c.oxw().applicationFormItem.shortname=t}),c.qZA(),c.qZA(),c.qZA(),c.TgZ(9,"app-edit-application-form-item-line",11),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",11),c.ALo(15,"translate"),c.ALo(16,"translate"),c.TgZ(17,"section"),c.TgZ(18,"mat-checkbox",14),c.NdJ("change",function(){return c.CHM(i),c.oxw().onChangingType("INITIAL")}),c._uU(19),c.ALo(20,"translate"),c.qZA(),c.TgZ(21,"mat-checkbox",15),c.NdJ("change",function(){return c.CHM(i),c.oxw().onChangingType("EXTENSION")}),c._uU(22),c.ALo(23,"translate"),c.qZA(),c.qZA(),c.qZA(),c.YNc(24,D,23,38,"div",16),c.YNc(25,M,6,7,"div",16),c.YNc(26,z,12,15,"div",16),c.TgZ(27,"app-edit-application-form-item-line",11),c.ALo(28,"translate"),c.ALo(29,"translate"),c.TgZ(30,"mat-form-field",12),c.TgZ(31,"mat-select",17),c.NdJ("valueChange",function(t){return c.CHM(i),c.oxw().applicationFormItem.hidden=t}),c.YNc(32,Z,3,4,"mat-option",18),c.qZA(),c.qZA(),c.qZA(),c.TgZ(33,"app-edit-application-form-item-line",11),c.ALo(34,"translate"),c.ALo(35,"translate"),c.TgZ(36,"div",12),c.YNc(37,B,1,2,"perun-web-apps-app-form-item-search-select",19),c.qZA(),c.qZA(),c.qZA(),c.YNc(38,J,7,13,"mat-tab",20),c.qZA(),c.qZA()}if(2&t){var n=c.oxw();c.xp6(2),c.s9C("label",c.lcZ(3,24,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.BASIC_SETTINGS")),c.xp6(2),c.Q6J("label",c.lcZ(5,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME"))("description",c.lcZ(6,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",n.applicationFormItem.shortname),c.xp6(1),c.Q6J("label",c.lcZ(10,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET"))("description",c.lcZ(11,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET_DESCRIPTION")),c.xp6(3),c.hij(" ",c.lcZ(13,34,n.applicationFormItem.type)," "),c.xp6(2),c.Q6J("label",c.lcZ(15,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION"))("description",c.lcZ(16,38,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION_DESCRIPTION")),c.xp6(4),c.Q6J("ngModel",n.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",n.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",n.isApplicationFormItemOfType(c.DdM(52,Q))),c.xp6(1),c.Q6J("ngIf",n.isApplicationFormItemOfType(c.DdM(53,W))),c.xp6(1),c.Q6J("ngIf",n.typesWithDisabled.indexOf(n.applicationFormItem.type)>-1),c.xp6(1),c.Q6J("label",c.lcZ(28,44,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN"))("description",c.lcZ(29,46,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DESCRIPTION")),c.xp6(4),c.Q6J("value",n.applicationFormItem.hidden),c.xp6(1),c.Q6J("ngForOf",n.hiddenValues),c.xp6(1),c.Q6J("label",c.lcZ(34,48,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY"))("description",c.lcZ(35,50,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY_DESCRIPTION")),c.xp6(4),c.Q6J("ngIf",null!==n.hiddenDependencyItem),c.xp6(1),c.Q6J("ngForOf",n.languages)}}var $=function(){var t=function(){function t(e,i,n,r,o){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.attributesManager=n,this.translateService=r,this.store=o,this.federationAttribute="",this.itemType=a.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"],this.hiddenDependencyItem=null,this.disabledDependencyItem=null,this.dependencyTypes=["PASSWORD","VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","USERNAME"],this.languages=["en"]}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.languages=this.store.get("supported_languages"),this.hiddenDependencyItem=this.data.allItems.find(function(e){return e.id===t.data.applicationFormItem.hiddenDependencyItemId}),this.hiddenDependencyItem||(this.hiddenDependencyItem=a.Sx),this.disabledDependencyItem=this.data.allItems.find(function(e){return e.id===t.data.applicationFormItem.disabledDependencyItemId}),this.disabledDependencyItem||(this.disabledDependencyItem=a.Sx),this.theme=this.data.theme,this.possibleDependencyItems=this.getPossibleDepItems(),this.applicationFormItem=(0,o.dv)(this.languages),this.copy(this.data.applicationFormItem,this.applicationFormItem),this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(function(e){t.attributeDefinitions=e,t.loading=!1},function(){return t.loading=!1}),null===this.applicationFormItem.perunDestinationAttribute&&(this.applicationFormItem.perunDestinationAttribute=""),null===this.applicationFormItem.perunSourceAttribute&&(this.applicationFormItem.perunSourceAttribute=""),this.getOptions()}},{key:"getPossibleDepItems",value:function(){var t=this;return[a.Sx].concat(this.data.allItems.filter(function(e){return t.dependencyTypes.indexOf(e.type)>-1}).filter(function(e){return e.id!==t.data.applicationFormItem.id}))}},{key:"cancel",value:function(){this.dialogRef.close()}},{key:"submit",value:function(){this.applicationFormItem.hiddenDependencyItemId=this.hiddenDependencyItem===a.Sx?null:this.hiddenDependencyItem.id,this.applicationFormItem.disabledDependencyItemId=this.disabledDependencyItem===a.Sx?null:this.disabledDependencyItem.id,this.updateOptions(),this.copy(this.applicationFormItem,this.data.applicationFormItem),this.dialogRef.close(!0)}},{key:"onChangingType",value:function(t){if(this.applicationFormItem.applicationTypes.includes(t)){var e=this.applicationFormItem.applicationTypes.indexOf(t);this.applicationFormItem.applicationTypes.splice(e,1)}else this.applicationFormItem.applicationTypes.push(t)}},{key:"addOption",value:function(t){this.options[t].push(["",""])}},{key:"removeOption",value:function(t,e){this.options[e]=this.options[e].filter(function(e){return!(e[0]===t[0]&&e[1]===t[1])})}},{key:"updateOption",value:function(t){var e="";if(this.options&&this.options[t]){var i,n=_createForOfIteratorHelper(this.options[t]);try{for(n.s();!(i=n.n()).done;){var r=i.value;""!==r[0]&&""!==r[1]&&(e=""===e?r[0]+"#"+r[1]:e+"|"+r[0]+"#"+r[1])}}catch(o){n.e(o)}finally{n.f()}}this.applicationFormItem.i18n[t].options=e}},{key:"updateOptions",value:function(){var t,e=_createForOfIteratorHelper(this.languages);try{for(e.s();!(t=e.n()).done;){var i=t.value;this.updateOption(i)}}catch(n){e.e(n)}finally{e.f()}}},{key:"copy",value:function(t,e){e.applicationTypes=t.applicationTypes,e.federationAttribute=t.federationAttribute,e.forDelete=t.forDelete;var i,n=_createForOfIteratorHelper(this.languages);try{for(n.s();!(i=n.n()).done;){var r=i.value;e.i18n[r].errorMessage=t.i18n[r].errorMessage,e.i18n[r].help=t.i18n[r].help,e.i18n[r].label=t.i18n[r].label,e.i18n[r].options=t.i18n[r].options}}catch(o){n.e(o)}finally{n.f()}e.id=t.id,e.ordnum=t.ordnum,e.perunDestinationAttribute=t.perunDestinationAttribute,e.perunSourceAttribute=t.perunSourceAttribute,e.regex=t.regex,e.required=t.required,e.shortname=t.shortname,e.type=t.type,e.updatable=t.updatable,e.disabled=t.disabled,e.hidden=t.hidden,e.disabledDependencyItemId=t.disabledDependencyItemId,e.hiddenDependencyItemId=t.hiddenDependencyItemId}},{key:"sortOptionsAZ",value:function(t){this.options[t]=this.options[t].sort(function(t,e){return t[1]>e[1]?1:t[1]e[1]?-1:t[1]-1}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.Y36(n.so),c.Y36(n.WI),c.Y36(r.H8),c.Y36(u.sK),c.Y36(s.d6))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-edit-application-form-item-dialog"]],decls:14,vars:16,consts:[[1,"h-100","d-flex","flex-column"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto","mt-auto",3,"click"],["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,"label","description"],[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"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["mat-icon-button","","color","warn",3,"matTooltip","click"]],template:function(t,e){1&t&&(c.TgZ(0,"div"),c.TgZ(1,"div",0),c.TgZ(2,"h1",1),c._uU(3),c.ALo(4,"translate"),c.qZA(),c.YNc(5,x,1,0,"mat-spinner",2),c.YNc(6,X,39,54,"div",3),c.TgZ(7,"div",4),c.TgZ(8,"button",5),c.NdJ("click",function(){return e.cancel()}),c._uU(9),c.ALo(10,"translate"),c.qZA(),c.TgZ(11,"button",6),c.NdJ("click",function(){return e.submit()}),c._uU(12),c.ALo(13,"translate"),c.qZA(),c.qZA(),c.qZA(),c.qZA()),2&t&&(c.Gre("",e.theme," h-100"),c.xp6(3),c.AsE(" ",c.lcZ(4,10,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.TITLE")," : ",e.applicationFormItem.shortname," "),c.xp6(2),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading),c.xp6(3),c.hij(" ",c.lcZ(10,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CANCEL_BUTTON")," "),c.xp6(2),c.Q6J("disabled",e.loading),c.xp6(1),c.hij(" ",c.lcZ(13,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON")," "))},directives:[n.uh,l.O5,n.H8,h.lW,d.$g,n.xY,f.SP,f.uX,g,m.KE,v.Nt,y.Fj,y.JJ,y.On,_.oG,b.gD,l.sg,w.$x,A.ey,k.Y,C.IC,T.gM,E.Hw],pipes:[u.X$,S.c,I,R,l.gd],styles:[""]}),t}()},79592:function(t,e,i){"use strict";i.d(e,{H:function(){return P}});var n=i(65249),r=i(84608),o=i(68416),a=i(67033),s=i(84140),c=i(6527),u=i(61511),l=i(31572),h=i(48160),d=i(15980),f=i(67806),p=i(43691),g=i(36922),m=i(22196);function v(t,e){1&t&&l._UZ(0,"mat-spinner",6)}function y(t,e){1&t&&(l.TgZ(0,"th",17),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_ID")," "))}function _(t,e){if(1&t&&(l.TgZ(0,"td",18),l._uU(1),l.qZA()),2&t){var i=e.$implicit;l.xp6(1),l.Oqu(i.user.id)}}function b(t,e){1&t&&(l.TgZ(0,"th",17),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_NAME")," "))}function w(t,e){if(1&t&&(l.TgZ(0,"td",18),l._uU(1),l.ALo(2,"userFullName"),l.qZA()),2&t){var i=e.$implicit;l.xp6(1),l.Oqu(l.lcZ(2,1,i.user))}}function A(t,e){1&t&&(l.TgZ(0,"th",17),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_EXPIRATION")," "))}function k(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",20),l.NdJ("click",function(){l.CHM(i);var t=l.oxw().$implicit;return l.oxw(2).changeExpiration(t)}),l.TgZ(1,"mat-icon"),l._uU(2," today "),l.qZA(),l.qZA()}}function C(t,e){if(1&t&&(l.TgZ(0,"td",18),l.TgZ(1,"span"),l._uU(2),l.qZA(),l.YNc(3,k,3,0,"button",19),l.qZA()),2&t){var i=e.$implicit,n=l.oxw(2);l.xp6(2),l.Oqu(n.parseDate(i.validityTo)),l.xp6(1),l.Q6J("ngIf",n.isExpirationAuthorized(i))}}function T(t,e){1&t&&l._UZ(0,"th",17)}function E(t,e){1&t&&(l.TgZ(0,"mat-icon",25),l._uU(1,"clear"),l.qZA())}function S(t,e){1&t&&(l.TgZ(0,"mat-icon"),l._uU(1,"settings_backup_restore"),l.qZA())}function I(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"td",18),l.TgZ(1,"div",21),l.ALo(2,"translate"),l.TgZ(3,"button",22),l.NdJ("click",function(){var t=l.CHM(i).$implicit;return l.oxw(2).markSponsor(t)}),l.YNc(4,E,2,0,"mat-icon",23),l.YNc(5,S,2,0,"mat-icon",24),l.qZA(),l.qZA(),l.qZA()}if(2&t){var n=e.$implicit,r=l.oxw(2);l.xp6(1),l.s9C("matTooltip",l.lcZ(2,6,"DIALOGS.EDIT_MEMBER_SPONSORS.REMOVE_SPONSOR_DISABLED")),l.Q6J("matTooltipPosition","above")("matTooltipDisabled",r.isRemoveAuthorized(n)),l.xp6(2),l.Q6J("disabled",!r.isRemoveAuthorized(n)),l.xp6(1),l.Q6J("ngIf",!r.sponsorsToRemove.has(n.user.id)),l.xp6(1),l.Q6J("ngIf",r.sponsorsToRemove.has(n.user.id))}}function R(t,e){1&t&&l._UZ(0,"tr",26)}function x(t,e){if(1&t&&l._UZ(0,"tr",27),2&t){var i=e.$implicit,n=l.oxw(2);l.ekj("make-red",n.sponsorsToRemove.has(i.user.id))}}function O(t,e){if(1&t&&(l.TgZ(0,"div",7),l.TgZ(1,"table",8),l.ynx(2,9),l.YNc(3,y,3,3,"th",10),l.YNc(4,_,2,1,"td",11),l.BQk(),l.ynx(5,12),l.YNc(6,b,3,3,"th",10),l.YNc(7,w,3,3,"td",11),l.BQk(),l.ynx(8,13),l.YNc(9,A,3,3,"th",10),l.YNc(10,C,4,2,"td",11),l.BQk(),l.ynx(11,14),l.YNc(12,T,1,0,"th",10),l.YNc(13,I,6,8,"td",11),l.BQk(),l.YNc(14,R,1,0,"tr",15),l.YNc(15,x,1,2,"tr",16),l.qZA(),l.qZA()),2&t){var i=l.oxw();l.xp6(1),l.Q6J("dataSource",i.dataSource),l.xp6(13),l.Q6J("matHeaderRowDef",i.displayedColumns),l.xp6(1),l.Q6J("matRowDefColumns",i.displayedColumns)}}var P=function(){var t=function(){function t(e,i,n,r,o,a,s,c){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.memberService=n,this.userService=r,this.notificator=o,this.authResolver=a,this.translate=s,this.dialog=c,this.displayedColumns=["id","name","expiration","remove"],this.loading=!1,this.expirationChanged=!1,this.sponsorsToRemove=new Set}return _createClass(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.sponsors=this.data.sponsors,this.dataSource=new a.by(this.data.sponsors),this.vo={beanName:"Vo",id:this.data.member.voId}}},{key:"markSponsor",value:function(t){this.sponsorsToRemove.has(t.user.id)?this.sponsorsToRemove.delete(t.user.id):this.sponsorsToRemove.add(t.user.id)}},{key:"removeSponsors",value:function(t){var e=this;if(0===t.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_MEMBER_SPONSORS.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);var i=t.pop();this.memberService.removeSponsor(this.data.member.id,i).subscribe(function(){e.removeSponsors(t)},function(){return e.loading=!1})}},{key:"onSubmit",value:function(){this.loading=!0;var t=Array.from(this.sponsorsToRemove);this.removeSponsors(t)}},{key:"onCancel",value:function(){this.dialogRef.close(this.expirationChanged)}},{key:"isRemoveAuthorized",value:function(t){return this.authResolver.isAuthorized("sponsored-removeSponsor_Member_User_policy",[this.data.member])&&this.authResolver.isAuthorized("sponsor-removeSponsor_Member_User_policy",[t.user])}},{key:"isExpirationAuthorized",value:function(t){return this.authResolver.isAuthorized("updateSponsorshipValidity_Member_User_LocalDate",[t.user,this.vo])}},{key:"parseDate",value:function(t){return null===t?"Never expire":(0,u.p6)(t,"d.M.y","en")}},{key:"changeExpiration",value:function(t){var e=this,i=(0,s.kZ)();i.width="400px",i.data={memberId:this.data.member.id,sponsor:t},this.dialog.open(c.hd,i).afterClosed().subscribe(function(t){t&&(e.loading=!0,e.expirationChanged=!0,e.userService.getSponsorsForMember(e.data.member.id,[]).subscribe(function(t){e.sponsors=t,e.dataSource=new a.by(e.sponsors),e.loading=!1}))})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Y36(r.so),l.Y36(r.WI),l.Y36(n.uq),l.Y36(n.Fv),l.Y36(o.V6),l.Y36(o.x4),l.Y36(h.sK),l.Y36(r.uw))},t.\u0275cmp=l.Xpm({type:t,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"],["mat-flat-button","","color","warn",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"],["mat-header-row","","class","font-weight-bolder",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,"matTooltip","matTooltipPosition","matTooltipDisabled"],["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(t,e){1&t&&(l.TgZ(0,"h1",0),l._uU(1),l.ALo(2,"translate"),l.qZA(),l.TgZ(3,"div"),l.YNc(4,v,1,0,"mat-spinner",1),l.YNc(5,O,16,3,"div",2),l.TgZ(6,"div",3),l.TgZ(7,"button",4),l.NdJ("click",function(){return e.onCancel()}),l._uU(8),l.ALo(9,"translate"),l.qZA(),l.TgZ(10,"button",5),l.NdJ("click",function(){return e.onSubmit()}),l._uU(11),l.ALo(12,"translate"),l.qZA(),l.qZA(),l.qZA()),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,9,"DIALOGS.EDIT_MEMBER_SPONSORS.TITLE")),l.xp6(2),l.Tol(e.theme),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(3),l.hij(" ",l.lcZ(9,11,"DIALOGS.EDIT_MEMBER_SPONSORS.CANCEL")," "),l.xp6(2),l.Q6J("disabled",e.loading||0===e.sponsorsToRemove.size),l.xp6(1),l.hij(" ",l.lcZ(12,13,"DIALOGS.EDIT_MEMBER_SPONSORS.SUBMIT")," "))},directives:[r.uh,u.O5,r.H8,d.lW,f.$g,r.xY,a.BZ,a.w1,a.fO,a.Dz,a.as,a.nj,a.ge,a.ev,p.Hw,g.gM,a.XQ,a.Gk],pipes:[h.X$,m.d],styles:[".make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.btn-delete[_ngcontent-%COMP%]:disabled .icn-delete[_ngcontent-%COMP%]{color:grey}"]}),t}()},88690:function(t,e,i){"use strict";i.d(e,{R:function(){return k}});var n=i(84608),r=i(16073),o=i(65249),a=i(68416),s=i(31572),c=i(48160),u=i(61511),l=i(15980),h=i(67806),d=i(66283),f=i(80340),p=i(4786),g=i(71522);function m(t,e){1&t&&s._UZ(0,"mat-spinner",6)}function v(t,e){1&t&&(s.TgZ(0,"div",14),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_VO")," "))}function y(t,e){1&t&&(s.TgZ(0,"div",14),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_GROUP")," "))}function _(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.INVITE_MEMBER.NAME_ERROR")))}function b(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.INVITE_MEMBER.EMAIL_ERROR")))}function w(t,e){if(1&t&&(s.TgZ(0,"mat-option",15),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"uppercase"),s.qZA()),2&t){var i=e.$implicit;s.s9C("value",i),s.xp6(1),s.Oqu(s.lcZ(2,2,s.lcZ(3,4,"SHARED_LIB.LANGUAGES."+i)))}}function A(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"div",7),s.YNc(1,v,3,3,"div",8),s.YNc(2,y,3,3,"div",8),s.TgZ(3,"mat-form-field",9),s._UZ(4,"input",10),s.ALo(5,"translate"),s.YNc(6,_,3,3,"mat-error",11),s.qZA(),s.TgZ(7,"mat-form-field",9),s._UZ(8,"textarea",10),s.ALo(9,"translate"),s.YNc(10,b,3,3,"mat-error",11),s.qZA(),s.TgZ(11,"mat-form-field",9),s.TgZ(12,"mat-label"),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.TgZ(15,"mat-select",12),s.NdJ("valueChange",function(t){return s.CHM(i),s.oxw().currentLanguage=t}),s.YNc(16,w,4,6,"mat-option",13),s.qZA(),s.qZA(),s.qZA()}if(2&t){var n=s.oxw();s.xp6(1),s.Q6J("ngIf",!n.data.groupId),s.xp6(1),s.Q6J("ngIf",n.data.groupId),s.xp6(2),s.s9C("placeholder",s.lcZ(5,11,"DIALOGS.INVITE_MEMBER.NAME")),s.Q6J("formControl",n.name),s.xp6(2),s.Q6J("ngIf",n.name.invalid),s.xp6(2),s.s9C("placeholder",s.lcZ(9,13,"DIALOGS.INVITE_MEMBER.EMAIL")),s.Q6J("formControl",n.emailForm),s.xp6(2),s.Q6J("ngIf",n.emailForm.invalid),s.xp6(3),s.Oqu(s.lcZ(14,15,"DIALOGS.INVITE_MEMBER.LANGUAGE")),s.xp6(2),s.Q6J("value",n.currentLanguage),s.xp6(1),s.Q6J("ngForOf",n.languages)}}var k=function(){var t=function(){function t(e,i,n,o,a,s){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.registrarManager=n,this.notificator=o,this.translate=a,this.store=s,this.emailForm=new r.NI("",[r.kI.required,r.kI.email]),this.languages=["en"],this.currentLanguage="en",this.name=new r.NI("",r.kI.required),this.loading=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.languages=this.store.get("supported_languages"),this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;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(function(){t.translate.get("DIALOGS.INVITE_MEMBER.SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})):(this.loading=!0,this.registrarManager.sendInvitationForGroup(this.emailForm.value,this.currentLanguage,this.data.voId,this.data.groupId).subscribe(function(){t.translate.get("DIALOGS.INVITE_MEMBER.SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(n.so),s.Y36(n.WI),s.Y36(o.tk),s.Y36(a.V6),s.Y36(c.sK),s.Y36(a.d6))},t.\u0275cmp=s.Xpm({type:t,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"],["mat-flat-button","","color","accent",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(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,m,1,0,"mat-spinner",1),s.YNc(5,A,17,17,"div",2),s.TgZ(6,"div",3),s.TgZ(7,"button",4),s.NdJ("click",function(){return e.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return e.onSubmit()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.Oqu(s.lcZ(3,9,"DIALOGS.INVITE_MEMBER.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,11,"DIALOGS.INVITE_MEMBER.CANCEL")," "),s.xp6(2),s.Q6J("disabled",e.emailForm.invalid||e.name.invalid||e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,13,"DIALOGS.INVITE_MEMBER.INVITE")," "))},directives:[n.uh,u.O5,n.H8,l.lW,h.$g,n.xY,d.KE,f.Nt,r.Fj,r.Q7,r.JJ,r.oH,d.hX,p.gD,u.sg,d.TO,g.ey],pipes:[c.X$,u.gd],styles:[""]}),t}()},57820:function(t,e,i){"use strict";i.d(e,{c:function(){return I}});var n=i(84608),r=i(16073),o=i(56238),a=i(79996),s=i(17),c=i(68416),u=i(65249),l=i(31572),h=i(48160),d=i(54810),f=i(61511),p=i(15980),g=i(36922),m=i(39571),v=i(66283),y=i(80340),_=i(40084),b=i(71522),w=i(67806);function A(t,e){1&t&&(l.TgZ(0,"mat-radio-button",12),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"DIALOGS.MOVE_GROUP.NO_GROUP")," "))}function k(t,e){1&t&&(l.TgZ(0,"mat-radio-button",13),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"DIALOGS.MOVE_GROUP.TO_GROUP")," "))}function C(t,e){1&t&&(l.TgZ(0,"app-alert",14),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"DIALOGS.MOVE_GROUP.CANNOT_MOVE")," "))}function T(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"mat-option",20),l.NdJ("click",function(){var t=l.CHM(i).$implicit;return l.oxw(2).selectedGroup=t}),l.TgZ(1,"span"),l._uU(2),l.qZA(),l.qZA()}if(2&t){var n=e.$implicit;l.Q6J("value",n),l.xp6(2),l.Oqu(n.name)}}function E(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"mat-form-field",15),l.TgZ(1,"input",16),l.NdJ("change",function(){return l.CHM(i),l.oxw().selectedGroup=null}),l.ALo(2,"translate"),l.qZA(),l.TgZ(3,"mat-autocomplete",17,18),l.YNc(5,T,3,2,"mat-option",19),l.ALo(6,"async"),l.qZA(),l.qZA()}if(2&t){var n=l.MAs(4),r=l.oxw();l.Q6J("@openClose","toGroup"===r.moveOption?"open":"closed"),l.xp6(1),l.s9C("placeholder",l.lcZ(2,6,"DIALOGS.MOVE_GROUP.GROUP_SELECT")),l.Q6J("matAutocomplete",n)("formControl",r.otherGroupsCtrl),l.xp6(2),l.Q6J("displayWith",r.displayFn),l.xp6(2),l.Q6J("ngForOf",l.lcZ(6,8,r.filteredGroups))}}function S(t,e){1&t&&l._UZ(0,"mat-spinner",21)}var I=function(){var t=function(){function t(e,i,n,o,a,s,c){var u=this;_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.groupService=n,this.notificator=o,this.translate=a,this.apiRequest=s,this.authResolver=c,this.toRootOptionDisabled=!1,this.toGroupOptionDisabled=!1,this.otherGroups=[],this.otherGroupsCtrl=new r.NI(null,[r.kI.required]),this.loading=!1,this.selectedGroup=null,this.translate.get("DIALOGS.MOVE_GROUP.SUCCESS").subscribe(function(t){return u.successMessage=t}),this.translate.get("DIALOGS.MOVE_GROUP.ERROR").subscribe(function(t){return u.errorMessage=t})}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.groupService.getAllGroups(this.data.group.voId).subscribe(function(e){t.otherGroups=e.filter(function(e){return e.id!==t.data.group.id&&"members"!==e.name&&t.canMove(e)}),0===t.otherGroups.length&&(t.toGroupOptionDisabled=!0),null!==t.data.group.parentGroupId&&t.authResolver.isAuthorized("destination_null-moveGroup_Group_Group_policy",[t.data.group])||(t.toRootOptionDisabled=!0,t.moveOption="toGroup"),t.filteredGroups=t.otherGroupsCtrl.valueChanges.pipe((0,o.O)(""),(0,a.U)(function(e){return e?t._filterGroups(e):t.otherGroups.slice()})),t.loading=!1},function(){return t.loading=!1})}},{key:"displayFn",value:function(t){return t?t.name:t}},{key:"_filterGroups",value:function(t){if("object"==typeof t)return[];var e=t.toLowerCase();return t?this.otherGroups.filter(function(t){return t.name.toLowerCase().indexOf(e)>-1}):this.otherGroups}},{key:"canMove",value:function(t){return this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[t,this.data.group])&&this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[this.data.group,t])}},{key:"close",value:function(){this.dialogRef.close()}},{key:"confirm",value:function(){var t=this;this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.groupService.moveGroupWithDestinationGroupMovingGroup(this.data.group.id,this.otherGroupsCtrl.value?this.otherGroupsCtrl.value.id:void 0).subscribe(function(){t.notificator.showSuccess(t.successMessage),t.dialogRef.close(!0)},function(e){t.notificator.showRPCError(e,t.errorMessage),t.dialogRef.close(!1)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Y36(n.so),l.Y36(n.WI),l.Y36(u.ff),l.Y36(c.V6),l.Y36(h.sK),l.Y36(c.F5),l.Y36(c.x4))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-move-group-dialog"]],decls:23,vars:28,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"ngModel","ngModelChange"],["color","primary","value","toRoot","class","move-options",4,"ngIf"],["value","toGroup","color","primary",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,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["color","primary","value","toRoot",1,"move-options"],["value","toGroup","color","primary"],["alert_type","warn"],[1,"w-100","mt-2"],["matInput","","required","",3,"placeholder","matAutocomplete","formControl","change"],[3,"displayWith"],["groupSelectAutocomplete","matAutocomplete"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"div",1),l.TgZ(5,"p"),l._uU(6),l.ALo(7,"translate"),l.qZA(),l.TgZ(8,"mat-radio-group",2),l.NdJ("ngModelChange",function(t){return e.moveOption=t}),l.YNc(9,A,3,3,"mat-radio-button",3),l.YNc(10,k,3,3,"mat-radio-button",4),l.qZA(),l.YNc(11,C,3,3,"app-alert",5),l.YNc(12,E,7,10,"mat-form-field",6),l.qZA(),l.YNc(13,S,1,0,"mat-spinner",7),l.TgZ(14,"div",8),l.TgZ(15,"button",9),l.NdJ("click",function(){return e.close()}),l._uU(16),l.ALo(17,"translate"),l.qZA(),l.TgZ(18,"span",10),l.ALo(19,"translate"),l.TgZ(20,"button",11),l.NdJ("click",function(){return e.confirm()}),l._uU(21),l.ALo(22,"translate"),l.qZA(),l.qZA(),l.qZA(),l.qZA()),2&t&&(l.Tol(e.data.theme),l.xp6(2),l.AsE("",l.lcZ(3,18,"DIALOGS.MOVE_GROUP.TITLE"),"",e.data.group.name,""),l.xp6(4),l.hij(" ",l.lcZ(7,20,"DIALOGS.MOVE_GROUP.INFO")," "),l.xp6(2),l.Q6J("ngModel",e.moveOption),l.xp6(1),l.Q6J("ngIf",!e.toRootOptionDisabled),l.xp6(1),l.Q6J("ngIf",!e.toGroupOptionDisabled),l.xp6(1),l.Q6J("ngIf",e.toRootOptionDisabled&&e.toGroupOptionDisabled),l.xp6(1),l.Q6J("ngIf",!e.toGroupOptionDisabled),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(3),l.hij(" ",l.lcZ(17,22,"DIALOGS.MOVE_GROUP.CANCEL")," "),l.xp6(2),l.s9C("matTooltip",l.lcZ(19,24,"DIALOGS.MOVE_GROUP.DISABLED_HINT")),l.Q6J("matTooltipPosition","above")("matTooltipDisabled",null!==e.selectedGroup||"toRoot"===e.moveOption),l.xp6(2),l.Q6J("disabled",(e.otherGroupsCtrl.invalid||null===e.selectedGroup)&&"toRoot"!==e.moveOption||e.loading),l.xp6(1),l.hij(" ",l.lcZ(22,26,"DIALOGS.MOVE_GROUP.CONFIRM")," "))},directives:[n.uh,n.xY,d.VQ,r.JJ,r.On,f.O5,n.H8,p.lW,g.gM,d.U0,m.w,v.KE,y.Nt,_.ZL,r.Fj,r.Q7,r.oH,_.XC,f.sg,b.ey,w.$g],pipes:[h.X$,f.Ov],styles:[".move-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"],data:{animation:[s.BQ]}}),t}()},95121:function(t,e,i){"use strict";i.d(e,{m:function(){return _}});var n=i(84608),r=i(65249),o=i(68416),a=i(31572),s=i(48160),c=i(61511),u=i(15980),l=i(67806),h=i(66283),d=i(4786),f=i(71522);function p(t,e){1&t&&a._UZ(0,"mat-spinner",7)}function g(t,e){if(1&t&&(a.TgZ(0,"mat-option",13),a._uU(1),a.qZA()),2&t){var i=e.$implicit;a.Q6J("value",i),a.xp6(1),a.hij(" ",i.friendlyNameParameter," ")}}function m(t,e){if(1&t&&(a.TgZ(0,"mat-option",13),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"uppercase"),a.qZA()),2&t){var i=e.$implicit;a.Q6J("value",i),a.xp6(1),a.hij(" ",a.lcZ(2,2,a.lcZ(3,4,"SHARED_LIB.LANGUAGES."+i))," ")}}function v(t,e){if(1&t&&(a.TgZ(0,"mat-option",13),a._uU(1),a.qZA()),2&t){var i=e.$implicit;a.Q6J("value",i),a.xp6(1),a.hij(" ",i," ")}}function y(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"div",8),a.TgZ(1,"mat-form-field"),a.TgZ(2,"mat-label"),a._uU(3),a.ALo(4,"translate"),a.qZA(),a.TgZ(5,"mat-select",9),a.NdJ("valueChange",function(t){return a.CHM(i),a.oxw().selectedLogin=t}),a.YNc(6,g,2,2,"mat-option",10),a.qZA(),a.qZA(),a.TgZ(7,"mat-form-field"),a.TgZ(8,"mat-label"),a._uU(9),a.ALo(10,"translate"),a.qZA(),a.TgZ(11,"mat-select",9),a.NdJ("valueChange",function(t){return a.CHM(i),a.oxw().selectedLang=t}),a.YNc(12,m,4,6,"mat-option",10),a.qZA(),a.qZA(),a.TgZ(13,"mat-form-field"),a.TgZ(14,"mat-label"),a._uU(15),a.ALo(16,"translate"),a.qZA(),a.TgZ(17,"mat-select",9),a.NdJ("valueChange",function(t){return a.CHM(i),a.oxw().selectedMail=t}),a.YNc(18,v,2,2,"mat-option",10),a.qZA(),a.qZA(),a.TgZ(19,"div",11),a.TgZ(20,"p",12),a._uU(21),a.ALo(22,"translate"),a.qZA(),a.TgZ(23,"p"),a._uU(24),a.qZA(),a.qZA(),a.qZA()}if(2&t){var n=a.oxw();a.xp6(3),a.Oqu(a.lcZ(4,11,"DIALOGS.PASSWORD_RESET_REQUEST.NAMESPACE")),a.xp6(2),a.Q6J("value",n.selectedLogin),a.xp6(1),a.Q6J("ngForOf",n.logins),a.xp6(3),a.Oqu(a.lcZ(10,13,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),a.xp6(2),a.Q6J("value",n.selectedLang),a.xp6(1),a.Q6J("ngForOf",n.languages),a.xp6(3),a.Oqu(a.lcZ(16,15,"DIALOGS.PASSWORD_RESET_REQUEST.EMAIL")),a.xp6(2),a.Q6J("value",n.selectedMail),a.xp6(1),a.Q6J("ngForOf",n.mails),a.xp6(3),a.Oqu(a.lcZ(22,17,"DIALOGS.PASSWORD_RESET_REQUEST.LOGIN")),a.xp6(3),a.Oqu(n.selectedLogin.value)}}var _=function(){var t=function(){function t(e,i,n,r,o,a,s){var c=this;_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.membersManagerService=n,this.attributesManagerService=r,this.store=o,this.translate=a,this.notificator=s,this.languages=this.store.get("supported_languages"),this.selectedLang="en",this.pwdMails=new Map,this.logins=[],this.selectedMail="user:preferredMail",this.mails=[],a.get("DIALOGS.PASSWORD_RESET_REQUEST.SUCCESS").subscribe(function(t){return c.successMessage=t})}return _createClass(t,[{key:"ngOnInit",value:function(){this.getMailAttributes(),this.logins=this.data.logins,this.selectedLogin=this.logins[0]}},{key:"getMailAttributes",value:function(){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"}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var t=this;this.loading=!0;var e=this.selectedLogin.friendlyNameParameter,i=window.location.href.split("/"),n=i[0]+"//"+i[2];this.membersManagerService.sendPasswordResetLinkEmail(this.data.memberId,e,this.pwdMails.get(this.selectedMail),this.selectedLang,n).subscribe(function(){t.notificator.showSuccess(t.successMessage),t.loading=!1,t.dialogRef.close()},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(n.so),a.Y36(n.WI),a.Y36(r.uq),a.Y36(r.H8),a.Y36(o.d6),a.Y36(s.sK),a.Y36(o.V6))},t.\u0275cmp=a.Xpm({type:t,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(t,e){1&t&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.YNc(4,p,1,0,"mat-spinner",2),a.qZA(),a.YNc(5,y,25,19,"div",3),a.TgZ(6,"div",4),a.TgZ(7,"button",5),a.NdJ("click",function(){return e.onCancel()}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"button",6),a.NdJ("click",function(){return e.onSubmit()}),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,6,"DIALOGS.PASSWORD_RESET_REQUEST.TITLE")),a.xp6(3),a.Q6J("ngIf",e.loading),a.xp6(1),a.Q6J("ngIf",!e.loading),a.xp6(3),a.hij(" ",a.lcZ(9,8,"DIALOGS.PASSWORD_RESET_REQUEST.CANCEL")," "),a.xp6(2),a.Q6J("disabled",e.loading),a.xp6(1),a.hij(" ",a.lcZ(12,10,"DIALOGS.PASSWORD_RESET_REQUEST.SEND")," "))},directives:[n.uh,c.O5,n.H8,u.lW,l.$g,n.xY,h.KE,h.hX,d.gD,c.sg,f.ey],pipes:[s.X$,c.gd],styles:[".column-size[_ngcontent-%COMP%]{width:8rem}"]}),t}()},4374:function(t,e,i){"use strict";i.d(e,{X:function(){return A}});var n=i(84608),r=i(67033),o=i(68416),a=i(65249),s=i(31572),c=i(48160),u=i(61511),l=i(67806),h=i(15980),d=i(22196);function f(t,e){1&t&&s._UZ(0,"th",13)}function p(t,e){if(1&t&&(s.TgZ(0,"td",14),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(i.id)}}function g(t,e){1&t&&s._UZ(0,"th",13)}function m(t,e){if(1&t&&(s.TgZ(0,"td",14),s._uU(1),s.ALo(2,"userFullName"),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(s.lcZ(2,1,i.user))}}function v(t,e){1&t&&s._UZ(0,"tr",15)}function y(t,e){1&t&&s._UZ(0,"tr",16)}function _(t,e){if(1&t&&(s.TgZ(0,"div",4),s.TgZ(1,"p"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"div",5),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"table",6),s.ynx(8,7),s.YNc(9,f,1,0,"th",8),s.YNc(10,p,2,1,"td",9),s.BQk(),s.ynx(11,10),s.YNc(12,g,1,0,"th",8),s.YNc(13,m,3,3,"td",9),s.BQk(),s.YNc(14,v,1,0,"tr",11),s.YNc(15,y,1,0,"tr",12),s.qZA(),s.qZA()),2&t){var i=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,5,i.data.groupId?"DIALOGS.REMOVE_MEMBERS.DESCRIPTION_GROUP":"DIALOGS.REMOVE_MEMBERS.DESCRIPTION")," "),s.xp6(3),s.hij(" ",s.lcZ(6,7,"DIALOGS.REMOVE_MEMBERS.ASK")," "),s.xp6(2),s.Q6J("dataSource",i.dataSource),s.xp6(7),s.Q6J("matHeaderRowDef",i.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",i.displayedColumns)}}function b(t,e){1&t&&s._UZ(0,"mat-spinner",17)}function w(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"div",18),s.TgZ(1,"button",19),s.NdJ("click",function(){return s.CHM(i),s.oxw().onCancel()}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"button",20),s.NdJ("click",function(){return s.CHM(i),s.oxw().onSubmit()}),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA()}if(2&t){var n=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,2,"DIALOGS.REMOVE_MEMBERS.CANCEL")," "),s.xp6(3),s.hij(" ",s.lcZ(6,4,n.data.groupId?"DIALOGS.REMOVE_MEMBERS.REMOVE_GROUP":"DIALOGS.REMOVE_MEMBERS.REMOVE")," ")}}var A=function(){var t=function(){function t(e,i,n,r,o,a){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.membersService=n,this.groupService=r,this.notificator=o,this.translate=a,this.displayedColumns=["id","name"]}return _createClass(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new r.by(this.data.members)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.data.groupId?this.groupService.removeMembers(this.data.groupId,this.data.members.map(function(t){return t.id})).subscribe(function(){return t.onSuccess()},function(){return t.onError()}):this.membersService.deleteMembers(this.data.members.map(function(t){return t.id})).subscribe(function(){return t.onSuccess()},function(){return t.onError()})}},{key:"onSuccess",value:function(){var t=this.translate.instant(this.data.groupId?"DIALOGS.REMOVE_MEMBERS.SUCCESS_GROUP":"DIALOGS.REMOVE_MEMBERS.SUCCESS");this.notificator.showSuccess(t),this.dialogRef.close(!0),this.loading=!1}},{key:"onError",value:function(){this.loading=!1}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(n.so),s.Y36(n.WI),s.Y36(a.uq),s.Y36(a.ff),s.Y36(o.V6),s.Y36(c.sK))},t.\u0275cmp=s.Xpm({type:t,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"],["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",""],[1,"mr-auto","ml-auto"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn","data-cy","remove-members-dialog",1,"ml-2",3,"click"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,_,16,9,"div",1),s.YNc(5,b,1,0,"mat-spinner",2),s.YNc(6,w,7,6,"div",3),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.Oqu(s.lcZ(3,7,"DIALOGS.REMOVE_MEMBERS.TITLE")),s.xp6(2),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[n.uh,u.O5,n.xY,r.BZ,r.w1,r.fO,r.Dz,r.as,r.nj,r.ge,r.ev,r.XQ,r.Gk,l.$g,n.H8,h.lW],pipes:[c.X$,d.d],styles:[""]}),t}()},95909:function(t,e,i){"use strict";i.d(e,{f:function(){return l}});var n=i(84608),r=i(67033),o=i(68416),a=i(65249),s=i(31572),c=i(48160),u=i(20247),l=function(){var t=function(){function t(e,i,n,r,o){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translate=r,this.resourcesManager=o,this.displayedColumns=["name"],this.loading=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new r.by(this.data.resources)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onDelete",value:function(){var t=this;this.loading=!0,0===this.data.resources.length?this.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(function(e){t.loading=!1,t.notificator.showSuccess(e),t.dialogRef.close(!0)}):this.resourcesManager.deleteResource(this.data.resources[0].id).subscribe(function(){t.data.resources.shift(),t.onDelete()},function(){t.dialogRef.close(!0)})}},{key:"onSubmit",value:function(t){t.deleted?this.onDelete():this.onCancel()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(n.so),s.Y36(n.WI),s.Y36(o.V6),s.Y36(c.sK),s.Y36(a.xk))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-remove-resource-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","disableForce","loading","deleted"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"app-delete-entity-dialog",0),s.NdJ("deleted",function(t){return e.onSubmit(t)}),s.qZA(),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(1),s.Q6J("entityNames",e.dataSource)("entityType","resources")("disableForce",!0)("loading",e.loading))},directives:[u.e],styles:[""]}),t}()},99608:function(t,e,i){"use strict";i.d(e,{o:function(){return l}});var n=i(84608),r=i(67033),o=i(68416),a=i(65249),s=i(31572),c=i(48160),u=i(20247),l=function(){var t=function(){function t(e,i,n,r,o){var a=this;_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.voService=r,this.translate=o,this.force=!1,this.displayedColumns=["name"],this.relations=[],o.get("DIALOGS.REMOVE_VO.SUCCESS").subscribe(function(t){return a.successMessage=t})}return _createClass(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new r.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"))}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onDelete",value:function(){var t=this;this.loading=!0,this.voService.deleteVo(this.data.vos[0].id,this.force).subscribe(function(){t.notificator.showSuccess(t.successMessage),t.loading=!1,t.dialogRef.close(!0)},function(){return t.loading=!1})}},{key:"onSubmit",value:function(t){this.force=t.force,t.deleted?this.onDelete():this.onCancel()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(n.so),s.Y36(n.WI),s.Y36(o.V6),s.Y36(a.YF),s.Y36(c.sK))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-remove-vo-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","relations","loading","deleted"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"app-delete-entity-dialog",0),s.NdJ("deleted",function(t){return e.onSubmit(t)}),s.qZA(),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(1),s.Q6J("entityNames",e.dataSource)("entityType","organizations")("relations",e.relations)("loading",e.loading))},directives:[u.e],styles:[".foo[_ngcontent-%COMP%]{margin-top:20px}"]}),t}()},24555:function(t,e,i){"use strict";i.d(e,{E:function(){return y}});var n=i(84608),r=i(65249),o=i(31572),a=i(61511),s=i(15980),c=i(67806),u=i(66283),l=i(80340),h=i(16073),d=i(4786),f=i(71522),p=i(48160);function g(t,e){1&t&&o._UZ(0,"mat-spinner",6)}function m(t,e){if(1&t){var i=o.EpF();o.TgZ(0,"div"),o.TgZ(1,"mat-form-field",9),o.TgZ(2,"mat-select",10),o.NdJ("valueChange",function(t){return o.CHM(i),o.oxw(2).embeddedState=t}),o.ALo(3,"translate"),o.TgZ(4,"mat-option",11),o._uU(5),o.ALo(6,"translate"),o.qZA(),o.TgZ(7,"mat-option",12),o._uU(8),o.ALo(9,"translate"),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&t){var n=o.oxw(2);o.xp6(2),o.MGl("placeholder","",o.lcZ(3,4,"DIALOGS.UPDATE_APPLICATION_FORM.EMBEDDED"),":"),o.Q6J("value",n.embeddedState),o.xp6(3),o.Oqu(o.lcZ(6,6,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),o.xp6(3),o.Oqu(o.lcZ(9,8,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL"))}}function v(t,e){if(1&t){var i=o.EpF();o.TgZ(0,"div",7),o.TgZ(1,"mat-form-field"),o.TgZ(2,"input",8),o.NdJ("ngModelChange",function(t){return o.CHM(i),o.oxw().moduleName=t}),o.ALo(3,"translate"),o.qZA(),o.qZA(),o.TgZ(4,"mat-form-field",9),o.TgZ(5,"mat-select",10),o.NdJ("valueChange",function(t){return o.CHM(i),o.oxw().initialState=t}),o.ALo(6,"translate"),o.TgZ(7,"mat-option",11),o._uU(8),o.ALo(9,"translate"),o.qZA(),o.TgZ(10,"mat-option",12),o._uU(11),o.ALo(12,"translate"),o.qZA(),o.qZA(),o.qZA(),o.TgZ(13,"mat-form-field",9),o.TgZ(14,"mat-select",10),o.NdJ("valueChange",function(t){return o.CHM(i),o.oxw().extensionState=t}),o.ALo(15,"translate"),o.TgZ(16,"mat-option",11),o._uU(17),o.ALo(18,"translate"),o.qZA(),o.TgZ(19,"mat-option",12),o._uU(20),o.ALo(21,"translate"),o.qZA(),o.qZA(),o.qZA(),o.YNc(22,m,10,10,"div",13),o.qZA()}if(2&t){var n=o.oxw();o.xp6(2),o.s9C("placeholder",o.lcZ(3,11,"DIALOGS.UPDATE_APPLICATION_FORM.MODULE_NAME")),o.Q6J("ngModel",n.moduleName),o.xp6(3),o.MGl("placeholder","",o.lcZ(6,13,"DIALOGS.UPDATE_APPLICATION_FORM.INITIAL"),":"),o.Q6J("value",n.initialState),o.xp6(3),o.Oqu(o.lcZ(9,15,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),o.xp6(3),o.Oqu(o.lcZ(12,17,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),o.xp6(3),o.MGl("placeholder","",o.lcZ(15,19,"DIALOGS.UPDATE_APPLICATION_FORM.EXTENSION"),":"),o.Q6J("value",n.extensionState),o.xp6(3),o.Oqu(o.lcZ(18,21,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),o.xp6(3),o.Oqu(o.lcZ(21,23,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),o.xp6(2),o.Q6J("ngIf","group"===n.entity&&n.autoRegistrationEnabled)}}var y=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.registrarManager=n,this.loading=!1}return _createClass(t,[{key:"ngOnInit",value:function(){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}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"submit",value:function(){var t=this;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(function(e){t.dialogRef.close(e)},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.so),o.Y36(n.WI),o.Y36(r.tk))},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-update-application-form-dialog"]],decls:13,vars:15,consts:[["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","accent",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(t,e){1&t&&(o.TgZ(0,"div"),o.TgZ(1,"h1",0),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.YNc(4,g,1,0,"mat-spinner",1),o.YNc(5,v,23,25,"div",2),o.TgZ(6,"div",3),o.TgZ(7,"button",4),o.NdJ("click",function(){return e.onCancel()}),o._uU(8),o.ALo(9,"translate"),o.qZA(),o.TgZ(10,"button",5),o.NdJ("click",function(){return e.submit()}),o._uU(11),o.ALo(12,"translate"),o.qZA(),o.qZA(),o.qZA()),2&t&&(o.Tol(e.theme),o.xp6(2),o.Oqu(o.lcZ(3,9,"DIALOGS.UPDATE_APPLICATION_FORM.TITLE")),o.xp6(2),o.Q6J("ngIf",e.loading),o.xp6(1),o.Q6J("ngIf",!e.loading),o.xp6(3),o.hij(" ",o.lcZ(9,11,"DIALOGS.UPDATE_APPLICATION_FORM.CANCEL_BUTTON")," "),o.xp6(2),o.Q6J("disabled",e.loading),o.xp6(1),o.hij(" ",o.lcZ(12,13,"DIALOGS.UPDATE_APPLICATION_FORM.SUBMIT_BUTTON")," "))},directives:[n.uh,a.O5,n.H8,s.lW,c.$g,n.xY,u.KE,l.Nt,h.Fj,h.JJ,h.On,d.gD,f.ey],pipes:[p.X$],styles:[""]}),t}()},65050:function(t,e,i){"use strict";i.d(e,{c:function(){return o}});var n=i(31572),r=i(48160),o=function(){var t=function(){function t(e){_classCallCheck(this,t),this.translateService=e,this.returnData=""}return _createClass(t,[{key:"transform",value:function(t){var e=this;switch(t){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.HEADER").subscribe(function(t){e.returnData=t});break;case"FROM_FEDERATION_HIDDEN":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.FROM_FEDERATION_HIDDEN").subscribe(function(t){e.returnData=t});break;case"HTML_COMMENT":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.HTML_COMMENT").subscribe(function(t){e.returnData=t});break;case"TEXTFIELD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TEXTFIELD").subscribe(function(t){e.returnData=t});break;case"FROM_FEDERATION_SHOW":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.FROM_FEDERATION_SHOW").subscribe(function(t){e.returnData=t});break;case"VALIDATED_EMAIL":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.VALIDATED_EMAIL").subscribe(function(t){e.returnData=t});break;case"USERNAME":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.USERNAME").subscribe(function(t){e.returnData=t});break;case"PASSWORD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.PASSWORD").subscribe(function(t){e.returnData=t});break;case"SELECTIONBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.SELECTIONBOX").subscribe(function(t){e.returnData=t});break;case"TEXTAREA":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TEXTAREA").subscribe(function(t){e.returnData=t});break;case"COMBOBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.COMBOBOX").subscribe(function(t){e.returnData=t});break;case"CHECKBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.CHECKBOX").subscribe(function(t){e.returnData=t});break;case"SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.SUBMIT_BUTTON").subscribe(function(t){e.returnData=t});break;case"RADIO":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.RADIO").subscribe(function(t){e.returnData=t});break;case"TIMEZONE":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TIMEZONE").subscribe(function(t){e.returnData=t});break;case"AUTO_SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.AUTO_SUBMIT_BUTTON").subscribe(function(t){e.returnData=t});break;case"EMBEDDED_GROUP_APPLICATION":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.EMBEDDED_GROUP_APPLICATION").subscribe(function(t){e.returnData=t});break;default:return t}return this.returnData}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(r.sK,16))},t.\u0275pipe=n.Yjl({name:"applicationFormItemType",type:t,pure:!0}),t}()},84650:function(t,e,i){"use strict";i.d(e,{h:function(){return o}});var n=i(31572),r=i(48160),o=function(){var t=function(){function t(e){_classCallCheck(this,t),this.translate=e,this.returnData=""}return _createClass(t,[{key:"transform",value:function(t){var e=this;switch(t){case"APPROVED":this.translate.get("VO_DETAIL.APPLICATION.STATE.APPROVED").subscribe(function(t){e.returnData='done'.concat(t)});break;case"REJECTED":this.translate.get("VO_DETAIL.APPLICATION.STATE.REJECTED").subscribe(function(t){e.returnData='clear'.concat(t)});break;case"NEW":this.translate.get("VO_DETAIL.APPLICATION.STATE.NEW").subscribe(function(t){e.returnData='contact_mail '.concat(t)});break;case"VERIFIED":this.translate.get("VO_DETAIL.APPLICATION.STATE.VERIFIED").subscribe(function(t){e.returnData='gavel'.concat(t)});break;default:this.returnData=t}return this.returnData}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(r.sK,16))},t.\u0275pipe=n.Yjl({name:"applicationState",type:t,pure:!1}),t}()},99373:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var n=i(31572),r=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){return t.substring(40)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"extSourceType",type:t,pure:!0}),t}()},28780:function(t,e,i){"use strict";i.d(e,{m:function(){return St}});var n=i(61511),r=i(57629),o=i(40084),a=i(15980),s=i(29236),c=i(71522),u=i(15812),l=i(84608),h=i(27679),d=i(45001),f=i(66283),p=i(43691),g=i(80340),m=i(73005),v=i(45994),y=i(67806),_=i(54810),b=i(4786),w=i(25122),A=i(27521),k=i(71403),C=i(58623),T=i(67033),E=i(55109),S=i(36922),I=i(91010),R=i(27439),x=i(41050),O=i(10033),P=i(8055),D=i(70663),M=i(16073),L=i(24081),N=i(17),z=i(68416),Z=i(31572),B=i(84534),F=i(48160),H=["collapse"],U=function(){return{color:"linkTextColor"}};function q(t,e){1&t&&(Z.TgZ(0,"mat-icon",14),Z._uU(1,"keyboard_arrow_right"),Z.qZA()),2&t&&Z.Q6J("ngStyle",Z.DdM(1,U))}function G(t,e){1&t&&(Z.TgZ(0,"mat-icon",14),Z._uU(1,"keyboard_arrow_down"),Z.qZA()),2&t&&Z.Q6J("ngStyle",Z.DdM(1,U))}function j(t,e){if(1&t&&(Z.TgZ(0,"span",12),Z.YNc(1,q,2,2,"mat-icon",13),Z.YNc(2,G,2,2,"mat-icon",13),Z.qZA()),2&t){var i=Z.oxw().$implicit,n=Z.oxw(2);Z.xp6(1),Z.Q6J("ngIf",!n.isActive(n.currentUrl,i.showChildrenRegex)),Z.xp6(1),Z.Q6J("ngIf",n.isActive(n.currentUrl,i.showChildrenRegex))}}var Y=function(t,e){return{color:t,"border-color":e}};function K(t,e){if(1&t){var i=Z.EpF();Z.TgZ(0,"a",17),Z.NdJ("click",function(){var t=Z.CHM(i).$implicit;return Z.oxw(4).navigate(t.url)}),Z._uU(1),Z.ALo(2,"translate"),Z.qZA()}if(2&t){var n=e.$implicit,r=Z.oxw(4);Z.ekj("activated",r.isActive(r.currentUrl,n.activatedRegex)&&void 0===r.item.activatedClass),Z.Q6J("perunWebAppsMiddleClickRouterLink",n.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",r.isActive(r.currentUrl,n.activatedRegex)&&void 0!==r.item.activatedClass?r.item.activatedClass:"")("ngStyle",Z.WLB(9,Y,r.linkTextColor,r.linkTextColor)),Z.xp6(1),Z.hij(" ",Z.lcZ(2,7,n.label)," ")}}function V(t,e){if(1&t&&(Z.TgZ(0,"div",15),Z.YNc(1,K,3,12,"a",16),Z.qZA()),2&t){var i=Z.oxw().$implicit;Z.Q6J("@rollInOut",void 0),Z.xp6(1),Z.Q6J("ngForOf",null==i?null:i.children)}}function J(t,e){if(1&t){var i=Z.EpF();Z.TgZ(0,"div"),Z.TgZ(1,"a",9),Z.NdJ("click",function(){var t=Z.CHM(i).$implicit;return Z.oxw(2).navigate(t.url)}),Z._uU(2),Z.ALo(3,"translate"),Z.YNc(4,j,3,2,"span",10),Z.qZA(),Z.YNc(5,V,2,2,"div",11),Z.qZA()}if(2&t){var n=e.$implicit,r=Z.oxw(2);Z.xp6(1),Z.ekj("activated",r.isActive(r.currentUrl,n.activatedRegex)&&void 0===r.item.activatedClass),Z.Q6J("perunWebAppsMiddleClickRouterLink",n.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",r.isActive(r.currentUrl,n.activatedRegex)&&void 0!==r.item.activatedClass?r.item.activatedClass:"")("ngStyle",Z.WLB(11,Y,r.linkTextColor,r.linkTextColor)),Z.xp6(1),Z.hij(" ",Z.lcZ(3,9,n.label)," "),Z.xp6(2),Z.Q6J("ngIf",n.children),Z.xp6(1),Z.Q6J("ngIf",r.isActive(r.currentUrl,n.showChildrenRegex))}}function Q(t,e){if(1&t&&(Z.TgZ(0,"div"),Z.YNc(1,J,6,14,"div",8),Z.qZA()),2&t){var i=Z.oxw();Z.Q6J("@rollInOut",void 0),Z.xp6(1),Z.Q6J("ngForOf",i.item.links)}}var W=function(t,e){return{background:t,"border-top":e}},X=function(t){return{color:t}},$=function(){return{color:"currentColor"}},tt=function(t){return{background:t}},et=function(){var t=function(){function t(e,i){var n=this;_classCallCheck(this,t),this.router=e,this.store=i,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=e.url,e.events.subscribe(function(t){t instanceof r.m2&&(n.currentUrl=t.url)})}return _createClass(t,[{key:"toggle",value:function(){void 0!==this.item.baseLink&&this.navigate(this.item.baseLink)}},{key:"isActive",value:function(t,e){return new RegExp(e).test(t)}},{key:"navigate",value:function(t){var e=this;"over"===this.sideNav.mode?this.sideNav.close().then(function(){return e.router.navigate(t)}):this.router.navigate(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Z.Y36(r.F0),Z.Y36(z.d6))},t.\u0275cmp=Z.Xpm({type:t,selectors:[["app-side-menu-item"]],viewQuery:function(t,e){var i;(1&t&&Z.Gf(H,5),2&t)&&(Z.iGM(i=Z.CRH())&&(e.collapseDiv=i.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(t,e){1&t&&(Z.TgZ(0,"div",0),Z.TgZ(1,"div",1),Z.NdJ("click",function(){return e.toggle()}),Z.TgZ(2,"div",2),Z.TgZ(3,"a",3),Z.TgZ(4,"div"),Z._UZ(5,"mat-icon",4),Z.qZA(),Z.TgZ(6,"div",5),Z._uU(7),Z.ALo(8,"translate"),Z.qZA(),Z.qZA(),Z.qZA(),Z.qZA(),Z.TgZ(9,"div"),Z.TgZ(10,"div",6),Z.YNc(11,Q,2,2,"div",7),Z.qZA(),Z.qZA(),Z.qZA()),2&t&&(Z.xp6(1),Z.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",Z.WLB(18,W,e.item.backgroundColorCss,e.index?e.dividerStyle:"none")),Z.xp6(1),Z.Gre("entity-menu-item-link ",e.item.labelClass,""),Z.Q6J("perunWebAppsMiddleClickRouterLink",e.item.baseLink),Z.xp6(1),Z.Q6J("ngStyle",Z.VKq(21,X,e.item.textColorCss)),Z.xp6(2),Z.Q6J("ngStyle",Z.DdM(23,$))("svgIcon",e.item.icon),Z.xp6(2),Z.Oqu(Z.lcZ(8,16,e.item.label)),Z.xp6(2),Z.Q6J("@openClose",e.expanded?"open":"closed"),Z.xp6(1),Z.Gre("side-entity-menu ",e.item.linksClass,""),Z.Q6J("ngStyle",Z.VKq(24,tt,e.linkBgColor)),Z.xp6(1),Z.Q6J("ngIf",e.showLinks))},directives:[c.wG,n.PC,B.YH,p.Hw,n.O5,n.sg,n.mk],pipes:[F.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:[N.BQ,N.Ly]}}),t}(),it=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){if(void 0===t.value)return"";switch(t.type){case"java.lang.String":return t.value;case"java.lang.Integer":return t.value.toString();case"java.util.ArrayList":return this.whenValueIsArray(t.value);case"java.util.LinkedHashMap":return this.whenValueIsMap(t.value);case"java.lang.Boolean":return t.value.toString();default:return t.value}}},{key:"whenValueIsArray",value:function(t){var e="";return t.forEach(function(t){e=e.concat(t+", ")}),e}},{key:"whenValueIsMap",value:function(t){var e="";return t.forEach(function(t,i){e=e.concat(i+": "+t+", ")}),e}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Z.Yjl({name:"anyToString",type:t,pure:!0}),t}(),nt=["collapse"],rt=function(){return{color:"linkTextColor"}};function ot(t,e){1&t&&(Z.TgZ(0,"mat-icon",12),Z._uU(1,"keyboard_arrow_right"),Z.qZA()),2&t&&Z.Q6J("ngStyle",Z.DdM(1,rt))}function at(t,e){1&t&&(Z.TgZ(0,"mat-icon",12),Z._uU(1,"keyboard_arrow_down"),Z.qZA()),2&t&&Z.Q6J("ngStyle",Z.DdM(1,rt))}function st(t,e){if(1&t&&(Z.TgZ(0,"span",10),Z.YNc(1,ot,2,2,"mat-icon",11),Z.YNc(2,at,2,2,"mat-icon",11),Z.qZA()),2&t){var i=Z.oxw().$implicit,n=Z.oxw();Z.xp6(1),Z.Q6J("ngIf",!n.isActive(n.currentUrl,i.showChildrenRegex)),Z.xp6(1),Z.Q6J("ngIf",n.isActive(n.currentUrl,i.showChildrenRegex))}}var ct=function(t,e){return{color:t,"border-color":e}};function ut(t,e){if(1&t){var i=Z.EpF();Z.TgZ(0,"a",14),Z.NdJ("click",function(){var t=Z.CHM(i).$implicit;return Z.oxw(3).navigate(t.url)}),Z._uU(1),Z.ALo(2,"translate"),Z.qZA()}if(2&t){var n=e.$implicit,r=Z.oxw(3);Z.ekj("activated",r.isActive(r.currentUrl,n.activatedRegex)&&void 0===r.item.activatedClass),Z.Q6J("perunWebAppsMiddleClickRouterLink",n.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",Z.WLB(9,ct,r.linkTextColor,r.linkTextColor))("ngClass",r.isActive(r.currentUrl,n.activatedRegex)&&void 0!==r.item.activatedClass?r.item.activatedClass:""),Z.xp6(1),Z.hij(" ",Z.lcZ(2,7,n.label)," ")}}function lt(t,e){if(1&t&&(Z.TgZ(0,"div"),Z.YNc(1,ut,3,12,"a",13),Z.qZA()),2&t){var i=Z.oxw().$implicit;Z.Q6J("@rollInOut",void 0),Z.xp6(1),Z.Q6J("ngForOf",null==i?null:i.children)}}function ht(t,e){if(1&t){var i=Z.EpF();Z.TgZ(0,"div"),Z.TgZ(1,"a",7),Z.NdJ("click",function(){var t=Z.CHM(i).$implicit;return Z.oxw().navigate(t.url)}),Z._uU(2),Z.ALo(3,"translate"),Z.YNc(4,st,3,2,"span",8),Z.qZA(),Z.YNc(5,lt,2,2,"div",9),Z.qZA()}if(2&t){var n=e.$implicit,r=Z.oxw();Z.xp6(1),Z.ekj("activated",r.isActive(r.currentUrl,n.activatedRegex)&&void 0===r.item.activatedClass),Z.Q6J("perunWebAppsMiddleClickRouterLink",n.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",Z.WLB(11,ct,r.linkTextColor,r.linkTextColor))("ngClass",r.isActive(r.currentUrl,n.activatedRegex)&&void 0!==r.item.activatedClass?r.item.activatedClass:""),Z.xp6(1),Z.hij(" ",Z.lcZ(3,9,n.label)," "),Z.xp6(2),Z.Q6J("ngIf",n.children),Z.xp6(1),Z.Q6J("ngIf",r.isActive(r.currentUrl,n.showChildrenRegex))}}var dt=function(t){return{background:t}},ft=function(t){return{color:t}},pt=function(){return{color:"currentColor"}},gt=function(){var t=function(){function t(e,i){var n=this;_classCallCheck(this,t),this.router=e,this.store=i,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=e.url,e.events.subscribe(function(t){t instanceof r.m2&&(n.currentUrl=t.url)})}return _createClass(t,[{key:"ngOnInit",value:function(){this.expanded=this.showOpen}},{key:"ngOnChanges",value:function(){this.expanded=this.showOpen}},{key:"toggle",value:function(){void 0!==this.item.baseLink?this.navigate(this.item.baseLink):this.expanded=!this.expanded}},{key:"isActive",value:function(t,e){return new RegExp(e).test(t)}},{key:"getBgClass",value:function(){return this.item.baseColorClass?this.isActive(this.currentUrl,this.item.baseColorClassRegex)?this.item.colorClass:this.item.baseColorClass:this.item.colorClass}},{key:"navigate",value:function(t){var e=this;"over"===this.sideNav.mode?this.sideNav.close().then(function(){return e.router.navigate(t)}):this.router.navigate(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Z.Y36(r.F0),Z.Y36(z.d6))},t.\u0275cmp=Z.Xpm({type:t,selectors:[["app-side-menu-root-item"]],viewQuery:function(t,e){var i;(1&t&&Z.Gf(nt,5),2&t)&&(Z.iGM(i=Z.CRH())&&(e.collapseDiv=i.first))},inputs:{item:"item",index:"index",showOpen:"showOpen",id:"id",sideNav:"sideNav"},features:[Z.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","ngStyle","ngClass","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"],["matRipple","","class","pl-5 clickable",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngStyle","activated","ngClass","click",4,"ngFor","ngForOf"],["matRipple","",1,"pl-5","clickable",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngStyle","ngClass","click"]],template:function(t,e){1&t&&(Z.TgZ(0,"div",0),Z.TgZ(1,"div",1),Z.NdJ("click",function(){return e.toggle()}),Z.TgZ(2,"div"),Z.TgZ(3,"a",2),Z.TgZ(4,"div"),Z._UZ(5,"mat-icon",3),Z.qZA(),Z.TgZ(6,"div",4),Z._uU(7),Z.ALo(8,"translate"),Z.qZA(),Z.qZA(),Z.qZA(),Z.qZA(),Z.TgZ(9,"div"),Z.TgZ(10,"div",5),Z.YNc(11,ht,6,14,"div",6),Z.qZA(),Z.qZA(),Z.qZA()),2&t&&(Z.s9C("id",e.id),Z.xp6(1),Z.ekj("root-header-activated",e.isActive(e.currentUrl,e.item.baseColorClassRegex)),Z.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",Z.VKq(21,dt,e.item.backgroundColorCss))("perunWebAppsMiddleClickRouterLink",e.item.baseLink),Z.xp6(1),Z.Gre("entity-menu-item-link ",e.item.labelClass,""),Z.xp6(1),Z.Q6J("ngStyle",Z.VKq(23,ft,e.item.textColorCss)),Z.xp6(2),Z.Q6J("ngStyle",Z.DdM(25,pt))("svgIcon",e.item.icon),Z.xp6(2),Z.Oqu(Z.lcZ(8,19,e.item.label)),Z.xp6(2),Z.Q6J("@openClose",e.expanded?"open":"closed"),Z.xp6(1),Z.Gre("side-entity-menu ",e.item.linksClass,""),Z.Q6J("ngStyle",Z.VKq(26,dt,e.linkBgColor)),Z.xp6(1),Z.Q6J("ngForOf",e.item.links))},directives:[c.wG,n.PC,B.YH,p.Hw,n.sg,n.mk,n.O5],pipes:[F.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:[N.BQ,N.Ly]}}),t}(),mt=i(88975),vt=i(4253),yt=i(22727),_t=i(99373),bt=i(41939),wt=i(7423),At=i(22280),kt=i(30146),Ct=i(85250),Tt=i(84140),Et=i(18820),St=function(){var t=function t(e){_classCallCheck(this,t),this.translate=e,e.addLangs(["en","cs"])};return t.\u0275fac=function(e){return new(e||t)(Z.LFG(F.sK))},t.\u0275mod=Z.oAB({type:t}),t.\u0275inj=Z.cJS({providers:[it,_t.A],imports:[[n.ez,r.Bz,o.Bb,g.c,f.lN,M.UX,M.u5,p.Ps,w.SJ,d.To,F.aw.forChild({}),a.ot,C.JX,T.p0,E.Nh,I.dp,a.ot,s.p9,l.Is,b.LD,k.ZX,y.Cq,v.Cv,S.AV,A.rP,u.FA,c.XK,_.Fk,h.t,c.si,m.TU,R.QW,D.T5,mt._t,R.QW,O.Hi,P.Tx,vt.Cl,yt.r,x.g,bt.ez,wt.r,At.d4,kt.Co,Ct.ie,Tt.Je,Et.E3],kt.Co,o.Bb,g.c,r.Bz,M.UX,M.u5,p.Ps,w.SJ,F.aw,C.JX,T.p0,E.Nh,I.dp,a.ot,s.p9,l.Is,b.LD,k.ZX,y.Cq,v.Cv,S.AV,A.rP,u.FA,c.XK,_.Fk,h.t,R.QW,D.T5,c.si,m.TU,mt._t,O.Hi,O.Hi,d.To,P.Tx,vt.Cl,vt.Cl,vt.Cl,wt.r]}),t}();Z.B6R(L.V,[gt,n.sg,et,n.O5],[])},75585:function(t,e,i){"use strict";i.d(e,{V:function(){return l}});var n=i(68416),r=i(65249),o=i(84140),a=i(22280),s=i(67004),c=i(31572),u=i(48160),l=function(){var t=function(){function t(e,i,n,r,o,a,s){_classCallCheck(this,t),this.translate=e,this.authResolver=i,this.store=n,this.apiRequest=r,this.attributesManager=o,this.notificator=a,this.guiAuthResolver=s,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")}return _createClass(t,[{key:"getFacilitiesManagementItem",value:function(){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}}},{key:"getAccessManagementItem",value:function(){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}}},{key:"getHomeItem",value:function(){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:[]}}},{key:"getUserItem",value:function(){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"}]}}},{key:"getAdminItem",value:function(){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$"}]}}},{key:"parseFacility",value:function(t){return{label:t.name,baseLink:["/facilities/".concat(t.id)],backgroundColorCss:this.facilityBgColor,textColorCss:this.facilityTextColor,links:this.getFacilityLinks(t),colorClass:"facility-item",icon:"perun-facility-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}},{key:"parseResource",value:function(t,e){var i=(new a.r5).transform(t,e);return{label:t.name,baseLink:[i],backgroundColorCss:this.resourceBgColor,textColorCss:this.resourceTextColor,links:this.getResourceLinks(i,e?"/organizations":"/facilities",t),colorClass:"resource-item",icon:"perun-resource-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}},{key:"getResourceLinks",value:function(t,e,i){var n=[{label:"MENU_ITEMS.RESOURCE.OVERVIEW",url:[t],activatedRegex:"".concat(e,"/\\d+/resources/\\d+$")}];return this.authResolver.isAuthorized("getAssignedGroups_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",url:[t,"groups"],activatedRegex:"".concat(e,"/\\d+/resources/\\d+/groups$")}),this.authResolver.isAuthorized("getAssignedServices_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",url:[t,"services"],activatedRegex:"".concat(e,"/\\d+/resources/\\d+/services$")}),this.authResolver.isAuthorized("getAssignedMembers_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",url:[t,"members"],activatedRegex:"".concat(e,"/\\d+/resources/\\d+/members$")}),this.authResolver.isAuthorized("getAllResourcesTagsForResource_Resource_policy",[i])&&n.push({label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",url:[t,"tags"],activatedRegex:"".concat(e,"/\\d+/resources/\\d+/tags$")}),n.push({label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",url:[t,"attributes"],activatedRegex:"".concat(e,"/\\d+/resources/\\d+/attributes$")}),this.authResolver.isManagerPagePrivileged(i)&&n.push({label:"MENU_ITEMS.RESOURCE.SETTINGS",url:[t,"settings"],activatedRegex:"".concat(e,"/\\d+/resources/\\d+/settings$"),children:[{label:"MENU_ITEMS.RESOURCE.MANAGERS",url:[t,"settings","managers"],activatedRegex:"".concat(e,"/\\d+/resources/\\d+/settings/managers$")}],showChildrenRegex:"".concat(e,"/\\d+/resources/\\d+/settings")}),n}},{key:"parseGroup",value:function(t){return{label:t.name,baseLink:["/organizations/".concat(t.voId,"/groups/").concat(t.id)],backgroundColorCss:this.groupBgColor,textColorCss:this.groupTextColor,links:this.getGroupLinks(t),colorClass:"group-item",icon:"perun-group",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}},{key:"parseVo",value:function(t){return{label:t.name,baseLink:["/organizations/".concat(t.id)],links:this.getVoLinks(t),colorClass:"vo-item",icon:"perun-vo",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.voBgColor,textColorCss:this.voTextColor}}},{key:"parseMember",value:function(t,e){return{label:(0,o.bD)(t.user),baseLink:["/organizations/".concat(t.voId,"/members/").concat(t.id)],backgroundColorCss:this.memberBgColor,textColorCss:this.memberTextColor,links:this.getMemberLinks(t,e),colorClass:"member-item",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}},{key:"parseUser",value:function(t,e,i){return{label:(0,o.bD)(t),baseLink:[e],backgroundColorCss:this.userBgColor,textColorCss:this.userTextColor,links:this.getUserLinks(t,e,i),colorClass:"user-bg-color",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}},{key:"parseServiceIdentity",value:function(t){return{label:(0,o.bD)(t),baseLink:["/myProfile/service-identities/".concat(t.id)],backgroundColorCss:this.userBgColor,textColorCss:this.userTextColor,links:[{label:"MENU_ITEMS.USER.OVERVIEW",url:["/myProfile/service-identities/".concat(t.id)],activatedRegex:"/myProfile/service-identities/\\d+$"},{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:["/myProfile/service-identities/".concat(t.id,"/associated-users")],activatedRegex:"/myProfile/service-identities/\\d+/associated-users"}],colorClass:"user-bg-color",icon:"perun-service-identity",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}},{key:"parseService",value:function(t){return{label:t.name,baseLink:["/admin/services/".concat(t.id)],backgroundColorCss:this.serviceBgColor,textColorCss:this.serviceTextColor,links:[{label:"MENU_ITEMS.SERVICE.OVERVIEW",url:["/admin/services/".concat(t.id)],activatedRegex:"/admin/services/\\d+$"},{label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",url:["/admin/services/".concat(t.id,"/required-attributes")],activatedRegex:"/admin/services/\\d+/required-attributes"},{label:"MENU_ITEMS.SERVICE.DESTINATIONS",url:["/admin/services/".concat(t.id,"/destinations")],activatedRegex:"/admin/services/\\d+/destinations"}],colorClass:"service-item",icon:"perun-service",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}},{key:"getVoLinks",value:function(t){var e=[];if(e.push({label:"MENU_ITEMS.VO.OVERVIEW",url:["/organizations/".concat(t.id)],activatedRegex:"/organizations/\\d+$"}),this.authResolver.isAuthorized("getCompleteRichMembers_Vo_List_policy",[t])&&e.push({label:"MENU_ITEMS.VO.MEMBERS",url:["/organizations/".concat(t.id,"/members")],activatedRegex:"/organizations/\\d+/members$"}),this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[t])&&e.push({label:"MENU_ITEMS.VO.GROUPS",url:["/organizations/".concat(t.id,"/groups")],activatedRegex:"/organizations/\\d+/groups$"}),this.authResolver.isAuthorized("getRichResources_Vo_policy",[t])){var i=[{label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",url:["/organizations/".concat(t.id,"/resources/preview")],activatedRegex:"/organizations/\\d+/resources/preview$"}];this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[t])&&i.push({label:"MENU_ITEMS.VO.RESOURCE_TAGS",url:["/organizations/".concat(t.id,"/resources/tags")],activatedRegex:"/organizations/\\d+/resources/tags$"}),this.authResolver.isAuthorized("getResourcesState_Vo_policy",[t])&&i.push({label:"MENU_ITEMS.VO.RESOURCE_STATES",url:["/organizations/".concat(t.id,"/resources/states")],activatedRegex:"/organizations/\\d+/resources/states$"}),e.push({label:"MENU_ITEMS.VO.RESOURCES",url:["/organizations/".concat(t.id,"/resources")],activatedRegex:"/organizations/\\d+/resources$",children:i,showChildrenRegex:"/organizations/\\d+/resources"})}this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[t])&&e.push({label:"MENU_ITEMS.VO.APPLICATIONS",url:["/organizations/".concat(t.id,"/applications")],activatedRegex:"/organizations/\\d+/applications"}),this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[t])&&e.push({label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",url:["/organizations/".concat(t.id,"/sponsoredMembers")],activatedRegex:"/organizations/\\d+/sponsoredMembers$"}),this.authResolver.isAuthorized("createSpecificMember_Vo_Candidate_List_SpecificUserType_List_policy",[t])&&e.push({label:"MENU_ITEMS.VO.SERVICE_MEMBERS",url:["/organizations/".concat(t.id,"/serviceAccounts")],activatedRegex:"/organizations/\\d+/serviceAccounts$"}),e.push({label:"MENU_ITEMS.VO.ATTRIBUTES",url:["/organizations/".concat(t.id,"/attributes")],activatedRegex:"/organizations/\\d+/attributes$"}),this.guiAuthResolver.isAuthorized("getMembersCount_Vo_Status_policy",[t])&&this.guiAuthResolver.isAuthorized("getMembersCount_Vo_policy",[t])&&e.push({label:"MENU_ITEMS.VO.STATISTICS",url:["/organizations/".concat(t.id,"/statistics")],activatedRegex:"/organizations/\\d+/statistics"});var n=this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[t]),r=this.authResolver.isManagerPagePrivileged(t),o=this.authResolver.isThisVoAdminOrObserver(t.id);if(r||n||o){var a=[];o&&a.push({label:"MENU_ITEMS.VO.EXPIRATION",url:["/organizations/".concat(t.id,"/settings/expiration")],activatedRegex:"/organizations/\\d+/settings/expiration$"}),r&&a.push({label:"MENU_ITEMS.VO.MANAGERS",url:["/organizations/".concat(t.id,"/settings/managers")],activatedRegex:"/organizations/\\d+/settings/managers$"}),o&&a.push({label:"MENU_ITEMS.VO.APPLICATION_FORM",url:["/organizations/".concat(t.id,"/settings/applicationForm")],activatedRegex:"/organizations/\\d+/settings/applicationForm$"}),o&&a.push({label:"MENU_ITEMS.VO.NOTIFICATIONS",url:["/organizations/".concat(t.id,"/settings/notifications")],activatedRegex:"/organizations/\\d+/settings/notifications$"}),n&&a.push({label:"MENU_ITEMS.VO.EXTSOURCES",url:["/organizations/".concat(t.id,"/settings/extsources")],activatedRegex:"/organizations/\\d+/settings/extsources$"}),e.push({label:"MENU_ITEMS.VO.SETTINGS",url:["/organizations/".concat(t.id,"/settings")],activatedRegex:"/organizations/\\d+/settings$",children:a,showChildrenRegex:"/organizations/\\d+/settings"})}return e}},{key:"getUserLinks",value:function(t,e,i){var n=[];return n.push({label:"MENU_ITEMS.USER.OVERVIEW",url:[e],activatedRegex:"".concat(i,"$")}),n.push({label:"MENU_ITEMS.ADMIN.ORGANIZATIONS",url:["".concat(e,"/organizations")],activatedRegex:"".concat(i,"/organizations")}),n.push({label:"MENU_ITEMS.ADMIN.GROUPS",url:["".concat(e,"/groups")],activatedRegex:"".concat(i,"/groups")}),n.push({label:"MENU_ITEMS.USER.ACCOUNTS",url:["".concat(e,"/accounts")],activatedRegex:"".concat(i,"/accounts")}),n.push({label:"MENU_ITEMS.USER.IDENTITIES",url:["".concat(e,"/identities")],activatedRegex:"".concat(i,"/identities")}),n.push({label:"MENU_ITEMS.USER.FACILITIES",url:["".concat(e,"/facilities")],activatedRegex:"".concat(i,"/facilities")}),n.push({label:"MENU_ITEMS.USER.RESOURCES",url:["".concat(e,"/resources")],activatedRegex:"".concat(i,"/resources")}),n.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:["".concat(e,"/attributes")],activatedRegex:"".concat(i,"/attributes")}),n.push({label:"MENU_ITEMS.USER.ROLES",url:["".concat(e,"/roles")],activatedRegex:"^".concat(e,"/roles")}),n.push(t.serviceUser?{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:["".concat(e,"/associated-users")],activatedRegex:"^".concat(e,"/associated-users")}:{label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",url:["".concat(e,"/service-identities")],activatedRegex:"^".concat(e,"/service-identities")}),n}},{key:"getMemberLinks",value:function(t,e){var i=[{label:"MENU_ITEMS.MEMBER.OVERVIEW",url:["/organizations/".concat(t.voId,"/members/").concat(t.id)],activatedRegex:"/organizations/\\d+/members/\\d+$"}];return this.authResolver.isAuthorized("getMemberGroups_Member_policy",[e])&&i.push({label:"MENU_ITEMS.MEMBER.GROUPS",url:["//organizations/".concat(t.voId,"/members/").concat(t.id,"/groups")],activatedRegex:"/organizations/\\d+/members/\\d+/groups"}),this.authResolver.isAuthorized("vo-getApplicationsForMember_Group_Member_policy",[e])&&i.push({label:"MENU_ITEMS.MEMBER.APPLICATIONS",url:["//organizations/".concat(t.voId,"/members/").concat(t.id,"/applications")],activatedRegex:"/organizations/\\d+/members/\\d+/applications"}),this.authResolver.isAuthorized("getAssignedRichResources_Member_policy",[e])&&i.push({label:"MENU_ITEMS.MEMBER.RESOURCES",url:["/organizations/".concat(t.voId,"/members/").concat(t.id,"/resources")],activatedRegex:"/organizations/\\d+/members/\\d+/resources"}),i.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:["/organizations/".concat(t.voId,"/members/").concat(t.id,"/attributes")],activatedRegex:"/organizations/\\d+/members/\\d+/attributes$"}),i}},{key:"getFacilityLinks",value:function(t){var e=[{label:"MENU_ITEMS.FACILITY.OVERVIEW",url:["/facilities/".concat(t.id)],activatedRegex:"/facilities/\\d+$"}];this.authResolver.isAuthorized("getAssignedRichResources_Facility_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.RESOURCES",url:["/facilities/".concat(t.id,"/resources")],activatedRegex:"/facilities/\\d+/resources$"}),this.authResolver.isAuthorized("getAssignedUsers_Facility_Service_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",url:["/facilities/".concat(t.id,"/allowed-users")],activatedRegex:"/facilities/\\d+/allowed-users"}),this.authResolver.isAuthorized("getAllowedGroups_Facility_Vo_Service_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",url:["/facilities/".concat(t.id,"/allowed-groups")],activatedRegex:"/facilities/\\d+/allowed-groups"}),this.authResolver.isAuthorized("getFacilityServicesState_Facility_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",url:["/facilities/".concat(t.id,"/services-status")],activatedRegex:"/facilities/\\d+/services-status"}),this.authResolver.isAuthorized("getAllRichDestinations_Facility_policy",[t])&&e.push({label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",url:["/facilities/".concat(t.id,"/services-destinations")],activatedRegex:"facilities/\\d+/services-destinations"}),this.authResolver.isFacilityAdmin()&&e.push({label:"MENU_ITEMS.FACILITY.HOSTS",url:["/facilities/".concat(t.id,"/hosts")],activatedRegex:"facilities/\\d+/hosts"}),e.push({label:"MENU_ITEMS.FACILITY.ATTRIBUTES",url:["/facilities",t.id,"attributes"],activatedRegex:"/facilities/\\d+/attributes$"});var i=this.authResolver.isAuthorized("getBansForFacility_int_policy",[t]),n=this.authResolver.isAuthorized("getRichAdmins_Facility_List_boolean_boolean_policy",[t]),r=this.authResolver.isAuthorized("getOwners_Facility_policy",[t]),o=this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[t]);if(i||n||r||o){var a=[];r&&a.push({label:"MENU_ITEMS.FACILITY.OWNERS",url:["/facilities",t.id,"settings","owners"],activatedRegex:"/facilities/\\d+/settings/owners$"}),n&&a.push({label:"MENU_ITEMS.FACILITY.MANAGERS",url:["/facilities",t.id,"settings","managers"],activatedRegex:"/facilities/\\d+/settings/managers$"}),o&&a.push({label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",url:["/facilities/".concat(t.id,"/settings/security-teams")],activatedRegex:"facilities/\\d+/settings/security-teams"}),i&&a.push({label:"MENU_ITEMS.FACILITY.BLACKLIST",url:["facilities",t.id,"settings","blacklist"],activatedRegex:"/facilities/\\d+/settings/blacklist"}),e.push({label:"MENU_ITEMS.FACILITY.SETTINGS",url:["/facilities",t.id,"settings"],activatedRegex:"/facilities/\\d+/settings$",children:a,showChildrenRegex:"/facilities/\\d+/settings"})}return e}},{key:"getGroupLinks",value:function(t){var e=this,i=[],n=[];i.push({label:"MENU_ITEMS.GROUP.OVERVIEW",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id)],activatedRegex:"/organizations/\\d+/groups/\\d+$"}),this.authResolver.isAuthorized("getCompleteRichMembers_Group_List_boolean_policy",[t])&&i.push({label:"MENU_ITEMS.GROUP.MEMBERS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/members")],activatedRegex:"/organizations/\\d+/groups/\\d+/members$"}),this.authResolver.isAuthorized("getAllRichSubGroupsWithAttributesByNames_Group_List_policy",[t])&&"members"!==t.name&&i.push({label:"MENU_ITEMS.GROUP.SUBGROUPS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/subgroups")],activatedRegex:"/organizations/\\d+/groups/\\d+/subgroups$"}),this.authResolver.isAuthorized("getAssignedRichResources_Group_policy",[t])&&i.push({label:"MENU_ITEMS.GROUP.RESOURCES",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/resources")],activatedRegex:"/organizations/\\d+/groups/\\d+/resources$"}),this.authResolver.isAuthorized("getApplicationsForGroup_Group_List_policy",[t])&&i.push({label:"MENU_ITEMS.GROUP.APPLICATIONS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/applications")],activatedRegex:"/organizations/\\d+/groups/\\d+/applications$"}),i.push({label:"MENU_ITEMS.GROUP.ATTRIBUTES",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/attributes")],activatedRegex:"/organizations/\\d+/groups/\\d+/attributes$"});var r=this.guiAuthResolver.isAuthorized("getGroupMembersCount_Group_policy",[t]),o=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByVoStatus_Group_policy",[t]),a=this.guiAuthResolver.isAuthorized("getGroupMembersCountsByGroupStatus_Group_policy",[t]);return r&&o&&a&&i.push({label:"MENU_ITEMS.GROUP.STATISTICS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/statistics")],activatedRegex:"/organizations/\\d+/groups/\\d+/statistics"}),this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(t.id,s.r.GROUP_DEF_EXPIRATION_RULES).subscribe(function(){n.push({label:"MENU_ITEMS.GROUP.EXPIRATION",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/settings/expiration")],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/expiration$"})},function(t){"HttpErrorResponse"!==t.name&&e.notificator.showRPCError(t)}),this.authResolver.isManagerPagePrivileged(t)&&n.push({label:"MENU_ITEMS.GROUP.MANAGERS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/settings/managers")],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/managers$"}),this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[t])&&n.push({label:"MENU_ITEMS.GROUP.APPLICATION_FORM",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/settings/applicationForm")],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/applicationForm$"}),this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[t])&&n.push({label:"MENU_ITEMS.GROUP.NOTIFICATIONS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/settings/notifications")],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/notifications$"}),this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[t])&&n.push({label:"MENU_ITEMS.GROUP.RELATIONS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/settings/relations")],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/relations$"}),this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[t])&&n.push({label:"MENU_ITEMS.GROUP.EXTSOURCES",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/settings/extsources")],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/extsources$"}),0!==n.length&&i.push({label:"MENU_ITEMS.GROUP.SETTINGS",url:["/organizations/".concat(t.voId,"/groups/").concat(t.id,"/settings")],activatedRegex:"/organizations/\\d+/groups/\\d+/settings$",children:n,showChildrenRegex:"/organizations/\\d+/groups/\\d+/settings"}),i}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.LFG(u.sK),c.LFG(n.x4),c.LFG(n.d6),c.LFG(n.F5),c.LFG(r.H8),c.LFG(n.V6),c.LFG(n.x4))},t.\u0275prov=c.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}()},24081:function(t,e,i){"use strict";i.d(e,{V:function(){return y}});var n=i(61601),r=i(75585),o=i(68416),a=i(17),s=i(31572),c=i(48958);function u(t,e){if(1&t&&(s.TgZ(0,"div",9),s._UZ(1,"app-side-menu-item",10),s.qZA()),2&t){var i=e.$implicit,n=e.index,r=s.oxw();s.Q6J("@rollInOut",void 0),s.xp6(1),s.Q6J("sideNav",r.sideNav)("item",i)("index",n)}}function l(t,e){if(1&t&&(s.TgZ(0,"div",9),s._UZ(1,"app-side-menu-item",11),s.qZA()),2&t){var i=e.$implicit,n=e.index,r=s.oxw();s.Q6J("@rollInOut",void 0),s.xp6(1),s.Q6J("sideNav",r.sideNav)("item",i)("index",n)("showLinks",n===r.accessItems.length-1)}}function h(t,e){if(1&t&&s._UZ(0,"app-side-menu-root-item",2),2&t){var i=s.oxw();s.Q6J("id","facilities-item-btn")("sideNav",i.sideNav)("item",i.facilityItem)}}function d(t,e){if(1&t&&(s.TgZ(0,"div",9),s._UZ(1,"app-side-menu-item",11),s.qZA()),2&t){var i=e.$implicit,n=e.index,r=s.oxw(2);s.Q6J("@rollInOut",void 0),s.xp6(1),s.Q6J("sideNav",r.sideNav)("item",i)("index",n)("showLinks",n===r.facilityItems.length-1)}}function f(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,d,2,5,"div",3),s.qZA()),2&t){var i=s.oxw();s.xp6(1),s.Q6J("ngForOf",i.facilityItems)}}function p(t,e){if(1&t&&(s.TgZ(0,"div",9),s._UZ(1,"app-side-menu-item",11),s.qZA()),2&t){var i=e.$implicit,n=e.index,r=s.oxw();s.Q6J("@rollInOut",void 0),s.xp6(1),s.Q6J("sideNav",r.sideNav)("item",i)("index",n)("showLinks",n===r.userItems.length-1)}}function g(t,e){if(1&t&&s._UZ(0,"app-side-menu-root-item",7),2&t){var i=s.oxw();s.Q6J("id","admin-item-btn")("sideNav",i.sideNav)("showOpen",i.adminItemOpened)("item",i.adminItem)}}function m(t,e){if(1&t&&(s.TgZ(0,"div",9),s._UZ(1,"app-side-menu-item",11),s.qZA()),2&t){var i=e.$implicit,n=e.index,r=s.oxw(2);s.Q6J("@rollInOut",void 0),s.xp6(1),s.Q6J("sideNav",r.sideNav)("item",i)("index",n)("showLinks",!0)}}function v(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,m,2,5,"div",3),s.qZA()),2&t){var i=s.oxw();s.xp6(1),s.Q6J("ngForOf",i.adminItems)}}var y=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.sideMenuService=e,this.sideMenuItemService=i,this.authResolver=n,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}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.mobileView=window.innerWidth<=n.y.minWidth,this.mobileView?this.sideNav.close():this.sideNav.open(),this.sideMenuService.facilityItemsChange.subscribe(function(e){t.setFacilityItems(e)}),this.sideMenuService.accessItemsChange.subscribe(function(e){t.setAccessItems(e)}),this.sideMenuService.adminItemsChange.subscribe(function(e){t.setAdminItems(e)}),this.sideMenuService.userItemsChange.subscribe(function(e){t.setUserItems(e)}),this.sideMenuService.homeItemsChange.subscribe(function(e){t.setHomeItems(e)}),this.sideMenuService.resetChange.subscribe(function(){t.reset()})}},{key:"reset",value:function(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.adminItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}},{key:"resetExceptHome",value:function(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.adminItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}},{key:"resetExceptFacility",value:function(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.adminItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.userItems,[])}},{key:"resetExceptAccess",value:function(){this.adminItemOpened=!1,this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.adminItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}},{key:"resetExceptAdmin",value:function(){this.userItemOpened=!1,this.setNewItems(this.homeItems,[]),this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.userItems,[])}},{key:"resetExceptUser",value:function(){this.adminItemOpened=!1,this.setNewItems(this.accessItems,[]),this.setNewItems(this.facilityItems,[]),this.setNewItems(this.adminItems,[])}},{key:"setHomeItems",value:function(t){this.resetExceptHome(),this.setNewItems(this.homeItems,t)}},{key:"setFacilityItems",value:function(t){this.resetExceptFacility(),this.setNewItems(this.facilityItems,t)}},{key:"setAccessItems",value:function(t){this.resetExceptAccess(),this.setNewItems(this.accessItems,t)}},{key:"setUserItems",value:function(t){this.userItemOpened=0===t.length,this.resetExceptUser(),this.setNewItems(this.userItems,t)}},{key:"setAdminItems",value:function(t){this.adminItemOpened=0===t.length,this.resetExceptAdmin(),this.setNewItems(this.adminItems,t)}},{key:"setNewItems",value:function(t,e){for(var i=t.length>e.length?t.length:e.length,n=0;nt.length-1)t.push(e[n]);else{if(n>e.length-1){for(var r=t.length,o=0;o0),n.Q6J("cdkDragData",i)}}function mt(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"div",4),n.TgZ(1,"div",5),n.TgZ(2,"div",6),n.TgZ(3,"table",7,8),n.NdJ("cdkDropListDropped",function(t){return n.CHM(i),n.oxw().drop(t)}),n.ynx(5,9),n.YNc(6,C,1,0,"th",10),n.YNc(7,T,4,0,"td",11),n.BQk(),n.ynx(8,12),n.YNc(9,E,3,3,"th",10),n.YNc(10,S,2,1,"td",11),n.BQk(),n.ynx(11,13),n.YNc(12,I,3,3,"th",10),n.YNc(13,R,3,3,"td",11),n.BQk(),n.ynx(14,14),n.YNc(15,x,3,3,"th",15),n.YNc(16,P,2,1,"td",16),n.BQk(),n.ynx(17,17),n.YNc(18,D,3,3,"th",15),n.YNc(19,L,2,1,"td",16),n.BQk(),n.ynx(20,18),n.YNc(21,N,3,3,"th",10),n.YNc(22,it,15,14,"td",11),n.BQk(),n.ynx(23,19),n.YNc(24,nt,1,0,"th",10),n.YNc(25,ot,2,1,"td",11),n.BQk(),n.ynx(26,20),n.YNc(27,at,1,0,"th",10),n.YNc(28,ut,3,2,"td",11),n.BQk(),n.ynx(29,21),n.YNc(30,lt,1,0,"th",10),n.YNc(31,ft,3,2,"td",11),n.BQk(),n.YNc(32,pt,1,0,"tr",22),n.YNc(33,gt,1,7,"tr",23),n.qZA(),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=n.oxw();n.xp6(3),n.Q6J("cdkDropListDisabled",r.dragDisabled)("dataSource",r.dataSource),n.xp6(29),n.Q6J("matHeaderRowDef",r.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",r.displayedColumns)}}function vt(t,e){1&t&&(n.TgZ(0,"app-alert",98),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM"),"\n"))}var yt=function(){var t=function(){function t(e,i,r,o){_classCallCheck(this,t),this.dialog=e,this.notificator=i,this.router=r,this.translate=o,this.applicationFormItems=[],this.displayedColumns=["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"],this.applicationFormItemsChange=new n.vpe,this.itemsChanged=[],this.dataSource=this.applicationFormItems,this.mapForCombobox=new Map,this.dragDisabled=!0}return _createClass(t,[{key:"ngOnInit",value:function(){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")}},{key:"ngOnChanges",value:function(){this.dataSource=this.applicationFormItems,this.refreshApplicationForm&&(this.itemsChanged=[])}},{key:"disabledHiddenDependency",value:function(t,e,i){var n="";if("IF_EMPTY"===e||"IF_PREFILLED"===e){var r=null===i?"":this.applicationFormItems.find(function(t){return t.id===i}).shortname;n="IF_EMPTY"===e?"(".concat(this.ifEmpty," ").concat(r,")"):"(".concat(this.ifPrefilled," ").concat(r,")")}return n}},{key:"disabledTooltip",value:function(t){var e;switch(t.disabled){case"ALWAYS":return this.alwaysDisabled;case"IF_EMPTY":return e=null===t.disabledDependencyItemId?"":this.applicationFormItems.find(function(e){return e.id===t.disabledDependencyItemId}).shortname,"".concat(this.isDisabledIf," ").concat(e," ").concat(this.isEmpty);case"IF_PREFILLED":return e=null===t.disabledDependencyItemId?"":this.applicationFormItems.find(function(e){return e.id===t.disabledDependencyItemId}).shortname,"".concat(this.isDisabledIf," ").concat(e," ").concat(this.isPrefilled)}}},{key:"hiddenTooltip",value:function(t){var e;switch(t.hidden){case"ALWAYS":return this.alwaysHidden;case"IF_EMPTY":return e=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(function(e){return e.id===t.hiddenDependencyItemId}).shortname,"".concat(this.isHiddenIf," ").concat(e," ").concat(this.isEmpty);case"IF_PREFILLED":return e=null===t.hiddenDependencyItemId?"":this.applicationFormItems.find(function(e){return e.id===t.hiddenDependencyItemId}).shortname,"".concat(this.isHiddenIf," ").concat(e," ").concat(this.isPrefilled)}}},{key:"edit",value:function(t){var e=this,i=(0,h.kZ)();i.width="600px",i.height="600px",i.data={voId:this.applicationForm.vo.id,group:this.applicationForm.group,applicationFormItem:t,theme:this.theme,allItems:this.applicationFormItems},this.dialog.open(l._,i).afterClosed().subscribe(function(i){i&&(e.itemsChanged.push(t.id),e.applicationFormItemsChange.emit())})}},{key:"delete",value:function(t){var e=this,i=(0,h.kZ)();i.width="500px",this.dialog.open(c,i).afterClosed().subscribe(function(i){i&&(t.forDelete=!0,0===t.id&&(e.applicationFormItems.splice(e.applicationFormItems.indexOf(t),1),e.table.renderRows()),e.applicationFormItemsChange.emit())})}},{key:"drop",value:function(t){this.dragDisabled=!0;var e=this.applicationFormItems.indexOf(t.item.data);(0,r.bA)(this.applicationFormItems,e,t.currentIndex),this.itemsChanged.push(this.applicationFormItems[t.currentIndex].id),this.applicationFormItemsChange.emit(),this.table.renderRows()}},{key:"getLocalizedOptions",value:function(t){if(t.i18n[this.translate.getDefaultLang()]){var e=t.i18n[this.translate.getDefaultLang()].options;if(null!==e&&""!==e){var i,n=[],r=_createForOfIteratorHelper(e.split("|"));try{for(r.s();!(i=r.n()).done;){var o=i.value;n.push(o.split("#")[1])}}catch(a){r.e(a)}finally{r.f()}return n}}return[]}},{key:"getLocalizedLabel",value:function(t){return t.i18n[this.translate.getDefaultLang()]?t.i18n[this.translate.getDefaultLang()].label:t.shortname}},{key:"restore",value:function(t){t.forDelete=!1}},{key:"openManagingGroups",value:function(){this.router.navigate(["/organizations",this.applicationForm.vo.id,"settings","applicationForm","manageGroups"])}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(o.uw),n.Y36(u.V6),n.Y36(d.F0),n.Y36(s.sK))},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-application-form-list"]],viewQuery:function(t,e){var i;(1&t&&n.Gf(A,5),2&t)&&(n.iGM(i=n.CRH())&&(e.table=i.first))},inputs:{loading:"loading",applicationForm:"applicationForm",applicationFormItems:"applicationFormItems",theme:"theme",displayedColumns:"displayedColumns",refreshApplicationForm:"refreshApplicationForm"},outputs:{applicationFormItemsChange:"applicationFormItemsChange"},features:[n.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"],["class","font-italic disabled",4,"ngIf"],["type","text"],[1,"font-italic","disabled"],["disabled",""],["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"],["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(t,e){1&t&&(n.YNc(0,k,1,0,"mat-spinner",0),n.YNc(1,mt,34,4,"div",1),n.YNc(2,vt,3,3,"app-alert",2)),2&t&&(n.Q6J("ngIf",e.loading),n.xp6(1),n.Q6J("ngIf",0!==e.applicationFormItems.length&&!e.loading),n.xp6(1),n.Q6J("ngIf",0===e.applicationFormItems.length&&!e.loading))},directives:[f.O5,p.$g,g.BZ,r.Wj,g.w1,g.fO,g.Dz,g.as,g.nj,g.ge,g.ev,a.lW,m.Hw,v.gM,y._Y,y.JL,y.F,f.sg,y.YN,y.Kr,y.EJ,y.JJ,y.On,g.XQ,g.Gk,r.Zt,_.w],pipes:[s.X$,b.c,w.R],styles:[".cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%], .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}"]}),t}()},29851:function(t,e,i){"use strict";i.d(e,{w:function(){return tt}});var n=i(65249),r=i(67033),o=i(84140),a=i(68416),s=i(31572),c=i(57629),u=i(82819),l=i(61511),h=i(84534),d=i(39571),f=i(67806),p=i(48160),g=i(22196);function m(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_ID")))}function v(t,e){if(1&t&&(s.TgZ(0,"td",27),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.hij(" ",i.id," ")}}function y(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_VO_ID")," "))}function _(t,e){if(1&t&&(s.TgZ(0,"td",27),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.hij(" ",i.vo.id," ")}}function b(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_VO_NAME")," "))}function w(t,e){if(1&t&&(s.TgZ(0,"td",27),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.hij(" ",i.vo.name," ")}}function A(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_GROUP_ID")," "))}function k(t,e){if(1&t&&(s.TgZ(0,"td",27),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.hij(" ",i.group?i.group.id:""," ")}}function C(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_GROUP_NAME")," "))}function T(t,e){if(1&t&&(s.TgZ(0,"td",27),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.hij(" ",i.group?i.group.name:""," ")}}function E(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_TYPE")," "))}function S(t,e){if(1&t&&(s.TgZ(0,"td",28),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(i.type)}}function I(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_STATE")," "))}function R(t,e){if(1&t&&(s.TgZ(0,"td",28),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(i.state)}}function x(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_EXTSOURCENAME")," "))}function O(t,e){if(1&t&&(s.TgZ(0,"td",28),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(i.extSourceName)}}function P(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_EXTSOURCETYPE")," "))}function D(t,e){if(1&t&&(s.TgZ(0,"td",28),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(i.extSourceType)}}function M(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_USER")," "))}function L(t,e){if(1&t&&(s.TgZ(0,"td",28),s._uU(1),s.ALo(2,"userFullName"),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.hij(" ",i.user?s.lcZ(2,1,i.user):"null"," ")}}function N(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_CREATED_BY")," "))}function z(t,e){if(1&t&&(s.TgZ(0,"td",28),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.hij(" ",i.createdBy.slice(i.createdBy.lastIndexOf("=")+1,i.createdBy.length)," ")}}function Z(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_CREATED_DATE")," "))}function B(t,e){if(1&t&&(s.TgZ(0,"td",28),s._uU(1),s.ALo(2,"date"),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(s.xi3(2,1,i.createdAt,"d.M.y"))}}function F(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_MODIFIED_BY")," "))}function H(t,e){if(1&t&&(s.TgZ(0,"td",28),s._uU(1),s.qZA()),2&t){var i=e.$implicit,n=s.oxw();s.xp6(1),s.Oqu(n.getFriendlyName(i.modifiedBy))}}function U(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_MODIFIED_AT")," "))}function q(t,e){if(1&t&&(s.TgZ(0,"td",28),s._uU(1),s.ALo(2,"date"),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(s.xi3(2,1,i.modifiedAt,"d.M.y"))}}function G(t,e){if(1&t&&(s.TgZ(0,"th",26),s._uU(1),s.qZA()),2&t){var i=s.oxw().$implicit;s.xp6(1),s.Oqu(i)}}function j(t,e){if(1&t&&(s.TgZ(0,"td",28),s._uU(1),s.qZA()),2&t){var i=e.$implicit,n=s.oxw().$implicit;s.xp6(1),s.Oqu(i[n])}}function Y(t,e){1&t&&(s.ynx(0,29),s.YNc(1,G,2,1,"th",4),s.YNc(2,j,2,1,"td",11),s.BQk()),2&t&&s.Q6J("matColumnDef",e.$implicit)}function K(t,e){1&t&&(s.TgZ(0,"th",26),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_FEDINFO")," "))}function V(t,e){if(1&t&&(s.TgZ(0,"td",28),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(i.fedInfo)}}function J(t,e){1&t&&s._UZ(0,"tr",30)}function Q(t,e){if(1&t&&s._UZ(0,"tr",31),2&t){var i=e.$implicit,n=s.oxw();s.ekj("cursor-pointer",!n.disableRouting),s.Q6J("perunWebAppsMiddleClickRouterLink",n.selectApplication(i))("routerLink",n.selectApplication(i))}}function W(t,e){1&t&&(s.TgZ(0,"app-alert",32),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"VO_DETAIL.APPLICATION.NO_APPLICATION_FOUND"),"\n"))}function X(t,e){1&t&&(s.TgZ(0,"app-alert",32),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function $(t,e){1&t&&s._UZ(0,"mat-spinner",33)}var tt=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.router=e,this.authResolver=i,this.registrarManager=n,this.applications=[],this.disableRouting=!1,this.displayedColumns=["id","voId","voName","groupId","groupName","type","state","extSourceName","extSourceType","user","createdBy","createdAt","modifiedBy","modifiedAt","fedInfo"],this.loading=!1,this.table=[],this.addedColumns=new Set,this.pageSizeOptions=o.f7}return _createClass(t,[{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.loading=!0,this.table=[],this.initialize(),this.getApplicationsData(0)}},{key:"getExportDataForColumn",value:function(t,e){var i,n,r,a;switch(e){case"id":return t.id.toString();case"voId":return t.vo.id.toString();case"voName":return t.vo.name;case"groupId":return null!==(n=null===(i=t.group)||void 0===i?void 0:i.id.toString())&&void 0!==n?n:"";case"groupName":return null!==(a=null===(r=t.group)||void 0===r?void 0:r.name)&&void 0!==a?a:"";case"type":return t.type;case"fedInfo":return t.fedInfo;case"state":return t.state;case"extSourceName":return t.extSourceName;case"extSourceType":return t.extSourceType;case"user":return t.user?(0,o.bD)(t.user):"";case"createdBy":return t.createdBy;case"createdAt":return t.createdAt;case"modifiedBy":return t.modifiedBy;case"modifiedAt":return t.modifiedAt;default:return t[e]}}},{key:"exportData",value:function(t){(0,o.O6)((0,o.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}},{key:"getApplicationsData",value:function(t){var e=this;if(this.applications.length!==t){var i=this.applications[t],n={};n.id=i.id,n.vo=i.vo,n.group=i.group,n.type=i.type,n.fedInfo=i.fedInfo,n.state=i.state,n.extSourceName=i.extSourceName,n.extSourceType=i.extSourceType,n.extSourceLoa=i.extSourceLoa,n.user=i.user,n.createdBy=i.createdBy,n.createdAt=i.createdAt,n.modifiedBy=i.modifiedBy,n.modifiedAt=i.modifiedAt,this.registrarManager.getApplicationDataById(i.id).subscribe(function(i){var r,o=_createForOfIteratorHelper(i);try{for(o.s();!(r=o.n()).done;){var a=r.value;null!==a.formItem.i18n.en.label&&0!==a.formItem.i18n.en.label.length?(n[a.formItem.i18n.en.label]=a.value,e.addedColumns.add(a.formItem.i18n.en.label)):(n[a.shortname]=a.value,e.addedColumns.add(a.shortname))}}catch(s){o.e(s)}finally{o.f()}e.table.push(n),e.getApplicationsData(t+1)})}else this.initialize()}},{key:"initialize",value:function(){var t,e=_createForOfIteratorHelper(this.addedColumns);try{for(e.s();!(t=e.n()).done;){var i=t.value;this.displayedColumns.push(i)}}catch(n){e.e(n)}finally{e.f()}this.dataSource=new r.by(this.table),this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue.trim().toLowerCase(),this.dataSource.paginator&&this.dataSource.paginator.firstPage(),this.loading=!1}},{key:"getFriendlyName",value:function(t){var e=t.lastIndexOf("/CN=");if(-1!==e){var i=t.slice(e+4,t.length).replace("/unstructuredName="," ");return-1!==i.lastIndexOf("\\")?t.slice(t.lastIndexOf("=")+1,t.length):i}return t}},{key:"selectApplication",value:function(t){return this.disableRouting?null:this.group?["/organizations",t.vo.id,"groups",this.group.id,"applications",t.id]:this.member?["/organizations",t.vo.id,"members",this.member.id,"applications",t.id]:["/organizations",t.vo.id,"applications",t.id]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(c.F0),s.Y36(a.x4),s.Y36(n.tk))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-perun-web-apps-application-list-details"]],viewQuery:function(t,e){var i;(1&t&&s.Gf(o.l9,7),2&t)&&(s.iGM(i=s.CRH())&&(e.child=i.first))},inputs:{applications:"applications",group:"group",member:"member",filterValue:"filterValue",tableId:"tableId",disableRouting:"disableRouting"},features:[s.TTD],decls:54,vars:13,consts:[[1,"card","mt-2","w-100",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","voId"],["matColumnDef","voName"],["matColumnDef","groupId"],["matColumnDef","groupName"],["matColumnDef","type"],["mat-cell","",4,"matCellDef"],["matColumnDef","state"],["matColumnDef","extSourceName"],["matColumnDef","extSourceType"],["matColumnDef","user"],["matColumnDef","createdBy"],["matColumnDef","createdAt"],["matColumnDef","modifiedBy"],["matColumnDef","modifiedAt"],[3,"matColumnDef",4,"ngFor","ngForOf"],["matColumnDef","fedInfo"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"matColumnDef"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"],[1,"ml-auto","mr-auto"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,m,3,3,"th",4),s.YNc(5,v,2,1,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,y,3,3,"th",4),s.YNc(8,_,2,1,"td",5),s.BQk(),s.ynx(9,7),s.YNc(10,b,3,3,"th",4),s.YNc(11,w,2,1,"td",5),s.BQk(),s.ynx(12,8),s.YNc(13,A,3,3,"th",4),s.YNc(14,k,2,1,"td",5),s.BQk(),s.ynx(15,9),s.YNc(16,C,3,3,"th",4),s.YNc(17,T,2,1,"td",5),s.BQk(),s.ynx(18,10),s.YNc(19,E,3,3,"th",4),s.YNc(20,S,2,1,"td",11),s.BQk(),s.ynx(21,12),s.YNc(22,I,3,3,"th",4),s.YNc(23,R,2,1,"td",11),s.BQk(),s.ynx(24,13),s.YNc(25,x,3,3,"th",4),s.YNc(26,O,2,1,"td",11),s.BQk(),s.ynx(27,14),s.YNc(28,P,3,3,"th",4),s.YNc(29,D,2,1,"td",11),s.BQk(),s.ynx(30,15),s.YNc(31,M,3,3,"th",4),s.YNc(32,L,3,3,"td",11),s.BQk(),s.ynx(33,16),s.YNc(34,N,3,3,"th",4),s.YNc(35,z,2,1,"td",11),s.BQk(),s.ynx(36,17),s.YNc(37,Z,3,3,"th",4),s.YNc(38,B,3,4,"td",11),s.BQk(),s.ynx(39,18),s.YNc(40,F,3,3,"th",4),s.YNc(41,H,2,1,"td",11),s.BQk(),s.ynx(42,19),s.YNc(43,U,3,3,"th",4),s.YNc(44,q,3,4,"td",11),s.BQk(),s.YNc(45,Y,3,1,"ng-container",20),s.ynx(46,21),s.YNc(47,K,3,3,"th",4),s.YNc(48,V,2,1,"td",11),s.BQk(),s.YNc(49,J,1,0,"tr",22),s.YNc(50,Q,1,4,"tr",23),s.qZA(),s.qZA(),s.qZA(),s.YNc(51,W,3,3,"app-alert",24),s.YNc(52,X,3,3,"app-alert",24),s.YNc(53,$,1,0,"mat-spinner",25)),2&t&&(s.ekj("hide-table",e.loading),s.Q6J("hidden",0===e.table.length||!!e.dataSource&&0===e.dataSource.filteredData.length),s.xp6(1),s.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),s.xp6(1),s.Q6J("dataSource",e.dataSource),s.xp6(43),s.Q6J("ngForOf",e.addedColumns),s.xp6(4),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===e.dataSource.data.length),s.xp6(1),s.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.table.length),s.xp6(1),s.Q6J("ngIf",e.loading))},directives:[u.l,r.BZ,r.w1,r.fO,r.Dz,l.sg,r.as,r.nj,l.O5,r.ge,r.ev,r.XQ,r.Gk,h.YH,c.rH,d.w,f.$g],pipes:[p.X$,g.d,l.uU],styles:[".mat-row[_ngcontent-%COMP%]{height:auto}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%], mat-cell[_ngcontent-%COMP%], mat-header-cell[_ngcontent-%COMP%]{padding:8px!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t}()},21548:function(t,e,i){"use strict";i.d(e,{M:function(){return q}});var n=i(58623),r=i(67033),o=i(84140),a=i(68416),s=i(31572),c=i(82819),u=i(61511),l=i(43691),h=i(36922),d=i(84534),f=i(57629),p=i(39571),g=i(48160),m=i(84650),v=i(22196);function y(t,e){1&t&&(s.TgZ(0,"th",16),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_ID")," "))}function _(t,e){if(1&t&&(s.TgZ(0,"td",17),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.hij(" ",i.id," ")}}function b(t,e){1&t&&(s.TgZ(0,"th",16),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_CREATED_DATE")," "))}function w(t,e){if(1&t&&(s.TgZ(0,"td",18),s._uU(1),s.ALo(2,"date"),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(s.xi3(2,1,i.createdAt,"d.M.y"))}}function A(t,e){1&t&&(s.TgZ(0,"th",16),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_TYPE")," "))}function k(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"mat-icon",20),s._uU(2,"arrow_right_alt"),s.qZA(),s.qZA())}function C(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"mat-icon",21),s._uU(2,"restore"),s.qZA(),s.qZA())}function T(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"mat-icon",22),s._uU(2,"nat"),s.qZA(),s.qZA())}function E(t,e){if(1&t&&(s.TgZ(0,"td",18),s.YNc(1,k,3,0,"div",19),s.YNc(2,C,3,0,"div",19),s.YNc(3,T,3,0,"div",19),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Q6J("ngIf","INITIAL"===i.type),s.xp6(1),s.Q6J("ngIf","EXTENSION"===i.type),s.xp6(1),s.Q6J("ngIf","EMBEDDED"===i.type)}}function S(t,e){1&t&&(s.TgZ(0,"th",16),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_STATE")," "))}function I(t,e){if(1&t&&(s.TgZ(0,"td",18),s._UZ(1,"span",23),s.ALo(2,"applicationState"),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Q6J("outerHTML",s.lcZ(2,1,i.state),s.oJD)}}function R(t,e){1&t&&(s.TgZ(0,"th",16),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_SUBMITTED_BY")," "))}function x(t,e){if(1&t&&(s.TgZ(0,"div"),s._uU(1),s.qZA()),2&t){var i=s.oxw().$implicit;s.xp6(1),s.hij(" ",i.createdBy.slice(i.createdBy.lastIndexOf("=")+1,i.createdBy.length)," ")}}function O(t,e){if(1&t&&(s._uU(0),s.ALo(1,"userFullName")),2&t){var i=s.oxw().$implicit;s.hij(" ",s.lcZ(1,1,i.user)," ")}}function P(t,e){if(1&t&&(s.TgZ(0,"td",18),s.YNc(1,x,2,1,"div",24),s.YNc(2,O,2,3,"ng-template",null,25,s.W1O),s.qZA()),2&t){var i=e.$implicit,n=s.MAs(3);s.xp6(1),s.Q6J("ngIf",null===i.user)("ngIfElse",n)}}function D(t,e){1&t&&(s.TgZ(0,"th",16),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_GROUP_NAME")," "))}function M(t,e){1&t&&(s.TgZ(0,"div",28),s._uU(1," - "),s.qZA())}function L(t,e){if(1&t&&s._uU(0),2&t){var i=s.oxw().$implicit;s.hij(" ",i.group.name," ")}}function N(t,e){if(1&t&&(s.TgZ(0,"td",18),s.YNc(1,M,2,0,"div",26),s.YNc(2,L,1,1,"ng-template",null,27,s.W1O),s.qZA()),2&t){var i=e.$implicit,n=s.MAs(3);s.xp6(1),s.Q6J("ngIf",null===i.group)("ngIfElse",n)}}function z(t,e){1&t&&(s.TgZ(0,"th",16),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"VO_DETAIL.APPLICATION.TABLE_MODIFIED_BY")," "))}function Z(t,e){if(1&t&&(s.TgZ(0,"td",18),s._uU(1),s.qZA()),2&t){var i=e.$implicit,n=s.oxw();s.xp6(1),s.Oqu(n.getFriendlyName(i.modifiedBy))}}function B(t,e){1&t&&s._UZ(0,"tr",29)}function F(t,e){if(1&t&&s._UZ(0,"tr",30),2&t){var i=e.$implicit,n=s.oxw();s.ekj("cursor-pointer",!n.disableRouting),s.Q6J("perunWebAppsMiddleClickRouterLink",n.selectApplication(i))("routerLink",n.selectApplication(i))}}function H(t,e){1&t&&(s.TgZ(0,"app-alert",31),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"VO_DETAIL.APPLICATION.NO_APPLICATION_FOUND"),"\n"))}function U(t,e){1&t&&(s.TgZ(0,"app-alert",31),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}var q=function(){var t=function(){function t(e){_classCallCheck(this,t),this.authResolver=e,this.applications=[],this.displayedColumns=[],this.disableRouting=!1,this.pageSizeOptions=o.f7}return _createClass(t,[{key:"matSort",set:function(t){this.sort=t}},{key:"ngAfterViewInit",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t}))}},{key:"ngOnChanges",value:function(){this.setDataSource()}},{key:"getSortDataForColumn",value:function(t,e,i){var n;switch(e){case"id":return t.id.toString();case"createdAt":return t.createdAt;case"type":return t.type;case"state":return t.state;case"user":return t.user?t.user.lastName?t.user.lastName:null!==(n=t.user.firstName)&&void 0!==n?n:"":t.createdBy.slice(t.createdBy.lastIndexOf("=")+1,t.createdBy.length);case"group":return t.group?t.group.name:"";case"modifiedBy":return i.parseModifiedBy(t);default:return""}}},{key:"getDataForColumn",value:function(t,e,i){switch(e){case"id":return t.id.toString();case"createdAt":return t.createdAt;case"type":return t.type;case"state":return t.state;case"user":return t.user?(0,o.bD)(t.user):t.createdBy.slice(t.createdBy.lastIndexOf("=")+1,t.createdBy.length);case"group":return t.group?t.group.name:"";case"modifiedBy":return i.parseModifiedBy(t);default:return""}}},{key:"parseModifiedBy",value:function(t){var e=t.modifiedBy.lastIndexOf("/CN=");if(-1!==e){var i=t.modifiedBy.slice(e+4,t.modifiedBy.length).replace("/unstructuredName="," ").toLowerCase();return-1!==i.lastIndexOf("\\")?t.modifiedBy.slice(t.modifiedBy.lastIndexOf("=")+1,t.modifiedBy.length):i}return t.modifiedBy.toLowerCase()}},{key:"exportData",value:function(t){(0,o.O6)((0,o.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource||(this.dataSource=new r.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=function(e,i){return(0,o.Sd)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return(0,o.pR)(e,i,t.getSortDataForColumn,t)}),this.dataSource.filter=this.filterValue,this.dataSource.data=this.applications}},{key:"getFriendlyName",value:function(t){var e=t.lastIndexOf("/CN=");if(-1!==e){var i=t.slice(e+4,t.length).replace("/unstructuredName="," ");return-1!==i.lastIndexOf("\\")?t.slice(t.lastIndexOf("=")+1,t.length):i}return t}},{key:"selectApplication",value:function(t){return this.disableRouting?null:this.group?["/organizations",t.vo.id,"groups",this.group.id,"applications",t.id]:this.member?["/organizations",t.vo.id,"members",this.member.id,"applications",t.id]:["/organizations",t.vo.id,"applications",t.id]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(a.x4))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-applications-list"]],viewQuery:function(t,e){var i;(1&t&&(s.Gf(n.YE,7),s.Gf(o.l9,7)),2&t)&&(s.iGM(i=s.CRH())&&(e.matSort=i.first),s.iGM(i=s.CRH())&&(e.child=i.first))},inputs:{applications:"applications",group:"group",member:"member",displayedColumns:"displayedColumns",filterValue:"filterValue",tableId:"tableId",disableRouting:"disableRouting"},features:[s.TTD],decls:28,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportData"],["mat-table","","matSort","","matSortActive","createdAt","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","createdAt"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","state"],["matColumnDef","user"],["matColumnDef","group"],["matColumnDef","modifiedBy"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[4,"ngIf"],["matTooltip","Initial","matTooltipPosition","above"],["matTooltip","Extension","matTooltipPosition","above"],["matTooltip","Embedded","matTooltipPosition","above"],[3,"outerHTML"],[4,"ngIf","ngIfElse"],["name",""],["class","font-italic text-muted",4,"ngIf","ngIfElse"],["groupName",""],[1,"font-italic","text-muted"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,y,3,3,"th",4),s.YNc(5,_,2,1,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,b,3,3,"th",4),s.YNc(8,w,3,4,"td",7),s.BQk(),s.ynx(9,8),s.YNc(10,A,3,3,"th",4),s.YNc(11,E,4,3,"td",7),s.BQk(),s.ynx(12,9),s.YNc(13,S,3,3,"th",4),s.YNc(14,I,3,3,"td",7),s.BQk(),s.ynx(15,10),s.YNc(16,R,3,3,"th",4),s.YNc(17,P,4,2,"td",7),s.BQk(),s.ynx(18,11),s.YNc(19,D,3,3,"th",4),s.YNc(20,N,4,2,"td",7),s.BQk(),s.ynx(21,12),s.YNc(22,z,3,3,"th",4),s.YNc(23,Z,2,1,"td",7),s.BQk(),s.YNc(24,B,1,0,"tr",13),s.YNc(25,F,1,4,"tr",14),s.qZA(),s.qZA(),s.qZA(),s.YNc(26,H,3,3,"app-alert",15),s.YNc(27,U,3,3,"app-alert",15)),2&t&&(s.Q6J("hidden",0===e.applications.length||!e.dataSource||0===e.dataSource.filteredData.length),s.xp6(1),s.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("tableId",e.tableId),s.xp6(1),s.Q6J("dataSource",e.dataSource),s.xp6(22),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===e.applications.length),s.xp6(1),s.Q6J("ngIf",!!e.dataSource&&0===e.dataSource.filteredData.length&&0!==e.applications.length))},directives:[c.l,r.BZ,n.YE,r.w1,r.fO,r.Dz,r.as,r.nj,u.O5,r.ge,n.nU,r.ev,l.Hw,h.gM,r.XQ,r.Gk,d.YH,f.rH,p.w],pipes:[g.X$,u.uU,m.h,v.d],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t}()},62284:function(t,e,i){"use strict";i.d(e,{W:function(){return E}});var n=i(65249),r=i(60611),o=i(68416),a=i(16073),s=i(61511),c=i(31572),u=i(59403),l=i(66283),h=i(4786),d=i(71522),f=i(91058),p=i(51613),g=i(15980),m=i(67806),v=i(21548),y=i(29851),_=i(48160);function b(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"button",15),c.NdJ("click",function(){return c.CHM(i),c.oxw().showAllDetails=!0}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function w(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"button",15),c.NdJ("click",function(){return c.CHM(i),c.oxw().showAllDetails=!1}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}function A(t,e){1&t&&c._UZ(0,"mat-spinner",16)}function k(t,e){if(1&t&&c._UZ(0,"app-applications-list",19),2&t){var i=c.oxw(2);c.Q6J("tableId",i.tableId)("disableRouting",!i.routeAuth)("filterValue",i.filterValue)("applications",i.applications)("displayedColumns",i.displayedColumns)("group",i.group)}}function C(t,e){if(1&t&&c._UZ(0,"app-perun-web-apps-application-list-details",20),2&t){var i=c.oxw(2);c.Q6J("tableId",i.detailTableId)("disableRouting",!i.routeAuth)("filterValue",i.filterValue)("applications",i.applications)("group",i.group)}}function T(t,e){if(1&t&&(c.TgZ(0,"div"),c.YNc(1,k,1,6,"app-applications-list",17),c.YNc(2,C,1,5,"app-perun-web-apps-application-list-details",18),c.qZA()),2&t){var i=c.oxw();c.xp6(1),c.Q6J("ngIf",!i.showAllDetails),c.xp6(1),c.Q6J("ngIf",i.showAllDetails)}}var E=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.registrarManager=e,this.guiAuthResolver=i,this.entityStorageService=n,this.state="pending",this.loading=!1,this.applications=[],this.displayedColumns=["id","createdAt","type","state","user","modifiedBy"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=r.Af,this.tableId=r.gB,this.routeAuth=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.startDate=new a.NI((0,s.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new a.NI((0,s.p6)(new Date,"yyyy-MM-dd","en-GB")),this.setData(["NEW","VERIFIED"])}},{key:"setAuth",value:function(){0!==this.applications.length&&(this.routeAuth=this.guiAuthResolver.isAuthorized("group-getApplicationById_int_policy",[this.group]))}},{key:"setData",value:function(t){var e=this;this.registrarManager.getApplicationsForGroup(this.group.id,t,(0,s.p6)(this.startDate.value,"yyyy-MM-dd","en-GB"),(0,s.p6)(this.endDate.value,"yyyy-MM-dd","en-GB")).subscribe(function(t){e.applications=t,e.setAuth(),e.loading=!1})}},{key:"select",value:function(){switch(this.loading=!0,this.state){case"approved":this.setData(["APPROVED"]);break;case"rejected":this.setData(["REJECTED"]);break;case"wfmv":this.setData(["NEW"]);break;case"submited":this.setData(["VERIFIED"]);break;case"pending":this.setData(["NEW","VERIFIED"]);break;case"all":this.setData(null)}}},{key:"yearAgo",value:function(){var t=new Date,e=t.getFullYear()-1,i=t.getMonth(),n=t.getDate();return new Date(e,i,n)}},{key:"applyFilter",value:function(t){this.filterValue=t}}]),t}();return t.id="GroupApplicationsComponent",t.\u0275fac=function(e){return new(e||t)(c.Y36(n.tk),c.Y36(o.x4),c.Y36(o.fb))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-group-applications"]],hostVars:2,hostBindings:function(t,e){2&t&&c.ekj("router-component",e.true)},decls:34,vars:32,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-stroked-button","","class","mr-2",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,"startDate","endDate","datePicker"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"tableId","disableRouting","filterValue","applications","displayedColumns","group",4,"ngIf"],[3,"tableId","disableRouting","filterValue","applications","group",4,"ngIf"],[3,"tableId","disableRouting","filterValue","applications","displayedColumns","group"],[3,"tableId","disableRouting","filterValue","applications","group"]],template:function(t,e){1&t&&(c.TgZ(0,"h1",0),c._uU(1),c.ALo(2,"translate"),c.qZA(),c.TgZ(3,"div"),c.TgZ(4,"perun-web-apps-refresh-button",1),c.NdJ("refresh",function(){return e.select()}),c.qZA(),c.YNc(5,b,3,3,"button",2),c.YNc(6,w,3,3,"button",2),c.TgZ(7,"mat-form-field",3),c.TgZ(8,"mat-label"),c._uU(9),c.ALo(10,"translate"),c.qZA(),c.TgZ(11,"mat-select",4),c.NdJ("selectionChange",function(){return e.select()})("valueChange",function(t){return e.state=t}),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.qZA(),c.qZA(),c.TgZ(30,"perun-web-apps-debounce-filter",11),c.NdJ("filter",function(t){return e.applyFilter(t)}),c.qZA(),c.TgZ(31,"perun-web-apps-date-range",12),c.NdJ("datePicker",function(){return e.select()}),c.qZA(),c.qZA(),c.YNc(32,A,1,0,"mat-spinner",13),c.YNc(33,T,3,2,"div",14)),2&t&&(c.xp6(1),c.Oqu(c.lcZ(2,16,"VO_DETAIL.APPLICATION.TITLE")),c.xp6(4),c.Q6J("ngIf",!e.showAllDetails),c.xp6(1),c.Q6J("ngIf",e.showAllDetails),c.xp6(3),c.Oqu(c.lcZ(10,18,"VO_DETAIL.APPLICATION.TABLE_STATE")),c.xp6(2),c.Q6J("value",e.state),c.xp6(2),c.Oqu(c.lcZ(14,20,"VO_DETAIL.APPLICATION.SELECTION_ALL")),c.xp6(3),c.Oqu(c.lcZ(17,22,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),c.xp6(3),c.Oqu(c.lcZ(20,24,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),c.xp6(3),c.Oqu(c.lcZ(23,26,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),c.xp6(3),c.Oqu(c.lcZ(26,28,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),c.xp6(3),c.Oqu(c.lcZ(29,30,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),c.xp6(2),c.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),c.xp6(1),c.Q6J("startDate",e.startDate)("endDate",e.endDate),c.xp6(1),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading))},directives:[u.t,s.O5,l.KE,l.hX,h.gD,d.ey,f.P,p.S,g.lW,m.$g,v.M,y.w],pipes:[_.X$],styles:[""]}),t}()},11930:function(t,e,i){"use strict";i.d(e,{y:function(){return N}});var n=i(4230),r=i(68416),o=i(67004),a=i(85613),s=i(4374),c=i(65249),u=i(60611),l=i(84140),h=i(88690),d=i(16073),f=i(31572),p=i(84608),g=i(61511),m=i(59403),v=i(36922),y=i(66283),_=i(4786),b=i(91058),w=i(39571),A=i(15980),k=i(71522),C=i(67806),T=i(91779),E=i(48160),S=i(5725);function I(t,e){1&t&&(f.TgZ(0,"app-alert",15),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"GROUP_DETAIL.MEMBERS.ACTIONS_DISABLED"),"\n"))}function R(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",16),f.NdJ("click",function(){return f.CHM(i),f.oxw().onAddMember()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}if(2&t){var n=f.oxw();f.Q6J("disabled",n.synchEnabled||n.blockGroupManualMemberAdding),f.xp6(1),f.hij(" ",f.lcZ(2,2,"GROUP_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function x(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",17),f.NdJ("click",function(){return f.CHM(i),f.oxw().onInviteMember()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}if(2&t){var n=f.oxw();f.Q6J("disabled",n.synchEnabled),f.xp6(1),f.hij(" ",f.lcZ(2,2,"GROUP_DETAIL.MEMBERS.INVITE_MEMBER")," ")}}function O(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",18),f.NdJ("click",function(){return f.CHM(i),f.oxw().onRemoveMembers()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}if(2&t){var n=f.oxw();f.Q6J("disabled",n.selection.isEmpty()||n.synchEnabled),f.xp6(1),f.hij(" ",f.lcZ(2,2,"GROUP_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function P(t,e){if(1&t&&(f.TgZ(0,"mat-option",19),f._uU(1),f.ALo(2,"memberStatus"),f.qZA()),2&t){var i=e.$implicit;f.Q6J("value",i),f.xp6(1),f.Oqu(f.lcZ(2,2,i))}}function D(t,e){if(1&t&&(f.TgZ(0,"mat-option",19),f._uU(1),f.ALo(2,"memberStatus"),f.qZA()),2&t){var i=e.$implicit;f.Q6J("value",i),f.xp6(1),f.Oqu(f.lcZ(2,2,i))}}function M(t,e){1&t&&f._UZ(0,"mat-spinner",20)}function L(t,e){if(1&t&&f._UZ(0,"perun-web-apps-members-dynamic-list",21),2&t){var i=f.oxw();f.Q6J("voId",i.group.voId)("groupId",i.group.id)("tableId",i.tableId)("selection",i.selection)("displayedColumns",i.displayedColumns)("updateTable",i.updateTable)("searchString",i.searchString)("selectedStatuses",i.selectedStatuses)("selectedGroupStatuses",i.selectedGroupStatuses)("attrNames",i.memberAttrNames)}}var N=function(){var t=function(){function t(e,i,n,r,a,s,c,l){_classCallCheck(this,t),this.groupService=e,this.dialog=i,this.guiAuthResolver=n,this.storeService=r,this.attributesManager=a,this.apiRequest=s,this.notificator=c,this.entityStorageService=l,this.synchEnabled=!1,this.updateTable=!1,this.loading=!1,this.tableId=u.dI,this.memberAttrNames=[o.r.MEMBER_DEF_ORGANIZATION,o.r.MEMBER_DEF_MAIL,o.r.USER_DEF_ORGANIZATION,o.r.USER_DEF_PREFERRED_MAIL,o.r.MEMBER_DEF_EXPIRATION,o.r.MEMBER_DEF_GROUP_EXPIRATION],this.groupAttrNames=[o.r.GROUP_SYNC_ENABLED,o.r.GROUP_LAST_SYNC_STATE,o.r.GROUP_LAST_SYNC_TIMESTAMP,o.r.GROUP_STRUCTURE_SYNC_ENABLED,o.r.GROUP_LAST_STRUCTURE_SYNC_STATE,o.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP],this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.statuses=new d.NI,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=["VALID","INVALID"],this.groupStatuses=new d.NI,this.groupStatusList=["VALID","EXPIRED"],this.selectedGroupStatuses=["VALID"]}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.selection=new n.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,this.group.id).then(function(){return t.loadPage(t.group.id)})}},{key:"loadPage",value:function(t){var e=this;this.groupService.getRichGroupByIdWithAttributesByNames(t,this.groupAttrNames).subscribe(function(t){e.group=t,e.synchEnabled=e.isSynchronized(),e.loading=!1})}},{key:"isSynchronized",value:function(){return this.group.attributes.some(function(t){return"synchronizationEnabled"===t.friendlyName&&null!==t.value&&"true"===t.value.toString()})}},{key:"setAuthRights",value:function(){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])}},{key:"onSearchByString",value:function(t){this.searchString=t,this.updateTable=!this.updateTable}},{key:"onAddMember",value:function(){var t=this,e=(0,l.kZ)();e.width="1000px",e.data={voId:this.group.voId,group:this.group,entityId:this.group.id,manualAddingBlocked:this.blockManualMemberAdding,theme:"group-theme",type:"group"},this.dialog.open(a.o,e).afterClosed().subscribe(function(e){e&&(t.selection.clear(),t.updateTable=!t.updateTable)})}},{key:"onRemoveMembers",value:function(){var t=this,e=(0,l.kZ)();e.width="450px",e.data={groupId:this.group.id,members:this.selection.selected,theme:"group-theme"},this.dialog.open(s.X,e).afterClosed().subscribe(function(e){e&&(t.selection.clear(),t.updateTable=!t.updateTable)})}},{key:"onInviteMember",value:function(){var t=(0,l.kZ)();t.width="650px",t.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(h.R,t)}},{key:"displaySelectedStatuses",value:function(){return this.selectedStatuses.length===this.statusList.length?"ALL":this.statuses.value?"".concat(this.statuses.value[0]," ").concat(this.statuses.value.length>1?"(+"+(this.statuses.value.length-1)+" "+(2===this.statuses.value.length?"other)":"others)"):""):""}},{key:"displaySelectedGroupStatuses",value:function(){return this.selectedGroupStatuses.length===this.groupStatusList.length?"ALL":"".concat(this.groupStatuses.value[0])}},{key:"isManualAddingBlocked",value:function(t,e){var i=this;return new Promise(function(n){i.apiRequest.dontHandleErrorForNext(),i.attributesManager.getVoAttributeByName(t,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe(function(t){i.blockManualMemberAdding=null!==t.value,i.apiRequest.dontHandleErrorForNext(),i.attributesManager.getGroupAttributeByName(e,"urn:perun:group:attribute-def:def:blockManualMemberAdding").subscribe(function(t){i.blockGroupManualMemberAdding=null!==t.value,n()},function(t){"PrivilegeException"!==t.error.name&&i.notificator.showError(t),n()})},function(t){"PrivilegeException"!==t.error.name&&i.notificator.showError(t),n()})})}},{key:"changeVoStatuses",value:function(){this.selectedStatuses=this.statuses.value}},{key:"changeGroupStatuses",value:function(){this.selectedGroupStatuses=this.groupStatuses.value}}]),t}();return t.id="GroupMembersComponent",t.\u0275fac=function(e){return new(e||t)(f.Y36(c.ff),f.Y36(p.uw),f.Y36(r.x4),f.Y36(r.d6),f.Y36(c.H8),f.Y36(r.F5),f.Y36(r.V6),f.Y36(r.fb))},t.\u0275cmp=f.Xpm({type:t,selectors:[["app-group-members"]],hostVars:2,hostBindings:function(t,e){2&t&&f.ekj("router-component",e.true)},decls:38,vars:45,consts:[[1,"page-subtitle"],["alert_type","warn",4,"ngIf"],[1,"align-elements"],[3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],[3,"matTooltip","matTooltipDisabled"],["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,"voId","groupId","tableId","selection","displayedColumns","updateTable","searchString","selectedStatuses","selectedGroupStatuses","attrNames",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,"voId","groupId","tableId","selection","displayedColumns","updateTable","searchString","selectedStatuses","selectedGroupStatuses","attrNames"]],template:function(t,e){1&t&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.qZA(),f.YNc(3,I,3,3,"app-alert",1),f.TgZ(4,"div",2),f.TgZ(5,"perun-web-apps-refresh-button",3),f.NdJ("click",function(){return e.updateTable=!e.updateTable}),f.qZA(),f.TgZ(6,"span",4),f.ALo(7,"translate"),f.TgZ(8,"div",5),f.ALo(9,"translate"),f.YNc(10,R,3,4,"button",6),f.qZA(),f.qZA(),f.TgZ(11,"span",4),f.ALo(12,"translate"),f.YNc(13,x,3,4,"button",7),f.qZA(),f.TgZ(14,"span",4),f.ALo(15,"translate"),f.YNc(16,O,3,4,"button",8),f.qZA(),f.TgZ(17,"mat-form-field",9),f.TgZ(18,"mat-label"),f._uU(19),f.ALo(20,"translate"),f.qZA(),f.TgZ(21,"mat-select",10),f.NdJ("closed",function(){return e.changeVoStatuses()}),f.TgZ(22,"mat-select-trigger"),f._uU(23),f.ALo(24,"memberStatus"),f.qZA(),f.YNc(25,P,3,4,"mat-option",11),f.qZA(),f.qZA(),f.TgZ(26,"mat-form-field",9),f.TgZ(27,"mat-label"),f._uU(28),f.ALo(29,"translate"),f.qZA(),f.TgZ(30,"mat-select",10),f.NdJ("closed",function(){return e.changeGroupStatuses()}),f.TgZ(31,"mat-select-trigger"),f._uU(32),f.ALo(33,"memberStatus"),f.qZA(),f.YNc(34,D,3,4,"mat-option",11),f.qZA(),f.qZA(),f.TgZ(35,"perun-web-apps-debounce-filter",12),f.NdJ("filter",function(t){return e.onSearchByString(t)}),f.qZA(),f.qZA(),f.YNc(36,M,1,0,"mat-spinner",13),f.YNc(37,L,1,10,"perun-web-apps-members-dynamic-list",14)),2&t&&(f.xp6(1),f.Oqu(f.lcZ(2,27,"GROUP_DETAIL.MEMBERS.TITLE")),f.xp6(2),f.Q6J("ngIf",e.synchEnabled),f.xp6(3),f.s9C("matTooltip",f.lcZ(7,29,"GROUP_DETAIL.MEMBERS.SYNCHRONIZED")),f.Q6J("matTooltipDisabled",!e.synchEnabled)("matTooltipPosition","above"),f.xp6(2),f.s9C("matTooltip",f.lcZ(9,31,"GROUP_DETAIL.MEMBERS.ADD_MEMBER_DISABLED")),f.Q6J("matTooltipDisabled",!e.blockGroupManualMemberAdding),f.xp6(2),f.Q6J("ngIf",e.addAuth),f.xp6(1),f.s9C("matTooltip",f.lcZ(12,33,"GROUP_DETAIL.MEMBERS.SYNCHRONIZED")),f.Q6J("matTooltipDisabled",!e.synchEnabled)("matTooltipPosition","above"),f.xp6(2),f.Q6J("ngIf",e.inviteAuth),f.xp6(1),f.s9C("matTooltip",f.lcZ(15,35,"GROUP_DETAIL.MEMBERS.SYNCHRONIZED")),f.Q6J("matTooltipDisabled",!e.synchEnabled)("matTooltipPosition","above"),f.xp6(2),f.Q6J("ngIf",e.removeAuth),f.xp6(3),f.Oqu(f.lcZ(20,37,"GROUP_DETAIL.MEMBERS.FILTER_STATUS")),f.xp6(2),f.Q6J("formControl",e.statuses),f.xp6(2),f.hij(" ",f.lcZ(24,39,e.displaySelectedStatuses())," "),f.xp6(2),f.Q6J("ngForOf",e.statusList),f.xp6(3),f.Oqu(f.lcZ(29,41,"GROUP_DETAIL.MEMBERS.FILTER_GROUP_STATUS")),f.xp6(2),f.Q6J("formControl",e.groupStatuses),f.xp6(2),f.hij(" ",f.lcZ(33,43,e.displaySelectedGroupStatuses())," "),f.xp6(2),f.Q6J("ngForOf",e.groupStatusList),f.xp6(1),f.Q6J("placeholder","GROUP_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),f.xp6(1),f.Q6J("ngIf",e.loading),f.xp6(1),f.Q6J("ngIf",!e.loading))},directives:[g.O5,m.t,v.gM,y.KE,y.hX,_.gD,d.JJ,d.oH,_.$L,g.sg,b.P,w.w,A.lW,k.ey,C.$g,T.m],pipes:[E.X$,S.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}"]}),t}()},7433:function(t,e,i){"use strict";i.d(e,{q:function(){return V}});var n=i(4230),r=i(65249),o=i(60611),a=i(84608),s=i(68416),c=(i(41939),i(31572)),u=i(48160),l=i(61511),h=i(67806),d=i(70663),f=i(91058),p=i(88884),g=i(27521),m=i(16073),v=i(15980),y=i(36922),_=["list"],b=["stepper"];function w(t,e){1&t&&c._UZ(0,"mat-spinner",4)}function A(t,e){1&t&&(c._uU(0),c.ALo(1,"translate")),2&t&&c.Oqu(c.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.RESOURCES"))}function k(t,e){1&t&&(c._uU(0),c.ALo(1,"translate")),2&t&&c.Oqu(c.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.OPTIONS"))}var C=function(){return["select","id","name","facility","tags","description"]};function T(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"div",5),c.TgZ(1,"mat-stepper",6,7),c.TgZ(3,"mat-step",8),c.YNc(4,A,2,3,"ng-template",9),c.TgZ(5,"perun-web-apps-debounce-filter",10),c.NdJ("filter",function(t){return c.CHM(i),c.oxw().applyFilter(t)}),c.ALo(6,"translate"),c.qZA(),c._UZ(7,"perun-web-apps-resources-list",11,12),c.qZA(),c.TgZ(9,"mat-step"),c.YNc(10,k,2,3,"ng-template",9),c.TgZ(11,"mat-slide-toggle",13),c.NdJ("toggleChange",function(){return c.CHM(i),c.oxw().changeSubgroupsMessage()})("ngModelChange",function(t){return c.CHM(i),c.oxw().autoAssignSubgroups=t}),c._uU(12),c.ALo(13,"translate"),c.qZA(),c.TgZ(14,"div",14),c._UZ(15,"i",15),c.qZA(),c.TgZ(16,"mat-slide-toggle",13),c.NdJ("toggleChange",function(){return c.CHM(i),c.oxw().changeInactiveMessage()})("ngModelChange",function(t){return c.CHM(i),c.oxw().asActive=t}),c._uU(17),c.ALo(18,"translate"),c.qZA(),c.TgZ(19,"div",14),c._uU(20),c.qZA(),c.TgZ(21,"mat-slide-toggle",13),c.NdJ("toggleChange",function(){return c.CHM(i),c.oxw().changeAsyncMessage()})("ngModelChange",function(t){return c.CHM(i),c.oxw().async=t}),c._uU(22),c.ALo(23,"translate"),c.qZA(),c.TgZ(24,"div",14),c._uU(25),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){var n=c.MAs(8),r=c.oxw();c.xp6(1),c.Q6J("linear",!0),c.xp6(2),c.Q6J("completed",0!==r.selection.selected.length&&void 0!==n&&n.addAuth),c.xp6(2),c.s9C("placeholder",c.lcZ(6,19,"DIALOGS.ADD_GROUP_RESOURCES.FILTER")),c.xp6(2),c.Q6J("tableId",r.tableId)("resources",r.resources)("disableRouting",!0)("selection",r.selection)("groupToResource",r.data.group)("displayedColumns",c.DdM(27,C))("filterValue",r.filterValue),c.xp6(4),c.Q6J("ngModel",r.autoAssignSubgroups),c.xp6(1),c.hij(" ",c.lcZ(13,21,"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS")," "),c.xp6(3),c.Q6J("innerHTML",r.autoAssignHint,c.oJD),c.xp6(1),c.Q6J("ngModel",r.asActive),c.xp6(1),c.hij(" ",c.lcZ(18,23,"DIALOGS.ADD_GROUP_RESOURCES.AS_ACTIVE")," "),c.xp6(3),c.hij(" ",r.asActiveHint," "),c.xp6(1),c.Q6J("ngModel",r.async),c.xp6(1),c.hij(" ",c.lcZ(23,25,"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OPT")," "),c.xp6(3),c.hij(" ",r.asyncHint," ")}}function E(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"button",22),c.NdJ("click",function(){return c.CHM(i),c.oxw(2).stepperPrevious()}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"DIALOGS.ADD_GROUP_RESOURCES.BACK")," "))}function S(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"button",23),c.NdJ("click",function(){return c.CHM(i),c.oxw(2).stepperNext()}),c._uU(1),c.ALo(2,"translate"),c.qZA()}if(2&t){var n=c.oxw(2);c.ekj("ml-2",void 0!==n.stepper&&0!==n.stepper.selectedIndex)("ml-auto",!(void 0!==n.stepper&&0!==n.stepper.selectedIndex)),c.Q6J("disabled",0===n.selection.selected.length||void 0!==n.list&&!n.list.addAuth),c.xp6(1),c.hij(" ",c.lcZ(2,6,"DIALOGS.ADD_GROUP_RESOURCES.NEXT")," ")}}function I(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"button",24),c.NdJ("click",function(){return c.CHM(i),c.oxw(2).onSubmit()}),c._uU(1),c.ALo(2,"translate"),c.qZA()}if(2&t){var n=c.oxw(2);c.Q6J("disabled",0===n.selection.selected.length||n.loading),c.xp6(1),c.hij(" ",c.lcZ(2,2,"DIALOGS.ADD_GROUP_RESOURCES.ADD")," ")}}function R(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"div",16),c.TgZ(1,"button",17),c.NdJ("click",function(){return c.CHM(i),c.oxw().onCancel()}),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.YNc(4,E,3,3,"button",18),c.YNc(5,S,3,8,"button",19),c.TgZ(6,"span",20),c.ALo(7,"translate"),c.YNc(8,I,3,4,"button",21),c.qZA(),c.qZA()}if(2&t){var n=c.oxw();c.xp6(2),c.hij(" ",c.lcZ(3,6,"DIALOGS.ADD_GROUP_RESOURCES.CANCEL")," "),c.xp6(2),c.Q6J("ngIf",void 0!==n.stepper&&0!==n.stepper.selectedIndex),c.xp6(1),c.Q6J("ngIf",void 0!==n.stepper&&n.stepper.selectedIndex!==n.stepper._steps.length-1),c.xp6(1),c.s9C("matTooltip",c.lcZ(7,8,"DIALOGS.ADD_GROUP_RESOURCES.ADD_PERMISSION_TOOLTIP")),c.Q6J("matTooltipDisabled",void 0===n.list||n.list.addAuth),c.xp6(2),c.Q6J("ngIf",void 0!==n.stepper&&n.stepper.selectedIndex===n.stepper._steps.length-1)}}var x=function(){var t=function(){function t(e,i,r,a,s,c,u){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.notificator=r,this.translate=a,this.resourcesManager=s,this.guiAuthResolver=c,this.cd=u,this.filterValue="",this.resources=[],this.selection=new n.Ov(!0,[]),this.theme="",this.async=!0,this.autoAssignSubgroups=!1,this.asActive=!0,this.tableId=o.dK}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;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(function(e){t.resourcesManager.getAssignedResourcesWithGroup(t.data.group.id).subscribe(function(i){var n,r=_createForOfIteratorHelper(e);try{var o=function(){var e=n.value;-1===i.findIndex(function(t){return t.id===e.id})&&t.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",[t.data.group,e])&&t.resources.push(e)};for(r.s();!(n=r.n()).done;)o()}catch(a){r.e(a)}finally{r.f()}t.loading=!1,t.cd.detectChanges()},function(){return t.loading=!1})},function(){return t.loading=!1})}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0;var e=this.selection.selected.map(function(t){return t.id});this.resourcesManager.assignGroupToResources(this.data.group.id,e,this.async,!this.asActive,this.autoAssignSubgroups).subscribe(function(){t.translate.get("DIALOGS.ADD_GROUP_RESOURCES.SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})}},{key:"changeSubgroupsMessage",value:function(){this.autoAssignHint=this.translate.instant(this.autoAssignSubgroups?"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS_ON_HINT")}},{key:"changeInactiveMessage",value:function(){this.asActiveHint=this.translate.instant(this.asActive?"DIALOGS.ADD_GROUP_RESOURCES.ACTIVE_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.ACTIVE_ON_HINT")}},{key:"changeAsyncMessage",value:function(){this.asyncHint=this.translate.instant(this.async?"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_ON_HINT")}},{key:"stepperPrevious",value:function(){this.stepper.previous()}},{key:"stepperNext",value:function(){this.stepper.next()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.Y36(a.so),c.Y36(a.WI),c.Y36(s.V6),c.Y36(u.sK),c.Y36(r.xk),c.Y36(s.x4),c.Y36(c.sBO))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-add-group-resource-dialog"]],viewQuery:function(t,e){var i;(1&t&&(c.Gf(_,5),c.Gf(b,5)),2&t)&&(c.iGM(i=c.CRH())&&(e.list=i.first),c.iGM(i=c.CRH())&&(e.stepper=i.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,"tableId","resources","disableRouting","selection","groupToResource","displayedColumns","filterValue"],["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"],["mat-flat-button","","class","ml-2","color","accent",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"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(c.TgZ(0,"div"),c.TgZ(1,"h1",0),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.YNc(4,w,1,0,"mat-spinner",1),c.YNc(5,T,26,28,"div",2),c.YNc(6,R,9,10,"div",3),c.qZA()),2&t&&(c.Tol(e.theme),c.xp6(2),c.Oqu(c.lcZ(3,7,"DIALOGS.ADD_GROUP_RESOURCES.TITLE")),c.xp6(2),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading&&void 0!==e.stepper))},directives:[a.uh,l.O5,h.$g,a.xY,d.Vq,d.C0,d.VY,f.P,p.C,g.Rr,m.JJ,m.On,a.H8,v.lW,y.gM],pipes:[u.X$],styles:[""]}),t}(),O=i(67033);function P(t,e){1&t&&c._UZ(0,"mat-spinner",4)}function D(t,e){1&t&&c._UZ(0,"th",13)}function M(t,e){if(1&t&&(c.TgZ(0,"td",14),c._uU(1),c.qZA()),2&t){var i=e.$implicit;c.xp6(1),c.Oqu(i.name)}}function L(t,e){1&t&&c._UZ(0,"tr",15)}function N(t,e){1&t&&c._UZ(0,"tr",16)}function z(t,e){if(1&t&&(c.TgZ(0,"div",5),c.TgZ(1,"p"),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"div",6),c._uU(5),c.ALo(6,"translate"),c.qZA(),c.TgZ(7,"table",7),c.ynx(8,8),c.YNc(9,D,1,0,"th",9),c.YNc(10,M,2,1,"td",10),c.BQk(),c.YNc(11,L,1,0,"tr",11),c.YNc(12,N,1,0,"tr",12),c.qZA(),c.qZA()),2&t){var i=c.oxw();c.xp6(2),c.hij(" ",c.lcZ(3,5,"DIALOGS.REMOVE_RESOURCES.DESCRIPTION")," "),c.xp6(3),c.hij(" ",c.lcZ(6,7,"DIALOGS.REMOVE_RESOURCES.ASK")," "),c.xp6(2),c.Q6J("dataSource",i.dataSource),c.xp6(4),c.Q6J("matHeaderRowDef",i.displayedColumns),c.xp6(1),c.Q6J("matRowDefColumns",i.displayedColumns)}}function Z(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"div",17),c.TgZ(1,"button",18),c.NdJ("click",function(){return c.CHM(i),c.oxw().onCancel()}),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"button",19),c.NdJ("click",function(){return c.CHM(i),c.oxw().onSubmit()}),c._uU(5),c.ALo(6,"translate"),c.qZA(),c.qZA()}if(2&t){var n=c.oxw();c.xp6(2),c.hij(" ",c.lcZ(3,3,"DIALOGS.REMOVE_RESOURCES.CANCEL")," "),c.xp6(2),c.Q6J("disabled",n.loading),c.xp6(1),c.hij(" ",c.lcZ(6,5,"DIALOGS.REMOVE_RESOURCES.DELETE")," ")}}var B=function(){var t=function(){function t(e,i,n,r,o){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translate=r,this.resourcesManager=o,this.displayedColumns=["name"]}return _createClass(t,[{key:"ngOnInit",value:function(){this.dataSource=new O.by(this.data.resources)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0;var e=this.data.resources.map(function(t){return t.id});this.resourcesManager.removeGroupFromResources(this.data.groupId,e).subscribe(function(){t.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(function(e){t.loading=!1,t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.Y36(a.so),c.Y36(a.WI),c.Y36(s.V6),c.Y36(u.sK),c.Y36(r.xk))},t.\u0275cmp=c.Xpm({type:t,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"],["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(t,e){1&t&&(c.TgZ(0,"div"),c.TgZ(1,"h1",0),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.YNc(4,P,1,0,"mat-spinner",1),c.YNc(5,z,13,9,"div",2),c.YNc(6,Z,7,7,"div",3),c.qZA()),2&t&&(c.Tol(e.data.theme),c.xp6(2),c.Oqu(c.lcZ(3,7,"DIALOGS.REMOVE_RESOURCES.TITLE")),c.xp6(2),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading))},directives:[a.uh,l.O5,h.$g,a.xY,O.BZ,O.w1,O.fO,O.Dz,O.as,O.nj,O.ge,O.ev,O.XQ,O.Gk,a.H8,v.lW],pipes:[u.X$],styles:[""]}),t}(),F=i(84140),H=i(59403),U=i(19139),q=["list"];function G(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"button",8),c.NdJ("click",function(){return c.CHM(i),c.oxw().addResource()}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"GROUP_DETAIL.RESOURCES.ADD")," "))}function j(t,e){1&t&&c._UZ(0,"mat-spinner",9)}var Y=function(){return["select","id","indirectResourceAssigment","name","status","facility","tags","description"]};function K(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"perun-web-apps-resources-list",10,11),c.NdJ("refreshTable",function(){return c.CHM(i),c.oxw().refreshTable()}),c.qZA()}if(2&t){var n=c.oxw();c.Q6J("tableId",n.tableId)("filterValue",n.filterValue)("resources",n.resources)("routingVo",!0)("disableRouting",!n.routingAuth)("selection",n.selected)("groupToResource",n.group)("groupId",n.group.id)("resourcesToDisableCheckbox",n.resourcesToDisable)("displayedColumns",c.DdM(10,Y))}}var V=function(){var t=function(){function t(e,i,r,a,s){_classCallCheck(this,t),this.resourcesManager=e,this.groupService=i,this.dialog=r,this.guiAuthResolver=a,this.entityStorageService=s,this.resources=null,this.selected=new n.Ov(!0,[]),this.filterValue="",this.tableId=o.v1,this.addAuth=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.group=this.entityStorageService.getEntity(),this.setAuthorization(),this.refreshTable()}},{key:"setAuthorization",value:function(){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])}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.resourcesManager.getResourceAssignments(this.group.id).subscribe(function(e){t.resources=e.map(function(t){var e=t.enrichedResource.resource;return e.facility=t.facility,e.status=t.status,e.resourceTags=t.resourceTags,e.failureCause=t.failureCause,e.sourceGroupId=t.sourceGroupId,e}),t.selected.clear(),t.resourcesToDisable=new Set(t.resources.filter(function(t){return null!==t.sourceGroupId}).map(function(t){return t.id})),t.setAuthorization(),t.loading=!1})}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"addResource",value:function(){var t=this,e=(0,F.kZ)();e.width="1000px",e.data={theme:"group-theme",group:this.group},this.dialog.open(x,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"removeResource",value:function(){var t=this,e=(0,F.kZ)();e.width="450px",e.data={theme:"group-theme",resources:this.selected.selected,groupId:this.group.id},this.dialog.open(B,e).afterClosed().subscribe(function(e){e&&(t.selected.clear(),t.refreshTable())})}}]),t}();return t.id="GroupResourcesComponent",t.\u0275fac=function(e){return new(e||t)(c.Y36(r.xk),c.Y36(r.ff),c.Y36(a.uw),c.Y36(s.x4),c.Y36(s.fb))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-group-resources"]],viewQuery:function(t,e){var i;(1&t&&c.Gf(q,5),2&t)&&(c.iGM(i=c.CRH())&&(e.list=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&c.ekj("router-component",e.true)},decls:14,vars:15,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","filterValue","resources","routingVo","disableRouting","selection","groupToResource","groupId","resourcesToDisableCheckbox","displayedColumns","refreshTable",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","resources","routingVo","disableRouting","selection","groupToResource","groupId","resourcesToDisableCheckbox","displayedColumns","refreshTable"],["list",""]],template:function(t,e){1&t&&(c.TgZ(0,"div"),c.TgZ(1,"h1",0),c._uU(2),c.ALo(3,"translate"),c.qZA(),c.TgZ(4,"perun-web-apps-refresh-button",1),c.NdJ("refresh",function(){return e.refreshTable()}),c.qZA(),c.YNc(5,G,3,3,"button",2),c.TgZ(6,"span",3),c.ALo(7,"translate"),c.TgZ(8,"button",4),c.NdJ("click",function(){return e.removeResource()}),c._uU(9),c.ALo(10,"translate"),c.qZA(),c.qZA(),c.TgZ(11,"perun-web-apps-immediate-filter",5),c.NdJ("filter",function(t){return e.applyFilter(t)}),c.qZA(),c.YNc(12,j,1,0,"mat-spinner",6),c.YNc(13,K,2,11,"perun-web-apps-resources-list",7),c.qZA()),2&t&&(c.xp6(2),c.Oqu(c.lcZ(3,9,"GROUP_DETAIL.RESOURCES.TITLE")),c.xp6(3),c.Q6J("ngIf",e.addAuth),c.xp6(1),c.s9C("matTooltip",c.lcZ(7,11,"GROUP_DETAIL.RESOURCES.DELETE_PERMISSION_HINT")),c.Q6J("matTooltipDisabled",0===e.selected.selected.length||void 0!==e.list&&e.list.removeAuth),c.xp6(2),c.Q6J("disabled",0===e.selected.selected.length||void 0!==e.list&&!e.list.removeAuth),c.xp6(1),c.hij(" ",c.lcZ(10,13,"GROUP_DETAIL.RESOURCES.DELETE")," "),c.xp6(2),c.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),c.xp6(1),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",e.resources&&!e.loading))},directives:[H.t,l.O5,y.gM,v.lW,U.L,h.$g,p.C],pipes:[u.X$],styles:[""]}),t}()},65423:function(t,e,i){"use strict";i.d(e,{Z:function(){return F}});var n=i(68416),r=i(92438),o=i(75954),a=i(68570),s=i(24555),c=i(65249),u=i(84140),l=i(31572),h=i(84608),d=i(48160),f=i(57629),p=i(61511),g=i(67806),m=i(27679),v=i(59403),y=i(15980),_=i(92846),b=i(43691),w=i(36922),A=i(27521),k=i(16073),C=i(39571),T=["autoRegToggle"];function E(t,e){1&t&&l._UZ(0,"mat-spinner",3)}function S(t,e){if(1&t&&(l.TgZ(0,"span"),l._uU(1," , "),l.TgZ(2,"mat-icon",22),l._uU(3,"nat"),l.qZA(),l._uU(4),l.ALo(5,"translate"),l.ALo(6,"translate"),l.qZA()),2&t){var i=l.oxw(3);l.xp6(4),l.hij(" ",i.applicationForm.automaticApprovalEmbedded?l.lcZ(5,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):l.lcZ(6,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," ")}}function I(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"div"),l.TgZ(1,"mat-slide-toggle",23,24),l.NdJ("change",function(){return l.CHM(i),l.oxw(3).updateAutoRegistration()}),l._uU(3),l.ALo(4,"translate"),l.qZA(),l.qZA()}if(2&t){var n=l.oxw(3);l.xp6(1),l.Q6J("disabled",!n.changeAutoRegistration)("ngModel",n.autoRegistrationEnabled),l.xp6(2),l.hij(" ",l.lcZ(4,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ALLOW_EMBEDDED")," ")}}function R(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",25),l.NdJ("click",function(){return l.CHM(i),l.oxw(3).settings()}),l.TgZ(1,"i",12),l._uU(2,"edit"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}2&t&&(l.xp6(3),l.hij(" ",l.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function x(t,e){if(1&t&&(l.TgZ(0,"div",15),l.TgZ(1,"div",16),l.TgZ(2,"div",17),l._uU(3),l.ALo(4,"translate"),l.qZA(),l.TgZ(5,"div"),l.TgZ(6,"span",17),l._uU(7),l.ALo(8,"translate"),l.qZA(),l._uU(9,": "),l.TgZ(10,"mat-icon",18),l._uU(11,"arrow_right_alt"),l.qZA(),l._uU(12),l.ALo(13,"translate"),l.ALo(14,"translate"),l.TgZ(15,"mat-icon",19),l._uU(16,"restore"),l.qZA(),l._uU(17),l.ALo(18,"translate"),l.ALo(19,"translate"),l.YNc(20,S,7,5,"span",2),l.qZA(),l.YNc(21,I,5,5,"div",2),l.qZA(),l.TgZ(22,"div",20),l.YNc(23,R,5,3,"button",21),l.qZA(),l.qZA()),2&t){var i=l.oxw(2);l.xp6(1),l.Q6J("ngClass",i.autoRegistrationEnabled?"w-75":"w-50"),l.xp6(2),l.AsE(" ",l.lcZ(4,9,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",i.applicationForm.moduleClassName," "),l.xp6(4),l.Oqu(l.lcZ(8,11,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),l.xp6(5),l.hij(" ",i.applicationForm.automaticApproval?l.lcZ(13,13,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):l.lcZ(14,15,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL"),", "),l.xp6(5),l.hij(" ",i.applicationForm.automaticApprovalExtension?l.lcZ(18,17,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):l.lcZ(19,19,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),l.xp6(3),l.Q6J("ngIf",i.autoRegistrationEnabled),l.xp6(1),l.Q6J("ngIf",i.voHasEmbeddedGroupApplication),l.xp6(2),l.Q6J("ngIf",i.editAuth)}}function O(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",26),l.NdJ("click",function(){return l.CHM(i),l.oxw(2).add()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function P(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",27),l.NdJ("click",function(){return l.CHM(i),l.oxw(2).save()}),l.TgZ(1,"i",12),l._uU(2,"save"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}if(2&t){var n=l.oxw(2);l.Q6J("disabled",!n.itemsChanged),l.xp6(3),l.hij(" ",l.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function D(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",28),l.NdJ("click",function(){return l.CHM(i),l.oxw(2).copy()}),l.TgZ(1,"i",12),l._uU(2,"file_copy"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}2&t&&(l.xp6(3),l.hij(" ",l.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.COPY_GROUP_BUTTON")," "))}function M(t,e){1&t&&(l.TgZ(0,"app-alert",29),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}var L=function(){return["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"]},N=function(){return["shortname","type","disabled","hidden","preview","managegroups"]};function z(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"div"),l.YNc(1,x,24,21,"div",4),l._UZ(2,"mat-divider",5),l.TgZ(3,"div",6),l.TgZ(4,"perun-web-apps-refresh-button",7),l.NdJ("refresh",function(){return l.CHM(i),l.oxw().updateFormItems()}),l.qZA(),l.YNc(5,O,3,3,"button",8),l.YNc(6,P,5,4,"button",9),l.YNc(7,D,5,3,"button",10),l.TgZ(8,"button",11),l.NdJ("click",function(){return l.CHM(i),l.oxw().preview()}),l.TgZ(9,"i",12),l._uU(10,"search"),l.qZA(),l._uU(11),l.ALo(12,"translate"),l.qZA(),l.qZA(),l.YNc(13,M,3,3,"app-alert",13),l.TgZ(14,"app-application-form-list",14),l.NdJ("applicationFormItemsChange",function(){return l.CHM(i),l.oxw().changeItems()}),l.qZA(),l.qZA()}if(2&t){var n=l.oxw();l.xp6(1),l.Q6J("ngIf",!n.loading),l.xp6(4),l.Q6J("ngIf",n.editAuth),l.xp6(1),l.Q6J("ngIf",n.editAuth),l.xp6(1),l.Q6J("ngIf",n.editAuth),l.xp6(4),l.hij(" ",l.lcZ(12,12,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),l.xp6(2),l.Q6J("ngIf",n.editAuth),l.xp6(1),l.Q6J("loading",n.loading)("applicationForm",n.applicationForm)("applicationFormItems",n.applicationFormItems)("theme","group-theme")("displayedColumns",n.editAuth?l.DdM(14,L):l.DdM(15,N))("refreshApplicationForm",n.refreshApplicationForm)}}function Z(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",32),l.NdJ("click",function(){return l.CHM(i),l.oxw(2).createEmptyApplicationForm()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CREATE_APPLICATION_FORM")," "))}function B(t,e){if(1&t&&(l.TgZ(0,"div"),l.TgZ(1,"app-alert",30),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,Z,3,3,"button",31),l.qZA()),2&t){var i=l.oxw();l.xp6(2),l.Oqu(l.lcZ(3,2,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM")),l.xp6(2),l.Q6J("ngIf",i.createEmptyForm)}}var F=function(){var t=function(){function t(e,i,n,r,o,a,s,c,u){_classCallCheck(this,t),this.registrarManager=e,this.dialog=i,this.notificator=n,this.translate=r,this.apiRequest=o,this.router=a,this.guiAuthResolver=s,this.attributesManager=c,this.entityStorageService=u,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}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.group=this.entityStorageService.getEntity(),this.setAuth(),this.apiRequest.dontHandleErrorForNext(),this.registrarManager.getGroupApplicationForm(this.group.id).subscribe(function(e){t.applicationForm=e,t.registrarManager.getFormItemsForGroup(t.group.id).subscribe(function(e){t.applicationFormItems=e,t.attributesManager.getGroupAttributeByName(t.group.id,"urn:perun:group:attribute-def:virt:autoRegistrationEnabled").subscribe(function(e){t.voHasEmbeddedGroupApplication=null!==e.value,t.autoRegistrationEnabled=!!e.value,t.loading=!1})},function(){return t.loading=!1})},function(e){"FormNotExistsException"===e.error.name?(t.noApplicationForm=!0,t.loading=!1):t.notificator.showRPCError(e.error)})}},{key:"setAuth",value:function(){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])}},{key:"add",value:function(){var t=this,e=(0,u.kZ)();e.width="500px",e.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(r.J,e).afterClosed().subscribe(function(i){i&&(t.applicationFormItems=Object.assign([],i[0]),(e=(0,u.kZ)()).width="600px",e.height="600px",e.data={voId:t.group.voId,groupId:t.group.id,applicationFormItem:i[1],theme:"group-theme",allItems:t.applicationFormItems},t.dialog.open(o._,e),t.itemsChanged=!0)})}},{key:"copy",value:function(){var t=this,e=(0,u.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(a.W,e).afterClosed().subscribe(function(e){e&&t.updateFormItems()})}},{key:"settings",value:function(){var t=this,e=(0,u.kZ)();e.width="400px",e.data={entity:"group",applicationForm:this.applicationForm,theme:"group-theme",autoRegistrationEnabled:this.autoRegistrationEnabled},this.dialog.open(s.E,e).afterClosed().subscribe(function(e){e&&(t.translate.get("GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e)}),t.applicationForm=e)})}},{key:"preview",value:function(){this.router.navigate(["/organizations",this.group.voId,"groups",this.group.id,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)}})}},{key:"updateFormItems",value:function(){var t=this;this.loading=!0,this.refreshApplicationForm=!0,this.registrarManager.getFormItemsForGroup(this.group.id).subscribe(function(e){t.applicationFormItems=e,t.itemsChanged=!1,t.refreshApplicationForm=!1,t.loading=!1})}},{key:"changeItems",value:function(){this.itemsChanged=!0}},{key:"createEmptyApplicationForm",value:function(){var t=this;this.registrarManager.createApplicationFormInGroup(this.group.id).subscribe(function(){t.noApplicationForm=!1,t.ngOnInit()})}},{key:"save",value:function(){var t,e=this,i=0,n=_createForOfIteratorHelper(this.applicationFormItems);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.ordnum=i,r.forDelete||i++}}catch(o){n.e(o)}finally{n.f()}this.registrarManager.updateFormItemsForGroup({group:this.group.id,items:this.applicationFormItems}).subscribe(function(){e.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe(function(t){e.notificator.showSuccess(t)}),e.updateFormItems()})}},{key:"clear",value:function(){this.applicationFormItems=[],this.itemsChanged=!0}},{key:"updateAutoRegistration",value:function(){var t=this;this.autoRegToggle.setDisabledState(!0),this.autoRegistrationEnabled?this.registrarManager.deleteGroupsFromAutoRegistration([this.group.id]).subscribe(function(){t.autoRegistrationEnabled=!t.autoRegistrationEnabled,t.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e)}),t.autoRegToggle.setDisabledState(!1)},function(){return t.autoRegToggle.setDisabledState(!1)}):this.registrarManager.addGroupsToAutoRegistration([this.group.id]).subscribe(function(){t.autoRegistrationEnabled=!t.autoRegistrationEnabled,t.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e)}),t.autoRegToggle.setDisabledState(!1)},function(){return t.autoRegToggle.setDisabledState(!1)})}}]),t}();return t.id="GroupSettingsApplicationFormComponent",t.\u0275fac=function(e){return new(e||t)(l.Y36(c.tk),l.Y36(h.uw),l.Y36(n.V6),l.Y36(d.sK),l.Y36(n.F5),l.Y36(f.F0),l.Y36(n.x4),l.Y36(c.H8),l.Y36(n.fb))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-group-settings-application-form"]],viewQuery:function(t,e){var i;(1&t&&l.Gf(T,5),2&t)&&(l.iGM(i=l.CRH())&&(e.autoRegToggle=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("router-component",e.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"],["mat-flat-button","","color","accent","class","mr-2 action-button","data-cy","add-form-item",3,"click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2","data-cy","save-application-form",3,"disabled","click",4,"ngIf"],["mat-stroked-button","","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],["alert_type","info",4,"ngIf"],[3,"loading","applicationForm","applicationFormItems","theme","displayedColumns","refreshApplicationForm","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"],["mat-stroked-button","","class","ml-auto action-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"],["mat-flat-button","","color","accent","data-cy","add-form-item",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","accent","data-cy","save-application-form",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],["alert_type","info"],["alert_type","warn"],["mat-stroked-button","","data-cy","create-empty-form",3,"click",4,"ngIf"],["mat-stroked-button","","data-cy","create-empty-form",3,"click"]],template:function(t,e){1&t&&(l.TgZ(0,"h1",0),l._uU(1),l.ALo(2,"translate"),l.qZA(),l.YNc(3,E,1,0,"mat-spinner",1),l.YNc(4,z,15,16,"div",2),l.YNc(5,B,5,4,"div",2)),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,4,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),l.xp6(2),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.noApplicationForm),l.xp6(1),l.Q6J("ngIf",!e.loading&&e.noApplicationForm))},directives:[p.O5,g.$g,m.d,v.t,y.lW,_.b,p.mk,b.Hw,w.gM,A.Rr,k.JJ,k.On,C.w],pipes:[d.X$],styles:[""]}),t}()},82044:function(t,e,i){"use strict";i.d(e,{u:function(){return N}});var n=i(88419),r=i(4230),o=i(43491),a=i(84140),s=i(65249),c=i(67004),u=i(60611),l=i(57820),h=i(68416),d=(i(41939),i(31572)),f=i(84608),p=i(59403),g=i(61511),m=i(36922),v=i(91058),y=i(27521),_=i(16073),b=i(15980),w=i(67806),A=i(11441),k=i(78364),C=i(48160),T=["tree"],E=["list"],S=["toggle"];function I(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"button",10),d.NdJ("click",function(){return d.CHM(i),d.oxw().onCreateGroup()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}2&t&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"GROUP_DETAIL.SUBGROUPS.CREATE_GROUP")," "))}function R(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"button",11),d.NdJ("click",function(){return d.CHM(i),d.oxw().deleteGroup()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}if(2&t){var n=d.oxw();d.Q6J("disabled",0===n.selected.selected.length||void 0!==n.tree&&!n.tree.removeAuth||void 0!==n.list&&!n.list.removeAuth),d.xp6(1),d.hij(" ",d.lcZ(2,2,"GROUP_DETAIL.SUBGROUPS.DELETE_GROUP")," ")}}function x(t,e){1&t&&d._UZ(0,"mat-spinner",12)}function O(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"perun-web-apps-groups-tree",16,17),d.NdJ("moveGroup",function(t){return d.CHM(i),d.oxw(2).onMoveGroup(t)})("refreshTable",function(){return d.CHM(i),d.oxw(2).refreshTable()}),d.qZA()}if(2&t){var n=d.oxw(2);d.Q6J("groups",n.groups)("expandAll",n.filtering)("hideCheckbox",!n.deleteAuth)("selection",n.selected)("filterValue",n.filterValue)("disableRouting",!n.routeAuth)}}var P=function(){return["select","id","name","description","menu"]},D=function(){return["id","name","description","menu"]};function M(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"perun-web-apps-groups-list",18,19),d.NdJ("moveGroup",function(t){return d.CHM(i),d.oxw(2).onMoveGroup(t)})("refreshTable",function(){return d.CHM(i),d.oxw(2).refreshTable()}),d.qZA()}if(2&t){var n=d.oxw(2);d.Q6J("tableId",n.tableId)("groups",n.groups)("selection",n.selected)("authType","group-subgroups")("disableMembers",!0)("disableRouting",!n.routeAuth)("displayedColumns",n.deleteAuth?d.DdM(8,P):d.DdM(9,D))("filter",n.filterValue)}}function L(t,e){if(1&t&&(d.TgZ(0,"div",13),d.YNc(1,O,2,6,"perun-web-apps-groups-tree",14),d.YNc(2,M,2,10,"perun-web-apps-groups-list",15),d.qZA()),2&t){var i=d.oxw();d.xp6(1),d.Q6J("ngIf",!i.showGroupList),d.xp6(1),d.Q6J("ngIf",i.showGroupList)}}var N=function(){var t=function(){function t(e,i,n,o){_classCallCheck(this,t),this.dialog=e,this.groupService=i,this.guiAuthResolver=n,this.entityStorageService=o,this.groups=[],this.selected=new r.Ov(!0,[]),this.showGroupList=!1,this.filtering=!1,this.tableId=u.bf,this.filterValue=""}return _createClass(t,[{key:"onCreateGroup",value:function(){var t=this,e=(0,a.kZ)();e.width="450px",e.data={parentGroup:this.group,theme:"group-theme"},this.dialog.open(n.y,e).afterClosed().subscribe(function(e){e&&(t.loading=!0,t.refreshTable())})}},{key:"ngOnInit",value:function(){var t=this;"list"===localStorage.getItem("preferedValue")&&(this.toggle.toggle(),this.selected.clear(),this.showGroupList=!0),this.toggle.change.subscribe(function(){localStorage.setItem("preferedValue",t.toggle.checked?"list":"tree")}),this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}},{key:"setAuthRights",value:function(){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]]))}},{key:"deleteGroup",value:function(){var t=this,e=(0,a.kZ)();e.width="450px",e.data={voId:this.group.id,groups:this.selected.selected,theme:"group-theme"},this.dialog.open(o.P,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"refreshTable",value:function(){var t=this;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(function(e){t.groups=e,t.selected.clear(),t.setAuthRights(),t.loading=!1})}},{key:"applyFilter",value:function(t){this.filterValue=t,this.filtering=""!==t}},{key:"onMoveGroup",value:function(t){var e=this,i=(0,a.kZ)();i.width="550px",i.data={group:t,theme:"group-theme"},this.dialog.open(l.c,i).afterClosed().subscribe(function(t){t&&e.refreshTable()})}}]),t}();return t.id="GroupSubgroupsComponent",t.\u0275fac=function(e){return new(e||t)(d.Y36(f.uw),d.Y36(s.ff),d.Y36(h.x4),d.Y36(h.fb))},t.\u0275cmp=d.Xpm({type:t,selectors:[["app-group-subgroups"]],viewQuery:function(t,e){var i;(1&t&&(d.Gf(T,5),d.Gf(E,5),d.Gf(S,7)),2&t)&&(d.iGM(i=d.CRH())&&(e.tree=i.first),d.iGM(i=d.CRH())&&(e.list=i.first),d.iGM(i=d.CRH())&&(e.toggle=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&d.ekj("router-component",e.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,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","warn","class","mr-2","data-cy","delete-group-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"],["mat-flat-button","","color","warn","data-cy","delete-group-button",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],[3,"groups","expandAll","hideCheckbox","selection","filterValue","disableRouting","moveGroup","refreshTable",4,"ngIf"],[3,"tableId","groups","selection","authType","disableMembers","disableRouting","displayedColumns","filter","moveGroup","refreshTable",4,"ngIf"],[3,"groups","expandAll","hideCheckbox","selection","filterValue","disableRouting","moveGroup","refreshTable"],["tree",""],[3,"tableId","groups","selection","authType","disableMembers","disableRouting","displayedColumns","filter","moveGroup","refreshTable"],["list",""]],template:function(t,e){if(1&t&&(d.TgZ(0,"div"),d.TgZ(1,"h1",0),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"perun-web-apps-refresh-button",1),d.NdJ("refresh",function(){return e.refreshTable()}),d.qZA(),d.YNc(5,I,3,3,"button",2),d.TgZ(6,"span",3),d.ALo(7,"translate"),d.YNc(8,R,3,4,"button",4),d.qZA(),d.TgZ(9,"perun-web-apps-debounce-filter",5),d.NdJ("filter",function(t){return e.applyFilter(t)}),d.qZA(),d.TgZ(10,"mat-slide-toggle",6,7),d.NdJ("change",function(){return e.selected.clear()})("ngModelChange",function(t){return e.showGroupList=t}),d._uU(12),d.ALo(13,"translate"),d.qZA(),d.TgZ(14,"label"),d._uU(15),d.ALo(16,"translate"),d.qZA(),d.YNc(17,x,1,0,"mat-spinner",8),d.YNc(18,L,3,2,"div",9),d.qZA()),2&t){var i=d.MAs(11);d.xp6(2),d.Oqu(d.lcZ(3,12,"GROUP_DETAIL.SUBGROUPS.TITLE")),d.xp6(3),d.Q6J("ngIf",e.createAuth),d.xp6(1),d.s9C("matTooltip",d.lcZ(7,14,"GROUP_DETAIL.SUBGROUPS.DELETE_PERMISSION_HINT")),d.Q6J("matTooltipDisabled",void 0===e.tree&&void 0===e.list||void 0!==e.tree&&e.tree.removeAuth||void 0!==e.list&&e.list.removeAuth),d.xp6(2),d.Q6J("ngIf",e.deleteAuth),d.xp6(1),d.Q6J("placeholder","GROUP_DETAIL.SUBGROUPS.FILTER"),d.xp6(1),d.Q6J("ngModel",e.showGroupList),d.xp6(2),d.Oqu(d.lcZ(13,16,"GROUP_DETAIL.SUBGROUPS.TREE_VIEW")),d.xp6(2),d.uIk("for",i.inputId),d.xp6(1),d.Oqu(d.lcZ(16,18,"GROUP_DETAIL.SUBGROUPS.LIST_VIEW")),d.xp6(2),d.Q6J("ngIf",e.loading),d.xp6(1),d.Q6J("ngIf",!e.loading)}},directives:[p.t,g.O5,m.gM,v.P,y.Rr,_.JJ,_.On,b.lW,w.$g,A.I,k.W],pipes:[C.X$],styles:[""]}),t}()},81835:function(t,e,i){"use strict";i.d(e,{j:function(){return B}});var n=i(65249),r=i(60611),o=i(4230),a=i(84140),s=i(84608),c=i(68416),u=i(67004),l=i(31572),h=i(48160),d=i(61511),f=i(67806),p=i(19139),g=i(78364),m=i(15980);function v(t,e){1&t&&l._UZ(0,"mat-spinner",6)}function y(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"perun-web-apps-immediate-filter",7),l.NdJ("filter",function(t){return l.CHM(i),l.oxw().applyFilter(t)}),l.qZA()}2&t&&l.Q6J("placeholder","DIALOGS.ADD_MEMBER_GROUP.FILTER")}var _=function(){return["select","id","name","description"]};function b(t,e){if(1&t&&l._UZ(0,"perun-web-apps-groups-list",8),2&t){var i=l.oxw();l.Q6J("groups",i.groups)("selection",i.selection)("displayedColumns",l.DdM(8,_))("filter",i.filterValue)("groupsToDisableCheckbox",i.membersGroups)("disableGroups",!0)("disableRouting",!0)("disableMembers",!0)}}function w(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"div",9),l.TgZ(1,"button",10),l.NdJ("click",function(){return l.CHM(i),l.oxw().onCancel()}),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"button",11),l.NdJ("click",function(){return l.CHM(i),l.oxw().onAdd()}),l._uU(5),l.ALo(6,"translate"),l.qZA(),l.qZA()}if(2&t){var n=l.oxw();l.xp6(2),l.hij(" ",l.lcZ(3,3,"DIALOGS.ADD_MEMBER_GROUP.CANCEL")," "),l.xp6(2),l.Q6J("disabled",0===n.selection.selected.length),l.xp6(1),l.hij(" ",l.lcZ(6,5,"DIALOGS.ADD_MEMBER_GROUP.ADD")," ")}}var A=function(){var t=function(){function t(e,i,n,r,a,s,c){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.groupManager=n,this.memberManager=r,this.notificator=a,this.translate=s,this.authResolver=c,this.loading=!1,this.groups=[],this.selection=new o.Ov(!0,[]),this.attrNames=[u.r.GROUP_SYNC_ENABLED,u.r.GROUP_LAST_SYNC_STATE,u.r.GROUP_LAST_SYNC_TIMESTAMP,u.r.GROUP_STRUCTURE_SYNC_ENABLED,u.r.GROUP_LAST_STRUCTURE_SYNC_STATE,u.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP],this.filterValue=""}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.theme=this.data.theme,this.membersGroups=this.data.membersGroups,this.loading=!0,this.memberManager.getMemberById(this.data.memberId).subscribe(function(e){t.member=e,t.groupManager.getAllRichGroupsWithAttributesByNames(t.member.voId,t.attrNames).subscribe(function(e){t.groups=e.filter(function(e){return t.authResolver.isAuthorized("addMember_Group_Member_policy",[e])}),t.loading=!1},function(){return t.loading=!1})})}},{key:"onAdd",value:function(){var t=this,e=this.selection.selected.map(function(t){return t.id});this.loading=!0,this.groupManager.addMember(e,this.member.id).subscribe(function(){t.notificator.showSuccess(t.translate.instant("DIALOGS.ADD_MEMBER_GROUP.SUCCESS")),t.dialogRef.close(!0)},function(){return t.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"applyFilter",value:function(t){this.filterValue=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Y36(s.so),l.Y36(s.WI),l.Y36(n.ff),l.Y36(n.uq),l.Y36(c.V6),l.Y36(h.sK),l.Y36(c.x4))},t.\u0275cmp=l.Xpm({type:t,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,"groups","selection","displayedColumns","filter","groupsToDisableCheckbox","disableGroups","disableRouting","disableMembers",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"placeholder","filter"],[3,"groups","selection","displayedColumns","filter","groupsToDisableCheckbox","disableGroups","disableRouting","disableMembers"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,v,1,0,"mat-spinner",1),l.TgZ(5,"div",2),l.YNc(6,y,1,1,"perun-web-apps-immediate-filter",3),l.YNc(7,b,1,9,"perun-web-apps-groups-list",4),l.qZA(),l.YNc(8,w,7,7,"div",5),l.qZA()),2&t&&(l.Tol(e.theme),l.xp6(2),l.Oqu(l.lcZ(3,8,"DIALOGS.ADD_MEMBER_GROUP.TITLE")),l.xp6(2),l.Q6J("ngIf",e.loading),l.xp6(2),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[s.uh,d.O5,s.xY,f.$g,p.L,g.W,s.H8,m.lW],pipes:[h.X$],styles:[""]}),t}(),k=i(67033);function C(t,e){1&t&&l._UZ(0,"mat-spinner",6)}function T(t,e){1&t&&l._UZ(0,"th",15)}function E(t,e){if(1&t&&(l.TgZ(0,"td",16),l._uU(1),l.qZA()),2&t){var i=e.$implicit;l.xp6(1),l.Oqu(i.name)}}function S(t,e){1&t&&l._UZ(0,"tr",17)}function I(t,e){1&t&&l._UZ(0,"tr",18)}function R(t,e){if(1&t&&(l.TgZ(0,"div",7),l.TgZ(1,"p"),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.TgZ(4,"div",8),l._uU(5),l.ALo(6,"translate"),l.qZA(),l.TgZ(7,"table",9),l.ynx(8,10),l.YNc(9,T,1,0,"th",11),l.YNc(10,E,2,1,"td",12),l.BQk(),l.YNc(11,S,1,0,"tr",13),l.YNc(12,I,1,0,"tr",14),l.qZA(),l.qZA()),2&t){var i=l.oxw();l.xp6(2),l.Oqu(l.lcZ(3,5,"DIALOGS.REMOVE_MEMBER_GROUP.DESCRIPTION")),l.xp6(3),l.hij(" ",l.lcZ(6,7,"DIALOGS.REMOVE_MEMBER_GROUP.ASK")," "),l.xp6(2),l.Q6J("dataSource",i.dataSource),l.xp6(4),l.Q6J("matHeaderRowDef",i.displayedColumns),l.xp6(1),l.Q6J("matRowDefColumns",i.displayedColumns)}}var x=function(){var t=function(){function t(e,i,n,r,o){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.groupManager=n,this.notificator=r,this.translate=o,this.displayedColumns=["name"],this.loading=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new k.by(this.data.groups)}},{key:"onRemove",value:function(){var t=this;this.loading=!0;var e=this.dataSource.data.map(function(t){return t.id});this.groupManager.removeMember(e,this.data.memberId).subscribe(function(){t.notificator.showSuccess(t.translate.instant("DIALOGS.REMOVE_MEMBER_GROUP.SUCCESS")),t.dialogRef.close(!0)},function(){return t.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Y36(s.so),l.Y36(s.WI),l.Y36(n.ff),l.Y36(c.V6),l.Y36(h.sK))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-remove-member-group-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-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,"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"],["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(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,C,1,0,"mat-spinner",1),l.YNc(5,R,13,9,"div",2),l.TgZ(6,"div",3),l.TgZ(7,"button",4),l.NdJ("click",function(){return e.onCancel()}),l._uU(8),l.ALo(9,"translate"),l.qZA(),l.TgZ(10,"button",5),l.NdJ("click",function(){return e.onRemove()}),l._uU(11),l.ALo(12,"translate"),l.qZA(),l.qZA(),l.qZA()),2&t&&(l.Tol(e.theme),l.xp6(2),l.Oqu(l.lcZ(3,9,"DIALOGS.REMOVE_MEMBER_GROUP.TITLE")),l.xp6(2),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading),l.xp6(3),l.hij(" ",l.lcZ(9,11,"DIALOGS.REMOVE_MEMBER_GROUP.CANCEL")," "),l.xp6(2),l.Q6J("disabled",e.loading),l.xp6(1),l.hij(" ",l.lcZ(12,13,"DIALOGS.REMOVE_MEMBER_GROUP.REMOVE")," "))},directives:[s.uh,d.O5,s.H8,m.lW,f.$g,s.xY,k.BZ,k.w1,k.fO,k.Dz,k.as,k.nj,k.ge,k.ev,k.XQ,k.Gk],pipes:[h.X$],styles:[""]}),t}();i(41939);var O=i(57629),P=i(59403),D=i(36922),M=["list"];function L(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",8),l.NdJ("click",function(){return l.CHM(i),l.oxw().addGroup()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"MEMBER_DETAIL.GROUPS.ADD"),"\n"))}function N(t,e){1&t&&l._UZ(0,"mat-spinner",9)}var z=function(){return["select","id","vo","name","description","expiration"]};function Z(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"perun-web-apps-groups-list",10,11),l.NdJ("refreshTable",function(){return l.CHM(i),l.oxw().refreshTable()}),l.qZA()}if(2&t){var n=l.oxw();l.Q6J("tableId",n.tableId)("groups",n.groups)("displayedColumns",l.DdM(9,z))("selection",n.selection)("filter",n.filterValue)("memberId",n.memberId)("memberGroupStatus",n.member.groupStatus)("disableRouting",!n.routeAuth)("authType","member-groups")}}var B=function(){var t=function(){function t(e,i,n,a,s){_classCallCheck(this,t),this.groupsService=e,this.route=i,this.dialog=n,this.authResolver=a,this.memberService=s,this.filterValue="",this.tableId=r.W1,this.selection=new o.Ov(!0,[])}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.route.parent.params.subscribe(function(e){t.memberId=e.memberId,t.memberService.getMemberById(t.memberId).subscribe(function(e){t.member=e,t.groupsService.getAllGroups(t.member.voId).subscribe(function(e){t.allGroups=e,t.refreshTable()})})})}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.groupsService.getMemberRichGroupsWithAttributesByNames(this.memberId,["urn:perun:member_group:attribute-def:def:groupMembershipExpiration"]).subscribe(function(e){t.selection.clear(),t.groups=e,t.setAuthRights(),t.loading=!1},function(){return t.loading=!1})}},{key:"setAuthRights",value:function(){var t=this,e={id:this.member.voId,beanName:"Vo"};this.addAuth=this.allGroups.reduce(function(e,i){return e||t.authResolver.isAuthorized("addMember_Group_Member_policy",[i])},!1),0!==this.groups.length&&(this.routeAuth=this.authResolver.isAuthorized("getGroupById_int_policy",[e,this.groups[0]]))}},{key:"addGroup",value:function(){var t=this,e=(0,a.kZ)();e.width="850px",e.data={memberId:this.memberId,membersGroups:new Set(this.groups.map(function(t){return t.id})),theme:"member-theme"},this.dialog.open(A,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"removeGroup",value:function(){var t=this,e=(0,a.kZ)();e.width="650px",e.data={memberId:this.memberId,groups:this.selection.selected,theme:"member-theme"},this.dialog.open(x,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}},{key:"applyFilter",value:function(t){this.filterValue=t}}]),t}();return t.id="MemberGroupsComponent",t.\u0275fac=function(e){return new(e||t)(l.Y36(n.ff),l.Y36(O.gz),l.Y36(s.uw),l.Y36(c.x4),l.Y36(n.uq))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-member-groups"]],viewQuery:function(t,e){var i;(1&t&&l.Gf(M,5),2&t)&&(l.iGM(i=l.CRH())&&(e.list=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("router-component",e.true)},decls:13,vars:15,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"tableId","groups","displayedColumns","selection","filter","memberId","memberGroupStatus","disableRouting","authType","refreshTable",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],[1,"mr-auto","ml-auto"],[3,"tableId","groups","displayedColumns","selection","filter","memberId","memberGroupStatus","disableRouting","authType","refreshTable"],["list",""]],template:function(t,e){1&t&&(l.TgZ(0,"h1",0),l._uU(1),l.ALo(2,"translate"),l.qZA(),l.TgZ(3,"perun-web-apps-refresh-button",1),l.NdJ("refresh",function(){return e.refreshTable()}),l.qZA(),l.YNc(4,L,3,3,"button",2),l.TgZ(5,"span",3),l.ALo(6,"translate"),l.TgZ(7,"button",4),l.NdJ("click",function(){return e.removeGroup()}),l._uU(8),l.ALo(9,"translate"),l.qZA(),l.qZA(),l.TgZ(10,"perun-web-apps-immediate-filter",5),l.NdJ("filter",function(t){return e.applyFilter(t)}),l.qZA(),l.YNc(11,N,1,0,"mat-spinner",6),l.YNc(12,Z,2,10,"perun-web-apps-groups-list",7)),2&t&&(l.xp6(1),l.Oqu(l.lcZ(2,9,"MEMBER_DETAIL.GROUPS.TITLE")),l.xp6(3),l.Q6J("ngIf",e.addAuth),l.xp6(1),l.s9C("matTooltip",l.lcZ(6,11,"MEMBER_DETAIL.GROUPS.REMOVE_PERMISSION_HINT")),l.Q6J("matTooltipDisabled",void 0===e.list||void 0!==e.list&&e.list.removeAuth),l.xp6(2),l.Q6J("disabled",0===e.selection.selected.length||void 0!==e.list&&!e.list.removeAuth),l.xp6(1),l.hij(" ",l.lcZ(9,13,"MEMBER_DETAIL.GROUPS.REMOVE")," "),l.xp6(2),l.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[P.t,d.O5,D.gM,m.lW,p.L,f.$g,g.W],pipes:[h.X$],styles:[""]}),t}()},40659:function(t,e,i){"use strict";i.d(e,{c:function(){return S}});var n=i(65249),r=i(60611),o=i(16073),a=i(61511),s=i(68416),c=i(31572),u=i(59403),l=i(66283),h=i(4786),d=i(71522),f=i(91058),p=i(51613),g=i(29236),m=i(15980),v=i(67806),y=i(21548),_=i(29851),b=i(48160);function w(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"button",16),c.NdJ("click",function(){return c.CHM(i),c.oxw().showAllDetails=!0}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function A(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"button",16),c.NdJ("click",function(){return c.CHM(i),c.oxw().showAllDetails=!1}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}function k(t,e){1&t&&c._UZ(0,"mat-spinner",17)}function C(t,e){if(1&t&&c._UZ(0,"app-applications-list",20),2&t){var i=c.oxw(2);c.Q6J("tableId",i.tableId)("filterValue",i.filterValue)("applications",i.applications)("displayedColumns",i.displayedColumns)}}function T(t,e){if(1&t&&c._UZ(0,"app-perun-web-apps-application-list-details",21),2&t){var i=c.oxw(2);c.Q6J("tableId",i.detailTableId)("filterValue",i.filterValue)("applications",i.applications)}}function E(t,e){if(1&t&&(c.TgZ(0,"div"),c.YNc(1,C,1,4,"app-applications-list",18),c.YNc(2,T,1,3,"app-perun-web-apps-application-list-details",19),c.qZA()),2&t){var i=c.oxw();c.xp6(1),c.Q6J("ngIf",!i.showAllDetails),c.xp6(1),c.Q6J("ngIf",i.showAllDetails)}}var S=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.registrarManager=e,this.entityStorageService=i,this.state="pending",this.loading=!1,this.applications=[],this.displayedColumns=["id","createdAt","type","state","user","group","modifiedBy"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=r.Jf,this.tableId=r.Hi,this.checked=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.startDate=new o.NI((0,a.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new o.NI((0,a.p6)(new Date,"yyyy-MM-dd","en-GB")),this.setData(["NEW","VERIFIED"])}},{key:"setData",value:function(t){var e=this;this.registrarManager.getApplicationsForVo(this.vo.id,t,(0,a.p6)(this.startDate.value,"yyyy-MM-dd","en-GB"),(0,a.p6)(this.endDate.value,"yyyy-MM-dd","en-GB")).subscribe(function(t){e.applications=!1===e.checked?t.filter(function(t){return null===t.group}):t,e.loading=!1})}},{key:"select",value:function(){switch(this.loading=!0,this.state){case"approved":this.setData(["APPROVED"]);break;case"rejected":this.setData(["REJECTED"]);break;case"wfmv":this.setData(["NEW"]);break;case"submited":this.setData(["VERIFIED"]);break;case"pending":this.setData(["NEW","VERIFIED"]);break;case"all":this.setData(null)}}},{key:"yearAgo",value:function(){var t=new Date,e=t.getFullYear()-1,i=t.getMonth(),n=t.getDate();return new Date(e,i,n)}},{key:"showGroupApplications",value:function(t){this.checked=t.checked,this.select()}},{key:"applyFilter",value:function(t){this.filterValue=t}}]),t}();return t.id="VoApplicationsComponent",t.\u0275fac=function(e){return new(e||t)(c.Y36(n.tk),c.Y36(s.fb))},t.\u0275cmp=c.Xpm({type:t,selectors:[["app-vo-applications"]],hostVars:2,hostBindings:function(t,e){2&t&&c.ekj("router-component",e.true)},decls:38,vars:36,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,"startDate","endDate","datePicker"],["color","primary",3,"checked","change"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","applications","displayedColumns",4,"ngIf"],[3,"tableId","filterValue","applications",4,"ngIf"],[3,"tableId","filterValue","applications","displayedColumns"],[3,"tableId","filterValue","applications"]],template:function(t,e){1&t&&(c.TgZ(0,"h1",0),c._uU(1),c.ALo(2,"translate"),c.qZA(),c.TgZ(3,"div"),c.TgZ(4,"perun-web-apps-refresh-button",1),c.NdJ("refresh",function(){return e.select()}),c.qZA(),c.YNc(5,w,3,3,"button",2),c.YNc(6,A,3,3,"button",2),c.TgZ(7,"mat-form-field",3),c.TgZ(8,"mat-label"),c._uU(9),c.ALo(10,"translate"),c.qZA(),c.TgZ(11,"mat-select",4),c.NdJ("selectionChange",function(){return e.select()})("valueChange",function(t){return e.state=t}),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.qZA(),c.qZA(),c.TgZ(30,"perun-web-apps-debounce-filter",11),c.NdJ("filter",function(t){return e.applyFilter(t)}),c.qZA(),c.TgZ(31,"perun-web-apps-date-range",12),c.NdJ("datePicker",function(){return e.select()}),c.qZA(),c.TgZ(32,"div"),c.TgZ(33,"mat-checkbox",13),c.NdJ("change",function(t){return e.showGroupApplications(t)}),c._uU(34),c.ALo(35,"translate"),c.qZA(),c.qZA(),c.qZA(),c.YNc(36,k,1,0,"mat-spinner",14),c.YNc(37,E,3,2,"div",15)),2&t&&(c.xp6(1),c.Oqu(c.lcZ(2,18,"VO_DETAIL.APPLICATION.TITLE")),c.xp6(4),c.Q6J("ngIf",!e.showAllDetails),c.xp6(1),c.Q6J("ngIf",e.showAllDetails),c.xp6(3),c.Oqu(c.lcZ(10,20,"VO_DETAIL.APPLICATION.TABLE_STATE")),c.xp6(2),c.Q6J("value",e.state),c.xp6(2),c.Oqu(c.lcZ(14,22,"VO_DETAIL.APPLICATION.SELECTION_ALL")),c.xp6(3),c.Oqu(c.lcZ(17,24,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),c.xp6(3),c.Oqu(c.lcZ(20,26,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),c.xp6(3),c.Oqu(c.lcZ(23,28,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),c.xp6(3),c.Oqu(c.lcZ(26,30,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),c.xp6(3),c.Oqu(c.lcZ(29,32,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),c.xp6(2),c.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),c.xp6(1),c.Q6J("startDate",e.startDate)("endDate",e.endDate),c.xp6(2),c.Q6J("checked",e.checked),c.xp6(1),c.hij(" ",c.lcZ(35,34,"VO_DETAIL.APPLICATION.SHOW_GROUP_APPLICATIONS")," "),c.xp6(2),c.Q6J("ngIf",e.loading),c.xp6(1),c.Q6J("ngIf",!e.loading))},directives:[u.t,a.O5,l.KE,l.hX,h.gD,d.ey,f.P,p.S,g.oG,m.lW,v.$g,y.M,_.w],pipes:[b.X$],styles:[""]}),t}()},48002:function(t,e,i){"use strict";i.d(e,{G:function(){return N}});var n=i(88419),r=i(43491),o=i(4230),a=i(57820),s=i(84140),c=i(65249),u=i(60611),l=i(67004),h=i(68416),d=(i(41939),i(31572)),f=i(84608),p=i(59403),g=i(61511),m=i(36922),v=i(15980),y=i(91058),_=i(27521),b=i(16073),w=i(67806),A=i(11441),k=i(78364),C=i(39571),T=i(48160),E=["toggle"],S=["tree"],I=["list"];function R(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"button",11),d.NdJ("click",function(){return d.CHM(i),d.oxw().onCreateGroup()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}2&t&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"VO_DETAIL.GROUPS.CREATE_GROUP")," "))}function x(t,e){1&t&&d._UZ(0,"mat-spinner",12)}function O(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"perun-web-apps-groups-tree",16,17),d.NdJ("moveGroup",function(t){return d.CHM(i),d.oxw(2).onMoveGroup(t)})("refreshTable",function(){return d.CHM(i),d.oxw(2).loadAllGroups()}),d.qZA()}if(2&t){var n=d.oxw(2);d.Q6J("groups",n.groups)("expandAll",n.filtering)("vo",n.vo)("selection",n.selected)("disableRouting",!n.routeAuth)("filterValue",n.filterValue)}}var P=function(){return["select","id","name","description","menu"]};function D(t,e){if(1&t){var i=d.EpF();d.TgZ(0,"perun-web-apps-groups-list",18,19),d.NdJ("moveGroup",function(t){return d.CHM(i),d.oxw(2).onMoveGroup(t)})("refreshTable",function(){return d.CHM(i),d.oxw(2).loadAllGroups()}),d.qZA()}if(2&t){var n=d.oxw(2);d.Q6J("tableId",n.tableId)("groups",n.groups)("selection",n.selected)("disableMembers",!0)("displayedColumns",d.DdM(8,P))("disableRouting",!n.routeAuth)("authType","vo-groups")("filter",n.filterValue)}}function M(t,e){if(1&t&&(d.TgZ(0,"div",13),d.YNc(1,O,2,6,"perun-web-apps-groups-tree",14),d.YNc(2,D,2,9,"perun-web-apps-groups-list",15),d.qZA()),2&t){var i=d.oxw();d.xp6(1),d.Q6J("ngIf",!i.showGroupList),d.xp6(1),d.Q6J("ngIf",i.showGroupList)}}function L(t,e){1&t&&(d.TgZ(0,"app-alert",20),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"VO_DETAIL.GROUPS.NO_GROUPS")," "))}var N=function(){var t=function(){function t(e,i,n,r){_classCallCheck(this,t),this.dialog=e,this.groupService=i,this.authResolver=n,this.entityStorageService=r,this.groups=[],this.showGroupList=!1,this.selected=new o.Ov(!0,[]),this.filtering=!1,this.filterValue="",this.tableId=u.rc}return _createClass(t,[{key:"onCreateGroup",value:function(){var t=this,e=(0,s.kZ)();e.width="450px",e.data={voId:this.vo.id,parentGroup:null,theme:"vo-theme"},this.dialog.open(n.y,e).afterClosed().subscribe(function(e){e&&(t.loading=!0,t.loadAllGroups())})}},{key:"ngOnInit",value:function(){var t=this;this.loading=!0,"list"===localStorage.getItem("preferedValue")&&(this.toggle.toggle(),this.selected.clear(),this.showGroupList=!0),this.toggle.change.subscribe(function(){localStorage.setItem("preferedValue",t.toggle.checked?"list":"tree"),t.loadAllGroups()}),this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.loadAllGroups()}},{key:"setAuthRights",value:function(){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]]))}},{key:"disableRemove",value:function(){return void 0!==this.tree&&!this.tree.removeAuth||void 0!==this.list&&!this.list.removeAuth}},{key:"disableTooltip",value:function(){return void 0!==this.tree&&this.tree.removeAuth||void 0!==this.list&&this.list.removeAuth}},{key:"deleteGroup",value:function(){var t=this,e=(0,s.kZ)();e.width="450px",e.data={voId:this.vo.id,groups:this.selected.selected,theme:"vo-theme"},this.dialog.open(r.P,e).afterClosed().subscribe(function(e){e&&t.loadAllGroups()})}},{key:"removeAllGroups",value:function(){this.selected.clear()}},{key:"onMoveGroup",value:function(t){var e=this,i=(0,s.kZ)();i.width="550px",i.data={group:t,theme:"vo-theme"},this.dialog.open(a.c,i).afterClosed().subscribe(function(t){t&&e.loadAllGroups()})}},{key:"loadAllGroups",value:function(){var t=this;this.loading=!0,this.groupService.getAllRichGroupsWithAttributesByNames(this.vo.id,[l.r.GROUP_SYNC_ENABLED,l.r.GROUP_LAST_SYNC_STATE,l.r.GROUP_LAST_SYNC_TIMESTAMP,l.r.GROUP_STRUCTURE_SYNC_ENABLED,l.r.GROUP_LAST_STRUCTURE_SYNC_STATE,l.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(function(e){t.groups=e,t.selected.clear(),t.setAuthRights(),t.loading=!1})}},{key:"applyFilter",value:function(t){this.filterValue=t,this.filtering=""!==t}}]),t}();return t.id="VoGroupsComponent",t.\u0275fac=function(e){return new(e||t)(d.Y36(f.uw),d.Y36(c.ff),d.Y36(h.x4),d.Y36(h.fb))},t.\u0275cmp=d.Xpm({type:t,selectors:[["app-vo-groups"]],viewQuery:function(t,e){var i;(1&t&&(d.Gf(E,7),d.Gf(S,5),d.Gf(I,5)),2&t)&&(d.iGM(i=d.CRH())&&(e.toggle=i.first),d.iGM(i=d.CRH())&&(e.tree=i.first),d.iGM(i=d.CRH())&&(e.list=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&d.ekj("router-component",e.true)},decls:22,vars:24,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2 action-button","data-cy","create-group-button",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","warn","data-cy","delete-group-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"],["mat-flat-button","","color","accent","data-cy","create-group-button",1,"mr-2","action-button",3,"click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],["theme","vo-theme",3,"groups","expandAll","vo","selection","disableRouting","filterValue","moveGroup","refreshTable",4,"ngIf"],["theme","vo-theme",3,"tableId","groups","selection","disableMembers","displayedColumns","disableRouting","authType","filter","moveGroup","refreshTable",4,"ngIf"],["theme","vo-theme",3,"groups","expandAll","vo","selection","disableRouting","filterValue","moveGroup","refreshTable"],["tree",""],["theme","vo-theme",3,"tableId","groups","selection","disableMembers","displayedColumns","disableRouting","authType","filter","moveGroup","refreshTable"],["list",""],["alert_type","warn"]],template:function(t,e){if(1&t&&(d.TgZ(0,"div"),d.TgZ(1,"h1",0),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"perun-web-apps-refresh-button",1),d.NdJ("refresh",function(){return e.loadAllGroups()}),d.qZA(),d.YNc(5,R,3,3,"button",2),d.TgZ(6,"span",3),d.ALo(7,"translate"),d.TgZ(8,"button",4),d.NdJ("click",function(){return e.deleteGroup()}),d._uU(9),d.ALo(10,"translate"),d.qZA(),d.qZA(),d.TgZ(11,"perun-web-apps-debounce-filter",5),d.NdJ("filter",function(t){return e.applyFilter(t)}),d.qZA(),d.TgZ(12,"mat-slide-toggle",6,7),d.NdJ("change",function(){return e.removeAllGroups()})("ngModelChange",function(t){return e.showGroupList=t}),d._uU(14),d.ALo(15,"translate"),d.qZA(),d.TgZ(16,"label"),d._uU(17),d.ALo(18,"translate"),d.qZA(),d.YNc(19,x,1,0,"mat-spinner",8),d.YNc(20,M,3,2,"div",9),d.YNc(21,L,3,3,"app-alert",10),d.qZA()),2&t){var i=d.MAs(13);d.xp6(2),d.Oqu(d.lcZ(3,14,"VO_DETAIL.GROUPS.TITLE")),d.xp6(3),d.Q6J("ngIf",e.createAuth),d.xp6(1),d.s9C("matTooltip",d.lcZ(7,16,"VO_DETAIL.GROUPS.DELETE_PERMISSION_HINT")),d.Q6J("matTooltipDisabled",void 0===e.tree&&void 0===e.list||e.disableTooltip()),d.xp6(2),d.Q6J("disabled",0===e.selected.selected.length||e.disableRemove()),d.xp6(1),d.hij(" ",d.lcZ(10,18,"VO_DETAIL.GROUPS.DELETE_GROUP")," "),d.xp6(2),d.Q6J("placeholder","VO_DETAIL.GROUPS.FILTER"),d.xp6(1),d.Q6J("ngModel",e.showGroupList),d.xp6(2),d.Oqu(d.lcZ(15,20,"VO_DETAIL.GROUPS.TREE_VIEW")),d.xp6(2),d.uIk("for",i.inputId),d.xp6(1),d.Oqu(d.lcZ(18,22,"VO_DETAIL.GROUPS.LIST_VIEW")),d.xp6(2),d.Q6J("ngIf",e.loading),d.xp6(1),d.Q6J("ngIf",!e.loading&&0!==e.groups.length),d.xp6(1),d.Q6J("ngIf",0===e.groups.length&&!e.loading)}},directives:[p.t,g.O5,m.gM,v.lW,y.P,_.Rr,b.JJ,b.On,w.$g,A.I,k.W,C.w],pipes:[T.X$],styles:[""]}),t}()},28940:function(t,e,i){"use strict";i.d(e,{y:function(){return D}});var n=i(4230),r=i(68416),o=i(4374),a=i(85613),s=i(65249),c=i(67004),u=i(16073),l=i(60611),h=i(84140),d=i(88690),f=i(31572),p=i(84608),g=i(59403),m=i(36922),v=i(61511),y=i(66283),_=i(4786),b=i(91058),w=i(15980),A=i(71522),k=i(67806),C=i(91779),T=i(48160),E=i(5725);function S(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",14),f.NdJ("click",function(){return f.CHM(i),f.oxw().onAddMember()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}if(2&t){var n=f.oxw();f.Q6J("disabled",n.blockManualMemberAdding),f.xp6(1),f.hij(" ",f.lcZ(2,2,"VO_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function I(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",15),f.NdJ("click",function(){return f.CHM(i),f.oxw().onInviteMember()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"VO_DETAIL.MEMBERS.INVITE")," "))}function R(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",16),f.NdJ("click",function(){return f.CHM(i),f.oxw().onRemoveMembers()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}if(2&t){var n=f.oxw();f.Q6J("disabled",n.selection.isEmpty()),f.xp6(1),f.hij(" ",f.lcZ(2,2,"VO_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function x(t,e){if(1&t&&(f.TgZ(0,"mat-option",17),f._uU(1),f.ALo(2,"memberStatus"),f.qZA()),2&t){var i=e.$implicit;f.Q6J("value",i),f.xp6(1),f.Oqu(f.lcZ(2,2,i))}}function O(t,e){1&t&&f._UZ(0,"mat-spinner",18)}function P(t,e){if(1&t&&f._UZ(0,"perun-web-apps-members-dynamic-list",19),2&t){var i=f.oxw();f.Q6J("voId",i.vo.id)("tableId",i.tableId)("selection",i.selection)("displayedColumns",i.displayedColumns)("attrNames",i.attrNames)("searchString",i.searchString)("selectedStatuses",i.selectedStatuses)("updateTable",i.updateTable)}}var D=function(){var t=function(){function t(e,i,r,o,a,s,h){_classCallCheck(this,t),this.notificator=e,this.dialog=i,this.authzService=r,this.storeService=o,this.attributesManager=a,this.apiRequest=s,this.entityStorageService=h,this.members=null,this.selection=new n.Ov(!0,[]),this.loading=!1,this.attrNames=[c.r.MEMBER_DEF_ORGANIZATION,c.r.MEMBER_DEF_MAIL,c.r.USER_DEF_ORGANIZATION,c.r.USER_DEF_PREFERRED_MAIL,c.r.MEMBER_DEF_EXPIRATION],this.statuses=new u.NI,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=[],this.tableId=l.j1,this.displayedColumns=["checkbox","id","fullName","status","organization","email","logins"],this.updateTable=!1}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;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(function(){return t.loading=!1})}},{key:"setAuthRights",value:function(){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])}},{key:"onSearchByString",value:function(t){this.searchString=t,this.updateTable=!this.updateTable}},{key:"onAddMember",value:function(){var t=this,e=(0,h.kZ)();e.width="1000px",e.data={entityId:this.vo.id,voId:this.vo.id,theme:"vo-theme",type:"vo"},this.dialog.open(a.o,e).afterClosed().subscribe(function(e){e&&(t.updateTable=!t.updateTable,t.selection.clear())})}},{key:"onRemoveMembers",value:function(){var t=this,e=(0,h.kZ)();e.width="450px",e.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(o.X,e).afterClosed().subscribe(function(e){e&&(t.updateTable=!t.updateTable,t.selection.clear())})}},{key:"onInviteMember",value:function(){var t=(0,h.kZ)();t.width="650px",t.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(d.R,t)}},{key:"displaySelectedStatuses",value:function(){return this.selectedStatuses.length===this.statusList.length?"ALL":this.statuses.value?"".concat(this.statuses.value[0]," ").concat(this.statuses.value.length>1?"(+"+(this.statuses.value.length-1)+" "+(2===this.statuses.value.length?"other)":"others)"):""):""}},{key:"isManualAddingBlocked",value:function(t){var e=this;return new Promise(function(i){e.apiRequest.dontHandleErrorForNext(),e.attributesManager.getVoAttributeByName(t,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe(function(t){e.blockManualMemberAdding=null!==t.value,i()},function(t){"PrivilegeException"!==t.error.name&&e.notificator.showError(t),i()})})}},{key:"changeStatuses",value:function(){this.selectedStatuses=this.statuses.value}}]),t}();return t.id="VoMembersComponent",t.\u0275fac=function(e){return new(e||t)(f.Y36(r.V6),f.Y36(p.uw),f.Y36(r.x4),f.Y36(r.d6),f.Y36(s.H8),f.Y36(r.F5),f.Y36(r.fb))},t.\u0275cmp=f.Xpm({type:t,selectors:[["app-vo-members"]],hostVars:2,hostBindings:function(t,e){2&t&&f.ekj("router-component",e.true)},decls:23,vars:21,consts:[[1,"vo-theme"],[1,"page-subtitle"],[1,"align-elements"],[3,"click"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent","class","mr-2 action-button","data-cy","add-members",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2","data-cy","remove-members",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,"voId","tableId","selection","displayedColumns","attrNames","searchString","selectedStatuses","updateTable",4,"ngIf"],["mat-flat-button","","color","accent","data-cy","add-members",1,"mr-2","action-button",3,"disabled","click"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn","data-cy","remove-members",1,"mr-2",3,"disabled","click"],[1,"vo-theme",3,"value"],[1,"ml-auto","mr-auto"],[3,"voId","tableId","selection","displayedColumns","attrNames","searchString","selectedStatuses","updateTable"]],template:function(t,e){1&t&&(f.TgZ(0,"div",0),f.TgZ(1,"h1",1),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"div",2),f.TgZ(5,"perun-web-apps-refresh-button",3),f.NdJ("click",function(){return e.updateTable=!e.updateTable}),f.qZA(),f.TgZ(6,"div",4),f.ALo(7,"translate"),f.YNc(8,S,3,4,"button",5),f.qZA(),f.YNc(9,I,3,3,"button",6),f.YNc(10,R,3,4,"button",7),f.TgZ(11,"mat-form-field",8),f.TgZ(12,"mat-label"),f._uU(13),f.ALo(14,"translate"),f.qZA(),f.TgZ(15,"mat-select",9),f.NdJ("closed",function(){return e.changeStatuses()}),f.TgZ(16,"mat-select-trigger"),f._uU(17),f.ALo(18,"memberStatus"),f.qZA(),f.YNc(19,x,3,4,"mat-option",10),f.qZA(),f.qZA(),f.TgZ(20,"perun-web-apps-debounce-filter",11),f.NdJ("filter",function(t){return e.onSearchByString(t)}),f.qZA(),f.qZA(),f.YNc(21,O,1,0,"mat-spinner",12),f.YNc(22,P,1,8,"perun-web-apps-members-dynamic-list",13),f.qZA()),2&t&&(f.xp6(2),f.Oqu(f.lcZ(3,13,"VO_DETAIL.MEMBERS.TITLE")),f.xp6(4),f.s9C("matTooltip",f.lcZ(7,15,"VO_DETAIL.MEMBERS.ADD_MEMBER_DISABLED")),f.Q6J("matTooltipDisabled",!e.blockManualMemberAdding),f.xp6(2),f.Q6J("ngIf",e.addAuth),f.xp6(1),f.Q6J("ngIf",e.inviteAuth),f.xp6(1),f.Q6J("ngIf",e.removeAuth),f.xp6(3),f.Oqu(f.lcZ(14,17,"VO_DETAIL.MEMBERS.FILTER_STATUS")),f.xp6(2),f.Q6J("formControl",e.statuses),f.xp6(2),f.hij(" ",f.lcZ(18,19,e.displaySelectedStatuses())," "),f.xp6(2),f.Q6J("ngForOf",e.statusList),f.xp6(1),f.Q6J("placeholder","VO_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),f.xp6(1),f.Q6J("ngIf",e.loading),f.xp6(1),f.Q6J("ngIf",!e.loading))},directives:[g.t,m.gM,v.O5,y.KE,y.hX,_.gD,u.JJ,u.oH,_.$L,v.sg,b.P,w.lW,A.ey,k.$g,C.m],pipes:[T.X$,E.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}"]}),t}()},88227:function(t,e,i){"use strict";i.d(e,{z:function(){return w}});var n=i(4230),r=i(65249),o=i(95909),a=i(60611),s=i(84140),c=i(68416),u=i(31572),l=i(84608),h=i(59403),d=i(61511),f=i(19139),p=i(15980),g=i(67806),m=i(88884),v=i(48160);function y(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"button",6),u.NdJ("click",function(){return u.CHM(i),u.oxw().deleteSelectedResources()}),u._uU(1),u.ALo(2,"translate"),u.qZA()}if(2&t){var n=u.oxw();u.Q6J("disabled",0===n.selected.selected.length),u.xp6(1),u.hij(" ",u.lcZ(2,2,"VO_DETAIL.RESOURCES.LIST.DELETE")," ")}}function _(t,e){1&t&&u._UZ(0,"mat-spinner",7)}function b(t,e){if(1&t&&u._UZ(0,"perun-web-apps-resources-list",8),2&t){var i=u.oxw();u.Q6J("tableId",i.tableId)("filterValue",i.filterValue)("resources",i.resources)("routingVo",!0)("disableRouting",!i.routeAuth)("selection",i.selected)("displayedColumns",i.displayedColumns)}}var w=function(){var t=function(){function t(e,i,r,o){_classCallCheck(this,t),this.resourcesManager=e,this.dialog=i,this.authResolver=r,this.entityStorageService=o,this.resources=[],this.selected=new n.Ov(!0,[]),this.filterValue="",this.displayedColumns=[],this.tableId=a.nT,this.routeAuth=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}},{key:"setAuthRights",value:function(){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"]}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.resourcesManager.getRichResources(this.vo.id).subscribe(function(e){t.resources=e,t.selected.clear(),t.setAuthRights(),t.loading=!1})}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"deleteSelectedResources",value:function(){var t=this,e=(0,s.kZ)();e.width="450px",e.data={theme:"vo-theme",resources:this.selected.selected},this.dialog.open(o.f,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}}]),t}();return t.id="VoResourcesPreviewComponent",t.\u0275fac=function(e){return new(e||t)(u.Y36(r.xk),u.Y36(l.uw),u.Y36(c.x4),u.Y36(c.fb))},t.\u0275cmp=u.Xpm({type:t,selectors:[["app-vo-resources-preview"]],hostVars:2,hostBindings:function(t,e){2&t&&u.ekj("router-component",e.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,"tableId","filterValue","resources","routingVo","disableRouting","selection","displayedColumns",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","resources","routingVo","disableRouting","selection","displayedColumns"]],template:function(t,e){1&t&&(u.TgZ(0,"div"),u.TgZ(1,"h1",0),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"perun-web-apps-refresh-button",1),u.NdJ("refresh",function(){return e.refreshTable()}),u.qZA(),u.YNc(5,y,3,4,"button",2),u.TgZ(6,"perun-web-apps-immediate-filter",3),u.NdJ("filter",function(t){return e.applyFilter(t)}),u.qZA(),u.YNc(7,_,1,0,"mat-spinner",4),u.YNc(8,b,1,7,"perun-web-apps-resources-list",5),u.qZA()),2&t&&(u.xp6(2),u.Oqu(u.lcZ(3,5,"VO_DETAIL.RESOURCES.LIST.TITLE")),u.xp6(3),u.Q6J("ngIf",e.removeAuth),u.xp6(1),u.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),u.xp6(1),u.Q6J("ngIf",e.loading),u.xp6(1),u.Q6J("ngIf",!e.loading))},directives:[h.t,d.O5,f.L,p.lW,g.$g,m.C],pipes:[v.X$],styles:[""]}),t}()},97397:function(t,e,i){"use strict";i.d(e,{z:function(){return Q}});var n=i(68416),r=i(65249),o=i(31572),a=i(59403),s=i(55109),c=i(61511),u=i(67033),l=i(67806),h=i(45001),d=i(27679),f=i(48160);function p(t,e){1&t&&o._UZ(0,"mat-spinner",2)}function g(t,e){if(1&t&&(o.TgZ(0,"mat-panel-description"),o.TgZ(1,"div"),o.TgZ(2,"i",10),o._uU(3," error "),o.qZA(),o._uU(4),o.ALo(5,"translate"),o.ALo(6,"translate"),o.qZA(),o.qZA()),2&t){var i=o.oxw().$implicit,n=o.oxw(2);o.xp6(4),o.HOy(" ",n.getErrorCountStates(i)," ",o.lcZ(5,4,"VO_DETAIL.RESOURCES.STATES.FROM")," ",i.taskList.length," ",o.lcZ(6,6,"VO_DETAIL.RESOURCES.STATES.TASKS_WITH_ERROR_STATE")," ")}}function m(t,e){1&t&&(o.TgZ(0,"th",23),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ID")," "))}function v(t,e){if(1&t&&(o.TgZ(0,"td",24),o._uU(1),o.qZA()),2&t){var i=e.$implicit;o.xp6(1),o.Oqu(i.id)}}function y(t,e){1&t&&(o.TgZ(0,"th",23),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SERVICE")," "))}function _(t,e){if(1&t&&(o.TgZ(0,"td",24),o._uU(1),o.qZA()),2&t){var i=e.$implicit;o.xp6(1),o.Oqu(i.service.name)}}function b(t,e){1&t&&(o.TgZ(0,"th",23),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STATUS")," "))}function w(t,e){if(1&t&&(o.TgZ(0,"td",24),o._uU(1),o.qZA()),2&t){var i=e.$implicit;o.xp6(1),o.Oqu(i.status)}}function A(t,e){1&t&&(o.TgZ(0,"th",23),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SCHEDULED")," "))}function k(t,e){if(1&t&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&t){var i=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,i.schedule,"d.M.y H:mm:ss")," ")}}function C(t,e){1&t&&(o._uU(0),o.ALo(1,"translate")),2&t&&o.hij(" ",o.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function T(t,e){if(1&t&&(o.TgZ(0,"td",24),o.YNc(1,k,3,4,"div",25),o.YNc(2,C,2,3,"ng-template",26,27,o.W1O),o.qZA()),2&t){var i=e.$implicit,n=o.MAs(3);o.xp6(1),o.Q6J("ngIf",i.schedule)("ngIfElse",n)}}function E(t,e){1&t&&(o.TgZ(0,"th",23),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STARTED")," "))}function S(t,e){if(1&t&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&t){var i=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,i.schedule,"d.M.y H:mm:ss")," ")}}function I(t,e){1&t&&(o._uU(0),o.ALo(1,"translate")),2&t&&o.hij(" ",o.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function R(t,e){if(1&t&&(o.TgZ(0,"td",24),o.YNc(1,S,3,4,"div",25),o.YNc(2,I,2,3,"ng-template",26,27,o.W1O),o.qZA()),2&t){var i=e.$implicit,n=o.MAs(3);o.xp6(1),o.Q6J("ngIf",i.startTime)("ngIfElse",n)}}function x(t,e){1&t&&(o.TgZ(0,"th",23),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ENDED")," "))}function O(t,e){if(1&t&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&t){var i=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,i.schedule,"d.M.y H:mm:ss")," ")}}function P(t,e){1&t&&(o._uU(0),o.ALo(1,"translate")),2&t&&o.hij(" ",o.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function D(t,e){if(1&t&&(o.TgZ(0,"td",24),o.YNc(1,O,3,4,"div",25),o.YNc(2,P,2,3,"ng-template",26,27,o.W1O),o.qZA()),2&t){var i=e.$implicit,n=o.MAs(3);o.xp6(1),o.Q6J("ngIf",i.endTime)("ngIfElse",n)}}function M(t,e){1&t&&o._UZ(0,"tr",28)}var L=function(t,e,i){return{redTableItem:t,greenTableItem:e,yellowTableItem:i}};function N(t,e){if(1&t&&o._UZ(0,"tr",29),2&t){var i=e.$implicit;o.Q6J("ngClass",o.kEZ(1,L,"ERROR"===i.status||"SENDERROR"===i.status||"GENERROR"===i.status,"DONE"===i.status,"WARNING"===i.status))}}function z(t,e){if(1&t&&(o.TgZ(0,"table",12),o.ynx(1,13),o.YNc(2,m,3,3,"th",14),o.YNc(3,v,2,1,"td",15),o.BQk(),o.ynx(4,16),o.YNc(5,y,3,3,"th",14),o.YNc(6,_,2,1,"td",15),o.BQk(),o.ynx(7,17),o.YNc(8,b,3,3,"th",14),o.YNc(9,w,2,1,"td",15),o.BQk(),o.ynx(10,18),o.YNc(11,A,3,3,"th",14),o.YNc(12,T,4,2,"td",15),o.BQk(),o.ynx(13,19),o.YNc(14,E,3,3,"th",14),o.YNc(15,R,4,2,"td",15),o.BQk(),o.ynx(16,20),o.YNc(17,x,3,3,"th",14),o.YNc(18,D,4,2,"td",15),o.BQk(),o.YNc(19,M,1,0,"tr",21),o.YNc(20,N,1,5,"tr",22),o.qZA()),2&t){var i=o.oxw(2).$implicit,n=o.oxw(2);o.Q6J("dataSource",n.datasources[n.propagation.indexOf(i)]),o.xp6(19),o.Q6J("matHeaderRowDef",n.displayedColumns),o.xp6(1),o.Q6J("matRowDefColumns",n.displayedColumns)}}function Z(t,e){1&t&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_TASKS")," "))}function B(t,e){if(1&t&&(o._UZ(0,"mat-divider"),o.YNc(1,z,21,3,"table",11),o.YNc(2,Z,3,3,"div",8)),2&t){var i=o.oxw().$implicit;o.xp6(1),o.Q6J("ngIf",0!==i.taskList.length),o.xp6(1),o.Q6J("ngIf",0===i.taskList.length)}}function F(t,e){if(1&t&&(o.TgZ(0,"mat-expansion-panel"),o.TgZ(1,"mat-expansion-panel-header"),o.TgZ(2,"mat-panel-title"),o._UZ(3,"img",6),o.TgZ(4,"div",7),o._uU(5),o.qZA(),o.qZA(),o.YNc(6,g,7,8,"mat-panel-description",8),o.qZA(),o.YNc(7,B,3,2,"ng-template",9),o.qZA()),2&t){var i=e.$implicit,n=o.oxw(2);o.xp6(5),o.hij(" ",i.resource.name," "),o.xp6(1),o.Q6J("ngIf",0!==n.getErrorCountStates(i))}}function H(t,e){if(1&t&&(o.TgZ(0,"div",3),o.TgZ(1,"mat-accordion",4),o.YNc(2,F,8,2,"mat-expansion-panel",5),o.qZA(),o.qZA()),2&t){var i=o.oxw();o.xp6(2),o.Q6J("ngForOf",i.propagation)}}var U=function(){var t=function(){function t(){_classCallCheck(this,t),this.propagation=[],this.loading=!1,this.datasources=[],this.displayedColumns=["id","service","status","scheduled","started","ended"]}return _createClass(t,[{key:"getErrorCountStates",value:function(t){var e,i=0,n=_createForOfIteratorHelper(t.taskList);try{for(n.s();!(e=n.n()).done;){var r=e.value;"ERROR"!==r.status&&"GENERROR"!==r.status&&"SENDERROR"!==r.status||i++}}catch(o){n.e(o)}finally{n.f()}return i}},{key:"getDataSource",value:function(){this.datasources=[];var t,e=_createForOfIteratorHelper(this.propagation);try{for(e.s();!(t=e.n()).done;){var i=t.value;this.datasources.push(new u.by(i.taskList))}}catch(n){e.e(n)}finally{e.f()}}},{key:"ngOnChanges",value:function(){this.getDataSource()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-state-tab"]],inputs:{propagation:"propagation",loading:"loading"},features:[o.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"],["src","assets/img/PerunWebImages/resource-black.svg","height","28","width","28"],[1,"ml-2"],[4,"ngIf"],["matExpansionPanelContent",""],[1,"material-icons","red"],["mat-table","","class","w-100",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(t,e){1&t&&(o.YNc(0,p,1,0,"mat-spinner",0),o.YNc(1,H,3,1,"div",1)),2&t&&(o.Q6J("ngIf",e.loading),o.xp6(1),o.Q6J("ngIf",!e.loading))},directives:[c.O5,l.$g,h.pp,c.sg,h.ib,h.yz,h.yK,h.HS,h.u4,d.d,u.BZ,u.w1,u.fO,u.Dz,u.as,u.nj,u.ge,u.ev,u.XQ,u.Gk,c.mk],pipes:[f.X$,c.uU],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-description[_ngcontent-%COMP%], .headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_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}"]}),t}(),q=i(39571);function G(t,e){if(1&t&&(o._uU(0),o.ALo(1,"translate"),o.TgZ(2,"span",5),o._uU(3),o.qZA()),2&t){var i=o.oxw();o.hij(" ",o.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.ERROR_RESOURCES")," "),o.xp6(3),o.Oqu(i.errorPropagation.length)}}function j(t,e){1&t&&(o.TgZ(0,"app-alert",8),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_ERROR")," "))}function Y(t,e){if(1&t&&(o.YNc(0,j,3,3,"app-alert",6),o._UZ(1,"app-state-tab",7)),2&t){var i=o.oxw();o.Q6J("ngIf",!i.loading&&0===i.errorPropagation.length),o.xp6(1),o.Q6J("loading",i.loading)("propagation",i.errorPropagation)}}function K(t,e){if(1&t&&(o._uU(0),o.ALo(1,"translate"),o.TgZ(2,"span",9),o._uU(3),o.qZA()),2&t){var i=o.oxw();o.hij(" ",o.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.OK_RESOURCES")," "),o.xp6(3),o.Oqu(i.okPropagation.length)}}function V(t,e){1&t&&(o.TgZ(0,"app-alert",8),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_OK")," "))}function J(t,e){if(1&t&&(o.YNc(0,V,3,3,"app-alert",6),o._UZ(1,"app-state-tab",7)),2&t){var i=o.oxw();o.Q6J("ngIf",!i.loading&&0===i.okPropagation.length),o.xp6(1),o.Q6J("loading",i.loading)("propagation",i.okPropagation)}}var Q=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.taskService=e,this.entityStorageService=i,this.loading=!1,this.okPropagation=[],this.errorPropagation=[],this.resourceStates=[],this.selectedIndex=0}return _createClass(t,[{key:"ngOnInit",value:function(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.refreshTable()}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.taskService.getAllResourcesState(this.vo.id).subscribe(function(e){t.resourceStates=e,t.okPropagation=[],t.errorPropagation=[];var i,n=_createForOfIteratorHelper(e);try{for(n.s();!(i=n.n()).done;){var r,o=i.value,a=!0,s=_createForOfIteratorHelper(o.taskList);try{for(s.s();!(r=s.n()).done;){var c=r.value;if("ERROR"===c.status||"GENERROR"===c.status||"SENDERROR"===c.status){a=!1;break}}}catch(u){s.e(u)}finally{s.f()}a?t.okPropagation.push(o):t.errorPropagation.push(o)}}catch(u){n.e(u)}finally{n.f()}t.loading=!1},function(){return t.loading=!1})}}]),t}();return t.id="VoResourcesStatesComponent",t.\u0275fac=function(e){return new(e||t)(o.Y36(r.Ob),o.Y36(n.fb))},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-vo-resources-states"]],hostVars:2,hostBindings:function(t,e){2&t&&o.ekj("router-component",e.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(t,e){1&t&&(o.TgZ(0,"h1",0),o._uU(1),o.ALo(2,"translate"),o.qZA(),o.TgZ(3,"perun-web-apps-refresh-button",1),o.NdJ("refresh",function(){return e.refreshTable()}),o.qZA(),o.TgZ(4,"mat-tab-group",2),o.NdJ("selectedIndexChange",function(t){return e.selectedIndex=t}),o.TgZ(5,"mat-tab"),o.YNc(6,G,4,4,"ng-template",3),o.YNc(7,Y,2,3,"ng-template",4),o.qZA(),o.TgZ(8,"mat-tab"),o.YNc(9,K,4,4,"ng-template",3),o.YNc(10,J,2,3,"ng-template",4),o.qZA(),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,2,"VO_DETAIL.RESOURCES.STATES.TITLE")),o.xp6(3),o.Q6J("selectedIndex",e.selectedIndex))},directives:[a.t,s.SP,s.uX,s.uD,s.Vc,c.O5,U,q.w],pipes:[f.X$],styles:[""]}),t}()},14527:function(t,e,i){"use strict";i.d(e,{w:function(){return x}});var n=i(24555),r=i(68416),o=i(68570),a=i(92438),s=i(75954),c=i(65249),u=i(84140),l=i(31572),h=i(84608),d=i(48160),f=i(57629),p=i(61511),g=i(27679),m=i(59403),v=i(15980),y=i(92846),_=i(67806),b=i(43691),w=i(36922),A=i(39571);function k(t,e){1&t&&l._UZ(0,"mat-spinner",13)}function C(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",21),l.NdJ("click",function(){return l.CHM(i),l.oxw(2).settings()}),l.TgZ(1,"i",10),l._uU(2,"edit"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}2&t&&(l.xp6(3),l.hij(" ",l.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function T(t,e){if(1&t&&(l.TgZ(0,"div",14),l.TgZ(1,"div",15),l.TgZ(2,"div",16),l._uU(3),l.ALo(4,"translate"),l.qZA(),l.TgZ(5,"div"),l.TgZ(6,"span",16),l._uU(7),l.ALo(8,"translate"),l.qZA(),l._uU(9,": "),l.TgZ(10,"mat-icon",17),l._uU(11,"arrow_right_alt"),l.qZA(),l._uU(12),l.ALo(13,"translate"),l.ALo(14,"translate"),l.TgZ(15,"mat-icon",18),l._uU(16,"restore"),l.qZA(),l._uU(17),l.ALo(18,"translate"),l.ALo(19,"translate"),l.qZA(),l.qZA(),l.TgZ(20,"div",19),l.YNc(21,C,5,3,"button",20),l.qZA(),l.qZA()),2&t){var i=l.oxw();l.xp6(3),l.AsE(" ",l.lcZ(4,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",i.applicationForm.moduleClassName," "),l.xp6(4),l.Oqu(l.lcZ(8,8,"VO_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),l.xp6(5),l.hij(" ",i.applicationForm.automaticApproval?l.lcZ(13,10,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):l.lcZ(14,12,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL"),", "),l.xp6(5),l.hij(" ",i.applicationForm.automaticApprovalExtension?l.lcZ(18,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):l.lcZ(19,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),l.xp6(4),l.Q6J("ngIf",i.editAuth)}}function E(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",22),l.NdJ("click",function(){return l.CHM(i),l.oxw().add()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function S(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",23),l.NdJ("click",function(){return l.CHM(i),l.oxw().save()}),l.TgZ(1,"i",10),l._uU(2,"save"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}if(2&t){var n=l.oxw();l.Q6J("disabled",!n.itemsChanged),l.xp6(3),l.hij(" ",l.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function I(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",24),l.NdJ("click",function(){return l.CHM(i),l.oxw().copy()}),l.TgZ(1,"i",10),l._uU(2,"file_copy"),l.qZA(),l._uU(3),l.ALo(4,"translate"),l.qZA()}2&t&&(l.xp6(3),l.hij(" ",l.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.COPY_VO_BUTTON")," "))}function R(t,e){1&t&&(l.TgZ(0,"app-alert",25),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}var x=function(){var t=function(){function t(e,i,n,r,o,a,s,c){_classCallCheck(this,t),this.registrarManager=e,this.dialog=i,this.notificator=n,this.translate=r,this.router=o,this.authResolver=a,this.voService=s,this.entityStorageService=c,this.loading=!1,this.applicationFormItems=[],this.itemsChanged=!1,this.displayedColumns=[],this.refreshApplicationForm=!1,this.idCounter=-1}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.registrarManager.getVoApplicationForm(this.vo.id).subscribe(function(e){t.applicationForm=e,t.registrarManager.getFormItemsForVo(t.vo.id).subscribe(function(e){t.applicationFormItems=e,t.loading=!1})})}},{key:"setAuthRights",value:function(){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"]}},{key:"add",value:function(){var t=this,e=(0,u.kZ)();e.width="500px",e.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(a.J,e).afterClosed().subscribe(function(i){i&&(t.applicationFormItems=Object.assign([],i[0]),(e=(0,u.kZ)()).width="600px",e.height="600px",e.data={voId:t.vo.id,applicationFormItem:i[1],theme:"vo-theme",allItems:t.applicationFormItems},t.dialog.open(s._,e),t.itemsChanged=!0)})}},{key:"copy",value:function(){var t=this,e=(0,u.kZ)();e.width="500px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(o.W,e).afterClosed().subscribe(function(e){e&&t.updateFormItems()})}},{key:"settings",value:function(){var t=this,e=(0,u.kZ)();e.width="400px",e.data={entity:"vo",applicationForm:this.applicationForm,theme:"vo-theme"},this.dialog.open(n.E,e).afterClosed().subscribe(function(e){e&&(t.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e)}),t.applicationForm=e)})}},{key:"preview",value:function(){this.router.navigate(["/organizations",this.vo.id,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)}})}},{key:"updateFormItems",value:function(){var t=this;this.loading=!0,this.refreshApplicationForm=!0,this.registrarManager.getFormItemsForVo(this.vo.id).subscribe(function(e){t.applicationFormItems=e,t.itemsChanged=!1,t.setAuthRights(),t.refreshApplicationForm=!1,t.loading=!1})}},{key:"changeItems",value:function(){this.itemsChanged=!0}},{key:"save",value:function(){var t,e=this,i=0,n=_createForOfIteratorHelper(this.applicationFormItems);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.ordnum=i,r.forDelete||i++}}catch(o){n.e(o)}finally{n.f()}this.registrarManager.updateFormItemsForVo({vo:this.vo.id,items:this.applicationFormItems}).subscribe(function(){e.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe(function(t){e.notificator.showSuccess(t)}),e.updateFormItems()})}},{key:"clear",value:function(){this.applicationFormItems.forEach(function(t){return t.forDelete=!0}),this.itemsChanged=!0}}]),t}();return t.id="VoSettingsApplicationFormComponent",t.\u0275fac=function(e){return new(e||t)(l.Y36(c.tk),l.Y36(h.uw),l.Y36(r.V6),l.Y36(d.sK),l.Y36(f.F0),l.Y36(r.x4),l.Y36(c.YF),l.Y36(r.fb))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-vo-settings-application-form"]],hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("router-component",e.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"],["mat-flat-button","","color","accent","class","mr-2 action-button","data-cy","add-form-item",3,"click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2","data-cy","save-application-form",3,"disabled","click",4,"ngIf"],["mat-stroked-button","","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],["alert_type","info",4,"ngIf"],[3,"loading","applicationForm","applicationFormItems","theme","displayedColumns","refreshApplicationForm","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"],["mat-stroked-button","","class","ml-auto action-button",3,"click",4,"ngIf"],["mat-stroked-button","",1,"ml-auto","action-button",3,"click"],["mat-flat-button","","color","accent","data-cy","add-form-item",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","accent","data-cy","save-application-form",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],["alert_type","info"]],template:function(t,e){1&t&&(l.TgZ(0,"h1",0),l._uU(1),l.ALo(2,"translate"),l.qZA(),l.YNc(3,k,1,0,"mat-spinner",1),l.TgZ(4,"div"),l.YNc(5,T,22,18,"div",2),l._UZ(6,"mat-divider",3),l.TgZ(7,"div",4),l.TgZ(8,"perun-web-apps-refresh-button",5),l.NdJ("refresh",function(){return e.updateFormItems()}),l.qZA(),l.YNc(9,E,3,3,"button",6),l.YNc(10,S,5,4,"button",7),l.YNc(11,I,5,3,"button",8),l.TgZ(12,"button",9),l.NdJ("click",function(){return e.preview()}),l.TgZ(13,"i",10),l._uU(14,"search"),l.qZA(),l._uU(15),l.ALo(16,"translate"),l.qZA(),l.qZA(),l.YNc(17,R,3,3,"app-alert",11),l.TgZ(18,"app-application-form-list",12),l.NdJ("applicationFormItemsChange",function(){return e.changeItems()}),l.qZA(),l.qZA()),2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),l.xp6(2),l.Q6J("ngIf",e.loading),l.xp6(2),l.Q6J("ngIf",!e.loading),l.xp6(4),l.Q6J("ngIf",e.editAuth),l.xp6(1),l.Q6J("ngIf",e.editAuth),l.xp6(1),l.Q6J("ngIf",e.editAuth),l.xp6(4),l.hij(" ",l.lcZ(16,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),l.xp6(2),l.Q6J("ngIf",e.editAuth),l.xp6(1),l.Q6J("loading",e.loading)("applicationForm",e.applicationForm)("applicationFormItems",e.applicationFormItems)("theme","vo-theme")("displayedColumns",e.displayedColumns)("refreshApplicationForm",e.refreshApplicationForm))},directives:[p.O5,g.d,m.t,v.lW,y.b,_.$g,b.Hw,w.gM,A.w],pipes:[d.X$],styles:[""]}),t}()},48666:function(t,e,i){"use strict";i.d(e,{T:function(){return _e}});var n=i(65249),r=i(4230),o=i(60611),a=i(84140),s=i(84608),c=i(68416),u=i(16073),l=i(61511),h=i(14732),d=i(18820),f=i(31572),p=i(48160),g=i(67806),m=i(70663),v=i(66283),y=i(80340),_=i(4786),b=i(36922),w=i(29236),A=i(90888),k=i(54810),C=i(15812),T=function(){var t=function(){function t(){_classCallCheck(this,t),this.expiration="never",this.expirationControl=new u.NI(null),this.datePicker=new f.vpe}return _createClass(t,[{key:"ngOnInit",value:function(){var t=new Date;this.minDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()),this.expirationControl.setValue((0,l.p6)(this.minDate,"yyyy-MM-dd","en-GB"))}},{key:"setExpiration",value:function(){this.expiration=(0,l.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB"),this.expirationControl.setValue((0,l.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB")),this.emitDate()}},{key:"emitDate",value:function(){"never"!==this.expiration&&""===this.expirationControl.value||this.datePicker.emit(this.expiration)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=f.Xpm({type:t,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(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"mat-radio-group",0),f.NdJ("ngModelChange",function(t){return e.expiration=t})("change",function(){return e.emitDate()}),f.TgZ(1,"mat-radio-button",1),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"mat-radio-button",2),f.TgZ(5,"mat-form-field",3),f.NdJ("click",function(){return f.CHM(i),f.MAs(12).open()}),f.TgZ(6,"mat-label"),f._uU(7),f.ALo(8,"translate"),f.qZA(),f.TgZ(9,"input",4),f.NdJ("dateChange",function(){return e.setExpiration()}),f.qZA(),f._UZ(10,"mat-datepicker-toggle",5),f._UZ(11,"mat-datepicker",6,7),f.qZA(),f.qZA(),f.qZA()}if(2&t){var n=f.MAs(12);f.Q6J("ngModel",e.expiration),f.xp6(2),f.hij(" ",f.lcZ(3,10,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),f.xp6(2),f.s9C("value",e.expirationControl.value),f.xp6(3),f.Oqu(f.lcZ(8,12,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),f.xp6(2),f.Q6J("min",e.minDate)("formControl",e.expirationControl)("matDatepicker",n),f.xp6(1),f.Q6J("for",n)("disabled",!1),f.xp6(1),f.Q6J("disabled",!1)}},directives:[k.VQ,u.JJ,u.On,k.U0,v.KE,v.hX,y.Nt,u.Fj,C.hl,u.oH,C.nW,v.R9,C.Mq],pipes:[p.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t}(),E=i(39571),S=i(71522),I=i(7927),R=i(43691),x=i(15980),O=i(22196),P=["stepper"];function D(t,e){1&t&&(f.TgZ(0,"h1",4),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE")," "))}function M(t,e){1&t&&f._UZ(0,"mat-spinner",5)}function L(t,e){1&t&&(f._uU(0),f.ALo(1,"translate")),2&t&&f.Oqu(f.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_LABEL"))}function N(t,e){1&t&&(f.TgZ(0,"app-alert",34),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function z(t,e){1&t&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function Z(t,e){1&t&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function B(t,e){1&t&&(f._uU(0),f.ALo(1,"translate")),2&t&&f.Oqu(f.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_LABEL"))}function F(t,e){if(1&t&&(f.TgZ(0,"mat-option",35),f._uU(1),f.qZA()),2&t){var i=e.$implicit;f.Q6J("value",i),f.xp6(1),f.hij(" ",i," ")}}function H(t,e){1&t&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_ERROR")," "))}function U(t,e){1&t&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function q(t,e){1&t&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL_ERROR")," "))}function G(t,e){1&t&&(f._uU(0),f.ALo(1,"translate")),2&t&&f.Oqu(f.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_LABEL"))}function j(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"div"),f.TgZ(1,"perun-web-apps-user-search-select",36),f.NdJ("userSelected",function(t){return f.CHM(i),f.oxw(2).selectedSponsor=t}),f.qZA(),f.qZA()}if(2&t){var n=f.oxw(2);f.xp6(1),f.Q6J("users",n.voSponsors)("disableAutoSelect",!0)}}function Y(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"div",6),f.TgZ(1,"mat-stepper",7,8),f.TgZ(3,"mat-step",9),f.YNc(4,L,2,3,"ng-template",10),f.YNc(5,N,3,3,"app-alert",11),f.TgZ(6,"form",12),f.TgZ(7,"h5",13),f._uU(8),f.ALo(9,"translate"),f.qZA(),f.TgZ(10,"mat-form-field",14),f._UZ(11,"input",15),f.ALo(12,"translate"),f.YNc(13,z,3,3,"mat-error",16),f.qZA(),f.TgZ(14,"mat-form-field"),f._UZ(15,"input",17),f.ALo(16,"translate"),f.YNc(17,Z,3,3,"mat-error",16),f.qZA(),f.TgZ(18,"mat-form-field"),f._UZ(19,"input",18),f.ALo(20,"translate"),f.qZA(),f.TgZ(21,"mat-form-field"),f._UZ(22,"input",19),f.ALo(23,"translate"),f.qZA(),f.qZA(),f.qZA(),f.TgZ(24,"mat-step",9),f.YNc(25,B,2,3,"ng-template",10),f.TgZ(26,"h5",13),f._uU(27),f.ALo(28,"translate"),f.qZA(),f.TgZ(29,"form",20),f.TgZ(30,"mat-form-field"),f.TgZ(31,"mat-select",21),f.NdJ("valueChange",function(t){return f.CHM(i),f.oxw().onNamespaceChanged(t)}),f.ALo(32,"translate"),f.YNc(33,F,2,2,"mat-option",22),f.qZA(),f.YNc(34,H,3,3,"mat-error",16),f.qZA(),f.TgZ(35,"mat-form-field",23),f.ALo(36,"translate"),f._UZ(37,"input",24),f.ALo(38,"translate"),f.YNc(39,U,3,3,"mat-error",16),f.qZA(),f.TgZ(40,"mat-form-field"),f._UZ(41,"input",25),f.ALo(42,"translate"),f.YNc(43,q,3,3,"mat-error",16),f.qZA(),f.TgZ(44,"span",23),f.ALo(45,"translate"),f.TgZ(46,"mat-checkbox",26),f.NdJ("change",function(){return f.CHM(i),f.oxw().passwordResetChange()}),f._uU(47),f.ALo(48,"translate"),f.qZA(),f.qZA(),f._UZ(49,"perun-web-apps-password-form",27),f.qZA(),f.qZA(),f.TgZ(50,"mat-step"),f.YNc(51,G,2,3,"ng-template",10),f.TgZ(52,"div",28),f.TgZ(53,"h5",13),f._uU(54),f.ALo(55,"translate"),f.qZA(),f.TgZ(56,"div",14),f.TgZ(57,"h6"),f._uU(58),f.ALo(59,"translate"),f.qZA(),f.TgZ(60,"mat-radio-group",29),f.NdJ("ngModelChange",function(t){return f.CHM(i),f.oxw().sponsorType=t}),f.TgZ(61,"span",30),f.ALo(62,"translate"),f.TgZ(63,"mat-radio-button",31),f.NdJ("click",function(){return f.CHM(i),f.oxw().selectedSponsor=null}),f._uU(64),f.ALo(65,"translate"),f.qZA(),f.qZA(),f.TgZ(66,"span",30),f.ALo(67,"translate"),f.TgZ(68,"mat-radio-button",32),f._uU(69),f.ALo(70,"translate"),f.qZA(),f.qZA(),f.qZA(),f.YNc(71,j,2,2,"div",16),f.qZA(),f.TgZ(72,"h6",14),f._uU(73),f.ALo(74,"translate"),f.qZA(),f.TgZ(75,"perun-web-apps-expiration-select",33),f.NdJ("datePicker",function(t){return f.CHM(i),f.oxw().setExpiration(t)}),f.qZA(),f.qZA(),f.qZA(),f.qZA(),f.qZA()}if(2&t){var n=f.oxw();f.xp6(1),f.Q6J("linear",!0),f.xp6(2),f.Q6J("stepControl",n.userControl),f.xp6(2),f.Q6J("ngIf",n.functionalityNotSupported),f.xp6(1),f.Q6J("formGroup",n.userControl),f.xp6(2),f.hij(" ",f.lcZ(9,42,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_TITLE")," "),f.xp6(3),f.s9C("placeholder",f.lcZ(12,44,"DIALOGS.CREATE_SPONSORED_MEMBER.FIRST_NAME")),f.xp6(2),f.Q6J("ngIf",n.userControl.hasError("required","firstName")),f.xp6(2),f.s9C("placeholder",f.lcZ(16,46,"DIALOGS.CREATE_SPONSORED_MEMBER.LAST_NAME")),f.xp6(2),f.Q6J("ngIf",n.userControl.hasError("required","lastName")),f.xp6(2),f.s9C("placeholder",f.lcZ(20,48,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_BEFORE")),f.xp6(3),f.s9C("placeholder",f.lcZ(23,50,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_AFTER")),f.xp6(2),f.Q6J("stepControl",n.namespaceControl),f.xp6(3),f.Oqu(f.lcZ(28,52,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_TITLE")),f.xp6(2),f.Q6J("formGroup",n.namespaceControl),f.xp6(2),f.s9C("placeholder",f.lcZ(32,54,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE")),f.xp6(2),f.Q6J("ngForOf",n.namespaceOptions),f.xp6(1),f.Q6J("ngIf",n.namespaceControl.hasError("required","namespace")),f.xp6(1),f.s9C("matTooltip",f.lcZ(36,56,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN_DISABLED")),f.Q6J("matTooltipDisabled",n.namespaceControl.get("login").enabled),f.xp6(2),f.s9C("placeholder",f.lcZ(38,58,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN")),f.xp6(2),f.Q6J("ngIf",n.namespaceControl.hasError("required","login")),f.xp6(2),f.s9C("placeholder",f.lcZ(42,60,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL")),f.xp6(2),f.Q6J("ngIf",n.namespaceControl.hasError("required","email")||n.namespaceControl.hasError("pattern","email")),f.xp6(1),f.s9C("matTooltip",f.lcZ(45,62,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET_DISABLED")),f.Q6J("matTooltipDisabled",n.namespaceControl.get("passwordReset").enabled),f.xp6(3),f.hij("",f.lcZ(48,64,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET")," "),f.xp6(2),f.Q6J("formGroup",n.namespaceControl)("tooltipPwdViaEmail",n.namespaceControl.get("passwordReset").value)("namespace",n.selectedNamespace),f.xp6(5),f.Oqu(f.lcZ(55,66,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_TITLE")),f.xp6(4),f.Oqu(f.lcZ(59,68,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SPONSOR")),f.xp6(2),f.Q6J("ngModel",n.sponsorType),f.xp6(1),f.s9C("matTooltip",f.lcZ(62,70,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF_DISABLED")),f.Q6J("matTooltipDisabled",n.isSponsor),f.xp6(2),f.Q6J("disabled",!n.isSponsor),f.xp6(1),f.hij(" ",f.lcZ(65,72,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF")," "),f.xp6(2),f.s9C("matTooltip",f.lcZ(67,74,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER_DISABLED")),f.Q6J("matTooltipDisabled",n.isPerunAdmin),f.xp6(2),f.Q6J("disabled",!n.isPerunAdmin),f.xp6(1),f.hij(" ",f.lcZ(70,76,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER")," "),f.xp6(2),f.Q6J("ngIf","other"===n.sponsorType),f.xp6(2),f.Oqu(f.lcZ(74,78,"DIALOGS.CREATE_SPONSORED_MEMBER.EXPIRATION"))}}function K(t,e){if(1&t&&(f.TgZ(0,"div",6),f.TgZ(1,"div",37),f.TgZ(2,"mat-icon",38),f._uU(3,"done"),f.qZA(),f._uU(4),f.ALo(5,"translate"),f.TgZ(6,"i"),f._uU(7),f.ALo(8,"userFullName"),f.qZA(),f._uU(9),f.ALo(10,"translate"),f.qZA(),f.TgZ(11,"div"),f._uU(12),f.ALo(13,"translate"),f.qZA(),f.TgZ(14,"div"),f._uU(15),f.ALo(16,"translate"),f.qZA(),f.TgZ(17,"app-alert",39),f._uU(18),f.ALo(19,"translate"),f.qZA(),f.qZA()),2&t){var i=f.oxw();f.xp6(4),f.hij(" ",f.lcZ(5,8,"DIALOGS.CREATE_SPONSORED_MEMBER.USER")," "),f.xp6(3),f.Oqu(f.lcZ(8,10,i.createdMember.user)),f.xp6(2),f.hij(" ",f.lcZ(10,12,"DIALOGS.CREATE_SPONSORED_MEMBER.WAS_CREATED")," "),f.xp6(3),f.AsE("",f.lcZ(13,14,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN"),": ",i.loginThatWasSet,""),f.xp6(3),f.AsE(" ",f.lcZ(16,16,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD")," : ",i.namespaceControl.get("passwordCtrl").value," "),f.xp6(3),f.Oqu(f.lcZ(19,18,"DIALOGS.CREATE_SPONSORED_MEMBER.COPY_INFORMATION"))}}function V(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"div",40),f.TgZ(1,"button",41),f.NdJ("click",function(){return f.CHM(i),f.oxw().onCancel()}),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.qZA()}2&t&&(f.xp6(2),f.hij(" ",f.lcZ(3,1,"DIALOGS.CREATE_SPONSORED_MEMBER.OK")," "))}function J(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",41),f.NdJ("click",function(){return f.CHM(i),f.oxw(2).stepperPrevious()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.BACK")," "))}function Q(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",46),f.NdJ("click",function(){return f.CHM(i),f.oxw(2).stepperNext()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}if(2&t){var n=f.oxw(2);f.ekj("ml-2",void 0!==n.stepper&&0!==n.stepper.selectedIndex)("ml-auto",!(void 0!==n.stepper&&0!==n.stepper.selectedIndex)),f.Q6J("disabled",n.getStepperNextConditions()),f.xp6(1),f.hij(" ",f.lcZ(2,6,"DIALOGS.CREATE_SPONSORED_MEMBER.NEXT")," ")}}function W(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",47),f.NdJ("click",function(){return f.CHM(i),f.oxw(2).onConfirm()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}if(2&t){var n=f.oxw(2);f.Q6J("disabled",null===n.sponsorType||"other"===n.sponsorType&&null===n.selectedSponsor),f.xp6(1),f.hij(" ",f.lcZ(2,2,"DIALOGS.CREATE_SPONSORED_MEMBER.SUBMIT")," ")}}function X(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"div",40),f.TgZ(1,"button",42),f.NdJ("click",function(){return f.CHM(i),f.oxw().onCancel()}),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.YNc(4,J,3,3,"button",43),f.YNc(5,Q,3,8,"button",44),f.YNc(6,W,3,4,"button",45),f.qZA()}if(2&t){var n=f.oxw();f.xp6(2),f.hij(" ",f.lcZ(3,4,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),f.xp6(2),f.Q6J("ngIf",void 0!==n.stepper&&0!==n.stepper.selectedIndex),f.xp6(1),f.Q6J("ngIf",void 0!==n.stepper&&n.stepper.selectedIndex!==n.stepper._steps.length-1),f.xp6(1),f.Q6J("ngIf",void 0!==n.stepper&&n.stepper.selectedIndex===n.stepper._steps.length-1)}}var $=function(){var t=function(){function t(e,i,n,r,o,a,s,c,u,l,h){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.membersService=n,this.apiRequestConfiguration=r,this.usersService=o,this.store=a,this.translator=s,this.authzService=c,this.guiAuthResolver=u,this.formBuilder=l,this.cd=h,this.loading=!1,this.functionalityNotSupported=!1,this.loginThatWasSet="",this.successfullyCreated=!1,this.namespaceOptions=[],this.namespaceRules=[],this.selectedNamespace=null,this.parsedRules=new Map,this.userControl=null,this.namespaceControl=null,this.voSponsors=[],this.selectedSponsor=null,this.sponsorType="self",this.isSponsor=!1,this.isPerunAdmin=!1,this.expiration="never"}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.theme=this.data.theme,this.voSponsors=this.data.sponsors,this.isSponsor=this.guiAuthResolver.principalHasRole(h.u.SPONSOR,"Vo",this.data.voId),this.isPerunAdmin=this.guiAuthResolver.isPerunAdmin(),this.sponsorType=this.isSponsor?"self":"other",this.userControl=this.formBuilder.group({firstName:["",u.kI.required],lastName:["",u.kI.required],titleBefore:[""],titleAfter:[""]}),this.namespaceControl=this.formBuilder.group({namespace:["",u.kI.required],login:["",[u.kI.required]],passwordCtrl:["",u.kI.required,[(0,d.yT)(null,this.usersService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],passwordReset:[!1,[]],email:["",[u.kI.required,u.kI.pattern(a.B2)]]},{validators:a.dN.passwordMatchValidator}),this.membersService.getAllNamespacesRules().subscribe(function(e){t.store.get("allow_empty_sponsor_namespace")&&t.namespaceRules.push({namespaceName:"No namespace",requiredAttributes:[],optionalAttributes:[]}),t.namespaceRules=t.namespaceRules.concat(e),t.parseNamespaceRules(),0===t.namespaceOptions.length&&(t.functionalityNotSupported=!0),t.loading=!1,t.cd.detectChanges()})}},{key:"parseNamespaceRules",value:function(){var t,e=_createForOfIteratorHelper(this.namespaceRules);try{for(e.s();!(t=e.n()).done;){var i=t.value;this.namespaceOptions.push(i.namespaceName);var n={login:"disabled",password:"disabled"};this.parseAttributes(n,i.requiredAttributes,"required"),this.parseAttributes(n,i.optionalAttributes,"optional"),this.parsedRules.set(i.namespaceName,n)}}catch(r){e.e(r)}finally{e.f()}}},{key:"parseAttributes",value:function(t,e,i){var n,r=_createForOfIteratorHelper(e);try{for(r.s();!(n=r.n()).done;){switch(n.value){case"login":t.login=i;break;case"password":t.password=i}}}catch(o){r.e(o)}finally{r.f()}}},{key:"onConfirm",value:function(){var t=this;this.loading=!0;var e={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},i=this.namespaceControl.get("namespace").value,n=this.parsedRules.get(i);"No namespace"!==i&&(e.userData.namespace=i),"disabled"!==n.login&&(e.userData.login=this.namespaceControl.get("login").value),"disabled"!==n.password&&(e.sendActivationLink=this.namespaceControl.get("passwordReset").value,e.userData.password=this.namespaceControl.get("passwordCtrl").value),"never"!==this.expiration&&(e.validityTo=this.expiration),this.membersService.createSponsoredMember(e).subscribe(function(e){t.successfullyCreated=!0,t.dialogRef.updateSize("600px"),t.createdMember=e,e&&e.userAttributes&&e.userAttributes.filter(function(t){return"login-namespace"===t.baseFriendlyName}).filter(function(t){return t.friendlyNameParameter===i}).filter(function(t){return null!==t.value}).forEach(function(e){t.loginThatWasSet=e.value.toString()}),t.loading=!1},function(){t.loading=!1})}},{key:"onCancel",value:function(){this.successfullyCreated?this.dialogRef.close(!0):this.dialogRef.close()}},{key:"onNamespaceChanged",value:function(t){this.selectedNamespace=t;var e=this.parsedRules.get(t),i=this.namespaceControl.get("login"),n=this.namespaceControl.get("passwordCtrl"),r=this.namespaceControl.get("passwordAgainCtrl"),o=this.namespaceControl.get("passwordReset");"disabled"!==e.login?(0,a.mH)(i,"optional"===e.login?[]:[u.kI.required]):(i.disable(),i.setValue("")),"disabled"!==e.password?((0,a.mH)(n,"optional"===e.password?[]:[u.kI.required],[(0,d.yT)(t,this.usersService,this.apiRequestConfiguration)]),(0,a.mH)(r,[]),(0,a.mH)(o,[]),this.namespaceControl.get("passwordReset").setValue(!1)):(n.disable(),n.setValue(""),r.disable(),r.setValue(""),o.disable(),o.setValue(!1))}},{key:"passwordResetChange",value:function(){var t=this.namespaceControl.get("passwordCtrl"),e=this.namespaceControl.get("passwordAgainCtrl");this.namespaceControl.get("passwordReset").value?(t.disable(),t.setValue(""),e.disable(),e.setValue("")):(t.enable(),e.enable())}},{key:"setExpiration",value:function(t){this.expiration="never"===t?"never":(0,l.p6)(t,"yyyy-MM-dd","en-GB")}},{key:"getStepperNextConditions",value:function(){switch(this.stepper.selectedIndex){case 0:return this.userControl.invalid;case 1:return this.namespaceControl.invalid||this.namespaceControl.get("passwordCtrl").pending;default:return!1}}},{key:"stepperPrevious",value:function(){this.stepper.previous()}},{key:"stepperNext",value:function(){this.stepper.next()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(f.Y36(s.so),f.Y36(s.WI),f.Y36(n.uq),f.Y36(c.F5),f.Y36(n.Fv),f.Y36(c.d6),f.Y36(p.sK),f.Y36(n.Ct),f.Y36(c.x4),f.Y36(u.qu),f.Y36(f.sBO))},t.\u0275cmp=f.Xpm({type:t,selectors:[["app-create-sponsored-member-dialog"]],viewQuery:function(t,e){var i;(1&t&&f.Gf(P,5),2&t)&&(f.iGM(i=f.CRH())&&(e.stepper=i.first))},decls:7,vars:9,consts:[["mat-dialog-title","",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",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"],["required","","formControlName","namespace",3,"placeholder","valueChange"],[3,"value",4,"ngFor","ngForOf"],["matTooltipPosition","left",3,"matTooltip","matTooltipDisabled"],["matInput","","required","","formControlName","login",3,"placeholder"],["matInput","","required","","formControlName","email",3,"placeholder"],["labelPosition","before","formControlName","passwordReset",3,"change"],[3,"formGroup","tooltipPwdViaEmail","namespace"],[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,"users","disableAutoSelect","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(t,e){1&t&&(f.TgZ(0,"div"),f.YNc(1,D,3,3,"h1",0),f.YNc(2,M,1,0,"mat-spinner",1),f.YNc(3,Y,76,80,"div",2),f.YNc(4,K,20,20,"div",2),f.YNc(5,V,4,3,"div",3),f.YNc(6,X,7,6,"div",3),f.qZA()),2&t&&(f.Tol(e.theme),f.xp6(1),f.Q6J("ngIf",!e.successfullyCreated),f.xp6(1),f.Q6J("ngIf",e.loading),f.xp6(1),f.Q6J("ngIf",!e.loading&&!e.successfullyCreated),f.xp6(1),f.Q6J("ngIf",!e.loading&&e.successfullyCreated),f.xp6(1),f.Q6J("ngIf",e.successfullyCreated),f.xp6(1),f.Q6J("ngIf",!e.loading&&!e.successfullyCreated))},directives:[l.O5,s.uh,g.$g,s.xY,m.Vq,m.C0,m.VY,u._Y,u.JL,u.sg,v.KE,y.Nt,u.Fj,u.JJ,u.u,u.Q7,_.gD,l.sg,b.gM,w.oG,A.G,k.VQ,u.On,k.U0,T,E.w,v.TO,S.ey,I.S,R.Hw,s.H8,x.lW],pipes:[p.X$,O.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}"]}),t}(),tt=i(67004),et=i(43005),it=i(19139),nt=i(78364),rt=i(8055),ot=["stepper"];function at(t,e){1&t&&f._UZ(0,"mat-spinner",4)}function st(t,e){1&t&&(f._uU(0),f.ALo(1,"translate")),2&t&&f.Oqu(f.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_LABEL"))}function ct(t,e){1&t&&(f.TgZ(0,"app-alert",29),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function ut(t,e){if(1&t&&(f.TgZ(0,"mat-option",30),f._uU(1),f.qZA()),2&t){var i=e.$implicit;f.Q6J("value",i),f.xp6(1),f.hij(" ",i," ")}}function lt(t,e){1&t&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE_ERROR")," "))}function ht(t,e){1&t&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMES_ERROR")," "))}function dt(t,e){if(1&t&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t){var i=f.oxw(3);f.xp6(1),f.AsE(" ",f.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_FORMAT"),": ",i.usersInfoFormGroup.get("sponsoredMembers").getError("invalidFormat").value," ")}}function ft(t,e){if(1&t&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t){var i=f.oxw(3);f.xp6(1),f.AsE(" ",f.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_EMAIL"),": ",i.usersInfoFormGroup.get("sponsoredMembers").getError("invalidEmail").value," ")}}function pt(t,e){if(1&t&&(f.TgZ(0,"mat-error"),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t){var i=f.oxw(3);f.xp6(1),f.AsE(" ",f.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_LOGIN"),": ",i.usersInfoFormGroup.get("sponsoredMembers").getError("invalidLogin").value," ")}}function gt(t,e){1&t&&(f._uU(0),f.ALo(1,"translate")),2&t&&f.Oqu(f.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_LABEL"))}function mt(t,e){1&t&&(f.TgZ(0,"app-alert",31),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_NAMESPACE_PASSWORD_INFO")," "))}function vt(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"mat-radio-group",32),f.NdJ("ngModelChange",function(t){return f.CHM(i),f.oxw(3).passwordReset=t}),f.TgZ(1,"mat-radio-button",33),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"mat-radio-button",34),f._uU(5),f.ALo(6,"translate"),f.qZA(),f.qZA()}if(2&t){var n=f.oxw(3);f.Q6J("ngModel",n.passwordReset),f.xp6(2),f.hij(" ",f.lcZ(3,3,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GENERATE_PASSWORD")," "),f.xp6(3),f.hij(" ",f.lcZ(6,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_RESET")," ")}}function yt(t,e){1&t&&(f._uU(0),f.ALo(1,"translate")),2&t&&f.Oqu(f.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION_LABEL"))}function _t(t,e){1&t&&(f._uU(0),f.ALo(1,"translate")),2&t&&f.Oqu(f.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUPS_LABEL"))}function bt(t,e){1&t&&(f.TgZ(0,"div"),f.TgZ(1,"app-alert",35),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.qZA()),2&t&&(f.xp6(2),f.Oqu(f.lcZ(3,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DONT_ASSIGN_INFO")))}function wt(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"div"),f.TgZ(1,"h5",36),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"perun-web-apps-create-group-form",37),f.NdJ("nameChanged",function(t){return f.CHM(i),f.oxw(3).name=t})("descriptionChanged",function(t){return f.CHM(i),f.oxw(3).description=t})("parentGroupChanged",function(t){return f.CHM(i),f.oxw(3).parentGroup=t})("asSubgroupChanged",function(t){return f.CHM(i),f.oxw(3).asSubGroup=t}),f.qZA(),f.qZA()}if(2&t){var n=f.oxw(3);f.xp6(2),f.hij(" ",f.lcZ(3,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CREATE_NEW_GROUP")," "),f.xp6(2),f.Q6J("voGroups",n.allVoGroups)}}var At=function(){return["select","id","name","description"]};function kt(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"div"),f.TgZ(1,"h5",36),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"perun-web-apps-immediate-filter",38),f.NdJ("filter",function(t){return f.CHM(i),f.oxw(3).applyFilter(t)}),f.qZA(),f._UZ(5,"perun-web-apps-groups-list",39),f.qZA()}if(2&t){var n=f.oxw(3);f.xp6(2),f.hij(" ",f.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SELECT_EXISTING_GROUPS")," "),f.xp6(2),f.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),f.xp6(1),f.Q6J("groups",n.assignableGroups)("selection",n.selection)("displayedColumns",f.DdM(10,At))("disableRouting",!0)("tableId",n.tableId)("filter",n.filterValue)}}function Ct(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"mat-stepper",8,9),f.TgZ(2,"mat-step",10),f.YNc(3,st,2,3,"ng-template",11),f.YNc(4,ct,3,3,"app-alert",12),f.TgZ(5,"h5",13),f._uU(6),f.ALo(7,"translate"),f.qZA(),f.TgZ(8,"form",14),f.TgZ(9,"mat-form-field"),f.TgZ(10,"mat-select",15),f.ALo(11,"translate"),f.YNc(12,ut,2,2,"mat-option",16),f.qZA(),f.YNc(13,lt,3,3,"mat-error",7),f.qZA(),f.TgZ(14,"div"),f._uU(15),f.ALo(16,"translate"),f.qZA(),f.TgZ(17,"div",17),f._uU(18),f.qZA(),f.TgZ(19,"mat-form-field",18),f.TgZ(20,"mat-label"),f._uU(21),f.ALo(22,"translate"),f.qZA(),f.TgZ(23,"textarea",19),f._uU(24," "),f.qZA(),f.YNc(25,ht,3,3,"mat-error",7),f.YNc(26,dt,3,4,"mat-error",7),f.YNc(27,ft,3,4,"mat-error",7),f.YNc(28,pt,3,4,"mat-error",7),f.qZA(),f.qZA(),f.qZA(),f.TgZ(29,"mat-step"),f.YNc(30,gt,2,3,"ng-template",11),f.TgZ(31,"div",13),f.TgZ(32,"h5",20),f._uU(33),f.ALo(34,"translate"),f.qZA(),f.YNc(35,mt,3,3,"app-alert",21),f.YNc(36,vt,7,7,"mat-radio-group",22),f.qZA(),f.qZA(),f.TgZ(37,"mat-step"),f.YNc(38,yt,2,3,"ng-template",11),f.TgZ(39,"div",13),f.TgZ(40,"h5",20),f._uU(41),f.ALo(42,"translate"),f.qZA(),f.TgZ(43,"perun-web-apps-expiration-select",23),f.NdJ("datePicker",function(t){return f.CHM(i),f.oxw(2).setExpiration(t)}),f.qZA(),f.qZA(),f.qZA(),f.TgZ(44,"mat-step"),f.YNc(45,_t,2,3,"ng-template",11),f.TgZ(46,"div",13),f.TgZ(47,"h5",20),f._uU(48),f.ALo(49,"translate"),f.qZA(),f.TgZ(50,"mat-radio-group",24),f.NdJ("change",function(){return f.CHM(i),f.oxw(2).groupAssigmentChanged()})("ngModelChange",function(t){return f.CHM(i),f.oxw(2).groupAssignment=t}),f.TgZ(51,"mat-radio-button",25),f._uU(52),f.ALo(53,"translate"),f.qZA(),f.TgZ(54,"span",26),f.ALo(55,"translate"),f.TgZ(56,"mat-radio-button",27),f._uU(57),f.ALo(58,"translate"),f.qZA(),f.qZA(),f.TgZ(59,"span",26),f.ALo(60,"translate"),f.TgZ(61,"mat-radio-button",28),f._uU(62),f.ALo(63,"translate"),f.qZA(),f.qZA(),f.qZA(),f.qZA(),f.YNc(64,bt,4,3,"div",7),f.YNc(65,wt,5,4,"div",7),f.YNc(66,kt,6,11,"div",7),f.qZA(),f.qZA()}if(2&t){var n=f.oxw(2);f.Q6J("linear",!0),f.xp6(2),f.Q6J("stepControl",n.usersInfoFormGroup),f.xp6(2),f.Q6J("ngIf",n.functionalityNotSupported),f.xp6(2),f.Oqu(f.lcZ(7,35,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_INFO")),f.xp6(2),f.Q6J("formGroup",n.usersInfoFormGroup),f.xp6(2),f.s9C("placeholder",f.lcZ(11,37,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE")),f.xp6(2),f.Q6J("ngForOf",n.namespaceOptions),f.xp6(1),f.Q6J("ngIf",n.usersInfoFormGroup.hasError("required","namespace")),f.xp6(2),f.Oqu(f.lcZ(16,39,"DIALOGS.GENERATE_SPONSORED_MEMBERS.HINT")),f.xp6(3),f.hij(" ",n.getSelectedNamespaceRules().csvGenHeaderDescription," "),f.xp6(3),f.Oqu(f.lcZ(22,41,"DIALOGS.GENERATE_SPONSORED_MEMBERS.INSERT_HERE")),f.xp6(2),f.s9C("placeholder",n.getSelectedNamespaceRules().csvGenPlaceholder),f.xp6(2),f.Q6J("ngIf",n.usersInfoFormGroup.hasError("required","sponsoredMembers")),f.xp6(1),f.Q6J("ngIf",n.usersInfoFormGroup.hasError("invalidFormat","sponsoredMembers")),f.xp6(1),f.Q6J("ngIf",n.usersInfoFormGroup.hasError("invalidEmail","sponsoredMembers")),f.xp6(1),f.Q6J("ngIf",n.usersInfoFormGroup.hasError("invalidLogin","sponsoredMembers")),f.xp6(5),f.hij(" ",f.lcZ(34,43,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_MANAGEMENT")," "),f.xp6(2),f.Q6J("ngIf","No namespace"===n.getSelectedNamespaceRules().namespaceName),f.xp6(1),f.Q6J("ngIf","No namespace"!==n.getSelectedNamespaceRules().namespaceName),f.xp6(5),f.Oqu(f.lcZ(42,45,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION")),f.xp6(2),f.Q6J("expiration",n.expiration),f.xp6(5),f.Oqu(f.lcZ(49,47,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUP_ASSIGMENT")),f.xp6(2),f.Q6J("ngModel",n.groupAssignment),f.xp6(2),f.hij(" ",f.lcZ(53,49,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_ASSIGN")," "),f.xp6(2),f.s9C("matTooltip",f.lcZ(55,51,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_NEW")),f.Q6J("matTooltipDisabled",!n.manualMemberAddingBlocked&&n.createGroupAuth),f.xp6(2),f.Q6J("disabled",n.manualMemberAddingBlocked||!n.createGroupAuth),f.xp6(1),f.hij(" ",f.lcZ(58,53,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_TO_NEW")," "),f.xp6(2),f.s9C("matTooltip",f.lcZ(60,55,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_EXISTING")),f.Q6J("matTooltipDisabled",!n.manualMemberAddingBlocked&&0!==n.assignableGroups.length),f.xp6(2),f.Q6J("disabled",n.manualMemberAddingBlocked||0===n.assignableGroups.length),f.xp6(1),f.hij(" ",f.lcZ(63,57,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_EXISTING")," "),f.xp6(2),f.Q6J("ngIf","none"===n.groupAssignment),f.xp6(1),f.Q6J("ngIf","new"===n.groupAssignment),f.xp6(1),f.Q6J("ngIf","existing"===n.groupAssignment)}}function Tt(t,e){1&t&&(f.TgZ(0,"app-alert",41),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.Q6J("alert_type","success"),f.xp6(1),f.hij(" ",f.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUCCESS")," "))}function Et(t,e){1&t&&(f.TgZ(0,"app-alert",41),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.Q6J("alert_type","warn"),f.xp6(1),f.hij(" ",f.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.FINISHED_WITH_ERRORS")," "))}function St(t,e){if(1&t&&(f.TgZ(0,"div"),f.YNc(1,Tt,3,4,"app-alert",40),f.YNc(2,Et,3,4,"app-alert",40),f.qZA()),2&t){var i=f.oxw(2);f.xp6(1),f.Q6J("ngIf",!1===i.finishedWithErrors),f.xp6(1),f.Q6J("ngIf",i.finishedWithErrors)}}function It(t,e){if(1&t&&(f.TgZ(0,"div",5),f.YNc(1,Ct,67,59,"mat-stepper",6),f.YNc(2,St,3,2,"div",7),f.qZA()),2&t){var i=f.oxw();f.xp6(1),f.Q6J("ngIf","user-input"===i.state),f.xp6(1),f.Q6J("ngIf","results"===i.state)}}function Rt(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",47),f.NdJ("click",function(){return f.CHM(i),f.oxw(2).stepperPrevious()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.BACK")," "))}function xt(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",48),f.NdJ("click",function(){return f.CHM(i),f.oxw(2).stepperNext()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}if(2&t){var n=f.oxw(2);f.ekj("ml-2",void 0!==n.stepper&&0!==n.stepper.selectedIndex)("ml-auto",!(void 0!==n.stepper&&0!==n.stepper.selectedIndex)),f.Q6J("disabled",n.getStepperNextConditions()),f.xp6(1),f.hij(" ",f.lcZ(2,6,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NEXT")," ")}}function Ot(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",48),f.NdJ("click",function(){return f.CHM(i),f.oxw(2).onSubmit()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}if(2&t){var n=f.oxw(2);f.Q6J("disabled",null===n.groupAssignment||"existing"===n.groupAssignment&&0===n.selection.selected.length||"new"===n.groupAssignment&&(0===n.name.length||0===n.description.length)||!0===n.asSubGroup&&null===n.parentGroup),f.xp6(1),f.hij(" ",f.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUBMIT")," ")}}function Pt(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"div",42),f.TgZ(1,"button",43),f.NdJ("click",function(){return f.CHM(i),f.oxw().onCancel()}),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.YNc(4,Rt,3,3,"button",44),f.YNc(5,xt,3,8,"button",45),f.YNc(6,Ot,3,4,"button",46),f.qZA()}if(2&t){var n=f.oxw();f.xp6(2),f.hij(" ",f.lcZ(3,4,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),f.xp6(2),f.Q6J("ngIf",void 0!==n.stepper&&0!==n.stepper.selectedIndex),f.xp6(1),f.Q6J("ngIf",void 0!==n.stepper&&n.stepper.selectedIndex!==n.stepper._steps.length-1),f.xp6(1),f.Q6J("ngIf",void 0!==n.stepper&&n.stepper.selectedIndex===n.stepper._steps.length-1)}}function Dt(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"div",42),f.TgZ(1,"button",43),f.NdJ("click",function(){return f.CHM(i),f.oxw().onClose()}),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"button",49),f._uU(5),f.ALo(6,"translate"),f.qZA(),f.TgZ(7,"mat-menu",null,50),f.TgZ(9,"button",51),f.NdJ("click",function(){return f.CHM(i),f.oxw().generatePdf()}),f._uU(10),f.ALo(11,"translate"),f.qZA(),f.TgZ(12,"button",51),f.NdJ("click",function(){return f.CHM(i),f.oxw().downloadCsv()}),f._uU(13),f.ALo(14,"translate"),f.qZA(),f.qZA(),f.qZA()}if(2&t){var n=f.MAs(8);f.xp6(2),f.hij(" ",f.lcZ(3,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CLOSE")," "),f.xp6(2),f.Q6J("matMenuTriggerFor",n),f.xp6(1),f.hij(" ",f.lcZ(6,7,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD")," "),f.xp6(5),f.hij(" ",f.lcZ(11,9,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_PDF")," "),f.xp6(3),f.hij(" ",f.lcZ(14,11,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_CSV")," ")}}var Mt=function(){var t=function(){function t(e,i,n,a,s,c,u,l,h,d,f,p){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.store=n,this.membersService=a,this.notificator=s,this.translate=c,this.guiAuthResolver=u,this.groupsService=l,this.attributesService=h,this.formBuilder=d,this.sponsoredMembersPDFService=f,this.cd=p,this.loading=!1,this.functionalityNotSupported=!1,this.namespaceOptions=[],this.namespaceRules=[],this.state="user-input",this.passwordReset="generate",this.groupAssignment=null,this.expiration="never",this.assignableGroups=[],this.allVoGroups=[],this.selection=new r.Ov(!0,[]),this.manualMemberAddingBlocked=!1,this.name="",this.description="",this.asSubGroup=!1,this.parentGroup=null,this.groupIds=[],this.submitDisabled=!1,this.filterValue="",this.tableId=o.rc,this.finishedWithErrors=!1,this.groupAttrNames=[tt.r.GROUP_SYNC_ENABLED,tt.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;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:["",u.kI.required],sponsoredMembers:["",[u.kI.required,this.userInputValidator()]]}),this.usersInfoFormGroup.controls.namespace.valueChanges.subscribe({next:function(){t.usersInfoFormGroup.controls.sponsoredMembers.updateValueAndValidity()}}),this.attributesService.getVoAttributes(this.data.voId).subscribe(function(e){t.manualMemberAddingBlocked=t.hasAttributeEnabled(e,"blockManualMemberAdding"),!0!==t.manualMemberAddingBlocked?t.groupsService.getAllRichGroupsWithAttributesByNames(t.data.voId,t.groupAttrNames).subscribe(function(e){t.allVoGroups=e.filter(function(t){return"members"!==t.name}),t.assignableGroups=t.filterAssignableGroups(e),t.membersService.getAllNamespacesRules().subscribe(function(e){t.store.get("allow_empty_sponsor_namespace")&&t.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"}),t.namespaceRules=t.namespaceRules.concat(e),t.namespaceRules.forEach(function(e){return t.namespaceOptions.push(e.namespaceName)}),0===t.namespaceOptions.length?t.functionalityNotSupported=!0:t.usersInfoFormGroup.setValue({namespace:t.namespaceOptions[0],sponsoredMembers:""}),t.loading=!1,t.cd.detectChanges()})},function(){return t.loading=!1}):(t.loading=!1,t.cd.detectChanges())},function(){return t.loading=!1})}},{key:"filterAssignableGroups",value:function(t){var e,i=[],n=_createForOfIteratorHelper(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;this.hasAttributeEnabled(r.attributes,"synchronizationEnabled")||this.hasAttributeEnabled(r.attributes,"blockManualMemberAdding")||!this.guiAuthResolver.isAuthorized("addMembers_Group_List_policy",[r])||i.push(r)}}catch(o){n.e(o)}finally{n.f()}return i}},{key:"hasAttributeEnabled",value:function(t,e){return t.some(function(t){return t.friendlyName===e&&null!==t.value&&"true"===t.value.toString()})}},{key:"createOutputObjects",value:function(t){var e="",i="",n="",r="",o=[];return t.forEach(function(t){e=t.name.replace(";"," ").split(";")[0],i=t.status,n=t.login?t.login:n,r=t.password?t.password:r,o.push({name:e,status:i,login:n,password:r})}),o}},{key:"onGenerate",value:function(){var e=this;this.loading=!0;var i,n=this.usersInfoFormGroup.get("sponsoredMembers").value.split("\n"),r=this.getSelectedNamespaceRules().csvGenHeader,o=[],a=_createForOfIteratorHelper(n);try{for(a.s();!(i=a.n()).done;){var s=i.value,c=this.parseMemberLine(s);if("format"===c||"email"===c)return void(this.loading=!1);""!==c&&o.push(c)}}catch(h){a.e(h)}finally{a.f()}var u={data:o,header:r,namespace:"",sponsor:this.store.getPerunPrincipal().userId,vo:this.data.voId,sendActivationLinks:"reset"===this.passwordReset};"none"!==this.groupAssignment&&(u.groups=this.groupIds),"never"!==this.expiration&&(u.validityTo=(0,l.p6)(this.expiration,"yyyy-MM-dd","en-GB")),"No namespace"!==this.usersInfoFormGroup.get("namespace").value&&(u.namespace=this.usersInfoFormGroup.get("namespace").value),this.membersService.createSponsoredMembersFromCSV(u).subscribe(function(i){e.state="results",e.finishedWithErrors=t.didSomeGenerationFailed(i),e.loading=!1,e.resultData=i},function(){return e.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onClose",value:function(){this.dialogRef.close(!0)}},{key:"parseMemberLine",value:function(t){var e=t.trim();if(""===e)return"";var i=e.split(";"),n=this.getSelectedNamespaceRules().csvGenHeader.split(";");if(i.length!==n.length)return"format";if("mail"===n[2].slice(n[2].length-4).toLowerCase()&&!i[2].trim().match(a.B2))return"email";if("login"===n[3]&&""===i[3].trim())return"login";var r,o="",s=_createForOfIteratorHelper(i);try{for(s.s();!(r=s.n()).done;){o+=r.value.trim()+";"}}catch(c){s.e(c)}finally{s.f()}return o.slice(0,-1)}},{key:"userInputValidator",value:function(){var t=this;return function(e){var i,n=_createForOfIteratorHelper(e.value.split("\n"));try{for(n.s();!(i=n.n()).done;){var r=i.value,o=t.parseMemberLine(r);if("format"===o)return{invalidFormat:{value:r}};if("email"===o)return{invalidEmail:{value:r}};if("login"===o)return{invalidLogin:{value:r}}}}catch(a){n.e(a)}finally{n.f()}return null}}},{key:"setExpiration",value:function(t){this.expiration="never"===t?"never":(0,l.p6)(t,"yyyy-MM-dd","en-GB")}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"groupAssigmentChanged",value:function(){this.selection.clear(),this.name="",this.description="",this.asSubGroup=!1,this.parentGroup=null}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,"new"===this.groupAssignment?this.asSubGroup?this.groupsService.createGroupWithParentGroupNameDescription(this.parentGroup.id,this.name,this.description).subscribe(function(e){t.groupIds.push(e.id),t.onGenerate()},function(){return t.loading=!1}):this.groupsService.createGroupWithVoNameDescription(this.data.voId,this.name,this.description).subscribe(function(e){t.groupIds.push(e.id),t.onGenerate()},function(){return t.loading=!1}):("existing"===this.groupAssignment&&(this.groupIds=this.selection.selected.map(function(t){return t.id})),this.onGenerate())}},{key:"getSelectedNamespaceRules",value:function(){var t=this;return this.namespaceRules.find(function(e){return e.namespaceName===t.usersInfoFormGroup.get("namespace").value})}},{key:"generatePdf",value:function(){var t=this;if(!this.resultData)throw new Error("Cannot generate pdf because there is no result");this.loading=!0,this.sponsoredMembersPDFService.generate(this.resultData).then(function(){return t.loading=!1})}},{key:"downloadCsv",value:function(){if(!this.resultData)throw new Error("Cannot generate pdf because there is no result");(0,a.O6)(this.createOutputObjects(this.resultData),"csv","member-logins")}},{key:"getStepperNextConditions",value:function(){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}}},{key:"stepperPrevious",value:function(){this.stepper.previous()}},{key:"stepperNext",value:function(){this.stepper.next()}}],[{key:"didSomeGenerationFailed",value:function(t){return t.forEach(function(t){if("OK"!==t.status)return!0}),!1}}]),t}();return t.\u0275fac=function(e){return new(e||t)(f.Y36(s.so),f.Y36(s.WI),f.Y36(c.d6),f.Y36(n.uq),f.Y36(c.V6),f.Y36(p.sK),f.Y36(c.x4),f.Y36(n.ff),f.Y36(n.H8),f.Y36(u.qu),f.Y36(c.HV),f.Y36(f.sBO))},t.\u0275cmp=f.Xpm({type:t,selectors:[["app-generate-sponsored-members-dialog"]],viewQuery:function(t,e){var i;(1&t&&f.Gf(ot,5),2&t)&&(f.iGM(i=f.CRH())&&(e.stepper=i.first))},decls:8,vars:10,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",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"],["required","","formControlName","namespace",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],[1,"font-weight-bold"],[1,"pt-2"],["id","voGenerateSponsoredMembers","name","voGenerateSponsoredMembers","rows","8","cols","50","matInput","","formControlName","sponsoredMembers",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","nameChanged","descriptionChanged","parentGroupChanged","asSubgroupChanged"],[3,"placeholder","filter"],[3,"groups","selection","displayedColumns","disableRouting","tableId","filter"],[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"],["mat-flat-button","","color","accent",1,"ml-auto","dropdown-toggle",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,e){1&t&&(f.TgZ(0,"div"),f.TgZ(1,"h1",0),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.YNc(4,at,1,0,"mat-spinner",1),f.YNc(5,It,3,2,"div",2),f.YNc(6,Pt,7,6,"div",3),f.YNc(7,Dt,15,13,"div",3),f.qZA()),2&t&&(f.Tol(e.theme),f.xp6(2),f.Oqu(f.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.TITLE")),f.xp6(2),f.Q6J("ngIf",e.loading),f.xp6(1),f.Q6J("ngIf",!e.loading),f.xp6(1),f.Q6J("ngIf",!e.loading&&void 0!==e.stepper&&"results"!==e.state),f.xp6(1),f.Q6J("ngIf","results"===e.state))},directives:[s.uh,l.O5,g.$g,s.xY,m.Vq,m.C0,m.VY,u._Y,u.JL,u.sg,v.KE,_.gD,u.Q7,u.JJ,u.u,l.sg,v.hX,y.Nt,u.Fj,T,k.VQ,u.On,k.U0,b.gM,E.w,S.ey,v.TO,et.r,it.L,nt.W,s.H8,x.lW,rt.p6,rt.VK,rt.OP],pipes:[p.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t}(),Lt=i(4252);function Nt(t,e){1&t&&f._UZ(0,"mat-spinner",12)}var zt=function(){return["checkbox","id","fullName","status","sponsored","email"]};function Zt(t,e){if(1&t&&f._UZ(0,"perun-web-apps-members-list",13),2&t){var i=f.oxw();f.Q6J("tableId",i.tableId)("hidden",i.loading)("members",i.members)("selection",i.selection)("displayedColumns",f.DdM(6,zt))("disableRouting",!0)}}function Bt(t,e){1&t&&(f.TgZ(0,"app-alert",14),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"DIALOGS.SPONSOR_EXISTING_MEMBER.BEGIN_SEARCH")," "))}var Ft=function(){var t=function(){function t(e,i,n,a,s,c){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.store=n,this.membersService=a,this.notificator=s,this.translate=c,this.loading=!1,this.tableId=o.US,this.expiration="never",this.searchCtrl=new u.NI("",[u.kI.required]),this.firstSearchDone=!1,this.members=[],this.selection=new r.Ov(!0,[])}return _createClass(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"sponsor",value:function(t){var e=this;if(this.loading=!0,0===t.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.SPONSOR_EXISTING_MEMBER.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);var i=t.pop();i.sponsored?this.membersService.sponsorMember(i.id,this.store.getPerunPrincipal().user.id,this.expiration).subscribe(function(){e.sponsor(t)},function(){return e.loading=!1}):this.membersService.setSponsorshipForMember(i.id,this.store.getPerunPrincipal().user.id,this.expiration).subscribe(function(){e.sponsor(t)},function(){return e.loading=!1})}},{key:"onSubmit",value:function(){this.loading=!0;var t=Array.from(this.selection.selected);this.expiration="never"===this.expiration?null:this.expiration,this.sponsor(t)}},{key:"setExpiration",value:function(t){this.expiration="never"===t?"never":(0,l.p6)(t,"yyyy-MM-dd","en-GB")}},{key:"onSearchByString",value:function(){var t=this;this.searchCtrl.invalid?this.searchCtrl.markAllAsTouched():(this.firstSearchDone=!0,this.loading=!0,this.selection.clear(),this.membersService.findCompleteRichMembersForVo(this.data.voId,[tt.r.MEMBER_DEF_EXPIRATION,tt.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe(function(e){t.members=e,t.loading=!1},function(){return t.loading=!1}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(f.Y36(s.so),f.Y36(s.WI),f.Y36(c.d6),f.Y36(n.uq),f.Y36(c.V6),f.Y36(p.sK))},t.\u0275cmp=f.Xpm({type:t,selectors:[["app-sponsor-existing-member-dialog"]],decls:31,vars:30,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"mr-2","search-field","adjust-width"],["matInput","","autocomplete","false",3,"placeholder","formControl","keyup.enter"],["mat-flat-button","","color","accent",1,"ml-auto",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","hidden","members","selection","displayedColumns","disableRouting",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"datePicker"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","hidden","members","selection","displayedColumns","disableRouting"],["alert_type","info"]],template:function(t,e){1&t&&(f.TgZ(0,"div"),f.TgZ(1,"h1",0),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"div",1),f.TgZ(5,"mat-form-field",2),f.TgZ(6,"label"),f.TgZ(7,"input",3),f.NdJ("keyup.enter",function(){return e.onSearchByString()}),f.ALo(8,"translate"),f.qZA(),f.qZA(),f.TgZ(9,"mat-error"),f._uU(10),f.ALo(11,"translate"),f.qZA(),f.qZA(),f.TgZ(12,"button",4),f.NdJ("click",function(){return e.onSearchByString()}),f._uU(13),f.ALo(14,"translate"),f.qZA(),f.YNc(15,Nt,1,0,"mat-spinner",5),f.YNc(16,Zt,1,7,"perun-web-apps-members-list",6),f.YNc(17,Bt,3,3,"app-alert",7),f.TgZ(18,"div"),f._UZ(19,"br"),f.TgZ(20,"h6"),f._uU(21),f.ALo(22,"translate"),f.qZA(),f.TgZ(23,"perun-web-apps-expiration-select",8),f.NdJ("datePicker",function(t){return e.setExpiration(t)}),f.qZA(),f.qZA(),f.qZA(),f.TgZ(24,"div",9),f.TgZ(25,"button",10),f.NdJ("click",function(){return e.onCancel()}),f._uU(26),f.ALo(27,"translate"),f.qZA(),f.TgZ(28,"button",11),f.NdJ("click",function(){return e.onSubmit()}),f._uU(29),f.ALo(30,"translate"),f.qZA(),f.qZA(),f.qZA()),2&t&&(f.Tol(e.theme),f.xp6(2),f.Oqu(f.lcZ(3,16,"DIALOGS.SPONSOR_EXISTING_MEMBER.TITLE")),f.xp6(5),f.s9C("placeholder",f.lcZ(8,18,"DIALOGS.SPONSOR_EXISTING_MEMBER.DESCRIPTION")),f.Q6J("formControl",e.searchCtrl),f.xp6(3),f.hij(" ",f.lcZ(11,20,"DIALOGS.SPONSOR_EXISTING_MEMBER.EMPTY_SEARCH_MESSAGE")," "),f.xp6(2),f.Q6J("disabled",e.loading),f.xp6(1),f.hij(" ",f.lcZ(14,22,"DIALOGS.SPONSOR_EXISTING_MEMBER.SEARCH")," "),f.xp6(2),f.Q6J("ngIf",e.loading),f.xp6(1),f.Q6J("ngIf",e.firstSearchDone),f.xp6(1),f.Q6J("ngIf",!e.firstSearchDone),f.xp6(4),f.Oqu(f.lcZ(22,24,"DIALOGS.SPONSOR_EXISTING_MEMBER.EXPIRATION")),f.xp6(5),f.hij(" ",f.lcZ(27,26,"DIALOGS.SPONSOR_EXISTING_MEMBER.CANCEL")," "),f.xp6(2),f.Q6J("disabled",e.loading||0===e.selection.selected.length),f.xp6(1),f.hij(" ",f.lcZ(30,28,"DIALOGS.SPONSOR_EXISTING_MEMBER.SPONSOR")," "))},directives:[s.uh,s.xY,v.KE,y.Nt,u.Fj,u.JJ,u.oH,v.TO,x.lW,l.O5,T,s.H8,g.$g,Lt.O,E.w],pipes:[p.X$],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}"]}),t}(),Ht=i(59403),Ut=i(58623),qt=i(67033),Gt=i(79592),jt=i(95121),Yt=i(82819),Kt=i(84534),Vt=i(57629);function Jt(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"th",16),f.TgZ(1,"mat-checkbox",17),f.NdJ("change",function(t){f.CHM(i);var e=f.oxw();return t?e.masterToggle():null}),f.qZA(),f.qZA()}if(2&t){var n=f.oxw();f.xp6(1),f.Q6J("aria-label",n.checkboxLabel())("checked",n.selection.hasValue()&&n.isAllSelected())("indeterminate",n.selection.hasValue()&&!n.isAllSelected())}}function Qt(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"td",18),f.TgZ(1,"mat-checkbox",19),f.NdJ("change",function(t){var e=f.CHM(i).$implicit,n=f.oxw();return t?n.selection.toggle(e):null})("click",function(t){return t.stopPropagation()}),f.qZA(),f.qZA()}if(2&t){var n=e.$implicit,r=f.oxw();f.xp6(1),f.Q6J("aria-label",r.checkboxLabel(n))("checked",r.selection.isSelected(n))}}function Wt(t,e){1&t&&(f.TgZ(0,"th",20),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.ID")," "))}function Xt(t,e){if(1&t&&(f.TgZ(0,"td",21),f._uU(1),f.qZA()),2&t){var i=e.$implicit;f.xp6(1),f.hij(" ",i.member.id," ")}}function $t(t,e){1&t&&(f.TgZ(0,"th",20),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NAME")," "))}function te(t,e){if(1&t&&(f.TgZ(0,"td",22),f._uU(1),f.ALo(2,"userFullName"),f.qZA()),2&t){var i=e.$implicit;f.xp6(1),f.hij(" ",f.lcZ(2,1,i.member.user)," ")}}function ee(t,e){1&t&&(f.TgZ(0,"th",20),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.SPONSORS")," "))}function ie(t,e){if(1&t&&(f.TgZ(0,"span"),f._uU(1),f.ALo(2,"userFullName"),f._UZ(3,"br"),f.qZA()),2&t){var i=e.$implicit;f.xp6(1),f.hij(" ",f.lcZ(2,1,i.user),"")}}function ne(t,e){if(1&t&&(f.TgZ(0,"td",22),f.YNc(1,ie,4,3,"span",23),f.qZA()),2&t){var i=e.$implicit;f.xp6(1),f.Q6J("ngForOf",i.sponsors)}}function re(t,e){1&t&&f._UZ(0,"th",20)}function oe(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"span",26),f.ALo(1,"translate"),f.TgZ(2,"button",27),f.NdJ("mouseenter",function(){return f.CHM(i),f.oxw(2).disableRouting=!0})("mouseleave",function(){f.CHM(i);var t=f.oxw(2);return t.disableRouting=t.routingStrategy})("click",function(){f.CHM(i);var t=f.oxw().$implicit;return f.oxw().resetPassword(t)}),f.TgZ(3,"mat-icon"),f._uU(4,"vpn_key"),f.qZA(),f.qZA(),f.qZA()}if(2&t){var n=f.oxw(2);f.Q6J("matTooltipPosition","above")("matTooltip",f.lcZ(1,3,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.PASSWORD_RESET")),f.xp6(2),f.Q6J("disabled",n.loading)}}function ae(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"td",22),f.TgZ(1,"button",24),f.NdJ("click",function(){var t=f.CHM(i).$implicit;return f.oxw().showSponsors(t)})("mouseenter",function(){return f.CHM(i),f.oxw().disableRouting=!0})("mouseleave",function(){f.CHM(i);var t=f.oxw();return t.disableRouting=t.routingStrategy}),f.TgZ(2,"mat-icon"),f._uU(3,"edit"),f.qZA(),f.qZA(),f.YNc(4,oe,5,5,"span",25),f.qZA()}if(2&t){var n=e.$implicit,r=f.oxw();f.xp6(4),f.Q6J("ngIf",r.passwdResetAuth(n))}}function se(t,e){1&t&&f._UZ(0,"tr",28)}var ce=function(t,e){return["/organizations",t,"members",e]};function ue(t,e){if(1&t&&f._UZ(0,"tr",29),2&t){var i=e.$implicit,n=f.oxw();f.ekj("cursor-pointer",!n.disableRouting)("disable-outline",n.disableRouting),f.Q6J("perunWebAppsMiddleClickRouterLink",n.disableRouting?null:f.WLB(6,ce,i.member.voId,i.member.id))("routerLink",n.disableRouting?null:f.WLB(9,ce,i.member.voId,i.member.id))}}function le(t,e){1&t&&(f.TgZ(0,"app-alert",30),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function he(t,e){1&t&&(f.TgZ(0,"app-alert",30),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NO_SPONSORED_MEMBERS_WARNING"),"\n"))}var de=function(){var t=function(){function t(e,i,n,r,o){_classCallCheck(this,t),this.dialog=e,this.authResolver=i,this.storeService=n,this.attributesManager=r,this.tableCheckbox=o,this.sponsoredMembers=[],this.filterValue="",this.displayedColumns=["id","name","sponsors","menu"],this.disableRouting=!1,this.refreshTable=new f.vpe,this.loading=!1,this.routingStrategy=!1,this.pageSizeOptions=a.f7}return _createClass(t,[{key:"matSort",set:function(t){this.sort=t}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.setDataSource(),this.routingStrategy=this.disableRouting}},{key:"getSortDataForColumn",value:function(t,e){var i;switch(e){case"id":return t.member.id.toString();case"name":return t.member.user?t.member.user.lastName?t.member.user.lastName:null!==(i=t.member.user.firstName)&&void 0!==i?i:"":"";case"sponsors":return t.sponsors.length.toString();default:return""}}},{key:"getDataForColumn",value:function(t,e){switch(e){case"id":return t.member.id.toString();case"name":return t.member.user?(0,a.bD)(t.member.user):"";case"sponsors":return t.sponsors.map(function(t){return(0,a.bD)(t.user)}).join();default:return""}}},{key:"exportData",value:function(t){(0,a.O6)((0,a.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource||(this.dataSource=new qt.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=function(e,i){return(0,a.Sd)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return(0,a.pR)(e,i,t.getSortDataForColumn,t)}),this.dataSource.filter=this.filterValue,this.dataSource.data=this.sponsoredMembers}},{key:"showSponsors",value:function(t){var e=this,i=(0,a.kZ)();i.width="650px",i.data={sponsors:t.sponsors,member:t.member,theme:"vo-theme"},this.dialog.open(Gt.H,i).afterClosed().subscribe(function(t){t&&e.refreshTable.emit()})}},{key:"isAllSelected",value:function(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.member.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"resetPassword",value:function(t){var e=this;this.loading=!0;var i=this.storeService.get("password_namespace_attributes").map(function(t){return(t=t.split(":"))[t.length-1]});this.attributesManager.getLogins(t.member.userId).subscribe(function(n){var r=n.filter(function(t){return i.includes(t.friendlyNameParameter)}),o=(0,a.kZ)();o.width="400px",o.data={userId:t.member.userId,memberId:t.member.id,logins:r},e.dialog.open(jt.m,o).afterClosed().subscribe(function(){e.loading=!1})},function(){return e.loading=!1})}},{key:"passwdResetAuth",value:function(t){return this.authResolver.isAuthorized("sendPasswordResetLinkEmail_Member_String_String_String_String_policy",[{id:t.member.voId,beanName:"Vo"},t.member])}}]),t}();return t.\u0275fac=function(e){return new(e||t)(f.Y36(s.uw),f.Y36(c.x4),f.Y36(c.d6),f.Y36(n.H8),f.Y36(c.UA))},t.\u0275cmp=f.Xpm({type:t,selectors:[["app-sponsored-members-list"]],viewQuery:function(t,e){var i;(1&t&&(f.Gf(Ut.YE,7),f.Gf(a.l9,7)),2&t)&&(f.iGM(i=f.CRH())&&(e.matSort=i.first),f.iGM(i=f.CRH())&&(e.child=i.first))},inputs:{sponsoredMembers:"sponsoredMembers",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",disableRouting:"disableRouting",tableId:"tableId"},outputs:{refreshTable:"refreshTable"},features:[f.TTD],decls:22,vars:9,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","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",""],[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(t,e){1&t&&(f.TgZ(0,"div",0),f.TgZ(1,"perun-web-apps-table-wrapper",1),f.NdJ("exportData",function(t){return e.exportData(t)}),f.TgZ(2,"table",2),f.ynx(3,3),f.YNc(4,Jt,2,3,"th",4),f.YNc(5,Qt,2,2,"td",5),f.BQk(),f.ynx(6,6),f.YNc(7,Wt,3,3,"th",7),f.YNc(8,Xt,2,1,"td",8),f.BQk(),f.ynx(9,9),f.YNc(10,$t,3,3,"th",7),f.YNc(11,te,3,3,"td",10),f.BQk(),f.ynx(12,11),f.YNc(13,ee,3,3,"th",7),f.YNc(14,ne,2,1,"td",10),f.BQk(),f.ynx(15,12),f.YNc(16,re,1,0,"th",7),f.YNc(17,ae,5,1,"td",10),f.BQk(),f.YNc(18,se,1,0,"tr",13),f.YNc(19,ue,1,12,"tr",14),f.qZA(),f.qZA(),f.qZA(),f.YNc(20,le,3,3,"app-alert",15),f.YNc(21,he,3,3,"app-alert",15)),2&t&&(f.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.sponsoredMembers.length),f.xp6(1),f.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),f.xp6(1),f.Q6J("dataSource",e.dataSource),f.xp6(16),f.Q6J("matHeaderRowDef",e.displayedColumns),f.xp6(1),f.Q6J("matRowDefColumns",e.displayedColumns),f.xp6(1),f.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.sponsoredMembers.length),f.xp6(1),f.Q6J("ngIf",0===e.sponsoredMembers.length))},directives:[Yt.l,qt.BZ,Ut.YE,qt.w1,qt.fO,qt.Dz,qt.as,qt.nj,l.O5,qt.ge,w.oG,qt.ev,Ut.nU,l.sg,x.lW,R.Hw,b.gM,qt.XQ,qt.Gk,Kt.YH,Vt.rH,E.w],pipes:[p.X$,O.d],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t}();function fe(t,e){if(1&t&&(f.TgZ(0,"button",10),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&t){var i=f.oxw(),n=f.MAs(9);f.Q6J("disabled",i.findSponsorsAuth&&0===i.voSponsors.length)("matMenuTriggerFor",n),f.xp6(1),f.hij(" ",f.lcZ(2,3,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE")," ")}}function pe(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",11),f.NdJ("click",function(){return f.CHM(i),f.oxw().onCreate()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE_ONE")," "))}function ge(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",11),f.NdJ("click",function(){return f.CHM(i),f.oxw().onGenerate()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.GENERATE")," "))}function me(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"button",12),f.NdJ("click",function(){return f.CHM(i),f.oxw().onSponsorExistingMember()}),f._uU(1),f.ALo(2,"translate"),f.qZA()}2&t&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.SPONSOR_EXISTING")," "))}function ve(t,e){1&t&&f._UZ(0,"mat-spinner",13)}function ye(t,e){if(1&t){var i=f.EpF();f.TgZ(0,"app-sponsored-members-list",14),f.NdJ("refreshTable",function(){return f.CHM(i),f.oxw().refresh()}),f.qZA()}if(2&t){var n=f.oxw();f.Q6J("sponsoredMembers",n.members)("disableRouting",!n.routeAuth)("selection",n.selection)("filterValue",n.searchString)("tableId",n.tableId)}}var _e=function(){var t=function(){function t(e,i,n,a,s,c){_classCallCheck(this,t),this.membersManager=e,this.dialog=i,this.authResolver=n,this.storeService=a,this.authzResolver=s,this.entityStorageService=c,this.members=[],this.voSponsors=[],this.attrNames=[],this.selection=new r.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=o.Bf}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights();var e=["SPONSOR"],i=new Map;this.authResolver.getRolesAuthorization(e,this.vo,i),this.findSponsorsAuth=i.get(e[0]).readAuth,this.findSponsorsAuth?this.authzResolver.getAuthzRichAdmins(h.u.SPONSOR,this.vo.id,"Vo",[tt.r.USER_DEF_PREFERRED_MAIL],!1,!1).subscribe(function(e){t.voSponsors=e,t.refresh()}):this.refresh()}},{key:"setAuthRights",value:function(){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]))}},{key:"onCreate",value:function(){var t=this,e=(0,a.kZ)();e.width="620px",e.data={entityId:this.vo.id,voId:this.vo.id,sponsors:this.voSponsors,theme:"vo-theme"},this.dialog.open($,e).afterClosed().subscribe(function(e){e&&(t.loading=!0,t.authzResolver.getPerunPrincipal().subscribe(function(e){t.storeService.setPerunPrincipal(e),t.refresh()}))})}},{key:"onGenerate",value:function(){var t=this,e=(0,a.kZ)();e.width="750px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(Mt,e).afterClosed().subscribe(function(e){e&&(t.loading=!0,t.authzResolver.getPerunPrincipal().subscribe(function(e){t.storeService.setPerunPrincipal(e),t.refresh()}))})}},{key:"onSponsorExistingMember",value:function(){var t=this,e=(0,a.kZ)();e.width="650px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(Ft,e).afterClosed().subscribe(function(e){e&&(t.loading=!0,t.authzResolver.getPerunPrincipal().subscribe(function(e){t.storeService.setPerunPrincipal(e),t.refresh()}))})}},{key:"refresh",value:function(){var t=this;this.loading=!0,this.membersManager.getSponsoredMembersAndTheirSponsors(this.vo.id,this.attrNames).subscribe(function(e){t.selection.clear(),t.members=e,t.setAuthRights(),t.loading=!1})}},{key:"applyFilter",value:function(t){this.searchString=t}}]),t}();return t.id="VoSponsoredMembersComponent",t.\u0275fac=function(e){return new(e||t)(f.Y36(n.uq),f.Y36(s.uw),f.Y36(c.x4),f.Y36(c.d6),f.Y36(n.Ct),f.Y36(c.fb))},t.\u0275cmp=f.Xpm({type:t,selectors:[["app-vo-settings-sponsored-members"]],hostVars:2,hostBindings:function(t,e){2&t&&f.ekj("router-component",e.true)},decls:16,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent","class","mr-2 dropdown-toggle",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["mat-menu-item","","class","action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"sponsoredMembers","disableRouting","selection","filterValue","tableId","refreshTable",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",1,"action-button",3,"click"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"sponsoredMembers","disableRouting","selection","filterValue","tableId","refreshTable"]],template:function(t,e){1&t&&(f.TgZ(0,"div"),f.TgZ(1,"h1",0),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"perun-web-apps-refresh-button",1),f.NdJ("refresh",function(){return e.refresh()}),f.qZA(),f.TgZ(5,"span",2),f.ALo(6,"translate"),f.YNc(7,fe,3,5,"button",3),f.qZA(),f.TgZ(8,"mat-menu",null,4),f.YNc(10,pe,3,3,"button",5),f.YNc(11,ge,3,3,"button",5),f.qZA(),f.YNc(12,me,3,3,"button",6),f.TgZ(13,"perun-web-apps-immediate-filter",7),f.NdJ("filter",function(t){return e.applyFilter(t)}),f.qZA(),f.YNc(14,ve,1,0,"mat-spinner",8),f.YNc(15,ye,1,5,"app-sponsored-members-list",9),f.qZA()),2&t&&(f.xp6(2),f.Oqu(f.lcZ(3,10,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.TITLE")),f.xp6(3),f.s9C("matTooltip",f.lcZ(6,12,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.NO_SPONSORS")),f.Q6J("matTooltipDisabled",!(e.findSponsorsAuth&&0===e.voSponsors.length)),f.xp6(2),f.Q6J("ngIf",e.createAuth||e.generateAuth),f.xp6(3),f.Q6J("ngIf",e.createAuth),f.xp6(1),f.Q6J("ngIf",e.generateAuth),f.xp6(1),f.Q6J("ngIf",e.setSponsorshipAuth),f.xp6(1),f.Q6J("placeholder","VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.FILTER"),f.xp6(1),f.Q6J("ngIf",e.loading),f.xp6(1),f.Q6J("ngIf",!e.loading))},directives:[Ht.t,b.gM,l.O5,rt.VK,it.L,x.lW,rt.p6,rt.OP,g.$g,de],pipes:[p.X$],styles:[""]}),t}()},17249:function(t,e,i){"use strict";i.d(e,{Y:function(){return M}});var n=i(65249),r=i(84140),o=i(68416),a=i(99608),s=i(4230),c=i(84608),u=i(16073),l=i(31572),h=i(48160),d=i(57629),f=i(61511),p=i(67806),g=i(66283),m=i(80340),v=i(15980),y=i(36922);function _(t,e){1&t&&l._UZ(0,"mat-spinner",3)}function b(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"div"),l.TgZ(1,"div",4),l.TgZ(2,"mat-form-field"),l._UZ(3,"input",5),l.ALo(4,"translate"),l.TgZ(5,"mat-error"),l._uU(6),l.ALo(7,"translate"),l.qZA(),l.qZA(),l.TgZ(8,"mat-form-field"),l._UZ(9,"input",6),l.ALo(10,"translate"),l.TgZ(11,"mat-error"),l._uU(12),l.ALo(13,"translate"),l.qZA(),l.qZA(),l.qZA(),l.TgZ(14,"div",7),l.TgZ(15,"button",8),l.NdJ("click",function(){return l.CHM(i),l.oxw().onCancel()}),l._uU(16),l.ALo(17,"translate"),l.qZA(),l.TgZ(18,"div",9),l.ALo(19,"translate"),l.TgZ(20,"button",10),l.NdJ("click",function(){return l.CHM(i),l.oxw().onSubmit()}),l._uU(21),l.ALo(22,"translate"),l.qZA(),l.qZA(),l.qZA(),l.qZA()}if(2&t){var n=l.oxw();l.xp6(3),l.s9C("placeholder",l.lcZ(4,11,"DIALOGS.CREATE_VO.FULL_NAME")),l.Q6J("formControl",n.fullNameCtrl),l.xp6(3),l.hij(" ",l.lcZ(7,13,"DIALOGS.CREATE_VO.FILL_FULL_NAME")," "),l.xp6(3),l.s9C("placeholder",l.lcZ(10,15,"DIALOGS.CREATE_VO.SHORT_NAME")),l.Q6J("formControl",n.shortNameCtrl),l.xp6(3),l.hij(" ",l.lcZ(13,17,"DIALOGS.CREATE_VO.FILL_SHORT_NAME")," "),l.xp6(4),l.hij(" ",l.lcZ(17,19,"DIALOGS.CREATE_VO.CANCEL")," "),l.xp6(2),l.s9C("matTooltip",l.lcZ(19,21,"DIALOGS.CREATE_VO.TOOLTIP")),l.Q6J("matTooltipDisabled",n.shortNameCtrl.valid&&n.fullNameCtrl.valid),l.xp6(2),l.Q6J("disabled",n.shortNameCtrl.invalid||n.fullNameCtrl.invalid),l.xp6(1),l.hij(" ",l.lcZ(22,23,"DIALOGS.CREATE_VO.CREATE")," ")}}var w=function(){var t=function(){function t(e,i,n,r,o,a){var s=this;_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.voService=r,this.translate=o,this.router=a,o.get("DIALOGS.CREATE_VO.SUCCESS").subscribe(function(t){return s.successMessage=t})}return _createClass(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.shortNameCtrl=new u.NI(null,[u.kI.required,u.kI.pattern("^[\\w.-]+$"),u.kI.maxLength(33)]),this.fullNameCtrl=new u.NI(null,[u.kI.required,u.kI.pattern(".*[\\S]+.*"),u.kI.maxLength(129)])}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.voService.createVoWithName(this.fullNameCtrl.value,this.shortNameCtrl.value).subscribe(function(e){t.notificator.showSuccess(t.successMessage),t.loading=!1,t.dialogRef.close(!0),t.router.navigate(["/organizations",e.id])},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Y36(c.so),l.Y36(c.WI),l.Y36(o.V6),l.Y36(n.YF),l.Y36(h.sK),l.Y36(d.F0))},t.\u0275cmp=l.Xpm({type:t,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","","required","","data-cy","vo-name-input",3,"placeholder","formControl"],["matInput","","required","","data-cy","vo-shortname-input",3,"placeholder","formControl"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent","data-cy","create-vo-button",1,"ml-2",3,"disabled","click"]],template:function(t,e){1&t&&(l.TgZ(0,"div"),l.TgZ(1,"h1",0),l._uU(2),l.ALo(3,"translate"),l.qZA(),l.YNc(4,_,1,0,"mat-spinner",1),l.YNc(5,b,23,25,"div",2),l.qZA()),2&t&&(l.Tol(e.theme),l.xp6(2),l.Oqu(l.lcZ(3,6,"DIALOGS.CREATE_VO.TITLE")),l.xp6(2),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[c.uh,f.O5,p.$g,c.xY,g.KE,m.Nt,u.Fj,u.Q7,u.JJ,u.oH,g.TO,c.H8,v.lW,y.gM],pipes:[h.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}}"]}),t}(),A=i(60611),k=i(48958),C=i(66297),T=i(43691),E=i(59403),S=i(19139),I=i(97162);function R(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",9),l.NdJ("click",function(){return l.CHM(i),l.oxw().onCreateVo()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}2&t&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"VO_MANAGEMENT.CREATE_VO")," "))}function x(t,e){if(1&t){var i=l.EpF();l.TgZ(0,"button",10),l.NdJ("click",function(){return l.CHM(i),l.oxw().onRemoveVo()}),l._uU(1),l.ALo(2,"translate"),l.qZA()}if(2&t){var n=l.oxw();l.Q6J("disabled",0===n.selection.selected.length),l.xp6(1),l.hij(" ",l.lcZ(2,2,"VO_MANAGEMENT.REMOVE_VO")," ")}}function O(t,e){1&t&&l._UZ(0,"mat-spinner",11)}function P(t,e){if(1&t&&l._UZ(0,"perun-web-apps-vos-list",12),2&t){var i=l.oxw();l.Q6J("tableId",i.tableId)("displayedColumns",i.displayedColumns)("filterValue",i.filterValue)("recentIds",i.recentIds)("selection",i.selection)("vos",i.vos)}}var D=function(){return{color:"black"}},M=function(){var t=function(){function t(e,i,n,r,o,a){_classCallCheck(this,t),this.sideMenuService=e,this.voService=i,this.guiAuthResolver=n,this.dialog=r,this.notificator=o,this.apiRequest=a,this.vos=[],this.recentIds=[],this.filterValue="",this.tableId=A.tw}return _createClass(t,[{key:"ngOnInit",value:function(){this.loading=!0,this.selection=new s.Ov(!1,[]),this.createAuth=this.guiAuthResolver.isAuthorized("createVo_Vo_policy",[]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteVo_Vo_policy",[]),this.displayedColumns=this.deleteAuth?["checkbox","id","recent","shortName","name"]:["id","recent","shortName","name"],this.refreshTable()}},{key:"ngAfterViewChecked",value:function(){this.sideMenuService.setAccessMenuItems([])}},{key:"refreshTable",value:function(){var t=this;this.loading=!0,this.selection.clear(),this.apiRequest.dontHandleErrorForNext(),this.voService.getMyVos().subscribe(function(e){t.vos=e,t.recentIds=(0,r.vL)("vos"),t.loading=!1},function(e){"PrivilegeException"===e.error.name?(t.vos=[],t.loading=!1):t.notificator.showRPCError(e)})}},{key:"applyFilter",value:function(t){this.filterValue=t}},{key:"onCreateVo",value:function(){var t=this,e=(0,r.kZ)();e.width="610px",e.data={theme:"vo-theme"},this.dialog.open(w,e).afterClosed().subscribe(function(e){e&&(t.loading=!0,t.refreshTable())})}},{key:"onRemoveVo",value:function(){var t=this,e=(0,r.kZ)();e.width="500px",e.data={theme:"vo-theme",vos:[this.selection.selected[0]]},this.dialog.open(a.o,e).afterClosed().subscribe(function(e){e&&t.refreshTable()})}}]),t}();return t.id="VoSelectPageComponent",t.\u0275fac=function(e){return new(e||t)(l.Y36(k.D),l.Y36(n.YF),l.Y36(o.x4),l.Y36(c.uw),l.Y36(o.V6),l.Y36(o.F5))},t.\u0275cmp=l.Xpm({type:t,selectors:[["app-vo-select-page"]],hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("router-component",e.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"],["mat-flat-button","","color","accent","class","mr-2 action-button","data-cy","new-vo-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"],["mat-flat-button","","color","accent","data-cy","new-vo-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(t,e){1&t&&(l.TgZ(0,"div",0),l._UZ(1,"perun-web-apps-back-button"),l.TgZ(2,"h1",1),l._UZ(3,"mat-icon",2),l._uU(4),l.ALo(5,"translate"),l.qZA(),l.TgZ(6,"perun-web-apps-refresh-button",3),l.NdJ("refresh",function(){return e.refreshTable()}),l.qZA(),l.YNc(7,R,3,3,"button",4),l.YNc(8,x,3,4,"button",5),l.TgZ(9,"perun-web-apps-immediate-filter",6),l.NdJ("filter",function(t){return e.applyFilter(t)}),l.qZA(),l.YNc(10,O,1,0,"mat-spinner",7),l.YNc(11,P,1,6,"perun-web-apps-vos-list",8),l.qZA()),2&t&&(l.xp6(3),l.Q6J("ngStyle",l.DdM(10,D)),l.xp6(1),l.hij(" ",l.lcZ(5,8,"VO_MANAGEMENT.TITLE")," "),l.xp6(3),l.Q6J("ngIf",e.createAuth),l.xp6(1),l.Q6J("ngIf",e.deleteAuth),l.xp6(1),l.Q6J("autoFocus",!0)("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER"),l.xp6(1),l.Q6J("ngIf",e.loading),l.xp6(1),l.Q6J("ngIf",!e.loading))},directives:[C.W,T.Hw,f.PC,E.t,f.O5,S.L,v.lW,p.$g,I.Z],pipes:[h.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),t}()},73868:function(t,e,i){"use strict";var n=i(30269),r=i(31572),o=i(57629),a=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Xpm({type:t,selectors:[["app-auth-callback"]],decls:0,vars:0,template:function(t,e){},styles:[""]}),t}(),s=i(65249),c=i(68416),u=i(84140),l=i(6527),h=i(48958),d=i(48160),f=i(84608),p=i(25122),g=i(29236),m=i(16073),v=i(61511),y=i(43691),_=i(15980),b=i(67806),w=i(39571),A=i(71522),k=i(84534),C=i(36922);function T(t,e){1&t&&r._UZ(0,"mat-spinner",3)}function E(t,e){1&t&&(r.TgZ(0,"app-alert",4),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"USER_DETAIL.DASHBOARD.NO_RECENTLY_VIEWED")))}var S=function(t){return[t]};function I(t,e){if(1&t&&(r.TgZ(0,"div",7),r.TgZ(1,"a",8),r.TgZ(2,"span",9),r._uU(3),r.qZA(),r._UZ(4,"mat-icon",10),r.TgZ(5,"p",11),r._uU(6),r.qZA(),r.qZA(),r.qZA()),2&t){var i=e.$implicit;r.xp6(1),r.Gre("",i.style," item-itself"),r.s9C("matTooltip",i.tooltip),r.Q6J("routerLink",i.url)("perunWebAppsMiddleClickRouterLink",r.VKq(9,S,i.url)),r.xp6(2),r.Oqu(i.type),r.xp6(1),r.Q6J("svgIcon",i.cssIcon),r.xp6(2),r.Oqu(i.label)}}function R(t,e){if(1&t&&(r.TgZ(0,"div",5),r.YNc(1,I,7,11,"div",6),r.qZA()),2&t){var i=r.oxw();r.xp6(1),r.Q6J("ngForOf",i.items)}}var x=function(){var t=function(){function t(e,i,n,r){_classCallCheck(this,t),this.vosManager=e,this.groupsManager=i,this.authResolver=n,this.facilitiesManager=r,this.items=[],this.vosIds=[],this.groupsIds=[],this.facilitiesIds=[],this.existingRecentIds=[],this.vos=[],this.groups=[],this.facilities=[]}return _createClass(t,[{key:"ngOnInit",value:function(){this.loading=!0,this.recentItems=(0,u.vL)("recent");var t,e=_createForOfIteratorHelper(this.recentItems);try{for(e.s();!(t=e.n()).done;){var i=t.value;switch(i.type){case"Vo":this.vosIds.push(i.id);break;case"Group":this.groupsIds.push(i.id);break;case"Facility":this.facilitiesIds.push(i.id)}}}catch(n){e.e(n)}finally{e.f()}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()}},{key:"getVos",value:function(){var t=this;this.authResolver.isAuthorized("getVosByIds_List_policy",[])?this.vosManager.getVosByIds(this.vosIds).subscribe(function(e){t.vos=e,t.getGroups()}):this.getGroups()}},{key:"getGroups",value:function(){var t=this;this.authResolver.isAuthorized("getGroupsByIds_List_policy",[])?this.groupsManager.getGroupsByIds(this.groupsIds).subscribe(function(e){t.groups=e,t.getFacilities()}):this.getFacilities()}},{key:"getFacilities",value:function(){var t=this;this.authResolver.isAuthorized("getFacilitiesByIds_List_policy",[])?this.facilitiesManager.getFacilitiesByIds(this.facilitiesIds).subscribe(function(e){t.facilities=e,t.addRecentlyViewedToDashboard()}):this.addRecentlyViewedToDashboard()}},{key:"addRecentlyViewedToDashboard",value:function(){var t,e=this,i=_createForOfIteratorHelper(this.recentItems);try{var n=function(){var i=t.value;switch(i.type){case"Vo":var n=e.vos.filter(function(t){return t.id===i.id})[0];n&&e.items.push({cssIcon:"perun-vo",url:"/organizations/".concat(n.id),label:n.name,tooltip:n.name,style:"vo-btn",type:"Organization"});break;case"Group":var r=e.groups.filter(function(t){return t.id===i.id})[0];r&&e.items.push({cssIcon:"perun-group",url:"/organizations/".concat(r.voId,"/groups/").concat(r.id),label:r.shortName,tooltip:"".concat(i.voName," : ").concat(r.name.replace(/:/g," : ")),style:"group-btn",type:"Group"});break;case"Facility":var o=e.facilities.filter(function(t){return t.id===i.id})[0];o&&e.items.push({cssIcon:"perun-facility-white",url:"/facilities/".concat(o.id),label:o.name,tooltip:o.name,style:"facility-btn",type:"Facility"})}};for(i.s();!(t=i.n()).done;)n()}catch(r){i.e(r)}finally{i.f()}this.loading=!1}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(s.YF),r.Y36(s.ff),r.Y36(c.x4),r.Y36(s.IQ))},t.\u0275cmp=r.Xpm({type:t,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","perunWebAppsMiddleClickRouterLink","matTooltip"],[1,"item-type"],[1,"item-pic","perun-icon",3,"svgIcon"],[1,"truncate"]],template:function(t,e){1&t&&(r.YNc(0,T,1,0,"mat-spinner",0),r.YNc(1,E,3,3,"app-alert",1),r.YNc(2,R,2,1,"div",2)),2&t&&(r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",0===e.items.length&&!e.loading),r.xp6(1),r.Q6J("ngIf",e.items.length>0))},directives:[v.O5,b.$g,w.w,v.sg,A.wG,o.yS,k.YH,C.gM,y.Hw],pipes:[d.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%]{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap}"]}),t}(),O=i(97162),P=i(78364),D=i(88884),M=i(60007);function L(t,e){1&t&&r._UZ(0,"mat-spinner",7)}var N=function(){return["id","recent","shortName","name"]};function z(t,e){if(1&t&&(r.TgZ(0,"span"),r._UZ(1,"perun-web-apps-vos-list",8),r.qZA()),2&t){var i=r.oxw(2);r.xp6(1),r.Q6J("pageSizeOptions",null)("displayedColumns",r.DdM(4,N))("recentIds",i.recentIds)("vos",i.objects)}}var Z=function(){return["id","recent","vo","name","description"]};function B(t,e){if(1&t&&(r.TgZ(0,"span"),r._UZ(1,"perun-web-apps-groups-list",9),r.qZA()),2&t){var i=r.oxw(2);r.xp6(1),r.Q6J("pageSizeOptions",null)("groups",i.objects)("recentIds",i.recentIds)("displayedColumns",r.DdM(4,Z))}}var F=function(){return["id","recent","name","vo","facility"]};function H(t,e){if(1&t&&(r.TgZ(0,"span"),r._UZ(1,"perun-web-apps-resources-list",10),r.qZA()),2&t){var i=r.oxw(2);r.xp6(1),r.Q6J("pageSizeOptions",null)("resources",i.objects)("displayedColumns",r.DdM(5,F))("recentIds",i.recentIds)("routingVo",!0)}}var U=function(){return["id","recent","name","description"]};function q(t,e){if(1&t&&(r.TgZ(0,"span"),r._UZ(1,"perun-web-apps-facilities-list",11),r.qZA()),2&t){var i=r.oxw(2);r.xp6(1),r.Q6J("pageSizeOptions",null)("facilities",i.objects)("recentIds",i.recentIds)("displayedColumns",r.DdM(4,U))}}function G(t,e){if(1&t&&(r.TgZ(0,"div"),r.YNc(1,z,2,5,"span",6),r.YNc(2,B,2,5,"span",6),r.YNc(3,H,2,6,"span",6),r.YNc(4,q,2,5,"span",6),r.qZA()),2&t){var i=r.oxw();r.xp6(1),r.Q6J("ngIf","Vo"===i.primaryObject),r.xp6(1),r.Q6J("ngIf","Group"===i.primaryObject),r.xp6(1),r.Q6J("ngIf","Resource"===i.primaryObject),r.xp6(1),r.Q6J("ngIf","Facility"===i.primaryObject)}}var j=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.authzResolver=e,this.guiAuthResolver=i,this.resourceService=n,this.loading=!1,this.recentIds=[]}return _createClass(t,[{key:"ngOnInit",value:function(){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()}},{key:"getObjects",value:function(){var t=this;switch(this.primaryObject){case"Vo":this.authzResolver.getVosWhereUserIsInRoles([this.roleName]).subscribe(function(e){t.objects=e,t.recentIds=(0,u.vL)("vos"),t.loading=!1});break;case"Group":this.authzResolver.getGroupsWhereUserIsInRoles([this.roleName]).subscribe(function(e){t.objects=e,t.recentIds=(0,u.vL)("groups"),t.loading=!1});break;case"Resource":this.resourceService.getRichResourcesByIds(this.role[this.primaryObject]).subscribe(function(e){t.objects=e,t.recentIds=(0,u.vL)("resources"),t.loading=!1});break;case"Facility":this.authzResolver.getFacilitiesWhereUserIsInRoles([this.roleName]).subscribe(function(e){t.objects=e.map(function(t){return{facility:t}}),t.recentIds=(0,u.vL)("facilities"),t.loading=!1});break;default:this.objects=[],this.loading=!1}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(s.Ct),r.Y36(c.x4),r.Y36(s.xk))},t.\u0275cmp=r.Xpm({type:t,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","groups","recentIds","displayedColumns"],[3,"pageSizeOptions","resources","displayedColumns","recentIds","routingVo"],[3,"pageSizeOptions","facilities","recentIds","displayedColumns"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r._UZ(2,"mat-icon",2),r._uU(3),r.ALo(4,"translate"),r.TgZ(5,"span",3),r.ALo(6,"translate"),r.TgZ(7,"mat-icon",4),r._uU(8,"info_outline"),r.qZA(),r.qZA(),r.qZA(),r.YNc(9,L,1,0,"mat-spinner",5),r.YNc(10,G,5,4,"div",6),r.qZA()),2&t&&(r.xp6(2),r.Q6J("svgIcon",e.svgIcon),r.xp6(1),r.hij(" ",r.lcZ(4,5,e.title)," "),r.xp6(2),r.s9C("matTooltip",r.lcZ(6,7,e.roleTooltipInfo)),r.xp6(4),r.Q6J("ngIf",e.loading),r.xp6(1),r.Q6J("ngIf",!e.loading))},directives:[y.Hw,C.gM,v.O5,b.$g,O.Z,P.W,D.C,M.X],pipes:[d.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}"]}),t}(),Y=i(22196);function K(t,e){if(1&t){var i=r.EpF();r.TgZ(0,"div"),r.TgZ(1,"mat-checkbox",8),r.NdJ("change",function(t){var e=r.CHM(i).$implicit,n=r.oxw();return t?n.changeRoleView(e):null}),r._uU(2),r.ALo(3,"translate"),r.qZA(),r.qZA()}if(2&t){var n=e.$implicit,o=r.oxw();r.xp6(1),r.Q6J("checked",o.isRoleShowed(n)),r.xp6(1),r.Oqu(r.lcZ(3,2,"USER_DETAIL.DASHBOARD.CARD_TITLE_"+n))}}function V(t,e){if(1&t){var i=r.EpF();r.TgZ(0,"button",15),r.NdJ("click",function(){return r.CHM(i),r.oxw(2).rightSettingOpened=!0}),r.TgZ(1,"mat-icon"),r._uU(2,"settings"),r.qZA(),r.qZA()}}function J(t,e){1&t&&(r.TgZ(0,"span"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO_NO_USER_PROFILE")))}function Q(t,e){1&t&&(r.TgZ(0,"span"),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO")))}function W(t,e){if(1&t){var i=r.EpF();r.TgZ(0,"button",23),r.NdJ("click",function(){return r.CHM(i),r.oxw(3).goToUserProfile()}),r.TgZ(1,"mat-icon",24),r._uU(2,"exit_to_app"),r.qZA(),r._uU(3),r.ALo(4,"translate"),r.qZA()}if(2&t){var n=r.oxw(3);r.xp6(3),r.AsE("",r.lcZ(4,2,"USER_DETAIL.DASHBOARD.GO_TO_USER_PROFILE")," ",n.userProfileName," ")}}var X=function(){return["/myProfile"]};function $(t,e){if(1&t&&(r.TgZ(0,"div"),r.TgZ(1,"div",16),r.TgZ(2,"div",17),r._uU(3),r.ALo(4,"translate"),r.qZA(),r.TgZ(5,"div",18),r.YNc(6,J,3,3,"span",14),r.YNc(7,Q,3,3,"span",14),r.qZA(),r.TgZ(8,"div",19),r.TgZ(9,"button",20),r._UZ(10,"mat-icon",21),r._uU(11),r.ALo(12,"translate"),r.qZA(),r.YNc(13,W,5,4,"button",22),r.qZA(),r.qZA(),r.qZA()),2&t){var i=r.oxw(2);r.xp6(3),r.hij(" ",r.lcZ(4,6,"USER_DETAIL.DASHBOARD.NOT_MANAGER")," "),r.xp6(3),r.Q6J("ngIf",!i.userProfileUrl),r.xp6(1),r.Q6J("ngIf",i.userProfileUrl),r.xp6(2),r.Q6J("routerLink",r.DdM(10,X)),r.xp6(2),r.hij(" ",r.lcZ(12,8,"USER_DETAIL.DASHBOARD.GO_TO_MY_PROFILE")," "),r.xp6(2),r.Q6J("ngIf",i.userProfileUrl)}}function tt(t,e){1&t&&(r.TgZ(0,"span"),r.TgZ(1,"div",3),r._uU(2),r.ALo(3,"translate"),r.qZA(),r._UZ(4,"app-perun-web-apps-dashboard-recently-viewed-button-field"),r.qZA()),2&t&&(r.xp6(2),r.hij(" ",r.lcZ(3,1,"USER_DETAIL.DASHBOARD.RECENTLY_VIEWED")," "))}function et(t,e){1&t&&(r.TgZ(0,"div",27),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"USER_DETAIL.DASHBOARD.MANAGEABLE_ENTITIES")," "))}function it(t,e){if(1&t&&r._UZ(0,"app-perun-web-apps-dashboard-card",30),2&t){var i=r.oxw().$implicit,n=r.oxw(3);r.Q6J("roleName",i)("role",n.roles[i])}}function nt(t,e){if(1&t&&(r.TgZ(0,"div",28),r.YNc(1,it,1,2,"app-perun-web-apps-dashboard-card",29),r.qZA()),2&t){var i=e.$implicit,n=r.oxw(3);r.xp6(1),r.Q6J("ngIf",n.isRoleShowed(i))}}function rt(t,e){if(1&t&&(r.TgZ(0,"div"),r.YNc(1,tt,5,3,"span",14),r.YNc(2,et,3,3,"div",25),r.TgZ(3,"div"),r.YNc(4,nt,2,1,"div",26),r.qZA(),r.qZA()),2&t){var i=r.oxw(2);r.xp6(1),r.Q6J("ngIf",i.recentlyViewedShow),r.xp6(1),r.Q6J("ngIf",i.rolesToHide.toString()!==i.roleNames.toString()),r.xp6(2),r.Q6J("ngForOf",i.roleNames)}}function ot(t,e){if(1&t&&(r.TgZ(0,"div",9),r.TgZ(1,"h1",10),r._UZ(2,"mat-icon",11),r.TgZ(3,"span",12),r._uU(4),r.ALo(5,"translate"),r.ALo(6,"userFullName"),r.qZA(),r.YNc(7,V,3,0,"button",13),r.qZA(),r.YNc(8,$,14,11,"div",14),r.YNc(9,rt,5,3,"div",14),r.qZA()),2&t){var i=r.oxw();r.xp6(4),r.AsE("",r.lcZ(5,5,"USER_DETAIL.DASHBOARD.TITLE")," ",r.lcZ(6,7,i.user),""),r.xp6(3),r.Q6J("ngIf",!i.isOnlySelfRole),r.xp6(1),r.Q6J("ngIf",i.isOnlySelfRole),r.xp6(1),r.Q6J("ngIf",!i.isOnlySelfRole)}}var at=function(){var t=function(){function t(e,i,n,r,o,a,s,c,u,l){var h=this;_classCallCheck(this,t),this.userManager=e,this.storeService=i,this.sideMenuService=n,this.route=r,this.router=o,this.notificator=a,this.translateService=s,this.dialog=c,this.apiRequestConfiguration=u,this.otherApplicationService=l,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"],s.get("USER_DETAIL.DASHBOARD.MAIL_CHANGE_SUCCESS").subscribe(function(t){return h.mailSuccessMessage=t})}return _createClass(t,[{key:"ngOnInit",value:function(){this.sideMenuService.setHomeItems([]),this.validatePreferredMailChange(),this.user=this.storeService.getPerunPrincipal().user,this.roles=this.storeService.getPerunPrincipal().roles,this.getUserProfile();var t=Object.keys(this.roles);this.isOnlySelfRole=t.toString()===["SELF"].toString(),this.roleNames=this.allowedRoles.filter(function(e){return t.includes(e)}),this.getDashboardSettings()}},{key:"validatePreferredMailChange",value:function(){var t=this,e=this.route.snapshot.queryParamMap,i=e.get("token"),n=e.get("u");i&&n&&(this.apiRequestConfiguration.dontHandleErrorForNext(),this.userManager.validatePreferredEmailChangeWithToken(i,Number.parseInt(n,10)).subscribe(function(){t.notificator.showSuccess(t.mailSuccessMessage),t.router.navigate([],{replaceUrl:!0})},function(){var e=(0,u.kZ)();e.width="600px",t.dialog.open(l.qD,e).afterClosed().subscribe(function(){t.getDashboardSettings()})}))}},{key:"goToUserProfile",value:function(){window.open(this.userProfileUrl)}},{key:"recentlyViewedChanged",value:function(){localStorage.setItem("showRecentlyViewed",JSON.stringify(this.recentlyViewedShow))}},{key:"getDashboardSettings",value:function(){var t=JSON.parse(localStorage.getItem("showRecentlyViewed"));this.recentlyViewedShow=null===t||t;var e=JSON.parse(localStorage.getItem("rolesToHide"));this.rolesToHide=null===e?[]:e}},{key:"changeRoleView",value:function(t){if(this.isRoleShowed(t)){var e,i=[],n=_createForOfIteratorHelper(this.roleNames);try{for(n.s();!(e=n.n()).done;){var r=e.value;this.isRoleShowed(r)||i.push(r),r===t&&i.push(r)}}catch(o){n.e(o)}finally{n.f()}this.rolesToHide=i}else this.rolesToHide=this.rolesToHide.filter(function(e){return e!==t});localStorage.setItem("rolesToHide",JSON.stringify(this.rolesToHide))}},{key:"isRoleShowed",value:function(t){var e,i=_createForOfIteratorHelper(this.rolesToHide);try{for(i.s();!(e=i.n()).done;){if(e.value===t)return!1}}catch(n){i.e(n)}finally{i.f()}return!0}},{key:"getUserProfile",value:function(){this.userProfileUrl=this.otherApplicationService.getUrlForOtherApplication("profile"),this.userProfileName=this.storeService.get("profile_label_en")}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(s.Fv),r.Y36(c.d6),r.Y36(h.D),r.Y36(o.gz),r.Y36(o.F0),r.Y36(c.V6),r.Y36(d.sK),r.Y36(f.uw),r.Y36(c.F5),r.Y36(c.jq))},t.\u0275cmp=r.Xpm({type:t,selectors:[["app-perun-web-apps-user-dashboard"]],hostVars:2,hostBindings:function(t,e){2&t&&r.ekj("router-component",e.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"],["mat-stroked-button","","class","ml-auto text-bigger",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"],["mat-stroked-button","","class","text-bigger ml-2 mt-2",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(t,e){1&t&&(r.TgZ(0,"mat-sidenav-container",0),r.TgZ(1,"mat-sidenav",1),r.NdJ("openedChange",function(t){return e.rightSettingOpened=t}),r.TgZ(2,"div",2),r.TgZ(3,"div",3),r._uU(4),r.ALo(5,"translate"),r.qZA(),r.TgZ(6,"div"),r.TgZ(7,"mat-checkbox",4),r.NdJ("ngModelChange",function(t){return e.recentlyViewedShow=t})("change",function(t){return t?e.recentlyViewedChanged():null}),r._uU(8),r.ALo(9,"translate"),r.qZA(),r.qZA(),r.TgZ(10,"div",5),r._uU(11),r.ALo(12,"translate"),r.qZA(),r.YNc(13,K,4,4,"div",6),r.qZA(),r.qZA(),r.TgZ(14,"mat-sidenav-content"),r.YNc(15,ot,10,9,"div",7),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Q6J("opened",e.rightSettingOpened),r.xp6(3),r.Oqu(r.lcZ(5,7,"USER_DETAIL.DASHBOARD.DASHBOARD_SETTINGS")),r.xp6(3),r.Q6J("ngModel",e.recentlyViewedShow),r.xp6(1),r.Oqu(r.lcZ(9,9,"USER_DETAIL.DASHBOARD.SHOW_RECENTLY_VIEWED")),r.xp6(3),r.Oqu(r.lcZ(12,11,"USER_DETAIL.DASHBOARD.SHOW_ROLES")),r.xp6(2),r.Q6J("ngForOf",e.roleNames),r.xp6(2),r.Q6J("ngIf",void 0!==e.user))},directives:[p.TM,p.JX,g.oG,m.JJ,m.On,v.sg,p.Rh,v.O5,y.Hw,_.lW,o.rH,x,j],pipes:[d.X$,Y.d],styles:[".dashboard-container[_ngcontent-%COMP%]{-moz-columns:300px 2;columns:300px 2;grid-column-gap:1rem;-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 - 34px - 200px);margin-bottom:-60px!important;padding-bottom:50px;top:-10px!important;left:0;right:0}"]}),t}(),st=i(66297),ct=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"div",0),r._UZ(1,"perun-web-apps-back-button"),r.TgZ(2,"h1",1),r._uU(3),r.ALo(4,"translate"),r.qZA(),r.qZA()),2&t&&(r.xp6(3),r.Oqu(r.lcZ(4,1,"GENERAL.PAGE_NOT_FOUND.TITLE")))},directives:[st.W],pipes:[d.X$],styles:[""]}),t}(),ut=i(41939),lt=i(66283),ht=i(80340),dt=i(22727),ft=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[v.ez,_.ot,y.Ps,o.Bz,ut.ez,d.aw,lt.lN,m.UX,ht.c,dt.r]]}),t}(),pt=function(){var t=function(){function t(e){_classCallCheck(this,t),this.auth=e}return _createClass(t,[{key:"startAuth",value:function(){this.auth.startAuthentication()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(c.e8))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r.TgZ(2,"div",2),r.TgZ(3,"h4",3),r._uU(4),r.ALo(5,"translate"),r.qZA(),r.TgZ(6,"button",4),r.NdJ("click",function(){return e.startAuth()}),r._uU(7),r.ALo(8,"translate"),r.TgZ(9,"mat-icon"),r._uU(10," login "),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(4),r.hij(" ",r.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),r.xp6(3),r.hij(" ",r.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},directives:[_.lW,y.Hw],pipes:[d.X$],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),t}(),gt=i(67474);function mt(t,e){if(1&t&&(r.TgZ(0,"div",8),r._UZ(1,"div",9),r.qZA()),2&t){var i=r.oxw();r.xp6(1),r.Q6J("innerHTML",i.logo,r.oJD)}}function vt(t,e){if(1&t&&(r.TgZ(0,"div",10),r._UZ(1,"div",11),r._UZ(2,"mat-icon",12),r.qZA()),2&t){var i=r.oxw();r.xp6(1),r.Q6J("innerHTML",i.logo,r.oJD)}}function yt(t,e){if(1&t&&(r.TgZ(0,"div",8),r._UZ(1,"a",9),r.qZA()),2&t){var i=r.oxw();r.xp6(1),r.Q6J("innerHTML",i.logo,r.oJD)}}var _t=function(t){return{color:t}};function bt(t,e){if(1&t&&(r.TgZ(0,"p",13),r._uU(1),r.qZA()),2&t){var i=r.oxw();r.Q6J("ngStyle",r.VKq(2,_t,i.textColor)),r.xp6(1),r.hij(" ",i.headerTitle," ")}}var wt=function(t,e){return{background:t,color:e}},At=function(t,e){return{"min-height":t,"background-color":e}},kt=function(){var t=function(){function t(e,i,n,r){_classCallCheck(this,t),this.storeService=e,this.sanitizer=i,this.preferredLangService=n,this.translateService=r,this.contentBackgroundColor=this.storeService.get("theme","content_bg_color")}return _createClass(t,[{key:"ngOnInit",value:function(){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){var t=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(t)}}},{key:"getContentInnerMinHeight",value:function(){return"calc((100vh - 64px) + 0px)"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(c.d6),r.Y36(n.H7),r.Y36(c.BN),r.Y36(d.sK))},t.\u0275cmp=r.Xpm({type:t,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:11,vars:12,consts:[["id","login-nav",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["style"," display: flex; flex-direction: 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"],[2,"display","flex","flex-direction","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(t,e){1&t&&(r.TgZ(0,"div",0),r.YNc(1,mt,2,1,"div",1),r.YNc(2,vt,3,1,"div",2),r.YNc(3,yt,2,1,"div",1),r.YNc(4,bt,2,4,"p",3),r.qZA(),r.TgZ(5,"div",4),r.TgZ(6,"div",5),r.TgZ(7,"div",6),r._UZ(8,"router-outlet"),r.qZA(),r.TgZ(9,"div",7),r._UZ(10,"perun-web-apps-footer"),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.Q6J("ngStyle",r.WLB(6,wt,e.headerBackgroundColor,e.headerTextColor)),r.xp6(1),r.Q6J("ngIf","admin-gui"===e.application),r.xp6(1),r.Q6J("ngIf","publications"===e.application),r.xp6(1),r.Q6J("ngIf","user-profile"===e.application),r.xp6(1),r.Q6J("ngIf",!!e.headerTitle),r.xp6(2),r.Q6J("ngStyle",r.WLB(9,At,e.getContentInnerMinHeight(),e.contentBackgroundColor)))},directives:[v.PC,v.O5,o.lC,gt.$,y.Hw],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}"]}),t}();function Ct(t,e){1&t&&(r.TgZ(0,"app-alert",8),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.hij(" ",r.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}var Tt,Et=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"redirect",component:ut.t$},{path:"api-callback",component:a},{path:"login",component:pt},{path:"service-access",component:(Tt=function(){function t(e,i,n){_classCallCheck(this,t),this.authzService=e,this.dialog=i,this.translate=n,this.wrongUsernameOrPassword=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.usernameCtrl=new m.NI(null,[m.kI.required]),this.passwordCtrl=new m.NI(null,[m.kI.required])}},{key:"startAuth",value:function(){var t=this;sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe(function(t){sessionStorage.setItem("baPrincipal",JSON.stringify(t)),location.reload()},function(){t.wrongUsernameOrPassword=!0})}}]),t}(),Tt.\u0275fac=function(t){return new(t||Tt)(r.Y36(s.Ct),r.Y36(f.uw),r.Y36(d.sK))},Tt.\u0275cmp=r.Xpm({type:Tt,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(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"div",1),r.TgZ(2,"div",2),r.TgZ(3,"h2"),r._uU(4),r.ALo(5,"translate"),r.qZA(),r.YNc(6,Ct,3,3,"app-alert",3),r.TgZ(7,"mat-form-field",4),r.TgZ(8,"mat-label"),r._uU(9),r.ALo(10,"translate"),r.qZA(),r._UZ(11,"input",5),r.TgZ(12,"mat-error"),r._uU(13),r.ALo(14,"translate"),r.qZA(),r.qZA(),r.TgZ(15,"mat-form-field",4),r.TgZ(16,"mat-label"),r._uU(17),r.ALo(18,"translate"),r.qZA(),r._UZ(19,"input",6),r.TgZ(20,"mat-error"),r._uU(21),r.ALo(22,"translate"),r.qZA(),r.qZA(),r.TgZ(23,"button",7),r.NdJ("click",function(){return e.startAuth()}),r._uU(24),r.ALo(25,"translate"),r.TgZ(26,"mat-icon"),r._uU(27," login "),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.qZA()),2&t&&(r.xp6(4),r.Oqu(r.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),r.xp6(2),r.Q6J("ngIf",e.wrongUsernameOrPassword),r.xp6(3),r.Oqu(r.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),r.xp6(2),r.Q6J("formControl",e.usernameCtrl),r.xp6(2),r.hij(" ",r.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),r.xp6(4),r.Oqu(r.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),r.xp6(2),r.Q6J("formControl",e.passwordCtrl)("type","password"),r.xp6(2),r.hij(" ",r.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),r.xp6(2),r.Q6J("disabled",e.usernameCtrl.invalid||e.passwordCtrl.invalid),r.xp6(1),r.hij(" ",r.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},directives:[v.O5,lt.KE,lt.hX,ht.Nt,m.Fj,m.Q7,m.JJ,m.oH,lt.TO,_.lW,y.Hw,w.w],pipes:[d.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}"]}),Tt)},{path:"organizations",loadChildren:function(){return Promise.all([i.e(917),i.e(202),i.e(827),i.e(427)]).then(i.bind(i,67427)).then(function(t){return t.VosModule})}},{path:"admin",loadChildren:function(){return Promise.all([i.e(917),i.e(515),i.e(202),i.e(781)]).then(i.bind(i,21781)).then(function(t){return t.AdminModule})}},{path:"facilities",loadChildren:function(){return Promise.all([i.e(917),i.e(515),i.e(202),i.e(781),i.e(827),i.e(749)]).then(i.bind(i,89749)).then(function(t){return t.FacilitiesModule})}},{path:"myProfile",loadChildren:function(){return Promise.all([i.e(917),i.e(515)]).then(i.bind(i,65515)).then(function(t){return t.UsersModule})}},{path:"home",component:at},{path:"**",component:ct}],St=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[o.Bz.forRoot(Et,{preloadingStrategy:o.GZ,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})],o.Bz]}),t}(),It=i(61601),Rt=i(28780),xt=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/assets/i18n/",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".json";_classCallCheck(this,t),this.http=e,this.prefix=i,this.suffix=n}return _createClass(t,[{key:"getTranslation",value:function(t){return this.http.get("".concat(this.prefix).concat(t).concat(this.suffix))}}]),t}(),Ot=i(29063),Pt=i(43490),Dt=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[c.e8],imports:[[v.ez]]}),t}(),Mt=i(28940),Lt=i(48002),Nt=i(40659),zt=i(62284),Zt=i(7433),Bt=i(82044),Ft=i(11930),Ht=i(39124),Ut=i(64467),qt=i(81835),Gt=i(88227),jt=i(97397),Yt=i(71313),Kt=i(14527),Vt=i(65423),Jt=i(17249),Qt=i(73916),Wt=i(48666),Xt=function(){var t=function(){function t(){_classCallCheck(this,t),this.allowCachePages=[{type:"vo",components:[Mt.y.id,Lt.G.id,Nt.c.id,Gt.z.id,jt.z.id,Kt.w.id,Wt.T.id]},{type:"group",components:[Ft.y.id,Bt.u.id,Zt.q.id,zt.W.id,Vt.Z.id]},{type:"facility",components:[Ht.o.id,Ut.f.id]},{type:"member",components:[qt.j.id]},{type:"admin",components:[Yt.t.id]},{type:"entitySelect",components:[Jt.Y.id,Qt.P.id]}],this.cacheTimeMs=3e5,this.resets=[{lastValue:null,resetType:"vo",resetPath:":voId",param:"voId"},{lastValue:null,resetType:"group",resetPath:":voId/groups/:groupId",param:"groupId"},{lastValue:null,resetType:"facility",resetPath:":facilityId",param:"facilityId"},{lastValue:null,resetType:"member",resetPath:":voId/members/:memberId",param:"memberId"},{lastValue:null,resetType:"admin",resetPath:"admin/users"}],this.isUserNavigatingBack=!1,this.typeToComponentToHandlers=new Map;var e,i=_createForOfIteratorHelper(this.allowCachePages);try{for(i.s();!(e=i.n()).done;){var n=e.value;this.typeToComponentToHandlers.set(n.type,new Map)}}catch(r){i.e(r)}finally{i.f()}}return _createClass(t,[{key:"setLastNavigationType",value:function(t){this.isUserNavigatingBack="back"===t}},{key:"checkResets",value:function(t){var e,i=this.getPath(t),n=_createForOfIteratorHelper(this.resets);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r.resetPath===i){var o=t.params[r.param];null!==r.lastValue&&r.lastValue!==o&&this.typeToComponentToHandlers.get(r.resetType).clear(),r.lastValue=o}}}catch(a){n.e(a)}finally{n.f()}}},{key:"shouldReuseRoute",value:function(t,e){return this.checkResets(e),t.routeConfig===e.routeConfig}},{key:"retrieve",value:function(t){if(t.component){var e,i=this.getComponentName(t.component),n=_createForOfIteratorHelper(this.allowCachePages);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(-1!==r.components.indexOf(i)){var o=this.typeToComponentToHandlers.get(r.type).get(i);return void 0===o?null:o.routeHandle}}}catch(a){n.e(a)}finally{n.f()}}return null}},{key:"shouldAttach",value:function(t){if(!this.isUserNavigatingBack)return!1;if(t.component){var e,i=this.getComponentName(t.component),n=_createForOfIteratorHelper(this.allowCachePages);try{for(n.s();!(e=n.n()).done;){var r=e.value,o=this.typeToComponentToHandlers.get(r.type).get(i);if(void 0!==o&&this.getCurrentTimestamp()-o.saveTimeStamp0;)document.getElementsByTagName("mat-tooltip-component")[0].remove();var i=this.getComponentType(t);this.typeToComponentToHandlers.get(i).set(this.getComponentName(t.component),{routeHandle:e,saveTimeStamp:this.getCurrentTimestamp()})}}},{key:"getCurrentTimestamp",value:function(){return+Date.now()}},{key:"getComponentName",value:function(t){return t.id}},{key:"getComponentType",value:function(t){var e,i=this.getComponentName(t.component),n=_createForOfIteratorHelper(this.allowCachePages);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(-1!==r.components.indexOf(i))return r.type}}catch(o){n.e(o)}finally{n.f()}return null}},{key:"getPath",value:function(t){return null!==t.routeConfig&&null!==t.routeConfig.path?t.routeConfig.path:""}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t}(),$t=new r.OlP("perun-api-service"),te=function(){var t=function(){function t(e,i,n,r,o){_classCallCheck(this,t),this.http=e,this.storeService=i,this.authzSevice=n,this.titleService=r,this.utilsService=o}return _createClass(t,[{key:"initializeColors",value:function(t,e){var i=this;return new Promise(function(n){e.forEach(function(t){var e=i.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e)}),t.forEach(function(t){var e=i.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e),i.setEntityTheme(t.entity,e)}),n()})}},{key:"setEntityTheme",value:function(t,e){for(var i,n=0,r=(i=e,[ee(tinycolor(i).lighten(52),"50"),ee(tinycolor(i).lighten(37),"100"),ee(tinycolor(i).lighten(26),"200"),ee(tinycolor(i).lighten(12),"300"),ee(tinycolor(i).lighten(6),"400"),ee(tinycolor(i),"500"),ee(tinycolor(i).darken(6),"600"),ee(tinycolor(i).darken(12),"700"),ee(tinycolor(i).darken(18),"800"),ee(tinycolor(i).darken(24),"900"),ee(tinycolor(i).lighten(50).saturate(30),"A100"),ee(tinycolor(i).lighten(30).saturate(30),"A200"),ee(tinycolor(i).lighten(10).saturate(15),"A400"),ee(tinycolor(i).lighten(5).saturate(5),"A700")]);nt[o]-t[a]-1&&(t.reach[c]="end"),e&&(h.dispatchEvent(Oe("ps-scroll-"+c)),e<0?h.dispatchEvent(Oe("ps-scroll-"+u)):e>0&&h.dispatchEvent(Oe("ps-scroll-"+l)),n&&function(t,e){Ee(t,e),Se(t,e)}(t,c)),t.reach[c]&&(e||r)&&h.dispatchEvent(Oe("ps-"+c+"-reach-"+t.reach[c]))}(t,i,o,n,r)}function De(t){return parseInt(t,10)||0}xe.prototype.eventElement=function(t){var e=this.eventElements.filter(function(e){return e.element===t})[0];return e||(e=new Ie(t),this.eventElements.push(e)),e},xe.prototype.bind=function(t,e,i){this.eventElement(t).bind(e,i)},xe.prototype.unbind=function(t,e,i){var n=this.eventElement(t);n.unbind(e,i),n.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(n),1)},xe.prototype.unbindAll=function(){this.eventElements.forEach(function(t){return t.unbindAll()}),this.eventElements=[]},xe.prototype.once=function(t,e,i){var n=this.eventElement(t);n.bind(e,function t(r){n.unbind(e,t),i(r)})};var Me={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function Le(t){var e=t.element,i=Math.floor(e.scrollTop),n=e.getBoundingClientRect();t.containerWidth=Math.ceil(n.width),t.containerHeight=Math.ceil(n.height),t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(be(e,Ae("x")).forEach(function(t){return _e(t)}),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(be(e,Ae("y")).forEach(function(t){return _e(t)}),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),function(t,e){var i={width:e.railXWidth},n=Math.floor(t.scrollTop);i.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:t.scrollLeft,e.isScrollbarXUsingBottom?i.bottom=e.scrollbarXBottom-n:i.top=e.scrollbarXTop+n,ge(e.scrollbarXRail,i);var r={top:n,height:e.railYHeight};e.isScrollbarYUsingRight?r.right=e.isRtl?e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth-9:e.scrollbarYRight-t.scrollLeft:r.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+2*e.containerWidth-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:e.scrollbarYLeft+t.scrollLeft,ge(e.scrollbarYRail,r),ge(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),ge(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}(e,t),t.scrollbarXActive?e.classList.add(ke("x")):(e.classList.remove(ke("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?e.classList.add(ke("y")):(e.classList.remove(ke("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)}function Ne(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function ze(t,e){var i=e[0],n=e[1],r=e[2],o=e[3],a=e[4],s=e[5],c=e[6],u=e[7],l=e[8],h=t.element,d=null,f=null,p=null;function g(e){e.touches&&e.touches[0]&&(e[r]=e.touches[0].pageY),h[c]=d+p*(e[r]-f),Ee(t,u),Le(t),e.stopPropagation(),e.preventDefault()}function m(){Se(t,u),t[l].classList.remove("ps--clicking"),t.event.unbind(t.ownerDocument,"mousemove",g)}function v(e,a){d=h[c],a&&e.touches&&(e[r]=e.touches[0].pageY),f=e[r],p=(t[n]-t[i])/(t[o]-t[s]),a?t.event.bind(t.ownerDocument,"touchmove",g):(t.event.bind(t.ownerDocument,"mousemove",g),t.event.once(t.ownerDocument,"mouseup",m),e.preventDefault()),t[l].classList.add("ps--clicking"),e.stopPropagation()}t.event.bind(t[a],"mousedown",function(t){v(t)}),t.event.bind(t[a],"touchstart",function(t){v(t,!0)})}var Ze={"click-rail":function(t){t.event.bind(t.scrollbarY,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarYRail,"mousedown",function(e){var i=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top;t.element.scrollTop+=(i>t.scrollbarYTop?1:-1)*t.containerHeight,Le(t),e.stopPropagation()}),t.event.bind(t.scrollbarX,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarXRail,"mousedown",function(e){var i=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left;t.element.scrollLeft+=(i>t.scrollbarXLeft?1:-1)*t.containerWidth,Le(t),e.stopPropagation()})},"drag-thumb":function(t){ze(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),ze(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(t){var e=t.element;t.event.bind(t.ownerDocument,"keydown",function(i){if(!(i.isDefaultPrevented&&i.isDefaultPrevented()||i.defaultPrevented)&&(ye(e,":hover")||ye(t.scrollbarX,":focus")||ye(t.scrollbarY,":focus"))){var n,r=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(r){if("IFRAME"===r.tagName)r=r.contentDocument.activeElement;else for(;r.shadowRoot;)r=r.shadowRoot.activeElement;if(ye(n=r,"input,[contenteditable]")||ye(n,"select,[contenteditable]")||ye(n,"textarea,[contenteditable]")||ye(n,"button,[contenteditable]"))return}var o=0,a=0;switch(i.which){case 37:o=i.metaKey?-t.contentWidth:i.altKey?-t.containerWidth:-30;break;case 38:a=i.metaKey?t.contentHeight:i.altKey?t.containerHeight:30;break;case 39:o=i.metaKey?t.contentWidth:i.altKey?t.containerWidth:30;break;case 40:a=i.metaKey?-t.contentHeight:i.altKey?-t.containerHeight:-30;break;case 32:a=i.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:a=t.containerHeight;break;case 34:a=-t.containerHeight;break;case 36:a=t.contentHeight;break;case 35:a=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==o||t.settings.suppressScrollY&&0!==a||(e.scrollTop-=a,e.scrollLeft+=o,Le(t),function(i,n){var r=Math.floor(e.scrollTop);if(0===i){if(!t.scrollbarYActive)return!1;if(0===r&&n>0||r>=t.contentHeight-t.containerHeight&&n<0)return!t.settings.wheelPropagation}var o=e.scrollLeft;if(0===n){if(!t.scrollbarXActive)return!1;if(0===o&&i<0||o>=t.contentWidth-t.containerWidth&&i>0)return!t.settings.wheelPropagation}return!0}(o,a)&&i.preventDefault())}})},wheel:function(t){var e=t.element;function i(i){var n=function(t){var e=t.deltaX,i=-1*t.deltaY;return void 0!==e&&void 0!==i||(e=-1*t.wheelDeltaX/6,i=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(e*=10,i*=10),e!=e&&i!=i&&(e=0,i=t.wheelDelta),t.shiftKey?[-i,-e]:[e,i]}(i),r=n[0],o=n[1];if(!function(t,i,n){if(!Me.isWebKit&&e.querySelector("select:focus"))return!0;if(!e.contains(t))return!1;for(var r=t;r&&r!==e;){if(r.classList.contains("ps__child--consume"))return!0;var o=pe(r);if(n&&o.overflowY.match(/(scroll|auto)/)){var a=r.scrollHeight-r.clientHeight;if(a>0&&(r.scrollTop>0&&n<0||r.scrollTop0))return!0}if(i&&o.overflowX.match(/(scroll|auto)/)){var s=r.scrollWidth-r.clientWidth;if(s>0&&(r.scrollLeft>0&&i<0||r.scrollLeft0))return!0}r=r.parentNode}return!1}(i.target,r,o)){var a=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(o?e.scrollTop-=o*t.settings.wheelSpeed:e.scrollTop+=r*t.settings.wheelSpeed,a=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(r?e.scrollLeft+=r*t.settings.wheelSpeed:e.scrollLeft-=o*t.settings.wheelSpeed,a=!0):(e.scrollTop-=o*t.settings.wheelSpeed,e.scrollLeft+=r*t.settings.wheelSpeed),Le(t),(a=a||function(i,n){var r=Math.floor(e.scrollTop),o=0===e.scrollTop,a=r+e.offsetHeight===e.scrollHeight,s=0===e.scrollLeft,c=e.scrollLeft+e.offsetWidth===e.scrollWidth;return!(Math.abs(n)>Math.abs(i)?o||a:s||c)||!t.settings.wheelPropagation}(r,o))&&!i.ctrlKey&&(i.stopPropagation(),i.preventDefault())}}void 0!==window.onwheel?t.event.bind(e,"wheel",i):void 0!==window.onmousewheel&&t.event.bind(e,"mousewheel",i)},touch:function(t){if(Me.supportsTouch||Me.supportsIePointer){var e=t.element,i={},n=0,r={},o=null;Me.supportsTouch?(t.event.bind(e,"touchstart",u),t.event.bind(e,"touchmove",l),t.event.bind(e,"touchend",h)):Me.supportsIePointer&&(window.PointerEvent?(t.event.bind(e,"pointerdown",u),t.event.bind(e,"pointermove",l),t.event.bind(e,"pointerup",h)):window.MSPointerEvent&&(t.event.bind(e,"MSPointerDown",u),t.event.bind(e,"MSPointerMove",l),t.event.bind(e,"MSPointerUp",h)))}function a(i,n){e.scrollTop-=n,e.scrollLeft-=i,Le(t)}function s(t){return t.targetTouches?t.targetTouches[0]:t}function c(t){return!(t.pointerType&&"pen"===t.pointerType&&0===t.buttons||(!t.targetTouches||1!==t.targetTouches.length)&&(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function u(t){if(c(t)){var e=s(t);i.pageX=e.pageX,i.pageY=e.pageY,n=(new Date).getTime(),null!==o&&clearInterval(o)}}function l(o){if(c(o)){var u=s(o),l={pageX:u.pageX,pageY:u.pageY},h=l.pageX-i.pageX,d=l.pageY-i.pageY;if(function(t,i,n){if(!e.contains(t))return!1;for(var r=t;r&&r!==e;){if(r.classList.contains("ps__child--consume"))return!0;var o=pe(r);if(n&&o.overflowY.match(/(scroll|auto)/)){var a=r.scrollHeight-r.clientHeight;if(a>0&&(r.scrollTop>0&&n<0||r.scrollTop0))return!0}if(i&&o.overflowX.match(/(scroll|auto)/)){var s=r.scrollWidth-r.clientWidth;if(s>0&&(r.scrollLeft>0&&i<0||r.scrollLeft0))return!0}r=r.parentNode}return!1}(o.target,h,d))return;a(h,d),i=l;var f=(new Date).getTime(),p=f-n;p>0&&(r.x=h/p,r.y=d/p,n=f),function(i,n){var r=Math.floor(e.scrollTop),o=e.scrollLeft,a=Math.abs(i),s=Math.abs(n);if(s>a){if(n<0&&r===t.contentHeight-t.containerHeight||n>0&&0===r)return 0===window.scrollY&&n>0&&Me.isChrome}else if(a>s&&(i<0&&o===t.contentWidth-t.containerWidth||i>0&&0===o))return!0;return!0}(h,d)&&o.preventDefault()}}function h(){t.settings.swipeEasing&&(clearInterval(o),o=setInterval(function(){t.isInitialized?clearInterval(o):r.x||r.y?Math.abs(r.x)<.01&&Math.abs(r.y)<.01?clearInterval(o):(a(30*r.x,30*r.y),r.x*=.8,r.y*=.8):clearInterval(o)},10))}}},Be=function(t,e){var i=this;if(void 0===e&&(e={}),"string"==typeof t&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var n in this.element=t,t.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},e)this.settings[n]=e[n];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var r,o,a=function(){return t.classList.add("ps--focus")},s=function(){return t.classList.remove("ps--focus")};this.isRtl="rtl"===pe(t).direction,!0===this.isRtl&&t.classList.add("ps__rtl"),this.isNegativeScroll=(o=t.scrollLeft,t.scrollLeft=-1,r=t.scrollLeft<0,t.scrollLeft=o,r),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new xe,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=me(Ae("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=me(we("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",a),this.event.bind(this.scrollbarX,"blur",s),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var c=pe(this.scrollbarXRail);this.scrollbarXBottom=parseInt(c.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=De(c.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=De(c.borderLeftWidth)+De(c.borderRightWidth),ge(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=De(c.marginLeft)+De(c.marginRight),ge(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=me(Ae("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=me(we("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",a),this.event.bind(this.scrollbarY,"blur",s),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var u=pe(this.scrollbarYRail);this.scrollbarYRight=parseInt(u.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=De(u.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(t){var e=pe(t);return De(e.width)+De(e.paddingLeft)+De(e.paddingRight)+De(e.borderLeftWidth)+De(e.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=De(u.borderTopWidth)+De(u.borderBottomWidth),ge(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=De(u.marginTop)+De(u.marginBottom),ge(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(t){return Ze[t](i)}),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",function(t){return i.onScroll(t)}),Le(this)};Be.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,ge(this.scrollbarXRail,{display:"block"}),ge(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=De(pe(this.scrollbarXRail).marginLeft)+De(pe(this.scrollbarXRail).marginRight),this.railYMarginHeight=De(pe(this.scrollbarYRail).marginTop)+De(pe(this.scrollbarYRail).marginBottom),ge(this.scrollbarXRail,{display:"none"}),ge(this.scrollbarYRail,{display:"none"}),Le(this),Pe(this,"top",0,!1,!0),Pe(this,"left",0,!1,!0),ge(this.scrollbarXRail,{display:""}),ge(this.scrollbarYRail,{display:""}))},Be.prototype.onScroll=function(t){this.isAlive&&(Le(this),Pe(this,"top",this.element.scrollTop-this.lastScrollTop),Pe(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},Be.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),_e(this.scrollbarX),_e(this.scrollbarY),_e(this.scrollbarXRail),_e(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},Be.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(t){return!t.match(/^ps([-_].+|)$/)}).join(" ")};var Fe=Be,He=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var i=-1;return t.some(function(t,n){return t[0]===e&&(i=n,!0)}),i}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var i=t(this.__entries__,e),n=this.__entries__[i];return n&&n[1]},e.prototype.set=function(e,i){var n=t(this.__entries__,e);~n?this.__entries__[n][1]=i:this.__entries__.push([e,i])},e.prototype.delete=function(e){var i=this.__entries__,n=t(i,e);~n&&i.splice(n,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var i=0,n=this.__entries__;i0},t.prototype.connect_=function(){Ue&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ye?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){Ue&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,i=void 0===e?"":e;je.some(function(t){return!!~i.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),Ve=function(t,e){for(var i=0,n=Object.keys(e);i0},t}(),ri="undefined"!=typeof WeakMap?new WeakMap:new He,oi=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=Ke.getInstance(),n=new ni(e,i,this);ri.set(this,n)};["observe","unobserve","disconnect"].forEach(function(t){oi.prototype[t]=function(){var e;return(e=ri.get(this))[t].apply(e,arguments)}});var ai=void 0!==qe.ResizeObserver?qe.ResizeObserver:oi;function si(t,e){if(1&t&&(r.TgZ(0,"div",3),r._UZ(1,"div",4),r._UZ(2,"div",5),r._UZ(3,"div",6),r._UZ(4,"div",7),r.qZA()),2&t){var i=r.oxw();r.ekj("ps-at-top",i.states.top)("ps-at-left",i.states.left)("ps-at-right",i.states.right)("ps-at-bottom",i.states.bottom),r.xp6(1),r.ekj("ps-indicator-show",i.indicatorY&&i.interaction),r.xp6(1),r.ekj("ps-indicator-show",i.indicatorX&&i.interaction),r.xp6(1),r.ekj("ps-indicator-show",i.indicatorX&&i.interaction),r.xp6(1),r.ekj("ps-indicator-show",i.indicatorY&&i.interaction)}}var ci=["*"],ui=new r.OlP("PERFECT_SCROLLBAR_CONFIG"),li=function t(e,i,n,r){_classCallCheck(this,t),this.x=e,this.y=i,this.w=n,this.h=r},hi=function t(e,i){_classCallCheck(this,t),this.x=e,this.y=i},di=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"],fi=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.assign(e)}return _createClass(t,[{key:"assign",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var e in t)this[e]=t[e]}}]),t}(),pi=function(){var t=function(){function t(e,i,n,o,a){_classCallCheck(this,t),this.zone=e,this.differs=i,this.elementRef=n,this.platformId=o,this.defaults=a,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new se.xQ,this.disabled=!1,this.psScrollY=new r.vpe,this.psScrollX=new r.vpe,this.psScrollUp=new r.vpe,this.psScrollDown=new r.vpe,this.psScrollLeft=new r.vpe,this.psScrollRight=new r.vpe,this.psYReachEnd=new r.vpe,this.psYReachStart=new r.vpe,this.psXReachEnd=new r.vpe,this.psXReachStart=new r.vpe}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;if(!this.disabled&&(0,v.NF)(this.platformId)){var e=new fi(this.defaults);e.assign(this.config),this.zone.runOutsideAngular(function(){t.instance=new Fe(t.elementRef.nativeElement,e)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(function(){t.ro=new ai(function(){t.update()}),t.elementRef.nativeElement.children[0]&&t.ro.observe(t.elementRef.nativeElement.children[0]),t.ro.observe(t.elementRef.nativeElement)}),this.zone.runOutsideAngular(function(){di.forEach(function(e){var i=e.replace(/([A-Z])/g,function(t){return"-".concat(t.toLowerCase())});(0,ce.R)(t.elementRef.nativeElement,i).pipe((0,le.e)(20),(0,he.R)(t.ngDestroy)).subscribe(function(i){t[e].emit(i)})})})}}},{key:"ngOnDestroy",value:function(){var t=this;(0,v.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&"undefined"!=typeof window&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(function(){t.instance&&t.instance.destroy()}),this.instance=null)}},{key:"ngDoCheck",value:function(){!this.disabled&&this.configDiff&&(0,v.NF)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}},{key:"ngOnChanges",value:function(t){t.disabled&&!t.disabled.isFirstChange()&&(0,v.NF)(this.platformId)&&t.disabled.currentValue!==t.disabled.previousValue&&(!0===t.disabled.currentValue?this.ngOnDestroy():!1===t.disabled.currentValue&&this.ngOnInit())}},{key:"ps",value:function(){return this.instance}},{key:"update",value:function(){var t=this;"undefined"!=typeof window&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(function(){if(!t.disabled&&t.configDiff)try{t.zone.runOutsideAngular(function(){t.instance&&t.instance.update()})}catch(e){}},0))}},{key:"geometry",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scroll";return new li(this.elementRef.nativeElement[t+"Left"],this.elementRef.nativeElement[t+"Top"],this.elementRef.nativeElement[t+"Width"],this.elementRef.nativeElement[t+"Height"])}},{key:"position",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return!t&&this.instance?new hi(this.instance.reach.x||0,this.instance.reach.y||0):new hi(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}},{key:"scrollable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"any",e=this.elementRef.nativeElement;return"any"===t?e.classList.contains("ps--active-x")||e.classList.contains("ps--active-y"):"both"===t?e.classList.contains("ps--active-x")&&e.classList.contains("ps--active-y"):e.classList.contains("ps--active-"+t)}},{key:"scrollTo",value:function(t,e,i){this.disabled||(null==e&&null==i?this.animateScrolling("scrollTop",t,i):(null!=t&&this.animateScrolling("scrollLeft",t,i),null!=e&&this.animateScrolling("scrollTop",e,i)))}},{key:"scrollToX",value:function(t,e){this.animateScrolling("scrollLeft",t,e)}},{key:"scrollToY",value:function(t,e){this.animateScrolling("scrollTop",t,e)}},{key:"scrollToTop",value:function(t,e){this.animateScrolling("scrollTop",t||0,e)}},{key:"scrollToLeft",value:function(t,e){this.animateScrolling("scrollLeft",t||0,e)}},{key:"scrollToRight",value:function(t,e){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(t||0),e)}},{key:"scrollToBottom",value:function(t,e){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(t||0),e)}},{key:"scrollToElement",value:function(t,e,i){var n=this.elementRef.nativeElement.querySelector(t);if(n){var r=n.getBoundingClientRect(),o=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",r.left-o.left+this.elementRef.nativeElement.scrollLeft+(e||0),i),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",r.top-o.top+this.elementRef.nativeElement.scrollTop+(e||0),i)}}},{key:"animateScrolling",value:function(t,e,i){var n=this;if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),i&&"undefined"!=typeof window){if(e!==this.elementRef.nativeElement[t]){var r=0,o=0,a=performance.now(),s=this.elementRef.nativeElement[t],c=(s-e)/2;window.requestAnimationFrame(function u(l){o+=Math.PI/(i/(l-a)),r=Math.round(e+c+c*Math.cos(o)),n.elementRef.nativeElement[t]===s&&(o>=Math.PI?n.animateScrolling(t,e,0):(n.elementRef.nativeElement[t]=r,s=n.elementRef.nativeElement[t],a=l,n.animation=window.requestAnimationFrame(u)))})}}else this.elementRef.nativeElement[t]=e}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.R0b),r.Y36(r.aQg),r.Y36(r.SBq),r.Y36(r.Lbi),r.Y36(ui,8))},t.\u0275dir=r.lG2({type:t,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:["perfectScrollbar","config"]},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],features:[r.TTD]}),t=(0,ae.gn)([(0,ae.fM)(3,(0,r.tBr)(r.Lbi)),(0,ae.fM)(4,(0,r.FiY)()),(0,ae.fM)(4,(0,r.tBr)(ui))],t)}(),gi=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.zone=e,this.cdRef=i,this.platformId=n,this.states={},this.indicatorX=!1,this.indicatorY=!1,this.interaction=!1,this.scrollPositionX=0,this.scrollPositionY=0,this.scrollDirectionX=0,this.scrollDirectionY=0,this.usePropagationX=!1,this.usePropagationY=!1,this.allowPropagationX=!1,this.allowPropagationY=!1,this.stateTimeout=null,this.ngDestroy=new se.xQ,this.stateUpdate=new se.xQ,this.disabled=!1,this.usePSClass=!0,this.autoPropagation=!1,this.scrollIndicators=!1,this.psScrollY=new r.vpe,this.psScrollX=new r.vpe,this.psScrollUp=new r.vpe,this.psScrollDown=new r.vpe,this.psScrollLeft=new r.vpe,this.psScrollRight=new r.vpe,this.psYReachEnd=new r.vpe,this.psYReachStart=new r.vpe,this.psXReachEnd=new r.vpe,this.psXReachStart=new r.vpe}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;(0,v.NF)(this.platformId)&&(this.stateUpdate.pipe((0,he.R)(this.ngDestroy),(0,de.x)(function(e,i){return e===i&&!t.stateTimeout})).subscribe(function(e){t.stateTimeout&&"undefined"!=typeof window&&(window.clearTimeout(t.stateTimeout),t.stateTimeout=null),"x"===e||"y"===e?(t.interaction=!1,"x"===e?(t.indicatorX=!1,t.states.left=!1,t.states.right=!1,t.autoPropagation&&t.usePropagationX&&(t.allowPropagationX=!1)):"y"===e&&(t.indicatorY=!1,t.states.top=!1,t.states.bottom=!1,t.autoPropagation&&t.usePropagationY&&(t.allowPropagationY=!1))):("left"===e||"right"===e?(t.states.left=!1,t.states.right=!1,t.states[e]=!0,t.autoPropagation&&t.usePropagationX&&(t.indicatorX=!0)):"top"!==e&&"bottom"!==e||(t.states.top=!1,t.states.bottom=!1,t.states[e]=!0,t.autoPropagation&&t.usePropagationY&&(t.indicatorY=!0)),t.autoPropagation&&"undefined"!=typeof window&&(t.stateTimeout=window.setTimeout(function(){t.indicatorX=!1,t.indicatorY=!1,t.stateTimeout=null,t.interaction&&(t.states.left||t.states.right)&&(t.allowPropagationX=!0),t.interaction&&(t.states.top||t.states.bottom)&&(t.allowPropagationY=!0),t.cdRef.markForCheck()},500))),t.cdRef.markForCheck(),t.cdRef.detectChanges()}),this.zone.runOutsideAngular(function(){if(t.directiveRef){var e=t.directiveRef.elementRef.nativeElement;(0,ce.R)(e,"wheel").pipe((0,he.R)(t.ngDestroy)).subscribe(function(e){!t.disabled&&t.autoPropagation&&t.checkPropagation(e,e.deltaX,e.deltaY)}),(0,ce.R)(e,"touchmove").pipe((0,he.R)(t.ngDestroy)).subscribe(function(e){if(!t.disabled&&t.autoPropagation){var i=e.touches[0].clientX,n=e.touches[0].clientY;t.checkPropagation(e,i-t.scrollPositionX,n-t.scrollPositionY),t.scrollPositionX=i,t.scrollPositionY=n}}),(0,ue.T)((0,ce.R)(e,"ps-scroll-x").pipe((0,fe.h)("x")),(0,ce.R)(e,"ps-scroll-y").pipe((0,fe.h)("y")),(0,ce.R)(e,"ps-x-reach-end").pipe((0,fe.h)("right")),(0,ce.R)(e,"ps-y-reach-end").pipe((0,fe.h)("bottom")),(0,ce.R)(e,"ps-x-reach-start").pipe((0,fe.h)("left")),(0,ce.R)(e,"ps-y-reach-start").pipe((0,fe.h)("top"))).pipe((0,he.R)(t.ngDestroy)).subscribe(function(e){t.disabled||!t.autoPropagation&&!t.scrollIndicators||t.stateUpdate.next(e)})}}),window.setTimeout(function(){di.forEach(function(e){t.directiveRef&&(t.directiveRef[e]=t[e])})},0))}},{key:"ngOnDestroy",value:function(){(0,v.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.unsubscribe(),this.stateTimeout&&"undefined"!=typeof window&&window.clearTimeout(this.stateTimeout))}},{key:"ngDoCheck",value:function(){if((0,v.NF)(this.platformId)&&!this.disabled&&this.autoPropagation&&this.directiveRef){var t=this.directiveRef.elementRef.nativeElement;this.usePropagationX=t.classList.contains("ps--active-x"),this.usePropagationY=t.classList.contains("ps--active-y")}}},{key:"checkPropagation",value:function(t,e,i){this.interaction=!0;var n=e<0?-1:1,r=i<0?-1:1;(this.usePropagationX&&this.usePropagationY||this.usePropagationX&&(!this.allowPropagationX||this.scrollDirectionX!==n)||this.usePropagationY&&(!this.allowPropagationY||this.scrollDirectionY!==r))&&(t.preventDefault(),t.stopPropagation()),e&&(this.scrollDirectionX=n),i&&(this.scrollDirectionY=r),this.stateUpdate.next("interaction"),this.cdRef.detectChanges()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.R0b),r.Y36(r.sBO),r.Y36(r.Lbi))},t.\u0275cmp=r.Xpm({type:t,selectors:[["perfect-scrollbar"]],viewQuery:function(t,e){var i;(1&t&&r.Gf(pi,7),2&t)&&(r.iGM(i=r.CRH())&&(e.directiveRef=i.first))},hostVars:4,hostBindings:function(t,e){2&t&&r.ekj("ps-show-limits",e.autoPropagation)("ps-show-active",e.scrollIndicators)},inputs:{disabled:"disabled",usePSClass:"usePSClass",autoPropagation:"autoPropagation",scrollIndicators:"scrollIndicators",config:"config"},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],ngContentSelectors:ci,decls:4,vars:5,consts:[[2,"position","static",3,"perfectScrollbar","disabled"],[1,"ps-content"],["class","ps-overlay",3,"ps-at-top","ps-at-left","ps-at-right","ps-at-bottom",4,"ngIf"],[1,"ps-overlay"],[1,"ps-indicator-top"],[1,"ps-indicator-left"],[1,"ps-indicator-right"],[1,"ps-indicator-bottom"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"div",0),r.TgZ(1,"div",1),r.Hsn(2),r.qZA(),r.YNc(3,si,5,16,"div",2),r.qZA()),2&t&&(r.ekj("ps",e.usePSClass),r.Q6J("perfectScrollbar",e.config)("disabled",e.disabled),r.xp6(3),r.Q6J("ngIf",e.scrollIndicators))},directives:[pi,v.O5],styles:["perfect-scrollbar{position:relative;display:block;overflow:hidden;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar[hidden]{display:none}perfect-scrollbar[fxflex]{display:-webkit-box;display:flex;flex-direction:column;height:auto;min-width:0;min-height:0;-webkit-box-direction:column;-webkit-box-orient:column}perfect-scrollbar[fxflex]>.ps{flex:1 1 auto;width:auto;height:auto;min-width:0;min-height:0;-webkit-box-flex:1}perfect-scrollbar[fxlayout]>.ps,perfect-scrollbar[fxlayout]>.ps>.ps-content{display:-webkit-box;display:flex;flex:1 1 auto;flex-direction:inherit;align-items:inherit;align-content:inherit;justify-content:inherit;width:100%;height:100%;-webkit-box-align:inherit;-webkit-box-direction:inherit;-webkit-box-flex:1;-webkit-box-orient:inherit;-webkit-box-pack:inherit},perfect-scrollbar[fxlayout=row]>.ps,perfect-scrollbar[fxlayout=row]>.ps>.ps-content{flex-direction:row!important;-webkit-box-direction:row!important;-webkit-box-orient:row!important}perfect-scrollbar[fxlayout=column]>.ps,perfect-scrollbar[fxlayout=column]>.ps>.ps-content{flex-direction:column!important;-webkit-box-direction:column!important;-webkit-box-orient:column!important}perfect-scrollbar>.ps{position:static;display:block;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar>.ps textarea{-ms-overflow-style:scrollbar}perfect-scrollbar>.ps>.ps-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:block;overflow:hidden;pointer-events:none}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{position:absolute;opacity:0;-webkit-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{left:0;min-width:100%;min-height:24px}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{top:0;min-width:24px;min-height:100%}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left{left:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{right:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{bottom:0}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y{top:0!important;right:0!important;left:auto!important;width:10px;cursor:default;-webkit-transition:width .2s linear,opacity .2s linear,background-color .2s linear;transition:width .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y.ps--clicking,perfect-scrollbar>.ps.ps--active-y>.ps__rail-y:hover{width:15px}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x{top:auto!important;bottom:0!important;left:0!important;height:10px;cursor:default;-webkit-transition:height .2s linear,opacity .2s linear,background-color .2s linear;transition:height .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x.ps--clicking,perfect-scrollbar>.ps.ps--active-x>.ps__rail-x:hover{height:15px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-y{margin:0 0 10px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-x{margin:0 10px 0 0}perfect-scrollbar>.ps.ps--scrolling-x>.ps__rail-x,perfect-scrollbar>.ps.ps--scrolling-y>.ps__rail-y{opacity:.9;background-color:#eee}perfect-scrollbar.ps-show-always>.ps.ps--active-x>.ps__rail-x,perfect-scrollbar.ps-show-always>.ps.ps--active-y>.ps__rail-y{opacity:.6}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-top) .ps-indicator-top{opacity:1;background:-webkit-gradient(linear,left top,left bottom,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to bottom,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-bottom) .ps-indicator-bottom{opacity:1;background:-webkit-gradient(linear,left bottom,left top,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to top,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-left) .ps-indicator-left{opacity:1;background:-webkit-gradient(linear,left top,right top,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to right,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-right) .ps-indicator-right{opacity:1;background:-webkit-gradient(linear,right top,left top,from(rgba(255,255,255,.5)),to(rgba(255,255,255,0)));background:linear-gradient(to left,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top{background:-webkit-gradient(linear,left top,left bottom,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to bottom,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom{background:-webkit-gradient(linear,left bottom,left top,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to top,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left{background:-webkit-gradient(linear,left top,right top,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to right,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right{background:-webkit-gradient(linear,right top,left top,from(rgba(170,170,170,.5)),to(rgba(170,170,170,0)));background:linear-gradient(to left,rgba(170,170,170,.5) 0,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top.ps-indicator-show{opacity:1}",".ps{overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.ps__rail-x{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;height:15px;bottom:0;position:absolute}.ps__rail-y{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;width:15px;right:0;position:absolute}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{display:block;background-color:transparent}.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y,.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y{opacity:.6}.ps .ps__rail-x.ps--clicking,.ps .ps__rail-x:focus,.ps .ps__rail-x:hover,.ps .ps__rail-y.ps--clicking,.ps .ps__rail-y:focus,.ps .ps__rail-y:hover{background-color:#eee;opacity:.9}.ps__thumb-x{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px;position:absolute}.ps__thumb-y{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px;position:absolute}.ps__rail-x.ps--clicking .ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x:hover>.ps__thumb-x{background-color:#999;height:11px}.ps__rail-y.ps--clicking .ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y:hover>.ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style:none){.ps{overflow:auto!important}}@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){.ps{overflow:auto!important}}"],encapsulation:2}),t=(0,ae.gn)([(0,ae.fM)(2,(0,r.tBr)(r.Lbi))],t)}(),mi=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[v.ez],v.ez]}),t}(),vi=i(52623),yi=i(17),_i=i(11418);function bi(t,e){if(1&t){var i=r.EpF();r.TgZ(0,"div"),r.TgZ(1,"perun-web-apps-notification",2),r.NdJ("closeNotification",function(){var t=r.CHM(i).index;return r.oxw().removeNotification(t)}),r.qZA(),r.qZA()}if(2&t){var n=e.$implicit;r.Q6J("@flyInOut",void 0),r.xp6(1),r.Q6J("data",n)("newNotification",!0)}}var wi=function(t){return{top:t}},Ai=function(){var t=function(){function t(e,i){var n=this;_classCallCheck(this,t),this.notificator=e,this.notificationStorageService=i,this.mobileView=!1,this.minWidth=992,this.displayWarning=!1,this.notifications=[],this.notificator.addNotification.subscribe(function(t){n.processNotification(t)}),this.getScreenSize()}return _createClass(t,[{key:"getScreenSize",value:function(){this.mobileView=window.innerWidth<=this.minWidth}},{key:"processNotification",value:function(t){this.notifications.push(t),this.notificationStorageService.storeNotification(t)}},{key:"getNotificatorTop",value:function(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}},{key:"removeNotification",value:function(t){this.notifications.splice(t,1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(c.V6),r.Y36(c.SZ))},t.\u0275cmp=r.Xpm({type:t,selectors:[["perun-web-apps-notificator"]],hostBindings:function(t,e){1&t&&r.NdJ("resize",function(t){return e.getScreenSize(t)},!1,r.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.YNc(1,bi,2,3,"div",1),r.qZA()),2&t&&(r.Q6J("ngStyle",r.VKq(2,wi,e.getNotificatorTop())),r.xp6(1),r.Q6J("ngForOf",e.notifications))},directives:[v.PC,v.sg,_i.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;bottom:0}}"],data:{animation:[yi.Pd]}}),t}(),ki=i(4253);function Ci(t,e){if(1&t&&(r.TgZ(0,"div",9),r._UZ(1,"perun-web-apps-notification",10),r.qZA()),2&t){var i=e.$implicit;r.xp6(1),r.Q6J("data",i)("inDialog",!0)}}function Ti(t,e){if(1&t&&(r.TgZ(0,"div",6),r.TgZ(1,"cdk-virtual-scroll-viewport",7),r.YNc(2,Ci,2,2,"div",8),r.qZA(),r.qZA()),2&t){var i=r.oxw();r.xp6(2),r.Q6J("cdkVirtualForOf",i.notifications)}}function Ei(t,e){1&t&&(r.TgZ(0,"app-alert",11),r._uU(1),r.ALo(2,"translate"),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,1,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT")))}var Si=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.dialogRef=e,this.notificationStorageService=i}return _createClass(t,[{key:"ngOnInit",value:function(){this.notifications=this.notificationStorageService.getNotifications()}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onClear",value:function(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(f.so),r.Y36(c.SZ))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"h1",0),r._uU(1),r.ALo(2,"translate"),r.qZA(),r.YNc(3,Ti,3,1,"div",1),r.YNc(4,Ei,3,3,"app-alert",2),r.TgZ(5,"div",3),r.TgZ(6,"button",4),r.NdJ("click",function(){return e.onClear()}),r._uU(7),r.ALo(8,"translate"),r.qZA(),r.TgZ(9,"button",5),r.NdJ("click",function(){return e.onCancel()}),r._uU(10),r.ALo(11,"translate"),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Oqu(r.lcZ(2,5,"DIALOGS.NOTIFICATION_LIST.TITLE")),r.xp6(2),r.Q6J("ngIf",0!==e.notifications.length),r.xp6(1),r.Q6J("ngIf",0===e.notifications.length),r.xp6(3),r.hij(" ",r.lcZ(8,7,"DIALOGS.NOTIFICATION_LIST.CLEAR")," "),r.xp6(3),r.hij(" ",r.lcZ(11,9,"DIALOGS.NOTIFICATION_LIST.CANCEL")," "))},directives:[f.uh,v.O5,f.H8,_.lW,ki.N7,ki.xd,ki.x0,_i.c,w.w],pipes:[d.X$],styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),t}(),Ii=i(41050),Ri=i(66438);function xi(t,e){1&t&&(r.TgZ(0,"div",10),r.TgZ(1,"span",11),r._uU(2," ~ \ud83d\uddf2\xa0 "),r.qZA(),r.TgZ(3,"span",12),r._uU(4," DEVEL "),r.qZA(),r.TgZ(5,"span",11),r._uU(6," \xa0\ud83d\uddf2 ~ "),r.qZA(),r.qZA())}var Oi=function(t){return{color:t}},Pi=function(){return["/home"]},Di=function(){var t=function(){function t(e,i,n,r,o,a,s,c,u,l){_classCallCheck(this,t),this.storeService=e,this.authService=i,this.authzResolverService=n,this.dialog=r,this.notificator=o,this.translateService=a,this.store=s,this.sanitizer=c,this.notificationStorageService=u,this.otherApplicationService=l,this.logoutEnabled=!0,this.navTextColor=this.store.get("theme","nav_text_color"),this.iconColor=this.store.get("theme","nav_icon_color"),this.isDevel=!1}return _createClass(t,[{key:"ngOnInit",value:function(){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")}},{key:"showNotificationHistory",value:function(){this.notificationStorageService.newNotificationsCount=0;var t=(0,u.kZ)();t.width="520px",this.dialog.open(Si,t)}},{key:"getNewNotificationsCount",value:function(){return this.notificationStorageService.newNotificationsCount}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(c.d6),r.Y36(c.e8),r.Y36(s.Ct),r.Y36(f.uw),r.Y36(c.V6),r.Y36(d.sK),r.Y36(c.d6),r.Y36(n.H7),r.Y36(c.SZ),r.Y36(c.jq))},t.\u0275cmp=r.Xpm({type:t,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,"url","label","user","logoutEnabled","iconColor","textColor"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(t,e){1&t&&(r.TgZ(0,"div",0),r.TgZ(1,"button",1),r.NdJ("click",function(){return e.sideNav.toggle()}),r.TgZ(2,"mat-icon",2),r._uU(3," menu "),r.qZA(),r.qZA(),r.TgZ(4,"a",3),r._UZ(5,"div",4),r.qZA(),r.qZA(),r.YNc(6,xi,7,0,"div",5),r.TgZ(7,"div",6),r.TgZ(8,"button",7),r.NdJ("click",function(){return e.showNotificationHistory()}),r.ALo(9,"translate"),r.TgZ(10,"mat-icon",8),r._uU(11),r.qZA(),r.qZA(),r._UZ(12,"perun-web-apps-header-menu",9),r.qZA()),2&t&&(r.Q6J("ngStyle",r.VKq(19,Oi,e.navTextColor)),r.xp6(2),r.Q6J("ngStyle",r.VKq(21,Oi,e.iconColor)),r.xp6(2),r.Q6J("routerLink",r.DdM(23,Pi)),r.xp6(1),r.Q6J("innerHTML",e.logo,r.oJD),r.xp6(1),r.Q6J("ngIf",e.isDevel),r.xp6(1),r.Q6J("ngStyle",r.VKq(24,Oi,e.navTextColor)),r.xp6(1),r.Q6J("matTooltip",r.lcZ(9,17,"NAV.NOTIFICATIONS_TOOLTIP")),r.xp6(2),r.s9C("matBadge",e.getNewNotificationsCount()>5?"5+":e.getNewNotificationsCount()),r.Q6J("ngStyle",r.VKq(26,Oi,e.iconColor))("matBadgeHidden",0===e.getNewNotificationsCount()),r.xp6(1),r.hij(" ",e.getNewNotificationsCount()?"notifications_active":"notifications"," "),r.xp6(1),r.Q6J("url",e.profileUrl)("label",e.profileLabel)("user",e.principal.user)("logoutEnabled",e.logoutEnabled)("iconColor",e.iconColor)("textColor",e.navTextColor))},directives:[v.PC,_.lW,y.Hw,o.yS,v.O5,C.gM,Ii.k,Ri.X],pipes:[d.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}"]}),t}(),Mi=i(24081),Li={provide:Ot.TP,useExisting:(0,r.Gpc)(function(){return c.yC}),multi:!0};function Ni(t){return new xt(t,"./assets/i18n/",".json")}function zi(t){var e={basePath:t.get("api_url")};return new s.VK(e)}var Zi=function(t){return function(){return t.initialize()}},Bi={suppressScrollX:!0},Fi=function(){var t=function t(e,i){_classCallCheck(this,t),this.customIconService=e,this.translate=i,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()};return t.\u0275fac=function(e){return new(e||t)(r.LFG(c.EB),r.LFG(d.sK))},t.\u0275mod=r.oAB({type:t,bootstrap:[It.y]}),t.\u0275inj=r.cJS({providers:[re,{provide:r.ip1,useFactory:Zi,multi:!0,deps:[re]},{provide:s.VK,useFactory:zi,deps:[c.d6]},{provide:o.wN,useClass:Xt},c.EB,{provide:$t,useClass:c.sM},c.yC,Li,{provide:ui,useValue:Bi}],imports:[[Pt.PW,n.b2,Ot.JF,Rt.m,Dt,St,y.Ps,oe,d.aw.forRoot({loader:{provide:d.Zw,useFactory:Ni,deps:[Ot.eN]}}),s.au,mi,ut.ez,ft,vi.zr.forRoot()]]}),t}();r.B6R(It.y,[v.O5,y.Hw,Ai,Di,v.PC,p.TM,p.JX,gi,Mi.V,p.Rh,o.lC,gt.$,kt],[]),(0,r.G48)(),n.q6().bootstrapModule(Fi).catch(function(t){return console.error(t)})},7423:function(t,e,i){"use strict";i.d(e,{r:function(){return o}});var n=i(61511),r=i(31572),o=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[n.ez]]}),t}()},13857:function(t,e,i){"use strict";i.d(e,{Rc:function(){return r},pI:function(){return o},Ng:function(){return a}});var n=i(31572),r="GUI_CONFIG.PREF_PAGE_SIZE",o="GUI_CONFIG.PREF_PAGE_SIZE.",a=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"getString",value:function(t){return localStorage.getItem(t)}},{key:"getNumber",value:function(t){return parseInt(localStorage.getItem(t),10)}},{key:"setNumber",value:function(t,e){localStorage.setItem(t,e.toString())}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}()},60611:function(t,e,i){"use strict";i.d(e,{dB:function(){return o},CP:function(){return a},tw:function(){return s},nT:function(){return c},YF:function(){return u},gc:function(){return l},v1:function(){return h},AA:function(){return d},VR:function(){return f},uM:function(){return p},xx:function(){return g},H2:function(){return m},xt:function(){return v},dI:function(){return y},j1:function(){return _},Wv:function(){return b},qy:function(){return w},BV:function(){return A},qV:function(){return k},tY:function(){return C},Af:function(){return T},O7:function(){return E},gB:function(){return S},Hi:function(){return I},Jf:function(){return R},W1:function(){return x},rF:function(){return O},Aj:function(){return P},Ad:function(){return D},kZ:function(){return M},cL:function(){return L},RS:function(){return N},HC:function(){return z},KE:function(){return Z},Sb:function(){return B},_7:function(){return F},bf:function(){return H},rc:function(){return U},Cf:function(){return q},eq:function(){return G},NG:function(){return j},O9:function(){return Y},d7:function(){return K},vq:function(){return V},NL:function(){return J},kO:function(){return Q},aL:function(){return W},DR:function(){return X},uC:function(){return $},JO:function(){return tt},oK:function(){return et},Iz:function(){return it},It:function(){return nt},z6:function(){return rt},iQ:function(){return ot},e5:function(){return at},Bf:function(){return st},zp:function(){return ct},US:function(){return ut},gG:function(){return lt},$V:function(){return ht},S7:function(){return dt},zW:function(){return ft},CE:function(){return pt},Is:function(){return gt},M8:function(){return mt},g:function(){return vt},_c:function(){return yt},dK:function(){return _t},yW:function(){return bt}});var n=i(13857),r=i(31572),o=function(){var t=function(){function t(e){_classCallCheck(this,t),this.guiConfigService=e}return _createClass(t,[{key:"getTablePageSize",value:function(t){var e=this.guiConfigService.getNumber(n.pI+t);if(!isNaN(e))return e;var i=this.guiConfigService.getNumber(n.Rc);return isNaN(i)?10:i}},{key:"setTablePageSize",value:function(t,e){this.guiConfigService.setNumber(n.pI+t,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.Ng))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),a="0",s="1",c="2",u="3",l="4",h="5",d="6",f="7",p="8",g="9",m="10",v="11",y="12",_="13",b="14",w="15",A="16",k="17",C="18",T="19",E="20",S="21",I="22",R="23",x="24",O="25",P="26",D="27",M="28",L="29",N="30",z="31",Z="32",B="33",F="34",H="35",U="36",q="37",G="42",j="43",Y="44",K="45",V="46",J="47",Q="48",W="49",X="50",$="51",tt="52",et="53",it="54",nt="55",rt="56",ot="57",at="58",st="59",ct="62",ut="63",lt="64",ht="65",dt="66",ft="69",pt="71",gt="72",mt="75",vt="76",yt="77",_t="78",bt="79"},17:function(t,e,i){"use strict";i.d(e,{Ji:function(){return s},Pd:function(){return o},BQ:function(){return r},Ly:function(){return a},GH:function(){return l},Ls:function(){return h},SG:function(){return u},es:function(){return c}});var n=i(10709),r=(0,n.X$)("openClose",[(0,n.SB)("open",(0,n.oB)({overflow:"hidden"})),(0,n.SB)("closed",(0,n.oB)({height:"0px",overflow:"hidden"})),(0,n.eR)("open <=> closed",[(0,n.jt)(".3s ease-in")])]),o=(0,n.X$)("flyInOut",[(0,n.eR)(":enter",[(0,n.oB)({transform:"translateX(100%)"}),(0,n.jt)(".25s")]),(0,n.eR)(":leave",[(0,n.jt)(".5s",(0,n.oB)({transform:"translateX(100%)"}))])]),a=(0,n.X$)("rollInOut",[(0,n.eR)(":enter",[(0,n.oB)({height:"0px"}),(0,n.jt)(".25s")]),(0,n.eR)(":leave",[(0,n.jt)(".25s",(0,n.oB)({height:"0px"}))])]),s=(0,n.X$)("routeAnimations",[(0,n.eR)("* => *",[(0,n.oB)({position:"relative"}),(0,n.IO)(":enter",[(0,n.oB)({width:"100%",opacity:0})],{optional:!0}),(0,n.IO)(":leave",[(0,n.oB)({position:"absolute",width:"100%",opacity:1}),(0,n.jt)("0.15s",(0,n.oB)({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),(0,n.IO)(":enter",[(0,n.oB)({position:"absolute",width:"100%",opacity:0}),(0,n.jt)("0.15s",(0,n.oB)({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),c=(0,n.X$)("tagsOpenClose",[(0,n.SB)("open",(0,n.oB)({})),(0,n.SB)("closed",(0,n.oB)({width:"0px",height:"0px"})),(0,n.eR)("open <=> closed",[(0,n.jt)(".3s ease-in")])]),u=(0,n.X$)("switchAnimations",[(0,n.eR)("true => false",[(0,n.IO)(":enter, :leave",(0,n.oB)({})),(0,n.ru)([(0,n.IO)(":enter",[(0,n.oB)({transform:"translateX(-100%)"}),(0,n.jt)("1s ease-in-out",(0,n.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,n.IO)(":leave",[(0,n.oB)({transform:"translateX(0%)",position:"absolute"}),(0,n.jt)("1s ease-in-out",(0,n.oB)({transform:"translateX(100%)"}))],{optional:!0})])]),(0,n.eR)("false => true",[(0,n.IO)(":enter, :leave",(0,n.oB)({})),(0,n.ru)([(0,n.IO)(":enter",[(0,n.oB)({transform:"translateX(100%)"}),(0,n.jt)("1s ease-in-out",(0,n.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,n.IO)(":leave",[(0,n.oB)({transform:"translateX(0%)",position:"absolute"}),(0,n.jt)("1s ease-in-out",(0,n.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])]),l=(0,n.X$)("slideInOutLeft",[(0,n.eR)(":enter",[(0,n.oB)({transform:"translateX(-100%)",position:"relative"}),(0,n.jt)("0.5s ease-in",(0,n.oB)({transform:"translateX(0%)"}))]),(0,n.eR)(":leave",[(0,n.jt)("0.5s ease-in",(0,n.oB)({transform:"translateX(-100%)"}))])]),h=(0,n.X$)("slideInOutRight",[(0,n.eR)(":enter",[(0,n.oB)({transform:"translateX(100%)",position:"fixed"}),(0,n.jt)("0.5s ease-in",(0,n.oB)({transform:"translateX(0%)"}))]),(0,n.eR)(":leave",[(0,n.oB)({transform:"translateX(-100%)",position:"relative"}),(0,n.jt)("0.5s ease-in",(0,n.oB)({transform:"translateX(100%)"}))])])},41939:function(t,e,i){"use strict";i.d(e,{Mw:function(){return N.M},qG:function(){return it.qG},Sx:function(){return et.S},Nj:function(){return $},ez:function(){return L},t$:function(){return tt}});var n=i(61511),r=i(29236),o=i(67033),a=i(48160),s=i(57629),c=i(58623),u=i(73005),l=i(67806),h=i(22727),d=i(43691),f=i(8055),p=i(15980),g=i(36922),m=i(66283),v=i(16073),y=i(80340),_=i(10033),b=i(88975),w=i(71522),A=i(22280),k=i(81391),C=i(91010),T=i(15812),E=i(54810),S=i(4786),I=i(30146),R=i(4253),x=i(84608),O=i(84140),P=i(31572),D=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"format",value:function(t,e){return"input"===e?"".concat(t.getDate().toString(),".").concat((t.getMonth()+1).toString(),".").concat(t.getFullYear()):t.toDateString()}}]),i}(w.LF);return e.\u0275fac=function(i){return(t||(t=P.n5z(e)))(i||e)},e.\u0275prov=P.Yz7({token:e,factory:e.\u0275fac}),e}(),M={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"}}},L=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=P.oAB({type:t}),t.\u0275inj=P.cJS({providers:[{provide:w._A,useClass:D},{provide:w.sG,useValue:M}],imports:[[n.ez,r.p9,o.p0,v.u5,_.Hi,b._t,a.aw,s.Bz,c.JX,u.TU,l.Cq,h.r,d.Ps,f.Tx,p.ot,g.AV,m.lN,v.UX,y.c,w.si,A.d4,k.Iq,C.dp,T.FA,E.Fk,w.Ng,S.LD,I.Co,R.Cl,x.Is,O.Je]]}),t}();i(41186);var N=i(51556),z=(i(76021),i(84584),i(22230),i(33596),i(88884),i(11418),i(23888),i(65249)),Z=i(68416),B=i(6527),F=i(39571),H=i(83787);function U(t,e){1&t&&(P.TgZ(0,"app-alert"),P._uU(1),P.ALo(2,"translate"),P.ALo(3,"customTranslate"),P.qZA()),2&t&&(P.xp6(1),P.Oqu(P.lcZ(2,1,P.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function q(t,e){1&t&&(P.TgZ(0,"th",16),P._uU(1),P.ALo(2,"translate"),P.ALo(3,"customTranslate"),P.qZA()),2&t&&(P.xp6(1),P.hij(" ",P.lcZ(2,1,P.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))," "))}function G(t,e){if(1&t&&(P.TgZ(0,"td",17),P._uU(1),P.qZA()),2&t){var i=e.$implicit;P.xp6(1),P.Oqu(i.friendlyNameParameter)}}function j(t,e){1&t&&(P.TgZ(0,"th",16),P._uU(1),P.ALo(2,"translate"),P.ALo(3,"customTranslate"),P.qZA()),2&t&&(P.xp6(1),P.hij(" ",P.lcZ(2,1,P.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))," "))}function Y(t,e){if(1&t&&(P.TgZ(0,"td",18),P._uU(1),P.qZA()),2&t){var i=e.$implicit;P.xp6(1),P.Oqu(i.value)}}function K(t,e){1&t&&P._UZ(0,"th",16)}function V(t,e){if(1&t){var i=P.EpF();P.TgZ(0,"td",19),P.TgZ(1,"button",20),P.NdJ("click",function(){var t=P.CHM(i).$implicit;return P.oxw().resetPassword(t.friendlyNameParameter)}),P._uU(2),P.ALo(3,"translate"),P.ALo(4,"customTranslate"),P.qZA(),P.qZA()}if(2&t){var n=e.$implicit,r=P.oxw();P.xp6(1),P.Q6J("disabled",!r.logins.includes(n)),P.xp6(1),P.hij(" ",P.lcZ(3,2,P.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.RESET_PASSWORD"))," ")}}function J(t,e){1&t&&P._UZ(0,"th",16)}function Q(t,e){if(1&t){var i=P.EpF();P.TgZ(0,"td",19),P.TgZ(1,"button",21),P.NdJ("click",function(){var t=P.CHM(i).$implicit;return P.oxw().changePassword(t)}),P._uU(2),P.ALo(3,"translate"),P.ALo(4,"customTranslate"),P.qZA(),P.qZA()}if(2&t){var n=e.$implicit,r=P.oxw();P.xp6(1),P.Q6J("disabled",!r.logins.includes(n)),P.xp6(1),P.hij(" ",P.lcZ(3,2,P.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD"))," ")}}function W(t,e){1&t&&P._UZ(0,"tr",22)}function X(t,e){1&t&&P._UZ(0,"tr",23)}var $=function(){var t=function(){function t(e,i,n,r,o,a){_classCallCheck(this,t),this.attributesManagerService=e,this.store=i,this.dialog=n,this.route=r,this.router=o,this.otherApplicationService=a,this.nameSpaces=[],this.logins=[],this.displayedColumns=["namespace","value","reset","change"]}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.userId=this.store.getPerunPrincipal().userId,this.nameSpaces=this.store.get("password_namespace_attributes"),this.attributesManagerService.getLogins(this.userId).subscribe(function(e){var i=t.nameSpaces.map(function(t){var e=t.split(":");return e[e.length-1]});t.logins=e.filter(function(t){return i.includes(t.friendlyNameParameter)}),t.dataSource=new o.by(e);var n=t.route.snapshot.queryParamMap.get("namespace");if(n){var r=t.logins.find(function(t){return t.friendlyNameParameter===n});r&&t.changePassword(r)}})}},{key:"resetPassword",value:function(t){window.open(this.otherApplicationService.getUrlForOtherApplication("pwdReset",t),"_blank")}},{key:"changePassword",value:function(t){var e=this;this.router.navigate([],{queryParams:{namespace:t.friendlyNameParameter},queryParamsHandling:"merge"});var i=(0,O.kZ)();i.width="600px",i.data={login:t.value,namespace:t.friendlyName.split(":")[1]},this.dialog.open(B.xF,i).afterClosed().subscribe(function(){e.router.navigate([],{queryParams:{namespace:null},queryParamsHandling:"merge"})})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(P.Y36(z.H8),P.Y36(Z.d6),P.Y36(x.uw),P.Y36(s.gz),P.Y36(s.F0),P.Y36(Z.jq))},t.\u0275cmp=P.Xpm({type:t,selectors:[["perun-web-apps-password-reset"]],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(t,e){1&t&&(P.TgZ(0,"h1",0),P._uU(1),P.ALo(2,"translate"),P.ALo(3,"customTranslate"),P.qZA(),P.YNc(4,U,4,5,"app-alert",1),P.TgZ(5,"div",2),P.TgZ(6,"div",3),P.TgZ(7,"div",4),P.TgZ(8,"table",5),P.ynx(9,6),P.YNc(10,q,4,5,"th",7),P.YNc(11,G,2,1,"td",8),P.BQk(),P.ynx(12,9),P.YNc(13,j,4,5,"th",7),P.YNc(14,Y,2,1,"td",10),P.BQk(),P.ynx(15,11),P.YNc(16,K,1,0,"th",7),P.YNc(17,V,5,6,"td",12),P.BQk(),P.ynx(18,13),P.YNc(19,J,1,0,"th",7),P.YNc(20,Q,5,6,"td",12),P.BQk(),P.YNc(21,W,1,0,"tr",14),P.YNc(22,X,1,0,"tr",15),P.qZA(),P.qZA(),P.qZA(),P.qZA()),2&t&&(P.xp6(1),P.hij(" ",P.lcZ(2,5,P.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE")),"\n"),P.xp6(3),P.Q6J("ngIf",!e.logins.length),P.xp6(4),P.Q6J("dataSource",e.dataSource),P.xp6(13),P.Q6J("matHeaderRowDef",e.displayedColumns),P.xp6(1),P.Q6J("matRowDefColumns",e.displayedColumns))},directives:[n.O5,o.BZ,c.YE,o.w1,o.fO,o.Dz,o.as,o.nj,F.w,o.ge,o.ev,p.lW,o.XQ,o.Gk],pipes:[a.X$,H.a],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}"]}),t}(),tt=function(){var t=function(){function t(e,i,n,r){_classCallCheck(this,t),this.router=e,this.route=i,this.location=n,this.forceRoute=r}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;"back"!==this.forceRoute.getLastState()?this.route.queryParams.subscribe(function(e){t.router.navigate([e.redirectTo])}):this.location.back()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(P.Y36(s.F0),P.Y36(s.gz),P.Y36(n.Ye),P.Y36(Z.xw))},t.\u0275cmp=P.Xpm({type:t,selectors:[["perun-web-apps-redirect-page"]],decls:0,vars:0,template:function(t,e){},styles:[""]}),t}();i(78364),i(11441),i(67474),i(43005);var et=i(30725),it=(i(66438),i(94327))},30725:function(t,e,i){"use strict";i.d(e,{S:function(){return a},Y:function(){return s}});var n=i(31572),r=(i(65249),i(48160)),o=i(44973),a={},s=function(){var t=function t(e){var i=this;_classCallCheck(this,t),this.translate=e,this.item=null,this.itemSelected=new n.vpe,this.nameFunction=function(t){return t===a?i.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM"):t.shortname},this.secondaryFunction=function(t){return t===a?"":t.id<0?i.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NEW_ITEM"):"#"+t.id},this.searchFunction=function(t){return t===a?"":t.shortname+t.id}};return t.\u0275fac=function(e){return new(e||t)(n.Y36(r.sK))},t.\u0275cmp=n.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(t,e){1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.itemSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t&&n.Q6J("entities",e.items)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.secondaryFunction)("entity",e.item)("disableAutoSelect",!0)("selectPlaceholder",n.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",n.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",n.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},directives:[o.i],pipes:[r.X$],styles:[""]}),t}()},76021:function(t,e,i){"use strict";i.d(e,{u:function(){return d}});var n=i(31572),r=i(84140),o=i(61511),a=i(29236),s=i(16073),c=i(66283),u=i(82877);function l(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-checkbox",2),n.NdJ("change",function(){return n.CHM(i),n.oxw()._sendEventToParent()})("ngModelChange",function(t){return n.CHM(i),n.oxw().attribute.value=t}),n.ALo(1,"multiWordDataCy"),n.qZA()}if(2&t){var r=n.oxw();n.Q2q("data-cy","",n.lcZ(1,2,r.attribute.displayName),"-value"),n.Q6J("ngModel",r.attribute.value)}}function h(t,e){if(1&t&&(n.TgZ(0,"mat-label"),n._uU(1),n.qZA()),2&t){var i=n.oxw();n.xp6(1),n.Oqu(i.attribute.value)}}var d=function(){var t=function(){function t(){_classCallCheck(this,t),this.readonly=!1,this.sendEventToParent=new n.vpe}return _createClass(t,[{key:"ngOnInit",value:function(){this.readonly||(this.readonly=(0,r.Hm)(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"div"),n.YNc(1,l,2,4,"mat-checkbox",0),n.YNc(2,h,2,1,"mat-label",1),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf",!e.readonly),n.xp6(1),n.Q6J("ngIf",e.readonly))},directives:[o.O5,a.oG,s.JJ,s.On,c.hX],pipes:[u.R],styles:[""]}),t}()},84584:function(t,e,i){"use strict";i.d(e,{H:function(){return C}});var n=i(31572),r=i(75842),o=i(88975),a=i(6527),s=i(84140),c=i(84608),u=i(10033),l=i(61511),h=i(43691),d=i(36922),f=i(15980),p=i(66283),g=i(80340);function m(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-icon",9),n.NdJ("mousedown",function(){return n.CHM(i),n.oxw(2).dragDisabled=!1}),n._uU(1,"drag_indicator"),n.qZA()}}function v(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-icon",10),n.NdJ("click",function(){n.CHM(i);var t=n.oxw().$implicit;return n.oxw().edit(t)}),n._uU(1,"edit"),n.qZA()}}function y(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-icon",11),n.NdJ("click",function(){n.CHM(i);var t=n.oxw().$implicit;return n.oxw().remove(t)}),n._uU(1,"cancel"),n.qZA()}}function _(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-chip",4),n.NdJ("removed",function(){var t=n.CHM(i).$implicit,e=n.oxw();return e.remove(t),e._sendEventToParent()}),n.YNc(1,m,2,0,"mat-icon",5),n.TgZ(2,"div",6),n.NdJ("click",function(){var t=n.CHM(i).$implicit,e=n.oxw();return e.readonly&&void 0!==e.attribute.displayName&&e.showValue(t,e.attribute.displayName)}),n._uU(3),n.qZA(),n.YNc(4,v,2,0,"mat-icon",7),n.YNc(5,y,2,0,"mat-icon",8),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.Q6J("selectable",o.selectable)("cdkDragData",r)("removable",o.removable),n.xp6(1),n.Q6J("ngIf",o.removable),n.xp6(1),n.ekj("cursor-pointer",o.readonly&&void 0!==o.attribute.displayName),n.xp6(1),n.hij(" ",r," "),n.xp6(1),n.Q6J("ngIf",o.removable),n.xp6(1),n.Q6J("ngIf",o.removable)}}function b(t,e){1&t&&(n.TgZ(0,"mat-icon"),n._uU(1,"more_horiz"),n.qZA())}function w(t,e){1&t&&(n.TgZ(0,"mat-icon"),n._uU(1,"keyboard_arrow_up"),n.qZA())}function A(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"div",12),n.TgZ(1,"span",13),n.TgZ(2,"button",14),n.NdJ("click",function(){return n.CHM(i),n.oxw().onShowChange()}),n.YNc(3,b,2,0,"mat-icon",15),n.YNc(4,w,2,0,"mat-icon",15),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=n.oxw();n.xp6(1),n.Q6J("matTooltip",r.showMore?"Show less":"Show more")("matTooltipPosition","above"),n.xp6(2),n.Q6J("ngIf",!r.showMore),n.xp6(1),n.Q6J("ngIf",r.showMore)}}function k(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-form-field",12),n.TgZ(1,"input",16),n.NdJ("matChipInputTokenEnd",function(t){return n.CHM(i),n.oxw().add(t)})("change",function(){return n.CHM(i),n.oxw()._sendEventToParent()}),n.qZA(),n.qZA()}if(2&t){var r=n.oxw(),o=n.MAs(2);n.xp6(1),n.Q6J("matChipInputFor",o)("matChipInputSeparatorKeyCodes",r.separatorKeysCodes)("matChipInputAddOnBlur",r.addOnBlur)}}var C=function(){var t=function(){function t(e){_classCallCheck(this,t),this.dialog=e,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[r.K5,r.OC],this.values=[],this.showMore=!1,this.defaultItemsShown=5,this.sendEventToParent=new n.vpe,this.readonly=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.removable=!(0,s.Hm)(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=Object.values(this.attribute.value),this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,s.Hm)(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}},{key:"add",value:function(t){var e=t.input,i=t.value;(i||"").trim()&&(this.attribute.value.push(i.trim()),this.values=Object.values(this.attribute.value),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),e&&(e.value=""),this.sendEventToParent.emit()}},{key:"remove",value:function(t){var e=this,i=(0,s.kZ)();i.width="400px",i.data={name:t},this.dialog.open(a.Wr,i).afterClosed().subscribe(function(i){if(i){var n=e.attribute.value.indexOf(t);e.attribute.value.splice(n,1),e.values=Object.values(e.attribute.value),e.sendEventToParent.emit()}})}},{key:"drop",value:function(t){this.dragDisabled=!0,(0,o.bA)(this.attribute.value,t.previousIndex,t.currentIndex),this.values=Object.values(this.attribute.value)}},{key:"edit",value:function(t){var e=this,i=this.attribute.value.indexOf(t),n=(0,s.kZ)();n.width="600px",n.data={attribute:this.attribute,index:i},this.dialog.open(a.r2,n).afterClosed().subscribe(function(t){t&&(e.values=Object.values(e.attribute.value),e.sendEventToParent.emit())})}},{key:"showValue",value:function(t,e){var i=(0,s.kZ)();i.width="350px",i.data={value:t,title:e},this.dialog.open(a.mk,i)}},{key:"setItemsShown",value:function(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}},{key:"onShowChange",value:function(){this.showMore=!this.showMore,this.setItemsShown()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(c.uw))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"mat-chip-list",0,1),n.NdJ("cdkDropListDropped",function(t){return e.drop(t),e._sendEventToParent()}),n.YNc(3,_,6,9,"mat-chip",2),n.YNc(4,A,5,4,"div",3),n.YNc(5,k,2,3,"mat-form-field",3),n.qZA(),n.qZA()),2&t&&(n.xp6(1),n.Q6J("cdkDropListDisabled",e.dragDisabled),n.xp6(2),n.Q6J("ngForOf",e.values.slice(0,e.itemsShown)),n.xp6(1),n.Q6J("ngIf",e.values.length>e.defaultItemsShown),n.xp6(1),n.Q6J("ngIf",!e.readonly))},directives:[u.qn,o.Wj,l.sg,l.O5,u.HS,o.Zt,h.Hw,d.gM,f.lW,p.KE,g.Nt,u.oH],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%], .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}.edit-delete-icon[_ngcontent-%COMP%], .handle-icon[_ngcontent-%COMP%]{justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),t}()},22230:function(t,e,i){"use strict";i.d(e,{$:function(){return b}});var n=i(6527),r=i(84140),o=i(31572),a=i(84608),s=i(16073),c=i(61511),u=i(36922),l=i(66283),h=i(80340),d=i(15980),f=i(43691);function p(t,e){if(1&t){var i=o.EpF();o.TgZ(0,"button",15),o.NdJ("click",function(){o.CHM(i);var t=o.oxw().index;return o.oxw().removeValue(t)}),o.TgZ(1,"mat-icon"),o._uU(2," indeterminate_check_box "),o.qZA(),o.qZA()}}function g(t,e){if(1&t){var i=o.EpF();o.TgZ(0,"div",9),o.TgZ(1,"mat-form-field",10),o._UZ(2,"label",11),o.TgZ(3,"input",12),o.NdJ("click",function(){var t=o.CHM(i).index,e=o.oxw();return e.readonly&&e.attribute.displayName&&e.showValue(e.keys[t],e.attribute.displayName)})("ngModelChange",function(t){var e=o.CHM(i).index;return o.oxw().keys[e]=t}),o.qZA(),o.qZA(),o.TgZ(4,"mat-form-field",10),o._UZ(5,"label",11),o.TgZ(6,"input",13),o.NdJ("click",function(){var t=o.CHM(i).$implicit,e=o.oxw();return e.readonly&&void 0!==e.attribute.displayName&&e.showValue(t,e.attribute.displayName)})("ngModelChange",function(t){var e=o.CHM(i).index;return o.oxw().values[e]=t}),o.qZA(),o.qZA(),o.YNc(7,p,3,0,"button",14),o.qZA()}if(2&t){var n=e.index,r=o.oxw();o.xp6(1),o.s9C("appearance",r.readonly?"none":"standard"),o.xp6(1),o.hYB("for","",r.attribute.id,"-key-",n,""),o.xp6(1),o.ekj("cursor-pointer",r.readonly&&void 0!==r.attribute.displayName),o.hYB("id","",r.attribute.id,"-key-",n,""),o.MGl("name","key-",n,""),o.Q6J("ngModel",r.keys[n])("readonly",r.readonly),o.xp6(1),o.s9C("appearance",r.readonly?"none":"standard"),o.xp6(1),o.hYB("for","",r.attribute.id,"-value-",n,""),o.xp6(1),o.ekj("cursor-pointer",r.readonly&&void 0!==r.attribute.displayName),o.MGl("name","value-",n,""),o.hYB("id","",r.attribute.id,"-value-",n,""),o.Q6J("readonly",r.readonly)("ngModel",r.values[n]),o.xp6(1),o.Q6J("ngIf",!r.readonly)}}function m(t,e){1&t&&(o.TgZ(0,"mat-icon"),o._uU(1,"more_horiz"),o.qZA())}function v(t,e){1&t&&(o.TgZ(0,"mat-icon"),o._uU(1,"keyboard_arrow_up"),o.qZA())}function y(t,e){if(1&t){var i=o.EpF();o.TgZ(0,"button",16),o.NdJ("click",function(){return o.CHM(i),o.oxw().onShowChange()}),o.YNc(1,m,2,0,"mat-icon",17),o.YNc(2,v,2,0,"mat-icon",17),o.qZA()}if(2&t){var n=o.oxw();o.xp6(1),o.Q6J("ngIf",!n.showMore),o.xp6(1),o.Q6J("ngIf",n.showMore)}}function _(t,e){if(1&t){var i=o.EpF();o.TgZ(0,"button",18),o.NdJ("click",function(){return o.CHM(i),o.oxw().addValue()}),o.TgZ(1,"mat-icon"),o._uU(2," add_box "),o.qZA(),o.qZA()}}var b=function(){var t=function(){function t(e){_classCallCheck(this,t),this.dialog=e,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}return _createClass(t,[{key:"ngOnInit",value:function(){if(this.attribute.value)for(var t=this.attribute.value,e=0,i=Object.entries(t);ethis.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}},{key:"removeValue",value:function(t){this.keys.splice(t,1),this.values.splice(t,1)}},{key:"updateAttribute",value:function(){for(var t={},e=0;ee.defaultItemsShown),o.xp6(1),o.Q6J("ngIf",!e.readonly))},directives:[s._Y,s.JL,s.F,c.sg,u.gM,c.O5,l.KE,h.Nt,s.Fj,s.Q7,s.JJ,s.On,d.lW,f.Hw],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}"]}),t}()},33596:function(t,e,i){"use strict";i.d(e,{_:function(){return h}});var n=i(31572),r=i(84140),o=i(6527),a=i(84608),s=i(66283),c=i(80340),u=i(16073),l=i(82877),h=function(){var t=function(){function t(e){_classCallCheck(this,t),this.dialog=e,this.readonly=!1,this.sendEventToParent=new n.vpe}return _createClass(t,[{key:"ngOnInit",value:function(){this.value=this.attribute.value,this.readonly||(this.readonly=(0,r.Hm)(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}},{key:"showValue",value:function(t,e){var i=(0,r.kZ)();i.width="350px",i.data={value:t,title:e},this.dialog.open(o.mk,i)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(a.uw))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n.TgZ(1,"input",1),n.NdJ("click",function(){return e.readonly&&void 0!==e.value&&e.showValue(e.value,e.attribute.displayName)})("ngModelChange",function(t){return e.attribute.value=t})("keydown",function(){return e._sendEventToParent()}),n.ALo(2,"multiWordDataCy"),n.qZA(),n.qZA()),2&t&&(n.s9C("appearance",e.readonly?"none":"standard"),n.xp6(1),n.ekj("cursor-pointer",e.readonly&&void 0!==e.value),n.Q2q("data-cy","",n.lcZ(2,6,e.attribute.displayName),"-value"),n.Q6J("readonly",e.readonly)("ngModel",e.attribute.value))},directives:[s.KE,c.Nt,u.Fj,u.JJ,u.On],pipes:[l.R],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),t}()},51556:function(t,e,i){"use strict";i.d(e,{M:function(){return A}});var n=i(31572),r=i(22230),o=i(61511),a=i(76021),s=i(84584),c=i(33596),u=i(84140),l=i(6527),h=i(84608),d=i(66283),f=i(80340),p=i(16073),g=function(){var t=function(){function t(e){_classCallCheck(this,t),this.dialog=e,this.readonly=!1,this.sendEventToParent=new n.vpe}return _createClass(t,[{key:"ngOnInit",value:function(){this.readonly||(this.readonly=(0,u.Hm)(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}},{key:"showValue",value:function(t){var e=(0,u.kZ)();e.width="350px",e.data={value:t.value,title:t.displayName},this.dialog.open(l.mk,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(h.uw))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n.TgZ(1,"input",1),n.NdJ("click",function(){return e.readonly&&void 0!==e.attribute.value&&e.showValue(e.attribute)})("ngModelChange",function(t){return e.attribute.value=t})("keydown",function(){return e._sendEventToParent()}),n.qZA(),n.qZA()),2&t&&(n.s9C("appearance",e.readonly?"none":"standard"),n.xp6(1),n.ekj("cursor-pointer",e.readonly&&void 0!==e.attribute.value),n.Q6J("readonly",e.readonly)("ngModel",e.attribute.value))},directives:[d.KE,f.Nt,p.wV,p.Fj,p.JJ,p.On],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t}(),m=["map"];function v(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-boolean",3),n.NdJ("sendEventToParent",function(){return n.CHM(i),n.oxw()._sendEventToParent2()}),n.qZA()}if(2&t){var r=n.oxw();n.Q6J("attribute",r.attribute)("readonly",r.readonly)}}function y(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-list",3),n.NdJ("sendEventToParent",function(){return n.CHM(i),n.oxw()._sendEventToParent2()}),n.qZA()}if(2&t){var r=n.oxw();n.Q6J("attribute",r.attribute)("readonly",r.readonly)}}function _(t,e){if(1&t&&n._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&t){var i=n.oxw();n.Q6J("attribute",i.attribute)("readonly",i.readonly)}}function b(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-string",3),n.NdJ("sendEventToParent",function(){return n.CHM(i),n.oxw()._sendEventToParent2()}),n.qZA()}if(2&t){var r=n.oxw();n.Q6J("attribute",r.attribute)("readonly",r.readonly)}}function w(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"perun-web-apps-attribute-value-integer",3),n.NdJ("sendEventToParent",function(){return n.CHM(i),n.oxw()._sendEventToParent2()}),n.qZA()}if(2&t){var r=n.oxw();n.Q6J("attribute",r.attribute)("readonly",r.readonly)}}var A=function(){var t=function(){function t(){_classCallCheck(this,t),this.readonly=!1,this.sendEventToParent2=new n.vpe}return _createClass(t,[{key:"updateMapAttribute",value:function(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}},{key:"_sendEventToParent2",value:function(){this.sendEventToParent2.emit()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(t,e){var i;(1&t&&n.Gf(m,5),2&t)&&(n.iGM(i=n.CRH())&&(e.mapComponent=i.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(t,e){1&t&&(n.TgZ(0,"div"),n.YNc(1,v,1,2,"perun-web-apps-attribute-value-boolean",0),n.YNc(2,y,1,2,"perun-web-apps-attribute-value-list",0),n.TgZ(3,"div",1),n.NdJ("click",function(){return e._sendEventToParent2()}),n.YNc(4,_,2,2,"perun-web-apps-attribute-value-map",2),n.qZA(),n.YNc(5,b,1,2,"perun-web-apps-attribute-value-string",0),n.YNc(6,w,1,2,"perun-web-apps-attribute-value-integer",0),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf","java.lang.Boolean"===e.attribute.type),n.xp6(1),n.Q6J("ngIf","java.util.ArrayList"===e.attribute.type),n.xp6(2),n.Q6J("ngIf","java.util.LinkedHashMap"===e.attribute.type),n.xp6(1),n.Q6J("ngIf","java.lang.String"===e.attribute.type||"java.lang.LargeString"===e.attribute.type),n.xp6(1),n.Q6J("ngIf","java.lang.Integer"===e.attribute.type))},directives:[o.O5,a.u,s.H,r.$,c._,g],styles:[""]}),t}()},41186:function(t,e,i){"use strict";i.d(e,{p:function(){return P}});var n=i(58623),r=i(67033),o=i(4230),a=i(51556),s=i(84140),c=i(68416),u=i(31572),l=i(82819),h=i(61511),d=i(29236),f=i(36922),p=i(39571),g=i(82877),m=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){return"virt"===t.namespace.split(":")[4]}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=u.Yjl({name:"isVirtualAttribute",type:t,pure:!0}),t}(),v=i(48160);function y(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"th",17),u.TgZ(1,"mat-checkbox",18),u.NdJ("change",function(t){u.CHM(i);var e=u.oxw();return t?e.masterToggle():null}),u.qZA(),u.qZA()}if(2&t){var n=u.oxw();u.xp6(1),u.Q6J("checked",n.selection.hasValue()&&n.isAllSelected())("indeterminate",n.selection.hasValue()&&!n.isAllSelected())("aria-label",n.checkboxLabel())}}function _(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"td",19),u.TgZ(1,"mat-checkbox",20),u.NdJ("click",function(t){return t.stopPropagation()})("change",function(t){var e=u.CHM(i).$implicit,n=u.oxw();return t?n.selection.toggle(e):null}),u.ALo(2,"multiWordDataCy"),u.ALo(3,"isVirtualAttribute"),u.qZA(),u.qZA()}if(2&t){var n=e.$implicit,r=u.oxw();u.xp6(1),u.Q2q("data-cy","",u.lcZ(2,4,n.displayName),"-checkbox"),u.Q6J("checked",r.selection.isSelected(n))("disabled",u.lcZ(3,6,n)||!n.writable)("aria-label",r.checkboxLabel(n))}}function b(t,e){1&t&&(u.TgZ(0,"th",21),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")," "))}function w(t,e){if(1&t&&(u.TgZ(0,"td",22),u._uU(1),u.qZA()),2&t){var i=e.$implicit;u.xp6(1),u.Oqu(i.id)}}function A(t,e){1&t&&(u.TgZ(0,"th",21),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")," "))}function k(t,e){if(1&t&&(u.TgZ(0,"td",23),u.TgZ(1,"div",24),u._uU(2),u.qZA(),u.qZA()),2&t){var i=e.$implicit,n=u.oxw();u.xp6(1),u.s9C("matTooltip",n.getAttributeFullName(i)),u.xp6(1),u.hij(" ",i.displayName," ")}}function C(t,e){1&t&&(u.TgZ(0,"th",25),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")," "))}function T(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"td",23),u.TgZ(1,"perun-web-apps-attribute-value",26),u.NdJ("sendEventToParent2",function(){var t=u.CHM(i).$implicit;return u.oxw().onValueChange(t)}),u.qZA(),u.qZA()}if(2&t){var n=e.$implicit,r=u.oxw();u.xp6(1),u.Q6J("attribute",n)("readonly",r.readonly||!n.writable)}}function E(t,e){1&t&&(u.TgZ(0,"th",21),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")," "))}function S(t,e){if(1&t&&(u.TgZ(0,"td",23),u._uU(1),u.qZA()),2&t){var i=e.$implicit;u.xp6(1),u.Oqu(i.description)}}function I(t,e){1&t&&u._UZ(0,"tr",27)}function R(t,e){if(1&t&&(u._UZ(0,"tr",28),u.ALo(1,"translate")),2&t){var i=e.$implicit,n=u.oxw();u.s9C("matTooltip",u.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),u.Q6J("matTooltipPosition","before")("matTooltipDisabled",i.writable||n.readonly)}}function x(t,e){1&t&&(u.TgZ(0,"app-alert",29),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function O(t,e){if(1&t&&(u.TgZ(0,"app-alert",29),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t){var i=u.oxw();u.xp6(1),u.hij(" ",u.lcZ(2,1,i.emptyListText),"\n")}}var P=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.authResolver=e,this.tableCheckbox=i,this.attributes=[],this.selection=new o.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=s.f7}return _createClass(t,[{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.dataSource=new r.by((0,s.MX)(this.attributes)),this.setDataSource()}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}},{key:"getDataForColumn",value:function(t,e){switch(e){case"id":return t.id.toString();case"displayName":return t.displayName;case"description":return t.description;case"value":return JSON.stringify(t.value);case"urn":return t.namespace+":"+t.baseFriendlyName;default:return""}}},{key:"exportData",value:function(t){(0,s.O6)((0,s.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.displayedColumns=this.displayedColumns.filter(function(e){return!t.hiddenColumns.includes(e)}),this.dataSource&&(this.dataSource.filterPredicate=function(e,i){return(0,s.Sd)(e,i,t.displayedColumns.concat("urn"),t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return(0,s.pR)(e,i,t.getDataForColumn,t)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}},{key:"isAllSelected",value:function(){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)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"updateMapAttributes",value:function(){var t,e=_createForOfIteratorHelper(this.items.toArray());try{for(e.s();!(t=e.n()).done;){var i=t.value;"java.util.LinkedHashMap"===i.attribute.type&&i.updateMapAttribute()}}catch(n){e.e(n)}finally{e.f()}}},{key:"onValueChange",value:function(t){this.canBeSelected(t)&&this.selection.select(t)}},{key:"canBeSelected",value:function(t){return!(0,s.Hm)(t)&&t.writable}},{key:"getAttributeFullName",value:function(t){return"".concat(t.namespace,":").concat(t.friendlyName)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Y36(c.x4),u.Y36(c.UA))},t.\u0275cmp=u.Xpm({type:t,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(t,e){var i;(1&t&&(u.Gf(n.YE,7),u.Gf(s.l9,7),u.Gf(a.M,5)),2&t)&&(u.iGM(i=u.CRH())&&(e.matSort=i.first),u.iGM(i=u.CRH())&&(e.child=i.first),u.iGM(i=u.CRH())&&(e.items=i))},inputs:{attributes:"attributes",selection:"selection",displayedColumns:"displayedColumns",inDialog:"inDialog",filterValue:"filterValue",tableId:"tableId",readonly:"readonly",hiddenColumns:"hiddenColumns",emptyListText:"emptyListText"},features:[u.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(t,e){1&t&&(u.TgZ(0,"div",0),u.TgZ(1,"perun-web-apps-table-wrapper",1),u.NdJ("exportData",function(t){return e.exportData(t)}),u.TgZ(2,"table",2),u.ynx(3,3),u.YNc(4,y,2,3,"th",4),u.YNc(5,_,4,8,"td",5),u.BQk(),u.ynx(6,6),u.YNc(7,b,3,3,"th",7),u.YNc(8,w,2,1,"td",8),u.BQk(),u.ynx(9,9),u.YNc(10,A,3,3,"th",7),u.YNc(11,k,3,2,"td",10),u.BQk(),u.ynx(12,11),u.YNc(13,C,3,3,"th",12),u.YNc(14,T,2,2,"td",10),u.BQk(),u.ynx(15,13),u.YNc(16,E,3,3,"th",7),u.YNc(17,S,2,1,"td",10),u.BQk(),u.YNc(18,I,1,0,"tr",14),u.YNc(19,R,2,5,"tr",15),u.qZA(),u.qZA(),u.qZA(),u.YNc(20,x,3,3,"app-alert",16),u.YNc(21,O,3,3,"app-alert",16)),2&t&&(u.Q6J("hidden",0===e.dataSource.filteredData.length),u.xp6(1),u.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),u.xp6(1),u.Q6J("dataSource",e.dataSource),u.xp6(16),u.Q6J("matHeaderRowDef",e.displayedColumns),u.xp6(1),u.Q6J("matRowDefColumns",e.displayedColumns),u.xp6(1),u.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.dataSource.data.length),u.xp6(1),u.Q6J("ngIf",0===e.dataSource.data.length))},directives:[l.l,r.BZ,n.YE,r.w1,r.fO,r.Dz,r.as,r.nj,h.O5,r.ge,d.oG,r.ev,n.nU,f.gM,a.M,r.XQ,r.Gk,p.w],pipes:[g.R,m,v.X$],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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important} .urn-tooltip{max-width:800px!important}"]}),t}()},66297:function(t,e,i){"use strict";i.d(e,{W:function(){return h}});var n=i(68416),r=i(31572),o=i(61511),a=i(15980),s=i(36922),c=i(43691),u=i(48160),l=function(t){return{color:t}},h=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.location=e,this.storeService=i}return _createClass(t,[{key:"ngOnInit",value:function(){this.backButtonColor=this.storeService.get("theme","back_button_color")}},{key:"goBack",value:function(){"false"===sessionStorage.getItem("onInitPage")&&this.location.back()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(o.Ye),r.Y36(n.d6))},t.\u0275cmp=r.Xpm({type:t,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(t,e){1&t&&(r.TgZ(0,"button",0),r.NdJ("click",function(){return e.goBack()}),r.ALo(1,"translate"),r.TgZ(2,"mat-icon",1),r._uU(3,"arrow_right_alt"),r.qZA(),r.qZA()),2&t&&(r.s9C("matTooltip",r.lcZ(1,2,"Back")),r.Q6J("ngStyle",r.VKq(4,l,e.backButtonColor)))},directives:[a.lW,o.PC,s.gM,c.Hw],pipes:[u.X$],styles:[".rotate[_ngcontent-%COMP%]{transform:rotate(180deg) scale(1.5)}"]}),t}()},43005:function(t,e,i){"use strict";i.d(e,{r:function(){return p}});var n=i(31572),r=i(16073),o=i(68416),a=i(66283),s=i(80340),c=i(61511),u=i(29236),l=i(37665),h=i(48160);function d(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-checkbox",7),n.NdJ("change",function(){return n.CHM(i),n.oxw().emitAsSubGroup()})("ngModelChange",function(t){return n.CHM(i),n.oxw().asSubgroup=t}),n._uU(1),n.ALo(2,"translate"),n.qZA()}if(2&t){var r=n.oxw();n.Q6J("labelPosition","before")("ngModel",r.asSubgroup),n.xp6(1),n.hij(" ",n.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function f(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"perun-web-apps-group-search-select",8),n.NdJ("groupSelected",function(t){return n.CHM(i),n.oxw().emitParentGroup(t)}),n.qZA()}if(2&t){var r=n.oxw();n.Q6J("disableAutoSelect",!0)("groups",r.voGroups)}}var p=function(){var t=function(){function t(e){_classCallCheck(this,t),this.store=e,this.parentGroup=null,this.voGroups=[],this.asSubgroup=!1,this.invalidNameMessage=this.store.get("group_name_error_message"),this.secondaryRegex=this.store.get("group_name_secondary_regex"),this.nameChanged=new n.vpe,this.descriptionChanged=new n.vpe,this.parentGroupChanged=new n.vpe,this.asSubgroupChanged=new n.vpe}return _createClass(t,[{key:"ngOnInit",value:function(){this.isNotSubGroup=null===this.parentGroup,this.nameControl=new r.NI("",[r.kI.required,r.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),r.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new r.NI("",[r.kI.required,r.kI.maxLength(129)]),this.selectedParent=null,this.voGroups=this.voGroups.filter(function(t){return"members"!==t.name})}},{key:"emitName",value:function(){this.nameChanged.emit(this.nameControl.invalid?"":this.nameControl.value)}},{key:"emitDescription",value:function(){this.descriptionChanged.emit(this.descriptionControl.invalid?"":this.descriptionControl.value)}},{key:"emitParentGroup",value:function(t){this.selectedParent=t,this.parentGroupChanged.emit(t)}},{key:"emitAsSubGroup",value:function(){this.asSubgroup||this.emitParentGroup(null),this.asSubgroupChanged.emit(this.asSubgroup)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(o.d6))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"mat-form-field",1),n.NdJ("keyup",function(){return e.emitName()}),n.TgZ(2,"label",2),n._UZ(3,"input",3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"mat-error"),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.qZA(),n.TgZ(8,"mat-form-field",4),n.NdJ("keyup",function(){return e.emitDescription()}),n.TgZ(9,"label",2),n._UZ(10,"textarea",3),n.ALo(11,"translate"),n.qZA(),n.TgZ(12,"mat-error"),n._uU(13),n.ALo(14,"translate"),n.qZA(),n.qZA(),n.YNc(15,d,3,5,"mat-checkbox",5),n.YNc(16,f,1,2,"perun-web-apps-group-search-select",6),n.qZA()),2&t&&(n.xp6(3),n.s9C("placeholder",n.lcZ(4,8,"DIALOGS.CREATE_GROUP.NAME")),n.Q6J("formControl",e.nameControl),n.xp6(3),n.hij(" ",e.invalidNameMessage.length?e.invalidNameMessage:n.lcZ(7,10,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),n.xp6(4),n.s9C("placeholder",n.lcZ(11,12,"DIALOGS.CREATE_GROUP.DESCRIPTION")),n.Q6J("formControl",e.descriptionControl),n.xp6(3),n.hij(" ",n.lcZ(14,14,"DIALOGS.CREATE_GROUP.INVALID_DESCRIPTION")," "),n.xp6(2),n.Q6J("ngIf",e.isNotSubGroup),n.xp6(1),n.Q6J("ngIf",e.asSubgroup))},directives:[a.KE,s.Nt,r.Fj,r.Q7,r.JJ,r.oH,a.TO,c.O5,u.oG,r.On,l.h],pipes:[h.X$],styles:[""]}),t}()},51613:function(t,e,i){"use strict";i.d(e,{S:function(){return u}});var n=i(31572),r=i(66283),o=i(80340),a=i(15812),s=i(16073),c=i(48160),u=function(){var t=function(){function t(){_classCallCheck(this,t),this.datePicker=new n.vpe}return _createClass(t,[{key:"ngOnInit",value:function(){this.startMinDate=new Date(2e3,0,1),this.endMaxDate=new Date,this.startMaxDate=this.endDate.value,this.endMinDate=this.startDate.value}},{key:"dateChange",value:function(){this.datePicker.emit(),this.startMaxDate=this.endDate.value,this.endMinDate=this.startDate.value}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,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(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-form-field",0),n.NdJ("click",function(){return n.CHM(i),n.MAs(7).open()}),n.TgZ(1,"mat-label"),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"input",1),n.NdJ("dateChange",function(){return e.dateChange()}),n.qZA(),n._UZ(5,"mat-datepicker-toggle",2),n._UZ(6,"mat-datepicker",null,3),n.qZA(),n.TgZ(8,"mat-form-field",4),n.NdJ("click",function(){return n.CHM(i),n.MAs(15).open()}),n.TgZ(9,"mat-label"),n._uU(10),n.ALo(11,"translate"),n.qZA(),n.TgZ(12,"input",1),n.NdJ("dateChange",function(){return e.dateChange()}),n.qZA(),n._UZ(13,"mat-datepicker-toggle",2),n._UZ(14,"mat-datepicker",null,5),n.qZA()}if(2&t){var r=n.MAs(7),o=n.MAs(15);n.xp6(2),n.Oqu(n.lcZ(3,12,"VO_DETAIL.APPLICATION.DATE.START")),n.xp6(2),n.Q6J("matDatepicker",r)("min",e.startMinDate)("max",e.startMaxDate)("formControl",e.startDate),n.xp6(1),n.Q6J("for",r),n.xp6(5),n.Oqu(n.lcZ(11,14,"VO_DETAIL.APPLICATION.DATE.END")),n.xp6(2),n.Q6J("matDatepicker",o)("min",e.endMinDate)("max",e.endMaxDate)("formControl",e.endDate),n.xp6(1),n.Q6J("for",o)}},directives:[r.KE,r.hX,o.Nt,a.hl,s.Fj,s.JJ,s.oH,a.nW,r.R9,a.Mq],pipes:[c.X$],styles:[""]}),t}()},91058:function(t,e,i){"use strict";i.d(e,{P:function(){return d}});var n=i(31572),r=i(87254),o=i(79996),a=i(47701),s=i(98720),c=i(66283),u=i(80340),l=i(48160),h=["groupFilterInput"],d=function(){var t=function(){function t(){_classCallCheck(this,t),this.filter=new n.vpe}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;(0,r.R)(this.groupFilterInput.nativeElement,"keyup").pipe((0,o.U)(function(t){return t.target.value}),(0,a.b)(500),(0,s.x)()).subscribe(function(e){t.filter.emit(e)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(t,e){var i;(1&t&&n.Gf(h,7),2&t)&&(n.iGM(i=n.CRH())&&(e.groupFilterInput=i.first))},inputs:{placeholder:"placeholder"},outputs:{filter:"filter"},decls:4,vars:3,consts:[[1,"filter-field","mr-2"],["matInput","",3,"placeholder"],["groupFilterInput",""]],template:function(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n._UZ(1,"input",1,2),n.ALo(3,"translate"),n.qZA()),2&t&&(n.xp6(1),n.s9C("placeholder",n.lcZ(3,1,e.placeholder)))},directives:[c.KE,u.Nt],pipes:[l.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),t}()},44973:function(t,e,i){"use strict";i.d(e,{i:function(){return w}});var n=i(31572),r=i(16073),o=i(66994),a=i(55959),s=i(25416),c=i(96577),u=i(66283),l=i(4786),h=i(61511),d=i(71522),f=i(30146),p=i(4253),g=["scrollViewport"];function m(t,e){if(1&t&&(n.TgZ(0,"mat-select-trigger"),n._uU(1),n.qZA()),2&t){var i=n.oxw();n.xp6(1),n.hij(" ",i.multipleSelectedText()," ")}}function v(t,e){if(1&t&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&t){var i=n.oxw(2);n.Tol(i.colorByStatus(null==i.entitiesCtrl?null:i.entitiesCtrl.value)),n.xp6(1),n.hij(" ",i.statusTextFunction(null==i.entitiesCtrl?null:i.entitiesCtrl.value)?"("+i.statusTextFunction(null==i.entitiesCtrl?null:i.entitiesCtrl.value)+")":""," ")}}function y(t,e){if(1&t&&(n.TgZ(0,"mat-option",8),n._uU(1),n.TgZ(2,"span",9),n._uU(3),n.qZA(),n.YNc(4,v,2,4,"span",10),n.qZA()),2&t){var i=n.oxw();n.Q6J("value",null==i.entitiesCtrl?null:i.entitiesCtrl.value),n.xp6(1),n.hij(" ",i.mainTextFunction(null==i.entitiesCtrl?null:i.entitiesCtrl.value)," "),n.xp6(2),n.Oqu(i.secondaryTextFunction(null==i.entitiesCtrl?null:i.entitiesCtrl.value)),n.xp6(1),n.Q6J("ngIf",i.displayStatus)}}function _(t,e){if(1&t&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&t){var i=n.oxw().$implicit,r=n.oxw();n.Tol(r.colorByStatus(i)),n.xp6(1),n.hij(" ",r.statusTextFunction(i)?"("+r.statusTextFunction(i)+")":""," ")}}function b(t,e){if(1&t&&(n.TgZ(0,"mat-option",11),n._uU(1),n.TgZ(2,"span",9),n._uU(3),n.qZA(),n.YNc(4,_,2,4,"span",10),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.Tol(r.theme),n.Q6J("value",i),n.xp6(1),n.hij(" ",r.mainTextFunction(i)," "),n.xp6(2),n.Oqu(r.secondaryTextFunction(i)),n.xp6(1),n.Q6J("ngIf",r.displayStatus)}}var w=function(){var t=function(){function t(e){_classCallCheck(this,t),this.cd=e,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 n.vpe,this.entitiesCtrl=new r.NI,this.entityFilterCtrl=new r.NI,this.filteredEntities=new o.t(1),this.entitiesLen=0,this._onDestroy=new a.xQ,this.mainTextFunction=function(t){return(0,c.stringify)(t)},this.secondaryTextFunction=function(t){return"#"+t.id+(t.description?" "+t.description:"")},this.statusTextFunction=function(t){return t.status}}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.entitiesCtrl.valueChanges.subscribe(function(e){return t.entitySelected.emit(e)}),this.disableAutoSelect||null!==this.entity||this.entitiesCtrl.setValue(this.entities[0]),this.filteredEntities.subscribe(function(e){return t.entitiesLen=e.length}),this.entityFilterCtrl.valueChanges.pipe((0,s.R)(this._onDestroy)).subscribe(function(){t.filterEntites()}),null!==this.entity&&this.entitiesCtrl.setValue(this.entity)}},{key:"colorByStatus",value:function(t){switch(t.status){case"ACTIVE":return"green";case"INACTIVE":return"grey";case"FAILED":return"red";case"PROCESSING":return"black"}}},{key:"ngOnChanges",value:function(t){null!==this.entity&&this.entitiesCtrl.setValue(this.entity),t.entities&&this.filteredEntities.next(this.entities.slice())}},{key:"ngOnDestroy",value:function(){this._onDestroy.next(),this._onDestroy.complete()}},{key:"filterEntites",value:function(){var t=this;if(this.entities){var e=this.entityFilterCtrl.value;if(!e)return this.filteredEntities.next(this.entities.slice()),void this.cd.detectChanges();e=this.normalize(e),this.filteredEntities.next(this.entities.filter(function(i){return t.normalize(t.searchFunction(i)).indexOf(e)>=0})),this.cd.detectChanges()}}},{key:"normalize",value:function(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}},{key:"openChange",value:function(){this.scrollViewport.scrollToIndex(0),this.scrollViewport.checkViewportSize()}},{key:"getViewportHeight",value:function(){var t=48*this.entitiesLen;return t>192&&(t=192),this.scrollViewport&&this.scrollViewport.checkViewportSize(),t}},{key:"multipleSelectedText",value:function(){if(this.entitiesCtrl.value&&0!==this.entitiesCtrl.value.length)return this.entitiesCtrl.value.length===this.entities.length?"ALL":this.entitiesCtrl.value.length>1?this.mainTextFunction(this.entitiesCtrl.value[0])+" + ".concat(this.entitiesCtrl.value.length-1," other(s)"):this.mainTextFunction(this.entitiesCtrl.value[0])+" "+this.secondaryTextFunction(this.entitiesCtrl.value[0])}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-entity-search-select"]],viewQuery:function(t,e){var i;(1&t&&n.Gf(g,5),2&t)&&(n.iGM(i=n.CRH())&&(e.scrollViewport=i.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:[n.TTD],decls:10,vars:16,consts:[[1,"w-100"],[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(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n.TgZ(1,"mat-select",1),n.NdJ("openedChange",function(){return e.openChange()}),n.YNc(2,m,2,1,"mat-select-trigger",2),n.TgZ(3,"mat-option"),n._UZ(4,"ngx-mat-select-search",3),n.qZA(),n.YNc(5,y,5,4,"mat-option",4),n.TgZ(6,"cdk-virtual-scroll-viewport",5,6),n.YNc(8,b,5,7,"mat-option",7),n.ALo(9,"async"),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.xp6(1),n.s9C("placeholder",e.selectPlaceholder),n.Q6J("formControl",e.entitiesCtrl)("multiple",e.multiple),n.xp6(1),n.Q6J("ngIf",e.multiple),n.xp6(2),n.s9C("placeholderLabel",e.findPlaceholder),n.s9C("noEntriesFoundLabel",e.noEntriesText),n.Q6J("clearSearchInput",!1)("formControl",e.entityFilterCtrl),n.xp6(1),n.Q6J("ngIf",null==e.entitiesCtrl?null:e.entitiesCtrl.value),n.xp6(1),n.Udp("height",e.getViewportHeight(),"px"),n.Q6J("minBufferPx",240)("maxBufferPx",480),n.xp6(2),n.Q6J("cdkVirtualForOf",n.lcZ(9,14,e.filteredEntities)))},directives:[u.KE,l.gD,r.JJ,r.oH,h.O5,d.ey,f.nu,p.N7,p.xd,p.x0,l.$L],pipes:[h.Ov],styles:[".selected-options-bottom[_ngcontent-%COMP%]{visibility:hidden;position:absolute}.green[_ngcontent-%COMP%]{color:green}.grey[_ngcontent-%COMP%]{color:grey}.red[_ngcontent-%COMP%]{color:red}.black[_ngcontent-%COMP%]{color:#000}"]}),t}()},60007:function(t,e,i){"use strict";i.d(e,{X:function(){return J}});var n=i(58623),r=i(67033),o=i(84140),a=i(68416),s=i(31572),c=i(82819),u=i(61511),l=i(29236),h=i(72953),d=i(16073),f=i(36922),p=i(15980),g=i(43691);function m(t,e){if(1&t&&(s.TgZ(0,"div",6),s._uU(1),s.qZA()),2&t){var i=e.$implicit,n=s.oxw();s.xp6(1),s.hij(" ",i[n.paramName]," ")}}function v(t,e){1&t&&(s.TgZ(0,"mat-icon"),s._uU(1,"more_horiz"),s.qZA())}function y(t,e){1&t&&(s.TgZ(0,"mat-icon"),s._uU(1,"keyboard_arrow_up"),s.qZA())}function _(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"button",7),s.NdJ("click",function(){return s.CHM(i),s.oxw().onShowChange()}),s.YNc(1,v,2,0,"mat-icon",8),s.YNc(2,y,2,0,"mat-icon",8),s.qZA()}if(2&t){var n=s.oxw();s.xp6(1),s.Q6J("ngIf",!n.showMore),s.xp6(1),s.Q6J("ngIf",n.showMore)}}var b=function(){var t=function(){function t(){_classCallCheck(this,t),this.objects=[],this.filterValue="",this.paramName="",this.showMore=!1,this.defaultItemsShown=3}return _createClass(t,[{key:"ngOnInit",value:function(){this.itemsShown=this.defaultItemsShown}},{key:"ngOnChanges",value:function(){this.itemsShown=this.defaultItemsShown,this.showMore=!1}},{key:"onShowChange",value:function(){this.showMore=!this.showMore,this.itemsShown=this.showMore?this.objects.length:this.defaultItemsShown}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-object-list-values"]],inputs:{objects:"objects",filterValue:"filterValue",paramName:"paramName"},features:[s.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(t,e){1&t&&(s.TgZ(0,"form",0),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.YNc(3,m,2,1,"div",3),s.qZA(),s.TgZ(4,"div"),s.TgZ(5,"span",4),s.YNc(6,_,3,2,"button",5),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(3),s.Q6J("ngForOf",e.objects.slice(0,e.itemsShown)),s.xp6(2),s.Q6J("matTooltip",e.showMore?"Show less":"Show more")("matTooltipPosition","above"),s.xp6(1),s.Q6J("ngIf",e.objects.length>e.defaultItemsShown))},directives:[d._Y,d.JL,d.F,u.sg,f.gM,u.O5,p.lW,g.Hw],styles:[""]}),t}(),w=i(84534),A=i(57629),k=i(39571),C=i(48160),T=i(48853),E=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t,e,i){return t.filter(function(t){return t[i].includes(e)}).filter(function(t,e,n){return n.findIndex(function(e){return e[i]===t[i]})===e})}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"filterUniqueObjects",type:t,pure:!0}),t}();function S(t,e){1&t&&s._UZ(0,"th",20)}function I(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"td",21),s.TgZ(1,"mat-checkbox",22),s.NdJ("change",function(t){var e=s.CHM(i).$implicit,n=s.oxw();return t?n.selection.toggle(e):null})("click",function(t){return t.stopPropagation()}),s.qZA(),s.qZA()}if(2&t){var n=e.$implicit,r=s.oxw();s.xp6(1),s.Q6J("aria-label",r.checkboxLabel(n))("checked",r.selection.isSelected(n))}}function R(t,e){1&t&&(s.TgZ(0,"th",23),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.ID")," "))}function x(t,e){if(1&t&&(s.TgZ(0,"td",24),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.hij(" ",i.facility.id," ")}}function O(t,e){1&t&&s._UZ(0,"th",25)}function P(t,e){if(1&t&&(s.TgZ(0,"td",26),s._UZ(1,"perun-web-apps-recently-viewed-icon",27),s.qZA()),2&t){var i=e.$implicit,n=s.oxw();s.xp6(1),s.Q6J("id",i.facility.id)("recentIds",n.recentIds)}}function D(t,e){1&t&&(s.TgZ(0,"th",23),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.NAME")," "))}function M(t,e){if(1&t&&(s.TgZ(0,"td",26),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(i.facility.name)}}function L(t,e){1&t&&(s.TgZ(0,"th",25),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESCRIPTION")," "))}function N(t,e){if(1&t&&(s.TgZ(0,"td",26),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(i.facility.description)}}function z(t,e){1&t&&(s.TgZ(0,"th",25),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.TECHNICAL_OWNERS")," "))}function Z(t,e){if(1&t&&(s.TgZ(0,"td",26),s._uU(1),s.ALo(2,"technicalOwners"),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(s.lcZ(2,1,i.owners))}}function B(t,e){1&t&&(s.TgZ(0,"th",25),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESTINATIONS")," "))}function F(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"td",26),s.TgZ(1,"perun-web-apps-object-list-values",28),s.NdJ("mouseenter",function(){return s.CHM(i),s.oxw().disableRouting=!0})("mouseleave",function(){return s.CHM(i),s.oxw().disableRouting=!1}),s.ALo(2,"filterUniqueObjects"),s.qZA(),s.qZA()}if(2&t){var n=e.$implicit,r=s.oxw();s.xp6(1),s.Q6J("objects",s.Dn7(2,2,n.destinations,r.filterValue,"destination"))("paramName","destination")}}function H(t,e){1&t&&(s.TgZ(0,"th",25),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.HOSTS")," "))}function U(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"td",26),s.TgZ(1,"perun-web-apps-object-list-values",28),s.NdJ("mouseenter",function(){return s.CHM(i),s.oxw().disableRouting=!0})("mouseleave",function(){return s.CHM(i),s.oxw().disableRouting=!1}),s.ALo(2,"filterUniqueObjects"),s.qZA(),s.qZA()}if(2&t){var n=e.$implicit,r=s.oxw();s.xp6(1),s.Q6J("objects",s.Dn7(2,2,n.hosts,r.filterValue,"hostname"))("paramName","hostname")}}function q(t,e){1&t&&s._UZ(0,"tr",29)}var G=function(t){return["/facilities",t]},j=function(){return[]};function Y(t,e){if(1&t&&s._UZ(0,"tr",30),2&t){var i=e.$implicit,n=s.oxw();s.Q6J("perunWebAppsMiddleClickRouterLink",s.VKq(2,G,i.facility.id))("routerLink",n.disableRouting?s.DdM(4,j):s.VKq(5,G,i.facility.id))}}function K(t,e){1&t&&(s.TgZ(0,"app-alert",31),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function V(t,e){1&t&&(s.TgZ(0,"app-alert",31),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FACILITIES"),"\n"))}var J=function(){var t=function(){function t(e){_classCallCheck(this,t),this.authResolver=e,this.displayedColumns=["select","id","recent","name","description","technicalOwners","destinations","hosts"],this.pageSizeOptions=o.f7}return _createClass(t,[{key:"matSort",set:function(t){this.sort=t}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.setDataSource()}},{key:"getDataForColumn",value:function(t,e,i){switch(e){case"id":return t.facility.id.toString();case"name":return t.facility.name;case"description":return t.facility.description;case"technicalOwners":return(0,o.te)(t.owners);case"recent":return i.recentIds&&i.recentIds.indexOf(t.facility.id)>-1?"#".repeat(i.recentIds.indexOf(t.facility.id)):t.name;case"destinations":return t.destinations.map(function(t){return t.destination}).join(" ; ");case"hosts":return t.hosts.map(function(t){return t.hostname}).join(" ; ");default:return t[e]}}},{key:"exportData",value:function(t){(0,o.O6)((0,o.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource||(this.dataSource=new r.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=function(e,i){return(0,o.Sd)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return(0,o.pR)(e,i,t.getDataForColumn,t)}),this.dataSource.filter=this.filterValue,this.dataSource.data=this.facilities}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.dataSource.data.length}},{key:"masterToggle",value:function(){var t=this;this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(function(e){return t.selection.select(e)})}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.facility.id+1):(this.isAllSelected()?"select":"deselect")+" all"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(a.x4))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-facilities-list"]],viewQuery:function(t,e){var i;(1&t&&(s.Gf(n.YE,7),s.Gf(o.l9,7)),2&t)&&(s.iGM(i=s.CRH())&&(e.matSort=i.first),s.iGM(i=s.CRH())&&(e.child=i.first))},inputs:{facilities:"facilities",recentIds:"recentIds",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",selection:"selection",pageSizeOptions:"pageSizeOptions"},features:[s.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,"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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,S,1,0,"th",4),s.YNc(5,I,2,2,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,R,3,3,"th",7),s.YNc(8,x,2,1,"td",8),s.BQk(),s.ynx(9,9),s.YNc(10,O,1,0,"th",10),s.YNc(11,P,2,2,"td",11),s.BQk(),s.ynx(12,12),s.YNc(13,D,3,3,"th",7),s.YNc(14,M,2,1,"td",11),s.BQk(),s.ynx(15,13),s.YNc(16,L,3,3,"th",10),s.YNc(17,N,2,1,"td",11),s.BQk(),s.ynx(18,14),s.YNc(19,z,3,3,"th",10),s.YNc(20,Z,3,3,"td",11),s.BQk(),s.ynx(21,15),s.YNc(22,B,3,3,"th",10),s.YNc(23,F,3,6,"td",11),s.BQk(),s.ynx(24,16),s.YNc(25,H,3,3,"th",10),s.YNc(26,U,3,6,"td",11),s.BQk(),s.YNc(27,q,1,0,"tr",17),s.YNc(28,Y,1,7,"tr",18),s.qZA(),s.qZA(),s.qZA(),s.YNc(29,K,3,3,"app-alert",19),s.YNc(30,V,3,3,"app-alert",19)),2&t&&(s.Q6J("hidden",!e.dataSource||0===e.dataSource.filteredData.length||0===e.facilities.length),s.xp6(1),s.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),s.xp6(1),s.Q6J("dataSource",e.dataSource),s.xp6(25),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.facilities.length),s.xp6(1),s.Q6J("ngIf",0===e.facilities.length))},directives:[c.l,r.BZ,n.YE,r.w1,r.fO,r.Dz,r.as,r.nj,u.O5,r.ge,r.ev,l.oG,n.nU,h.W,b,r.XQ,r.Gk,w.YH,A.rH,k.w],pipes:[C.X$,T.J,E],styles:["tr[_ngcontent-%COMP%]{cursor:pointer}"]}),t}()},54930:function(t,e,i){"use strict";i.d(e,{i:function(){return k}});var n=i(31572),r=i(68416),o=i(61511),a=i(15980),s=i(81391),c=i(36922),u=i(43691),l=i(8055),h=i(48160),d=i(44385),f=i(52984),p=i(51392);function g(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"span",5),n.ALo(1,"translate"),n.ALo(2,"groupSyncToolTip"),n.TgZ(3,"button",6),n.NdJ("click",function(){return n.CHM(i),n.oxw(2).onSyncDetail()}),n.ALo(4,"groupSyncIcon"),n.TgZ(5,"mat-icon"),n.ALo(6,"groupSyncIconColor"),n._uU(7),n.ALo(8,"groupSyncIcon"),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=n.oxw(2);n.Q6J("matTooltipPosition","above")("matTooltip",n.lcZ(1,7,n.lcZ(2,9,r.group))),n.xp6(3),n.Q6J("disabled","sync_disabled"===n.lcZ(4,11,r.group)),n.xp6(2),n.Tol(n.lcZ(6,13,r.group)),n.xp6(2),n.hij(" ",n.lcZ(8,15,r.group)," ")}}function m(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"span",5),n.ALo(1,"translate"),n.TgZ(2,"button",6),n.NdJ("click",function(){return n.CHM(i),n.oxw(2).onMoveGroup()}),n.TgZ(3,"mat-icon"),n._uU(4,"arrow_right_alt"),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=n.oxw(2);n.s9C("matTooltip",n.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE")),n.Q6J("matTooltipPosition","above"),n.xp6(2),n.Q6J("disabled",r.disabled)}}function v(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"span",5),n.ALo(1,"translate"),n.TgZ(2,"button",6),n.NdJ("click",function(){return n.CHM(i),n.oxw(2).onChangeNameDescription()}),n.TgZ(3,"mat-icon"),n._uU(4,"text_format"),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=n.oxw(2);n.s9C("matTooltip",n.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME")),n.Q6J("matTooltipPosition","above"),n.xp6(2),n.Q6J("disabled",r.disabled)}}function y(t,e){if(1&t&&(n.TgZ(0,"div",2),n.TgZ(1,"button",3),n.ALo(2,"translate"),n.TgZ(3,"mat-icon"),n._uU(4," file_copy "),n.qZA(),n.qZA(),n.YNc(5,g,9,17,"span",4),n.YNc(6,m,5,5,"span",4),n.YNc(7,v,5,5,"span",4),n.qZA()),2&t){var i=n.oxw();n.xp6(1),n.s9C("matTooltip",n.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),n.Q6J("cdkCopyToClipboard",i.group.name)("matTooltipPosition","above"),n.xp6(4),n.Q6J("ngIf",i.syncAuth),n.xp6(1),n.Q6J("ngIf",i.moveAuth),n.xp6(1),n.Q6J("ngIf",i.editAuth)}}function _(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"button",11),n.NdJ("click",function(){return n.CHM(i),n.oxw(2).onSyncDetail()}),n.ALo(1,"groupSyncIcon"),n.TgZ(2,"mat-icon"),n.ALo(3,"groupSyncIconColor"),n._uU(4),n.ALo(5,"groupSyncIcon"),n.qZA(),n.TgZ(6,"span"),n._uU(7),n.ALo(8,"translate"),n.ALo(9,"groupSyncToolTip"),n.qZA(),n.qZA()}if(2&t){var r=n.oxw(2);n.Q6J("disabled","sync_disabled"===n.lcZ(1,6,r.group)),n.xp6(2),n.Tol(n.lcZ(3,8,r.group)),n.xp6(2),n.hij(" ",n.lcZ(5,10,r.group)," "),n.xp6(3),n.Oqu(n.lcZ(8,12,n.lcZ(9,14,r.group)))}}function b(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"button",11),n.NdJ("click",function(){return n.CHM(i),n.oxw(2).onMoveGroup()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_right_alt"),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.qZA()}if(2&t){var r=n.oxw(2);n.Q6J("disabled",r.disabled),n.xp6(4),n.Oqu(n.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE"))}}function w(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"button",11),n.NdJ("click",function(){return n.CHM(i),n.oxw(2).onChangeNameDescription()}),n.TgZ(1,"mat-icon"),n._uU(2,"text_format"),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.qZA()}if(2&t){var r=n.oxw(2);n.Q6J("disabled",r.disabled),n.xp6(4),n.Oqu(n.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME"))}}function A(t,e){if(1&t&&(n.TgZ(0,"div"),n.TgZ(1,"button",7),n.TgZ(2,"mat-icon"),n._uU(3,"more_vert"),n.qZA(),n.qZA(),n.TgZ(4,"mat-menu",null,8),n.TgZ(6,"button",9),n.TgZ(7,"mat-icon"),n._uU(8," file_copy "),n.qZA(),n.TgZ(9,"span"),n._uU(10),n.ALo(11,"translate"),n.qZA(),n.qZA(),n.YNc(12,_,10,16,"button",10),n.YNc(13,b,6,4,"button",10),n.YNc(14,w,6,4,"button",10),n.qZA(),n.qZA()),2&t){var i=n.MAs(5),r=n.oxw();n.xp6(1),n.Q6J("mat-menu-trigger-for",i),n.xp6(5),n.Q6J("cdkCopyToClipboard",r.group.name),n.xp6(4),n.Oqu(n.lcZ(11,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),n.xp6(2),n.Q6J("ngIf",r.syncAuth),n.xp6(1),n.Q6J("ngIf",r.moveAuth),n.xp6(1),n.Q6J("ngIf",r.editAuth)}}var k=function(){var t=function(){function t(e){_classCallCheck(this,t),this.authResolver=e,this.disabled=!1,this.moveGroup=new n.vpe,this.syncGroup=new n.vpe,this.changeNameDescription=new n.vpe}return _createClass(t,[{key:"ngOnInit",value:function(){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])}},{key:"onMoveGroup",value:function(){this.moveGroup.emit()}},{key:"onSyncDetail",value:function(){this.syncGroup.emit()}},{key:"onChangeNameDescription",value:function(){this.changeNameDescription.emit()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(r.x4))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.YNc(0,y,8,8,"div",0),n.YNc(1,A,15,8,"div",1)),2&t&&(n.Q6J("ngIf",e.displayButtons),n.xp6(1),n.Q6J("ngIf",!e.displayButtons))},directives:[o.O5,a.lW,s.i3,c.gM,u.Hw,l.p6,l.VK,l.OP],pipes:[h.X$,d.r,f.J,p.F],styles:[".buttons-container[_ngcontent-%COMP%]{white-space:nowrap;width:160px}.horiz_right[_ngcontent-%COMP%]{float:right}"]}),t}()},46837:function(t,e,i){"use strict";i.d(e,{x:function(){return g}});var n=i(31572),r=i(84140),o=i(6527),a=i(84608),s=i(61511),c=i(36922),u=i(43691),l=i(48160);function h(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"span",3),n.NdJ("click",function(){return n.CHM(i),n.oxw().changeStatus()}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",4),n._uU(3,"check_circle_outline"),n.qZA(),n.qZA()}2&t&&n.s9C("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE"))}function d(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"span",3),n.NdJ("click",function(){return n.CHM(i),n.oxw().changeStatus()}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",5),n._uU(3,"block"),n.qZA(),n.qZA()}2&t&&n.s9C("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE"))}function f(t,e){if(1&t&&(n.TgZ(0,"span",6),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",7),n._uU(3,"report"),n.qZA(),n.qZA()),2&t){var i=n.oxw();n.hYB("matTooltip","",n.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",i.failureCause,"")}}function p(t,e){1&t&&(n.TgZ(0,"span",6),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",8),n._uU(3,"autorenew"),n.qZA(),n.qZA()),2&t&&n.s9C("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}var g=function(){var t=function(){function t(e){_classCallCheck(this,t),this.dialog=e,this.status="",this.statusChange=new n.vpe}return _createClass(t,[{key:"changeStatus",value:function(){var t=this,e=(0,r.kZ)();e.width="500px",e.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(o.Qu,e).afterClosed().subscribe(function(e){e&&t.statusChange.emit()})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(a.uw))},t.\u0275cmp=n.Xpm({type:t,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"],["matTooltipPosition","above",3,"matTooltip"],[1,"red"],[1,"black"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.YNc(1,h,4,3,"span",1),n.YNc(2,d,4,3,"span",1),n.YNc(3,f,4,4,"span",2),n.YNc(4,p,4,3,"span",2),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf","ACTIVE"===e.status),n.xp6(1),n.Q6J("ngIf","INACTIVE"===e.status),n.xp6(1),n.Q6J("ngIf","FAILED"===e.status),n.xp6(1),n.Q6J("ngIf","PROCESSING"===e.status))},directives:[s.O5,c.gM,u.Hw],pipes:[l.X$],styles:[""]}),t}()},37665:function(t,e,i){"use strict";i.d(e,{h:function(){return s}});var n=i(31572),r=i(84140),o=i(44973),a=i(48160),s=function(){var t=function(){function t(){_classCallCheck(this,t),this.groupSelected=new n.vpe,this.disableAutoSelect=!1,this.displayStatus=!1,this.nameFunction=function(t){return t.name}}return _createClass(t,[{key:"ngOnInit",value:function(){this.groups=this.groups.sort(r.aC)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,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(t,e){var i;(1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.groupSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t)&&n.Q6J("entities",e.groups)("entity",null!==(i=e.firstSelectedGroup)&&void 0!==i?i:null)("displayStatus",e.displayStatus)("disableAutoSelect",e.disableAutoSelect)("mainTextFunction",e.nameFunction)("searchFunction",e.nameFunction)("selectPlaceholder",n.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.SELECT_GROUP"))("findPlaceholder",n.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.FIND_GROUP"))("noEntriesText",n.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.NO_GROUP_FOUND"))},directives:[o.i],pipes:[a.X$],styles:[""]}),t}()},78364:function(t,e,i){"use strict";i.d(e,{W:function(){return at}});var n=i(31572),r=i(58623),o=i(67033),a=i(4230),s=i(65249),c=i(84140),u=i(6527),l=i(68416),h=i(61511),d=i(84608),f=i(82819),p=i(29236),g=i(36922),m=i(72953),v=i(43691),y=i(46837),_=i(15980),b=i(54930),w=i(84534),A=i(57629),k=i(39571),C=i(48160),T=i(74842),E=i(37043),S=i(58506),I=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){var e=t.attributes.find(function(t){return"groupMembershipExpiration"===t.baseFriendlyName});return e&&e.value?e.value:"Never"}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"groupExpiration",type:t,pure:!0}),t}();function R(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-checkbox",26),n.NdJ("change",function(t){n.CHM(i);var e=n.oxw(2);return t?e.masterToggle():null}),n.qZA()}if(2&t){var r=n.oxw(2);n.Q6J("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())}}function x(t,e){if(1&t&&(n.TgZ(0,"th",24),n.YNc(1,R,1,3,"mat-checkbox",25),n.qZA()),2&t){var i=n.oxw();n.xp6(1),n.Q6J("ngIf",!i.disableHeadCheckbox)}}function O(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",27),n.TgZ(1,"span",28),n.ALo(2,"translate"),n.TgZ(3,"mat-checkbox",29),n.NdJ("change",function(t){var e=n.CHM(i).$implicit,r=n.oxw();return t?r.itemSelectionToggle(e):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.s9C("matTooltip",n.lcZ(2,7,o.getCheckboxTooltipMessage(r))),n.Q6J("matTooltipPosition","above")("matTooltipDisabled",!o.disableSelect(r)),n.xp6(2),n.Q2q("data-cy","",r.name,"-checkbox"),n.Q6J("aria-label",o.checkboxLabel(r))("checked",o.selection.isSelected(r))("disabled","members"===r.name&&o.disableMembers||o.disableSelect(r))}}function P(t,e){1&t&&(n.TgZ(0,"th",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_ID")," "))}function D(t,e){if(1&t&&(n.TgZ(0,"td",31),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.id)}}function M(t,e){1&t&&n._UZ(0,"th",32)}function L(t,e){if(1&t&&(n.TgZ(0,"td",33),n._UZ(1,"perun-web-apps-recently-viewed-icon",34),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.xp6(1),n.Q6J("recentIds",r.recentIds)("id",i.id)}}function N(t,e){1&t&&(n.TgZ(0,"th",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_VO_NAME")," "))}function z(t,e){if(1&t&&(n.TgZ(0,"td",31),n._uU(1),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.xp6(1),n.hij(" ",r.voNames.get(i.voId)," ")}}function Z(t,e){1&t&&n._UZ(0,"th",32)}function B(t,e){1&t&&(n.TgZ(0,"mat-icon",36),n.ALo(1,"translate"),n._uU(2,"account_tree"),n.qZA()),2&t&&n.Q6J("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.INDIRECT_GROUP"))}function F(t,e){1&t&&(n.TgZ(0,"mat-icon",36),n.ALo(1,"translate"),n._uU(2,"alt_route"),n.qZA()),2&t&&n.Q6J("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.MULTIPLE_ASSIGNMENTS"))}function H(t,e){if(1&t&&(n.TgZ(0,"td",33),n.YNc(1,B,3,3,"mat-icon",35),n.YNc(2,F,3,3,"mat-icon",35),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Q6J("ngIf",i.sourceGroupId&&!i.moreTypesOfAssignment),n.xp6(1),n.Q6J("ngIf",i.moreTypesOfAssignment)}}function U(t,e){1&t&&(n.TgZ(0,"th",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_NAME")," "))}function q(t,e){if(1&t&&(n.TgZ(0,"td",33),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.uIk("data-cy",i.name),n.xp6(1),n.hij(" ",i.name," ")}}function G(t,e){1&t&&(n.TgZ(0,"th",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")," "))}function j(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",37),n.TgZ(1,"perun-web-apps-group-resource-status",38),n.NdJ("mouseenter",function(){return n.CHM(i),n.oxw().disabledRouting=!0})("mouseleave",function(){n.CHM(i);var t=n.oxw();return t.disabledRouting=t.disableRouting})("statusChange",function(){return n.CHM(i),n.oxw().refreshTable.emit()}),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("theme","resource-theme")("groupId",r.id)("resourceId",o.resourceId)("failureCause",r.failureCause)("status",r.status)}}function Y(t,e){1&t&&(n.TgZ(0,"th",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")," "))}function K(t,e){if(1&t&&(n.TgZ(0,"td",33),n.TgZ(1,"i",39),n.ALo(2,"memberStatusIconColor"),n.TgZ(3,"span"),n._uU(4),n.ALo(5,"memberStatusIcon"),n.qZA(),n.qZA(),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.xp6(1),n.Gre("material-icons ",n.lcZ(2,5,r.getStatusAttribute(i)),""),n.s9C("matTooltip",r.getStatusAttribute(i)),n.xp6(3),n.hij(" ",n.lcZ(5,7,r.getStatusAttribute(i))," ")}}function V(t,e){1&t&&(n.TgZ(0,"th",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_DESCRIPTION")," "))}function J(t,e){if(1&t&&(n.TgZ(0,"td",37),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.description)}}function Q(t,e){1&t&&(n.TgZ(0,"th",30),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_EXPIRATION")," "))}function W(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"button",41),n.NdJ("click",function(){n.CHM(i);var t=n.oxw().$implicit;return n.oxw().changeExpiration(t)})("mouseenter",function(){return n.CHM(i),n.oxw(2).disabledRouting=!0})("mouseleave",function(){n.CHM(i);var t=n.oxw(2);return t.disabledRouting=t.disableRouting}),n.TgZ(1,"mat-icon"),n._uU(2,"edit"),n.qZA(),n.qZA()}}function X(t,e){if(1&t&&(n.TgZ(0,"td",37),n._uU(1),n.ALo(2,"parseDate"),n.ALo(3,"groupExpiration"),n.YNc(4,W,3,0,"button",40),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.xp6(1),n.hij(" ",n.lcZ(2,2,n.lcZ(3,4,i))," "),n.xp6(3),n.Q6J("ngIf",r.canManageGroup(i))}}function $(t,e){1&t&&n._UZ(0,"th",32)}function tt(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",33),n.TgZ(1,"perun-web-apps-group-menu",42),n.NdJ("mouseenter",function(){return n.CHM(i),n.oxw().disabledRouting=!0})("mouseleave",function(){n.CHM(i);var t=n.oxw();return t.disabledRouting=t.disableRouting})("moveGroup",function(){var t=n.CHM(i).$implicit;return n.oxw().onMoveGroup(t)})("changeNameDescription",function(){var t=n.CHM(i).$implicit;return n.oxw().onChangeNameDescription(t)})("syncGroup",function(){var t=n.CHM(i).$implicit;return n.oxw().onSyncDetail(t)}),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("disabled","members"===r.name)("displayButtons",o.displayButtons)("group",r)}}function et(t,e){1&t&&n._UZ(0,"tr",43)}var it=function(t,e){return["/organizations",t,"groups",e]};function nt(t,e){if(1&t&&n._UZ(0,"tr",44),2&t){var i=e.$implicit,r=n.oxw();n.ekj("cursor-pointer",!r.disableRouting&&!r.groupsToDisableRouting.has(i.id))("disable-outline",r.disabledRouting||r.groupsToDisableRouting.has(i.id)),n.Q6J("perunWebAppsMiddleClickRouterLink",r.disabledRouting||r.groupsToDisableRouting.has(i.id)?null:n.WLB(6,it,i.voId,i.id))("routerLink",r.disabledRouting||r.groupsToDisableRouting.has(i.id)?null:n.WLB(9,it,i.voId,i.id))}}function rt(t,e){1&t&&(n.TgZ(0,"app-alert",45),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_GROUPS"),"\n"))}function ot(t,e){1&t&&(n.TgZ(0,"app-alert",45),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}var at=function(){var t=function(){function t(e,i,r,o,s){var u=this;_classCallCheck(this,t),this.dialog=e,this.authResolver=i,this.voService=r,this.tableCheckbox=o,this.changeDetector=s,this.displayButtons=window.innerWidth>800,this.theme="group-theme",this.moveGroup=new n.vpe,this.groups=[],this.selection=new a.Ov(!0,[]),this.hasMembersGroup=!1,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=c.f7,this.recentIds=[],this.resourceId=null,this.refreshTable=new n.vpe,this.disabledRouting=!1,this.voIds=new Set,this.voNames=new Map,this.canBeSelected=function(t){return!("members"===t.name&&u.disableMembers||u.disableSelect(t))}}return _createClass(t,[{key:"matSort",set:function(t){this.sort=t}},{key:"shouldHideButtons",value:function(){this.displayButtons=window.innerWidth>800}},{key:"ngOnChanges",value:function(){this.disabledRouting=this.disableRouting,this.hasMembersGroup=this.checkIfHasMembersGroup(),this.updateVoNames(),this.setDataSource(),this.authType&&(this.removeAuth=this.setAuth())}},{key:"checkIfHasMembersGroup",value:function(){var t,e=_createForOfIteratorHelper(this.groups);try{for(e.s();!(t=e.n()).done;){if("members"===t.value.name)return!0}}catch(i){e.e(i)}finally{e.f()}return!1}},{key:"getDataForColumn",value:function(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return i.voNames.get(t.voId);case"name":return t.name;case"description":return t.description;case"expiration":var n=(0,c.x2)(t);return(0,c.sG)(n);case"recent":return"";case"status":return t.status;case"uuid":return t.uuid;default:return t[e]}}},{key:"getSortDataForColumn",value:function(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return i.voNames.get(t.voId);case"name":return t.name;case"description":return t.description;case"expiration":var n=(0,c.x2)(t);return n&&"never"!==n.toLowerCase()?(0,h.p6)(n,"yyyy.MM.dd","en"):n;case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;case"status":return t.status;default:return t[e]}}},{key:"exportData",value:function(t){(0,c.O6)((0,c.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource||(this.dataSource=new o.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=function(e,i){return(0,c.Sd)(e,i,t.displayedColumns,t.getDataForColumn,t,!0)},this.dataSource.sortData=function(e,i){return(0,c.pR)(e,i,t.getSortDataForColumn,t)}),this.dataSource.filter=this.filter,this.dataSource.data=this.groups}},{key:"isAllSelected",value:function(){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)}},{key:"masterToggle",value:function(){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())}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"disableSelect",value:function(t){return this.disableGroups&&(this.groupsToDisableCheckbox.has(t.id)||this.isSynchronized(t))}},{key:"ngAfterViewInit",value:function(){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(function(t){return"id"!==t}),this.changeDetector.detectChanges())}},{key:"onMoveGroup",value:function(t){this.moveGroup.emit(t)}},{key:"onSyncDetail",value:function(t){var e=(0,c.kZ)();e.data={groupId:t.id,theme:this.theme},this.dialog.open(u.Bp,e)}},{key:"onChangeNameDescription",value:function(t){var e=this,i=(0,c.kZ)();i.data={theme:"group-theme",group:t,dialogType:u.Eg.GROUP},this.dialog.open(u.rd,i).afterClosed().subscribe(function(t){t&&e.refreshTable.emit()})}},{key:"setAuth",value:function(){var t=this;return"group-subgroups"===this.authType?this.selection.selected.reduce(function(e,i){return e&&t.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[i])},!0):"group-relations"===this.authType?this.selection.selected.reduce(function(e,i){return e&&t.authResolver.isAuthorized("removeGroupUnion_Group_Group_policy",[t.parentGroup,i])},!0):"vo-groups"===this.authType?this.selection.selected.reduce(function(e,i){return e&&t.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[t.vo,i])},!0):"member-groups"===this.authType?this.selection.selected.reduce(function(e,i){return e&&t.authResolver.isAuthorized("removeMember_Member_List_policy",[i])},!0):"application-form-manage-groups"===this.authType?this.selection.selected.reduce(function(e,i){return e&&t.authResolver.isAuthorized("deleteGroupsFromAutoRegistration_List_policy",[t.vo,i])},!0):void 0}},{key:"itemSelectionToggle",value:function(t){this.selection.toggle(t),this.removeAuth=this.setAuth()}},{key:"isSynchronized",value:function(t){return!!t.attributes&&t.attributes.some(function(t){return"synchronizationEnabled"===t.friendlyName&&null!==t.value&&"true"===t.value.toString()})}},{key:"getCheckboxTooltipMessage",value:function(t){return"create-relation-dialog"===this.authType?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.CREATE_RELATION_AUTH_TOOLTIP":this.isSynchronized(t)?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.SYNCHRONIZED_GROUP":t.sourceGroupId?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.INDIRECT_GROUP":"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.ALREADY_MEMBER_TOOLTIP"}},{key:"updateVoNames",value:function(){var t=this;this.displayedColumns.includes("vo")&&(this.groups.forEach(function(e){t.voIds.has(e.voId)||t.voIds.add(e.voId)}),this.voIds.size>0&&this.voService.getVosByIds(_toConsumableArray(this.voIds)).subscribe(function(e){e.forEach(function(e){t.voNames.set(e.id,e.name)})}))}},{key:"changeExpiration",value:function(t){var e=this,i=t.attributes.find(function(t){return"groupMembershipExpiration"===t.baseFriendlyName}),n=(0,c.kZ)();n.width="400px",n.data={memberId:this.memberId,groupId:t.id,expirationAttr:i,mode:"group",status:this.memberGroupStatus},this.dialog.open(u.u3,n).afterClosed().subscribe(function(t){t&&e.refreshTable.emit()})}},{key:"canManageGroup",value:function(t){return this.authResolver.isThisGroupAdmin(t.id)||this.authResolver.isThisVoAdmin(t.voId)}},{key:"getStatusAttribute",value:function(t){return t.attributes.find(function(t){return"groupStatus"===t.baseFriendlyName}).value.toString()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(d.uw),n.Y36(l.x4),n.Y36(s.YF),n.Y36(l.UA),n.Y36(n.sBO))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-groups-list"]],viewQuery:function(t,e){var i;(1&t&&(n.Gf(r.YE,7),n.Gf(c.l9,7)),2&t)&&(n.iGM(i=n.CRH())&&(e.matSort=i.first),n.iGM(i=n.CRH())&&(e.child=i.first))},hostBindings:function(t,e){1&t&&n.NdJ("resize",function(t){return e.shouldHideButtons(t)},!1,n.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"},outputs:{moveGroup:"moveGroup",refreshTable:"refreshTable"},features:[n.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","routerLink",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","routerLink"],["alert_type","warn"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,x,2,1,"th",4),n.YNc(5,O,4,9,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,P,3,3,"th",7),n.YNc(8,D,2,1,"td",8),n.BQk(),n.ynx(9,9),n.YNc(10,M,1,0,"th",10),n.YNc(11,L,2,2,"td",11),n.BQk(),n.ynx(12,12),n.YNc(13,N,3,3,"th",7),n.YNc(14,z,2,1,"td",8),n.BQk(),n.ynx(15,13),n.YNc(16,Z,1,0,"th",10),n.YNc(17,H,3,2,"td",11),n.BQk(),n.ynx(18,14),n.YNc(19,U,3,3,"th",7),n.YNc(20,q,2,2,"td",11),n.BQk(),n.ynx(21,15),n.YNc(22,G,3,3,"th",7),n.YNc(23,j,2,5,"td",16),n.BQk(),n.ynx(24,17),n.YNc(25,Y,3,3,"th",7),n.YNc(26,K,6,9,"td",11),n.BQk(),n.ynx(27,18),n.YNc(28,V,3,3,"th",7),n.YNc(29,J,2,1,"td",16),n.BQk(),n.ynx(30,19),n.YNc(31,Q,3,3,"th",7),n.YNc(32,X,5,6,"td",16),n.BQk(),n.ynx(33,20),n.YNc(34,$,1,0,"th",10),n.YNc(35,tt,2,3,"td",11),n.BQk(),n.YNc(36,et,1,0,"tr",21),n.YNc(37,nt,1,12,"tr",22),n.qZA(),n.qZA(),n.qZA(),n.YNc(38,rt,3,3,"app-alert",23),n.YNc(39,ot,3,3,"app-alert",23)),2&t&&(n.Q6J("hidden",0===e.groups.length||!e.dataSource||0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions)("tableId",e.tableId),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(34),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.groups.length),n.xp6(1),n.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.groups.length))},directives:[f.l,o.BZ,r.YE,o.w1,o.fO,o.Dz,o.as,o.nj,h.O5,o.ge,p.oG,o.ev,g.gM,r.nU,m.W,v.Hw,y.x,_.lW,b.i,o.XQ,o.Gk,w.YH,A.rH,k.w],pipes:[C.X$,T.u,E.f,S.M,I],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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t}()},11441:function(t,e,i){"use strict";i.d(e,{I:function(){return O}});var n=i(31572),r=i(91010),o=i(71709),a=i(4230),s=i(14732),c=i(84140),u=i(6527),l=i(68416),h=i(84608),d=i(61511),f=i(4253),p=i(57629),g=i(15980),m=i(36922),v=i(54930),y=i(29236),_=i(43691),b=i(39571),w=i(48160),A=["scrollViewport"];function k(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-checkbox",19),n.NdJ("change",function(){n.CHM(i);var t=n.oxw().$implicit;return n.oxw(2).itemSelectionToggle(t)}),n.qZA()}if(2&t){var r=n.oxw().$implicit,o=n.oxw(2);n.Q2q("data-cy","",r.name,"-checkbox"),n.Q6J("disabled","members"===r.fullName)("checked",o.selection.isSelected(r))("indeterminate",o.descendantsPartiallySelected(r))}}function C(t,e){if(1&t&&(n.TgZ(0,"mat-icon",20),n._uU(1),n.qZA()),2&t){var i=n.oxw().$implicit,r=n.oxw(2);n.xp6(1),n.hij(" ",r.treeControl.isExpanded(i)?"expand_more":"chevron_right"," ")}}function T(t,e){if(1&t&&(n.TgZ(0,"span",21),n._uU(1),n.qZA()),2&t){var i=n.oxw().$implicit;n.xp6(1),n.hij(" #",i.id," ")}}var E=function(t,e){return["/organizations",t,"groups",e]};function S(t,e){if(1&t){var i=n.EpF();n.ynx(0),n.TgZ(1,"div",6),n.YNc(2,k,1,4,"mat-checkbox",7),n.TgZ(3,"a",8),n.TgZ(4,"button",9),n.NdJ("mouseenter",function(){return n.CHM(i),n.oxw(2).disableRouting=!0})("mouseleave",function(){return n.CHM(i),n.oxw(2).disableRouting=!1})("click",function(){var t=n.CHM(i).$implicit;return n.oxw(2).treeControl.toggle(t)}),n.YNc(5,C,2,1,"mat-icon",10),n.qZA(),n.TgZ(6,"div",11),n.TgZ(7,"span",12),n._uU(8),n.qZA(),n.YNc(9,T,2,1,"span",13),n.qZA(),n.TgZ(10,"div",14,15),n.TgZ(12,"span",16),n._uU(13),n.qZA(),n.qZA(),n.qZA(),n.TgZ(14,"div",17),n.TgZ(15,"perun-web-apps-group-menu",18),n.NdJ("moveGroup",function(){var t=n.CHM(i).$implicit;return n.oxw(2).onMoveGroup(t)})("syncGroup",function(){var t=n.CHM(i).$implicit;return n.oxw(2).onSyncDetail(t)})("changeNameDescription",function(){var t=n.CHM(i).$implicit;return n.oxw(2).onChangeNameDescription(t)}),n.qZA(),n.qZA(),n.qZA(),n.BQk()}if(2&t){var r=e.$implicit,o=n.oxw(2);n.xp6(1),n.Udp("padding-left",24*r.level+"px"),n.xp6(1),n.Q6J("ngIf",!o.hideCheckbox),n.xp6(1),n.Q6J("routerLink",o.disableRouting?null:n.WLB(15,E,r.voId,r.id)),n.xp6(1),n.Q6J("disabled",!r.expandable),n.uIk("aria-label","toggle "+r.name),n.xp6(1),n.Q6J("ngIf",r.expandable),n.xp6(2),n.uIk("data-cy",r.name),n.xp6(1),n.hij(" ",r.name," "),n.xp6(1),n.Q6J("ngIf",o.authResolver.isPerunAdminOrObserver()),n.xp6(3),n.s9C("matTooltip",r.description),n.xp6(1),n.hij(" ",r.description," "),n.xp6(2),n.Q6J("disabled","members"===r.fullName)("displayButtons",o.displayButtons)("group",r)}}var I=function(t){return{height:t}};function R(t,e){if(1&t&&(n.TgZ(0,"div",2),n.TgZ(1,"cdk-virtual-scroll-viewport",3,4),n.YNc(3,S,16,18,"ng-container",5),n.qZA(),n.qZA()),2&t){var i=n.oxw();n.xp6(1),n.Q6J("minBufferPx",240)("maxBufferPx",480)("ngStyle",n.VKq(4,I,i.getTreeViewHeight())),n.xp6(2),n.Q6J("cdkVirtualForOf",i.dataSource)}}function x(t,e){1&t&&(n.TgZ(0,"app-alert",22),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}var O=function(){var t=function(){function t(e,i,s){_classCallCheck(this,t),this.cd=e,this.dialog=i,this.authResolver=s,this.transformer=function(t,e){return{expandable:!!t.children&&t.children.length>0,name:t.shortName,fullName:t.name,parentGroupId:t.parentGroupId,level:e,id:t.id,voId:t.voId,attributes:t.attributes,beanName:t.beanName,description:t.description}},this.displayButtons=window.innerWidth>600,this.theme="group-theme",this.moveGroup=new n.vpe,this.refreshTable=new n.vpe,this.expandAll=!1,this.disableRouting=!1,this.selection=new a.Ov(!0,[]),this.hideCheckbox=!1,this.treeControl=new o.C2(function(t){return t.level},function(t){return t.expandable}),this.treeFlattener=new r.JZ(this.transformer,function(t){return t.level},function(t){return t.expandable},function(t){return t.children}),this.dataSource=new r.kc(this.treeControl,this.treeFlattener),this.hasChild=function(t,e){return e.expandable},this.getLevel=function(t){return t.level}}return _createClass(t,[{key:"shouldHideButtons",value:function(){this.displayButtons=window.innerWidth>600}},{key:"ngOnChanges",value:function(){var t=this;if(this.expandAll){this.filteredGroups=this.groups.filter(function(e){var i,n;return(null===(i=e.name)||void 0===i?void 0:i.toLowerCase().includes(t.filterValue.toLowerCase()))||(null===(n=e.description)||void 0===n?void 0:n.toLowerCase().includes(t.filterValue.toLowerCase()))||e.id.toString().includes(t.filterValue.toLowerCase())||e.uuid.toLowerCase().includes(t.filterValue.toLowerCase())});var e,i=_createForOfIteratorHelper(this.filteredGroups);try{for(i.s();!(e=i.n()).done;){var n=e.value;n.parentGroupId&&(this.filteredGroups=this.filteredGroups.concat((0,c.oU)(n.parentGroupId,this.groups)))}}catch(r){i.e(r)}finally{i.f()}}else this.filteredGroups=this.groups;this.createGroupTrees(this.filteredGroups),this.expandAll&&this.treeControl.expandAll(),this.removeAuth=this.setRemoveAuth()}},{key:"onSyncDetail",value:function(t){var e=(0,c.kZ)();e.data={groupId:t.id,theme:this.theme},this.dialog.open(u.Bp,e)}},{key:"onChangeNameDescription",value:function(t){var e=this,i=(0,c.kZ)();i.data={theme:"group-theme",group:t,dialogType:u.Eg.GROUP},this.dialog.open(u.rd,i).afterClosed().subscribe(function(t){t&&e.refreshTable.emit()})}},{key:"createGroupTrees",value:function(t){var e,i=new Map,n=_createForOfIteratorHelper(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;i.set(r.id,new s.m(r))}}catch(c){n.e(c)}finally{n.f()}var o=new Set;i.forEach(function(t,e,i){var n=i.get(t.parentGroupId);void 0!==n&&(n.addChild(t),i.set(t.parentGroupId,n)),null!==t.parentGroupId&&void 0===n&&o.add(t.id)});var a=[];i.forEach(function(t){(null===t.parentGroupId||o.has(t.id))&&a.push(t)}),this.dataSource.data=a,this.cd.detectChanges()}},{key:"getParentNode",value:function(t){var e=this.getLevel(t);if(e<1)return null;for(var i=this.treeControl.dataNodes.indexOf(t)-1;i>=0;i--){var n=this.treeControl.dataNodes[i];if(this.getLevel(n)_boolean_policy",[t.vo,i])}:function(e,i){return e&&t.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[i])},!0)}},{key:"onMoveGroup",value:function(t){this.moveGroup.emit(t)}},{key:"getTreeViewHeight",value:function(){var t=0;this.scrollViewport&&(t=this.scrollViewport.getDataLength());var e=48*t;return e>672&&(e=696),this.scrollViewport&&this.scrollViewport.checkViewportSize(),e+"px"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO),n.Y36(h.uw),n.Y36(l.x4))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-groups-tree"]],viewQuery:function(t,e){var i;(1&t&&n.Gf(A,5),2&t)&&(n.iGM(i=n.CRH())&&(e.scrollViewport=i.first))},hostBindings:function(t,e){1&t&&n.NdJ("resize",function(t){return e.shouldHideButtons(t)},!1,n.Jf7)},inputs:{theme:"theme",groups:"groups",filterValue:"filterValue",expandAll:"expandAll",disableRouting:"disableRouting",selection:"selection",hideCheckbox:"hideCheckbox",vo:"vo"},outputs:{moveGroup:"moveGroup",refreshTable:"refreshTable"},features:[n.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(t,e){1&t&&(n.YNc(0,R,4,6,"div",0),n.YNc(1,x,3,3,"app-alert",1)),2&t&&(n.Q6J("ngIf",0!==e.filteredGroups.length),n.xp6(1),n.Q6J("ngIf",0===e.filteredGroups.length))},directives:[d.O5,f.N7,f.xd,d.PC,f.x0,p.yS,g.lW,m.gM,v.i,y.oG,_.Hw,b.w],pipes:[w.X$],styles:[".group-tree-node[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}.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:rgba(0,0,0,.05)}.text-format[_ngcontent-%COMP%]{text-decoration:none;color:#000;font-weight:400!important}"]}),t}()},66438:function(t,e,i){"use strict";i.d(e,{X:function(){return g}});var n=i(65249),r=i(68416),o=i(31572),a=i(48160),s=i(61511),c=i(8055),u=i(15980),l=i(43691),h=i(36922),d=function(t){return{color:t}};function f(t,e){if(1&t&&(o.TgZ(0,"button",8),o.ALo(1,"translate"),o.TgZ(2,"mat-icon",4),o._uU(3," apps "),o.qZA(),o.qZA()),2&t){var i=o.oxw(),n=o.MAs(2);o.Q6J("matMenuTriggerFor",n)("matTooltip",o.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),o.xp6(2),o.Q6J("ngStyle",o.VKq(5,d,i.iconColor))}}function p(t,e){if(1&t){var i=o.EpF();o.TgZ(0,"button",2),o.NdJ("click",function(){return o.CHM(i),o.oxw().onLogOut()}),o._uU(1),o.ALo(2,"translate"),o.qZA()}2&t&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"NAV.LOGOUT")," "))}var g=function(){var t=function(){function t(e,i,n,r){_classCallCheck(this,t),this.authService=e,this.authzResolverService=i,this.notificator=n,this.translateService=r}return _createClass(t,[{key:"redirectToUrl",value:function(){window.open(this.url,"_blank")}},{key:"onLogOut",value:function(){this.authService.logout()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Y36(r.e8),o.Y36(n.Ct),o.Y36(r.V6),o.Y36(a.sK))},t.\u0275cmp=o.Xpm({type:t,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:14,vars:15,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],[1,"d-none","d-lg-inline",3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"]],template:function(t,e){if(1&t&&(o.YNc(0,f,4,7,"button",0),o.TgZ(1,"mat-menu",null,1),o.TgZ(3,"button",2),o.NdJ("click",function(){return e.redirectToUrl()}),o.TgZ(4,"span"),o._uU(5),o.qZA(),o.qZA(),o.qZA(),o.TgZ(6,"button",3),o.TgZ(7,"mat-icon",4),o._uU(8," person "),o.qZA(),o.TgZ(9,"span",5),o._uU(10),o.qZA(),o.qZA(),o.TgZ(11,"mat-menu",null,6),o.YNc(13,p,3,3,"button",7),o.qZA()),2&t){var i=o.MAs(12);o.Q6J("ngIf",e.url),o.xp6(5),o.Oqu(e.label),o.xp6(1),o.Q6J("matMenuTriggerFor",i),o.xp6(1),o.Q6J("ngStyle",o.VKq(11,d,e.iconColor)),o.xp6(2),o.Q6J("ngStyle",o.VKq(13,d,e.textColor)),o.xp6(1),o.xDo(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," "),o.xp6(3),o.Q6J("ngIf",e.logoutEnabled)}},directives:[s.O5,c.VK,c.OP,u.lW,c.p6,l.Hw,s.PC,h.gM],pipes:[a.X$],styles:["@media (max-width:991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),t}()},19139:function(t,e,i){"use strict";i.d(e,{L:function(){return d}});var n=i(31572),r=i(16073),o=i(66283),a=i(61511),s=i(80340),c=i(84534),u=i(48160);function l(t,e){if(1&t&&(n._UZ(0,"input",3),n.ALo(1,"translate")),2&t){var i=n.oxw();n.s9C("placeholder",n.lcZ(1,2,i.placeholder)),n.Q6J("formControl",i.formControl)}}function h(t,e){if(1&t&&(n._UZ(0,"input",4),n.ALo(1,"translate")),2&t){var i=n.oxw();n.s9C("placeholder",n.lcZ(1,2,i.placeholder)),n.Q6J("formControl",i.formControl)}}var d=function(){var t=function(){function t(){_classCallCheck(this,t),this.filter=new n.vpe,this.autoFocus=!1,this.formControl=new r.NI}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.formControl.valueChanges.subscribe(function(e){var i=e.trim();i=i.toLowerCase(),t.filter.emit(i)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,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","",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(t,e){1&t&&(n.TgZ(0,"mat-form-field",0),n.YNc(1,l,2,4,"input",1),n.YNc(2,h,2,4,"input",2),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf",e.autoFocus),n.xp6(1),n.Q6J("ngIf",!e.autoFocus))},directives:[o.KE,a.O5,s.Nt,r.Fj,c.hT,r.JJ,r.oH],pipes:[u.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:auto!important}"]}),t}()},91779:function(t,e,i){"use strict";i.d(e,{m:function(){return tt}});var n=i(58623),r=i(84140),o=i(6527),a=i(68416),s=i(31906),c=i(66599),u=i(31572),l=i(84608),h=i(60611),d=i(82819),f=i(61511),p=i(67033),g=i(67806),m=i(29236),v=i(43691),y=i(36922),_=i(84534),b=i(57629),w=i(39571),A=i(48160),k=i(22196),C=i(74842),T=i(91322),E=i(37043),S=i(99197),I=i(63720),R=i(1157);function x(t,e){1&t&&(u.TgZ(0,"div",22),u._UZ(1,"mat-spinner",23),u.qZA())}function O(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"th",24),u.TgZ(1,"mat-checkbox",25),u.NdJ("change",function(t){u.CHM(i);var e=u.oxw();return t?e.masterToggle():null}),u.qZA(),u.qZA()}if(2&t){var n=u.oxw();u.xp6(1),u.Q6J("aria-label",n.checkboxLabel())("checked",n.selection.hasValue()&&n.isAllSelected())("indeterminate",n.selection.hasValue()&&!n.isAllSelected())}}function P(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"td",26),u.TgZ(1,"mat-checkbox",27),u.NdJ("change",function(t){var e=u.CHM(i).$implicit,n=u.oxw();return t?n.selection.toggle(e):null})("click",function(t){return t.stopPropagation()}),u.ALo(2,"lowercase"),u.qZA(),u.qZA()}if(2&t){var n=e.$implicit,r=u.oxw();u.xp6(1),u.Q2q("data-cy","",u.lcZ(2,3,n.user.firstName),"-checkbox"),u.Q6J("aria-label",r.checkboxLabel(n))("checked",r.selection.isSelected(n))}}function D(t,e){1&t&&(u.TgZ(0,"th",28),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"MEMBERS_LIST.ID")))}function M(t,e){if(1&t&&(u.TgZ(0,"td",29),u._uU(1),u.qZA()),2&t){var i=e.$implicit;u.xp6(1),u.Oqu(i.id)}}function L(t,e){1&t&&u._UZ(0,"th",28)}function N(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"mat-icon",32),u.NdJ("click",function(t){u.CHM(i);var e=u.oxw().$implicit;return u.oxw().viewMemberGroupTree(t,e)}),u.ALo(1,"translate"),u._uU(2,"transfer_within_a_station"),u.qZA()}2&t&&u.Q6J("matTooltip",u.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function z(t,e){if(1&t&&(u.TgZ(0,"td",30),u.YNc(1,N,3,3,"mat-icon",31),u.qZA()),2&t){var i=e.$implicit;u.xp6(1),u.Q6J("ngIf","DIRECT"!==i.membershipType)}}function Z(t,e){1&t&&(u.TgZ(0,"th",28),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"MEMBERS_LIST.NAME")," "))}function B(t,e){if(1&t&&(u.TgZ(0,"td",30),u._uU(1),u.ALo(2,"userFullName"),u.qZA()),2&t){var i=e.$implicit;u.xp6(1),u.Oqu(u.lcZ(2,1,i.user))}}function F(t,e){1&t&&(u.TgZ(0,"th",33),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"MEMBERS_LIST.STATUS")))}function H(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"td",30),u.TgZ(1,"i",34),u.NdJ("click",function(t){var e=u.CHM(i).$implicit;return u.oxw().changeStatus(t,e)}),u.ALo(2,"memberStatusIconColor"),u.ALo(3,"memberStatusTooltip"),u.TgZ(4,"span"),u._uU(5),u.ALo(6,"memberStatusIcon"),u.qZA(),u.qZA(),u.qZA()}if(2&t){var n=e.$implicit;u.xp6(1),u.Gre("material-icons ",u.lcZ(2,5,n.status),""),u.s9C("matTooltip",u.xi3(3,7,n,!1)),u.xp6(4),u.hij(" ",u.lcZ(6,10,n.status)," ")}}function U(t,e){1&t&&(u.TgZ(0,"th",33),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")))}function q(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"td",30),u.TgZ(1,"i",34),u.NdJ("click",function(t){var e=u.CHM(i).$implicit,n=u.oxw();return n.changeStatus(t,e,n.groupId)}),u.ALo(2,"memberStatusIconColor"),u.ALo(3,"memberStatusTooltip"),u.TgZ(4,"span"),u._uU(5),u.ALo(6,"memberStatusIcon"),u.qZA(),u.qZA(),u.qZA()}if(2&t){var n=e.$implicit;u.xp6(1),u.Gre("material-icons ",u.lcZ(2,5,n.groupStatus),""),u.s9C("matTooltip",u.xi3(3,7,n,!0)),u.xp6(4),u.hij(" ",u.lcZ(6,10,n.groupStatus)," ")}}function G(t,e){1&t&&(u.TgZ(0,"th",33),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")))}function j(t,e){if(1&t&&(u.TgZ(0,"td",30),u._uU(1),u.ALo(2,"memberOrganization"),u.qZA()),2&t){var i=e.$implicit;u.xp6(1),u.Oqu(u.lcZ(2,1,i))}}function Y(t,e){1&t&&(u.TgZ(0,"th",33),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"MEMBERS_LIST.EMAIL")))}function K(t,e){if(1&t&&(u.TgZ(0,"td",30),u._uU(1),u.ALo(2,"memberEmail"),u.qZA()),2&t){var i=e.$implicit;u.xp6(1),u.Oqu(u.lcZ(2,1,i))}}function V(t,e){1&t&&(u.TgZ(0,"th",33),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function J(t,e){if(1&t&&(u.TgZ(0,"td",30),u._uU(1),u.ALo(2,"memberLogins"),u.qZA()),2&t){var i=e.$implicit;u.xp6(1),u.Oqu(u.lcZ(2,1,i))}}function Q(t,e){1&t&&u._UZ(0,"tr",35)}var W=function(t,e){return["/organizations",t,"members",e]};function X(t,e){if(1&t&&u._UZ(0,"tr",36),2&t){var i=e.$implicit,n=u.oxw();u.ekj("cursor-pointer",n.dataSource.routeAuth)("italic_font","INDIRECT"===i.membershipType)("disable-outline",!n.dataSource.routeAuth),u.Q6J("perunWebAppsMiddleClickRouterLink",n.dataSource.routeAuth?u.WLB(8,W,i.voId,i.id):null)("routerLink",n.dataSource.routeAuth?u.WLB(11,W,i.voId,i.id):null)}}function $(t,e){1&t&&(u.TgZ(0,"app-alert",37),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}var tt=function(){var t=function(){function t(e,i,n,o,a){_classCallCheck(this,t),this.dialog=e,this.authResolver=i,this.tableCheckbox=n,this.tableConfigService=o,this.dynamicPaginatingService=a,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.selectedGroupStatuses=[],this.pageSizeOptions=r.f7}return _createClass(t,[{key:"ngAfterViewInit",value:function(){var t=this;this.sort.sortChange.subscribe(function(){return t.child.paginator.pageIndex=0}),(0,s.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,c.b)(function(){return t.loadMembersPage()})).subscribe()}},{key:"ngOnInit",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.dataSource=new a.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)}},{key:"ngOnChanges",value:function(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadMembersPage())}},{key:"masterToggle",value:function(){var t=this;this.isAllSelected()?this.selection.clear():this.dataSource.getData().forEach(function(e){return t.selection.select(e)})}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.child.paginator.pageSize}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"changeStatus",value:function(t,e,i){var n=this;t.stopPropagation();var a=(0,r.kZ)();a.width="500px",a.data={member:e,voId:this.voId,groupId:i};var s=i?e.groupStatus:e.status;this.dialog.open(o.pf,a).afterClosed().subscribe(function(t){if(t){var r=i?t.groupStatus:t.status;"VALID"===s&&("EXPIRED"===r||"DISABLED"===r)||"VALID"===r?(i?e.groupStatus=r:e.status=r,n.changeExpiration(e,i)):n.loadMembersPage()}})}},{key:"changeExpiration",value:function(t,e){var i=this,n=t.memberAttributes.find(e?function(t){return"groupMembershipExpiration"===t.friendlyName}:function(t){return"membershipExpiration"===t.friendlyName}),a=(0,r.kZ)();a.width="400px",a.data={voId:this.voId,groupId:e,memberId:t.id,expirationAttr:n,status:e?t.groupStatus:t.status,statusChanged:!0},this.dialog.open(e?o.u3:o.kZ,a).afterClosed().subscribe(function(){i.loadMembersPage()})}},{key:"loadMembersPage",value:function(){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)}},{key:"exportData",value:function(t){(0,r.O6)((0,r.Xn)(this.dataSource.getData(),this.displayedColumns,this.getExportDataForColumn,this),t)}},{key:"getExportDataForColumn",value:function(t,e){switch(e){case"id":return t.id.toString();case"fullName":return t.user?(0,r.bD)(t.user):"";case"status":return t.status;case"groupStatus":return t.groupStatus;case"organization":return(0,r.Gw)(t);case"email":return(0,r.g$)(t);case"logins":return(0,r.lt)(t);default:return""}}},{key:"viewMemberGroupTree",value:function(t,e){t.stopPropagation();var i=(0,r.kZ)();i.width="800px",i.data={member:e,groupId:this.groupId},this.dialog.open(o.jd,i)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Y36(l.uw),u.Y36(a.x4),u.Y36(a.UA),u.Y36(h.dB),u.Y36(a.ly))},t.\u0275cmp=u.Xpm({type:t,selectors:[["perun-web-apps-members-dynamic-list"]],viewQuery:function(t,e){var i;(1&t&&(u.Gf(r.l9,7),u.Gf(n.YE,5)),2&t)&&(u.iGM(i=u.CRH())&&(e.child=i.first),u.iGM(i=u.CRH())&&(e.sort=i.first))},inputs:{selection:"selection",displayedColumns:"displayedColumns",voId:"voId",groupId:"groupId",selectedGroupStatuses:"selectedGroupStatuses",attrNames:"attrNames",searchString:"searchString",selectedStatuses:"selectedStatuses",tableId:"tableId",updateTable:"updateTable"},features:[u.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","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(t,e){1&t&&(u.TgZ(0,"div",0),u.ALo(1,"async"),u.TgZ(2,"perun-web-apps-table-wrapper",1),u.NdJ("exportData",function(t){return e.exportData(t)}),u.YNc(3,x,2,0,"div",2),u.ALo(4,"async"),u.TgZ(5,"table",3),u.ynx(6,4),u.YNc(7,O,2,3,"th",5),u.YNc(8,P,3,5,"td",6),u.BQk(),u.ynx(9,7),u.YNc(10,D,3,3,"th",8),u.YNc(11,M,2,1,"td",9),u.BQk(),u.ynx(12,10),u.YNc(13,L,1,0,"th",8),u.YNc(14,z,2,1,"td",11),u.BQk(),u.ynx(15,12),u.YNc(16,Z,3,3,"th",8),u.YNc(17,B,3,3,"td",11),u.BQk(),u.ynx(18,13),u.YNc(19,F,3,3,"th",14),u.YNc(20,H,7,12,"td",11),u.BQk(),u.ynx(21,15),u.YNc(22,U,3,3,"th",14),u.YNc(23,q,7,12,"td",11),u.BQk(),u.ynx(24,16),u.YNc(25,G,3,3,"th",14),u.YNc(26,j,3,3,"td",11),u.BQk(),u.ynx(27,17),u.YNc(28,Y,3,3,"th",14),u.YNc(29,K,3,3,"td",11),u.BQk(),u.ynx(30,18),u.YNc(31,V,3,3,"th",14),u.YNc(32,J,3,3,"td",11),u.BQk(),u.YNc(33,Q,1,0,"tr",19),u.YNc(34,X,1,14,"tr",20),u.qZA(),u.qZA(),u.qZA(),u.YNc(35,$,3,3,"app-alert",21),u.ALo(36,"async")),2&t&&(u.Q6J("hidden",0===e.dataSource.allObjectCount&&!1===u.lcZ(1,9,e.dataSource.loading$)),u.xp6(2),u.Q6J("tableId",e.tableId)("dataLength",e.dataSource.allObjectCount)("pageSizeOptions",e.pageSizeOptions),u.xp6(1),u.Q6J("ngIf",u.lcZ(4,11,e.dataSource.loading$)),u.xp6(2),u.Q6J("dataSource",e.dataSource),u.xp6(28),u.Q6J("matHeaderRowDef",e.displayedColumns),u.xp6(1),u.Q6J("matRowDefColumns",e.displayedColumns),u.xp6(1),u.Q6J("ngIf",0===e.dataSource.allObjectCount&&!1===u.lcZ(36,13,e.dataSource.loading$)))},directives:[d.l,f.O5,p.BZ,n.YE,p.w1,p.fO,p.Dz,p.as,p.nj,g.$g,p.ge,m.oG,p.ev,n.nU,v.Hw,y.gM,p.XQ,p.Gk,_.YH,b.rH,w.w],pipes:[f.Ov,f.i8,A.X$,k.d,C.u,T.i,E.f,S.M,I.D,R.p],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;top:0;left:0;bottom:56px;right:0;background:rgba(0,0,0,.15);z-index:1;display:flex;align-items:center;justify-content:center}.italic_font[_ngcontent-%COMP%]{font-style:italic}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t}()},4252:function(t,e,i){"use strict";i.d(e,{O:function(){return tt}});var n=i(31572),r=i(58623),o=i(67033),a=i(4230),s=i(84140),c=i(6527),u=i(68416),l=i(84608),h=i(57629),d=i(82819),f=i(61511),p=i(29236),g=i(36922),m=i(43691),v=i(84534),y=i(39571),_=i(48160),b=i(22196),w=i(74842),A=i(91322),k=i(37043),C=i(99197),T=i(63720),E=i(1157);function S(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"th",24),n.TgZ(1,"mat-checkbox",25),n.NdJ("change",function(t){n.CHM(i);var e=n.oxw();return t?e.masterToggle():null}),n.qZA(),n.qZA()}if(2&t){var r=n.oxw();n.xp6(1),n.Q6J("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())}}function I(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",26),n.TgZ(1,"mat-checkbox",27),n.NdJ("change",function(t){var e=n.CHM(i).$implicit,r=n.oxw();return t?r.selection.toggle(e):null})("click",function(t){return t.stopPropagation()}),n.ALo(2,"translate"),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("aria-label",o.checkboxLabel(r))("checked",o.selection.isSelected(r))("disabled","DIRECT"!==r.membershipType)("matTooltip","DIRECT"!==r.membershipType?n.lcZ(2,4,"MEMBERS_LIST.CHECKBOX_TOOLTIP"):"")}}function R(t,e){1&t&&(n.TgZ(0,"th",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.ID")))}function x(t,e){if(1&t&&(n.TgZ(0,"td",29),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.id)}}function O(t,e){1&t&&n._UZ(0,"th",28)}function P(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"mat-icon",32),n.NdJ("click",function(){n.CHM(i);var t=n.oxw().$implicit;return n.oxw().viewMemberGroupTree(t)})("mouseenter",function(){return n.CHM(i),n.oxw(2).disableRouting=!0})("mouseleave",function(){n.CHM(i);var t=n.oxw(2);return t.disableRouting=t.disabledRouting}),n.ALo(1,"translate"),n._uU(2,"transfer_within_a_station"),n.qZA()}2&t&&n.Q6J("matTooltip",n.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function D(t,e){if(1&t&&(n.TgZ(0,"td",30),n.YNc(1,P,3,3,"mat-icon",31),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Q6J("ngIf","DIRECT"!==i.membershipType)}}function M(t,e){1&t&&(n.TgZ(0,"th",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"MEMBERS_LIST.NAME")," "))}function L(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.ALo(2,"userFullName"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i.user))}}function N(t,e){1&t&&(n.TgZ(0,"th",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"MEMBERS_LIST.STATUS")," "))}function z(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",30),n.TgZ(1,"i",33),n.NdJ("click",function(t){var e=n.CHM(i).$implicit;return n.oxw().changeStatus(t,e)}),n.ALo(2,"memberStatusIconColor"),n.ALo(3,"memberStatusTooltip"),n.TgZ(4,"span"),n._uU(5),n.ALo(6,"memberStatusIcon"),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit;n.xp6(1),n.Gre("material-icons ",n.lcZ(2,5,r.status),""),n.s9C("matTooltip",n.xi3(3,7,r,!1)),n.xp6(4),n.hij(" ",n.lcZ(6,10,r.status)," ")}}function Z(t,e){1&t&&(n.TgZ(0,"th",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")," "))}function B(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",30),n.TgZ(1,"i",33),n.NdJ("click",function(t){var e=n.CHM(i).$implicit;return n.oxw().changeStatus(t,e)}),n.ALo(2,"memberStatusIconColor"),n.ALo(3,"memberStatusTooltip"),n.TgZ(4,"span"),n._uU(5),n.ALo(6,"memberStatusIcon"),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit;n.xp6(1),n.Gre("material-icons ",n.lcZ(2,5,r.groupStatus),""),n.s9C("matTooltip",n.xi3(3,7,r,!0)),n.xp6(4),n.hij(" ",n.lcZ(6,10,r.groupStatus)," ")}}function F(t,e){1&t&&(n.TgZ(0,"th",34),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"MEMBERS_LIST.ALREADY_SPONSORED")," "))}function H(t,e){1&t&&(n.TgZ(0,"mat-icon"),n._uU(1,"check_circle_outline"),n.qZA())}function U(t,e){if(1&t&&(n.TgZ(0,"td",35),n.YNc(1,H,2,0,"mat-icon",36),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Q6J("ngIf",i.sponsored)}}function q(t,e){1&t&&(n.TgZ(0,"th",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")," "))}function G(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.ALo(2,"memberOrganization"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i))}}function j(t,e){1&t&&(n.TgZ(0,"th",28),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"MEMBERS_LIST.EMAIL")," "))}function Y(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.ALo(2,"memberEmail"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i))}}function K(t,e){1&t&&(n.TgZ(0,"th",37),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function V(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.ALo(2,"memberLogins"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(n.lcZ(2,1,i))}}function J(t,e){1&t&&n._UZ(0,"tr",38)}var Q=function(t,e){return["/organizations",t,"members",e]};function W(t,e){if(1&t&&n._UZ(0,"tr",39),2&t){var i=e.$implicit,r=n.oxw();n.ekj("cursor-pointer",!r.disabledRouting)("disable-outline",r.disableRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",r.disableRouting?null:n.WLB(6,Q,i.voId,i.id))("routerLink",r.disableRouting?null:n.WLB(9,Q,i.voId,i.id))}}function X(t,e){1&t&&(n.TgZ(0,"app-alert",40),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function $(t,e){1&t&&(n.TgZ(0,"app-alert",40),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}var tt=function(){var t=function(){function t(e,i,r,o){_classCallCheck(this,t),this.dialog=e,this.authResolver=i,this.tableCheckbox=r,this.route=o,this.selection=new a.Ov,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","sponsored","organization","email","logins"],this.disableRouting=!1,this.filter="",this.updateTable=new n.vpe,this.pageSizeOptions=s.f7,this.canBeSelected=function(t){return"DIRECT"===t.membershipType}}return _createClass(t,[{key:"matSort",set:function(t){this.sort=t}},{key:"getSortDataForColumn",value:function(t,e,i){var n;switch(e){case"id":return t.id.toString();case"fullName":return t.user?t.user.lastName?t.user.lastName:null!==(n=t.user.firstName)&&void 0!==n?n:"":"";case"status":return i.showGroupStatuses?t.groupStatus:t.status;case"organization":return(0,s.Gw)(t);case"email":return(0,s.g$)(t);default:return""}}},{key:"getFilterDataForColumn",value:function(t,e){switch(e){case"fullName":return t.user?(0,s.bD)(t.user):"";case"email":return(0,s.g$)(t);case"logins":return(0,s.lt)(t);default:return""}}},{key:"getExportDataForColumn",value:function(t,e,i){switch(e){case"id":return t.id.toString();case"fullName":return t.user?(0,s.bD)(t.user):"";case"status":return i.showGroupStatuses?t.groupStatus:t.status;case"organization":return(0,s.Gw)(t);case"email":return(0,s.g$)(t);case"logins":return(0,s.lt)(t);default:return""}}},{key:"exportData",value:function(t){(0,s.O6)((0,s.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource||(this.dataSource=new o.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=function(e,i){return(0,s.Sd)(e,i,t.displayedColumns,t.getFilterDataForColumn,t)},this.dataSource.sortData=function(e,i){return(0,s.pR)(e,i,t.getSortDataForColumn,t)}),this.dataSource.filter=this.filter,this.dataSource.data=this.members}},{key:"ngAfterViewInit",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t}))}},{key:"ngOnChanges",value:function(){var t,e=this;this.setDataSource(),this.disabledRouting=this.disableRouting,null===(t=this.route.parent)||void 0===t||t.params.subscribe(function(t){t.groupId&&(e.groupId=t.groupId)})}},{key:"isAllSelected",value:function(){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)}},{key:"masterToggle",value:function(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"changeStatus",value:function(t,e){var i=this;if(t.stopPropagation(),"INVALID"===e.status){var n=(0,s.kZ)();n.width="500px",n.data={member:e},this.dialog.open(c.pf,n).afterClosed().subscribe(function(t){t&&i.updateTable.emit(!0)})}}},{key:"viewMemberGroupTree",value:function(t){var e=(0,s.kZ)();e.width="800px",e.data={member:t,groupId:this.groupId},this.dialog.open(c.jd,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(l.uw),n.Y36(u.x4),n.Y36(u.UA),n.Y36(h.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-members-list"]],viewQuery:function(t,e){var i;(1&t&&(n.Gf(r.YE,7),n.Gf(s.l9,7)),2&t)&&(n.iGM(i=n.CRH())&&(e.matSort=i.first),n.iGM(i=n.CRH())&&(e.child=i.first))},inputs:{showGroupStatuses:"showGroupStatuses",members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",disableRouting:"disableRouting",filter:"filter"},outputs:{updateTable:"updateTable"},features:[n.TTD],decls:37,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","type"],["mat-cell","",4,"matCellDef"],["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(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,S,2,3,"th",4),n.YNc(5,I,3,6,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,R,3,3,"th",7),n.YNc(8,x,2,1,"td",8),n.BQk(),n.ynx(9,9),n.YNc(10,O,1,0,"th",7),n.YNc(11,D,2,1,"td",10),n.BQk(),n.ynx(12,11),n.YNc(13,M,3,3,"th",7),n.YNc(14,L,3,3,"td",10),n.BQk(),n.ynx(15,12),n.YNc(16,N,3,3,"th",7),n.YNc(17,z,7,12,"td",10),n.BQk(),n.ynx(18,13),n.YNc(19,Z,3,3,"th",7),n.YNc(20,B,7,12,"td",10),n.BQk(),n.ynx(21,14),n.YNc(22,F,3,3,"th",15),n.YNc(23,U,2,1,"td",16),n.BQk(),n.ynx(24,17),n.YNc(25,q,3,3,"th",7),n.YNc(26,G,3,3,"td",10),n.BQk(),n.ynx(27,18),n.YNc(28,j,3,3,"th",7),n.YNc(29,Y,3,3,"td",10),n.BQk(),n.ynx(30,19),n.YNc(31,K,3,3,"th",20),n.YNc(32,V,3,3,"td",10),n.BQk(),n.YNc(33,J,1,0,"tr",21),n.YNc(34,W,1,12,"tr",22),n.qZA(),n.qZA(),n.qZA(),n.YNc(35,X,3,3,"app-alert",23),n.YNc(36,$,3,3,"app-alert",23)),2&t&&(n.Q6J("hidden",0===e.members.length||!e.dataSource||0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("tableId",e.tableId)("pageSizeOptions",e.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(31),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0!==e.members.length&&0===e.dataSource.filteredData.length),n.xp6(1),n.Q6J("ngIf",0===e.members.length))},directives:[d.l,o.BZ,r.YE,o.w1,o.fO,o.Dz,o.as,o.nj,f.O5,o.ge,p.oG,o.ev,g.gM,r.nU,m.Hw,o.XQ,o.Gk,v.YH,h.rH,y.w],pipes:[_.X$,b.d,w.u,A.i,k.f,C.M,T.D,E.p],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}td[_ngcontent-%COMP%], th[_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}"]}),t}()},11418:function(t,e,i){"use strict";i.d(e,{c:function(){return f}});var n=i(31572),r=i(68416),o=i(84140),a=i(6527),s=i(84608),c=i(61511),u=i(43691),l=i(48160);function h(t,e){if(1&t&&(n.TgZ(0,"div",5),n.TgZ(1,"mat-icon"),n._uU(2),n.qZA(),n.qZA()),2&t){var i=n.oxw();n.xp6(2),n.Oqu(i.data.icon)}}function d(t,e){if(1&t&&(n.TgZ(0,"div",6),n._uU(1),n.qZA()),2&t){var i=n.oxw();n.xp6(1),n.hij(" ",i.showTimestamp()," ")}}var f=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.dialog=e,this.notificationStorageService=i,this.newNotification=!1,this.closeNotification=new n.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}return _createClass(t,[{key:"doAction",value:function(){var t=this;if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{var e=(0,o.kZ)();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(a.FM,e).afterClosed().subscribe(function(){t.closeSelf()})}}},{key:"closeSelf",value:function(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}},{key:"ngOnInit",value:function(){var t=this;(0,o.ys)(this.data.delay,function(){t.alreadyClosed||t.waiting||t.closeSelf()})}},{key:"showTimestamp",value:function(){var t=_slicedToArray(this.data.timeStamp.split(":"),2),e=t[0],i=t[1];return i.length<2?e+":0"+i:this.data.timeStamp}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(s.uw),n.Y36(r.SZ))},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"div"),n.TgZ(1,"div",0),n.NdJ("click",function(){return e.alreadyClosed||e.waiting?"":e.closeSelf()}),n.YNc(2,h,3,1,"div",1),n.TgZ(3,"div",2),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.YNc(6,d,2,1,"div",3),n.TgZ(7,"div",4),n.NdJ("click",function(){return e.waiting=!0,e.doAction()}),n._uU(8),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.Gre("notification ",e.inDialog?"":"mat-elevation-z7",""),n.ekj("error","error"===e.data.type)("success","success"===e.data.type),n.xp6(2),n.Q6J("ngIf",null!==e.data.icon),n.xp6(2),n.hij(" ",n.lcZ(5,12,e.data.title)," "),n.xp6(2),n.Q6J("ngIf",e.inDialog),n.xp6(1),n.Q6J("hidden",e.alreadyPressed),n.xp6(1),n.hij(" ",e.data.actionText," "))},directives:[c.O5,u.Hw],pipes:[l.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}"]}),t}()},67474:function(t,e,i){"use strict";i.d(e,{$:function(){return L}});var n=i(68416),r=i(65249),o=i(31572),a=i(84608),s=i(48160),c=i(66283),u=i(80340),l=i(16073),h=i(61511),d=i(15980);function f(t,e){1&t&&(o.TgZ(0,"mat-error"),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&t&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}var p=function(){var t=function(){function t(e,i,n,r,o){_classCallCheck(this,t),this.dialogRef=e,this.translate=i,this.notificator=n,this.rtMessages=r,this.storeService=o,this.message="",this.subject="",this.instanceName=""}return _createClass(t,[{key:"ngOnInit",value:function(){this.instanceName=this.storeService.get("config")}},{key:"sendBugReport",value:function(){var t=this;this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(function(e){t.dialogRef.afterClosed().subscribe(function(){return t.notificator.showSuccess(t.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+e.ticketNumber)}),t.dialogRef.close()})}},{key:"getFullEmailBody",value:function(){return this.message+"\n ------------------------\n Perun instance: "+this.instanceName+"\n Sended from new Perun Gui, version: "+i(60306).i8}},{key:"close",value:function(){this.dialogRef.close()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Y36(a.so),o.Y36(s.sK),o.Y36(n.V6),o.Y36(r.Hr),o.Y36(n.d6))},t.\u0275cmp=o.Xpm({type:t,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(t,e){if(1&t&&(o.TgZ(0,"h1",0),o._uU(1),o.ALo(2,"translate"),o.qZA(),o.TgZ(3,"div",1),o.TgZ(4,"mat-form-field"),o.TgZ(5,"mat-label"),o._uU(6),o.ALo(7,"translate"),o.qZA(),o.TgZ(8,"input",2,3),o.NdJ("ngModelChange",function(t){return e.subject=t}),o.qZA(),o.YNc(10,f,3,3,"mat-error",4),o.qZA(),o.TgZ(11,"mat-form-field"),o.TgZ(12,"mat-label"),o._uU(13),o.ALo(14,"translate"),o.qZA(),o.TgZ(15,"textarea",5),o.NdJ("ngModelChange",function(t){return e.message=t}),o.ALo(16,"translate"),o._uU(17," "),o.qZA(),o.TgZ(18,"mat-hint"),o._uU(19),o.ALo(20,"translate"),o.qZA(),o.qZA(),o.qZA(),o.TgZ(21,"div",6),o.TgZ(22,"div",7),o.TgZ(23,"button",8),o.NdJ("click",function(){return e.close()}),o._uU(24),o.ALo(25,"translate"),o.qZA(),o.TgZ(26,"button",9),o.NdJ("click",function(){return e.sendBugReport()}),o._uU(27),o.ALo(28,"translate"),o.qZA(),o.qZA(),o.qZA()),2&t){var i=o.MAs(9);o.xp6(1),o.Oqu(o.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),o.xp6(5),o.Oqu(o.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),o.xp6(2),o.Q6J("ngModel",e.subject),o.xp6(2),o.Q6J("ngIf",i.invalid),o.xp6(3),o.Oqu(o.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),o.xp6(2),o.s9C("placeholder",o.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),o.Q6J("ngModel",e.message),o.xp6(4),o.Oqu(o.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),o.xp6(5),o.hij(" ",o.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),o.xp6(2),o.Q6J("disabled",i.invalid),o.xp6(1),o.hij(" ",o.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[a.uh,a.xY,c.KE,c.hX,u.Nt,l.Fj,l.Q7,l.JJ,l.On,h.O5,c.bx,a.H8,d.lW,c.TO],pipes:[s.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t}(),g=i(84140),m=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t,e,i){return t["".concat(i,"_").concat(e)]}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"localisedText",type:t,pure:!0}),t}(),v=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t,e){return t["link_"+e]||t.link_en}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"localisedLink",type:t,pure:!0}),t}(),y=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){return t.includes("/")?t:"/assets/config/"+t}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"footerLogoPath",type:t,pure:!0}),t}();function _(t,e){if(1&t&&(o.TgZ(0,"a",13),o.ALo(1,"localisedLink"),o._UZ(2,"img",14),o.ALo(3,"footerLogoPath"),o.qZA()),2&t){var i=o.oxw().$implicit,n=o.oxw(3);o.Q6J("href",o.xi3(1,2,i,n.language),o.LSH),o.xp6(2),o.s9C("src",o.lcZ(3,5,i.logo),o.LSH)}}function b(t,e){if(1&t&&(o.TgZ(0,"span"),o._UZ(1,"img",14),o.ALo(2,"footerLogoPath"),o.qZA()),2&t){var i=o.oxw().$implicit;o.xp6(1),o.s9C("src",o.lcZ(2,1,i.logo),o.LSH)}}function w(t,e){if(1&t&&(o.TgZ(0,"div"),o.YNc(1,_,4,7,"a",11),o.ALo(2,"localisedLink"),o.YNc(3,b,3,3,"span",12),o.ALo(4,"localisedLink"),o.qZA()),2&t){var i=e.$implicit,n=o.oxw(3);o.xp6(1),o.Q6J("ngIf",o.xi3(2,2,i,n.language)),o.xp6(2),o.Q6J("ngIf",!o.xi3(4,5,i,n.language))}}var A=function(t){return{"min-height":t}};function k(t,e){if(1&t&&(o.TgZ(0,"div",10),o.YNc(1,w,5,8,"div",5),o.qZA()),2&t){var i=o.oxw().$implicit,n=o.oxw();o.Q6J("ngStyle",o.VKq(2,A,n.columnContentHeight+"px")),o.xp6(1),o.Q6J("ngForOf",i.elements)}}var C=function(t){return{color:t}};function T(t,e){if(1&t&&(o.TgZ(0,"i",20),o._uU(1),o.qZA()),2&t){var i=o.oxw().$implicit,n=o.oxw(3);o.Q6J("ngStyle",o.VKq(2,C,n.linksTextColor)),o.xp6(1),o.hij(" ",i.icon," ")}}function E(t,e){if(1&t){var i=o.EpF();o.TgZ(0,"span",21),o.NdJ("click",function(){o.CHM(i);var t=o.oxw().$implicit;return o.oxw(3).openDialog(t.dialog)}),o._uU(1),o.ALo(2,"localisedText"),o.qZA()}if(2&t){var n=o.oxw().$implicit,r=o.oxw(3);o.Q6J("ngStyle",o.VKq(6,C,r.linksTextColor)),o.xp6(1),o.hij("",o.Dn7(2,2,n,r.language,"label")," ")}}function S(t,e){if(1&t&&(o.TgZ(0,"a",22),o.ALo(1,"localisedLink"),o._uU(2),o.ALo(3,"localisedText"),o.qZA()),2&t){var i=o.oxw().$implicit,n=o.oxw(3);o.Q6J("href",o.xi3(1,3,i,n.language),o.LSH)("ngStyle",o.VKq(10,C,n.linksTextColor)),o.xp6(2),o.Oqu(o.Dn7(3,6,i,n.language,"label"))}}function I(t,e){if(1&t&&(o.TgZ(0,"span",10),o._uU(1),o.ALo(2,"localisedText"),o.qZA()),2&t){var i=o.oxw().$implicit,n=o.oxw(3);o.Q6J("ngStyle",o.VKq(6,C,n.linksTextColor)),o.xp6(1),o.Oqu(o.Dn7(2,2,i,n.language,"label"))}}function R(t,e){if(1&t&&(o.TgZ(0,"div",16),o.YNc(1,T,2,4,"i",17),o.YNc(2,E,3,8,"span",18),o.YNc(3,S,4,12,"a",19),o.ALo(4,"localisedLink"),o.YNc(5,I,3,8,"span",9),o.ALo(6,"localisedLink"),o.qZA()),2&t){var i=e.$implicit,n=o.oxw(3);o.xp6(1),o.Q6J("ngIf",i.icon),o.xp6(1),o.Q6J("ngIf",i.dialog),o.xp6(1),o.Q6J("ngIf",o.xi3(4,4,i,n.language)&&!i.dialog),o.xp6(2),o.Q6J("ngIf",!o.xi3(6,7,i,n.language)&&!i.dialog)}}var x=function(t){return{height:t}};function O(t,e){if(1&t&&(o.TgZ(0,"div",10),o.YNc(1,R,7,10,"div",15),o.qZA()),2&t){var i=o.oxw().$implicit,n=o.oxw();o.Q6J("ngStyle",o.VKq(2,x,n.columnContentHeight+"px")),o.xp6(1),o.Q6J("ngForOf",i.elements)}}function P(t,e){if(1&t&&(o.TgZ(0,"div",7),o.TgZ(1,"h6",8),o._uU(2),o.ALo(3,"localisedText"),o.qZA(),o.YNc(4,k,2,4,"div",9),o.YNc(5,O,2,4,"div",9),o.qZA()),2&t){var i=e.$implicit,n=o.oxw();o.ekj("my-auto",n.containsLogos),o.xp6(1),o.Q6J("ngStyle",o.VKq(10,C,n.headersTextColor)),o.xp6(1),o.hij(" ",o.Dn7(3,6,i,n.language,"title")," "),o.xp6(2),o.Q6J("ngIf",i.logos),o.xp6(1),o.Q6J("ngIf",i.elements&&!i.logos)}}function D(t,e){if(1&t&&(o.TgZ(0,"span"),o.TgZ(1,"a",6),o._uU(2),o.qZA(),o.qZA()),2&t){var i=e.$implicit,n=e.index,r=o.oxw();o.xp6(1),o.Q6J("href",i.url,o.LSH)("ngStyle",o.VKq(3,C,r.copyrightTextColor)),o.xp6(1),o.Oqu(n?", "+i.name:i.name)}}var M=function(t){return{background:t}},L=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.storeService=e,this.translateService=i,this.dialog=n,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.items=[],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}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.translateService.onLangChange.subscribe(function(e){t.language=e.lang}),this.version=i(60306).i8,this.items=this.storeService.get("footer","columns");var e,n=_createForOfIteratorHelper(this.items);try{for(n.s();!(e=n.n()).done;){var r=e.value;r.logos?this.containsLogos=!0:25*r.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*r.elements.length)}}catch(o){n.e(o)}finally{n.f()}this.copyrightItems=this.storeService.get("footer","copyright_items")}},{key:"openDialog",value:function(t){var e=(0,g.kZ)();switch(t){case"reportIssue":e.width="550px",this.dialog.open(p,e)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.d6),o.Y36(s.sK),o.Y36(a.uw))},t.\u0275cmp=o.Xpm({type:t,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(t,e){1&t&&(o.TgZ(0,"footer",0),o.TgZ(1,"div",1),o.YNc(2,P,6,12,"div",2),o.qZA(),o._UZ(3,"hr",3),o.TgZ(4,"div",4),o._uU(5),o.YNc(6,D,3,5,"span",5),o._uU(7," Version "),o.TgZ(8,"a",6),o._uU(9),o.qZA(),o.qZA(),o.qZA()),2&t&&(o.Q6J("ngStyle",o.VKq(8,M,e.bgColor)),o.xp6(2),o.Q6J("ngForOf",e.items),o.xp6(2),o.Q6J("ngStyle",o.VKq(10,C,e.copyrightTextColor)),o.xp6(1),o.hij(" \xa9 ",e.currentYear," Copyright: "),o.xp6(1),o.Q6J("ngForOf",e.copyrightItems),o.xp6(2),o.Q6J("href",e.githubRepository,o.LSH)("ngStyle",o.VKq(12,C,e.copyrightTextColor)),o.xp6(1),o.Oqu(e.version))},directives:[h.PC,h.sg,h.O5],pipes:[m,v,y],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}"]}),t}()},72953:function(t,e,i){"use strict";i.d(e,{W:function(){return u}});var n=i(31572),r=i(61511),o=i(43691),a=i(36922),s=i(48160);function c(t,e){1&t&&(n.TgZ(0,"mat-icon",1),n.ALo(1,"translate"),n._uU(2," visibility\n"),n.qZA()),2&t&&n.s9C("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}var u=function(){var t=function t(){_classCallCheck(this,t),this.recentIds=[]};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&n.YNc(0,c,3,3,"mat-icon",0),2&t&&n.Q6J("ngIf",e.recentIds.indexOf(e.id)>-1)},directives:[r.O5,o.Hw,a.gM],pipes:[s.X$],styles:[".disabled-icon[_ngcontent-%COMP%]{color:rgba(0,0,0,.26)}"]}),t}()},59403:function(t,e,i){"use strict";i.d(e,{t:function(){return c}});var n=i(31572),r=i(15980),o=i(36922),a=i(43691),s=i(48160),c=function(){var t=function(){function t(){_classCallCheck(this,t),this.refresh=new n.vpe}return _createClass(t,[{key:"onClickbutton",value:function(t){this.refresh.emit(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.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(t,e){1&t&&(n.TgZ(0,"button",0),n.NdJ("click",function(t){return e.onClickbutton(t)}),n.ALo(1,"translate"),n._UZ(2,"mat-icon",1),n.qZA()),2&t&&(n.s9C("matTooltip",n.lcZ(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),n.Q6J("disabled",e.disabled),n.xp6(2),n.s9C("svgIcon",e.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},directives:[r.lW,o.gM,a.Hw],pipes:[s.X$],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%], .perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%], .perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}"]}),t}()},88884:function(t,e,i){"use strict";i.d(e,{C:function(){return V}});var n=i(31572),r=i(58623),o=i(67033),a=i(4230),s=i(84140),c=i(68416),u=i(82819),l=i(61511),h=i(29236),d=i(36922),f=i(72953),p=i(43691),g=i(46837),m=i(84534),v=i(57629),y=i(39571),_=i(48160),b=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){if(null==t)return null;var e="";return t.forEach(function(t){e=e.concat(t.tagName)}),e}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"resourceTagsToString",type:t,pure:!0}),t}(),w=i(95603);function A(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"th",22),n.TgZ(1,"mat-checkbox",23),n.NdJ("change",function(t){n.CHM(i);var e=n.oxw();return t?e.masterToggle():null}),n.qZA(),n.qZA()}if(2&t){var r=n.oxw();n.xp6(1),n.Q6J("aria-label",r.checkboxLabel())("checked",r.selection.hasValue()&&r.isAllSelected())("indeterminate",r.selection.hasValue()&&!r.isAllSelected())}}function k(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",24),n.TgZ(1,"span",25),n.ALo(2,"translate"),n.TgZ(3,"mat-checkbox",26),n.NdJ("change",function(t){var e=n.CHM(i).$implicit,r=n.oxw();return t?r.itemSelectionToggle(e):null})("click",function(t){return t.stopPropagation()}),n.qZA(),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.s9C("matTooltip",n.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE")),n.Q6J("matTooltipPosition","above")("matTooltipDisabled",!o.disableSelect(r)),n.xp6(2),n.Q6J("aria-label",o.checkboxLabel(r))("checked",o.selection.isSelected(r))("disabled",o.disableSelect(r))}}function C(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")," "))}function T(t,e){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.id)}}function E(t,e){1&t&&n._UZ(0,"th",29)}function S(t,e){if(1&t&&(n.TgZ(0,"td",30),n._UZ(1,"perun-web-apps-recently-viewed-icon",31),n.qZA()),2&t){var i=e.$implicit,r=n.oxw();n.xp6(1),n.Q6J("recentIds",r.recentIds)("id",i.id)}}function I(t,e){1&t&&n._UZ(0,"th",29)}function R(t,e){1&t&&(n.TgZ(0,"mat-icon",33),n.ALo(1,"translate"),n._uU(2,"account_tree"),n.qZA()),2&t&&n.Q6J("matTooltip",n.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE"))}function x(t,e){if(1&t&&(n.TgZ(0,"td",30),n.YNc(1,R,3,3,"mat-icon",32),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Q6J("ngIf",i.sourceGroupId)}}function O(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")," "))}function P(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.name)}}function D(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")," "))}function M(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.vo.name)}}function L(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")," "))}function N(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"td",30),n.TgZ(1,"perun-web-apps-group-resource-status",34),n.NdJ("mouseenter",function(){return n.CHM(i),n.oxw().disabledRouting=!0})("mouseleave",function(){n.CHM(i);var t=n.oxw();return t.disabledRouting=t.disableRouting})("statusChange",function(){return n.CHM(i),n.oxw().refreshTable.emit()}),n.qZA(),n.qZA()}if(2&t){var r=e.$implicit,o=n.oxw();n.xp6(1),n.Q6J("theme","group-theme")("resourceId",r.id)("groupId",o.groupId)("failureCause",r.failureCause)("status",r.status)}}function z(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")," "))}function Z(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.facility.name)}}function B(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")," "))}function F(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.ALo(2,"resourceTagsToString"),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,i.resourceTags)," ")}}function H(t,e){1&t&&(n.TgZ(0,"th",27),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")," "))}function U(t,e){if(1&t&&(n.TgZ(0,"td",30),n._uU(1),n.qZA()),2&t){var i=e.$implicit;n.xp6(1),n.Oqu(i.description)}}function q(t,e){1&t&&n._UZ(0,"tr",35)}var G=function(t){return[t]};function j(t,e){if(1&t&&(n._UZ(0,"tr",36),n.ALo(1,"getResourceRoute"),n.ALo(2,"getResourceRoute")),2&t){var i=e.$implicit,r=n.oxw();n.ekj("cursor-pointer",!r.disableRouting)("disable-outline",r.disabledRouting),n.Q6J("perunWebAppsMiddleClickRouterLink",n.VKq(12,G,r.disabledRouting?null:n.xi3(1,6,i,r.routingVo)))("routerLink",r.disabledRouting?null:n.xi3(2,9,i,r.routingVo))}}function Y(t,e){1&t&&(n.TgZ(0,"app-alert",37),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function K(t,e){1&t&&(n.TgZ(0,"app-alert",37),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}var V=function(){var t=function(){function t(e,i){var r=this;_classCallCheck(this,t),this.guiAuthResolver=e,this.tableCheckbox=i,this.resources=[],this.selection=new a.Ov(!0,[]),this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","indirectResourceAssigment","name","vo","status","facility","tags","description"],this.pageSizeOptions=s.f7,this.groupId=null,this.resourcesToDisableCheckbox=new Set,this.refreshTable=new n.vpe,this.allSelected=new n.vpe,this.removeAuth=!1,this.addAuth=!1,this.canBeSelected=function(t){return!r.disableSelect(t)}}return _createClass(t,[{key:"matSort",set:function(t){this.sort=t}},{key:"ngOnInit",value:function(){this.disabledRouting=this.disableRouting}},{key:"ngOnChanges",value:function(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.setDataSource(),this.setAuth()}},{key:"getDataForColumn",value:function(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return t.vo.name;case"name":return t.name;case"facility":return t.facility.name;case"description":return t.description;case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;case"tags":if(!t.resourceTags)return t[e];var n="";return t.resourceTags.forEach(function(t){n=n.concat(t.tagName)}),n;case"status":return t.status;case"uuid":return t.uuid;default:return t[e]}}},{key:"exportData",value:function(t){(0,s.O6)((0,s.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource||(this.dataSource=new o.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=function(e,i){return(0,s.Sd)(e,i,t.displayedColumns,t.getDataForColumn,t,!0)},this.dataSource.sortData=function(e,i){return(0,s.pR)(e,i,t.getDataForColumn,t)}),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}},{key:"isAllSelected",value:function(){var t=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(t),t}},{key:"masterToggle",value:function(){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()}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"setAuth",value:function(){var t=this,e=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce(function(i,n){return i&&t.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",e.concat([n]))},!0),this.addAuth=this.selection.selected.reduce(function(i,n){return i&&t.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",e.concat([n]))},!0)}},{key:"itemSelectionToggle",value:function(t){this.selection.toggle(t),this.setAuth()}},{key:"disableSelect",value:function(t){return this.resourcesToDisableCheckbox.has(t.id)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(c.x4),n.Y36(c.UA))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(t,e){var i;(1&t&&(n.Gf(r.YE,7),n.Gf(s.l9,7)),2&t)&&(n.iGM(i=n.CRH())&&(e.matSort=i.first),n.iGM(i=n.CRH())&&(e.child=i.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:[n.TTD],decls:37,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","status"],["matColumnDef","facility"],["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(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"perun-web-apps-table-wrapper",1),n.NdJ("exportData",function(t){return e.exportData(t)}),n.TgZ(2,"table",2),n.ynx(3,3),n.YNc(4,A,2,3,"th",4),n.YNc(5,k,4,8,"td",5),n.BQk(),n.ynx(6,6),n.YNc(7,C,3,3,"th",7),n.YNc(8,T,2,1,"td",8),n.BQk(),n.ynx(9,9),n.YNc(10,E,1,0,"th",10),n.YNc(11,S,2,2,"td",11),n.BQk(),n.ynx(12,12),n.YNc(13,I,1,0,"th",10),n.YNc(14,x,2,1,"td",11),n.BQk(),n.ynx(15,13),n.YNc(16,O,3,3,"th",7),n.YNc(17,P,2,1,"td",11),n.BQk(),n.ynx(18,14),n.YNc(19,D,3,3,"th",7),n.YNc(20,M,2,1,"td",11),n.BQk(),n.ynx(21,15),n.YNc(22,L,3,3,"th",7),n.YNc(23,N,2,5,"td",11),n.BQk(),n.ynx(24,16),n.YNc(25,z,3,3,"th",7),n.YNc(26,Z,2,1,"td",11),n.BQk(),n.ynx(27,17),n.YNc(28,B,3,3,"th",7),n.YNc(29,F,3,3,"td",11),n.BQk(),n.ynx(30,18),n.YNc(31,H,3,3,"th",7),n.YNc(32,U,2,1,"td",11),n.BQk(),n.YNc(33,q,1,0,"tr",19),n.YNc(34,j,3,14,"tr",20),n.qZA(),n.qZA(),n.qZA(),n.YNc(35,Y,3,3,"app-alert",21),n.YNc(36,K,3,3,"app-alert",21)),2&t&&(n.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.resources.length),n.xp6(1),n.Q6J("dataLength",e.dataSource.filteredData.length)("tableId",e.tableId)("pageSizeOptions",e.pageSizeOptions),n.xp6(1),n.Q6J("dataSource",e.dataSource),n.xp6(31),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.resources.length),n.xp6(1),n.Q6J("ngIf",0===e.resources.length))},directives:[u.l,o.BZ,r.YE,o.w1,o.fO,o.Dz,o.as,o.nj,l.O5,o.ge,h.oG,o.ev,d.gM,r.nU,f.W,p.Hw,g.x,o.XQ,o.Gk,m.YH,v.rH,y.w],pipes:[_.X$,b,w.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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t}()},94327:function(t,e,i){"use strict";i.d(e,{qG:function(){return s},$x:function(){return c}});var n=i(31572),r=i(48160),o=i(44973),a=function t(e,i){_classCallCheck(this,t),this.value=i,this.displayName=e},s=function(t){return t[t.SOURCE=0]="SOURCE",t[t.DESTINATION=1]="DESTINATION",t[t.FEDERATION=2]="FEDERATION",t}({}),c=function(){var t=function(){function t(e){_classCallCheck(this,t),this.translateService=e,this.attributes=[],this.asGroup=!1,this.itemSelected=new n.vpe,this.items=[],this.nameFunction=function(t){return t.displayName},this.shortNameFunction=function(){return null},this.searchFunction=function(t){return t.displayName}}return _createClass(t,[{key:"ngOnInit",value:function(){this.type===s.FEDERATION?(this.getFederationAttributes(),this.getFederationAttribute()):this.createSelectionItems(),this.sortAttributes(this.items)}},{key:"createSelectionItems",value:function(){var e=this;this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(function(t){var i=new a(t,"");e.items.push(i),e.item=i});var i,n=_createForOfIteratorHelper(this.attributes);try{for(n.s();!(i=n.n()).done;){var r=i.value,o=new a(r.friendlyName+" ("+r.entity+" / "+t.getDefinition(r)+")",r.namespace+":"+r.friendlyName);o.value===this.selectedAttribute&&(this.item=o),("user"===r.entity.toLowerCase()||"member"===r.entity.toLowerCase()||"vo"===r.entity.toLowerCase()&&this.type===s.SOURCE||"group"===r.entity.toLowerCase()&&this.asGroup&&this.type===s.SOURCE)&&this.items.push(o)}}catch(c){n.e(c)}finally{n.f()}}},{key:"getFederationAttributes",value:function(){var t=this;this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(function(e){t.items.push(new a(e,"")),t.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.CUSTOM_VALUE").subscribe(function(e){t.items.push(new a(e,"custom")),t.items.push(new a("Display name","displayName")),t.items.push(new a("Common name","cn")),t.items.push(new a("Mail","mail")),t.items.push(new a("Organization","o")),t.items.push(new a("Level of Assurance (LoA)","loa")),t.items.push(new a("First name","givenName")),t.items.push(new a("Surname","sn")),t.items.push(new a("EPPN","eppn")),t.items.push(new a("IdP Category","md_entityCategory")),t.items.push(new a("IdP Affiliation","affiliation")),t.items.push(new a("EduPersonScopedAffiliation","eduPersonScopedAffiliation")),t.items.push(new a("Forwarded Affiliation from Proxy","forwardedScopedAffiliation")),t.items.push(new a("schacHomeOrganization","schacHomeOrganization")),t.items.push(new a("Login","uid")),t.items.push(new a("Alternative login name","alternativeLoginName"))})})}},{key:"getFederationAttribute",value:function(){var t,e=_createForOfIteratorHelper(this.items);try{for(e.s();!(t=e.n()).done;){var i=t.value;if(i.value===this.selectedAttribute)return void(this.item=i)}}catch(n){e.e(n)}finally{e.f()}}},{key:"sortAttributes",value:function(t){t.sort(function(t,e){return""===t.value?-1:""===e.value?1:t.displayName.localeCompare(e.displayName)})}}],[{key:"getDefinition",value:function(t){var e=t.namespace.split(":");return null===e[4]?"null":e[4]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(r.sK))},t.\u0275cmp=n.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(t,e){1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.itemSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t&&n.Q6J("entities",e.items)("entity",e.item)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.shortNameFunction)("selectPlaceholder",n.lcZ(1,8,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",n.lcZ(2,10,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",n.lcZ(3,12,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},directives:[o.i],pipes:[r.X$],styles:[""]}),t}()},23888:function(t,e,i){"use strict";i.d(e,{j:function(){return N}});var n=i(4230),r=i(58623),o=i(67033),a=i(68416),s=i(84140),c=i(31572),u=i(57629),l=i(82819),h=i(61511),d=i(36922),f=i(29236),p=i(84534),g=i(39571),m=i(48160),v=i(83787),y=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){var e=t.find(function(t){return"mail"===t.friendlyName});return e?e.value.toString():"N/A"}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=c.Yjl({name:"getMailFromAttributes",type:t,pure:!0}),t}();function _(t,e){1&t&&c._UZ(0,"th",18)}function b(t,e){if(1&t){var i=c.EpF();c.TgZ(0,"td",19),c.TgZ(1,"span",20),c.ALo(2,"translate"),c.ALo(3,"customTranslate"),c.TgZ(4,"mat-checkbox",21),c.NdJ("change",function(t){var e=c.CHM(i).$implicit,n=c.oxw();return t?n.selection.toggle(e):null})("click",function(t){return t.stopPropagation()}),c.qZA(),c.qZA(),c.qZA()}if(2&t){var n=e.$implicit,r=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",!n.userExtSource.persistent),c.xp6(3),c.Q6J("aria-label",r.checkboxLabel(n))("checked",r.selection.isSelected(n))("disabled",n.userExtSource.persistent)}}function w(t,e){1&t&&(c.TgZ(0,"th",22),c._uU(1),c.ALo(2,"translate"),c.ALo(3,"customTranslate"),c.qZA()),2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,c.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))," "))}function A(t,e){if(1&t&&(c.TgZ(0,"td",23),c._uU(1),c.qZA()),2&t){var i=e.$implicit;c.xp6(1),c.hij(" ",i.userExtSource.id," ")}}function k(t,e){1&t&&(c.TgZ(0,"th",24),c._uU(1),c.ALo(2,"translate"),c.ALo(3,"customTranslate"),c.qZA()),2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,c.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))," "))}function C(t,e){if(1&t&&(c.TgZ(0,"td",23),c._uU(1),c.ALo(2,"getMailFromAttributes"),c.qZA()),2&t){var i=e.$implicit;c.xp6(1),c.hij(" ",c.lcZ(2,1,i.attributes)," ")}}function T(t,e){if(1&t&&(c.TgZ(0,"th",22),c._uU(1),c.ALo(2,"translate"),c.ALo(3,"customTranslate"),c.qZA()),2&t){var i=c.oxw();c.xp6(1),c.hij(" ",c.lcZ(2,1,c.lcZ(3,3,i.extSourceNameHeader?i.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME"))," ")}}function E(t,e){if(1&t&&(c.TgZ(0,"td",23),c._uU(1),c.qZA()),2&t){var i=e.$implicit;c.xp6(1),c.hij(" ",i.userExtSource.extSource.name," ")}}function S(t,e){if(1&t&&(c.TgZ(0,"th",22),c._uU(1),c.ALo(2,"translate"),c.ALo(3,"customTranslate"),c.qZA()),2&t){var i=c.oxw();c.xp6(1),c.hij(" ",c.lcZ(2,1,c.lcZ(3,3,i.loginHeader?i.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN"))," ")}}function I(t,e){if(1&t&&(c.TgZ(0,"td",23),c._uU(1),c.qZA()),2&t){var i=e.$implicit;c.xp6(1),c.hij(" ",i.userExtSource.login," ")}}function R(t,e){1&t&&(c.TgZ(0,"th",22),c._uU(1),c.ALo(2,"translate"),c.ALo(3,"customTranslate"),c.qZA()),2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,c.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))," "))}function x(t,e){if(1&t&&(c.TgZ(0,"td",25),c._uU(1),c.ALo(2,"date"),c.qZA()),2&t){var i=e.$implicit;c.xp6(1),c.hij(" ",c.xi3(2,1,i.userExtSource.lastAccess,"d.M.y H:mm:ss")," ")}}function O(t,e){1&t&&c._UZ(0,"tr",26)}var P=function(t,e){return["/admin","users",t,"identities",e]};function D(t,e){if(1&t&&c._UZ(0,"tr",27),2&t){var i=e.$implicit,n=c.oxw();c.ekj("cursor-pointer",!n.disableRouting)("disable-outline",n.disableRouting),c.Q6J("perunWebAppsMiddleClickRouterLink",n.disableRouting?null:c.WLB(6,P,n.userId,i.userExtSource.id))("routerLink",n.disableRouting?null:c.WLB(9,P,n.userId,i.userExtSource.id))}}function M(t,e){1&t&&(c.TgZ(0,"app-alert",28),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function L(t,e){1&t&&(c.TgZ(0,"app-alert",28),c._uU(1),c.ALo(2,"translate"),c.ALo(3,"customTranslate"),c.qZA()),2&t&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,c.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}var N=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.route=e,this.authResolver=i,this.selection=new n.Ov,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSizeOptions=s.f7}return _createClass(t,[{key:"matSort",set:function(t){this.sort=t,this.setDataSource()}},{key:"ngOnInit",value:function(){var t=this;this.disableRouting||this.route.parent.params.subscribe(function(e){t.userId=e.userId}),this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.dataSource=new o.by(this.userExtSources),this.setDataSource()}},{key:"getDataForColumn",value:function(t,e){switch(e){case"id":return t.userExtSource.id.toString();case"mail":var i=t.attributes.find(function(t){return"mail"===t.friendlyName});return i?i.value.toString():"N/A";case"extSourceName":return t.userExtSource.extSource.name;case"login":return t.userExtSource.login;case"lastAccess":return t.userExtSource.lastAccess.split(".")[0];default:return t[e]}}},{key:"exportData",value:function(t){(0,s.O6)((0,s.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource&&(this.dataSource.filterPredicate=function(e,i){return(0,s.Sd)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return(0,s.pR)(e,i,t.getDataForColumn,t)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}},{key:"checkboxLabel",value:function(t){return"".concat(this.selection.isSelected(t.userExtSource)?"deselect":"select"," row ").concat(t.userExtSource.id+1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(c.Y36(u.gz),c.Y36(a.x4))},t.\u0275cmp=c.Xpm({type:t,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(t,e){var i;(1&t&&(c.Gf(s.l9,7),c.Gf(r.YE,7)),2&t)&&(c.iGM(i=c.CRH())&&(e.child=i.first),c.iGM(i=c.CRH())&&(e.matSort=i.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(t,e){1&t&&(c.TgZ(0,"div",0),c.TgZ(1,"perun-web-apps-table-wrapper",1),c.NdJ("exportData",function(t){return e.exportData(t)}),c.TgZ(2,"table",2),c.ynx(3,3),c.YNc(4,_,1,0,"th",4),c.YNc(5,b,5,10,"td",5),c.BQk(),c.ynx(6,6),c.YNc(7,w,4,5,"th",7),c.YNc(8,A,2,1,"td",8),c.BQk(),c.ynx(9,9),c.YNc(10,k,4,5,"th",10),c.YNc(11,C,3,3,"td",8),c.BQk(),c.ynx(12,11),c.YNc(13,T,4,5,"th",7),c.YNc(14,E,2,1,"td",8),c.BQk(),c.ynx(15,12),c.YNc(16,S,4,5,"th",7),c.YNc(17,I,2,1,"td",8),c.BQk(),c.ynx(18,13),c.YNc(19,R,4,5,"th",7),c.YNc(20,x,3,4,"td",14),c.BQk(),c.YNc(21,O,1,0,"tr",15),c.YNc(22,D,1,12,"tr",16),c.qZA(),c.qZA(),c.qZA(),c.YNc(23,M,3,3,"app-alert",17),c.YNc(24,L,4,5,"app-alert",17)),2&t&&(c.Q6J("hidden",0===e.userExtSources.length||0===e.dataSource.filteredData.length),c.xp6(1),c.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),c.xp6(1),c.Q6J("dataSource",e.dataSource),c.xp6(19),c.Q6J("matHeaderRowDef",e.displayedColumns),c.xp6(1),c.Q6J("matRowDefColumns",e.displayedColumns),c.xp6(1),c.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.userExtSources.length),c.xp6(1),c.Q6J("ngIf",0===e.userExtSources.length))},directives:[l.l,o.BZ,r.YE,o.w1,o.fO,o.Dz,o.as,o.nj,h.O5,o.ge,o.ev,d.gM,f.oG,r.nU,o.XQ,o.Gk,p.YH,u.rH,g.w],pipes:[m.X$,v.a,y,h.uU],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),t}()},7927:function(t,e,i){"use strict";i.d(e,{S:function(){return s}});var n=i(31572),r=i(84140),o=i(44973),a=i(48160),s=function(){var t=function(){function t(){_classCallCheck(this,t),this.disableAutoSelect=!1,this.userSelected=new n.vpe,this.userFullNameFunction=r.bD}return _createClass(t,[{key:"ngOnInit",value:function(){this.users=this.users.sort(r.fx)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,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(t,e){1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.userSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t&&n.Q6J("entities",e.users)("disableAutoSelect",e.disableAutoSelect)("searchFunction",e.userFullNameFunction)("mainTextFunction",e.userFullNameFunction)("selectPlaceholder",n.lcZ(1,7,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.SELECT_USER"))("findPlaceholder",n.lcZ(2,9,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.FIND_USER"))("noEntriesText",n.lcZ(3,11,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.NO_USER_FOUND"))},directives:[o.i],pipes:[a.X$],styles:[""]}),t}()},16247:function(t,e,i){"use strict";i.d(e,{M:function(){return K}});var n=i(4230),r=i(84140),o=i(58623),a=i(68416),s=i(31906),c=i(66599),u=i(31572),l=i(60611),h=i(82819),d=i(61511),f=i(67033),p=i(67806),g=i(29236),m=i(43691),v=i(36922),y=i(84534),_=i(39571),b=i(48160),w=i(22196),A=i(92898),k=i(44031),C=i(31447);function T(t,e){1&t&&(u.TgZ(0,"div",20),u._UZ(1,"mat-spinner",21),u.qZA())}function E(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"mat-checkbox",24),u.NdJ("change",function(t){u.CHM(i);var e=u.oxw(2);return t?e.masterToggle():null}),u.qZA()}if(2&t){var n=u.oxw(2);u.Q6J("aria-label",n.checkboxLabel())("checked",n.selection.hasValue()&&n.isAllSelected())("indeterminate",n.selection.hasValue()&&!n.isAllSelected())}}function S(t,e){if(1&t&&(u.TgZ(0,"th",22),u.YNc(1,E,1,3,"mat-checkbox",23),u.qZA()),2&t){var i=u.oxw();u.xp6(1),u.Q6J("ngIf",i.selection.isMultipleSelection())}}function I(t,e){if(1&t){var i=u.EpF();u.TgZ(0,"td",25),u.TgZ(1,"mat-checkbox",26),u.NdJ("change",function(t){var e=u.CHM(i).$implicit,n=u.oxw();return t?n.selection.toggle(e):null})("click",function(t){return t.stopPropagation()}),u.qZA(),u.qZA()}if(2&t){var n=e.$implicit,r=u.oxw();u.xp6(1),u.Q6J("aria-label",r.checkboxLabel(n))("checked",r.selection.isSelected(n))}}function R(t,e){1&t&&u._UZ(0,"th",27)}function x(t,e){1&t&&(u.TgZ(0,"mat-icon",31),u.ALo(1,"translate"),u._uU(2," account_circle "),u.qZA()),2&t&&u.s9C("matTooltip",u.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function O(t,e){if(1&t&&(u._UZ(0,"mat-icon",32),u.ALo(1,"translate")),2&t){var i=u.oxw(2);u.s9C("matTooltip",u.lcZ(1,2,"MANAGERS_LIST.SERVICE")),u.Q6J("svgIcon",i.svgIcon)}}function P(t,e){if(1&t&&(u.TgZ(0,"td",28),u.YNc(1,x,3,3,"mat-icon",29),u.YNc(2,O,2,4,"mat-icon",30),u.qZA()),2&t){var i=e.$implicit;u.xp6(1),u.Q6J("ngIf",!i.serviceUser),u.xp6(1),u.Q6J("ngIf",i.serviceUser)}}function D(t,e){1&t&&(u.TgZ(0,"th",33),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"MANAGERS_LIST.ID")," "))}function M(t,e){if(1&t&&(u.TgZ(0,"td",28),u._uU(1),u.qZA()),2&t){var i=e.$implicit;u.xp6(1),u.hij(" ",i.id," ")}}function L(t,e){1&t&&(u.TgZ(0,"th",33),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.hij(" ",u.lcZ(2,1,"MANAGERS_LIST.NAME")," "))}function N(t,e){if(1&t&&(u.TgZ(0,"td",34),u._uU(1),u.ALo(2,"userFullName"),u.qZA()),2&t){var i=e.$implicit;u.xp6(1),u.Oqu(u.lcZ(2,1,i))}}function z(t,e){1&t&&(u.TgZ(0,"th",27),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")))}function Z(t,e){if(1&t&&(u.TgZ(0,"td",34),u._uU(1),u.ALo(2,"userVo"),u.qZA()),2&t){var i=e.$implicit;u.xp6(1),u.Oqu(u.lcZ(2,1,i))}}function B(t,e){1&t&&(u.TgZ(0,"th",27),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"MANAGERS_LIST.EMAIL")))}function F(t,e){if(1&t&&(u.TgZ(0,"td",34),u._uU(1),u.ALo(2,"userEmail"),u.qZA()),2&t){var i=e.$implicit;u.xp6(1),u.Oqu(u.lcZ(2,1,i))}}function H(t,e){1&t&&(u.TgZ(0,"th",27),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"MANAGERS_LIST.LOGINS")))}function U(t,e){if(1&t&&(u.TgZ(0,"td",34),u._uU(1),u.ALo(2,"userLogins"),u.qZA()),2&t){var i=e.$implicit;u.xp6(1),u.Oqu(u.lcZ(2,1,i))}}function q(t,e){1&t&&u._UZ(0,"tr",35)}var G=function(t){return["/admin/users",t]};function j(t,e){if(1&t&&u._UZ(0,"tr",36),2&t){var i=e.$implicit,n=u.oxw();u.ekj("cursor-pointer",!n.disableRouting),u.Q6J("perunWebAppsForceRouterLink",n.disableRouting?null:u.VKq(4,G,i.id))("perunWebAppsMiddleClickRouterLink",n.disableRouting?null:u.VKq(6,G,i.id))}}function Y(t,e){1&t&&(u.TgZ(0,"app-alert",37),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&t&&(u.Q6J("alert_type","warn"),u.xp6(1),u.hij(" ",u.lcZ(2,2,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n"))}var K=function(){var t=function(){function t(e,i,o,a){_classCallCheck(this,t),this.authResolver=e,this.tableCheckbox=i,this.tableConfigService=o,this.dynamicPaginatingService=a,this.svgIcon="perun-service-identity-black",this.selection=new n.Ov(!0,[]),this.displayedColumns=["select","user","id","name","email","logins","organization"],this.disableRouting=!1,this.searchString="",this.attrNames=[],this.pageSizeOptions=r.f7}return _createClass(t,[{key:"ngAfterViewInit",value:function(){var t=this;this.sort.sortChange.subscribe(function(){return t.child.paginator.pageIndex=0}),(0,s.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,c.b)(function(){return t.loadUsersPage()})).subscribe()}},{key:"ngOnInit",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.dataSource=new a.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)}},{key:"ngOnChanges",value:function(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadUsersPage())}},{key:"masterToggle",value:function(){var t=this;this.isAllSelected()?this.selection.clear():this.dataSource.getData().forEach(function(e){return t.selection.select(e)})}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.child.paginator.pageSize}},{key:"checkboxLabel",value:function(t){return t?"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"loadUsersPage",value:function(){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)}},{key:"exportData",value:function(t){(0,r.O6)((0,r.Xn)(this.dataSource.getData(),this.displayedColumns,this.getExportDataForColumn,this),t)}},{key:"getExportDataForColumn",value:function(t,e){switch(e){case"id":return t.id.toString();case"user":return t.serviceUser?"service-user":"user";case"name":return t?(0,r.bD)(t):"";case"organization":return(0,r.OV)(t);case"email":return(0,r.kN)(t);case"logins":return(0,r.lt)(t);default:return""}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Y36(a.x4),u.Y36(a.UA),u.Y36(l.dB),u.Y36(a.ly))},t.\u0275cmp=u.Xpm({type:t,selectors:[["perun-web-apps-users-dynamic-list"]],viewQuery:function(t,e){var i;(1&t&&(u.Gf(r.l9,7),u.Gf(o.YE,5)),2&t)&&(u.iGM(i=u.CRH())&&(e.child=i.first),u.iGM(i=u.CRH())&&(e.sort=i.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:[u.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(t,e){1&t&&(u.TgZ(0,"div",0),u.ALo(1,"async"),u.TgZ(2,"perun-web-apps-table-wrapper",1),u.NdJ("exportData",function(t){return e.exportData(t)}),u.YNc(3,T,2,0,"div",2),u.ALo(4,"async"),u.TgZ(5,"table",3),u.ynx(6,4),u.YNc(7,S,2,1,"th",5),u.YNc(8,I,2,2,"td",6),u.BQk(),u.ynx(9,7),u.YNc(10,R,1,0,"th",8),u.YNc(11,P,3,2,"td",9),u.BQk(),u.ynx(12,10),u.YNc(13,D,3,3,"th",11),u.YNc(14,M,2,1,"td",9),u.BQk(),u.ynx(15,12),u.YNc(16,L,3,3,"th",11),u.YNc(17,N,3,3,"td",13),u.BQk(),u.ynx(18,14),u.YNc(19,z,3,3,"th",8),u.YNc(20,Z,3,3,"td",13),u.BQk(),u.ynx(21,15),u.YNc(22,B,3,3,"th",8),u.YNc(23,F,3,3,"td",13),u.BQk(),u.ynx(24,16),u.YNc(25,H,3,3,"th",8),u.YNc(26,U,3,3,"td",13),u.BQk(),u.YNc(27,q,1,0,"tr",17),u.YNc(28,j,1,8,"tr",18),u.qZA(),u.qZA(),u.qZA(),u.YNc(29,Y,3,4,"app-alert",19),u.ALo(30,"async")),2&t&&(u.Q6J("hidden",0===e.dataSource.allObjectCount&&!1===u.lcZ(1,9,e.dataSource.loading$)),u.xp6(2),u.Q6J("tableId",e.tableId)("dataLength",e.dataSource.allObjectCount)("pageSizeOptions",e.pageSizeOptions),u.xp6(1),u.Q6J("ngIf",u.lcZ(4,11,e.dataSource.loading$)),u.xp6(2),u.Q6J("dataSource",e.dataSource),u.xp6(22),u.Q6J("matHeaderRowDef",e.displayedColumns),u.xp6(1),u.Q6J("matRowDefColumns",e.displayedColumns),u.xp6(1),u.Q6J("ngIf",0===e.dataSource.allObjectCount&&!1===u.lcZ(30,13,e.dataSource.loading$)))},directives:[h.l,d.O5,f.BZ,o.YE,f.w1,f.fO,f.Dz,f.as,f.nj,p.$g,f.ge,g.oG,f.ev,m.Hw,v.gM,o.nU,f.XQ,f.Gk,y.Kd,y.YH,_.w],pipes:[d.Ov,b.X$,w.d,A.Z,k.S,C.g],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;top:0;left:0;bottom:56px;right:0;background:rgba(0,0,0,.15);z-index:1;display:flex;align-items:center;justify-content:center}.italic_font[_ngcontent-%COMP%]{font-style:italic}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t}()},19386:function(t,e,i){"use strict";i.d(e,{M:function(){return a}});var n=i(31572),r=i(44973),o=i(48160),a=function(){var t=function t(){_classCallCheck(this,t),this.voSelected=new n.vpe,this.nameFunction=function(t){return t.name},this.shortNameFunction=function(t){return t.shortName},this.searchFunction=function(t){return t.name+t.shortName+t.id}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-vo-search-select"]],inputs:{vo:"vo",vos:"vos"},outputs:{voSelected:"voSelected"},decls:4,vars:14,consts:[[3,"entity","entities","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(t,e){1&t&&(n.TgZ(0,"perun-web-apps-entity-search-select",0),n.NdJ("entitySelected",function(t){return e.voSelected.emit(t)}),n.ALo(1,"translate"),n.ALo(2,"translate"),n.ALo(3,"translate"),n.qZA()),2&t&&n.Q6J("entity",e.vo)("entities",e.vos)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.shortNameFunction)("selectPlaceholder",n.lcZ(1,8,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.SELECT_VO"))("findPlaceholder",n.lcZ(2,10,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.FIND_VO"))("noEntriesText",n.lcZ(3,12,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.NO_VO_FOUND"))},directives:[r.i],pipes:[o.X$],styles:[""]}),t}()},97162:function(t,e,i){"use strict";i.d(e,{Z:function(){return O}});var n=i(58623),r=i(67033),o=i(84140),a=i(68416),s=i(31572),c=i(82819),u=i(61511),l=i(29236),h=i(72953),d=i(84534),f=i(57629),p=i(39571),g=i(48160);function m(t,e){1&t&&s._UZ(0,"th",18)}function v(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"td",19),s.TgZ(1,"mat-checkbox",20),s.NdJ("change",function(t){var e=s.CHM(i).$implicit,n=s.oxw();return t?n.selection.toggle(e):null})("click",function(t){return t.stopPropagation()}),s.qZA(),s.qZA()}if(2&t){var n=e.$implicit,r=s.oxw();s.xp6(1),s.Q6J("aria-label",r.checkboxLabel(n))("checked",r.selection.isSelected(n))}}function y(t,e){1&t&&(s.TgZ(0,"th",21),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.ID")," "))}function _(t,e){if(1&t&&(s.TgZ(0,"td",22),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(i.id)}}function b(t,e){1&t&&s._UZ(0,"th",23)}function w(t,e){if(1&t&&(s.TgZ(0,"td",24),s._UZ(1,"perun-web-apps-recently-viewed-icon",25),s.qZA()),2&t){var i=e.$implicit,n=s.oxw();s.xp6(1),s.Q6J("recentIds",n.recentIds)("id",i.id)}}function A(t,e){1&t&&(s.TgZ(0,"th",21),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.SHORTNAME")," "))}function k(t,e){if(1&t&&(s.TgZ(0,"td",24),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.uIk("data-cy",i.shortName),s.xp6(1),s.Oqu(i.shortName)}}function C(t,e){1&t&&(s.TgZ(0,"th",21),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.NAME")," "))}function T(t,e){if(1&t&&(s.TgZ(0,"td",24),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(i.name)}}function E(t,e){1&t&&s._UZ(0,"tr",26)}var S=function(t){return["/organizations",t]};function I(t,e){if(1&t&&s._UZ(0,"tr",27),2&t){var i=e.$implicit,n=s.oxw();s.ekj("disable-outline",n.disableRouting),s.Q6J("perunWebAppsMiddleClickRouterLink",n.disableRouting?null:s.VKq(4,S,i.id))("routerLink",n.disableRouting?null:s.VKq(6,S,i.id))}}function R(t,e){1&t&&(s.TgZ(0,"app-alert",28),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function x(t,e){1&t&&(s.TgZ(0,"app-alert",29),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_ORGANIZATIONS"),"\n"))}var O=function(){var t=function(){function t(e){_classCallCheck(this,t),this.authResolver=e,this.vos=[],this.displayedColumns=[],this.disableRouting=!1,this.pageSizeOptions=o.f7}return _createClass(t,[{key:"matSort",set:function(t){this.sort=t}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(t){return"id"!==t})),this.setDataSource()}},{key:"getDataForColumn",value:function(t,e,i){switch(e){case"id":return t.id.toString();case"shortName":return t.shortName;case"name":return t.name;case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;default:return t[e]}}},{key:"exportData",value:function(t){(0,o.O6)((0,o.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}},{key:"setDataSource",value:function(){var t=this;this.dataSource||(this.dataSource=new r.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=function(e,i){return(0,o.Sd)(e,i,t.displayedColumns,t.getDataForColumn,t)},this.dataSource.sortData=function(e,i){return(0,o.pR)(e,i,t.getDataForColumn,t)}),this.dataSource.filter=this.filterValue,this.dataSource.data=this.vos}},{key:"checkboxLabel",value:function(t){return"".concat(this.selection.isSelected(t)?"deselect":"select"," row ").concat(t.id+1)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(a.x4))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-vos-list"]],viewQuery:function(t,e){var i;(1&t&&(s.Gf(n.YE,7),s.Gf(o.l9,7)),2&t)&&(s.iGM(i=s.CRH())&&(e.matSort=i.first),s.iGM(i=s.CRH())&&(e.child=i.first))},inputs:{vos:"vos",recentIds:"recentIds",filterValue:"filterValue",selection:"selection",displayedColumns:"displayedColumns",disableRouting:"disableRouting",pageSizeOptions:"pageSizeOptions",tableId:"tableId"},features:[s.TTD],decls:22,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","shortName"],["matColumnDef","name"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",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"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn","data-cy","no-filter-result"],["alert_type","warn"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,m,1,0,"th",4),s.YNc(5,v,2,2,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,y,3,3,"th",7),s.YNc(8,_,2,1,"td",8),s.BQk(),s.ynx(9,9),s.YNc(10,b,1,0,"th",10),s.YNc(11,w,2,2,"td",11),s.BQk(),s.ynx(12,12),s.YNc(13,A,3,3,"th",7),s.YNc(14,k,2,2,"td",11),s.BQk(),s.ynx(15,13),s.YNc(16,C,3,3,"th",7),s.YNc(17,T,2,1,"td",11),s.BQk(),s.YNc(18,E,1,0,"tr",14),s.YNc(19,I,1,8,"tr",15),s.qZA(),s.qZA(),s.qZA(),s.YNc(20,R,3,3,"app-alert",16),s.YNc(21,x,3,3,"app-alert",17)),2&t&&(s.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.vos.length),s.xp6(1),s.Q6J("dataLength",e.dataSource.filteredData.length)("tableId",e.tableId)("pageSizeOptions",e.pageSizeOptions),s.xp6(1),s.Q6J("dataSource",e.dataSource),s.xp6(16),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.vos.length),s.xp6(1),s.Q6J("ngIf",0===e.vos.length))},directives:[c.l,r.BZ,n.YE,r.w1,r.fO,r.Dz,r.as,r.nj,u.O5,r.ge,r.ev,l.oG,n.nU,h.W,r.XQ,r.Gk,d.YH,f.rH,p.w],pipes:[g.X$],styles:[".card[_ngcontent-%COMP%]{border-radius:0!important}.static-column-size[_ngcontent-%COMP%]{width:80px}.disable-outline[_ngcontent-%COMP%]{outline:none!important}tr[_ngcontent-%COMP%]{cursor:pointer}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t}()},6527:function(t,e,i){"use strict";i.d(e,{Wr:function(){return ft},r2:function(){return dt},gr:function(){return vt},u3:function(){return Xt},Qu:function(){return _e},pf:function(){return A},xF:function(){return re},hd:function(){return le},kZ:function(){return se},wA:function(){return ht},rd:function(){return M},Eg:function(){return D},Bp:function(){return U},qD:function(){return Ut},jd:function(){return Ft},FM:function(){return V},Lc:function(){return nt},mk:function(){return at},Tf:function(){return Ct}}),i(22280);var n=i(18820),r=i(84608),o=i(65249),a=i(68416),s=i(31572),c=i(48160),u=i(61511),l=i(15980),h=i(67806),d=i(66283),f=i(4786),p=i(71522),g=i(5725);function m(t,e){1&t&&s._UZ(0,"mat-spinner",6)}function v(t,e){if(1&t&&(s.TgZ(0,"mat-option",17),s._uU(1),s.ALo(2,"memberStatus"),s.qZA()),2&t){var i=e.$implicit;s.Q6J("value",i),s.xp6(1),s.Oqu(s.lcZ(2,2,i))}}function y(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"mat-form-field",14),s.TgZ(1,"mat-label"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"mat-select",15),s.NdJ("selectionChange",function(t){return s.CHM(i),s.oxw(3).changeStatus(t)}),s.YNc(5,v,3,4,"mat-option",16),s.qZA(),s.qZA()}if(2&t){var n=s.oxw(3);s.xp6(2),s.Oqu(s.lcZ(3,2,"DIALOGS.CHANGE_STATUS.SELECT_STATUS")),s.xp6(3),s.Q6J("ngForOf",n.allStatuses)}}function _(t,e){if(1&t&&(s.TgZ(0,"div",8),s._uU(1),s.ALo(2,"translate"),s.YNc(3,y,6,4,"mat-form-field",13),s.qZA()),2&t){var i=s.oxw(2);s.xp6(1),s.hij(" ",s.lcZ(2,2,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," "),s.xp6(2),s.Q6J("ngIf",!i.loading)}}function b(t,e){if(1&t&&(s.TgZ(0,"div",8),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"memberStatus"),s.qZA()),2&t){var i=s.oxw(2);s.xp6(1),s.AsE(" ",s.lcZ(2,2,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," ",s.lcZ(3,4,i.allStatuses[0])," ")}}function w(t,e){if(1&t&&(s.TgZ(0,"div",7),s.TgZ(1,"div",8),s._uU(2),s.ALo(3,"translate"),s.ALo(4,"memberStatus"),s.qZA(),s.TgZ(5,"div",9),s._uU(6),s.qZA(),s.YNc(7,_,4,4,"div",10),s.YNc(8,b,4,6,"div",10),s.TgZ(9,"div",11),s._UZ(10,"i",12),s.qZA(),s.qZA()),2&t){var i=s.oxw();s.xp6(2),s.AsE(" ",s.lcZ(3,6,"DIALOGS.CHANGE_STATUS.CURRENT_STATUS")," ",s.lcZ(4,8,i.actualStatus)," "),s.xp6(4),s.Oqu(i.description),s.xp6(1),s.Q6J("ngIf",i.allStatuses.length>1),s.xp6(1),s.Q6J("ngIf",1===i.allStatuses.length),s.xp6(2),s.Q6J("innerHTML",i.changeMessage,s.oJD)}}var A=function(){var t=function(){function t(e,i,n,r,o,a){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.memberManager=n,this.groupsManager=r,this.notificatorService=o,this.translate=a,this.loading=!1,this.allStatuses=["VALID","INVALID","EXPIRED","DISABLED"]}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;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(function(e){return e!==t.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=""}}},{key:"changeStatus",value:function(t){this.selectedStatus=t.value,this.submitButtonText="VALID"===this.actualStatus&&"EXPIRED"===this.selectedStatus||"VALID"===this.actualStatus&&"DISABLED"===this.selectedStatus||"VALID"===this.selectedStatus?this.changeStatusWithExpButton:this.changeStatusButton,this.changeStatusMessage(this.actualStatus,this.selectedStatus)}},{key:"changeStatusMessage",value:function(t,e){if("VALID"===t)switch(e){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(e){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=""}}},{key:"cancel",value:function(){this.dialogRef.close()}},{key:"submit",value:function(){var t=this;this.loading=!0,this.data.groupId?this.groupsManager.setGroupsMemberStatus(this.data.member.id,this.data.groupId,this.selectedStatus).subscribe(function(e){t.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(function(i){t.notificatorService.showSuccess(i),t.dialogRef.close(e)})},function(){return t.loading=!1}):this.memberManager.setStatus(this.data.member.id,this.selectedStatus).subscribe(function(e){t.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(function(i){t.notificatorService.showSuccess(i),t.dialogRef.close(e)})},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(r.WI),s.Y36(o.uq),s.Y36(o.ff),s.Y36(a.V6),s.Y36(c.sK))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,m,1,0,"mat-spinner",1),s.YNc(5,w,11,10,"div",2),s.TgZ(6,"div",3),s.TgZ(7,"button",4),s.NdJ("click",function(){return e.cancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return e.submit()}),s._uU(11),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.Oqu(s.lcZ(3,9,"DIALOGS.CHANGE_STATUS.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,11,"DIALOGS.CHANGE_STATUS.CANCEL")," "),s.xp6(2),s.Q6J("disabled",e.loading||!e.selectedStatus),s.xp6(1),s.hij(" ",e.submitButtonText," "))},directives:[r.uh,u.O5,r.H8,l.lW,h.$g,r.xY,d.KE,d.hX,f.gD,u.sg,p.ey],pipes:[c.X$,g.l],styles:[".new-line[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),t}(),k=i(16073),C=i(80340);function T(t,e){1&t&&(s.TgZ(0,"h1",7),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_FACILITY")," "))}function E(t,e){1&t&&(s.TgZ(0,"h1",7),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_RESOURCE")," "))}function S(t,e){1&t&&(s.TgZ(0,"h1",7),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_VO")," "))}function I(t,e){1&t&&(s.TgZ(0,"h1",7),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_GROUP")," "))}function R(t,e){1&t&&s._UZ(0,"mat-spinner",8)}function x(t,e){if(1&t&&(s.TgZ(0,"mat-form-field"),s._UZ(1,"input",13),s.ALo(2,"translate"),s.qZA()),2&t){var i=s.oxw(2);s.xp6(1),s.MGl("placeholder","",s.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SHORT_NAME"),":"),s.Q6J("value",i.shortName)}}function O(t,e){if(1&t&&(s.TgZ(0,"mat-form-field",14),s._UZ(1,"textarea",15),s.ALo(2,"translate"),s.qZA()),2&t){var i=s.oxw(2);s.xp6(1),s.MGl("placeholder","",s.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.DESCRIPTION"),":"),s.Q6J("formControl",i.descriptionCtrl)}}function P(t,e){if(1&t&&(s.TgZ(0,"div",9),s.YNc(1,x,3,4,"mat-form-field",10),s.TgZ(2,"mat-form-field"),s._UZ(3,"input",11),s.ALo(4,"translate"),s.TgZ(5,"mat-error"),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.qZA(),s.YNc(8,O,3,4,"mat-form-field",12),s.qZA()),2&t){var i=s.oxw();s.xp6(1),s.Q6J("ngIf",2===i.dialogType),s.xp6(2),s.MGl("placeholder","",s.lcZ(4,5,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.NAME"),":"),s.Q6J("formControl",i.nameCtrl),s.xp6(3),s.hij(" ",i.invalidNameMessage.length?i.invalidNameMessage:s.lcZ(7,7,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FILL_NAME")," "),s.xp6(2),s.Q6J("ngIf",2!==i.dialogType)}}var D=function(t){return t[t.FACILITY=0]="FACILITY",t[t.RESOURCE=1]="RESOURCE",t[t.VO=2]="VO",t[t.GROUP=3]="GROUP",t}({}),M=function(){var t=function(){function t(e,i,n,r,o,a,s,c,u){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translateService=r,this.facilitiesManager=o,this.resourcesManager=a,this.groupsManager=s,this.vosManager=c,this.store=u,this.invalidNameMessage=this.data.dialogType===D.GROUP?this.store.get("group_name_error_message"):"",this.loading=!1,this.secondaryRegex=this.data.dialogType===D.GROUP?this.store.get("group_name_secondary_regex"):""}return _createClass(t,[{key:"ngOnInit",value:function(){switch(this.theme=this.data.theme,this.dialogType=this.data.dialogType,this.dialogType){case D.FACILITY:this.nameCtrl=new k.NI(this.data.facility.name,[k.kI.required,k.kI.pattern(".*[\\S]+.*"),k.kI.maxLength(129)]),this.descriptionCtrl=new k.NI(this.data.facility.description);break;case D.RESOURCE:this.nameCtrl=new k.NI(this.data.resource.name,[k.kI.required,k.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new k.NI(this.data.resource.description);break;case D.GROUP:var t=this.data.group.name.split(":");this.nameCtrl=new k.NI(t[t.length-1],[k.kI.required,k.kI.pattern(".*[\\S]+.*"),k.kI.pattern(this.secondaryRegex),k.kI.maxLength(129)]),this.descriptionCtrl=new k.NI(this.data.group.description);break;case D.VO:this.shortName=this.data.vo.shortName,this.nameCtrl=new k.NI(this.data.vo.name,[k.kI.required,k.kI.pattern(".*[\\S]+.*"),k.kI.maxLength(129)]),this.descriptionCtrl=new k.NI}}},{key:"cancel",value:function(){this.dialogRef.close(!1)}},{key:"submit",value:function(){switch(this.loading=!0,this.dialogType){case D.FACILITY:this.editFacility();break;case D.RESOURCE:this.editResource();break;case D.GROUP:this.editGroup();break;case D.VO:this.editVo()}}},{key:"editResource",value:function(){var t=this;this.data.resource.name=this.nameCtrl.value,this.data.resource.description=this.descriptionCtrl.value,this.resourcesManager.updateResource({resource:this.data.resource}).subscribe(function(){t.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.RESOURCE_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})}},{key:"editFacility",value:function(){var t=this;this.data.facility.name=this.nameCtrl.value,this.data.facility.description=this.descriptionCtrl.value,this.facilitiesManager.updateFacility({facility:this.data.facility}).subscribe(function(){t.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FACILITY_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})}},{key:"editGroup",value:function(){var t=this;this.groupsManager.getGroupById(this.data.group.id).subscribe(function(e){var i=e;i.name=t.nameCtrl.value,i.description=t.descriptionCtrl.value,t.groupsManager.updateGroup({group:i}).subscribe(function(){t.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.GROUP_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})},function(){return t.loading=!1})}},{key:"editVo",value:function(){var t=this;this.data.vo.name=this.nameCtrl.value,this.vosManager.updateVo({vo:this.data.vo}).subscribe(function(){t.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.VO_SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})},function(){return t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(r.WI),s.Y36(a.V6),s.Y36(c.sK),s.Y36(o.IQ),s.Y36(o.xk),s.Y36(o.ff),s.Y36(o.YF),s.Y36(a.d6))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div"),s.YNc(1,T,3,3,"h1",0),s.YNc(2,E,3,3,"h1",0),s.YNc(3,S,3,3,"h1",0),s.YNc(4,I,3,3,"h1",0),s.TgZ(5,"div",1),s.YNc(6,R,1,0,"mat-spinner",2),s.YNc(7,P,9,9,"div",3),s.qZA(),s.TgZ(8,"div",4),s.TgZ(9,"button",5),s.NdJ("click",function(){return e.cancel()}),s._uU(10),s.ALo(11,"translate"),s.qZA(),s.TgZ(12,"button",6),s.NdJ("click",function(){return e.submit()}),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(1),s.Q6J("ngIf",0===e.dialogType),s.xp6(1),s.Q6J("ngIf",1===e.dialogType),s.xp6(1),s.Q6J("ngIf",2===e.dialogType),s.xp6(1),s.Q6J("ngIf",3===e.dialogType),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(11,12,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.CANCEL_BUTTON")," "),s.xp6(2),s.Q6J("disabled",e.loading||e.nameCtrl.invalid||e.descriptionCtrl.invalid),s.xp6(1),s.hij(" ",s.lcZ(14,14,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SUBMIT_BUTTON")," "))},directives:[u.O5,r.xY,r.H8,l.lW,r.uh,h.$g,d.KE,C.Nt,k.Fj,k.Q7,k.JJ,k.oH,d.TO,C.D7],pipes:[c.X$],styles:[""]}),t}(),L=i(67004),N=i(84140),z=i(43691);function Z(t,e){1&t&&s._UZ(0,"mat-spinner",8)}function B(t,e){if(1&t&&(s.TgZ(0,"div",9),s.TgZ(1,"span"),s._uU(2),s.ALo(3,"translate"),s.TgZ(4,"b"),s._uU(5),s.qZA(),s.qZA(),s._UZ(6,"br"),s.TgZ(7,"span"),s._uU(8),s.ALo(9,"translate"),s.TgZ(10,"b"),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s._UZ(13,"br"),s.TgZ(14,"span"),s._uU(15),s.ALo(16,"translate"),s.TgZ(17,"b"),s._uU(18),s.ALo(19,"translate"),s.qZA(),s.qZA(),s._UZ(20,"br"),s.TgZ(21,"span"),s._uU(22),s.ALo(23,"translate"),s.TgZ(24,"b"),s._uU(25),s.ALo(26,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t){var i=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,8,"DIALOGS.GROUP_SYNC_DETAIL.GROUP_NAME")," "),s.xp6(3),s.Oqu(i.group.name),s.xp6(3),s.hij(" ",s.lcZ(9,10,"DIALOGS.GROUP_SYNC_DETAIL.SYNCHRONIZATION")," "),s.xp6(3),s.Oqu(s.lcZ(12,12,i.getSynchronizationType())),s.xp6(4),s.hij(" ",s.lcZ(16,14,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_STATE")," "),s.xp6(3),s.Oqu(s.lcZ(19,16,i.getLastSyncState())),s.xp6(4),s.hij(" ",s.lcZ(23,18,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_TIME")," "),s.xp6(3),s.Oqu(s.lcZ(26,20,i.getLastSyncTime()))}}function F(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"button",10),s.NdJ("click",function(){return s.CHM(i),s.oxw().onForceStructure()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){var n=s.oxw();s.Q6J("disabled",n.loading),s.xp6(1),s.hij(" ",s.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE_STRUCTURE")," ")}}function H(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"button",10),s.NdJ("click",function(){return s.CHM(i),s.oxw().onForce()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){var n=s.oxw();s.Q6J("disabled",n.loading),s.xp6(1),s.hij(" ",s.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE")," ")}}var U=function(){var t=function(){function t(e,i,n,r){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.groupService=n,this.notificator=r,this.loading=!0}return _createClass(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.loadGroup()}},{key:"onForceStructure",value:function(){var t=this;this.loading=!0,this.groupService.forceGroupStructureSynchronization(this.data.groupId).subscribe(function(){t.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.STRUCT_FORCE_SUCCESS"),t.loading=!1},function(){return t.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(null)}},{key:"onForce",value:function(){var t=this;this.loading=!0,this.isBasic()&&this.groupService.forceGroupSynchronization(this.group.id).subscribe(function(){t.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),t.refresh()},function(){return t.loading=!1}),this.isStructured()&&this.groupService.forceGroupStructureSynchronization(this.group.id).subscribe(function(){t.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),t.refresh()},function(){return t.loading=!1})}},{key:"getSynchronizationType",value:function(){return this.isBasic()?"DIALOGS.GROUP_SYNC_DETAIL.NORMAL_SYNC":this.isStructured()?"DIALOGS.GROUP_SYNC_DETAIL.STRUCT_SYNC":"N/A"}},{key:"isBasic",value:function(){return"BASIC"===this.type}},{key:"isStructured",value:function(){return"STRUCTURED"===this.type}},{key:"getLastSyncState",value:function(){return this.isBasic()?""!==this.lastSyncState?this.lastSyncState:"OK":this.isStructured()?""!==this.lastStructSyncState?this.lastStructSyncState:"OK":"N/A"}},{key:"getLastSyncTime",value:function(){return this.isBasic()?this.lastSyncTime:this.isStructured()?this.lastStructSyncTime:"N/A"}},{key:"refresh",value:function(){this.loadGroup()}},{key:"loadGroup",value:function(){var t=this;this.loading=!0,this.groupService.getRichGroupByIdWithAttributesByNames(this.data.groupId,[L.r.GROUP_SYNC_ENABLED,L.r.GROUP_LAST_SYNC_STATE,L.r.GROUP_LAST_SYNC_TIMESTAMP,L.r.GROUP_STRUCTURE_SYNC_ENABLED,L.r.GROUP_LAST_STRUCTURE_SYNC_STATE,L.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(function(e){t.group=e,t.syncEnabled=(0,N.IL)(t.group.attributes,L.r.GROUP_SYNC_ENABLED).value,t.lastSyncState=(0,N.IL)(t.group.attributes,L.r.GROUP_LAST_SYNC_STATE).value,t.lastSyncTime=(0,N.IL)(t.group.attributes,L.r.GROUP_LAST_SYNC_TIMESTAMP).value,t.structSyncEnabled=(0,N.IL)(t.group.attributes,L.r.GROUP_STRUCTURE_SYNC_ENABLED).value,t.lastStructSyncState=(0,N.IL)(t.group.attributes,L.r.GROUP_LAST_STRUCTURE_SYNC_STATE).value,t.lastStructSyncTime=(0,N.IL)(t.group.attributes,L.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP).value,null!==t.syncEnabled&&"true"===t.syncEnabled&&(t.type="BASIC"),null!==t.structSyncEnabled&&t.structSyncEnabled&&(t.type="STRUCTURED"),t.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(r.WI),s.Y36(o.ff),s.Y36(a.V6))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,Z,1,0,"mat-spinner",1),s.YNc(5,B,27,22,"div",2),s.TgZ(6,"div",3),s.TgZ(7,"div",4),s.TgZ(8,"button",5),s.NdJ("click",function(){return e.refresh()}),s.TgZ(9,"mat-icon"),s._uU(10,"refresh"),s.qZA(),s.qZA(),s.YNc(11,F,3,4,"button",6),s.YNc(12,H,3,4,"button",6),s.TgZ(13,"button",7),s.NdJ("click",function(){return e.onCancel()}),s._uU(14),s.ALo(15,"translate"),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.Oqu(s.lcZ(3,9,"DIALOGS.GROUP_SYNC_DETAIL.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(6),s.Q6J("ngIf",e.isStructured()),s.xp6(1),s.Q6J("ngIf",e.isBasic()||e.isStructured()),s.xp6(2),s.hij(" ",s.lcZ(15,11,"DIALOGS.GROUP_SYNC_DETAIL.CANCEL")," "))},directives:[r.uh,u.O5,r.H8,l.lW,z.Hw,h.$g,r.xY],pipes:[c.X$],styles:[""]}),t}();function q(t,e){1&t&&s._UZ(0,"mat-spinner",7)}function G(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function j(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function Y(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"div",8),s.TgZ(1,"mat-form-field"),s.TgZ(2,"mat-label"),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.TgZ(5,"input",9,10),s.NdJ("ngModelChange",function(t){return s.CHM(i),s.oxw().subject=t}),s.qZA(),s.YNc(7,G,3,3,"mat-error",11),s.qZA(),s.TgZ(8,"mat-form-field"),s.TgZ(9,"mat-label"),s._uU(10),s.ALo(11,"translate"),s.qZA(),s.TgZ(12,"textarea",12,13),s.NdJ("ngModelChange",function(t){return s.CHM(i),s.oxw().message=t}),s.ALo(14,"translate"),s._uU(15," "),s.qZA(),s.YNc(16,j,3,3,"mat-error",11),s.qZA(),s.qZA()}if(2&t){var n=s.MAs(6),r=s.MAs(13),o=s.oxw();s.xp6(3),s.Oqu(s.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),s.xp6(2),s.Q6J("ngModel",o.subject),s.xp6(2),s.Q6J("ngIf",n.invalid),s.xp6(3),s.Oqu(s.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),s.xp6(2),s.s9C("placeholder",s.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),s.Q6J("ngModel",o.message),s.xp6(4),s.Q6J("ngIf",r.invalid)}}var K=function(){var t=function(){function t(e,i,n,r,o,a){_classCallCheck(this,t),this.dialogRef=e,this.translate=i,this.notificator=n,this.rtMessages=r,this.data=o,this.storeService=a,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.data.error&&this.data.error.errorId&&(this.subject=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE")+this.parseMethod(this.data.error.call)+" ("+this.data.error.errorId+")")}},{key:"sendBugReport",value:function(){var t=this;this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(function(e){t.dialogRef.afterClosed().subscribe(function(){t.notificator.showSuccess(t.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1")+e.ticketNumber+t.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"))}),t.dialogRef.close()},function(){t.loading=!1,t.dialogRef.afterClosed().subscribe(function(){})})}},{key:"getFullEmailBody",value:function(){var t=this.storeService.get("config"),e=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(e=(e=e.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n")).concat(this.data.error.message+"\nPerun instance: "+t+"\nRequest:\n"+this.data.error.urlWithParams+"\n\n"),this.data.error.payload){var n=JSON.stringify(this.data.error.payload);n=n.replace(/"password":".+?"/,'"password":"####"'),e=e.concat("Payload:\n"+n+"\n\n")}return(e=e.concat("Sended from new Perun Gui, version: "+i(60306).i8)).split("\n").join("\n ")}},{key:"parseMethod",value:function(t){return t?this.methodRegexp.exec(t)[1]:t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(c.sK),s.Y36(a.V6),s.Y36(o.Hr),s.Y36(r.WI),s.Y36(a.d6))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.YNc(3,q,1,0,"mat-spinner",1),s.YNc(4,Y,17,13,"div",2),s.TgZ(5,"div",3),s.TgZ(6,"div",4),s.TgZ(7,"button",5),s.NdJ("click",function(){return e.dialogRef.close()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",6),s.NdJ("click",function(){return e.sendBugReport()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(4),s.hij(" ",s.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),s.xp6(2),s.Q6J("disabled",""===e.message||""===e.subject||e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},directives:[r.uh,u.O5,r.H8,l.lW,h.$g,r.xY,d.KE,d.hX,C.Nt,k.Fj,k.Q7,k.JJ,k.On,d.TO],pipes:[c.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t}(),V=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.dialogRef=e,this.dialog=i,this.data=n}return _createClass(t,[{key:"onCloseClick",value:function(){this.dialogRef.close()}},{key:"onBugReportClick",value:function(){var t=this;this.dialogRef.afterClosed().subscribe(function(){var e=(0,N.kZ)();e.width="550px",e.data={error:t.data.error},e.autoFocus=!1,t.dialog.open(K,e)}),this.dialogRef.close()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(r.uw),s.Y36(r.WI))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.qZA(),s.TgZ(2,"div",1),s._uU(3),s.qZA(),s.TgZ(4,"div",2),s.TgZ(5,"div",3),s.TgZ(6,"button",4),s.NdJ("click",function(){return e.onBugReportClick()}),s._uU(7),s.ALo(8,"translate"),s.qZA(),s.TgZ(9,"button",5),s.NdJ("click",function(){return e.onCloseClick()}),s._uU(10),s.ALo(11,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(e.data.title),s.xp6(2),s.hij(" ",e.data.description,"\n"),s.xp6(3),s.Q6J("hidden","error"!==e.data.type),s.xp6(1),s.hij(" ",s.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),s.xp6(3),s.hij(" ",s.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},directives:[r.uh,r.xY,r.H8,l.lW],pipes:[c.X$],styles:[""]}),t}(),J=i(67033),Q=i(83787);function W(t,e){1&t&&s._UZ(0,"mat-spinner",3)}function X(t,e){1&t&&s._UZ(0,"th",15)}function $(t,e){if(1&t&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.hij(" ",i.userExtSource.extSource.name," ")}}function tt(t,e){1&t&&s._UZ(0,"tr",17)}function et(t,e){1&t&&s._UZ(0,"tr",18)}function it(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"div",4),s.TgZ(2,"p"),s._uU(3),s.ALo(4,"translate"),s.ALo(5,"customTranslate"),s.qZA(),s.TgZ(6,"div",5),s._uU(7),s.ALo(8,"translate"),s.ALo(9,"customTranslate"),s.qZA(),s.TgZ(10,"table",6),s.ynx(11,7),s.YNc(12,X,1,0,"th",8),s.YNc(13,$,2,1,"td",9),s.BQk(),s.YNc(14,tt,1,0,"tr",10),s.YNc(15,et,1,0,"tr",11),s.qZA(),s.qZA(),s.TgZ(16,"div",12),s.TgZ(17,"button",13),s.NdJ("click",function(){return s.CHM(i),s.oxw().onCancel()}),s._uU(18),s.ALo(19,"translate"),s.ALo(20,"customTranslate"),s.qZA(),s.TgZ(21,"button",14),s.NdJ("click",function(){return s.CHM(i),s.oxw().onSubmit()}),s._uU(22),s.ALo(23,"translate"),s.ALo(24,"customTranslate"),s.qZA(),s.qZA(),s.qZA()}if(2&t){var n=s.oxw();s.xp6(3),s.hij(" ",s.lcZ(4,7,s.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),s.xp6(4),s.hij(" ",s.lcZ(8,11,s.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),s.xp6(3),s.Q6J("dataSource",n.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",n.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",n.displayedColumns),s.xp6(3),s.hij(" ",s.lcZ(19,15,s.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),s.xp6(4),s.hij(" ",s.lcZ(23,19,s.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}var nt=function(){var t=function(){function t(e,i,n,r,o){var a=this;_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.usersManagerService=n,this.translate=r,this.notificator=o,this.force=!1,this.displayedColumns=["name"],r.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(function(t){return a.successMessage=t})}return _createClass(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new J.by(this.data.extSources)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,this.data.extSources.length?this.usersManagerService.removeUserExtSource(this.data.userId,this.data.extSources.pop().userExtSource.id,this.force).subscribe(function(){t.onSubmit()},function(){return t.loading=!1}):(this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(r.WI),s.Y36(o.Fv),s.Y36(c.sK),s.Y36(a.V6))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.TgZ(4,"div"),s.YNc(5,W,1,0,"mat-spinner",1),s.YNc(6,it,25,23,"div",2),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,6,s.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE")),"\n"),s.xp6(3),s.Tol(e.theme),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[r.uh,u.O5,h.$g,r.xY,J.BZ,J.w1,J.fO,J.Dz,J.as,J.nj,r.H8,l.lW,J.ge,J.ev,J.XQ,J.Gk],pipes:[c.X$,Q.a],styles:[""]}),t}(),rt=i(10901),ot=i(81391),at=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.dialogRef=e,this.data=i}return _createClass(t,[{key:"ngOnInit",value:function(){this.value=this.data.value,this.title=this.data.title}},{key:"onCancel",value:function(){this.dialogRef.close()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(r.WI))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.qZA(),s.TgZ(2,"div",1),s.TgZ(3,"textarea",2),s._uU(4),s.qZA(),s.qZA(),s.TgZ(5,"div",3),s.TgZ(6,"button",4),s.NdJ("click",function(){return e.onCancel()}),s._uU(7),s.ALo(8,"translate"),s.qZA(),s.TgZ(9,"button",5),s._uU(10),s.ALo(11,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(e.title),s.xp6(3),s.Oqu(e.value),s.xp6(3),s.hij(" ",s.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),s.xp6(2),s.Q6J("cdkCopyToClipboard",e.value),s.xp6(1),s.hij(" ",s.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},directives:[r.uh,r.xY,rt.IC,C.Nt,r.H8,l.lW,ot.i3],pipes:[c.X$],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),t}();function st(t,e){1&t&&s._UZ(0,"th",12)}function ct(t,e){if(1&t&&(s.TgZ(0,"td",13),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(i.displayName)}}function ut(t,e){1&t&&s._UZ(0,"tr",14)}function lt(t,e){1&t&&s._UZ(0,"tr",15)}var ht=function(){var t=function(){function t(e,i,n,r,o){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.notificator=n,this.translate=r,this.attributesManager=o,this.displayedColumns=["name"]}return _createClass(t,[{key:"ngOnInit",value:function(){this.dataSource=new J.by(this.data.attributes)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t,e=this,i=[],n=_createForOfIteratorHelper(this.data.attributes);try{for(n.s();!(t=n.n()).done;){var r=t.value;i.push(r.id)}}catch(a){n.e(a)}finally{n.f()}var o={};switch(o[this.data.entity]=this.data.entityId,o.attributes=i,void 0!==this.data.secondEntity&&(o[this.data.secondEntity]=this.data.secondEntityId),this.data.entity){case"vo":this.attributesManager.setVoAttributes({vo:this.data.entityId,attributes:this.data.attributes}).subscribe(function(){e.onSuccess()});break;case"group":switch(this.data.secondEntity){case"resource":this.attributesManager.setGroupResourceAttributes({group:this.data.entityId,resource:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(function(){return e.onSuccess()});break;default:this.attributesManager.setGroupAttributes({group:this.data.entityId,attributes:this.data.attributes}).subscribe(function(){e.onSuccess()})}break;case"user":switch(this.data.secondEntity){case"facility":this.attributesManager.setUserFacilityAttributes({user:this.data.entityId,facility:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(function(){return e.onSuccess()});break;default:this.attributesManager.setUserAttributes({user:this.data.entityId,attributes:this.data.attributes}).subscribe(function(){e.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(function(){return e.onSuccess()});break;case"group":this.attributesManager.setMemberGroupAttributes({member:this.data.entityId,group:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(function(){return e.onSuccess()});break;default:this.attributesManager.setMemberAttributes({member:this.data.entityId,attributes:this.data.attributes}).subscribe(function(){e.onSuccess()})}break;case"facility":this.attributesManager.setFacilityAttributes({facility:this.data.entityId,attributes:this.data.attributes}).subscribe(function(){e.onSuccess()});break;case"host":this.attributesManager.setHostAttributes({host:this.data.entityId,attributes:this.data.attributes}).subscribe(function(){e.onSuccess()});break;case"ues":this.attributesManager.setUserExtSourceAttributes({userExtSource:this.data.entityId,attributes:this.data.attributes}).subscribe(function(){e.onSuccess()});break;case"resource":this.attributesManager.setResourceAttributes({resource:this.data.entityId,attributes:this.data.attributes}).subscribe(function(){return e.onSuccess()})}}},{key:"onSuccess",value:function(){var t=this;this.translate.get("DIALOGS.EDIT_ATTRIBUTES.SUCCESS").subscribe(function(e){t.notificator.showSuccess(e),t.dialogRef.close(!0)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(r.WI),s.Y36(a.V6),s.Y36(c.sK),s.Y36(o.H8))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s.TgZ(4,"div"),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"div",2),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"table",3),s.ynx(11,4),s.YNc(12,st,1,0,"th",5),s.YNc(13,ct,2,1,"td",6),s.BQk(),s.YNc(14,ut,1,0,"tr",7),s.YNc(15,lt,1,0,"tr",8),s.qZA(),s.qZA(),s.TgZ(16,"div",9),s.TgZ(17,"button",10),s.NdJ("click",function(){return e.onCancel()}),s._uU(18),s.ALo(19,"translate"),s.qZA(),s.TgZ(20,"button",11),s.NdJ("click",function(){return e.onSubmit()}),s._uU(21),s.ALo(22,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,8,"DIALOGS.EDIT_ATTRIBUTES.TITLE")),s.xp6(4),s.hij(" ",s.lcZ(6,10,"DIALOGS.EDIT_ATTRIBUTES.DESCRIPTION")," "),s.xp6(3),s.hij(" ",s.lcZ(9,12,"DIALOGS.EDIT_ATTRIBUTES.ASK")," "),s.xp6(2),s.Q6J("dataSource",e.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(3),s.hij(" ",s.lcZ(19,14,"DIALOGS.EDIT_ATTRIBUTES.CANCEL")," "),s.xp6(3),s.hij(" ",s.lcZ(22,16,"DIALOGS.EDIT_ATTRIBUTES.SAVE")," "))},directives:[r.uh,r.xY,J.BZ,J.w1,J.fO,J.Dz,J.as,J.nj,r.H8,l.lW,J.ge,J.ev,J.XQ,J.Gk],pipes:[c.X$],styles:[""]}),t}(),dt=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.attributeValue=""}return _createClass(t,[{key:"ngOnInit",value:function(){this.attributeValue=this.data.attribute.value[this.data.index]}},{key:"cancel",value:function(){this.dialogRef.close()}},{key:"submit",value:function(){this.data.attribute.value[this.data.index]=this.attributeValue,this.dialogRef.close(!0)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(r.WI))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h5",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s.TgZ(4,"mat-form-field"),s.TgZ(5,"textarea",2),s.NdJ("ngModelChange",function(t){return e.attributeValue=t}),s.qZA(),s.qZA(),s.qZA(),s.TgZ(6,"div",3),s.TgZ(7,"button",4),s.NdJ("click",function(){return e.cancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return e.submit()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE"),"\n"),s.xp6(4),s.Q6J("ngModel",e.attributeValue),s.xp6(3),s.hij(" ",s.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),s.xp6(3),s.hij(" ",s.lcZ(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},directives:[r.uh,r.xY,d.KE,rt.IC,C.Nt,k.Fj,k.JJ,k.On,r.H8,l.lW],pipes:[c.X$],styles:[""]}),t}(),ft=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.dialogRef=e,this.data=i}return _createClass(t,[{key:"cancel",value:function(){this.dialogRef.close()}},{key:"submit",value:function(){this.dialogRef.close(!0)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(r.WI))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h5",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s.TgZ(4,"div"),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"div",2),s._uU(8),s.qZA(),s.qZA(),s.TgZ(9,"div",3),s.TgZ(10,"button",4),s.NdJ("click",function(){return e.cancel()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.TgZ(13,"button",5),s.NdJ("click",function(){return e.submit()}),s._uU(14),s.ALo(15,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE"),"\n"),s.xp6(4),s.hij(" ",s.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),s.xp6(3),s.hij(" ",e.data.name," "),s.xp6(3),s.hij(" ",s.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),s.xp6(3),s.hij(" ",s.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},directives:[r.uh,r.xY,r.H8,l.lW],pipes:[c.X$],styles:[""]}),t}(),pt=i(39571);function gt(t,e){if(1&t&&(s.TgZ(0,"app-alert",9),s._uU(1),s.qZA()),2&t){var i=s.oxw();s.xp6(1),s.Oqu(i.pendingEmailsMessage)}}function mt(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}var vt=function(){var t=function(){function t(e,i,n,r,o,a){var s=this;_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.translate=n,this.notificator=r,this.usersManagerService=o,this.authService=a,this.pendingMails=[],n.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(function(t){return s.successMessage=t}),n.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(function(t){return s.pendingEmailsMessageStart=t}),n.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(function(t){return s.pendingEmailsMessageEnd=t})}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.emailControl=new k.NI(null,[k.kI.required,k.kI.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(function(e){t.pendingMails=e.filter(function(t,e,i){return e===i.indexOf(t)});var i="";t.pendingMails.forEach(function(e){return i+="".concat(e===t.pendingMails[0]?"":", ").concat(e)}),console.log(i),t.pendingEmailsMessage=t.pendingEmailsMessageStart+i+t.pendingEmailsMessageEnd})}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var t=this,e=window.location.href.split("/");this.usersManagerService.requestPreferredEmailChange(this.data.userId,this.emailControl.value,this.translate.currentLang,"",e[0]+"//"+e[2],this.authService.getIdpFilter()).subscribe(function(){t.notificator.showSuccess(t.successMessage),t.dialogRef.close()})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(r.WI),s.Y36(c.sK),s.Y36(a.V6),s.Y36(o.Fv),s.Y36(a.e8))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.TgZ(4,"div",1),s.YNc(5,gt,2,1,"app-alert",2),s.TgZ(6,"mat-form-field",3),s.TgZ(7,"label",3),s._UZ(8,"input",4),s.ALo(9,"translate"),s.ALo(10,"customTranslate"),s.qZA(),s.YNc(11,mt,4,5,"mat-error",5),s.qZA(),s.qZA(),s.TgZ(12,"div",6),s.TgZ(13,"button",7),s.NdJ("click",function(){return e.onCancel()}),s._uU(14),s.ALo(15,"translate"),s.ALo(16,"customTranslate"),s.qZA(),s.TgZ(17,"button",8),s.NdJ("click",function(){return e.onSubmit()}),s._uU(18),s.ALo(19,"translate"),s.ALo(20,"customTranslate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,8,s.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),s.xp6(4),s.Q6J("ngIf",e.pendingMails.length),s.xp6(3),s.s9C("placeholder",s.lcZ(9,12,s.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),s.Q6J("formControl",e.emailControl),s.xp6(3),s.Q6J("ngIf",e.emailControl.invalid),s.xp6(3),s.hij(" ",s.lcZ(15,16,s.lcZ(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),s.xp6(3),s.Q6J("disabled",!e.emailControl.valid),s.xp6(1),s.hij(" ",s.lcZ(19,20,s.lcZ(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},directives:[r.uh,r.xY,u.O5,d.KE,C.Nt,k.Fj,k.Q7,k.JJ,k.oH,r.H8,l.lW,pt.w,d.TO],pipes:[c.X$,Q.a],styles:[""]}),t}();function yt(t,e){1&t&&s._UZ(0,"mat-spinner",6)}function _t(t,e){1&t&&s._UZ(0,"th",15)}function bt(t,e){if(1&t&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.xp6(1),s.Oqu(i)}}function wt(t,e){1&t&&s._UZ(0,"tr",17)}function At(t,e){1&t&&s._UZ(0,"tr",18)}function kt(t,e){if(1&t&&(s.TgZ(0,"div",7),s.TgZ(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,_t,1,0,"th",11),s.YNc(10,bt,2,1,"td",12),s.BQk(),s.YNc(11,wt,1,0,"tr",13),s.YNc(12,At,1,0,"tr",14),s.qZA(),s.qZA()),2&t){var i=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,5,i.data.description)," "),s.xp6(3),s.hij(" ",s.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "),s.xp6(2),s.Q6J("dataSource",i.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",i.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",i.displayedColumns)}}var Ct=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.displayedColumns=["name"],this.loading=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new J.by(this.data.items)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){this.dialogRef.close(!0)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(r.WI))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-universal-remove-items-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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,yt,1,0,"mat-spinner",1),s.YNc(5,kt,13,9,"div",2),s.TgZ(6,"div",3),s.TgZ(7,"button",4),s.NdJ("click",function(){return e.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return e.onSubmit()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.Oqu(s.lcZ(3,9,e.data.title)),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,11,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),s.xp6(2),s.Q6J("disabled",e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,13,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," "))},directives:[r.uh,u.O5,r.H8,l.lW,h.$g,r.xY,J.BZ,J.w1,J.fO,J.Dz,J.as,J.nj,J.ge,J.ev,J.XQ,J.Gk],pipes:[c.X$],styles:[""]}),t}(),Tt=i(71709),Et=i(91010),St=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){var e=t.split(":");return e[e.length-1]}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"parseGroupName",type:t,pure:!0}),t}();function It(t,e){1&t&&s._UZ(0,"mat-spinner",7)}function Rt(t,e){1&t&&(s.TgZ(0,"app-alert"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.NO_PATHS")))}function xt(t,e){1&t&&(s.TgZ(0,"span",23),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function Ot(t,e){1&t&&(s.TgZ(0,"span",23),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}var Pt=function(t){return{"min-width":t}};function Dt(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"mat-tree-node",16),s.TgZ(1,"li",17),s.TgZ(2,"div",18),s.NdJ("click",function(){var t=s.CHM(i).$implicit;return s.oxw(3).navigate(t.id,t.include)}),s._UZ(3,"button",19),s.TgZ(4,"div",20),s.TgZ(5,"span"),s._uU(6),s.ALo(7,"parseGroupName"),s.qZA(),s.YNc(8,xt,3,3,"span",21),s.YNc(9,Ot,3,3,"span",21),s.qZA(),s.TgZ(10,"span",22),s._uU(11),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){var n=e.$implicit,r=s.oxw(3);s.xp6(2),s.ekj("cursor-pointer",n.direct||n.include)("act-disabled",!n.direct&&!n.include),s.xp6(2),s.Q6J("ngStyle",s.VKq(11,Pt,r.getMinWidth(n.level))),s.xp6(2),s.Oqu(s.lcZ(7,9,n.name)),s.xp6(2),s.Q6J("ngIf",n.direct),s.xp6(1),s.Q6J("ngIf",n.include),s.xp6(2),s.Oqu(n.description)}}function Mt(t,e){1&t&&(s.TgZ(0,"span",23),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function Lt(t,e){1&t&&(s.TgZ(0,"span",23),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}function Nt(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"mat-nested-tree-node"),s.TgZ(1,"li"),s.TgZ(2,"div",17),s.TgZ(3,"button",24),s.TgZ(4,"mat-icon",25),s._uU(5),s.qZA(),s.qZA(),s.TgZ(6,"div",18),s.NdJ("click",function(){var t=s.CHM(i).$implicit;return s.oxw(3).navigate(t.id,t.include)}),s.TgZ(7,"div",20),s.TgZ(8,"span"),s._uU(9),s.ALo(10,"parseGroupName"),s.qZA(),s.YNc(11,Mt,3,3,"span",21),s.YNc(12,Lt,3,3,"span",21),s.qZA(),s.TgZ(13,"span",22),s._uU(14),s.qZA(),s.qZA(),s.qZA(),s.TgZ(15,"ul"),s.GkF(16,26),s.qZA(),s.qZA(),s.qZA()}if(2&t){var n=e.$implicit,r=s.oxw(3);s.xp6(3),s.uIk("aria-label","Toggle "+n.name),s.xp6(2),s.hij(" ",r.treeControl.isExpanded(n)?"expand_more":"chevron_right"," "),s.xp6(1),s.ekj("cursor-pointer",n.direct||n.include)("act-disabled",!n.direct&&!n.include),s.xp6(1),s.Q6J("ngStyle",s.VKq(15,Pt,r.getMinWidth(n.level))),s.xp6(2),s.Oqu(s.lcZ(10,13,n.name)),s.xp6(2),s.Q6J("ngIf",n.direct),s.xp6(1),s.Q6J("ngIf",n.include),s.xp6(2),s.Oqu(n.description),s.xp6(1),s.ekj("example-tree-invisible",!r.treeControl.isExpanded(n))}}function zt(t,e){if(1&t&&(s.TgZ(0,"mat-tree",13),s.YNc(1,Dt,12,13,"mat-tree-node",14),s.YNc(2,Nt,17,17,"mat-nested-tree-node",15),s.qZA()),2&t){var i=s.oxw(2);s.Q6J("dataSource",i.dataSource)("treeControl",i.treeControl),s.xp6(2),s.Q6J("matTreeNodeDefWhen",i.hasChild)}}function Zt(t,e){if(1&t&&(s.TgZ(0,"div",8),s.TgZ(1,"p"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"mat-form-field",9),s._UZ(5,"input",10),s.ALo(6,"translate"),s.qZA(),s.YNc(7,Rt,3,3,"app-alert",11),s.YNc(8,zt,3,3,"mat-tree",12),s.qZA()),2&t){var i=s.oxw();s.xp6(2),s.Oqu(s.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INFO")),s.xp6(3),s.s9C("placeholder",s.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.FILTER")),s.Q6J("formControl",i.formControl),s.xp6(2),s.Q6J("ngIf",!i.dataSource.data.length),s.xp6(1),s.Q6J("ngIf",i.dataSource.data.length)}}var Bt=function(t){return{name:t}},Ft=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.groupsManagerService=n,this.treeControl=new Tt.VY(function(t){return t.children}),this.dataSource=new Et.WX,this.groupTree=[],this.paths=[],this.formControl=new k.NI(""),this.userName="",this.hasChild=function(t,e){return!!e.children&&e.children.length>0}}return _createClass(t,[{key:"recursiveSearch",value:function(t,e,i){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1];window.open("/organizations/".concat(this.data.member.voId,"/groups/").concat(t).concat(e?"/settings/relations":""),"_blank")}},{key:"getMinWidth",value:function(t){return 400-40*t+"px"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(r.WI),s.Y36(o.ff))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,It,1,0,"mat-spinner",2),s.YNc(5,Zt,9,9,"div",3),s.TgZ(6,"div",4),s.TgZ(7,"div",5),s.TgZ(8,"button",6),s.NdJ("click",function(){return e.onCancel()}),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.hij(" ",s.xi3(3,4,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.TITLE",s.VKq(9,Bt,e.userName))," "),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(4),s.hij(" ",s.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.CLOSE")," "))},directives:[r.uh,u.O5,r.H8,l.lW,h.$g,r.xY,d.KE,C.Nt,k.Fj,k.JJ,k.oH,pt.w,Et.gi,Et.fQ,Et.uo,Et.eu,u.PC,Et.GZ,z.Hw,Et.Ar],pipes:[c.X$,St],styles:[".example-tree-invisible[_ngcontent-%COMP%]{display:none}.example-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .example-tree[_ngcontent-%COMP%] ul[_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:auto!important}"]}),t}(),Ht=i(57629),Ut=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.dialogRef=e,this.router=i}return _createClass(t,[{key:"onClose",value:function(){this.router.navigate([]),this.dialogRef.close()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(Ht.F0))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s.TgZ(4,"app-alert",2),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA(),s.TgZ(7,"div",3),s.TgZ(8,"button",4),s.NdJ("click",function(){return e.onClose()}),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE"),"\n"),s.xp6(4),s.Oqu(s.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),s.xp6(4),s.hij(" ",s.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},directives:[r.uh,r.xY,pt.w,r.H8,l.lW],pipes:[c.X$],styles:[""]}),t}(),qt=i(54810),Gt=i(15812),jt=i(58506);function Yt(t,e){1&t&&(s.TgZ(0,"mat-radio-button",16),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.VO_RULES")," "))}function Kt(t,e){1&t&&(s.TgZ(0,"mat-radio-button",17),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.GROUP_RULES")," "))}function Vt(t,e){1&t&&(s.TgZ(0,"app-alert",18),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.STATUS_CHANGE_INFO")))}var Jt=function(){var t=function(){function t(e){_classCallCheck(this,t),this.dialogRef=e,this.canExtendMembership=!1,this.expirationChanged=new s.vpe,this.statusChange=new s.vpe,this.expirationControl=new k.NI(null)}return _createClass(t,[{key:"ngOnInit",value:function(){var t=new Date;this.currentDate=(0,u.p6)(new Date(t.getFullYear(),t.getMonth(),t.getDate()),"yyyy-MM-dd","en_US"),"never"!==this.newExpiration&&this.expirationControl.setValue(this.newExpiration)}},{key:"parseDate",value:function(t){return(0,u.p6)(t,"yyyy-MM-dd","en_US")}},{key:"onChange",value:function(){"EXPIRED"===this.status&&("never"===this.newExpiration||this.parseDate(this.expirationControl.value)>this.currentDate)&&this.statusChange.emit(!0),this.expirationChanged.emit(this.newExpiration)}},{key:"onCancel",value:function(){this.dialogRef.close({success:!1})}},{key:"setExpiration",value:function(){this.newExpiration=(0,u.p6)(this.expirationControl.value,"yyyy-MM-dd","en"),this.expirationControl.setValue((0,u.p6)(this.expirationControl.value,"yyyy-MM-dd","en"))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so))},t.\u0275cmp=s.Xpm({type:t,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(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"p"),s.TgZ(3,"strong"),s._uU(4),s.ALo(5,"translate"),s.qZA(),s._uU(6),s.ALo(7,"parseDate"),s.qZA(),s.TgZ(8,"p"),s.TgZ(9,"strong"),s._uU(10),s.ALo(11,"translate"),s.qZA(),s._uU(12),s.ALo(13,"parseDate"),s.qZA(),s.TgZ(14,"mat-radio-group",2),s.NdJ("ngModelChange",function(t){return e.newExpiration=t}),s.TgZ(15,"mat-radio-button",3),s.TgZ(16,"mat-form-field",4),s.NdJ("click",function(){return s.CHM(i),s.MAs(23).open()}),s.TgZ(17,"mat-label"),s._uU(18),s.ALo(19,"translate"),s.qZA(),s.TgZ(20,"input",5),s.NdJ("dateChange",function(){return e.setExpiration()}),s.qZA(),s._UZ(21,"mat-datepicker-toggle",6),s._UZ(22,"mat-datepicker",7,8),s.qZA(),s.qZA(),s.YNc(24,Yt,3,3,"mat-radio-button",9),s.YNc(25,Kt,3,3,"mat-radio-button",10),s.TgZ(26,"mat-radio-button",11),s._uU(27),s.ALo(28,"translate"),s.qZA(),s.qZA(),s.YNc(29,Vt,3,3,"app-alert",12),s.qZA(),s.TgZ(30,"div",13),s.TgZ(31,"button",14),s.NdJ("click",function(){return e.onCancel()}),s._uU(32),s.ALo(33,"translate"),s.qZA(),s.TgZ(34,"button",15),s.NdJ("click",function(){return e.onChange()}),s._uU(35),s.ALo(36,"translate"),s.qZA(),s.qZA(),s.qZA()}if(2&t){var n=s.MAs(23);s.xp6(4),s.Oqu(s.lcZ(5,21,"DIALOGS.CHANGE_EXPIRATION.CURRENT_EXPIRATION")),s.xp6(2),s.hij(" ",s.lcZ(7,23,e.currentExpiration)," "),s.xp6(4),s.Oqu(s.lcZ(11,25,"DIALOGS.CHANGE_EXPIRATION.NEW_EXPIRATION")),s.xp6(2),s.hij(" ",e.newExpiration?s.lcZ(13,27,e.newExpiration):"never"," "),s.xp6(2),s.Q6J("ngModel",e.newExpiration),s.xp6(1),s.s9C("value",e.expirationControl.value),s.xp6(3),s.Oqu(s.lcZ(19,29,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),s.xp6(2),s.Q6J("min",e.minDate)("max",e.maxDate)("formControl",e.expirationControl)("matDatepicker",n),s.xp6(1),s.Q6J("for",n)("disabled",!1),s.xp6(1),s.Q6J("disabled",!1),s.xp6(2),s.Q6J("ngIf",e.canExtendMembership&&"vo"===e.mode),s.xp6(1),s.Q6J("ngIf",e.canExtendMembership&&"group"===e.mode),s.xp6(2),s.hij(" ",s.lcZ(28,31,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),s.xp6(2),s.Q6J("ngIf","EXPIRED"===e.status&&("never"===e.newExpiration||e.parseDate(e.expirationControl.value)>e.currentDate)),s.xp6(3),s.hij(" ",s.lcZ(33,33,"DIALOGS.CHANGE_EXPIRATION.CANCEL")," "),s.xp6(2),s.Q6J("disabled",e.expirationControl.invalid),s.xp6(1),s.hij(" ",s.lcZ(36,35,"DIALOGS.CHANGE_EXPIRATION.SAVE")," ")}},directives:[r.xY,qt.VQ,k.JJ,k.On,qt.U0,d.KE,d.hX,C.Nt,k.Fj,Gt.hl,k.oH,Gt.nW,d.R9,Gt.Mq,u.O5,r.H8,l.lW,pt.w],pipes:[c.X$,jt.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}"]}),t}();function Qt(t,e){1&t&&s._UZ(0,"mat-spinner",4)}function Wt(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"perun-web-apps-change-expiration-dialog",5),s.NdJ("statusChange",function(){return s.CHM(i),s.oxw().changeStatus=!0})("expirationChanged",function(t){return s.CHM(i),s.oxw().onExpirationChanged(t)}),s.qZA()}if(2&t){var n=s.oxw();s.Q6J("minDate",n.minDate)("maxDate",n.maxDate)("currentExpiration",n.currentExpiration)("newExpiration",n.newExpiration)("canExtendMembership",n.canExtendMembership)("mode","group")("status",n.status)}}var Xt=function(){var t=function(){function t(e,i,n,r,o,a,s){var c=this;_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.attributesManagerService=n,this.memberManager=r,this.groupManager=o,this.translate=a,this.notificator=s,this.loading=!1,this.expirationAttr=null,this.canExtendMembership=!1,a.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(function(t){return c.successMessage=t})}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.status=this.data.status,this.loading=!0;var 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&&this.expirationAttr.value?this.expirationAttr.value:"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&("VALID"!==this.data.status?(this.newExpiration=(0,u.p6)(e,"yyyy-MM-dd","en"),this.maxDate=e):this.newExpiration="never"),"VALID"===this.data.status?this.attributesManagerService.getGroupAttributeByName(this.data.groupId,L.r.GROUP_DEF_EXPIRATION_RULES).subscribe(function(e){null!==e.value?t.groupManager.canExtendMembershipInGroup(t.data.memberId,t.data.groupId).subscribe(function(e){t.canExtendMembership=!!e,t.loading=!1},function(){return t.loading=!1}):t.loading=!1},function(){return t.loading=!1}):this.loading=!1}},{key:"onExpirationChanged",value:function(t){var e=this;this.loading=!0,"groupRules"===t?this.groupManager.extendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe(function(){e.loading=!1,e.notificator.showSuccess(e.successMessage),e.dialogRef.close({success:!0})},function(){return e.loading=!1}):(this.expirationAttr.value="never"===t?null:t,this.attributesManagerService.setMemberGroupAttributes({member:this.data.memberId,group:this.data.groupId,attributes:[this.expirationAttr]}).subscribe(function(){e.changeStatus&&"EXPIRED"===e.status?e.groupManager.setGroupsMemberStatus(e.data.memberId,e.data.groupId,"VALID").subscribe(function(t){e.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(function(i){e.notificator.showSuccess(i),e.loading=!1,e.notificator.showSuccess(e.successMessage),e.dialogRef.close({success:!0,member:t})})},function(){return e.loading=!1}):(e.loading=!1,e.notificator.showSuccess(e.successMessage),e.dialogRef.close({success:!0}))},function(){return e.loading=!1}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(r.WI),s.Y36(o.H8),s.Y36(o.uq),s.Y36(o.ff),s.Y36(c.sK),s.Y36(a.V6))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,Qt,1,0,"mat-spinner",2),s.YNc(5,Wt,1,7,"perun-web-apps-change-expiration-dialog",3),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,3,"DIALOGS.CHANGE_GROUP_EXPIRATION.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[r.uh,u.O5,h.$g,Jt],pipes:[c.X$],styles:[""]}),t}(),$t=i(90888);function te(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.FIELD_EMPTY")))}function ee(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"form",5),s.TgZ(1,"div",6),s.TgZ(2,"mat-form-field"),s.TgZ(3,"mat-label"),s._uU(4),s.ALo(5,"translate"),s.qZA(),s._UZ(6,"input",7),s.TgZ(7,"mat-icon",8),s.NdJ("click",function(){s.CHM(i);var t=s.oxw();return t.showOldPassword=!t.showOldPassword}),s._uU(8),s.qZA(),s.YNc(9,te,3,3,"mat-error",9),s.qZA(),s._UZ(10,"perun-web-apps-password-form",10),s.qZA(),s.qZA()}if(2&t){var n=s.oxw();s.Q6J("formGroup",n.formGroup),s.xp6(4),s.Oqu(s.lcZ(5,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.OLD_PASSWORD")),s.xp6(2),s.Q6J("type",n.showOldPassword?"text":"password"),s.xp6(2),s.hij(" ",n.showOldPassword?"visibility_off":"visibility"," "),s.xp6(1),s.Q6J("ngIf",n.oldPwd.hasError("required")),s.xp6(1),s.Q6J("formGroup",n.formGroup)("namespace",n.data.namespace)}}function ie(t,e){1&t&&s._UZ(0,"mat-spinner",11)}function ne(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"div",12),s.TgZ(1,"div",13),s.TgZ(2,"button",14),s.NdJ("click",function(){return s.CHM(i),s.oxw().close()}),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.TgZ(5,"button",15),s.NdJ("click",function(){return s.CHM(i),s.oxw().changePassword()}),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.qZA(),s.qZA()}if(2&t){var n=s.oxw();s.xp6(3),s.hij(" ",s.lcZ(4,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CANCEL")," "),s.xp6(2),s.Q6J("disabled",n.formGroup.invalid||n.formGroup.pending),s.xp6(1),s.hij(" ",s.lcZ(7,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CHANGE")," ")}}var re=function(){var t=function(){function t(e,i,n,r,o,a,s){var c=this;_classCallCheck(this,t),this.dialogRef=e,this.data=i,this._formBuilder=n,this.usersManagerService=r,this.apiRequestConfiguration=o,this.notificator=a,this.translate=s,this.showOldPassword=!1,s.get("SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.SUCCESS").subscribe(function(t){return c.successMessage=t})}return _createClass(t,[{key:"ngOnInit",value:function(){this.formGroup=this._formBuilder.group({oldPasswordCtrl:["",k.kI.required],passwordCtrl:["",k.kI.required,[(0,n.yT)(this.data.namespace,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""]},{validators:N.dN.passwordMatchValidator}),this.oldPwd=this.formGroup.get("oldPasswordCtrl"),this.newPwd=this.formGroup.get("passwordCtrl"),this.newPwdAgain=this.formGroup.get("passwordAgainCtrl")}},{key:"close",value:function(){this.dialogRef.close(!1)}},{key:"changePassword",value:function(){var t=this;this.loading=!0,this.usersManagerService.changePasswordForLogin(this.data.login,this.data.namespace,this.newPwd.value,this.oldPwd.value,!0).subscribe(function(){t.notificator.showSuccess(t.successMessage),t.loading=!1,t.dialogRef.close(!0)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(r.WI),s.Y36(k.qu),s.Y36(o.Fv),s.Y36(a.F5),s.Y36(a.V6),s.Y36(c.sK))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s.YNc(4,ee,11,9,"form",2),s.YNc(5,ie,1,0,"mat-spinner",3),s.qZA(),s.YNc(6,ne,8,7,"div",4)),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.TITLE")),s.xp6(3),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[r.uh,r.xY,u.O5,k._Y,k.JL,k.sg,d.KE,d.hX,k.Fj,C.Nt,k.JJ,k.u,k.Q7,z.Hw,d.R9,$t.G,d.TO,h.$g,r.H8,l.lW],pipes:[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}"]}),t}();function oe(t,e){1&t&&s._UZ(0,"mat-spinner",4)}function ae(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"perun-web-apps-change-expiration-dialog",5),s.NdJ("statusChange",function(){return s.CHM(i),s.oxw().changeStatus=!0})("expirationChanged",function(t){return s.CHM(i),s.oxw().onExpirationChanged(t)}),s.qZA()}if(2&t){var n=s.oxw();s.Q6J("minDate",n.minDate)("maxDate",n.maxDate)("currentExpiration",n.currentExpiration)("newExpiration",n.newExpiration)("canExtendMembership",n.canExtendMembership)("mode","vo")("status",n.status)}}var se=function(){var t=function(){function t(e,i,n,r,o,a){var s=this;_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.attributesManagerService=n,this.memberManager=r,this.translate=o,this.notificator=a,this.loading=!1,this.expirationAttr=null,this.canExtendMembership=!1,o.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(function(t){return s.successMessage=t})}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.status=this.data.status,this.loading=!0;var 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&&this.expirationAttr.value?this.expirationAttr.value:"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&("VALID"!==this.data.status?(this.newExpiration=(0,u.p6)(e,"yyyy-MM-dd","en"),this.maxDate=e):this.newExpiration="never"),"VALID"===this.data.status?this.attributesManagerService.getVoAttributeByName(this.data.voId,L.r.VO_DEF_EXPIRATION_RULES).subscribe(function(e){null!==e.value?t.memberManager.canExtendMembership(t.data.memberId).subscribe(function(e){t.canExtendMembership=!!e,t.loading=!1},function(){return t.loading=!1}):t.loading=!1},function(){return t.loading=!1}):this.loading=!1}},{key:"onExpirationChanged",value:function(t){var e=this;this.loading=!0,"voRules"===t?this.memberManager.extendMembership(this.data.memberId).subscribe(function(){e.loading=!1,e.notificator.showSuccess(e.successMessage),e.dialogRef.close({success:!0})},function(){return e.loading=!1}):(this.expirationAttr.value="never"===t?null:t,this.attributesManagerService.setMemberAttribute({member:this.data.memberId,attribute:this.expirationAttr}).subscribe(function(){e.changeStatus&&"EXPIRED"===e.status?e.memberManager.setStatus(e.data.memberId,"VALID").subscribe(function(t){e.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(function(i){e.notificator.showSuccess(i),e.loading=!1,e.notificator.showSuccess(e.successMessage),e.dialogRef.close({success:!0,member:t})})},function(){return e.loading=!1}):(e.loading=!1,e.notificator.showSuccess(e.successMessage),e.dialogRef.close({success:!0}))},function(){return e.loading=!1}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(r.WI),s.Y36(o.H8),s.Y36(o.uq),s.Y36(c.sK),s.Y36(a.V6))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,oe,1,0,"mat-spinner",2),s.YNc(5,ae,1,7,"perun-web-apps-change-expiration-dialog",3),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,3,"DIALOGS.CHANGE_VO_EXPIRATION.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[r.uh,u.O5,h.$g,Jt],pipes:[c.X$],styles:[""]}),t}();function ce(t,e){1&t&&s._UZ(0,"mat-spinner",4)}function ue(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"perun-web-apps-change-expiration-dialog",5),s.NdJ("expirationChanged",function(t){return s.CHM(i),s.oxw().onExpirationChanged(t)}),s.qZA()}if(2&t){var n=s.oxw();s.Q6J("minDate",n.minDate)("currentExpiration",n.currentExpiration)("newExpiration",n.newExpiration)("mode","sponsor")}}var le=function(){var t=function(){function t(e,i,n,r,o,a,s){var c=this;_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.attributesManagerService=n,this.memberManager=r,this.groupManager=o,this.translate=a,this.notificator=s,this.loading=!1,a.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(function(t){return c.successMessage=t})}return _createClass(t,[{key:"ngOnInit",value:function(){this.loading=!0,this.currentExpiration=this.data.sponsor.validityTo?this.data.sponsor.validityTo:"never",this.newExpiration=this.currentExpiration;var t=new Date;this.minDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()),this.loading=!1}},{key:"onExpirationChanged",value:function(t){var e=this;this.loading=!0,this.memberManager.updateSponsorshipValidity(this.data.memberId,this.data.sponsor.user.id,"never"===t?null:t).subscribe(function(){e.loading=!1,e.notificator.showSuccess(e.successMessage),e.dialogRef.close(!0)},function(){return e.loading=!1})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(r.WI),s.Y36(o.H8),s.Y36(o.uq),s.Y36(o.ff),s.Y36(c.sK),s.Y36(a.V6))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,ce,1,0,"mat-spinner",2),s.YNc(5,ue,1,4,"perun-web-apps-change-expiration-dialog",3),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,3,"DIALOGS.CHANGE_SPONSORSHIP_EXPIRATION.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[r.uh,u.O5,h.$g,Jt],pipes:[c.X$],styles:[""]}),t}();function he(t,e){1&t&&s._UZ(0,"mat-spinner",4)}function de(t,e){1&t&&(s.TgZ(0,"span",11),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function fe(t,e){1&t&&(s.TgZ(0,"span",11),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function pe(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"mat-radio-group",12),s.NdJ("ngModelChange",function(t){return s.CHM(i),s.oxw(2).asyncValidation=t}),s.TgZ(1,"span",13),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"mat-radio-button",14),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"mat-radio-button",14),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.qZA()}if(2&t){var n=s.oxw(2);s.Q6J("ngModel",n.asyncValidation),s.xp6(2),s.hij(" ",s.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE"),": "),s.xp6(2),s.Q6J("value",!1),s.xp6(1),s.hij(" ",s.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),s.xp6(2),s.Q6J("value",!0),s.xp6(1),s.hij(" ",s.lcZ(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," ")}}function ge(t,e){1&t&&(s.TgZ(0,"span",11),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function me(t,e){1&t&&(s.TgZ(0,"span",11),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function ve(t,e){if(1&t&&(s.TgZ(0,"div",5),s.TgZ(1,"p",6),s._uU(2),s.TgZ(3,"span",7),s._uU(4),s.qZA(),s._uU(5),s.TgZ(6,"span",7),s._uU(7),s.qZA(),s.qZA(),s.TgZ(8,"p"),s.TgZ(9,"strong",8),s._uU(10),s.ALo(11,"translate"),s.qZA(),s._uU(12),s.qZA(),s.TgZ(13,"p"),s.TgZ(14,"strong",8),s._uU(15),s.ALo(16,"translate"),s.qZA(),s._uU(17),s.qZA(),s.YNc(18,de,3,3,"span",9),s.YNc(19,fe,3,3,"span",9),s.YNc(20,pe,10,12,"mat-radio-group",10),s.YNc(21,ge,3,3,"span",9),s.YNc(22,me,3,3,"span",9),s.qZA()),2&t){var i=s.oxw();s.xp6(2),s.hij(" ",i.group.name," "),s.xp6(2),s.hij("#",i.group.id,""),s.xp6(1),s.hij(" - ",i.resource.name," "),s.xp6(2),s.hij("#",i.resource.id,""),s.xp6(3),s.hij("",s.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT"),":"),s.xp6(2),s.hij(" ",i.status," "),s.xp6(3),s.hij("",s.lcZ(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW"),":"),s.xp6(2),s.hij(" ",i.getReversedStatus()," "),s.xp6(1),s.Q6J("ngIf","INACTIVE"===i.status),s.xp6(1),s.Q6J("ngIf","ACTIVE"===i.status),s.xp6(1),s.Q6J("ngIf","INACTIVE"===i.status),s.xp6(1),s.Q6J("ngIf","INACTIVE"===i.status&&!1===i.asyncValidation),s.xp6(1),s.Q6J("ngIf","INACTIVE"===i.status&&!0===i.asyncValidation)}}function ye(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"div",15),s.TgZ(1,"button",16),s.NdJ("click",function(){return s.CHM(i),s.oxw().onCancel()}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"button",17),s.NdJ("click",function(){return s.CHM(i),s.oxw().onSubmit()}),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA()}if(2&t){var n=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),s.xp6(2),s.Q6J("disabled",n.loading),s.xp6(1),s.hij(" ",s.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG."+("ACTIVE"===n.status?"DEACTIVATE":"ACTIVATE"))," ")}}var _e=function(){var t=function(){function t(e,i,n,r){_classCallCheck(this,t),this.dialogRef=e,this.data=i,this.resourceService=n,this.groupService=r,this.loading=!1,this.asyncValidation=!1,this.resource=null,this.group=null}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.loading=!0,this.status=this.data.status,this.theme=this.data.theme,this.resourceService.getResourceById(this.data.resourceId).subscribe(function(e){t.resource=e,t.groupService.getGroupById(t.data.groupId).subscribe(function(e){t.group=e,t.loading=!1},function(){return t.loading=!1})},function(){return t.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var t=this;this.loading=!0,"ACTIVE"===this.status?this.resourceService.deactivateGroupResourceAssignment(this.data.groupId,this.data.resourceId).subscribe(function(){t.dialogRef.close(!0),t.loading=!1},function(){return t.loading=!1}):this.resourceService.activateGroupResourceAssignment(this.data.groupId,this.data.resourceId,this.asyncValidation).subscribe(function(){t.dialogRef.close(!0),t.loading=!1},function(){return t.loading=!1})}},{key:"getReversedStatus",value:function(){return"ACTIVE"===this.status?"INACTIVE":"ACTIVE"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.so),s.Y36(r.WI),s.Y36(o.xk),s.Y36(o.ff))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,he,1,0,"mat-spinner",1),s.YNc(5,ve,23,17,"div",2),s.YNc(6,ye,7,7,"div",3),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.hij(" ",s.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")," "),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[r.uh,u.O5,h.$g,r.xY,qt.VQ,k.JJ,k.On,qt.U0,r.H8,l.lW],pipes:[c.X$],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),t}()},84534:function(t,e,i){"use strict";i.d(e,{hT:function(){return r},Kd:function(){return a},YH:function(){return s}});var n=i(31572),r=function(){var t=function(){function t(e){_classCallCheck(this,t),this.elementRef=e}return _createClass(t,[{key:"ngOnInit",value:function(){this.elementRef.nativeElement.focus()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq))},t.\u0275dir=n.lG2({type:t,selectors:[["","perunWebAppsAutoFocus",""]]}),t}(),o=i(68416),a=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.el=e,this.router=i}return _createClass(t,[{key:"onClick",value:function(){this.router.forceNavigate(this.perunWebAppsForceRouterLink)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(o.xw))},t.\u0275dir=n.lG2({type:t,selectors:[["","perunWebAppsForceRouterLink",""]],hostBindings:function(t,e){1&t&&n.NdJ("click",function(){return e.onClick()})},inputs:{perunWebAppsForceRouterLink:"perunWebAppsForceRouterLink"}}),t}(),s=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"onClick",value:function(t){if(1===t.button&&null!=this.perunWebAppsMiddleClickRouterLink){var e=this.perunWebAppsMiddleClickRouterLink.join("/"),i=location.search;window.open(e+i)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(t,e){1&t&&n.NdJ("mouseup",function(t){return e.onClick(t)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),t}()},14732:function(t,e,i){"use strict";i.d(e,{u:function(){return n},m:function(){return r}});var n=function(t){return t.PERUNADMIN="PERUNADMIN",t.PERUNOBSERVER="PERUNOBSERVER",t.VOADMIN="VOADMIN",t.GROUPADMIN="GROUPADMIN",t.SELF="SELF",t.FACILITYADMIN="FACILITYADMIN",t.FACILITIYOBSERVER="FACILITYOBSERVER",t.RESOURCEADMIN="RESOURCEADMIN",t.RESOURCESELFSERVICE="RESOURCESELFSERVICE",t.REGISTRAR="REGISTRAR",t.ENGINE="ENGINE",t.RPC="RPC",t.NOTIFICATIONS="NOTIFICATIONS",t.SERVICEUSER="SERVICEUSER",t.SPONSOR="SPONSOR",t.VOOBSERVER="VOOBSERVER",t.TOPGROUPCREATOR="TOPGROUPCREATOR",t.SECURITYADMIN="SECURITYADMIN",t.CABINETADMIN="CABINETADMIN",t.UNKNOWNROLENAME="UNKNOWNROLENAME",t}({}),r=function(){function t(e){_classCallCheck(this,t),this.id=e.id,this.name=e.name,this.parentGroupId=e.parentGroupId,this.voId=e.voId,this.shortName=e.shortName,this.description=e.description,this.attributes=e.attributes,this.beanName=e.beanName}return _createClass(t,[{key:"addChild",value:function(t){null==this.children?this.children=[t]:this.children.push(t)}}]),t}()},18820:function(t,e,i){"use strict";i.d(e,{E3:function(){return f},yT:function(){return p.y}});var n=i(61511),r=i(66283),o=i(36922),a=i(16073),s=i(80340),c=i(48160),u=i(67806),l=i(43691),h=i(22727),d=i(31572),f=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d.oAB({type:t}),t.\u0275inj=d.cJS({providers:[],imports:[[n.ez,r.lN,o.AV,a.UX,s.c,c.aw,u.Cq,l.Ps,h.r]]}),t}(),p=i(63618);i(90888)},90888:function(t,e,i){"use strict";i.d(e,{G:function(){return A}});var n=i(63618),r=i(68416),o=i(65249),a=i(31572),s=i(48160),c=i(16073),u=i(66283),l=i(36922),h=i(80340),d=i(61511),f=i(43691),p=i(39571),g=i(67806);function m(t,e){1&t&&a._UZ(0,"mat-spinner",12),2&t&&a.Q6J("diameter",18)}function v(t,e){if(1&t&&(a.TgZ(0,"mat-icon",13),a._uU(1," error "),a.qZA()),2&t){var i=a.oxw();a.Q6J("matTooltip",i.getErrorTooltip())("matTooltipDisabled",!i.formGroup.get("passwordCtrl").hasError("backendError"))}}function y(t,e){1&t&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function _(t,e){if(1&t&&(a.TgZ(0,"mat-error",14),a._uU(1),a.qZA()),2&t){var i=a.oxw();a.Q6J("matTooltip",i.getErrorTooltip()),a.xp6(1),a.Oqu(i.getErrorTooltip())}}function b(t,e){1&t&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function w(t,e){1&t&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&t&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}var A=function(){var t=function(){function t(e,i,r){_classCallCheck(this,t),this.translator=e,this.usersManagerService=i,this.store=r,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.multiLanguage=!1,this.language="en",this.allPasswordRequirements=this.store.get("password_requirements_help"),this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new n.S}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(function(e){var i=e.userAttributes.find(function(t){return"preferredLanguage"===t.friendlyName});t.language=i&&i.value?i.value.toString():"en","en"!==t.language&&(t.allPasswordRequirements=t.store.get("password_requirements_help_".concat(t.language))),t.changeHelp()}):this.changeHelp()}},{key:"ngOnChanges",value:function(){this.allPasswordRequirements=this.store.get("en"!==this.language?"password_requirements_help_".concat(this.language):"password_requirements_help"),this.changeHelp()}},{key:"getPasswordDisabledTooltip",value:function(){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")}},{key:"getErrorTooltip",value:function(){var t=this.formGroup.get("passwordCtrl").getError("backendError");return t&&(t=t.replace(":null","")),t}},{key:"changeHelp",value:function(){var t=this;this.passwordRequirement=this.allPasswordRequirements.find(function(e){return e.split(":")[0]===t.namespace}),this.passwordRequirement=void 0===this.passwordRequirement?this.allPasswordRequirements.find(function(t){return"default"===t.split(":")[0]}).split(/:(.+)/)[1]:this.passwordRequirement.split(/:(.+)/)[1]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(s.sK),a.Y36(o.Fv),a.Y36(r.d6))},t.\u0275cmp=a.Xpm({type:t,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",namespace:"namespace",multiLanguage:"multiLanguage",language:"language"},features:[a.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(t,e){1&t&&(a.TgZ(0,"div",0),a.TgZ(1,"mat-form-field",1),a._UZ(2,"input",2),a.ALo(3,"translate"),a.YNc(4,m,1,1,"mat-spinner",3),a.TgZ(5,"mat-icon",4),a.NdJ("click",function(){return e.showNewPassword=!e.showNewPassword}),a._uU(6),a.qZA(),a.YNc(7,v,2,2,"mat-icon",5),a.YNc(8,y,3,3,"mat-error",6),a.YNc(9,_,2,2,"mat-error",7),a.qZA(),a.TgZ(10,"mat-form-field",8),a.TgZ(11,"mat-label"),a._uU(12),a.ALo(13,"translate"),a.qZA(),a._UZ(14,"input",9),a.TgZ(15,"mat-icon",4),a.NdJ("click",function(){return e.showPasswordConfirm=!e.showPasswordConfirm}),a._uU(16),a.qZA(),a.YNc(17,b,3,3,"mat-error",6),a.YNc(18,w,3,3,"mat-error",6),a.qZA(),a.TgZ(19,"app-alert",10),a._UZ(20,"div",11),a.qZA(),a.qZA()),2&t&&(a.Q6J("formGroup",e.formGroup),a.xp6(1),a.Q6J("matTooltip",e.getPasswordDisabledTooltip())("matTooltipDisabled",e.formGroup.get("passwordCtrl").enabled),a.xp6(1),a.s9C("placeholder",a.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),a.Q6J("type",e.showNewPassword?"text":"password")("required",e.passwordRequired)("errorStateMatcher",e.passwordStateMatcher),a.xp6(2),a.Q6J("ngIf",e.formGroup.get("passwordCtrl").pending),a.xp6(2),a.hij(" ",e.showNewPassword?"visibility_off":"visibility"," "),a.xp6(1),a.Q6J("ngIf",e.formGroup.get("passwordCtrl").dirty&&null!==e.formGroup.get("passwordCtrl").errors),a.xp6(1),a.Q6J("ngIf",e.formGroup.get("passwordCtrl").hasError("required")),a.xp6(1),a.Q6J("ngIf",e.formGroup.get("passwordCtrl").hasError("backendError")),a.xp6(3),a.Oqu(a.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),a.xp6(2),a.Q6J("type",e.showPasswordConfirm?"text":"password")("required",e.passwordRequired),a.xp6(2),a.hij(" ",e.showPasswordConfirm?"visibility_off":"visibility"," "),a.xp6(1),a.Q6J("ngIf",e.formGroup.get("passwordAgainCtrl").hasError("required")),a.xp6(1),a.Q6J("ngIf",e.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),a.xp6(2),a.Q6J("innerHTML",e.passwordRequirement,a.oJD))},directives:[c.JL,c.sg,u.KE,l.gM,h.Nt,c.Fj,c.JJ,c.u,c.Q7,d.O5,f.Hw,u.R9,u.hX,p.w,g.$g,u.TO],pipes:[s.X$],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right}.error-icon[_ngcontent-%COMP%], .input-spinner[_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;display:block;margin-top:-1px}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple, [_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{position:static!important;display:table}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}"]}),t}()},63618:function(t,e,i){"use strict";i.d(e,{S:function(){return c},y:function(){return u}});var n=i(81110),r=i(40878),o=i(44689),a=i(79996),s=i(47727),c=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"isErrorState",value:function(t){return!!(t&&t.invalid&&t.dirty)}}]),t}(),u=function(t,e,i){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:500;return function(u){return(0,n.H)(c).pipe((0,o.w)(function(){return i.dontHandleErrorForNext(),t&&"No namespace"!==t?e.checkPasswordStrength(u.value,t):(0,r.of)(null)}),(0,a.U)(function(){return null}),(0,s.K)(function(t){return(0,r.of)({backendError:t.error.message.substr(t.error.message.indexOf(":")+1)})}))}}},65249:function(t,e,i){"use strict";i.d(e,{Us:function(){return P},au:function(){return M},H8:function(){return d},jw:function(){return f},Ct:function(){return p},VK:function(){return h},KG:function(){return v},IQ:function(){return y},ff:function(){return b},uq:function(){return A},aC:function(){return k},Hr:function(){return C},tk:function(){return T},xk:function(){return E},KK:function(){return S},Ob:function(){return I},Dy:function(){return D},Fv:function(){return R},FW:function(){return x},YF:function(){return O}});var n,r,o,a,s=i(29063),c=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"encodeKey",value:function(t){return encodeURIComponent(t)}},{key:"encodeValue",value:function(t){return encodeURIComponent(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}(),u=i(31572),l=new u.OlP("basePath"),h=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t),this.apiKeys=e.apiKeys,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.withCredentials=e.withCredentials,this.encoder=e.encoder}return _createClass(t,[{key:"selectHeaderContentType",value:function(t){var e=this;if(0!==t.length){var i=t.find(function(t){return e.isJsonMime(t)});return void 0===i?t[0]:i}}},{key:"selectHeaderAccept",value:function(t){var e=this;if(0!==t.length){var i=t.find(function(t){return e.isJsonMime(t)});return void 0===i?t[0]:i}}},{key:"isJsonMime",value:function(t){var e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==t&&(e.test(t)||"application/json-patch+json"===t.toLowerCase())}}]),t}(),d=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"convertAttributeToNonunique",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/convertAttributeToNonunique"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"convertAttributeToUnique",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/convertAttributeToUnique"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"createAttributeDefinition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/createAttribute"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteAttributeDefinition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("attribute",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/deleteAttribute"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteAttributeDefinitions",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("attributes[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/deleteAttributes"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllAttributeDefinitions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributesDefinition"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAttribute",value:function(t,e,i,n,r,o,a,c,u,l,h){var d=arguments.length>11&&void 0!==arguments[11]?arguments[11]:"body",f=arguments.length>12&&void 0!==arguments[12]&&arguments[12],p=new s.LE({encoder:this.encoder});null!=t&&(p=p.set("attributeName",t)),null!=e&&(p=p.set("attributeId",e)),null!=i&&(p=p.set("facility",i)),null!=n&&(p=p.set("user",n)),null!=r&&(p=p.set("vo",r)),null!=o&&(p=p.set("resource",o)),null!=a&&(p=p.set("member",a)),null!=c&&(p=p.set("group",c)),null!=u&&(p=p.set("host",u)),null!=l&&(p=p.set("userExtSource",l)),null!=h&&(p=p.set("key",h));var g=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(g=g.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(g=g.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var m="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;g=g.set("Authorization","Bearer "+m)}var v=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==v&&(g=g.set("Accept",v)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/any"),{params:p,withCredentials:this.configuration.withCredentials,headers:g,observe:d,reportProgress:f})}},{key:"getAttributeDefinitionById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeDefinitionById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAttributeDefinitionByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeName",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeDefinition"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAttributeDefinitionsByNamespace",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("namespace",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributesDefinitionByNamespace"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAttributeModulesDependenciesForAttributeGraphText",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("format",t)),null!=e&&(r=r.set("attrName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAttributeModulesDependenciesGraphText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("format",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeModulesDependenciesGraphText"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAttributeRights",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeRights"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAttributesDefinitionWithRights",value:function(t,e,i,n,r,o,a,c){var u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:"body",l=arguments.length>9&&void 0!==arguments[9]&&arguments[9],h=new s.LE({encoder:this.encoder});null!=t&&(h=h.set("member",t)),null!=e&&(h=h.set("user",e)),null!=i&&(h=h.set("vo",i)),null!=n&&(h=h.set("group",n)),null!=r&&(h=h.set("resource",r)),null!=o&&(h=h.set("facility",o)),null!=a&&(h=h.set("host",a)),null!=c&&(h=h.set("userExtSource",c));var d=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(d=d.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(d=d.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var f="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;d=d.set("Authorization","Bearer "+f)}var p=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==p&&(d=d.set("Accept",p)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/getAttributesDefinitionWithRights"),{params:h,withCredentials:this.configuration.withCredentials,headers:d,observe:u,reportProgress:l})}},{key:"getEntitylessAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("key",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-entityless"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getEntitylessAttributesByKey",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("key",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/key"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getEntitylessAttributesByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("attrName",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getEntitylessAttributes"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getEntitylessAttributesWithKeys",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("attrName",t)),e&&e.forEach(function(t){r=r.append("keys[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getEntitylessAttributesWithKeys"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getEntitylessKeys",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getEntitylessKeys"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-facility"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilityAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-facility"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilityAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/f"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/f-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilityResourceUserMemberAttributes",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==n)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("user",i)),null!=n&&(a=a.set("member",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/f-r-u-m"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"getFacilityUserAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/f-u"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-group"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-group"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/g"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/g-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupResourceAttributeById",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeId",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-group-resource"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getGroupResourceAttributeByName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeName",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-group-resource"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getGroupResourceAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/group-resource"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getHostAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("host",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-host"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getHostAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("host",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-host"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getHostAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("host",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/h"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getHostAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("host",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/h-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getLogins",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getLogins.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getLogins"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMemberAndUserAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==e)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("workWithUserAttributes",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-wu"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMemberAndUserAttributesByNames",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(function(t){o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("workWithUserAttributes",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-names-wu"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-member"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMemberAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-member"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMemberAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMemberAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMemberGroupAndUserAttributesByNames",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("group",e)),i&&i.forEach(function(t){a=a.append("attrNames[]",t)}),null!=n&&(a=a.set("workWithUserAttributes",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-g-names-wu"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"getMemberGroupAttributeById",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("attributeId",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-member-group"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberGroupAttributeByName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("attributeName",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-member-group"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberGroupAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-g"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMemberGroupAttributesByNames",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach(function(t){o=o.append("attrNames[]",t)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-g-names"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberResourceAndUserFacilityAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("workWithUserAttributes",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-r-wu"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberResourceAndUserFacilityAttributesByNames",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("resource",e)),i&&i.forEach(function(t){a=a.append("attrNames[]",t)}),null!=n&&(a=a.set("workWithUserAttributes",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-r-names-wu"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"getMemberResourceAttributeById",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeId",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-member-resource"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberResourceAttributeByName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeName",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-member-resource"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberResourceAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-r"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesDefinition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributesDefinition"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRequiredAttributesFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/f"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRequiredAttributesFacilityService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-f"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesFacilityServices",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");var r=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){r=r.append("services[]",t)}),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/ss-f"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesGroupResourceService",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("group",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-r-g"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getRequiredAttributesHostService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==e)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("host",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-h"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesMember",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("workWithUserAttributes",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/m"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesMemberGroup",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("workWithUserAttributes",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/m-g"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getRequiredAttributesMemberGroupResourceService",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==n)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");var c=new s.LE({encoder:this.encoder});null!=t&&(c=c.set("service",t)),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("group",i)),null!=n&&(c=c.set("member",n)),null!=r&&(c=c.set("workWithUserAttributes",r));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-r-g-m"),{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"getRequiredAttributesMemberGroupService",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("group",e)),null!=i&&(a=a.set("member",i)),null!=n&&(a=a.set("workWithUserAttributes",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-g-m"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"getRequiredAttributesMemberResource",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("workWithUserAttributes",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/m-r"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getRequiredAttributesMemberResourceService",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("member",i)),null!=n&&(a=a.set("workWithUserAttributes",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-r-m"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"getRequiredAttributesResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/r"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRequiredAttributesResourceService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-r"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesResourceServices",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");var r=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){r=r.append("services[]",t)}),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/ss-r"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/u"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRequiredAttributesUserFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/u-f"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRequiredAttributesVoService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("vo",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-v"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-resource"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-resource"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getResourceAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceGroupAndGroupAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==i)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("workWithGroupAttributes",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-g-wg"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getResourceGroupAndGroupAttributesByNames",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("resource",t)),null!=e&&(a=a.set("group",e)),i&&i.forEach(function(t){a=a.append("attrNames[]",t)}),null!=n&&(a=a.set("workWithGroupAttributes",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-g-names-wg"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"getResourceGroupAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-g"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceGroupMemberAttributesByNames",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==n)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("resource",t)),null!=e&&(a=a.set("group",e)),null!=i&&(a=a.set("member",i)),n&&n.forEach(function(t){a=a.append("attrNames[]",t)});var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-g-m-names"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"getUserAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-user"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-user"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/u"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUserAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/u-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserExtSourceAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("userExtSource",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-ues"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserExtSourceAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("userExtSource",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-ues"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserExtSourceAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("userExtSource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/ues"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUserExtSourceAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("userExtSource",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/ues-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserFacilityAttributeById",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("attributeId",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-user_facility"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getUserFacilityAttributeByName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("attributeName",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-user_facility"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getUserFacilityAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/user-facility"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getVoAttributeById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-vo"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getVoAttributeByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("attributeName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-vo"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getVoAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/vo"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/vo-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeAttributesForFacilityResourceGroupUserMember",value:function(t,e,i,n,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",c=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==i)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==n)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==r)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");var u=new s.LE({encoder:this.encoder});null!=t&&(u=u.set("facility",t)),null!=e&&(u=u.set("resource",e)),null!=i&&(u=u.set("group",i)),null!=n&&(u=u.set("user",n)),null!=r&&(u=u.set("member",r)),o&&o.forEach(function(t){u=u.append("attributes[]",t)});var l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var h="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+h)}var d=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==d&&(l=l.set("Accept",d)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m"),null,{params:u,withCredentials:this.configuration.withCredentials,headers:l,observe:a,reportProgress:c})}},{key:"removeAttributesForFacilityResourceUserMember",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==i)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==n)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");var c=new s.LE({encoder:this.encoder});null!=t&&(c=c.set("facility",t)),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("user",i)),null!=n&&(c=c.set("member",n)),r&&r.forEach(function(t){c=c.append("attributes[]",t)});var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/f-r-u-m"),null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"removeEntitylessAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("key",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/e"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/f"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/f"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupResourceAttribute",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attribute",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/g-r"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeGroupResourceAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach(function(t){o=o.append("attributes[]",t)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/g-r"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeGroupResourceAttributesWorkWithGroupAttributes",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),null!=e&&(a=a.set("resource",e)),i&&i.forEach(function(t){a=a.append("attributes[]",t)}),null!=n&&(a=a.set("workWithGroupAttributes",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"removeHostAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("host",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/h"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeHostAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("host",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/h"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeMemberAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/m"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeMemberAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeMemberAttributesWorkWithUserAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(function(t){o=o.append("attributes[]",t)}),null!=i&&(o=o.set("workWithUserAttributes",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeMemberGroupAttribute",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("attribute",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/m-g"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeMemberGroupAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach(function(t){o=o.append("attributes[]",t)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m-g"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeMemberGroupAttributesWorkWithUserAttributes",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("group",e)),i&&i.forEach(function(t){a=a.append("attributes[]",t)}),null!=n&&(a=a.set("workWithUserAttributes",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"removeMemberResourceAttribute",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attribute",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/m-r"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeMemberResourceAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach(function(t){o=o.append("attributes[]",t)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m-r"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeResourceAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/r"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeResourceAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/r"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeUesAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("userExtSource",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/ues"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeUserAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeUserAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeUserExtSourceAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("userExtSource",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/ues"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeUserFacilityAttribute",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("attribute",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/u-f"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeUserFacilityAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),i&&i.forEach(function(t){o=o.append("attributes[]",t)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/u-f"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeVoAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("attribute",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/v"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeVoAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/v"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"setAttributeRights",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAttributeRights was null or undefined when calling setAttributeRights.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributeRights"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setEntitylessAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/entityless"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setFacilityAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/facility"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setFacilityAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/f"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setFacilityResourceGroupUserMemberAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/f-r-g-u-m"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setFacilityResourceUserMemberAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/f-r-u-m"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setFacilityUserAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/f-u"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setGroupAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetGroupAttribute was null or undefined when calling setGroupAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/group"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setGroupAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetGroupAttributes was null or undefined when calling setGroupAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/g"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setGroupResourceAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/group-resource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setGroupResourceAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/group-resource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setHostAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetHostAttribute was null or undefined when calling setHostAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/host"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setHostAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetHostAttributes was null or undefined when calling setHostAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/h"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberAttribute was null or undefined when calling setMemberAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/member"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberAttributes was null or undefined when calling setMemberAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberGroupAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/member-group"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberGroupAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-g"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberGroupWithUserAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-g-wu"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberResourceAndUserAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-r-wu"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberResourceAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/member-resource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberResourceAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-r"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setMemberWithUserAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-wu"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setResourceAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetResourceAttribute was null or undefined when calling setResourceAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/resource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setResourceAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetResourceAttributes was null or undefined when calling setResourceAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/r"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setResourceGroupAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/r-g"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setResourceGroupWithGroupAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/r-g-wg"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setUserAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetUserAttribute was null or undefined when calling setUserAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/user"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setUserAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetUserAttributes was null or undefined when calling setUserAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/u"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setUserExtSourceAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/userExtSource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setUserExtSourceAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/ues"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setUserFacilityAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/facility-user"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setUserFacilityAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/facility-user"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setVoAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetVoAttribute was null or undefined when calling setVoAttribute.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/vo"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setVoAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetVoAttributes was null or undefined when calling setVoAttributes.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/vo"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateAttributeDefinition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/updateAttributeDefinition"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),f=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"auditMessagesManagerLog",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter msg was null or undefined when calling auditMessagesManagerLog.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("msg",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/auditMessagesManager/log"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"createAuditerConsumer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling createAuditerConsumer.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("consumerName",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/auditMessagesManager/createAuditerConsumer"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllAuditerConsumers",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/auditMessagesManager/getAllAuditerConsumers"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAuditerMessagesCount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/auditMessagesManager/getAuditerMessagesCount"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getLastMessageId",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/auditMessagesManager/getLastMessageId"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getMessages",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("count",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/auditMessagesManager/getMessages"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMessagesByCount",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter count was null or undefined when calling getMessagesByCount.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("count",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/auditMessagesManager/getMessagesByCount"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMessagesPage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputGetMessagesPage was null or undefined when calling getMessagesPage.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/auditMessagesManager/getMessagesPage"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"pollConsumerMessages",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling pollConsumerMessages.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("consumerName",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/auditMessagesManager/pollConsumerMessages"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"setLastProcessedId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling setLastProcessedId.");if(null==e)throw new Error("Required parameter lastProcessedId was null or undefined when calling setLastProcessedId.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("consumerName",t)),null!=e&&(r=r.set("lastProcessedId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/auditMessagesManager/setLastProcessedId"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),p=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"getAllPolicies",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getAllPolicies"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAllRolesManagementRules",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getAllRolesManagementRules"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAuthzAdminGroups",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("role",t)),null!=e&&(o=o.set("complementaryObjectId",e)),null!=i&&(o=o.set("complementaryObjectName",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getAdminGroups"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getAuthzRichAdmins",value:function(t,e,i,n,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",c=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==n)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");var u=new s.LE({encoder:this.encoder});null!=t&&(u=u.set("role",t)),null!=e&&(u=u.set("complementaryObjectId",e)),null!=i&&(u=u.set("complementaryObjectName",i)),n&&n.forEach(function(t){u=u.append("specificAttributes",t)}),null!=r&&(u=u.set("allUserAttributes",r)),null!=o&&(u=u.set("onlyDirectAdmins",o));var l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var h="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+h)}var d=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==d&&(l=l.set("Accept",d)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getRichAdmins"),{params:u,withCredentials:this.configuration.withCredentials,headers:l,observe:a,reportProgress:c})}},{key:"getFacilitiesWhereUserIsInRoles",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");var r=new s.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach(function(t){r=r.append("roles[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getFacilitiesWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupRoleNames",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getGroupRoleNames"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupRoles",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("groupId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/authzResolver/getGroupRoles"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupsWhereUserIsInRoles",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");var r=new s.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach(function(t){r=r.append("roles[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getGroupsWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getLoggedUser",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getLoggedUser"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getMembersWhereUserIsInRoles",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");var r=new s.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach(function(t){r=r.append("roles[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getMembersWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getPerunPrincipal",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getPerunPrincipal"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getPrincipalRoleNames",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getPrincipalRoleNames"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getResourcesWhereUserIsInRoles",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");var r=new s.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach(function(t){r=r.append("roles[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getResourcesWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getSecurityTeamsWhereUserIsInRoles",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");var r=new s.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach(function(t){r=r.append("roles[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getSecurityTeamsWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserRoleNames",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getUserRoleNames"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUserRoles",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("userId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getUserRoles"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVosWhereUserIsInRoles",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");var r=new s.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach(function(t){r=r.append("roles[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getVosWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"isFacilityAdmin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/authzResolver/isFacilityAdmin"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"isGroupAdmin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/authzResolver/isGroupAdmin"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"isPerunAdmin",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/isPerunAdmin"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"isVoAdmin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/authzResolver/isVoAdmin"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"keepAlive",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/keepAlive"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"loadAuthorizationComponents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/loadAuthorizationComponents"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"setRoleWithGroupComplementaryObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter setRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/authzResolver/setRole/g-co"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setRoleWithUserComplementaryObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter setRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/authzResolver/setRole/u-co"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"unsetRoleWithGroupComplementaryObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter unsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/authzResolver/unsetRole/g-co"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"unsetRoleWithUserComplementaryObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter unsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/authzResolver/unsetRole/u-co"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),g=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"createAutorship",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateAuthorship was null or undefined when calling createAutorship.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/createAuthorship"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createCategoryCat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateCategory was null or undefined when calling createCategoryCat.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/createCategory/cat"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createCategoryNR",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateCategory1 was null or undefined when calling createCategoryNR.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/createCategory/n-r"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createPublication",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreatePublication was null or undefined when calling createPublication.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/createPublication"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createPublicationSystem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreatePublicationSystem was null or undefined when calling createPublicationSystem.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/createPublicationSystem"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createThanks",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateThanks was null or undefined when calling createThanks.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/createThanks"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteAuthorship",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter publicationId was null or undefined when calling deleteAuthorship.");if(null==e)throw new Error("Required parameter userId was null or undefined when calling deleteAuthorship.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("publicationId",t)),null!=e&&(r=r.set("userId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/cabinetManager/deleteAuthorship"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteCategory",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteCategory.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/cabinetManager/deleteCategory"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deletePublication",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling deletePublication.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/cabinetManager/deletePublication"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deletePublicationSystem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling deletePublicationSystem.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/cabinetManager/deletePublicationSystem"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteThanks",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteThanks.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/cabinetManager/deleteThanks"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"findAllAuthors",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/findAllAuthors"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"findAuthorsByPublicationId",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling findAuthorsByPublicationId.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/findAuthorsByPublicationId"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"findExternalPublications",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter user was null or undefined when calling findExternalPublications.");if(null==e)throw new Error("Required parameter yearSince was null or undefined when calling findExternalPublications.");if(null==i)throw new Error("Required parameter yearTill was null or undefined when calling findExternalPublications.");if(null==n)throw new Error("Required parameter pubSysNamespace was null or undefined when calling findExternalPublications.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("user",t)),null!=e&&(a=a.set("yearSince",e)),null!=i&&(a=a.set("yearTill",i)),null!=n&&(a=a.set("pubSysNamespace",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/findExternalPublications"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"findNewAuthors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findNewAuthors.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/findNewAuthors"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"findPublicationById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling findPublicationById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/findPublicationById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"findPublicationsByFilter",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter userId was null or undefined when calling findPublicationsByFilter.");var o=new s.LE({encoder:this.encoder});null!=e&&(o=o.set("yearSince",e)),null!=i&&(o=o.set("yearTill",i)),null!=t&&(o=o.set("userId",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/findPublicationsByFilter"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"findPublicationsByGUIFilter",value:function(t,e,i,n,r,o,a,c,u){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:"body",h=arguments.length>10&&void 0!==arguments[10]&&arguments[10],d=new s.LE({encoder:this.encoder});null!=t&&(d=d.set("title",t)),null!=e&&(d=d.set("isbn",e)),null!=i&&(d=d.set("doi",i)),null!=n&&(d=d.set("id",n)),null!=r&&(d=d.set("year",r)),null!=o&&(d=d.set("category",o)),null!=a&&(d=d.set("yearSince",a)),null!=c&&(d=d.set("yearTill",c)),null!=u&&(d=d.set("userId",u));var f=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(f=f.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(f=f.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var p="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;f=f.set("Authorization","Bearer "+p)}var g=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==g&&(f=f.set("Accept",g)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/findPublicationsByGUIFilter"),{params:d,withCredentials:this.configuration.withCredentials,headers:f,observe:l,reportProgress:h})}},{key:"findSimilarPublications",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("title",t)),null!=e&&(o=o.set("doi",e)),null!=i&&(o=o.set("isbn",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/findSimilarPublications"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getCategories",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/getCategories"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getPublicationSystems",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/getPublicationSystems"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getRank",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getRank.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/getRank"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichThanksByPublicationId",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichThanksByPublicationId.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/cabinetManager/getRichThanksByPublicationId"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"lockPublications",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputLockPublications was null or undefined when calling lockPublications.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/lockPublications"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateCategory",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateCategory was null or undefined when calling updateCategory.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/updateCategory"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updatePublication",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdatePublication was null or undefined when calling updatePublication.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/updatePublication"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updatePublicationSystem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdatePublicationSystem was null or undefined when calling updatePublicationSystem.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/cabinetManager/updatePublicationSystem"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),m=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"getCurrentDatabaseVersion",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/databaseManager/getCurrentDatabaseVersion"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getDatabaseDriverInformation",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/databaseManager/getDatabaseDriverInformation"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getDatabaseInformation",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/databaseManager/getDatabaseInformation"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getTimeOfQueryPerformance",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/databaseManager/getTimeOfQueryPerformance"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),v=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"addExtSourceWithGroupSource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling addExtSourceWithGroupSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithGroupSource.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("source",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/extSourcesManager/addExtSource/g-s"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addExtSourceWithVoSource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling addExtSourceWithVoSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithVoSource.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("source",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/extSourcesManager/addExtSource/v-s"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createExtSourceFromExtSourceObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter extSourceObject was null or undefined when calling createExtSourceFromExtSourceObject.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/extSourcesManager/createExtSource/es"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createExtSourceWithNameType",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter name was null or undefined when calling createExtSourceWithNameType.");if(null==e)throw new Error("Required parameter type was null or undefined when calling createExtSourceWithNameType.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("name",t)),null!=e&&(r=r.set("type",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/extSourcesManager/createExtSource/n-t"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteExtSource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteExtSource.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/extSourcesManager/deleteExtSource"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getExtSourceById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getExtSourceById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/extSourcesManager/getExtSourceById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getExtSourceByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter name was null or undefined when calling getExtSourceByName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("name",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/extSourcesManager/getExtSourceByName"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getExtSources",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/extSourcesManager/getExtSources"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getGroupExtSources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupExtSources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/extSourcesManager/getGroupExtSources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoExtSources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoExtSources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/extSourcesManager/getVoExtSources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"loadExtSourcesDefinitions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/extSourcesManager/loadExtSourcesDefinitions"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"removeExtSourceWithGroupSource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeExtSourceWithGroupSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithGroupSource.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("source",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/extSourcesManager/removeExtSource/g-s"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeExtSourceWithVoSource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeExtSourceWithVoSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithVoSource.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("source",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/extSourcesManager/removeExtSource/v-s"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),y=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"addFacilityAdminGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addAdmin/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addFacilityAdminGroupByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroupByFacilityName.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroupByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addAdmin/group/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addFacilityAdminUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addAdmin/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addFacilityAdminUserByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUserByFacilityName.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUserByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addAdmin/user/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addFacilityOwner",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwner.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwner.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addOwner"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addFacilityOwnerByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addOwner/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addFacilityOwnerByFacilityNameOwnerName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addOwner/f-o-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addFacilityOwnerByOwnerName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByOwnerName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addOwner/o-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addHost",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHost.");if(null==e)throw new Error("Required parameter hostname was null or undefined when calling addHost.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("hostname",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addHost"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addHostByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHostByFacilityName.");if(null==e)throw new Error("Required parameter hostname was null or undefined when calling addHostByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("hostname",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addHost/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addHosts",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHosts.");if(null==e)throw new Error("Required parameter hostnames was null or undefined when calling addHosts.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(function(t){r=r.append("hostnames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addHosts"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addHostsByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHostsByFacilityName.");if(null==e)throw new Error("Required parameter hostnames was null or undefined when calling addHostsByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(function(t){r=r.append("hostnames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/addHosts/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"assignSecurityTeam",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeam.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeam.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("securityTeam",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/assignSecurityTeam"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"assignSecurityTeamByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeamByFacilityName.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeamByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("securityTeam",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/assignSecurityTeam/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributes.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacility",t)),null!=e&&(r=r.set("destFacility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyAttributes"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyAttributesByDestinationName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributesByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesByDestinationName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacility",t)),null!=e&&(r=r.set("destFacilityName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyAttributes/dest-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyAttributesBySourceDestinationNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacilityName",t)),null!=e&&(r=r.set("destFacilityName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyAttributes/src-dest-names"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyAttributesBySourceName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributesBySourceName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacilityName",t)),null!=e&&(r=r.set("destFacility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyAttributes/src-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyManagers",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagers.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyManagers.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacility",t)),null!=e&&(r=r.set("destFacility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyManagers"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyManagersByDestinationName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagersByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersByDestinationName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacility",t)),null!=e&&(r=r.set("destFacilityName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyManagers/dest-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyManagersBySourceDestinationNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacilityName",t)),null!=e&&(r=r.set("destFacilityName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyManagers/src-dest-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyManagersBySourceName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyManagersBySourceName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacilityName",t)),null!=e&&(r=r.set("destFacility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyManagers/src-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyOwners",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwners.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyOwners.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacility",t)),null!=e&&(r=r.set("destFacility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyOwners"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyOwnersByDestinationName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwnersByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersByDestinationName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacility",t)),null!=e&&(r=r.set("destFacilityName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyOwners/dest-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyOwnersBySourceDestinationNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacilityName",t)),null!=e&&(r=r.set("destFacilityName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyOwners/src-dest-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyOwnersBySourceName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyOwnersBySourceName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("srcFacilityName",t)),null!=e&&(r=r.set("destFacility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/copyOwners/src-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter name was null or undefined when calling createFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("name",t)),null!=e&&(r=r.set("description",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/createFacility"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling deleteFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("force",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/deleteFacility"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteFacilityByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling deleteFacilityByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/deleteFacility/f-name"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllFacilities",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilities"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAllowedGroups",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroups.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("service",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAllowedGroups"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getAllowedGroupsByFacilityName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroupsByFacilityName.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("service",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAllowedGroups/f-name"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getAllowedRichGroupsWithAttributes",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributes.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributes.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),e&&e.forEach(function(t){a=a.append("attrNames[]",t)}),null!=i&&(a=a.set("vo",i)),null!=n&&(a=a.set("service",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAllowedRichGroupsWithAttributes"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"getAllowedRichGroupsWithAttributesByFacilityName",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),e&&e.forEach(function(t){a=a.append("attrNames[]",t)}),null!=i&&(a=a.set("vo",i)),null!=n&&(a=a.set("service",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAllowedRichGroupsWithAttributes/f-name"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"getAllowedUsersOfFacility",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacility.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("service",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAllowedUsers/v-f-s"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getAllowedUsersOfFacilityByFacilityName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacilityByFacilityName.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("service",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAllowedUsers/v-f-s/f-name"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getAllowedVos",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedVos.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/getAllowedVos"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllowedVosByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedVosByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/getAllowedVos/f-name"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedFacilitiesByGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedFacilitiesByGroup.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedFacilities/group"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedFacilitiesByMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedFacilitiesByMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedFacilities/member"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedFacilitiesByService",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedFacilitiesByService.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedFacilities/service"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedFacilitiesByUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedFacilitiesByUser.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedFacilities/user"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedResourcesByAssignedServiceForFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("service",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedResourcesByAssignedService"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAssignedResourcesForFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedResources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedResourcesForFacilityByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacilityByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedResources/f-name"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedRichResourcesForFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedRichResources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedRichResourcesForFacilityByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedRichResources/f-name"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedSecurityTeams",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeams.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedSecurityTeams"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedSecurityTeamsByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeamsByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedSecurityTeams/f-name"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedUsers",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsers.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("service",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedUsers"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAssignedUsersByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsersByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("service",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAssignedUsers/f-name"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getBansForFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facilityId was null or undefined when calling getBansForFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facilityId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getBansForFacility"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getBansForUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getBansForUser.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getBansForUser"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getEnrichedFacilities",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getEnrichedFacilities"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getEnrichedHosts",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedHosts.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getEnrichedHosts.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getEnrichedHosts"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilitiesByAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttribute.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("attributeName",t)),null!=e&&(r=r.set("attributeValue",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilitiesByAttribute"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilitiesByDestination",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter destination was null or undefined when calling getFacilitiesByDestination.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("destination",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilitiesByDestination"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilitiesByHostName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter hostname was null or undefined when calling getFacilitiesByHostName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilitiesByHostName"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilitiesByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getFacilitiesByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilitiesByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilitiesCount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilitiesCount"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getFacilitiesWhereUserIsAdmin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilitiesWhereUserIsAdmin.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilitiesWhereUserIsAdmin"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityAdminGroups",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroups.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAdminGroups"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityAdminUsers",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsers.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsers.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("onlyDirectAdmins",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAdmins"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilityAdminUsersByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsersByFacilityName.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsersByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("onlyDirectAdmins",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAdmins/f-name"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilityBan",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityBan.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityBan.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getBan"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacilityBanById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter banId was null or undefined when calling getFacilityBanById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getBanById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getFacilityById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilityById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter name was null or undefined when calling getFacilityByName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("name",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilityByName"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityForHost",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter host was null or undefined when calling getFacilityForHost.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("host",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getFacilityForHost"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityOwners",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwners.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getOwners"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityOwnersByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwnersByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getOwners/f-name"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getHostById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getHostById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getHostById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getHosts",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHosts.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getHosts"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getHostsByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getHosts/f-name"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getHostsByHostname",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter hostname was null or undefined when calling getHostsByHostname.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getHostsByHostname"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getHostsCount",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsCount.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getHostsCount"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getHostsCountByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsCountByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getHostsCount/f-name"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getOwnerFacilities",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter owner was null or undefined when calling getOwnerFacilities.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("owner",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getOwnerFacilities"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichFacilities",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getRichFacilities"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"removeBanByUserIdFacilityId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling removeBanByUserIdFacilityId.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeBanByUserIdFacilityId.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeBan/byUserIdFacilityId"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityAdminGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeAdmin/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityAdminGroupByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroupByFacilityName.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroupByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeAdmin/group/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityAdminUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeAdmin/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityAdminUserByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUserByFacilityName.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUserByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeAdmin/user/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityBanById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeFacilityBanById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeBan/byId"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeFacilityOwner",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwner.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwner.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeOwner"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityOwnerByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeOwner/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityOwnerByFacilityNameOwnerName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeOwner/f-o-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeFacilityOwnerByOwnerName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByOwnerName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("owner",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeOwner/o-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeHost",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHost.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("host",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeHost"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeHostByHostname",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter hostname was null or undefined when calling removeHostByHostname.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeHostByHostname"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeHosts",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeHosts.");if(null==e)throw new Error("Required parameter hosts was null or undefined when calling removeHosts.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(function(t){r=r.append("hosts[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeHosts"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeHostsByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeHostsByFacilityName.");if(null==e)throw new Error("Required parameter hosts was null or undefined when calling removeHostsByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(function(t){r=r.append("hosts[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeHosts/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeSecurityTeam",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeam.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeam.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("securityTeam",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeSecurityTeam"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeSecurityTeamByFacilityName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeamByFacilityName.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeamByFacilityName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("securityTeam",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/facilitiesManager/removeSecurityTeam/f-name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"setFacilityBan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetBanForUserOnFacility was null or undefined when calling setFacilityBan.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/facilitiesManager/setBan"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateFacility was null or undefined when calling updateFacility.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/facilitiesManager/updateFacility"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateFacilityBan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateBanForFacility was null or undefined when calling updateFacilityBan.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/facilitiesManager/updateBan"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),_=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"getFacilityAdminGroupsByFacilityName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroupsByFacilityName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/facilitiesManager/getAdminGroups/f-name"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),b=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"addMember",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling addMember.");var r=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){r=r.append("groups[]",t)}),null!=e&&(r=r.set("member",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/addMember"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addMembers",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling addMembers.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(function(t){r=r.append("members[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/addMembers"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"canExtendMembershipInGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/canExtendMembershipInGroup"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createGroupUnion",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resultGroup",t)),null!=e&&(r=r.set("operandGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/createGroupUnion"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createGroupWithParentGroupNameDescription",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("parentGroup",t)),null!=e&&(o=o.set("name",e)),null!=i&&(o=o.set("description",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/createGroup/pg-n-d"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"createGroupWithVoNameDescription",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("name",e)),null!=i&&(o=o.set("description",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/createGroup/v-n-d"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"deleteGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("force",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/deleteGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteGroups",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputDeleteGroups was null or undefined when calling deleteGroups.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/groupsManager/deleteGroups"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"extendMembershipInGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/extendMembershipInGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"forceAllSubGroupsSynchronization",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"forceGroupStructureSynchronization",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/forceGroupStructureSynchronization"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"forceGroupSynchronization",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/forceGroupSynchronization"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllGroups",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllGroups"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllGroupsFromAllVos",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllGroups/all"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAllMemberGroups",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllMemberGroups"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllRichGroups",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("attrNames[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllRichGroups"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllRichGroupsWithAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllRichGroupsWithAttributesByNames"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAllRichSubGroupsWithGroupAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllRichSubGroupsWithAttributesByNames"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getGroupById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==e)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("name",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupByName"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupMemberById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==e)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("member",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMemberById"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMembers"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupMembersCount",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMembersCount"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupMembersCountsByGroupStatus",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMembersCountsByGroupStatus"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupMembersCountsByVoStatus",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMembersCountsByVoStatus"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupRichMembersByIds",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==e)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(function(t){o=o.append("members[]",t)}),i&&i.forEach(function(t){o=o.append("attrNames[]",t)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupRichMembersByIds"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getGroupUnions",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==e)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("reverseDirection",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupUnions"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupsByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupsByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupsPage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputGetPaginatedGroups was null or undefined when calling getGroupsPage.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/groupsManager/getGroupsPage"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"getIndirectMembershipPaths",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getIndirectMembershipPaths"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMemberGroups",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getMemberGroups"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMemberRichGroupsWithAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getMemberRichGroupsWithAttributesByNames"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRichGroupByIdWithAttributesByNames",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("groupId",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getRichGroupByIdWithAttributesByNames"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getSubgroupsPage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/groupsManager/getSubgroupsPage"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"isGroupMember",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==e)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/isGroupMember"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"moveGroupWithDestinationGroupMovingGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");var r=new s.LE({encoder:this.encoder});null!=e&&(r=r.set("destinationGroup",e)),null!=t&&(r=r.set("movingGroup",t));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/moveGroup/dg-mg"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupUnion",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resultGroup",t)),null!=e&&(r=r.set("operandGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/removeGroupUnion"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeMember",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMember.");var r=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){r=r.append("groups[]",t)}),null!=e&&(r=r.set("member",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/removeMember"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeMembers",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling removeMembers.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(function(t){r=r.append("members[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/removeMembers"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"setGroupsMemberStatus",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==e)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==i)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("status",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/setGroupsMemberStatus"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"updateGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateGroup was null or undefined when calling updateGroup.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/groupsManager/updateGroup"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),w=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"getGroupMemberData",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/integrationManager/getGroupMemberData"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),A=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"canExtendMembership",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/canExtendMembership"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"createMemberForCandidate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createMember/c"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createMemberForUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateMemberForUser was null or undefined when calling createMemberForUser.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createMember/u"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createMemberFromExtSource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createMember/extSource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createSpecificMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSpecificMember was null or undefined when calling createSpecificMember.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createSpecificMember"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createSponsoredMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createSponsoredMember/withFullName"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createSponsoredMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateSponsoredMember1 was null or undefined when calling createSponsoredMembers.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createSponsoredMembers"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createSponsoredMembersFromCSV",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createSponsoredMembersFromCSV"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling deleteMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/deleteMember"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("members[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/deleteMembers"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"extendMembership",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembership.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/extendMembership"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"findCompleteRichMembersByAttributes",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");var o=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){o=o.append("attrsNames[]",t)}),null!=e&&(o=o.set("searchString",e)),i&&i.forEach(function(t){o=o.append("allowedStatuses[]",t)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findCompleteRichMembers/attrs"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"findCompleteRichMembersForGroup",value:function(t,e,i,n,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",c=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(null==t)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==n)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");var u=new s.LE({encoder:this.encoder});null!=t&&(u=u.set("group",t)),e&&e.forEach(function(t){u=u.append("attrsNames[]",t)}),r&&r.forEach(function(t){u=u.append("allowedStatuses[]",t)}),o&&o.forEach(function(t){u=u.append("allowedGroupStatuses[]",t)}),null!=i&&(u=u.set("searchString",i)),null!=n&&(u=u.set("lookingInParentGroup",n));var l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var h="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+h)}var d=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==d&&(l=l.set("Accept",d)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findCompleteRichMembers/g"),{params:u,withCredentials:this.configuration.withCredentials,headers:l,observe:a,reportProgress:c})}},{key:"findCompleteRichMembersForVo",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),e&&e.forEach(function(t){a=a.append("attrsNames[]",t)}),n&&n.forEach(function(t){a=a.append("allowedStatuses[]",t)}),null!=i&&(a=a.set("searchString",i));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findCompleteRichMembers/v"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"findMembersInVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("searchString",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findMembersInVo"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"findSponsoredCompleteRichMembersForVo",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==n)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),e&&e.forEach(function(t){a=a.append("attrsNames[]",t)}),null!=i&&(a=a.set("searchString",i)),null!=n&&(a=a.set("onlySponsored",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findCompleteRichMembers/v-sponsored"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"getAllMembers",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getAllMembers"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAllNamespacesRules",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getAllNamespacesRules"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAllSponsoredMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getAllSponsoredMembers"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllSponsoredMembersAndTheirSponsors",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getAllSponsoredMembersAndTheirSponsors"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getCompleteRichMembersForGroup",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");var c=new s.LE({encoder:this.encoder});null!=t&&(c=c.set("group",t)),i&&i.forEach(function(t){c=c.append("allowedStatuses[]",t)}),n&&n.forEach(function(t){c=c.append("allowedGroupStatuses[]",t)}),null!=e&&(c=c.set("lookingInParentGroup",e)),r&&r.forEach(function(t){c=c.append("attrsNames[]",t)});var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getCompleteRichMembers/g"),{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"getCompleteRichMembersForGroupResource",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==i)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==n)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),null!=e&&(a=a.set("resource",e)),i&&i.forEach(function(t){a=a.append("attrsNames[]",t)}),n&&n.forEach(function(t){a=a.append("allowedStatuses[]",t)});var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getCompleteRichMembers/g-r"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"getCompleteRichMembersForVo",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(function(t){o=o.append("allowedStatuses[]",t)}),i&&i.forEach(function(t){o=o.append("attrsNames[]",t)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getCompleteRichMembers/v"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberByExtSourceNameAndExtLogin",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==i)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("extLogin",e)),null!=i&&(o=o.set("extSourceName",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMemberByExtSourceNameAndExtLogin"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMemberById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getMemberById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMemberById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMemberByUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMemberByUser"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMembers",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembers.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("status",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembers"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getMembersByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembersByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMembersByUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembersByUser"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMembersCount",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembersCount"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getMembersPage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputGetPaginatedMembers was null or undefined when calling getMembersPage.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/getMembersPage"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"getMembersWithStatusCount",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==e)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("status",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembersCount/status"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getRichMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getRichMember"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichMemberWithAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getRichMemberWithAttributes"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichMembersByIds",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");var r=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){r=r.append("ids[]",t)}),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getRichMembersByIds"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getSponsoredMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getSponsoredMembers/v"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getSponsoredMembersAndTheirSponsors",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getSponsoredMembersAndTheirSponsors"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getSponsorsByMember",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getSponsors/member"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getSponsorsByVo",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("extSourceName",e)),null!=i&&(a=a.set("extLogin",i)),n&&n.forEach(function(t){a=a.append("attrNames[]",t)});var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getSponsors/vo"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"moveMembership",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==e)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==i)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("sourceUser",e)),null!=i&&(o=o.set("targetUser",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/moveMembership"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"removeSponsor",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("sponsor",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/removeSponsor"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"sendAccountActivationLinkEmail",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==n)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("emailAttributeURN",i)),null!=n&&(a=a.set("language",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/sendAccountActivationLinkEmail"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"sendPasswordResetLinkEmail",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==n)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");var c=new s.LE({encoder:this.encoder});null!=t&&(c=c.set("member",t)),null!=e&&(c=c.set("namespace",e)),null!=i&&(c=c.set("emailAttributeURN",i)),null!=n&&(c=c.set("language",n)),null!=r&&(c=c.set("baseUrl",r));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/sendPasswordResetLinkEmail"),null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"setSponsoredMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetSponsoredMember was null or undefined when calling setSponsoredMember.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/setSponsoredMember"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setSponsorshipForMember",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("sponsoredMember",t)),null!=e&&(o=o.set("sponsor",e)),null!=i&&(o=o.set("validityTo",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/setSponsorshipForMember"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"setStatus",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==e)throw new Error("Required parameter status was null or undefined when calling setStatus.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("status",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/setStatus"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"sponsorMember",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("sponsor",e)),null!=i&&(o=o.set("validityTo",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/sponsorMember"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"updateSponsorshipValidity",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("sponsor",e)),null!=i&&(o=o.set("validityTo",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/updateSponsorshipValidity"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"validateMemberAsync",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/validateMemberAsync"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),k=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"createOwner",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateOwner was null or undefined when calling createOwner.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/ownersManager/createOwner"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteOwner",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("owner",t)),null!=e&&(r=r.set("force",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/ownersManager/deleteOwner"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAllOwners",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/ownersManager/getOwners"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getOwnerById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/ownersManager/getOwnerById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getOwnerByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("owner",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/ownersManager/getOwnerByName"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),C=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"sentMessageToRTWithMemberQueue",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("memberId",t)),null!=e&&(a=a.set("queue",e)),null!=i&&(a=a.set("subject",i)),null!=n&&(a=a.set("text",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"sentMessageToRTWithQueue",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("queue",t)),null!=e&&(o=o.set("subject",e)),null!=i&&(o=o.set("text",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/rtMessagesManager/sentMessageToRT/q"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"sentMessageToRTWithVo",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("voId",t)),null!=e&&(o=o.set("subject",e)),null!=i&&(o=o.set("text",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/rtMessagesManager/sentMessageToRT/v"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"sentMessageToRTWithVoQueue",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("voId",t)),null!=e&&(a=a.set("queue",e)),null!=i&&(a=a.set("subject",i)),null!=n&&(a=a.set("text",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),T=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"addApplicationMailForGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/addApplicationMail/g"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"addApplicationMailForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/addApplicationMail/v"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"addGroupsToAutoRegistration",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("groups[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/addGroupsToAutoRegistration"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"approveApplication",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling approveApplication.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/approveApplication"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"checkForSimilarUsersWithAuthInfo",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo"),null,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"consolidateIdentityUsingToken",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("token",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/consolidateIdentityUsingToken"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"copyFormFromGroupToGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("fromGroup",t)),null!=e&&(r=r.set("toGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyForm/groupToGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyFormFromGroupToVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("fromGroup",t)),null!=e&&(r=r.set("toVo",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyForm/groupToVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyFormFromVoToGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("fromVo",t)),null!=e&&(r=r.set("toGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyForm/voToGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyFormFromVoToVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("fromVo",t)),null!=e&&(r=r.set("toVo",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyForm/voToVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyMailsFromGroupToGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("fromGroup",t)),null!=e&&(r=r.set("toGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyMails/groupToGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyMailsFromGroupToVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("fromGroup",t)),null!=e&&(r=r.set("toVo",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyMails/groupToVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyMailsFromVoToGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("fromVo",t)),null!=e&&(r=r.set("toGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyMails/voToGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyMailsFromVoToVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("fromVo",t)),null!=e&&(r=r.set("toVo",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyMails/voToVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createApplicationFormInGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/createApplicationForm/group"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"createApplicationFormInVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/createApplicationForm/vo"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteApplication",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/deleteApplication"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteApplicationMailForGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("id",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/deleteApplicationMail/g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteApplicationMailForVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("id",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/deleteApplicationMail/v"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteGroupsFromAutoRegistration",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("groups[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getApplicationById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getApplicationDataById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationDataById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getApplicationMailsForGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationMails/g"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getApplicationMailsForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationMails/v"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getApplicationsForGroup",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),e&&e.forEach(function(t){a=a.append("state[]",t)}),null!=i&&(a=a.set("dateFrom",i)),null!=n&&(a=a.set("dateTo",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationsForGroup"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"getApplicationsForMember",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationsForMember"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getApplicationsForVo",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),e&&e.forEach(function(t){a=a.append("state[]",t)}),null!=i&&(a=a.set("dateFrom",i)),null!=n&&(a=a.set("dateTo",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationsForVo"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"getConsolidatorToken",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getConsolidatorToken"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getFormItemsForGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getFormItems/group"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFormItemsForGroupWithType",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("type",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getFormItems/group-type"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFormItemsForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getFormItems/vo"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFormItemsForVoWithType",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("type",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getFormItems/vo-type"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupApplicationForm",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationForm/group"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupsToAutoRegistration",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getGroupsToAutoRegistration"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoApplicationForm",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationForm/vo"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"rejectApplication",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("id",t)),null!=e&&(r=r.set("reason",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/rejectApplication"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"sendInvitation",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");var a=new s.LE({encoder:this.encoder});null!=i&&(a=a.set("voId",i)),null!=n&&(a=a.set("name",n)),null!=t&&(a=a.set("email",t)),null!=e&&(a=a.set("language",e));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/sendInvitation"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"sendInvitationForGroup",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");var c=new s.LE({encoder:this.encoder});null!=i&&(c=c.set("voId",i)),null!=n&&(c=c.set("groupId",n)),null!=r&&(c=c.set("name",r)),null!=t&&(c=c.set("email",t)),null!=e&&(c=c.set("language",e));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/sendInvitation/g"),null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"sendInvitationGroupToExistingUser",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("userId",t)),null!=e&&(o=o.set("voId",e)),null!=i&&(o=o.set("groupId",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/sendInvitation/u-g"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"sendInvitationToExistingUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("userId",t)),null!=e&&(r=r.set("voId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/sendInvitation/u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"sendMessage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSendMessage was null or undefined when calling sendMessage.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/sendMessage"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"setSendingEnabled",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetSendingEnabled was null or undefined when calling setSendingEnabled.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/setSendingEnabled"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"submitApplication",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSubmitApplication was null or undefined when calling submitApplication.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/submitApplication"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateApplicationMail",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateApplicationMail"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateForm",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateForm was null or undefined when calling updateForm.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateForm"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateFormItemData",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputFormItemData was null or undefined when calling updateFormItemData.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateFormItemData"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateFormItemsData",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputFormItemData1 was null or undefined when calling updateFormItemsData.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateFormItemsData"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateFormItemsForGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateFormItems/group"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateFormItemsForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateFormItems/vo"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"verifyApplication",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/verifyApplication"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),E=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"activateGroupResourceAssignment",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("async",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/activateGroupResourceAssignment"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"addAdminToGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/addAdmin/r-g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addAdminToUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/addAdmin/r-u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addResourceSelfServiceGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/addResourceSelfServiceGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addResourceSelfServiceUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/addResourceSelfServiceUser"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"allowGroupsToResources",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");var o=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){o=o.append("groups[]",t)}),e&&e.forEach(function(t){o=o.append("resources[]",t)}),null!=i&&(o=o.set("async",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/allowGroupsToResources"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"assignGroupToResource",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");var c=new s.LE({encoder:this.encoder});null!=t&&(c=c.set("group",t)),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("async",i)),null!=n&&(c=c.set("assignInactive",n)),null!=r&&(c=c.set("autoAssignSubgroups",r));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignGroupToResource"),null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"assignGroupToResources",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");var c=new s.LE({encoder:this.encoder});null!=t&&(c=c.set("group",t)),e&&e.forEach(function(t){c=c.append("resources[]",t)}),null!=i&&(c=c.set("async",i)),null!=n&&(c=c.set("assignInactive",n)),null!=r&&(c=c.set("autoAssignSubgroups",r));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignGroupToResources"),null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"assignGroupsToResource",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");var c=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){c=c.append("groups[]",t)}),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("async",i)),null!=n&&(c=c.set("assignInactive",n)),null!=r&&(c=c.set("autoAssignSubgroups",r));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignGroupsToResource"),null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"assignResourceTagToResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/assignResourceTagToResource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"assignService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling assignService.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("service",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignService"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"assignServices",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling assignServices.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),e&&e.forEach(function(t){r=r.append("services[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignServices"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"assignServicesPackage",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("servicesPackage",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignServicesPackage"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"copyResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCopyResource was null or undefined when calling copyResource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/copyResource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createResource",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==i)throw new Error("Required parameter name was null or undefined when calling createResource.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("facility",e)),null!=i&&(a=a.set("name",i)),null!=n&&(a=a.set("description",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/createResource"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"createResourceTagWithResourceTag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/createResourceTag/resourceTag"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createResourceTagWithTagName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("tagName",t)),null!=e&&(r=r.set("vo",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/createResourceTag/tagName"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deactivateGroupResourceAssignment",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteAllResources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/deleteAllResources"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteAllResourcesTagsForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/deleteResource"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"deleteResourceTag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputDeleteResourceTag was null or undefined when calling deleteResourceTag.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/deleteResourceTag"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"getAdminGroups",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAdminGroups"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAdmins",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("onlyDirectAdmins",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAdmins"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAllResourcesByResourceTag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/getAllResourcesByResourceTag"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"getAllResourcesTagsForResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllResourcesTagsForResource"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllResourcesTagsForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllResourcesTagsForVo"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllResourcesWhereUserIsAdmin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesWhereUserIsAdmin/all"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllowedMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllowedMembers"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllowedResources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllowedResources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllowedUsersOfResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllowedUsers"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedGroups",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("member",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedGroups"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAssignedMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedMembers"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedMembersWithStatus",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedMembersWithStatus"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedResourcesWithGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedResources/g"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedResourcesWithMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedResources/m"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedResourcesWithStatus",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedResourcesWithStatus"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedRichMembers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedRichMembers"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedRichResourcesWithGroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedRichResources/g"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedRichResourcesWithMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedRichResources/m"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedRichResourcesWithMemberService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("service",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedRichResources/s-m"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAssignedServicesToResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedServices"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getBansForMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getBansForMember"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getBansForResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getBansForResource"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getEnrichedResourceById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("id",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getEnrichedResourceById"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getEnrichedResourcesForFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getEnrichedResourcesForFacility"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getEnrichedResourcesForVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getEnrichedResourcesForVo"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getFacility"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupAssignments",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getGroupAssignments"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceAssignments",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourceAssignments"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceBan",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getBan"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourceBanById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getBanById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getResourceById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getResourceById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourceById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getResourceByName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==i)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("name",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourceByName"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getResources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getResourcesByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getResourcesCountForAll",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesCount/all"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getResourcesCountForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesCount/vo"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getResourcesFromVoWhereUserIsAdmin",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getResourcesWhereGroupIsAdmin",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("group",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesWhereUserIsAdmin/group"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getResourcesWhereUserIsAdmin",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("user",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesWhereUserIsAdmin"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getRichAdmins",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==e)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==i)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==n)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("resource",t)),e&&e.forEach(function(t){a=a.append("specificAttributes",t)}),null!=i&&(a=a.set("allUserAttributes",i)),null!=n&&(a=a.set("onlyDirectAdmins",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getRichAdmins"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"getRichResourceById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getRichResourceById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichResources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getRichResources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichResourcesByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getRichResourcesByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling getVo.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getVo"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeAllResourceTagsFromResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeBanByMemberAndResource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeBan/member-resource-id"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupAdminResource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeAdmin/r-g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupFromResource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeGroupFromResource"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupFromResources",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(function(t){r=r.append("resources[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeGroupFromResources"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeGroupsFromResource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");var r=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){r=r.append("groups[]",t)}),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeGroupsFromResource"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeResourceBanById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeBan/id"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeResourceSelfServiceGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeResourceSelfServiceUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeResourceSelfServiceUser"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeResourceTagFromResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/removeResourceTagFromResource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"removeService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeService.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("service",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeService"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeServices",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling removeServices.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),e&&e.forEach(function(t){r=r.append("services[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeServices"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeServicesPackage",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("servicesPackage",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeServicesPackage"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeUserAdminResource",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeAdmin/r-u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"setResourceBan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetBan was null or undefined when calling setResourceBan.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/setBan"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"unallowGroupsFromResources",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");var r=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){r=r.append("groups[]",t)}),e&&e.forEach(function(t){r=r.append("resources[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/unallowGroupsFromResources"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"updateResource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateResource was null or undefined when calling updateResource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/updateResource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateResourceBan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateBan was null or undefined when calling updateResourceBan.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/updateBan"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateResourceTag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateResourceTag was null or undefined when calling updateResourceTag.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/updateResourceTag"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),S=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"addDestination",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter service was null or undefined when calling addDestination.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling addDestination.");if(null==i)throw new Error("Required parameter destination was null or undefined when calling addDestination.");if(null==n)throw new Error("Required parameter type was null or undefined when calling addDestination.");var c=new s.LE({encoder:this.encoder});null!=t&&(c=c.set("service",t)),null!=e&&(c=c.set("facility",e)),null!=i&&(c=c.set("destination",i)),null!=n&&(c=c.set("type",n)),null!=r&&(c=c.set("propagationType",r));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/addDestination"),null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"addDestinationToMultipleServices",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAddDestinationToMultipleServices was null or undefined when calling addDestinationToMultipleServices.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/servicesManager/addDestination"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"addDestinationsDefinedByHostsOnFacilityWithFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/f"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputAddDestinationsDefinedByHostsOnFacility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/servicesManager/addDestinationsDefinedByHostsOnFacility/lists-f"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/s-f"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addDestinationsForAllServicesOnFacility",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter facility was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==i)throw new Error("Required parameter type was null or undefined when calling addDestinationsForAllServicesOnFacility.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),null!=e&&(a=a.set("destination",e)),null!=i&&(a=a.set("type",i)),null!=n&&(a=a.set("propagationType",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/addDestinationsForAllServicesOnFacility"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"addRequiredAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling addRequiredAttribute.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling addRequiredAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/addRequiredAttribute"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addRequiredAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling addRequiredAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling addRequiredAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/addRequiredAttributes"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addServiceToServicesPackage",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling addServiceToServicesPackage.");if(null==e)throw new Error("Required parameter service was null or undefined when calling addServiceToServicesPackage.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("servicesPackage",t)),null!=e&&(r=r.set("service",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/addServiceToServicesPackage"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"blockAllServicesOnDestinationById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("destination",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/blockAllServicesOnDestination/d"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"blockAllServicesOnDestinationByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationByName.");if(null==e)throw new Error("Required parameter destinationType was null or undefined when calling blockAllServicesOnDestinationByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("destination",t)),null!=e&&(r=r.set("destinationType",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/blockAllServicesOnDestination/dname-dtype"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"blockAllServicesOnFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling blockAllServicesOnFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/blockAllServicesOnFacility"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"blockServiceOnDestination",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestination.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("destination",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/blockServiceOnDestination/s-d"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"blockServiceOnDestinationWithNameAndType",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==i)throw new Error("Required parameter destinationType was null or undefined when calling blockServiceOnDestinationWithNameAndType.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("destination",e)),null!=i&&(o=o.set("destinationType",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/blockServiceOnDestination/s-dname-dtype"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"blockServiceOnFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling blockServiceOnFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/blockServiceOnFacility"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createService",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter name was null or undefined when calling createService.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createService.");if(null==i)throw new Error("Required parameter script was null or undefined when calling createService.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("name",t)),null!=e&&(o=o.set("description",e)),null!=i&&(o=o.set("script",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/createService"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"createServiceWithService",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateService was null or undefined when calling createServiceWithService.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/servicesManager/createService"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createServicesPackage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateServicesPackage was null or undefined when calling createServicesPackage.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/servicesManager/createServicesPackage"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"createServicesPackageByNameAndDescription",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter name was null or undefined when calling createServicesPackageByNameAndDescription.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createServicesPackageByNameAndDescription.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("name",t)),null!=e&&(r=r.set("description",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/createServicesPackage"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteService",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling deleteService.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("force",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/deleteService"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteServicesPackage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling deleteServicesPackage.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("servicesPackage",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/deleteServicesPackage"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"forceServicePropagation",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling forceServicePropagation.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/forceServicePropagation"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAllDestinations",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getDestinations/all"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getAllRichDestinationsForFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllRichDestinationsForFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getAllRichDestinations/f"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllRichDestinationsForService",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter service was null or undefined when calling getAllRichDestinationsForService.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getAllRichDestinations/s"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedResources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedResources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getAssignedResourcesForService"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedServices",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedServices.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getAssignedServices"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getDataWithGroups",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling getDataWithGroups.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDataWithGroups.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getDataWithGroups"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getDataWithVos",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling getDataWithVos.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDataWithVos.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getDataWithVos"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getDestinationById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getDestinationById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getDestinationById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getDestinations",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling getDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDestinations.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getDestinations/s-f"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getDestinationsCount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getDestinationsCount"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getFacilitiesDestinations",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFacilitiesDestinations.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getFacilitiesDestinations"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityAssignedServicesForGUI",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAssignedServicesForGUI.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getFacilityAssignedServicesForGUI"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFlatData",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling getFlatData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFlatData.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getFlatData"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getHashedDataWithGroups",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling getHashedDataWithGroups.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHashedDataWithGroups.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getHashedDataWithGroups"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getHashedHierarchicalData",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling getHashedHierarchicalData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHashedHierarchicalData.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getHashedHierarchicalData"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getHierarchicalData",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling getHierarchicalData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHierarchicalData.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getHierarchicalData"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getRichDestinations",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling getRichDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRichDestinations.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getRichDestinations"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getServiceById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getServiceById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServiceById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServiceByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter name was null or undefined when calling getServiceByName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("name",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServiceByName"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServices",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServices"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getServicesBlockedOnDestination",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter destination was null or undefined when calling getServicesBlockedOnDestination.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("destination",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServicesBlockedOnDestination"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServicesBlockedOnFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getServicesBlockedOnFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServicesBlockedOnFacility"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServicesByAttributeDefinition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getServicesByAttributeDefinition.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServicesByAttributeDefinition"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServicesFromServicesPackage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesFromServicesPackage.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("servicesPackage",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServicesFromServicesPackage"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServicesPackageById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesPackageById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("servicesPackage",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServicesPackageById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServicesPackageByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter name was null or undefined when calling getServicesPackageByName.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("name",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServicesPackageByName"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getServicesPackages",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/getServicesPackages"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"isServiceBlockedOnDestination",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling isServiceBlockedOnDestination.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("destination",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/isServiceBlockedOnDestination"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"isServiceBlockedOnFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling isServiceBlockedOnFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/servicesManager/isServiceBlockedOnFacility"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"planServicePropagation",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling planServicePropagation.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/planServicePropagation"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeAllDestinations",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling removeAllDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAllDestinations.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/removeAllDestinations"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeAllRequiredAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter service was null or undefined when calling removeAllRequiredAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/removeAllRequiredAttributes"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeDestination",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter service was null or undefined when calling removeDestination.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeDestination.");if(null==i)throw new Error("Required parameter destination was null or undefined when calling removeDestination.");if(null==n)throw new Error("Required parameter type was null or undefined when calling removeDestination.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("facility",e)),null!=i&&(a=a.set("destination",i)),null!=n&&(a=a.set("type",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/removeDestination"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"removeRequiredAttribute",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttribute.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling removeRequiredAttribute.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("attributeId",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/removeRequiredAttribute"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeRequiredAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeRequiredAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),e&&e.forEach(function(t){r=r.append("attributes[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/removeRequiredAttributes"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeServiceFromServicesPackage",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServiceFromServicesPackage.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeServiceFromServicesPackage.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("servicesPackage",t)),null!=e&&(r=r.set("service",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/removeServiceFromServicesPackage"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"unblockAllServicesOnDestinationById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("destination",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/unblockAllServicesOnDestination/d"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"unblockAllServicesOnDestinationByName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationByName.");if(null==e)throw new Error("Required parameter destinationType was null or undefined when calling unblockAllServicesOnDestinationByName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("destination",t)),null!=e&&(r=r.set("destinationType",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/unblockAllServicesOnDestination/dname-dtype"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"unblockAllServicesOnFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling unblockAllServicesOnFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/unblockAllServicesOnFacility"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"unblockServiceOnDestinationById",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationById.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationById.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("destination",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/unblockServiceOnDestination/s-d"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"unblockServiceOnDestinationByName",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationByName.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationByName.");if(null==i)throw new Error("Required parameter destinationType was null or undefined when calling unblockServiceOnDestinationByName.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("destination",e)),null!=i&&(o=o.set("destinationType",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/unblockServiceOnDestination/s-dname-dtype"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"unblockServiceOnFacility",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling unblockServiceOnFacility.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/servicesManager/unblockServiceOnFacility"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"updateService",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateService was null or undefined when calling updateService.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/servicesManager/updateService"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateServicesPackage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateServicesPackage was null or undefined when calling updateServicesPackage.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/servicesManager/updateServicesPackage"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),I=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"countTasks",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/countTasks"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"deleteTask",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter taskIdObject was null or undefined when calling deleteTask.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/tasksManager/deleteTask"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteTaskResultById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter taskResultIdObject was null or undefined when calling deleteTaskResultById.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/tasksManager/deleteTaskResultById"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteTaskResultsIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter taskAndDestinationIdObject was null or undefined when calling deleteTaskResultsIds.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/tasksManager/deleteTaskResults/id"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteTaskResultsNames",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter taskAndDestinationNameObject was null or undefined when calling deleteTaskResultsNames.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/tasksManager/deleteTaskResults/name"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"getAllFacilitiesStates",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getAllFacilitiesStates"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAllResourcesState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter voId was null or undefined when calling getAllResourcesState.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("voId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getAllResourcesState"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityServicesState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityServicesState.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getFacilityServicesState"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getFacilityState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityState.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getFacilityState"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getTask",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling getTask.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getTask.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTask"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getTaskById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getTaskById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTaskById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getTaskResultById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter taskResult was null or undefined when calling getTaskResultById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("taskResult",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTaskResultById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getTaskResults",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTaskResults"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getTaskResultsByTask",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsByTask.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("task",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTaskResultsByTask"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getTaskResultsForDestinations",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter destinations was null or undefined when calling getTaskResultsForDestinations.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("destinations[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTaskResultsForDestinations"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getTaskResultsForGUIByTask",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTask.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("task",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTaskResultsForGUIByTask"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getTaskResultsForGUIByTaskAndDestination",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("task",t)),null!=e&&(r=r.set("destination",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTaskResultsForGUIByTaskAndDestination"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getTaskResultsForGUIByTaskOnlyNewest",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskOnlyNewest.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("task",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/getTaskResultsForGUIByTaskOnlyNewest"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"isThereSuchTask",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter service was null or undefined when calling isThereSuchTask.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling isThereSuchTask.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/isThereSuchTask"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"listAllTasks",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/listAllTasks"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"listAllTasksForFacility",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter facility was null or undefined when calling listAllTasksForFacility.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/tasksManager/listAllTasksForFacility"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"suspendTasksPropagation",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter suspend was null or undefined when calling suspendTasksPropagation.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("suspend",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/tasksManager/suspendTasksPropagation"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),R=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"addSpecificUserOwner",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("specificUser",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/addSpecificUserOwner"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addUserExtSource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter addUserExtSourceInput was null or undefined when calling addUserExtSource.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/usersManager/addUserExtSource"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"anonymizeUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/anonymizeUser"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"changeNonAuthzPasswordByToken",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==e)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("token",t)),null!=e&&(o=o.set("password",e)),null!=i&&(o=o.set("lang",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/changeNonAuthzPassword/token"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"changePasswordForLogin",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");var c=new s.LE({encoder:this.encoder});null!=t&&(c=c.set("login",t)),null!=e&&(c=c.set("namespace",e)),null!=i&&(c=c.set("newPassword",i)),null!=n&&(c=c.set("oldPassword",n)),null!=r&&(c=c.set("checkOldPassword",r));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/changePassword/login"),null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"changePasswordForUser",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");var c=new s.LE({encoder:this.encoder});null!=t&&(c=c.set("user",t)),null!=e&&(c=c.set("namespace",e)),null!=i&&(c=c.set("newPassword",i)),null!=n&&(c=c.set("oldPassword",n)),null!=r&&(c=c.set("checkOldPassword",r));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/changePassword/user"),null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"checkPasswordResetRequestByTokenIsValid",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("token",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/checkPasswordResetRequestIsValid/token"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"checkPasswordStrength",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("password",t)),null!=e&&(r=r.set("namespace",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/checkPasswordStrength"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createAlternativePassword",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==i)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==n)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("user",t)),null!=e&&(a=a.set("description",e)),null!=i&&(a=a.set("loginNamespace",i)),null!=n&&(a=a.set("password",n));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/createAlternativePassword"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"createServiceUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateServiceUser was null or undefined when calling createServiceUser.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/usersManager/createServiceUser"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteAlternativePassword",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==i)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("loginNamespace",e)),null!=i&&(o=o.set("passwordId",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/deleteAlternativePassword"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"deletePasswordForLogin",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("login",t)),null!=e&&(r=r.set("namespace",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/deletePassword/login"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deletePasswordForUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("namespace",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/deletePassword/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"deleteUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("force",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/deleteUser"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"findRichUsers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/findRichUsers"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"findRichUsersWithAttributes",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("searchString",t)),e&&e.forEach(function(t){r=r.append("attrsNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/findRichUsersWithAttributes"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"findUsers",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/findUsers"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"generateAccountForName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("namespace",t)),null!=e&&(r=r.set("name",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/generateAccount/name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAllRichUsersWithAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("includedSpecificUsers",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getAllRichUsersWithAttributes"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getAssignedRichResourcesForUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getAssignedRichResources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getGroupsForFacilityWhereUserIsActive",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("facility",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getGroupsWhereUserIsActive/facility"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupsForResourceWhereUserIsActive",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("resource",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getGroupsWhereUserIsActive/resource"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupsInVoWhereUserIsAdmin",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("vo",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getGroupsWhereUserIsAdmin/u-v"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getGroupsWhereUserIsAdmin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getGroupsWhereUserIsAdmin/u"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getPendingPreferredEmailChanges",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getPendingPreferredEmailChanges"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichUserExtSources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUserExtSources/u"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichUserWithAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUserWithAttributes"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichUsersByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUsersByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichUsersWithAttributesByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUsersWithAttributesByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getRichUsersWithoutVoWithAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("attrsNames[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUsersWithoutVoWithAttributes"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getSpecificUsersByUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getSpecificUsersByUser"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getSponsorsForMember",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),e&&e.forEach(function(t){r=r.append("attrNames[]",t)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getSponsorsForMember/member"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getSponsorsForMemberByVoAndLogin",value:function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");var a=new s.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("extSourceName",e)),null!=i&&(a=a.set("extLogin",i)),n&&n.forEach(function(t){a=a.append("attrNames[]",t)});var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getSponsorsForMember/vo"),{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:o})}},{key:"getUserByExtSourceNameAndExtLogin",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("extLogin",t)),null!=e&&(r=r.set("extSourceName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserByExtSourceNameAndExtLogin"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getUserById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUserExtSourceById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("userExtSource",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserExtSourceById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUserExtSourceByUniqueAttributeValueAndAttributeId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("attributeId",t)),null!=e&&(r=r.set("attributeValue",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserExtSourceByUniqueAttributeValue/id"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserExtSourceByUniqueAttributeValueAndAttributeName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("attributeName",t)),null!=e&&(r=r.set("attributeValue",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserExtSourceByUniqueAttributeValue/name"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getUserExtSources",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserExtSources"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUserExtSourcesByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserExtSourcesByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUsers",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUsers"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getUsersByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUsersByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUsersBySpecificUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("specificUser",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUsersBySpecificUser"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getUsersPage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputGetPaginatedUsers was null or undefined when calling getUsersPage.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/usersManager/getUsersPage"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"getVosWhereUserIsAdmin",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getVosWhereUserIsAdmin"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVosWhereUserIsMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getVosWhereUserIsMember"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"isLoginAvailable",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==e)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("loginNamespace",t)),null!=e&&(r=r.set("login",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/isLoginAvailable"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"loginExist",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("namespace",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/loginExist"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeSpecificUserOwner",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("specificUser",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/removeSpecificUserOwner"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeUserExtSource",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("userExtSource",e)),null!=i&&(o=o.set("force",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/removeUserExtSource"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"requestPreferredEmailChange",value:function(t,e,i,n,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",c=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(null==t)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==e)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");var u=new s.LE({encoder:this.encoder});null!=t&&(u=u.set("user",t)),null!=e&&(u=u.set("email",e)),null!=i&&(u=u.set("lang",i)),null!=n&&(u=u.set("linkPath",n)),null!=r&&(u=u.set("customUrl",r)),null!=o&&(u=u.set("idpFilter",o));var l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var h="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+h)}var d=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==d&&(l=l.set("Accept",d)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/requestPreferredEmailChange"),null,{params:u,withCredentials:this.configuration.withCredentials,headers:l,observe:a,reportProgress:c})}},{key:"reservePasswordForLogin",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("login",t)),null!=e&&(o=o.set("namespace",e)),null!=i&&(o=o.set("password",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/reservePassword/login"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"reservePasswordForUser",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("namespace",e)),null!=i&&(o=o.set("password",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/reservePassword/user"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"reserveRandomPassword",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("namespace",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/reserveRandomPassword"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"updateUser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateUser was null or undefined when calling updateUser.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/usersManager/updateUser"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"validatePasswordForLogin",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("login",t)),null!=e&&(r=r.set("namespace",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/validatePassword/login"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"validatePasswordForUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("namespace",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/validatePassword/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"validatePreferredEmailChangeWithToken",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==e)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("token",t)),null!=e&&(r=r.set("u",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/validatePreferredEmailChange"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),x=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"getAppsConfig",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getAppsConfig"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getGuiConfiguration",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getGuiConfiguration"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getPerunRPCVersion",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["text/plain"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getPerunStatistics",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getPerunStatistics"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getPerunStatus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getPerunStatus"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getPerunSystemTimeInMillis",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getPerunSystemTimeInMillis"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),O=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new s.WM,this.configuration=new h,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i),this.encoder=this.configuration.encoder||new c}return _createClass(t,[{key:"addSponsorRoleToGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/addSponsorRole/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addSponsorRoleToUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/addSponsorRole/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addVoAdminGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/addAdmin/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"addVoAdminUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/addAdmin/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createVoWithName",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==e)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("name",t)),null!=e&&(r=r.set("shortName",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/createVo/withName"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"createVoWithVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputCreateVoWithVo was null or undefined when calling createVoWithVo.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/vosManager/createVo/withVo"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"deleteVo",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("force",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/deleteVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"findCandidates",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("id",t)),null!=e&&(o=o.set("searchString",e)),null!=i&&(o=o.set("maxNumOfResults",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/findCandidates"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"findCandidatesForGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("searchString",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/findCandidates/forGroup"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getAllVos",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getAllVos"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getCompleteCandidatesForGroup",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(function(t){o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("searchString",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getCompleteCandidates/forGroup"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getCompleteCandidatesForVo",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(function(t){o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("searchString",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getCompleteCandidates/forVo"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getMyVos",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVos"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"getRichAdminsForVo",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==i)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==n)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==r)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");var c=new s.LE({encoder:this.encoder});null!=t&&(c=c.set("vo",t)),null!=e&&(c=c.set("role",e)),i&&i.forEach(function(t){c=c.append("specificAttributes",t)}),null!=n&&(c=c.set("allUserAttributes",n)),null!=r&&(c=c.set("onlyDirectAdmins",r));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getRichAdmins"),{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:a})}},{key:"getVoAdminGroups",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("role",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getAdminGroups"),{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"getVoAdminUsers",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==i)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");var o=new s.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("role",e)),null!=i&&(o=o.set("onlyDirectAdmins",i));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(a=a.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getAdmins"),{params:o,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:r})}},{key:"getVoBanById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getBanById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoBanForMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getBanForMember"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoBansForVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getBansForVo"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter id was null or undefined when calling getVoById.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVoById"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoByShortName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("shortName",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVoByShortName"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVoMembersCountsByStatus",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVoMembersCountsByStatus"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVosByIds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");var n=new s.LE({encoder:this.encoder});t&&t.forEach(function(t){n=n.append("ids[]",t)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVosByIds"),{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"getVosCount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var n="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+n)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(i=i.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVosCount"),{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}},{key:"removeSponsorRoleFromGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeSponsorRole/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeSponsorRoleFromUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeSponsorRole/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeVoAdminGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("authorizedGroup",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeAdmin/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeVoAdminUser",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");var r=new s.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("user",e));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+a)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeAdmin/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}},{key:"removeVoBan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeBan"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"removeVoBanForMember",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");var n=new s.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+o)}var a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeBanForMember"),null,{params:n,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:i})}},{key:"setVoBan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputSetVoBan was null or undefined when calling setVoBan.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/vosManager/setBan"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}},{key:"updateVo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==t)throw new Error("Required parameter inputUpdateVo was null or undefined when calling updateVo.");var n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+r)}var o=this.configuration.selectHeaderAccept(["application/json"]);void 0!==o&&(n=n.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==a&&(n=n.set("Content-Type",a)),this.httpClient.post("".concat(this.configuration.basePath,"/json/vosManager/updateVo"),t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(s.eN),u.LFG(l,8),u.LFG(h,8))},t.\u0275prov=u.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),P={WRITE:"WRITE",WRITEVO:"WRITE_VO",WRITEPUBLIC:"WRITE_PUBLIC",READ:"READ",READVO:"READ_VO",READPUBLIC:"READ_PUBLIC"};!function(t){t.HiddenEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"},t.DisabledEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"}}(n||(n={})),function(t){t.FormatEnum={DOT:"DOT",TGF:"TGF"}}(r||(r={})),function(t){t.OwnerTypeEnum={NUMBER_0:0,NUMBER_1:1}}(o||(o={})),function(t){t.TypeEnum={Technical:"technical",Administrative:"administrative"}}(a||(a={}));var D={HTMLCOMMENT:"HTML_COMMENT",SUBMITBUTTON:"SUBMIT_BUTTON",AUTOSUBMITBUTTON:"AUTO_SUBMIT_BUTTON",FROMFEDERATIONSHOW:"FROM_FEDERATION_SHOW",FROMFEDERATIONHIDDEN:"FROM_FEDERATION_HIDDEN",PASSWORD:"PASSWORD",VALIDATEDEMAIL:"VALIDATED_EMAIL",TEXTFIELD:"TEXTFIELD",TEXTAREA:"TEXTAREA",CHECKBOX:"CHECKBOX",RADIO:"RADIO",SELECTIONBOX:"SELECTIONBOX",COMBOBOX:"COMBOBOX",USERNAME:"USERNAME",HEADING:"HEADING",TIMEZONE:"TIMEZONE",EMBEDDEDGROUPAPPLICATION:"EMBEDDED_GROUP_APPLICATION"},M=function(){var t=function(){function t(e,i){if(_classCallCheck(this,t),e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!i)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}return _createClass(t,null,[{key:"forRoot",value:function(e){return{ngModule:t,providers:[{provide:h,useFactory:e}]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.LFG(t,12),u.LFG(s.eN,8))},t.\u0275mod=u.oAB({type:t}),t.\u0275inj=u.cJS({providers:[d,f,p,g,m,v,y,_,b,w,A,k,C,T,E,S,I,R,x,O],imports:[[]]}),t}()},22280:function(t,e,i){"use strict";i.d(e,{r5:function(){return s.r},d4:function(){return o},dp:function(){return a.d}});var n=i(61511),r=i(31572),o=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[n.ez]]}),t}(),a=i(22196),s=(i(83787),i(95603));i(91322),i(63720),i(1157),i(48853),i(44031),i(31447),i(92898)},83787:function(t,e,i){"use strict";i.d(e,{a:function(){return a}});var n=i(68416),r=i(31572),o=i(48160),a=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.translate=e,this.storage=i}return _createClass(t,[{key:"transform",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en",i=this.storage.get("custom_labels");if(i)for(var n=Object.keys(i),r=0,o=n;r0?"red":null!==u&&u.trim().length>0?"green":""}if(o){var l=(0,n.IL)(t.attributes,r.r.GROUP_LAST_STRUCTURE_SYNC_STATE),h=(0,n.IL)(t.attributes,r.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),d=l.value,f=h.value;return null!=d&&d.trim().length>0?"red":null!==f&&f.trim().length>0?"green":""}return""}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"groupSyncIconColor",type:t,pure:!0}),t}()},52984:function(t,e,i){"use strict";i.d(e,{J:function(){return a}});var n=i(67004),r=i(84140),o=i(31572),a=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){if(null==t||null==t.attributes)return"";var e=(0,r.IL)(t.attributes,n.r.GROUP_SYNC_ENABLED),i=(0,r.IL)(t.attributes,n.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===e&&null===i)return"";var o=i.value;if("true"===e.value){var a=(0,r.IL)(t.attributes,n.r.GROUP_LAST_SYNC_STATE),s=(0,r.IL)(t.attributes,n.r.GROUP_LAST_SYNC_TIMESTAMP),c=a.value,u=s.value;return null!=c&&c.trim().length>0?"sync_problem":(null!==u&&u.trim(),"sync")}if(o){var l=(0,r.IL)(t.attributes,n.r.GROUP_LAST_STRUCTURE_SYNC_STATE),h=(0,r.IL)(t.attributes,n.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),d=l.value,f=h.value;return null!=d&&d.trim().length>0?"sync_problem":(null!==f&&f.trim(),"sync")}return"sync_disabled"}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"groupSyncIcon",type:t,pure:!0}),t}()},44385:function(t,e,i){"use strict";i.d(e,{r:function(){return a}});var n=i(84140),r=i(67004),o=i(31572),a=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){if(null==t||null==t.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";var e=(0,n.IL)(t.attributes,r.r.GROUP_SYNC_ENABLED),i=(0,n.IL)(t.attributes,r.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===e&&null===i)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";var o=i.value;if("true"===e.value){var a=(0,n.IL)(t.attributes,r.r.GROUP_LAST_SYNC_STATE),s=(0,n.IL)(t.attributes,r.r.GROUP_LAST_SYNC_TIMESTAMP),c=a.value,u=s.value;return null!=c&&c.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==u&&u.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}if(o){var l=(0,n.IL)(t.attributes,r.r.GROUP_LAST_STRUCTURE_SYNC_STATE),h=(0,n.IL)(t.attributes,r.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),d=l.value,f=h.value;return null!=d&&d.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==f&&f.trim().length>0?"VO_DETAIL.GROUPS.GROUP_STRUCTURE_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED"}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=o.Yjl({name:"groupSyncToolTip",type:t,pure:!0}),t}()},63720:function(t,e,i){"use strict";i.d(e,{D:function(){return o}});var n=i(84140),r=i(31572),o=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){return(0,n.g$)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Yjl({name:"memberEmail",type:t,pure:!0}),t}()},1157:function(t,e,i){"use strict";i.d(e,{p:function(){return o}});var n=i(84140),r=i(31572),o=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){return(0,n.lt)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Yjl({name:"memberLogins",type:t,pure:!0}),t}()},99197:function(t,e,i){"use strict";i.d(e,{M:function(){return o}});var n=i(84140),r=i(31572),o=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){return(0,n.Gw)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Yjl({name:"memberOrganization",type:t,pure:!0}),t}()},74842:function(t,e,i){"use strict";i.d(e,{u:function(){return r}});var n=i(31572),r=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){switch(t){case"VALID":return"green";case"INVALID":return"red";default:return""}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"memberStatusIconColor",type:t,pure:!0}),t}()},37043:function(t,e,i){"use strict";i.d(e,{f:function(){return r}});var n=i(31572),r=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){switch(t){case"VALID":return"verified_user";case"INVALID":return"report";case"EXPIRED":return"schedule";case"DISABLED":return"delete";default:return t}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"memberStatusIcon",type:t,pure:!0}),t}()},91322:function(t,e,i){"use strict";i.d(e,{i:function(){return o}});var n=i(84140),r=i(31572),o=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t,e){var i=null,r=null;null!==t.memberAttributes&&(i=t.memberAttributes.find(function(t){return"membershipExpiration"===t.friendlyName}),r=t.memberAttributes.find(function(t){return"groupMembershipExpiration"===t.friendlyName}));return e?"\n Group status: ".concat((0,n.Oe)(t.groupStatus),", Expiration: ").concat(r&&r.value?r.value:"never"):"Status: ".concat((0,n.Oe)(t.status,t.groupStatus),"\n Vo status: ").concat((0,n.Oe)(t.status),", Expiration: ").concat(i&&i.value?i.value:"never")}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Yjl({name:"memberStatusTooltip",type:t,pure:!0}),t}()},5725:function(t,e,i){"use strict";i.d(e,{l:function(){return r}});var n=i(31572),r=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){return t.replace("VALID","ACTIVE")}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"memberStatus",type:t,pure:!0}),t}()},82877:function(t,e,i){"use strict";i.d(e,{R:function(){return r}});var n=i(31572),r=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){return t.replace(/\s/g,"-").toLowerCase()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"multiWordDataCy",type:t,pure:!0}),t}()},58506:function(t,e,i){"use strict";i.d(e,{M:function(){return o}});var n=i(61511),r=i(31572),o=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t,e){return"voRules"===t?"Vo rules":"groupRules"===t?"Group rules":t&&"never"!==t.toLowerCase()?(0,n.p6)(t.replace(" ","T"),"d.M.yyyy "+(e?"H:mm:ss":""),"en"):"never"}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Yjl({name:"parseDate",type:t,pure:!0}),t}()},48853:function(t,e,i){"use strict";i.d(e,{J:function(){return o}});var n=i(84140),r=i(31572),o=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){return(0,n.te)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Yjl({name:"technicalOwners",type:t,pure:!0}),t}()},44031:function(t,e,i){"use strict";i.d(e,{S:function(){return o}});var n=i(84140),r=i(31572),o=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){return(0,n.kN)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Yjl({name:"userEmail",type:t,pure:!0}),t}()},22196:function(t,e,i){"use strict";i.d(e,{d:function(){return r}});var n=i(31572),r=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){var e="";return null!==t.titleBefore&&(e+=t.titleBefore+" "),null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),null!==t.titleAfter&&(e+=t.titleAfter+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"userFullName",type:t,pure:!0}),t}()},31447:function(t,e,i){"use strict";i.d(e,{g:function(){return o}});var n=i(84140),r=i(31572),o=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){return(0,n.$0)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Yjl({name:"userLogins",type:t,pure:!0}),t}()},92898:function(t,e,i){"use strict";i.d(e,{Z:function(){return o}});var n=i(84140),r=i(31572),o=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t){return(0,n.OV)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Yjl({name:"userVo",type:t,pure:!0}),t}()},68416:function(t,e,i){"use strict";i.d(e,{yC:function(){return S},F5:function(){return T},sM:function(){return x},e8:function(){return d},EB:function(){return _},Be:function(){return G},Hy:function(){return z},ly:function(){return D},fb:function(){return j},xw:function(){return O},x4:function(){return a},v0:function(){return m},SZ:function(){return I},V6:function(){return E},jq:function(){return U},BN:function(){return Z},HV:function(){return H},d6:function(){return u},UA:function(){return P}});var n=i(65249),r=i(14732),o=i(31572),a=function(){var t=function(){function t(e){_classCallCheck(this,t),this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}return _createClass(t,[{key:"init",value:function(t){this.principal=t,this.initData(t)}},{key:"setPerunPolicies",value:function(t){this.perunPolicies=t}},{key:"getPerunPolicies",value:function(){return this.perunPolicies}},{key:"isAuthorized",value:function(t,e){if(null===this.principal.roles)return!1;var i,n=[],r=_createForOfIteratorHelper(this.fetchPolicyWithAllIncludedPolicies(t));try{for(r.s();!(i=r.n()).done;){var o=i.value;n=n.concat(o.perunRoles)}}catch(s){r.e(s)}finally{r.f()}var a=this.fetchAllRelatedObjects(e);return this.resolveAuthorization(n,a)}},{key:"resolveAuthorization",value:function(t,e){var i,n=_createForOfIteratorHelper(t);try{for(n.s();!(i=n.n()).done;){for(var r=i.value,o=!0,a=0,s=Object.keys(r);a1&&void 0!==arguments[1]?arguments[1]:this.getDefaultRpcMessage();this.showError("PrivilegeException"===t.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===t.name?e:e+"\n"+t.name,t,t.message)}},{key:"showError",value:function(t,e,i,n,r){this.addNotification.emit({type:"error",error:e,description:i,title:t,actionText:void 0===n&&void 0!==i?this.getDefaultActionMessage():n,delay:this.defaultErrorDelayMs,icon:"error_outline",action:r,timeStamp:"".concat((new Date).getHours(),":").concat((new Date).getMinutes())})}},{key:"showSuccess",value:function(t,e,i,n){this.addNotification.emit({type:"success",description:e,title:t,actionText:void 0===i&&void 0!==e?this.getDefaultActionMessage():i,delay:this.defaultSuccessDelayMs,icon:"done",action:n,timeStamp:"".concat((new Date).getHours(),":").concat((new Date).getMinutes())})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.LFG(f.sK))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),S=function(){var t=function(){function t(e,i,n,r,o,a){_classCallCheck(this,t),this.authService=e,this.apiRequestConfiguration=i,this.notificator=n,this.store=r,this.dialog=o,this.initAuthService=a}return _createClass(t,[{key:"intercept",value:function(t,e){var i=this,n=this.store.get("api_url");if(-1!==t.url.indexOf("i18n")&&(t=t.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==n&&-1!==t.url.toString().indexOf(n)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()){var r=(0,g.kZ)();r.width="450px",this.dialog.open(C,r).afterClosed().subscribe(function(){sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substr(1)),i.authService.startAuthentication()})}t=this.initAuthService.isServiceAccess()?t.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):t.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}});var o=this.apiRequestConfiguration.shouldHandleError(),a="POST"===t.method&&!this.store.skipOidc()&&this.isCallToPerunApi(t.url);return e.handle(t).pipe((0,A.b)(function(t){t instanceof b.Zn&&a&&i.initAuthService.loadPrincipal()},function(e){var n=i.formatErrors(e,t);return void 0===n?(0,w._)(e):o?void i.notificator.showRPCError(n):(0,w._)(n)}))}},{key:"isCallToPerunApi",value:function(t){return t.startsWith(this.store.get("api_url"))}},{key:"formatErrors",value:function(t,e){var i;if(console.error(t),t.error.errorId?i=t.error:t.errorId&&(i=JSON.parse(t.error)),void 0!==i)return i.urlWithParams=e.urlWithParams,i.call=e.url,i.payload=e.body,i}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.LFG(d),o.LFG(T),o.LFG(E),o.LFG(u),o.LFG(l.uw),o.LFG(m))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t}(),I=function(){var t=function(){function t(){_classCallCheck(this,t),this.notificationData=[],this.newNotificationsCount=0}return _createClass(t,[{key:"storeNotification",value:function(t){this.newNotificationsCount++,this.notificationData.push(t)}},{key:"getNotifications",value:function(){return this.notificationData.reverse()}},{key:"clearNotifications",value:function(){this.notificationData=[]}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),R=i(47727),x=function(){var t=function(){function t(e,i,n,r){_classCallCheck(this,t),this.http=e,this.notificator=i,this.authService=n,this.storeService=r}return _createClass(t,[{key:"getApiUrl",value:function(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}},{key:"formatErrors",value:function(t,e,i,n){var r=t.error;return r.call=e,r.payload=i,n&&this.notificator.showRPCError(t.error),(0,w._)(r)}},{key:"getHeaders",value:function(){var t=new b.WM;return t=t.set("Authorization",this.authService.getAuthorizationHeaderValue())}},{key:"get",value:function(t){var e=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="".concat(this.getApiUrl()).concat(t);return this.http.get(n,{headers:this.getHeaders()}).pipe((0,R.K)(function(t){return e.formatErrors(t,n,null,i)}))}},{key:"put",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r="".concat(this.getApiUrl()).concat(t),o=JSON.stringify(i);return this.http.put(r,o,{headers:this.getHeaders()}).pipe((0,R.K)(function(t){return e.formatErrors(t,r,o,n)}))}},{key:"post",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r="".concat(this.getApiUrl()).concat(t),o=JSON.stringify(i),a=this.getHeaders();return a=a.set("Content-Type","application/json; charset=utf-8"),this.http.post(r,o,{headers:a}).pipe((0,R.K)(function(t){return e.formatErrors(t,r,o,n)}))}},{key:"delete",value:function(t){var e=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="".concat(this.getApiUrl()).concat(t);return this.http.delete(n,{headers:this.getHeaders()}).pipe((0,R.K)(function(t){return e.formatErrors(t,n,null,i)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.LFG(b.eN),o.LFG(E),o.LFG(d),o.LFG(u))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),O=function(){var t=function(){function t(e){var i=this;_classCallCheck(this,t),this.router=e,this.lastState="forward",this.history=new Set,e.events.subscribe(function(t){t instanceof c.OD&&("popstate"===t.navigationTrigger?i.history.has(t.restoredState.navigationId)?(i.lastState="back",i.history.delete(t.restoredState.navigationId)):(i.lastState="forward",i.history.add(t.id)):(i.history.add(t.id),i.lastState="forward"))})}return _createClass(t,[{key:"forceNavigate",value:function(t,e){if(null!==t){var i="";t.forEach(function(t){return i+="/"+t}),i.length>0&&(i=i.substring(1)),void 0===e&&(e={}),e.queryParams={redirectTo:i},this.router.navigate(["redirect"],e)}}},{key:"getLastState",value:function(){return this.lastState}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.LFG(c.F0))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(),P=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"isAllSelectedWithDisabledCheckbox",value:function(t,e,i,n,r,o,a,s){var c=this;return this.numSelected=t,this.numCanBeSelected=0,this.pageStart=r*i,this.pageEnd=this.pageStart+i,this.pageIterator=0,this.dataLength=""===e?o.data.length:o.filteredData.length,n||(this.modulo=this.dataLength%i,this.pageEnd=0===this.modulo?this.pageStart+i:this.pageStart+this.modulo),o.sortData(o.filteredData,a).forEach(function(t){c.pageStart<=c.pageIterator&&c.pageIterator=3?null:{isWeak:!0}}}}]),t}()},38457:function(t,e,i){"use strict";i.d(e,{f7:function(){return s},B2:function(){return c},g$:function(){return u},kN:function(){return l},$0:function(){return h},lt:function(){return d},bD:function(){return f},hu:function(){return p},Cz:function(){return g},te:function(){return m},ys:function(){return v},vL:function(){return y},sF:function(){return _},XI:function(){return b},OV:function(){return w},MX:function(){return A},oU:function(){return k},IL:function(){return C},Jc:function(){return T},v$:function(){return E},i5:function(){return S},kZ:function(){return I},dv:function(){return R},Hm:function(){return x},Oe:function(){return O},Gw:function(){return P},x2:function(){return D},sG:function(){return M},pR:function(){return N},Sd:function(){return z},Xn:function(){return Z},O6:function(){return B},aC:function(){return F},fx:function(){return H},mH:function(){return U}});var n=i(64762),r=i(84608),o=i(61511),a=i(82051),s=[5,10,25,100],c=/^(([^<>+()[\]\\.,;:\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 u(t){var e="";return t&&null!==t.userAttributes&&(t.userAttributes.forEach(function(t){"preferredMail"===t.friendlyName&&(e=t.value)}),e&&0===e.length&&null!==t.memberAttributes&&t.memberAttributes.forEach(function(t){"mail"===t.friendlyName&&null!==t.value&&(e=t.value)})),e}function l(t){var e="";return t&&t.userAttributes.forEach(function(t){"preferredMail"===t.friendlyName&&(e=t.value)}),e}function h(t){var e="";return t&&t.userAttributes&&t.userAttributes.filter(function(t){return"login-namespace"===t.baseFriendlyName}).filter(function(t){return null!==t.value}).forEach(function(t){e+=t.friendlyNameParameter+": "+t.value+", "}),e.endsWith(", ")&&(e=e.substring(0,e.length-2)),e}function d(t){var e="";return t&&t.userAttributes&&t.userAttributes.filter(function(t){return"login-namespace"===t.baseFriendlyName}).filter(function(t){return null!==t.value}).forEach(function(t){e+=t.friendlyNameParameter+": "+t.value+", "}),e.endsWith(", ")&&(e=e.substring(0,e.length-2)),e}function f(t){var e="";return null!==t.titleBefore&&(e+=t.titleBefore+" "),null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),null!==t.titleAfter&&(e+=t.titleAfter+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}function p(t){var e="";return null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}function g(t){var e="";return t.split(/(?=[A-Z])/g).forEach(function(t){e=(e=e.concat(t.toLowerCase())).concat(" ")}),e=e.charAt(0).toUpperCase()+e.slice(1,e.length-1)}function m(t){var e,i="",n=_createForOfIteratorHelper(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;"technical"===r.type&&(i+=r.name+", ")}}catch(o){n.e(o)}finally{n.f()}return i.endsWith(", ")&&(i=i.substring(0,i.length-2)),i}function v(t,e){return(0,n.mG)(this,void 0,void 0,regeneratorRuntime.mark(function i(){var n;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n=t,new Promise(function(t){return setTimeout(t,n)});case 2:e();case 3:case"end":return i.stop()}},i)}))}function y(t){return JSON.parse(localStorage.getItem(t))||[]}function _(t,e){if(null===localStorage.getItem(t)){var i=[];i.unshift(e.id),localStorage.setItem(t,JSON.stringify(i))}else{var n=JSON.parse(localStorage.getItem(t)),r=function(t,e){for(var i=0;i0&&n.splice(r,1),0!==r&&n.unshift(e.id),n.length>5&&n.pop(),localStorage.setItem(t,JSON.stringify(n))}}function b(t,e){if(null===localStorage.getItem("recent")){var i;i="Group"===t.beanName?[{id:t.id,name:t.shortName,fullName:t.name,type:t.beanName,voId:t.voId,voName:e}]:[{id:t.id,name:t.name,type:t.beanName,voId:t.voId}],localStorage.setItem("recent",JSON.stringify(i))}else{var n,r=JSON.parse(localStorage.getItem("recent")),o=function(t,e){for(var i=0;i0&&r.splice(o,1),0!==o&&r.unshift(n),r.length>5&&r.pop(),localStorage.setItem("recent",JSON.stringify(r))}}function w(t){var e="";return t&&t.userAttributes.forEach(function(t){"organization"===t.friendlyName&&(e=t.value)}),e}function A(t){return t.filter(function(t){return!t.namespace.includes("def:core")})}function k(t,e){var i=e.find(function(e){return e.id===t});return i?i.parentGroupId?k(i.parentGroupId,e).concat(i):[i]:[]}function C(t,e){var i,n=_createForOfIteratorHelper(t);try{for(n.s();!(i=n.n()).done;){var r=i.value;if(r.namespace+":"+r.friendlyName===e)return r}}catch(o){n.e(o)}finally{n.f()}return null}function T(t){return null!=t.attributes["urn:perun:member:attribute-def:def:mail"]?t.attributes["urn:perun:member:attribute-def:def:mail"]:null!=t.attributes["urn:perun:user:attribute-def:def:preferredMail"]?t.attributes["urn:perun:user:attribute-def:def:preferredMail"]:""}function E(t){return t.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceX509".toLowerCase()?function(t){if(t.includes("/CN=")){var e=t.split("/");for(var i in e)if(i.startsWith("CN="))return n=i.substring(3),decodeURIComponent(n.replace(/\\x/g,"%"))}var n;return t}(t.userExtSource.extSource.name):t.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceIdp".toLowerCase()?function(t){switch(t){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":return"Elixir Europe";case"https://login.elixir-czech.org/idp":return"Elixir Czech";case"https://mojeid.cz/saml/idp.xml":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"@mojeid.extidp.cesnet.cz":return"MojeID";case"@linkedin.extidp.cesnet.cz":return"LinkedIn";case"@twitter.extidp.cesnet.cz":return"Twitter";case"@seznam.extidp.cesnet.cz":return"Seznam";case"@elixir-europe.org":return"Elixir Europe";case"@github.extidp.cesnet.cz":return"GitHub";case"@orcid.extidp.cesnet.cz":return"OrcID";default:return t}}(t.userExtSource.extSource.name):t.userExtSource.extSource.name}function S(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["en","cs"],e={appType:"INITIAL",formId:0,mailType:"APP_CREATED_USER",send:!0,message:{}};return t.forEach(function(t){e.message[t]={locale:t,subject:"",text:""}}),e}function I(){var t=new r.vA;return t.disableClose=!0,t.autoFocus=!1,t}function R(t){var e,i={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},n=_createForOfIteratorHelper(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;i.i18n[r]={locale:r,errorMessage:"",help:"",label:"",options:""}}}catch(o){n.e(o)}finally{n.f()}return i}function x(t){return"virt"===t.namespace.split(":")[4]}function O(t,e){return"valid"!==t.toLowerCase()||e&&"valid"!==t.toLowerCase()?t:"ACTIVE"}function P(t){var e="";return t&&null!==t.memberAttributes&&(t.memberAttributes.forEach(function(t){"organization"===t.friendlyName&&null!==t.value&&(e=t.value)}),0===e.length&&null!==t.userAttributes&&t.userAttributes.forEach(function(t){"organization"===t.friendlyName&&(e=t.value)})),e}function D(t){var e=t.attributes.find(function(t){return"groupMembershipExpiration"===t.baseFriendlyName});return e&&e.value?e.value:"Never"}function M(t){return t&&"never"!==t.toLowerCase()?(0,o.p6)(t,"d.M.yyyy","en"):t}var L=new Intl.Collator("cs",{numeric:!0});function N(t,e,i,n){var r=e.active,o=e.direction;return r&&""!==o?t.sort(function(t,e){var a=i(t,r,n),s=i(e,r,n);return L.compare(a,s)*("asc"===o?1:-1)}):t}function z(t,e,i,n,r,o){e=e.toLowerCase();var a="";return i.forEach(function(e){a+=";"+n(t,e,r)}),o&&(a+=";"+n(t,"uuid",r)),-1!==a.toLowerCase().indexOf(e)}function Z(t,e,i,n){var r=[],o=["checkbox","select","edit","menu","cite","extend","recent"];return e=e.filter(function(t){return!o.includes(t)}),t.forEach(function(t){var o={};e.forEach(function(e){var r;o[e]=(null!==(r=i(t,e,n))&&void 0!==r?r:"").split('"').join("''").trim()}),r.push(o)}),r}function B(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"csv",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"export";switch(e){case"csv":var n=function(t,e){return null===e?"":e},r=Object.keys(t[0]),o=t.map(function(t){return r.map(function(e){return JSON.stringify(t[e],n)}).join(",")});o.unshift(r.join(",").split(" ").join("_").split('"').join("''"));var s=o.join("\r\n"),c=new Blob([s],{type:"text/csv"});(0,a.saveAs)(c,"".concat(i,".").concat(e))}}function F(t,e){return t.name.toLowerCase()>e.name.toLowerCase()?1:t.name.toLowerCase()===e.name.toLowerCase()?0:-1}function H(t,e){var i,n,r,o,a,s;return t.user?(a=t.user.lastName?t.user.lastName:null!==(i=t.user.firstName)&&void 0!==i?i:"",s=e.user.lastName?e.user.lastName:null!==(n=e.user.firstName)&&void 0!==n?n:""):(a=t.lastName?t.lastName:null!==(r=t.firstName)&&void 0!==r?r:"",s=e.lastName?e.lastName:null!==(o=e.firstName)&&void 0!==o?o:""),a>s?1:a===s?0:-1}function U(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];t.enable(),t.clearValidators(),t.clearAsyncValidators(),t.setValidators(e),t.setAsyncValidators(i),t.updateValueAndValidity()}},82819:function(t,e,i){"use strict";i.d(e,{l:function(){return m}});var n=i(31572),r=i(73005),o=i(38457),a=i(60611),s=i(61511),c=i(15980),u=i(8055),l=i(43691),h=i(48160),d=function(){var t=function t(){_classCallCheck(this,t),this.exportData=new n.vpe};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,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(t,e){if(1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"button",1),n.TgZ(2,"mat-icon"),n._uU(3,"more_vert"),n.qZA(),n.qZA(),n.TgZ(4,"mat-menu",null,2),n.TgZ(6,"button",3),n._uU(7),n.ALo(8,"translate"),n.qZA(),n.qZA(),n.TgZ(9,"mat-menu",null,4),n.TgZ(11,"button",5),n.NdJ("click",function(){return e.exportData.emit("csv")}),n._uU(12,"Csv"),n.qZA(),n.qZA(),n.qZA()),2&t){var i=n.MAs(5),r=n.MAs(10);n.xp6(1),n.Q6J("matMenuTriggerFor",i),n.xp6(5),n.Q6J("matMenuTriggerFor",r),n.xp6(1),n.hij(" ",n.lcZ(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[c.lW,u.p6,l.Hw,u.VK,u.OP],pipes:[h.X$],styles:[""]}),t}();function f(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"perun-web-apps-table-options",6),n.NdJ("exportData",function(t){return n.CHM(i),n.oxw().exportData.emit(t)}),n.qZA()}}function p(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"perun-web-apps-table-options",6),n.NdJ("exportData",function(t){return n.CHM(i),n.oxw().exportData.emit(t)}),n.qZA()}}var g=["*"],m=function(){var t=function(){function t(e){_classCallCheck(this,t),this.tableConfigService=e,this.hideExport=!1,this.pageSizeOptions=o.f7,this.dataLength=0,this.exportData=new n.vpe,this.pageSize=5}return _createClass(t,[{key:"ngOnInit",value:function(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5)}},{key:"matPaginator",set:function(t){this.paginator=t}},{key:"pageChangedTop",value:function(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}},{key:"pageChangedBottom",value:function(t){this.paginator.pageSize=t.pageSize,this.paginator.pageIndex=t.pageIndex,this.paginator.page.emit(t),this.pageSize=t.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(a.dB))},t.\u0275cmp=n.Xpm({type:t,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(t,e){var i;(1&t&&n.Gf(r.NW,7),2&t)&&(n.iGM(i=n.CRH())&&(e.matPaginator=i.first))},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId"},outputs:{exportData:"exportData"},ngContentSelectors:g,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(t,e){1&t&&(n.F$t(),n.TgZ(0,"div",0),n.TgZ(1,"div",1),n.TgZ(2,"mat-paginator",2),n.NdJ("page",function(t){return e.pageChangedTop(t)}),n.qZA(),n.YNc(3,f,1,0,"perun-web-apps-table-options",3),n.qZA(),n.TgZ(4,"div",4),n.Hsn(5),n.qZA(),n.TgZ(6,"div",1),n.TgZ(7,"mat-paginator",5),n.NdJ("page",function(t){return e.pageChangedBottom(t)}),n.qZA(),n.YNc(8,p,1,0,"perun-web-apps-table-options",3),n.qZA(),n.qZA()),2&t&&(n.xp6(2),n.Q6J("length",e.dataLength)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),n.xp6(1),n.Q6J("ngIf",!e.hideExport),n.xp6(4),n.Q6J("length",e.paginator.length)("pageIndex",e.paginator.pageIndex)("pageSizeOptions",e.paginator.pageSizeOptions)("pageSize",e.paginator.pageSize),n.xp6(1),n.Q6J("ngIf",!e.hideExport))},directives:[r.NW,s.O5,d],styles:[""]}),t}()},39571:function(t,e,i){"use strict";i.d(e,{w:function(){return h}});var n=i(31572),r=i(61511),o=i(43691);function a(t,e){1&t&&(n.TgZ(0,"mat-icon",2),n._uU(1," info "),n.qZA())}function s(t,e){1&t&&(n.TgZ(0,"mat-icon",2),n._uU(1," warning "),n.qZA())}function c(t,e){1&t&&(n.TgZ(0,"mat-icon",2),n._uU(1," dangerous "),n.qZA())}function u(t,e){1&t&&(n.TgZ(0,"mat-icon",2),n._uU(1," check_circle "),n.qZA())}var l=["*"],h=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:l,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(t,e){1&t&&(n.F$t(),n.TgZ(0,"div",0),n.YNc(1,a,2,0,"mat-icon",1),n.YNc(2,s,2,0,"mat-icon",1),n.YNc(3,c,2,0,"mat-icon",1),n.YNc(4,u,2,0,"mat-icon",1),n.Hsn(5),n.qZA()),2&t&&(n.ekj("warn-alert","warn"===e.alert_type)("error-alert","error"===e.alert_type)("success-alert","success"===e.alert_type)("info-alert","info"===e.alert_type),n.xp6(1),n.Q6J("ngIf","info"===e.alert_type),n.xp6(1),n.Q6J("ngIf","warn"===e.alert_type),n.xp6(1),n.Q6J("ngIf","error"===e.alert_type),n.xp6(1),n.Q6J("ngIf","success"===e.alert_type))},directives:[r.O5,o.Hw],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:grey;text-align:left;border:1px solid #b3b3b3;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px solid #ececec;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 solid #fedcda;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px solid #d7ffd7;border-radius:10px;background-color:#d7ffd7}"]}),t}()},22727:function(t,e,i){"use strict";i.d(e,{r:function(){return a}});var n=i(43691),r=i(61511),o=i(31572),a=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[n.Ps,r.ez]]}),t}()},10709:function(t,e,i){"use strict";i.d(e,{l3:function(){return o},_j:function(){return n},LC:function(){return r},ZN:function(){return v},jt:function(){return s},pV:function(){return p},ru:function(){return c},F4:function(){return d},IO:function(){return g},vP:function(){return u},SB:function(){return h},oB:function(){return l},eR:function(){return f},X$:function(){return a},ZE:function(){return y},k1:function(){return _}});var n=function t(){_classCallCheck(this,t)},r=function t(){_classCallCheck(this,t)},o="*";function a(t,e){return{type:7,name:t,definitions:e,options:{}}}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:e,timings:t}}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:t,options:e}}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:t,options:e}}function l(t){return{type:6,styles:t,offset:null}}function h(t,e,i){return{type:0,name:t,styles:e,options:i}}function d(t){return{type:5,steps:t}}function f(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:t,animation:e,options:i}}function p(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:t}}function g(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:t,animation:e,options:i}}function m(t){Promise.resolve(null).then(t)}var v=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_classCallCheck(this,t),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+i}return _createClass(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var t=this;m(function(){return t._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(t){this._position=this.totalTime?t*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}]),t}(),y=function(){function t(e){var i=this;_classCallCheck(this,t),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var n=0,r=0,o=0,a=this.players.length;0==a?m(function(){return i._onFinish()}):this.players.forEach(function(t){t.onDone(function(){++n==a&&i._onFinish()}),t.onDestroy(function(){++r==a&&i._onDestroy()}),t.onStart(function(){++o==a&&i._onStart()})}),this.totalTime=this.players.reduce(function(t,e){return Math.max(t,e.totalTime)},0)}return _createClass(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(t){return t.init()})}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})}},{key:"pause",value:function(){this.players.forEach(function(t){return t.pause()})}},{key:"restart",value:function(){this.players.forEach(function(t){return t.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(t){var e=t*this.totalTime;this.players.forEach(function(t){var i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)})}},{key:"getPosition",value:function(){var t=this.players.reduce(function(t,e){return null===t||e.totalTime>t.totalTime?e:t},null);return null!=t?t.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}]),t}(),_="!"},24621:function(t,e,i){"use strict";i.d(e,{rt:function(){return j},s1:function(){return T},$s:function(){return w},Qr:function(){return N},kH:function(){return q},mK:function(){return P},Em:function(){return E},tE:function(){return H},qV:function(){return O},qm:function(){return G},Kd:function(){return L},X6:function(){return z},yG:function(){return Z}});var n=i(61511),r=i(31572),o=i(55959),a=i(87570),s=i(40878),c=i(75842),u=i(66599),l=i(47701),h=i(43835),d=i(79996),f=i(90611),p=i(19861),g=i(11353),m=i(36337);function v(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}var y=0,_=new Map,b=null,w=function(){var t=function(){function t(e){_classCallCheck(this,t),this._document=e}return _createClass(t,[{key:"describe",value:function(t,e,i){if(this._canBeDescribed(t,e)){var n=A(e,i);"string"!=typeof e?(k(e),_.set(n,{messageElement:e,referenceCount:0})):_.has(n)||this._createMessageElement(e,i),this._isElementDescribedByMessage(t,n)||this._addMessageReference(t,n)}}},{key:"removeDescription",value:function(t,e,i){if(e&&this._isElementNode(t)){var n=A(e,i);if(this._isElementDescribedByMessage(t,n)&&this._removeMessageReference(t,n),"string"==typeof e){var r=_.get(n);r&&0===r.referenceCount&&this._deleteMessageElement(n)}b&&0===b.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var t=this._document.querySelectorAll("[cdk-describedby-host]"),e=0;e-1&&e!==i._activeItemIndex&&(i._activeItemIndex=e)}})}return _createClass(t,[{key:"skipPredicate",value:function(t){return this._skipPredicateFn=t,this}},{key:"withWrap",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=t,this}},{key:"withVerticalOrientation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=t,this}},{key:"withHorizontalOrientation",value:function(t){return this._horizontal=t,this}},{key:"withAllowedModifierKeys",value:function(t){return this._allowedModifierKeys=t,this}},{key:"withTypeAhead",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,u.b)(function(e){return t._pressedLetters.push(e)}),(0,l.b)(e),(0,h.h)(function(){return t._pressedLetters.length>0}),(0,d.U)(function(){return t._pressedLetters.join("")})).subscribe(function(e){for(var i=t._getItemsArray(),n=1;n0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=t,this}},{key:"setActiveItem",value:function(t){var e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(t){var e=this,i=t.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(function(i){return!t[i]||e._allowedModifierKeys.indexOf(i)>-1});switch(i){case c.Mf:return void this.tabOut.next();case c.JH:if(this._vertical&&n){this.setNextItemActive();break}return;case c.LH:if(this._vertical&&n){this.setPreviousItemActive();break}return;case c.SV:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case c.oh:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case c.Sd:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case c.uR:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||(0,c.Vb)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(i>=c.A&&i<=c.Z||i>=c.xE&&i<=c.aO)&&this._letterKeyStream.next(String.fromCharCode(i))))}this._pressedLetters=[],t.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(t){var e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),n=e[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}},{key:"_setActiveItemByDelta",value:function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}},{key:"_setActiveInWrapMode",value:function(t){for(var e=this._getItemsArray(),i=1;i<=e.length;i++){var n=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[n]))return void this.setActiveItem(n)}}},{key:"_setActiveInDefaultMode",value:function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}},{key:"_setActiveItemByIndex",value:function(t,e){var i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}},{key:"_getItemsArray",value:function(){return this._items instanceof r.n_E?this._items.toArray():this._items}}]),t}(),T=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"setActiveItem",value:function(t){this.activeItem&&this.activeItem.setInactiveStyles(),_get(_getPrototypeOf(i.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.setActiveStyles()}}]),i}(C),E=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.apply(this,arguments))._origin="program",t}return _createClass(i,[{key:"setFocusOrigin",value:function(t){return this._origin=t,this}},{key:"setActiveItem",value:function(t){_get(_getPrototypeOf(i.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.focus(this._origin)}}]),i}(C),S=function(){var t=function(){function t(e){_classCallCheck(this,t),this._platform=e}return _createClass(t,[{key:"isDisabled",value:function(t){return t.hasAttribute("disabled")}},{key:"isVisible",value:function(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}},{key:"isTabbable",value:function(t){if(!this._platform.isBrowser)return!1;var e,i=function(t){try{return t.frameElement}catch(e){return null}}((e=t).ownerDocument&&e.ownerDocument.defaultView||window);if(i){if(-1===R(i))return!1;if(!this.isVisible(i))return!1}var n=t.nodeName.toLowerCase(),r=R(t);return t.hasAttribute("contenteditable")?-1!==r:"iframe"!==n&&"object"!==n&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){var e=t.nodeName.toLowerCase(),i="input"===e&&t.type;return"text"===i||"password"===i||"select"===e||"textarea"===e}(t))&&("audio"===n?!!t.hasAttribute("controls")&&-1!==r:"video"===n?-1!==r&&(null!==r||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}},{key:"isFocusable",value:function(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){var e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||I(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(g.t4))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(g.t4))},token:t,providedIn:"root"}),t}();function I(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function R(t){if(!I(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var x=function(){function t(e,i,n,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_classCallCheck(this,t),this._element=e,this._checker=i,this._ngZone=n,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return _createClass(t,[{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"destroy",value:function(){var t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.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)}},{key:"focusInitialElementWhenReady",value:function(t){var e=this;return new Promise(function(i){e._executeOnStable(function(){return i(e.focusInitialElement(t))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(t){var e=this;return new Promise(function(i){e._executeOnStable(function(){return i(e.focusFirstTabbableElement(t))})})}},{key:"focusLastTabbableElementWhenReady",value:function(t){var e=this;return new Promise(function(i){e._executeOnStable(function(){return i(e.focusLastTabbableElement(t))})})}},{key:"_getRegionBoundary",value:function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-".concat(t,"], [cdkFocusRegion").concat(t,"], [cdk-focus-").concat(t,"]")),i=0;i=0;i--){var n=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(n)return n}return null}},{key:"_createAnchor",value:function(){var t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}},{key:"_toggleAnchorTabIndex",value:function(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"_executeOnStable",value:function(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe((0,f.q)(1)).subscribe(t)}}]),t}(),O=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this._checker=e,this._ngZone=i,this._document=n}return _createClass(t,[{key:"create",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new x(t,this._checker,this._ngZone,this._document,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(S),r.LFG(r.R0b),r.LFG(n.K0))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(S),r.LFG(r.R0b),r.LFG(n.K0))},token:t,providedIn:"root"}),t}(),P=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this._elementRef=e,this._focusTrapFactory=i,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return _createClass(t,[{key:"enabled",get:function(){return this.focusTrap.enabled},set:function(t){this.focusTrap.enabled=(0,p.Ig)(t)}},{key:"autoCapture",get:function(){return this._autoCapture},set:function(t){this._autoCapture=(0,p.Ig)(t)}},{key:"ngOnDestroy",value:function(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}},{key:"ngAfterContentInit",value:function(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}},{key:"ngDoCheck",value:function(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}},{key:"ngOnChanges",value:function(t){var e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}},{key:"_captureFocus",value:function(){this._previouslyFocusedElement=(0,g.ht)(),this.focusTrap.focusInitialElementWhenReady()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(O),r.Y36(n.K0))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[r.TTD]}),t}();"undefined"!=typeof Element&∈var D=new r.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),M=new r.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),L=function(){var t=function(){function t(e,i,n,r){_classCallCheck(this,t),this._ngZone=i,this._defaultOptions=r,this._document=n,this._liveElement=e||this._createLiveElement()}return _createClass(t,[{key:"announce",value:function(t){for(var e,i,n,r=this,o=this._defaultOptions,a=arguments.length,s=new Array(a>1?a-1:0),c=1;c1&&void 0!==arguments[1]&&arguments[1],i=(0,p.fI)(t);if(!this._platform.isBrowser||1!==i.nodeType)return(0,s.of)(null);var n=(0,g.kV)(i)||this._getDocument(),r=this._elementInfo.get(i);if(r)return e&&(r.checkChildren=!0),r.subject;var a={checkChildren:e,subject:new o.xQ,rootNode:n};return this._elementInfo.set(i,a),this._registerGlobalListeners(a),a.subject}},{key:"stopMonitoring",value:function(t){var e=(0,p.fI)(t),i=this._elementInfo.get(e);i&&(i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(i))}},{key:"focusVia",value:function(t,e,i){var n=this,r=(0,p.fI)(t);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(function(t){var i=_slicedToArray(t,2),r=i[0],o=i[1];return n._originChanged(r,e,o)}):(this._setOriginForCurrentEventQueue(e),"function"==typeof r.focus&&r.focus(i))}},{key:"ngOnDestroy",value:function(){var t=this;this._elementInfo.forEach(function(e,i){return t.stopMonitoring(i)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(t,e,i){i?t.classList.add(e):t.classList.remove(e)}},{key:"_getFocusOrigin",value:function(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}},{key:"_setClasses",value:function(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}},{key:"_setOriginForCurrentEventQueue",value:function(t){var e=this;this._ngZone.runOutsideAngular(function(){e._origin=t,0===e._detectionMode&&(e._originTimeoutId=setTimeout(function(){return e._origin=null},1))})}},{key:"_wasCausedByTouch",value:function(t){var e=U(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(t,e){var i=this._elementInfo.get(e);i&&(i.checkChildren||e===U(t))&&this._originChanged(e,this._getFocusOrigin(t),i)}},{key:"_onBlur",value:function(t,e){var i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}},{key:"_emitOrigin",value:function(t,e){this._ngZone.run(function(){return t.next(e)})}},{key:"_registerGlobalListeners",value:function(t){var e=this;if(this._platform.isBrowser){var i=t.rootNode,n=this._rootNodeFocusListenerCount.get(i)||0;n||this._ngZone.runOutsideAngular(function(){i.addEventListener("focus",e._rootNodeFocusAndBlurListener,F),i.addEventListener("blur",e._rootNodeFocusAndBlurListener,F)}),this._rootNodeFocusListenerCount.set(i,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(function(){var t=e._getDocument(),i=e._getWindow();t.addEventListener("keydown",e._documentKeydownListener,F),t.addEventListener("mousedown",e._documentMousedownListener,F),t.addEventListener("touchstart",e._documentTouchstartListener,F),i.addEventListener("focus",e._windowFocusListener)})}}},{key:"_removeGlobalListeners",value:function(t){var e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){var i=this._rootNodeFocusListenerCount.get(e);i>1?this._rootNodeFocusListenerCount.set(e,i-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,F),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,F),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){var n=this._getDocument(),r=this._getWindow();n.removeEventListener("keydown",this._documentKeydownListener,F),n.removeEventListener("mousedown",this._documentMousedownListener,F),n.removeEventListener("touchstart",this._documentTouchstartListener,F),r.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}},{key:"_originChanged",value:function(t,e,i){this._setClasses(t,e),this._emitOrigin(i.subject,e),this._lastFocusOrigin=e}},{key:"_getClosestElementsInfo",value:function(t){var e=[];return this._elementInfo.forEach(function(i,n){(n===t||i.checkChildren&&n.contains(t))&&e.push([n,i])}),e}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(r.R0b),r.LFG(g.t4),r.LFG(n.K0,8),r.LFG(B,8))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(r.R0b),r.LFG(g.t4),r.LFG(n.K0,8),r.LFG(B,8))},token:t,providedIn:"root"}),t}();function U(t){return t.composedPath?t.composedPath()[0]:t.target}var q=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this._elementRef=e,this._focusMonitor=i,this.cdkFocusChange=new r.vpe}return _createClass(t,[{key:"ngAfterViewInit",value:function(){var t=this,e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(e){return t.cdkFocusChange.emit(e)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(H))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t}(),G=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this._platform=e,this._document=i}return _createClass(t,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);var e=this._document.defaultView||window,i=e&&e.getComputedStyle?e.getComputedStyle(t):null,n=(i&&i.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),n){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black"),this._hasCheckedHighContrastMode=!0;var e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(g.t4),r.LFG(n.K0))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(g.t4),r.LFG(n.K0))},token:t,providedIn:"root"}),t}(),j=function(){var t=function t(e){_classCallCheck(this,t),e._applyBodyHighContrastModeCssClasses()};return t.\u0275fac=function(e){return new(e||t)(r.LFG(G))},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[g.ud,m.Q8]]}),t}()},22526:function(t,e,i){"use strict";i.d(e,{vT:function(){return s},Is:function(){return a}});var n=i(31572),r=i(61511),o=new n.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,n.f3M)(r.K0)}}),a=function(){var t=function(){function t(e){if(_classCallCheck(this,t),this.value="ltr",this.change=new n.vpe,e){var i=e.documentElement?e.documentElement.dir:null,r=(e.body?e.body.dir:null)||i;this.value="ltr"===r||"rtl"===r?r:"ltr"}}return _createClass(t,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.LFG(o,8))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(o,8))},token:t,providedIn:"root"}),t}(),s=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t}()},81391:function(t,e,i){"use strict";i.d(e,{i3:function(){return c},TU:function(){return a},Iq:function(){return u}});var n=i(61511),r=i(31572),o=function(){function t(e,i){_classCallCheck(this,t),this._document=i;var n=this._textarea=this._document.createElement("textarea"),r=n.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",n.setAttribute("aria-hidden","true"),n.value=e,this._document.body.appendChild(n)}return _createClass(t,[{key:"copy",value:function(){var t=this._textarea,e=!1;try{if(t){var i=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch(n){}return e}},{key:"destroy",value:function(){var t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}]),t}(),a=function(){var t=function(){function t(e){_classCallCheck(this,t),this._document=e}return _createClass(t,[{key:"copy",value:function(t){var e=this.beginCopy(t),i=e.copy();return e.destroy(),i}},{key:"beginCopy",value:function(t){return new o(t,this._document)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.K0))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(n.K0))},token:t,providedIn:"root"}),t}(),s=new r.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG"),c=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this._clipboard=e,this._ngZone=i,this.text="",this.attempts=1,this.copied=new r.vpe,this._pending=new Set,n&&null!=n.attempts&&(this.attempts=n.attempts)}return _createClass(t,[{key:"copy",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.attempts;if(e>1){var i=e,n=this._clipboard.beginCopy(this.text);this._pending.add(n);var r=function e(){var r=n.copy();r||!--i||t._destroyed?(t._currentTimeout=null,t._pending.delete(n),n.destroy(),t.copied.emit(r)):t._currentTimeout=t._ngZone.runOutsideAngular(function(){return setTimeout(e,1)})};r()}else this.copied.emit(this._clipboard.copy(this.text))}},{key:"ngOnDestroy",value:function(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(function(t){return t.destroy()}),this._pending.clear(),this._destroyed=!0}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(a),r.Y36(r.R0b),r.Y36(s,8))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(t,e){1&t&&r.NdJ("click",function(){return e.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),t}(),u=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t}()},19861:function(t,e,i){"use strict";i.d(e,{t6:function(){return a},Eq:function(){return s},Ig:function(){return r},HM:function(){return c},fI:function(){return u},su:function(){return o},du:function(){return l}});var n=i(31572);function r(t){return null!=t&&"false"!="".concat(t)}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return a(t)?Number(t):e}function a(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function s(t){return Array.isArray(t)?t:[t]}function c(t){return null==t?"":"string"==typeof t?t:"".concat(t,"px")}function u(t){return t instanceof n.SBq?t.nativeElement:t}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\s+/,i=[];if(null!=t){var n,r=Array.isArray(t)?t:"".concat(t).split(e),o=_createForOfIteratorHelper(r);try{for(o.s();!(n=o.n()).done;){var a=n.value,s="".concat(a).trim();s&&i.push(s)}}catch(c){o.e(c)}finally{o.f()}}return i}},4230:function(t,e,i){"use strict";i.d(e,{P3:function(){return u},o2:function(){return s},Ov:function(){return d},A8:function(){return f},yy:function(){return l},eX:function(){return h},k:function(){return p},Z9:function(){return c}});var n=i(4710),r=i(40878),o=i(55959),a=i(31572),s=function t(){_classCallCheck(this,t)};function c(t){return t&&"function"==typeof t.connect}var u=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this))._data=t,n}return _createClass(i,[{key:"connect",value:function(){return(0,n.b)(this._data)?this._data:(0,r.of)(this._data)}},{key:"disconnect",value:function(){}}]),i}(s),l=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"applyChanges",value:function(t,e,i,n,r){t.forEachOperation(function(t,n,o){var a,s;if(null==t.previousIndex){var c=i(t,n,o);a=e.createEmbeddedView(c.templateRef,c.context,c.index),s=1}else null==o?(e.remove(n),s=3):(a=e.get(n),e.move(a,o),s=2);r&&r({context:null==a?void 0:a.context,operation:s,record:t})})}},{key:"detach",value:function(){}}]),t}(),h=function(){function t(){_classCallCheck(this,t),this.viewCacheSize=20,this._viewCache=[]}return _createClass(t,[{key:"applyChanges",value:function(t,e,i,n,r){var o=this;t.forEachOperation(function(t,a,s){var c,u;null==t.previousIndex?u=(c=o._insertView(function(){return i(t,a,s)},s,e,n(t)))?1:0:null==s?(o._detachAndCacheView(a,e),u=3):(c=o._moveView(a,s,e,n(t)),u=2),r&&r({context:null==c?void 0:c.context,operation:u,record:t})})}},{key:"detach",value:function(){var t,e=_createForOfIteratorHelper(this._viewCache);try{for(e.s();!(t=e.n()).done;){t.value.destroy()}}catch(i){e.e(i)}finally{e.f()}this._viewCache=[]}},{key:"_insertView",value:function(t,e,i,n){var r=this._insertViewFromCache(e,i);if(!r){var o=t();return i.createEmbeddedView(o.templateRef,o.context,o.index)}r.context.$implicit=n}},{key:"_detachAndCacheView",value:function(t,e){var i=e.detach(t);this._maybeCacheView(i,e)}},{key:"_moveView",value:function(t,e,i,n){var r=i.get(t);return i.move(r,e),r.context.$implicit=n,r}},{key:"_maybeCacheView",value:function(t,e){if(this._viewCache.length0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];_classCallCheck(this,t),this._multiple=i,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new o.xQ,n&&n.length&&(i?n.forEach(function(t){return e._markSelected(t)}):this._markSelected(n[0]),this._selectedToEmit.length=0)}return _createClass(t,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var t=this,e=arguments.length,i=new Array(e),n=0;n-1?1:1e3;return parseFloat(t)*e}function E(t,e){return t.getPropertyValue(e).split(",").map(function(t){return t.trim()})}function S(t){var e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function I(t,e,i){var n=t.top,r=t.bottom,o=t.left,a=t.right;return i>=n&&i<=r&&e>=o&&e<=a}function R(t,e,i){t.top+=e,t.bottom=t.top+t.height,t.left+=i,t.right=t.left+t.width}function x(t,e,i,n){var r=t.top,o=t.right,a=t.bottom,s=t.left,c=t.width*e,u=t.height*e;return n>r-u&&ns-c&&i=s._config.dragStartThreshold){var r=Date.now()>=s._dragStartTime+s._getDragStartDelay(t),o=s._dropContainer;if(!r)return void s._endDragSequence(t);o&&(o.isDragging()||o.isReceiving())||(t.preventDefault(),s._hasStartedDragging=!0,s._ngZone.run(function(){return s._startDragSequence(t)}))}},this._pointerUp=function(t){s._endDragSequence(t)},this.withRootElement(e).withParent(i.parentDragRef||null),this._parentPositions=new O(n,o),a.registerDragItem(this)}return _createClass(t,[{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(t){var e=(0,s.Ig)(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(function(t){return A(t,e)}))}},{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(t){var e=this;this._handles=t.map(function(t){return(0,s.fI)(t)}),this._handles.forEach(function(t){return A(t,e.disabled)}),this._toggleNativeDragInteractions();var i=new Set;return this._disabledHandles.forEach(function(t){e._handles.indexOf(t)>-1&&i.add(t)}),this._disabledHandles=i,this}},{key:"withPreviewTemplate",value:function(t){return this._previewTemplate=t,this}},{key:"withPlaceholderTemplate",value:function(t){return this._placeholderTemplate=t,this}},{key:"withRootElement",value:function(t){var e=this,i=(0,s.fI)(t);return i!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(function(){i.addEventListener("mousedown",e._pointerDown,Z),i.addEventListener("touchstart",e._pointerDown,z)}),this._initialTransform=void 0,this._rootElement=i),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}},{key:"withBoundaryElement",value:function(t){var e=this;return this._boundaryElement=t?(0,s.fI)(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(function(){return e._containInsideBoundaryOnResize()})),this}},{key:"withParent",value:function(t){return this._parentDragRef=t,this}},{key:"dispose",value:function(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&U(this._rootElement),U(this._anchor),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}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),A(t,!0))}},{key:"enableHandle",value:function(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),A(t,this.disabled))}},{key:"withDirection",value:function(t){return this._direction=t,this}},{key:"_withDropContainer",value:function(t){this._dropContainer=t}},{key:"getFreeDragPosition",value:function(){var t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}},{key:"setFreeDragPosition",value:function(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}},{key:"withPreviewContainer",value:function(t){return this._previewContainer=t,this}},{key:"_sortFromLastPointerPosition",value:function(){var t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){this._preview&&U(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&U(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(t){var e=this;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}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(function(){e._cleanupDragArtifacts(t),e._cleanupCachedDimensions(),e._dragDropRegistry.stopDragging(e)});else{this._passiveTransform.x=this._activeTransform.x;var i=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(function(){e.ended.next({source:e,distance:e._getDragDistance(i),dropPoint:i})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}},{key:"_startDragSequence",value:function(t){q(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();var e=this._dropContainer;if(e){var i=this._rootElement,n=i.parentNode,r=this._placeholder=this._createPlaceholderElement(),o=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();n.insertBefore(o,i),this._initialTransform=i.style.transform||"",this._preview=this._createPreviewElement(),k(i,!1),this._document.body.appendChild(n.replaceChild(r,i)),this._getPreviewInsertionPoint(n,a).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}},{key:"_initializeDragSequence",value:function(t,e){var i=this;this._parentDragRef&&e.stopPropagation();var n=this.isDragging(),r=q(e),o=!r&&0!==e.button,a=this._rootElement,s=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),!(n||o||s)){this._handles.length&&(this._rootElementTapHighlight=a.style.webkitTapHighlightColor||"",a.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(function(t){i._updateOnScroll(t)}),this._boundaryElement&&(this._boundaryRect=S(this._boundaryElement));var c=this._previewTemplate;this._pickupPositionInElement=c&&c.template&&!c.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);var 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)}}},{key:"_cleanupDragArtifacts",value:function(t){var e=this;k(this._rootElement,!0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(function(){var i=e._dropContainer,n=i.getItemIndex(e),r=e._getPointerPositionOnPage(t),o=e._getDragDistance(r),a=i._isOverContainer(r.x,r.y);e.ended.next({source:e,distance:o,dropPoint:r}),e.dropped.next({item:e,currentIndex:n,previousIndex:e._initialIndex,container:i,previousContainer:e._initialContainer,isPointerOverContainer:a,distance:o,dropPoint:r}),i.drop(e,n,e._initialIndex,e._initialContainer,a,o,r),e._dropContainer=e._initialContainer})}},{key:"_updateActiveDropContainer",value:function(t,e){var i=this,n=t.x,r=t.y,o=e.x,a=e.y,s=this._initialContainer._getSiblingContainerFromPosition(this,n,r);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(n,r)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(function(){i.exited.next({item:i,container:i._dropContainer}),i._dropContainer.exit(i),i._dropContainer=s,i._dropContainer.enter(i,n,r,s===i._initialContainer&&s.sortingDisabled?i._initialIndex:void 0),i.entered.next({item:i,container:s,currentIndex:s.getItemIndex(i)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(o,a),this._dropContainer._sortItem(this,n,r,this._pointerDirectionDelta),this._applyPreviewTransform(n-this._pickupPositionInElement.x,r-this._pickupPositionInElement.y))}},{key:"_createPreviewElement",value:function(){var t,e=this._previewTemplate,i=this.previewClass,n=e?e.template:null;if(n&&e){var r=e.matchSize?this._rootElement.getBoundingClientRect():null,o=e.viewContainer.createEmbeddedView(n,e.context);o.detectChanges(),t=G(o,this._document),this._previewRef=o,e.matchSize?j(t,r):t.style.transform=F(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var a=this._rootElement;j(t=P(a),a.getBoundingClientRect()),this._initialTransform&&(t.style.transform=this._initialTransform)}return w(t.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:"".concat(this._config.zIndex||1e3)}),A(t,!1),t.classList.add("cdk-drag-preview"),t.setAttribute("dir",this._direction),i&&(Array.isArray(i)?i.forEach(function(e){return t.classList.add(e)}):t.classList.add(i)),t}},{key:"_animatePreviewToPlaceholder",value:function(){var t=this;if(!this._hasMoved)return Promise.resolve();var e=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(e.left,e.top);var i=function(t){var e=getComputedStyle(t),i=E(e,"transition-property"),n=i.find(function(t){return"transform"===t||"all"===t});if(!n)return 0;var r=i.indexOf(n),o=E(e,"transition-duration"),a=E(e,"transition-delay");return T(o[r])+T(a[r])}(this._preview);return 0===i?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(e){var n=function i(n){(!n||n.target===t._preview&&"transform"===n.propertyName)&&(t._preview.removeEventListener("transitionend",i),e(),clearTimeout(r))},r=setTimeout(n,1.5*i);t._preview.addEventListener("transitionend",n)})})}},{key:"_createPlaceholderElement",value:function(){var t,e=this._placeholderTemplate,i=e?e.template:null;return i?(this._placeholderRef=e.viewContainer.createEmbeddedView(i,e.context),this._placeholderRef.detectChanges(),t=G(this._placeholderRef,this._document)):t=P(this._rootElement),t.classList.add("cdk-drag-placeholder"),t}},{key:"_getPointerPositionInElement",value:function(t,e){var i=this._rootElement.getBoundingClientRect(),n=t===this._rootElement?null:t,r=n?n.getBoundingClientRect():i,o=q(e)?e.targetTouches[0]:e,a=this._getViewportScrollPosition();return{x:r.left-i.left+(o.pageX-r.left-a.left),y:r.top-i.top+(o.pageY-r.top-a.top)}}},{key:"_getPointerPositionOnPage",value:function(t){var e=this._getViewportScrollPosition(),i=q(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,n=i.pageX-e.left,r=i.pageY-e.top;if(this._ownerSVGElement){var o=this._ownerSVGElement.getScreenCTM();if(o){var a=this._ownerSVGElement.createSVGPoint();return a.x=n,a.y=r,a.matrixTransform(o.inverse())}}return{x:n,y:r}}},{key:"_getConstrainedPointerPosition",value:function(t){var e=this._dropContainer?this._dropContainer.lockAxis:null,i=this.constrainPosition?this.constrainPosition(t,this):t,n=i.x,r=i.y;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==e||(n=this._pickupPositionOnPage.x),this._boundaryRect){var o=this._pickupPositionInElement,a=o.x,s=o.y,c=this._boundaryRect,u=this._previewRect,l=c.top+s,h=c.bottom-(u.height-s);n=H(n,c.left+a,c.right-(u.width-a)),r=H(r,l,h)}return{x:n,y:r}}},{key:"_updatePointerDirectionDelta",value:function(t){var e=t.x,i=t.y,n=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,o=Math.abs(e-r.x),a=Math.abs(i-r.y);return o>this._config.pointerDirectionChangeThreshold&&(n.x=e>r.x?1:-1,r.x=e),a>this._config.pointerDirectionChangeThreshold&&(n.y=i>r.y?1:-1,r.y=i),n}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,A(this._rootElement,t))}}},{key:"_removeRootElementListeners",value:function(t){t.removeEventListener("mousedown",this._pointerDown,Z),t.removeEventListener("touchstart",this._pointerDown,z)}},{key:"_applyRootElementTransform",value:function(t,e){var i=F(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=C(i,this._initialTransform)}},{key:"_applyPreviewTransform",value:function(t,e){var i,n=(null===(i=this._previewTemplate)||void 0===i?void 0:i.template)?void 0:this._initialTransform,r=F(t,e);this._preview.style.transform=C(r,n)}},{key:"_getDragDistance",value:function(t){var e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}},{key:"_containInsideBoundaryOnResize",value:function(){var t=this._passiveTransform,e=t.x,i=t.y;if(!(0===e&&0===i||this.isDragging())&&this._boundaryElement){var n=this._boundaryElement.getBoundingClientRect(),r=this._rootElement.getBoundingClientRect();if(!(0===n.width&&0===n.height||0===r.width&&0===r.height)){var o=n.left-r.left,a=r.right-n.right,s=n.top-r.top,c=r.bottom-n.bottom;n.width>r.width?(o>0&&(e+=o),a>0&&(e-=a)):e=0,n.height>r.height?(s>0&&(i+=s),c>0&&(i-=c)):i=0,e===this._passiveTransform.x&&i===this._passiveTransform.y||this.setFreeDragPosition({y:i,x:e})}}}},{key:"_getDragStartDelay",value:function(t){var e=this.dragStartDelay;return"number"==typeof e?e:q(t)?e.touch:e?e.mouse:0}},{key:"_updateOnScroll",value:function(t){var e=this._parentPositions.handleScroll(t);if(e){var i=t.target;this._boundaryRect&&(i===this._document||i!==this._boundaryElement&&i.contains(this._boundaryElement))&&R(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))}}},{key:"_getViewportScrollPosition",value:function(){var t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}},{key:"_getShadowRoot",value:function(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,a.kV)(this._rootElement)),this._cachedShadowRoot}},{key:"_getPreviewInsertionPoint",value:function(t,e){var i=this._previewContainer||"global";if("parent"===i)return t;if("global"===i){var n=this._document;return e||n.fullscreenElement||n.webkitFullscreenElement||n.mozFullScreenElement||n.msFullscreenElement||n.body}return(0,s.fI)(i)}}]),t}();function F(t,e){return"translate3d(".concat(Math.round(t),"px, ").concat(Math.round(e),"px, 0)")}function H(t,e,i){return Math.max(e,Math.min(i,t))}function U(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function q(t){return"t"===t.type[0]}function G(t,e){var i=t.rootNodes;if(1===i.length&&i[0].nodeType===e.ELEMENT_NODE)return i[0];var n=e.createElement("div");return i.forEach(function(t){return n.appendChild(t)}),n}function j(t,e){t.style.width="".concat(e.width,"px"),t.style.height="".concat(e.height,"px"),t.style.transform=F(e.left,e.top)}function Y(t,e,i){var n=K(e,t.length-1),r=K(i,t.length-1);if(n!==r){for(var o=t[n],a=r-1&&o.splice(a,1),u&&!this._dragDropRegistry.isDragging(u)){var l=u.getRootElement();l.parentElement.insertBefore(c,l),o.splice(r,0,t)}else if(this._shouldEnterAsFirstChild(e,i)){var h=o[0].getRootElement();h.parentNode.insertBefore(c,h),o.unshift(t)}else(0,s.fI)(this.element).appendChild(c),o.push(t);c.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}},{key:"exit",value:function(t){this._reset(),this.exited.next({item:t,container:this})}},{key:"drop",value:function(t,e,i,n,r,o,a){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:n,isPointerOverContainer:r,distance:o,dropPoint:a})}},{key:"withItems",value:function(t){var e=this,i=this._draggables;return this._draggables=t,t.forEach(function(t){return t._withDropContainer(e)}),this.isDragging()&&(i.filter(function(t){return t.isDragging()}).every(function(e){return-1===t.indexOf(e)})?this._reset():this._cacheItems()),this}},{key:"withDirection",value:function(t){return this._direction=t,this}},{key:"connectedTo",value:function(t){return this._siblings=t.slice(),this}},{key:"withOrientation",value:function(t){return this._orientation=t,this}},{key:"withScrollableParents",value:function(t){var e=(0,s.fI)(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e].concat(_toConsumableArray(t)):t.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(t){return this._isDragging?J("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,function(e){return e.drag===t}):this._draggables.indexOf(t)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(t,e,i,n){if(!this.sortingDisabled&&this._clientRect&&x(this._clientRect,.05,e,i)){var r=this._itemPositions,o=this._getItemIndexFromPointerPosition(t,e,i,n);if(!(-1===o&&r.length>0)){var a="horizontal"===this._orientation,s=J(r,function(e){return e.drag===t}),c=r[o],u=c.clientRect,l=s>o?1:-1,h=this._getItemOffsetPx(r[s].clientRect,u,l),d=this._getSiblingOffsetPx(s,r,l),f=r.slice();Y(r,s,o),this.sorted.next({previousIndex:s,currentIndex:o,container:this,item:t}),r.forEach(function(e,i){if(f[i]!==e){var n=e.drag===t,r=n?h:d,o=n?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=r,a?(o.style.transform=C("translate3d(".concat(Math.round(e.offset),"px, 0, 0)"),e.initialTransform),R(e.clientRect,0,r)):(o.style.transform=C("translate3d(0, ".concat(Math.round(e.offset),"px, 0)"),e.initialTransform),R(e.clientRect,r,0))}}),this._previousSwap.overlaps=I(u,e,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=a?n.x:n.y}}}},{key:"_startScrollingIfNecessary",value:function(t,e){var i=this;if(!this.autoScrollDisabled){var n,r=0,o=0;if(this._parentPositions.positions.forEach(function(a,s){var c;s!==i._document&&a.clientRect&&!n&&x(a.clientRect,.05,t,e)&&(c=_slicedToArray(function(t,e,i,n){var r=X(e,n),o=$(e,i),a=0,s=0;if(r){var c=t.scrollTop;1===r?c>0&&(a=1):t.scrollHeight-c>t.clientHeight&&(a=2)}if(o){var u=t.scrollLeft;1===o?u>0&&(s=1):t.scrollWidth-u>t.clientWidth&&(s=2)}return[a,s]}(s,a.clientRect,t,e),2),r=c[0],o=c[1],(r||o)&&(n=s))}),!r&&!o){var a=this._viewportRuler.getViewportSize(),s=a.width,c=a.height,u={width:s,height:c,top:0,right:s,bottom:c,left:0};r=X(u,e),o=$(u,t),n=window}!n||r===this._verticalScrollDirection&&o===this._horizontalScrollDirection&&n===this._scrollNode||(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=n,(r||o)&&n?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_draggingStarted",value:function(){var t=(0,s.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"_cacheParentPositions",value:function(){var t=(0,s.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}},{key:"_cacheItemPositions",value:function(){var t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(function(t){var e=t.getVisibleElement();return{drag:t,offset:0,initialTransform:e.style.transform||"",clientRect:S(e)}}).sort(function(e,i){return t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top})}},{key:"_reset",value:function(){var t=this;this._isDragging=!1;var e=(0,s.fI)(this.element).style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(function(e){var i,n=e.getRootElement();if(n){var r=null===(i=t._itemPositions.find(function(t){return t.drag===e}))||void 0===i?void 0:i.initialTransform;n.style.transform=r||""}}),this._siblings.forEach(function(e){return e._stopReceiving(t)}),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_getSiblingOffsetPx",value:function(t,e,i){var n="horizontal"===this._orientation,r=e[t].clientRect,o=e[t+-1*i],a=r[n?"width":"height"]*i;if(o){var s=n?"left":"top",c=n?"right":"bottom";-1===i?a-=o.clientRect[s]-r[c]:a+=r[s]-o.clientRect[c]}return a}},{key:"_getItemOffsetPx",value:function(t,e,i){var n="horizontal"===this._orientation,r=n?e.left-t.left:e.top-t.top;return-1===i&&(r+=n?e.width-t.width:e.height-t.height),r}},{key:"_shouldEnterAsFirstChild",value:function(t,e){if(!this._activeDraggables.length)return!1;var i=this._itemPositions,n="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){var r=i[i.length-1].clientRect;return n?t>=r.right:e>=r.bottom}var o=i[0].clientRect;return n?t<=o.left:e<=o.top}},{key:"_getItemIndexFromPointerPosition",value:function(t,e,i,n){var r=this,o="horizontal"===this._orientation,a=J(this._itemPositions,function(a,s,c){var u=a.drag,l=a.clientRect;if(u===t)return c.length<2;if(n){var h=o?n.x:n.y;if(u===r._previousSwap.drag&&r._previousSwap.overlaps&&h===r._previousSwap.delta)return!1}return o?e>=Math.floor(l.left)&&e=Math.floor(l.top)&&i-1})&&(n.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var t=this;this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(function(e){if(t.isDragging()){var i=t._parentPositions.handleScroll(e);i&&(t._itemPositions.forEach(function(t){R(t.clientRect,i.top,i.left)}),t._itemPositions.forEach(function(e){var i=e.drag;t._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()}))}else t.isReceiving()&&t._cacheParentPositions()})}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var t=(0,a.kV)((0,s.fI)(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}},{key:"_notifyReceivingSiblings",value:function(){var t=this,e=this._activeDraggables.filter(function(t){return t.isDragging()});this._siblings.forEach(function(i){return i._startReceiving(t,e)})}}]),t}();function J(t,e){for(var i=0;i=i-r&&e<=i+r?1:e>=n-r&&e<=n+r?2:0}function $(t,e){var i=t.left,n=t.right,r=.05*t.width;return e>=i-r&&e<=i+r?1:e>=n-r&&e<=n+r?2:0}var tt=(0,a.i$)({passive:!1,capture:!0}),et=function(){var t=function(){function t(e,i){var n=this;_classCallCheck(this,t),this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=function(t){return t.isDragging()},this.pointerMove=new c.xQ,this.pointerUp=new c.xQ,this.scroll=new c.xQ,this._preventDefaultWhileDragging=function(t){n._activeDragInstances.length>0&&t.preventDefault()},this._persistentTouchmoveListener=function(t){n._activeDragInstances.length>0&&(n._activeDragInstances.some(n._draggingPredicate)&&t.preventDefault(),n.pointerMove.next(t))},this._document=i}return _createClass(t,[{key:"registerDropContainer",value:function(t){this._dropInstances.has(t)||this._dropInstances.add(t)}},{key:"registerDragItem",value:function(t){var e=this;this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(function(){e._document.addEventListener("touchmove",e._persistentTouchmoveListener,tt)})}},{key:"removeDropContainer",value:function(t){this._dropInstances.delete(t)}},{key:"removeDragItem",value:function(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,tt)}},{key:"startDragging",value:function(t,e){var i=this;if(!(this._activeDragInstances.indexOf(t)>-1)&&(this._activeDragInstances.push(t),1===this._activeDragInstances.length)){var n=e.type.startsWith("touch");this._globalListeners.set(n?"touchend":"mouseup",{handler:function(t){return i.pointerUp.next(t)},options:!0}).set("scroll",{handler:function(t){return i.scroll.next(t)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:tt}),n||this._globalListeners.set("mousemove",{handler:function(t){return i.pointerMove.next(t)},options:tt}),this._ngZone.runOutsideAngular(function(){i._globalListeners.forEach(function(t,e){i._document.addEventListener(e,t.handler,t.options)})})}}},{key:"stopDragging",value:function(t){var e=this._activeDragInstances.indexOf(t);e>-1&&(this._activeDragInstances.splice(e,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}},{key:"isDragging",value:function(t){return this._activeDragInstances.indexOf(t)>-1}},{key:"ngOnDestroy",value:function(){var t=this;this._dragInstances.forEach(function(e){return t.removeDragItem(e)}),this._dropInstances.forEach(function(e){return t.removeDropContainer(e)}),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var t=this;this._globalListeners.forEach(function(e,i){t._document.removeEventListener(i,e.handler,e.options)}),this._globalListeners.clear()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.R0b),n.LFG(r.K0))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(n.R0b),n.LFG(r.K0))},token:t,providedIn:"root"}),t}(),it={dragStartThreshold:5,pointerDirectionChangeThreshold:5},nt=function(){var t=function(){function t(e,i,n,r){_classCallCheck(this,t),this._document=e,this._ngZone=i,this._viewportRuler=n,this._dragDropRegistry=r}return _createClass(t,[{key:"createDrag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:it;return new B(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(t){return new V(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.LFG(r.K0),n.LFG(n.R0b),n.LFG(o.rL),n.LFG(et))},t.\u0275prov=n.Yz7({factory:function(){return new t(n.LFG(r.K0),n.LFG(n.R0b),n.LFG(o.rL),n.LFG(et))},token:t,providedIn:"root"}),t}(),rt=new n.OlP("CDK_DRAG_PARENT"),ot=new n.OlP("CdkDropListGroup"),at=new n.OlP("CDK_DRAG_CONFIG"),st=0,ct=new n.OlP("CdkDropList"),ut=function(){var t=function(){function t(e,i,r,o,a,s,u){var l=this;_classCallCheck(this,t),this.element=e,this._changeDetectorRef=r,this._scrollDispatcher=o,this._dir=a,this._group=s,this._destroyed=new c.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+st++,this.enterPredicate=function(){return!0},this.sortPredicate=function(){return!0},this.dropped=new n.vpe,this.entered=new n.vpe,this.exited=new n.vpe,this.sorted=new n.vpe,this._unsortedItems=new Set,this._dropListRef=i.createDropList(e),this._dropListRef.data=this,u&&this._assignDefaults(u),this._dropListRef.enterPredicate=function(t,e){return l.enterPredicate(t.data,e.data)},this._dropListRef.sortPredicate=function(t,e,i){return l.sortPredicate(t,e.data,i.data)},this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),s&&s._items.add(this)}return _createClass(t,[{key:"disabled",get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(t){this._dropListRef.disabled=this._disabled=(0,s.Ig)(t)}},{key:"addItem",value:function(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"removeItem",value:function(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"getSortedItems",value:function(){return Array.from(this._unsortedItems).sort(function(t,e){return t._dragRef.getVisibleElement().compareDocumentPosition(e._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1})}},{key:"ngOnDestroy",value:function(){var e=t._dropLists.indexOf(this);e>-1&&t._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}},{key:"_setupInputSyncSubscription",value:function(e){var i=this;this._dir&&this._dir.change.pipe((0,g.O)(this._dir.value),(0,p.R)(this._destroyed)).subscribe(function(t){return e.withDirection(t)}),e.beforeStarted.subscribe(function(){var n=(0,s.Eq)(i.connectedTo).map(function(e){return"string"==typeof e?t._dropLists.find(function(t){return t.id===e}):e});if(i._group&&i._group._items.forEach(function(t){-1===n.indexOf(t)&&n.push(t)}),!i._scrollableParentsResolved){var r=i._scrollDispatcher.getAncestorScrollContainers(i.element).map(function(t){return t.getElementRef().nativeElement});i._dropListRef.withScrollableParents(r),i._scrollableParentsResolved=!0}e.disabled=i.disabled,e.lockAxis=i.lockAxis,e.sortingDisabled=(0,s.Ig)(i.sortingDisabled),e.autoScrollDisabled=(0,s.Ig)(i.autoScrollDisabled),e.autoScrollStep=(0,s.su)(i.autoScrollStep,2),e.connectedTo(n.filter(function(t){return t&&t!==i}).map(function(t){return t._dropListRef})).withOrientation(i.orientation)})}},{key:"_handleEvents",value:function(t){var e=this;t.beforeStarted.subscribe(function(){e._syncItemsWithRef(),e._changeDetectorRef.markForCheck()}),t.entered.subscribe(function(t){e.entered.emit({container:e,item:t.item.data,currentIndex:t.currentIndex})}),t.exited.subscribe(function(t){e.exited.emit({container:e,item:t.item.data}),e._changeDetectorRef.markForCheck()}),t.sorted.subscribe(function(t){e.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:e,item:t.item.data})}),t.dropped.subscribe(function(t){e.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}),e._changeDetectorRef.markForCheck()})}},{key:"_assignDefaults",value:function(t){var e=t.lockAxis,i=t.draggingDisabled,n=t.sortingDisabled,r=t.listAutoScrollDisabled,o=t.listOrientation;this.disabled=null!=i&&i,this.sortingDisabled=null!=n&&n,this.autoScrollDisabled=null!=r&&r,this.orientation=o||"vertical",e&&(this.lockAxis=e)}},{key:"_syncItemsWithRef",value:function(){this._dropListRef.withItems(this.getSortedItems().map(function(t){return t._dragRef}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(nt),n.Y36(n.sBO),n.Y36(o.mF),n.Y36(b.Is,8),n.Y36(ot,12),n.Y36(at,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,e){2&t&&(n.uIk("id",e.id),n.ekj("cdk-drop-list-disabled",e.disabled)("cdk-drop-list-dragging",e._dropListRef.isDragging())("cdk-drop-list-receiving",e._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[n._Bn([{provide:ot,useValue:void 0},{provide:ct,useExisting:t}])]}),t._dropLists=[],t}(),lt=new n.OlP("CdkDragHandle"),ht=new n.OlP("CdkDragPlaceholder"),dt=new n.OlP("CdkDragPreview"),ft=function(){var t=function(){function t(e,i,r,o,a,s,u,l,h,f,p){var g=this;_classCallCheck(this,t),this.element=e,this.dropContainer=i,this._ngZone=o,this._viewContainerRef=a,this._dir=u,this._changeDetectorRef=h,this._selfHandle=f,this._parentDrag=p,this._destroyed=new c.xQ,this.started=new n.vpe,this.released=new n.vpe,this.ended=new n.vpe,this.entered=new n.vpe,this.exited=new n.vpe,this.dropped=new n.vpe,this.moved=new d.y(function(t){var e=g._dragRef.moved.pipe((0,m.U)(function(t){return{source:g,pointerPosition:t.pointerPosition,event:t.event,delta:t.delta,distance:t.distance}})).subscribe(t);return function(){e.unsubscribe()}}),this._dragRef=l.createDrag(e,{dragStartThreshold:s&&null!=s.dragStartThreshold?s.dragStartThreshold:5,pointerDirectionChangeThreshold:s&&null!=s.pointerDirectionChangeThreshold?s.pointerDirectionChangeThreshold:5,zIndex:null==s?void 0:s.zIndex}),this._dragRef.data=this,t._dragInstances.push(this),s&&this._assignDefaults(s),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}return _createClass(t,[{key:"disabled",get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(t){this._disabled=(0,s.Ig)(t),this._dragRef.disabled=this._disabled}},{key:"getPlaceholderElement",value:function(){return this._dragRef.getPlaceholderElement()}},{key:"getRootElement",value:function(){return this._dragRef.getRootElement()}},{key:"reset",value:function(){this._dragRef.reset()}},{key:"getFreeDragPosition",value:function(){return this._dragRef.getFreeDragPosition()}},{key:"ngAfterViewInit",value:function(){var t=this;this._ngZone.onStable.pipe((0,v.q)(1),(0,p.R)(this._destroyed)).subscribe(function(){t._updateRootElement(),t._handles.changes.pipe((0,g.O)(t._handles),(0,y.b)(function(e){var i=e.filter(function(e){return e._parentDrag===t}).map(function(t){return t.element});t._selfHandle&&t.rootElementSelector&&i.push(t.element),t._dragRef.withHandles(i)}),(0,_.w)(function(t){return f.T.apply(void 0,_toConsumableArray(t.map(function(t){return t._stateChanges.pipe((0,g.O)(t))})))}),(0,p.R)(t._destroyed)).subscribe(function(e){var i=t._dragRef,n=e.element.nativeElement;e.disabled?i.disableHandle(n):i.enableHandle(n)}),t.freeDragPosition&&t._dragRef.setFreeDragPosition(t.freeDragPosition)})}},{key:"ngOnChanges",value:function(t){var e=t.rootElementSelector,i=t.freeDragPosition;e&&!e.firstChange&&this._updateRootElement(),i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}},{key:"ngOnDestroy",value:function(){this.dropContainer&&this.dropContainer.removeItem(this);var e=t._dragInstances.indexOf(this);e>-1&&t._dragInstances.splice(e,1),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}},{key:"_updateRootElement",value:function(){var t=this.element.nativeElement,e=this.rootElementSelector?pt(t,this.rootElementSelector):t;this._dragRef.withRootElement(e||t)}},{key:"_getBoundaryElement",value:function(){var t=this.boundaryElement;return t?"string"==typeof t?pt(this.element.nativeElement,t):(0,s.fI)(t):null}},{key:"_syncInputs",value:function(e){var i=this;e.beforeStarted.subscribe(function(){if(!e.isDragging()){var t=i._dir,n=i.dragStartDelay,r=i._placeholderTemplate?{template:i._placeholderTemplate.templateRef,context:i._placeholderTemplate.data,viewContainer:i._viewContainerRef}:null,o=i._previewTemplate?{template:i._previewTemplate.templateRef,context:i._previewTemplate.data,matchSize:i._previewTemplate.matchSize,viewContainer:i._viewContainerRef}:null;e.disabled=i.disabled,e.lockAxis=i.lockAxis,e.dragStartDelay="object"==typeof n&&n?n:(0,s.su)(n),e.constrainPosition=i.constrainPosition,e.previewClass=i.previewClass,e.withBoundaryElement(i._getBoundaryElement()).withPlaceholderTemplate(r).withPreviewTemplate(o).withPreviewContainer(i.previewContainer||"global"),t&&e.withDirection(t.value)}}),e.beforeStarted.pipe((0,v.q)(1)).subscribe(function(){var n,r;if(i._parentDrag)e.withParent(i._parentDrag._dragRef);else for(var o=i.element.nativeElement.parentElement;o;){if(null===(n=o.classList)||void 0===n?void 0:n.contains("cdk-drag")){e.withParent((null===(r=t._dragInstances.find(function(t){return t.element.nativeElement===o}))||void 0===r?void 0:r._dragRef)||null);break}o=o.parentElement}})}},{key:"_handleEvents",value:function(t){var e=this;t.started.subscribe(function(){e.started.emit({source:e}),e._changeDetectorRef.markForCheck()}),t.released.subscribe(function(){e.released.emit({source:e})}),t.ended.subscribe(function(t){e.ended.emit({source:e,distance:t.distance,dropPoint:t.dropPoint}),e._changeDetectorRef.markForCheck()}),t.entered.subscribe(function(t){e.entered.emit({container:t.container.data,item:e,currentIndex:t.currentIndex})}),t.exited.subscribe(function(t){e.exited.emit({container:t.container.data,item:e})}),t.dropped.subscribe(function(t){e.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:e,distance:t.distance,dropPoint:t.dropPoint})})}},{key:"_assignDefaults",value:function(t){var e=t.lockAxis,i=t.dragStartDelay,n=t.constrainPosition,r=t.previewClass,o=t.boundaryElement,a=t.draggingDisabled,s=t.rootElementSelector,c=t.previewContainer;this.disabled=null!=a&&a,this.dragStartDelay=i||0,e&&(this.lockAxis=e),n&&(this.constrainPosition=n),r&&(this.previewClass=r),o&&(this.boundaryElement=o),s&&(this.rootElementSelector=s),c&&(this.previewContainer=c)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(ct,12),n.Y36(r.K0),n.Y36(n.R0b),n.Y36(n.s_b),n.Y36(at,8),n.Y36(b.Is,8),n.Y36(nt),n.Y36(n.sBO),n.Y36(lt,10),n.Y36(rt,12))},t.\u0275dir=n.lG2({type:t,selectors:[["","cdkDrag",""]],contentQueries:function(t,e,i){var r;(1&t&&(n.Suo(i,dt,5),n.Suo(i,ht,5),n.Suo(i,lt,5)),2&t)&&(n.iGM(r=n.CRH())&&(e._previewTemplate=r.first),n.iGM(r=n.CRH())&&(e._placeholderTemplate=r.first),n.iGM(r=n.CRH())&&(e._handles=r))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,e){2&t&&n.ekj("cdk-drag-disabled",e.disabled)("cdk-drag-dragging",e._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],previewContainer:["cdkDragPreviewContainer","previewContainer"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[n._Bn([{provide:rt,useExisting:t}]),n.TTD]}),t._dragInstances=[],t}();function pt(t,e){for(var i=t.parentElement;i;){if(i.matches?i.matches(e):i.msMatchesSelector(e))return i;i=i.parentElement}return null}var gt=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[nt],imports:[o.ZD]}),t}()},75842:function(t,e,i){"use strict";i.d(e,{A:function(){return _},ZH:function(){return n},OC:function(){return w},yY:function(){return m},JH:function(){return g},uR:function(){return l},K5:function(){return o},hY:function(){return a},Sd:function(){return h},oh:function(){return d},aO:function(){return y},VM:function(){return u},Ku:function(){return c},SV:function(){return p},L_:function(){return s},Mf:function(){return r},LH:function(){return f},Z:function(){return b},xE:function(){return v},Vb:function(){return A}});var n=8,r=9,o=13,a=27,s=32,c=33,u=34,l=35,h=36,d=37,f=38,p=39,g=40,m=46,v=48,y=57,_=65,b=90,w=188;function A(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;ne.height||t.scrollWidth>e.width}}]),t}(),w=function(){function t(e,i,n,r){var o=this;_classCallCheck(this,t),this._scrollDispatcher=e,this._ngZone=i,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return _createClass(t,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),A=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),t}();function k(t,e){return e.some(function(e){return t.bottome.bottom||t.righte.right})}function C(t,e){return e.some(function(e){return t.tope.bottom||t.lefte.right})}var T=function(){function t(e,i,n,r){_classCallCheck(this,t),this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=n,this._config=r,this._scrollSubscription=null}return _createClass(t,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var e=t._overlayRef.overlayElement.getBoundingClientRect(),i=t._viewportRuler.getViewportSize(),n=i.width,r=i.height;k(e,[{width:n,height:r,bottom:r,right:n,top:0,left:0}])&&(t.disable(),t._ngZone.run(function(){return t._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),E=function(){var t=function t(e,i,n,r){var o=this;_classCallCheck(this,t),this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=n,this.noop=function(){return new A},this.close=function(t){return new w(o._scrollDispatcher,o._ngZone,o._viewportRuler,t)},this.block=function(){return new b(o._viewportRuler,o._document)},this.reposition=function(t){return new T(o._scrollDispatcher,o._viewportRuler,o._ngZone,t)},this._document=r};return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.mF),r.LFG(n.rL),r.LFG(r.R0b),r.LFG(s.K0))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(n.mF),r.LFG(n.rL),r.LFG(r.R0b),r.LFG(s.K0))},token:t,providedIn:"root"}),t}(),S=function t(e){if(_classCallCheck(this,t),this.scrollStrategy=new A,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e)for(var i=0,n=Object.keys(e);i-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(s.K0))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(s.K0))},token:t,providedIn:"root"}),t}(),O=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this,t))._keydownListener=function(t){for(var e=n._attachedOverlays,i=e.length-1;i>-1;i--)if(e[i]._keydownEvents.observers.length>0){e[i]._keydownEvents.next(t);break}},n}return _createClass(i,[{key:"add",value:function(t){_get(_getPrototypeOf(i.prototype),"add",this).call(this,t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),i}(x);return t.\u0275fac=function(e){return new(e||t)(r.LFG(s.K0))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(s.K0))},token:t,providedIn:"root"}),t}(),P=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,t))._platform=n,r._cursorStyleIsSet=!1,r._clickListener=function(t){for(var e=t.composedPath?t.composedPath()[0]:t.target,i=r._attachedOverlays.slice(),n=i.length-1;n>-1;n--){var o=i[n];if(!(o._outsidePointerEvents.observers.length<1)&&o.hasAttached()){if(o.overlayElement.contains(e))break;o._outsidePointerEvents.next(t)}}},r}return _createClass(i,[{key:"add",value:function(t){if(_get(_getPrototypeOf(i.prototype),"add",this).call(this,t),!this._isAttached){var e=this._document.body;e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=e.style.cursor,e.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}]),i}(x);return t.\u0275fac=function(e){return new(e||t)(r.LFG(s.K0),r.LFG(o.t4))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(s.K0),r.LFG(o.t4))},token:t,providedIn:"root"}),t}(),D="undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha,M=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this._platform=i,this._document=e}return _createClass(t,[{key:"ngOnDestroy",value:function(){var t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){if(this._platform.isBrowser||D)for(var t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),e=0;ef&&(f=m,d=g)}}catch(v){p.e(v)}finally{p.f()}return this._isPushed=!1,void this._applyPosition(d.position,d.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(t.position,t.originPoint);this._applyPosition(t.position,t.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&Z(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}},{key:"withScrollableContainers",value:function(t){return this._scrollables=t,this}},{key:"withPositions",value:function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(t){return this._viewportMargin=t,this}},{key:"withFlexibleDimensions",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=t,this}},{key:"withGrowAfterOpen",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=t,this}},{key:"withPush",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=t,this}},{key:"withLockedPosition",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=t,this}},{key:"setOrigin",value:function(t){return this._origin=t,this}},{key:"withDefaultOffsetX",value:function(t){return this._offsetX=t,this}},{key:"withDefaultOffsetY",value:function(t){return this._offsetY=t,this}},{key:"withTransformOriginOn",value:function(t){return this._transformOriginSelector=t,this}},{key:"_getOriginPoint",value:function(t,e){var i;if("center"==e.originX)i=t.left+t.width/2;else{var n=this._isRtl()?t.right:t.left,r=this._isRtl()?t.left:t.right;i="start"==e.originX?n:r}return{x:i,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}}},{key:"_getOverlayPoint",value:function(t,e,i){var n,r;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+r}}},{key:"_getOverlayFit",value:function(t,e,i,n){var r=F(e),o=t.x,a=t.y,s=this._getOffset(n,"x"),c=this._getOffset(n,"y");s&&(o+=s),c&&(a+=c);var u=0-a,l=a+r.height-i.height,h=this._subtractOverflows(r.width,0-o,o+r.width-i.width),d=this._subtractOverflows(r.height,u,l),f=h*d;return{visibleArea:f,isCompletelyWithinViewport:r.width*r.height===f,fitsInViewportVertically:d===r.height,fitsInViewportHorizontally:h==r.width}}},{key:"_canFitWithFlexibleDimensions",value:function(t,e,i){if(this._hasFlexibleDimensions){var n=i.bottom-e.y,r=i.right-e.x,o=B(this._overlayRef.getConfig().minHeight),a=B(this._overlayRef.getConfig().minWidth),s=t.fitsInViewportHorizontally||null!=a&&a<=r;return(t.fitsInViewportVertically||null!=o&&o<=n)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var n,r,o=F(e),a=this._viewportRect,s=Math.max(t.x+o.width-a.width,0),c=Math.max(t.y+o.height-a.height,0),u=Math.max(a.top-i.top-t.y,0),l=Math.max(a.left-i.left-t.x,0);return n=o.width<=a.width?l||-s:t.xh&&!this._isInitialRender&&!this._growAfterOpen&&(n=t.y-h/2)}if("end"===e.overlayX&&!u||"start"===e.overlayX&&u)s=c.width-t.x+this._viewportMargin,o=t.x-this._viewportMargin;else if("start"===e.overlayX&&!u||"end"===e.overlayX&&u)a=t.x,o=c.right-t.x;else{var d=Math.min(c.right-t.x+c.left,t.x),f=this._lastBoundingBoxSize.width;o=2*d,a=t.x-d,o>f&&!this._isInitialRender&&!this._growAfterOpen&&(a=t.x-f/2)}return{top:n,left:a,bottom:r,right:s,width:o,height:i}}},{key:"_setBoundingBoxStyles",value:function(t,e){var i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));var n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;n.height=(0,c.HM)(i.height),n.top=(0,c.HM)(i.top),n.bottom=(0,c.HM)(i.bottom),n.width=(0,c.HM)(i.width),n.left=(0,c.HM)(i.left),n.right=(0,c.HM)(i.right),n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(n.maxHeight=(0,c.HM)(r)),o&&(n.maxWidth=(0,c.HM)(o))}this._lastBoundingBoxSize=i,Z(this._boundingBox.style,n)}},{key:"_resetBoundingBoxStyles",value:function(){Z(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){Z(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(t,e){var i={},n=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(n){var a=this._viewportRuler.getViewportScrollPosition();Z(i,this._getExactOverlayY(e,t,a)),Z(i,this._getExactOverlayX(e,t,a))}else i.position="static";var s="",u=this._getOffset(e,"x"),l=this._getOffset(e,"y");u&&(s+="translateX(".concat(u,"px) ")),l&&(s+="translateY(".concat(l,"px)")),i.transform=s.trim(),o.maxHeight&&(n?i.maxHeight=(0,c.HM)(o.maxHeight):r&&(i.maxHeight="")),o.maxWidth&&(n?i.maxWidth=(0,c.HM)(o.maxWidth):r&&(i.maxWidth="")),Z(this._pane.style,i)}},{key:"_getExactOverlayY",value:function(t,e,i){var n={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===t.overlayY?n.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":n.top=(0,c.HM)(r.y),n}},{key:"_getExactOverlayX",value:function(t,e,i){var n={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),"right"===(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?n.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":n.left=(0,c.HM)(r.x),n}},{key:"_getScrollVisibility",value:function(){var t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(function(t){return t.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:C(t,i),isOriginOutsideView:k(t,i),isOverlayClipped:C(e,i),isOverlayOutsideView:k(e,i)}}},{key:"_subtractOverflows",value:function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}},{key:"left",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}},{key:"right",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}},{key:"width",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}},{key:"height",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}},{key:"centerHorizontally",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(t),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(t),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),n=i.width,r=i.height,o=i.maxWidth,a=i.maxHeight,s=!("100%"!==n&&"100vw"!==n||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);t.position=this._cssPosition,t.marginLeft=s?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,s?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove("cdk-global-overlay-wrapper"),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}}]),t}(),q=function(){var t=function(){function t(e,i,n,r){_classCallCheck(this,t),this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=r}return _createClass(t,[{key:"global",value:function(){return new U}},{key:"connectedTo",value:function(t,e,i){return new H(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(t){return new z(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.rL),r.LFG(s.K0),r.LFG(o.t4),r.LFG(M))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(n.rL),r.LFG(s.K0),r.LFG(o.t4),r.LFG(M))},token:t,providedIn:"root"}),t}(),G=0,j=function(){var t=function(){function t(e,i,n,r,o,a,s,c,u,l,h){_classCallCheck(this,t),this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=n,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=a,this._ngZone=s,this._document=c,this._directionality=u,this._location=l,this._outsideClickDispatcher=h}return _createClass(t,[{key:"create",value:function(t){var e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),r=new S(t);return r.direction=r.direction||this._directionality.value,new L(n,e,i,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(t){var e=this._document.createElement("div");return e.id="cdk-overlay-"+G++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}},{key:"_createHostElement",value:function(){var t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}},{key:"_createPortalOutlet",value:function(t){return this._appRef||(this._appRef=this._injector.get(r.z2F)),new u.u0(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(E),r.LFG(M),r.LFG(r._Vd),r.LFG(q),r.LFG(O),r.LFG(r.zs3),r.LFG(r.R0b),r.LFG(s.K0),r.LFG(a.Is),r.LFG(s.Ye),r.LFG(P))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t}(),Y=[{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"}],K=new r.OlP("cdk-connected-overlay-scroll-strategy"),V=function(){var t=function t(e){_classCallCheck(this,t),this.elementRef=e};return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t}(),J=function(){var t=function(){function t(e,i,n,o,a){_classCallCheck(this,t),this._overlay=e,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.w.EMPTY,this._attachSubscription=h.w.EMPTY,this._detachSubscription=h.w.EMPTY,this._positionSubscription=h.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new r.vpe,this.positionChange=new r.vpe,this.attach=new r.vpe,this.detach=new r.vpe,this.overlayKeydown=new r.vpe,this.overlayOutsideClick=new r.vpe,this._templatePortal=new u.UE(i,n),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}return _createClass(t,[{key:"offsetX",get:function(){return this._offsetX},set:function(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=(0,c.Ig)(t)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(t){this._lockPosition=(0,c.Ig)(t)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(t){this._flexibleDimensions=(0,c.Ig)(t)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(t){this._growAfterOpen=(0,c.Ig)(t)}},{key:"push",get:function(){return this._push},set:function(t){this._push=(0,c.Ig)(t)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var t=this;this.positions&&this.positions.length||(this.positions=Y);var e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(function(){return t.attach.emit()}),this._detachSubscription=e.detachments().subscribe(function(){return t.detach.emit()}),e.keydownEvents().subscribe(function(e){t.overlayKeydown.next(e),e.keyCode!==y.hY||t.disableClose||(0,y.Vb)(e)||(e.preventDefault(),t._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(e){t.overlayOutsideClick.next(e)})}},{key:"_buildConfig",value:function(){var t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new S({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}},{key:"_updatePositionStrategy",value:function(t){var e=this,i=this.positions.map(function(t){return{originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||e.offsetX,offsetY:t.offsetY||e.offsetY,panelClass:t.panelClass||void 0}});return t.setOrigin(this.origin.elementRef).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}},{key:"_attachOverlay",value:function(){var t=this;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(function(e){t.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(i){return i.lift(new p(t,e))}}(function(){return t.positionChange.observers.length>0})).subscribe(function(e){t.positionChange.emit(e),0===t.positionChange.observers.length&&t._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(j),r.Y36(r.Rgc),r.Y36(r.s_b),r.Y36(K),r.Y36(a.Is,8))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[r.TTD]}),t}(),Q={provide:K,deps:[j],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},W=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[j,Q],imports:[[a.vT,u.eL,n.Cl],n.Cl]}),t}()},11353:function(t,e,i){"use strict";i.d(e,{t4:function(){return h},ud:function(){return d},ht:function(){return _},kV:function(){return y},_i:function(){return v},qK:function(){return p},i$:function(){return g},Mq:function(){return m}});var n,r=i(31572),o=i(61511);try{n="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(b){n=!1}var a,s,c,u,l,h=function(){var t=function t(e){_classCallCheck(this,t),this._platformId=e,this.isBrowser=this._platformId?(0,o.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!n)&&"undefined"!=typeof CSS&&!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 t.\u0275fac=function(e){return new(e||t)(r.LFG(r.Lbi))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(r.Lbi))},token:t,providedIn:"root"}),t}(),d=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t}(),f=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function p(){if(a)return a;if("object"!=typeof document||!document)return a=new Set(f);var t=document.createElement("input");return a=new Set(f.filter(function(e){return t.setAttribute("type",e),t.type===e}))}function g(t){return function(){if(null==s&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return s=!0}}))}finally{s=s||!1}return s}()?t:!!t.capture}function m(){if(null==u){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return u=!1;if("scrollBehavior"in document.documentElement.style)u=!0;else{var t=Element.prototype.scrollTo;u=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return u}function v(){if("object"!=typeof document||!document)return 0;if(null==c){var t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";var i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",t.appendChild(i),document.body.appendChild(t),c=0,0===t.scrollLeft&&(t.scrollLeft=1,c=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return c}function y(t){if(function(){if(null==l){var t="undefined"!=typeof document?document.head:null;l=!(!t||!t.createShadowRoot&&!t.attachShadow)}return l}()){var e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function _(){for(var t="undefined"!=typeof document&&document?document.activeElement:null;t&&t.shadowRoot;){var e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}},26899:function(t,e,i){"use strict";i.d(e,{en:function(){return u},ig:function(){return d},Pl:function(){return f},C5:function(){return a},F0:function(){return h},u0:function(){return l},eL:function(){return p},UE:function(){return s}});var n=i(31572),r=i(61511),o=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"attach",value:function(t){return this._attachedHost=t,t.attach(this)}},{key:"detach",value:function(){var t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(t){this._attachedHost=t}}]),t}(),a=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;return _classCallCheck(this,i),(a=e.call(this)).component=t,a.viewContainerRef=n,a.injector=r,a.componentFactoryResolver=o,a}return i}(o),s=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this)).templateRef=t,o.viewContainerRef=n,o.context=r,o}return _createClass(i,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=e,_get(_getPrototypeOf(i.prototype),"attach",this).call(this,t)}},{key:"detach",value:function(){return this.context=void 0,_get(_getPrototypeOf(i.prototype),"detach",this).call(this)}}]),i}(o),c=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var r;return _classCallCheck(this,i),(r=e.call(this)).element=t instanceof n.SBq?t.nativeElement:t,r}return i}(o),u=function(){function t(){_classCallCheck(this,t),this._isDisposed=!1,this.attachDomPortal=null}return _createClass(t,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(t){return t instanceof a?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof s?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof c?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(t){this._disposeFn=t}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),t}(),l=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,a){var s,c;return _classCallCheck(this,i),(c=e.call(this)).outletElement=t,c._componentFactoryResolver=n,c._appRef=r,c._defaultInjector=o,c.attachDomPortal=function(t){var e=t.element,n=c._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),c.outletElement.appendChild(e),c._attachedPortal=t,_get((s=_assertThisInitialized(c),_getPrototypeOf(i.prototype)),"setDisposeFn",s).call(s,function(){n.parentNode&&n.parentNode.replaceChild(e,n)})},c._document=a,c}return _createClass(i,[{key:"attachComponentPortal",value:function(t){var e,i=this,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(n,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(function(){return e.destroy()})):(e=n.create(t.injector||this._defaultInjector),this._appRef.attachView(e.hostView),this.setDisposeFn(function(){i._appRef.detachView(e.hostView),e.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=t,e}},{key:"attachTemplatePortal",value:function(t){var e=this,i=t.viewContainerRef,n=i.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(function(t){return e.outletElement.appendChild(t)}),n.detectChanges(),this.setDisposeFn(function(){var t=i.indexOf(n);-1!==t&&i.remove(t)}),this._attachedPortal=t,n}},{key:"dispose",value:function(){_get(_getPrototypeOf(i.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(t){return t.hostView.rootNodes[0]}}]),i}(u),h=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(l),d=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){return _classCallCheck(this,i),e.call(this,t,n)}return i}(s);return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Rgc),n.Y36(n.s_b))},t.\u0275dir=n.lG2({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[n.qOj]}),t}(),f=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,r,o){var a,s;return _classCallCheck(this,i),(s=e.call(this))._componentFactoryResolver=t,s._viewContainerRef=r,s._isInitialized=!1,s.attached=new n.vpe,s.attachDomPortal=function(t){var e=t.element,n=s._document.createComment("dom-portal");t.setAttachedHost(_assertThisInitialized(s)),e.parentNode.insertBefore(n,e),s._getRootNode().appendChild(e),s._attachedPortal=t,_get((a=_assertThisInitialized(s),_getPrototypeOf(i.prototype)),"setDisposeFn",a).call(a,function(){n.parentNode&&n.parentNode.replaceChild(e,n)})},s._document=o,s}return _createClass(i,[{key:"portal",get:function(){return this._attachedPortal},set:function(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&_get(_getPrototypeOf(i.prototype),"detach",this).call(this),t&&_get(_getPrototypeOf(i.prototype),"attach",this).call(this,t),this._attachedPortal=t)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(i.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(t){t.setAttachedHost(this);var e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),r=e.createComponent(n,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),_get(_getPrototypeOf(i.prototype),"setDisposeFn",this).call(this,function(){return r.destroy()}),this._attachedPortal=t,this._attachedRef=r,this.attached.emit(r),r}},{key:"attachTemplatePortal",value:function(t){var e=this;t.setAttachedHost(this);var n=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return _get(_getPrototypeOf(i.prototype),"setDisposeFn",this).call(this,function(){return e._viewContainerRef.clear()}),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}},{key:"_getRootNode",value:function(){var t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}]),i}(u);return t.\u0275fac=function(e){return new(e||t)(n.Y36(n._Vd),n.Y36(n.s_b),n.Y36(r.K0))},t.\u0275dir=n.lG2({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[n.qOj]}),t}(),p=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t}()},4253:function(t,e,i){"use strict";i.d(e,{xd:function(){return P},PQ:function(){return M},ZD:function(){return F},x0:function(){return B},N7:function(){return z},mF:function(){return D},Cl:function(){return H},rL:function(){return L}});var n=i(19861),r=i(31572),o=i(55959),a=i(40878),s=i(48318),c=i(87254),u=i(91741),l=i(92709),h=i(87570),d=i(4710),f=i(96673),p=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new g(t))}}]),t}(),g=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this,t)).hasPrev=!1,n}return _createClass(i,[{key:"_next",value:function(t){var e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}]),i}(f.L),m=i(98720),v=i(30810),y=i(43835),_=i(25416),b=i(56238),w=i(44689),A=i(68303),k=i(11353),C=i(61511),T=i(22526),E=i(4230),S=["contentWrapper"],I=["*"],R=new r.OlP("VIRTUAL_SCROLL_STRATEGY"),x=function(){function t(e,i,n){_classCallCheck(this,t),this._scrolledIndexChange=new o.xQ,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,m.x)()),this._viewport=null,this._itemSize=e,this._minBufferPx=i,this._maxBufferPx=n}return _createClass(t,[{key:"attach",value:function(t){this._viewport=t,this._updateTotalContentSize(),this._updateRenderedRange()}},{key:"detach",value:function(){this._scrolledIndexChange.complete(),this._viewport=null}},{key:"updateItemAndBufferSize",value:function(t,e,i){this._itemSize=t,this._minBufferPx=e,this._maxBufferPx=i,this._updateTotalContentSize(),this._updateRenderedRange()}},{key:"onContentScrolled",value:function(){this._updateRenderedRange()}},{key:"onDataLengthChanged",value:function(){this._updateTotalContentSize(),this._updateRenderedRange()}},{key:"onContentRendered",value:function(){}},{key:"onRenderedOffsetChanged",value:function(){}},{key:"scrollToIndex",value:function(t,e){this._viewport&&this._viewport.scrollToOffset(t*this._itemSize,e)}},{key:"_updateTotalContentSize",value:function(){this._viewport&&this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}},{key:"_updateRenderedRange",value:function(){if(this._viewport){var t=this._viewport.getRenderedRange(),e={start:t.start,end:t.end},i=this._viewport.getViewportSize(),n=this._viewport.getDataLength(),r=this._viewport.measureScrollOffset(),o=this._itemSize>0?r/this._itemSize:0;if(e.end>n){var a=Math.ceil(i/this._itemSize),s=Math.max(0,Math.min(o,n-a));o!=s&&(o=s,r=s*this._itemSize,e.start=Math.floor(o)),e.end=Math.max(0,Math.min(n,e.start+a))}var c=r-e.start*this._itemSize;if(c0&&(e.end=Math.min(n,e.end+h),e.start=Math.max(0,Math.floor(o-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(o))}}}]),t}();function O(t){return t._scrollStrategy}var P=function(){var t=function(){function t(){_classCallCheck(this,t),this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new x(this.itemSize,this.minBufferPx,this.maxBufferPx)}return _createClass(t,[{key:"itemSize",get:function(){return this._itemSize},set:function(t){this._itemSize=(0,n.su)(t)}},{key:"minBufferPx",get:function(){return this._minBufferPx},set:function(t){this._minBufferPx=(0,n.su)(t)}},{key:"maxBufferPx",get:function(){return this._maxBufferPx},set:function(t){this._maxBufferPx=(0,n.su)(t)}},{key:"ngOnChanges",value:function(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[r._Bn([{provide:R,useFactory:O,deps:[(0,r.Gpc)(function(){return t})]}]),r.TTD]}),t}(),D=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this._ngZone=e,this._platform=i,this._scrolled=new o.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}return _createClass(t,[{key:"register",value:function(t){var e=this;this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(function(){return e._scrolled.next(t)}))}},{key:"deregister",value:function(t){var e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}},{key:"scrolled",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new s.y(function(i){t._globalSubscription||t._addGlobalListener();var n=e>0?t._scrolled.pipe((0,v.e)(e)).subscribe(i):t._scrolled.subscribe(i);return t._scrolledCount++,function(){n.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}}):(0,a.of)()}},{key:"ngOnDestroy",value:function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(e,i){return t.deregister(i)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(t,e){var i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe((0,y.h)(function(t){return!t||i.indexOf(t)>-1}))}},{key:"getAncestorScrollContainers",value:function(t){var e=this,i=[];return this.scrollContainers.forEach(function(n,r){e._scrollableContainsElement(r,t)&&i.push(r)}),i}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(t,e){var i=(0,n.fI)(e),r=t.getElementRef().nativeElement;do{if(i==r)return!0}while(i=i.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){var e=t._getWindow();return(0,c.R)(e.document,"scroll").subscribe(function(){return t._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(r.R0b),r.LFG(k.t4),r.LFG(C.K0,8))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(r.R0b),r.LFG(k.t4),r.LFG(C.K0,8))},token:t,providedIn:"root"}),t}(),M=function(){var t=function(){function t(e,i,n,r){var a=this;_classCallCheck(this,t),this.elementRef=e,this.scrollDispatcher=i,this.ngZone=n,this.dir=r,this._destroyed=new o.xQ,this._elementScrolled=new s.y(function(t){return a.ngZone.runOutsideAngular(function(){return(0,c.R)(a.elementRef.nativeElement,"scroll").pipe((0,_.R)(a._destroyed)).subscribe(t)})})}return _createClass(t,[{key:"ngOnInit",value:function(){this.scrollDispatcher.register(this)}},{key:"ngOnDestroy",value:function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}},{key:"elementScrolled",value:function(){return this._elementScrolled}},{key:"getElementRef",value:function(){return this.elementRef}},{key:"scrollTo",value:function(t){var e=this.elementRef.nativeElement,i=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=i?t.end:t.start),null==t.right&&(t.right=i?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),i&&0!=(0,k._i)()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==(0,k._i)()?t.left=t.right:1==(0,k._i)()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}},{key:"_applyScrollToOptions",value:function(t){var e=this.elementRef.nativeElement;(0,k.Mq)()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}},{key:"measureScrollOffset",value:function(t){var e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;var i=this.dir&&"rtl"==this.dir.value;return"start"==t?t=i?"right":"left":"end"==t&&(t=i?"left":"right"),i&&2==(0,k._i)()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:i&&1==(0,k._i)()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(D),r.Y36(r.R0b),r.Y36(T.Is,8))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t}(),L=function(){var t=function(){function t(e,i,n){var r=this;_classCallCheck(this,t),this._platform=e,this._change=new o.xQ,this._changeListener=function(t){r._change.next(t)},this._document=n,i.runOutsideAngular(function(){if(e.isBrowser){var t=r._getWindow();t.addEventListener("resize",r._changeListener),t.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._updateViewportSize()})})}return _createClass(t,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}},{key:"getViewportRect",value:function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),i=e.width,n=e.height;return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+i,height:n,width:i}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=this._document,e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}},{key:"change",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return t>0?this._change.pipe((0,v.e)(t)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(k.t4),r.LFG(r.R0b),r.LFG(C.K0,8))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(k.t4),r.LFG(r.R0b),r.LFG(C.K0,8))},token:t,providedIn:"root"}),t}(),N="undefined"!=typeof requestAnimationFrame?u.r:l.e,z=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,a,c,u,l){var d;return _classCallCheck(this,i),(d=e.call(this,t,u,r,c)).elementRef=t,d._changeDetectorRef=n,d._scrollStrategy=a,d._detachedSubject=new o.xQ,d._renderedRangeSubject=new o.xQ,d._orientation="vertical",d.scrolledIndexChange=new s.y(function(t){return d._scrollStrategy.scrolledIndexChange.subscribe(function(e){return Promise.resolve().then(function(){return d.ngZone.run(function(){return t.next(e)})})})}),d.renderedRangeStream=d._renderedRangeSubject,d._totalContentSize=0,d._totalContentWidth="",d._totalContentHeight="",d._renderedRange={start:0,end:0},d._dataLength=0,d._viewportSize=0,d._renderedContentOffset=0,d._renderedContentOffsetNeedsRewrite=!1,d._isChangeDetectionPending=!1,d._runAfterChangeDetection=[],d._viewportChanges=h.w.EMPTY,d._viewportChanges=l.change().subscribe(function(){d.checkViewportSize()}),d}return _createClass(i,[{key:"orientation",get:function(){return this._orientation},set:function(t){this._orientation!==t&&(this._orientation=t,this._calculateSpacerSize())}},{key:"ngOnInit",value:function(){var t=this;_get(_getPrototypeOf(i.prototype),"ngOnInit",this).call(this),this.ngZone.runOutsideAngular(function(){return Promise.resolve().then(function(){t._measureViewportSize(),t._scrollStrategy.attach(t),t.elementScrolled().pipe((0,b.O)(null),(0,v.e)(0,N)).subscribe(function(){return t._scrollStrategy.onContentScrolled()}),t._markChangeDetectionNeeded()})})}},{key:"ngOnDestroy",value:function(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),_get(_getPrototypeOf(i.prototype),"ngOnDestroy",this).call(this)}},{key:"attach",value:function(t){var e=this;this.ngZone.runOutsideAngular(function(){e._forOf=t,e._forOf.dataStream.pipe((0,_.R)(e._detachedSubject)).subscribe(function(t){var i=t.length;i!==e._dataLength&&(e._dataLength=i,e._scrollStrategy.onDataLengthChanged()),e._doChangeDetection()})})}},{key:"detach",value:function(){this._forOf=null,this._detachedSubject.next()}},{key:"getDataLength",value:function(){return this._dataLength}},{key:"getViewportSize",value:function(){return this._viewportSize}},{key:"getRenderedRange",value:function(){return this._renderedRange}},{key:"setTotalContentSize",value:function(t){this._totalContentSize!==t&&(this._totalContentSize=t,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}},{key:"setRenderedRange",value:function(t){var e,i,n=this;((e=this._renderedRange).start!=(i=t).start||e.end!=i.end)&&(this._renderedRangeSubject.next(this._renderedRange=t),this._markChangeDetectionNeeded(function(){return n._scrollStrategy.onContentRendered()}))}},{key:"getOffsetToRenderedContentStart",value:function(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}},{key:"setRenderedContentOffset",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"to-start",n="horizontal"==this.orientation,r=n?"X":"Y",o="translate".concat(r,"(").concat(Number((n&&this.dir&&"rtl"==this.dir.value?-1:1)*t),"px)");this._renderedContentOffset=t,"to-end"===i&&(o+=" translate".concat(r,"(-100%)"),this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=o&&(this._renderedContentTransform=o,this._markChangeDetectionNeeded(function(){e._renderedContentOffsetNeedsRewrite?(e._renderedContentOffset-=e.measureRenderedContentSize(),e._renderedContentOffsetNeedsRewrite=!1,e.setRenderedContentOffset(e._renderedContentOffset)):e._scrollStrategy.onRenderedOffsetChanged()}))}},{key:"scrollToOffset",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",i={behavior:e};"horizontal"===this.orientation?i.start=t:i.top=t,this.scrollTo(i)}},{key:"scrollToIndex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";this._scrollStrategy.scrollToIndex(t,e)}},{key:"measureScrollOffset",value:function(t){return _get(_getPrototypeOf(i.prototype),"measureScrollOffset",this).call(this,t||("horizontal"===this.orientation?"start":"top"))}},{key:"measureRenderedContentSize",value:function(){var t=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?t.offsetWidth:t.offsetHeight}},{key:"measureRangeSize",value:function(t){return this._forOf?this._forOf.measureRangeSize(t,this.orientation):0}},{key:"checkViewportSize",value:function(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}},{key:"_measureViewportSize",value:function(){var t=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?t.clientWidth:t.clientHeight}},{key:"_markChangeDetectionNeeded",value:function(t){var e=this;t&&this._runAfterChangeDetection.push(t),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(function(){return Promise.resolve().then(function(){e._doChangeDetection()})}))}},{key:"_doChangeDetection",value:function(){var t=this;this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(function(){return t._changeDetectorRef.markForCheck()});var e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];var i,n=_createForOfIteratorHelper(e);try{for(n.s();!(i=n.n()).done;){(0,i.value)()}}catch(r){n.e(r)}finally{n.f()}}},{key:"_calculateSpacerSize",value:function(){this._totalContentHeight="horizontal"===this.orientation?"":"".concat(this._totalContentSize,"px"),this._totalContentWidth="horizontal"===this.orientation?"".concat(this._totalContentSize,"px"):""}}]),i}(M);return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(r.R0b),r.Y36(R,8),r.Y36(T.Is,8),r.Y36(D),r.Y36(L))},t.\u0275cmp=r.Xpm({type:t,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(t,e){var i;(1&t&&r.Gf(S,7),2&t)&&(r.iGM(i=r.CRH())&&(e._contentWrapper=i.first))},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(t,e){2&t&&r.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===e.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==e.orientation)},inputs:{orientation:"orientation"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[r._Bn([{provide:M,useExisting:t}]),r.qOj],ngContentSelectors:I,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"div",0,1),r.Hsn(2),r.qZA(),r._UZ(3,"div",2)),2&t&&(r.xp6(3),r.Udp("width",e._totalContentWidth)("height",e._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-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{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0}),t}();function Z(t,e,i){if(!i.getBoundingClientRect)return 0;var n=i.getBoundingClientRect();return"horizontal"===t?"start"===e?n.left:n.right:"start"===e?n.top:n.bottom}var B=function(){var t=function(){function t(e,i,n,r,a,s){var c=this;_classCallCheck(this,t),this._viewContainerRef=e,this._template=i,this._differs=n,this._viewRepeater=r,this._viewport=a,this.viewChange=new o.xQ,this._dataSourceChanges=new o.xQ,this.dataStream=this._dataSourceChanges.pipe((0,b.O)(null),function(t){return t.lift(new p)},(0,w.w)(function(t){var e=_slicedToArray(t,2),i=e[0],n=e[1];return c._changeDataSource(i,n)}),(0,A.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new o.xQ,this.dataStream.subscribe(function(t){c._data=t,c._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,_.R)(this._destroyed)).subscribe(function(t){c._renderedRange=t,s.run(function(){return c.viewChange.next(c._renderedRange)}),c._onRenderedDataChange()}),this._viewport.attach(this)}return _createClass(t,[{key:"cdkVirtualForOf",get:function(){return this._cdkVirtualForOf},set:function(t){this._cdkVirtualForOf=t,(0,E.Z9)(t)?this._dataSourceChanges.next(t):this._dataSourceChanges.next(new E.P3((0,d.b)(t)?t:Array.from(t||[])))}},{key:"cdkVirtualForTrackBy",get:function(){return this._cdkVirtualForTrackBy},set:function(t){var e=this;this._needsUpdate=!0,this._cdkVirtualForTrackBy=t?function(i,n){return t(i+(e._renderedRange?e._renderedRange.start:0),n)}:void 0}},{key:"cdkVirtualForTemplate",set:function(t){t&&(this._needsUpdate=!0,this._template=t)}},{key:"cdkVirtualForTemplateCacheSize",get:function(){return this._viewRepeater.viewCacheSize},set:function(t){this._viewRepeater.viewCacheSize=(0,n.su)(t)}},{key:"measureRangeSize",value:function(t,e){if(t.start>=t.end)return 0;for(var i,n,r=t.start-this._renderedRange.start,o=t.end-t.start,a=0;a-1;c--){var u=this._viewContainerRef.get(c+r);if(u&&u.rootNodes.length){n=u.rootNodes[u.rootNodes.length-1];break}}return i&&n?Z(e,"end",n)-Z(e,"start",i):0}},{key:"ngDoCheck",value:function(){if(this._differ&&this._needsUpdate){var t=this._differ.diff(this._renderedItems);t?this._applyChanges(t):this._updateContext(),this._needsUpdate=!1}}},{key:"ngOnDestroy",value:function(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}},{key:"_onRenderedDataChange",value:function(){var t=this;this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create(function(e,i){return t.cdkVirtualForTrackBy?t.cdkVirtualForTrackBy(e,i):i})),this._needsUpdate=!0)}},{key:"_changeDataSource",value:function(t,e){return t&&t.disconnect(this),this._needsUpdate=!0,e?e.connect(this):(0,a.of)()}},{key:"_updateContext",value:function(){for(var t=this._data.length,e=this._viewContainerRef.length;e--;){var i=this._viewContainerRef.get(e);i.context.index=this._renderedRange.start+e,i.context.count=t,this._updateComputedContextProperties(i.context),i.detectChanges()}}},{key:"_applyChanges",value:function(t){var e=this;this._viewRepeater.applyChanges(t,this._viewContainerRef,function(t,i,n){return e._getEmbeddedViewArgs(t,n)},function(t){return t.item}),t.forEachIdentityChange(function(t){e._viewContainerRef.get(t.currentIndex).context.$implicit=t.item});for(var i=this._data.length,n=this._viewContainerRef.length;n--;){var r=this._viewContainerRef.get(n);r.context.index=this._renderedRange.start+n,r.context.count=i,this._updateComputedContextProperties(r.context)}}},{key:"_updateComputedContextProperties",value:function(t){t.first=0===t.index,t.last=t.index===t.count-1,t.even=t.index%2==0,t.odd=!t.even}},{key:"_getEmbeddedViewArgs",value:function(t,e){return{templateRef:this._template,context:{$implicit:t.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:e}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.s_b),r.Y36(r.Rgc),r.Y36(r.ZZ4),r.Y36(E.k),r.Y36(z,4),r.Y36(r.R0b))},t.\u0275dir=r.lG2({type:t,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[r._Bn([{provide:E.k,useClass:E.eX}])]}),t}(),F=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t}(),H=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[T.vT,k.ud,F],T.vT,F]}),t}()},10901:function(t,e,i){"use strict";i.d(e,{Lq:function(){return f},IC:function(){return p},Ky:function(){return g}});var n=i(11353),r=i(31572),o=i(19861),a=i(70653),s=i(55959),c=i(87254),u=i(30810),l=i(25416),h=i(61511),d=(0,n.i$)({passive:!0}),f=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this._platform=e,this._ngZone=i,this._monitoredElements=new Map}return _createClass(t,[{key:"monitor",value:function(t){var e=this;if(!this._platform.isBrowser)return a.E;var i=(0,o.fI)(t),n=this._monitoredElements.get(i);if(n)return n.subject;var r=new s.xQ,c="cdk-text-field-autofilled",u=function(t){"cdk-text-field-autofill-start"!==t.animationName||i.classList.contains(c)?"cdk-text-field-autofill-end"===t.animationName&&i.classList.contains(c)&&(i.classList.remove(c),e._ngZone.run(function(){return r.next({target:t.target,isAutofilled:!1})})):(i.classList.add(c),e._ngZone.run(function(){return r.next({target:t.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){i.addEventListener("animationstart",u,d),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:r,unlisten:function(){i.removeEventListener("animationstart",u,d)}}),r}},{key:"stopMonitoring",value:function(t){var e=(0,o.fI)(t),i=this._monitoredElements.get(e);i&&(i.unlisten(),i.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}},{key:"ngOnDestroy",value:function(){var t=this;this._monitoredElements.forEach(function(e,i){return t.stopMonitoring(i)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.t4),r.LFG(r.R0b))},t.\u0275prov=r.Yz7({factory:function(){return new t(r.LFG(n.t4),r.LFG(r.R0b))},token:t,providedIn:"root"}),t}(),p=function(){var t=function(){function t(e,i,n,r){_classCallCheck(this,t),this._elementRef=e,this._platform=i,this._ngZone=n,this._destroyed=new s.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._document=r,this._textareaElement=this._elementRef.nativeElement,this._measuringClass=i.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring"}return _createClass(t,[{key:"minRows",get:function(){return this._minRows},set:function(t){this._minRows=(0,o.su)(t),this._setMinHeight()}},{key:"maxRows",get:function(){return this._maxRows},set:function(t){this._maxRows=(0,o.su)(t),this._setMaxHeight()}},{key:"enabled",get:function(){return this._enabled},set:function(t){t=(0,o.Ig)(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}},{key:"placeholder",get:function(){return this._textareaElement.placeholder},set:function(t){this._cachedPlaceholderHeight=void 0,this._textareaElement.placeholder=t,this._cacheTextareaPlaceholderHeight()}},{key:"_setMinHeight",value:function(){var t=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.minHeight=t)}},{key:"_setMaxHeight",value:function(){var t=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.maxHeight=t)}},{key:"ngAfterViewInit",value:function(){var t=this;this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(function(){var e=t._getWindow();(0,c.R)(e,"resize").pipe((0,u.e)(16),(0,l.R)(t._destroyed)).subscribe(function(){return t.resizeToFitContent(!0)})}),this._isViewInited=!0,this.resizeToFitContent(!0))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_cacheTextareaLineHeight",value:function(){if(!this._cachedLineHeight){var t=this._textareaElement.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,this._textareaElement.parentNode.removeChild(t),this._setMinHeight(),this._setMaxHeight()}}},{key:"_measureScrollHeight",value:function(){this._textareaElement.classList.add(this._measuringClass);var t=this._textareaElement.scrollHeight-4;return this._textareaElement.classList.remove(this._measuringClass),t}},{key:"_cacheTextareaPlaceholderHeight",value:function(){if(this._isViewInited&&null==this._cachedPlaceholderHeight)if(this.placeholder){var t=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=t}else this._cachedPlaceholderHeight=0}},{key:"ngDoCheck",value:function(){this._platform.isBrowser&&this.resizeToFitContent()}},{key:"resizeToFitContent",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._enabled&&(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),this._cachedLineHeight)){var i=this._elementRef.nativeElement,n=i.value;if(e||this._minRows!==this._previousMinRows||n!==this._previousValue){var r=this._measureScrollHeight(),o=Math.max(r,this._cachedPlaceholderHeight||0);i.style.height="".concat(o,"px"),this._ngZone.runOutsideAngular(function(){"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(function(){return t._scrollToCaretPosition(i)}):setTimeout(function(){return t._scrollToCaretPosition(i)})}),this._previousValue=n,this._previousMinRows=this._minRows}}}},{key:"reset",value:function(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}},{key:"_noopInputHandler",value:function(){}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollToCaretPosition",value:function(t){var e=t.selectionStart,i=t.selectionEnd,n=this._getDocument();this._destroyed.isStopped||n.activeElement!==t||t.setSelectionRange(e,i)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(n.t4),r.Y36(r.R0b),r.Y36(h.K0,8))},t.\u0275dir=r.lG2({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&r.NdJ("input",function(){return e._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),t}(),g=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[n.ud]]}),t}()},71709:function(t,e,i){"use strict";i.d(e,{HI:function(){return v},Xx:function(){return k},_0:function(){return w},nZ:function(){return S},Hs:function(){return A},rO:function(){return b},cu:function(){return y},XJ:function(){return T},Ud:function(){return E},C2:function(){return g},VY:function(){return m}});var n=i(4230),r=i(4710),o=i(55959),a=i(78512),s=i(40878),c=i(90611),u=i(43835),l=i(25416),h=i(31572),d=i(19861),f=i(22526),p=function(){function t(){_classCallCheck(this,t),this.expansionModel=new n.Ov(!0)}return _createClass(t,[{key:"toggle",value:function(t){this.expansionModel.toggle(this._trackByValue(t))}},{key:"expand",value:function(t){this.expansionModel.select(this._trackByValue(t))}},{key:"collapse",value:function(t){this.expansionModel.deselect(this._trackByValue(t))}},{key:"isExpanded",value:function(t){return this.expansionModel.isSelected(this._trackByValue(t))}},{key:"toggleDescendants",value:function(t){this.expansionModel.isSelected(this._trackByValue(t))?this.collapseDescendants(t):this.expandDescendants(t)}},{key:"collapseAll",value:function(){this.expansionModel.clear()}},{key:"expandDescendants",value:function(t){var e,i=this,n=[t];n.push.apply(n,_toConsumableArray(this.getDescendants(t))),(e=this.expansionModel).select.apply(e,_toConsumableArray(n.map(function(t){return i._trackByValue(t)})))}},{key:"collapseDescendants",value:function(t){var e,i=this,n=[t];n.push.apply(n,_toConsumableArray(this.getDescendants(t))),(e=this.expansionModel).deselect.apply(e,_toConsumableArray(n.map(function(t){return i._trackByValue(t)})))}},{key:"_trackByValue",value:function(t){return this.trackBy?this.trackBy(t):t}}]),t}(),g=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this)).getLevel=t,o.isExpandable=n,o.options=r,o.options&&(o.trackBy=o.options.trackBy),o}return _createClass(i,[{key:"getDescendants",value:function(t){for(var e=[],i=this.dataNodes.indexOf(t)+1;i1&&void 0!==arguments[1]?arguments[1]:this._dataDiffer,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._nodeOutlet.viewContainer,r=arguments.length>3?arguments[3]:void 0,o=i.diff(t);o&&(o.forEachOperation(function(i,o,a){if(null==i.previousIndex)e.insertNode(t[a],a,n,r);else if(null==a)n.remove(o),e._levels.delete(i.item);else{var s=n.get(o);n.move(s,a)}}),this._changeDetectorRef.detectChanges())}},{key:"_getNodeDef",value:function(t,e){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(function(i){return i.when&&i.when(e,t)})||this._defaultNodeDef}},{key:"insertNode",value:function(t,e,i,n){var r=this._getNodeDef(t,e),o=new _(t);o.level=this.treeControl.getLevel?this.treeControl.getLevel(t):void 0!==n&&this._levels.has(n)?this._levels.get(n)+1:0,this._levels.set(t,o.level),(i||this._nodeOutlet.viewContainer).createEmbeddedView(r.template,o,e),A.mostRecentTreeNode&&(A.mostRecentTreeNode.data=t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.ZZ4),h.Y36(h.sBO))},t.\u0275cmp=h.Xpm({type:t,selectors:[["cdk-tree"]],contentQueries:function(t,e,i){var n;(1&t&&h.Suo(i,b,5),2&t)&&(h.iGM(n=h.CRH())&&(e._nodeDefs=n))},viewQuery:function(t,e){var i;(1&t&&h.Gf(y,7),2&t)&&(h.iGM(i=h.CRH())&&(e._nodeOutlet=i.first))},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(t,e){1&t&&h.GkF(0,0)},directives:[y],encapsulation:2}),t}(),A=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this._elementRef=e,this._tree=i,this._destroyed=new o.xQ,this._dataChanges=new o.xQ,t.mostRecentTreeNode=this,this._elementRef.nativeElement.classList.add("cdk-tree-node"),this.role="treeitem"}return _createClass(t,[{key:"role",get:function(){return"treeitem"},set:function(t){this._elementRef.nativeElement.setAttribute("role",t)}},{key:"data",get:function(){return this._data},set:function(t){t!==this._data&&(this._data=t,this._setRoleFromData(),this._dataChanges.next())}},{key:"isExpanded",get:function(){return this._tree.treeControl.isExpanded(this._data)}},{key:"_setExpanded",value:function(t){this._isAriaExpanded=t,this._elementRef.nativeElement.setAttribute("aria-expanded","".concat(t))}},{key:"level",get:function(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}},{key:"ngOnInit",value:function(){this._parentNodeAriaLevel=function(t){for(var e,i=t.parentElement;i&&(e=void 0,!(null==(e=i.classList)?void 0:e.contains("cdk-nested-tree-node"))&&!(null==e?void 0:e.contains("cdk-tree")));)i=i.parentElement;return i?i.classList.contains("cdk-nested-tree-node")?(0,d.su)(i.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level","".concat(this.level+1))}},{key:"ngDoCheck",value:function(){this.isExpanded!=this._isAriaExpanded&&this._setExpanded(this.isExpanded)}},{key:"ngOnDestroy",value:function(){t.mostRecentTreeNode===this&&(t.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"focus",value:function(){this._elementRef.nativeElement.focus()}},{key:"_setRoleFromData",value:function(){this.role="treeitem"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(w))},t.\u0275dir=h.lG2({type:t,selectors:[["cdk-tree-node"]],inputs:{role:"role"},exportAs:["cdkTreeNode"]}),t.mostRecentTreeNode=null,t}();var k=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this,t,n))._elementRef=t,o._tree=n,o._differs=r,o._elementRef.nativeElement.classList.add("cdk-nested-tree-node"),o}return _createClass(i,[{key:"ngAfterContentInit",value:function(){var t=this;this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);var e=this._tree.treeControl.getChildren(this.data);Array.isArray(e)?this.updateChildrenNodes(e):(0,r.b)(e)&&e.pipe((0,l.R)(this._destroyed)).subscribe(function(e){return t.updateChildrenNodes(e)}),this.nodeOutlet.changes.pipe((0,l.R)(this._destroyed)).subscribe(function(){return t.updateChildrenNodes()})}},{key:"ngOnInit",value:function(){_get(_getPrototypeOf(i.prototype),"ngOnInit",this).call(this)}},{key:"ngDoCheck",value:function(){_get(_getPrototypeOf(i.prototype),"ngDoCheck",this).call(this)}},{key:"ngOnDestroy",value:function(){this._clear(),_get(_getPrototypeOf(i.prototype),"ngOnDestroy",this).call(this)}},{key:"updateChildrenNodes",value:function(t){var e=this._getNodeOutlet();t&&(this._children=t),e&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,e.viewContainer,this._data):this._dataDiffer.diff([])}},{key:"_clear",value:function(){var t=this._getNodeOutlet();t&&(t.viewContainer.clear(),this._dataDiffer.diff([]))}},{key:"_getNodeOutlet",value:function(){var t=this,e=this.nodeOutlet;return e&&e.find(function(e){return!e._node||e._node===t})}}]),i}(A);return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(w),h.Y36(h.ZZ4))},t.\u0275dir=h.lG2({type:t,selectors:[["cdk-nested-tree-node"]],contentQueries:function(t,e,i){var n;(1&t&&h.Suo(i,y,5),2&t)&&(h.iGM(n=h.CRH())&&(e.nodeOutlet=n))},inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[h._Bn([{provide:A,useExisting:t},{provide:v,useExisting:t}]),h.qOj]}),t}(),C=/([A-Za-z%]+)$/,T=function(){var t=function(){function t(e,i,n,r){var a=this;_classCallCheck(this,t),this._treeNode=e,this._tree=i,this._element=n,this._dir=r,this._destroyed=new o.xQ,this.indentUnits="px",this._indent=40,this._setPadding(),r&&r.change.pipe((0,l.R)(this._destroyed)).subscribe(function(){return a._setPadding(!0)}),e._dataChanges.subscribe(function(){return a._setPadding()})}return _createClass(t,[{key:"level",get:function(){return this._level},set:function(t){this._setLevelInput(t)}},{key:"indent",get:function(){return this._indent},set:function(t){this._setIndentInput(t)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_paddingIndent",value:function(){var t=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,e=null==this._level?t:this._level;return"number"==typeof e?"".concat(e*this._indent).concat(this.indentUnits):null}},{key:"_setPadding",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._paddingIndent();if(e!==this._currentPadding||t){var i=this._element.nativeElement,n=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",r="paddingLeft"===n?"paddingRight":"paddingLeft";i.style[n]=e||"",i.style[r]="",this._currentPadding=e}}},{key:"_setLevelInput",value:function(t){this._level=(0,d.su)(t,null),this._setPadding()}},{key:"_setIndentInput",value:function(t){var e=t,i="px";if("string"==typeof t){var n=t.split(C);e=n[0],i=n[1]||i}this.indentUnits=i,this._indent=(0,d.su)(e),this._setPadding()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(h.Y36(A),h.Y36(w),h.Y36(h.SBq),h.Y36(f.Is,8))},t.\u0275dir=h.lG2({type:t,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),t}(),E=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this._tree=e,this._treeNode=i,this._recursive=!1}return _createClass(t,[{key:"recursive",get:function(){return this._recursive},set:function(t){this._recursive=(0,d.Ig)(t)}},{key:"_toggle",value:function(t){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),t.stopPropagation()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(h.Y36(w),h.Y36(A))},t.\u0275dir=h.lG2({type:t,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(t,e){1&t&&h.NdJ("click",function(t){return e._toggle(t)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),t}(),S=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({}),t}()},61511:function(t,e,i){"use strict";i.d(e,{mr:function(){return b},Ov:function(){return Tt},ez:function(){return Rt},K0:function(){return c},uU:function(){return It},Do:function(){return A},V_:function(){return h},Ye:function(){return k},S$:function(){return y},i8:function(){return Et},mk:function(){return ct},sg:function(){return lt},O5:function(){return dt},PC:function(){return _t},RF:function(){return mt},n9:function(){return vt},ED:function(){return yt},tP:function(){return bt},b0:function(){return w},lw:function(){return u},gd:function(){return St},EM:function(){return Dt},JF:function(){return Nt},p6:function(){return j},NF:function(){return Ot},PM:function(){return Pt},w_:function(){return s},bD:function(){return xt},q:function(){return o},Mx:function(){return st},HT:function(){return a}});var n=i(31572),r=null;function o(){return r}function a(t){r||(r=t)}var s=function t(){_classCallCheck(this,t)},c=new n.OlP("DocumentToken"),u=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"historyGo",value:function(t){throw new Error("Not implemented")}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:l,token:t,providedIn:"platform"}),t}();function l(){return(0,n.LFG)(d)}var h=new n.OlP("Location Initialized"),d=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this))._doc=t,n._init(),n}return _createClass(i,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return o().getBaseHref(this._doc)}},{key:"onPopState",value:function(t){var e=o().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),function(){return e.removeEventListener("popstate",t)}}},{key:"onHashChange",value:function(t){var e=o().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),function(){return e.removeEventListener("hashchange",t)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(t){this.location.pathname=t}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(t,e,i){f()?this._history.pushState(t,e,i):this.location.hash=i}},{key:"replaceState",value:function(t,e,i){f()?this._history.replaceState(t,e,i):this.location.hash=i}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(t)}},{key:"getState",value:function(){return this._history.state}}]),i}(u);return t.\u0275fac=function(e){return new(e||t)(n.LFG(c))},t.\u0275prov=(0,n.Yz7)({factory:p,token:t,providedIn:"platform"}),t}();function f(){return!!window.history.pushState}function p(){return new d((0,n.LFG)(c))}function g(t,e){if(0==t.length)return e;if(0==e.length)return t;var i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,2==i?t+e.substring(1):1==i?t+e:t+"/"+e}function m(t){var e=t.match(/#|\?|$/),i=e&&e.index||t.length;return t.slice(0,i-("/"===t[i-1]?1:0))+t.slice(i)}function v(t){return t&&"?"!==t[0]?"?"+t:t}var y=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"historyGo",value:function(t){throw new Error("Not implemented")}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:_,token:t,providedIn:"root"}),t}();function _(t){var e=(0,n.LFG)(c).location;return new w((0,n.LFG)(u),e&&e.origin||"")}var b=new n.OlP("appBaseHref"),w=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;if(_classCallCheck(this,i),(r=e.call(this))._platformLocation=t,r._removeListenerFns=[],null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,_possibleConstructorReturn(r)}return _createClass(i,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(t){return g(this._baseHref,t)}},{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._platformLocation.pathname+v(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?"".concat(e).concat(i):e}},{key:"pushState",value:function(t,e,i,n){var r=this.prepareExternalUrl(i+v(n));this._platformLocation.pushState(t,e,r)}},{key:"replaceState",value:function(t,e,i,n){var r=this.prepareExternalUrl(i+v(n));this._platformLocation.replaceState(t,e,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var t,e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(e=(t=this._platformLocation).historyGo)||void 0===e||e.call(t,i)}}]),i}(y);return t.\u0275fac=function(e){return new(e||t)(n.LFG(u),n.LFG(b,8))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t}(),A=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this))._platformLocation=t,r._baseHref="",r._removeListenerFns=[],null!=n&&(r._baseHref=n),r}return _createClass(i,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}},{key:"prepareExternalUrl",value:function(t){var e=g(this._baseHref,t);return e.length>0?"#"+e:e}},{key:"pushState",value:function(t,e,i,n){var r=this.prepareExternalUrl(i+v(n));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}},{key:"replaceState",value:function(t,e,i,n){var r=this.prepareExternalUrl(i+v(n));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var t,e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(e=(t=this._platformLocation).historyGo)||void 0===e||e.call(t,i)}}]),i}(y);return t.\u0275fac=function(e){return new(e||t)(n.LFG(u),n.LFG(b,8))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t}(),k=function(){var t=function(){function t(e,i){var r=this;_classCallCheck(this,t),this._subject=new n.vpe,this._urlChangeListeners=[],this._platformStrategy=e;var o=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=m(T(o)),this._platformStrategy.onPopState(function(t){r._subject.emit({url:r.path(!0),pop:!0,state:t.state,type:t.type})})}return _createClass(t,[{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(t))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(t+v(e))}},{key:"normalize",value:function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,T(e)))}},{key:"prepareExternalUrl",value:function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}},{key:"go",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+v(e)),i)}},{key:"replaceState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+v(e)),i)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var t,e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(e=(t=this._platformStrategy).historyGo)||void 0===e||e.call(t,i)}},{key:"onUrlChange",value:function(t){var e=this;this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(t){e._notifyUrlChangeListeners(t.url,t.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(i){return i(t,e)})}},{key:"subscribe",value:function(t,e,i){return this._subject.subscribe({next:t,error:e,complete:i})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.LFG(y),n.LFG(u))},t.normalizeQueryParams=v,t.joinWithSlash=g,t.stripTrailingSlash=m,t.\u0275prov=(0,n.Yz7)({factory:C,token:t,providedIn:"root"}),t}();function C(){return new k((0,n.LFG)(y),(0,n.LFG)(u))}function T(t){return t.replace(/\/index.html$/,"")}var E=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),S=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),I=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),R=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),x=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function O(t,e){return z((0,n.cg1)(t)[n.wAp.DateFormat],e)}function P(t,e){return z((0,n.cg1)(t)[n.wAp.TimeFormat],e)}function D(t,e){return z((0,n.cg1)(t)[n.wAp.DateTimeFormat],e)}function M(t,e){var i=(0,n.cg1)(t),r=i[n.wAp.NumberSymbols][e];if(void 0===r){if(e===x.CurrencyDecimal)return i[n.wAp.NumberSymbols][x.Decimal];if(e===x.CurrencyGroup)return i[n.wAp.NumberSymbols][x.Group]}return r}var L=n.kL8;function N(t){if(!t[n.wAp.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(t[n.wAp.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function z(t,e){for(var i=e;i>-1;i--)if(void 0!==t[i])return t[i];throw new Error("Locale data API: locale data undefined")}function Z(t){var e=_slicedToArray(t.split(":"),2);return{hours:+e[0],minutes:+e[1]}}var B=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,F={},H=/((?:[^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]*)/,U=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),q=function(t){return 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}({}),G=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function j(t,e,i,n){var r=function(t){if(rt(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){var e=_slicedToArray(t.split("-").map(function(t){return+t}),3),i=e[0],n=e[1],r=void 0===n?1:n,o=e[2];return Y(i,r-1,void 0===o?1:o)}var a,s=parseFloat(t);if(!isNaN(t-s))return new Date(s);if(a=t.match(B))return function(t){var e=new Date(0),i=0,n=0,r=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),r.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));var a=Number(t[4]||0)-i,s=Number(t[5]||0)-n,c=Number(t[6]||0),u=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,a,s,c,u),e}(a)}var c=new Date(t);if(!rt(c))throw new Error('Unable to convert "'.concat(t,'" into a date'));return c}(t);e=K(i,e)||e;for(var o,a=[];e;){if(!(o=H.exec(e))){a.push(e);break}var s=(a=a.concat(o.slice(1))).pop();if(!s)break;e=s}var c=r.getTimezoneOffset();n&&(c=nt(n,c),r=function(t,e,i){var n=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(nt(e,n)-n))}(r,n));var u="";return a.forEach(function(t){var e=function(t){if(it[t])return it[t];var e;switch(t){case"G":case"GG":case"GGG":e=W(G.Eras,I.Abbreviated);break;case"GGGG":e=W(G.Eras,I.Wide);break;case"GGGGG":e=W(G.Eras,I.Narrow);break;case"y":e=Q(q.FullYear,1,0,!1,!0);break;case"yy":e=Q(q.FullYear,2,0,!0,!0);break;case"yyy":e=Q(q.FullYear,3,0,!1,!0);break;case"yyyy":e=Q(q.FullYear,4,0,!1,!0);break;case"Y":e=et(1);break;case"YY":e=et(2,!0);break;case"YYY":e=et(3);break;case"YYYY":e=et(4);break;case"M":case"L":e=Q(q.Month,1,1);break;case"MM":case"LL":e=Q(q.Month,2,1);break;case"MMM":e=W(G.Months,I.Abbreviated);break;case"MMMM":e=W(G.Months,I.Wide);break;case"MMMMM":e=W(G.Months,I.Narrow);break;case"LLL":e=W(G.Months,I.Abbreviated,S.Standalone);break;case"LLLL":e=W(G.Months,I.Wide,S.Standalone);break;case"LLLLL":e=W(G.Months,I.Narrow,S.Standalone);break;case"w":e=tt(1);break;case"ww":e=tt(2);break;case"W":e=tt(1,!0);break;case"d":e=Q(q.Date,1);break;case"dd":e=Q(q.Date,2);break;case"c":case"cc":e=Q(q.Day,1);break;case"ccc":e=W(G.Days,I.Abbreviated,S.Standalone);break;case"cccc":e=W(G.Days,I.Wide,S.Standalone);break;case"ccccc":e=W(G.Days,I.Narrow,S.Standalone);break;case"cccccc":e=W(G.Days,I.Short,S.Standalone);break;case"E":case"EE":case"EEE":e=W(G.Days,I.Abbreviated);break;case"EEEE":e=W(G.Days,I.Wide);break;case"EEEEE":e=W(G.Days,I.Narrow);break;case"EEEEEE":e=W(G.Days,I.Short);break;case"a":case"aa":case"aaa":e=W(G.DayPeriods,I.Abbreviated);break;case"aaaa":e=W(G.DayPeriods,I.Wide);break;case"aaaaa":e=W(G.DayPeriods,I.Narrow);break;case"b":case"bb":case"bbb":e=W(G.DayPeriods,I.Abbreviated,S.Standalone,!0);break;case"bbbb":e=W(G.DayPeriods,I.Wide,S.Standalone,!0);break;case"bbbbb":e=W(G.DayPeriods,I.Narrow,S.Standalone,!0);break;case"B":case"BB":case"BBB":e=W(G.DayPeriods,I.Abbreviated,S.Format,!0);break;case"BBBB":e=W(G.DayPeriods,I.Wide,S.Format,!0);break;case"BBBBB":e=W(G.DayPeriods,I.Narrow,S.Format,!0);break;case"h":e=Q(q.Hours,1,-12);break;case"hh":e=Q(q.Hours,2,-12);break;case"H":e=Q(q.Hours,1);break;case"HH":e=Q(q.Hours,2);break;case"m":e=Q(q.Minutes,1);break;case"mm":e=Q(q.Minutes,2);break;case"s":e=Q(q.Seconds,1);break;case"ss":e=Q(q.Seconds,2);break;case"S":e=Q(q.FractionalSeconds,1);break;case"SS":e=Q(q.FractionalSeconds,2);break;case"SSS":e=Q(q.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=X(U.Short);break;case"ZZZZZ":e=X(U.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=X(U.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=X(U.Long);break;default:return null}return it[t]=e,e}(t);u+=e?e(r,i,c):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function Y(t,e,i){var n=new Date(0);return n.setFullYear(t,e,i),n.setHours(0,0,0),n}function K(t,e){var i=function(t){return(0,n.cg1)(t)[n.wAp.LocaleId]}(t);if(F[i]=F[i]||{},F[i][e])return F[i][e];var r="";switch(e){case"shortDate":r=O(t,R.Short);break;case"mediumDate":r=O(t,R.Medium);break;case"longDate":r=O(t,R.Long);break;case"fullDate":r=O(t,R.Full);break;case"shortTime":r=P(t,R.Short);break;case"mediumTime":r=P(t,R.Medium);break;case"longTime":r=P(t,R.Long);break;case"fullTime":r=P(t,R.Full);break;case"short":var o=K(t,"shortTime"),a=K(t,"shortDate");r=V(D(t,R.Short),[o,a]);break;case"medium":var s=K(t,"mediumTime"),c=K(t,"mediumDate");r=V(D(t,R.Medium),[s,c]);break;case"long":var u=K(t,"longTime"),l=K(t,"longDate");r=V(D(t,R.Long),[u,l]);break;case"full":var h=K(t,"fullTime"),d=K(t,"fullDate");r=V(D(t,R.Full),[h,d])}return r&&(F[i][e]=r),r}function V(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,i){return null!=e&&i in e?e[i]:t})),t}function J(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",n=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,o="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,o=i));for(var a=String(t);a.length2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(o,a){var s,c=function(t,e){switch(t){case q.FullYear:return e.getFullYear();case q.Month:return e.getMonth();case q.Date:return e.getDate();case q.Hours:return e.getHours();case q.Minutes:return e.getMinutes();case q.Seconds:return e.getSeconds();case q.FractionalSeconds:return e.getMilliseconds();case q.Day:return e.getDay();default:throw new Error('Unknown DateType value "'.concat(t,'".'))}}(t,o);if((i>0||c>-i)&&(c+=i),t===q.Hours)0===c&&-12===i&&(c=12);else if(t===q.FractionalSeconds)return s=e,J(c,3).substr(0,s);var u=M(a,x.MinusSign);return J(c,e,u,n,r)}}function W(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S.Format,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(o,a){return function(t,e,i,r,o,a){switch(i){case G.Months:return function(t,e,i){var r=(0,n.cg1)(t),o=z([r[n.wAp.MonthsFormat],r[n.wAp.MonthsStandalone]],e);return z(o,i)}(e,o,r)[t.getMonth()];case G.Days:return function(t,e,i){var r=(0,n.cg1)(t),o=z([r[n.wAp.DaysFormat],r[n.wAp.DaysStandalone]],e);return z(o,i)}(e,o,r)[t.getDay()];case G.DayPeriods:var s=t.getHours(),c=t.getMinutes();if(a){var u=function(t){var e=(0,n.cg1)(t);return N(e),(e[n.wAp.ExtraData][2]||[]).map(function(t){return"string"==typeof t?Z(t):[Z(t[0]),Z(t[1])]})}(e),l=function(t,e,i){var r=(0,n.cg1)(t);N(r);var o=z([r[n.wAp.ExtraData][0],r[n.wAp.ExtraData][1]],e)||[];return z(o,i)||[]}(e,o,r),h=u.findIndex(function(t){if(Array.isArray(t)){var e=_slicedToArray(t,2),i=e[0],n=e[1],r=s>=i.hours&&c>=i.minutes,o=s0?Math.floor(r/60):Math.ceil(r/60);switch(t){case U.Short:return(r>=0?"+":"")+J(a,2,o)+J(Math.abs(r%60),2,o);case U.ShortGMT:return"GMT"+(r>=0?"+":"")+J(a,1,o);case U.Long:return"GMT"+(r>=0?"+":"")+J(a,2,o)+":"+J(Math.abs(r%60),2,o);case U.Extended:return 0===n?"Z":(r>=0?"+":"")+J(a,2,o)+":"+J(Math.abs(r%60),2,o);default:throw new Error('Unknown zone width "'.concat(t,'"'))}}}function $(t){return Y(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function tt(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(i,n){var r,o,a;if(e){var s=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,c=i.getDate();r=1+Math.floor((c+s)/7)}else{var u=$(i),l=(o=u.getFullYear(),a=Y(o,0,1).getDay(),Y(o,0,1+(a<=4?4:11)-a)),h=u.getTime()-l.getTime();r=1+Math.round(h/6048e5)}return J(r,t,M(n,x.MinusSign))}}function et(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(i,n){return J($(i).getFullYear(),t,M(n,x.MinusSign),e)}}var it={};function nt(t,e){t=t.replace(/:/g,"");var i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function rt(t){return t instanceof Date&&!isNaN(t.valueOf())}var ot=function t(){_classCallCheck(this,t)},at=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this)).locale=t,n}return _createClass(i,[{key:"getPluralCategory",value:function(t,e){switch(L(e||this.locale)(t)){case E.Zero:return"zero";case E.One:return"one";case E.Two:return"two";case E.Few:return"few";case E.Many:return"many";default:return"other"}}}]),i}(ot);return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.soG))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t}();function st(t,e){e=encodeURIComponent(e);var i,n=_createForOfIteratorHelper(t.split(";"));try{for(n.s();!(i=n.n()).done;){var r=i.value,o=r.indexOf("="),a=_slicedToArray(-1==o?[r,""]:[r.slice(0,o),r.slice(o+1)],2),s=a[0],c=a[1];if(s.trim()===e)return decodeURIComponent(c)}}catch(u){n.e(u)}finally{n.f()}return null}var ct=function(){var t=function(){function t(e,i,n,r){_classCallCheck(this,t),this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=n,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return _createClass(t,[{key:"klass",set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&((0,n.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}},{key:"_applyKeyValueChanges",value:function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})}},{key:"_applyIterableChanges",value:function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat((0,n.AaK)(t.item)));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})}},{key:"_applyClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!0)}):Object.keys(t).forEach(function(i){return e._toggleClass(i,!!t[i])}))}},{key:"_removeClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!1)}):Object.keys(t).forEach(function(t){return e._toggleClass(t,!1)}))}},{key:"_toggleClass",value:function(t,e){var i=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){e?i._renderer.addClass(i._ngEl.nativeElement,t):i._renderer.removeClass(i._ngEl.nativeElement,t)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.ZZ4),n.Y36(n.aQg),n.Y36(n.SBq),n.Y36(n.Qsj))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t}(),ut=function(){function t(e,i,n,r){_classCallCheck(this,t),this.$implicit=e,this.ngForOf=i,this.index=n,this.count=r}return _createClass(t,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),t}(),lt=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this._viewContainer=e,this._template=i,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return _createClass(t,[{key:"ngForOf",set:function(t){this._ngForOf=t,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(t){this._trackByFn=t}},{key:"ngForTemplate",set:function(t){t&&(this._template=t)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(n){throw new Error("Cannot find a differ supporting object '".concat(t,"' of type '").concat((e=t).name||typeof e,"'. NgFor only supports binding to Iterables such as Arrays."))}}var e;if(this._differ){var i=this._differ.diff(this._ngForOf);i&&this._applyChanges(i)}}},{key:"_applyChanges",value:function(t){var e=this,i=[];t.forEachOperation(function(t,n,r){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new ut(null,e._ngForOf,-1,-1),null===r?void 0:r),a=new ht(t,o);i.push(a)}else if(null==r)e._viewContainer.remove(null===n?void 0:n);else if(null!==n){var s=e._viewContainer.get(n);e._viewContainer.move(s,r);var c=new ht(t,s);i.push(c)}});for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"mediumDate",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(null==e||""===e||e!=e)return null;try{return j(e,i,r||this.locale,n)}catch(o){throw wt(t,o.message)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.soG,16))},t.\u0275pipe=n.Yjl({name:"date",type:t,pure:!0}),t}(),Rt=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:ot,useClass:at}]}),t}(),xt="browser";function Ot(t){return t===xt}function Pt(t){return"server"===t}var Dt=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275prov=(0,n.Yz7)({token:t,providedIn:"root",factory:function(){return new Mt((0,n.LFG)(c),window)}}),t}(),Mt=function(){function t(e,i){_classCallCheck(this,t),this.document=e,this.window=i,this.offset=function(){return[0,0]}}return _createClass(t,[{key:"setOffset",value:function(t){this.offset=Array.isArray(t)?function(){return t}:t}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}},{key:"scrollToPosition",value:function(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}},{key:"scrollToAnchor",value:function(t){if(this.supportsScrolling()){var e=function(t,e){var i=t.getElementById(e)||t.getElementsByName(e)[0];if(i)return i;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow))for(var n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=n.currentNode;r;){var o=r.shadowRoot;if(o){var a=o.getElementById(e)||o.querySelector('[name="'.concat(e,'"]'));if(a)return a}r=n.nextNode()}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}}},{key:"setHistoryScrollRestoration",value:function(t){if(this.supportScrollRestoration()){var e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}},{key:"scrollToElement",value:function(t){var e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,n=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],n-r[1])}},{key:"attemptFocus",value:function(t){return t.focus(),this.document.activeElement===t}},{key:"supportScrollRestoration",value:function(){try{if(!this.supportsScrolling())return!1;var t=Lt(this.window.history)||Lt(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(e){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}]),t}();function Lt(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}var Nt=function t(){_classCallCheck(this,t)}},29063:function(t,e,i){"use strict";i.d(e,{TP:function(){return x},eN:function(){return I},JF:function(){return H},WM:function(){return d},LE:function(){return m},Zn:function(){return T}});var n=i(61511),r=i(31572),o=i(40878),a=i(48318),s=i(436),c=i(43835),u=i(79996),l=function t(){_classCallCheck(this,t)},h=function t(){_classCallCheck(this,t)},d=function(){function t(e){var i=this;_classCallCheck(this,t),this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?function(){i.headers=new Map,e.split("\n").forEach(function(t){var e=t.indexOf(":");if(e>0){var n=t.slice(0,e),r=n.toLowerCase(),o=t.slice(e+1).trim();i.maybeSetNormalizedName(n,r),i.headers.has(r)?i.headers.get(r).push(o):i.headers.set(r,[o])}})}:function(){i.headers=new Map,Object.keys(e).forEach(function(t){var n=e[t],r=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(i.headers.set(r,n),i.maybeSetNormalizedName(t,r))})}:this.headers=new Map}return _createClass(t,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,e){return this.clone({name:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({name:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({name:t,value:e,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}},{key:"init",value:function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(i){e.headers.set(i,t.headers.get(i)),e.normalizedNames.set(i,t.normalizedNames.get(i))})}},{key:"clone",value:function(e){var i=new t;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([e]),i}},{key:"applyUpdate",value:function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);var n=("a"===t.op?this.headers.get(e):void 0)||[];n.push.apply(n,_toConsumableArray(i)),this.headers.set(e,n);break;case"d":var r=t.value;if(r){var o=this.headers.get(e);if(!o)return;0===(o=o.filter(function(t){return-1===r.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}}},{key:"forEach",value:function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(i){return t(e.normalizedNames.get(i),e.headers.get(i))})}}]),t}(),f=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"encodeKey",value:function(t){return p(t)}},{key:"encodeValue",value:function(t){return p(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}();function p(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function g(t){return"".concat(t)}var m=function(){function t(){var e,i,n,r=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_classCallCheck(this,t),this.updates=null,this.cloneFrom=null,this.encoder=o.encoder||new f,o.fromString){if(o.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=o.fromString,i=this.encoder,n=new Map,e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(t){var e=t.indexOf("="),r=_slicedToArray(-1==e?[i.decodeKey(t),""]:[i.decodeKey(t.slice(0,e)),i.decodeValue(t.slice(e+1))],2),o=r[0],a=r[1],s=n.get(o)||[];s.push(a),n.set(o,s)}),n)}else o.fromObject?(this.map=new Map,Object.keys(o.fromObject).forEach(function(t){var e=o.fromObject[t];r.map.set(t,Array.isArray(e)?e:[e])})):this.map=null}return _createClass(t,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var e=this.map.get(t);return e?e[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,e){return this.clone({param:t,value:e,op:"a"})}},{key:"appendAll",value:function(t){var e=[];return Object.keys(t).forEach(function(i){var n=t[i];Array.isArray(n)?n.forEach(function(t){e.push({param:i,value:t,op:"a"})}):e.push({param:i,value:n,op:"a"})}),this.clone(e)}},{key:"set",value:function(t,e){return this.clone({param:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({param:t,value:e,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map(function(e){var i=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return i+"="+t.encoder.encodeValue(e)}).join("&")}).filter(function(t){return""!==t}).join("&")}},{key:"clone",value:function(e){var i=new t({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat(e),i}},{key:"init",value:function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var i=("a"===e.op?t.map.get(e.param):void 0)||[];i.push(g(e.value)),t.map.set(e.param,i);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var n=t.map.get(e.param)||[],r=n.indexOf(g(e.value));-1!==r&&n.splice(r,1),n.length>0?t.map.set(e.param,n):t.map.delete(e.param)}}),this.cloneFrom=this.updates=null)}}]),t}(),v=function(){function t(){_classCallCheck(this,t),this.map=new Map}return _createClass(t,[{key:"set",value:function(t,e){return this.map.set(t,e),this}},{key:"get",value:function(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}},{key:"delete",value:function(t){return this.map.delete(t),this}},{key:"keys",value:function(){return this.map.keys()}}]),t}();function y(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function _(t){return"undefined"!=typeof Blob&&t instanceof Blob}function b(t){return"undefined"!=typeof FormData&&t instanceof FormData}var w=function(){function t(e,i,n,r){var o;if(_classCallCheck(this,t),this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new d),this.context||(this.context=new v),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=i;else{var s=i.indexOf("?");this.urlWithParams=i+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},n=i.method||this.method,r=i.url||this.url,o=i.responseType||this.responseType,a=void 0!==i.body?i.body:this.body,s=void 0!==i.withCredentials?i.withCredentials:this.withCredentials,c=void 0!==i.reportProgress?i.reportProgress:this.reportProgress,u=i.headers||this.headers,l=i.params||this.params,h=null!==(e=i.context)&&void 0!==e?e:this.context;return void 0!==i.setHeaders&&(u=Object.keys(i.setHeaders).reduce(function(t,e){return t.set(e,i.setHeaders[e])},u)),i.setParams&&(l=Object.keys(i.setParams).reduce(function(t,e){return t.set(e,i.setParams[e])},l)),new t(n,r,a,{params:l,headers:u,context:h,reportProgress:c,responseType:o,withCredentials:s})}}]),t}(),A=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({}),k=function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";_classCallCheck(this,t),this.headers=e.headers||new d,this.status=void 0!==e.status?e.status:i,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300},C=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,i),(t=e.call(this,n)).type=A.ResponseHeader,t}return _createClass(i,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new i({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}]),i}(k),T=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,i),(t=e.call(this,n)).type=A.Response,t.body=void 0!==n.body?n.body:null,t}return _createClass(i,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new i({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}]),i}(k),E=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this,t,0,"Unknown Error")).name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for ".concat(t.url||"(unknown url)"):"Http failure response for ".concat(t.url||"(unknown url)",": ").concat(t.status," ").concat(t.statusText),n.error=t.error||null,n}return i}(k);function S(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var I=function(){var t=function(){function t(e){_classCallCheck(this,t),this.handler=e}return _createClass(t,[{key:"request",value:function(t,e){var i,n,r,a=this,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t instanceof w?i=t:(n=l.headers instanceof d?l.headers:new d(l.headers),l.params&&(r=l.params instanceof m?l.params:new m({fromObject:l.params})),i=new w(t,e,void 0!==l.body?l.body:null,{headers:n,context:l.context,params:r,reportProgress:l.reportProgress,responseType:l.responseType||"json",withCredentials:l.withCredentials}));var h=(0,o.of)(i).pipe((0,s.b)(function(t){return a.handler.handle(t)}));if(t instanceof w||"events"===l.observe)return h;var f=h.pipe((0,c.h)(function(t){return t instanceof T}));switch(l.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return f.pipe((0,u.U)(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return f.pipe((0,u.U)(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return f.pipe((0,u.U)(function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return f.pipe((0,u.U)(function(t){return t.body}))}case"response":return f;default:throw new Error("Unreachable: unhandled observe type ".concat(l.observe,"}"))}}},{key:"delete",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",t,e)}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",t,e)}},{key:"head",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",t,e)}},{key:"jsonp",value:function(t,e){return this.request("JSONP",t,{params:(new m).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",t,e)}},{key:"patch",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",t,S(i,e))}},{key:"post",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",t,S(i,e))}},{key:"put",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",t,S(i,e))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(l))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t}(),R=function(){function t(e,i){_classCallCheck(this,t),this.next=e,this.interceptor=i}return _createClass(t,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),t}(),x=new r.OlP("HTTP_INTERCEPTORS"),O=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"intercept",value:function(t,e){return e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t}(),P=/^\)\]\}',?\n/,D=function(){var t=function(){function t(e){_classCallCheck(this,t),this.xhrFactory=e}return _createClass(t,[{key:"handle",value:function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new a.y(function(i){var n=e.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach(function(t,e){return n.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var r=t.detectContentTypeHeader();null!==r&&n.setRequestHeader("Content-Type",r)}if(t.responseType){var o=t.responseType.toLowerCase();n.responseType="json"!==o?o:"text"}var a=t.serializeBody(),s=null,c=function(){if(null!==s)return s;var e=1223===n.status?204:n.status,i=n.statusText||"OK",r=new d(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new C({headers:r,status:e,statusText:i,url:o})},u=function(){var e=c(),r=e.headers,o=e.status,a=e.statusText,s=e.url,u=null;204!==o&&(u=void 0===n.response?n.responseText:n.response),0===o&&(o=u?200:0);var l=o>=200&&o<300;if("json"===t.responseType&&"string"==typeof u){var h=u;u=u.replace(P,"");try{u=""!==u?JSON.parse(u):null}catch(d){u=h,l&&(l=!1,u={error:d,text:u})}}l?(i.next(new T({body:u,headers:r,status:o,statusText:a,url:s||void 0})),i.complete()):i.error(new E({error:u,headers:r,status:o,statusText:a,url:s||void 0}))},l=function(t){var e=c().url,r=new E({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:e||void 0});i.error(r)},h=!1,f=function(e){h||(i.next(c()),h=!0);var r={type:A.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(r.total=e.total),"text"===t.responseType&&n.responseText&&(r.partialText=n.responseText),i.next(r)},p=function(t){var e={type:A.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),i.next(e)};return n.addEventListener("load",u),n.addEventListener("error",l),n.addEventListener("timeout",l),n.addEventListener("abort",l),t.reportProgress&&(n.addEventListener("progress",f),null!==a&&n.upload&&n.upload.addEventListener("progress",p)),n.send(a),i.next({type:A.Sent}),function(){n.removeEventListener("error",l),n.removeEventListener("abort",l),n.removeEventListener("load",u),n.removeEventListener("timeout",l),t.reportProgress&&(n.removeEventListener("progress",f),null!==a&&n.upload&&n.upload.removeEventListener("progress",p)),n.readyState!==n.DONE&&n.abort()}})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.JF))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t}(),M=new r.OlP("XSRF_COOKIE_NAME"),L=new r.OlP("XSRF_HEADER_NAME"),N=function t(){_classCallCheck(this,t)},z=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.doc=e,this.platform=i,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return _createClass(t,[{key:"getToken",value:function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,n.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.K0),r.LFG(r.Lbi),r.LFG(M))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t}(),Z=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.tokenService=e,this.headerName=i}return _createClass(t,[{key:"intercept",value:function(t,e){var i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);var n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(N),r.LFG(L))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t}(),B=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.backend=e,this.injector=i,this.chain=null}return _createClass(t,[{key:"handle",value:function(t){if(null===this.chain){var e=this.injector.get(x,[]);this.chain=e.reduceRight(function(t,e){return new R(t,e)},this.backend)}return this.chain.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(h),r.LFG(r.zs3))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t}(),F=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"disable",value:function(){return{ngModule:t,providers:[{provide:Z,useClass:O}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.cookieName?{provide:M,useValue:e.cookieName}:[],e.headerName?{provide:L,useValue:e.headerName}:[]]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[Z,{provide:x,useExisting:Z,multi:!0},{provide:N,useClass:z},{provide:M,useValue:"XSRF-TOKEN"},{provide:L,useValue:"X-XSRF-TOKEN"}]}),t}(),H=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[I,{provide:l,useClass:B},D,{provide:h,useExisting:D}],imports:[[F.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t}()},31572:function(t,e,i){"use strict";i.d(e,{deG:function(){return ii},tb:function(){return ou},AFp:function(){return tu},ip1:function(){return Xc},CZH:function(){return $c},hGG:function(){return Wu},z2F:function(){return Hu},sBO:function(){return Ys},Sil:function(){return mu},_Vd:function(){return ms},EJc:function(){return cu},SBq:function(){return bs},qLn:function(){return An},vpe:function(){return Pc},gxx:function(){return po},tBr:function(){return Ci},XFs:function(){return x},OlP:function(){return ei},zs3:function(){return Io},ZZ4:function(){return Bs},aQg:function(){return Hs},soG:function(){return su},YKP:function(){return ec},v3s:function(){return qu},h0i:function(){return tc},PXZ:function(){return Nu},R0b:function(){return _u},FiY:function(){return Ti},Lbi:function(){return ru},g9A:function(){return nu},n_E:function(){return Mc},Qsj:function(){return ks},FYo:function(){return As},JOm:function(){return In},Tiy:function(){return Ts},q3G:function(){return fn},tp0:function(){return Ei},EAV:function(){return Yu},Rgc:function(){return Ws},dDg:function(){return Eu},DyG:function(){return ni},GfV:function(){return Es},s_b:function(){return nc},ifc:function(){return L},eFA:function(){return zu},G48:function(){return Mu},Gpc:function(){return f},f3M:function(){return _i},X6Q:function(){return Du},_c5:function(){return Ju},VLi:function(){return Iu},c2e:function(){return au},zSh:function(){return mo},wAp:function(){return rs},vHH:function(){return m},EiD:function(){return hn},mCW:function(){return Ki},qzn:function(){return Ni},JVY:function(){return Zi},pB0:function(){return Ui},eBb:function(){return Fi},L6k:function(){return Bi},LAX:function(){return Hi},cg1:function(){return es},Tjo:function(){return Vu},kL8:function(){return is},yhl:function(){return zi},dqk:function(){return F},sIi:function(){return Zo},CqO:function(){return ua},QGY:function(){return sa},F4k:function(){return ca},RDi:function(){return kt},AaK:function(){return l},z3N:function(){return Li},qOj:function(){return xo},TTD:function(){return yt},_Bn:function(){return fs},xp6:function(){return pr},uIk:function(){return jo},Q2q:function(){return Vo},Tol:function(){return xa},Gre:function(){return Ja},ekj:function(){return Ra},Suo:function(){return Yc},Xpm:function(){return W},lG2:function(){return ot},Yz7:function(){return b},cJS:function(){return w},oAB:function(){return it},Yjl:function(){return at},Y36:function(){return Wo},_UZ:function(){return ia},GkF:function(){return oa},BQk:function(){return ra},ynx:function(){return na},qZA:function(){return ea},TgZ:function(){return ta},EpF:function(){return aa},n5z:function(){return We},Ikx:function(){return Qa},LFG:function(){return yi},$8M:function(){return $e},NdJ:function(){return la},CRH:function(){return Kc},kcU:function(){return me},O4$:function(){return ge},oxw:function(){return ga},ALo:function(){return Tc},lcZ:function(){return Ec},xi3:function(){return Sc},Dn7:function(){return Ic},Hsn:function(){return ya},F$t:function(){return va},Q6J:function(){return Xo},s9C:function(){return _a},MGl:function(){return ba},hYB:function(){return wa},DdM:function(){return vc},VKq:function(){return yc},WLB:function(){return _c},kEZ:function(){return bc},iGM:function(){return Gc},MAs:function(){return Qo},pYS:function(){return En},evT:function(){return Tn},Jf7:function(){return Cn},CHM:function(){return Ut},oJD:function(){return pn},LSH:function(){return gn},B6R:function(){return X},kYT:function(){return nt},Udp:function(){return Ia},WFA:function(){return ha},d8E:function(){return Wa},YNc:function(){return Jo},W1O:function(){return Wc},_uU:function(){return Ua},Oqu:function(){return qa},hij:function(){return Ga},AsE:function(){return ja},lnq:function(){return Ya},HOy:function(){return Ka},xDo:function(){return Va},Gf:function(){return jc}});var n=i(55959),r=i(87570),o=i(48318),a=i(31906),s=i(1055);function c(t){for(var e in t)if(t[e]===c)return e;throw Error("Could not find renamed property on target object.")}function u(t,e){for(var i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function l(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(l).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return"".concat(t.overriddenName);if(t.name)return"".concat(t.name);var e=t.toString();if(null==e)return""+e;var i=e.indexOf("\n");return-1===i?e:e.substring(0,i)}function h(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}var d=c({__forward_ref__:c});function f(t){return t.__forward_ref__=f,t.toString=function(){return l(this())},t}function p(t){return g(t)?t():t}function g(t){return"function"==typeof t&&t.hasOwnProperty(d)&&t.__forward_ref__===f}var m=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,function(t,e){return"".concat(t?"NG0".concat(t,": "):"").concat(e)}(t,n))).code=t,r}return i}(_wrapNativeSuper(Error));function v(t){return"string"==typeof t?t:null==t?"":String(t)}function y(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():v(t)}function _(t,e){var i=e?" in ".concat(e):"";throw new m("201","No provider for ".concat(y(t)," found").concat(i))}function b(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function w(t){return{providers:t.providers||[],imports:t.imports||[]}}function A(t){return k(t,E)||k(t,I)}function k(t,e){return t.hasOwnProperty(e)?t[e]:null}function C(t){return t&&(t.hasOwnProperty(S)||t.hasOwnProperty(R))?t[S]:null}var T,E=c({"\u0275prov":c}),S=c({"\u0275inj":c}),I=c({ngInjectableDef:c}),R=c({ngInjectorDef:c}),x=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function O(t){var e=T;return T=t,e}function P(t,e,i){var n=A(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:i&x.Optional?null:void 0!==e?e:void _(l(t),"Injector")}function D(t){return{toString:t}.toString()}var M=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),L=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({}),N="undefined"!=typeof globalThis&&globalThis,z="undefined"!=typeof window&&window,Z="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,B="undefined"!=typeof global&&global,F=N||B||z||Z,H={},U=[],q=c({"\u0275cmp":c}),G=c({"\u0275dir":c}),j=c({"\u0275pipe":c}),Y=c({"\u0275mod":c}),K=c({"\u0275loc":c}),V=c({"\u0275fac":c}),J=c({__NG_ELEMENT_ID__:c}),Q=0;function W(t){return D(function(){var e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===M.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||U,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||L.Emulated,id:"c",styles:t.styles||U,_:null,setInput:null,schemas:t.schemas||null,tView:null},n=t.directives,r=t.features,o=t.pipes;return i.id+=Q++,i.inputs=rt(t.inputs,e),i.outputs=rt(t.outputs),r&&r.forEach(function(t){return t(i)}),i.directiveDefs=n?function(){return("function"==typeof n?n():n).map($)}:null,i.pipeDefs=o?function(){return("function"==typeof o?o():o).map(tt)}:null,i})}function X(t,e,i){var n=t.\u0275cmp;n.directiveDefs=function(){return e.map($)},n.pipeDefs=function(){return i.map(tt)}}function $(t){return st(t)||function(t){return t[G]||null}(t)}function tt(t){return function(t){return t[j]||null}(t)}var et={};function it(t){return D(function(){var e={type:t.type,bootstrap:t.bootstrap||U,declarations:t.declarations||U,imports:t.imports||U,exports:t.exports||U,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(et[t.id]=t.type),e})}function nt(t,e){return D(function(){var i=ct(t,!0);i.declarations=e.declarations||U,i.imports=e.imports||U,i.exports=e.exports||U})}function rt(t,e){if(null==t)return H;var i={};for(var n in t)if(t.hasOwnProperty(n)){var r=t[n],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),i[r]=n,e&&(e[r]=o)}return i}var ot=W;function at(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function st(t){return t[q]||null}function ct(t,e){var i=t[Y]||null;if(!i&&!0===e)throw new Error("Type ".concat(l(t)," does not have '\u0275mod' property."));return i}function ut(t){return Array.isArray(t)&&"object"==typeof t[1]}function lt(t){return Array.isArray(t)&&!0===t[1]}function ht(t){return 0!=(8&t.flags)}function dt(t){return 2==(2&t.flags)}function ft(t){return 1==(1&t.flags)}function pt(t){return null!==t.template}function gt(t,e){return t.hasOwnProperty(V)?t[V]:null}var mt,vt=function(){function t(e,i,n){_classCallCheck(this,t),this.previousValue=e,this.currentValue=i,this.firstChange=n}return _createClass(t,[{key:"isFirstChange",value:function(){return this.firstChange}}]),t}();function yt(){return _t}function _t(t){return t.type.prototype.ngOnChanges&&(t.setInput=wt),bt}function bt(){var t=At(this),e=null==t?void 0:t.current;if(e){var i=t.previous;if(i===H)t.previous=e;else for(var n in e)i[n]=e[n];t.current=null,this.ngOnChanges(e)}}function wt(t,e,i,n){var r=At(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:H,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[i],c=a[s];o[s]=new vt(c&&c.currentValue,e,a===H),t[n]=e}function At(t){return t.__ngSimpleChanges__||null}function kt(t){mt=t}function Ct(){return void 0!==mt?mt:"undefined"!=typeof document?document:void 0}function Tt(t){return!!t.listen}yt.ngInherit=!0;var Et={createRenderer:function(t,e){return Ct()}};function St(t){for(;Array.isArray(t);)t=t[0];return t}function It(t,e){return St(e[t])}function Rt(t,e){return St(e[t.index])}function xt(t,e){return t.data[e]}function Ot(t,e){return t[e]}function Pt(t,e){var i=e[t];return ut(i)?i:i[0]}function Dt(t){return 4==(4&t[2])}function Mt(t){return 128==(128&t[2])}function Lt(t,e){return null==e?null:t[e]}function Nt(t){t[18]=0}function zt(t,e){t[5]+=e;for(var i=t,n=t[3];null!==n&&(1===e&&1===i[5]||-1===e&&0===i[5]);)n[5]+=e,i=n,n=n[3]}var Zt={lFrame:ce(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Bt(){return Zt.bindingsEnabled}function Ft(){return Zt.lFrame.lView}function Ht(){return Zt.lFrame.tView}function Ut(t){return Zt.lFrame.contextLView=t,t[8]}function qt(){for(var t=Gt();null!==t&&64===t.type;)t=t.parent;return t}function Gt(){return Zt.lFrame.currentTNode}function jt(t,e){var i=Zt.lFrame;i.currentTNode=t,i.isParent=e}function Yt(){return Zt.lFrame.isParent}function Kt(){Zt.lFrame.isParent=!1}function Vt(){return Zt.isInCheckNoChangesMode}function Jt(t){Zt.isInCheckNoChangesMode=t}function Qt(){var t=Zt.lFrame,e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Wt(){return Zt.lFrame.bindingIndex}function Xt(){return Zt.lFrame.bindingIndex++}function $t(t){var e=Zt.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function te(t){Zt.lFrame.currentDirectiveIndex=t}function ee(t){var e=Zt.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function ie(){return Zt.lFrame.currentQueryIndex}function ne(t){Zt.lFrame.currentQueryIndex=t}function re(t){var e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function oe(t,e,i){if(i&x.SkipSelf){for(var n=e,r=t;!(null!==(n=n.parent)||i&x.Host||(n=re(r),null===n)||(r=r[15],10&n.type)););if(null===n)return!1;e=n,t=r}var o=Zt.lFrame=se();return o.currentTNode=e,o.lView=t,!0}function ae(t){var e=se(),i=t[1];Zt.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function se(){var t=Zt.lFrame,e=null===t?null:t.child;return null===e?ce(t):e}function ce(t){var e={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:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function ue(){var t=Zt.lFrame;return Zt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var le=ue;function he(){var t=ue();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function de(){return Zt.lFrame.selectedIndex}function fe(t){Zt.lFrame.selectedIndex=t}function pe(){var t=Zt.lFrame;return xt(t.tView,t.selectedIndex)}function ge(){Zt.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function me(){Zt.lFrame.currentNamespace=null}function ve(t,e){for(var i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[s]<0&&(t[18]+=65536),(a>11>16&&(3&t[2])===e){t[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}var ke=function t(e,i,n){_classCallCheck(this,t),this.factory=e,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=n};function Ce(t,e,i){for(var n=Tt(t),r=0;re){a=o-1;break}}}for(;o>16,n=e;i>0;)n=n[15],i--;return n}var Pe=!0;function De(t){var e=Pe;return Pe=t,e}var Me=0;function Le(t,e){var i=ze(t,e);if(-1!==i)return i;var n=e[1];n.firstCreatePass&&(t.injectorIndex=e.length,Ne(n.data,t),Ne(e,null),Ne(n.blueprint,null));var r=Ze(t,e),o=t.injectorIndex;if(Re(r))for(var a=xe(r),s=Oe(r,e),c=s[1].data,u=0;u<8;u++)e[o+u]=s[a+u]|c[a+u];return e[o+8]=r,o}function Ne(t,e){t.push(0,0,0,0,0,0,0,0,e)}function ze(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Ze(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var i=0,n=null,r=e;null!==r;){var o=r[1],a=o.type;if(null===(n=2===a?o.declTNode:1===a?r[6]:null))return-1;if(i++,r=r[15],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return-1}function Be(t,e,i){!function(t,e,i){var n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty(J)&&(n=i[J]),null==n&&(n=i[J]=Me++);var r=255&n;e.data[t+(r>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:x.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==t){var o=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;var e=t.hasOwnProperty(J)?t[J]:void 0;return"number"==typeof e?e>=0?255&e:Ge:e}(i);if("function"==typeof o){if(!oe(e,t,n))return n&x.Host?Fe(r,i,n):He(e,i,n,r);try{var a=o(n);if(null!=a||n&x.Optional)return a;_(i)}finally{le()}}else if("number"==typeof o){var s=null,c=ze(t,e),u=-1,l=n&x.Host?e[16][6]:null;for((-1===c||n&x.SkipSelf)&&(-1!==(u=-1===c?Ze(t,e):e[c+8])&&Je(n,!1)?(s=e[1],c=xe(u),e=Oe(u,e)):c=-1);-1!==c;){var h=e[1];if(Ve(o,c,h.data)){var d=je(c,e,i,s,n,l);if(d!==qe)return d}-1!==(u=e[c+8])&&Je(n,e[1].data[c+8]===l)&&Ve(o,c,e)?(s=h,c=xe(u),e=Oe(u,e)):c=-1}}}return He(e,i,n,r)}var qe={};function Ge(){return new Qe(qt(),Ft())}function je(t,e,i,n,r,o){var a=e[1],s=a.data[t+8],c=Ye(s,a,i,null==n?dt(s)&&Pe:n!=a&&0!=(3&s.type),r&x.Host&&o===s);return null!==c?Ke(e,a,c,s):qe}function Ye(t,e,i,n,r){for(var o=t.providerIndexes,a=e.data,s=1048575&o,c=t.directiveStart,u=o>>20,l=r?s+u:t.directiveEnd,h=n?s:s+u;h=c&&d.type===i)return h}if(r){var f=a[c];if(f&&pt(f)&&f.type===i)return c}return null}function Ke(t,e,i,n){var r=t[i],o=e.data;if(r instanceof ke){var a=r;a.resolving&&function(t,e){throw new m("200","Circular dependency in DI detected for ".concat(t))}(y(o[i]));var s=De(a.canSeeViewProviders);a.resolving=!0;var c=a.injectImpl?O(a.injectImpl):null;oe(t,n,x.Default);try{r=t[i]=a.factory(void 0,o,t,n),e.firstCreatePass&&i>=n.directiveStart&&function(t,e,i){var n=e.type.prototype,r=n.ngOnChanges,o=n.ngOnInit,a=n.ngDoCheck;if(r){var s=_t(e);(i.preOrderHooks||(i.preOrderHooks=[])).push(t,s),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,s)}o&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-t,o),a&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,a),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,a))}(i,o[i],e)}finally{null!==c&&O(c),De(s),a.resolving=!1,le()}}return r}function Ve(t,e,i){return!!(i[e+(t>>5)]&1<=t.length?t.push(i):t.splice(e,0,i)}function si(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function ci(t,e){for(var i=[],n=0;n=0?t[1|n]=i:function(t,e,i,n){var r=t.length;if(r==e)t.push(i,n);else if(1===r)t.push(n,t[0]),t[0]=i;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=i,t[e+1]=n}}(t,n=~n,e,i),n}function li(t,e){var i=hi(t,e);if(i>=0)return t[1|i]}function hi(t,e){return function(t,e,i){for(var n=0,r=t.length>>1;r!==n;){var o=n+(r-n>>1),a=t[o<<1];if(e===a)return o<<1;a>e?r=o:n=o+1}return~(r<<1)}(t,e)}var di,fi={},pi=/\n/gm,gi=c({provide:String,useValue:c});function mi(t){var e=di;return di=t,e}function vi(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:x.Default;if(void 0===di)throw new Error("inject() must be called from an injection context");return null===di?P(t,void 0,e):di.get(t,e&x.Optional?null:void 0,e)}function yi(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:x.Default;return(T||vi)(p(t),e)}var _i=yi;function bi(t){for(var e=[],i=0;i"),!0}},{key:"endElement",value:function(t){var e=t.nodeName.toLowerCase();en.hasOwnProperty(e)&&!Wi.hasOwnProperty(e)&&(this.buf.push(""))}},{key:"chars",value:function(t){this.buf.push(ln(t))}},{key:"checkClobberedElement",value:function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(t.outerHTML));return e}}]),t}(),cn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,un=/([^\#-~ |!])/g;function ln(t){return t.replace(/&/g,"&").replace(cn,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(un,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}function hn(t,e){var i=null;try{Qi=Qi||function(t){var e=new Gi(t);return function(){try{return!!(new window.DOMParser).parseFromString(Si(""),"text/html")}catch(t){return!1}}()?new qi(e):e}(t);var n=e?String(e):"";i=Qi.getInertBodyElement(n);var r=5,o=n;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,n=o,o=i.innerHTML,i=Qi.getInertBodyElement(n)}while(n!==o);return Si((new sn).sanitizeChildren(dn(i)||i))}finally{if(i)for(var a=dn(i)||i;a.firstChild;)a.removeChild(a.firstChild)}}function dn(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var fn=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function pn(t){var e=mn();return e?Ii(e.sanitize(fn.HTML,t)||""):Ni(t,"HTML")?Ii(Li(t)):hn(Ct(),v(t))}function gn(t){var e=mn();return e?e.sanitize(fn.URL,t)||"":Ni(t,"URL")?Li(t):Ki(v(t))}function mn(){var t=Ft();return t&&t[12]}function vn(t,e){t.__ngContext__=e}function yn(t){var e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function _n(t){return t.ngDebugContext}function bn(t){return t.ngOriginalError}function wn(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n0&&(t[n-1][4]=r[4]);var a=si(t,10+e);Xn(r[1],i=r,i[11],2,null,null),i[0]=null,i[6]=null;var s=a[19];null!==s&&s.detachView(a[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function Zn(t,e){if(!(256&e[2])){var i=e[11];Tt(i)&&i.destroyNode&&Xn(t,e,i,3,null,null),function(t){var e=t[13];if(!e)return Bn(t[1],t);for(;e;){var i=null;if(ut(e))i=e[13];else{var n=e[10];n&&(i=n)}if(!i){for(;e&&!e[4]&&e!==t;)ut(e)&&Bn(e[1],e),e=e[3];null===e&&(e=t),ut(e)&&Bn(e[1],e),i=e&&e[4]}e=i}}(e)}}function Bn(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){var i;if(null!=t&&null!=(i=t.destroyHooks))for(var n=0;n=0?n[r=u]():n[r=-u].unsubscribe(),o+=2}else{var l=n[r=i[o+1]];i[o].call(l)}if(null!==n){for(var h=r+1;ho?"":r[l+1].toLowerCase();var d=8&n?h:null;if(d&&-1!==ir(d,u,0)||2&n&&u!==h){if(sr(n))return!1;a=!0}}}}else{if(!a&&!sr(n)&&!sr(c))return!1;if(a&&sr(c))continue;a=!1,n=c|1&n}}return sr(n)||a}function sr(t){return 0==(1&t)}function cr(t,e,i,n){if(null===e)return-1;var r=0;if(n||!i){for(var o=!1;r-1)for(i++;i2&&void 0!==arguments[2]&&arguments[2],n=0;n0?'="'+s+'"':"")+"]"}else 8&n?r+="."+a:4&n&&(r+=" "+a);else""===r||sr(a)||(e+=hr(o,r),r=""),n=a,o=o||!sr(n);i++}return""!==r&&(e+=hr(o,r)),e}var fr={};function pr(t){gr(Ht(),Ft(),de()+t,Vt())}function gr(t,e,i,n){if(!n)if(3==(3&e[2])){var r=t.preOrderCheckHooks;null!==r&&ye(e,r,i)}else{var o=t.preOrderHooks;null!==o&&_e(e,o,0,i)}fe(i)}function mr(t,e){return t<<17|e<<2}function vr(t){return t>>17&32767}function yr(t){return 2|t}function _r(t){return(131068&t)>>2}function br(t,e){return-131069&t|e<<2}function wr(t){return 1|t}function Ar(t,e){var i=t.contentQueries;if(null!==i)for(var n=0;n20&&gr(t,e,20,Vt()),i(n,r)}finally{fe(o)}}function xr(t,e,i){if(ht(e))for(var n=e.directiveEnd,r=e.directiveStart;r2&&void 0!==arguments[2]?arguments[2]:Rt,n=e.localNames;if(null!==n)for(var r=e.index+1,o=0;o0;){var i=t[--e];if("number"==typeof i&&i<0)return i}return 0})(s)!=c&&s.push(c),s.push(n,r,a)}}function Fr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Hr(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Ur(t,e,i){if(i){if(e.exportAs)for(var n=0;n0&&Wr(i)}}function Wr(t){for(var e=On(t);null!==e;e=Pn(e))for(var i=10;i0&&Wr(n)}var o=t[1].components;if(null!==o)for(var a=0;a0&&Wr(s)}}function Xr(t,e){var i=Pt(e,t),n=i[1];!function(t,e){for(var i=e.length;i1&&void 0!==arguments[1]?arguments[1]:fi;if(e===fi){var i=new Error("NullInjectorError: No provider for ".concat(l(t),"!"));throw i.name="NullInjectorError",i}return e}}]),t}(),mo=new ei("Set Injector scope."),vo={},yo={};function _o(){return void 0===fo&&(fo=new go),fo}function bo(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0;return new wo(t,i,e||_o(),n)}var wo=function(){function t(e,i,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,t),this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];i&&oi(i,function(t){return r.processProvider(t,e,i)}),oi([e],function(t){return r.processInjectorType(t,[],a)}),this.records.set(po,Co(void 0,this));var s=this.records.get(mo);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof e?null:l(e))}return _createClass(t,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fi,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:x.Default;this.assertNotDestroyed();var n,r=mi(this);try{if(!(i&x.SkipSelf)){var o=this.records.get(t);if(void 0===o){var a=("function"==typeof(n=t)||"object"==typeof n&&n instanceof ei)&&A(t);o=a&&this.injectableDefInScope(a)?Co(Ao(t),vo):null,this.records.set(t,o)}if(null!=o)return this.hydrate(t,o)}return(i&x.Self?_o():this.parent).get(t,e=i&x.Optional&&e===fi?null:e)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(l(t)),r)throw s;return function(t,e,i,n){var r=t.ngTempTokenPath;throw e.__source&&r.unshift(e.__source),t.message=function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;var r=l(e);if(Array.isArray(e))r=e.map(l).join(" -> ");else if("object"==typeof e){var o=[];for(var a in e)if(e.hasOwnProperty(a)){var s=e[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):l(s)))}r="{".concat(o.join(", "),"}")}return"".concat(i).concat(n?"("+n+")":"","[").concat(r,"]: ").concat(t.replace(pi,"\n "))}("\n"+t.message,r,"R3InjectorError",n),t.ngTokenPath=r,t.ngTempTokenPath=null,t}(s,t,0,this.source)}throw s}finally{mi(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach(function(e){return t.get(e)})}},{key:"toString",value:function(){var t=[];return this.records.forEach(function(e,i){return t.push(l(i))}),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(t,e,i){var n=this;if(!(t=p(t)))return!1;var r=C(t),o=null==r&&t.ngModule||void 0,a=void 0===o?t:o,s=-1!==i.indexOf(a);if(void 0!==o&&(r=C(o)),null==r)return!1;if(null!=r.imports&&!s){var c;i.push(a);try{oi(r.imports,function(t){n.processInjectorType(t,e,i)&&(void 0===c&&(c=[]),c.push(t))})}finally{}if(void 0!==c)for(var u=function(t){var e=c[t],i=e.ngModule,r=e.providers;oi(r,function(t){return n.processProvider(t,i,r||U)})},l=0;l0){var i=ci(e,"?");throw new Error("Can't resolve all parameters for ".concat(l(t),": (").concat(i.join(", "),")."))}var n=function(t){var e=t&&(t[E]||t[I]);if(e){var i=function(t){if(t.hasOwnProperty("name"))return t.name;var e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(i,'" 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 "').concat(i,'" class.')),e}return null}(t);return null!==n?function(){return n.factory(t)}:function(){return new t}}(t);throw new Error("unreachable")}function ko(t,e,i){var n,r;if(Eo(t)){var o=p(t);return gt(o)||Ao(o)}if(To(t))n=function(){return p(t.useValue)};else if((r=t)&&r.useFactory)n=function(){return t.useFactory.apply(t,_toConsumableArray(bi(t.deps||[])))};else if(function(t){return!(!t||!t.useExisting)}(t))n=function(){return yi(p(t.useExisting))};else{var a=p(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return gt(a)||Ao(a);n=function(){return _construct(a,_toConsumableArray(bi(t.deps)))}}return n}function Co(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:t,value:e,multi:i?[]:void 0}}function To(t){return null!==t&&"object"==typeof t&&gi in t}function Eo(t){return"function"==typeof t}var So=function(t,e,i){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0,r=bo(t,e,i,n);return r._resolveInjectorDefTypes(),r}({name:i},e,t,i)},Io=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"create",value:function(t,e){return Array.isArray(t)?So(t,e,""):So(t.providers,t.parent,t.name||"")}}]),t}();return t.THROW_IF_NOT_FOUND=fi,t.NULL=new go,t.\u0275prov=b({token:t,providedIn:"any",factory:function(){return yi(po)}}),t.__NG_ELEMENT_ID__=-1,t}();function Ro(t,e){ve(yn(t)[1],qt())}function xo(t){for(var e=Object.getPrototypeOf(t.type.prototype).constructor,i=!0,n=[t];e;){var r=void 0;if(pt(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");r=e.\u0275dir}if(r){if(i){n.push(r);var o=t;o.inputs=Oo(t.inputs),o.declaredInputs=Oo(t.declaredInputs),o.outputs=Oo(t.outputs);var a=r.hostBindings;a&&Mo(t,a);var s=r.viewQuery,c=r.contentQueries;if(s&&Po(t,s),c&&Do(t,c),u(t.inputs,r.inputs),u(t.declaredInputs,r.declaredInputs),u(t.outputs,r.outputs),pt(r)&&r.data.animation){var l=t.data;l.animation=(l.animation||[]).concat(r.data.animation)}}var h=r.features;if(h)for(var d=0;d=0;n--){var r=t[n];r.hostVars=e+=r.hostVars,r.hostAttrs=Se(r.hostAttrs,i=Se(i,r.hostAttrs))}}(n)}function Oo(t){return t===H?{}:t===U?[]:t}function Po(t,e){var i=t.viewQuery;t.viewQuery=i?function(t,n){e(t,n),i(t,n)}:e}function Do(t,e){var i=t.contentQueries;t.contentQueries=i?function(t,n,r){e(t,n,r),i(t,n,r)}:e}function Mo(t,e){var i=t.hostBindings;t.hostBindings=i?function(t,n){e(t,n),i(t,n)}:e}var Lo=null;function No(){if(!Lo){var t=F.Symbol;if(t&&t.iterator)Lo=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),i=0;i1&&void 0!==arguments[1]?arguments[1]:x.Default,i=Ft();return null===i?yi(t,e):Ue(qt(),i,p(t),e)}function Xo(t,e,i){var n=Ft();return Ho(n,Xt(),e)&&zr(Ht(),pe(),n,t,e,n[11],i,!1),Xo}function $o(t,e,i,n,r){var o=r?"class":"style";uo(t,i,e.inputs[o],o,n)}function ta(t,e,i,n){var r=Ft(),o=Ht(),a=20+t,s=r[11],c=r[a]=Ln(s,e,Zt.lFrame.currentNamespace),u=o.firstCreatePass?function(t,e,i,n,r,o,a){var s=e.consts,c=Cr(e,t,2,r,Lt(s,o));return Zr(e,i,c,Lt(s,a)),null!==c.attrs&&ho(c,c.attrs,!1),null!==c.mergedAttrs&&ho(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(a,o,r,0,e,i,n):o.data[a];jt(u,!0);var l=u.mergedAttrs;null!==l&&Ce(s,c,l);var h=u.classes;null!==h&&er(s,c,h);var d=u.styles;null!==d&&tr(s,c,d),64!=(64&u.flags)&&Kn(o,r,c,u),0===Zt.lFrame.elementDepthCount&&vn(c,r),Zt.lFrame.elementDepthCount++,ft(u)&&(Or(o,r,u),xr(o,u,r)),null!==n&&Pr(r,u)}function ea(){var t=qt();Yt()?Kt():jt(t=t.parent,!1);var e=t;Zt.lFrame.elementDepthCount--;var i=Ht();i.firstCreatePass&&(ve(i,t),ht(t)&&i.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&$o(i,e,Ft(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&$o(i,e,Ft(),e.stylesWithoutHost,!1)}function ia(t,e,i,n){ta(t,e,i,n),ea()}function na(t,e,i){var n=Ft(),r=Ht(),o=t+20,a=r.firstCreatePass?function(t,e,i,n,r){var o=e.consts,a=Lt(o,n),s=Cr(e,t,8,"ng-container",a);return null!==a&&ho(s,a,!0),Zr(e,i,s,Lt(o,r)),null!==e.queries&&e.queries.elementStart(e,s),s}(o,r,n,e,i):r.data[o];jt(a,!0);var s=n[o]=n[11].createComment("");Kn(r,n,s,a),vn(s,n),ft(a)&&(Or(r,n,a),xr(r,a,n)),null!=i&&Pr(n,a)}function ra(){var t=qt(),e=Ht();Yt()?Kt():jt(t=t.parent,!1),e.firstCreatePass&&(ve(e,t),ht(t)&&e.queries.elementEnd(t))}function oa(t,e,i){na(t,e,i),ra()}function aa(){return Ft()}function sa(t){return!!t&&"function"==typeof t.then}function ca(t){return!!t&&"function"==typeof t.subscribe}var ua=ca;function la(t,e,i,n){var r=Ft(),o=Ht(),a=qt();return da(o,r,r[11],a,t,e,!!i,n),la}function ha(t,e){var i=qt(),n=Ft(),r=Ht();return da(r,n,so(ee(r.data),i,n),i,t,e,!1),ha}function da(t,e,i,n,r,o,a,s){var c=ft(n),u=t.firstCreatePass&&ao(t),l=oo(e),h=!0;if(3&n.type||s){var d=Rt(n,e),f=s?s(d):d,p=l.length,g=s?function(t){return s(St(t[n.index]))}:n.index;if(Tt(i)){var m=null;if(!s&&c&&(m=function(t,e,i,n){var r=t.cleanup;if(null!=r)for(var o=0;oc?s[c]:null}"string"==typeof a&&(o+=2)}return null}(t,e,r,n.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=o,m.__ngLastListenerFn__=o,h=!1;else{o=pa(n,e,0,o,!1);var v=i.listen(f,r,o);l.push(o,v),u&&u.push(r,g,p,p+1)}}else o=pa(n,e,0,o,!0),f.addEventListener(r,o,a),l.push(o),u&&u.push(r,g,p,a)}else o=pa(n,e,0,o,!1);var y,_=n.outputs;if(h&&null!==_&&(y=_[r])){var b=y.length;if(b)for(var w=0;w0&&void 0!==arguments[0]?arguments[0]:1;return function(t){return(Zt.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Zt.lFrame.contextLView))[8]}(t)}function ma(t,e){for(var i=null,n=function(t){var e=t.attrs;if(null!=e){var i=e.indexOf(5);if(0==(1&i))return e[i+1]}return null}(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,n=Ft(),r=Ht(),o=Cr(r,20+t,16,null,i||null);null===o.projection&&(o.projection=e),Kt(),64!=(64&o.flags)&&function(t,e,i){$n(e[11],0,e,i,Fn(t,i,e),jn(i.parent||e[6],i,e))}(r,n,o)}function _a(t,e,i){return ba(t,"",e,"",i),_a}function ba(t,e,i,n,r){var o=Ft(),a=Yo(o,e,i,n);return a!==fr&&zr(Ht(),pe(),o,t,a,o[11],r,!1),ba}function wa(t,e,i,n,r,o,a){var s=Ft(),c=Ko(s,e,i,n,r,o);return c!==fr&&zr(Ht(),pe(),s,t,c,s[11],a,!1),wa}function Aa(t,e,i,n,r){for(var o=t[i+1],a=null===e,s=n?vr(o):_r(o),c=!1;0!==s&&(!1===c||a);){var u=t[s+1];ka(t[s],e)&&(c=!0,t[s+1]=n?wr(u):yr(u)),s=n?vr(u):_r(u)}c&&(t[i+1]=n?yr(o):wr(o))}function ka(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&hi(t,e)>=0}var Ca={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ta(t){return t.substring(Ca.key,Ca.keyEnd)}function Ea(t,e){var i=Ca.textEnd;return i===e?-1:(e=Ca.keyEnd=function(t,e,i){for(;e32;)e++;return e}(t,Ca.key=e,i),Sa(t,e,i))}function Sa(t,e,i){for(;e=0;i=Ea(e,i))ui(t,Ta(e),!0)}function Pa(t,e,i,n){var r=Ft(),o=Ht(),a=$t(2);o.firstUpdatePass&&La(o,t,a,n),e!==fr&&Ho(r,a,e)&&Za(o,o.data[de()],r,r[11],t,r[a+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=l(Li(t)))),t}(e,i),n,a)}function Da(t,e,i,n){var r=Ht(),o=$t(2);r.firstUpdatePass&&La(r,null,o,n);var a=Ft();if(i!==fr&&Ho(a,o,i)){var s=r.data[de()];if(Ha(s,n)&&!Ma(r,o)){var c=n?s.classesWithoutHost:s.stylesWithoutHost;null!==c&&(i=h(c,i||"")),$o(r,s,a,i,n)}else!function(t,e,i,n,r,o,a,s){r===fr&&(r=U);for(var c=0,u=0,l=0=t.expandoStartIndex}function La(t,e,i,n){var r=t.data;if(null===r[i+1]){var o=r[de()],a=Ma(t,i);Ha(o,n)&&null===e&&!a&&(e=!1),e=function(t,e,i,n){var r=ee(t),o=n?e.residualClasses:e.residualStyles;if(null===r)0===(n?e.classBindings:e.styleBindings)&&(i=za(i=Na(null,t,e,i,n),e.attrs,n),o=null);else{var a=e.directiveStylingLast;if(-1===a||t[a]!==r)if(i=Na(r,t,e,i,n),null===o){var s=function(t,e,i){var n=i?e.classBindings:e.styleBindings;if(0!==_r(n))return t[vr(n)]}(t,e,n);void 0!==s&&Array.isArray(s)&&function(t,e,i,n){t[vr(i?e.classBindings:e.styleBindings)]=n}(t,e,n,s=za(s=Na(null,t,e,s[1],n),e.attrs,n))}else o=function(t,e,i){for(var n,r=e.directiveEnd,o=1+e.directiveStylingLast;o0)&&(l=!0)}else u=i;if(r)if(0!==c){var d=vr(t[s+1]);t[n+1]=mr(d,s),0!==d&&(t[d+1]=br(t[d+1],n)),t[s+1]=131071&t[s+1]|n<<17}else t[n+1]=mr(s,0),0!==s&&(t[s+1]=br(t[s+1],n)),s=n;else t[n+1]=mr(c,0),0===s?s=n:t[c+1]=br(t[c+1],n),c=n;l&&(t[n+1]=yr(t[n+1])),Aa(t,u,n,!0),Aa(t,u,n,!1),function(t,e,i,n,r){var o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&hi(o,e)>=0&&(i[n+1]=wr(i[n+1]))}(e,u,t,n,o),a=mr(s,c),o?e.classBindings=a:e.styleBindings=a}(r,o,e,i,a,n)}}function Na(t,e,i,n,r){var o=null,a=i.directiveEnd,s=i.directiveStylingLast;for(-1===s?s=i.directiveStart:s++;s0;){var c=t[r],u=Array.isArray(c),l=u?c[1]:c,h=null===l,d=i[r+1];d===fr&&(d=h?U:void 0);var f=h?li(d,n):l===n?d:void 0;if(u&&!Fa(f)&&(f=li(c,n)),Fa(f)&&(a=f,s))return a;var p=t[r+1];r=s?vr(p):_r(p)}if(null!==e){var g=o?e.residualClasses:e.residualStyles;null!=g&&(a=li(g,n))}return a}function Fa(t){return void 0!==t}function Ha(t,e){return 0!=(t.flags&(e?16:32))}function Ua(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=Ft(),n=Ht(),r=t+20,o=n.firstCreatePass?Cr(n,r,1,e,null):n.data[r],a=i[r]=function(t,e){return Tt(t)?t.createText(e):t.createTextNode(e)}(i[11],e);Kn(n,i,a,o),jt(o,!1)}function qa(t){return Ga("",t,""),qa}function Ga(t,e,i){var n=Ft(),r=Yo(n,t,e,i);return r!==fr&&lo(n,de(),r),Ga}function ja(t,e,i,n,r){var o=Ft(),a=Ko(o,t,e,i,n,r);return a!==fr&&lo(o,de(),a),ja}function Ya(t,e,i,n,r,o,a){var s=Ft(),c=function(t,e,i,n,r,o,a,s){var c=qo(t,Wt(),i,r,a);return $t(3),c?e+v(i)+n+v(r)+o+v(a)+s:fr}(s,t,e,i,n,r,o,a);return c!==fr&&lo(s,de(),c),Ya}function Ka(t,e,i,n,r,o,a,s,c){var u=Ft(),l=function(t,e,i,n,r,o,a,s,c,u){var l=Go(t,Wt(),i,r,a,c);return $t(4),l?e+v(i)+n+v(r)+o+v(a)+s+v(c)+u:fr}(u,t,e,i,n,r,o,a,s,c);return l!==fr&&lo(u,de(),l),Ka}function Va(t,e,i,n,r,o,a,s,c,u,l){var h=Ft(),d=function(t,e,i,n,r,o,a,s,c,u,l,h){var d=Wt(),f=Go(t,d,i,r,a,c);return f=Ho(t,d+4,l)||f,$t(5),f?e+v(i)+n+v(r)+o+v(a)+s+v(c)+u+v(l)+h:fr}(h,t,e,i,n,r,o,a,s,c,u,l);return d!==fr&&lo(h,de(),d),Va}function Ja(t,e,i){Da(ui,Oa,Yo(Ft(),t,e,i),!0)}function Qa(t,e,i){var n=Ft();return Ho(n,Xt(),e)&&zr(Ht(),pe(),n,t,e,n[11],i,!0),Qa}function Wa(t,e,i){var n=Ft();if(Ho(n,Xt(),e)){var r=Ht(),o=pe();zr(r,o,n,t,e,so(ee(r.data),o,n),i,!0)}return Wa}var Xa=void 0,$a=["en",[["a","p"],["AM","PM"],Xa],[["AM","PM"],Xa,Xa],[["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"]],Xa,[["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"]],Xa,[["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}",Xa,"{1} 'at' {0}",Xa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){var e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}],ts={};function es(t){var e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t),i=ns(e);if(i)return i;var n=e.split("-")[0];if(i=ns(n))return i;if("en"===n)return $a;throw new Error('Missing locale data for the locale "'.concat(t,'".'))}function is(t){return es(t)[rs.PluralCase]}function ns(t){return t in ts||(ts[t]=F.ng&&F.ng.common&&F.ng.common.locales&&F.ng.common.locales[t]),ts[t]}var rs=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});function os(t){var e;null==(e=t)&&function(t,e,i,n){throw new Error("ASSERTION ERROR: ".concat("Expected localeId to be defined"," [Expected=> null != ").concat(e," <=Actual]"))}(0,e),"string"==typeof t&&t.toLowerCase().replace(/_/g,"-")}function as(t,e,i,n,r){if(t=p(t),Array.isArray(t))for(var o=0;o>20;if(Eo(t)||!t.multi){var g=new ke(u,r,Wo),m=us(c,e,r?h:h+f,d);-1===m?(Be(Le(l,s),a,c),ss(a,t,e.length),e.push(c),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),i.push(g),s.push(g)):(i[m]=g,s[m]=g)}else{var v=us(c,e,h+f,d),y=us(c,e,h,h+f),_=v>=0&&i[v],b=y>=0&&i[y];if(r&&!b||!r&&!_){Be(Le(l,s),a,c);var w=function(t,e,i,n,r){var o=new ke(t,i,Wo);return o.multi=[],o.index=e,o.componentProviders=0,cs(o,r,n&&!i),o}(r?hs:ls,i.length,r,n,u);!r&&b&&(i[y].providerFactory=w),ss(a,t,e.length,0),e.push(c),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),i.push(w),s.push(w)}else ss(a,t,v>-1?v:y,cs(i[r?y:v],u,!r&&n));!r&&n&&b&&i[y].componentProviders++}}}function ss(t,e,i,n){var r=Eo(e);if(r||e.useClass){var o=(e.useClass||e).prototype.ngOnDestroy;if(o){var a=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){var s=a.indexOf(i);-1===s?a.push(i,[n,o]):a[s+1].push(n,o)}else a.push(i,o)}}}function cs(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function us(t,e,i,n){for(var r=i;r1&&void 0!==arguments[1]?arguments[1]:[];return function(i){i.providersResolver=function(i,n){return function(t,e,i){var n=Ht();if(n.firstCreatePass){var r=pt(t);as(i,n.data,n.blueprint,r,!0),as(e,n.data,n.blueprint,r,!1)}}(i,n?n(t):t,e)}}}var ps=function t(){_classCallCheck(this,t)},gs=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"resolveComponentFactory",value:function(t){throw function(t){var e=Error("No component factory found for ".concat(l(t),". Did you add it to @NgModule.entryComponents?"));return e.ngComponent=t,e}(t)}}]),t}(),ms=function(){var t=function t(){_classCallCheck(this,t)};return t.NULL=new gs,t}();function vs(){}function ys(t,e){return new bs(Rt(t,e))}var _s=function(){return ys(qt(),Ft())},bs=function(){var t=function t(e){_classCallCheck(this,t),this.nativeElement=e};return t.__NG_ELEMENT_ID__=_s,t}();function ws(t){return t instanceof bs?t.nativeElement:t}var As=function t(){_classCallCheck(this,t)},ks=function(){var t=function t(){_classCallCheck(this,t)};return t.__NG_ELEMENT_ID__=function(){return Cs()},t}(),Cs=function(){var t=Ft(),e=Pt(qt().index,t);return function(t){return t[11]}(ut(e)?e:t)},Ts=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275prov=b({token:t,providedIn:"root",factory:function(){return null}}),t}(),Es=function t(e){_classCallCheck(this,t),this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")},Ss=new Es("12.0.5"),Is=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"supports",value:function(t){return Zo(t)}},{key:"create",value:function(t){return new xs(t)}}]),t}(),Rs=function(t,e){return e},xs=function(){function t(e){_classCallCheck(this,t),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Rs}return _createClass(t,[{key:"forEachItem",value:function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)}},{key:"forEachOperation",value:function(t){for(var e=this._itHead,i=this._removalsHead,n=0,r=null;e||i;){var o=!i||e&&e.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==i;){var o=e[i.index];if(null!==o&&n.push(St(o)),lt(o))for(var a=10;a-1&&(zn(t,i),si(e,i))}this._attachedToViewContainer=!1}Zn(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){Lr(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){to(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){eo(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(t,e,i){Jt(!0);try{eo(t,e,i)}finally{Jt(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var t;this._appRef=null,Xn(this._lView[1],t=this._lView,t[11],2,null,null)}},{key:"attachToAppRef",value:function(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}]),t}(),Gs=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this,t))._view=t,n}return _createClass(i,[{key:"detectChanges",value:function(){io(this._view)}},{key:"checkNoChanges",value:function(){!function(t){Jt(!0);try{io(t)}finally{Jt(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),i}(qs),js=function(t){return function(t,e,i){if(dt(t)&&!i){var n=Pt(t.index,e);return new qs(n,n)}return 47&t.type?new qs(e[16],e):null}(qt(),Ft(),16==(16&t))},Ys=function(){var t=function t(){_classCallCheck(this,t)};return t.__NG_ELEMENT_ID__=js,t}(),Ks=[new Ls],Vs=new Bs([new Is]),Js=new Hs(Ks),Qs=function(){return $s(qt(),Ft())},Ws=function(){var t=function t(){_classCallCheck(this,t)};return t.__NG_ELEMENT_ID__=Qs,t}(),Xs=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this))._declarationLView=t,o._declarationTContainer=n,o.elementRef=r,o}return _createClass(i,[{key:"createEmbeddedView",value:function(t){var e=this._declarationTContainer.tViews,i=kr(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];var n=this._declarationLView[19];return null!==n&&(i[19]=n.createEmbeddedView(e)),Er(e,i,t),new qs(i)}}]),i}(Ws);function $s(t,e){return 4&t.type?new Xs(e,t,ys(t,e)):null}var tc=function t(){_classCallCheck(this,t)},ec=function t(){_classCallCheck(this,t)},ic=function(){return sc(qt(),Ft())},nc=function(){var t=function t(){_classCallCheck(this,t)};return t.__NG_ELEMENT_ID__=ic,t}(),rc=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this))._lContainer=t,o._hostTNode=n,o._hostLView=r,o}return _createClass(i,[{key:"element",get:function(){return ys(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new Qe(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var t=Ze(this._hostTNode,this._hostLView);if(Re(t)){var e=Oe(t,this._hostLView),i=xe(t);return new Qe(e[1].data[i+8],e)}return new Qe(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(t){var e=oc(this._lContainer);return null!==e&&e[t]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(t,e,i){var n=t.createEmbeddedView(e||{});return this.insert(n,i),n}},{key:"createComponent",value:function(t,e,i,n,r){var o=i||this.parentInjector;if(!r&&null==t.ngModule&&o){var a=o.get(tc,null);a&&(r=a)}var s=t.create(o,n,void 0,r);return this.insert(s.hostView,e),s}},{key:"insert",value:function(t,e){var n=t._lView,r=n[1];if(lt(n[3])){var o=this.indexOf(t);if(-1!==o)this.detach(o);else{var a=n[3],s=new i(a,a[6],a[3]);s.detach(s.indexOf(t))}}var c=this._adjustIndex(e),u=this._lContainer;!function(t,e,i,n){var r=10+n,o=i.length;n>0&&(i[r-1][4]=e),n1&&void 0!==arguments[1]?arguments[1]:0;return null==t?this.length+e:t}}]),i}(nc);function oc(t){return t[8]}function ac(t){return t[8]||(t[8]=[])}function sc(t,e){var i,n=e[t.index];if(lt(n))i=n;else{var r;if(8&t.type)r=St(n);else{var o=e[11];r=o.createComment("");var a=Rt(t,e);Hn(o,Gn(o,a),r,function(t,e){return Tt(t)?t.nextSibling(e):e.nextSibling}(o,a),!1)}e[t.index]=i=Jr(n,e,r,t),$r(e,i)}return new rc(i,t,e)}var cc={},uc=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this)).ngModule=t,n}return _createClass(i,[{key:"resolveComponentFactory",value:function(t){var e=st(t);return new dc(e,this.ngModule)}}]),i}(ms);function lc(t){var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push({propName:t[i],templateName:i});return e}var hc=new ei("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return kn}}),dc=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this)).componentDef=t,r.ngModule=n,r.componentType=t.type,r.selector=t.selectors.map(dr).join(","),r.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],r.isBoundToModule=!!n,r}return _createClass(i,[{key:"inputs",get:function(){return lc(this.componentDef.inputs)}},{key:"outputs",get:function(){return lc(this.componentDef.outputs)}},{key:"create",value:function(t,e,i,n){var r,o,a=(n=n||this.ngModule)?function(t,e){return{get:function(i,n,r){var o=t.get(i,cc,r);return o!==cc||n===cc?o:e.get(i,n,r)}}}(t,n.injector):t,s=a.get(As,Et),c=a.get(Ts,null),u=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",h=i?function(t,e,i){if(Tt(t))return t.selectRootElement(e,i===L.ShadowDom);var n="string"==typeof e?t.querySelector(e):e;return n.textContent="",n}(u,i,this.componentDef.encapsulation):Ln(s.createRenderer(null,this.componentDef),l,function(t){var e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),d=this.componentDef.onPush?576:528,f={components:[],scheduler:kn,clean:ro,playerHandler:null,flags:0},p=Mr(0,null,null,1,0,null,null,null,null,null),g=kr(null,p,f,d,null,null,s,u,c,a);ae(g);try{var m=function(t,e,i,n,r,o){var a=i[1];i[20]=t;var s=Cr(a,20,2,"#host",null),c=s.mergedAttrs=e.hostAttrs;null!==c&&(ho(s,c,!0),null!==t&&(Ce(r,t,c),null!==s.classes&&er(r,t,s.classes),null!==s.styles&&tr(r,t,s.styles)));var u=n.createRenderer(t,e),l=kr(i,Dr(e),null,e.onPush?64:16,i[20],s,n,u,null,null);return a.firstCreatePass&&(Be(Le(s,i),a,e.type),Hr(a,s),qr(s,i.length,1)),$r(i,l),i[20]=l}(h,this.componentDef,g,s,u);if(h)if(i)Ce(u,h,["ng-version",Ss.full]);else{var v=function(t){for(var e=[],i=[],n=1,r=2;n0&&er(u,h,_.join(" "))}if(o=xt(p,20),void 0!==e)for(var b=o.projection=[],w=0;w1&&void 0!==arguments[1]?arguments[1]:Io.THROW_IF_NOT_FOUND,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:x.Default;return t===Io||t===tc||t===po?this:this._r3Injector.get(t,e,i)}},{key:"destroy",value:function(){var t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(function(t){return t()}),this.destroyCbs=null}},{key:"onDestroy",value:function(t){this.destroyCbs.push(t)}}]),i}(tc),mc=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n,r,o;return _classCallCheck(this,i),(n=e.call(this)).moduleType=t,null!==ct(t)&&(r=t,o=new Set,function t(e){var i=ct(e,!0),n=i.id;null!==n&&(function(t,e,i){if(e&&e!==i)throw new Error("Duplicate module registered for ".concat(t," - ").concat(l(e)," vs ").concat(l(e.name)))}(n,pc.get(n),e),pc.set(n,e));var r,a=_createForOfIteratorHelper(Sn(i.imports));try{for(a.s();!(r=a.n()).done;){var s=r.value;o.has(s)||(o.add(s),t(s))}}catch(c){a.e(c)}finally{a.f()}}(r)),n}return _createClass(i,[{key:"create",value:function(t){return new gc(this.moduleType,t)}}]),i}(ec);function vc(t,e,i){var n=Qt()+t,r=Ft();return r[n]===fr?Fo(r,n,i?e.call(i):e()):function(t,e){return t[e]}(r,n)}function yc(t,e,i,n){return Ac(Ft(),Qt(),t,e,i,n)}function _c(t,e,i,n,r){return kc(Ft(),Qt(),t,e,i,n,r)}function bc(t,e,i,n,r,o){return Cc(Ft(),Qt(),t,e,i,n,r,o)}function wc(t,e){var i=t[e];return i===fr?void 0:i}function Ac(t,e,i,n,r,o){var a=e+i;return Ho(t,a,r)?Fo(t,a+1,o?n.call(o,r):n(r)):wc(t,a+1)}function kc(t,e,i,n,r,o,a){var s=e+i;return Uo(t,s,r,o)?Fo(t,s+2,a?n.call(a,r,o):n(r,o)):wc(t,s+2)}function Cc(t,e,i,n,r,o,a,s){var c=e+i;return qo(t,c,r,o,a)?Fo(t,c+3,s?n.call(s,r,o,a):n(r,o,a)):wc(t,c+3)}function Tc(t,e){var i,n=Ht(),r=t+20;n.firstCreatePass?(i=function(t,e){if(e)for(var i=e.length-1;i>=0;i--){var n=e[i];if(t===n.name)return n}throw new m("302","The pipe '".concat(t,"' could not be found!"))}(e,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];var o=i.factory||(i.factory=gt(i.type)),a=O(Wo);try{var s=De(!1),c=o();return De(s),function(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}(n,Ft(),r,c),c}finally{O(a)}}function Ec(t,e,i){var n=t+20,r=Ft(),o=Ot(r,n);return xc(r,Rc(r,n)?Ac(r,Qt(),e,o.transform,i,o):o.transform(i))}function Sc(t,e,i,n){var r=t+20,o=Ft(),a=Ot(o,r);return xc(o,Rc(o,r)?kc(o,Qt(),e,a.transform,i,n,a):a.transform(i,n))}function Ic(t,e,i,n,r){var o=t+20,a=Ft(),s=Ot(a,o);return xc(a,Rc(a,o)?Cc(a,Qt(),e,s.transform,i,n,r,s):s.transform(i,n,r))}function Rc(t,e){return t[1].data[e].pure}function xc(t,e){return zo.isWrapped(e)&&(e=zo.unwrap(e),t[Wt()]=fr),e}function Oc(t){return function(e){setTimeout(t,void 0,e)}}var Pc=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return _classCallCheck(this,i),(t=e.call(this)).__isAsync=n,t}return _createClass(i,[{key:"emit",value:function(t){_get(_getPrototypeOf(i.prototype),"next",this).call(this,t)}},{key:"subscribe",value:function(t,e,n){var o,a,s,c=t,u=e||function(){return null},l=n;if(t&&"object"==typeof t){var h=t;c=null===(o=h.next)||void 0===o?void 0:o.bind(h),u=null===(a=h.error)||void 0===a?void 0:a.bind(h),l=null===(s=h.complete)||void 0===s?void 0:s.bind(h)}this.__isAsync&&(u=Oc(u),c&&(c=Oc(c)),l&&(l=Oc(l)));var d=_get(_getPrototypeOf(i.prototype),"subscribe",this).call(this,{next:c,error:u,complete:l});return t instanceof r.w&&t.add(d),d}}]),i}(n.xQ);function Dc(){return this._results[No()]()}var Mc=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];_classCallCheck(this,t),this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var i=No(),n=t.prototype;n[i]||(n[i]=Dc)}return _createClass(t,[{key:"changes",get:function(){return this._changes||(this._changes=new Pc)}},{key:"get",value:function(t){return this._results[t]}},{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,e){return this._results.reduce(t,e)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t,e){this.dirty=!1;var i=ri(t);(this._changesDetected=!function(t,e,i){if(t.length!==e.length)return!1;for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,t),this.queries=e}return _createClass(t,[{key:"createEmbeddedView",value:function(e){var i=e.queries;if(null!==i){for(var n=null!==e.contentQueries?e.contentQueries[0]:i.length,r=[],o=0;o2&&void 0!==arguments[2]?arguments[2]:null;_classCallCheck(this,t),this.predicate=e,this.flags=i,this.read=n},Zc=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,t),this.queries=e}return _createClass(t,[{key:"elementStart",value:function(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:-1;_classCallCheck(this,t),this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=i}return _createClass(t,[{key:"elementStart",value:function(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,e){this.elementStart(t,e)}},{key:"embeddedTView",value:function(e,i){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,i),new t(this.metadata)):null}},{key:"isApplyingToNode",value:function(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var e=this._declarationNodeIndex,i=t.parent;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,e){var i=this.metadata.predicate;if(Array.isArray(i))for(var n=0;n0)n.push(a[s/2]);else{for(var u=o[s+1],l=e[-c],h=10;h0&&(r=setTimeout(function(){n._callbacks=n._callbacks.filter(function(t){return t.timeoutId!==r}),t(n._didWork,n.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:i})}},{key:"whenStable",value:function(t,e,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,e,i),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(t,e,i){return[]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(yi(_u))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t}(),Su=function(){var t=function(){function t(){_classCallCheck(this,t),this._applications=new Map,xu.addToWindow(this)}return _createClass(t,[{key:"registerApplication",value:function(t,e){this._applications.set(t,e)}},{key:"unregisterApplication",value:function(t){this._applications.delete(t)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(t){return this._applications.get(t)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return xu.findTestabilityInTree(this,t,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t}();function Iu(t){xu=t}var Ru,xu=new(function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,e,i){return null}}]),t}()),Ou=!0,Pu=!1;function Du(){return Pu=!0,Ou}function Mu(){if(Pu)throw new Error("Cannot enable prod mode after platform setup.");Ou=!1}var Lu=new ei("AllowMultipleToken"),Nu=function t(e,i){_classCallCheck(this,t),this.name=e,this.token=i};function zu(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n="Platform: ".concat(e),r=new ei(n);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Zu();if(!o||o.injector.get(Lu,!1))if(t)t(i.concat(e).concat({provide:r,useValue:!0}));else{var a=i.concat(e).concat({provide:r,useValue:!0},{provide:mo,useValue:"platform"});!function(t){if(Ru&&!Ru.destroyed&&!Ru.injector.get(Lu,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ru=t.get(Bu);var e=t.get(nu,null);e&&e.forEach(function(t){return t()})}(Io.create({providers:a,name:n}))}return function(t){var e=Zu();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(r)}}function Zu(){return Ru&&!Ru.destroyed?Ru:null}var Bu=function(){var t=function(){function t(e){_classCallCheck(this,t),this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return _createClass(t,[{key:"bootstrapModuleFactory",value:function(t,e){var i,n,r=this,o=(i=e?e.ngZone:void 0,n={ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1},"noop"===i?new Tu:("zone.js"===i?void 0:i)||new _u({enableLongStackTrace:Du(),shouldCoalesceEventChangeDetection:!!(null==n?void 0:n.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==n?void 0:n.ngZoneRunCoalescing)})),a=[{provide:_u,useValue:o}];return o.run(function(){var e=Io.create({providers:a,parent:r.injector,name:t.moduleType.name}),i=t.create(e),n=i.injector.get(An,null);if(!n)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.runOutsideAngular(function(){var t=o.onError.subscribe({next:function(t){n.handleError(t)}});i.onDestroy(function(){Uu(r._modules,i),t.unsubscribe()})}),function(t,e,n){try{var o=((a=i.injector.get($c)).runInitializers(),a.donePromise.then(function(){return os(i.injector.get(su,"en-US")||"en-US"),r._moduleDoBootstrap(i),i}));return sa(o)?o.catch(function(i){throw e.runOutsideAngular(function(){return t.handleError(i)}),i}):o}catch(s){throw e.runOutsideAngular(function(){return t.handleError(s)}),s}var a}(n,o)})}},{key:"bootstrapModule",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Fu({},i);return function(t,e,i){var n=new mc(i);return Promise.resolve(n)}(0,0,t).then(function(t){return e.bootstrapModuleFactory(t,n)})}},{key:"_moduleDoBootstrap",value:function(t){var e=t.injector.get(Hu);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module ".concat(l(t.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));t.instance.ngDoBootstrap(e)}this._modules.push(t)}},{key:"onDestroy",value:function(t){this._destroyListeners.push(t)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),t}();return t.\u0275fac=function(e){return new(e||t)(yi(Io))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t}();function Fu(t,e){return Array.isArray(e)?e.reduce(Fu,t):Object.assign(Object.assign({},t),e)}var Hu=function(){var t=function(){function t(e,i,n,r,c){var u=this;_classCallCheck(this,t),this._zone=e,this._injector=i,this._exceptionHandler=n,this._componentFactoryResolver=r,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){u._zone.run(function(){u.tick()})}});var l=new o.y(function(t){u._stable=u._zone.isStable&&!u._zone.hasPendingMacrotasks&&!u._zone.hasPendingMicrotasks,u._zone.runOutsideAngular(function(){t.next(u._stable),t.complete()})}),h=new o.y(function(t){var e;u._zone.runOutsideAngular(function(){e=u._zone.onStable.subscribe(function(){_u.assertNotInAngularZone(),yu(function(){u._stable||u._zone.hasPendingMacrotasks||u._zone.hasPendingMicrotasks||(u._stable=!0,t.next(!0))})})});var i=u._zone.onUnstable.subscribe(function(){_u.assertInAngularZone(),u._stable&&(u._stable=!1,u._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),i.unsubscribe()}});this.isStable=(0,a.T)(l,h.pipe((0,s.B)()))}return _createClass(t,[{key:"bootstrap",value:function(t,e){var i,n=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");i=t instanceof ps?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(i.componentType);var r=i.isBoundToModule?void 0:this._injector.get(tc),o=i.create(Io.NULL,[],e||i.selector,r),a=o.location.nativeElement,s=o.injector.get(Eu,null),c=s&&o.injector.get(Su);return s&&c&&c.registerApplication(a,s),o.onDestroy(function(){n.detachView(o.hostView),Uu(n.components,o),c&&c.unregisterApplication(a)}),this._loadComponent(o),o}},{key:"tick",value:function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var e,i=_createForOfIteratorHelper(this._views);try{for(i.s();!(e=i.n()).done;){e.value.detectChanges()}}catch(n){i.e(n)}finally{i.f()}}catch(r){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(r)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(t){var e=t;this._views.push(e),e.attachToAppRef(this)}},{key:"detachView",value:function(t){var e=t;Uu(this._views,e),e.detachFromAppRef()}},{key:"_loadComponent",value:function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(ou,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(t){return t.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),t}();return t.\u0275fac=function(e){return new(e||t)(yi(_u),yi(Io),yi(An),yi(ms),yi($c))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t}();function Uu(t,e){var i=t.indexOf(e);i>-1&&t.splice(i,1)}var qu=function t(){_classCallCheck(this,t)},Gu=function t(){_classCallCheck(this,t)},ju={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Yu=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this._compiler=e,this._config=i||ju}return _createClass(t,[{key:"load",value:function(t){return this.loadAndCompile(t)}},{key:"loadAndCompile",value:function(t){var e=this,n=_slicedToArray(t.split("#"),2),r=n[0],o=n[1];return void 0===o&&(o="default"),i(27622)(r).then(function(t){return t[o]}).then(function(t){return Ku(t,r,o)}).then(function(t){return e._compiler.compileModuleAsync(t)})}},{key:"loadFactory",value:function(t){var e=_slicedToArray(t.split("#"),2),n=e[0],r=e[1],o="NgFactory";return void 0===r&&(r="default",o=""),i(27622)(this._config.factoryPathPrefix+n+this._config.factoryPathSuffix).then(function(t){return t[r+o]}).then(function(t){return Ku(t,n,r)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(yi(mu),yi(Gu,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t}();function Ku(t,e,i){if(!t)throw new Error("Cannot find '".concat(i,"' in '").concat(e,"'"));return t}var Vu=function(t){return null},Ju=zu(null,"core",[{provide:ru,useValue:"unknown"},{provide:Bu,deps:[Io]},{provide:Su,deps:[]},{provide:au,deps:[]}]),Qu=[{provide:Hu,useClass:Hu,deps:[_u,Io,An,ms,$c]},{provide:hc,deps:[_u],useFactory:function(t){var e=[];return t.onStable.subscribe(function(){for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:$c,useClass:$c,deps:[[new Ti,Xc]]},{provide:mu,useClass:mu,deps:[]},eu,{provide:Bs,useFactory:function(){return Vs},deps:[]},{provide:Hs,useFactory:function(){return Js},deps:[]},{provide:su,useFactory:function(t){return os(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new Ci(su),new Ti,new Ei]]},{provide:cu,useValue:"USD"}],Wu=function(){var t=function t(e){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)(yi(Hu))},t.\u0275mod=it({type:t}),t.\u0275inj=w({providers:Qu}),t}()},16073:function(t,e,i){"use strict";i.d(e,{Zs:function(){return zt},gN:function(){return z},Fj:function(){return f},qu:function(){return qt},NI:function(){return at},oH:function(){return wt},u:function(){return Tt},sg:function(){return kt},u5:function(){return Ht},Cf:function(){return m},JU:function(){return l},a5:function(){return Z},JJ:function(){return F},JL:function(){return H},F:function(){return ht},On:function(){return pt},YN:function(){return Rt},wV:function(){return vt},c5:function(){return Bt},UX:function(){return Ut},Q7:function(){return Nt},EJ:function(){return It},kI:function(){return _},_Y:function(){return gt},Kr:function(){return Dt}});var n=i(31572),r=i(61511),o=i(19764),a=i(3148),s=i(79996),c=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this._renderer=e,this._elementRef=i,this.onChange=function(t){},this.onTouched=function(){}}return _createClass(t,[{key:"setProperty",value:function(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"registerOnChange",value:function(t){this.onChange=t}},{key:"setDisabledState",value:function(t){this.setProperty("disabled",t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Qsj),n.Y36(n.SBq))},t.\u0275dir=n.lG2({type:t}),t}(),u=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(c);return e.\u0275fac=function(i){return(t||(t=n.n5z(e)))(i||e)},e.\u0275dir=n.lG2({type:e,features:[n.qOj]}),e}(),l=new n.OlP("NgValueAccessor"),h={provide:l,useExisting:(0,n.Gpc)(function(){return f}),multi:!0},d=new n.OlP("CompositionEventMode"),f=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,o){var a,s;return _classCallCheck(this,i),(a=e.call(this,t,n))._compositionMode=o,a._composing=!1,null==a._compositionMode&&(a._compositionMode=(s=(0,r.q)()?(0,r.q)().getUserAgent():"",!/android (\d+)/.test(s.toLowerCase()))),a}return _createClass(i,[{key:"writeValue",value:function(t){this.setProperty("value",null==t?"":t)}},{key:"_handleInput",value:function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}]),i}(c);return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(d,8))},t.\u0275dir=n.lG2({type:t,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(t,e){1&t&&n.NdJ("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[n._Bn([h]),n.qOj]}),t}();function p(t){return null==t||0===t.length}function g(t){return null!=t&&"number"==typeof t.length}var m=new n.OlP("NgValidators"),v=new n.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])?)*$/,_=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"min",value:function(t){return function(t){return function(e){if(p(e.value)||p(t))return null;var i=parseFloat(e.value);return!isNaN(i)&&it?{max:{max:t,actual:e.value}}:null}}(t)}},{key:"required",value:function(t){return b(t)}},{key:"requiredTrue",value:function(t){return w(t)}},{key:"email",value:function(t){return function(t){return p(t.value)||y.test(t.value)?null:{email:!0}}(t)}},{key:"minLength",value:function(t){return function(t){return function(e){return p(e.value)||!g(e.value)?null:e.value.lengtht?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}}(t)}},{key:"pattern",value:function(t){return A(t)}},{key:"nullValidator",value:function(t){return null}},{key:"compose",value:function(t){return R(t)}},{key:"composeAsync",value:function(t){return O(t)}}]),t}();function b(t){return p(t.value)?{required:!0}:null}function w(t){return!0===t.value?null:{required:!0}}function A(t){return t?("string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),function(t){if(p(t.value))return null;var n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}):k;var e,i}function k(t){return null}function C(t){return null!=t}function T(t){var e=(0,n.QGY)(t)?(0,o.D)(t):t;return(0,n.CqO)(e),e}function E(t){var e={};return t.forEach(function(t){e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function S(t,e){return e.map(function(e){return e(t)})}function I(t){return t.map(function(t){return function(t){return!t.validate}(t)?t:function(e){return t.validate(e)}})}function R(t){if(!t)return null;var e=t.filter(C);return 0==e.length?null:function(t){return E(S(t,e))}}function x(t){return null!=t?R(I(t)):null}function O(t){if(!t)return null;var e=t.filter(C);return 0==e.length?null:function(t){var i=S(t,e).map(T);return(0,a.D)(i).pipe((0,s.U)(E))}}function P(t){return null!=t?O(I(t)):null}function D(t,e){return null===t?[e]:Array.isArray(t)?[].concat(_toConsumableArray(t),[e]):[t,e]}function M(t){return t._rawValidators}function L(t){return t._rawAsyncValidators}var N=function(){var t=function(){function t(){_classCallCheck(this,t),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return _createClass(t,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(t){this._rawValidators=t||[],this._composedValidatorFn=x(this._rawValidators)}},{key:"_setAsyncValidators",value:function(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=P(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(t){this._onDestroyCallbacks.push(t)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(t){return t()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(t){this.control&&this.control.reset(t)}},{key:"hasError",value:function(t,e){return!!this.control&&this.control.hasError(t,e)}},{key:"getError",value:function(t,e){return this.control?this.control.getError(t,e):null}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t}),t}(),z=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),i}(N);return e.\u0275fac=function(i){return(t||(t=n.n5z(e)))(i||e)},e.\u0275dir=n.lG2({type:e,features:[n.qOj]}),e}(),Z=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.apply(this,arguments))._parent=null,t.name=null,t.valueAccessor=null,t}return i}(N),B=function(){function t(e){_classCallCheck(this,t),this._cd=e}return _createClass(t,[{key:"is",value:function(t){var e,i;return!!(null===(i=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===i?void 0:i[t])}}]),t}(),F=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){return _classCallCheck(this,i),e.call(this,t)}return i}(B);return t.\u0275fac=function(e){return new(e||t)(n.Y36(Z,2))},t.\u0275dir=n.lG2({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&n.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[n.qOj]}),t}(),H=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){return _classCallCheck(this,i),e.call(this,t)}return i}(B);return t.\u0275fac=function(e){return new(e||t)(n.Y36(z,10))},t.\u0275dir=n.lG2({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&n.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[n.qOj]}),t}();function U(t,e){return[].concat(_toConsumableArray(e.path),[t])}function q(t,e){Y(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(function(i){t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&V(t,e)})}(t,e),function(t,e){var i=function(t,i){e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)};t.registerOnChange(i),e._registerOnDestroy(function(){t._unregisterOnChange(i)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&V(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){var i=function(t){e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(i),e._registerOnDestroy(function(){t._unregisterOnDisabledChange(i)})}}(t,e)}function G(t,e){var i=function(){};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),K(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(function(){}))}function j(t,e){t.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Y(t,e){var i=M(t);null!==e.validator?t.setValidators(D(i,e.validator)):"function"==typeof i&&t.setValidators([i]);var n=L(t);null!==e.asyncValidator?t.setAsyncValidators(D(n,e.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);var r=function(){return t.updateValueAndValidity()};j(e._rawValidators,r),j(e._rawAsyncValidators,r)}function K(t,e){var i=!1;if(null!==t){if(null!==e.validator){var n=M(t);if(Array.isArray(n)&&n.length>0){var r=n.filter(function(t){return t!==e.validator});r.length!==n.length&&(i=!0,t.setValidators(r))}}if(null!==e.asyncValidator){var o=L(t);if(Array.isArray(o)&&o.length>0){var a=o.filter(function(t){return t!==e.asyncValidator});a.length!==o.length&&(i=!0,t.setAsyncValidators(a))}}}var s=function(){};return j(e._rawValidators,s),j(e._rawAsyncValidators,s),i}function V(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function J(t,e){Y(t,e)}function Q(t,e){if(!t.hasOwnProperty("model"))return!1;var i=t.model;return!!i.isFirstChange()||!Object.is(e,i.currentValue)}function W(t,e){t._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function X(t,e){return e?(Array.isArray(e),e.forEach(function(t){t.constructor===f?i=t:Object.getPrototypeOf(t.constructor)===u?n=t:r=t}),r||n||i||null):null;var i,n,r}function $(t,e){var i=t.indexOf(e);i>-1&&t.splice(i,1)}function tt(t){return(rt(t)?t.validators:t)||null}function et(t){return Array.isArray(t)?x(t):t||null}function it(t,e){return(rt(e)?e.asyncValidators:t)||null}function nt(t){return Array.isArray(t)?P(t):t||null}function rt(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var ot=function(){function t(e,i){_classCallCheck(this,t),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=i,this._composedValidatorFn=et(this._rawValidators),this._composedAsyncValidatorFn=nt(this._rawAsyncValidators)}return _createClass(t,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(t){this._rawValidators=t,this._composedValidatorFn=et(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=nt(t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(t){return t.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(function(e){e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(function(t){return t(!0)})}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(function(e){e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(function(t){return t(!1)})}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var e=this;if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;var i=T(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(function(i){e._hasOwnPendingAsyncValidator=!1,e.setErrors(i,{emitEvent:t})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}},{key:"get",value:function(t){return function(t,e,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;var n=t;return e.forEach(function(t){n=n instanceof st?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof ct&&n.at(t)||null}),n}(this,t)}},{key:"getError",value:function(t,e){var i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}},{key:"hasError",value:function(t,e){return!!this.getError(t,e)}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new n.vpe,this.statusChanges=new n.vpe}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls(function(e){return e.status===t})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(t){return t.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(t){return t.touched})}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){rt(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),t}(),at=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,i),(t=e.call(this,tt(r),it(o,r)))._onChange=[],t._applyFormState(n),t._setUpdateStrategy(r),t._initObservables(),t.updateValueAndValidity({onlySelf:!0,emitEvent:!!t.asyncValidator}),t}return _createClass(i,[{key:"setValue",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=t,this._onChange.length&&!1!==i.emitModelToViewChange&&this._onChange.forEach(function(t){return t(e.value,!1!==i.emitViewToModelChange)}),this.updateValueAndValidity(i)}},{key:"patchValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(t,e)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(t){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(t){this._onChange.push(t)}},{key:"_unregisterOnChange",value:function(t){$(this._onChange,t)}},{key:"registerOnDisabledChange",value:function(t){this._onDisabledChange.push(t)}},{key:"_unregisterOnDisabledChange",value:function(t){$(this._onDisabledChange,t)}},{key:"_forEachChild",value:function(t){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}]),i}(ot),st=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this,tt(n),it(r,n))).controls=t,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return _createClass(i,[{key:"registerControl",value:function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}},{key:"addControl",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}},{key:"setValue",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),Object.keys(t).forEach(function(n){e._throwIfControlMissing(n),e.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}},{key:"patchValue",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=t&&(Object.keys(t).forEach(function(n){e.controls[n]&&e.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(i,n){i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(t,e,i){return t[i]=e instanceof at?e.value:e.getRawValue(),t})}},{key:"_syncPendingControls",value:function(){var t=this._reduceChildren(!1,function(t,e){return!!e._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error("Cannot find form control with name: ".concat(t,"."))}},{key:"_forEachChild",value:function(t){var e=this;Object.keys(this.controls).forEach(function(i){var n=e.controls[i];n&&t(n,i)})}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(t){for(var e=0,i=Object.keys(this.controls);e0||this.disabled}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild(function(e,i){if(void 0===t[i])throw new Error("Must supply a value for form control with name: '".concat(i,"'."))})}}]),i}(ot),ct=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this,tt(n),it(r,n))).controls=t,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return _createClass(i,[{key:"at",value:function(t){return this.controls[t]}},{key:"push",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}},{key:"removeAt",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}},{key:"setControl",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),t.forEach(function(t,n){e._throwIfControlMissing(n),e.at(n).setValue(t,{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}},{key:"patchValue",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=t&&(t.forEach(function(t,n){e.at(n)&&e.at(n).patchValue(t,{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(i,n){i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this.controls.map(function(t){return t instanceof at?t.value:t.getRawValue()})}},{key:"clear",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(t){return t._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}},{key:"_syncPendingControls",value:function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index ".concat(t))}},{key:"_forEachChild",value:function(t){this.controls.forEach(function(e,i){t(e,i)})}},{key:"_updateValue",value:function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})}},{key:"_anyControls",value:function(t){return this.controls.some(function(e){return e.enabled&&t(e)})}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild(function(e,i){if(void 0===t[i])throw new Error("Must supply a value for form control at index: ".concat(i,"."))})}},{key:"_allControlsDisabled",value:function(){var t,e=_createForOfIteratorHelper(this.controls);try{for(e.s();!(t=e.n()).done;){if(t.value.enabled)return!1}}catch(i){e.e(i)}finally{e.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}]),i}(ot),ut={provide:z,useExisting:(0,n.Gpc)(function(){return ht})},lt=Promise.resolve(null),ht=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,r){var o;return _classCallCheck(this,i),(o=e.call(this)).submitted=!1,o._directives=[],o.ngSubmit=new n.vpe,o.form=new st({},x(t),P(r)),o}return _createClass(i,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(t){var e=this;lt.then(function(){var i=e._findContainer(t.path);t.control=i.registerControl(t.name,t.control),q(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){var e=this;lt.then(function(){var i=e._findContainer(t.path);i&&i.removeControl(t.name),$(e._directives,t)})}},{key:"addFormGroup",value:function(t){var e=this;lt.then(function(){var i=e._findContainer(t.path),n=new st({});J(n,t),i.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(t){var e=this;lt.then(function(){var i=e._findContainer(t.path);i&&i.removeControl(t.name)})}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){var i=this;lt.then(function(){i.form.get(t.path).setValue(e)})}},{key:"setValue",value:function(t){this.control.setValue(t)}},{key:"onSubmit",value:function(t){return this.submitted=!0,W(this.form,this._directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(t){this.form.reset(t),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(t){return t.pop(),t.length?this.form.get(t):this.form}}]),i}(z);return t.\u0275fac=function(e){return new(e||t)(n.Y36(m,10),n.Y36(v,10))},t.\u0275dir=n.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&n.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n._Bn([ut]),n.qOj]}),t}(),dt={provide:Z,useExisting:(0,n.Gpc)(function(){return pt})},ft=Promise.resolve(null),pt=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,r,o,a){var s;return _classCallCheck(this,i),(s=e.call(this)).control=new at,s._registered=!1,s.update=new n.vpe,s._parent=t,s._setValidators(r),s._setAsyncValidators(o),s.valueAccessor=X(0,a),s}return _createClass(i,[{key:"ngOnChanges",value:function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),Q(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?U(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){q(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(t){var e=this;ft.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(t){var e=this,i=t.isDisabled.currentValue,n=""===i||i&&"false"!==i;ft.then(function(){n&&!e.control.disabled?e.control.disable():!n&&e.control.disabled&&e.control.enable()})}}]),i}(Z);return t.\u0275fac=function(e){return new(e||t)(n.Y36(z,9),n.Y36(m,10),n.Y36(v,10),n.Y36(l,10))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[n._Bn([dt]),n.qOj,n.TTD]}),t}(),gt=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t}(),mt={provide:l,useExisting:(0,n.Gpc)(function(){return vt}),multi:!0},vt=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"writeValue",value:function(t){this.setProperty("value",null==t?"":t)}},{key:"registerOnChange",value:function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}}}]),i}(u);return e.\u0275fac=function(i){return(t||(t=n.n5z(e)))(i||e)},e.\u0275dir=n.lG2({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&n.NdJ("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[n._Bn([mt]),n.qOj]}),e}(),yt=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t}(),_t=new n.OlP("NgModelWithFormControlWarning"),bt={provide:Z,useExisting:(0,n.Gpc)(function(){return wt})},wt=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,r,o,a){var s;return _classCallCheck(this,i),(s=e.call(this))._ngModelWarningConfig=a,s.update=new n.vpe,s._ngModelWarningSent=!1,s._setValidators(t),s._setAsyncValidators(r),s.valueAccessor=X(0,o),s}return _createClass(i,[{key:"isDisabled",set:function(t){}},{key:"ngOnChanges",value:function(t){if(this._isControlChanged(t)){var e=t.form.previousValue;e&&G(e,this,!1),q(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Q(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&G(this.form,this,!1)}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_isControlChanged",value:function(t){return t.hasOwnProperty("form")}}]),i}(Z);return t.\u0275fac=function(e){return new(e||t)(n.Y36(m,10),n.Y36(v,10),n.Y36(l,10),n.Y36(_t,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[n._Bn([bt]),n.qOj,n.TTD]}),t._ngModelWarningSentOnce=!1,t}(),At={provide:z,useExisting:(0,n.Gpc)(function(){return kt})},kt=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,r){var o;return _classCallCheck(this,i),(o=e.call(this)).validators=t,o.asyncValidators=r,o.submitted=!1,o._onCollectionChange=function(){return o._updateDomValue()},o.directives=[],o.form=null,o.ngSubmit=new n.vpe,o._setValidators(t),o._setAsyncValidators(r),o}return _createClass(i,[{key:"ngOnChanges",value:function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(K(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(t){var e=this.form.get(t.path);return q(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){G(t.control||null,t,!1),$(this.directives,t)}},{key:"addFormGroup",value:function(t){this._setUpFormContainer(t)}},{key:"removeFormGroup",value:function(t){this._cleanUpFormContainer(t)}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"addFormArray",value:function(t){this._setUpFormContainer(t)}},{key:"removeFormArray",value:function(t){this._cleanUpFormContainer(t)}},{key:"getFormArray",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){this.form.get(t.path).setValue(e)}},{key:"onSubmit",value:function(t){return this.submitted=!0,W(this.form,this.directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(t){this.form.reset(t),this.submitted=!1}},{key:"_updateDomValue",value:function(){var t=this;this.directives.forEach(function(e){var i=e.control,n=t.form.get(e.path);i!==n&&(G(i||null,e),n instanceof at&&(q(n,e),e.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(t){var e=this.form.get(t.path);J(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(t){if(this.form){var e=this.form.get(t.path);e&&function(t,e){return K(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){Y(this.form,this),this._oldForm&&K(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),i}(z);return t.\u0275fac=function(e){return new(e||t)(n.Y36(m,10),n.Y36(v,10))},t.\u0275dir=n.lG2({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&n.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n._Bn([At]),n.qOj,n.TTD]}),t}(),Ct={provide:Z,useExisting:(0,n.Gpc)(function(){return Tt})},Tt=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,r,o,a,s){var c;return _classCallCheck(this,i),(c=e.call(this))._ngModelWarningConfig=s,c._added=!1,c.update=new n.vpe,c._ngModelWarningSent=!1,c._parent=t,c._setValidators(r),c._setAsyncValidators(o),c.valueAccessor=X(0,a),c}return _createClass(i,[{key:"isDisabled",set:function(t){}},{key:"ngOnChanges",value:function(t){this._added||this._setUpControl(),Q(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"path",get:function(){return U(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"_checkParentType",value:function(){}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}]),i}(Z);return t.\u0275fac=function(e){return new(e||t)(n.Y36(z,13),n.Y36(m,10),n.Y36(v,10),n.Y36(l,10),n.Y36(_t,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[n._Bn([Ct]),n.qOj,n.TTD]}),t._ngModelWarningSentOnce=!1,t}(),Et={provide:l,useExisting:(0,n.Gpc)(function(){return It}),multi:!0};function St(t,e){return null==t?"".concat(e):(e&&"object"==typeof e&&(e="Object"),"".concat(t,": ").concat(e).slice(0,50))}var It=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.apply(this,arguments))._optionMap=new Map,t._idCounter=0,t._compareWith=Object.is,t}return _createClass(i,[{key:"compareWith",set:function(t){this._compareWith=t}},{key:"writeValue",value:function(t){this.value=t;var e=this._getOptionId(t);null==e&&this.setProperty("selectedIndex",-1);var i=St(e,t);this.setProperty("value",i)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(i){e.value=e._getOptionValue(i),t(e.value)}}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(t){for(var e=0,i=Array.from(this._optionMap.keys());e-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(i){var n=[];if(void 0!==i.selectedOptions)for(var r=i.selectedOptions,o=0;o1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(t),r=null,o=null;return null!=i&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(i)?(r=null!=i.validators?i.validators:null,o=null!=i.asyncValidators?i.asyncValidators:null,e=null!=i.updateOn?i.updateOn:void 0):(r=null!=i.validator?i.validator:null,o=null!=i.asyncValidator?i.asyncValidator:null)),new st(n,{asyncValidators:o,updateOn:e,validators:r})}},{key:"control",value:function(t,e,i){return new at(t,e,i)}},{key:"array",value:function(t,e,i){var n=this,r=t.map(function(t){return n._createControl(t)});return new ct(r,e,i)}},{key:"_reduceControls",value:function(t){var e=this,i={};return Object.keys(t).forEach(function(n){i[n]=e._createControl(t[n])}),i}},{key:"_createControl",value:function(t){return t instanceof at||t instanceof st||t instanceof ct?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:function(){return new t},token:t,providedIn:Ut}),t}()},40084:function(t,e,i){"use strict";i.d(e,{XC:function(){return N},Bb:function(){return U},ZL:function(){return H}});var n=i(24621),r=i(19861),o=i(11353),a=i(31572),s=i(71522),c=i(87570),u=i(55959),l=i(31450),h=i(31906),d=i(40878),f=i(87254),p=i(61511),g=i(2522),m=i(4253),v=i(75842),y=i(26899),_=i(16073),b=i(66283),w=i(90611),A=i(44689),k=i(43835),C=i(79996),T=i(66599),E=i(60509),S=i(22526),I=["panel"];function R(t,e){if(1&t&&(a.TgZ(0,"div",0,1),a.Hsn(2),a.qZA()),2&t){var i=e.id,n=a.oxw();a.Q6J("id",n.id)("ngClass",n._classList),a.uIk("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(i))}}var x=["*"],O=0,P=function t(e,i){_classCallCheck(this,t),this.source=e,this.option=i},D=(0,s.Kr)(function t(){_classCallCheck(this,t)}),M=new a.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),L=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var s;return _classCallCheck(this,i),(s=e.call(this))._changeDetectorRef=t,s._elementRef=n,s._activeOptionChanges=c.w.EMPTY,s.showPanel=!1,s._isOpen=!1,s.displayWith=null,s.optionSelected=new a.vpe,s.opened=new a.vpe,s.closed=new a.vpe,s.optionActivated=new a.vpe,s._classList={},s.id="mat-autocomplete-"+O++,s.inertGroups=(null==o?void 0:o.SAFARI)||!1,s._autoActiveFirstOption=!!r.autoActiveFirstOption,s}return _createClass(i,[{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(t){this._autoActiveFirstOption=(0,r.Ig)(t)}},{key:"classList",set:function(t){this._classList=t&&t.length?(0,r.du)(t).reduce(function(t,e){return t[e]=!0,t},{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}},{key:"ngAfterContentInit",value:function(){var t=this;this._keyManager=new n.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(function(e){t.optionActivated.emit({source:t,option:t.options.toArray()[e]||null})}),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}},{key:"_getScrollTop",value:function(){return this.panel?this.panel.nativeElement.scrollTop:0}},{key:"_setVisibility",value:function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}},{key:"_emitSelectEvent",value:function(t){var e=new P(this,t);this.optionSelected.emit(e)}},{key:"_getPanelAriaLabelledby",value:function(t){return this.ariaLabel?null:this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}},{key:"_setVisibilityClasses",value:function(t){t[this._visibleClass]=this.showPanel,t[this._hiddenClass]=!this.showPanel}}]),i}(D);return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.sBO),a.Y36(a.SBq),a.Y36(M),a.Y36(o.t4))},t.\u0275dir=a.lG2({type:t,viewQuery:function(t,e){var i;(1&t&&(a.Gf(a.Rgc,7),a.Gf(I,5)),2&t)&&(a.iGM(i=a.CRH())&&(e.template=i.first),a.iGM(i=a.CRH())&&(e.panel=i.first))},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[a.qOj]}),t}(),N=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.apply(this,arguments))._visibleClass="mat-autocomplete-visible",t._hiddenClass="mat-autocomplete-hidden",t}return i}(L);return e.\u0275fac=function(i){return(t||(t=a.n5z(e)))(i||e)},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,i){var n;(1&t&&(a.Suo(i,s.K7,5),a.Suo(i,s.ey,5)),2&t)&&(a.iGM(n=a.CRH())&&(e.optionGroups=n),a.iGM(n=a.CRH())&&(e.options=n))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[a._Bn([{provide:s.HF,useExisting:e}]),a.qOj],ngContentSelectors:x,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(a.F$t(),a.YNc(0,R,3,4,"ng-template"))},directives:[p.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}\n"],encapsulation:2,changeDetection:0}),e}(),z=new a.OlP("mat-autocomplete-scroll-strategy"),Z={provide:z,deps:[g.aV],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},B={provide:_.JU,useExisting:(0,a.Gpc)(function(){return H}),multi:!0},F=function(){var t=function(){function t(e,i,n,r,o,a,s,d,f,p,g){var m=this;_classCallCheck(this,t),this._element=e,this._overlay=i,this._viewContainerRef=n,this._zone=r,this._changeDetectorRef=o,this._dir=s,this._formField=d,this._document=f,this._viewportRuler=p,this._defaults=g,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=c.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new u.xQ,this._windowBlurHandler=function(){m._canOpenOnNextFocus=m._document.activeElement!==m._element.nativeElement||m.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,l.P)(function(){return m.autocomplete&&m.autocomplete.options?h.T.apply(void 0,_toConsumableArray(m.autocomplete.options.map(function(t){return t.onSelectionChange}))):m._zone.onStable.pipe((0,w.q)(1),(0,A.w)(function(){return m.optionSelections}))}),this._scrollStrategy=a}return _createClass(t,[{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(t){this._autocompleteDisabled=(0,r.Ig)(t)}},{key:"ngAfterViewInit",value:function(){var t=this,e=this._getWindow();void 0!==e&&this._zone.runOutsideAngular(function(){return e.addEventListener("blur",t._windowBlurHandler)})}},{key:"ngOnChanges",value:function(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"openPanel",value:function(){this._attachOverlay(),this._floatLabel()}},{key:"closePanel",value:function(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}},{key:"updatePosition",value:function(){this._overlayAttached&&this._overlayRef.updatePosition()}},{key:"panelClosingActions",get:function(){var t=this;return(0,h.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,k.h)(function(){return t._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,k.h)(function(){return t._overlayAttached})):(0,d.of)()).pipe((0,C.U)(function(t){return t instanceof s.rN?t:null}))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}},{key:"_getOutsideClickStream",value:function(){var t=this;return(0,h.T)((0,f.R)(this._document,"click"),(0,f.R)(this._document,"auxclick"),(0,f.R)(this._document,"touchend")).pipe((0,k.h)(function(e){var i=t._isInsideShadowRoot&&e.composedPath?e.composedPath()[0]:e.target,n=t._formField?t._formField._elementRef.nativeElement:null,r=t.connectedTo?t.connectedTo.elementRef.nativeElement:null;return t._overlayAttached&&i!==t._element.nativeElement&&(!n||!n.contains(i))&&(!r||!r.contains(i))&&!!t._overlayRef&&!t._overlayRef.overlayElement.contains(i)}))}},{key:"writeValue",value:function(t){var e=this;Promise.resolve(null).then(function(){return e._setTriggerValue(t)})}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this._element.nativeElement.disabled=t}},{key:"_handleKeydown",value:function(t){var e=t.keyCode;if(e!==v.hY||(0,v.Vb)(t)||t.preventDefault(),this.activeOption&&e===v.K5&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){var i=this.autocomplete._keyManager.activeItem,n=e===v.LH||e===v.JH;this.panelOpen||e===v.Mf?this.autocomplete._keyManager.onKeydown(t):n&&this._canOpen()&&this.openPanel(),(n||this.autocomplete._keyManager.activeItem!==i)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}},{key:"_handleInput",value:function(t){var e=t.target,i=e.value;"number"===e.type&&(i=""==i?null:parseFloat(i)),this._previousValue!==i&&(this._previousValue=i,this._onChange(i),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}},{key:"_handleFocus",value:function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}},{key:"_floatLabel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}},{key:"_resetLabel",value:function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}},{key:"_subscribeToClosingActions",value:function(){var t=this,e=this._zone.onStable.pipe((0,w.q)(1)),i=this.autocomplete.options.changes.pipe((0,T.b)(function(){return t._positionStrategy.reapplyLastPosition()}),(0,E.g)(0));return(0,h.T)(e,i).pipe((0,A.w)(function(){var e=t.panelOpen;return t._resetActiveItem(),t.autocomplete._setVisibility(),t.panelOpen&&(t._overlayRef.updatePosition(),e!==t.panelOpen&&t.autocomplete.opened.emit()),t.panelClosingActions}),(0,w.q)(1)).subscribe(function(e){return t._setValueAndClose(e)})}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value:function(t){var e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,i=null!=e?e:"";this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}},{key:"_setValueAndClose",value:function(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()}},{key:"_clearPreviousSelectedOption",value:function(t){this.autocomplete.options.forEach(function(e){e!==t&&e.selected&&e.deselect()})}},{key:"_attachOverlay",value:function(){var t,e=this;null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!(0,o.kV)(this._element.nativeElement));var i=this._overlayRef;i?(this._positionStrategy.setOrigin(this._getConnectedElement()),i.updateSize({width:this._getPanelWidth()})):(this._portal=new y.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(t=this._formField)||void 0===t?void 0:t.getLabelId()}),i=this._overlay.create(this._getOverlayConfig()),this._overlayRef=i,i.keydownEvents().subscribe(function(t){(t.keyCode===v.hY&&!(0,v.Vb)(t)||t.keyCode===v.LH&&(0,v.Vb)(t,"altKey"))&&(e._resetActiveItem(),e._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(function(){e.panelOpen&&i&&i.updateSize({width:e._getPanelWidth()})})),i&&!i.hasAttached()&&(i.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var n=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&n!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){var t;return new g.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(t=this._defaults)||void 0===t?void 0:t.overlayPanelClass})}},{key:"_getOverlayPosition",value:function(){var t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}},{key:"_setStrategyPositions",value:function(t){var e,i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],n=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:n},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:n}];e="above"===this.position?r:"below"===this.position?i:[].concat(i,r),t.withPositions(e)}},{key:"_getConnectedElement",value:function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}},{key:"_getPanelWidth",value:function(){return this.autocomplete.panelWidth||this._getHostWidth()}},{key:"_getHostWidth",value:function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}},{key:"_resetActiveItem",value:function(){var t=this.autocomplete;t.autoActiveFirstOption?t._keyManager.setFirstItemActive():t._keyManager.setActiveItem(-1)}},{key:"_canOpen",value:function(){var t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}},{key:"_scrollToOption",value:function(t){var e=this.autocomplete,i=(0,s.CB)(t,e.options,e.optionGroups);if(0===t&&1===i)e._setScrollTop(0);else if(e.panel){var n=e.options.toArray()[t];if(n){var r=n._getHostElement(),o=(0,s.jH)(r.offsetTop,r.offsetHeight,e._getScrollTop(),e.panel.nativeElement.offsetHeight);e._setScrollTop(o)}}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(g.aV),a.Y36(a.s_b),a.Y36(a.R0b),a.Y36(a.sBO),a.Y36(z),a.Y36(S.Is,8),a.Y36(b.G_,9),a.Y36(p.K0,8),a.Y36(m.rL),a.Y36(M,8))},t.\u0275dir=a.lG2({type:t,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[a.TTD]}),t}(),H=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.apply(this,arguments))._aboveClass="mat-autocomplete-panel-above",t}return i}(F);return e.\u0275fac=function(i){return(t||(t=a.n5z(e)))(i||e)},e.\u0275dir=a.lG2({type:e,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&a.NdJ("focusin",function(){return e._handleFocus()})("blur",function(){return e._onTouched()})("input",function(t){return e._handleInput(t)})("keydown",function(t){return e._handleKeydown(t)}),2&t&&a.uIk("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[a._Bn([B]),a.qOj]}),e}(),U=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({providers:[Z],imports:[[g.U8,s.Ng,s.BQ,p.ez],m.ZD,s.Ng,s.BQ]}),t}()},41050:function(t,e,i){"use strict";i.d(e,{k:function(){return l},g:function(){return h}});var n=i(71522),r=i(24621),o=i(19861),a=i(43490),s=i(31572),c=0,u=(0,n.Id)(function t(){_classCallCheck(this,t)}),l=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,a){var s;return _classCallCheck(this,i),(s=e.call(this))._ngZone=t,s._elementRef=n,s._ariaDescriber=r,s._renderer=o,s._animationMode=a,s._hasContent=!1,s._color="primary",s._overlap=!0,s.position="above after",s.size="medium",s._id=c++,s}return _createClass(i,[{key:"color",get:function(){return this._color},set:function(t){this._setColor(t),this._color=t}},{key:"overlap",get:function(){return this._overlap},set:function(t){this._overlap=(0,o.Ig)(t)}},{key:"description",get:function(){return this._description},set:function(t){if(t!==this._description){var e=this._badgeElement;this._updateHostAriaDescription(t,this._description),this._description=t,e&&(t?e.setAttribute("aria-label",t):e.removeAttribute("aria-label"))}}},{key:"hidden",get:function(){return this._hidden},set:function(t){this._hidden=(0,o.Ig)(t)}},{key:"isAbove",value:function(){return-1===this.position.indexOf("below")}},{key:"isAfter",value:function(){return-1===this.position.indexOf("before")}},{key:"ngOnChanges",value:function(t){var e=t.content;if(e){var i=e.currentValue;this._hasContent=null!=i&&"".concat(i).trim().length>0,this._updateTextContent()}}},{key:"ngOnDestroy",value:function(){var t=this._badgeElement;t&&(this.description&&this._ariaDescriber.removeDescription(t,this.description),this._renderer.destroyNode&&this._renderer.destroyNode(t))}},{key:"getBadgeElement",value:function(){return this._badgeElement}},{key:"_updateTextContent",value:function(){return this._badgeElement?this._badgeElement.textContent=this._stringifyContent():this._badgeElement=this._createBadgeElement(),this._badgeElement}},{key:"_createBadgeElement",value:function(){var t=this._renderer.createElement("span");return this._clearExistingBadges("mat-badge-content"),t.setAttribute("id","mat-badge-content-".concat(this._id)),t.classList.add("mat-badge-content"),t.textContent=this._stringifyContent(),"NoopAnimations"===this._animationMode&&t.classList.add("_mat-animation-noopable"),this.description&&t.setAttribute("aria-label",this.description),this._elementRef.nativeElement.appendChild(t),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){t.classList.add("mat-badge-active")})}):t.classList.add("mat-badge-active"),t}},{key:"_updateHostAriaDescription",value:function(t,e){var i=this._updateTextContent();e&&this._ariaDescriber.removeDescription(i,e),t&&this._ariaDescriber.describe(i,t)}},{key:"_setColor",value:function(t){if(t!==this._color){var e=this._elementRef.nativeElement.classList;this._color&&e.remove("mat-badge-".concat(this._color)),t&&e.add("mat-badge-".concat(t))}}},{key:"_clearExistingBadges",value:function(t){for(var e=this._elementRef.nativeElement,i=e.children.length;i--;){var n=e.children[i];n.classList.contains(t)&&e.removeChild(n)}}},{key:"_stringifyContent",value:function(){var t=this.content;return null==t?"":"".concat(t)}}]),i}(u);return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.R0b),s.Y36(s.SBq),s.Y36(r.$s),s.Y36(s.Qsj),s.Y36(a.Qb,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(t,e){2&t&&s.ekj("mat-badge-overlap",e.overlap)("mat-badge-above",e.isAbove())("mat-badge-below",!e.isAbove())("mat-badge-before",!e.isAfter())("mat-badge-after",e.isAfter())("mat-badge-small","small"===e.size)("mat-badge-medium","medium"===e.size)("mat-badge-large","large"===e.size)("mat-badge-hidden",e.hidden||!e._hasContent)("mat-badge-disabled",e.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],position:["matBadgePosition","position"],size:["matBadgeSize","size"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],description:["matBadgeDescription","description"],hidden:["matBadgeHidden","hidden"],content:["matBadge","content"]},features:[s.qOj,s.TTD]}),t}(),h=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[r.rt,n.BQ],n.BQ]}),t}()},15980:function(t,e,i){"use strict";i.d(e,{lW:function(){return h},ot:function(){return d}});var n=i(71522),r=i(43490),o=i(31572),a=i(24621),s=["mat-button",""],c=["*"],u=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],l=(0,n.pj)((0,n.Id)((0,n.Kr)(function t(e){_classCallCheck(this,t),this._elementRef=e}))),h=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;_classCallCheck(this,i),(o=e.call(this,t))._focusMonitor=n,o._animationMode=r,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");var a,s=_createForOfIteratorHelper(u);try{for(s.s();!(a=s.n()).done;){var c=a.value;o._hasHostAttributes(c)&&o._getHostElement().classList.add(c)}}catch(l){s.e(l)}finally{s.f()}return t.nativeElement.classList.add("mat-button-base"),o.isRoundButton&&(o.color="accent"),o}return _createClass(i,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var t=this,e=arguments.length,i=new Array(e),n=0;n*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t}(),d=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[n.si,n.BQ],n.BQ]}),t}()},27439:function(t,e,i){"use strict";i.d(e,{a8:function(){return p},kc:function(){return f},dn:function(){return l},dk:function(){return g},QW:function(){return m},$j:function(){return d},n5:function(){return h}});var n=i(43490),r=i(71522),o=i(31572),a=["*",[["mat-card-footer"]]],s=["*","mat-card-footer"],c=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],u=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],l=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t}(),h=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t}(),d=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),t}(),f=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),t}(),p=function(){var t=function t(e){_classCallCheck(this,t),this._animationMode=e};return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.Qb,8))},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&o.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:s,decls:2,vars:0,template:function(t,e){1&t&&(o.F$t(a),o.Hsn(0),o.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-animation-noopable.mat-card{transition:none;animation:none}.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}.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}\n"],encapsulation:2,changeDetection:0}),t}(),g=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:u,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(o.F$t(c),o.Hsn(0),o.TgZ(1,"div",0),o.Hsn(2,1),o.qZA(),o.Hsn(3,2))},encapsulation:2,changeDetection:0}),t}(),m=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[r.BQ],r.BQ]}),t}()},29236:function(t,e,i){"use strict";i.d(e,{oG:function(){return b},p9:function(){return A}});var n=i(19861),r=i(31572),o=i(16073),a=i(71522),s=i(43490),c=i(36337),u=i(24621),l=["input"],h=function(t){return{enterDuration:t}},d=["*"],f=new r.OlP("mat-checkbox-default-options",{providedIn:"root",factory:p});function p(){return{color:"accent",clickAction:"check-indeterminate"}}var g=0,m={color:"accent",clickAction:"check-indeterminate"},v={provide:o.JU,useExisting:(0,r.Gpc)(function(){return b}),multi:!0},y=function t(){_classCallCheck(this,t)},_=(0,a.sb)((0,a.pj)((0,a.Kr)((0,a.Id)(function t(e){_classCallCheck(this,t),this._elementRef=e})))),b=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,o,a,s,c,u){var l;return _classCallCheck(this,i),(l=e.call(this,t))._changeDetectorRef=n,l._focusMonitor=o,l._ngZone=a,l._animationMode=c,l._options=u,l.ariaLabel="",l.ariaLabelledby=null,l._uniqueId="mat-checkbox-"+ ++g,l.id=l._uniqueId,l.labelPosition="after",l.name=null,l.change=new r.vpe,l.indeterminateChange=new r.vpe,l._onTouched=function(){},l._currentAnimationClass="",l._currentCheckState=0,l._controlValueAccessorChangeFn=function(){},l._checked=!1,l._disabled=!1,l._indeterminate=!1,l._options=l._options||m,l.color=l.defaultColor=l._options.color||m.color,l.tabIndex=parseInt(s)||0,l}return _createClass(i,[{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"required",get:function(){return this._required},set:function(t){this._required=(0,n.Ig)(t)}},{key:"ngAfterViewInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(e){e||Promise.resolve().then(function(){t._onTouched(),t._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"checked",get:function(){return this._checked},set:function(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(t){var e=(0,n.Ig)(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(t){var e=t!=this._indeterminate;this._indeterminate=(0,n.Ig)(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(t){this.checked=!!t}},{key:"registerOnChange",value:function(t){this._controlValueAccessorChangeFn=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(t){var e=this._currentCheckState,i=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);var n=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){i.classList.remove(n)},1e3)})}}},{key:"_emitChangeEvent",value:function(){var t=new y;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(t){var e,i=this,n=null===(e=this._options)||void 0===e?void 0:e.clickAction;t.stopPropagation(),this.disabled||"noop"===n?this.disabled||"noop"!==n||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==n&&Promise.resolve().then(function(){i._indeterminate=!1,i.indeterminateChange.emit(i._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(t,e){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}},{key:"_onInteractionEvent",value:function(t){t.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(t,e){if("NoopAnimations"===this._animationMode)return"";var i="";switch(t){case 0:if(1===e)i="unchecked-checked";else{if(3!=e)return"";i="unchecked-indeterminate"}break;case 2:i=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===e?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-".concat(i)}},{key:"_syncIndeterminate",value:function(t){var e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}]),i}(_);return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(u.tE),r.Y36(r.R0b),r.$8M("tabindex"),r.Y36(s.Qb,8),r.Y36(f,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){var i;(1&t&&(r.Gf(l,5),r.Gf(a.wG,5)),2&t)&&(r.iGM(i=r.CRH())&&(e._inputElement=i.first),r.iGM(i=r.CRH())&&(e.ripple=i.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(r.Ikx("id",e.id),r.uIk("tabindex",null),r.ekj("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[r._Bn([v]),r.qOj],ngContentSelectors:d,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",0,"xml","space","preserve",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(t,e){if(1&t&&(r.F$t(),r.TgZ(0,"label",0,1),r.TgZ(2,"span",2),r.TgZ(3,"input",3,4),r.NdJ("change",function(t){return e._onInteractionEvent(t)})("click",function(t){return e._onInputClick(t)}),r.qZA(),r.TgZ(5,"span",5),r._UZ(6,"span",6),r.qZA(),r._UZ(7,"span",7),r.TgZ(8,"span",8),r.O4$(),r.TgZ(9,"svg",9),r._UZ(10,"path",10),r.qZA(),r.kcU(),r._UZ(11,"span",11),r.qZA(),r.qZA(),r.TgZ(12,"span",12,13),r.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),r.TgZ(14,"span",14),r._uU(15,"\xa0"),r.qZA(),r.Hsn(16),r.qZA(),r.qZA()),2&t){var i=r.MAs(1),n=r.MAs(13);r.uIk("for",e.inputId),r.xp6(2),r.ekj("mat-checkbox-inner-container-no-side-margin",!n.textContent||!n.textContent.trim()),r.xp6(1),r.Q6J("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),r.uIk("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),r.xp6(2),r.Q6J("matRippleTrigger",i)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",r.VKq(19,h,"NoopAnimations"===e._animationMode?0:150))}},directives:[a.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:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-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;-moz-user-select:auto;-ms-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:transparent;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:transparent}.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%}\n"],encapsulation:2,changeDetection:0}),t}(),w=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t}(),A=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[a.si,a.BQ,c.Q8,w],a.BQ,w]}),t}()},10033:function(t,e,i){"use strict";i.d(e,{HS:function(){return T},oH:function(){return P},qn:function(){return x},Hi:function(){return M}});var n=i(75842),r=i(31572),o=i(71522),a=i(19861),s=i(61511),c=i(43490),u=i(55959),l=i(31906),h=i(90611),d=i(25416),f=i(56238),p=i(24621),g=i(4230),m=i(66283),v=i(11353),y=i(22526),_=i(16073),b=["*"],w=new r.OlP("MatChipRemove"),A=new r.OlP("MatChipAvatar"),k=new r.OlP("MatChipTrailingIcon"),C=(0,o.sb)((0,o.pj)((0,o.Kr)(function t(e){_classCallCheck(this,t),this._elementRef=e}),"primary"),-1),T=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,a,s,c,l,h,d){var f;return _classCallCheck(this,i),(f=e.call(this,t))._elementRef=t,f._ngZone=n,f._changeDetectorRef=c,f._hasFocus=!1,f.chipListSelectable=!0,f._chipListMultiple=!1,f._chipListDisabled=!1,f._selected=!1,f._selectable=!0,f._disabled=!1,f._removable=!0,f._onFocus=new u.xQ,f._onBlur=new u.xQ,f.selectionChange=new r.vpe,f.destroyed=new r.vpe,f.removed=new r.vpe,f._addHostClassName(),f._chipRippleTarget=l.createElement("div"),f._chipRippleTarget.classList.add("mat-chip-ripple"),f._elementRef.nativeElement.appendChild(f._chipRippleTarget),f._chipRipple=new o.IR(_assertThisInitialized(f),n,f._chipRippleTarget,a),f._chipRipple.setupTriggerEvents(t),f.rippleConfig=s||{},f._animationsDisabled="NoopAnimations"===h,f.tabIndex=null!=d&&parseInt(d)||-1,f}return _createClass(i,[{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(t){var e=(0,a.Ig)(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(t){this._value=t}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(t){this._selectable=(0,a.Ig)(t)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(t){this._disabled=(0,a.Ig)(t)}},{key:"removable",get:function(){return this._removable},set:function(t){this._removable=(0,a.Ig)(t)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}},{key:"_addHostClassName",value:function(){var t=this._elementRef.nativeElement;t.hasAttribute("mat-basic-chip")||"mat-basic-chip"===t.tagName.toLowerCase()?t.classList.add("mat-basic-chip"):t.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}},{key:"toggleSelected",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(t),this._changeDetectorRef.markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(t){this.disabled?t.preventDefault():t.stopPropagation()}},{key:"_handleKeydown",value:function(t){if(!this.disabled)switch(t.keyCode){case n.yY:case n.ZH:this.remove(),t.preventDefault();break;case n.L_:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}},{key:"_blur",value:function(){var t=this;this._ngZone.onStable.pipe((0,h.q)(1)).subscribe(function(){t._ngZone.run(function(){t._hasFocus=!1,t._onBlur.next({chip:t})})})}},{key:"_dispatchSelectionChange",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}}]),i}(C);return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(r.R0b),r.Y36(v.t4),r.Y36(o.Y2,8),r.Y36(r.sBO),r.Y36(s.K0),r.Y36(c.Qb,8),r.$8M("tabindex"))},t.\u0275dir=r.lG2({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,i){var n;(1&t&&(r.Suo(i,A,5),r.Suo(i,k,5),r.Suo(i,w,5)),2&t)&&(r.iGM(n=r.CRH())&&(e.avatar=n.first),r.iGM(n=r.CRH())&&(e.trailingIcon=n.first),r.iGM(n=r.CRH())&&(e.removeIcon=n.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&r.NdJ("click",function(t){return e._handleClick(t)})("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e.focus()})("blur",function(){return e._blur()}),2&t&&(r.uIk("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),r.ekj("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[r.qOj]}),t}(),E=new r.OlP("mat-chips-default-options"),S=(0,o.FD)(function t(e,i,n,r){_classCallCheck(this,t),this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=r}),I=0,R=function t(e,i){_classCallCheck(this,t),this.source=e,this.value=i},x=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,o,a,s,c,l){var h;return _classCallCheck(this,i),(h=e.call(this,c,a,s,l))._elementRef=t,h._changeDetectorRef=n,h._dir=o,h.ngControl=l,h.controlType="mat-chip-list",h._lastDestroyedChipIndex=null,h._destroyed=new u.xQ,h._uid="mat-chip-list-"+I++,h._tabIndex=0,h._userTabIndex=null,h._onTouched=function(){},h._onChange=function(){},h._multiple=!1,h._compareWith=function(t,e){return t===e},h._required=!1,h._disabled=!1,h.ariaOrientation="horizontal",h._selectable=!0,h.change=new r.vpe,h.valueChange=new r.vpe,h.ngControl&&(h.ngControl.valueAccessor=_assertThisInitialized(h)),h}return _createClass(i,[{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(t){this._multiple=(0,a.Ig)(t),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(t){this.writeValue(t),this._value=t}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(t){this._required=(0,a.Ig)(t),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(t){this._disabled=(0,a.Ig)(t),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(t){var e=this;this._selectable=(0,a.Ig)(t),this.chips&&this.chips.forEach(function(t){return t.chipListSelectable=e._selectable})}},{key:"tabIndex",set:function(t){this._userTabIndex=t,this._tabIndex=t}},{key:"chipSelectionChanges",get:function(){return l.T.apply(void 0,_toConsumableArray(this.chips.map(function(t){return t.selectionChange})))}},{key:"chipFocusChanges",get:function(){return l.T.apply(void 0,_toConsumableArray(this.chips.map(function(t){return t._onFocus})))}},{key:"chipBlurChanges",get:function(){return l.T.apply(void 0,_toConsumableArray(this.chips.map(function(t){return t._onBlur})))}},{key:"chipRemoveChanges",get:function(){return l.T.apply(void 0,_toConsumableArray(this.chips.map(function(t){return t.destroyed})))}},{key:"ngAfterContentInit",value:function(){var t=this;this._keyManager=new p.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,d.R)(this._destroyed)).subscribe(function(e){return t._keyManager.withHorizontalOrientation(e)}),this._keyManager.tabOut.pipe((0,d.R)(this._destroyed)).subscribe(function(){t._allowFocusEscape()}),this.chips.changes.pipe((0,f.O)(null),(0,d.R)(this._destroyed)).subscribe(function(){t.disabled&&Promise.resolve().then(function(){t._syncChipsState()}),t._resetChips(),t._initializeSelection(),t._updateTabIndex(),t._updateFocusForDestroyedChips(),t.stateChanges.next()})}},{key:"ngOnInit",value:function(){this._selectionModel=new g.Ov(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(t){this._chipInput=t,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",t.id)}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"writeValue",value:function(t){this.chips&&this._setSelectionByValue(t,!1)}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this.stateChanges.next()}},{key:"onContainerClick",value:function(t){this._originatesFromChip(t)||this.focus()}},{key:"focus",value:function(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}},{key:"_focusInput",value:function(t){this._chipInput&&this._chipInput.focus(t)}},{key:"_keydown",value:function(t){var e=t.target;e&&e.classList.contains("mat-chip")&&(this._keyManager.onKeydown(t),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(t){return t>=0&&t1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach(function(t){return t.deselect()}),Array.isArray(t))t.forEach(function(t){return e._selectValue(t,i)}),this._sortValues();else{var n=this._selectValue(t,i);n&&i&&this._keyManager.setActiveItem(n)}}},{key:"_selectValue",value:function(t){var e=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.chips.find(function(i){return null!=i.value&&e._compareWith(i.value,t)});return n&&(i?n.selectViaInteraction():n.select(),this._selectionModel.select(n)),n}},{key:"_initializeSelection",value:function(){var t=this;Promise.resolve().then(function(){(t.ngControl||t._value)&&(t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value,!1),t.stateChanges.next())})}},{key:"_clearSelection",value:function(t){this._selectionModel.clear(),this.chips.forEach(function(e){e!==t&&e.deselect()}),this.stateChanges.next()}},{key:"_sortValues",value:function(){var t=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(e){e.selected&&t._selectionModel.select(e)}),this.stateChanges.next())}},{key:"_propagateChanges",value:function(t){var e;e=Array.isArray(this.selected)?this.selected.map(function(t){return t.value}):this.selected?this.selected.value:t,this._value=e,this.change.emit(new R(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var t=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(function(){t.focused||t._markAsTouched()}):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var t=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(function(){t._tabIndex=t._userTabIndex||0,t._changeDetectorRef.markForCheck()}))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){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)}},{key:"_listenToChipsSelection",value:function(){var t=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(function(e){e.source.selected?t._selectionModel.select(e.source):t._selectionModel.deselect(e.source),t.multiple||t.chips.forEach(function(e){!t._selectionModel.isSelected(e)&&e.selected&&e.deselect()}),e.isUserInput&&t._propagateChanges()})}},{key:"_listenToChipsFocus",value:function(){var t=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(e){var i=t.chips.toArray().indexOf(e.chip);t._isValidIndex(i)&&t._keyManager.updateActiveItem(i),t.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(function(){t._blur(),t.stateChanges.next()})}},{key:"_listenToChipsRemoved",value:function(){var t=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(function(e){var i=e.chip,n=t.chips.toArray().indexOf(e.chip);t._isValidIndex(n)&&i._hasFocus&&(t._lastDestroyedChipIndex=n)})}},{key:"_originatesFromChip",value:function(t){for(var e=t.target;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-chip"))return!0;e=e.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips&&this.chips.some(function(t){return t._hasFocus})}},{key:"_syncChipsState",value:function(){var t=this;this.chips&&this.chips.forEach(function(e){e._chipListDisabled=t._disabled,e._chipListMultiple=t.multiple})}}]),i}(S);return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(y.Is,8),r.Y36(_.F,8),r.Y36(_.sg,8),r.Y36(o.rD),r.Y36(_.a5,10))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,i){var n;(1&t&&r.Suo(i,T,5),2&t)&&(r.iGM(n=r.CRH())&&(e.chips=n))},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&r.NdJ("focus",function(){return e.focus()})("blur",function(){return e._blur()})("keydown",function(t){return e._keydown(t)}),2&t&&(r.Ikx("id",e._uid),r.uIk("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),r.ekj("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[r._Bn([{provide:m.Eo,useExisting:t}]),r.qOj],ngContentSelectors:b,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"div",0),r.Hsn(1),r.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.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-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height: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:focus{outline:dotted 2px}.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}.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}\n'],encapsulation:2,changeDetection:0}),t}(),O=0,P=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this._elementRef=e,this._defaultOptions=i,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new r.vpe,this.placeholder="",this.id="mat-chip-list-input-"+O++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}return _createClass(t,[{key:"chipList",set:function(t){t&&(this._chipList=t,this._chipList.registerInput(this))}},{key:"addOnBlur",get:function(){return this._addOnBlur},set:function(t){this._addOnBlur=(0,a.Ig)(t)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(t){this._disabled=(0,a.Ig)(t)}},{key:"empty",get:function(){return!this.inputElement.value}},{key:"ngOnChanges",value:function(){this._chipList.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.chipEnd.complete()}},{key:"ngAfterContentInit",value:function(){this._focusLastChipOnBackspace=this.empty}},{key:"_keydown",value:function(t){if(t){if(t.keyCode!==n.Mf||(0,n.Vb)(t,"shiftKey")||this._chipList._allowFocusEscape(),t.keyCode===n.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void t.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(t)}},{key:"_keyup",value:function(t){!this._focusLastChipOnBackspace&&t.keyCode===n.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,t.preventDefault())}},{key:"_blur",value:function(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}},{key:"_focus",value:function(){this.focused=!0,this._chipList.stateChanges.next()}},{key:"_emitChipEnd",value:function(t){!this.inputElement.value&&t&&this._chipList._keydown(t),t&&!this._isSeparatorKey(t)||(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==t||t.preventDefault())}},{key:"_onInput",value:function(){this._chipList.stateChanges.next()}},{key:"focus",value:function(t){this.inputElement.focus(t)}},{key:"clear",value:function(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}},{key:"_isSeparatorKey",value:function(t){return!(0,n.Vb)(t)&&new Set(this.separatorKeyCodes).has(t.keyCode)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(E))},t.\u0275dir=r.lG2({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,e){1&t&&r.NdJ("keydown",function(t){return e._keydown(t)})("keyup",function(t){return e._keyup(t)})("blur",function(){return e._blur()})("focus",function(){return e._focus()})("input",function(){return e._onInput()}),2&t&&(r.Ikx("id",e.id),r.uIk("disabled",e.disabled||null)("placeholder",e.placeholder||null)("aria-invalid",e._chipList&&e._chipList.ngControl?e._chipList.ngControl.invalid:null)("aria-required",e._chipList&&e._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[r.TTD]}),t}(),D={separatorKeyCodes:[n.K5]},M=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[o.rD,{provide:E,useValue:D}],imports:[[o.BQ]]}),t}()},71522:function(t,e,i){"use strict";i.d(e,{yN:function(){return y},mZ:function(){return _},_A:function(){return O},rD:function(){return U},sG:function(){return P},K7:function(){return ct},HF:function(){return rt},Y2:function(){return $},BQ:function(){return A},X2:function(){return q},uc:function(){return Y},XK:function(){return H},ey:function(){return dt},Ng:function(){return gt},rN:function(){return lt},nP:function(){return it},us:function(){return nt},wG:function(){return tt},si:function(){return et},LF:function(){return Z},IR:function(){return X},CB:function(){return ft},jH:function(){return pt},pj:function(){return C},Kr:function(){return T},Id:function(){return k},FD:function(){return S},dB:function(){return I},sb:function(){return E},E0:function(){return G}});var n=i(31572),r=i(24621),o=i(22526),a=new n.GfV("12.0.5"),s=i(61511),c=i(19861),u=i(55959),l=i(48318),h=i(11353),d=i(56238),f=i(43490),p=i(75842);function g(t,e){if(1&t&&n._UZ(0,"mat-pseudo-checkbox",4),2&t){var i=n.oxw();n.Q6J("state",i.selected?"checked":"unchecked")("disabled",i.disabled)}}function m(t,e){if(1&t&&(n.TgZ(0,"span",5),n._uU(1),n.qZA()),2&t){var i=n.oxw();n.xp6(1),n.hij("(",i.group.label,")")}}var v=["*"],y=function(){var t=function t(){_classCallCheck(this,t)};return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t}(),_=function(){var t=function t(){_classCallCheck(this,t)};return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t}(),b=new n.GfV("12.0.5"),w=new n.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),A=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this._hasDoneGlobalChecks=!1,this._document=n,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=i,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return _createClass(t,[{key:"_getWindow",value:function(){var t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}},{key:"_checksAreEnabled",value:function(){return(0,n.X6Q)()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var t=this._getWindow();return t&&(t.__karma__||t.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document.body&&"function"==typeof getComputedStyle){var t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);var e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&b.full!==a.full&&console.warn("The Angular Material version ("+b.full+") does not match the Angular CDK version ("+a.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.LFG(r.qm),n.LFG(w,8),n.LFG(s.K0))},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[o.vT],o.vT]}),t}();function k(t){return function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;_classCallCheck(this,i);for(var n=arguments.length,r=new Array(n),o=0;o1&&void 0!==arguments[1]?arguments[1]:0;return function(t){_inherits(n,t);var i=_createSuper(n);function n(){var t;_classCallCheck(this,n);for(var r=arguments.length,o=new Array(r),a=0;a0?i:t}}]),t}(),P=new n.OlP("mat-date-formats");try{R="undefined"!=typeof Intl}catch(mt){R=!1}var D={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},M=z(31,function(t){return String(t+1)}),L={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},N=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function z(t,e){for(var i=Array(t),n=0;n9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});var i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(i,t))}return this._stripDirectionalityCharacters(t.toDateString())}},{key:"addCalendarYears",value:function(t,e){return this.addCalendarMonths(t,12*e)}},{key:"addCalendarMonths",value:function(t,e){var i=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(i)!=((this.getMonth(t)+e)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}},{key:"addCalendarDays",value:function(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}},{key:"toIso8601",value:function(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}},{key:"deserialize",value:function(t){if("string"==typeof t){if(!t)return null;if(N.test(t)){var e=new Date(t);if(this.isValid(e))return e}}return _get(_getPrototypeOf(i.prototype),"deserialize",this).call(this,t)}},{key:"isDateInstance",value:function(t){return t instanceof Date}},{key:"isValid",value:function(t){return!isNaN(t.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(t,e,i){var n=new Date;return n.setFullYear(t,e,i),n.setHours(0,0,0,0),n}},{key:"_2digit",value:function(t){return("00"+t).slice(-2)}},{key:"_stripDirectionalityCharacters",value:function(t){return t.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(t,e){var i=new Date;return i.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),i.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(i)}}]),i}(O);return t.\u0275fac=function(e){return new(e||t)(n.LFG(x,8),n.LFG(h.t4))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t}(),B=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:O,useClass:Z}],imports:[[h.ud]]}),t}(),F={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"}}},H=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:P,useValue:F}],imports:[[B]]}),t}(),U=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"isErrorState",value:function(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t}(),q=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t}();function G(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat";t.changes.pipe((0,d.O)(t)).subscribe(function(t){var n=t.length;j(e,"".concat(i,"-2-line"),!1),j(e,"".concat(i,"-3-line"),!1),j(e,"".concat(i,"-multi-line"),!1),2===n||3===n?j(e,"".concat(i,"-").concat(n,"-line"),!0):n>3&&j(e,"".concat(i,"-multi-line"),!0)})}function j(t,e,i){var n=t.nativeElement.classList;i?n.add(e):n.remove(e)}var Y=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[A],A]}),t}(),K=function(){function t(e,i,n){_classCallCheck(this,t),this._renderer=e,this.element=i,this.config=n,this.state=3}return _createClass(t,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),t}(),V={enterDuration:450,exitDuration:400},J=(0,h.i$)({passive:!0}),Q=["mousedown","touchstart"],W=["mouseup","mouseleave","touchend","touchcancel"],X=function(){function t(e,i,n,r){_classCallCheck(this,t),this._target=e,this._ngZone=i,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=(0,c.fI)(n))}return _createClass(t,[{key:"fadeInRipple",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},V),n.animation);n.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);var a=n.radius||function(t,e,i){var n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),r=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+r*r)}(t,e,r),s=t-r.left,c=e-r.top,u=o.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=s-a+"px",l.style.top=c-a+"px",l.style.height=2*a+"px",l.style.width=2*a+"px",null!=n.color&&(l.style.backgroundColor=n.color),l.style.transitionDuration="".concat(u,"ms"),this._containerElement.appendChild(l),window.getComputedStyle(l).getPropertyValue("opacity"),l.style.transform="scale(1)";var h=new K(this,l,n);return h.state=0,this._activeRipples.add(h),n.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(function(){var t=h===i._mostRecentTransientRipple;h.state=1,n.persistent||t&&i._isPointerDown||h.fadeOut()},u),h}},{key:"fadeOutRipple",value:function(t){var e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),e){var i=t.element,n=Object.assign(Object.assign({},V),t.config.animation);i.style.transitionDuration="".concat(n.exitDuration,"ms"),i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(function(){t.state=3,i.parentNode.removeChild(i)},n.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(t){return t.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(t){t.config.persistent||t.fadeOut()})}},{key:"setupTriggerEvents",value:function(t){var e=(0,c.fI)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Q))}},{key:"handleEvent",value:function(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(W),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(t){var e=(0,r.X6)(t),i=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(t,e)})}},{key:"_registerEvents",value:function(t){var e=this;this._ngZone.runOutsideAngular(function(){t.forEach(function(t){e._triggerElement.addEventListener(t,e,J)})})}},{key:"_removeTriggerEvents",value:function(){var t=this;this._triggerElement&&(Q.forEach(function(e){t._triggerElement.removeEventListener(e,t,J)}),this._pointerUpEventsRegistered&&W.forEach(function(e){t._triggerElement.removeEventListener(e,t,J)}))}}]),t}(),$=new n.OlP("mat-ripple-global-options"),tt=function(){var t=function(){function t(e,i,n,r,o){_classCallCheck(this,t),this._elementRef=e,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new X(this,i,e,n)}return _createClass(t,[{key:"disabled",get:function(){return this._disabled},set:function(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(h.t4),n.Y36($,8),n.Y36(f.Qb,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&n.ekj("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t}(),et=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[A,h.ud],A]}),t}(),it=function(){var t=function t(e){_classCallCheck(this,t),this._animationMode=e,this.state="unchecked",this.disabled=!1};return t.\u0275fac=function(e){return new(e||t)(n.Y36(f.Qb,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&n.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},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:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::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}\n'],encapsulation:2,changeDetection:0}),t}(),nt=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[A]]}),t}(),rt=new n.OlP("MAT_OPTION_PARENT_COMPONENT"),ot=k(function t(){_classCallCheck(this,t)}),at=0,st=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n,r;return _classCallCheck(this,i),(n=e.call(this))._labelId="mat-optgroup-label-"+at++,n._inert=null!==(r=null==t?void 0:t.inertGroups)&&void 0!==r&&r,n}return i}(ot);return t.\u0275fac=function(e){return new(e||t)(n.Y36(rt,8))},t.\u0275dir=n.lG2({type:t,inputs:{label:"label"},features:[n.qOj]}),t}(),ct=new n.OlP("MatOptgroup"),ut=0,lt=function t(e){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_classCallCheck(this,t),this.source=e,this.isUserInput=i},ht=function(){var t=function(){function t(e,i,r,o){_classCallCheck(this,t),this._element=e,this._changeDetectorRef=i,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+ut++,this.onSelectionChange=new n.vpe,this._stateChanges=new u.xQ}return _createClass(t,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(t){this._disabled=(0,c.Ig)(t)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(t,e){var i=this._getHostElement();"function"==typeof i.focus&&i.focus(e)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(t){t.keyCode!==p.K5&&t.keyCode!==p.L_||(0,p.Vb)(t)||(this._selectViaInteraction(),t.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new lt(this,t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(void 0),n.Y36(st))},t.\u0275dir=n.lG2({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t}(),dt=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){return _classCallCheck(this,i),e.call(this,t,n,r,o)}return i}(ht);return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(rt,8),n.Y36(ct,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&n.NdJ("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(n.Ikx("id",e.id),n.uIk("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),n.ekj("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[n.qOj],ngContentSelectors:v,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(t,e){1&t&&(n.F$t(),n.YNc(0,g,1,2,"mat-pseudo-checkbox",0),n.TgZ(1,"span",1),n.Hsn(2),n.qZA(),n.YNc(3,m,2,1,"span",2),n._UZ(4,"div",3)),2&t&&(n.Q6J("ngIf",e.multiple),n.xp6(3),n.Q6J("ngIf",e.group&&e.group._inert),n.xp6(1),n.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[s.O5,tt,it],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:transparent}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t}();function ft(t,e,i){if(i.length){for(var n=e.toArray(),r=i.toArray(),o=0,a=0;ai+n?Math.max(0,t-n+e):i}var gt=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[et,s.ez,A,nt]]}),t}()},15812:function(t,e,i){"use strict";i.d(e,{Mq:function(){return mt},hl:function(){return wt},FA:function(){return Ct},nW:function(){return kt}});var n=i(24621),r=i(2522),o=i(26899),a=i(61511),s=i(31572),c=i(15980),u=i(4253),l=i(71522),h=i(55959),d=i(87570),f=i(31906),p=i(40878),g=i(75842),m=i(90611),v=i(56238),y=i(43835),_=i(19861),b=i(11353),w=i(10709),A=i(16073),k=i(66283),C=i(80340),T=i(22526),E=["mat-calendar-body",""];function S(t,e){if(1&t&&(s.TgZ(0,"tr",2),s.TgZ(1,"td",3),s._uU(2),s.qZA(),s.qZA()),2&t){var i=s.oxw();s.xp6(1),s.Udp("padding-top",i._cellPadding)("padding-bottom",i._cellPadding),s.uIk("colspan",i.numCols),s.xp6(1),s.hij(" ",i.label," ")}}function I(t,e){if(1&t&&(s.TgZ(0,"td",7),s._uU(1),s.qZA()),2&t){var i=s.oxw(2);s.Udp("padding-top",i._cellPadding)("padding-bottom",i._cellPadding),s.uIk("colspan",i._firstRowOffset),s.xp6(1),s.hij(" ",i._firstRowOffset>=i.labelMinRequiredCells?i.label:""," ")}}function R(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"td",8),s.NdJ("click",function(t){var e=s.CHM(i).$implicit;return s.oxw(2)._cellClicked(e,t)}),s.TgZ(1,"div",9),s._uU(2),s.qZA(),s._UZ(3,"div",10),s.qZA()}if(2&t){var n=e.$implicit,r=e.index,o=s.oxw().index,a=s.oxw();s.Udp("width",a._cellWidth)("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),s.ekj("mat-calendar-body-disabled",!n.enabled)("mat-calendar-body-active",a._isActiveCell(o,r))("mat-calendar-body-range-start",a._isRangeStart(n.compareValue))("mat-calendar-body-range-end",a._isRangeEnd(n.compareValue))("mat-calendar-body-in-range",a._isInRange(n.compareValue))("mat-calendar-body-comparison-bridge-start",a._isComparisonBridgeStart(n.compareValue,o,r))("mat-calendar-body-comparison-bridge-end",a._isComparisonBridgeEnd(n.compareValue,o,r))("mat-calendar-body-comparison-start",a._isComparisonStart(n.compareValue))("mat-calendar-body-comparison-end",a._isComparisonEnd(n.compareValue))("mat-calendar-body-in-comparison-range",a._isInComparisonRange(n.compareValue))("mat-calendar-body-preview-start",a._isPreviewStart(n.compareValue))("mat-calendar-body-preview-end",a._isPreviewEnd(n.compareValue))("mat-calendar-body-in-preview",a._isInPreview(n.compareValue)),s.Q6J("ngClass",n.cssClasses)("tabindex",a._isActiveCell(o,r)?0:-1),s.uIk("data-mat-row",o)("data-mat-col",r)("aria-label",n.ariaLabel)("aria-disabled",!n.enabled||null)("aria-selected",a._isSelected(n.compareValue)),s.xp6(1),s.ekj("mat-calendar-body-selected",a._isSelected(n.compareValue))("mat-calendar-body-comparison-identical",a._isComparisonIdentical(n.compareValue))("mat-calendar-body-today",a.todayValue===n.compareValue),s.xp6(1),s.hij(" ",n.displayValue," ")}}function x(t,e){if(1&t&&(s.TgZ(0,"tr",4),s.YNc(1,I,2,6,"td",5),s.YNc(2,R,4,46,"td",6),s.qZA()),2&t){var i=e.$implicit,n=e.index,r=s.oxw();s.xp6(1),s.Q6J("ngIf",0===n&&r._firstRowOffset),s.xp6(1),s.Q6J("ngForOf",i)}}function O(t,e){if(1&t&&(s.TgZ(0,"th",5),s._uU(1),s.qZA()),2&t){var i=e.$implicit;s.uIk("aria-label",i.long),s.xp6(1),s.Oqu(i.narrow)}}var P=["*"];function D(t,e){}function M(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"mat-month-view",5),s.NdJ("activeDateChange",function(t){return s.CHM(i),s.oxw().activeDate=t})("_userSelection",function(t){return s.CHM(i),s.oxw()._dateSelected(t)}),s.qZA()}if(2&t){var n=s.oxw();s.Q6J("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)("comparisonStart",n.comparisonStart)("comparisonEnd",n.comparisonEnd)}}function L(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"mat-year-view",6),s.NdJ("activeDateChange",function(t){return s.CHM(i),s.oxw().activeDate=t})("monthSelected",function(t){return s.CHM(i),s.oxw()._monthSelectedInYearView(t)})("selectedChange",function(t){return s.CHM(i),s.oxw()._goToDateInView(t,"month")}),s.qZA()}if(2&t){var n=s.oxw();s.Q6J("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)}}function N(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"mat-multi-year-view",7),s.NdJ("activeDateChange",function(t){return s.CHM(i),s.oxw().activeDate=t})("yearSelected",function(t){return s.CHM(i),s.oxw()._yearSelectedInMultiYearView(t)})("selectedChange",function(t){return s.CHM(i),s.oxw()._goToDateInView(t,"year")}),s.qZA()}if(2&t){var n=s.oxw();s.Q6J("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)}}function z(t,e){}var Z=["button"];function B(t,e){1&t&&(s.O4$(),s.TgZ(0,"svg",3),s._UZ(1,"path",4),s.qZA())}var F=[[["","matDatepickerToggleIcon",""]]],H=["[matDatepickerToggleIcon]"],U=function(){var t=function(){function t(){_classCallCheck(this,t),this.changes=new h.xQ,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"}return _createClass(t,[{key:"formatYearRange",value:function(t,e){return"".concat(t," \u2013 ").concat(e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t}(),q=function t(e,i,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,s=arguments.length>6?arguments[6]:void 0;_classCallCheck(this,t),this.value=e,this.displayValue=i,this.ariaLabel=n,this.enabled=r,this.cssClasses=o,this.compareValue=a,this.rawValue=s},G=function(){var t=function(){function t(e,i){var n=this;_classCallCheck(this,t),this._elementRef=e,this._ngZone=i,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new s.vpe,this.previewChange=new s.vpe,this._enterHandler=function(t){if(n._skipNextFocus&&"focus"===t.type)n._skipNextFocus=!1;else if(t.target&&n.isRange){var e=n._getCellFromElement(t.target);e&&n._ngZone.run(function(){return n.previewChange.emit({value:e.enabled?e:null,event:t})})}},this._leaveHandler=function(t){null!==n.previewEnd&&n.isRange&&t.target&&j(t.target)&&n._ngZone.run(function(){return n.previewChange.emit({value:null,event:t})})},i.runOutsideAngular(function(){var t=e.nativeElement;t.addEventListener("mouseenter",n._enterHandler,!0),t.addEventListener("focus",n._enterHandler,!0),t.addEventListener("mouseleave",n._leaveHandler,!0),t.addEventListener("blur",n._leaveHandler,!0)})}return _createClass(t,[{key:"_cellClicked",value:function(t,e){t.enabled&&this.selectedValueChange.emit({value:t.value,event:e})}},{key:"_isSelected",value:function(t){return this.startValue===t||this.endValue===t}},{key:"ngOnChanges",value:function(t){var e=t.numCols,i=this.rows,n=this.numCols;(t.rows||e)&&(this._firstRowOffset=i&&i.length&&i[0].length?n-i[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/n+"%"),!e&&this._cellWidth||(this._cellWidth=100/n+"%")}},{key:"ngOnDestroy",value:function(){var t=this._elementRef.nativeElement;t.removeEventListener("mouseenter",this._enterHandler,!0),t.removeEventListener("focus",this._enterHandler,!0),t.removeEventListener("mouseleave",this._leaveHandler,!0),t.removeEventListener("blur",this._leaveHandler,!0)}},{key:"_isActiveCell",value:function(t,e){var i=t*this.numCols+e;return t&&(i-=this._firstRowOffset),i==this.activeCell}},{key:"_focusActiveCell",value:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.pipe((0,m.q)(1)).subscribe(function(){var i=t._elementRef.nativeElement.querySelector(".mat-calendar-body-active");i&&(e||(t._skipNextFocus=!0),i.focus())})})}},{key:"_isRangeStart",value:function(t){return Y(t,this.startValue,this.endValue)}},{key:"_isRangeEnd",value:function(t){return K(t,this.startValue,this.endValue)}},{key:"_isInRange",value:function(t){return V(t,this.startValue,this.endValue,this.isRange)}},{key:"_isComparisonStart",value:function(t){return Y(t,this.comparisonStart,this.comparisonEnd)}},{key:"_isComparisonBridgeStart",value:function(t,e,i){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;var n=this.rows[e][i-1];if(!n){var r=this.rows[e-1];n=r&&r[r.length-1]}return n&&!this._isRangeEnd(n.compareValue)}},{key:"_isComparisonBridgeEnd",value:function(t,e,i){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;var n=this.rows[e][i+1];if(!n){var r=this.rows[e+1];n=r&&r[0]}return n&&!this._isRangeStart(n.compareValue)}},{key:"_isComparisonEnd",value:function(t){return K(t,this.comparisonStart,this.comparisonEnd)}},{key:"_isInComparisonRange",value:function(t){return V(t,this.comparisonStart,this.comparisonEnd,this.isRange)}},{key:"_isComparisonIdentical",value:function(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}},{key:"_isPreviewStart",value:function(t){return Y(t,this.previewStart,this.previewEnd)}},{key:"_isPreviewEnd",value:function(t){return K(t,this.previewStart,this.previewEnd)}},{key:"_isInPreview",value:function(t){return V(t,this.previewStart,this.previewEnd,this.isRange)}},{key:"_getCellFromElement",value:function(t){var e;if(j(t)?e=t:j(t.parentNode)&&(e=t.parentNode),e){var i=e.getAttribute("data-mat-row"),n=e.getAttribute("data-mat-col");if(i&&n)return this.rows[parseInt(i)][parseInt(n)]}return null}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b))},t.\u0275cmp=s.Xpm({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[s.TTD],attrs:E,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"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(t,e){1&t&&(s.YNc(0,S,3,6,"tr",0),s.YNc(1,x,3,2,"tr",1)),2&t&&(s.Q6J("ngIf",e._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),t}();function j(t){return"TD"===t.nodeName}function Y(t,e,i){return null!==i&&e!==i&&t=e&&t===i}function V(t,e,i,n){return n&&null!==e&&null!==i&&e!==i&&t>=e&&t<=i}var J=function t(e,i){_classCallCheck(this,t),this.start=e,this.end=i},Q=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.selection=e,this._adapter=i,this._selectionChanged=new h.xQ,this.selectionChanged=this._selectionChanged,this.selection=e}return _createClass(t,[{key:"updateSelection",value:function(t,e){var i=this.selection;this.selection=t,this._selectionChanged.next({selection:t,source:e,oldValue:i})}},{key:"ngOnDestroy",value:function(){this._selectionChanged.complete()}},{key:"_isValidDateInstance",value:function(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(void 0),s.LFG(l._A))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),W=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){return _classCallCheck(this,i),e.call(this,null,t)}return _createClass(i,[{key:"add",value:function(t){_get(_getPrototypeOf(i.prototype),"updateSelection",this).call(this,t,this)}},{key:"isValid",value:function(){return null!=this.selection&&this._isValidDateInstance(this.selection)}},{key:"isComplete",value:function(){return null!=this.selection}},{key:"clone",value:function(){var t=new i(this._adapter);return t.updateSelection(this.selection,this),t}}]),i}(Q);return t.\u0275fac=function(e){return new(e||t)(s.LFG(l._A))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t}(),X={provide:Q,deps:[[new s.FiY,new s.tp0,Q],l._A],useFactory:function(t,e){return t||new W(e)}},$=new s.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY"),tt=function(){var t=function(){function t(e,i,n,r,o){_classCallCheck(this,t),this._changeDetectorRef=e,this._dateFormats=i,this._dateAdapter=n,this._dir=r,this._rangeStrategy=o,this._rerenderSubscription=d.w.EMPTY,this.selectedChange=new s.vpe,this._userSelection=new s.vpe,this.activeDateChange=new s.vpe,this._activeDate=this._dateAdapter.today()}return _createClass(t,[{key:"activeDate",get:function(){return this._activeDate},set:function(t){var e=this._activeDate,i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(t){this._selected=t instanceof J?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}},{key:"minDate",get:function(){return this._minDate},set:function(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"maxDate",get:function(){return this._maxDate},set:function(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"ngAfterContentInit",value:function(){var t=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,v.O)(null)).subscribe(function(){return t._init()})}},{key:"ngOnChanges",value:function(t){var e=t.comparisonStart||t.comparisonEnd;e&&!e.firstChange&&this._setRanges(this.selected)}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_dateSelected",value:function(t){var e,i,n=t.value,r=this._dateAdapter.getYear(this.activeDate),o=this._dateAdapter.getMonth(this.activeDate),a=this._dateAdapter.createDate(r,o,n);this._selected instanceof J?(e=this._getDateInCurrentMonth(this._selected.start),i=this._getDateInCurrentMonth(this._selected.end)):e=i=this._getDateInCurrentMonth(this._selected),e===n&&i===n||this.selectedChange.emit(a),this._userSelection.emit({value:a,event:t.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}},{key:"_handleCalendarBodyKeydown",value:function(t){var e=this._activeDate,i=this._isRtl();switch(t.keyCode){case g.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?1:-1);break;case g.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?-1:1);break;case g.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case g.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case g.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case g.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case g.Ku:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case g.VM:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case g.K5:case g.L_:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),t.preventDefault()));case g.hY:return void(null==this._previewEnd||(0,g.Vb)(t)||(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t}),t.preventDefault(),t.stopPropagation()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}},{key:"_init",value:function(){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();var t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}},{key:"_focusActiveCell",value:function(t){this._matCalendarBody._focusActiveCell(t)}},{key:"_previewChanged",value:function(t){var e=t.event,i=t.value;if(this._rangeStrategy){var n=this._rangeStrategy.createPreview(i?i.rawValue:null,this.selected,e);this._previewStart=this._getCellCompareValue(n.start),this._previewEnd=this._getCellCompareValue(n.end),this._changeDetectorRef.detectChanges()}}},{key:"_initWeekdays",value:function(){var t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow"),i=this._dateAdapter.getDayOfWeekNames("long").map(function(t,i){return{long:t,narrow:e[i]}});this._weekdays=i.slice(t).concat(i.slice(0,t))}},{key:"_createWeekCells",value:function(){var t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(var i=0,n=this._firstWeekOffset;i=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}},{key:"_getDateInCurrentMonth",value:function(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}},{key:"_hasSameMonthAndYear",value:function(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}},{key:"_getCellCompareValue",value:function(t){if(t){var e=this._dateAdapter.getYear(t),i=this._dateAdapter.getMonth(t),n=this._dateAdapter.getDate(t);return new Date(e,i,n).getTime()}return null}},{key:"_isRtl",value:function(){return this._dir&&"rtl"===this._dir.value}},{key:"_setRanges",value:function(t){t instanceof J?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36(l.sG,8),s.Y36(l._A,8),s.Y36(T.Is,8),s.Y36($,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){var i;(1&t&&s.Gf(G,5),2&t)&&(s.iGM(i=s.CRH())&&(e._matCalendarBody=i.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:[s.TTD],decls:7,vars:13,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"]],template:function(t,e){1&t&&(s.TgZ(0,"table",0),s.TgZ(1,"thead",1),s.TgZ(2,"tr"),s.YNc(3,O,2,2,"th",2),s.qZA(),s.TgZ(4,"tr"),s._UZ(5,"th",3),s.qZA(),s.qZA(),s.TgZ(6,"tbody",4),s.NdJ("selectedValueChange",function(t){return e._dateSelected(t)})("previewChange",function(t){return e._previewChanged(t)})("keydown",function(t){return e._handleCalendarBodyKeydown(t)}),s.qZA(),s.qZA()),2&t&&(s.xp6(3),s.Q6J("ngForOf",e._weekdays),s.xp6(3),s.Q6J("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("startValue",e._rangeStart)("endValue",e._rangeEnd)("comparisonStart",e._comparisonRangeStart)("comparisonEnd",e._comparisonRangeEnd)("previewStart",e._previewStart)("previewEnd",e._previewEnd)("isRange",e._isRange)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[a.sg,G],encapsulation:2,changeDetection:0}),t}(),et=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this._changeDetectorRef=e,this._dateAdapter=i,this._dir=n,this._rerenderSubscription=d.w.EMPTY,this.selectedChange=new s.vpe,this.yearSelected=new s.vpe,this.activeDateChange=new s.vpe,this._activeDate=this._dateAdapter.today()}return _createClass(t,[{key:"activeDate",get:function(){return this._activeDate},set:function(t){var e=this._activeDate,i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),it(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(t){this._selected=t instanceof J?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}},{key:"minDate",get:function(){return this._minDate},set:function(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"maxDate",get:function(){return this._maxDate},set:function(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"ngAfterContentInit",value:function(){var t=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,v.O)(null)).subscribe(function(){return t._init()})}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_init",value:function(){var t=this;this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());var e=this._dateAdapter.getYear(this._activeDate)-nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var i=0,n=[];i<24;i++)n.push(e+i),4==n.length&&(this._years.push(n.map(function(e){return t._createCellForYear(e)})),n=[]);this._changeDetectorRef.markForCheck()}},{key:"_yearSelected",value:function(t){var e=t.value;this.yearSelected.emit(this._dateAdapter.createDate(e,0,1));var i=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));this.selectedChange.emit(this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}},{key:"_handleCalendarBodyKeydown",value:function(t){var e=this._activeDate,i=this._isRtl();switch(t.keyCode){case g.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?1:-1);break;case g.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?-1:1);break;case g.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case g.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case g.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case g.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case g.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case g.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:24);break;case g.K5:case g.L_:this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}},{key:"_getActiveCell",value:function(){return nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}},{key:"_focusActiveCell",value:function(){this._matCalendarBody._focusActiveCell()}},{key:"_createCellForYear",value:function(t){var e=this._dateAdapter.createDate(t,0,1),i=this._dateAdapter.getYearName(e),n=this.dateClass?this.dateClass(e,"multi-year"):void 0;return new q(t,i,i,this._shouldEnableYear(t),n)}},{key:"_shouldEnableYear",value:function(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&ti||t===i&&e>n}return!1}},{key:"_isYearAndMonthBeforeMinDate",value:function(t,e){if(this.minDate){var i=this._dateAdapter.getYear(this.minDate),n=this._dateAdapter.getMonth(this.minDate);return t enter-dropdown",(0,w.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,w.F4)([(0,w.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,w.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,w.eR)("void => enter-dialog",(0,w.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,w.F4)([(0,w.oB)({opacity:0,transform:"scale(0.7)"}),(0,w.oB)({transform:"none",opacity:1})]))),(0,w.eR)("* => void",(0,w.jt)("100ms linear",(0,w.oB)({opacity:0})))]),fadeInCalendar:(0,w.X$)("fadeInCalendar",[(0,w.SB)("void",(0,w.oB)({opacity:0})),(0,w.SB)("enter",(0,w.oB)({opacity:1})),(0,w.eR)("void => *",(0,w.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},lt=0,ht=new s.OlP("mat-datepicker-scroll-strategy"),dt={provide:ht,deps:[r.aV],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},ft=(0,l.pj)(function t(e){_classCallCheck(this,t),this._elementRef=e}),pt=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,a,s){var c;return _classCallCheck(this,i),(c=e.call(this,t))._changeDetectorRef=n,c._globalModel=r,c._dateAdapter=o,c._rangeSelectionStrategy=a,c._subscriptions=new d.w,c._animationDone=new h.xQ,c._actionsPortal=null,c._closeButtonText=s.closeCalendarLabel,c}return _createClass(i,[{key:"ngOnInit",value:function(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}},{key:"ngAfterViewInit",value:function(){var t=this;this._subscriptions.add(this.datepicker.stateChanges.subscribe(function(){t._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}},{key:"ngOnDestroy",value:function(){this._subscriptions.unsubscribe(),this._animationDone.complete()}},{key:"_handleUserSelection",value:function(t){var e=this._model.selection,i=t.value,n=e instanceof J;if(n&&this._rangeSelectionStrategy){var r=this._rangeSelectionStrategy.selectionFinished(i,e,t.event);this._model.updateSelection(r,this)}else!i||!n&&this._dateAdapter.sameDate(i,e)||this._model.add(i);this._model&&!this._model.isComplete()||this._actionsPortal||this.datepicker.close()}},{key:"_startExitAnimation",value:function(){this._animationState="void",this._changeDetectorRef.markForCheck()}},{key:"_getSelected",value:function(){return this._model.selection}},{key:"_applyPendingSelection",value:function(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}]),i}(ft);return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(Q),s.Y36(l._A),s.Y36($,8),s.Y36(U))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){var i;(1&t&&s.Gf(ct,5),2&t)&&(s.iGM(i=s.CRH())&&(e._calendar=i.first))},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&s.WFA("@transformPanel.done",function(){return e._animationDone.next()}),2&t&&(s.d8E("@transformPanel",e._animationState),s.ekj("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[s.qOj],decls:5,vars:20,consts:[["cdkTrapFocus","",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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"mat-calendar",1),s.NdJ("yearSelected",function(t){return e.datepicker._selectYear(t)})("monthSelected",function(t){return e.datepicker._selectMonth(t)})("viewChanged",function(t){return e.datepicker._viewChanged(t)})("_userSelection",function(t){return e._handleUserSelection(t)}),s.qZA(),s.YNc(2,z,0,0,"ng-template",2),s.TgZ(3,"button",3),s.NdJ("focus",function(){return e._closeButtonFocused=!0})("blur",function(){return e._closeButtonFocused=!1})("click",function(){return e.datepicker.close()}),s._uU(4),s.qZA(),s.qZA()),2&t&&(s.ekj("mat-datepicker-content-container-with-actions",e._actionsPortal),s.xp6(1),s.Q6J("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._getMinDate())("maxDate",e.datepicker._getMaxDate())("dateFilter",e.datepicker._getDateFilter())("headerComponent",e.datepicker.calendarHeaderComponent)("selected",e._getSelected())("dateClass",e.datepicker.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("@fadeInCalendar","enter"),s.xp6(1),s.Q6J("cdkPortalOutlet",e._actionsPortal),s.xp6(1),s.ekj("cdk-visually-hidden",!e._closeButtonFocused),s.Q6J("color",e.color||"primary"),s.xp6(1),s.Oqu(e._closeButtonText))},directives:[n.mK,ct,a.mk,o.Pl,c.lW],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.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}}\n"],encapsulation:2,data:{animation:[ut.transformPanel,ut.fadeInCalendar]},changeDetection:0}),t}(),gt=function(){var t=function(){function t(e,i,n,r,o,a,c,u,l){_classCallCheck(this,t),this._overlay=i,this._ngZone=n,this._viewContainerRef=r,this._dateAdapter=a,this._dir=c,this._model=l,this._inputStateChanges=d.w.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new s.vpe,this.monthSelected=new s.vpe,this.viewChanged=new s.vpe(!0),this.openedStream=new s.vpe,this.closedStream=new s.vpe,this._opened=!1,this.id="mat-datepicker-"+lt++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass="".concat(this.id,"-backdrop"),this.stateChanges=new h.xQ,this._scrollStrategy=o}return _createClass(t,[{key:"startAt",get:function(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)},set:function(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"color",get:function(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)},set:function(t){this._color=t}},{key:"touchUi",get:function(){return this._touchUi},set:function(t){this._touchUi=(0,_.Ig)(t)}},{key:"disabled",get:function(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled},set:function(t){var e=(0,_.Ig)(t);e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}},{key:"restoreFocus",get:function(){return this._restoreFocus},set:function(t){this._restoreFocus=(0,_.Ig)(t)}},{key:"panelClass",get:function(){return this._panelClass},set:function(t){this._panelClass=(0,_.du)(t)}},{key:"opened",get:function(){return this._opened},set:function(t){(0,_.Ig)(t)?this.open():this.close()}},{key:"_getMinDate",value:function(){return this.datepickerInput&&this.datepickerInput.min}},{key:"_getMaxDate",value:function(){return this.datepickerInput&&this.datepickerInput.max}},{key:"_getDateFilter",value:function(){return this.datepickerInput&&this.datepickerInput.dateFilter}},{key:"ngOnChanges",value:function(t){var e=t.xPosition||t.yPosition;if(e&&!e.firstChange&&this._overlayRef){var i=this._overlayRef.getConfig().positionStrategy;i instanceof r._G&&(this._setConnectedPositions(i),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}},{key:"ngOnDestroy",value:function(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}},{key:"select",value:function(t){this._model.add(t)}},{key:"_selectYear",value:function(t){this.yearSelected.emit(t)}},{key:"_selectMonth",value:function(t){this.monthSelected.emit(t)}},{key:"_viewChanged",value:function(t){this.viewChanged.emit(t)}},{key:"registerInput",value:function(t){var e=this;return this._inputStateChanges.unsubscribe(),this.datepickerInput=t,this._inputStateChanges=t.stateChanges.subscribe(function(){return e.stateChanges.next(void 0)}),this._model}},{key:"registerActions",value:function(t){this._actionsPortal=t}},{key:"removeActions",value:function(t){t===this._actionsPortal&&(this._actionsPortal=null)}},{key:"open",value:function(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,b.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}},{key:"close",value:function(){var t=this;if(this._opened){if(this._componentRef){var e=this._componentRef.instance;e._startExitAnimation(),e._animationDone.pipe((0,m.q)(1)).subscribe(function(){return t._destroyOverlay()})}var i=function(){t._opened&&(t._opened=!1,t.closedStream.emit(),t._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(i)):i()}}},{key:"_applyPendingSelection",value:function(){var t,e;null===(e=null===(t=this._componentRef)||void 0===t?void 0:t.instance)||void 0===e||e._applyPendingSelection()}},{key:"_forwardContentValues",value:function(t){t.datepicker=this,t.color=this.color,t._actionsPortal=this._actionsPortal}},{key:"_openOverlay",value:function(){var t=this;this._destroyOverlay();var e=this.touchUi,i=this.datepickerInput.getOverlayLabelId(),n=new o.C5(pt,this._viewContainerRef),a=this._overlayRef=this._overlay.create(new r.X_({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(e?"dialog":"popup")})),s=a.overlayElement;s.setAttribute("role","dialog"),i&&s.setAttribute("aria-labelledby",i),e&&s.setAttribute("aria-modal","true"),this._getCloseStream(a).subscribe(function(e){e&&e.preventDefault(),t.close()}),this._componentRef=a.attach(n),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe((0,m.q)(1)).subscribe(function(){return a.updatePosition()})}},{key:"_destroyOverlay",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}},{key:"_getDialogStrategy",value:function(){return this._overlay.position().global().centerHorizontally().centerVertically()}},{key:"_getDropdownStrategy",value:function(){var t=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(t)}},{key:"_setConnectedPositions",value:function(t){var e="end"===this.xPosition?"end":"start",i="start"===e?"end":"start",n="above"===this.yPosition?"bottom":"top",r="top"===n?"bottom":"top";return t.withPositions([{originX:e,originY:r,overlayX:e,overlayY:n},{originX:e,originY:n,overlayX:e,overlayY:r},{originX:i,originY:r,overlayX:i,overlayY:n},{originX:i,originY:n,overlayX:i,overlayY:r}])}},{key:"_getCloseStream",value:function(t){var e=this;return(0,f.T)(t.backdropClick(),t.detachments(),t.keydownEvents().pipe((0,y.h)(function(t){return t.keyCode===g.hY&&!(0,g.Vb)(t)||e.datepickerInput&&(0,g.Vb)(t,"altKey")&&t.keyCode===g.LH})))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(r.aV),s.Y36(s.R0b),s.Y36(s.s_b),s.Y36(ht),s.Y36(l._A,8),s.Y36(T.Is,8),s.Y36(a.K0,8),s.Y36(Q))},t.\u0275dir=s.lG2({type:t,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",restoreFocus:"restoreFocus",panelClass:"panelClass",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[s.TTD]}),t}(),mt=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(gt);return e.\u0275fac=function(i){return(t||(t=s.n5z(e)))(i||e)},e.\u0275cmp=s.Xpm({type:e,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[s._Bn([X,{provide:gt,useExisting:e}]),s.qOj],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),e}(),vt=function t(e,i){_classCallCheck(this,t),this.target=e,this.targetElement=i,this.value=this.target.value},yt=function(){var t=function(){function t(e,i,n){var r=this;_classCallCheck(this,t),this._elementRef=e,this._dateAdapter=i,this._dateFormats=n,this.dateChange=new s.vpe,this.dateInput=new s.vpe,this.stateChanges=new h.xQ,this._onTouched=function(){},this._validatorOnChange=function(){},this._cvaOnChange=function(){},this._valueChangesSubscription=d.w.EMPTY,this._localeSubscription=d.w.EMPTY,this._parseValidator=function(){return r._lastValueValid?null:{matDatepickerParse:{text:r._elementRef.nativeElement.value}}},this._filterValidator=function(t){var e=r._dateAdapter.getValidDateOrNull(r._dateAdapter.deserialize(t.value));return!e||r._matchesFilter(e)?null:{matDatepickerFilter:!0}},this._minValidator=function(t){var e=r._dateAdapter.getValidDateOrNull(r._dateAdapter.deserialize(t.value)),i=r._getMinDate();return!i||!e||r._dateAdapter.compareDate(i,e)<=0?null:{matDatepickerMin:{min:i,actual:e}}},this._maxValidator=function(t){var e=r._dateAdapter.getValidDateOrNull(r._dateAdapter.deserialize(t.value)),i=r._getMaxDate();return!i||!e||r._dateAdapter.compareDate(i,e)>=0?null:{matDatepickerMax:{max:i,actual:e}}},this._lastValueValid=!1,this._localeSubscription=i.localeChanges.subscribe(function(){r._assignValueProgrammatically(r.value)})}return _createClass(t,[{key:"value",get:function(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue},set:function(t){this._assignValueProgrammatically(t)}},{key:"disabled",get:function(){return!!this._disabled||this._parentDisabled()},set:function(t){var e=(0,_.Ig)(t),i=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this.stateChanges.next(void 0)),e&&this._isInitialized&&i.blur&&i.blur()}},{key:"_getValidators",value:function(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}},{key:"_registerModel",value:function(t){var e=this;this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(function(t){if(e._shouldHandleChangeEvent(t)){var i=e._getValueFromModel(t.selection);e._lastValueValid=e._isValidValue(i),e._cvaOnChange(i),e._onTouched(),e._formatValue(i),e.dateInput.emit(new vt(e,e._elementRef.nativeElement)),e.dateChange.emit(new vt(e,e._elementRef.nativeElement))}})}},{key:"ngAfterViewInit",value:function(){this._isInitialized=!0}},{key:"ngOnChanges",value:function(t){(function(t,e){for(var i=0,n=Object.keys(t);i enter",(0,m.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,m.oB)({transform:"none",opacity:1}))),(0,m.eR)("* => void, * => exit",(0,m.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,m.oB)({opacity:0})))])},A=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,a,s,c){var u;return _classCallCheck(this,i),(u=e.call(this))._elementRef=t,u._focusTrapFactory=n,u._changeDetectorRef=r,u._config=s,u._focusMonitor=c,u._animationStateChanged=new o.vpe,u._elementFocusedBeforeDialogWasOpened=null,u._closeInteractionType=null,u.attachDomPortal=function(t){return u._portalOutlet.hasAttached(),u._portalOutlet.attachDomPortal(t)},u._ariaLabelledBy=s.ariaLabelledBy||null,u._document=a,u}return _createClass(i,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}},{key:"attachTemplatePortal",value:function(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){var e=(0,g.ht)(),i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,g.ht)())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var t=this._elementRef.nativeElement,e=(0,g.ht)();return t===e||t.contains(e)}}]),i}(r.en);return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.SBq),o.Y36(y.qV),o.Y36(o.sBO),o.Y36(c.K0,8),o.Y36(b),o.Y36(y.tE))},t.\u0275dir=o.lG2({type:t,viewQuery:function(t,e){var i;(1&t&&o.Gf(r.Pl,7),2&t)&&(o.iGM(i=o.CRH())&&(e._portalOutlet=i.first))},features:[o.qOj]}),t}(),k=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.apply(this,arguments))._state="enter",t}return _createClass(i,[{key:"_onAnimationDone",value:function(t){var e=t.toState,i=t.totalTime;"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:i})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:i}))}},{key:"_onAnimationStart",value:function(t){var e=t.toState,i=t.totalTime;"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:i}):"exit"!==e&&"void"!==e||this._animationStateChanged.next({state:"closing",totalTime:i})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),i}(A);return e.\u0275fac=function(i){return(t||(t=o.n5z(e)))(i||e)},e.\u0275cmp=o.Xpm({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&o.WFA("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(o.Ikx("id",e._id),o.uIk("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),o.d8E("@dialogContainer",e._state))},features:[o.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&o.YNc(0,_,0,0,"ng-template",0)},directives:[r.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[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.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}\n"],encapsulation:2,data:{animation:[w.dialogContainer]}}),e}(),C=0,T=function(){function t(e,i){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-"+C++;_classCallCheck(this,t),this._overlayRef=e,this._containerInstance=i,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new u.xQ,this._afterClosed=new u.xQ,this._beforeClosed=new u.xQ,this._state=0,i._id=r,i._animationStateChanged.pipe((0,d.h)(function(t){return"opened"===t.state}),(0,f.q)(1)).subscribe(function(){n._afterOpened.next(),n._afterOpened.complete()}),i._animationStateChanged.pipe((0,d.h)(function(t){return"closed"===t.state}),(0,f.q)(1)).subscribe(function(){clearTimeout(n._closeFallbackTimeout),n._finishDialogClose()}),e.detachments().subscribe(function(){n._beforeClosed.next(n._result),n._beforeClosed.complete(),n._afterClosed.next(n._result),n._afterClosed.complete(),n.componentInstance=null,n._overlayRef.dispose()}),e.keydownEvents().pipe((0,d.h)(function(t){return t.keyCode===v.hY&&!n.disableClose&&!(0,v.Vb)(t)})).subscribe(function(t){t.preventDefault(),E(n,"keyboard")}),e.backdropClick().subscribe(function(){n.disableClose?n._containerInstance._recaptureFocus():E(n,"mouse")})}return _createClass(t,[{key:"close",value:function(t){var e=this;this._result=t,this._containerInstance._animationStateChanged.pipe((0,d.h)(function(t){return"closing"===t.state}),(0,f.q)(1)).subscribe(function(i){e._beforeClosed.next(t),e._beforeClosed.complete(),e._overlayRef.detachBackdrop(),e._closeFallbackTimeout=setTimeout(function(){return e._finishDialogClose()},i.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(t){var e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(t){return this._overlayRef.addPanelClass(t),this}},{key:"removePanelClass",value:function(t){return this._overlayRef.removePanelClass(t),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),t}();function E(t,e,i){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(i)}var S=new o.OlP("MatDialogData"),I=new o.OlP("mat-dialog-default-options"),R=new o.OlP("mat-dialog-scroll-strategy"),x={provide:R,deps:[n.aV],useFactory:function(t){return function(){return t.scrollStrategies.block()}}},O=function(){var t=function(){function t(e,i,n,r,o,a,s,c,h){var d=this;_classCallCheck(this,t),this._overlay=e,this._injector=i,this._defaultOptions=n,this._parentDialog=r,this._overlayContainer=o,this._dialogRefConstructor=s,this._dialogContainerType=c,this._dialogDataToken=h,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new u.xQ,this._afterOpenedAtThisLevel=new u.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,l.P)(function(){return d.openDialogs.length?d._getAfterAllClosed():d._getAfterAllClosed().pipe((0,p.O)(void 0))}),this._scrollStrategy=a}return _createClass(t,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(t,e){var i=this;(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new b)).id&&this.getDialogById(e.id);var n=this._createOverlay(e),r=this._attachDialogContainer(n,e),o=this._attachDialogContent(t,r,n,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(function(){return i._removeOpenDialog(o)}),this.afterOpened.next(o),r._initializeWithAttachedContent(),o}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(t){return this.openDialogs.find(function(e){return e.id===t})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(t){var e=this._getOverlayConfig(t);return this._overlay.create(e)}},{key:"_getOverlayConfig",value:function(t){var e=new n.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}},{key:"_attachDialogContainer",value:function(t,e){var i=o.zs3.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:b,useValue:e}]}),n=new r.C5(this._dialogContainerType,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}},{key:"_attachDialogContent",value:function(t,e,i,n){var a=new this._dialogRefConstructor(i,e,n.id);if(t instanceof o.Rgc)e.attachTemplatePortal(new r.UE(t,null,{$implicit:n.data,dialogRef:a}));else{var s=this._createInjector(n,a,e),c=e.attachComponentPortal(new r.C5(t,n.viewContainerRef,s));a.componentInstance=c.instance}return a.updateSize(n.width,n.height).updatePosition(n.position),a}},{key:"_createInjector",value:function(t,e,i){var n=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||n&&n.get(s.Is,null,o.XFs.Optional)||r.push({provide:s.Is,useValue:{value:t.direction,change:(0,h.of)()}}),o.zs3.create({parent:n||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(t){var e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var t=this._overlayContainer.getContainerElement();if(t.parentElement)for(var e=t.parentElement.children,i=e.length-1;i>-1;i--){var n=e[i];n===t||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(t){for(var e=t.length;e--;)t[e].close()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Y36(n.aV),o.Y36(o.zs3),o.Y36(void 0),o.Y36(void 0),o.Y36(n.Xj),o.Y36(void 0),o.Y36(o.DyG),o.Y36(o.DyG),o.Y36(o.OlP))},t.\u0275dir=o.lG2({type:t}),t}(),P=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,a,s,c){return _classCallCheck(this,i),e.call(this,t,n,o,s,c,a,T,k,S)}return i}(O);return t.\u0275fac=function(e){return new(e||t)(o.LFG(n.aV),o.LFG(o.zs3),o.LFG(c.Ye,8),o.LFG(I,8),o.LFG(R),o.LFG(t,12),o.LFG(n.Xj))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t}(),D=0,M=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this._dialogRef=e,this._elementRef=i,this._dialog=n,this.id="mat-dialog-title-"+D++}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this._dialogRef||(this._dialogRef=function(t,e){for(var i=t.nativeElement.parentElement;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?e.find(function(t){return t.id===i.id}):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var e=t._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=t.id)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Y36(T,8),o.Y36(o.SBq),o.Y36(P))},t.\u0275dir=o.lG2({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&o.Ikx("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t}(),L=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t}(),N=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t}(),z=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[P,x],imports:[[n.U8,r.eL,a.BQ],a.BQ]}),t}()},27679:function(t,e,i){"use strict";i.d(e,{d:function(){return a},t:function(){return s}});var n=i(19861),r=i(71522),o=i(31572),a=function(){var t=function(){function t(){_classCallCheck(this,t),this._vertical=!1,this._inset=!1}return _createClass(t,[{key:"vertical",get:function(){return this._vertical},set:function(t){this._vertical=(0,n.Ig)(t)}},{key:"inset",get:function(){return this._inset},set:function(t){this._inset=(0,n.Ig)(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(o.uIk("aria-orientation",e.vertical?"vertical":"horizontal"),o.ekj("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},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}\n"],encapsulation:2,changeDetection:0}),t}(),s=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[r.BQ],r.BQ]}),t}()},45001:function(t,e,i){"use strict";i.d(e,{pp:function(){return q},To:function(){return G},ib:function(){return B},HS:function(){return N},u4:function(){return H},yz:function(){return F},yK:function(){return U}});var n=i(31572),r=i(19861),o=i(55959),a=i(87570),s=i(4230),c=0,u=new n.OlP("CdkAccordion"),l=function(){var t=function(){function t(){_classCallCheck(this,t),this._stateChanges=new o.xQ,this._openCloseAllActions=new o.xQ,this.id="cdk-accordion-"+c++,this._multi=!1}return _createClass(t,[{key:"multi",get:function(){return this._multi},set:function(t){this._multi=(0,r.Ig)(t)}},{key:"openAll",value:function(){this._multi&&this._openCloseAllActions.next(!0)}},{key:"closeAll",value:function(){this._openCloseAllActions.next(!1)}},{key:"ngOnChanges",value:function(t){this._stateChanges.next(t)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[n._Bn([{provide:u,useExisting:t}]),n.TTD]}),t}(),h=0,d=function(){var t=function(){function t(e,i,r){var o=this;_classCallCheck(this,t),this.accordion=e,this._changeDetectorRef=i,this._expansionDispatcher=r,this._openCloseAllSubscription=a.w.EMPTY,this.closed=new n.vpe,this.opened=new n.vpe,this.destroyed=new n.vpe,this.expandedChange=new n.vpe,this.id="cdk-accordion-child-"+h++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=r.listen(function(t,e){o.accordion&&!o.accordion.multi&&o.accordion.id===e&&o.id!==t&&(o.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return _createClass(t,[{key:"expanded",get:function(){return this._expanded},set:function(t){t=(0,r.Ig)(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=(0,r.Ig)(t)}},{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var t=this;return this.accordion._openCloseAllActions.subscribe(function(e){t.disabled||(t.expanded=e)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(u,12),n.Y36(n.sBO),n.Y36(s.A8))},t.\u0275dir=n.lG2({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[n._Bn([{provide:u,useValue:void 0}])]}),t}(),f=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t}(),p=i(26899),g=i(61511),m=i(71522),v=i(24621),y=i(98720),_=i(56238),b=i(43835),w=i(90611),A=i(75842),k=i(43490),C=i(70653),T=i(31906),E=i(10709),S=["body"];function I(t,e){}var R=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],x=["mat-expansion-panel-header","*","mat-action-row"];function O(t,e){if(1&t&&n._UZ(0,"span",2),2&t){var i=n.oxw();n.Q6J("@indicatorRotate",i._getExpandedState())}}var P=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],D=["mat-panel-title","mat-panel-description","*"],M=new n.OlP("MAT_ACCORDION"),L={indicatorRotate:(0,E.X$)("indicatorRotate",[(0,E.SB)("collapsed, void",(0,E.oB)({transform:"rotate(0deg)"})),(0,E.SB)("expanded",(0,E.oB)({transform:"rotate(180deg)"})),(0,E.eR)("expanded <=> collapsed, void => collapsed",(0,E.jt)("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),bodyExpansion:(0,E.X$)("bodyExpansion",[(0,E.SB)("collapsed, void",(0,E.oB)({height:"0px",visibility:"hidden"})),(0,E.SB)("expanded",(0,E.oB)({height:"*",visibility:"visible"})),(0,E.eR)("expanded <=> collapsed, void => collapsed",(0,E.jt)("225ms cubic-bezier(0.4,0.0,0.2,1)"))])},N=function(){var t=function t(e){_classCallCheck(this,t),this._template=e};return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.Rgc))},t.\u0275dir=n.lG2({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t}(),z=0,Z=new n.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),B=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,r,a,s,c,u,l){var h;return _classCallCheck(this,i),(h=e.call(this,t,r,a))._viewContainerRef=s,h._animationMode=u,h._hideToggle=!1,h.afterExpand=new n.vpe,h.afterCollapse=new n.vpe,h._inputChanges=new o.xQ,h._headerId="mat-expansion-panel-header-"+z++,h._bodyAnimationDone=new o.xQ,h.accordion=t,h._document=c,h._bodyAnimationDone.pipe((0,y.x)(function(t,e){return t.fromState===e.fromState&&t.toState===e.toState})).subscribe(function(t){"void"!==t.fromState&&("expanded"===t.toState?h.afterExpand.emit():"collapsed"===t.toState&&h.afterCollapse.emit())}),l&&(h.hideToggle=l.hideToggle),h}return _createClass(i,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(t){this._hideToggle=(0,r.Ig)(t)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(t){this._togglePosition=t}},{key:"_hasSpacing",value:function(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var t=this;this._lazyContent&&this.opened.pipe((0,_.O)(null),(0,b.h)(function(){return t.expanded&&!t._portal}),(0,w.q)(1)).subscribe(function(){t._portal=new p.UE(t._lazyContent._template,t._viewContainerRef)})}},{key:"ngOnChanges",value:function(t){this._inputChanges.next(t)}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(i.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}}]),i}(d);return t.\u0275fac=function(e){return new(e||t)(n.Y36(M,12),n.Y36(n.sBO),n.Y36(s.A8),n.Y36(n.s_b),n.Y36(g.K0),n.Y36(k.Qb,8),n.Y36(Z,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,i){var r;(1&t&&n.Suo(i,N,5),2&t)&&(n.iGM(r=n.CRH())&&(e._lazyContent=r.first))},viewQuery:function(t,e){var i;(1&t&&n.Gf(S,5),2&t)&&(n.iGM(i=n.CRH())&&(e._body=i.first))},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&n.ekj("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[n._Bn([{provide:M,useValue:void 0}]),n.qOj,n.TTD],ngContentSelectors:x,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(n.F$t(R),n.Hsn(0),n.TgZ(1,"div",0,1),n.NdJ("@bodyExpansion.done",function(t){return e._bodyAnimationDone.next(t)}),n.TgZ(3,"div",2),n.Hsn(4,1),n.YNc(5,I,0,0,"ng-template",3),n.qZA(),n.Hsn(6,2),n.qZA()),2&t&&(n.xp6(1),n.Q6J("@bodyExpansion",e._getExpandedState())("id",e.id),n.uIk("aria-labelledby",e._headerId),n.xp6(4),n.Q6J("cdkPortalOutlet",e._portal))},directives:[p.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-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 button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[L.bodyExpansion]},changeDetection:0}),t}(),F=function(){var t=function(){function t(e,i,n,r,o,s){var c=this;_classCallCheck(this,t),this.panel=e,this._element=i,this._focusMonitor=n,this._changeDetectorRef=r,this._animationMode=s,this._parentChangeSubscription=a.w.EMPTY;var u=e.accordion?e.accordion._stateChanges.pipe((0,b.h)(function(t){return!(!t.hideToggle&&!t.togglePosition)})):C.E;this._parentChangeSubscription=(0,T.T)(e.opened,e.closed,u,e._inputChanges.pipe((0,b.h)(function(t){return!!(t.hideToggle||t.disabled||t.togglePosition)}))).subscribe(function(){return c._changeDetectorRef.markForCheck()}),e.closed.pipe((0,b.h)(function(){return e._containsFocus()})).subscribe(function(){return n.focusVia(i,"program")}),o&&(this.expandedHeight=o.expandedHeight,this.collapsedHeight=o.collapsedHeight)}return _createClass(t,[{key:"disabled",get:function(){return this.panel.disabled}},{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_getHeaderHeight",value:function(){var t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}},{key:"_keydown",value:function(t){switch(t.keyCode){case A.L_:case A.K5:(0,A.Vb)(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}},{key:"focus",value:function(t,e){t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}},{key:"ngAfterViewInit",value:function(){var t=this;this._focusMonitor.monitor(this._element).subscribe(function(e){e&&t.panel.accordion&&t.panel.accordion._handleHeaderFocus(t)})}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.Y36(B,1),n.Y36(n.SBq),n.Y36(v.tE),n.Y36(n.sBO),n.Y36(Z,8),n.Y36(k.Qb,8))},t.\u0275cmp=n.Xpm({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&n.NdJ("click",function(){return e._toggle()})("keydown",function(t){return e._keydown(t)}),2&t&&(n.uIk("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),n.Udp("height",e._getHeaderHeight()),n.ekj("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:D,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(n.F$t(P),n.TgZ(0,"span",0),n.Hsn(1),n.Hsn(2,1),n.Hsn(3,2),n.qZA(),n.YNc(4,O,1,1,"span",1)),2&t&&(n.xp6(4),n.Q6J("ngIf",e._showToggle()))},directives:[g.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}[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 .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[L.indicatorRotate]},changeDetection:0}),t}(),H=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t}(),U=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.lG2({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t}(),q=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.apply(this,arguments))._ownHeaders=new n.n_E,t._hideToggle=!1,t.displayMode="default",t.togglePosition="after",t}return _createClass(i,[{key:"hideToggle",get:function(){return this._hideToggle},set:function(t){this._hideToggle=(0,r.Ig)(t)}},{key:"ngAfterContentInit",value:function(){var t=this;this._headers.changes.pipe((0,_.O)(this._headers)).subscribe(function(e){t._ownHeaders.reset(e.filter(function(e){return e.panel.accordion===t})),t._ownHeaders.notifyOnChanges()}),this._keyManager=new v.Em(this._ownHeaders).withWrap().withHomeAndEnd()}},{key:"_handleHeaderKeydown",value:function(t){this._keyManager.onKeydown(t)}},{key:"_handleHeaderFocus",value:function(t){this._keyManager.updateActiveItem(t)}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(i.prototype),"ngOnDestroy",this).call(this),this._ownHeaders.destroy()}}]),i}(l);return e.\u0275fac=function(i){return(t||(t=n.n5z(e)))(i||e)},e.\u0275dir=n.lG2({type:e,selectors:[["mat-accordion"]],contentQueries:function(t,e,i){var r;(1&t&&n.Suo(i,F,5),2&t)&&(n.iGM(r=n.CRH())&&(e._headers=r))},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&n.ekj("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[n._Bn([{provide:M,useExisting:e}]),n.qOj]}),e}(),G=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[g.ez,m.BQ,f,p.eL]]}),t}()},66283:function(t,e,i){"use strict";i.d(e,{G_:function(){return W},TO:function(){return z},KE:function(){return X},Eo:function(){return B},lN:function(){return $},bx:function(){return U},hX:function(){return q},UY:function(){return G},R9:function(){return K}});var n=i(36337),r=i(61511),o=i(31572),a=i(71522),s=i(19861),c=i(55959),u=i(31906),l=i(87254),h=i(56238),d=i(25416),f=i(90611),p=i(10709),g=i(43490),m=i(22526),v=i(11353),y=["underline"],_=["connectionContainer"],b=["inputContainer"],w=["label"];function A(t,e){1&t&&(o.ynx(0),o.TgZ(1,"div",14),o._UZ(2,"div",15),o._UZ(3,"div",16),o._UZ(4,"div",17),o.qZA(),o.TgZ(5,"div",18),o._UZ(6,"div",15),o._UZ(7,"div",16),o._UZ(8,"div",17),o.qZA(),o.BQk())}function k(t,e){1&t&&(o.TgZ(0,"div",19),o.Hsn(1,1),o.qZA())}function C(t,e){if(1&t&&(o.ynx(0),o.Hsn(1,2),o.TgZ(2,"span"),o._uU(3),o.qZA(),o.BQk()),2&t){var i=o.oxw(2);o.xp6(3),o.Oqu(i._control.placeholder)}}function T(t,e){1&t&&o.Hsn(0,3,["*ngSwitchCase","true"])}function E(t,e){1&t&&(o.TgZ(0,"span",23),o._uU(1," *"),o.qZA())}function S(t,e){if(1&t){var i=o.EpF();o.TgZ(0,"label",20,21),o.NdJ("cdkObserveContent",function(){return o.CHM(i),o.oxw().updateOutlineGap()}),o.YNc(2,C,4,1,"ng-container",12),o.YNc(3,T,1,0,"ng-content",12),o.YNc(4,E,2,0,"span",22),o.qZA()}if(2&t){var n=o.oxw();o.ekj("mat-empty",n._control.empty&&!n._shouldAlwaysFloat())("mat-form-field-empty",n._control.empty&&!n._shouldAlwaysFloat())("mat-accent","accent"==n.color)("mat-warn","warn"==n.color),o.Q6J("cdkObserveContentDisabled","outline"!=n.appearance)("id",n._labelId)("ngSwitch",n._hasLabel()),o.uIk("for",n._control.id)("aria-owns",n._control.id),o.xp6(2),o.Q6J("ngSwitchCase",!1),o.xp6(1),o.Q6J("ngSwitchCase",!0),o.xp6(1),o.Q6J("ngIf",!n.hideRequiredMarker&&n._control.required&&!n._control.disabled)}}function I(t,e){1&t&&(o.TgZ(0,"div",24),o.Hsn(1,4),o.qZA())}function R(t,e){if(1&t&&(o.TgZ(0,"div",25,26),o._UZ(2,"span",27),o.qZA()),2&t){var i=o.oxw();o.xp6(2),o.ekj("mat-accent","accent"==i.color)("mat-warn","warn"==i.color)}}function x(t,e){if(1&t&&(o.TgZ(0,"div"),o.Hsn(1,5),o.qZA()),2&t){var i=o.oxw();o.Q6J("@transitionMessages",i._subscriptAnimationState)}}function O(t,e){if(1&t&&(o.TgZ(0,"div",31),o._uU(1),o.qZA()),2&t){var i=o.oxw(2);o.Q6J("id",i._hintLabelId),o.xp6(1),o.Oqu(i.hintLabel)}}function P(t,e){if(1&t&&(o.TgZ(0,"div",28),o.YNc(1,O,2,2,"div",29),o.Hsn(2,6),o._UZ(3,"div",30),o.Hsn(4,7),o.qZA()),2&t){var i=o.oxw();o.Q6J("@transitionMessages",i._subscriptAnimationState),o.xp6(1),o.Q6J("ngIf",i.hintLabel)}}var D=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],M=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],L=0,N=new o.OlP("MatError"),z=function(){var t=function t(e,i){_classCallCheck(this,t),this.id="mat-error-"+L++,e||i.nativeElement.setAttribute("aria-live","polite")};return t.\u0275fac=function(e){return new(e||t)(o.$8M("aria-live"),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&o.uIk("id",e.id)},inputs:{id:"id"},features:[o._Bn([{provide:N,useExisting:t}])]}),t}(),Z={transitionMessages:(0,p.X$)("transitionMessages",[(0,p.SB)("enter",(0,p.oB)({opacity:1,transform:"translateY(0%)"})),(0,p.eR)("void => enter",[(0,p.oB)({opacity:0,transform:"translateY(-5px)"}),(0,p.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},B=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t}),t}(),F=0,H=new o.OlP("MatHint"),U=function(){var t=function t(){_classCallCheck(this,t),this.align="start",this.id="mat-hint-"+F++};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(o.uIk("id",e.id)("align",null),o.ekj("mat-form-field-hint-end","end"===e.align))},inputs:{align:"align",id:"id"},features:[o._Bn([{provide:H,useExisting:t}])]}),t}(),q=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-label"]]}),t}(),G=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-placeholder"]]}),t}(),j=new o.OlP("MatPrefix"),Y=new o.OlP("MatSuffix"),K=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["","matSuffix",""]],features:[o._Bn([{provide:Y,useExisting:t}])]}),t}(),V=0,J=(0,a.pj)(function t(e){_classCallCheck(this,t),this._elementRef=e},"primary"),Q=new o.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),W=new o.OlP("MatFormField"),X=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,a,s,u,l){var h;return _classCallCheck(this,i),(h=e.call(this,t))._elementRef=t,h._changeDetectorRef=n,h._dir=o,h._defaults=a,h._platform=s,h._ngZone=u,h._outlineGapCalculationNeededImmediately=!1,h._outlineGapCalculationNeededOnStable=!1,h._destroyed=new c.xQ,h._showAlwaysAnimate=!1,h._subscriptAnimationState="",h._hintLabel="",h._hintLabelId="mat-hint-"+V++,h._labelId="mat-form-field-label-"+V++,h.floatLabel=h._getDefaultFloatLabelState(),h._animationsEnabled="NoopAnimations"!==l,h.appearance=a&&a.appearance?a.appearance:"legacy",h._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker,h}return _createClass(i,[{key:"appearance",get:function(){return this._appearance},set:function(t){var e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(t){this._hideRequiredMarker=(0,s.Ig)(t)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(t){this._hintLabel=t,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(t){this._explicitFormFieldControl=t}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var t=this;this._validateControlChild();var e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(e.controlType)),e.stateChanges.pipe((0,h.O)(null)).subscribe(function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe((0,d.R)(this._destroyed)).subscribe(function(){return t._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.pipe((0,d.R)(t._destroyed)).subscribe(function(){t._outlineGapCalculationNeededOnStable&&t.updateOutlineGap()})}),(0,u.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){t._outlineGapCalculationNeededOnStable=!0,t._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,h.O)(null)).subscribe(function(){t._processHints(),t._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,h.O)(null)).subscribe(function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,d.R)(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?t._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return t.updateOutlineGap()})}):t.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(t){var e=this._control?this._control.ngControl:null;return e&&e[t]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var t=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,l.R)(this._label.nativeElement,"transitionend").pipe((0,f.q)(1)).subscribe(function(){t._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push.apply(t,_toConsumableArray(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var e=this._hintChildren?this._hintChildren.find(function(t){return"start"===t.align}):null,i=this._hintChildren?this._hintChildren.find(function(t){return"end"===t.align}):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),i&&t.push(i.id)}else this._errorChildren&&t.push.apply(t,_toConsumableArray(this._errorChildren.map(function(t){return t.id})));this._control.setDescribedByIds(t)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var t=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&t&&t.children.length&&t.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var e=0,i=0,n=this._connectionContainerRef.nativeElement,r=n.querySelectorAll(".mat-form-field-outline-start"),o=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=n.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(a),c=t.children,u=this._getStartEnd(c[0].getBoundingClientRect()),l=0,h=0;h0?.75*l+10:0}for(var d=0;d1&&void 0!==arguments[1]?arguments[1]:t;return this._fontCssClassesByAlias.set(t,e),this}},{key:"classNameForFontAlias",value:function(t){return this._fontCssClassesByAlias.get(t)||t}},{key:"setDefaultFontSetClass",value:function(t){return this._defaultFontSetClass=t,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(t){var e=this,i=this._sanitizer.sanitize(n.q3G.RESOURCE_URL,t);if(!i)throw w(t);var r=this._cachedIconsByUrl.get(i);return r?(0,s.of)(T(r)):this._loadSvgIconFromConfig(new k(t,null)).pipe((0,h.b)(function(t){return e._cachedIconsByUrl.set(i,t)}),(0,d.U)(function(t){return T(t)}))}},{key:"getNamedSvgIcon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=E(e,t),n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);if(n=this._getIconConfigFromResolvers(e,t))return this._svgIconConfigs.set(i,n),this._getSvgFromConfig(n);var r=this._iconSetConfigs.get(e);return r?this._getSvgFromIconSetConfigs(t,r):(0,c._)(b(i))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(t){return t.svgText?(0,s.of)(T(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe((0,d.U)(function(t){return T(t)}))}},{key:"_getSvgFromIconSetConfigs",value:function(t,e){var i=this,r=this._extractIconWithNameFromAnySet(t,e);if(r)return(0,s.of)(r);var o=e.filter(function(t){return!t.svgText}).map(function(t){return i._loadSvgIconSetFromConfig(t).pipe((0,f.K)(function(e){var r=i._sanitizer.sanitize(n.q3G.RESOURCE_URL,t.url);return i._errorHandler.handleError(new Error("Loading icon set URL: ".concat(r," failed: ").concat(e.message))),(0,s.of)(null)}))});return(0,u.D)(o).pipe((0,d.U)(function(){var n=i._extractIconWithNameFromAnySet(t,e);if(!n)throw b(t);return n}))}},{key:"_extractIconWithNameFromAnySet",value:function(t,e){for(var i=e.length-1;i>=0;i--){var n=e[i];if(n.svgText&&n.svgText.indexOf(t)>-1){var r=this._svgElementFromConfig(n),o=this._extractSvgIconFromSet(r,t,n.options);if(o)return o}}return null}},{key:"_loadSvgIconFromConfig",value:function(t){var e=this;return this._fetchIcon(t).pipe((0,h.b)(function(e){return t.svgText=e}),(0,d.U)(function(){return e._svgElementFromConfig(t)}))}},{key:"_loadSvgIconSetFromConfig",value:function(t){return t.svgText?(0,s.of)(null):this._fetchIcon(t).pipe((0,h.b)(function(e){return t.svgText=e}))}},{key:"_extractSvgIconFromSet",value:function(t,e,i){var n=t.querySelector('[id="'.concat(e,'"]'));if(!n)return null;var r=n.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,i);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),i);var o=this._svgElementFromString("");return o.appendChild(r),this._setSvgAttributes(o,i)}},{key:"_svgElementFromString",value:function(t){var e=this._document.createElement("DIV");e.innerHTML=t;var i=e.querySelector("svg");if(!i)throw Error(" tag not found");return i}},{key:"_toSvgElement",value:function(t){for(var e=this._svgElementFromString(""),i=t.attributes,n=0;n-1}},{key:"_isBadInput",value:function(){var t=this._elementRef.nativeElement.validity;return t&&t.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}}]),i}(g);return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(a.t4),r.Y36(l.a5,10),r.Y36(l.F,8),r.Y36(l.sg,8),r.Y36(s.rD),r.Y36(d,10),r.Y36(n.Lq),r.Y36(r.R0b),r.Y36(c.G_,8))},t.\u0275dir=r.lG2({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&r.NdJ("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(r.Ikx("disabled",e.disabled)("required",e.required),r.uIk("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),r.ekj("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[r._Bn([{provide:c.Eo,useExisting:t}]),r.qOj,r.TTD]}),t}(),v=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[s.rD],imports:[[n.Ky,c.lN,s.BQ],n.Ky,c.lN]}),t}()},85250:function(t,e,i){"use strict";i.d(e,{i$:function(){return v},Tg:function(){return b},ie:function(){return w}});var n=i(61511),r=i(31572),o=i(71522),a=i(19861),s=i(55959),c=i(25416),u=(i(56238),i(24621),i(4230),i(75842),i(16073),i(27679)),l=["*"],h=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],d=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],f=(0,o.Id)((0,o.Kr)(function t(){_classCallCheck(this,t)})),p=(0,o.Kr)(function t(){_classCallCheck(this,t)}),g=new r.OlP("MatList"),m=new r.OlP("MatNavList"),v=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this))._elementRef=t,n._stateChanges=new s.xQ,"action-list"===n._getListType()&&t.nativeElement.classList.add("mat-action-list"),n}return _createClass(i,[{key:"_getListType",value:function(){var t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),i}(f);return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[r._Bn([{provide:g,useExisting:t}]),r.qOj,r.TTD],ngContentSelectors:l,decls:1,vars:0,template:function(t,e){1&t&&(r.F$t(),r.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.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:transparent;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{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:transparent;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{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 button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}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-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.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}}\n'],encapsulation:2,changeDetection:0}),t}(),y=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t}(),_=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t}(),b=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;_classCallCheck(this,i),(a=e.call(this))._element=t,a._isInteractiveList=!1,a._destroyed=new s.xQ,a._disabled=!1,a._isInteractiveList=!!(r||o&&"action-list"===o._getListType()),a._list=r||o;var u=a._getHostElement();return"button"!==u.nodeName.toLowerCase()||u.hasAttribute("type")||u.setAttribute("type","button"),a._list&&a._list._stateChanges.pipe((0,c.R)(a._destroyed)).subscribe(function(){n.markForCheck()}),a}return _createClass(i,[{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(t){this._disabled=(0,a.Ig)(t)}},{key:"ngAfterContentInit",value:function(){(0,o.E0)(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_isRippleDisabled",value:function(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}},{key:"_getHostElement",value:function(){return this._element.nativeElement}}]),i}(p);return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(m,8),r.Y36(g,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,i){var n;(1&t&&(r.Suo(i,y,5),r.Suo(i,_,5),r.Suo(i,o.X2,5)),2&t)&&(r.iGM(n=r.CRH())&&(e._avatar=n.first),r.iGM(n=r.CRH())&&(e._icon=n.first),r.iGM(n=r.CRH())&&(e._lines=n))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&r.ekj("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[r.qOj],ngContentSelectors:d,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(t,e){1&t&&(r.F$t(h),r.TgZ(0,"div",0),r._UZ(1,"div",1),r.Hsn(2),r.TgZ(3,"div",2),r.Hsn(4,1),r.qZA(),r.Hsn(5,2),r.qZA()),2&t&&(r.xp6(1),r.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[o.wG],encapsulation:2,changeDetection:0}),t}(),w=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[o.uc,o.si,o.BQ,o.us,n.ez],o.uc,o.BQ,o.us,u.t]}),t}()},8055:function(t,e,i){"use strict";i.d(e,{VK:function(){return z},OP:function(){return D},Tx:function(){return q},p6:function(){return H}});var n=i(24621),r=i(19861),o=i(75842),a=i(31572),s=i(55959),c=i(87570),u=i(31906),l=i(40878),h=i(92709),d=i(56238),f=i(44689),p=i(90611),g=i(43835),m=i(25416),v=i(60509),y=i(10709),_=i(26899),b=i(61511),w=i(71522),A=i(2522),k=i(11353),C=i(4253),T=i(22526),E=["mat-menu-item",""],S=["*"];function I(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"div",0),a.NdJ("keydown",function(t){return a.CHM(i),a.oxw()._handleKeydown(t)})("click",function(){return a.CHM(i),a.oxw().closed.emit("click")})("@transformMenu.start",function(t){return a.CHM(i),a.oxw()._onAnimationStart(t)})("@transformMenu.done",function(t){return a.CHM(i),a.oxw()._onAnimationDone(t)}),a.TgZ(1,"div",1),a.Hsn(2),a.qZA(),a.qZA()}if(2&t){var n=a.oxw();a.Q6J("id",n.panelId)("ngClass",n._classList)("@transformMenu",n._panelAnimationState),a.uIk("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby||null)("aria-describedby",n.ariaDescribedby||null)}}var R={transformMenu:(0,y.X$)("transformMenu",[(0,y.SB)("void",(0,y.oB)({opacity:0,transform:"scale(0.8)"})),(0,y.eR)("void => enter",(0,y.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,y.oB)({opacity:1,transform:"scale(1)"}))),(0,y.eR)("* => void",(0,y.jt)("100ms 25ms linear",(0,y.oB)({opacity:0})))]),fadeInItems:(0,y.X$)("fadeInItems",[(0,y.SB)("showing",(0,y.oB)({opacity:1})),(0,y.eR)("void => *",[(0,y.oB)({opacity:0}),(0,y.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},x=new a.OlP("MatMenuContent"),O=new a.OlP("MAT_MENU_PANEL"),P=(0,w.Kr)((0,w.Id)(function t(){_classCallCheck(this,t)})),D=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;return _classCallCheck(this,i),(a=e.call(this))._elementRef=t,a._focusMonitor=r,a._parentMenu=o,a.role="menuitem",a._hovered=new s.xQ,a._focused=new s.xQ,a._highlighted=!1,a._triggersSubmenu=!1,o&&o.addItem&&o.addItem(_assertThisInitialized(a)),a}return _createClass(i,[{key:"focus",value:function(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var t,e,i=this._elementRef.nativeElement.cloneNode(!0),n=i.querySelectorAll("mat-icon, .material-icons"),r=0;r0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe((0,p.q)(1)).subscribe(function(){return t._focusFirstItem(e)}):this._focusFirstItem(e)}},{key:"_focusFirstItem",value:function(t){var e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length)for(var i=this._directDescendantItems.first._getHostElement().parentElement;i;){if("menu"===i.getAttribute("role")){i.focus();break}i=i.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(t){var e="mat-elevation-z".concat(Math.min(4+t,24)),i=Object.keys(this._classList).find(function(t){return t.startsWith("mat-elevation-z")});i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}},{key:"setPositionClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,i=this._classList;i["mat-menu-before"]="before"===t,i["mat-menu-after"]="after"===t,i["mat-menu-above"]="above"===e,i["mat-menu-below"]="below"===e}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(t){this._animationDone.next(t),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var t=this;this._allItems.changes.pipe((0,d.O)(this._allItems)).subscribe(function(e){t._directDescendantItems.reset(e.filter(function(e){return e._parentMenu===t})),t._directDescendantItems.notifyOnChanges()})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(M))},t.\u0275dir=a.lG2({type:t,contentQueries:function(t,e,i){var n;(1&t&&(a.Suo(i,x,5),a.Suo(i,D,5),a.Suo(i,D,4)),2&t)&&(a.iGM(n=a.CRH())&&(e.lazyContent=n.first),a.iGM(n=a.CRH())&&(e._allItems=n),a.iGM(n=a.CRH())&&(e.items=n))},viewQuery:function(t,e){var i;(1&t&&a.Gf(a.Rgc,5),2&t)&&(a.iGM(i=a.CRH())&&(e.templateRef=i.first))},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t}(),z=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){return _classCallCheck(this,i),e.call(this,t,n,r)}return i}(N);return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(M))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&a.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[a._Bn([{provide:O,useExisting:t}]),a.qOj],ngContentSelectors:S,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(a.F$t(),a.YNc(0,I,3,6,"ng-template"))},directives:[b.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}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}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}\n'],encapsulation:2,data:{animation:[R.transformMenu,R.fadeInItems]},changeDetection:0}),t}(),Z=new a.OlP("mat-menu-scroll-strategy"),B={provide:Z,deps:[A.aV],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},F=(0,k.i$)({passive:!0}),H=function(){var t=function(){function t(e,i,r,o,s,u,l,h){var d=this;_classCallCheck(this,t),this._overlay=e,this._element=i,this._viewContainerRef=r,this._menuItemInstance=u,this._dir=l,this._focusMonitor=h,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=c.w.EMPTY,this._hoverSubscription=c.w.EMPTY,this._menuCloseSubscription=c.w.EMPTY,this._handleTouchStart=function(t){(0,n.yG)(t)||(d._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new a.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new a.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=s instanceof N?s:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,F),u&&(u._triggersSubmenu=this.triggersSubmenu())}return _createClass(t,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(t){this.menu=t}},{key:"menu",get:function(){return this._menu},set:function(t){var e=this;t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(function(t){e._destroyMenu(t),"click"!==t&&"tab"!==t||!e._parentMaterialMenu||e._parentMaterialMenu.closed.emit(t)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){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()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var t=this;if(!this._menuOpen){this._checkMenu();var e=this._createOverlay(),i=e.getConfig();this._setPosition(i.positionStrategy),i.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return t.closeMenu()}),this._initMenu(),this.menu instanceof N&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}},{key:"updatePosition",value:function(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}},{key:"_destroyMenu",value:function(t){var e=this;if(this._overlayRef&&this.menuOpen){var i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==t&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,i instanceof N?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe((0,g.h)(function(t){return"void"===t.toState}),(0,p.q)(1),(0,m.R)(i.lazyContent._attached)).subscribe({next:function(){return i.lazyContent.detach()},complete:function(){return e._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i.lazyContent&&i.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var t=0,e=this.menu.parentMenu;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}},{key:"_setIsMenuOpen",value:function(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new A.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(t){var e=this;this.menu.setPositionClasses&&t.positionChanges.subscribe(function(t){e.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(t){var e=_slicedToArray("before"===this.menu.xPosition?["end","start"]:["start","end"],2),i=e[0],n=e[1],r=_slicedToArray("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),o=r[0],a=r[1],s=o,c=a,u=i,l=n,h=0;this.triggersSubmenu()?(l=i="before"===this.menu.xPosition?"start":"end",n=u="end"===i?"start":"end",h="bottom"===o?8:-8):this.menu.overlapTrigger||(s="top"===o?"bottom":"top",c="top"===a?"bottom":"top"),t.withPositions([{originX:i,originY:s,overlayX:u,overlayY:o,offsetY:h},{originX:n,originY:s,overlayX:l,overlayY:o,offsetY:h},{originX:i,originY:c,overlayX:u,overlayY:a,offsetY:-h},{originX:n,originY:c,overlayX:l,overlayY:a,offsetY:-h}])}},{key:"_menuClosingActions",value:function(){var t=this,e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments(),n=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,l.of)(),r=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,g.h)(function(e){return e!==t._menuItemInstance}),(0,g.h)(function(){return t._menuOpen})):(0,l.of)();return(0,u.T)(e,n,r,i)}},{key:"_handleMousedown",value:function(t){(0,n.X6)(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}},{key:"_handleKeydown",value:function(t){var e=t.keyCode;e!==o.K5&&e!==o.L_||(this._openedBy="keyboard"),this.triggersSubmenu()&&(e===o.SV&&"ltr"===this.dir||e===o.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var t=this;this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,g.h)(function(e){return e===t._menuItemInstance&&!e.disabled}),(0,v.g)(0,h.e)).subscribe(function(){t._openedBy="mouse",t.menu instanceof N&&t.menu._isAnimating?t.menu._animationDone.pipe((0,p.q)(1),(0,v.g)(0,h.e),(0,m.R)(t._parentMaterialMenu._hovered())).subscribe(function(){return t.openMenu()}):t.openMenu()}))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new _.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(A.aV),a.Y36(a.SBq),a.Y36(a.s_b),a.Y36(Z),a.Y36(O,8),a.Y36(D,10),a.Y36(T.Is,8),a.Y36(n.tE))},t.\u0275dir=a.lG2({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&a.NdJ("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&a.uIk("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t}(),U=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({providers:[B],imports:[w.BQ]}),t}(),q=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({providers:[B],imports:[[b.ez,w.BQ,w.si,A.U8,U],C.ZD,w.BQ,U]}),t}()},73005:function(t,e,i){"use strict";i.d(e,{NW:function(){return k},ye:function(){return y},TU:function(){return C}});var n=i(61511),r=i(31572),o=i(71522),a=i(15980),s=i(4786),c=i(36922),u=i(19861),l=i(55959),h=i(66283);function d(t,e){if(1&t&&(r.TgZ(0,"mat-option",19),r._uU(1),r.qZA()),2&t){var i=e.$implicit;r.Q6J("value",i),r.xp6(1),r.hij(" ",i," ")}}function f(t,e){if(1&t){var i=r.EpF();r.TgZ(0,"mat-form-field",16),r.TgZ(1,"mat-select",17),r.NdJ("selectionChange",function(t){return r.CHM(i),r.oxw(2)._changePageSize(t.value)}),r.YNc(2,d,2,2,"mat-option",18),r.qZA(),r.qZA()}if(2&t){var n=r.oxw(2);r.Q6J("appearance",n._formFieldAppearance)("color",n.color),r.xp6(1),r.Q6J("value",n.pageSize)("disabled",n.disabled)("aria-label",n._intl.itemsPerPageLabel),r.xp6(1),r.Q6J("ngForOf",n._displayedPageSizeOptions)}}function p(t,e){if(1&t&&(r.TgZ(0,"div",20),r._uU(1),r.qZA()),2&t){var i=r.oxw(2);r.xp6(1),r.Oqu(i.pageSize)}}function g(t,e){if(1&t&&(r.TgZ(0,"div",12),r.TgZ(1,"div",13),r._uU(2),r.qZA(),r.YNc(3,f,3,6,"mat-form-field",14),r.YNc(4,p,2,1,"div",15),r.qZA()),2&t){var i=r.oxw();r.xp6(2),r.hij(" ",i._intl.itemsPerPageLabel," "),r.xp6(1),r.Q6J("ngIf",i._displayedPageSizeOptions.length>1),r.xp6(1),r.Q6J("ngIf",i._displayedPageSizeOptions.length<=1)}}function m(t,e){if(1&t){var i=r.EpF();r.TgZ(0,"button",21),r.NdJ("click",function(){return r.CHM(i),r.oxw().firstPage()}),r.O4$(),r.TgZ(1,"svg",7),r._UZ(2,"path",22),r.qZA(),r.qZA()}if(2&t){var n=r.oxw();r.Q6J("matTooltip",n._intl.firstPageLabel)("matTooltipDisabled",n._previousButtonsDisabled())("matTooltipPosition","above")("disabled",n._previousButtonsDisabled()),r.uIk("aria-label",n._intl.firstPageLabel)}}function v(t,e){if(1&t){var i=r.EpF();r.O4$(),r.kcU(),r.TgZ(0,"button",23),r.NdJ("click",function(){return r.CHM(i),r.oxw().lastPage()}),r.O4$(),r.TgZ(1,"svg",7),r._UZ(2,"path",24),r.qZA(),r.qZA()}if(2&t){var n=r.oxw();r.Q6J("matTooltip",n._intl.lastPageLabel)("matTooltipDisabled",n._nextButtonsDisabled())("matTooltipPosition","above")("disabled",n._nextButtonsDisabled()),r.uIk("aria-label",n._intl.lastPageLabel)}}var y=function(){var t=function t(){_classCallCheck(this,t),this.changes=new l.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(t,e,i){if(0==i||0==e)return"0 of ".concat(i);var n=t*e;return"".concat(n+1," \u2013 ").concat(n<(i=Math.max(i,0))?Math.min(n+e,i):n+e," of ").concat(i)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t}(),_={provide:y,deps:[[new r.FiY,new r.tp0,y]],useFactory:function(t){return t||new y}},b=new r.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),w=(0,o.Id)((0,o.dB)(function t(){_classCallCheck(this,t)})),A=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,o){var a;if(_classCallCheck(this,i),(a=e.call(this))._intl=t,a._changeDetectorRef=n,a._pageIndex=0,a._length=0,a._pageSizeOptions=[],a._hidePageSize=!1,a._showFirstLastButtons=!1,a.page=new r.vpe,a._intlChanges=t.changes.subscribe(function(){return a._changeDetectorRef.markForCheck()}),o){var s=o.pageSize,c=o.pageSizeOptions,u=o.hidePageSize,l=o.showFirstLastButtons;null!=s&&(a._pageSize=s),null!=c&&(a._pageSizeOptions=c),null!=u&&(a._hidePageSize=u),null!=l&&(a._showFirstLastButtons=l)}return _possibleConstructorReturn(a)}return _createClass(i,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(t){this._pageIndex=Math.max((0,u.su)(t),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(t){this._length=(0,u.su)(t),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(t){this._pageSize=Math.max((0,u.su)(t),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(t){this._pageSizeOptions=(t||[]).map(function(t){return(0,u.su)(t)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(t){this._hidePageSize=(0,u.Ig)(t)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(t){this._showFirstLastButtons=(0,u.Ig)(t)}},{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var t=this.getNumberOfPages()-1;return this.pageIndex void",(0,k.IO)("@transformPanel",[(0,k.pV)()],{optional:!0}))]),transformPanel:(0,k.X$)("transformPanel",[(0,k.SB)("void",(0,k.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,k.SB)("showing",(0,k.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,k.SB)("showing-multiple",(0,k.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,k.eR)("void => *",(0,k.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,k.eR)("* => void",(0,k.jt)("100ms 25ms linear",(0,k.oB)({opacity:0})))])},N=0,z=new o.OlP("mat-select-scroll-strategy"),Z=new o.OlP("MAT_SELECT_CONFIG"),B={provide:z,deps:[n.aV],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},F=function t(e,i){_classCallCheck(this,t),this.source=e,this.value=i},H=(0,a.Kr)((0,a.sb)((0,a.Id)((0,a.FD)(function t(e,i,n,r,o){_classCallCheck(this,t),this._elementRef=e,this._defaultErrorStateMatcher=i,this._parentForm=n,this._parentFormGroup=r,this.ngControl=o})))),U=new o.OlP("MatSelectTrigger"),q=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.lG2({type:t,selectors:[["mat-select-trigger"]],features:[o._Bn([{provide:U,useExisting:t}])]}),t}(),G=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,a,s,c,u,l,h,d,w,A,k,C){var T,E,S,I;return _classCallCheck(this,i),(T=e.call(this,s,a,u,l,d))._viewportRuler=t,T._changeDetectorRef=n,T._ngZone=r,T._dir=c,T._parentFormField=h,T.ngControl=d,T._liveAnnouncer=k,T._defaultOptions=C,T._panelOpen=!1,T._compareWith=function(t,e){return t===e},T._uid="mat-select-"+N++,T._triggerAriaLabelledBy=null,T._destroy=new f.xQ,T._onChange=function(){},T._onTouched=function(){},T._valueId="mat-select-value-"+N++,T._panelDoneAnimatingStream=new f.xQ,T._overlayPanelClass=(null===(E=T._defaultOptions)||void 0===E?void 0:E.overlayPanelClass)||"",T._focused=!1,T.controlType="mat-select",T._required=!1,T._multiple=!1,T._disableOptionCentering=null!==(I=null===(S=T._defaultOptions)||void 0===S?void 0:S.disableOptionCentering)&&void 0!==I&&I,T.ariaLabel="",T.optionSelectionChanges=(0,p.P)(function(){var t=T.options;return t?t.changes.pipe((0,m.O)(t),(0,v.w)(function(){return g.T.apply(void 0,_toConsumableArray(t.map(function(t){return t.onSelectionChange})))})):T._ngZone.onStable.pipe((0,y.q)(1),(0,v.w)(function(){return T.optionSelectionChanges}))}),T.openedChange=new o.vpe,T._openedStream=T.openedChange.pipe((0,_.h)(function(t){return t}),(0,b.U)(function(){})),T._closedStream=T.openedChange.pipe((0,_.h)(function(t){return!t}),(0,b.U)(function(){})),T.selectionChange=new o.vpe,T.valueChange=new o.vpe,T.ngControl&&(T.ngControl.valueAccessor=_assertThisInitialized(T)),null!=(null==C?void 0:C.typeaheadDebounceInterval)&&(T._typeaheadDebounceInterval=C.typeaheadDebounceInterval),T._scrollStrategyFactory=A,T._scrollStrategy=T._scrollStrategyFactory(),T.tabIndex=parseInt(w)||0,T.id=T.id,T}return _createClass(i,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(t){this._required=(0,l.Ig)(t),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(t){this._multiple=(0,l.Ig)(t)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(t){this._disableOptionCentering=(0,l.Ig)(t)}},{key:"compareWith",get:function(){return this._compareWith},set:function(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(t){this._typeaheadDebounceInterval=(0,l.su)(t)}},{key:"id",get:function(){return this._id},set:function(t){this._id=t||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var t=this;this._selectionModel=new h.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,w.x)(),(0,A.R)(this._destroy)).subscribe(function(){return t._panelDoneAnimating(t.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var t=this;this._initKeyManager(),this._selectionModel.changed.pipe((0,A.R)(this._destroy)).subscribe(function(t){t.added.forEach(function(t){return t.select()}),t.removed.forEach(function(t){return t.deselect()})}),this.options.changes.pipe((0,m.O)(null),(0,A.R)(this._destroy)).subscribe(function(){t._resetOptions(),t._initializeSelection()})}},{key:"ngDoCheck",value:function(){var t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){var e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(t){this.value=t}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var t=this._selectionModel.selected.map(function(t){return t.viewValue});return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}},{key:"_handleClosedKeydown",value:function(t){var e=t.keyCode,i=e===d.JH||e===d.LH||e===d.oh||e===d.SV,n=e===d.K5||e===d.L_,r=this._keyManager;if(!r.isTyping()&&n&&!(0,d.Vb)(t)||(this.multiple||t.altKey)&&i)t.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;r.onKeydown(t);var a=this.selected;a&&o!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(t){var e=this._keyManager,i=t.keyCode,n=i===d.JH||i===d.LH,r=e.isTyping();if(n&&t.altKey)t.preventDefault(),this.close();else if(r||i!==d.K5&&i!==d.L_||!e.activeItem||(0,d.Vb)(t))if(!r&&this._multiple&&i===d.A&&t.ctrlKey){t.preventDefault();var o=this.options.some(function(t){return!t.disabled&&!t.selected});this.options.forEach(function(t){t.disabled||(o?t.select():t.deselect())})}else{var a=e.activeItemIndex;e.onKeydown(t),this._multiple&&n&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==a&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var t=this;this._overlayDir.positionChange.pipe((0,y.q)(1)).subscribe(function(){t._changeDetectorRef.detectChanges(),t._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var t=this;Promise.resolve().then(function(){t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value),t.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(t){var e=this;if(this._selectionModel.selected.forEach(function(t){return t.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(function(t){return e._selectValue(t)}),this._sortValues();else{var i=this._selectValue(t);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(t){var e=this,i=this.options.find(function(i){if(e._selectionModel.isSelected(i))return!1;try{return null!=i.value&&e._compareWith(i.value,t)}catch(n){return!1}});return i&&this._selectionModel.select(i),i}},{key:"_initKeyManager",value:function(){var t=this;this._keyManager=new u.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,A.R)(this._destroy)).subscribe(function(){t.panelOpen&&(!t.multiple&&t._keyManager.activeItem&&t._keyManager.activeItem._selectViaInteraction(),t.focus(),t.close())}),this._keyManager.change.pipe((0,A.R)(this._destroy)).subscribe(function(){t._panelOpen&&t.panel?t._scrollOptionIntoView(t._keyManager.activeItemIndex||0):t._panelOpen||t.multiple||!t._keyManager.activeItem||t._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var t=this,e=(0,g.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,A.R)(e)).subscribe(function(e){t._onSelect(e.source,e.isUserInput),e.isUserInput&&!t.multiple&&t._panelOpen&&(t.close(),t.focus())}),g.T.apply(void 0,_toConsumableArray(this.options.map(function(t){return t._stateChanges}))).pipe((0,A.R)(e)).subscribe(function(){t._changeDetectorRef.markForCheck(),t.stateChanges.next()})}},{key:"_onSelect",value:function(t,e){var i=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(i!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),i!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var t=this;if(this.multiple){var e=this.options.toArray();this._selectionModel.sort(function(i,n){return t.sortComparator?t.sortComparator(i,n,e):e.indexOf(i)-e.indexOf(n)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(t){var e;e=this.multiple?this.selected.map(function(t){return t.value}):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}},{key:"focus",value:function(t){this._elementRef.nativeElement.focus(t)}},{key:"_getPanelAriaLabelledby",value:function(){var t;if(this.ariaLabel)return null;var e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var t;if(this.ariaLabel)return null;var e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId(),i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}},{key:"_panelDoneAnimating",value:function(t){this.openedChange.emit(t)}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),i}(H);return t.\u0275fac=function(e){return new(e||t)(o.Y36(c.rL),o.Y36(o.sBO),o.Y36(o.R0b),o.Y36(a.rD),o.Y36(o.SBq),o.Y36(C.Is,8),o.Y36(T.F,8),o.Y36(T.sg,8),o.Y36(s.G_,8),o.Y36(T.a5,10),o.$8M("tabindex"),o.Y36(z),o.Y36(u.Kd),o.Y36(Z,8))},t.\u0275dir=o.lG2({type:t,viewQuery:function(t,e){var i;(1&t&&(o.Gf(E,5),o.Gf(S,5),o.Gf(n.pI,5)),2&t)&&(o.iGM(i=o.CRH())&&(e.trigger=i.first),o.iGM(i=o.CRH())&&(e.panel=i.first),o.iGM(i=o.CRH())&&(e._overlayDir=i.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[o.qOj,o.TTD]}),t}(),j=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.apply(this,arguments))._scrollTop=0,t._triggerFontSize=0,t._transformOrigin="top",t._offsetY=0,t._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],t}return _createClass(i,[{key:"_calculateOverlayScroll",value:function(t,e,i){var n=this._getItemHeight();return Math.min(Math.max(0,n*t-e+n/2),i)}},{key:"ngOnInit",value:function(){var t=this;_get(_getPrototypeOf(i.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe((0,A.R)(this._destroy)).subscribe(function(){t.panelOpen&&(t._triggerRect=t.trigger.nativeElement.getBoundingClientRect(),t._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var t=this;_get(_getPrototypeOf(i.prototype),"_canOpen",this).call(this)&&(_get(_getPrototypeOf(i.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,y.q)(1)).subscribe(function(){t._triggerFontSize&&t._overlayDir.overlayRef&&t._overlayDir.overlayRef.overlayElement&&(t._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(t._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(t){var e=(0,a.CB)(t,this.options,this.optionGroups),i=this._getItemHeight();this.panel.nativeElement.scrollTop=(0,a.jH)((t+e)*i,i,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(t){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),_get(_getPrototypeOf(i.prototype),"_panelDoneAnimating",this).call(this,t)}},{key:"_getChangeEvent",value:function(t){return new F(this,t)}},{key:"_calculateOverlayOffsetX",value:function(){var t,e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),n=this._isRtl(),r=this.multiple?56:32;if(this.multiple)t=40;else if(this.disableOptionCentering)t=16;else{var o=this._selectionModel.selected[0]||this.options.first;t=o&&o.group?32:16}n||(t*=-1);var a=0-(e.left+t-(n?r:0)),s=e.right+t-i.width+(n?0:r);a>0?t+=a+8:s>0&&(t-=s+8),this._overlayDir.offsetX=Math.round(t),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(t,e,i){var n,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(256/r);return this.disableOptionCentering?0:(n=0===this._scrollTop?t*r:this._scrollTop===i?(t-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):e-r/2,Math.round(-1*n-o))}},{key:"_checkOverlayWithinViewport",value:function(t){var e=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,r=i.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*e,256)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>n?this._adjustPanelDown(o,n,t):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(t,e){var i=Math.round(t-e);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(t,e,i){var n=Math.round(t-e);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var t,e=this._getItemHeight(),i=this._getItemCount(),n=Math.min(i*e,256),r=i*e-n;t=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),t+=(0,a.CB)(t,this.options,this.optionGroups);var o=n/2;this._scrollTop=this._calculateOverlayScroll(t,o,r),this._offsetY=this._calculateOverlayOffsetY(t,o,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-e+t/2,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),i}(G);return e.\u0275fac=function(i){return(t||(t=o.n5z(e)))(i||e)},e.\u0275cmp=o.Xpm({type:e,selectors:[["mat-select"]],contentQueries:function(t,e,i){var n;(1&t&&(o.Suo(i,U,5),o.Suo(i,a.ey,5),o.Suo(i,a.K7,5)),2&t)&&(o.iGM(n=o.CRH())&&(e.customTrigger=n.first),o.iGM(n=o.CRH())&&(e.options=n),o.iGM(n=o.CRH())&&(e.optionGroups=n))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&o.NdJ("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(o.uIk("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),o.ekj("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[o._Bn([{provide:s.Eo,useExisting:e},{provide:a.HF,useExisting:e}]),o.qOj],ngContentSelectors:M,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(t,e){if(1&t&&(o.F$t(D),o.TgZ(0,"div",0,1),o.NdJ("click",function(){return e.toggle()}),o.TgZ(3,"div",2),o.YNc(4,I,2,1,"span",3),o.YNc(5,O,3,2,"span",4),o.qZA(),o.TgZ(6,"div",5),o._UZ(7,"div",6),o.qZA(),o.qZA(),o.YNc(8,P,4,14,"ng-template",7),o.NdJ("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){var i=o.MAs(1);o.uIk("aria-owns",e.panelOpen?e.id+"-panel":null),o.xp6(3),o.Q6J("ngSwitch",e.empty),o.uIk("id",e._valueId),o.xp6(1),o.Q6J("ngSwitchCase",!0),o.xp6(1),o.Q6J("ngSwitchCase",!1),o.xp6(3),o.Q6J("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",i)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[n.xu,r.RF,r.n9,n.pI,r.ED,r.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;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{display:table-cell;vertical-align:middle}.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 transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.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:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[L.transformPanelWrap,L.transformPanel]},changeDetection:0}),e}(),Y=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:[B],imports:[[r.ez,n.U8,a.Ng,a.BQ],c.ZD,s.lN,a.Ng,a.BQ]}),t}()},25122:function(t,e,i){"use strict";i.d(e,{JX:function(){return U},TM:function(){return q},Rh:function(){return H},SJ:function(){return G}});var n=i(11353),r=i(4253),o=i(61511),a=i(31572),s=i(71522),c=i(19861),u=i(75842),l=i(55959),h=i(87254),d=i(31906),f=i(43835),p=i(79996),g=i(88414),m=i(25416),v=i(98720),y=i(90611),_=i(56238),b=i(47701),w=i(10709),A=i(43490),k=i(24621),C=i(22526),T=["*"];function E(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"div",2),a.NdJ("click",function(){return a.CHM(i),a.oxw()._onBackdropClicked()}),a.qZA()}if(2&t){var n=a.oxw();a.ekj("mat-drawer-shown",n._isShowingBackdrop())}}function S(t,e){1&t&&(a.TgZ(0,"mat-drawer-content"),a.Hsn(1,2),a.qZA())}var I=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],R=["mat-drawer","mat-drawer-content","*"];function x(t,e){if(1&t){var i=a.EpF();a.TgZ(0,"div",2),a.NdJ("click",function(){return a.CHM(i),a.oxw()._onBackdropClicked()}),a.qZA()}if(2&t){var n=a.oxw();a.ekj("mat-drawer-shown",n._isShowingBackdrop())}}function O(t,e){1&t&&(a.TgZ(0,"mat-sidenav-content",3),a.Hsn(1,2),a.qZA())}var P=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],D=["mat-sidenav","mat-sidenav-content","*"],M=".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-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",L={transformDrawer:(0,w.X$)("transform",[(0,w.SB)("open, open-instant",(0,w.oB)({transform:"none",visibility:"visible"})),(0,w.SB)("void",(0,w.oB)({"box-shadow":"none",visibility:"hidden"})),(0,w.eR)("void => open-instant",(0,w.jt)("0ms")),(0,w.eR)("void <=> open, open-instant => void",(0,w.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},N=new a.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),z=new a.OlP("MAT_DRAWER_CONTAINER"),Z=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,a){var s;return _classCallCheck(this,i),(s=e.call(this,r,o,a))._changeDetectorRef=t,s._container=n,s}return _createClass(i,[{key:"ngAfterContentInit",value:function(){var t=this;this._container._contentMarginChanges.subscribe(function(){t._changeDetectorRef.markForCheck()})}}]),i}(r.PQ);return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.sBO),a.Y36((0,a.Gpc)(function(){return F})),a.Y36(a.SBq),a.Y36(r.mF),a.Y36(a.R0b))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&a.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[a.qOj],ngContentSelectors:T,decls:1,vars:0,template:function(t,e){1&t&&(a.F$t(),a.Hsn(0))},encapsulation:2,changeDetection:0}),t}(),B=function(){var t=function(){function t(e,i,n,r,o,s,c){var d=this;_classCallCheck(this,t),this._elementRef=e,this._focusTrapFactory=i,this._focusMonitor=n,this._platform=r,this._ngZone=o,this._doc=s,this._container=c,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new l.xQ,this._animationEnd=new l.xQ,this._animationState="void",this.openedChange=new a.vpe(!0),this._openedStream=this.openedChange.pipe((0,f.h)(function(t){return t}),(0,p.U)(function(){})),this.openedStart=this._animationStarted.pipe((0,f.h)(function(t){return t.fromState!==t.toState&&0===t.toState.indexOf("open")}),(0,g.h)(void 0)),this._closedStream=this.openedChange.pipe((0,f.h)(function(t){return!t}),(0,p.U)(function(){})),this.closedStart=this._animationStarted.pipe((0,f.h)(function(t){return t.fromState!==t.toState&&"void"===t.toState}),(0,g.h)(void 0)),this._destroyed=new l.xQ,this.onPositionChanged=new a.vpe,this._modeChanged=new l.xQ,this.openedChange.subscribe(function(t){t?(d._doc&&(d._elementFocusedBeforeDrawerWasOpened=d._doc.activeElement),d._takeFocus()):d._isFocusWithinDrawer()&&d._restoreFocus()}),this._ngZone.runOutsideAngular(function(){(0,h.R)(d._elementRef.nativeElement,"keydown").pipe((0,f.h)(function(t){return t.keyCode===u.hY&&!d.disableClose&&!(0,u.Vb)(t)}),(0,m.R)(d._destroyed)).subscribe(function(t){return d._ngZone.run(function(){d.close(),t.stopPropagation(),t.preventDefault()})})}),this._animationEnd.pipe((0,v.x)(function(t,e){return t.fromState===e.fromState&&t.toState===e.toState})).subscribe(function(t){var e=t.fromState,i=t.toState;(0===i.indexOf("open")&&"void"===e||"void"===i&&0===e.indexOf("open"))&&d.openedChange.emit(d._opened)})}return _createClass(t,[{key:"position",get:function(){return this._position},set:function(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}},{key:"mode",get:function(){return this._mode},set:function(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}},{key:"disableClose",get:function(){return this._disableClose},set:function(t){this._disableClose=(0,c.Ig)(t)}},{key:"autoFocus",get:function(){var t=this._autoFocus;return null==t?"side"!==this.mode:t},set:function(t){this._autoFocus=(0,c.Ig)(t)}},{key:"opened",get:function(){return this._opened},set:function(t){this.toggle((0,c.Ig)(t))}},{key:"_takeFocus",value:function(){var t=this;this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(function(e){e||"function"!=typeof t._elementRef.nativeElement.focus||t._elementRef.nativeElement.focus()})}},{key:"_restoreFocus",value:function(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}},{key:"_isFocusWithinDrawer",value:function(){var t,e=null===(t=this._doc)||void 0===t?void 0:t.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}},{key:"ngAfterContentInit",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}},{key:"ngAfterContentChecked",value:function(){this._platform.isBrowser&&(this._enableAnimations=!0)}},{key:"ngOnDestroy",value:function(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(t){return this.toggle(!0,t)}},{key:"close",value:function(){return this.toggle(!1)}},{key:"_closeViaBackdropClick",value:function(){return this._setOpen(!1,!0)}},{key:"toggle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened,e=arguments.length>1?arguments[1]:void 0;return this._setOpen(t,!t&&this._isFocusWithinDrawer(),e)}},{key:"_setOpen",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"program";return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=n):(this._animationState="void",e&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(function(t){i.openedChange.pipe((0,y.q)(1)).subscribe(function(e){return t(e?"open":"close")})})}},{key:"_getWidth",value:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}},{key:"_updateFocusTrapState",value:function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}},{key:"_animationStartListener",value:function(t){this._animationStarted.next(t)}},{key:"_animationDoneListener",value:function(t){this._animationEnd.next(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.SBq),a.Y36(k.qV),a.Y36(k.tE),a.Y36(n.t4),a.Y36(a.R0b),a.Y36(o.K0,8),a.Y36(z,8))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&a.WFA("@transform.start",function(t){return e._animationStartListener(t)})("@transform.done",function(t){return e._animationDoneListener(t)}),2&t&&(a.uIk("align",null),a.d8E("@transform",e._animationState),a.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.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:T,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(a.F$t(),a.TgZ(0,"div",0),a.Hsn(1),a.qZA())},directives:[r.PQ],encapsulation:2,data:{animation:[L.transformDrawer]},changeDetection:0}),t}(),F=function(){var t=function(){function t(e,i,n,r,o){var s=this,c=arguments.length>5&&void 0!==arguments[5]&&arguments[5],u=arguments.length>6?arguments[6]:void 0;_classCallCheck(this,t),this._dir=e,this._element=i,this._ngZone=n,this._changeDetectorRef=r,this._animationMode=u,this._drawers=new a.n_E,this.backdropClick=new a.vpe,this._destroyed=new l.xQ,this._doCheckSubject=new l.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new l.xQ,e&&e.change.pipe((0,m.R)(this._destroyed)).subscribe(function(){s._validateDrawers(),s.updateContentMargins()}),o.change().pipe((0,m.R)(this._destroyed)).subscribe(function(){return s.updateContentMargins()}),this._autosize=c}return _createClass(t,[{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"autosize",get:function(){return this._autosize},set:function(t){this._autosize=(0,c.Ig)(t)}},{key:"hasBackdrop",get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(t){this._backdropOverride=null==t?null:(0,c.Ig)(t)}},{key:"scrollable",get:function(){return this._userContent||this._content}},{key:"ngAfterContentInit",value:function(){var t=this;this._allDrawers.changes.pipe((0,_.O)(this._allDrawers),(0,m.R)(this._destroyed)).subscribe(function(e){t._drawers.reset(e.filter(function(e){return!e._container||e._container===t})),t._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,_.O)(null)).subscribe(function(){t._validateDrawers(),t._drawers.forEach(function(e){t._watchDrawerToggle(e),t._watchDrawerPosition(e),t._watchDrawerMode(e)}),(!t._drawers.length||t._isDrawerOpen(t._start)||t._isDrawerOpen(t._end))&&t.updateContentMargins(),t._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){t._doCheckSubject.pipe((0,b.b)(10),(0,m.R)(t._destroyed)).subscribe(function(){return t.updateContentMargins()})})}},{key:"ngOnDestroy",value:function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(){this._drawers.forEach(function(t){return t.open()})}},{key:"close",value:function(){this._drawers.forEach(function(t){return t.close()})}},{key:"updateContentMargins",value:function(){var t=this,e=0,i=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){var n=this._left._getWidth();e+=n,i-=n}if(this._right&&this._right.opened)if("side"==this._right.mode)i+=this._right._getWidth();else if("push"==this._right.mode){var r=this._right._getWidth();i+=r,e-=r}i=i||null,(e=e||null)===this._contentMargins.left&&i===this._contentMargins.right||(this._contentMargins={left:e,right:i},this._ngZone.run(function(){return t._contentMarginChanges.next(t._contentMargins)}))}},{key:"ngDoCheck",value:function(){var t=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(function(){return t._doCheckSubject.next()})}},{key:"_watchDrawerToggle",value:function(t){var e=this;t._animationStarted.pipe((0,f.h)(function(t){return t.fromState!==t.toState}),(0,m.R)(this._drawers.changes)).subscribe(function(t){"open-instant"!==t.toState&&"NoopAnimations"!==e._animationMode&&e._element.nativeElement.classList.add("mat-drawer-transition"),e.updateContentMargins(),e._changeDetectorRef.markForCheck()}),"side"!==t.mode&&t.openedChange.pipe((0,m.R)(this._drawers.changes)).subscribe(function(){return e._setContainerClass(t.opened)})}},{key:"_watchDrawerPosition",value:function(t){var e=this;t&&t.onPositionChanged.pipe((0,m.R)(this._drawers.changes)).subscribe(function(){e._ngZone.onMicrotaskEmpty.pipe((0,y.q)(1)).subscribe(function(){e._validateDrawers()})})}},{key:"_watchDrawerMode",value:function(t){var e=this;t&&t._modeChanged.pipe((0,m.R)((0,d.T)(this._drawers.changes,this._destroyed))).subscribe(function(){e.updateContentMargins(),e._changeDetectorRef.markForCheck()})}},{key:"_setContainerClass",value:function(t){var e=this._element.nativeElement.classList,i="mat-drawer-container-has-open";t?e.add(i):e.remove(i)}},{key:"_validateDrawers",value:function(){var t=this;this._start=this._end=null,this._drawers.forEach(function(e){"end"==e.position?t._end=e:t._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)}},{key:"_isPushed",value:function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}},{key:"_onBackdropClicked",value:function(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}},{key:"_closeModalDrawersViaBackdrop",value:function(){var t=this;[this._start,this._end].filter(function(e){return e&&!e.disableClose&&t._canHaveBackdrop(e)}).forEach(function(t){return t._closeViaBackdropClick()})}},{key:"_isShowingBackdrop",value:function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}},{key:"_canHaveBackdrop",value:function(t){return"side"!==t.mode||!!this._backdropOverride}},{key:"_isDrawerOpen",value:function(t){return null!=t&&t.opened}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.Y36(C.Is,8),a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(a.sBO),a.Y36(r.rL),a.Y36(N),a.Y36(A.Qb,8))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,i){var n;(1&t&&(a.Suo(i,Z,5),a.Suo(i,B,5)),2&t)&&(a.iGM(n=a.CRH())&&(e._content=n.first),a.iGM(n=a.CRH())&&(e._allDrawers=n))},viewQuery:function(t,e){var i;(1&t&&a.Gf(Z,5),2&t)&&(a.iGM(i=a.CRH())&&(e._userContent=i.first))},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&a.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[a._Bn([{provide:z,useExisting:t}])],ngContentSelectors:R,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(t,e){1&t&&(a.F$t(I),a.YNc(0,E,1,2,"div",0),a.Hsn(1),a.Hsn(2,1),a.YNc(3,S,2,0,"mat-drawer-content",1)),2&t&&(a.Q6J("ngIf",e.hasBackdrop),a.xp6(3),a.Q6J("ngIf",!e._content))},directives:[o.O5,Z],styles:[M],encapsulation:2,changeDetection:0}),t}(),H=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,a){return _classCallCheck(this,i),e.call(this,t,n,r,o,a)}return i}(Z);return t.\u0275fac=function(e){return new(e||t)(a.Y36(a.sBO),a.Y36((0,a.Gpc)(function(){return q})),a.Y36(a.SBq),a.Y36(r.mF),a.Y36(a.R0b))},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&a.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[a.qOj],ngContentSelectors:T,decls:1,vars:0,template:function(t,e){1&t&&(a.F$t(),a.Hsn(0))},encapsulation:2,changeDetection:0}),t}(),U=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.apply(this,arguments))._fixedInViewport=!1,t._fixedTopGap=0,t._fixedBottomGap=0,t}return _createClass(i,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(t){this._fixedInViewport=(0,c.Ig)(t)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(t){this._fixedTopGap=(0,c.su)(t)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(t){this._fixedBottomGap=(0,c.su)(t)}}]),i}(B);return e.\u0275fac=function(i){return(t||(t=a.n5z(e)))(i||e)},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(a.uIk("align",null),a.Udp("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),a.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[a.qOj],ngContentSelectors:T,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(a.F$t(),a.TgZ(0,"div",0),a.Hsn(1),a.qZA())},directives:[r.PQ],encapsulation:2,data:{animation:[L.transformDrawer]},changeDetection:0}),e}(),q=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(F);return e.\u0275fac=function(i){return(t||(t=a.n5z(e)))(i||e)},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,i){var n;(1&t&&(a.Suo(i,H,5),a.Suo(i,U,5)),2&t)&&(a.iGM(n=a.CRH())&&(e._content=n.first),a.iGM(n=a.CRH())&&(e._allDrawers=n))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&a.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[a._Bn([{provide:z,useExisting:e}]),a.qOj],ngContentSelectors:D,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(a.F$t(P),a.YNc(0,x,1,2,"div",0),a.Hsn(1),a.Hsn(2,1),a.YNc(3,O,2,0,"mat-sidenav-content",1)),2&t&&(a.Q6J("ngIf",e.hasBackdrop),a.xp6(3),a.Q6J("ngIf",!e._content))},directives:[o.O5,H,r.PQ],styles:[M],encapsulation:2,changeDetection:0}),e}(),G=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({imports:[[o.ez,s.BQ,n.ud,r.ZD],r.ZD,s.BQ]}),t}()},27521:function(t,e,i){"use strict";i.d(e,{Rr:function(){return b},rP:function(){return A}});var n=i(36337),r=i(31572),o=i(71522),a=i(19861),s=i(16073),c=i(43490),u=i(24621),l=["thumbContainer"],h=["toggleBar"],d=["input"],f=function(t){return{enterDuration:t}},p=["*"],g=new r.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),m=0,v={provide:s.JU,useExisting:(0,r.Gpc)(function(){return b}),multi:!0},y=function t(e,i){_classCallCheck(this,t),this.source=e,this.checked=i},_=(0,o.sb)((0,o.pj)((0,o.Kr)((0,o.Id)(function t(e){_classCallCheck(this,t),this._elementRef=e})))),b=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,o,a,s,c){var u;return _classCallCheck(this,i),(u=e.call(this,t))._focusMonitor=n,u._changeDetectorRef=o,u.defaults=s,u._onChange=function(t){},u._onTouched=function(){},u._uniqueId="mat-slide-toggle-"+ ++m,u._required=!1,u._checked=!1,u.name=null,u.id=u._uniqueId,u.labelPosition="after",u.ariaLabel=null,u.ariaLabelledby=null,u.change=new r.vpe,u.toggleChange=new r.vpe,u.tabIndex=parseInt(a)||0,u.color=u.defaultColor=s.color||"accent",u._noopAnimations="NoopAnimations"===c,u}return _createClass(i,[{key:"required",get:function(){return this._required},set:function(t){this._required=(0,a.Ig)(t)}},{key:"checked",get:function(){return this._checked},set:function(t){this._checked=(0,a.Ig)(t),this._changeDetectorRef.markForCheck()}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"ngAfterContentInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(e){"keyboard"===e||"program"===e?t._inputElement.nativeElement.focus():e||Promise.resolve().then(function(){return t._onTouched()})})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_onChangeEvent",value:function(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}},{key:"_onInputClick",value:function(t){t.stopPropagation()}},{key:"writeValue",value:function(t){this.checked=!!t}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this._changeDetectorRef.markForCheck()}},{key:"focus",value:function(t,e){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}},{key:"toggle",value:function(){this.checked=!this.checked,this._onChange(this.checked)}},{key:"_emitChangeEvent",value:function(){this._onChange(this.checked),this.change.emit(new y(this,this.checked))}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}}]),i}(_);return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(u.tE),r.Y36(r.sBO),r.$8M("tabindex"),r.Y36(g),r.Y36(c.Qb,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){var i;(1&t&&(r.Gf(l,5),r.Gf(h,5),r.Gf(d,5)),2&t)&&(r.iGM(i=r.CRH())&&(e._thumbEl=i.first),r.iGM(i=r.CRH())&&(e._thumbBarEl=i.first),r.iGM(i=r.CRH())&&(e._inputElement=i.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(r.Ikx("id",e.id),r.uIk("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),r.ekj("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable",e._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[r._Bn([v]),r.qOj],ngContentSelectors:p,decls:16,vars:19,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["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"],["thumbContainer",""],[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(t,e){if(1&t&&(r.F$t(),r.TgZ(0,"label",0,1),r.TgZ(2,"div",2,3),r.TgZ(4,"input",4,5),r.NdJ("change",function(t){return e._onChangeEvent(t)})("click",function(t){return e._onInputClick(t)}),r.qZA(),r.TgZ(6,"div",6,7),r._UZ(8,"div",8),r.TgZ(9,"div",9),r._UZ(10,"div",10),r.qZA(),r.qZA(),r.qZA(),r.TgZ(11,"span",11,12),r.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),r.TgZ(13,"span",13),r._uU(14,"\xa0"),r.qZA(),r.Hsn(15),r.qZA(),r.qZA()),2&t){var i=r.MAs(1),n=r.MAs(12);r.uIk("for",e.inputId),r.xp6(2),r.ekj("mat-slide-toggle-bar-no-side-margin",!n.textContent||!n.textContent.trim()),r.xp6(2),r.Q6J("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),r.uIk("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),r.xp6(5),r.Q6J("matRippleTrigger",i)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",r.VKq(17,f,e._noopAnimations?0:150))}},directives:[o.wG,n.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:transparent}.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{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%}.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}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),t}(),w=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t}(),A=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[w,o.si,o.BQ,n.Q8],w,o.BQ]}),t}()},71403:function(t,e,i){"use strict";i.d(e,{ZX:function(){return u}});var n=i(2522),r=i(26899),o=i(61511),a=i(31572),s=i(71522),c=i(15980);i(55959),i(90611),i(10709),i(11353);var u=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({imports:[[n.U8,r.eL,o.ez,c.ot,s.BQ],s.BQ]}),t}()},58623:function(t,e,i){"use strict";i.d(e,{YE:function(){return v},nU:function(){return k},JX:function(){return C}});var n=i(31572),r=i(19861),o=i(71522),a=i(75842),s=i(55959),c=i(31906),u=i(10709),l=i(61511),h=i(24621),d=["mat-sort-header",""];function f(t,e){if(1&t){var i=n.EpF();n.TgZ(0,"div",3),n.NdJ("@arrowPosition.start",function(){return n.CHM(i),n.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return n.CHM(i),n.oxw()._disableViewStateAnimation=!1}),n._UZ(1,"div",4),n.TgZ(2,"div",5),n._UZ(3,"div",6),n._UZ(4,"div",7),n._UZ(5,"div",8),n.qZA(),n.qZA()}if(2&t){var r=n.oxw();n.Q6J("@arrowOpacity",r._getArrowViewState())("@arrowPosition",r._getArrowViewState())("@allowChildren",r._getArrowDirectionState()),n.xp6(2),n.Q6J("@indicator",r._getArrowDirectionState()),n.xp6(1),n.Q6J("@leftPointer",r._getArrowDirectionState()),n.xp6(1),n.Q6J("@rightPointer",r._getArrowDirectionState())}}var p=["*"],g=new n.OlP("MAT_SORT_DEFAULT_OPTIONS"),m=(0,o.dB)((0,o.Id)(function t(){_classCallCheck(this,t)})),v=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var r;return _classCallCheck(this,i),(r=e.call(this))._defaultOptions=t,r.sortables=new Map,r._stateChanges=new s.xQ,r.start="asc",r._direction="",r.sortChange=new n.vpe,r}return _createClass(i,[{key:"direction",get:function(){return this._direction},set:function(t){this._direction=t}},{key:"disableClear",get:function(){return this._disableClear},set:function(t){this._disableClear=(0,r.Ig)(t)}},{key:"register",value:function(t){this.sortables.set(t.id,t)}},{key:"deregister",value:function(t){this.sortables.delete(t.id)}},{key:"sort",value:function(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}},{key:"getNextSortDirection",value:function(t){var e,i,n;if(!t)return"";var r=null!==(i=null!==(e=null==t?void 0:t.disableClear)&&void 0!==e?e:this.disableClear)&&void 0!==i?i:!!(null===(n=this._defaultOptions)||void 0===n?void 0:n.disableClear),o=function(t,e){var i=["asc","desc"];return"desc"==t&&i.reverse(),e||i.push(""),i}(t.start||this.start,r),a=o.indexOf(this.direction)+1;return a>=o.length&&(a=0),o[a]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),i}(m);return t.\u0275fac=function(e){return new(e||t)(n.Y36(g,8))},t.\u0275dir=n.lG2({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[n.qOj,n.TTD]}),t}(),y=o.mZ.ENTERING+" "+o.yN.STANDARD_CURVE,_={indicator:(0,u.X$)("indicator",[(0,u.SB)("active-asc, asc",(0,u.oB)({transform:"translateY(0px)"})),(0,u.SB)("active-desc, desc",(0,u.oB)({transform:"translateY(10px)"})),(0,u.eR)("active-asc <=> active-desc",(0,u.jt)(y))]),leftPointer:(0,u.X$)("leftPointer",[(0,u.SB)("active-asc, asc",(0,u.oB)({transform:"rotate(-45deg)"})),(0,u.SB)("active-desc, desc",(0,u.oB)({transform:"rotate(45deg)"})),(0,u.eR)("active-asc <=> active-desc",(0,u.jt)(y))]),rightPointer:(0,u.X$)("rightPointer",[(0,u.SB)("active-asc, asc",(0,u.oB)({transform:"rotate(45deg)"})),(0,u.SB)("active-desc, desc",(0,u.oB)({transform:"rotate(-45deg)"})),(0,u.eR)("active-asc <=> active-desc",(0,u.jt)(y))]),arrowOpacity:(0,u.X$)("arrowOpacity",[(0,u.SB)("desc-to-active, asc-to-active, active",(0,u.oB)({opacity:1})),(0,u.SB)("desc-to-hint, asc-to-hint, hint",(0,u.oB)({opacity:.54})),(0,u.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,u.oB)({opacity:0})),(0,u.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,u.jt)("0ms")),(0,u.eR)("* <=> *",(0,u.jt)(y))]),arrowPosition:(0,u.X$)("arrowPosition",[(0,u.eR)("* => desc-to-hint, * => desc-to-active",(0,u.jt)(y,(0,u.F4)([(0,u.oB)({transform:"translateY(-25%)"}),(0,u.oB)({transform:"translateY(0)"})]))),(0,u.eR)("* => hint-to-desc, * => active-to-desc",(0,u.jt)(y,(0,u.F4)([(0,u.oB)({transform:"translateY(0)"}),(0,u.oB)({transform:"translateY(25%)"})]))),(0,u.eR)("* => asc-to-hint, * => asc-to-active",(0,u.jt)(y,(0,u.F4)([(0,u.oB)({transform:"translateY(25%)"}),(0,u.oB)({transform:"translateY(0)"})]))),(0,u.eR)("* => hint-to-asc, * => active-to-asc",(0,u.jt)(y,(0,u.F4)([(0,u.oB)({transform:"translateY(0)"}),(0,u.oB)({transform:"translateY(-25%)"})]))),(0,u.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,u.oB)({transform:"translateY(0)"})),(0,u.SB)("hint-to-desc, active-to-desc, desc",(0,u.oB)({transform:"translateY(-25%)"})),(0,u.SB)("hint-to-asc, active-to-asc, asc",(0,u.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,u.X$)("allowChildren",[(0,u.eR)("* <=> *",[(0,u.IO)("@*",(0,u.pV)(),{optional:!0})])])},b=function(){var t=function t(){_classCallCheck(this,t),this.changes=new s.xQ};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t}(),w={provide:b,deps:[[new n.FiY,new n.tp0,b]],useFactory:function(t){return t||new b}},A=(0,o.Id)(function t(){_classCallCheck(this,t)}),k=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,a,s){var c;return _classCallCheck(this,i),(c=e.call(this))._intl=t,c._changeDetectorRef=n,c._sort=r,c._columnDef=o,c._focusMonitor=a,c._elementRef=s,c._showIndicatorHint=!1,c._viewState={},c._arrowDirection="",c._disableViewStateAnimation=!1,c.arrowPosition="after",c._handleStateChanges(),c}return _createClass(i,[{key:"disableClear",get:function(){return this._disableClear},set:function(t){this._disableClear=(0,r.Ig)(t)}},{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngAfterViewInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(e){var i=!!e;i!==t._showIndicatorHint&&(t._setIndicatorHintVisible(i),t._changeDetectorRef.markForCheck())})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(t){this._viewState=t||{},this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0)}},{key:"_handleClick",value:function(){this._isDisabled()||this._sort.sort(this)}},{key:"_handleKeydown",value:function(t){this._isDisabled()||t.keyCode!==a.L_&&t.keyCode!==a.K5||(t.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var t=this._viewState.fromState;return(t?"".concat(t,"-to-"):"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"_handleStateChanges",value:function(){var t=this;this._rerenderSubscription=(0,c.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){t._isSorted()&&(t._updateArrowDirection(),"hint"!==t._viewState.toState&&"active"!==t._viewState.toState||(t._disableViewStateAnimation=!0),t._setAnimationTransitionState({fromState:t._arrowDirection,toState:"active"}),t._showIndicatorHint=!1),!t._isSorted()&&t._viewState&&"active"===t._viewState.toState&&(t._disableViewStateAnimation=!1,t._setAnimationTransitionState({fromState:"active",toState:t._arrowDirection})),t._changeDetectorRef.markForCheck()})}}]),i}(A);return t.\u0275fac=function(e){return new(e||t)(n.Y36(b),n.Y36(n.sBO),n.Y36(v,8),n.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),n.Y36(h.tE),n.Y36(n.SBq))},t.\u0275cmp=n.Xpm({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&n.NdJ("click",function(){return e._handleClick()})("keydown",function(t){return e._handleKeydown(t)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&t&&(n.uIk("aria-sort",e._getAriaSortAttribute()),n.ekj("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[n.qOj],attrs:d,ngContentSelectors:p,decls:4,vars:6,consts:[["role","button",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(t,e){1&t&&(n.F$t(),n.TgZ(0,"div",0),n.TgZ(1,"div",1),n.Hsn(2),n.qZA(),n.YNc(3,f,6,6,"div",2),n.qZA()),2&t&&(n.ekj("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),n.uIk("tabindex",e._isDisabled()?null:0),n.xp6(3),n.Q6J("ngIf",e._renderArrow()))},directives:[l.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-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}\n"],encapsulation:2,data:{animation:[_.indicator,_.leftPointer,_.rightPointer,_.arrowOpacity,_.arrowPosition,_.allowChildren]},changeDetection:0}),t}(),C=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[w],imports:[[l.ez,o.BQ]]}),t}()},70663:function(t,e,i){"use strict";i.d(e,{C0:function(){return at},BY:function(){return ot},VY:function(){return W},Vq:function(){return lt},T5:function(){return dt},fd:function(){return ht}});var n=i(26899),r=i(24621),o=i(22526),a=i(19861),s=i(75842),c=i(61511),u=i(31572),l=i(55959),h=i(40878),d=i(56238),f=i(25416);function p(t,e){1&t&&u.Hsn(0)}var g=["*"],m=function(){var t=function(){function t(e){_classCallCheck(this,t),this._elementRef=e}return _createClass(t,[{key:"focus",value:function(){this._elementRef.nativeElement.focus()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.SBq))},t.\u0275dir=u.lG2({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),t}(),v=function(){var t=function t(e){_classCallCheck(this,t),this.template=e};return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.Rgc))},t.\u0275dir=u.lG2({type:t,selectors:[["","cdkStepLabel",""]]}),t}(),y=0,_=new u.OlP("STEPPER_GLOBAL_OPTIONS"),b=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this._stepper=e,this.interacted=!1,this.interactedStream=new u.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=i||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType,this._showError=!!this._stepperOptions.showError}return _createClass(t,[{key:"editable",get:function(){return this._editable},set:function(t){this._editable=(0,a.Ig)(t)}},{key:"optional",get:function(){return this._optional},set:function(t){this._optional=(0,a.Ig)(t)}},{key:"completed",get:function(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride},set:function(t){this._completedOverride=(0,a.Ig)(t)}},{key:"_getDefaultCompleted",value:function(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}},{key:"hasError",get:function(){return null==this._customError?this._getDefaultError():this._customError},set:function(t){this._customError=(0,a.Ig)(t)}},{key:"_getDefaultError",value:function(){return this.stepControl&&this.stepControl.invalid&&this.interacted}},{key:"select",value:function(){this._stepper.selected=this}},{key:"reset",value:function(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}},{key:"ngOnChanges",value:function(){this._stepper._stateChanged()}},{key:"_markAsInteracted",value:function(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Y36((0,u.Gpc)(function(){return w})),u.Y36(_,8))},t.\u0275cmp=u.Xpm({type:t,selectors:[["cdk-step"]],contentQueries:function(t,e,i){var n;(1&t&&u.Suo(i,v,5),2&t)&&(u.iGM(n=u.CRH())&&(e.stepLabel=n.first))},viewQuery:function(t,e){var i;(1&t&&u.Gf(u.Rgc,7),2&t)&&(u.iGM(i=u.CRH())&&(e.content=i.first))},inputs:{editable:"editable",optional:"optional",completed:"completed",hasError:"hasError",stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[u.TTD],ngContentSelectors:g,decls:1,vars:0,template:function(t,e){1&t&&(u.F$t(),u.YNc(0,p,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t}(),w=function(){var t=function(){function t(e,i,n,r){_classCallCheck(this,t),this._dir=e,this._changeDetectorRef=i,this._elementRef=n,this._destroyed=new l.xQ,this.steps=new u.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new u.vpe,this._orientation="horizontal",this._groupId=y++,this._document=r}return _createClass(t,[{key:"linear",get:function(){return this._linear},set:function(t){this._linear=(0,a.Ig)(t)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(t){var e,i=(0,a.su)(t);this.steps&&this._steps?(this._isValidIndex(t),null===(e=this.selected)||void 0===e||e._markAsInteracted(),this._selectedIndex!==i&&!this._anyControlsInvalidOrPending(i)&&(i>=this._selectedIndex||this.steps.toArray()[i].editable)&&this._updateSelectedItemIndex(t)):this._selectedIndex=i}},{key:"selected",get:function(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0},set:function(t){this.selectedIndex=t&&this.steps?this.steps.toArray().indexOf(t):-1}},{key:"orientation",get:function(){return this._orientation},set:function(t){this._orientation=t,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===t)}},{key:"ngAfterContentInit",value:function(){var t=this;this._steps.changes.pipe((0,d.O)(this._steps),(0,f.R)(this._destroyed)).subscribe(function(e){t.steps.reset(e.filter(function(e){return e._stepper===t})),t.steps.notifyOnChanges()})}},{key:"ngAfterViewInit",value:function(){var t=this;this._keyManager=new r.Em(this._stepHeader).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,h.of)()).pipe((0,d.O)(this._layoutDirection()),(0,f.R)(this._destroyed)).subscribe(function(e){return t._keyManager.withHorizontalOrientation(e)}),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(function(){t.selected||(t._selectedIndex=Math.max(t._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}},{key:"ngOnDestroy",value:function(){this.steps.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"next",value:function(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}},{key:"previous",value:function(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}},{key:"reset",value:function(){this._updateSelectedItemIndex(0),this.steps.forEach(function(t){return t.reset()}),this._stateChanged()}},{key:"_getStepLabelId",value:function(t){return"cdk-step-label-".concat(this._groupId,"-").concat(t)}},{key:"_getStepContentId",value:function(t){return"cdk-step-content-".concat(this._groupId,"-").concat(t)}},{key:"_stateChanged",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_getAnimationDirection",value:function(t){var e=t-this._selectedIndex;return e<0?"rtl"===this._layoutDirection()?"next":"previous":e>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}},{key:"_getIndicatorType",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number",i=this.steps.toArray()[t],n=this._isCurrentStep(t);return i._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(i,n):this._getGuidelineLogic(i,n,e)}},{key:"_getDefaultIndicatorLogic",value:function(t,e){return t._showError&&t.hasError&&!e?"error":!t.completed||e?"number":t.editable?"edit":"done"}},{key:"_getGuidelineLogic",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"number";return t._showError&&t.hasError&&!e?"error":t.completed&&!e?"done":t.completed&&e?i:t.editable&&e?"edit":i}},{key:"_isCurrentStep",value:function(t){return this._selectedIndex===t}},{key:"_getFocusIndex",value:function(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}},{key:"_updateSelectedItemIndex",value:function(t){var e=this.steps.toArray();this.selectionChange.emit({selectedIndex:t,previouslySelectedIndex:this._selectedIndex,selectedStep:e[t],previouslySelectedStep:e[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(t):this._keyManager.updateActiveItem(t),this._selectedIndex=t,this._stateChanged()}},{key:"_onKeydown",value:function(t){var e=(0,s.Vb)(t),i=t.keyCode,n=this._keyManager;null==n.activeItemIndex||e||i!==s.L_&&i!==s.K5?n.onKeydown(t):(this.selectedIndex=n.activeItemIndex,t.preventDefault())}},{key:"_anyControlsInvalidOrPending",value:function(t){return!!(this._linear&&t>=0)&&this.steps.toArray().slice(0,t).some(function(t){var e=t.stepControl;return(e?e.invalid||e.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride})}},{key:"_layoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_containsFocus",value:function(){var t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}},{key:"_isValidIndex",value:function(t){return t>-1&&(!this.steps||t *",(0,O.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,O.X$)("verticalStepTransition",[(0,O.SB)("previous",(0,O.oB)({height:"0px",visibility:"hidden"})),(0,O.SB)("next",(0,O.oB)({height:"0px",visibility:"hidden"})),(0,O.SB)("current",(0,O.oB)({height:"*",visibility:"inherit"})),(0,O.eR)("* <=> current",(0,O.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])},rt=function(){var t=function t(e){_classCallCheck(this,t),this.templateRef=e};return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.Rgc))},t.\u0275dir=u.lG2({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),t}(),ot=function(){var t=function t(e){_classCallCheck(this,t),this._template=e};return t.\u0275fac=function(e){return new(e||t)(u.Y36(u.Rgc))},t.\u0275dir=u.lG2({type:t,selectors:[["ng-template","matStepContent",""]]}),t}(),at=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;return _classCallCheck(this,i),(a=e.call(this,t,o))._errorStateMatcher=n,a._viewContainerRef=r,a._isSelected=S.w.EMPTY,a}return _createClass(i,[{key:"ngAfterContentInit",value:function(){var t=this;this._isSelected=this._stepper.steps.changes.pipe((0,I.w)(function(){return t._stepper.selectionChange.pipe((0,R.U)(function(e){return e.selectedStep===t}),(0,d.O)(t._stepper.selected===t))})).subscribe(function(e){e&&t._lazyContent&&!t._portal&&(t._portal=new n.UE(t._lazyContent._template,t._viewContainerRef))})}},{key:"ngOnDestroy",value:function(){this._isSelected.unsubscribe()}},{key:"isErrorState",value:function(t,e){return this._errorStateMatcher.isErrorState(t,e)||!!(t&&t.invalid&&this.interacted)}}]),i}(b);return t.\u0275fac=function(e){return new(e||t)(u.Y36((0,u.Gpc)(function(){return lt})),u.Y36(T.rD,4),u.Y36(u.s_b),u.Y36(_,8))},t.\u0275cmp=u.Xpm({type:t,selectors:[["mat-step"]],contentQueries:function(t,e,i){var n;(1&t&&(u.Suo(i,W,5),u.Suo(i,ot,5)),2&t)&&(u.iGM(n=u.CRH())&&(e.stepLabel=n.first),u.iGM(n=u.CRH())&&(e._lazyContent=n.first))},inputs:{color:"color"},exportAs:["matStep"],features:[u._Bn([{provide:T.rD,useExisting:t},{provide:b,useExisting:t}]),u.qOj],ngContentSelectors:U,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(u.F$t(),u.YNc(0,H,2,1,"ng-template"))},directives:[n.Pl],encapsulation:2,changeDetection:0}),t}(),st=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(w);return e.\u0275fac=function(i){return(t||(t=u.n5z(e)))(i||e)},e.\u0275dir=u.lG2({type:e,features:[u.qOj]}),e}(),ct=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(st);return e.\u0275fac=function(i){return(t||(t=u.n5z(e)))(i||e)},e.\u0275dir=u.lG2({type:e,selectors:[["mat-horizontal-stepper"]],features:[u.qOj]}),e}(),ut=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(st);return e.\u0275fac=function(i){return(t||(t=u.n5z(e)))(i||e)},e.\u0275dir=u.lG2({type:e,selectors:[["mat-vertical-stepper"]],features:[u.qOj]}),e}(),lt=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;_classCallCheck(this,i),(a=e.call(this,t,n,r,o)).steps=new u.n_E,a.animationDone=new u.vpe,a.labelPosition="end",a._iconOverrides={},a._animationDone=new l.xQ;var s=r.nativeElement.nodeName.toLowerCase();return a.orientation="mat-vertical-stepper"===s?"vertical":"horizontal",a}return _createClass(i,[{key:"ngAfterContentInit",value:function(){var t=this;_get(_getPrototypeOf(i.prototype),"ngAfterContentInit",this).call(this),this._icons.forEach(function(e){var i=e.name,n=e.templateRef;return t._iconOverrides[i]=n}),this.steps.changes.pipe((0,f.R)(this._destroyed)).subscribe(function(){t._stateChanged()}),this._animationDone.pipe((0,x.x)(function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}),(0,f.R)(this._destroyed)).subscribe(function(e){"current"===e.toState&&t.animationDone.emit()})}}]),i}(w);return t.\u0275fac=function(e){return new(e||t)(u.Y36(o.Is,8),u.Y36(u.sBO),u.Y36(u.SBq),u.Y36(c.K0))},t.\u0275cmp=u.Xpm({type:t,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(t,e,i){var n;(1&t&&(u.Suo(i,at,5),u.Suo(i,rt,5)),2&t)&&(u.iGM(n=u.CRH())&&(e._steps=n),u.iGM(n=u.CRH())&&(e._icons=n))},viewQuery:function(t,e){var i;(1&t&&u.Gf(it,5),2&t)&&(u.iGM(i=u.CRH())&&(e._stepHeader=i))},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(t,e){2&t&&(u.uIk("aria-orientation",e.orientation),u.ekj("mat-stepper-horizontal","horizontal"===e.orientation)("mat-stepper-vertical","vertical"===e.orientation)("mat-stepper-label-position-end","horizontal"===e.orientation&&"end"==e.labelPosition)("mat-stepper-label-position-bottom","horizontal"===e.orientation&&"bottom"==e.labelPosition))},inputs:{selectedIndex:"selectedIndex",labelPosition:"labelPosition",disableRipple:"disableRipple",color:"color"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[u._Bn([{provide:w,useExisting:t},{provide:ct,useExisting:t},{provide:ut,useExisting:t}]),u.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[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(t,e){1&t&&(u.ynx(0,0),u.YNc(1,K,5,2,"ng-container",1),u.YNc(2,J,2,1,"ng-container",1),u.BQk(),u.YNc(3,Q,1,22,"ng-template",null,2,u.W1O)),2&t&&(u.Q6J("ngSwitch",e.orientation),u.xp6(1),u.Q6J("ngSwitchCase","horizontal"),u.xp6(1),u.Q6J("ngSwitchCase","vertical"))},directives:[c.RF,c.n9,c.sg,c.tP,c.O5,it],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-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-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}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[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}\n'],encapsulation:2,data:{animation:[nt.horizontalStepTransition,nt.verticalStepTransition]},changeDetection:0}),t}(),ht=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(A);return e.\u0275fac=function(i){return(t||(t=u.n5z(e)))(i||e)},e.\u0275dir=u.lG2({type:e,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(t,e){2&t&&u.Ikx("type",e.type)},inputs:{type:"type"},features:[u.qOj]}),e}(),dt=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u.oAB({type:t}),t.\u0275inj=u.cJS({providers:[$,T.rD],imports:[[T.BQ,c.ez,n.eL,C.ot,k,E.Ps,T.si],T.BQ]}),t}()},67033:function(t,e,i){"use strict";i.d(e,{ev:function(){return ut},Dz:function(){return ot},w1:function(){return st},ge:function(){return ct},fO:function(){return at},XQ:function(){return dt},as:function(){return lt},Gk:function(){return ft},nj:function(){return ht},BZ:function(){return rt},by:function(){return gt},p0:function(){return pt}});var n=i(19861),r=i(4230),o=i(31572),a=i(22526),s=i(11353),c=i(4253),u=i(61511),l=i(55959),h=i(19764),d=i(78512),f=i(4710),p=i(40878),g=i(25416),m=i(90611),v=[[["caption"]],[["colgroup"],["col"]]],y=["caption","colgroup, col"];function _(t){return function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;_classCallCheck(this,i);for(var n=arguments.length,r=new Array(n),o=0;o4&&void 0!==arguments[4])||arguments[4],a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],s=arguments.length>6?arguments[6]:void 0;_classCallCheck(this,t),this._isNativeHtmlTable=e,this._stickCellCss=i,this.direction=n,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=a,this._positionListener=s,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(i,"-border-elem-top"),bottom:"".concat(i,"-border-elem-bottom"),left:"".concat(i,"-border-elem-left"),right:"".concat(i,"-border-elem-right")}}return _createClass(t,[{key:"clearStickyPositioning",value:function(t,e){var i,n=this,r=[],o=_createForOfIteratorHelper(t);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(a.nodeType===a.ELEMENT_NODE){r.push(a);for(var s=0;s3&&void 0!==arguments[3])||arguments[3];if(t.length&&this._isBrowser&&(e.some(function(t){return t})||i.some(function(t){return t}))){var o=t[0],a=o.children.length,s=this._getCellWidths(o,r),c=this._getStickyStartColumnPositions(s,e),u=this._getStickyEndColumnPositions(s,i),l=e.lastIndexOf(!0),h=i.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var r,o="rtl"===n.direction,d=o?"right":"left",f=o?"left":"right",p=_createForOfIteratorHelper(t);try{for(p.s();!(r=p.n()).done;)for(var g=r.value,m=0;m1&&void 0!==arguments[1])||arguments[1];if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var i=[],n=t.children,r=0;r0;r--)e[r]&&(i[r]=n,n+=t[r]);return i}}]),t}(),G=new o.OlP("CDK_SPL"),j=function(){var t=function t(e,i){_classCallCheck(this,t),this.viewContainer=e,this.elementRef=i};return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.s_b),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["","rowOutlet",""]]}),t}(),Y=function(){var t=function t(e,i){_classCallCheck(this,t),this.viewContainer=e,this.elementRef=i};return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.s_b),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["","headerRowOutlet",""]]}),t}(),K=function(){var t=function t(e,i){_classCallCheck(this,t),this.viewContainer=e,this.elementRef=i};return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.s_b),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["","footerRowOutlet",""]]}),t}(),V=function(){var t=function t(e,i){_classCallCheck(this,t),this.viewContainer=e,this.elementRef=i};return t.\u0275fac=function(e){return new(e||t)(o.Y36(o.s_b),o.Y36(o.SBq))},t.\u0275dir=o.lG2({type:t,selectors:[["","noDataRowOutlet",""]]}),t}(),J=function(){var t=function(){function t(e,i,n,r,o,a,s,c,u,h,f){_classCallCheck(this,t),this._differs=e,this._changeDetectorRef=i,this._elementRef=n,this._dir=o,this._platform=s,this._viewRepeater=c,this._coalescedStyleScheduler=u,this._viewportRuler=h,this._stickyPositioningListener=f,this._onDestroy=new l.xQ,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.viewChange=new d.X({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return _createClass(t,[{key:"trackBy",get:function(){return this._trackByFn},set:function(t){this._trackByFn=t}},{key:"dataSource",get:function(){return this._dataSource},set:function(t){this._dataSource!==t&&this._switchDataSource(t)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(t){this._multiTemplateDataRows=(0,n.Ig)(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(t){this._fixedLayout=(0,n.Ig)(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}},{key:"ngOnInit",value:function(){var t=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(e,i){return t.trackBy?t.trackBy(i.dataIndex,i.data):i}),this._viewportRuler.change().pipe((0,g.R)(this._onDestroy)).subscribe(function(){t._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var 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()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),(0,r.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var t=this;this._renderRows=this._getAllRenderRows();var e=this._dataDiffer.diff(this._renderRows);if(e){var i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,function(e,i,n){return t._getEmbeddedViewArgs(e.item,n)},function(t){return t.item.data},function(e){1===e.operation&&e.context&&t._renderCellTemplateForItem(e.record.item.rowDef,e.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(function(t){i.get(t.currentIndex).context.$implicit=t.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}else this._updateNoDataRow()}},{key:"addColumnDef",value:function(t){this._customColumnDefs.add(t)}},{key:"removeColumnDef",value:function(t){this._customColumnDefs.delete(t)}},{key:"addRowDef",value:function(t){this._customRowDefs.add(t)}},{key:"removeRowDef",value:function(t){this._customRowDefs.delete(t)}},{key:"addHeaderRowDef",value:function(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(t){this._customNoDataRow=t}},{key:"updateStickyHeaderRowStyles",value:function(){var t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");var i=this._headerRowDefs.map(function(t){return t.sticky});this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"top"),this._headerRowDefs.forEach(function(t){return t.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");var i=this._footerRowDefs.map(function(t){return t.sticky});this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(function(t){return t.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var t=this,e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),n=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(_toConsumableArray(e),_toConsumableArray(i),_toConsumableArray(n)),["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach(function(e,i){t._addStickyColumnStyles([e],t._headerRowDefs[i])}),this._rowDefs.forEach(function(e){for(var n=[],r=0;r0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(e,i){return t._renderRow(t._headerRowOutlet,e,i)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var t=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(e,i){return t._renderRow(t._footerRowOutlet,e,i)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(t,e){var i=this,n=Array.from(e.columns||[]).map(function(t){return i._columnDefsByName.get(t)}),r=n.map(function(t){return t.sticky}),o=n.map(function(t){return t.stickyEnd});this._stickyStyler.updateStickyColumns(t,r,o,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(t){for(var e=[],i=0;i3&&void 0!==arguments[3]?arguments[3]:{},r=t.viewContainer.createEmbeddedView(e.template,n,i);return this._renderCellTemplateForItem(e,n),r}},{key:"_renderCellTemplateForItem",value:function(t,e){var i,n=_createForOfIteratorHelper(this._getCellTemplates(t));try{for(n.s();!(i=n.n()).done;){var r=i.value;Z.mostRecentCellOutlet&&Z.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,e)}}catch(o){n.e(o)}finally{n.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var t=this._rowOutlet.viewContainer,e=0,i=t.length;e0&&void 0!==arguments[0]?arguments[0]:[];return _classCallCheck(this,i),(t=e.call(this))._renderData=new d.X([]),t._filter=new d.X(""),t._internalPageChanges=new l.xQ,t._renderChangesSubscription=null,t.sortingDataAccessor=function(t,e){var i=t[e];if((0,n.t6)(i)){var r=Number(i);return r<9007199254740991?r:i}return i},t.sortData=function(e,i){var n=i.active,r=i.direction;return n&&""!=r?e.sort(function(e,i){var o=t.sortingDataAccessor(e,n),a=t.sortingDataAccessor(i,n),s=typeof o,c=typeof a;s!==c&&("number"===s&&(o+=""),"number"===c&&(a+=""));var u=0;return null!=o&&null!=a?o>a?u=1:o0)){var n=Math.ceil(i.length/i.pageSize)-1||0,r=Math.min(i.pageIndex,n);r!==i.pageIndex&&(i.pageIndex=r,e._internalPageChanges.next())}})}},{key:"connect",value:function(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}},{key:"disconnect",value:function(){var t;null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=null}}]),i}(r.o2))},55109:function(t,e,i){"use strict";i.d(e,{uX:function(){return J},Vc:function(){return G},SP:function(){return ot},uD:function(){return Y},Nh:function(){return dt}});var n=i(24621),r=i(36337),o=i(26899),a=i(61511),s=i(31572),c=i(71522),u=i(43490),l=i(55959),h=i(87570),d=i(31906),f=i(87254),p=i(40878),g=i(81110),m=i(10709),v=i(56238),y=i(98720),_=i(25416),b=i(19861),w=i(11353),A=i(75842),k=i(22526),C=i(4253);function T(t,e){1&t&&s.Hsn(0)}var E=["*"];function S(t,e){}var I=function(t){return{animationDuration:t}},R=function(t,e){return{value:t,params:e}},x=["tabBodyWrapper"],O=["tabHeader"];function P(t,e){}function D(t,e){if(1&t&&s.YNc(0,P,0,0,"ng-template",9),2&t){var i=s.oxw().$implicit;s.Q6J("cdkPortalOutlet",i.templateLabel)}}function M(t,e){if(1&t&&s._uU(0),2&t){var i=s.oxw().$implicit;s.Oqu(i.textLabel)}}function L(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"div",6),s.NdJ("click",function(){var t=s.CHM(i),e=t.$implicit,n=t.index,r=s.oxw(),o=s.MAs(1);return r._handleClick(e,o,n)})("cdkFocusChange",function(t){var e=s.CHM(i).index;return s.oxw()._tabFocusChanged(t,e)}),s.TgZ(1,"div",7),s.YNc(2,D,1,1,"ng-template",8),s.YNc(3,M,1,1,"ng-template",8),s.qZA(),s.qZA()}if(2&t){var n=e.$implicit,r=e.index,o=s.oxw();s.ekj("mat-tab-label-active",o.selectedIndex==r),s.Q6J("id",o._getTabLabelId(r))("disabled",n.disabled)("matRippleDisabled",n.disabled||o.disableRipple),s.uIk("tabIndex",o._getTabIndex(n,r))("aria-posinset",r+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(r))("aria-selected",o.selectedIndex==r)("aria-label",n.ariaLabel||null)("aria-labelledby",!n.ariaLabel&&n.ariaLabelledby?n.ariaLabelledby:null),s.xp6(2),s.Q6J("ngIf",n.templateLabel),s.xp6(1),s.Q6J("ngIf",!n.templateLabel)}}function N(t,e){if(1&t){var i=s.EpF();s.TgZ(0,"mat-tab-body",10),s.NdJ("_onCentered",function(){return s.CHM(i),s.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(t){return s.CHM(i),s.oxw()._setTabBodyWrapperHeight(t)}),s.qZA()}if(2&t){var n=e.$implicit,r=e.index,o=s.oxw();s.ekj("mat-tab-body-active",o.selectedIndex==r),s.Q6J("id",o._getTabContentId(r))("content",n.content)("position",n.position)("origin",n.origin)("animationDuration",o.animationDuration),s.uIk("aria-labelledby",o._getTabLabelId(r))}}var z=["tabListContainer"],Z=["tabList"],B=["nextPaginator"],F=["previousPaginator"],H=new s.OlP("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(t){return{left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"}}}}),U=function(){var t=function(){function t(e,i,n,r){_classCallCheck(this,t),this._elementRef=e,this._ngZone=i,this._inkBarPositioner=n,this._animationMode=r}return _createClass(t,[{key:"alignToElement",value:function(t){var e=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e._setStyles(t)})}):this._setStyles(t)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(t){var e=this._inkBarPositioner(t),i=this._elementRef.nativeElement;i.style.left=e.left,i.style.width=e.width}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(H),s.Y36(u.Qb,8))},t.\u0275dir=s.lG2({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t}(),q=new s.OlP("MatTabContent"),G=function(){var t=function t(e){_classCallCheck(this,t),this.template=e};return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","matTabContent",""]],features:[s._Bn([{provide:q,useExisting:t}])]}),t}(),j=new s.OlP("MatTabLabel"),Y=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(o.ig);return e.\u0275fac=function(i){return(t||(t=s.n5z(e)))(i||e)},e.\u0275dir=s.lG2({type:e,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[s._Bn([{provide:j,useExisting:e}]),s.qOj]}),e}(),K=(0,c.Id)(function t(){_classCallCheck(this,t)}),V=new s.OlP("MAT_TAB_GROUP"),J=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this))._viewContainerRef=t,r._closestTabGroup=n,r.textLabel="",r._contentPortal=null,r._stateChanges=new l.xQ,r.position=null,r.origin=null,r.isActive=!1,r}return _createClass(i,[{key:"templateLabel",get:function(){return this._templateLabel},set:function(t){this._setTemplateLabelInput(t)}},{key:"content",get:function(){return this._contentPortal}},{key:"ngOnChanges",value:function(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new o.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(t){t&&(this._templateLabel=t)}}]),i}(K);return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(V,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,i){var n;(1&t&&(s.Suo(i,j,5),s.Suo(i,q,7,s.Rgc)),2&t)&&(s.iGM(n=s.CRH())&&(e.templateLabel=n.first),s.iGM(n=s.CRH())&&(e._explicitContent=n.first))},viewQuery:function(t,e){var i;(1&t&&s.Gf(s.Rgc,7),2&t)&&(s.iGM(i=s.CRH())&&(e._implicitContent=i.first))},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[s.qOj,s.TTD],ngContentSelectors:E,decls:1,vars:0,template:function(t,e){1&t&&(s.F$t(),s.YNc(0,T,1,0,"ng-template"))},encapsulation:2}),t}(),Q={translateTab:(0,m.X$)("translateTab",[(0,m.SB)("center, void, left-origin-center, right-origin-center",(0,m.oB)({transform:"none"})),(0,m.SB)("left",(0,m.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,m.SB)("right",(0,m.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,m.eR)("* => left, * => right, left => center, right => center",(0,m.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,m.eR)("void => left-origin-center",[(0,m.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,m.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,m.eR)("void => right-origin-center",[(0,m.oB)({transform:"translate3d(100%, 0, 0)"}),(0,m.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},W=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;return _classCallCheck(this,i),(a=e.call(this,t,n,o))._host=r,a._centeringSub=h.w.EMPTY,a._leavingSub=h.w.EMPTY,a}return _createClass(i,[{key:"ngOnInit",value:function(){var t=this;_get(_getPrototypeOf(i.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe((0,v.O)(this._host._isCenterPosition(this._host._position))).subscribe(function(e){e&&!t.hasAttached()&&t.attach(t._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){t.detach()})}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(i.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),i}(o.Pl);return t.\u0275fac=function(e){return new(e||t)(s.Y36(s._Vd),s.Y36(s.s_b),s.Y36((0,s.Gpc)(function(){return $})),s.Y36(a.K0))},t.\u0275dir=s.lG2({type:t,selectors:[["","matTabBodyHost",""]],features:[s.qOj]}),t}(),X=function(){var t=function(){function t(e,i,n){var r=this;_classCallCheck(this,t),this._elementRef=e,this._dir=i,this._dirChangeSubscription=h.w.EMPTY,this._translateTabComplete=new l.xQ,this._onCentering=new s.vpe,this._beforeCentering=new s.vpe,this._afterLeavingCenter=new s.vpe,this._onCentered=new s.vpe(!0),this.animationDuration="500ms",i&&(this._dirChangeSubscription=i.change.subscribe(function(t){r._computePositionAnimationState(t),n.markForCheck()})),this._translateTabComplete.pipe((0,y.x)(function(t,e){return t.fromState===e.fromState&&t.toState===e.toState})).subscribe(function(t){r._isCenterPosition(t.toState)&&r._isCenterPosition(r._position)&&r._onCentered.emit(),r._isCenterPosition(t.fromState)&&!r._isCenterPosition(r._position)&&r._afterLeavingCenter.emit()})}return _createClass(t,[{key:"position",set:function(t){this._positionIndex=t,this._computePositionAnimationState()}},{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(t){var e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}},{key:"_computePositionAnimationState",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(t){var e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(k.Is,8),s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t}(),$=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){return _classCallCheck(this,i),e.call(this,t,n,r)}return i}(X);return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(k.Is,8),s.Y36(s.sBO))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){var i;(1&t&&s.Gf(o.Pl,5),2&t)&&(s.iGM(i=s.CRH())&&(e._portalHost=i.first))},hostAttrs:[1,"mat-tab-body"],features:[s.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(s.TgZ(0,"div",0,1),s.NdJ("@translateTab.start",function(t){return e._onTranslateTabStarted(t)})("@translateTab.done",function(t){return e._translateTabComplete.next(t)}),s.YNc(2,S,0,0,"ng-template",2),s.qZA()),2&t&&s.Q6J("@translateTab",s.WLB(3,R,e._position,s.VKq(1,I,e.animationDuration)))},directives:[W],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Q.translateTab]}}),t}(),tt=new s.OlP("MAT_TABS_CONFIG"),et=0,it=function t(){_classCallCheck(this,t)},nt=(0,c.pj)((0,c.Kr)(function t(e){_classCallCheck(this,t),this._elementRef=e}),"primary"),rt=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;return _classCallCheck(this,i),(a=e.call(this,t))._changeDetectorRef=n,a._animationMode=o,a._tabs=new s.n_E,a._indexToSelect=0,a._tabBodyWrapperHeight=0,a._tabsSubscription=h.w.EMPTY,a._tabLabelSubscription=h.w.EMPTY,a._selectedIndex=null,a.headerPosition="above",a.selectedIndexChange=new s.vpe,a.focusChange=new s.vpe,a.animationDone=new s.vpe,a.selectedTabChange=new s.vpe(!0),a._groupId=et++,a.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",a.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,a.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,a}return _createClass(i,[{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(t){this._dynamicHeight=(0,b.Ig)(t)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(t){this._indexToSelect=(0,b.su)(t,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(t){var e=this._elementRef.nativeElement;e.classList.remove("mat-background-".concat(this.backgroundColor)),t&&e.classList.add("mat-background-".concat(t)),this._backgroundColor=t}},{key:"ngAfterContentChecked",value:function(){var t=this,e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){var i=null==this._selectedIndex;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));var n=this._tabBodyWrapper.nativeElement;n.style.minHeight=n.clientHeight+"px"}Promise.resolve().then(function(){t._tabs.forEach(function(t,i){return t.isActive=i===e}),i||(t.selectedIndexChange.emit(e),t._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(i,n){i.position=n-e,null==t._selectedIndex||0!=i.position||i.origin||(i.origin=e-t._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var t=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){if(t._clampTabIndex(t._indexToSelect)===t._selectedIndex)for(var e=t._tabs.toArray(),i=0;i.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-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;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}\n"],encapsulation:2}),t}(),at=(0,c.Id)(function t(){_classCallCheck(this,t)}),st=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this)).elementRef=t,n}return _createClass(i,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),i}(at);return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(s.uIk("aria-disabled",!!e.disabled),s.ekj("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[s.qOj]}),t}(),ct=(0,w.i$)({passive:!0}),ut=function(){var t=function(){function t(e,i,n,r,o,a,c){var u=this;_classCallCheck(this,t),this._elementRef=e,this._changeDetectorRef=i,this._viewportRuler=n,this._dir=r,this._ngZone=o,this._platform=a,this._animationMode=c,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new l.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new l.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new s.vpe,this.indexFocused=new s.vpe,o.runOutsideAngular(function(){(0,f.R)(e.nativeElement,"mouseleave").pipe((0,_.R)(u._destroyed)).subscribe(function(){u._stopInterval()})})}return _createClass(t,[{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(t){t=(0,b.su)(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}},{key:"ngAfterViewInit",value:function(){var t=this;(0,f.R)(this._previousPaginator.nativeElement,"touchstart",ct).pipe((0,_.R)(this._destroyed)).subscribe(function(){t._handlePaginatorPress("before")}),(0,f.R)(this._nextPaginator.nativeElement,"touchstart",ct).pipe((0,_.R)(this._destroyed)).subscribe(function(){t._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var t=this,e=this._dir?this._dir.change:(0,p.of)("ltr"),i=this._viewportRuler.change(150),r=function(){t.updatePagination(),t._alignInkBarToSelectedTab()};this._keyManager=new n.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(r):r(),(0,d.T)(e,i,this._items.changes).pipe((0,_.R)(this._destroyed)).subscribe(function(){t._ngZone.run(function(){return Promise.resolve().then(r)}),t._keyManager.withHorizontalOrientation(t._getLayoutDirection())}),this._keyManager.change.pipe((0,_.R)(this._destroyed)).subscribe(function(e){t.indexFocused.emit(e),t._setTabFocus(e)})}},{key:"ngAfterContentChecked",value:function(){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())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(t){if(!(0,A.Vb)(t))switch(t.keyCode){case A.K5:case A.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}},{key:"_onContentChanges",value:function(){var t=this,e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(function(){t.updatePagination(),t._alignInkBarToSelectedTab(),t._changeDetectorRef.markForCheck()}))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}},{key:"_isValidIndex",value:function(t){if(!this._items)return!0;var e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}},{key:"_setTabFocus",value:function(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();var e=this._tabListContainer.nativeElement,i=this._getLayoutDirection();e.scrollLeft="ltr"==i?0:e.scrollWidth-e.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(e),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(t){this._scrollTo(t)}},{key:"_scrollHeader",value:function(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(t){this._stopInterval(),this._scrollHeader(t)}},{key:"_scrollToLabel",value:function(t){if(!this.disablePagination){var e=this._items?this._items.toArray()[t]:null;if(e){var i,n,r=this._tabListContainer.nativeElement.offsetWidth,o=e.elementRef.nativeElement,a=o.offsetLeft,s=o.offsetWidth;"ltr"==this._getLayoutDirection()?n=(i=a)+s:i=(n=this._tabList.nativeElement.offsetWidth-a)-s;var c=this.scrollDistance,u=this.scrollDistance+r;iu&&(this.scrollDistance+=n-u+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(t,e){var i=this;e&&null!=e.button&&0!==e.button||(this._stopInterval(),(0,g.H)(650,100).pipe((0,_.R)((0,d.T)(this._stopScrolling,this._destroyed))).subscribe(function(){var e=i._scrollHeader(t),n=e.maxScrollDistance,r=e.distance;(0===r||r>=n)&&i._stopInterval()}))}},{key:"_scrollTo",value:function(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(C.rL),s.Y36(k.Is,8),s.Y36(s.R0b),s.Y36(w.t4),s.Y36(u.Qb,8))},t.\u0275dir=s.lG2({type:t,inputs:{disablePagination:"disablePagination"}}),t}(),lt=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,a,s,c){var u;return _classCallCheck(this,i),(u=e.call(this,t,n,r,o,a,s,c))._disableRipple=!1,u}return _createClass(i,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(t){this._disableRipple=(0,b.Ig)(t)}},{key:"_itemSelected",value:function(t){t.preventDefault()}}]),i}(ut);return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(C.rL),s.Y36(k.Is,8),s.Y36(s.R0b),s.Y36(w.t4),s.Y36(u.Qb,8))},t.\u0275dir=s.lG2({type:t,inputs:{disableRipple:"disableRipple"},features:[s.qOj]}),t}(),ht=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,a,s,c){return _classCallCheck(this,i),e.call(this,t,n,r,o,a,s,c)}return i}(lt);return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(C.rL),s.Y36(k.Is,8),s.Y36(s.R0b),s.Y36(w.t4),s.Y36(u.Qb,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,i){var n;(1&t&&s.Suo(i,st,4),2&t)&&(s.iGM(n=s.CRH())&&(e._items=n))},viewQuery:function(t,e){var i;(1&t&&(s.Gf(U,7),s.Gf(z,7),s.Gf(Z,7),s.Gf(B,5),s.Gf(F,5)),2&t)&&(s.iGM(i=s.CRH())&&(e._inkBar=i.first),s.iGM(i=s.CRH())&&(e._tabListContainer=i.first),s.iGM(i=s.CRH())&&(e._tabList=i.first),s.iGM(i=s.CRH())&&(e._nextPaginator=i.first),s.iGM(i=s.CRH())&&(e._previousPaginator=i.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&s.ekj("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[s.qOj],ngContentSelectors:E,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","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"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0,1),s.NdJ("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),s._UZ(2,"div",2),s.qZA(),s.TgZ(3,"div",3,4),s.NdJ("keydown",function(t){return e._handleKeydown(t)}),s.TgZ(5,"div",5,6),s.NdJ("cdkObserveContent",function(){return e._onContentChanges()}),s.TgZ(7,"div",7),s.Hsn(8),s.qZA(),s._UZ(9,"mat-ink-bar"),s.qZA(),s.qZA(),s.TgZ(10,"div",8,9),s.NdJ("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),s._UZ(12,"div",2),s.qZA()),2&t&&(s.ekj("mat-tab-header-pagination-disabled",e._disableScrollBefore),s.Q6J("matRippleDisabled",e._disableScrollBefore||e.disableRipple),s.xp6(5),s.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode),s.xp6(5),s.ekj("mat-tab-header-pagination-disabled",e._disableScrollAfter),s.Q6J("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[c.wG,r.wD,U],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-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:transparent;touch-action:none}.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;content:"";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-animation-noopable.mat-ink-bar{transition:none;animation:none}.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-animation-noopable.mat-tab-list{transition:none;animation:none}.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}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.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{min-width:72px}}\n'],encapsulation:2}),t}(),dt=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[a.ez,c.BQ,o.eL,c.si,r.Q8,n.rt],c.BQ]}),t}()},36922:function(t,e,i){"use strict";i.d(e,{gM:function(){return B},AV:function(){return U}});var n,r=i(2522),o=i(24621),a=i(61511),s=i(31572),c=i(71522),u=i(4253),l=i(19861),h=i(75842),d=i(55959),f=i(31305),p=i(47930),g=i(48318),m=i(90611),v=i(96673),y=function(){function t(e){_classCallCheck(this,t),this.total=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new _(t,this.total))}}]),t}(),_=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,t)).total=n,r.count=0,r}return _createClass(i,[{key:"_next",value:function(t){++this.count>this.total&&this.destination.next(t)}}]),i}(v.L),b=i(47701),w=i(79996),A=i(56238),k=i(25416),C=i(11353),T=new Set,E=function(){var t=function(){function t(e){_classCallCheck(this,t),this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):S}return _createClass(t,[{key:"matchMedia",value:function(t){return this._platform.WEBKIT&&function(t){if(!T.has(t))try{n||((n=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(n)),n.sheet&&(n.sheet.insertRule("@media ".concat(t," {.fx-query-test{ }}"),0),T.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(C.t4))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(C.t4))},token:t,providedIn:"root"}),t}();function S(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}var I=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new d.xQ}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(t){var e=this;return R((0,l.Eq)(t)).some(function(t){return e._registerQuery(t).mql.matches})}},{key:"observe",value:function(t){var e=this,i=R((0,l.Eq)(t)).map(function(t){return e._registerQuery(t).observable}),n=(0,f.aj)(i);return(n=(0,p.z)(n.pipe((0,m.q)(1)),n.pipe(function(t){return t.lift(new y(1))},(0,b.b)(0)))).pipe((0,w.U)(function(t){var e={matches:!1,breakpoints:{}};return t.forEach(function(t){var i=t.matches,n=t.query;e.matches=e.matches||i,e.breakpoints[n]=i}),e}))}},{key:"_registerQuery",value:function(t){var e=this;if(this._queries.has(t))return this._queries.get(t);var i=this._mediaMatcher.matchMedia(t),n={observable:new g.y(function(t){var n=function(i){return e._zone.run(function(){return t.next(i)})};return i.addListener(n),function(){i.removeListener(n)}}).pipe((0,A.O)(i),(0,w.U)(function(e){var i=e.matches;return{query:t,matches:i}}),(0,k.R)(this._destroySubject)),mql:i};return this._queries.set(t,n),n}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.LFG(E),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(E),s.LFG(s.R0b))},token:t,providedIn:"root"}),t}();function R(t){return t.map(function(t){return t.split(",")}).reduce(function(t,e){return t.concat(e)}).map(function(t){return t.trim()})}var x=i(26899),O=i(10709),P=i(22526),D={tooltipState:(0,O.X$)("state",[(0,O.SB)("initial, void, hidden",(0,O.oB)({opacity:0,transform:"scale(0)"})),(0,O.SB)("visible",(0,O.oB)({transform:"scale(1)"})),(0,O.eR)("* => visible",(0,O.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,O.F4)([(0,O.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,O.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,O.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,O.eR)("* => hidden",(0,O.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,O.oB)({opacity:0})))])},M=(0,C.i$)({passive:!0}),L=new s.OlP("mat-tooltip-scroll-strategy"),N={provide:L,deps:[r.aV],useFactory:function(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:20})}}},z=new s.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),Z=function(){var t=function(){function t(e,i,n,r,o,a,s,c,u,l,f,p){var g=this;_classCallCheck(this,t),this._overlay=e,this._elementRef=i,this._scrollDispatcher=n,this._viewContainerRef=r,this._ngZone=o,this._platform=a,this._ariaDescriber=s,this._focusMonitor=c,this._dir=l,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 d.xQ,this._handleKeydown=function(t){g._isTooltipVisible()&&t.keyCode===h.hY&&!(0,h.Vb)(t)&&(t.preventDefault(),t.stopPropagation(),g._ngZone.run(function(){return g.hide(0)}))},this._scrollStrategy=u,this._document=p,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),l.change.pipe((0,k.R)(this._destroyed)).subscribe(function(){g._overlayRef&&g._updatePosition(g._overlayRef)}),o.runOutsideAngular(function(){i.nativeElement.addEventListener("keydown",g._handleKeydown)})}return _createClass(t,[{key:"position",get:function(){return this._position},set:function(t){var e;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(e=this._tooltipInstance)||void 0===e||e.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=(0,l.Ig)(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(t){var e=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){e._ariaDescriber.describe(e._elementRef.nativeElement,e.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var t=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,k.R)(this._destroyed)).subscribe(function(e){e?"keyboard"===e&&t._ngZone.run(function(){return t.show()}):t._ngZone.run(function(){return t.hide(0)})})}},{key:"ngOnDestroy",value:function(){var t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(e){var i=_slicedToArray(e,2),n=i[0],r=i[1];t.removeEventListener(n,r,M)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}},{key:"show",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var i=this._createOverlay();this._detach(),this._portal=this._portal||new x.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=i.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,k.R)(this._destroyed)).subscribe(function(){return t._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}}},{key:"hide",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(t)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var t=this;if(this._overlayRef)return this._overlayRef;var e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),i=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return i.positionChanges.pipe((0,k.R)(this._destroyed)).subscribe(function(e){t._updateCurrentPositionClass(e.connectionPair),t._tooltipInstance&&e.scrollableViewProperties.isOverlayClipped&&t._tooltipInstance.isVisible()&&t._ngZone.run(function(){return t.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:i,panelClass:"".concat(this._cssClassPrefix,"-tooltip-panel"),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,k.R)(this._destroyed)).subscribe(function(){return t._detach()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(t){var e=t.getConfig().positionStrategy,i=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([this._addOffset(Object.assign(Object.assign({},i.main),n.main)),this._addOffset(Object.assign(Object.assign({},i.fallback),n.fallback))])}},{key:"_addOffset",value:function(t){return t}},{key:"_getOrigin",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,i=this.position;"above"==i||"below"==i?t={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?t={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(t={originX:"end",originY:"center"});var n=this._invertPosition(t.originX,t.originY);return{main:t,fallback:{originX:n.x,originY:n.y}}}},{key:"_getOverlayPosition",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,i=this.position;"above"==i?t={overlayX:"center",overlayY:"bottom"}:"below"==i?t={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?t={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(t={overlayX:"start",overlayY:"center"});var n=this._invertPosition(t.overlayX,t.overlayY);return{main:t,fallback:{overlayX:n.x,overlayY:n.y}}}},{key:"_updateTooltipMessage",value:function(){var t=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,m.q)(1),(0,k.R)(this._destroyed)).subscribe(function(){t._tooltipInstance&&t._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}},{key:"_updateCurrentPositionClass",value:function(t){var e,i=t.overlayY,n=t.originX,r=t.originY;if((e="center"===i?this._dir&&"rtl"===this._dir.value?"end"===n?"left":"right":"start"===n?"left":"right":"bottom"===i&&"top"===r?"above":"below")!==this._currentPosition){var o=this._overlayRef;if(o){var a="".concat(this._cssClassPrefix,"-tooltip-panel-");o.removePanelClass(a+this._currentPosition),o.addPanelClass(a+e)}this._currentPosition=e}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var t=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){t._setupPointerExitEventsIfNeeded(),t.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){t._setupPointerExitEventsIfNeeded(),clearTimeout(t._touchstartTimeout),t._touchstartTimeout=setTimeout(function(){return t.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var t,e=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var i=[];if(this._platformSupportsMouseEvents())i.push(["mouseleave",function(){return e.hide()}],["wheel",function(t){return e._wheelListener(t)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var n=function(){clearTimeout(e._touchstartTimeout),e.hide(e._defaultOptions.touchendHideDelay)};i.push(["touchend",n],["touchcancel",n])}this._addListeners(i),(t=this._passiveListeners).push.apply(t,i)}}},{key:"_addListeners",value:function(t){var e=this;t.forEach(function(t){var i=_slicedToArray(t,2),n=i[0],r=i[1];e._elementRef.nativeElement.addEventListener(n,r,M)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(t){if(this._isTooltipVisible()){var e=this._document.elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;e===i||i.contains(e)||this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var t=this.touchGestures;if("off"!==t){var e=this._elementRef.nativeElement,i=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),"on"!==t&&e.draggable||(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent"}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.aV),s.Y36(s.SBq),s.Y36(u.mF),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(C.t4),s.Y36(o.$s),s.Y36(o.tE),s.Y36(void 0),s.Y36(P.Is),s.Y36(void 0),s.Y36(a.K0))},t.\u0275dir=s.lG2({type:t,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t}(),B=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,a,s,c,u,l,h,d,f){var p;return _classCallCheck(this,i),(p=e.call(this,t,n,r,o,a,s,c,u,l,h,d,f))._tooltipComponent=H,p}return i}(Z);return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.aV),s.Y36(s.SBq),s.Y36(u.mF),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(C.t4),s.Y36(o.$s),s.Y36(o.tE),s.Y36(L),s.Y36(P.Is,8),s.Y36(z,8),s.Y36(a.K0))},t.\u0275dir=s.lG2({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[s.qOj]}),t}(),F=function(){var t=function(){function t(e){_classCallCheck(this,t),this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new d.xQ}return _createClass(t,[{key:"show",value:function(t){var e=this;clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){e._visibility="visible",e._showTimeoutId=void 0,e._markForCheck()},t)}},{key:"hide",value:function(t){var e=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){e._visibility="hidden",e._hideTimeoutId=void 0,e._markForCheck()},t)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(t){var e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t}),t}(),H=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,t))._breakpointObserver=n,r._isHandset=r._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),r}return i}(F);return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36(I))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e._handleBodyInteraction()},!1,s.pYS)("auxclick",function(){return e._handleBodyInteraction()},!1,s.pYS),2&t&&s.Udp("zoom","visible"===e._visibility?1:null)},features:[s.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){var i;(1&t&&(s.TgZ(0,"div",0),s.NdJ("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),s.ALo(1,"async"),s._uU(2),s.qZA()),2&t)&&(s.ekj("mat-tooltip-handset",null==(i=s.lcZ(1,5,e._isHandset))?null:i.matches),s.Q6J("ngClass",e.tooltipClass)("@state",e._visibility),s.xp6(2),s.Oqu(e.message))},directives:[a.mk],pipes:[a.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[D.tooltipState]},changeDetection:0}),t}(),U=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[N],imports:[[o.rt,a.ez,r.U8,c.BQ],c.BQ,u.ZD]}),t}()},91010:function(t,e,i){"use strict";i.d(e,{GZ:function(){return g},gi:function(){return v},kc:function(){return w},JZ:function(){return b},dp:function(){return _},WX:function(){return A},uo:function(){return f},fQ:function(){return p},Ar:function(){return m},eu:function(){return y}});var n=i(71709),r=i(71522),o=i(19861),a=i(4230),s=i(78512),c=i(31906),u=i(90611),l=i(79996),h=i(31572),d=(0,r.sb)((0,r.Id)(n.Hs)),f=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this,t,n))._elementRef=t,o._tree=n,o.tabIndex=Number(r)||0,o._elementRef.nativeElement.classList.add("mat-tree-node"),o}return _createClass(i,[{key:"ngOnInit",value:function(){_get(_getPrototypeOf(i.prototype),"ngOnInit",this).call(this)}},{key:"ngDoCheck",value:function(){_get(_getPrototypeOf(i.prototype),"ngDoCheck",this).call(this)}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(i.prototype),"ngOnDestroy",this).call(this)}}]),i}(d);return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(n._0),h.$8M("tabindex"))},t.\u0275dir=h.lG2({type:t,selectors:[["mat-tree-node"]],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[h._Bn([{provide:n.Hs,useExisting:t}]),h.qOj]}),t}(),p=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(n.rO);return e.\u0275fac=function(i){return(t||(t=h.n5z(e)))(i||e)},e.\u0275dir=h.lG2({type:e,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[h._Bn([{provide:n.rO,useExisting:e}]),h.qOj]}),e}(),g=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;return _classCallCheck(this,i),(a=e.call(this,t,n,r))._elementRef=t,a._tree=n,a._differs=r,a._disabled=!1,a.tabIndex=Number(o)||0,a._elementRef.nativeElement.classList.add("mat-nested-tree-node"),a}return _createClass(i,[{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=(0,o.Ig)(t)}},{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(t){this._tabIndex=null!=t?t:0}},{key:"ngOnInit",value:function(){_get(_getPrototypeOf(i.prototype),"ngOnInit",this).call(this)}},{key:"ngDoCheck",value:function(){_get(_getPrototypeOf(i.prototype),"ngDoCheck",this).call(this)}},{key:"ngAfterContentInit",value:function(){_get(_getPrototypeOf(i.prototype),"ngAfterContentInit",this).call(this)}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(i.prototype),"ngOnDestroy",this).call(this)}}]),i}(n.Xx);return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.SBq),h.Y36(n._0),h.Y36(h.ZZ4),h.$8M("tabindex"))},t.\u0275dir=h.lG2({type:t,selectors:[["mat-nested-tree-node"]],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[h._Bn([{provide:n.Xx,useExisting:t},{provide:n.Hs,useExisting:t},{provide:n.HI,useExisting:t}]),h.qOj]}),t}(),m=function(){var t=function t(e,i){_classCallCheck(this,t),this.viewContainer=e,this._node=i};return t.\u0275fac=function(e){return new(e||t)(h.Y36(h.s_b),h.Y36(n.HI,8))},t.\u0275dir=h.lG2({type:t,selectors:[["","matTreeNodeOutlet",""]],features:[h._Bn([{provide:n.cu,useExisting:t}])]}),t}(),v=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(n._0);return e.\u0275fac=function(i){return(t||(t=h.n5z(e)))(i||e)},e.\u0275cmp=h.Xpm({type:e,selectors:[["mat-tree"]],viewQuery:function(t,e){var i;(1&t&&h.Gf(m,7),2&t)&&(h.iGM(i=h.CRH())&&(e._nodeOutlet=i.first))},hostAttrs:["role","tree",1,"mat-tree","cdk-tree"],exportAs:["matTree"],features:[h._Bn([{provide:n._0,useExisting:e}]),h.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(t,e){1&t&&h.GkF(0,0)},directives:[m],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}\n"],encapsulation:2}),e}(),y=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"recursive",get:function(){return this._recursive},set:function(t){this._recursive=(0,o.Ig)(t)}}]),i}(n.Ud);return e.\u0275fac=function(i){return(t||(t=h.n5z(e)))(i||e)},e.\u0275dir=h.lG2({type:e,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[h._Bn([{provide:n.Ud,useExisting:e}]),h.qOj]}),e}(),_=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({imports:[[n.nZ,r.BQ],r.BQ]}),t}(),b=function(){function t(e,i,n,r){_classCallCheck(this,t),this.transformFunction=e,this.getLevel=i,this.isExpandable=n,this.getChildren=r}return _createClass(t,[{key:"_flattenNode",value:function(t,e,i,n){var r=this,o=this.transformFunction(t,e);if(i.push(o),this.isExpandable(o)){var a=this.getChildren(t);a&&(Array.isArray(a)?this._flattenChildren(a,e,i,n):a.pipe((0,u.q)(1)).subscribe(function(t){r._flattenChildren(t,e,i,n)}))}return i}},{key:"_flattenChildren",value:function(t,e,i,n){var r=this;t.forEach(function(o,a){var s=n.slice();s.push(a!=t.length-1),r._flattenNode(o,e+1,i,s)})}},{key:"flattenNodes",value:function(t){var e=this,i=[];return t.forEach(function(t){return e._flattenNode(t,0,i,[])}),i}},{key:"expandFlattenedNodes",value:function(t,e){var i=this,n=[],r=[];return r[0]=!0,t.forEach(function(t){for(var o=!0,a=0;a<=i.getLevel(t);a++)o=o&&r[a];o&&n.push(t),i.isExpandable(t)&&(r[i.getLevel(t)+1]=e.isExpanded(t))}),n}}]),t}(),w=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this))._treeControl=t,o._treeFlattener=n,o._flattenedData=new s.X([]),o._expandedData=new s.X([]),o._data=new s.X([]),r&&(o.data=r),o}return _createClass(i,[{key:"data",get:function(){return this._data.value},set:function(t){this._data.next(t),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}},{key:"connect",value:function(t){var e=this;return(0,c.T)(t.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe((0,l.U)(function(){return e._expandedData.next(e._treeFlattener.expandFlattenedNodes(e._flattenedData.value,e._treeControl)),e._expandedData.value}))}},{key:"disconnect",value:function(){}}]),i}(a.o2),A=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.apply(this,arguments))._data=new s.X([]),t}return _createClass(i,[{key:"data",get:function(){return this._data.value},set:function(t){this._data.next(t)}},{key:"connect",value:function(t){var e=this;return(0,c.T)(t.viewChange,this._data).pipe((0,l.U)(function(){return e.data}))}},{key:"disconnect",value:function(){}}]),i}(a.o2)},43490:function(t,e,i){"use strict";i.d(e,{Qb:function(){return ye},PW:function(){return Ae}});var n=i(31572),r=i(30269),o=i(10709);function a(){return"undefined"!=typeof window&&void 0!==window.document}function s(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function c(t){switch(t.length){case 0:return new o.ZN;case 1:return t[0];default:return new o.ZE(t)}}function u(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=[],c=[],u=-1,l=null;if(n.forEach(function(t){var i=t.offset,n=i==u,h=n&&l||{};Object.keys(t).forEach(function(i){var n=i,c=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,s),c){case o.k1:c=r[i];break;case o.l3:c=a[i];break;default:c=e.normalizeStyleValue(i,n,c,s)}h[n]=c}),n||c.push(h),l=h,u=i}),s.length){var h="\n - ";throw new Error("Unable to animate due to the following errors:".concat(h).concat(s.join(h)))}return c}function l(t,e,i,n){switch(e){case"start":t.onStart(function(){return n(i&&h(i,"start",t))});break;case"done":t.onDone(function(){return n(i&&h(i,"done",t))});break;case"destroy":t.onDestroy(function(){return n(i&&h(i,"destroy",t))})}}function h(t,e,i){var n=i.totalTime,r=d(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),o=t._data;return null!=o&&(r._data=o),r}function d(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:t,triggerName:e,fromState:i,toState:n,phaseName:r,totalTime:o,disabled:!!a}}function f(t,e,i){var n;return t instanceof Map?(n=t.get(e))||t.set(e,n=i):(n=t[e])||(n=t[e]=i),n}function p(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var g=function(t,e){return!1},m=function(t,e){return!1},v=function(t,e,i){return[]},y=s();(y||"undefined"!=typeof Element)&&(g=a()?function(t,e){for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:function(t,e){return t.contains(e)},m=function(){if(y||Element.prototype.matches)return function(t,e){return t.matches(e)};var t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?function(t,i){return e.apply(t,[i])}:m}(),v=function(t,e,i){var n=[];if(i)for(var r=t.querySelectorAll(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach(function(i){e[i]=t[i]}),e}function P(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e)for(var n in t)i[n]=t[n];else O(t,i);return i}function D(t,e,i){return i?e+":"+i+";":""}function M(t){for(var e="",i=0;i *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,i);if("function"==typeof n)return void e.push(n);t=n}var r=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return i.push('The provided transition expression "'.concat(t,'" is not supported')),e;var o=r[1],a=r[2],s=r[3];e.push(Q(o,s)),"<"!=a[0]||"*"==o&&"*"==s||e.push(Q(s,o))}(t,r,n)}):r.push(i),r),animation:o,queryCount:e.queryCount,depCount:e.depCount,options:it(t.options)}}},{key:"visitSequence",value:function(t,e){var i=this;return{type:2,steps:t.steps.map(function(t){return Y(i,t,e)}),options:it(t.options)}}},{key:"visitGroup",value:function(t,e){var i=this,n=e.currentTime,r=0,o=t.steps.map(function(t){e.currentTime=n;var o=Y(i,t,e);return r=Math.max(r,e.currentTime),o});return e.currentTime=r,{type:3,steps:o,options:it(t.options)}}},{key:"visitAnimate",value:function(t,e){var i,n=function(t,e){var i=null;if(t.hasOwnProperty("duration"))i=t;else if("number"==typeof t)return nt(x(t,e).duration,0,"");var n=t;if(n.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var r=nt(0,0,"");return r.dynamic=!0,r.strValue=n,r}return nt((i=i||x(n,e)).duration,i.delay,i.easing)}(t.timings,e.errors);e.currentAnimateTimings=n;var r=t.styles?t.styles:(0,o.oB)({});if(5==r.type)i=this.visitKeyframes(r,e);else{var a=t.styles,s=!1;if(!a){s=!0;var c={};n.easing&&(c.easing=n.easing),a=(0,o.oB)(c)}e.currentTime+=n.duration+n.delay;var u=this.visitStyle(a,e);u.isEmptyStep=s,i=u}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}},{key:"visitStyle",value:function(t,e){var i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}},{key:"_makeStyleAst",value:function(t,e){var i=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==o.l3?i.push(t):e.errors.push("The provided style string value ".concat(t," is not allowed.")):i.push(t)}):i.push(t.styles);var n=!1,r=null;return i.forEach(function(t){if(et(t)){var e=t,i=e.easing;if(i&&(r=i,delete e.easing),!n)for(var o in e)if(e[o].toString().indexOf("{{")>=0){n=!0;break}}}),{type:6,styles:i,easing:r,offset:t.offset,containsDynamicStyles:n,options:null}}},{key:"_validateStyleAst",value:function(t,e){var i=this,n=e.currentAnimateTimings,r=e.currentTime,o=e.currentTime;n&&o>0&&(o-=n.duration+n.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(n){if(i._driver.validateStyleProperty(n)){var a,s,c,u,l,h=e.collectedStyles[e.currentQuerySelector],d=h[n],f=!0;d&&(o!=r&&o>=d.startTime&&r<=d.endTime&&(e.errors.push('The CSS property "'.concat(n,'" that exists between the times of "').concat(d.startTime,'ms" and "').concat(d.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(r,'ms"')),f=!1),o=d.startTime),f&&(h[n]={startTime:o,endTime:r}),e.options&&(a=t[n],s=e.options,c=e.errors,u=s.params||{},(l=B(a)).length&&l.forEach(function(t){u.hasOwnProperty(t)||c.push("Unable to resolve the local animation param ".concat(t," in the given list of values"))}))}else e.errors.push('The provided animation property "'.concat(n,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(t,e){var i=this,n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;var r=0,o=[],a=!1,s=!1,c=0,u=t.steps.map(function(t){var n=i._makeStyleAst(t,e),u=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach(function(t){if(et(t)&&t.hasOwnProperty("offset")){var i=t;e=parseFloat(i.offset),delete i.offset}});else if(et(t)&&t.hasOwnProperty("offset")){var i=t;e=parseFloat(i.offset),delete i.offset}return e}(n.styles),l=0;return null!=u&&(r++,l=n.offset=u),s=s||l<0||l>1,a=a||l0&&r0?r==d?1:h*r:o[r],s=a*g;e.currentTime=f+p.delay+s,p.duration=s,i._validateStyleAst(t,e),t.offset=a,n.styles.push(t)}),n}},{key:"visitReference",value:function(t,e){return{type:8,animation:Y(this,z(t.animation),e),options:it(t.options)}}},{key:"visitAnimateChild",value:function(t,e){return e.depCount++,{type:9,options:it(t.options)}}},{key:"visitAnimateRef",value:function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:it(t.options)}}},{key:"visitQuery",value:function(t,e){var i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;var r=_slicedToArray(function(t){var e=!!t.split(/\s*,\s*/).find(function(t){return":self"==t});return e&&(t=t.replace(W,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(t){return".ng-trigger-"+t.substr(1)}).replace(/:animating/g,".ng-animating"),e]}(t.selector),2),o=r[0],a=r[1];e.currentQuerySelector=i.length?i+" "+o:o,f(e.collectedStyles,e.currentQuerySelector,{});var s=Y(this,z(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:n.limit||0,optional:!!n.optional,includeSelf:a,animation:s,originalSelector:t.selector,options:it(t.options)}}},{key:"visitStagger",value:function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var i="full"===t.timings?{duration:0,delay:0,easing:"full"}:x(t.timings,e.errors,!0);return{type:12,animation:Y(this,z(t.animation),e),timings:i,options:null}}}]),t}(),tt=function t(e){_classCallCheck(this,t),this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function et(t){return!Array.isArray(t)&&"object"==typeof t}function it(t){var e;return t?(t=O(t)).params&&(t.params=(e=t.params)?O(e):null):t={},t}function nt(t,e,i){return{duration:t,delay:e,easing:i}}function rt(t,e,i,n,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var ot=function(){function t(){_classCallCheck(this,t),this._map=new Map}return _createClass(t,[{key:"consume",value:function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e}},{key:"append",value:function(t,e){var i,n=this._map.get(t);n||this._map.set(t,n=[]),(i=n).push.apply(i,_toConsumableArray(e))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),t}(),at=new RegExp(":enter","g"),st=new RegExp(":leave","g");function ct(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,c=arguments.length>8?arguments[8]:void 0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new ut).buildKeyframes(t,e,i,n,r,o,a,s,c,u)}var ut=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"buildKeyframes",value:function(t,e,i,n,r,o,a,s,c){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];c=c||new ot;var l=new ht(t,e,c,n,r,u,[]);l.options=s,l.currentTimeline.setStyles([o],null,l.errors,s),Y(this,i,l);var h=l.timelines.filter(function(t){return t.containsAnimation()});if(h.length&&Object.keys(a).length){var d=h[h.length-1];d.allowOnlyTimelineStyles()||d.setStyles([a],null,l.errors,s)}return h.length?h.map(function(t){return t.buildKeyframes()}):[rt(e,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,e){}},{key:"visitState",value:function(t,e){}},{key:"visitTransition",value:function(t,e){}},{key:"visitAnimateChild",value:function(t,e){var i=e.subInstructions.consume(e.element);if(i){var n=e.createSubContext(t.options),r=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,n,n.options);r!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}},{key:"visitAnimateRef",value:function(t,e){var i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}},{key:"_visitSubInstructions",value:function(t,e,i){var n=e.currentTimeline.currentTime,r=null!=i.duration?I(i.duration):null,o=null!=i.delay?I(i.delay):null;return 0!==r&&t.forEach(function(t){var i=e.appendInstructionToTimeline(t,r,o);n=Math.max(n,i.duration+i.delay)}),n}},{key:"visitReference",value:function(t,e){e.updateOptions(t.options,!0),Y(this,t.animation,e),e.previousNode=t}},{key:"visitSequence",value:function(t,e){var i=this,n=e.subContextCount,r=e,o=t.options;if(o&&(o.params||o.delay)&&((r=e.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=lt);var a=I(o.delay);r.delayNextStep(a)}t.steps.length&&(t.steps.forEach(function(t){return Y(i,t,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),e.previousNode=t}},{key:"visitGroup",value:function(t,e){var i=this,n=[],r=e.currentTimeline.currentTime,o=t.options&&t.options.delay?I(t.options.delay):0;t.steps.forEach(function(a){var s=e.createSubContext(t.options);o&&s.delayNextStep(o),Y(i,a,s),r=Math.max(r,s.currentTimeline.currentTime),n.push(s.currentTimeline)}),n.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(r),e.previousNode=t}},{key:"_visitTiming",value:function(t,e){if(t.dynamic){var i=t.strValue;return x(e.params?F(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,e){var i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());var r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}},{key:"visitStyle",value:function(t,e){var i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();var r=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(r):i.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}},{key:"visitKeyframes",value:function(t,e){var i=e.currentAnimateTimings,n=e.currentTimeline.duration,r=i.duration,o=e.createSubContext().currentTimeline;o.easing=i.easing,t.styles.forEach(function(t){o.forwardTime((t.offset||0)*r),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(n+r),e.previousNode=t}},{key:"visitQuery",value:function(t,e){var i=this,n=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?I(r.delay):0;o&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=lt);var a=n,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;var c=null;s.forEach(function(n,r){e.currentQueryIndex=r;var s=e.createSubContext(t.options,n);o&&s.delayNextStep(o),n===e.element&&(c=s.currentTimeline),Y(i,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}},{key:"visitStagger",value:function(t,e){var i=e.parentContext,n=e.currentTimeline,r=t.timings,o=Math.abs(r.duration),a=o*(e.currentQueryTotal-1),s=o*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=i.currentStaggerTime}var c=e.currentTimeline;s&&c.delayNextStep(s);var u=c.currentTime;Y(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-u+(n.startTime-i.currentTimeline.startTime)}}]),t}(),lt={},ht=function(){function t(e,i,n,r,o,a,s,c){_classCallCheck(this,t),this._driver=e,this.element=i,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=lt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new dt(this._driver,i,0),s.push(this.currentTimeline)}return _createClass(t,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(t,e){var i=this;if(t){var n=t,r=this.options;null!=n.duration&&(r.duration=I(n.duration)),null!=n.delay&&(r.delay=I(n.delay));var o=n.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(t){e&&a.hasOwnProperty(t)||(a[t]=F(o[t],a,i.errors))})}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var e=this.options.params;if(e){var i=t.params={};Object.keys(e).forEach(function(t){i[t]=e[t]})}}return t}},{key:"createSubContext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=i||this.element,o=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=lt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,e,i){var n={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},r=new ft(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(r),n}},{key:"incrementTime",value:function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}},{key:"delayNextStep",value:function(t){t>0&&this.currentTimeline.delayNextStep(t)}},{key:"invokeQuery",value:function(t,e,i,n,r,o){var a=[];if(n&&a.push(this.element),t.length>0){t=(t=t.replace(at,"."+this._enterClassName)).replace(st,"."+this._leaveClassName);var s=this._driver.query(this.element,t,1!=i);0!==i&&(s=i<0?s.slice(s.length+i,s.length):s.slice(0,i)),a.push.apply(a,_toConsumableArray(s))}return r||0!=a.length||o.push('`query("'.concat(e,'")` returned zero elements. (Use `query("').concat(e,'", { optional: true })` if you wish to allow this.)')),a}}]),t}(),dt=function(){function t(e,i,n,r){_classCallCheck(this,t),this._driver=e,this.element=i,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,this._localTimelineStyles)),this._loadKeyframe()}return _createClass(t,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}},{key:"fork",value:function(e,i){return this.applyStylesToKeyframe(),new t(this._driver,e,i||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}},{key:"_updateStyle",value:function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){e._backFill[t]=e._globalTimelineStyles[t]||o.l3,e._currentKeyframe[t]=o.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,e,i,n){var r=this;e&&(this._previousKeyframe.easing=e);var a=n&&n.params||{},s=function(t,e){var i,n={};return t.forEach(function(t){"*"===t?(i=i||Object.keys(e)).forEach(function(t){n[t]=o.l3}):P(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(s).forEach(function(t){var e=F(s[t],a,i);r._pendingStyles[t]=e,r._localTimelineStyles.hasOwnProperty(t)||(r._backFill[t]=r._globalTimelineStyles.hasOwnProperty(t)?r._globalTimelineStyles[t]:o.l3),r._updateStyle(t,e)})}},{key:"applyStylesToKeyframe",value:function(){var t=this,e=this._pendingStyles,i=Object.keys(e);0!=i.length&&(this._pendingStyles={},i.forEach(function(i){t._currentKeyframe[i]=e[i]}),Object.keys(this._localTimelineStyles).forEach(function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])}))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var i=t._localTimelineStyles[e];t._pendingStyles[e]=i,t._updateStyle(e,i)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t}},{key:"mergeTimelineCollectedStyles",value:function(t){var e=this;Object.keys(t._styleSummary).forEach(function(i){var n=e._styleSummary[i],r=t._styleSummary[i];(!n||r.time>n.time)&&e._updateStyle(i,r.value)})}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var e=new Set,i=new Set,n=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(a,s){var c=P(a,!0);Object.keys(c).forEach(function(t){var n=c[t];n==o.k1?e.add(t):n==o.l3&&i.add(t)}),n||(c.offset=s/t.duration),r.push(c)});var a=e.size?H(e.values()):[],s=i.size?H(i.values()):[];if(n){var c=r[0],u=O(c);c.offset=0,u.offset=1,r=[c,u]}return rt(this.element,r,a,s,this.duration,this.startTime,this.easing,!1)}}]),t}(),ft=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,a,s){var c,u=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return _classCallCheck(this,i),(c=e.call(this,t,n,s.delay)).element=n,c.keyframes=r,c.preStyleProps=o,c.postStyleProps=a,c._stretchStartingKeyframe=u,c.timings={duration:s.duration,delay:s.delay,easing:s.easing},c}return _createClass(i,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var t=this.keyframes,e=this.timings,i=e.delay,n=e.duration,r=e.easing;if(this._stretchStartingKeyframe&&i){var o=[],a=n+i,s=i/a,c=P(t[0],!1);c.offset=0,o.push(c);var u=P(t[0],!1);u.offset=pt(s),o.push(u);for(var l=t.length-1,h=1;h<=l;h++){var d=P(t[h],!1);d.offset=pt((i+d.offset*n)/a),o.push(d)}n=a,i=0,r="",t=o}return rt(this.element,t,this.preStyleProps,this.postStyleProps,n,i,r,!0)}}]),i}(dt);function pt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,i=Math.pow(10,e-1);return Math.round(t*i)/i}var gt,mt,vt=function t(){_classCallCheck(this,t)},yt=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"normalizePropertyName",value:function(t,e){return q(t)}},{key:"normalizeStyleValue",value:function(t,e,i,n){var r="",o=i.toString().trim();if(_t[e]&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{var a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&n.push("Please provide a CSS unit value for ".concat(t,":").concat(i))}return o+r}}]),i}(vt),_t=(gt="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".split(","),mt={},gt.forEach(function(t){return mt[t]=!0}),mt);function bt(t,e,i,n,r,o,a,s,c,u,l,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:i,fromStyles:o,toState:n,toStyles:a,timelines:s,queriedElements:c,preStyleProps:u,postStyleProps:l,totalTime:h,errors:d}}var wt={},At=function(){function t(e,i,n){_classCallCheck(this,t),this._triggerName=e,this.ast=i,this._stateStyles=n}return _createClass(t,[{key:"match",value:function(t,e,i,n){return function(t,e,i,n,r){return t.some(function(t){return t(e,i,n,r)})}(this.ast.matchers,t,e,i,n)}},{key:"buildStyles",value:function(t,e,i){var n=this._stateStyles["*"],r=this._stateStyles[t],o=n?n.buildStyles(e,i):{};return r?r.buildStyles(e,i):o}},{key:"build",value:function(t,e,i,n,r,o,a,s,c,u){var l=[],h=this.ast.options&&this.ast.options.params||wt,d=this.buildStyles(i,a&&a.params||wt,l),p=s&&s.params||wt,g=this.buildStyles(n,p,l),m=new Set,v=new Map,y=new Map,_="void"===n,b={params:Object.assign(Object.assign({},h),p)},w=u?[]:ct(t,e,this.ast.animation,r,o,d,g,b,c,l),A=0;if(w.forEach(function(t){A=Math.max(t.duration+t.delay,A)}),l.length)return bt(e,this._triggerName,i,n,_,d,g,[],[],v,y,A,l);w.forEach(function(t){var i=t.element,n=f(v,i,{});t.preStyleProps.forEach(function(t){return n[t]=!0});var r=f(y,i,{});t.postStyleProps.forEach(function(t){return r[t]=!0}),i!==e&&m.add(i)});var k=H(m.values());return bt(e,this._triggerName,i,n,_,d,g,w,k,v,y,A)}}]),t}(),kt=function(){function t(e,i){_classCallCheck(this,t),this.styles=e,this.defaultParams=i}return _createClass(t,[{key:"buildStyles",value:function(t,e){var i={},n=O(this.defaultParams);return Object.keys(t).forEach(function(e){var i=t[e];null!=i&&(n[e]=i)}),this.styles.styles.forEach(function(t){if("string"!=typeof t){var r=t;Object.keys(r).forEach(function(t){var o=r[t];o.length>1&&(o=F(o,n,e)),i[t]=o})}}),i}}]),t}(),Ct=function(){function t(e,i){var n=this;_classCallCheck(this,t),this.name=e,this.ast=i,this.transitionFactories=[],this.states={},i.states.forEach(function(t){n.states[t.name]=new kt(t.style,t.options&&t.options.params||{})}),Tt(this.states,"true","1"),Tt(this.states,"false","0"),i.transitions.forEach(function(t){n.transitionFactories.push(new At(e,t,n.states))}),this.fallbackTransition=new At(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return _createClass(t,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(t,e,i,n){return this.transitionFactories.find(function(r){return r.match(t,e,i,n)})||null}},{key:"matchStyles",value:function(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}]),t}();function Tt(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}var Et=new ot,St=function(){function t(e,i,n){_classCallCheck(this,t),this.bodyNode=e,this._driver=i,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return _createClass(t,[{key:"register",value:function(t,e){var i=[],n=X(this._driver,e,i);if(i.length)throw new Error("Unable to build the animation due to the following errors: ".concat(i.join("\n")));this._animations[t]=n}},{key:"_buildPlayer",value:function(t,e,i){var n=t.element,r=u(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(n,r,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,e){var i,n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=[],s=this._animations[t],u=new Map;if(s?(i=ct(this._driver,e,s,"ng-enter","ng-leave",{},{},r,Et,a)).forEach(function(t){var e=f(u,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=null})}):(a.push("The requested animation doesn't exist or has already been destroyed"),i=[]),a.length)throw new Error("Unable to create the animation due to the following errors: ".concat(a.join("\n")));u.forEach(function(t,e){Object.keys(t).forEach(function(i){t[i]=n._driver.computeStyle(e,i,o.l3)})});var l=c(i.map(function(t){var e=u.get(t.element);return n._buildPlayer(t,{},e)}));return this._playersById[t]=l,l.onDestroy(function(){return n.destroy(t)}),this.players.push(l),l}},{key:"destroy",value:function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}},{key:"_getPlayer",value:function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by ".concat(t));return e}},{key:"listen",value:function(t,e,i,n){var r=d(e,"","","");return l(this._getPlayer(t),i,r,n),function(){}}},{key:"command",value:function(t,e,i,n){if("register"!=i)if("create"!=i){var r=this._getPlayer(t);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,n[0]||{});else this.register(t,n[0])}}]),t}(),It=[],Rt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},xt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ot=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";_classCallCheck(this,t),this.namespaceId=i;var n,r=e&&e.hasOwnProperty("value");if(this.value=null!=(n=r?e.value:e)?n:null,r){var o=O(e);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return _createClass(t,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(t){var e=t.params;if(e){var i=this.options.params;Object.keys(e).forEach(function(t){null==i[t]&&(i[t]=e[t])})}}}]),t}(),Pt=new Ot("void"),Dt=function(){function t(e,i,n){_classCallCheck(this,t),this.id=e,this.hostElement=i,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Ft(i,this._hostClassName)}return _createClass(t,[{key:"listen",value:function(t,e,i,n){var r,o=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'.concat(i,'" because the animation trigger "').concat(e,"\" doesn't exist!"));if(null==i||0==i.length)throw new Error('Unable to listen on the animation trigger "'.concat(e,'" because the provided event is undefined!'));if("start"!=(r=i)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(i,'" for the animation trigger "').concat(e,'" is not supported!'));var a=f(this._elementListeners,t,[]),s={name:e,phase:i,callback:n};a.push(s);var c=f(this._engine.statesByElement,t,{});return c.hasOwnProperty(e)||(Ft(t,"ng-trigger"),Ft(t,"ng-trigger-"+e),c[e]=Pt),function(){o._engine.afterFlush(function(){var t=a.indexOf(s);t>=0&&a.splice(t,1),o._triggers[e]||delete c[e]})}}},{key:"register",value:function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}},{key:"_getTrigger",value:function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'.concat(t,'" has not been registered!'));return e}},{key:"trigger",value:function(t,e,i){var n=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(e),a=new Lt(this.id,e,t),s=this._engine.statesByElement.get(t);s||(Ft(t,"ng-trigger"),Ft(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var c=s[e],u=new Ot(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&c&&u.absorbOptions(c.options),s[e]=u,c||(c=Pt),"void"===u.value||c.value!==u.value){var l=f(this._engine.playersByElement,t,[]);l.forEach(function(t){t.namespaceId==n.id&&t.triggerName==e&&t.queued&&t.destroy()});var h=o.matchTransition(c.value,u.value,t,u.params),d=!1;if(!h){if(!r)return;h=o.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:c,toState:u,player:a,isFallbackTransition:d}),d||(Ft(t,"ng-animate-queued"),a.onStart(function(){Ht(t,"ng-animate-queued")})),a.onDone(function(){var e=n.players.indexOf(a);e>=0&&n.players.splice(e,1);var i=n._engine.playersByElement.get(t);if(i){var r=i.indexOf(a);r>=0&&i.splice(r,1)}}),this.players.push(a),l.push(a),a}if(!function(t,e){var i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(var r=0;r=0){for(var n=!1,r=i;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),n=!0;break}n||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}},{key:"register",value:function(t,e){var i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}},{key:"registerTrigger",value:function(t,e,i){var n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}},{key:"destroy",value:function(t,e){var i=this;if(t){var n=this._fetchNamespace(t);this.afterFlush(function(){i.namespacesByHostElement.delete(n.hostElement),delete i._namespaceLookup[t];var e=i._namespaceList.indexOf(n);e>=0&&i._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return n.destroy(e)})}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var e=new Set,i=this.statesByElement.get(t);if(i)for(var n=Object.keys(i),r=0;r=0&&this.collectedLeaveElements.splice(o,1)}if(t){var a=this._fetchNamespace(t);a&&a.insertNode(e,i)}n&&this.collectEnterElement(e)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Ft(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Ht(t,"ng-animate-disabled"))}},{key:"removeNode",value:function(t,e,i,n){if(Nt(e)){var r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n),i){var o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,n)}}else this._onRemovalComplete(e,n)}},{key:"markElementAsRemoved",value:function(t,e,i,n){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}},{key:"listen",value:function(t,e,i,n,r){return Nt(e)?this._fetchNamespace(t).listen(e,i,n,r):function(){}}},{key:"_buildInstruction",value:function(t,e,i,n,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,r)}},{key:"destroyInnerAnimations",value:function(t){var e=this,i=this.driver.query(t,".ng-trigger",!0);i.forEach(function(t){return e.destroyActiveAnimationsForElement(t)}),0!=this.playersByQueriedElement.size&&(i=this.driver.query(t,".ng-animating",!0)).forEach(function(t){return e.finishActiveQueriedAnimationOnElement(t)})}},{key:"destroyActiveAnimationsForElement",value:function(t){var e=this.playersByElement.get(t);e&&e.forEach(function(t){t.queued?t.markedForDestroy=!0:t.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach(function(t){return t.finish()})}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise(function(e){if(t.players.length)return c(t.players).onDone(function(){return e()});e()})}},{key:"processLeaveNode",value:function(t){var e=this,i=t.__ng_removed;if(i&&i.setForRemoval){if(t.__ng_removed=Rt,i.namespaceId){this.destroyInnerAnimations(t);var n=this._fetchNamespace(i.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,i.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(function(t){e.markElementAsDisabled(t,!1)})}},{key:"flush",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,i=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(e,i){return t._balanceNamespaceList(e,i)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var n=0;n=0;R--)this._namespaceList[R].drainQueuedTransitions(e).forEach(function(t){var e=t.player,o=t.element;if(S.push(e),i.collectedEnterElements.length){var a=o.__ng_removed;if(a&&a.setForMove)return void e.destroy()}var c=!p||!i.driver.containsElement(p,o),d=T.get(o),g=v.get(o),m=i._buildInstruction(t,n,g,d,c);if(m.errors&&m.errors.length)I.push(m);else{if(c)return e.onStart(function(){return N(o,m.fromStyles)}),e.onDestroy(function(){return L(o,m.toStyles)}),void r.push(e);if(t.isFallbackTransition)return e.onStart(function(){return N(o,m.fromStyles)}),e.onDestroy(function(){return L(o,m.toStyles)}),void r.push(e);m.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),n.append(o,m.timelines),s.push({instruction:m,player:e,element:o}),m.queriedElements.forEach(function(t){return f(u,t,[]).push(e)}),m.preStyleProps.forEach(function(t,e){var i=Object.keys(t);if(i.length){var n=l.get(e);n||l.set(e,n=new Set),i.forEach(function(t){return n.add(t)})}}),m.postStyleProps.forEach(function(t,e){var i=Object.keys(t),n=h.get(e);n||h.set(e,n=new Set),i.forEach(function(t){return n.add(t)})})}});if(I.length){var x=[];I.forEach(function(t){x.push("@".concat(t.triggerName," has failed due to:\n")),t.errors.forEach(function(t){return x.push("- ".concat(t,"\n"))})}),S.forEach(function(t){return t.destroy()}),this.reportError(x)}var O=new Map,P=new Map;s.forEach(function(t){var e=t.element;n.has(e)&&(P.set(e,e),i._beforeAnimationBuild(t.player.namespaceId,t.instruction,O))}),r.forEach(function(t){var e=t.element;i._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){f(O,e,[]).push(t),t.destroy()})});var D=_.filter(function(t){return Gt(t,l,h)}),M=new Map;Zt(M,this.driver,w,h,o.l3).forEach(function(t){Gt(t,l,h)&&D.push(t)});var z=new Map;m.forEach(function(t,e){Zt(z,i.driver,new Set(t),l,o.k1)}),D.forEach(function(t){var e=M.get(t),i=z.get(t);M.set(t,Object.assign(Object.assign({},e),i))});var Z=[],B=[],F={};s.forEach(function(t){var e=t.element,o=t.player,s=t.instruction;if(n.has(e)){if(d.has(e))return o.onDestroy(function(){return L(e,s.toStyles)}),o.disabled=!0,o.overrideTotalTime(s.totalTime),void r.push(o);var u=F;if(P.size>1){for(var l=e,h=[];l=l.parentNode;){var f=P.get(l);if(f){u=f;break}h.push(l)}h.forEach(function(t){return P.set(t,u)})}var p=i._buildAnimation(o.namespaceId,s,O,a,z,M);if(o.setRealPlayer(p),u===F)Z.push(o);else{var g=i.playersByElement.get(u);g&&g.length&&(o.parentPlayer=c(g)),r.push(o)}}else N(e,s.fromStyles),o.onDestroy(function(){return L(e,s.toStyles)}),B.push(o),d.has(e)&&r.push(o)}),B.forEach(function(t){var e=a.get(t.element);if(e&&e.length){var i=c(e);t.setRealPlayer(i)}}),r.forEach(function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(var H=0;H<_.length;H++){var U=_[H],q=U.__ng_removed;if(Ht(U,"ng-leave"),!q||!q.hasAnimation){var G=[];if(u.size){var j=u.get(U);j&&j.length&&G.push.apply(G,_toConsumableArray(j));for(var Y=this.driver.query(U,".ng-animating",!0),K=0;K0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new o.ZN(t.duration,t.delay)}}]),t}(),Lt=function(){function t(e,i,n){_classCallCheck(this,t),this.namespaceId=e,this.triggerName=i,this.element=n,this._player=new o.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return _createClass(t,[{key:"setRealPlayer",value:function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(i){e._queuedCallbacks[i].forEach(function(e){return l(t,i,void 0,e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(t){this.totalTime=t}},{key:"syncPlayerEvents",value:function(t){var e=this,i=this._player;i.triggerCallback&&t.onStart(function(){return i.triggerCallback("start")}),t.onDone(function(){return e.finish()}),t.onDestroy(function(){return e.destroy()})}},{key:"_queueEvent",value:function(t,e){f(this._queuedCallbacks,t,[]).push(e)}},{key:"onDone",value:function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}},{key:"onStart",value:function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}},{key:"onDestroy",value:function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(t){this.queued||this._player.setPosition(t)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)}}]),t}();function Nt(t){return t&&1===t.nodeType}function zt(t,e){var i=t.style.display;return t.style.display=null!=e?e:"none",i}function Zt(t,e,i,n,r){var o=[];i.forEach(function(t){return o.push(zt(t))});var a=[];n.forEach(function(i,n){var o={};i.forEach(function(t){var i=o[t]=e.computeStyle(n,t,r);i&&0!=i.length||(n.__ng_removed=xt,a.push(n))}),t.set(n,o)});var s=0;return i.forEach(function(t){return zt(t,o[s++])}),a}function Bt(t,e){var i=new Map;if(t.forEach(function(t){return i.set(t,[])}),0==e.length)return i;var n=new Set(e),r=new Map;function o(t){if(!t)return 1;var e=r.get(t);if(e)return e;var a=t.parentNode;return e=i.has(a)?a:n.has(a)?1:o(a),r.set(t,e),e}return e.forEach(function(t){var e=o(t);1!==e&&i.get(e).push(t)}),i}function Ft(t,e){if(t.classList)t.classList.add(e);else{var i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function Ht(t,e){if(t.classList)t.classList.remove(e);else{var i=t.$$classes;i&&delete i[e]}}function Ut(t,e,i){c(i).onDone(function(){return t.processLeaveNode(e)})}function qt(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),t}();function Yt(t,e){var i=null,n=null;return Array.isArray(e)&&e.length?(i=Vt(e[0]),e.length>1&&(n=Vt(e[e.length-1]))):e&&(i=Vt(e)),i||n?new Kt(t,i,n):null}var Kt=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;var r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}return _createClass(t,[{key:"start",value:function(){this._state<1&&(this._startStyles&&L(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(L(this._element,this._initialStyles),this._endStyles&&(L(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(N(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(N(this._element,this._endStyles),this._endStyles=null),L(this._element,this._initialStyles),this._state=3)}}]),t}();return t.initialStylesByElement=new WeakMap,t}();function Vt(t){for(var e=null,i=Object.keys(t),n=0;n=this._delay&&i>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),te(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var t,e,i,n;this._destroyed||(this._destroyed=!0,this.finish(),t=this._element,e=this._name,i=ie(t,"").split(","),(n=$t(i,e))>=0&&(i.splice(n,1),ee(t,"",i.join(","))))}}]),t}();function Wt(t,e,i){ee(t,"PlayState",i,Xt(t,e))}function Xt(t,e){var i=ie(t,"");return i.indexOf(",")>0?$t(i.split(","),e):$t([i],e)}function $t(t,e){for(var i=0;i=0)return i;return-1}function te(t,e,i){i?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function ee(t,e,i,n){var r="animation"+e;if(null!=n){var o=t.style[r];if(o.length){var a=o.split(",");a[n]=i,i=a.join(",")}}t.style[r]=i}function ie(t,e){return t.style["animation"+e]||""}var ne=function(){function t(e,i,n,r,o,a,s,c){_classCallCheck(this,t),this.element=e,this.keyframes=i,this.animationName=n,this._duration=r,this._delay=o,this._finalStyles=s,this._specialStyles=c,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=r+o,this._buildStyler()}return _createClass(t,[{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(t){this._styler.setPosition(t)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var t=this;this._styler=new Qt(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return t.finish()})}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}},{key:"beforeDestroy",value:function(){var t=this;this.init();var e={};if(this.hasStarted()){var i=this._state>=3;Object.keys(this._finalStyles).forEach(function(n){"offset"!=n&&(e[n]=i?t._finalStyles[n]:K(t.element,n))})}this.currentSnapshot=e}}]),t}(),re=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this)).element=t,r._startingStyles={},r.__initialized=!1,r._styles=T(n),r}return _createClass(i,[{key:"init",value:function(){var t=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(e){t._startingStyles[e]=t.element.style[e]}),_get(_getPrototypeOf(i.prototype),"init",this).call(this))}},{key:"play",value:function(){var t=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(e){return t.element.style.setProperty(e,t._styles[e])}),_get(_getPrototypeOf(i.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var t=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(e){var i=t._startingStyles[e];i?t.element.style.setProperty(e,i):t.element.style.removeProperty(e)}),this._startingStyles=null,_get(_getPrototypeOf(i.prototype),"destroy",this).call(this))}}]),i}(o.ZN),oe=function(){function t(){_classCallCheck(this,t),this._count=0}return _createClass(t,[{key:"validateStyleProperty",value:function(t){return w(t)}},{key:"matchesElement",value:function(t,e){return A(t,e)}},{key:"containsElement",value:function(t,e){return k(t,e)}},{key:"query",value:function(t,e,i){return C(t,e,i)}},{key:"computeStyle",value:function(t,e,i){return window.getComputedStyle(t)[e]}},{key:"buildKeyframeElement",value:function(t,e,i){i=i.map(function(t){return T(t)});var n="@keyframes ".concat(e," {\n"),r="";i.forEach(function(t){r=" ";var e=parseFloat(t.offset);n+="".concat(r).concat(100*e,"% {\n"),r+=" ",Object.keys(t).forEach(function(e){var i=t[e];switch(e){case"offset":return;case"easing":return void(i&&(n+="".concat(r,"animation-timing-function: ").concat(i,";\n")));default:return void(n+="".concat(r).concat(e,": ").concat(i,";\n"))}}),n+="".concat(r,"}\n")}),n+="}\n";var o=document.createElement("style");return o.textContent=n,o}},{key:"animate",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=o.filter(function(t){return t instanceof ne}),s={};G(i,n)&&a.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return s[t]=e[t]})});var c=function(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach(function(t){Object.keys(t).forEach(function(i){"offset"!=i&&"easing"!=i&&(e[i]=t[i])})}),e}(e=j(t,e,s));if(0==i)return new re(t,c);var u="gen_css_kf_"+this._count++,l=this.buildKeyframeElement(t,u,e);(function(t){var e,i=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&i instanceof ShadowRoot?i:document.head})(t).appendChild(l);var h=Yt(t,e),d=new ne(t,e,u,i,n,r,c,h);return d.onDestroy(function(){var t;(t=l).parentNode.removeChild(t)}),d}}]),t}(),ae=function(){function t(e,i,n,r){_classCallCheck(this,t),this.element=e,this.keyframes=i,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return _createClass(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",function(){return t._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(t,e,i){return t.animate(e,i)}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(i){"offset"!=i&&(e[i]=t._finished?t._finalKeyframe[i]:K(t.element,i))}),this.currentSnapshot=e}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}]),t}(),se=function(){function t(){_classCallCheck(this,t),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ce().toString()),this._cssKeyframesDriver=new oe}return _createClass(t,[{key:"validateStyleProperty",value:function(t){return w(t)}},{key:"matchesElement",value:function(t,e){return A(t,e)}},{key:"containsElement",value:function(t,e){return k(t,e)}},{key:"query",value:function(t,e,i){return C(t,e,i)}},{key:"computeStyle",value:function(t,e,i){return window.getComputedStyle(t)[e]}},{key:"overrideWebAnimationsSupport",value:function(t){this._isNativeImpl=t}},{key:"animate",value:function(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,r,o);var s={duration:i,delay:n,fill:0==n?"both":"forwards"};r&&(s.easing=r);var c={},u=o.filter(function(t){return t instanceof ae});G(i,n)&&u.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return c[t]=e[t]})});var l=Yt(t,e=j(t,e=e.map(function(t){return P(t,!1)}),c));return new ae(t,e,s,l)}}]),t}();function ce(){return a()&&Element.prototype.animate||{}}var ue=i(61511),le=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,r){var o;return _classCallCheck(this,i),(o=e.call(this))._nextAnimationId=0,o._renderer=t.createRenderer(r.body,{id:"0",encapsulation:n.ifc.None,styles:[],data:{animation:[]}}),o}return _createClass(i,[{key:"build",value:function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var i=Array.isArray(t)?(0,o.vP)(t):t;return fe(this._renderer,null,e,"register",[i]),new he(e,this._renderer)}}]),i}(o._j);return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.FYo),n.LFG(ue.K0))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t}(),he=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this))._id=t,r._renderer=n,r}return _createClass(i,[{key:"create",value:function(t,e){return new de(this._id,t,e||{},this._renderer)}}]),i}(o.LC),de=function(){function t(e,i,n,r){_classCallCheck(this,t),this.id=e,this.element=i,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return _createClass(t,[{key:"_listen",value:function(t,e){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),e)}},{key:"_command",value:function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n=0&&t3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,n)}},{key:"removeChild",value:function(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}},{key:"selectRootElement",value:function(t,e){return this.delegate.selectRootElement(t,e)}},{key:"parentNode",value:function(t){return this.delegate.parentNode(t)}},{key:"nextSibling",value:function(t){return this.delegate.nextSibling(t)}},{key:"setAttribute",value:function(t,e,i,n){this.delegate.setAttribute(t,e,i,n)}},{key:"removeAttribute",value:function(t,e,i){this.delegate.removeAttribute(t,e,i)}},{key:"addClass",value:function(t,e){this.delegate.addClass(t,e)}},{key:"removeClass",value:function(t,e){this.delegate.removeClass(t,e)}},{key:"setStyle",value:function(t,e,i,n){this.delegate.setStyle(t,e,i,n)}},{key:"removeStyle",value:function(t,e,i){this.delegate.removeStyle(t,e,i)}},{key:"setProperty",value:function(t,e,i){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}},{key:"setValue",value:function(t,e){this.delegate.setValue(t,e)}},{key:"listen",value:function(t,e,i){return this.delegate.listen(t,e,i)}},{key:"disableAnimations",value:function(t,e){this.engine.disableAnimations(t,e)}}]),t}(),me=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;return _classCallCheck(this,i),(a=e.call(this,n,r,o)).factory=t,a.namespaceId=n,a}return _createClass(i,[{key:"setProperty",value:function(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}},{key:"listen",value:function(t,e,i){var n,r,o=this;if("@"==e.charAt(0)){var a,s=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t),c=e.substr(1),u="";return"@"!=c.charAt(0)&&(r=(n=c).indexOf("."),c=(a=_slicedToArray([n.substring(0,r),n.substr(r+1)],2))[0],u=a[1]),this.engine.listen(this.namespaceId,s,c,u,function(t){o.factory.scheduleListenerCallback(t._data||-1,i,t)})}return this.delegate.listen(t,e,i)}}]),i}(ge),ve=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){return _classCallCheck(this,i),e.call(this,t.body,n,r)}return _createClass(i,[{key:"ngOnDestroy",value:function(){this.flush()}}]),i}(jt);return t.\u0275fac=function(e){return new(e||t)(n.LFG(ue.K0),n.LFG(S),n.LFG(vt))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t}(),ye=new n.OlP("AnimationModuleType"),_e=[{provide:o._j,useClass:le},{provide:vt,useFactory:function(){return new yt}},{provide:jt,useClass:ve},{provide:n.FYo,useFactory:function(t,e,i){return new pe(t,e,i)},deps:[r.se,jt,n.R0b]}],be=[{provide:S,useFactory:function(){return"function"==typeof ce()?new se:new oe}},{provide:ye,useValue:"BrowserAnimations"}].concat(_e),we=[{provide:S,useClass:E},{provide:ye,useValue:"NoopAnimations"}].concat(_e),Ae=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"withConfig",value:function(e){return{ngModule:t,providers:e.disableAnimations?we:be}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:be,imports:[r.b2]}),t}()},30269:function(t,e,i){"use strict";i.d(e,{b2:function(){return z},H7:function(){return P},Dx:function(){return B},q6:function(){return L},se:function(){return A}});var n,r=i(61511),o=i(31572),a=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"onAndCancel",value:function(t,e,i){return t.addEventListener(e,i,!1),function(){t.removeEventListener(e,i,!1)}}},{key:"dispatchEvent",value:function(t,e){t.dispatchEvent(e)}},{key:"remove",value:function(t){t.parentNode&&t.parentNode.removeChild(t)}},{key:"createElement",value:function(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(t){return t.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(t){return t instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}},{key:"getBaseHref",value:function(t){var e=(s=s||document.querySelector("base"))?s.getAttribute("href"):null;return null==e?null:function(t){(n=n||document.createElement("a")).setAttribute("href",t);var e=n.pathname;return"/"===e.charAt(0)?e:"/".concat(e)}(e)}},{key:"resetBaseElement",value:function(){s=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function(t){return(0,r.Mx)(document.cookie,t)}}],[{key:"makeCurrent",value:function(){(0,r.HT)(new i)}}]),i}(function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.apply(this,arguments)).supportsDOMEvents=!0,t}return i}(r.w_)),s=null,c=new o.OlP("TRANSITION_ID"),u=[{provide:o.ip1,useFactory:function(t,e,i){return function(){i.get(o.CZH).donePromise.then(function(){var i=(0,r.q)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(function(e){return e.getAttribute("ng-transition")===t}).forEach(function(t){return i.remove(t)})})}},deps:[c,r.K0,o.zs3],multi:!0}],l=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"addToWindow",value:function(t){o.dqk.getAngularTestability=function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t.findTestabilityInTree(e,i);if(null==n)throw new Error("Could not find testability for element.");return n},o.dqk.getAllAngularTestabilities=function(){return t.getAllTestabilities()},o.dqk.getAllAngularRootElements=function(){return t.getAllRootElements()},o.dqk.frameworkStabilizers||(o.dqk.frameworkStabilizers=[]),o.dqk.frameworkStabilizers.push(function(t){var e=o.dqk.getAllAngularTestabilities(),i=e.length,n=!1,r=function(e){n=n||e,0==--i&&t(n)};e.forEach(function(t){t.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(t,e,i){if(null==e)return null;var n=t.getTestability(e);return null!=n?n:i?(0,r.q)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}],[{key:"init",value:function(){(0,o.VLi)(new t)}}]),t}(),h=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"build",value:function(){return new XMLHttpRequest}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t}(),d=new o.OlP("EventManagerPlugins"),f=function(){var t=function(){function t(e,i){var n=this;_classCallCheck(this,t),this._zone=i,this._eventNameToPlugin=new Map,e.forEach(function(t){return t.manager=n}),this._plugins=e.slice().reverse()}return _createClass(t,[{key:"addEventListener",value:function(t,e,i){return this._findPluginFor(e).addEventListener(t,e,i)}},{key:"addGlobalEventListener",value:function(t,e,i){return this._findPluginFor(e).addGlobalEventListener(t,e,i)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var i=this._plugins,n=0;n-1&&(e.splice(i,1),o+=t+".")}),o+=r,0!=e.length||0===r.length)return null;var a={};return a.domEventName=n,a.fullKey=o,a}},{key:"getEventFullKey",value:function(t){var e="",i=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&R.hasOwnProperty(e)&&(e=R[e]))}return I[e]||e}(t);return" "===(i=i.toLowerCase())?i="space":"."===i&&(i="dot"),S.forEach(function(n){n!=i&&(0,x[n])(t)&&(e+=n+".")}),e+=i}},{key:"eventCallback",value:function(t,e,n){return function(r){i.getEventFullKey(r)===t&&n.runGuarded(function(){return e(r)})}}},{key:"_normalizeKey",value:function(t){switch(t){case"esc":return"escape";default:return t}}}]),i}(p);return t.\u0275fac=function(e){return new(e||t)(o.LFG(r.K0))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac}),t}(),P=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,o.Yz7)({factory:function(){return(0,o.LFG)(M)},token:t,providedIn:"root"}),t}();function D(t){return new M(t.get(r.K0))}var M=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this))._doc=t,n}return _createClass(i,[{key:"sanitize",value:function(t,e){if(null==e)return null;switch(t){case o.q3G.NONE:return e;case o.q3G.HTML:return(0,o.qzn)(e,"HTML")?(0,o.z3N)(e):(0,o.EiD)(this._doc,String(e)).toString();case o.q3G.STYLE:return(0,o.qzn)(e,"Style")?(0,o.z3N)(e):e;case o.q3G.SCRIPT:if((0,o.qzn)(e,"Script"))return(0,o.z3N)(e);throw new Error("unsafe value used in a script context");case o.q3G.URL:return(0,o.yhl)(e),(0,o.qzn)(e,"URL")?(0,o.z3N)(e):(0,o.mCW)(String(e));case o.q3G.RESOURCE_URL:if((0,o.qzn)(e,"ResourceURL"))return(0,o.z3N)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(t," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(t){return(0,o.JVY)(t)}},{key:"bypassSecurityTrustStyle",value:function(t){return(0,o.L6k)(t)}},{key:"bypassSecurityTrustScript",value:function(t){return(0,o.eBb)(t)}},{key:"bypassSecurityTrustUrl",value:function(t){return(0,o.LAX)(t)}},{key:"bypassSecurityTrustResourceUrl",value:function(t){return(0,o.pB0)(t)}}]),i}(P);return t.\u0275fac=function(e){return new(e||t)(o.LFG(r.K0))},t.\u0275prov=(0,o.Yz7)({factory:function(){return D((0,o.LFG)(o.gxx))},token:t,providedIn:"root"}),t}(),L=(0,o.eFA)(o._c5,"browser",[{provide:o.Lbi,useValue:r.bD},{provide:o.g9A,useValue:function(){a.makeCurrent(),l.init()},multi:!0},{provide:r.K0,useFactory:function(){return(0,o.RDi)(document),document},deps:[]}]),N=[[],{provide:o.zSh,useValue:"root"},{provide:o.qLn,useFactory:function(){return new o.qLn},deps:[]},{provide:d,useClass:E,multi:!0,deps:[r.K0,o.R0b,o.Lbi]},{provide:d,useClass:O,multi:!0,deps:[r.K0]},[],{provide:A,useClass:A,deps:[f,m,o.AFp]},{provide:o.FYo,useExisting:A},{provide:g,useExisting:m},{provide:m,useClass:m,deps:[r.K0]},{provide:o.dDg,useClass:o.dDg,deps:[o.R0b]},{provide:f,useClass:f,deps:[d,o.R0b]},{provide:r.JF,useClass:h,deps:[]},[]],z=function(){var t=function(){function t(e){if(_classCallCheck(this,t),e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return _createClass(t,null,[{key:"withServerTransition",value:function(e){return{ngModule:t,providers:[{provide:o.AFp,useValue:e.appId},{provide:c,useExisting:o.AFp},u]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.LFG(t,12))},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({providers:N,imports:[r.ez,o.hGG]}),t}();function Z(){return new B((0,o.LFG)(r.K0))}var B=function(){var t=function(){function t(e){_classCallCheck(this,t),this._doc=e}return _createClass(t,[{key:"getTitle",value:function(){return this._doc.title}},{key:"setTitle",value:function(t){this._doc.title=t||""}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.LFG(r.K0))},t.\u0275prov=(0,o.Yz7)({factory:Z,token:t,providedIn:"root"}),t}();"undefined"!=typeof window&&window},57629:function(t,e,i){"use strict";i.d(e,{gz:function(){return Yt},m2:function(){return U},OD:function(){return H},GZ:function(){return wi},wN:function(){return ii},F0:function(){return pi},rH:function(){return gi},yS:function(){return mi},Bz:function(){return Ii},lC:function(){return yi}});var n=i(61511),r=i(31572),o=i(19764),a=i(40878),s=i(78512),c=i(31305),u=i(48318),l=i(39665),h=i(47930),d=i(31450),f=i(70653),p=i(42875),g=i(55959),m=i(96673);function v(t,e){var i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new y(t,e,i))}}var y=function(){function t(e,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,t),this.accumulator=e,this.seed=i,this.hasSeed=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new _(t,this.accumulator,this.seed,this.hasSeed))}}]),t}(),_=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;return _classCallCheck(this,i),(a=e.call(this,t)).accumulator=n,a._seed=r,a.hasSeed=o,a.index=0,a}return _createClass(i,[{key:"seed",get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t}},{key:"_next",value:function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}},{key:"_tryNext",value:function(t){var e,i=this.index++;try{e=this.accumulator(this.seed,t,i)}catch(n){this.destination.error(n)}this.seed=e,this.destination.next(e)}}]),i}(m.L),b=i(43835),w=i(98402);function A(t){return function(e){return 0===t?(0,f.c)():e.lift(new k(t))}}var k=function(){function t(e){if(_classCallCheck(this,t),this.total=e,this.total<0)throw new w.W}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new C(t,this.total))}}]),t}(),C=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,t)).total=n,r.ring=new Array,r.count=0,r}return _createClass(i,[{key:"_next",value:function(t){var e=this.ring,i=this.total,n=this.count++;e.length0)for(var i=this.count>=this.total?this.total:this.count,n=this.ring,r=0;r2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _classCallCheck(this,i),(r=e.call(this,t,n)).navigationTrigger=o,r.restoredState=a,r}return _createClass(i,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),i}(F),U=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this,t,n)).urlAfterRedirects=r,o}return _createClass(i,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),i}(F),q=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this,t,n)).reason=r,o}return _createClass(i,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),i}(F),G=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this,t,n)).error=r,o}return _createClass(i,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),i}(F),j=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;return _classCallCheck(this,i),(a=e.call(this,t,n)).urlAfterRedirects=r,a.state=o,a}return _createClass(i,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(F),Y=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;return _classCallCheck(this,i),(a=e.call(this,t,n)).urlAfterRedirects=r,a.state=o,a}return _createClass(i,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(F),K=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,a){var s;return _classCallCheck(this,i),(s=e.call(this,t,n)).urlAfterRedirects=r,s.state=o,s.shouldActivate=a,s}return _createClass(i,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),i}(F),V=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;return _classCallCheck(this,i),(a=e.call(this,t,n)).urlAfterRedirects=r,a.state=o,a}return _createClass(i,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(F),J=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o){var a;return _classCallCheck(this,i),(a=e.call(this,t,n)).urlAfterRedirects=r,a.state=o,a}return _createClass(i,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(F),Q=function(){function t(e){_classCallCheck(this,t),this.route=e}return _createClass(t,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),t}(),W=function(){function t(e){_classCallCheck(this,t),this.route=e}return _createClass(t,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),t}(),X=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),$=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),tt=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),et=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),it=function(){function t(e,i,n){_classCallCheck(this,t),this.routerEvent=e,this.position=i,this.anchor=n}return _createClass(t,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),t}(),nt=function(){function t(e){_classCallCheck(this,t),this.params=e||{}}return _createClass(t,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null}},{key:"getAll",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),t}();function rt(t){return new nt(t)}function ot(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function at(t,e,i){var n=i.path.split("/");if(n.length>t.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.length0?t[t.length-1]:null}function ht(t,e){for(var i in t)t.hasOwnProperty(i)&&e(t[i],i)}function dt(t){return(0,r.CqO)(t)?t:(0,r.QGY)(t)?(0,o.D)(Promise.resolve(t)):(0,a.of)(t)}var ft={exact:function t(e,i,n){if(!At(e.segments,i.segments))return!1;if(!yt(e.segments,i.segments,n))return!1;if(e.numberOfChildren!==i.numberOfChildren)return!1;for(var r in i.children){if(!e.children[r])return!1;if(!t(e.children[r],i.children[r],n))return!1}return!0},subset:mt},pt={exact:function(t,e){return st(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(i){return ct(t[i],e[i])})},ignored:function(){return!0}};function gt(t,e,i){return ft[i.paths](t.root,e.root,i.matrixParams)&&pt[i.queryParams](t.queryParams,e.queryParams)&&!("exact"===i.fragment&&t.fragment!==e.fragment)}function mt(t,e,i){return vt(t,e,e.segments,i)}function vt(t,e,i,n){if(t.segments.length>i.length){var r=t.segments.slice(0,i.length);return!!At(r,i)&&!e.hasChildren()&&!!yt(r,i,n)}if(t.segments.length===i.length){if(!At(t.segments,i))return!1;if(!yt(t.segments,i,n))return!1;for(var o in e.children){if(!t.children[o])return!1;if(!mt(t.children[o],e.children[o],n))return!1}return!0}var a=i.slice(0,t.segments.length),s=i.slice(t.segments.length);return!!At(t.segments,a)&&!!yt(t.segments,a,n)&&!!t.children.primary&&vt(t.children.primary,e,s,n)}function yt(t,e,i){return e.every(function(e,n){return pt[i](t[n].parameters,e.parameters)})}var _t=function(){function t(e,i,n){_classCallCheck(this,t),this.root=e,this.queryParams=i,this.fragment=n}return _createClass(t,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=rt(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Tt.serialize(this)}}]),t}(),bt=function(){function t(e,i){var n=this;_classCallCheck(this,t),this.segments=e,this.children=i,this.parent=null,ht(i,function(t,e){return t.parent=n})}return _createClass(t,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return Et(this)}}]),t}(),wt=function(){function t(e,i){_classCallCheck(this,t),this.path=e,this.parameters=i}return _createClass(t,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=rt(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return Dt(this)}}]),t}();function At(t,e){return t.length===e.length&&t.every(function(t,i){return t.path===e[i].path})}var kt=function t(){_classCallCheck(this,t)},Ct=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"parse",value:function(t){var e=new Zt(t);return new _t(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}},{key:"serialize",value:function(t){var e,i,n;return"/".concat(St(t.root,!0)).concat((i=t.queryParams,n=Object.keys(i).map(function(t){var e=i[t];return Array.isArray(e)?e.map(function(e){return"".concat(Rt(t),"=").concat(Rt(e))}).join("&"):"".concat(Rt(t),"=").concat(Rt(e))}).filter(function(t){return!!t}),n.length?"?".concat(n.join("&")):"")).concat("string"==typeof t.fragment?"#".concat((e=t.fragment,encodeURI(e))):"")}}]),t}(),Tt=new Ct;function Et(t){return t.segments.map(function(t){return Dt(t)}).join("/")}function St(t,e){if(!t.hasChildren())return Et(t);if(e){var i=t.children.primary?St(t.children.primary,!1):"",n=[];return ht(t.children,function(t,e){"primary"!==e&&n.push("".concat(e,":").concat(St(t,!1)))}),n.length>0?"".concat(i,"(").concat(n.join("//"),")"):i}var r=function(t,e){var i=[];return ht(t.children,function(t,n){"primary"===n&&(i=i.concat(e(t,n)))}),ht(t.children,function(t,n){"primary"!==n&&(i=i.concat(e(t,n)))}),i}(t,function(e,i){return"primary"===i?[St(t.children.primary,!1)]:["".concat(i,":").concat(St(e,!1))]});return 1===Object.keys(t.children).length&&null!=t.children.primary?"".concat(Et(t),"/").concat(r[0]):"".concat(Et(t),"/(").concat(r.join("//"),")")}function It(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Rt(t){return It(t).replace(/%3B/gi,";")}function xt(t){return It(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ot(t){return decodeURIComponent(t)}function Pt(t){return Ot(t.replace(/\+/g,"%20"))}function Dt(t){return"".concat(xt(t.path)).concat((e=t.parameters,Object.keys(e).map(function(t){return";".concat(xt(t),"=").concat(xt(e[t]))}).join("")));var e}var Mt=/^[^\/()?;=#]+/;function Lt(t){var e=t.match(Mt);return e?e[0]:""}var Nt=/^[^=?&#]+/,zt=/^[^?&#]+/,Zt=function(){function t(e){_classCallCheck(this,t),this.url=e,this.remaining=e}return _createClass(t,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new bt([],{}):new bt([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new bt(t,e)),i}},{key:"parseSegment",value:function(){var t=Lt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new wt(Ot(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=Lt(this.remaining);if(e){this.capture(e);var i="";if(this.consumeOptional("=")){var n=Lt(this.remaining);n&&(i=n,this.capture(i))}t[Ot(e)]=Ot(i)}}},{key:"parseQueryParam",value:function(t){var e=function(t){var e=t.match(Nt);return e?e[0]:""}(this.remaining);if(e){this.capture(e);var i="";if(this.consumeOptional("=")){var n=function(t){var e=t.match(zt);return e?e[0]:""}(this.remaining);n&&(i=n,this.capture(i))}var r=Pt(e),o=Pt(i);if(t.hasOwnProperty(r)){var a=t[r];Array.isArray(a)||(a=[a],t[r]=a),a.push(o)}else t[r]=o}}},{key:"parseParens",value:function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var i=Lt(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;i.indexOf(":")>-1?(r=i.substr(0,i.indexOf(":")),this.capture(r),this.capture(":")):t&&(r="primary");var o=this.parseChildren();e[r]=1===Object.keys(o).length?o.primary:new bt([],o),this.consumeOptional("//")}return e}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),t}(),Bt=function(){function t(e){_classCallCheck(this,t),this._root=e}return _createClass(t,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}},{key:"children",value:function(t){var e=Ft(t,this._root);return e?e.children.map(function(t){return t.value}):[]}},{key:"firstChild",value:function(t){var e=Ft(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=Ht(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})}},{key:"pathFromRoot",value:function(t){return Ht(t,this._root).map(function(t){return t.value})}}]),t}();function Ft(t,e){if(t===e.value)return e;var i,n=_createForOfIteratorHelper(e.children);try{for(n.s();!(i=n.n()).done;){var r=Ft(t,i.value);if(r)return r}}catch(o){n.e(o)}finally{n.f()}return null}function Ht(t,e){if(t===e.value)return[e];var i,n=_createForOfIteratorHelper(e.children);try{for(n.s();!(i=n.n()).done;){var r=Ht(t,i.value);if(r.length)return r.unshift(e),r}}catch(o){n.e(o)}finally{n.f()}return[]}var Ut=function(){function t(e,i){_classCallCheck(this,t),this.value=e,this.children=i}return _createClass(t,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),t}();function qt(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var Gt=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,t)).snapshot=n,Qt(_assertThisInitialized(r),t),r}return _createClass(i,[{key:"toString",value:function(){return this.snapshot.toString()}}]),i}(Bt);function jt(t,e){var i=function(t,e){var i=new Vt([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Jt("",new Ut(i,[]))}(t,e),n=new s.X([new wt("",{})]),r=new s.X({}),o=new s.X({}),a=new s.X({}),c=new s.X(""),u=new Yt(n,r,a,c,o,"primary",e,i.root);return u.snapshot=i.root,new Gt(new Ut(u,[]),i)}var Yt=function(){function t(e,i,n,r,o,a,s,c){_classCallCheck(this,t),this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=c}return _createClass(t,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe((0,I.U)(function(t){return rt(t)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,I.U)(function(t){return rt(t)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),t}();function Kt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",i=t.pathFromRoot,n=0;if("always"!==e)for(n=i.length-1;n>=1;){var r=i[n],o=i[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(o.component)break;n--}}return function(t){return t.reduce(function(t,e){return{params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}},{params:{},data:{},resolve:{}})}(i.slice(n))}var Vt=function(){function t(e,i,n,r,o,a,s,c,u,l,h){_classCallCheck(this,t),this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=c,this._urlSegment=u,this._lastPathIndex=l,this._resolve=h}return _createClass(t,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=rt(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=rt(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(t){return t.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}}]),t}(),Jt=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,n)).url=t,Qt(_assertThisInitialized(r),n),r}return _createClass(i,[{key:"toString",value:function(){return Wt(this._root)}}]),i}(Bt);function Qt(t,e){e.value._routerState=t,e.children.forEach(function(e){return Qt(t,e)})}function Wt(t){var e=t.children.length>0?" { ".concat(t.children.map(Wt).join(", ")," } "):"";return"".concat(t.value).concat(e)}function Xt(t){if(t.snapshot){var e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,st(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),st(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(var i=0;i0&&ie(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(ne);if(r&&r!==lt(n))throw new Error("{outlets:{}} has to be the last command")}return _createClass(t,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),t}(),se=function t(e,i,n){_classCallCheck(this,t),this.segmentGroup=e,this.processChildren=i,this.index=n};function ce(t,e,i){if(t||(t=new bt([],{})),0===t.segments.length&&t.hasChildren())return ue(t,e,i);var n=function(t,e,i){for(var n=0,r=e,o={match:!1,pathIndex:0,commandIndex:0};r=i.length)return o;var a=t.segments[r],s=i[n];if(ne(s))break;var c="".concat(s),u=n0&&void 0===c)break;if(c&&u&&"object"==typeof u&&void 0===u.outlets){if(!fe(c,u,a))return o;n+=2}else{if(!fe(c,{},a))return o;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}(t,e,i),r=i.slice(n.commandIndex);if(n.match&&n.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",i=0;i0)?Object.assign({},Ie):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var r=(e.matcher||at)(i,t,e);if(!r)return Object.assign({},Ie);var o={};ht(r.posParams,function(t,e){o[e]=t.path});var a=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a,positionalParamSegments:null!==(n=r.posParams)&&void 0!==n?n:{}}}function xe(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(i.length>0&&function(t,e,i){return i.some(function(i){return Oe(t,e,i)&&"primary"!==Ee(i)})}(t,i,n)){var o=new bt(e,function(t,e,i,n){var r={};r.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;var o,a=_createForOfIteratorHelper(i);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&"primary"!==Ee(s)){var c=new bt([],{});c._sourceSegment=t,c._segmentIndexShift=e.length,r[Ee(s)]=c}}}catch(u){a.e(u)}finally{a.f()}return r}(t,e,n,new bt(i,t.children)));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some(function(i){return Oe(t,e,i)})}(t,i,n)){var a=new bt(t.segments,function(t,e,i,n,r,o){var a,s={},c=_createForOfIteratorHelper(n);try{for(c.s();!(a=c.n()).done;){var u=a.value;if(Oe(t,i,u)&&!r[Ee(u)]){var l=new bt([],{});l._sourceSegment=t,l._segmentIndexShift="legacy"===o?t.segments.length:e.length,s[Ee(u)]=l}}}catch(h){c.e(h)}finally{c.f()}return Object.assign(Object.assign({},r),s)}(t,e,i,n,t.children,r));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:i}}var s=new bt(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:i}}function Oe(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path}function Pe(t,e,i,n){return!!(Ee(t)===n||"primary"!==n&&Oe(e,i,t))&&("**"===t.path||Re(e,t,i).matched)}function De(t,e,i){return 0===e.length&&!t.children[i]}var Me=function t(e){_classCallCheck(this,t),this.segmentGroup=e||null},Le=function t(e){_classCallCheck(this,t),this.urlTree=e};function Ne(t){return new u.y(function(e){return e.error(new Me(t))})}function ze(t){return new u.y(function(e){return e.error(new Le(t))})}function Ze(t){return new u.y(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(t,"'")))})}var Be=function(){function t(e,i,n,o,a){_classCallCheck(this,t),this.configLoader=i,this.urlSerializer=n,this.urlTree=o,this.config=a,this.allowRedirects=!0,this.ngModule=e.get(r.h0i)}return _createClass(t,[{key:"apply",value:function(){var t=this,e=xe(this.urlTree.root,[],[],this.config).segmentGroup,i=new bt(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,i,"primary").pipe((0,I.U)(function(e){return t.createUrlTree(Fe(e),t.urlTree.queryParams,t.urlTree.fragment)})).pipe((0,P.K)(function(e){if(e instanceof Le)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof Me)throw t.noMatchError(e);throw e}))}},{key:"match",value:function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe((0,I.U)(function(i){return e.createUrlTree(Fe(i),t.queryParams,t.fragment)})).pipe((0,P.K)(function(t){if(t instanceof Me)throw e.noMatchError(t);throw t}))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(t,e,i){var n=t.segments.length>0?new bt([],{primary:t}):t;return new _t(n,e,i)}},{key:"expandSegmentGroup",value:function(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe((0,I.U)(function(t){return new bt([],t)})):this.expandSegment(t,i,e,i.segments,n,!0)}},{key:"expandChildren",value:function(t,e,i){for(var n=this,r=[],a=0,s=Object.keys(i.children);a=2;return function(n){return n.pipe(t?(0,b.h)(function(e,i){return t(e,i,n)}):S.y,A(1),i?(0,E.d)(e):(0,T.T)(function(){return new l.K}))}}())}},{key:"expandSegment",value:function(t,e,i,n,r,s){var c=this;return(0,o.D)(i).pipe((0,D.b)(function(o){return c.expandSegmentAgainstRoute(t,e,i,o,n,r,s).pipe((0,P.K)(function(t){if(t instanceof Me)return(0,a.of)(null);throw t}))}),(0,M.P)(function(t){return!!t}),(0,P.K)(function(t,i){if(t instanceof l.K||"EmptyError"===t.name){if(De(e,n,r))return(0,a.of)(new bt([],{}));throw new Me(e)}throw t}))}},{key:"expandSegmentAgainstRoute",value:function(t,e,i,n,r,o,a){return Pe(n,e,r,o)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,r,o):Ne(e):Ne(e)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,e,i,n,r,o){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,r,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,e,i,n){var r=this,o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?ze(o):this.lineralizeSegments(i,o).pipe((0,L.zg)(function(i){var o=new bt(i,{});return r.expandSegment(t,o,e,i,n,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,i,n,r,o){var a=this,s=Re(e,n,r),c=s.matched,u=s.consumedSegments,l=s.lastChild,h=s.positionalParamSegments;if(!c)return Ne(e);var d=this.applyRedirectCommands(u,n.redirectTo,h);return n.redirectTo.startsWith("/")?ze(d):this.lineralizeSegments(n,d).pipe((0,L.zg)(function(n){return a.expandSegment(t,e,i,n.concat(r.slice(l)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(t,e,i,n,r){var o=this;if("**"===i.path)return i.loadChildren?(i._loadedConfig?(0,a.of)(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe((0,I.U)(function(t){return i._loadedConfig=t,new bt(n,{})})):(0,a.of)(new bt(n,{}));var s=Re(e,i,n),c=s.matched,u=s.consumedSegments,l=s.lastChild;if(!c)return Ne(e);var h=n.slice(l);return this.getChildConfig(t,i,n).pipe((0,L.zg)(function(t){var n=t.module,s=t.routes,c=xe(e,u,h,s),l=c.segmentGroup,d=c.slicedSegments,f=new bt(l.segments,l.children);if(0===d.length&&f.hasChildren())return o.expandChildren(n,s,f).pipe((0,I.U)(function(t){return new bt(u,t)}));if(0===s.length&&0===d.length)return(0,a.of)(new bt(u,{}));var p=Ee(i)===r;return o.expandSegment(n,f,s,d,p?"primary":r,!0).pipe((0,I.U)(function(t){return new bt(u.concat(t.segments),t.children)}))}))}},{key:"getChildConfig",value:function(t,e,i){var n=this;return e.children?(0,a.of)(new me(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?(0,a.of)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe((0,L.zg)(function(i){return i?n.configLoader.load(t.injector,e).pipe((0,I.U)(function(t){return e._loadedConfig=t,t})):function(t){return new u.y(function(e){return e.error(ot("Cannot load children because the guard of the route \"path: '".concat(t.path,"'\" returned false")))})}(e)})):(0,a.of)(new me([],t))}},{key:"runCanLoadGuards",value:function(t,e,i){var n=this,r=e.canLoad;if(!r||0===r.length)return(0,a.of)(!0);var o=r.map(function(n){var r,o=t.get(n);if(function(t){return t&&ve(t.canLoad)}(o))r=o.canLoad(e,i);else{if(!ve(o))throw new Error("Invalid CanLoad guard");r=o(e,i)}return dt(r)});return(0,a.of)(o).pipe(be(),(0,N.b)(function(t){if(ye(t)){var e=ot('Redirecting to "'.concat(n.urlSerializer.serialize(t),'"'));throw e.url=t,e}}),(0,I.U)(function(t){return!0===t}))}},{key:"lineralizeSegments",value:function(t,e){for(var i=[],n=e.root;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return(0,a.of)(i);if(n.numberOfChildren>1||!n.children.primary)return Ze(t.redirectTo);n=n.children.primary}}},{key:"applyRedirectCommands",value:function(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}},{key:"applyRedirectCreatreUrlTree",value:function(t,e,i,n){var r=this.createSegmentGroup(t,e.root,i,n);return new _t(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var i={};return ht(t,function(t,n){if("string"==typeof t&&t.startsWith(":")){var r=t.substring(1);i[n]=e[r]}else i[n]=t}),i}},{key:"createSegmentGroup",value:function(t,e,i,n){var r=this,o=this.createSegments(t,e.segments,i,n),a={};return ht(e.children,function(e,o){a[o]=r.createSegmentGroup(t,e,i,n)}),new bt(o,a)}},{key:"createSegments",value:function(t,e,i,n){var r=this;return e.map(function(e){return e.path.startsWith(":")?r.findPosParam(t,e,n):r.findOrReturn(e,i)})}},{key:"findPosParam",value:function(t,e,i){var n=i[e.path.substring(1)];if(!n)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(e.path,"'."));return n}},{key:"findOrReturn",value:function(t,e){var i,n=0,r=_createForOfIteratorHelper(e);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.path===t.path)return e.splice(n),o;n++}}catch(a){r.e(a)}finally{r.f()}return t}}]),t}();function Fe(t){for(var e={},i=0,n=Object.keys(t.children);i0||o.hasChildren())&&(e[r]=o)}return function(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new bt(t.segments.concat(e.segments),e.children)}return t}(new bt(t.segments,e))}var He=function t(e){_classCallCheck(this,t),this.path=e,this.route=this.path[this.path.length-1]},Ue=function t(e,i){_classCallCheck(this,t),this.component=e,this.route=i};function qe(t,e,i){var n=t._root;return je(n,e?e._root:null,i,[n.value])}function Ge(t,e,i){var n=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var i=e.routeConfig;if(i&&i._loadedConfig)return i._loadedConfig}return null}(e);return(n?n.module.injector:i).get(t)}function je(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=qt(e);return t.children.forEach(function(t){!function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=t.value,a=e?e.value:null,s=i?i.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var c=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!At(t.url,e.url);case"pathParamsOrQueryParamsChange":return!At(t.url,e.url)||!st(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!$t(t,e)||!st(t.queryParams,e.queryParams);case"paramsChange":default:return!$t(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new He(n)):(o.data=a.data,o._resolvedData=a._resolvedData),je(t,e,o.component?s?s.children:null:i,n,r),c&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new Ue(s.outlet.component,a))}else a&&Ye(e,s,r),r.canActivateChecks.push(new He(n)),je(t,null,o.component?s?s.children:null:i,n,r)}(t,o[t.value.outlet],i,n.concat([t.value]),r),delete o[t.value.outlet]}),ht(o,function(t,e){return Ye(t,i.getContext(e),r)}),r}function Ye(t,e,i){var n=qt(t),r=t.value;ht(n,function(t,n){Ye(t,r.component?e?e.children.getContext(n):null:e,i)}),i.canDeactivateChecks.push(new Ue(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}var Ke=function t(){_classCallCheck(this,t)};function Ve(t){return new u.y(function(e){return e.error(t)})}var Je=function(){function t(e,i,n,r,o,a){_classCallCheck(this,t),this.rootComponentType=e,this.config=i,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return _createClass(t,[{key:"recognize",value:function(){var t=xe(this.urlTree.root,[],[],this.config.filter(function(t){return void 0===t.redirectTo}),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary");if(null===e)return null;var i=new Vt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),n=new Ut(i,e),r=new Jt(this.url,n);return this.inheritParamsAndData(r._root),r}},{key:"inheritParamsAndData",value:function(t){var e=this,i=t.value,n=Kt(i,this.paramsInheritanceStrategy);i.params=Object.freeze(n.params),i.data=Object.freeze(n.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})}},{key:"processSegmentGroup",value:function(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}},{key:"processChildren",value:function(t,e){for(var i=[],n=0,r=Object.keys(e.children);n0?lt(i).parameters:{};r=new Vt(i,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,$e(t),Ee(t),t.component,t,We(e),Xe(e)+i.length,ti(t))}else{var c=Re(e,t,i);if(!c.matched)return null;o=c.consumedSegments,a=i.slice(c.lastChild),r=new Vt(o,c.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,$e(t),Ee(t),t.component,t,We(e),Xe(e)+o.length,ti(t))}var u=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),l=xe(e,o,a,u.filter(function(t){return void 0===t.redirectTo}),this.relativeLinkResolution),h=l.segmentGroup,d=l.slicedSegments;if(0===d.length&&h.hasChildren()){var f=this.processChildren(u,h);return null===f?null:[new Ut(r,f)]}if(0===u.length&&0===d.length)return[new Ut(r,[])];var p=Ee(t)===n,g=this.processSegment(u,h,d,p?"primary":n);return null===g?null:[new Ut(r,g)]}}]),t}();function Qe(t){var e,i=[],n=new Set,r=_createForOfIteratorHelper(t);try{var o=function(){var t,r=e.value;if(!function(t){var e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}(r))return i.push(r),"continue";var o=i.find(function(t){return r.value.routeConfig===t.value.routeConfig});void 0!==o?((t=o.children).push.apply(t,_toConsumableArray(r.children)),n.add(o)):i.push(r)};for(r.s();!(e=r.n()).done;)o()}catch(l){r.e(l)}finally{r.f()}var a,s=_createForOfIteratorHelper(n);try{for(s.s();!(a=s.n()).done;){var c=a.value,u=Qe(c.children);i.push(new Ut(c.value,u))}}catch(l){s.e(l)}finally{s.f()}return i.filter(function(t){return!n.has(t)})}function We(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Xe(t){for(var e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)i+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return i-1}function $e(t){return t.data||{}}function ti(t){return t.resolve||{}}function ei(t){return(0,R.w)(function(e){var i=t(e);return i?(0,o.D)(i).pipe((0,I.U)(function(){return e})):(0,a.of)(e)})}var ii=function t(){_classCallCheck(this,t)},ni=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,e){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,e){return t.routeConfig===e.routeConfig}}]),t}()),ri=new r.OlP("ROUTES"),oi=function(){function t(e,i,n,r){_classCallCheck(this,t),this.loader=e,this.compiler=i,this.onLoadStartListener=n,this.onLoadEndListener=r}return _createClass(t,[{key:"load",value:function(t,e){var i=this;if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);var n=this.loadModuleFactory(e.loadChildren).pipe((0,I.U)(function(n){i.onLoadEndListener&&i.onLoadEndListener(e);var o=n.create(t);return new me(ut(o.injector.get(ri,void 0,r.XFs.Self|r.XFs.Optional)).map(Te),o)}),(0,P.K)(function(t){throw e._loader$=void 0,t}));return e._loader$=new p.c(n,function(){return new g.xQ}).pipe((0,z.x)()),e._loader$}},{key:"loadModuleFactory",value:function(t){var e=this;return"string"==typeof t?(0,o.D)(this.loader.load(t)):dt(t()).pipe((0,L.zg)(function(t){return t instanceof r.YKP?(0,a.of)(t):(0,o.D)(e.compiler.compileModuleAsync(t))}))}}]),t}(),ai=function t(){_classCallCheck(this,t),this.outlet=null,this.route=null,this.resolver=null,this.children=new si,this.attachRef=null},si=function(){function t(){_classCallCheck(this,t),this.contexts=new Map}return _createClass(t,[{key:"onChildOutletCreated",value:function(t,e){var i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}},{key:"onChildOutletDestroyed",value:function(t){var e=this.getContext(t);e&&(e.outlet=null)}},{key:"onOutletDeactivated",value:function(){var t=this.contexts;return this.contexts=new Map,t}},{key:"onOutletReAttached",value:function(t){this.contexts=t}},{key:"getOrCreateContext",value:function(t){var e=this.getContext(t);return e||(e=new ai,this.contexts.set(t,e)),e}},{key:"getContext",value:function(t){return this.contexts.get(t)||null}}]),t}(),ci=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,e){return t}}]),t}();function ui(t){throw t}function li(t,e,i){return e.parse("/")}function hi(t,e){return(0,a.of)(null)}var di={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},fi={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},pi=function(){var t=function(){function t(e,i,n,o,a,c,u,l){var h=this;_classCallCheck(this,t),this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=n,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new g.xQ,this.errorHandler=ui,this.malformedUriErrorHandler=li,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:hi,afterPreactivation:hi},this.urlHandlingStrategy=new ci,this.routeReuseStrategy=new ni,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=a.get(r.h0i),this.console=a.get(r.c2e);var d=a.get(r.R0b);this.isNgZoneEnabled=d instanceof r.R0b&&r.R0b.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=new _t(new bt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new oi(c,u,function(t){return h.triggerEvent(new Q(t))},function(t){return h.triggerEvent(new W(t))}),this.routerState=jt(this.currentUrlTree,this.rootComponentType),this.transitions=new s.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()}return _createClass(t,[{key:"setupNavigations",value:function(t){var e=this,i=this.events;return t.pipe((0,b.h)(function(t){return 0!==t.id}),(0,I.U)(function(t){return Object.assign(Object.assign({},t),{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}),(0,R.w)(function(t){var n,r,s,c=!1,u=!1;return(0,a.of)(t).pipe((0,N.b)(function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?Object.assign(Object.assign({},e.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,R.w)(function(t){var n,r,o,s,c=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||c)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return(0,a.of)(t).pipe((0,R.w)(function(t){var n=e.transitions.getValue();return i.next(new H(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==e.transitions.getValue()?f.E:Promise.resolve(t)}),(n=e.ngModule.injector,r=e.configLoader,o=e.urlSerializer,s=e.config,(0,R.w)(function(t){return function(t,e,i,n,r){return new Be(t,e,i,n,r).apply()}(n,r,o,t.extractedUrl,s).pipe((0,I.U)(function(e){return Object.assign(Object.assign({},t),{urlAfterRedirects:e})}))})),(0,N.b)(function(t){e.currentNavigation=Object.assign(Object.assign({},e.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,i,n,r,o){return(0,L.zg)(function(n){return function(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var s=new Je(t,e,i,n,r,o).recognize();return null===s?Ve(new Ke):(0,a.of)(s)}catch(c){return Ve(c)}}(t,i,n.urlAfterRedirects,(s=n.urlAfterRedirects,e.serializeUrl(s)),r,o).pipe((0,I.U)(function(t){return Object.assign(Object.assign({},n),{targetSnapshot:t})}));var s})}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),(0,N.b)(function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,t),e.browserUrlTree=t.urlAfterRedirects);var n=new j(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);i.next(n)}));if(c&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var u=t.id,l=t.extractedUrl,h=t.source,d=t.restoredState,p=t.extras,g=new H(u,e.serializeUrl(l),h,d);i.next(g);var m=jt(l,e.rootComponentType).snapshot;return(0,a.of)(Object.assign(Object.assign({},t),{targetSnapshot:m,urlAfterRedirects:l,extras:Object.assign(Object.assign({},p),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),f.E}),ei(function(t){var i=t.targetSnapshot,n=t.id,r=t.extractedUrl,o=t.rawUrl,a=t.extras,s=a.skipLocationChange,c=a.replaceUrl;return e.hooks.beforePreactivation(i,{navigationId:n,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!c})}),(0,N.b)(function(t){var i=new Y(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(i)}),(0,I.U)(function(t){return Object.assign(Object.assign({},t),{guards:qe(t.targetSnapshot,t.currentSnapshot,e.rootContexts)})}),function(t,e){return(0,L.zg)(function(i){var n=i.targetSnapshot,r=i.currentSnapshot,s=i.guards,c=s.canActivateChecks,u=s.canDeactivateChecks;return 0===u.length&&0===c.length?(0,a.of)(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return(0,o.D)(t).pipe((0,L.zg)(function(t){return function(t,e,i,n,r){var o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return(0,a.of)(!0);var s=o.map(function(o){var a,s=Ge(o,e,r);if(function(t){return t&&ve(t.canDeactivate)}(s))a=dt(s.canDeactivate(t,e,i,n));else{if(!ve(s))throw new Error("Invalid CanDeactivate guard");a=dt(s(t,e,i,n))}return a.pipe((0,M.P)())});return(0,a.of)(s).pipe(be())}(t.component,t.route,i,e,n)}),(0,M.P)(function(t){return!0!==t},!0))}(u,n,r,t).pipe((0,L.zg)(function(i){return i&&"boolean"==typeof i?function(t,e,i,n){return(0,o.D)(e).pipe((0,D.b)(function(e){return(0,h.z)(function(t,e){return null!==t&&e&&e(new X(t)),(0,a.of)(!0)}(e.route.parent,n),function(t,e){return null!==t&&e&&e(new tt(t)),(0,a.of)(!0)}(e.route,n),function(t,e,i){var n=e[e.length-1],r=e.slice(0,e.length-1).reverse().map(function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)}).filter(function(t){return null!==t}).map(function(e){return(0,d.P)(function(){var r=e.guards.map(function(r){var o,a=Ge(r,e.node,i);if(function(t){return t&&ve(t.canActivateChild)}(a))o=dt(a.canActivateChild(n,t));else{if(!ve(a))throw new Error("Invalid CanActivateChild guard");o=dt(a(n,t))}return o.pipe((0,M.P)())});return(0,a.of)(r).pipe(be())})});return(0,a.of)(r).pipe(be())}(t,e.path,i),function(t,e,i){var n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||0===n.length)return(0,a.of)(!0);var r=n.map(function(n){return(0,d.P)(function(){var r,o=Ge(n,e,i);if(function(t){return t&&ve(t.canActivate)}(o))r=dt(o.canActivate(e,t));else{if(!ve(o))throw new Error("Invalid CanActivate guard");r=dt(o(e,t))}return r.pipe((0,M.P)())})});return(0,a.of)(r).pipe(be())}(t,e.route,i))}),(0,M.P)(function(t){return!0!==t},!0))}(n,c,t,e):(0,a.of)(i)}),(0,I.U)(function(t){return Object.assign(Object.assign({},i),{guardsResult:t})}))})}(e.ngModule.injector,function(t){return e.triggerEvent(t)}),(0,N.b)(function(t){if(ye(t.guardsResult)){var i=ot('Redirecting to "'.concat(e.serializeUrl(t.guardsResult),'"'));throw i.url=t.guardsResult,i}var n=new K(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)}),(0,b.h)(function(t){return!!t.guardsResult||(e.cancelNavigationTransition(t,""),!1)}),ei(function(t){if(t.guards.canActivateChecks.length)return(0,a.of)(t).pipe((0,N.b)(function(t){var i=new V(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(i)}),(0,R.w)(function(t){var i,n,r=!1;return(0,a.of)(t).pipe((i=e.paramsInheritanceStrategy,n=e.ngModule.injector,(0,L.zg)(function(t){var e=t.targetSnapshot,r=t.guards.canActivateChecks;if(!r.length)return(0,a.of)(t);var s=0;return(0,o.D)(r).pipe((0,D.b)(function(t){return function(t,e,i,n){return function(t,e,i,n){var r=Object.keys(t);if(0===r.length)return(0,a.of)({});var s={};return(0,o.D)(r).pipe((0,L.zg)(function(r){return function(t,e,i,n){var r=Ge(t,e,n);return dt(r.resolve?r.resolve(e,i):r(e,i))}(t[r],e,i,n).pipe((0,N.b)(function(t){s[r]=t}))}),A(1),(0,L.zg)(function(){return Object.keys(s).length===r.length?(0,a.of)(s):f.E}))}(t._resolve,t,e,n).pipe((0,I.U)(function(e){return t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Kt(t,i).resolve),null}))}(t.route,e,i,n)}),(0,N.b)(function(){return s++}),A(1),(0,L.zg)(function(e){return s===r.length?(0,a.of)(t):f.E}))})),(0,N.b)({next:function(){return r=!0},complete:function(){r||e.cancelNavigationTransition(t,"At least one route resolver didn't emit any value.")}}))}),(0,N.b)(function(t){var i=new J(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(i)}))}),ei(function(t){var i=t.targetSnapshot,n=t.id,r=t.extractedUrl,o=t.rawUrl,a=t.extras,s=a.skipLocationChange,c=a.replaceUrl;return e.hooks.afterPreactivation(i,{navigationId:n,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!c})}),(0,I.U)(function(t){var i=function(t,e,i){var n=te(t,e._root,i?i._root:void 0);return new Gt(n,e)}(e.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:i})}),(0,N.b)(function(t){e.currentUrlTree=t.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(e.currentUrlTree,t.rawUrl),e.routerState=t.targetRouterState,"deferred"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,t),e.browserUrlTree=t.urlAfterRedirects)}),(n=e.rootContexts,r=e.routeReuseStrategy,s=function(t){return e.triggerEvent(t)},(0,I.U)(function(t){return new pe(r,t.targetRouterState,t.currentRouterState,s).activate(n),t})),(0,N.b)({next:function(){c=!0},complete:function(){c=!0}}),(0,Z.x)(function(){c||u||e.cancelNavigationTransition(t,"Navigation ID ".concat(t.id," is not equal to the current navigation id ").concat(e.navigationId)),e.currentNavigation=null}),(0,P.K)(function(n){if(u=!0,(s=n)&&s.ngNavigationCancelingError){var r=ye(n.url);r||(e.navigated=!0,e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));var o=new q(t.id,e.serializeUrl(t.extractedUrl),n.message);i.next(o),r?setTimeout(function(){var i=e.urlHandlingStrategy.merge(n.url,e.rawUrlTree);e.scheduleNavigation(i,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);var a=new G(t.id,e.serializeUrl(t.extractedUrl),n);i.next(a);try{t.resolve(e.errorHandler(n))}catch(c){t.reject(c)}}var s;return f.E}))}))}},{key:"resetRootComponentType",value:function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}},{key:"setTransition",value:function(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(e){var i=t.extractLocationChangeInfoFromEvent(e);t.shouldScheduleNavigation(t.lastLocationChangeInfo,i)&&setTimeout(function(){var e=i.source,n=i.state,r=i.urlTree,o={replaceUrl:!0};if(n){var a=Object.assign({},n);delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(o.state=a)}t.scheduleNavigation(r,e,n,o)},0),t.lastLocationChangeInfo=i}))}},{key:"extractLocationChangeInfoFromEvent",value:function(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(t,e){if(!t)return!0;var i=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&i&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(t){this.events.next(t)}},{key:"resetConfig",value:function(t){Ae(t),this.config=t.map(Te),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.relativeTo,n=e.queryParams,r=e.fragment,o=e.queryParamsHandling,a=e.preserveFragment,s=i||this.routerState.root,c=a?this.currentUrlTree.fragment:r,u=null;switch(o){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=n||null}return null!==u&&(u=this.removeEmptyProps(u)),function(t,e,i,n,r){if(0===i.length)return re(e.root,e.root,e,n,r);var o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ae(!0,0,t);var e=0,i=!1,n=t.reduce(function(t,n,r){if("object"==typeof n&&null!=n){if(n.outlets){var o={};return ht(n.outlets,function(t,e){o[e]="string"==typeof t?t.split("/"):t}),[].concat(_toConsumableArray(t),[{outlets:o}])}if(n.segmentPath)return[].concat(_toConsumableArray(t),[n.segmentPath])}return"string"!=typeof n?[].concat(_toConsumableArray(t),[n]):0===r?(n.split("/").forEach(function(n,r){0==r&&"."===n||(0==r&&""===n?i=!0:".."===n?e++:""!=n&&t.push(n))}),t):[].concat(_toConsumableArray(t),[n])},[]);return new ae(i,e,n)}(i);if(o.toRoot())return re(e.root,new bt([],{}),e,n,r);var a=function(t,e,i){if(t.isAbsolute)return new se(e.root,!0,0);if(-1===i.snapshot._lastPathIndex){var n=i.snapshot._urlSegment;return new se(n,n===e.root,0)}var r=ie(t.commands[0])?0:1;return function(t,e,i){for(var n=t,r=e,o=i;o>r;){if(o-=r,!(n=n.parent))throw new Error("Invalid number of '../'");r=n.segments.length}return new se(n,!1,r-o)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(o,e,t),s=a.processChildren?ue(a.segmentGroup,a.index,o.commands):ce(a.segmentGroup,a.index,o.commands);return re(a.segmentGroup,s,e,n,r)}(s,this.currentUrlTree,t,u,null!=c?c:null)}},{key:"navigateByUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},i=ye(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree),r=null;return"computed"===this.canceledNavigationResolution&&(0===this.currentPageId||e.skipLocationChange||e.replaceUrl)&&(r=this.location.getState()),this.scheduleNavigation(n,"imperative",r,e)}},{key:"navigate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(t){for(var e=0;e2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,t),this.router=e,this.viewportScroller=i,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}return _createClass(t,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var t=this;return this.router.events.subscribe(function(e){e instanceof H?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof U&&(t.lastId=e.id,t.scheduleScrollEvent(e,t.router.parseUrl(e.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var t=this;return this.router.events.subscribe(function(e){e instanceof it&&(e.position?"top"===t.options.scrollPositionRestoration?t.viewportScroller.scrollToPosition([0,0]):"enabled"===t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===t.options.anchorScrolling?t.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(t,e){this.router.triggerEvent(new it(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(pi),r.LFG(n.EM),r.LFG(void 0))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t}(),Ci=new r.OlP("ROUTER_CONFIGURATION"),Ti=new r.OlP("ROUTER_FORROOT_GUARD"),Ei=[n.Ye,{provide:kt,useClass:Ct},{provide:pi,useFactory:function(t,e,i,n,r,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},c=arguments.length>8?arguments[8]:void 0,u=arguments.length>9?arguments[9]:void 0,l=new pi(null,t,e,i,n,r,o,ut(a));return c&&(l.urlHandlingStrategy=c),u&&(l.routeReuseStrategy=u),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(s,l),s.enableTracing&&l.events.subscribe(function(t){var e,i;null===(e=console.group)||void 0===e||e.call(console,"Router Event: ".concat(t.constructor.name)),console.log(t.toString()),console.log(t),null===(i=console.groupEnd)||void 0===i||i.call(console)}),l},deps:[kt,si,n.Ye,r.zs3,r.v3s,r.Sil,ri,Ci,[function(){return function t(){_classCallCheck(this,t)}}(),new r.FiY],[ii,new r.FiY]]},si,{provide:Yt,useFactory:function(t){return t.routerState.root},deps:[pi]},{provide:r.v3s,useClass:r.EAV},Ai,wi,function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"preload",value:function(t,e){return e().pipe((0,P.K)(function(){return(0,a.of)(null)}))}}]),t}(),{provide:Ci,useValue:{enableTracing:!1}}];function Si(){return new r.PXZ("Router",pi)}var Ii=function(){var t=function(){function t(e,i){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(e,i){return{ngModule:t,providers:[Ei,Pi(e),{provide:Ti,useFactory:Oi,deps:[[pi,new r.FiY,new r.tp0]]},{provide:Ci,useValue:i||{}},{provide:n.S$,useFactory:xi,deps:[n.lw,[new r.tBr(n.mr),new r.FiY],Ci]},{provide:ki,useFactory:Ri,deps:[pi,n.EM,Ci]},{provide:bi,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:wi},{provide:r.PXZ,multi:!0,useFactory:Si},[Di,{provide:r.ip1,multi:!0,useFactory:Mi,deps:[Di]},{provide:Ni,useFactory:Li,deps:[Di]},{provide:r.tb,multi:!0,useExisting:Ni}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[Pi(e)]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(Ti,8),r.LFG(pi,8))},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t}();function Ri(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new ki(t,e,i)}function xi(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.useHash?new n.Do(t,e):new n.b0(t,e)}function Oi(t){return"guarded"}function Pi(t){return[{provide:r.deG,multi:!0,useValue:t},{provide:ri,multi:!0,useValue:t}]}var Di=function(){var t=function(){function t(e){_classCallCheck(this,t),this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new g.xQ}return _createClass(t,[{key:"appInitializer",value:function(){var t=this;return this.injector.get(n.V_,Promise.resolve(null)).then(function(){var e=null,i=new Promise(function(t){return e=t}),n=t.injector.get(pi),r=t.injector.get(Ci);return"disabled"===r.initialNavigation?(n.setUpLocationChangeListener(),e(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(n.hooks.afterPreactivation=function(){return t.initNavigation?(0,a.of)(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},n.initialNavigation()):e(!0),i})}},{key:"bootstrapListener",value:function(t){var e=this.injector.get(Ci),i=this.injector.get(Ai),n=this.injector.get(ki),o=this.injector.get(pi),a=this.injector.get(r.z2F);t===a.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||o.initialNavigation(),i.setUpPreloading(),n.init(),o.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.LFG(r.zs3))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t}();function Mi(t){return t.appInitializer.bind(t)}function Li(t){return t.bootstrapListener.bind(t)}var Ni=new r.OlP("Router Initializer")},48160:function(t,e,i){"use strict";i.d(e,{Zw:function(){return p},aw:function(){return D},X$:function(){return P},sK:function(){return O}});var n=i(31572),r=i(40878),o=i(4710),a=i(3148),s=i(47930),c=i(31450),u=i(90611),l=i(68303),h=i(79996),d=i(436),f=i(44689),p=function t(){_classCallCheck(this,t)},g=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"getTranslation",value:function(t){return(0,r.of)({})}}]),i}(p);return e.\u0275fac=function(i){return(t||(t=n.n5z(e)))(i||e)},e.\u0275prov=n.Yz7({token:e,factory:e.\u0275fac}),e}(),m=function t(){_classCallCheck(this,t)},v=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"handle",value:function(t){return t.key}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t}();function y(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;var i,n,r,o=typeof t;if(o==typeof e&&"object"==o){if(!Array.isArray(t)){if(Array.isArray(e))return!1;for(n in r=Object.create(null),t){if(!y(t[n],e[n]))return!1;r[n]=!0}for(n in e)if(!(n in r)&&void 0!==e[n])return!1;return!0}if(!Array.isArray(e))return!1;if((i=t.length)==e.length){for(n=0;n5&&void 0!==arguments[5])||arguments[5],c=arguments.length>6&&void 0!==arguments[6]&&arguments[6],u=arguments.length>7&&void 0!==arguments[7]&&arguments[7],l=arguments.length>8?arguments[8]:void 0;_classCallCheck(this,t),this.store=e,this.currentLoader=i,this.compiler=r,this.parser=o,this.missingTranslationHandler=a,this.useDefaultLang=s,this.isolate=c,this.extend=u,this.pending=!1,this._onTranslationChange=new n.vpe,this._onLangChange=new n.vpe,this._onDefaultLangChange=new n.vpe,this._langs=[],this._translations={},this._translationRequests={},l&&this.setDefaultLang(l)}return _createClass(t,[{key:"onTranslationChange",get:function(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}},{key:"onLangChange",get:function(){return this.isolate?this._onLangChange:this.store.onLangChange}},{key:"onDefaultLangChange",get:function(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}},{key:"defaultLang",get:function(){return this.isolate?this._defaultLang:this.store.defaultLang},set:function(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}},{key:"currentLang",get:function(){return this.isolate?this._currentLang:this.store.currentLang},set:function(t){this.isolate?this._currentLang=t:this.store.currentLang=t}},{key:"langs",get:function(){return this.isolate?this._langs:this.store.langs},set:function(t){this.isolate?this._langs=t:this.store.langs=t}},{key:"translations",get:function(){return this.isolate?this._translations:this.store.translations},set:function(t){this.isolate?this._translations=t:this.store.translations=t}},{key:"setDefaultLang",value:function(t){var e=this;if(t!==this.defaultLang){var i=this.retrieveTranslations(t);void 0!==i?(null==this.defaultLang&&(this.defaultLang=t),i.pipe((0,u.q)(1)).subscribe(function(i){e.changeDefaultLang(t)})):this.changeDefaultLang(t)}}},{key:"getDefaultLang",value:function(){return this.defaultLang}},{key:"use",value:function(t){var e=this;if(t===this.currentLang)return(0,r.of)(this.translations[t]);var i=this.retrieveTranslations(t);return void 0!==i?(this.currentLang||(this.currentLang=t),i.pipe((0,u.q)(1)).subscribe(function(i){e.changeLang(t)}),i):(this.changeLang(t),(0,r.of)(this.translations[t]))}},{key:"retrieveTranslations",value:function(t){var e;return(void 0===this.translations[t]||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),e=this._translationRequests[t]),e}},{key:"getTranslation",value:function(t){var e=this;this.pending=!0;var i=this.currentLoader.getTranslation(t).pipe((0,l.d)(1),(0,u.q)(1));return this.loadingTranslations=i.pipe((0,h.U)(function(i){return e.compiler.compileTranslations(i,t)}),(0,l.d)(1),(0,u.q)(1)),this.loadingTranslations.subscribe({next:function(i){e.translations[t]=e.extend&&e.translations[t]?Object.assign(Object.assign({},i),e.translations[t]):i,e.updateLangs(),e.pending=!1},error:function(t){e.pending=!1}}),i}},{key:"setTranslation",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e=this.compiler.compileTranslations(e,t),this.translations[t]=(i||this.extend)&&this.translations[t]?w(this.translations[t],e):e,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}},{key:"getLangs",value:function(){return this.langs}},{key:"addLangs",value:function(t){var e=this;t.forEach(function(t){-1===e.langs.indexOf(t)&&e.langs.push(t)})}},{key:"updateLangs",value:function(){this.addLangs(Object.keys(this.translations))}},{key:"getParsedResult",value:function(t,e,i){var n;if(e instanceof Array){var s,c={},u=!1,l=_createForOfIteratorHelper(e);try{for(l.s();!(s=l.n()).done;){var d=s.value;c[d]=this.getParsedResult(t,d,i),(0,o.b)(c[d])&&(u=!0)}}catch(g){l.e(g)}finally{l.f()}if(u){var f=e.map(function(t){return(0,o.b)(c[t])?c[t]:(0,r.of)(c[t])});return(0,a.D)(f).pipe((0,h.U)(function(t){var i={};return t.forEach(function(t,n){i[e[n]]=t}),i}))}return c}if(t&&(n=this.parser.interpolate(this.parser.getValue(t,e),i)),void 0===n&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(n=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e),i)),void 0===n){var p={key:e,translateService:this};void 0!==i&&(p.interpolateParams=i),n=this.missingTranslationHandler.handle(p)}return void 0!==n?n:e}},{key:"get",value:function(t,e){var i=this;if(!_(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,d.b)(function(n){return n=i.getParsedResult(n,t,e),(0,o.b)(n)?n:(0,r.of)(n)}));var n=this.getParsedResult(this.translations[this.currentLang],t,e);return(0,o.b)(n)?n:(0,r.of)(n)}},{key:"getStreamOnTranslationChange",value:function(t,e){var i=this;if(!_(t)||!t.length)throw new Error('Parameter "key" required');return(0,s.z)((0,c.P)(function(){return i.get(t,e)}),this.onTranslationChange.pipe((0,f.w)(function(n){var o=i.getParsedResult(n.translations,t,e);return"function"==typeof o.subscribe?o:(0,r.of)(o)})))}},{key:"stream",value:function(t,e){var i=this;if(!_(t)||!t.length)throw new Error('Parameter "key" required');return(0,s.z)((0,c.P)(function(){return i.get(t,e)}),this.onLangChange.pipe((0,f.w)(function(n){var a=i.getParsedResult(n.translations,t,e);return(0,o.b)(a)?a:(0,r.of)(a)})))}},{key:"instant",value:function(t,e){if(!_(t)||!t.length)throw new Error('Parameter "key" required');var i=this.getParsedResult(this.translations[this.currentLang],t,e);if((0,o.b)(i)){if(t instanceof Array){var n={};return t.forEach(function(e,i){n[t[i]]=t[i]}),n}return t}return i}},{key:"set",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.currentLang;this.translations[i][t]=this.compiler.compile(e,i),this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}},{key:"changeLang",value:function(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}},{key:"changeDefaultLang",value:function(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}},{key:"reloadLang",value:function(t){return this.resetLang(t),this.getTranslation(t)}},{key:"resetLang",value:function(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}},{key:"getBrowserLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var t=window.navigator.languages?window.navigator.languages[0]:null;return void 0!==(t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage)?(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t):void 0}}},{key:"getBrowserCultureLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(n.LFG(E),n.LFG(p),n.LFG(C),n.LFG(A),n.LFG(m),n.LFG(I),n.LFG(S),n.LFG(x),n.LFG(R))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t}(),P=function(){var t=function(){function t(e,i){_classCallCheck(this,t),this.translate=e,this._ref=i,this.value=""}return _createClass(t,[{key:"updateValue",value:function(t,e,i){var n=this,r=function(e){n.value=void 0!==e?e:t,n.lastKey=t,n._ref.markForCheck()};if(i){var a=this.translate.getParsedResult(i,t,e);(0,o.b)(a.subscribe)?a.subscribe(r):r(a)}this.translate.get(t,e).subscribe(r)}},{key:"transform",value:function(t){var e,i=this;if(!t||!t.length)return t;for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.loader||{provide:p,useClass:g},e.compiler||{provide:C,useClass:T},e.parser||{provide:A,useClass:k},e.missingTranslationHandler||{provide:m,useClass:v},E,{provide:S,useValue:e.isolate},{provide:I,useValue:e.useDefaultLang},{provide:x,useValue:e.extend},{provide:R,useValue:e.defaultLanguage},O]}}},{key:"forChild",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.loader||{provide:p,useClass:g},e.compiler||{provide:C,useClass:T},e.parser||{provide:A,useClass:k},e.missingTranslationHandler||{provide:m,useClass:v},{provide:S,useValue:e.isolate},{provide:I,useValue:e.useDefaultLang},{provide:x,useValue:e.extend},{provide:R,useValue:e.defaultLanguage},O]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({}),t}()},52623:function _(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{zr:function(){return OAuthModule},Ct:function(){return OAuthService}});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(31572),_angular_common__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(61511),_angular_common_http__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(29063),tslib__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(77632),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(55959),rxjs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(40878),rxjs__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(19764),rxjs__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(3875),rxjs__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(31225),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(31305),rxjs__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(31906),rxjs_operators__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(43835),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(66599),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(47701),rxjs_operators__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(60509),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(44689),rxjs_operators__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(79996),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(3530),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(47727),rxjs_operators__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(29085),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(90611),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(73982);module=__webpack_require__.hmd(module);var DateTimeProvider=function t(){_classCallCheck(this,t)},SystemDateTimeProvider=function(){var t,e=function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"now",value:function(){return Date.now()}},{key:"new",value:function(){return new Date}}]),i}(DateTimeProvider);return e.\u0275fac=function(i){return(t||(t=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(e)))(i||e)},e.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:e,factory:e.\u0275fac}),e}(),LoginOptions=function t(){_classCallCheck(this,t),this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1},OAuthLogger=function t(){_classCallCheck(this,t)},OAuthStorage=function t(){_classCallCheck(this,t)},MemoryStorage=function(){var t=function(){function t(){_classCallCheck(this,t),this.data=new Map}return _createClass(t,[{key:"getItem",value:function(t){return this.data.get(t)}},{key:"removeItem",value:function(t){this.data.delete(t)}},{key:"setItem",value:function(t,e){this.data.set(t,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t}(),ReceivedTokens=function t(){_classCallCheck(this,t)};function b64DecodeUnicode(t){var e=t.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(e).split("").map(function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(t){return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}var ValidationHandler=function t(){_classCallCheck(this,t)},AbstractValidationHandler=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"validateAtHash",value:function(t){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var i,n,r,o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=this.inferHashAlgorithm(t.idTokenHeader),e.next=3,this.calcHash(t.accessToken,i);case 3:return n=e.sent,r=base64UrlEncode(n.substr(0,n.length/2)),o=t.idTokenClaims.at_hash.replace(/=/g,""),e.abrupt("return",(r!==o&&(console.error("exptected at_hash: "+r),console.error("actual at_hash: "+o)),r===o));case 7:case"end":return e.stop()}},e,this)}))}},{key:"inferHashAlgorithm",value:function(t){var e=t.alg;if(!e.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+e);return"sha-"+e.substr(2)}}]),t}(),UrlHelperService=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"getHashFragmentParams",value:function(t){var e=t||window.location.hash;if(0!==(e=decodeURIComponent(e)).indexOf("#"))return{};var i=e.indexOf("?");return e=e.substr(i>-1?i+1:1),this.parseQueryString(e)}},{key:"parseQueryString",value:function(t){var e,i,n,r,o,a,s,c={};if(null===t)return c;e=t.split("&");for(var u=0;u1&&void 0!==arguments[1]?arguments[1]:null;return _classCallCheck(this,i),(n=e.call(this,t)).info=r,n}return i}(OAuthEvent),OAuthInfoEvent=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return _classCallCheck(this,i),(n=e.call(this,t)).info=r,n}return i}(OAuthEvent),OAuthErrorEvent=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return _classCallCheck(this,i),(r=e.call(this,t)).reason=n,r.params=o,r}return i}(OAuthEvent),AuthConfig=function t(e){_classCallCheck(this,t),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.openUri=function(t){location.href=t},e&&Object.assign(this,e)},WebHttpUrlEncodingCodec=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"encodeKey",value:function(t){return encodeURIComponent(t)}},{key:"encodeValue",value:function(t){return encodeURIComponent(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}(),ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&module.exports,AMD="function"==typeof define&&__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[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],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t,e){return function(i){return new Sha256(e,!0).update(i)[t]()}},\u02750=createOutputMethod,createMethod=function(t){var e=createOutputMethod("hex",t);NODE_JS&&(e=nodeWrap(e,t)),e.create=function(){return new Sha256(t)},e.update=function(t){return e.create().update(t)};for(var i=0;i>6,a[c++]=128|63&o):o<55296||o>=57344?(a[c++]=224|o>>12,a[c++]=128|o>>6&63,a[c++]=128|63&o):(o=65536+((1023&o)<<10|1023&t.charCodeAt(++n)),a[c++]=240|o>>18,a[c++]=128|o>>12&63,a[c++]=128|o>>6&63,a[c++]=128|63&o);t=a}else{if("object"!==r)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR)}t.length>64&&(t=new Sha256(e,!0).update(t).array());var u=[],l=[];for(n=0;n<64;++n){var h=t[n]||0;u[n]=92^h,l[n]=54^h}Sha256.call(this,e,i),this.update(l),this.oKeyPad=u,this.inner=!0,this.sharedMemory=i}Sha256.prototype.update=function(t){if(!this.finalized){var e,i=typeof t;if("string"!==i){if("object"!==i)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR);e=!0}for(var n,r,o=0,a=t.length,s=this.blocks;o>2]|=t[o]<>2]|=n<>2]|=(192|n>>6)<>2]|=(128|63&n)<=57344?(s[r>>2]|=(224|n>>12)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<>2]|=(240|n>>18)<>2]|=(128|n>>12&63)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<=64?(this.block=s[16],this.start=r-64,this.hash(),this.hashed=!0):this.start=r}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 t=this.blocks,e=this.lastByteIndex;t[16]=this.block,t[e>>2]|=EXTRA[3&e],this.block=t[16],e>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var t,e,i,n,r,o,a=this.h0,s=this.h1,c=this.h2,u=this.h3,l=this.h4,h=this.h5,d=this.h6,f=this.h7,p=this.blocks;for(t=16;t<64;++t)p[t]=p[t-16]+(((e=p[t-15])>>>7|e<<25)^(e>>>18|e<<14)^e>>>3)+p[t-7]+(((e=p[t-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)<<0;for(o=s&c,t=0;t<64;t+=4)this.first?(this.is224?(i=300032,f=(e=p[0]-1413257819)-150054599<<0,u=e+24177077<<0):(i=704751109,f=(e=p[0]-210244248)-1521486534<<0,u=e+143694565<<0),this.first=!1):(f=u+(e=f+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&h^~l&d)+K[t]+p[t])<<0,u=e+(((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+((i=a&s)^a&c^o))<<0),d=c+(e=d+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&l^~f&h)+K[t+1]+p[t+1])<<0,c=e+(((u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10))+((n=u&a)^u&s^i))<<0,h=s+(e=h+((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&f^~d&l)+K[t+2]+p[t+2])<<0,s=e+(((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+((r=c&u)^c&a^n))<<0,l=a+(e=l+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&d^~h&f)+K[t+3]+p[t+3])<<0,a=e+(((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((o=s&c)^s&u^r))<<0;this.h0=this.h0+a<<0,this.h1=this.h1+s<<0,this.h2=this.h2+c<<0,this.h3=this.h3+u<<0,this.h4=this.h4+l<<0,this.h5=this.h5+h<<0,this.h6=this.h6+d<<0,this.h7=this.h7+f<<0},Sha256.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,i=this.h2,n=this.h3,r=this.h4,o=this.h5,a=this.h6,s=this.h7,c=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[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[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[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[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+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]+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];return this.is224||(c+=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]),c},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,i=this.h2,n=this.h3,r=this.h4,o=this.h5,a=this.h6,s=this.h7,c=[t>>24&255,t>>16&255,t>>8&255,255&t,e>>24&255,e>>16&255,e>>8&255,255&e,i>>24&255,i>>16&255,i>>8&255,255&i,n>>24&255,n>>16&255,n>>8&255,255&n,r>>24&255,r>>16&255,r>>8&255,255&r,o>>24&255,o>>16&255,o>>8&255,255&o,a>>24&255,a>>16&255,a>>8&255,255&a];return this.is224||c.push(s>>24&255,s>>16&255,s>>8&255,255&s),c},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(this.is224?28:32),e=new DataView(t);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),e.setUint32(20,this.h5),e.setUint32(24,this.h6),this.is224||e.setUint32(28,this.h7),t},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(t),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0);var HashHandler=function t(){_classCallCheck(this,t)},DefaultHashHandler=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"calcHash",value:function(t,e){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=exports.array(t),e.abrupt("return",this.toHashString2(i));case 2:case"end":return e.stop()}},e,this)}))}},{key:"toHashString2",value:function(t){var e,i="",n=_createForOfIteratorHelper(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;i+=String.fromCharCode(r)}}catch(err){n.e(err)}finally{n.f()}return i}},{key:"toHashString",value:function(t){var e,i="",n=_createForOfIteratorHelper(new Uint8Array(t));try{for(n.s();!(e=n.n()).done;){var r=e.value;i+=String.fromCharCode(r)}}catch(err){n.e(err)}finally{n.f()}return i}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t}(),OAuthService=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,a,s,c,u,l,h){var d,f;_classCallCheck(this,i),(d=e.call(this)).ngZone=t,d.http=n,d.config=a,d.urlHelper=s,d.logger=c,d.crypto=u,d.dateTimeService=h,d.discoveryDocumentLoaded=!1,d.state="",d.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_2__.xQ,d.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_2__.xQ,d.grantTypesSupported=[],d.inImplicitFlow=!1,d.saveNoncesInLocalStorage=!1,d.debug("angular-oauth2-oidc v10"),d.document=l,a||(a={}),d.discoveryDocumentLoaded$=d.discoveryDocumentLoadedSubject.asObservable(),d.events=d.eventsSubject.asObservable(),o&&(d.tokenValidationHandler=o),a&&d.configure(a);try{r?d.setStorage(r):"undefined"!=typeof sessionStorage&&d.setStorage(sessionStorage)}catch(g){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",g)}if("undefined"!=typeof window&&void 0!==window.localStorage){var p=null===(f=null===window||void 0===window?void 0:window.navigator)||void 0===f?void 0:f.userAgent;((null==p?void 0:p.includes("MSIE "))||(null==p?void 0:p.includes("Trident")))&&(d.saveNoncesInLocalStorage=!0)}return d.setupRefreshTimer(),d}return _createClass(i,[{key:"configure",value:function(t){Object.assign(this,new AuthConfig,t),this.config=Object.assign({},new AuthConfig,t),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}},{key:"configChanged",value:function(){this.setupRefreshTimer()}},{key:"restartSessionChecksIfStillLoggedIn",value:function(){this.hasValidIdToken()&&this.initSessionCheck()}},{key:"restartRefreshTimerIfStillLoggedIn",value:function(){this.setupExpirationTimers()}},{key:"setupSessionCheck",value:function(){var t=this;this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(t){return"token_received"===t.type})).subscribe(function(e){t.initSessionCheck()})}},{key:"setupAutomaticSilentRefresh",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.b)(function(t){"token_received"===t.type?r=!0:"logout"===t.type&&(r=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(t){return"token_expires"===t.type&&(null==i||"any"===i||t.info===i)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(1e3)).subscribe(function(i){r&&t.refreshInternal(e,n).catch(function(e){t.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}},{key:"refreshInternal",value:function(t,e){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(t,e):this.refreshToken()}},{key:"loadDiscoveryDocumentAndTryLogin",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.loadDiscoveryDocument().then(function(i){return t.tryLogin(e)})}},{key:"loadDiscoveryDocumentAndLogin",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.loadDiscoveryDocumentAndTryLogin(e=e||{}).then(function(i){return!(!t.hasValidIdToken()||!t.hasValidAccessToken())||(t.initLoginFlow("string"==typeof e.state?e.state:""),!1)})}},{key:"debug",value:function(){for(var t=arguments.length,e=new Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:null;return new Promise(function(i,n){e||((e=t.issuer||"").endsWith("/")||(e+="/"),e+=".well-known/openid-configuration"),t.validateUrlForHttps(e)?t.http.get(e).subscribe(function(e){if(!t.validateDiscoveryDocument(e))return t.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void n("discovery_document_validation_error");t.loginUrl=e.authorization_endpoint,t.logoutUrl=e.end_session_endpoint||t.logoutUrl,t.grantTypesSupported=e.grant_types_supported,t.issuer=e.issuer,t.tokenEndpoint=e.token_endpoint,t.userinfoEndpoint=e.userinfo_endpoint||t.userinfoEndpoint,t.jwksUri=e.jwks_uri,t.sessionCheckIFrameUrl=e.check_session_iframe||t.sessionCheckIFrameUrl,t.discoveryDocumentLoaded=!0,t.discoveryDocumentLoadedSubject.next(e),t.revocationEndpoint=e.revocation_endpoint||t.revocationEndpoint,t.sessionChecksEnabled&&t.restartSessionChecksIfStillLoggedIn(),t.loadJwks().then(function(n){var r=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:e,jwks:n});t.eventsSubject.next(r),i(r)}).catch(function(e){t.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",e)),n(e)})},function(e){t.logger.error("error loading discovery document",e),t.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",e)),n(e)}):n("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}},{key:"loadJwks",value:function(){var t=this;return new Promise(function(e,i){t.jwksUri?t.http.get(t.jwksUri).subscribe(function(i){t.jwks=i,t.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),e(i)},function(e){t.logger.error("error loading jwks",e),t.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",e)),i(e)}):e(null)})}},{key:"validateDiscoveryDocument",value:function(t){var e;return this.skipIssuerCheck||t.issuer===this.issuer?(e=this.validateUrlFromDiscoveryDocument(t.authorization_endpoint)).length>0?(this.logger.error("error validating authorization_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(t.end_session_endpoint)).length>0?(this.logger.error("error validating end_session_endpoint in discovery document",e),!1):((e=this.validateUrlFromDiscoveryDocument(t.token_endpoint)).length>0&&this.logger.error("error validating token_endpoint in discovery document",e),(e=this.validateUrlFromDiscoveryDocument(t.revocation_endpoint)).length>0&&this.logger.error("error validating revocation_endpoint in discovery document",e),(e=this.validateUrlFromDiscoveryDocument(t.userinfo_endpoint)).length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(t.jwks_uri)).length>0?(this.logger.error("error validating jwks_uri in discovery document",e),!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)}},{key:"fetchTokenUsingPasswordFlowAndLoadUserProfile",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM;return this.fetchTokenUsingPasswordFlow(t,e,n).then(function(){return i.loadUserProfile()})}},{key:"loadUserProfile",value:function(){var t=this;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(function(e,i){var n=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Authorization","Bearer "+t.getAccessToken());t.http.get(t.userinfoEndpoint,{headers:n,observe:"response",responseType:"text"}).subscribe(function(n){if(t.debug("userinfo received",JSON.stringify(n)),n.headers.get("content-type").startsWith("application/json")){var r=JSON.parse(n.body),o=t.getIdentityClaims()||{};if(!t.skipSubjectCheck&&t.oidc&&(!o.sub||r.sub!==o.sub))return void i("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");r=Object.assign({},o,r),t._storage.setItem("id_token_claims_obj",JSON.stringify(r)),t.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),e({info:r})}else t.debug("userinfo is not JSON, treating it as JWE/JWS"),t.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),e(JSON.parse(n.body))},function(e){t.logger.error("error loading user info",e),t.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",e)),i(e)})})}},{key:"fetchTokenUsingPasswordFlow",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM;return this.fetchTokenUsingGrant("password",{username:t,password:e},i)}},{key:"fetchTokenUsingGrant",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM;this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");var r=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",t).set("scope",this.scope);if(this.useHttpBasicAuth){var o=btoa("".concat(this.clientId,":").concat(this.dummyClientSecret));n=n.set("Authorization","Basic "+o)}if(this.useHttpBasicAuth||(r=r.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(r=r.set("client_secret",this.dummyClientSecret)),this.customQueryParams){var a,s=_createForOfIteratorHelper(Object.getOwnPropertyNames(this.customQueryParams));try{for(s.s();!(a=s.n()).done;){var c=a.value;r=r.set(c,this.customQueryParams[c])}}catch(err){s.e(err)}finally{s.f()}}for(var u=0,l=Object.keys(e);u0&&void 0!==arguments[0]?arguments[0]:{},i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(e.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(void 0===this.document)throw new Error("silent refresh is not supported on this platform");var r=this.document.getElementById(this.silentRefreshIFrameName);r&&this.document.body.removeChild(r),this.silentRefreshSubject=n.sub;var o=this.document.createElement("iframe");o.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,i,e).then(function(e){o.setAttribute("src",e),t.silentRefreshShowIFrame||(o.style.display="none"),t.document.body.appendChild(o)});var a=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(t){return t instanceof OAuthErrorEvent}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.P)()),s=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(t){return"token_received"===t.type}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.P)()),c=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_13__.S3)([a,s,c]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.U)(function(e){if(e instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===e.type||(e=new OAuthErrorEvent("silent_refresh_error",e)),t.eventsSubject.next(e),e;return"token_received"===e.type&&(e=new OAuthSuccessEvent("silently_refreshed"),t.eventsSubject.next(e)),e})).toPromise()}},{key:"initImplicitFlowInPopup",value:function(t){return this.initLoginFlowInPopup(t)}},{key:"initLoginFlowInPopup",value:function(t){var e=this;return t=t||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(function(i){return new Promise(function(n,r){var o,a=null;t.windowRef?t.windowRef&&!t.windowRef.closed&&((a=t.windowRef).location.href=i):a=window.open(i,"ngx-oauth2-oidc-login",e.calculatePopupFeatures(t));var s=function(t){e.tryLogin({customHashFragment:t,preventClearHashAfterLogin:!0,customRedirectUri:e.silentRefreshRedirectUri}).then(function(){c(),n(!0)},function(t){c(),r(t)})};a?o=window.setInterval(function(){a&&!a.closed||(c(),r(new OAuthErrorEvent("popup_closed",{})))},500):r(new OAuthErrorEvent("popup_blocked",{}));var c=function(){window.clearInterval(o),window.removeEventListener("storage",l),window.removeEventListener("message",u),null!==a&&a.close(),a=null},u=function(t){var i=e.processMessageEventMessage(t);i&&null!==i?(window.removeEventListener("storage",l),s(i)):console.log("false event firing")},l=function(t){"auth_hash"===t.key&&(window.removeEventListener("message",u),s(t.newValue))};window.addEventListener("message",u),window.addEventListener("storage",l)})})}},{key:"calculatePopupFeatures",value:function(t){var e=t.height||470,i=t.width||500,n=window.screenLeft+(window.outerWidth-i)/2;return"location=no,toolbar=no,width=".concat(i,",height=").concat(e,",top=").concat(window.screenTop+(window.outerHeight-e)/2,",left=").concat(n)}},{key:"processMessageEventMessage",value:function(t){var e="#";if(this.silentRefreshMessagePrefix&&(e+=this.silentRefreshMessagePrefix),t&&t.data&&"string"==typeof t.data){var i=t.data;return i.startsWith(e)?"#"+i.substr(e.length):void 0}}},{key:"canPerformSessionCheck",value:function(){return!!this.sessionChecksEnabled&&(this.sessionCheckIFrameUrl?this.getSessionState()?void 0!==this.document:(console.warn("sessionChecksEnabled is activated but there is no session_state"),!1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),!1))}},{key:"setupSessionCheckEventListener",value:function(){var t=this;this.removeSessionCheckEventListener(),this.sessionCheckEventListener=function(e){var i=e.origin.toLowerCase(),n=t.issuer.toLowerCase();if(t.debug("sessionCheckEventListener"),n.startsWith(i)){switch(e.data){case"unchanged":t.ngZone.run(function(){t.handleSessionUnchanged()});break;case"changed":t.ngZone.run(function(){t.handleSessionChange()});break;case"error":t.ngZone.run(function(){t.handleSessionError()})}t.debug("got info from session check inframe",e)}else t.debug("sessionCheckEventListener","wrong origin",i,"expected",n,"event",e)},this.ngZone.runOutsideAngular(function(){window.addEventListener("message",t.sessionCheckEventListener)})}},{key:"handleSessionUnchanged",value:function(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}},{key:"handleSessionChange",value:function(){var t=this;this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(function(e){return t.debug("silent refresh failed after session changed")}),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(function(e){t.debug("token refresh after session change worked")}).catch(function(e){t.debug("token refresh did not work after session changed"),t.eventsSubject.next(new OAuthInfoEvent("session_terminated")),t.logOut(!0)})}},{key:"waitForSilentRefreshAfterSessionChange",value:function(){var t=this;this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(t){return"silently_refreshed"===t.type||"silent_refresh_timeout"===t.type||"silent_refresh_error"===t.type}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.P)()).subscribe(function(e){"silently_refreshed"!==e.type&&(t.debug("silent refresh did not work after session changed"),t.eventsSubject.next(new OAuthInfoEvent("session_terminated")),t.logOut(!0))})}},{key:"handleSessionError",value:function(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}},{key:"removeSessionCheckEventListener",value:function(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}},{key:"initSessionCheck",value:function(){if(this.canPerformSessionCheck()){var t=this.document.getElementById(this.sessionCheckIFrameName);t&&this.document.body.removeChild(t);var 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()}}},{key:"startSessionCheckTimer",value:function(){var t=this;this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(function(){t.sessionCheckTimer=setInterval(t.checkSession.bind(t),t.sessionCheckIntervall)})}},{key:"stopSessionCheckTimer",value:function(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}},{key:"checkSession",value:function(){var t=this.document.getElementById(this.sessionCheckIFrameName);t||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);var e=this.getSessionState();e||this.stopSessionCheckTimer(),t.contentWindow.postMessage(this.clientId+" "+e,this.issuer)}},{key:"createLoginUrl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,regeneratorRuntime.mark(function o(){var a,s,c,u,l,h,d,f,p,g,m,v,y,_,b;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return a=i||this.redirectUri,o.next=3,this.createAndSaveNonce();case 3:if(s=o.sent,t=t?s+this.config.nonceStateSeparator+encodeURIComponent(t):s,this.requestAccessToken||this.oidc){o.next=6;break}throw new Error("Either requestAccessToken or oidc or both must be true");case 6:if(this.responseType=this.config.responseType?this.config.responseType:this.oidc&&this.requestAccessToken?"id_token token":this.oidc&&!this.requestAccessToken?"id_token":"token",c=this.loginUrl.indexOf("?")>-1?"&":"?",u=this.scope,this.oidc&&!u.match(/(^|\s)openid($|\s)/)&&(u="openid "+u),l=this.loginUrl+c+"response_type="+encodeURIComponent(this.responseType)+"&client_id="+encodeURIComponent(this.clientId)+"&state="+encodeURIComponent(t)+"&redirect_uri="+encodeURIComponent(a)+"&scope="+encodeURIComponent(u),!this.responseType.includes("code")||this.disablePKCE){o.next=19;break}return o.next=14,this.createChallangeVerifierPairForPKCE();case 14:h=o.sent,d=_slicedToArray(h,2),f=d[0],p=d[1],this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("PKCE_verifier",p):this._storage.setItem("PKCE_verifier",p),l+="&code_challenge="+f,l+="&code_challenge_method=S256";case 19:for(e&&(l+="&login_hint="+encodeURIComponent(e)),this.resource&&(l+="&resource="+encodeURIComponent(this.resource)),this.oidc&&(l+="&nonce="+encodeURIComponent(s)),n&&(l+="&prompt=none"),g=0,m=Object.keys(r);g0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!this.inImplicitFlow){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).");var n={},r=null;"string"==typeof i?r=i:"object"==typeof i&&(n=i),this.createLoginUrl(e,r,null,!1,n).then(this.config.openUri).catch(function(e){console.error("Error in initImplicitFlow",e),t.inImplicitFlow=!1})}}},{key:"initImplicitFlow",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";""!==this.loginUrl?this.initImplicitFlowInternal(e,i):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(t){return"discovery_document_loaded"===t.type})).subscribe(function(n){return t.initImplicitFlowInternal(e,i)})}},{key:"resetImplicitFlow",value:function(){this.inImplicitFlow=!1}},{key:"callOnTokenReceivedIfExists",value:function(t){var e=this;if(t.onTokenReceived){var i={idClaims:e.getIdentityClaims(),idToken:e.getIdToken(),accessToken:e.getAccessToken(),state:e.state};t.onTokenReceived(i)}}},{key:"storeAccessTokenResponse",value:function(t,e,i,n,r){var o=this;if(this._storage.setItem("access_token",t),n&&!Array.isArray(n)?this._storage.setItem("granted_scopes",JSON.stringify(n.split(" "))):n&&Array.isArray(n)&&this._storage.setItem("granted_scopes",JSON.stringify(n)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),i){var a=1e3*i,s=this.dateTimeService.new().getTime()+a;this._storage.setItem("expires_at",""+s)}e&&this._storage.setItem("refresh_token",e),r&&r.forEach(function(t,e){o._storage.setItem(e,t)})}},{key:"tryLogin",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return"code"===this.config.responseType?this.tryLoginCodeFlow(t).then(function(t){return!0}):this.tryLoginImplicitFlow(t)}},{key:"parseQueryString",value:function(t){return t&&0!==t.length?("?"===t.charAt(0)&&(t=t.substr(1)),this.urlHelper.parseQueryString(t)):{}}},{key:"tryLoginCodeFlow",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=(t=t||{}).customHashFragment?t.customHashFragment.substring(1):window.location.search,i=this.getCodePartsFromUrl(e),n=i.code,r=i.state,o=i.session_state;if(!t.preventClearHashAfterLogin){var a=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,a)}var s=this.parseState(r),c=_slicedToArray(s,2),u=c[0],l=c[1];if(this.state=l,i.error){this.debug("error trying to login"),this.handleLoginError(t,i);var h=new OAuthErrorEvent("code_error",{},i);return this.eventsSubject.next(h),Promise.reject(h)}if(!t.disableNonceCheck){if(!u)return Promise.resolve();if(!t.disableOAuth2StateCheck&&!this.validateNonce(u)){var d=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(d),Promise.reject(d)}return this.storeSessionState(o),n?this.getTokenFromCode(n,t).then(function(t){return null}):Promise.resolve()}}},{key:"getCodePartsFromUrl",value:function(t){return t&&0!==t.length?("?"===t.charAt(0)&&(t=t.substr(1)),this.urlHelper.parseQueryString(t)):this.urlHelper.getHashFragmentParams()}},{key:"getTokenFromCode",value:function(t,e){var i,n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",t).set("redirect_uri",e.customRedirectUri||this.redirectUri);this.disablePKCE||((i=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"))?n=n.set("code_verifier",i):console.warn("No PKCE verifier found in oauth storage!"));return this.fetchAndProcessToken(n,e)}},{key:"fetchAndProcessToken",value:function(t,e){var i=this;e=e||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");var n=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){var r=btoa("".concat(this.clientId,":").concat(this.dummyClientSecret));n=n.set("Authorization","Basic "+r)}return this.useHttpBasicAuth||(t=t.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(t=t.set("client_secret",this.dummyClientSecret)),new Promise(function(r,o){if(i.customQueryParams){var a,s=_createForOfIteratorHelper(Object.getOwnPropertyNames(i.customQueryParams));try{for(s.s();!(a=s.n()).done;){var c=a.value;t=t.set(c,i.customQueryParams[c])}}catch(err){s.e(err)}finally{s.f()}}i.http.post(i.tokenEndpoint,t,{headers:n}).subscribe(function(t){i.debug("refresh tokenResponse",t),i.storeAccessTokenResponse(t.access_token,t.refresh_token,t.expires_in||i.fallbackAccessTokenExpirationTimeInSec,t.scope,i.extractRecognizedCustomParameters(t)),i.oidc&&t.id_token?i.processIdToken(t.id_token,t.access_token,e.disableNonceCheck).then(function(e){i.storeIdToken(e),i.eventsSubject.next(new OAuthSuccessEvent("token_received")),i.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),r(t)}).catch(function(t){i.eventsSubject.next(new OAuthErrorEvent("token_validation_error",t)),console.error("Error validating tokens"),console.error(t),o(t)}):(i.eventsSubject.next(new OAuthSuccessEvent("token_received")),i.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),r(t))},function(t){console.error("Error getting token",t),i.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",t)),o(t)})})}},{key:"tryLoginImplicitFlow",value:function(){var t,e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t=(i=i||{}).customHashFragment?this.urlHelper.getHashFragmentParams(i.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",t);var n=t.state,r=this.parseState(n),o=_slicedToArray(r,2),a=o[0],s=o[1];if(this.state=s,t.error){this.debug("error trying to login"),this.handleLoginError(i,t);var c=new OAuthErrorEvent("token_error",{},t);return this.eventsSubject.next(c),Promise.reject(c)}var u=t.access_token,l=t.id_token,h=t.session_state,d=t.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!u)return Promise.resolve(!1);if(this.requestAccessToken&&!i.disableOAuth2StateCheck&&!n)return Promise.resolve(!1);if(this.oidc&&!l)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!h&&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&&!i.disableNonceCheck&&!this.validateNonce(a)){var f=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(f),Promise.reject(f)}return this.requestAccessToken&&this.storeAccessTokenResponse(u,null,t.expires_in||this.fallbackAccessTokenExpirationTimeInSec,d),this.oidc?this.processIdToken(l,u,i.disableNonceCheck).then(function(t){return i.validationHandler?i.validationHandler({accessToken:u,idClaims:t.idTokenClaims,idToken:t.idToken,state:n}).then(function(e){return t}):t}).then(function(t){return e.storeIdToken(t),e.storeSessionState(h),e.clearHashAfterLogin&&!i.preventClearHashAfterLogin&&e.clearLocationHash(),e.eventsSubject.next(new OAuthSuccessEvent("token_received")),e.callOnTokenReceivedIfExists(i),e.inImplicitFlow=!1,!0}).catch(function(t){return e.eventsSubject.next(new OAuthErrorEvent("token_validation_error",t)),e.logger.error("Error validating tokens"),e.logger.error(t),Promise.reject(t)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!i.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(i),Promise.resolve(!0))}},{key:"parseState",value:function(t){var e=t,i="";if(t){var n=t.indexOf(this.config.nonceStateSeparator);n>-1&&(e=t.substr(0,n),i=t.substr(n+this.config.nonceStateSeparator.length))}return[e,i]}},{key:"validateNonce",value:function(t){var e;return(e=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"))===t||(console.error("Validating access_token failed, wrong state/nonce.",e,t),!1)}},{key:"storeIdToken",value:function(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())}},{key:"storeSessionState",value:function(t){this._storage.setItem("session_state",t)}},{key:"getSessionState",value:function(){return this._storage.getItem("session_state")}},{key:"handleLoginError",value:function(t,e){t.onLoginError&&t.onLoginError(e),this.clearHashAfterLogin&&!t.preventClearHashAfterLogin&&this.clearLocationHash()}},{key:"getClockSkewInMsec",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6e5;return this.clockSkewInSec?1e3*this.clockSkewInSec:t}},{key:"processIdToken",value:function(t,e){var i,n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=t.split("."),a=b64DecodeUnicode(this.padBase64(o[0])),s=JSON.parse(a),c=b64DecodeUnicode(this.padBase64(o[1])),u=JSON.parse(c);if(i=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(u.aud)){if(u.aud.every(function(t){return t!==n.clientId})){var l="Wrong audience: "+u.aud.join(",");return this.logger.warn(l),Promise.reject(l)}}else if(u.aud!==this.clientId){var h="Wrong audience: "+u.aud;return this.logger.warn(h),Promise.reject(h)}if(!u.sub){var d="No sub claim in id_token";return this.logger.warn(d),Promise.reject(d)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==u.sub){var f="After refreshing, we got an id_token for another user (sub). Expected sub: ".concat(this.silentRefreshSubject,", received sub: ").concat(u.sub);return this.logger.warn(f),Promise.reject(f)}if(!u.iat){var p="No iat claim in id_token";return this.logger.warn(p),Promise.reject(p)}if(!this.skipIssuerCheck&&u.iss!==this.issuer){var g="Wrong issuer: "+u.iss;return this.logger.warn(g),Promise.reject(g)}if(!r&&u.nonce!==i){var m="Wrong nonce: "+u.nonce;return this.logger.warn(m),Promise.reject(m)}if(!this.hasOwnProperty("responseType")||"code"!==this.responseType&&"id_token"!==this.responseType||(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!u.at_hash){var v="An at_hash is needed!";return this.logger.warn(v),Promise.reject(v)}var y=this.dateTimeService.now(),_=1e3*u.iat,b=1e3*u.exp,w=this.getClockSkewInMsec();if(_-w>=y||b+w<=y){var A="Token has expired";return console.error(A),console.error({now:y,issuedAtMSec:_,expiresAtMSec:b}),Promise.reject(A)}var k={accessToken:e,idToken:t,jwks:this.jwks,idTokenClaims:u,idTokenHeader:s,loadKeys:function(){return n.loadJwks()}};return this.disableAtHashCheck?this.checkSignature(k).then(function(e){return{idToken:t,idTokenClaims:u,idTokenClaimsJson:c,idTokenHeader:s,idTokenHeaderJson:a,idTokenExpiresAt:b}}):this.checkAtHash(k).then(function(e){if(!n.disableAtHashCheck&&n.requestAccessToken&&!e){var i="Wrong at_hash";return n.logger.warn(i),Promise.reject(i)}return n.checkSignature(k).then(function(e){var i={idToken:t,idTokenClaims:u,idTokenClaimsJson:c,idTokenHeader:s,idTokenHeaderJson:a,idTokenExpiresAt:b};return n.disableAtHashCheck?i:n.checkAtHash(k).then(function(t){if(n.requestAccessToken&&!t){var e="Wrong at_hash";return n.logger.warn(e),Promise.reject(e)}return i})})})}},{key:"getIdentityClaims",value:function(){var t=this._storage.getItem("id_token_claims_obj");return t?JSON.parse(t):null}},{key:"getGrantedScopes",value:function(){var t=this._storage.getItem("granted_scopes");return t?JSON.parse(t):null}},{key:"getIdToken",value:function(){return this._storage?this._storage.getItem("id_token"):null}},{key:"padBase64",value:function(t){for(;t.length%4!=0;)t+="=";return t}},{key:"getAccessToken",value:function(){return this._storage?this._storage.getItem("access_token"):null}},{key:"getRefreshToken",value:function(){return this._storage?this._storage.getItem("refresh_token"):null}},{key:"getAccessTokenExpiration",value:function(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}},{key:"getAccessTokenStoredAt",value:function(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}},{key:"getIdTokenStoredAt",value:function(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}},{key:"getIdTokenExpiration",value:function(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}},{key:"hasValidAccessToken",value:function(){if(this.getAccessToken()){var t=this._storage.getItem("expires_at"),e=this.dateTimeService.new();return!(t&&parseInt(t,10)=0&&null!==this._storage.getItem(t)?JSON.parse(this._storage.getItem(t)):null}},{key:"authorizationHeader",value:function(){return"Bearer "+this.getAccessToken()}},{key:"logOut",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=!1;"boolean"==typeof e&&(n=e,e={});var r=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(function(e){return t._storage.removeItem(e)}),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),this.logoutUrl&&!n&&(r||this.postLogoutRedirectUri)){var 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(r)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{var a=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec});r&&(a=a.set("id_token_hint",r));var s=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";for(var c in s&&(a=a.set("post_logout_redirect_uri",s),i&&(a=a.set("state",i))),e)a=a.set(c,e[c]);o=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+a.toString()}this.config.openUri(o)}}},{key:"createAndSaveNonce",value:function(){var t=this;return this.createNonce().then(function(e){return t.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("nonce",e):t._storage.setItem("nonce",e),e})}},{key:"ngOnDestroy",value:function(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();var t=this.document.getElementById(this.silentRefreshIFrameName);t&&t.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();var e=this.document.getElementById(this.sessionCheckIFrameName);e&&e.remove()}},{key:"createNonce",value:function(){var t=this;return new Promise(function(e){if(t.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",n=45,r="",o="undefined"==typeof self?null:self.crypto||self.msCrypto;if(o){var a=new Uint8Array(n);o.getRandomValues(a),a.map||(a.map=Array.prototype.map),a=a.map(function(t){return i.charCodeAt(t%i.length)}),r=String.fromCharCode.apply(null,a)}else for(;00&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"code"===this.responseType?this.initCodeFlow(t,e):this.initImplicitFlow(t,e)}},{key:"initCodeFlow",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};""!==this.loginUrl?this.initCodeFlowInternal(e,i):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(t){return"discovery_document_loaded"===t.type})).subscribe(function(n){return t.initCodeFlowInternal(e,i)})}},{key:"initCodeFlowInternal",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};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).");var i={},n=null;"string"==typeof e?n=e:"object"==typeof e&&(i=e),this.createLoginUrl(t,n,null,!1,i).then(this.config.openUri).catch(function(t){console.error("Error in initAuthorizationCodeFlow"),console.error(t)})}},{key:"createChallangeVerifierPairForPKCE",value:function(){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.crypto){t.next=2;break}throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");case 2:return t.next=4,this.createNonce();case 4:return e=t.sent,t.t0=base64UrlEncode,t.next=8,this.crypto.calcHash(e,"sha-256");case 8:return t.t1=t.sent,t.t2=(0,t.t0)(t.t1),t.t3=e,t.abrupt("return",[t.t2,t.t3]);case 12:case"end":return t.stop()}},t,this)}))}},{key:"extractRecognizedCustomParameters",value:function(t){var e=new Map;return this.config.customTokenParameters?(this.config.customTokenParameters.forEach(function(i){t[i]&&e.set(i,JSON.stringify(t[i]))}),e):e}},{key:"revokeTokenAndLogout",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.revocationEndpoint,r=this.getAccessToken(),o=this.getRefreshToken();if(r){var a=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}),s=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){var c=btoa("".concat(this.clientId,":").concat(this.dummyClientSecret));s=s.set("Authorization","Basic "+c)}if(this.useHttpBasicAuth||(a=a.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(a=a.set("client_secret",this.dummyClientSecret)),this.customQueryParams){var u,l=_createForOfIteratorHelper(Object.getOwnPropertyNames(this.customQueryParams));try{for(l.s();!(u=l.n()).done;){var h=u.value;a=a.set(h,this.customQueryParams[h])}}catch(err){l.e(err)}finally{l.f()}}return new Promise(function(c,u){var l,h;if(r){var d=a.set("token",r).set("token_type_hint","access_token");l=t.http.post(n,d,{headers:s})}else l=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null);if(o){var f=a.set("token",o).set("token_type_hint","refresh_token");h=t.http.post(n,f,{headers:s})}else h=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null);i&&(l=l.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(function(t){return 0===t.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(t)})),h=h.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(function(t){return 0===t.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(t)}))),(0,rxjs__WEBPACK_IMPORTED_MODULE_16__.aj)([l,h]).subscribe(function(i){t.logOut(e),c(i),t.logger.info("Token successfully revoked")},function(e){t.logger.error("Error revoking token",e),t.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",e)),u(e)})})}}},{key:"clearLocationHash",value:function(){""!=location.hash&&(location.hash="")}}]),i}(AuthConfig);return t.\u0275fac=function(e){return new(e||t)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_0__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_8__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_17__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DateTimeProvider))},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t}(),OAuthModuleConfig=function t(){_classCallCheck(this,t)},OAuthResourceServerConfig=function t(){_classCallCheck(this,t)},OAuthResourceServerErrorHandler=function t(){_classCallCheck(this,t)},OAuthNoopResourceServerErrorHandler=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"handleError",value:function(t){return(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(t)}}]),t}(),DefaultOAuthInterceptor=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.oAuthService=e,this.errorHandler=i,this.moduleConfig=n}return _createClass(t,[{key:"checkUrl",value:function(t){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(t):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(function(e){return t.toLowerCase().startsWith(e.toLowerCase())})}},{key:"intercept",value:function(t,e){var i=this,n=t.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(n)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_18__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(t){return!!t})),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(t){return"token_received"===t.type}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_19__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(function(t){return(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.U)(function(t){return i.oAuthService.getAccessToken()}))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.zg)(function(n){if(n){var r=t.headers.set("Authorization","Bearer "+n);t=t.clone({headers:r})}return e.handle(t).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(function(t){return i.errorHandler.handleError(t)}))})):e.handle(t).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(function(t){return i.errorHandler.handleError(t)})):e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthModuleConfig,8))},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t}(),NullValidationHandler=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"validateSignature",value:function(t){return Promise.resolve(null)}},{key:"validateAtHash",value:function(t){return Promise.resolve(!0)}}]),t}();function createDefaultLogger(){return console}function createDefaultStorage(){return"undefined"!=typeof sessionStorage?sessionStorage:new MemoryStorage}var OAuthModule=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NullValidationHandler;return{ngModule:t,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:i},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:e},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_8__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:t}),t.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_17__.ez]]}),t}(),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",JwksValidationHandler=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),t=e.call(this),console.error(err),t}return i}(NullValidationHandler),AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("AUTH_CONFIG")},82051:function(t,e){var i,n;void 0===(n="function"==typeof(i=function(){"use strict";function e(t,e,i){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){a(n.response,e,i)},n.onerror=function(){console.error("could not download file")},n.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function n(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}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,o=r.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),a=r.saveAs||("object"!=typeof window||window!==r?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(t,o,a){var s=r.URL||r.webkitURL,c=document.createElement("a");c.download=o=o||t.name||"download",c.rel="noopener","string"==typeof t?(c.href=t,c.origin===location.origin?n(c):i(c.href)?e(t,o,a):n(c,c.target="_blank")):(c.href=s.createObjectURL(t),setTimeout(function(){s.revokeObjectURL(c.href)},4e4),setTimeout(function(){n(c)},0))}:"msSaveOrOpenBlob"in navigator?function(t,r,o){if(r=r||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,o),r);else if(i(t))e(t,r,o);else{var a=document.createElement("a");a.href=t,a.target="_blank",setTimeout(function(){n(a)})}}:function(t,i,n,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof t)return e(t,i,n);var s="application/octet-stream"===t.type,c=/constructor/i.test(r.HTMLElement)||r.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||s&&c||o)&&"undefined"!=typeof FileReader){var l=new FileReader;l.onloadend=function(){var t=l.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=t:location=t,a=null},l.readAsDataURL(t)}else{var h=r.URL||r.webkitURL,d=h.createObjectURL(t);a?a.location=d:location.href=d,a=null,setTimeout(function(){h.revokeObjectURL(d)},4e4)}});r.saveAs=a.saveAs=a,t.exports=a})?i.apply(e,[]):i)||(t.exports=n)},30146:function(t,e,i){"use strict";i.d(e,{nu:function(){return q},Co:function(){return G}});var n=i(64762),r=i(31572),o=i(16073),a=i(71522),s=i(4786),c=i(66283),u=i(75842),l=i(78512),h=i(40878),d=i(31305),f=i(55959),p=i(44689),g=i(79996),m=i(56238),v=i(60509),y=i(25416),_=i(90611),b=i(43835),w=i(66599),A=i(15980),k=i(29236),C=i(43691),T=i(67806),E=i(36922),S=i(61511),I=i(4253),R=i(24621),x=["searchSelectInput"],O=["innerSelectSearch"];function P(t,e){if(1&t){var i=r.EpF();r.TgZ(0,"mat-checkbox",9),r.NdJ("change",function(t){return r.CHM(i),r.oxw()._emitSelectAllBooleanToParent(t.checked)}),r.qZA()}if(2&t){var n=r.oxw();r.Q6J("color",null==n.matFormField?null:n.matFormField.color)("checked",n.toggleAllCheckboxChecked)("indeterminate",n.toggleAllCheckboxIndeterminate)("matTooltip",n.toggleAllCheckboxTooltipMessage)("matTooltipPosition",n.toogleAllCheckboxTooltipPosition)}}function D(t,e){1&t&&r._UZ(0,"mat-spinner",10)}function M(t,e){1&t&&r.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function L(t,e){1&t&&(r.TgZ(0,"mat-icon"),r._uU(1,"close"),r.qZA())}function N(t,e){if(1&t){var i=r.EpF();r.TgZ(0,"button",11),r.NdJ("click",function(){return r.CHM(i),r.oxw()._reset(!0)}),r.YNc(1,M,1,0,"ng-content",12),r.YNc(2,L,2,0,"ng-template",null,13,r.W1O),r.qZA()}if(2&t){var n=r.MAs(3),o=r.oxw();r.xp6(1),r.Q6J("ngIf",o.clearIcon)("ngIfElse",n)}}function z(t,e){if(1&t&&(r.TgZ(0,"div",14),r._uU(1),r.qZA()),2&t){var i=r.oxw();r.xp6(1),r.hij(" ",i.noEntriesFoundLabel,"\n")}}var Z,B=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]]],F=function(t,e){return{"mat-select-search-inner-multiple":t,"mat-select-search-inner-toggle-all":e}},H=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]"],U=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","ngxMatSelectSearchClear",""]]}),t}(),q=function(){var t=Z=function(){function t(e,i,n){var a=this,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,c=arguments.length>4?arguments[4]:void 0,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;_classCallCheck(this,t),this.matSelect=e,this.changeDetectorRef=i,this._viewportRuler=n,this.matOption=s,this.liveAnnouncer=c,this.matFormField=u,this.placeholderLabel="Suche",this.type="text",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 r.vpe,this.onTouched=function(t){},this._options$=new l.X(null),this.optionsList$=this._options$.pipe((0,p.w)(function(t){return t?t.changes.pipe((0,g.U)(function(t){return t.toArray()}),(0,m.O)(t.toArray())):(0,h.of)(null)})),this.optionsLength$=this.optionsList$.pipe((0,g.U)(function(t){return t?t.length:0})),this._formControl=new o.NI(""),this._showNoEntriesFound$=(0,d.aj)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,g.U)(function(t){var e=_slicedToArray(t,2),i=e[0],n=e[1];return a.noEntriesFoundLabel&&i&&n===a.getOptionsLengthOffset()})),this._onDestroy=new f.xQ}return _createClass(t,[{key:"isInsideMatOption",get:function(){return!!this.matOption}},{key:"value",get:function(){return this._formControl.value}},{key:"_options",get:function(){return this._options$.getValue()},set:function(t){this._options$.next(t)}},{key:"ngOnInit",value:function(){var t=this,e="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(e):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,e]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[e]=!0):this.matSelect.panelClass=e,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,v.g)(1),(0,y.R)(this._onDestroy)).subscribe(function(e){e?(t.updateInputWidth(),t.disableInitialFocus||t._focus()):t.clearSearchInput&&t._reset()}),this.matSelect.openedChange.pipe((0,_.q)(1)).pipe((0,y.R)(this._onDestroy)).subscribe(function(){t.matSelect._keyManager?t.matSelect._keyManager.change.pipe((0,y.R)(t._onDestroy)).subscribe(function(){return t.adjustScrollTopToFitActiveOptionIntoView()}):console.log("_keyManager was not initialized."),t._options=t.matSelect.options;var e=t._options.toArray()[t.getOptionsLengthOffset()];t._options.changes.pipe((0,y.R)(t._onDestroy)).subscribe(function(){setTimeout(function(){var i=t._options.toArray(),n=i[t.getOptionsLengthOffset()],r=t.matSelect._keyManager;r&&t.matSelect.panelOpen&&(!!t.matSelect.compareWith(e,n)&&r.activeItem&&i.find(function(e){return t.matSelect.compareWith(e,r.activeItem)})||r.setFirstItemActive(),setTimeout(function(){t.updateInputWidth()}),t.disableScrollToActiveOnOptionsChanged||t.adjustScrollTopToFitActiveOptionIntoView()),e=n})})}),this._showNoEntriesFound$.pipe((0,y.R)(this._onDestroy)).subscribe(function(e){t.matOption&&(e?t.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):t.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe((0,y.R)(this._onDestroy)).subscribe(function(){t.matSelect.panelOpen&&t.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,y.R)(this._onDestroy)).subscribe(function(){t.changeDetectorRef.markForCheck()})}},{key:"_emitSelectAllBooleanToParent",value:function(t){this.toggleAll.emit(t)}},{key:"ngOnDestroy",value:function(){this._onDestroy.next(),this._onDestroy.complete()}},{key:"_isToggleAllCheckboxVisible",value:function(){return this.matSelect.multiple&&this.showToggleAllCheckbox}},{key:"_handleKeydown",value:function(t){var e=this;(t.key&&1===t.key.length||t.keyCode>=u.A&&t.keyCode<=u.Z||t.keyCode>=u.xE&&t.keyCode<=u.aO||t.keyCode===u.L_||this.preventHomeEndKeyPropagation&&(t.keyCode===u.Sd||t.keyCode===u.uR))&&t.stopPropagation(),this.matSelect.multiple&&t.key&&t.keyCode===u.K5&&setTimeout(function(){return e._focus()}),!0===this.enableClearOnEscapePressed&&t.keyCode===u.hY&&this.value&&(this._reset(!0),t.stopPropagation())}},{key:"_handleKeyup",value:function(t){if(t.keyCode===u.LH||t.keyCode===u.JH){var e=this.matSelect._getAriaActiveDescendant(),i=this._options.toArray().findIndex(function(t){return t.id===e});if(-1!==i){var n=this._options.toArray()[i];this.liveAnnouncer.announce(n.viewValue+" "+this.getAriaIndex(i)+this.indexAndLengthScreenReaderText+this.getAriaLength())}}}},{key:"getAriaIndex",value:function(t){return 0===this.getOptionsLengthOffset()?t+1:t}},{key:"getAriaLength",value:function(){return this._options.toArray().length-this.getOptionsLengthOffset()}},{key:"writeValue",value:function(t){this._lastExternalInputValue=t,this._formControl.setValue(t),this.changeDetectorRef.markForCheck()}},{key:"onBlur",value:function(){this.onTouched()}},{key:"registerOnChange",value:function(t){var e=this;this._formControl.valueChanges.pipe((0,b.h)(function(t){return t!==e._lastExternalInputValue}),(0,w.b)(function(){return e._lastExternalInputValue=void 0}),(0,y.R)(this._onDestroy)).subscribe(t)}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"_focus",value:function(){if(this.searchSelectInput&&this.matSelect.panel){var t=this.matSelect.panel.nativeElement,e=t.scrollTop;this.searchSelectInput.nativeElement.focus(),t.scrollTop=e}}},{key:"_reset",value:function(t){this._formControl.setValue(""),t&&this._focus()}},{key:"initMultipleHandling",value:function(){var t=this;this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,y.R)(this._onDestroy)).subscribe(function(e){var i=!1;if(t.matSelect.multiple&&(t.alwaysRestoreSelectedOptionsMulti||t._formControl.value&&t._formControl.value.length)&&t.previousSelectedValues&&Array.isArray(t.previousSelectedValues)){e&&Array.isArray(e)||(e=[]);var n=t.matSelect.options.map(function(t){return t.value});t.previousSelectedValues.forEach(function(r){e.some(function(e){return t.matSelect.compareWith(e,r)})||n.some(function(e){return t.matSelect.compareWith(e,r)})||(e.push(r),i=!0)})}t.previousSelectedValues=e,i&&t.matSelect._onChange(e)})):this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true")}},{key:"adjustScrollTopToFitActiveOptionIntoView",value:function(){if(this.matSelect.panel&&this.matSelect.options.length>0){var t=this.getMatOptionHeight(),e=this.matSelect._keyManager.activeItemIndex||0,i=(0,a.CB)(e,this.matSelect.options,this.matSelect.optionGroups),n=(this.matOption?-1:0)+i+e,r=this.matSelect.panel.nativeElement.scrollTop,o=this.innerSelectSearch.nativeElement.offsetHeight,s=Math.floor((256-o)/t),c=Math.round((r+o)/t)-1;c>=n?this.matSelect.panel.nativeElement.scrollTop=n*t:c+s<=n&&(this.matSelect.panel.nativeElement.scrollTop=(n+1)*t-(256-o))}}},{key:"updateInputWidth",value:function(){if(this.innerSelectSearch&&this.innerSelectSearch.nativeElement){for(var t,e=this.innerSelectSearch.nativeElement;e=e.parentElement;)if(e.classList.contains("mat-select-panel")){t=e;break}t&&(this.innerSelectSearch.nativeElement.style.width=t.clientWidth+"px")}}},{key:"getMatOptionHeight",value:function(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}},{key:"getOptionsLengthOffset",value:function(){return this.matOption?1:0}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(s.gD),r.Y36(r.sBO),r.Y36(I.rL),r.Y36(a.ey,8),r.Y36(R.Kd),r.Y36(c.KE,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["ngx-mat-select-search"]],contentQueries:function(t,e,i){var n;(1&t&&r.Suo(i,U,5),2&t)&&(r.iGM(n=r.CRH())&&(e.clearIcon=n.first))},viewQuery:function(t,e){var i;(1&t&&(r.Gf(x,7,r.SBq),r.Gf(O,7,r.SBq)),2&t)&&(r.iGM(i=r.CRH())&&(e.searchSelectInput=i.first),r.iGM(i=r.CRH())&&(e.innerSelectSearch=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&r.ekj("mat-select-search-inside-mat-option",e.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",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:[r._Bn([{provide:o.JU,useExisting:(0,r.Gpc)(function(){return Z}),multi:!0}])],ngContentSelectors:H,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",""],[1,"mat-select-search-no-entries-found"]],template:function(t,e){1&t&&(r.F$t(B),r._UZ(0,"input",0),r.TgZ(1,"div",1,2),r.YNc(3,P,1,5,"mat-checkbox",3),r.TgZ(4,"input",4,5),r.NdJ("keydown",function(t){return e._handleKeydown(t)})("keyup",function(t){return e._handleKeyup(t)})("blur",function(){return e.onBlur()}),r.qZA(),r.YNc(6,D,1,0,"mat-spinner",6),r.YNc(7,N,4,2,"button",7),r.Hsn(8),r.qZA(),r.YNc(9,z,2,1,"div",8),r.ALo(10,"async")),2&t&&(r.xp6(1),r.Q6J("ngClass",r.WLB(11,F,e.matSelect.multiple,e._isToggleAllCheckboxVisible())),r.xp6(2),r.Q6J("ngIf",e._isToggleAllCheckboxVisible()),r.xp6(1),r.Q6J("type",e.type)("formControl",e._formControl)("placeholder",e.placeholderLabel),r.uIk("aria-label",e.ariaLabel),r.xp6(2),r.Q6J("ngIf",e.searching),r.xp6(1),r.Q6J("ngIf",!e.hideClearSearchButton&&e.value&&!e.searching),r.xp6(2),r.Q6J("ngIf",r.lcZ(10,9,e._showNoEntriesFound$)))},directives:[S.mk,S.O5,o.Fj,o.JJ,o.oH,k.oG,E.gM,T.$g,A.lW,C.Hw],pipes:[S.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}),t=Z=(0,n.gn)([(0,n.fM)(0,(0,r.tBr)(s.gD)),(0,n.fM)(3,(0,r.FiY)()),(0,n.fM)(3,(0,r.tBr)(a.ey)),(0,n.fM)(5,(0,r.FiY)()),(0,n.fM)(5,(0,r.tBr)(c.KE))],t)}(),G=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[S.ez,o.UX,A.ot,k.p9,C.Ps,T.Cq,E.AV]]}),t}()},40963:function(t){"use strict";function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,i,n,r){n=n||"=";var o={};if("string"!=typeof t||0===t.length)return o;var a=/\+/g;t=t.split(i=i||"&");var s=1e3;r&&"number"==typeof r.maxKeys&&(s=r.maxKeys);var c=t.length;s>0&&c>s&&(c=s);for(var u=0;u=0?(l=p.substr(0,g),h=p.substr(g+1)):(l=p,h=""),d=decodeURIComponent(l),f=decodeURIComponent(h),e(o,d)?Array.isArray(o[d])?o[d].push(f):o[d]=[o[d],f]:o[d]=f}return o}},15341:function(t){"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,i,n,r){return i=i||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map(function(r){var o=encodeURIComponent(e(r))+n;return Array.isArray(t[r])?t[r].map(function(t){return o+encodeURIComponent(e(t))}).join(i):o+encodeURIComponent(e(t[r]))}).join(i):r?encodeURIComponent(e(r))+n+encodeURIComponent(e(t)):""}},96577:function(t,e,i){"use strict";i(40963),e.stringify=i(15341)},78512:function(t,e,i){"use strict";i.d(e,{X:function(){return o}});var n=i(55959),r=i(13895),o=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this))._value=t,n}return _createClass(i,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(t){var e=_get(_getPrototypeOf(i.prototype),"_subscribe",this).call(this,t);return e&&!e.closed&&t.next(this._value),e}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new r.N;return this._value}},{key:"next",value:function(t){_get(_getPrototypeOf(i.prototype),"next",this).call(this,this._value=t)}}]),i}(n.xQ)},99867:function(t,e,i){"use strict";i.d(e,{d:function(){return n}});var n=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this)).parent=t,o.outerValue=n,o.outerIndex=r,o.index=0,o}return _createClass(i,[{key:"_next",value:function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}},{key:"_error",value:function(t){this.parent.notifyError(t,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),i}(i(96673).L)},3103:function(t,e,i){"use strict";i.d(e,{P:function(){return a}});var n=i(70653),r=i(40878),o=i(31225),a=function(){var t=function(){function t(e,i,n){_classCallCheck(this,t),this.kind=e,this.value=i,this.error=n,this.hasValue="N"===e}return _createClass(t,[{key:"observe",value:function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}},{key:"do",value:function(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}},{key:"accept",value:function(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return(0,r.of)(this.value);case"E":return(0,o._)(this.error);case"C":return(0,n.c)()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}},{key:"createError",value:function(e){return new t("E",void 0,e)}},{key:"createComplete",value:function(){return t.completeNotification}}]),t}();return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}()},48318:function(t,e,i){"use strict";i.d(e,{y:function(){return u}});var n=i(96673),r=i(55331),o=i(57498),a=i(56197),s=i(13392),c=i(51484),u=function(){var t=function(){function t(e){_classCallCheck(this,t),this._isScalar=!1,e&&(this._subscribe=e)}return _createClass(t,[{key:"lift",value:function(e){var i=new t;return i.source=this,i.operator=e,i}},{key:"subscribe",value:function(t,e,i){var a=this.operator,s=function(t,e,i){if(t){if(t instanceof n.L)return t;if(t[r.b])return t[r.b]()}return t||e||i?new n.L(t,e,i):new n.L(o.c)}(t,e,i);if(s.add(a?a.call(s,this.source):this.source||c.v.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),c.v.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}},{key:"_trySubscribe",value:function(t){try{return this._subscribe(t)}catch(e){c.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){var e=t,i=e.closed,r=e.destination,o=e.isStopped;if(i||o)return!1;t=r&&r instanceof n.L?r:null}return!0}(t)?t.error(e):console.warn(e)}}},{key:"forEach",value:function(t,e){var i=this;return new(e=l(e))(function(e,n){var r;r=i.subscribe(function(e){try{t(e)}catch(i){n(i),r&&r.unsubscribe()}},n,e)})}},{key:"_subscribe",value:function(t){var e=this.source;return e&&e.subscribe(t)}},{key:a.L,value:function(){return this}},{key:"pipe",value:function(){for(var t=arguments.length,e=new Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:0;return e>0?_get(_getPrototypeOf(i.prototype),"schedule",this).call(this,t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}},{key:"execute",value:function(t,e){return e>0||this.closed?_get(_getPrototypeOf(i.prototype),"execute",this).call(this,t,e):this._execute(t,e)}},{key:"requestAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==n&&n>0||null===n&&this.delay>0?_get(_getPrototypeOf(i.prototype),"requestAsyncId",this).call(this,t,e,n):t.flush(this)}}]),i}(i(8277).o),o=new(function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return i}(i(91098).v))(r),a=i(87570),s=i(96673),c=i(3103),u=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return _classCallCheck(this,i),(r=e.call(this,t)).scheduler=n,r.delay=o,r}return _createClass(i,[{key:"scheduleMessage",value:function(t){this.destination.add(this.scheduler.schedule(i.dispatch,this.delay,new l(t,this.destination)))}},{key:"_next",value:function(t){this.scheduleMessage(c.P.createNext(t))}},{key:"_error",value:function(t){this.scheduleMessage(c.P.createError(t)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(c.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){var e=t.notification,i=t.destination;e.observe(i),this.unsubscribe()}}]),i}(s.L),l=function t(e,i){_classCallCheck(this,t),this.notification=e,this.destination=i},h=i(13895),d=i(19291),f=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,o=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,i),(t=e.call(this)).scheduler=o,t._events=[],t._infiniteTimeWindow=!1,t._bufferSize=n<1?1:n,t._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(t._infiniteTimeWindow=!0,t.next=t.nextInfiniteTimeWindow):t.next=t.nextTimeWindow,t}return _createClass(i,[{key:"nextInfiniteTimeWindow",value:function(t){var e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),_get(_getPrototypeOf(i.prototype),"next",this).call(this,t)}},{key:"nextTimeWindow",value:function(t){this._events.push(new p(this._getNow(),t)),this._trimBufferThenGetEvents(),_get(_getPrototypeOf(i.prototype),"next",this).call(this,t)}},{key:"_subscribe",value:function(t){var e,i=this._infiniteTimeWindow,n=i?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=n.length;if(this.closed)throw new h.N;if(this.isStopped||this.hasError?e=a.w.EMPTY:(this.observers.push(t),e=new d.W(this,t)),r&&t.add(t=new u(t,r)),i)for(var s=0;se&&(o=Math.max(o,r-e)),o>0&&n.splice(0,o),n}}]),i}(n.xQ),p=function t(e,i){_classCallCheck(this,t),this.time=e,this.value=i}},55959:function(t,e,i){"use strict";i.d(e,{Yc:function(){return u},xQ:function(){return l}});var n=i(48318),r=i(96673),o=i(87570),a=i(13895),s=i(19291),c=i(55331),u=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var n;return _classCallCheck(this,i),(n=e.call(this,t)).destination=t,n}return i}(r.L),l=function(){var t=function(t){_inherits(i,t);var e=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=e.call(this)).observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return _createClass(i,[{key:c.b,value:function(){return new u(this)}},{key:"lift",value:function(t){var e=new h(this,this);return e.operator=t,e}},{key:"next",value:function(t){if(this.closed)throw new a.N;if(!this.isStopped)for(var e=this.observers,i=e.length,n=e.slice(),r=0;r1?Array.prototype.slice.call(arguments):t)},n,i)})}function c(t,e,i,n,r){var o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){var a=t;t.addEventListener(e,i,r),o=function(){return a.removeEventListener(e,i,r)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){var s=t;t.on(e,i),o=function(){return s.off(e,i)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){var u=t;t.addListener(e,i),o=function(){return u.removeListener(e,i)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var l=0,h=t.length;l0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.P;return(!(0,o.k)(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=r.P),new n.y(function(i){return i.add(e.schedule(s,t,{subscriber:i,counter:0,period:t})),i})}function s(t){var e=t.subscriber,i=t.counter,n=t.period;e.next(i),this.schedule({subscriber:e,counter:i+1,period:n},n)}},31906:function(t,e,i){"use strict";i.d(e,{T:function(){return s}});var n=i(48318),r=i(76163),o=i(97471),a=i(99342);function s(){for(var t=arguments.length,e=new Array(t),i=0;i1&&"number"==typeof e[e.length-1]&&(s=e.pop())):"number"==typeof u&&(s=e.pop()),null===c&&1===e.length&&e[0]instanceof n.y?e[0]:(0,o.J)(s)((0,a.n)(e,c))}},40878:function(t,e,i){"use strict";i.d(e,{of:function(){return a}});var n=i(76163),r=i(99342),o=i(62570);function a(){for(var t=arguments.length,e=new Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,s=-1;return(0,o.k)(e)?s=Number(e)<1?1:Number(e):(0,a.K)(e)&&(i=e),(0,a.K)(i)||(i=r.P),new n.y(function(e){var n=(0,o.k)(t)?t:+t-i.now();return i.schedule(c,n,{index:0,period:s,subscriber:e})})}function c(t){var e=t.index,i=t.period,n=t.subscriber;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}}},30810:function(t,e,i){"use strict";i.d(e,{e:function(){return u}});var n=i(48569),r=i(59829),o=i(6268),a=function(){function t(e){_classCallCheck(this,t),this.durationSelector=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new s(t,this.durationSelector))}}]),t}(),s=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,t)).durationSelector=n,r.hasValue=!1,r}return _createClass(i,[{key:"_next",value:function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e;try{e=(0,this.durationSelector)(t)}catch(n){return this.destination.error(n)}var i=(0,o.D)(this,e);!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}},{key:"clearThrottle",value:function(){var t=this.value,e=this.hasValue,i=this.throttled;i&&(this.remove(i),this.throttled=null,i.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}},{key:"notifyNext",value:function(t,e,i,n){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),i}(r.L),c=i(81110);function u(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.P;return e=function(){return(0,c.H)(t,i)},function(t){return t.lift(new a(e))}}},47727:function(t,e,i){"use strict";i.d(e,{K:function(){return a}});var n=i(59829),r=i(99867),o=i(6268);function a(t){return function(e){var i=new s(t),n=e.lift(i);return i.caught=n}}var s=function(){function t(e){_classCallCheck(this,t),this.selector=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new c(t,this.selector,this.caught))}}]),t}(),c=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this,t)).selector=n,o.caught=r,o}return _createClass(i,[{key:"error",value:function(t){if(!this.isStopped){var e;try{e=this.selector(t,this.caught)}catch(s){return void _get(_getPrototypeOf(i.prototype),"error",this).call(this,s)}this._unsubscribeAndRecycle();var n=new r.d(this,void 0,void 0);this.add(n);var a=(0,o.D)(this,e,void 0,void 0,n);a!==n&&this.add(a)}}}]),i}(n.L)},436:function(t,e,i){"use strict";i.d(e,{b:function(){return r}});var n=i(73982);function r(t,e){return(0,n.zg)(t,e,1)}},47701:function(t,e,i){"use strict";i.d(e,{b:function(){return o}});var n=i(96673),r=i(48569);function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.P;return function(i){return i.lift(new a(t,e))}}var a=function(){function t(e,i){_classCallCheck(this,t),this.dueTime=e,this.scheduler=i}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new s(t,this.dueTime,this.scheduler))}}]),t}(),s=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this,t)).dueTime=n,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return _createClass(i,[{key:"_next",value:function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}},{key:"clearDebounce",value:function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}]),i}(n.L);function c(t){t.debouncedNext()}},7768:function(t,e,i){"use strict";i.d(e,{d:function(){return r}});var n=i(96673);function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(e){return e.lift(new o(t))}}var o=function(){function t(e){_classCallCheck(this,t),this.defaultValue=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new a(t,this.defaultValue))}}]),t}(),a=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,t)).defaultValue=n,r.isEmpty=!0,r}return _createClass(i,[{key:"_next",value:function(t){this.isEmpty=!1,this.destination.next(t)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),i}(n.L)},60509:function(t,e,i){"use strict";i.d(e,{g:function(){return s}});var n=i(48569),r=i(38802),o=i(96673),a=i(3103);function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.P,i=(0,r.J)(t)?+t-e.now():Math.abs(t);return function(t){return t.lift(new c(i,e))}}var c=function(){function t(e,i){_classCallCheck(this,t),this.delay=e,this.scheduler=i}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new u(t,this.delay,this.scheduler))}}]),t}(),u=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this,t)).delay=n,o.scheduler=r,o.queue=[],o.active=!1,o.errored=!1,o}return _createClass(i,[{key:"_schedule",value:function(t){this.active=!0,this.destination.add(t.schedule(i.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}},{key:"scheduleNotification",value:function(t){if(!0!==this.errored){var e=this.scheduler,i=new l(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}}},{key:"_next",value:function(t){this.scheduleNotification(a.P.createNext(t))}},{key:"_error",value:function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(a.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){for(var e=t.source,i=e.queue,n=t.scheduler,r=t.destination;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(r);if(i.length>0){var o=Math.max(0,i[0].time-n.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1}}]),i}(o.L),l=function t(e,i){_classCallCheck(this,t),this.time=e,this.notification=i}},98720:function(t,e,i){"use strict";i.d(e,{x:function(){return r}});var n=i(96673);function r(t,e){return function(i){return i.lift(new o(t,e))}}var o=function(){function t(e,i){_classCallCheck(this,t),this.compare=e,this.keySelector=i}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new a(t,this.compare,this.keySelector))}}]),t}(),a=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this,t)).keySelector=r,o.hasKey=!1,"function"==typeof n&&(o.compare=n),o}return _createClass(i,[{key:"compare",value:function(t,e){return t===e}},{key:"_next",value:function(t){var e;try{var i=this.keySelector;e=i?i(t):t}catch(r){return this.destination.error(r)}var n=!1;if(this.hasKey)try{n=(0,this.compare)(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}]),i}(n.L)},43835:function(t,e,i){"use strict";i.d(e,{h:function(){return r}});var n=i(96673);function r(t,e){return function(i){return i.lift(new o(t,e))}}var o=function(){function t(e,i){_classCallCheck(this,t),this.predicate=e,this.thisArg=i}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg))}}]),t}(),a=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this,t)).predicate=n,o.thisArg=r,o.count=0,o}return _createClass(i,[{key:"_next",value:function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}]),i}(n.L)},11520:function(t,e,i){"use strict";i.d(e,{x:function(){return o}});var n=i(96673),r=i(87570);function o(t){return function(e){return e.lift(new a(t))}}var a=function(){function t(e){_classCallCheck(this,t),this.callback=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new s(t,this.callback))}}]),t}(),s=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var o;return _classCallCheck(this,i),(o=e.call(this,t)).add(new r.w(n)),o}return i}(n.L)},3530:function(t,e,i){"use strict";i.d(e,{P:function(){return u}});var n=i(39665),r=i(43835),o=i(90611),a=i(7768),s=i(90790),c=i(13392);function u(t,e){var i=arguments.length>=2;return function(u){return u.pipe(t?(0,r.h)(function(e,i){return t(e,i,u)}):c.y,(0,o.q)(1),i?(0,a.d)(e):(0,s.T)(function(){return new n.K}))}}},79996:function(t,e,i){"use strict";i.d(e,{U:function(){return r}});var n=i(96673);function r(t,e){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new o(t,e))}}var o=function(){function t(e,i){_classCallCheck(this,t),this.project=e,this.thisArg=i}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new a(t,this.project,this.thisArg))}}]),t}(),a=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r){var o;return _classCallCheck(this,i),(o=e.call(this,t)).project=n,o.count=0,o.thisArg=r||_assertThisInitialized(o),o}return _createClass(i,[{key:"_next",value:function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}]),i}(n.L)},88414:function(t,e,i){"use strict";i.d(e,{h:function(){return r}});var n=i(96673);function r(t){return function(e){return e.lift(new o(t))}}var o=function(){function t(e){_classCallCheck(this,t),this.value=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new a(t,this.value))}}]),t}(),a=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,t)).value=n,r}return _createClass(i,[{key:"_next",value:function(t){this.destination.next(this.value)}}]),i}(n.L)},97471:function(t,e,i){"use strict";i.d(e,{J:function(){return o}});var n=i(73982),r=i(13392);function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return(0,n.zg)(r.y,t)}},73982:function(t,e,i){"use strict";i.d(e,{zg:function(){return c}});var n=i(6268),r=i(59829),o=i(99867),a=i(79996),s=i(19764);function c(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof e?function(n){return n.pipe(c(function(i,n){return(0,s.D)(t(i,n)).pipe((0,a.U)(function(t,r){return e(i,t,n,r)}))},i))}:("number"==typeof e&&(i=e),function(e){return e.lift(new u(t,i))})}var u=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;_classCallCheck(this,t),this.project=e,this.concurrent=i}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new l(t,this.project,this.concurrent))}}]),t}(),l=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _classCallCheck(this,i),(r=e.call(this,t)).project=n,r.concurrent=o,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return _createClass(i,[{key:"_next",value:function(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),i}(r.L)},21564:function(t,e,i){"use strict";i.d(e,{x:function(){return r}});var n=i(96673);function r(){return function(t){return t.lift(new o(t))}}var o=function(){function t(e){_classCallCheck(this,t),this.connectable=e}return _createClass(t,[{key:"call",value:function(t,e){var i=this.connectable;i._refCount++;var n=new a(t,i),r=e.subscribe(n);return n.closed||(n.connection=i.connect()),r}}]),t}(),a=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,t)).connectable=n,r}return _createClass(i,[{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var i=this.connection,n=t._connection;this.connection=null,!n||i&&n!==i||n.unsubscribe()}}else this.connection=null}}]),i}(n.L)},1055:function(t,e,i){"use strict";i.d(e,{B:function(){return s}});var n=i(42875),r=i(21564),o=i(55959);function a(){return new o.xQ}function s(){return function(t){return(0,r.x)()((e=a,function(t){var i;i="function"==typeof e?e:function(){return e};var r=Object.create(t,n.N);return r.source=t,r.subjectFactory=i,r})(t));var e}}},68303:function(t,e,i){"use strict";i.d(e,{d:function(){return r}});var n=i(66994);function r(t,e,i){var r;return r=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:i},function(t){return t.lift(function(t){var e,i,r=t.bufferSize,o=void 0===r?Number.POSITIVE_INFINITY:r,a=t.windowTime,s=void 0===a?Number.POSITIVE_INFINITY:a,c=t.refCount,u=t.scheduler,l=0,h=!1,d=!1;return function(t){l++,e&&!h||(h=!1,e=new n.t(o,s,u),i=t.subscribe({next:function(t){e.next(t)},error:function(t){h=!0,e.error(t)},complete:function(){d=!0,i=void 0,e.complete()}}));var r=e.subscribe(this);this.add(function(){l--,r.unsubscribe(),i&&!d&&c&&0===l&&(i.unsubscribe(),i=void 0,e=void 0)})}}(r))}}},56238:function(t,e,i){"use strict";i.d(e,{O:function(){return o}});var n=i(47930),r=i(76163);function o(){for(var t=arguments.length,e=new Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:c;return function(e){return e.lift(new a(t))}}var a=function(){function t(e){_classCallCheck(this,t),this.errorFactory=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new s(t,this.errorFactory))}}]),t}(),s=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,t)).errorFactory=n,r.hasValue=!1,r}return _createClass(i,[{key:"_next",value:function(t){this.hasValue=!0,this.destination.next(t)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}]),i}(r.L);function c(){return new n.K}},29085:function(t,e,i){"use strict";i.d(e,{V:function(){return h}});var n=i(48569),r=function(){function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t}(),o=i(38802),a=i(59829),s=i(6268),c=function(){function t(e,i,n,r){_classCallCheck(this,t),this.waitFor=e,this.absoluteTimeout=i,this.withObservable=n,this.scheduler=r}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new u(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}]),t}(),u=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n,r,o,a){var s;return _classCallCheck(this,i),(s=e.call(this,t)).absoluteTimeout=n,s.waitFor=r,s.withObservable=o,s.scheduler=a,s.action=null,s.scheduleTimeout(),s}return _createClass(i,[{key:"scheduleTimeout",value:function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(i.dispatchTimeout,this.waitFor,this))}},{key:"_next",value:function(t){this.absoluteTimeout||this.scheduleTimeout(),_get(_getPrototypeOf(i.prototype),"_next",this).call(this,t)}},{key:"_unsubscribe",value:function(){this.action=null,this.scheduler=null,this.withObservable=null}}],[{key:"dispatchTimeout",value:function(t){var e=t.withObservable;t._unsubscribeAndRecycle(),t.add((0,s.D)(t,e))}}]),i}(a.L),l=i(31225);function h(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.P;return function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.P;return function(n){var r=(0,o.J)(t),a=r?+t-i.now():Math.abs(t);return n.lift(new c(a,r,e,i))}}(t,(0,l._)(new r),e)}},62570:function(t,e,i){"use strict";i.d(e,{r:function(){return o}});var n=i(48318),r=i(87570);function o(t,e){return new n.y(function(i){var n=new r.w,o=0;return n.add(e.schedule(function(){o!==t.length?(i.next(t[o++]),i.closed||n.add(this.schedule())):i.complete()})),n})}},8277:function(t,e,i){"use strict";i.d(e,{o:function(){return n}});var n=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,t,n)).scheduler=t,r.work=n,r.pending=!1,r}return _createClass(i,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=t;var i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this}},{key:"requestAsyncId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(t.flush.bind(t,this),i)}},{key:"recycleAsyncId",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}},{key:"execute",value:function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(t,e){var i,n=!1;try{this.work(t)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}},{key:"_unsubscribe",value:function(){var t=this.id,e=this.scheduler,i=e.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}]),i}(function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){return _classCallCheck(this,i),e.call(this)}return _createClass(i,[{key:"schedule",value:function(t){return this}}]),i}(i(87570).w))},91098:function(t,e,i){"use strict";i.d(e,{v:function(){return r}});var n=function(){var t=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.now;_classCallCheck(this,t),this.SchedulerAction=e,this.now=i}return _createClass(t,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,t).schedule(i,e)}}]),t}();return t.now=function(){return Date.now()},t}(),r=function(t){_inherits(i,t);var e=_createSuper(i);function i(t){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.now;return _classCallCheck(this,i),(r=e.call(this,t,function(){return i.delegate&&i.delegate!==_assertThisInitialized(r)?i.delegate.now():o()})).actions=[],r.active=!1,r.scheduled=void 0,r}return _createClass(i,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return i.delegate&&i.delegate!==this?i.delegate.schedule(t,e,n):_get(_getPrototypeOf(i.prototype),"schedule",this).call(this,t,e,n)}},{key:"flush",value:function(t){var e=this.actions;if(this.active)e.push(t);else{var i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}}]),i}(n)},91741:function(t,e,i){"use strict";i.d(e,{r:function(){return r}});var n=function(t){_inherits(i,t);var e=_createSuper(i);function i(t,n){var r;return _classCallCheck(this,i),(r=e.call(this,t,n)).scheduler=t,r.work=n,r}return _createClass(i,[{key:"requestAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==n&&n>0?_get(_getPrototypeOf(i.prototype),"requestAsyncId",this).call(this,t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(function(){return t.flush(null)})))}},{key:"recycleAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&n>0||null===n&&this.delay>0)return _get(_getPrototypeOf(i.prototype),"recycleAsyncId",this).call(this,t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}]),i}(i(8277).o),r=new(function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"flush",value:function(t){this.active=!0,this.scheduled=void 0;var e,i=this.actions,n=-1,r=i.length;t=t||i.shift();do{if(e=t.execute(t.state,t.delay))break}while(++n2&&void 0!==arguments[2]?arguments[2]:0;return null!==n&&n>0?_get(_getPrototypeOf(i.prototype),"requestAsyncId",this).call(this,t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=s(t.flush.bind(t,null))))}},{key:"recycleAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&n>0||null===n&&this.delay>0)return _get(_getPrototypeOf(i.prototype),"recycleAsyncId",this).call(this,t,e,n);0===t.actions.length&&(c(e),t.scheduled=void 0)}}]),i}(i(8277).o),l=new(function(t){_inherits(i,t);var e=_createSuper(i);function i(){return _classCallCheck(this,i),e.apply(this,arguments)}return _createClass(i,[{key:"flush",value:function(t){this.active=!0,this.scheduled=void 0;var e,i=this.actions,n=-1,r=i.length;t=t||i.shift();do{if(e=t.execute(t.state,t.delay))break}while(++n=0}},82056:function(t,e,i){"use strict";function n(t){return null!==t&&"object"==typeof t}i.d(e,{K:function(){return n}})},4710:function(t,e,i){"use strict";i.d(e,{b:function(){return r}});var n=i(48318);function r(t){return!!t&&(t instanceof n.y||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},5168:function(t,e,i){"use strict";function n(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}i.d(e,{t:function(){return n}})},76163:function(t,e,i){"use strict";function n(t){return t&&"function"==typeof t.schedule}i.d(e,{K:function(){return n}})},16015:function(t,e,i){"use strict";i.d(e,{s:function(){return l}});var n=i(30625),r=i(14294),o=i(25686),a=i(56197),s=i(59653),c=i(5168),u=i(82056),l=function(t){if(t&&"function"==typeof t[a.L])return l=t,function(t){var e=l[a.L]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if((0,s.z)(t))return(0,n.V)(t);if((0,c.t)(t))return i=t,function(t){return i.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,r.z),t};if(t&&"function"==typeof t[o.hZ])return e=t,function(t){for(var i=e[o.hZ]();;){var n=i.next();if(n.done){t.complete();break}if(t.next(n.value),t.closed)break}return"function"==typeof i.return&&t.add(function(){i.return&&i.return()}),t};var e,i,l,h=(0,u.K)(t)?"an invalid object":"'".concat(t,"'");throw new TypeError("You provided ".concat(h," where a stream was expected. You can provide an Observable, Promise, Array, or Iterable."))}},30625:function(t,e,i){"use strict";i.d(e,{V:function(){return n}});var n=function(t){return function(e){for(var i=0,n=t.length;i4&&void 0!==arguments[4]?arguments[4]:new n.d(t,i,a);if(!s.closed)return e instanceof o.y?e.subscribe(s):(0,r.s)(e)(s)}},77632:function(t,e,i){"use strict";function n(t,e,i,n){return new(i||(i=Promise))(function(r,o){function a(t){try{c(n.next(t))}catch(e){o(e)}}function s(t){try{c(n.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(a,s)}c((n=n.apply(t,e||[])).next())})}i.d(e,{mG:function(){return n}})},64762:function(t,e,i){"use strict";function n(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a}function r(t,e){return function(i,n){e(i,n,t)}}function o(t,e,i,n){return new(i||(i=Promise))(function(r,o){function a(t){try{c(n.next(t))}catch(e){o(e)}}function s(t){try{c(n.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(a,s)}c((n=n.apply(t,e||[])).next())})}i.d(e,{gn:function(){return n},fM:function(){return r},mG:function(){return o}})},60306:function(t){"use strict";t.exports={i8:"5.3.0"}}},function(t){"use strict";t(t.s=73868)}])})(); \ No newline at end of file diff --git a/dist/apps/admin-gui/polyfills-es2015.03f7c9814e5f66aacc18.js b/dist/apps/admin-gui/polyfills-es2015.00fbe56f1744b4c72ba9.js similarity index 100% rename from dist/apps/admin-gui/polyfills-es2015.03f7c9814e5f66aacc18.js rename to dist/apps/admin-gui/polyfills-es2015.00fbe56f1744b4c72ba9.js diff --git a/dist/apps/admin-gui/polyfills-es5.754dff22599dccf78864.js b/dist/apps/admin-gui/polyfills-es5.c2c1c046e31214165c70.js similarity index 100% rename from dist/apps/admin-gui/polyfills-es5.754dff22599dccf78864.js rename to dist/apps/admin-gui/polyfills-es5.c2c1c046e31214165c70.js diff --git a/dist/apps/admin-gui/runtime-es2015.d239ee352653d428bee4.js b/dist/apps/admin-gui/runtime-es2015.1b7a6fa5b759030896cc.js similarity index 93% rename from dist/apps/admin-gui/runtime-es2015.d239ee352653d428bee4.js rename to dist/apps/admin-gui/runtime-es2015.1b7a6fa5b759030896cc.js index e3ec630c2..7e05277b1 100644 --- a/dist/apps/admin-gui/runtime-es2015.d239ee352653d428bee4.js +++ b/dist/apps/admin-gui/runtime-es2015.1b7a6fa5b759030896cc.js @@ -1 +1 @@ -!function(){"use strict";var e,t,r,n,o={},u={};function i(e){var t=u[e];if(void 0!==t)return t.exports;var r=u[e]={id:e,loaded:!1,exports:{}};return o[e].call(r.exports,r,r.exports,i),r.loaded=!0,r.exports}i.m=o,i.amdO={},e=[],i.O=function(t,r,n,o){if(!r){var u=1/0;for(f=0;f=o)&&Object.keys(i.O).every(function(e){return i.O[e](r[c])})?r.splice(c--,1):(a=!1,o0&&e[f-1][2]>o;f--)e[f]=e[f-1];e[f]=[r,n,o]},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},r=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},i.t=function(e,n){if(1&n&&(e=this(e)),8&n)return e;if("object"==typeof e&&e){if(4&n&&e.__esModule)return e;if(16&n&&"function"==typeof e.then)return e}var o=Object.create(null);i.r(o);var u={};t=t||[null,r({}),r([]),r(r)];for(var a=2&n&&e;"object"==typeof a&&!~t.indexOf(a);a=r(a))Object.getOwnPropertyNames(a).forEach(function(t){u[t]=function(){return e[t]}});return u.default=function(){return e},i.d(o,u),o},i.d=function(e,t){for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.f={},i.e=function(e){return Promise.all(Object.keys(i.f).reduce(function(t,r){return i.f[r](e,t),t},[]))},i.u=function(e){return e+"-es2015."+{202:"21b4da1032193d03d59a",427:"b96b40af2684eabd5e17",515:"77e27303f50c4be90525",518:"dd75a0a442e8ef7229c3",749:"1c6e6337bd9eafee7ae1",781:"b177b3ecce240d2c4c49",827:"0e18eea6844f0fc345dc",917:"a8dd294601a6f2de987b",943:"133e9074b3526ddcf20c"}[e]+".js"},i.miniCssF=function(e){return"styles.228a7ffc2bbc2ac5f969.css"},i.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n={},i.l=function(e,t,r,o){if(n[e])n[e].push(t);else{var u,a;if(void 0!==r)for(var c=document.getElementsByTagName("script"),f=0;f=o)&&Object.keys(i.O).every(function(e){return i.O[e](r[c])})?r.splice(c--,1):(a=!1,o0&&e[f-1][2]>o;f--)e[f]=e[f-1];e[f]=[r,n,o]},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},r=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},i.t=function(e,n){if(1&n&&(e=this(e)),8&n)return e;if("object"==typeof e&&e){if(4&n&&e.__esModule)return e;if(16&n&&"function"==typeof e.then)return e}var o=Object.create(null);i.r(o);var u={};t=t||[null,r({}),r([]),r(r)];for(var a=2&n&&e;"object"==typeof a&&!~t.indexOf(a);a=r(a))Object.getOwnPropertyNames(a).forEach(function(t){u[t]=function(){return e[t]}});return u.default=function(){return e},i.d(o,u),o},i.d=function(e,t){for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.f={},i.e=function(e){return Promise.all(Object.keys(i.f).reduce(function(t,r){return i.f[r](e,t),t},[]))},i.u=function(e){return e+"-es2015."+{202:"b0fc40b33eca685afcf9",427:"beaf65977e4daa30fd76",515:"07e9c4eebbb53157acfd",518:"dd75a0a442e8ef7229c3",749:"acb04cd96f576727553a",781:"7595fee21c51b94b8465",827:"cb251f6e5ea0e068bdb7",917:"0b65908ca89a9fdd7319",943:"133e9074b3526ddcf20c"}[e]+".js"},i.miniCssF=function(e){return"styles.228a7ffc2bbc2ac5f969.css"},i.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n={},i.l=function(e,t,r,o){if(n[e])n[e].push(t);else{var u,a;if(void 0!==r)for(var c=document.getElementsByTagName("script"),f=0;f=o)&&Object.keys(i.O).every(function(e){return i.O[e](r[c])})?r.splice(c--,1):(a=!1,o0&&e[f-1][2]>o;f--)e[f]=e[f-1];e[f]=[r,n,o]},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},r=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},i.t=function(e,n){if(1&n&&(e=this(e)),8&n)return e;if("object"==typeof e&&e){if(4&n&&e.__esModule)return e;if(16&n&&"function"==typeof e.then)return e}var o=Object.create(null);i.r(o);var u={};t=t||[null,r({}),r([]),r(r)];for(var a=2&n&&e;"object"==typeof a&&!~t.indexOf(a);a=r(a))Object.getOwnPropertyNames(a).forEach(function(t){u[t]=function(){return e[t]}});return u.default=function(){return e},i.d(o,u),o},i.d=function(e,t){for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.f={},i.e=function(e){return Promise.all(Object.keys(i.f).reduce(function(t,r){return i.f[r](e,t),t},[]))},i.u=function(e){return e+"-es5."+{202:"21b4da1032193d03d59a",427:"b96b40af2684eabd5e17",515:"77e27303f50c4be90525",518:"dd75a0a442e8ef7229c3",749:"1c6e6337bd9eafee7ae1",781:"b177b3ecce240d2c4c49",827:"0e18eea6844f0fc345dc",917:"a8dd294601a6f2de987b",943:"133e9074b3526ddcf20c"}[e]+".js"},i.miniCssF=function(e){return"styles.228a7ffc2bbc2ac5f969.css"},i.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n={},i.l=function(e,t,r,o){if(n[e])n[e].push(t);else{var u,a;if(void 0!==r)for(var c=document.getElementsByTagName("script"),f=0;f=o)&&Object.keys(i.O).every(function(e){return i.O[e](r[c])})?r.splice(c--,1):(a=!1,o0&&e[f-1][2]>o;f--)e[f]=e[f-1];e[f]=[r,n,o]},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},r=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},i.t=function(e,n){if(1&n&&(e=this(e)),8&n)return e;if("object"==typeof e&&e){if(4&n&&e.__esModule)return e;if(16&n&&"function"==typeof e.then)return e}var o=Object.create(null);i.r(o);var u={};t=t||[null,r({}),r([]),r(r)];for(var a=2&n&&e;"object"==typeof a&&!~t.indexOf(a);a=r(a))Object.getOwnPropertyNames(a).forEach(function(t){u[t]=function(){return e[t]}});return u.default=function(){return e},i.d(o,u),o},i.d=function(e,t){for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.f={},i.e=function(e){return Promise.all(Object.keys(i.f).reduce(function(t,r){return i.f[r](e,t),t},[]))},i.u=function(e){return e+"-es5."+{202:"b0fc40b33eca685afcf9",427:"beaf65977e4daa30fd76",515:"07e9c4eebbb53157acfd",518:"dd75a0a442e8ef7229c3",749:"acb04cd96f576727553a",781:"7595fee21c51b94b8465",827:"cb251f6e5ea0e068bdb7",917:"0b65908ca89a9fdd7319",943:"133e9074b3526ddcf20c"}[e]+".js"},i.miniCssF=function(e){return"styles.228a7ffc2bbc2ac5f969.css"},i.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n={},i.l=function(e,t,r,o){if(n[e])n[e].push(t);else{var u,a;if(void 0!==r)for(var c=document.getElementsByTagName("script"),f=0;f - + diff --git a/dist/apps/password-reset/main.366e3bca4d80eec4ef91.js b/dist/apps/password-reset/main.e5344e7ad5d164b62576.js similarity index 68% rename from dist/apps/password-reset/main.366e3bca4d80eec4ef91.js rename to dist/apps/password-reset/main.e5344e7ad5d164b62576.js index 1007e5ecc..a88b15f82 100644 --- a/dist/apps/password-reset/main.366e3bca4d80eec4ef91.js +++ b/dist/apps/password-reset/main.e5344e7ad5d164b62576.js @@ -1 +1 @@ -(self.webpackChunkperun_web_apps=self.webpackChunkperun_web_apps||[]).push([[179],{3446:t=>{function e(t){return Promise.resolve().then(()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=()=>[],e.resolve=e,e.id=3446,t.exports=e},1523:(t,e,i)=>{"use strict";var n=i(1511),s=i(1572);class o extends n.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class r extends o{static makeCurrent(){(0,n.HT)(new r)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(c=c||document.querySelector("base"),c?c.getAttribute("href"):null);return null==e?null:function(t){a=a||document.createElement("a"),a.setAttribute("href",t);const e=a.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){c=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return(0,n.Mx)(document.cookie,t)}}let a,c=null;const u=new s.OlP("TRANSITION_ID"),h=[{provide:s.ip1,useFactory:function(t,e,i){return()=>{i.get(s.CZH).donePromise.then(()=>{const i=(0,n.q)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>i.remove(t))})}},deps:[u,n.K0,s.zs3],multi:!0}];class l{static init(){(0,s.VLi)(new l)}addToWindow(t){s.dqk.getAngularTestability=(e,i=!0)=>{const n=t.findTestabilityInTree(e,i);if(null==n)throw new Error("Could not find testability for element.");return n},s.dqk.getAllAngularTestabilities=()=>t.getAllTestabilities(),s.dqk.getAllAngularRootElements=()=>t.getAllRootElements(),s.dqk.frameworkStabilizers||(s.dqk.frameworkStabilizers=[]),s.dqk.frameworkStabilizers.push(t=>{const e=s.dqk.getAllAngularTestabilities();let i=e.length,n=!1;const o=function(e){n=n||e,i--,0==i&&t(n)};e.forEach(function(t){t.whenStable(o)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:i?(0,n.q)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let d=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const f=new s.OlP("EventManagerPlugins");let g=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,i){return this._findPluginFor(e).addEventListener(t,e,i)}addGlobalEventListener(t,e,i){return this._findPluginFor(e).addGlobalEventListener(t,e,i)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const i=this._plugins;for(let n=0;n{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),w=(()=>{class t extends m{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,i){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,i.push(e.appendChild(n))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(y),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,i)=>{this._addStylesToHost(t,i,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(y))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function y(t){(0,n.q)().remove(t)}const b={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/"},A=/%COMP%/g;function _(t,e,i){for(let n=0;n{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let T=(()=>{class t{constructor(t,e,i){this.eventManager=t,this.sharedStylesHost=e,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new k(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case s.ifc.Emulated:{let i=this.rendererByCompId.get(e.id);return i||(i=new C(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,i)),i.applyToHost(t),i}case 1:case s.ifc.ShadowDom:return new E(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=_(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(g),s.LFG(w),s.LFG(s.AFp))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class k{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(b[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,n){if(n){e=n+":"+e;const s=b[n];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const n=b[i];n?t.removeAttributeNS(n,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,n){n&(s.JOm.DashCase|s.JOm.Important)?t.style.setProperty(e,i,n&s.JOm.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&s.JOm.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,v(i)):this.eventManager.addEventListener(t,e,v(i))}}class C extends k{constructor(t,e,i,n){super(t),this.component=i;const s=_(n+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(A,n+"-"+i.id),this.hostAttr="_nghost-%COMP%".replace(A,n+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class E extends k{constructor(t,e,i,n){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=_(n.id,n.styles,[]);for(let o=0;o{class t extends p{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,i){return t.addEventListener(e,i,!1),()=>this.removeEventListener(t,e,i)}removeEventListener(t,e,i){return t.removeEventListener(e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const R=["alt","control","meta","shift"],P={"\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"},S={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"},B={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let M=(()=>{class t extends p{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,s){const o=t.parseEventName(i),r=t.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,n.q)().onAndCancel(e,o.domEventName,r))}static parseEventName(e){const i=e.toLowerCase().split("."),n=i.shift();if(0===i.length||"keydown"!==n&&"keyup"!==n)return null;const s=t._normalizeKey(i.pop());let o="";if(R.forEach(t=>{const e=i.indexOf(t);e>-1&&(i.splice(e,1),o+=t+".")}),o+=s,0!=i.length||0===s.length)return null;const r={};return r.domEventName=n,r.fullKey=o,r}static getEventFullKey(t){let e="",i=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&S.hasOwnProperty(e)&&(e=S[e]))}return P[e]||e}(t);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),R.forEach(n=>{n!=i&&(0,B[n])(t)&&(e+=n+".")}),e+=i,e}static eventCallback(e,i,n){return s=>{t.getEventFullKey(s)===e&&n.runGuarded(()=>i(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),K=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,s.Yz7)({factory:function(){return(0,s.LFG)(H)},token:t,providedIn:"root"}),t})();function x(t){return new H(t.get(n.K0))}let H=(()=>{class t extends K{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case s.q3G.NONE:return e;case s.q3G.HTML:return(0,s.qzn)(e,"HTML")?(0,s.z3N)(e):(0,s.EiD)(this._doc,String(e)).toString();case s.q3G.STYLE:return(0,s.qzn)(e,"Style")?(0,s.z3N)(e):e;case s.q3G.SCRIPT:if((0,s.qzn)(e,"Script"))return(0,s.z3N)(e);throw new Error("unsafe value used in a script context");case s.q3G.URL:return(0,s.yhl)(e),(0,s.qzn)(e,"URL")?(0,s.z3N)(e):(0,s.mCW)(String(e));case s.q3G.RESOURCE_URL:if((0,s.qzn)(e,"ResourceURL"))return(0,s.z3N)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return(0,s.JVY)(t)}bypassSecurityTrustStyle(t){return(0,s.L6k)(t)}bypassSecurityTrustScript(t){return(0,s.eBb)(t)}bypassSecurityTrustUrl(t){return(0,s.LAX)(t)}bypassSecurityTrustResourceUrl(t){return(0,s.pB0)(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=(0,s.Yz7)({factory:function(){return x((0,s.LFG)(s.gxx))},token:t,providedIn:"root"}),t})();const j=(0,s.eFA)(s._c5,"browser",[{provide:s.Lbi,useValue:n.bD},{provide:s.g9A,useValue:function(){r.makeCurrent(),l.init()},multi:!0},{provide:n.K0,useFactory:function(){return(0,s.RDi)(document),document},deps:[]}]),I=[[],{provide:s.zSh,useValue:"root"},{provide:s.qLn,useFactory:function(){return new s.qLn},deps:[]},{provide:f,useClass:z,multi:!0,deps:[n.K0,s.R0b,s.Lbi]},{provide:f,useClass:M,multi:!0,deps:[n.K0]},[],{provide:T,useClass:T,deps:[g,w,s.AFp]},{provide:s.FYo,useExisting:T},{provide:m,useExisting:w},{provide:w,useClass:w,deps:[n.K0]},{provide:s.dDg,useClass:s.dDg,deps:[s.R0b]},{provide:g,useClass:g,deps:[f,s.R0b]},{provide:n.JF,useClass:d,deps:[]},[]];let L=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:s.AFp,useValue:e.appId},{provide:u,useExisting:s.AFp},h]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(t,12))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:I,imports:[n.ez,s.hGG]}),t})();function O(){return new F((0,s.LFG)(n.K0))}let F=(()=>{class t{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=(0,s.Yz7)({factory:O,token:t,providedIn:"root"}),t})();"undefined"!=typeof window&&window;var D=i(9063);class q{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const N=new s.OlP("basePath");class U{constructor(t={}){this.apiKeys=t.apiKeys,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.withCredentials=t.withCredentials,this.encoder=t.encoder}selectHeaderContentType(t){if(0===t.length)return;const e=t.find(t=>this.isJsonMime(t));return void 0===e?t[0]:e}selectHeaderAccept(t){if(0===t.length)return;const e=t.find(t=>this.isJsonMime(t));return void 0===e?t[0]:e}isJsonMime(t){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==t&&(e.test(t)||"application/json-patch+json"===t.toLowerCase())}}let G=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}convertAttributeToNonunique(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}convertAttributeToUnique(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("attribute",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteAttributeDefinitions(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let n=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("attributes[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllAttributeDefinitions(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAttribute(t,e,i,n,s,o,r,a,c,u,h,l="body",d=!1){let f=new D.LE({encoder:this.encoder});null!=t&&(f=f.set("attributeName",t)),null!=e&&(f=f.set("attributeId",e)),null!=i&&(f=f.set("facility",i)),null!=n&&(f=f.set("user",n)),null!=s&&(f=f.set("vo",s)),null!=o&&(f=f.set("resource",o)),null!=r&&(f=f.set("member",r)),null!=a&&(f=f.set("group",a)),null!=c&&(f=f.set("host",c)),null!=u&&(f=f.set("userExtSource",u)),null!=h&&(f=f.set("key",h));let g=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(g=g.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(g=g.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;g=g.set("Authorization","Bearer "+t)}const p=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==p&&(g=g.set("Accept",p)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{params:f,withCredentials:this.configuration.withCredentials,headers:g,observe:l,reportProgress:d})}getAttributeDefinitionById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeDefinitionByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeDefinitionsByNamespace(t,e="body",i=!1){if(null==t)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("namespace",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeModulesDependenciesForAttributeGraphText(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("format",t)),null!=e&&(s=s.set("attrName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAttributeModulesDependenciesGraphText(t,e="body",i=!1){if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("format",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeRights(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributesDefinitionWithRights(t,e,i,n,s,o,r,a,c="body",u=!1){let h=new D.LE({encoder:this.encoder});null!=t&&(h=h.set("member",t)),null!=e&&(h=h.set("user",e)),null!=i&&(h=h.set("vo",i)),null!=n&&(h=h.set("group",n)),null!=s&&(h=h.set("resource",s)),null!=o&&(h=h.set("facility",o)),null!=r&&(h=h.set("host",r)),null!=a&&(h=h.set("userExtSource",a));let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const d=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==d&&(l=l.set("Accept",d)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{params:h,withCredentials:this.configuration.withCredentials,headers:l,observe:c,reportProgress:u})}getEntitylessAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("key",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getEntitylessAttributesByKey(t,e="body",i=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("key",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEntitylessAttributesByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("attrName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEntitylessAttributesWithKeys(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("attrName",t)),e&&e.forEach(t=>{s=s.append("keys[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getEntitylessKeys(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilityAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilityResourceUserMemberAttributes(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==n)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("user",i)),null!=n&&(r=r.set("member",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getFacilityUserAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupResourceAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getGroupResourceAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getGroupResourceAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getHostAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getHostAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getHostAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("host",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getLogins(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getLogins.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberAndUserAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==e)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("workWithUserAttributes",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberAndUserAttributesByNames(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("workWithUserAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberGroupAndUserAttributesByNames(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attrNames[]",t)}),null!=n&&(r=r.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberGroupAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("attributeId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberGroupAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("attributeName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberGroupAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberGroupAttributesByNames(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberResourceAndUserFacilityAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("workWithUserAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberResourceAndUserFacilityAttributesByNames(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attrNames[]",t)}),null!=n&&(r=r.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberResourceAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberResourceAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberResourceAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesFacilityService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesFacilityServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let s=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("services[]",t)}),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesGroupResourceService(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("group",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getRequiredAttributesHostService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==e)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("host",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("workWithUserAttributes",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesMemberGroup(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("workWithUserAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getRequiredAttributesMemberGroupResourceService(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==n)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let a=new D.LE({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("group",i)),null!=n&&(a=a.set("member",n)),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getRequiredAttributesMemberGroupService(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("member",i)),null!=n&&(r=r.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRequiredAttributesMemberResource(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("workWithUserAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getRequiredAttributesMemberResourceService(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("member",i)),null!=n&&(r=r.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRequiredAttributesResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesResourceService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesResourceServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let s=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("services[]",t)}),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesUserFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesVoService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("vo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourceAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceGroupAndGroupAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==i)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("workWithGroupAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getResourceGroupAndGroupAttributesByNames(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attrNames[]",t)}),null!=n&&(r=r.set("workWithGroupAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getResourceGroupAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceGroupMemberAttributesByNames(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==n)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("member",i)),n&&n.forEach(t=>{r=r.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getUserAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserExtSourceAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserExtSourceAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserExtSourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("userExtSource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourceAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserFacilityAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("attributeId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getUserFacilityAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("attributeName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getUserFacilityAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getVoAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getVoAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getVoAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeAttributesForFacilityResourceGroupUserMember(t,e,i,n,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==i)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==n)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let c=new D.LE({encoder:this.encoder});null!=t&&(c=c.set("facility",t)),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("group",i)),null!=n&&(c=c.set("user",n)),null!=s&&(c=c.set("member",s)),o&&o.forEach(t=>{c=c.append("attributes[]",t)});let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}removeAttributesForFacilityResourceUserMember(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==i)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==n)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let a=new D.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("user",i)),null!=n&&(a=a.set("member",n)),s&&s.forEach(t=>{a=a.append("attributes[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}removeEntitylessAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("key",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupResourceAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attribute",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeGroupResourceAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeGroupResourceAttributesWorkWithGroupAttributes(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)}),null!=n&&(r=r.set("workWithGroupAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeHostAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeHostAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeMemberAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeMemberAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeMemberAttributesWorkWithUserAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)}),null!=i&&(o=o.set("workWithUserAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeMemberGroupAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("attribute",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeMemberGroupAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeMemberGroupAttributesWorkWithUserAttributes(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)}),null!=n&&(r=r.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeMemberResourceAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attribute",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeMemberResourceAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeResourceAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeResourceAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUesAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserExtSourceAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserFacilityAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("attribute",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeUserFacilityAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),i&&i.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeVoAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeVoAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}setAttributeRights(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAttributeRights was null or undefined when calling setAttributeRights.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setEntitylessAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityResourceGroupUserMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityResourceUserMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setHostAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetHostAttribute was null or undefined when calling setHostAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setHostAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetHostAttributes was null or undefined when calling setHostAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupWithUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAndUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberWithUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceGroupWithGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserAttribute was null or undefined when calling setUserAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserAttributes was null or undefined when calling setUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserExtSourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserExtSourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserFacilityAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setVoAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoAttribute was null or undefined when calling setVoAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setVoAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoAttributes was null or undefined when calling setVoAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}auditMessagesManagerLog(t,e="body",i=!1){if(null==t)throw new Error("Required parameter msg was null or undefined when calling auditMessagesManagerLog.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("msg",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/log`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createAuditerConsumer(t,e="body",i=!1){if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling createAuditerConsumer.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("consumerName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/createAuditerConsumer`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllAuditerConsumers(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getAllAuditerConsumers`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAuditerMessagesCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getAuditerMessagesCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getLastMessageId(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getLastMessageId`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getMessages(t,e="body",i=!1){let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("count",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getMessages`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMessagesByCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter count was null or undefined when calling getMessagesByCount.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("count",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getMessagesByCount`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMessagesPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetMessagesPage was null or undefined when calling getMessagesPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/auditMessagesManager/getMessagesPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}pollConsumerMessages(t,e="body",i=!1){if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling pollConsumerMessages.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("consumerName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/pollConsumerMessages`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}setLastProcessedId(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling setLastProcessedId.");if(null==e)throw new Error("Required parameter lastProcessedId was null or undefined when calling setLastProcessedId.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("consumerName",t)),null!=e&&(s=s.set("lastProcessedId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/setLastProcessedId`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),V=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}getAllPolicies(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllRolesManagementRules(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAuthzAdminGroups(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("role",t)),null!=e&&(o=o.set("complementaryObjectId",e)),null!=i&&(o=o.set("complementaryObjectName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getAuthzRichAdmins(t,e,i,n,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==n)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let c=new D.LE({encoder:this.encoder});null!=t&&(c=c.set("role",t)),null!=e&&(c=c.set("complementaryObjectId",e)),null!=i&&(c=c.set("complementaryObjectName",i)),n&&n.forEach(t=>{c=c.append("specificAttributes",t)}),null!=s&&(c=c.set("allUserAttributes",s)),null!=o&&(c=c.set("onlyDirectAdmins",o));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}getFacilitiesWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let s=new D.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupRoleNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupRoles(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("groupId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let s=new D.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getLoggedUser(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getMembersWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let s=new D.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getPerunPrincipal(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPrincipalRoleNames(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getResourcesWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let s=new D.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSecurityTeamsWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let s=new D.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserRoleNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserRoles(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("userId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let s=new D.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}isFacilityAdmin(t,e="body",i=!1){let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isGroupAdmin(t,e="body",i=!1){let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isPerunAdmin(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}isVoAdmin(t,e="body",i=!1){let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}keepAlive(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}loadAuthorizationComponents(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}setRoleWithGroupComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter setRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setRoleWithUserComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter setRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unsetRoleWithGroupComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter unsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unsetRoleWithUserComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter unsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),W=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}createAutorship(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateAuthorship was null or undefined when calling createAutorship.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createAuthorship`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createCategoryCat(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateCategory was null or undefined when calling createCategoryCat.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/cat`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createCategoryNR(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateCategory1 was null or undefined when calling createCategoryNR.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/n-r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createPublication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreatePublication was null or undefined when calling createPublication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublication`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createPublicationSystem(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreatePublicationSystem was null or undefined when calling createPublicationSystem.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublicationSystem`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createThanks(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateThanks was null or undefined when calling createThanks.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createThanks`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAuthorship(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter publicationId was null or undefined when calling deleteAuthorship.");if(null==e)throw new Error("Required parameter userId was null or undefined when calling deleteAuthorship.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("publicationId",t)),null!=e&&(s=s.set("userId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteAuthorship`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteCategory(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteCategory.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteCategory`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deletePublication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deletePublication.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deletePublicationSystem(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deletePublicationSystem.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublicationSystem`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteThanks(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteThanks.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteThanks`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findAllAuthors(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAllAuthors`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}findAuthorsByPublicationId(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findAuthorsByPublicationId.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAuthorsByPublicationId`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findExternalPublications(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling findExternalPublications.");if(null==e)throw new Error("Required parameter yearSince was null or undefined when calling findExternalPublications.");if(null==i)throw new Error("Required parameter yearTill was null or undefined when calling findExternalPublications.");if(null==n)throw new Error("Required parameter pubSysNamespace was null or undefined when calling findExternalPublications.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("yearSince",e)),null!=i&&(r=r.set("yearTill",i)),null!=n&&(r=r.set("pubSysNamespace",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findExternalPublications`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}findNewAuthors(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findNewAuthors.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findNewAuthors`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findPublicationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findPublicationById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findPublicationsByFilter(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter userId was null or undefined when calling findPublicationsByFilter.");let o=new D.LE({encoder:this.encoder});null!=e&&(o=o.set("yearSince",e)),null!=i&&(o=o.set("yearTill",i)),null!=t&&(o=o.set("userId",t));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByFilter`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}findPublicationsByGUIFilter(t,e,i,n,s,o,r,a,c,u="body",h=!1){let l=new D.LE({encoder:this.encoder});null!=t&&(l=l.set("title",t)),null!=e&&(l=l.set("isbn",e)),null!=i&&(l=l.set("doi",i)),null!=n&&(l=l.set("id",n)),null!=s&&(l=l.set("year",s)),null!=o&&(l=l.set("category",o)),null!=r&&(l=l.set("yearSince",r)),null!=a&&(l=l.set("yearTill",a)),null!=c&&(l=l.set("userId",c));let d=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(d=d.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(d=d.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;d=d.set("Authorization","Bearer "+t)}const f=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==f&&(d=d.set("Accept",f)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByGUIFilter`,{params:l,withCredentials:this.configuration.withCredentials,headers:d,observe:u,reportProgress:h})}findSimilarPublications(t,e,i,n="body",s=!1){let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("title",t)),null!=e&&(o=o.set("doi",e)),null!=i&&(o=o.set("isbn",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findSimilarPublications`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getCategories(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getCategories`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPublicationSystems(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getPublicationSystems`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getRank(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRank.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getRank`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichThanksByPublicationId(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichThanksByPublicationId.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getRichThanksByPublicationId`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}lockPublications(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputLockPublications was null or undefined when calling lockPublications.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/lockPublications`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateCategory(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateCategory was null or undefined when calling updateCategory.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updateCategory`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updatePublication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdatePublication was null or undefined when calling updatePublication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublication`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updatePublicationSystem(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdatePublicationSystem was null or undefined when calling updatePublicationSystem.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublicationSystem`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Y=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}getCurrentDatabaseVersion(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getCurrentDatabaseVersion`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getDatabaseDriverInformation(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getDatabaseDriverInformation`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getDatabaseInformation(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getDatabaseInformation`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getTimeOfQueryPerformance(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getTimeOfQueryPerformance`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Z=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}addExtSourceWithGroupSource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling addExtSourceWithGroupSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithGroupSource.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("source",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/g-s`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addExtSourceWithVoSource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addExtSourceWithVoSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithVoSource.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("source",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/v-s`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createExtSourceFromExtSourceObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter extSourceObject was null or undefined when calling createExtSourceFromExtSourceObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/extSourcesManager/createExtSource/es`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createExtSourceWithNameType(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createExtSourceWithNameType.");if(null==e)throw new Error("Required parameter type was null or undefined when calling createExtSourceWithNameType.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("name",t)),null!=e&&(s=s.set("type",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/createExtSource/n-t`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteExtSource.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/deleteExtSource`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getExtSourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getExtSourceById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getExtSourceByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getExtSourceByName.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("name",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceByName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getExtSources(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSources`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getGroupExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupExtSources.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getGroupExtSources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoExtSources.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getVoExtSources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}loadExtSourcesDefinitions(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/loadExtSourcesDefinitions`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeExtSourceWithGroupSource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeExtSourceWithGroupSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithGroupSource.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("source",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/g-s`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeExtSourceWithVoSource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeExtSourceWithVoSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithVoSource.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("source",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/v-s`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Q=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}addFacilityAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroup.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addFacilityAdminGroupByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroupByFacilityName.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroupByFacilityName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addFacilityAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUser.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addFacilityAdminUserByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUserByFacilityName.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUserByFacilityName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addFacilityOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwner.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwner.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addFacilityOwnerByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addFacilityOwnerByFacilityNameOwnerName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-o-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addFacilityOwnerByOwnerName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByOwnerName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/o-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addHost(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHost.");if(null==e)throw new Error("Required parameter hostname was null or undefined when calling addHost.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("hostname",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addHostByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHostByFacilityName.");if(null==e)throw new Error("Required parameter hostname was null or undefined when calling addHostByFacilityName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("hostname",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addHosts(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHosts.");if(null==e)throw new Error("Required parameter hostnames was null or undefined when calling addHosts.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("hostnames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addHostsByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHostsByFacilityName.");if(null==e)throw new Error("Required parameter hostnames was null or undefined when calling addHostsByFacilityName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("hostnames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}assignSecurityTeam(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeam.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeam.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("securityTeam",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}assignSecurityTeamByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeamByFacilityName.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeamByFacilityName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("securityTeam",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributes.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyAttributesByDestinationName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributesByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesByDestinationName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacilityName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/dest-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyAttributesBySourceDestinationNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacilityName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-dest-names`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyAttributesBySourceName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributesBySourceName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyManagers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagers.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyManagers.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyManagersByDestinationName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagersByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersByDestinationName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacilityName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/dest-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyManagersBySourceDestinationNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacilityName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-dest-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyManagersBySourceName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyManagersBySourceName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyOwners(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwners.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyOwners.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyOwnersByDestinationName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwnersByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersByDestinationName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacilityName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/dest-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyOwnersBySourceDestinationNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacilityName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-dest-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyOwnersBySourceName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyOwnersBySourceName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createFacility.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("name",t)),null!=e&&(s=s.set("description",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/createFacility`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling deleteFacility.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("force",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling deleteFacilityByFacilityName.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility/f-name`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilities`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllowedGroups(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroups.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("service",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getAllowedGroupsByFacilityName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroupsByFacilityName.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("service",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups/f-name`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getAllowedRichGroupsWithAttributes(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributes.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributes.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("vo",i)),null!=n&&(r=r.set("service",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAllowedRichGroupsWithAttributesByFacilityName(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("vo",i)),null!=n&&(r=r.set("service",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes/f-name`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAllowedUsersOfFacility(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacility.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("service",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getAllowedUsersOfFacilityByFacilityName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacilityByFacilityName.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("service",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s/f-name`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getAllowedVos(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedVos.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedVosByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedVosByFacilityName.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos/f-name`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedFacilitiesByGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedFacilitiesByGroup.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/group`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedFacilitiesByMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedFacilitiesByMember.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/member`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedFacilitiesByService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedFacilitiesByService.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/service`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedFacilitiesByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedFacilitiesByUser.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/user`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesByAssignedServiceForFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResourcesByAssignedService`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAssignedResourcesForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacility.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesForFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacilityByFacilityName.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacility.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesForFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityByFacilityName.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedSecurityTeams(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeams.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedSecurityTeamsByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeamsByFacilityName.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedUsers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsers.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAssignedUsersByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsersByFacilityName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getBansForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facilityId was null or undefined when calling getBansForFacility.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facilityId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForFacility`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getBansForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getBansForUser.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEnrichedFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedFacilities`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getEnrichedHosts(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedHosts.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getEnrichedHosts.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedHosts`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilitiesByAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttribute.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttribute.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeName",t)),null!=e&&(s=s.set("attributeValue",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByAttribute`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilitiesByDestination(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling getFacilitiesByDestination.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("destination",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByDestination`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilitiesByHostName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling getFacilitiesByHostName.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByHostName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilitiesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getFacilitiesByIds.");let n=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilitiesCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFacilitiesWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilitiesWhereUserIsAdmin.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesWhereUserIsAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAdminGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroups.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAdminUsers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsers.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsers.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("onlyDirectAdmins",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilityAdminUsersByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsersByFacilityName.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsersByFacilityName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("onlyDirectAdmins",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilityBan(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityBan.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityBan.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBan`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilityBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getFacilityBanById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBanById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getFacilityById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getFacilityByName.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("name",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityByName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityForHost(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getFacilityForHost.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("host",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityForHost`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityOwners(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwners.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityOwnersByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwnersByFacilityName.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getHostById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHosts(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHosts.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostsByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsByFacilityName.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostsByHostname(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling getHostsByHostname.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsByHostname`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostsCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsCount.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostsCountByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsCountByFacilityName.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getOwnerFacilities(t,e="body",i=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling getOwnerFacilities.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("owner",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwnerFacilities`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getRichFacilities`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeBanByUserIdFacilityId(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeBanByUserIdFacilityId.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeBanByUserIdFacilityId.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byUserIdFacilityId`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroup.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityAdminGroupByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroupByFacilityName.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroupByFacilityName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUser.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityAdminUserByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUserByFacilityName.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUserByFacilityName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeFacilityBanById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byId`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeFacilityOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwner.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwner.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityOwnerByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityOwnerByFacilityNameOwnerName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-o-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityOwnerByOwnerName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByOwnerName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/o-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeHost(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHost.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("host",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHost`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeHostByHostname(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling removeHostByHostname.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHostByHostname`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeHosts(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeHosts.");if(null==e)throw new Error("Required parameter hosts was null or undefined when calling removeHosts.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("hosts[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeHostsByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeHostsByFacilityName.");if(null==e)throw new Error("Required parameter hosts was null or undefined when calling removeHostsByFacilityName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("hosts[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeSecurityTeam(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeam.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeam.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("securityTeam",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeSecurityTeamByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeamByFacilityName.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeamByFacilityName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("securityTeam",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}setFacilityBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetBanForUserOnFacility was null or undefined when calling setFacilityBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFacility was null or undefined when calling updateFacility.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateFacility`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFacilityBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateBanForFacility was null or undefined when calling updateFacilityBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),J=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}getFacilityAdminGroupsByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroupsByFacilityName.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),X=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}addMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling addMember.");let s=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("member",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addMembers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling addMembers.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("members[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}canExtendMembershipInGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createGroupUnion(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resultGroup",t)),null!=e&&(s=s.set("operandGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createGroupWithParentGroupNameDescription(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("parentGroup",t)),null!=e&&(o=o.set("name",e)),null!=i&&(o=o.set("description",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}createGroupWithVoNameDescription(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("name",e)),null!=i&&(o=o.set("description",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}deleteGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("force",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputDeleteGroups was null or undefined when calling deleteGroups.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/deleteGroups`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}extendMembershipInGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}forceAllSubGroupsSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}forceGroupStructureSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}forceGroupSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllGroupsFromAllVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups/all`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllMemberGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllRichGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");let n=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("attrNames[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllRichGroupsWithAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAllRichSubGroupsWithGroupAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==e)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("name",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupByName`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupMemberById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==e)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("member",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupMembersCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupMembersCountsByGroupStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupMembersCountsByVoStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupRichMembersByIds(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==e)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("members[]",t)}),i&&i.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getGroupUnions(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==e)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("reverseDirection",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupUnions`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupsByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let n=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedGroups was null or undefined when calling getGroupsPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getGroupsPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getIndirectMembershipPaths(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberRichGroupsWithAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRichGroupByIdWithAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("groupId",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSubgroupsPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getSubgroupsPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}isGroupMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==e)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isGroupMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}moveGroupWithDestinationGroupMovingGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let s=new D.LE({encoder:this.encoder});null!=e&&(s=s.set("destinationGroup",e)),null!=t&&(s=s.set("movingGroup",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupUnion(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resultGroup",t)),null!=e&&(s=s.set("operandGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMember.");let s=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("member",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeMembers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("members[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}setGroupsMemberStatus(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==e)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==i)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("status",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}updateGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateGroup was null or undefined when calling updateGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/updateGroup`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),tt=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}getGroupMemberData(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/integrationManager/getGroupMemberData`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),et=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}canExtendMembership(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/canExtendMembership`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createMemberForCandidate(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/c`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createMemberForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberForUser was null or undefined when calling createMemberForUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createMemberFromExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/extSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSpecificMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSpecificMember was null or undefined when calling createSpecificMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSpecificMember`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMember1 was null or undefined when calling createSponsoredMembers.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMembersFromCSV(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let n=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("members[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}extendMembership(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findCompleteRichMembersByAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let o=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("attrsNames[]",t)}),null!=e&&(o=o.set("searchString",e)),i&&i.forEach(t=>{o=o.append("allowedStatuses[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}findCompleteRichMembersForGroup(t,e,i,n,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==n)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let c=new D.LE({encoder:this.encoder});null!=t&&(c=c.set("group",t)),e&&e.forEach(t=>{c=c.append("attrsNames[]",t)}),s&&s.forEach(t=>{c=c.append("allowedStatuses[]",t)}),o&&o.forEach(t=>{c=c.append("allowedGroupStatuses[]",t)}),null!=i&&(c=c.set("searchString",i)),null!=n&&(c=c.set("lookingInParentGroup",n));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}findCompleteRichMembersForVo(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("attrsNames[]",t)}),n&&n.forEach(t=>{r=r.append("allowedStatuses[]",t)}),null!=i&&(r=r.set("searchString",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}findMembersInVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("searchString",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findMembersInVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}findSponsoredCompleteRichMembersForVo(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==n)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("attrsNames[]",t)}),null!=i&&(r=r.set("searchString",i)),null!=n&&(r=r.set("onlySponsored",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAllMembers(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllMembers`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllNamespacesRules(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllSponsoredMembersAndTheirSponsors(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getCompleteRichMembersForGroup(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let a=new D.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),i&&i.forEach(t=>{a=a.append("allowedStatuses[]",t)}),n&&n.forEach(t=>{a=a.append("allowedGroupStatuses[]",t)}),null!=e&&(a=a.set("lookingInParentGroup",e)),s&&s.forEach(t=>{a=a.append("attrsNames[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getCompleteRichMembersForGroupResource(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==i)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==n)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attrsNames[]",t)}),n&&n.forEach(t=>{r=r.append("allowedStatuses[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getCompleteRichMembersForVo(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("allowedStatuses[]",t)}),i&&i.forEach(t=>{o=o.append("attrsNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberByExtSourceNameAndExtLogin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==i)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("extLogin",e)),null!=i&&(o=o.set("extSourceName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberByUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByUser`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMembers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("status",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMembersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let n=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMembersByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMembersCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMembersPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedMembers was null or undefined when calling getMembersPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/getMembersPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getMembersWithStatusCount(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==e)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("status",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount/status`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRichMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichMemberWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichMembersByIds(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let s=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)}),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getSponsoredMembersAndTheirSponsors(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSponsorsByMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/member`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSponsorsByVo(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("extSourceName",e)),null!=i&&(r=r.set("extLogin",i)),n&&n.forEach(t=>{r=r.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/vo`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}moveMembership(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==e)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==i)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("sourceUser",e)),null!=i&&(o=o.set("targetUser",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeSponsor(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("sponsor",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}sendAccountActivationLinkEmail(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==n)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("namespace",e)),null!=i&&(r=r.set("emailAttributeURN",i)),null!=n&&(r=r.set("language",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}sendPasswordResetLinkEmail(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==n)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let a=new D.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("emailAttributeURN",i)),null!=n&&(a=a.set("language",n)),null!=s&&(a=a.set("baseUrl",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}setSponsoredMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/setSponsoredMember`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setSponsorshipForMember(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("sponsoredMember",t)),null!=e&&(o=o.set("sponsor",e)),null!=i&&(o=o.set("validityTo",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}setStatus(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==e)throw new Error("Required parameter status was null or undefined when calling setStatus.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("status",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}sponsorMember(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("sponsor",e)),null!=i&&(o=o.set("validityTo",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}updateSponsorshipValidity(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("sponsor",e)),null!=i&&(o=o.set("validityTo",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}validateMemberAsync(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),it=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}createOwner(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateOwner was null or undefined when calling createOwner.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/ownersManager/createOwner`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("owner",t)),null!=e&&(s=s.set("force",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAllOwners(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwners`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getOwnerById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getOwnerByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("owner",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerByName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),nt=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}sentMessageToRTWithMemberQueue(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("memberId",t)),null!=e&&(r=r.set("queue",e)),null!=i&&(r=r.set("subject",i)),null!=n&&(r=r.set("text",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}sentMessageToRTWithQueue(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("queue",t)),null!=e&&(o=o.set("subject",e)),null!=i&&(o=o.set("text",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}sentMessageToRTWithVo(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("voId",t)),null!=e&&(o=o.set("subject",e)),null!=i&&(o=o.set("text",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}sentMessageToRTWithVoQueue(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("voId",t)),null!=e&&(r=r.set("queue",e)),null!=i&&(r=r.set("subject",i)),null!=n&&(r=r.set("text",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),st=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}addApplicationMailForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addApplicationMailForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addGroupsToAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let n=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("groups[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}approveApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}checkForSimilarUsersWithAuthInfo(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}consolidateIdentityUsingToken(t,e="body",i=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("token",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}copyFormFromGroupToGroup(t,e,i="body",n=!1){let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyFormFromGroupToVo(t,e,i="body",n=!1){let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toVo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyFormFromVoToGroup(t,e,i="body",n=!1){let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyFormFromVoToVo(t,e,i="body",n=!1){let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toVo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyMailsFromGroupToGroup(t,e,i="body",n=!1){let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyMailsFromGroupToVo(t,e,i="body",n=!1){let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toVo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyMailsFromVoToGroup(t,e,i="body",n=!1){let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyMailsFromVoToVo(t,e,i="body",n=!1){let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toVo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createApplicationFormInGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createApplicationFormInVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteApplicationMailForGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("id",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteApplicationMailForVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("id",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteGroupsFromAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let n=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("groups[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationDataById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationMailsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationMailsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationsForGroup(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(t=>{r=r.append("state[]",t)}),null!=i&&(r=r.set("dateFrom",i)),null!=n&&(r=r.set("dateTo",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getApplicationsForMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getApplicationsForVo(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("state[]",t)}),null!=i&&(r=r.set("dateFrom",i)),null!=n&&(r=r.set("dateTo",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getConsolidatorToken(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFormItemsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFormItemsForGroupWithType(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("type",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFormItemsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFormItemsForVoWithType(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("type",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupApplicationForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsToAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoApplicationForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}rejectApplication(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t)),null!=e&&(s=s.set("reason",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}sendInvitation(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let r=new D.LE({encoder:this.encoder});null!=i&&(r=r.set("voId",i)),null!=n&&(r=r.set("name",n)),null!=t&&(r=r.set("email",t)),null!=e&&(r=r.set("language",e));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}sendInvitationForGroup(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let a=new D.LE({encoder:this.encoder});null!=i&&(a=a.set("voId",i)),null!=n&&(a=a.set("groupId",n)),null!=s&&(a=a.set("name",s)),null!=t&&(a=a.set("email",t)),null!=e&&(a=a.set("language",e));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}sendInvitationGroupToExistingUser(t,e,i,n="body",s=!1){let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("userId",t)),null!=e&&(o=o.set("voId",e)),null!=i&&(o=o.set("groupId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}sendInvitationToExistingUser(t,e,i="body",n=!1){let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("userId",t)),null!=e&&(s=s.set("voId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}sendMessage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSendMessage was null or undefined when calling sendMessage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setSendingEnabled(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}submitApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSubmitApplication was null or undefined when calling submitApplication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateApplicationMail(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateForm was null or undefined when calling updateForm.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemData(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputFormItemData was null or undefined when calling updateFormItemData.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsData(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputFormItemData1 was null or undefined when calling updateFormItemsData.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}verifyApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ot=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}activateGroupResourceAssignment(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("async",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}addAdminToGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addAdminToUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addResourceSelfServiceGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addResourceSelfServiceUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}allowGroupsToResources(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");let o=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("groups[]",t)}),e&&e.forEach(t=>{o=o.append("resources[]",t)}),null!=i&&(o=o.set("async",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}assignGroupToResource(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let a=new D.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("async",i)),null!=n&&(a=a.set("assignInactive",n)),null!=s&&(a=a.set("autoAssignSubgroups",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}assignGroupToResources(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let a=new D.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),e&&e.forEach(t=>{a=a.append("resources[]",t)}),null!=i&&(a=a.set("async",i)),null!=n&&(a=a.set("assignInactive",n)),null!=s&&(a=a.set("autoAssignSubgroups",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}assignGroupsToResource(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let a=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{a=a.append("groups[]",t)}),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("async",i)),null!=n&&(a=a.set("assignInactive",n)),null!=s&&(a=a.set("autoAssignSubgroups",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}assignResourceTagToResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}assignService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling assignService.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}assignServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling assignServices.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("services[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}assignServicesPackage(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("servicesPackage",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCopyResource was null or undefined when calling copyResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/copyResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createResource(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==i)throw new Error("Required parameter name was null or undefined when calling createResource.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("name",i)),null!=n&&(r=r.set("description",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}createResourceTagWithResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createResourceTagWithTagName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("tagName",t)),null!=e&&(s=s.set("vo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deactivateGroupResourceAssignment(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteAllResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteAllResourcesTagsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAdminGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAdmins(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("onlyDirectAdmins",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdmins`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAllResourcesByResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAllResourcesTagsForResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllResourcesTagsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllResourcesWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedUsersOfResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedGroups(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("member",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAssignedMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedMembersWithStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembersWithStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesWithGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesWithMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesWithStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResourcesWithStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesWithGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesWithMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesWithMemberService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAssignedServicesToResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getBansForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getBansForResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForResource`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEnrichedResourceById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getEnrichedResourcesForFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getEnrichedResourcesForVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getFacility`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupAssignments(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceAssignments(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceBan(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBan`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBanById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourceByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==i)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("name",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceByName`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResources.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let n=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourcesCountForAll(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getResourcesCountForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourcesFromVoWhereUserIsAdmin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourcesWhereGroupIsAdmin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("group",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getResourcesWhereUserIsAdmin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("user",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getRichAdmins(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==e)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==i)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==n)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),e&&e.forEach(t=>{r=r.append("specificAttributes",t)}),null!=i&&(r=r.set("allUserAttributes",i)),null!=n&&(r=r.set("onlyDirectAdmins",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRichResourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichResourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let n=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getVo.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getVo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeAllResourceTagsFromResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeBanByMemberAndResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupAdminResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupFromResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupFromResources(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("resources[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupsFromResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let s=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeResourceBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeResourceSelfServiceGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeResourceSelfServiceUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeResourceTagFromResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}removeService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeService.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling removeServices.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("services[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeServicesPackage(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("servicesPackage",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserAdminResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}setResourceBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetBan was null or undefined when calling setResourceBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unallowGroupsFromResources(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let s=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),e&&e.forEach(t=>{s=s.append("resources[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}updateResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateResource was null or undefined when calling updateResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateResourceBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateBan was null or undefined when calling updateResourceBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateResourceTag was null or undefined when calling updateResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),rt=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}addDestination(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addDestination.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling addDestination.");if(null==i)throw new Error("Required parameter destination was null or undefined when calling addDestination.");if(null==n)throw new Error("Required parameter type was null or undefined when calling addDestination.");let a=new D.LE({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("facility",e)),null!=i&&(a=a.set("destination",i)),null!=n&&(a=a.set("type",n)),null!=s&&(a=a.set("propagationType",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestination`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}addDestinationToMultipleServices(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddDestinationToMultipleServices was null or undefined when calling addDestinationToMultipleServices.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestination`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addDestinationsDefinedByHostsOnFacilityWithFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithFacility.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/f`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddDestinationsDefinedByHostsOnFacility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestinationsDefinedByHostsOnFacility/lists-f`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/s-f`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addDestinationsForAllServicesOnFacility(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==i)throw new Error("Required parameter type was null or undefined when calling addDestinationsForAllServicesOnFacility.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("destination",e)),null!=i&&(r=r.set("type",i)),null!=n&&(r=r.set("propagationType",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsForAllServicesOnFacility`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}addRequiredAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addRequiredAttribute.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling addRequiredAttribute.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttribute`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addRequiredAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addRequiredAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling addRequiredAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttributes`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addServiceToServicesPackage(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling addServiceToServicesPackage.");if(null==e)throw new Error("Required parameter service was null or undefined when calling addServiceToServicesPackage.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("servicesPackage",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addServiceToServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}blockAllServicesOnDestinationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("destination",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/d`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}blockAllServicesOnDestinationByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationByName.");if(null==e)throw new Error("Required parameter destinationType was null or undefined when calling blockAllServicesOnDestinationByName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("destination",t)),null!=e&&(s=s.set("destinationType",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/dname-dtype`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}blockAllServicesOnFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling blockAllServicesOnFacility.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnFacility`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}blockServiceOnDestination(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestination.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("destination",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-d`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}blockServiceOnDestinationWithNameAndType(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==i)throw new Error("Required parameter destinationType was null or undefined when calling blockServiceOnDestinationWithNameAndType.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("destination",e)),null!=i&&(o=o.set("destinationType",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-dname-dtype`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}blockServiceOnFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling blockServiceOnFacility.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnFacility`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createService(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createService.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createService.");if(null==i)throw new Error("Required parameter script was null or undefined when calling createService.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("name",t)),null!=e&&(o=o.set("description",e)),null!=i&&(o=o.set("script",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createService`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}createServiceWithService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateService was null or undefined when calling createServiceWithService.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createService`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateServicesPackage was null or undefined when calling createServicesPackage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createServicesPackage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createServicesPackageByNameAndDescription(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createServicesPackageByNameAndDescription.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createServicesPackageByNameAndDescription.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("name",t)),null!=e&&(s=s.set("description",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling deleteService.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("force",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteService`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling deleteServicesPackage.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("servicesPackage",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteServicesPackage`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}forceServicePropagation(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling forceServicePropagation.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/forceServicePropagation`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAllDestinations(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/all`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllRichDestinationsForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllRichDestinationsForFacility.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/f`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllRichDestinationsForService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getAllRichDestinationsForService.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/s`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedResources.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedResourcesForService`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedServices(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedServices.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedServices`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getDataWithGroups(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getDataWithGroups.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDataWithGroups.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithGroups`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getDataWithVos(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getDataWithVos.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDataWithVos.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithVos`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getDestinationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getDestinationById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getDestinations(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDestinations.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/s-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getDestinationsCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationsCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFacilitiesDestinations(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFacilitiesDestinations.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilitiesDestinations`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAssignedServicesForGUI(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAssignedServicesForGUI.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilityAssignedServicesForGUI`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFlatData(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getFlatData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFlatData.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFlatData`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getHashedDataWithGroups(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getHashedDataWithGroups.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHashedDataWithGroups.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedDataWithGroups`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getHashedHierarchicalData(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getHashedHierarchicalData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHashedHierarchicalData.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedHierarchicalData`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getHierarchicalData(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getHierarchicalData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHierarchicalData.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHierarchicalData`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getRichDestinations(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRichDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRichDestinations.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getRichDestinations`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getServiceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getServiceById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServiceByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getServiceByName.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("name",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceByName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServices(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServices`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getServicesBlockedOnDestination(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling getServicesBlockedOnDestination.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("destination",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnDestination`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesBlockedOnFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getServicesBlockedOnFacility.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnFacility`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesByAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getServicesByAttributeDefinition.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesByAttributeDefinition`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesFromServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesFromServicesPackage.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("servicesPackage",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesFromServicesPackage`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesPackageById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesPackageById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("servicesPackage",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesPackageByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getServicesPackageByName.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("name",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageByName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesPackages(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackages`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}isServiceBlockedOnDestination(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling isServiceBlockedOnDestination.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("destination",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnDestination`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}isServiceBlockedOnFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling isServiceBlockedOnFacility.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnFacility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}planServicePropagation(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling planServicePropagation.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/planServicePropagation`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeAllDestinations(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeAllDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAllDestinations.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllDestinations`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeAllRequiredAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeAllRequiredAttributes.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllRequiredAttributes`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeDestination(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeDestination.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeDestination.");if(null==i)throw new Error("Required parameter destination was null or undefined when calling removeDestination.");if(null==n)throw new Error("Required parameter type was null or undefined when calling removeDestination.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("destination",i)),null!=n&&(r=r.set("type",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeDestination`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeRequiredAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttribute.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling removeRequiredAttribute.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttribute`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeRequiredAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeRequiredAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttributes`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeServiceFromServicesPackage(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServiceFromServicesPackage.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeServiceFromServicesPackage.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("servicesPackage",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeServiceFromServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}unblockAllServicesOnDestinationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("destination",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/d`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}unblockAllServicesOnDestinationByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationByName.");if(null==e)throw new Error("Required parameter destinationType was null or undefined when calling unblockAllServicesOnDestinationByName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("destination",t)),null!=e&&(s=s.set("destinationType",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/dname-dtype`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}unblockAllServicesOnFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling unblockAllServicesOnFacility.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnFacility`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}unblockServiceOnDestinationById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationById.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationById.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("destination",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-d`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}unblockServiceOnDestinationByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationByName.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationByName.");if(null==i)throw new Error("Required parameter destinationType was null or undefined when calling unblockServiceOnDestinationByName.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("destination",e)),null!=i&&(o=o.set("destinationType",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-dname-dtype`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}unblockServiceOnFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling unblockServiceOnFacility.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnFacility`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}updateService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateService was null or undefined when calling updateService.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateService`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateServicesPackage was null or undefined when calling updateServicesPackage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateServicesPackage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),at=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}countTasks(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/countTasks`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}deleteTask(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskIdObject was null or undefined when calling deleteTask.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTask`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteTaskResultById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskResultIdObject was null or undefined when calling deleteTaskResultById.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResultById`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteTaskResultsIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskAndDestinationIdObject was null or undefined when calling deleteTaskResultsIds.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/id`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteTaskResultsNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskAndDestinationNameObject was null or undefined when calling deleteTaskResultsNames.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/name`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAllFacilitiesStates(t,e="body",i=!1){let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllFacilitiesStates`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllResourcesState(t,e="body",i=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling getAllResourcesState.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("voId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllResourcesState`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityServicesState(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityServicesState.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityServicesState`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityState(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityState.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityState`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTask(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getTask.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getTask.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTask`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getTaskById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getTaskById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTaskResultById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskResult was null or undefined when calling getTaskResultById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("taskResult",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTaskResults(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResults`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getTaskResultsByTask(t,e="body",i=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsByTask.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("task",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsByTask`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTaskResultsForDestinations(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destinations was null or undefined when calling getTaskResultsForDestinations.");let n=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("destinations[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForDestinations`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTaskResultsForGUIByTask(t,e="body",i=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTask.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("task",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTask`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTaskResultsForGUIByTaskAndDestination(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("task",t)),null!=e&&(s=s.set("destination",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskAndDestination`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getTaskResultsForGUIByTaskOnlyNewest(t,e="body",i=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskOnlyNewest.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("task",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskOnlyNewest`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isThereSuchTask(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling isThereSuchTask.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling isThereSuchTask.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/isThereSuchTask`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}listAllTasks(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasks`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}listAllTasksForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling listAllTasksForFacility.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasksForFacility`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}suspendTasksPropagation(t,e="body",i=!1){if(null==t)throw new Error("Required parameter suspend was null or undefined when calling suspendTasksPropagation.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("suspend",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/suspendTasksPropagation`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ct=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}addSpecificUserOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("specificUser",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addUserExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter addUserExtSourceInput was null or undefined when calling addUserExtSource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}anonymizeUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}changeNonAuthzPasswordByToken(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==e)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("token",t)),null!=e&&(o=o.set("password",e)),null!=i&&(o=o.set("lang",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changeNonAuthzPassword/token`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}changePasswordForLogin(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");let a=new D.LE({encoder:this.encoder});null!=t&&(a=a.set("login",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("newPassword",i)),null!=n&&(a=a.set("oldPassword",n)),null!=s&&(a=a.set("checkOldPassword",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/login`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}changePasswordForUser(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");let a=new D.LE({encoder:this.encoder});null!=t&&(a=a.set("user",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("newPassword",i)),null!=n&&(a=a.set("oldPassword",n)),null!=s&&(a=a.set("checkOldPassword",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/user`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}checkPasswordResetRequestByTokenIsValid(t,e="body",i=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("token",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}checkPasswordStrength(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("password",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createAlternativePassword(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==i)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==n)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("description",e)),null!=i&&(r=r.set("loginNamespace",i)),null!=n&&(r=r.set("password",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/createAlternativePassword`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}createServiceUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateServiceUser was null or undefined when calling createServiceUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAlternativePassword(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==i)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("loginNamespace",e)),null!=i&&(o=o.set("passwordId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}deletePasswordForLogin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("login",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deletePasswordForUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("force",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}findRichUsers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findRichUsersWithAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("searchString",t)),e&&e.forEach(t=>{s=s.append("attrsNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}findUsers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}generateAccountForName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("namespace",t)),null!=e&&(s=s.set("name",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAllRichUsersWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("includedSpecificUsers",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsForFacilityWhereUserIsActive(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupsForResourceWhereUserIsActive(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupsInVoWhereUserIsAdmin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("vo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupsWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getPendingPreferredEmailChanges(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUserExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUserWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUsersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let n=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUsersWithAttributesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let n=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUsersWithoutVoWithAttributes(t,e="body",i=!1){let n=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("attrsNames[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getSpecificUsersByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getSponsorsForMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSponsorsForMemberByVoAndLogin(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("extSourceName",e)),null!=i&&(r=r.set("extLogin",i)),n&&n.forEach(t=>{r=r.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getUserByExtSourceNameAndExtLogin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("extLogin",t)),null!=e&&(s=s.set("extSourceName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getUserById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("userExtSource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourceByUniqueAttributeValueAndAttributeId(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeId",t)),null!=e&&(s=s.set("attributeValue",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserExtSourceByUniqueAttributeValueAndAttributeName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeName",t)),null!=e&&(s=s.set("attributeValue",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let n=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUsers(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getUsersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let n=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUsersBySpecificUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("specificUser",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUsersPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedUsers was null or undefined when calling getUsersPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getVosWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosWhereUserIsMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isLoginAvailable(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==e)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("loginNamespace",t)),null!=e&&(s=s.set("login",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}loginExist(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeSpecificUserOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("specificUser",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserExtSource(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("userExtSource",e)),null!=i&&(o=o.set("force",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}requestPreferredEmailChange(t,e,i,n,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==e)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let c=new D.LE({encoder:this.encoder});null!=t&&(c=c.set("user",t)),null!=e&&(c=c.set("email",e)),null!=i&&(c=c.set("lang",i)),null!=n&&(c=c.set("linkPath",n)),null!=s&&(c=c.set("customUrl",s)),null!=o&&(c=c.set("idpFilter",o));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}reservePasswordForLogin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("login",t)),null!=e&&(o=o.set("namespace",e)),null!=i&&(o=o.set("password",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/login`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}reservePasswordForUser(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("namespace",e)),null!=i&&(o=o.set("password",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}reserveRandomPassword(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}updateUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateUser was null or undefined when calling updateUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}validatePasswordForLogin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("login",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}validatePasswordForUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}validatePreferredEmailChangeWithToken(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==e)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("token",t)),null!=e&&(s=s.set("u",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ut=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}getAppsConfig(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getGuiConfiguration(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunRPCVersion(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["text/plain"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunStatistics(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunStatus(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunSystemTimeInMillis(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ht=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}addSponsorRoleToGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addSponsorRoleToUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addVoAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addVoAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createVoWithName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==e)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("name",t)),null!=e&&(s=s.set("shortName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createVoWithVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateVoWithVo was null or undefined when calling createVoWithVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/createVo/withVo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("force",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}findCandidates(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("id",t)),null!=e&&(o=o.set("searchString",e)),null!=i&&(o=o.set("maxNumOfResults",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}findCandidatesForGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("searchString",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAllVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAllVos`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getCompleteCandidatesForGroup(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("searchString",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getCompleteCandidatesForVo(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("searchString",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMyVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVos`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getRichAdminsForVo(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==i)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==n)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==s)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let a=new D.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("role",e)),i&&i.forEach(t=>{a=a.append("specificAttributes",t)}),null!=n&&(a=a.set("allUserAttributes",n)),null!=s&&(a=a.set("onlyDirectAdmins",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getRichAdmins`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getVoAdminGroups(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("role",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdminGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getVoAdminUsers(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==i)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("role",e)),null!=i&&(o=o.set("onlyDirectAdmins",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdmins`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getVoBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoBanForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanForMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoBansForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBansForVo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getVoById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoByShortName(t,e="body",i=!1){let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("shortName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoByShortName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoMembersCountsByStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let n=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeSponsorRoleFromGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeSponsorRoleFromUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeVoAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeVoAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeVoBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeVoBanForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}setVoBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoBan was null or undefined when calling setVoBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateVo was null or undefined when calling updateVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/updateVo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var lt,dt,ft,gt;!function(t){t.HiddenEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"},t.DisabledEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"}}(lt||(lt={})),function(t){t.FormatEnum={DOT:"DOT",TGF:"TGF"}}(dt||(dt={})),function(t){t.OwnerTypeEnum={NUMBER_0:0,NUMBER_1:1}}(ft||(ft={})),function(t){t.TypeEnum={Technical:"technical",Administrative:"administrative"}}(gt||(gt={}));let pt=(()=>{class t{constructor(t,e){if(t)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!e)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:t,providers:[{provide:U,useFactory:e}]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(t,12),s.LFG(D.eN,8))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[G,$,V,W,Y,Z,Q,J,X,tt,et,it,nt,st,ot,rt,at,ct,ut,ht],imports:[[]]}),t})();var mt=function(t){return t.PERUNADMIN="PERUNADMIN",t.PERUNOBSERVER="PERUNOBSERVER",t.VOADMIN="VOADMIN",t.GROUPADMIN="GROUPADMIN",t.SELF="SELF",t.FACILITYADMIN="FACILITYADMIN",t.FACILITIYOBSERVER="FACILITYOBSERVER",t.RESOURCEADMIN="RESOURCEADMIN",t.RESOURCESELFSERVICE="RESOURCESELFSERVICE",t.REGISTRAR="REGISTRAR",t.ENGINE="ENGINE",t.RPC="RPC",t.NOTIFICATIONS="NOTIFICATIONS",t.SERVICEUSER="SERVICEUSER",t.SPONSOR="SPONSOR",t.VOOBSERVER="VOOBSERVER",t.TOPGROUPCREATOR="TOPGROUPCREATOR",t.SECURITYADMIN="SECURITYADMIN",t.CABINETADMIN="CABINETADMIN",t.UNKNOWNROLENAME="UNKNOWNROLENAME",t}({});let wt=(()=>{class t{constructor(t){this.authzSevice=t,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(t){this.principal=t,this.initData(t)}setPerunPolicies(t){this.perunPolicies=t}getPerunPolicies(){return this.perunPolicies}isAuthorized(t,e){if(null===this.principal.roles)return!1;const i=this.fetchPolicyWithAllIncludedPolicies(t);let n=[];for(const o of i)n=n.concat(o.perunRoles);const s=this.fetchAllRelatedObjects(e);return this.resolveAuthorization(n,s)}resolveAuthorization(t,e){for(const i of t){let t=!0;for(const n of Object.keys(i)){const s=i[n];if(null===s)this.principalRoles.has(n)||(t=!1);else if(e[s]){for(const i of e[s])if(!this.principalHasRole(n,s,i)){t=!1;break}}else t=!1;if(!t)break}if(t)return!0}return!1}fetchAllRelatedObjects(t){const e={};for(const i of t){let t=i.beanName;switch(i.beanName.startsWith("Rich")&&(t=i.beanName.substring(4)),e[t]?e[t].push(i.id):e[t]=[i.id],t){case"Member":e.User?e.User.push(i.userId):e.User=[i.userId],e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"Group":e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"Resource":e.Facility?e.Facility.push(i.facilityId):e.Facility=[i.facilityId],e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"ResourceTag":e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId]}}return e}principalHasRole(t,e,i){let n=e;return e.startsWith("Rich")&&(n=e.substring(4)),!(!this.principal.roles[t]||!this.principal.roles[t][n])&&this.principal.roles[t][n].includes(Number(i.toString()))}fetchPolicyWithAllIncludedPolicies(t){const e=new Map;let i=[];for(i.push(t);0!==i.length;){const n=i.shift();if(e.has(n)){console.log("Policy {} creates a cycle in the included policies of the policy {}",n,t);continue}const s=this.getPerunPolicy(n);if(!s)return[];e.set(n,s),i=i.concat(s.includePolicies)}const n=[];for(const s of e.values())n.push(s);return n}getPerunPolicy(t){for(const e of this.perunPolicies)if(e.policyName===t)return e;return console.log("policy with name"+t+"was not found"),null}canManageFacilities(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.PERUNOBSERVER,mt.FACILITYADMIN,mt.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(mt.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.VOADMIN)}isThisVoAdminOrObserver(t){return this.editableVos.includes(Number(t.toString()))||this.observableVos.includes(Number(t.toString()))||this.hasAtLeastOne(mt.PERUNADMIN,mt.PERUNOBSERVER)}isThisVoAdmin(t){return this.editableVos.includes(t)||this.principalRoles.has(mt.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(mt.SPONSOR)}isThisGroupAdmin(t){return this.editableGroups.includes(t)||this.principalRoles.has(mt.PERUNADMIN)}isGroupAdminInThisVo(t){return this.hasGroupInTheseVos.includes(t)}isFacilityAdmin(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.FACILITYADMIN)}isThisFacilityAdmin(t){return this.editableFacilities.includes(t)||this.principalRoles.has(mt.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(mt.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.VOOBSERVER,mt.PERUNOBSERVER)}isThisVoObserver(t){return this.hasAtLeastOne(mt.PERUNADMIN,mt.PERUNOBSERVER)||this.observableVos.includes(t)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((t,e)=>{this.authzSevice.getAllRolesManagementRules().subscribe(e=>{this.allRolesManagementRules=e,t()},t=>e(t))})}assignAvailableRoles(t,e){this.allRolesManagementRules.forEach(i=>{i.primaryObject===e&&t.push(i.roleName)}),t.sort(),"Vo"===e&&this.voCustomSort(t)}isManagerPagePrivileged(t){const e=[];let i=t.beanName;i.startsWith("Rich")&&(i=i.substr(4)),this.assignAvailableRoles(e,i);const n=new Map;this.getRolesAuthorization(e,t,n);for(const s of n.values())if(s.readAuth||s.manageAuth)return!0;return!1}getRolesAuthorization(t,e,i){for(const n of t){let t=[],s=[],o=[];for(const e of this.allRolesManagementRules)if(e.roleName===n){t=t.concat(e.privilegedRolesToRead),s=s.concat(e.privilegedRolesToManage);for(const t of Object.keys(e.entitiesToManage))o="User"===t?[t].concat(o):o.concat(t);break}const r=this.fetchAllRelatedObjects([e]),a=this.resolveAuthorization(t,r),c=this.resolveAuthorization(s,r);i.set(n,{readAuth:a,manageAuth:c,modes:o})}}voCustomSort(t){for(let e=0;e{class t{constructor(){this.branding=""}setInstanceConfig(t){this.instanceConfig=t}setDefaultConfig(t){this.defaultConfig=t}getAppsConfig(){return this.appsConfig}setAppsConfig(t){this.appsConfig=t}setPerunPrincipal(t){this.principal=t}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(t){this.initialPageId=t}getLoginAttributeNames(){return this.get("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.get("member_profile_attributes_friendly_names")}setBanding(t){this.branding=t}skipOidc(){return this.get("skip_oidc")}get(...t){let e;if(""!==this.branding){const i=this.instanceConfig.brandings[this.branding];for(let n=0;n(0,zt.k)(t)?n(...t):n(t))):new Et.y(n=>{Bt(t,e,function(t){n.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},n,i)})}function Bt(t,e,i,n,s){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const n=t;t.addEventListener(e,i,s),o=()=>n.removeEventListener(e,i,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const n=t;t.on(e,i),o=()=>n.off(e,i)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const n=t;t.addListener(e,i),o=()=>n.removeListener(e,i)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,r=t.length;o0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}var xt=i(1098);class Ht extends xt.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++nPromise.resolve())(),Ot={};function Ft(t){return t in Ot&&(delete Ot[t],!0)}const Dt={setImmediate(t){const e=It++;return Ot[e]=!0,Lt.then(()=>Ft(e)&&t()),e},clearImmediate(t){Ft(t)}};class qt extends Mt.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=Dt.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(Dt.clearImmediate(e),t.scheduled=void 0)}}class Nt extends xt.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++n=0}var te=i(6163);function ee(t=0,e,i){let n=-1;return Xt(e)?n=Number(e)<1?1:Number(e):(0,te.K)(e)&&(i=e),(0,te.K)(i)||(i=Wt.P),new Et.y(e=>{const s=Xt(t)?t:+t-i.now();return i.schedule(ie,s,{index:0,period:n,subscriber:e})})}function ie(t){const{index:e,period:i,subscriber:n}=t;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}}function ne(t,e=Wt.P){return i=()=>ee(t,e),function(t){return t.lift(new Qt(i))};var i}var se=i(3835);function oe(t){return e=>e.lift(new re(t))}class re{constructor(t){this.notifier=t}call(t,e){const i=new ae(t),n=(0,Zt.D)(i,this.notifier);return n&&!i.seenValue?(i.add(n),e.subscribe(i)):i}}class ae extends Yt.L{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,i,n,s){this.seenValue=!0,this.complete()}notifyComplete(){}}var ce=i(7471);function ue(...t){return(0,ce.J)(1)((0,Ct.of)(...t))}function he(...t){const e=t[t.length-1];return(0,te.K)(e)?(t.pop(),i=>ue(t,i,e)):e=>ue(t,e)}var le=i(4689);class de extends Mt.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}class fe extends xt.v{}const ge=new fe(de);var pe=i(3103);class me extends Vt.L{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(me.dispatch,this.delay,new we(t,this.destination)))}_next(t){this.scheduleMessage(pe.P.createNext(t))}_error(t){this.scheduleMessage(pe.P.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(pe.P.createComplete()),this.unsubscribe()}}class we{constructor(t,e){this.notification=t,this.destination=e}}var ye=i(3895),be=i(9291);class Ae extends kt.xQ{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new _e(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),n=this.scheduler,s=i.length;let o;if(this.closed)throw new ye.N;if(this.isStopped||this.hasError?o=Gt.w.EMPTY:(this.observers.push(t),o=new be.W(this,t)),n&&t.add(t=new me(t,n)),e)for(let r=0;re&&(o=Math.max(o,s-e)),o>0&&n.splice(0,o),n}}class _e{constructor(t,e){this.time=t,this.value=e}}function ve(t,e,i){let n;return n=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:i},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:i,scheduler:n}){let s,o,r=0,a=!1,c=!1;return function(u){r++,s&&!a||(a=!1,s=new Ae(t,e,n),o=u.subscribe({next(t){s.next(t)},error(t){a=!0,s.error(t)},complete(){c=!0,o=void 0,s.complete()}}));const h=s.subscribe(this);this.add(()=>{r--,h.unsubscribe(),o&&!c&&i&&0===r&&(o.unsubscribe(),o=void 0,s=void 0)})}}(n))}let Te;try{Te="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(Rw){Te=!1}let ke,Ce=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?(0,n.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&&!Te)&&"undefined"!=typeof CSS&&!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 t.\u0275fac=function(e){return new(e||t)(s.LFG(s.Lbi))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.Lbi))},token:t,providedIn:"root"}),t})(),Ee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();const ze=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Re(){if(ke)return ke;if("object"!=typeof document||!document)return ke=new Set(ze),ke;let t=document.createElement("input");return ke=new Set(ze.filter(e=>(t.setAttribute("type",e),t.type===e))),ke}let Pe,Se,Be;function Me(t){return function(){if(null==Pe&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Pe=!0}))}finally{Pe=Pe||!1}return Pe}()?t:!!t.capture}function Ke(){if(null==Se){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Se=!1,Se;if("scrollBehavior"in document.documentElement.style)Se=!0;else{const t=Element.prototype.scrollTo;Se=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Se}function xe(t){if(function(){if(null==Be){const t="undefined"!=typeof document?document.head:null;Be=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Be}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function He(){let t="undefined"!=typeof document&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}const je=new s.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,s.f3M)(n.K0)}});let Ie=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new s.vpe,t){const e=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||e;this.value="ltr"===i||"rtl"===i?i:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(je,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(je,8))},token:t,providedIn:"root"}),t})(),Le=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),Oe=(()=>{class t{constructor(t,e,i){this._ngZone=t,this._platform=e,this._scrolled=new kt.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new Et.y(e=>{this._globalSubscription||this._addGlobalListener();const i=t>0?this._scrolled.pipe(ne(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Ct.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe((0,se.h)(t=>!t||i.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((i,n)=>{this._scrollableContainsElement(n,t)&&e.push(n)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let i=Tt(e),n=t.getElementRef().nativeElement;do{if(i==n)return!0}while(i=i.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>St(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(Ce),s.LFG(n.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(Ce),s.LFG(n.K0,8))},token:t,providedIn:"root"}),t})(),Fe=(()=>{class t{constructor(t,e,i){this._platform=t,this._change=new kt.xQ,this._changeListener=t=>{this._change.next(t)},this._document=i,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:i}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+e,height:i,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(ne(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Ce),s.LFG(s.R0b),s.LFG(n.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Ce),s.LFG(s.R0b),s.LFG(n.K0,8))},token:t,providedIn:"root"}),t})(),De=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),qe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Le,Ee,De],Le,De]}),t})();class Ne{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class Ue extends Ne{constructor(t,e,i,n){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=n}}class Ge extends Ne{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class $e extends Ne{constructor(t){super(),this.element=t instanceof s.SBq?t.nativeElement:t}}class Ve{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof Ue?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Ge?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof $e?(this._attachedPortal=t,this.attachDomPortal(t)):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(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class We extends Ve{constructor(t,e,i,n,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=n,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=t,i}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(t=>this.outletElement.appendChild(t)),i.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(i);-1!==t&&e.remove(t)}),this._attachedPortal=t,i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let Ye=(()=>{class t extends Ve{constructor(t,e,i){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new s.vpe,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(i,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=i}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),n=e.createComponent(i,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s._Vd),s.Y36(s.s_b),s.Y36(n.K0))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[s.qOj]}),t})(),Ze=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();var Qe=i(1906),Je=i(611);function Xe(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}const ti=Ke();class ei{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=vt(-this._previousScrollPosition.left),t.style.top=vt(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,i=this._document.body.style,n=e.scrollBehavior||"",s=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),ti&&(e.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),ti&&(e.scrollBehavior=n,i.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class ii{constructor(t,e,i,n){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class ni{enable(){}disable(){}attach(){}}function si(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function oi(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class ri{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=n,this._scrollSubscription=null}attach(t){this._overlayRef=t}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 t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:i}=this._viewportRuler.getViewportSize();si(t,[{width:e,height:i,bottom:i,right:e,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 ai=(()=>{class t{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this.noop=()=>new ni,this.close=t=>new ii(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new ei(this._viewportRuler,this._document),this.reposition=t=>new ri(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=n}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Oe),s.LFG(Fe),s.LFG(s.R0b),s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Oe),s.LFG(Fe),s.LFG(s.R0b),s.LFG(n.K0))},token:t,providedIn:"root"}),t})();class ci{constructor(t){if(this.scrollStrategy=new ni,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class ui{constructor(t,e,i,n,s){this.offsetX=i,this.offsetY=n,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class hi{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let li=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0))},token:t,providedIn:"root"}),t})(),di=(()=>{class t extends li{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let i=e.length-1;i>-1;i--)if(e[i]._keydownEvents.observers.length>0){e[i]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0))},token:t,providedIn:"root"}),t})(),fi=(()=>{class t extends li{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,i=this._attachedOverlays.slice();for(let n=i.length-1;n>-1;n--){const s=i[n];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){if(super.add(t),!this._isAttached){const t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),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 t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0),s.LFG(Ce))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0),s.LFG(Ce))},token:t,providedIn:"root"}),t})();const gi="undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha;let pi=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||gi){const e=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let t=0;tthis._backdropClick.next(t),this._keydownEvents=new kt.xQ,this._outsidePointerEvents=new kt.xQ,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Je.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),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 t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),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&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=vt(this._config.width),t.height=vt(this._config.height),t.minWidth=vt(this._config.minWidth),t.minHeight=vt(this._config.minHeight),t.maxWidth=vt(this._config.maxWidth),t.maxHeight=vt(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),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),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const n=t.classList;_t(e).forEach(t=>{t&&(i?n.add(t):n.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(oe((0,Qe.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._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const wi="cdk-overlay-connected-position-bounding-box",yi=/([A-Za-z%]+)$/;class bi{constructor(t,e,i,n,s){this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=s,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 kt.xQ,this._resizeSubscription=Gt.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(wi),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.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();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,n=[];let s;for(let o of this._preferredPositions){let r=this._getOriginPoint(t,o),a=this._getOverlayPoint(r,e,o),c=this._getOverlayFit(a,e,i,o);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(o,r);this._canFitWithFlexibleDimensions(c,a,i)?n.push({position:o,origin:r,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(r,o)}):(!s||s.overlayFit.visibleAreae&&(e=n,t=i)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ai(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(wi),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let i,n;if("center"==e.originX)i=t.left+t.width/2;else{const n=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;i="start"==e.originX?n:s}return n="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:n}}_getOverlayPoint(t,e,i){let n,s;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+s}}_getOverlayFit(t,e,i,n){const s=vi(e);let{x:o,y:r}=t,a=this._getOffset(n,"x"),c=this._getOffset(n,"y");a&&(o+=a),c&&(r+=c);let u=0-r,h=r+s.height-i.height,l=this._subtractOverflows(s.width,0-o,o+s.width-i.width),d=this._subtractOverflows(s.height,u,h),f=l*d;return{visibleArea:f,isCompletelyWithinViewport:s.width*s.height===f,fitsInViewportVertically:d===s.height,fitsInViewportHorizontally:l==s.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const n=i.bottom-e.y,s=i.right-e.x,o=_i(this._overlayRef.getConfig().minHeight),r=_i(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=r&&r<=s;return(t.fitsInViewportVertically||null!=o&&o<=n)&&a}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const n=vi(e),s=this._viewportRect,o=Math.max(t.x+n.width-s.width,0),r=Math.max(t.y+n.height-s.height,0),a=Math.max(s.top-i.top-t.y,0),c=Math.max(s.left-i.left-t.x,0);let u=0,h=0;return u=n.width<=s.width?c||-o:t.xn&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-n/2)}if("end"===e.overlayX&&!n||"start"===e.overlayX&&n)u=i.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!n||"end"===e.overlayX&&n)c=t.x,a=i.right-t.x;else{const e=Math.min(i.right-t.x+i.left,t.x),n=this._lastBoundingBoxSize.width;a=2*e,c=t.x-e,a>n&&!this._isInitialRender&&!this._growAfterOpen&&(c=t.x-n/2)}return{top:o,left:c,bottom:r,right:u,width:a,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;n.height=vt(i.height),n.top=vt(i.top),n.bottom=vt(i.bottom),n.width=vt(i.width),n.left=vt(i.left),n.right=vt(i.right),n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(n.maxHeight=vt(t)),s&&(n.maxWidth=vt(s))}this._lastBoundingBoxSize=i,Ai(this._boundingBox.style,n)}_resetBoundingBoxStyles(){Ai(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ai(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},n=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(n){const n=this._viewportRuler.getViewportScrollPosition();Ai(i,this._getExactOverlayY(e,t,n)),Ai(i,this._getExactOverlayX(e,t,n))}else i.position="static";let r="",a=this._getOffset(e,"x"),c=this._getOffset(e,"y");a&&(r+=`translateX(${a}px) `),c&&(r+=`translateY(${c}px)`),i.transform=r.trim(),o.maxHeight&&(n?i.maxHeight=vt(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(n?i.maxWidth=vt(o.maxWidth):s&&(i.maxWidth="")),Ai(this._pane.style,i)}_getExactOverlayY(t,e,i){let n={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i));let o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=o,"bottom"===t.overlayY?n.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":n.top=vt(s.y),n}_getExactOverlayX(t,e,i){let n,s={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),n=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===n?s.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":s.left=vt(o.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:oi(t,i),isOriginOutsideView:si(t,i),isOverlayClipped:oi(e,i),isOverlayOutsideView:si(e,i)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&_t(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof s.SBq)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function Ai(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function _i(t){if("number"!=typeof t&&null!=t){const[e,i]=t.split(yi);return i&&"px"!==i?null:parseFloat(e)}return t||null}function vi(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class Ti{constructor(t,e,i,n,s,o,r){this._preferredPositions=[],this._positionStrategy=new bi(i,n,s,o,r).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,i,n){const s=new ui(t,e,i,n);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const ki="cdk-global-overlay-wrapper";class Ci{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(ki),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:n,height:s,maxWidth:o,maxHeight:r}=i,a=!("100%"!==n&&"100vw"!==n||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||r&&"100%"!==r&&"100vh"!==r);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(ki),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let Ei=(()=>{class t{constructor(t,e,i,n){this._viewportRuler=t,this._document=e,this._platform=i,this._overlayContainer=n}global(){return new Ci}connectedTo(t,e,i){return new Ti(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new bi(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Fe),s.LFG(n.K0),s.LFG(Ce),s.LFG(pi))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Fe),s.LFG(n.K0),s.LFG(Ce),s.LFG(pi))},token:t,providedIn:"root"}),t})(),zi=0,Ri=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u,h){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=s,this._injector=o,this._ngZone=r,this._document=a,this._directionality=c,this._location=u,this._outsideClickDispatcher=h}create(t){const e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),s=new ci(t);return s.direction=s.direction||this._directionality.value,new mi(n,e,i,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+zi++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(s.z2F)),new We(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(ai),s.LFG(pi),s.LFG(s._Vd),s.LFG(Ei),s.LFG(di),s.LFG(s.zs3),s.LFG(s.R0b),s.LFG(n.K0),s.LFG(Ie),s.LFG(n.Ye),s.LFG(fi))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const Pi={provide:new s.OlP("cdk-connected-overlay-scroll-strategy"),deps:[Ri],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Si=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Ri,Pi],imports:[[Le,Ze,qe],qe]}),t})();var Bi=i(6599),Mi=i(7701);let Ki=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),xi=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=Tt(t);return new Et.y(t=>{const i=this._observeElement(e).subscribe(t);return()=>{i.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new kt.xQ,i=this._mutationObserverFactory.create(t=>e.next(t));i&&i.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:i,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:i}=this._observedElements.get(t);e&&e.disconnect(),i.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Ki))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Ki))},token:t,providedIn:"root"}),t})(),Hi=(()=>{class t{constructor(t,e,i){this._contentObserver=t,this._elementRef=e,this._ngZone=i,this.event=new s.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=bt(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=At(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe((0,Mi.b)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(xi),s.Y36(s.SBq),s.Y36(s.R0b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),ji=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Ki]}),t})();function Ii(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const Li="cdk-describedby-message-container",Oi="cdk-describedby-host";let Fi=0;const Di=new Map;let qi=null,Ni=(()=>{class t{constructor(t){this._document=t}describe(t,e,i){if(!this._canBeDescribed(t,e))return;const n=Ui(e,i);"string"!=typeof e?(Gi(e),Di.set(n,{messageElement:e,referenceCount:0})):Di.has(n)||this._createMessageElement(e,i),this._isElementDescribedByMessage(t,n)||this._addMessageReference(t,n)}removeDescription(t,e,i){if(!e||!this._isElementNode(t))return;const n=Ui(e,i);if(this._isElementDescribedByMessage(t,n)&&this._removeMessageReference(t,n),"string"==typeof e){const t=Di.get(n);t&&0===t.referenceCount&&this._deleteMessageElement(n)}qi&&0===qi.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const i=Di.get(e);!function(t,e,i){const n=Ii(t,e);n.some(t=>t.trim()==i.trim())||(n.push(i.trim()),t.setAttribute(e,n.join(" ")))}(t,"aria-describedby",i.messageElement.id),t.setAttribute(Oi,""),i.referenceCount++}_removeMessageReference(t,e){const i=Di.get(e);i.referenceCount--,function(t,e,i){const n=Ii(t,e).filter(t=>t!=i.trim());n.length?t.setAttribute(e,n.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",i.messageElement.id),t.removeAttribute(Oi)}_isElementDescribedByMessage(t,e){const i=Ii(t,"aria-describedby"),n=Di.get(e),s=n&&n.messageElement.id;return!!s&&-1!=i.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const i=null==e?"":`${e}`.trim(),n=t.getAttribute("aria-label");return!(!i||n&&n.trim()===i)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0))},token:t,providedIn:"root"}),t})();function Ui(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function Gi(t){t.id||(t.id="cdk-describedby-message-"+Fi++)}class $i extends class{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new kt.xQ,this._typeaheadSubscription=Gt.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new kt.xQ,this.change=new kt.xQ,t instanceof s.n_E&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Bi.b)(t=>this._pressedLetters.push(t)),(0,Mi.b)(t),(0,se.h)(()=>this._pressedLetters.length>0),(0,Pt.U)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let i=1;i!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||Xe(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.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(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),n=e[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const n=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[n]))return void this.setActiveItem(n)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof s.n_E?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let Vi=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(Rw){return null}}((i=t).ownerDocument&&i.ownerDocument.defaultView||window);var i;if(e){if(-1===Yi(e))return!1;if(!this.isVisible(e))return!1}let n=t.nodeName.toLowerCase(),s=Yi(t);return t.hasAttribute("contenteditable")?-1!==s:"iframe"!==n&&"object"!==n&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),i="input"===e&&t.type;return"text"===i||"password"===i||"select"===e||"textarea"===e}(t))&&("audio"===n?!!t.hasAttribute("controls")&&-1!==s:"video"===n?-1!==s&&(null!==s||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||Wi(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Ce))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Ce))},token:t,providedIn:"root"}),t})();function Wi(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function Yi(t){if(!Wi(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class Zi{constructor(t,e,i,n,s=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=n,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),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(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let i=0;i=0;i--){let t=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe((0,Je.q)(1)).subscribe(t)}}let Qi=(()=>{class t{constructor(t,e,i){this._checker=t,this._ngZone=e,this._document=i}create(t,e=!1){return new Zi(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Vi),s.LFG(s.R0b),s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Vi),s.LFG(s.R0b),s.LFG(n.K0))},token:t,providedIn:"root"}),t})();function Ji(t){return 0===t.buttons}function Xi(t){const e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}"undefined"!=typeof Element&∈const tn=new s.OlP("cdk-focus-monitor-default-options"),en=Me({passive:!0,capture:!0});let nn=(()=>{class t{constructor(t,e,i,n){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=Ji(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{Xi(t)?this._lastTouchTarget||this._setOriginForCurrentEventQueue("keyboard"):(null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=sn(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650))},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=sn(t),i="focus"===t.type?this._onFocus:this._onBlur;for(let n=e;n;n=n.parentElement)i.call(this,t,n)},this._document=i,this._detectionMode=(null==n?void 0:n.detectionMode)||0}monitor(t,e=!1){const i=Tt(t);if(!this._platform.isBrowser||1!==i.nodeType)return(0,Ct.of)(null);const n=xe(i)||this._getDocument(),s=this._elementInfo.get(i);if(s)return e&&(s.checkChildren=!0),s.subject;const o={checkChildren:e,subject:new kt.xQ,rootNode:n};return this._elementInfo.set(i,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(t){const e=Tt(t),i=this._elementInfo.get(e);i&&(i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(i))}focusVia(t,e,i){const n=Tt(t);n===this._getDocument().activeElement?this._getClosestElementsInfo(n).forEach(([t,i])=>this._originChanged(t,e,i)):(this._setOriginForCurrentEventQueue(e),"function"==typeof n.focus&&n.focus(i))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,i){i?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=sn(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const i=this._elementInfo.get(e);i&&(i.checkChildren||e===sn(t))&&this._originChanged(e,this._getFocusOrigin(t),i)}_onBlur(t,e){const i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,i=this._rootNodeFocusListenerCount.get(e)||0;i||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,en),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,en)}),this._rootNodeFocusListenerCount.set(e,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,en),t.addEventListener("mousedown",this._documentMousedownListener,en),t.addEventListener("touchstart",this._documentTouchstartListener,en),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,en),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,en),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,en),t.removeEventListener("mousedown",this._documentMousedownListener,en),t.removeEventListener("touchstart",this._documentTouchstartListener,en),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,i){this._setClasses(t,e),this._emitOrigin(i.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((i,n)=>{(n===t||i.checkChildren&&n.contains(t))&&e.push([n,i])}),e}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(Ce),s.LFG(n.K0,8),s.LFG(tn,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(Ce),s.LFG(n.K0,8),s.LFG(tn,8))},token:t,providedIn:"root"}),t})();function sn(t){return t.composedPath?t.composedPath()[0]:t.target}const on="cdk-high-contrast-black-on-white",rn="cdk-high-contrast-white-on-black",an="cdk-high-contrast-active";let cn=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,i=e&&e.getComputedStyle?e.getComputedStyle(t):null,n=(i&&i.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),n){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(an),t.remove(on),t.remove(rn),this._hasCheckedHighContrastMode=!0;const e=this.getHighContrastMode();1===e?(t.add(an),t.add(on)):2===e&&(t.add(an),t.add(rn))}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Ce),s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Ce),s.LFG(n.K0))},token:t,providedIn:"root"}),t})(),un=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(cn))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Ee,ji]]}),t})();const hn=new s.GfV("12.0.5");class ln{}const dn="*";function fn(t,e){return{type:7,name:t,definitions:e,options:{}}}function gn(t,e=null){return{type:4,styles:e,timings:t}}function pn(t,e=null){return{type:2,steps:t,options:e}}function mn(t){return{type:6,styles:t,offset:null}}function wn(t,e,i){return{type:0,name:t,styles:e,options:i}}function yn(t){return{type:5,steps:t}}function bn(t,e,i=null){return{type:1,expr:t,animation:e,options:i}}function An(t){Promise.resolve(null).then(t)}class _n{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){An(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class vn{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,n=0;const s=this.players.length;0==s?An(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++i==s&&this._onDestroy()}),t.onStart(()=>{++n==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function Tn(){return"undefined"!=typeof window&&void 0!==window.document}function kn(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Cn(t){switch(t.length){case 0:return new _n;case 1:return t[0];default:return new vn(t)}}function En(t,e,i,n,s={},o={}){const r=[],a=[];let c=-1,u=null;if(n.forEach(t=>{const i=t.offset,n=i==c,h=n&&u||{};Object.keys(t).forEach(i=>{let n=i,a=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,r),a){case"!":a=s[i];break;case dn:a=o[i];break;default:a=e.normalizeStyleValue(i,n,a,r)}h[n]=a}),n||a.push(h),u=h,c=i}),r.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${r.join(t)}`)}return a}function zn(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&Rn(i,"start",t)));break;case"done":t.onDone(()=>n(i&&Rn(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&Rn(i,"destroy",t)))}}function Rn(t,e,i){const n=i.totalTime,s=Pn(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),o=t._data;return null!=o&&(s._data=o),s}function Pn(t,e,i,n,s="",o=0,r){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:s,totalTime:o,disabled:!!r}}function Sn(t,e,i){let n;return t instanceof Map?(n=t.get(e),n||t.set(e,n=i)):(n=t[e],n||(n=t[e]=i)),n}function Bn(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let Mn=(t,e)=>!1,Kn=(t,e)=>!1,xn=(t,e,i)=>[];const Hn=kn();(Hn||"undefined"!=typeof Element)&&(Mn=Tn()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),Kn=(()=>{if(Hn||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,i)=>e.apply(t,[i]):Kn}})(),xn=(t,e,i)=>{let n=[];if(i){const i=t.querySelectorAll(e);for(let t=0;t{const n=i.replace(/([a-z])([A-Z])/g,"$1-$2");e[n]=t[i]}),e}let Nn=(()=>{class t{validateStyleProperty(t){return Ln(t)}matchesElement(t,e){return On(t,e)}containsElement(t,e){return Fn(t,e)}query(t,e,i){return Dn(t,e,i)}computeStyle(t,e,i){return i||""}animate(t,e,i,n,s,o=[],r){return new _n(i,n)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Un=(()=>{class t{}return t.NOOP=new Nn,t})();const Gn="ng-enter",$n="ng-leave",Vn="ng-trigger",Wn=".ng-trigger",Yn="ng-animating",Zn=".ng-animating";function Qn(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Jn(parseFloat(e[1]),e[2])}function Jn(t,e){switch(e){case"s":return 1e3*t;default:return t}}function Xn(t,e,i){return t.hasOwnProperty("duration")?t:function(t,e,i){let n,s=0,o="";if("string"==typeof t){const i=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===i)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};n=Jn(parseFloat(i[1]),i[2]);const r=i[3];null!=r&&(s=Jn(parseFloat(r),i[4]));const a=i[5];a&&(o=a)}else n=t;if(!i){let i=!1,o=e.length;n<0&&(e.push("Duration values below 0 are not allowed for this animation step."),i=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),i=!0),i&&e.splice(o,0,`The provided timing value "${t}" is invalid.`)}return{duration:n,delay:s,easing:o}}(t,e,i)}function ts(t,e={}){return Object.keys(t).forEach(i=>{e[i]=t[i]}),e}function es(t,e,i={}){if(e)for(let n in t)i[n]=t[n];else ts(t,i);return i}function is(t,e,i){return i?e+":"+i+";":""}function ns(t){let e="";for(let i=0;i{const s=ds(n);i&&!i.hasOwnProperty(n)&&(i[n]=t.style[s]),t.style[s]=e[n]}),kn()&&ns(t))}function os(t,e){t.style&&(Object.keys(e).forEach(e=>{const i=ds(e);t.style[i]=""}),kn()&&ns(t))}function rs(t){return Array.isArray(t)?1==t.length?t[0]:pn(t):t}const as=new RegExp("{{\\s*(.+?)\\s*}}","g");function cs(t){let e=[];if("string"==typeof t){let i;for(;i=as.exec(t);)e.push(i[1]);as.lastIndex=0}return e}function us(t,e,i){const n=t.toString(),s=n.replace(as,(t,n)=>{let s=e[n];return e.hasOwnProperty(n)||(i.push(`Please provide a value for the animation param ${n}`),s=""),s.toString()});return s==n?t:s}function hs(t){const e=[];let i=t.next();for(;!i.done;)e.push(i.value),i=t.next();return e}const ls=/-+([a-z0-9])/g;function ds(t){return t.replace(ls,(...t)=>t[1].toUpperCase())}function fs(t,e){return 0===t||0===e}function gs(t,e,i){const n=Object.keys(i);if(n.length&&e.length){let o=e[0],r=[];if(n.forEach(t=>{o.hasOwnProperty(t)||r.push(t),o[t]=i[t]}),r.length)for(var s=1;sfunction(t,e,i){if(":"==t[0]){const n=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,i);if("function"==typeof n)return void e.push(n);t=n}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return i.push(`The provided transition expression "${t}" is not supported`),e;const s=n[1],o=n[2],r=n[3];e.push(_s(s,r)),"<"!=o[0]||s==ws&&r==ws||e.push(_s(r,s))}(t,i,e)):i.push(t),i}const bs=new Set(["true","1"]),As=new Set(["false","0"]);function _s(t,e){const i=bs.has(t)||As.has(t),n=bs.has(e)||As.has(e);return(s,o)=>{let r=t==ws||t==s,a=e==ws||e==o;return!r&&i&&"boolean"==typeof s&&(r=s?bs.has(t):As.has(t)),!a&&n&&"boolean"==typeof o&&(a=o?bs.has(e):As.has(e)),r&&a}}const vs=new RegExp("s*:selfs*,?","g");function Ts(t,e,i){return new ks(t).build(e,i)}class ks{constructor(t){this._driver=t}build(t,e){const i=new Cs(e);return this._resetContextStyleTimingState(i),ps(this,rs(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,n=e.depCount=0;const s=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const i=t,n=i.name;n.toString().split(/\s*,\s*/).forEach(t=>{i.name=t,s.push(this.visitState(i,e))}),i.name=n}else if(1==t.type){const s=this.visitTransition(t,e);i+=s.queryCount,n+=s.depCount,o.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:o,queryCount:i,depCount:n,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),n=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=n||{};if(i.styles.forEach(t=>{if(Es(t)){const e=t;Object.keys(e).forEach(t=>{cs(e[t]).forEach(t=>{o.hasOwnProperty(t)||s.add(t)})})}}),s.size){const i=hs(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${i.join(", ")}`)}}return{type:0,name:t.name,style:i,options:n?{params:n}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=ps(this,rs(t.animation),e);return{type:1,matchers:ys(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:zs(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>ps(this,t,e)),options:zs(t.options)}}visitGroup(t,e){const i=e.currentTime;let n=0;const s=t.steps.map(t=>{e.currentTime=i;const s=ps(this,t,e);return n=Math.max(n,e.currentTime),s});return e.currentTime=n,{type:3,steps:s,options:zs(t.options)}}visitAnimate(t,e){const i=function(t,e){let i=null;if(t.hasOwnProperty("duration"))i=t;else if("number"==typeof t)return Rs(Xn(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=Rs(0,0,"");return t.dynamic=!0,t.strValue=n,t}return i=i||Xn(n,e),Rs(i.duration,i.delay,i.easing)}(t.timings,e.errors);let n;e.currentAnimateTimings=i;let s=t.styles?t.styles:mn({});if(5==s.type)n=this.visitKeyframes(s,e);else{let s=t.styles,o=!1;if(!s){o=!0;const t={};i.easing&&(t.easing=i.easing),s=mn(t)}e.currentTime+=i.duration+i.delay;const r=this.visitStyle(s,e);r.isEmptyStep=o,n=r}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==dn?i.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):i.push(t)}):i.push(t.styles);let n=!1,s=null;return i.forEach(t=>{if(Es(t)){const e=t,i=e.easing;if(i&&(s=i,delete e.easing),!n)for(let t in e)if(e[t].toString().indexOf("{{")>=0){n=!0;break}}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:n,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let n=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(i=>{if(!this._driver.validateStyleProperty(i))return void e.errors.push(`The provided animation property "${i}" is not a supported CSS property for animations`);const o=e.collectedStyles[e.currentQuerySelector],r=o[i];let a=!0;r&&(s!=n&&s>=r.startTime&&n<=r.endTime&&(e.errors.push(`The CSS property "${i}" that exists between the times of "${r.startTime}ms" and "${r.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${n}ms"`),a=!1),s=r.startTime),a&&(o[i]={startTime:s,endTime:n}),e.options&&function(t,e,i){const n=e.params||{},s=cs(t);s.length&&s.forEach(t=>{n.hasOwnProperty(t)||i.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[i],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let n=0;const s=[];let o=!1,r=!1,a=0;const c=t.steps.map(t=>{const i=this._makeStyleAst(t,e);let c=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(Es(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(Es(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}return e}(i.styles),u=0;return null!=c&&(n++,u=i.offset=c),r=r||u<0||u>1,o=o||u0&&n{const o=h>0?n==l?1:h*n:s[n],r=o*g;e.currentTime=d+f.delay+r,f.duration=r,this._validateStyleAst(t,e),t.offset=o,i.styles.push(t)}),i}visitReference(t,e){return{type:8,animation:ps(this,rs(t.animation),e),options:zs(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:zs(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:zs(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;const[s,o]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(vs,"")),[t=t.replace(/@\*/g,Wn).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,Zn),e]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,Sn(e.collectedStyles,e.currentQuerySelector,{});const r=ps(this,rs(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:n.limit||0,optional:!!n.optional,includeSelf:o,animation:r,originalSelector:t.selector,options:zs(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:Xn(t.timings,e.errors,!0);return{type:12,animation:ps(this,rs(t.animation),e),timings:i,options:null}}}class Cs{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Es(t){return!Array.isArray(t)&&"object"==typeof t}function zs(t){var e;return t?(t=ts(t)).params&&(t.params=(e=t.params)?ts(e):null):t={},t}function Rs(t,e,i){return{duration:t,delay:e,easing:i}}function Ps(t,e,i,n,s,o,r=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:s,delay:o,totalTime:s+o,easing:r,subTimeline:a}}class Ss{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const Bs=new RegExp(":enter","g"),Ms=new RegExp(":leave","g");function Ks(t,e,i,n,s,o={},r={},a,c,u=[]){return(new xs).buildKeyframes(t,e,i,n,s,o,r,a,c,u)}class xs{buildKeyframes(t,e,i,n,s,o,r,a,c,u=[]){c=c||new Ss;const h=new js(t,e,c,n,s,u,[]);h.options=a,h.currentTimeline.setStyles([o],null,h.errors,a),ps(this,i,h);const l=h.timelines.filter(t=>t.containsAnimation());if(l.length&&Object.keys(r).length){const t=l[l.length-1];t.allowOnlyTimelineStyles()||t.setStyles([r],null,h.errors,a)}return l.length?l.map(t=>t.buildKeyframes()):[Ps(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.consume(e.element);if(i){const n=e.createSubContext(t.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,n,n.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let n=e.currentTimeline.currentTime;const s=null!=i.duration?Qn(i.duration):null,o=null!=i.delay?Qn(i.delay):null;return 0!==s&&t.forEach(t=>{const i=e.appendInstructionToTimeline(t,s,o);n=Math.max(n,i.duration+i.delay)}),n}visitReference(t,e){e.updateOptions(t.options,!0),ps(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let n=e;const s=t.options;if(s&&(s.params||s.delay)&&(n=e.createSubContext(s),n.transformIntoNewTimeline(),null!=s.delay)){6==n.previousNode.type&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Hs);const t=Qn(s.delay);n.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>ps(this,t,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let n=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?Qn(t.options.delay):0;t.steps.forEach(o=>{const r=e.createSubContext(t.options);s&&r.delayNextStep(s),ps(this,o,r),n=Math.max(n,r.currentTimeline.currentTime),i.push(r.currentTimeline)}),i.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(n),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return Xn(e.params?us(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,n=e.currentTimeline.duration,s=i.duration,o=e.createSubContext().currentTimeline;o.easing=i.easing,t.styles.forEach(t=>{o.forwardTime((t.offset||0)*s),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(n+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,n=t.options||{},s=n.delay?Qn(n.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Hs);let o=i;const r=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!n.optional,e.errors);e.currentQueryTotal=r.length;let a=null;r.forEach((i,n)=>{e.currentQueryIndex=n;const r=e.createSubContext(t.options,i);s&&r.delayNextStep(s),i===e.element&&(a=r.currentTimeline),ps(this,t.animation,r),r.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,r.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,n=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),r=o*(e.currentQueryTotal-1);let a=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=r-a;break;case"full":a=i.currentStaggerTime}const c=e.currentTimeline;a&&c.delayNextStep(a);const u=c.currentTime;ps(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-u+(n.startTime-i.currentTimeline.startTime)}}const Hs={};class js{constructor(t,e,i,n,s,o,r,a){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=s,this.errors=o,this.timelines=r,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Hs,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new Is(this._driver,e,0),r.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let n=this.options;null!=i.duration&&(n.duration=Qn(i.duration)),null!=i.delay&&(n.delay=Qn(i.delay));const s=i.params;if(s){let t=n.params;t||(t=this.options.params={}),Object.keys(s).forEach(i=>{e&&t.hasOwnProperty(i)||(t[i]=us(s[i],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(t=>{i[t]=e[t]})}}return t}createSubContext(t=null,e,i){const n=e||this.element,s=new js(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=Hs,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const n={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new Ls(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(s),n}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,n,s,o){let r=[];if(n&&r.push(this.element),t.length>0){t=(t=t.replace(Bs,"."+this._enterClassName)).replace(Ms,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=i);0!==i&&(e=i<0?e.slice(e.length+i,e.length):e.slice(0,i)),r.push(...e)}return s||0!=r.length||o.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),r}}class Is{constructor(t,e,i,n){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),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.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new Is(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||dn,this._currentKeyframe[t]=dn}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,n){e&&(this._previousKeyframe.easing=e);const s=n&&n.params||{},o=function(t,e){const i={};let n;return t.forEach(t=>{"*"===t?(n=n||Object.keys(e),n.forEach(t=>{i[t]=dn})):es(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(o).forEach(t=>{const e=us(o[t],s,i);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:dn),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],n=t._styleSummary[e];(!i||n.time>i.time)&&this._updateStyle(e,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let n=[];this._keyframes.forEach((s,o)=>{const r=es(s,!0);Object.keys(r).forEach(i=>{const n=r[i];"!"==n?t.add(i):n==dn&&e.add(i)}),i||(r.offset=o/this.duration),n.push(r)});const s=t.size?hs(t.values()):[],o=e.size?hs(e.values()):[];if(i){const t=n[0],e=ts(t);t.offset=0,e.offset=1,n=[t,e]}return Ps(this.element,n,s,o,this.duration,this.startTime,this.easing,!1)}}class Ls extends Is{constructor(t,e,i,n,s,o,r=!1){super(t,e,o.delay),this.element=e,this.keyframes=i,this.preStyleProps=n,this.postStyleProps=s,this._stretchStartingKeyframe=r,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],o=i+e,r=e/o,a=es(t[0],!1);a.offset=0,s.push(a);const c=es(t[0],!1);c.offset=Os(r),s.push(c);const u=t.length-1;for(let n=1;n<=u;n++){let r=es(t[n],!1);r.offset=Os((e+r.offset*i)/o),s.push(r)}i=o,e=0,n="",t=s}return Ps(this.element,t,this.preStyleProps,this.postStyleProps,i,e,n,!0)}}function Os(t,e=3){const i=Math.pow(10,e-1);return Math.round(t*i)/i}class Fs{}class Ds extends Fs{normalizePropertyName(t,e){return ds(t)}normalizeStyleValue(t,e,i,n){let s="";const o=i.toString().trim();if(qs[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const e=i.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&n.push(`Please provide a CSS unit value for ${t}:${i}`)}return o+s}}const qs=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("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".split(",")))();function Ns(t,e,i,n,s,o,r,a,c,u,h,l,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:i,fromStyles:o,toState:n,toStyles:r,timelines:a,queriedElements:c,preStyleProps:u,postStyleProps:h,totalTime:l,errors:d}}const Us={};class Gs{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,n){return function(t,e,i,n,s){return t.some(t=>t(e,i,n,s))}(this.ast.matchers,t,e,i,n)}buildStyles(t,e,i){const n=this._stateStyles["*"],s=this._stateStyles[t],o=n?n.buildStyles(e,i):{};return s?s.buildStyles(e,i):o}build(t,e,i,n,s,o,r,a,c,u){const h=[],l=this.ast.options&&this.ast.options.params||Us,d=this.buildStyles(i,r&&r.params||Us,h),f=a&&a.params||Us,g=this.buildStyles(n,f,h),p=new Set,m=new Map,w=new Map,y="void"===n,b={params:Object.assign(Object.assign({},l),f)},A=u?[]:Ks(t,e,this.ast.animation,s,o,d,g,b,c,h);let _=0;if(A.forEach(t=>{_=Math.max(t.duration+t.delay,_)}),h.length)return Ns(e,this._triggerName,i,n,y,d,g,[],[],m,w,_,h);A.forEach(t=>{const i=t.element,n=Sn(m,i,{});t.preStyleProps.forEach(t=>n[t]=!0);const s=Sn(w,i,{});t.postStyleProps.forEach(t=>s[t]=!0),i!==e&&p.add(i)});const v=hs(p.values());return Ns(e,this._triggerName,i,n,y,d,g,A,v,m,w,_)}}class $s{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const i={},n=ts(this.defaultParams);return Object.keys(t).forEach(e=>{const i=t[e];null!=i&&(n[e]=i)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let o=s[t];o.length>1&&(o=us(o,n,e)),i[t]=o})}}),i}}class Vs{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new $s(t.style,t.options&&t.options.params||{})}),Ws(this.states,"true","1"),Ws(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Gs(t,e,this.states))}),this.fallbackTransition=new Gs(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,n){return this.transitionFactories.find(s=>s.match(t,e,i,n))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function Ws(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}const Ys=new Ss;class Zs{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],n=Ts(this._driver,e,i);if(i.length)throw new Error(`Unable to build the animation due to the following errors: ${i.join("\n")}`);this._animations[t]=n}_buildPlayer(t,e,i){const n=t.element,s=En(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(n,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const n=[],s=this._animations[t];let o;const r=new Map;if(s?(o=Ks(this._driver,e,s,Gn,$n,{},{},i,Ys,n),o.forEach(t=>{const e=Sn(r,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(n.push("The requested animation doesn't exist or has already been destroyed"),o=[]),n.length)throw new Error(`Unable to create the animation due to the following errors: ${n.join("\n")}`);r.forEach((t,e)=>{Object.keys(t).forEach(i=>{t[i]=this._driver.computeStyle(e,i,dn)})});const a=Cn(o.map(t=>{const e=r.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,i,n){const s=Pn(e,"","","");return zn(this._getPlayer(t),i,s,n),()=>{}}command(t,e,i,n){if("register"==i)return void this.register(t,n[0]);if("create"==i)return void this.create(t,e,n[0]||{});const s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(t)}}}const Qs="ng-animate-queued",Js="ng-animate-disabled",Xs=".ng-animate-disabled",to=[],eo={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},io={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class no{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=null!=(n=i?t.value:t)?n:null,i){const e=ts(t);delete e.value,this.options=e}else this.options={};var n;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(i=>{null==t[i]&&(t[i]=e[i])})}}}const so="void",oo=new no(so);class ro{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,go(e,this._hostClassName)}listen(t,e,i,n){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=i)&&"done"!=s)throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);var s;const o=Sn(this._elementListeners,t,[]),r={name:e,phase:i,callback:n};o.push(r);const a=Sn(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(go(t,Vn),go(t,"ng-trigger-"+e),a[e]=oo),()=>{this._engine.afterFlush(()=>{const t=o.indexOf(r);t>=0&&o.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,i,n=!0){const s=this._getTrigger(e),o=new co(this.id,e,t);let r=this._engine.statesByElement.get(t);r||(go(t,Vn),go(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,r={}));let a=r[e];const c=new no(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),r[e]=c,a||(a=oo),c.value!==so&&a.value===c.value){if(!function(t,e){const i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(let s=0;s{os(t,i),ss(t,n)})}return}const u=Sn(this._engine.playersByElement,t,[]);u.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let h=s.matchTransition(a.value,c.value,t,c.params),l=!1;if(!h){if(!n)return;h=s.fallbackTransition,l=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:a,toState:c,player:o,isFallbackTransition:l}),l||(go(t,Qs),o.onStart(()=>{po(t,Qs)})),o.onDone(()=>{let e=this.players.indexOf(o);e>=0&&this.players.splice(e,1);const i=this._engine.playersByElement.get(t);if(i){let t=i.indexOf(o);t>=0&&i.splice(t,1)}}),this.players.push(o),u.push(o),o}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,Wn,!0);i.forEach(t=>{if(t.__ng_removed)return;const i=this._engine.fetchNamespacesByElement(t);i.size?i.forEach(i=>i.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,i,n){const s=this._engine.statesByElement.get(t);if(s){const o=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const i=this.trigger(t,e,so,n);i&&o.push(i)}}),o.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&Cn(o).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const n=new Set;e.forEach(e=>{const s=e.name;if(n.has(s))return;n.add(s);const o=this._triggers[s].fallbackTransition,r=i[s]||oo,a=new no(so),c=new co(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:o,fromState:r,toState:a,player:c,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let n=!1;if(i.totalAnimations){const e=i.players.length?i.playersByQueriedElement.get(t):[];if(e&&e.length)n=!0;else{let e=t;for(;e=e.parentNode;)if(i.statesByElement.get(e)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(t),n)i.markElementAsRemoved(this.id,t,!1,e);else{const n=t.__ng_removed;n&&n!==eo||(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){go(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const n=i.player;if(n.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(e=>{if(e.name==i.triggerName){const n=Pn(s,i.triggerName,i.fromState.value,i.toState.value);n._data=t,zn(i.player,e.phase,n,e.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):e.push(i)}),this._queue=[],e.sort((t,e)=>{const i=t.transition.ast.depCount,n=e.transition.ast.depCount;return 0==i||0==n?i-n:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class ao{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,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=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const i=new ro(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList.length-1;if(i>=0){let n=!1;for(let s=i;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),n=!0;break}n||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(i);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const t=Object.keys(i);for(let n=0;n=0&&this.collectedLeaveElements.splice(t,1)}if(t){const n=this._fetchNamespace(t);n&&n.insertNode(e,i)}n&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),go(t,Js)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),po(t,Js))}removeNode(t,e,i,n){if(uo(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n),i){const i=this.namespacesByHostElement.get(e);i&&i.id!==t&&i.removeNode(e,n)}}else this._onRemovalComplete(e,n)}markElementAsRemoved(t,e,i,n){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}listen(t,e,i,n,s){return uo(e)?this._fetchNamespace(t).listen(e,i,n,s):()=>{}}_buildInstruction(t,e,i,n,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,Wn,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,Zn,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Cn(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=eo,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,Xs)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Xs,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;it()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Cn(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const i=new Ss,n=[],s=new Map,o=[],r=new Map,a=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(t=>{u.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let i=0;i{const i=Gn+g++;f.set(e,i),t.forEach(t=>go(t,i))});const p=[],m=new Set,w=new Set;for(let S=0;Sm.add(t)):w.add(t))}const y=new Map,b=fo(l,Array.from(m));b.forEach((t,e)=>{const i=$n+g++;y.set(e,i),t.forEach(t=>go(t,i))}),t.push(()=>{d.forEach((t,e)=>{const i=f.get(e);t.forEach(t=>po(t,i))}),b.forEach((t,e)=>{const i=y.get(e);t.forEach(t=>po(t,i))}),p.forEach(t=>{this.processLeaveNode(t)})});const A=[],_=[];for(let S=this._namespaceList.length-1;S>=0;S--)this._namespaceList[S].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(A.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const u=!h||!this.driver.containsElement(h,s),l=y.get(s),d=f.get(s),g=this._buildInstruction(t,i,d,l,u);if(g.errors&&g.errors.length)_.push(g);else{if(u)return e.onStart(()=>os(s,g.fromStyles)),e.onDestroy(()=>ss(s,g.toStyles)),void n.push(e);if(t.isFallbackTransition)return e.onStart(()=>os(s,g.fromStyles)),e.onDestroy(()=>ss(s,g.toStyles)),void n.push(e);g.timelines.forEach(t=>t.stretchStartingKeyframe=!0),i.append(s,g.timelines),o.push({instruction:g,player:e,element:s}),g.queriedElements.forEach(t=>Sn(r,t,[]).push(e)),g.preStyleProps.forEach((t,e)=>{const i=Object.keys(t);if(i.length){let t=a.get(e);t||a.set(e,t=new Set),i.forEach(e=>t.add(e))}}),g.postStyleProps.forEach((t,e)=>{const i=Object.keys(t);let n=c.get(e);n||c.set(e,n=new Set),i.forEach(t=>n.add(t))})}});if(_.length){const t=[];_.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),A.forEach(t=>t.destroy()),this.reportError(t)}const v=new Map,T=new Map;o.forEach(t=>{const e=t.element;i.has(e)&&(T.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,v))}),n.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{Sn(v,e,[]).push(t),t.destroy()})});const k=p.filter(t=>yo(t,a,c)),C=new Map;lo(C,this.driver,w,c,dn).forEach(t=>{yo(t,a,c)&&k.push(t)});const E=new Map;d.forEach((t,e)=>{lo(E,this.driver,new Set(t),a,"!")}),k.forEach(t=>{const e=C.get(t),i=E.get(t);C.set(t,Object.assign(Object.assign({},e),i))});const z=[],R=[],P={};o.forEach(t=>{const{element:e,player:o,instruction:r}=t;if(i.has(e)){if(u.has(e))return o.onDestroy(()=>ss(e,r.toStyles)),o.disabled=!0,o.overrideTotalTime(r.totalTime),void n.push(o);let t=P;if(T.size>1){let i=e;const n=[];for(;i=i.parentNode;){const e=T.get(i);if(e){t=e;break}n.push(i)}n.forEach(e=>T.set(e,t))}const i=this._buildAnimation(o.namespaceId,r,v,s,E,C);if(o.setRealPlayer(i),t===P)z.push(o);else{const e=this.playersByElement.get(t);e&&e.length&&(o.parentPlayer=Cn(e)),n.push(o)}}else os(e,r.fromStyles),o.onDestroy(()=>ss(e,r.toStyles)),R.push(o),u.has(e)&&n.push(o)}),R.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const i=Cn(e);t.setRealPlayer(i)}}),n.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let S=0;S!t.destroyed);n.length?mo(this,t,n):this.processLeaveNode(t)}return p.length=0,z.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),z}elementContainsData(t,e){let i=!1;const n=e.__ng_removed;return n&&n.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,n,s){let o=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(o=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||s==so;e.forEach(e=>{e.queued||(t||e.triggerName==n)&&o.push(e)})}}return(i||n)&&(o=o.filter(t=>!(i&&i!=t.namespaceId||n&&n!=t.triggerName))),o}_beforeAnimationBuild(t,e,i){const n=e.element,s=e.isRemovalTransition?void 0:t,o=e.isRemovalTransition?void 0:e.triggerName;for(const r of e.timelines){const t=r.element,a=t!==n,c=Sn(i,t,[]);this._getPreviousPlayers(t,a,s,o,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),c.push(t)})}os(n,e.fromStyles)}_buildAnimation(t,e,i,n,s,o){const r=e.triggerName,a=e.element,c=[],u=new Set,h=new Set,l=e.timelines.map(e=>{const l=e.element;u.add(l);const d=l.__ng_removed;if(d&&d.removedBeforeQueried)return new _n(e.duration,e.delay);const f=l!==a,g=function(t){const e=[];return wo(t,e),e}((i.get(l)||to).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===l),p=s.get(l),m=o.get(l),w=En(0,this._normalizer,0,e.keyframes,p,m),y=this._buildPlayer(e,w,g);if(e.subTimeline&&n&&h.add(l),f){const e=new co(t,r,l);e.setRealPlayer(y),c.push(e)}return y});c.forEach(t=>{Sn(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,i){let n;if(t instanceof Map){if(n=t.get(e),n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&t.delete(e)}}else if(n=t[e],n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&delete t[e]}return n}(this.playersByQueriedElement,t.element,t))}),u.forEach(t=>go(t,Yn));const d=Cn(l);return d.onDestroy(()=>{u.forEach(t=>po(t,Yn)),ss(a,e.toStyles)}),h.forEach(t=>{Sn(n,t,[]).push(d)}),d}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new _n(t.duration,t.delay)}}class co{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new _n,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>zn(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Sn(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function uo(t){return t&&1===t.nodeType}function ho(t,e){const i=t.style.display;return t.style.display=null!=e?e:"none",i}function lo(t,e,i,n,s){const o=[];i.forEach(t=>o.push(ho(t)));const r=[];n.forEach((i,n)=>{const o={};i.forEach(t=>{const i=o[t]=e.computeStyle(n,t,s);i&&0!=i.length||(n.__ng_removed=io,r.push(n))}),t.set(n,o)});let a=0;return i.forEach(t=>ho(t,o[a++])),r}function fo(t,e){const i=new Map;if(t.forEach(t=>i.set(t,[])),0==e.length)return i;const n=new Set(e),s=new Map;function o(t){if(!t)return 1;let e=s.get(t);if(e)return e;const r=t.parentNode;return e=i.has(r)?r:n.has(r)?1:o(r),s.set(t,e),e}return e.forEach(t=>{const e=o(t);1!==e&&i.get(e).push(t)}),i}function go(t,e){if(t.classList)t.classList.add(e);else{let i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function po(t,e){if(t.classList)t.classList.remove(e);else{let i=t.$$classes;i&&delete i[e]}}function mo(t,e,i){Cn(i).onDone(()=>t.processLeaveNode(e))}function wo(t,e){for(let i=0;is.add(t)):e.set(t,n),i.delete(t),!0}class bo{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new ao(t,e,i),this._timelineEngine=new Zs(t,e,i),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,i,n,s){const o=t+"-"+n;let r=this._triggerCache[o];if(!r){const t=[],e=Ts(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${n}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);r=function(t,e){return new Vs(t,e)}(n,e),this._triggerCache[o]=r}this._transitionEngine.registerTrigger(e,n,r)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,n){this._transitionEngine.insertNode(t,e,i,n)}onRemove(t,e,i,n){this._transitionEngine.removeNode(t,e,n||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,n){if("@"==i.charAt(0)){const[t,s]=Bn(i);this._timelineEngine.command(t,e,s,n)}else this._transitionEngine.trigger(t,e,i,n)}listen(t,e,i,n,s){if("@"==i.charAt(0)){const[t,n]=Bn(i);return this._timelineEngine.listen(t,e,n,s)}return this._transitionEngine.listen(t,e,i,n,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Ao(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=vo(e[0]),e.length>1&&(n=vo(e[e.length-1]))):e&&(i=vo(e)),i||n?new _o(t,i,n):null}let _o=(()=>{class t{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&ss(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ss(this._element,this._initialStyles),this._endStyles&&(ss(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(os(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(os(this._element,this._endStyles),this._endStyles=null),ss(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function vo(t){let e=null;const i=Object.keys(t);for(let n=0;nthis._handleCallback(t)}apply(){!function(t,e){const i=Mo(t,"").trim();i.length&&(function(t,e){let i=0;for(let n=0;n=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),So(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const i=Mo(t,"").split(","),n=Po(i,e);n>=0&&(i.splice(n,1),Bo(t,"",i.join(",")))}(this._element,this._name))}}function zo(t,e,i){Bo(t,"PlayState",i,Ro(t,e))}function Ro(t,e){const i=Mo(t,"");return i.indexOf(",")>0?Po(i.split(","),e):Po([i],e)}function Po(t,e){for(let i=0;i=0)return i;return-1}function So(t,e,i){i?t.removeEventListener(Co,e):t.addEventListener(Co,e)}function Bo(t,e,i,n){const s=ko+e;if(null!=n){const e=t.style[s];if(e.length){const t=e.split(",");t[n]=i,i=t.join(",")}}t.style[s]=i}function Mo(t,e){return t.style[ko+e]||""}class Ko{constructor(t,e,i,n,s,o,r,a){this.element=t,this.keyframes=e,this.animationName=i,this._duration=n,this._delay=s,this._finalStyles=r,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=n+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Eo(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(i=>{"offset"!=i&&(t[i]=e?this._finalStyles[i]:ms(this.element,i))})}this.currentSnapshot=t}}class xo extends _n{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=qn(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class Ho{constructor(){this._count=0}validateStyleProperty(t){return Ln(t)}matchesElement(t,e){return On(t,e)}containsElement(t,e){return Fn(t,e)}query(t,e,i){return Dn(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(t=>qn(t));let n=`@keyframes ${e} {\n`,s="";i.forEach(t=>{s=" ";const e=parseFloat(t.offset);n+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const i=t[e];switch(e){case"offset":return;case"easing":return void(i&&(n+=`${s}animation-timing-function: ${i};\n`));default:return void(n+=`${s}${e}: ${i};\n`)}}),n+=`${s}}\n`}),n+="}\n";const o=document.createElement("style");return o.textContent=n,o}animate(t,e,i,n,s,o=[],r){const a=o.filter(t=>t instanceof Ko),c={};fs(i,n)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const u=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(i=>{"offset"!=i&&"easing"!=i&&(e[i]=t[i])})}),e}(e=gs(t,e,c));if(0==i)return new xo(t,u);const h="gen_css_kf_"+this._count++,l=this.buildKeyframeElement(t,h,e);(function(t){var e;const i=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&i instanceof ShadowRoot?i:document.head})(t).appendChild(l);const d=Ao(t,e),f=new Ko(t,e,h,i,n,s,u,d);return f.onDestroy(()=>{var t;(t=l).parentNode.removeChild(t)}),f}}class jo{constructor(t,e,i,n){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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}_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(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:ms(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Io{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Lo().toString()),this._cssKeyframesDriver=new Ho}validateStyleProperty(t){return Ln(t)}matchesElement(t,e){return On(t,e)}containsElement(t,e){return Fn(t,e)}query(t,e,i){return Dn(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,n,s,o=[],r){if(!r&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,s,o);const a={duration:i,delay:n,fill:0==n?"both":"forwards"};s&&(a.easing=s);const c={},u=o.filter(t=>t instanceof jo);fs(i,n)&&u.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const h=Ao(t,e=gs(t,e=e.map(t=>es(t,!1)),c));return new jo(t,e,a,h)}}function Lo(){return Tn()&&Element.prototype.animate||{}}let Oo=(()=>{class t extends ln{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:s.ifc.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?pn(t):t;return qo(this._renderer,null,e,"register",[i]),new Fo(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.FYo),s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class Fo extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Do(this._id,t,e||{},this._renderer)}}class Do{constructor(t,e,i,n){this.id=t,this.element=e,this._renderer=n,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return qo(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function qo(t,e,i,n,s){return t.setProperty(e,`@@${i}:${n}`,s)}const No="@",Uo="@.disabled";let Go=(()=>{class t{constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const i=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(i);return t||(t=new $o("",i,this.engine),this._rendererCache.set(i,t)),t}const n=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const o=e=>{Array.isArray(e)?e.forEach(o):this.engine.registerTrigger(n,s,t,e.name,e)};return e.data.animation.forEach(o),new Vo(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){t>=0&&te(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,i]=t;e(i)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,i]))}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 t.\u0275fac=function(e){return new(e||t)(s.LFG(s.FYo),s.LFG(bo),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class $o{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,n=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,n)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,n){this.delegate.setAttribute(t,e,i,n)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,n){this.delegate.setStyle(t,e,i,n)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){e.charAt(0)==No&&e==Uo?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Vo extends $o{constructor(t,e,i,n){super(e,i,n),this.factory=t,this.namespaceId=e}setProperty(t,e,i){e.charAt(0)==No?"."==e.charAt(1)&&e==Uo?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if(e.charAt(0)==No){const n=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),o="";return s.charAt(0)!=No&&([s,o]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,n,s,o,t=>{this.factory.scheduleListenerCallback(t._data||-1,i,t)})}return this.delegate.listen(t,e,i)}}let Wo=(()=>{class t extends bo{constructor(t,e,i){super(t.body,e,i)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0),s.LFG(Un),s.LFG(Fs))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const Yo=new s.OlP("AnimationModuleType"),Zo=[{provide:ln,useClass:Oo},{provide:Fs,useFactory:function(){return new Ds}},{provide:bo,useClass:Wo},{provide:s.FYo,useFactory:function(t,e,i){return new Go(t,e,i)},deps:[T,bo,s.R0b]}],Qo=[{provide:Un,useFactory:function(){return"function"==typeof Lo()?new Io:new Ho}},{provide:Yo,useValue:"BrowserAnimations"},...Zo],Jo=[{provide:Un,useClass:Nn},{provide:Yo,useValue:"NoopAnimations"},...Zo];let Xo=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?Jo:Qo}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:Qo,imports:[L]}),t})();const tr=new s.GfV("12.0.5"),er=new s.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let ir=(()=>{class t{constructor(t,e,i){this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return(0,s.X6Q)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&tr.full!==hn.full&&console.warn("The Angular Material version ("+tr.full+") does not match the Angular CDK version ("+hn.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(cn),s.LFG(er,8),s.LFG(n.K0))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Le],Le]}),t})();function nr(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=bt(t)}}}function sr(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function or(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=bt(t)}}}function rr(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new kt.xQ}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}const ar=new s.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return(0,s.f3M)(s.soG)}});class cr{constructor(){this._localeChanges=new kt.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let i=this.isValid(t),n=this.isValid(e);return i&&n?!this.compareDate(t,e):i==n}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}}const ur=new s.OlP("mat-date-formats");let hr;try{hr="undefined"!=typeof Intl}catch(Rw){hr=!1}const lr={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},dr=pr(31,t=>String(t+1)),fr={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},gr=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function pr(t,e){const i=Array(t);for(let n=0;n{class t extends cr{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(hr){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return pr(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return lr[t]}getDateNames(){if(hr){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return pr(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return dr}getDayOfWeekNames(t){if(hr){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return pr(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return fr[t]}getYearName(t){if(hr){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,i){let n=this._createDateWithOverflow(t,e,i);return n.getMonth(),n}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(hr){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});const i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(i,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let i=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(i)!=((this.getMonth(t)+e)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(gr.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,i){const n=new Date;return n.setFullYear(t,e,i),n.setHours(0,0,0,0),n}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const i=new Date;return i.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),i.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(i)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(ar,8),s.LFG(Ce))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),wr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[{provide:cr,useClass:mr}],imports:[[Ee]]}),t})();const yr={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 br=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[{provide:ur,useValue:yr}],imports:[[wr]]}),t})(),Ar=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),_r=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[ir],ir]}),t})();class vr{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Tr={enterDuration:450,exitDuration:400},kr=Me({passive:!0}),Cr=["mousedown","touchstart"],Er=["mouseup","mouseleave","touchend","touchcancel"];class zr{constructor(t,e,i,n){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,n.isBrowser&&(this._containerElement=Tt(i))}fadeInRipple(t,e,i={}){const n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},Tr),i.animation);i.centered&&(t=n.left+n.width/2,e=n.top+n.height/2);const o=i.radius||function(t,e,i){const n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),s=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+s*s)}(t,e,n),r=t-n.left,a=e-n.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=r-o+"px",u.style.top=a-o+"px",u.style.height=2*o+"px",u.style.width=2*o+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),window.getComputedStyle(u).getPropertyValue("opacity"),u.style.transform="scale(1)";const h=new vr(this,u,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const t=h===this._mostRecentTransientRipple;h.state=1,i.persistent||t&&this._isPointerDown||h.fadeOut()},c),h}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,n=Object.assign(Object.assign({},Tr),t.config.animation);i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.parentNode.removeChild(i)},n.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=Tt(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Cr))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Er),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Ji(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,kr)})})}_removeTriggerEvents(){this._triggerElement&&(Cr.forEach(t=>{this._triggerElement.removeEventListener(t,this,kr)}),this._pointerUpEventsRegistered&&Er.forEach(t=>{this._triggerElement.removeEventListener(t,this,kr)}))}}const Rr=new s.OlP("mat-ripple-global-options");let Pr=(()=>{class t{constructor(t,e,i,n,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=n||{},this._rippleRenderer=new zr(this,e,t,i)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,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:Object.assign(Object.assign(Object.assign({},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(t,e=0,i){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(Ce),s.Y36(Rr,8),s.Y36(Yo,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),Sr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[ir,Ee],ir]}),t})(),Br=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[ir]]}),t})(),Mr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Sr,n.ez,ir,Br]]}),t})();var Kr=i(9764),xr=i(653);function Hr(t){return new Et.y(e=>{let i;try{i=t()}catch(n){return void e.error(n)}return(i?(0,Kr.D)(i):(0,xr.c)()).subscribe(e)})}function jr(t,e){}class Ir{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=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const Lr={dialogContainer:fn("dialogContainer",[wn("void, exit",mn({opacity:0,transform:"scale(0.7)"})),wn("enter",mn({transform:"none"})),bn("* => enter",gn("150ms cubic-bezier(0, 0, 0.2, 1)",mn({transform:"none",opacity:1}))),bn("* => void, * => exit",gn("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",mn({opacity:0})))])};let Or=(()=>{class t extends Ve{constructor(t,e,i,n,o,r){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=i,this._config=o,this._focusMonitor=r,this._animationStateChanged=new s.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=o.ariaLabelledBy||null,this._document=n}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=He(),i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=He())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=He();return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Qi),s.Y36(s.sBO),s.Y36(n.K0,8),s.Y36(Ir),s.Y36(nn))},t.\u0275dir=s.lG2({type:t,viewQuery:function(t,e){if(1&t&&s.Gf(Ye,7),2&t){let t;s.iGM(t=s.CRH())&&(e._portalOutlet=t.first)}},features:[s.qOj]}),t})(),Fr=(()=>{class t extends Or{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&s.WFA("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(s.Ikx("id",e._id),s.uIk("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),s.d8E("@dialogContainer",e._state))},features:[s.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&s.YNc(0,jr,0,0,"ng-template",0)},directives:[Ye],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[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.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}\n"],encapsulation:2,data:{animation:[Lr.dialogContainer]}}),t})(),Dr=0;class qr{constructor(t,e,i="mat-dialog-"+Dr++){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new kt.xQ,this._afterClosed=new kt.xQ,this._beforeClosed=new kt.xQ,this._state=0,e._id=i,e._animationStateChanged.pipe((0,se.h)(t=>"opened"===t.state),(0,Je.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,se.h)(t=>"closed"===t.state),(0,Je.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe((0,se.h)(t=>27===t.keyCode&&!this.disableClose&&!Xe(t))).subscribe(t=>{t.preventDefault(),Nr(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():Nr(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe((0,se.h)(t=>"closing"===t.state),(0,Je.q)(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function Nr(t,e,i){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(i)}const Ur=new s.OlP("MatDialogData"),Gr=new s.OlP("mat-dialog-default-options"),$r=new s.OlP("mat-dialog-scroll-strategy"),Vr={provide:$r,deps:[Ri],useFactory:function(t){return()=>t.scrollStrategies.block()}};let Wr=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c){this._overlay=t,this._injector=e,this._defaultOptions=i,this._parentDialog=n,this._overlayContainer=s,this._dialogRefConstructor=r,this._dialogContainerType=a,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new kt.xQ,this._afterOpenedAtThisLevel=new kt.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=Hr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(he(void 0))),this._scrollStrategy=o}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new Ir)).id&&this.getDialogById(e.id);const i=this._createOverlay(e),n=this._attachDialogContainer(i,e),s=this._attachDialogContent(t,n,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),n._initializeWithAttachedContent(),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new ci({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const i=s.zs3.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:Ir,useValue:e}]}),n=new Ue(this._dialogContainerType,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}_attachDialogContent(t,e,i,n){const o=new this._dialogRefConstructor(i,e,n.id);if(t instanceof s.Rgc)e.attachTemplatePortal(new Ge(t,null,{$implicit:n.data,dialogRef:o}));else{const i=this._createInjector(n,o,e),s=e.attachComponentPortal(new Ue(t,n.viewContainerRef,i));o.componentInstance=s.instance}return o.updateSize(n.width,n.height).updatePosition(n.position),o}_createInjector(t,e,i){const n=t&&t.viewContainerRef&&t.viewContainerRef.injector,o=[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||n&&n.get(Ie,null,s.XFs.Optional)||o.push({provide:Ie,useValue:{value:t.direction,change:(0,Ct.of)()}}),s.zs3.create({parent:n||this._injector,providers:o})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let i=e.length-1;i>-1;i--){let n=e[i];n===t||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Ri),s.Y36(s.zs3),s.Y36(void 0),s.Y36(void 0),s.Y36(pi),s.Y36(void 0),s.Y36(s.DyG),s.Y36(s.DyG),s.Y36(s.OlP))},t.\u0275dir=s.lG2({type:t}),t})(),Yr=(()=>{class t extends Wr{constructor(t,e,i,n,s,o,r){super(t,e,n,o,r,s,qr,Fr,Ur)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Ri),s.LFG(s.zs3),s.LFG(n.Ye,8),s.LFG(Gr,8),s.LFG($r),s.LFG(t,12),s.LFG(pi))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Zr=0,Qr=(()=>{class t{constructor(t,e,i){this._dialogRef=t,this._elementRef=e,this._dialog=i,this.id="mat-dialog-title-"+Zr++}ngOnInit(){this._dialogRef||(this._dialogRef=function(t,e){let i=t.nativeElement.parentElement;for(;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?e.find(t=>t.id===i.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(qr,8),s.Y36(s.SBq),s.Y36(Yr))},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&s.Ikx("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),Jr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),Xr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})(),ta=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Yr,Vr],imports:[[Si,Ze,ir],ir]}),t})();var ea=i(2056);function ia(...t){if(1===t.length){const e=t[0];if((0,zt.k)(e))return na(e,null);if((0,ea.K)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return na(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return na(t=1===t.length&&(0,zt.k)(t[0])?t[0]:t,null).pipe((0,Pt.U)(t=>e(...t)))}return na(t,null)}function na(t,e){return new Et.y(i=>{const n=t.length;if(0===n)return void i.complete();const s=new Array(n);let o=0,r=0;for(let a=0;a{u||(u=!0,r++),s[a]=t},error:t=>i.error(t),complete:()=>{o++,o!==n&&u||(r===n&&i.next(e?e.reduce((t,e,i)=>(t[e]=s[i],t),{}):s),i.complete())}}))}})}var sa=i(436);class oa{}let ra=(()=>{class t extends oa{getTranslation(t){return(0,Ct.of)({})}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class aa{}let ca=(()=>{class t{handle(t){return t.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function ua(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;let i,n,s,o=typeof t;if(o==typeof e&&"object"==o){if(!Array.isArray(t)){if(Array.isArray(e))return!1;for(n in s=Object.create(null),t){if(!ua(t[n],e[n]))return!1;s[n]=!0}for(n in e)if(!(n in s)&&void 0!==e[n])return!1;return!0}if(!Array.isArray(e))return!1;if((i=t.length)==e.length){for(n=0;n{la(e[n])?n in t?i[n]=da(t[n],e[n]):Object.assign(i,{[n]:e[n]}):Object.assign(i,{[n]:e[n]})}),i}class fa{}let ga=(()=>{class t extends fa{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(t,e){let i;return i="string"==typeof t?this.interpolateString(t,e):"function"==typeof t?this.interpolateFunction(t,e):t,i}getValue(t,e){let i="string"==typeof e?e.split("."):[e];e="";do{e+=i.shift(),!ha(t)||!ha(t[e])||"object"!=typeof t[e]&&i.length?i.length?e+=".":t=void 0:(t=t[e],e="")}while(i.length);return t}interpolateFunction(t,e){return t(e)}interpolateString(t,e){return e?t.replace(this.templateMatcher,(t,i)=>{let n=this.getValue(e,i);return ha(n)?n:t}):t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class pa{}let ma=(()=>{class t extends pa{compile(t,e){return t}compileTranslations(t,e){return t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class wa{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new s.vpe,this.onLangChange=new s.vpe,this.onDefaultLangChange=new s.vpe}}const ya=new s.OlP("USE_STORE"),ba=new s.OlP("USE_DEFAULT_LANG"),Aa=new s.OlP("DEFAULT_LANGUAGE"),_a=new s.OlP("USE_EXTEND");let va=(()=>{class t{constructor(t,e,i,n,o,r=!0,a=!1,c=!1,u){this.store=t,this.currentLoader=e,this.compiler=i,this.parser=n,this.missingTranslationHandler=o,this.useDefaultLang=r,this.isolate=a,this.extend=c,this.pending=!1,this._onTranslationChange=new s.vpe,this._onLangChange=new s.vpe,this._onDefaultLangChange=new s.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(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}setDefaultLang(t){if(t===this.defaultLang)return;let e=this.retrieveTranslations(t);void 0!==e?(null==this.defaultLang&&(this.defaultLang=t),e.pipe((0,Je.q)(1)).subscribe(e=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return(0,Ct.of)(this.translations[t]);let e=this.retrieveTranslations(t);return void 0!==e?(this.currentLang||(this.currentLang=t),e.pipe((0,Je.q)(1)).subscribe(e=>{this.changeLang(t)}),e):(this.changeLang(t),(0,Ct.of)(this.translations[t]))}retrieveTranslations(t){let e;return(void 0===this.translations[t]||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),e=this._translationRequests[t]),e}getTranslation(t){this.pending=!0;const e=this.currentLoader.getTranslation(t).pipe(ve(1),(0,Je.q)(1));return this.loadingTranslations=e.pipe((0,Pt.U)(e=>this.compiler.compileTranslations(e,t)),ve(1),(0,Je.q)(1)),this.loadingTranslations.subscribe({next:e=>{this.translations[t]=this.extend&&this.translations[t]?Object.assign(Object.assign({},e),this.translations[t]):e,this.updateLangs(),this.pending=!1},error:t=>{this.pending=!1}}),e}setTranslation(t,e,i=!1){e=this.compiler.compileTranslations(e,t),this.translations[t]=(i||this.extend)&&this.translations[t]?da(this.translations[t],e):e,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,e,i){let n;if(e instanceof Array){let n={},s=!1;for(let o of e)n[o]=this.getParsedResult(t,o,i),$t(n[o])&&(s=!0);return s?ia(e.map(t=>$t(n[t])?n[t]:(0,Ct.of)(n[t]))).pipe((0,Pt.U)(t=>{let i={};return t.forEach((t,n)=>{i[e[n]]=t}),i})):n}if(t&&(n=this.parser.interpolate(this.parser.getValue(t,e),i)),void 0===n&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(n=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e),i)),void 0===n){let t={key:e,translateService:this};void 0!==i&&(t.interpolateParams=i),n=this.missingTranslationHandler.handle(t)}return void 0!==n?n:e}get(t,e){if(!ha(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,sa.b)(i=>$t(i=this.getParsedResult(i,t,e))?i:(0,Ct.of)(i)));{let i=this.getParsedResult(this.translations[this.currentLang],t,e);return $t(i)?i:(0,Ct.of)(i)}}getStreamOnTranslationChange(t,e){if(!ha(t)||!t.length)throw new Error('Parameter "key" required');return ue(Hr(()=>this.get(t,e)),this.onTranslationChange.pipe((0,le.w)(i=>{const n=this.getParsedResult(i.translations,t,e);return"function"==typeof n.subscribe?n:(0,Ct.of)(n)})))}stream(t,e){if(!ha(t)||!t.length)throw new Error('Parameter "key" required');return ue(Hr(()=>this.get(t,e)),this.onLangChange.pipe((0,le.w)(i=>{const n=this.getParsedResult(i.translations,t,e);return $t(n)?n:(0,Ct.of)(n)})))}instant(t,e){if(!ha(t)||!t.length)throw new Error('Parameter "key" required');let i=this.getParsedResult(this.translations[this.currentLang],t,e);if($t(i)){if(t instanceof Array){let e={};return t.forEach((i,n)=>{e[t[n]]=t[n]}),e}return t}return i}set(t,e,i=this.currentLang){this.translations[i][t]=this.compiler.compile(e,i),this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==t?(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(wa),s.LFG(oa),s.LFG(pa),s.LFG(fa),s.LFG(aa),s.LFG(ba),s.LFG(ya),s.LFG(_a),s.LFG(Aa))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Ta=(()=>{class t{constructor(t,e){this.translate=t,this._ref=e,this.value=""}updateValue(t,e,i){let n=e=>{this.value=void 0!==e?e:t,this.lastKey=t,this._ref.markForCheck()};if(i){let s=this.translate.getParsedResult(i,t,e);$t(s.subscribe)?s.subscribe(n):n(s)}this.translate.get(t,e).subscribe(n)}transform(t,...e){if(!t||!t.length)return t;if(ua(t,this.lastKey)&&ua(e,this.lastParams))return this.value;let i;if(ha(e[0])&&e.length)if("string"==typeof e[0]&&e[0].length){let t=e[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{i=JSON.parse(t)}catch(n){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${e[0]}`)}}else"object"!=typeof e[0]||Array.isArray(e[0])||(i=e[0]);return this.lastKey=t,this.lastParams=e,this.updateValue(t,i),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(e=>{this.lastKey&&e.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(t,i,e.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(e=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i,e.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(va,16),s.Y36(s.sBO,16))},t.\u0275pipe=s.Yjl({name:"translate",type:t,pure:!1}),t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),ka=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:oa,useClass:ra},e.compiler||{provide:pa,useClass:ma},e.parser||{provide:fa,useClass:ga},e.missingTranslationHandler||{provide:aa,useClass:ca},wa,{provide:ya,useValue:e.isolate},{provide:ba,useValue:e.useDefaultLang},{provide:_a,useValue:e.extend},{provide:Aa,useValue:e.defaultLanguage},va]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:oa,useClass:ra},e.compiler||{provide:pa,useClass:ma},e.parser||{provide:fa,useClass:ga},e.missingTranslationHandler||{provide:aa,useClass:ca},{provide:ya,useValue:e.isolate},{provide:ba,useValue:e.useDefaultLang},{provide:_a,useValue:e.extend},{provide:Aa,useValue:e.defaultLanguage},va]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),Ca=(()=>{class t{constructor(t){this.dialogRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(qr))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(t,e){1&t&&(s.TgZ(0,"h2",0),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE")))},directives:[Jr],pipes:[Ta],styles:[""]}),t})();const Ea=["mat-button",""],za=["*"],Ra=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class Pa{constructor(t){this._elementRef=t}}const Sa=sr(nr(or(Pa)));let Ba=(()=>{class t extends Sa{constructor(t,e,i){super(t),this._focusMonitor=e,this._animationMode=i,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const n of Ra)this._hasHostAttributes(n)&&this._getHostElement().classList.add(n);t.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(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(nn),s.Y36(Yo,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){if(1&t&&s.Gf(Pr,5),2&t){let t;s.iGM(t=s.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(s.uIk("disabled",e.disabled||null),s.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[s.qOj],attrs:Ea,ngContentSelectors:za,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(t,e){1&t&&(s.F$t(),s.TgZ(0,"span",0),s.Hsn(1),s.qZA(),s._UZ(2,"span",1),s._UZ(3,"span",2)),2&t&&(s.xp6(2),s.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),s.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[Pr],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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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-animation-noopable.mat-raised-button{transition:none;animation:none}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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-animation-noopable.mat-fab{transition:none;animation:none}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t})(),Ma=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Sr,ir],ir]}),t})();const Ka=["underline"],xa=["connectionContainer"],Ha=["inputContainer"],ja=["label"];function Ia(t,e){1&t&&(s.ynx(0),s.TgZ(1,"div",14),s._UZ(2,"div",15),s._UZ(3,"div",16),s._UZ(4,"div",17),s.qZA(),s.TgZ(5,"div",18),s._UZ(6,"div",15),s._UZ(7,"div",16),s._UZ(8,"div",17),s.qZA(),s.BQk())}function La(t,e){1&t&&(s.TgZ(0,"div",19),s.Hsn(1,1),s.qZA())}function Oa(t,e){if(1&t&&(s.ynx(0),s.Hsn(1,2),s.TgZ(2,"span"),s._uU(3),s.qZA(),s.BQk()),2&t){const t=s.oxw(2);s.xp6(3),s.Oqu(t._control.placeholder)}}function Fa(t,e){1&t&&s.Hsn(0,3,["*ngSwitchCase","true"])}function Da(t,e){1&t&&(s.TgZ(0,"span",23),s._uU(1," *"),s.qZA())}function qa(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"label",20,21),s.NdJ("cdkObserveContent",function(){return s.CHM(t),s.oxw().updateOutlineGap()}),s.YNc(2,Oa,4,1,"ng-container",12),s.YNc(3,Fa,1,0,"ng-content",12),s.YNc(4,Da,2,0,"span",22),s.qZA()}if(2&t){const t=s.oxw();s.ekj("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),s.Q6J("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),s.uIk("for",t._control.id)("aria-owns",t._control.id),s.xp6(2),s.Q6J("ngSwitchCase",!1),s.xp6(1),s.Q6J("ngSwitchCase",!0),s.xp6(1),s.Q6J("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function Na(t,e){1&t&&(s.TgZ(0,"div",24),s.Hsn(1,4),s.qZA())}function Ua(t,e){if(1&t&&(s.TgZ(0,"div",25,26),s._UZ(2,"span",27),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.ekj("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function Ga(t,e){if(1&t&&(s.TgZ(0,"div"),s.Hsn(1,5),s.qZA()),2&t){const t=s.oxw();s.Q6J("@transitionMessages",t._subscriptAnimationState)}}function $a(t,e){if(1&t&&(s.TgZ(0,"div",31),s._uU(1),s.qZA()),2&t){const t=s.oxw(2);s.Q6J("id",t._hintLabelId),s.xp6(1),s.Oqu(t.hintLabel)}}function Va(t,e){if(1&t&&(s.TgZ(0,"div",28),s.YNc(1,$a,2,2,"div",29),s.Hsn(2,6),s._UZ(3,"div",30),s.Hsn(4,7),s.qZA()),2&t){const t=s.oxw();s.Q6J("@transitionMessages",t._subscriptAnimationState),s.xp6(1),s.Q6J("ngIf",t.hintLabel)}}const Wa=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Ya=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Za=0;const Qa=new s.OlP("MatError");let Ja=(()=>{class t{constructor(t,e){this.id="mat-error-"+Za++,t||e.nativeElement.setAttribute("aria-live","polite")}}return t.\u0275fac=function(e){return new(e||t)(s.$8M("aria-live"),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&s.uIk("id",e.id)},inputs:{id:"id"},features:[s._Bn([{provide:Qa,useExisting:t}])]}),t})();const Xa={transitionMessages:fn("transitionMessages",[wn("enter",mn({opacity:1,transform:"translateY(0%)"})),bn("void => enter",[mn({opacity:0,transform:"translateY(-5px)"}),gn("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let tc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t}),t})(),ec=0;const ic=new s.OlP("MatHint");let nc=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+ec++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(s.uIk("id",e.id)("align",null),s.ekj("mat-form-field-hint-end","end"===e.align))},inputs:{align:"align",id:"id"},features:[s._Bn([{provide:ic,useExisting:t}])]}),t})(),sc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-label"]]}),t})(),oc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-placeholder"]]}),t})();const rc=new s.OlP("MatPrefix"),ac=new s.OlP("MatSuffix");let cc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","matSuffix",""]],features:[s._Bn([{provide:ac,useExisting:t}])]}),t})(),uc=0;class hc{constructor(t){this._elementRef=t}}const lc=sr(hc,"primary"),dc=new s.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),fc=new s.OlP("MatFormField");let gc=(()=>{class t extends lc{constructor(t,e,i,n,s,o,r,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=n,this._defaults=s,this._platform=o,this._ngZone=r,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new kt.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+uc++,this._labelId="mat-form-field-label-"+uc++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=bt(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe(he(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(oe(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(oe(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,Qe.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(he(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(he(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(oe(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(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_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,St(this._label.nativeElement,"transitionend").pipe((0,Je.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 t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,i=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),i&&t.push(i.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,i=0;const n=this._connectionContainerRef.nativeElement,s=n.querySelectorAll(".mat-form-field-outline-start"),o=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=n.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const o=this._getStartEnd(s),r=t.children,a=this._getStartEnd(r[0].getBoundingClientRect());let c=0;for(let t=0;t0?.75*c+10:0}for(let r=0;r{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,ir,ji],ir]}),t})(),mc=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Qsj),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t}),t})(),wc=(()=>{class t extends mc{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,features:[s.qOj]}),t})();const yc=new s.OlP("NgValueAccessor"),bc={provide:yc,useExisting:(0,s.Gpc)(()=>_c),multi:!0},Ac=new s.OlP("CompositionEventMode");let _c=(()=>{class t extends mc{constructor(t,e,i){super(t,e),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=(0,n.q)()?(0,n.q)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Qsj),s.Y36(s.SBq),s.Y36(Ac,8))},t.\u0275dir=s.lG2({type:t,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(t,e){1&t&&s.NdJ("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[s._Bn([bc]),s.qOj]}),t})();function vc(t){return null==t||0===t.length}function Tc(t){return null!=t&&"number"==typeof t.length}const kc=new s.OlP("NgValidators"),Cc=new s.OlP("NgAsyncValidators"),Ec=/^(?=.{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 zc{static min(t){return function(t){return e=>{if(vc(e.value)||vc(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i{if(vc(e.value)||vc(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}(t)}static required(t){return Rc(t)}static requiredTrue(t){return function(t){return!0===t.value?null:{required:!0}}(t)}static email(t){return function(t){return vc(t.value)||Ec.test(t.value)?null:{email:!0}}(t)}static minLength(t){return function(t){return e=>vc(e.value)||!Tc(e.value)?null:e.value.lengthTc(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}(t)}static pattern(t){return function(t){if(!t)return Pc;let e,i;return"string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),t=>{if(vc(t.value))return null;const n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}}(t)}static nullValidator(t){return null}static compose(t){return Hc(t)}static composeAsync(t){return Ic(t)}}function Rc(t){return vc(t.value)?{required:!0}:null}function Pc(t){return null}function Sc(t){return null!=t}function Bc(t){const e=(0,s.QGY)(t)?(0,Kr.D)(t):t;return(0,s.CqO)(e),e}function Mc(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function Kc(t,e){return e.map(e=>e(t))}function xc(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function Hc(t){if(!t)return null;const e=t.filter(Sc);return 0==e.length?null:function(t){return Mc(Kc(t,e))}}function jc(t){return null!=t?Hc(xc(t)):null}function Ic(t){if(!t)return null;const e=t.filter(Sc);return 0==e.length?null:function(t){return ia(Kc(t,e).map(Bc)).pipe((0,Pt.U)(Mc))}}function Lc(t){return null!=t?Ic(xc(t)):null}function Oc(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function Fc(t){return t._rawValidators}function Dc(t){return t._rawAsyncValidators}let qc=(()=>{class t{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(t){this._rawValidators=t||[],this._composedValidatorFn=jc(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Lc(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t}),t})(),Nc=(()=>{class t extends qc{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,features:[s.qOj]}),t})();class Uc extends qc{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Gc{constructor(t){this._cd=t}is(t){var e,i;return!!(null===(i=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===i?void 0:i[t])}}let $c=(()=>{class t extends Gc{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Uc,2))},t.\u0275dir=s.lG2({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&s.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[s.qOj]}),t})(),Vc=(()=>{class t extends Gc{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Nc,10))},t.\u0275dir=s.lG2({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&s.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[s.qOj]}),t})();function Wc(t,e){return[...e.path,t]}function Yc(t,e){Jc(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&tu(t,e)})}(t,e),function(t,e){const i=(t,i)=>{e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&tu(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const i=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}(t,e)}function Zc(t,e,i=!0){const n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),Xc(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Qc(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Jc(t,e){const i=Fc(t);null!==e.validator?t.setValidators(Oc(i,e.validator)):"function"==typeof i&&t.setValidators([i]);const n=Dc(t);null!==e.asyncValidator?t.setAsyncValidators(Oc(n,e.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);const s=()=>t.updateValueAndValidity();Qc(e._rawValidators,s),Qc(e._rawAsyncValidators,s)}function Xc(t,e){let i=!1;if(null!==t){if(null!==e.validator){const n=Fc(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.validator);s.length!==n.length&&(i=!0,t.setValidators(s))}}if(null!==e.asyncValidator){const n=Dc(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.asyncValidator);s.length!==n.length&&(i=!0,t.setAsyncValidators(s))}}}const n=()=>{};return Qc(e._rawValidators,n),Qc(e._rawAsyncValidators,n),i}function tu(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function eu(t,e){Jc(t,e)}function iu(t,e){if(!t.hasOwnProperty("model"))return!1;const i=t.model;return!!i.isFirstChange()||!Object.is(e,i.currentValue)}function nu(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function su(t,e){if(!e)return null;let i,n,s;return Array.isArray(e),e.forEach(t=>{t.constructor===_c?i=t:Object.getPrototypeOf(t.constructor)===wc?n=t:s=t}),s||n||i||null}function ou(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}const ru="VALID",au="INVALID",cu="PENDING",uu="DISABLED";function hu(t){return(gu(t)?t.validators:t)||null}function lu(t){return Array.isArray(t)?jc(t):t||null}function du(t,e){return(gu(e)?e.asyncValidators:t)||null}function fu(t){return Array.isArray(t)?Lc(t):t||null}function gu(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class pu{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=lu(this._rawValidators),this._composedAsyncValidatorFn=fu(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===ru}get invalid(){return this.status===au}get pending(){return this.status==cu}get disabled(){return this.status===uu}get enabled(){return this.status!==uu}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=lu(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=fu(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=cu,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=uu,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=ru,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==ru&&this.status!==cu||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?uu:ru}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=cu,this._hasOwnPendingAsyncValidator=!0;const e=Bc(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let n=t;return e.forEach(t=>{n=n instanceof wu?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof yu&&n.at(t)||null}),n}(this,t)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new s.vpe,this.statusChanges=new s.vpe}_calculateStatus(){return this._allControlsDisabled()?uu:this.errors?au:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(cu)?cu:this._anyControlsHaveStatus(au)?au:ru}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){gu(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class mu extends pu{constructor(t=null,e,i){super(hu(e),du(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){ou(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){ou(this._onDisabledChange,t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class wu extends pu{constructor(t,e,i){super(hu(e),du(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof mu?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((t,n)=>{i=e(i,t,n)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class yu extends pu{constructor(t,e,i){super(hu(e),du(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,i)=>{this._throwIfControlMissing(i),this.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,i)=>{this.at(i)&&this.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof mu?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const bu={provide:Nc,useExisting:(0,s.Gpc)(()=>_u)},Au=(()=>Promise.resolve(null))();let _u=(()=>{class t extends Nc{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new s.vpe,this.form=new wu({},jc(t),Lc(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Au.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),Yc(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Au.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),ou(this._directives,t)})}addFormGroup(t){Au.then(()=>{const e=this._findContainer(t.path),i=new wu({});eu(i,t),e.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Au.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){Au.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,nu(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(kc,10),s.Y36(Cc,10))},t.\u0275dir=s.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&s.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s._Bn([bu]),s.qOj]}),t})();const vu={provide:Uc,useExisting:(0,s.Gpc)(()=>ku)},Tu=(()=>Promise.resolve(null))();let ku=(()=>{class t extends Uc{constructor(t,e,i,n){super(),this.control=new mu,this._registered=!1,this.update=new s.vpe,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=su(0,n)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),iu(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Wc(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_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(){Yc(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(t){Tu.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,i=""===e||e&&"false"!==e;Tu.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Nc,9),s.Y36(kc,10),s.Y36(Cc,10),s.Y36(yc,10))},t.\u0275dir=s.lG2({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[s._Bn([vu]),s.qOj,s.TTD]}),t})(),Cu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();const Eu=new s.OlP("NgModelWithFormControlWarning"),zu={provide:Nc,useExisting:(0,s.Gpc)(()=>Ru)};let Ru=(()=>{class t extends Nc{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new s.vpe,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Xc(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return Yc(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){Zc(t.control||null,t,!1),ou(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,nu(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,i=this.form.get(t.path);e!==i&&(Zc(e||null,t),i instanceof mu&&(Yc(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);eu(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return Xc(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Jc(this.form,this),this._oldForm&&Xc(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(kc,10),s.Y36(Cc,10))},t.\u0275dir=s.lG2({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&s.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s._Bn([zu]),s.qOj,s.TTD]}),t})();const Pu={provide:Uc,useExisting:(0,s.Gpc)(()=>Su)};let Su=(()=>{class t extends Uc{constructor(t,e,i,n,o){super(),this._ngModelWarningConfig=o,this._added=!1,this.update=new s.vpe,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=su(0,n)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),iu(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return Wc(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.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Nc,13),s.Y36(kc,10),s.Y36(Cc,10),s.Y36(yc,10),s.Y36(Eu,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[s._Bn([Pu]),s.qOj,s.TTD]}),t._ngModelWarningSentOnce=!1,t})();const Bu={provide:kc,useExisting:(0,s.Gpc)(()=>Mu),multi:!0};let Mu=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!=`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?Rc(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&s.uIk("required",e.required?"":null)},inputs:{required:"required"},features:[s._Bn([Bu])]}),t})(),Ku=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Cu]]}),t})(),xu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[Ku]}),t})(),Hu=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Eu,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[Ku]}),t})(),ju=(()=>{class t{group(t,e=null){const i=this._reduceControls(t);let n,s=null,o=null;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(s=null!=e.validators?e.validators:null,o=null!=e.asyncValidators?e.asyncValidators:null,n=null!=e.updateOn?e.updateOn:void 0):(s=null!=e.validator?e.validator:null,o=null!=e.asyncValidator?e.asyncValidator:null)),new wu(i,{asyncValidators:o,updateOn:n,validators:s})}control(t,e,i){return new mu(t,e,i)}array(t,e,i){const n=t.map(t=>this._createControl(t));return new yu(n,e,i)}_reduceControls(t){const e={};return Object.keys(t).forEach(i=>{e[i]=this._createControl(t[i])}),e}_createControl(t){return t instanceof mu||t instanceof wu||t instanceof yu?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t},token:t,providedIn:Hu}),t})();const Iu={provide:new s.OlP("mat-select-scroll-strategy"),deps:[Ri],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Lu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Iu],imports:[[n.ez,Si,Mr,ir],De,pc,Mr,ir]}),t})();var Ou=i(1305);class Fu{constructor(t){this.total=t}call(t,e){return e.subscribe(new Du(t,this.total))}}class Du extends Vt.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}const qu=new Set;let Nu,Uu=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Gu}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!qu.has(t))try{Nu||(Nu=document.createElement("style"),Nu.setAttribute("type","text/css"),document.head.appendChild(Nu)),Nu.sheet&&(Nu.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),qu.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Ce))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Ce))},token:t,providedIn:"root"}),t})();function Gu(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let $u=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new kt.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return Vu(_t(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=Vu(_t(t)).map(t=>this._registerQuery(t).observable);let i=(0,Ou.aj)(e);return i=ue(i.pipe((0,Je.q)(1)),i.pipe(t=>t.lift(new Fu(1)),(0,Mi.b)(0))),i.pipe((0,Pt.U)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:i})=>{e.matches=e.matches||t,e.breakpoints[i]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),i={observable:new Et.y(t=>{const i=e=>this._zone.run(()=>t.next(e));return e.addListener(i),()=>{e.removeListener(i)}}).pipe(he(e),(0,Pt.U)(({matches:e})=>({query:t,matches:e})),oe(this._destroySubject)),mql:e};return this._queries.set(t,i),i}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Uu),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Uu),s.LFG(s.R0b))},token:t,providedIn:"root"}),t})();function Vu(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const Wu={tooltipState:fn("state",[wn("initial, void, hidden",mn({opacity:0,transform:"scale(0)"})),wn("visible",mn({transform:"scale(1)"})),bn("* => visible",gn("200ms cubic-bezier(0, 0, 0.2, 1)",yn([mn({opacity:0,transform:"scale(0)",offset:0}),mn({opacity:.5,transform:"scale(0.99)",offset:.5}),mn({opacity:1,transform:"scale(1)",offset:1})]))),bn("* => hidden",gn("100ms cubic-bezier(0, 0, 0.2, 1)",mn({opacity:0})))])},Yu=Me({passive:!0}),Zu=new s.OlP("mat-tooltip-scroll-strategy"),Qu={provide:Zu,deps:[Ri],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},Ju=new s.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Xu=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u,h,l){this._overlay=t,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=n,this._ngZone=s,this._platform=o,this._ariaDescriber=r,this._focusMonitor=a,this._dir=u,this._defaultOptions=h,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 kt.xQ,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!Xe(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=c,this._document=l,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),u.change.pipe(oe(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){var e;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(e=this._tooltipInstance)||void 0===e||e.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=bt(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).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(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(oe(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,i])=>{t.removeEventListener(e,i,Yu)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new Ue(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(oe(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return e.positionChanges.pipe(oe(this._destroyed)).subscribe(t=>{this._updateCurrentPositionClass(t.connectionPair),this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:`${this._cssClassPrefix}-tooltip-panel`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(oe(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const e=t.getConfig().positionStrategy,i=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([this._addOffset(Object.assign(Object.assign({},i.main),n.main)),this._addOffset(Object.assign(Object.assign({},i.fallback),n.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e||"below"==e?i={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={originX:"end",originY:"center"});const{x:n,y:s}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:n,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e?i={overlayX:"center",overlayY:"bottom"}:"below"==e?i={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={overlayX:"start",overlayY:"center"});const{x:n,y:s}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:n,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Je.q)(1),oe(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){const{overlayY:e,originX:i,originY:n}=t;let s;if(s="center"===e?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===e&&"top"===n?"above":"below",s!==this._currentPosition){const t=this._overlayRef;if(t){const e=`${this._cssClassPrefix}-tooltip-panel-`;t.removePanelClass(e+this._currentPosition),t.addPanelClass(e+s)}this._currentPosition=s}}_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 t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,Yu)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const e=this._document.elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;e===i||i.contains(e)||this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,i=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),"on"!==t&&e.draggable||(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Ri),s.Y36(s.SBq),s.Y36(Oe),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(Ce),s.Y36(Ni),s.Y36(nn),s.Y36(void 0),s.Y36(Ie),s.Y36(void 0),s.Y36(n.K0))},t.\u0275dir=s.lG2({type:t,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),th=(()=>{class t extends Xu{constructor(t,e,i,n,s,o,r,a,c,u,h,l){super(t,e,i,n,s,o,r,a,c,u,h,l),this._tooltipComponent=ih}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Ri),s.Y36(s.SBq),s.Y36(Oe),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(Ce),s.Y36(Ni),s.Y36(nn),s.Y36(Zu),s.Y36(Ie,8),s.Y36(Ju,8),s.Y36(n.K0))},t.\u0275dir=s.lG2({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[s.qOj]}),t})(),eh=(()=>{class t{constructor(t){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new kt.xQ}show(t){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._markForCheck()},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t}),t})(),ih=(()=>{class t extends eh{constructor(t,e){super(t),this._breakpointObserver=e,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36($u))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e._handleBodyInteraction()},!1,s.pYS)("auxclick",function(){return e._handleBodyInteraction()},!1,s.pYS),2&t&&s.Udp("zoom","visible"===e._visibility?1:null)},features:[s.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(s.TgZ(0,"div",0),s.NdJ("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),s.ALo(1,"async"),s._uU(2),s.qZA()),2&t){let t;s.ekj("mat-tooltip-handset",null==(t=s.lcZ(1,5,e._isHandset))?null:t.matches),s.Q6J("ngClass",e.tooltipClass)("@state",e._visibility),s.xp6(2),s.Oqu(e.message)}},directives:[n.mk],pipes:[n.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[Wu.tooltipState]},changeDetection:0}),t})(),nh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Qu],imports:[[un,n.ez,Si,ir],ir,De]}),t})(),sh=(()=>{class t{constructor(){this.changes=new kt.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,i)=>{if(0==i||0==e)return`0 of ${i}`;const n=t*e;return`${n+1} \u2013 ${n<(i=Math.max(i,0))?Math.min(n+e,i):n+e} of ${i}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const oh={provide:sh,deps:[[new s.FiY,new s.tp0,sh]],useFactory:function(t){return t||new sh}};let rh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[oh],imports:[[n.ez,Ma,Lu,nh,ir]]}),t})();var ah=i(509);const ch=["mat-menu-item",""],uh=["*"];function hh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",0),s.NdJ("keydown",function(e){return s.CHM(t),s.oxw()._handleKeydown(e)})("click",function(){return s.CHM(t),s.oxw().closed.emit("click")})("@transformMenu.start",function(e){return s.CHM(t),s.oxw()._onAnimationStart(e)})("@transformMenu.done",function(e){return s.CHM(t),s.oxw()._onAnimationDone(e)}),s.TgZ(1,"div",1),s.Hsn(2),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),s.uIk("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const lh={transformMenu:fn("transformMenu",[wn("void",mn({opacity:0,transform:"scale(0.8)"})),bn("void => enter",gn("120ms cubic-bezier(0, 0, 0.2, 1)",mn({opacity:1,transform:"scale(1)"}))),bn("* => void",gn("100ms 25ms linear",mn({opacity:0})))]),fadeInItems:fn("fadeInItems",[wn("showing",mn({opacity:1})),bn("void => *",[mn({opacity:0}),gn("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},dh=new s.OlP("MatMenuContent"),fh=new s.OlP("MAT_MENU_PANEL");class gh{}const ph=or(nr(gh));let mh=(()=>{class t extends ph{constructor(t,e,i,n){super(),this._elementRef=t,this._focusMonitor=i,this._parentMenu=n,this.role="menuitem",this._hovered=new kt.xQ,this._focused=new kt.xQ,this._highlighted=!1,this._triggersSubmenu=!1,n&&n.addItem&&n.addItem(this)}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),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(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t,e;const i=this._elementRef.nativeElement.cloneNode(!0),n=i.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class t{constructor(t,e,i){this._elementRef=t,this._ngZone=e,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new s.n_E,this._tabSubscription=Gt.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new kt.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new s.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+yh++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=bt(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=bt(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new $i(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(he(this._directDescendantItems),(0,le.w)(t=>(0,Qe.T)(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(he(this._directDescendantItems),(0,le.w)(t=>(0,Qe.T)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,i=this._keyManager;switch(e){case 27:Xe(t)||(t.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:38!==e&&40!==e||i.setFocusOrigin("keyboard"),i.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe((0,Je.q)(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e=`mat-elevation-z${Math.min(4+t,24)}`,i=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const i=this._classList;i["mat-menu-before"]="before"===t,i["mat-menu-after"]="after"===t,i["mat-menu-above"]="above"===e,i["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(he(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(wh))},t.\u0275dir=s.lG2({type:t,contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,dh,5),s.Suo(i,mh,5),s.Suo(i,mh,4)),2&t){let t;s.iGM(t=s.CRH())&&(e.lazyContent=t.first),s.iGM(t=s.CRH())&&(e._allItems=t),s.iGM(t=s.CRH())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&s.Gf(s.Rgc,5),2&t){let t;s.iGM(t=s.CRH())&&(e.templateRef=t.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),Ah=(()=>{class t extends bh{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(wh))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&s.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[s._Bn([{provide:fh,useExisting:t}]),s.qOj],ngContentSelectors:uh,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(s.F$t(),s.YNc(0,hh,3,6,"ng-template"))},directives:[n.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}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}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}\n'],encapsulation:2,data:{animation:[lh.transformMenu,lh.fadeInItems]},changeDetection:0}),t})();const _h=new s.OlP("mat-menu-scroll-strategy"),vh={provide:_h,deps:[Ri],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},Th=Me({passive:!0});let kh=(()=>{class t{constructor(t,e,i,n,o,r,a,c){this._overlay=t,this._element=e,this._viewContainerRef=i,this._menuItemInstance=r,this._dir=a,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Gt.w.EMPTY,this._hoverSubscription=Gt.w.EMPTY,this._menuCloseSubscription=Gt.w.EMPTY,this._handleTouchStart=t=>{Xi(t)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new s.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new s.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=n,this._parentMaterialMenu=o instanceof bh?o:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,Th),r&&(r._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(t),"click"!==t&&"tab"!==t||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Th),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(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof bh&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}updatePosition(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==t&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,e instanceof bh?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe((0,se.h)(t=>"void"===t.toState),(0,Je.q)(1),oe(e.lazyContent._attached)).subscribe({next:()=>e.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new ci({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,i]="before"===this.menu.xPosition?["end","start"]:["start","end"],[n,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[o,r]=[n,s],[a,c]=[e,i],u=0;this.triggersSubmenu()?(c=e="before"===this.menu.xPosition?"start":"end",i=a="end"===e?"start":"end",u="bottom"===n?8:-8):this.menu.overlapTrigger||(o="top"===n?"bottom":"top",r="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:o,overlayX:a,overlayY:n,offsetY:u},{originX:i,originY:o,overlayX:c,overlayY:n,offsetY:u},{originX:e,originY:r,overlayX:a,overlayY:s,offsetY:-u},{originX:i,originY:r,overlayX:c,overlayY:s,offsetY:-u}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Ct.of)(),n=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,se.h)(t=>t!==this._menuItemInstance),(0,se.h)(()=>this._menuOpen)):(0,Ct.of)();return(0,Qe.T)(t,i,n,e)}_handleMousedown(t){Ji(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;13!==e&&32!==e||(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===e&&"ltr"===this.dir||37===e&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,se.h)(t=>t===this._menuItemInstance&&!t.disabled),(0,ah.g)(0,Ut)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof bh&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Je.q)(1),(0,ah.g)(0,Ut),oe(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new Ge(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Ri),s.Y36(s.SBq),s.Y36(s.s_b),s.Y36(_h),s.Y36(fh,8),s.Y36(mh,10),s.Y36(Ie,8),s.Y36(nn))},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&s.uIk("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),Ch=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[vh],imports:[ir]}),t})(),Eh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[vh],imports:[[n.ez,ir,Sr,Si,Ch],De,ir,Ch]}),t})();var zh=i(1225),Rh=i(7727);function Ph(t){return e=>e.lift(new Sh(t))}class Sh{constructor(t){this.callback=t}call(t,e){return e.subscribe(new Bh(t,this.callback))}}class Bh extends Vt.L{constructor(t,e){super(t),this.add(new Gt.w(e))}}var Mh=i(1055);const Kh=["*"];function xh(t){return Error(`Unable to find icon with the name "${t}"`)}function Hh(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function jh(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class Ih{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let Lh=(()=>{class t{constructor(t,e,i,n){this._httpClient=t,this._sanitizer=e,this._errorHandler=n,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i}addSvgIcon(t,e,i){return this.addSvgIconInNamespace("",t,e,i)}addSvgIconLiteral(t,e,i){return this.addSvgIconLiteralInNamespace("",t,e,i)}addSvgIconInNamespace(t,e,i,n){return this._addSvgIconConfig(t,e,new Ih(i,null,n))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,i,n){const o=this._sanitizer.sanitize(s.q3G.HTML,i);if(!o)throw jh(i);return this._addSvgIconConfig(t,e,new Ih("",o,n))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,i){return this._addSvgIconSetConfig(t,new Ih(e,null,i))}addSvgIconSetLiteralInNamespace(t,e,i){const n=this._sanitizer.sanitize(s.q3G.HTML,e);if(!n)throw jh(e);return this._addSvgIconSetConfig(t,new Ih("",n,i))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(s.q3G.RESOURCE_URL,t);if(!e)throw Hh(t);const i=this._cachedIconsByUrl.get(e);return i?(0,Ct.of)(Oh(i)):this._loadSvgIconFromConfig(new Ih(t,null)).pipe((0,Bi.b)(t=>this._cachedIconsByUrl.set(e,t)),(0,Pt.U)(t=>Oh(t)))}getNamedSvgIcon(t,e=""){const i=Fh(e,t);let n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);if(n=this._getIconConfigFromResolvers(e,t),n)return this._svgIconConfigs.set(i,n),this._getSvgFromConfig(n);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):(0,zh._)(xh(i))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?(0,Ct.of)(Oh(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe((0,Pt.U)(t=>Oh(t)))}_getSvgFromIconSetConfigs(t,e){const i=this._extractIconWithNameFromAnySet(t,e);return i?(0,Ct.of)(i):ia(e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe((0,Rh.K)(e=>{const i=this._sanitizer.sanitize(s.q3G.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${i} failed: ${e.message}`)),(0,Ct.of)(null)})))).pipe((0,Pt.U)(()=>{const i=this._extractIconWithNameFromAnySet(t,e);if(!i)throw xh(t);return i}))}_extractIconWithNameFromAnySet(t,e){for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.svgText&&n.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(n),i=this._extractSvgIconFromSet(e,t,n.options);if(i)return i}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe((0,Bi.b)(e=>t.svgText=e),(0,Pt.U)(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?(0,Ct.of)(null):this._fetchIcon(t).pipe((0,Bi.b)(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,i){const n=t.querySelector(`[id="${e}"]`);if(!n)return null;const s=n.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,i);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),i);const o=this._svgElementFromString("");return o.appendChild(s),this._setSvgAttributes(o,i)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const i=e.querySelector("svg");if(!i)throw Error(" tag not found");return i}_toSvgElement(t){const e=this._svgElementFromString(""),i=t.attributes;for(let n=0;nthis._inProgressUrlFetches.delete(r)),(0,Mh.B)());return this._inProgressUrlFetches.set(r,c),c}_addSvgIconConfig(t,e,i){return this._svgIconConfigs.set(Fh(t,e),i),this}_addSvgIconSetConfig(t,e){const i=this._iconSetConfigs.get(t);return i?i.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let n=0;ne?e.pathname+e.search:""}}}),Uh=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Gh=Uh.map(t=>`[${t}]`).join(", "),$h=/^url\(['"]?#(.*?)['"]?\)$/;let Vh=(()=>{class t extends qh{constructor(t,e,i,n,s){super(t),this._iconRegistry=e,this._location=n,this._errorHandler=s,this._inline=!1,this._currentIconFetch=Gt.w.EMPTY,i||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=bt(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.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(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let n=0;n{e.forEach(e=>{i.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(Gh),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let n=0;n{const s=e[n],o=s.getAttribute(t),r=o?o.match($h):null;if(r){let e=i.get(s);e||(e=[],i.set(s,e)),e.push({name:t,value:r[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,i]=this._splitIconName(t);e&&(this._svgNamespace=e),i&&(this._svgName=i),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(i,e).pipe((0,Je.q)(1)).subscribe(t=>this._setSvgElement(t),t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${i}! ${t.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Lh),s.$8M("aria-hidden"),s.Y36(Nh),s.Y36(s.qLn))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(s.uIk("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),s.ekj("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[s.qOj],ngContentSelectors:Kh,decls:1,vars:0,template:function(t,e){1&t&&(s.F$t(),s.Hsn(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),Wh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[ir],ir]}),t})(),Yh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[],imports:[[rh,Eh,Wh,Ma,ka,n.ez]]}),t})();function Zh(){const t=new Ir;return t.disableClose=!0,t.autoFocus=!1,t}i(2051),new Intl.Collator("cs",{numeric:!0});class Qh{static passwordMatchValidator(t){const e=t.get("passwordCtrl").value,i=t.get("passwordAgainCtrl").value;return t.get("passwordAgainCtrl").setErrors(e!==i?{noPasswordMatch:!0}:null),null}static patternValidator(t){return e=>{if(!e.value)return null;let i=0;for(const n of t)i+=n.test(e.value)?1:0;return i>=3?null:{isWeak:!0}}}}class Jh extends kt.xQ{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new ye.N;return this._value}next(t){super.next(this._value=t)}}var Xh=i(9665),tl=i(2875);function el(t,e){let i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new il(t,e,i))}}class il{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new nl(t,this.accumulator,this.seed,this.hasSeed))}}class nl extends Vt.L{constructor(t,e,i,n){super(t),this.accumulator=e,this._seed=i,this.hasSeed=n,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(n){this.destination.error(n)}this.seed=i,this.destination.next(i)}}var sl=i(8402);function ol(t){return function(e){return 0===t?(0,xr.c)():e.lift(new rl(t))}}class rl{constructor(t){if(this.total=t,this.total<0)throw new sl.W}call(t,e){return e.subscribe(new al(t,this.total))}}class al extends Vt.L{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,n=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,n=this.ring;for(let s=0;st.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.lengthn[e]===t)}return t===e}function Ll(t){return Array.prototype.concat.apply([],t)}function Ol(t){return t.length>0?t[t.length-1]:null}function Fl(t,e){for(const i in t)t.hasOwnProperty(i)&&e(t[i],i)}function Dl(t){return(0,s.CqO)(t)?t:(0,s.QGY)(t)?(0,Kr.D)(Promise.resolve(t)):(0,Ct.of)(t)}const ql={exact:function t(e,i,n){if(!Ql(e.segments,i.segments))return!1;if(!Vl(e.segments,i.segments,n))return!1;if(e.numberOfChildren!==i.numberOfChildren)return!1;for(const s in i.children){if(!e.children[s])return!1;if(!t(e.children[s],i.children[s],n))return!1}return!0},subset:Gl},Nl={exact:function(t,e){return jl(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>Il(t[i],e[i]))},ignored:()=>!0};function Ul(t,e,i){return ql[i.paths](t.root,e.root,i.matrixParams)&&Nl[i.queryParams](t.queryParams,e.queryParams)&&!("exact"===i.fragment&&t.fragment!==e.fragment)}function Gl(t,e,i){return $l(t,e,e.segments,i)}function $l(t,e,i,n){if(t.segments.length>i.length){const s=t.segments.slice(0,i.length);return!!Ql(s,i)&&!e.hasChildren()&&!!Vl(s,i,n)}if(t.segments.length===i.length){if(!Ql(t.segments,i))return!1;if(!Vl(t.segments,i,n))return!1;for(const i in e.children){if(!t.children[i])return!1;if(!Gl(t.children[i],e.children[i],n))return!1}return!0}{const s=i.slice(0,t.segments.length),o=i.slice(t.segments.length);return!!Ql(t.segments,s)&&!!Vl(t.segments,s,n)&&!!t.children.primary&&$l(t.children.primary,e,o,n)}}function Vl(t,e,i){return e.every((e,n)=>Nl[i](t[n].parameters,e.parameters))}class Wl{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Kl(this.queryParams)),this._queryParamMap}toString(){return td.serialize(this)}}class Yl{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Fl(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ed(this)}}class Zl{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Kl(this.parameters)),this._parameterMap}toString(){return cd(this)}}function Ql(t,e){return t.length===e.length&&t.every((t,i)=>t.path===e[i].path)}class Jl{}class Xl{parse(t){const e=new fd(t);return new Wl(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${id(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(t=>`${sd(e)}=${sd(t)}`).join("&"):`${sd(e)}=${sd(i)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const td=new Xl;function ed(t){return t.segments.map(t=>cd(t)).join("/")}function id(t,e){if(!t.hasChildren())return ed(t);if(e){const e=t.children.primary?id(t.children.primary,!1):"",i=[];return Fl(t.children,(t,e)=>{e!==Bl&&i.push(`${e}:${id(t,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function(t,e){let i=[];return Fl(t.children,(t,n)=>{n===Bl&&(i=i.concat(e(t,n)))}),Fl(t.children,(t,n)=>{n!==Bl&&(i=i.concat(e(t,n)))}),i}(t,(e,i)=>i===Bl?[id(t.children.primary,!1)]:[`${i}:${id(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${ed(t)}/${e[0]}`:`${ed(t)}/(${e.join("//")})`}}function nd(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function sd(t){return nd(t).replace(/%3B/gi,";")}function od(t){return nd(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rd(t){return decodeURIComponent(t)}function ad(t){return rd(t.replace(/\+/g,"%20"))}function cd(t){return`${od(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${od(t)}=${od(e[t])}`).join("")}`;var e}const ud=/^[^\/()?;=#]+/;function hd(t){const e=t.match(ud);return e?e[0]:""}const ld=/^[^=?&#]+/,dd=/^[^?&#]+/;class fd{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Yl([],{}):new Yl([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new Yl(t,e)),i}parseSegment(){const t=hd(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Zl(rd(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=hd(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=hd(this.remaining);t&&(i=t,this.capture(i))}t[rd(e)]=rd(i)}parseQueryParam(t){const e=function(t){const e=t.match(ld);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(dd);return e?e[0]:""}(this.remaining);t&&(i=t,this.capture(i))}const n=ad(e),s=ad(i);if(t.hasOwnProperty(n)){let e=t[n];Array.isArray(e)||(e=[e],t[n]=e),e.push(s)}else t[n]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=hd(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error(`Cannot parse url '${this.url}'`);let s;i.indexOf(":")>-1?(s=i.substr(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=Bl);const o=this.parseChildren();e[s]=1===Object.keys(o).length?o.primary:new Yl([],o),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class gd{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=pd(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=pd(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=md(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return md(t,this._root).map(t=>t.value)}}function pd(t,e){if(t===e.value)return e;for(const i of e.children){const e=pd(t,i);if(e)return e}return null}function md(t,e){if(t===e.value)return[e];for(const i of e.children){const n=md(t,i);if(n.length)return n.unshift(e),n}return[]}class wd{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function yd(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class bd extends gd{constructor(t,e){super(t),this.snapshot=e,Cd(this,t)}toString(){return this.snapshot.toString()}}function Ad(t,e){const i=function(t,e){const i=new Td([],{},{},"",{},Bl,e,null,t.root,-1,{});return new kd("",new wd(i,[]))}(t,e),n=new Jh([new Zl("",{})]),s=new Jh({}),o=new Jh({}),r=new Jh({}),a=new Jh(""),c=new _d(n,s,r,a,o,Bl,e,i.root);return c.snapshot=i.root,new bd(new wd(c,[]),i)}class _d{constructor(t,e,i,n,s,o,r,a){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=o,this.component=r,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,Pt.U)(t=>Kl(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Pt.U)(t=>Kl(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function vd(t,e="emptyOnly"){const i=t.pathFromRoot;let n=0;if("always"!==e)for(n=i.length-1;n>=1;){const t=i[n],e=i[n-1];if(t.routeConfig&&""===t.routeConfig.path)n--;else{if(e.component)break;n--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(i.slice(n))}class Td{constructor(t,e,i,n,s,o,r,a,c,u,h){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=o,this.component=r,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=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=Kl(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Kl(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class kd extends gd{constructor(t,e){super(e),this.url=t,Cd(this,e)}toString(){return Ed(this._root)}}function Cd(t,e){e.value._routerState=t,e.children.forEach(e=>Cd(t,e))}function Ed(t){const e=t.children.length>0?` { ${t.children.map(Ed).join(", ")} } `:"";return`${t.value}${e}`}function zd(t){if(t.snapshot){const e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,jl(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),jl(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(let i=0;ijl(t.parameters,n[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Rd(t.parent,e.parent))}function Pd(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){const n=i.value;n._futureSnapshot=e.value;const s=function(t,e,i){return e.children.map(e=>{for(const n of i.children)if(t.shouldReuseRoute(e.value,n.value.snapshot))return Pd(t,e,n);return Pd(t,e)})}(t,e,i);return new wd(n,s)}{if(t.shouldAttach(e.value)){const i=t.retrieve(e.value);if(null!==i){const t=i.route;return Sd(e,t),t}}const i=new _d(new Jh((n=e.value).url),new Jh(n.params),new Jh(n.queryParams),new Jh(n.fragment),new Jh(n.data),n.outlet,n.component,n),s=e.children.map(e=>Pd(t,e));return new wd(i,s)}var n}function Sd(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let i=0;i{o[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new Wl(i.root===t?e:xd(i.root,t,e),o,s)}function xd(t,e,i){const n={};return Fl(t.children,(t,s)=>{n[s]=t===e?i:xd(t,e,i)}),new Yl(t.segments,n)}class Hd{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Bd(i[0]))throw new Error("Root segment cannot have matrix parameters");const n=i.find(Md);if(n&&n!==Ol(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class jd{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function Id(t,e,i){if(t||(t=new Yl([],{})),0===t.segments.length&&t.hasChildren())return Ld(t,e,i);const n=function(t,e,i){let n=0,s=e;const o={match:!1,pathIndex:0,commandIndex:0};for(;s=i.length)return o;const e=t.segments[s],r=i[n];if(Md(r))break;const a=`${r}`,c=n0&&void 0===a)break;if(a&&c&&"object"==typeof c&&void 0===c.outlets){if(!qd(a,c,e))return o;n+=2}else{if(!qd(a,{},e))return o;n++}s++}return{match:!0,pathIndex:s,commandIndex:n}}(t,e,i),s=i.slice(n.commandIndex);if(n.match&&n.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(s[n]=Id(t.children[n],e,i))}),Fl(t.children,(t,e)=>{void 0===n[e]&&(s[e]=t)}),new Yl(t.segments,s)}}function Od(t,e,i){const n=t.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[i]=Od(new Yl([],{}),0,t))}),e}function Dd(t){const e={};return Fl(t,(t,i)=>e[i]=`${t}`),e}function qd(t,e,i){return t==i.path&&jl(e,i.parameters)}class Nd{constructor(t,e,i,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=n}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),zd(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const n=yd(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,n[e],i),delete n[e]}),Fl(n,(t,e)=>{this.deactivateRouteAndItsChildren(t,i)})}deactivateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(n===s)if(n.component){const s=i.getContext(n.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet);if(i&&i.outlet){const e=i.outlet.detach(),n=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:n})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),n=i&&t.value.component?i.children:e,s=yd(t);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],n);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const n=yd(e);t.children.forEach(t=>{this.activateRoutes(t,n[t.value.outlet],i),this.forwardEvent(new Pl(t.value.snapshot))}),t.children.length&&this.forwardEvent(new zl(t.value.snapshot))}activateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(zd(n),n===s)if(n.component){const s=i.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(n.component){const e=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){const t=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),Ud(t.route)}else{const i=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(n.snapshot),s=i?i.module.componentFactoryResolver:null;e.attachRef=null,e.route=n,e.resolver=s,e.outlet&&e.outlet.activateWith(n,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,i)}}function Ud(t){zd(t.value),t.children.forEach(Ud)}class Gd{constructor(t,e){this.routes=t,this.module=e}}function $d(t){return"function"==typeof t}function Vd(t){return t instanceof Wl}const Wd=Symbol("INITIAL_VALUE");function Yd(){return(0,le.w)(t=>(0,Ou.aj)(t.map(t=>t.pipe((0,Je.q)(1),he(Wd)))).pipe(el((t,e)=>{let i=!1;return e.reduce((t,n,s)=>{if(t!==Wd)return t;if(n===Wd&&(i=!0),!i){if(!1===n)return n;if(s===e.length-1||Vd(n))return n}return t},t)},Wd),(0,se.h)(t=>t!==Wd),(0,Pt.U)(t=>Vd(t)?t:!0===t),(0,Je.q)(1)))}let Zd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s._UZ(0,"router-outlet")},directives:function(){return[Gf]},encapsulation:2}),t})();function Qd(t,e=""){for(let i=0;ief(t)===e);return i.push(...t.filter(t=>ef(t)!==e)),i}const sf={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function of(t,e,i){var n;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?Object.assign({},sf):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||Hl)(i,t,e);if(!s)return Object.assign({},sf);const o={};Fl(s.posParams,(t,e)=>{o[e]=t.path});const r=s.consumed.length>0?Object.assign(Object.assign({},o),s.consumed[s.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:r,positionalParamSegments:null!==(n=s.posParams)&&void 0!==n?n:{}}}function rf(t,e,i,n,s="corrected"){if(i.length>0&&function(t,e,i){return i.some(i=>af(t,e,i)&&ef(i)!==Bl)}(t,i,n)){const s=new Yl(e,function(t,e,i,n){const s={};s.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(const o of i)if(""===o.path&&ef(o)!==Bl){const i=new Yl([],{});i._sourceSegment=t,i._segmentIndexShift=e.length,s[ef(o)]=i}return s}(t,e,n,new Yl(i,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some(i=>af(t,e,i))}(t,i,n)){const o=new Yl(t.segments,function(t,e,i,n,s,o){const r={};for(const a of n)if(af(t,i,a)&&!s[ef(a)]){const i=new Yl([],{});i._sourceSegment=t,i._segmentIndexShift="legacy"===o?t.segments.length:e.length,r[ef(a)]=i}return Object.assign(Object.assign({},s),r)}(t,e,i,n,t.children,s));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:i}}const o=new Yl(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:i}}function af(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path}function cf(t,e,i,n){return!!(ef(t)===n||n!==Bl&&af(e,i,t))&&("**"===t.path||of(e,t,i).matched)}function uf(t,e,i){return 0===e.length&&!t.children[i]}class hf{constructor(t){this.segmentGroup=t||null}}class lf{constructor(t){this.urlTree=t}}function df(t){return new Et.y(e=>e.error(new hf(t)))}function ff(t){return new Et.y(e=>e.error(new lf(t)))}function gf(t){return new Et.y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class pf{constructor(t,e,i,n,o){this.configLoader=e,this.urlSerializer=i,this.urlTree=n,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(s.h0i)}apply(){const t=rf(this.urlTree.root,[],[],this.config).segmentGroup,e=new Yl(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,Bl).pipe((0,Pt.U)(t=>this.createUrlTree(mf(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Rh.K)(t=>{if(t instanceof lf)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof hf)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,Bl).pipe((0,Pt.U)(e=>this.createUrlTree(mf(e),t.queryParams,t.fragment))).pipe((0,Rh.K)(t=>{if(t instanceof hf)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const n=t.segments.length>0?new Yl([],{[Bl]:t}):t;return new Wl(n,e,i)}expandSegmentGroup(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe((0,Pt.U)(t=>new Yl([],t))):this.expandSegment(t,i,e,i.segments,n,!0)}expandChildren(t,e,i){const n=[];for(const s of Object.keys(i.children))"primary"===s?n.unshift(s):n.push(s);return(0,Kr.D)(n).pipe((0,sa.b)(n=>{const s=i.children[n],o=nf(e,n);return this.expandSegmentGroup(t,o,s,n).pipe((0,Pt.U)(t=>({segment:t,outlet:n})))}),el((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const i=arguments.length>=2;return n=>n.pipe(t?(0,se.h)((e,i)=>t(e,i,n)):hl.y,ol(1),i?(0,ul.d)(e):(0,cl.T)(()=>new Xh.K))}())}expandSegment(t,e,i,n,s,o){return(0,Kr.D)(i).pipe((0,sa.b)(r=>this.expandSegmentAgainstRoute(t,e,i,r,n,s,o).pipe((0,Rh.K)(t=>{if(t instanceof hf)return(0,Ct.of)(null);throw t}))),(0,ll.P)(t=>!!t),(0,Rh.K)((t,i)=>{if(t instanceof Xh.K||"EmptyError"===t.name){if(uf(e,n,s))return(0,Ct.of)(new Yl([],{}));throw new hf(e)}throw t}))}expandSegmentAgainstRoute(t,e,i,n,s,o,r){return cf(n,e,s,o)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,s,o):r&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o):df(e):df(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,n){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?ff(s):this.lineralizeSegments(i,s).pipe((0,dl.zg)(i=>{const s=new Yl(i,{});return this.expandSegment(t,s,e,i,n,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o){const{matched:r,consumedSegments:a,lastChild:c,positionalParamSegments:u}=of(e,n,s);if(!r)return df(e);const h=this.applyRedirectCommands(a,n.redirectTo,u);return n.redirectTo.startsWith("/")?ff(h):this.lineralizeSegments(n,h).pipe((0,dl.zg)(n=>this.expandSegment(t,e,i,n.concat(s.slice(c)),o,!1)))}matchSegmentAgainstRoute(t,e,i,n,s){if("**"===i.path)return i.loadChildren?(i._loadedConfig?(0,Ct.of)(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe((0,Pt.U)(t=>(i._loadedConfig=t,new Yl(n,{})))):(0,Ct.of)(new Yl(n,{}));const{matched:o,consumedSegments:r,lastChild:a}=of(e,i,n);if(!o)return df(e);const c=n.slice(a);return this.getChildConfig(t,i,n).pipe((0,dl.zg)(t=>{const n=t.module,o=t.routes,{segmentGroup:a,slicedSegments:u}=rf(e,r,c,o),h=new Yl(a.segments,a.children);if(0===u.length&&h.hasChildren())return this.expandChildren(n,o,h).pipe((0,Pt.U)(t=>new Yl(r,t)));if(0===o.length&&0===u.length)return(0,Ct.of)(new Yl(r,{}));const l=ef(i)===s;return this.expandSegment(n,h,o,u,l?Bl:s,!0).pipe((0,Pt.U)(t=>new Yl(r.concat(t.segments),t.children)))}))}getChildConfig(t,e,i){return e.children?(0,Ct.of)(new Gd(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?(0,Ct.of)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe((0,dl.zg)(i=>i?this.configLoader.load(t.injector,e).pipe((0,Pt.U)(t=>(e._loadedConfig=t,t))):function(t){return new Et.y(e=>e.error(xl(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):(0,Ct.of)(new Gd([],t))}runCanLoadGuards(t,e,i){const n=e.canLoad;if(!n||0===n.length)return(0,Ct.of)(!0);const s=n.map(n=>{const s=t.get(n);let o;if(function(t){return t&&$d(t.canLoad)}(s))o=s.canLoad(e,i);else{if(!$d(s))throw new Error("Invalid CanLoad guard");o=s(e,i)}return Dl(o)});return(0,Ct.of)(s).pipe(Yd(),(0,Bi.b)(t=>{if(!Vd(t))return;const e=xl(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),(0,Pt.U)(t=>!0===t))}lineralizeSegments(t,e){let i=[],n=e.root;for(;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return(0,Ct.of)(i);if(n.numberOfChildren>1||!n.children.primary)return gf(t.redirectTo);n=n.children.primary}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,n){const s=this.createSegmentGroup(t,e.root,i,n);return new Wl(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return Fl(t,(t,n)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);i[n]=e[s]}else i[n]=t}),i}createSegmentGroup(t,e,i,n){const s=this.createSegments(t,e.segments,i,n);let o={};return Fl(e.children,(e,s)=>{o[s]=this.createSegmentGroup(t,e,i,n)}),new Yl(s,o)}createSegments(t,e,i,n){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,n):this.findOrReturn(e,i))}findPosParam(t,e,i){const n=i[e.path.substring(1)];if(!n)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return n}findOrReturn(t,e){let i=0;for(const n of e){if(n.path===t.path)return e.splice(i),n;i++}return t}}function mf(t){const e={};for(const i of Object.keys(t.children)){const n=mf(t.children[i]);(n.segments.length>0||n.hasChildren())&&(e[i]=n)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new Yl(t.segments.concat(e.segments),e.children)}return t}(new Yl(t.segments,e))}class wf{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class yf{constructor(t,e){this.component=t,this.route=e}}function bf(t,e,i){const n=t._root;return _f(n,e?e._root:null,i,[n.value])}function Af(t,e,i){const n=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(n?n.module.injector:i).get(t)}function _f(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=yd(e);return t.children.forEach(t=>{!function(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,r=e?e.value:null,a=i?i.getContext(t.value.outlet):null;if(r&&o.routeConfig===r.routeConfig){const c=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!Ql(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Ql(t.url,e.url)||!jl(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Rd(t,e)||!jl(t.queryParams,e.queryParams);case"paramsChange":default:return!Rd(t,e)}}(r,o,o.routeConfig.runGuardsAndResolvers);c?s.canActivateChecks.push(new wf(n)):(o.data=r.data,o._resolvedData=r._resolvedData),_f(t,e,o.component?a?a.children:null:i,n,s),c&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new yf(a.outlet.component,r))}else r&&vf(e,a,s),s.canActivateChecks.push(new wf(n)),_f(t,null,o.component?a?a.children:null:i,n,s)}(t,o[t.value.outlet],i,n.concat([t.value]),s),delete o[t.value.outlet]}),Fl(o,(t,e)=>vf(t,i.getContext(e),s)),s}function vf(t,e,i){const n=yd(t),s=t.value;Fl(n,(t,n)=>{vf(t,s.component?e?e.children.getContext(n):null:e,i)}),i.canDeactivateChecks.push(new yf(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class Tf{}function kf(t){return new Et.y(e=>e.error(t))}class Cf{constructor(t,e,i,n,s,o){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=n,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=o}recognize(){const t=rf(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,Bl);if(null===e)return null;const i=new Td([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Bl,this.rootComponentType,null,this.urlTree.root,-1,{}),n=new wd(i,e),s=new kd(this.url,n);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,i=vd(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=[];for(const s of Object.keys(e.children)){const n=e.children[s],o=nf(t,s),r=this.processSegmentGroup(o,n,s);if(null===r)return null;i.push(...r)}const n=zf(i);return n.sort((t,e)=>t.value.outlet===Bl?-1:e.value.outlet===Bl?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,i,n){for(const s of t){const t=this.processSegmentAgainstRoute(s,e,i,n);if(null!==t)return t}return uf(e,i,n)?[]:null}processSegmentAgainstRoute(t,e,i,n){if(t.redirectTo||!cf(t,e,i,n))return null;let s,o=[],r=[];if("**"===t.path){const n=i.length>0?Ol(i).parameters:{};s=new Td(i,n,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Sf(t),ef(t),t.component,t,Rf(e),Pf(e)+i.length,Bf(t))}else{const n=of(e,t,i);if(!n.matched)return null;o=n.consumedSegments,r=i.slice(n.lastChild),s=new Td(o,n.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Sf(t),ef(t),t.component,t,Rf(e),Pf(e)+o.length,Bf(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:u}=rf(e,o,r,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===u.length&&c.hasChildren()){const t=this.processChildren(a,c);return null===t?null:[new wd(s,t)]}if(0===a.length&&0===u.length)return[new wd(s,[])];const h=ef(t)===n,l=this.processSegment(a,c,u,h?Bl:n);return null===l?null:[new wd(s,l)]}}function Ef(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function zf(t){const e=[],i=new Set;for(const n of t){if(!Ef(n)){e.push(n);continue}const t=e.find(t=>n.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...n.children),i.add(t)):e.push(n)}for(const n of i){const t=zf(n.children);e.push(new wd(n.value,t))}return e.filter(t=>!i.has(t))}function Rf(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Pf(t){let e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,i+=e._segmentIndexShift?e._segmentIndexShift:0;return i-1}function Sf(t){return t.data||{}}function Bf(t){return t.resolve||{}}function Mf(t){return(0,le.w)(e=>{const i=t(e);return i?(0,Kr.D)(i).pipe((0,Pt.U)(()=>e)):(0,Ct.of)(e)})}class Kf extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const xf=new s.OlP("ROUTES");class Hf{constructor(t,e,i,n){this.loader=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=n}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const i=this.loadModuleFactory(e.loadChildren).pipe((0,Pt.U)(i=>{this.onLoadEndListener&&this.onLoadEndListener(e);const n=i.create(t);return new Gd(Ll(n.injector.get(xf,void 0,s.XFs.Self|s.XFs.Optional)).map(tf),n)}),(0,Rh.K)(t=>{throw e._loader$=void 0,t}));return e._loader$=new tl.c(i,()=>new kt.xQ).pipe((0,fl.x)()),e._loader$}loadModuleFactory(t){return"string"==typeof t?(0,Kr.D)(this.loader.load(t)):Dl(t()).pipe((0,dl.zg)(t=>t instanceof s.YKP?(0,Ct.of)(t):(0,Kr.D)(this.compiler.compileModuleAsync(t))))}}class jf{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new If,this.attachRef=null}}class If{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new jf,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class Lf{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Of(t){throw t}function Ff(t,e,i){return e.parse("/")}function Df(t,e){return(0,Ct.of)(null)}const qf={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Nf={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Uf=(()=>{class t{constructor(t,e,i,n,o,r,a,c){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=i,this.location=n,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new kt.xQ,this.errorHandler=Of,this.malformedUriErrorHandler=Ff,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Df,afterPreactivation:Df},this.urlHandlingStrategy=new Lf,this.routeReuseStrategy=new Kf,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(s.h0i),this.console=o.get(s.c2e);const u=o.get(s.R0b);this.isNgZoneEnabled=u instanceof s.R0b&&s.R0b.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new Wl(new Yl([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Hf(r,a,t=>this.triggerEvent(new kl(t)),t=>this.triggerEvent(new Cl(t))),this.routerState=Ad(this.currentUrlTree,this.rootComponentType),this.transitions=new Jh({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()}setupNavigations(t){const e=this.events;return t.pipe((0,se.h)(t=>0!==t.id),(0,Pt.U)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),(0,le.w)(t=>{let i=!1,n=!1;return(0,Ct.of)(t).pipe((0,Bi.b)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,le.w)(t=>{const i=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return(0,Ct.of)(t).pipe((0,le.w)(t=>{const i=this.transitions.getValue();return e.next(new pl(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==this.transitions.getValue()?xr.E:Promise.resolve(t)}),(n=this.ngModule.injector,s=this.configLoader,o=this.urlSerializer,r=this.config,(0,le.w)(t=>function(t,e,i,n,s){return new pf(t,e,i,n,s).apply()}(n,s,o,t.extractedUrl,r).pipe((0,Pt.U)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e}))))),(0,Bi.b)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,i,n,s){return(0,dl.zg)(o=>function(t,e,i,n,s="emptyOnly",o="legacy"){try{const r=new Cf(t,e,i,n,s,o).recognize();return null===r?kf(new Tf):(0,Ct.of)(r)}catch(r){return kf(r)}}(t,e,o.urlAfterRedirects,i(o.urlAfterRedirects),n,s).pipe((0,Pt.U)(t=>Object.assign(Object.assign({},o),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Bi.b)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const i=new bl(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(i)}));var n,s,o,r;if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:i,extractedUrl:n,source:s,restoredState:o,extras:r}=t,a=new pl(i,this.serializeUrl(n),s,o);e.next(a);const c=Ad(n,this.rootComponentType).snapshot;return(0,Ct.of)(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:n,extras:Object.assign(Object.assign({},r),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),xr.E}),Mf(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:o,replaceUrl:r}}=t;return this.hooks.beforePreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!r})}),(0,Bi.b)(t=>{const e=new Al(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,Pt.U)(t=>Object.assign(Object.assign({},t),{guards:bf(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return(0,dl.zg)(i=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:o,canDeactivateChecks:r}}=i;return 0===r.length&&0===o.length?(0,Ct.of)(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return(0,Kr.D)(t).pipe((0,dl.zg)(t=>function(t,e,i,n,s){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return(0,Ct.of)(!0);const r=o.map(o=>{const r=Af(o,e,s);let a;if(function(t){return t&&$d(t.canDeactivate)}(r))a=Dl(r.canDeactivate(t,e,i,n));else{if(!$d(r))throw new Error("Invalid CanDeactivate guard");a=Dl(r(t,e,i,n))}return a.pipe((0,ll.P)())});return(0,Ct.of)(r).pipe(Yd())}(t.component,t.route,i,e,n)),(0,ll.P)(t=>!0!==t,!0))}(r,n,s,t).pipe((0,dl.zg)(i=>i&&"boolean"==typeof i?function(t,e,i,n){return(0,Kr.D)(e).pipe((0,sa.b)(e=>ue(function(t,e){return null!==t&&e&&e(new El(t)),(0,Ct.of)(!0)}(e.route.parent,n),function(t,e){return null!==t&&e&&e(new Rl(t)),(0,Ct.of)(!0)}(e.route,n),function(t,e,i){const n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>Hr(()=>{const s=e.guards.map(s=>{const o=Af(s,e.node,i);let r;if(function(t){return t&&$d(t.canActivateChild)}(o))r=Dl(o.canActivateChild(n,t));else{if(!$d(o))throw new Error("Invalid CanActivateChild guard");r=Dl(o(n,t))}return r.pipe((0,ll.P)())});return(0,Ct.of)(s).pipe(Yd())}));return(0,Ct.of)(s).pipe(Yd())}(t,e.path,i),function(t,e,i){const n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||0===n.length)return(0,Ct.of)(!0);const s=n.map(n=>Hr(()=>{const s=Af(n,e,i);let o;if(function(t){return t&&$d(t.canActivate)}(s))o=Dl(s.canActivate(e,t));else{if(!$d(s))throw new Error("Invalid CanActivate guard");o=Dl(s(e,t))}return o.pipe((0,ll.P)())}));return(0,Ct.of)(s).pipe(Yd())}(t,e.route,i))),(0,ll.P)(t=>!0!==t,!0))}(n,o,t,e):(0,Ct.of)(i)),(0,Pt.U)(t=>Object.assign(Object.assign({},i),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),(0,Bi.b)(t=>{if(Vd(t.guardsResult)){const e=xl(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new _l(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),(0,se.h)(t=>!!t.guardsResult||(this.cancelNavigationTransition(t,""),!1)),Mf(t=>{if(t.guards.canActivateChecks.length)return(0,Ct.of)(t).pipe((0,Bi.b)(t=>{const e=new vl(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,le.w)(t=>{let e=!1;return(0,Ct.of)(t).pipe((i=this.paramsInheritanceStrategy,n=this.ngModule.injector,(0,dl.zg)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:s}}=t;if(!s.length)return(0,Ct.of)(t);let o=0;return(0,Kr.D)(s).pipe((0,sa.b)(t=>function(t,e,i,n){return function(t,e,i,n){const s=Object.keys(t);if(0===s.length)return(0,Ct.of)({});const o={};return(0,Kr.D)(s).pipe((0,dl.zg)(s=>function(t,e,i,n){const s=Af(t,e,n);return Dl(s.resolve?s.resolve(e,i):s(e,i))}(t[s],e,i,n).pipe((0,Bi.b)(t=>{o[s]=t}))),ol(1),(0,dl.zg)(()=>Object.keys(o).length===s.length?(0,Ct.of)(o):xr.E))}(t._resolve,t,e,n).pipe((0,Pt.U)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),vd(t,i).resolve),null)))}(t.route,e,i,n)),(0,Bi.b)(()=>o++),ol(1),(0,dl.zg)(e=>o===s.length?(0,Ct.of)(t):xr.E))})),(0,Bi.b)({next:()=>e=!0,complete:()=>{e||this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value.")}}));var i,n}),(0,Bi.b)(t=>{const e=new Tl(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),Mf(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:o,replaceUrl:r}}=t;return this.hooks.afterPreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!r})}),(0,Pt.U)(t=>{const e=function(t,e,i){const n=Pd(t,e._root,i?i._root:void 0);return new bd(n,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),(0,Bi.b)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,o=this.routeReuseStrategy,r=t=>this.triggerEvent(t),(0,Pt.U)(t=>(new Nd(o,t.targetRouterState,t.currentRouterState,r).activate(s),t))),(0,Bi.b)({next(){i=!0},complete(){i=!0}}),Ph(()=>{i||n||this.cancelNavigationTransition(t,`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`),this.currentNavigation=null}),(0,Rh.K)(i=>{if(n=!0,(s=i)&&s.ngNavigationCancelingError){const n=Vd(i.url);n||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new wl(t.id,this.serializeUrl(t.extractedUrl),i.message);e.next(s),n?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(i.url,this.rawUrlTree);this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const n=new yl(t.id,this.serializeUrl(t.extractedUrl),i);e.next(n);try{t.resolve(this.errorHandler(i))}catch(o){t.reject(o)}}var s;return xr.E}));var s,o,r}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:i,urlTree:n}=e,s={replaceUrl:!0};if(i){const t=Object.assign({},i);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(n,t,i,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const i=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&i&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Qd(t),this.config=t.map(tf),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(t,e={}){const{relativeTo:i,queryParams:n,fragment:s,queryParamsHandling:o,preserveFragment:r}=e,a=i||this.routerState.root,c=r?this.currentUrlTree.fragment:s;let u=null;switch(o){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=n||null}return null!==u&&(u=this.removeEmptyProps(u)),function(t,e,i,n,s){if(0===i.length)return Kd(e.root,e.root,e,n,s);const o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Hd(!0,0,t);let e=0,i=!1;const n=t.reduce((t,n,s)=>{if("object"==typeof n&&null!=n){if(n.outlets){const e={};return Fl(n.outlets,(t,i)=>{e[i]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(n.segmentPath)return[...t,n.segmentPath]}return"string"!=typeof n?[...t,n]:0===s?(n.split("/").forEach((n,s)=>{0==s&&"."===n||(0==s&&""===n?i=!0:".."===n?e++:""!=n&&t.push(n))}),t):[...t,n]},[]);return new Hd(i,e,n)}(i);if(o.toRoot())return Kd(e.root,new Yl([],{}),e,n,s);const r=function(t,e,i){if(t.isAbsolute)return new jd(e.root,!0,0);if(-1===i.snapshot._lastPathIndex){const t=i.snapshot._urlSegment;return new jd(t,t===e.root,0)}const n=Bd(t.commands[0])?0:1;return function(t,e,i){let n=t,s=e,o=i;for(;o>s;){if(o-=s,n=n.parent,!n)throw new Error("Invalid number of '../'");s=n.segments.length}return new jd(n,!1,s-o)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(o,e,t),a=r.processChildren?Ld(r.segmentGroup,r.index,o.commands):Id(r.segmentGroup,r.index,o.commands);return Kd(r.segmentGroup,a,e,n,s)}(a,this.currentUrlTree,t,u,null!=c?c:null)}navigateByUrl(t,e={skipLocationChange:!1}){const i=Vd(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree);let s=null;return"computed"===this.canceledNavigationResolution&&(0===this.currentPageId||e.skipLocationChange||e.replaceUrl)&&(s=this.location.getState()),this.scheduleNavigation(n,"imperative",s,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const n=t[i];return null!=n&&(e[i]=n),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new ml(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,i,n,s){if(this.disposed)return Promise.resolve(!1);const o=this.getTransition(),r="imperative"!==e&&"imperative"===(null==o?void 0:o.source),a=(this.lastSuccessfulId===o.id||this.currentNavigation?o.rawUrl:o.urlAfterRedirects).toString()===t.toString();if(r&&a)return Promise.resolve(!0);let c,u,h;s?(c=s.resolve,u=s.reject,h=s.promise):h=new Promise((t,e)=>{c=t,u=e});const l=++this.navigationId;let d;return d="computed"===this.canceledNavigationResolution?i&&i.\u0275routerPageId?i.\u0275routerPageId:this.currentPageId+1:0,this.setTransition({id:l,targetPageId:d,source:e,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:c,reject:u,promise:h,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),h.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const i=this.urlSerializer.serialize(t),n=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(i)||e.extras.replaceUrl?this.location.replaceState(i,"",n):this.location.go(i,"",n)}resetStateAndUrl(t,e,i){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){"computed"===this.canceledNavigationResolution?"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy||this.location.historyGo(this.currentPageId-t.targetPageId):this.resetUrlToCurrentUrlTree();const i=new wl(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(i),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.DyG),s.LFG(Jl),s.LFG(If),s.LFG(n.Ye),s.LFG(s.zs3),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Gf=(()=>{class t{constructor(t,e,i,n,o){this.parentContexts=t,this.location=e,this.resolver=i,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.vpe,this.deactivateEvents=new s.vpe,this.name=n||Bl,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const i=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,s=new $f(t,n,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(If),s.Y36(s.s_b),s.Y36(s._Vd),s.$8M("name"),s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class $f{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===_d?this.route:t===If?this.childContexts:this.parent.get(t,e)}}class Vf{}class Wf{preload(t,e){return(0,Ct.of)(null)}}let Yf=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.injector=n,this.preloadingStrategy=s,this.loader=new Hf(e,i,e=>t.triggerEvent(new kl(e)),e=>t.triggerEvent(new Cl(e)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,se.h)(t=>t instanceof ml),(0,sa.b)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(s.h0i);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const i=[];for(const n of e)if(n.loadChildren&&!n.canLoad&&n._loadedConfig){const t=n._loadedConfig;i.push(this.processRoutes(t.module,t.routes))}else n.loadChildren&&!n.canLoad?i.push(this.preloadConfig(t,n)):n.children&&i.push(this.processRoutes(t,n.children));return(0,Kr.D)(i).pipe((0,ce.J)(),(0,Pt.U)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?(0,Ct.of)(e._loadedConfig):this.loader.load(t.injector,e)).pipe((0,dl.zg)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Uf),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(s.zs3),s.LFG(Vf))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Zf=(()=>{class t{constructor(t,e,i={}){this.router=t,this.viewportScroller=e,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.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(t=>{t instanceof pl?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof ml&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Sl&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new Sl(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Uf),s.LFG(n.EM),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const Qf=new s.OlP("ROUTER_CONFIGURATION"),Jf=new s.OlP("ROUTER_FORROOT_GUARD"),Xf=[n.Ye,{provide:Jl,useClass:Xl},{provide:Uf,useFactory:function(t,e,i,n,s,o,r,a={},c,u){const h=new Uf(null,t,e,i,n,s,o,Ll(r));return c&&(h.urlHandlingStrategy=c),u&&(h.routeReuseStrategy=u),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,h),a.enableTracing&&h.events.subscribe(t=>{var e,i;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(i=console.groupEnd)||void 0===i||i.call(console)}),h},deps:[Jl,If,n.Ye,s.zs3,s.v3s,s.Sil,xf,Qf,[class{},new s.FiY],[class{},new s.FiY]]},If,{provide:_d,useFactory:function(t){return t.routerState.root},deps:[Uf]},{provide:s.v3s,useClass:s.EAV},Yf,Wf,class{preload(t,e){return e().pipe((0,Rh.K)(()=>(0,Ct.of)(null)))}},{provide:Qf,useValue:{enableTracing:!1}}];function tg(){return new s.PXZ("Router",Uf)}let eg=(()=>{class t{constructor(t,e){}static forRoot(e,i){return{ngModule:t,providers:[Xf,og(e),{provide:Jf,useFactory:sg,deps:[[Uf,new s.FiY,new s.tp0]]},{provide:Qf,useValue:i||{}},{provide:n.S$,useFactory:ng,deps:[n.lw,[new s.tBr(n.mr),new s.FiY],Qf]},{provide:Zf,useFactory:ig,deps:[Uf,n.EM,Qf]},{provide:Vf,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:Wf},{provide:s.PXZ,multi:!0,useFactory:tg},[rg,{provide:s.ip1,multi:!0,useFactory:ag,deps:[rg]},{provide:ug,useFactory:cg,deps:[rg]},{provide:s.tb,multi:!0,useExisting:ug}]]}}static forChild(e){return{ngModule:t,providers:[og(e)]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Jf,8),s.LFG(Uf,8))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();function ig(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new Zf(t,e,i)}function ng(t,e,i={}){return i.useHash?new n.Do(t,e):new n.b0(t,e)}function sg(t){return"guarded"}function og(t){return[{provide:s.deG,multi:!0,useValue:t},{provide:xf,multi:!0,useValue:t}]}let rg=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new kt.xQ}appInitializer(){return this.injector.get(n.V_,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),i=this.injector.get(Uf),n=this.injector.get(Qf);return"disabled"===n.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===n.initialNavigation||"enabledBlocking"===n.initialNavigation?(i.hooks.afterPreactivation=()=>this.initNavigation?(0,Ct.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),i.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(Qf),i=this.injector.get(Yf),n=this.injector.get(Zf),o=this.injector.get(Uf),r=this.injector.get(s.z2F);t===r.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||o.initialNavigation(),i.setUpPreloading(),n.init(),o.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function ag(t){return t.appInitializer.bind(t)}function cg(t){return t.bootstrapListener.bind(t)}const ug=new s.OlP("Router Initializer");var hg=i(2623);let lg=(()=>{class t{constructor(t,e,i,n,s){this.injector=t,this.store=e,this.dialog=i,this.route=n,this.oauthService=s,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(Uf),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(t=>{t.idpFilter&&(this.filterShortname=t.idpFilter)})}getClientConfig(){const t=this.setIdpFilter(),e=t?{acr_values:t}:{};return this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(e.prompt="consent"),{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"),customQueryParams:e}}setIdpFilter(){const t=location.search.substr(1).split("&");this.filterShortname=null;const e=this.store.get("oidc_client","filters");if(!e)return null;let i=null;return t.forEach(t=>{const n=t.split("=");"idpFilter"===n[0]&&e[n[1]]&&(this.filterShortname=n[1],i=e[n[1]])}),e.default&&!i?(this.filterShortname="default",e.default):i}startIdpFilterKeeper(){this.router.events.pipe((0,se.h)(t=>t instanceof ml)).subscribe(()=>{const t={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===t.idpFilter?{}:t,queryParamsHandling:"merge",replaceUrl:!0})})}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const t=location.pathname,e=location.search.substr(1);return"/api-callback"===t?this.handleAuthCallback().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(t,e).then(()=>this.startRefreshToken())}startRefreshToken(){return this.isLoggedInPromise().then(t=>!!t&&(this.oauthService.events.pipe((0,se.h)(t=>"token_expires"===t.type)).subscribe(()=>{this.oauthService.refreshToken()}),!0))}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):this.oauthService.logOut()}isLoggedInPromise(){return this.isLoggedIn()?Promise.resolve(!0):Promise.resolve(!1)}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}isPotentiallyValidPath(t){const e=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===t)return!0;for(const i of e)if(t.startsWith(i))return!0;return!1}verifyAuthentication(t,e){return this.isLoggedInPromise().then(i=>i?(this.oauthService.loadDiscoveryDocument(),!0):this.isPotentiallyValidPath(t)?(sessionStorage.setItem("auth:redirect",t),sessionStorage.setItem("auth:queryParams",e),!1):new Promise((t,e)=>e("Invalid path")))}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const t=sessionStorage.getItem("mfa_route");if(t)return this.router.navigate([t],{replaceUrl:!0});let e=sessionStorage.getItem("auth:redirect");const i=sessionStorage.getItem("auth:queryParams");let n=[];i&&(n=i.split("&"));const s={};return n.forEach(t=>{const e=t.split("=");s[e[0]]=e[1]}),e&&"/login"!==e||(e="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),s.idpFilter&&(this.filterShortname=s.idpFilter),this.router.navigate([e],{queryParams:s,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.zs3),s.LFG(yt),s.LFG(Yr),s.LFG(_d),s.LFG(hg.Ct))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),dg=(()=>{class t{constructor(t,e,i,n,s,o){this.authService=t,this.storeService=e,this.authResolver=i,this.authzService=n,this.dialog=s,this.router=o,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(t){this.loginScreenShown=t}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)):(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(t=>t(!0)):this.authService.verifyAuth())}startAuth(){return this.authService.startAuthentication(),new Promise(()=>{})}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(t=>{if(null===t.user){const t=Zh();this.dialog.open(Ca,t)}else this.storeService.setPerunPrincipal(t),this.authResolver.init(t)})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(t=>{t()});if(this.storeService.get("auto_auth_redirect"))return this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0);const t=location.search.substr(1).split("&"),e={};for(const i of t){const t=i.split("=");e[t[0]]=t[1]}return this.router.navigate(["login"],{queryParams:e,queryParamsHandling:"merge"}).then(()=>null)}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(lg),s.LFG(yt),s.LFG(wt),s.LFG(V),s.LFG(Yr),s.LFG(Uf))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),fg=(()=>{class t{constructor(t,e){this.matIconRegistry=t,this.domSanitizer=e,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/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/settings1-blue.svg",name:"settings-blue"},{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"}]}registerPerunRefreshIcon(){this.customIcons.forEach(t=>{this.matIconRegistry.addSvgIcon(t.name,this.domSanitizer.bypassSecurityTrustResourceUrl(t.url))})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Lh),s.LFG(K))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),gg=(()=>{class t{constructor(t){this.dialogRef=t}close(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(qr))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"div",2),s.TgZ(7,"div",3),s.TgZ(8,"button",4),s.NdJ("click",function(){return e.close()}),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),s.xp6(3),s.hij(" ",s.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),s.xp6(5),s.hij(" ",s.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},directives:[Qr,Jr,Xr,Ba],pipes:[Ta],styles:[""]}),t})(),pg=(()=>{class t{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const t=this.handleNextError;return this.handleNextError=!0,t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),mg=(()=>{class t{constructor(t){this.translate=t,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3,this.addNotification=new s.vpe}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(t,e=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===t.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===t.name?e:e+"\n"+t.name,t,t.message)}showError(t,e,i,n,s){this.addNotification.emit({type:"error",error:e,description:i,title:t,actionText:void 0===n&&void 0!==i?this.getDefaultActionMessage():n,delay:this.defaultErrorDelayMs,icon:"error_outline",action:s,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(t,e,i,n){this.addNotification.emit({type:"success",description:e,title:t,actionText:void 0===i&&void 0!==e?this.getDefaultActionMessage():i,delay:this.defaultSuccessDelayMs,icon:"done",action:n,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(va))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),wg=(()=>{class t{constructor(t,e,i,n,s,o){this.authService=t,this.apiRequestConfiguration=e,this.notificator=i,this.store=n,this.dialog=s,this.initAuthService=o}intercept(t,e){const i=this.store.get("api_url");if(-1!==t.url.indexOf("i18n")&&(t=t.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==i&&-1!==t.url.toString().indexOf(i)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()){const t=Zh();t.width="450px",this.dialog.open(gg,t).afterClosed().subscribe(()=>{sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substr(1)),this.authService.startAuthentication()})}t=this.initAuthService.isServiceAccess()?t.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):t.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}});const n=this.apiRequestConfiguration.shouldHandleError(),s="POST"===t.method&&!this.store.skipOidc()&&this.isCallToPerunApi(t.url);return e.handle(t).pipe((0,Bi.b)(t=>{t instanceof D.Zn&&s&&this.initAuthService.loadPrincipal()},e=>{const i=this.formatErrors(e,t);return void 0===i?(0,zh._)(e):n?void this.notificator.showRPCError(i):(0,zh._)(i)}))}isCallToPerunApi(t){return t.startsWith(this.store.get("api_url"))}formatErrors(t,e){let i;if(console.error(t),t.error.errorId?i=t.error:t.errorId&&(i=JSON.parse(t.error)),void 0!==i)return i.urlWithParams=e.urlWithParams,i.call=e.url,i.payload=e.body,i}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(lg),s.LFG(pg),s.LFG(mg),s.LFG(yt),s.LFG(Yr),s.LFG(dg))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),yg=(()=>{class t{constructor(t,e,i,n){this.http=t,this.notificator=e,this.authService=i,this.storeService=n}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}formatErrors(t,e,i,n){const s=t.error;return s.call=e,s.payload=i,n&&this.notificator.showRPCError(t.error),(0,zh._)(s)}getHeaders(){let t=new D.WM;return t=t.set("Authorization",this.authService.getAuthorizationHeaderValue()),t}get(t,e=!0){const i=`${this.getApiUrl()}${t}`;return this.http.get(i,{headers:this.getHeaders()}).pipe((0,Rh.K)(t=>this.formatErrors(t,i,null,e)))}put(t,e={},i=!0){const n=`${this.getApiUrl()}${t}`,s=JSON.stringify(e);return this.http.put(n,s,{headers:this.getHeaders()}).pipe((0,Rh.K)(t=>this.formatErrors(t,n,s,i)))}post(t,e={},i=!0){const n=`${this.getApiUrl()}${t}`,s=JSON.stringify(e);let o=this.getHeaders();return o=o.set("Content-Type","application/json; charset=utf-8"),this.http.post(n,s,{headers:o}).pipe((0,Rh.K)(t=>this.formatErrors(t,n,s,i)))}delete(t,e=!0){const i=`${this.getApiUrl()}${t}`;return this.http.delete(i,{headers:this.getHeaders()}).pipe((0,Rh.K)(t=>this.formatErrors(t,i,null,e)))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(mg),s.LFG(lg),s.LFG(yt))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),bg=(()=>{class t{constructor(t,e){this.route=t,this.store=e}getPreferredLanguage(t){const e=this.store.get("supported_languages"),i=navigator.languages.map(t=>t.split("-")[0]),n=location.search.substr(1).split("&");let s=null;for(const o of n){const t=o.split("=");"lang"===t[0]&&(s=t[1])}return s&&e.includes(s)?s:t&&e.includes(t)?t:i&&e.includes(i[0])?i[0]:"en"}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(_d),s.LFG(yt))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Ag=["*",[["mat-toolbar-row"]]],_g=["*","mat-toolbar-row"];class vg{constructor(t){this._elementRef=t}}const Tg=sr(vg);let kg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),Cg=(()=>{class t extends Tg{constructor(t,e,i){super(t),this._platform=e,this._document=i}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Ce),s.Y36(n.K0))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,kg,5),2&t){let t;s.iGM(t=s.CRH())&&(e._toolbarRows=t)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&s.ekj("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[s.qOj],ngContentSelectors:_g,decls:2,vars:0,template:function(t,e){1&t&&(s.F$t(Ag),s.Hsn(0),s.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%}\n"],encapsulation:2,changeDetection:0}),t})(),Eg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[ir],ir]}),t})();function zg(t,e){1&t&&(s.TgZ(0,"div",10),s.TgZ(1,"span",11),s._uU(2," ~ \ud83d\uddf2\xa0 "),s.qZA(),s.TgZ(3,"span",12),s._uU(4," DEVEL "),s.qZA(),s.TgZ(5,"span",11),s._uU(6," \xa0\ud83d\uddf2 ~ "),s.qZA(),s.qZA())}const Rg=function(t){return{background:t}},Pg=function(t){return{color:t}};let Sg=(()=>{class t{constructor(t,e,i,n){this.storeService=t,this.sanitizer=e,this.preferredLangService=i,this.translateService=n,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(t=>{this.label=this.storeService.get(`header_label_${t.lang}`)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo"))}changeLanguage(){this.translateService.use("en"===this.translateService.currentLang?"cs":"en")}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yt),s.Y36(K),s.Y36(bg),s.Y36(va))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-header"]],decls:15,vars:19,consts:[[1,"sticky-top","header-container",3,"ngStyle"],[2,"display","flex","flex-direction","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(t,e){if(1&t&&(s.TgZ(0,"mat-toolbar",0),s.TgZ(1,"div",1),s._UZ(2,"a",2),s.TgZ(3,"p",3),s._uU(4),s.qZA(),s.qZA(),s.YNc(5,zg,7,0,"div",4),s.TgZ(6,"div",5),s.TgZ(7,"button",6),s.TgZ(8,"mat-icon",7),s._uU(9," language "),s.qZA(),s.qZA(),s.TgZ(10,"mat-menu",null,8),s.TgZ(12,"button",9),s.NdJ("click",function(){return e.changeLanguage()}),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.MAs(11);s.Q6J("ngStyle",s.VKq(11,Rg,e.bgColor)),s.xp6(2),s.Q6J("innerHTML",e.logo,s.oJD),s.xp6(1),s.Q6J("ngStyle",s.VKq(13,Pg,e.textColor)),s.xp6(1),s.Oqu(e.label),s.xp6(1),s.Q6J("ngIf",e.isDevel),s.xp6(1),s.Q6J("ngStyle",s.VKq(15,Pg,e.textColor)),s.xp6(1),s.Q6J("matMenuTriggerFor",t),s.xp6(1),s.Q6J("ngStyle",s.VKq(17,Pg,e.iconColor)),s.xp6(5),s.hij(" ",s.lcZ(14,9,"HEADER.LANGUAGE")," ")}},directives:[Cg,n.PC,n.O5,Ba,kh,Vh,Ah,mh],pipes:[Ta],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;margin-left:8px;padding:0}.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}"]}),t})();const Bg=Me({passive:!0});let Mg=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return xr.E;const e=Tt(t),i=this._monitoredElements.get(e);if(i)return i.subject;const n=new kt.xQ,s="cdk-text-field-autofilled",o=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",o,Bg),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:n,unlisten:()=>{e.removeEventListener("animationstart",o,Bg)}}),n}stopMonitoring(t){const e=Tt(t),i=this._monitoredElements.get(e);i&&(i.unlisten(),i.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Ce),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Ce),s.LFG(s.R0b))},token:t,providedIn:"root"}),t})(),Kg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Ee]]}),t})();const xg=new s.OlP("MAT_INPUT_VALUE_ACCESSOR"),Hg=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let jg=0;class Ig{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const Lg=rr(Ig);let Og=(()=>{class t extends Lg{constructor(t,e,i,n,s,o,r,a,c,u){super(o,n,s,i),this._elementRef=t,this._platform=e,this.ngControl=i,this._autofillMonitor=a,this._formField=u,this._uid="mat-input-"+jg++,this.focused=!1,this.stateChanges=new kt.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>Re().has(t));const h=this._elementRef.nativeElement,l=h.nodeName.toLowerCase();this._inputValueAccessor=r||h,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&c.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{const e=t.target;e.value||0!==e.selectionStart||0!==e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===l,this._isTextarea="textarea"===l,this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=bt(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=bt(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&Re().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=bt(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const i=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(i!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=i,i?t.setAttribute("placeholder",i):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){Hg.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Ce),s.Y36(Uc,10),s.Y36(_u,8),s.Y36(Ru,8),s.Y36(Ar),s.Y36(xg,10),s.Y36(Mg),s.Y36(s.R0b),s.Y36(fc,8))},t.\u0275dir=s.lG2({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&s.NdJ("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(s.Ikx("disabled",e.disabled)("required",e.required),s.uIk("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),s.ekj("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[s._Bn([{provide:tc,useExisting:t}]),s.qOj,s.TTD]}),t})(),Fg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Ar],imports:[[Kg,pc,ir],Kg,pc]}),t})();function Dg(t,e){if(1&t&&(s.O4$(),s._UZ(0,"circle",3)),2&t){const t=s.oxw();s.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),s.uIk("r",t._getCircleRadius())}}function qg(t,e){if(1&t&&(s.O4$(),s._UZ(0,"circle",3)),2&t){const t=s.oxw();s.Udp("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),s.uIk("r",t._getCircleRadius())}}function Ng(t,e){if(1&t&&(s.O4$(),s._UZ(0,"circle",3)),2&t){const t=s.oxw();s.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),s.uIk("r",t._getCircleRadius())}}function Ug(t,e){if(1&t&&(s.O4$(),s._UZ(0,"circle",3)),2&t){const t=s.oxw();s.Udp("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),s.uIk("r",t._getCircleRadius())}}const Gg=".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:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[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-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation: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)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n";class $g{constructor(t){this._elementRef=t}}const Vg=sr($g,"primary"),Wg=new s.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let Yg=(()=>{class t extends Vg{constructor(e,i,n,s,o){super(e),this._elementRef=e,this._document=n,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const r=t._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),r.has(n.head)||r.set(n.head,new Set([100])),this._fallbackAnimation=i.EDGE||i.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!o&&!o._forceAnimations,o&&(o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=At(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=At(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,At(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=xe(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,i=this._diameter,n=t._diameters;let s=n.get(e);if(!s||!s.has(i)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),t.textContent=this._getAnimationText(),e.appendChild(t),s||(s=new Set,n.set(e,s)),s.add(i)}}_getAnimationText(){const t=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*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Ce),s.Y36(n.K0,8),s.Y36(Yo,8),s.Y36(Wg))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(s.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),s.Udp("width",e.diameter,"px")("height",e.diameter,"px"),s.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[s.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(s.O4$(),s.TgZ(0,"svg",0),s.YNc(1,Dg,1,9,"circle",1),s.YNc(2,qg,1,7,"circle",2),s.qZA()),2&t&&(s.Udp("width",e.diameter,"px")("height",e.diameter,"px"),s.Q6J("ngSwitch","indeterminate"===e.mode),s.uIk("viewBox",e._getViewBox()),s.xp6(1),s.Q6J("ngSwitchCase",!0),s.xp6(1),s.Q6J("ngSwitchCase",!1))},directives:[n.RF,n.n9],styles:[Gg],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),Zg=(()=>{class t extends Yg{constructor(t,e,i,n,s){super(t,e,i,n,s),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Ce),s.Y36(n.K0,8),s.Y36(Yo,8),s.Y36(Wg))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(s.Udp("width",e.diameter,"px")("height",e.diameter,"px"),s.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[s.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(s.O4$(),s.TgZ(0,"svg",0),s.YNc(1,Ng,1,9,"circle",1),s.YNc(2,Ug,1,7,"circle",2),s.qZA()),2&t&&(s.Udp("width",e.diameter,"px")("height",e.diameter,"px"),s.Q6J("ngSwitch","indeterminate"===e.mode),s.uIk("viewBox",e._getViewBox()),s.xp6(1),s.Q6J("ngSwitchCase",!0),s.xp6(1),s.Q6J("ngSwitchCase",!1))},directives:[n.RF,n.n9],styles:[Gg],encapsulation:2,changeDetection:0}),t})(),Qg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[ir,n.ez],ir]}),t})(),Jg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wh,n.ez]]}),t})(),Xg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[],imports:[[n.ez,pc,nh,Hu,Fg,ka,Qg,Wh,Jg]]}),t})();class tp{isErrorState(t){return!!(t&&t.invalid&&t.dirty)}}const ep=(t,e,i,n=500)=>s=>ee(n).pipe((0,le.w)(()=>(i.dontHandleErrorForNext(),t&&"No namespace"!==t?e.checkPasswordStrength(s.value,t):(0,Ct.of)(null))),(0,Pt.U)(()=>null),(0,Rh.K)(t=>(0,Ct.of)({backendError:t.error.message.substr(t.error.message.indexOf(":")+1)})));function ip(t,e){1&t&&(s.TgZ(0,"mat-icon",2),s._uU(1," info "),s.qZA())}function np(t,e){1&t&&(s.TgZ(0,"mat-icon",2),s._uU(1," warning "),s.qZA())}function sp(t,e){1&t&&(s.TgZ(0,"mat-icon",2),s._uU(1," dangerous "),s.qZA())}function op(t,e){1&t&&(s.TgZ(0,"mat-icon",2),s._uU(1," check_circle "),s.qZA())}const rp=["*"];let ap=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:rp,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(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.YNc(1,ip,2,0,"mat-icon",1),s.YNc(2,np,2,0,"mat-icon",1),s.YNc(3,sp,2,0,"mat-icon",1),s.YNc(4,op,2,0,"mat-icon",1),s.Hsn(5),s.qZA()),2&t&&(s.ekj("warn-alert","warn"===e.alert_type)("error-alert","error"===e.alert_type)("success-alert","success"===e.alert_type)("info-alert","info"===e.alert_type),s.xp6(1),s.Q6J("ngIf","info"===e.alert_type),s.xp6(1),s.Q6J("ngIf","warn"===e.alert_type),s.xp6(1),s.Q6J("ngIf","error"===e.alert_type),s.xp6(1),s.Q6J("ngIf","success"===e.alert_type))},directives:[n.O5,Vh],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:grey;text-align:left;border:1px solid #b3b3b3;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px solid #ececec;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 solid #fedcda;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px solid #d7ffd7;border-radius:10px;background-color:#d7ffd7}"]}),t})();function cp(t,e){1&t&&s._UZ(0,"mat-spinner",12),2&t&&s.Q6J("diameter",18)}function up(t,e){if(1&t&&(s.TgZ(0,"mat-icon",13),s._uU(1," error "),s.qZA()),2&t){const t=s.oxw();s.Q6J("matTooltip",t.getErrorTooltip())("matTooltipDisabled",!t.formGroup.get("passwordCtrl").hasError("backendError"))}}function hp(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function lp(t,e){if(1&t&&(s.TgZ(0,"mat-error",14),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.Q6J("matTooltip",t.getErrorTooltip()),s.xp6(1),s.Oqu(t.getErrorTooltip())}}function dp(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function fp(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let gp=(()=>{class t{constructor(t,e,i){this.translator=t,this.usersManagerService=e,this.store=i,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.multiLanguage=!1,this.language="en",this.allPasswordRequirements=this.store.get("password_requirements_help"),this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new tp}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(t=>{const e=t.userAttributes.find(t=>"preferredLanguage"===t.friendlyName);this.language=e&&e.value?e.value.toString():"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 t=this.formGroup.get("passwordCtrl").getError("backendError");return t&&(t=t.replace(":null","")),t}changeHelp(){this.passwordRequirement=this.allPasswordRequirements.find(t=>t.split(":")[0]===this.namespace),this.passwordRequirement=void 0===this.passwordRequirement?this.allPasswordRequirements.find(t=>"default"===t.split(":")[0]).split(/:(.+)/)[1]:this.passwordRequirement.split(/:(.+)/)[1]}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(va),s.Y36(ct),s.Y36(yt))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",namespace:"namespace",multiLanguage:"multiLanguage",language:"language"},features:[s.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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"mat-form-field",1),s._UZ(2,"input",2),s.ALo(3,"translate"),s.YNc(4,cp,1,1,"mat-spinner",3),s.TgZ(5,"mat-icon",4),s.NdJ("click",function(){return e.showNewPassword=!e.showNewPassword}),s._uU(6),s.qZA(),s.YNc(7,up,2,2,"mat-icon",5),s.YNc(8,hp,3,3,"mat-error",6),s.YNc(9,lp,2,2,"mat-error",7),s.qZA(),s.TgZ(10,"mat-form-field",8),s.TgZ(11,"mat-label"),s._uU(12),s.ALo(13,"translate"),s.qZA(),s._UZ(14,"input",9),s.TgZ(15,"mat-icon",4),s.NdJ("click",function(){return e.showPasswordConfirm=!e.showPasswordConfirm}),s._uU(16),s.qZA(),s.YNc(17,dp,3,3,"mat-error",6),s.YNc(18,fp,3,3,"mat-error",6),s.qZA(),s.TgZ(19,"app-alert",10),s._UZ(20,"div",11),s.qZA(),s.qZA()),2&t&&(s.Q6J("formGroup",e.formGroup),s.xp6(1),s.Q6J("matTooltip",e.getPasswordDisabledTooltip())("matTooltipDisabled",e.formGroup.get("passwordCtrl").enabled),s.xp6(1),s.s9C("placeholder",s.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),s.Q6J("type",e.showNewPassword?"text":"password")("required",e.passwordRequired)("errorStateMatcher",e.passwordStateMatcher),s.xp6(2),s.Q6J("ngIf",e.formGroup.get("passwordCtrl").pending),s.xp6(2),s.hij(" ",e.showNewPassword?"visibility_off":"visibility"," "),s.xp6(1),s.Q6J("ngIf",e.formGroup.get("passwordCtrl").dirty&&null!==e.formGroup.get("passwordCtrl").errors),s.xp6(1),s.Q6J("ngIf",e.formGroup.get("passwordCtrl").hasError("required")),s.xp6(1),s.Q6J("ngIf",e.formGroup.get("passwordCtrl").hasError("backendError")),s.xp6(3),s.Oqu(s.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),s.xp6(2),s.Q6J("type",e.showPasswordConfirm?"text":"password")("required",e.passwordRequired),s.xp6(2),s.hij(" ",e.showPasswordConfirm?"visibility_off":"visibility"," "),s.xp6(1),s.Q6J("ngIf",e.formGroup.get("passwordAgainCtrl").hasError("required")),s.xp6(1),s.Q6J("ngIf",e.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),s.xp6(2),s.Q6J("innerHTML",e.passwordRequirement,s.oJD))},directives:[Vc,Ru,gc,th,Og,_c,$c,Su,Mu,n.O5,Vh,cc,sc,ap,Zg,Ja],pipes:[Ta],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right}.error-icon[_ngcontent-%COMP%], .input-spinner[_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;display:block;margin-top:-1px}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple, [_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{position:static!important;display:table}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}"]}),t})();function pp(t,e){if(1&t&&s._UZ(0,"perun-web-apps-password-form",4),2&t){const t=s.oxw();s.Q6J("formGroup",t.newPasswdForm)("namespace",t.namespace)("language",t.language)}}function mp(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"button",5),s.NdJ("click",function(){return s.CHM(t),s.oxw().onSubmit()}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.Q6J("disabled",t.newPasswdForm.invalid||t.newPasswdForm.pending),s.xp6(1),s.hij(" ",s.lcZ(3,2,"reset"===t.mode?"PAGES.PWD_RESET_PAGE.RESET_BUTTON":"PAGES.PWD_RESET_PAGE.ACTIVATION_BUTTON")," ")}}function wp(t,e){if(1&t&&(s.TgZ(0,"div",6),s.TgZ(1,"app-alert",7),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,1,"reset"===t.mode?"PAGES.PWD_RESET_PAGE.RESET_SUCCESS":"PAGES.PWD_RESET_PAGE.ACTIVATION_SUCCESS")," ")}}function yp(t,e){1&t&&s._UZ(0,"mat-spinner",8)}let bp=(()=>{class t{constructor(t,e,i,n,s){this.storeService=t,this.translate=e,this.apiRequestConfiguration=i,this.usersService=n,this._formBuilder=s,this.loading=!1,this.success=!1,this.language="en"}ngOnInit(){this.loading=!0,this.translate.onLangChange.subscribe(t=>{this.language=t.lang}),this.newPasswdForm=this._formBuilder.group({passwordCtrl:new mu("",zc.required,[ep(this.namespace,this.usersService,this.apiRequestConfiguration)]),passwordAgainCtrl:new mu("",zc.required)},{validators:Qh.passwordMatchValidator}),this.loading=!1}onSubmit(){this.loading=!0,this.authWithoutToken?this.usersService.changePasswordForLogin(this.login,this.namespace,this.newPasswdForm.get("passwordCtrl").value).subscribe(()=>{this.success=!0,this.loading=!1}):this.usersService.changeNonAuthzPasswordByToken(this.token,this.newPasswdForm.get("passwordCtrl").value).subscribe(()=>{this.success=!0,this.loading=!1})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yt),s.Y36(va),s.Y36(pg),s.Y36(ct),s.Y36(ju))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.YNc(0,pp,1,3,"perun-web-apps-password-form",0),s.YNc(1,mp,4,4,"div",1),s.YNc(2,wp,4,3,"div",2),s.YNc(3,yp,1,0,"mat-spinner",3)),2&t&&(s.Q6J("ngIf",!e.success&&!e.loading),s.xp6(1),s.Q6J("ngIf",!e.success&&!e.loading),s.xp6(1),s.Q6J("ngIf",e.success&&!e.loading),s.xp6(1),s.Q6J("ngIf",e.loading))},directives:[n.O5,gp,Vc,Ru,Ba,ap,Zg],pipes:[Ta],styles:[""]}),t})(),Ap=(()=>{class t{constructor(t){this.translate=t}ngOnInit(){this.translate.onLangChange.subscribe(()=>{this.invalidRequestMessage=this.translate.instant("PAGES.PWD_RESET_PAGE.INVALID_REQUEST")})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(va))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-invalid-request-alert"]],decls:2,vars:1,consts:[["alert_type","info",1,"alert-wrap"],[3,"innerHTML"]],template:function(t,e){1&t&&(s.TgZ(0,"app-alert",0),s._UZ(1,"div",1),s.qZA()),2&t&&(s.xp6(1),s.Q6J("innerHTML",e.invalidRequestMessage,s.oJD))},directives:[ap],styles:[".alert-wrap[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),t})();function _p(t,e){if(1&t&&(s.O4$(),s.kcU(),s.TgZ(0,"p",9),s.TgZ(1,"em"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.AsE("",s.lcZ(3,2,"PAGES.PWD_RESET_PAGE.LOGIN"),": ",t.login,"")}}function vp(t,e){if(1&t&&(s.O4$(),s.kcU(),s.TgZ(0,"p",9),s.TgZ(1,"em"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.AsE("",s.lcZ(3,2,"PAGES.PWD_RESET_PAGE.NAMESPACE"),": ",t.namespace,"")}}function Tp(t,e){if(1&t&&(s.O4$(),s.kcU(),s._UZ(0,"perun-web-apps-password-reset-form",10)),2&t){const t=s.oxw();s.Q6J("mode",t.mode)("namespace",t.namespace)("login",t.login)("token",t.token)("authWithoutToken",t.authWithoutToken)}}function kp(t,e){1&t&&(s.O4$(),s.kcU(),s._UZ(0,"perun-web-apps-invalid-request-alert"))}let Cp=(()=>{class t{constructor(t,e){this.storeService=t,this.sanitizer=e}ngOnInit(){this.passwordResetLogo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("password_reset_logo"))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yt),s.Y36(K))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div"),s._UZ(1,"div",0),s.TgZ(2,"div",1),s.TgZ(3,"h1"),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.O4$(),s.TgZ(6,"svg",2),s.TgZ(7,"g",3),s._UZ(8,"path",4),s._UZ(9,"path",5),s.qZA(),s.qZA(),s.qZA(),s.YNc(10,_p,4,4,"p",6),s.YNc(11,vp,4,4,"p",6),s.YNc(12,Tp,1,5,"perun-web-apps-password-reset-form",7),s.YNc(13,kp,1,0,"perun-web-apps-invalid-request-alert",8),s.qZA()),2&t&&(s.xp6(1),s.Q6J("innerHTML",e.passwordResetLogo,s.oJD),s.xp6(3),s.hij(" ",s.lcZ(5,6,"reset"===e.mode?"PAGES.PWD_RESET_PAGE.TITLE_RESET":"PAGES.PWD_RESET_PAGE.TITLE_ACTIVATION")," "),s.xp6(6),s.Q6J("ngIf",e.login),s.xp6(1),s.Q6J("ngIf",e.namespace),s.xp6(1),s.Q6J("ngIf",e.validToken||e.authWithoutToken),s.xp6(1),s.Q6J("ngIf",!e.validToken&&!e.authWithoutToken))},directives:[n.O5,bp,Ap],pipes:[Ta],styles:[".title-with-icon[_ngcontent-%COMP%]{margin-top:30px;display:flex;justify-content:space-between}.subtitle[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:10px}"]}),t})();function Ep(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let zp=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.translate=e,this.notificator=i,this.rtMessages=n,this.storeService=s,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(t=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+t.ticketNumber)),this.dialogRef.close()})}getFullEmailBody(){return this.message+"\n ------------------------\n Perun instance: "+this.instanceName+"\n Sended from new Perun Gui, version: "+i(306).i8}close(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(qr),s.Y36(va),s.Y36(mg),s.Y36(nt),s.Y36(yt))},t.\u0275cmp=s.Xpm({type:t,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(t,e){if(1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s.TgZ(4,"mat-form-field"),s.TgZ(5,"mat-label"),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.TgZ(8,"input",2,3),s.NdJ("ngModelChange",function(t){return e.subject=t}),s.qZA(),s.YNc(10,Ep,3,3,"mat-error",4),s.qZA(),s.TgZ(11,"mat-form-field"),s.TgZ(12,"mat-label"),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.TgZ(15,"textarea",5),s.NdJ("ngModelChange",function(t){return e.message=t}),s.ALo(16,"translate"),s._uU(17," "),s.qZA(),s.TgZ(18,"mat-hint"),s._uU(19),s.ALo(20,"translate"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(21,"div",6),s.TgZ(22,"div",7),s.TgZ(23,"button",8),s.NdJ("click",function(){return e.close()}),s._uU(24),s.ALo(25,"translate"),s.qZA(),s.TgZ(26,"button",9),s.NdJ("click",function(){return e.sendBugReport()}),s._uU(27),s.ALo(28,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.MAs(9);s.xp6(1),s.Oqu(s.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),s.xp6(5),s.Oqu(s.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),s.xp6(2),s.Q6J("ngModel",e.subject),s.xp6(2),s.Q6J("ngIf",t.invalid),s.xp6(3),s.Oqu(s.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),s.xp6(2),s.s9C("placeholder",s.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),s.Q6J("ngModel",e.message),s.xp6(4),s.Oqu(s.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),s.xp6(5),s.hij(" ",s.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),s.xp6(2),s.Q6J("disabled",t.invalid),s.xp6(1),s.hij(" ",s.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[Qr,Jr,gc,sc,Og,_c,Mu,$c,ku,n.O5,nc,Xr,Ba,Ja],pipes:[Ta],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})(),Rp=(()=>{class t{transform(t,e,i){return t[`${i}_${e}`]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"localisedText",type:t,pure:!0}),t})(),Pp=(()=>{class t{transform(t,e){return t["link_"+e]||t.link_en}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"localisedLink",type:t,pure:!0}),t})(),Sp=(()=>{class t{transform(t){return t.includes("/")?t:"/assets/config/"+t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"footerLogoPath",type:t,pure:!0}),t})();function Bp(t,e){if(1&t&&(s.TgZ(0,"a",13),s.ALo(1,"localisedLink"),s._UZ(2,"img",14),s.ALo(3,"footerLogoPath"),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Q6J("href",s.xi3(1,2,t,e.language),s.LSH),s.xp6(2),s.s9C("src",s.lcZ(3,5,t.logo),s.LSH)}}function Mp(t,e){if(1&t&&(s.TgZ(0,"span"),s._UZ(1,"img",14),s.ALo(2,"footerLogoPath"),s.qZA()),2&t){const t=s.oxw().$implicit;s.xp6(1),s.s9C("src",s.lcZ(2,1,t.logo),s.LSH)}}function Kp(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,Bp,4,7,"a",11),s.ALo(2,"localisedLink"),s.YNc(3,Mp,3,3,"span",12),s.ALo(4,"localisedLink"),s.qZA()),2&t){const t=e.$implicit,i=s.oxw(3);s.xp6(1),s.Q6J("ngIf",s.xi3(2,2,t,i.language)),s.xp6(2),s.Q6J("ngIf",!s.xi3(4,5,t,i.language))}}const xp=function(t){return{"min-height":t}};function Hp(t,e){if(1&t&&(s.TgZ(0,"div",10),s.YNc(1,Kp,5,8,"div",5),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw();s.Q6J("ngStyle",s.VKq(2,xp,e.columnContentHeight+"px")),s.xp6(1),s.Q6J("ngForOf",t.elements)}}const jp=function(t){return{color:t}};function Ip(t,e){if(1&t&&(s.TgZ(0,"i",20),s._uU(1),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Q6J("ngStyle",s.VKq(2,jp,e.linksTextColor)),s.xp6(1),s.hij(" ",t.icon," ")}}function Lp(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"span",21),s.NdJ("click",function(){s.CHM(t);const e=s.oxw().$implicit;return s.oxw(3).openDialog(e.dialog)}),s._uU(1),s.ALo(2,"localisedText"),s.qZA()}if(2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Q6J("ngStyle",s.VKq(6,jp,e.linksTextColor)),s.xp6(1),s.hij("",s.Dn7(2,2,t,e.language,"label")," ")}}function Op(t,e){if(1&t&&(s.TgZ(0,"a",22),s.ALo(1,"localisedLink"),s._uU(2),s.ALo(3,"localisedText"),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Q6J("href",s.xi3(1,3,t,e.language),s.LSH)("ngStyle",s.VKq(10,jp,e.linksTextColor)),s.xp6(2),s.Oqu(s.Dn7(3,6,t,e.language,"label"))}}function Fp(t,e){if(1&t&&(s.TgZ(0,"span",10),s._uU(1),s.ALo(2,"localisedText"),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Q6J("ngStyle",s.VKq(6,jp,e.linksTextColor)),s.xp6(1),s.Oqu(s.Dn7(2,2,t,e.language,"label"))}}function Dp(t,e){if(1&t&&(s.TgZ(0,"div",16),s.YNc(1,Ip,2,4,"i",17),s.YNc(2,Lp,3,8,"span",18),s.YNc(3,Op,4,12,"a",19),s.ALo(4,"localisedLink"),s.YNc(5,Fp,3,8,"span",9),s.ALo(6,"localisedLink"),s.qZA()),2&t){const t=e.$implicit,i=s.oxw(3);s.xp6(1),s.Q6J("ngIf",t.icon),s.xp6(1),s.Q6J("ngIf",t.dialog),s.xp6(1),s.Q6J("ngIf",s.xi3(4,4,t,i.language)&&!t.dialog),s.xp6(2),s.Q6J("ngIf",!s.xi3(6,7,t,i.language)&&!t.dialog)}}const qp=function(t){return{height:t}};function Np(t,e){if(1&t&&(s.TgZ(0,"div",10),s.YNc(1,Dp,7,10,"div",15),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw();s.Q6J("ngStyle",s.VKq(2,qp,e.columnContentHeight+"px")),s.xp6(1),s.Q6J("ngForOf",t.elements)}}function Up(t,e){if(1&t&&(s.TgZ(0,"div",7),s.TgZ(1,"h6",8),s._uU(2),s.ALo(3,"localisedText"),s.qZA(),s.YNc(4,Hp,2,4,"div",9),s.YNc(5,Np,2,4,"div",9),s.qZA()),2&t){const t=e.$implicit,i=s.oxw();s.ekj("my-auto",i.containsLogos),s.xp6(1),s.Q6J("ngStyle",s.VKq(10,jp,i.headersTextColor)),s.xp6(1),s.hij(" ",s.Dn7(3,6,t,i.language,"title")," "),s.xp6(2),s.Q6J("ngIf",t.logos),s.xp6(1),s.Q6J("ngIf",t.elements&&!t.logos)}}function Gp(t,e){if(1&t&&(s.TgZ(0,"span"),s.TgZ(1,"a",6),s._uU(2),s.qZA(),s.qZA()),2&t){const t=e.$implicit,i=e.index,n=s.oxw();s.xp6(1),s.Q6J("href",t.url,s.LSH)("ngStyle",s.VKq(3,jp,n.copyrightTextColor)),s.xp6(1),s.Oqu(i?", "+t.name:t.name)}}const $p=function(t){return{background:t}};let Vp=(()=>{class t{constructor(t,e,i){this.storeService=t,this.translateService=e,this.dialog=i,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.items=[],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(t=>{this.language=t.lang}),this.version=i(306).i8,this.items=this.storeService.get("footer","columns");for(const t of this.items)t.logos?this.containsLogos=!0:25*t.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*t.elements.length);this.copyrightItems=this.storeService.get("footer","copyright_items")}openDialog(t){const e=Zh();switch(t){case"reportIssue":e.width="550px",this.dialog.open(zp,e)}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yt),s.Y36(va),s.Y36(Yr))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"footer",0),s.TgZ(1,"div",1),s.YNc(2,Up,6,12,"div",2),s.qZA(),s._UZ(3,"hr",3),s.TgZ(4,"div",4),s._uU(5),s.YNc(6,Gp,3,5,"span",5),s._uU(7," Version "),s.TgZ(8,"a",6),s._uU(9),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Q6J("ngStyle",s.VKq(8,$p,e.bgColor)),s.xp6(2),s.Q6J("ngForOf",e.items),s.xp6(2),s.Q6J("ngStyle",s.VKq(10,jp,e.copyrightTextColor)),s.xp6(1),s.hij(" \xa9 ",e.currentYear," Copyright: "),s.xp6(1),s.Q6J("ngForOf",e.copyrightItems),s.xp6(2),s.Q6J("href",e.githubRepository,s.LSH)("ngStyle",s.VKq(12,jp,e.copyrightTextColor)),s.xp6(1),s.Oqu(e.version))},directives:[n.PC,n.sg,n.O5],pipes:[Rp,Pp,Sp],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}"]}),t})();const Wp=function(t){return{background:t}},Yp=function(t){return{"min-height":t}};let Zp=(()=>{class t{constructor(t,e,i,n,s,o,r){this.dialog=t,this.usersService=e,this.preferredLangService=i,this.translateService=n,this.store=s,this.attributesManagerService=o,this.changeDetector=r,this.authWithoutToken=!1,this.contentHeight="calc(100vh - 84px)",this.contentBackgroundColor=this.store.get("theme","content_bg_color")}ngOnInit(){const t=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(t);const e=location.search.substr(1);this.mode=e.includes("activation")?"activation":"reset",this.namespace=this.parseQueryParams("namespace",e),e.includes("token")?(this.token=this.parseQueryParams("token",e),this.usersService.checkPasswordResetRequestByTokenIsValid(this.token).subscribe(()=>{this.validToken=!0},()=>{this.validToken=!1})):(this.authWithoutToken=!0,this.attributesManagerService.getLogins(this.store.getPerunPrincipal().userId).subscribe(t=>{this.login=t.find(t=>t.friendlyNameParameter===this.namespace).value.toString()}))}parseQueryParams(t,e){const i=e.split("&");for(const n of i){const[e,i]=n.split("=");if(e.includes(t))return i}}setContentHeight(t){this.contentHeight="calc(100vh - 84px - "+t+"px)",this.changeDetector.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Yr),s.Y36(ct),s.Y36(bg),s.Y36(va),s.Y36(yt),s.Y36(G),s.Y36(s.sBO))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-root"]],decls:6,vars:12,consts:[["id","nav-menu"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],[3,"mode","token","namespace","login","validToken","authWithoutToken"],[3,"footerHeight"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s._UZ(1,"perun-web-apps-header",0),s.TgZ(2,"div",1),s.TgZ(3,"div",2),s._UZ(4,"perun-web-apps-password-reset-page",3),s.qZA(),s.TgZ(5,"perun-web-apps-footer",4),s.NdJ("footerHeight",function(t){return e.setContentHeight(t)}),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.Q6J("ngStyle",s.VKq(8,Wp,e.contentBackgroundColor)),s.xp6(1),s.Q6J("ngStyle",s.VKq(10,Yp,e.contentHeight)),s.xp6(1),s.Q6J("mode",e.mode)("token",e.token)("namespace",e.namespace)("login",e.login)("validToken",e.validToken)("authWithoutToken",e.authWithoutToken))},directives:[Sg,n.PC,Cp,Vp],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}}"]}),t})();class Qp{constructor(t,e="/assets/i18n/",i=".json"){this.http=t,this.prefix=e,this.suffix=i}getTranslation(t){return this.http.get(`${this.prefix}${t}${this.suffix}`)}}let Jp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,ta,Ma,ka]]}),t})();const Xp=[];let tm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[eg.forRoot(Xp,{relativeLinkResolution:"legacy"}),n.ez],eg]}),t})(),em=(()=>{class t{constructor(t,e,i,n,s){this.http=t,this.storeService=e,this.authzSevice=i,this.titleService=n,this.utilsService=s}initializeColors(t,e){return new Promise(i=>{e.forEach(t=>{const e=this.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e)}),t.forEach(t=>{const e=this.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e),this.setEntityTheme(t.entity,e)}),i()})}setEntityTheme(t,e){const i=(n=e,[im(tinycolor(n).lighten(52),"50"),im(tinycolor(n).lighten(37),"100"),im(tinycolor(n).lighten(26),"200"),im(tinycolor(n).lighten(12),"300"),im(tinycolor(n).lighten(6),"400"),im(tinycolor(n),"500"),im(tinycolor(n).darken(6),"600"),im(tinycolor(n).darken(12),"700"),im(tinycolor(n).darken(18),"800"),im(tinycolor(n).darken(24),"900"),im(tinycolor(n).lighten(50).saturate(30),"A100"),im(tinycolor(n).lighten(30).saturate(30),"A200"),im(tinycolor(n).lighten(10).saturate(15),"A400"),im(tinycolor(n).lighten(5).saturate(5),"A700")]);var n;for(const s of i){const e=`--${t}-theme-primary-contrast-${s.name}`,i=s.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${t}-theme-primary-${s.name}`,`${s.red},${s.green},${s.blue}`),document.documentElement.style.setProperty(e,i)}}loadAppDefaultConfig(){return new Promise(t=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(e=>{this.storeService.setDefaultConfig(e),t()})})}loadAppInstanceConfig(){return new Promise(t=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(e=>{this.storeService.setInstanceConfig(e);const i=document.location.hostname;void 0!==e.brandings&&void 0!==e.brandings[i]&&this.storeService.setBanding(i),t()},()=>{console.log("instance config not detected"),t()})})}getNoCacheHeaders(){return new D.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(t=>{const e=document.querySelector("link[rel*='icon']")||document.createElement("link");e.type="image/x-icon",e.rel="shortcut icon",e.href=this.storeService.get("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(e),t()})}setApiUrl(){return new Promise(t=>{let e=this.storeService.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(e=e.replace("oauth","ba")),this.authzSevice.configuration.basePath=e,this.titleService.setTitle(this.storeService.get("document_title")),t()})}loadAppsConfig(){return new Promise((t,e)=>{this.utilsService.getAppsConfig().subscribe(e=>{this.storeService.setAppsConfig(e),t()},t=>e(t))})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(yt),s.LFG(V),s.LFG(F),s.LFG(ut))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function im(t,e){const i=tinycolor(t),n=i.toRgb();return{name:e,hex:i.toHexString(),darkContrast:i.isLight(),red:n.r,green:n.g,blue:n.b}}let nm=(()=>{class t{constructor(t,e,i){this.initAuthService=t,this.appConfigService=e,this.location=i}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(t=>{throw console.error(t),this.location.go("/"),location.reload(),t}).then(t=>t?location.search.substr(1).includes("token")?void 0:this.initAuthService.loadPrincipal():this.initAuthService.handleAuthStart())}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(dg),s.LFG(em),s.LFG(n.Ye))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const sm=new s.OlP("perun-api-service");let om=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[ir],ir]}),t})(),rm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),am=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Sr,ir,ji,rm],ir,rm]}),t})(),cm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[ir],ir]}),t})(),um=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),hm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,ir,um,Ze]]}),t})(),lm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[_r,ir],_r,ir]}),t})(),dm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Le]]}),t})(),fm=(()=>{class t{constructor(){this.changes=new kt.xQ,this.optionalLabel="Optional"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const gm={provide:fm,deps:[[new s.FiY,new s.tp0,fm]],useFactory:function(t){return t||new fm}};let pm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[gm,Ar],imports:[[ir,n.ez,Ze,Ma,dm,Wh,Sr],ir]}),t})(),mm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[qe]]}),t})(),wm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[mm,ir],ir]}),t})(),ym=(()=>{class t{constructor(){this.changes=new kt.xQ,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"}formatYearRange(t,e){return`${t} \u2013 ${e}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const bm={provide:new s.OlP("mat-datepicker-scroll-strategy"),deps:[Ri],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Am=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[ym,bm],imports:[[n.ez,Ma,Si,un,Ze,ir],De]}),t})(),_m=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,ir,Ee,De],De,ir]}),t})(),vm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[_r,Sr,ir,Br,n.ez],_r,ir,Br,cm]}),t})(),Tm=(()=>{class t{constructor(){this.changes=new kt.xQ}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const km={provide:Tm,deps:[[new s.FiY,new s.tp0,Tm]],useFactory:function(t){return t||new Tm}};let Cm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[km],imports:[[n.ez,ir]]}),t})();const Em=new s.OlP("mat-chips-default-options"),zm={separatorKeyCodes:[13]};let Rm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Ar,{provide:Em,useValue:zm}],imports:[[ir]]}),t})();function Pm(t){const{subscriber:e,counter:i,period:n}=t;e.next(i),this.schedule({subscriber:e,counter:i+1,period:n},n)}function Sm(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function Bm(t,e){const i=e?"":"none";Sm(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:i,msUserSelect:i,webkitUserSelect:i,MozUserSelect:i})}function Mm(t,e){const i=t.style;i.position=e?"":"fixed",i.top=i.opacity=e?"":"0",i.left=e?"":"-999em"}function Km(t,e){return e?t+" "+e:t}function xm(t){const e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function Hm(t,e){return t.getPropertyValue(e).split(",").map(t=>t.trim())}function jm(t){const e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function Im(t,e,i){const{top:n,bottom:s,left:o,right:r}=t;return i>=n&&i<=s&&e>=o&&e<=r}function Lm(t,e,i){t.top+=e,t.bottom=t.top+t.height,t.left+=i,t.right=t.left+t.width}function Om(t,e,i,n){const{top:s,right:o,bottom:r,left:a,width:c,height:u}=t,h=c*e,l=u*e;return n>s-l&&na-h&&i{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:jm(t)})})}handleScroll(t){const e=t.target,i=this.positions.get(e);if(!i)return null;const n=e===this._document?e.documentElement:e,s=i.scrollPosition;let o,r;if(e===this._document){const t=this._viewportRuler.getViewportScrollPosition();o=t.top,r=t.left}else o=e.scrollTop,r=e.scrollLeft;const a=s.top-o,c=s.left-r;return this.positions.forEach((t,i)=>{t.clientRect&&e!==i&&n.contains(i)&&Lm(t.clientRect,a,c)}),s.top=o,s.left=r,{top:a,left:c}}}function Dm(t){const e=t.cloneNode(!0),i=e.querySelectorAll("[id]"),n=t.nodeName.toLowerCase();e.removeAttribute("id");for(let s=0;s{if(this.beforeStarted.next(),this._handles.length){const e=this._handles.find(e=>{const i=t.target;return!!i&&(i===e||e.contains(i))});!e||this._disabledHandles.has(e)||this.disabled||this._initializeDragSequence(e,t)}else this.disabled||this._initializeDragSequence(this._rootElement,t)},this._pointerMove=t=>{const e=this._getPointerPositionOnPage(t);if(!this._hasStartedDragging){if(Math.abs(e.x-this._pickupPositionOnPage.x)+Math.abs(e.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const e=Date.now()>=this._dragStartTime+this._getDragStartDelay(t),i=this._dropContainer;if(!e)return void this._endDragSequence(t);i&&(i.isDragging()||i.isReceiving())||(t.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(t)))}return}this._boundaryElement&&(this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect())),t.preventDefault();const i=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._lastKnownPointerPosition=e,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,e);else{const t=this._activeTransform;t.x=i.x-this._pickupPositionOnPage.x+this._passiveTransform.x,t.y=i.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(t.x,t.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform",`translate(${t.x} ${t.y})`)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:t,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})},this._pointerUp=t=>{this._endDragSequence(t)},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new Fm(i,s),o.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=bt(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>Bm(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(t=>Tt(t)),this._handles.forEach(t=>Bm(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(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=Tt(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,Vm),e.addEventListener("touchstart",this._pointerDown,$m)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?Tt(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&Qm(this._rootElement),Qm(this._anchor),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(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),Bm(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),Bm(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&Qm(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&Qm(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){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}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){Jm(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,i=t.parentNode,n=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),o=this._getShadowRoot();i.insertBefore(s,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),Mm(t,!1),this._document.body.appendChild(i.replaceChild(n,t)),this._getPreviewInsertionPoint(i,o).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),n=Jm(e),s=!n&&0!==e.button,o=this._rootElement,r=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),i||s||r)return;this._handles.length&&(this._rootElementTapHighlight=o.style.webkitTapHighlightColor||"",o.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{this._updateOnScroll(t)}),this._boundaryElement&&(this._boundaryRect=jm(this._boundaryElement));const a=this._previewTemplate;this._pickupPositionInElement=a&&a.template&&!a.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);const c=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){Mm(this._rootElement,!0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),n=this._getPointerPositionOnPage(t),s=this._getDragDistance(n),o=e._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:s,dropPoint:n}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:o,distance:s,dropPoint:n}),e.drop(this,i,this._initialIndex,this._initialContainer,o,s,n),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:i,y:n}){let s=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=s,this._dropContainer.enter(this,t,e,s===this._initialContainer&&s.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:s,currentIndex:s.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,n),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let n;if(i&&t){const e=t.matchSize?this._rootElement.getBoundingClientRect():null,s=t.viewContainer.createEmbeddedView(i,t.context);s.detectChanges(),n=Xm(s,this._document),this._previewRef=s,t.matchSize?tw(n,e):n.style.transform=Ym(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const t=this._rootElement;n=Dm(t),tw(n,t.getBoundingClientRect()),this._initialTransform&&(n.style.transform=this._initialTransform)}return Sm(n.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:`${this._config.zIndex||1e3}`}),Bm(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(t=>n.classList.add(t)):n.classList.add(e)),n}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);const e=function(t){const e=getComputedStyle(t),i=Hm(e,"transition-property"),n=i.find(t=>"transform"===t||"all"===t);if(!n)return 0;const s=i.indexOf(n),o=Hm(e,"transition-duration"),r=Hm(e,"transition-delay");return xm(o[s])+xm(r[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const i=e=>{(!e||e.target===this._preview&&"transform"===e.propertyName)&&(this._preview.removeEventListener("transitionend",i),t(),clearTimeout(n))},n=setTimeout(i,1.5*e);this._preview.addEventListener("transitionend",i)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=Xm(this._placeholderRef,this._document)):i=Dm(this._rootElement),i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e){const i=this._rootElement.getBoundingClientRect(),n=t===this._rootElement?null:t,s=n?n.getBoundingClientRect():i,o=Jm(e)?e.targetTouches[0]:e,r=this._getViewportScrollPosition();return{x:s.left-i.left+(o.pageX-s.left-r.left),y:s.top-i.top+(o.pageY-s.top-r.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),i=Jm(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,n=i.pageX-e.left,s=i.pageY-e.top;if(this._ownerSVGElement){const t=this._ownerSVGElement.getScreenCTM();if(t){const e=this._ownerSVGElement.createSVGPoint();return e.x=n,e.y=s,e.matrixTransform(t.inverse())}}return{x:n,y:s}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:n}=this.constrainPosition?this.constrainPosition(t,this):t;if("x"===this.lockAxis||"x"===e?n=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==e||(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:t,y:e}=this._pickupPositionInElement,s=this._boundaryRect,o=this._previewRect,r=s.top+e,a=s.bottom-(o.height-e);i=Zm(i,s.left+t,s.right-(o.width-t)),n=Zm(n,r,a)}return{x:i,y:n}}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,n=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,o=Math.abs(e-s.x),r=Math.abs(i-s.y);return o>this._config.pointerDirectionChangeThreshold&&(n.x=e>s.x?1:-1,s.x=e),r>this._config.pointerDirectionChangeThreshold&&(n.y=i>s.y?1:-1,s.y=i),n}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,Bm(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,Vm),t.removeEventListener("touchstart",this._pointerDown,$m)}_applyRootElementTransform(t,e){const i=Ym(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=Km(i,this._initialTransform)}_applyPreviewTransform(t,e){var i;const n=(null===(i=this._previewTemplate)||void 0===i?void 0:i.template)?void 0:this._initialTransform,s=Ym(t,e);this._preview.style.transform=Km(s,n)}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._boundaryElement.getBoundingClientRect(),n=this._rootElement.getBoundingClientRect();if(0===i.width&&0===i.height||0===n.width&&0===n.height)return;const s=i.left-n.left,o=n.right-i.right,r=i.top-n.top,a=n.bottom-i.bottom;i.width>n.width?(s>0&&(t+=s),o>0&&(t-=o)):t=0,i.height>n.height?(r>0&&(e+=r),a>0&&(e-=a)):e=0,t===this._passiveTransform.x&&e===this._passiveTransform.y||this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:Jm(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const i=t.target;this._boundaryRect&&(i===this._document||i!==this._boundaryElement&&i.contains(this._boundaryElement))&&Lm(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(){const t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=xe(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){const i=this._previewContainer||"global";if("parent"===i)return t;if("global"===i){const t=this._document;return e||t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement||t.body}return Tt(i)}}function Ym(t,e){return`translate3d(${Math.round(t)}px, ${Math.round(e)}px, 0)`}function Zm(t,e,i){return Math.max(e,Math.min(i,t))}function Qm(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function Jm(t){return"t"===t.type[0]}function Xm(t,e){const i=t.rootNodes;if(1===i.length&&i[0].nodeType===e.ELEMENT_NODE)return i[0];const n=e.createElement("div");return i.forEach(t=>n.appendChild(t)),n}function tw(t,e){t.style.width=`${e.width}px`,t.style.height=`${e.height}px`,t.style.transform=Ym(e.left,e.top)}function ew(t,e){return Math.max(0,Math.min(e,t))}class iw{constructor(t,e,i,n,s){this._dragDropRegistry=e,this._ngZone=n,this._viewportRuler=s,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new kt.xQ,this.entered=new kt.xQ,this.exited=new kt.xQ,this.dropped=new kt.xQ,this.sorted=new kt.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=Gt.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new kt.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function(t=0,e=Wt.P){return(!Xt(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=Wt.P),new Et.y(i=>(i.add(e.schedule(Pm,t,{subscriber:i,counter:0,period:t})),i))}(0,jt).pipe(oe(this._stopScrollTimers)).subscribe(()=>{const t=this._scrollNode,e=this.autoScrollStep;1===this._verticalScrollDirection?sw(t,-e):2===this._verticalScrollDirection&&sw(t,e),1===this._horizontalScrollDirection?ow(t,-e):2===this._horizontalScrollDirection&&ow(t,e)})},this.element=Tt(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new Fm(i,s)}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(t,e,i,n){let s;this._draggingStarted(),null==n?(s=this.sortingDisabled?this._draggables.indexOf(t):-1,-1===s&&(s=this._getItemIndexFromPointerPosition(t,e,i))):s=n;const o=this._activeDraggables,r=o.indexOf(t),a=t.getPlaceholderElement();let c=o[s];if(c===t&&(c=o[s+1]),r>-1&&o.splice(r,1),c&&!this._dragDropRegistry.isDragging(c)){const e=c.getRootElement();e.parentElement.insertBefore(a,e),o.splice(s,0,t)}else if(this._shouldEnterAsFirstChild(e,i)){const e=o[0].getRootElement();e.parentNode.insertBefore(a,e),o.unshift(t)}else Tt(this.element).appendChild(a),o.push(t);a.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,n,s,o,r){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:n,isPointerOverContainer:s,distance:o,dropPoint:r})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(t=>t.isDragging()).every(e=>-1===t.indexOf(e))?this._reset():this._cacheItems()),this}withDirection(t){return this._direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._orientation=t,this}withScrollableParents(t){const e=Tt(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?nw("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,e=>e.drag===t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,n){if(this.sortingDisabled||!this._clientRect||!Om(this._clientRect,.05,e,i))return;const s=this._itemPositions,o=this._getItemIndexFromPointerPosition(t,e,i,n);if(-1===o&&s.length>0)return;const r="horizontal"===this._orientation,a=nw(s,e=>e.drag===t),c=s[o],u=c.clientRect,h=a>o?1:-1,l=this._getItemOffsetPx(s[a].clientRect,u,h),d=this._getSiblingOffsetPx(a,s,h),f=s.slice();!function(t,e,i){const n=ew(e,t.length-1),s=ew(i,t.length-1);if(n===s)return;const o=t[n],r=s{if(f[i]===e)return;const n=e.drag===t,s=n?l:d,o=n?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=s,r?(o.style.transform=Km(`translate3d(${Math.round(e.offset)}px, 0, 0)`,e.initialTransform),Lm(e.clientRect,0,s)):(o.style.transform=Km(`translate3d(0, ${Math.round(e.offset)}px, 0)`,e.initialTransform),Lm(e.clientRect,s,0))}),this._previousSwap.overlaps=Im(u,e,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=r?n.x:n.y}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,n=0,s=0;if(this._parentPositions.positions.forEach((o,r)=>{r!==this._document&&o.clientRect&&!i&&Om(o.clientRect,.05,t,e)&&([n,s]=function(t,e,i,n){const s=rw(e,n),o=aw(e,i);let r=0,a=0;if(s){const e=t.scrollTop;1===s?e>0&&(r=1):t.scrollHeight-e>t.clientHeight&&(r=2)}if(o){const e=t.scrollLeft;1===o?e>0&&(a=1):t.scrollWidth-e>t.clientWidth&&(a=2)}return[r,a]}(r,o.clientRect,t,e),(n||s)&&(i=r))}),!n&&!s){const{width:o,height:r}=this._viewportRuler.getViewportSize(),a={width:o,height:r,top:0,right:o,bottom:r,left:0};n=rw(a,e),s=aw(a,t),i=window}!i||n===this._verticalScrollDirection&&s===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=n,this._horizontalScrollDirection=s,this._scrollNode=i,(n||s)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=Tt(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=Tt(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_cacheItemPositions(){const t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(t=>{const e=t.getVisibleElement();return{drag:t,offset:0,initialTransform:e.style.transform||"",clientRect:jm(e)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_reset(){this._isDragging=!1;const t=Tt(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(t=>{var e;const i=t.getRootElement();if(i){const n=null===(e=this._itemPositions.find(e=>e.drag===t))||void 0===e?void 0:e.initialTransform;i.style.transform=n||""}}),this._siblings.forEach(t=>t._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(t,e,i){const n="horizontal"===this._orientation,s=e[t].clientRect,o=e[t+-1*i];let r=s[n?"width":"height"]*i;if(o){const t=n?"left":"top",e=n?"right":"bottom";-1===i?r-=o.clientRect[t]-s[e]:r+=s[t]-o.clientRect[e]}return r}_getItemOffsetPx(t,e,i){const n="horizontal"===this._orientation;let s=n?e.left-t.left:e.top-t.top;return-1===i&&(s+=n?e.width-t.width:e.height-t.height),s}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,n="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){const s=i[i.length-1].clientRect;return n?t>=s.right:e>=s.bottom}{const s=i[0].clientRect;return n?t<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(t,e,i,n){const s="horizontal"===this._orientation,o=nw(this._itemPositions,({drag:o,clientRect:r},a,c)=>{if(o===t)return c.length<2;if(n){const t=s?n.x:n.y;if(o===this._previousSwap.drag&&this._previousSwap.overlaps&&t===this._previousSwap.delta)return!1}return s?e>=Math.floor(r.left)&&e=Math.floor(r.top)&&in._canReceive(t,e,i))}_canReceive(t,e,i){if(!this._clientRect||!Im(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const n=this._getShadowRoot().elementFromPoint(e,i);if(!n)return!1;const s=Tt(this.element);return n===s||s.contains(n)}_startReceiving(t,e){const i=this._activeSiblings;!i.has(t)&&e.every(t=>this.enterPredicate(t,this)||this._draggables.indexOf(t)>-1)&&(i.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&(this._itemPositions.forEach(({clientRect:t})=>{Lm(t,e.top,e.left)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=xe(Tt(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._activeDraggables.filter(t=>t.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function nw(t,e){for(let i=0;i=i-o&&e<=i+o?1:e>=n-o&&e<=n+o?2:0}function aw(t,e){const{left:i,right:n,width:s}=t,o=.05*s;return e>=i-o&&e<=i+o?1:e>=n-o&&e<=n+o?2:0}const cw=Me({passive:!1,capture:!0});let uw=(()=>{class t{constructor(t,e){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=t=>t.isDragging(),this.pointerMove=new kt.xQ,this.pointerUp=new kt.xQ,this.scroll=new kt.xQ,this._preventDefaultWhileDragging=t=>{this._activeDragInstances.length>0&&t.preventDefault()},this._persistentTouchmoveListener=t=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&t.preventDefault(),this.pointerMove.next(t))},this._document=e}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,cw)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,cw)}startDragging(t,e){if(!(this._activeDragInstances.indexOf(t)>-1)&&(this._activeDragInstances.push(t),1===this._activeDragInstances.length)){const t=e.type.startsWith("touch");this._globalListeners.set(t?"touchend":"mouseup",{handler:t=>this.pointerUp.next(t),options:!0}).set("scroll",{handler:t=>this.scroll.next(t),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:cw}),t||this._globalListeners.set("mousemove",{handler:t=>this.pointerMove.next(t),options:cw}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((t,e)=>{this._document.addEventListener(e,t.handler,t.options)})})}}stopDragging(t){const e=this._activeDragInstances.indexOf(t);e>-1&&(this._activeDragInstances.splice(e,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(t){return this._activeDragInstances.indexOf(t)>-1}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,e)=>{this._document.removeEventListener(e,t.handler,t.options)}),this._globalListeners.clear()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(n.K0))},token:t,providedIn:"root"}),t})();const hw={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let lw=(()=>{class t{constructor(t,e,i,n){this._document=t,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=n}createDrag(t,e=hw){return new Wm(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new iw(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0),s.LFG(s.R0b),s.LFG(Fe),s.LFG(uw))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0),s.LFG(s.R0b),s.LFG(Fe),s.LFG(uw))},token:t,providedIn:"root"}),t})(),dw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[lw],imports:[De]}),t})(),fw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez]]}),t})(),gw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),pw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),mw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[pw,ir],ir]}),t})(),ww=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Sr,ir],ir]}),t})(),yw=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,Hu,Ma,am,Wh,Qg,nh]]}),t})(),bw=(()=>{class t extends mr{format(t,e){return"input"===e?`${t.getDate().toString()}.${(t.getMonth()+1).toString()}.${t.getFullYear()}`:t.toDateString()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const Aw={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 _w=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[{provide:cr,useClass:bw},{provide:ur,useValue:Aw}],imports:[[n.ez,am,wm,xu,Rm,dw,ka,eg,Cm,rh,Qg,Jg,Wh,Eh,Ma,nh,pc,Hu,Fg,Sr,fw,gw,mw,Am,ww,Mr,Lu,yw,qe,ta,Yh]]}),t})();i(6577);let vw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,om,cm,hm,Ma,lm,am,Wh,wm,ta,Qg,pc,Fg,qe,xu,Hu,pm,Am,br,_m,vm,_w,Eh,Eg,Cm,rh,nh,Lu,Sr],om,cm,hm,Ma,lm,am,Wh,wm,ta,Qg,pc,Fg,qe,xu,Hu,pm,Am,br,_m,vm,_w,Eh,Eg,Cm,rh,nh,Lu,Sr]}),t})();const Tw={provide:D.TP,useExisting:(0,s.Gpc)(()=>wg),multi:!0};function kw(t){return new Qp(t,"./assets/i18n/",".json")}function Cw(t){const e={basePath:t.get("api_url")};return new U(e)}const Ew=t=>()=>t.loadConfigs();let zw=(()=>{class t{constructor(t,e){this.customIconService=t,this.translate=e,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(fg),s.LFG(va))},t.\u0275mod=s.oAB({type:t,bootstrap:[Zp]}),t.\u0275inj=s.cJS({providers:[fg,{provide:s.ip1,useFactory:Ew,multi:!0,deps:[nm]},{provide:U,useFactory:Cw,deps:[yt]},wg,Tw,{provide:sm,useClass:yg}],imports:[[L,ka.forRoot({loader:{provide:oa,useFactory:kw,deps:[D.eN]}}),Xo,Wh,Jp,pt,D.JF,tm,vw,Jg,Xg,hg.zr.forRoot()]]}),t})();(0,s.G48)(),j().bootstrapModule(zw).catch(t=>console.error(t))},1511:(t,e,i)=>{"use strict";i.d(e,{mr:()=>A,Ov:()=>W,ez:()=>Y,K0:()=>c,Do:()=>v,V_:()=>l,Ye:()=>T,S$:()=>y,mk:()=>B,sg:()=>K,O5:()=>H,PC:()=>q,RF:()=>O,n9:()=>F,ED:()=>D,tP:()=>N,b0:()=>_,lw:()=>u,EM:()=>J,JF:()=>et,NF:()=>Q,w_:()=>a,bD:()=>Z,q:()=>o,Mx:()=>S,HT:()=>r});var n=i(1572);let s=null;function o(){return s}function r(t){s||(s=t)}class a{}const c=new n.OlP("DocumentToken");let u=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:h,token:t,providedIn:"platform"}),t})();function h(){return(0,n.LFG)(d)}const l=new n.OlP("Location Initialized");let d=(()=>{class t extends u{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return o().getBaseHref(this._doc)}onPopState(t){const e=o().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=o().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}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(t){this.location.pathname=t}pushState(t,e,i){f()?this._history.pushState(t,e,i):this.location.hash=i}replaceState(t,e,i){f()?this._history.replaceState(t,e,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(c))},t.\u0275prov=(0,n.Yz7)({factory:g,token:t,providedIn:"platform"}),t})();function f(){return!!window.history.pushState}function g(){return new d((0,n.LFG)(c))}function p(t,e){if(0==t.length)return e;if(0==e.length)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,2==i?t+e.substring(1):1==i?t+e:t+"/"+e}function m(t){const e=t.match(/#|\?|$/),i=e&&e.index||t.length;return t.slice(0,i-("/"===t[i-1]?1:0))+t.slice(i)}function w(t){return t&&"?"!==t[0]?"?"+t:t}let y=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:b,token:t,providedIn:"root"}),t})();function b(t){const e=(0,n.LFG)(c).location;return new _((0,n.LFG)(u),e&&e.origin||"")}const A=new n.OlP("appBaseHref");let _=(()=>{class t extends y{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return p(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+w(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${e}${i}`:e}pushState(t,e,i,n){const s=this.prepareExternalUrl(i+w(n));this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){const s=this.prepareExternalUrl(i+w(n));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformLocation).historyGo)||void 0===i||i.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(u),n.LFG(A,8))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),v=(()=>{class t extends y{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=p(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,i,n){let s=this.prepareExternalUrl(i+w(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){let s=this.prepareExternalUrl(i+w(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformLocation).historyGo)||void 0===i||i.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(u),n.LFG(A,8))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),T=(()=>{class t{constructor(t,e){this._subject=new n.vpe,this._urlChangeListeners=[],this._platformStrategy=t;const i=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=m(C(i)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+w(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,C(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",i=null){this._platformStrategy.pushState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+w(e)),i)}replaceState(t,e="",i=null){this._platformStrategy.replaceState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+w(e)),i)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformStrategy).historyGo)||void 0===i||i.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(i=>i(t,e))}subscribe(t,e,i){return this._subject.subscribe({next:t,error:e,complete:i})}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(y),n.LFG(u))},t.normalizeQueryParams=w,t.joinWithSlash=p,t.stripTrailingSlash=m,t.\u0275prov=(0,n.Yz7)({factory:k,token:t,providedIn:"root"}),t})();function k(){return new T((0,n.LFG)(y),(0,n.LFG)(u))}function C(t){return t.replace(/\/index.html$/,"")}var E=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({});const z=n.kL8;class R{}let P=(()=>{class t extends R{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(z(e||this.locale)(t)){case E.Zero:return"zero";case E.One:return"one";case E.Two:return"two";case E.Few:return"few";case E.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.soG))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();function S(t,e){e=encodeURIComponent(e);for(const i of t.split(";")){const t=i.indexOf("="),[n,s]=-1==t?[i,""]:[i.slice(0,t),i.slice(t+1)];if(n.trim()===e)return decodeURIComponent(s)}return null}let B=(()=>{class t{constructor(t,e,i,n){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=i,this._renderer=n,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&((0,n.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,n.AaK)(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.ZZ4),n.Y36(n.aQg),n.Y36(n.SBq),n.Y36(n.Qsj))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class M{constructor(t,e,i,n){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=n}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 K=(()=>{class t{constructor(t,e,i){this._viewContainer=t,this._template=e,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const i=this._ngForOf;if(!this._differ&&i)try{this._differ=this._differs.find(i).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${i}' of type '${t=i,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,i,n)=>{if(null==t.previousIndex){const i=this._viewContainer.createEmbeddedView(this._template,new M(null,this._ngForOf,-1,-1),null===n?void 0:n),s=new x(t,i);e.push(s)}else if(null==n)this._viewContainer.remove(null===i?void 0:i);else if(null!==i){const s=this._viewContainer.get(i);this._viewContainer.move(s,n);const o=new x(t,s);e.push(o)}});for(let i=0;i{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(n.ZZ4))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class x{constructor(t,e){this.record=t,this.view=e}}let H=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new j,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){I("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){I("ngIfElse",t),this._elseTemplateRef=t,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(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class j{constructor(){this.$implicit=null,this.ngIf=null}}function I(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${(0,n.AaK)(e)}'.`)}class L{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let O=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,i){this.ngSwitch=i,i._addCase(),this._view=new L(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(O,9))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),D=(()=>{class t{constructor(t,e,i){i._addDefault(new L(t,e))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(O,9))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),q=(()=>{class t{constructor(t,e,i){this._ngEl=t,this._differs=e,this._renderer=i,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[i,n]=t.split(".");null!=(e=null!=e&&n?`${e}${n}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,i,e):this._renderer.removeStyle(this._ngEl.nativeElement,i)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.aQg),n.Y36(n.Qsj))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),N=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[n.TTD]}),t})();class U{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class G{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const $=new G,V=new U;let W=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if((0,n.QGY)(e))return $;if((0,n.F4k)(e))return V;throw Error(`InvalidPipeArgument: '${e}' for pipe '${(0,n.AaK)(t)}'`)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO,16))},t.\u0275pipe=n.Yjl({name:"async",type:t,pure:!1}),t})(),Y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:R,useClass:P}]}),t})();const Z="browser";function Q(t){return t===Z}let J=(()=>{class t{}return t.\u0275prov=(0,n.Yz7)({token:t,providedIn:"root",factory:()=>new X((0,n.LFG)(c),window)}),t})();class X{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const i=t.getElementById(e)||t.getElementsByName(e)[0];if(i)return i;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let n=i.currentNode;for(;n;){const t=n.shadowRoot;if(t){const i=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(i)return i}n=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,n=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(i-s[0],n-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=tt(this.window.history)||tt(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function tt(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class et{}},9063:(t,e,i)=>{"use strict";i.d(e,{TP:()=>S,eN:()=>R,JF:()=>D,WM:()=>d,LE:()=>m,Zn:()=>C});var n=i(1511),s=i(1572),o=i(878),r=i(8318),a=i(436),c=i(3835),u=i(9996);class h{}class l{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const i=t.slice(0,e),n=i.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(s):this.headers.set(n,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const n=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(n,i),this.maybeSetNormalizedName(e,n))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const n=("a"===t.op?this.headers.get(e):void 0)||[];n.push(...i),this.headers.set(e,n);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class f{encodeKey(t){return g(t)}encodeValue(t){return g(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function g(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function p(t){return`${t}`}class m{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new f,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const n=t.indexOf("="),[s,o]=-1==n?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,n)),e.decodeValue(t.slice(n+1))],r=i.get(s)||[];r.push(o),i.set(s,r)}),i}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const n=t[i];Array.isArray(n)?n.forEach(t=>{e.push({param:i,value:t,op:"a"})}):e.push({param:i,value:n,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new m({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(p(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const i=e.indexOf(p(t.value));-1!==i&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class w{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function y(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function b(t){return"undefined"!=typeof Blob&&t instanceof Blob}function A(t){return"undefined"!=typeof FormData&&t instanceof FormData}class _{constructor(t,e,i,n){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||n?(this.body=void 0!==i?i:null,s=n):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new d),this.context||(this.context=new w),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const i=e.indexOf("?");this.urlWithParams=e+(-1===i?"?":ie.set(i,t.setHeaders[i]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((e,i)=>e.set(i,t.setParams[i]),u)),new _(i,n,o,{params:u,headers:c,context:h,reportProgress:a,responseType:s,withCredentials:r})}}var v=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class T{constructor(t,e=200,i="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class k extends T{constructor(t={}){super(t),this.type=v.ResponseHeader}clone(t={}){return new k({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class C extends T{constructor(t={}){super(t),this.type=v.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new C({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class E extends T{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function z(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let R=(()=>{class t{constructor(t){this.handler=t}request(t,e,i={}){let n;if(t instanceof _)n=t;else{let s,o;s=i.headers instanceof d?i.headers:new d(i.headers),i.params&&(o=i.params instanceof m?i.params:new m({fromObject:i.params})),n=new _(t,e,void 0!==i.body?i.body:null,{headers:s,context:i.context,params:o,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=(0,o.of)(n).pipe((0,a.b)(t=>this.handler.handle(t)));if(t instanceof _||"events"===i.observe)return s;const r=s.pipe((0,c.h)(t=>t instanceof C));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return r.pipe((0,u.U)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe((0,u.U)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe((0,u.U)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe((0,u.U)(t=>t.body))}case"response":return r;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new m).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,i={}){return this.request("PATCH",t,z(i,e))}post(t,e,i={}){return this.request("POST",t,z(i,e))}put(t,e,i={}){return this.request("PUT",t,z(i,e))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(h))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class P{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const S=new s.OlP("HTTP_INTERCEPTORS");let B=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const M=/^\)\]\}',?\n/;let K=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new r.y(e=>{const i=this.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((t,e)=>i.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&i.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();i.responseType="json"!==e?e:"text"}const n=t.serializeBody();let s=null;const o=()=>{if(null!==s)return s;const e=1223===i.status?204:i.status,n=i.statusText||"OK",o=new d(i.getAllResponseHeaders()),r=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new k({headers:o,status:e,statusText:n,url:r}),s},r=()=>{let{headers:n,status:s,statusText:r,url:a}=o(),c=null;204!==s&&(c=void 0===i.response?i.responseText:i.response),0===s&&(s=c?200:0);let u=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof c){const t=c;c=c.replace(M,"");try{c=""!==c?JSON.parse(c):null}catch(h){c=t,u&&(u=!1,c={error:h,text:c})}}u?(e.next(new C({body:c,headers:n,status:s,statusText:r,url:a||void 0})),e.complete()):e.error(new E({error:c,headers:n,status:s,statusText:r,url:a||void 0}))},a=t=>{const{url:n}=o(),s=new E({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:n||void 0});e.error(s)};let c=!1;const u=n=>{c||(e.next(o()),c=!0);let s={type:v.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(s.total=n.total),"text"===t.responseType&&i.responseText&&(s.partialText=i.responseText),e.next(s)},h=t=>{let i={type:v.UploadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),e.next(i)};return i.addEventListener("load",r),i.addEventListener("error",a),i.addEventListener("timeout",a),i.addEventListener("abort",a),t.reportProgress&&(i.addEventListener("progress",u),null!==n&&i.upload&&i.upload.addEventListener("progress",h)),i.send(n),e.next({type:v.Sent}),()=>{i.removeEventListener("error",a),i.removeEventListener("abort",a),i.removeEventListener("load",r),i.removeEventListener("timeout",a),t.reportProgress&&(i.removeEventListener("progress",u),null!==n&&i.upload&&i.upload.removeEventListener("progress",h)),i.readyState!==i.DONE&&i.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.JF))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const x=new s.OlP("XSRF_COOKIE_NAME"),H=new s.OlP("XSRF_HEADER_NAME");class j{}let I=(()=>{class t{constructor(t,e,i){this.doc=t,this.platform=e,this.cookieName=i,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,n.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0),s.LFG(s.Lbi),s.LFG(x))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),L=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);const n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(j),s.LFG(H))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),O=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(S,[]);this.chain=t.reduceRight((t,e)=>new P(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(l),s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),F=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:L,useClass:B}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:x,useValue:e.cookieName}:[],e.headerName?{provide:H,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[L,{provide:S,useExisting:L,multi:!0},{provide:j,useClass:I},{provide:x,useValue:"XSRF-TOKEN"},{provide:H,useValue:"X-XSRF-TOKEN"}]}),t})(),D=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[R,{provide:h,useClass:O},K,{provide:l,useExisting:K}],imports:[[F.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},1572:(t,e,i)=>{"use strict";i.d(e,{deG:()=>ai,tb:()=>tu,AFp:()=>Yc,ip1:()=>Vc,CZH:()=>Wc,hGG:()=>Vu,z2F:()=>Iu,sBO:()=>qa,Sil:()=>lu,_Vd:()=>da,EJc:()=>nu,SBq:()=>ma,qLn:()=>Rn,vpe:()=>zc,gxx:()=>wo,tBr:()=>Ri,XFs:()=>P,OlP:()=>ri,zs3:()=>Mo,ZZ4:()=>Ha,aQg:()=>Ia,soG:()=>iu,YKP:()=>Ja,v3s:()=>Ou,h0i:()=>Qa,PXZ:()=>Mu,R0b:()=>gu,FiY:()=>Pi,Lbi:()=>Xc,g9A:()=>Jc,n_E:()=>Pc,Qsj:()=>ba,FYo:()=>ya,JOm:()=>Mn,Tiy:()=>_a,q3G:()=>bn,tp0:()=>Si,EAV:()=>qu,Rgc:()=>Va,dDg:()=>_u,DyG:()=>ci,GfV:()=>va,s_b:()=>tc,ifc:()=>H,eFA:()=>Ku,G48:()=>Su,Gpc:()=>f,f3M:()=>Ci,X6Q:()=>Pu,_c5:()=>Gu,VLi:()=>ku,c2e:()=>eu,zSh:()=>bo,wAp:()=>Jr,vHH:()=>m,EiD:()=>wn,mCW:()=>Xi,qzn:()=>qi,JVY:()=>Ui,pB0:()=>Wi,eBb:()=>$i,L6k:()=>Gi,LAX:()=>Vi,cg1:()=>Yr,Tjo:()=>Uu,kL8:()=>Zr,yhl:()=>Ni,dqk:()=>F,sIi:()=>qo,CqO:()=>ur,QGY:()=>ar,F4k:()=>cr,RDi:()=>Ct,AaK:()=>h,z3N:()=>Di,qOj:()=>xo,TTD:()=>yt,_Bn:()=>ua,xp6:()=>bs,uIk:()=>Vo,Gre:()=>Nr,ekj:()=>Rr,Suo:()=>Dc,Xpm:()=>Q,lG2:()=>st,Yz7:()=>A,cJS:()=>_,oAB:()=>et,Yjl:()=>ot,Y36:()=>Qo,_UZ:()=>ir,GkF:()=>or,BQk:()=>sr,ynx:()=>nr,qZA:()=>er,TgZ:()=>tr,EpF:()=>rr,n5z:()=>ei,Ikx:()=>Ur,LFG:()=>ki,$8M:()=>ni,NdJ:()=>hr,CRH:()=>qc,kcU:()=>be,O4$:()=>ye,oxw:()=>pr,ALo:()=>Ac,lcZ:()=>_c,xi3:()=>vc,Dn7:()=>Tc,Hsn:()=>yr,F$t:()=>wr,Q6J:()=>Jo,s9C:()=>br,VKq:()=>pc,WLB:()=>mc,iGM:()=>Oc,MAs:()=>Zo,pYS:()=>Sn,CHM:()=>Ut,oJD:()=>An,LSH:()=>_n,kYT:()=>it,Udp:()=>zr,WFA:()=>lr,d8E:()=>Gr,YNc:()=>Yo,W1O:()=>$c,_uU:()=>Or,Oqu:()=>Fr,hij:()=>Dr,AsE:()=>qr,Gf:()=>Fc});var n=i(5959),s=i(7570),o=i(8318),r=i(1906),a=i(1055);function c(t){for(let e in t)if(t[e]===c)return e;throw Error("Could not find renamed property on target object.")}function u(t,e){for(const i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function h(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(h).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const i=e.indexOf("\n");return-1===i?e:e.substring(0,i)}function l(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const d=c({__forward_ref__:c});function f(t){return t.__forward_ref__=f,t.toString=function(){return h(this())},t}function g(t){return p(t)?t():t}function p(t){return"function"==typeof t&&t.hasOwnProperty(d)&&t.__forward_ref__===f}class m extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function w(t){return"string"==typeof t?t:null==t?"":String(t)}function y(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():w(t)}function b(t,e){const i=e?` in ${e}`:"";throw new m("201",`No provider for ${y(t)} found${i}`)}function A(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function _(t){return{providers:t.providers||[],imports:t.imports||[]}}function v(t){return T(t,C)||T(t,z)}function T(t,e){return t.hasOwnProperty(e)?t[e]:null}function k(t){return t&&(t.hasOwnProperty(E)||t.hasOwnProperty(R))?t[E]:null}const C=c({"\u0275prov":c}),E=c({"\u0275inj":c}),z=c({ngInjectableDef:c}),R=c({ngInjectorDef:c});var P=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let S;function B(t){const e=S;return S=t,e}function M(t,e,i){const n=v(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:i&P.Optional?null:void 0!==e?e:void b(h(t),"Injector")}function K(t){return{toString:t}.toString()}var x=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),H=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const j="undefined"!=typeof globalThis&&globalThis,I="undefined"!=typeof window&&window,L="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,O="undefined"!=typeof global&&global,F=j||O||I||L,D={},q=[],N=c({"\u0275cmp":c}),U=c({"\u0275dir":c}),G=c({"\u0275pipe":c}),$=c({"\u0275mod":c}),V=c({"\u0275loc":c}),W=c({"\u0275fac":c}),Y=c({__NG_ELEMENT_ID__:c});let Z=0;function Q(t){return K(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===x.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||q,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||H.Emulated,id:"c",styles:t.styles||q,_:null,setInput:null,schemas:t.schemas||null,tView:null},n=t.directives,s=t.features,o=t.pipes;return i.id+=Z++,i.inputs=nt(t.inputs,e),i.outputs=nt(t.outputs),s&&s.forEach(t=>t(i)),i.directiveDefs=n?()=>("function"==typeof n?n():n).map(J):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(X):null,i})}function J(t){return rt(t)||function(t){return t[U]||null}(t)}function X(t){return function(t){return t[G]||null}(t)}const tt={};function et(t){return K(()=>{const e={type:t.type,bootstrap:t.bootstrap||q,declarations:t.declarations||q,imports:t.imports||q,exports:t.exports||q,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(tt[t.id]=t.type),e})}function it(t,e){return K(()=>{const i=at(t,!0);i.declarations=e.declarations||q,i.imports=e.imports||q,i.exports=e.exports||q})}function nt(t,e){if(null==t)return D;const i={};for(const n in t)if(t.hasOwnProperty(n)){let s=t[n],o=s;Array.isArray(s)&&(o=s[1],s=s[0]),i[s]=n,e&&(e[s]=o)}return i}const st=Q;function ot(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function rt(t){return t[N]||null}function at(t,e){const i=t[$]||null;if(!i&&!0===e)throw new Error(`Type ${h(t)} does not have '\u0275mod' property.`);return i}const ct=20,ut=10;function ht(t){return Array.isArray(t)&&"object"==typeof t[1]}function lt(t){return Array.isArray(t)&&!0===t[1]}function dt(t){return 0!=(8&t.flags)}function ft(t){return 2==(2&t.flags)}function gt(t){return 1==(1&t.flags)}function pt(t){return null!==t.template}function mt(t,e){return t.hasOwnProperty(W)?t[W]:null}class wt{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function yt(){return bt}function bt(t){return t.type.prototype.ngOnChanges&&(t.setInput=_t),At}function At(){const t=vt(this),e=null==t?void 0:t.current;if(e){const i=t.previous;if(i===D)t.previous=e;else for(let t in e)i[t]=e[t];t.current=null,this.ngOnChanges(e)}}function _t(t,e,i,n){const s=vt(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:D,current:null}),o=s.current||(s.current={}),r=s.previous,a=this.declaredInputs[i],c=r[a];o[a]=new wt(c&&c.currentValue,e,r===D),t[n]=e}function vt(t){return t.__ngSimpleChanges__||null}yt.ngInherit=!0;const Tt="http://www.w3.org/2000/svg";let kt;function Ct(t){kt=t}function Et(){return void 0!==kt?kt:"undefined"!=typeof document?document:void 0}function zt(t){return!!t.listen}const Rt={createRenderer:(t,e)=>Et()};function Pt(t){for(;Array.isArray(t);)t=t[0];return t}function St(t,e){return Pt(e[t])}function Bt(t,e){return Pt(e[t.index])}function Mt(t,e){return t.data[e]}function Kt(t,e){return t[e]}function xt(t,e){const i=e[t];return ht(i)?i:i[0]}function Ht(t){return 4==(4&t[2])}function jt(t){return 128==(128&t[2])}function It(t,e){return null==e?null:t[e]}function Lt(t){t[18]=0}function Ot(t,e){t[5]+=e;let i=t,n=t[3];for(;null!==n&&(1===e&&1===i[5]||-1===e&&0===i[5]);)n[5]+=e,i=n,n=n[3]}const Ft={lFrame:le(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Dt(){return Ft.bindingsEnabled}function qt(){return Ft.lFrame.lView}function Nt(){return Ft.lFrame.tView}function Ut(t){return Ft.lFrame.contextLView=t,t[8]}function Gt(){let t=$t();for(;null!==t&&64===t.type;)t=t.parent;return t}function $t(){return Ft.lFrame.currentTNode}function Vt(t,e){const i=Ft.lFrame;i.currentTNode=t,i.isParent=e}function Wt(){return Ft.lFrame.isParent}function Yt(){Ft.lFrame.isParent=!1}function Zt(){return Ft.isInCheckNoChangesMode}function Qt(t){Ft.isInCheckNoChangesMode=t}function Jt(){const t=Ft.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Xt(){return Ft.lFrame.bindingIndex}function te(){return Ft.lFrame.bindingIndex++}function ee(t){const e=Ft.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function ie(t,e){const i=Ft.lFrame;i.bindingIndex=i.bindingRootIndex=t,ne(e)}function ne(t){Ft.lFrame.currentDirectiveIndex=t}function se(t){const e=Ft.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function oe(){return Ft.lFrame.currentQueryIndex}function re(t){Ft.lFrame.currentQueryIndex=t}function ae(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function ce(t,e,i){if(i&P.SkipSelf){let n=e,s=t;for(;n=n.parent,!(null!==n||i&P.Host||(n=ae(s),null===n)||(s=s[15],10&n.type)););if(null===n)return!1;e=n,t=s}const n=Ft.lFrame=he();return n.currentTNode=e,n.lView=t,!0}function ue(t){const e=he(),i=t[1];Ft.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function he(){const t=Ft.lFrame,e=null===t?null:t.child;return null===e?le(t):e}function le(t){const e={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:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function de(){const t=Ft.lFrame;return Ft.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const fe=de;function ge(){const t=de();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function pe(){return Ft.lFrame.selectedIndex}function me(t){Ft.lFrame.selectedIndex=t}function we(){const t=Ft.lFrame;return Mt(t.tView,t.selectedIndex)}function ye(){Ft.lFrame.currentNamespace=Tt}function be(){Ft.lFrame.currentNamespace=null}function Ae(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[a]<0&&(t[18]+=65536),(r>11>16&&(3&t[2])===e){t[2]+=2048;try{o.call(r)}finally{}}}else try{o.call(r)}finally{}}const Ee=-1;class ze{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Re(t,e,i){const n=zt(t);let s=0;for(;se){r=o-1;break}}}for(;o>16,n=e;for(;i>0;)n=n[15],i--;return n}let je=!0;function Ie(t){const e=je;return je=t,e}let Le=0;function Oe(t,e){const i=De(t,e);if(-1!==i)return i;const n=e[1];n.firstCreatePass&&(t.injectorIndex=e.length,Fe(n.data,t),Fe(e,null),Fe(n.blueprint,null));const s=qe(t,e),o=t.injectorIndex;if(Ke(s)){const t=xe(s),i=He(s,e),n=i[1].data;for(let s=0;s<8;s++)e[o+s]=i[t+s]|n[t+s]}return e[o+8]=s,o}function Fe(t,e){t.push(0,0,0,0,0,0,0,0,e)}function De(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function qe(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let i=0,n=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(n=2===e?t.declTNode:1===e?s[6]:null,null===n)return Ee;if(i++,s=s[15],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return Ee}function Ne(t,e,i){!function(t,e,i){let n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty(Y)&&(n=i[Y]),null==n&&(n=i[Y]=Le++);const s=255&n;e.data[t+(s>>5)]|=1<=0?255&e:We:e}(i);if("function"==typeof o){if(!ce(e,t,n))return n&P.Host?Ue(s,i,n):Ge(e,i,n,s);try{const t=o(n);if(null!=t||n&P.Optional)return t;b(i)}finally{fe()}}else if("number"==typeof o){let s=null,r=De(t,e),a=Ee,c=n&P.Host?e[16][6]:null;for((-1===r||n&P.SkipSelf)&&(a=-1===r?qe(t,e):e[r+8],a!==Ee&&Xe(n,!1)?(s=e[1],r=xe(a),e=He(a,e)):r=-1);-1!==r;){const t=e[1];if(Je(o,r,t.data)){const t=Ye(r,e,i,s,n,c);if(t!==Ve)return t}a=e[r+8],a!==Ee&&Xe(n,e[1].data[r+8]===c)&&Je(o,r,e)?(s=t,r=xe(a),e=He(a,e)):r=-1}}}return Ge(e,i,n,s)}const Ve={};function We(){return new ti(Gt(),qt())}function Ye(t,e,i,n,s,o){const r=e[1],a=r.data[t+8],c=Ze(a,r,i,null==n?ft(a)&&je:n!=r&&0!=(3&a.type),s&P.Host&&o===a);return null!==c?Qe(e,r,c,a):Ve}function Ze(t,e,i,n,s){const o=t.providerIndexes,r=e.data,a=1048575&o,c=t.directiveStart,u=o>>20,h=s?a+u:t.directiveEnd;for(let l=n?a:a+u;l=c&&t.type===i)return l}if(s){const t=r[c];if(t&&pt(t)&&t.type===i)return c}return null}function Qe(t,e,i,n){let s=t[i];const o=e.data;if(s instanceof ze){const r=s;r.resolving&&function(t,e){throw new m("200",`Circular dependency in DI detected for ${t}`)}(y(o[i]));const a=Ie(r.canSeeViewProviders);r.resolving=!0;const c=r.injectImpl?B(r.injectImpl):null;ce(t,n,P.Default);try{s=t[i]=r.factory(void 0,o,t,n),e.firstCreatePass&&i>=n.directiveStart&&function(t,e,i){const{ngOnChanges:n,ngOnInit:s,ngDoCheck:o}=e.type.prototype;if(n){const n=bt(e);(i.preOrderHooks||(i.preOrderHooks=[])).push(t,n),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,n)}s&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-t,s),o&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,o),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,o))}(i,o[i],e)}finally{null!==c&&B(c),Ie(a),r.resolving=!1,fe()}}return s}function Je(t,e,i){return!!(i[e+(t>>5)]&1<{const e=t.prototype.constructor,i=e[W]||ii(e),n=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==n;){const t=s[W]||ii(s);if(t&&t!==i)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function ii(t){return p(t)?()=>{const e=ii(g(t));return e&&e()}:mt(t)}function ni(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const i=t.attrs;if(i){const t=i.length;let n=0;for(;n{const n=function(t){return function(...e){if(t){const i=t(...e);for(const t in i)this[t]=i[t]}}}(e);function s(...t){if(this instanceof s)return n.apply(this,t),this;const e=new s(...t);return i.annotation=e,i;function i(t,i,n){const s=t.hasOwnProperty(si)?t[si]:Object.defineProperty(t,si,{value:[]})[si];for(;s.length<=n;)s.push(null);return(s[n]=s[n]||[]).push(e),t}}return i&&(s.prototype=Object.create(i.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class ri{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=A({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const ai=new ri("AnalyzeForEntryComponents"),ci=Function;function ui(t,e){void 0===e&&(e=t);for(let i=0;iArray.isArray(t)?hi(t,e):e(t))}function li(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function di(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function fi(t,e){const i=[];for(let n=0;n=0?t[1|n]=i:(n=~n,function(t,e,i,n){let s=t.length;if(s==e)t.push(i,n);else if(1===s)t.push(n,t[0]),t[0]=i;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=i,t[e+1]=n}}(t,n,e,i)),n}function pi(t,e){const i=mi(t,e);if(i>=0)return t[1|i]}function mi(t,e){return function(t,e,i){let n=0,s=t.length>>1;for(;s!==n;){const i=n+(s-n>>1),o=t[i<<1];if(e===o)return i<<1;o>e?s=i:n=i+1}return~(s<<1)}(t,e)}const wi={},yi=/\n/gm,bi="__source",Ai=c({provide:String,useValue:c});let _i;function vi(t){const e=_i;return _i=t,e}function Ti(t,e=P.Default){if(void 0===_i)throw new Error("inject() must be called from an injection context");return null===_i?M(t,void 0,e):_i.get(t,e&P.Optional?null:void 0,e)}function ki(t,e=P.Default){return(S||Ti)(g(t),e)}const Ci=ki;function Ei(t){const e=[];for(let i=0;i({token:t})),-1),Pi=zi(oi("Optional"),8),Si=zi(oi("SkipSelf"),4);let Bi,Mi;function Ki(t){var e;return(null===(e=function(){if(void 0===Bi&&(Bi=null,F.trustedTypes))try{Bi=F.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Bi}())||void 0===e?void 0:e.createHTML(t))||t}function xi(t){var e;return(null===(e=function(){if(void 0===Mi&&(Mi=null,F.trustedTypes))try{Mi=F.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Mi}())||void 0===e?void 0:e.createHTML(t))||t}class Hi{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class ji extends Hi{getTypeName(){return"HTML"}}class Ii extends Hi{getTypeName(){return"Style"}}class Li extends Hi{getTypeName(){return"Script"}}class Oi extends Hi{getTypeName(){return"URL"}}class Fi extends Hi{getTypeName(){return"ResourceURL"}}function Di(t){return t instanceof Hi?t.changingThisBreaksApplicationSecurity:t}function qi(t,e){const i=Ni(t);if(null!=i&&i!==e){if("ResourceURL"===i&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${i} (see https://g.co/ng/security#xss)`)}return i===e}function Ni(t){return t instanceof Hi&&t.getTypeName()||null}function Ui(t){return new ji(t)}function Gi(t){return new Ii(t)}function $i(t){return new Li(t)}function Vi(t){return new Oi(t)}function Wi(t){return new Fi(t)}class Yi{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Ki(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class Zi{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Ki(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Ki(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let n=e.length-1;0Xi(t.trim())).join(", ")),this.buf.push(" ",e,'="',pn(r),'"')}var n;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();an.hasOwnProperty(e)&&!nn.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(pn(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const fn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,gn=/([^\#-~ |!])/g;function pn(t){return t.replace(/&/g,"&").replace(fn,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(gn,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let mn;function wn(t,e){let i=null;try{mn=mn||function(t){const e=new Zi(t);return function(){try{return!!(new window.DOMParser).parseFromString(Ki(""),"text/html")}catch(t){return!1}}()?new Yi(e):e}(t);let n=e?String(e):"";i=mn.getInertBodyElement(n);let s=5,o=n;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,n=o,o=i.innerHTML,i=mn.getInertBodyElement(n)}while(n!==o);return Ki((new dn).sanitizeChildren(yn(i)||i))}finally{if(i){const t=yn(i)||i;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function yn(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var bn=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function An(t){const e=vn();return e?xi(e.sanitize(bn.HTML,t)||""):qi(t,"HTML")?xi(Di(t)):wn(Et(),w(t))}function _n(t){const e=vn();return e?e.sanitize(bn.URL,t)||"":qi(t,"URL")?Di(t):Xi(w(t))}function vn(){const t=qt();return t&&t[12]}function Tn(t,e){t.__ngContext__=e}function kn(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Cn(t){return t.ngDebugContext}function En(t){return t.ngOriginalError}function zn(t,...e){t.error(...e)}class Rn{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=this._findContext(t),n=function(t){return t.ngErrorLogger||zn}(t);n(this._console,"ERROR",t),e&&n(this._console,"ORIGINAL ERROR",e),i&&n(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?Cn(t)?Cn(t):this._findContext(En(t)):null}_findOriginalError(t){let e=En(t);for(;e&&En(e);)e=En(e);return e}}const Pn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(F))();function Sn(t){return t.ownerDocument.body}function Bn(t){return t instanceof Function?t():t}var Mn=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function Kn(t,e){return(void 0)(t,e)}function xn(t){const e=t[3];return lt(e)?e[3]:e}function Hn(t){return In(t[13])}function jn(t){return In(t[4])}function In(t){for(;null!==t&&!lt(t);)t=t[4];return t}function Ln(t,e,i,n,s){if(null!=n){let o,r=!1;lt(n)?o=n:ht(n)&&(r=!0,n=n[0]);const a=Pt(n);0===t&&null!==i?null==s?$n(e,i,a):Gn(e,i,a,s||null,!0):1===t&&null!==i?Gn(e,i,a,s||null,!0):2===t?function(t,e,i){const n=Wn(t,e);n&&function(t,e,i,n){zt(t)?t.removeChild(e,i,n):e.removeChild(i)}(t,n,e,i)}(e,a,r):3===t&&e.destroyNode(a),null!=o&&function(t,e,i,n,s){const o=i[7];o!==Pt(i)&&Ln(e,t,n,o,s);for(let r=ut;r0&&(t[i-1][4]=n[4]);const r=di(t,ut+e);is(n[1],s=n,s[11],2,null,null),s[0]=null,s[6]=null;const a=r[19];null!==a&&a.detachView(r[1]),n[3]=null,n[4]=null,n[2]&=-129}var s;return n}function qn(t,e){if(!(256&e[2])){const i=e[11];zt(i)&&i.destroyNode&&is(t,e,i,3,null,null),function(t){let e=t[13];if(!e)return Nn(t[1],t);for(;e;){let i=null;if(ht(e))i=e[13];else{const t=e[10];t&&(i=t)}if(!i){for(;e&&!e[4]&&e!==t;)ht(e)&&Nn(e[1],e),e=e[3];null===e&&(e=t),ht(e)&&Nn(e[1],e),i=e&&e[4]}e=i}}(e)}}function Nn(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let i;if(null!=t&&null!=(i=t.destroyHooks))for(let n=0;n=0?n[s=c]():n[s=-c].unsubscribe(),o+=2}else{const t=n[s=i[o+1]];i[o].call(t)}if(null!==n){for(let t=s+1;to?"":s[h+1].toLowerCase();const e=8&n?t:null;if(e&&-1!==rs(e,u,0)||2&n&&u!==t){if(ds(n))return!1;r=!0}}}}else{if(!r&&!ds(n)&&!ds(c))return!1;if(r&&ds(c))continue;r=!1,n=c|1&n}}return ds(n)||r}function ds(t){return 0==(1&t)}function fs(t,e,i,n){if(null===e)return-1;let s=0;if(n||!i){let i=!1;for(;s-1)for(i++;i0?'="'+e+'"':"")+"]"}else 8&n?s+="."+r:4&n&&(s+=" "+r);else""===s||ds(r)||(e+=ms(o,s),s=""),n=r,o=o||!ds(n);i++}return""!==s&&(e+=ms(o,s)),e}const ys={};function bs(t){As(Nt(),qt(),pe()+t,Zt())}function As(t,e,i,n){if(!n)if(3==(3&e[2])){const n=t.preOrderCheckHooks;null!==n&&_e(e,n,i)}else{const n=t.preOrderHooks;null!==n&&ve(e,n,0,i)}me(i)}function _s(t,e){return t<<17|e<<2}function vs(t){return t>>17&32767}function Ts(t){return 2|t}function ks(t){return(131068&t)>>2}function Cs(t,e){return-131069&t|e<<2}function Es(t){return 1|t}function zs(t,e){const i=t.contentQueries;if(null!==i)for(let n=0;nct&&As(t,e,ct,Zt()),i(n,s)}finally{me(o)}}function Hs(t,e,i){if(dt(e)){const n=e.directiveEnd;for(let s=e.directiveStart;s0;){const i=t[--e];if("number"==typeof i&&i<0)return i}return 0})(i)!=o&&i.push(o),i.push(n,s,r)}}function Gs(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function $s(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Vs(t,e,i){if(i){if(e.exportAs)for(let n=0;n0&&eo(i)}}function eo(t){for(let i=Hn(t);null!==i;i=jn(i))for(let t=ut;t0&&eo(e)}const e=t[1].components;if(null!==e)for(let i=0;i0&&eo(n)}}function io(t,e){const i=xt(e,t),n=i[1];!function(t,e){for(let i=e.length;iPromise.resolve(null))();function uo(t){return t[7]||(t[7]=[])}function ho(t){return t.cleanup||(t.cleanup=[])}function lo(t,e,i){return(null===t||pt(t))&&(i=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(i[e.index])),i[11]}function fo(t,e){const i=t[9],n=i?i.get(Rn,null):null;n&&n.handleError(e)}function go(t,e,i,n,s){for(let o=0;othis.processProvider(i,t,e)),hi([t],t=>this.processInjectorType(t,[],s)),this.records.set(wo,Ro(void 0,this));const o=this.records.get(bo);this.scope=null!=o?o.value:null,this.source=n||("object"==typeof t?null:h(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=wi,i=P.Default){this.assertNotDestroyed();const n=vi(this);try{if(!(i&P.SkipSelf)){let e=this.records.get(t);if(void 0===e){const i=("function"==typeof(s=t)||"object"==typeof s&&s instanceof ri)&&v(t);e=i&&this.injectableDefInScope(i)?Ro(Eo(t),Ao):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(i&P.Self?To():this.parent).get(t,e=i&P.Optional&&e===wi?null:e)}catch(o){if("NullInjectorError"===o.name){if((o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(h(t)),n)throw o;return function(t,e,i,n){const s=t.ngTempTokenPath;throw e[bi]&&s.unshift(e[bi]),t.message=function(t,e,i,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=h(e);if(Array.isArray(e))s=e.map(h).join(" -> ");else if("object"==typeof e){let t=[];for(let i in e)if(e.hasOwnProperty(i)){let n=e[i];t.push(i+":"+("string"==typeof n?JSON.stringify(n):h(n)))}s=`{${t.join(", ")}}`}return`${i}${n?"("+n+")":""}[${s}]: ${t.replace(yi,"\n ")}`}("\n"+t.message,s,i,n),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(o,t,"R3InjectorError",this.source)}throw o}finally{vi(n)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,i)=>t.push(h(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,i){if(!(t=g(t)))return!1;let n=k(t);const s=null==n&&t.ngModule||void 0,o=void 0===s?t:s,r=-1!==i.indexOf(o);if(void 0!==s&&(n=k(s)),null==n)return!1;if(null!=n.imports&&!r){let t;i.push(o);try{hi(n.imports,n=>{this.processInjectorType(n,e,i)&&(void 0===t&&(t=[]),t.push(n))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,i,n||q))}}this.injectorDefTypes.add(o);const a=mt(o)||(()=>new o);this.records.set(o,Ro(a,Ao));const c=n.providers;if(null!=c&&!r){const e=t;hi(c,t=>this.processProvider(t,e,c))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,i){let n=So(t=g(t))?t:g(t&&t.provide);const s=function(t,e,i){return Po(t)?Ro(void 0,t.useValue):Ro(zo(t),Ao)}(t);if(So(t)||!0!==t.multi)this.records.get(n);else{let e=this.records.get(n);e||(e=Ro(void 0,Ao,!0),e.factory=()=>Ei(e.multi),this.records.set(n,e)),n=t,e.multi.push(t)}this.records.set(n,s)}hydrate(t,e){var i;return e.value===Ao&&(e.value=_o,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(i=e.value)&&"object"==typeof i&&"function"==typeof i.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=g(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Eo(t){const e=v(t),i=null!==e?e.factory:mt(t);if(null!==i)return i;if(t instanceof ri)throw new Error(`Token ${h(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const i=fi(e,"?");throw new Error(`Can't resolve all parameters for ${h(t)}: (${i.join(", ")}).`)}const i=function(t){const e=t&&(t[C]||t[z]);if(e){const i=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${i}" 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 "${i}" class.`),e}return null}(t);return null!==i?()=>i.factory(t):()=>new t}(t);throw new Error("unreachable")}function zo(t,e,i){let n;if(So(t)){const e=g(t);return mt(e)||Eo(e)}if(Po(t))n=()=>g(t.useValue);else if((s=t)&&s.useFactory)n=()=>t.useFactory(...Ei(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))n=()=>ki(g(t.useExisting));else{const e=g(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return mt(e)||Eo(e);n=()=>new e(...Ei(t.deps))}var s;return n}function Ro(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function Po(t){return null!==t&&"object"==typeof t&&Ai in t}function So(t){return"function"==typeof t}const Bo=function(t,e,i){return function(t,e=null,i=null,n){const s=ko(t,e,i,n);return s._resolveInjectorDefTypes(),s}({name:i},e,t,i)};let Mo=(()=>{class t{static create(t,e){return Array.isArray(t)?Bo(t,e,""):Bo(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=wi,t.NULL=new yo,t.\u0275prov=A({token:t,providedIn:"any",factory:()=>ki(wo)}),t.__NG_ELEMENT_ID__=-1,t})();function Ko(t,e){Ae(kn(t)[1],Gt())}function xo(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,i=!0;const n=[t];for(;e;){let s;if(pt(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(i){n.push(s);const e=t;e.inputs=Ho(t.inputs),e.declaredInputs=Ho(t.declaredInputs),e.outputs=Ho(t.outputs);const i=s.hostBindings;i&&Lo(t,i);const o=s.viewQuery,r=s.contentQueries;if(o&&jo(t,o),r&&Io(t,r),u(t.inputs,s.inputs),u(t.declaredInputs,s.declaredInputs),u(t.outputs,s.outputs),pt(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let n=0;n=0;n--){const s=t[n];s.hostVars=e+=s.hostVars,s.hostAttrs=Be(s.hostAttrs,i=Be(i,s.hostAttrs))}}(n)}function Ho(t){return t===D?{}:t===q?[]:t}function jo(t,e){const i=t.viewQuery;t.viewQuery=i?(t,n)=>{e(t,n),i(t,n)}:e}function Io(t,e){const i=t.contentQueries;t.contentQueries=i?(t,n,s)=>{e(t,n,s),i(t,n,s)}:e}function Lo(t,e){const i=t.hostBindings;t.hostBindings=i?(t,n)=>{e(t,n),i(t,n)}:e}let Oo=null;function Fo(){if(!Oo){const t=F.Symbol;if(t&&t.iterator)Oo=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Pt(t[n.index])):n.index;if(zt(i)){let r=null;if(!a&&c&&(r=function(t,e,i,n){const s=t.cleanup;if(null!=s)for(let o=0;oi?t[i]:null}"string"==typeof t&&(o+=2)}return null}(t,e,s,n.index)),null!==r)(r.__ngLastListenerFn__||r).__ngNextListenerFn__=o,r.__ngLastListenerFn__=o,l=!1;else{o=gr(n,e,0,o,!1);const t=i.listen(f,s,o);h.push(o,t),u&&u.push(s,p,g,g+1)}}else o=gr(n,e,0,o,!0),f.addEventListener(s,o,r),h.push(o),u&&u.push(s,p,g,r)}else o=gr(n,e,0,o,!1);const d=n.outputs;let f;if(l&&null!==d&&(f=d[s])){const t=f.length;if(t)for(let i=0;i0;)e=e[15],t--;return e}(t,Ft.lFrame.contextLView))[8]}(t)}function mr(t,e){let i=null;const n=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s=0}const Tr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function kr(t){return t.substring(Tr.key,Tr.keyEnd)}function Cr(t,e){const i=Tr.textEnd;return i===e?-1:(e=Tr.keyEnd=function(t,e,i){for(;e32;)e++;return e}(t,Tr.key=e,i),Er(t,e,i))}function Er(t,e,i){for(;e=0;i=Cr(e,i))gi(t,kr(e),!0)}function Sr(t,e,i,n){const s=qt(),o=Nt(),r=ee(2);o.firstUpdatePass&&Mr(o,t,r,n),e!==ys&&Go(s,r,e)&&Hr(o,o.data[pe()],s,s[11],t,s[r+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=h(Di(t)))),t}(e,i),n,r)}function Br(t,e){return e>=t.expandoStartIndex}function Mr(t,e,i,n){const s=t.data;if(null===s[i+1]){const o=s[pe()],r=Br(t,i);Lr(o,n)&&null===e&&!r&&(e=!1),e=function(t,e,i,n){const s=se(t);let o=n?e.residualClasses:e.residualStyles;if(null===s)0===(n?e.classBindings:e.styleBindings)&&(i=xr(i=Kr(null,t,e,i,n),e.attrs,n),o=null);else{const r=e.directiveStylingLast;if(-1===r||t[r]!==s)if(i=Kr(s,t,e,i,n),null===o){let i=function(t,e,i){const n=i?e.classBindings:e.styleBindings;if(0!==ks(n))return t[vs(n)]}(t,e,n);void 0!==i&&Array.isArray(i)&&(i=Kr(null,t,e,i[1],n),i=xr(i,e.attrs,n),function(t,e,i,n){t[vs(i?e.classBindings:e.styleBindings)]=n}(t,e,n,i))}else o=function(t,e,i){let n;const s=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0)&&(h=!0)}else u=i;if(s)if(0!==c){const e=vs(t[a+1]);t[n+1]=_s(e,a),0!==e&&(t[e+1]=Cs(t[e+1],n)),t[a+1]=131071&t[a+1]|n<<17}else t[n+1]=_s(a,0),0!==a&&(t[a+1]=Cs(t[a+1],n)),a=n;else t[n+1]=_s(c,0),0===a?a=n:t[c+1]=Cs(t[c+1],n),c=n;h&&(t[n+1]=Ts(t[n+1])),_r(t,u,n,!0),_r(t,u,n,!1),function(t,e,i,n,s){const o=s?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&mi(o,e)>=0&&(i[n+1]=Es(i[n+1]))}(e,u,t,n,o),r=_s(a,c),o?e.classBindings=r:e.styleBindings=r}(s,o,e,i,r,n)}}function Kr(t,e,i,n,s){let o=null;const r=i.directiveEnd;let a=i.directiveStylingLast;for(-1===a?a=i.directiveStart:a++;a0;){const e=t[s],o=Array.isArray(e),c=o?e[1]:e,u=null===c;let h=i[s+1];h===ys&&(h=u?q:void 0);let l=u?pi(h,n):c===n?h:void 0;if(o&&!Ir(l)&&(l=pi(e,n)),Ir(l)&&(a=l,r))return a;const d=t[s+1];s=r?vs(d):ks(d)}if(null!==e){let t=o?e.residualClasses:e.residualStyles;null!=t&&(a=pi(t,n))}return a}function Ir(t){return void 0!==t}function Lr(t,e){return 0!=(t.flags&(e?16:32))}function Or(t,e=""){const i=qt(),n=Nt(),s=t+ct,o=n.firstCreatePass?Ps(n,s,1,e,null):n.data[s],r=i[s]=function(t,e){return zt(t)?t.createText(e):t.createTextNode(e)}(i[11],e);Qn(n,i,r,o),Vt(o,!1)}function Fr(t){return Dr("",t,""),Fr}function Dr(t,e,i){const n=qt(),s=Wo(n,t,e,i);return s!==ys&&po(n,pe(),s),Dr}function qr(t,e,i,n,s){const o=qt(),r=function(t,e,i,n,s,o){const r=$o(t,Xt(),i,s);return ee(2),r?e+w(i)+n+w(s)+o:ys}(o,t,e,i,n,s);return r!==ys&&po(o,pe(),r),qr}function Nr(t,e,i){!function(t,e,i,n){const s=Nt(),o=ee(2);s.firstUpdatePass&&Mr(s,null,o,n);const r=qt();if(i!==ys&&Go(r,o,i)){const a=s.data[pe()];if(Lr(a,n)&&!Br(s,o)){let t=a.classesWithoutHost;null!==t&&(i=l(t,i||"")),Xo(s,a,r,i,n)}else!function(t,e,i,n,s,o,r,a){s===ys&&(s=q);let c=0,u=0,h=0 null != ${e} <=Actual]`)}(i,e),"string"==typeof t&&(ta=t.toLowerCase().replace(/_/g,"-"))}function ia(t,e,i,n,s){if(t=g(t),Array.isArray(t))for(let o=0;o>20;if(So(t)||!t.multi){const n=new ze(c,s,Qo),f=oa(a,e,s?h:h+d,l);-1===f?(Ne(Oe(u,r),o,a),na(o,t,e.length),e.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),i.push(n),r.push(n)):(i[f]=n,r[f]=n)}else{const f=oa(a,e,h+d,l),g=oa(a,e,h,h+d),p=f>=0&&i[f],m=g>=0&&i[g];if(s&&!m||!s&&!p){Ne(Oe(u,r),o,a);const h=function(t,e,i,n,s){const o=new ze(t,i,Qo);return o.multi=[],o.index=e,o.componentProviders=0,sa(o,s,n&&!i),o}(s?aa:ra,i.length,s,n,c);!s&&m&&(i[g].providerFactory=h),na(o,t,e.length,0),e.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),i.push(h),r.push(h)}else na(o,t,f>-1?f:g,sa(i[s?g:f],c,!s&&n));!s&&n&&m&&i[g].componentProviders++}}}function na(t,e,i,n){const s=So(e);if(s||e.useClass){const o=(e.useClass||e).prototype.ngOnDestroy;if(o){const r=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=r.indexOf(i);-1===t?r.push(i,[n,o]):r[t+1].push(n,o)}else r.push(i,o)}}}function sa(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function oa(t,e,i,n){for(let s=i;s{i.providersResolver=(i,n)=>function(t,e,i){const n=Nt();if(n.firstCreatePass){const s=pt(t);ia(i,n.data,n.blueprint,s,!0),ia(e,n.data,n.blueprint,s,!1)}}(i,n?n(t):t,e)}}class ha{}class la{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${h(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let da=(()=>{class t{}return t.NULL=new la,t})();function fa(...t){}function ga(t,e){return new ma(Bt(t,e))}const pa=function(){return ga(Gt(),qt())};let ma=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=pa,t})();function wa(t){return t instanceof ma?t.nativeElement:t}class ya{}let ba=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Aa(),t})();const Aa=function(){const t=qt(),e=xt(Gt().index,t);return function(t){return t[11]}(ht(e)?e:t)};let _a=(()=>{class t{}return t.\u0275prov=A({token:t,providedIn:"root",factory:()=>null}),t})();class va{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ta=new va("12.0.5");class ka{constructor(){}supports(t){return qo(t)}create(t){return new Ea(t)}}const Ca=(t,e)=>e;class Ea{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Ca}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,n=0,s=null;for(;e||i;){const o=!i||e&&e.currentIndex{n=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,n)?(o&&(s=this._verifyReinsertion(s,t,n,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,n,e),o=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,n){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,n)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,n))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,n)):t=this._addAfter(new za(e,i),s,n),t}_verifyReinsertion(t,e,i,n){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,n):t.currentIndex!=n&&(t.currentIndex=n,this._addToMoves(t,n)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const n=t._prevRemoved,s=t._nextRemoved;return null===n?this._removalsHead=s:n._nextRemoved=s,null===s?this._removalsTail=n:s._prevRemoved=n,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const n=null===e?this._itHead:e._next;return t._next=n,t._prev=e,null===n?this._itTail=t:n._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Pa),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Pa),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class za{constructor(t,e){this.item=t,this.trackById=e,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 Ra{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class Pa{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new Ra,this.map.set(e,i)),i.add(t)}get(t,e){const i=this.map.get(t);return i?i.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Sa(t,e,i){const n=t.previousIndex;if(null===n)return n;let s=0;return i&&n{if(e&&e.key===i)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const n=this._getOrCreateRecordForKey(i,t);e=this._insertBeforeOrAppend(e,n)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,e);const n=i._prev,s=i._next;return n&&(n._next=s),s&&(s._prev=n),i._next=null,i._prev=null,i}const i=new Ka(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class Ka{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function xa(){return new Ha([new ka])}let Ha=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(null!=i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||xa()),deps:[[t,new Si,new Pi]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${i=t,i.name||typeof i}'`);var i}}return t.\u0275prov=A({token:t,providedIn:"root",factory:xa}),t})();function ja(){return new Ia([new Ba])}let Ia=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||ja()),deps:[[t,new Si,new Pi]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=A({token:t,providedIn:"root",factory:ja}),t})();function La(t,e,i,n,s=!1){for(;null!==i;){const o=e[i.index];if(null!==o&&n.push(Pt(o)),lt(o))for(let t=ut;t-1&&(Dn(t,i),di(e,i))}this._attachedToViewContainer=!1}qn(this._lView[1],this._lView)}onDestroy(t){Fs(this._lView[1],this._lView,null,t)}markForCheck(){so(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){oo(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,i){Qt(!0);try{oo(t,e,i)}finally{Qt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,is(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Fa extends Oa{constructor(t){super(t),this._view=t}detectChanges(){ro(this._view)}checkNoChanges(){!function(t){Qt(!0);try{ro(t)}finally{Qt(!1)}}(this._view)}get context(){return null}}const Da=function(t){return function(t,e,i){if(ft(t)&&!i){const i=xt(t.index,e);return new Oa(i,i)}return 47&t.type?new Oa(e[16],e):null}(Gt(),qt(),16==(16&t))};let qa=(()=>{class t{}return t.__NG_ELEMENT_ID__=Da,t})();const Na=[new Ba],Ua=new Ha([new ka]),Ga=new Ia(Na),$a=function(){return Za(Gt(),qt())};let Va=(()=>{class t{}return t.__NG_ELEMENT_ID__=$a,t})();const Wa=Va,Ya=class extends Wa{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=Rs(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const n=this._declarationLView[19];return null!==n&&(i[19]=n.createEmbeddedView(e)),Bs(e,i,t),new Oa(i)}};function Za(t,e){return 4&t.type?new Ya(e,t,ga(t,e)):null}class Qa{}class Ja{}const Xa=function(){return oc(Gt(),qt())};let tc=(()=>{class t{}return t.__NG_ELEMENT_ID__=Xa,t})();const ec=tc,ic=class extends ec{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return ga(this._hostTNode,this._hostLView)}get injector(){return new ti(this._hostTNode,this._hostLView)}get parentInjector(){const t=qe(this._hostTNode,this._hostLView);if(Ke(t)){const e=He(t,this._hostLView),i=xe(t);return new ti(e[1].data[i+8],e)}return new ti(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=nc(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-ut}createEmbeddedView(t,e,i){const n=t.createEmbeddedView(e||{});return this.insert(n,i),n}createComponent(t,e,i,n,s){const o=i||this.parentInjector;if(!s&&null==t.ngModule&&o){const t=o.get(Qa,null);t&&(s=t)}const r=t.create(o,n,void 0,s);return this.insert(r.hostView,e),r}insert(t,e){const i=t._lView,n=i[1];if(lt(i[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=i[3],n=new ic(e,e[6],e[3]);n.detach(n.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function(t,e,i,n){const s=ut+n,o=i.length;n>0&&(i[s-1][4]=e),nPn});class hc extends ha{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(ws).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return cc(this.componentDef.inputs)}get outputs(){return cc(this.componentDef.outputs)}create(t,e,i,n){const s=(n=n||this.ngModule)?function(t,e){return{get:(i,n,s)=>{const o=t.get(i,rc,s);return o!==rc||n===rc?o:e.get(i,n,s)}}}(t,n.injector):t,o=s.get(ya,Rt),r=s.get(_a,null),a=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function(t,e,i){if(zt(t))return t.selectRootElement(e,i===H.ShadowDom);let n="string"==typeof e?t.querySelector(e):e;return n.textContent="",n}(a,i,this.componentDef.encapsulation):On(o.createRenderer(null,this.componentDef),c,function(t){const e=t.toLowerCase();return"svg"===e?Tt:"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),h=this.componentDef.onPush?576:528,l={components:[],scheduler:Pn,clean:co,playerHandler:null,flags:0},d=Os(0,null,null,1,0,null,null,null,null,null),f=Rs(null,d,l,h,null,null,o,a,r,s);let g,p;ue(f);try{const t=function(t,e,i,n,s,o){const r=i[1];i[20]=t;const a=Ps(r,20,2,"#host",null),c=a.mergedAttrs=e.hostAttrs;null!==c&&(mo(a,c,!0),null!==t&&(Re(s,t,c),null!==a.classes&&os(s,t,a.classes),null!==a.styles&&ss(s,t,a.styles)));const u=n.createRenderer(t,e),h=Rs(i,Ls(e),null,e.onPush?64:16,i[20],a,n,u,null,null);return r.firstCreatePass&&(Ne(Oe(a,i),r,e.type),$s(r,a),Ws(a,i.length,1)),no(i,h),i[20]=h}(u,this.componentDef,f,o,a);if(u)if(i)Re(a,u,["ng-version",Ta.full]);else{const{attrs:t,classes:e}=function(t){const e=[],i=[];let n=1,s=2;for(;n0&&os(a,u,e.join(" "))}if(p=Mt(d,ct),void 0!==e){const t=p.projection=[];for(let i=0;it(r,e)),e.contentQueries){const t=Gt();e.contentQueries(1,r,t.directiveStart)}const a=Gt();return!o.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(me(a.index),Us(i[1],a,0,a.directiveStart,a.directiveEnd,e),Gs(e,r)),r}(t,this.componentDef,f,l,[Ko]),Bs(d,f,null)}finally{ge()}return new lc(this.componentType,g,ga(p,f),f,p)}}class lc extends class{}{constructor(t,e,i,n,s){super(),this.location=i,this._rootLView=n,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new Fa(n),this.componentType=t}get injector(){return new ti(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const dc=new Map;class fc extends Qa{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new ac(this);const i=at(t),n=t[V]||null;n&&ea(n),this._bootstrapComponents=Bn(i.bootstrap),this._r3Injector=ko(t,e,[{provide:Qa,useValue:this},{provide:da,useValue:this.componentFactoryResolver}],h(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Mo.THROW_IF_NOT_FOUND,i=P.Default){return t===Mo||t===Qa||t===wo?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class gc extends Ja{constructor(t){super(),this.moduleType=t,null!==at(t)&&function(t){const e=new Set;!function t(i){const n=at(i,!0),s=n.id;null!==s&&(function(t,e,i){if(e&&e!==i)throw new Error(`Duplicate module registered for ${t} - ${h(e)} vs ${h(e.name)}`)}(s,dc.get(s),i),dc.set(s,i));const o=Bn(n.imports);for(const r of o)e.has(r)||(e.add(r),t(r))}(t)}(t)}create(t){return new fc(this.moduleType,t)}}function pc(t,e,i,n){return yc(qt(),Jt(),t,e,i,n)}function mc(t,e,i,n,s){return bc(qt(),Jt(),t,e,i,n,s)}function wc(t,e){const i=t[e];return i===ys?void 0:i}function yc(t,e,i,n,s,o){const r=e+i;return Go(t,r,s)?Uo(t,r+1,o?n.call(o,s):n(s)):wc(t,r+1)}function bc(t,e,i,n,s,o,r){const a=e+i;return $o(t,a,s,o)?Uo(t,a+2,r?n.call(r,s,o):n(s,o)):wc(t,a+2)}function Ac(t,e){const i=Nt();let n;const s=t+ct;i.firstCreatePass?(n=function(t,e){if(e)for(let i=e.length-1;i>=0;i--){const n=e[i];if(t===n.name)return n}throw new m("302",`The pipe '${t}' could not be found!`)}(e,i.pipeRegistry),i.data[s]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(s,n.onDestroy)):n=i.data[s];const o=n.factory||(n.factory=mt(n.type)),r=B(Qo);try{const t=Ie(!1),e=o();return Ie(t),function(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}(i,qt(),s,e),e}finally{B(r)}}function _c(t,e,i){const n=t+ct,s=qt(),o=Kt(s,n);return Cc(s,kc(s,n)?yc(s,Jt(),e,o.transform,i,o):o.transform(i))}function vc(t,e,i,n){const s=t+ct,o=qt(),r=Kt(o,s);return Cc(o,kc(o,s)?bc(o,Jt(),e,r.transform,i,n,r):r.transform(i,n))}function Tc(t,e,i,n,s){const o=t+ct,r=qt(),a=Kt(r,o);return Cc(r,kc(r,o)?function(t,e,i,n,s,o,r,a){const c=e+i;return function(t,e,i,n,s){const o=$o(t,e,i,n);return Go(t,e+2,s)||o}(t,c,s,o,r)?Uo(t,c+3,a?n.call(a,s,o,r):n(s,o,r)):wc(t,c+3)}(r,Jt(),e,a.transform,i,n,s,a):a.transform(i,n,s))}function kc(t,e){return t[1].data[e].pure}function Cc(t,e){return Do.isWrapped(e)&&(e=Do.unwrap(e),t[Xt()]=ys),e}function Ec(t){return e=>{setTimeout(t,void 0,e)}}const zc=class extends n.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var n,o,r;let a=t,c=e||(()=>null),u=i;if(t&&"object"==typeof t){const e=t;a=null===(n=e.next)||void 0===n?void 0:n.bind(e),c=null===(o=e.error)||void 0===o?void 0:o.bind(e),u=null===(r=e.complete)||void 0===r?void 0:r.bind(e)}this.__isAsync&&(c=Ec(c),a&&(a=Ec(a)),u&&(u=Ec(u)));const h=super.subscribe({next:a,error:c,complete:u});return t instanceof s.w&&t.add(h),h}};function Rc(){return this._results[Fo()]()}class Pc{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Fo(),i=Pc.prototype;i[e]||(i[e]=Rc)}get changes(){return this._changes||(this._changes=new zc)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const n=ui(t);(this._changesDetected=!function(t,e,i){if(t.length!==e.length)return!1;for(let n=0;n0)n.push(r[t/2]);else{const s=o[t+1],r=e[-i];for(let t=ut;t{class t{constructor(t){this.appInits=t,this.resolve=fa,this.reject=fa,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{e.subscribe({complete:t,error:i})});t.push(i)}}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(ki(Vc,8))},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t})();const Yc=new ri("AppId"),Zc={provide:Yc,useFactory:function(){return`${Qc()}${Qc()}${Qc()}`},deps:[]};function Qc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Jc=new ri("Platform Initializer"),Xc=new ri("Platform ID"),tu=new ri("appBootstrapListener");let eu=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t})();const iu=new ri("LocaleId"),nu=new ri("DefaultCurrencyCode");class su{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const ou=function(t){return new gc(t)},ru=ou,au=function(t){return Promise.resolve(ou(t))},cu=function(t){const e=ou(t),i=Bn(at(t).declarations).reduce((t,e)=>{const i=rt(e);return i&&t.push(new hc(i)),t},[]);return new su(e,i)},uu=cu,hu=function(t){return Promise.resolve(cu(t))};let lu=(()=>{class t{constructor(){this.compileModuleSync=ru,this.compileModuleAsync=au,this.compileModuleAndAllComponentsSync=uu,this.compileModuleAndAllComponentsAsync=hu}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t})();const du=(()=>Promise.resolve(0))();function fu(t){"undefined"==typeof Zone?du.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class gu{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new zc(!1),this.onMicrotaskEmpty=new zc(!1),this.onStable=new zc(!1),this.onError=new zc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=!i&&e,n.shouldCoalesceRunChangeDetection=i,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let t=F.requestAnimationFrame,e=F.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(F,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,wu(t),t.isCheckStableRunning=!0,mu(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),wu(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,s,o,r,a)=>{try{return yu(t),i.invokeTask(s,o,r,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&e(),bu(t)}},onInvoke:(i,n,s,o,r,a,c)=>{try{return yu(t),i.invoke(s,o,r,a,c)}finally{t.shouldCoalesceRunChangeDetection&&e(),bu(t)}},onHasTask:(e,i,n,s)=>{e.hasTask(n,s),i===n&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,wu(t),mu(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,n,s)=>(e.handleError(n,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!gu.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(gu.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,n){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+n,t,pu,fa,fa);try{return s.runTask(o,e,i)}finally{s.cancelTask(o)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const pu={};function mu(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function wu(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function yu(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function bu(t){t._nesting--,mu(t)}class Au{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new zc,this.onMicrotaskEmpty=new zc,this.onStable=new zc,this.onError=new zc}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,n){return t.apply(e,i)}}let _u=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{gu.assertNotInAngularZone(),fu(()=>{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())fu(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,i){let n=-1;e&&e>0&&(n=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==n),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:n,updateCb:i})}whenStable(t,e,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,e,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,i){return[]}}return t.\u0275fac=function(e){return new(e||t)(ki(gu))},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t})(),vu=(()=>{class t{constructor(){this._applications=new Map,Eu.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Eu.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t})();class Tu{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}function ku(t){Eu=t}let Cu,Eu=new Tu,zu=!0,Ru=!1;function Pu(){return Ru=!0,zu}function Su(){if(Ru)throw new Error("Cannot enable prod mode after platform setup.");zu=!1}const Bu=new ri("AllowMultipleToken");class Mu{constructor(t,e){this.name=t,this.token=e}}function Ku(t,e,i=[]){const n=`Platform: ${e}`,s=new ri(n);return(e=[])=>{let o=xu();if(!o||o.injector.get(Bu,!1))if(t)t(i.concat(e).concat({provide:s,useValue:!0}));else{const t=i.concat(e).concat({provide:s,useValue:!0},{provide:bo,useValue:"platform"});!function(t){if(Cu&&!Cu.destroyed&&!Cu.injector.get(Bu,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Cu=t.get(Hu);const e=t.get(Jc,null);e&&e.forEach(t=>t())}(Mo.create({providers:t,name:n}))}return function(t){const e=xu();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function xu(){return Cu&&!Cu.destroyed?Cu:null}let Hu=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const i=function(t,e){let i;return i="noop"===t?new Au:("zone.js"===t?void 0:t)||new gu({enableLongStackTrace:Pu(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),i}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),n=[{provide:gu,useValue:i}];return i.run(()=>{const e=Mo.create({providers:n,parent:this.injector,name:t.moduleType.name}),s=t.create(e),o=s.injector.get(Rn,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.runOutsideAngular(()=>{const t=i.onError.subscribe({next:t=>{o.handleError(t)}});s.onDestroy(()=>{Lu(this._modules,s),t.unsubscribe()})}),function(t,e,i){try{const n=i();return ar(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}(o,i,()=>{const t=s.injector.get(Wc);return t.runInitializers(),t.donePromise.then(()=>(ea(s.injector.get(iu,Xr)||Xr),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const i=ju({},e);return function(t,e,i){const n=new gc(i);return Promise.resolve(n)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,i))}_moduleDoBootstrap(t){const e=t.injector.get(Iu);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${h(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(ki(Mo))},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t})();function ju(t,e){return Array.isArray(e)?e.reduce(ju,t):Object.assign(Object.assign({},t),e)}let Iu=(()=>{class t{constructor(t,e,i,n,s){this._zone=t,this._injector=e,this._exceptionHandler=i,this._componentFactoryResolver=n,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const c=new o.y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),u=new o.y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{gu.assertNotInAngularZone(),fu(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const i=this._zone.onUnstable.subscribe(()=>{gu.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),i.unsubscribe()}});this.isStable=(0,r.T)(c,u.pipe((0,a.B)()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let i;i=t instanceof ha?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(i.componentType);const n=i.isBoundToModule?void 0:this._injector.get(Qa),s=i.create(Mo.NULL,[],e||i.selector,n),o=s.location.nativeElement,r=s.injector.get(_u,null),a=r&&s.injector.get(vu);return r&&a&&a.registerApplication(o,r),s.onDestroy(()=>{this.detachView(s.hostView),Lu(this.components,s),a&&a.unregisterApplication(o)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Lu(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(tu,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(ki(gu),ki(Mo),ki(Rn),ki(da),ki(Wc))},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t})();function Lu(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}class Ou{}class Fu{}const Du={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let qu=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Du}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,n]=t.split("#");return void 0===n&&(n="default"),i(3446)(e).then(t=>t[n]).then(t=>Nu(t,e,n)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,n]=t.split("#"),s="NgFactory";return void 0===n&&(n="default",s=""),i(3446)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[n+s]).then(t=>Nu(t,e,n))}}return t.\u0275fac=function(e){return new(e||t)(ki(lu),ki(Fu,8))},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t})();function Nu(t,e,i){if(!t)throw new Error(`Cannot find '${i}' in '${e}'`);return t}const Uu=function(t){return null},Gu=Ku(null,"core",[{provide:Xc,useValue:"unknown"},{provide:Hu,deps:[Mo]},{provide:vu,deps:[]},{provide:eu,deps:[]}]),$u=[{provide:Iu,useClass:Iu,deps:[gu,Mo,Rn,da,Wc]},{provide:uc,deps:[gu],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Wc,useClass:Wc,deps:[[new Pi,Vc]]},{provide:lu,useClass:lu,deps:[]},Zc,{provide:Ha,useFactory:function(){return Ua},deps:[]},{provide:Ia,useFactory:function(){return Ga},deps:[]},{provide:iu,useFactory:function(t){return ea(t=t||"undefined"!=typeof $localize&&$localize.locale||Xr),t},deps:[[new Ri(iu),new Pi,new Si]]},{provide:nu,useValue:"USD"}];let Vu=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(ki(Iu))},t.\u0275mod=et({type:t}),t.\u0275inj=_({providers:$u}),t})()},2623:(module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{zr:()=>OAuthModule,Ct:()=>OAuthService});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1572),_angular_common__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(1511),_angular_common_http__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(9063),tslib__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(7632),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5959),rxjs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(878),rxjs__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(9764),rxjs__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(3875),rxjs__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(1225),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(1305),rxjs__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(1906),rxjs_operators__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3835),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6599),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(7701),rxjs_operators__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(509),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(4689),rxjs_operators__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(9996),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(3530),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(7727),rxjs_operators__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(9085),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(611),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(3982);module=__webpack_require__.hmd(module);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class t extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(t)))(i||t)}}(),t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class t{constructor(){this.data=new Map}getItem(t){return this.data.get(t)}removeItem(t){this.data.delete(t)}setItem(t,e){this.data.set(t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();class ReceivedTokens{}function b64DecodeUnicode(t){const e=t.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(e).split("").map(function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(t){return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(t){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){let e=this.inferHashAlgorithm(t.idTokenHeader),i=yield this.calcHash(t.accessToken,e),n=base64UrlEncode(i.substr(0,i.length/2)),s=t.idTokenClaims.at_hash.replace(/=/g,"");return n!==s&&(console.error("exptected at_hash: "+n),console.error("actual at_hash: "+s)),n===s})}inferHashAlgorithm(t){let e=t.alg;if(!e.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+e);return"sha-"+e.substr(2)}}let UrlHelperService=(()=>{class t{getHashFragmentParams(t){let e=t||window.location.hash;if(e=decodeURIComponent(e),0!==e.indexOf("#"))return{};const i=e.indexOf("?");return e=e.substr(i>-1?i+1:1),this.parseQueryString(e)}parseQueryString(t){const e={};let i,n,s,o,r,a,c;if(null===t)return e;i=t.split("&");for(let u=0;u{location.href=t},t&&Object.assign(this,t)}}class WebHttpUrlEncodingCodec{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&module.exports,AMD="function"==typeof define&&__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[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],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t,e){return function(i){return new Sha256(e,!0).update(i)[t]()}};const \u02750=createOutputMethod;var createMethod=function(t){var e=createOutputMethod("hex",t);NODE_JS&&(e=nodeWrap(e,t)),e.create=function(){return new Sha256(t)},e.update=function(t){return e.create().update(t)};for(var i=0;i>6,r[c++]=128|63&o):o<55296||o>=57344?(r[c++]=224|o>>12,r[c++]=128|o>>6&63,r[c++]=128|63&o):(o=65536+((1023&o)<<10|1023&t.charCodeAt(++n)),r[c++]=240|o>>18,r[c++]=128|o>>12&63,r[c++]=128|o>>6&63,r[c++]=128|63&o);t=r}else{if("object"!==s)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR)}t.length>64&&(t=new Sha256(e,!0).update(t).array());var u=[],h=[];for(n=0;n<64;++n){var l=t[n]||0;u[n]=92^l,h[n]=54^l}Sha256.call(this,e,i),this.update(h),this.oKeyPad=u,this.inner=!0,this.sharedMemory=i}Sha256.prototype.update=function(t){if(!this.finalized){var e,i=typeof t;if("string"!==i){if("object"!==i)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR);e=!0}for(var n,s,o=0,r=t.length,a=this.blocks;o>2]|=t[o]<>2]|=n<>2]|=(192|n>>6)<>2]|=(128|63&n)<=57344?(a[s>>2]|=(224|n>>12)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<>2]|=(240|n>>18)<>2]|=(128|n>>12&63)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<=64?(this.block=a[16],this.start=s-64,this.hash(),this.hashed=!0):this.start=s}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 t=this.blocks,e=this.lastByteIndex;t[16]=this.block,t[e>>2]|=EXTRA[3&e],this.block=t[16],e>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var t,e,i,n,s,o,r=this.h0,a=this.h1,c=this.h2,u=this.h3,h=this.h4,l=this.h5,d=this.h6,f=this.h7,g=this.blocks;for(t=16;t<64;++t)g[t]=g[t-16]+(((e=g[t-15])>>>7|e<<25)^(e>>>18|e<<14)^e>>>3)+g[t-7]+(((e=g[t-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)<<0;for(o=a&c,t=0;t<64;t+=4)this.first?(this.is224?(i=300032,f=(e=g[0]-1413257819)-150054599<<0,u=e+24177077<<0):(i=704751109,f=(e=g[0]-210244248)-1521486534<<0,u=e+143694565<<0),this.first=!1):(f=u+(e=f+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^~h&d)+K[t]+g[t])<<0,u=e+(((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+((i=r&a)^r&c^o))<<0),d=c+(e=d+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&h^~f&l)+K[t+1]+g[t+1])<<0,c=e+(((u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10))+((n=u&r)^u&a^i))<<0,l=a+(e=l+((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&f^~d&h)+K[t+2]+g[t+2])<<0,a=e+(((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+((s=c&u)^c&r^n))<<0,h=r+(e=h+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&d^~l&f)+K[t+3]+g[t+3])<<0,r=e+(((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+((o=a&c)^a&u^s))<<0;this.h0=this.h0+r<<0,this.h1=this.h1+a<<0,this.h2=this.h2+c<<0,this.h3=this.h3+u<<0,this.h4=this.h4+h<<0,this.h5=this.h5+l<<0,this.h6=this.h6+d<<0,this.h7=this.h7+f<<0},Sha256.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,i=this.h2,n=this.h3,s=this.h4,o=this.h5,r=this.h6,a=this.h7,c=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[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[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[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[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]+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]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r];return this.is224||(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]),c},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,i=this.h2,n=this.h3,s=this.h4,o=this.h5,r=this.h6,a=this.h7,c=[t>>24&255,t>>16&255,t>>8&255,255&t,e>>24&255,e>>16&255,e>>8&255,255&e,i>>24&255,i>>16&255,i>>8&255,255&i,n>>24&255,n>>16&255,n>>8&255,255&n,s>>24&255,s>>16&255,s>>8&255,255&s,o>>24&255,o>>16&255,o>>8&255,255&o,r>>24&255,r>>16&255,r>>8&255,255&r];return this.is224||c.push(a>>24&255,a>>16&255,a>>8&255,255&a),c},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(this.is224?28:32),e=new DataView(t);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),e.setUint32(20,this.h5),e.setUint32(24,this.h6),this.is224||e.setUint32(28,this.h7),t},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(t),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0);class HashHandler{}let DefaultHashHandler=(()=>{class t{calcHash(t,e){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){const e=exports.array(t);return this.toHashString2(e)})}toHashString2(t){let e="";for(let i of t)e+=String.fromCharCode(i);return e}toHashString(t){const e=new Uint8Array(t);let i="";for(let n of e)i+=String.fromCharCode(n);return i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})(),OAuthService=(()=>{class t extends AuthConfig{constructor(t,e,i,n,s,o,r,a,c,u){var h;super(),this.ngZone=t,this.http=e,this.config=s,this.urlHelper=o,this.logger=r,this.crypto=a,this.dateTimeService=u,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_2__.xQ,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_2__.xQ,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=c,s||(s={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),n&&(this.tokenValidationHandler=n),s&&this.configure(s);try{i?this.setStorage(i):"undefined"!=typeof sessionStorage&&this.setStorage(sessionStorage)}catch(l){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",l)}if("undefined"!=typeof window&&void 0!==window.localStorage){const t=null===(h=null===window||void 0===window?void 0:window.navigator)||void 0===h?void 0:h.userAgent;((null==t?void 0:t.includes("MSIE "))||(null==t?void 0:t.includes("Trident")))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}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_3__.h)(t=>"token_received"===t.type)).subscribe(t=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(t={},e,i=!0){let n=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.b)(t=>{"token_received"===t.type?n=!0:"logout"===t.type&&(n=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>"token_expires"===t.type&&(null==e||"any"===e||t.info===e)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(1e3)).subscribe(e=>{n&&this.refreshInternal(t,i).catch(t=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(t,e){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(t,e):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(t=null){return this.loadDiscoveryDocument().then(e=>this.tryLogin(t))}loadDiscoveryDocumentAndLogin(t=null){return this.loadDiscoveryDocumentAndTryLogin(t=t||{}).then(e=>!(!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 e=[],i=this.validateUrlForHttps(t),n=this.validateUrlAgainstIssuer(t);return i||e.push("https for all urls required. Also for urls received by discovery."),n||e.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),e}validateUrlForHttps(t){if(!t)return!0;const e=t.toLowerCase();return!1===this.requireHttps||!(!e.match(/^http:\/\/localhost($|[:\/])/)&&!e.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps)||e.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(t,e){if(!t)throw new Error(`'${e}' should not be null`);if(!this.validateUrlForHttps(t))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(t){return!this.strictDiscoveryDocumentValidation||!t||t.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){"undefined"!=typeof window?((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_3__.h)(t=>"token_received"===t.type)).subscribe(t=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})):this.debug("timer not supported on this plattform")}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const t=this.getAccessTokenExpiration(),e=this.getAccessTokenStoredAt(),i=this.calcTimeout(e,t);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.g)(i)).subscribe(t=>{this.ngZone.run(()=>{this.eventsSubject.next(t)})})})}setupIdTokenTimer(){const t=this.getIdTokenExpiration(),e=this.getIdTokenStoredAt(),i=this.calcTimeout(e,t);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.g)(i)).subscribe(t=>{this.ngZone.run(()=>{this.eventsSubject.next(t)})})})}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,e){const i=this.dateTimeService.now();return Math.max(0,(e-t)*this.timeoutFactor-(i-t))}setStorage(t){this._storage=t,this.configChanged()}loadDiscoveryDocument(t=null){return new Promise((e,i)=>{t||((t=this.issuer||"").endsWith("/")||(t+="/"),t+=".well-known/openid-configuration"),this.validateUrlForHttps(t)?this.http.get(t).subscribe(t=>{if(!this.validateDiscoveryDocument(t))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void i("discovery_document_validation_error");this.loginUrl=t.authorization_endpoint,this.logoutUrl=t.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=t.grant_types_supported,this.issuer=t.issuer,this.tokenEndpoint=t.token_endpoint,this.userinfoEndpoint=t.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=t.jwks_uri,this.sessionCheckIFrameUrl=t.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(t),this.revocationEndpoint=t.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(i=>{const n=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:t,jwks:i});this.eventsSubject.next(n),e(n)}).catch(t=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",t)),i(t)})},t=>{this.logger.error("error loading discovery document",t),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",t)),i(t)}):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,e)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(e=>{this.jwks=e,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),t(e)},t=>{this.logger.error("error loading jwks",t),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",t)),e(t)}):t(null)})}validateDiscoveryDocument(t){let e;return this.skipIssuerCheck||t.issuer===this.issuer?(e=this.validateUrlFromDiscoveryDocument(t.authorization_endpoint),e.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(t.end_session_endpoint),e.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(t.token_endpoint),e.length>0&&this.logger.error("error validating token_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(t.revocation_endpoint),e.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(t.userinfo_endpoint),e.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(t.jwks_uri),e.length>0?(this.logger.error("error validating jwks_uri in discovery document",e),!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,e,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM){return this.fetchTokenUsingPasswordFlow(t,e,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,e)=>{const i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:i,observe:"response",responseType:"text"}).subscribe(i=>{if(this.debug("userinfo received",JSON.stringify(i)),i.headers.get("content-type").startsWith("application/json")){let n=JSON.parse(i.body);const s=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!s.sub||n.sub!==s.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");n=Object.assign({},s,n),this._storage.setItem("id_token_claims_obj",JSON.stringify(n)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),t({info:n})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),t(JSON.parse(i.body))},t=>{this.logger.error("error loading user info",t),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",t)),e(t)})})}fetchTokenUsingPasswordFlow(t,e,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM){return this.fetchTokenUsingGrant("password",{username:t,password:e},i)}fetchTokenUsingGrant(t,e,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",t).set("scope",this.scope);if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+t)}if(this.useHttpBasicAuth||(n=n.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(n=n.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const s of Object.getOwnPropertyNames(this.customQueryParams))n=n.set(s,this.customQueryParams[s]);for(const s of Object.keys(e))n=n.set(s,e[s]);return i=i.set("Content-Type","application/x-www-form-urlencoded"),new Promise((t,e)=>{this.http.post(this.tokenEndpoint,n,{headers:i}).subscribe(e=>{this.debug("tokenResponse",e),this.storeAccessTokenResponse(e.access_token,e.refresh_token,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,e.scope,this.extractRecognizedCustomParameters(e)),this.oidc&&e.id_token&&this.processIdToken(e.id_token,e.access_token).then(i=>{this.storeIdToken(i),t(e)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),t(e)},t=>{this.logger.error("Error performing ${grantType} flow",t),this.eventsSubject.next(new OAuthErrorEvent("token_error",t)),e(t)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((t,e)=>{let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),n=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);n=n.set("Authorization","Basic "+t)}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 s of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(s,this.customQueryParams[s]);this.http.post(this.tokenEndpoint,i,{headers:n}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.w)(t=>t.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_10__.D)(this.processIdToken(t.id_token,t.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.b)(t=>this.storeIdToken(t)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.U)(e=>t)):(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(t))).subscribe(e=>{this.debug("refresh tokenResponse",e),this.storeAccessTokenResponse(e.access_token,e.refresh_token,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,e.scope,this.extractRecognizedCustomParameters(e)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),t(e)},t=>{this.logger.error("Error refreshing token",t),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",t)),e(t)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=t=>{const e=this.processMessageEventMessage(t);this.tryLogin({customHashFragment:e,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(t=>this.debug("tryLogin during silent refresh failed",t))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(t={},e=!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(void 0===this.document)throw new Error("silent refresh is not supported on this platform");const n=this.document.getElementById(this.silentRefreshIFrameName);n&&this.document.body.removeChild(n),this.silentRefreshSubject=i.sub;const s=this.document.createElement("iframe");s.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,e,t).then(t=>{s.setAttribute("src",t),this.silentRefreshShowIFrame||(s.style.display="none"),this.document.body.appendChild(s)});const o=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>t instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.P)()),r=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>"token_received"===t.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.P)()),a=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_13__.S3)([o,r,a]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.U)(t=>{if(t instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===t.type||(t=new OAuthErrorEvent("silent_refresh_error",t)),this.eventsSubject.next(t),t;return"token_received"===t.type&&(t=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(t)),t})).toPromise()}initImplicitFlowInPopup(t){return this.initLoginFlowInPopup(t)}initLoginFlowInPopup(t){return t=t||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(e=>new Promise((i,n)=>{let s,o=null;t.windowRef?t.windowRef&&!t.windowRef.closed&&(o=t.windowRef,o.location.href=e):o=window.open(e,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(t));const r=t=>{this.tryLogin({customHashFragment:t,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{a(),i(!0)},t=>{a(),n(t)})};o?s=window.setInterval(()=>{o&&!o.closed||(a(),n(new OAuthErrorEvent("popup_closed",{})))},500):n(new OAuthErrorEvent("popup_blocked",{}));const a=()=>{window.clearInterval(s),window.removeEventListener("storage",u),window.removeEventListener("message",c),null!==o&&o.close(),o=null},c=t=>{const e=this.processMessageEventMessage(t);e&&null!==e?(window.removeEventListener("storage",u),r(e)):console.log("false event firing")},u=t=>{"auth_hash"===t.key&&(window.removeEventListener("message",c),r(t.newValue))};window.addEventListener("message",c),window.addEventListener("storage",u)}))}calculatePopupFeatures(t){const e=t.height||470,i=t.width||500,n=window.screenLeft+(window.outerWidth-i)/2;return`location=no,toolbar=no,width=${i},height=${e},top=${window.screenTop+(window.outerHeight-e)/2},left=${n}`}processMessageEventMessage(t){let e="#";if(this.silentRefreshMessagePrefix&&(e+=this.silentRefreshMessagePrefix),!t||!t.data||"string"!=typeof t.data)return;const i=t.data;return i.startsWith(e)?"#"+i.substr(e.length):void 0}canPerformSessionCheck(){return!!this.sessionChecksEnabled&&(this.sessionCheckIFrameUrl?this.getSessionState()?void 0!==this.document:(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 e=t.origin.toLowerCase(),i=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),i.startsWith(e)){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",e,"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_3__.h)(t=>"silently_refreshed"===t.type||"silent_refresh_timeout"===t.type||"silent_refresh_error"===t.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.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 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 t=this.document.getElementById(this.sessionCheckIFrameName);t||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const e=this.getSessionState();e||this.stopSessionCheckTimer(),t.contentWindow.postMessage(this.clientId+" "+e,this.issuer)}createLoginUrl(t="",e="",i="",n=!1,s={}){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){const o=this;let r;r=i||this.redirectUri;const a=yield this.createAndSaveNonce();if(t=t?a+this.config.nonceStateSeparator+encodeURIComponent(t):a,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.responseType=this.config.responseType?this.config.responseType:this.oidc&&this.requestAccessToken?"id_token token":this.oidc&&!this.requestAccessToken?"id_token":"token";const c=o.loginUrl.indexOf("?")>-1?"&":"?";let u=o.scope;this.oidc&&!u.match(/(^|\s)openid($|\s)/)&&(u="openid "+u);let h=o.loginUrl+c+"response_type="+encodeURIComponent(o.responseType)+"&client_id="+encodeURIComponent(o.clientId)+"&state="+encodeURIComponent(t)+"&redirect_uri="+encodeURIComponent(r)+"&scope="+encodeURIComponent(u);if(this.responseType.includes("code")&&!this.disablePKCE){const[t,e]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("PKCE_verifier",e):this._storage.setItem("PKCE_verifier",e),h+="&code_challenge="+t,h+="&code_challenge_method=S256"}e&&(h+="&login_hint="+encodeURIComponent(e)),o.resource&&(h+="&resource="+encodeURIComponent(o.resource)),o.oidc&&(h+="&nonce="+encodeURIComponent(a)),n&&(h+="&prompt=none");for(const t of Object.keys(s))h+="&"+encodeURIComponent(t)+"="+encodeURIComponent(s[t]);if(this.customQueryParams)for(const t of Object.getOwnPropertyNames(this.customQueryParams))h+="&"+t+"="+encodeURIComponent(this.customQueryParams[t]);return h})}initImplicitFlowInternal(t="",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 i={},n=null;"string"==typeof e?n=e:"object"==typeof e&&(i=e),this.createLoginUrl(t,n,null,!1,i).then(this.config.openUri).catch(t=>{console.error("Error in initImplicitFlow",t),this.inImplicitFlow=!1})}initImplicitFlow(t="",e=""){""!==this.loginUrl?this.initImplicitFlowInternal(t,e):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>"discovery_document_loaded"===t.type)).subscribe(i=>this.initImplicitFlowInternal(t,e))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(t){const e=this;if(t.onTokenReceived){const i={idClaims:e.getIdentityClaims(),idToken:e.getIdToken(),accessToken:e.getAccessToken(),state:e.state};t.onTokenReceived(i)}}storeAccessTokenResponse(t,e,i,n,s){if(this._storage.setItem("access_token",t),n&&!Array.isArray(n)?this._storage.setItem("granted_scopes",JSON.stringify(n.split(" "))):n&&Array.isArray(n)&&this._storage.setItem("granted_scopes",JSON.stringify(n)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),i){const t=1e3*i,e=this.dateTimeService.new().getTime()+t;this._storage.setItem("expires_at",""+e)}e&&this._storage.setItem("refresh_token",e),s&&s.forEach((t,e)=>{this._storage.setItem(e,t)})}tryLogin(t=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(t).then(t=>!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){const e=(t=t||{}).customHashFragment?t.customHashFragment.substring(1):window.location.search,i=this.getCodePartsFromUrl(e),n=i.code,s=i.state,o=i.session_state;if(!t.preventClearHashAfterLogin){const t=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,t)}let[r,a]=this.parseState(s);if(this.state=a,i.error){this.debug("error trying to login"),this.handleLoginError(t,i);const e=new OAuthErrorEvent("code_error",{},i);return this.eventsSubject.next(e),Promise.reject(e)}if(!t.disableNonceCheck){if(!r)return Promise.resolve();if(!t.disableOAuth2StateCheck&&!this.validateNonce(r)){const t=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(t),Promise.reject(t)}return this.storeSessionState(o),n?this.getTokenFromCode(n,t).then(t=>null):Promise.resolve()}}getCodePartsFromUrl(t){return t&&0!==t.length?("?"===t.charAt(0)&&(t=t.substr(1)),this.urlHelper.parseQueryString(t)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(t,e){let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",t).set("redirect_uri",e.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let t;t=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),t?i=i.set("code_verifier",t):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(i,e)}fetchAndProcessToken(t,e){e=e||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+t)}return this.useHttpBasicAuth||(t=t.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(t=t.set("client_secret",this.dummyClientSecret)),new Promise((n,s)=>{if(this.customQueryParams)for(let e of Object.getOwnPropertyNames(this.customQueryParams))t=t.set(e,this.customQueryParams[e]);this.http.post(this.tokenEndpoint,t,{headers:i}).subscribe(t=>{this.debug("refresh tokenResponse",t),this.storeAccessTokenResponse(t.access_token,t.refresh_token,t.expires_in||this.fallbackAccessTokenExpirationTimeInSec,t.scope,this.extractRecognizedCustomParameters(t)),this.oidc&&t.id_token?this.processIdToken(t.id_token,t.access_token,e.disableNonceCheck).then(e=>{this.storeIdToken(e),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),n(t)}).catch(t=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",t)),console.error("Error validating tokens"),console.error(t),s(t)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),n(t))},t=>{console.error("Error getting token",t),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",t)),s(t)})})}tryLoginImplicitFlow(t=null){let e;e=(t=t||{}).customHashFragment?this.urlHelper.getHashFragmentParams(t.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",e);const i=e.state;let[n,s]=this.parseState(i);if(this.state=s,e.error){this.debug("error trying to login"),this.handleLoginError(t,e);const i=new OAuthErrorEvent("token_error",{},e);return this.eventsSubject.next(i),Promise.reject(i)}const o=e.access_token,r=e.id_token,a=e.session_state,c=e.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!o)return Promise.resolve(!1);if(this.requestAccessToken&&!t.disableOAuth2StateCheck&&!i)return Promise.resolve(!1);if(this.oidc&&!r)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!a&&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(n)){const t=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(t),Promise.reject(t)}return this.requestAccessToken&&this.storeAccessTokenResponse(o,null,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,c),this.oidc?this.processIdToken(r,o,t.disableNonceCheck).then(e=>t.validationHandler?t.validationHandler({accessToken:o,idClaims:e.idTokenClaims,idToken:e.idToken,state:i}).then(t=>e):e).then(e=>(this.storeIdToken(e),this.storeSessionState(a),this.clearHashAfterLogin&&!t.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(t),this.inImplicitFlow=!1,!0)).catch(t=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",t)),this.logger.error("Error validating tokens"),this.logger.error(t),Promise.reject(t))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!t.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(t),Promise.resolve(!0))}parseState(t){let e=t,i="";if(t){const n=t.indexOf(this.config.nonceStateSeparator);n>-1&&(e=t.substr(0,n),i=t.substr(n+this.config.nonceStateSeparator.length))}return[e,i]}validateNonce(t){let e;return e=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),e===t||(console.error("Validating access_token failed, wrong state/nonce.",e,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,e){t.onLoginError&&t.onLoginError(e),this.clearHashAfterLogin&&!t.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(t=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:t}processIdToken(t,e,i=!1){const n=t.split("."),s=b64DecodeUnicode(this.padBase64(n[0])),o=JSON.parse(s),r=b64DecodeUnicode(this.padBase64(n[1])),a=JSON.parse(r);let c;if(c=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(a.aud)){if(a.aud.every(t=>t!==this.clientId)){const t="Wrong audience: "+a.aud.join(",");return this.logger.warn(t),Promise.reject(t)}}else if(a.aud!==this.clientId){const t="Wrong audience: "+a.aud;return this.logger.warn(t),Promise.reject(t)}if(!a.sub){const t="No sub claim in id_token";return this.logger.warn(t),Promise.reject(t)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==a.sub){const t=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${a.sub}`;return this.logger.warn(t),Promise.reject(t)}if(!a.iat){const t="No iat claim in id_token";return this.logger.warn(t),Promise.reject(t)}if(!this.skipIssuerCheck&&a.iss!==this.issuer){const t="Wrong issuer: "+a.iss;return this.logger.warn(t),Promise.reject(t)}if(!i&&a.nonce!==c){const t="Wrong nonce: "+a.nonce;return this.logger.warn(t),Promise.reject(t)}if(!this.hasOwnProperty("responseType")||"code"!==this.responseType&&"id_token"!==this.responseType||(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!a.at_hash){const t="An at_hash is needed!";return this.logger.warn(t),Promise.reject(t)}const u=this.dateTimeService.now(),h=1e3*a.iat,l=1e3*a.exp,d=this.getClockSkewInMsec();if(h-d>=u||l+d<=u){const t="Token has expired";return console.error(t),console.error({now:u,issuedAtMSec:h,expiresAtMSec:l}),Promise.reject(t)}const f={accessToken:e,idToken:t,jwks:this.jwks,idTokenClaims:a,idTokenHeader:o,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(f).then(e=>({idToken:t,idTokenClaims:a,idTokenClaimsJson:r,idTokenHeader:o,idTokenHeaderJson:s,idTokenExpiresAt:l})):this.checkAtHash(f).then(e=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!e){const t="Wrong at_hash";return this.logger.warn(t),Promise.reject(t)}return this.checkSignature(f).then(e=>{const i={idToken:t,idTokenClaims:a,idTokenClaimsJson:r,idTokenHeader:o,idTokenHeaderJson:s,idTokenExpiresAt:l};return this.disableAtHashCheck?i:this.checkAtHash(f).then(t=>{if(this.requestAccessToken&&!t){const t="Wrong at_hash";return this.logger.warn(t),Promise.reject(t)}return i})})})}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"),e=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={},e=""){let i=!1;"boolean"==typeof t&&(i=t,t={});const n=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(t=>this._storage.removeItem(t)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl)return;if(i)return;if(!n&&!this.postLogoutRedirectUri)return;let s;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)s=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(n)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec});n&&(i=i.set("id_token_hint",n));const o=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";o&&(i=i.set("post_logout_redirect_uri",o),e&&(i=i.set("state",e)));for(let e in t)i=i.set(e,t[e]);s=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+i.toString()}this.config.openUri(s)}createAndSaveNonce(){const t=this;return this.createNonce().then(function(e){return t.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("nonce",e):t._storage.setItem("nonce",e),e})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const t=this.document.getElementById(this.silentRefreshIFrameName);t&&t.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const e=this.document.getElementById(this.sessionCheckIFrameName);e&&e.remove()}createNonce(){return new Promise(t=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let i=45,n="";const s="undefined"==typeof self?null:self.crypto||self.msCrypto;if(s){let t=new Uint8Array(i);s.getRandomValues(t),t.map||(t.map=Array.prototype.map),t=t.map(t=>e.charCodeAt(t%e.length)),n=String.fromCharCode.apply(null,t)}else for(;0"discovery_document_loaded"===t.type)).subscribe(i=>this.initCodeFlowInternal(t,e))}initCodeFlowInternal(t="",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 i={},n=null;"string"==typeof e?n=e:"object"==typeof e&&(i=e),this.createLoginUrl(t,n,null,!1,i).then(this.config.openUri).catch(t=>{console.error("Error in initAuthorizationCodeFlow"),console.error(t)})}createChallangeVerifierPairForPKCE(){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const t=yield this.createNonce();return[base64UrlEncode(yield this.crypto.calcHash(t,"sha-256")),t]})}extractRecognizedCustomParameters(t){let e=new Map;return this.config.customTokenParameters?(this.config.customTokenParameters.forEach(i=>{t[i]&&e.set(i,JSON.stringify(t[i]))}),e):e}revokeTokenAndLogout(t={},e=!1){let i=this.revocationEndpoint,n=this.getAccessToken(),s=this.getRefreshToken();if(!n)return;let o=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}),r=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);r=r.set("Authorization","Basic "+t)}if(this.useHttpBasicAuth||(o=o.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(o=o.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const a of Object.getOwnPropertyNames(this.customQueryParams))o=o.set(a,this.customQueryParams[a]);return new Promise((a,c)=>{let u,h;if(n){let t=o.set("token",n).set("token_type_hint","access_token");u=this.http.post(i,t,{headers:r})}else u=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null);if(s){let t=o.set("token",s).set("token_type_hint","refresh_token");h=this.http.post(i,t,{headers:r})}else h=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null);e&&(u=u.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>0===t.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(t))),h=h.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>0===t.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(t)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_16__.aj)([u,h]).subscribe(e=>{this.logOut(t),a(e),this.logger.info("Token successfully revoked")},t=>{this.logger.error("Error revoking token",t),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",t)),c(t)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return t.\u0275fac=function(e){return new(e||t)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_0__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_8__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_17__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DateTimeProvider))},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(t){return(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(t)}}let DefaultOAuthInterceptor=(()=>{class t{constructor(t,e,i){this.oAuthService=t,this.errorHandler=e,this.moduleConfig=i}checkUrl(t){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(t):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(e=>t.toLowerCase().startsWith(e.toLowerCase()))}intercept(t,e){const i=t.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(i)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_18__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>!!t)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>"token_received"===t.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_19__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.U)(t=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.zg)(i=>{if(i){const e=t.headers.set("Authorization","Bearer "+i);t=t.clone({headers:e})}return e.handle(t).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>this.errorHandler.handleError(t)))})):e.handle(t).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>this.errorHandler.handleError(t))):e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthModuleConfig,8))},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();class NullValidationHandler{validateSignature(t){return Promise.resolve(null)}validateAtHash(t){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return"undefined"!=typeof sessionStorage?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class t{static forRoot(e=null,i=NullValidationHandler){return{ngModule:t,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:i},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:e},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_8__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:t}),t.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_17__.ez]]}),t})();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_0__.OlP("AUTH_CONFIG")},2051:function(t,e){var i,n;void 0===(n="function"==typeof(i=function(){"use strict";function e(t,e,i){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){r(n.response,e,i)},n.onerror=function(){console.error("could not download file")},n.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function n(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,o=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),r=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(t,o,r){var a=s.URL||s.webkitURL,c=document.createElement("a");c.download=o=o||t.name||"download",c.rel="noopener","string"==typeof t?(c.href=t,c.origin===location.origin?n(c):i(c.href)?e(t,o,r):n(c,c.target="_blank")):(c.href=a.createObjectURL(t),setTimeout(function(){a.revokeObjectURL(c.href)},4e4),setTimeout(function(){n(c)},0))}:"msSaveOrOpenBlob"in navigator?function(t,s,o){if(s=s||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,o),s);else if(i(t))e(t,s,o);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){n(r)})}}:function(t,i,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return e(t,i,n);var a="application/octet-stream"===t.type,c=/constructor/i.test(s.HTMLElement)||s.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||a&&c||o)&&"undefined"!=typeof FileReader){var h=new FileReader;h.onloadend=function(){var t=h.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},h.readAsDataURL(t)}else{var l=s.URL||s.webkitURL,d=l.createObjectURL(t);r?r.location=d:location.href=d,r=null,setTimeout(function(){l.revokeObjectURL(d)},4e4)}});s.saveAs=r.saveAs=r,t.exports=r})?i.apply(e,[]):i)||(t.exports=n)},963:t=>{"use strict";function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,i,n,s){n=n||"=";var o={};if("string"!=typeof t||0===t.length)return o;var r=/\+/g;t=t.split(i=i||"&");var a=1e3;s&&"number"==typeof s.maxKeys&&(a=s.maxKeys);var c=t.length;a>0&&c>a&&(c=a);for(var u=0;u=0?(h=g.substr(0,p),l=g.substr(p+1)):(h=g,l=""),d=decodeURIComponent(h),f=decodeURIComponent(l),e(o,d)?Array.isArray(o[d])?o[d].push(f):o[d]=[o[d],f]:o[d]=f}return o}},5341:t=>{"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,i,n,s){return i=i||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map(function(s){var o=encodeURIComponent(e(s))+n;return Array.isArray(t[s])?t[s].map(function(t){return o+encodeURIComponent(e(t))}).join(i):o+encodeURIComponent(e(t[s]))}).join(i):s?encodeURIComponent(e(s))+n+encodeURIComponent(e(t)):""}},6577:(t,e,i)=>{"use strict";i(963),i(5341)},9867:(t,e,i)=>{"use strict";i.d(e,{d:()=>s});var n=i(6673);class s extends n.L{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},3103:(t,e,i)=>{"use strict";i.d(e,{P:()=>r});var n=i(653),s=i(878),o=i(1225);let r=(()=>{class t{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return(0,s.of)(this.value);case"E":return(0,o._)(this.error);case"C":return(0,n.c)()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})()},8318:(t,e,i)=>{"use strict";i.d(e,{y:()=>u});var n=i(6673),s=i(5331),o=i(7498),r=i(6197),a=i(3392),c=i(1484);let u=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(t,e,i){const{operator:r}=this,a=function(t,e,i){if(t){if(t instanceof n.L)return t;if(t[s.b])return t[s.b]()}return t||e||i?new n.L(t,e,i):new n.L(o.c)}(t,e,i);if(a.add(r?r.call(a,this.source):this.source||c.v.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),c.v.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){c.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:i,isStopped:s}=t;if(e||s)return!1;t=i&&i instanceof n.L?i:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=h(e))((e,i)=>{let n;n=this.subscribe(e=>{try{t(e)}catch(s){i(s),n&&n.unsubscribe()}},i,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[r.L](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?a.y:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=h(t))((t,e)=>{let i;this.subscribe(t=>i=t,t=>e(t),()=>t(i))})}}return t.create=e=>new t(e),t})();function h(t){if(t||(t=c.v.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},7498:(t,e,i)=>{"use strict";i.d(e,{c:()=>o});var n=i(1484),s=i(4294);const o={closed:!0,next(t){},error(t){if(n.v.useDeprecatedSynchronousErrorHandling)throw t;(0,s.z)(t)},complete(){}}},9829:(t,e,i)=>{"use strict";i.d(e,{L:()=>s});var n=i(6673);class s extends n.L{notifyNext(t,e,i,n,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}},5959:(t,e,i)=>{"use strict";i.d(e,{Yc:()=>u,xQ:()=>h});var n=i(8318),s=i(6673),o=i(7570),r=i(3895),a=i(9291),c=i(5331);class u extends s.L{constructor(t){super(t),this.destination=t}}let h=(()=>{class t extends n.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[c.b](){return new u(this)}lift(t){const e=new l(this,this);return e.operator=t,e}next(t){if(this.closed)throw new r.N;if(!this.isStopped){const{observers:e}=this,i=e.length,n=e.slice();for(let s=0;snew l(t,e),t})();class l extends h{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):o.w.EMPTY}}},9291:(t,e,i)=>{"use strict";i.d(e,{W:()=>s});var n=i(7570);class s extends n.w{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}},6673:(t,e,i)=>{"use strict";i.d(e,{L:()=>u});var n=i(5024),s=i(7498),o=i(7570),r=i(5331),a=i(1484),c=i(4294);class u extends o.w{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.c;break;case 1:if(!t){this.destination=s.c;break}if("object"==typeof t){t instanceof u?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new h(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new h(this,t,e,i)}}[r.b](){return this}static create(t,e,i){const n=new u(t,e,i);return n.syncErrorThrowable=!1,n}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class h extends u{constructor(t,e,i,o){let r;super(),this._parentSubscriber=t;let a=this;(0,n.m)(e)?r=e:e&&(r=e.next,i=e.error,o=e.complete,e!==s.c&&(a=Object.create(e),(0,n.m)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=r,this._error=i,this._complete=o}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=a.v;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):(0,c.z)(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;(0,c.z)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),a.v.useDeprecatedSynchronousErrorHandling)throw i;(0,c.z)(i)}}__tryOrSetError(t,e,i){if(!a.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(n){return a.v.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=n,t.syncErrorThrown=!0,!0):((0,c.z)(n),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},7570:(t,e,i)=>{"use strict";i.d(e,{w:()=>a});var n=i(8470),s=i(2056),o=i(5024);const r=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let a=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:i,_unsubscribe:a,_subscriptions:u}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof t)i.remove(this);else if(null!==i)for(let t=0;tt.concat(e instanceof r?e.errors:e),[])}},1484:(t,e,i)=>{"use strict";i.d(e,{v:()=>s});let n=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else n&&console.log("RxJS: Back to a better error behavior. Thank you. <3");n=t},get useDeprecatedSynchronousErrorHandling(){return n}}},2875:(t,e,i)=>{"use strict";i.d(e,{c:()=>a,N:()=>c});var n=i(5959),s=i(8318),o=i(7570),r=i(1564);class a extends s.y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new o.w,t.add(this.source.subscribe(new u(this.getSubject(),this))),t.closed&&(this._connection=null,t=o.w.EMPTY)),t}refCount(){return(0,r.x)()(this)}}const c=(()=>{const t=a.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class u extends n.Yc{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}},1305:(t,e,i)=>{"use strict";i.d(e,{aj:()=>u});var n=i(6163),s=i(8470),o=i(9829),r=i(6268),a=i(9342);const c={};function u(...t){let e=null,i=null;return(0,n.K)(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&(0,s.k)(t[0])&&(t=t[0]),(0,a.n)(t,i).lift(new h(e))}class h{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new l(t,this.resultSelector))}}class l extends o.L{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(c),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i{"use strict";i.d(e,{E:()=>s,c:()=>o});var n=i(8318);const s=new n.y(t=>t.complete());function o(t){return t?function(t){return new n.y(e=>t.schedule(()=>e.complete()))}(t):s}},9764:(t,e,i)=>{"use strict";i.d(e,{D:()=>l});var n=i(8318),s=i(6015),o=i(7570),r=i(6197),a=i(2570),c=i(5686),u=i(5168),h=i(9653);function l(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[r.L]}(t))return function(t,e){return new n.y(i=>{const n=new o.w;return n.add(e.schedule(()=>{const s=t[r.L]();n.add(s.subscribe({next(t){n.add(e.schedule(()=>i.next(t)))},error(t){n.add(e.schedule(()=>i.error(t)))},complete(){n.add(e.schedule(()=>i.complete()))}}))})),n})}(t,e);if((0,u.t)(t))return function(t,e){return new n.y(i=>{const n=new o.w;return n.add(e.schedule(()=>t.then(t=>{n.add(e.schedule(()=>{i.next(t),n.add(e.schedule(()=>i.complete()))}))},t=>{n.add(e.schedule(()=>i.error(t)))}))),n})}(t,e);if((0,h.z)(t))return(0,a.r)(t,e);if(function(t){return t&&"function"==typeof t[c.hZ]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new n.y(i=>{const n=new o.w;let s;return n.add(()=>{s&&"function"==typeof s.return&&s.return()}),n.add(e.schedule(()=>{s=t[c.hZ](),n.add(e.schedule(function(){if(i.closed)return;let t,e;try{const i=s.next();t=i.value,e=i.done}catch(n){return void i.error(n)}e?i.complete():(i.next(t),this.schedule())}))})),n})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof n.y?t:new n.y((0,s.s)(t))}},9342:(t,e,i)=>{"use strict";i.d(e,{n:()=>r});var n=i(8318),s=i(625),o=i(2570);function r(t,e){return e?(0,o.r)(t,e):new n.y((0,s.V)(t))}},1906:(t,e,i)=>{"use strict";i.d(e,{T:()=>a});var n=i(8318),s=i(6163),o=i(7471),r=i(9342);function a(...t){let e=Number.POSITIVE_INFINITY,i=null,a=t[t.length-1];return(0,s.K)(a)?(i=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===i&&1===t.length&&t[0]instanceof n.y?t[0]:(0,o.J)(e)((0,r.n)(t,i))}},878:(t,e,i)=>{"use strict";i.d(e,{of:()=>r});var n=i(6163),s=i(9342),o=i(2570);function r(...t){let e=t[t.length-1];return(0,n.K)(e)?(t.pop(),(0,o.r)(t,e)):(0,s.n)(t)}},3875:(t,e,i)=>{"use strict";i.d(e,{S3:()=>a});var n=i(8470),s=i(9342),o=i(9829),r=i(6268);function a(...t){if(1===t.length){if(!(0,n.k)(t[0]))return t[0];t=t[0]}return(0,s.n)(t,void 0).lift(new c)}class c{call(t,e){return e.subscribe(new u(t))}}class u extends o.L{constructor(t){super(t),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(t){this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(let i=0;i{"use strict";i.d(e,{_:()=>s});var n=i(8318);function s(t,e){return new n.y(e?i=>e.schedule(o,0,{error:t,subscriber:i}):e=>e.error(t))}function o({error:t,subscriber:e}){e.error(t)}},7727:(t,e,i)=>{"use strict";i.d(e,{K:()=>r});var n=i(9829),s=i(9867),o=i(6268);function r(t){return function(e){const i=new a(t),n=e.lift(i);return i.caught=n}}class a{constructor(t){this.selector=t}call(t,e){return e.subscribe(new c(t,this.selector,this.caught))}}class c extends n.L{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let i;try{i=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const n=new s.d(this,void 0,void 0);this.add(n);const r=(0,o.D)(this,i,void 0,void 0,n);r!==n&&this.add(r)}}}},436:(t,e,i)=>{"use strict";i.d(e,{b:()=>s});var n=i(3982);function s(t,e){return(0,n.zg)(t,e,1)}},7701:(t,e,i)=>{"use strict";i.d(e,{b:()=>o});var n=i(6673),s=i(8569);function o(t,e=s.P){return i=>i.lift(new r(t,e))}class r{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))}}class a extends n.L{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function c(t){t.debouncedNext()}},7768:(t,e,i)=>{"use strict";i.d(e,{d:()=>s});var n=i(6673);function s(t=null){return e=>e.lift(new o(t))}class o{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new r(t,this.defaultValue))}}class r extends n.L{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},509:(t,e,i)=>{"use strict";i.d(e,{g:()=>a});var n=i(8569),s=i(8802),o=i(6673),r=i(3103);function a(t,e=n.P){const i=(0,s.J)(t)?+t-e.now():Math.abs(t);return t=>t.lift(new c(i,e))}class c{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new u(t,this.delay,this.scheduler))}}class u extends o.L{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,n=t.scheduler,s=t.destination;for(;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const e=Math.max(0,i[0].time-n.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(u.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new h(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(r.P.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(r.P.createComplete()),this.unsubscribe()}}class h{constructor(t,e){this.time=t,this.notification=e}}},3835:(t,e,i)=>{"use strict";i.d(e,{h:()=>s});var n=i(6673);function s(t,e){return function(i){return i.lift(new o(t,e))}}class o{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new r(t,this.predicate,this.thisArg))}}class r extends n.L{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}},3530:(t,e,i)=>{"use strict";i.d(e,{P:()=>u});var n=i(9665),s=i(3835),o=i(611),r=i(7768),a=i(790),c=i(3392);function u(t,e){const i=arguments.length>=2;return u=>u.pipe(t?(0,s.h)((e,i)=>t(e,i,u)):c.y,(0,o.q)(1),i?(0,r.d)(e):(0,a.T)(()=>new n.K))}},9996:(t,e,i)=>{"use strict";i.d(e,{U:()=>s});var n=i(6673);function s(t,e){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new o(t,e))}}class o{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new r(t,this.project,this.thisArg))}}class r extends n.L{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}},7471:(t,e,i)=>{"use strict";i.d(e,{J:()=>o});var n=i(3982),s=i(3392);function o(t=Number.POSITIVE_INFINITY){return(0,n.zg)(s.y,t)}},3982:(t,e,i)=>{"use strict";i.d(e,{zg:()=>c});var n=i(6268),s=i(9829),o=i(9867),r=i(9996),a=i(9764);function c(t,e,i=Number.POSITIVE_INFINITY){return"function"==typeof e?n=>n.pipe(c((i,n)=>(0,a.D)(t(i,n)).pipe((0,r.U)((t,s)=>e(i,t,n,s))),i)):("number"==typeof e&&(i=e),e=>e.lift(new u(t,i)))}class u{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new h(t,this.project,this.concurrent))}}class h extends s.L{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},1564:(t,e,i)=>{"use strict";i.d(e,{x:()=>s});var n=i(6673);function s(){return function(t){return t.lift(new o(t))}}class o{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const n=new r(t,i),s=e.subscribe(n);return n.closed||(n.connection=i.connect()),s}}class r extends n.L{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,n=t._connection;this.connection=null,!n||i&&n!==i||n.unsubscribe()}}},1055:(t,e,i)=>{"use strict";i.d(e,{B:()=>a});var n=i(2875),s=i(1564),o=i(5959);function r(){return new o.xQ}function a(){return t=>{return(0,s.x)()((e=r,function(t){let i;i="function"==typeof e?e:function(){return e};const s=Object.create(t,n.N);return s.source=t,s.subjectFactory=i,s})(t));var e}}},4689:(t,e,i)=>{"use strict";i.d(e,{w:()=>c});var n=i(9829),s=i(9867),o=i(6268),r=i(9996),a=i(9764);function c(t,e){return"function"==typeof e?i=>i.pipe(c((i,n)=>(0,a.D)(t(i,n)).pipe((0,r.U)((t,s)=>e(i,t,n,s))))):e=>e.lift(new u(t))}class u{constructor(t){this.project=t}call(t,e){return e.subscribe(new h(t,this.project))}}class h extends n.L{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(n){return void this.destination.error(n)}this._innerSub(e,t,i)}_innerSub(t,e,i){const n=this.innerSubscription;n&&n.unsubscribe();const r=new s.d(this,e,i),a=this.destination;a.add(r),this.innerSubscription=(0,o.D)(this,t,void 0,void 0,r),this.innerSubscription!==r&&a.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,i,n,s){this.destination.next(e)}}},611:(t,e,i)=>{"use strict";i.d(e,{q:()=>r});var n=i(6673),s=i(8402),o=i(653);function r(t){return e=>0===t?(0,o.c)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new s.W}call(t,e){return e.subscribe(new c(t,this.total))}}class c extends n.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}},6599:(t,e,i)=>{"use strict";i.d(e,{b:()=>r});var n=i(6673);function s(){}var o=i(5024);function r(t,e,i){return function(n){return n.lift(new a(t,e,i))}}class a{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new c(t,this.nextOrObserver,this.error,this.complete))}}class c extends n.L{constructor(t,e,i,n){super(t),this._tapNext=s,this._tapError=s,this._tapComplete=s,this._tapError=i||s,this._tapComplete=n||s,(0,o.m)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||s,this._tapError=e.error||s,this._tapComplete=e.complete||s)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},790:(t,e,i)=>{"use strict";i.d(e,{T:()=>o});var n=i(9665),s=i(6673);function o(t=c){return e=>e.lift(new r(t))}class r{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new a(t,this.errorFactory))}}class a extends s.L{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function c(){return new n.K}},9085:(t,e,i)=>{"use strict";i.d(e,{V:()=>l});var n=i(8569);const s=(()=>{function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t})();var o=i(8802),r=i(9829),a=i(6268);class c{constructor(t,e,i,n){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=i,this.scheduler=n}call(t,e){return e.subscribe(new u(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class u extends r.L{constructor(t,e,i,n,s){super(t),this.absoluteTimeout=e,this.waitFor=i,this.withObservable=n,this.scheduler=s,this.action=null,this.scheduleTimeout()}static dispatchTimeout(t){const{withObservable:e}=t;t._unsubscribeAndRecycle(),t.add((0,a.D)(t,e))}scheduleTimeout(){const{action:t}=this;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(u.dispatchTimeout,this.waitFor,this))}_next(t){this.absoluteTimeout||this.scheduleTimeout(),super._next(t)}_unsubscribe(){this.action=null,this.scheduler=null,this.withObservable=null}}var h=i(1225);function l(t,e=n.P){return function(t,e,i=n.P){return n=>{let s=(0,o.J)(t),r=s?+t-i.now():Math.abs(t);return n.lift(new c(r,s,e,i))}}(t,(0,h._)(new s),e)}},2570:(t,e,i)=>{"use strict";i.d(e,{r:()=>o});var n=i(8318),s=i(7570);function o(t,e){return new n.y(i=>{const n=new s.w;let o=0;return n.add(e.schedule(function(){o!==t.length?(i.next(t[o++]),i.closed||n.add(this.schedule())):i.complete()})),n})}},8277:(t,e,i)=>{"use strict";i.d(e,{o:()=>o});var n=i(7570);class s extends n.w{constructor(t,e){super()}schedule(t,e=0){return this}}class o extends s{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 i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let i,n=!1;try{this.work(t)}catch(s){n=!0,i=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},1098:(t,e,i)=>{"use strict";i.d(e,{v:()=>s});let n=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(t,e=0,i){return new this.SchedulerAction(this,t).schedule(i,e)}}return t.now=()=>Date.now(),t})();class s extends n{constructor(t,e=n.now){super(t,()=>s.delegate&&s.delegate!==this?s.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return s.delegate&&s.delegate!==this?s.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}},8569:(t,e,i)=>{"use strict";i.d(e,{P:()=>s});var n=i(8277);const s=new(i(1098).v)(n.o)},5686:(t,e,i)=>{"use strict";function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}i.d(e,{hZ:()=>s});const s=n()},6197:(t,e,i)=>{"use strict";i.d(e,{L:()=>n});const n=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},5331:(t,e,i)=>{"use strict";i.d(e,{b:()=>n});const n=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},8402:(t,e,i)=>{"use strict";i.d(e,{W:()=>n});const n=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},9665:(t,e,i)=>{"use strict";i.d(e,{K:()=>n});const n=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})()},3895:(t,e,i)=>{"use strict";i.d(e,{N:()=>n});const n=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},4294:(t,e,i)=>{"use strict";function n(t){setTimeout(()=>{throw t},0)}i.d(e,{z:()=>n})},3392:(t,e,i)=>{"use strict";function n(t){return t}i.d(e,{y:()=>n})},8470:(t,e,i)=>{"use strict";i.d(e,{k:()=>n});const n=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))()},9653:(t,e,i)=>{"use strict";i.d(e,{z:()=>n});const n=t=>t&&"number"==typeof t.length&&"function"!=typeof t},8802:(t,e,i)=>{"use strict";function n(t){return t instanceof Date&&!isNaN(+t)}i.d(e,{J:()=>n})},5024:(t,e,i)=>{"use strict";function n(t){return"function"==typeof t}i.d(e,{m:()=>n})},2056:(t,e,i)=>{"use strict";function n(t){return null!==t&&"object"==typeof t}i.d(e,{K:()=>n})},5168:(t,e,i)=>{"use strict";function n(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}i.d(e,{t:()=>n})},6163:(t,e,i)=>{"use strict";function n(t){return t&&"function"==typeof t.schedule}i.d(e,{K:()=>n})},6015:(t,e,i)=>{"use strict";i.d(e,{s:()=>h});var n=i(625),s=i(4294),o=i(5686),r=i(6197),a=i(9653),c=i(5168),u=i(2056);const h=t=>{if(t&&"function"==typeof t[r.L])return h=t,t=>{const e=h[r.L]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if((0,a.z)(t))return(0,n.V)(t);if((0,c.t)(t))return i=t,t=>(i.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,s.z),t);if(t&&"function"==typeof t[o.hZ])return e=t,t=>{const i=e[o.hZ]();for(;;){const e=i.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof i.return&&t.add(()=>{i.return&&i.return()}),t};{const e=(0,u.K)(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,i,h}},625:(t,e,i)=>{"use strict";i.d(e,{V:()=>n});const n=t=>e=>{for(let i=0,n=t.length;i{"use strict";i.d(e,{D:()=>r});var n=i(9867),s=i(6015),o=i(8318);function r(t,e,i,r,a=new n.d(t,i,r)){if(!a.closed)return e instanceof o.y?e.subscribe(a):(0,s.s)(e)(a)}},7632:(t,e,i)=>{"use strict";function n(t,e,i,n){return new(i||(i=Promise))(function(s,o){function r(t){try{c(n.next(t))}catch(e){o(e)}}function a(t){try{c(n.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(r,a)}c((n=n.apply(t,e||[])).next())})}i.d(e,{mG:()=>n})},306:t=>{"use strict";t.exports={i8:"5.2.0"}}},t=>{"use strict";t(t.s=1523)}]); \ No newline at end of file +(self.webpackChunkperun_web_apps=self.webpackChunkperun_web_apps||[]).push([[179],{3446:t=>{function e(t){return Promise.resolve().then(()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=()=>[],e.resolve=e,e.id=3446,t.exports=e},1523:(t,e,i)=>{"use strict";var n=i(1511),s=i(1572);class o extends n.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class r extends o{static makeCurrent(){(0,n.HT)(new r)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(c=c||document.querySelector("base"),c?c.getAttribute("href"):null);return null==e?null:function(t){a=a||document.createElement("a"),a.setAttribute("href",t);const e=a.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){c=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return(0,n.Mx)(document.cookie,t)}}let a,c=null;const u=new s.OlP("TRANSITION_ID"),h=[{provide:s.ip1,useFactory:function(t,e,i){return()=>{i.get(s.CZH).donePromise.then(()=>{const i=(0,n.q)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>i.remove(t))})}},deps:[u,n.K0,s.zs3],multi:!0}];class l{static init(){(0,s.VLi)(new l)}addToWindow(t){s.dqk.getAngularTestability=(e,i=!0)=>{const n=t.findTestabilityInTree(e,i);if(null==n)throw new Error("Could not find testability for element.");return n},s.dqk.getAllAngularTestabilities=()=>t.getAllTestabilities(),s.dqk.getAllAngularRootElements=()=>t.getAllRootElements(),s.dqk.frameworkStabilizers||(s.dqk.frameworkStabilizers=[]),s.dqk.frameworkStabilizers.push(t=>{const e=s.dqk.getAllAngularTestabilities();let i=e.length,n=!1;const o=function(e){n=n||e,i--,0==i&&t(n)};e.forEach(function(t){t.whenStable(o)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:i?(0,n.q)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let d=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const f=new s.OlP("EventManagerPlugins");let g=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,i){return this._findPluginFor(e).addEventListener(t,e,i)}addGlobalEventListener(t,e,i){return this._findPluginFor(e).addGlobalEventListener(t,e,i)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const i=this._plugins;for(let n=0;n{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),w=(()=>{class t extends m{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,i){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,i.push(e.appendChild(n))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(y),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,i)=>{this._addStylesToHost(t,i,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(y))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function y(t){(0,n.q)().remove(t)}const b={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/"},A=/%COMP%/g;function _(t,e,i){for(let n=0;n{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let T=(()=>{class t{constructor(t,e,i){this.eventManager=t,this.sharedStylesHost=e,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new k(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case s.ifc.Emulated:{let i=this.rendererByCompId.get(e.id);return i||(i=new C(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,i)),i.applyToHost(t),i}case 1:case s.ifc.ShadowDom:return new E(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=_(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(g),s.LFG(w),s.LFG(s.AFp))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class k{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(b[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,n){if(n){e=n+":"+e;const s=b[n];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const n=b[i];n?t.removeAttributeNS(n,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,n){n&(s.JOm.DashCase|s.JOm.Important)?t.style.setProperty(e,i,n&s.JOm.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&s.JOm.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,v(i)):this.eventManager.addEventListener(t,e,v(i))}}class C extends k{constructor(t,e,i,n){super(t),this.component=i;const s=_(n+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(A,n+"-"+i.id),this.hostAttr="_nghost-%COMP%".replace(A,n+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class E extends k{constructor(t,e,i,n){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=_(n.id,n.styles,[]);for(let o=0;o{class t extends p{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,i){return t.addEventListener(e,i,!1),()=>this.removeEventListener(t,e,i)}removeEventListener(t,e,i){return t.removeEventListener(e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const R=["alt","control","meta","shift"],P={"\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"},S={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"},B={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let M=(()=>{class t extends p{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,s){const o=t.parseEventName(i),r=t.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,n.q)().onAndCancel(e,o.domEventName,r))}static parseEventName(e){const i=e.toLowerCase().split("."),n=i.shift();if(0===i.length||"keydown"!==n&&"keyup"!==n)return null;const s=t._normalizeKey(i.pop());let o="";if(R.forEach(t=>{const e=i.indexOf(t);e>-1&&(i.splice(e,1),o+=t+".")}),o+=s,0!=i.length||0===s.length)return null;const r={};return r.domEventName=n,r.fullKey=o,r}static getEventFullKey(t){let e="",i=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&S.hasOwnProperty(e)&&(e=S[e]))}return P[e]||e}(t);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),R.forEach(n=>{n!=i&&(0,B[n])(t)&&(e+=n+".")}),e+=i,e}static eventCallback(e,i,n){return s=>{t.getEventFullKey(s)===e&&n.runGuarded(()=>i(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),K=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,s.Yz7)({factory:function(){return(0,s.LFG)(H)},token:t,providedIn:"root"}),t})();function x(t){return new H(t.get(n.K0))}let H=(()=>{class t extends K{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case s.q3G.NONE:return e;case s.q3G.HTML:return(0,s.qzn)(e,"HTML")?(0,s.z3N)(e):(0,s.EiD)(this._doc,String(e)).toString();case s.q3G.STYLE:return(0,s.qzn)(e,"Style")?(0,s.z3N)(e):e;case s.q3G.SCRIPT:if((0,s.qzn)(e,"Script"))return(0,s.z3N)(e);throw new Error("unsafe value used in a script context");case s.q3G.URL:return(0,s.yhl)(e),(0,s.qzn)(e,"URL")?(0,s.z3N)(e):(0,s.mCW)(String(e));case s.q3G.RESOURCE_URL:if((0,s.qzn)(e,"ResourceURL"))return(0,s.z3N)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return(0,s.JVY)(t)}bypassSecurityTrustStyle(t){return(0,s.L6k)(t)}bypassSecurityTrustScript(t){return(0,s.eBb)(t)}bypassSecurityTrustUrl(t){return(0,s.LAX)(t)}bypassSecurityTrustResourceUrl(t){return(0,s.pB0)(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=(0,s.Yz7)({factory:function(){return x((0,s.LFG)(s.gxx))},token:t,providedIn:"root"}),t})();const j=(0,s.eFA)(s._c5,"browser",[{provide:s.Lbi,useValue:n.bD},{provide:s.g9A,useValue:function(){r.makeCurrent(),l.init()},multi:!0},{provide:n.K0,useFactory:function(){return(0,s.RDi)(document),document},deps:[]}]),I=[[],{provide:s.zSh,useValue:"root"},{provide:s.qLn,useFactory:function(){return new s.qLn},deps:[]},{provide:f,useClass:z,multi:!0,deps:[n.K0,s.R0b,s.Lbi]},{provide:f,useClass:M,multi:!0,deps:[n.K0]},[],{provide:T,useClass:T,deps:[g,w,s.AFp]},{provide:s.FYo,useExisting:T},{provide:m,useExisting:w},{provide:w,useClass:w,deps:[n.K0]},{provide:s.dDg,useClass:s.dDg,deps:[s.R0b]},{provide:g,useClass:g,deps:[f,s.R0b]},{provide:n.JF,useClass:d,deps:[]},[]];let L=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:s.AFp,useValue:e.appId},{provide:u,useExisting:s.AFp},h]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(t,12))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:I,imports:[n.ez,s.hGG]}),t})();function O(){return new F((0,s.LFG)(n.K0))}let F=(()=>{class t{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=(0,s.Yz7)({factory:O,token:t,providedIn:"root"}),t})();"undefined"!=typeof window&&window;var D=i(9063);class q{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const N=new s.OlP("basePath");class U{constructor(t={}){this.apiKeys=t.apiKeys,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.withCredentials=t.withCredentials,this.encoder=t.encoder}selectHeaderContentType(t){if(0===t.length)return;const e=t.find(t=>this.isJsonMime(t));return void 0===e?t[0]:e}selectHeaderAccept(t){if(0===t.length)return;const e=t.find(t=>this.isJsonMime(t));return void 0===e?t[0]:e}isJsonMime(t){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==t&&(e.test(t)||"application/json-patch+json"===t.toLowerCase())}}let G=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}convertAttributeToNonunique(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}convertAttributeToUnique(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("attribute",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteAttributeDefinitions(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let n=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("attributes[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllAttributeDefinitions(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAttribute(t,e,i,n,s,o,r,a,c,u,h,l="body",d=!1){let f=new D.LE({encoder:this.encoder});null!=t&&(f=f.set("attributeName",t)),null!=e&&(f=f.set("attributeId",e)),null!=i&&(f=f.set("facility",i)),null!=n&&(f=f.set("user",n)),null!=s&&(f=f.set("vo",s)),null!=o&&(f=f.set("resource",o)),null!=r&&(f=f.set("member",r)),null!=a&&(f=f.set("group",a)),null!=c&&(f=f.set("host",c)),null!=u&&(f=f.set("userExtSource",u)),null!=h&&(f=f.set("key",h));let g=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(g=g.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(g=g.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;g=g.set("Authorization","Bearer "+t)}const p=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==p&&(g=g.set("Accept",p)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{params:f,withCredentials:this.configuration.withCredentials,headers:g,observe:l,reportProgress:d})}getAttributeDefinitionById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeDefinitionByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeDefinitionsByNamespace(t,e="body",i=!1){if(null==t)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("namespace",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeModulesDependenciesForAttributeGraphText(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("format",t)),null!=e&&(s=s.set("attrName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAttributeModulesDependenciesGraphText(t,e="body",i=!1){if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("format",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeRights(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributesDefinitionWithRights(t,e,i,n,s,o,r,a,c="body",u=!1){let h=new D.LE({encoder:this.encoder});null!=t&&(h=h.set("member",t)),null!=e&&(h=h.set("user",e)),null!=i&&(h=h.set("vo",i)),null!=n&&(h=h.set("group",n)),null!=s&&(h=h.set("resource",s)),null!=o&&(h=h.set("facility",o)),null!=r&&(h=h.set("host",r)),null!=a&&(h=h.set("userExtSource",a));let l=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(l=l.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;l=l.set("Authorization","Bearer "+t)}const d=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==d&&(l=l.set("Accept",d)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{params:h,withCredentials:this.configuration.withCredentials,headers:l,observe:c,reportProgress:u})}getEntitylessAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("key",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getEntitylessAttributesByKey(t,e="body",i=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("key",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEntitylessAttributesByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("attrName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEntitylessAttributesWithKeys(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("attrName",t)),e&&e.forEach(t=>{s=s.append("keys[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getEntitylessKeys(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilityAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilityResourceUserMemberAttributes(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==n)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("user",i)),null!=n&&(r=r.set("member",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getFacilityUserAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupResourceAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getGroupResourceAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getGroupResourceAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getHostAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getHostAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getHostAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("host",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getLogins(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getLogins.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberAndUserAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==e)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("workWithUserAttributes",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberAndUserAttributesByNames(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("workWithUserAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberGroupAndUserAttributesByNames(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attrNames[]",t)}),null!=n&&(r=r.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberGroupAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("attributeId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberGroupAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("attributeName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberGroupAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberGroupAttributesByNames(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberResourceAndUserFacilityAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("workWithUserAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberResourceAndUserFacilityAttributesByNames(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attrNames[]",t)}),null!=n&&(r=r.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberResourceAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberResourceAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberResourceAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesFacilityService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesFacilityServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let s=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("services[]",t)}),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesGroupResourceService(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("group",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getRequiredAttributesHostService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==e)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("host",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("workWithUserAttributes",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesMemberGroup(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("workWithUserAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getRequiredAttributesMemberGroupResourceService(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==n)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let a=new D.LE({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("group",i)),null!=n&&(a=a.set("member",n)),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getRequiredAttributesMemberGroupService(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("member",i)),null!=n&&(r=r.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRequiredAttributesMemberResource(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("workWithUserAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getRequiredAttributesMemberResourceService(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("member",i)),null!=n&&(r=r.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRequiredAttributesResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesResourceService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesResourceServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let s=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("services[]",t)}),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesUserFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesVoService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("vo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourceAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceGroupAndGroupAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==i)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("workWithGroupAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getResourceGroupAndGroupAttributesByNames(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attrNames[]",t)}),null!=n&&(r=r.set("workWithGroupAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getResourceGroupAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceGroupMemberAttributesByNames(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==n)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("member",i)),n&&n.forEach(t=>{r=r.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getUserAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserExtSourceAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserExtSourceAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserExtSourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("userExtSource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourceAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserFacilityAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("attributeId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getUserFacilityAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("attributeName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getUserFacilityAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getVoAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getVoAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getVoAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeAttributesForFacilityResourceGroupUserMember(t,e,i,n,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==i)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==n)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let c=new D.LE({encoder:this.encoder});null!=t&&(c=c.set("facility",t)),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("group",i)),null!=n&&(c=c.set("user",n)),null!=s&&(c=c.set("member",s)),o&&o.forEach(t=>{c=c.append("attributes[]",t)});let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}removeAttributesForFacilityResourceUserMember(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==i)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==n)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let a=new D.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("user",i)),null!=n&&(a=a.set("member",n)),s&&s.forEach(t=>{a=a.append("attributes[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}removeEntitylessAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("key",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupResourceAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attribute",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeGroupResourceAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeGroupResourceAttributesWorkWithGroupAttributes(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)}),null!=n&&(r=r.set("workWithGroupAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeHostAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeHostAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeMemberAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeMemberAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeMemberAttributesWorkWithUserAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)}),null!=i&&(o=o.set("workWithUserAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeMemberGroupAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("attribute",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeMemberGroupAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeMemberGroupAttributesWorkWithUserAttributes(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)}),null!=n&&(r=r.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeMemberResourceAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attribute",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeMemberResourceAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeResourceAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeResourceAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUesAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserExtSourceAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserFacilityAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("attribute",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeUserFacilityAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),i&&i.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeVoAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeVoAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}setAttributeRights(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAttributeRights was null or undefined when calling setAttributeRights.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setEntitylessAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityResourceGroupUserMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityResourceUserMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setHostAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetHostAttribute was null or undefined when calling setHostAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setHostAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetHostAttributes was null or undefined when calling setHostAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupWithUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAndUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberWithUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceGroupWithGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserAttribute was null or undefined when calling setUserAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserAttributes was null or undefined when calling setUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserExtSourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserExtSourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserFacilityAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setVoAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoAttribute was null or undefined when calling setVoAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setVoAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoAttributes was null or undefined when calling setVoAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}auditMessagesManagerLog(t,e="body",i=!1){if(null==t)throw new Error("Required parameter msg was null or undefined when calling auditMessagesManagerLog.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("msg",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/log`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createAuditerConsumer(t,e="body",i=!1){if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling createAuditerConsumer.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("consumerName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/createAuditerConsumer`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllAuditerConsumers(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getAllAuditerConsumers`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAuditerMessagesCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getAuditerMessagesCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getLastMessageId(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getLastMessageId`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getMessages(t,e="body",i=!1){let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("count",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getMessages`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMessagesByCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter count was null or undefined when calling getMessagesByCount.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("count",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getMessagesByCount`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMessagesPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetMessagesPage was null or undefined when calling getMessagesPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/auditMessagesManager/getMessagesPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}pollConsumerMessages(t,e="body",i=!1){if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling pollConsumerMessages.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("consumerName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/pollConsumerMessages`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}setLastProcessedId(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling setLastProcessedId.");if(null==e)throw new Error("Required parameter lastProcessedId was null or undefined when calling setLastProcessedId.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("consumerName",t)),null!=e&&(s=s.set("lastProcessedId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/setLastProcessedId`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),V=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}getAllPolicies(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllRolesManagementRules(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAuthzAdminGroups(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("role",t)),null!=e&&(o=o.set("complementaryObjectId",e)),null!=i&&(o=o.set("complementaryObjectName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getAuthzRichAdmins(t,e,i,n,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==n)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let c=new D.LE({encoder:this.encoder});null!=t&&(c=c.set("role",t)),null!=e&&(c=c.set("complementaryObjectId",e)),null!=i&&(c=c.set("complementaryObjectName",i)),n&&n.forEach(t=>{c=c.append("specificAttributes",t)}),null!=s&&(c=c.set("allUserAttributes",s)),null!=o&&(c=c.set("onlyDirectAdmins",o));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}getFacilitiesWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let s=new D.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupRoleNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupRoles(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("groupId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let s=new D.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getLoggedUser(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getMembersWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let s=new D.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getPerunPrincipal(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPrincipalRoleNames(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getResourcesWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let s=new D.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSecurityTeamsWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let s=new D.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserRoleNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserRoles(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("userId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let s=new D.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}isFacilityAdmin(t,e="body",i=!1){let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isGroupAdmin(t,e="body",i=!1){let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isPerunAdmin(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}isVoAdmin(t,e="body",i=!1){let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}keepAlive(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}loadAuthorizationComponents(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}setRoleWithGroupComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter setRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setRoleWithUserComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter setRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unsetRoleWithGroupComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter unsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unsetRoleWithUserComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter unsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),W=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}createAutorship(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateAuthorship was null or undefined when calling createAutorship.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createAuthorship`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createCategoryCat(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateCategory was null or undefined when calling createCategoryCat.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/cat`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createCategoryNR(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateCategory1 was null or undefined when calling createCategoryNR.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/n-r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createPublication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreatePublication was null or undefined when calling createPublication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublication`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createPublicationSystem(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreatePublicationSystem was null or undefined when calling createPublicationSystem.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublicationSystem`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createThanks(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateThanks was null or undefined when calling createThanks.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createThanks`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAuthorship(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter publicationId was null or undefined when calling deleteAuthorship.");if(null==e)throw new Error("Required parameter userId was null or undefined when calling deleteAuthorship.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("publicationId",t)),null!=e&&(s=s.set("userId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteAuthorship`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteCategory(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteCategory.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteCategory`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deletePublication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deletePublication.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deletePublicationSystem(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deletePublicationSystem.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublicationSystem`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteThanks(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteThanks.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteThanks`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findAllAuthors(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAllAuthors`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}findAuthorsByPublicationId(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findAuthorsByPublicationId.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAuthorsByPublicationId`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findExternalPublications(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling findExternalPublications.");if(null==e)throw new Error("Required parameter yearSince was null or undefined when calling findExternalPublications.");if(null==i)throw new Error("Required parameter yearTill was null or undefined when calling findExternalPublications.");if(null==n)throw new Error("Required parameter pubSysNamespace was null or undefined when calling findExternalPublications.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("yearSince",e)),null!=i&&(r=r.set("yearTill",i)),null!=n&&(r=r.set("pubSysNamespace",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findExternalPublications`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}findNewAuthors(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findNewAuthors.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findNewAuthors`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findPublicationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findPublicationById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findPublicationsByFilter(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter userId was null or undefined when calling findPublicationsByFilter.");let o=new D.LE({encoder:this.encoder});null!=e&&(o=o.set("yearSince",e)),null!=i&&(o=o.set("yearTill",i)),null!=t&&(o=o.set("userId",t));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByFilter`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}findPublicationsByGUIFilter(t,e,i,n,s,o,r,a,c,u="body",h=!1){let l=new D.LE({encoder:this.encoder});null!=t&&(l=l.set("title",t)),null!=e&&(l=l.set("isbn",e)),null!=i&&(l=l.set("doi",i)),null!=n&&(l=l.set("id",n)),null!=s&&(l=l.set("year",s)),null!=o&&(l=l.set("category",o)),null!=r&&(l=l.set("yearSince",r)),null!=a&&(l=l.set("yearTill",a)),null!=c&&(l=l.set("userId",c));let d=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(d=d.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(d=d.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;d=d.set("Authorization","Bearer "+t)}const f=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==f&&(d=d.set("Accept",f)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByGUIFilter`,{params:l,withCredentials:this.configuration.withCredentials,headers:d,observe:u,reportProgress:h})}findSimilarPublications(t,e,i,n="body",s=!1){let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("title",t)),null!=e&&(o=o.set("doi",e)),null!=i&&(o=o.set("isbn",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findSimilarPublications`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getCategories(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getCategories`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPublicationSystems(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getPublicationSystems`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getRank(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRank.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getRank`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichThanksByPublicationId(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichThanksByPublicationId.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getRichThanksByPublicationId`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}lockPublications(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputLockPublications was null or undefined when calling lockPublications.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/lockPublications`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateCategory(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateCategory was null or undefined when calling updateCategory.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updateCategory`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updatePublication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdatePublication was null or undefined when calling updatePublication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublication`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updatePublicationSystem(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdatePublicationSystem was null or undefined when calling updatePublicationSystem.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublicationSystem`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Y=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}getCurrentDatabaseVersion(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getCurrentDatabaseVersion`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getDatabaseDriverInformation(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getDatabaseDriverInformation`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getDatabaseInformation(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getDatabaseInformation`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getTimeOfQueryPerformance(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getTimeOfQueryPerformance`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Z=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}addExtSourceWithGroupSource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling addExtSourceWithGroupSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithGroupSource.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("source",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/g-s`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addExtSourceWithVoSource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addExtSourceWithVoSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithVoSource.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("source",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/v-s`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createExtSourceFromExtSourceObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter extSourceObject was null or undefined when calling createExtSourceFromExtSourceObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/extSourcesManager/createExtSource/es`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createExtSourceWithNameType(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createExtSourceWithNameType.");if(null==e)throw new Error("Required parameter type was null or undefined when calling createExtSourceWithNameType.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("name",t)),null!=e&&(s=s.set("type",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/createExtSource/n-t`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteExtSource.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/deleteExtSource`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getExtSourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getExtSourceById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getExtSourceByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getExtSourceByName.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("name",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceByName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getExtSources(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSources`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getGroupExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupExtSources.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getGroupExtSources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoExtSources.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getVoExtSources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}loadExtSourcesDefinitions(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/loadExtSourcesDefinitions`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeExtSourceWithGroupSource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeExtSourceWithGroupSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithGroupSource.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("source",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/g-s`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeExtSourceWithVoSource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeExtSourceWithVoSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithVoSource.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("source",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/v-s`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Q=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}addFacilityAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroup.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addFacilityAdminGroupByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroupByFacilityName.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroupByFacilityName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addFacilityAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUser.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addFacilityAdminUserByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUserByFacilityName.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUserByFacilityName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addFacilityOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwner.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwner.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addFacilityOwnerByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addFacilityOwnerByFacilityNameOwnerName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-o-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addFacilityOwnerByOwnerName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByOwnerName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/o-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addHost(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHost.");if(null==e)throw new Error("Required parameter hostname was null or undefined when calling addHost.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("hostname",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addHostByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHostByFacilityName.");if(null==e)throw new Error("Required parameter hostname was null or undefined when calling addHostByFacilityName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("hostname",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addHosts(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHosts.");if(null==e)throw new Error("Required parameter hostnames was null or undefined when calling addHosts.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("hostnames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addHostsByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHostsByFacilityName.");if(null==e)throw new Error("Required parameter hostnames was null or undefined when calling addHostsByFacilityName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("hostnames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}assignSecurityTeam(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeam.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeam.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("securityTeam",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}assignSecurityTeamByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeamByFacilityName.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeamByFacilityName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("securityTeam",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributes.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyAttributesByDestinationName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributesByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesByDestinationName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacilityName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/dest-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyAttributesBySourceDestinationNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacilityName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-dest-names`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyAttributesBySourceName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributesBySourceName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyManagers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagers.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyManagers.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyManagersByDestinationName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagersByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersByDestinationName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacilityName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/dest-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyManagersBySourceDestinationNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacilityName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-dest-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyManagersBySourceName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyManagersBySourceName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyOwners(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwners.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyOwners.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyOwnersByDestinationName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwnersByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersByDestinationName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacilityName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/dest-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyOwnersBySourceDestinationNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacilityName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-dest-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyOwnersBySourceName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyOwnersBySourceName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createFacility.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("name",t)),null!=e&&(s=s.set("description",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/createFacility`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling deleteFacility.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("force",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling deleteFacilityByFacilityName.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility/f-name`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilities`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllowedGroups(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroups.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("service",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getAllowedGroupsByFacilityName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroupsByFacilityName.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("service",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups/f-name`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getAllowedRichGroupsWithAttributes(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributes.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributes.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("vo",i)),null!=n&&(r=r.set("service",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAllowedRichGroupsWithAttributesByFacilityName(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("vo",i)),null!=n&&(r=r.set("service",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes/f-name`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAllowedUsersOfFacility(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacility.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("service",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getAllowedUsersOfFacilityByFacilityName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacilityByFacilityName.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("service",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s/f-name`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getAllowedVos(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedVos.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedVosByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedVosByFacilityName.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos/f-name`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedFacilitiesByGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedFacilitiesByGroup.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/group`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedFacilitiesByMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedFacilitiesByMember.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/member`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedFacilitiesByService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedFacilitiesByService.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/service`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedFacilitiesByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedFacilitiesByUser.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/user`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesByAssignedServiceForFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResourcesByAssignedService`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAssignedResourcesForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacility.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesForFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacilityByFacilityName.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacility.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesForFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityByFacilityName.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedSecurityTeams(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeams.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedSecurityTeamsByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeamsByFacilityName.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedUsers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsers.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAssignedUsersByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsersByFacilityName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getBansForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facilityId was null or undefined when calling getBansForFacility.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facilityId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForFacility`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getBansForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getBansForUser.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEnrichedFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedFacilities`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getEnrichedHosts(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedHosts.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getEnrichedHosts.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedHosts`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilitiesByAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttribute.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttribute.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeName",t)),null!=e&&(s=s.set("attributeValue",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByAttribute`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilitiesByDestination(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling getFacilitiesByDestination.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("destination",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByDestination`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilitiesByHostName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling getFacilitiesByHostName.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByHostName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilitiesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getFacilitiesByIds.");let n=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilitiesCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFacilitiesWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilitiesWhereUserIsAdmin.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesWhereUserIsAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAdminGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroups.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAdminUsers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsers.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsers.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("onlyDirectAdmins",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilityAdminUsersByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsersByFacilityName.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsersByFacilityName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("onlyDirectAdmins",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilityBan(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityBan.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityBan.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBan`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilityBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getFacilityBanById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBanById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getFacilityById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getFacilityByName.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("name",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityByName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityForHost(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getFacilityForHost.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("host",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityForHost`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityOwners(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwners.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityOwnersByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwnersByFacilityName.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getHostById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHosts(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHosts.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostsByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsByFacilityName.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostsByHostname(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling getHostsByHostname.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsByHostname`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostsCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsCount.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostsCountByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsCountByFacilityName.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getOwnerFacilities(t,e="body",i=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling getOwnerFacilities.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("owner",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwnerFacilities`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getRichFacilities`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeBanByUserIdFacilityId(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeBanByUserIdFacilityId.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeBanByUserIdFacilityId.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byUserIdFacilityId`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroup.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityAdminGroupByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroupByFacilityName.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroupByFacilityName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUser.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityAdminUserByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUserByFacilityName.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUserByFacilityName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeFacilityBanById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byId`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeFacilityOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwner.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwner.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityOwnerByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityOwnerByFacilityNameOwnerName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-o-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityOwnerByOwnerName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByOwnerName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/o-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeHost(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHost.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("host",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHost`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeHostByHostname(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling removeHostByHostname.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHostByHostname`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeHosts(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeHosts.");if(null==e)throw new Error("Required parameter hosts was null or undefined when calling removeHosts.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("hosts[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeHostsByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeHostsByFacilityName.");if(null==e)throw new Error("Required parameter hosts was null or undefined when calling removeHostsByFacilityName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("hosts[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeSecurityTeam(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeam.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeam.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("securityTeam",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeSecurityTeamByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeamByFacilityName.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeamByFacilityName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("securityTeam",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}setFacilityBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetBanForUserOnFacility was null or undefined when calling setFacilityBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFacility was null or undefined when calling updateFacility.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateFacility`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFacilityBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateBanForFacility was null or undefined when calling updateFacilityBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),J=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}getFacilityAdminGroupsByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroupsByFacilityName.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),X=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}addMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling addMember.");let s=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("member",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addMembers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling addMembers.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("members[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}canExtendMembershipInGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createGroupUnion(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resultGroup",t)),null!=e&&(s=s.set("operandGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createGroupWithParentGroupNameDescription(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("parentGroup",t)),null!=e&&(o=o.set("name",e)),null!=i&&(o=o.set("description",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}createGroupWithVoNameDescription(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("name",e)),null!=i&&(o=o.set("description",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}deleteGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("force",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputDeleteGroups was null or undefined when calling deleteGroups.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/deleteGroups`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}extendMembershipInGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}forceAllSubGroupsSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}forceGroupStructureSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}forceGroupSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllGroupsFromAllVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups/all`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllMemberGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllRichGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");let n=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("attrNames[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllRichGroupsWithAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAllRichSubGroupsWithGroupAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==e)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("name",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupByName`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupMemberById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==e)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("member",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupMembersCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupMembersCountsByGroupStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupMembersCountsByVoStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupRichMembersByIds(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==e)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("members[]",t)}),i&&i.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getGroupUnions(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==e)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("reverseDirection",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupUnions`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupsByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let n=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedGroups was null or undefined when calling getGroupsPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getGroupsPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getIndirectMembershipPaths(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberRichGroupsWithAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRichGroupByIdWithAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("groupId",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSubgroupsPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getSubgroupsPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}isGroupMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==e)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isGroupMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}moveGroupWithDestinationGroupMovingGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let s=new D.LE({encoder:this.encoder});null!=e&&(s=s.set("destinationGroup",e)),null!=t&&(s=s.set("movingGroup",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupUnion(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resultGroup",t)),null!=e&&(s=s.set("operandGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMember.");let s=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("member",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeMembers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("members[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}setGroupsMemberStatus(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==e)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==i)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("status",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}updateGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateGroup was null or undefined when calling updateGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/updateGroup`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),tt=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}getGroupMemberData(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/integrationManager/getGroupMemberData`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),et=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}canExtendMembership(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/canExtendMembership`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createMemberForCandidate(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/c`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createMemberForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberForUser was null or undefined when calling createMemberForUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createMemberFromExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/extSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSpecificMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSpecificMember was null or undefined when calling createSpecificMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSpecificMember`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMember1 was null or undefined when calling createSponsoredMembers.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMembersFromCSV(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let n=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("members[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}extendMembership(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findCompleteRichMembersByAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let o=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("attrsNames[]",t)}),null!=e&&(o=o.set("searchString",e)),i&&i.forEach(t=>{o=o.append("allowedStatuses[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}findCompleteRichMembersForGroup(t,e,i,n,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==n)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let c=new D.LE({encoder:this.encoder});null!=t&&(c=c.set("group",t)),e&&e.forEach(t=>{c=c.append("attrsNames[]",t)}),s&&s.forEach(t=>{c=c.append("allowedStatuses[]",t)}),o&&o.forEach(t=>{c=c.append("allowedGroupStatuses[]",t)}),null!=i&&(c=c.set("searchString",i)),null!=n&&(c=c.set("lookingInParentGroup",n));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}findCompleteRichMembersForVo(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("attrsNames[]",t)}),n&&n.forEach(t=>{r=r.append("allowedStatuses[]",t)}),null!=i&&(r=r.set("searchString",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}findMembersInVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("searchString",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findMembersInVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}findSponsoredCompleteRichMembersForVo(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==n)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("attrsNames[]",t)}),null!=i&&(r=r.set("searchString",i)),null!=n&&(r=r.set("onlySponsored",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAllMembers(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllMembers`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllNamespacesRules(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllSponsoredMembersAndTheirSponsors(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getCompleteRichMembersForGroup(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let a=new D.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),i&&i.forEach(t=>{a=a.append("allowedStatuses[]",t)}),n&&n.forEach(t=>{a=a.append("allowedGroupStatuses[]",t)}),null!=e&&(a=a.set("lookingInParentGroup",e)),s&&s.forEach(t=>{a=a.append("attrsNames[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getCompleteRichMembersForGroupResource(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==i)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==n)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attrsNames[]",t)}),n&&n.forEach(t=>{r=r.append("allowedStatuses[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getCompleteRichMembersForVo(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("allowedStatuses[]",t)}),i&&i.forEach(t=>{o=o.append("attrsNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberByExtSourceNameAndExtLogin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==i)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("extLogin",e)),null!=i&&(o=o.set("extSourceName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberByUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByUser`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMembers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("status",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMembersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let n=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMembersByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMembersCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMembersPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedMembers was null or undefined when calling getMembersPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/getMembersPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getMembersWithStatusCount(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==e)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("status",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount/status`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRichMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichMemberWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichMembersByIds(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let s=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)}),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getSponsoredMembersAndTheirSponsors(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSponsorsByMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/member`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSponsorsByVo(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("extSourceName",e)),null!=i&&(r=r.set("extLogin",i)),n&&n.forEach(t=>{r=r.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/vo`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}moveMembership(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==e)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==i)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("sourceUser",e)),null!=i&&(o=o.set("targetUser",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeSponsor(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("sponsor",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}sendAccountActivationLinkEmail(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==n)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("namespace",e)),null!=i&&(r=r.set("emailAttributeURN",i)),null!=n&&(r=r.set("language",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}sendPasswordResetLinkEmail(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==n)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let a=new D.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("emailAttributeURN",i)),null!=n&&(a=a.set("language",n)),null!=s&&(a=a.set("baseUrl",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}setSponsoredMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/setSponsoredMember`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setSponsorshipForMember(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("sponsoredMember",t)),null!=e&&(o=o.set("sponsor",e)),null!=i&&(o=o.set("validityTo",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}setStatus(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==e)throw new Error("Required parameter status was null or undefined when calling setStatus.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("status",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}sponsorMember(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("sponsor",e)),null!=i&&(o=o.set("validityTo",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}updateSponsorshipValidity(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("sponsor",e)),null!=i&&(o=o.set("validityTo",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}validateMemberAsync(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),it=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}createOwner(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateOwner was null or undefined when calling createOwner.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/ownersManager/createOwner`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("owner",t)),null!=e&&(s=s.set("force",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAllOwners(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwners`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getOwnerById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getOwnerByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("owner",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerByName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),nt=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}sentMessageToRTWithMemberQueue(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("memberId",t)),null!=e&&(r=r.set("queue",e)),null!=i&&(r=r.set("subject",i)),null!=n&&(r=r.set("text",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}sentMessageToRTWithQueue(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("queue",t)),null!=e&&(o=o.set("subject",e)),null!=i&&(o=o.set("text",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}sentMessageToRTWithVo(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("voId",t)),null!=e&&(o=o.set("subject",e)),null!=i&&(o=o.set("text",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}sentMessageToRTWithVoQueue(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("voId",t)),null!=e&&(r=r.set("queue",e)),null!=i&&(r=r.set("subject",i)),null!=n&&(r=r.set("text",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),st=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}addApplicationMailForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addApplicationMailForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addGroupsToAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let n=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("groups[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}approveApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}checkForSimilarUsersWithAuthInfo(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}consolidateIdentityUsingToken(t,e="body",i=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("token",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}copyFormFromGroupToGroup(t,e,i="body",n=!1){let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyFormFromGroupToVo(t,e,i="body",n=!1){let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toVo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyFormFromVoToGroup(t,e,i="body",n=!1){let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyFormFromVoToVo(t,e,i="body",n=!1){let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toVo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyMailsFromGroupToGroup(t,e,i="body",n=!1){let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyMailsFromGroupToVo(t,e,i="body",n=!1){let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toVo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyMailsFromVoToGroup(t,e,i="body",n=!1){let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyMailsFromVoToVo(t,e,i="body",n=!1){let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toVo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createApplicationFormInGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createApplicationFormInVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteApplicationMailForGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("id",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteApplicationMailForVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("id",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteGroupsFromAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let n=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("groups[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationDataById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationMailsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationMailsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationsForGroup(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(t=>{r=r.append("state[]",t)}),null!=i&&(r=r.set("dateFrom",i)),null!=n&&(r=r.set("dateTo",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getApplicationsForMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getApplicationsForVo(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("state[]",t)}),null!=i&&(r=r.set("dateFrom",i)),null!=n&&(r=r.set("dateTo",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getConsolidatorToken(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFormItemsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFormItemsForGroupWithType(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("type",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFormItemsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFormItemsForVoWithType(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("type",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupApplicationForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsToAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoApplicationForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}rejectApplication(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t)),null!=e&&(s=s.set("reason",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}sendInvitation(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let r=new D.LE({encoder:this.encoder});null!=i&&(r=r.set("voId",i)),null!=n&&(r=r.set("name",n)),null!=t&&(r=r.set("email",t)),null!=e&&(r=r.set("language",e));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}sendInvitationForGroup(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let a=new D.LE({encoder:this.encoder});null!=i&&(a=a.set("voId",i)),null!=n&&(a=a.set("groupId",n)),null!=s&&(a=a.set("name",s)),null!=t&&(a=a.set("email",t)),null!=e&&(a=a.set("language",e));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}sendInvitationGroupToExistingUser(t,e,i,n="body",s=!1){let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("userId",t)),null!=e&&(o=o.set("voId",e)),null!=i&&(o=o.set("groupId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}sendInvitationToExistingUser(t,e,i="body",n=!1){let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("userId",t)),null!=e&&(s=s.set("voId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}sendMessage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSendMessage was null or undefined when calling sendMessage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setSendingEnabled(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}submitApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSubmitApplication was null or undefined when calling submitApplication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateApplicationMail(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateForm was null or undefined when calling updateForm.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemData(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputFormItemData was null or undefined when calling updateFormItemData.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsData(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputFormItemData1 was null or undefined when calling updateFormItemsData.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}verifyApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ot=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}activateGroupResourceAssignment(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("async",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}addAdminToGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addAdminToUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addResourceSelfServiceGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addResourceSelfServiceUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}allowGroupsToResources(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");let o=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("groups[]",t)}),e&&e.forEach(t=>{o=o.append("resources[]",t)}),null!=i&&(o=o.set("async",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}assignGroupToResource(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let a=new D.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("async",i)),null!=n&&(a=a.set("assignInactive",n)),null!=s&&(a=a.set("autoAssignSubgroups",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}assignGroupToResources(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let a=new D.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),e&&e.forEach(t=>{a=a.append("resources[]",t)}),null!=i&&(a=a.set("async",i)),null!=n&&(a=a.set("assignInactive",n)),null!=s&&(a=a.set("autoAssignSubgroups",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}assignGroupsToResource(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let a=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{a=a.append("groups[]",t)}),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("async",i)),null!=n&&(a=a.set("assignInactive",n)),null!=s&&(a=a.set("autoAssignSubgroups",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}assignResourceTagToResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}assignService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling assignService.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}assignServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling assignServices.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("services[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}assignServicesPackage(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("servicesPackage",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCopyResource was null or undefined when calling copyResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/copyResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createResource(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==i)throw new Error("Required parameter name was null or undefined when calling createResource.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("name",i)),null!=n&&(r=r.set("description",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}createResourceTagWithResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createResourceTagWithTagName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("tagName",t)),null!=e&&(s=s.set("vo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deactivateGroupResourceAssignment(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteAllResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteAllResourcesTagsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAdminGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAdmins(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("onlyDirectAdmins",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdmins`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAllResourcesByResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAllResourcesTagsForResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllResourcesTagsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllResourcesWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedUsersOfResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedGroups(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("member",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAssignedMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedMembersWithStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembersWithStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesWithGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesWithMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesWithStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResourcesWithStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesWithGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesWithMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesWithMemberService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAssignedServicesToResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getBansForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getBansForResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForResource`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEnrichedResourceById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getEnrichedResourcesForFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getEnrichedResourcesForVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getFacility`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupAssignments(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceAssignments(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceBan(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBan`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBanById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourceByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==i)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("name",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceByName`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResources.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let n=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourcesCountForAll(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getResourcesCountForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourcesFromVoWhereUserIsAdmin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourcesWhereGroupIsAdmin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("group",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getResourcesWhereUserIsAdmin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("user",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getRichAdmins(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==e)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==i)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==n)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),e&&e.forEach(t=>{r=r.append("specificAttributes",t)}),null!=i&&(r=r.set("allUserAttributes",i)),null!=n&&(r=r.set("onlyDirectAdmins",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRichResourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichResourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let n=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getVo.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getVo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeAllResourceTagsFromResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeBanByMemberAndResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupAdminResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupFromResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupFromResources(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("resources[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupsFromResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let s=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeResourceBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeResourceSelfServiceGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeResourceSelfServiceUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeResourceTagFromResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}removeService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeService.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling removeServices.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("services[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeServicesPackage(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("servicesPackage",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserAdminResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}setResourceBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetBan was null or undefined when calling setResourceBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unallowGroupsFromResources(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let s=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),e&&e.forEach(t=>{s=s.append("resources[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}updateResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateResource was null or undefined when calling updateResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateResourceBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateBan was null or undefined when calling updateResourceBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateResourceTag was null or undefined when calling updateResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),rt=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}addDestination(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addDestination.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling addDestination.");if(null==i)throw new Error("Required parameter destination was null or undefined when calling addDestination.");if(null==n)throw new Error("Required parameter type was null or undefined when calling addDestination.");let a=new D.LE({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("facility",e)),null!=i&&(a=a.set("destination",i)),null!=n&&(a=a.set("type",n)),null!=s&&(a=a.set("propagationType",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestination`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}addDestinationToMultipleServices(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddDestinationToMultipleServices was null or undefined when calling addDestinationToMultipleServices.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestination`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addDestinationsDefinedByHostsOnFacilityWithFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithFacility.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/f`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddDestinationsDefinedByHostsOnFacility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestinationsDefinedByHostsOnFacility/lists-f`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/s-f`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addDestinationsForAllServicesOnFacility(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==i)throw new Error("Required parameter type was null or undefined when calling addDestinationsForAllServicesOnFacility.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("destination",e)),null!=i&&(r=r.set("type",i)),null!=n&&(r=r.set("propagationType",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsForAllServicesOnFacility`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}addRequiredAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addRequiredAttribute.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling addRequiredAttribute.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttribute`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addRequiredAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addRequiredAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling addRequiredAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttributes`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addServiceToServicesPackage(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling addServiceToServicesPackage.");if(null==e)throw new Error("Required parameter service was null or undefined when calling addServiceToServicesPackage.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("servicesPackage",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addServiceToServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}blockAllServicesOnDestinationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("destination",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/d`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}blockAllServicesOnDestinationByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationByName.");if(null==e)throw new Error("Required parameter destinationType was null or undefined when calling blockAllServicesOnDestinationByName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("destination",t)),null!=e&&(s=s.set("destinationType",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/dname-dtype`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}blockAllServicesOnFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling blockAllServicesOnFacility.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnFacility`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}blockServiceOnDestination(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestination.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("destination",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-d`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}blockServiceOnDestinationWithNameAndType(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==i)throw new Error("Required parameter destinationType was null or undefined when calling blockServiceOnDestinationWithNameAndType.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("destination",e)),null!=i&&(o=o.set("destinationType",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-dname-dtype`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}blockServiceOnFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling blockServiceOnFacility.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnFacility`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createService(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createService.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createService.");if(null==i)throw new Error("Required parameter script was null or undefined when calling createService.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("name",t)),null!=e&&(o=o.set("description",e)),null!=i&&(o=o.set("script",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createService`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}createServiceWithService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateService was null or undefined when calling createServiceWithService.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createService`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateServicesPackage was null or undefined when calling createServicesPackage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createServicesPackage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createServicesPackageByNameAndDescription(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createServicesPackageByNameAndDescription.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createServicesPackageByNameAndDescription.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("name",t)),null!=e&&(s=s.set("description",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling deleteService.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("force",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteService`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling deleteServicesPackage.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("servicesPackage",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteServicesPackage`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}forceServicePropagation(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling forceServicePropagation.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/forceServicePropagation`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAllDestinations(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/all`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllRichDestinationsForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllRichDestinationsForFacility.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/f`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllRichDestinationsForService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getAllRichDestinationsForService.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/s`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedResources.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedResourcesForService`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedServices(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedServices.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedServices`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getDataWithGroups(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getDataWithGroups.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDataWithGroups.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithGroups`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getDataWithVos(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getDataWithVos.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDataWithVos.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithVos`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getDestinationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getDestinationById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getDestinations(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDestinations.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/s-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getDestinationsCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationsCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFacilitiesDestinations(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFacilitiesDestinations.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilitiesDestinations`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAssignedServicesForGUI(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAssignedServicesForGUI.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilityAssignedServicesForGUI`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFlatData(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getFlatData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFlatData.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFlatData`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getHashedDataWithGroups(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getHashedDataWithGroups.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHashedDataWithGroups.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedDataWithGroups`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getHashedHierarchicalData(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getHashedHierarchicalData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHashedHierarchicalData.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedHierarchicalData`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getHierarchicalData(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getHierarchicalData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHierarchicalData.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHierarchicalData`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getRichDestinations(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRichDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRichDestinations.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getRichDestinations`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getServiceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getServiceById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServiceByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getServiceByName.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("name",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceByName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServices(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServices`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getServicesBlockedOnDestination(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling getServicesBlockedOnDestination.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("destination",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnDestination`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesBlockedOnFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getServicesBlockedOnFacility.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnFacility`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesByAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getServicesByAttributeDefinition.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesByAttributeDefinition`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesFromServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesFromServicesPackage.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("servicesPackage",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesFromServicesPackage`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesPackageById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesPackageById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("servicesPackage",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesPackageByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getServicesPackageByName.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("name",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageByName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesPackages(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackages`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}isServiceBlockedOnDestination(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling isServiceBlockedOnDestination.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("destination",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnDestination`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}isServiceBlockedOnFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling isServiceBlockedOnFacility.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnFacility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}planServicePropagation(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling planServicePropagation.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/planServicePropagation`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeAllDestinations(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeAllDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAllDestinations.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllDestinations`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeAllRequiredAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeAllRequiredAttributes.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllRequiredAttributes`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeDestination(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeDestination.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeDestination.");if(null==i)throw new Error("Required parameter destination was null or undefined when calling removeDestination.");if(null==n)throw new Error("Required parameter type was null or undefined when calling removeDestination.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("destination",i)),null!=n&&(r=r.set("type",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeDestination`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeRequiredAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttribute.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling removeRequiredAttribute.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttribute`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeRequiredAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeRequiredAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttributes`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeServiceFromServicesPackage(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServiceFromServicesPackage.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeServiceFromServicesPackage.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("servicesPackage",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeServiceFromServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}unblockAllServicesOnDestinationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("destination",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/d`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}unblockAllServicesOnDestinationByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationByName.");if(null==e)throw new Error("Required parameter destinationType was null or undefined when calling unblockAllServicesOnDestinationByName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("destination",t)),null!=e&&(s=s.set("destinationType",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/dname-dtype`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}unblockAllServicesOnFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling unblockAllServicesOnFacility.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnFacility`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}unblockServiceOnDestinationById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationById.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationById.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("destination",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-d`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}unblockServiceOnDestinationByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationByName.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationByName.");if(null==i)throw new Error("Required parameter destinationType was null or undefined when calling unblockServiceOnDestinationByName.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("destination",e)),null!=i&&(o=o.set("destinationType",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-dname-dtype`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}unblockServiceOnFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling unblockServiceOnFacility.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnFacility`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}updateService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateService was null or undefined when calling updateService.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateService`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateServicesPackage was null or undefined when calling updateServicesPackage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateServicesPackage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),at=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}countTasks(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/countTasks`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}deleteTask(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskIdObject was null or undefined when calling deleteTask.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTask`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteTaskResultById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskResultIdObject was null or undefined when calling deleteTaskResultById.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResultById`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteTaskResultsIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskAndDestinationIdObject was null or undefined when calling deleteTaskResultsIds.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/id`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteTaskResultsNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskAndDestinationNameObject was null or undefined when calling deleteTaskResultsNames.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/name`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAllFacilitiesStates(t,e="body",i=!1){let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllFacilitiesStates`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllResourcesState(t,e="body",i=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling getAllResourcesState.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("voId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllResourcesState`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityServicesState(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityServicesState.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityServicesState`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityState(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityState.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityState`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTask(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getTask.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getTask.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTask`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getTaskById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getTaskById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTaskResultById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskResult was null or undefined when calling getTaskResultById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("taskResult",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTaskResults(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResults`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getTaskResultsByTask(t,e="body",i=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsByTask.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("task",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsByTask`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTaskResultsForDestinations(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destinations was null or undefined when calling getTaskResultsForDestinations.");let n=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("destinations[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForDestinations`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTaskResultsForGUIByTask(t,e="body",i=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTask.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("task",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTask`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTaskResultsForGUIByTaskAndDestination(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("task",t)),null!=e&&(s=s.set("destination",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskAndDestination`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getTaskResultsForGUIByTaskOnlyNewest(t,e="body",i=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskOnlyNewest.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("task",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskOnlyNewest`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isThereSuchTask(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling isThereSuchTask.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling isThereSuchTask.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/isThereSuchTask`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}listAllTasks(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasks`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}listAllTasksForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling listAllTasksForFacility.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasksForFacility`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}suspendTasksPropagation(t,e="body",i=!1){if(null==t)throw new Error("Required parameter suspend was null or undefined when calling suspendTasksPropagation.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("suspend",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/suspendTasksPropagation`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ct=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}addSpecificUserOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("specificUser",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addUserExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter addUserExtSourceInput was null or undefined when calling addUserExtSource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}anonymizeUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}changeNonAuthzPasswordByToken(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==e)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("token",t)),null!=e&&(o=o.set("password",e)),null!=i&&(o=o.set("lang",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changeNonAuthzPassword/token`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}changePasswordForLogin(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");let a=new D.LE({encoder:this.encoder});null!=t&&(a=a.set("login",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("newPassword",i)),null!=n&&(a=a.set("oldPassword",n)),null!=s&&(a=a.set("checkOldPassword",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/login`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}changePasswordForUser(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");let a=new D.LE({encoder:this.encoder});null!=t&&(a=a.set("user",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("newPassword",i)),null!=n&&(a=a.set("oldPassword",n)),null!=s&&(a=a.set("checkOldPassword",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/user`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}checkPasswordResetRequestByTokenIsValid(t,e="body",i=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("token",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}checkPasswordStrength(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("password",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createAlternativePassword(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==i)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==n)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("description",e)),null!=i&&(r=r.set("loginNamespace",i)),null!=n&&(r=r.set("password",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/createAlternativePassword`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}createServiceUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateServiceUser was null or undefined when calling createServiceUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAlternativePassword(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==i)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("loginNamespace",e)),null!=i&&(o=o.set("passwordId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}deletePasswordForLogin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("login",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deletePasswordForUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("force",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}findRichUsers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findRichUsersWithAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("searchString",t)),e&&e.forEach(t=>{s=s.append("attrsNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}findUsers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}generateAccountForName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("namespace",t)),null!=e&&(s=s.set("name",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAllRichUsersWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("includedSpecificUsers",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsForFacilityWhereUserIsActive(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupsForResourceWhereUserIsActive(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupsInVoWhereUserIsAdmin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("vo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupsWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getPendingPreferredEmailChanges(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUserExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUserWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUsersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let n=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUsersWithAttributesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let n=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUsersWithoutVoWithAttributes(t,e="body",i=!1){let n=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("attrsNames[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getSpecificUsersByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getSponsorsForMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSponsorsForMemberByVoAndLogin(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let r=new D.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("extSourceName",e)),null!=i&&(r=r.set("extLogin",i)),n&&n.forEach(t=>{r=r.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getUserByExtSourceNameAndExtLogin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("extLogin",t)),null!=e&&(s=s.set("extSourceName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getUserById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("userExtSource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourceByUniqueAttributeValueAndAttributeId(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeId",t)),null!=e&&(s=s.set("attributeValue",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserExtSourceByUniqueAttributeValueAndAttributeName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeName",t)),null!=e&&(s=s.set("attributeValue",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let n=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUsers(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getUsersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let n=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUsersBySpecificUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("specificUser",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUsersPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedUsers was null or undefined when calling getUsersPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getVosWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosWhereUserIsMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isLoginAvailable(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==e)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("loginNamespace",t)),null!=e&&(s=s.set("login",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}loginExist(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeSpecificUserOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("specificUser",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserExtSource(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("userExtSource",e)),null!=i&&(o=o.set("force",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}requestPreferredEmailChange(t,e,i,n,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==e)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let c=new D.LE({encoder:this.encoder});null!=t&&(c=c.set("user",t)),null!=e&&(c=c.set("email",e)),null!=i&&(c=c.set("lang",i)),null!=n&&(c=c.set("linkPath",n)),null!=s&&(c=c.set("customUrl",s)),null!=o&&(c=c.set("idpFilter",o));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}reservePasswordForLogin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("login",t)),null!=e&&(o=o.set("namespace",e)),null!=i&&(o=o.set("password",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/login`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}reservePasswordForUser(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("namespace",e)),null!=i&&(o=o.set("password",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}reserveRandomPassword(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}updateUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateUser was null or undefined when calling updateUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}validatePasswordForLogin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("login",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}validatePasswordForUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}validatePreferredEmailChangeWithToken(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==e)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("token",t)),null!=e&&(s=s.set("u",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ut=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}getAppsConfig(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getGuiConfiguration(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunRPCVersion(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["text/plain"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunStatistics(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunStatus(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunSystemTimeInMillis(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ht=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new D.WM,this.configuration=new U,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new q}addSponsorRoleToGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addSponsorRoleToUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addVoAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addVoAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createVoWithName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==e)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("name",t)),null!=e&&(s=s.set("shortName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createVoWithVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateVoWithVo was null or undefined when calling createVoWithVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/createVo/withVo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("force",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}findCandidates(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("id",t)),null!=e&&(o=o.set("searchString",e)),null!=i&&(o=o.set("maxNumOfResults",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}findCandidatesForGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("searchString",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAllVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAllVos`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getCompleteCandidatesForGroup(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("searchString",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getCompleteCandidatesForVo(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("searchString",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMyVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVos`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getRichAdminsForVo(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==i)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==n)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==s)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let a=new D.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("role",e)),i&&i.forEach(t=>{a=a.append("specificAttributes",t)}),null!=n&&(a=a.set("allUserAttributes",n)),null!=s&&(a=a.set("onlyDirectAdmins",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getRichAdmins`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getVoAdminGroups(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("role",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdminGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getVoAdminUsers(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==i)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");let o=new D.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("role",e)),null!=i&&(o=o.set("onlyDirectAdmins",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdmins`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getVoBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoBanForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanForMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoBansForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBansForVo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getVoById.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoByShortName(t,e="body",i=!1){let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("shortName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoByShortName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoMembersCountsByStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let n=new D.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeSponsorRoleFromGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeSponsorRoleFromUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeVoAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeVoAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let s=new D.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeVoBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeVoBanForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let n=new D.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}setVoBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoBan was null or undefined when calling setVoBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateVo was null or undefined when calling updateVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/updateVo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(N,8),s.LFG(U,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var lt,dt,ft,gt;!function(t){t.HiddenEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"},t.DisabledEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"}}(lt||(lt={})),function(t){t.FormatEnum={DOT:"DOT",TGF:"TGF"}}(dt||(dt={})),function(t){t.OwnerTypeEnum={NUMBER_0:0,NUMBER_1:1}}(ft||(ft={})),function(t){t.TypeEnum={Technical:"technical",Administrative:"administrative"}}(gt||(gt={}));let pt=(()=>{class t{constructor(t,e){if(t)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!e)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:t,providers:[{provide:U,useFactory:e}]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(t,12),s.LFG(D.eN,8))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[G,$,V,W,Y,Z,Q,J,X,tt,et,it,nt,st,ot,rt,at,ct,ut,ht],imports:[[]]}),t})();var mt=function(t){return t.PERUNADMIN="PERUNADMIN",t.PERUNOBSERVER="PERUNOBSERVER",t.VOADMIN="VOADMIN",t.GROUPADMIN="GROUPADMIN",t.SELF="SELF",t.FACILITYADMIN="FACILITYADMIN",t.FACILITIYOBSERVER="FACILITYOBSERVER",t.RESOURCEADMIN="RESOURCEADMIN",t.RESOURCESELFSERVICE="RESOURCESELFSERVICE",t.REGISTRAR="REGISTRAR",t.ENGINE="ENGINE",t.RPC="RPC",t.NOTIFICATIONS="NOTIFICATIONS",t.SERVICEUSER="SERVICEUSER",t.SPONSOR="SPONSOR",t.VOOBSERVER="VOOBSERVER",t.TOPGROUPCREATOR="TOPGROUPCREATOR",t.SECURITYADMIN="SECURITYADMIN",t.CABINETADMIN="CABINETADMIN",t.UNKNOWNROLENAME="UNKNOWNROLENAME",t}({});let wt=(()=>{class t{constructor(t){this.authzSevice=t,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(t){this.principal=t,this.initData(t)}setPerunPolicies(t){this.perunPolicies=t}getPerunPolicies(){return this.perunPolicies}isAuthorized(t,e){if(null===this.principal.roles)return!1;const i=this.fetchPolicyWithAllIncludedPolicies(t);let n=[];for(const o of i)n=n.concat(o.perunRoles);const s=this.fetchAllRelatedObjects(e);return this.resolveAuthorization(n,s)}resolveAuthorization(t,e){for(const i of t){let t=!0;for(const n of Object.keys(i)){const s=i[n];if(null===s)this.principalRoles.has(n)||(t=!1);else if(e[s]){for(const i of e[s])if(!this.principalHasRole(n,s,i)){t=!1;break}}else t=!1;if(!t)break}if(t)return!0}return!1}fetchAllRelatedObjects(t){const e={};for(const i of t){let t=i.beanName;switch(i.beanName.startsWith("Rich")&&(t=i.beanName.substring(4)),e[t]?e[t].push(i.id):e[t]=[i.id],t){case"Member":e.User?e.User.push(i.userId):e.User=[i.userId],e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"Group":e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"Resource":e.Facility?e.Facility.push(i.facilityId):e.Facility=[i.facilityId],e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"ResourceTag":e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId]}}return e}principalHasRole(t,e,i){let n=e;return e.startsWith("Rich")&&(n=e.substring(4)),!(!this.principal.roles[t]||!this.principal.roles[t][n])&&this.principal.roles[t][n].includes(Number(i.toString()))}fetchPolicyWithAllIncludedPolicies(t){const e=new Map;let i=[];for(i.push(t);0!==i.length;){const n=i.shift();if(e.has(n)){console.log("Policy {} creates a cycle in the included policies of the policy {}",n,t);continue}const s=this.getPerunPolicy(n);if(!s)return[];e.set(n,s),i=i.concat(s.includePolicies)}const n=[];for(const s of e.values())n.push(s);return n}getPerunPolicy(t){for(const e of this.perunPolicies)if(e.policyName===t)return e;return console.log("policy with name"+t+"was not found"),null}canManageFacilities(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.PERUNOBSERVER,mt.FACILITYADMIN,mt.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(mt.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.VOADMIN)}isThisVoAdminOrObserver(t){return this.editableVos.includes(Number(t.toString()))||this.observableVos.includes(Number(t.toString()))||this.hasAtLeastOne(mt.PERUNADMIN,mt.PERUNOBSERVER)}isThisVoAdmin(t){return this.editableVos.includes(t)||this.principalRoles.has(mt.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(mt.SPONSOR)}isThisGroupAdmin(t){return this.editableGroups.includes(t)||this.principalRoles.has(mt.PERUNADMIN)}isGroupAdminInThisVo(t){return this.hasGroupInTheseVos.includes(t)}isFacilityAdmin(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.FACILITYADMIN)}isThisFacilityAdmin(t){return this.editableFacilities.includes(t)||this.principalRoles.has(mt.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(mt.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.VOOBSERVER,mt.PERUNOBSERVER)}isThisVoObserver(t){return this.hasAtLeastOne(mt.PERUNADMIN,mt.PERUNOBSERVER)||this.observableVos.includes(t)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((t,e)=>{this.authzSevice.getAllRolesManagementRules().subscribe(e=>{this.allRolesManagementRules=e,t()},t=>e(t))})}assignAvailableRoles(t,e){this.allRolesManagementRules.forEach(i=>{i.primaryObject===e&&t.push(i.roleName)}),t.sort(),"Vo"===e&&this.voCustomSort(t)}isManagerPagePrivileged(t){const e=[];let i=t.beanName;i.startsWith("Rich")&&(i=i.substr(4)),this.assignAvailableRoles(e,i);const n=new Map;this.getRolesAuthorization(e,t,n);for(const s of n.values())if(s.readAuth||s.manageAuth)return!0;return!1}getRolesAuthorization(t,e,i){for(const n of t){let t=[],s=[],o=[];for(const e of this.allRolesManagementRules)if(e.roleName===n){t=t.concat(e.privilegedRolesToRead),s=s.concat(e.privilegedRolesToManage);for(const t of Object.keys(e.entitiesToManage))o="User"===t?[t].concat(o):o.concat(t);break}const r=this.fetchAllRelatedObjects([e]),a=this.resolveAuthorization(t,r),c=this.resolveAuthorization(s,r);i.set(n,{readAuth:a,manageAuth:c,modes:o})}}voCustomSort(t){for(let e=0;e{class t{constructor(){this.branding=""}setInstanceConfig(t){this.instanceConfig=t}setDefaultConfig(t){this.defaultConfig=t}getAppsConfig(){return this.appsConfig}setAppsConfig(t){this.appsConfig=t}setPerunPrincipal(t){this.principal=t}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(t){this.initialPageId=t}getLoginAttributeNames(){return this.get("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.get("member_profile_attributes_friendly_names")}setBanding(t){this.branding=t}skipOidc(){return this.get("skip_oidc")}get(...t){let e;if(""!==this.branding){const i=this.instanceConfig.brandings[this.branding];for(let n=0;n(0,zt.k)(t)?n(...t):n(t))):new Et.y(n=>{Bt(t,e,function(t){n.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},n,i)})}function Bt(t,e,i,n,s){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const n=t;t.addEventListener(e,i,s),o=()=>n.removeEventListener(e,i,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const n=t;t.on(e,i),o=()=>n.off(e,i)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const n=t;t.addListener(e,i),o=()=>n.removeListener(e,i)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,r=t.length;o0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}var xt=i(1098);class Ht extends xt.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++nPromise.resolve())(),Ot={};function Ft(t){return t in Ot&&(delete Ot[t],!0)}const Dt={setImmediate(t){const e=It++;return Ot[e]=!0,Lt.then(()=>Ft(e)&&t()),e},clearImmediate(t){Ft(t)}};class qt extends Mt.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=Dt.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(Dt.clearImmediate(e),t.scheduled=void 0)}}class Nt extends xt.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++n=0}var te=i(6163);function ee(t=0,e,i){let n=-1;return Xt(e)?n=Number(e)<1?1:Number(e):(0,te.K)(e)&&(i=e),(0,te.K)(i)||(i=Wt.P),new Et.y(e=>{const s=Xt(t)?t:+t-i.now();return i.schedule(ie,s,{index:0,period:n,subscriber:e})})}function ie(t){const{index:e,period:i,subscriber:n}=t;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}}function ne(t,e=Wt.P){return i=()=>ee(t,e),function(t){return t.lift(new Qt(i))};var i}var se=i(3835);function oe(t){return e=>e.lift(new re(t))}class re{constructor(t){this.notifier=t}call(t,e){const i=new ae(t),n=(0,Zt.D)(i,this.notifier);return n&&!i.seenValue?(i.add(n),e.subscribe(i)):i}}class ae extends Yt.L{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,i,n,s){this.seenValue=!0,this.complete()}notifyComplete(){}}var ce=i(7471);function ue(...t){return(0,ce.J)(1)((0,Ct.of)(...t))}function he(...t){const e=t[t.length-1];return(0,te.K)(e)?(t.pop(),i=>ue(t,i,e)):e=>ue(t,e)}var le=i(4689);class de extends Mt.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}class fe extends xt.v{}const ge=new fe(de);var pe=i(3103);class me extends Vt.L{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(me.dispatch,this.delay,new we(t,this.destination)))}_next(t){this.scheduleMessage(pe.P.createNext(t))}_error(t){this.scheduleMessage(pe.P.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(pe.P.createComplete()),this.unsubscribe()}}class we{constructor(t,e){this.notification=t,this.destination=e}}var ye=i(3895),be=i(9291);class Ae extends kt.xQ{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new _e(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),n=this.scheduler,s=i.length;let o;if(this.closed)throw new ye.N;if(this.isStopped||this.hasError?o=Gt.w.EMPTY:(this.observers.push(t),o=new be.W(this,t)),n&&t.add(t=new me(t,n)),e)for(let r=0;re&&(o=Math.max(o,s-e)),o>0&&n.splice(0,o),n}}class _e{constructor(t,e){this.time=t,this.value=e}}function ve(t,e,i){let n;return n=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:i},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:i,scheduler:n}){let s,o,r=0,a=!1,c=!1;return function(u){r++,s&&!a||(a=!1,s=new Ae(t,e,n),o=u.subscribe({next(t){s.next(t)},error(t){a=!0,s.error(t)},complete(){c=!0,o=void 0,s.complete()}}));const h=s.subscribe(this);this.add(()=>{r--,h.unsubscribe(),o&&!c&&i&&0===r&&(o.unsubscribe(),o=void 0,s=void 0)})}}(n))}let Te;try{Te="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(Pw){Te=!1}let ke,Ce=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?(0,n.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&&!Te)&&"undefined"!=typeof CSS&&!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 t.\u0275fac=function(e){return new(e||t)(s.LFG(s.Lbi))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.Lbi))},token:t,providedIn:"root"}),t})(),Ee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();const ze=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Re(){if(ke)return ke;if("object"!=typeof document||!document)return ke=new Set(ze),ke;let t=document.createElement("input");return ke=new Set(ze.filter(e=>(t.setAttribute("type",e),t.type===e))),ke}let Pe,Se,Be;function Me(t){return function(){if(null==Pe&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Pe=!0}))}finally{Pe=Pe||!1}return Pe}()?t:!!t.capture}function Ke(){if(null==Se){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Se=!1,Se;if("scrollBehavior"in document.documentElement.style)Se=!0;else{const t=Element.prototype.scrollTo;Se=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Se}function xe(t){if(function(){if(null==Be){const t="undefined"!=typeof document?document.head:null;Be=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Be}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function He(){let t="undefined"!=typeof document&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}const je=new s.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,s.f3M)(n.K0)}});let Ie=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new s.vpe,t){const e=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||e;this.value="ltr"===i||"rtl"===i?i:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(je,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(je,8))},token:t,providedIn:"root"}),t})(),Le=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),Oe=(()=>{class t{constructor(t,e,i){this._ngZone=t,this._platform=e,this._scrolled=new kt.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new Et.y(e=>{this._globalSubscription||this._addGlobalListener();const i=t>0?this._scrolled.pipe(ne(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Ct.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe((0,se.h)(t=>!t||i.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((i,n)=>{this._scrollableContainsElement(n,t)&&e.push(n)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let i=Tt(e),n=t.getElementRef().nativeElement;do{if(i==n)return!0}while(i=i.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>St(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(Ce),s.LFG(n.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(Ce),s.LFG(n.K0,8))},token:t,providedIn:"root"}),t})(),Fe=(()=>{class t{constructor(t,e,i){this._platform=t,this._change=new kt.xQ,this._changeListener=t=>{this._change.next(t)},this._document=i,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:i}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+e,height:i,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(ne(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Ce),s.LFG(s.R0b),s.LFG(n.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Ce),s.LFG(s.R0b),s.LFG(n.K0,8))},token:t,providedIn:"root"}),t})(),De=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),qe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Le,Ee,De],Le,De]}),t})();class Ne{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class Ue extends Ne{constructor(t,e,i,n){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=n}}class Ge extends Ne{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class $e extends Ne{constructor(t){super(),this.element=t instanceof s.SBq?t.nativeElement:t}}class Ve{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof Ue?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Ge?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof $e?(this._attachedPortal=t,this.attachDomPortal(t)):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(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class We extends Ve{constructor(t,e,i,n,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=n,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=t,i}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(t=>this.outletElement.appendChild(t)),i.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(i);-1!==t&&e.remove(t)}),this._attachedPortal=t,i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let Ye=(()=>{class t extends Ve{constructor(t,e,i){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new s.vpe,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(i,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=i}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),n=e.createComponent(i,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s._Vd),s.Y36(s.s_b),s.Y36(n.K0))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[s.qOj]}),t})(),Ze=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();var Qe=i(1906),Je=i(611);function Xe(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}const ti=Ke();class ei{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=vt(-this._previousScrollPosition.left),t.style.top=vt(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,i=this._document.body.style,n=e.scrollBehavior||"",s=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),ti&&(e.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),ti&&(e.scrollBehavior=n,i.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class ii{constructor(t,e,i,n){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class ni{enable(){}disable(){}attach(){}}function si(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function oi(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class ri{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=n,this._scrollSubscription=null}attach(t){this._overlayRef=t}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 t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:i}=this._viewportRuler.getViewportSize();si(t,[{width:e,height:i,bottom:i,right:e,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 ai=(()=>{class t{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this.noop=()=>new ni,this.close=t=>new ii(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new ei(this._viewportRuler,this._document),this.reposition=t=>new ri(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=n}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Oe),s.LFG(Fe),s.LFG(s.R0b),s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Oe),s.LFG(Fe),s.LFG(s.R0b),s.LFG(n.K0))},token:t,providedIn:"root"}),t})();class ci{constructor(t){if(this.scrollStrategy=new ni,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class ui{constructor(t,e,i,n,s){this.offsetX=i,this.offsetY=n,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class hi{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let li=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0))},token:t,providedIn:"root"}),t})(),di=(()=>{class t extends li{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let i=e.length-1;i>-1;i--)if(e[i]._keydownEvents.observers.length>0){e[i]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0))},token:t,providedIn:"root"}),t})(),fi=(()=>{class t extends li{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,i=this._attachedOverlays.slice();for(let n=i.length-1;n>-1;n--){const s=i[n];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){if(super.add(t),!this._isAttached){const t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),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 t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0),s.LFG(Ce))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0),s.LFG(Ce))},token:t,providedIn:"root"}),t})();const gi="undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha;let pi=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||gi){const e=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let t=0;tthis._backdropClick.next(t),this._keydownEvents=new kt.xQ,this._outsidePointerEvents=new kt.xQ,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Je.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),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 t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),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&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=vt(this._config.width),t.height=vt(this._config.height),t.minWidth=vt(this._config.minWidth),t.minHeight=vt(this._config.minHeight),t.maxWidth=vt(this._config.maxWidth),t.maxHeight=vt(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),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),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const n=t.classList;_t(e).forEach(t=>{t&&(i?n.add(t):n.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(oe((0,Qe.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._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const wi="cdk-overlay-connected-position-bounding-box",yi=/([A-Za-z%]+)$/;class bi{constructor(t,e,i,n,s){this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=s,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 kt.xQ,this._resizeSubscription=Gt.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(wi),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.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();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,n=[];let s;for(let o of this._preferredPositions){let r=this._getOriginPoint(t,o),a=this._getOverlayPoint(r,e,o),c=this._getOverlayFit(a,e,i,o);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(o,r);this._canFitWithFlexibleDimensions(c,a,i)?n.push({position:o,origin:r,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(r,o)}):(!s||s.overlayFit.visibleAreae&&(e=n,t=i)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ai(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(wi),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let i,n;if("center"==e.originX)i=t.left+t.width/2;else{const n=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;i="start"==e.originX?n:s}return n="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:n}}_getOverlayPoint(t,e,i){let n,s;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+s}}_getOverlayFit(t,e,i,n){const s=vi(e);let{x:o,y:r}=t,a=this._getOffset(n,"x"),c=this._getOffset(n,"y");a&&(o+=a),c&&(r+=c);let u=0-r,h=r+s.height-i.height,l=this._subtractOverflows(s.width,0-o,o+s.width-i.width),d=this._subtractOverflows(s.height,u,h),f=l*d;return{visibleArea:f,isCompletelyWithinViewport:s.width*s.height===f,fitsInViewportVertically:d===s.height,fitsInViewportHorizontally:l==s.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const n=i.bottom-e.y,s=i.right-e.x,o=_i(this._overlayRef.getConfig().minHeight),r=_i(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=r&&r<=s;return(t.fitsInViewportVertically||null!=o&&o<=n)&&a}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const n=vi(e),s=this._viewportRect,o=Math.max(t.x+n.width-s.width,0),r=Math.max(t.y+n.height-s.height,0),a=Math.max(s.top-i.top-t.y,0),c=Math.max(s.left-i.left-t.x,0);let u=0,h=0;return u=n.width<=s.width?c||-o:t.xn&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-n/2)}if("end"===e.overlayX&&!n||"start"===e.overlayX&&n)u=i.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!n||"end"===e.overlayX&&n)c=t.x,a=i.right-t.x;else{const e=Math.min(i.right-t.x+i.left,t.x),n=this._lastBoundingBoxSize.width;a=2*e,c=t.x-e,a>n&&!this._isInitialRender&&!this._growAfterOpen&&(c=t.x-n/2)}return{top:o,left:c,bottom:r,right:u,width:a,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;n.height=vt(i.height),n.top=vt(i.top),n.bottom=vt(i.bottom),n.width=vt(i.width),n.left=vt(i.left),n.right=vt(i.right),n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(n.maxHeight=vt(t)),s&&(n.maxWidth=vt(s))}this._lastBoundingBoxSize=i,Ai(this._boundingBox.style,n)}_resetBoundingBoxStyles(){Ai(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ai(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},n=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(n){const n=this._viewportRuler.getViewportScrollPosition();Ai(i,this._getExactOverlayY(e,t,n)),Ai(i,this._getExactOverlayX(e,t,n))}else i.position="static";let r="",a=this._getOffset(e,"x"),c=this._getOffset(e,"y");a&&(r+=`translateX(${a}px) `),c&&(r+=`translateY(${c}px)`),i.transform=r.trim(),o.maxHeight&&(n?i.maxHeight=vt(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(n?i.maxWidth=vt(o.maxWidth):s&&(i.maxWidth="")),Ai(this._pane.style,i)}_getExactOverlayY(t,e,i){let n={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i));let o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=o,"bottom"===t.overlayY?n.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":n.top=vt(s.y),n}_getExactOverlayX(t,e,i){let n,s={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),n=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===n?s.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":s.left=vt(o.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:oi(t,i),isOriginOutsideView:si(t,i),isOverlayClipped:oi(e,i),isOverlayOutsideView:si(e,i)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&_t(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof s.SBq)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function Ai(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function _i(t){if("number"!=typeof t&&null!=t){const[e,i]=t.split(yi);return i&&"px"!==i?null:parseFloat(e)}return t||null}function vi(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class Ti{constructor(t,e,i,n,s,o,r){this._preferredPositions=[],this._positionStrategy=new bi(i,n,s,o,r).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,i,n){const s=new ui(t,e,i,n);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const ki="cdk-global-overlay-wrapper";class Ci{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(ki),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:n,height:s,maxWidth:o,maxHeight:r}=i,a=!("100%"!==n&&"100vw"!==n||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||r&&"100%"!==r&&"100vh"!==r);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(ki),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let Ei=(()=>{class t{constructor(t,e,i,n){this._viewportRuler=t,this._document=e,this._platform=i,this._overlayContainer=n}global(){return new Ci}connectedTo(t,e,i){return new Ti(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new bi(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Fe),s.LFG(n.K0),s.LFG(Ce),s.LFG(pi))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Fe),s.LFG(n.K0),s.LFG(Ce),s.LFG(pi))},token:t,providedIn:"root"}),t})(),zi=0,Ri=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u,h){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=s,this._injector=o,this._ngZone=r,this._document=a,this._directionality=c,this._location=u,this._outsideClickDispatcher=h}create(t){const e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),s=new ci(t);return s.direction=s.direction||this._directionality.value,new mi(n,e,i,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+zi++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(s.z2F)),new We(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(ai),s.LFG(pi),s.LFG(s._Vd),s.LFG(Ei),s.LFG(di),s.LFG(s.zs3),s.LFG(s.R0b),s.LFG(n.K0),s.LFG(Ie),s.LFG(n.Ye),s.LFG(fi))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const Pi={provide:new s.OlP("cdk-connected-overlay-scroll-strategy"),deps:[Ri],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Si=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Ri,Pi],imports:[[Le,Ze,qe],qe]}),t})();var Bi=i(6599),Mi=i(7701);let Ki=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),xi=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=Tt(t);return new Et.y(t=>{const i=this._observeElement(e).subscribe(t);return()=>{i.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new kt.xQ,i=this._mutationObserverFactory.create(t=>e.next(t));i&&i.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:i,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:i}=this._observedElements.get(t);e&&e.disconnect(),i.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Ki))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Ki))},token:t,providedIn:"root"}),t})(),Hi=(()=>{class t{constructor(t,e,i){this._contentObserver=t,this._elementRef=e,this._ngZone=i,this.event=new s.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=bt(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=At(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe((0,Mi.b)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(xi),s.Y36(s.SBq),s.Y36(s.R0b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),ji=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Ki]}),t})();function Ii(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const Li="cdk-describedby-message-container",Oi="cdk-describedby-host";let Fi=0;const Di=new Map;let qi=null,Ni=(()=>{class t{constructor(t){this._document=t}describe(t,e,i){if(!this._canBeDescribed(t,e))return;const n=Ui(e,i);"string"!=typeof e?(Gi(e),Di.set(n,{messageElement:e,referenceCount:0})):Di.has(n)||this._createMessageElement(e,i),this._isElementDescribedByMessage(t,n)||this._addMessageReference(t,n)}removeDescription(t,e,i){if(!e||!this._isElementNode(t))return;const n=Ui(e,i);if(this._isElementDescribedByMessage(t,n)&&this._removeMessageReference(t,n),"string"==typeof e){const t=Di.get(n);t&&0===t.referenceCount&&this._deleteMessageElement(n)}qi&&0===qi.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const i=Di.get(e);!function(t,e,i){const n=Ii(t,e);n.some(t=>t.trim()==i.trim())||(n.push(i.trim()),t.setAttribute(e,n.join(" ")))}(t,"aria-describedby",i.messageElement.id),t.setAttribute(Oi,""),i.referenceCount++}_removeMessageReference(t,e){const i=Di.get(e);i.referenceCount--,function(t,e,i){const n=Ii(t,e).filter(t=>t!=i.trim());n.length?t.setAttribute(e,n.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",i.messageElement.id),t.removeAttribute(Oi)}_isElementDescribedByMessage(t,e){const i=Ii(t,"aria-describedby"),n=Di.get(e),s=n&&n.messageElement.id;return!!s&&-1!=i.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const i=null==e?"":`${e}`.trim(),n=t.getAttribute("aria-label");return!(!i||n&&n.trim()===i)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0))},token:t,providedIn:"root"}),t})();function Ui(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function Gi(t){t.id||(t.id="cdk-describedby-message-"+Fi++)}class $i extends class{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new kt.xQ,this._typeaheadSubscription=Gt.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new kt.xQ,this.change=new kt.xQ,t instanceof s.n_E&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Bi.b)(t=>this._pressedLetters.push(t)),(0,Mi.b)(t),(0,se.h)(()=>this._pressedLetters.length>0),(0,Pt.U)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let i=1;i!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||Xe(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.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(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),n=e[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const n=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[n]))return void this.setActiveItem(n)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof s.n_E?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let Vi=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(Pw){return null}}((i=t).ownerDocument&&i.ownerDocument.defaultView||window);var i;if(e){if(-1===Yi(e))return!1;if(!this.isVisible(e))return!1}let n=t.nodeName.toLowerCase(),s=Yi(t);return t.hasAttribute("contenteditable")?-1!==s:"iframe"!==n&&"object"!==n&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),i="input"===e&&t.type;return"text"===i||"password"===i||"select"===e||"textarea"===e}(t))&&("audio"===n?!!t.hasAttribute("controls")&&-1!==s:"video"===n?-1!==s&&(null!==s||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||Wi(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Ce))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Ce))},token:t,providedIn:"root"}),t})();function Wi(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function Yi(t){if(!Wi(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class Zi{constructor(t,e,i,n,s=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=n,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),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(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let i=0;i=0;i--){let t=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe((0,Je.q)(1)).subscribe(t)}}let Qi=(()=>{class t{constructor(t,e,i){this._checker=t,this._ngZone=e,this._document=i}create(t,e=!1){return new Zi(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Vi),s.LFG(s.R0b),s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Vi),s.LFG(s.R0b),s.LFG(n.K0))},token:t,providedIn:"root"}),t})();function Ji(t){return 0===t.buttons}function Xi(t){const e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}"undefined"!=typeof Element&∈const tn=new s.OlP("cdk-focus-monitor-default-options"),en=Me({passive:!0,capture:!0});let nn=(()=>{class t{constructor(t,e,i,n){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=Ji(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{Xi(t)?this._lastTouchTarget||this._setOriginForCurrentEventQueue("keyboard"):(null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=sn(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650))},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=sn(t),i="focus"===t.type?this._onFocus:this._onBlur;for(let n=e;n;n=n.parentElement)i.call(this,t,n)},this._document=i,this._detectionMode=(null==n?void 0:n.detectionMode)||0}monitor(t,e=!1){const i=Tt(t);if(!this._platform.isBrowser||1!==i.nodeType)return(0,Ct.of)(null);const n=xe(i)||this._getDocument(),s=this._elementInfo.get(i);if(s)return e&&(s.checkChildren=!0),s.subject;const o={checkChildren:e,subject:new kt.xQ,rootNode:n};return this._elementInfo.set(i,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(t){const e=Tt(t),i=this._elementInfo.get(e);i&&(i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(i))}focusVia(t,e,i){const n=Tt(t);n===this._getDocument().activeElement?this._getClosestElementsInfo(n).forEach(([t,i])=>this._originChanged(t,e,i)):(this._setOriginForCurrentEventQueue(e),"function"==typeof n.focus&&n.focus(i))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,i){i?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=sn(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const i=this._elementInfo.get(e);i&&(i.checkChildren||e===sn(t))&&this._originChanged(e,this._getFocusOrigin(t),i)}_onBlur(t,e){const i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,i=this._rootNodeFocusListenerCount.get(e)||0;i||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,en),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,en)}),this._rootNodeFocusListenerCount.set(e,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,en),t.addEventListener("mousedown",this._documentMousedownListener,en),t.addEventListener("touchstart",this._documentTouchstartListener,en),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,en),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,en),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,en),t.removeEventListener("mousedown",this._documentMousedownListener,en),t.removeEventListener("touchstart",this._documentTouchstartListener,en),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,i){this._setClasses(t,e),this._emitOrigin(i.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((i,n)=>{(n===t||i.checkChildren&&n.contains(t))&&e.push([n,i])}),e}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(Ce),s.LFG(n.K0,8),s.LFG(tn,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(Ce),s.LFG(n.K0,8),s.LFG(tn,8))},token:t,providedIn:"root"}),t})();function sn(t){return t.composedPath?t.composedPath()[0]:t.target}const on="cdk-high-contrast-black-on-white",rn="cdk-high-contrast-white-on-black",an="cdk-high-contrast-active";let cn=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,i=e&&e.getComputedStyle?e.getComputedStyle(t):null,n=(i&&i.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),n){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(an),t.remove(on),t.remove(rn),this._hasCheckedHighContrastMode=!0;const e=this.getHighContrastMode();1===e?(t.add(an),t.add(on)):2===e&&(t.add(an),t.add(rn))}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Ce),s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Ce),s.LFG(n.K0))},token:t,providedIn:"root"}),t})(),un=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(cn))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Ee,ji]]}),t})();const hn=new s.GfV("12.0.5");class ln{}const dn="*";function fn(t,e){return{type:7,name:t,definitions:e,options:{}}}function gn(t,e=null){return{type:4,styles:e,timings:t}}function pn(t,e=null){return{type:2,steps:t,options:e}}function mn(t){return{type:6,styles:t,offset:null}}function wn(t,e,i){return{type:0,name:t,styles:e,options:i}}function yn(t){return{type:5,steps:t}}function bn(t,e,i=null){return{type:1,expr:t,animation:e,options:i}}function An(t){Promise.resolve(null).then(t)}class _n{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){An(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class vn{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,n=0;const s=this.players.length;0==s?An(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++i==s&&this._onDestroy()}),t.onStart(()=>{++n==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function Tn(){return"undefined"!=typeof window&&void 0!==window.document}function kn(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Cn(t){switch(t.length){case 0:return new _n;case 1:return t[0];default:return new vn(t)}}function En(t,e,i,n,s={},o={}){const r=[],a=[];let c=-1,u=null;if(n.forEach(t=>{const i=t.offset,n=i==c,h=n&&u||{};Object.keys(t).forEach(i=>{let n=i,a=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,r),a){case"!":a=s[i];break;case dn:a=o[i];break;default:a=e.normalizeStyleValue(i,n,a,r)}h[n]=a}),n||a.push(h),u=h,c=i}),r.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${r.join(t)}`)}return a}function zn(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&Rn(i,"start",t)));break;case"done":t.onDone(()=>n(i&&Rn(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&Rn(i,"destroy",t)))}}function Rn(t,e,i){const n=i.totalTime,s=Pn(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),o=t._data;return null!=o&&(s._data=o),s}function Pn(t,e,i,n,s="",o=0,r){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:s,totalTime:o,disabled:!!r}}function Sn(t,e,i){let n;return t instanceof Map?(n=t.get(e),n||t.set(e,n=i)):(n=t[e],n||(n=t[e]=i)),n}function Bn(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let Mn=(t,e)=>!1,Kn=(t,e)=>!1,xn=(t,e,i)=>[];const Hn=kn();(Hn||"undefined"!=typeof Element)&&(Mn=Tn()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),Kn=(()=>{if(Hn||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,i)=>e.apply(t,[i]):Kn}})(),xn=(t,e,i)=>{let n=[];if(i){const i=t.querySelectorAll(e);for(let t=0;t{const n=i.replace(/([a-z])([A-Z])/g,"$1-$2");e[n]=t[i]}),e}let Nn=(()=>{class t{validateStyleProperty(t){return Ln(t)}matchesElement(t,e){return On(t,e)}containsElement(t,e){return Fn(t,e)}query(t,e,i){return Dn(t,e,i)}computeStyle(t,e,i){return i||""}animate(t,e,i,n,s,o=[],r){return new _n(i,n)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Un=(()=>{class t{}return t.NOOP=new Nn,t})();const Gn="ng-enter",$n="ng-leave",Vn="ng-trigger",Wn=".ng-trigger",Yn="ng-animating",Zn=".ng-animating";function Qn(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Jn(parseFloat(e[1]),e[2])}function Jn(t,e){switch(e){case"s":return 1e3*t;default:return t}}function Xn(t,e,i){return t.hasOwnProperty("duration")?t:function(t,e,i){let n,s=0,o="";if("string"==typeof t){const i=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===i)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};n=Jn(parseFloat(i[1]),i[2]);const r=i[3];null!=r&&(s=Jn(parseFloat(r),i[4]));const a=i[5];a&&(o=a)}else n=t;if(!i){let i=!1,o=e.length;n<0&&(e.push("Duration values below 0 are not allowed for this animation step."),i=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),i=!0),i&&e.splice(o,0,`The provided timing value "${t}" is invalid.`)}return{duration:n,delay:s,easing:o}}(t,e,i)}function ts(t,e={}){return Object.keys(t).forEach(i=>{e[i]=t[i]}),e}function es(t,e,i={}){if(e)for(let n in t)i[n]=t[n];else ts(t,i);return i}function is(t,e,i){return i?e+":"+i+";":""}function ns(t){let e="";for(let i=0;i{const s=ds(n);i&&!i.hasOwnProperty(n)&&(i[n]=t.style[s]),t.style[s]=e[n]}),kn()&&ns(t))}function os(t,e){t.style&&(Object.keys(e).forEach(e=>{const i=ds(e);t.style[i]=""}),kn()&&ns(t))}function rs(t){return Array.isArray(t)?1==t.length?t[0]:pn(t):t}const as=new RegExp("{{\\s*(.+?)\\s*}}","g");function cs(t){let e=[];if("string"==typeof t){let i;for(;i=as.exec(t);)e.push(i[1]);as.lastIndex=0}return e}function us(t,e,i){const n=t.toString(),s=n.replace(as,(t,n)=>{let s=e[n];return e.hasOwnProperty(n)||(i.push(`Please provide a value for the animation param ${n}`),s=""),s.toString()});return s==n?t:s}function hs(t){const e=[];let i=t.next();for(;!i.done;)e.push(i.value),i=t.next();return e}const ls=/-+([a-z0-9])/g;function ds(t){return t.replace(ls,(...t)=>t[1].toUpperCase())}function fs(t,e){return 0===t||0===e}function gs(t,e,i){const n=Object.keys(i);if(n.length&&e.length){let o=e[0],r=[];if(n.forEach(t=>{o.hasOwnProperty(t)||r.push(t),o[t]=i[t]}),r.length)for(var s=1;sfunction(t,e,i){if(":"==t[0]){const n=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,i);if("function"==typeof n)return void e.push(n);t=n}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return i.push(`The provided transition expression "${t}" is not supported`),e;const s=n[1],o=n[2],r=n[3];e.push(_s(s,r)),"<"!=o[0]||s==ws&&r==ws||e.push(_s(r,s))}(t,i,e)):i.push(t),i}const bs=new Set(["true","1"]),As=new Set(["false","0"]);function _s(t,e){const i=bs.has(t)||As.has(t),n=bs.has(e)||As.has(e);return(s,o)=>{let r=t==ws||t==s,a=e==ws||e==o;return!r&&i&&"boolean"==typeof s&&(r=s?bs.has(t):As.has(t)),!a&&n&&"boolean"==typeof o&&(a=o?bs.has(e):As.has(e)),r&&a}}const vs=new RegExp("s*:selfs*,?","g");function Ts(t,e,i){return new ks(t).build(e,i)}class ks{constructor(t){this._driver=t}build(t,e){const i=new Cs(e);return this._resetContextStyleTimingState(i),ps(this,rs(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,n=e.depCount=0;const s=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const i=t,n=i.name;n.toString().split(/\s*,\s*/).forEach(t=>{i.name=t,s.push(this.visitState(i,e))}),i.name=n}else if(1==t.type){const s=this.visitTransition(t,e);i+=s.queryCount,n+=s.depCount,o.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:o,queryCount:i,depCount:n,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),n=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=n||{};if(i.styles.forEach(t=>{if(Es(t)){const e=t;Object.keys(e).forEach(t=>{cs(e[t]).forEach(t=>{o.hasOwnProperty(t)||s.add(t)})})}}),s.size){const i=hs(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${i.join(", ")}`)}}return{type:0,name:t.name,style:i,options:n?{params:n}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=ps(this,rs(t.animation),e);return{type:1,matchers:ys(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:zs(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>ps(this,t,e)),options:zs(t.options)}}visitGroup(t,e){const i=e.currentTime;let n=0;const s=t.steps.map(t=>{e.currentTime=i;const s=ps(this,t,e);return n=Math.max(n,e.currentTime),s});return e.currentTime=n,{type:3,steps:s,options:zs(t.options)}}visitAnimate(t,e){const i=function(t,e){let i=null;if(t.hasOwnProperty("duration"))i=t;else if("number"==typeof t)return Rs(Xn(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=Rs(0,0,"");return t.dynamic=!0,t.strValue=n,t}return i=i||Xn(n,e),Rs(i.duration,i.delay,i.easing)}(t.timings,e.errors);let n;e.currentAnimateTimings=i;let s=t.styles?t.styles:mn({});if(5==s.type)n=this.visitKeyframes(s,e);else{let s=t.styles,o=!1;if(!s){o=!0;const t={};i.easing&&(t.easing=i.easing),s=mn(t)}e.currentTime+=i.duration+i.delay;const r=this.visitStyle(s,e);r.isEmptyStep=o,n=r}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==dn?i.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):i.push(t)}):i.push(t.styles);let n=!1,s=null;return i.forEach(t=>{if(Es(t)){const e=t,i=e.easing;if(i&&(s=i,delete e.easing),!n)for(let t in e)if(e[t].toString().indexOf("{{")>=0){n=!0;break}}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:n,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let n=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(i=>{if(!this._driver.validateStyleProperty(i))return void e.errors.push(`The provided animation property "${i}" is not a supported CSS property for animations`);const o=e.collectedStyles[e.currentQuerySelector],r=o[i];let a=!0;r&&(s!=n&&s>=r.startTime&&n<=r.endTime&&(e.errors.push(`The CSS property "${i}" that exists between the times of "${r.startTime}ms" and "${r.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${n}ms"`),a=!1),s=r.startTime),a&&(o[i]={startTime:s,endTime:n}),e.options&&function(t,e,i){const n=e.params||{},s=cs(t);s.length&&s.forEach(t=>{n.hasOwnProperty(t)||i.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[i],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let n=0;const s=[];let o=!1,r=!1,a=0;const c=t.steps.map(t=>{const i=this._makeStyleAst(t,e);let c=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(Es(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(Es(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}return e}(i.styles),u=0;return null!=c&&(n++,u=i.offset=c),r=r||u<0||u>1,o=o||u0&&n{const o=h>0?n==l?1:h*n:s[n],r=o*g;e.currentTime=d+f.delay+r,f.duration=r,this._validateStyleAst(t,e),t.offset=o,i.styles.push(t)}),i}visitReference(t,e){return{type:8,animation:ps(this,rs(t.animation),e),options:zs(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:zs(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:zs(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;const[s,o]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(vs,"")),[t=t.replace(/@\*/g,Wn).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,Zn),e]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,Sn(e.collectedStyles,e.currentQuerySelector,{});const r=ps(this,rs(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:n.limit||0,optional:!!n.optional,includeSelf:o,animation:r,originalSelector:t.selector,options:zs(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:Xn(t.timings,e.errors,!0);return{type:12,animation:ps(this,rs(t.animation),e),timings:i,options:null}}}class Cs{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Es(t){return!Array.isArray(t)&&"object"==typeof t}function zs(t){var e;return t?(t=ts(t)).params&&(t.params=(e=t.params)?ts(e):null):t={},t}function Rs(t,e,i){return{duration:t,delay:e,easing:i}}function Ps(t,e,i,n,s,o,r=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:s,delay:o,totalTime:s+o,easing:r,subTimeline:a}}class Ss{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const Bs=new RegExp(":enter","g"),Ms=new RegExp(":leave","g");function Ks(t,e,i,n,s,o={},r={},a,c,u=[]){return(new xs).buildKeyframes(t,e,i,n,s,o,r,a,c,u)}class xs{buildKeyframes(t,e,i,n,s,o,r,a,c,u=[]){c=c||new Ss;const h=new js(t,e,c,n,s,u,[]);h.options=a,h.currentTimeline.setStyles([o],null,h.errors,a),ps(this,i,h);const l=h.timelines.filter(t=>t.containsAnimation());if(l.length&&Object.keys(r).length){const t=l[l.length-1];t.allowOnlyTimelineStyles()||t.setStyles([r],null,h.errors,a)}return l.length?l.map(t=>t.buildKeyframes()):[Ps(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.consume(e.element);if(i){const n=e.createSubContext(t.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,n,n.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let n=e.currentTimeline.currentTime;const s=null!=i.duration?Qn(i.duration):null,o=null!=i.delay?Qn(i.delay):null;return 0!==s&&t.forEach(t=>{const i=e.appendInstructionToTimeline(t,s,o);n=Math.max(n,i.duration+i.delay)}),n}visitReference(t,e){e.updateOptions(t.options,!0),ps(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let n=e;const s=t.options;if(s&&(s.params||s.delay)&&(n=e.createSubContext(s),n.transformIntoNewTimeline(),null!=s.delay)){6==n.previousNode.type&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Hs);const t=Qn(s.delay);n.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>ps(this,t,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let n=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?Qn(t.options.delay):0;t.steps.forEach(o=>{const r=e.createSubContext(t.options);s&&r.delayNextStep(s),ps(this,o,r),n=Math.max(n,r.currentTimeline.currentTime),i.push(r.currentTimeline)}),i.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(n),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return Xn(e.params?us(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,n=e.currentTimeline.duration,s=i.duration,o=e.createSubContext().currentTimeline;o.easing=i.easing,t.styles.forEach(t=>{o.forwardTime((t.offset||0)*s),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(n+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,n=t.options||{},s=n.delay?Qn(n.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Hs);let o=i;const r=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!n.optional,e.errors);e.currentQueryTotal=r.length;let a=null;r.forEach((i,n)=>{e.currentQueryIndex=n;const r=e.createSubContext(t.options,i);s&&r.delayNextStep(s),i===e.element&&(a=r.currentTimeline),ps(this,t.animation,r),r.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,r.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,n=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),r=o*(e.currentQueryTotal-1);let a=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=r-a;break;case"full":a=i.currentStaggerTime}const c=e.currentTimeline;a&&c.delayNextStep(a);const u=c.currentTime;ps(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-u+(n.startTime-i.currentTimeline.startTime)}}const Hs={};class js{constructor(t,e,i,n,s,o,r,a){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=s,this.errors=o,this.timelines=r,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Hs,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new Is(this._driver,e,0),r.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let n=this.options;null!=i.duration&&(n.duration=Qn(i.duration)),null!=i.delay&&(n.delay=Qn(i.delay));const s=i.params;if(s){let t=n.params;t||(t=this.options.params={}),Object.keys(s).forEach(i=>{e&&t.hasOwnProperty(i)||(t[i]=us(s[i],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(t=>{i[t]=e[t]})}}return t}createSubContext(t=null,e,i){const n=e||this.element,s=new js(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=Hs,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const n={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new Ls(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(s),n}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,n,s,o){let r=[];if(n&&r.push(this.element),t.length>0){t=(t=t.replace(Bs,"."+this._enterClassName)).replace(Ms,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=i);0!==i&&(e=i<0?e.slice(e.length+i,e.length):e.slice(0,i)),r.push(...e)}return s||0!=r.length||o.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),r}}class Is{constructor(t,e,i,n){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),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.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new Is(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||dn,this._currentKeyframe[t]=dn}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,n){e&&(this._previousKeyframe.easing=e);const s=n&&n.params||{},o=function(t,e){const i={};let n;return t.forEach(t=>{"*"===t?(n=n||Object.keys(e),n.forEach(t=>{i[t]=dn})):es(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(o).forEach(t=>{const e=us(o[t],s,i);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:dn),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],n=t._styleSummary[e];(!i||n.time>i.time)&&this._updateStyle(e,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let n=[];this._keyframes.forEach((s,o)=>{const r=es(s,!0);Object.keys(r).forEach(i=>{const n=r[i];"!"==n?t.add(i):n==dn&&e.add(i)}),i||(r.offset=o/this.duration),n.push(r)});const s=t.size?hs(t.values()):[],o=e.size?hs(e.values()):[];if(i){const t=n[0],e=ts(t);t.offset=0,e.offset=1,n=[t,e]}return Ps(this.element,n,s,o,this.duration,this.startTime,this.easing,!1)}}class Ls extends Is{constructor(t,e,i,n,s,o,r=!1){super(t,e,o.delay),this.element=e,this.keyframes=i,this.preStyleProps=n,this.postStyleProps=s,this._stretchStartingKeyframe=r,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],o=i+e,r=e/o,a=es(t[0],!1);a.offset=0,s.push(a);const c=es(t[0],!1);c.offset=Os(r),s.push(c);const u=t.length-1;for(let n=1;n<=u;n++){let r=es(t[n],!1);r.offset=Os((e+r.offset*i)/o),s.push(r)}i=o,e=0,n="",t=s}return Ps(this.element,t,this.preStyleProps,this.postStyleProps,i,e,n,!0)}}function Os(t,e=3){const i=Math.pow(10,e-1);return Math.round(t*i)/i}class Fs{}class Ds extends Fs{normalizePropertyName(t,e){return ds(t)}normalizeStyleValue(t,e,i,n){let s="";const o=i.toString().trim();if(qs[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const e=i.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&n.push(`Please provide a CSS unit value for ${t}:${i}`)}return o+s}}const qs=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("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".split(",")))();function Ns(t,e,i,n,s,o,r,a,c,u,h,l,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:i,fromStyles:o,toState:n,toStyles:r,timelines:a,queriedElements:c,preStyleProps:u,postStyleProps:h,totalTime:l,errors:d}}const Us={};class Gs{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,n){return function(t,e,i,n,s){return t.some(t=>t(e,i,n,s))}(this.ast.matchers,t,e,i,n)}buildStyles(t,e,i){const n=this._stateStyles["*"],s=this._stateStyles[t],o=n?n.buildStyles(e,i):{};return s?s.buildStyles(e,i):o}build(t,e,i,n,s,o,r,a,c,u){const h=[],l=this.ast.options&&this.ast.options.params||Us,d=this.buildStyles(i,r&&r.params||Us,h),f=a&&a.params||Us,g=this.buildStyles(n,f,h),p=new Set,m=new Map,w=new Map,y="void"===n,b={params:Object.assign(Object.assign({},l),f)},A=u?[]:Ks(t,e,this.ast.animation,s,o,d,g,b,c,h);let _=0;if(A.forEach(t=>{_=Math.max(t.duration+t.delay,_)}),h.length)return Ns(e,this._triggerName,i,n,y,d,g,[],[],m,w,_,h);A.forEach(t=>{const i=t.element,n=Sn(m,i,{});t.preStyleProps.forEach(t=>n[t]=!0);const s=Sn(w,i,{});t.postStyleProps.forEach(t=>s[t]=!0),i!==e&&p.add(i)});const v=hs(p.values());return Ns(e,this._triggerName,i,n,y,d,g,A,v,m,w,_)}}class $s{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const i={},n=ts(this.defaultParams);return Object.keys(t).forEach(e=>{const i=t[e];null!=i&&(n[e]=i)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let o=s[t];o.length>1&&(o=us(o,n,e)),i[t]=o})}}),i}}class Vs{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new $s(t.style,t.options&&t.options.params||{})}),Ws(this.states,"true","1"),Ws(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Gs(t,e,this.states))}),this.fallbackTransition=new Gs(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,n){return this.transitionFactories.find(s=>s.match(t,e,i,n))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function Ws(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}const Ys=new Ss;class Zs{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],n=Ts(this._driver,e,i);if(i.length)throw new Error(`Unable to build the animation due to the following errors: ${i.join("\n")}`);this._animations[t]=n}_buildPlayer(t,e,i){const n=t.element,s=En(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(n,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const n=[],s=this._animations[t];let o;const r=new Map;if(s?(o=Ks(this._driver,e,s,Gn,$n,{},{},i,Ys,n),o.forEach(t=>{const e=Sn(r,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(n.push("The requested animation doesn't exist or has already been destroyed"),o=[]),n.length)throw new Error(`Unable to create the animation due to the following errors: ${n.join("\n")}`);r.forEach((t,e)=>{Object.keys(t).forEach(i=>{t[i]=this._driver.computeStyle(e,i,dn)})});const a=Cn(o.map(t=>{const e=r.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,i,n){const s=Pn(e,"","","");return zn(this._getPlayer(t),i,s,n),()=>{}}command(t,e,i,n){if("register"==i)return void this.register(t,n[0]);if("create"==i)return void this.create(t,e,n[0]||{});const s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(t)}}}const Qs="ng-animate-queued",Js="ng-animate-disabled",Xs=".ng-animate-disabled",to=[],eo={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},io={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class no{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=null!=(n=i?t.value:t)?n:null,i){const e=ts(t);delete e.value,this.options=e}else this.options={};var n;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(i=>{null==t[i]&&(t[i]=e[i])})}}}const so="void",oo=new no(so);class ro{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,go(e,this._hostClassName)}listen(t,e,i,n){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=i)&&"done"!=s)throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);var s;const o=Sn(this._elementListeners,t,[]),r={name:e,phase:i,callback:n};o.push(r);const a=Sn(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(go(t,Vn),go(t,"ng-trigger-"+e),a[e]=oo),()=>{this._engine.afterFlush(()=>{const t=o.indexOf(r);t>=0&&o.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,i,n=!0){const s=this._getTrigger(e),o=new co(this.id,e,t);let r=this._engine.statesByElement.get(t);r||(go(t,Vn),go(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,r={}));let a=r[e];const c=new no(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),r[e]=c,a||(a=oo),c.value!==so&&a.value===c.value){if(!function(t,e){const i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(let s=0;s{os(t,i),ss(t,n)})}return}const u=Sn(this._engine.playersByElement,t,[]);u.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let h=s.matchTransition(a.value,c.value,t,c.params),l=!1;if(!h){if(!n)return;h=s.fallbackTransition,l=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:a,toState:c,player:o,isFallbackTransition:l}),l||(go(t,Qs),o.onStart(()=>{po(t,Qs)})),o.onDone(()=>{let e=this.players.indexOf(o);e>=0&&this.players.splice(e,1);const i=this._engine.playersByElement.get(t);if(i){let t=i.indexOf(o);t>=0&&i.splice(t,1)}}),this.players.push(o),u.push(o),o}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,Wn,!0);i.forEach(t=>{if(t.__ng_removed)return;const i=this._engine.fetchNamespacesByElement(t);i.size?i.forEach(i=>i.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,i,n){const s=this._engine.statesByElement.get(t);if(s){const o=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const i=this.trigger(t,e,so,n);i&&o.push(i)}}),o.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&Cn(o).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const n=new Set;e.forEach(e=>{const s=e.name;if(n.has(s))return;n.add(s);const o=this._triggers[s].fallbackTransition,r=i[s]||oo,a=new no(so),c=new co(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:o,fromState:r,toState:a,player:c,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let n=!1;if(i.totalAnimations){const e=i.players.length?i.playersByQueriedElement.get(t):[];if(e&&e.length)n=!0;else{let e=t;for(;e=e.parentNode;)if(i.statesByElement.get(e)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(t),n)i.markElementAsRemoved(this.id,t,!1,e);else{const n=t.__ng_removed;n&&n!==eo||(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){go(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const n=i.player;if(n.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(e=>{if(e.name==i.triggerName){const n=Pn(s,i.triggerName,i.fromState.value,i.toState.value);n._data=t,zn(i.player,e.phase,n,e.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):e.push(i)}),this._queue=[],e.sort((t,e)=>{const i=t.transition.ast.depCount,n=e.transition.ast.depCount;return 0==i||0==n?i-n:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class ao{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,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=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const i=new ro(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList.length-1;if(i>=0){let n=!1;for(let s=i;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),n=!0;break}n||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(i);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const t=Object.keys(i);for(let n=0;n=0&&this.collectedLeaveElements.splice(t,1)}if(t){const n=this._fetchNamespace(t);n&&n.insertNode(e,i)}n&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),go(t,Js)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),po(t,Js))}removeNode(t,e,i,n){if(uo(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n),i){const i=this.namespacesByHostElement.get(e);i&&i.id!==t&&i.removeNode(e,n)}}else this._onRemovalComplete(e,n)}markElementAsRemoved(t,e,i,n){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}listen(t,e,i,n,s){return uo(e)?this._fetchNamespace(t).listen(e,i,n,s):()=>{}}_buildInstruction(t,e,i,n,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,Wn,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,Zn,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Cn(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=eo,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,Xs)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Xs,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;it()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Cn(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const i=new Ss,n=[],s=new Map,o=[],r=new Map,a=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(t=>{u.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let i=0;i{const i=Gn+g++;f.set(e,i),t.forEach(t=>go(t,i))});const p=[],m=new Set,w=new Set;for(let S=0;Sm.add(t)):w.add(t))}const y=new Map,b=fo(l,Array.from(m));b.forEach((t,e)=>{const i=$n+g++;y.set(e,i),t.forEach(t=>go(t,i))}),t.push(()=>{d.forEach((t,e)=>{const i=f.get(e);t.forEach(t=>po(t,i))}),b.forEach((t,e)=>{const i=y.get(e);t.forEach(t=>po(t,i))}),p.forEach(t=>{this.processLeaveNode(t)})});const A=[],_=[];for(let S=this._namespaceList.length-1;S>=0;S--)this._namespaceList[S].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(A.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const u=!h||!this.driver.containsElement(h,s),l=y.get(s),d=f.get(s),g=this._buildInstruction(t,i,d,l,u);if(g.errors&&g.errors.length)_.push(g);else{if(u)return e.onStart(()=>os(s,g.fromStyles)),e.onDestroy(()=>ss(s,g.toStyles)),void n.push(e);if(t.isFallbackTransition)return e.onStart(()=>os(s,g.fromStyles)),e.onDestroy(()=>ss(s,g.toStyles)),void n.push(e);g.timelines.forEach(t=>t.stretchStartingKeyframe=!0),i.append(s,g.timelines),o.push({instruction:g,player:e,element:s}),g.queriedElements.forEach(t=>Sn(r,t,[]).push(e)),g.preStyleProps.forEach((t,e)=>{const i=Object.keys(t);if(i.length){let t=a.get(e);t||a.set(e,t=new Set),i.forEach(e=>t.add(e))}}),g.postStyleProps.forEach((t,e)=>{const i=Object.keys(t);let n=c.get(e);n||c.set(e,n=new Set),i.forEach(t=>n.add(t))})}});if(_.length){const t=[];_.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),A.forEach(t=>t.destroy()),this.reportError(t)}const v=new Map,T=new Map;o.forEach(t=>{const e=t.element;i.has(e)&&(T.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,v))}),n.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{Sn(v,e,[]).push(t),t.destroy()})});const k=p.filter(t=>yo(t,a,c)),C=new Map;lo(C,this.driver,w,c,dn).forEach(t=>{yo(t,a,c)&&k.push(t)});const E=new Map;d.forEach((t,e)=>{lo(E,this.driver,new Set(t),a,"!")}),k.forEach(t=>{const e=C.get(t),i=E.get(t);C.set(t,Object.assign(Object.assign({},e),i))});const z=[],R=[],P={};o.forEach(t=>{const{element:e,player:o,instruction:r}=t;if(i.has(e)){if(u.has(e))return o.onDestroy(()=>ss(e,r.toStyles)),o.disabled=!0,o.overrideTotalTime(r.totalTime),void n.push(o);let t=P;if(T.size>1){let i=e;const n=[];for(;i=i.parentNode;){const e=T.get(i);if(e){t=e;break}n.push(i)}n.forEach(e=>T.set(e,t))}const i=this._buildAnimation(o.namespaceId,r,v,s,E,C);if(o.setRealPlayer(i),t===P)z.push(o);else{const e=this.playersByElement.get(t);e&&e.length&&(o.parentPlayer=Cn(e)),n.push(o)}}else os(e,r.fromStyles),o.onDestroy(()=>ss(e,r.toStyles)),R.push(o),u.has(e)&&n.push(o)}),R.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const i=Cn(e);t.setRealPlayer(i)}}),n.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let S=0;S!t.destroyed);n.length?mo(this,t,n):this.processLeaveNode(t)}return p.length=0,z.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),z}elementContainsData(t,e){let i=!1;const n=e.__ng_removed;return n&&n.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,n,s){let o=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(o=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||s==so;e.forEach(e=>{e.queued||(t||e.triggerName==n)&&o.push(e)})}}return(i||n)&&(o=o.filter(t=>!(i&&i!=t.namespaceId||n&&n!=t.triggerName))),o}_beforeAnimationBuild(t,e,i){const n=e.element,s=e.isRemovalTransition?void 0:t,o=e.isRemovalTransition?void 0:e.triggerName;for(const r of e.timelines){const t=r.element,a=t!==n,c=Sn(i,t,[]);this._getPreviousPlayers(t,a,s,o,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),c.push(t)})}os(n,e.fromStyles)}_buildAnimation(t,e,i,n,s,o){const r=e.triggerName,a=e.element,c=[],u=new Set,h=new Set,l=e.timelines.map(e=>{const l=e.element;u.add(l);const d=l.__ng_removed;if(d&&d.removedBeforeQueried)return new _n(e.duration,e.delay);const f=l!==a,g=function(t){const e=[];return wo(t,e),e}((i.get(l)||to).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===l),p=s.get(l),m=o.get(l),w=En(0,this._normalizer,0,e.keyframes,p,m),y=this._buildPlayer(e,w,g);if(e.subTimeline&&n&&h.add(l),f){const e=new co(t,r,l);e.setRealPlayer(y),c.push(e)}return y});c.forEach(t=>{Sn(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,i){let n;if(t instanceof Map){if(n=t.get(e),n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&t.delete(e)}}else if(n=t[e],n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&delete t[e]}return n}(this.playersByQueriedElement,t.element,t))}),u.forEach(t=>go(t,Yn));const d=Cn(l);return d.onDestroy(()=>{u.forEach(t=>po(t,Yn)),ss(a,e.toStyles)}),h.forEach(t=>{Sn(n,t,[]).push(d)}),d}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new _n(t.duration,t.delay)}}class co{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new _n,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>zn(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Sn(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function uo(t){return t&&1===t.nodeType}function ho(t,e){const i=t.style.display;return t.style.display=null!=e?e:"none",i}function lo(t,e,i,n,s){const o=[];i.forEach(t=>o.push(ho(t)));const r=[];n.forEach((i,n)=>{const o={};i.forEach(t=>{const i=o[t]=e.computeStyle(n,t,s);i&&0!=i.length||(n.__ng_removed=io,r.push(n))}),t.set(n,o)});let a=0;return i.forEach(t=>ho(t,o[a++])),r}function fo(t,e){const i=new Map;if(t.forEach(t=>i.set(t,[])),0==e.length)return i;const n=new Set(e),s=new Map;function o(t){if(!t)return 1;let e=s.get(t);if(e)return e;const r=t.parentNode;return e=i.has(r)?r:n.has(r)?1:o(r),s.set(t,e),e}return e.forEach(t=>{const e=o(t);1!==e&&i.get(e).push(t)}),i}function go(t,e){if(t.classList)t.classList.add(e);else{let i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function po(t,e){if(t.classList)t.classList.remove(e);else{let i=t.$$classes;i&&delete i[e]}}function mo(t,e,i){Cn(i).onDone(()=>t.processLeaveNode(e))}function wo(t,e){for(let i=0;is.add(t)):e.set(t,n),i.delete(t),!0}class bo{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new ao(t,e,i),this._timelineEngine=new Zs(t,e,i),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,i,n,s){const o=t+"-"+n;let r=this._triggerCache[o];if(!r){const t=[],e=Ts(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${n}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);r=function(t,e){return new Vs(t,e)}(n,e),this._triggerCache[o]=r}this._transitionEngine.registerTrigger(e,n,r)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,n){this._transitionEngine.insertNode(t,e,i,n)}onRemove(t,e,i,n){this._transitionEngine.removeNode(t,e,n||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,n){if("@"==i.charAt(0)){const[t,s]=Bn(i);this._timelineEngine.command(t,e,s,n)}else this._transitionEngine.trigger(t,e,i,n)}listen(t,e,i,n,s){if("@"==i.charAt(0)){const[t,n]=Bn(i);return this._timelineEngine.listen(t,e,n,s)}return this._transitionEngine.listen(t,e,i,n,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Ao(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=vo(e[0]),e.length>1&&(n=vo(e[e.length-1]))):e&&(i=vo(e)),i||n?new _o(t,i,n):null}let _o=(()=>{class t{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&ss(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ss(this._element,this._initialStyles),this._endStyles&&(ss(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(os(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(os(this._element,this._endStyles),this._endStyles=null),ss(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function vo(t){let e=null;const i=Object.keys(t);for(let n=0;nthis._handleCallback(t)}apply(){!function(t,e){const i=Mo(t,"").trim();i.length&&(function(t,e){let i=0;for(let n=0;n=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),So(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const i=Mo(t,"").split(","),n=Po(i,e);n>=0&&(i.splice(n,1),Bo(t,"",i.join(",")))}(this._element,this._name))}}function zo(t,e,i){Bo(t,"PlayState",i,Ro(t,e))}function Ro(t,e){const i=Mo(t,"");return i.indexOf(",")>0?Po(i.split(","),e):Po([i],e)}function Po(t,e){for(let i=0;i=0)return i;return-1}function So(t,e,i){i?t.removeEventListener(Co,e):t.addEventListener(Co,e)}function Bo(t,e,i,n){const s=ko+e;if(null!=n){const e=t.style[s];if(e.length){const t=e.split(",");t[n]=i,i=t.join(",")}}t.style[s]=i}function Mo(t,e){return t.style[ko+e]||""}class Ko{constructor(t,e,i,n,s,o,r,a){this.element=t,this.keyframes=e,this.animationName=i,this._duration=n,this._delay=s,this._finalStyles=r,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=n+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Eo(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(i=>{"offset"!=i&&(t[i]=e?this._finalStyles[i]:ms(this.element,i))})}this.currentSnapshot=t}}class xo extends _n{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=qn(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class Ho{constructor(){this._count=0}validateStyleProperty(t){return Ln(t)}matchesElement(t,e){return On(t,e)}containsElement(t,e){return Fn(t,e)}query(t,e,i){return Dn(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(t=>qn(t));let n=`@keyframes ${e} {\n`,s="";i.forEach(t=>{s=" ";const e=parseFloat(t.offset);n+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const i=t[e];switch(e){case"offset":return;case"easing":return void(i&&(n+=`${s}animation-timing-function: ${i};\n`));default:return void(n+=`${s}${e}: ${i};\n`)}}),n+=`${s}}\n`}),n+="}\n";const o=document.createElement("style");return o.textContent=n,o}animate(t,e,i,n,s,o=[],r){const a=o.filter(t=>t instanceof Ko),c={};fs(i,n)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const u=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(i=>{"offset"!=i&&"easing"!=i&&(e[i]=t[i])})}),e}(e=gs(t,e,c));if(0==i)return new xo(t,u);const h="gen_css_kf_"+this._count++,l=this.buildKeyframeElement(t,h,e);(function(t){var e;const i=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&i instanceof ShadowRoot?i:document.head})(t).appendChild(l);const d=Ao(t,e),f=new Ko(t,e,h,i,n,s,u,d);return f.onDestroy(()=>{var t;(t=l).parentNode.removeChild(t)}),f}}class jo{constructor(t,e,i,n){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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}_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(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:ms(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Io{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Lo().toString()),this._cssKeyframesDriver=new Ho}validateStyleProperty(t){return Ln(t)}matchesElement(t,e){return On(t,e)}containsElement(t,e){return Fn(t,e)}query(t,e,i){return Dn(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,n,s,o=[],r){if(!r&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,s,o);const a={duration:i,delay:n,fill:0==n?"both":"forwards"};s&&(a.easing=s);const c={},u=o.filter(t=>t instanceof jo);fs(i,n)&&u.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const h=Ao(t,e=gs(t,e=e.map(t=>es(t,!1)),c));return new jo(t,e,a,h)}}function Lo(){return Tn()&&Element.prototype.animate||{}}let Oo=(()=>{class t extends ln{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:s.ifc.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?pn(t):t;return qo(this._renderer,null,e,"register",[i]),new Fo(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.FYo),s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class Fo extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Do(this._id,t,e||{},this._renderer)}}class Do{constructor(t,e,i,n){this.id=t,this.element=e,this._renderer=n,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return qo(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function qo(t,e,i,n,s){return t.setProperty(e,`@@${i}:${n}`,s)}const No="@",Uo="@.disabled";let Go=(()=>{class t{constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const i=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(i);return t||(t=new $o("",i,this.engine),this._rendererCache.set(i,t)),t}const n=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const o=e=>{Array.isArray(e)?e.forEach(o):this.engine.registerTrigger(n,s,t,e.name,e)};return e.data.animation.forEach(o),new Vo(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){t>=0&&te(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,i]=t;e(i)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,i]))}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 t.\u0275fac=function(e){return new(e||t)(s.LFG(s.FYo),s.LFG(bo),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class $o{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,n=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,n)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,n){this.delegate.setAttribute(t,e,i,n)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,n){this.delegate.setStyle(t,e,i,n)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){e.charAt(0)==No&&e==Uo?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Vo extends $o{constructor(t,e,i,n){super(e,i,n),this.factory=t,this.namespaceId=e}setProperty(t,e,i){e.charAt(0)==No?"."==e.charAt(1)&&e==Uo?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if(e.charAt(0)==No){const n=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),o="";return s.charAt(0)!=No&&([s,o]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,n,s,o,t=>{this.factory.scheduleListenerCallback(t._data||-1,i,t)})}return this.delegate.listen(t,e,i)}}let Wo=(()=>{class t extends bo{constructor(t,e,i){super(t.body,e,i)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0),s.LFG(Un),s.LFG(Fs))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const Yo=new s.OlP("AnimationModuleType"),Zo=[{provide:ln,useClass:Oo},{provide:Fs,useFactory:function(){return new Ds}},{provide:bo,useClass:Wo},{provide:s.FYo,useFactory:function(t,e,i){return new Go(t,e,i)},deps:[T,bo,s.R0b]}],Qo=[{provide:Un,useFactory:function(){return"function"==typeof Lo()?new Io:new Ho}},{provide:Yo,useValue:"BrowserAnimations"},...Zo],Jo=[{provide:Un,useClass:Nn},{provide:Yo,useValue:"NoopAnimations"},...Zo];let Xo=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?Jo:Qo}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:Qo,imports:[L]}),t})();const tr=new s.GfV("12.0.5"),er=new s.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let ir=(()=>{class t{constructor(t,e,i){this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return(0,s.X6Q)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&tr.full!==hn.full&&console.warn("The Angular Material version ("+tr.full+") does not match the Angular CDK version ("+hn.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(cn),s.LFG(er,8),s.LFG(n.K0))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Le],Le]}),t})();function nr(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=bt(t)}}}function sr(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function or(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=bt(t)}}}function rr(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new kt.xQ}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}const ar=new s.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return(0,s.f3M)(s.soG)}});class cr{constructor(){this._localeChanges=new kt.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let i=this.isValid(t),n=this.isValid(e);return i&&n?!this.compareDate(t,e):i==n}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}}const ur=new s.OlP("mat-date-formats");let hr;try{hr="undefined"!=typeof Intl}catch(Pw){hr=!1}const lr={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},dr=pr(31,t=>String(t+1)),fr={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},gr=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function pr(t,e){const i=Array(t);for(let n=0;n{class t extends cr{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(hr){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return pr(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return lr[t]}getDateNames(){if(hr){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return pr(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return dr}getDayOfWeekNames(t){if(hr){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return pr(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return fr[t]}getYearName(t){if(hr){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,i){let n=this._createDateWithOverflow(t,e,i);return n.getMonth(),n}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(hr){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});const i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(i,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let i=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(i)!=((this.getMonth(t)+e)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(gr.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,i){const n=new Date;return n.setFullYear(t,e,i),n.setHours(0,0,0,0),n}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const i=new Date;return i.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),i.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(i)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(ar,8),s.LFG(Ce))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),wr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[{provide:cr,useClass:mr}],imports:[[Ee]]}),t})();const yr={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 br=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[{provide:ur,useValue:yr}],imports:[[wr]]}),t})(),Ar=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),_r=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[ir],ir]}),t})();class vr{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Tr={enterDuration:450,exitDuration:400},kr=Me({passive:!0}),Cr=["mousedown","touchstart"],Er=["mouseup","mouseleave","touchend","touchcancel"];class zr{constructor(t,e,i,n){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,n.isBrowser&&(this._containerElement=Tt(i))}fadeInRipple(t,e,i={}){const n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},Tr),i.animation);i.centered&&(t=n.left+n.width/2,e=n.top+n.height/2);const o=i.radius||function(t,e,i){const n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),s=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+s*s)}(t,e,n),r=t-n.left,a=e-n.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=r-o+"px",u.style.top=a-o+"px",u.style.height=2*o+"px",u.style.width=2*o+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),window.getComputedStyle(u).getPropertyValue("opacity"),u.style.transform="scale(1)";const h=new vr(this,u,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const t=h===this._mostRecentTransientRipple;h.state=1,i.persistent||t&&this._isPointerDown||h.fadeOut()},c),h}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,n=Object.assign(Object.assign({},Tr),t.config.animation);i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.parentNode.removeChild(i)},n.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=Tt(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Cr))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Er),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Ji(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,kr)})})}_removeTriggerEvents(){this._triggerElement&&(Cr.forEach(t=>{this._triggerElement.removeEventListener(t,this,kr)}),this._pointerUpEventsRegistered&&Er.forEach(t=>{this._triggerElement.removeEventListener(t,this,kr)}))}}const Rr=new s.OlP("mat-ripple-global-options");let Pr=(()=>{class t{constructor(t,e,i,n,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=n||{},this._rippleRenderer=new zr(this,e,t,i)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,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:Object.assign(Object.assign(Object.assign({},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(t,e=0,i){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(Ce),s.Y36(Rr,8),s.Y36(Yo,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),Sr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[ir,Ee],ir]}),t})(),Br=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[ir]]}),t})(),Mr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Sr,n.ez,ir,Br]]}),t})();var Kr=i(9764),xr=i(653);function Hr(t){return new Et.y(e=>{let i;try{i=t()}catch(n){return void e.error(n)}return(i?(0,Kr.D)(i):(0,xr.c)()).subscribe(e)})}function jr(t,e){}class Ir{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=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const Lr={dialogContainer:fn("dialogContainer",[wn("void, exit",mn({opacity:0,transform:"scale(0.7)"})),wn("enter",mn({transform:"none"})),bn("* => enter",gn("150ms cubic-bezier(0, 0, 0.2, 1)",mn({transform:"none",opacity:1}))),bn("* => void, * => exit",gn("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",mn({opacity:0})))])};let Or=(()=>{class t extends Ve{constructor(t,e,i,n,o,r){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=i,this._config=o,this._focusMonitor=r,this._animationStateChanged=new s.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=o.ariaLabelledBy||null,this._document=n}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=He(),i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=He())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=He();return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Qi),s.Y36(s.sBO),s.Y36(n.K0,8),s.Y36(Ir),s.Y36(nn))},t.\u0275dir=s.lG2({type:t,viewQuery:function(t,e){if(1&t&&s.Gf(Ye,7),2&t){let t;s.iGM(t=s.CRH())&&(e._portalOutlet=t.first)}},features:[s.qOj]}),t})(),Fr=(()=>{class t extends Or{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&s.WFA("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(s.Ikx("id",e._id),s.uIk("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),s.d8E("@dialogContainer",e._state))},features:[s.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&s.YNc(0,jr,0,0,"ng-template",0)},directives:[Ye],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[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.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}\n"],encapsulation:2,data:{animation:[Lr.dialogContainer]}}),t})(),Dr=0;class qr{constructor(t,e,i="mat-dialog-"+Dr++){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new kt.xQ,this._afterClosed=new kt.xQ,this._beforeClosed=new kt.xQ,this._state=0,e._id=i,e._animationStateChanged.pipe((0,se.h)(t=>"opened"===t.state),(0,Je.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,se.h)(t=>"closed"===t.state),(0,Je.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe((0,se.h)(t=>27===t.keyCode&&!this.disableClose&&!Xe(t))).subscribe(t=>{t.preventDefault(),Nr(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():Nr(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe((0,se.h)(t=>"closing"===t.state),(0,Je.q)(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function Nr(t,e,i){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(i)}const Ur=new s.OlP("MatDialogData"),Gr=new s.OlP("mat-dialog-default-options"),$r=new s.OlP("mat-dialog-scroll-strategy"),Vr={provide:$r,deps:[Ri],useFactory:function(t){return()=>t.scrollStrategies.block()}};let Wr=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c){this._overlay=t,this._injector=e,this._defaultOptions=i,this._parentDialog=n,this._overlayContainer=s,this._dialogRefConstructor=r,this._dialogContainerType=a,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new kt.xQ,this._afterOpenedAtThisLevel=new kt.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=Hr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(he(void 0))),this._scrollStrategy=o}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new Ir)).id&&this.getDialogById(e.id);const i=this._createOverlay(e),n=this._attachDialogContainer(i,e),s=this._attachDialogContent(t,n,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),n._initializeWithAttachedContent(),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new ci({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const i=s.zs3.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:Ir,useValue:e}]}),n=new Ue(this._dialogContainerType,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}_attachDialogContent(t,e,i,n){const o=new this._dialogRefConstructor(i,e,n.id);if(t instanceof s.Rgc)e.attachTemplatePortal(new Ge(t,null,{$implicit:n.data,dialogRef:o}));else{const i=this._createInjector(n,o,e),s=e.attachComponentPortal(new Ue(t,n.viewContainerRef,i));o.componentInstance=s.instance}return o.updateSize(n.width,n.height).updatePosition(n.position),o}_createInjector(t,e,i){const n=t&&t.viewContainerRef&&t.viewContainerRef.injector,o=[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||n&&n.get(Ie,null,s.XFs.Optional)||o.push({provide:Ie,useValue:{value:t.direction,change:(0,Ct.of)()}}),s.zs3.create({parent:n||this._injector,providers:o})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let i=e.length-1;i>-1;i--){let n=e[i];n===t||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Ri),s.Y36(s.zs3),s.Y36(void 0),s.Y36(void 0),s.Y36(pi),s.Y36(void 0),s.Y36(s.DyG),s.Y36(s.DyG),s.Y36(s.OlP))},t.\u0275dir=s.lG2({type:t}),t})(),Yr=(()=>{class t extends Wr{constructor(t,e,i,n,s,o,r){super(t,e,n,o,r,s,qr,Fr,Ur)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Ri),s.LFG(s.zs3),s.LFG(n.Ye,8),s.LFG(Gr,8),s.LFG($r),s.LFG(t,12),s.LFG(pi))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Zr=0,Qr=(()=>{class t{constructor(t,e,i){this._dialogRef=t,this._elementRef=e,this._dialog=i,this.id="mat-dialog-title-"+Zr++}ngOnInit(){this._dialogRef||(this._dialogRef=function(t,e){let i=t.nativeElement.parentElement;for(;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?e.find(t=>t.id===i.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(qr,8),s.Y36(s.SBq),s.Y36(Yr))},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&s.Ikx("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),Jr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),Xr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})(),ta=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Yr,Vr],imports:[[Si,Ze,ir],ir]}),t})();var ea=i(2056);function ia(...t){if(1===t.length){const e=t[0];if((0,zt.k)(e))return na(e,null);if((0,ea.K)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return na(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return na(t=1===t.length&&(0,zt.k)(t[0])?t[0]:t,null).pipe((0,Pt.U)(t=>e(...t)))}return na(t,null)}function na(t,e){return new Et.y(i=>{const n=t.length;if(0===n)return void i.complete();const s=new Array(n);let o=0,r=0;for(let a=0;a{u||(u=!0,r++),s[a]=t},error:t=>i.error(t),complete:()=>{o++,o!==n&&u||(r===n&&i.next(e?e.reduce((t,e,i)=>(t[e]=s[i],t),{}):s),i.complete())}}))}})}var sa=i(436);class oa{}let ra=(()=>{class t extends oa{getTranslation(t){return(0,Ct.of)({})}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class aa{}let ca=(()=>{class t{handle(t){return t.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function ua(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;let i,n,s,o=typeof t;if(o==typeof e&&"object"==o){if(!Array.isArray(t)){if(Array.isArray(e))return!1;for(n in s=Object.create(null),t){if(!ua(t[n],e[n]))return!1;s[n]=!0}for(n in e)if(!(n in s)&&void 0!==e[n])return!1;return!0}if(!Array.isArray(e))return!1;if((i=t.length)==e.length){for(n=0;n{la(e[n])?n in t?i[n]=da(t[n],e[n]):Object.assign(i,{[n]:e[n]}):Object.assign(i,{[n]:e[n]})}),i}class fa{}let ga=(()=>{class t extends fa{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(t,e){let i;return i="string"==typeof t?this.interpolateString(t,e):"function"==typeof t?this.interpolateFunction(t,e):t,i}getValue(t,e){let i="string"==typeof e?e.split("."):[e];e="";do{e+=i.shift(),!ha(t)||!ha(t[e])||"object"!=typeof t[e]&&i.length?i.length?e+=".":t=void 0:(t=t[e],e="")}while(i.length);return t}interpolateFunction(t,e){return t(e)}interpolateString(t,e){return e?t.replace(this.templateMatcher,(t,i)=>{let n=this.getValue(e,i);return ha(n)?n:t}):t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class pa{}let ma=(()=>{class t extends pa{compile(t,e){return t}compileTranslations(t,e){return t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class wa{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new s.vpe,this.onLangChange=new s.vpe,this.onDefaultLangChange=new s.vpe}}const ya=new s.OlP("USE_STORE"),ba=new s.OlP("USE_DEFAULT_LANG"),Aa=new s.OlP("DEFAULT_LANGUAGE"),_a=new s.OlP("USE_EXTEND");let va=(()=>{class t{constructor(t,e,i,n,o,r=!0,a=!1,c=!1,u){this.store=t,this.currentLoader=e,this.compiler=i,this.parser=n,this.missingTranslationHandler=o,this.useDefaultLang=r,this.isolate=a,this.extend=c,this.pending=!1,this._onTranslationChange=new s.vpe,this._onLangChange=new s.vpe,this._onDefaultLangChange=new s.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(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}setDefaultLang(t){if(t===this.defaultLang)return;let e=this.retrieveTranslations(t);void 0!==e?(null==this.defaultLang&&(this.defaultLang=t),e.pipe((0,Je.q)(1)).subscribe(e=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return(0,Ct.of)(this.translations[t]);let e=this.retrieveTranslations(t);return void 0!==e?(this.currentLang||(this.currentLang=t),e.pipe((0,Je.q)(1)).subscribe(e=>{this.changeLang(t)}),e):(this.changeLang(t),(0,Ct.of)(this.translations[t]))}retrieveTranslations(t){let e;return(void 0===this.translations[t]||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),e=this._translationRequests[t]),e}getTranslation(t){this.pending=!0;const e=this.currentLoader.getTranslation(t).pipe(ve(1),(0,Je.q)(1));return this.loadingTranslations=e.pipe((0,Pt.U)(e=>this.compiler.compileTranslations(e,t)),ve(1),(0,Je.q)(1)),this.loadingTranslations.subscribe({next:e=>{this.translations[t]=this.extend&&this.translations[t]?Object.assign(Object.assign({},e),this.translations[t]):e,this.updateLangs(),this.pending=!1},error:t=>{this.pending=!1}}),e}setTranslation(t,e,i=!1){e=this.compiler.compileTranslations(e,t),this.translations[t]=(i||this.extend)&&this.translations[t]?da(this.translations[t],e):e,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,e,i){let n;if(e instanceof Array){let n={},s=!1;for(let o of e)n[o]=this.getParsedResult(t,o,i),$t(n[o])&&(s=!0);return s?ia(e.map(t=>$t(n[t])?n[t]:(0,Ct.of)(n[t]))).pipe((0,Pt.U)(t=>{let i={};return t.forEach((t,n)=>{i[e[n]]=t}),i})):n}if(t&&(n=this.parser.interpolate(this.parser.getValue(t,e),i)),void 0===n&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(n=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e),i)),void 0===n){let t={key:e,translateService:this};void 0!==i&&(t.interpolateParams=i),n=this.missingTranslationHandler.handle(t)}return void 0!==n?n:e}get(t,e){if(!ha(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,sa.b)(i=>$t(i=this.getParsedResult(i,t,e))?i:(0,Ct.of)(i)));{let i=this.getParsedResult(this.translations[this.currentLang],t,e);return $t(i)?i:(0,Ct.of)(i)}}getStreamOnTranslationChange(t,e){if(!ha(t)||!t.length)throw new Error('Parameter "key" required');return ue(Hr(()=>this.get(t,e)),this.onTranslationChange.pipe((0,le.w)(i=>{const n=this.getParsedResult(i.translations,t,e);return"function"==typeof n.subscribe?n:(0,Ct.of)(n)})))}stream(t,e){if(!ha(t)||!t.length)throw new Error('Parameter "key" required');return ue(Hr(()=>this.get(t,e)),this.onLangChange.pipe((0,le.w)(i=>{const n=this.getParsedResult(i.translations,t,e);return $t(n)?n:(0,Ct.of)(n)})))}instant(t,e){if(!ha(t)||!t.length)throw new Error('Parameter "key" required');let i=this.getParsedResult(this.translations[this.currentLang],t,e);if($t(i)){if(t instanceof Array){let e={};return t.forEach((i,n)=>{e[t[n]]=t[n]}),e}return t}return i}set(t,e,i=this.currentLang){this.translations[i][t]=this.compiler.compile(e,i),this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==t?(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(wa),s.LFG(oa),s.LFG(pa),s.LFG(fa),s.LFG(aa),s.LFG(ba),s.LFG(ya),s.LFG(_a),s.LFG(Aa))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Ta=(()=>{class t{constructor(t,e){this.translate=t,this._ref=e,this.value=""}updateValue(t,e,i){let n=e=>{this.value=void 0!==e?e:t,this.lastKey=t,this._ref.markForCheck()};if(i){let s=this.translate.getParsedResult(i,t,e);$t(s.subscribe)?s.subscribe(n):n(s)}this.translate.get(t,e).subscribe(n)}transform(t,...e){if(!t||!t.length)return t;if(ua(t,this.lastKey)&&ua(e,this.lastParams))return this.value;let i;if(ha(e[0])&&e.length)if("string"==typeof e[0]&&e[0].length){let t=e[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{i=JSON.parse(t)}catch(n){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${e[0]}`)}}else"object"!=typeof e[0]||Array.isArray(e[0])||(i=e[0]);return this.lastKey=t,this.lastParams=e,this.updateValue(t,i),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(e=>{this.lastKey&&e.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(t,i,e.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(e=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i,e.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(va,16),s.Y36(s.sBO,16))},t.\u0275pipe=s.Yjl({name:"translate",type:t,pure:!1}),t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),ka=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:oa,useClass:ra},e.compiler||{provide:pa,useClass:ma},e.parser||{provide:fa,useClass:ga},e.missingTranslationHandler||{provide:aa,useClass:ca},wa,{provide:ya,useValue:e.isolate},{provide:ba,useValue:e.useDefaultLang},{provide:_a,useValue:e.extend},{provide:Aa,useValue:e.defaultLanguage},va]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:oa,useClass:ra},e.compiler||{provide:pa,useClass:ma},e.parser||{provide:fa,useClass:ga},e.missingTranslationHandler||{provide:aa,useClass:ca},{provide:ya,useValue:e.isolate},{provide:ba,useValue:e.useDefaultLang},{provide:_a,useValue:e.extend},{provide:Aa,useValue:e.defaultLanguage},va]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),Ca=(()=>{class t{constructor(t){this.dialogRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(qr))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(t,e){1&t&&(s.TgZ(0,"h2",0),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},directives:[Jr],pipes:[Ta],styles:[""]}),t})();const Ea=["mat-button",""],za=["*"],Ra=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class Pa{constructor(t){this._elementRef=t}}const Sa=sr(nr(or(Pa)));let Ba=(()=>{class t extends Sa{constructor(t,e,i){super(t),this._focusMonitor=e,this._animationMode=i,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const n of Ra)this._hasHostAttributes(n)&&this._getHostElement().classList.add(n);t.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(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(nn),s.Y36(Yo,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){if(1&t&&s.Gf(Pr,5),2&t){let t;s.iGM(t=s.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(s.uIk("disabled",e.disabled||null),s.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[s.qOj],attrs:Ea,ngContentSelectors:za,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(t,e){1&t&&(s.F$t(),s.TgZ(0,"span",0),s.Hsn(1),s.qZA(),s._UZ(2,"span",1),s._UZ(3,"span",2)),2&t&&(s.xp6(2),s.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),s.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[Pr],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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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-animation-noopable.mat-raised-button{transition:none;animation:none}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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-animation-noopable.mat-fab{transition:none;animation:none}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t})(),Ma=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Sr,ir],ir]}),t})();const Ka=["underline"],xa=["connectionContainer"],Ha=["inputContainer"],ja=["label"];function Ia(t,e){1&t&&(s.ynx(0),s.TgZ(1,"div",14),s._UZ(2,"div",15),s._UZ(3,"div",16),s._UZ(4,"div",17),s.qZA(),s.TgZ(5,"div",18),s._UZ(6,"div",15),s._UZ(7,"div",16),s._UZ(8,"div",17),s.qZA(),s.BQk())}function La(t,e){1&t&&(s.TgZ(0,"div",19),s.Hsn(1,1),s.qZA())}function Oa(t,e){if(1&t&&(s.ynx(0),s.Hsn(1,2),s.TgZ(2,"span"),s._uU(3),s.qZA(),s.BQk()),2&t){const t=s.oxw(2);s.xp6(3),s.Oqu(t._control.placeholder)}}function Fa(t,e){1&t&&s.Hsn(0,3,["*ngSwitchCase","true"])}function Da(t,e){1&t&&(s.TgZ(0,"span",23),s._uU(1," *"),s.qZA())}function qa(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"label",20,21),s.NdJ("cdkObserveContent",function(){return s.CHM(t),s.oxw().updateOutlineGap()}),s.YNc(2,Oa,4,1,"ng-container",12),s.YNc(3,Fa,1,0,"ng-content",12),s.YNc(4,Da,2,0,"span",22),s.qZA()}if(2&t){const t=s.oxw();s.ekj("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),s.Q6J("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),s.uIk("for",t._control.id)("aria-owns",t._control.id),s.xp6(2),s.Q6J("ngSwitchCase",!1),s.xp6(1),s.Q6J("ngSwitchCase",!0),s.xp6(1),s.Q6J("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function Na(t,e){1&t&&(s.TgZ(0,"div",24),s.Hsn(1,4),s.qZA())}function Ua(t,e){if(1&t&&(s.TgZ(0,"div",25,26),s._UZ(2,"span",27),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.ekj("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function Ga(t,e){if(1&t&&(s.TgZ(0,"div"),s.Hsn(1,5),s.qZA()),2&t){const t=s.oxw();s.Q6J("@transitionMessages",t._subscriptAnimationState)}}function $a(t,e){if(1&t&&(s.TgZ(0,"div",31),s._uU(1),s.qZA()),2&t){const t=s.oxw(2);s.Q6J("id",t._hintLabelId),s.xp6(1),s.Oqu(t.hintLabel)}}function Va(t,e){if(1&t&&(s.TgZ(0,"div",28),s.YNc(1,$a,2,2,"div",29),s.Hsn(2,6),s._UZ(3,"div",30),s.Hsn(4,7),s.qZA()),2&t){const t=s.oxw();s.Q6J("@transitionMessages",t._subscriptAnimationState),s.xp6(1),s.Q6J("ngIf",t.hintLabel)}}const Wa=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Ya=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Za=0;const Qa=new s.OlP("MatError");let Ja=(()=>{class t{constructor(t,e){this.id="mat-error-"+Za++,t||e.nativeElement.setAttribute("aria-live","polite")}}return t.\u0275fac=function(e){return new(e||t)(s.$8M("aria-live"),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&s.uIk("id",e.id)},inputs:{id:"id"},features:[s._Bn([{provide:Qa,useExisting:t}])]}),t})();const Xa={transitionMessages:fn("transitionMessages",[wn("enter",mn({opacity:1,transform:"translateY(0%)"})),bn("void => enter",[mn({opacity:0,transform:"translateY(-5px)"}),gn("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let tc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t}),t})(),ec=0;const ic=new s.OlP("MatHint");let nc=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+ec++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(s.uIk("id",e.id)("align",null),s.ekj("mat-form-field-hint-end","end"===e.align))},inputs:{align:"align",id:"id"},features:[s._Bn([{provide:ic,useExisting:t}])]}),t})(),sc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-label"]]}),t})(),oc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-placeholder"]]}),t})();const rc=new s.OlP("MatPrefix"),ac=new s.OlP("MatSuffix");let cc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","matSuffix",""]],features:[s._Bn([{provide:ac,useExisting:t}])]}),t})(),uc=0;class hc{constructor(t){this._elementRef=t}}const lc=sr(hc,"primary"),dc=new s.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),fc=new s.OlP("MatFormField");let gc=(()=>{class t extends lc{constructor(t,e,i,n,s,o,r,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=n,this._defaults=s,this._platform=o,this._ngZone=r,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new kt.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+uc++,this._labelId="mat-form-field-label-"+uc++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=bt(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe(he(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(oe(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(oe(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,Qe.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(he(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(he(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(oe(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(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_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,St(this._label.nativeElement,"transitionend").pipe((0,Je.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 t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,i=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),i&&t.push(i.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,i=0;const n=this._connectionContainerRef.nativeElement,s=n.querySelectorAll(".mat-form-field-outline-start"),o=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=n.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const o=this._getStartEnd(s),r=t.children,a=this._getStartEnd(r[0].getBoundingClientRect());let c=0;for(let t=0;t0?.75*c+10:0}for(let r=0;r{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,ir,ji],ir]}),t})(),mc=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Qsj),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t}),t})(),wc=(()=>{class t extends mc{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,features:[s.qOj]}),t})();const yc=new s.OlP("NgValueAccessor"),bc={provide:yc,useExisting:(0,s.Gpc)(()=>_c),multi:!0},Ac=new s.OlP("CompositionEventMode");let _c=(()=>{class t extends mc{constructor(t,e,i){super(t,e),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=(0,n.q)()?(0,n.q)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Qsj),s.Y36(s.SBq),s.Y36(Ac,8))},t.\u0275dir=s.lG2({type:t,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(t,e){1&t&&s.NdJ("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[s._Bn([bc]),s.qOj]}),t})();function vc(t){return null==t||0===t.length}function Tc(t){return null!=t&&"number"==typeof t.length}const kc=new s.OlP("NgValidators"),Cc=new s.OlP("NgAsyncValidators"),Ec=/^(?=.{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 zc{static min(t){return function(t){return e=>{if(vc(e.value)||vc(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i{if(vc(e.value)||vc(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}(t)}static required(t){return Rc(t)}static requiredTrue(t){return function(t){return!0===t.value?null:{required:!0}}(t)}static email(t){return function(t){return vc(t.value)||Ec.test(t.value)?null:{email:!0}}(t)}static minLength(t){return function(t){return e=>vc(e.value)||!Tc(e.value)?null:e.value.lengthTc(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}(t)}static pattern(t){return function(t){if(!t)return Pc;let e,i;return"string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),t=>{if(vc(t.value))return null;const n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}}(t)}static nullValidator(t){return null}static compose(t){return Hc(t)}static composeAsync(t){return Ic(t)}}function Rc(t){return vc(t.value)?{required:!0}:null}function Pc(t){return null}function Sc(t){return null!=t}function Bc(t){const e=(0,s.QGY)(t)?(0,Kr.D)(t):t;return(0,s.CqO)(e),e}function Mc(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function Kc(t,e){return e.map(e=>e(t))}function xc(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function Hc(t){if(!t)return null;const e=t.filter(Sc);return 0==e.length?null:function(t){return Mc(Kc(t,e))}}function jc(t){return null!=t?Hc(xc(t)):null}function Ic(t){if(!t)return null;const e=t.filter(Sc);return 0==e.length?null:function(t){return ia(Kc(t,e).map(Bc)).pipe((0,Pt.U)(Mc))}}function Lc(t){return null!=t?Ic(xc(t)):null}function Oc(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function Fc(t){return t._rawValidators}function Dc(t){return t._rawAsyncValidators}let qc=(()=>{class t{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(t){this._rawValidators=t||[],this._composedValidatorFn=jc(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Lc(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t}),t})(),Nc=(()=>{class t extends qc{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,features:[s.qOj]}),t})();class Uc extends qc{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Gc{constructor(t){this._cd=t}is(t){var e,i;return!!(null===(i=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===i?void 0:i[t])}}let $c=(()=>{class t extends Gc{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Uc,2))},t.\u0275dir=s.lG2({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&s.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[s.qOj]}),t})(),Vc=(()=>{class t extends Gc{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Nc,10))},t.\u0275dir=s.lG2({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&s.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[s.qOj]}),t})();function Wc(t,e){return[...e.path,t]}function Yc(t,e){Jc(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&tu(t,e)})}(t,e),function(t,e){const i=(t,i)=>{e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&tu(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const i=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}(t,e)}function Zc(t,e,i=!0){const n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),Xc(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Qc(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Jc(t,e){const i=Fc(t);null!==e.validator?t.setValidators(Oc(i,e.validator)):"function"==typeof i&&t.setValidators([i]);const n=Dc(t);null!==e.asyncValidator?t.setAsyncValidators(Oc(n,e.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);const s=()=>t.updateValueAndValidity();Qc(e._rawValidators,s),Qc(e._rawAsyncValidators,s)}function Xc(t,e){let i=!1;if(null!==t){if(null!==e.validator){const n=Fc(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.validator);s.length!==n.length&&(i=!0,t.setValidators(s))}}if(null!==e.asyncValidator){const n=Dc(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.asyncValidator);s.length!==n.length&&(i=!0,t.setAsyncValidators(s))}}}const n=()=>{};return Qc(e._rawValidators,n),Qc(e._rawAsyncValidators,n),i}function tu(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function eu(t,e){Jc(t,e)}function iu(t,e){if(!t.hasOwnProperty("model"))return!1;const i=t.model;return!!i.isFirstChange()||!Object.is(e,i.currentValue)}function nu(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function su(t,e){if(!e)return null;let i,n,s;return Array.isArray(e),e.forEach(t=>{t.constructor===_c?i=t:Object.getPrototypeOf(t.constructor)===wc?n=t:s=t}),s||n||i||null}function ou(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}const ru="VALID",au="INVALID",cu="PENDING",uu="DISABLED";function hu(t){return(gu(t)?t.validators:t)||null}function lu(t){return Array.isArray(t)?jc(t):t||null}function du(t,e){return(gu(e)?e.asyncValidators:t)||null}function fu(t){return Array.isArray(t)?Lc(t):t||null}function gu(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class pu{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=lu(this._rawValidators),this._composedAsyncValidatorFn=fu(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===ru}get invalid(){return this.status===au}get pending(){return this.status==cu}get disabled(){return this.status===uu}get enabled(){return this.status!==uu}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=lu(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=fu(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=cu,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=uu,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=ru,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==ru&&this.status!==cu||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?uu:ru}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=cu,this._hasOwnPendingAsyncValidator=!0;const e=Bc(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let n=t;return e.forEach(t=>{n=n instanceof wu?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof yu&&n.at(t)||null}),n}(this,t)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new s.vpe,this.statusChanges=new s.vpe}_calculateStatus(){return this._allControlsDisabled()?uu:this.errors?au:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(cu)?cu:this._anyControlsHaveStatus(au)?au:ru}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){gu(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class mu extends pu{constructor(t=null,e,i){super(hu(e),du(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){ou(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){ou(this._onDisabledChange,t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class wu extends pu{constructor(t,e,i){super(hu(e),du(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof mu?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((t,n)=>{i=e(i,t,n)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class yu extends pu{constructor(t,e,i){super(hu(e),du(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,i)=>{this._throwIfControlMissing(i),this.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,i)=>{this.at(i)&&this.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof mu?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const bu={provide:Nc,useExisting:(0,s.Gpc)(()=>_u)},Au=(()=>Promise.resolve(null))();let _u=(()=>{class t extends Nc{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new s.vpe,this.form=new wu({},jc(t),Lc(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Au.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),Yc(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Au.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),ou(this._directives,t)})}addFormGroup(t){Au.then(()=>{const e=this._findContainer(t.path),i=new wu({});eu(i,t),e.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Au.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){Au.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,nu(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(kc,10),s.Y36(Cc,10))},t.\u0275dir=s.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&s.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s._Bn([bu]),s.qOj]}),t})();const vu={provide:Uc,useExisting:(0,s.Gpc)(()=>ku)},Tu=(()=>Promise.resolve(null))();let ku=(()=>{class t extends Uc{constructor(t,e,i,n){super(),this.control=new mu,this._registered=!1,this.update=new s.vpe,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=su(0,n)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),iu(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Wc(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_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(){Yc(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(t){Tu.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,i=""===e||e&&"false"!==e;Tu.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Nc,9),s.Y36(kc,10),s.Y36(Cc,10),s.Y36(yc,10))},t.\u0275dir=s.lG2({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[s._Bn([vu]),s.qOj,s.TTD]}),t})(),Cu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();const Eu=new s.OlP("NgModelWithFormControlWarning"),zu={provide:Nc,useExisting:(0,s.Gpc)(()=>Ru)};let Ru=(()=>{class t extends Nc{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new s.vpe,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Xc(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return Yc(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){Zc(t.control||null,t,!1),ou(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,nu(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,i=this.form.get(t.path);e!==i&&(Zc(e||null,t),i instanceof mu&&(Yc(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);eu(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return Xc(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Jc(this.form,this),this._oldForm&&Xc(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(kc,10),s.Y36(Cc,10))},t.\u0275dir=s.lG2({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&s.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s._Bn([zu]),s.qOj,s.TTD]}),t})();const Pu={provide:Uc,useExisting:(0,s.Gpc)(()=>Su)};let Su=(()=>{class t extends Uc{constructor(t,e,i,n,o){super(),this._ngModelWarningConfig=o,this._added=!1,this.update=new s.vpe,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=su(0,n)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),iu(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return Wc(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.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Nc,13),s.Y36(kc,10),s.Y36(Cc,10),s.Y36(yc,10),s.Y36(Eu,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[s._Bn([Pu]),s.qOj,s.TTD]}),t._ngModelWarningSentOnce=!1,t})();const Bu={provide:kc,useExisting:(0,s.Gpc)(()=>Mu),multi:!0};let Mu=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!=`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?Rc(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&s.uIk("required",e.required?"":null)},inputs:{required:"required"},features:[s._Bn([Bu])]}),t})(),Ku=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Cu]]}),t})(),xu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[Ku]}),t})(),Hu=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Eu,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[Ku]}),t})(),ju=(()=>{class t{group(t,e=null){const i=this._reduceControls(t);let n,s=null,o=null;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(s=null!=e.validators?e.validators:null,o=null!=e.asyncValidators?e.asyncValidators:null,n=null!=e.updateOn?e.updateOn:void 0):(s=null!=e.validator?e.validator:null,o=null!=e.asyncValidator?e.asyncValidator:null)),new wu(i,{asyncValidators:o,updateOn:n,validators:s})}control(t,e,i){return new mu(t,e,i)}array(t,e,i){const n=t.map(t=>this._createControl(t));return new yu(n,e,i)}_reduceControls(t){const e={};return Object.keys(t).forEach(i=>{e[i]=this._createControl(t[i])}),e}_createControl(t){return t instanceof mu||t instanceof wu||t instanceof yu?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t},token:t,providedIn:Hu}),t})();const Iu={provide:new s.OlP("mat-select-scroll-strategy"),deps:[Ri],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Lu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Iu],imports:[[n.ez,Si,Mr,ir],De,pc,Mr,ir]}),t})();var Ou=i(1305);class Fu{constructor(t){this.total=t}call(t,e){return e.subscribe(new Du(t,this.total))}}class Du extends Vt.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}const qu=new Set;let Nu,Uu=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Gu}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!qu.has(t))try{Nu||(Nu=document.createElement("style"),Nu.setAttribute("type","text/css"),document.head.appendChild(Nu)),Nu.sheet&&(Nu.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),qu.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Ce))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Ce))},token:t,providedIn:"root"}),t})();function Gu(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let $u=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new kt.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return Vu(_t(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=Vu(_t(t)).map(t=>this._registerQuery(t).observable);let i=(0,Ou.aj)(e);return i=ue(i.pipe((0,Je.q)(1)),i.pipe(t=>t.lift(new Fu(1)),(0,Mi.b)(0))),i.pipe((0,Pt.U)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:i})=>{e.matches=e.matches||t,e.breakpoints[i]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),i={observable:new Et.y(t=>{const i=e=>this._zone.run(()=>t.next(e));return e.addListener(i),()=>{e.removeListener(i)}}).pipe(he(e),(0,Pt.U)(({matches:e})=>({query:t,matches:e})),oe(this._destroySubject)),mql:e};return this._queries.set(t,i),i}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Uu),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Uu),s.LFG(s.R0b))},token:t,providedIn:"root"}),t})();function Vu(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const Wu={tooltipState:fn("state",[wn("initial, void, hidden",mn({opacity:0,transform:"scale(0)"})),wn("visible",mn({transform:"scale(1)"})),bn("* => visible",gn("200ms cubic-bezier(0, 0, 0.2, 1)",yn([mn({opacity:0,transform:"scale(0)",offset:0}),mn({opacity:.5,transform:"scale(0.99)",offset:.5}),mn({opacity:1,transform:"scale(1)",offset:1})]))),bn("* => hidden",gn("100ms cubic-bezier(0, 0, 0.2, 1)",mn({opacity:0})))])},Yu=Me({passive:!0}),Zu=new s.OlP("mat-tooltip-scroll-strategy"),Qu={provide:Zu,deps:[Ri],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},Ju=new s.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Xu=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u,h,l){this._overlay=t,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=n,this._ngZone=s,this._platform=o,this._ariaDescriber=r,this._focusMonitor=a,this._dir=u,this._defaultOptions=h,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 kt.xQ,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!Xe(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=c,this._document=l,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),u.change.pipe(oe(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){var e;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(e=this._tooltipInstance)||void 0===e||e.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=bt(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).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(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(oe(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,i])=>{t.removeEventListener(e,i,Yu)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new Ue(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(oe(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return e.positionChanges.pipe(oe(this._destroyed)).subscribe(t=>{this._updateCurrentPositionClass(t.connectionPair),this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:`${this._cssClassPrefix}-tooltip-panel`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(oe(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const e=t.getConfig().positionStrategy,i=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([this._addOffset(Object.assign(Object.assign({},i.main),n.main)),this._addOffset(Object.assign(Object.assign({},i.fallback),n.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e||"below"==e?i={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={originX:"end",originY:"center"});const{x:n,y:s}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:n,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e?i={overlayX:"center",overlayY:"bottom"}:"below"==e?i={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={overlayX:"start",overlayY:"center"});const{x:n,y:s}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:n,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Je.q)(1),oe(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){const{overlayY:e,originX:i,originY:n}=t;let s;if(s="center"===e?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===e&&"top"===n?"above":"below",s!==this._currentPosition){const t=this._overlayRef;if(t){const e=`${this._cssClassPrefix}-tooltip-panel-`;t.removePanelClass(e+this._currentPosition),t.addPanelClass(e+s)}this._currentPosition=s}}_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 t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,Yu)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const e=this._document.elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;e===i||i.contains(e)||this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,i=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),"on"!==t&&e.draggable||(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Ri),s.Y36(s.SBq),s.Y36(Oe),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(Ce),s.Y36(Ni),s.Y36(nn),s.Y36(void 0),s.Y36(Ie),s.Y36(void 0),s.Y36(n.K0))},t.\u0275dir=s.lG2({type:t,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),th=(()=>{class t extends Xu{constructor(t,e,i,n,s,o,r,a,c,u,h,l){super(t,e,i,n,s,o,r,a,c,u,h,l),this._tooltipComponent=ih}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Ri),s.Y36(s.SBq),s.Y36(Oe),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(Ce),s.Y36(Ni),s.Y36(nn),s.Y36(Zu),s.Y36(Ie,8),s.Y36(Ju,8),s.Y36(n.K0))},t.\u0275dir=s.lG2({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[s.qOj]}),t})(),eh=(()=>{class t{constructor(t){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new kt.xQ}show(t){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._markForCheck()},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t}),t})(),ih=(()=>{class t extends eh{constructor(t,e){super(t),this._breakpointObserver=e,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36($u))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e._handleBodyInteraction()},!1,s.pYS)("auxclick",function(){return e._handleBodyInteraction()},!1,s.pYS),2&t&&s.Udp("zoom","visible"===e._visibility?1:null)},features:[s.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(s.TgZ(0,"div",0),s.NdJ("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),s.ALo(1,"async"),s._uU(2),s.qZA()),2&t){let t;s.ekj("mat-tooltip-handset",null==(t=s.lcZ(1,5,e._isHandset))?null:t.matches),s.Q6J("ngClass",e.tooltipClass)("@state",e._visibility),s.xp6(2),s.Oqu(e.message)}},directives:[n.mk],pipes:[n.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[Wu.tooltipState]},changeDetection:0}),t})(),nh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Qu],imports:[[un,n.ez,Si,ir],ir,De]}),t})(),sh=(()=>{class t{constructor(){this.changes=new kt.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,i)=>{if(0==i||0==e)return`0 of ${i}`;const n=t*e;return`${n+1} \u2013 ${n<(i=Math.max(i,0))?Math.min(n+e,i):n+e} of ${i}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const oh={provide:sh,deps:[[new s.FiY,new s.tp0,sh]],useFactory:function(t){return t||new sh}};let rh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[oh],imports:[[n.ez,Ma,Lu,nh,ir]]}),t})();var ah=i(509);const ch=["mat-menu-item",""],uh=["*"];function hh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",0),s.NdJ("keydown",function(e){return s.CHM(t),s.oxw()._handleKeydown(e)})("click",function(){return s.CHM(t),s.oxw().closed.emit("click")})("@transformMenu.start",function(e){return s.CHM(t),s.oxw()._onAnimationStart(e)})("@transformMenu.done",function(e){return s.CHM(t),s.oxw()._onAnimationDone(e)}),s.TgZ(1,"div",1),s.Hsn(2),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),s.uIk("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const lh={transformMenu:fn("transformMenu",[wn("void",mn({opacity:0,transform:"scale(0.8)"})),bn("void => enter",gn("120ms cubic-bezier(0, 0, 0.2, 1)",mn({opacity:1,transform:"scale(1)"}))),bn("* => void",gn("100ms 25ms linear",mn({opacity:0})))]),fadeInItems:fn("fadeInItems",[wn("showing",mn({opacity:1})),bn("void => *",[mn({opacity:0}),gn("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},dh=new s.OlP("MatMenuContent"),fh=new s.OlP("MAT_MENU_PANEL");class gh{}const ph=or(nr(gh));let mh=(()=>{class t extends ph{constructor(t,e,i,n){super(),this._elementRef=t,this._focusMonitor=i,this._parentMenu=n,this.role="menuitem",this._hovered=new kt.xQ,this._focused=new kt.xQ,this._highlighted=!1,this._triggersSubmenu=!1,n&&n.addItem&&n.addItem(this)}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),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(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t,e;const i=this._elementRef.nativeElement.cloneNode(!0),n=i.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class t{constructor(t,e,i){this._elementRef=t,this._ngZone=e,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new s.n_E,this._tabSubscription=Gt.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new kt.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new s.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+yh++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=bt(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=bt(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new $i(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(he(this._directDescendantItems),(0,le.w)(t=>(0,Qe.T)(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(he(this._directDescendantItems),(0,le.w)(t=>(0,Qe.T)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,i=this._keyManager;switch(e){case 27:Xe(t)||(t.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:38!==e&&40!==e||i.setFocusOrigin("keyboard"),i.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe((0,Je.q)(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e=`mat-elevation-z${Math.min(4+t,24)}`,i=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const i=this._classList;i["mat-menu-before"]="before"===t,i["mat-menu-after"]="after"===t,i["mat-menu-above"]="above"===e,i["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(he(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(wh))},t.\u0275dir=s.lG2({type:t,contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,dh,5),s.Suo(i,mh,5),s.Suo(i,mh,4)),2&t){let t;s.iGM(t=s.CRH())&&(e.lazyContent=t.first),s.iGM(t=s.CRH())&&(e._allItems=t),s.iGM(t=s.CRH())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&s.Gf(s.Rgc,5),2&t){let t;s.iGM(t=s.CRH())&&(e.templateRef=t.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),Ah=(()=>{class t extends bh{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(wh))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&s.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[s._Bn([{provide:fh,useExisting:t}]),s.qOj],ngContentSelectors:uh,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(s.F$t(),s.YNc(0,hh,3,6,"ng-template"))},directives:[n.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}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}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}\n'],encapsulation:2,data:{animation:[lh.transformMenu,lh.fadeInItems]},changeDetection:0}),t})();const _h=new s.OlP("mat-menu-scroll-strategy"),vh={provide:_h,deps:[Ri],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},Th=Me({passive:!0});let kh=(()=>{class t{constructor(t,e,i,n,o,r,a,c){this._overlay=t,this._element=e,this._viewContainerRef=i,this._menuItemInstance=r,this._dir=a,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Gt.w.EMPTY,this._hoverSubscription=Gt.w.EMPTY,this._menuCloseSubscription=Gt.w.EMPTY,this._handleTouchStart=t=>{Xi(t)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new s.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new s.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=n,this._parentMaterialMenu=o instanceof bh?o:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,Th),r&&(r._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(t),"click"!==t&&"tab"!==t||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Th),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(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof bh&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}updatePosition(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==t&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,e instanceof bh?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe((0,se.h)(t=>"void"===t.toState),(0,Je.q)(1),oe(e.lazyContent._attached)).subscribe({next:()=>e.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new ci({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,i]="before"===this.menu.xPosition?["end","start"]:["start","end"],[n,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[o,r]=[n,s],[a,c]=[e,i],u=0;this.triggersSubmenu()?(c=e="before"===this.menu.xPosition?"start":"end",i=a="end"===e?"start":"end",u="bottom"===n?8:-8):this.menu.overlapTrigger||(o="top"===n?"bottom":"top",r="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:o,overlayX:a,overlayY:n,offsetY:u},{originX:i,originY:o,overlayX:c,overlayY:n,offsetY:u},{originX:e,originY:r,overlayX:a,overlayY:s,offsetY:-u},{originX:i,originY:r,overlayX:c,overlayY:s,offsetY:-u}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Ct.of)(),n=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,se.h)(t=>t!==this._menuItemInstance),(0,se.h)(()=>this._menuOpen)):(0,Ct.of)();return(0,Qe.T)(t,i,n,e)}_handleMousedown(t){Ji(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;13!==e&&32!==e||(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===e&&"ltr"===this.dir||37===e&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,se.h)(t=>t===this._menuItemInstance&&!t.disabled),(0,ah.g)(0,Ut)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof bh&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Je.q)(1),(0,ah.g)(0,Ut),oe(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new Ge(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Ri),s.Y36(s.SBq),s.Y36(s.s_b),s.Y36(_h),s.Y36(fh,8),s.Y36(mh,10),s.Y36(Ie,8),s.Y36(nn))},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&s.uIk("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),Ch=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[vh],imports:[ir]}),t})(),Eh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[vh],imports:[[n.ez,ir,Sr,Si,Ch],De,ir,Ch]}),t})();var zh=i(1225),Rh=i(7727);function Ph(t){return e=>e.lift(new Sh(t))}class Sh{constructor(t){this.callback=t}call(t,e){return e.subscribe(new Bh(t,this.callback))}}class Bh extends Vt.L{constructor(t,e){super(t),this.add(new Gt.w(e))}}var Mh=i(1055);const Kh=["*"];function xh(t){return Error(`Unable to find icon with the name "${t}"`)}function Hh(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function jh(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class Ih{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let Lh=(()=>{class t{constructor(t,e,i,n){this._httpClient=t,this._sanitizer=e,this._errorHandler=n,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i}addSvgIcon(t,e,i){return this.addSvgIconInNamespace("",t,e,i)}addSvgIconLiteral(t,e,i){return this.addSvgIconLiteralInNamespace("",t,e,i)}addSvgIconInNamespace(t,e,i,n){return this._addSvgIconConfig(t,e,new Ih(i,null,n))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,i,n){const o=this._sanitizer.sanitize(s.q3G.HTML,i);if(!o)throw jh(i);return this._addSvgIconConfig(t,e,new Ih("",o,n))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,i){return this._addSvgIconSetConfig(t,new Ih(e,null,i))}addSvgIconSetLiteralInNamespace(t,e,i){const n=this._sanitizer.sanitize(s.q3G.HTML,e);if(!n)throw jh(e);return this._addSvgIconSetConfig(t,new Ih("",n,i))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(s.q3G.RESOURCE_URL,t);if(!e)throw Hh(t);const i=this._cachedIconsByUrl.get(e);return i?(0,Ct.of)(Oh(i)):this._loadSvgIconFromConfig(new Ih(t,null)).pipe((0,Bi.b)(t=>this._cachedIconsByUrl.set(e,t)),(0,Pt.U)(t=>Oh(t)))}getNamedSvgIcon(t,e=""){const i=Fh(e,t);let n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);if(n=this._getIconConfigFromResolvers(e,t),n)return this._svgIconConfigs.set(i,n),this._getSvgFromConfig(n);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):(0,zh._)(xh(i))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?(0,Ct.of)(Oh(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe((0,Pt.U)(t=>Oh(t)))}_getSvgFromIconSetConfigs(t,e){const i=this._extractIconWithNameFromAnySet(t,e);return i?(0,Ct.of)(i):ia(e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe((0,Rh.K)(e=>{const i=this._sanitizer.sanitize(s.q3G.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${i} failed: ${e.message}`)),(0,Ct.of)(null)})))).pipe((0,Pt.U)(()=>{const i=this._extractIconWithNameFromAnySet(t,e);if(!i)throw xh(t);return i}))}_extractIconWithNameFromAnySet(t,e){for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.svgText&&n.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(n),i=this._extractSvgIconFromSet(e,t,n.options);if(i)return i}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe((0,Bi.b)(e=>t.svgText=e),(0,Pt.U)(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?(0,Ct.of)(null):this._fetchIcon(t).pipe((0,Bi.b)(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,i){const n=t.querySelector(`[id="${e}"]`);if(!n)return null;const s=n.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,i);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),i);const o=this._svgElementFromString("");return o.appendChild(s),this._setSvgAttributes(o,i)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const i=e.querySelector("svg");if(!i)throw Error(" tag not found");return i}_toSvgElement(t){const e=this._svgElementFromString(""),i=t.attributes;for(let n=0;nthis._inProgressUrlFetches.delete(r)),(0,Mh.B)());return this._inProgressUrlFetches.set(r,c),c}_addSvgIconConfig(t,e,i){return this._svgIconConfigs.set(Fh(t,e),i),this}_addSvgIconSetConfig(t,e){const i=this._iconSetConfigs.get(t);return i?i.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let n=0;ne?e.pathname+e.search:""}}}),Uh=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Gh=Uh.map(t=>`[${t}]`).join(", "),$h=/^url\(['"]?#(.*?)['"]?\)$/;let Vh=(()=>{class t extends qh{constructor(t,e,i,n,s){super(t),this._iconRegistry=e,this._location=n,this._errorHandler=s,this._inline=!1,this._currentIconFetch=Gt.w.EMPTY,i||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=bt(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.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(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let n=0;n{e.forEach(e=>{i.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(Gh),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let n=0;n{const s=e[n],o=s.getAttribute(t),r=o?o.match($h):null;if(r){let e=i.get(s);e||(e=[],i.set(s,e)),e.push({name:t,value:r[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,i]=this._splitIconName(t);e&&(this._svgNamespace=e),i&&(this._svgName=i),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(i,e).pipe((0,Je.q)(1)).subscribe(t=>this._setSvgElement(t),t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${i}! ${t.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Lh),s.$8M("aria-hidden"),s.Y36(Nh),s.Y36(s.qLn))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(s.uIk("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),s.ekj("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[s.qOj],ngContentSelectors:Kh,decls:1,vars:0,template:function(t,e){1&t&&(s.F$t(),s.Hsn(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),Wh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[ir],ir]}),t})(),Yh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[],imports:[[rh,Eh,Wh,Ma,ka,n.ez]]}),t})();function Zh(){const t=new Ir;return t.disableClose=!0,t.autoFocus=!1,t}i(2051),new Intl.Collator("cs",{numeric:!0});class Qh{static passwordMatchValidator(t){const e=t.get("passwordCtrl").value,i=t.get("passwordAgainCtrl").value;return t.get("passwordAgainCtrl").setErrors(e!==i?{noPasswordMatch:!0}:null),null}static patternValidator(t){return e=>{if(!e.value)return null;let i=0;for(const n of t)i+=n.test(e.value)?1:0;return i>=3?null:{isWeak:!0}}}}class Jh extends kt.xQ{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new ye.N;return this._value}next(t){super.next(this._value=t)}}var Xh=i(9665),tl=i(2875);function el(t,e){let i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new il(t,e,i))}}class il{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new nl(t,this.accumulator,this.seed,this.hasSeed))}}class nl extends Vt.L{constructor(t,e,i,n){super(t),this.accumulator=e,this._seed=i,this.hasSeed=n,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(n){this.destination.error(n)}this.seed=i,this.destination.next(i)}}var sl=i(8402);function ol(t){return function(e){return 0===t?(0,xr.c)():e.lift(new rl(t))}}class rl{constructor(t){if(this.total=t,this.total<0)throw new sl.W}call(t,e){return e.subscribe(new al(t,this.total))}}class al extends Vt.L{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,n=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,n=this.ring;for(let s=0;st.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.lengthn[e]===t)}return t===e}function Ll(t){return Array.prototype.concat.apply([],t)}function Ol(t){return t.length>0?t[t.length-1]:null}function Fl(t,e){for(const i in t)t.hasOwnProperty(i)&&e(t[i],i)}function Dl(t){return(0,s.CqO)(t)?t:(0,s.QGY)(t)?(0,Kr.D)(Promise.resolve(t)):(0,Ct.of)(t)}const ql={exact:function t(e,i,n){if(!Ql(e.segments,i.segments))return!1;if(!Vl(e.segments,i.segments,n))return!1;if(e.numberOfChildren!==i.numberOfChildren)return!1;for(const s in i.children){if(!e.children[s])return!1;if(!t(e.children[s],i.children[s],n))return!1}return!0},subset:Gl},Nl={exact:function(t,e){return jl(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>Il(t[i],e[i]))},ignored:()=>!0};function Ul(t,e,i){return ql[i.paths](t.root,e.root,i.matrixParams)&&Nl[i.queryParams](t.queryParams,e.queryParams)&&!("exact"===i.fragment&&t.fragment!==e.fragment)}function Gl(t,e,i){return $l(t,e,e.segments,i)}function $l(t,e,i,n){if(t.segments.length>i.length){const s=t.segments.slice(0,i.length);return!!Ql(s,i)&&!e.hasChildren()&&!!Vl(s,i,n)}if(t.segments.length===i.length){if(!Ql(t.segments,i))return!1;if(!Vl(t.segments,i,n))return!1;for(const i in e.children){if(!t.children[i])return!1;if(!Gl(t.children[i],e.children[i],n))return!1}return!0}{const s=i.slice(0,t.segments.length),o=i.slice(t.segments.length);return!!Ql(t.segments,s)&&!!Vl(t.segments,s,n)&&!!t.children.primary&&$l(t.children.primary,e,o,n)}}function Vl(t,e,i){return e.every((e,n)=>Nl[i](t[n].parameters,e.parameters))}class Wl{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Kl(this.queryParams)),this._queryParamMap}toString(){return td.serialize(this)}}class Yl{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Fl(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ed(this)}}class Zl{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Kl(this.parameters)),this._parameterMap}toString(){return cd(this)}}function Ql(t,e){return t.length===e.length&&t.every((t,i)=>t.path===e[i].path)}class Jl{}class Xl{parse(t){const e=new fd(t);return new Wl(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${id(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(t=>`${sd(e)}=${sd(t)}`).join("&"):`${sd(e)}=${sd(i)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const td=new Xl;function ed(t){return t.segments.map(t=>cd(t)).join("/")}function id(t,e){if(!t.hasChildren())return ed(t);if(e){const e=t.children.primary?id(t.children.primary,!1):"",i=[];return Fl(t.children,(t,e)=>{e!==Bl&&i.push(`${e}:${id(t,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function(t,e){let i=[];return Fl(t.children,(t,n)=>{n===Bl&&(i=i.concat(e(t,n)))}),Fl(t.children,(t,n)=>{n!==Bl&&(i=i.concat(e(t,n)))}),i}(t,(e,i)=>i===Bl?[id(t.children.primary,!1)]:[`${i}:${id(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${ed(t)}/${e[0]}`:`${ed(t)}/(${e.join("//")})`}}function nd(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function sd(t){return nd(t).replace(/%3B/gi,";")}function od(t){return nd(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rd(t){return decodeURIComponent(t)}function ad(t){return rd(t.replace(/\+/g,"%20"))}function cd(t){return`${od(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${od(t)}=${od(e[t])}`).join("")}`;var e}const ud=/^[^\/()?;=#]+/;function hd(t){const e=t.match(ud);return e?e[0]:""}const ld=/^[^=?&#]+/,dd=/^[^?&#]+/;class fd{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Yl([],{}):new Yl([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new Yl(t,e)),i}parseSegment(){const t=hd(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Zl(rd(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=hd(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=hd(this.remaining);t&&(i=t,this.capture(i))}t[rd(e)]=rd(i)}parseQueryParam(t){const e=function(t){const e=t.match(ld);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(dd);return e?e[0]:""}(this.remaining);t&&(i=t,this.capture(i))}const n=ad(e),s=ad(i);if(t.hasOwnProperty(n)){let e=t[n];Array.isArray(e)||(e=[e],t[n]=e),e.push(s)}else t[n]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=hd(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error(`Cannot parse url '${this.url}'`);let s;i.indexOf(":")>-1?(s=i.substr(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=Bl);const o=this.parseChildren();e[s]=1===Object.keys(o).length?o.primary:new Yl([],o),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class gd{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=pd(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=pd(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=md(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return md(t,this._root).map(t=>t.value)}}function pd(t,e){if(t===e.value)return e;for(const i of e.children){const e=pd(t,i);if(e)return e}return null}function md(t,e){if(t===e.value)return[e];for(const i of e.children){const n=md(t,i);if(n.length)return n.unshift(e),n}return[]}class wd{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function yd(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class bd extends gd{constructor(t,e){super(t),this.snapshot=e,Cd(this,t)}toString(){return this.snapshot.toString()}}function Ad(t,e){const i=function(t,e){const i=new Td([],{},{},"",{},Bl,e,null,t.root,-1,{});return new kd("",new wd(i,[]))}(t,e),n=new Jh([new Zl("",{})]),s=new Jh({}),o=new Jh({}),r=new Jh({}),a=new Jh(""),c=new _d(n,s,r,a,o,Bl,e,i.root);return c.snapshot=i.root,new bd(new wd(c,[]),i)}class _d{constructor(t,e,i,n,s,o,r,a){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=o,this.component=r,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,Pt.U)(t=>Kl(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Pt.U)(t=>Kl(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function vd(t,e="emptyOnly"){const i=t.pathFromRoot;let n=0;if("always"!==e)for(n=i.length-1;n>=1;){const t=i[n],e=i[n-1];if(t.routeConfig&&""===t.routeConfig.path)n--;else{if(e.component)break;n--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(i.slice(n))}class Td{constructor(t,e,i,n,s,o,r,a,c,u,h){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=o,this.component=r,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=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=Kl(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Kl(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class kd extends gd{constructor(t,e){super(e),this.url=t,Cd(this,e)}toString(){return Ed(this._root)}}function Cd(t,e){e.value._routerState=t,e.children.forEach(e=>Cd(t,e))}function Ed(t){const e=t.children.length>0?` { ${t.children.map(Ed).join(", ")} } `:"";return`${t.value}${e}`}function zd(t){if(t.snapshot){const e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,jl(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),jl(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(let i=0;ijl(t.parameters,n[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Rd(t.parent,e.parent))}function Pd(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){const n=i.value;n._futureSnapshot=e.value;const s=function(t,e,i){return e.children.map(e=>{for(const n of i.children)if(t.shouldReuseRoute(e.value,n.value.snapshot))return Pd(t,e,n);return Pd(t,e)})}(t,e,i);return new wd(n,s)}{if(t.shouldAttach(e.value)){const i=t.retrieve(e.value);if(null!==i){const t=i.route;return Sd(e,t),t}}const i=new _d(new Jh((n=e.value).url),new Jh(n.params),new Jh(n.queryParams),new Jh(n.fragment),new Jh(n.data),n.outlet,n.component,n),s=e.children.map(e=>Pd(t,e));return new wd(i,s)}var n}function Sd(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let i=0;i{o[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new Wl(i.root===t?e:xd(i.root,t,e),o,s)}function xd(t,e,i){const n={};return Fl(t.children,(t,s)=>{n[s]=t===e?i:xd(t,e,i)}),new Yl(t.segments,n)}class Hd{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Bd(i[0]))throw new Error("Root segment cannot have matrix parameters");const n=i.find(Md);if(n&&n!==Ol(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class jd{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function Id(t,e,i){if(t||(t=new Yl([],{})),0===t.segments.length&&t.hasChildren())return Ld(t,e,i);const n=function(t,e,i){let n=0,s=e;const o={match:!1,pathIndex:0,commandIndex:0};for(;s=i.length)return o;const e=t.segments[s],r=i[n];if(Md(r))break;const a=`${r}`,c=n0&&void 0===a)break;if(a&&c&&"object"==typeof c&&void 0===c.outlets){if(!qd(a,c,e))return o;n+=2}else{if(!qd(a,{},e))return o;n++}s++}return{match:!0,pathIndex:s,commandIndex:n}}(t,e,i),s=i.slice(n.commandIndex);if(n.match&&n.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(s[n]=Id(t.children[n],e,i))}),Fl(t.children,(t,e)=>{void 0===n[e]&&(s[e]=t)}),new Yl(t.segments,s)}}function Od(t,e,i){const n=t.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[i]=Od(new Yl([],{}),0,t))}),e}function Dd(t){const e={};return Fl(t,(t,i)=>e[i]=`${t}`),e}function qd(t,e,i){return t==i.path&&jl(e,i.parameters)}class Nd{constructor(t,e,i,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=n}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),zd(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const n=yd(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,n[e],i),delete n[e]}),Fl(n,(t,e)=>{this.deactivateRouteAndItsChildren(t,i)})}deactivateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(n===s)if(n.component){const s=i.getContext(n.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet);if(i&&i.outlet){const e=i.outlet.detach(),n=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:n})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),n=i&&t.value.component?i.children:e,s=yd(t);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],n);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const n=yd(e);t.children.forEach(t=>{this.activateRoutes(t,n[t.value.outlet],i),this.forwardEvent(new Pl(t.value.snapshot))}),t.children.length&&this.forwardEvent(new zl(t.value.snapshot))}activateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(zd(n),n===s)if(n.component){const s=i.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(n.component){const e=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){const t=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),Ud(t.route)}else{const i=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(n.snapshot),s=i?i.module.componentFactoryResolver:null;e.attachRef=null,e.route=n,e.resolver=s,e.outlet&&e.outlet.activateWith(n,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,i)}}function Ud(t){zd(t.value),t.children.forEach(Ud)}class Gd{constructor(t,e){this.routes=t,this.module=e}}function $d(t){return"function"==typeof t}function Vd(t){return t instanceof Wl}const Wd=Symbol("INITIAL_VALUE");function Yd(){return(0,le.w)(t=>(0,Ou.aj)(t.map(t=>t.pipe((0,Je.q)(1),he(Wd)))).pipe(el((t,e)=>{let i=!1;return e.reduce((t,n,s)=>{if(t!==Wd)return t;if(n===Wd&&(i=!0),!i){if(!1===n)return n;if(s===e.length-1||Vd(n))return n}return t},t)},Wd),(0,se.h)(t=>t!==Wd),(0,Pt.U)(t=>Vd(t)?t:!0===t),(0,Je.q)(1)))}let Zd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s._UZ(0,"router-outlet")},directives:function(){return[Gf]},encapsulation:2}),t})();function Qd(t,e=""){for(let i=0;ief(t)===e);return i.push(...t.filter(t=>ef(t)!==e)),i}const sf={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function of(t,e,i){var n;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?Object.assign({},sf):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||Hl)(i,t,e);if(!s)return Object.assign({},sf);const o={};Fl(s.posParams,(t,e)=>{o[e]=t.path});const r=s.consumed.length>0?Object.assign(Object.assign({},o),s.consumed[s.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:r,positionalParamSegments:null!==(n=s.posParams)&&void 0!==n?n:{}}}function rf(t,e,i,n,s="corrected"){if(i.length>0&&function(t,e,i){return i.some(i=>af(t,e,i)&&ef(i)!==Bl)}(t,i,n)){const s=new Yl(e,function(t,e,i,n){const s={};s.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(const o of i)if(""===o.path&&ef(o)!==Bl){const i=new Yl([],{});i._sourceSegment=t,i._segmentIndexShift=e.length,s[ef(o)]=i}return s}(t,e,n,new Yl(i,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some(i=>af(t,e,i))}(t,i,n)){const o=new Yl(t.segments,function(t,e,i,n,s,o){const r={};for(const a of n)if(af(t,i,a)&&!s[ef(a)]){const i=new Yl([],{});i._sourceSegment=t,i._segmentIndexShift="legacy"===o?t.segments.length:e.length,r[ef(a)]=i}return Object.assign(Object.assign({},s),r)}(t,e,i,n,t.children,s));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:i}}const o=new Yl(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:i}}function af(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path}function cf(t,e,i,n){return!!(ef(t)===n||n!==Bl&&af(e,i,t))&&("**"===t.path||of(e,t,i).matched)}function uf(t,e,i){return 0===e.length&&!t.children[i]}class hf{constructor(t){this.segmentGroup=t||null}}class lf{constructor(t){this.urlTree=t}}function df(t){return new Et.y(e=>e.error(new hf(t)))}function ff(t){return new Et.y(e=>e.error(new lf(t)))}function gf(t){return new Et.y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class pf{constructor(t,e,i,n,o){this.configLoader=e,this.urlSerializer=i,this.urlTree=n,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(s.h0i)}apply(){const t=rf(this.urlTree.root,[],[],this.config).segmentGroup,e=new Yl(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,Bl).pipe((0,Pt.U)(t=>this.createUrlTree(mf(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Rh.K)(t=>{if(t instanceof lf)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof hf)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,Bl).pipe((0,Pt.U)(e=>this.createUrlTree(mf(e),t.queryParams,t.fragment))).pipe((0,Rh.K)(t=>{if(t instanceof hf)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const n=t.segments.length>0?new Yl([],{[Bl]:t}):t;return new Wl(n,e,i)}expandSegmentGroup(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe((0,Pt.U)(t=>new Yl([],t))):this.expandSegment(t,i,e,i.segments,n,!0)}expandChildren(t,e,i){const n=[];for(const s of Object.keys(i.children))"primary"===s?n.unshift(s):n.push(s);return(0,Kr.D)(n).pipe((0,sa.b)(n=>{const s=i.children[n],o=nf(e,n);return this.expandSegmentGroup(t,o,s,n).pipe((0,Pt.U)(t=>({segment:t,outlet:n})))}),el((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const i=arguments.length>=2;return n=>n.pipe(t?(0,se.h)((e,i)=>t(e,i,n)):hl.y,ol(1),i?(0,ul.d)(e):(0,cl.T)(()=>new Xh.K))}())}expandSegment(t,e,i,n,s,o){return(0,Kr.D)(i).pipe((0,sa.b)(r=>this.expandSegmentAgainstRoute(t,e,i,r,n,s,o).pipe((0,Rh.K)(t=>{if(t instanceof hf)return(0,Ct.of)(null);throw t}))),(0,ll.P)(t=>!!t),(0,Rh.K)((t,i)=>{if(t instanceof Xh.K||"EmptyError"===t.name){if(uf(e,n,s))return(0,Ct.of)(new Yl([],{}));throw new hf(e)}throw t}))}expandSegmentAgainstRoute(t,e,i,n,s,o,r){return cf(n,e,s,o)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,s,o):r&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o):df(e):df(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,n){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?ff(s):this.lineralizeSegments(i,s).pipe((0,dl.zg)(i=>{const s=new Yl(i,{});return this.expandSegment(t,s,e,i,n,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o){const{matched:r,consumedSegments:a,lastChild:c,positionalParamSegments:u}=of(e,n,s);if(!r)return df(e);const h=this.applyRedirectCommands(a,n.redirectTo,u);return n.redirectTo.startsWith("/")?ff(h):this.lineralizeSegments(n,h).pipe((0,dl.zg)(n=>this.expandSegment(t,e,i,n.concat(s.slice(c)),o,!1)))}matchSegmentAgainstRoute(t,e,i,n,s){if("**"===i.path)return i.loadChildren?(i._loadedConfig?(0,Ct.of)(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe((0,Pt.U)(t=>(i._loadedConfig=t,new Yl(n,{})))):(0,Ct.of)(new Yl(n,{}));const{matched:o,consumedSegments:r,lastChild:a}=of(e,i,n);if(!o)return df(e);const c=n.slice(a);return this.getChildConfig(t,i,n).pipe((0,dl.zg)(t=>{const n=t.module,o=t.routes,{segmentGroup:a,slicedSegments:u}=rf(e,r,c,o),h=new Yl(a.segments,a.children);if(0===u.length&&h.hasChildren())return this.expandChildren(n,o,h).pipe((0,Pt.U)(t=>new Yl(r,t)));if(0===o.length&&0===u.length)return(0,Ct.of)(new Yl(r,{}));const l=ef(i)===s;return this.expandSegment(n,h,o,u,l?Bl:s,!0).pipe((0,Pt.U)(t=>new Yl(r.concat(t.segments),t.children)))}))}getChildConfig(t,e,i){return e.children?(0,Ct.of)(new Gd(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?(0,Ct.of)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe((0,dl.zg)(i=>i?this.configLoader.load(t.injector,e).pipe((0,Pt.U)(t=>(e._loadedConfig=t,t))):function(t){return new Et.y(e=>e.error(xl(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):(0,Ct.of)(new Gd([],t))}runCanLoadGuards(t,e,i){const n=e.canLoad;if(!n||0===n.length)return(0,Ct.of)(!0);const s=n.map(n=>{const s=t.get(n);let o;if(function(t){return t&&$d(t.canLoad)}(s))o=s.canLoad(e,i);else{if(!$d(s))throw new Error("Invalid CanLoad guard");o=s(e,i)}return Dl(o)});return(0,Ct.of)(s).pipe(Yd(),(0,Bi.b)(t=>{if(!Vd(t))return;const e=xl(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),(0,Pt.U)(t=>!0===t))}lineralizeSegments(t,e){let i=[],n=e.root;for(;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return(0,Ct.of)(i);if(n.numberOfChildren>1||!n.children.primary)return gf(t.redirectTo);n=n.children.primary}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,n){const s=this.createSegmentGroup(t,e.root,i,n);return new Wl(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return Fl(t,(t,n)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);i[n]=e[s]}else i[n]=t}),i}createSegmentGroup(t,e,i,n){const s=this.createSegments(t,e.segments,i,n);let o={};return Fl(e.children,(e,s)=>{o[s]=this.createSegmentGroup(t,e,i,n)}),new Yl(s,o)}createSegments(t,e,i,n){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,n):this.findOrReturn(e,i))}findPosParam(t,e,i){const n=i[e.path.substring(1)];if(!n)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return n}findOrReturn(t,e){let i=0;for(const n of e){if(n.path===t.path)return e.splice(i),n;i++}return t}}function mf(t){const e={};for(const i of Object.keys(t.children)){const n=mf(t.children[i]);(n.segments.length>0||n.hasChildren())&&(e[i]=n)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new Yl(t.segments.concat(e.segments),e.children)}return t}(new Yl(t.segments,e))}class wf{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class yf{constructor(t,e){this.component=t,this.route=e}}function bf(t,e,i){const n=t._root;return _f(n,e?e._root:null,i,[n.value])}function Af(t,e,i){const n=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(n?n.module.injector:i).get(t)}function _f(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=yd(e);return t.children.forEach(t=>{!function(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,r=e?e.value:null,a=i?i.getContext(t.value.outlet):null;if(r&&o.routeConfig===r.routeConfig){const c=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!Ql(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Ql(t.url,e.url)||!jl(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Rd(t,e)||!jl(t.queryParams,e.queryParams);case"paramsChange":default:return!Rd(t,e)}}(r,o,o.routeConfig.runGuardsAndResolvers);c?s.canActivateChecks.push(new wf(n)):(o.data=r.data,o._resolvedData=r._resolvedData),_f(t,e,o.component?a?a.children:null:i,n,s),c&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new yf(a.outlet.component,r))}else r&&vf(e,a,s),s.canActivateChecks.push(new wf(n)),_f(t,null,o.component?a?a.children:null:i,n,s)}(t,o[t.value.outlet],i,n.concat([t.value]),s),delete o[t.value.outlet]}),Fl(o,(t,e)=>vf(t,i.getContext(e),s)),s}function vf(t,e,i){const n=yd(t),s=t.value;Fl(n,(t,n)=>{vf(t,s.component?e?e.children.getContext(n):null:e,i)}),i.canDeactivateChecks.push(new yf(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class Tf{}function kf(t){return new Et.y(e=>e.error(t))}class Cf{constructor(t,e,i,n,s,o){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=n,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=o}recognize(){const t=rf(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,Bl);if(null===e)return null;const i=new Td([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Bl,this.rootComponentType,null,this.urlTree.root,-1,{}),n=new wd(i,e),s=new kd(this.url,n);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,i=vd(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=[];for(const s of Object.keys(e.children)){const n=e.children[s],o=nf(t,s),r=this.processSegmentGroup(o,n,s);if(null===r)return null;i.push(...r)}const n=zf(i);return n.sort((t,e)=>t.value.outlet===Bl?-1:e.value.outlet===Bl?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,i,n){for(const s of t){const t=this.processSegmentAgainstRoute(s,e,i,n);if(null!==t)return t}return uf(e,i,n)?[]:null}processSegmentAgainstRoute(t,e,i,n){if(t.redirectTo||!cf(t,e,i,n))return null;let s,o=[],r=[];if("**"===t.path){const n=i.length>0?Ol(i).parameters:{};s=new Td(i,n,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Sf(t),ef(t),t.component,t,Rf(e),Pf(e)+i.length,Bf(t))}else{const n=of(e,t,i);if(!n.matched)return null;o=n.consumedSegments,r=i.slice(n.lastChild),s=new Td(o,n.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Sf(t),ef(t),t.component,t,Rf(e),Pf(e)+o.length,Bf(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:u}=rf(e,o,r,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===u.length&&c.hasChildren()){const t=this.processChildren(a,c);return null===t?null:[new wd(s,t)]}if(0===a.length&&0===u.length)return[new wd(s,[])];const h=ef(t)===n,l=this.processSegment(a,c,u,h?Bl:n);return null===l?null:[new wd(s,l)]}}function Ef(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function zf(t){const e=[],i=new Set;for(const n of t){if(!Ef(n)){e.push(n);continue}const t=e.find(t=>n.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...n.children),i.add(t)):e.push(n)}for(const n of i){const t=zf(n.children);e.push(new wd(n.value,t))}return e.filter(t=>!i.has(t))}function Rf(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Pf(t){let e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,i+=e._segmentIndexShift?e._segmentIndexShift:0;return i-1}function Sf(t){return t.data||{}}function Bf(t){return t.resolve||{}}function Mf(t){return(0,le.w)(e=>{const i=t(e);return i?(0,Kr.D)(i).pipe((0,Pt.U)(()=>e)):(0,Ct.of)(e)})}class Kf extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const xf=new s.OlP("ROUTES");class Hf{constructor(t,e,i,n){this.loader=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=n}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const i=this.loadModuleFactory(e.loadChildren).pipe((0,Pt.U)(i=>{this.onLoadEndListener&&this.onLoadEndListener(e);const n=i.create(t);return new Gd(Ll(n.injector.get(xf,void 0,s.XFs.Self|s.XFs.Optional)).map(tf),n)}),(0,Rh.K)(t=>{throw e._loader$=void 0,t}));return e._loader$=new tl.c(i,()=>new kt.xQ).pipe((0,fl.x)()),e._loader$}loadModuleFactory(t){return"string"==typeof t?(0,Kr.D)(this.loader.load(t)):Dl(t()).pipe((0,dl.zg)(t=>t instanceof s.YKP?(0,Ct.of)(t):(0,Kr.D)(this.compiler.compileModuleAsync(t))))}}class jf{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new If,this.attachRef=null}}class If{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new jf,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class Lf{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Of(t){throw t}function Ff(t,e,i){return e.parse("/")}function Df(t,e){return(0,Ct.of)(null)}const qf={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Nf={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Uf=(()=>{class t{constructor(t,e,i,n,o,r,a,c){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=i,this.location=n,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new kt.xQ,this.errorHandler=Of,this.malformedUriErrorHandler=Ff,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Df,afterPreactivation:Df},this.urlHandlingStrategy=new Lf,this.routeReuseStrategy=new Kf,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(s.h0i),this.console=o.get(s.c2e);const u=o.get(s.R0b);this.isNgZoneEnabled=u instanceof s.R0b&&s.R0b.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new Wl(new Yl([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Hf(r,a,t=>this.triggerEvent(new kl(t)),t=>this.triggerEvent(new Cl(t))),this.routerState=Ad(this.currentUrlTree,this.rootComponentType),this.transitions=new Jh({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()}setupNavigations(t){const e=this.events;return t.pipe((0,se.h)(t=>0!==t.id),(0,Pt.U)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),(0,le.w)(t=>{let i=!1,n=!1;return(0,Ct.of)(t).pipe((0,Bi.b)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,le.w)(t=>{const i=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return(0,Ct.of)(t).pipe((0,le.w)(t=>{const i=this.transitions.getValue();return e.next(new pl(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==this.transitions.getValue()?xr.E:Promise.resolve(t)}),(n=this.ngModule.injector,s=this.configLoader,o=this.urlSerializer,r=this.config,(0,le.w)(t=>function(t,e,i,n,s){return new pf(t,e,i,n,s).apply()}(n,s,o,t.extractedUrl,r).pipe((0,Pt.U)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e}))))),(0,Bi.b)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,i,n,s){return(0,dl.zg)(o=>function(t,e,i,n,s="emptyOnly",o="legacy"){try{const r=new Cf(t,e,i,n,s,o).recognize();return null===r?kf(new Tf):(0,Ct.of)(r)}catch(r){return kf(r)}}(t,e,o.urlAfterRedirects,i(o.urlAfterRedirects),n,s).pipe((0,Pt.U)(t=>Object.assign(Object.assign({},o),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Bi.b)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const i=new bl(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(i)}));var n,s,o,r;if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:i,extractedUrl:n,source:s,restoredState:o,extras:r}=t,a=new pl(i,this.serializeUrl(n),s,o);e.next(a);const c=Ad(n,this.rootComponentType).snapshot;return(0,Ct.of)(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:n,extras:Object.assign(Object.assign({},r),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),xr.E}),Mf(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:o,replaceUrl:r}}=t;return this.hooks.beforePreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!r})}),(0,Bi.b)(t=>{const e=new Al(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,Pt.U)(t=>Object.assign(Object.assign({},t),{guards:bf(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return(0,dl.zg)(i=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:o,canDeactivateChecks:r}}=i;return 0===r.length&&0===o.length?(0,Ct.of)(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return(0,Kr.D)(t).pipe((0,dl.zg)(t=>function(t,e,i,n,s){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return(0,Ct.of)(!0);const r=o.map(o=>{const r=Af(o,e,s);let a;if(function(t){return t&&$d(t.canDeactivate)}(r))a=Dl(r.canDeactivate(t,e,i,n));else{if(!$d(r))throw new Error("Invalid CanDeactivate guard");a=Dl(r(t,e,i,n))}return a.pipe((0,ll.P)())});return(0,Ct.of)(r).pipe(Yd())}(t.component,t.route,i,e,n)),(0,ll.P)(t=>!0!==t,!0))}(r,n,s,t).pipe((0,dl.zg)(i=>i&&"boolean"==typeof i?function(t,e,i,n){return(0,Kr.D)(e).pipe((0,sa.b)(e=>ue(function(t,e){return null!==t&&e&&e(new El(t)),(0,Ct.of)(!0)}(e.route.parent,n),function(t,e){return null!==t&&e&&e(new Rl(t)),(0,Ct.of)(!0)}(e.route,n),function(t,e,i){const n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>Hr(()=>{const s=e.guards.map(s=>{const o=Af(s,e.node,i);let r;if(function(t){return t&&$d(t.canActivateChild)}(o))r=Dl(o.canActivateChild(n,t));else{if(!$d(o))throw new Error("Invalid CanActivateChild guard");r=Dl(o(n,t))}return r.pipe((0,ll.P)())});return(0,Ct.of)(s).pipe(Yd())}));return(0,Ct.of)(s).pipe(Yd())}(t,e.path,i),function(t,e,i){const n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||0===n.length)return(0,Ct.of)(!0);const s=n.map(n=>Hr(()=>{const s=Af(n,e,i);let o;if(function(t){return t&&$d(t.canActivate)}(s))o=Dl(s.canActivate(e,t));else{if(!$d(s))throw new Error("Invalid CanActivate guard");o=Dl(s(e,t))}return o.pipe((0,ll.P)())}));return(0,Ct.of)(s).pipe(Yd())}(t,e.route,i))),(0,ll.P)(t=>!0!==t,!0))}(n,o,t,e):(0,Ct.of)(i)),(0,Pt.U)(t=>Object.assign(Object.assign({},i),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),(0,Bi.b)(t=>{if(Vd(t.guardsResult)){const e=xl(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new _l(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),(0,se.h)(t=>!!t.guardsResult||(this.cancelNavigationTransition(t,""),!1)),Mf(t=>{if(t.guards.canActivateChecks.length)return(0,Ct.of)(t).pipe((0,Bi.b)(t=>{const e=new vl(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,le.w)(t=>{let e=!1;return(0,Ct.of)(t).pipe((i=this.paramsInheritanceStrategy,n=this.ngModule.injector,(0,dl.zg)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:s}}=t;if(!s.length)return(0,Ct.of)(t);let o=0;return(0,Kr.D)(s).pipe((0,sa.b)(t=>function(t,e,i,n){return function(t,e,i,n){const s=Object.keys(t);if(0===s.length)return(0,Ct.of)({});const o={};return(0,Kr.D)(s).pipe((0,dl.zg)(s=>function(t,e,i,n){const s=Af(t,e,n);return Dl(s.resolve?s.resolve(e,i):s(e,i))}(t[s],e,i,n).pipe((0,Bi.b)(t=>{o[s]=t}))),ol(1),(0,dl.zg)(()=>Object.keys(o).length===s.length?(0,Ct.of)(o):xr.E))}(t._resolve,t,e,n).pipe((0,Pt.U)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),vd(t,i).resolve),null)))}(t.route,e,i,n)),(0,Bi.b)(()=>o++),ol(1),(0,dl.zg)(e=>o===s.length?(0,Ct.of)(t):xr.E))})),(0,Bi.b)({next:()=>e=!0,complete:()=>{e||this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value.")}}));var i,n}),(0,Bi.b)(t=>{const e=new Tl(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),Mf(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:o,replaceUrl:r}}=t;return this.hooks.afterPreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!r})}),(0,Pt.U)(t=>{const e=function(t,e,i){const n=Pd(t,e._root,i?i._root:void 0);return new bd(n,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),(0,Bi.b)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,o=this.routeReuseStrategy,r=t=>this.triggerEvent(t),(0,Pt.U)(t=>(new Nd(o,t.targetRouterState,t.currentRouterState,r).activate(s),t))),(0,Bi.b)({next(){i=!0},complete(){i=!0}}),Ph(()=>{i||n||this.cancelNavigationTransition(t,`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`),this.currentNavigation=null}),(0,Rh.K)(i=>{if(n=!0,(s=i)&&s.ngNavigationCancelingError){const n=Vd(i.url);n||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new wl(t.id,this.serializeUrl(t.extractedUrl),i.message);e.next(s),n?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(i.url,this.rawUrlTree);this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const n=new yl(t.id,this.serializeUrl(t.extractedUrl),i);e.next(n);try{t.resolve(this.errorHandler(i))}catch(o){t.reject(o)}}var s;return xr.E}));var s,o,r}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:i,urlTree:n}=e,s={replaceUrl:!0};if(i){const t=Object.assign({},i);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(n,t,i,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const i=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&i&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Qd(t),this.config=t.map(tf),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(t,e={}){const{relativeTo:i,queryParams:n,fragment:s,queryParamsHandling:o,preserveFragment:r}=e,a=i||this.routerState.root,c=r?this.currentUrlTree.fragment:s;let u=null;switch(o){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=n||null}return null!==u&&(u=this.removeEmptyProps(u)),function(t,e,i,n,s){if(0===i.length)return Kd(e.root,e.root,e,n,s);const o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Hd(!0,0,t);let e=0,i=!1;const n=t.reduce((t,n,s)=>{if("object"==typeof n&&null!=n){if(n.outlets){const e={};return Fl(n.outlets,(t,i)=>{e[i]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(n.segmentPath)return[...t,n.segmentPath]}return"string"!=typeof n?[...t,n]:0===s?(n.split("/").forEach((n,s)=>{0==s&&"."===n||(0==s&&""===n?i=!0:".."===n?e++:""!=n&&t.push(n))}),t):[...t,n]},[]);return new Hd(i,e,n)}(i);if(o.toRoot())return Kd(e.root,new Yl([],{}),e,n,s);const r=function(t,e,i){if(t.isAbsolute)return new jd(e.root,!0,0);if(-1===i.snapshot._lastPathIndex){const t=i.snapshot._urlSegment;return new jd(t,t===e.root,0)}const n=Bd(t.commands[0])?0:1;return function(t,e,i){let n=t,s=e,o=i;for(;o>s;){if(o-=s,n=n.parent,!n)throw new Error("Invalid number of '../'");s=n.segments.length}return new jd(n,!1,s-o)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(o,e,t),a=r.processChildren?Ld(r.segmentGroup,r.index,o.commands):Id(r.segmentGroup,r.index,o.commands);return Kd(r.segmentGroup,a,e,n,s)}(a,this.currentUrlTree,t,u,null!=c?c:null)}navigateByUrl(t,e={skipLocationChange:!1}){const i=Vd(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree);let s=null;return"computed"===this.canceledNavigationResolution&&(0===this.currentPageId||e.skipLocationChange||e.replaceUrl)&&(s=this.location.getState()),this.scheduleNavigation(n,"imperative",s,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const n=t[i];return null!=n&&(e[i]=n),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new ml(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,i,n,s){if(this.disposed)return Promise.resolve(!1);const o=this.getTransition(),r="imperative"!==e&&"imperative"===(null==o?void 0:o.source),a=(this.lastSuccessfulId===o.id||this.currentNavigation?o.rawUrl:o.urlAfterRedirects).toString()===t.toString();if(r&&a)return Promise.resolve(!0);let c,u,h;s?(c=s.resolve,u=s.reject,h=s.promise):h=new Promise((t,e)=>{c=t,u=e});const l=++this.navigationId;let d;return d="computed"===this.canceledNavigationResolution?i&&i.\u0275routerPageId?i.\u0275routerPageId:this.currentPageId+1:0,this.setTransition({id:l,targetPageId:d,source:e,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:c,reject:u,promise:h,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),h.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const i=this.urlSerializer.serialize(t),n=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(i)||e.extras.replaceUrl?this.location.replaceState(i,"",n):this.location.go(i,"",n)}resetStateAndUrl(t,e,i){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){"computed"===this.canceledNavigationResolution?"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy||this.location.historyGo(this.currentPageId-t.targetPageId):this.resetUrlToCurrentUrlTree();const i=new wl(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(i),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.DyG),s.LFG(Jl),s.LFG(If),s.LFG(n.Ye),s.LFG(s.zs3),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Gf=(()=>{class t{constructor(t,e,i,n,o){this.parentContexts=t,this.location=e,this.resolver=i,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.vpe,this.deactivateEvents=new s.vpe,this.name=n||Bl,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const i=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,s=new $f(t,n,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(If),s.Y36(s.s_b),s.Y36(s._Vd),s.$8M("name"),s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class $f{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===_d?this.route:t===If?this.childContexts:this.parent.get(t,e)}}class Vf{}class Wf{preload(t,e){return(0,Ct.of)(null)}}let Yf=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.injector=n,this.preloadingStrategy=s,this.loader=new Hf(e,i,e=>t.triggerEvent(new kl(e)),e=>t.triggerEvent(new Cl(e)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,se.h)(t=>t instanceof ml),(0,sa.b)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(s.h0i);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const i=[];for(const n of e)if(n.loadChildren&&!n.canLoad&&n._loadedConfig){const t=n._loadedConfig;i.push(this.processRoutes(t.module,t.routes))}else n.loadChildren&&!n.canLoad?i.push(this.preloadConfig(t,n)):n.children&&i.push(this.processRoutes(t,n.children));return(0,Kr.D)(i).pipe((0,ce.J)(),(0,Pt.U)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?(0,Ct.of)(e._loadedConfig):this.loader.load(t.injector,e)).pipe((0,dl.zg)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Uf),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(s.zs3),s.LFG(Vf))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Zf=(()=>{class t{constructor(t,e,i={}){this.router=t,this.viewportScroller=e,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.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(t=>{t instanceof pl?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof ml&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Sl&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new Sl(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Uf),s.LFG(n.EM),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const Qf=new s.OlP("ROUTER_CONFIGURATION"),Jf=new s.OlP("ROUTER_FORROOT_GUARD"),Xf=[n.Ye,{provide:Jl,useClass:Xl},{provide:Uf,useFactory:function(t,e,i,n,s,o,r,a={},c,u){const h=new Uf(null,t,e,i,n,s,o,Ll(r));return c&&(h.urlHandlingStrategy=c),u&&(h.routeReuseStrategy=u),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,h),a.enableTracing&&h.events.subscribe(t=>{var e,i;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(i=console.groupEnd)||void 0===i||i.call(console)}),h},deps:[Jl,If,n.Ye,s.zs3,s.v3s,s.Sil,xf,Qf,[class{},new s.FiY],[class{},new s.FiY]]},If,{provide:_d,useFactory:function(t){return t.routerState.root},deps:[Uf]},{provide:s.v3s,useClass:s.EAV},Yf,Wf,class{preload(t,e){return e().pipe((0,Rh.K)(()=>(0,Ct.of)(null)))}},{provide:Qf,useValue:{enableTracing:!1}}];function tg(){return new s.PXZ("Router",Uf)}let eg=(()=>{class t{constructor(t,e){}static forRoot(e,i){return{ngModule:t,providers:[Xf,og(e),{provide:Jf,useFactory:sg,deps:[[Uf,new s.FiY,new s.tp0]]},{provide:Qf,useValue:i||{}},{provide:n.S$,useFactory:ng,deps:[n.lw,[new s.tBr(n.mr),new s.FiY],Qf]},{provide:Zf,useFactory:ig,deps:[Uf,n.EM,Qf]},{provide:Vf,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:Wf},{provide:s.PXZ,multi:!0,useFactory:tg},[rg,{provide:s.ip1,multi:!0,useFactory:ag,deps:[rg]},{provide:ug,useFactory:cg,deps:[rg]},{provide:s.tb,multi:!0,useExisting:ug}]]}}static forChild(e){return{ngModule:t,providers:[og(e)]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Jf,8),s.LFG(Uf,8))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();function ig(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new Zf(t,e,i)}function ng(t,e,i={}){return i.useHash?new n.Do(t,e):new n.b0(t,e)}function sg(t){return"guarded"}function og(t){return[{provide:s.deG,multi:!0,useValue:t},{provide:xf,multi:!0,useValue:t}]}let rg=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new kt.xQ}appInitializer(){return this.injector.get(n.V_,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),i=this.injector.get(Uf),n=this.injector.get(Qf);return"disabled"===n.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===n.initialNavigation||"enabledBlocking"===n.initialNavigation?(i.hooks.afterPreactivation=()=>this.initNavigation?(0,Ct.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),i.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(Qf),i=this.injector.get(Yf),n=this.injector.get(Zf),o=this.injector.get(Uf),r=this.injector.get(s.z2F);t===r.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||o.initialNavigation(),i.setUpPreloading(),n.init(),o.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function ag(t){return t.appInitializer.bind(t)}function cg(t){return t.bootstrapListener.bind(t)}const ug=new s.OlP("Router Initializer");var hg=i(2623);let lg=(()=>{class t{constructor(t,e,i,n,s){this.injector=t,this.store=e,this.dialog=i,this.route=n,this.oauthService=s,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(Uf),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(t=>{t.idpFilter&&(this.filterShortname=t.idpFilter)})}getClientConfig(){const t=this.setIdpFilter(),e=t?{acr_values:t}:{};return this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(e.prompt="consent"),{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"),customQueryParams:e}}setIdpFilter(){const t=location.search.substr(1).split("&");this.filterShortname=null;const e=this.store.get("oidc_client","filters");if(!e)return null;let i=null;return t.forEach(t=>{const n=t.split("=");"idpFilter"===n[0]&&e[n[1]]&&(this.filterShortname=n[1],i=e[n[1]])}),e.default&&!i?(this.filterShortname="default",e.default):i}startIdpFilterKeeper(){this.router.events.pipe((0,se.h)(t=>t instanceof ml)).subscribe(()=>{const t={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===t.idpFilter?{}:t,queryParamsHandling:"merge",replaceUrl:!0})})}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const t=location.pathname,e=location.search.substr(1);return"/api-callback"===t?this.handleAuthCallback().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(t,e).then(()=>this.startRefreshToken())}startRefreshToken(){return this.isLoggedInPromise().then(t=>!!t&&(this.oauthService.events.pipe((0,se.h)(t=>"token_expires"===t.type)).subscribe(()=>{this.oauthService.refreshToken().then(t=>{localStorage.setItem("refresh_token",t.refresh_token)})}),!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()}isPotentiallyValidPath(t){const e=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===t)return!0;for(const i of e)if(t.startsWith(i))return!0;return!1}tryRefreshToken(){return localStorage.getItem("refresh_token")?(sessionStorage.setItem("refresh_token",localStorage.getItem("refresh_token")),this.oauthService.loadDiscoveryDocument().then(()=>this.oauthService.refreshToken()).then(()=>Promise.resolve()).catch(t=>t)):Promise.resolve()}verifyAuthentication(t,e){return this.tryRefreshToken().then(()=>this.isLoggedInPromise()).then(i=>i?(this.oauthService.loadDiscoveryDocument().then(()=>localStorage.setItem("refresh_token",this.oauthService.getRefreshToken())),!0):this.isPotentiallyValidPath(t)?(sessionStorage.setItem("auth:redirect",t),sessionStorage.setItem("auth:queryParams",e),!1):new Promise((t,e)=>e("Invalid path")))}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const t=sessionStorage.getItem("mfa_route");if(t)return this.router.navigate([t],{replaceUrl:!0});let e=sessionStorage.getItem("auth:redirect");const i=sessionStorage.getItem("auth:queryParams");let n=[];i&&(n=i.split("&"));const s={};return n.forEach(t=>{const e=t.split("=");s[e[0]]=e[1]}),e&&"/login"!==e||(e="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),s.idpFilter&&(this.filterShortname=s.idpFilter),this.router.navigate([e],{queryParams:s,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.zs3),s.LFG(yt),s.LFG(Yr),s.LFG(_d),s.LFG(hg.Ct))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),dg=(()=>{class t{constructor(t,e,i,n,s,o){this.authService=t,this.storeService=e,this.authResolver=i,this.authzService=n,this.dialog=s,this.router=o,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(t){this.loginScreenShown=t}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)):(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(t=>t(!0)):this.authService.verifyAuth())}startAuth(){return this.authService.startAuthentication(),new Promise(()=>{})}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(t=>{if(null===t.user){const t=Zh();this.dialog.open(Ca,t)}else this.storeService.setPerunPrincipal(t),this.authResolver.init(t)})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(t=>{t()});if(this.storeService.get("auto_auth_redirect"))return this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0);const t=location.search.substr(1).split("&"),e={};for(const i of t){const t=i.split("=");e[t[0]]=t[1]}return this.router.navigate(["login"],{queryParams:e,queryParamsHandling:"merge"}).then(()=>null)}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(lg),s.LFG(yt),s.LFG(wt),s.LFG(V),s.LFG(Yr),s.LFG(Uf))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),fg=(()=>{class t{constructor(t,e){this.matIconRegistry=t,this.domSanitizer=e,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/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/settings1-blue.svg",name:"settings-blue"},{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"}]}registerPerunRefreshIcon(){this.customIcons.forEach(t=>{this.matIconRegistry.addSvgIcon(t.name,this.domSanitizer.bypassSecurityTrustResourceUrl(t.url))})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Lh),s.LFG(K))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),gg=(()=>{class t{constructor(t){this.dialogRef=t}close(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(qr))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"div",2),s.TgZ(7,"div",3),s.TgZ(8,"button",4),s.NdJ("click",function(){return e.close()}),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),s.xp6(3),s.hij(" ",s.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),s.xp6(5),s.hij(" ",s.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},directives:[Qr,Jr,Xr,Ba],pipes:[Ta],styles:[""]}),t})(),pg=(()=>{class t{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const t=this.handleNextError;return this.handleNextError=!0,t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),mg=(()=>{class t{constructor(t){this.translate=t,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3,this.addNotification=new s.vpe}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(t,e=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===t.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===t.name?e:e+"\n"+t.name,t,t.message)}showError(t,e,i,n,s){this.addNotification.emit({type:"error",error:e,description:i,title:t,actionText:void 0===n&&void 0!==i?this.getDefaultActionMessage():n,delay:this.defaultErrorDelayMs,icon:"error_outline",action:s,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(t,e,i,n){this.addNotification.emit({type:"success",description:e,title:t,actionText:void 0===i&&void 0!==e?this.getDefaultActionMessage():i,delay:this.defaultSuccessDelayMs,icon:"done",action:n,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(va))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),wg=(()=>{class t{constructor(t,e,i,n,s,o){this.authService=t,this.apiRequestConfiguration=e,this.notificator=i,this.store=n,this.dialog=s,this.initAuthService=o}intercept(t,e){const i=this.store.get("api_url");if(-1!==t.url.indexOf("i18n")&&(t=t.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==i&&-1!==t.url.toString().indexOf(i)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()){const t=Zh();t.width="450px",this.dialog.open(gg,t).afterClosed().subscribe(()=>{sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substr(1)),this.authService.startAuthentication()})}t=this.initAuthService.isServiceAccess()?t.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):t.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}});const n=this.apiRequestConfiguration.shouldHandleError(),s="POST"===t.method&&!this.store.skipOidc()&&this.isCallToPerunApi(t.url);return e.handle(t).pipe((0,Bi.b)(t=>{t instanceof D.Zn&&s&&this.initAuthService.loadPrincipal()},e=>{const i=this.formatErrors(e,t);return void 0===i?(0,zh._)(e):n?void this.notificator.showRPCError(i):(0,zh._)(i)}))}isCallToPerunApi(t){return t.startsWith(this.store.get("api_url"))}formatErrors(t,e){let i;if(console.error(t),t.error.errorId?i=t.error:t.errorId&&(i=JSON.parse(t.error)),void 0!==i)return i.urlWithParams=e.urlWithParams,i.call=e.url,i.payload=e.body,i}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(lg),s.LFG(pg),s.LFG(mg),s.LFG(yt),s.LFG(Yr),s.LFG(dg))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),yg=(()=>{class t{constructor(t,e,i,n){this.http=t,this.notificator=e,this.authService=i,this.storeService=n}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}formatErrors(t,e,i,n){const s=t.error;return s.call=e,s.payload=i,n&&this.notificator.showRPCError(t.error),(0,zh._)(s)}getHeaders(){let t=new D.WM;return t=t.set("Authorization",this.authService.getAuthorizationHeaderValue()),t}get(t,e=!0){const i=`${this.getApiUrl()}${t}`;return this.http.get(i,{headers:this.getHeaders()}).pipe((0,Rh.K)(t=>this.formatErrors(t,i,null,e)))}put(t,e={},i=!0){const n=`${this.getApiUrl()}${t}`,s=JSON.stringify(e);return this.http.put(n,s,{headers:this.getHeaders()}).pipe((0,Rh.K)(t=>this.formatErrors(t,n,s,i)))}post(t,e={},i=!0){const n=`${this.getApiUrl()}${t}`,s=JSON.stringify(e);let o=this.getHeaders();return o=o.set("Content-Type","application/json; charset=utf-8"),this.http.post(n,s,{headers:o}).pipe((0,Rh.K)(t=>this.formatErrors(t,n,s,i)))}delete(t,e=!0){const i=`${this.getApiUrl()}${t}`;return this.http.delete(i,{headers:this.getHeaders()}).pipe((0,Rh.K)(t=>this.formatErrors(t,i,null,e)))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(mg),s.LFG(lg),s.LFG(yt))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),bg=(()=>{class t{constructor(t,e){this.route=t,this.store=e}getPreferredLanguage(t){const e=this.store.get("supported_languages"),i=navigator.languages.map(t=>t.split("-")[0]),n=location.search.substr(1).split("&");let s=null;for(const o of n){const t=o.split("=");"lang"===t[0]&&(s=t[1])}return s&&e.includes(s)?s:t&&e.includes(t)?t:i&&e.includes(i[0])?i[0]:"en"}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(_d),s.LFG(yt))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Ag=["*",[["mat-toolbar-row"]]],_g=["*","mat-toolbar-row"];class vg{constructor(t){this._elementRef=t}}const Tg=sr(vg);let kg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),Cg=(()=>{class t extends Tg{constructor(t,e,i){super(t),this._platform=e,this._document=i}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Ce),s.Y36(n.K0))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,kg,5),2&t){let t;s.iGM(t=s.CRH())&&(e._toolbarRows=t)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&s.ekj("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[s.qOj],ngContentSelectors:_g,decls:2,vars:0,template:function(t,e){1&t&&(s.F$t(Ag),s.Hsn(0),s.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%}\n"],encapsulation:2,changeDetection:0}),t})(),Eg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[ir],ir]}),t})();function zg(t,e){1&t&&(s.TgZ(0,"div",10),s.TgZ(1,"span",11),s._uU(2," ~ \ud83d\uddf2\xa0 "),s.qZA(),s.TgZ(3,"span",12),s._uU(4," DEVEL "),s.qZA(),s.TgZ(5,"span",11),s._uU(6," \xa0\ud83d\uddf2 ~ "),s.qZA(),s.qZA())}const Rg=function(t){return{background:t}},Pg=function(t){return{color:t}};let Sg=(()=>{class t{constructor(t,e,i,n){this.storeService=t,this.sanitizer=e,this.preferredLangService=i,this.translateService=n,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(t=>{this.label=this.storeService.get(`header_label_${t.lang}`)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo"))}changeLanguage(){this.translateService.use("en"===this.translateService.currentLang?"cs":"en")}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yt),s.Y36(K),s.Y36(bg),s.Y36(va))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-header"]],decls:15,vars:19,consts:[[1,"sticky-top","header-container","mat-elevation-z3",3,"ngStyle"],[2,"display","flex","flex-direction","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(t,e){if(1&t&&(s.TgZ(0,"mat-toolbar",0),s.TgZ(1,"div",1),s._UZ(2,"a",2),s.TgZ(3,"p",3),s._uU(4),s.qZA(),s.qZA(),s.YNc(5,zg,7,0,"div",4),s.TgZ(6,"div",5),s.TgZ(7,"button",6),s.TgZ(8,"mat-icon",7),s._uU(9," language "),s.qZA(),s.qZA(),s.TgZ(10,"mat-menu",null,8),s.TgZ(12,"button",9),s.NdJ("click",function(){return e.changeLanguage()}),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.MAs(11);s.Q6J("ngStyle",s.VKq(11,Rg,e.bgColor)),s.xp6(2),s.Q6J("innerHTML",e.logo,s.oJD),s.xp6(1),s.Q6J("ngStyle",s.VKq(13,Pg,e.textColor)),s.xp6(1),s.Oqu(e.label),s.xp6(1),s.Q6J("ngIf",e.isDevel),s.xp6(1),s.Q6J("ngStyle",s.VKq(15,Pg,e.textColor)),s.xp6(1),s.Q6J("matMenuTriggerFor",t),s.xp6(1),s.Q6J("ngStyle",s.VKq(17,Pg,e.iconColor)),s.xp6(5),s.hij(" ",s.lcZ(14,9,"HEADER.LANGUAGE")," ")}},directives:[Cg,n.PC,n.O5,Ba,kh,Vh,Ah,mh],pipes:[Ta],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;margin-left:8px;padding:0}.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}"]}),t})();const Bg=Me({passive:!0});let Mg=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return xr.E;const e=Tt(t),i=this._monitoredElements.get(e);if(i)return i.subject;const n=new kt.xQ,s="cdk-text-field-autofilled",o=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",o,Bg),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:n,unlisten:()=>{e.removeEventListener("animationstart",o,Bg)}}),n}stopMonitoring(t){const e=Tt(t),i=this._monitoredElements.get(e);i&&(i.unlisten(),i.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Ce),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Ce),s.LFG(s.R0b))},token:t,providedIn:"root"}),t})(),Kg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Ee]]}),t})();const xg=new s.OlP("MAT_INPUT_VALUE_ACCESSOR"),Hg=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let jg=0;class Ig{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const Lg=rr(Ig);let Og=(()=>{class t extends Lg{constructor(t,e,i,n,s,o,r,a,c,u){super(o,n,s,i),this._elementRef=t,this._platform=e,this.ngControl=i,this._autofillMonitor=a,this._formField=u,this._uid="mat-input-"+jg++,this.focused=!1,this.stateChanges=new kt.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>Re().has(t));const h=this._elementRef.nativeElement,l=h.nodeName.toLowerCase();this._inputValueAccessor=r||h,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&c.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{const e=t.target;e.value||0!==e.selectionStart||0!==e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===l,this._isTextarea="textarea"===l,this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=bt(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=bt(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&Re().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=bt(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const i=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(i!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=i,i?t.setAttribute("placeholder",i):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){Hg.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Ce),s.Y36(Uc,10),s.Y36(_u,8),s.Y36(Ru,8),s.Y36(Ar),s.Y36(xg,10),s.Y36(Mg),s.Y36(s.R0b),s.Y36(fc,8))},t.\u0275dir=s.lG2({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&s.NdJ("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(s.Ikx("disabled",e.disabled)("required",e.required),s.uIk("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),s.ekj("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[s._Bn([{provide:tc,useExisting:t}]),s.qOj,s.TTD]}),t})(),Fg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Ar],imports:[[Kg,pc,ir],Kg,pc]}),t})();function Dg(t,e){if(1&t&&(s.O4$(),s._UZ(0,"circle",3)),2&t){const t=s.oxw();s.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),s.uIk("r",t._getCircleRadius())}}function qg(t,e){if(1&t&&(s.O4$(),s._UZ(0,"circle",3)),2&t){const t=s.oxw();s.Udp("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),s.uIk("r",t._getCircleRadius())}}function Ng(t,e){if(1&t&&(s.O4$(),s._UZ(0,"circle",3)),2&t){const t=s.oxw();s.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),s.uIk("r",t._getCircleRadius())}}function Ug(t,e){if(1&t&&(s.O4$(),s._UZ(0,"circle",3)),2&t){const t=s.oxw();s.Udp("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),s.uIk("r",t._getCircleRadius())}}const Gg=".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:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[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-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation: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)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n";class $g{constructor(t){this._elementRef=t}}const Vg=sr($g,"primary"),Wg=new s.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let Yg=(()=>{class t extends Vg{constructor(e,i,n,s,o){super(e),this._elementRef=e,this._document=n,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const r=t._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),r.has(n.head)||r.set(n.head,new Set([100])),this._fallbackAnimation=i.EDGE||i.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!o&&!o._forceAnimations,o&&(o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=At(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=At(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,At(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=xe(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,i=this._diameter,n=t._diameters;let s=n.get(e);if(!s||!s.has(i)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),t.textContent=this._getAnimationText(),e.appendChild(t),s||(s=new Set,n.set(e,s)),s.add(i)}}_getAnimationText(){const t=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*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Ce),s.Y36(n.K0,8),s.Y36(Yo,8),s.Y36(Wg))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(s.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),s.Udp("width",e.diameter,"px")("height",e.diameter,"px"),s.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[s.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(s.O4$(),s.TgZ(0,"svg",0),s.YNc(1,Dg,1,9,"circle",1),s.YNc(2,qg,1,7,"circle",2),s.qZA()),2&t&&(s.Udp("width",e.diameter,"px")("height",e.diameter,"px"),s.Q6J("ngSwitch","indeterminate"===e.mode),s.uIk("viewBox",e._getViewBox()),s.xp6(1),s.Q6J("ngSwitchCase",!0),s.xp6(1),s.Q6J("ngSwitchCase",!1))},directives:[n.RF,n.n9],styles:[Gg],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),Zg=(()=>{class t extends Yg{constructor(t,e,i,n,s){super(t,e,i,n,s),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Ce),s.Y36(n.K0,8),s.Y36(Yo,8),s.Y36(Wg))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(s.Udp("width",e.diameter,"px")("height",e.diameter,"px"),s.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[s.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(s.O4$(),s.TgZ(0,"svg",0),s.YNc(1,Ng,1,9,"circle",1),s.YNc(2,Ug,1,7,"circle",2),s.qZA()),2&t&&(s.Udp("width",e.diameter,"px")("height",e.diameter,"px"),s.Q6J("ngSwitch","indeterminate"===e.mode),s.uIk("viewBox",e._getViewBox()),s.xp6(1),s.Q6J("ngSwitchCase",!0),s.xp6(1),s.Q6J("ngSwitchCase",!1))},directives:[n.RF,n.n9],styles:[Gg],encapsulation:2,changeDetection:0}),t})(),Qg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[ir,n.ez],ir]}),t})(),Jg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Wh,n.ez]]}),t})(),Xg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[],imports:[[n.ez,pc,nh,Hu,Fg,ka,Qg,Wh,Jg]]}),t})();class tp{isErrorState(t){return!!(t&&t.invalid&&t.dirty)}}const ep=(t,e,i,n=500)=>s=>ee(n).pipe((0,le.w)(()=>(i.dontHandleErrorForNext(),t&&"No namespace"!==t?e.checkPasswordStrength(s.value,t):(0,Ct.of)(null))),(0,Pt.U)(()=>null),(0,Rh.K)(t=>(0,Ct.of)({backendError:t.error.message.substr(t.error.message.indexOf(":")+1)})));function ip(t,e){1&t&&(s.TgZ(0,"mat-icon",2),s._uU(1," info "),s.qZA())}function np(t,e){1&t&&(s.TgZ(0,"mat-icon",2),s._uU(1," warning "),s.qZA())}function sp(t,e){1&t&&(s.TgZ(0,"mat-icon",2),s._uU(1," dangerous "),s.qZA())}function op(t,e){1&t&&(s.TgZ(0,"mat-icon",2),s._uU(1," check_circle "),s.qZA())}const rp=["*"];let ap=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:rp,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(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.YNc(1,ip,2,0,"mat-icon",1),s.YNc(2,np,2,0,"mat-icon",1),s.YNc(3,sp,2,0,"mat-icon",1),s.YNc(4,op,2,0,"mat-icon",1),s.Hsn(5),s.qZA()),2&t&&(s.ekj("warn-alert","warn"===e.alert_type)("error-alert","error"===e.alert_type)("success-alert","success"===e.alert_type)("info-alert","info"===e.alert_type),s.xp6(1),s.Q6J("ngIf","info"===e.alert_type),s.xp6(1),s.Q6J("ngIf","warn"===e.alert_type),s.xp6(1),s.Q6J("ngIf","error"===e.alert_type),s.xp6(1),s.Q6J("ngIf","success"===e.alert_type))},directives:[n.O5,Vh],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:grey;text-align:left;border:1px solid #b3b3b3;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px solid #ececec;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 solid #fedcda;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px solid #d7ffd7;border-radius:10px;background-color:#d7ffd7}"]}),t})();function cp(t,e){1&t&&s._UZ(0,"mat-spinner",12),2&t&&s.Q6J("diameter",18)}function up(t,e){if(1&t&&(s.TgZ(0,"mat-icon",13),s._uU(1," error "),s.qZA()),2&t){const t=s.oxw();s.Q6J("matTooltip",t.getErrorTooltip())("matTooltipDisabled",!t.formGroup.get("passwordCtrl").hasError("backendError"))}}function hp(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function lp(t,e){if(1&t&&(s.TgZ(0,"mat-error",14),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.Q6J("matTooltip",t.getErrorTooltip()),s.xp6(1),s.Oqu(t.getErrorTooltip())}}function dp(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function fp(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let gp=(()=>{class t{constructor(t,e,i){this.translator=t,this.usersManagerService=e,this.store=i,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.multiLanguage=!1,this.language="en",this.allPasswordRequirements=this.store.get("password_requirements_help"),this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new tp}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(t=>{const e=t.userAttributes.find(t=>"preferredLanguage"===t.friendlyName);this.language=e&&e.value?e.value.toString():"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 t=this.formGroup.get("passwordCtrl").getError("backendError");return t&&(t=t.replace(":null","")),t}changeHelp(){this.passwordRequirement=this.allPasswordRequirements.find(t=>t.split(":")[0]===this.namespace),this.passwordRequirement=void 0===this.passwordRequirement?this.allPasswordRequirements.find(t=>"default"===t.split(":")[0]).split(/:(.+)/)[1]:this.passwordRequirement.split(/:(.+)/)[1]}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(va),s.Y36(ct),s.Y36(yt))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",namespace:"namespace",multiLanguage:"multiLanguage",language:"language"},features:[s.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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"mat-form-field",1),s._UZ(2,"input",2),s.ALo(3,"translate"),s.YNc(4,cp,1,1,"mat-spinner",3),s.TgZ(5,"mat-icon",4),s.NdJ("click",function(){return e.showNewPassword=!e.showNewPassword}),s._uU(6),s.qZA(),s.YNc(7,up,2,2,"mat-icon",5),s.YNc(8,hp,3,3,"mat-error",6),s.YNc(9,lp,2,2,"mat-error",7),s.qZA(),s.TgZ(10,"mat-form-field",8),s.TgZ(11,"mat-label"),s._uU(12),s.ALo(13,"translate"),s.qZA(),s._UZ(14,"input",9),s.TgZ(15,"mat-icon",4),s.NdJ("click",function(){return e.showPasswordConfirm=!e.showPasswordConfirm}),s._uU(16),s.qZA(),s.YNc(17,dp,3,3,"mat-error",6),s.YNc(18,fp,3,3,"mat-error",6),s.qZA(),s.TgZ(19,"app-alert",10),s._UZ(20,"div",11),s.qZA(),s.qZA()),2&t&&(s.Q6J("formGroup",e.formGroup),s.xp6(1),s.Q6J("matTooltip",e.getPasswordDisabledTooltip())("matTooltipDisabled",e.formGroup.get("passwordCtrl").enabled),s.xp6(1),s.s9C("placeholder",s.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),s.Q6J("type",e.showNewPassword?"text":"password")("required",e.passwordRequired)("errorStateMatcher",e.passwordStateMatcher),s.xp6(2),s.Q6J("ngIf",e.formGroup.get("passwordCtrl").pending),s.xp6(2),s.hij(" ",e.showNewPassword?"visibility_off":"visibility"," "),s.xp6(1),s.Q6J("ngIf",e.formGroup.get("passwordCtrl").dirty&&null!==e.formGroup.get("passwordCtrl").errors),s.xp6(1),s.Q6J("ngIf",e.formGroup.get("passwordCtrl").hasError("required")),s.xp6(1),s.Q6J("ngIf",e.formGroup.get("passwordCtrl").hasError("backendError")),s.xp6(3),s.Oqu(s.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),s.xp6(2),s.Q6J("type",e.showPasswordConfirm?"text":"password")("required",e.passwordRequired),s.xp6(2),s.hij(" ",e.showPasswordConfirm?"visibility_off":"visibility"," "),s.xp6(1),s.Q6J("ngIf",e.formGroup.get("passwordAgainCtrl").hasError("required")),s.xp6(1),s.Q6J("ngIf",e.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),s.xp6(2),s.Q6J("innerHTML",e.passwordRequirement,s.oJD))},directives:[Vc,Ru,gc,th,Og,_c,$c,Su,Mu,n.O5,Vh,cc,sc,ap,Zg,Ja],pipes:[Ta],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right}.error-icon[_ngcontent-%COMP%], .input-spinner[_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;display:block;margin-top:-1px}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple, [_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{position:static!important;display:table}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}"]}),t})();function pp(t,e){if(1&t&&s._UZ(0,"perun-web-apps-password-form",4),2&t){const t=s.oxw();s.Q6J("formGroup",t.newPasswdForm)("namespace",t.namespace)("language",t.language)}}function mp(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"button",5),s.NdJ("click",function(){return s.CHM(t),s.oxw().onSubmit()}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.Q6J("disabled",t.newPasswdForm.invalid||t.newPasswdForm.pending),s.xp6(1),s.hij(" ",s.lcZ(3,2,"reset"===t.mode?"PAGES.PWD_RESET_PAGE.RESET_BUTTON":"PAGES.PWD_RESET_PAGE.ACTIVATION_BUTTON")," ")}}function wp(t,e){if(1&t&&(s.TgZ(0,"div",6),s.TgZ(1,"app-alert",7),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,1,"reset"===t.mode?"PAGES.PWD_RESET_PAGE.RESET_SUCCESS":"PAGES.PWD_RESET_PAGE.ACTIVATION_SUCCESS")," ")}}function yp(t,e){1&t&&s._UZ(0,"mat-spinner",8)}let bp=(()=>{class t{constructor(t,e,i,n,s){this.storeService=t,this.translate=e,this.apiRequestConfiguration=i,this.usersService=n,this._formBuilder=s,this.loading=!1,this.success=!1,this.language="en"}ngOnInit(){this.loading=!0,this.translate.onLangChange.subscribe(t=>{this.language=t.lang}),this.newPasswdForm=this._formBuilder.group({passwordCtrl:new mu("",zc.required,[ep(this.namespace,this.usersService,this.apiRequestConfiguration)]),passwordAgainCtrl:new mu("",zc.required)},{validators:Qh.passwordMatchValidator}),this.loading=!1}onSubmit(){this.loading=!0,this.authWithoutToken?this.usersService.changePasswordForLogin(this.login,this.namespace,this.newPasswdForm.get("passwordCtrl").value).subscribe(()=>{this.success=!0,this.loading=!1}):this.usersService.changeNonAuthzPasswordByToken(this.token,this.newPasswdForm.get("passwordCtrl").value).subscribe(()=>{this.success=!0,this.loading=!1})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yt),s.Y36(va),s.Y36(pg),s.Y36(ct),s.Y36(ju))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.YNc(0,pp,1,3,"perun-web-apps-password-form",0),s.YNc(1,mp,4,4,"div",1),s.YNc(2,wp,4,3,"div",2),s.YNc(3,yp,1,0,"mat-spinner",3)),2&t&&(s.Q6J("ngIf",!e.success&&!e.loading),s.xp6(1),s.Q6J("ngIf",!e.success&&!e.loading),s.xp6(1),s.Q6J("ngIf",e.success&&!e.loading),s.xp6(1),s.Q6J("ngIf",e.loading))},directives:[n.O5,gp,Vc,Ru,Ba,ap,Zg],pipes:[Ta],styles:[""]}),t})(),Ap=(()=>{class t{constructor(t){this.translate=t}ngOnInit(){this.translate.onLangChange.subscribe(()=>{this.invalidRequestMessage=this.translate.instant("PAGES.PWD_RESET_PAGE.INVALID_REQUEST")})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(va))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-invalid-request-alert"]],decls:2,vars:1,consts:[["alert_type","info",1,"alert-wrap"],[3,"innerHTML"]],template:function(t,e){1&t&&(s.TgZ(0,"app-alert",0),s._UZ(1,"div",1),s.qZA()),2&t&&(s.xp6(1),s.Q6J("innerHTML",e.invalidRequestMessage,s.oJD))},directives:[ap],styles:[".alert-wrap[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),t})();function _p(t,e){if(1&t&&(s.O4$(),s.kcU(),s.TgZ(0,"p",9),s.TgZ(1,"em"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.AsE("",s.lcZ(3,2,"PAGES.PWD_RESET_PAGE.LOGIN"),": ",t.login,"")}}function vp(t,e){if(1&t&&(s.O4$(),s.kcU(),s.TgZ(0,"p",9),s.TgZ(1,"em"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.AsE("",s.lcZ(3,2,"PAGES.PWD_RESET_PAGE.NAMESPACE"),": ",t.namespace,"")}}function Tp(t,e){if(1&t&&(s.O4$(),s.kcU(),s._UZ(0,"perun-web-apps-password-reset-form",10)),2&t){const t=s.oxw();s.Q6J("mode",t.mode)("namespace",t.namespace)("login",t.login)("token",t.token)("authWithoutToken",t.authWithoutToken)}}function kp(t,e){1&t&&(s.O4$(),s.kcU(),s._UZ(0,"perun-web-apps-invalid-request-alert"))}let Cp=(()=>{class t{constructor(t,e){this.storeService=t,this.sanitizer=e}ngOnInit(){this.passwordResetLogo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("password_reset_logo"))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yt),s.Y36(K))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div"),s._UZ(1,"div",0),s.TgZ(2,"div",1),s.TgZ(3,"h1"),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.O4$(),s.TgZ(6,"svg",2),s.TgZ(7,"g",3),s._UZ(8,"path",4),s._UZ(9,"path",5),s.qZA(),s.qZA(),s.qZA(),s.YNc(10,_p,4,4,"p",6),s.YNc(11,vp,4,4,"p",6),s.YNc(12,Tp,1,5,"perun-web-apps-password-reset-form",7),s.YNc(13,kp,1,0,"perun-web-apps-invalid-request-alert",8),s.qZA()),2&t&&(s.xp6(1),s.Q6J("innerHTML",e.passwordResetLogo,s.oJD),s.xp6(3),s.hij(" ",s.lcZ(5,6,"reset"===e.mode?"PAGES.PWD_RESET_PAGE.TITLE_RESET":"PAGES.PWD_RESET_PAGE.TITLE_ACTIVATION")," "),s.xp6(6),s.Q6J("ngIf",e.login),s.xp6(1),s.Q6J("ngIf",e.namespace),s.xp6(1),s.Q6J("ngIf",e.validToken||e.authWithoutToken),s.xp6(1),s.Q6J("ngIf",!e.validToken&&!e.authWithoutToken))},directives:[n.O5,bp,Ap],pipes:[Ta],styles:[".title-with-icon[_ngcontent-%COMP%]{margin-top:30px;display:flex;justify-content:space-between}.subtitle[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:10px}"]}),t})();function Ep(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let zp=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.translate=e,this.notificator=i,this.rtMessages=n,this.storeService=s,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(t=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+t.ticketNumber)),this.dialogRef.close()})}getFullEmailBody(){return this.message+"\n ------------------------\n Perun instance: "+this.instanceName+"\n Sended from new Perun Gui, version: "+i(306).i8}close(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(qr),s.Y36(va),s.Y36(mg),s.Y36(nt),s.Y36(yt))},t.\u0275cmp=s.Xpm({type:t,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(t,e){if(1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s.TgZ(4,"mat-form-field"),s.TgZ(5,"mat-label"),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.TgZ(8,"input",2,3),s.NdJ("ngModelChange",function(t){return e.subject=t}),s.qZA(),s.YNc(10,Ep,3,3,"mat-error",4),s.qZA(),s.TgZ(11,"mat-form-field"),s.TgZ(12,"mat-label"),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.TgZ(15,"textarea",5),s.NdJ("ngModelChange",function(t){return e.message=t}),s.ALo(16,"translate"),s._uU(17," "),s.qZA(),s.TgZ(18,"mat-hint"),s._uU(19),s.ALo(20,"translate"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(21,"div",6),s.TgZ(22,"div",7),s.TgZ(23,"button",8),s.NdJ("click",function(){return e.close()}),s._uU(24),s.ALo(25,"translate"),s.qZA(),s.TgZ(26,"button",9),s.NdJ("click",function(){return e.sendBugReport()}),s._uU(27),s.ALo(28,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.MAs(9);s.xp6(1),s.Oqu(s.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),s.xp6(5),s.Oqu(s.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),s.xp6(2),s.Q6J("ngModel",e.subject),s.xp6(2),s.Q6J("ngIf",t.invalid),s.xp6(3),s.Oqu(s.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),s.xp6(2),s.s9C("placeholder",s.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),s.Q6J("ngModel",e.message),s.xp6(4),s.Oqu(s.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),s.xp6(5),s.hij(" ",s.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),s.xp6(2),s.Q6J("disabled",t.invalid),s.xp6(1),s.hij(" ",s.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[Qr,Jr,gc,sc,Og,_c,Mu,$c,ku,n.O5,nc,Xr,Ba,Ja],pipes:[Ta],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})(),Rp=(()=>{class t{transform(t,e,i){return t[`${i}_${e}`]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"localisedText",type:t,pure:!0}),t})(),Pp=(()=>{class t{transform(t,e){return t["link_"+e]||t.link_en}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"localisedLink",type:t,pure:!0}),t})(),Sp=(()=>{class t{transform(t){return t.includes("/")?t:"/assets/config/"+t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"footerLogoPath",type:t,pure:!0}),t})();function Bp(t,e){if(1&t&&(s.TgZ(0,"a",13),s.ALo(1,"localisedLink"),s._UZ(2,"img",14),s.ALo(3,"footerLogoPath"),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Q6J("href",s.xi3(1,2,t,e.language),s.LSH),s.xp6(2),s.s9C("src",s.lcZ(3,5,t.logo),s.LSH)}}function Mp(t,e){if(1&t&&(s.TgZ(0,"span"),s._UZ(1,"img",14),s.ALo(2,"footerLogoPath"),s.qZA()),2&t){const t=s.oxw().$implicit;s.xp6(1),s.s9C("src",s.lcZ(2,1,t.logo),s.LSH)}}function Kp(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,Bp,4,7,"a",11),s.ALo(2,"localisedLink"),s.YNc(3,Mp,3,3,"span",12),s.ALo(4,"localisedLink"),s.qZA()),2&t){const t=e.$implicit,i=s.oxw(3);s.xp6(1),s.Q6J("ngIf",s.xi3(2,2,t,i.language)),s.xp6(2),s.Q6J("ngIf",!s.xi3(4,5,t,i.language))}}const xp=function(t){return{"min-height":t}};function Hp(t,e){if(1&t&&(s.TgZ(0,"div",10),s.YNc(1,Kp,5,8,"div",5),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw();s.Q6J("ngStyle",s.VKq(2,xp,e.columnContentHeight+"px")),s.xp6(1),s.Q6J("ngForOf",t.elements)}}const jp=function(t){return{color:t}};function Ip(t,e){if(1&t&&(s.TgZ(0,"i",20),s._uU(1),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Q6J("ngStyle",s.VKq(2,jp,e.linksTextColor)),s.xp6(1),s.hij(" ",t.icon," ")}}function Lp(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"span",21),s.NdJ("click",function(){s.CHM(t);const e=s.oxw().$implicit;return s.oxw(3).openDialog(e.dialog)}),s._uU(1),s.ALo(2,"localisedText"),s.qZA()}if(2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Q6J("ngStyle",s.VKq(6,jp,e.linksTextColor)),s.xp6(1),s.hij("",s.Dn7(2,2,t,e.language,"label")," ")}}function Op(t,e){if(1&t&&(s.TgZ(0,"a",22),s.ALo(1,"localisedLink"),s._uU(2),s.ALo(3,"localisedText"),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Q6J("href",s.xi3(1,3,t,e.language),s.LSH)("ngStyle",s.VKq(10,jp,e.linksTextColor)),s.xp6(2),s.Oqu(s.Dn7(3,6,t,e.language,"label"))}}function Fp(t,e){if(1&t&&(s.TgZ(0,"span",10),s._uU(1),s.ALo(2,"localisedText"),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Q6J("ngStyle",s.VKq(6,jp,e.linksTextColor)),s.xp6(1),s.Oqu(s.Dn7(2,2,t,e.language,"label"))}}function Dp(t,e){if(1&t&&(s.TgZ(0,"div",16),s.YNc(1,Ip,2,4,"i",17),s.YNc(2,Lp,3,8,"span",18),s.YNc(3,Op,4,12,"a",19),s.ALo(4,"localisedLink"),s.YNc(5,Fp,3,8,"span",9),s.ALo(6,"localisedLink"),s.qZA()),2&t){const t=e.$implicit,i=s.oxw(3);s.xp6(1),s.Q6J("ngIf",t.icon),s.xp6(1),s.Q6J("ngIf",t.dialog),s.xp6(1),s.Q6J("ngIf",s.xi3(4,4,t,i.language)&&!t.dialog),s.xp6(2),s.Q6J("ngIf",!s.xi3(6,7,t,i.language)&&!t.dialog)}}const qp=function(t){return{height:t}};function Np(t,e){if(1&t&&(s.TgZ(0,"div",10),s.YNc(1,Dp,7,10,"div",15),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw();s.Q6J("ngStyle",s.VKq(2,qp,e.columnContentHeight+"px")),s.xp6(1),s.Q6J("ngForOf",t.elements)}}function Up(t,e){if(1&t&&(s.TgZ(0,"div",7),s.TgZ(1,"h6",8),s._uU(2),s.ALo(3,"localisedText"),s.qZA(),s.YNc(4,Hp,2,4,"div",9),s.YNc(5,Np,2,4,"div",9),s.qZA()),2&t){const t=e.$implicit,i=s.oxw();s.ekj("my-auto",i.containsLogos),s.xp6(1),s.Q6J("ngStyle",s.VKq(10,jp,i.headersTextColor)),s.xp6(1),s.hij(" ",s.Dn7(3,6,t,i.language,"title")," "),s.xp6(2),s.Q6J("ngIf",t.logos),s.xp6(1),s.Q6J("ngIf",t.elements&&!t.logos)}}function Gp(t,e){if(1&t&&(s.TgZ(0,"span"),s.TgZ(1,"a",6),s._uU(2),s.qZA(),s.qZA()),2&t){const t=e.$implicit,i=e.index,n=s.oxw();s.xp6(1),s.Q6J("href",t.url,s.LSH)("ngStyle",s.VKq(3,jp,n.copyrightTextColor)),s.xp6(1),s.Oqu(i?", "+t.name:t.name)}}const $p=function(t){return{background:t}};let Vp=(()=>{class t{constructor(t,e,i){this.storeService=t,this.translateService=e,this.dialog=i,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.items=[],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(t=>{this.language=t.lang}),this.version=i(306).i8,this.items=this.storeService.get("footer","columns");for(const t of this.items)t.logos?this.containsLogos=!0:25*t.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*t.elements.length);this.copyrightItems=this.storeService.get("footer","copyright_items")}openDialog(t){const e=Zh();switch(t){case"reportIssue":e.width="550px",this.dialog.open(zp,e)}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yt),s.Y36(va),s.Y36(Yr))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"footer",0),s.TgZ(1,"div",1),s.YNc(2,Up,6,12,"div",2),s.qZA(),s._UZ(3,"hr",3),s.TgZ(4,"div",4),s._uU(5),s.YNc(6,Gp,3,5,"span",5),s._uU(7," Version "),s.TgZ(8,"a",6),s._uU(9),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Q6J("ngStyle",s.VKq(8,$p,e.bgColor)),s.xp6(2),s.Q6J("ngForOf",e.items),s.xp6(2),s.Q6J("ngStyle",s.VKq(10,jp,e.copyrightTextColor)),s.xp6(1),s.hij(" \xa9 ",e.currentYear," Copyright: "),s.xp6(1),s.Q6J("ngForOf",e.copyrightItems),s.xp6(2),s.Q6J("href",e.githubRepository,s.LSH)("ngStyle",s.VKq(12,jp,e.copyrightTextColor)),s.xp6(1),s.Oqu(e.version))},directives:[n.PC,n.sg,n.O5],pipes:[Rp,Pp,Sp],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}"]}),t})();const Wp=["footer"],Yp=function(t){return{background:t}},Zp=function(t){return{"min-height":t}};let Qp=(()=>{class t{constructor(t,e,i,n,s,o,r){this.dialog=t,this.usersService=e,this.preferredLangService=i,this.translateService=n,this.store=s,this.attributesManagerService=o,this.changeDetector=r,this.authWithoutToken=!1,this.contentHeight="calc(100vh - 84px)",this.contentBackgroundColor=this.store.get("theme","content_bg_color")}ngOnInit(){const t=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(t);const e=location.search.substr(1);this.mode=e.includes("activation")?"activation":"reset",this.namespace=this.parseQueryParams("namespace",e),e.includes("token")?(this.token=this.parseQueryParams("token",e),this.usersService.checkPasswordResetRequestByTokenIsValid(this.token).subscribe(()=>{this.validToken=!0},()=>{this.validToken=!1})):(this.authWithoutToken=!0,this.attributesManagerService.getLogins(this.store.getPerunPrincipal().userId).subscribe(t=>{const e=t.find(t=>t.friendlyNameParameter===this.namespace);this.login=e?e.value.toString():""}))}parseQueryParams(t,e){const i=e.split("&");for(const n of i){const[e,i]=n.split("=");if(e.includes(t))return i}}ngAfterViewInit(){this.contentHeight="calc(100vh - 84px - "+this.footer.nativeElement.offsetHeight+"px)",this.changeDetector.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Yr),s.Y36(ct),s.Y36(bg),s.Y36(va),s.Y36(yt),s.Y36(G),s.Y36(s.sBO))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-root"]],viewQuery:function(t,e){if(1&t&&s.Gf(Wp,5),2&t){let t;s.iGM(t=s.CRH())&&(e.footer=t.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(t,e){1&t&&(s.TgZ(0,"div"),s._UZ(1,"perun-web-apps-header",0),s.TgZ(2,"div",1),s.TgZ(3,"div",2),s._UZ(4,"perun-web-apps-password-reset-page",3),s.qZA(),s.TgZ(5,"div",null,4),s._UZ(7,"perun-web-apps-footer"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.Q6J("ngStyle",s.VKq(8,Yp,e.contentBackgroundColor)),s.xp6(1),s.Q6J("ngStyle",s.VKq(10,Zp,e.contentHeight)),s.xp6(1),s.Q6J("mode",e.mode)("token",e.token)("namespace",e.namespace)("login",e.login)("validToken",e.validToken)("authWithoutToken",e.authWithoutToken))},directives:[Sg,n.PC,Cp,Vp],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}}"]}),t})();class Jp{constructor(t,e="/assets/i18n/",i=".json"){this.http=t,this.prefix=e,this.suffix=i}getTranslation(t){return this.http.get(`${this.prefix}${t}${this.suffix}`)}}let Xp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,ta,Ma,ka]]}),t})();const tm=[];let em=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[eg.forRoot(tm,{relativeLinkResolution:"legacy"}),n.ez],eg]}),t})(),im=(()=>{class t{constructor(t,e,i,n,s){this.http=t,this.storeService=e,this.authzSevice=i,this.titleService=n,this.utilsService=s}initializeColors(t,e){return new Promise(i=>{e.forEach(t=>{const e=this.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e)}),t.forEach(t=>{const e=this.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e),this.setEntityTheme(t.entity,e)}),i()})}setEntityTheme(t,e){const i=(n=e,[nm(tinycolor(n).lighten(52),"50"),nm(tinycolor(n).lighten(37),"100"),nm(tinycolor(n).lighten(26),"200"),nm(tinycolor(n).lighten(12),"300"),nm(tinycolor(n).lighten(6),"400"),nm(tinycolor(n),"500"),nm(tinycolor(n).darken(6),"600"),nm(tinycolor(n).darken(12),"700"),nm(tinycolor(n).darken(18),"800"),nm(tinycolor(n).darken(24),"900"),nm(tinycolor(n).lighten(50).saturate(30),"A100"),nm(tinycolor(n).lighten(30).saturate(30),"A200"),nm(tinycolor(n).lighten(10).saturate(15),"A400"),nm(tinycolor(n).lighten(5).saturate(5),"A700")]);var n;for(const s of i){const e=`--${t}-theme-primary-contrast-${s.name}`,i=s.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${t}-theme-primary-${s.name}`,`${s.red},${s.green},${s.blue}`),document.documentElement.style.setProperty(e,i)}}loadAppDefaultConfig(){return new Promise(t=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(e=>{this.storeService.setDefaultConfig(e),t()})})}loadAppInstanceConfig(){return new Promise(t=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(e=>{this.storeService.setInstanceConfig(e);const i=document.location.hostname;void 0!==e.brandings&&void 0!==e.brandings[i]&&this.storeService.setBanding(i),t()},()=>{console.log("instance config not detected"),t()})})}getNoCacheHeaders(){return new D.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(t=>{const e=document.querySelector("link[rel*='icon']")||document.createElement("link");e.type="image/x-icon",e.rel="shortcut icon",e.href=this.storeService.get("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(e),t()})}setApiUrl(){return new Promise(t=>{let e=this.storeService.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(e=e.replace("oauth","ba")),this.authzSevice.configuration.basePath=e,this.titleService.setTitle(this.storeService.get("document_title")),t()})}loadAppsConfig(){return new Promise((t,e)=>{this.utilsService.getAppsConfig().subscribe(e=>{this.storeService.setAppsConfig(e),t()},t=>e(t))})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(D.eN),s.LFG(yt),s.LFG(V),s.LFG(F),s.LFG(ut))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function nm(t,e){const i=tinycolor(t),n=i.toRgb();return{name:e,hex:i.toHexString(),darkContrast:i.isLight(),red:n.r,green:n.g,blue:n.b}}let sm=(()=>{class t{constructor(t,e,i){this.initAuthService=t,this.appConfigService=e,this.location=i}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(t=>{throw console.error(t),this.location.go("/"),location.reload(),t}).then(t=>t?location.search.substr(1).includes("token")?void 0:this.initAuthService.loadPrincipal():this.initAuthService.handleAuthStart())}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(dg),s.LFG(im),s.LFG(n.Ye))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const om=new s.OlP("perun-api-service");let rm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[ir],ir]}),t})(),am=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),cm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Sr,ir,ji,am],ir,am]}),t})(),um=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[ir],ir]}),t})(),hm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),lm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,ir,hm,Ze]]}),t})(),dm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[_r,ir],_r,ir]}),t})(),fm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Le]]}),t})(),gm=(()=>{class t{constructor(){this.changes=new kt.xQ,this.optionalLabel="Optional"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const pm={provide:gm,deps:[[new s.FiY,new s.tp0,gm]],useFactory:function(t){return t||new gm}};let mm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[pm,Ar],imports:[[ir,n.ez,Ze,Ma,fm,Wh,Sr],ir]}),t})(),wm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[qe]]}),t})(),ym=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[wm,ir],ir]}),t})(),bm=(()=>{class t{constructor(){this.changes=new kt.xQ,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"}formatYearRange(t,e){return`${t} \u2013 ${e}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Am={provide:new s.OlP("mat-datepicker-scroll-strategy"),deps:[Ri],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let _m=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[bm,Am],imports:[[n.ez,Ma,Si,un,Ze,ir],De]}),t})(),vm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,ir,Ee,De],De,ir]}),t})(),Tm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[_r,Sr,ir,Br,n.ez],_r,ir,Br,um]}),t})(),km=(()=>{class t{constructor(){this.changes=new kt.xQ}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Cm={provide:km,deps:[[new s.FiY,new s.tp0,km]],useFactory:function(t){return t||new km}};let Em=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Cm],imports:[[n.ez,ir]]}),t})();const zm=new s.OlP("mat-chips-default-options"),Rm={separatorKeyCodes:[13]};let Pm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Ar,{provide:zm,useValue:Rm}],imports:[[ir]]}),t})();function Sm(t){const{subscriber:e,counter:i,period:n}=t;e.next(i),this.schedule({subscriber:e,counter:i+1,period:n},n)}function Bm(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function Mm(t,e){const i=e?"":"none";Bm(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:i,msUserSelect:i,webkitUserSelect:i,MozUserSelect:i})}function Km(t,e){const i=t.style;i.position=e?"":"fixed",i.top=i.opacity=e?"":"0",i.left=e?"":"-999em"}function xm(t,e){return e?t+" "+e:t}function Hm(t){const e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function jm(t,e){return t.getPropertyValue(e).split(",").map(t=>t.trim())}function Im(t){const e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function Lm(t,e,i){const{top:n,bottom:s,left:o,right:r}=t;return i>=n&&i<=s&&e>=o&&e<=r}function Om(t,e,i){t.top+=e,t.bottom=t.top+t.height,t.left+=i,t.right=t.left+t.width}function Fm(t,e,i,n){const{top:s,right:o,bottom:r,left:a,width:c,height:u}=t,h=c*e,l=u*e;return n>s-l&&na-h&&i{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:Im(t)})})}handleScroll(t){const e=t.target,i=this.positions.get(e);if(!i)return null;const n=e===this._document?e.documentElement:e,s=i.scrollPosition;let o,r;if(e===this._document){const t=this._viewportRuler.getViewportScrollPosition();o=t.top,r=t.left}else o=e.scrollTop,r=e.scrollLeft;const a=s.top-o,c=s.left-r;return this.positions.forEach((t,i)=>{t.clientRect&&e!==i&&n.contains(i)&&Om(t.clientRect,a,c)}),s.top=o,s.left=r,{top:a,left:c}}}function qm(t){const e=t.cloneNode(!0),i=e.querySelectorAll("[id]"),n=t.nodeName.toLowerCase();e.removeAttribute("id");for(let s=0;s{if(this.beforeStarted.next(),this._handles.length){const e=this._handles.find(e=>{const i=t.target;return!!i&&(i===e||e.contains(i))});!e||this._disabledHandles.has(e)||this.disabled||this._initializeDragSequence(e,t)}else this.disabled||this._initializeDragSequence(this._rootElement,t)},this._pointerMove=t=>{const e=this._getPointerPositionOnPage(t);if(!this._hasStartedDragging){if(Math.abs(e.x-this._pickupPositionOnPage.x)+Math.abs(e.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const e=Date.now()>=this._dragStartTime+this._getDragStartDelay(t),i=this._dropContainer;if(!e)return void this._endDragSequence(t);i&&(i.isDragging()||i.isReceiving())||(t.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(t)))}return}this._boundaryElement&&(this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect())),t.preventDefault();const i=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._lastKnownPointerPosition=e,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,e);else{const t=this._activeTransform;t.x=i.x-this._pickupPositionOnPage.x+this._passiveTransform.x,t.y=i.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(t.x,t.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform",`translate(${t.x} ${t.y})`)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:t,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})},this._pointerUp=t=>{this._endDragSequence(t)},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new Dm(i,s),o.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=bt(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>Mm(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(t=>Tt(t)),this._handles.forEach(t=>Mm(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(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=Tt(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,Wm),e.addEventListener("touchstart",this._pointerDown,Vm)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?Tt(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&Jm(this._rootElement),Jm(this._anchor),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(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),Mm(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),Mm(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&Jm(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&Jm(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){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}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){Xm(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,i=t.parentNode,n=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),o=this._getShadowRoot();i.insertBefore(s,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),Km(t,!1),this._document.body.appendChild(i.replaceChild(n,t)),this._getPreviewInsertionPoint(i,o).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),n=Xm(e),s=!n&&0!==e.button,o=this._rootElement,r=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),i||s||r)return;this._handles.length&&(this._rootElementTapHighlight=o.style.webkitTapHighlightColor||"",o.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{this._updateOnScroll(t)}),this._boundaryElement&&(this._boundaryRect=Im(this._boundaryElement));const a=this._previewTemplate;this._pickupPositionInElement=a&&a.template&&!a.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);const c=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){Km(this._rootElement,!0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),n=this._getPointerPositionOnPage(t),s=this._getDragDistance(n),o=e._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:s,dropPoint:n}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:o,distance:s,dropPoint:n}),e.drop(this,i,this._initialIndex,this._initialContainer,o,s,n),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:i,y:n}){let s=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=s,this._dropContainer.enter(this,t,e,s===this._initialContainer&&s.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:s,currentIndex:s.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,n),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let n;if(i&&t){const e=t.matchSize?this._rootElement.getBoundingClientRect():null,s=t.viewContainer.createEmbeddedView(i,t.context);s.detectChanges(),n=tw(s,this._document),this._previewRef=s,t.matchSize?ew(n,e):n.style.transform=Zm(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const t=this._rootElement;n=qm(t),ew(n,t.getBoundingClientRect()),this._initialTransform&&(n.style.transform=this._initialTransform)}return Bm(n.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:`${this._config.zIndex||1e3}`}),Mm(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(t=>n.classList.add(t)):n.classList.add(e)),n}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);const e=function(t){const e=getComputedStyle(t),i=jm(e,"transition-property"),n=i.find(t=>"transform"===t||"all"===t);if(!n)return 0;const s=i.indexOf(n),o=jm(e,"transition-duration"),r=jm(e,"transition-delay");return Hm(o[s])+Hm(r[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const i=e=>{(!e||e.target===this._preview&&"transform"===e.propertyName)&&(this._preview.removeEventListener("transitionend",i),t(),clearTimeout(n))},n=setTimeout(i,1.5*e);this._preview.addEventListener("transitionend",i)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=tw(this._placeholderRef,this._document)):i=qm(this._rootElement),i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e){const i=this._rootElement.getBoundingClientRect(),n=t===this._rootElement?null:t,s=n?n.getBoundingClientRect():i,o=Xm(e)?e.targetTouches[0]:e,r=this._getViewportScrollPosition();return{x:s.left-i.left+(o.pageX-s.left-r.left),y:s.top-i.top+(o.pageY-s.top-r.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),i=Xm(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,n=i.pageX-e.left,s=i.pageY-e.top;if(this._ownerSVGElement){const t=this._ownerSVGElement.getScreenCTM();if(t){const e=this._ownerSVGElement.createSVGPoint();return e.x=n,e.y=s,e.matrixTransform(t.inverse())}}return{x:n,y:s}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:n}=this.constrainPosition?this.constrainPosition(t,this):t;if("x"===this.lockAxis||"x"===e?n=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==e||(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:t,y:e}=this._pickupPositionInElement,s=this._boundaryRect,o=this._previewRect,r=s.top+e,a=s.bottom-(o.height-e);i=Qm(i,s.left+t,s.right-(o.width-t)),n=Qm(n,r,a)}return{x:i,y:n}}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,n=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,o=Math.abs(e-s.x),r=Math.abs(i-s.y);return o>this._config.pointerDirectionChangeThreshold&&(n.x=e>s.x?1:-1,s.x=e),r>this._config.pointerDirectionChangeThreshold&&(n.y=i>s.y?1:-1,s.y=i),n}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,Mm(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,Wm),t.removeEventListener("touchstart",this._pointerDown,Vm)}_applyRootElementTransform(t,e){const i=Zm(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=xm(i,this._initialTransform)}_applyPreviewTransform(t,e){var i;const n=(null===(i=this._previewTemplate)||void 0===i?void 0:i.template)?void 0:this._initialTransform,s=Zm(t,e);this._preview.style.transform=xm(s,n)}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._boundaryElement.getBoundingClientRect(),n=this._rootElement.getBoundingClientRect();if(0===i.width&&0===i.height||0===n.width&&0===n.height)return;const s=i.left-n.left,o=n.right-i.right,r=i.top-n.top,a=n.bottom-i.bottom;i.width>n.width?(s>0&&(t+=s),o>0&&(t-=o)):t=0,i.height>n.height?(r>0&&(e+=r),a>0&&(e-=a)):e=0,t===this._passiveTransform.x&&e===this._passiveTransform.y||this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:Xm(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const i=t.target;this._boundaryRect&&(i===this._document||i!==this._boundaryElement&&i.contains(this._boundaryElement))&&Om(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(){const t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=xe(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){const i=this._previewContainer||"global";if("parent"===i)return t;if("global"===i){const t=this._document;return e||t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement||t.body}return Tt(i)}}function Zm(t,e){return`translate3d(${Math.round(t)}px, ${Math.round(e)}px, 0)`}function Qm(t,e,i){return Math.max(e,Math.min(i,t))}function Jm(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function Xm(t){return"t"===t.type[0]}function tw(t,e){const i=t.rootNodes;if(1===i.length&&i[0].nodeType===e.ELEMENT_NODE)return i[0];const n=e.createElement("div");return i.forEach(t=>n.appendChild(t)),n}function ew(t,e){t.style.width=`${e.width}px`,t.style.height=`${e.height}px`,t.style.transform=Zm(e.left,e.top)}function iw(t,e){return Math.max(0,Math.min(e,t))}class nw{constructor(t,e,i,n,s){this._dragDropRegistry=e,this._ngZone=n,this._viewportRuler=s,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new kt.xQ,this.entered=new kt.xQ,this.exited=new kt.xQ,this.dropped=new kt.xQ,this.sorted=new kt.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=Gt.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new kt.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function(t=0,e=Wt.P){return(!Xt(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=Wt.P),new Et.y(i=>(i.add(e.schedule(Sm,t,{subscriber:i,counter:0,period:t})),i))}(0,jt).pipe(oe(this._stopScrollTimers)).subscribe(()=>{const t=this._scrollNode,e=this.autoScrollStep;1===this._verticalScrollDirection?ow(t,-e):2===this._verticalScrollDirection&&ow(t,e),1===this._horizontalScrollDirection?rw(t,-e):2===this._horizontalScrollDirection&&rw(t,e)})},this.element=Tt(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new Dm(i,s)}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(t,e,i,n){let s;this._draggingStarted(),null==n?(s=this.sortingDisabled?this._draggables.indexOf(t):-1,-1===s&&(s=this._getItemIndexFromPointerPosition(t,e,i))):s=n;const o=this._activeDraggables,r=o.indexOf(t),a=t.getPlaceholderElement();let c=o[s];if(c===t&&(c=o[s+1]),r>-1&&o.splice(r,1),c&&!this._dragDropRegistry.isDragging(c)){const e=c.getRootElement();e.parentElement.insertBefore(a,e),o.splice(s,0,t)}else if(this._shouldEnterAsFirstChild(e,i)){const e=o[0].getRootElement();e.parentNode.insertBefore(a,e),o.unshift(t)}else Tt(this.element).appendChild(a),o.push(t);a.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,n,s,o,r){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:n,isPointerOverContainer:s,distance:o,dropPoint:r})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(t=>t.isDragging()).every(e=>-1===t.indexOf(e))?this._reset():this._cacheItems()),this}withDirection(t){return this._direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._orientation=t,this}withScrollableParents(t){const e=Tt(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?sw("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,e=>e.drag===t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,n){if(this.sortingDisabled||!this._clientRect||!Fm(this._clientRect,.05,e,i))return;const s=this._itemPositions,o=this._getItemIndexFromPointerPosition(t,e,i,n);if(-1===o&&s.length>0)return;const r="horizontal"===this._orientation,a=sw(s,e=>e.drag===t),c=s[o],u=c.clientRect,h=a>o?1:-1,l=this._getItemOffsetPx(s[a].clientRect,u,h),d=this._getSiblingOffsetPx(a,s,h),f=s.slice();!function(t,e,i){const n=iw(e,t.length-1),s=iw(i,t.length-1);if(n===s)return;const o=t[n],r=s{if(f[i]===e)return;const n=e.drag===t,s=n?l:d,o=n?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=s,r?(o.style.transform=xm(`translate3d(${Math.round(e.offset)}px, 0, 0)`,e.initialTransform),Om(e.clientRect,0,s)):(o.style.transform=xm(`translate3d(0, ${Math.round(e.offset)}px, 0)`,e.initialTransform),Om(e.clientRect,s,0))}),this._previousSwap.overlaps=Lm(u,e,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=r?n.x:n.y}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,n=0,s=0;if(this._parentPositions.positions.forEach((o,r)=>{r!==this._document&&o.clientRect&&!i&&Fm(o.clientRect,.05,t,e)&&([n,s]=function(t,e,i,n){const s=aw(e,n),o=cw(e,i);let r=0,a=0;if(s){const e=t.scrollTop;1===s?e>0&&(r=1):t.scrollHeight-e>t.clientHeight&&(r=2)}if(o){const e=t.scrollLeft;1===o?e>0&&(a=1):t.scrollWidth-e>t.clientWidth&&(a=2)}return[r,a]}(r,o.clientRect,t,e),(n||s)&&(i=r))}),!n&&!s){const{width:o,height:r}=this._viewportRuler.getViewportSize(),a={width:o,height:r,top:0,right:o,bottom:r,left:0};n=aw(a,e),s=cw(a,t),i=window}!i||n===this._verticalScrollDirection&&s===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=n,this._horizontalScrollDirection=s,this._scrollNode=i,(n||s)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=Tt(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=Tt(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_cacheItemPositions(){const t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(t=>{const e=t.getVisibleElement();return{drag:t,offset:0,initialTransform:e.style.transform||"",clientRect:Im(e)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_reset(){this._isDragging=!1;const t=Tt(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(t=>{var e;const i=t.getRootElement();if(i){const n=null===(e=this._itemPositions.find(e=>e.drag===t))||void 0===e?void 0:e.initialTransform;i.style.transform=n||""}}),this._siblings.forEach(t=>t._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(t,e,i){const n="horizontal"===this._orientation,s=e[t].clientRect,o=e[t+-1*i];let r=s[n?"width":"height"]*i;if(o){const t=n?"left":"top",e=n?"right":"bottom";-1===i?r-=o.clientRect[t]-s[e]:r+=s[t]-o.clientRect[e]}return r}_getItemOffsetPx(t,e,i){const n="horizontal"===this._orientation;let s=n?e.left-t.left:e.top-t.top;return-1===i&&(s+=n?e.width-t.width:e.height-t.height),s}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,n="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){const s=i[i.length-1].clientRect;return n?t>=s.right:e>=s.bottom}{const s=i[0].clientRect;return n?t<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(t,e,i,n){const s="horizontal"===this._orientation,o=sw(this._itemPositions,({drag:o,clientRect:r},a,c)=>{if(o===t)return c.length<2;if(n){const t=s?n.x:n.y;if(o===this._previousSwap.drag&&this._previousSwap.overlaps&&t===this._previousSwap.delta)return!1}return s?e>=Math.floor(r.left)&&e=Math.floor(r.top)&&in._canReceive(t,e,i))}_canReceive(t,e,i){if(!this._clientRect||!Lm(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const n=this._getShadowRoot().elementFromPoint(e,i);if(!n)return!1;const s=Tt(this.element);return n===s||s.contains(n)}_startReceiving(t,e){const i=this._activeSiblings;!i.has(t)&&e.every(t=>this.enterPredicate(t,this)||this._draggables.indexOf(t)>-1)&&(i.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&(this._itemPositions.forEach(({clientRect:t})=>{Om(t,e.top,e.left)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=xe(Tt(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._activeDraggables.filter(t=>t.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function sw(t,e){for(let i=0;i=i-o&&e<=i+o?1:e>=n-o&&e<=n+o?2:0}function cw(t,e){const{left:i,right:n,width:s}=t,o=.05*s;return e>=i-o&&e<=i+o?1:e>=n-o&&e<=n+o?2:0}const uw=Me({passive:!1,capture:!0});let hw=(()=>{class t{constructor(t,e){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=t=>t.isDragging(),this.pointerMove=new kt.xQ,this.pointerUp=new kt.xQ,this.scroll=new kt.xQ,this._preventDefaultWhileDragging=t=>{this._activeDragInstances.length>0&&t.preventDefault()},this._persistentTouchmoveListener=t=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&t.preventDefault(),this.pointerMove.next(t))},this._document=e}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,uw)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,uw)}startDragging(t,e){if(!(this._activeDragInstances.indexOf(t)>-1)&&(this._activeDragInstances.push(t),1===this._activeDragInstances.length)){const t=e.type.startsWith("touch");this._globalListeners.set(t?"touchend":"mouseup",{handler:t=>this.pointerUp.next(t),options:!0}).set("scroll",{handler:t=>this.scroll.next(t),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:uw}),t||this._globalListeners.set("mousemove",{handler:t=>this.pointerMove.next(t),options:uw}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((t,e)=>{this._document.addEventListener(e,t.handler,t.options)})})}}stopDragging(t){const e=this._activeDragInstances.indexOf(t);e>-1&&(this._activeDragInstances.splice(e,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(t){return this._activeDragInstances.indexOf(t)>-1}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,e)=>{this._document.removeEventListener(e,t.handler,t.options)}),this._globalListeners.clear()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(n.K0))},token:t,providedIn:"root"}),t})();const lw={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let dw=(()=>{class t{constructor(t,e,i,n){this._document=t,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=n}createDrag(t,e=lw){return new Ym(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new nw(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0),s.LFG(s.R0b),s.LFG(Fe),s.LFG(hw))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0),s.LFG(s.R0b),s.LFG(Fe),s.LFG(hw))},token:t,providedIn:"root"}),t})(),fw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[dw],imports:[De]}),t})(),gw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez]]}),t})(),pw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),mw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),ww=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[mw,ir],ir]}),t})(),yw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Sr,ir],ir]}),t})(),bw=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,Hu,Ma,cm,Wh,Qg,nh]]}),t})(),Aw=(()=>{class t extends mr{format(t,e){return"input"===e?`${t.getDate().toString()}.${(t.getMonth()+1).toString()}.${t.getFullYear()}`:t.toDateString()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const _w={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 vw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[{provide:cr,useClass:Aw},{provide:ur,useValue:_w}],imports:[[n.ez,cm,ym,xu,Pm,fw,ka,eg,Em,rh,Qg,Jg,Wh,Eh,Ma,nh,pc,Hu,Fg,Sr,gw,pw,ww,_m,yw,Mr,Lu,bw,qe,ta,Yh]]}),t})();i(6577);let Tw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,rm,um,lm,Ma,dm,cm,Wh,ym,ta,Qg,pc,Fg,qe,xu,Hu,mm,_m,br,vm,Tm,vw,Eh,Eg,Em,rh,nh,Lu,Sr],rm,um,lm,Ma,dm,cm,Wh,ym,ta,Qg,pc,Fg,qe,xu,Hu,mm,_m,br,vm,Tm,vw,Eh,Eg,Em,rh,nh,Lu,Sr]}),t})();const kw={provide:D.TP,useExisting:(0,s.Gpc)(()=>wg),multi:!0};function Cw(t){return new Jp(t,"./assets/i18n/",".json")}function Ew(t){const e={basePath:t.get("api_url")};return new U(e)}const zw=t=>()=>t.loadConfigs();let Rw=(()=>{class t{constructor(t,e){this.customIconService=t,this.translate=e,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(fg),s.LFG(va))},t.\u0275mod=s.oAB({type:t,bootstrap:[Qp]}),t.\u0275inj=s.cJS({providers:[fg,{provide:s.ip1,useFactory:zw,multi:!0,deps:[sm]},{provide:U,useFactory:Ew,deps:[yt]},wg,kw,{provide:om,useClass:yg}],imports:[[L,ka.forRoot({loader:{provide:oa,useFactory:Cw,deps:[D.eN]}}),Xo,Wh,Xp,pt,D.JF,em,Tw,Jg,Xg,hg.zr.forRoot()]]}),t})();(0,s.G48)(),j().bootstrapModule(Rw).catch(t=>console.error(t))},1511:(t,e,i)=>{"use strict";i.d(e,{mr:()=>A,Ov:()=>W,ez:()=>Y,K0:()=>c,Do:()=>v,V_:()=>l,Ye:()=>T,S$:()=>y,mk:()=>B,sg:()=>K,O5:()=>H,PC:()=>q,RF:()=>O,n9:()=>F,ED:()=>D,tP:()=>N,b0:()=>_,lw:()=>u,EM:()=>J,JF:()=>et,NF:()=>Q,w_:()=>a,bD:()=>Z,q:()=>o,Mx:()=>S,HT:()=>r});var n=i(1572);let s=null;function o(){return s}function r(t){s||(s=t)}class a{}const c=new n.OlP("DocumentToken");let u=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:h,token:t,providedIn:"platform"}),t})();function h(){return(0,n.LFG)(d)}const l=new n.OlP("Location Initialized");let d=(()=>{class t extends u{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return o().getBaseHref(this._doc)}onPopState(t){const e=o().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=o().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}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(t){this.location.pathname=t}pushState(t,e,i){f()?this._history.pushState(t,e,i):this.location.hash=i}replaceState(t,e,i){f()?this._history.replaceState(t,e,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(c))},t.\u0275prov=(0,n.Yz7)({factory:g,token:t,providedIn:"platform"}),t})();function f(){return!!window.history.pushState}function g(){return new d((0,n.LFG)(c))}function p(t,e){if(0==t.length)return e;if(0==e.length)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,2==i?t+e.substring(1):1==i?t+e:t+"/"+e}function m(t){const e=t.match(/#|\?|$/),i=e&&e.index||t.length;return t.slice(0,i-("/"===t[i-1]?1:0))+t.slice(i)}function w(t){return t&&"?"!==t[0]?"?"+t:t}let y=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:b,token:t,providedIn:"root"}),t})();function b(t){const e=(0,n.LFG)(c).location;return new _((0,n.LFG)(u),e&&e.origin||"")}const A=new n.OlP("appBaseHref");let _=(()=>{class t extends y{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return p(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+w(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${e}${i}`:e}pushState(t,e,i,n){const s=this.prepareExternalUrl(i+w(n));this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){const s=this.prepareExternalUrl(i+w(n));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformLocation).historyGo)||void 0===i||i.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(u),n.LFG(A,8))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),v=(()=>{class t extends y{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=p(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,i,n){let s=this.prepareExternalUrl(i+w(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){let s=this.prepareExternalUrl(i+w(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformLocation).historyGo)||void 0===i||i.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(u),n.LFG(A,8))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),T=(()=>{class t{constructor(t,e){this._subject=new n.vpe,this._urlChangeListeners=[],this._platformStrategy=t;const i=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=m(C(i)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+w(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,C(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",i=null){this._platformStrategy.pushState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+w(e)),i)}replaceState(t,e="",i=null){this._platformStrategy.replaceState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+w(e)),i)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformStrategy).historyGo)||void 0===i||i.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(i=>i(t,e))}subscribe(t,e,i){return this._subject.subscribe({next:t,error:e,complete:i})}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(y),n.LFG(u))},t.normalizeQueryParams=w,t.joinWithSlash=p,t.stripTrailingSlash=m,t.\u0275prov=(0,n.Yz7)({factory:k,token:t,providedIn:"root"}),t})();function k(){return new T((0,n.LFG)(y),(0,n.LFG)(u))}function C(t){return t.replace(/\/index.html$/,"")}var E=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({});const z=n.kL8;class R{}let P=(()=>{class t extends R{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(z(e||this.locale)(t)){case E.Zero:return"zero";case E.One:return"one";case E.Two:return"two";case E.Few:return"few";case E.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.soG))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();function S(t,e){e=encodeURIComponent(e);for(const i of t.split(";")){const t=i.indexOf("="),[n,s]=-1==t?[i,""]:[i.slice(0,t),i.slice(t+1)];if(n.trim()===e)return decodeURIComponent(s)}return null}let B=(()=>{class t{constructor(t,e,i,n){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=i,this._renderer=n,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&((0,n.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,n.AaK)(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.ZZ4),n.Y36(n.aQg),n.Y36(n.SBq),n.Y36(n.Qsj))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class M{constructor(t,e,i,n){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=n}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 K=(()=>{class t{constructor(t,e,i){this._viewContainer=t,this._template=e,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const i=this._ngForOf;if(!this._differ&&i)try{this._differ=this._differs.find(i).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${i}' of type '${t=i,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,i,n)=>{if(null==t.previousIndex){const i=this._viewContainer.createEmbeddedView(this._template,new M(null,this._ngForOf,-1,-1),null===n?void 0:n),s=new x(t,i);e.push(s)}else if(null==n)this._viewContainer.remove(null===i?void 0:i);else if(null!==i){const s=this._viewContainer.get(i);this._viewContainer.move(s,n);const o=new x(t,s);e.push(o)}});for(let i=0;i{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(n.ZZ4))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class x{constructor(t,e){this.record=t,this.view=e}}let H=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new j,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){I("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){I("ngIfElse",t),this._elseTemplateRef=t,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(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class j{constructor(){this.$implicit=null,this.ngIf=null}}function I(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${(0,n.AaK)(e)}'.`)}class L{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let O=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,i){this.ngSwitch=i,i._addCase(),this._view=new L(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(O,9))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),D=(()=>{class t{constructor(t,e,i){i._addDefault(new L(t,e))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(O,9))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),q=(()=>{class t{constructor(t,e,i){this._ngEl=t,this._differs=e,this._renderer=i,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[i,n]=t.split(".");null!=(e=null!=e&&n?`${e}${n}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,i,e):this._renderer.removeStyle(this._ngEl.nativeElement,i)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.aQg),n.Y36(n.Qsj))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),N=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[n.TTD]}),t})();class U{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class G{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const $=new G,V=new U;let W=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if((0,n.QGY)(e))return $;if((0,n.F4k)(e))return V;throw Error(`InvalidPipeArgument: '${e}' for pipe '${(0,n.AaK)(t)}'`)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO,16))},t.\u0275pipe=n.Yjl({name:"async",type:t,pure:!1}),t})(),Y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:R,useClass:P}]}),t})();const Z="browser";function Q(t){return t===Z}let J=(()=>{class t{}return t.\u0275prov=(0,n.Yz7)({token:t,providedIn:"root",factory:()=>new X((0,n.LFG)(c),window)}),t})();class X{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const i=t.getElementById(e)||t.getElementsByName(e)[0];if(i)return i;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let n=i.currentNode;for(;n;){const t=n.shadowRoot;if(t){const i=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(i)return i}n=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,n=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(i-s[0],n-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=tt(this.window.history)||tt(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function tt(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class et{}},9063:(t,e,i)=>{"use strict";i.d(e,{TP:()=>S,eN:()=>R,JF:()=>D,WM:()=>d,LE:()=>m,Zn:()=>C});var n=i(1511),s=i(1572),o=i(878),r=i(8318),a=i(436),c=i(3835),u=i(9996);class h{}class l{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const i=t.slice(0,e),n=i.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(s):this.headers.set(n,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const n=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(n,i),this.maybeSetNormalizedName(e,n))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const n=("a"===t.op?this.headers.get(e):void 0)||[];n.push(...i),this.headers.set(e,n);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class f{encodeKey(t){return g(t)}encodeValue(t){return g(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function g(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function p(t){return`${t}`}class m{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new f,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const n=t.indexOf("="),[s,o]=-1==n?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,n)),e.decodeValue(t.slice(n+1))],r=i.get(s)||[];r.push(o),i.set(s,r)}),i}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const n=t[i];Array.isArray(n)?n.forEach(t=>{e.push({param:i,value:t,op:"a"})}):e.push({param:i,value:n,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new m({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(p(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const i=e.indexOf(p(t.value));-1!==i&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class w{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function y(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function b(t){return"undefined"!=typeof Blob&&t instanceof Blob}function A(t){return"undefined"!=typeof FormData&&t instanceof FormData}class _{constructor(t,e,i,n){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||n?(this.body=void 0!==i?i:null,s=n):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new d),this.context||(this.context=new w),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const i=e.indexOf("?");this.urlWithParams=e+(-1===i?"?":ie.set(i,t.setHeaders[i]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((e,i)=>e.set(i,t.setParams[i]),u)),new _(i,n,o,{params:u,headers:c,context:h,reportProgress:a,responseType:s,withCredentials:r})}}var v=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class T{constructor(t,e=200,i="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class k extends T{constructor(t={}){super(t),this.type=v.ResponseHeader}clone(t={}){return new k({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class C extends T{constructor(t={}){super(t),this.type=v.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new C({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class E extends T{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function z(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let R=(()=>{class t{constructor(t){this.handler=t}request(t,e,i={}){let n;if(t instanceof _)n=t;else{let s,o;s=i.headers instanceof d?i.headers:new d(i.headers),i.params&&(o=i.params instanceof m?i.params:new m({fromObject:i.params})),n=new _(t,e,void 0!==i.body?i.body:null,{headers:s,context:i.context,params:o,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=(0,o.of)(n).pipe((0,a.b)(t=>this.handler.handle(t)));if(t instanceof _||"events"===i.observe)return s;const r=s.pipe((0,c.h)(t=>t instanceof C));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return r.pipe((0,u.U)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe((0,u.U)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe((0,u.U)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe((0,u.U)(t=>t.body))}case"response":return r;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new m).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,i={}){return this.request("PATCH",t,z(i,e))}post(t,e,i={}){return this.request("POST",t,z(i,e))}put(t,e,i={}){return this.request("PUT",t,z(i,e))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(h))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class P{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const S=new s.OlP("HTTP_INTERCEPTORS");let B=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const M=/^\)\]\}',?\n/;let K=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new r.y(e=>{const i=this.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((t,e)=>i.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&i.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();i.responseType="json"!==e?e:"text"}const n=t.serializeBody();let s=null;const o=()=>{if(null!==s)return s;const e=1223===i.status?204:i.status,n=i.statusText||"OK",o=new d(i.getAllResponseHeaders()),r=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new k({headers:o,status:e,statusText:n,url:r}),s},r=()=>{let{headers:n,status:s,statusText:r,url:a}=o(),c=null;204!==s&&(c=void 0===i.response?i.responseText:i.response),0===s&&(s=c?200:0);let u=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof c){const t=c;c=c.replace(M,"");try{c=""!==c?JSON.parse(c):null}catch(h){c=t,u&&(u=!1,c={error:h,text:c})}}u?(e.next(new C({body:c,headers:n,status:s,statusText:r,url:a||void 0})),e.complete()):e.error(new E({error:c,headers:n,status:s,statusText:r,url:a||void 0}))},a=t=>{const{url:n}=o(),s=new E({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:n||void 0});e.error(s)};let c=!1;const u=n=>{c||(e.next(o()),c=!0);let s={type:v.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(s.total=n.total),"text"===t.responseType&&i.responseText&&(s.partialText=i.responseText),e.next(s)},h=t=>{let i={type:v.UploadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),e.next(i)};return i.addEventListener("load",r),i.addEventListener("error",a),i.addEventListener("timeout",a),i.addEventListener("abort",a),t.reportProgress&&(i.addEventListener("progress",u),null!==n&&i.upload&&i.upload.addEventListener("progress",h)),i.send(n),e.next({type:v.Sent}),()=>{i.removeEventListener("error",a),i.removeEventListener("abort",a),i.removeEventListener("load",r),i.removeEventListener("timeout",a),t.reportProgress&&(i.removeEventListener("progress",u),null!==n&&i.upload&&i.upload.removeEventListener("progress",h)),i.readyState!==i.DONE&&i.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.JF))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const x=new s.OlP("XSRF_COOKIE_NAME"),H=new s.OlP("XSRF_HEADER_NAME");class j{}let I=(()=>{class t{constructor(t,e,i){this.doc=t,this.platform=e,this.cookieName=i,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,n.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0),s.LFG(s.Lbi),s.LFG(x))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),L=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);const n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(j),s.LFG(H))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),O=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(S,[]);this.chain=t.reduceRight((t,e)=>new P(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(l),s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),F=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:L,useClass:B}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:x,useValue:e.cookieName}:[],e.headerName?{provide:H,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[L,{provide:S,useExisting:L,multi:!0},{provide:j,useClass:I},{provide:x,useValue:"XSRF-TOKEN"},{provide:H,useValue:"X-XSRF-TOKEN"}]}),t})(),D=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[R,{provide:h,useClass:O},K,{provide:l,useExisting:K}],imports:[[F.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},1572:(t,e,i)=>{"use strict";i.d(e,{deG:()=>ai,tb:()=>tu,AFp:()=>Yc,ip1:()=>Vc,CZH:()=>Wc,hGG:()=>Vu,z2F:()=>Iu,sBO:()=>qa,Sil:()=>lu,_Vd:()=>da,EJc:()=>nu,SBq:()=>ma,qLn:()=>Rn,vpe:()=>zc,gxx:()=>wo,tBr:()=>Ri,XFs:()=>P,OlP:()=>ri,zs3:()=>Mo,ZZ4:()=>Ha,aQg:()=>Ia,soG:()=>iu,YKP:()=>Ja,v3s:()=>Ou,h0i:()=>Qa,PXZ:()=>Mu,R0b:()=>gu,FiY:()=>Pi,Lbi:()=>Xc,g9A:()=>Jc,n_E:()=>Pc,Qsj:()=>ba,FYo:()=>ya,JOm:()=>Mn,Tiy:()=>_a,q3G:()=>bn,tp0:()=>Si,EAV:()=>qu,Rgc:()=>Va,dDg:()=>_u,DyG:()=>ci,GfV:()=>va,s_b:()=>tc,ifc:()=>H,eFA:()=>Ku,G48:()=>Su,Gpc:()=>f,f3M:()=>Ci,X6Q:()=>Pu,_c5:()=>Gu,VLi:()=>ku,c2e:()=>eu,zSh:()=>bo,wAp:()=>Jr,vHH:()=>m,EiD:()=>wn,mCW:()=>Xi,qzn:()=>qi,JVY:()=>Ui,pB0:()=>Wi,eBb:()=>$i,L6k:()=>Gi,LAX:()=>Vi,cg1:()=>Yr,Tjo:()=>Uu,kL8:()=>Zr,yhl:()=>Ni,dqk:()=>F,sIi:()=>qo,CqO:()=>ur,QGY:()=>ar,F4k:()=>cr,RDi:()=>Ct,AaK:()=>h,z3N:()=>Di,qOj:()=>xo,TTD:()=>yt,_Bn:()=>ua,xp6:()=>bs,uIk:()=>Vo,Gre:()=>Nr,ekj:()=>Rr,Suo:()=>Dc,Xpm:()=>Q,lG2:()=>st,Yz7:()=>A,cJS:()=>_,oAB:()=>et,Yjl:()=>ot,Y36:()=>Qo,_UZ:()=>ir,GkF:()=>or,BQk:()=>sr,ynx:()=>nr,qZA:()=>er,TgZ:()=>tr,EpF:()=>rr,n5z:()=>ei,Ikx:()=>Ur,LFG:()=>ki,$8M:()=>ni,NdJ:()=>hr,CRH:()=>qc,kcU:()=>be,O4$:()=>ye,oxw:()=>pr,ALo:()=>Ac,lcZ:()=>_c,xi3:()=>vc,Dn7:()=>Tc,Hsn:()=>yr,F$t:()=>wr,Q6J:()=>Jo,s9C:()=>br,VKq:()=>pc,WLB:()=>mc,iGM:()=>Oc,MAs:()=>Zo,pYS:()=>Sn,CHM:()=>Ut,oJD:()=>An,LSH:()=>_n,kYT:()=>it,Udp:()=>zr,WFA:()=>lr,d8E:()=>Gr,YNc:()=>Yo,W1O:()=>$c,_uU:()=>Or,Oqu:()=>Fr,hij:()=>Dr,AsE:()=>qr,Gf:()=>Fc});var n=i(5959),s=i(7570),o=i(8318),r=i(1906),a=i(1055);function c(t){for(let e in t)if(t[e]===c)return e;throw Error("Could not find renamed property on target object.")}function u(t,e){for(const i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function h(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(h).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const i=e.indexOf("\n");return-1===i?e:e.substring(0,i)}function l(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const d=c({__forward_ref__:c});function f(t){return t.__forward_ref__=f,t.toString=function(){return h(this())},t}function g(t){return p(t)?t():t}function p(t){return"function"==typeof t&&t.hasOwnProperty(d)&&t.__forward_ref__===f}class m extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function w(t){return"string"==typeof t?t:null==t?"":String(t)}function y(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():w(t)}function b(t,e){const i=e?` in ${e}`:"";throw new m("201",`No provider for ${y(t)} found${i}`)}function A(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function _(t){return{providers:t.providers||[],imports:t.imports||[]}}function v(t){return T(t,C)||T(t,z)}function T(t,e){return t.hasOwnProperty(e)?t[e]:null}function k(t){return t&&(t.hasOwnProperty(E)||t.hasOwnProperty(R))?t[E]:null}const C=c({"\u0275prov":c}),E=c({"\u0275inj":c}),z=c({ngInjectableDef:c}),R=c({ngInjectorDef:c});var P=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let S;function B(t){const e=S;return S=t,e}function M(t,e,i){const n=v(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:i&P.Optional?null:void 0!==e?e:void b(h(t),"Injector")}function K(t){return{toString:t}.toString()}var x=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),H=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const j="undefined"!=typeof globalThis&&globalThis,I="undefined"!=typeof window&&window,L="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,O="undefined"!=typeof global&&global,F=j||O||I||L,D={},q=[],N=c({"\u0275cmp":c}),U=c({"\u0275dir":c}),G=c({"\u0275pipe":c}),$=c({"\u0275mod":c}),V=c({"\u0275loc":c}),W=c({"\u0275fac":c}),Y=c({__NG_ELEMENT_ID__:c});let Z=0;function Q(t){return K(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===x.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||q,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||H.Emulated,id:"c",styles:t.styles||q,_:null,setInput:null,schemas:t.schemas||null,tView:null},n=t.directives,s=t.features,o=t.pipes;return i.id+=Z++,i.inputs=nt(t.inputs,e),i.outputs=nt(t.outputs),s&&s.forEach(t=>t(i)),i.directiveDefs=n?()=>("function"==typeof n?n():n).map(J):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(X):null,i})}function J(t){return rt(t)||function(t){return t[U]||null}(t)}function X(t){return function(t){return t[G]||null}(t)}const tt={};function et(t){return K(()=>{const e={type:t.type,bootstrap:t.bootstrap||q,declarations:t.declarations||q,imports:t.imports||q,exports:t.exports||q,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(tt[t.id]=t.type),e})}function it(t,e){return K(()=>{const i=at(t,!0);i.declarations=e.declarations||q,i.imports=e.imports||q,i.exports=e.exports||q})}function nt(t,e){if(null==t)return D;const i={};for(const n in t)if(t.hasOwnProperty(n)){let s=t[n],o=s;Array.isArray(s)&&(o=s[1],s=s[0]),i[s]=n,e&&(e[s]=o)}return i}const st=Q;function ot(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function rt(t){return t[N]||null}function at(t,e){const i=t[$]||null;if(!i&&!0===e)throw new Error(`Type ${h(t)} does not have '\u0275mod' property.`);return i}const ct=20,ut=10;function ht(t){return Array.isArray(t)&&"object"==typeof t[1]}function lt(t){return Array.isArray(t)&&!0===t[1]}function dt(t){return 0!=(8&t.flags)}function ft(t){return 2==(2&t.flags)}function gt(t){return 1==(1&t.flags)}function pt(t){return null!==t.template}function mt(t,e){return t.hasOwnProperty(W)?t[W]:null}class wt{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function yt(){return bt}function bt(t){return t.type.prototype.ngOnChanges&&(t.setInput=_t),At}function At(){const t=vt(this),e=null==t?void 0:t.current;if(e){const i=t.previous;if(i===D)t.previous=e;else for(let t in e)i[t]=e[t];t.current=null,this.ngOnChanges(e)}}function _t(t,e,i,n){const s=vt(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:D,current:null}),o=s.current||(s.current={}),r=s.previous,a=this.declaredInputs[i],c=r[a];o[a]=new wt(c&&c.currentValue,e,r===D),t[n]=e}function vt(t){return t.__ngSimpleChanges__||null}yt.ngInherit=!0;const Tt="http://www.w3.org/2000/svg";let kt;function Ct(t){kt=t}function Et(){return void 0!==kt?kt:"undefined"!=typeof document?document:void 0}function zt(t){return!!t.listen}const Rt={createRenderer:(t,e)=>Et()};function Pt(t){for(;Array.isArray(t);)t=t[0];return t}function St(t,e){return Pt(e[t])}function Bt(t,e){return Pt(e[t.index])}function Mt(t,e){return t.data[e]}function Kt(t,e){return t[e]}function xt(t,e){const i=e[t];return ht(i)?i:i[0]}function Ht(t){return 4==(4&t[2])}function jt(t){return 128==(128&t[2])}function It(t,e){return null==e?null:t[e]}function Lt(t){t[18]=0}function Ot(t,e){t[5]+=e;let i=t,n=t[3];for(;null!==n&&(1===e&&1===i[5]||-1===e&&0===i[5]);)n[5]+=e,i=n,n=n[3]}const Ft={lFrame:le(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Dt(){return Ft.bindingsEnabled}function qt(){return Ft.lFrame.lView}function Nt(){return Ft.lFrame.tView}function Ut(t){return Ft.lFrame.contextLView=t,t[8]}function Gt(){let t=$t();for(;null!==t&&64===t.type;)t=t.parent;return t}function $t(){return Ft.lFrame.currentTNode}function Vt(t,e){const i=Ft.lFrame;i.currentTNode=t,i.isParent=e}function Wt(){return Ft.lFrame.isParent}function Yt(){Ft.lFrame.isParent=!1}function Zt(){return Ft.isInCheckNoChangesMode}function Qt(t){Ft.isInCheckNoChangesMode=t}function Jt(){const t=Ft.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Xt(){return Ft.lFrame.bindingIndex}function te(){return Ft.lFrame.bindingIndex++}function ee(t){const e=Ft.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function ie(t,e){const i=Ft.lFrame;i.bindingIndex=i.bindingRootIndex=t,ne(e)}function ne(t){Ft.lFrame.currentDirectiveIndex=t}function se(t){const e=Ft.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function oe(){return Ft.lFrame.currentQueryIndex}function re(t){Ft.lFrame.currentQueryIndex=t}function ae(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function ce(t,e,i){if(i&P.SkipSelf){let n=e,s=t;for(;n=n.parent,!(null!==n||i&P.Host||(n=ae(s),null===n)||(s=s[15],10&n.type)););if(null===n)return!1;e=n,t=s}const n=Ft.lFrame=he();return n.currentTNode=e,n.lView=t,!0}function ue(t){const e=he(),i=t[1];Ft.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function he(){const t=Ft.lFrame,e=null===t?null:t.child;return null===e?le(t):e}function le(t){const e={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:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function de(){const t=Ft.lFrame;return Ft.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const fe=de;function ge(){const t=de();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function pe(){return Ft.lFrame.selectedIndex}function me(t){Ft.lFrame.selectedIndex=t}function we(){const t=Ft.lFrame;return Mt(t.tView,t.selectedIndex)}function ye(){Ft.lFrame.currentNamespace=Tt}function be(){Ft.lFrame.currentNamespace=null}function Ae(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[a]<0&&(t[18]+=65536),(r>11>16&&(3&t[2])===e){t[2]+=2048;try{o.call(r)}finally{}}}else try{o.call(r)}finally{}}const Ee=-1;class ze{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Re(t,e,i){const n=zt(t);let s=0;for(;se){r=o-1;break}}}for(;o>16,n=e;for(;i>0;)n=n[15],i--;return n}let je=!0;function Ie(t){const e=je;return je=t,e}let Le=0;function Oe(t,e){const i=De(t,e);if(-1!==i)return i;const n=e[1];n.firstCreatePass&&(t.injectorIndex=e.length,Fe(n.data,t),Fe(e,null),Fe(n.blueprint,null));const s=qe(t,e),o=t.injectorIndex;if(Ke(s)){const t=xe(s),i=He(s,e),n=i[1].data;for(let s=0;s<8;s++)e[o+s]=i[t+s]|n[t+s]}return e[o+8]=s,o}function Fe(t,e){t.push(0,0,0,0,0,0,0,0,e)}function De(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function qe(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let i=0,n=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(n=2===e?t.declTNode:1===e?s[6]:null,null===n)return Ee;if(i++,s=s[15],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return Ee}function Ne(t,e,i){!function(t,e,i){let n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty(Y)&&(n=i[Y]),null==n&&(n=i[Y]=Le++);const s=255&n;e.data[t+(s>>5)]|=1<=0?255&e:We:e}(i);if("function"==typeof o){if(!ce(e,t,n))return n&P.Host?Ue(s,i,n):Ge(e,i,n,s);try{const t=o(n);if(null!=t||n&P.Optional)return t;b(i)}finally{fe()}}else if("number"==typeof o){let s=null,r=De(t,e),a=Ee,c=n&P.Host?e[16][6]:null;for((-1===r||n&P.SkipSelf)&&(a=-1===r?qe(t,e):e[r+8],a!==Ee&&Xe(n,!1)?(s=e[1],r=xe(a),e=He(a,e)):r=-1);-1!==r;){const t=e[1];if(Je(o,r,t.data)){const t=Ye(r,e,i,s,n,c);if(t!==Ve)return t}a=e[r+8],a!==Ee&&Xe(n,e[1].data[r+8]===c)&&Je(o,r,e)?(s=t,r=xe(a),e=He(a,e)):r=-1}}}return Ge(e,i,n,s)}const Ve={};function We(){return new ti(Gt(),qt())}function Ye(t,e,i,n,s,o){const r=e[1],a=r.data[t+8],c=Ze(a,r,i,null==n?ft(a)&&je:n!=r&&0!=(3&a.type),s&P.Host&&o===a);return null!==c?Qe(e,r,c,a):Ve}function Ze(t,e,i,n,s){const o=t.providerIndexes,r=e.data,a=1048575&o,c=t.directiveStart,u=o>>20,h=s?a+u:t.directiveEnd;for(let l=n?a:a+u;l=c&&t.type===i)return l}if(s){const t=r[c];if(t&&pt(t)&&t.type===i)return c}return null}function Qe(t,e,i,n){let s=t[i];const o=e.data;if(s instanceof ze){const r=s;r.resolving&&function(t,e){throw new m("200",`Circular dependency in DI detected for ${t}`)}(y(o[i]));const a=Ie(r.canSeeViewProviders);r.resolving=!0;const c=r.injectImpl?B(r.injectImpl):null;ce(t,n,P.Default);try{s=t[i]=r.factory(void 0,o,t,n),e.firstCreatePass&&i>=n.directiveStart&&function(t,e,i){const{ngOnChanges:n,ngOnInit:s,ngDoCheck:o}=e.type.prototype;if(n){const n=bt(e);(i.preOrderHooks||(i.preOrderHooks=[])).push(t,n),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,n)}s&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-t,s),o&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,o),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,o))}(i,o[i],e)}finally{null!==c&&B(c),Ie(a),r.resolving=!1,fe()}}return s}function Je(t,e,i){return!!(i[e+(t>>5)]&1<{const e=t.prototype.constructor,i=e[W]||ii(e),n=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==n;){const t=s[W]||ii(s);if(t&&t!==i)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function ii(t){return p(t)?()=>{const e=ii(g(t));return e&&e()}:mt(t)}function ni(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const i=t.attrs;if(i){const t=i.length;let n=0;for(;n{const n=function(t){return function(...e){if(t){const i=t(...e);for(const t in i)this[t]=i[t]}}}(e);function s(...t){if(this instanceof s)return n.apply(this,t),this;const e=new s(...t);return i.annotation=e,i;function i(t,i,n){const s=t.hasOwnProperty(si)?t[si]:Object.defineProperty(t,si,{value:[]})[si];for(;s.length<=n;)s.push(null);return(s[n]=s[n]||[]).push(e),t}}return i&&(s.prototype=Object.create(i.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class ri{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=A({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const ai=new ri("AnalyzeForEntryComponents"),ci=Function;function ui(t,e){void 0===e&&(e=t);for(let i=0;iArray.isArray(t)?hi(t,e):e(t))}function li(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function di(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function fi(t,e){const i=[];for(let n=0;n=0?t[1|n]=i:(n=~n,function(t,e,i,n){let s=t.length;if(s==e)t.push(i,n);else if(1===s)t.push(n,t[0]),t[0]=i;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=i,t[e+1]=n}}(t,n,e,i)),n}function pi(t,e){const i=mi(t,e);if(i>=0)return t[1|i]}function mi(t,e){return function(t,e,i){let n=0,s=t.length>>1;for(;s!==n;){const i=n+(s-n>>1),o=t[i<<1];if(e===o)return i<<1;o>e?s=i:n=i+1}return~(s<<1)}(t,e)}const wi={},yi=/\n/gm,bi="__source",Ai=c({provide:String,useValue:c});let _i;function vi(t){const e=_i;return _i=t,e}function Ti(t,e=P.Default){if(void 0===_i)throw new Error("inject() must be called from an injection context");return null===_i?M(t,void 0,e):_i.get(t,e&P.Optional?null:void 0,e)}function ki(t,e=P.Default){return(S||Ti)(g(t),e)}const Ci=ki;function Ei(t){const e=[];for(let i=0;i({token:t})),-1),Pi=zi(oi("Optional"),8),Si=zi(oi("SkipSelf"),4);let Bi,Mi;function Ki(t){var e;return(null===(e=function(){if(void 0===Bi&&(Bi=null,F.trustedTypes))try{Bi=F.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Bi}())||void 0===e?void 0:e.createHTML(t))||t}function xi(t){var e;return(null===(e=function(){if(void 0===Mi&&(Mi=null,F.trustedTypes))try{Mi=F.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Mi}())||void 0===e?void 0:e.createHTML(t))||t}class Hi{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class ji extends Hi{getTypeName(){return"HTML"}}class Ii extends Hi{getTypeName(){return"Style"}}class Li extends Hi{getTypeName(){return"Script"}}class Oi extends Hi{getTypeName(){return"URL"}}class Fi extends Hi{getTypeName(){return"ResourceURL"}}function Di(t){return t instanceof Hi?t.changingThisBreaksApplicationSecurity:t}function qi(t,e){const i=Ni(t);if(null!=i&&i!==e){if("ResourceURL"===i&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${i} (see https://g.co/ng/security#xss)`)}return i===e}function Ni(t){return t instanceof Hi&&t.getTypeName()||null}function Ui(t){return new ji(t)}function Gi(t){return new Ii(t)}function $i(t){return new Li(t)}function Vi(t){return new Oi(t)}function Wi(t){return new Fi(t)}class Yi{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Ki(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class Zi{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Ki(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Ki(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let n=e.length-1;0Xi(t.trim())).join(", ")),this.buf.push(" ",e,'="',pn(r),'"')}var n;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();an.hasOwnProperty(e)&&!nn.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(pn(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const fn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,gn=/([^\#-~ |!])/g;function pn(t){return t.replace(/&/g,"&").replace(fn,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(gn,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let mn;function wn(t,e){let i=null;try{mn=mn||function(t){const e=new Zi(t);return function(){try{return!!(new window.DOMParser).parseFromString(Ki(""),"text/html")}catch(t){return!1}}()?new Yi(e):e}(t);let n=e?String(e):"";i=mn.getInertBodyElement(n);let s=5,o=n;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,n=o,o=i.innerHTML,i=mn.getInertBodyElement(n)}while(n!==o);return Ki((new dn).sanitizeChildren(yn(i)||i))}finally{if(i){const t=yn(i)||i;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function yn(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var bn=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function An(t){const e=vn();return e?xi(e.sanitize(bn.HTML,t)||""):qi(t,"HTML")?xi(Di(t)):wn(Et(),w(t))}function _n(t){const e=vn();return e?e.sanitize(bn.URL,t)||"":qi(t,"URL")?Di(t):Xi(w(t))}function vn(){const t=qt();return t&&t[12]}function Tn(t,e){t.__ngContext__=e}function kn(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Cn(t){return t.ngDebugContext}function En(t){return t.ngOriginalError}function zn(t,...e){t.error(...e)}class Rn{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=this._findContext(t),n=function(t){return t.ngErrorLogger||zn}(t);n(this._console,"ERROR",t),e&&n(this._console,"ORIGINAL ERROR",e),i&&n(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?Cn(t)?Cn(t):this._findContext(En(t)):null}_findOriginalError(t){let e=En(t);for(;e&&En(e);)e=En(e);return e}}const Pn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(F))();function Sn(t){return t.ownerDocument.body}function Bn(t){return t instanceof Function?t():t}var Mn=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function Kn(t,e){return(void 0)(t,e)}function xn(t){const e=t[3];return lt(e)?e[3]:e}function Hn(t){return In(t[13])}function jn(t){return In(t[4])}function In(t){for(;null!==t&&!lt(t);)t=t[4];return t}function Ln(t,e,i,n,s){if(null!=n){let o,r=!1;lt(n)?o=n:ht(n)&&(r=!0,n=n[0]);const a=Pt(n);0===t&&null!==i?null==s?$n(e,i,a):Gn(e,i,a,s||null,!0):1===t&&null!==i?Gn(e,i,a,s||null,!0):2===t?function(t,e,i){const n=Wn(t,e);n&&function(t,e,i,n){zt(t)?t.removeChild(e,i,n):e.removeChild(i)}(t,n,e,i)}(e,a,r):3===t&&e.destroyNode(a),null!=o&&function(t,e,i,n,s){const o=i[7];o!==Pt(i)&&Ln(e,t,n,o,s);for(let r=ut;r0&&(t[i-1][4]=n[4]);const r=di(t,ut+e);is(n[1],s=n,s[11],2,null,null),s[0]=null,s[6]=null;const a=r[19];null!==a&&a.detachView(r[1]),n[3]=null,n[4]=null,n[2]&=-129}var s;return n}function qn(t,e){if(!(256&e[2])){const i=e[11];zt(i)&&i.destroyNode&&is(t,e,i,3,null,null),function(t){let e=t[13];if(!e)return Nn(t[1],t);for(;e;){let i=null;if(ht(e))i=e[13];else{const t=e[10];t&&(i=t)}if(!i){for(;e&&!e[4]&&e!==t;)ht(e)&&Nn(e[1],e),e=e[3];null===e&&(e=t),ht(e)&&Nn(e[1],e),i=e&&e[4]}e=i}}(e)}}function Nn(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let i;if(null!=t&&null!=(i=t.destroyHooks))for(let n=0;n=0?n[s=c]():n[s=-c].unsubscribe(),o+=2}else{const t=n[s=i[o+1]];i[o].call(t)}if(null!==n){for(let t=s+1;to?"":s[h+1].toLowerCase();const e=8&n?t:null;if(e&&-1!==rs(e,u,0)||2&n&&u!==t){if(ds(n))return!1;r=!0}}}}else{if(!r&&!ds(n)&&!ds(c))return!1;if(r&&ds(c))continue;r=!1,n=c|1&n}}return ds(n)||r}function ds(t){return 0==(1&t)}function fs(t,e,i,n){if(null===e)return-1;let s=0;if(n||!i){let i=!1;for(;s-1)for(i++;i0?'="'+e+'"':"")+"]"}else 8&n?s+="."+r:4&n&&(s+=" "+r);else""===s||ds(r)||(e+=ms(o,s),s=""),n=r,o=o||!ds(n);i++}return""!==s&&(e+=ms(o,s)),e}const ys={};function bs(t){As(Nt(),qt(),pe()+t,Zt())}function As(t,e,i,n){if(!n)if(3==(3&e[2])){const n=t.preOrderCheckHooks;null!==n&&_e(e,n,i)}else{const n=t.preOrderHooks;null!==n&&ve(e,n,0,i)}me(i)}function _s(t,e){return t<<17|e<<2}function vs(t){return t>>17&32767}function Ts(t){return 2|t}function ks(t){return(131068&t)>>2}function Cs(t,e){return-131069&t|e<<2}function Es(t){return 1|t}function zs(t,e){const i=t.contentQueries;if(null!==i)for(let n=0;nct&&As(t,e,ct,Zt()),i(n,s)}finally{me(o)}}function Hs(t,e,i){if(dt(e)){const n=e.directiveEnd;for(let s=e.directiveStart;s0;){const i=t[--e];if("number"==typeof i&&i<0)return i}return 0})(i)!=o&&i.push(o),i.push(n,s,r)}}function Gs(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function $s(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Vs(t,e,i){if(i){if(e.exportAs)for(let n=0;n0&&eo(i)}}function eo(t){for(let i=Hn(t);null!==i;i=jn(i))for(let t=ut;t0&&eo(e)}const e=t[1].components;if(null!==e)for(let i=0;i0&&eo(n)}}function io(t,e){const i=xt(e,t),n=i[1];!function(t,e){for(let i=e.length;iPromise.resolve(null))();function uo(t){return t[7]||(t[7]=[])}function ho(t){return t.cleanup||(t.cleanup=[])}function lo(t,e,i){return(null===t||pt(t))&&(i=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(i[e.index])),i[11]}function fo(t,e){const i=t[9],n=i?i.get(Rn,null):null;n&&n.handleError(e)}function go(t,e,i,n,s){for(let o=0;othis.processProvider(i,t,e)),hi([t],t=>this.processInjectorType(t,[],s)),this.records.set(wo,Ro(void 0,this));const o=this.records.get(bo);this.scope=null!=o?o.value:null,this.source=n||("object"==typeof t?null:h(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=wi,i=P.Default){this.assertNotDestroyed();const n=vi(this);try{if(!(i&P.SkipSelf)){let e=this.records.get(t);if(void 0===e){const i=("function"==typeof(s=t)||"object"==typeof s&&s instanceof ri)&&v(t);e=i&&this.injectableDefInScope(i)?Ro(Eo(t),Ao):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(i&P.Self?To():this.parent).get(t,e=i&P.Optional&&e===wi?null:e)}catch(o){if("NullInjectorError"===o.name){if((o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(h(t)),n)throw o;return function(t,e,i,n){const s=t.ngTempTokenPath;throw e[bi]&&s.unshift(e[bi]),t.message=function(t,e,i,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=h(e);if(Array.isArray(e))s=e.map(h).join(" -> ");else if("object"==typeof e){let t=[];for(let i in e)if(e.hasOwnProperty(i)){let n=e[i];t.push(i+":"+("string"==typeof n?JSON.stringify(n):h(n)))}s=`{${t.join(", ")}}`}return`${i}${n?"("+n+")":""}[${s}]: ${t.replace(yi,"\n ")}`}("\n"+t.message,s,i,n),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(o,t,"R3InjectorError",this.source)}throw o}finally{vi(n)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,i)=>t.push(h(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,i){if(!(t=g(t)))return!1;let n=k(t);const s=null==n&&t.ngModule||void 0,o=void 0===s?t:s,r=-1!==i.indexOf(o);if(void 0!==s&&(n=k(s)),null==n)return!1;if(null!=n.imports&&!r){let t;i.push(o);try{hi(n.imports,n=>{this.processInjectorType(n,e,i)&&(void 0===t&&(t=[]),t.push(n))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,i,n||q))}}this.injectorDefTypes.add(o);const a=mt(o)||(()=>new o);this.records.set(o,Ro(a,Ao));const c=n.providers;if(null!=c&&!r){const e=t;hi(c,t=>this.processProvider(t,e,c))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,i){let n=So(t=g(t))?t:g(t&&t.provide);const s=function(t,e,i){return Po(t)?Ro(void 0,t.useValue):Ro(zo(t),Ao)}(t);if(So(t)||!0!==t.multi)this.records.get(n);else{let e=this.records.get(n);e||(e=Ro(void 0,Ao,!0),e.factory=()=>Ei(e.multi),this.records.set(n,e)),n=t,e.multi.push(t)}this.records.set(n,s)}hydrate(t,e){var i;return e.value===Ao&&(e.value=_o,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(i=e.value)&&"object"==typeof i&&"function"==typeof i.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=g(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Eo(t){const e=v(t),i=null!==e?e.factory:mt(t);if(null!==i)return i;if(t instanceof ri)throw new Error(`Token ${h(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const i=fi(e,"?");throw new Error(`Can't resolve all parameters for ${h(t)}: (${i.join(", ")}).`)}const i=function(t){const e=t&&(t[C]||t[z]);if(e){const i=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${i}" 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 "${i}" class.`),e}return null}(t);return null!==i?()=>i.factory(t):()=>new t}(t);throw new Error("unreachable")}function zo(t,e,i){let n;if(So(t)){const e=g(t);return mt(e)||Eo(e)}if(Po(t))n=()=>g(t.useValue);else if((s=t)&&s.useFactory)n=()=>t.useFactory(...Ei(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))n=()=>ki(g(t.useExisting));else{const e=g(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return mt(e)||Eo(e);n=()=>new e(...Ei(t.deps))}var s;return n}function Ro(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function Po(t){return null!==t&&"object"==typeof t&&Ai in t}function So(t){return"function"==typeof t}const Bo=function(t,e,i){return function(t,e=null,i=null,n){const s=ko(t,e,i,n);return s._resolveInjectorDefTypes(),s}({name:i},e,t,i)};let Mo=(()=>{class t{static create(t,e){return Array.isArray(t)?Bo(t,e,""):Bo(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=wi,t.NULL=new yo,t.\u0275prov=A({token:t,providedIn:"any",factory:()=>ki(wo)}),t.__NG_ELEMENT_ID__=-1,t})();function Ko(t,e){Ae(kn(t)[1],Gt())}function xo(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,i=!0;const n=[t];for(;e;){let s;if(pt(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(i){n.push(s);const e=t;e.inputs=Ho(t.inputs),e.declaredInputs=Ho(t.declaredInputs),e.outputs=Ho(t.outputs);const i=s.hostBindings;i&&Lo(t,i);const o=s.viewQuery,r=s.contentQueries;if(o&&jo(t,o),r&&Io(t,r),u(t.inputs,s.inputs),u(t.declaredInputs,s.declaredInputs),u(t.outputs,s.outputs),pt(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let n=0;n=0;n--){const s=t[n];s.hostVars=e+=s.hostVars,s.hostAttrs=Be(s.hostAttrs,i=Be(i,s.hostAttrs))}}(n)}function Ho(t){return t===D?{}:t===q?[]:t}function jo(t,e){const i=t.viewQuery;t.viewQuery=i?(t,n)=>{e(t,n),i(t,n)}:e}function Io(t,e){const i=t.contentQueries;t.contentQueries=i?(t,n,s)=>{e(t,n,s),i(t,n,s)}:e}function Lo(t,e){const i=t.hostBindings;t.hostBindings=i?(t,n)=>{e(t,n),i(t,n)}:e}let Oo=null;function Fo(){if(!Oo){const t=F.Symbol;if(t&&t.iterator)Oo=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Pt(t[n.index])):n.index;if(zt(i)){let r=null;if(!a&&c&&(r=function(t,e,i,n){const s=t.cleanup;if(null!=s)for(let o=0;oi?t[i]:null}"string"==typeof t&&(o+=2)}return null}(t,e,s,n.index)),null!==r)(r.__ngLastListenerFn__||r).__ngNextListenerFn__=o,r.__ngLastListenerFn__=o,l=!1;else{o=gr(n,e,0,o,!1);const t=i.listen(f,s,o);h.push(o,t),u&&u.push(s,p,g,g+1)}}else o=gr(n,e,0,o,!0),f.addEventListener(s,o,r),h.push(o),u&&u.push(s,p,g,r)}else o=gr(n,e,0,o,!1);const d=n.outputs;let f;if(l&&null!==d&&(f=d[s])){const t=f.length;if(t)for(let i=0;i0;)e=e[15],t--;return e}(t,Ft.lFrame.contextLView))[8]}(t)}function mr(t,e){let i=null;const n=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s=0}const Tr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function kr(t){return t.substring(Tr.key,Tr.keyEnd)}function Cr(t,e){const i=Tr.textEnd;return i===e?-1:(e=Tr.keyEnd=function(t,e,i){for(;e32;)e++;return e}(t,Tr.key=e,i),Er(t,e,i))}function Er(t,e,i){for(;e=0;i=Cr(e,i))gi(t,kr(e),!0)}function Sr(t,e,i,n){const s=qt(),o=Nt(),r=ee(2);o.firstUpdatePass&&Mr(o,t,r,n),e!==ys&&Go(s,r,e)&&Hr(o,o.data[pe()],s,s[11],t,s[r+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=h(Di(t)))),t}(e,i),n,r)}function Br(t,e){return e>=t.expandoStartIndex}function Mr(t,e,i,n){const s=t.data;if(null===s[i+1]){const o=s[pe()],r=Br(t,i);Lr(o,n)&&null===e&&!r&&(e=!1),e=function(t,e,i,n){const s=se(t);let o=n?e.residualClasses:e.residualStyles;if(null===s)0===(n?e.classBindings:e.styleBindings)&&(i=xr(i=Kr(null,t,e,i,n),e.attrs,n),o=null);else{const r=e.directiveStylingLast;if(-1===r||t[r]!==s)if(i=Kr(s,t,e,i,n),null===o){let i=function(t,e,i){const n=i?e.classBindings:e.styleBindings;if(0!==ks(n))return t[vs(n)]}(t,e,n);void 0!==i&&Array.isArray(i)&&(i=Kr(null,t,e,i[1],n),i=xr(i,e.attrs,n),function(t,e,i,n){t[vs(i?e.classBindings:e.styleBindings)]=n}(t,e,n,i))}else o=function(t,e,i){let n;const s=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0)&&(h=!0)}else u=i;if(s)if(0!==c){const e=vs(t[a+1]);t[n+1]=_s(e,a),0!==e&&(t[e+1]=Cs(t[e+1],n)),t[a+1]=131071&t[a+1]|n<<17}else t[n+1]=_s(a,0),0!==a&&(t[a+1]=Cs(t[a+1],n)),a=n;else t[n+1]=_s(c,0),0===a?a=n:t[c+1]=Cs(t[c+1],n),c=n;h&&(t[n+1]=Ts(t[n+1])),_r(t,u,n,!0),_r(t,u,n,!1),function(t,e,i,n,s){const o=s?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&mi(o,e)>=0&&(i[n+1]=Es(i[n+1]))}(e,u,t,n,o),r=_s(a,c),o?e.classBindings=r:e.styleBindings=r}(s,o,e,i,r,n)}}function Kr(t,e,i,n,s){let o=null;const r=i.directiveEnd;let a=i.directiveStylingLast;for(-1===a?a=i.directiveStart:a++;a0;){const e=t[s],o=Array.isArray(e),c=o?e[1]:e,u=null===c;let h=i[s+1];h===ys&&(h=u?q:void 0);let l=u?pi(h,n):c===n?h:void 0;if(o&&!Ir(l)&&(l=pi(e,n)),Ir(l)&&(a=l,r))return a;const d=t[s+1];s=r?vs(d):ks(d)}if(null!==e){let t=o?e.residualClasses:e.residualStyles;null!=t&&(a=pi(t,n))}return a}function Ir(t){return void 0!==t}function Lr(t,e){return 0!=(t.flags&(e?16:32))}function Or(t,e=""){const i=qt(),n=Nt(),s=t+ct,o=n.firstCreatePass?Ps(n,s,1,e,null):n.data[s],r=i[s]=function(t,e){return zt(t)?t.createText(e):t.createTextNode(e)}(i[11],e);Qn(n,i,r,o),Vt(o,!1)}function Fr(t){return Dr("",t,""),Fr}function Dr(t,e,i){const n=qt(),s=Wo(n,t,e,i);return s!==ys&&po(n,pe(),s),Dr}function qr(t,e,i,n,s){const o=qt(),r=function(t,e,i,n,s,o){const r=$o(t,Xt(),i,s);return ee(2),r?e+w(i)+n+w(s)+o:ys}(o,t,e,i,n,s);return r!==ys&&po(o,pe(),r),qr}function Nr(t,e,i){!function(t,e,i,n){const s=Nt(),o=ee(2);s.firstUpdatePass&&Mr(s,null,o,n);const r=qt();if(i!==ys&&Go(r,o,i)){const a=s.data[pe()];if(Lr(a,n)&&!Br(s,o)){let t=a.classesWithoutHost;null!==t&&(i=l(t,i||"")),Xo(s,a,r,i,n)}else!function(t,e,i,n,s,o,r,a){s===ys&&(s=q);let c=0,u=0,h=0 null != ${e} <=Actual]`)}(i,e),"string"==typeof t&&(ta=t.toLowerCase().replace(/_/g,"-"))}function ia(t,e,i,n,s){if(t=g(t),Array.isArray(t))for(let o=0;o>20;if(So(t)||!t.multi){const n=new ze(c,s,Qo),f=oa(a,e,s?h:h+d,l);-1===f?(Ne(Oe(u,r),o,a),na(o,t,e.length),e.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),i.push(n),r.push(n)):(i[f]=n,r[f]=n)}else{const f=oa(a,e,h+d,l),g=oa(a,e,h,h+d),p=f>=0&&i[f],m=g>=0&&i[g];if(s&&!m||!s&&!p){Ne(Oe(u,r),o,a);const h=function(t,e,i,n,s){const o=new ze(t,i,Qo);return o.multi=[],o.index=e,o.componentProviders=0,sa(o,s,n&&!i),o}(s?aa:ra,i.length,s,n,c);!s&&m&&(i[g].providerFactory=h),na(o,t,e.length,0),e.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),i.push(h),r.push(h)}else na(o,t,f>-1?f:g,sa(i[s?g:f],c,!s&&n));!s&&n&&m&&i[g].componentProviders++}}}function na(t,e,i,n){const s=So(e);if(s||e.useClass){const o=(e.useClass||e).prototype.ngOnDestroy;if(o){const r=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=r.indexOf(i);-1===t?r.push(i,[n,o]):r[t+1].push(n,o)}else r.push(i,o)}}}function sa(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function oa(t,e,i,n){for(let s=i;s{i.providersResolver=(i,n)=>function(t,e,i){const n=Nt();if(n.firstCreatePass){const s=pt(t);ia(i,n.data,n.blueprint,s,!0),ia(e,n.data,n.blueprint,s,!1)}}(i,n?n(t):t,e)}}class ha{}class la{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${h(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let da=(()=>{class t{}return t.NULL=new la,t})();function fa(...t){}function ga(t,e){return new ma(Bt(t,e))}const pa=function(){return ga(Gt(),qt())};let ma=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=pa,t})();function wa(t){return t instanceof ma?t.nativeElement:t}class ya{}let ba=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Aa(),t})();const Aa=function(){const t=qt(),e=xt(Gt().index,t);return function(t){return t[11]}(ht(e)?e:t)};let _a=(()=>{class t{}return t.\u0275prov=A({token:t,providedIn:"root",factory:()=>null}),t})();class va{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ta=new va("12.0.5");class ka{constructor(){}supports(t){return qo(t)}create(t){return new Ea(t)}}const Ca=(t,e)=>e;class Ea{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Ca}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,n=0,s=null;for(;e||i;){const o=!i||e&&e.currentIndex{n=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,n)?(o&&(s=this._verifyReinsertion(s,t,n,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,n,e),o=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,n){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,n)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,n))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,n)):t=this._addAfter(new za(e,i),s,n),t}_verifyReinsertion(t,e,i,n){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,n):t.currentIndex!=n&&(t.currentIndex=n,this._addToMoves(t,n)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const n=t._prevRemoved,s=t._nextRemoved;return null===n?this._removalsHead=s:n._nextRemoved=s,null===s?this._removalsTail=n:s._prevRemoved=n,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const n=null===e?this._itHead:e._next;return t._next=n,t._prev=e,null===n?this._itTail=t:n._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Pa),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Pa),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class za{constructor(t,e){this.item=t,this.trackById=e,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 Ra{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class Pa{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new Ra,this.map.set(e,i)),i.add(t)}get(t,e){const i=this.map.get(t);return i?i.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Sa(t,e,i){const n=t.previousIndex;if(null===n)return n;let s=0;return i&&n{if(e&&e.key===i)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const n=this._getOrCreateRecordForKey(i,t);e=this._insertBeforeOrAppend(e,n)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,e);const n=i._prev,s=i._next;return n&&(n._next=s),s&&(s._prev=n),i._next=null,i._prev=null,i}const i=new Ka(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class Ka{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function xa(){return new Ha([new ka])}let Ha=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(null!=i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||xa()),deps:[[t,new Si,new Pi]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${i=t,i.name||typeof i}'`);var i}}return t.\u0275prov=A({token:t,providedIn:"root",factory:xa}),t})();function ja(){return new Ia([new Ba])}let Ia=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||ja()),deps:[[t,new Si,new Pi]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=A({token:t,providedIn:"root",factory:ja}),t})();function La(t,e,i,n,s=!1){for(;null!==i;){const o=e[i.index];if(null!==o&&n.push(Pt(o)),lt(o))for(let t=ut;t-1&&(Dn(t,i),di(e,i))}this._attachedToViewContainer=!1}qn(this._lView[1],this._lView)}onDestroy(t){Fs(this._lView[1],this._lView,null,t)}markForCheck(){so(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){oo(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,i){Qt(!0);try{oo(t,e,i)}finally{Qt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,is(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Fa extends Oa{constructor(t){super(t),this._view=t}detectChanges(){ro(this._view)}checkNoChanges(){!function(t){Qt(!0);try{ro(t)}finally{Qt(!1)}}(this._view)}get context(){return null}}const Da=function(t){return function(t,e,i){if(ft(t)&&!i){const i=xt(t.index,e);return new Oa(i,i)}return 47&t.type?new Oa(e[16],e):null}(Gt(),qt(),16==(16&t))};let qa=(()=>{class t{}return t.__NG_ELEMENT_ID__=Da,t})();const Na=[new Ba],Ua=new Ha([new ka]),Ga=new Ia(Na),$a=function(){return Za(Gt(),qt())};let Va=(()=>{class t{}return t.__NG_ELEMENT_ID__=$a,t})();const Wa=Va,Ya=class extends Wa{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=Rs(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const n=this._declarationLView[19];return null!==n&&(i[19]=n.createEmbeddedView(e)),Bs(e,i,t),new Oa(i)}};function Za(t,e){return 4&t.type?new Ya(e,t,ga(t,e)):null}class Qa{}class Ja{}const Xa=function(){return oc(Gt(),qt())};let tc=(()=>{class t{}return t.__NG_ELEMENT_ID__=Xa,t})();const ec=tc,ic=class extends ec{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return ga(this._hostTNode,this._hostLView)}get injector(){return new ti(this._hostTNode,this._hostLView)}get parentInjector(){const t=qe(this._hostTNode,this._hostLView);if(Ke(t)){const e=He(t,this._hostLView),i=xe(t);return new ti(e[1].data[i+8],e)}return new ti(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=nc(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-ut}createEmbeddedView(t,e,i){const n=t.createEmbeddedView(e||{});return this.insert(n,i),n}createComponent(t,e,i,n,s){const o=i||this.parentInjector;if(!s&&null==t.ngModule&&o){const t=o.get(Qa,null);t&&(s=t)}const r=t.create(o,n,void 0,s);return this.insert(r.hostView,e),r}insert(t,e){const i=t._lView,n=i[1];if(lt(i[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=i[3],n=new ic(e,e[6],e[3]);n.detach(n.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function(t,e,i,n){const s=ut+n,o=i.length;n>0&&(i[s-1][4]=e),nPn});class hc extends ha{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(ws).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return cc(this.componentDef.inputs)}get outputs(){return cc(this.componentDef.outputs)}create(t,e,i,n){const s=(n=n||this.ngModule)?function(t,e){return{get:(i,n,s)=>{const o=t.get(i,rc,s);return o!==rc||n===rc?o:e.get(i,n,s)}}}(t,n.injector):t,o=s.get(ya,Rt),r=s.get(_a,null),a=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function(t,e,i){if(zt(t))return t.selectRootElement(e,i===H.ShadowDom);let n="string"==typeof e?t.querySelector(e):e;return n.textContent="",n}(a,i,this.componentDef.encapsulation):On(o.createRenderer(null,this.componentDef),c,function(t){const e=t.toLowerCase();return"svg"===e?Tt:"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),h=this.componentDef.onPush?576:528,l={components:[],scheduler:Pn,clean:co,playerHandler:null,flags:0},d=Os(0,null,null,1,0,null,null,null,null,null),f=Rs(null,d,l,h,null,null,o,a,r,s);let g,p;ue(f);try{const t=function(t,e,i,n,s,o){const r=i[1];i[20]=t;const a=Ps(r,20,2,"#host",null),c=a.mergedAttrs=e.hostAttrs;null!==c&&(mo(a,c,!0),null!==t&&(Re(s,t,c),null!==a.classes&&os(s,t,a.classes),null!==a.styles&&ss(s,t,a.styles)));const u=n.createRenderer(t,e),h=Rs(i,Ls(e),null,e.onPush?64:16,i[20],a,n,u,null,null);return r.firstCreatePass&&(Ne(Oe(a,i),r,e.type),$s(r,a),Ws(a,i.length,1)),no(i,h),i[20]=h}(u,this.componentDef,f,o,a);if(u)if(i)Re(a,u,["ng-version",Ta.full]);else{const{attrs:t,classes:e}=function(t){const e=[],i=[];let n=1,s=2;for(;n0&&os(a,u,e.join(" "))}if(p=Mt(d,ct),void 0!==e){const t=p.projection=[];for(let i=0;it(r,e)),e.contentQueries){const t=Gt();e.contentQueries(1,r,t.directiveStart)}const a=Gt();return!o.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(me(a.index),Us(i[1],a,0,a.directiveStart,a.directiveEnd,e),Gs(e,r)),r}(t,this.componentDef,f,l,[Ko]),Bs(d,f,null)}finally{ge()}return new lc(this.componentType,g,ga(p,f),f,p)}}class lc extends class{}{constructor(t,e,i,n,s){super(),this.location=i,this._rootLView=n,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new Fa(n),this.componentType=t}get injector(){return new ti(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const dc=new Map;class fc extends Qa{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new ac(this);const i=at(t),n=t[V]||null;n&&ea(n),this._bootstrapComponents=Bn(i.bootstrap),this._r3Injector=ko(t,e,[{provide:Qa,useValue:this},{provide:da,useValue:this.componentFactoryResolver}],h(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Mo.THROW_IF_NOT_FOUND,i=P.Default){return t===Mo||t===Qa||t===wo?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class gc extends Ja{constructor(t){super(),this.moduleType=t,null!==at(t)&&function(t){const e=new Set;!function t(i){const n=at(i,!0),s=n.id;null!==s&&(function(t,e,i){if(e&&e!==i)throw new Error(`Duplicate module registered for ${t} - ${h(e)} vs ${h(e.name)}`)}(s,dc.get(s),i),dc.set(s,i));const o=Bn(n.imports);for(const r of o)e.has(r)||(e.add(r),t(r))}(t)}(t)}create(t){return new fc(this.moduleType,t)}}function pc(t,e,i,n){return yc(qt(),Jt(),t,e,i,n)}function mc(t,e,i,n,s){return bc(qt(),Jt(),t,e,i,n,s)}function wc(t,e){const i=t[e];return i===ys?void 0:i}function yc(t,e,i,n,s,o){const r=e+i;return Go(t,r,s)?Uo(t,r+1,o?n.call(o,s):n(s)):wc(t,r+1)}function bc(t,e,i,n,s,o,r){const a=e+i;return $o(t,a,s,o)?Uo(t,a+2,r?n.call(r,s,o):n(s,o)):wc(t,a+2)}function Ac(t,e){const i=Nt();let n;const s=t+ct;i.firstCreatePass?(n=function(t,e){if(e)for(let i=e.length-1;i>=0;i--){const n=e[i];if(t===n.name)return n}throw new m("302",`The pipe '${t}' could not be found!`)}(e,i.pipeRegistry),i.data[s]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(s,n.onDestroy)):n=i.data[s];const o=n.factory||(n.factory=mt(n.type)),r=B(Qo);try{const t=Ie(!1),e=o();return Ie(t),function(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}(i,qt(),s,e),e}finally{B(r)}}function _c(t,e,i){const n=t+ct,s=qt(),o=Kt(s,n);return Cc(s,kc(s,n)?yc(s,Jt(),e,o.transform,i,o):o.transform(i))}function vc(t,e,i,n){const s=t+ct,o=qt(),r=Kt(o,s);return Cc(o,kc(o,s)?bc(o,Jt(),e,r.transform,i,n,r):r.transform(i,n))}function Tc(t,e,i,n,s){const o=t+ct,r=qt(),a=Kt(r,o);return Cc(r,kc(r,o)?function(t,e,i,n,s,o,r,a){const c=e+i;return function(t,e,i,n,s){const o=$o(t,e,i,n);return Go(t,e+2,s)||o}(t,c,s,o,r)?Uo(t,c+3,a?n.call(a,s,o,r):n(s,o,r)):wc(t,c+3)}(r,Jt(),e,a.transform,i,n,s,a):a.transform(i,n,s))}function kc(t,e){return t[1].data[e].pure}function Cc(t,e){return Do.isWrapped(e)&&(e=Do.unwrap(e),t[Xt()]=ys),e}function Ec(t){return e=>{setTimeout(t,void 0,e)}}const zc=class extends n.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var n,o,r;let a=t,c=e||(()=>null),u=i;if(t&&"object"==typeof t){const e=t;a=null===(n=e.next)||void 0===n?void 0:n.bind(e),c=null===(o=e.error)||void 0===o?void 0:o.bind(e),u=null===(r=e.complete)||void 0===r?void 0:r.bind(e)}this.__isAsync&&(c=Ec(c),a&&(a=Ec(a)),u&&(u=Ec(u)));const h=super.subscribe({next:a,error:c,complete:u});return t instanceof s.w&&t.add(h),h}};function Rc(){return this._results[Fo()]()}class Pc{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Fo(),i=Pc.prototype;i[e]||(i[e]=Rc)}get changes(){return this._changes||(this._changes=new zc)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const n=ui(t);(this._changesDetected=!function(t,e,i){if(t.length!==e.length)return!1;for(let n=0;n0)n.push(r[t/2]);else{const s=o[t+1],r=e[-i];for(let t=ut;t{class t{constructor(t){this.appInits=t,this.resolve=fa,this.reject=fa,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{e.subscribe({complete:t,error:i})});t.push(i)}}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(ki(Vc,8))},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t})();const Yc=new ri("AppId"),Zc={provide:Yc,useFactory:function(){return`${Qc()}${Qc()}${Qc()}`},deps:[]};function Qc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Jc=new ri("Platform Initializer"),Xc=new ri("Platform ID"),tu=new ri("appBootstrapListener");let eu=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t})();const iu=new ri("LocaleId"),nu=new ri("DefaultCurrencyCode");class su{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const ou=function(t){return new gc(t)},ru=ou,au=function(t){return Promise.resolve(ou(t))},cu=function(t){const e=ou(t),i=Bn(at(t).declarations).reduce((t,e)=>{const i=rt(e);return i&&t.push(new hc(i)),t},[]);return new su(e,i)},uu=cu,hu=function(t){return Promise.resolve(cu(t))};let lu=(()=>{class t{constructor(){this.compileModuleSync=ru,this.compileModuleAsync=au,this.compileModuleAndAllComponentsSync=uu,this.compileModuleAndAllComponentsAsync=hu}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t})();const du=(()=>Promise.resolve(0))();function fu(t){"undefined"==typeof Zone?du.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class gu{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new zc(!1),this.onMicrotaskEmpty=new zc(!1),this.onStable=new zc(!1),this.onError=new zc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=!i&&e,n.shouldCoalesceRunChangeDetection=i,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let t=F.requestAnimationFrame,e=F.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(F,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,wu(t),t.isCheckStableRunning=!0,mu(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),wu(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,s,o,r,a)=>{try{return yu(t),i.invokeTask(s,o,r,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&e(),bu(t)}},onInvoke:(i,n,s,o,r,a,c)=>{try{return yu(t),i.invoke(s,o,r,a,c)}finally{t.shouldCoalesceRunChangeDetection&&e(),bu(t)}},onHasTask:(e,i,n,s)=>{e.hasTask(n,s),i===n&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,wu(t),mu(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,n,s)=>(e.handleError(n,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!gu.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(gu.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,n){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+n,t,pu,fa,fa);try{return s.runTask(o,e,i)}finally{s.cancelTask(o)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const pu={};function mu(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function wu(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function yu(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function bu(t){t._nesting--,mu(t)}class Au{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new zc,this.onMicrotaskEmpty=new zc,this.onStable=new zc,this.onError=new zc}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,n){return t.apply(e,i)}}let _u=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{gu.assertNotInAngularZone(),fu(()=>{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())fu(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,i){let n=-1;e&&e>0&&(n=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==n),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:n,updateCb:i})}whenStable(t,e,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,e,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,i){return[]}}return t.\u0275fac=function(e){return new(e||t)(ki(gu))},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t})(),vu=(()=>{class t{constructor(){this._applications=new Map,Eu.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Eu.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t})();class Tu{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}function ku(t){Eu=t}let Cu,Eu=new Tu,zu=!0,Ru=!1;function Pu(){return Ru=!0,zu}function Su(){if(Ru)throw new Error("Cannot enable prod mode after platform setup.");zu=!1}const Bu=new ri("AllowMultipleToken");class Mu{constructor(t,e){this.name=t,this.token=e}}function Ku(t,e,i=[]){const n=`Platform: ${e}`,s=new ri(n);return(e=[])=>{let o=xu();if(!o||o.injector.get(Bu,!1))if(t)t(i.concat(e).concat({provide:s,useValue:!0}));else{const t=i.concat(e).concat({provide:s,useValue:!0},{provide:bo,useValue:"platform"});!function(t){if(Cu&&!Cu.destroyed&&!Cu.injector.get(Bu,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Cu=t.get(Hu);const e=t.get(Jc,null);e&&e.forEach(t=>t())}(Mo.create({providers:t,name:n}))}return function(t){const e=xu();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function xu(){return Cu&&!Cu.destroyed?Cu:null}let Hu=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const i=function(t,e){let i;return i="noop"===t?new Au:("zone.js"===t?void 0:t)||new gu({enableLongStackTrace:Pu(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),i}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),n=[{provide:gu,useValue:i}];return i.run(()=>{const e=Mo.create({providers:n,parent:this.injector,name:t.moduleType.name}),s=t.create(e),o=s.injector.get(Rn,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.runOutsideAngular(()=>{const t=i.onError.subscribe({next:t=>{o.handleError(t)}});s.onDestroy(()=>{Lu(this._modules,s),t.unsubscribe()})}),function(t,e,i){try{const n=i();return ar(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}(o,i,()=>{const t=s.injector.get(Wc);return t.runInitializers(),t.donePromise.then(()=>(ea(s.injector.get(iu,Xr)||Xr),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const i=ju({},e);return function(t,e,i){const n=new gc(i);return Promise.resolve(n)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,i))}_moduleDoBootstrap(t){const e=t.injector.get(Iu);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${h(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(ki(Mo))},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t})();function ju(t,e){return Array.isArray(e)?e.reduce(ju,t):Object.assign(Object.assign({},t),e)}let Iu=(()=>{class t{constructor(t,e,i,n,s){this._zone=t,this._injector=e,this._exceptionHandler=i,this._componentFactoryResolver=n,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const c=new o.y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),u=new o.y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{gu.assertNotInAngularZone(),fu(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const i=this._zone.onUnstable.subscribe(()=>{gu.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),i.unsubscribe()}});this.isStable=(0,r.T)(c,u.pipe((0,a.B)()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let i;i=t instanceof ha?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(i.componentType);const n=i.isBoundToModule?void 0:this._injector.get(Qa),s=i.create(Mo.NULL,[],e||i.selector,n),o=s.location.nativeElement,r=s.injector.get(_u,null),a=r&&s.injector.get(vu);return r&&a&&a.registerApplication(o,r),s.onDestroy(()=>{this.detachView(s.hostView),Lu(this.components,s),a&&a.unregisterApplication(o)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Lu(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(tu,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(ki(gu),ki(Mo),ki(Rn),ki(da),ki(Wc))},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t})();function Lu(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}class Ou{}class Fu{}const Du={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let qu=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Du}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,n]=t.split("#");return void 0===n&&(n="default"),i(3446)(e).then(t=>t[n]).then(t=>Nu(t,e,n)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,n]=t.split("#"),s="NgFactory";return void 0===n&&(n="default",s=""),i(3446)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[n+s]).then(t=>Nu(t,e,n))}}return t.\u0275fac=function(e){return new(e||t)(ki(lu),ki(Fu,8))},t.\u0275prov=A({token:t,factory:t.\u0275fac}),t})();function Nu(t,e,i){if(!t)throw new Error(`Cannot find '${i}' in '${e}'`);return t}const Uu=function(t){return null},Gu=Ku(null,"core",[{provide:Xc,useValue:"unknown"},{provide:Hu,deps:[Mo]},{provide:vu,deps:[]},{provide:eu,deps:[]}]),$u=[{provide:Iu,useClass:Iu,deps:[gu,Mo,Rn,da,Wc]},{provide:uc,deps:[gu],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Wc,useClass:Wc,deps:[[new Pi,Vc]]},{provide:lu,useClass:lu,deps:[]},Zc,{provide:Ha,useFactory:function(){return Ua},deps:[]},{provide:Ia,useFactory:function(){return Ga},deps:[]},{provide:iu,useFactory:function(t){return ea(t=t||"undefined"!=typeof $localize&&$localize.locale||Xr),t},deps:[[new Ri(iu),new Pi,new Si]]},{provide:nu,useValue:"USD"}];let Vu=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(ki(Iu))},t.\u0275mod=et({type:t}),t.\u0275inj=_({providers:$u}),t})()},2623:(module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{zr:()=>OAuthModule,Ct:()=>OAuthService});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1572),_angular_common__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(1511),_angular_common_http__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(9063),tslib__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(7632),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5959),rxjs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(878),rxjs__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(9764),rxjs__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(3875),rxjs__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(1225),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(1305),rxjs__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(1906),rxjs_operators__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3835),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6599),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(7701),rxjs_operators__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(509),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(4689),rxjs_operators__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(9996),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(3530),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(7727),rxjs_operators__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(9085),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(611),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(3982);module=__webpack_require__.hmd(module);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class t extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(t)))(i||t)}}(),t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class t{constructor(){this.data=new Map}getItem(t){return this.data.get(t)}removeItem(t){this.data.delete(t)}setItem(t,e){this.data.set(t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();class ReceivedTokens{}function b64DecodeUnicode(t){const e=t.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(e).split("").map(function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(t){return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(t){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){let e=this.inferHashAlgorithm(t.idTokenHeader),i=yield this.calcHash(t.accessToken,e),n=base64UrlEncode(i.substr(0,i.length/2)),s=t.idTokenClaims.at_hash.replace(/=/g,"");return n!==s&&(console.error("exptected at_hash: "+n),console.error("actual at_hash: "+s)),n===s})}inferHashAlgorithm(t){let e=t.alg;if(!e.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+e);return"sha-"+e.substr(2)}}let UrlHelperService=(()=>{class t{getHashFragmentParams(t){let e=t||window.location.hash;if(e=decodeURIComponent(e),0!==e.indexOf("#"))return{};const i=e.indexOf("?");return e=e.substr(i>-1?i+1:1),this.parseQueryString(e)}parseQueryString(t){const e={};let i,n,s,o,r,a,c;if(null===t)return e;i=t.split("&");for(let u=0;u{location.href=t},t&&Object.assign(this,t)}}class WebHttpUrlEncodingCodec{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&module.exports,AMD="function"==typeof define&&__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[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],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t,e){return function(i){return new Sha256(e,!0).update(i)[t]()}};const \u02750=createOutputMethod;var createMethod=function(t){var e=createOutputMethod("hex",t);NODE_JS&&(e=nodeWrap(e,t)),e.create=function(){return new Sha256(t)},e.update=function(t){return e.create().update(t)};for(var i=0;i>6,r[c++]=128|63&o):o<55296||o>=57344?(r[c++]=224|o>>12,r[c++]=128|o>>6&63,r[c++]=128|63&o):(o=65536+((1023&o)<<10|1023&t.charCodeAt(++n)),r[c++]=240|o>>18,r[c++]=128|o>>12&63,r[c++]=128|o>>6&63,r[c++]=128|63&o);t=r}else{if("object"!==s)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR)}t.length>64&&(t=new Sha256(e,!0).update(t).array());var u=[],h=[];for(n=0;n<64;++n){var l=t[n]||0;u[n]=92^l,h[n]=54^l}Sha256.call(this,e,i),this.update(h),this.oKeyPad=u,this.inner=!0,this.sharedMemory=i}Sha256.prototype.update=function(t){if(!this.finalized){var e,i=typeof t;if("string"!==i){if("object"!==i)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR);e=!0}for(var n,s,o=0,r=t.length,a=this.blocks;o>2]|=t[o]<>2]|=n<>2]|=(192|n>>6)<>2]|=(128|63&n)<=57344?(a[s>>2]|=(224|n>>12)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<>2]|=(240|n>>18)<>2]|=(128|n>>12&63)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<=64?(this.block=a[16],this.start=s-64,this.hash(),this.hashed=!0):this.start=s}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 t=this.blocks,e=this.lastByteIndex;t[16]=this.block,t[e>>2]|=EXTRA[3&e],this.block=t[16],e>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var t,e,i,n,s,o,r=this.h0,a=this.h1,c=this.h2,u=this.h3,h=this.h4,l=this.h5,d=this.h6,f=this.h7,g=this.blocks;for(t=16;t<64;++t)g[t]=g[t-16]+(((e=g[t-15])>>>7|e<<25)^(e>>>18|e<<14)^e>>>3)+g[t-7]+(((e=g[t-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)<<0;for(o=a&c,t=0;t<64;t+=4)this.first?(this.is224?(i=300032,f=(e=g[0]-1413257819)-150054599<<0,u=e+24177077<<0):(i=704751109,f=(e=g[0]-210244248)-1521486534<<0,u=e+143694565<<0),this.first=!1):(f=u+(e=f+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^~h&d)+K[t]+g[t])<<0,u=e+(((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+((i=r&a)^r&c^o))<<0),d=c+(e=d+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&h^~f&l)+K[t+1]+g[t+1])<<0,c=e+(((u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10))+((n=u&r)^u&a^i))<<0,l=a+(e=l+((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&f^~d&h)+K[t+2]+g[t+2])<<0,a=e+(((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+((s=c&u)^c&r^n))<<0,h=r+(e=h+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&d^~l&f)+K[t+3]+g[t+3])<<0,r=e+(((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+((o=a&c)^a&u^s))<<0;this.h0=this.h0+r<<0,this.h1=this.h1+a<<0,this.h2=this.h2+c<<0,this.h3=this.h3+u<<0,this.h4=this.h4+h<<0,this.h5=this.h5+l<<0,this.h6=this.h6+d<<0,this.h7=this.h7+f<<0},Sha256.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,i=this.h2,n=this.h3,s=this.h4,o=this.h5,r=this.h6,a=this.h7,c=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[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[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[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[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]+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]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r];return this.is224||(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]),c},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,i=this.h2,n=this.h3,s=this.h4,o=this.h5,r=this.h6,a=this.h7,c=[t>>24&255,t>>16&255,t>>8&255,255&t,e>>24&255,e>>16&255,e>>8&255,255&e,i>>24&255,i>>16&255,i>>8&255,255&i,n>>24&255,n>>16&255,n>>8&255,255&n,s>>24&255,s>>16&255,s>>8&255,255&s,o>>24&255,o>>16&255,o>>8&255,255&o,r>>24&255,r>>16&255,r>>8&255,255&r];return this.is224||c.push(a>>24&255,a>>16&255,a>>8&255,255&a),c},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(this.is224?28:32),e=new DataView(t);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),e.setUint32(20,this.h5),e.setUint32(24,this.h6),this.is224||e.setUint32(28,this.h7),t},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(t),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0);class HashHandler{}let DefaultHashHandler=(()=>{class t{calcHash(t,e){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){const e=exports.array(t);return this.toHashString2(e)})}toHashString2(t){let e="";for(let i of t)e+=String.fromCharCode(i);return e}toHashString(t){const e=new Uint8Array(t);let i="";for(let n of e)i+=String.fromCharCode(n);return i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})(),OAuthService=(()=>{class t extends AuthConfig{constructor(t,e,i,n,s,o,r,a,c,u){var h;super(),this.ngZone=t,this.http=e,this.config=s,this.urlHelper=o,this.logger=r,this.crypto=a,this.dateTimeService=u,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_2__.xQ,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_2__.xQ,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=c,s||(s={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),n&&(this.tokenValidationHandler=n),s&&this.configure(s);try{i?this.setStorage(i):"undefined"!=typeof sessionStorage&&this.setStorage(sessionStorage)}catch(l){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",l)}if("undefined"!=typeof window&&void 0!==window.localStorage){const t=null===(h=null===window||void 0===window?void 0:window.navigator)||void 0===h?void 0:h.userAgent;((null==t?void 0:t.includes("MSIE "))||(null==t?void 0:t.includes("Trident")))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}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_3__.h)(t=>"token_received"===t.type)).subscribe(t=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(t={},e,i=!0){let n=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.b)(t=>{"token_received"===t.type?n=!0:"logout"===t.type&&(n=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>"token_expires"===t.type&&(null==e||"any"===e||t.info===e)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(1e3)).subscribe(e=>{n&&this.refreshInternal(t,i).catch(t=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(t,e){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(t,e):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(t=null){return this.loadDiscoveryDocument().then(e=>this.tryLogin(t))}loadDiscoveryDocumentAndLogin(t=null){return this.loadDiscoveryDocumentAndTryLogin(t=t||{}).then(e=>!(!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 e=[],i=this.validateUrlForHttps(t),n=this.validateUrlAgainstIssuer(t);return i||e.push("https for all urls required. Also for urls received by discovery."),n||e.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),e}validateUrlForHttps(t){if(!t)return!0;const e=t.toLowerCase();return!1===this.requireHttps||!(!e.match(/^http:\/\/localhost($|[:\/])/)&&!e.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps)||e.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(t,e){if(!t)throw new Error(`'${e}' should not be null`);if(!this.validateUrlForHttps(t))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(t){return!this.strictDiscoveryDocumentValidation||!t||t.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){"undefined"!=typeof window?((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_3__.h)(t=>"token_received"===t.type)).subscribe(t=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})):this.debug("timer not supported on this plattform")}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const t=this.getAccessTokenExpiration(),e=this.getAccessTokenStoredAt(),i=this.calcTimeout(e,t);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.g)(i)).subscribe(t=>{this.ngZone.run(()=>{this.eventsSubject.next(t)})})})}setupIdTokenTimer(){const t=this.getIdTokenExpiration(),e=this.getIdTokenStoredAt(),i=this.calcTimeout(e,t);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.g)(i)).subscribe(t=>{this.ngZone.run(()=>{this.eventsSubject.next(t)})})})}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,e){const i=this.dateTimeService.now();return Math.max(0,(e-t)*this.timeoutFactor-(i-t))}setStorage(t){this._storage=t,this.configChanged()}loadDiscoveryDocument(t=null){return new Promise((e,i)=>{t||((t=this.issuer||"").endsWith("/")||(t+="/"),t+=".well-known/openid-configuration"),this.validateUrlForHttps(t)?this.http.get(t).subscribe(t=>{if(!this.validateDiscoveryDocument(t))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void i("discovery_document_validation_error");this.loginUrl=t.authorization_endpoint,this.logoutUrl=t.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=t.grant_types_supported,this.issuer=t.issuer,this.tokenEndpoint=t.token_endpoint,this.userinfoEndpoint=t.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=t.jwks_uri,this.sessionCheckIFrameUrl=t.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(t),this.revocationEndpoint=t.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(i=>{const n=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:t,jwks:i});this.eventsSubject.next(n),e(n)}).catch(t=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",t)),i(t)})},t=>{this.logger.error("error loading discovery document",t),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",t)),i(t)}):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,e)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(e=>{this.jwks=e,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),t(e)},t=>{this.logger.error("error loading jwks",t),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",t)),e(t)}):t(null)})}validateDiscoveryDocument(t){let e;return this.skipIssuerCheck||t.issuer===this.issuer?(e=this.validateUrlFromDiscoveryDocument(t.authorization_endpoint),e.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(t.end_session_endpoint),e.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(t.token_endpoint),e.length>0&&this.logger.error("error validating token_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(t.revocation_endpoint),e.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(t.userinfo_endpoint),e.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(t.jwks_uri),e.length>0?(this.logger.error("error validating jwks_uri in discovery document",e),!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,e,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM){return this.fetchTokenUsingPasswordFlow(t,e,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,e)=>{const i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:i,observe:"response",responseType:"text"}).subscribe(i=>{if(this.debug("userinfo received",JSON.stringify(i)),i.headers.get("content-type").startsWith("application/json")){let n=JSON.parse(i.body);const s=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!s.sub||n.sub!==s.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");n=Object.assign({},s,n),this._storage.setItem("id_token_claims_obj",JSON.stringify(n)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),t({info:n})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),t(JSON.parse(i.body))},t=>{this.logger.error("error loading user info",t),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",t)),e(t)})})}fetchTokenUsingPasswordFlow(t,e,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM){return this.fetchTokenUsingGrant("password",{username:t,password:e},i)}fetchTokenUsingGrant(t,e,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",t).set("scope",this.scope);if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+t)}if(this.useHttpBasicAuth||(n=n.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(n=n.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const s of Object.getOwnPropertyNames(this.customQueryParams))n=n.set(s,this.customQueryParams[s]);for(const s of Object.keys(e))n=n.set(s,e[s]);return i=i.set("Content-Type","application/x-www-form-urlencoded"),new Promise((t,e)=>{this.http.post(this.tokenEndpoint,n,{headers:i}).subscribe(e=>{this.debug("tokenResponse",e),this.storeAccessTokenResponse(e.access_token,e.refresh_token,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,e.scope,this.extractRecognizedCustomParameters(e)),this.oidc&&e.id_token&&this.processIdToken(e.id_token,e.access_token).then(i=>{this.storeIdToken(i),t(e)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),t(e)},t=>{this.logger.error("Error performing ${grantType} flow",t),this.eventsSubject.next(new OAuthErrorEvent("token_error",t)),e(t)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((t,e)=>{let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),n=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);n=n.set("Authorization","Basic "+t)}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 s of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(s,this.customQueryParams[s]);this.http.post(this.tokenEndpoint,i,{headers:n}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.w)(t=>t.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_10__.D)(this.processIdToken(t.id_token,t.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.b)(t=>this.storeIdToken(t)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.U)(e=>t)):(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(t))).subscribe(e=>{this.debug("refresh tokenResponse",e),this.storeAccessTokenResponse(e.access_token,e.refresh_token,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,e.scope,this.extractRecognizedCustomParameters(e)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),t(e)},t=>{this.logger.error("Error refreshing token",t),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",t)),e(t)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=t=>{const e=this.processMessageEventMessage(t);this.tryLogin({customHashFragment:e,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(t=>this.debug("tryLogin during silent refresh failed",t))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(t={},e=!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(void 0===this.document)throw new Error("silent refresh is not supported on this platform");const n=this.document.getElementById(this.silentRefreshIFrameName);n&&this.document.body.removeChild(n),this.silentRefreshSubject=i.sub;const s=this.document.createElement("iframe");s.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,e,t).then(t=>{s.setAttribute("src",t),this.silentRefreshShowIFrame||(s.style.display="none"),this.document.body.appendChild(s)});const o=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>t instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.P)()),r=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>"token_received"===t.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.P)()),a=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_13__.S3)([o,r,a]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.U)(t=>{if(t instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===t.type||(t=new OAuthErrorEvent("silent_refresh_error",t)),this.eventsSubject.next(t),t;return"token_received"===t.type&&(t=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(t)),t})).toPromise()}initImplicitFlowInPopup(t){return this.initLoginFlowInPopup(t)}initLoginFlowInPopup(t){return t=t||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(e=>new Promise((i,n)=>{let s,o=null;t.windowRef?t.windowRef&&!t.windowRef.closed&&(o=t.windowRef,o.location.href=e):o=window.open(e,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(t));const r=t=>{this.tryLogin({customHashFragment:t,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{a(),i(!0)},t=>{a(),n(t)})};o?s=window.setInterval(()=>{o&&!o.closed||(a(),n(new OAuthErrorEvent("popup_closed",{})))},500):n(new OAuthErrorEvent("popup_blocked",{}));const a=()=>{window.clearInterval(s),window.removeEventListener("storage",u),window.removeEventListener("message",c),null!==o&&o.close(),o=null},c=t=>{const e=this.processMessageEventMessage(t);e&&null!==e?(window.removeEventListener("storage",u),r(e)):console.log("false event firing")},u=t=>{"auth_hash"===t.key&&(window.removeEventListener("message",c),r(t.newValue))};window.addEventListener("message",c),window.addEventListener("storage",u)}))}calculatePopupFeatures(t){const e=t.height||470,i=t.width||500,n=window.screenLeft+(window.outerWidth-i)/2;return`location=no,toolbar=no,width=${i},height=${e},top=${window.screenTop+(window.outerHeight-e)/2},left=${n}`}processMessageEventMessage(t){let e="#";if(this.silentRefreshMessagePrefix&&(e+=this.silentRefreshMessagePrefix),!t||!t.data||"string"!=typeof t.data)return;const i=t.data;return i.startsWith(e)?"#"+i.substr(e.length):void 0}canPerformSessionCheck(){return!!this.sessionChecksEnabled&&(this.sessionCheckIFrameUrl?this.getSessionState()?void 0!==this.document:(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 e=t.origin.toLowerCase(),i=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),i.startsWith(e)){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",e,"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_3__.h)(t=>"silently_refreshed"===t.type||"silent_refresh_timeout"===t.type||"silent_refresh_error"===t.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.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 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 t=this.document.getElementById(this.sessionCheckIFrameName);t||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const e=this.getSessionState();e||this.stopSessionCheckTimer(),t.contentWindow.postMessage(this.clientId+" "+e,this.issuer)}createLoginUrl(t="",e="",i="",n=!1,s={}){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){const o=this;let r;r=i||this.redirectUri;const a=yield this.createAndSaveNonce();if(t=t?a+this.config.nonceStateSeparator+encodeURIComponent(t):a,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.responseType=this.config.responseType?this.config.responseType:this.oidc&&this.requestAccessToken?"id_token token":this.oidc&&!this.requestAccessToken?"id_token":"token";const c=o.loginUrl.indexOf("?")>-1?"&":"?";let u=o.scope;this.oidc&&!u.match(/(^|\s)openid($|\s)/)&&(u="openid "+u);let h=o.loginUrl+c+"response_type="+encodeURIComponent(o.responseType)+"&client_id="+encodeURIComponent(o.clientId)+"&state="+encodeURIComponent(t)+"&redirect_uri="+encodeURIComponent(r)+"&scope="+encodeURIComponent(u);if(this.responseType.includes("code")&&!this.disablePKCE){const[t,e]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("PKCE_verifier",e):this._storage.setItem("PKCE_verifier",e),h+="&code_challenge="+t,h+="&code_challenge_method=S256"}e&&(h+="&login_hint="+encodeURIComponent(e)),o.resource&&(h+="&resource="+encodeURIComponent(o.resource)),o.oidc&&(h+="&nonce="+encodeURIComponent(a)),n&&(h+="&prompt=none");for(const t of Object.keys(s))h+="&"+encodeURIComponent(t)+"="+encodeURIComponent(s[t]);if(this.customQueryParams)for(const t of Object.getOwnPropertyNames(this.customQueryParams))h+="&"+t+"="+encodeURIComponent(this.customQueryParams[t]);return h})}initImplicitFlowInternal(t="",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 i={},n=null;"string"==typeof e?n=e:"object"==typeof e&&(i=e),this.createLoginUrl(t,n,null,!1,i).then(this.config.openUri).catch(t=>{console.error("Error in initImplicitFlow",t),this.inImplicitFlow=!1})}initImplicitFlow(t="",e=""){""!==this.loginUrl?this.initImplicitFlowInternal(t,e):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>"discovery_document_loaded"===t.type)).subscribe(i=>this.initImplicitFlowInternal(t,e))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(t){const e=this;if(t.onTokenReceived){const i={idClaims:e.getIdentityClaims(),idToken:e.getIdToken(),accessToken:e.getAccessToken(),state:e.state};t.onTokenReceived(i)}}storeAccessTokenResponse(t,e,i,n,s){if(this._storage.setItem("access_token",t),n&&!Array.isArray(n)?this._storage.setItem("granted_scopes",JSON.stringify(n.split(" "))):n&&Array.isArray(n)&&this._storage.setItem("granted_scopes",JSON.stringify(n)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),i){const t=1e3*i,e=this.dateTimeService.new().getTime()+t;this._storage.setItem("expires_at",""+e)}e&&this._storage.setItem("refresh_token",e),s&&s.forEach((t,e)=>{this._storage.setItem(e,t)})}tryLogin(t=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(t).then(t=>!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){const e=(t=t||{}).customHashFragment?t.customHashFragment.substring(1):window.location.search,i=this.getCodePartsFromUrl(e),n=i.code,s=i.state,o=i.session_state;if(!t.preventClearHashAfterLogin){const t=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,t)}let[r,a]=this.parseState(s);if(this.state=a,i.error){this.debug("error trying to login"),this.handleLoginError(t,i);const e=new OAuthErrorEvent("code_error",{},i);return this.eventsSubject.next(e),Promise.reject(e)}if(!t.disableNonceCheck){if(!r)return Promise.resolve();if(!t.disableOAuth2StateCheck&&!this.validateNonce(r)){const t=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(t),Promise.reject(t)}return this.storeSessionState(o),n?this.getTokenFromCode(n,t).then(t=>null):Promise.resolve()}}getCodePartsFromUrl(t){return t&&0!==t.length?("?"===t.charAt(0)&&(t=t.substr(1)),this.urlHelper.parseQueryString(t)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(t,e){let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",t).set("redirect_uri",e.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let t;t=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),t?i=i.set("code_verifier",t):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(i,e)}fetchAndProcessToken(t,e){e=e||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+t)}return this.useHttpBasicAuth||(t=t.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(t=t.set("client_secret",this.dummyClientSecret)),new Promise((n,s)=>{if(this.customQueryParams)for(let e of Object.getOwnPropertyNames(this.customQueryParams))t=t.set(e,this.customQueryParams[e]);this.http.post(this.tokenEndpoint,t,{headers:i}).subscribe(t=>{this.debug("refresh tokenResponse",t),this.storeAccessTokenResponse(t.access_token,t.refresh_token,t.expires_in||this.fallbackAccessTokenExpirationTimeInSec,t.scope,this.extractRecognizedCustomParameters(t)),this.oidc&&t.id_token?this.processIdToken(t.id_token,t.access_token,e.disableNonceCheck).then(e=>{this.storeIdToken(e),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),n(t)}).catch(t=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",t)),console.error("Error validating tokens"),console.error(t),s(t)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),n(t))},t=>{console.error("Error getting token",t),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",t)),s(t)})})}tryLoginImplicitFlow(t=null){let e;e=(t=t||{}).customHashFragment?this.urlHelper.getHashFragmentParams(t.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",e);const i=e.state;let[n,s]=this.parseState(i);if(this.state=s,e.error){this.debug("error trying to login"),this.handleLoginError(t,e);const i=new OAuthErrorEvent("token_error",{},e);return this.eventsSubject.next(i),Promise.reject(i)}const o=e.access_token,r=e.id_token,a=e.session_state,c=e.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!o)return Promise.resolve(!1);if(this.requestAccessToken&&!t.disableOAuth2StateCheck&&!i)return Promise.resolve(!1);if(this.oidc&&!r)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!a&&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(n)){const t=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(t),Promise.reject(t)}return this.requestAccessToken&&this.storeAccessTokenResponse(o,null,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,c),this.oidc?this.processIdToken(r,o,t.disableNonceCheck).then(e=>t.validationHandler?t.validationHandler({accessToken:o,idClaims:e.idTokenClaims,idToken:e.idToken,state:i}).then(t=>e):e).then(e=>(this.storeIdToken(e),this.storeSessionState(a),this.clearHashAfterLogin&&!t.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(t),this.inImplicitFlow=!1,!0)).catch(t=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",t)),this.logger.error("Error validating tokens"),this.logger.error(t),Promise.reject(t))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!t.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(t),Promise.resolve(!0))}parseState(t){let e=t,i="";if(t){const n=t.indexOf(this.config.nonceStateSeparator);n>-1&&(e=t.substr(0,n),i=t.substr(n+this.config.nonceStateSeparator.length))}return[e,i]}validateNonce(t){let e;return e=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),e===t||(console.error("Validating access_token failed, wrong state/nonce.",e,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,e){t.onLoginError&&t.onLoginError(e),this.clearHashAfterLogin&&!t.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(t=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:t}processIdToken(t,e,i=!1){const n=t.split("."),s=b64DecodeUnicode(this.padBase64(n[0])),o=JSON.parse(s),r=b64DecodeUnicode(this.padBase64(n[1])),a=JSON.parse(r);let c;if(c=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(a.aud)){if(a.aud.every(t=>t!==this.clientId)){const t="Wrong audience: "+a.aud.join(",");return this.logger.warn(t),Promise.reject(t)}}else if(a.aud!==this.clientId){const t="Wrong audience: "+a.aud;return this.logger.warn(t),Promise.reject(t)}if(!a.sub){const t="No sub claim in id_token";return this.logger.warn(t),Promise.reject(t)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==a.sub){const t=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${a.sub}`;return this.logger.warn(t),Promise.reject(t)}if(!a.iat){const t="No iat claim in id_token";return this.logger.warn(t),Promise.reject(t)}if(!this.skipIssuerCheck&&a.iss!==this.issuer){const t="Wrong issuer: "+a.iss;return this.logger.warn(t),Promise.reject(t)}if(!i&&a.nonce!==c){const t="Wrong nonce: "+a.nonce;return this.logger.warn(t),Promise.reject(t)}if(!this.hasOwnProperty("responseType")||"code"!==this.responseType&&"id_token"!==this.responseType||(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!a.at_hash){const t="An at_hash is needed!";return this.logger.warn(t),Promise.reject(t)}const u=this.dateTimeService.now(),h=1e3*a.iat,l=1e3*a.exp,d=this.getClockSkewInMsec();if(h-d>=u||l+d<=u){const t="Token has expired";return console.error(t),console.error({now:u,issuedAtMSec:h,expiresAtMSec:l}),Promise.reject(t)}const f={accessToken:e,idToken:t,jwks:this.jwks,idTokenClaims:a,idTokenHeader:o,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(f).then(e=>({idToken:t,idTokenClaims:a,idTokenClaimsJson:r,idTokenHeader:o,idTokenHeaderJson:s,idTokenExpiresAt:l})):this.checkAtHash(f).then(e=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!e){const t="Wrong at_hash";return this.logger.warn(t),Promise.reject(t)}return this.checkSignature(f).then(e=>{const i={idToken:t,idTokenClaims:a,idTokenClaimsJson:r,idTokenHeader:o,idTokenHeaderJson:s,idTokenExpiresAt:l};return this.disableAtHashCheck?i:this.checkAtHash(f).then(t=>{if(this.requestAccessToken&&!t){const t="Wrong at_hash";return this.logger.warn(t),Promise.reject(t)}return i})})})}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"),e=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={},e=""){let i=!1;"boolean"==typeof t&&(i=t,t={});const n=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(t=>this._storage.removeItem(t)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl)return;if(i)return;if(!n&&!this.postLogoutRedirectUri)return;let s;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)s=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(n)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec});n&&(i=i.set("id_token_hint",n));const o=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";o&&(i=i.set("post_logout_redirect_uri",o),e&&(i=i.set("state",e)));for(let e in t)i=i.set(e,t[e]);s=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+i.toString()}this.config.openUri(s)}createAndSaveNonce(){const t=this;return this.createNonce().then(function(e){return t.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("nonce",e):t._storage.setItem("nonce",e),e})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const t=this.document.getElementById(this.silentRefreshIFrameName);t&&t.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const e=this.document.getElementById(this.sessionCheckIFrameName);e&&e.remove()}createNonce(){return new Promise(t=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let i=45,n="";const s="undefined"==typeof self?null:self.crypto||self.msCrypto;if(s){let t=new Uint8Array(i);s.getRandomValues(t),t.map||(t.map=Array.prototype.map),t=t.map(t=>e.charCodeAt(t%e.length)),n=String.fromCharCode.apply(null,t)}else for(;0"discovery_document_loaded"===t.type)).subscribe(i=>this.initCodeFlowInternal(t,e))}initCodeFlowInternal(t="",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 i={},n=null;"string"==typeof e?n=e:"object"==typeof e&&(i=e),this.createLoginUrl(t,n,null,!1,i).then(this.config.openUri).catch(t=>{console.error("Error in initAuthorizationCodeFlow"),console.error(t)})}createChallangeVerifierPairForPKCE(){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const t=yield this.createNonce();return[base64UrlEncode(yield this.crypto.calcHash(t,"sha-256")),t]})}extractRecognizedCustomParameters(t){let e=new Map;return this.config.customTokenParameters?(this.config.customTokenParameters.forEach(i=>{t[i]&&e.set(i,JSON.stringify(t[i]))}),e):e}revokeTokenAndLogout(t={},e=!1){let i=this.revocationEndpoint,n=this.getAccessToken(),s=this.getRefreshToken();if(!n)return;let o=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}),r=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);r=r.set("Authorization","Basic "+t)}if(this.useHttpBasicAuth||(o=o.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(o=o.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const a of Object.getOwnPropertyNames(this.customQueryParams))o=o.set(a,this.customQueryParams[a]);return new Promise((a,c)=>{let u,h;if(n){let t=o.set("token",n).set("token_type_hint","access_token");u=this.http.post(i,t,{headers:r})}else u=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null);if(s){let t=o.set("token",s).set("token_type_hint","refresh_token");h=this.http.post(i,t,{headers:r})}else h=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null);e&&(u=u.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>0===t.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(t))),h=h.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>0===t.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(t)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_16__.aj)([u,h]).subscribe(e=>{this.logOut(t),a(e),this.logger.info("Token successfully revoked")},t=>{this.logger.error("Error revoking token",t),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",t)),c(t)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return t.\u0275fac=function(e){return new(e||t)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_0__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_8__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_17__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DateTimeProvider))},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(t){return(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(t)}}let DefaultOAuthInterceptor=(()=>{class t{constructor(t,e,i){this.oAuthService=t,this.errorHandler=e,this.moduleConfig=i}checkUrl(t){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(t):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(e=>t.toLowerCase().startsWith(e.toLowerCase()))}intercept(t,e){const i=t.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(i)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_18__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>!!t)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>"token_received"===t.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_19__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.U)(t=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.zg)(i=>{if(i){const e=t.headers.set("Authorization","Bearer "+i);t=t.clone({headers:e})}return e.handle(t).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>this.errorHandler.handleError(t)))})):e.handle(t).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>this.errorHandler.handleError(t))):e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthModuleConfig,8))},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();class NullValidationHandler{validateSignature(t){return Promise.resolve(null)}validateAtHash(t){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return"undefined"!=typeof sessionStorage?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class t{static forRoot(e=null,i=NullValidationHandler){return{ngModule:t,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:i},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:e},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_8__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:t}),t.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_17__.ez]]}),t})();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_0__.OlP("AUTH_CONFIG")},2051:function(t,e){var i,n;void 0===(n="function"==typeof(i=function(){"use strict";function e(t,e,i){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){r(n.response,e,i)},n.onerror=function(){console.error("could not download file")},n.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function n(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,o=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),r=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(t,o,r){var a=s.URL||s.webkitURL,c=document.createElement("a");c.download=o=o||t.name||"download",c.rel="noopener","string"==typeof t?(c.href=t,c.origin===location.origin?n(c):i(c.href)?e(t,o,r):n(c,c.target="_blank")):(c.href=a.createObjectURL(t),setTimeout(function(){a.revokeObjectURL(c.href)},4e4),setTimeout(function(){n(c)},0))}:"msSaveOrOpenBlob"in navigator?function(t,s,o){if(s=s||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,o),s);else if(i(t))e(t,s,o);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){n(r)})}}:function(t,i,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return e(t,i,n);var a="application/octet-stream"===t.type,c=/constructor/i.test(s.HTMLElement)||s.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||a&&c||o)&&"undefined"!=typeof FileReader){var h=new FileReader;h.onloadend=function(){var t=h.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},h.readAsDataURL(t)}else{var l=s.URL||s.webkitURL,d=l.createObjectURL(t);r?r.location=d:location.href=d,r=null,setTimeout(function(){l.revokeObjectURL(d)},4e4)}});s.saveAs=r.saveAs=r,t.exports=r})?i.apply(e,[]):i)||(t.exports=n)},963:t=>{"use strict";function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,i,n,s){n=n||"=";var o={};if("string"!=typeof t||0===t.length)return o;var r=/\+/g;t=t.split(i=i||"&");var a=1e3;s&&"number"==typeof s.maxKeys&&(a=s.maxKeys);var c=t.length;a>0&&c>a&&(c=a);for(var u=0;u=0?(h=g.substr(0,p),l=g.substr(p+1)):(h=g,l=""),d=decodeURIComponent(h),f=decodeURIComponent(l),e(o,d)?Array.isArray(o[d])?o[d].push(f):o[d]=[o[d],f]:o[d]=f}return o}},5341:t=>{"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,i,n,s){return i=i||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map(function(s){var o=encodeURIComponent(e(s))+n;return Array.isArray(t[s])?t[s].map(function(t){return o+encodeURIComponent(e(t))}).join(i):o+encodeURIComponent(e(t[s]))}).join(i):s?encodeURIComponent(e(s))+n+encodeURIComponent(e(t)):""}},6577:(t,e,i)=>{"use strict";i(963),i(5341)},9867:(t,e,i)=>{"use strict";i.d(e,{d:()=>s});var n=i(6673);class s extends n.L{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},3103:(t,e,i)=>{"use strict";i.d(e,{P:()=>r});var n=i(653),s=i(878),o=i(1225);let r=(()=>{class t{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return(0,s.of)(this.value);case"E":return(0,o._)(this.error);case"C":return(0,n.c)()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})()},8318:(t,e,i)=>{"use strict";i.d(e,{y:()=>u});var n=i(6673),s=i(5331),o=i(7498),r=i(6197),a=i(3392),c=i(1484);let u=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(t,e,i){const{operator:r}=this,a=function(t,e,i){if(t){if(t instanceof n.L)return t;if(t[s.b])return t[s.b]()}return t||e||i?new n.L(t,e,i):new n.L(o.c)}(t,e,i);if(a.add(r?r.call(a,this.source):this.source||c.v.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),c.v.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){c.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:i,isStopped:s}=t;if(e||s)return!1;t=i&&i instanceof n.L?i:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=h(e))((e,i)=>{let n;n=this.subscribe(e=>{try{t(e)}catch(s){i(s),n&&n.unsubscribe()}},i,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[r.L](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?a.y:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=h(t))((t,e)=>{let i;this.subscribe(t=>i=t,t=>e(t),()=>t(i))})}}return t.create=e=>new t(e),t})();function h(t){if(t||(t=c.v.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},7498:(t,e,i)=>{"use strict";i.d(e,{c:()=>o});var n=i(1484),s=i(4294);const o={closed:!0,next(t){},error(t){if(n.v.useDeprecatedSynchronousErrorHandling)throw t;(0,s.z)(t)},complete(){}}},9829:(t,e,i)=>{"use strict";i.d(e,{L:()=>s});var n=i(6673);class s extends n.L{notifyNext(t,e,i,n,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}},5959:(t,e,i)=>{"use strict";i.d(e,{Yc:()=>u,xQ:()=>h});var n=i(8318),s=i(6673),o=i(7570),r=i(3895),a=i(9291),c=i(5331);class u extends s.L{constructor(t){super(t),this.destination=t}}let h=(()=>{class t extends n.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[c.b](){return new u(this)}lift(t){const e=new l(this,this);return e.operator=t,e}next(t){if(this.closed)throw new r.N;if(!this.isStopped){const{observers:e}=this,i=e.length,n=e.slice();for(let s=0;snew l(t,e),t})();class l extends h{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):o.w.EMPTY}}},9291:(t,e,i)=>{"use strict";i.d(e,{W:()=>s});var n=i(7570);class s extends n.w{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}},6673:(t,e,i)=>{"use strict";i.d(e,{L:()=>u});var n=i(5024),s=i(7498),o=i(7570),r=i(5331),a=i(1484),c=i(4294);class u extends o.w{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.c;break;case 1:if(!t){this.destination=s.c;break}if("object"==typeof t){t instanceof u?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new h(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new h(this,t,e,i)}}[r.b](){return this}static create(t,e,i){const n=new u(t,e,i);return n.syncErrorThrowable=!1,n}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class h extends u{constructor(t,e,i,o){let r;super(),this._parentSubscriber=t;let a=this;(0,n.m)(e)?r=e:e&&(r=e.next,i=e.error,o=e.complete,e!==s.c&&(a=Object.create(e),(0,n.m)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=r,this._error=i,this._complete=o}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=a.v;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):(0,c.z)(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;(0,c.z)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),a.v.useDeprecatedSynchronousErrorHandling)throw i;(0,c.z)(i)}}__tryOrSetError(t,e,i){if(!a.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(n){return a.v.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=n,t.syncErrorThrown=!0,!0):((0,c.z)(n),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},7570:(t,e,i)=>{"use strict";i.d(e,{w:()=>a});var n=i(8470),s=i(2056),o=i(5024);const r=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let a=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:i,_unsubscribe:a,_subscriptions:u}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof t)i.remove(this);else if(null!==i)for(let t=0;tt.concat(e instanceof r?e.errors:e),[])}},1484:(t,e,i)=>{"use strict";i.d(e,{v:()=>s});let n=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else n&&console.log("RxJS: Back to a better error behavior. Thank you. <3");n=t},get useDeprecatedSynchronousErrorHandling(){return n}}},2875:(t,e,i)=>{"use strict";i.d(e,{c:()=>a,N:()=>c});var n=i(5959),s=i(8318),o=i(7570),r=i(1564);class a extends s.y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new o.w,t.add(this.source.subscribe(new u(this.getSubject(),this))),t.closed&&(this._connection=null,t=o.w.EMPTY)),t}refCount(){return(0,r.x)()(this)}}const c=(()=>{const t=a.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class u extends n.Yc{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}},1305:(t,e,i)=>{"use strict";i.d(e,{aj:()=>u});var n=i(6163),s=i(8470),o=i(9829),r=i(6268),a=i(9342);const c={};function u(...t){let e=null,i=null;return(0,n.K)(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&(0,s.k)(t[0])&&(t=t[0]),(0,a.n)(t,i).lift(new h(e))}class h{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new l(t,this.resultSelector))}}class l extends o.L{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(c),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i{"use strict";i.d(e,{E:()=>s,c:()=>o});var n=i(8318);const s=new n.y(t=>t.complete());function o(t){return t?function(t){return new n.y(e=>t.schedule(()=>e.complete()))}(t):s}},9764:(t,e,i)=>{"use strict";i.d(e,{D:()=>l});var n=i(8318),s=i(6015),o=i(7570),r=i(6197),a=i(2570),c=i(5686),u=i(5168),h=i(9653);function l(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[r.L]}(t))return function(t,e){return new n.y(i=>{const n=new o.w;return n.add(e.schedule(()=>{const s=t[r.L]();n.add(s.subscribe({next(t){n.add(e.schedule(()=>i.next(t)))},error(t){n.add(e.schedule(()=>i.error(t)))},complete(){n.add(e.schedule(()=>i.complete()))}}))})),n})}(t,e);if((0,u.t)(t))return function(t,e){return new n.y(i=>{const n=new o.w;return n.add(e.schedule(()=>t.then(t=>{n.add(e.schedule(()=>{i.next(t),n.add(e.schedule(()=>i.complete()))}))},t=>{n.add(e.schedule(()=>i.error(t)))}))),n})}(t,e);if((0,h.z)(t))return(0,a.r)(t,e);if(function(t){return t&&"function"==typeof t[c.hZ]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new n.y(i=>{const n=new o.w;let s;return n.add(()=>{s&&"function"==typeof s.return&&s.return()}),n.add(e.schedule(()=>{s=t[c.hZ](),n.add(e.schedule(function(){if(i.closed)return;let t,e;try{const i=s.next();t=i.value,e=i.done}catch(n){return void i.error(n)}e?i.complete():(i.next(t),this.schedule())}))})),n})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof n.y?t:new n.y((0,s.s)(t))}},9342:(t,e,i)=>{"use strict";i.d(e,{n:()=>r});var n=i(8318),s=i(625),o=i(2570);function r(t,e){return e?(0,o.r)(t,e):new n.y((0,s.V)(t))}},1906:(t,e,i)=>{"use strict";i.d(e,{T:()=>a});var n=i(8318),s=i(6163),o=i(7471),r=i(9342);function a(...t){let e=Number.POSITIVE_INFINITY,i=null,a=t[t.length-1];return(0,s.K)(a)?(i=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===i&&1===t.length&&t[0]instanceof n.y?t[0]:(0,o.J)(e)((0,r.n)(t,i))}},878:(t,e,i)=>{"use strict";i.d(e,{of:()=>r});var n=i(6163),s=i(9342),o=i(2570);function r(...t){let e=t[t.length-1];return(0,n.K)(e)?(t.pop(),(0,o.r)(t,e)):(0,s.n)(t)}},3875:(t,e,i)=>{"use strict";i.d(e,{S3:()=>a});var n=i(8470),s=i(9342),o=i(9829),r=i(6268);function a(...t){if(1===t.length){if(!(0,n.k)(t[0]))return t[0];t=t[0]}return(0,s.n)(t,void 0).lift(new c)}class c{call(t,e){return e.subscribe(new u(t))}}class u extends o.L{constructor(t){super(t),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(t){this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(let i=0;i{"use strict";i.d(e,{_:()=>s});var n=i(8318);function s(t,e){return new n.y(e?i=>e.schedule(o,0,{error:t,subscriber:i}):e=>e.error(t))}function o({error:t,subscriber:e}){e.error(t)}},7727:(t,e,i)=>{"use strict";i.d(e,{K:()=>r});var n=i(9829),s=i(9867),o=i(6268);function r(t){return function(e){const i=new a(t),n=e.lift(i);return i.caught=n}}class a{constructor(t){this.selector=t}call(t,e){return e.subscribe(new c(t,this.selector,this.caught))}}class c extends n.L{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let i;try{i=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const n=new s.d(this,void 0,void 0);this.add(n);const r=(0,o.D)(this,i,void 0,void 0,n);r!==n&&this.add(r)}}}},436:(t,e,i)=>{"use strict";i.d(e,{b:()=>s});var n=i(3982);function s(t,e){return(0,n.zg)(t,e,1)}},7701:(t,e,i)=>{"use strict";i.d(e,{b:()=>o});var n=i(6673),s=i(8569);function o(t,e=s.P){return i=>i.lift(new r(t,e))}class r{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))}}class a extends n.L{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function c(t){t.debouncedNext()}},7768:(t,e,i)=>{"use strict";i.d(e,{d:()=>s});var n=i(6673);function s(t=null){return e=>e.lift(new o(t))}class o{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new r(t,this.defaultValue))}}class r extends n.L{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},509:(t,e,i)=>{"use strict";i.d(e,{g:()=>a});var n=i(8569),s=i(8802),o=i(6673),r=i(3103);function a(t,e=n.P){const i=(0,s.J)(t)?+t-e.now():Math.abs(t);return t=>t.lift(new c(i,e))}class c{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new u(t,this.delay,this.scheduler))}}class u extends o.L{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,n=t.scheduler,s=t.destination;for(;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const e=Math.max(0,i[0].time-n.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(u.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new h(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(r.P.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(r.P.createComplete()),this.unsubscribe()}}class h{constructor(t,e){this.time=t,this.notification=e}}},3835:(t,e,i)=>{"use strict";i.d(e,{h:()=>s});var n=i(6673);function s(t,e){return function(i){return i.lift(new o(t,e))}}class o{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new r(t,this.predicate,this.thisArg))}}class r extends n.L{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}},3530:(t,e,i)=>{"use strict";i.d(e,{P:()=>u});var n=i(9665),s=i(3835),o=i(611),r=i(7768),a=i(790),c=i(3392);function u(t,e){const i=arguments.length>=2;return u=>u.pipe(t?(0,s.h)((e,i)=>t(e,i,u)):c.y,(0,o.q)(1),i?(0,r.d)(e):(0,a.T)(()=>new n.K))}},9996:(t,e,i)=>{"use strict";i.d(e,{U:()=>s});var n=i(6673);function s(t,e){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new o(t,e))}}class o{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new r(t,this.project,this.thisArg))}}class r extends n.L{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}},7471:(t,e,i)=>{"use strict";i.d(e,{J:()=>o});var n=i(3982),s=i(3392);function o(t=Number.POSITIVE_INFINITY){return(0,n.zg)(s.y,t)}},3982:(t,e,i)=>{"use strict";i.d(e,{zg:()=>c});var n=i(6268),s=i(9829),o=i(9867),r=i(9996),a=i(9764);function c(t,e,i=Number.POSITIVE_INFINITY){return"function"==typeof e?n=>n.pipe(c((i,n)=>(0,a.D)(t(i,n)).pipe((0,r.U)((t,s)=>e(i,t,n,s))),i)):("number"==typeof e&&(i=e),e=>e.lift(new u(t,i)))}class u{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new h(t,this.project,this.concurrent))}}class h extends s.L{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},1564:(t,e,i)=>{"use strict";i.d(e,{x:()=>s});var n=i(6673);function s(){return function(t){return t.lift(new o(t))}}class o{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const n=new r(t,i),s=e.subscribe(n);return n.closed||(n.connection=i.connect()),s}}class r extends n.L{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,n=t._connection;this.connection=null,!n||i&&n!==i||n.unsubscribe()}}},1055:(t,e,i)=>{"use strict";i.d(e,{B:()=>a});var n=i(2875),s=i(1564),o=i(5959);function r(){return new o.xQ}function a(){return t=>{return(0,s.x)()((e=r,function(t){let i;i="function"==typeof e?e:function(){return e};const s=Object.create(t,n.N);return s.source=t,s.subjectFactory=i,s})(t));var e}}},4689:(t,e,i)=>{"use strict";i.d(e,{w:()=>c});var n=i(9829),s=i(9867),o=i(6268),r=i(9996),a=i(9764);function c(t,e){return"function"==typeof e?i=>i.pipe(c((i,n)=>(0,a.D)(t(i,n)).pipe((0,r.U)((t,s)=>e(i,t,n,s))))):e=>e.lift(new u(t))}class u{constructor(t){this.project=t}call(t,e){return e.subscribe(new h(t,this.project))}}class h extends n.L{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(n){return void this.destination.error(n)}this._innerSub(e,t,i)}_innerSub(t,e,i){const n=this.innerSubscription;n&&n.unsubscribe();const r=new s.d(this,e,i),a=this.destination;a.add(r),this.innerSubscription=(0,o.D)(this,t,void 0,void 0,r),this.innerSubscription!==r&&a.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,i,n,s){this.destination.next(e)}}},611:(t,e,i)=>{"use strict";i.d(e,{q:()=>r});var n=i(6673),s=i(8402),o=i(653);function r(t){return e=>0===t?(0,o.c)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new s.W}call(t,e){return e.subscribe(new c(t,this.total))}}class c extends n.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}},6599:(t,e,i)=>{"use strict";i.d(e,{b:()=>r});var n=i(6673);function s(){}var o=i(5024);function r(t,e,i){return function(n){return n.lift(new a(t,e,i))}}class a{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new c(t,this.nextOrObserver,this.error,this.complete))}}class c extends n.L{constructor(t,e,i,n){super(t),this._tapNext=s,this._tapError=s,this._tapComplete=s,this._tapError=i||s,this._tapComplete=n||s,(0,o.m)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||s,this._tapError=e.error||s,this._tapComplete=e.complete||s)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},790:(t,e,i)=>{"use strict";i.d(e,{T:()=>o});var n=i(9665),s=i(6673);function o(t=c){return e=>e.lift(new r(t))}class r{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new a(t,this.errorFactory))}}class a extends s.L{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function c(){return new n.K}},9085:(t,e,i)=>{"use strict";i.d(e,{V:()=>l});var n=i(8569);const s=(()=>{function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t})();var o=i(8802),r=i(9829),a=i(6268);class c{constructor(t,e,i,n){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=i,this.scheduler=n}call(t,e){return e.subscribe(new u(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class u extends r.L{constructor(t,e,i,n,s){super(t),this.absoluteTimeout=e,this.waitFor=i,this.withObservable=n,this.scheduler=s,this.action=null,this.scheduleTimeout()}static dispatchTimeout(t){const{withObservable:e}=t;t._unsubscribeAndRecycle(),t.add((0,a.D)(t,e))}scheduleTimeout(){const{action:t}=this;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(u.dispatchTimeout,this.waitFor,this))}_next(t){this.absoluteTimeout||this.scheduleTimeout(),super._next(t)}_unsubscribe(){this.action=null,this.scheduler=null,this.withObservable=null}}var h=i(1225);function l(t,e=n.P){return function(t,e,i=n.P){return n=>{let s=(0,o.J)(t),r=s?+t-i.now():Math.abs(t);return n.lift(new c(r,s,e,i))}}(t,(0,h._)(new s),e)}},2570:(t,e,i)=>{"use strict";i.d(e,{r:()=>o});var n=i(8318),s=i(7570);function o(t,e){return new n.y(i=>{const n=new s.w;let o=0;return n.add(e.schedule(function(){o!==t.length?(i.next(t[o++]),i.closed||n.add(this.schedule())):i.complete()})),n})}},8277:(t,e,i)=>{"use strict";i.d(e,{o:()=>o});var n=i(7570);class s extends n.w{constructor(t,e){super()}schedule(t,e=0){return this}}class o extends s{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 i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let i,n=!1;try{this.work(t)}catch(s){n=!0,i=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},1098:(t,e,i)=>{"use strict";i.d(e,{v:()=>s});let n=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(t,e=0,i){return new this.SchedulerAction(this,t).schedule(i,e)}}return t.now=()=>Date.now(),t})();class s extends n{constructor(t,e=n.now){super(t,()=>s.delegate&&s.delegate!==this?s.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return s.delegate&&s.delegate!==this?s.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}},8569:(t,e,i)=>{"use strict";i.d(e,{P:()=>s});var n=i(8277);const s=new(i(1098).v)(n.o)},5686:(t,e,i)=>{"use strict";function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}i.d(e,{hZ:()=>s});const s=n()},6197:(t,e,i)=>{"use strict";i.d(e,{L:()=>n});const n=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},5331:(t,e,i)=>{"use strict";i.d(e,{b:()=>n});const n=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},8402:(t,e,i)=>{"use strict";i.d(e,{W:()=>n});const n=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},9665:(t,e,i)=>{"use strict";i.d(e,{K:()=>n});const n=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})()},3895:(t,e,i)=>{"use strict";i.d(e,{N:()=>n});const n=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},4294:(t,e,i)=>{"use strict";function n(t){setTimeout(()=>{throw t},0)}i.d(e,{z:()=>n})},3392:(t,e,i)=>{"use strict";function n(t){return t}i.d(e,{y:()=>n})},8470:(t,e,i)=>{"use strict";i.d(e,{k:()=>n});const n=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))()},9653:(t,e,i)=>{"use strict";i.d(e,{z:()=>n});const n=t=>t&&"number"==typeof t.length&&"function"!=typeof t},8802:(t,e,i)=>{"use strict";function n(t){return t instanceof Date&&!isNaN(+t)}i.d(e,{J:()=>n})},5024:(t,e,i)=>{"use strict";function n(t){return"function"==typeof t}i.d(e,{m:()=>n})},2056:(t,e,i)=>{"use strict";function n(t){return null!==t&&"object"==typeof t}i.d(e,{K:()=>n})},5168:(t,e,i)=>{"use strict";function n(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}i.d(e,{t:()=>n})},6163:(t,e,i)=>{"use strict";function n(t){return t&&"function"==typeof t.schedule}i.d(e,{K:()=>n})},6015:(t,e,i)=>{"use strict";i.d(e,{s:()=>h});var n=i(625),s=i(4294),o=i(5686),r=i(6197),a=i(9653),c=i(5168),u=i(2056);const h=t=>{if(t&&"function"==typeof t[r.L])return h=t,t=>{const e=h[r.L]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if((0,a.z)(t))return(0,n.V)(t);if((0,c.t)(t))return i=t,t=>(i.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,s.z),t);if(t&&"function"==typeof t[o.hZ])return e=t,t=>{const i=e[o.hZ]();for(;;){const e=i.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof i.return&&t.add(()=>{i.return&&i.return()}),t};{const e=(0,u.K)(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,i,h}},625:(t,e,i)=>{"use strict";i.d(e,{V:()=>n});const n=t=>e=>{for(let i=0,n=t.length;i{"use strict";i.d(e,{D:()=>r});var n=i(9867),s=i(6015),o=i(8318);function r(t,e,i,r,a=new n.d(t,i,r)){if(!a.closed)return e instanceof o.y?e.subscribe(a):(0,s.s)(e)(a)}},7632:(t,e,i)=>{"use strict";function n(t,e,i,n){return new(i||(i=Promise))(function(s,o){function r(t){try{c(n.next(t))}catch(e){o(e)}}function a(t){try{c(n.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(r,a)}c((n=n.apply(t,e||[])).next())})}i.d(e,{mG:()=>n})},306:t=>{"use strict";t.exports={i8:"5.3.0"}}},t=>{"use strict";t(t.s=1523)}]); \ No newline at end of file diff --git a/dist/apps/publications/assets/config/defaultConfig.json b/dist/apps/publications/assets/config/defaultConfig.json index b0b17297d..432835d2b 100644 --- a/dist/apps/publications/assets/config/defaultConfig.json +++ b/dist/apps/publications/assets/config/defaultConfig.json @@ -88,7 +88,6 @@ "sidemenu_text_color": "#ffffff", "sidemenu_bg_color": "#263238", "sidemenu_border_color": "#071e24", - "sidemenu_item_icon_color": "#ffffff", "sidemenu_hover_color": "#566268", "sidemenu-link-active": "#465258", "sidemenu_active_text_color": "#ffffff", diff --git a/dist/apps/publications/index.html b/dist/apps/publications/index.html index 8e456a331..fb6d6dbf1 100644 --- a/dist/apps/publications/index.html +++ b/dist/apps/publications/index.html @@ -5,9 +5,9 @@ Publications - + - +
@@ -39,7 +39,6 @@
-
- + diff --git a/dist/apps/publications/main.310cc1663fc0210667ad.js b/dist/apps/publications/main.5fd7522a96cc5d318636.js similarity index 57% rename from dist/apps/publications/main.310cc1663fc0210667ad.js rename to dist/apps/publications/main.5fd7522a96cc5d318636.js index 5d74cf810..8b017b6b0 100644 --- a/dist/apps/publications/main.310cc1663fc0210667ad.js +++ b/dist/apps/publications/main.5fd7522a96cc5d318636.js @@ -1 +1 @@ -(self.webpackChunkperun_web_apps=self.webpackChunkperun_web_apps||[]).push([[179],{3619:t=>{function e(t){return Promise.resolve().then(()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=()=>[],e.resolve=e,e.id=3619,t.exports=e},6802:(t,e,i)=>{"use strict";var n=i(1511),s=i(1572);class o extends n.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class r extends o{static makeCurrent(){(0,n.HT)(new r)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(c=c||document.querySelector("base"),c?c.getAttribute("href"):null);return null==e?null:function(t){a=a||document.createElement("a"),a.setAttribute("href",t);const e=a.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){c=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return(0,n.Mx)(document.cookie,t)}}let a,c=null;const u=new s.OlP("TRANSITION_ID"),l=[{provide:s.ip1,useFactory:function(t,e,i){return()=>{i.get(s.CZH).donePromise.then(()=>{const i=(0,n.q)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>i.remove(t))})}},deps:[u,n.K0,s.zs3],multi:!0}];class h{static init(){(0,s.VLi)(new h)}addToWindow(t){s.dqk.getAngularTestability=(e,i=!0)=>{const n=t.findTestabilityInTree(e,i);if(null==n)throw new Error("Could not find testability for element.");return n},s.dqk.getAllAngularTestabilities=()=>t.getAllTestabilities(),s.dqk.getAllAngularRootElements=()=>t.getAllRootElements(),s.dqk.frameworkStabilizers||(s.dqk.frameworkStabilizers=[]),s.dqk.frameworkStabilizers.push(t=>{const e=s.dqk.getAllAngularTestabilities();let i=e.length,n=!1;const o=function(e){n=n||e,i--,0==i&&t(n)};e.forEach(function(t){t.whenStable(o)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:i?(0,n.q)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let d=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const p=new s.OlP("EventManagerPlugins");let f=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,i){return this._findPluginFor(e).addEventListener(t,e,i)}addGlobalEventListener(t,e,i){return this._findPluginFor(e).addGlobalEventListener(t,e,i)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const i=this._plugins;for(let n=0;n{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),_=(()=>{class t extends m{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,i){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,i.push(e.appendChild(n))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(w),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,i)=>{this._addStylesToHost(t,i,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(w))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function w(t){(0,n.q)().remove(t)}const y={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/"},b=/%COMP%/g;function A(t,e,i){for(let n=0;n{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let k=(()=>{class t{constructor(t,e,i){this.eventManager=t,this.sharedStylesHost=e,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new T(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case s.ifc.Emulated:{let i=this.rendererByCompId.get(e.id);return i||(i=new C(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,i)),i.applyToHost(t),i}case 1:case s.ifc.ShadowDom:return new S(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=A(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(f),s.LFG(_),s.LFG(s.AFp))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class T{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(y[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,n){if(n){e=n+":"+e;const s=y[n];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const n=y[i];n?t.removeAttributeNS(n,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,n){n&(s.JOm.DashCase|s.JOm.Important)?t.style.setProperty(e,i,n&s.JOm.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&s.JOm.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,v(i)):this.eventManager.addEventListener(t,e,v(i))}}class C extends T{constructor(t,e,i,n){super(t),this.component=i;const s=A(n+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(b,n+"-"+i.id),this.hostAttr="_nghost-%COMP%".replace(b,n+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class S extends T{constructor(t,e,i,n){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=A(n.id,n.styles,[]);for(let o=0;o{class t extends g{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,i){return t.addEventListener(e,i,!1),()=>this.removeEventListener(t,e,i)}removeEventListener(t,e,i){return t.removeEventListener(e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const E=["alt","control","meta","shift"],L={"\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"},x={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"},R={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let D=(()=>{class t extends g{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,s){const o=t.parseEventName(i),r=t.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,n.q)().onAndCancel(e,o.domEventName,r))}static parseEventName(e){const i=e.toLowerCase().split("."),n=i.shift();if(0===i.length||"keydown"!==n&&"keyup"!==n)return null;const s=t._normalizeKey(i.pop());let o="";if(E.forEach(t=>{const e=i.indexOf(t);e>-1&&(i.splice(e,1),o+=t+".")}),o+=s,0!=i.length||0===s.length)return null;const r={};return r.domEventName=n,r.fullKey=o,r}static getEventFullKey(t){let e="",i=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&x.hasOwnProperty(e)&&(e=x[e]))}return L[e]||e}(t);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),E.forEach(n=>{n!=i&&(0,R[n])(t)&&(e+=n+".")}),e+=i,e}static eventCallback(e,i,n){return s=>{t.getEventFullKey(s)===e&&n.runGuarded(()=>i(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,s.Yz7)({factory:function(){return(0,s.LFG)(I)},token:t,providedIn:"root"}),t})();function P(t){return new I(t.get(n.K0))}let I=(()=>{class t extends z{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case s.q3G.NONE:return e;case s.q3G.HTML:return(0,s.qzn)(e,"HTML")?(0,s.z3N)(e):(0,s.EiD)(this._doc,String(e)).toString();case s.q3G.STYLE:return(0,s.qzn)(e,"Style")?(0,s.z3N)(e):e;case s.q3G.SCRIPT:if((0,s.qzn)(e,"Script"))return(0,s.z3N)(e);throw new Error("unsafe value used in a script context");case s.q3G.URL:return(0,s.yhl)(e),(0,s.qzn)(e,"URL")?(0,s.z3N)(e):(0,s.mCW)(String(e));case s.q3G.RESOURCE_URL:if((0,s.qzn)(e,"ResourceURL"))return(0,s.z3N)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return(0,s.JVY)(t)}bypassSecurityTrustStyle(t){return(0,s.L6k)(t)}bypassSecurityTrustScript(t){return(0,s.eBb)(t)}bypassSecurityTrustUrl(t){return(0,s.LAX)(t)}bypassSecurityTrustResourceUrl(t){return(0,s.pB0)(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=(0,s.Yz7)({factory:function(){return P((0,s.LFG)(s.gxx))},token:t,providedIn:"root"}),t})();const O=(0,s.eFA)(s._c5,"browser",[{provide:s.Lbi,useValue:n.bD},{provide:s.g9A,useValue:function(){r.makeCurrent(),h.init()},multi:!0},{provide:n.K0,useFactory:function(){return(0,s.RDi)(document),document},deps:[]}]),H=[[],{provide:s.zSh,useValue:"root"},{provide:s.qLn,useFactory:function(){return new s.qLn},deps:[]},{provide:p,useClass:M,multi:!0,deps:[n.K0,s.R0b,s.Lbi]},{provide:p,useClass:D,multi:!0,deps:[n.K0]},[],{provide:k,useClass:k,deps:[f,_,s.AFp]},{provide:s.FYo,useExisting:k},{provide:m,useExisting:_},{provide:_,useClass:_,deps:[n.K0]},{provide:s.dDg,useClass:s.dDg,deps:[s.R0b]},{provide:f,useClass:f,deps:[p,s.R0b]},{provide:n.JF,useClass:d,deps:[]},[]];let Y=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:s.AFp,useValue:e.appId},{provide:u,useExisting:s.AFp},l]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(t,12))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:H,imports:[n.ez,s.hGG]}),t})();function B(){return new j((0,s.LFG)(n.K0))}let j=(()=>{class t{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=(0,s.Yz7)({factory:B,token:t,providedIn:"root"}),t})();"undefined"!=typeof window&&window;var F=i(9063);class N{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const K=new s.OlP("basePath");class q{constructor(t={}){this.apiKeys=t.apiKeys,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.withCredentials=t.withCredentials,this.encoder=t.encoder}selectHeaderContentType(t){if(0===t.length)return;const e=t.find(t=>this.isJsonMime(t));return void 0===e?t[0]:e}selectHeaderAccept(t){if(0===t.length)return;const e=t.find(t=>this.isJsonMime(t));return void 0===e?t[0]:e}isJsonMime(t){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==t&&(e.test(t)||"application/json-patch+json"===t.toLowerCase())}}let U=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}convertAttributeToNonunique(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}convertAttributeToUnique(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("attribute",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteAttributeDefinitions(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let n=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("attributes[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllAttributeDefinitions(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAttribute(t,e,i,n,s,o,r,a,c,u,l,h="body",d=!1){let p=new F.LE({encoder:this.encoder});null!=t&&(p=p.set("attributeName",t)),null!=e&&(p=p.set("attributeId",e)),null!=i&&(p=p.set("facility",i)),null!=n&&(p=p.set("user",n)),null!=s&&(p=p.set("vo",s)),null!=o&&(p=p.set("resource",o)),null!=r&&(p=p.set("member",r)),null!=a&&(p=p.set("group",a)),null!=c&&(p=p.set("host",c)),null!=u&&(p=p.set("userExtSource",u)),null!=l&&(p=p.set("key",l));let f=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(f=f.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(f=f.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;f=f.set("Authorization","Bearer "+t)}const g=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==g&&(f=f.set("Accept",g)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{params:p,withCredentials:this.configuration.withCredentials,headers:f,observe:h,reportProgress:d})}getAttributeDefinitionById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeDefinitionByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeDefinitionsByNamespace(t,e="body",i=!1){if(null==t)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("namespace",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeModulesDependenciesForAttributeGraphText(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("format",t)),null!=e&&(s=s.set("attrName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAttributeModulesDependenciesGraphText(t,e="body",i=!1){if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("format",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeRights(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributesDefinitionWithRights(t,e,i,n,s,o,r,a,c="body",u=!1){let l=new F.LE({encoder:this.encoder});null!=t&&(l=l.set("member",t)),null!=e&&(l=l.set("user",e)),null!=i&&(l=l.set("vo",i)),null!=n&&(l=l.set("group",n)),null!=s&&(l=l.set("resource",s)),null!=o&&(l=l.set("facility",o)),null!=r&&(l=l.set("host",r)),null!=a&&(l=l.set("userExtSource",a));let h=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(h=h.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(h=h.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;h=h.set("Authorization","Bearer "+t)}const d=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==d&&(h=h.set("Accept",d)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{params:l,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:u})}getEntitylessAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("key",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getEntitylessAttributesByKey(t,e="body",i=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("key",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEntitylessAttributesByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("attrName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEntitylessAttributesWithKeys(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("attrName",t)),e&&e.forEach(t=>{s=s.append("keys[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getEntitylessKeys(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilityAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilityResourceUserMemberAttributes(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==n)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("user",i)),null!=n&&(r=r.set("member",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getFacilityUserAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupResourceAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getGroupResourceAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getGroupResourceAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getHostAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getHostAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getHostAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("host",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getLogins(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getLogins.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberAndUserAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==e)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("workWithUserAttributes",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberAndUserAttributesByNames(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("workWithUserAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberGroupAndUserAttributesByNames(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attrNames[]",t)}),null!=n&&(r=r.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberGroupAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("attributeId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberGroupAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("attributeName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberGroupAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberGroupAttributesByNames(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberResourceAndUserFacilityAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("workWithUserAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberResourceAndUserFacilityAttributesByNames(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attrNames[]",t)}),null!=n&&(r=r.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberResourceAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberResourceAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberResourceAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesFacilityService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesFacilityServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let s=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("services[]",t)}),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesGroupResourceService(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("group",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getRequiredAttributesHostService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==e)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("host",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("workWithUserAttributes",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesMemberGroup(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("workWithUserAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getRequiredAttributesMemberGroupResourceService(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==n)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let a=new F.LE({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("group",i)),null!=n&&(a=a.set("member",n)),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getRequiredAttributesMemberGroupService(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("member",i)),null!=n&&(r=r.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRequiredAttributesMemberResource(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("workWithUserAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getRequiredAttributesMemberResourceService(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("member",i)),null!=n&&(r=r.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRequiredAttributesResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesResourceService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesResourceServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let s=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("services[]",t)}),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesUserFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesVoService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("vo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourceAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceGroupAndGroupAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==i)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("workWithGroupAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getResourceGroupAndGroupAttributesByNames(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attrNames[]",t)}),null!=n&&(r=r.set("workWithGroupAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getResourceGroupAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceGroupMemberAttributesByNames(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==n)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("member",i)),n&&n.forEach(t=>{r=r.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getUserAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserExtSourceAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserExtSourceAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserExtSourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("userExtSource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourceAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserFacilityAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("attributeId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getUserFacilityAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("attributeName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getUserFacilityAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getVoAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getVoAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getVoAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeAttributesForFacilityResourceGroupUserMember(t,e,i,n,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==i)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==n)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let c=new F.LE({encoder:this.encoder});null!=t&&(c=c.set("facility",t)),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("group",i)),null!=n&&(c=c.set("user",n)),null!=s&&(c=c.set("member",s)),o&&o.forEach(t=>{c=c.append("attributes[]",t)});let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}removeAttributesForFacilityResourceUserMember(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==i)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==n)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let a=new F.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("user",i)),null!=n&&(a=a.set("member",n)),s&&s.forEach(t=>{a=a.append("attributes[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}removeEntitylessAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("key",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupResourceAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attribute",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeGroupResourceAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeGroupResourceAttributesWorkWithGroupAttributes(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)}),null!=n&&(r=r.set("workWithGroupAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeHostAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeHostAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeMemberAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeMemberAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeMemberAttributesWorkWithUserAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)}),null!=i&&(o=o.set("workWithUserAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeMemberGroupAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("attribute",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeMemberGroupAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeMemberGroupAttributesWorkWithUserAttributes(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)}),null!=n&&(r=r.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeMemberResourceAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attribute",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeMemberResourceAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeResourceAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeResourceAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUesAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserExtSourceAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserFacilityAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("attribute",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeUserFacilityAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),i&&i.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeVoAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeVoAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}setAttributeRights(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAttributeRights was null or undefined when calling setAttributeRights.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setEntitylessAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityResourceGroupUserMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityResourceUserMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setHostAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetHostAttribute was null or undefined when calling setHostAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setHostAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetHostAttributes was null or undefined when calling setHostAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupWithUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAndUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberWithUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceGroupWithGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserAttribute was null or undefined when calling setUserAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserAttributes was null or undefined when calling setUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserExtSourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserExtSourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserFacilityAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setVoAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoAttribute was null or undefined when calling setVoAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setVoAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoAttributes was null or undefined when calling setVoAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Z=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}auditMessagesManagerLog(t,e="body",i=!1){if(null==t)throw new Error("Required parameter msg was null or undefined when calling auditMessagesManagerLog.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("msg",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/log`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createAuditerConsumer(t,e="body",i=!1){if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling createAuditerConsumer.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("consumerName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/createAuditerConsumer`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllAuditerConsumers(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getAllAuditerConsumers`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAuditerMessagesCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getAuditerMessagesCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getLastMessageId(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getLastMessageId`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getMessages(t,e="body",i=!1){let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("count",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getMessages`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMessagesByCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter count was null or undefined when calling getMessagesByCount.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("count",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getMessagesByCount`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMessagesPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetMessagesPage was null or undefined when calling getMessagesPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/auditMessagesManager/getMessagesPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}pollConsumerMessages(t,e="body",i=!1){if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling pollConsumerMessages.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("consumerName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/pollConsumerMessages`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}setLastProcessedId(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling setLastProcessedId.");if(null==e)throw new Error("Required parameter lastProcessedId was null or undefined when calling setLastProcessedId.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("consumerName",t)),null!=e&&(s=s.set("lastProcessedId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/setLastProcessedId`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),G=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}getAllPolicies(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllRolesManagementRules(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAuthzAdminGroups(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("role",t)),null!=e&&(o=o.set("complementaryObjectId",e)),null!=i&&(o=o.set("complementaryObjectName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getAuthzRichAdmins(t,e,i,n,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==n)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let c=new F.LE({encoder:this.encoder});null!=t&&(c=c.set("role",t)),null!=e&&(c=c.set("complementaryObjectId",e)),null!=i&&(c=c.set("complementaryObjectName",i)),n&&n.forEach(t=>{c=c.append("specificAttributes",t)}),null!=s&&(c=c.set("allUserAttributes",s)),null!=o&&(c=c.set("onlyDirectAdmins",o));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}getFacilitiesWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let s=new F.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupRoleNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupRoles(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("groupId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let s=new F.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getLoggedUser(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getMembersWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let s=new F.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getPerunPrincipal(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPrincipalRoleNames(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getResourcesWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let s=new F.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSecurityTeamsWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let s=new F.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserRoleNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserRoles(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("userId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let s=new F.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}isFacilityAdmin(t,e="body",i=!1){let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isGroupAdmin(t,e="body",i=!1){let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isPerunAdmin(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}isVoAdmin(t,e="body",i=!1){let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}keepAlive(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}loadAuthorizationComponents(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}setRoleWithGroupComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter setRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setRoleWithUserComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter setRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unsetRoleWithGroupComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter unsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unsetRoleWithUserComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter unsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),V=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}createAutorship(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateAuthorship was null or undefined when calling createAutorship.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createAuthorship`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createCategoryCat(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateCategory was null or undefined when calling createCategoryCat.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/cat`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createCategoryNR(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateCategory1 was null or undefined when calling createCategoryNR.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/n-r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createPublication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreatePublication was null or undefined when calling createPublication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublication`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createPublicationSystem(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreatePublicationSystem was null or undefined when calling createPublicationSystem.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublicationSystem`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createThanks(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateThanks was null or undefined when calling createThanks.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createThanks`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAuthorship(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter publicationId was null or undefined when calling deleteAuthorship.");if(null==e)throw new Error("Required parameter userId was null or undefined when calling deleteAuthorship.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("publicationId",t)),null!=e&&(s=s.set("userId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteAuthorship`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteCategory(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteCategory.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteCategory`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deletePublication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deletePublication.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deletePublicationSystem(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deletePublicationSystem.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublicationSystem`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteThanks(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteThanks.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteThanks`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findAllAuthors(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAllAuthors`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}findAuthorsByPublicationId(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findAuthorsByPublicationId.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAuthorsByPublicationId`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findExternalPublications(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling findExternalPublications.");if(null==e)throw new Error("Required parameter yearSince was null or undefined when calling findExternalPublications.");if(null==i)throw new Error("Required parameter yearTill was null or undefined when calling findExternalPublications.");if(null==n)throw new Error("Required parameter pubSysNamespace was null or undefined when calling findExternalPublications.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("yearSince",e)),null!=i&&(r=r.set("yearTill",i)),null!=n&&(r=r.set("pubSysNamespace",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findExternalPublications`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}findNewAuthors(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findNewAuthors.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findNewAuthors`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findPublicationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findPublicationById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findPublicationsByFilter(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter userId was null or undefined when calling findPublicationsByFilter.");let o=new F.LE({encoder:this.encoder});null!=e&&(o=o.set("yearSince",e)),null!=i&&(o=o.set("yearTill",i)),null!=t&&(o=o.set("userId",t));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByFilter`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}findPublicationsByGUIFilter(t,e,i,n,s,o,r,a,c,u="body",l=!1){let h=new F.LE({encoder:this.encoder});null!=t&&(h=h.set("title",t)),null!=e&&(h=h.set("isbn",e)),null!=i&&(h=h.set("doi",i)),null!=n&&(h=h.set("id",n)),null!=s&&(h=h.set("year",s)),null!=o&&(h=h.set("category",o)),null!=r&&(h=h.set("yearSince",r)),null!=a&&(h=h.set("yearTill",a)),null!=c&&(h=h.set("userId",c));let d=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(d=d.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(d=d.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;d=d.set("Authorization","Bearer "+t)}const p=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==p&&(d=d.set("Accept",p)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByGUIFilter`,{params:h,withCredentials:this.configuration.withCredentials,headers:d,observe:u,reportProgress:l})}findSimilarPublications(t,e,i,n="body",s=!1){let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("title",t)),null!=e&&(o=o.set("doi",e)),null!=i&&(o=o.set("isbn",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findSimilarPublications`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getCategories(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getCategories`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPublicationSystems(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getPublicationSystems`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getRank(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRank.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getRank`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichThanksByPublicationId(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichThanksByPublicationId.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getRichThanksByPublicationId`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}lockPublications(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputLockPublications was null or undefined when calling lockPublications.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/lockPublications`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateCategory(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateCategory was null or undefined when calling updateCategory.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updateCategory`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updatePublication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdatePublication was null or undefined when calling updatePublication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublication`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updatePublicationSystem(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdatePublicationSystem was null or undefined when calling updatePublicationSystem.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublicationSystem`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}getCurrentDatabaseVersion(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getCurrentDatabaseVersion`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getDatabaseDriverInformation(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getDatabaseDriverInformation`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getDatabaseInformation(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getDatabaseInformation`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getTimeOfQueryPerformance(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getTimeOfQueryPerformance`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),W=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}addExtSourceWithGroupSource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling addExtSourceWithGroupSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithGroupSource.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("source",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/g-s`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addExtSourceWithVoSource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addExtSourceWithVoSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithVoSource.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("source",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/v-s`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createExtSourceFromExtSourceObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter extSourceObject was null or undefined when calling createExtSourceFromExtSourceObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/extSourcesManager/createExtSource/es`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createExtSourceWithNameType(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createExtSourceWithNameType.");if(null==e)throw new Error("Required parameter type was null or undefined when calling createExtSourceWithNameType.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("name",t)),null!=e&&(s=s.set("type",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/createExtSource/n-t`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteExtSource.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/deleteExtSource`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getExtSourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getExtSourceById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getExtSourceByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getExtSourceByName.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("name",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceByName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getExtSources(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSources`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getGroupExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupExtSources.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getGroupExtSources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoExtSources.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getVoExtSources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}loadExtSourcesDefinitions(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/loadExtSourcesDefinitions`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeExtSourceWithGroupSource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeExtSourceWithGroupSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithGroupSource.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("source",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/g-s`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeExtSourceWithVoSource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeExtSourceWithVoSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithVoSource.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("source",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/v-s`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),J=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}addFacilityAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroup.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addFacilityAdminGroupByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroupByFacilityName.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroupByFacilityName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addFacilityAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUser.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addFacilityAdminUserByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUserByFacilityName.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUserByFacilityName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addFacilityOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwner.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwner.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addFacilityOwnerByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addFacilityOwnerByFacilityNameOwnerName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-o-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addFacilityOwnerByOwnerName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByOwnerName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/o-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addHost(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHost.");if(null==e)throw new Error("Required parameter hostname was null or undefined when calling addHost.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("hostname",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addHostByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHostByFacilityName.");if(null==e)throw new Error("Required parameter hostname was null or undefined when calling addHostByFacilityName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("hostname",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addHosts(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHosts.");if(null==e)throw new Error("Required parameter hostnames was null or undefined when calling addHosts.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("hostnames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addHostsByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHostsByFacilityName.");if(null==e)throw new Error("Required parameter hostnames was null or undefined when calling addHostsByFacilityName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("hostnames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}assignSecurityTeam(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeam.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeam.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("securityTeam",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}assignSecurityTeamByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeamByFacilityName.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeamByFacilityName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("securityTeam",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributes.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyAttributesByDestinationName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributesByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesByDestinationName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacilityName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/dest-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyAttributesBySourceDestinationNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacilityName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-dest-names`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyAttributesBySourceName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributesBySourceName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyManagers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagers.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyManagers.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyManagersByDestinationName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagersByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersByDestinationName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacilityName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/dest-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyManagersBySourceDestinationNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacilityName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-dest-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyManagersBySourceName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyManagersBySourceName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyOwners(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwners.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyOwners.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyOwnersByDestinationName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwnersByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersByDestinationName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacilityName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/dest-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyOwnersBySourceDestinationNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacilityName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-dest-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyOwnersBySourceName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyOwnersBySourceName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createFacility.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("name",t)),null!=e&&(s=s.set("description",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/createFacility`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling deleteFacility.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("force",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling deleteFacilityByFacilityName.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility/f-name`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilities`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllowedGroups(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroups.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("service",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getAllowedGroupsByFacilityName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroupsByFacilityName.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("service",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups/f-name`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getAllowedRichGroupsWithAttributes(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributes.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributes.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("vo",i)),null!=n&&(r=r.set("service",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAllowedRichGroupsWithAttributesByFacilityName(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("vo",i)),null!=n&&(r=r.set("service",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes/f-name`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAllowedUsersOfFacility(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacility.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("service",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getAllowedUsersOfFacilityByFacilityName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacilityByFacilityName.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("service",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s/f-name`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getAllowedVos(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedVos.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedVosByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedVosByFacilityName.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos/f-name`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedFacilitiesByGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedFacilitiesByGroup.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/group`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedFacilitiesByMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedFacilitiesByMember.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/member`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedFacilitiesByService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedFacilitiesByService.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/service`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedFacilitiesByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedFacilitiesByUser.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/user`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesByAssignedServiceForFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResourcesByAssignedService`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAssignedResourcesForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacility.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesForFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacilityByFacilityName.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacility.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesForFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityByFacilityName.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedSecurityTeams(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeams.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedSecurityTeamsByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeamsByFacilityName.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedUsers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsers.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAssignedUsersByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsersByFacilityName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getBansForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facilityId was null or undefined when calling getBansForFacility.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facilityId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForFacility`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getBansForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getBansForUser.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEnrichedFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedFacilities`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getEnrichedHosts(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedHosts.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getEnrichedHosts.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedHosts`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilitiesByAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttribute.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttribute.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeName",t)),null!=e&&(s=s.set("attributeValue",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByAttribute`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilitiesByDestination(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling getFacilitiesByDestination.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("destination",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByDestination`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilitiesByHostName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling getFacilitiesByHostName.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByHostName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilitiesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getFacilitiesByIds.");let n=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilitiesCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFacilitiesWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilitiesWhereUserIsAdmin.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesWhereUserIsAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAdminGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroups.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAdminUsers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsers.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsers.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("onlyDirectAdmins",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilityAdminUsersByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsersByFacilityName.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsersByFacilityName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("onlyDirectAdmins",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilityBan(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityBan.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityBan.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBan`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilityBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getFacilityBanById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBanById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getFacilityById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getFacilityByName.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("name",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityByName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityForHost(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getFacilityForHost.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("host",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityForHost`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityOwners(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwners.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityOwnersByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwnersByFacilityName.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getHostById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHosts(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHosts.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostsByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsByFacilityName.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostsByHostname(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling getHostsByHostname.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsByHostname`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostsCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsCount.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostsCountByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsCountByFacilityName.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getOwnerFacilities(t,e="body",i=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling getOwnerFacilities.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("owner",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwnerFacilities`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getRichFacilities`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeBanByUserIdFacilityId(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeBanByUserIdFacilityId.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeBanByUserIdFacilityId.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byUserIdFacilityId`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroup.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityAdminGroupByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroupByFacilityName.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroupByFacilityName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUser.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityAdminUserByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUserByFacilityName.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUserByFacilityName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeFacilityBanById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byId`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeFacilityOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwner.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwner.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityOwnerByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityOwnerByFacilityNameOwnerName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-o-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityOwnerByOwnerName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByOwnerName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/o-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeHost(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHost.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("host",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHost`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeHostByHostname(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling removeHostByHostname.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHostByHostname`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeHosts(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeHosts.");if(null==e)throw new Error("Required parameter hosts was null or undefined when calling removeHosts.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("hosts[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeHostsByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeHostsByFacilityName.");if(null==e)throw new Error("Required parameter hosts was null or undefined when calling removeHostsByFacilityName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("hosts[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeSecurityTeam(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeam.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeam.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("securityTeam",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeSecurityTeamByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeamByFacilityName.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeamByFacilityName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("securityTeam",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}setFacilityBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetBanForUserOnFacility was null or undefined when calling setFacilityBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFacility was null or undefined when calling updateFacility.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateFacility`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFacilityBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateBanForFacility was null or undefined when calling updateFacilityBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Q=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}getFacilityAdminGroupsByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroupsByFacilityName.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),X=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}addMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling addMember.");let s=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("member",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addMembers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling addMembers.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("members[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}canExtendMembershipInGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createGroupUnion(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resultGroup",t)),null!=e&&(s=s.set("operandGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createGroupWithParentGroupNameDescription(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("parentGroup",t)),null!=e&&(o=o.set("name",e)),null!=i&&(o=o.set("description",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}createGroupWithVoNameDescription(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("name",e)),null!=i&&(o=o.set("description",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}deleteGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("force",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputDeleteGroups was null or undefined when calling deleteGroups.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/deleteGroups`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}extendMembershipInGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}forceAllSubGroupsSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}forceGroupStructureSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}forceGroupSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllGroupsFromAllVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups/all`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllMemberGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllRichGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");let n=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("attrNames[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllRichGroupsWithAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAllRichSubGroupsWithGroupAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==e)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("name",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupByName`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupMemberById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==e)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("member",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupMembersCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupMembersCountsByGroupStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupMembersCountsByVoStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupRichMembersByIds(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==e)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("members[]",t)}),i&&i.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getGroupUnions(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==e)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("reverseDirection",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupUnions`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupsByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let n=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedGroups was null or undefined when calling getGroupsPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getGroupsPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getIndirectMembershipPaths(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberRichGroupsWithAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRichGroupByIdWithAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("groupId",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSubgroupsPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getSubgroupsPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}isGroupMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==e)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isGroupMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}moveGroupWithDestinationGroupMovingGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let s=new F.LE({encoder:this.encoder});null!=e&&(s=s.set("destinationGroup",e)),null!=t&&(s=s.set("movingGroup",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupUnion(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resultGroup",t)),null!=e&&(s=s.set("operandGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMember.");let s=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("member",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeMembers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("members[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}setGroupsMemberStatus(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==e)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==i)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("status",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}updateGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateGroup was null or undefined when calling updateGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/updateGroup`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),tt=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}getGroupMemberData(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/integrationManager/getGroupMemberData`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),et=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}canExtendMembership(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/canExtendMembership`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createMemberForCandidate(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/c`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createMemberForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberForUser was null or undefined when calling createMemberForUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createMemberFromExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/extSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSpecificMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSpecificMember was null or undefined when calling createSpecificMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSpecificMember`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMember1 was null or undefined when calling createSponsoredMembers.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMembersFromCSV(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let n=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("members[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}extendMembership(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findCompleteRichMembersByAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let o=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("attrsNames[]",t)}),null!=e&&(o=o.set("searchString",e)),i&&i.forEach(t=>{o=o.append("allowedStatuses[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}findCompleteRichMembersForGroup(t,e,i,n,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==n)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let c=new F.LE({encoder:this.encoder});null!=t&&(c=c.set("group",t)),e&&e.forEach(t=>{c=c.append("attrsNames[]",t)}),s&&s.forEach(t=>{c=c.append("allowedStatuses[]",t)}),o&&o.forEach(t=>{c=c.append("allowedGroupStatuses[]",t)}),null!=i&&(c=c.set("searchString",i)),null!=n&&(c=c.set("lookingInParentGroup",n));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}findCompleteRichMembersForVo(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("attrsNames[]",t)}),n&&n.forEach(t=>{r=r.append("allowedStatuses[]",t)}),null!=i&&(r=r.set("searchString",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}findMembersInVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("searchString",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findMembersInVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}findSponsoredCompleteRichMembersForVo(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==n)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("attrsNames[]",t)}),null!=i&&(r=r.set("searchString",i)),null!=n&&(r=r.set("onlySponsored",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAllMembers(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllMembers`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllNamespacesRules(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllSponsoredMembersAndTheirSponsors(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getCompleteRichMembersForGroup(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let a=new F.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),i&&i.forEach(t=>{a=a.append("allowedStatuses[]",t)}),n&&n.forEach(t=>{a=a.append("allowedGroupStatuses[]",t)}),null!=e&&(a=a.set("lookingInParentGroup",e)),s&&s.forEach(t=>{a=a.append("attrsNames[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getCompleteRichMembersForGroupResource(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==i)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==n)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attrsNames[]",t)}),n&&n.forEach(t=>{r=r.append("allowedStatuses[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getCompleteRichMembersForVo(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("allowedStatuses[]",t)}),i&&i.forEach(t=>{o=o.append("attrsNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberByExtSourceNameAndExtLogin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==i)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("extLogin",e)),null!=i&&(o=o.set("extSourceName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberByUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByUser`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMembers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("status",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMembersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let n=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMembersByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMembersCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMembersPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedMembers was null or undefined when calling getMembersPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/getMembersPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getMembersWithStatusCount(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==e)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("status",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount/status`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRichMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichMemberWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichMembersByIds(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let s=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)}),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getSponsoredMembersAndTheirSponsors(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSponsorsByMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/member`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSponsorsByVo(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("extSourceName",e)),null!=i&&(r=r.set("extLogin",i)),n&&n.forEach(t=>{r=r.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/vo`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}moveMembership(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==e)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==i)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("sourceUser",e)),null!=i&&(o=o.set("targetUser",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeSponsor(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("sponsor",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}sendAccountActivationLinkEmail(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==n)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("namespace",e)),null!=i&&(r=r.set("emailAttributeURN",i)),null!=n&&(r=r.set("language",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}sendPasswordResetLinkEmail(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==n)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let a=new F.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("emailAttributeURN",i)),null!=n&&(a=a.set("language",n)),null!=s&&(a=a.set("baseUrl",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}setSponsoredMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/setSponsoredMember`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setSponsorshipForMember(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("sponsoredMember",t)),null!=e&&(o=o.set("sponsor",e)),null!=i&&(o=o.set("validityTo",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}setStatus(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==e)throw new Error("Required parameter status was null or undefined when calling setStatus.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("status",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}sponsorMember(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("sponsor",e)),null!=i&&(o=o.set("validityTo",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}updateSponsorshipValidity(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("sponsor",e)),null!=i&&(o=o.set("validityTo",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}validateMemberAsync(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),it=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}createOwner(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateOwner was null or undefined when calling createOwner.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/ownersManager/createOwner`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("owner",t)),null!=e&&(s=s.set("force",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAllOwners(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwners`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getOwnerById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getOwnerByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("owner",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerByName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),nt=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}sentMessageToRTWithMemberQueue(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("memberId",t)),null!=e&&(r=r.set("queue",e)),null!=i&&(r=r.set("subject",i)),null!=n&&(r=r.set("text",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}sentMessageToRTWithQueue(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("queue",t)),null!=e&&(o=o.set("subject",e)),null!=i&&(o=o.set("text",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}sentMessageToRTWithVo(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("voId",t)),null!=e&&(o=o.set("subject",e)),null!=i&&(o=o.set("text",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}sentMessageToRTWithVoQueue(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("voId",t)),null!=e&&(r=r.set("queue",e)),null!=i&&(r=r.set("subject",i)),null!=n&&(r=r.set("text",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),st=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}addApplicationMailForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addApplicationMailForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addGroupsToAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let n=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("groups[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}approveApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}checkForSimilarUsersWithAuthInfo(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}consolidateIdentityUsingToken(t,e="body",i=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("token",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}copyFormFromGroupToGroup(t,e,i="body",n=!1){let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyFormFromGroupToVo(t,e,i="body",n=!1){let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toVo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyFormFromVoToGroup(t,e,i="body",n=!1){let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyFormFromVoToVo(t,e,i="body",n=!1){let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toVo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyMailsFromGroupToGroup(t,e,i="body",n=!1){let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyMailsFromGroupToVo(t,e,i="body",n=!1){let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toVo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyMailsFromVoToGroup(t,e,i="body",n=!1){let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyMailsFromVoToVo(t,e,i="body",n=!1){let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toVo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createApplicationFormInGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createApplicationFormInVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteApplicationMailForGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("id",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteApplicationMailForVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("id",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteGroupsFromAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let n=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("groups[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationDataById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationMailsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationMailsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationsForGroup(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(t=>{r=r.append("state[]",t)}),null!=i&&(r=r.set("dateFrom",i)),null!=n&&(r=r.set("dateTo",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getApplicationsForMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getApplicationsForVo(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("state[]",t)}),null!=i&&(r=r.set("dateFrom",i)),null!=n&&(r=r.set("dateTo",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getConsolidatorToken(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFormItemsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFormItemsForGroupWithType(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("type",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFormItemsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFormItemsForVoWithType(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("type",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupApplicationForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsToAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoApplicationForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}rejectApplication(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t)),null!=e&&(s=s.set("reason",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}sendInvitation(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let r=new F.LE({encoder:this.encoder});null!=i&&(r=r.set("voId",i)),null!=n&&(r=r.set("name",n)),null!=t&&(r=r.set("email",t)),null!=e&&(r=r.set("language",e));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}sendInvitationForGroup(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let a=new F.LE({encoder:this.encoder});null!=i&&(a=a.set("voId",i)),null!=n&&(a=a.set("groupId",n)),null!=s&&(a=a.set("name",s)),null!=t&&(a=a.set("email",t)),null!=e&&(a=a.set("language",e));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}sendInvitationGroupToExistingUser(t,e,i,n="body",s=!1){let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("userId",t)),null!=e&&(o=o.set("voId",e)),null!=i&&(o=o.set("groupId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}sendInvitationToExistingUser(t,e,i="body",n=!1){let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("userId",t)),null!=e&&(s=s.set("voId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}sendMessage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSendMessage was null or undefined when calling sendMessage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setSendingEnabled(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}submitApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSubmitApplication was null or undefined when calling submitApplication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateApplicationMail(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateForm was null or undefined when calling updateForm.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemData(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputFormItemData was null or undefined when calling updateFormItemData.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsData(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputFormItemData1 was null or undefined when calling updateFormItemsData.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}verifyApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ot=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}activateGroupResourceAssignment(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("async",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}addAdminToGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addAdminToUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addResourceSelfServiceGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addResourceSelfServiceUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}allowGroupsToResources(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");let o=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("groups[]",t)}),e&&e.forEach(t=>{o=o.append("resources[]",t)}),null!=i&&(o=o.set("async",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}assignGroupToResource(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let a=new F.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("async",i)),null!=n&&(a=a.set("assignInactive",n)),null!=s&&(a=a.set("autoAssignSubgroups",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}assignGroupToResources(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let a=new F.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),e&&e.forEach(t=>{a=a.append("resources[]",t)}),null!=i&&(a=a.set("async",i)),null!=n&&(a=a.set("assignInactive",n)),null!=s&&(a=a.set("autoAssignSubgroups",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}assignGroupsToResource(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let a=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{a=a.append("groups[]",t)}),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("async",i)),null!=n&&(a=a.set("assignInactive",n)),null!=s&&(a=a.set("autoAssignSubgroups",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}assignResourceTagToResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}assignService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling assignService.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}assignServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling assignServices.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("services[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}assignServicesPackage(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("servicesPackage",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCopyResource was null or undefined when calling copyResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/copyResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createResource(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==i)throw new Error("Required parameter name was null or undefined when calling createResource.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("name",i)),null!=n&&(r=r.set("description",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}createResourceTagWithResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createResourceTagWithTagName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("tagName",t)),null!=e&&(s=s.set("vo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deactivateGroupResourceAssignment(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteAllResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteAllResourcesTagsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAdminGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAdmins(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("onlyDirectAdmins",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdmins`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAllResourcesByResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAllResourcesTagsForResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllResourcesTagsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllResourcesWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedUsersOfResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedGroups(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("member",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAssignedMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedMembersWithStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembersWithStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesWithGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesWithMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesWithStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResourcesWithStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesWithGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesWithMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesWithMemberService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAssignedServicesToResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getBansForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getBansForResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForResource`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEnrichedResourceById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getEnrichedResourcesForFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getEnrichedResourcesForVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getFacility`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupAssignments(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceAssignments(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceBan(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBan`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBanById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourceByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==i)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("name",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceByName`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResources.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let n=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourcesCountForAll(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getResourcesCountForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourcesFromVoWhereUserIsAdmin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourcesWhereGroupIsAdmin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("group",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getResourcesWhereUserIsAdmin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("user",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getRichAdmins(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==e)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==i)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==n)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),e&&e.forEach(t=>{r=r.append("specificAttributes",t)}),null!=i&&(r=r.set("allUserAttributes",i)),null!=n&&(r=r.set("onlyDirectAdmins",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRichResourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichResourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let n=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getVo.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getVo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeAllResourceTagsFromResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeBanByMemberAndResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupAdminResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupFromResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupFromResources(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("resources[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupsFromResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let s=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeResourceBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeResourceSelfServiceGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeResourceSelfServiceUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeResourceTagFromResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}removeService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeService.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling removeServices.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("services[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeServicesPackage(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("servicesPackage",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserAdminResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}setResourceBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetBan was null or undefined when calling setResourceBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unallowGroupsFromResources(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let s=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),e&&e.forEach(t=>{s=s.append("resources[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}updateResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateResource was null or undefined when calling updateResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateResourceBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateBan was null or undefined when calling updateResourceBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateResourceTag was null or undefined when calling updateResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),rt=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}addDestination(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addDestination.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling addDestination.");if(null==i)throw new Error("Required parameter destination was null or undefined when calling addDestination.");if(null==n)throw new Error("Required parameter type was null or undefined when calling addDestination.");let a=new F.LE({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("facility",e)),null!=i&&(a=a.set("destination",i)),null!=n&&(a=a.set("type",n)),null!=s&&(a=a.set("propagationType",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestination`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}addDestinationToMultipleServices(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddDestinationToMultipleServices was null or undefined when calling addDestinationToMultipleServices.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestination`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addDestinationsDefinedByHostsOnFacilityWithFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithFacility.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/f`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddDestinationsDefinedByHostsOnFacility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestinationsDefinedByHostsOnFacility/lists-f`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/s-f`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addDestinationsForAllServicesOnFacility(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==i)throw new Error("Required parameter type was null or undefined when calling addDestinationsForAllServicesOnFacility.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("destination",e)),null!=i&&(r=r.set("type",i)),null!=n&&(r=r.set("propagationType",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsForAllServicesOnFacility`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}addRequiredAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addRequiredAttribute.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling addRequiredAttribute.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttribute`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addRequiredAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addRequiredAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling addRequiredAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttributes`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addServiceToServicesPackage(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling addServiceToServicesPackage.");if(null==e)throw new Error("Required parameter service was null or undefined when calling addServiceToServicesPackage.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("servicesPackage",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addServiceToServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}blockAllServicesOnDestinationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("destination",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/d`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}blockAllServicesOnDestinationByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationByName.");if(null==e)throw new Error("Required parameter destinationType was null or undefined when calling blockAllServicesOnDestinationByName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("destination",t)),null!=e&&(s=s.set("destinationType",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/dname-dtype`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}blockAllServicesOnFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling blockAllServicesOnFacility.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnFacility`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}blockServiceOnDestination(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestination.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("destination",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-d`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}blockServiceOnDestinationWithNameAndType(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==i)throw new Error("Required parameter destinationType was null or undefined when calling blockServiceOnDestinationWithNameAndType.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("destination",e)),null!=i&&(o=o.set("destinationType",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-dname-dtype`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}blockServiceOnFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling blockServiceOnFacility.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnFacility`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createService(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createService.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createService.");if(null==i)throw new Error("Required parameter script was null or undefined when calling createService.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("name",t)),null!=e&&(o=o.set("description",e)),null!=i&&(o=o.set("script",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createService`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}createServiceWithService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateService was null or undefined when calling createServiceWithService.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createService`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateServicesPackage was null or undefined when calling createServicesPackage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createServicesPackage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createServicesPackageByNameAndDescription(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createServicesPackageByNameAndDescription.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createServicesPackageByNameAndDescription.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("name",t)),null!=e&&(s=s.set("description",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling deleteService.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("force",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteService`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling deleteServicesPackage.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("servicesPackage",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteServicesPackage`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}forceServicePropagation(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling forceServicePropagation.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/forceServicePropagation`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAllDestinations(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/all`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllRichDestinationsForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllRichDestinationsForFacility.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/f`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllRichDestinationsForService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getAllRichDestinationsForService.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/s`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedResources.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedResourcesForService`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedServices(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedServices.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedServices`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getDataWithGroups(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getDataWithGroups.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDataWithGroups.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithGroups`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getDataWithVos(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getDataWithVos.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDataWithVos.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithVos`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getDestinationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getDestinationById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getDestinations(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDestinations.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/s-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getDestinationsCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationsCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFacilitiesDestinations(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFacilitiesDestinations.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilitiesDestinations`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAssignedServicesForGUI(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAssignedServicesForGUI.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilityAssignedServicesForGUI`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFlatData(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getFlatData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFlatData.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFlatData`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getHashedDataWithGroups(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getHashedDataWithGroups.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHashedDataWithGroups.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedDataWithGroups`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getHashedHierarchicalData(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getHashedHierarchicalData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHashedHierarchicalData.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedHierarchicalData`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getHierarchicalData(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getHierarchicalData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHierarchicalData.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHierarchicalData`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getRichDestinations(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRichDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRichDestinations.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getRichDestinations`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getServiceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getServiceById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServiceByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getServiceByName.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("name",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceByName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServices(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServices`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getServicesBlockedOnDestination(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling getServicesBlockedOnDestination.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("destination",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnDestination`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesBlockedOnFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getServicesBlockedOnFacility.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnFacility`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesByAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getServicesByAttributeDefinition.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesByAttributeDefinition`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesFromServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesFromServicesPackage.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("servicesPackage",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesFromServicesPackage`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesPackageById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesPackageById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("servicesPackage",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesPackageByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getServicesPackageByName.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("name",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageByName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesPackages(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackages`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}isServiceBlockedOnDestination(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling isServiceBlockedOnDestination.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("destination",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnDestination`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}isServiceBlockedOnFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling isServiceBlockedOnFacility.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnFacility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}planServicePropagation(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling planServicePropagation.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/planServicePropagation`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeAllDestinations(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeAllDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAllDestinations.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllDestinations`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeAllRequiredAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeAllRequiredAttributes.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllRequiredAttributes`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeDestination(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeDestination.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeDestination.");if(null==i)throw new Error("Required parameter destination was null or undefined when calling removeDestination.");if(null==n)throw new Error("Required parameter type was null or undefined when calling removeDestination.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("destination",i)),null!=n&&(r=r.set("type",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeDestination`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeRequiredAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttribute.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling removeRequiredAttribute.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttribute`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeRequiredAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeRequiredAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttributes`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeServiceFromServicesPackage(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServiceFromServicesPackage.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeServiceFromServicesPackage.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("servicesPackage",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeServiceFromServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}unblockAllServicesOnDestinationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("destination",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/d`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}unblockAllServicesOnDestinationByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationByName.");if(null==e)throw new Error("Required parameter destinationType was null or undefined when calling unblockAllServicesOnDestinationByName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("destination",t)),null!=e&&(s=s.set("destinationType",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/dname-dtype`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}unblockAllServicesOnFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling unblockAllServicesOnFacility.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnFacility`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}unblockServiceOnDestinationById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationById.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationById.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("destination",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-d`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}unblockServiceOnDestinationByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationByName.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationByName.");if(null==i)throw new Error("Required parameter destinationType was null or undefined when calling unblockServiceOnDestinationByName.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("destination",e)),null!=i&&(o=o.set("destinationType",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-dname-dtype`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}unblockServiceOnFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling unblockServiceOnFacility.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnFacility`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}updateService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateService was null or undefined when calling updateService.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateService`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateServicesPackage was null or undefined when calling updateServicesPackage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateServicesPackage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),at=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}countTasks(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/countTasks`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}deleteTask(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskIdObject was null or undefined when calling deleteTask.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTask`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteTaskResultById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskResultIdObject was null or undefined when calling deleteTaskResultById.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResultById`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteTaskResultsIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskAndDestinationIdObject was null or undefined when calling deleteTaskResultsIds.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/id`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteTaskResultsNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskAndDestinationNameObject was null or undefined when calling deleteTaskResultsNames.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/name`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAllFacilitiesStates(t,e="body",i=!1){let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllFacilitiesStates`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllResourcesState(t,e="body",i=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling getAllResourcesState.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("voId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllResourcesState`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityServicesState(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityServicesState.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityServicesState`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityState(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityState.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityState`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTask(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getTask.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getTask.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTask`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getTaskById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getTaskById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTaskResultById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskResult was null or undefined when calling getTaskResultById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("taskResult",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTaskResults(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResults`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getTaskResultsByTask(t,e="body",i=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsByTask.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("task",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsByTask`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTaskResultsForDestinations(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destinations was null or undefined when calling getTaskResultsForDestinations.");let n=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("destinations[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForDestinations`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTaskResultsForGUIByTask(t,e="body",i=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTask.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("task",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTask`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTaskResultsForGUIByTaskAndDestination(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("task",t)),null!=e&&(s=s.set("destination",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskAndDestination`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getTaskResultsForGUIByTaskOnlyNewest(t,e="body",i=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskOnlyNewest.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("task",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskOnlyNewest`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isThereSuchTask(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling isThereSuchTask.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling isThereSuchTask.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/isThereSuchTask`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}listAllTasks(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasks`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}listAllTasksForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling listAllTasksForFacility.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasksForFacility`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}suspendTasksPropagation(t,e="body",i=!1){if(null==t)throw new Error("Required parameter suspend was null or undefined when calling suspendTasksPropagation.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("suspend",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/suspendTasksPropagation`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ct=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}addSpecificUserOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("specificUser",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addUserExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter addUserExtSourceInput was null or undefined when calling addUserExtSource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}anonymizeUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}changeNonAuthzPasswordByToken(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==e)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("token",t)),null!=e&&(o=o.set("password",e)),null!=i&&(o=o.set("lang",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changeNonAuthzPassword/token`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}changePasswordForLogin(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");let a=new F.LE({encoder:this.encoder});null!=t&&(a=a.set("login",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("newPassword",i)),null!=n&&(a=a.set("oldPassword",n)),null!=s&&(a=a.set("checkOldPassword",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/login`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}changePasswordForUser(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");let a=new F.LE({encoder:this.encoder});null!=t&&(a=a.set("user",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("newPassword",i)),null!=n&&(a=a.set("oldPassword",n)),null!=s&&(a=a.set("checkOldPassword",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/user`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}checkPasswordResetRequestByTokenIsValid(t,e="body",i=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("token",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}checkPasswordStrength(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("password",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createAlternativePassword(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==i)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==n)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("description",e)),null!=i&&(r=r.set("loginNamespace",i)),null!=n&&(r=r.set("password",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/createAlternativePassword`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}createServiceUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateServiceUser was null or undefined when calling createServiceUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAlternativePassword(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==i)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("loginNamespace",e)),null!=i&&(o=o.set("passwordId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}deletePasswordForLogin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("login",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deletePasswordForUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("force",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}findRichUsers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findRichUsersWithAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("searchString",t)),e&&e.forEach(t=>{s=s.append("attrsNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}findUsers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}generateAccountForName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("namespace",t)),null!=e&&(s=s.set("name",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAllRichUsersWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("includedSpecificUsers",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsForFacilityWhereUserIsActive(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupsForResourceWhereUserIsActive(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupsInVoWhereUserIsAdmin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("vo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupsWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getPendingPreferredEmailChanges(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUserExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUserWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUsersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let n=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUsersWithAttributesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let n=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUsersWithoutVoWithAttributes(t,e="body",i=!1){let n=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("attrsNames[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getSpecificUsersByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getSponsorsForMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSponsorsForMemberByVoAndLogin(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("extSourceName",e)),null!=i&&(r=r.set("extLogin",i)),n&&n.forEach(t=>{r=r.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getUserByExtSourceNameAndExtLogin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("extLogin",t)),null!=e&&(s=s.set("extSourceName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getUserById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("userExtSource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourceByUniqueAttributeValueAndAttributeId(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeId",t)),null!=e&&(s=s.set("attributeValue",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserExtSourceByUniqueAttributeValueAndAttributeName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeName",t)),null!=e&&(s=s.set("attributeValue",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let n=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUsers(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getUsersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let n=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUsersBySpecificUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("specificUser",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUsersPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedUsers was null or undefined when calling getUsersPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getVosWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosWhereUserIsMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isLoginAvailable(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==e)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("loginNamespace",t)),null!=e&&(s=s.set("login",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}loginExist(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeSpecificUserOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("specificUser",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserExtSource(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("userExtSource",e)),null!=i&&(o=o.set("force",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}requestPreferredEmailChange(t,e,i,n,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==e)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let c=new F.LE({encoder:this.encoder});null!=t&&(c=c.set("user",t)),null!=e&&(c=c.set("email",e)),null!=i&&(c=c.set("lang",i)),null!=n&&(c=c.set("linkPath",n)),null!=s&&(c=c.set("customUrl",s)),null!=o&&(c=c.set("idpFilter",o));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}reservePasswordForLogin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("login",t)),null!=e&&(o=o.set("namespace",e)),null!=i&&(o=o.set("password",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/login`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}reservePasswordForUser(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("namespace",e)),null!=i&&(o=o.set("password",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}reserveRandomPassword(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}updateUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateUser was null or undefined when calling updateUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}validatePasswordForLogin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("login",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}validatePasswordForUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}validatePreferredEmailChangeWithToken(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==e)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("token",t)),null!=e&&(s=s.set("u",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ut=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}getAppsConfig(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getGuiConfiguration(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunRPCVersion(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["text/plain"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunStatistics(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunStatus(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunSystemTimeInMillis(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),lt=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}addSponsorRoleToGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addSponsorRoleToUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addVoAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addVoAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createVoWithName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==e)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("name",t)),null!=e&&(s=s.set("shortName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createVoWithVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateVoWithVo was null or undefined when calling createVoWithVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/createVo/withVo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("force",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}findCandidates(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("id",t)),null!=e&&(o=o.set("searchString",e)),null!=i&&(o=o.set("maxNumOfResults",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}findCandidatesForGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("searchString",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAllVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAllVos`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getCompleteCandidatesForGroup(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("searchString",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getCompleteCandidatesForVo(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("searchString",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMyVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVos`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getRichAdminsForVo(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==i)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==n)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==s)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let a=new F.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("role",e)),i&&i.forEach(t=>{a=a.append("specificAttributes",t)}),null!=n&&(a=a.set("allUserAttributes",n)),null!=s&&(a=a.set("onlyDirectAdmins",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getRichAdmins`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getVoAdminGroups(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("role",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdminGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getVoAdminUsers(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==i)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("role",e)),null!=i&&(o=o.set("onlyDirectAdmins",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdmins`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getVoBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoBanForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanForMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoBansForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBansForVo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getVoById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoByShortName(t,e="body",i=!1){let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("shortName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoByShortName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoMembersCountsByStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let n=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeSponsorRoleFromGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeSponsorRoleFromUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeVoAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeVoAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeVoBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeVoBanForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}setVoBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoBan was null or undefined when calling setVoBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateVo was null or undefined when calling updateVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/updateVo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var ht,dt,pt,ft;!function(t){t.HiddenEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"},t.DisabledEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"}}(ht||(ht={})),function(t){t.FormatEnum={DOT:"DOT",TGF:"TGF"}}(dt||(dt={})),function(t){t.OwnerTypeEnum={NUMBER_0:0,NUMBER_1:1}}(pt||(pt={})),function(t){t.TypeEnum={Technical:"technical",Administrative:"administrative"}}(ft||(ft={}));let gt=(()=>{class t{constructor(t,e){if(t)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!e)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:t,providers:[{provide:q,useFactory:e}]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(t,12),s.LFG(F.eN,8))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[U,Z,G,V,$,W,J,Q,X,tt,et,it,nt,st,ot,rt,at,ct,ut,lt],imports:[[]]}),t})();var mt=function(t){return t.PERUNADMIN="PERUNADMIN",t.PERUNOBSERVER="PERUNOBSERVER",t.VOADMIN="VOADMIN",t.GROUPADMIN="GROUPADMIN",t.SELF="SELF",t.FACILITYADMIN="FACILITYADMIN",t.FACILITIYOBSERVER="FACILITYOBSERVER",t.RESOURCEADMIN="RESOURCEADMIN",t.RESOURCESELFSERVICE="RESOURCESELFSERVICE",t.REGISTRAR="REGISTRAR",t.ENGINE="ENGINE",t.RPC="RPC",t.NOTIFICATIONS="NOTIFICATIONS",t.SERVICEUSER="SERVICEUSER",t.SPONSOR="SPONSOR",t.VOOBSERVER="VOOBSERVER",t.TOPGROUPCREATOR="TOPGROUPCREATOR",t.SECURITYADMIN="SECURITYADMIN",t.CABINETADMIN="CABINETADMIN",t.UNKNOWNROLENAME="UNKNOWNROLENAME",t}({});let _t=(()=>{class t{constructor(t){this.authzSevice=t,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(t){this.principal=t,this.initData(t)}setPerunPolicies(t){this.perunPolicies=t}getPerunPolicies(){return this.perunPolicies}isAuthorized(t,e){if(null===this.principal.roles)return!1;const i=this.fetchPolicyWithAllIncludedPolicies(t);let n=[];for(const o of i)n=n.concat(o.perunRoles);const s=this.fetchAllRelatedObjects(e);return this.resolveAuthorization(n,s)}resolveAuthorization(t,e){for(const i of t){let t=!0;for(const n of Object.keys(i)){const s=i[n];if(null===s)this.principalRoles.has(n)||(t=!1);else if(e[s]){for(const i of e[s])if(!this.principalHasRole(n,s,i)){t=!1;break}}else t=!1;if(!t)break}if(t)return!0}return!1}fetchAllRelatedObjects(t){const e={};for(const i of t){let t=i.beanName;switch(i.beanName.startsWith("Rich")&&(t=i.beanName.substring(4)),e[t]?e[t].push(i.id):e[t]=[i.id],t){case"Member":e.User?e.User.push(i.userId):e.User=[i.userId],e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"Group":e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"Resource":e.Facility?e.Facility.push(i.facilityId):e.Facility=[i.facilityId],e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"ResourceTag":e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId]}}return e}principalHasRole(t,e,i){let n=e;return e.startsWith("Rich")&&(n=e.substring(4)),!(!this.principal.roles[t]||!this.principal.roles[t][n])&&this.principal.roles[t][n].includes(Number(i.toString()))}fetchPolicyWithAllIncludedPolicies(t){const e=new Map;let i=[];for(i.push(t);0!==i.length;){const n=i.shift();if(e.has(n)){console.log("Policy {} creates a cycle in the included policies of the policy {}",n,t);continue}const s=this.getPerunPolicy(n);if(!s)return[];e.set(n,s),i=i.concat(s.includePolicies)}const n=[];for(const s of e.values())n.push(s);return n}getPerunPolicy(t){for(const e of this.perunPolicies)if(e.policyName===t)return e;return console.log("policy with name"+t+"was not found"),null}canManageFacilities(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.PERUNOBSERVER,mt.FACILITYADMIN,mt.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(mt.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.VOADMIN)}isThisVoAdminOrObserver(t){return this.editableVos.includes(Number(t.toString()))||this.observableVos.includes(Number(t.toString()))||this.hasAtLeastOne(mt.PERUNADMIN,mt.PERUNOBSERVER)}isThisVoAdmin(t){return this.editableVos.includes(t)||this.principalRoles.has(mt.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(mt.SPONSOR)}isThisGroupAdmin(t){return this.editableGroups.includes(t)||this.principalRoles.has(mt.PERUNADMIN)}isGroupAdminInThisVo(t){return this.hasGroupInTheseVos.includes(t)}isFacilityAdmin(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.FACILITYADMIN)}isThisFacilityAdmin(t){return this.editableFacilities.includes(t)||this.principalRoles.has(mt.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(mt.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.VOOBSERVER,mt.PERUNOBSERVER)}isThisVoObserver(t){return this.hasAtLeastOne(mt.PERUNADMIN,mt.PERUNOBSERVER)||this.observableVos.includes(t)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((t,e)=>{this.authzSevice.getAllRolesManagementRules().subscribe(e=>{this.allRolesManagementRules=e,t()},t=>e(t))})}assignAvailableRoles(t,e){this.allRolesManagementRules.forEach(i=>{i.primaryObject===e&&t.push(i.roleName)}),t.sort(),"Vo"===e&&this.voCustomSort(t)}isManagerPagePrivileged(t){const e=[];let i=t.beanName;i.startsWith("Rich")&&(i=i.substr(4)),this.assignAvailableRoles(e,i);const n=new Map;this.getRolesAuthorization(e,t,n);for(const s of n.values())if(s.readAuth||s.manageAuth)return!0;return!1}getRolesAuthorization(t,e,i){for(const n of t){let t=[],s=[],o=[];for(const e of this.allRolesManagementRules)if(e.roleName===n){t=t.concat(e.privilegedRolesToRead),s=s.concat(e.privilegedRolesToManage);for(const t of Object.keys(e.entitiesToManage))o="User"===t?[t].concat(o):o.concat(t);break}const r=this.fetchAllRelatedObjects([e]),a=this.resolveAuthorization(t,r),c=this.resolveAuthorization(s,r);i.set(n,{readAuth:a,manageAuth:c,modes:o})}}voCustomSort(t){for(let e=0;e{let i;try{i=t()}catch(n){return void e.error(n)}return(i?(0,yt.D)(i):(0,Lt.c)()).subscribe(e)})}var Rt=i(2875),Dt=i(9996),zt=i(4689),Pt=i(611),It=i(6163);function Ot(...t){const e=t[t.length-1];return(0,It.K)(e)?(t.pop(),i=>Et(t,i,e)):e=>Et(t,e)}var Ht=i(6673);function Yt(t,e){let i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new Bt(t,e,i))}}class Bt{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new jt(t,this.accumulator,this.seed,this.hasSeed))}}class jt extends Ht.L{constructor(t,e,i,n){super(t),this.accumulator=e,this._seed=i,this.hasSeed=n,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(n){this.destination.error(n)}this.seed=i,this.destination.next(i)}}var Ft=i(7727),Nt=i(436),Kt=i(8402);function qt(t){return function(e){return 0===t?(0,Lt.c)():e.lift(new Ut(t))}}class Ut{constructor(t){if(this.total=t,this.total<0)throw new Kt.W}call(t,e){return e.subscribe(new Zt(t,this.total))}}class Zt extends Ht.L{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,n=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,n=this.ring;for(let s=0;se.lift(new ie(t))}class ie{constructor(t){this.callback=t}call(t,e){return e.subscribe(new ne(t,this.callback))}}class ne extends Ht.L{constructor(t,e){super(t),this.add(new te.w(e))}}class se{constructor(t,e){this.id=t,this.url=e}}class oe extends se{constructor(t,e,i="imperative",n=null){super(t,e),this.navigationTrigger=i,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class re extends se{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ae extends se{constructor(t,e,i){super(t,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ce extends se{constructor(t,e,i){super(t,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ue extends se{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class le extends se{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class he extends se{constructor(t,e,i,n,s){super(t,e),this.urlAfterRedirects=i,this.state=n,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class de extends se{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pe extends se{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class fe{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ge{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class me{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _e{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class we{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ye{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class be{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Ae="primary";class ve{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function ke(t){return new ve(t)}function Te(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Ce(t,e,i){const n=i.path.split("/");if(n.length>t.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.lengthn[e]===t)}return t===e}function Ee(t){return Array.prototype.concat.apply([],t)}function Le(t){return t.length>0?t[t.length-1]:null}function xe(t,e){for(const i in t)t.hasOwnProperty(i)&&e(t[i],i)}function Re(t){return(0,s.CqO)(t)?t:(0,s.QGY)(t)?(0,yt.D)(Promise.resolve(t)):(0,bt.of)(t)}const De={exact:function t(e,i,n){if(!Fe(e.segments,i.segments))return!1;if(!He(e.segments,i.segments,n))return!1;if(e.numberOfChildren!==i.numberOfChildren)return!1;for(const s in i.children){if(!e.children[s])return!1;if(!t(e.children[s],i.children[s],n))return!1}return!0},subset:Ie},ze={exact:function(t,e){return Se(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>Me(t[i],e[i]))},ignored:()=>!0};function Pe(t,e,i){return De[i.paths](t.root,e.root,i.matrixParams)&&ze[i.queryParams](t.queryParams,e.queryParams)&&!("exact"===i.fragment&&t.fragment!==e.fragment)}function Ie(t,e,i){return Oe(t,e,e.segments,i)}function Oe(t,e,i,n){if(t.segments.length>i.length){const s=t.segments.slice(0,i.length);return!!Fe(s,i)&&!e.hasChildren()&&!!He(s,i,n)}if(t.segments.length===i.length){if(!Fe(t.segments,i))return!1;if(!He(t.segments,i,n))return!1;for(const i in e.children){if(!t.children[i])return!1;if(!Ie(t.children[i],e.children[i],n))return!1}return!0}{const s=i.slice(0,t.segments.length),o=i.slice(t.segments.length);return!!Fe(t.segments,s)&&!!He(t.segments,s,n)&&!!t.children.primary&&Oe(t.children.primary,e,o,n)}}function He(t,e,i){return e.every((e,n)=>ze[i](t[n].parameters,e.parameters))}class Ye{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ke(this.queryParams)),this._queryParamMap}toString(){return qe.serialize(this)}}class Be{constructor(t,e){this.segments=t,this.children=e,this.parent=null,xe(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ue(this)}}class je{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=ke(this.parameters)),this._parameterMap}toString(){return Qe(this)}}function Fe(t,e){return t.length===e.length&&t.every((t,i)=>t.path===e[i].path)}class Ne{}class Ke{parse(t){const e=new ni(t);return new Ye(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${Ze(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(t=>`${Ve(e)}=${Ve(t)}`).join("&"):`${Ve(e)}=${Ve(i)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const qe=new Ke;function Ue(t){return t.segments.map(t=>Qe(t)).join("/")}function Ze(t,e){if(!t.hasChildren())return Ue(t);if(e){const e=t.children.primary?Ze(t.children.primary,!1):"",i=[];return xe(t.children,(t,e)=>{e!==Ae&&i.push(`${e}:${Ze(t,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function(t,e){let i=[];return xe(t.children,(t,n)=>{n===Ae&&(i=i.concat(e(t,n)))}),xe(t.children,(t,n)=>{n!==Ae&&(i=i.concat(e(t,n)))}),i}(t,(e,i)=>i===Ae?[Ze(t.children.primary,!1)]:[`${i}:${Ze(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${Ue(t)}/${e[0]}`:`${Ue(t)}/(${e.join("//")})`}}function Ge(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ve(t){return Ge(t).replace(/%3B/gi,";")}function $e(t){return Ge(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function We(t){return decodeURIComponent(t)}function Je(t){return We(t.replace(/\+/g,"%20"))}function Qe(t){return`${$e(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${$e(t)}=${$e(e[t])}`).join("")}`;var e}const Xe=/^[^\/()?;=#]+/;function ti(t){const e=t.match(Xe);return e?e[0]:""}const ei=/^[^=?&#]+/,ii=/^[^?&#]+/;class ni{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Be([],{}):new Be([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new Be(t,e)),i}parseSegment(){const t=ti(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new je(We(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=ti(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=ti(this.remaining);t&&(i=t,this.capture(i))}t[We(e)]=We(i)}parseQueryParam(t){const e=function(t){const e=t.match(ei);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(ii);return e?e[0]:""}(this.remaining);t&&(i=t,this.capture(i))}const n=Je(e),s=Je(i);if(t.hasOwnProperty(n)){let e=t[n];Array.isArray(e)||(e=[e],t[n]=e),e.push(s)}else t[n]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=ti(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error(`Cannot parse url '${this.url}'`);let s;i.indexOf(":")>-1?(s=i.substr(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=Ae);const o=this.parseChildren();e[s]=1===Object.keys(o).length?o.primary:new Be([],o),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class si{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=oi(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=oi(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=ri(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return ri(t,this._root).map(t=>t.value)}}function oi(t,e){if(t===e.value)return e;for(const i of e.children){const e=oi(t,i);if(e)return e}return null}function ri(t,e){if(t===e.value)return[e];for(const i of e.children){const n=ri(t,i);if(n.length)return n.unshift(e),n}return[]}class ai{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function ci(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class ui extends si{constructor(t,e){super(t),this.snapshot=e,gi(this,t)}toString(){return this.snapshot.toString()}}function li(t,e){const i=function(t,e){const i=new pi([],{},{},"",{},Ae,e,null,t.root,-1,{});return new fi("",new ai(i,[]))}(t,e),n=new kt([new je("",{})]),s=new kt({}),o=new kt({}),r=new kt({}),a=new kt(""),c=new hi(n,s,r,a,o,Ae,e,i.root);return c.snapshot=i.root,new ui(new ai(c,[]),i)}class hi{constructor(t,e,i,n,s,o,r,a){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=o,this.component=r,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,Dt.U)(t=>ke(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Dt.U)(t=>ke(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function di(t,e="emptyOnly"){const i=t.pathFromRoot;let n=0;if("always"!==e)for(n=i.length-1;n>=1;){const t=i[n],e=i[n-1];if(t.routeConfig&&""===t.routeConfig.path)n--;else{if(e.component)break;n--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(i.slice(n))}class pi{constructor(t,e,i,n,s,o,r,a,c,u,l){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=o,this.component=r,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=u,this._resolve=l}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=ke(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ke(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class fi extends si{constructor(t,e){super(e),this.url=t,gi(this,e)}toString(){return mi(this._root)}}function gi(t,e){e.value._routerState=t,e.children.forEach(e=>gi(t,e))}function mi(t){const e=t.children.length>0?` { ${t.children.map(mi).join(", ")} } `:"";return`${t.value}${e}`}function _i(t){if(t.snapshot){const e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,Se(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),Se(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(let i=0;iSe(t.parameters,n[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||wi(t.parent,e.parent))}function yi(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){const n=i.value;n._futureSnapshot=e.value;const s=function(t,e,i){return e.children.map(e=>{for(const n of i.children)if(t.shouldReuseRoute(e.value,n.value.snapshot))return yi(t,e,n);return yi(t,e)})}(t,e,i);return new ai(n,s)}{if(t.shouldAttach(e.value)){const i=t.retrieve(e.value);if(null!==i){const t=i.route;return bi(e,t),t}}const i=new hi(new kt((n=e.value).url),new kt(n.params),new kt(n.queryParams),new kt(n.fragment),new kt(n.data),n.outlet,n.component,n),s=e.children.map(e=>yi(t,e));return new ai(i,s)}var n}function bi(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let i=0;i{o[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new Ye(i.root===t?e:Ti(i.root,t,e),o,s)}function Ti(t,e,i){const n={};return xe(t.children,(t,s)=>{n[s]=t===e?i:Ti(t,e,i)}),new Be(t.segments,n)}class Ci{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Ai(i[0]))throw new Error("Root segment cannot have matrix parameters");const n=i.find(vi);if(n&&n!==Le(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Si{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function Mi(t,e,i){if(t||(t=new Be([],{})),0===t.segments.length&&t.hasChildren())return Ei(t,e,i);const n=function(t,e,i){let n=0,s=e;const o={match:!1,pathIndex:0,commandIndex:0};for(;s=i.length)return o;const e=t.segments[s],r=i[n];if(vi(r))break;const a=`${r}`,c=n0&&void 0===a)break;if(a&&c&&"object"==typeof c&&void 0===c.outlets){if(!Di(a,c,e))return o;n+=2}else{if(!Di(a,{},e))return o;n++}s++}return{match:!0,pathIndex:s,commandIndex:n}}(t,e,i),s=i.slice(n.commandIndex);if(n.match&&n.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(s[n]=Mi(t.children[n],e,i))}),xe(t.children,(t,e)=>{void 0===n[e]&&(s[e]=t)}),new Be(t.segments,s)}}function Li(t,e,i){const n=t.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[i]=Li(new Be([],{}),0,t))}),e}function Ri(t){const e={};return xe(t,(t,i)=>e[i]=`${t}`),e}function Di(t,e,i){return t==i.path&&Se(e,i.parameters)}class zi{constructor(t,e,i,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=n}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),_i(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const n=ci(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,n[e],i),delete n[e]}),xe(n,(t,e)=>{this.deactivateRouteAndItsChildren(t,i)})}deactivateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(n===s)if(n.component){const s=i.getContext(n.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet);if(i&&i.outlet){const e=i.outlet.detach(),n=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:n})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),n=i&&t.value.component?i.children:e,s=ci(t);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],n);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const n=ci(e);t.children.forEach(t=>{this.activateRoutes(t,n[t.value.outlet],i),this.forwardEvent(new ye(t.value.snapshot))}),t.children.length&&this.forwardEvent(new _e(t.value.snapshot))}activateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(_i(n),n===s)if(n.component){const s=i.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(n.component){const e=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){const t=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),Pi(t.route)}else{const i=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(n.snapshot),s=i?i.module.componentFactoryResolver:null;e.attachRef=null,e.route=n,e.resolver=s,e.outlet&&e.outlet.activateWith(n,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,i)}}function Pi(t){_i(t.value),t.children.forEach(Pi)}class Ii{constructor(t,e){this.routes=t,this.module=e}}function Oi(t){return"function"==typeof t}function Hi(t){return t instanceof Ye}const Yi=Symbol("INITIAL_VALUE");function Bi(){return(0,zt.w)(t=>(0,Tt.aj)(t.map(t=>t.pipe((0,Pt.q)(1),Ot(Yi)))).pipe(Yt((t,e)=>{let i=!1;return e.reduce((t,n,s)=>{if(t!==Yi)return t;if(n===Yi&&(i=!0),!i){if(!1===n)return n;if(s===e.length-1||Hi(n))return n}return t},t)},Yi),(0,wt.h)(t=>t!==Yi),(0,Dt.U)(t=>Hi(t)?t:!0===t),(0,Pt.q)(1)))}let ji=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s._UZ(0,"router-outlet")},directives:function(){return[Yn]},encapsulation:2}),t})();function Fi(t,e=""){for(let i=0;iUi(t)===e);return i.push(...t.filter(t=>Ui(t)!==e)),i}const Gi={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Vi(t,e,i){var n;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?Object.assign({},Gi):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||Ce)(i,t,e);if(!s)return Object.assign({},Gi);const o={};xe(s.posParams,(t,e)=>{o[e]=t.path});const r=s.consumed.length>0?Object.assign(Object.assign({},o),s.consumed[s.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:r,positionalParamSegments:null!==(n=s.posParams)&&void 0!==n?n:{}}}function $i(t,e,i,n,s="corrected"){if(i.length>0&&function(t,e,i){return i.some(i=>Wi(t,e,i)&&Ui(i)!==Ae)}(t,i,n)){const s=new Be(e,function(t,e,i,n){const s={};s.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(const o of i)if(""===o.path&&Ui(o)!==Ae){const i=new Be([],{});i._sourceSegment=t,i._segmentIndexShift=e.length,s[Ui(o)]=i}return s}(t,e,n,new Be(i,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some(i=>Wi(t,e,i))}(t,i,n)){const o=new Be(t.segments,function(t,e,i,n,s,o){const r={};for(const a of n)if(Wi(t,i,a)&&!s[Ui(a)]){const i=new Be([],{});i._sourceSegment=t,i._segmentIndexShift="legacy"===o?t.segments.length:e.length,r[Ui(a)]=i}return Object.assign(Object.assign({},s),r)}(t,e,i,n,t.children,s));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:i}}const o=new Be(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:i}}function Wi(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path}function Ji(t,e,i,n){return!!(Ui(t)===n||n!==Ae&&Wi(e,i,t))&&("**"===t.path||Vi(e,t,i).matched)}function Qi(t,e,i){return 0===e.length&&!t.children[i]}class Xi{constructor(t){this.segmentGroup=t||null}}class tn{constructor(t){this.urlTree=t}}function en(t){return new Ct.y(e=>e.error(new Xi(t)))}function nn(t){return new Ct.y(e=>e.error(new tn(t)))}function sn(t){return new Ct.y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class on{constructor(t,e,i,n,o){this.configLoader=e,this.urlSerializer=i,this.urlTree=n,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(s.h0i)}apply(){const t=$i(this.urlTree.root,[],[],this.config).segmentGroup,e=new Be(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,Ae).pipe((0,Dt.U)(t=>this.createUrlTree(rn(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Ft.K)(t=>{if(t instanceof tn)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Xi)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,Ae).pipe((0,Dt.U)(e=>this.createUrlTree(rn(e),t.queryParams,t.fragment))).pipe((0,Ft.K)(t=>{if(t instanceof Xi)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const n=t.segments.length>0?new Be([],{[Ae]:t}):t;return new Ye(n,e,i)}expandSegmentGroup(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe((0,Dt.U)(t=>new Be([],t))):this.expandSegment(t,i,e,i.segments,n,!0)}expandChildren(t,e,i){const n=[];for(const s of Object.keys(i.children))"primary"===s?n.unshift(s):n.push(s);return(0,yt.D)(n).pipe((0,Nt.b)(n=>{const s=i.children[n],o=Zi(e,n);return this.expandSegmentGroup(t,o,s,n).pipe((0,Dt.U)(t=>({segment:t,outlet:n})))}),Yt((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const i=arguments.length>=2;return n=>n.pipe(t?(0,wt.h)((e,i)=>t(e,i,n)):$t.y,qt(1),i?(0,Vt.d)(e):(0,Gt.T)(()=>new St.K))}())}expandSegment(t,e,i,n,s,o){return(0,yt.D)(i).pipe((0,Nt.b)(r=>this.expandSegmentAgainstRoute(t,e,i,r,n,s,o).pipe((0,Ft.K)(t=>{if(t instanceof Xi)return(0,bt.of)(null);throw t}))),(0,Wt.P)(t=>!!t),(0,Ft.K)((t,i)=>{if(t instanceof St.K||"EmptyError"===t.name){if(Qi(e,n,s))return(0,bt.of)(new Be([],{}));throw new Xi(e)}throw t}))}expandSegmentAgainstRoute(t,e,i,n,s,o,r){return Ji(n,e,s,o)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,s,o):r&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o):en(e):en(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,n){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?nn(s):this.lineralizeSegments(i,s).pipe((0,Jt.zg)(i=>{const s=new Be(i,{});return this.expandSegment(t,s,e,i,n,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o){const{matched:r,consumedSegments:a,lastChild:c,positionalParamSegments:u}=Vi(e,n,s);if(!r)return en(e);const l=this.applyRedirectCommands(a,n.redirectTo,u);return n.redirectTo.startsWith("/")?nn(l):this.lineralizeSegments(n,l).pipe((0,Jt.zg)(n=>this.expandSegment(t,e,i,n.concat(s.slice(c)),o,!1)))}matchSegmentAgainstRoute(t,e,i,n,s){if("**"===i.path)return i.loadChildren?(i._loadedConfig?(0,bt.of)(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe((0,Dt.U)(t=>(i._loadedConfig=t,new Be(n,{})))):(0,bt.of)(new Be(n,{}));const{matched:o,consumedSegments:r,lastChild:a}=Vi(e,i,n);if(!o)return en(e);const c=n.slice(a);return this.getChildConfig(t,i,n).pipe((0,Jt.zg)(t=>{const n=t.module,o=t.routes,{segmentGroup:a,slicedSegments:u}=$i(e,r,c,o),l=new Be(a.segments,a.children);if(0===u.length&&l.hasChildren())return this.expandChildren(n,o,l).pipe((0,Dt.U)(t=>new Be(r,t)));if(0===o.length&&0===u.length)return(0,bt.of)(new Be(r,{}));const h=Ui(i)===s;return this.expandSegment(n,l,o,u,h?Ae:s,!0).pipe((0,Dt.U)(t=>new Be(r.concat(t.segments),t.children)))}))}getChildConfig(t,e,i){return e.children?(0,bt.of)(new Ii(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?(0,bt.of)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe((0,Jt.zg)(i=>i?this.configLoader.load(t.injector,e).pipe((0,Dt.U)(t=>(e._loadedConfig=t,t))):function(t){return new Ct.y(e=>e.error(Te(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):(0,bt.of)(new Ii([],t))}runCanLoadGuards(t,e,i){const n=e.canLoad;if(!n||0===n.length)return(0,bt.of)(!0);const s=n.map(n=>{const s=t.get(n);let o;if(function(t){return t&&Oi(t.canLoad)}(s))o=s.canLoad(e,i);else{if(!Oi(s))throw new Error("Invalid CanLoad guard");o=s(e,i)}return Re(o)});return(0,bt.of)(s).pipe(Bi(),(0,Qt.b)(t=>{if(!Hi(t))return;const e=Te(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),(0,Dt.U)(t=>!0===t))}lineralizeSegments(t,e){let i=[],n=e.root;for(;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return(0,bt.of)(i);if(n.numberOfChildren>1||!n.children.primary)return sn(t.redirectTo);n=n.children.primary}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,n){const s=this.createSegmentGroup(t,e.root,i,n);return new Ye(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return xe(t,(t,n)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);i[n]=e[s]}else i[n]=t}),i}createSegmentGroup(t,e,i,n){const s=this.createSegments(t,e.segments,i,n);let o={};return xe(e.children,(e,s)=>{o[s]=this.createSegmentGroup(t,e,i,n)}),new Be(s,o)}createSegments(t,e,i,n){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,n):this.findOrReturn(e,i))}findPosParam(t,e,i){const n=i[e.path.substring(1)];if(!n)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return n}findOrReturn(t,e){let i=0;for(const n of e){if(n.path===t.path)return e.splice(i),n;i++}return t}}function rn(t){const e={};for(const i of Object.keys(t.children)){const n=rn(t.children[i]);(n.segments.length>0||n.hasChildren())&&(e[i]=n)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new Be(t.segments.concat(e.segments),e.children)}return t}(new Be(t.segments,e))}class an{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class cn{constructor(t,e){this.component=t,this.route=e}}function un(t,e,i){const n=t._root;return hn(n,e?e._root:null,i,[n.value])}function ln(t,e,i){const n=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(n?n.module.injector:i).get(t)}function hn(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=ci(e);return t.children.forEach(t=>{!function(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,r=e?e.value:null,a=i?i.getContext(t.value.outlet):null;if(r&&o.routeConfig===r.routeConfig){const c=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!Fe(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Fe(t.url,e.url)||!Se(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!wi(t,e)||!Se(t.queryParams,e.queryParams);case"paramsChange":default:return!wi(t,e)}}(r,o,o.routeConfig.runGuardsAndResolvers);c?s.canActivateChecks.push(new an(n)):(o.data=r.data,o._resolvedData=r._resolvedData),hn(t,e,o.component?a?a.children:null:i,n,s),c&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new cn(a.outlet.component,r))}else r&&dn(e,a,s),s.canActivateChecks.push(new an(n)),hn(t,null,o.component?a?a.children:null:i,n,s)}(t,o[t.value.outlet],i,n.concat([t.value]),s),delete o[t.value.outlet]}),xe(o,(t,e)=>dn(t,i.getContext(e),s)),s}function dn(t,e,i){const n=ci(t),s=t.value;xe(n,(t,n)=>{dn(t,s.component?e?e.children.getContext(n):null:e,i)}),i.canDeactivateChecks.push(new cn(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class pn{}function fn(t){return new Ct.y(e=>e.error(t))}class gn{constructor(t,e,i,n,s,o){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=n,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=o}recognize(){const t=$i(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,Ae);if(null===e)return null;const i=new pi([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ae,this.rootComponentType,null,this.urlTree.root,-1,{}),n=new ai(i,e),s=new fi(this.url,n);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,i=di(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=[];for(const s of Object.keys(e.children)){const n=e.children[s],o=Zi(t,s),r=this.processSegmentGroup(o,n,s);if(null===r)return null;i.push(...r)}const n=_n(i);return n.sort((t,e)=>t.value.outlet===Ae?-1:e.value.outlet===Ae?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,i,n){for(const s of t){const t=this.processSegmentAgainstRoute(s,e,i,n);if(null!==t)return t}return Qi(e,i,n)?[]:null}processSegmentAgainstRoute(t,e,i,n){if(t.redirectTo||!Ji(t,e,i,n))return null;let s,o=[],r=[];if("**"===t.path){const n=i.length>0?Le(i).parameters:{};s=new pi(i,n,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,bn(t),Ui(t),t.component,t,wn(e),yn(e)+i.length,An(t))}else{const n=Vi(e,t,i);if(!n.matched)return null;o=n.consumedSegments,r=i.slice(n.lastChild),s=new pi(o,n.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,bn(t),Ui(t),t.component,t,wn(e),yn(e)+o.length,An(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:u}=$i(e,o,r,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===u.length&&c.hasChildren()){const t=this.processChildren(a,c);return null===t?null:[new ai(s,t)]}if(0===a.length&&0===u.length)return[new ai(s,[])];const l=Ui(t)===n,h=this.processSegment(a,c,u,l?Ae:n);return null===h?null:[new ai(s,h)]}}function mn(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function _n(t){const e=[],i=new Set;for(const n of t){if(!mn(n)){e.push(n);continue}const t=e.find(t=>n.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...n.children),i.add(t)):e.push(n)}for(const n of i){const t=_n(n.children);e.push(new ai(n.value,t))}return e.filter(t=>!i.has(t))}function wn(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function yn(t){let e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,i+=e._segmentIndexShift?e._segmentIndexShift:0;return i-1}function bn(t){return t.data||{}}function An(t){return t.resolve||{}}function vn(t){return(0,zt.w)(e=>{const i=t(e);return i?(0,yt.D)(i).pipe((0,Dt.U)(()=>e)):(0,bt.of)(e)})}class kn extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const Tn=new s.OlP("ROUTES");class Cn{constructor(t,e,i,n){this.loader=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=n}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const i=this.loadModuleFactory(e.loadChildren).pipe((0,Dt.U)(i=>{this.onLoadEndListener&&this.onLoadEndListener(e);const n=i.create(t);return new Ii(Ee(n.injector.get(Tn,void 0,s.XFs.Self|s.XFs.Optional)).map(qi),n)}),(0,Ft.K)(t=>{throw e._loader$=void 0,t}));return e._loader$=new Rt.c(i,()=>new At.xQ).pipe((0,Xt.x)()),e._loader$}loadModuleFactory(t){return"string"==typeof t?(0,yt.D)(this.loader.load(t)):Re(t()).pipe((0,Jt.zg)(t=>t instanceof s.YKP?(0,bt.of)(t):(0,yt.D)(this.compiler.compileModuleAsync(t))))}}class Sn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Mn,this.attachRef=null}}class Mn{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new Sn,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class En{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Ln(t){throw t}function xn(t,e,i){return e.parse("/")}function Rn(t,e){return(0,bt.of)(null)}const Dn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},zn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Pn=(()=>{class t{constructor(t,e,i,n,o,r,a,c){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=i,this.location=n,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new At.xQ,this.errorHandler=Ln,this.malformedUriErrorHandler=xn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Rn,afterPreactivation:Rn},this.urlHandlingStrategy=new En,this.routeReuseStrategy=new kn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(s.h0i),this.console=o.get(s.c2e);const u=o.get(s.R0b);this.isNgZoneEnabled=u instanceof s.R0b&&s.R0b.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new Ye(new Be([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Cn(r,a,t=>this.triggerEvent(new fe(t)),t=>this.triggerEvent(new ge(t))),this.routerState=li(this.currentUrlTree,this.rootComponentType),this.transitions=new kt({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()}setupNavigations(t){const e=this.events;return t.pipe((0,wt.h)(t=>0!==t.id),(0,Dt.U)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),(0,zt.w)(t=>{let i=!1,n=!1;return(0,bt.of)(t).pipe((0,Qt.b)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,zt.w)(t=>{const i=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return(0,bt.of)(t).pipe((0,zt.w)(t=>{const i=this.transitions.getValue();return e.next(new oe(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==this.transitions.getValue()?Lt.E:Promise.resolve(t)}),(n=this.ngModule.injector,s=this.configLoader,o=this.urlSerializer,r=this.config,(0,zt.w)(t=>function(t,e,i,n,s){return new on(t,e,i,n,s).apply()}(n,s,o,t.extractedUrl,r).pipe((0,Dt.U)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e}))))),(0,Qt.b)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,i,n,s){return(0,Jt.zg)(o=>function(t,e,i,n,s="emptyOnly",o="legacy"){try{const r=new gn(t,e,i,n,s,o).recognize();return null===r?fn(new pn):(0,bt.of)(r)}catch(r){return fn(r)}}(t,e,o.urlAfterRedirects,i(o.urlAfterRedirects),n,s).pipe((0,Dt.U)(t=>Object.assign(Object.assign({},o),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Qt.b)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const i=new ue(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(i)}));var n,s,o,r;if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:i,extractedUrl:n,source:s,restoredState:o,extras:r}=t,a=new oe(i,this.serializeUrl(n),s,o);e.next(a);const c=li(n,this.rootComponentType).snapshot;return(0,bt.of)(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:n,extras:Object.assign(Object.assign({},r),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Lt.E}),vn(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:o,replaceUrl:r}}=t;return this.hooks.beforePreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!r})}),(0,Qt.b)(t=>{const e=new le(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,Dt.U)(t=>Object.assign(Object.assign({},t),{guards:un(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return(0,Jt.zg)(i=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:o,canDeactivateChecks:r}}=i;return 0===r.length&&0===o.length?(0,bt.of)(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return(0,yt.D)(t).pipe((0,Jt.zg)(t=>function(t,e,i,n,s){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return(0,bt.of)(!0);const r=o.map(o=>{const r=ln(o,e,s);let a;if(function(t){return t&&Oi(t.canDeactivate)}(r))a=Re(r.canDeactivate(t,e,i,n));else{if(!Oi(r))throw new Error("Invalid CanDeactivate guard");a=Re(r(t,e,i,n))}return a.pipe((0,Wt.P)())});return(0,bt.of)(r).pipe(Bi())}(t.component,t.route,i,e,n)),(0,Wt.P)(t=>!0!==t,!0))}(r,n,s,t).pipe((0,Jt.zg)(i=>i&&"boolean"==typeof i?function(t,e,i,n){return(0,yt.D)(e).pipe((0,Nt.b)(e=>Et(function(t,e){return null!==t&&e&&e(new me(t)),(0,bt.of)(!0)}(e.route.parent,n),function(t,e){return null!==t&&e&&e(new we(t)),(0,bt.of)(!0)}(e.route,n),function(t,e,i){const n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>xt(()=>{const s=e.guards.map(s=>{const o=ln(s,e.node,i);let r;if(function(t){return t&&Oi(t.canActivateChild)}(o))r=Re(o.canActivateChild(n,t));else{if(!Oi(o))throw new Error("Invalid CanActivateChild guard");r=Re(o(n,t))}return r.pipe((0,Wt.P)())});return(0,bt.of)(s).pipe(Bi())}));return(0,bt.of)(s).pipe(Bi())}(t,e.path,i),function(t,e,i){const n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||0===n.length)return(0,bt.of)(!0);const s=n.map(n=>xt(()=>{const s=ln(n,e,i);let o;if(function(t){return t&&Oi(t.canActivate)}(s))o=Re(s.canActivate(e,t));else{if(!Oi(s))throw new Error("Invalid CanActivate guard");o=Re(s(e,t))}return o.pipe((0,Wt.P)())}));return(0,bt.of)(s).pipe(Bi())}(t,e.route,i))),(0,Wt.P)(t=>!0!==t,!0))}(n,o,t,e):(0,bt.of)(i)),(0,Dt.U)(t=>Object.assign(Object.assign({},i),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),(0,Qt.b)(t=>{if(Hi(t.guardsResult)){const e=Te(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new he(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),(0,wt.h)(t=>!!t.guardsResult||(this.cancelNavigationTransition(t,""),!1)),vn(t=>{if(t.guards.canActivateChecks.length)return(0,bt.of)(t).pipe((0,Qt.b)(t=>{const e=new de(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,zt.w)(t=>{let e=!1;return(0,bt.of)(t).pipe((i=this.paramsInheritanceStrategy,n=this.ngModule.injector,(0,Jt.zg)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:s}}=t;if(!s.length)return(0,bt.of)(t);let o=0;return(0,yt.D)(s).pipe((0,Nt.b)(t=>function(t,e,i,n){return function(t,e,i,n){const s=Object.keys(t);if(0===s.length)return(0,bt.of)({});const o={};return(0,yt.D)(s).pipe((0,Jt.zg)(s=>function(t,e,i,n){const s=ln(t,e,n);return Re(s.resolve?s.resolve(e,i):s(e,i))}(t[s],e,i,n).pipe((0,Qt.b)(t=>{o[s]=t}))),qt(1),(0,Jt.zg)(()=>Object.keys(o).length===s.length?(0,bt.of)(o):Lt.E))}(t._resolve,t,e,n).pipe((0,Dt.U)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),di(t,i).resolve),null)))}(t.route,e,i,n)),(0,Qt.b)(()=>o++),qt(1),(0,Jt.zg)(e=>o===s.length?(0,bt.of)(t):Lt.E))})),(0,Qt.b)({next:()=>e=!0,complete:()=>{e||this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value.")}}));var i,n}),(0,Qt.b)(t=>{const e=new pe(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),vn(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:o,replaceUrl:r}}=t;return this.hooks.afterPreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!r})}),(0,Dt.U)(t=>{const e=function(t,e,i){const n=yi(t,e._root,i?i._root:void 0);return new ui(n,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),(0,Qt.b)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,o=this.routeReuseStrategy,r=t=>this.triggerEvent(t),(0,Dt.U)(t=>(new zi(o,t.targetRouterState,t.currentRouterState,r).activate(s),t))),(0,Qt.b)({next(){i=!0},complete(){i=!0}}),ee(()=>{i||n||this.cancelNavigationTransition(t,`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`),this.currentNavigation=null}),(0,Ft.K)(i=>{if(n=!0,(s=i)&&s.ngNavigationCancelingError){const n=Hi(i.url);n||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new ae(t.id,this.serializeUrl(t.extractedUrl),i.message);e.next(s),n?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(i.url,this.rawUrlTree);this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const n=new ce(t.id,this.serializeUrl(t.extractedUrl),i);e.next(n);try{t.resolve(this.errorHandler(i))}catch(o){t.reject(o)}}var s;return Lt.E}));var s,o,r}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:i,urlTree:n}=e,s={replaceUrl:!0};if(i){const t=Object.assign({},i);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(n,t,i,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const i=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&i&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Fi(t),this.config=t.map(qi),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(t,e={}){const{relativeTo:i,queryParams:n,fragment:s,queryParamsHandling:o,preserveFragment:r}=e,a=i||this.routerState.root,c=r?this.currentUrlTree.fragment:s;let u=null;switch(o){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=n||null}return null!==u&&(u=this.removeEmptyProps(u)),function(t,e,i,n,s){if(0===i.length)return ki(e.root,e.root,e,n,s);const o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Ci(!0,0,t);let e=0,i=!1;const n=t.reduce((t,n,s)=>{if("object"==typeof n&&null!=n){if(n.outlets){const e={};return xe(n.outlets,(t,i)=>{e[i]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(n.segmentPath)return[...t,n.segmentPath]}return"string"!=typeof n?[...t,n]:0===s?(n.split("/").forEach((n,s)=>{0==s&&"."===n||(0==s&&""===n?i=!0:".."===n?e++:""!=n&&t.push(n))}),t):[...t,n]},[]);return new Ci(i,e,n)}(i);if(o.toRoot())return ki(e.root,new Be([],{}),e,n,s);const r=function(t,e,i){if(t.isAbsolute)return new Si(e.root,!0,0);if(-1===i.snapshot._lastPathIndex){const t=i.snapshot._urlSegment;return new Si(t,t===e.root,0)}const n=Ai(t.commands[0])?0:1;return function(t,e,i){let n=t,s=e,o=i;for(;o>s;){if(o-=s,n=n.parent,!n)throw new Error("Invalid number of '../'");s=n.segments.length}return new Si(n,!1,s-o)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(o,e,t),a=r.processChildren?Ei(r.segmentGroup,r.index,o.commands):Mi(r.segmentGroup,r.index,o.commands);return ki(r.segmentGroup,a,e,n,s)}(a,this.currentUrlTree,t,u,null!=c?c:null)}navigateByUrl(t,e={skipLocationChange:!1}){const i=Hi(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree);let s=null;return"computed"===this.canceledNavigationResolution&&(0===this.currentPageId||e.skipLocationChange||e.replaceUrl)&&(s=this.location.getState()),this.scheduleNavigation(n,"imperative",s,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const n=t[i];return null!=n&&(e[i]=n),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new re(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,i,n,s){if(this.disposed)return Promise.resolve(!1);const o=this.getTransition(),r="imperative"!==e&&"imperative"===(null==o?void 0:o.source),a=(this.lastSuccessfulId===o.id||this.currentNavigation?o.rawUrl:o.urlAfterRedirects).toString()===t.toString();if(r&&a)return Promise.resolve(!0);let c,u,l;s?(c=s.resolve,u=s.reject,l=s.promise):l=new Promise((t,e)=>{c=t,u=e});const h=++this.navigationId;let d;return d="computed"===this.canceledNavigationResolution?i&&i.\u0275routerPageId?i.\u0275routerPageId:this.currentPageId+1:0,this.setTransition({id:h,targetPageId:d,source:e,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const i=this.urlSerializer.serialize(t),n=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(i)||e.extras.replaceUrl?this.location.replaceState(i,"",n):this.location.go(i,"",n)}resetStateAndUrl(t,e,i){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){"computed"===this.canceledNavigationResolution?"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy||this.location.historyGo(this.currentPageId-t.targetPageId):this.resetUrlToCurrentUrlTree();const i=new ae(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(i),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.DyG),s.LFG(Ne),s.LFG(Mn),s.LFG(n.Ye),s.LFG(s.zs3),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),In=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new At.xQ,null==i&&n.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:Hn(this.skipLocationChange),replaceUrl:Hn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Hn(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Pn),s.Y36(hi),s.$8M("tabindex"),s.Y36(s.Qsj),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.TTD]}),t})(),On=(()=>{class t{constructor(t,e,i){this.router=t,this.route=e,this.locationStrategy=i,this.commands=[],this.onChanges=new At.xQ,this.subscription=t.events.subscribe(t=>{t instanceof re&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,i,n,s){if(0!==t||e||i||n||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const o={skipLocationChange:Hn(this.skipLocationChange),replaceUrl:Hn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Hn(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Pn),s.Y36(hi),s.Y36(n.S$))},t.\u0275dir=s.lG2({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(s.Ikx("href",e.href,s.LSH),s.uIk("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.TTD]}),t})();function Hn(t){return""===t||!!t}let Yn=(()=>{class t{constructor(t,e,i,n,o){this.parentContexts=t,this.location=e,this.resolver=i,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.vpe,this.deactivateEvents=new s.vpe,this.name=n||Ae,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const i=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,s=new Bn(t,n,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Mn),s.Y36(s.s_b),s.Y36(s._Vd),s.$8M("name"),s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Bn{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===hi?this.route:t===Mn?this.childContexts:this.parent.get(t,e)}}class jn{}class Fn{preload(t,e){return(0,bt.of)(null)}}let Nn=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.injector=n,this.preloadingStrategy=s,this.loader=new Cn(e,i,e=>t.triggerEvent(new fe(e)),e=>t.triggerEvent(new ge(e)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,wt.h)(t=>t instanceof re),(0,Nt.b)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(s.h0i);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const i=[];for(const n of e)if(n.loadChildren&&!n.canLoad&&n._loadedConfig){const t=n._loadedConfig;i.push(this.processRoutes(t.module,t.routes))}else n.loadChildren&&!n.canLoad?i.push(this.preloadConfig(t,n)):n.children&&i.push(this.processRoutes(t,n.children));return(0,yt.D)(i).pipe((0,Mt.J)(),(0,Dt.U)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?(0,bt.of)(e._loadedConfig):this.loader.load(t.injector,e)).pipe((0,Jt.zg)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Pn),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(s.zs3),s.LFG(jn))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Kn=(()=>{class t{constructor(t,e,i={}){this.router=t,this.viewportScroller=e,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.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(t=>{t instanceof oe?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof re&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof be&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new be(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Pn),s.LFG(n.EM),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const qn=new s.OlP("ROUTER_CONFIGURATION"),Un=new s.OlP("ROUTER_FORROOT_GUARD"),Zn=[n.Ye,{provide:Ne,useClass:Ke},{provide:Pn,useFactory:function(t,e,i,n,s,o,r,a={},c,u){const l=new Pn(null,t,e,i,n,s,o,Ee(r));return c&&(l.urlHandlingStrategy=c),u&&(l.routeReuseStrategy=u),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,l),a.enableTracing&&l.events.subscribe(t=>{var e,i;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(i=console.groupEnd)||void 0===i||i.call(console)}),l},deps:[Ne,Mn,n.Ye,s.zs3,s.v3s,s.Sil,Tn,qn,[class{},new s.FiY],[class{},new s.FiY]]},Mn,{provide:hi,useFactory:function(t){return t.routerState.root},deps:[Pn]},{provide:s.v3s,useClass:s.EAV},Nn,Fn,class{preload(t,e){return e().pipe((0,Ft.K)(()=>(0,bt.of)(null)))}},{provide:qn,useValue:{enableTracing:!1}}];function Gn(){return new s.PXZ("Router",Pn)}let Vn=(()=>{class t{constructor(t,e){}static forRoot(e,i){return{ngModule:t,providers:[Zn,Qn(e),{provide:Un,useFactory:Jn,deps:[[Pn,new s.FiY,new s.tp0]]},{provide:qn,useValue:i||{}},{provide:n.S$,useFactory:Wn,deps:[n.lw,[new s.tBr(n.mr),new s.FiY],qn]},{provide:Kn,useFactory:$n,deps:[Pn,n.EM,qn]},{provide:jn,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:Fn},{provide:s.PXZ,multi:!0,useFactory:Gn},[Xn,{provide:s.ip1,multi:!0,useFactory:ts,deps:[Xn]},{provide:is,useFactory:es,deps:[Xn]},{provide:s.tb,multi:!0,useExisting:is}]]}}static forChild(e){return{ngModule:t,providers:[Qn(e)]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Un,8),s.LFG(Pn,8))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();function $n(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new Kn(t,e,i)}function Wn(t,e,i={}){return i.useHash?new n.Do(t,e):new n.b0(t,e)}function Jn(t){return"guarded"}function Qn(t){return[{provide:s.deG,multi:!0,useValue:t},{provide:Tn,multi:!0,useValue:t}]}let Xn=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new At.xQ}appInitializer(){return this.injector.get(n.V_,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),i=this.injector.get(Pn),n=this.injector.get(qn);return"disabled"===n.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===n.initialNavigation||"enabledBlocking"===n.initialNavigation?(i.hooks.afterPreactivation=()=>this.initNavigation?(0,bt.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),i.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(qn),i=this.injector.get(Nn),n=this.injector.get(Kn),o=this.injector.get(Pn),r=this.injector.get(s.z2F);t===r.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||o.initialNavigation(),i.setUpPreloading(),n.init(),o.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function ts(t){return t.appInitializer.bind(t)}function es(t){return t.bootstrapListener.bind(t)}const is=new s.OlP("Router Initializer");let ns=(()=>{class t{constructor(){this.branding=""}setInstanceConfig(t){this.instanceConfig=t}setDefaultConfig(t){this.defaultConfig=t}getAppsConfig(){return this.appsConfig}setAppsConfig(t){this.appsConfig=t}setPerunPrincipal(t){this.principal=t}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(t){this.initialPageId=t}getLoginAttributeNames(){return this.get("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.get("member_profile_attributes_friendly_names")}setBanding(t){this.branding=t}skipOidc(){return this.get("skip_oidc")}get(...t){let e;if(""!==this.branding){const i=this.instanceConfig.brandings[this.branding];for(let n=0;n(0,ls.k)(t)?n(...t):n(t))):new Ct.y(n=>{ps(t,e,function(t){n.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},n,i)})}function ps(t,e,i,n,s){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const n=t;t.addEventListener(e,i,s),o=()=>n.removeEventListener(e,i,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const n=t;t.on(e,i),o=()=>n.off(e,i)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const n=t;t.addListener(e,i),o=()=>n.removeListener(e,i)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,r=t.length;o0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}var ms=i(1098);class _s extends ms.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++nPromise.resolve())(),As={};function vs(t){return t in As&&(delete As[t],!0)}const ks={setImmediate(t){const e=ys++;return As[e]=!0,bs.then(()=>vs(e)&&t()),e},clearImmediate(t){vs(t)}};class Ts extends fs.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=ks.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(ks.clearImmediate(e),t.scheduled=void 0)}}class Cs extends ms.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++ni.lift(new Ls(t,e))}class Ls{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new xs(t,this.compare,this.keySelector))}}class xs extends Ht.L{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:i}=this;e=i?i(t):t}catch(n){return this.destination.error(n)}let i=!1;if(this.hasKey)try{const{compare:t}=this;i=t(this.key,e)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}var Rs=i(8569),Ds=i(9829),zs=i(6268);class Ps{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new Is(t,this.durationSelector))}}class Is extends Ds.L{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let i;try{const{durationSelector:e}=this;i=e(t)}catch(e){return this.destination.error(e)}const n=(0,zs.D)(this,i);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=null,i.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,i,n){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Os(t){return!(0,ls.k)(t)&&t-parseFloat(t)+1>=0}function Hs(t=0,e,i){let n=-1;return Os(e)?n=Number(e)<1?1:Number(e):(0,It.K)(e)&&(i=e),(0,It.K)(i)||(i=Rs.P),new Ct.y(e=>{const s=Os(t)?t:+t-i.now();return i.schedule(Ys,s,{index:0,period:n,subscriber:e})})}function Ys(t){const{index:e,period:i,subscriber:n}=t;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}}function Bs(t,e=Rs.P){return i=()=>Hs(t,e),function(t){return t.lift(new Ps(i))};var i}function js(t){return e=>e.lift(new Fs(t))}class Fs{constructor(t){this.notifier=t}call(t,e){const i=new Ns(t),n=(0,zs.D)(i,this.notifier);return n&&!i.seenValue?(i.add(n),e.subscribe(i)):i}}class Ns extends Ds.L{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,i,n,s){this.seenValue=!0,this.complete()}notifyComplete(){}}class Ks extends fs.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}class qs extends ms.v{}const Us=new qs(Ks);var Zs=i(3103);class Gs extends Ht.L{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(Gs.dispatch,this.delay,new Vs(t,this.destination)))}_next(t){this.scheduleMessage(Zs.P.createNext(t))}_error(t){this.scheduleMessage(Zs.P.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(Zs.P.createComplete()),this.unsubscribe()}}class Vs{constructor(t,e){this.notification=t,this.destination=e}}var $s=i(9291);class Ws extends At.xQ{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new Js(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),n=this.scheduler,s=i.length;let o;if(this.closed)throw new vt.N;if(this.isStopped||this.hasError?o=te.w.EMPTY:(this.observers.push(t),o=new $s.W(this,t)),n&&t.add(t=new Gs(t,n)),e)for(let r=0;re&&(o=Math.max(o,s-e)),o>0&&n.splice(0,o),n}}class Js{constructor(t,e){this.time=t,this.value=e}}function Qs(t,e,i){let n;return n=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:i},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:i,scheduler:n}){let s,o,r=0,a=!1,c=!1;return function(u){r++,s&&!a||(a=!1,s=new Ws(t,e,n),o=u.subscribe({next(t){s.next(t)},error(t){a=!0,s.error(t)},complete(){c=!0,o=void 0,s.complete()}}));const l=s.subscribe(this);this.add(()=>{r--,l.unsubscribe(),o&&!c&&i&&0===r&&(o.unsubscribe(),o=void 0,s=void 0)})}}(n))}let Xs;try{Xs="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(Ix){Xs=!1}let to,eo=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?(0,n.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&&!Xs)&&"undefined"!=typeof CSS&&!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 t.\u0275fac=function(e){return new(e||t)(s.LFG(s.Lbi))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.Lbi))},token:t,providedIn:"root"}),t})(),io=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();const no=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function so(){if(to)return to;if("object"!=typeof document||!document)return to=new Set(no),to;let t=document.createElement("input");return to=new Set(no.filter(e=>(t.setAttribute("type",e),t.type===e))),to}let oo,ro,ao,co;function uo(t){return function(){if(null==oo&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>oo=!0}))}finally{oo=oo||!1}return oo}()?t:!!t.capture}function lo(){if(null==ao){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return ao=!1,ao;if("scrollBehavior"in document.documentElement.style)ao=!0;else{const t=Element.prototype.scrollTo;ao=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return ao}function ho(){if("object"!=typeof document||!document)return 0;if(null==ro){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",t.appendChild(i),document.body.appendChild(t),ro=0,0===t.scrollLeft&&(t.scrollLeft=1,ro=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return ro}function po(t){if(function(){if(null==co){const t="undefined"!=typeof document?document.head:null;co=!(!t||!t.createShadowRoot&&!t.attachShadow)}return co}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function fo(){let t="undefined"!=typeof document&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}const go=new s.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,s.f3M)(n.K0)}});let mo=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new s.vpe,t){const e=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||e;this.value="ltr"===i||"rtl"===i?i:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(go,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(go,8))},token:t,providedIn:"root"}),t})(),_o=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();function wo(t){return t&&"function"==typeof t.connect}class yo{applyChanges(t,e,i,n,s){t.forEachOperation((t,n,o)=>{let r,a;if(null==t.previousIndex){const s=i(t,n,o);r=e.createEmbeddedView(s.templateRef,s.context,s.index),a=1}else null==o?(e.remove(n),a=3):(r=e.get(n),e.move(r,o),a=2);s&&s({context:null==r?void 0:r.context,operation:a,record:t})})}detach(){}}class bo{constructor(t=!1,e,i=!0){this._multiple=t,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new At.xQ,e&&e.length&&(t?e.forEach(t=>this._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}let Ao=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let i of this._listeners)i(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const vo=new s.OlP("_ViewRepeater");let ko=(()=>{class t{constructor(t,e,i){this._ngZone=t,this._platform=e,this._scrolled=new At.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new Ct.y(e=>{this._globalSubscription||this._addGlobalListener();const i=t>0?this._scrolled.pipe(Bs(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,bt.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe((0,wt.h)(t=>!t||i.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((i,n)=>{this._scrollableContainsElement(n,t)&&e.push(n)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let i=us(e),n=t.getElementRef().nativeElement;do{if(i==n)return!0}while(i=i.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>ds(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(eo),s.LFG(n.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(eo),s.LFG(n.K0,8))},token:t,providedIn:"root"}),t})(),To=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=i,this.dir=n,this._destroyed=new At.xQ,this._elementScrolled=new Ct.y(t=>this.ngZone.runOutsideAngular(()=>ds(this.elementRef.nativeElement,"scroll").pipe(js(this._destroyed)).subscribe(t)))}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(t){const e=this.elementRef.nativeElement,i=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=i?t.end:t.start),null==t.right&&(t.right=i?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),i&&0!=ho()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==ho()?t.left=t.right:1==ho()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const e=this.elementRef.nativeElement;lo()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e="left",i="right",n=this.elementRef.nativeElement;if("top"==t)return n.scrollTop;if("bottom"==t)return n.scrollHeight-n.clientHeight-n.scrollTop;const s=this.dir&&"rtl"==this.dir.value;return"start"==t?t=s?i:e:"end"==t&&(t=s?e:i),s&&2==ho()?t==e?n.scrollWidth-n.clientWidth-n.scrollLeft:n.scrollLeft:s&&1==ho()?t==e?n.scrollLeft+n.scrollWidth-n.clientWidth:-n.scrollLeft:t==e?n.scrollLeft:n.scrollWidth-n.clientWidth-n.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(ko),s.Y36(s.R0b),s.Y36(mo,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),Co=(()=>{class t{constructor(t,e,i){this._platform=t,this._change=new At.xQ,this._changeListener=t=>{this._change.next(t)},this._document=i,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:i}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+e,height:i,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Bs(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(eo),s.LFG(s.R0b),s.LFG(n.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(eo),s.LFG(s.R0b),s.LFG(n.K0,8))},token:t,providedIn:"root"}),t})(),So=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),Mo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[_o,io,So],_o,So]}),t})();class Eo{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class Lo extends Eo{constructor(t,e,i,n){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=n}}class xo extends Eo{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class Ro extends Eo{constructor(t){super(),this.element=t instanceof s.SBq?t.nativeElement:t}}class Do{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof Lo?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof xo?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof Ro?(this._attachedPortal=t,this.attachDomPortal(t)):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(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class zo extends Do{constructor(t,e,i,n,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=n,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=t,i}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(t=>this.outletElement.appendChild(t)),i.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(i);-1!==t&&e.remove(t)}),this._attachedPortal=t,i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let Po=(()=>{class t extends xo{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc),s.Y36(s.s_b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[s.qOj]}),t})(),Io=(()=>{class t extends Do{constructor(t,e,i){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new s.vpe,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(i,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=i}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),n=e.createComponent(i,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s._Vd),s.Y36(s.s_b),s.Y36(n.K0))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[s.qOj]}),t})(),Oo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();var Ho=i(1906);class Yo{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new Bo(t,this.predicate,this.inclusive))}}class Bo extends Ht.L{constructor(t,e,i){super(t),this.predicate=e,this.inclusive=i,this.index=0}_next(t){const e=this.destination;let i;try{i=this.predicate(t,this.index++)}catch(n){return void e.error(n)}this.nextOrComplete(t,i)}nextOrComplete(t,e){const i=this.destination;Boolean(e)?i.next(t):(this.inclusive&&i.next(t),i.complete())}}const jo=13,Fo=27,No=32,Ko=37,qo=38,Uo=39,Zo=40;function Go(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}const Vo=lo();class $o{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=cs(-this._previousScrollPosition.left),t.style.top=cs(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,i=this._document.body.style,n=e.scrollBehavior||"",s=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),Vo&&(e.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Vo&&(e.scrollBehavior=n,i.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class Wo{constructor(t,e,i,n){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Jo{enable(){}disable(){}attach(){}}function Qo(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function Xo(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class tr{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=n,this._scrollSubscription=null}attach(t){this._overlayRef=t}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 t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:i}=this._viewportRuler.getViewportSize();Qo(t,[{width:e,height:i,bottom:i,right:e,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 er=(()=>{class t{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this.noop=()=>new Jo,this.close=t=>new Wo(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new $o(this._viewportRuler,this._document),this.reposition=t=>new tr(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=n}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(ko),s.LFG(Co),s.LFG(s.R0b),s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(ko),s.LFG(Co),s.LFG(s.R0b),s.LFG(n.K0))},token:t,providedIn:"root"}),t})();class ir{constructor(t){if(this.scrollStrategy=new Jo,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class nr{constructor(t,e,i,n,s){this.offsetX=i,this.offsetY=n,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class sr{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let or=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0))},token:t,providedIn:"root"}),t})(),rr=(()=>{class t extends or{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let i=e.length-1;i>-1;i--)if(e[i]._keydownEvents.observers.length>0){e[i]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0))},token:t,providedIn:"root"}),t})(),ar=(()=>{class t extends or{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,i=this._attachedOverlays.slice();for(let n=i.length-1;n>-1;n--){const s=i[n];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){if(super.add(t),!this._isAttached){const t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),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 t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0),s.LFG(eo))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0),s.LFG(eo))},token:t,providedIn:"root"}),t})();const cr="undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha;let ur=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||cr){const e=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let t=0;tthis._backdropClick.next(t),this._keydownEvents=new At.xQ,this._outsidePointerEvents=new At.xQ,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Pt.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),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 t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),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&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=cs(this._config.width),t.height=cs(this._config.height),t.minWidth=cs(this._config.minWidth),t.minHeight=cs(this._config.minHeight),t.maxWidth=cs(this._config.maxWidth),t.maxHeight=cs(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),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),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const n=t.classList;as(e).forEach(t=>{t&&(i?n.add(t):n.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(js((0,Ho.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._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const hr="cdk-overlay-connected-position-bounding-box",dr=/([A-Za-z%]+)$/;class pr{constructor(t,e,i,n,s){this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=s,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 At.xQ,this._resizeSubscription=te.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(hr),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.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();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,n=[];let s;for(let o of this._preferredPositions){let r=this._getOriginPoint(t,o),a=this._getOverlayPoint(r,e,o),c=this._getOverlayFit(a,e,i,o);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(o,r);this._canFitWithFlexibleDimensions(c,a,i)?n.push({position:o,origin:r,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(r,o)}):(!s||s.overlayFit.visibleAreae&&(e=n,t=i)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&fr(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(hr),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let i,n;if("center"==e.originX)i=t.left+t.width/2;else{const n=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;i="start"==e.originX?n:s}return n="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:n}}_getOverlayPoint(t,e,i){let n,s;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+s}}_getOverlayFit(t,e,i,n){const s=mr(e);let{x:o,y:r}=t,a=this._getOffset(n,"x"),c=this._getOffset(n,"y");a&&(o+=a),c&&(r+=c);let u=0-r,l=r+s.height-i.height,h=this._subtractOverflows(s.width,0-o,o+s.width-i.width),d=this._subtractOverflows(s.height,u,l),p=h*d;return{visibleArea:p,isCompletelyWithinViewport:s.width*s.height===p,fitsInViewportVertically:d===s.height,fitsInViewportHorizontally:h==s.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const n=i.bottom-e.y,s=i.right-e.x,o=gr(this._overlayRef.getConfig().minHeight),r=gr(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=r&&r<=s;return(t.fitsInViewportVertically||null!=o&&o<=n)&&a}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const n=mr(e),s=this._viewportRect,o=Math.max(t.x+n.width-s.width,0),r=Math.max(t.y+n.height-s.height,0),a=Math.max(s.top-i.top-t.y,0),c=Math.max(s.left-i.left-t.x,0);let u=0,l=0;return u=n.width<=s.width?c||-o:t.xn&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-n/2)}if("end"===e.overlayX&&!n||"start"===e.overlayX&&n)u=i.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!n||"end"===e.overlayX&&n)c=t.x,a=i.right-t.x;else{const e=Math.min(i.right-t.x+i.left,t.x),n=this._lastBoundingBoxSize.width;a=2*e,c=t.x-e,a>n&&!this._isInitialRender&&!this._growAfterOpen&&(c=t.x-n/2)}return{top:o,left:c,bottom:r,right:u,width:a,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;n.height=cs(i.height),n.top=cs(i.top),n.bottom=cs(i.bottom),n.width=cs(i.width),n.left=cs(i.left),n.right=cs(i.right),n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(n.maxHeight=cs(t)),s&&(n.maxWidth=cs(s))}this._lastBoundingBoxSize=i,fr(this._boundingBox.style,n)}_resetBoundingBoxStyles(){fr(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){fr(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},n=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(n){const n=this._viewportRuler.getViewportScrollPosition();fr(i,this._getExactOverlayY(e,t,n)),fr(i,this._getExactOverlayX(e,t,n))}else i.position="static";let r="",a=this._getOffset(e,"x"),c=this._getOffset(e,"y");a&&(r+=`translateX(${a}px) `),c&&(r+=`translateY(${c}px)`),i.transform=r.trim(),o.maxHeight&&(n?i.maxHeight=cs(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(n?i.maxWidth=cs(o.maxWidth):s&&(i.maxWidth="")),fr(this._pane.style,i)}_getExactOverlayY(t,e,i){let n={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i));let o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=o,"bottom"===t.overlayY?n.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":n.top=cs(s.y),n}_getExactOverlayX(t,e,i){let n,s={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),n=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===n?s.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":s.left=cs(o.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Xo(t,i),isOriginOutsideView:Qo(t,i),isOverlayClipped:Xo(e,i),isOverlayOutsideView:Qo(e,i)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&as(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof s.SBq)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function fr(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function gr(t){if("number"!=typeof t&&null!=t){const[e,i]=t.split(dr);return i&&"px"!==i?null:parseFloat(e)}return t||null}function mr(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class _r{constructor(t,e,i,n,s,o,r){this._preferredPositions=[],this._positionStrategy=new pr(i,n,s,o,r).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,i,n){const s=new nr(t,e,i,n);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const wr="cdk-global-overlay-wrapper";class yr{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(wr),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:n,height:s,maxWidth:o,maxHeight:r}=i,a=!("100%"!==n&&"100vw"!==n||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||r&&"100%"!==r&&"100vh"!==r);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(wr),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let br=(()=>{class t{constructor(t,e,i,n){this._viewportRuler=t,this._document=e,this._platform=i,this._overlayContainer=n}global(){return new yr}connectedTo(t,e,i){return new _r(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new pr(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Co),s.LFG(n.K0),s.LFG(eo),s.LFG(ur))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Co),s.LFG(n.K0),s.LFG(eo),s.LFG(ur))},token:t,providedIn:"root"}),t})(),Ar=0,vr=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u,l){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=s,this._injector=o,this._ngZone=r,this._document=a,this._directionality=c,this._location=u,this._outsideClickDispatcher=l}create(t){const e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),s=new ir(t);return s.direction=s.direction||this._directionality.value,new lr(n,e,i,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+Ar++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(s.z2F)),new zo(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(er),s.LFG(ur),s.LFG(s._Vd),s.LFG(br),s.LFG(rr),s.LFG(s.zs3),s.LFG(s.R0b),s.LFG(n.K0),s.LFG(mo),s.LFG(n.Ye),s.LFG(ar))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const kr=[{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"}],Tr=new s.OlP("cdk-connected-overlay-scroll-strategy");let Cr=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),Sr=(()=>{class t{constructor(t,e,i,n,o){this._overlay=t,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=te.w.EMPTY,this._attachSubscription=te.w.EMPTY,this._detachSubscription=te.w.EMPTY,this._positionSubscription=te.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new s.vpe,this.positionChange=new s.vpe,this.attach=new s.vpe,this.detach=new s.vpe,this.overlayKeydown=new s.vpe,this.overlayOutsideClick=new s.vpe,this._templatePortal=new xo(e,i),this._scrollStrategyFactory=n,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=ss(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=ss(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=ss(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=ss(t)}get push(){return this._push}set push(t){this._push=ss(t)}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(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=kr);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),t.keyCode!==Fo||this.disableClose||Go(t)||(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new ir({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}_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(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t,e=!1){return i=>i.lift(new Yo(t,e))}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(vr),s.Y36(s.Rgc),s.Y36(s.s_b),s.Y36(Tr),s.Y36(mo,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[s.TTD]}),t})();const Mr={provide:Tr,deps:[vr],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Er=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[vr,Mr],imports:[[_o,Oo,Mo],Mo]}),t})();var Lr=i(7701);let xr=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Rr=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=us(t);return new Ct.y(t=>{const i=this._observeElement(e).subscribe(t);return()=>{i.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new At.xQ,i=this._mutationObserverFactory.create(t=>e.next(t));i&&i.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:i,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:i}=this._observedElements.get(t);e&&e.disconnect(),i.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(xr))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(xr))},token:t,providedIn:"root"}),t})(),Dr=(()=>{class t{constructor(t,e,i){this._contentObserver=t,this._elementRef=e,this._ngZone=i,this.event=new s.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=ss(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=os(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe((0,Lr.b)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Rr),s.Y36(s.SBq),s.Y36(s.R0b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),zr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[xr]}),t})();function Pr(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const Ir="cdk-describedby-message-container",Or="cdk-describedby-host";let Hr=0;const Yr=new Map;let Br=null,jr=(()=>{class t{constructor(t){this._document=t}describe(t,e,i){if(!this._canBeDescribed(t,e))return;const n=Fr(e,i);"string"!=typeof e?(Nr(e),Yr.set(n,{messageElement:e,referenceCount:0})):Yr.has(n)||this._createMessageElement(e,i),this._isElementDescribedByMessage(t,n)||this._addMessageReference(t,n)}removeDescription(t,e,i){if(!e||!this._isElementNode(t))return;const n=Fr(e,i);if(this._isElementDescribedByMessage(t,n)&&this._removeMessageReference(t,n),"string"==typeof e){const t=Yr.get(n);t&&0===t.referenceCount&&this._deleteMessageElement(n)}Br&&0===Br.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const i=Yr.get(e);!function(t,e,i){const n=Pr(t,e);n.some(t=>t.trim()==i.trim())||(n.push(i.trim()),t.setAttribute(e,n.join(" ")))}(t,"aria-describedby",i.messageElement.id),t.setAttribute(Or,""),i.referenceCount++}_removeMessageReference(t,e){const i=Yr.get(e);i.referenceCount--,function(t,e,i){const n=Pr(t,e).filter(t=>t!=i.trim());n.length?t.setAttribute(e,n.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",i.messageElement.id),t.removeAttribute(Or)}_isElementDescribedByMessage(t,e){const i=Pr(t,"aria-describedby"),n=Yr.get(e),s=n&&n.messageElement.id;return!!s&&-1!=i.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const i=null==e?"":`${e}`.trim(),n=t.getAttribute("aria-label");return!(!i||n&&n.trim()===i)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0))},token:t,providedIn:"root"}),t})();function Fr(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function Nr(t){t.id||(t.id="cdk-describedby-message-"+Hr++)}class Kr{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new At.xQ,this._typeaheadSubscription=te.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new At.xQ,this.change=new At.xQ,t instanceof s.n_E&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Qt.b)(t=>this._pressedLetters.push(t)),(0,Lr.b)(t),(0,wt.h)(()=>this._pressedLetters.length>0),(0,Dt.U)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let i=1;i!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case 9:return void this.tabOut.next();case Zo:if(this._vertical&&i){this.setNextItemActive();break}return;case qo:if(this._vertical&&i){this.setPreviousItemActive();break}return;case Uo:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case Ko:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||Go(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.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(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),n=e[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const n=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[n]))return void this.setActiveItem(n)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof s.n_E?this._items.toArray():this._items}}class qr extends Kr{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class Ur extends Kr{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let Zr=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(Ix){return null}}((i=t).ownerDocument&&i.ownerDocument.defaultView||window);var i;if(e){if(-1===Vr(e))return!1;if(!this.isVisible(e))return!1}let n=t.nodeName.toLowerCase(),s=Vr(t);return t.hasAttribute("contenteditable")?-1!==s:"iframe"!==n&&"object"!==n&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),i="input"===e&&t.type;return"text"===i||"password"===i||"select"===e||"textarea"===e}(t))&&("audio"===n?!!t.hasAttribute("controls")&&-1!==s:"video"===n?-1!==s&&(null!==s||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||Gr(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(eo))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(eo))},token:t,providedIn:"root"}),t})();function Gr(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function Vr(t){if(!Gr(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class $r{constructor(t,e,i,n,s=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=n,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),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(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let i=0;i=0;i--){let t=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe((0,Pt.q)(1)).subscribe(t)}}let Wr=(()=>{class t{constructor(t,e,i){this._checker=t,this._ngZone=e,this._document=i}create(t,e=!1){return new $r(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Zr),s.LFG(s.R0b),s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Zr),s.LFG(s.R0b),s.LFG(n.K0))},token:t,providedIn:"root"}),t})(),Jr=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=ss(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=ss(t)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(t){const e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=fo(),this.focusTrap.focusInitialElementWhenReady()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Wr),s.Y36(n.K0))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[s.TTD]}),t})();"undefined"!=typeof Element&∈const Qr=new s.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Xr=new s.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let ta=(()=>{class t{constructor(t,e,i,n){this._ngZone=e,this._defaultOptions=n,this._document=i,this._liveElement=t||this._createLiveElement()}announce(t,...e){const i=this._defaultOptions;let n,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[n,s]=e,this.clear(),clearTimeout(this._previousTimeout),n||(n=i&&i.politeness?i.politeness:"polite"),null==s&&i&&(s=i.duration),this._liveElement.setAttribute("aria-live",n),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t="cdk-live-announcer-element",e=this._document.getElementsByClassName(t),i=this._document.createElement("div");for(let n=0;n{class t{constructor(t,e,i,n){this._elementRef=t,this._liveAnnouncer=e,this._contentObserver=i,this._ngZone=n,this._politeness="polite"}get politeness(){return this._politeness}set politeness(t){this._politeness="off"===t||"assertive"===t?t:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const t=this._elementRef.nativeElement.textContent;t!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(t,this._politeness),this._previousAnnouncedText=t)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(ta),s.Y36(Rr),s.Y36(s.R0b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),t})();function ia(t){return 0===t.buttons}function na(t){const e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}const sa=new s.OlP("cdk-focus-monitor-default-options"),oa=uo({passive:!0,capture:!0});let ra=(()=>{class t{constructor(t,e,i,n){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=ia(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{na(t)?this._lastTouchTarget||this._setOriginForCurrentEventQueue("keyboard"):(null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=aa(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650))},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=aa(t),i="focus"===t.type?this._onFocus:this._onBlur;for(let n=e;n;n=n.parentElement)i.call(this,t,n)},this._document=i,this._detectionMode=(null==n?void 0:n.detectionMode)||0}monitor(t,e=!1){const i=us(t);if(!this._platform.isBrowser||1!==i.nodeType)return(0,bt.of)(null);const n=po(i)||this._getDocument(),s=this._elementInfo.get(i);if(s)return e&&(s.checkChildren=!0),s.subject;const o={checkChildren:e,subject:new At.xQ,rootNode:n};return this._elementInfo.set(i,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(t){const e=us(t),i=this._elementInfo.get(e);i&&(i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(i))}focusVia(t,e,i){const n=us(t);n===this._getDocument().activeElement?this._getClosestElementsInfo(n).forEach(([t,i])=>this._originChanged(t,e,i)):(this._setOriginForCurrentEventQueue(e),"function"==typeof n.focus&&n.focus(i))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,i){i?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=aa(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const i=this._elementInfo.get(e);i&&(i.checkChildren||e===aa(t))&&this._originChanged(e,this._getFocusOrigin(t),i)}_onBlur(t,e){const i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,i=this._rootNodeFocusListenerCount.get(e)||0;i||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,oa),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,oa)}),this._rootNodeFocusListenerCount.set(e,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,oa),t.addEventListener("mousedown",this._documentMousedownListener,oa),t.addEventListener("touchstart",this._documentTouchstartListener,oa),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,oa),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,oa),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,oa),t.removeEventListener("mousedown",this._documentMousedownListener,oa),t.removeEventListener("touchstart",this._documentTouchstartListener,oa),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,i){this._setClasses(t,e),this._emitOrigin(i.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((i,n)=>{(n===t||i.checkChildren&&n.contains(t))&&e.push([n,i])}),e}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(eo),s.LFG(n.K0,8),s.LFG(sa,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(eo),s.LFG(n.K0,8),s.LFG(sa,8))},token:t,providedIn:"root"}),t})();function aa(t){return t.composedPath?t.composedPath()[0]:t.target}let ca=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new s.vpe}ngAfterViewInit(){const t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(ra))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})();const ua="cdk-high-contrast-black-on-white",la="cdk-high-contrast-white-on-black",ha="cdk-high-contrast-active";let da=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,i=e&&e.getComputedStyle?e.getComputedStyle(t):null,n=(i&&i.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),n){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(ha),t.remove(ua),t.remove(la),this._hasCheckedHighContrastMode=!0;const e=this.getHighContrastMode();1===e?(t.add(ha),t.add(ua)):2===e&&(t.add(ha),t.add(la))}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(eo),s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(eo),s.LFG(n.K0))},token:t,providedIn:"root"}),t})(),pa=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(da))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[io,zr]]}),t})();const fa=new s.GfV("12.0.5");class ga{}const ma="*";function _a(t,e){return{type:7,name:t,definitions:e,options:{}}}function wa(t,e=null){return{type:4,styles:e,timings:t}}function ya(t,e=null){return{type:3,steps:t,options:e}}function ba(t,e=null){return{type:2,steps:t,options:e}}function Aa(t){return{type:6,styles:t,offset:null}}function va(t,e,i){return{type:0,name:t,styles:e,options:i}}function ka(t){return{type:5,steps:t}}function Ta(t,e,i=null){return{type:1,expr:t,animation:e,options:i}}function Ca(t=null){return{type:9,options:t}}function Sa(t,e,i=null){return{type:11,selector:t,animation:e,options:i}}function Ma(t){Promise.resolve(null).then(t)}class Ea{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Ma(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class La{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,n=0;const s=this.players.length;0==s?Ma(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++i==s&&this._onDestroy()}),t.onStart(()=>{++n==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function xa(){return"undefined"!=typeof window&&void 0!==window.document}function Ra(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Da(t){switch(t.length){case 0:return new Ea;case 1:return t[0];default:return new La(t)}}function za(t,e,i,n,s={},o={}){const r=[],a=[];let c=-1,u=null;if(n.forEach(t=>{const i=t.offset,n=i==c,l=n&&u||{};Object.keys(t).forEach(i=>{let n=i,a=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,r),a){case"!":a=s[i];break;case ma:a=o[i];break;default:a=e.normalizeStyleValue(i,n,a,r)}l[n]=a}),n||a.push(l),u=l,c=i}),r.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${r.join(t)}`)}return a}function Pa(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&Ia(i,"start",t)));break;case"done":t.onDone(()=>n(i&&Ia(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&Ia(i,"destroy",t)))}}function Ia(t,e,i){const n=i.totalTime,s=Oa(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),o=t._data;return null!=o&&(s._data=o),s}function Oa(t,e,i,n,s="",o=0,r){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:s,totalTime:o,disabled:!!r}}function Ha(t,e,i){let n;return t instanceof Map?(n=t.get(e),n||t.set(e,n=i)):(n=t[e],n||(n=t[e]=i)),n}function Ya(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let Ba=(t,e)=>!1,ja=(t,e)=>!1,Fa=(t,e,i)=>[];const Na=Ra();(Na||"undefined"!=typeof Element)&&(Ba=xa()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),ja=(()=>{if(Na||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,i)=>e.apply(t,[i]):ja}})(),Fa=(t,e,i)=>{let n=[];if(i){const i=t.querySelectorAll(e);for(let t=0;t{const n=i.replace(/([a-z])([A-Z])/g,"$1-$2");e[n]=t[i]}),e}let Wa=(()=>{class t{validateStyleProperty(t){return Ua(t)}matchesElement(t,e){return Za(t,e)}containsElement(t,e){return Ga(t,e)}query(t,e,i){return Va(t,e,i)}computeStyle(t,e,i){return i||""}animate(t,e,i,n,s,o=[],r){return new Ea(i,n)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Ja=(()=>{class t{}return t.NOOP=new Wa,t})();const Qa="ng-enter",Xa="ng-leave",tc="ng-trigger",ec=".ng-trigger",ic="ng-animating",nc=".ng-animating";function sc(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:oc(parseFloat(e[1]),e[2])}function oc(t,e){switch(e){case"s":return 1e3*t;default:return t}}function rc(t,e,i){return t.hasOwnProperty("duration")?t:function(t,e,i){let n,s=0,o="";if("string"==typeof t){const i=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===i)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};n=oc(parseFloat(i[1]),i[2]);const r=i[3];null!=r&&(s=oc(parseFloat(r),i[4]));const a=i[5];a&&(o=a)}else n=t;if(!i){let i=!1,o=e.length;n<0&&(e.push("Duration values below 0 are not allowed for this animation step."),i=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),i=!0),i&&e.splice(o,0,`The provided timing value "${t}" is invalid.`)}return{duration:n,delay:s,easing:o}}(t,e,i)}function ac(t,e={}){return Object.keys(t).forEach(i=>{e[i]=t[i]}),e}function cc(t,e,i={}){if(e)for(let n in t)i[n]=t[n];else ac(t,i);return i}function uc(t,e,i){return i?e+":"+i+";":""}function lc(t){let e="";for(let i=0;i{const s=yc(n);i&&!i.hasOwnProperty(n)&&(i[n]=t.style[s]),t.style[s]=e[n]}),Ra()&&lc(t))}function dc(t,e){t.style&&(Object.keys(e).forEach(e=>{const i=yc(e);t.style[i]=""}),Ra()&&lc(t))}function pc(t){return Array.isArray(t)?1==t.length?t[0]:ba(t):t}const fc=new RegExp("{{\\s*(.+?)\\s*}}","g");function gc(t){let e=[];if("string"==typeof t){let i;for(;i=fc.exec(t);)e.push(i[1]);fc.lastIndex=0}return e}function mc(t,e,i){const n=t.toString(),s=n.replace(fc,(t,n)=>{let s=e[n];return e.hasOwnProperty(n)||(i.push(`Please provide a value for the animation param ${n}`),s=""),s.toString()});return s==n?t:s}function _c(t){const e=[];let i=t.next();for(;!i.done;)e.push(i.value),i=t.next();return e}const wc=/-+([a-z0-9])/g;function yc(t){return t.replace(wc,(...t)=>t[1].toUpperCase())}function bc(t,e){return 0===t||0===e}function Ac(t,e,i){const n=Object.keys(i);if(n.length&&e.length){let o=e[0],r=[];if(n.forEach(t=>{o.hasOwnProperty(t)||r.push(t),o[t]=i[t]}),r.length)for(var s=1;sfunction(t,e,i){if(":"==t[0]){const n=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,i);if("function"==typeof n)return void e.push(n);t=n}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return i.push(`The provided transition expression "${t}" is not supported`),e;const s=n[1],o=n[2],r=n[3];e.push(Ec(s,r)),"<"!=o[0]||s==Tc&&r==Tc||e.push(Ec(r,s))}(t,i,e)):i.push(t),i}const Sc=new Set(["true","1"]),Mc=new Set(["false","0"]);function Ec(t,e){const i=Sc.has(t)||Mc.has(t),n=Sc.has(e)||Mc.has(e);return(s,o)=>{let r=t==Tc||t==s,a=e==Tc||e==o;return!r&&i&&"boolean"==typeof s&&(r=s?Sc.has(t):Mc.has(t)),!a&&n&&"boolean"==typeof o&&(a=o?Sc.has(e):Mc.has(e)),r&&a}}const Lc=new RegExp("s*:selfs*,?","g");function xc(t,e,i){return new Rc(t).build(e,i)}class Rc{constructor(t){this._driver=t}build(t,e){const i=new Dc(e);return this._resetContextStyleTimingState(i),vc(this,pc(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,n=e.depCount=0;const s=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const i=t,n=i.name;n.toString().split(/\s*,\s*/).forEach(t=>{i.name=t,s.push(this.visitState(i,e))}),i.name=n}else if(1==t.type){const s=this.visitTransition(t,e);i+=s.queryCount,n+=s.depCount,o.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:o,queryCount:i,depCount:n,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),n=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=n||{};if(i.styles.forEach(t=>{if(zc(t)){const e=t;Object.keys(e).forEach(t=>{gc(e[t]).forEach(t=>{o.hasOwnProperty(t)||s.add(t)})})}}),s.size){const i=_c(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${i.join(", ")}`)}}return{type:0,name:t.name,style:i,options:n?{params:n}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=vc(this,pc(t.animation),e);return{type:1,matchers:Cc(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Pc(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>vc(this,t,e)),options:Pc(t.options)}}visitGroup(t,e){const i=e.currentTime;let n=0;const s=t.steps.map(t=>{e.currentTime=i;const s=vc(this,t,e);return n=Math.max(n,e.currentTime),s});return e.currentTime=n,{type:3,steps:s,options:Pc(t.options)}}visitAnimate(t,e){const i=function(t,e){let i=null;if(t.hasOwnProperty("duration"))i=t;else if("number"==typeof t)return Ic(rc(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=Ic(0,0,"");return t.dynamic=!0,t.strValue=n,t}return i=i||rc(n,e),Ic(i.duration,i.delay,i.easing)}(t.timings,e.errors);let n;e.currentAnimateTimings=i;let s=t.styles?t.styles:Aa({});if(5==s.type)n=this.visitKeyframes(s,e);else{let s=t.styles,o=!1;if(!s){o=!0;const t={};i.easing&&(t.easing=i.easing),s=Aa(t)}e.currentTime+=i.duration+i.delay;const r=this.visitStyle(s,e);r.isEmptyStep=o,n=r}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==ma?i.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):i.push(t)}):i.push(t.styles);let n=!1,s=null;return i.forEach(t=>{if(zc(t)){const e=t,i=e.easing;if(i&&(s=i,delete e.easing),!n)for(let t in e)if(e[t].toString().indexOf("{{")>=0){n=!0;break}}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:n,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let n=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(i=>{if(!this._driver.validateStyleProperty(i))return void e.errors.push(`The provided animation property "${i}" is not a supported CSS property for animations`);const o=e.collectedStyles[e.currentQuerySelector],r=o[i];let a=!0;r&&(s!=n&&s>=r.startTime&&n<=r.endTime&&(e.errors.push(`The CSS property "${i}" that exists between the times of "${r.startTime}ms" and "${r.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${n}ms"`),a=!1),s=r.startTime),a&&(o[i]={startTime:s,endTime:n}),e.options&&function(t,e,i){const n=e.params||{},s=gc(t);s.length&&s.forEach(t=>{n.hasOwnProperty(t)||i.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[i],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let n=0;const s=[];let o=!1,r=!1,a=0;const c=t.steps.map(t=>{const i=this._makeStyleAst(t,e);let c=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(zc(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(zc(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}return e}(i.styles),u=0;return null!=c&&(n++,u=i.offset=c),r=r||u<0||u>1,o=o||u0&&n{const o=l>0?n==h?1:l*n:s[n],r=o*f;e.currentTime=d+p.delay+r,p.duration=r,this._validateStyleAst(t,e),t.offset=o,i.styles.push(t)}),i}visitReference(t,e){return{type:8,animation:vc(this,pc(t.animation),e),options:Pc(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Pc(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Pc(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;const[s,o]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(Lc,"")),[t=t.replace(/@\*/g,ec).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,nc),e]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,Ha(e.collectedStyles,e.currentQuerySelector,{});const r=vc(this,pc(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:n.limit||0,optional:!!n.optional,includeSelf:o,animation:r,originalSelector:t.selector,options:Pc(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:rc(t.timings,e.errors,!0);return{type:12,animation:vc(this,pc(t.animation),e),timings:i,options:null}}}class Dc{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function zc(t){return!Array.isArray(t)&&"object"==typeof t}function Pc(t){var e;return t?(t=ac(t)).params&&(t.params=(e=t.params)?ac(e):null):t={},t}function Ic(t,e,i){return{duration:t,delay:e,easing:i}}function Oc(t,e,i,n,s,o,r=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:s,delay:o,totalTime:s+o,easing:r,subTimeline:a}}class Hc{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const Yc=new RegExp(":enter","g"),Bc=new RegExp(":leave","g");function jc(t,e,i,n,s,o={},r={},a,c,u=[]){return(new Fc).buildKeyframes(t,e,i,n,s,o,r,a,c,u)}class Fc{buildKeyframes(t,e,i,n,s,o,r,a,c,u=[]){c=c||new Hc;const l=new Kc(t,e,c,n,s,u,[]);l.options=a,l.currentTimeline.setStyles([o],null,l.errors,a),vc(this,i,l);const h=l.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(r).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([r],null,l.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[Oc(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.consume(e.element);if(i){const n=e.createSubContext(t.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,n,n.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let n=e.currentTimeline.currentTime;const s=null!=i.duration?sc(i.duration):null,o=null!=i.delay?sc(i.delay):null;return 0!==s&&t.forEach(t=>{const i=e.appendInstructionToTimeline(t,s,o);n=Math.max(n,i.duration+i.delay)}),n}visitReference(t,e){e.updateOptions(t.options,!0),vc(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let n=e;const s=t.options;if(s&&(s.params||s.delay)&&(n=e.createSubContext(s),n.transformIntoNewTimeline(),null!=s.delay)){6==n.previousNode.type&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Nc);const t=sc(s.delay);n.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>vc(this,t,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let n=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?sc(t.options.delay):0;t.steps.forEach(o=>{const r=e.createSubContext(t.options);s&&r.delayNextStep(s),vc(this,o,r),n=Math.max(n,r.currentTimeline.currentTime),i.push(r.currentTimeline)}),i.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(n),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return rc(e.params?mc(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,n=e.currentTimeline.duration,s=i.duration,o=e.createSubContext().currentTimeline;o.easing=i.easing,t.styles.forEach(t=>{o.forwardTime((t.offset||0)*s),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(n+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,n=t.options||{},s=n.delay?sc(n.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Nc);let o=i;const r=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!n.optional,e.errors);e.currentQueryTotal=r.length;let a=null;r.forEach((i,n)=>{e.currentQueryIndex=n;const r=e.createSubContext(t.options,i);s&&r.delayNextStep(s),i===e.element&&(a=r.currentTimeline),vc(this,t.animation,r),r.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,r.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,n=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),r=o*(e.currentQueryTotal-1);let a=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=r-a;break;case"full":a=i.currentStaggerTime}const c=e.currentTimeline;a&&c.delayNextStep(a);const u=c.currentTime;vc(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-u+(n.startTime-i.currentTimeline.startTime)}}const Nc={};class Kc{constructor(t,e,i,n,s,o,r,a){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=s,this.errors=o,this.timelines=r,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Nc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new qc(this._driver,e,0),r.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let n=this.options;null!=i.duration&&(n.duration=sc(i.duration)),null!=i.delay&&(n.delay=sc(i.delay));const s=i.params;if(s){let t=n.params;t||(t=this.options.params={}),Object.keys(s).forEach(i=>{e&&t.hasOwnProperty(i)||(t[i]=mc(s[i],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(t=>{i[t]=e[t]})}}return t}createSubContext(t=null,e,i){const n=e||this.element,s=new Kc(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=Nc,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const n={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new Uc(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(s),n}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,n,s,o){let r=[];if(n&&r.push(this.element),t.length>0){t=(t=t.replace(Yc,"."+this._enterClassName)).replace(Bc,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=i);0!==i&&(e=i<0?e.slice(e.length+i,e.length):e.slice(0,i)),r.push(...e)}return s||0!=r.length||o.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),r}}class qc{constructor(t,e,i,n){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),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.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new qc(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||ma,this._currentKeyframe[t]=ma}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,n){e&&(this._previousKeyframe.easing=e);const s=n&&n.params||{},o=function(t,e){const i={};let n;return t.forEach(t=>{"*"===t?(n=n||Object.keys(e),n.forEach(t=>{i[t]=ma})):cc(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(o).forEach(t=>{const e=mc(o[t],s,i);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:ma),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],n=t._styleSummary[e];(!i||n.time>i.time)&&this._updateStyle(e,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let n=[];this._keyframes.forEach((s,o)=>{const r=cc(s,!0);Object.keys(r).forEach(i=>{const n=r[i];"!"==n?t.add(i):n==ma&&e.add(i)}),i||(r.offset=o/this.duration),n.push(r)});const s=t.size?_c(t.values()):[],o=e.size?_c(e.values()):[];if(i){const t=n[0],e=ac(t);t.offset=0,e.offset=1,n=[t,e]}return Oc(this.element,n,s,o,this.duration,this.startTime,this.easing,!1)}}class Uc extends qc{constructor(t,e,i,n,s,o,r=!1){super(t,e,o.delay),this.element=e,this.keyframes=i,this.preStyleProps=n,this.postStyleProps=s,this._stretchStartingKeyframe=r,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],o=i+e,r=e/o,a=cc(t[0],!1);a.offset=0,s.push(a);const c=cc(t[0],!1);c.offset=Zc(r),s.push(c);const u=t.length-1;for(let n=1;n<=u;n++){let r=cc(t[n],!1);r.offset=Zc((e+r.offset*i)/o),s.push(r)}i=o,e=0,n="",t=s}return Oc(this.element,t,this.preStyleProps,this.postStyleProps,i,e,n,!0)}}function Zc(t,e=3){const i=Math.pow(10,e-1);return Math.round(t*i)/i}class Gc{}class Vc extends Gc{normalizePropertyName(t,e){return yc(t)}normalizeStyleValue(t,e,i,n){let s="";const o=i.toString().trim();if($c[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const e=i.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&n.push(`Please provide a CSS unit value for ${t}:${i}`)}return o+s}}const $c=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("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".split(",")))();function Wc(t,e,i,n,s,o,r,a,c,u,l,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:i,fromStyles:o,toState:n,toStyles:r,timelines:a,queriedElements:c,preStyleProps:u,postStyleProps:l,totalTime:h,errors:d}}const Jc={};class Qc{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,n){return function(t,e,i,n,s){return t.some(t=>t(e,i,n,s))}(this.ast.matchers,t,e,i,n)}buildStyles(t,e,i){const n=this._stateStyles["*"],s=this._stateStyles[t],o=n?n.buildStyles(e,i):{};return s?s.buildStyles(e,i):o}build(t,e,i,n,s,o,r,a,c,u){const l=[],h=this.ast.options&&this.ast.options.params||Jc,d=this.buildStyles(i,r&&r.params||Jc,l),p=a&&a.params||Jc,f=this.buildStyles(n,p,l),g=new Set,m=new Map,_=new Map,w="void"===n,y={params:Object.assign(Object.assign({},h),p)},b=u?[]:jc(t,e,this.ast.animation,s,o,d,f,y,c,l);let A=0;if(b.forEach(t=>{A=Math.max(t.duration+t.delay,A)}),l.length)return Wc(e,this._triggerName,i,n,w,d,f,[],[],m,_,A,l);b.forEach(t=>{const i=t.element,n=Ha(m,i,{});t.preStyleProps.forEach(t=>n[t]=!0);const s=Ha(_,i,{});t.postStyleProps.forEach(t=>s[t]=!0),i!==e&&g.add(i)});const v=_c(g.values());return Wc(e,this._triggerName,i,n,w,d,f,b,v,m,_,A)}}class Xc{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const i={},n=ac(this.defaultParams);return Object.keys(t).forEach(e=>{const i=t[e];null!=i&&(n[e]=i)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let o=s[t];o.length>1&&(o=mc(o,n,e)),i[t]=o})}}),i}}class tu{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new Xc(t.style,t.options&&t.options.params||{})}),eu(this.states,"true","1"),eu(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Qc(t,e,this.states))}),this.fallbackTransition=new Qc(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,n){return this.transitionFactories.find(s=>s.match(t,e,i,n))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function eu(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}const iu=new Hc;class nu{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],n=xc(this._driver,e,i);if(i.length)throw new Error(`Unable to build the animation due to the following errors: ${i.join("\n")}`);this._animations[t]=n}_buildPlayer(t,e,i){const n=t.element,s=za(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(n,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const n=[],s=this._animations[t];let o;const r=new Map;if(s?(o=jc(this._driver,e,s,Qa,Xa,{},{},i,iu,n),o.forEach(t=>{const e=Ha(r,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(n.push("The requested animation doesn't exist or has already been destroyed"),o=[]),n.length)throw new Error(`Unable to create the animation due to the following errors: ${n.join("\n")}`);r.forEach((t,e)=>{Object.keys(t).forEach(i=>{t[i]=this._driver.computeStyle(e,i,ma)})});const a=Da(o.map(t=>{const e=r.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,i,n){const s=Oa(e,"","","");return Pa(this._getPlayer(t),i,s,n),()=>{}}command(t,e,i,n){if("register"==i)return void this.register(t,n[0]);if("create"==i)return void this.create(t,e,n[0]||{});const s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(t)}}}const su="ng-animate-queued",ou="ng-animate-disabled",ru=".ng-animate-disabled",au=[],cu={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},uu={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class lu{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=null!=(n=i?t.value:t)?n:null,i){const e=ac(t);delete e.value,this.options=e}else this.options={};var n;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(i=>{null==t[i]&&(t[i]=e[i])})}}}const hu="void",du=new lu(hu);class pu{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,bu(e,this._hostClassName)}listen(t,e,i,n){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=i)&&"done"!=s)throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);var s;const o=Ha(this._elementListeners,t,[]),r={name:e,phase:i,callback:n};o.push(r);const a=Ha(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(bu(t,tc),bu(t,"ng-trigger-"+e),a[e]=du),()=>{this._engine.afterFlush(()=>{const t=o.indexOf(r);t>=0&&o.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,i,n=!0){const s=this._getTrigger(e),o=new gu(this.id,e,t);let r=this._engine.statesByElement.get(t);r||(bu(t,tc),bu(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,r={}));let a=r[e];const c=new lu(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),r[e]=c,a||(a=du),c.value!==hu&&a.value===c.value){if(!function(t,e){const i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(let s=0;s{dc(t,i),hc(t,n)})}return}const u=Ha(this._engine.playersByElement,t,[]);u.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let l=s.matchTransition(a.value,c.value,t,c.params),h=!1;if(!l){if(!n)return;l=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:l,fromState:a,toState:c,player:o,isFallbackTransition:h}),h||(bu(t,su),o.onStart(()=>{Au(t,su)})),o.onDone(()=>{let e=this.players.indexOf(o);e>=0&&this.players.splice(e,1);const i=this._engine.playersByElement.get(t);if(i){let t=i.indexOf(o);t>=0&&i.splice(t,1)}}),this.players.push(o),u.push(o),o}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,ec,!0);i.forEach(t=>{if(t.__ng_removed)return;const i=this._engine.fetchNamespacesByElement(t);i.size?i.forEach(i=>i.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,i,n){const s=this._engine.statesByElement.get(t);if(s){const o=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const i=this.trigger(t,e,hu,n);i&&o.push(i)}}),o.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&Da(o).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const n=new Set;e.forEach(e=>{const s=e.name;if(n.has(s))return;n.add(s);const o=this._triggers[s].fallbackTransition,r=i[s]||du,a=new lu(hu),c=new gu(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:o,fromState:r,toState:a,player:c,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let n=!1;if(i.totalAnimations){const e=i.players.length?i.playersByQueriedElement.get(t):[];if(e&&e.length)n=!0;else{let e=t;for(;e=e.parentNode;)if(i.statesByElement.get(e)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(t),n)i.markElementAsRemoved(this.id,t,!1,e);else{const n=t.__ng_removed;n&&n!==cu||(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){bu(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const n=i.player;if(n.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(e=>{if(e.name==i.triggerName){const n=Oa(s,i.triggerName,i.fromState.value,i.toState.value);n._data=t,Pa(i.player,e.phase,n,e.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):e.push(i)}),this._queue=[],e.sort((t,e)=>{const i=t.transition.ast.depCount,n=e.transition.ast.depCount;return 0==i||0==n?i-n:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class fu{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,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=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const i=new pu(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList.length-1;if(i>=0){let n=!1;for(let s=i;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),n=!0;break}n||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(i);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const t=Object.keys(i);for(let n=0;n=0&&this.collectedLeaveElements.splice(t,1)}if(t){const n=this._fetchNamespace(t);n&&n.insertNode(e,i)}n&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),bu(t,ou)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Au(t,ou))}removeNode(t,e,i,n){if(mu(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n),i){const i=this.namespacesByHostElement.get(e);i&&i.id!==t&&i.removeNode(e,n)}}else this._onRemovalComplete(e,n)}markElementAsRemoved(t,e,i,n){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}listen(t,e,i,n,s){return mu(e)?this._fetchNamespace(t).listen(e,i,n,s):()=>{}}_buildInstruction(t,e,i,n,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,ec,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,nc,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Da(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=cu,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,ru)&&this.markElementAsDisabled(t,!1),this.driver.query(t,ru,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;it()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Da(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const i=new Hc,n=[],s=new Map,o=[],r=new Map,a=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(t=>{u.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let i=0;i{const i=Qa+f++;p.set(e,i),t.forEach(t=>bu(t,i))});const g=[],m=new Set,_=new Set;for(let x=0;xm.add(t)):_.add(t))}const w=new Map,y=yu(h,Array.from(m));y.forEach((t,e)=>{const i=Xa+f++;w.set(e,i),t.forEach(t=>bu(t,i))}),t.push(()=>{d.forEach((t,e)=>{const i=p.get(e);t.forEach(t=>Au(t,i))}),y.forEach((t,e)=>{const i=w.get(e);t.forEach(t=>Au(t,i))}),g.forEach(t=>{this.processLeaveNode(t)})});const b=[],A=[];for(let x=this._namespaceList.length-1;x>=0;x--)this._namespaceList[x].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(b.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const u=!l||!this.driver.containsElement(l,s),h=w.get(s),d=p.get(s),f=this._buildInstruction(t,i,d,h,u);if(f.errors&&f.errors.length)A.push(f);else{if(u)return e.onStart(()=>dc(s,f.fromStyles)),e.onDestroy(()=>hc(s,f.toStyles)),void n.push(e);if(t.isFallbackTransition)return e.onStart(()=>dc(s,f.fromStyles)),e.onDestroy(()=>hc(s,f.toStyles)),void n.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),i.append(s,f.timelines),o.push({instruction:f,player:e,element:s}),f.queriedElements.forEach(t=>Ha(r,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const i=Object.keys(t);if(i.length){let t=a.get(e);t||a.set(e,t=new Set),i.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const i=Object.keys(t);let n=c.get(e);n||c.set(e,n=new Set),i.forEach(t=>n.add(t))})}});if(A.length){const t=[];A.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),b.forEach(t=>t.destroy()),this.reportError(t)}const v=new Map,k=new Map;o.forEach(t=>{const e=t.element;i.has(e)&&(k.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,v))}),n.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{Ha(v,e,[]).push(t),t.destroy()})});const T=g.filter(t=>Tu(t,a,c)),C=new Map;wu(C,this.driver,_,c,ma).forEach(t=>{Tu(t,a,c)&&T.push(t)});const S=new Map;d.forEach((t,e)=>{wu(S,this.driver,new Set(t),a,"!")}),T.forEach(t=>{const e=C.get(t),i=S.get(t);C.set(t,Object.assign(Object.assign({},e),i))});const M=[],E=[],L={};o.forEach(t=>{const{element:e,player:o,instruction:r}=t;if(i.has(e)){if(u.has(e))return o.onDestroy(()=>hc(e,r.toStyles)),o.disabled=!0,o.overrideTotalTime(r.totalTime),void n.push(o);let t=L;if(k.size>1){let i=e;const n=[];for(;i=i.parentNode;){const e=k.get(i);if(e){t=e;break}n.push(i)}n.forEach(e=>k.set(e,t))}const i=this._buildAnimation(o.namespaceId,r,v,s,S,C);if(o.setRealPlayer(i),t===L)M.push(o);else{const e=this.playersByElement.get(t);e&&e.length&&(o.parentPlayer=Da(e)),n.push(o)}}else dc(e,r.fromStyles),o.onDestroy(()=>hc(e,r.toStyles)),E.push(o),u.has(e)&&n.push(o)}),E.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const i=Da(e);t.setRealPlayer(i)}}),n.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let x=0;x!t.destroyed);n.length?vu(this,t,n):this.processLeaveNode(t)}return g.length=0,M.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),M}elementContainsData(t,e){let i=!1;const n=e.__ng_removed;return n&&n.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,n,s){let o=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(o=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||s==hu;e.forEach(e=>{e.queued||(t||e.triggerName==n)&&o.push(e)})}}return(i||n)&&(o=o.filter(t=>!(i&&i!=t.namespaceId||n&&n!=t.triggerName))),o}_beforeAnimationBuild(t,e,i){const n=e.element,s=e.isRemovalTransition?void 0:t,o=e.isRemovalTransition?void 0:e.triggerName;for(const r of e.timelines){const t=r.element,a=t!==n,c=Ha(i,t,[]);this._getPreviousPlayers(t,a,s,o,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),c.push(t)})}dc(n,e.fromStyles)}_buildAnimation(t,e,i,n,s,o){const r=e.triggerName,a=e.element,c=[],u=new Set,l=new Set,h=e.timelines.map(e=>{const h=e.element;u.add(h);const d=h.__ng_removed;if(d&&d.removedBeforeQueried)return new Ea(e.duration,e.delay);const p=h!==a,f=function(t){const e=[];return ku(t,e),e}((i.get(h)||au).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===h),g=s.get(h),m=o.get(h),_=za(0,this._normalizer,0,e.keyframes,g,m),w=this._buildPlayer(e,_,f);if(e.subTimeline&&n&&l.add(h),p){const e=new gu(t,r,h);e.setRealPlayer(w),c.push(e)}return w});c.forEach(t=>{Ha(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,i){let n;if(t instanceof Map){if(n=t.get(e),n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&t.delete(e)}}else if(n=t[e],n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&delete t[e]}return n}(this.playersByQueriedElement,t.element,t))}),u.forEach(t=>bu(t,ic));const d=Da(h);return d.onDestroy(()=>{u.forEach(t=>Au(t,ic)),hc(a,e.toStyles)}),l.forEach(t=>{Ha(n,t,[]).push(d)}),d}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new Ea(t.duration,t.delay)}}class gu{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new Ea,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>Pa(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Ha(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function mu(t){return t&&1===t.nodeType}function _u(t,e){const i=t.style.display;return t.style.display=null!=e?e:"none",i}function wu(t,e,i,n,s){const o=[];i.forEach(t=>o.push(_u(t)));const r=[];n.forEach((i,n)=>{const o={};i.forEach(t=>{const i=o[t]=e.computeStyle(n,t,s);i&&0!=i.length||(n.__ng_removed=uu,r.push(n))}),t.set(n,o)});let a=0;return i.forEach(t=>_u(t,o[a++])),r}function yu(t,e){const i=new Map;if(t.forEach(t=>i.set(t,[])),0==e.length)return i;const n=new Set(e),s=new Map;function o(t){if(!t)return 1;let e=s.get(t);if(e)return e;const r=t.parentNode;return e=i.has(r)?r:n.has(r)?1:o(r),s.set(t,e),e}return e.forEach(t=>{const e=o(t);1!==e&&i.get(e).push(t)}),i}function bu(t,e){if(t.classList)t.classList.add(e);else{let i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function Au(t,e){if(t.classList)t.classList.remove(e);else{let i=t.$$classes;i&&delete i[e]}}function vu(t,e,i){Da(i).onDone(()=>t.processLeaveNode(e))}function ku(t,e){for(let i=0;is.add(t)):e.set(t,n),i.delete(t),!0}class Cu{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new fu(t,e,i),this._timelineEngine=new nu(t,e,i),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,i,n,s){const o=t+"-"+n;let r=this._triggerCache[o];if(!r){const t=[],e=xc(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${n}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);r=function(t,e){return new tu(t,e)}(n,e),this._triggerCache[o]=r}this._transitionEngine.registerTrigger(e,n,r)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,n){this._transitionEngine.insertNode(t,e,i,n)}onRemove(t,e,i,n){this._transitionEngine.removeNode(t,e,n||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,n){if("@"==i.charAt(0)){const[t,s]=Ya(i);this._timelineEngine.command(t,e,s,n)}else this._transitionEngine.trigger(t,e,i,n)}listen(t,e,i,n,s){if("@"==i.charAt(0)){const[t,n]=Ya(i);return this._timelineEngine.listen(t,e,n,s)}return this._transitionEngine.listen(t,e,i,n,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Su(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=Eu(e[0]),e.length>1&&(n=Eu(e[e.length-1]))):e&&(i=Eu(e)),i||n?new Mu(t,i,n):null}let Mu=(()=>{class t{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&hc(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(hc(this._element,this._initialStyles),this._endStyles&&(hc(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(dc(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(dc(this._element,this._endStyles),this._endStyles=null),hc(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Eu(t){let e=null;const i=Object.keys(t);for(let n=0;nthis._handleCallback(t)}apply(){!function(t,e){const i=Yu(t,"").trim();i.length&&(function(t,e){let i=0;for(let n=0;n=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Ou(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const i=Yu(t,"").split(","),n=Iu(i,e);n>=0&&(i.splice(n,1),Hu(t,"",i.join(",")))}(this._element,this._name))}}function zu(t,e,i){Hu(t,"PlayState",i,Pu(t,e))}function Pu(t,e){const i=Yu(t,"");return i.indexOf(",")>0?Iu(i.split(","),e):Iu([i],e)}function Iu(t,e){for(let i=0;i=0)return i;return-1}function Ou(t,e,i){i?t.removeEventListener(Ru,e):t.addEventListener(Ru,e)}function Hu(t,e,i,n){const s=xu+e;if(null!=n){const e=t.style[s];if(e.length){const t=e.split(",");t[n]=i,i=t.join(",")}}t.style[s]=i}function Yu(t,e){return t.style[xu+e]||""}class Bu{constructor(t,e,i,n,s,o,r,a){this.element=t,this.keyframes=e,this.animationName=i,this._duration=n,this._delay=s,this._finalStyles=r,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=n+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Du(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(i=>{"offset"!=i&&(t[i]=e?this._finalStyles[i]:kc(this.element,i))})}this.currentSnapshot=t}}class ju extends Ea{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=$a(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class Fu{constructor(){this._count=0}validateStyleProperty(t){return Ua(t)}matchesElement(t,e){return Za(t,e)}containsElement(t,e){return Ga(t,e)}query(t,e,i){return Va(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(t=>$a(t));let n=`@keyframes ${e} {\n`,s="";i.forEach(t=>{s=" ";const e=parseFloat(t.offset);n+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const i=t[e];switch(e){case"offset":return;case"easing":return void(i&&(n+=`${s}animation-timing-function: ${i};\n`));default:return void(n+=`${s}${e}: ${i};\n`)}}),n+=`${s}}\n`}),n+="}\n";const o=document.createElement("style");return o.textContent=n,o}animate(t,e,i,n,s,o=[],r){const a=o.filter(t=>t instanceof Bu),c={};bc(i,n)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const u=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(i=>{"offset"!=i&&"easing"!=i&&(e[i]=t[i])})}),e}(e=Ac(t,e,c));if(0==i)return new ju(t,u);const l="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,l,e);(function(t){var e;const i=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&i instanceof ShadowRoot?i:document.head})(t).appendChild(h);const d=Su(t,e),p=new Bu(t,e,l,i,n,s,u,d);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}}class Nu{constructor(t,e,i,n){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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}_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(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:kc(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Ku{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(qu().toString()),this._cssKeyframesDriver=new Fu}validateStyleProperty(t){return Ua(t)}matchesElement(t,e){return Za(t,e)}containsElement(t,e){return Ga(t,e)}query(t,e,i){return Va(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,n,s,o=[],r){if(!r&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,s,o);const a={duration:i,delay:n,fill:0==n?"both":"forwards"};s&&(a.easing=s);const c={},u=o.filter(t=>t instanceof Nu);bc(i,n)&&u.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const l=Su(t,e=Ac(t,e=e.map(t=>cc(t,!1)),c));return new Nu(t,e,a,l)}}function qu(){return xa()&&Element.prototype.animate||{}}let Uu=(()=>{class t extends ga{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:s.ifc.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?ba(t):t;return Vu(this._renderer,null,e,"register",[i]),new Zu(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.FYo),s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class Zu extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Gu(this._id,t,e||{},this._renderer)}}class Gu{constructor(t,e,i,n){this.id=t,this.element=e,this._renderer=n,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Vu(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function Vu(t,e,i,n,s){return t.setProperty(e,`@@${i}:${n}`,s)}const $u="@",Wu="@.disabled";let Ju=(()=>{class t{constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const i=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(i);return t||(t=new Qu("",i,this.engine),this._rendererCache.set(i,t)),t}const n=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const o=e=>{Array.isArray(e)?e.forEach(o):this.engine.registerTrigger(n,s,t,e.name,e)};return e.data.animation.forEach(o),new Xu(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){t>=0&&te(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,i]=t;e(i)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,i]))}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 t.\u0275fac=function(e){return new(e||t)(s.LFG(s.FYo),s.LFG(Cu),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class Qu{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,n=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,n)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,n){this.delegate.setAttribute(t,e,i,n)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,n){this.delegate.setStyle(t,e,i,n)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){e.charAt(0)==$u&&e==Wu?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Xu extends Qu{constructor(t,e,i,n){super(e,i,n),this.factory=t,this.namespaceId=e}setProperty(t,e,i){e.charAt(0)==$u?"."==e.charAt(1)&&e==Wu?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if(e.charAt(0)==$u){const n=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),o="";return s.charAt(0)!=$u&&([s,o]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,n,s,o,t=>{this.factory.scheduleListenerCallback(t._data||-1,i,t)})}return this.delegate.listen(t,e,i)}}let tl=(()=>{class t extends Cu{constructor(t,e,i){super(t.body,e,i)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0),s.LFG(Ja),s.LFG(Gc))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const el=new s.OlP("AnimationModuleType"),il=[{provide:ga,useClass:Uu},{provide:Gc,useFactory:function(){return new Vc}},{provide:Cu,useClass:tl},{provide:s.FYo,useFactory:function(t,e,i){return new Ju(t,e,i)},deps:[k,Cu,s.R0b]}],nl=[{provide:Ja,useFactory:function(){return"function"==typeof qu()?new Ku:new Fu}},{provide:el,useValue:"BrowserAnimations"},...il],sl=[{provide:Ja,useClass:Wa},{provide:el,useValue:"NoopAnimations"},...il];let ol=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?sl:nl}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:nl,imports:[Y]}),t})();function rl(t,e){if(1&t&&s._UZ(0,"mat-pseudo-checkbox",4),2&t){const t=s.oxw();s.Q6J("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function al(t,e){if(1&t&&(s.TgZ(0,"span",5),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.hij("(",t.group.label,")")}}const cl=["*"];let ul=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),ll=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const hl=new s.GfV("12.0.5"),dl=new s.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let pl=(()=>{class t{constructor(t,e,i){this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return(0,s.X6Q)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&hl.full!==fa.full&&console.warn("The Angular Material version ("+hl.full+") does not match the Angular CDK version ("+fa.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(da),s.LFG(dl,8),s.LFG(n.K0))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[_o],_o]}),t})();function fl(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=ss(t)}}}function gl(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function ml(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=ss(t)}}}function _l(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?os(t):this.defaultTabIndex}}}function wl(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new At.xQ}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}function yl(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new Ct.y(t=>{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}const bl=new s.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return(0,s.f3M)(s.soG)}});class Al{constructor(){this._localeChanges=new At.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let i=this.isValid(t),n=this.isValid(e);return i&&n?!this.compareDate(t,e):i==n}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}}const vl=new s.OlP("mat-date-formats");let kl;try{kl="undefined"!=typeof Intl}catch(Ix){kl=!1}const Tl={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},Cl=El(31,t=>String(t+1)),Sl={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},Ml=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function El(t,e){const i=Array(t);for(let n=0;n{class t extends Al{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(kl){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return El(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return Tl[t]}getDateNames(){if(kl){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return El(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return Cl}getDayOfWeekNames(t){if(kl){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return El(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return Sl[t]}getYearName(t){if(kl){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,i){let n=this._createDateWithOverflow(t,e,i);return n.getMonth(),n}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(kl){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});const i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(i,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let i=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(i)!=((this.getMonth(t)+e)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(Ml.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,i){const n=new Date;return n.setFullYear(t,e,i),n.setHours(0,0,0,0),n}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const i=new Date;return i.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),i.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(i)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(bl,8),s.LFG(eo))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),xl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[{provide:Al,useClass:Ll}],imports:[[io]]}),t})();const Rl={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 Dl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[{provide:vl,useValue:Rl}],imports:[[xl]]}),t})(),zl=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Pl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function Il(t,e,i){const n=t.nativeElement.classList;i?n.add(e):n.remove(e)}let Ol=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[pl],pl]}),t})();class Hl{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Yl={enterDuration:450,exitDuration:400},Bl=uo({passive:!0}),jl=["mousedown","touchstart"],Fl=["mouseup","mouseleave","touchend","touchcancel"];class Nl{constructor(t,e,i,n){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,n.isBrowser&&(this._containerElement=us(i))}fadeInRipple(t,e,i={}){const n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},Yl),i.animation);i.centered&&(t=n.left+n.width/2,e=n.top+n.height/2);const o=i.radius||function(t,e,i){const n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),s=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+s*s)}(t,e,n),r=t-n.left,a=e-n.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=r-o+"px",u.style.top=a-o+"px",u.style.height=2*o+"px",u.style.width=2*o+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),window.getComputedStyle(u).getPropertyValue("opacity"),u.style.transform="scale(1)";const l=new Hl(this,u,i);return l.state=0,this._activeRipples.add(l),i.persistent||(this._mostRecentTransientRipple=l),this._runTimeoutOutsideZone(()=>{const t=l===this._mostRecentTransientRipple;l.state=1,i.persistent||t&&this._isPointerDown||l.fadeOut()},c),l}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,n=Object.assign(Object.assign({},Yl),t.config.animation);i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.parentNode.removeChild(i)},n.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=us(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(jl))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Fl),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=ia(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,Bl)})})}_removeTriggerEvents(){this._triggerElement&&(jl.forEach(t=>{this._triggerElement.removeEventListener(t,this,Bl)}),this._pointerUpEventsRegistered&&Fl.forEach(t=>{this._triggerElement.removeEventListener(t,this,Bl)}))}}const Kl=new s.OlP("mat-ripple-global-options");let ql=(()=>{class t{constructor(t,e,i,n,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=n||{},this._rippleRenderer=new Nl(this,e,t,i)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,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:Object.assign(Object.assign(Object.assign({},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(t,e=0,i){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(eo),s.Y36(Kl,8),s.Y36(el,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),Ul=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[pl,io],pl]}),t})(),Zl=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(el,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&s.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},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:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::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}\n'],encapsulation:2,changeDetection:0}),t})(),Gl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[pl]]}),t})();const Vl=new s.OlP("MAT_OPTION_PARENT_COMPONENT");class $l{}const Wl=fl($l);let Jl=0,Ql=(()=>{class t extends Wl{constructor(t){var e;super(),this._labelId="mat-optgroup-label-"+Jl++,this._inert=null!==(e=null==t?void 0:t.inertGroups)&&void 0!==e&&e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Vl,8))},t.\u0275dir=s.lG2({type:t,inputs:{label:"label"},features:[s.qOj]}),t})();const Xl=new s.OlP("MatOptgroup");let th=0;class eh{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let ih=(()=>{class t{constructor(t,e,i,n){this._element=t,this._changeDetectorRef=e,this._parent=i,this.group=n,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+th++,this.onSelectionChange=new s.vpe,this._stateChanges=new At.xQ}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(t){this._disabled=ss(t)}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(t,e){const i=this._getHostElement();"function"==typeof i.focus&&i.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){t.keyCode!==jo&&t.keyCode!==No||Go(t)||(this._selectViaInteraction(),t.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 t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new eh(this,t))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(void 0),s.Y36(Ql))},t.\u0275dir=s.lG2({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),nh=(()=>{class t extends ih{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(Vl,8),s.Y36(Xl,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(s.Ikx("id",e.id),s.uIk("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),s.ekj("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[s.qOj],ngContentSelectors:cl,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(t,e){1&t&&(s.F$t(),s.YNc(0,rl,1,2,"mat-pseudo-checkbox",0),s.TgZ(1,"span",1),s.Hsn(2),s.qZA(),s.YNc(3,al,2,1,"span",2),s._UZ(4,"div",3)),2&t&&(s.Q6J("ngIf",e.multiple),s.xp6(3),s.Q6J("ngIf",e.group&&e.group._inert),s.xp6(1),s.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[n.O5,ql,Zl],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:transparent}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function sh(t,e,i){if(i.length){let n=e.toArray(),s=i.toArray(),o=0;for(let e=0;e{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Ul,n.ez,pl,Gl]]}),t})();function rh(t,e){}class ah{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=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const ch={dialogContainer:_a("dialogContainer",[va("void, exit",Aa({opacity:0,transform:"scale(0.7)"})),va("enter",Aa({transform:"none"})),Ta("* => enter",wa("150ms cubic-bezier(0, 0, 0.2, 1)",Aa({transform:"none",opacity:1}))),Ta("* => void, * => exit",wa("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Aa({opacity:0})))])};let uh=(()=>{class t extends Do{constructor(t,e,i,n,o,r){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=i,this._config=o,this._focusMonitor=r,this._animationStateChanged=new s.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=o.ariaLabelledBy||null,this._document=n}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=fo(),i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=fo())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=fo();return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Wr),s.Y36(s.sBO),s.Y36(n.K0,8),s.Y36(ah),s.Y36(ra))},t.\u0275dir=s.lG2({type:t,viewQuery:function(t,e){if(1&t&&s.Gf(Io,7),2&t){let t;s.iGM(t=s.CRH())&&(e._portalOutlet=t.first)}},features:[s.qOj]}),t})(),lh=(()=>{class t extends uh{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&s.WFA("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(s.Ikx("id",e._id),s.uIk("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),s.d8E("@dialogContainer",e._state))},features:[s.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&s.YNc(0,rh,0,0,"ng-template",0)},directives:[Io],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[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.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}\n"],encapsulation:2,data:{animation:[ch.dialogContainer]}}),t})(),hh=0;class dh{constructor(t,e,i="mat-dialog-"+hh++){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new At.xQ,this._afterClosed=new At.xQ,this._beforeClosed=new At.xQ,this._state=0,e._id=i,e._animationStateChanged.pipe((0,wt.h)(t=>"opened"===t.state),(0,Pt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,wt.h)(t=>"closed"===t.state),(0,Pt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe((0,wt.h)(t=>t.keyCode===Fo&&!this.disableClose&&!Go(t))).subscribe(t=>{t.preventDefault(),ph(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():ph(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe((0,wt.h)(t=>"closing"===t.state),(0,Pt.q)(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function ph(t,e,i){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(i)}const fh=new s.OlP("MatDialogData"),gh=new s.OlP("mat-dialog-default-options"),mh=new s.OlP("mat-dialog-scroll-strategy"),_h={provide:mh,deps:[vr],useFactory:function(t){return()=>t.scrollStrategies.block()}};let wh=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c){this._overlay=t,this._injector=e,this._defaultOptions=i,this._parentDialog=n,this._overlayContainer=s,this._dialogRefConstructor=r,this._dialogContainerType=a,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new At.xQ,this._afterOpenedAtThisLevel=new At.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=xt(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Ot(void 0))),this._scrollStrategy=o}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new ah)).id&&this.getDialogById(e.id);const i=this._createOverlay(e),n=this._attachDialogContainer(i,e),s=this._attachDialogContent(t,n,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),n._initializeWithAttachedContent(),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new ir({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const i=s.zs3.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:ah,useValue:e}]}),n=new Lo(this._dialogContainerType,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}_attachDialogContent(t,e,i,n){const o=new this._dialogRefConstructor(i,e,n.id);if(t instanceof s.Rgc)e.attachTemplatePortal(new xo(t,null,{$implicit:n.data,dialogRef:o}));else{const i=this._createInjector(n,o,e),s=e.attachComponentPortal(new Lo(t,n.viewContainerRef,i));o.componentInstance=s.instance}return o.updateSize(n.width,n.height).updatePosition(n.position),o}_createInjector(t,e,i){const n=t&&t.viewContainerRef&&t.viewContainerRef.injector,o=[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||n&&n.get(mo,null,s.XFs.Optional)||o.push({provide:mo,useValue:{value:t.direction,change:(0,bt.of)()}}),s.zs3.create({parent:n||this._injector,providers:o})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let i=e.length-1;i>-1;i--){let n=e[i];n===t||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(vr),s.Y36(s.zs3),s.Y36(void 0),s.Y36(void 0),s.Y36(ur),s.Y36(void 0),s.Y36(s.DyG),s.Y36(s.DyG),s.Y36(s.OlP))},t.\u0275dir=s.lG2({type:t}),t})(),yh=(()=>{class t extends wh{constructor(t,e,i,n,s,o,r){super(t,e,n,o,r,s,dh,lh,fh)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(vr),s.LFG(s.zs3),s.LFG(n.Ye,8),s.LFG(gh,8),s.LFG(mh),s.LFG(t,12),s.LFG(ur))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),bh=0,Ah=(()=>{class t{constructor(t,e,i){this._dialogRef=t,this._elementRef=e,this._dialog=i,this.id="mat-dialog-title-"+bh++}ngOnInit(){this._dialogRef||(this._dialogRef=function(t,e){let i=t.nativeElement.parentElement;for(;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?e.find(t=>t.id===i.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(dh,8),s.Y36(s.SBq),s.Y36(yh))},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&s.Ikx("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),vh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),kh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})(),Th=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[yh,_h],imports:[[Er,Oo,pl],pl]}),t})();var Ch=i(2623);let Sh=(()=>{class t{constructor(t,e,i,n,s){this.injector=t,this.store=e,this.dialog=i,this.route=n,this.oauthService=s,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(Pn),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(t=>{t.idpFilter&&(this.filterShortname=t.idpFilter)})}getClientConfig(){const t=this.setIdpFilter(),e=t?{acr_values:t}:{};return this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(e.prompt="consent"),{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"),customQueryParams:e}}setIdpFilter(){const t=location.search.substr(1).split("&");this.filterShortname=null;const e=this.store.get("oidc_client","filters");if(!e)return null;let i=null;return t.forEach(t=>{const n=t.split("=");"idpFilter"===n[0]&&e[n[1]]&&(this.filterShortname=n[1],i=e[n[1]])}),e.default&&!i?(this.filterShortname="default",e.default):i}startIdpFilterKeeper(){this.router.events.pipe((0,wt.h)(t=>t instanceof re)).subscribe(()=>{const t={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===t.idpFilter?{}:t,queryParamsHandling:"merge",replaceUrl:!0})})}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const t=location.pathname,e=location.search.substr(1);return"/api-callback"===t?this.handleAuthCallback().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(t,e).then(()=>this.startRefreshToken())}startRefreshToken(){return this.isLoggedInPromise().then(t=>!!t&&(this.oauthService.events.pipe((0,wt.h)(t=>"token_expires"===t.type)).subscribe(()=>{this.oauthService.refreshToken()}),!0))}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):this.oauthService.logOut()}isLoggedInPromise(){return this.isLoggedIn()?Promise.resolve(!0):Promise.resolve(!1)}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}isPotentiallyValidPath(t){const e=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===t)return!0;for(const i of e)if(t.startsWith(i))return!0;return!1}verifyAuthentication(t,e){return this.isLoggedInPromise().then(i=>i?(this.oauthService.loadDiscoveryDocument(),!0):this.isPotentiallyValidPath(t)?(sessionStorage.setItem("auth:redirect",t),sessionStorage.setItem("auth:queryParams",e),!1):new Promise((t,e)=>e("Invalid path")))}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const t=sessionStorage.getItem("mfa_route");if(t)return this.router.navigate([t],{replaceUrl:!0});let e=sessionStorage.getItem("auth:redirect");const i=sessionStorage.getItem("auth:queryParams");let n=[];i&&(n=i.split("&"));const s={};return n.forEach(t=>{const e=t.split("=");s[e[0]]=e[1]}),e&&"/login"!==e||(e="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),s.idpFilter&&(this.filterShortname=s.idpFilter),this.router.navigate([e],{queryParams:s,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.zs3),s.LFG(ns),s.LFG(yh),s.LFG(hi),s.LFG(Ch.Ct))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Mh=i(2056);function Eh(...t){if(1===t.length){const e=t[0];if((0,ls.k)(e))return Lh(e,null);if((0,Mh.K)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Lh(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Lh(t=1===t.length&&(0,ls.k)(t[0])?t[0]:t,null).pipe((0,Dt.U)(t=>e(...t)))}return Lh(t,null)}function Lh(t,e){return new Ct.y(i=>{const n=t.length;if(0===n)return void i.complete();const s=new Array(n);let o=0,r=0;for(let a=0;a{u||(u=!0,r++),s[a]=t},error:t=>i.error(t),complete:()=>{o++,o!==n&&u||(r===n&&i.next(e?e.reduce((t,e,i)=>(t[e]=s[i],t),{}):s),i.complete())}}))}})}class xh{}let Rh=(()=>{class t extends xh{getTranslation(t){return(0,bt.of)({})}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class Dh{}let zh=(()=>{class t{handle(t){return t.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function Ph(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;let i,n,s,o=typeof t;if(o==typeof e&&"object"==o){if(!Array.isArray(t)){if(Array.isArray(e))return!1;for(n in s=Object.create(null),t){if(!Ph(t[n],e[n]))return!1;s[n]=!0}for(n in e)if(!(n in s)&&void 0!==e[n])return!1;return!0}if(!Array.isArray(e))return!1;if((i=t.length)==e.length){for(n=0;n{Oh(e[n])?n in t?i[n]=Hh(t[n],e[n]):Object.assign(i,{[n]:e[n]}):Object.assign(i,{[n]:e[n]})}),i}class Yh{}let Bh=(()=>{class t extends Yh{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(t,e){let i;return i="string"==typeof t?this.interpolateString(t,e):"function"==typeof t?this.interpolateFunction(t,e):t,i}getValue(t,e){let i="string"==typeof e?e.split("."):[e];e="";do{e+=i.shift(),!Ih(t)||!Ih(t[e])||"object"!=typeof t[e]&&i.length?i.length?e+=".":t=void 0:(t=t[e],e="")}while(i.length);return t}interpolateFunction(t,e){return t(e)}interpolateString(t,e){return e?t.replace(this.templateMatcher,(t,i)=>{let n=this.getValue(e,i);return Ih(n)?n:t}):t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class jh{}let Fh=(()=>{class t extends jh{compile(t,e){return t}compileTranslations(t,e){return t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class Nh{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new s.vpe,this.onLangChange=new s.vpe,this.onDefaultLangChange=new s.vpe}}const Kh=new s.OlP("USE_STORE"),qh=new s.OlP("USE_DEFAULT_LANG"),Uh=new s.OlP("DEFAULT_LANGUAGE"),Zh=new s.OlP("USE_EXTEND");let Gh=(()=>{class t{constructor(t,e,i,n,o,r=!0,a=!1,c=!1,u){this.store=t,this.currentLoader=e,this.compiler=i,this.parser=n,this.missingTranslationHandler=o,this.useDefaultLang=r,this.isolate=a,this.extend=c,this.pending=!1,this._onTranslationChange=new s.vpe,this._onLangChange=new s.vpe,this._onDefaultLangChange=new s.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(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}setDefaultLang(t){if(t===this.defaultLang)return;let e=this.retrieveTranslations(t);void 0!==e?(null==this.defaultLang&&(this.defaultLang=t),e.pipe((0,Pt.q)(1)).subscribe(e=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return(0,bt.of)(this.translations[t]);let e=this.retrieveTranslations(t);return void 0!==e?(this.currentLang||(this.currentLang=t),e.pipe((0,Pt.q)(1)).subscribe(e=>{this.changeLang(t)}),e):(this.changeLang(t),(0,bt.of)(this.translations[t]))}retrieveTranslations(t){let e;return(void 0===this.translations[t]||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),e=this._translationRequests[t]),e}getTranslation(t){this.pending=!0;const e=this.currentLoader.getTranslation(t).pipe(Qs(1),(0,Pt.q)(1));return this.loadingTranslations=e.pipe((0,Dt.U)(e=>this.compiler.compileTranslations(e,t)),Qs(1),(0,Pt.q)(1)),this.loadingTranslations.subscribe({next:e=>{this.translations[t]=this.extend&&this.translations[t]?Object.assign(Object.assign({},e),this.translations[t]):e,this.updateLangs(),this.pending=!1},error:t=>{this.pending=!1}}),e}setTranslation(t,e,i=!1){e=this.compiler.compileTranslations(e,t),this.translations[t]=(i||this.extend)&&this.translations[t]?Hh(this.translations[t],e):e,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,e,i){let n;if(e instanceof Array){let n={},s=!1;for(let o of e)n[o]=this.getParsedResult(t,o,i),Ms(n[o])&&(s=!0);return s?Eh(e.map(t=>Ms(n[t])?n[t]:(0,bt.of)(n[t]))).pipe((0,Dt.U)(t=>{let i={};return t.forEach((t,n)=>{i[e[n]]=t}),i})):n}if(t&&(n=this.parser.interpolate(this.parser.getValue(t,e),i)),void 0===n&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(n=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e),i)),void 0===n){let t={key:e,translateService:this};void 0!==i&&(t.interpolateParams=i),n=this.missingTranslationHandler.handle(t)}return void 0!==n?n:e}get(t,e){if(!Ih(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Nt.b)(i=>Ms(i=this.getParsedResult(i,t,e))?i:(0,bt.of)(i)));{let i=this.getParsedResult(this.translations[this.currentLang],t,e);return Ms(i)?i:(0,bt.of)(i)}}getStreamOnTranslationChange(t,e){if(!Ih(t)||!t.length)throw new Error('Parameter "key" required');return Et(xt(()=>this.get(t,e)),this.onTranslationChange.pipe((0,zt.w)(i=>{const n=this.getParsedResult(i.translations,t,e);return"function"==typeof n.subscribe?n:(0,bt.of)(n)})))}stream(t,e){if(!Ih(t)||!t.length)throw new Error('Parameter "key" required');return Et(xt(()=>this.get(t,e)),this.onLangChange.pipe((0,zt.w)(i=>{const n=this.getParsedResult(i.translations,t,e);return Ms(n)?n:(0,bt.of)(n)})))}instant(t,e){if(!Ih(t)||!t.length)throw new Error('Parameter "key" required');let i=this.getParsedResult(this.translations[this.currentLang],t,e);if(Ms(i)){if(t instanceof Array){let e={};return t.forEach((i,n)=>{e[t[n]]=t[n]}),e}return t}return i}set(t,e,i=this.currentLang){this.translations[i][t]=this.compiler.compile(e,i),this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==t?(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Nh),s.LFG(xh),s.LFG(jh),s.LFG(Yh),s.LFG(Dh),s.LFG(qh),s.LFG(Kh),s.LFG(Zh),s.LFG(Uh))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Vh=(()=>{class t{constructor(t,e){this.translate=t,this._ref=e,this.value=""}updateValue(t,e,i){let n=e=>{this.value=void 0!==e?e:t,this.lastKey=t,this._ref.markForCheck()};if(i){let s=this.translate.getParsedResult(i,t,e);Ms(s.subscribe)?s.subscribe(n):n(s)}this.translate.get(t,e).subscribe(n)}transform(t,...e){if(!t||!t.length)return t;if(Ph(t,this.lastKey)&&Ph(e,this.lastParams))return this.value;let i;if(Ih(e[0])&&e.length)if("string"==typeof e[0]&&e[0].length){let t=e[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{i=JSON.parse(t)}catch(n){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${e[0]}`)}}else"object"!=typeof e[0]||Array.isArray(e[0])||(i=e[0]);return this.lastKey=t,this.lastParams=e,this.updateValue(t,i),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(e=>{this.lastKey&&e.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(t,i,e.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(e=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i,e.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Gh,16),s.Y36(s.sBO,16))},t.\u0275pipe=s.Yjl({name:"translate",type:t,pure:!1}),t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),$h=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:xh,useClass:Rh},e.compiler||{provide:jh,useClass:Fh},e.parser||{provide:Yh,useClass:Bh},e.missingTranslationHandler||{provide:Dh,useClass:zh},Nh,{provide:Kh,useValue:e.isolate},{provide:qh,useValue:e.useDefaultLang},{provide:Zh,useValue:e.extend},{provide:Uh,useValue:e.defaultLanguage},Gh]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:xh,useClass:Rh},e.compiler||{provide:jh,useClass:Fh},e.parser||{provide:Yh,useClass:Bh},e.missingTranslationHandler||{provide:Dh,useClass:zh},{provide:Kh,useValue:e.isolate},{provide:qh,useValue:e.useDefaultLang},{provide:Zh,useValue:e.extend},{provide:Uh,useValue:e.defaultLanguage},Gh]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),Wh=(()=>{class t{constructor(t){this.dialogRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(dh))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(t,e){1&t&&(s.TgZ(0,"h2",0),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE")))},directives:[vh],pipes:[Vh],styles:[""]}),t})();const Jh=["mat-button",""],Qh=["*"],Xh=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class td{constructor(t){this._elementRef=t}}const ed=gl(fl(ml(td)));let id=(()=>{class t extends ed{constructor(t,e,i){super(t),this._focusMonitor=e,this._animationMode=i,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const n of Xh)this._hasHostAttributes(n)&&this._getHostElement().classList.add(n);t.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(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(ra),s.Y36(el,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){if(1&t&&s.Gf(ql,5),2&t){let t;s.iGM(t=s.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(s.uIk("disabled",e.disabled||null),s.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[s.qOj],attrs:Jh,ngContentSelectors:Qh,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(t,e){1&t&&(s.F$t(),s.TgZ(0,"span",0),s.Hsn(1),s.qZA(),s._UZ(2,"span",1),s._UZ(3,"span",2)),2&t&&(s.xp6(2),s.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),s.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[ql],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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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-animation-noopable.mat-raised-button{transition:none;animation:none}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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-animation-noopable.mat-fab{transition:none;animation:none}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t})(),nd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Ul,pl],pl]}),t})();const sd=["underline"],od=["connectionContainer"],rd=["inputContainer"],ad=["label"];function cd(t,e){1&t&&(s.ynx(0),s.TgZ(1,"div",14),s._UZ(2,"div",15),s._UZ(3,"div",16),s._UZ(4,"div",17),s.qZA(),s.TgZ(5,"div",18),s._UZ(6,"div",15),s._UZ(7,"div",16),s._UZ(8,"div",17),s.qZA(),s.BQk())}function ud(t,e){1&t&&(s.TgZ(0,"div",19),s.Hsn(1,1),s.qZA())}function ld(t,e){if(1&t&&(s.ynx(0),s.Hsn(1,2),s.TgZ(2,"span"),s._uU(3),s.qZA(),s.BQk()),2&t){const t=s.oxw(2);s.xp6(3),s.Oqu(t._control.placeholder)}}function hd(t,e){1&t&&s.Hsn(0,3,["*ngSwitchCase","true"])}function dd(t,e){1&t&&(s.TgZ(0,"span",23),s._uU(1," *"),s.qZA())}function pd(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"label",20,21),s.NdJ("cdkObserveContent",function(){return s.CHM(t),s.oxw().updateOutlineGap()}),s.YNc(2,ld,4,1,"ng-container",12),s.YNc(3,hd,1,0,"ng-content",12),s.YNc(4,dd,2,0,"span",22),s.qZA()}if(2&t){const t=s.oxw();s.ekj("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),s.Q6J("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),s.uIk("for",t._control.id)("aria-owns",t._control.id),s.xp6(2),s.Q6J("ngSwitchCase",!1),s.xp6(1),s.Q6J("ngSwitchCase",!0),s.xp6(1),s.Q6J("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function fd(t,e){1&t&&(s.TgZ(0,"div",24),s.Hsn(1,4),s.qZA())}function gd(t,e){if(1&t&&(s.TgZ(0,"div",25,26),s._UZ(2,"span",27),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.ekj("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function md(t,e){if(1&t&&(s.TgZ(0,"div"),s.Hsn(1,5),s.qZA()),2&t){const t=s.oxw();s.Q6J("@transitionMessages",t._subscriptAnimationState)}}function _d(t,e){if(1&t&&(s.TgZ(0,"div",31),s._uU(1),s.qZA()),2&t){const t=s.oxw(2);s.Q6J("id",t._hintLabelId),s.xp6(1),s.Oqu(t.hintLabel)}}function wd(t,e){if(1&t&&(s.TgZ(0,"div",28),s.YNc(1,_d,2,2,"div",29),s.Hsn(2,6),s._UZ(3,"div",30),s.Hsn(4,7),s.qZA()),2&t){const t=s.oxw();s.Q6J("@transitionMessages",t._subscriptAnimationState),s.xp6(1),s.Q6J("ngIf",t.hintLabel)}}const yd=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],bd=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Ad=0;const vd=new s.OlP("MatError");let kd=(()=>{class t{constructor(t,e){this.id="mat-error-"+Ad++,t||e.nativeElement.setAttribute("aria-live","polite")}}return t.\u0275fac=function(e){return new(e||t)(s.$8M("aria-live"),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&s.uIk("id",e.id)},inputs:{id:"id"},features:[s._Bn([{provide:vd,useExisting:t}])]}),t})();const Td={transitionMessages:_a("transitionMessages",[va("enter",Aa({opacity:1,transform:"translateY(0%)"})),Ta("void => enter",[Aa({opacity:0,transform:"translateY(-5px)"}),wa("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Cd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t}),t})(),Sd=0;const Md=new s.OlP("MatHint");let Ed=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+Sd++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(s.uIk("id",e.id)("align",null),s.ekj("mat-form-field-hint-end","end"===e.align))},inputs:{align:"align",id:"id"},features:[s._Bn([{provide:Md,useExisting:t}])]}),t})(),Ld=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-label"]]}),t})(),xd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-placeholder"]]}),t})();const Rd=new s.OlP("MatPrefix"),Dd=new s.OlP("MatSuffix");let zd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","matSuffix",""]],features:[s._Bn([{provide:Dd,useExisting:t}])]}),t})(),Pd=0;class Id{constructor(t){this._elementRef=t}}const Od=gl(Id,"primary"),Hd=new s.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Yd=new s.OlP("MatFormField");let Bd=(()=>{class t extends Od{constructor(t,e,i,n,s,o,r,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=n,this._defaults=s,this._platform=o,this._ngZone=r,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new At.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Pd++,this._labelId="mat-form-field-label-"+Pd++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=ss(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe(Ot(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(js(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(js(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,Ho.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Ot(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Ot(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(js(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(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_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,ds(this._label.nativeElement,"transitionend").pipe((0,Pt.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 t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,i=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),i&&t.push(i.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,i=0;const n=this._connectionContainerRef.nativeElement,s=n.querySelectorAll(".mat-form-field-outline-start"),o=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=n.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const o=this._getStartEnd(s),r=t.children,a=this._getStartEnd(r[0].getBoundingClientRect());let c=0;for(let t=0;t0?.75*c+10:0}for(let r=0;r{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,pl,zr],pl]}),t})(),Fd=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Qsj),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t}),t})(),Nd=(()=>{class t extends Fd{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,features:[s.qOj]}),t})();const Kd=new s.OlP("NgValueAccessor"),qd={provide:Kd,useExisting:(0,s.Gpc)(()=>Zd),multi:!0},Ud=new s.OlP("CompositionEventMode");let Zd=(()=>{class t extends Fd{constructor(t,e,i){super(t,e),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=(0,n.q)()?(0,n.q)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Qsj),s.Y36(s.SBq),s.Y36(Ud,8))},t.\u0275dir=s.lG2({type:t,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(t,e){1&t&&s.NdJ("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[s._Bn([qd]),s.qOj]}),t})();function Gd(t){return null==t||0===t.length}function Vd(t){return null!=t&&"number"==typeof t.length}const $d=new s.OlP("NgValidators"),Wd=new s.OlP("NgAsyncValidators"),Jd=/^(?=.{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 Qd{static min(t){return function(t){return e=>{if(Gd(e.value)||Gd(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i{if(Gd(e.value)||Gd(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}(t)}static required(t){return Xd(t)}static requiredTrue(t){return function(t){return!0===t.value?null:{required:!0}}(t)}static email(t){return function(t){return Gd(t.value)||Jd.test(t.value)?null:{email:!0}}(t)}static minLength(t){return function(t){return e=>Gd(e.value)||!Vd(e.value)?null:e.value.lengthVd(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}(t)}static pattern(t){return function(t){if(!t)return tp;let e,i;return"string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),t=>{if(Gd(t.value))return null;const n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}}(t)}static nullValidator(t){return null}static compose(t){return rp(t)}static composeAsync(t){return cp(t)}}function Xd(t){return Gd(t.value)?{required:!0}:null}function tp(t){return null}function ep(t){return null!=t}function ip(t){const e=(0,s.QGY)(t)?(0,yt.D)(t):t;return(0,s.CqO)(e),e}function np(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function sp(t,e){return e.map(e=>e(t))}function op(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function rp(t){if(!t)return null;const e=t.filter(ep);return 0==e.length?null:function(t){return np(sp(t,e))}}function ap(t){return null!=t?rp(op(t)):null}function cp(t){if(!t)return null;const e=t.filter(ep);return 0==e.length?null:function(t){return Eh(sp(t,e).map(ip)).pipe((0,Dt.U)(np))}}function up(t){return null!=t?cp(op(t)):null}function lp(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function hp(t){return t._rawValidators}function dp(t){return t._rawAsyncValidators}let pp=(()=>{class t{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(t){this._rawValidators=t||[],this._composedValidatorFn=ap(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=up(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t}),t})(),fp=(()=>{class t extends pp{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,features:[s.qOj]}),t})();class gp extends pp{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class mp{constructor(t){this._cd=t}is(t){var e,i;return!!(null===(i=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===i?void 0:i[t])}}let _p=(()=>{class t extends mp{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(gp,2))},t.\u0275dir=s.lG2({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&s.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[s.qOj]}),t})(),wp=(()=>{class t extends mp{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(fp,10))},t.\u0275dir=s.lG2({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&s.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[s.qOj]}),t})();function yp(t,e){return[...e.path,t]}function bp(t,e){kp(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Cp(t,e)})}(t,e),function(t,e){const i=(t,i)=>{e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Cp(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const i=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}(t,e)}function Ap(t,e,i=!0){const n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),Tp(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function vp(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function kp(t,e){const i=hp(t);null!==e.validator?t.setValidators(lp(i,e.validator)):"function"==typeof i&&t.setValidators([i]);const n=dp(t);null!==e.asyncValidator?t.setAsyncValidators(lp(n,e.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);const s=()=>t.updateValueAndValidity();vp(e._rawValidators,s),vp(e._rawAsyncValidators,s)}function Tp(t,e){let i=!1;if(null!==t){if(null!==e.validator){const n=hp(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.validator);s.length!==n.length&&(i=!0,t.setValidators(s))}}if(null!==e.asyncValidator){const n=dp(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.asyncValidator);s.length!==n.length&&(i=!0,t.setAsyncValidators(s))}}}const n=()=>{};return vp(e._rawValidators,n),vp(e._rawAsyncValidators,n),i}function Cp(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Sp(t,e){kp(t,e)}function Mp(t,e){if(!t.hasOwnProperty("model"))return!1;const i=t.model;return!!i.isFirstChange()||!Object.is(e,i.currentValue)}function Ep(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function Lp(t,e){if(!e)return null;let i,n,s;return Array.isArray(e),e.forEach(t=>{t.constructor===Zd?i=t:Object.getPrototypeOf(t.constructor)===Nd?n=t:s=t}),s||n||i||null}function xp(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}const Rp="VALID",Dp="INVALID",zp="PENDING",Pp="DISABLED";function Ip(t){return(Bp(t)?t.validators:t)||null}function Op(t){return Array.isArray(t)?ap(t):t||null}function Hp(t,e){return(Bp(e)?e.asyncValidators:t)||null}function Yp(t){return Array.isArray(t)?up(t):t||null}function Bp(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class jp{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=Op(this._rawValidators),this._composedAsyncValidatorFn=Yp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Rp}get invalid(){return this.status===Dp}get pending(){return this.status==zp}get disabled(){return this.status===Pp}get enabled(){return this.status!==Pp}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=Op(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=Yp(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=zp,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Pp,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Rp,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==Rp&&this.status!==zp||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Pp:Rp}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=zp,this._hasOwnPendingAsyncValidator=!0;const e=ip(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let n=t;return e.forEach(t=>{n=n instanceof Np?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof Kp&&n.at(t)||null}),n}(this,t)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new s.vpe,this.statusChanges=new s.vpe}_calculateStatus(){return this._allControlsDisabled()?Pp:this.errors?Dp:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(zp)?zp:this._anyControlsHaveStatus(Dp)?Dp:Rp}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Bp(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Fp extends jp{constructor(t=null,e,i){super(Ip(e),Hp(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){xp(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){xp(this._onDisabledChange,t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Np extends jp{constructor(t,e,i){super(Ip(e),Hp(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof Fp?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((t,n)=>{i=e(i,t,n)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class Kp extends jp{constructor(t,e,i){super(Ip(e),Hp(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,i)=>{this._throwIfControlMissing(i),this.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,i)=>{this.at(i)&&this.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof Fp?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const qp={provide:fp,useExisting:(0,s.Gpc)(()=>Zp)},Up=(()=>Promise.resolve(null))();let Zp=(()=>{class t extends fp{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new s.vpe,this.form=new Np({},ap(t),up(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Up.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),bp(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Up.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),xp(this._directives,t)})}addFormGroup(t){Up.then(()=>{const e=this._findContainer(t.path),i=new Np({});Sp(i,t),e.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Up.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){Up.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,Ep(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(s.Y36($d,10),s.Y36(Wd,10))},t.\u0275dir=s.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&s.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s._Bn([qp]),s.qOj]}),t})();const Gp={provide:gp,useExisting:(0,s.Gpc)(()=>$p)},Vp=(()=>Promise.resolve(null))();let $p=(()=>{class t extends gp{constructor(t,e,i,n){super(),this.control=new Fp,this._registered=!1,this.update=new s.vpe,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=Lp(0,n)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),Mp(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?yp(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_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(){bp(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(t){Vp.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,i=""===e||e&&"false"!==e;Vp.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(fp,9),s.Y36($d,10),s.Y36(Wd,10),s.Y36(Kd,10))},t.\u0275dir=s.lG2({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[s._Bn([Gp]),s.qOj,s.TTD]}),t})(),Wp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),Jp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();const Qp=new s.OlP("NgModelWithFormControlWarning"),Xp={provide:gp,useExisting:(0,s.Gpc)(()=>tf)};let tf=(()=>{class t extends gp{constructor(t,e,i,n){super(),this._ngModelWarningConfig=n,this.update=new s.vpe,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(e),this.valueAccessor=Lp(0,i)}set isDisabled(t){}ngOnChanges(t){if(this._isControlChanged(t)){const e=t.form.previousValue;e&&Ap(e,this,!1),bp(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Mp(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ap(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(s.Y36($d,10),s.Y36(Wd,10),s.Y36(Kd,10),s.Y36(Qp,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[s._Bn([Xp]),s.qOj,s.TTD]}),t._ngModelWarningSentOnce=!1,t})();const ef={provide:fp,useExisting:(0,s.Gpc)(()=>nf)};let nf=(()=>{class t extends fp{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new s.vpe,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Tp(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return bp(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){Ap(t.control||null,t,!1),xp(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,Ep(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,i=this.form.get(t.path);e!==i&&(Ap(e||null,t),i instanceof Fp&&(bp(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);Sp(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return Tp(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){kp(this.form,this),this._oldForm&&Tp(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36($d,10),s.Y36(Wd,10))},t.\u0275dir=s.lG2({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&s.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s._Bn([ef]),s.qOj,s.TTD]}),t})();const sf={provide:gp,useExisting:(0,s.Gpc)(()=>of)};let of=(()=>{class t extends gp{constructor(t,e,i,n,o){super(),this._ngModelWarningConfig=o,this._added=!1,this.update=new s.vpe,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=Lp(0,n)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),Mp(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return yp(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.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(fp,13),s.Y36($d,10),s.Y36(Wd,10),s.Y36(Kd,10),s.Y36(Qp,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[s._Bn([sf]),s.qOj,s.TTD]}),t._ngModelWarningSentOnce=!1,t})();const rf={provide:$d,useExisting:(0,s.Gpc)(()=>af),multi:!0};let af=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!=`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?Xd(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&s.uIk("required",e.required?"":null)},inputs:{required:"required"},features:[s._Bn([rf])]}),t})(),cf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Jp]]}),t})(),uf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[cf]}),t})(),lf=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Qp,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[cf]}),t})(),hf=(()=>{class t{group(t,e=null){const i=this._reduceControls(t);let n,s=null,o=null;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(s=null!=e.validators?e.validators:null,o=null!=e.asyncValidators?e.asyncValidators:null,n=null!=e.updateOn?e.updateOn:void 0):(s=null!=e.validator?e.validator:null,o=null!=e.asyncValidator?e.asyncValidator:null)),new Np(i,{asyncValidators:o,updateOn:n,validators:s})}control(t,e,i){return new Fp(t,e,i)}array(t,e,i){const n=t.map(t=>this._createControl(t));return new Kp(n,e,i)}_reduceControls(t){const e={};return Object.keys(t).forEach(i=>{e[i]=this._createControl(t[i])}),e}_createControl(t){return t instanceof Fp||t instanceof Np||t instanceof Kp?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t},token:t,providedIn:lf}),t})();const df=["trigger"],pf=["panel"];function ff(t,e){if(1&t&&(s.TgZ(0,"span",8),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Oqu(t.placeholder)}}function gf(t,e){if(1&t&&(s.TgZ(0,"span",12),s._uU(1),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Oqu(t.triggerValue)}}function mf(t,e){1&t&&s.Hsn(0,0,["*ngSwitchCase","true"])}function _f(t,e){if(1&t&&(s.TgZ(0,"span",9),s.YNc(1,gf,2,1,"span",10),s.YNc(2,mf,1,0,"ng-content",11),s.qZA()),2&t){const t=s.oxw();s.Q6J("ngSwitch",!!t.customTrigger),s.xp6(2),s.Q6J("ngSwitchCase",!0)}}function wf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",13),s.TgZ(1,"div",14,15),s.NdJ("@transformPanel.done",function(e){return s.CHM(t),s.oxw()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return s.CHM(t),s.oxw()._handleKeydown(e)}),s.Hsn(3,1),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("@transformPanelWrap",void 0),s.xp6(1),s.Gre("mat-select-panel ",t._getPanelTheme(),""),s.Udp("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),s.Q6J("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),s.uIk("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const yf=[[["mat-select-trigger"]],"*"],bf=["mat-select-trigger","*"],Af={transformPanelWrap:_a("transformPanelWrap",[Ta("* => void",Sa("@transformPanel",[Ca()],{optional:!0}))]),transformPanel:_a("transformPanel",[va("void",Aa({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),va("showing",Aa({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),va("showing-multiple",Aa({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Ta("void => *",wa("120ms cubic-bezier(0, 0, 0.2, 1)")),Ta("* => void",wa("100ms 25ms linear",Aa({opacity:0})))])};let vf=0;const kf=256,Tf=new s.OlP("mat-select-scroll-strategy"),Cf=new s.OlP("MAT_SELECT_CONFIG"),Sf={provide:Tf,deps:[vr],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class Mf{constructor(t,e){this.source=t,this.value=e}}class Ef{constructor(t,e,i,n,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=s}}const Lf=ml(_l(fl(wl(Ef)))),xf=new s.OlP("MatSelectTrigger");let Rf=(()=>{class t extends Lf{constructor(t,e,i,n,o,r,a,c,u,l,h,d,p,f){var g,m,_;super(o,n,a,c,l),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=i,this._dir=r,this._parentFormField=u,this.ngControl=l,this._liveAnnouncer=p,this._defaultOptions=f,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+vf++,this._triggerAriaLabelledBy=null,this._destroy=new At.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+vf++,this._panelDoneAnimatingStream=new At.xQ,this._overlayPanelClass=(null===(g=this._defaultOptions)||void 0===g?void 0:g.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(_=null===(m=this._defaultOptions)||void 0===m?void 0:m.disableOptionCentering)&&void 0!==_&&_,this.ariaLabel="",this.optionSelectionChanges=xt(()=>{const t=this.options;return t?t.changes.pipe(Ot(t),(0,zt.w)(()=>(0,Ho.T)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe((0,Pt.q)(1),(0,zt.w)(()=>this.optionSelectionChanges))}),this.openedChange=new s.vpe,this._openedStream=this.openedChange.pipe((0,wt.h)(t=>t),(0,Dt.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,wt.h)(t=>!t),(0,Dt.U)(()=>{})),this.selectionChange=new s.vpe,this.valueChange=new s.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==f?void 0:f.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=f.typeaheadDebounceInterval),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=ss(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=ss(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=ss(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=os(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new bo(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Es(),js(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(js(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(Ot(null),js(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.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(t){this.value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,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 t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,i=e===Zo||e===qo||e===Ko||e===Uo,n=e===jo||e===No,s=this._keyManager;if(!s.isTyping()&&n&&!Go(t)||(this.multiple||t.altKey)&&i)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;s.onKeydown(t);const i=this.selected;i&&e!==i&&this._liveAnnouncer.announce(i.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,i=t.keyCode,n=i===Zo||i===qo,s=e.isTyping();if(n&&t.altKey)t.preventDefault(),this.close();else if(s||i!==jo&&i!==No||!e.activeItem||Go(t))if(!s&&this._multiple&&65===i&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const i=e.activeItemIndex;e.onKeydown(t),this._multiple&&n&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==i&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.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,Pt.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._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(t=>this._selectValue(t)),this._sortValues();else{const e=this._selectValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{if(this._selectionModel.isSelected(e))return!1;try{return null!=e.value&&this._compareWith(e.value,t)}catch(i){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new qr(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(js(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(js(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 t=(0,Ho.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(js(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,Ho.T)(...this.options.map(t=>t._stateChanges)).pipe(js(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(t,e){const i=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(i!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),i!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,i)=>this.sortComparator?this.sortComparator(e,i,t):t.indexOf(e)-t.indexOf(i)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();let i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Co),s.Y36(s.sBO),s.Y36(s.R0b),s.Y36(zl),s.Y36(s.SBq),s.Y36(mo,8),s.Y36(Zp,8),s.Y36(nf,8),s.Y36(Yd,8),s.Y36(gp,10),s.$8M("tabindex"),s.Y36(Tf),s.Y36(ta),s.Y36(Cf,8))},t.\u0275dir=s.lG2({type:t,viewQuery:function(t,e){if(1&t&&(s.Gf(df,5),s.Gf(pf,5),s.Gf(Sr,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.trigger=t.first),s.iGM(t=s.CRH())&&(e.panel=t.first),s.iGM(t=s.CRH())&&(e._overlayDir=t.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[s.qOj,s.TTD]}),t})(),Df=(()=>{class t extends Rf{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(t,e,i){const n=this._getItemHeight();return Math.min(Math.max(0,n*t-e+n/2),i)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(js(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,Pt.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(t){const e=sh(t,this.options,this.optionGroups),i=this._getItemHeight();var n,s,o;this.panel.nativeElement.scrollTop=(s=i,(n=(t+e)*i)<(o=this.panel.nativeElement.scrollTop)?n:n+s>o+256?Math.max(0,n-256+s):o)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new Mf(this,t)}_calculateOverlayOffsetX(){const t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),i=this._isRtl(),n=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}i||(s*=-1);const o=0-(t.left+s-(i?n:0)),r=t.right+s-e.width+(i?0:n);o>0?s+=o+8:r>0&&(s-=r+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,i){const n=this._getItemHeight(),s=(n-this._triggerRect.height)/2,o=Math.floor(kf/n);let r;return this.disableOptionCentering?0:(r=0===this._scrollTop?t*n:this._scrollTop===i?(t-(this._getItemCount()-o))*n+(n-(this._getItemCount()*n-kf)%n):e-n/2,Math.round(-1*r-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,s=i.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),r=Math.min(this._getItemCount()*e,kf)-o-this._triggerRect.height;r>s?this._adjustPanelUp(r,s):o>n?this._adjustPanelDown(o,n,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const i=Math.round(t-e);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,i){const n=Math.round(t-e);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),i=Math.min(e*t,kf),n=e*t-i;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=sh(s,this.options,this.optionGroups);const o=i/2;this._scrollTop=this._calculateOverlayScroll(s,o,n),this._offsetY=this._calculateOverlayOffsetY(s,o,n),this._checkOverlayWithinViewport(n)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,xf,5),s.Suo(i,nh,5),s.Suo(i,Xl,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.customTrigger=t.first),s.iGM(t=s.CRH())&&(e.options=t),s.iGM(t=s.CRH())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&s.NdJ("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(s.uIk("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),s.ekj("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[s._Bn([{provide:Cd,useExisting:t},{provide:Vl,useExisting:t}]),s.qOj],ngContentSelectors:bf,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(t,e){if(1&t&&(s.F$t(yf),s.TgZ(0,"div",0,1),s.NdJ("click",function(){return e.toggle()}),s.TgZ(3,"div",2),s.YNc(4,ff,2,1,"span",3),s.YNc(5,_f,3,2,"span",4),s.qZA(),s.TgZ(6,"div",5),s._UZ(7,"div",6),s.qZA(),s.qZA(),s.YNc(8,wf,4,14,"ng-template",7),s.NdJ("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=s.MAs(1);s.uIk("aria-owns",e.panelOpen?e.id+"-panel":null),s.xp6(3),s.Q6J("ngSwitch",e.empty),s.uIk("id",e._valueId),s.xp6(1),s.Q6J("ngSwitchCase",!0),s.xp6(1),s.Q6J("ngSwitchCase",!1),s.xp6(3),s.Q6J("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[Cr,n.RF,n.n9,Sr,n.ED,n.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;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{display:table-cell;vertical-align:middle}.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 transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.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:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[Af.transformPanelWrap,Af.transformPanel]},changeDetection:0}),t})(),zf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Sf],imports:[[n.ez,Er,oh,pl],So,jd,oh,pl]}),t})();class Pf{constructor(t){this.total=t}call(t,e){return e.subscribe(new If(t,this.total))}}class If extends Ht.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}const Of=new Set;let Hf,Yf=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Bf}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!Of.has(t))try{Hf||(Hf=document.createElement("style"),Hf.setAttribute("type","text/css"),document.head.appendChild(Hf)),Hf.sheet&&(Hf.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),Of.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(eo))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(eo))},token:t,providedIn:"root"}),t})();function Bf(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let jf=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new At.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return Ff(as(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=Ff(as(t)).map(t=>this._registerQuery(t).observable);let i=(0,Tt.aj)(e);return i=Et(i.pipe((0,Pt.q)(1)),i.pipe(t=>t.lift(new Pf(1)),(0,Lr.b)(0))),i.pipe((0,Dt.U)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:i})=>{e.matches=e.matches||t,e.breakpoints[i]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),i={observable:new Ct.y(t=>{const i=e=>this._zone.run(()=>t.next(e));return e.addListener(i),()=>{e.removeListener(i)}}).pipe(Ot(e),(0,Dt.U)(({matches:e})=>({query:t,matches:e})),js(this._destroySubject)),mql:e};return this._queries.set(t,i),i}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Yf),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Yf),s.LFG(s.R0b))},token:t,providedIn:"root"}),t})();function Ff(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const Nf={tooltipState:_a("state",[va("initial, void, hidden",Aa({opacity:0,transform:"scale(0)"})),va("visible",Aa({transform:"scale(1)"})),Ta("* => visible",wa("200ms cubic-bezier(0, 0, 0.2, 1)",ka([Aa({opacity:0,transform:"scale(0)",offset:0}),Aa({opacity:.5,transform:"scale(0.99)",offset:.5}),Aa({opacity:1,transform:"scale(1)",offset:1})]))),Ta("* => hidden",wa("100ms cubic-bezier(0, 0, 0.2, 1)",Aa({opacity:0})))])},Kf=uo({passive:!0}),qf=new s.OlP("mat-tooltip-scroll-strategy"),Uf={provide:qf,deps:[vr],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},Zf=new s.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Gf=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u,l,h){this._overlay=t,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=n,this._ngZone=s,this._platform=o,this._ariaDescriber=r,this._focusMonitor=a,this._dir=u,this._defaultOptions=l,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 At.xQ,this._handleKeydown=t=>{this._isTooltipVisible()&&t.keyCode===Fo&&!Go(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=c,this._document=h,l&&(l.position&&(this.position=l.position),l.touchGestures&&(this.touchGestures=l.touchGestures)),u.change.pipe(js(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){var e;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(e=this._tooltipInstance)||void 0===e||e.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=ss(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).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(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(js(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,i])=>{t.removeEventListener(e,i,Kf)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new Lo(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(js(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return e.positionChanges.pipe(js(this._destroyed)).subscribe(t=>{this._updateCurrentPositionClass(t.connectionPair),this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:`${this._cssClassPrefix}-tooltip-panel`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(js(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const e=t.getConfig().positionStrategy,i=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([this._addOffset(Object.assign(Object.assign({},i.main),n.main)),this._addOffset(Object.assign(Object.assign({},i.fallback),n.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e||"below"==e?i={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={originX:"end",originY:"center"});const{x:n,y:s}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:n,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e?i={overlayX:"center",overlayY:"bottom"}:"below"==e?i={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={overlayX:"start",overlayY:"center"});const{x:n,y:s}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:n,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Pt.q)(1),js(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){const{overlayY:e,originX:i,originY:n}=t;let s;if(s="center"===e?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===e&&"top"===n?"above":"below",s!==this._currentPosition){const t=this._overlayRef;if(t){const e=`${this._cssClassPrefix}-tooltip-panel-`;t.removePanelClass(e+this._currentPosition),t.addPanelClass(e+s)}this._currentPosition=s}}_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 t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,Kf)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const e=this._document.elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;e===i||i.contains(e)||this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,i=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),"on"!==t&&e.draggable||(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(vr),s.Y36(s.SBq),s.Y36(ko),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(eo),s.Y36(jr),s.Y36(ra),s.Y36(void 0),s.Y36(mo),s.Y36(void 0),s.Y36(n.K0))},t.\u0275dir=s.lG2({type:t,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),Vf=(()=>{class t extends Gf{constructor(t,e,i,n,s,o,r,a,c,u,l,h){super(t,e,i,n,s,o,r,a,c,u,l,h),this._tooltipComponent=Wf}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(vr),s.Y36(s.SBq),s.Y36(ko),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(eo),s.Y36(jr),s.Y36(ra),s.Y36(qf),s.Y36(mo,8),s.Y36(Zf,8),s.Y36(n.K0))},t.\u0275dir=s.lG2({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[s.qOj]}),t})(),$f=(()=>{class t{constructor(t){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new At.xQ}show(t){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._markForCheck()},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t}),t})(),Wf=(()=>{class t extends $f{constructor(t,e){super(t),this._breakpointObserver=e,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36(jf))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e._handleBodyInteraction()},!1,s.pYS)("auxclick",function(){return e._handleBodyInteraction()},!1,s.pYS),2&t&&s.Udp("zoom","visible"===e._visibility?1:null)},features:[s.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(s.TgZ(0,"div",0),s.NdJ("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),s.ALo(1,"async"),s._uU(2),s.qZA()),2&t){let t;s.ekj("mat-tooltip-handset",null==(t=s.lcZ(1,5,e._isHandset))?null:t.matches),s.Q6J("ngClass",e.tooltipClass)("@state",e._visibility),s.xp6(2),s.Oqu(e.message)}},directives:[n.mk],pipes:[n.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[Nf.tooltipState]},changeDetection:0}),t})(),Jf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Uf],imports:[[pa,n.ez,Er,pl],pl,So]}),t})();function Qf(t,e){if(1&t&&(s.TgZ(0,"mat-option",19),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.hij(" ",t," ")}}function Xf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-form-field",16),s.TgZ(1,"mat-select",17),s.NdJ("selectionChange",function(e){return s.CHM(t),s.oxw(2)._changePageSize(e.value)}),s.YNc(2,Qf,2,2,"mat-option",18),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(2);s.Q6J("appearance",t._formFieldAppearance)("color",t.color),s.xp6(1),s.Q6J("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),s.xp6(1),s.Q6J("ngForOf",t._displayedPageSizeOptions)}}function tg(t,e){if(1&t&&(s.TgZ(0,"div",20),s._uU(1),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Oqu(t.pageSize)}}function eg(t,e){if(1&t&&(s.TgZ(0,"div",12),s.TgZ(1,"div",13),s._uU(2),s.qZA(),s.YNc(3,Xf,3,6,"mat-form-field",14),s.YNc(4,tg,2,1,"div",15),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.hij(" ",t._intl.itemsPerPageLabel," "),s.xp6(1),s.Q6J("ngIf",t._displayedPageSizeOptions.length>1),s.xp6(1),s.Q6J("ngIf",t._displayedPageSizeOptions.length<=1)}}function ig(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",21),s.NdJ("click",function(){return s.CHM(t),s.oxw().firstPage()}),s.O4$(),s.TgZ(1,"svg",7),s._UZ(2,"path",22),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),s.uIk("aria-label",t._intl.firstPageLabel)}}function ng(t,e){if(1&t){const t=s.EpF();s.O4$(),s.kcU(),s.TgZ(0,"button",23),s.NdJ("click",function(){return s.CHM(t),s.oxw().lastPage()}),s.O4$(),s.TgZ(1,"svg",7),s._UZ(2,"path",24),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),s.uIk("aria-label",t._intl.lastPageLabel)}}let sg=(()=>{class t{constructor(){this.changes=new At.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,i)=>{if(0==i||0==e)return`0 of ${i}`;const n=t*e;return`${n+1} \u2013 ${n<(i=Math.max(i,0))?Math.min(n+e,i):n+e} of ${i}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const og={provide:sg,deps:[[new s.FiY,new s.tp0,sg]],useFactory:function(t){return t||new sg}},rg=new s.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS");class ag{}const cg=fl(yl(ag));let ug=(()=>{class t extends cg{constructor(t,e,i){if(super(),this._intl=t,this._changeDetectorRef=e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new s.vpe,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){const{pageSize:t,pageSizeOptions:e,hidePageSize:n,showFirstLastButtons:s}=i;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=n&&(this._hidePageSize=n),null!=s&&(this._showFirstLastButtons=s)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(os(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=os(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(os(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>os(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=ss(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=ss(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndext-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(sg),s.Y36(s.sBO),s.Y36(void 0))},t.\u0275dir=s.lG2({type:t,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[s.qOj]}),t})(),lg=(()=>{class t extends ug{constructor(t,e,i){super(t,e,i),i&&null!=i.formFieldAppearance&&(this._formFieldAppearance=i.formFieldAppearance)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(sg),s.Y36(s.sBO),s.Y36(rg,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[s.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","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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.YNc(2,eg,5,3,"div",2),s.TgZ(3,"div",3),s.TgZ(4,"div",4),s._uU(5),s.qZA(),s.YNc(6,ig,3,5,"button",5),s.TgZ(7,"button",6),s.NdJ("click",function(){return e.previousPage()}),s.O4$(),s.TgZ(8,"svg",7),s._UZ(9,"path",8),s.qZA(),s.qZA(),s.kcU(),s.TgZ(10,"button",9),s.NdJ("click",function(){return e.nextPage()}),s.O4$(),s.TgZ(11,"svg",7),s._UZ(12,"path",10),s.qZA(),s.qZA(),s.YNc(13,ng,3,5,"button",11),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.Q6J("ngIf",!e.hidePageSize),s.xp6(3),s.hij(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),s.xp6(1),s.Q6J("ngIf",e.showFirstLastButtons),s.xp6(1),s.Q6J("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),s.uIk("aria-label",e._intl.previousPageLabel),s.xp6(3),s.Q6J("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),s.uIk("aria-label",e._intl.nextPageLabel),s.xp6(3),s.Q6J("ngIf",e.showFirstLastButtons))},directives:[n.O5,id,Vf,Bd,Df,n.sg,nh],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{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),t})(),hg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[og],imports:[[n.ez,nd,zf,Jf,pl]]}),t})();var dg=i(509);const pg=["mat-menu-item",""],fg=["*"];function gg(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",0),s.NdJ("keydown",function(e){return s.CHM(t),s.oxw()._handleKeydown(e)})("click",function(){return s.CHM(t),s.oxw().closed.emit("click")})("@transformMenu.start",function(e){return s.CHM(t),s.oxw()._onAnimationStart(e)})("@transformMenu.done",function(e){return s.CHM(t),s.oxw()._onAnimationDone(e)}),s.TgZ(1,"div",1),s.Hsn(2),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),s.uIk("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const mg={transformMenu:_a("transformMenu",[va("void",Aa({opacity:0,transform:"scale(0.8)"})),Ta("void => enter",wa("120ms cubic-bezier(0, 0, 0.2, 1)",Aa({opacity:1,transform:"scale(1)"}))),Ta("* => void",wa("100ms 25ms linear",Aa({opacity:0})))]),fadeInItems:_a("fadeInItems",[va("showing",Aa({opacity:1})),Ta("void => *",[Aa({opacity:0}),wa("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},_g=new s.OlP("MatMenuContent"),wg=new s.OlP("MAT_MENU_PANEL");class yg{}const bg=ml(fl(yg));let Ag=(()=>{class t extends bg{constructor(t,e,i,n){super(),this._elementRef=t,this._focusMonitor=i,this._parentMenu=n,this.role="menuitem",this._hovered=new At.xQ,this._focused=new At.xQ,this._highlighted=!1,this._triggersSubmenu=!1,n&&n.addItem&&n.addItem(this)}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),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(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t,e;const i=this._elementRef.nativeElement.cloneNode(!0),n=i.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class t{constructor(t,e,i){this._elementRef=t,this._ngZone=e,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new s.n_E,this._tabSubscription=te.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new At.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new s.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+kg++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=ss(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=ss(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Ur(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Ot(this._directDescendantItems),(0,zt.w)(t=>(0,Ho.T)(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Ot(this._directDescendantItems),(0,zt.w)(t=>(0,Ho.T)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,i=this._keyManager;switch(e){case Fo:Go(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case Ko:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case Uo:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:e!==qo&&e!==Zo||i.setFocusOrigin("keyboard"),i.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe((0,Pt.q)(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e=`mat-elevation-z${Math.min(4+t,24)}`,i=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const i=this._classList;i["mat-menu-before"]="before"===t,i["mat-menu-after"]="after"===t,i["mat-menu-above"]="above"===e,i["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Ot(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(vg))},t.\u0275dir=s.lG2({type:t,contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,_g,5),s.Suo(i,Ag,5),s.Suo(i,Ag,4)),2&t){let t;s.iGM(t=s.CRH())&&(e.lazyContent=t.first),s.iGM(t=s.CRH())&&(e._allItems=t),s.iGM(t=s.CRH())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&s.Gf(s.Rgc,5),2&t){let t;s.iGM(t=s.CRH())&&(e.templateRef=t.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),Cg=(()=>{class t extends Tg{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(vg))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&s.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[s._Bn([{provide:wg,useExisting:t}]),s.qOj],ngContentSelectors:fg,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(s.F$t(),s.YNc(0,gg,3,6,"ng-template"))},directives:[n.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}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}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}\n'],encapsulation:2,data:{animation:[mg.transformMenu,mg.fadeInItems]},changeDetection:0}),t})();const Sg=new s.OlP("mat-menu-scroll-strategy"),Mg={provide:Sg,deps:[vr],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},Eg=uo({passive:!0});let Lg=(()=>{class t{constructor(t,e,i,n,o,r,a,c){this._overlay=t,this._element=e,this._viewContainerRef=i,this._menuItemInstance=r,this._dir=a,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=te.w.EMPTY,this._hoverSubscription=te.w.EMPTY,this._menuCloseSubscription=te.w.EMPTY,this._handleTouchStart=t=>{na(t)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new s.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new s.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=n,this._parentMaterialMenu=o instanceof Tg?o:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,Eg),r&&(r._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(t),"click"!==t&&"tab"!==t||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Eg),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(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof Tg&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}updatePosition(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==t&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,e instanceof Tg?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe((0,wt.h)(t=>"void"===t.toState),(0,Pt.q)(1),js(e.lazyContent._attached)).subscribe({next:()=>e.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new ir({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,i]="before"===this.menu.xPosition?["end","start"]:["start","end"],[n,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[o,r]=[n,s],[a,c]=[e,i],u=0;this.triggersSubmenu()?(c=e="before"===this.menu.xPosition?"start":"end",i=a="end"===e?"start":"end",u="bottom"===n?8:-8):this.menu.overlapTrigger||(o="top"===n?"bottom":"top",r="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:o,overlayX:a,overlayY:n,offsetY:u},{originX:i,originY:o,overlayX:c,overlayY:n,offsetY:u},{originX:e,originY:r,overlayX:a,overlayY:s,offsetY:-u},{originX:i,originY:r,overlayX:c,overlayY:s,offsetY:-u}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,bt.of)(),n=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,wt.h)(t=>t!==this._menuItemInstance),(0,wt.h)(()=>this._menuOpen)):(0,bt.of)();return(0,Ho.T)(t,i,n,e)}_handleMousedown(t){ia(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;e!==jo&&e!==No||(this._openedBy="keyboard"),this.triggersSubmenu()&&(e===Uo&&"ltr"===this.dir||e===Ko&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,wt.h)(t=>t===this._menuItemInstance&&!t.disabled),(0,dg.g)(0,Ss)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Tg&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Pt.q)(1),(0,dg.g)(0,Ss),js(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new xo(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(vr),s.Y36(s.SBq),s.Y36(s.s_b),s.Y36(Sg),s.Y36(wg,8),s.Y36(Ag,10),s.Y36(mo,8),s.Y36(ra))},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&s.uIk("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),xg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Mg],imports:[pl]}),t})(),Rg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Mg],imports:[[n.ez,pl,Ul,Er,xg],So,pl,xg]}),t})();var Dg=i(1225),zg=i(1055);const Pg=["*"];function Ig(t){return Error(`Unable to find icon with the name "${t}"`)}function Og(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function Hg(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class Yg{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let Bg=(()=>{class t{constructor(t,e,i,n){this._httpClient=t,this._sanitizer=e,this._errorHandler=n,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i}addSvgIcon(t,e,i){return this.addSvgIconInNamespace("",t,e,i)}addSvgIconLiteral(t,e,i){return this.addSvgIconLiteralInNamespace("",t,e,i)}addSvgIconInNamespace(t,e,i,n){return this._addSvgIconConfig(t,e,new Yg(i,null,n))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,i,n){const o=this._sanitizer.sanitize(s.q3G.HTML,i);if(!o)throw Hg(i);return this._addSvgIconConfig(t,e,new Yg("",o,n))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,i){return this._addSvgIconSetConfig(t,new Yg(e,null,i))}addSvgIconSetLiteralInNamespace(t,e,i){const n=this._sanitizer.sanitize(s.q3G.HTML,e);if(!n)throw Hg(e);return this._addSvgIconSetConfig(t,new Yg("",n,i))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(s.q3G.RESOURCE_URL,t);if(!e)throw Og(t);const i=this._cachedIconsByUrl.get(e);return i?(0,bt.of)(jg(i)):this._loadSvgIconFromConfig(new Yg(t,null)).pipe((0,Qt.b)(t=>this._cachedIconsByUrl.set(e,t)),(0,Dt.U)(t=>jg(t)))}getNamedSvgIcon(t,e=""){const i=Fg(e,t);let n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);if(n=this._getIconConfigFromResolvers(e,t),n)return this._svgIconConfigs.set(i,n),this._getSvgFromConfig(n);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):(0,Dg._)(Ig(i))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?(0,bt.of)(jg(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe((0,Dt.U)(t=>jg(t)))}_getSvgFromIconSetConfigs(t,e){const i=this._extractIconWithNameFromAnySet(t,e);return i?(0,bt.of)(i):Eh(e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe((0,Ft.K)(e=>{const i=this._sanitizer.sanitize(s.q3G.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${i} failed: ${e.message}`)),(0,bt.of)(null)})))).pipe((0,Dt.U)(()=>{const i=this._extractIconWithNameFromAnySet(t,e);if(!i)throw Ig(t);return i}))}_extractIconWithNameFromAnySet(t,e){for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.svgText&&n.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(n),i=this._extractSvgIconFromSet(e,t,n.options);if(i)return i}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe((0,Qt.b)(e=>t.svgText=e),(0,Dt.U)(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?(0,bt.of)(null):this._fetchIcon(t).pipe((0,Qt.b)(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,i){const n=t.querySelector(`[id="${e}"]`);if(!n)return null;const s=n.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,i);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),i);const o=this._svgElementFromString("");return o.appendChild(s),this._setSvgAttributes(o,i)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const i=e.querySelector("svg");if(!i)throw Error(" tag not found");return i}_toSvgElement(t){const e=this._svgElementFromString(""),i=t.attributes;for(let n=0;nthis._inProgressUrlFetches.delete(r)),(0,zg.B)());return this._inProgressUrlFetches.set(r,c),c}_addSvgIconConfig(t,e,i){return this._svgIconConfigs.set(Fg(t,e),i),this}_addSvgIconSetConfig(t,e){const i=this._iconSetConfigs.get(t);return i?i.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let n=0;ne?e.pathname+e.search:""}}}),Ug=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Zg=Ug.map(t=>`[${t}]`).join(", "),Gg=/^url\(['"]?#(.*?)['"]?\)$/;let Vg=(()=>{class t extends Kg{constructor(t,e,i,n,s){super(t),this._iconRegistry=e,this._location=n,this._errorHandler=s,this._inline=!1,this._currentIconFetch=te.w.EMPTY,i||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=ss(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.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(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let n=0;n{e.forEach(e=>{i.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(Zg),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let n=0;n{const s=e[n],o=s.getAttribute(t),r=o?o.match(Gg):null;if(r){let e=i.get(s);e||(e=[],i.set(s,e)),e.push({name:t,value:r[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,i]=this._splitIconName(t);e&&(this._svgNamespace=e),i&&(this._svgName=i),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(i,e).pipe((0,Pt.q)(1)).subscribe(t=>this._setSvgElement(t),t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${i}! ${t.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Bg),s.$8M("aria-hidden"),s.Y36(qg),s.Y36(s.qLn))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(s.uIk("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),s.ekj("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[s.qOj],ngContentSelectors:Pg,decls:1,vars:0,template:function(t,e){1&t&&(s.F$t(),s.Hsn(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),$g=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[pl],pl]}),t})(),Wg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[],imports:[[hg,Rg,$g,nd,$h,n.ez]]}),t})();var Jg=i(2051);const Qg=[5,10,25,100];function Xg(t){let e="";return null!==t.titleBefore&&(e+=t.titleBefore+" "),null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),null!==t.titleAfter&&(e+=t.titleAfter+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}function tm(){const t=new ah;return t.disableClose=!0,t.autoFocus=!1,t}const em=new Intl.Collator("cs",{numeric:!0});function im(t,e,i,n){const s=e.active,o=e.direction;return s&&""!==o?t.sort((t,e)=>{const r=i(t,s,n),a=i(e,s,n);return em.compare(r,a)*("asc"===o?1:-1)}):t}function nm(t,e,i,n,s,o){e=e.toLowerCase();let r="";return i.forEach(e=>{r+=";"+n(t,e,s)}),o&&(r+=";"+n(t,"uuid",s)),-1!==r.toLowerCase().indexOf(e)}function sm(t,e){let i="";return t.attributes&&t.attributes.forEach(t=>{t.friendlyName===e&&(i=t.value)}),i}function om(t,e,i,n){const s=[],o=["checkbox","select","edit","menu","cite","extend","recent"];return e=e.filter(t=>!o.includes(t)),t.forEach(t=>{const o={};e.forEach(e=>{var s;o[e]=(null!==(s=i(t,e,n))&&void 0!==s?s:"").split('"').join("''").trim()}),s.push(o)}),s}function rm(t,e="csv",i="export"){switch(e){case"csv":{const n=(t,e)=>null===e?"":e,s=Object.keys(t[0]),o=t.map(t=>s.map(e=>JSON.stringify(t[e],n)).join(","));o.unshift(s.join(",").split(" ").join("_").split('"').join("''"));const r=o.join("\r\n"),a=new Blob([r],{type:"text/csv"});(0,Jg.saveAs)(a,`${i}.${e}`)}}}const am="GUI_CONFIG.PREF_PAGE_SIZE.";let cm=(()=>{class t{constructor(){}getString(t){return localStorage.getItem(t)}getNumber(t){return parseInt(localStorage.getItem(t),10)}setNumber(t,e){localStorage.setItem(t,e.toString())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),um=(()=>{class t{constructor(t){this.guiConfigService=t}getTablePageSize(t){const e=this.guiConfigService.getNumber(am+t);if(!isNaN(e))return e;const i=this.guiConfigService.getNumber("GUI_CONFIG.PREF_PAGE_SIZE");return isNaN(i)?10:i}setTablePageSize(t,e){this.guiConfigService.setNumber(am+t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(cm))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const lm="67",hm="68";let dm=(()=>{class t{constructor(){this.exportData=new s.vpe}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,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(t,e){if(1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"button",1),s.TgZ(2,"mat-icon"),s._uU(3,"more_vert"),s.qZA(),s.qZA(),s.TgZ(4,"mat-menu",null,2),s.TgZ(6,"button",3),s._uU(7),s.ALo(8,"translate"),s.qZA(),s.qZA(),s.TgZ(9,"mat-menu",null,4),s.TgZ(11,"button",5),s.NdJ("click",function(){return e.exportData.emit("csv")}),s._uU(12,"Csv"),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.MAs(5),e=s.MAs(10);s.xp6(1),s.Q6J("matMenuTriggerFor",t),s.xp6(5),s.Q6J("matMenuTriggerFor",e),s.xp6(1),s.hij(" ",s.lcZ(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[id,Lg,Vg,Cg,Ag],pipes:[Vh],styles:[""]}),t})();function pm(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-table-options",6),s.NdJ("exportData",function(e){return s.CHM(t),s.oxw().exportData.emit(e)}),s.qZA()}}function fm(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-table-options",6),s.NdJ("exportData",function(e){return s.CHM(t),s.oxw().exportData.emit(e)}),s.qZA()}}const gm=["*"];let mm=(()=>{class t{constructor(t){this.tableConfigService=t,this.hideExport=!1,this.pageSizeOptions=Qg,this.dataLength=0,this.exportData=new s.vpe,this.pageSize=5}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5)}set matPaginator(t){this.paginator=t}pageChangedTop(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}pageChangedBottom(t){this.paginator.pageSize=t.pageSize,this.paginator.pageIndex=t.pageIndex,this.paginator.page.emit(t),this.pageSize=t.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(um))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(t,e){if(1&t&&s.Gf(lg,7),2&t){let t;s.iGM(t=s.CRH())&&(e.matPaginator=t.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId"},outputs:{exportData:"exportData"},ngContentSelectors:gm,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(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"mat-paginator",2),s.NdJ("page",function(t){return e.pageChangedTop(t)}),s.qZA(),s.YNc(3,pm,1,0,"perun-web-apps-table-options",3),s.qZA(),s.TgZ(4,"div",4),s.Hsn(5),s.qZA(),s.TgZ(6,"div",1),s.TgZ(7,"mat-paginator",5),s.NdJ("page",function(t){return e.pageChangedBottom(t)}),s.qZA(),s.YNc(8,fm,1,0,"perun-web-apps-table-options",3),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.Q6J("length",e.dataLength)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),s.xp6(1),s.Q6J("ngIf",!e.hideExport),s.xp6(4),s.Q6J("length",e.paginator.length)("pageIndex",e.paginator.pageIndex)("pageSizeOptions",e.paginator.pageSizeOptions)("pageSize",e.paginator.pageSize),s.xp6(1),s.Q6J("ngIf",!e.hideExport))},directives:[lg,n.O5,dm],styles:[""]}),t})(),_m=(()=>{class t{constructor(t,e,i,n,s,o){this.authService=t,this.storeService=e,this.authResolver=i,this.authzService=n,this.dialog=s,this.router=o,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(t){this.loginScreenShown=t}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)):(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(t=>t(!0)):this.authService.verifyAuth())}startAuth(){return this.authService.startAuthentication(),new Promise(()=>{})}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(t=>{if(null===t.user){const t=tm();this.dialog.open(Wh,t)}else this.storeService.setPerunPrincipal(t),this.authResolver.init(t)})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(t=>{t()});if(this.storeService.get("auto_auth_redirect"))return this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0);const t=location.search.substr(1).split("&"),e={};for(const i of t){const t=i.split("=");e[t[0]]=t[1]}return this.router.navigate(["login"],{queryParams:e,queryParamsHandling:"merge"}).then(()=>null)}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Sh),s.LFG(ns),s.LFG(_t),s.LFG(G),s.LFG(yh),s.LFG(Pn))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),wm=(()=>{class t{constructor(t,e){this.matIconRegistry=t,this.domSanitizer=e,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/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/settings1-blue.svg",name:"settings-blue"},{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"}]}registerPerunRefreshIcon(){this.customIcons.forEach(t=>{this.matIconRegistry.addSvgIcon(t.name,this.domSanitizer.bypassSecurityTrustResourceUrl(t.url))})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Bg),s.LFG(z))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),ym=(()=>{class t{constructor(t){this.dialogRef=t}close(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(dh))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"div",2),s.TgZ(7,"div",3),s.TgZ(8,"button",4),s.NdJ("click",function(){return e.close()}),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),s.xp6(3),s.hij(" ",s.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),s.xp6(5),s.hij(" ",s.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},directives:[Ah,vh,kh,id],pipes:[Vh],styles:[""]}),t})(),bm=(()=>{class t{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const t=this.handleNextError;return this.handleNextError=!0,t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Am=(()=>{class t{constructor(t){this.translate=t,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3,this.addNotification=new s.vpe}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(t,e=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===t.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===t.name?e:e+"\n"+t.name,t,t.message)}showError(t,e,i,n,s){this.addNotification.emit({type:"error",error:e,description:i,title:t,actionText:void 0===n&&void 0!==i?this.getDefaultActionMessage():n,delay:this.defaultErrorDelayMs,icon:"error_outline",action:s,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(t,e,i,n){this.addNotification.emit({type:"success",description:e,title:t,actionText:void 0===i&&void 0!==e?this.getDefaultActionMessage():i,delay:this.defaultSuccessDelayMs,icon:"done",action:n,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Gh))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),vm=(()=>{class t{constructor(t,e,i,n,s,o){this.authService=t,this.apiRequestConfiguration=e,this.notificator=i,this.store=n,this.dialog=s,this.initAuthService=o}intercept(t,e){const i=this.store.get("api_url");if(-1!==t.url.indexOf("i18n")&&(t=t.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==i&&-1!==t.url.toString().indexOf(i)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()){const t=tm();t.width="450px",this.dialog.open(ym,t).afterClosed().subscribe(()=>{sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substr(1)),this.authService.startAuthentication()})}t=this.initAuthService.isServiceAccess()?t.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):t.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}});const n=this.apiRequestConfiguration.shouldHandleError(),s="POST"===t.method&&!this.store.skipOidc()&&this.isCallToPerunApi(t.url);return e.handle(t).pipe((0,Qt.b)(t=>{t instanceof F.Zn&&s&&this.initAuthService.loadPrincipal()},e=>{const i=this.formatErrors(e,t);return void 0===i?(0,Dg._)(e):n?void this.notificator.showRPCError(i):(0,Dg._)(i)}))}isCallToPerunApi(t){return t.startsWith(this.store.get("api_url"))}formatErrors(t,e){let i;if(console.error(t),t.error.errorId?i=t.error:t.errorId&&(i=JSON.parse(t.error)),void 0!==i)return i.urlWithParams=e.urlWithParams,i.call=e.url,i.payload=e.body,i}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Sh),s.LFG(bm),s.LFG(Am),s.LFG(ns),s.LFG(yh),s.LFG(_m))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),km=(()=>{class t{constructor(){this.notificationData=[],this.newNotificationsCount=0}storeNotification(t){this.newNotificationsCount++,this.notificationData.push(t)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Tm=(()=>{class t{constructor(t,e,i,n){this.http=t,this.notificator=e,this.authService=i,this.storeService=n}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}formatErrors(t,e,i,n){const s=t.error;return s.call=e,s.payload=i,n&&this.notificator.showRPCError(t.error),(0,Dg._)(s)}getHeaders(){let t=new F.WM;return t=t.set("Authorization",this.authService.getAuthorizationHeaderValue()),t}get(t,e=!0){const i=`${this.getApiUrl()}${t}`;return this.http.get(i,{headers:this.getHeaders()}).pipe((0,Ft.K)(t=>this.formatErrors(t,i,null,e)))}put(t,e={},i=!0){const n=`${this.getApiUrl()}${t}`,s=JSON.stringify(e);return this.http.put(n,s,{headers:this.getHeaders()}).pipe((0,Ft.K)(t=>this.formatErrors(t,n,s,i)))}post(t,e={},i=!0){const n=`${this.getApiUrl()}${t}`,s=JSON.stringify(e);let o=this.getHeaders();return o=o.set("Content-Type","application/json; charset=utf-8"),this.http.post(n,s,{headers:o}).pipe((0,Ft.K)(t=>this.formatErrors(t,n,s,i)))}delete(t,e=!0){const i=`${this.getApiUrl()}${t}`;return this.http.delete(i,{headers:this.getHeaders()}).pipe((0,Ft.K)(t=>this.formatErrors(t,i,null,e)))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(Am),s.LFG(Sh),s.LFG(ns))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Cm=(()=>{class t{constructor(){}isAllSelectedWithDisabledCheckbox(t,e,i,n,s,o,r,a){return this.numSelected=t,this.numCanBeSelected=0,this.pageStart=s*i,this.pageEnd=this.pageStart+i,this.pageIterator=0,this.dataLength=""===e?o.data.length:o.filteredData.length,n||(this.modulo=this.dataLength%i,this.pageEnd=0===this.modulo?this.pageStart+i:this.pageStart+this.modulo),o.sortData(o.filteredData,r).forEach(t=>{this.pageStart<=this.pageIterator&&this.pageIterator{a?c(t)&&this.pageStart<=this.pageIterator&&this.pageIterator{class t{constructor(t,e){this.route=t,this.store=e}getPreferredLanguage(t){const e=this.store.get("supported_languages"),i=navigator.languages.map(t=>t.split("-")[0]),n=location.search.substr(1).split("&");let s=null;for(const o of n){const t=o.split("=");"lang"===t[0]&&(s=t[1])}return s&&e.includes(s)?s:t&&e.includes(t)?t:i&&e.includes(i[0])?i[0]:"en"}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(hi),s.LFG(ns))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();_a("openClose",[va("open",Aa({overflow:"hidden"})),va("closed",Aa({height:"0px",overflow:"hidden"})),Ta("open <=> closed",[wa(".3s ease-in")])]);const Mm=_a("flyInOut",[Ta(":enter",[Aa({transform:"translateX(100%)"}),wa(".25s")]),Ta(":leave",[wa(".5s",Aa({transform:"translateX(100%)"}))])]);_a("rollInOut",[Ta(":enter",[Aa({height:"0px"}),wa(".25s")]),Ta(":leave",[wa(".25s",Aa({height:"0px"}))])]),_a("routeAnimations",[Ta("* => *",[Aa({position:"relative"}),Sa(":enter",[Aa({width:"100%",opacity:0})],{optional:!0}),Sa(":leave",[Aa({position:"absolute",width:"100%",opacity:1}),wa("0.15s",Aa({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),Sa(":enter",[Aa({position:"absolute",width:"100%",opacity:0}),wa("0.15s",Aa({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),_a("tagsOpenClose",[va("open",Aa({})),va("closed",Aa({width:"0px",height:"0px"})),Ta("open <=> closed",[wa(".3s ease-in")])]),_a("switchAnimations",[Ta("true => false",[Sa(":enter, :leave",Aa({})),ya([Sa(":enter",[Aa({transform:"translateX(-100%)"}),wa("1s ease-in-out",Aa({transform:"translateX(0%)"}))],{optional:!0}),Sa(":leave",[Aa({transform:"translateX(0%)",position:"absolute"}),wa("1s ease-in-out",Aa({transform:"translateX(100%)"}))],{optional:!0})])]),Ta("false => true",[Sa(":enter, :leave",Aa({})),ya([Sa(":enter",[Aa({transform:"translateX(100%)"}),wa("1s ease-in-out",Aa({transform:"translateX(0%)"}))],{optional:!0}),Sa(":leave",[Aa({transform:"translateX(0%)",position:"absolute"}),wa("1s ease-in-out",Aa({transform:"translateX(-100%)"}))],{optional:!0})])])]),_a("slideInOutLeft",[Ta(":enter",[Aa({transform:"translateX(-100%)",position:"relative"}),wa("0.5s ease-in",Aa({transform:"translateX(0%)"}))]),Ta(":leave",[wa("0.5s ease-in",Aa({transform:"translateX(-100%)"}))])]),_a("slideInOutRight",[Ta(":enter",[Aa({transform:"translateX(100%)",position:"fixed"}),wa("0.5s ease-in",Aa({transform:"translateX(0%)"}))]),Ta(":leave",[Aa({transform:"translateX(-100%)",position:"relative"}),wa("0.5s ease-in",Aa({transform:"translateX(100%)"}))])]);let Em=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez]]}),t})();function Lm(t,e){if(1&t&&(s.O4$(),s._UZ(0,"circle",3)),2&t){const t=s.oxw();s.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),s.uIk("r",t._getCircleRadius())}}function xm(t,e){if(1&t&&(s.O4$(),s._UZ(0,"circle",3)),2&t){const t=s.oxw();s.Udp("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),s.uIk("r",t._getCircleRadius())}}function Rm(t,e){if(1&t&&(s.O4$(),s._UZ(0,"circle",3)),2&t){const t=s.oxw();s.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),s.uIk("r",t._getCircleRadius())}}function Dm(t,e){if(1&t&&(s.O4$(),s._UZ(0,"circle",3)),2&t){const t=s.oxw();s.Udp("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),s.uIk("r",t._getCircleRadius())}}const zm=".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:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[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-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation: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)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n";class Pm{constructor(t){this._elementRef=t}}const Im=gl(Pm,"primary"),Om=new s.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let Hm=(()=>{class t extends Im{constructor(e,i,n,s,o){super(e),this._elementRef=e,this._document=n,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const r=t._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),r.has(n.head)||r.set(n.head,new Set([100])),this._fallbackAnimation=i.EDGE||i.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!o&&!o._forceAnimations,o&&(o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=os(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=os(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,os(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=po(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,i=this._diameter,n=t._diameters;let s=n.get(e);if(!s||!s.has(i)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),t.textContent=this._getAnimationText(),e.appendChild(t),s||(s=new Set,n.set(e,s)),s.add(i)}}_getAnimationText(){const t=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*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(eo),s.Y36(n.K0,8),s.Y36(el,8),s.Y36(Om))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(s.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),s.Udp("width",e.diameter,"px")("height",e.diameter,"px"),s.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[s.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(s.O4$(),s.TgZ(0,"svg",0),s.YNc(1,Lm,1,9,"circle",1),s.YNc(2,xm,1,7,"circle",2),s.qZA()),2&t&&(s.Udp("width",e.diameter,"px")("height",e.diameter,"px"),s.Q6J("ngSwitch","indeterminate"===e.mode),s.uIk("viewBox",e._getViewBox()),s.xp6(1),s.Q6J("ngSwitchCase",!0),s.xp6(1),s.Q6J("ngSwitchCase",!1))},directives:[n.RF,n.n9],styles:[zm],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),Ym=(()=>{class t extends Hm{constructor(t,e,i,n,s){super(t,e,i,n,s),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(eo),s.Y36(n.K0,8),s.Y36(el,8),s.Y36(Om))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(s.Udp("width",e.diameter,"px")("height",e.diameter,"px"),s.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[s.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(s.O4$(),s.TgZ(0,"svg",0),s.YNc(1,Rm,1,9,"circle",1),s.YNc(2,Dm,1,7,"circle",2),s.qZA()),2&t&&(s.Udp("width",e.diameter,"px")("height",e.diameter,"px"),s.Q6J("ngSwitch","indeterminate"===e.mode),s.uIk("viewBox",e._getViewBox()),s.xp6(1),s.Q6J("ngSwitchCase",!0),s.xp6(1),s.Q6J("ngSwitchCase",!1))},directives:[n.RF,n.n9],styles:[zm],encapsulation:2,changeDetection:0}),t})(),Bm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[pl,n.ez],pl]}),t})();const jm=uo({passive:!0});let Fm=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return Lt.E;const e=us(t),i=this._monitoredElements.get(e);if(i)return i.subject;const n=new At.xQ,s="cdk-text-field-autofilled",o=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",o,jm),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:n,unlisten:()=>{e.removeEventListener("animationstart",o,jm)}}),n}stopMonitoring(t){const e=us(t),i=this._monitoredElements.get(e);i&&(i.unlisten(),i.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(eo),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(eo),s.LFG(s.R0b))},token:t,providedIn:"root"}),t})(),Nm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[io]]}),t})();const Km=new s.OlP("MAT_INPUT_VALUE_ACCESSOR"),qm=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Um=0;class Zm{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const Gm=wl(Zm);let Vm=(()=>{class t extends Gm{constructor(t,e,i,n,s,o,r,a,c,u){super(o,n,s,i),this._elementRef=t,this._platform=e,this.ngControl=i,this._autofillMonitor=a,this._formField=u,this._uid="mat-input-"+Um++,this.focused=!1,this.stateChanges=new At.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>so().has(t));const l=this._elementRef.nativeElement,h=l.nodeName.toLowerCase();this._inputValueAccessor=r||l,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&c.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{const e=t.target;e.value||0!==e.selectionStart||0!==e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===h,this._isTextarea="textarea"===h,this._isNativeSelect&&(this.controlType=l.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=ss(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=ss(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&so().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=ss(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const i=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(i!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=i,i?t.setAttribute("placeholder",i):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){qm.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(eo),s.Y36(gp,10),s.Y36(Zp,8),s.Y36(nf,8),s.Y36(zl),s.Y36(Km,10),s.Y36(Fm),s.Y36(s.R0b),s.Y36(Yd,8))},t.\u0275dir=s.lG2({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&s.NdJ("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(s.Ikx("disabled",e.disabled)("required",e.required),s.uIk("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),s.ekj("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[s._Bn([{provide:Cd,useExisting:t}]),s.qOj,s.TTD]}),t})(),$m=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[zl],imports:[[Nm,jd,pl],Nm,jd]}),t})();function Wm(t,e){1&t&&s._UZ(0,"mat-spinner",7)}function Jm(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function Qm(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function Xm(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",8),s.TgZ(1,"mat-form-field"),s.TgZ(2,"mat-label"),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.TgZ(5,"input",9,10),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().subject=e}),s.qZA(),s.YNc(7,Jm,3,3,"mat-error",11),s.qZA(),s.TgZ(8,"mat-form-field"),s.TgZ(9,"mat-label"),s._uU(10),s.ALo(11,"translate"),s.qZA(),s.TgZ(12,"textarea",12,13),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().message=e}),s.ALo(14,"translate"),s._uU(15," "),s.qZA(),s.YNc(16,Qm,3,3,"mat-error",11),s.qZA(),s.qZA()}if(2&t){const t=s.MAs(6),e=s.MAs(13),i=s.oxw();s.xp6(3),s.Oqu(s.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),s.xp6(2),s.Q6J("ngModel",i.subject),s.xp6(2),s.Q6J("ngIf",t.invalid),s.xp6(3),s.Oqu(s.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),s.xp6(2),s.s9C("placeholder",s.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),s.Q6J("ngModel",i.message),s.xp6(4),s.Q6J("ngIf",e.invalid)}}let t_=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.translate=e,this.notificator=i,this.rtMessages=n,this.data=s,this.storeService=o,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data.error&&this.data.error.errorId&&(this.subject=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(t=>{this.dialogRef.afterClosed().subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1")+t.ticketNumber+this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"))}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const t=this.storeService.get("config");let e=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(e=e.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),e=e.concat(this.data.error.message+"\nPerun instance: "+t+"\nRequest:\n"+this.data.error.urlWithParams+"\n\n"),this.data.error.payload){const t=/"password":".+?"/;let i=JSON.stringify(this.data.error.payload);i=i.replace(t,'"password":"####"'),e=e.concat("Payload:\n"+i+"\n\n")}return e=e.concat("Sended from new Perun Gui, version: "+i(306).i8),e.split("\n").join("\n ")}parseMethod(t){return t?this.methodRegexp.exec(t)[1]:t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(dh),s.Y36(Gh),s.Y36(Am),s.Y36(nt),s.Y36(fh),s.Y36(ns))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.YNc(3,Wm,1,0,"mat-spinner",1),s.YNc(4,Xm,17,13,"div",2),s.TgZ(5,"div",3),s.TgZ(6,"div",4),s.TgZ(7,"button",5),s.NdJ("click",function(){return e.dialogRef.close()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",6),s.NdJ("click",function(){return e.sendBugReport()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(4),s.hij(" ",s.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),s.xp6(2),s.Q6J("disabled",""===e.message||""===e.subject||e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},directives:[Ah,n.O5,kh,id,Ym,vh,Bd,Ld,Vm,Zd,af,_p,$p,kd],pipes:[Vh],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})(),e_=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.dialog=e,this.data=i}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const t=tm();t.width="550px",t.data={error:this.data.error},t.autoFocus=!1,this.dialog.open(t_,t)}),this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(dh),s.Y36(yh),s.Y36(fh))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.qZA(),s.TgZ(2,"div",1),s._uU(3),s.qZA(),s.TgZ(4,"div",2),s.TgZ(5,"div",3),s.TgZ(6,"button",4),s.NdJ("click",function(){return e.onBugReportClick()}),s._uU(7),s.ALo(8,"translate"),s.qZA(),s.TgZ(9,"button",5),s.NdJ("click",function(){return e.onCloseClick()}),s._uU(10),s.ALo(11,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(e.data.title),s.xp6(2),s.hij("\n",e.data.description,"\n"),s.xp6(3),s.Q6J("hidden","error"!==e.data.type),s.xp6(1),s.hij(" ",s.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),s.xp6(3),s.hij(" ",s.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},directives:[Ah,vh,kh,id],pipes:[Vh],styles:[""]}),t})();const i_=[[["caption"]],[["colgroup"],["col"]]],n_=["caption","colgroup, col"];function s_(t){return class extends t{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=ss(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const o_=new s.OlP("CDK_TABLE");let r_=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkCellDef",""]]}),t})(),a_=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),c_=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class u_{}const l_=s_(u_);let h_=(()=>{class t extends l_{constructor(t){super(),this._table=t,this._stickyEnd=!1}get name(){return this._name}set name(t){this._setNameInput(t)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const e=this._stickyEnd;this._stickyEnd=ss(t),this._hasStickyChanged=e!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(o_,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,r_,5),s.Suo(i,a_,5),s.Suo(i,c_,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.cell=t.first),s.iGM(t=s.CRH())&&(e.headerCell=t.first),s.iGM(t=s.CRH())&&(e.footerCell=t.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[s._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),s.qOj]}),t})();class d_{constructor(t,e){const i=e.nativeElement.classList;for(const n of t._columnCssClassName)i.add(n)}}let p_=(()=>{class t extends d_{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(h_),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[s.qOj]}),t})(),f_=(()=>{class t extends d_{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(h_),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[s.qOj]}),t})();class g_{constructor(){this.tasks=[],this.endTasks=[]}}const m_=new s.OlP("_COALESCED_STYLE_SCHEDULER");let __=(()=>{class t{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new At.xQ}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new g_,this._getScheduleObservable().pipe(js(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const t=this._currentSchedule;this._currentSchedule=new g_;for(const e of t.tasks)e();for(const e of t.endTasks)e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,yt.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,Pt.q)(1))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),w_=(()=>{class t{constructor(t,e){this.template=t,this._differs=e}ngOnChanges(t){if(!this._columnsDiffer){const e=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof A_?t.headerCell.template:this instanceof T_?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc),s.Y36(s.ZZ4))},t.\u0275dir=s.lG2({type:t,features:[s.TTD]}),t})();class y_ extends w_{}const b_=s_(y_);let A_=(()=>{class t extends b_{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(o_,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[s.qOj,s.TTD]}),t})();class v_ extends w_{}const k_=s_(v_);let T_=(()=>{class t extends k_{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(o_,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[s.qOj,s.TTD]}),t})(),C_=(()=>{class t extends w_{constructor(t,e,i){super(t,e),this._table=i}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(o_,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[s.qOj]}),t})(),S_=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),M_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.GkF(0,0)},directives:[S_],encapsulation:2}),t})(),E_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.GkF(0,0)},directives:[S_],encapsulation:2}),t})(),L_=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const x_=["top","bottom","left","right"];class R_{constructor(t,e,i,n,s=!0,o=!0,r){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=n,this._isBrowser=s,this._needsPositionStickyOnElement=o,this._positionListener=r,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(t,e){const i=[];for(const n of t)if(n.nodeType===n.ELEMENT_NODE){i.push(n);for(let t=0;t{for(const t of i)this._removeStickyStyle(t,e)})}updateStickyColumns(t,e,i,n=!0){if(!t.length||!this._isBrowser||!e.some(t=>t)&&!i.some(t=>t))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const s=t[0],o=s.children.length,r=this._getCellWidths(s,n),a=this._getStickyStartColumnPositions(r,e),c=this._getStickyEndColumnPositions(r,i),u=e.lastIndexOf(!0),l=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const n="rtl"===this.direction,s=n?"right":"left",h=n?"left":"right";for(const r of t)for(let t=0;te[i]?t:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===l?[]:r.slice(l).map((t,e)=>i[e+l]?t:null).reverse()}))})}stickRows(t,e,i){if(!this._isBrowser)return;const n="bottom"===i?t.slice().reverse():t,s="bottom"===i?e.slice().reverse():e,o=[],r=[],a=[];for(let u=0,l=0;u{var t,e;for(let r=0;r{e.some(t=>!t)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(t,e){for(const i of e)t.style[i]="",t.classList.remove(this._borderCellCss[i]);x_.some(i=>-1===e.indexOf(i)&&t.style[i])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i,n){t.classList.add(this._stickCellCss),n&&t.classList.add(this._borderCellCss[e]),t.style[e]=`${i}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const n of x_)t.style[n]&&(i+=e[n]);return i?`${i}`:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],n=t.children;for(let s=0;s0;s--)e[s]&&(i[s]=n,n+=t[s]);return i}}const D_=new s.OlP("CDK_SPL");let z_=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","rowOutlet",""]]}),t})(),P_=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),I_=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),O_=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),H_=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u,l){this._differs=t,this._changeDetectorRef=e,this._elementRef=i,this._dir=s,this._platform=r,this._viewRepeater=a,this._coalescedStyleScheduler=c,this._viewportRuler=u,this._stickyPositioningListener=l,this._onDestroy=new At.xQ,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.viewChange=new kt({start:0,end:Number.MAX_VALUE}),n||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=o,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=ss(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=ss(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,e)=>this.trackBy?this.trackBy(e.dataIndex,e.data):e),this._viewportRuler.change().pipe(js(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.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),wo(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return void this._updateNoDataRow();const e=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,e,(t,e,i)=>this._getEmbeddedViewArgs(t.item,i),t=>t.item.data,t=>{1===t.operation&&t.context&&this._renderCellTemplateForItem(t.record.item.rowDef,t.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(t=>{e.get(t.currentIndex).context.$implicit=t.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");const i=this._headerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"top"),this._headerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");const i=this._footerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...e,...i],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((t,e)=>{this._addStickyColumnStyles([t],this._headerRowDefs[e])}),this._rowDefs.forEach(t=>{const i=[];for(let n=0;n{this._addStickyColumnStyles([t],this._footerRowDefs[e])}),Array.from(this._columnDefsByName.values()).forEach(t=>t.resetStickyChanged())}_getAllRenderRows(){const t=[],e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let i=0;i{const s=i&&i.has(n)?i.get(n):[];if(s.length){const t=s.shift();return t.dataIndex=e,t}return{data:t,rowDef:n,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Y_(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=Y_(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Y_(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Y_(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(t,e)=>t||!!e.getColumnsDiff(),e=this._rowDefs.reduce(t,!1);e&&this._forceRenderDataRows();const i=this._headerRowDefs.reduce(t,!1);i&&this._forceRenderHeaderRows();const n=this._footerRowDefs.reduce(t,!1);return n&&this._forceRenderFooterRows(),e||i||n}_switchDataSource(t){this._data=[],wo(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;wo(this.dataSource)?t=this.dataSource.connect(this):Ms(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=(0,bt.of)(this.dataSource)),this._renderChangeSubscription=t.pipe(js(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,e)=>this._renderRow(this._headerRowOutlet,t,e)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,e)=>this._renderRow(this._footerRowOutlet,t,e)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,e){const i=Array.from(e.columns||[]).map(t=>this._columnDefsByName.get(t)),n=i.map(t=>t.sticky),s=i.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,n,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){const e=[];for(let i=0;i!i.when||i.when(e,t));else{let n=this._rowDefs.find(i=>i.when&&i.when(e,t))||this._defaultRowDef;n&&i.push(n)}return i}_getEmbeddedViewArgs(t,e){return{templateRef:t.rowDef.template,context:{$implicit:t.data},index:e}}_renderRow(t,e,i,n={}){const s=t.viewContainer.createEmbeddedView(e.template,n,i);return this._renderCellTemplateForItem(e,n),s}_renderCellTemplateForItem(t,e){for(let i of this._getCellTemplates(t))S_.mostRecentCellOutlet&&S_.mostRecentCellOutlet._viewContainer.createEmbeddedView(i,e);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let e=0,i=t.length;e{const i=this._columnDefsByName.get(e);return t.extractCellTemplate(i)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),e=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const i of e){const e=this._document.createElement(i.tag);e.setAttribute("role","rowgroup");for(const t of i.outlets)e.appendChild(t.elementRef.nativeElement);t.appendChild(e)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const t=(t,e)=>t||e.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new R_(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,bt.of)()).pipe(js(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const t=this._customNoDataRow||this._noDataRow;if(t){const e=0===this._rowOutlet.viewContainer.length;if(e!==this._isShowingNoDataRow){const i=this._noDataRowOutlet.viewContainer;e?i.createEmbeddedView(t.templateRef):i.clear(),this._isShowingNoDataRow=e}}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.ZZ4),s.Y36(s.sBO),s.Y36(s.SBq),s.$8M("role"),s.Y36(mo,8),s.Y36(n.K0),s.Y36(eo),s.Y36(vo),s.Y36(m_),s.Y36(Co),s.Y36(D_,12))},t.\u0275cmp=s.Xpm({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,L_,5),s.Suo(i,h_,5),s.Suo(i,C_,5),s.Suo(i,A_,5),s.Suo(i,T_,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._noDataRow=t.first),s.iGM(t=s.CRH())&&(e._contentColumnDefs=t),s.iGM(t=s.CRH())&&(e._contentRowDefs=t),s.iGM(t=s.CRH())&&(e._contentHeaderRowDefs=t),s.iGM(t=s.CRH())&&(e._contentFooterRowDefs=t)}},viewQuery:function(t,e){if(1&t&&(s.Gf(z_,7),s.Gf(P_,7),s.Gf(I_,7),s.Gf(O_,7)),2&t){let t;s.iGM(t=s.CRH())&&(e._rowOutlet=t.first),s.iGM(t=s.CRH())&&(e._headerRowOutlet=t.first),s.iGM(t=s.CRH())&&(e._footerRowOutlet=t.first),s.iGM(t=s.CRH())&&(e._noDataRowOutlet=t.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("cdk-table-fixed-layout",e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[s._Bn([{provide:o_,useExisting:t},{provide:vo,useClass:yo},{provide:m_,useClass:__},{provide:D_,useValue:null}])],ngContentSelectors:n_,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(s.F$t(i_),s.Hsn(0),s.Hsn(1,1),s.GkF(2,0),s.GkF(3,1),s.GkF(4,2),s.GkF(5,3))},directives:[P_,z_,O_,I_],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})();function Y_(t,e){return t.concat(Array.from(e))}let B_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Mo]]}),t})();const j_=[[["caption"]],[["colgroup"],["col"]]],F_=["caption","colgroup, col"];let N_=(()=>{class t extends H_{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-table-fixed-layout",e.fixedLayout)},exportAs:["matTable"],features:[s._Bn([{provide:vo,useClass:yo},{provide:H_,useExisting:t},{provide:o_,useExisting:t},{provide:m_,useClass:__},{provide:D_,useValue:null}]),s.qOj],ngContentSelectors:F_,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(s.F$t(j_),s.Hsn(0),s.Hsn(1,1),s.GkF(2,0),s.GkF(3,1),s.GkF(4,2),s.GkF(5,3))},directives:[P_,z_,O_,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-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}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:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),t})(),K_=(()=>{class t extends r_{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matCellDef",""]],features:[s._Bn([{provide:r_,useExisting:t}]),s.qOj]}),t})(),q_=(()=>{class t extends a_{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matHeaderCellDef",""]],features:[s._Bn([{provide:a_,useExisting:t}]),s.qOj]}),t})(),U_=(()=>{class t extends h_{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[s._Bn([{provide:h_,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),s.qOj]}),t})(),Z_=(()=>{class t extends p_{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[s.qOj]}),t})(),G_=(()=>{class t extends f_{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[s.qOj]}),t})(),V_=(()=>{class t extends A_{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[s._Bn([{provide:A_,useExisting:t}]),s.qOj]}),t})(),$_=(()=>{class t extends C_{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[s._Bn([{provide:C_,useExisting:t}]),s.qOj]}),t})(),W_=(()=>{class t extends M_{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[s._Bn([{provide:M_,useExisting:t}]),s.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.GkF(0,0)},directives:[S_],encapsulation:2}),t})(),J_=(()=>{class t extends E_{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[s._Bn([{provide:E_,useExisting:t}]),s.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.GkF(0,0)},directives:[S_],encapsulation:2}),t})(),Q_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[B_,pl],pl]}),t})();class X_ extends class extends class{}{constructor(t=[]){super(),this._renderData=new kt([]),this._filter=new kt(""),this._internalPageChanges=new At.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(t,e)=>{const i=t[e];if(rs(i)){const t=Number(i);return t<9007199254740991?t:i}return i},this.sortData=(t,e)=>{const i=e.active,n=e.direction;return i&&""!=n?t.sort((t,e)=>{let s=this.sortingDataAccessor(t,i),o=this.sortingDataAccessor(e,i);const r=typeof s,a=typeof o;r!==a&&("number"===r&&(s+=""),"number"===a&&(o+=""));let c=0;return null!=s&&null!=o?s>o?c=1:s{const i=Object.keys(t).reduce((e,i)=>e+t[i]+"\u25ec","").toLowerCase(),n=e.trim().toLowerCase();return-1!=i.indexOf(n)},this._data=new kt(t),this._updateChangeSubscription()}get data(){return this._data.value}set data(t){this._data.next(t),this._renderChangesSubscription||this._filterData(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}_updateChangeSubscription(){var t;const e=this._sort?(0,Ho.T)(this._sort.sortChange,this._sort.initialized):(0,bt.of)(null),i=this._paginator?(0,Ho.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,bt.of)(null),n=(0,Tt.aj)([this._data,this._filter]).pipe((0,Dt.U)(([t])=>this._filterData(t))),s=(0,Tt.aj)([n,e]).pipe((0,Dt.U)(([t])=>this._orderData(t))),o=(0,Tt.aj)([s,i]).pipe((0,Dt.U)(([t])=>this._pageData(t)));null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=o.subscribe(t=>this._renderData.next(t))}_filterData(t){return this.filteredData=null==this.filter||""===this.filter?t:t.filter(t=>this.filterPredicate(t,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;const e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=t,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,i=Math.min(e.pageIndex,t);i!==e.pageIndex&&(e.pageIndex=i,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var t;null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=null}}{}function tw(t,e){1&t&&s._UZ(0,"mat-spinner",6)}function ew(t,e){1&t&&s._UZ(0,"th",15)}function iw(t,e){if(1&t&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",t," ")}}function nw(t,e){1&t&&s._UZ(0,"tr",17)}function sw(t,e){1&t&&s._UZ(0,"tr",18)}function ow(t,e){if(1&t&&(s.TgZ(0,"div",7),s.TgZ(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,ew,1,0,"th",11),s.YNc(10,iw,2,1,"td",12),s.BQk(),s.YNc(11,nw,1,0,"tr",13),s.YNc(12,sw,1,0,"tr",14),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,5,t.data.description)," "),s.xp6(3),s.hij(" ",s.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "),s.xp6(2),s.Q6J("dataSource",t.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",t.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",t.displayedColumns)}}let rw=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new X_(this.data.items)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(dh),s.Y36(fh))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-universal-remove-items-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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,tw,1,0,"mat-spinner",1),s.YNc(5,ow,13,9,"div",2),s.TgZ(6,"div",3),s.TgZ(7,"button",4),s.NdJ("click",function(){return e.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return e.onSubmit()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.Oqu(s.lcZ(3,9,e.data.title)),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,11,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),s.xp6(2),s.Q6J("disabled",e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,13,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," "))},directives:[Ah,n.O5,kh,id,Ym,vh,N_,U_,q_,K_,V_,$_,Z_,G_,W_,J_],pipes:[Vh],styles:[""]}),t})(),aw=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}ngOnInit(){this.theme=this.data.theme,this.message=this.data.message}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(dh),s.Y36(fh))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"div",1),s.TgZ(5,"button",2),s.NdJ("click",function(){return e.onCancel()}),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.TgZ(8,"button",3),s.NdJ("click",function(){return e.onSubmit()}),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.Oqu(s.lcZ(3,6,e.message)),s.xp6(4),s.hij(" ",s.lcZ(7,8,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_CONFIRMATION_DIALOG.CANCEL_BUTTON")," "),s.xp6(3),s.hij(" ",s.lcZ(10,10,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_CONFIRMATION_DIALOG.SUBMIT_BUTTON")," "))},directives:[Ah,kh,id],pipes:[Vh],styles:[""]}),t})();function cw(t,e){if(1&t&&(s.TgZ(0,"div",5),s.TgZ(1,"mat-icon"),s._uU(2),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.Oqu(t.data.icon)}}function uw(t,e){if(1&t&&(s.TgZ(0,"div",6),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.hij(" ",t.showTimestamp()," ")}}let lw=(()=>{class t{constructor(t,e){this.dialog=t,this.notificationStorageService=e,this.newNotification=!1,this.closeNotification=new s.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 t=tm();t.width="550px",t.data=this.data,t.autoFocus=!1,this.dialog.open(e_,t).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function(t,e){return i=this,s=function*(){var i;yield(i=t,new Promise(t=>setTimeout(t,i))),e()},new((n=void 0)||(n=Promise))(function(t,e){function o(t){try{a(s.next(t))}catch(i){e(i)}}function r(t){try{a(s.throw(t))}catch(i){e(i)}}function a(e){var i;e.done?t(e.value):(i=e.value,i instanceof n?i:new n(function(t){t(i)})).then(o,r)}a((s=s.apply(i,[])).next())});var i,n,s}(this.data.delay,()=>{this.alreadyClosed||this.waiting||this.closeSelf()})}showTimestamp(){const[t,e]=this.data.timeStamp.split(":");return e.length<2?t+":0"+e:this.data.timeStamp}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yh),s.Y36(km))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"div",0),s.NdJ("click",function(){return e.alreadyClosed||e.waiting?"":e.closeSelf()}),s.YNc(2,cw,3,1,"div",1),s.TgZ(3,"div",2),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.YNc(6,uw,2,1,"div",3),s.TgZ(7,"div",4),s.NdJ("click",function(){return e.waiting=!0,e.doAction()}),s._uU(8),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Gre("notification ",e.inDialog?"":"mat-elevation-z7",""),s.ekj("error","error"===e.data.type)("success","success"===e.data.type),s.xp6(2),s.Q6J("ngIf",null!==e.data.icon),s.xp6(2),s.hij(" ",s.lcZ(5,12,e.data.title)," "),s.xp6(2),s.Q6J("ngIf",e.inDialog),s.xp6(1),s.Q6J("hidden",e.alreadyPressed),s.xp6(1),s.hij(" ",e.data.actionText," "))},directives:[n.O5,Vg],pipes:[Vh],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}"]}),t})();function hw(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"perun-web-apps-notification",2),s.NdJ("closeNotification",function(){const e=s.CHM(t).index;return s.oxw().removeNotification(e)}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit;s.Q6J("@flyInOut",void 0),s.xp6(1),s.Q6J("data",t)("newNotification",!0)}}const dw=function(t){return{top:t}};let pw=(()=>{class t{constructor(t,e){this.notificator=t,this.notificationStorageService=e,this.mobileView=!1,this.minWidth=992,this.displayWarning=!1,this.notifications=[],this.notificator.addNotification.subscribe(t=>{this.processNotification(t)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}processNotification(t){this.notifications.push(t),this.notificationStorageService.storeNotification(t)}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(t){this.notifications.splice(t,1)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Am),s.Y36(km))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-notificator"]],hostBindings:function(t,e){1&t&&s.NdJ("resize",function(t){return e.getScreenSize(t)},!1,s.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.YNc(1,hw,2,3,"div",1),s.qZA()),2&t&&(s.Q6J("ngStyle",s.VKq(2,dw,e.getNotificatorTop())),s.xp6(1),s.Q6J("ngForOf",e.notifications))},directives:[n.PC,n.sg,lw],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width:768px){#notificator[_ngcontent-%COMP%]{width:100%;top:auto;bottom:0}}"],data:{animation:[Mm]}}),t})();const fw=["*",[["mat-toolbar-row"]]],gw=["*","mat-toolbar-row"];class mw{constructor(t){this._elementRef=t}}const _w=gl(mw);let ww=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),yw=(()=>{class t extends _w{constructor(t,e,i){super(t),this._platform=e,this._document=i}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(eo),s.Y36(n.K0))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,ww,5),2&t){let t;s.iGM(t=s.CRH())&&(e._toolbarRows=t)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&s.ekj("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[s.qOj],ngContentSelectors:gw,decls:2,vars:0,template:function(t,e){1&t&&(s.F$t(fw),s.Hsn(0),s.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%}\n"],encapsulation:2,changeDetection:0}),t})(),bw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[pl],pl]}),t})();function Aw(t,e){1&t&&(s.TgZ(0,"div",13),s.TgZ(1,"span",14),s._uU(2," ~ \ud83d\uddf2\xa0 "),s.qZA(),s.TgZ(3,"span",15),s._uU(4," DEVEL "),s.qZA(),s.TgZ(5,"span",14),s._uU(6," \xa0\ud83d\uddf2 ~ "),s.qZA(),s.qZA())}const vw=function(t){return{background:t}},kw=function(t){return{color:t}};let Tw=(()=>{class t{constructor(t,e,i){this.storeService=t,this.authService=e,this.sanitizer=i,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 t.\u0275fac=function(e){return new(e||t)(s.Y36(ns),s.Y36(Sh),s.Y36(z))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-header"]],inputs:{sideNav:"sideNav"},decls:22,vars:29,consts:[[1,"header-container",3,"ngStyle"],[2,"display","flex","flex-direction","row"],["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(t,e){if(1&t&&(s.TgZ(0,"mat-toolbar",0),s.TgZ(1,"div",1),s.TgZ(2,"button",2),s.NdJ("click",function(){return e.sideNav.toggle()}),s.TgZ(3,"mat-icon"),s._uU(4,"menu"),s.qZA(),s.qZA(),s._UZ(5,"a",3),s._UZ(6,"mat-icon",4),s.TgZ(7,"p",5),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.qZA(),s.YNc(10,Aw,7,0,"div",6),s.TgZ(11,"div",7),s.TgZ(12,"button",8),s.TgZ(13,"mat-icon",9),s._uU(14," person "),s.qZA(),s.TgZ(15,"span",10),s._uU(16),s.qZA(),s.qZA(),s.TgZ(17,"mat-menu",null,11),s.TgZ(19,"button",12),s.NdJ("click",function(){return e.onLogOut()}),s._uU(20),s.ALo(21,"translate"),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.MAs(18);s.Q6J("ngStyle",s.VKq(19,vw,e.bgColor)),s.xp6(2),s.Q6J("ngStyle",s.VKq(21,kw,e.iconColor)),s.xp6(3),s.Q6J("innerHTML",e.logo,s.oJD),s.xp6(2),s.Q6J("ngStyle",s.VKq(23,kw,e.textColor)),s.xp6(1),s.Oqu(s.lcZ(9,15,"HEADER.TITLE")),s.xp6(2),s.Q6J("ngIf",e.isDevel),s.xp6(1),s.Q6J("ngStyle",s.VKq(25,kw,e.textColor)),s.xp6(1),s.Q6J("matMenuTriggerFor",t),s.xp6(1),s.Q6J("ngStyle",s.VKq(27,kw,e.iconColor)),s.xp6(3),s.xDo(" ",e.principal.user.titleBefore," ",e.principal.user.firstName," ",e.principal.user.middleName," ",e.principal.user.lastName," ",e.principal.user.titleAfter," "),s.xp6(4),s.Oqu(s.lcZ(21,17,"HEADER.LOGOUT"))}},directives:[yw,n.PC,id,Vg,On,In,n.O5,Lg,Cg,Ag],pipes:[Vh],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;margin-left:8px;padding:0}#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}"]}),t})();function Cw(t){return e=>e.lift(new Sw(t))}class Sw{constructor(t){this.value=t}call(t,e){return e.subscribe(new Mw(t,this.value))}}class Mw extends Ht.L{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}const Ew=["*"];function Lw(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",2),s.NdJ("click",function(){return s.CHM(t),s.oxw()._onBackdropClicked()}),s.qZA()}if(2&t){const t=s.oxw();s.ekj("mat-drawer-shown",t._isShowingBackdrop())}}function xw(t,e){1&t&&(s.TgZ(0,"mat-drawer-content"),s.Hsn(1,2),s.qZA())}const Rw=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Dw=["mat-drawer","mat-drawer-content","*"];function zw(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",2),s.NdJ("click",function(){return s.CHM(t),s.oxw()._onBackdropClicked()}),s.qZA()}if(2&t){const t=s.oxw();s.ekj("mat-drawer-shown",t._isShowingBackdrop())}}function Pw(t,e){1&t&&(s.TgZ(0,"mat-sidenav-content",3),s.Hsn(1,2),s.qZA())}const Iw=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Ow=["mat-sidenav","mat-sidenav-content","*"],Hw=".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-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",Yw={transformDrawer:_a("transform",[va("open, open-instant",Aa({transform:"none",visibility:"visible"})),va("void",Aa({"box-shadow":"none",visibility:"hidden"})),Ta("void => open-instant",wa("0ms")),Ta("void <=> open, open-instant => void",wa("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},Bw=new s.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),jw=new s.OlP("MAT_DRAWER_CONTAINER");let Fw=(()=>{class t extends To{constructor(t,e,i,n,s){super(i,n,s),this._changeDetectorRef=t,this._container=e}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36((0,s.Gpc)(()=>Kw)),s.Y36(s.SBq),s.Y36(ko),s.Y36(s.R0b))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&s.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[s.qOj],ngContentSelectors:Ew,decls:1,vars:0,template:function(t,e){1&t&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),t})(),Nw=(()=>{class t{constructor(t,e,i,n,o,r,a){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=i,this._platform=n,this._ngZone=o,this._doc=r,this._container=a,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new At.xQ,this._animationEnd=new At.xQ,this._animationState="void",this.openedChange=new s.vpe(!0),this._openedStream=this.openedChange.pipe((0,wt.h)(t=>t),(0,Dt.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,wt.h)(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),Cw(void 0)),this._closedStream=this.openedChange.pipe((0,wt.h)(t=>!t),(0,Dt.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,wt.h)(t=>t.fromState!==t.toState&&"void"===t.toState),Cw(void 0)),this._destroyed=new At.xQ,this.onPositionChanged=new s.vpe,this._modeChanged=new At.xQ,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{ds(this._elementRef.nativeElement,"keydown").pipe((0,wt.h)(t=>t.keyCode===Fo&&!this.disableClose&&!Go(t)),js(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe(Es((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{const{fromState:e,toState:i}=t;(0===i.indexOf("open")&&"void"===e||"void"===i&&0===e.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=ss(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=ss(t)}get opened(){return this._opened}set opened(t){this.toggle(ss(t))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(t=>{t||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}_isFocusWithinDrawer(){var t;const e=null===(t=this._doc)||void 0===t?void 0:t.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0)}toggle(t=!this.opened,e){return this._setOpen(t,!t&&this._isFocusWithinDrawer(),e)}_setOpen(t,e,i="program"){return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=i):(this._animationState="void",e&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(t=>{this.openedChange.pipe((0,Pt.q)(1)).subscribe(e=>t(e?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(t){this._animationStarted.next(t)}_animationDoneListener(t){this._animationEnd.next(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Wr),s.Y36(ra),s.Y36(eo),s.Y36(s.R0b),s.Y36(n.K0,8),s.Y36(jw,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&s.WFA("@transform.start",function(t){return e._animationStartListener(t)})("@transform.done",function(t){return e._animationDoneListener(t)}),2&t&&(s.uIk("align",null),s.d8E("@transform",e._animationState),s.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.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:Ew,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.Hsn(1),s.qZA())},directives:[To],encapsulation:2,data:{animation:[Yw.transformDrawer]},changeDetection:0}),t})(),Kw=(()=>{class t{constructor(t,e,i,n,o,r=!1,a){this._dir=t,this._element=e,this._ngZone=i,this._changeDetectorRef=n,this._animationMode=a,this._drawers=new s.n_E,this.backdropClick=new s.vpe,this._destroyed=new At.xQ,this._doCheckSubject=new At.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new At.xQ,t&&t.change.pipe(js(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),o.change().pipe(js(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=r}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=ss(t)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(t){this._backdropOverride=null==t?null:ss(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(Ot(this._allDrawers),js(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Ot(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,Lr.b)(10),js(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(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,e=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){const i=this._left._getWidth();t+=i,e-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)e+=this._right._getWidth();else if("push"==this._right.mode){const i=this._right._getWidth();e+=i,t-=i}t=t||null,e=e||null,t===this._contentMargins.left&&e===this._contentMargins.right||(this._contentMargins={left:t,right:e},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe((0,wt.h)(t=>t.fromState!==t.toState),js(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"!==t.mode&&t.openedChange.pipe(js(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe(js(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,Pt.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe(js((0,Ho.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const e=this._element.nativeElement.classList,i="mat-drawer-container-has-open";t?e.add(i):e.remove(i)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?this._end=t:this._start=t}),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(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(t){return"side"!==t.mode||!!this._backdropOverride}_isDrawerOpen(t){return null!=t&&t.opened}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(mo,8),s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(s.sBO),s.Y36(Co),s.Y36(Bw),s.Y36(el,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,Fw,5),s.Suo(i,Nw,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._content=t.first),s.iGM(t=s.CRH())&&(e._allDrawers=t)}},viewQuery:function(t,e){if(1&t&&s.Gf(Fw,5),2&t){let t;s.iGM(t=s.CRH())&&(e._userContent=t.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[s._Bn([{provide:jw,useExisting:t}])],ngContentSelectors:Dw,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(t,e){1&t&&(s.F$t(Rw),s.YNc(0,Lw,1,2,"div",0),s.Hsn(1),s.Hsn(2,1),s.YNc(3,xw,2,0,"mat-drawer-content",1)),2&t&&(s.Q6J("ngIf",e.hasBackdrop),s.xp6(3),s.Q6J("ngIf",!e._content))},directives:[n.O5,Fw],styles:[Hw],encapsulation:2,changeDetection:0}),t})(),qw=(()=>{class t extends Fw{constructor(t,e,i,n,s){super(t,e,i,n,s)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36((0,s.Gpc)(()=>Zw)),s.Y36(s.SBq),s.Y36(ko),s.Y36(s.R0b))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&s.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[s.qOj],ngContentSelectors:Ew,decls:1,vars:0,template:function(t,e){1&t&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),t})(),Uw=(()=>{class t extends Nw{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=ss(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=os(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=os(t)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(s.uIk("align",null),s.Udp("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),s.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[s.qOj],ngContentSelectors:Ew,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.Hsn(1),s.qZA())},directives:[To],encapsulation:2,data:{animation:[Yw.transformDrawer]},changeDetection:0}),t})(),Zw=(()=>{class t extends Kw{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,qw,5),s.Suo(i,Uw,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._content=t.first),s.iGM(t=s.CRH())&&(e._allDrawers=t)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[s._Bn([{provide:jw,useExisting:t}]),s.qOj],ngContentSelectors:Ow,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(s.F$t(Iw),s.YNc(0,zw,1,2,"div",0),s.Hsn(1),s.Hsn(2,1),s.YNc(3,Pw,2,0,"mat-sidenav-content",1)),2&t&&(s.Q6J("ngIf",e.hasBackdrop),s.xp6(3),s.Q6J("ngIf",!e._content))},directives:[n.O5,qw,To],styles:[Hw],encapsulation:2,changeDetection:0}),t})(),Gw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,pl,io,So],So,pl]}),t})(),Vw=(()=>{class t{constructor(t){this.authResolver=t}getSideMenuItems(){const t=[];return this.authResolver.isCabinetAdmin()&&t.push({label:"MENU_ITEMS.ALL_PUBLICATIONS",icon:"perun-publications-white",isSVG:!0,link:"/all-publications",activatedRegex:"^/all-publications",tabName:"all-publications"}),t.push({label:"MENU_ITEMS.MY_PUBLICATIONS",icon:"local_library",link:"/my-publications",activatedRegex:"^/my-publications",tabName:"my-publications"}),t.push({label:"MENU_ITEMS.CREATE_PUBLICATION",icon:"add_box",link:"/create-publication",activatedRegex:"^/create-publication",tabName:"create-publication"}),this.authResolver.isCabinetAdmin()&&t.push({label:"MENU_ITEMS.AUTHORS",icon:"assignment_ind",link:"/authors",activatedRegex:"^/authors",tabName:"authors"}),t.push({label:"MENU_ITEMS.CATEGORIES",icon:"all_inbox",link:"/categories",activatedRegex:"^/categories$",tabName:"categories"}),t.push({label:"MENU_ITEMS.PUBLICATION_SYSTEMS",icon:"assignment",link:"/publication-systems",activatedRegex:"^/publication-systems$",tabName:"publication-systems"}),t}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(_t))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$w=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[pl],pl]}),t})();const Ww=["*"],Jw=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],Qw=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"];class Xw{}const ty=fl(ml(Xw));class ey{}const iy=ml(ey),ny=new s.OlP("MatList"),sy=new s.OlP("MatNavList");let oy=(()=>{class t extends ty{constructor(){super(...arguments),this._stateChanges=new At.xQ}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[s._Bn([{provide:sy,useExisting:t}]),s.qOj,s.TTD],ngContentSelectors:Ww,decls:1,vars:0,template:function(t,e){1&t&&(s.F$t(),s.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.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:transparent;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{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:transparent;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{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 button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}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-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.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}}\n'],encapsulation:2,changeDetection:0}),t})(),ry=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),ay=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),cy=(()=>{class t extends iy{constructor(t,e,i,n){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new At.xQ,this._disabled=!1,this._isInteractiveList=!!(i||n&&"action-list"===n._getListType()),this._list=i||n;const s=this._getHostElement();"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(js(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=ss(t)}ngAfterContentInit(){!function(t,e,i="mat"){t.changes.pipe(Ot(t)).subscribe(({length:t})=>{Il(e,`${i}-2-line`,!1),Il(e,`${i}-3-line`,!1),Il(e,`${i}-multi-line`,!1),2===t||3===t?Il(e,`${i}-${t}-line`,!0):t>3&&Il(e,`${i}-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 t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(sy,8),s.Y36(ny,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,ry,5),s.Suo(i,ay,5),s.Suo(i,Pl,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._avatar=t.first),s.iGM(t=s.CRH())&&(e._icon=t.first),s.iGM(t=s.CRH())&&(e._lines=t)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&s.ekj("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[s.qOj],ngContentSelectors:Qw,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(t,e){1&t&&(s.F$t(Jw),s.TgZ(0,"div",0),s._UZ(1,"div",1),s.Hsn(2),s.TgZ(3,"div",2),s.Hsn(4,1),s.qZA(),s.Hsn(5,2),s.qZA()),2&t&&(s.xp6(1),s.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[ql],encapsulation:2,changeDetection:0}),t})(),uy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Ol,Ul,pl,Gl,n.ez],Ol,pl,Gl,$w]}),t})();function ly(t,e){if(1&t&&s._UZ(0,"mat-icon",6),2&t){const t=s.oxw().$implicit;s.Q6J("svgIcon",t.icon)}}const hy=function(t){return{color:t}};function dy(t,e){if(1&t&&(s.TgZ(0,"mat-icon",7),s._uU(1),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw();s.Q6J("ngStyle",s.VKq(2,hy,e.iconColor)),s.xp6(1),s.Oqu(t.icon)}}function py(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-list-item",2),s.NdJ("click",function(){return s.CHM(t),s.oxw().shouldHideMenu()}),s.YNc(1,ly,1,1,"mat-icon",3),s.YNc(2,dy,2,4,"mat-icon",4),s.TgZ(3,"span",5),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.ekj("activated",i.isActive(t.activatedRegex)),s.s9C("routerLink",t.link),s.Q6J("ngStyle",s.VKq(10,hy,i.textColor))("matRippleColor","rgba(255, 255, 255, 0.1)"),s.xp6(1),s.Q6J("ngIf",t.isSVG),s.xp6(1),s.Q6J("ngIf",!t.isSVG),s.xp6(2),s.Oqu(s.lcZ(5,8,t.label))}}let fy=(()=>{class t{constructor(t,e,i){this.sideMenuItemService=t,this.storeService=e,this.router=i,this.items=[],this.textColor=this.storeService.get("theme","sidemenu_text_color"),this.iconColor=this.storeService.get("theme","sidemenu_item_icon_color"),this.currentUrl=i.url,i.events.subscribe(t=>{t instanceof re&&(this.currentUrl=t.url)})}ngOnInit(){this.items=this.sideMenuItemService.getSideMenuItems()}isActive(t){return new RegExp(t).test(this.currentUrl)}shouldHideMenu(){"over"===this.sideNav.mode&&this.sideNav.close()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Vw),s.Y36(ns),s.Y36(Pn))},t.\u0275cmp=s.Xpm({type:t,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"],[3,"svgIcon",4,"ngIf"],[3,"ngStyle",4,"ngIf"],[1,"nav-caption","ml-3"],[3,"svgIcon"],[3,"ngStyle"]],template:function(t,e){1&t&&(s.TgZ(0,"mat-nav-list",0),s.YNc(1,py,6,12,"mat-list-item",1),s.qZA()),2&t&&(s.xp6(1),s.Q6J("ngForOf",e.items))},directives:[oy,n.sg,cy,ql,n.PC,In,n.O5,Vg],pipes:[Vh],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}"]}),t})();function gy(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let my=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.translate=e,this.notificator=i,this.rtMessages=n,this.storeService=s,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(t=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+t.ticketNumber)),this.dialogRef.close()})}getFullEmailBody(){return this.message+"\n ------------------------\n Perun instance: "+this.instanceName+"\n Sended from new Perun Gui, version: "+i(306).i8}close(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(dh),s.Y36(Gh),s.Y36(Am),s.Y36(nt),s.Y36(ns))},t.\u0275cmp=s.Xpm({type:t,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(t,e){if(1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s.TgZ(4,"mat-form-field"),s.TgZ(5,"mat-label"),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.TgZ(8,"input",2,3),s.NdJ("ngModelChange",function(t){return e.subject=t}),s.qZA(),s.YNc(10,gy,3,3,"mat-error",4),s.qZA(),s.TgZ(11,"mat-form-field"),s.TgZ(12,"mat-label"),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.TgZ(15,"textarea",5),s.NdJ("ngModelChange",function(t){return e.message=t}),s.ALo(16,"translate"),s._uU(17," "),s.qZA(),s.TgZ(18,"mat-hint"),s._uU(19),s.ALo(20,"translate"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(21,"div",6),s.TgZ(22,"div",7),s.TgZ(23,"button",8),s.NdJ("click",function(){return e.close()}),s._uU(24),s.ALo(25,"translate"),s.qZA(),s.TgZ(26,"button",9),s.NdJ("click",function(){return e.sendBugReport()}),s._uU(27),s.ALo(28,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.MAs(9);s.xp6(1),s.Oqu(s.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),s.xp6(5),s.Oqu(s.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),s.xp6(2),s.Q6J("ngModel",e.subject),s.xp6(2),s.Q6J("ngIf",t.invalid),s.xp6(3),s.Oqu(s.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),s.xp6(2),s.s9C("placeholder",s.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),s.Q6J("ngModel",e.message),s.xp6(4),s.Oqu(s.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),s.xp6(5),s.hij(" ",s.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),s.xp6(2),s.Q6J("disabled",t.invalid),s.xp6(1),s.hij(" ",s.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[Ah,vh,Bd,Ld,Vm,Zd,af,_p,$p,n.O5,Ed,kh,id,kd],pipes:[Vh],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})(),_y=(()=>{class t{transform(t,e,i){return t[`${i}_${e}`]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"localisedText",type:t,pure:!0}),t})(),wy=(()=>{class t{transform(t,e){return t["link_"+e]||t.link_en}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"localisedLink",type:t,pure:!0}),t})(),yy=(()=>{class t{transform(t){return t.includes("/")?t:"/assets/config/"+t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"footerLogoPath",type:t,pure:!0}),t})();function by(t,e){if(1&t&&(s.TgZ(0,"a",13),s.ALo(1,"localisedLink"),s._UZ(2,"img",14),s.ALo(3,"footerLogoPath"),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Q6J("href",s.xi3(1,2,t,e.language),s.LSH),s.xp6(2),s.s9C("src",s.lcZ(3,5,t.logo),s.LSH)}}function Ay(t,e){if(1&t&&(s.TgZ(0,"span"),s._UZ(1,"img",14),s.ALo(2,"footerLogoPath"),s.qZA()),2&t){const t=s.oxw().$implicit;s.xp6(1),s.s9C("src",s.lcZ(2,1,t.logo),s.LSH)}}function vy(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,by,4,7,"a",11),s.ALo(2,"localisedLink"),s.YNc(3,Ay,3,3,"span",12),s.ALo(4,"localisedLink"),s.qZA()),2&t){const t=e.$implicit,i=s.oxw(3);s.xp6(1),s.Q6J("ngIf",s.xi3(2,2,t,i.language)),s.xp6(2),s.Q6J("ngIf",!s.xi3(4,5,t,i.language))}}const ky=function(t){return{"min-height":t}};function Ty(t,e){if(1&t&&(s.TgZ(0,"div",10),s.YNc(1,vy,5,8,"div",5),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw();s.Q6J("ngStyle",s.VKq(2,ky,e.columnContentHeight+"px")),s.xp6(1),s.Q6J("ngForOf",t.elements)}}const Cy=function(t){return{color:t}};function Sy(t,e){if(1&t&&(s.TgZ(0,"i",20),s._uU(1),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Q6J("ngStyle",s.VKq(2,Cy,e.linksTextColor)),s.xp6(1),s.hij(" ",t.icon," ")}}function My(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"span",21),s.NdJ("click",function(){s.CHM(t);const e=s.oxw().$implicit;return s.oxw(3).openDialog(e.dialog)}),s._uU(1),s.ALo(2,"localisedText"),s.qZA()}if(2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Q6J("ngStyle",s.VKq(6,Cy,e.linksTextColor)),s.xp6(1),s.hij("",s.Dn7(2,2,t,e.language,"label")," ")}}function Ey(t,e){if(1&t&&(s.TgZ(0,"a",22),s.ALo(1,"localisedLink"),s._uU(2),s.ALo(3,"localisedText"),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Q6J("href",s.xi3(1,3,t,e.language),s.LSH)("ngStyle",s.VKq(10,Cy,e.linksTextColor)),s.xp6(2),s.Oqu(s.Dn7(3,6,t,e.language,"label"))}}function Ly(t,e){if(1&t&&(s.TgZ(0,"span",10),s._uU(1),s.ALo(2,"localisedText"),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Q6J("ngStyle",s.VKq(6,Cy,e.linksTextColor)),s.xp6(1),s.Oqu(s.Dn7(2,2,t,e.language,"label"))}}function xy(t,e){if(1&t&&(s.TgZ(0,"div",16),s.YNc(1,Sy,2,4,"i",17),s.YNc(2,My,3,8,"span",18),s.YNc(3,Ey,4,12,"a",19),s.ALo(4,"localisedLink"),s.YNc(5,Ly,3,8,"span",9),s.ALo(6,"localisedLink"),s.qZA()),2&t){const t=e.$implicit,i=s.oxw(3);s.xp6(1),s.Q6J("ngIf",t.icon),s.xp6(1),s.Q6J("ngIf",t.dialog),s.xp6(1),s.Q6J("ngIf",s.xi3(4,4,t,i.language)&&!t.dialog),s.xp6(2),s.Q6J("ngIf",!s.xi3(6,7,t,i.language)&&!t.dialog)}}const Ry=function(t){return{height:t}};function Dy(t,e){if(1&t&&(s.TgZ(0,"div",10),s.YNc(1,xy,7,10,"div",15),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw();s.Q6J("ngStyle",s.VKq(2,Ry,e.columnContentHeight+"px")),s.xp6(1),s.Q6J("ngForOf",t.elements)}}function zy(t,e){if(1&t&&(s.TgZ(0,"div",7),s.TgZ(1,"h6",8),s._uU(2),s.ALo(3,"localisedText"),s.qZA(),s.YNc(4,Ty,2,4,"div",9),s.YNc(5,Dy,2,4,"div",9),s.qZA()),2&t){const t=e.$implicit,i=s.oxw();s.ekj("my-auto",i.containsLogos),s.xp6(1),s.Q6J("ngStyle",s.VKq(10,Cy,i.headersTextColor)),s.xp6(1),s.hij(" ",s.Dn7(3,6,t,i.language,"title")," "),s.xp6(2),s.Q6J("ngIf",t.logos),s.xp6(1),s.Q6J("ngIf",t.elements&&!t.logos)}}function Py(t,e){if(1&t&&(s.TgZ(0,"span"),s.TgZ(1,"a",6),s._uU(2),s.qZA(),s.qZA()),2&t){const t=e.$implicit,i=e.index,n=s.oxw();s.xp6(1),s.Q6J("href",t.url,s.LSH)("ngStyle",s.VKq(3,Cy,n.copyrightTextColor)),s.xp6(1),s.Oqu(i?", "+t.name:t.name)}}const Iy=function(t){return{background:t}};let Oy=(()=>{class t{constructor(t,e,i){this.storeService=t,this.translateService=e,this.dialog=i,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.items=[],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(t=>{this.language=t.lang}),this.version=i(306).i8,this.items=this.storeService.get("footer","columns");for(const t of this.items)t.logos?this.containsLogos=!0:25*t.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*t.elements.length);this.copyrightItems=this.storeService.get("footer","copyright_items")}openDialog(t){const e=tm();switch(t){case"reportIssue":e.width="550px",this.dialog.open(my,e)}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(ns),s.Y36(Gh),s.Y36(yh))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"footer",0),s.TgZ(1,"div",1),s.YNc(2,zy,6,12,"div",2),s.qZA(),s._UZ(3,"hr",3),s.TgZ(4,"div",4),s._uU(5),s.YNc(6,Py,3,5,"span",5),s._uU(7," Version "),s.TgZ(8,"a",6),s._uU(9),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Q6J("ngStyle",s.VKq(8,Iy,e.bgColor)),s.xp6(2),s.Q6J("ngForOf",e.items),s.xp6(2),s.Q6J("ngStyle",s.VKq(10,Cy,e.copyrightTextColor)),s.xp6(1),s.hij(" \xa9 ",e.currentYear," Copyright: "),s.xp6(1),s.Q6J("ngForOf",e.copyrightItems),s.xp6(2),s.Q6J("href",e.githubRepository,s.LSH)("ngStyle",s.VKq(12,Cy,e.copyrightTextColor)),s.xp6(1),s.Oqu(e.version))},directives:[n.PC,n.sg,n.O5],pipes:[_y,wy,yy],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}"]}),t})();function Hy(t,e){if(1&t&&(s.TgZ(0,"div",8),s._UZ(1,"div",9),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("innerHTML",t.logo,s.oJD)}}function Yy(t,e){if(1&t&&(s.TgZ(0,"div",10),s._UZ(1,"div",11),s._UZ(2,"mat-icon",12),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("innerHTML",t.logo,s.oJD)}}function By(t,e){if(1&t&&(s.TgZ(0,"div",8),s._UZ(1,"a",9),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("innerHTML",t.logo,s.oJD)}}const jy=function(t){return{color:t}};function Fy(t,e){if(1&t&&(s.TgZ(0,"p",13),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.Q6J("ngStyle",s.VKq(2,jy,t.textColor)),s.xp6(1),s.hij(" ",t.headerTitle," ")}}const Ny=function(t,e){return{background:t,color:e}},Ky=function(t,e){return{"min-height":t,"background-color":e}};let qy=(()=>{class t{constructor(t,e,i,n){this.storeService=t,this.sanitizer=e,this.preferredLangService=i,this.translateService=n,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 t=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(t)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(ns),s.Y36(z),s.Y36(Sm),s.Y36(Gh))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:11,vars:12,consts:[["id","login-nav",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["style"," display: flex; flex-direction: 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"],[2,"display","flex","flex-direction","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(t,e){1&t&&(s.TgZ(0,"div",0),s.YNc(1,Hy,2,1,"div",1),s.YNc(2,Yy,3,1,"div",2),s.YNc(3,By,2,1,"div",1),s.YNc(4,Fy,2,4,"p",3),s.qZA(),s.TgZ(5,"div",4),s.TgZ(6,"div",5),s.TgZ(7,"div",6),s._UZ(8,"router-outlet"),s.qZA(),s.TgZ(9,"div",7),s._UZ(10,"perun-web-apps-footer"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Q6J("ngStyle",s.WLB(6,Ny,e.headerBackgroundColor,e.headerTextColor)),s.xp6(1),s.Q6J("ngIf","admin-gui"===e.application),s.xp6(1),s.Q6J("ngIf","publications"===e.application),s.xp6(1),s.Q6J("ngIf","user-profile"===e.application),s.xp6(1),s.Q6J("ngIf",!!e.headerTitle),s.xp6(2),s.Q6J("ngStyle",s.WLB(9,Ky,e.getContentInnerMinHeight(),e.contentBackgroundColor)))},directives:[n.PC,n.O5,Yn,Oy,Vg],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}"]}),t})();const Uy=["footer"],Zy=function(t){return{background:t}},Gy=function(t){return{"min-height":t}};function Vy(t,e){if(1&t&&(s.TgZ(0,"div"),s._UZ(1,"perun-web-apps-header",1),s.TgZ(2,"mat-sidenav-container"),s.TgZ(3,"mat-sidenav",2,3),s._UZ(5,"perun-web-apps-side-menu",4),s.qZA(),s.TgZ(6,"mat-sidenav-content",5),s.TgZ(7,"div",6),s._UZ(8,"router-outlet"),s.qZA(),s.TgZ(9,"div",null,7),s._UZ(11,"perun-web-apps-footer"),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.MAs(4),e=s.oxw();s.xp6(1),s.Q6J("sideNav",t),s.xp6(2),s.Q6J("mode",e.sidebarMode)("ngStyle",s.VKq(7,Zy,e.sideMenuBgColor))("opened",!e.isMobile()),s.xp6(2),s.Q6J("sideNav",t),s.xp6(1),s.Q6J("ngStyle",s.VKq(9,Zy,e.contentBackgroundColor)),s.xp6(1),s.Q6J("ngStyle",s.VKq(11,Gy,e.contentHeight))}}function $y(t,e){1&t&&(s.TgZ(0,"div"),s._UZ(1,"perun-web-apps-login-screen-base",8),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Q6J("application","publications")("headerTitle",s.lcZ(2,2,"HEADER.TITLE")))}let Wy=(()=>{class t{constructor(t,e,i,n,s){this.store=t,this.initAuth=e,this.changeDetector=i,this.authResolver=n,this.router=s,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)"}ngOnInit(){this.isLoginScreenShow=this.initAuth.isLoginScreenShown(),this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),sessionStorage.removeItem("baLogout");const t=location.pathname;this.authResolver.isCabinetAdmin()||"/"!==t&&!t.includes("/all-publications")||this.router.navigate(["my-publications"])}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side"}isMobile(){return window.innerWidth<=t.minWidth}setContentHeight(t){this.contentHeight="calc(100vh - 84px - "+t+"px)",this.changeDetector.detectChanges()}isServiceLogin(){return!!sessionStorage.getItem("baLogout")}ngAfterViewInit(){this.contentHeight="calc(100vh - 84px - "+this.footer.nativeElement.offsetHeight+"px)",this.changeDetector.detectChanges()}}return t.minWidth=992,t.\u0275fac=function(e){return new(e||t)(s.Y36(ns),s.Y36(_m),s.Y36(s.sBO),s.Y36(_t),s.Y36(Pn))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-root"]],viewQuery:function(t,e){if(1&t&&s.Gf(Uy,5),2&t){let t;s.iGM(t=s.CRH())&&(e.footer=t.first)}},hostBindings:function(t,e){1&t&&s.NdJ("resize",function(t){return e.getScreenSize(t)},!1,s.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(t,e){1&t&&(s._UZ(0,"perun-web-apps-notificator"),s.YNc(1,Vy,12,13,"div",0),s.YNc(2,$y,3,4,"div",0)),2&t&&(s.xp6(1),s.Q6J("ngIf",!e.isLoginScreenShow&&!e.isServiceAccess&&!e.isServiceLogin()),s.xp6(1),s.Q6J("ngIf",e.isLoginScreenShow||e.isServiceAccess||e.isServiceLogin()))},directives:[pw,n.O5,Tw,Zw,Uw,n.PC,fy,qw,Yn,Oy,qy],pipes:[Vh],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}"]}),t})();class Jy{constructor(t,e="/assets/i18n/",i=".json"){this.http=t,this.prefix=e,this.suffix=i}getTranslation(t){return this.http.get(`${this.prefix}${t}${this.suffix}`)}}let Qy=(()=>{class t{constructor(t,e,i,n,s){this.http=t,this.storeService=e,this.authzSevice=i,this.titleService=n,this.utilsService=s}initializeColors(t,e){return new Promise(i=>{e.forEach(t=>{const e=this.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e)}),t.forEach(t=>{const e=this.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e),this.setEntityTheme(t.entity,e)}),i()})}setEntityTheme(t,e){const i=(n=e,[Xy(tinycolor(n).lighten(52),"50"),Xy(tinycolor(n).lighten(37),"100"),Xy(tinycolor(n).lighten(26),"200"),Xy(tinycolor(n).lighten(12),"300"),Xy(tinycolor(n).lighten(6),"400"),Xy(tinycolor(n),"500"),Xy(tinycolor(n).darken(6),"600"),Xy(tinycolor(n).darken(12),"700"),Xy(tinycolor(n).darken(18),"800"),Xy(tinycolor(n).darken(24),"900"),Xy(tinycolor(n).lighten(50).saturate(30),"A100"),Xy(tinycolor(n).lighten(30).saturate(30),"A200"),Xy(tinycolor(n).lighten(10).saturate(15),"A400"),Xy(tinycolor(n).lighten(5).saturate(5),"A700")]);var n;for(const s of i){const e=`--${t}-theme-primary-contrast-${s.name}`,i=s.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${t}-theme-primary-${s.name}`,`${s.red},${s.green},${s.blue}`),document.documentElement.style.setProperty(e,i)}}loadAppDefaultConfig(){return new Promise(t=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(e=>{this.storeService.setDefaultConfig(e),t()})})}loadAppInstanceConfig(){return new Promise(t=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(e=>{this.storeService.setInstanceConfig(e);const i=document.location.hostname;void 0!==e.brandings&&void 0!==e.brandings[i]&&this.storeService.setBanding(i),t()},()=>{console.log("instance config not detected"),t()})})}getNoCacheHeaders(){return new F.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(t=>{const e=document.querySelector("link[rel*='icon']")||document.createElement("link");e.type="image/x-icon",e.rel="shortcut icon",e.href=this.storeService.get("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(e),t()})}setApiUrl(){return new Promise(t=>{let e=this.storeService.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(e=e.replace("oauth","ba")),this.authzSevice.configuration.basePath=e,this.titleService.setTitle(this.storeService.get("document_title")),t()})}loadAppsConfig(){return new Promise((t,e)=>{this.utilsService.getAppsConfig().subscribe(e=>{this.storeService.setAppsConfig(e),t()},t=>e(t))})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(ns),s.LFG(G),s.LFG(j),s.LFG(ut))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Xy(t,e){const i=tinycolor(t),n=i.toRgb();return{name:e,hex:i.toHexString(),darkContrast:i.isLight(),red:n.r,green:n.g,blue:n.b}}let tb=(()=>{class t{constructor(t,e,i,n,s){this.initAuthService=t,this.appConfigService=e,this.location=i,this.authzSevice=n,this.guiAuthResolver=s,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(t=>{throw console.error(t),this.location.go("/"),location.reload(),t}).then(t=>t?this.initAuthService.loadPrincipal().then(()=>this.loadPolicies()):this.initAuthService.handleAuthStart())}loadPolicies(){return new Promise((t,e)=>{this.authzSevice.getAllPolicies().subscribe(e=>{this.guiAuthResolver.setPerunPolicies(e),t()},t=>e(t))})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(_m),s.LFG(Qy),s.LFG(n.Ye),s.LFG(G),s.LFG(_t))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const eb=new s.OlP("perun-api-service");let ib=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,Th,nd,$h]]}),t})();const nb=["*",[["mat-card-footer"]]],sb=["*","mat-card-footer"];let ob=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t})(),rb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t})(),ab=(()=>{class t{constructor(t){this._animationMode=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(el,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:sb,decls:2,vars:0,template:function(t,e){1&t&&(s.F$t(nb),s.Hsn(0),s.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-animation-noopable.mat-card{transition:none;animation:none}.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}.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}\n"],encapsulation:2,changeDetection:0}),t})(),cb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[pl],pl]}),t})();const ub=["input"],lb=function(t){return{enterDuration:t}},hb=["*"],db=new s.OlP("mat-checkbox-default-options",{providedIn:"root",factory:pb});function pb(){return{color:"accent",clickAction:"check-indeterminate"}}let fb=0;const gb=pb(),mb={provide:Kd,useExisting:(0,s.Gpc)(()=>bb),multi:!0};class _b{}class wb{constructor(t){this._elementRef=t}}const yb=_l(gl(ml(fl(wb))));let bb=(()=>{class t extends yb{constructor(t,e,i,n,o,r,a){super(t),this._changeDetectorRef=e,this._focusMonitor=i,this._ngZone=n,this._animationMode=r,this._options=a,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++fb,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new s.vpe,this.indeterminateChange=new s.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||gb,this.color=this.defaultColor=this._options.color||gb.color,this.tabIndex=parseInt(o)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(t){this._required=ss(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=ss(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=ss(t),e&&(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(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,i=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{i.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new _b;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(t){var e;const i=null===(e=this._options)||void 0===e?void 0:e.clickAction;t.stopPropagation(),this.disabled||"noop"===i?this.disabled||"noop"!==i||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t,e){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let i="";switch(t){case 0:if(1===e)i="unchecked-checked";else{if(3!=e)return"";i="unchecked-indeterminate"}break;case 2:i=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===e?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${i}`}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(ra),s.Y36(s.R0b),s.$8M("tabindex"),s.Y36(el,8),s.Y36(db,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){if(1&t&&(s.Gf(ub,5),s.Gf(ql,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._inputElement=t.first),s.iGM(t=s.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Ikx("id",e.id),s.uIk("tabindex",null),s.ekj("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[s._Bn([mb]),s.qOj],ngContentSelectors:hb,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",0,"xml","space","preserve",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(t,e){if(1&t&&(s.F$t(),s.TgZ(0,"label",0,1),s.TgZ(2,"span",2),s.TgZ(3,"input",3,4),s.NdJ("change",function(t){return e._onInteractionEvent(t)})("click",function(t){return e._onInputClick(t)}),s.qZA(),s.TgZ(5,"span",5),s._UZ(6,"span",6),s.qZA(),s._UZ(7,"span",7),s.TgZ(8,"span",8),s.O4$(),s.TgZ(9,"svg",9),s._UZ(10,"path",10),s.qZA(),s.kcU(),s._UZ(11,"span",11),s.qZA(),s.qZA(),s.TgZ(12,"span",12,13),s.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),s.TgZ(14,"span",14),s._uU(15,"\xa0"),s.qZA(),s.Hsn(16),s.qZA(),s.qZA()),2&t){const t=s.MAs(1),i=s.MAs(13);s.uIk("for",e.inputId),s.xp6(2),s.ekj("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),s.xp6(1),s.Q6J("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),s.uIk("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),s.xp6(2),s.Q6J("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",s.VKq(19,lb,"NoopAnimations"===e._animationMode?0:150))}},directives:[ql,Dr],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:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-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;-moz-user-select:auto;-ms-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:transparent;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:transparent}.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%}\n"],encapsulation:2,changeDetection:0}),t})(),Ab=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),vb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Ul,pl,zr,Ab],pl,Ab]}),t})(),kb=0;const Tb=new s.OlP("CdkAccordion");let Cb=(()=>{class t{constructor(){this._stateChanges=new At.xQ,this._openCloseAllActions=new At.xQ,this.id="cdk-accordion-"+kb++,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=ss(t)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[s._Bn([{provide:Tb,useExisting:t}]),s.TTD]}),t})(),Sb=0,Mb=(()=>{class t{constructor(t,e,i){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=i,this._openCloseAllSubscription=te.w.EMPTY,this.closed=new s.vpe,this.opened=new s.vpe,this.destroyed=new s.vpe,this.expandedChange=new s.vpe,this.id="cdk-accordion-child-"+Sb++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=i.listen((t,e)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===e&&this.id!==t&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(t){t=ss(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(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(t){this._disabled=ss(t)}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(t=>{this.disabled||(this.expanded=t)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Tb,12),s.Y36(s.sBO),s.Y36(Ao))},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[s._Bn([{provide:Tb,useValue:void 0}])]}),t})(),Eb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();const Lb=["body"];function xb(t,e){}const Rb=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Db=["mat-expansion-panel-header","*","mat-action-row"];function zb(t,e){if(1&t&&s._UZ(0,"span",2),2&t){const t=s.oxw();s.Q6J("@indicatorRotate",t._getExpandedState())}}const Pb=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Ib=["mat-panel-title","mat-panel-description","*"],Ob=new s.OlP("MAT_ACCORDION"),Hb="225ms cubic-bezier(0.4,0.0,0.2,1)",Yb={indicatorRotate:_a("indicatorRotate",[va("collapsed, void",Aa({transform:"rotate(0deg)"})),va("expanded",Aa({transform:"rotate(180deg)"})),Ta("expanded <=> collapsed, void => collapsed",wa(Hb))]),bodyExpansion:_a("bodyExpansion",[va("collapsed, void",Aa({height:"0px",visibility:"hidden"})),va("expanded",Aa({height:"*",visibility:"visible"})),Ta("expanded <=> collapsed, void => collapsed",wa(Hb))])};let Bb=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),jb=0;const Fb=new s.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Nb=(()=>{class t extends Mb{constructor(t,e,i,n,o,r,a){super(t,e,i),this._viewContainerRef=n,this._animationMode=r,this._hideToggle=!1,this.afterExpand=new s.vpe,this.afterCollapse=new s.vpe,this._inputChanges=new At.xQ,this._headerId="mat-expansion-panel-header-"+jb++,this._bodyAnimationDone=new At.xQ,this.accordion=t,this._document=o,this._bodyAnimationDone.pipe(Es((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{"void"!==t.fromState&&("expanded"===t.toState?this.afterExpand.emit():"collapsed"===t.toState&&this.afterCollapse.emit())}),a&&(this.hideToggle=a.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=ss(t)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}_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.opened.pipe(Ot(null),(0,wt.h)(()=>this.expanded&&!this._portal),(0,Pt.q)(1)).subscribe(()=>{this._portal=new xo(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Ob,12),s.Y36(s.sBO),s.Y36(Ao),s.Y36(s.s_b),s.Y36(n.K0),s.Y36(el,8),s.Y36(Fb,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,Bb,5),2&t){let t;s.iGM(t=s.CRH())&&(e._lazyContent=t.first)}},viewQuery:function(t,e){if(1&t&&s.Gf(Lb,5),2&t){let t;s.iGM(t=s.CRH())&&(e._body=t.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&s.ekj("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[s._Bn([{provide:Ob,useValue:void 0}]),s.qOj,s.TTD],ngContentSelectors:Db,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(s.F$t(Rb),s.Hsn(0),s.TgZ(1,"div",0,1),s.NdJ("@bodyExpansion.done",function(t){return e._bodyAnimationDone.next(t)}),s.TgZ(3,"div",2),s.Hsn(4,1),s.YNc(5,xb,0,0,"ng-template",3),s.qZA(),s.Hsn(6,2),s.qZA()),2&t&&(s.xp6(1),s.Q6J("@bodyExpansion",e._getExpandedState())("id",e.id),s.uIk("aria-labelledby",e._headerId),s.xp6(4),s.Q6J("cdkPortalOutlet",e._portal))},directives:[Io],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-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 button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[Yb.bodyExpansion]},changeDetection:0}),t})(),Kb=(()=>{class t{constructor(t,e,i,n,s,o){this.panel=t,this._element=e,this._focusMonitor=i,this._changeDetectorRef=n,this._animationMode=o,this._parentChangeSubscription=te.w.EMPTY;const r=t.accordion?t.accordion._stateChanges.pipe((0,wt.h)(t=>!(!t.hideToggle&&!t.togglePosition))):Lt.E;this._parentChangeSubscription=(0,Ho.T)(t.opened,t.closed,r,t._inputChanges.pipe((0,wt.h)(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe((0,wt.h)(()=>t._containsFocus())).subscribe(()=>i.focusVia(e,"program")),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.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 t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}_keydown(t){switch(t.keyCode){case No:case jo:Go(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t,e){t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(t=>{t&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Nb,1),s.Y36(s.SBq),s.Y36(ra),s.Y36(s.sBO),s.Y36(Fb,8),s.Y36(el,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e._toggle()})("keydown",function(t){return e._keydown(t)}),2&t&&(s.uIk("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),s.Udp("height",e._getHeaderHeight()),s.ekj("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:Ib,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(s.F$t(Pb),s.TgZ(0,"span",0),s.Hsn(1),s.Hsn(2,1),s.Hsn(3,2),s.qZA(),s.YNc(4,zb,1,1,"span",1)),2&t&&(s.xp6(4),s.Q6J("ngIf",e._showToggle()))},directives:[n.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}[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 .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[Yb.indicatorRotate]},changeDetection:0}),t})(),qb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),Ub=(()=>{class t extends Cb{constructor(){super(...arguments),this._ownHeaders=new s.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(t){this._hideToggle=ss(t)}ngAfterContentInit(){this._headers.changes.pipe(Ot(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Ur(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(t){this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["mat-accordion"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,Kb,5),2&t){let t;s.iGM(t=s.CRH())&&(e._headers=t)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[s._Bn([{provide:Ob,useExisting:t}]),s.qOj]}),t})(),Zb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,pl,Eb,Oo]]}),t})(),Gb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Ol,pl],Ol,pl]}),t})();function Vb(t,e){1&t&&s.Hsn(0)}const $b=["*"];let Wb=(()=>{class t{constructor(t){this._elementRef=t}focus(){this._elementRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),t})(),Jb=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkStepLabel",""]]}),t})(),Qb=0;const Xb="edit",tA="done",eA="error",iA=new s.OlP("STEPPER_GLOBAL_OPTIONS");let nA=(()=>{class t{constructor(t,e){this._stepper=t,this.interacted=!1,this.interactedStream=new s.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=e||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType,this._showError=!!this._stepperOptions.showError}get editable(){return this._editable}set editable(t){this._editable=ss(t)}get optional(){return this._optional}set optional(t){this._optional=ss(t)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(t){this._completedOverride=ss(t)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(t){this._customError=ss(t)}_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))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36((0,s.Gpc)(()=>sA)),s.Y36(iA,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["cdk-step"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,Jb,5),2&t){let t;s.iGM(t=s.CRH())&&(e.stepLabel=t.first)}},viewQuery:function(t,e){if(1&t&&s.Gf(s.Rgc,7),2&t){let t;s.iGM(t=s.CRH())&&(e.content=t.first)}},inputs:{editable:"editable",optional:"optional",completed:"completed",hasError:"hasError",stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[s.TTD],ngContentSelectors:$b,decls:1,vars:0,template:function(t,e){1&t&&(s.F$t(),s.YNc(0,Vb,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t})(),sA=(()=>{class t{constructor(t,e,i,n){this._dir=t,this._changeDetectorRef=e,this._elementRef=i,this._destroyed=new At.xQ,this.steps=new s.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new s.vpe,this._orientation="horizontal",this._groupId=Qb++,this._document=n}get linear(){return this._linear}set linear(t){this._linear=ss(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){var e;const i=os(t);this.steps&&this._steps?(this._isValidIndex(t),null===(e=this.selected)||void 0===e||e._markAsInteracted(),this._selectedIndex!==i&&!this._anyControlsInvalidOrPending(i)&&(i>=this._selectedIndex||this.steps.toArray()[i].editable)&&this._updateSelectedItemIndex(t)):this._selectedIndex=i}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(t){this.selectedIndex=t&&this.steps?this.steps.toArray().indexOf(t):-1}get orientation(){return this._orientation}set orientation(t){this._orientation=t,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===t)}ngAfterContentInit(){this._steps.changes.pipe(Ot(this._steps),js(this._destroyed)).subscribe(t=>{this.steps.reset(t.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._keyManager=new Ur(this._stepHeader).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,bt.of)()).pipe(Ot(this._layoutDirection()),js(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),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._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(t=>t.reset()),this._stateChanged()}_getStepLabelId(t){return`cdk-step-label-${this._groupId}-${t}`}_getStepContentId(t){return`cdk-step-content-${this._groupId}-${t}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(t){const e=t-this._selectedIndex;return e<0?"rtl"===this._layoutDirection()?"next":"previous":e>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(t,e="number"){const i=this.steps.toArray()[t],n=this._isCurrentStep(t);return i._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(i,n):this._getGuidelineLogic(i,n,e)}_getDefaultIndicatorLogic(t,e){return t._showError&&t.hasError&&!e?eA:!t.completed||e?"number":t.editable?Xb:tA}_getGuidelineLogic(t,e,i="number"){return t._showError&&t.hasError&&!e?eA:t.completed&&!e?tA:t.completed&&e?i:t.editable&&e?Xb:i}_isCurrentStep(t){return this._selectedIndex===t}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(t){const e=this.steps.toArray();this.selectionChange.emit({selectedIndex:t,previouslySelectedIndex:this._selectedIndex,selectedStep:e[t],previouslySelectedStep:e[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(t):this._keyManager.updateActiveItem(t),this._selectedIndex=t,this._stateChanged()}_onKeydown(t){const e=Go(t),i=t.keyCode,n=this._keyManager;null==n.activeItemIndex||e||i!==No&&i!==jo?n.onKeydown(t):(this.selectedIndex=n.activeItemIndex,t.preventDefault())}_anyControlsInvalidOrPending(t){return!!(this._linear&&t>=0)&&this.steps.toArray().slice(0,t).some(t=>{const e=t.stepControl;return(e?e.invalid||e.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}_isValidIndex(t){return t>-1&&(!this.steps||t{class t{constructor(t){this._stepper=t,this.type="submit"}_handleClick(){this._stepper.next()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(sA))},t.\u0275dir=s.lG2({type:t,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e._handleClick()}),2&t&&s.Ikx("type",e.type)},inputs:{type:"type"}}),t})(),rA=(()=>{class t{constructor(t){this._stepper=t,this.type="button"}_handleClick(){this._stepper.previous()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(sA))},t.\u0275dir=s.lG2({type:t,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e._handleClick()}),2&t&&s.Ikx("type",e.type)},inputs:{type:"type"}}),t})(),aA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[_o]]}),t})();function cA(t,e){if(1&t&&s.GkF(0,8),2&t){const t=s.oxw();s.Q6J("ngTemplateOutlet",t.iconOverrides[t.state])("ngTemplateOutletContext",t._getIconContext())}}function uA(t,e){if(1&t&&(s.TgZ(0,"span"),s._uU(1),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Oqu(t._getDefaultTextForState(t.state))}}function lA(t,e){if(1&t&&(s.TgZ(0,"mat-icon"),s._uU(1),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Oqu(t._getDefaultTextForState(t.state))}}function hA(t,e){if(1&t&&(s.ynx(0,9),s.YNc(1,uA,2,1,"span",10),s.YNc(2,lA,2,1,"mat-icon",11),s.BQk()),2&t){const t=s.oxw();s.Q6J("ngSwitch",t.state),s.xp6(1),s.Q6J("ngSwitchCase","number")}}function dA(t,e){if(1&t&&(s.TgZ(0,"div",12),s.GkF(1,13),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngTemplateOutlet",t._templateLabel().template)}}function pA(t,e){if(1&t&&(s.TgZ(0,"div",12),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Oqu(t.label)}}function fA(t,e){if(1&t&&(s.TgZ(0,"div",14),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Oqu(t._intl.optionalLabel)}}function gA(t,e){if(1&t&&(s.TgZ(0,"div",15),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Oqu(t.errorMessage)}}function mA(t,e){}function _A(t,e){if(1&t&&(s.Hsn(0),s.YNc(1,mA,0,0,"ng-template",0)),2&t){const t=s.oxw();s.xp6(1),s.Q6J("cdkPortalOutlet",t._portal)}}const wA=["*"];function yA(t,e){1&t&&s._UZ(0,"div",9)}const bA=function(t,e){return{step:t,i:e}};function AA(t,e){if(1&t&&(s.ynx(0),s.GkF(1,7),s.YNc(2,yA,1,0,"div",8),s.BQk()),2&t){const t=e.$implicit,i=e.index,n=e.last;s.oxw(2);const o=s.MAs(4);s.xp6(1),s.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",s.WLB(3,bA,t,i)),s.xp6(1),s.Q6J("ngIf",!n)}}function vA(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",10),s.NdJ("@horizontalStepTransition.done",function(e){return s.CHM(t),s.oxw(2)._animationDone.next(e)}),s.GkF(1,11),s.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=s.oxw(2);s.Q6J("@horizontalStepTransition",n._getAnimationDirection(i))("id",n._getStepContentId(i)),s.uIk("aria-labelledby",n._getStepLabelId(i))("aria-expanded",n.selectedIndex===i),s.xp6(1),s.Q6J("ngTemplateOutlet",t.content)}}function kA(t,e){if(1&t&&(s.ynx(0),s.TgZ(1,"div",3),s.YNc(2,AA,3,6,"ng-container",4),s.qZA(),s.TgZ(3,"div",5),s.YNc(4,vA,2,5,"div",6),s.qZA(),s.BQk()),2&t){const t=s.oxw();s.xp6(2),s.Q6J("ngForOf",t.steps),s.xp6(2),s.Q6J("ngForOf",t.steps)}}function TA(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",13),s.GkF(1,7),s.TgZ(2,"div",14),s.TgZ(3,"div",15),s.NdJ("@verticalStepTransition.done",function(e){return s.CHM(t),s.oxw(2)._animationDone.next(e)}),s.TgZ(4,"div",16),s.GkF(5,11),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=e.last,o=s.oxw(2),r=s.MAs(4);s.xp6(1),s.Q6J("ngTemplateOutlet",r)("ngTemplateOutletContext",s.WLB(9,bA,t,i)),s.xp6(1),s.ekj("mat-stepper-vertical-line",!n),s.xp6(1),s.Q6J("@verticalStepTransition",o._getAnimationDirection(i))("id",o._getStepContentId(i)),s.uIk("aria-labelledby",o._getStepLabelId(i))("aria-expanded",o.selectedIndex===i),s.xp6(2),s.Q6J("ngTemplateOutlet",t.content)}}function CA(t,e){if(1&t&&(s.ynx(0),s.YNc(1,TA,6,12,"div",12),s.BQk()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngForOf",t.steps)}}function SA(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-step-header",17),s.NdJ("click",function(){return e.step.select()})("keydown",function(e){return s.CHM(t),s.oxw()._onKeydown(e)}),s.qZA()}if(2&t){const t=e.step,i=e.i,n=s.oxw();s.ekj("mat-horizontal-stepper-header","horizontal"===n.orientation)("mat-vertical-stepper-header","vertical"===n.orientation),s.Q6J("tabIndex",n._getFocusIndex()===i?0:-1)("id",n._getStepLabelId(i))("index",i)("state",n._getIndicatorType(i,t.state))("label",t.stepLabel||t.label)("selected",n.selectedIndex===i)("active",t.completed||n.selectedIndex===i||!n.linear)("optional",t.optional)("errorMessage",t.errorMessage)("iconOverrides",n._iconOverrides)("disableRipple",n.disableRipple)("color",t.color||n.color),s.uIk("aria-posinset",i+1)("aria-setsize",n.steps.length)("aria-controls",n._getStepContentId(i))("aria-selected",n.selectedIndex==i)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null)}}let MA=(()=>{class t extends Jb{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matStepLabel",""]],features:[s.qOj]}),t})(),EA=(()=>{class t{constructor(){this.changes=new At.xQ,this.optionalLabel="Optional"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const LA={provide:EA,deps:[[new s.FiY,new s.tp0,EA]],useFactory:function(t){return t||new EA}};class xA extends Wb{constructor(t){super(t)}}const RA=gl(xA,"primary");let DA=(()=>{class t extends RA{constructor(t,e,i,n){super(i),this._intl=t,this._focusMonitor=e,this._intlSubscription=t.changes.subscribe(()=>n.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,e){t?this._focusMonitor.focusVia(this._elementRef,t,e):this._elementRef.nativeElement.focus(e)}_stringLabel(){return this.label instanceof MA?null:this.label}_templateLabel(){return this.label instanceof MA?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(t){return"number"==t?`${this.index+1}`:"edit"==t?"create":"error"==t?"warning":t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(EA),s.Y36(ra),s.Y36(s.SBq),s.Y36(s.sBO))},t.\u0275cmp=s.Xpm({type:t,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:[s.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"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(t,e){1&t&&(s._UZ(0,"div",0),s.TgZ(1,"div"),s.TgZ(2,"div",1),s.YNc(3,cA,1,2,"ng-container",2),s.YNc(4,hA,3,2,"ng-container",3),s.qZA(),s.qZA(),s.TgZ(5,"div",4),s.YNc(6,dA,2,1,"div",5),s.YNc(7,pA,2,1,"div",5),s.YNc(8,fA,2,1,"div",6),s.YNc(9,gA,2,1,"div",7),s.qZA()),2&t&&(s.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disableRipple),s.xp6(1),s.Gre("mat-step-icon-state-",e.state," mat-step-icon"),s.ekj("mat-step-icon-selected",e.selected),s.xp6(1),s.Q6J("ngSwitch",!(!e.iconOverrides||!e.iconOverrides[e.state])),s.xp6(1),s.Q6J("ngSwitchCase",!0),s.xp6(2),s.ekj("mat-step-label-active",e.active)("mat-step-label-selected",e.selected)("mat-step-label-error","error"==e.state),s.xp6(1),s.Q6J("ngIf",e._templateLabel()),s.xp6(1),s.Q6J("ngIf",e._stringLabel()),s.xp6(1),s.Q6J("ngIf",e.optional&&"error"!=e.state),s.xp6(1),s.Q6J("ngIf","error"==e.state))},directives:[ql,n.RF,n.n9,n.ED,n.O5,n.tP,Vg],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.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,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.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}\n"],encapsulation:2,changeDetection:0}),t})();const zA={horizontalStepTransition:_a("horizontalStepTransition",[va("previous",Aa({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),va("current",Aa({transform:"none",visibility:"inherit"})),va("next",Aa({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),Ta("* => *",wa("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:_a("verticalStepTransition",[va("previous",Aa({height:"0px",visibility:"hidden"})),va("next",Aa({height:"0px",visibility:"hidden"})),va("current",Aa({height:"*",visibility:"inherit"})),Ta("* <=> current",wa("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let PA=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),t})(),IA=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["ng-template","matStepContent",""]]}),t})(),OA=(()=>{class t extends nA{constructor(t,e,i,n){super(t,n),this._errorStateMatcher=e,this._viewContainerRef=i,this._isSelected=te.w.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,zt.w)(()=>this._stepper.selectionChange.pipe((0,Dt.U)(t=>t.selectedStep===this),Ot(this._stepper.selected===this)))).subscribe(t=>{t&&this._lazyContent&&!this._portal&&(this._portal=new xo(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(t,e){return this._errorStateMatcher.isErrorState(t,e)||!!(t&&t.invalid&&this.interacted)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36((0,s.Gpc)(()=>jA)),s.Y36(zl,4),s.Y36(s.s_b),s.Y36(iA,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-step"]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,MA,5),s.Suo(i,IA,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.stepLabel=t.first),s.iGM(t=s.CRH())&&(e._lazyContent=t.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[s._Bn([{provide:zl,useExisting:t},{provide:nA,useExisting:t}]),s.qOj],ngContentSelectors:wA,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(s.F$t(),s.YNc(0,_A,2,1,"ng-template"))},directives:[Io],encapsulation:2,changeDetection:0}),t})(),HA=(()=>{class t extends sA{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,features:[s.qOj]}),t})(),YA=(()=>{class t extends HA{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["mat-horizontal-stepper"]],features:[s.qOj]}),t})(),BA=(()=>{class t extends HA{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["mat-vertical-stepper"]],features:[s.qOj]}),t})(),jA=(()=>{class t extends sA{constructor(t,e,i,n){super(t,e,i,n),this.steps=new s.n_E,this.animationDone=new s.vpe,this.labelPosition="end",this._iconOverrides={},this._animationDone=new At.xQ;const o=i.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===o?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:t,templateRef:e})=>this._iconOverrides[t]=e),this.steps.changes.pipe(js(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(Es((t,e)=>t.fromState===e.fromState&&t.toState===e.toState),js(this._destroyed)).subscribe(t=>{"current"===t.toState&&this.animationDone.emit()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(mo,8),s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(n.K0))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,OA,5),s.Suo(i,PA,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._steps=t),s.iGM(t=s.CRH())&&(e._icons=t)}},viewQuery:function(t,e){if(1&t&&s.Gf(DA,5),2&t){let t;s.iGM(t=s.CRH())&&(e._stepHeader=t)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(t,e){2&t&&(s.uIk("aria-orientation",e.orientation),s.ekj("mat-stepper-horizontal","horizontal"===e.orientation)("mat-stepper-vertical","vertical"===e.orientation)("mat-stepper-label-position-end","horizontal"===e.orientation&&"end"==e.labelPosition)("mat-stepper-label-position-bottom","horizontal"===e.orientation&&"bottom"==e.labelPosition))},inputs:{selectedIndex:"selectedIndex",labelPosition:"labelPosition",disableRipple:"disableRipple",color:"color"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[s._Bn([{provide:sA,useExisting:t},{provide:YA,useExisting:t},{provide:BA,useExisting:t}]),s.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[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(t,e){1&t&&(s.ynx(0,0),s.YNc(1,kA,5,2,"ng-container",1),s.YNc(2,CA,2,1,"ng-container",1),s.BQk(),s.YNc(3,SA,1,22,"ng-template",null,2,s.W1O)),2&t&&(s.Q6J("ngSwitch",e.orientation),s.xp6(1),s.Q6J("ngSwitchCase","horizontal"),s.xp6(1),s.Q6J("ngSwitchCase","vertical"))},directives:[n.RF,n.n9,n.sg,n.tP,n.O5,DA],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-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-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}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[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}\n'],encapsulation:2,data:{animation:[zA.horizontalStepTransition,zA.verticalStepTransition]},changeDetection:0}),t})(),FA=(()=>{class t extends oA{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(t,e){2&t&&s.Ikx("type",e.type)},inputs:{type:"type"},features:[s.qOj]}),t})(),NA=(()=>{class t extends rA{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(t,e){2&t&&s.Ikx("type",e.type)},inputs:{type:"type"},features:[s.qOj]}),t})(),KA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[LA,zl],imports:[[pl,n.ez,Oo,nd,aA,$g,Ul],pl]}),t})();const qA=["mat-calendar-body",""];function UA(t,e){if(1&t&&(s.TgZ(0,"tr",2),s.TgZ(1,"td",3),s._uU(2),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Udp("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),s.uIk("colspan",t.numCols),s.xp6(1),s.hij(" ",t.label," ")}}function ZA(t,e){if(1&t&&(s.TgZ(0,"td",7),s._uU(1),s.qZA()),2&t){const t=s.oxw(2);s.Udp("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),s.uIk("colspan",t._firstRowOffset),s.xp6(1),s.hij(" ",t._firstRowOffset>=t.labelMinRequiredCells?t.label:""," ")}}function GA(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",8),s.NdJ("click",function(e){const i=s.CHM(t).$implicit;return s.oxw(2)._cellClicked(i,e)}),s.TgZ(1,"div",9),s._uU(2),s.qZA(),s._UZ(3,"div",10),s.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=s.oxw().index,o=s.oxw();s.Udp("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),s.ekj("mat-calendar-body-disabled",!t.enabled)("mat-calendar-body-active",o._isActiveCell(n,i))("mat-calendar-body-range-start",o._isRangeStart(t.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(t.compareValue))("mat-calendar-body-in-range",o._isInRange(t.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(t.compareValue,n,i))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(t.compareValue,n,i))("mat-calendar-body-comparison-start",o._isComparisonStart(t.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(t.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(t.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(t.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(t.compareValue))("mat-calendar-body-in-preview",o._isInPreview(t.compareValue)),s.Q6J("ngClass",t.cssClasses)("tabindex",o._isActiveCell(n,i)?0:-1),s.uIk("data-mat-row",n)("data-mat-col",i)("aria-label",t.ariaLabel)("aria-disabled",!t.enabled||null)("aria-selected",o._isSelected(t.compareValue)),s.xp6(1),s.ekj("mat-calendar-body-selected",o._isSelected(t.compareValue))("mat-calendar-body-comparison-identical",o._isComparisonIdentical(t.compareValue))("mat-calendar-body-today",o.todayValue===t.compareValue),s.xp6(1),s.hij(" ",t.displayValue," ")}}function VA(t,e){if(1&t&&(s.TgZ(0,"tr",4),s.YNc(1,ZA,2,6,"td",5),s.YNc(2,GA,4,46,"td",6),s.qZA()),2&t){const t=e.$implicit,i=e.index,n=s.oxw();s.xp6(1),s.Q6J("ngIf",0===i&&n._firstRowOffset),s.xp6(1),s.Q6J("ngForOf",t)}}function $A(t,e){if(1&t&&(s.TgZ(0,"th",5),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.uIk("aria-label",t.long),s.xp6(1),s.Oqu(t.narrow)}}const WA=["*"];function JA(t,e){}function QA(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-month-view",5),s.NdJ("activeDateChange",function(e){return s.CHM(t),s.oxw().activeDate=e})("_userSelection",function(e){return s.CHM(t),s.oxw()._dateSelected(e)}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)}}function XA(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-year-view",6),s.NdJ("activeDateChange",function(e){return s.CHM(t),s.oxw().activeDate=e})("monthSelected",function(e){return s.CHM(t),s.oxw()._monthSelectedInYearView(e)})("selectedChange",function(e){return s.CHM(t),s.oxw()._goToDateInView(e,"month")}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function tv(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-multi-year-view",7),s.NdJ("activeDateChange",function(e){return s.CHM(t),s.oxw().activeDate=e})("yearSelected",function(e){return s.CHM(t),s.oxw()._yearSelectedInMultiYearView(e)})("selectedChange",function(e){return s.CHM(t),s.oxw()._goToDateInView(e,"year")}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function ev(t,e){}const iv=["button"];function nv(t,e){1&t&&(s.O4$(),s.TgZ(0,"svg",3),s._UZ(1,"path",4),s.qZA())}const sv=[[["","matDatepickerToggleIcon",""]]],ov=["[matDatepickerToggleIcon]"];let rv=(()=>{class t{constructor(){this.changes=new At.xQ,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"}formatYearRange(t,e){return`${t} \u2013 ${e}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();class av{constructor(t,e,i,n,s={},o=t,r){this.value=t,this.displayValue=e,this.ariaLabel=i,this.enabled=n,this.cssClasses=s,this.compareValue=o,this.rawValue=r}}let cv=(()=>{class t{constructor(t,e){this._elementRef=t,this._ngZone=e,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new s.vpe,this.previewChange=new s.vpe,this._enterHandler=t=>{if(this._skipNextFocus&&"focus"===t.type)this._skipNextFocus=!1;else if(t.target&&this.isRange){const e=this._getCellFromElement(t.target);e&&this._ngZone.run(()=>this.previewChange.emit({value:e.enabled?e:null,event:t}))}},this._leaveHandler=t=>{null!==this.previewEnd&&this.isRange&&t.target&&uv(t.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:t}))},e.runOutsideAngular(()=>{const e=t.nativeElement;e.addEventListener("mouseenter",this._enterHandler,!0),e.addEventListener("focus",this._enterHandler,!0),e.addEventListener("mouseleave",this._leaveHandler,!0),e.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(t,e){t.enabled&&this.selectedValueChange.emit({value:t.value,event:e})}_isSelected(t){return this.startValue===t||this.endValue===t}ngOnChanges(t){const e=t.numCols,{rows:i,numCols:n}=this;(t.rows||e)&&(this._firstRowOffset=i&&i.length&&i[0].length?n-i[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/n+"%"),!e&&this._cellWidth||(this._cellWidth=100/n+"%")}ngOnDestroy(){const t=this._elementRef.nativeElement;t.removeEventListener("mouseenter",this._enterHandler,!0),t.removeEventListener("focus",this._enterHandler,!0),t.removeEventListener("mouseleave",this._leaveHandler,!0),t.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(t,e){let i=t*this.numCols+e;return t&&(i-=this._firstRowOffset),i==this.activeCell}_focusActiveCell(t=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,Pt.q)(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");e&&(t||(this._skipNextFocus=!0),e.focus())})})}_isRangeStart(t){return lv(t,this.startValue,this.endValue)}_isRangeEnd(t){return hv(t,this.startValue,this.endValue)}_isInRange(t){return dv(t,this.startValue,this.endValue,this.isRange)}_isComparisonStart(t){return lv(t,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(t,e,i){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;let n=this.rows[e][i-1];if(!n){const t=this.rows[e-1];n=t&&t[t.length-1]}return n&&!this._isRangeEnd(n.compareValue)}_isComparisonBridgeEnd(t,e,i){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;let n=this.rows[e][i+1];if(!n){const t=this.rows[e+1];n=t&&t[0]}return n&&!this._isRangeStart(n.compareValue)}_isComparisonEnd(t){return hv(t,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(t){return dv(t,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}_isPreviewStart(t){return lv(t,this.previewStart,this.previewEnd)}_isPreviewEnd(t){return hv(t,this.previewStart,this.previewEnd)}_isInPreview(t){return dv(t,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(t){let e;if(uv(t)?e=t:uv(t.parentNode)&&(e=t.parentNode),e){const t=e.getAttribute("data-mat-row"),i=e.getAttribute("data-mat-col");if(t&&i)return this.rows[parseInt(t)][parseInt(i)]}return null}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b))},t.\u0275cmp=s.Xpm({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[s.TTD],attrs:qA,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"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(t,e){1&t&&(s.YNc(0,UA,3,6,"tr",0),s.YNc(1,VA,3,2,"tr",1)),2&t&&(s.Q6J("ngIf",e._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),t})();function uv(t){return"TD"===t.nodeName}function lv(t,e,i){return null!==i&&e!==i&&t=e&&t===i}function dv(t,e,i,n){return n&&null!==e&&null!==i&&e!==i&&t>=e&&t<=i}class pv{constructor(t,e){this.start=t,this.end=e}}let fv=(()=>{class t{constructor(t,e){this.selection=t,this._adapter=e,this._selectionChanged=new At.xQ,this.selectionChanged=this._selectionChanged,this.selection=t}updateSelection(t,e){const i=this.selection;this.selection=t,this._selectionChanged.next({selection:t,source:e,oldValue:i})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(void 0),s.LFG(Al))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),gv=(()=>{class t extends fv{constructor(t){super(null,t)}add(t){super.updateSelection(t,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new t(this._adapter);return e.updateSelection(this.selection,this),e}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Al))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const mv={provide:fv,deps:[[new s.FiY,new s.tp0,fv],Al],useFactory:function(t,e){return t||new gv(e)}},_v=new s.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let wv=(()=>{class t{constructor(t,e,i,n,o){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rangeStrategy=o,this._rerenderSubscription=te.w.EMPTY,this.selectedChange=new s.vpe,this._userSelection=new s.vpe,this.activeDateChange=new s.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){const e=this._activeDate,i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof pv?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ot(null)).subscribe(()=>this._init())}ngOnChanges(t){const e=t.comparisonStart||t.comparisonEnd;e&&!e.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(t){const e=t.value,i=this._dateAdapter.getYear(this.activeDate),n=this._dateAdapter.getMonth(this.activeDate),s=this._dateAdapter.createDate(i,n,e);let o,r;this._selected instanceof pv?(o=this._getDateInCurrentMonth(this._selected.start),r=this._getDateInCurrentMonth(this._selected.end)):o=r=this._getDateInCurrentMonth(this._selected),o===e&&r===e||this.selectedChange.emit(s),this._userSelection.emit({value:s,event:t.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case Ko:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?1:-1);break;case Uo:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?-1:1);break;case qo:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case Zo: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=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case jo:case No:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),t.preventDefault()));case Fo:return void(null==this._previewEnd||Go(t)||(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t}),t.preventDefault(),t.stopPropagation()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_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 t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(t){this._matCalendarBody._focusActiveCell(t)}_previewChanged({event:t,value:e}){if(this._rangeStrategy){const i=this._rangeStrategy.createPreview(e?e.rawValue:null,this.selected,t);this._previewStart=this._getCellCompareValue(i.start),this._previewEnd=this._getCellCompareValue(i.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow");let i=this._dateAdapter.getDayOfWeekNames("long").map((t,i)=>({long:t,narrow:e[i]}));this._weekdays=i.slice(t).concat(i.slice(0,t))}_createWeekCells(){const t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(let i=0,n=this._firstWeekOffset;i=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}_getDateInCurrentMonth(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}_hasSameMonthAndYear(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}_getCellCompareValue(t){if(t){const e=this._dateAdapter.getYear(t),i=this._dateAdapter.getMonth(t),n=this._dateAdapter.getDate(t);return new Date(e,i,n).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(t){t instanceof pv?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36(vl,8),s.Y36(Al,8),s.Y36(mo,8),s.Y36(_v,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){if(1&t&&s.Gf(cv,5),2&t){let t;s.iGM(t=s.CRH())&&(e._matCalendarBody=t.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:[s.TTD],decls:7,vars:13,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"]],template:function(t,e){1&t&&(s.TgZ(0,"table",0),s.TgZ(1,"thead",1),s.TgZ(2,"tr"),s.YNc(3,$A,2,2,"th",2),s.qZA(),s.TgZ(4,"tr"),s._UZ(5,"th",3),s.qZA(),s.qZA(),s.TgZ(6,"tbody",4),s.NdJ("selectedValueChange",function(t){return e._dateSelected(t)})("previewChange",function(t){return e._previewChanged(t)})("keydown",function(t){return e._handleCalendarBodyKeydown(t)}),s.qZA(),s.qZA()),2&t&&(s.xp6(3),s.Q6J("ngForOf",e._weekdays),s.xp6(3),s.Q6J("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("startValue",e._rangeStart)("endValue",e._rangeEnd)("comparisonStart",e._comparisonRangeStart)("comparisonEnd",e._comparisonRangeEnd)("previewStart",e._previewStart)("previewEnd",e._previewEnd)("isRange",e._isRange)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[n.sg,cv],encapsulation:2,changeDetection:0}),t})();const yv=24;let bv=(()=>{class t{constructor(t,e,i){this._changeDetectorRef=t,this._dateAdapter=e,this._dir=i,this._rerenderSubscription=te.w.EMPTY,this.selectedChange=new s.vpe,this.yearSelected=new s.vpe,this.activeDateChange=new s.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),Av(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof pv?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ot(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-vv(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let e=0,i=[];ethis._createCellForYear(t))),i=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){const e=t.value;this.yearSelected.emit(this._dateAdapter.createDate(e,0,1));let i=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));this.selectedChange.emit(this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case Ko:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?1:-1);break;case Uo:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?-1:1);break;case qo:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case Zo:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-vv(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,yv-vv(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:yv);break;case jo:case No:this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_getActiveCell(){return vv(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(t){const e=this._dateAdapter.createDate(t,0,1),i=this._dateAdapter.getYearName(e),n=this.dateClass?this.dateClass(e,"multi-year"):void 0;return new av(t,i,i,this._shouldEnableYear(t),n)}_shouldEnableYear(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t{class t{constructor(t,e,i,n){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rerenderSubscription=te.w.EMPTY,this.selectedChange=new s.vpe,this.monthSelected=new s.vpe,this.activeDateChange=new s.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._dateAdapter.getYear(e)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof pv?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedMonth(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ot(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(t){const e=t.value,i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1);this.monthSelected.emit(i);const n=this._dateAdapter.getNumDaysInMonth(i);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case Ko:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?1:-1);break;case Uo:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?-1:1);break;case qo:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case Zo: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,t.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case jo:case No:this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(e=>e.map(e=>this._createCellForMonth(e,t[e]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_createCellForMonth(t,e){const i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),n=this._dateAdapter.format(i,this._dateFormats.display.monthYearA11yLabel),s=this.dateClass?this.dateClass(i,"year"):void 0;return new av(t,e.toLocaleUpperCase(),n,this._shouldEnableMonth(t),s)}_shouldEnableMonth(t){const e=this._dateAdapter.getYear(this.activeDate);if(null==t||this._isYearAndMonthAfterMaxDate(e,t)||this._isYearAndMonthBeforeMinDate(e,t))return!1;if(!this.dateFilter)return!0;for(let i=this._dateAdapter.createDate(e,t,1);this._dateAdapter.getMonth(i)==t;i=this._dateAdapter.addCalendarDays(i,1))if(this.dateFilter(i))return!0;return!1}_isYearAndMonthAfterMaxDate(t,e){if(this.maxDate){const i=this._dateAdapter.getYear(this.maxDate),n=this._dateAdapter.getMonth(this.maxDate);return t>i||t===i&&e>n}return!1}_isYearAndMonthBeforeMinDate(t,e){if(this.minDate){const i=this._dateAdapter.getYear(this.minDate),n=this._dateAdapter.getMonth(this.minDate);return t{class t{constructor(t,e,i,n,s){this._intl=t,this.calendar=e,this._dateAdapter=i,this._dateFormats=n,this._buttonDescriptionId="mat-calendar-button-"+Cv++,this.calendar.stateChanges.subscribe(()=>s.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)-vv(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),e=t+yv-1,i=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),n=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1));return this._intl.formatYearRange(i,n)}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:yv)}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(t,e){return"month"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(e):"year"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e):Av(this._dateAdapter,t,e,this.calendar.minDate,this.calendar.maxDate)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(rv),s.Y36((0,s.Gpc)(()=>Mv)),s.Y36(Al,8),s.Y36(vl,8),s.Y36(s.sBO))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:WA,decls:10,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],[1,"mat-calendar-arrow"],[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(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"button",2),s.NdJ("click",function(){return e.currentPeriodClicked()}),s.TgZ(3,"span"),s._uU(4),s.qZA(),s._UZ(5,"div",3),s.qZA(),s._UZ(6,"div",4),s.Hsn(7),s.TgZ(8,"button",5),s.NdJ("click",function(){return e.previousClicked()}),s.qZA(),s.TgZ(9,"button",6),s.NdJ("click",function(){return e.nextClicked()}),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.uIk("aria-label",e.periodButtonLabel)("aria-describedby",e._buttonDescriptionId),s.xp6(1),s.uIk("id",e._buttonDescriptionId),s.xp6(1),s.Oqu(e.periodButtonText),s.xp6(1),s.ekj("mat-calendar-invert","month"!==e.calendar.currentView),s.xp6(3),s.Q6J("disabled",!e.previousEnabled()),s.uIk("aria-label",e.prevButtonLabel),s.xp6(1),s.Q6J("disabled",!e.nextEnabled()),s.uIk("aria-label",e.nextButtonLabel))},directives:[id,ea],encapsulation:2,changeDetection:0}),t})(),Mv=(()=>{class t{constructor(t,e,i,n){this._dateAdapter=e,this._dateFormats=i,this._changeDetectorRef=n,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new s.vpe,this.yearSelected=new s.vpe,this.monthSelected=new s.vpe,this.viewChanged=new s.vpe(!0),this._userSelection=new s.vpe,this.stateChanges=new At.xQ,this._intlChanges=t.changes.subscribe(()=>{n.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){this._selected=t instanceof pv?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(t){const e=this._currentView!==t?t:null;this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),e&&this.viewChanged.emit(e)}ngAfterContentInit(){this._calendarHeaderPortal=new Lo(this.headerComponent||Sv),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(t){const e=t.minDate||t.maxDate||t.dateFilter;if(e&&!e.firstChange){const t=this._getCurrentViewComponent();t&&(this._changeDetectorRef.detectChanges(),t._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){const t=this.currentView;let e;e="month"===t?this.monthView:"year"===t?this.yearView:this.multiYearView,e._init()}_dateSelected(t){const e=t.value;(this.selected instanceof pv||e&&!this._dateAdapter.sameDate(e,this.selected))&&this.selectedChange.emit(e),this._userSelection.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_goToDateInView(t,e){this.activeDate=t,this.currentView=e}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(rv),s.Y36(Al,8),s.Y36(vl,8),s.Y36(s.sBO))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-calendar"]],viewQuery:function(t,e){if(1&t&&(s.Gf(wv,5),s.Gf(Tv,5),s.Gf(bv,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.monthView=t.first),s.iGM(t=s.CRH())&&(e.yearView=t.first),s.iGM(t=s.CRH())&&(e.multiYearView=t.first)}},hostAttrs:[1,"mat-calendar"],inputs:{startView:"startView",startAt:"startAt",selected:"selected",minDate:"minDate",maxDate:"maxDate",headerComponent:"headerComponent",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[s._Bn([mv]),s.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(t,e){1&t&&(s.YNc(0,JA,0,0,"ng-template",0),s.TgZ(1,"div",1),s.YNc(2,QA,1,8,"mat-month-view",2),s.YNc(3,XA,1,6,"mat-year-view",3),s.YNc(4,tv,1,6,"mat-multi-year-view",4),s.qZA()),2&t&&(s.Q6J("cdkPortalOutlet",e._calendarHeaderPortal),s.xp6(1),s.Q6J("ngSwitch",e.currentView),s.xp6(1),s.Q6J("ngSwitchCase","month"),s.xp6(1),s.Q6J("ngSwitchCase","year"),s.xp6(1),s.Q6J("ngSwitchCase","multi-year"))},directives:[Io,ca,n.RF,n.n9,wv,Tv,bv],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(33% / 7 - 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:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;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}.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}\n'],encapsulation:2,changeDetection:0}),t})();const Ev={transformPanel:_a("transformPanel",[Ta("void => enter-dropdown",wa("120ms cubic-bezier(0, 0, 0.2, 1)",ka([Aa({opacity:0,transform:"scale(1, 0.8)"}),Aa({opacity:1,transform:"scale(1, 1)"})]))),Ta("void => enter-dialog",wa("150ms cubic-bezier(0, 0, 0.2, 1)",ka([Aa({opacity:0,transform:"scale(0.7)"}),Aa({transform:"none",opacity:1})]))),Ta("* => void",wa("100ms linear",Aa({opacity:0})))]),fadeInCalendar:_a("fadeInCalendar",[va("void",Aa({opacity:0})),va("enter",Aa({opacity:1})),Ta("void => *",wa("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Lv=0;const xv=new s.OlP("mat-datepicker-scroll-strategy"),Rv={provide:xv,deps:[vr],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class Dv{constructor(t){this._elementRef=t}}const zv=gl(Dv);let Pv=(()=>{class t extends zv{constructor(t,e,i,n,s,o){super(t),this._changeDetectorRef=e,this._globalModel=i,this._dateAdapter=n,this._rangeSelectionStrategy=s,this._subscriptions=new te.w,this._animationDone=new At.xQ,this._actionsPortal=null,this._closeButtonText=o.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,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(t){const e=this._model.selection,i=t.value,n=e instanceof pv;if(n&&this._rangeSelectionStrategy){const n=this._rangeSelectionStrategy.selectionFinished(i,e,t.event);this._model.updateSelection(n,this)}else!i||!n&&this._dateAdapter.sameDate(i,e)||this._model.add(i);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)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(fv),s.Y36(Al),s.Y36(_v,8),s.Y36(rv))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){if(1&t&&s.Gf(Mv,5),2&t){let t;s.iGM(t=s.CRH())&&(e._calendar=t.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&s.WFA("@transformPanel.done",function(){return e._animationDone.next()}),2&t&&(s.d8E("@transformPanel",e._animationState),s.ekj("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[s.qOj],decls:5,vars:20,consts:[["cdkTrapFocus","",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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"mat-calendar",1),s.NdJ("yearSelected",function(t){return e.datepicker._selectYear(t)})("monthSelected",function(t){return e.datepicker._selectMonth(t)})("viewChanged",function(t){return e.datepicker._viewChanged(t)})("_userSelection",function(t){return e._handleUserSelection(t)}),s.qZA(),s.YNc(2,ev,0,0,"ng-template",2),s.TgZ(3,"button",3),s.NdJ("focus",function(){return e._closeButtonFocused=!0})("blur",function(){return e._closeButtonFocused=!1})("click",function(){return e.datepicker.close()}),s._uU(4),s.qZA(),s.qZA()),2&t&&(s.ekj("mat-datepicker-content-container-with-actions",e._actionsPortal),s.xp6(1),s.Q6J("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._getMinDate())("maxDate",e.datepicker._getMaxDate())("dateFilter",e.datepicker._getDateFilter())("headerComponent",e.datepicker.calendarHeaderComponent)("selected",e._getSelected())("dateClass",e.datepicker.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("@fadeInCalendar","enter"),s.xp6(1),s.Q6J("cdkPortalOutlet",e._actionsPortal),s.xp6(1),s.ekj("cdk-visually-hidden",!e._closeButtonFocused),s.Q6J("color",e.color||"primary"),s.xp6(1),s.Oqu(e._closeButtonText))},directives:[Jr,Mv,n.mk,Io,id],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.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}}\n"],encapsulation:2,data:{animation:[Ev.transformPanel,Ev.fadeInCalendar]},changeDetection:0}),t})(),Iv=(()=>{class t{constructor(t,e,i,n,o,r,a,c,u){this._overlay=e,this._ngZone=i,this._viewContainerRef=n,this._dateAdapter=r,this._dir=a,this._model=u,this._inputStateChanges=te.w.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new s.vpe,this.monthSelected=new s.vpe,this.viewChanged=new s.vpe(!0),this.openedStream=new s.vpe,this.closedStream=new s.vpe,this._opened=!1,this.id="mat-datepicker-"+Lv++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new At.xQ,this._scrollStrategy=o}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(t){this._color=t}get touchUi(){return this._touchUi}set touchUi(t){this._touchUi=ss(t)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(t){const e=ss(t);e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(t){this._restoreFocus=ss(t)}get panelClass(){return this._panelClass}set panelClass(t){this._panelClass=function(t,e=/\s+/){const i=[];if(null!=t){const n=Array.isArray(t)?t:`${t}`.split(e);for(const t of n){const e=`${t}`.trim();e&&i.push(e)}}return i}(t)}get opened(){return this._opened}set opened(t){ss(t)?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(t){const e=t.xPosition||t.yPosition;if(e&&!e.firstChange&&this._overlayRef){const t=this._overlayRef.getConfig().positionStrategy;t instanceof pr&&(this._setConnectedPositions(t),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(t){this._model.add(t)}_selectYear(t){this.yearSelected.emit(t)}_selectMonth(t){this.monthSelected.emit(t)}_viewChanged(t){this.viewChanged.emit(t)}registerInput(t){return this._inputStateChanges.unsubscribe(),this.datepickerInput=t,this._inputStateChanges=t.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(t){this._actionsPortal=t}removeActions(t){t===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=fo(),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,Pt.q)(1)).subscribe(()=>this._destroyOverlay())}const t=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(t)):t()}_applyPendingSelection(){var t,e;null===(e=null===(t=this._componentRef)||void 0===t?void 0:t.instance)||void 0===e||e._applyPendingSelection()}_forwardContentValues(t){t.datepicker=this,t.color=this.color,t._actionsPortal=this._actionsPortal}_openOverlay(){this._destroyOverlay();const t=this.touchUi,e=this.datepickerInput.getOverlayLabelId(),i=new Lo(Pv,this._viewContainerRef),n=this._overlayRef=this._overlay.create(new ir({positionStrategy:t?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[t?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:t?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(t?"dialog":"popup")})),s=n.overlayElement;s.setAttribute("role","dialog"),e&&s.setAttribute("aria-labelledby",e),t&&s.setAttribute("aria-modal","true"),this._getCloseStream(n).subscribe(t=>{t&&t.preventDefault(),this.close()}),this._componentRef=n.attach(i),this._forwardContentValues(this._componentRef.instance),t||this._ngZone.onStable.pipe((0,Pt.q)(1)).subscribe(()=>n.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(t)}_setConnectedPositions(t){const e="end"===this.xPosition?"end":"start",i="start"===e?"end":"start",n="above"===this.yPosition?"bottom":"top",s="top"===n?"bottom":"top";return t.withPositions([{originX:e,originY:s,overlayX:e,overlayY:n},{originX:e,originY:n,overlayX:e,overlayY:s},{originX:i,originY:s,overlayX:i,overlayY:n},{originX:i,originY:n,overlayX:i,overlayY:s}])}_getCloseStream(t){return(0,Ho.T)(t.backdropClick(),t.detachments(),t.keydownEvents().pipe((0,wt.h)(t=>t.keyCode===Fo&&!Go(t)||this.datepickerInput&&Go(t,"altKey")&&t.keyCode===qo)))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(vr),s.Y36(s.R0b),s.Y36(s.s_b),s.Y36(xv),s.Y36(Al,8),s.Y36(mo,8),s.Y36(n.K0,8),s.Y36(fv))},t.\u0275dir=s.lG2({type:t,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",restoreFocus:"restoreFocus",panelClass:"panelClass",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[s.TTD]}),t})(),Ov=(()=>{class t extends Iv{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[s._Bn([mv,{provide:Iv,useExisting:t}]),s.qOj],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t})();class Hv{constructor(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}let Yv=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._dateAdapter=e,this._dateFormats=i,this.dateChange=new s.vpe,this.dateInput=new s.vpe,this.stateChanges=new At.xQ,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=te.w.EMPTY,this._localeSubscription=te.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value));return!e||this._matchesFilter(e)?null:{matDatepickerFilter:!0}},this._minValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),i=this._getMinDate();return!i||!e||this._dateAdapter.compareDate(i,e)<=0?null:{matDatepickerMin:{min:i,actual:e}}},this._maxValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),i=this._getMaxDate();return!i||!e||this._dateAdapter.compareDate(i,e)>=0?null:{matDatepickerMax:{max:i,actual:e}}},this._lastValueValid=!1,this._localeSubscription=e.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(t){this._assignValueProgrammatically(t)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(t){const e=ss(t),i=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this.stateChanges.next(void 0)),e&&this._isInitialized&&i.blur&&i.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(t){this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(t=>{if(this._shouldHandleChangeEvent(t)){const e=this._getValueFromModel(t.selection);this._lastValueValid=this._isValidValue(e),this._cvaOnChange(e),this._onTouched(),this._formatValue(e),this.dateInput.emit(new Hv(this,this._elementRef.nativeElement)),this.dateChange.emit(new Hv(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(t){(function(t,e){const i=Object.keys(t);for(let n of i){const{previousValue:i,currentValue:s}=t[n];if(!e.isDateInstance(i)||!e.isDateInstance(s))return!0;if(!e.sameDate(i,s))return!0}return!1})(t,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(t){this._validatorOnChange=t}validate(t){return this._validator?this._validator(t):null}writeValue(t){this._assignValueProgrammatically(t)}registerOnChange(t){this._cvaOnChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_onKeydown(t){t.altKey&&t.keyCode===Zo&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),t.preventDefault())}_onInput(t){const e=this._lastValueValid;let i=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(i),i=this._dateAdapter.getValidDateOrNull(i),this._dateAdapter.sameDate(i,this.value)?(t&&!this.value&&this._cvaOnChange(i),e!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(i),this._cvaOnChange(i),this.dateInput.emit(new Hv(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Hv(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(t){this._elementRef.nativeElement.value=t?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""}_assignValue(t){this._model?(this._assignValueToModel(t),this._pendingValue=null):this._pendingValue=t}_isValidValue(t){return!t||this._dateAdapter.isValid(t)}_parentDisabled(){return!1}_assignValueProgrammatically(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=this._isValidValue(t),t=this._dateAdapter.getValidDateOrNull(t),this._assignValue(t),this._formatValue(t)}_matchesFilter(t){const e=this._getDateFilter();return!e||e(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Al,8),s.Y36(vl,8))},t.\u0275dir=s.lG2({type:t,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[s.TTD]}),t})();const Bv={provide:Kd,useExisting:(0,s.Gpc)(()=>Fv),multi:!0},jv={provide:$d,useExisting:(0,s.Gpc)(()=>Fv),multi:!0};let Fv=(()=>{class t extends Yv{constructor(t,e,i,n){super(t,e,i),this._formField=n,this._closedSubscription=te.w.EMPTY,this._validator=Qd.compose(super._getValidators())}set matDatepicker(t){t&&(this._datepicker=t,this._closedSubscription=t.closedStream.subscribe(()=>this._onTouched()),this._registerModel(t.registerInput(this)))}get min(){return this._min}set min(t){const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(e,this._min)||(this._min=e,this._validatorOnChange())}get max(){return this._max}set max(t){const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(e,this._max)||(this._max=e,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(t){const e=this._matchesFilter(this.value);this._dateFilter=t,this._matchesFilter(this.value)!==e&&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(t){return t}_assignValueToModel(t){this._model&&this._model.updateSelection(t,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(t){return t.source!==this}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Al,8),s.Y36(vl,8),s.Y36(Yd,8))},t.\u0275dir=s.lG2({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(t,e){1&t&&s.NdJ("input",function(t){return e._onInput(t.target.value)})("change",function(){return e._onChange()})("blur",function(){return e._onBlur()})("keydown",function(t){return e._onKeydown(t)}),2&t&&(s.Ikx("disabled",e.disabled),s.uIk("aria-haspopup",e._datepicker?"dialog":null)("aria-owns",(null==e._datepicker?null:e._datepicker.opened)&&e._datepicker.id||null)("min",e.min?e._dateAdapter.toIso8601(e.min):null)("max",e.max?e._dateAdapter.toIso8601(e.max):null)("data-mat-calendar",e._datepicker?e._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[s._Bn([Bv,jv,{provide:Km,useExisting:t}]),s.qOj]}),t})(),Nv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),t})(),Kv=(()=>{class t{constructor(t,e,i){this._intl=t,this._changeDetectorRef=e,this._stateChanges=te.w.EMPTY;const n=Number(i);this.tabIndex=n||0===n?n:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(t){this._disabled=ss(t)}ngOnChanges(t){t.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())}_watchStateChanges(){const t=this.datepicker?this.datepicker.stateChanges:(0,bt.of)(),e=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,bt.of)(),i=this.datepicker?(0,Ho.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,bt.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,Ho.T)(this._intl.changes,t,e,i).subscribe(()=>this._changeDetectorRef.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(rv),s.Y36(s.sBO),s.$8M("tabindex"))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,Nv,5),2&t){let t;s.iGM(t=s.CRH())&&(e._customIcon=t.first)}},viewQuery:function(t,e){if(1&t&&s.Gf(iv,5),2&t){let t;s.iGM(t=s.CRH())&&(e._button=t.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(t,e){1&t&&s.NdJ("click",function(t){return e._open(t)}),2&t&&(s.uIk("tabindex",null)("data-mat-calendar",e.datepicker?e.datepicker.id:null),s.ekj("mat-datepicker-toggle-active",e.datepicker&&e.datepicker.opened)("mat-accent",e.datepicker&&"accent"===e.datepicker.color)("mat-warn",e.datepicker&&"warn"===e.datepicker.color))},inputs:{tabIndex:"tabIndex",disabled:"disabled",datepicker:["for","datepicker"],ariaLabel:["aria-label","ariaLabel"],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[s.TTD],ngContentSelectors:ov,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(t,e){1&t&&(s.F$t(sv),s.TgZ(0,"button",0,1),s.YNc(2,nv,2,0,"svg",2),s.Hsn(3),s.qZA()),2&t&&(s.Q6J("disabled",e.disabled)("disableRipple",e.disableRipple),s.uIk("aria-haspopup",e.datepicker?"dialog":null)("aria-label",e.ariaLabel||e._intl.openCalendarLabel)("tabindex",e.disabled?-1:e.tabIndex),s.xp6(2),s.Q6J("ngIf",!e._customIcon))},directives:[id,n.O5],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}\n"],encapsulation:2,changeDetection:0}),t})(),qv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[rv,Rv],imports:[[n.ez,nd,Er,pa,Oo,pl],So]}),t})();const Uv=["mat-sort-header",""];function Zv(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",3),s.NdJ("@arrowPosition.start",function(){return s.CHM(t),s.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return s.CHM(t),s.oxw()._disableViewStateAnimation=!1}),s._UZ(1,"div",4),s.TgZ(2,"div",5),s._UZ(3,"div",6),s._UZ(4,"div",7),s._UZ(5,"div",8),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("@arrowOpacity",t._getArrowViewState())("@arrowPosition",t._getArrowViewState())("@allowChildren",t._getArrowDirectionState()),s.xp6(2),s.Q6J("@indicator",t._getArrowDirectionState()),s.xp6(1),s.Q6J("@leftPointer",t._getArrowDirectionState()),s.xp6(1),s.Q6J("@rightPointer",t._getArrowDirectionState())}}const Gv=["*"],Vv=new s.OlP("MAT_SORT_DEFAULT_OPTIONS");class $v{}const Wv=yl(fl($v));let Jv=(()=>{class t extends Wv{constructor(t){super(),this._defaultOptions=t,this.sortables=new Map,this._stateChanges=new At.xQ,this.start="asc",this._direction="",this.sortChange=new s.vpe}get direction(){return this._direction}set direction(t){this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=ss(t)}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){var e,i,n;if(!t)return"";const s=null!==(i=null!==(e=null==t?void 0:t.disableClear)&&void 0!==e?e:this.disableClear)&&void 0!==i?i:!!(null===(n=this._defaultOptions)||void 0===n?void 0:n.disableClear);let o=function(t,e){let i=["asc","desc"];return"desc"==t&&i.reverse(),e||i.push(""),i}(t.start||this.start,s),r=o.indexOf(this.direction)+1;return r>=o.length&&(r=0),o[r]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Vv,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[s.qOj,s.TTD]}),t})();const Qv=ll.ENTERING+" "+ul.STANDARD_CURVE,Xv={indicator:_a("indicator",[va("active-asc, asc",Aa({transform:"translateY(0px)"})),va("active-desc, desc",Aa({transform:"translateY(10px)"})),Ta("active-asc <=> active-desc",wa(Qv))]),leftPointer:_a("leftPointer",[va("active-asc, asc",Aa({transform:"rotate(-45deg)"})),va("active-desc, desc",Aa({transform:"rotate(45deg)"})),Ta("active-asc <=> active-desc",wa(Qv))]),rightPointer:_a("rightPointer",[va("active-asc, asc",Aa({transform:"rotate(45deg)"})),va("active-desc, desc",Aa({transform:"rotate(-45deg)"})),Ta("active-asc <=> active-desc",wa(Qv))]),arrowOpacity:_a("arrowOpacity",[va("desc-to-active, asc-to-active, active",Aa({opacity:1})),va("desc-to-hint, asc-to-hint, hint",Aa({opacity:.54})),va("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Aa({opacity:0})),Ta("* => asc, * => desc, * => active, * => hint, * => void",wa("0ms")),Ta("* <=> *",wa(Qv))]),arrowPosition:_a("arrowPosition",[Ta("* => desc-to-hint, * => desc-to-active",wa(Qv,ka([Aa({transform:"translateY(-25%)"}),Aa({transform:"translateY(0)"})]))),Ta("* => hint-to-desc, * => active-to-desc",wa(Qv,ka([Aa({transform:"translateY(0)"}),Aa({transform:"translateY(25%)"})]))),Ta("* => asc-to-hint, * => asc-to-active",wa(Qv,ka([Aa({transform:"translateY(25%)"}),Aa({transform:"translateY(0)"})]))),Ta("* => hint-to-asc, * => active-to-asc",wa(Qv,ka([Aa({transform:"translateY(0)"}),Aa({transform:"translateY(-25%)"})]))),va("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Aa({transform:"translateY(0)"})),va("hint-to-desc, active-to-desc, desc",Aa({transform:"translateY(-25%)"})),va("hint-to-asc, active-to-asc, asc",Aa({transform:"translateY(25%)"}))]),allowChildren:_a("allowChildren",[Ta("* <=> *",[Sa("@*",Ca(),{optional:!0})])])};let tk=(()=>{class t{constructor(){this.changes=new At.xQ}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const ek={provide:tk,deps:[[new s.FiY,new s.tp0,tk]],useFactory:function(t){return t||new tk}};class ik{}const nk=fl(ik);let sk=(()=>{class t extends nk{constructor(t,e,i,n,s,o){super(),this._intl=t,this._changeDetectorRef=e,this._sort=i,this._columnDef=n,this._focusMonitor=s,this._elementRef=o,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._handleStateChanges()}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=ss(t)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{const e=!!t;e!==this._showIndicatorHint&&(this._setIndicatorHintVisible(e),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t||{},this._disableViewStateAnimation&&(this._viewState={toState:t.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(t){this._isDisabled()||t.keyCode!==No&&t.keyCode!==jo||(t.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 t=this._viewState.fromState;return(t?`${t}-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()}_handleStateChanges(){this._rerenderSubscription=(0,Ho.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 t.\u0275fac=function(e){return new(e||t)(s.Y36(tk),s.Y36(s.sBO),s.Y36(Jv,8),s.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),s.Y36(ra),s.Y36(s.SBq))},t.\u0275cmp=s.Xpm({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e._handleClick()})("keydown",function(t){return e._handleKeydown(t)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&t&&(s.uIk("aria-sort",e._getAriaSortAttribute()),s.ekj("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[s.qOj],attrs:Uv,ngContentSelectors:Gv,decls:4,vars:6,consts:[["role","button",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(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.Hsn(2),s.qZA(),s.YNc(3,Zv,6,6,"div",2),s.qZA()),2&t&&(s.ekj("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),s.uIk("tabindex",e._isDisabled()?null:0),s.xp6(3),s.Q6J("ngIf",e._renderArrow()))},directives:[n.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-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}\n"],encapsulation:2,data:{animation:[Xv.indicator,Xv.leftPointer,Xv.rightPointer,Xv.arrowOpacity,Xv.arrowPosition,Xv.allowChildren]},changeDetection:0}),t})(),ok=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[ek],imports:[[n.ez,pl]]}),t})(),rk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[$g,n.ez]]}),t})();const ak=new s.OlP("mat-chips-default-options"),ck={separatorKeyCodes:[jo]};let uk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[zl,{provide:ak,useValue:ck}],imports:[[pl]]}),t})();function lk(t){const{subscriber:e,counter:i,period:n}=t;e.next(i),this.schedule({subscriber:e,counter:i+1,period:n},n)}function hk(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function dk(t,e){const i=e?"":"none";hk(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:i,msUserSelect:i,webkitUserSelect:i,MozUserSelect:i})}function pk(t,e){const i=t.style;i.position=e?"":"fixed",i.top=i.opacity=e?"":"0",i.left=e?"":"-999em"}function fk(t,e){return e?t+" "+e:t}function gk(t){const e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function mk(t,e){return t.getPropertyValue(e).split(",").map(t=>t.trim())}function _k(t){const e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function wk(t,e,i){const{top:n,bottom:s,left:o,right:r}=t;return i>=n&&i<=s&&e>=o&&e<=r}function yk(t,e,i){t.top+=e,t.bottom=t.top+t.height,t.left+=i,t.right=t.left+t.width}function bk(t,e,i,n){const{top:s,right:o,bottom:r,left:a,width:c,height:u}=t,l=c*e,h=u*e;return n>s-h&&na-l&&i{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:_k(t)})})}handleScroll(t){const e=t.target,i=this.positions.get(e);if(!i)return null;const n=e===this._document?e.documentElement:e,s=i.scrollPosition;let o,r;if(e===this._document){const t=this._viewportRuler.getViewportScrollPosition();o=t.top,r=t.left}else o=e.scrollTop,r=e.scrollLeft;const a=s.top-o,c=s.left-r;return this.positions.forEach((t,i)=>{t.clientRect&&e!==i&&n.contains(i)&&yk(t.clientRect,a,c)}),s.top=o,s.left=r,{top:a,left:c}}}function vk(t){const e=t.cloneNode(!0),i=e.querySelectorAll("[id]"),n=t.nodeName.toLowerCase();e.removeAttribute("id");for(let s=0;s{if(this.beforeStarted.next(),this._handles.length){const e=this._handles.find(e=>{const i=t.target;return!!i&&(i===e||e.contains(i))});!e||this._disabledHandles.has(e)||this.disabled||this._initializeDragSequence(e,t)}else this.disabled||this._initializeDragSequence(this._rootElement,t)},this._pointerMove=t=>{const e=this._getPointerPositionOnPage(t);if(!this._hasStartedDragging){if(Math.abs(e.x-this._pickupPositionOnPage.x)+Math.abs(e.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const e=Date.now()>=this._dragStartTime+this._getDragStartDelay(t),i=this._dropContainer;if(!e)return void this._endDragSequence(t);i&&(i.isDragging()||i.isReceiving())||(t.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(t)))}return}this._boundaryElement&&(this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect())),t.preventDefault();const i=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._lastKnownPointerPosition=e,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,e);else{const t=this._activeTransform;t.x=i.x-this._pickupPositionOnPage.x+this._passiveTransform.x,t.y=i.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(t.x,t.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform",`translate(${t.x} ${t.y})`)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:t,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})},this._pointerUp=t=>{this._endDragSequence(t)},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new Ak(i,s),o.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=ss(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>dk(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(t=>us(t)),this._handles.forEach(t=>dk(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(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=us(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,Ek),e.addEventListener("touchstart",this._pointerDown,Mk)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?us(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&Dk(this._rootElement),Dk(this._anchor),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(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),dk(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),dk(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&Dk(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&Dk(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){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}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){zk(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,i=t.parentNode,n=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),o=this._getShadowRoot();i.insertBefore(s,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),pk(t,!1),this._document.body.appendChild(i.replaceChild(n,t)),this._getPreviewInsertionPoint(i,o).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),n=zk(e),s=!n&&0!==e.button,o=this._rootElement,r=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),i||s||r)return;this._handles.length&&(this._rootElementTapHighlight=o.style.webkitTapHighlightColor||"",o.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{this._updateOnScroll(t)}),this._boundaryElement&&(this._boundaryRect=_k(this._boundaryElement));const a=this._previewTemplate;this._pickupPositionInElement=a&&a.template&&!a.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);const c=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){pk(this._rootElement,!0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),n=this._getPointerPositionOnPage(t),s=this._getDragDistance(n),o=e._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:s,dropPoint:n}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:o,distance:s,dropPoint:n}),e.drop(this,i,this._initialIndex,this._initialContainer,o,s,n),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:i,y:n}){let s=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=s,this._dropContainer.enter(this,t,e,s===this._initialContainer&&s.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:s,currentIndex:s.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,n),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let n;if(i&&t){const e=t.matchSize?this._rootElement.getBoundingClientRect():null,s=t.viewContainer.createEmbeddedView(i,t.context);s.detectChanges(),n=Pk(s,this._document),this._previewRef=s,t.matchSize?Ik(n,e):n.style.transform=xk(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const t=this._rootElement;n=vk(t),Ik(n,t.getBoundingClientRect()),this._initialTransform&&(n.style.transform=this._initialTransform)}return hk(n.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:`${this._config.zIndex||1e3}`}),dk(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(t=>n.classList.add(t)):n.classList.add(e)),n}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);const e=function(t){const e=getComputedStyle(t),i=mk(e,"transition-property"),n=i.find(t=>"transform"===t||"all"===t);if(!n)return 0;const s=i.indexOf(n),o=mk(e,"transition-duration"),r=mk(e,"transition-delay");return gk(o[s])+gk(r[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const i=e=>{(!e||e.target===this._preview&&"transform"===e.propertyName)&&(this._preview.removeEventListener("transitionend",i),t(),clearTimeout(n))},n=setTimeout(i,1.5*e);this._preview.addEventListener("transitionend",i)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=Pk(this._placeholderRef,this._document)):i=vk(this._rootElement),i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e){const i=this._rootElement.getBoundingClientRect(),n=t===this._rootElement?null:t,s=n?n.getBoundingClientRect():i,o=zk(e)?e.targetTouches[0]:e,r=this._getViewportScrollPosition();return{x:s.left-i.left+(o.pageX-s.left-r.left),y:s.top-i.top+(o.pageY-s.top-r.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),i=zk(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,n=i.pageX-e.left,s=i.pageY-e.top;if(this._ownerSVGElement){const t=this._ownerSVGElement.getScreenCTM();if(t){const e=this._ownerSVGElement.createSVGPoint();return e.x=n,e.y=s,e.matrixTransform(t.inverse())}}return{x:n,y:s}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:n}=this.constrainPosition?this.constrainPosition(t,this):t;if("x"===this.lockAxis||"x"===e?n=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==e||(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:t,y:e}=this._pickupPositionInElement,s=this._boundaryRect,o=this._previewRect,r=s.top+e,a=s.bottom-(o.height-e);i=Rk(i,s.left+t,s.right-(o.width-t)),n=Rk(n,r,a)}return{x:i,y:n}}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,n=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,o=Math.abs(e-s.x),r=Math.abs(i-s.y);return o>this._config.pointerDirectionChangeThreshold&&(n.x=e>s.x?1:-1,s.x=e),r>this._config.pointerDirectionChangeThreshold&&(n.y=i>s.y?1:-1,s.y=i),n}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,dk(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,Ek),t.removeEventListener("touchstart",this._pointerDown,Mk)}_applyRootElementTransform(t,e){const i=xk(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=fk(i,this._initialTransform)}_applyPreviewTransform(t,e){var i;const n=(null===(i=this._previewTemplate)||void 0===i?void 0:i.template)?void 0:this._initialTransform,s=xk(t,e);this._preview.style.transform=fk(s,n)}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._boundaryElement.getBoundingClientRect(),n=this._rootElement.getBoundingClientRect();if(0===i.width&&0===i.height||0===n.width&&0===n.height)return;const s=i.left-n.left,o=n.right-i.right,r=i.top-n.top,a=n.bottom-i.bottom;i.width>n.width?(s>0&&(t+=s),o>0&&(t-=o)):t=0,i.height>n.height?(r>0&&(e+=r),a>0&&(e-=a)):e=0,t===this._passiveTransform.x&&e===this._passiveTransform.y||this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:zk(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const i=t.target;this._boundaryRect&&(i===this._document||i!==this._boundaryElement&&i.contains(this._boundaryElement))&&yk(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(){const t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=po(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){const i=this._previewContainer||"global";if("parent"===i)return t;if("global"===i){const t=this._document;return e||t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement||t.body}return us(i)}}function xk(t,e){return`translate3d(${Math.round(t)}px, ${Math.round(e)}px, 0)`}function Rk(t,e,i){return Math.max(e,Math.min(i,t))}function Dk(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function zk(t){return"t"===t.type[0]}function Pk(t,e){const i=t.rootNodes;if(1===i.length&&i[0].nodeType===e.ELEMENT_NODE)return i[0];const n=e.createElement("div");return i.forEach(t=>n.appendChild(t)),n}function Ik(t,e){t.style.width=`${e.width}px`,t.style.height=`${e.height}px`,t.style.transform=xk(e.left,e.top)}function Ok(t,e){return Math.max(0,Math.min(e,t))}class Hk{constructor(t,e,i,n,s){this._dragDropRegistry=e,this._ngZone=n,this._viewportRuler=s,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new At.xQ,this.entered=new At.xQ,this.exited=new At.xQ,this.dropped=new At.xQ,this.sorted=new At.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=te.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new At.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function(t=0,e=Rs.P){return(!Os(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=Rs.P),new Ct.y(i=>(i.add(e.schedule(lk,t,{subscriber:i,counter:0,period:t})),i))}(0,ws).pipe(js(this._stopScrollTimers)).subscribe(()=>{const t=this._scrollNode,e=this.autoScrollStep;1===this._verticalScrollDirection?Bk(t,-e):2===this._verticalScrollDirection&&Bk(t,e),1===this._horizontalScrollDirection?jk(t,-e):2===this._horizontalScrollDirection&&jk(t,e)})},this.element=us(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new Ak(i,s)}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(t,e,i,n){let s;this._draggingStarted(),null==n?(s=this.sortingDisabled?this._draggables.indexOf(t):-1,-1===s&&(s=this._getItemIndexFromPointerPosition(t,e,i))):s=n;const o=this._activeDraggables,r=o.indexOf(t),a=t.getPlaceholderElement();let c=o[s];if(c===t&&(c=o[s+1]),r>-1&&o.splice(r,1),c&&!this._dragDropRegistry.isDragging(c)){const e=c.getRootElement();e.parentElement.insertBefore(a,e),o.splice(s,0,t)}else if(this._shouldEnterAsFirstChild(e,i)){const e=o[0].getRootElement();e.parentNode.insertBefore(a,e),o.unshift(t)}else us(this.element).appendChild(a),o.push(t);a.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,n,s,o,r){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:n,isPointerOverContainer:s,distance:o,dropPoint:r})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(t=>t.isDragging()).every(e=>-1===t.indexOf(e))?this._reset():this._cacheItems()),this}withDirection(t){return this._direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._orientation=t,this}withScrollableParents(t){const e=us(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?Yk("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,e=>e.drag===t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,n){if(this.sortingDisabled||!this._clientRect||!bk(this._clientRect,.05,e,i))return;const s=this._itemPositions,o=this._getItemIndexFromPointerPosition(t,e,i,n);if(-1===o&&s.length>0)return;const r="horizontal"===this._orientation,a=Yk(s,e=>e.drag===t),c=s[o],u=c.clientRect,l=a>o?1:-1,h=this._getItemOffsetPx(s[a].clientRect,u,l),d=this._getSiblingOffsetPx(a,s,l),p=s.slice();!function(t,e,i){const n=Ok(e,t.length-1),s=Ok(i,t.length-1);if(n===s)return;const o=t[n],r=s{if(p[i]===e)return;const n=e.drag===t,s=n?h:d,o=n?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=s,r?(o.style.transform=fk(`translate3d(${Math.round(e.offset)}px, 0, 0)`,e.initialTransform),yk(e.clientRect,0,s)):(o.style.transform=fk(`translate3d(0, ${Math.round(e.offset)}px, 0)`,e.initialTransform),yk(e.clientRect,s,0))}),this._previousSwap.overlaps=wk(u,e,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=r?n.x:n.y}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,n=0,s=0;if(this._parentPositions.positions.forEach((o,r)=>{r!==this._document&&o.clientRect&&!i&&bk(o.clientRect,.05,t,e)&&([n,s]=function(t,e,i,n){const s=Fk(e,n),o=Nk(e,i);let r=0,a=0;if(s){const e=t.scrollTop;1===s?e>0&&(r=1):t.scrollHeight-e>t.clientHeight&&(r=2)}if(o){const e=t.scrollLeft;1===o?e>0&&(a=1):t.scrollWidth-e>t.clientWidth&&(a=2)}return[r,a]}(r,o.clientRect,t,e),(n||s)&&(i=r))}),!n&&!s){const{width:o,height:r}=this._viewportRuler.getViewportSize(),a={width:o,height:r,top:0,right:o,bottom:r,left:0};n=Fk(a,e),s=Nk(a,t),i=window}!i||n===this._verticalScrollDirection&&s===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=n,this._horizontalScrollDirection=s,this._scrollNode=i,(n||s)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=us(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=us(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_cacheItemPositions(){const t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(t=>{const e=t.getVisibleElement();return{drag:t,offset:0,initialTransform:e.style.transform||"",clientRect:_k(e)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_reset(){this._isDragging=!1;const t=us(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(t=>{var e;const i=t.getRootElement();if(i){const n=null===(e=this._itemPositions.find(e=>e.drag===t))||void 0===e?void 0:e.initialTransform;i.style.transform=n||""}}),this._siblings.forEach(t=>t._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(t,e,i){const n="horizontal"===this._orientation,s=e[t].clientRect,o=e[t+-1*i];let r=s[n?"width":"height"]*i;if(o){const t=n?"left":"top",e=n?"right":"bottom";-1===i?r-=o.clientRect[t]-s[e]:r+=s[t]-o.clientRect[e]}return r}_getItemOffsetPx(t,e,i){const n="horizontal"===this._orientation;let s=n?e.left-t.left:e.top-t.top;return-1===i&&(s+=n?e.width-t.width:e.height-t.height),s}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,n="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){const s=i[i.length-1].clientRect;return n?t>=s.right:e>=s.bottom}{const s=i[0].clientRect;return n?t<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(t,e,i,n){const s="horizontal"===this._orientation,o=Yk(this._itemPositions,({drag:o,clientRect:r},a,c)=>{if(o===t)return c.length<2;if(n){const t=s?n.x:n.y;if(o===this._previousSwap.drag&&this._previousSwap.overlaps&&t===this._previousSwap.delta)return!1}return s?e>=Math.floor(r.left)&&e=Math.floor(r.top)&&in._canReceive(t,e,i))}_canReceive(t,e,i){if(!this._clientRect||!wk(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const n=this._getShadowRoot().elementFromPoint(e,i);if(!n)return!1;const s=us(this.element);return n===s||s.contains(n)}_startReceiving(t,e){const i=this._activeSiblings;!i.has(t)&&e.every(t=>this.enterPredicate(t,this)||this._draggables.indexOf(t)>-1)&&(i.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&(this._itemPositions.forEach(({clientRect:t})=>{yk(t,e.top,e.left)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=po(us(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._activeDraggables.filter(t=>t.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function Yk(t,e){for(let i=0;i=i-o&&e<=i+o?1:e>=n-o&&e<=n+o?2:0}function Nk(t,e){const{left:i,right:n,width:s}=t,o=.05*s;return e>=i-o&&e<=i+o?1:e>=n-o&&e<=n+o?2:0}const Kk=uo({passive:!1,capture:!0});let qk=(()=>{class t{constructor(t,e){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=t=>t.isDragging(),this.pointerMove=new At.xQ,this.pointerUp=new At.xQ,this.scroll=new At.xQ,this._preventDefaultWhileDragging=t=>{this._activeDragInstances.length>0&&t.preventDefault()},this._persistentTouchmoveListener=t=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&t.preventDefault(),this.pointerMove.next(t))},this._document=e}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Kk)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Kk)}startDragging(t,e){if(!(this._activeDragInstances.indexOf(t)>-1)&&(this._activeDragInstances.push(t),1===this._activeDragInstances.length)){const t=e.type.startsWith("touch");this._globalListeners.set(t?"touchend":"mouseup",{handler:t=>this.pointerUp.next(t),options:!0}).set("scroll",{handler:t=>this.scroll.next(t),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Kk}),t||this._globalListeners.set("mousemove",{handler:t=>this.pointerMove.next(t),options:Kk}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((t,e)=>{this._document.addEventListener(e,t.handler,t.options)})})}}stopDragging(t){const e=this._activeDragInstances.indexOf(t);e>-1&&(this._activeDragInstances.splice(e,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(t){return this._activeDragInstances.indexOf(t)>-1}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,e)=>{this._document.removeEventListener(e,t.handler,t.options)}),this._globalListeners.clear()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(n.K0))},token:t,providedIn:"root"}),t})();const Uk={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let Zk=(()=>{class t{constructor(t,e,i,n){this._document=t,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=n}createDrag(t,e=Uk){return new Lk(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new Hk(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0),s.LFG(s.R0b),s.LFG(Co),s.LFG(qk))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0),s.LFG(s.R0b),s.LFG(Co),s.LFG(qk))},token:t,providedIn:"root"}),t})(),Gk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Zk],imports:[So]}),t})(),Vk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),$k=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),Wk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[$k,pl],pl]}),t})(),Jk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Ul,pl],pl]}),t})(),Qk=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,lf,nd,vb,$g,Bm,Jf]]}),t})(),Xk=(()=>{class t extends Ll{format(t,e){return"input"===e?`${t.getDate().toString()}.${(t.getMonth()+1).toString()}.${t.getFullYear()}`:t.toDateString()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const tT={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 eT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[{provide:Al,useClass:Xk},{provide:vl,useValue:tT}],imports:[[n.ez,vb,Q_,uf,uk,Gk,$h,Vn,ok,hg,Bm,rk,$g,Rg,nd,Jf,jd,lf,$m,Ul,Em,Vk,Wk,qv,Jk,oh,zf,Qk,Mo,Th,Wg]]}),t})(),iT=(()=>{class t{constructor(t){this.elementRef=t}ngOnInit(){this.elementRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","perunWebAppsAutoFocus",""]]}),t})(),nT=(()=>{class t{constructor(){}onClick(t){if(1===t.button&&null!=this.perunWebAppsMiddleClickRouterLink){const t=this.perunWebAppsMiddleClickRouterLink.join("/"),e=location.search;window.open(t+e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(t,e){1&t&&s.NdJ("mouseup",function(t){return e.onClick(t)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),t})();i(6577);let sT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,cb,$w,Zb,nd,Gb,vb,$g,Q_,Th,Bm,jd,$m,Mo,uf,lf,KA,qv,Dl,Gw,uy,eT,Rg,bw,ok,hg,Jf,zf,Ul],cb,$w,Zb,nd,Gb,vb,$g,Q_,Th,Bm,jd,$m,Mo,uf,lf,KA,qv,Dl,Gw,uy,eT,Rg,bw,ok,hg,Jf,zf,Ul]}),t})(),oT=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}ngOnInit(){this.publication=this.data}ok(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(dh),s.Y36(fh))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"div",2),s._uU(5),s.qZA(),s.TgZ(6,"div",3),s.TgZ(7,"button",4),s.NdJ("click",function(){return e.ok()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,3,"DIALOGS.SHOW_CITE.TITLE")),s.xp6(3),s.hij(" ",e.publication.main," "),s.xp6(3),s.hij(" ",s.lcZ(9,5,"DIALOGS.SHOW_CITE.OK")," "))},directives:[Ah,vh,kh,id],pipes:[Vh],styles:[""]}),t})();function rT(t,e){1&t&&(s.TgZ(0,"mat-icon",2),s._uU(1," info "),s.qZA())}function aT(t,e){1&t&&(s.TgZ(0,"mat-icon",2),s._uU(1," warning "),s.qZA())}function cT(t,e){1&t&&(s.TgZ(0,"mat-icon",2),s._uU(1," dangerous "),s.qZA())}function uT(t,e){1&t&&(s.TgZ(0,"mat-icon",2),s._uU(1," check_circle "),s.qZA())}const lT=["*"];let hT=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:lT,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(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.YNc(1,rT,2,0,"mat-icon",1),s.YNc(2,aT,2,0,"mat-icon",1),s.YNc(3,cT,2,0,"mat-icon",1),s.YNc(4,uT,2,0,"mat-icon",1),s.Hsn(5),s.qZA()),2&t&&(s.ekj("warn-alert","warn"===e.alert_type)("error-alert","error"===e.alert_type)("success-alert","success"===e.alert_type)("info-alert","info"===e.alert_type),s.xp6(1),s.Q6J("ngIf","info"===e.alert_type),s.xp6(1),s.Q6J("ngIf","warn"===e.alert_type),s.xp6(1),s.Q6J("ngIf","error"===e.alert_type),s.xp6(1),s.Q6J("ngIf","success"===e.alert_type))},directives:[n.O5,Vg],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:grey;text-align:left;border:1px solid #b3b3b3;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px solid #ececec;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 solid #fedcda;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px solid #d7ffd7;border-radius:10px;background-color:#d7ffd7}"]}),t})(),dT=(()=>{class t{transform(t){let e="";return null!==t.titleBefore&&(e+=t.titleBefore+" "),null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),null!==t.titleAfter&&(e+=t.titleAfter+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"userFullName",type:t,pure:!0}),t})();function pT(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"th",20),s.TgZ(1,"mat-checkbox",21),s.NdJ("change",function(e){s.CHM(t);const i=s.oxw();return e?i.masterToggle():null}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function fT(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",22),s.TgZ(1,"mat-checkbox",23),s.NdJ("change",function(e){const i=s.CHM(t).$implicit,n=s.oxw();return e?n.itemSelectionToggle(i):null})("click",function(t){return t.stopPropagation()}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function gT(t,e){1&t&&(s.TgZ(0,"th",24),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_ID")))}function mT(t,e){if(1&t&&(s.TgZ(0,"td",25),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.id)}}function _T(t,e){1&t&&(s.TgZ(0,"th",24),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_LOCK")))}function wT(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",27),s.NdJ("click",function(){s.CHM(t);const e=s.oxw().$implicit;return s.oxw().lockOrUnlockPublication(e)})("mouseenter",function(){return s.CHM(t),s.oxw(2).buttonPressed=!0})("mouseleave",function(){return s.CHM(t),s.oxw(2).buttonPressed=!1}),s.ALo(1,"translate"),s.TgZ(2,"mat-icon"),s._uU(3,"lock"),s.qZA(),s.qZA()}2&t&&s.s9C("matTooltip",s.lcZ(1,1,"PUBLICATIONS_LIST.LOCKED"))}function yT(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",27),s.NdJ("click",function(){s.CHM(t);const e=s.oxw().$implicit;return s.oxw().lockOrUnlockPublication(e)})("mouseenter",function(){return s.CHM(t),s.oxw(2).buttonPressed=!0})("mouseleave",function(){return s.CHM(t),s.oxw(2).buttonPressed=!1}),s.ALo(1,"translate"),s.TgZ(2,"mat-icon"),s._uU(3,"lock_open"),s.qZA(),s.qZA()}2&t&&s.s9C("matTooltip",s.lcZ(1,1,"PUBLICATIONS_LIST.UNLOCKED"))}function bT(t,e){if(1&t&&(s.TgZ(0,"td",25),s.YNc(1,wT,4,3,"button",26),s.YNc(2,yT,4,3,"button",26),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Q6J("ngIf",t.locked),s.xp6(1),s.Q6J("ngIf",!t.locked)}}function AT(t,e){1&t&&(s.TgZ(0,"th",24),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_TITLE")))}function vT(t,e){if(1&t&&(s.TgZ(0,"td",25),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.title)}}function kT(t,e){1&t&&(s.TgZ(0,"th",24),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_REPORTED_BY")))}function TT(t,e){if(1&t&&(s.TgZ(0,"span"),s._uU(1),s.ALo(2,"userFullName"),s._UZ(3,"br"),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",s.lcZ(2,1,t),"")}}function CT(t,e){if(1&t&&(s.TgZ(0,"td",25),s.YNc(1,TT,4,3,"span",28),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Q6J("ngForOf",t.authors)}}function ST(t,e){1&t&&(s.TgZ(0,"th",24),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_YEAR")))}function MT(t,e){if(1&t&&(s.TgZ(0,"td",25),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.year)}}function ET(t,e){1&t&&(s.TgZ(0,"th",24),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_CATEGORY")))}function LT(t,e){if(1&t&&(s.TgZ(0,"td",25),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.categoryName)}}function xT(t,e){1&t&&(s.TgZ(0,"th",24),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_THANKEDTO")))}function RT(t,e){if(1&t&&(s.TgZ(0,"span"),s._uU(1),s._UZ(2,"br"),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",t.ownerName,"")}}function DT(t,e){if(1&t&&(s.TgZ(0,"td",25),s.YNc(1,RT,3,1,"span",28),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Q6J("ngForOf",t.thanks)}}function zT(t,e){1&t&&(s.TgZ(0,"th",29),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_CITE")))}function PT(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",25),s.TgZ(1,"button",30),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().showCite(e)})("mouseenter",function(){return s.CHM(t),s.oxw().buttonPressed=!0})("mouseleave",function(){return s.CHM(t),s.oxw().buttonPressed=!1}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.qZA()}2&t&&(s.xp6(2),s.hij(" ",s.lcZ(3,1,"PUBLICATIONS_LIST.SHOW_CITE")," "))}function IT(t,e){1&t&&s._UZ(0,"tr",31)}const OT=function(t,e){return[t,e]};function HT(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"tr",32),s.NdJ("click",function(){const e=s.CHM(t).$implicit,i=s.oxw();return i.disabledRouting&&i.openInTab&&!i.buttonPressed?i.emitPublication(e):null}),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.ekj("cursor-pointer",!i.disabledRouting),s.Q6J("perunWebAppsMiddleClickRouterLink",i.disabledRouting||i.buttonPressed?null:s.WLB(4,OT,i.routerPath,t.id))("routerLink",i.disabledRouting||i.buttonPressed?null:s.WLB(7,OT,i.routerPath,t.id))}}function YT(t,e){1&t&&(s.TgZ(0,"app-alert",33),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"PUBLICATIONS_LIST.NO_PUBLICATIONS_FOUND"),"\n"))}let BT=(()=>{class t{constructor(t,e,i,n,o){this.tableCheckbox=t,this.cabinetService=e,this.dialog=i,this.notificator=n,this.translate=o,this.selection=new bo(!0,[]),this.displayedColumns=["select","id","lock","title","reportedBy","year","category","thankedTo","cite"],this.pageSizeOptions=Qg,this.disabledRouting=!1,this.openInTab=!1,this.allowAlert=!0,this.publicationSelector=new s.vpe,this.buttonPressed=!1,o.get("PUBLICATIONS_LIST.CHANGE_LOCK_SUCCESS").subscribe(t=>this.changeLockMessage=t),o.get("PUBLICATIONS_LIST.LOCKED").subscribe(t=>this.locked=t),o.get("PUBLICATIONS_LIST.UNLOCKED").subscribe(t=>this.unlocked=t)}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.dataSource=new X_(this.publications),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"lock":return String(t.locked);case"title":return t.title;case"reportedBy":{let e="";return t.authors.forEach(t=>e+=Xg(t)+";"),e.slice(0,-1)}case"year":return t.year.toString();case"category":return t.categoryName;case"thankedTo":{let e="";return t.thanks.forEach(t=>e+=t.ownerName+";"),e.slice(0,-1)}default:return t[e]}}exportData(t){rm(om(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}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)}setDataSource(){this.dataSource&&(this.dataSource.sortData=(t,e)=>im(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}itemSelectionToggle(t){this.selection.toggle(t)}showCite(t){const e=tm();e.width="500px",e.data=t,this.dialog.open(oT,e)}lockOrUnlockPublication(t){this.cabinetService.lockPublications({publications:[this.createPublication(t)],lock:!t.locked}).subscribe(()=>{this.notificator.showSuccess(t.locked?this.changeLockMessage+this.unlocked:this.changeLockMessage+this.locked),t.locked=!t.locked})}createPublication(t){return{id:t.id,externalId:t.externalId,publicationSystemId:t.publicationSystemId,categoryId:t.categoryId,createdBy:t.createdBy,createdDate:t.createdDate,doi:t.doi,isbn:t.isbn,locked:t.locked,main:t.main,rank:t.rank,title:t.title,year:t.year}}emitPublication(t){return this.publicationSelector.emit(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Cm),s.Y36(V),s.Y36(yh),s.Y36(Am),s.Y36(Gh))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-publications-list"]],viewQuery:function(t,e){if(1&t&&(s.Gf(Jv,7),s.Gf(mm,7)),2&t){let t;s.iGM(t=s.CRH())&&(e.matSort=t.first),s.iGM(t=s.CRH())&&(e.child=t.first)}},inputs:{publications:"publications",selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",pageSizeOptions:"pageSizeOptions",routerPath:"routerPath",disabledRouting:"disabledRouting",openInTab:"openInTab",allowAlert:"allowAlert"},outputs:{publicationSelector:"publicationSelector"},features:[s.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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,pT,2,3,"th",4),s.YNc(5,fT,2,2,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,gT,3,3,"th",7),s.YNc(8,mT,2,1,"td",8),s.BQk(),s.ynx(9,9),s.YNc(10,_T,3,3,"th",7),s.YNc(11,bT,3,2,"td",8),s.BQk(),s.ynx(12,10),s.YNc(13,AT,3,3,"th",7),s.YNc(14,vT,2,1,"td",8),s.BQk(),s.ynx(15,11),s.YNc(16,kT,3,3,"th",7),s.YNc(17,CT,2,1,"td",8),s.BQk(),s.ynx(18,12),s.YNc(19,ST,3,3,"th",7),s.YNc(20,MT,2,1,"td",8),s.BQk(),s.ynx(21,13),s.YNc(22,ET,3,3,"th",7),s.YNc(23,LT,2,1,"td",8),s.BQk(),s.ynx(24,14),s.YNc(25,xT,3,3,"th",7),s.YNc(26,DT,2,1,"td",8),s.BQk(),s.ynx(27,15),s.YNc(28,zT,3,3,"th",16),s.YNc(29,PT,4,3,"td",8),s.BQk(),s.YNc(30,IT,1,0,"tr",17),s.YNc(31,HT,1,10,"tr",18),s.qZA(),s.qZA(),s.qZA(),s.YNc(32,YT,3,3,"app-alert",19)),2&t&&(s.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.publications.length),s.xp6(1),s.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),s.xp6(1),s.Q6J("dataSource",e.dataSource),s.xp6(28),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===e.publications.length&&e.allowAlert))},directives:[mm,N_,Jv,U_,q_,K_,V_,$_,n.O5,Z_,bb,G_,sk,id,Vf,Vg,n.sg,W_,J_,nT,In,hT],pipes:[Vh,dT],styles:[".mat-column-title[_ngcontent-%COMP%]{width:40%}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();function jT(t,e){1&t&&s._UZ(0,"mat-spinner",7)}const FT=function(){return["id","title","year"]};function NT(t,e){if(1&t&&(s.TgZ(0,"div",8),s._uU(1),s.ALo(2,"translate"),s._UZ(3,"perun-web-apps-publications-list",9),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.hij(" ",s.lcZ(2,4,"DIALOGS.REMOVE_PUBLICATION.WARNING")," "),s.xp6(2),s.Q6J("publications",t.publications)("routerPath",null)("displayedColumns",s.DdM(6,FT))}}let KT=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.cabinetService=s,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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)}):this.remove()},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(dh),s.Y36(fh),s.Y36(Am),s.Y36(Gh),s.Y36(V))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,jT,1,0,"mat-spinner",2),s.YNc(5,NT,4,7,"div",3),s.TgZ(6,"div",4),s.TgZ(7,"button",5),s.NdJ("click",function(){return e.cancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",6),s.NdJ("click",function(){return e.remove()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,6,"DIALOGS.REMOVE_PUBLICATION.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,8,"DIALOGS.REMOVE_PUBLICATION.CANCEL")," "),s.xp6(2),s.Q6J("disabled",e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,10,"DIALOGS.REMOVE_PUBLICATION.REMOVE")," "))},directives:[Ah,n.O5,kh,id,Ym,vh,BT],pipes:[Vh],styles:[""]}),t})(),qT=(()=>{class t{constructor(){this.refresh=new s.vpe}onClickbutton(t){this.refresh.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.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(t,e){1&t&&(s.TgZ(0,"button",0),s.NdJ("click",function(t){return e.onClickbutton(t)}),s.ALo(1,"translate"),s._UZ(2,"mat-icon",1),s.qZA()),2&t&&(s.s9C("matTooltip",s.lcZ(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),s.Q6J("disabled",e.disabled),s.xp6(2),s.s9C("svgIcon",e.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},directives:[id,Vf,Vg],pipes:[Vh],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%], .perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%], .perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}"]}),t})();var UT=i(9609);const ZT=i.n(UT)()||UT,GT=new s.OlP("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function(){return{useUtc:!1}}});function VT(t,e){const i=Array(t);for(let n=0;n{class t extends Al{constructor(t,e){super(),this._options=e,this.setLocale(t||ZT.locale())}setLocale(t){super.setLocale(t);let e=ZT.localeData(t);this._localeData={firstDayOfWeek:e.firstDayOfWeek(),longMonths:e.months(),shortMonths:e.monthsShort(),dates:VT(31,t=>this.createDate(2017,0,t+1).format("D")),longDaysOfWeek:e.weekdays(),shortDaysOfWeek:e.weekdaysShort(),narrowDaysOfWeek:e.weekdaysMin()}}getYear(t){return this.clone(t).year()}getMonth(t){return this.clone(t).month()}getDate(t){return this.clone(t).date()}getDayOfWeek(t){return this.clone(t).day()}getMonthNames(t){return"long"==t?this._localeData.longMonths:this._localeData.shortMonths}getDateNames(){return this._localeData.dates}getDayOfWeekNames(t){return"long"==t?this._localeData.longDaysOfWeek:"short"==t?this._localeData.shortDaysOfWeek:this._localeData.narrowDaysOfWeek}getYearName(t){return this.clone(t).format("YYYY")}getFirstDayOfWeek(){return this._localeData.firstDayOfWeek}getNumDaysInMonth(t){return this.clone(t).daysInMonth()}clone(t){return t.clone().locale(this.locale)}createDate(t,e,i){const n=this._createMoment({year:t,month:e,date:i}).locale(this.locale);return n.isValid(),n}today(){return this._createMoment().locale(this.locale)}parse(t,e){return t&&"string"==typeof t?this._createMoment(t,e,this.locale):t?this._createMoment(t).locale(this.locale):null}format(t,e){return t=this.clone(t),this.isValid(t),t.format(e)}addCalendarYears(t,e){return this.clone(t).add({years:e})}addCalendarMonths(t,e){return this.clone(t).add({months:e})}addCalendarDays(t,e){return this.clone(t).add({days:e})}toIso8601(t){return this.clone(t).format()}deserialize(t){let e;if(t instanceof Date)e=this._createMoment(t).locale(this.locale);else if(this.isDateInstance(t))return this.clone(t);if("string"==typeof t){if(!t)return null;e=this._createMoment(t,ZT.ISO_8601).locale(this.locale)}return e&&this.isValid(e)?this._createMoment(e).locale(this.locale):super.deserialize(t)}isDateInstance(t){return ZT.isMoment(t)}isValid(t){return this.clone(t).isValid()}invalid(){return ZT.invalid()}_createMoment(t,e,i){const{strict:n,useUtc:s}=this._options||{};return s?ZT.utc(t,e,i,n):ZT(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(bl,8),s.LFG(GT,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),WT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[{provide:Al,useClass:$T,deps:[bl,GT]}]}),t})(),JT=(()=>{class t{constructor(){}ngOnInit(){this.endMaxYear=new Date,this.startMaxYear=this.endYear.value,this.endMinYear=this.startYear.value}chosenYearHandler(t,e,i){t.setValue(e),this.startMaxYear=this.endYear.value,this.endMinYear=this.startYear.value,i.close()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,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(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-form-field",0),s.NdJ("click",function(){return s.CHM(t),s.MAs(7).open()}),s.TgZ(1,"mat-label"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s._UZ(4,"input",1),s._UZ(5,"mat-datepicker-toggle",2),s.TgZ(6,"mat-datepicker",3,4),s.NdJ("yearSelected",function(i){s.CHM(t);const n=s.MAs(7);return e.chosenYearHandler(e.startYear,i,n)}),s.qZA(),s.qZA(),s.TgZ(8,"mat-form-field",0),s.NdJ("click",function(){return s.CHM(t),s.MAs(15).open()}),s.TgZ(9,"mat-label"),s._uU(10),s.ALo(11,"translate"),s.qZA(),s._UZ(12,"input",5),s._UZ(13,"mat-datepicker-toggle",2),s.TgZ(14,"mat-datepicker",3,6),s.NdJ("yearSelected",function(i){s.CHM(t);const n=s.MAs(15);return e.chosenYearHandler(e.endYear,i,n)}),s.qZA(),s.qZA()}if(2&t){const t=s.MAs(7),i=s.MAs(15);s.xp6(2),s.Oqu(s.lcZ(3,11,"PUBLICATION_FILTER.START_YEAR")),s.xp6(2),s.Q6J("matDatepicker",t)("max",e.startMaxYear)("formControl",e.startYear),s.xp6(1),s.Q6J("for",t),s.xp6(5),s.Oqu(s.lcZ(11,13,"PUBLICATION_FILTER.END_YEAR")),s.xp6(2),s.Q6J("matDatepicker",i)("min",e.endMinYear)("max",e.endMaxYear)("formControl",e.endYear),s.xp6(1),s.Q6J("for",i)}},directives:[Bd,Ld,Vm,Fv,Zd,_p,tf,Kv,zd,Ov],pipes:[Vh],styles:[".year-field[_ngcontent-%COMP%]{max-width:80px!important;width:100%!important;min-width:auto!important}"]}),t})();function QT(t,e){if(1&t&&(s.TgZ(0,"mat-option",12),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.hij(" ",t.name," ")}}const XT=UT,tC={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let eC=(()=>{class t{constructor(t){this.cabinetService=t,this.title=new Fp,this.code=new Fp,this.startYear=new Fp(XT()),this.endYear=new Fp(XT()),this.filteredPublication=new s.vpe}ngOnInit(){this.title.setValue(""),this.code.setValue(""),this.selectedCategory="no_value",this.cabinetService.getCategories().subscribe(t=>{this.categories=t,this.selectedMode="isbn/issn"})}filter(){const t={title:this.title.value,isbnissn:"isbn/issn"===this.selectedMode?this.code.value:null,doi:"doi"===this.selectedMode?this.code.value:null,category:"no_value"!==this.selectedCategory?this.selectedCategory.id:null,startYear:(0,n.p6)(this.startYear.value,"yyyy","en-GB"),endYear:(0,n.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 Fp(XT()),this.endYear=new Fp(XT()),this.filteredPublication.emit({title:null,isbnissn:null,doi:null,category:null,startYear:null,endYear:null})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(V))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-publication-filter"]],outputs:{filteredPublication:"filteredPublication"},features:[s._Bn([{provide:Al,useClass:$T,deps:[bl]},{provide:vl,useValue:tC}])],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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"mat-form-field",1),s._UZ(2,"input",2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"mat-form-field",1),s.TgZ(5,"mat-label"),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.TgZ(8,"mat-select",3),s.NdJ("valueChange",function(t){return e.selectedMode=t}),s.TgZ(9,"mat-option",4),s._uU(10),s.ALo(11,"translate"),s.qZA(),s.TgZ(12,"mat-option",5),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(15,"mat-form-field",6),s._UZ(16,"input",2),s.ALo(17,"translate"),s.qZA(),s.TgZ(18,"mat-form-field",1),s.TgZ(19,"mat-label"),s._uU(20),s.ALo(21,"translate"),s.qZA(),s.TgZ(22,"mat-select",3),s.NdJ("valueChange",function(t){return e.selectedCategory=t}),s.TgZ(23,"mat-option",7),s._uU(24),s.ALo(25,"translate"),s.qZA(),s.YNc(26,QT,2,2,"mat-option",8),s.qZA(),s.qZA(),s._UZ(27,"perun-web-apps-year-range",9),s.TgZ(28,"button",10),s.NdJ("click",function(){return e.filter()}),s.TgZ(29,"mat-icon"),s._uU(30,"search"),s.qZA(),s._uU(31),s.ALo(32,"translate"),s.qZA(),s.TgZ(33,"button",11),s.NdJ("click",function(){return e.clearFilter()}),s.TgZ(34,"mat-icon"),s._uU(35,"search_off"),s.qZA(),s._uU(36),s.ALo(37,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.s9C("placeholder",s.lcZ(3,16,"PUBLICATION_FILTER.TITLE_PLACEHOLDER")),s.Q6J("formControl",e.title),s.xp6(4),s.Oqu(s.lcZ(7,18,"PUBLICATION_FILTER.SELECT_MODE")),s.xp6(2),s.Q6J("value",e.selectedMode),s.xp6(2),s.Oqu(s.lcZ(11,20,"PUBLICATION_FILTER.ISBN/ISSN")),s.xp6(3),s.Oqu(s.lcZ(14,22,"PUBLICATION_FILTER.DOI")),s.xp6(3),s.s9C("placeholder",s.lcZ(17,24,"PUBLICATION_FILTER.CODE_PLACEHOLDER")),s.Q6J("formControl",e.code),s.xp6(4),s.Oqu(s.lcZ(21,26,"PUBLICATION_FILTER.SELECT_CATEGORY")),s.xp6(2),s.Q6J("value",e.selectedCategory),s.xp6(2),s.Oqu(s.lcZ(25,28,"PUBLICATION_FILTER.NO_CATEGORY_SELECTED")),s.xp6(2),s.Q6J("ngForOf",e.categories),s.xp6(1),s.Q6J("startYear",e.startYear)("endYear",e.endYear),s.xp6(4),s.hij(" ",s.lcZ(32,30,"PUBLICATION_FILTER.FILTER")," "),s.xp6(5),s.hij(" ",s.lcZ(37,32,"PUBLICATION_FILTER.CLEAR_FILTER")," "))},directives:[Bd,Vm,Zd,_p,tf,Ld,Df,nh,n.sg,JT,id,Vg],pipes:[Vh],styles:[".filter-field[_ngcontent-%COMP%]{max-width:250px!important;width:100%!important;min-width:auto!important}.disable[_ngcontent-%COMP%]{cursor:not-allowed;pointer-events:none}.year-field[_ngcontent-%COMP%]{max-width:80px!important;width:100%!important;min-width:auto!important}"]}),t})();function iC(t,e){if(1&t&&s._UZ(0,"perun-web-apps-publications-list",10),2&t){const t=s.oxw();s.Q6J("publications",t.publications)("selection",t.selected)("routerPath","/all-publications")("tableId",t.tableId)}}function nC(t,e){1&t&&s._UZ(0,"mat-spinner",11)}let sC=(()=>{class t{constructor(t,e,i,n,s){this.route=t,this.cabinetService=e,this.dialog=i,this.matIconRegistry=n,this.domSanitizer=s,this.selected=new bo(!0,[]),this.tableId=hm,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 t=tm();t.width="500px",t.data=this.selected.selected,this.dialog.open(KT,t).afterClosed().subscribe(t=>{t&&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(t=>{this.publications=t,this.loading=!1})}filterPublication(t){this.filter=t,this.refreshTable()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(hi),s.Y36(V),s.Y36(yh),s.Y36(Bg),s.Y36(z))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._UZ(2,"mat-icon",2),s.TgZ(3,"span",3),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.qZA(),s.TgZ(6,"div",4),s.TgZ(7,"perun-web-apps-refresh-button",5),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.TgZ(8,"button",6),s.NdJ("click",function(){return e.removePublication()}),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.TgZ(11,"perun-web-apps-publication-filter",7),s.NdJ("filteredPublication",function(t){return e.filterPublication(t)}),s.qZA(),s.qZA(),s.YNc(12,iC,1,4,"perun-web-apps-publications-list",8),s.YNc(13,nC,1,0,"mat-spinner",9),s.qZA()),2&t&&(s.xp6(4),s.Oqu(s.lcZ(5,5,"ALL_PUBLICATIONS.TITLE")),s.xp6(4),s.Q6J("disabled",0===e.selected.selected.length),s.xp6(1),s.hij(" ",s.lcZ(10,7,"ALL_PUBLICATIONS.REMOVE")," "),s.xp6(3),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",e.loading))},directives:[Vg,qT,id,eC,n.O5,BT,Ym],pipes:[Vh],styles:[".publications-icon[_ngcontent-%COMP%]{height:32px;width:32px}"]}),t})();function oC(t,e){if(1&t&&s._UZ(0,"perun-web-apps-publications-list",11),2&t){const t=s.oxw(2);s.Q6J("publications",t.publications)("selection",t.selected)("tableId",t.tableId)("routerPath","/my-publications")}}function rC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"div",6),s.TgZ(2,"perun-web-apps-refresh-button",7),s.NdJ("refresh",function(){return s.CHM(t),s.oxw().refreshTable()}),s.qZA(),s.TgZ(3,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().removePublication()}),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"perun-web-apps-publication-filter",9),s.NdJ("filteredPublication",function(e){return s.CHM(t),s.oxw().filterPublication(e)}),s.qZA(),s.qZA(),s.YNc(7,oC,1,4,"perun-web-apps-publications-list",10),s.qZA()}if(2&t){const t=s.oxw();s.xp6(3),s.Q6J("disabled",0===t.selected.selected.length),s.xp6(1),s.hij(" ",s.lcZ(5,3,"MY_PUBLICATIONS.REMOVE")," "),s.xp6(3),s.Q6J("ngIf",!t.loading)}}function aC(t,e){1&t&&s._UZ(0,"mat-spinner",12)}let cC=(()=>{class t{constructor(t,e,i,n){this.route=t,this.cabinetService=e,this.dialog=i,this.authResolver=n,this.selected=new bo(!0,[]),this.tableId=hm,this.filter={title:null,isbnissn:null,doi:null,category:null,startYear:null,endYear:null}}ngOnInit(){this.initLoading=!0,this.authResolver.getPerunPrincipal().subscribe(t=>{this.authorId=t.userId,this.initLoading=!1,this.refreshTable()})}removePublication(){const t=tm();t.width="500px",t.data=this.selected.selected,this.dialog.open(KT,t).afterClosed().subscribe(t=>{t&&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(t=>{this.publications=t,this.loading=!1})}filterPublication(t){this.filter=t,this.refreshTable()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(hi),s.Y36(V),s.Y36(yh),s.Y36(G))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s.TgZ(2,"mat-icon",2),s._uU(3,"local_library"),s.qZA(),s.TgZ(4,"span",3),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA(),s.YNc(7,rC,8,5,"div",4),s.YNc(8,aC,1,0,"mat-spinner",5),s.qZA()),2&t&&(s.xp6(5),s.Oqu(s.lcZ(6,3,"MY_PUBLICATIONS.TITLE")),s.xp6(2),s.Q6J("ngIf",!e.initLoading),s.xp6(1),s.Q6J("ngIf",e.loading||e.initLoading))},directives:[Vg,n.O5,qT,id,eC,BT,Ym],pipes:[Vh],styles:[""]}),t})(),uC=(()=>{class t{constructor(t){this.router=t}importPublications(){this.router.navigate(["create-publication","import"])}createPublication(){this.router.navigate(["create-publication","create"])}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Pn))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s.TgZ(2,"span"),s.TgZ(3,"mat-icon",2),s._uU(4,"add_box"),s.qZA(),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA(),s.TgZ(7,"div",3),s.TgZ(8,"div",4),s.TgZ(9,"mat-card",5),s.TgZ(10,"mat-card-title"),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.TgZ(13,"mat-card-content",6),s.TgZ(14,"div"),s._uU(15),s.ALo(16,"translate"),s.qZA(),s.TgZ(17,"button",7),s.NdJ("click",function(){return e.importPublications()}),s._uU(18),s.ALo(19,"translate"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(20,"div",4),s.TgZ(21,"mat-card",5),s.TgZ(22,"mat-card-title"),s._uU(23),s.ALo(24,"translate"),s.qZA(),s.TgZ(25,"mat-card-content",6),s.TgZ(26,"div"),s._uU(27),s.ALo(28,"translate"),s.qZA(),s.TgZ(29,"button",7),s.NdJ("click",function(){return e.createPublication()}),s._uU(30),s.ALo(31,"translate"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(5),s.hij(" ",s.lcZ(6,7,"CREATE_PUBLICATION.TITLE")," "),s.xp6(6),s.hij(" ",s.lcZ(12,9,"CREATE_PUBLICATION.IMPORT_TITLE")," "),s.xp6(4),s.hij(" ",s.lcZ(16,11,"CREATE_PUBLICATION.IMPORT_HINT")," "),s.xp6(3),s.hij(" ",s.lcZ(19,13,"CREATE_PUBLICATION.IMPORT")," "),s.xp6(5),s.hij(" ",s.lcZ(24,15,"CREATE_PUBLICATION.CREATE_TITLE")," "),s.xp6(4),s.hij(" ",s.lcZ(28,17,"CREATE_PUBLICATION.CREATE_HINT")," "),s.xp6(3),s.hij(" ",s.lcZ(31,19,"CREATE_PUBLICATION.CREATE")," "))},directives:[Vg,ab,rb,ob,id],pipes:[Vh],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}"]}),t})();const lC=["groupFilterInput"];let hC=(()=>{class t{constructor(){this.filter=new s.vpe}ngOnInit(){ds(this.groupFilterInput.nativeElement,"keyup").pipe((0,Dt.U)(t=>t.target.value),(0,Lr.b)(500),Es()).subscribe(t=>{this.filter.emit(t)})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(t,e){if(1&t&&s.Gf(lC,7),2&t){let t;s.iGM(t=s.CRH())&&(e.groupFilterInput=t.first)}},inputs:{placeholder:"placeholder"},outputs:{filter:"filter"},decls:4,vars:3,consts:[[1,"filter-field","mr-2"],["matInput","",3,"placeholder"],["groupFilterInput",""]],template:function(t,e){1&t&&(s.TgZ(0,"mat-form-field",0),s._UZ(1,"input",1,2),s.ALo(3,"translate"),s.qZA()),2&t&&(s.xp6(1),s.s9C("placeholder",s.lcZ(3,1,e.placeholder)))},directives:[Bd,Vm],pipes:[Vh],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),t})();function dC(t,e){1&t&&s._UZ(0,"th",20)}function pC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",21),s.TgZ(1,"mat-checkbox",22),s.NdJ("change",function(e){const i=s.CHM(t).$implicit,n=s.oxw();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function fC(t,e){1&t&&(s.TgZ(0,"th",23),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"AUTHORS_LIST.ID")))}function gC(t,e){if(1&t&&(s.TgZ(0,"td",24),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.id)}}function mC(t,e){1&t&&(s.TgZ(0,"th",23),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"AUTHORS_LIST.NAME")))}function _C(t,e){if(1&t&&(s.TgZ(0,"td",25),s._uU(1),s.ALo(2,"userFullName"),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(s.lcZ(2,1,t))}}function wC(t,e){1&t&&(s.TgZ(0,"th",23),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"AUTHORS_LIST.ORGANIZATION")))}function yC(t,e){if(1&t&&(s.TgZ(0,"td",25),s._uU(1),s.qZA()),2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.Oqu(i.parseAttribute(t,"organization"))}}function bC(t,e){1&t&&(s.TgZ(0,"th",23),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"AUTHORS_LIST.EMAIL")))}function AC(t,e){if(1&t&&(s.TgZ(0,"td",25),s._uU(1),s.qZA()),2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.Oqu(i.parseAttribute(t,"preferredMail"))}}function vC(t,e){1&t&&(s.TgZ(0,"th",23),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"AUTHORS_LIST.NUMBER_OF_PUBLICATIONS")))}function kC(t,e){if(1&t&&(s.TgZ(0,"td",25),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.authorships.length.toString())}}function TC(t,e){1&t&&s._UZ(0,"th",26)}function CC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",24),s.TgZ(1,"button",27),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().onAddClick(e)}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.qZA()}2&t&&(s.xp6(2),s.hij(" ",s.lcZ(3,1,"AUTHORS_LIST.ADD")," "))}function SC(t,e){1&t&&s._UZ(0,"th",26)}function MC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",24),s.TgZ(1,"button",28),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().onRemoveClick(e)}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.qZA()}2&t&&(s.xp6(2),s.hij(" ",s.lcZ(3,1,"AUTHORS_LIST.REMOVE")," "))}function EC(t,e){1&t&&s._UZ(0,"tr",29)}const LC=function(t){return["/authors",t]};function xC(t,e){if(1&t&&s._UZ(0,"tr",30),2&t){const t=e.$implicit,i=s.oxw();s.ekj("cursor-pointer",!i.disableRouting),s.Q6J("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:s.VKq(4,LC,t.id))("routerLink",i.disableRouting?null:s.VKq(6,LC,t.id))}}function RC(t,e){1&t&&(s.TgZ(0,"app-alert",31),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function DC(t,e){1&t&&(s.TgZ(0,"app-alert",31),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"AUTHORS_LIST.NO_AUTHORS"),"\n"))}let zC=(()=>{class t{constructor(){this.authors=[],this.displayedColumns=["select","id","name","organization","email","numberOfPublications","add","remove"],this.disableRouting=!1,this.pageSizeOptions=Qg,this.addAuthor=new s.vpe,this.removeAuthor=new s.vpe}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.dataSource=new X_(this.authors),this.setDataSource(),this.dataSource.filter=this.filterValue}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}getSortDataForColumn(t,e){var i;switch(e){case"id":return t.id.toString();case"name":return t.lastName?t.lastName:null!==(i=t.firstName)&&void 0!==i?i:"";case"organization":return sm(t,"organization");case"email":return sm(t,"preferredMail");case"numberOfPublications":return t.authorships.length.toString();default:return t[e]}}getFilterDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return function(t){let e="";return null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}(t);case"organization":return sm(t,"organization");case"email":return sm(t,"preferredMail");case"numberOfPublications":return t.authorships.length.toString();default:return t[e]}}getExportDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return Xg(t);case"organization":return sm(t,"organization");case"email":return sm(t,"preferredMail");case"numberOfPublications":return t.authorships.length.toString();default:return t[e]}}exportData(t){rm(om(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}parseAttribute(t,e){let i="";return t.attributes&&t.attributes.forEach(t=>{t.friendlyName===e&&(i=t.value)}),i}checkboxLabel(t){return`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`}onAddClick(t){this.addAuthor.emit(t)}onRemoveClick(t){this.removeAuthor.emit(t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>nm(t,e,this.displayedColumns,this.getFilterDataForColumn,this),this.dataSource.sortData=(t,e)=>im(t,e,this.getSortDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-authors-list"]],viewQuery:function(t,e){if(1&t&&(s.Gf(Jv,7),s.Gf(mm,7)),2&t){let t;s.iGM(t=s.CRH())&&(e.matSort=t.first),s.iGM(t=s.CRH())&&(e.child=t.first)}},inputs:{authors:"authors",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",disableRouting:"disableRouting",reloadTable:"reloadTable",selection:"selection",pageSizeOptions:"pageSizeOptions"},outputs:{addAuthor:"addAuthor",removeAuthor:"removeAuthor"},features:[s.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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,dC,1,0,"th",4),s.YNc(5,pC,2,2,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,fC,3,3,"th",7),s.YNc(8,gC,2,1,"td",8),s.BQk(),s.ynx(9,9),s.YNc(10,mC,3,3,"th",7),s.YNc(11,_C,3,3,"td",10),s.BQk(),s.ynx(12,11),s.YNc(13,wC,3,3,"th",7),s.YNc(14,yC,2,1,"td",10),s.BQk(),s.ynx(15,12),s.YNc(16,bC,3,3,"th",7),s.YNc(17,AC,2,1,"td",10),s.BQk(),s.ynx(18,13),s.YNc(19,vC,3,3,"th",7),s.YNc(20,kC,2,1,"td",10),s.BQk(),s.ynx(21,14),s.YNc(22,TC,1,0,"th",15),s.YNc(23,CC,4,3,"td",8),s.BQk(),s.ynx(24,16),s.YNc(25,SC,1,0,"th",15),s.YNc(26,MC,4,3,"td",8),s.BQk(),s.YNc(27,EC,1,0,"tr",17),s.YNc(28,xC,1,8,"tr",18),s.qZA(),s.qZA(),s.qZA(),s.YNc(29,RC,3,3,"app-alert",19),s.YNc(30,DC,3,3,"app-alert",19)),2&t&&(s.Q6J("hidden",0===e.authors.length||0===e.dataSource.filteredData.length),s.xp6(1),s.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),s.xp6(1),s.Q6J("dataSource",e.dataSource),s.xp6(25),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",0!==e.authors.length&&0===e.dataSource.filteredData.length),s.xp6(1),s.Q6J("ngIf",0===e.authors.length))},directives:[mm,N_,Jv,U_,q_,K_,V_,$_,n.O5,Z_,G_,bb,sk,id,W_,J_,nT,In,hT],pipes:[Vh,dT],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();function PC(t,e){1&t&&s._UZ(0,"mat-spinner",8)}const IC=function(){return["id","name","organization","email","numberOfPublications"]};function OC(t,e){if(1&t&&s._UZ(0,"perun-web-apps-authors-list",9),2&t){const t=s.oxw();s.Q6J("authors",t.authors)("displayedColumns",s.DdM(4,IC))("filterValue",t.filterValue)("tableId",t.tableId)}}let HC=(()=>{class t{constructor(t){this.cabinetService=t,this.filterValue="",this.tableId=lm}ngOnInit(){this.refreshTable()}refreshTable(){this.loading=!0,this.cabinetService.findAllAuthors().subscribe(t=>{this.authors=t,this.loading=!1})}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(V))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s.TgZ(2,"mat-icon",2),s._uU(3,"assignment_ind"),s.qZA(),s.TgZ(4,"span",3),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA(),s.TgZ(7,"perun-web-apps-refresh-button",4),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.TgZ(8,"perun-web-apps-debounce-filter",5),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.YNc(9,PC,1,0,"mat-spinner",6),s.YNc(10,OC,1,5,"perun-web-apps-authors-list",7),s.qZA()),2&t&&(s.xp6(5),s.Oqu(s.lcZ(6,4,"AUTHORS_PAGE.TITLE")),s.xp6(3),s.Q6J("placeholder","AUTHORS_PAGE.FILTER"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[Vg,qT,hC,n.O5,Ym,zC],pipes:[Vh],styles:[""]}),t})();function YC(t,e){1&t&&s._UZ(0,"mat-spinner",4)}function BC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"div",5),s.TgZ(2,"mat-form-field"),s._UZ(3,"input",6),s.ALo(4,"translate"),s.TgZ(5,"mat-error"),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.qZA(),s.TgZ(8,"mat-form-field"),s._UZ(9,"input",6),s.ALo(10,"translate"),s.TgZ(11,"mat-error"),s._uU(12),s.ALo(13,"translate"),s.qZA(),s.qZA(),s.TgZ(14,"p",7),s._uU(15),s.ALo(16,"translate"),s.qZA(),s.qZA(),s.TgZ(17,"div",8),s.TgZ(18,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(19),s.ALo(20,"translate"),s.qZA(),s.TgZ(21,"div",10),s.ALo(22,"translate"),s.TgZ(23,"button",11),s.NdJ("click",function(){return s.CHM(t),s.oxw().onSubmit()}),s._uU(24),s.ALo(25,"translate"),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(3),s.s9C("placeholder",s.lcZ(4,12,"DIALOGS.ADD_CATEGORY.NAME")),s.Q6J("formControl",t.nameCtrl),s.xp6(3),s.hij(" ",s.lcZ(7,14,"DIALOGS.ADD_CATEGORY.FILL_NAME")," "),s.xp6(3),s.s9C("placeholder",s.lcZ(10,16,"DIALOGS.ADD_CATEGORY.RANK")),s.Q6J("formControl",t.rankCtrl),s.xp6(3),s.hij(" ",s.lcZ(13,18,"DIALOGS.ADD_CATEGORY.FILL_RANK")," "),s.xp6(3),s.Oqu(s.lcZ(16,20,"DIALOGS.ADD_CATEGORY.RANK_HINT")),s.xp6(4),s.hij(" ",s.lcZ(20,22,"DIALOGS.ADD_CATEGORY.CANCEL")," "),s.xp6(2),s.s9C("matTooltip",s.lcZ(22,24,"DIALOGS.ADD_CATEGORY.TOOLTIP")),s.Q6J("matTooltipDisabled",t.nameCtrl.valid&&t.rankCtrl.valid),s.xp6(2),s.Q6J("disabled",t.nameCtrl.invalid||t.rankCtrl.invalid),s.xp6(1),s.hij(" ",s.lcZ(25,26,"DIALOGS.ADD_CATEGORY.CREATE")," ")}}let jC=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.notificator=e,this.cabinetManagerService=i,this.translate=n,n.get("DIALOGS.ADD_CATEGORY.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.nameCtrl=new Fp(null,[Qd.required,Qd.pattern("^[\\w.-]+( [\\w.-]+)*$"),Qd.maxLength(128)]),this.rankCtrl=new Fp(null,[Qd.required,Qd.pattern("^[0-9]+(\\.[0-9])?$")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.cabinetManagerService.createCategoryCat({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 t.\u0275fac=function(e){return new(e||t)(s.Y36(dh),s.Y36(Am),s.Y36(V),s.Y36(Gh))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,YC,1,0,"mat-spinner",2),s.YNc(5,BC,26,28,"div",3),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,3,"DIALOGS.ADD_CATEGORY.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[Ah,n.O5,Ym,vh,Bd,Vm,Zd,af,_p,tf,kd,kh,id,Vf],pipes:[Vh],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})();function FC(t,e){1&t&&s._UZ(0,"mat-spinner",5)}function NC(t,e){1&t&&s._UZ(0,"th",14)}function KC(t,e){if(1&t&&(s.TgZ(0,"td",15),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",t.name," ")}}function qC(t,e){1&t&&s._UZ(0,"tr",16)}function UC(t,e){1&t&&s._UZ(0,"tr",17)}function ZC(t,e){if(1&t&&(s.TgZ(0,"div",6),s.TgZ(1,"p"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"div",7),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"table",8),s.ynx(8,9),s.YNc(9,NC,1,0,"th",10),s.YNc(10,KC,2,1,"td",11),s.BQk(),s.YNc(11,qC,1,0,"tr",12),s.YNc(12,UC,1,0,"tr",13),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,5,"DIALOGS.REMOVE_CATEGORY.DESCRIPTION")," "),s.xp6(3),s.hij(" ",s.lcZ(6,7,"DIALOGS.REMOVE_CATEGORY.ASK")," "),s.xp6(2),s.Q6J("dataSource",t.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",t.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",t.displayedColumns)}}function GC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",18),s.TgZ(1,"button",19),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"button",20),s.NdJ("click",function(){return s.CHM(t),s.oxw().onSubmit()}),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,3,"DIALOGS.REMOVE_CATEGORY.CANCEL")," "),s.xp6(2),s.Q6J("disabled",t.loading),s.xp6(1),s.hij(" ",s.lcZ(6,5,"DIALOGS.REMOVE_CATEGORY.DELETE")," ")}}let VC=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.cabinetManagerService=s,this.displayedColumns=["name"],this.categories=[]}ngOnInit(){this.dataSource=new X_(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(t=>{this.loading=!1,this.notificator.showSuccess(t),this.dialogRef.close(!0)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(dh),s.Y36(fh),s.Y36(Am),s.Y36(Gh),s.Y36(V))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,FC,1,0,"mat-spinner",2),s.YNc(5,ZC,13,9,"div",3),s.YNc(6,GC,7,7,"div",4),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,4,"DIALOGS.REMOVE_CATEGORY.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[Ah,n.O5,Ym,vh,N_,U_,q_,K_,V_,$_,Z_,G_,W_,J_,kh,id],pipes:[Vh],styles:[""]}),t})();function $C(t,e){if(1&t&&(s._UZ(0,"input",3),s.ALo(1,"translate")),2&t){const t=s.oxw();s.s9C("placeholder",s.lcZ(1,2,t.placeholder)),s.Q6J("formControl",t.formControl)}}function WC(t,e){if(1&t&&(s._UZ(0,"input",4),s.ALo(1,"translate")),2&t){const t=s.oxw();s.s9C("placeholder",s.lcZ(1,2,t.placeholder)),s.Q6J("formControl",t.formControl)}}let JC=(()=>{class t{constructor(){this.filter=new s.vpe,this.autoFocus=!1,this.formControl=new Fp}ngOnInit(){this.formControl.valueChanges.subscribe(t=>{let e=t.trim();e=e.toLowerCase(),this.filter.emit(e)})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,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","",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(t,e){1&t&&(s.TgZ(0,"mat-form-field",0),s.YNc(1,$C,2,4,"input",1),s.YNc(2,WC,2,4,"input",2),s.qZA()),2&t&&(s.xp6(1),s.Q6J("ngIf",e.autoFocus),s.xp6(1),s.Q6J("ngIf",!e.autoFocus))},directives:[Bd,n.O5,Vm,Zd,iT,_p,tf],pipes:[Vh],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),t})();function QC(t,e){1&t&&s._UZ(0,"mat-spinner",4)}function XC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"div",5),s.TgZ(2,"mat-form-field"),s._UZ(3,"input",6),s.ALo(4,"translate"),s.TgZ(5,"mat-error"),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.qZA(),s.TgZ(8,"p",7),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.qZA(),s.TgZ(11,"div",8),s.TgZ(12,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.TgZ(15,"div",10),s.ALo(16,"translate"),s.TgZ(17,"button",11),s.NdJ("click",function(){return s.CHM(t),s.oxw().onSubmit()}),s._uU(18),s.ALo(19,"translate"),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(3),s.s9C("placeholder",s.lcZ(4,9,"DIALOGS.UPDATE_RANK.RANK")),s.Q6J("formControl",t.rankCtrl),s.xp6(3),s.hij(" ",s.lcZ(7,11,"DIALOGS.UPDATE_RANK.FILL_RANK")," "),s.xp6(3),s.Oqu(s.lcZ(10,13,"DIALOGS.UPDATE_RANK.RANK_HINT")),s.xp6(4),s.hij(" ",s.lcZ(14,15,"DIALOGS.UPDATE_RANK.CANCEL")," "),s.xp6(2),s.s9C("matTooltip",s.lcZ(16,17,"DIALOGS.UPDATE_RANK.TOOLTIP")),s.Q6J("matTooltipDisabled",t.rankCtrl.valid),s.xp6(2),s.Q6J("disabled",t.rankCtrl.invalid),s.xp6(1),s.hij(" ",s.lcZ(19,19,"DIALOGS.UPDATE_RANK.UPDATE")," ")}}let tS=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.cabinetManagerService=n,this.translate=s,this.categoryName="",s.get("DIALOGS.UPDATE_RANK.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.categoryName=this.data.name,this.rankCtrl=new Fp(this.data.rank,[Qd.required,Qd.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 t.\u0275fac=function(e){return new(e||t)(s.Y36(dh),s.Y36(fh),s.Y36(Am),s.Y36(V),s.Y36(Gh))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,QC,1,0,"mat-spinner",2),s.YNc(5,XC,20,21,"div",3),s.qZA()),2&t&&(s.xp6(2),s.AsE("",s.lcZ(3,4,"DIALOGS.UPDATE_RANK.TITLE"),"",e.categoryName,""),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[Ah,n.O5,Ym,vh,Bd,Vm,Zd,af,_p,tf,kd,kh,id,Vf],pipes:[Vh],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})();function eS(t,e){1&t&&s._UZ(0,"th",15)}function iS(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",16),s.TgZ(1,"mat-checkbox",17),s.NdJ("change",function(e){const i=s.CHM(t).$implicit,n=s.oxw();return e?n.itemSelectionToggle(i):null})("click",function(t){return t.stopPropagation()}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function nS(t,e){1&t&&(s.TgZ(0,"th",18),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"CATEGORIES_LIST.ID")))}function sS(t,e){if(1&t&&(s.TgZ(0,"td",19),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.id)}}function oS(t,e){1&t&&(s.TgZ(0,"th",18),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"CATEGORIES_LIST.NAME")))}function rS(t,e){if(1&t&&(s.TgZ(0,"td",20),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.name)}}function aS(t,e){1&t&&(s.TgZ(0,"th",18),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"CATEGORIES_LIST.RANK")))}function cS(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",22),s.NdJ("click",function(){s.CHM(t);const e=s.oxw().$implicit;return s.oxw().updateCategory(e)}),s.TgZ(1,"mat-icon"),s._uU(2,"edit"),s.qZA(),s.qZA()}}function uS(t,e){if(1&t&&(s.TgZ(0,"td",20),s._uU(1),s.YNc(2,cS,3,0,"button",21),s.qZA()),2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.hij("",t.rank," "),s.xp6(1),s.Q6J("ngIf",i.editAuth)}}function lS(t,e){1&t&&s._UZ(0,"tr",23)}function hS(t,e){1&t&&s._UZ(0,"tr",24)}function dS(t,e){1&t&&(s.TgZ(0,"app-alert",25),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"CATEGORIES_PAGE.NO_FILTER_RESULTS"),"\n"))}let pS=(()=>{class t{constructor(t,e,i,n){this.guiAuthResolver=t,this.tableCheckbox=e,this.dialog=i,this.authResolver=n,this.categories=[],this.selection=new bo(!0,[]),this.displayedColumns=["select","id","name","rank"],this.pageSizeOptions=Qg,this.refreshTable=new s.vpe,this.editAuth=!1}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.dataSource=new X_(this.categories),this.setDataSource(),this.dataSource.filter=this.filterValue}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return t.name;case"rank":return t.rank.toString();default:return t[e]}}exportData(t){rm(om(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>nm(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>im(t,e,this.getDataForColumn,this),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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.editAuth=this.authResolver.isCabinetAdmin(),this.dataSource.paginator=this.child.paginator}itemSelectionToggle(t){this.selection.toggle(t)}updateCategory(t){const e=tm();e.width="400px",e.data=t,this.dialog.open(tS,e).afterClosed().subscribe(t=>{t&&this.refreshTable.emit()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(_t),s.Y36(Cm),s.Y36(yh),s.Y36(_t))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-categories-list"]],viewQuery:function(t,e){if(1&t&&(s.Gf(Jv,7),s.Gf(mm,7)),2&t){let t;s.iGM(t=s.CRH())&&(e.matSort=t.first),s.iGM(t=s.CRH())&&(e.child=t.first)}},inputs:{categories:"categories",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions"},outputs:{refreshTable:"refreshTable"},features:[s.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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,eS,1,0,"th",4),s.YNc(5,iS,2,2,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,nS,3,3,"th",7),s.YNc(8,sS,2,1,"td",8),s.BQk(),s.ynx(9,9),s.YNc(10,oS,3,3,"th",7),s.YNc(11,rS,2,1,"td",10),s.BQk(),s.ynx(12,11),s.YNc(13,aS,3,3,"th",7),s.YNc(14,uS,3,2,"td",10),s.BQk(),s.YNc(15,lS,1,0,"tr",12),s.YNc(16,hS,1,0,"tr",13),s.qZA(),s.qZA(),s.qZA(),s.YNc(17,dS,3,3,"app-alert",14)),2&t&&(s.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.categories.length),s.xp6(1),s.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),s.xp6(1),s.Q6J("dataSource",e.dataSource),s.xp6(13),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.categories.length))},directives:[mm,N_,Jv,U_,q_,K_,V_,$_,n.O5,Z_,G_,bb,sk,id,Vg,W_,J_,hT],pipes:[Vh],styles:[""]}),t})();function fS(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().addCategory()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"CATEGORIES_PAGE.CREATE")," "))}function gS(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().removeCategory()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",!t.selected.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"CATEGORIES_PAGE.REMOVE")," ")}}function mS(t,e){1&t&&s._UZ(0,"mat-spinner",10)}const _S=function(){return["select","id","name","rank"]},wS=function(){return["name","rank"]};function yS(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-categories-list",11),s.NdJ("refreshTable",function(){return s.CHM(t),s.oxw().refreshTable()}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("categories",t.categories)("filterValue",t.filterValue)("displayedColumns",t.removeAuth?s.DdM(5,_S):s.DdM(6,wS))("tableId",t.tableId)("selection",t.selected)}}let bS=(()=>{class t{constructor(t,e,i){this.cabinetManagerService=t,this.dialog=e,this.guiAuthResolver=i,this.categories=[],this.selected=new bo(!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(t=>{this.categories=t,this.loading=!1})}applyFilter(t){this.filterValue=t}addCategory(){const t=tm();t.width="400px",t.data={},this.dialog.open(jC,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}removeCategory(){const t=tm();t.width="400px",t.data=this.selected.selected,this.dialog.open(VC,t).afterClosed().subscribe(t=>{t&&(this.selected.clear(),this.refreshTable())})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(V),s.Y36(yh),s.Y36(_t))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",2),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.YNc(5,fS,3,3,"button",3),s.YNc(6,gS,3,4,"button",4),s.TgZ(7,"perun-web-apps-immediate-filter",5),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.YNc(8,mS,1,0,"mat-spinner",6),s.YNc(9,yS,1,7,"perun-web-apps-categories-list",7),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,6,"CATEGORIES_PAGE.TITLE")),s.xp6(3),s.Q6J("ngIf",e.addAuth),s.xp6(1),s.Q6J("ngIf",e.removeAuth),s.xp6(1),s.Q6J("placeholder","CATEGORIES_PAGE.FILTER"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",e.categories&&!e.loading))},directives:[qT,n.O5,JC,id,Ym,pS],pipes:[Vh],styles:[""]}),t})();function AS(t,e){1&t&&(s.TgZ(0,"th",14),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.ID")))}function vS(t,e){if(1&t&&(s.TgZ(0,"td",15),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.id)}}function kS(t,e){1&t&&(s.TgZ(0,"th",14),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.FRIENDLY_NAME")))}function TS(t,e){if(1&t&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.friendlyName)}}function CS(t,e){1&t&&(s.TgZ(0,"th",14),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.LOGIN_NAMESPACE")))}function SS(t,e){if(1&t&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu("empty"===t.loginNamespace?"":t.loginNamespace)}}function MS(t,e){1&t&&(s.TgZ(0,"th",14),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.URL")))}function ES(t,e){if(1&t&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu("empty"===t.url?"":t.url)}}function LS(t,e){1&t&&(s.TgZ(0,"th",14),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.TYPE")))}function xS(t,e){if(1&t&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu("empty"===t.type?"":t.type)}}function RS(t,e){1&t&&s._UZ(0,"tr",17)}function DS(t,e){1&t&&s._UZ(0,"tr",18)}function zS(t,e){1&t&&(s.TgZ(0,"app-alert",19),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let PS=(()=>{class t{constructor(){this.publicationSystems=[],this.displayedColumns=["id","friendlyName","loginNamespace","url","type"],this.pageSizeOptions=Qg}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.dataSource=new X_(this.publicationSystems),this.setDataSource(),this.dataSource.filter=this.filterValue}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"friendlyName":return t.friendlyName;case"url":return t.url;case"loginNamespace":return t.loginNamespace;case"type":return t.type;default:return t[e]}}exportData(t){rm(om(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>nm(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>im(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-publication-systems-list"]],viewQuery:function(t,e){if(1&t&&(s.Gf(Jv,7),s.Gf(mm,7)),2&t){let t;s.iGM(t=s.CRH())&&(e.matSort=t.first),s.iGM(t=s.CRH())&&(e.child=t.first)}},inputs:{publicationSystems:"publicationSystems",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions"},features:[s.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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,AS,3,3,"th",4),s.YNc(5,vS,2,1,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,kS,3,3,"th",4),s.YNc(8,TS,2,1,"td",7),s.BQk(),s.ynx(9,8),s.YNc(10,CS,3,3,"th",4),s.YNc(11,SS,2,1,"td",7),s.BQk(),s.ynx(12,9),s.YNc(13,MS,3,3,"th",4),s.YNc(14,ES,2,1,"td",7),s.BQk(),s.ynx(15,10),s.YNc(16,LS,3,3,"th",4),s.YNc(17,xS,2,1,"td",7),s.BQk(),s.YNc(18,RS,1,0,"tr",11),s.YNc(19,DS,1,0,"tr",12),s.qZA(),s.qZA(),s.qZA(),s.YNc(20,zS,3,3,"app-alert",13)),2&t&&(s.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.publicationSystems.length),s.xp6(1),s.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),s.xp6(1),s.Q6J("dataSource",e.dataSource),s.xp6(16),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.publicationSystems.length))},directives:[mm,N_,Jv,U_,q_,K_,V_,$_,n.O5,Z_,sk,G_,W_,J_,hT],pipes:[Vh],styles:[""]}),t})();function IS(t,e){1&t&&s._UZ(0,"mat-spinner",6)}function OS(t,e){if(1&t&&s._UZ(0,"perun-web-apps-publication-systems-list",7),2&t){const t=s.oxw();s.Q6J("publicationSystems",t.publicationSystems)("filterValue",t.filterValue)("tableId",t.tableId)}}let HS=(()=>{class t{constructor(t){this.cabinetManagerService=t,this.publicationSystems=[],this.filterValue="",this.tableId="5"}ngOnInit(){this.refreshTable()}refreshTable(){this.loading=!0,this.cabinetManagerService.getPublicationSystems().subscribe(t=>{this.publicationSystems=t,this.loading=!1})}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(V))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",2),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.TgZ(5,"perun-web-apps-immediate-filter",3),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.YNc(6,IS,1,0,"mat-spinner",4),s.YNc(7,OS,1,3,"perun-web-apps-publication-systems-list",5),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,4,"PUBLICATION_SYSTEMS_PAGE.TITLE")),s.xp6(3),s.Q6J("placeholder","PUBLICATION_SYSTEMS_PAGE.FILTER"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",e.publicationSystems&&!e.loading))},directives:[qT,JC,n.O5,Ym,PS],pipes:[Vh],styles:[""]}),t})();function YS(t,e){if(1&t&&s._UZ(0,"perun-web-apps-publications-list",11),2&t){const t=s.oxw(2);s.Q6J("publications",t.publications)("selection",t.selected)("tableId",t.tableId)("routerPath","/authors/"+t.author.id+"/publication")}}function BS(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"h5"),s._uU(2),s.ALo(3,"userFullName"),s.ALo(4,"translate"),s.qZA(),s.TgZ(5,"div",6),s.TgZ(6,"perun-web-apps-refresh-button",7),s.NdJ("refresh",function(){return s.CHM(t),s.oxw().refreshTable()}),s.qZA(),s.TgZ(7,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().removePublication()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"perun-web-apps-publication-filter",9),s.NdJ("filteredPublication",function(e){return s.CHM(t),s.oxw().filterPublication(e)}),s.qZA(),s.qZA(),s.YNc(11,YS,1,4,"perun-web-apps-publications-list",10),s.qZA()}if(2&t){const t=s.oxw();s.xp6(2),s.AsE("",s.lcZ(3,5,t.author),"",s.lcZ(4,7,"AUTHOR_DETAIL.TITLE"),""),s.xp6(5),s.Q6J("disabled",0===t.selected.selected.length),s.xp6(1),s.hij(" ",s.lcZ(9,9,"AUTHOR_DETAIL.REMOVE")," "),s.xp6(3),s.Q6J("ngIf",!t.loading)}}function jS(t,e){1&t&&s._UZ(0,"mat-spinner",12)}let FS=(()=>{class t{constructor(t,e,i,n){this.route=t,this.cabinetService=e,this.userService=i,this.dialog=n,this.selected=new bo(!0,[]),this.tableId=hm}ngOnInit(){this.initLoading=!0,this.route.params.subscribe(t=>{this.userService.getUserById(t.authorId).subscribe(t=>{this.author=t,this.initLoading=!1,this.refreshTable()})})}removePublication(){const t=tm();t.width="500px",t.data=this.selected.selected,this.dialog.open(KT,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(null,null,null,null,null,null,null,null,this.author.id).subscribe(t=>{this.publications=t,this.loading=!1})}filterPublication(t){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(t.title,null,null,null,null,t.category,+t.startYear,+t.endYear,this.author.id).subscribe(t=>{this.publications=t,this.loading=!1})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(hi),s.Y36(V),s.Y36(ct),s.Y36(yh))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s.TgZ(2,"mat-icon",2),s._uU(3,"assignment_ind"),s.qZA(),s.TgZ(4,"span",3),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA(),s.YNc(7,BS,12,11,"div",4),s.YNc(8,jS,1,0,"mat-spinner",5),s.qZA()),2&t&&(s.xp6(5),s.Oqu(s.lcZ(6,3,"AUTHORS_PAGE.TITLE")),s.xp6(2),s.Q6J("ngIf",!e.initLoading),s.xp6(1),s.Q6J("ngIf",e.loading||e.initLoading))},directives:[Vg,n.O5,qT,id,eC,BT,Ym],pipes:[Vh,dT],styles:[""]}),t})();const NS=function(){return["id","name","organization","email","add"]};function KS(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-authors-list",15),s.NdJ("addAuthor",function(e){return s.CHM(t),s.oxw(3).addAuthor(e)}),s.qZA()}if(2&t){const t=s.oxw(3);s.Q6J("authors",t.authors)("disableRouting",!0)("tableId",t.tableIdAuthors)("displayedColumns",s.DdM(4,NS))}}function qS(t,e){1&t&&(s.TgZ(0,"app-alert",16),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ADD_AUTHORS.SEARCH_INFO")," "))}function US(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,KS,1,5,"perun-web-apps-authors-list",13),s.YNc(2,qS,3,3,"app-alert",14),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("ngIf",t.firstSearchDone),s.xp6(1),s.Q6J("ngIf",!t.firstSearchDone)}}function ZS(t,e){1&t&&s._UZ(0,"mat-spinner",17)}const GS=function(){return["id","name","organization","email","remove"]};function VS(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-authors-list",19),s.NdJ("removeAuthor",function(e){return s.CHM(t),s.oxw(3).removeAuthor(e)}),s.qZA()}if(2&t){const t=s.oxw(3);s.Q6J("reloadTable",t.reloadTable)("authors",t.authorsToAdd)("disableRouting",!0)("tableId",t.tableIdAuthors)("displayedColumns",s.DdM(5,GS))}}function $S(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,VS,1,6,"perun-web-apps-authors-list",18),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("ngIf",t.firstSearchDone)}}function WS(t,e){1&t&&(s.TgZ(0,"app-alert",20),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ADD_AUTHORS.NO_AUTHORS_TO_ADD")," "))}function JS(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,US,3,2,"div",6),s.YNc(2,ZS,1,0,"mat-spinner",7),s.TgZ(3,"h2",11),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.YNc(6,$S,2,1,"div",6),s.YNc(7,WS,3,3,"app-alert",12),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngIf",!t.searchLoading),s.xp6(1),s.Q6J("ngIf",t.searchLoading),s.xp6(2),s.Oqu(s.lcZ(5,5,"DIALOGS.ADD_AUTHORS.AUTHORS_TO_ADD")),s.xp6(2),s.Q6J("ngIf",t.firstSearchDone&&0!==t.authorsToAdd.length),s.xp6(1),s.Q6J("ngIf",0===t.authorsToAdd.length)}}function QS(t,e){1&t&&s._UZ(0,"mat-spinner",17)}let XS=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.cabinetService=n,this.translate=s,this.loading=!1,this.searchLoading=!1,this.firstSearchDone=!1,this.authors=[],this.alreadyAddedAuthors=[],this.authorsToAdd=[],this.tableIdAuthors=lm,this.selection=new bo(!1,[]),this.reloadTable=!1,s.get("DIALOGS.ADD_AUTHORS.SUCCESS_MESSAGE").subscribe(t=>this.successMessage=t),this.publicationId=e.publicationId,this.alreadyAddedAuthors=e.alreadyAddedAuthors}ngOnInit(){this.searchControl=new Fp("",[Qd.required,Qd.pattern(".*[\\S]+.*")])}onSearchByString(){this.searchLoading=!0;const t=[...this.alreadyAddedAuthors,...this.authorsToAdd];this.cabinetService.findNewAuthors(this.searchControl.value).subscribe(e=>{e=e.filter(e=>t.map(t=>t.id).indexOf(e.id)<=-1),this.authors=e,this.firstSearchDone=!0,this.searchLoading=!1},()=>{this.searchLoading=!1})}onAdd(){if(this.loading=!0,this.authorsToAdd.length){const t=this.authorsToAdd.pop();this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:this.publicationId,userId:t.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(t){this.authors=this.authors.filter(e=>e!==t),this.authorsToAdd.push(t),this.reloadTable=!this.reloadTable}removeAuthor(t){this.authorsToAdd=this.authorsToAdd.filter(e=>e!==t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(dh),s.Y36(fh),s.Y36(Am),s.Y36(V),s.Y36(Gh))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"div",2),s.TgZ(5,"mat-form-field",3),s.TgZ(6,"label"),s.TgZ(7,"input",4),s.NdJ("keyup.enter",function(){return e.onSearchByString()}),s.ALo(8,"translate"),s.qZA(),s.qZA(),s.TgZ(9,"mat-error"),s._uU(10),s.ALo(11,"translate"),s.qZA(),s.qZA(),s.TgZ(12,"button",5),s.NdJ("click",function(){return e.onSearchByString()}),s.TgZ(13,"mat-icon"),s._uU(14,"search"),s.qZA(),s.qZA(),s.YNc(15,JS,8,7,"div",6),s.qZA(),s.YNc(16,QS,1,0,"mat-spinner",7),s.TgZ(17,"div",8),s.TgZ(18,"button",9),s.NdJ("click",function(){return e.onCancel()}),s._uU(19),s.ALo(20,"translate"),s.qZA(),s.TgZ(21,"button",10),s.NdJ("click",function(){return e.onAdd()}),s._uU(22),s.ALo(23,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,10,"DIALOGS.ADD_AUTHORS.TITLE")),s.xp6(5),s.s9C("placeholder",s.lcZ(8,12,"DIALOGS.ADD_AUTHORS.SEARCH_PLACEHOLDER")),s.Q6J("formControl",e.searchControl),s.xp6(3),s.hij(" ",s.lcZ(11,14,"DIALOGS.ADD_AUTHORS.EMPTY_SEARCH_MESSAGE")," "),s.xp6(2),s.Q6J("disabled",e.searchLoading||""===e.searchControl.value.trim()),s.xp6(3),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(3),s.hij(" ",s.lcZ(20,16,"DIALOGS.ADD_AUTHORS.CANCEL")," "),s.xp6(2),s.Q6J("disabled",0===e.authorsToAdd.length||e.loading),s.xp6(1),s.hij(" ",s.lcZ(23,18,"DIALOGS.ADD_AUTHORS.ADD")," "))},directives:[Ah,vh,Bd,Vm,Zd,_p,tf,kd,id,Vg,n.O5,kh,zC,hT,Ym],pipes:[Vh],styles:[".top-margin[_ngcontent-%COMP%]{margin-top:15px}.adjust-width[_ngcontent-%COMP%]{width:300px}"]}),t})();function tM(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",6),s.NdJ("click",function(){return s.CHM(t),s.oxw().onAddAuthors()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"PUBLICATION_DETAIL.ADD")," "))}function eM(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",7),s.NdJ("click",function(){return s.CHM(t),s.oxw().onRemoveAuthors()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selection.selected.length||t.publication.locked),s.xp6(1),s.hij(" ",s.lcZ(2,2,"PUBLICATION_DETAIL.REMOVE")," ")}}function iM(t,e){1&t&&s._UZ(0,"mat-spinner",8)}const nM=function(){return["id","name","organization","email"]},sM=function(){return["select","id","name","organization","email"]};function oM(t,e){if(1&t&&s._UZ(0,"perun-web-apps-authors-list",9),2&t){const t=s.oxw();s.Q6J("authors",t.publication.authors)("selection",t.selection)("filterValue",t.filterValue)("tableId",t.tableId)("displayedColumns",t.publication.locked?s.DdM(5,nM):s.DdM(6,sM))}}let rM=(()=>{class t{constructor(t,e,i,n){this.dialog=t,this.cabinetService=e,this.notificator=i,this.translate=n,this.selection=new bo(!0,[]),this.filterValue="",this.loading=!1,this.tableId=lm}ngOnInit(){this.refresh()}refresh(){this.loading=!0,this.cabinetService.findAuthorsByPublicationId(this.publication.id).subscribe(t=>{this.publication.authors=t,this.selection.clear(),this.loading=!1})}onAddAuthors(){const t=tm();t.width="800px",t.data={publicationId:this.publication.id,alreadyAddedAuthors:this.publication.authors},this.dialog.open(XS,t).afterClosed().subscribe(t=>{t&&(this.selection.clear(),this.refresh())})}onRemoveAuthors(){const t=tm();t.width="800px",t.data={items:this.selection.selected.map(t=>`${t.titleBefore?t.titleBefore:""} ${t.firstName?t.firstName:""} ${t.lastName?t.lastName:""} ${t.titleAfter?t.titleAfter:""}`),title:"DIALOGS.REMOVE_AUTHORS.TITLE",description:"DIALOGS.REMOVE_AUTHORS.DESCRIPTION",theme:"user-theme"},this.dialog.open(rw,t).afterClosed().subscribe(t=>{t&&this.removeAuthors(this.selection.selected)})}removeAuthors(t){if(this.loading=!0,t.length){const e=t.pop();this.cabinetService.deleteAuthorship(this.publication.id,e.id).subscribe(()=>{this.removeAuthors(t)},()=>this.loading=!1)}else this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_AUTHORS.SUCCESS_MESSAGE")),this.selection.clear(),this.refresh()}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yh),s.Y36(V),s.Y36(Am),s.Y36(Gh))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.YNc(1,tM,3,3,"button",1),s.YNc(2,eM,3,4,"button",2),s.TgZ(3,"perun-web-apps-immediate-filter",3),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.YNc(4,iM,1,0,"mat-spinner",4),s.YNc(5,oM,1,7,"perun-web-apps-authors-list",5),s.qZA()),2&t&&(s.xp6(1),s.Q6J("ngIf",!e.publication.locked),s.xp6(1),s.Q6J("ngIf",!e.publication.locked),s.xp6(1),s.Q6J("placeholder","PUBLICATION_DETAIL.FILTER"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[n.O5,JC,id,Ym,zC],pipes:[Vh],styles:[""]}),t})();function aM(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"th",16),s.TgZ(1,"mat-checkbox",17),s.NdJ("change",function(e){s.CHM(t);const i=s.oxw();return e?i.masterToggle():null}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function cM(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",18),s.TgZ(1,"mat-checkbox",19),s.NdJ("change",function(e){const i=s.CHM(t).$implicit,n=s.oxw();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function uM(t,e){1&t&&(s.TgZ(0,"th",20),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.ID")))}function lM(t,e){if(1&t&&(s.TgZ(0,"td",21),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",t.id," ")}}function hM(t,e){1&t&&(s.TgZ(0,"th",20),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NAME")))}function dM(t,e){if(1&t&&(s.TgZ(0,"td",22),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.name)}}function pM(t,e){1&t&&(s.TgZ(0,"th",20),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.CONTACT")))}function fM(t,e){if(1&t&&(s.TgZ(0,"td",22),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.contact)}}function gM(t,e){1&t&&(s.TgZ(0,"th",20),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.TYPE")))}function mM(t,e){if(1&t&&(s.TgZ(0,"td",22),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.type)}}function _M(t,e){1&t&&s._UZ(0,"tr",23)}function wM(t,e){1&t&&s._UZ(0,"tr",24)}function yM(t,e){1&t&&(s.TgZ(0,"app-alert",25),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_OWNERS"),"\n"))}function bM(t,e){1&t&&(s.TgZ(0,"app-alert",25),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_FILTER_OWNERS"),"\n"))}let AM=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.owners=[],this.selection=new bo(!0,[]),this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.pageSizeOptions=Qg}set matSort(t){this.sort=t,this.setDataSource()}ngAfterViewInit(){this.setDataSource()}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return t.name;case"contact":return t.contact;case"type":return t.type;default:return""}}exportData(t){rm(om(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>nm(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>im(t,e,this.getDataForColumn,this),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(t=>"id"!==t)),this.dataSource=new X_(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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(_t),s.Y36(Cm))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-owners-list"]],viewQuery:function(t,e){if(1&t&&(s.Gf(mm,7),s.Gf(Jv,7)),2&t){let t;s.iGM(t=s.CRH())&&(e.child=t.first),s.iGM(t=s.CRH())&&(e.matSort=t.first)}},inputs:{owners:"owners",selection:"selection",tableId:"tableId",filterValue:"filterValue",displayedColumns:"displayedColumns"},features:[s.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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,aM,2,3,"th",4),s.YNc(5,cM,2,2,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,uM,3,3,"th",7),s.YNc(8,lM,2,1,"td",8),s.BQk(),s.ynx(9,9),s.YNc(10,hM,3,3,"th",7),s.YNc(11,dM,2,1,"td",10),s.BQk(),s.ynx(12,11),s.YNc(13,pM,3,3,"th",7),s.YNc(14,fM,2,1,"td",10),s.BQk(),s.ynx(15,12),s.YNc(16,gM,3,3,"th",7),s.YNc(17,mM,2,1,"td",10),s.BQk(),s.YNc(18,_M,1,0,"tr",13),s.YNc(19,wM,1,0,"tr",14),s.qZA(),s.qZA(),s.qZA(),s.YNc(20,yM,3,3,"app-alert",15),s.YNc(21,bM,3,3,"app-alert",15)),2&t&&(s.Q6J("hidden",0===e.owners.length||0===e.dataSource.filteredData.length),s.xp6(1),s.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),s.xp6(1),s.Q6J("dataSource",e.dataSource),s.xp6(16),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",!e.owners.length),s.xp6(1),s.Q6J("ngIf",!e.dataSource.filteredData.length&&e.owners.length))},directives:[mm,N_,Jv,U_,q_,K_,V_,$_,n.O5,Z_,bb,G_,sk,W_,J_,hT],pipes:[Vh],styles:[""]}),t})();function vM(t,e){1&t&&s._UZ(0,"mat-spinner",4)}const kM=function(){return["select","id","name","contact"]};function TM(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"div",5),s.TgZ(2,"perun-web-apps-immediate-filter",6),s.NdJ("filter",function(e){return s.CHM(t),s.oxw().filterValue=e}),s.qZA(),s._UZ(3,"perun-web-apps-owners-list",7),s.qZA(),s.TgZ(4,"div",8),s.TgZ(5,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.TgZ(8,"button",10),s.NdJ("click",function(){return s.CHM(t),s.oxw().onSubmit()}),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(2),s.Q6J("placeholder","DIALOGS.ADD_THANKS.FILTER"),s.xp6(1),s.Q6J("owners",t.owners)("filterValue",t.filterValue)("tableId",t.tableId)("displayedColumns",s.DdM(13,kM))("selection",t.selected),s.xp6(3),s.hij(" ",s.lcZ(7,9,"DIALOGS.ADD_THANKS.CANCEL")," "),s.xp6(2),s.Q6J("disabled",0===t.selected.selected.length||t.loading),s.xp6(1),s.hij(" ",s.lcZ(10,11,"DIALOGS.ADD_THANKS.ADD")," ")}}let CM=(()=>{class t{constructor(t,e,i,n,s,o,r){this.dialogRef=t,this.data=e,this.ownersManagerService=i,this.storeService=n,this.notificator=s,this.translate=o,this.cabinetManagerService=r,this.selected=new bo(!0,[]),this.tableId="73"}ngOnInit(){this.loading=!0;const t=this.storeService.get("allowed_owners_for_thanks");this.ownersManagerService.getAllOwners().subscribe(e=>{this.owners=0!==t.length?e.filter(e=>t.indexOf(e.id)>-1):e,this.owners=this.owners.filter(t=>this.data.thanks.map(t=>t.ownerId).indexOf(t.id)<=-1),this.loading=!1})}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,0===this.selected.selected.length?this.translate.get("DIALOGS.ADD_THANKS.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),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 t.\u0275fac=function(e){return new(e||t)(s.Y36(dh),s.Y36(fh),s.Y36(it),s.Y36(ns),s.Y36(Am),s.Y36(Gh),s.Y36(V))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,vM,1,0,"mat-spinner",2),s.YNc(5,TM,11,14,"div",3),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,3,"DIALOGS.ADD_THANKS.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[Ah,n.O5,Ym,vh,JC,AM,kh,id],pipes:[Vh],styles:[""]}),t})();function SM(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"th",15),s.TgZ(1,"mat-checkbox",16),s.NdJ("change",function(e){s.CHM(t);const i=s.oxw();return e?i.masterToggle():null}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function MM(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",17),s.TgZ(1,"mat-checkbox",18),s.NdJ("change",function(e){const i=s.CHM(t).$implicit,n=s.oxw();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function EM(t,e){1&t&&(s.TgZ(0,"th",19),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"THANKS_LIST.ID")))}function LM(t,e){if(1&t&&(s.TgZ(0,"td",20),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.ownerId)}}function xM(t,e){1&t&&(s.TgZ(0,"th",19),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"THANKS_LIST.NAME")))}function RM(t,e){if(1&t&&(s.TgZ(0,"td",21),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.ownerName)}}function DM(t,e){1&t&&(s.TgZ(0,"th",19),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"THANKS_LIST.CREATED_BY")))}function zM(t,e){if(1&t&&(s.TgZ(0,"td",21),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.createdBy)}}function PM(t,e){1&t&&s._UZ(0,"tr",22)}function IM(t,e){1&t&&s._UZ(0,"tr",23)}function OM(t,e){1&t&&(s.TgZ(0,"app-alert",24),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function HM(t,e){1&t&&(s.TgZ(0,"app-alert",24),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"THANKS_LIST.NO_THANKS"),"\n"))}let YM=(()=>{class t{constructor(t){this.tableCheckbox=t,this.thanks=[],this.filterValue="",this.displayedColumns=["select","id","name","createdBy"],this.pageSizeOptions=Qg,this.selection=new bo(!0,[])}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.dataSource=new X_(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)}getDataForColumn(t,e){switch(e){case"id":return t.ownerId.toString();case"name":return t.ownerName;default:return t[e]}}exportData(t){rm(om(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>nm(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>im(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Cm))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-thanks-list"]],viewQuery:function(t,e){if(1&t&&(s.Gf(Jv,7),s.Gf(mm,7)),2&t){let t;s.iGM(t=s.CRH())&&(e.matSort=t.first),s.iGM(t=s.CRH())&&(e.child=t.first)}},inputs:{thanks:"thanks",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions",selection:"selection"},features:[s.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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,SM,2,3,"th",4),s.YNc(5,MM,2,2,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,EM,3,3,"th",7),s.YNc(8,LM,2,1,"td",8),s.BQk(),s.ynx(9,9),s.YNc(10,xM,3,3,"th",7),s.YNc(11,RM,2,1,"td",10),s.BQk(),s.ynx(12,11),s.YNc(13,DM,3,3,"th",7),s.YNc(14,zM,2,1,"td",10),s.BQk(),s.YNc(15,PM,1,0,"tr",12),s.YNc(16,IM,1,0,"tr",13),s.qZA(),s.qZA(),s.qZA(),s.YNc(17,OM,3,3,"app-alert",14),s.YNc(18,HM,3,3,"app-alert",14)),2&t&&(s.Q6J("hidden",0===e.thanks.length||0===e.dataSource.filteredData.length),s.xp6(1),s.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),s.xp6(1),s.Q6J("dataSource",e.dataSource),s.xp6(13),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",0!==e.thanks.length&&0===e.dataSource.filteredData.length),s.xp6(1),s.Q6J("ngIf",0===e.thanks.length))},directives:[mm,N_,Jv,U_,q_,K_,V_,$_,n.O5,Z_,bb,G_,sk,W_,J_,hT],pipes:[Vh],styles:[""]}),t})();function BM(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",6),s.NdJ("click",function(){return s.CHM(t),s.oxw().onAddThanks()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"PUBLICATION_DETAIL.ADD")," "))}function jM(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",7),s.NdJ("click",function(){return s.CHM(t),s.oxw().onRemoveThanks()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"PUBLICATION_DETAIL.REMOVE")," ")}}function FM(t,e){1&t&&s._UZ(0,"mat-spinner",8)}const NM=function(){return["id","name","createdBy"]},KM=function(){return["select","id","name","createdBy"]};function qM(t,e){if(1&t&&s._UZ(0,"perun-web-apps-thanks-list",9),2&t){const t=s.oxw();s.Q6J("thanks",t.publication.thanks)("filterValue",t.filterValue)("tableId",t.tableId)("displayedColumns",t.publication.locked?s.DdM(5,NM):s.DdM(6,KM))("selection",t.selection)}}let UM=(()=>{class t{constructor(t,e,i,n){this.dialog=t,this.cabinetService=e,this.notificator=i,this.translate=n,this.selection=new bo(!0,[]),this.tableId="70",this.loading=!1,this.filterValue=""}ngOnInit(){this.refresh()}refresh(){this.loading=!0,this.cabinetService.findPublicationById(this.publication.id).subscribe(t=>{this.publication=t,this.selection.clear(),this.loading=!1})}onAddThanks(){const t=tm();t.width="800px",t.data=this.publication,this.dialog.open(CM,t).afterClosed().subscribe(t=>{t&&this.refresh()})}onRemoveThanks(){const t=tm();t.width="450px",t.data={items:this.selection.selected.map(t=>t.ownerName),title:"PUBLICATION_DETAIL.REMOVE_THANKS_DIALOG_TITLE",description:"PUBLICATION_DETAIL.REMOVE_THANKS_DIALOG_DESCRIPTION",theme:"user-theme"},this.dialog.open(rw,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.removeThank())})}removeThank(){0===this.selection.selected.length?this.translate.get("PUBLICATION_DETAIL.REMOVE_THANKS_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.refresh()}):this.cabinetService.deleteThanks(this.selection.selected.pop().id).subscribe(()=>{this.removeThank()})}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yh),s.Y36(V),s.Y36(Am),s.Y36(Gh))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.YNc(1,BM,3,3,"button",1),s.YNc(2,jM,3,4,"button",2),s.TgZ(3,"perun-web-apps-immediate-filter",3),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.YNc(4,FM,1,0,"mat-spinner",4),s.YNc(5,qM,1,7,"perun-web-apps-thanks-list",5),s.qZA()),2&t&&(s.xp6(1),s.Q6J("ngIf",!e.publication.locked),s.xp6(1),s.Q6J("ngIf",!e.publication.locked),s.xp6(1),s.Q6J("placeholder","PUBLICATION_DETAIL.FILTER"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[n.O5,JC,id,Ym,YM],pipes:[Vh],styles:[""]}),t})();function ZM(t,e){1&t&&s._UZ(0,"mat-spinner",2)}function GM(t,e){if(1&t&&(s.TgZ(0,"h3",15),s._uU(1),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Oqu(t.publication.title)}}function VM(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",16),s.NdJ("click",function(){s.CHM(t);const e=s.oxw(2);return e.editing=!e.editing}),s.ALo(1,"translate"),s.TgZ(2,"mat-icon",17),s._uU(3,"edit"),s.qZA(),s.qZA()}2&t&&s.s9C("matTooltip",s.lcZ(1,1,"PUBLICATION_DETAIL.LIST.EDIT"))}function $M(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"PUBLICATION_DETAIL.LIST.EMPTY_ERROR")," "))}function WM(t,e){if(1&t&&(s.TgZ(0,"mat-form-field",18),s._UZ(1,"textarea",19),s.YNc(2,$M,3,3,"mat-error",1),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("formControl",t.titleControl),s.xp6(1),s.Q6J("ngIf",t.titleControl.invalid)}}function JM(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",20),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).save()}),s.ALo(1,"translate"),s.TgZ(2,"mat-icon",17),s._uU(3,"save"),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(2);s.s9C("matTooltip",s.lcZ(1,2,"PUBLICATION_DETAIL.LIST.SAVE")),s.Q6J("disabled",t.titleControl.invalid)}}function QM(t,e){1&t&&s._UZ(0,"th",21)}function XM(t,e){if(1&t&&(s.TgZ(0,"td",22),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",t.key,": ")}}function tE(t,e){1&t&&s._UZ(0,"th",21)}function eE(t,e){if(1&t&&(s.TgZ(0,"span"),s._uU(1),s.TgZ(2,"span",24),s._uU(3),s.ALo(4,"translate"),s.qZA(),s._uU(5),s.TgZ(6,"span",24),s._uU(7),s.ALo(8,"translate"),s.qZA(),s._uU(9),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw(2);s.xp6(1),s.hij(" ",t.value," / "),s.xp6(2),s.hij("",s.lcZ(4,5,"PUBLICATION_DETAIL.LIST.EXT_ID"),":"),s.xp6(2),s.hij(" ",e.publication.externalId," "),s.xp6(2),s.hij("",s.lcZ(8,7,"PUBLICATION_DETAIL.LIST.SYSTEM"),":"),s.xp6(2),s.hij(" ",e.publication.pubSystemName," ")}}function iE(t,e){if(1&t&&(s.TgZ(0,"span"),s._uU(1),s.ALo(2,"date"),s.qZA()),2&t){const t=s.oxw().$implicit;s.xp6(1),s.hij(" ",s.xi3(2,1,t.value,"dd/MM/yyyy")," ")}}function nE(t,e){if(1&t&&(s.TgZ(0,"span"),s._uU(1),s.qZA()),2&t){const t=s.oxw().$implicit;s.xp6(1),s.hij(" ",t.value," ")}}function sE(t,e){if(1&t&&(s.TgZ(0,"span"),s._uU(1),s.qZA()),2&t){const t=s.oxw(3).$implicit;s.xp6(1),s.hij(" ",t.value," ")}}function oE(t,e){if(1&t&&(s.TgZ(0,"span"),s.YNc(1,sE,2,1,"span",1),s.qZA()),2&t){const t=s.oxw(2).$implicit;s.xp6(1),s.Q6J("ngIf","Id / Origin"!==t.key&&"Create date"!==t.key&&"Created by"!==t.key)}}function rE(t,e){1&t&&(s.TgZ(0,"span"),s._uU(1," - "),s.qZA())}function aE(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,oE,2,1,"span",1),s.YNc(2,rE,2,0,"span",1),s.qZA()),2&t){const t=s.oxw().$implicit;s.xp6(1),s.Q6J("ngIf",null!==t.value&&""!==t.value),s.xp6(1),s.Q6J("ngIf",null===t.value||""===t.value)}}function cE(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-form-field",26),s.NdJ("click",function(){return s.CHM(t),s.MAs(7).open()}),s.TgZ(1,"mat-label"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s._UZ(4,"input",27),s._UZ(5,"mat-datepicker-toggle",28),s.TgZ(6,"mat-datepicker",29,30),s.NdJ("yearSelected",function(e){s.CHM(t);const i=s.MAs(7);return s.oxw(4).chosenYearHandler(e,i)}),s.qZA(),s.qZA()}if(2&t){const t=s.MAs(7),e=s.oxw(4);s.xp6(2),s.Oqu(s.lcZ(3,5,"PUBLICATION_DETAIL.LIST.YEAR")),s.xp6(2),s.Q6J("max",e.maxYear)("matDatepicker",t)("formControl",e.yearControl),s.xp6(1),s.Q6J("for",t)}}function uE(t,e){if(1&t&&(s.TgZ(0,"mat-option",33),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t.name),s.xp6(1),s.hij(" ",t.name," ")}}function lE(t,e){if(1&t&&(s.TgZ(0,"mat-form-field"),s.TgZ(1,"mat-select",31),s.YNc(2,uE,2,2,"mat-option",32),s.qZA(),s.qZA()),2&t){const t=s.oxw(4);s.xp6(1),s.Q6J("formControl",t.categoryControl),s.xp6(1),s.Q6J("ngForOf",t.categories)}}function hE(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"PUBLICATION_DETAIL.LIST.RANK_ERROR")," "))}function dE(t,e){if(1&t&&(s.TgZ(0,"mat-form-field"),s._UZ(1,"input",34),s.YNc(2,hE,3,3,"mat-error",1),s.qZA()),2&t){const t=s.oxw(4);s.xp6(1),s.Q6J("formControl",t.rankControl),s.xp6(1),s.Q6J("ngIf",t.rankControl.invalid)}}function pE(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-form-field",18),s.TgZ(1,"input",35),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(4).publication.isbn=e}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(4);s.xp6(1),s.Q6J("ngModel",t.publication.isbn)}}function fE(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-form-field",18),s.TgZ(1,"input",35),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(4).publication.doi=e}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(4);s.xp6(1),s.Q6J("ngModel",t.publication.doi)}}function gE(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-form-field",18),s.TgZ(1,"textarea",36),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(4).publication.main=e}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(4);s.xp6(1),s.Q6J("ngModel",t.publication.main)}}function mE(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,cE,8,7,"mat-form-field",25),s.YNc(2,lE,3,2,"mat-form-field",1),s.YNc(3,dE,3,2,"mat-form-field",1),s.YNc(4,pE,2,1,"mat-form-field",6),s.YNc(5,fE,2,1,"mat-form-field",6),s.YNc(6,gE,2,1,"mat-form-field",6),s.qZA()),2&t){const t=s.oxw().$implicit;s.xp6(1),s.Q6J("ngIf","Year"===t.key),s.xp6(1),s.Q6J("ngIf","Category"===t.key),s.xp6(1),s.Q6J("ngIf","Rank"===t.key),s.xp6(1),s.Q6J("ngIf","ISBN / ISSN"===t.key),s.xp6(1),s.Q6J("ngIf","DOI"===t.key),s.xp6(1),s.Q6J("ngIf","Full cite"===t.key)}}function _E(t,e){if(1&t&&(s.TgZ(0,"td",23),s.YNc(1,eE,10,9,"span",1),s.YNc(2,iE,3,4,"span",1),s.YNc(3,nE,2,1,"span",1),s.YNc(4,aE,3,2,"div",1),s.YNc(5,mE,7,6,"div",1),s.qZA()),2&t){const t=e.$implicit,i=s.oxw(2);s.xp6(1),s.Q6J("ngIf","Id / Origin"===t.key),s.xp6(1),s.Q6J("ngIf","Create date"===t.key),s.xp6(1),s.Q6J("ngIf","Created by"===t.key),s.xp6(1),s.Q6J("ngIf",!i.editing),s.xp6(1),s.Q6J("ngIf",i.editing)}}function wE(t,e){1&t&&s._UZ(0,"tr",37)}function yE(t,e){if(1&t&&(s.TgZ(0,"div"),s.TgZ(1,"div",3),s.YNc(2,GM,2,1,"h3",4),s.YNc(3,VM,4,3,"button",5),s.YNc(4,WM,3,2,"mat-form-field",6),s.YNc(5,JM,4,4,"button",7),s.qZA(),s.TgZ(6,"table",8),s.ynx(7,9),s.YNc(8,QM,1,0,"th",10),s.YNc(9,XM,2,1,"td",11),s.BQk(),s.ynx(10,12),s.YNc(11,tE,1,0,"th",10),s.YNc(12,_E,6,5,"td",13),s.BQk(),s.YNc(13,wE,1,0,"tr",14),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.Q6J("ngIf",!t.editing),s.xp6(1),s.Q6J("ngIf",!t.editing&&!t.publication.locked),s.xp6(1),s.Q6J("ngIf",t.editing),s.xp6(1),s.Q6J("ngIf",t.editing),s.xp6(1),s.Q6J("dataSource",t.dataSource),s.xp6(7),s.Q6J("matRowDefColumns",t.displayedColumns)}}const bE=UT,AE={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let vE=(()=>{class t{constructor(t,e,i){this.cabinetService=t,this.notificator=e,this.translate=i,this.categories=[],this.edited=new s.vpe,this.loading=!1,this.dataSource=null,this.displayedColumns=["key","value"],this.isChanging=new bo(!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 t=0;tt.name===this.categoryControl.value).id,e={id:this.publication.id,externalId:this.publication.externalId,publicationSystemId:this.publication.publicationSystemId,title:this.titleControl.value,year:this.yearControl.value.year(),main:this.publication.main,isbn:this.publication.isbn,doi:this.publication.doi,categoryId:t,rank:this.rankControl.value,locked:this.publication.locked,createdBy:this.publication.createdBy,createdDate:this.publication.createdDate};this.cabinetService.updatePublication({publication:e}).subscribe(()=>{this.translate.get("PUBLICATION_DETAIL.CHANGE_PUBLICATION_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.edited.emit(!0),this.loading=!1})},()=>this.loading=!1)}chosenYearHandler(t,e){const i=this.yearControl.value;i.year(t.year()),this.yearControl.setValue(i),e.close()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(V),s.Y36(Am),s.Y36(Gh))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-publication-detail-list"]],inputs:{publication:"publication",categories:"categories"},outputs:{edited:"edited"},features:[s._Bn([{provide:Al,useClass:$T,deps:[bl]},{provide:vl,useValue:AE}])],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(t,e){1&t&&(s.TgZ(0,"div"),s.YNc(1,ZM,1,0,"mat-spinner",0),s.YNc(2,yE,14,6,"div",1),s.qZA()),2&t&&(s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[n.O5,Ym,N_,U_,q_,K_,$_,id,Vf,Vg,Bd,Vm,Zd,_p,tf,kd,Z_,G_,Ld,Fv,Kv,zd,Ov,Df,n.sg,nh,$p,J_],pipes:[Vh,n.uU],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}"]}),t})();function kE(t,e){1&t&&s._UZ(0,"mat-spinner",3)}function TE(t,e){1&t&&(s.TgZ(0,"h1",11),s.TgZ(1,"span"),s.TgZ(2,"mat-icon",12),s._uU(3,"assignment_ind"),s.qZA(),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(4),s.hij(" ",s.lcZ(5,1,"AUTHORS_PAGE.TITLE")," "))}function CE(t,e){1&t&&(s.TgZ(0,"h1",11),s._UZ(1,"mat-icon",13),s.TgZ(2,"span",14),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(3),s.Oqu(s.lcZ(4,1,"ALL_PUBLICATIONS.TITLE")))}function SE(t,e){1&t&&(s.TgZ(0,"h1",11),s.TgZ(1,"span"),s.TgZ(2,"mat-icon",12),s._uU(3,"local_library"),s.qZA(),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(4),s.hij(" ",s.lcZ(5,1,"MY_PUBLICATIONS.TITLE")," "))}function ME(t,e){if(1&t&&(s.TgZ(0,"h5",15),s._uU(1),s.ALo(2,"userFullName"),s.ALo(3,"translate"),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.AsE("",s.lcZ(2,2,t.mainAuthor),"",s.lcZ(3,4,"AUTHOR_DETAIL.TITLE"),"")}}function EE(t,e){1&t&&(s.TgZ(0,"span",16),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"PUBLICATION_DETAIL.LOCKED")," "))}function LE(t,e){1&t&&(s.TgZ(0,"mat-icon"),s._uU(1," lock "),s.qZA())}function xE(t,e){1&t&&(s.TgZ(0,"span",16),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"PUBLICATION_DETAIL.UNLOCKED")," "))}function RE(t,e){1&t&&(s.TgZ(0,"mat-icon"),s._uU(1," lock_open "),s.qZA())}function DE(t,e){1&t&&s._UZ(0,"mat-spinner",3)}function zE(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-publication-detail-list",17),s.NdJ("edited",function(){return s.CHM(t),s.oxw(2).refreshPublication()}),s.qZA()}if(2&t){const t=s.oxw(2);s.Q6J("publication",t.publication)("categories",t.categories)}}function PE(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.YNc(1,TE,6,3,"h1",4),s.YNc(2,CE,5,3,"h1",4),s.YNc(3,SE,6,3,"h1",4),s.YNc(4,ME,4,6,"h5",5),s.TgZ(5,"h5"),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.TgZ(8,"h6"),s._uU(9),s.ALo(10,"translate"),s.TgZ(11,"button",6),s.NdJ("click",function(){return s.CHM(t),s.oxw().changeLock()}),s.YNc(12,EE,3,3,"span",7),s.YNc(13,LE,2,0,"mat-icon",2),s.YNc(14,xE,3,3,"span",7),s.YNc(15,RE,2,0,"mat-icon",2),s.qZA(),s.qZA(),s.TgZ(16,"mat-card"),s.TgZ(17,"mat-card-content"),s.YNc(18,DE,1,0,"mat-spinner",1),s.YNc(19,zE,1,2,"perun-web-apps-publication-detail-list",8),s.qZA(),s.qZA(),s.TgZ(20,"mat-card",9),s.TgZ(21,"mat-card-title"),s._uU(22),s.ALo(23,"translate"),s.qZA(),s.TgZ(24,"mat-card-content"),s._UZ(25,"perun-web-apps-add-authors",10),s.qZA(),s.qZA(),s.TgZ(26,"mat-card",9),s.TgZ(27,"mat-card-title"),s._uU(28),s.ALo(29,"translate"),s.qZA(),s.TgZ(30,"mat-card-content"),s._UZ(31,"perun-web-apps-add-thanks",10),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngIf","authors"===t.mode),s.xp6(1),s.Q6J("ngIf","all"===t.mode),s.xp6(1),s.Q6J("ngIf","my"===t.mode),s.xp6(1),s.Q6J("ngIf",void 0!==t.mainAuthor),s.xp6(2),s.Oqu(s.lcZ(7,18,"PUBLICATION_DETAIL.TITLE")),s.xp6(3),s.hij(" ",s.lcZ(10,20,"PUBLICATION_DETAIL.LOCK_INFO")," "),s.xp6(3),s.Q6J("ngIf",t.publication.locked),s.xp6(1),s.Q6J("ngIf",t.publication.locked),s.xp6(1),s.Q6J("ngIf",!t.publication.locked),s.xp6(1),s.Q6J("ngIf",!t.publication.locked),s.xp6(3),s.Q6J("ngIf",t.loading||t.pubLoading),s.xp6(1),s.Q6J("ngIf",!t.pubLoading&&!t.loading),s.xp6(3),s.hij(" ",s.lcZ(23,22,"PUBLICATION_DETAIL.AUTHORS")," "),s.xp6(3),s.Q6J("publication",t.publication)("selection",t.selectionAuthors),s.xp6(3),s.hij(" ",s.lcZ(29,24,"PUBLICATION_DETAIL.ACKNOWLEDGEMENT")," "),s.xp6(3),s.Q6J("publication",t.publication)("selection",t.selectionThanks)}}let IE=(()=>{class t{constructor(t,e,i,n,s,o,r){this.route=t,this.cabinetService=e,this.matIconRegistry=i,this.domSanitizer=n,this.dialog=s,this.notificator=o,this.translate=r,this.loading=!1,this.pubLoading=!1,this.initLoading=!1,this.selectionAuthors=new bo(!0,[]),this.selectionThanks=new bo(!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(t=>{this.publicationId=t.publicationId,this.mainAuthorId=parseInt(t.authorId,10),this.setMode(),this.loadAllData()})}setMode(){const t=location.pathname;this.mode=t.includes("my")?"my":t.includes("all")?"all":t.includes("import")?"import":t.includes("create")?"create":"authors"}loadAllData(){this.loading=!0,this.cabinetService.findPublicationById(this.publicationId).subscribe(t=>{this.publication=t,this.cabinetService.getCategories().subscribe(t=>{this.categories=t,this.loading=!1,this.initLoading=!1})})}refreshPublication(){this.pubLoading=!0,this.cabinetService.findPublicationById(this.publicationId).subscribe(t=>{this.publication=t,this.pubLoading=!1})}changeLock(){this.pubLoading=!0,this.cabinetService.lockPublications({publications:[{id:this.publication.id,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 t.\u0275fac=function(e){return new(e||t)(s.Y36(hi),s.Y36(V),s.Y36(Bg),s.Y36(z),s.Y36(yh),s.Y36(Am),s.Y36(Gh))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.YNc(1,kE,1,0,"mat-spinner",1),s.YNc(2,PE,32,26,"div",2),s.qZA()),2&t&&(s.xp6(1),s.Q6J("ngIf",e.initLoading),s.xp6(1),s.Q6J("ngIf",!e.initLoading))},directives:[n.O5,Ym,id,ab,ob,rb,rM,UM,Vg,vE],pipes:[Vh,dT],styles:[".icon-size[_ngcontent-%COMP%]{width:32px;height:32px}.align-icon[_ngcontent-%COMP%]{vertical-align:text-top}"]}),t})(),OE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,nd,$g,Vn,eT,$h,jd,lf,$m,rk]]}),t})(),HE=(()=>{class t{constructor(t){this.auth=t}startAuth(){this.auth.startAuthentication()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Sh))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.TgZ(3,"h4",3),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"button",4),s.NdJ("click",function(){return e.startAuth()}),s._uU(7),s.ALo(8,"translate"),s.TgZ(9,"mat-icon"),s._uU(10," login "),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(4),s.hij(" ",s.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),s.xp6(3),s.hij(" ",s.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},directives:[id,Vg],pipes:[Vh],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),t})();function YE(t,e){1&t&&(s.TgZ(0,"app-alert",8),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}let BE=(()=>{class t{constructor(t,e,i){this.authzService=t,this.dialog=e,this.translate=i,this.wrongUsernameOrPassword=!1}ngOnInit(){this.usernameCtrl=new Fp(null,[Qd.required]),this.passwordCtrl=new Fp(null,[Qd.required])}startAuth(){sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe(t=>{sessionStorage.setItem("baPrincipal",JSON.stringify(t)),location.reload()},()=>{this.wrongUsernameOrPassword=!0})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(G),s.Y36(yh),s.Y36(Gh))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.TgZ(3,"h2"),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.YNc(6,YE,3,3,"app-alert",3),s.TgZ(7,"mat-form-field",4),s.TgZ(8,"mat-label"),s._uU(9),s.ALo(10,"translate"),s.qZA(),s._UZ(11,"input",5),s.TgZ(12,"mat-error"),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.qZA(),s.TgZ(15,"mat-form-field",4),s.TgZ(16,"mat-label"),s._uU(17),s.ALo(18,"translate"),s.qZA(),s._UZ(19,"input",6),s.TgZ(20,"mat-error"),s._uU(21),s.ALo(22,"translate"),s.qZA(),s.qZA(),s.TgZ(23,"button",7),s.NdJ("click",function(){return e.startAuth()}),s._uU(24),s.ALo(25,"translate"),s.TgZ(26,"mat-icon"),s._uU(27," login "),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(4),s.Oqu(s.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),s.xp6(2),s.Q6J("ngIf",e.wrongUsernameOrPassword),s.xp6(3),s.Oqu(s.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),s.xp6(2),s.Q6J("formControl",e.usernameCtrl),s.xp6(2),s.hij(" ",s.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),s.xp6(4),s.Oqu(s.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),s.xp6(2),s.Q6J("formControl",e.passwordCtrl)("type","password"),s.xp6(2),s.hij(" ",s.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),s.xp6(2),s.Q6J("disabled",e.usernameCtrl.invalid||e.passwordCtrl.invalid),s.xp6(1),s.hij(" ",s.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},directives:[n.O5,Bd,Ld,Vm,Zd,af,_p,tf,kd,id,Vg,hT],pipes:[Vh],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}"]}),t})();function jE(t,e){1&t&&s.Hsn(0)}const FE=["*"];function NE(t,e){}const KE=function(t){return{animationDuration:t}},qE=function(t,e){return{value:t,params:e}},UE=["tabBodyWrapper"],ZE=["tabHeader"];function GE(t,e){}function VE(t,e){if(1&t&&s.YNc(0,GE,0,0,"ng-template",9),2&t){const t=s.oxw().$implicit;s.Q6J("cdkPortalOutlet",t.templateLabel)}}function $E(t,e){if(1&t&&s._uU(0),2&t){const t=s.oxw().$implicit;s.Oqu(t.textLabel)}}function WE(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",6),s.NdJ("click",function(){const e=s.CHM(t),i=e.$implicit,n=e.index,o=s.oxw(),r=s.MAs(1);return o._handleClick(i,r,n)})("cdkFocusChange",function(e){const i=s.CHM(t).index;return s.oxw()._tabFocusChanged(e,i)}),s.TgZ(1,"div",7),s.YNc(2,VE,1,1,"ng-template",8),s.YNc(3,$E,1,1,"ng-template",8),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=s.oxw();s.ekj("mat-tab-label-active",n.selectedIndex==i),s.Q6J("id",n._getTabLabelId(i))("disabled",t.disabled)("matRippleDisabled",t.disabled||n.disableRipple),s.uIk("tabIndex",n._getTabIndex(t,i))("aria-posinset",i+1)("aria-setsize",n._tabs.length)("aria-controls",n._getTabContentId(i))("aria-selected",n.selectedIndex==i)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),s.xp6(2),s.Q6J("ngIf",t.templateLabel),s.xp6(1),s.Q6J("ngIf",!t.templateLabel)}}function JE(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-tab-body",10),s.NdJ("_onCentered",function(){return s.CHM(t),s.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(e){return s.CHM(t),s.oxw()._setTabBodyWrapperHeight(e)}),s.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=s.oxw();s.ekj("mat-tab-body-active",n.selectedIndex==i),s.Q6J("id",n._getTabContentId(i))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",n.animationDuration),s.uIk("aria-labelledby",n._getTabLabelId(i))}}const QE=["tabListContainer"],XE=["tabList"],tL=["nextPaginator"],eL=["previousPaginator"],iL=new s.OlP("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let nL=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=i,this._animationMode=n}alignToElement(t){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(t))}):this._setStyles(t)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(t){const e=this._inkBarPositioner(t),i=this._elementRef.nativeElement;i.style.left=e.left,i.style.width=e.width}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(iL),s.Y36(el,8))},t.\u0275dir=s.lG2({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t})();const sL=new s.OlP("MatTabContent");let oL=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","matTabContent",""]],features:[s._Bn([{provide:sL,useExisting:t}])]}),t})();const rL=new s.OlP("MatTabLabel");let aL=(()=>{class t extends Po{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[s._Bn([{provide:rL,useExisting:t}]),s.qOj]}),t})();class cL{}const uL=fl(cL),lL=new s.OlP("MAT_TAB_GROUP");let hL=(()=>{class t extends uL{constructor(t,e){super(),this._viewContainerRef=t,this._closestTabGroup=e,this.textLabel="",this._contentPortal=null,this._stateChanges=new At.xQ,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}get content(){return this._contentPortal}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new xo(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&(this._templateLabel=t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(lL,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,rL,5),s.Suo(i,sL,7,s.Rgc)),2&t){let t;s.iGM(t=s.CRH())&&(e.templateLabel=t.first),s.iGM(t=s.CRH())&&(e._explicitContent=t.first)}},viewQuery:function(t,e){if(1&t&&s.Gf(s.Rgc,7),2&t){let t;s.iGM(t=s.CRH())&&(e._implicitContent=t.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[s.qOj,s.TTD],ngContentSelectors:FE,decls:1,vars:0,template:function(t,e){1&t&&(s.F$t(),s.YNc(0,jE,1,0,"ng-template"))},encapsulation:2}),t})();const dL={translateTab:_a("translateTab",[va("center, void, left-origin-center, right-origin-center",Aa({transform:"none"})),va("left",Aa({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),va("right",Aa({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),Ta("* => left, * => right, left => center, right => center",wa("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Ta("void => left-origin-center",[Aa({transform:"translate3d(-100%, 0, 0)"}),wa("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Ta("void => right-origin-center",[Aa({transform:"translate3d(100%, 0, 0)"}),wa("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let pL=(()=>{class t extends Io{constructor(t,e,i,n){super(t,e,n),this._host=i,this._centeringSub=te.w.EMPTY,this._leavingSub=te.w.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Ot(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s._Vd),s.Y36(s.s_b),s.Y36((0,s.Gpc)(()=>gL)),s.Y36(n.K0))},t.\u0275dir=s.lG2({type:t,selectors:[["","matTabBodyHost",""]],features:[s.qOj]}),t})(),fL=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._dir=e,this._dirChangeSubscription=te.w.EMPTY,this._translateTabComplete=new At.xQ,this._onCentering=new s.vpe,this._beforeCentering=new s.vpe,this._afterLeavingCenter=new s.vpe,this._onCentered=new s.vpe(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe(t=>{this._computePositionAnimationState(t),i.markForCheck()})),this._translateTabComplete.pipe(Es((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(t){this._positionIndex=t,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){const e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}_computePositionAnimationState(t=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}_computePositionFromOrigin(t){const e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(mo,8),s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),gL=(()=>{class t extends fL{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(mo,8),s.Y36(s.sBO))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){if(1&t&&s.Gf(Io,5),2&t){let t;s.iGM(t=s.CRH())&&(e._portalHost=t.first)}},hostAttrs:[1,"mat-tab-body"],features:[s.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(s.TgZ(0,"div",0,1),s.NdJ("@translateTab.start",function(t){return e._onTranslateTabStarted(t)})("@translateTab.done",function(t){return e._translateTabComplete.next(t)}),s.YNc(2,NE,0,0,"ng-template",2),s.qZA()),2&t&&s.Q6J("@translateTab",s.WLB(3,qE,e._position,s.VKq(1,KE,e.animationDuration)))},directives:[pL],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[dL.translateTab]}}),t})();const mL=new s.OlP("MAT_TABS_CONFIG");let _L=0;class wL{}class yL{constructor(t){this._elementRef=t}}const bL=gl(ml(yL),"primary");let AL=(()=>{class t extends bL{constructor(t,e,i,n){super(t),this._changeDetectorRef=e,this._animationMode=n,this._tabs=new s.n_E,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=te.w.EMPTY,this._tabLabelSubscription=te.w.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new s.vpe,this.focusChange=new s.vpe,this.animationDone=new s.vpe,this.selectedTabChange=new s.vpe(!0),this._groupId=_L++,this.animationDuration=i&&i.animationDuration?i.animationDuration:"500ms",this.disablePagination=!(!i||null==i.disablePagination)&&i.disablePagination,this.dynamicHeight=!(!i||null==i.dynamicHeight)&&i.dynamicHeight}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(t){this._dynamicHeight=ss(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=os(t,null)}get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement;e.classList.remove(`mat-background-${this.backgroundColor}`),t&&e.classList.add(`mat-background-${t}`),this._backgroundColor=t}ngAfterContentChecked(){const t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){const e=null==this._selectedIndex;if(!e){this.selectedTabChange.emit(this._createChangeEvent(t));const e=this._tabBodyWrapper.nativeElement;e.style.minHeight=e.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((e,i)=>e.isActive=i===t),e||(this.selectedIndexChange.emit(t),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((e,i)=>{e.position=i-t,null==this._selectedIndex||0!=e.position||e.origin||(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let e=0;e{this._tabs.reset(t.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()}focusTab(t){const e=this._tabHeader;e&&(e.focusIndex=t)}_focusChanged(t){this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){const e=new wL;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,Ho.T)(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){const t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,e,i){t.disabled||(this.selectedIndex=e.focusIndex=i)}_getTabIndex(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}_tabFocusChanged(t,e){t&&(this._tabHeader.focusIndex=e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(mL,8),s.Y36(el,8))},t.\u0275dir=s.lG2({type:t,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[s.qOj]}),t})(),vL=(()=>{class t extends AL{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(mL,8),s.Y36(el,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-tab-group"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,hL,5),2&t){let t;s.iGM(t=s.CRH())&&(e._allTabs=t)}},viewQuery:function(t,e){if(1&t&&(s.Gf(UE,5),s.Gf(ZE,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._tabBodyWrapper=t.first),s.iGM(t=s.CRH())&&(e._tabHeader=t.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&s.ekj("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[s._Bn([{provide:lL,useExisting:t}]),s.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","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(s.TgZ(0,"mat-tab-header",0,1),s.NdJ("indexFocused",function(t){return e._focusChanged(t)})("selectFocusedIndex",function(t){return e.selectedIndex=t}),s.YNc(2,WE,4,14,"div",2),s.qZA(),s.TgZ(3,"div",3,4),s.YNc(5,JE,1,8,"mat-tab-body",5),s.qZA()),2&t&&(s.Q6J("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),s.xp6(2),s.Q6J("ngForOf",e._tabs),s.xp6(1),s.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode),s.xp6(2),s.Q6J("ngForOf",e._tabs))},directives:function(){return[LL,n.sg,CL,ql,ca,n.O5,Io,gL]},styles:[".mat-tab-group{display:flex;flex-direction:column}.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}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.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-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;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}\n"],encapsulation:2}),t})();class kL{}const TL=fl(kL);let CL=(()=>{class t extends TL{constructor(t){super(),this.elementRef=t}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(s.uIk("aria-disabled",!!e.disabled),s.ekj("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[s.qOj]}),t})();const SL=uo({passive:!0});let ML=(()=>{class t{constructor(t,e,i,n,o,r,a){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=i,this._dir=n,this._ngZone=o,this._platform=r,this._animationMode=a,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new At.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new At.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new s.vpe,this.indexFocused=new s.vpe,o.runOutsideAngular(()=>{ds(t.nativeElement,"mouseleave").pipe(js(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=os(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}ngAfterViewInit(){ds(this._previousPaginator.nativeElement,"touchstart",SL).pipe(js(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),ds(this._nextPaginator.nativeElement,"touchstart",SL).pipe(js(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:(0,bt.of)("ltr"),e=this._viewportRuler.change(150),i=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Ur(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),(0,Ho.T)(t,e,this._items.changes).pipe(js(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(i)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(js(this._destroyed)).subscribe(t=>{this.indexFocused.emit(t),this._setTabFocus(t)})}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(t){if(!Go(t))switch(t.keyCode){case jo:case No:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){const t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",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(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}_isValidIndex(t){if(!this._items)return!0;const e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();const e=this._tabListContainer.nativeElement,i=this._getLayoutDirection();e.scrollLeft="ltr"==i?0:e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(e)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;const e=this._items?this._items.toArray()[t]:null;if(!e)return;const i=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:n,offsetWidth:s}=e.elementRef.nativeElement;let o,r;"ltr"==this._getLayoutDirection()?(o=n,r=o+s):(r=this._tabList.nativeElement.offsetWidth-n,o=r-s);const a=this.scrollDistance,c=this.scrollDistance+i;oc&&(this.scrollDistance+=r-c+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}_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._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&null!=e.button&&0!==e.button||(this._stopInterval(),Hs(650,100).pipe(js((0,Ho.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:e,distance:i}=this._scrollHeader(t);(0===i||i>=e)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(Co),s.Y36(mo,8),s.Y36(s.R0b),s.Y36(eo),s.Y36(el,8))},t.\u0275dir=s.lG2({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),EL=(()=>{class t extends ML{constructor(t,e,i,n,s,o,r){super(t,e,i,n,s,o,r),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=ss(t)}_itemSelected(t){t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(Co),s.Y36(mo,8),s.Y36(s.R0b),s.Y36(eo),s.Y36(el,8))},t.\u0275dir=s.lG2({type:t,inputs:{disableRipple:"disableRipple"},features:[s.qOj]}),t})(),LL=(()=>{class t extends EL{constructor(t,e,i,n,s,o,r){super(t,e,i,n,s,o,r)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(Co),s.Y36(mo,8),s.Y36(s.R0b),s.Y36(eo),s.Y36(el,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,CL,4),2&t){let t;s.iGM(t=s.CRH())&&(e._items=t)}},viewQuery:function(t,e){if(1&t&&(s.Gf(nL,7),s.Gf(QE,7),s.Gf(XE,7),s.Gf(tL,5),s.Gf(eL,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._inkBar=t.first),s.iGM(t=s.CRH())&&(e._tabListContainer=t.first),s.iGM(t=s.CRH())&&(e._tabList=t.first),s.iGM(t=s.CRH())&&(e._nextPaginator=t.first),s.iGM(t=s.CRH())&&(e._previousPaginator=t.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&s.ekj("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[s.qOj],ngContentSelectors:FE,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","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"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0,1),s.NdJ("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),s._UZ(2,"div",2),s.qZA(),s.TgZ(3,"div",3,4),s.NdJ("keydown",function(t){return e._handleKeydown(t)}),s.TgZ(5,"div",5,6),s.NdJ("cdkObserveContent",function(){return e._onContentChanges()}),s.TgZ(7,"div",7),s.Hsn(8),s.qZA(),s._UZ(9,"mat-ink-bar"),s.qZA(),s.qZA(),s.TgZ(10,"div",8,9),s.NdJ("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),s._UZ(12,"div",2),s.qZA()),2&t&&(s.ekj("mat-tab-header-pagination-disabled",e._disableScrollBefore),s.Q6J("matRippleDisabled",e._disableScrollBefore||e.disableRipple),s.xp6(5),s.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode),s.xp6(5),s.ekj("mat-tab-header-pagination-disabled",e._disableScrollAfter),s.Q6J("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[ql,Dr,nL],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-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:transparent;touch-action:none}.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;content:"";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-animation-noopable.mat-ink-bar{transition:none;animation:none}.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-animation-noopable.mat-tab-list{transition:none;animation:none}.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}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.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{min-width:72px}}\n'],encapsulation:2}),t})(),xL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,pl,Oo,Ul,zr,pa],pl]}),t})();function RL(t,e){1&t&&s._UZ(0,"mat-spinner",5)}function DL(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.Oqu(s.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.PUBLICATION"))}function zL(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function PL(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function IL(t,e){if(1&t&&(s.TgZ(0,"mat-option",36),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.hij(" ",t.name," ")}}function OL(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function HL(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function YL(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.hij(" ",s.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.CHECK")," ")}function BL(t,e){1&t&&(s.TgZ(0,"div",28),s._UZ(1,"mat-spinner",5),s.TgZ(2,"h5",37),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(3),s.Oqu(s.lcZ(4,1,"CREATE_SINGLE_PUBLICATION.CHECK_PERFORM")))}function jL(t,e){1&t&&(s.TgZ(0,"app-alert",38),s.TgZ(1,"div",28),s.TgZ(2,"span",39),s._uU(3),s.ALo(4,"translate"),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"span",40),s.TgZ(7,"mat-icon",41),s._uU(8,"fiber_manual_record"),s.qZA(),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.TgZ(11,"span",42),s.TgZ(12,"mat-icon",41),s._uU(13,"fiber_manual_record"),s.qZA(),s._uU(14),s.ALo(15,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(3),s.AsE(" ",s.lcZ(4,4,"CREATE_SINGLE_PUBLICATION.SIMILAR_FOUND"),". ",s.lcZ(5,6,"CREATE_SINGLE_PUBLICATION.CHECK_BELOW"),". "),s.xp6(6),s.hij(" ",s.lcZ(10,8,"CREATE_SINGLE_PUBLICATION.IS_BELOW")," "),s.xp6(5),s.hij(" ",s.lcZ(15,10,"CREATE_SINGLE_PUBLICATION.NOT_BELOW")," "))}function FL(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.Oqu(s.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.CHECK"))}function NL(t,e){1&t&&s._UZ(0,"mat-spinner",5)}const KL=function(){return["id","lock","title","reportedBy","year","category","thankedTo","cite"]};function qL(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-publications-list",48),s.NdJ("publicationSelector",function(e){s.CHM(t),s.oxw(2);const i=s.MAs(1);return s.oxw(2).loadPublicationDetail(e,i)}),s.qZA()}if(2&t){const t=s.oxw(4);s.Q6J("displayedColumns",s.DdM(4,KL))("disabledRouting",!0)("openInTab",!0)("publications",t.filteredPublications)}}function UL(t,e){if(1&t&&(s.TgZ(0,"div",46),s.YNc(1,NL,1,0,"mat-spinner",3),s.YNc(2,qL,1,5,"perun-web-apps-publications-list",47),s.qZA()),2&t){const t=s.oxw(3);s.xp6(1),s.Q6J("ngIf",t.innerLoading),s.xp6(1),s.Q6J("ngIf",!t.innerLoading)}}function ZL(t,e){if(1&t&&s._uU(0),2&t){const t=s.oxw(4);s.Oqu(t.selectedPubTitle)}}function GL(t,e){if(1&t&&(s.TgZ(0,"div",49),s._UZ(1,"perun-web-apps-publication-detail",50),s.qZA()),2&t){const t=s.oxw(4);s.xp6(1),s.Q6J("publicationId",t.selectedPubId)}}function VL(t,e){1&t&&(s.TgZ(0,"mat-tab"),s.YNc(1,ZL,1,1,"ng-template",44),s.YNc(2,GL,2,1,"ng-template",45),s.qZA())}function $L(t,e){if(1&t&&(s.TgZ(0,"mat-tab-group",null,43),s.TgZ(2,"mat-tab"),s.YNc(3,FL,2,3,"ng-template",44),s.YNc(4,UL,3,2,"ng-template",45),s.qZA(),s.YNc(5,VL,3,0,"mat-tab",14),s.qZA()),2&t){const t=s.oxw(2);s.xp6(5),s.Q6J("ngIf",null!==t.selectedPubId)}}function WL(t,e){1&t&&(s.TgZ(0,"div",28),s.TgZ(1,"mat-icon",51),s._uU(2,"check_circle"),s.qZA(),s.TgZ(3,"h5",52),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(4),s.Oqu(s.lcZ(5,1,"CREATE_SINGLE_PUBLICATION.NO_SIMILAR")))}function JL(t,e){1&t&&(s.TgZ(0,"button",34),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.PREV")," "))}function QL(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",57),s.NdJ("click",function(){return s.CHM(t),s.oxw(3).redirect(["create-publication"])}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.RETURN")," "))}function XL(t,e){if(1&t&&(s.TgZ(0,"div",53),s.YNc(1,JL,3,3,"button",54),s.TgZ(2,"button",55),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.YNc(5,QL,3,3,"button",56),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("ngIf",!t.duplicateCheck),s.xp6(2),s.hij(" ",s.lcZ(4,3,"CREATE_SINGLE_PUBLICATION.CREATE")," "),s.xp6(2),s.Q6J("ngIf",!t.duplicateCheck)}}function tx(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.hij(" ",s.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.AUTHORS")," ")}function ex(t,e){1&t&&s._UZ(0,"mat-spinner",5)}function ix(t,e){if(1&t&&s._UZ(0,"perun-web-apps-add-authors",59),2&t){const t=s.oxw(3);s.Q6J("publication",t.publication)("selection",t.authorsSelection)}}function nx(t,e){if(1&t&&(s.TgZ(0,"div"),s.TgZ(1,"app-alert",58),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,ix,1,2,"perun-web-apps-add-authors",33),s.qZA()),2&t){const t=s.oxw(2);s.xp6(2),s.Oqu(s.lcZ(3,2,"CREATE_SINGLE_PUBLICATION.PUB_CREATED")),s.xp6(2),s.Q6J("ngIf",null!==t.publication)}}function sx(t,e){1&t&&(s.TgZ(0,"button",34),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.PREV")," "))}function ox(t,e){if(1&t&&(s.TgZ(0,"div",25),s.YNc(1,sx,3,3,"button",54),s.TgZ(2,"button",60),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("ngIf",!t.duplicateCheck),s.xp6(2),s.hij(" ",s.lcZ(4,2,"CREATE_SINGLE_PUBLICATION.NEXT")," ")}}function rx(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.hij(" ",s.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.THANKS")," ")}function ax(t,e){if(1&t&&s._UZ(0,"perun-web-apps-add-thanks",59),2&t){const t=s.oxw(2);s.Q6J("publication",t.publication)("selection",t.thanksSelection)}}function cx(t,e){1&t&&s._UZ(0,"mat-spinner",5)}function ux(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-horizontal-stepper",6),s.NdJ("selectionChange",function(e){return s.CHM(t),s.oxw().stepChanged(e)}),s.TgZ(1,"mat-step",7),s.YNc(2,DL,2,3,"ng-template",8),s.TgZ(3,"form",9),s.TgZ(4,"h5",10),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"div",11),s.TgZ(8,"mat-checkbox",12),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.TgZ(11,"mat-form-field"),s._UZ(12,"input",13),s.ALo(13,"translate"),s.YNc(14,zL,3,3,"mat-error",14),s.qZA(),s.TgZ(15,"mat-form-field",15),s.NdJ("click",function(){return s.CHM(t),s.MAs(22).open()}),s.TgZ(16,"mat-label"),s._uU(17),s.ALo(18,"translate"),s.qZA(),s._UZ(19,"input",16),s._UZ(20,"mat-datepicker-toggle",17),s.TgZ(21,"mat-datepicker",18,19),s.NdJ("yearSelected",function(e){s.CHM(t);const i=s.MAs(22);return s.oxw().chosenYearHandler(e,i)}),s.qZA(),s.YNc(23,PL,3,3,"mat-error",14),s.qZA(),s.TgZ(24,"mat-form-field"),s.TgZ(25,"mat-select",20),s.ALo(26,"translate"),s.YNc(27,IL,2,2,"mat-option",21),s.qZA(),s.YNc(28,OL,3,3,"mat-error",14),s.qZA(),s.TgZ(29,"mat-form-field"),s._UZ(30,"input",22),s.ALo(31,"translate"),s.qZA(),s.TgZ(32,"mat-form-field"),s._UZ(33,"input",23),s.ALo(34,"translate"),s.qZA(),s.TgZ(35,"mat-form-field"),s.TgZ(36,"textarea",24),s.ALo(37,"translate"),s._uU(38," "),s.qZA(),s.YNc(39,HL,3,3,"mat-error",14),s.qZA(),s.qZA(),s.qZA(),s.TgZ(40,"div",25),s.TgZ(41,"button",26),s._uU(42),s.ALo(43,"translate"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(44,"mat-step",27),s.YNc(45,YL,2,3,"ng-template",8),s.TgZ(46,"form",28),s.TgZ(47,"h5",10),s._uU(48),s.ALo(49,"translate"),s.qZA(),s.YNc(50,BL,5,3,"div",29),s.YNc(51,jL,16,12,"app-alert",30),s.YNc(52,$L,6,1,"mat-tab-group",14),s.YNc(53,WL,6,3,"div",29),s.qZA(),s.YNc(54,XL,6,5,"div",31),s.qZA(),s.TgZ(55,"mat-step"),s.YNc(56,tx,2,3,"ng-template",8),s.TgZ(57,"h5",10),s._uU(58),s.ALo(59,"translate"),s.qZA(),s.YNc(60,ex,1,0,"mat-spinner",3),s.YNc(61,nx,5,4,"div",14),s.YNc(62,ox,5,4,"div",32),s.qZA(),s.TgZ(63,"mat-step"),s.YNc(64,rx,2,3,"ng-template",8),s.TgZ(65,"h5",10),s._uU(66),s.ALo(67,"translate"),s.qZA(),s.YNc(68,ax,1,2,"perun-web-apps-add-thanks",33),s.YNc(69,cx,1,0,"mat-spinner",3),s.TgZ(70,"div",25),s.TgZ(71,"button",34),s._uU(72),s.ALo(73,"translate"),s.qZA(),s.TgZ(74,"button",35),s.NdJ("click",function(){s.CHM(t);const e=s.oxw();return e.redirect(["all-publications",e.publication.id])}),s._uU(75),s.ALo(76,"translate"),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.MAs(22),e=s.oxw();s.xp6(1),s.Q6J("editable",!e.duplicateCheck)("stepControl",e.publicationControl),s.xp6(2),s.Q6J("formGroup",e.publicationControl),s.xp6(2),s.hij(" ",s.lcZ(6,37,"CREATE_SINGLE_PUBLICATION.PUB_INFO")," "),s.xp6(4),s.hij(" ",s.lcZ(10,39,"CREATE_SINGLE_PUBLICATION.ADD_MYSELF")," "),s.xp6(3),s.s9C("placeholder",s.lcZ(13,41,"CREATE_SINGLE_PUBLICATION.SET_TITLE")),s.xp6(2),s.Q6J("ngIf",e.publicationControl.hasError("required","title")),s.xp6(3),s.Oqu(s.lcZ(18,43,"CREATE_SINGLE_PUBLICATION.YEAR")),s.xp6(2),s.Q6J("max",e.maxYear)("matDatepicker",t),s.xp6(1),s.Q6J("for",t),s.xp6(3),s.Q6J("ngIf",e.publicationControl.hasError("required","year")),s.xp6(2),s.s9C("placeholder",s.lcZ(26,45,"CREATE_SINGLE_PUBLICATION.CATEGORY")),s.xp6(2),s.Q6J("ngForOf",e.categories),s.xp6(1),s.Q6J("ngIf",e.publicationControl.hasError("required","category")),s.xp6(2),s.s9C("placeholder",s.lcZ(31,47,"CREATE_SINGLE_PUBLICATION.ISBN")),s.xp6(3),s.s9C("placeholder",s.lcZ(34,49,"CREATE_SINGLE_PUBLICATION.DOI")),s.xp6(3),s.s9C("placeholder",s.lcZ(37,51,"CREATE_SINGLE_PUBLICATION.CITE")),s.xp6(3),s.Q6J("ngIf",e.publicationControl.hasError("required","cite")),s.xp6(2),s.Q6J("disabled",e.publicationControl.invalid),s.xp6(1),s.hij(" ",s.lcZ(43,53,"CREATE_SINGLE_PUBLICATION.NEXT")," "),s.xp6(2),s.Q6J("editable",!e.duplicateCheck),s.xp6(4),s.hij(" ",s.lcZ(49,55,"CREATE_SINGLE_PUBLICATION.SIMILARITY_CHECK")," "),s.xp6(2),s.Q6J("ngIf",e.innerLoading),s.xp6(1),s.Q6J("ngIf",!e.innerLoading&&!e.duplicateCheck),s.xp6(1),s.Q6J("ngIf",!e.innerLoading&&!e.duplicateCheck),s.xp6(1),s.Q6J("ngIf",!e.innerLoading&&e.duplicateCheck),s.xp6(1),s.Q6J("ngIf",!e.innerLoading),s.xp6(4),s.hij(" ",s.lcZ(59,57,"CREATE_SINGLE_PUBLICATION.ADD_AUTHORS")," "),s.xp6(2),s.Q6J("ngIf",e.innerLoading),s.xp6(1),s.Q6J("ngIf",!e.innerLoading),s.xp6(1),s.Q6J("ngIf",!e.innerLoading),s.xp6(4),s.hij(" ",s.lcZ(67,59,"CREATE_SINGLE_PUBLICATION.ADD_THANKS")," "),s.xp6(2),s.Q6J("ngIf",null!==e.publication),s.xp6(1),s.Q6J("ngIf",e.innerLoading),s.xp6(3),s.hij(" ",s.lcZ(73,61,"CREATE_SINGLE_PUBLICATION.PREV")," "),s.xp6(3),s.hij(" ",s.lcZ(76,63,"CREATE_SINGLE_PUBLICATION.FINISH")," ")}}const lx=UT,hx={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let dx=(()=>{class t{constructor(t,e,i,n,s,o,r,a){this.formBuilder=t,this.cabinetService=e,this.dialog=i,this.router=n,this.notificator=s,this.translate=o,this.storeService=r,this.userService=a,this.similarPublications=[],this.filteredPublications=[],this.categories=[],this.publication=null,this.authorsSelection=new bo(!0,[]),this.thanksSelection=new bo(!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:["",Qd.required],year:["",Qd.required],category:["",Qd.required],isbn:[""],doi:[""],cite:["",Qd.required]}),this.maxYear=lx(),this.cabinetService.getCategories().subscribe(t=>{this.categories=t,this.loading=!1})}chosenYearHandler(t,e){this.publicationControl.get("year").setValue(t),e.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 t={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(e=>{const i=e.userAttributes.filter(t=>"preferredMail"===t.friendlyName);0!==i.length&&(t.publication.createdBy=i[0].value),this.cabinetService.createPublication(t).subscribe(t=>{this.publication=t,this.publicationControl.get("addAuthor").value?this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:this.publication.id,userId:e.id}}).subscribe(()=>{this.createTimeout()},()=>this.innerLoading=!1):this.createTimeout()},()=>this.innerLoading=!1)},()=>this.innerLoading=!1)}similarCheck(){this.innerLoading=!0;const t=this.publicationControl.get("title").value?this.publicationControl.get("title").value:null,e=this.publicationControl.get("doi").value?this.publicationControl.get("doi").value:null,i=this.publicationControl.get("isbn").value?this.publicationControl.get("isbn").value:null;this.cabinetService.findSimilarPublications(t,e,i).subscribe(t=>{this.similarPublications=t,this.filteredPublications=t,setTimeout(()=>{this.duplicateCheck=0===t.length,this.innerLoading=!1},2e3)})}stepChanged(t){1===t.selectedIndex&&this.similarCheck(),2===t.selectedIndex&&null===this.publication&&this.createPublication()}redirect(t){this.router.navigate(t)}loadPublicationDetail(t,e){this.selectedPubId=t.id,this.selectedPubTitle=t.title,e.selectedIndex=1}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(hf),s.Y36(V),s.Y36(yh),s.Y36(Pn),s.Y36(Am),s.Y36(Gh),s.Y36(ns),s.Y36(ct))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-create-single-publication-page"]],features:[s._Bn([{provide:Al,useClass:$T,deps:[bl]},{provide:vl,useValue:hx}])],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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s.TgZ(2,"span"),s.TgZ(3,"mat-icon",2),s._uU(4,"add_box"),s.qZA(),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA(),s.YNc(7,RL,1,0,"mat-spinner",3),s.YNc(8,ux,77,65,"mat-horizontal-stepper",4),s.qZA()),2&t&&(s.xp6(5),s.hij(" ",s.lcZ(6,3,"CREATE_SINGLE_PUBLICATION.TITLE")," "),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[Vg,n.O5,Ym,jA,OA,MA,Wp,wp,nf,bb,_p,of,Bd,Vm,Zd,af,Ld,Fv,Kv,zd,Ov,Df,n.sg,id,FA,Zp,NA,kd,nh,hT,vL,hL,aL,oL,BT,IE,rM,UM],pipes:[Vh],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}"]}),t})();function px(t,e){if(1&t&&(s.TgZ(0,"mat-option",14),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.Oqu(t.friendlyName)}}function fx(t,e){1&t&&(s.TgZ(0,"app-alert",15),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"IMPORT_PUBLICATIONS.INFO")," "))}function gx(t,e){if(1&t&&s._UZ(0,"perun-web-apps-publications-list",16),2&t){const t=s.oxw(2);s.Q6J("publications",t.publications)("displayedColumns",t.displayedColumns)("selection",t.selected)("tableId",t.tableId)("disabledRouting",!0)("allowAlert",t.firstSearchDone)}}function mx(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"div"),s.TgZ(2,"mat-form-field",5),s.TgZ(3,"mat-label"),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"mat-select",6),s.NdJ("closed",function(){return s.CHM(t),s.oxw().selectPubSystem()}),s.YNc(7,px,2,2,"mat-option",7),s.qZA(),s.qZA(),s._UZ(8,"perun-web-apps-year-range",8),s.TgZ(9,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().searchPublications()}),s.TgZ(10,"mat-icon"),s._uU(11,"search"),s.qZA(),s._uU(12),s.ALo(13,"translate"),s.qZA(),s.TgZ(14,"button",10),s.NdJ("click",function(){s.CHM(t);const e=s.oxw();return e.importPublications(e.selected.selected)}),s._uU(15),s.ALo(16,"translate"),s.qZA(),s.TgZ(17,"mat-checkbox",11),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().userAsAuthor=e}),s._uU(18),s.ALo(19,"translate"),s.qZA(),s.qZA(),s.YNc(20,fx,3,3,"app-alert",12),s.YNc(21,gx,1,6,"perun-web-apps-publications-list",13),s.qZA()}if(2&t){const t=s.oxw();s.xp6(4),s.Oqu(s.lcZ(5,12,"IMPORT_PUBLICATIONS.EXT_PUB_SYSTEM")),s.xp6(2),s.Q6J("formControl",t.pubSystem),s.xp6(1),s.Q6J("ngForOf",t.publicationSystems),s.xp6(1),s.Q6J("startYear",t.startYear)("endYear",t.endYear),s.xp6(4),s.hij(" ",s.lcZ(13,14,"IMPORT_PUBLICATIONS.SEARCH")," "),s.xp6(2),s.Q6J("disabled",0===t.selected.selected.length),s.xp6(1),s.hij(" ",s.lcZ(16,16,"IMPORT_PUBLICATIONS.IMPORT")," "),s.xp6(2),s.Q6J("ngModel",t.userAsAuthor),s.xp6(1),s.hij(" ",s.lcZ(19,18,"IMPORT_PUBLICATIONS.ADD_MYSELF")," "),s.xp6(2),s.Q6J("ngIf",!t.firstSearchDone),s.xp6(1),s.Q6J("ngIf",!t.loading)}}function _x(t,e){1&t&&s._UZ(0,"mat-spinner",17)}function wx(t,e){1&t&&(s.TgZ(0,"i"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"IMPORT_PUBLICATIONS.NOT_CHECKED")," "))}function yx(t,e){1&t&&(s.TgZ(0,"mat-icon",28),s._uU(1,"check_circle"),s.qZA())}function bx(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",29),s.NdJ("click",function(){s.CHM(t);const e=s.oxw(),i=e.$implicit,n=e.index;return s.oxw(2).completePublication(i.id,n)}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"IMPORT_PUBLICATIONS.CHECKED_BUTTON")," "))}function Ax(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",30),s.NdJ("click",function(){s.CHM(t);const e=s.oxw().$implicit;return s.oxw(2).incompletePublication(e.id)}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"IMPORT_PUBLICATIONS.NOT_CHECKED_BUTTON")," "))}function vx(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-expansion-panel",22),s.TgZ(1,"mat-expansion-panel-header",23),s.NdJ("click",function(){const e=s.CHM(t).index;return s.oxw(2).editPublication(e)}),s.TgZ(2,"mat-panel-title"),s._uU(3),s.YNc(4,wx,3,3,"i",3),s.YNc(5,yx,2,0,"mat-icon",24),s.qZA(),s.qZA(),s._UZ(6,"perun-web-apps-publication-detail",25),s.TgZ(7,"div",26),s.YNc(8,bx,3,3,"button",20),s.YNc(9,Ax,3,3,"button",27),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=s.oxw(2);s.Q6J("expanded",n.indexExpanded===i),s.xp6(3),s.hij(" ",t.title," "),s.xp6(1),s.Q6J("ngIf",!n.completePublications.includes(t.id)),s.xp6(1),s.Q6J("ngIf",n.completePublications.includes(t.id)),s.xp6(1),s.Q6J("publicationId",t.id),s.xp6(2),s.Q6J("ngIf",!n.completePublications.includes(t.id)),s.xp6(1),s.Q6J("ngIf",n.completePublications.includes(t.id))}}function kx(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",29),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).completeAllPublications()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"IMPORT_PUBLICATIONS.CHECK_ALL")," "))}function Tx(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",31),s.ALo(1,"translate"),s.TgZ(2,"button",32),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).onSubmit()}),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(2);s.s9C("matTooltip",s.lcZ(1,4,"IMPORT_PUBLICATIONS.SUBMIT_TOOLTIP")),s.Q6J("matTooltipPosition","above")("matTooltipDisabled",t.completePublications.length===t.importedPublications.length),s.xp6(3),s.hij(" ",s.lcZ(4,6,"IMPORT_PUBLICATIONS.FINISH")," ")}}function Cx(t,e){if(1&t&&(s.TgZ(0,"div"),s.TgZ(1,"app-alert",15),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"mat-accordion"),s.YNc(5,vx,10,7,"mat-expansion-panel",18),s.qZA(),s.TgZ(6,"div",19),s.YNc(7,kx,3,3,"button",20),s.qZA(),s.YNc(8,Tx,5,8,"div",21),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,4,"IMPORT_PUBLICATIONS.IMPORTED_INFO")," "),s.xp6(3),s.Q6J("ngForOf",t.importedPublications),s.xp6(2),s.Q6J("ngIf",t.completePublications.length!==t.importedPublications.length),s.xp6(1),s.Q6J("ngIf",t.completePublications.length===t.importedPublications.length)}}const Sx=UT,Mx={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},Ex=[{path:"",redirectTo:"all-publications",pathMatch:"full"},{path:"login",component:HE},{path:"service-access",component:BE},{path:"all-publications",component:sC},{path:"my-publications",component:cC},{path:"create-publication",component:uC},{path:"create-publication/import",component:(()=>{class t{constructor(t,e,i,n,s,o){this.cabinetService=t,this.storeService=e,this.notificator=i,this.translate=n,this.router=s,this.dialog=o,this.loading=!1,this.publicationSystems=[],this.pubSystem=new Fp,this.publications=[],this.selected=new bo(!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 Fp(Sx().subtract(1,"year")),this.endYear=new Fp(Sx()),this.cabinetService.getPublicationSystems().subscribe(t=>{this.publicationSystems=t.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(t=>{this.publications=t,this.loading=!1},()=>this.loading=!1)}importPublications(t){if(this.loading=!0,0===t.length)return this.notificator.showSuccess(this.translate.instant("IMPORT_PUBLICATIONS.SUCCESS")),this.importDone=!0,this.indexExpanded=0,void(this.loading=!1);const e=t.shift();this.cabinetService.createPublication({publication:{title:e.title,categoryId:e.categoryId,year:e.year,isbn:e.isbn,doi:e.doi,main:e.main}}).subscribe(e=>{this.userAsAuthor?this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:e.id,userId:this.userId}}).subscribe(()=>{this.importedPublications.push(e),this.importPublications(t)},()=>this.loading=!1):(this.importedPublications.push(e),this.importPublications(t))},()=>this.loading=!1)}editPublication(t){this.indexExpanded=t===this.indexExpanded?-1:t}completePublication(t,e){this.completePublications.includes(t)||this.completePublications.push(t),this.indexExpanded=e!==this.importedPublications.length-1?e+1:-1}incompletePublication(t){this.completePublications.includes(t)&&(this.completePublications=this.completePublications.filter(e=>e!==t)),this.indexExpanded=-1}completeAllPublications(){const t=tm();t.width="500px",t.data={theme:"user-theme",message:this.translate.instant("IMPORT_PUBLICATIONS.CHECK_ALL_MESSAGE")},this.dialog.open(aw,t).afterClosed().subscribe(t=>{t&&this.onSubmit()})}onSubmit(){this.notificator.showSuccess(this.translate.instant("IMPORT_PUBLICATIONS.SHOW_FINISH")),this.router.navigate(["/my-publications"])}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(V),s.Y36(ns),s.Y36(Am),s.Y36(Gh),s.Y36(Pn),s.Y36(yh))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-import-publications-page"]],features:[s._Bn([{provide:Al,useClass:$T,deps:[bl]},{provide:vl,useValue:Mx}])],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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s.TgZ(2,"span"),s.TgZ(3,"mat-icon",2),s._uU(4,"add_box"),s.qZA(),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA(),s.YNc(7,mx,22,20,"div",3),s.YNc(8,_x,1,0,"mat-spinner",4),s.YNc(9,Cx,9,6,"div",3),s.qZA()),2&t&&(s.xp6(5),s.hij(" ",s.lcZ(6,4,"IMPORT_PUBLICATIONS.TITLE")," "),s.xp6(2),s.Q6J("ngIf",!e.importDone),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",e.importDone))},directives:[Vg,n.O5,Bd,Ld,Df,_p,tf,n.sg,JT,id,bb,$p,nh,hT,BT,Ym,Ub,Nb,Kb,qb,IE,Vf],pipes:[Vh],styles:[".input-width-300[_ngcontent-%COMP%]{width:300px}.left-space[_ngcontent-%COMP%]{margin-left:10px}.checked-icon[_ngcontent-%COMP%], mat-panel-title[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-left:5px}.checked-icon[_ngcontent-%COMP%]{vertical-align:middle}.right-button[_ngcontent-%COMP%]{margin-top:20px;margin-left:auto;margin-right:0}.fit-content[_ngcontent-%COMP%], .right-button[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.fit-content[_ngcontent-%COMP%]{margin-top:15px}.width-100[_ngcontent-%COMP%]{width:100%}"]}),t})()},{path:"create-publication/create",component:dx},{path:"authors",component:HC},{path:"authors/:authorId",component:FS},{path:"authors/:authorId/publication/:publicationId",component:IE},{path:"all-publications/:publicationId",component:IE},{path:"my-publications/:publicationId",component:IE},{path:"categories",component:bS},{path:"publication-systems",component:HS}];let Lx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Vn.forRoot(Ex,{preloadingStrategy:Fn,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})],Vn]}),t})();const xx={provide:F.TP,useExisting:(0,s.Gpc)(()=>vm),multi:!0};function Rx(t){return new Jy(t,"./assets/i18n/",".json")}function Dx(t){const e={basePath:t.get("api_url")};return new q(e)}const zx=t=>()=>t.loadConfigs();let Px=(()=>{class t{constructor(t,e){this.customIconService=t,this.translate=e,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(wm),s.LFG(Gh))},t.\u0275mod=s.oAB({type:t,bootstrap:[Wy]}),t.\u0275inj=s.cJS({providers:[wm,{provide:s.ip1,useFactory:zx,multi:!0,deps:[tb]},{provide:q,useFactory:Dx,deps:[ns]},vm,xx,{provide:eb,useClass:Tm},WT],imports:[[Y,$h.forRoot({loader:{provide:xh,useFactory:Rx,deps:[F.eN]}}),ol,sT,ib,gt,F.JF,Lx,rk,Em,OE,xL,Wg,Ch.zr.forRoot()]]}),t})();(0,s.G48)(),O().bootstrapModule(Px).catch(t=>console.error(t))},1511:(t,e,i)=>{"use strict";i.d(e,{mr:()=>b,Ov:()=>St,ez:()=>Et,K0:()=>c,uU:()=>Mt,Do:()=>v,V_:()=>h,Ye:()=>k,S$:()=>w,mk:()=>ct,sg:()=>lt,O5:()=>dt,PC:()=>yt,RF:()=>mt,n9:()=>_t,ED:()=>wt,tP:()=>bt,b0:()=>A,lw:()=>u,EM:()=>Rt,JF:()=>Pt,p6:()=>U,NF:()=>xt,w_:()=>a,bD:()=>Lt,q:()=>o,Mx:()=>at,HT:()=>r});var n=i(1572);let s=null;function o(){return s}function r(t){s||(s=t)}class a{}const c=new n.OlP("DocumentToken");let u=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:l,token:t,providedIn:"platform"}),t})();function l(){return(0,n.LFG)(d)}const h=new n.OlP("Location Initialized");let d=(()=>{class t extends u{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return o().getBaseHref(this._doc)}onPopState(t){const e=o().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=o().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}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(t){this.location.pathname=t}pushState(t,e,i){p()?this._history.pushState(t,e,i):this.location.hash=i}replaceState(t,e,i){p()?this._history.replaceState(t,e,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(c))},t.\u0275prov=(0,n.Yz7)({factory:f,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function f(){return new d((0,n.LFG)(c))}function g(t,e){if(0==t.length)return e;if(0==e.length)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,2==i?t+e.substring(1):1==i?t+e:t+"/"+e}function m(t){const e=t.match(/#|\?|$/),i=e&&e.index||t.length;return t.slice(0,i-("/"===t[i-1]?1:0))+t.slice(i)}function _(t){return t&&"?"!==t[0]?"?"+t:t}let w=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:y,token:t,providedIn:"root"}),t})();function y(t){const e=(0,n.LFG)(c).location;return new A((0,n.LFG)(u),e&&e.origin||"")}const b=new n.OlP("appBaseHref");let A=(()=>{class t extends w{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return g(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+_(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${e}${i}`:e}pushState(t,e,i,n){const s=this.prepareExternalUrl(i+_(n));this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){const s=this.prepareExternalUrl(i+_(n));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformLocation).historyGo)||void 0===i||i.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(u),n.LFG(b,8))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),v=(()=>{class t extends w{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=g(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,i,n){let s=this.prepareExternalUrl(i+_(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){let s=this.prepareExternalUrl(i+_(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformLocation).historyGo)||void 0===i||i.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(u),n.LFG(b,8))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),k=(()=>{class t{constructor(t,e){this._subject=new n.vpe,this._urlChangeListeners=[],this._platformStrategy=t;const i=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=m(C(i)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+_(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,C(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",i=null){this._platformStrategy.pushState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+_(e)),i)}replaceState(t,e="",i=null){this._platformStrategy.replaceState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+_(e)),i)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformStrategy).historyGo)||void 0===i||i.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(i=>i(t,e))}subscribe(t,e,i){return this._subject.subscribe({next:t,error:e,complete:i})}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(w),n.LFG(u))},t.normalizeQueryParams=_,t.joinWithSlash=g,t.stripTrailingSlash=m,t.\u0275prov=(0,n.Yz7)({factory:T,token:t,providedIn:"root"}),t})();function T(){return new k((0,n.LFG)(w),(0,n.LFG)(u))}function C(t){return t.replace(/\/index.html$/,"")}var S=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),M=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),E=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),L=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),x=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function R(t,e){return H((0,n.cg1)(t)[n.wAp.DateFormat],e)}function D(t,e){return H((0,n.cg1)(t)[n.wAp.TimeFormat],e)}function z(t,e){return H((0,n.cg1)(t)[n.wAp.DateTimeFormat],e)}function P(t,e){const i=(0,n.cg1)(t),s=i[n.wAp.NumberSymbols][e];if(void 0===s){if(e===x.CurrencyDecimal)return i[n.wAp.NumberSymbols][x.Decimal];if(e===x.CurrencyGroup)return i[n.wAp.NumberSymbols][x.Group]}return s}const I=n.kL8;function O(t){if(!t[n.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[n.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function H(t,e){for(let i=e;i>-1;i--)if(void 0!==t[i])return t[i];throw new Error("Locale data API: locale data undefined")}function Y(t){const[e,i]=t.split(":");return{hours:+e,minutes:+i}}const B=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,j={},F=/((?:[^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=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),K=function(t){return 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}({}),q=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function U(t,e,i,n){let s=function(t){if(st(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[e,i=1,n=1]=t.split("-").map(t=>+t);return Z(e,i-1,n)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(B))return function(t){const e=new Date(0);let i=0,n=0;const s=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),s.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const r=Number(t[4]||0)-i,a=Number(t[5]||0)-n,c=Number(t[6]||0),u=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,r,a,c,u),e}(i)}const e=new Date(t);if(!st(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=G(i,e)||e;let o,r=[];for(;e;){if(o=F.exec(e),!o){r.push(e);break}{r=r.concat(o.slice(1));const t=r.pop();if(!t)break;e=t}}let a=s.getTimezoneOffset();n&&(a=nt(n,a),s=function(t,e,i){const n=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(nt(e,n)-n))}(s,n));let c="";return r.forEach(t=>{const e=function(t){if(it[t])return it[t];let e;switch(t){case"G":case"GG":case"GGG":e=J(q.Eras,E.Abbreviated);break;case"GGGG":e=J(q.Eras,E.Wide);break;case"GGGGG":e=J(q.Eras,E.Narrow);break;case"y":e=W(K.FullYear,1,0,!1,!0);break;case"yy":e=W(K.FullYear,2,0,!0,!0);break;case"yyy":e=W(K.FullYear,3,0,!1,!0);break;case"yyyy":e=W(K.FullYear,4,0,!1,!0);break;case"Y":e=et(1);break;case"YY":e=et(2,!0);break;case"YYY":e=et(3);break;case"YYYY":e=et(4);break;case"M":case"L":e=W(K.Month,1,1);break;case"MM":case"LL":e=W(K.Month,2,1);break;case"MMM":e=J(q.Months,E.Abbreviated);break;case"MMMM":e=J(q.Months,E.Wide);break;case"MMMMM":e=J(q.Months,E.Narrow);break;case"LLL":e=J(q.Months,E.Abbreviated,M.Standalone);break;case"LLLL":e=J(q.Months,E.Wide,M.Standalone);break;case"LLLLL":e=J(q.Months,E.Narrow,M.Standalone);break;case"w":e=tt(1);break;case"ww":e=tt(2);break;case"W":e=tt(1,!0);break;case"d":e=W(K.Date,1);break;case"dd":e=W(K.Date,2);break;case"c":case"cc":e=W(K.Day,1);break;case"ccc":e=J(q.Days,E.Abbreviated,M.Standalone);break;case"cccc":e=J(q.Days,E.Wide,M.Standalone);break;case"ccccc":e=J(q.Days,E.Narrow,M.Standalone);break;case"cccccc":e=J(q.Days,E.Short,M.Standalone);break;case"E":case"EE":case"EEE":e=J(q.Days,E.Abbreviated);break;case"EEEE":e=J(q.Days,E.Wide);break;case"EEEEE":e=J(q.Days,E.Narrow);break;case"EEEEEE":e=J(q.Days,E.Short);break;case"a":case"aa":case"aaa":e=J(q.DayPeriods,E.Abbreviated);break;case"aaaa":e=J(q.DayPeriods,E.Wide);break;case"aaaaa":e=J(q.DayPeriods,E.Narrow);break;case"b":case"bb":case"bbb":e=J(q.DayPeriods,E.Abbreviated,M.Standalone,!0);break;case"bbbb":e=J(q.DayPeriods,E.Wide,M.Standalone,!0);break;case"bbbbb":e=J(q.DayPeriods,E.Narrow,M.Standalone,!0);break;case"B":case"BB":case"BBB":e=J(q.DayPeriods,E.Abbreviated,M.Format,!0);break;case"BBBB":e=J(q.DayPeriods,E.Wide,M.Format,!0);break;case"BBBBB":e=J(q.DayPeriods,E.Narrow,M.Format,!0);break;case"h":e=W(K.Hours,1,-12);break;case"hh":e=W(K.Hours,2,-12);break;case"H":e=W(K.Hours,1);break;case"HH":e=W(K.Hours,2);break;case"m":e=W(K.Minutes,1);break;case"mm":e=W(K.Minutes,2);break;case"s":e=W(K.Seconds,1);break;case"ss":e=W(K.Seconds,2);break;case"S":e=W(K.FractionalSeconds,1);break;case"SS":e=W(K.FractionalSeconds,2);break;case"SSS":e=W(K.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Q(N.Short);break;case"ZZZZZ":e=Q(N.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Q(N.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Q(N.Long);break;default:return null}return it[t]=e,e}(t);c+=e?e(s,i,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Z(t,e,i){const n=new Date(0);return n.setFullYear(t,e,i),n.setHours(0,0,0),n}function G(t,e){const i=function(t){return(0,n.cg1)(t)[n.wAp.LocaleId]}(t);if(j[i]=j[i]||{},j[i][e])return j[i][e];let s="";switch(e){case"shortDate":s=R(t,L.Short);break;case"mediumDate":s=R(t,L.Medium);break;case"longDate":s=R(t,L.Long);break;case"fullDate":s=R(t,L.Full);break;case"shortTime":s=D(t,L.Short);break;case"mediumTime":s=D(t,L.Medium);break;case"longTime":s=D(t,L.Long);break;case"fullTime":s=D(t,L.Full);break;case"short":const e=G(t,"shortTime"),i=G(t,"shortDate");s=V(z(t,L.Short),[e,i]);break;case"medium":const n=G(t,"mediumTime"),o=G(t,"mediumDate");s=V(z(t,L.Medium),[n,o]);break;case"long":const r=G(t,"longTime"),a=G(t,"longDate");s=V(z(t,L.Long),[r,a]);break;case"full":const c=G(t,"fullTime"),u=G(t,"fullDate");s=V(z(t,L.Full),[c,u])}return s&&(j[i][e]=s),s}function V(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,i){return null!=e&&i in e?e[i]:t})),t}function $(t,e,i="-",n,s){let o="";(t<0||s&&t<=0)&&(s?t=1-t:(t=-t,o=i));let r=String(t);for(;r.length0||a>-i)&&(a+=i),t===K.Hours)0===a&&-12===i&&(a=12);else if(t===K.FractionalSeconds)return c=e,$(a,3).substr(0,c);var c;const u=P(r,x.MinusSign);return $(a,e,u,n,s)}}function J(t,e,i=M.Format,s=!1){return function(o,r){return function(t,e,i,s,o,r){switch(i){case q.Months:return function(t,e,i){const s=(0,n.cg1)(t),o=H([s[n.wAp.MonthsFormat],s[n.wAp.MonthsStandalone]],e);return H(o,i)}(e,o,s)[t.getMonth()];case q.Days:return function(t,e,i){const s=(0,n.cg1)(t),o=H([s[n.wAp.DaysFormat],s[n.wAp.DaysStandalone]],e);return H(o,i)}(e,o,s)[t.getDay()];case q.DayPeriods:const a=t.getHours(),c=t.getMinutes();if(r){const t=function(t){const e=(0,n.cg1)(t);return O(e),(e[n.wAp.ExtraData][2]||[]).map(t=>"string"==typeof t?Y(t):[Y(t[0]),Y(t[1])])}(e),i=function(t,e,i){const s=(0,n.cg1)(t);O(s);const o=H([s[n.wAp.ExtraData][0],s[n.wAp.ExtraData][1]],e)||[];return H(o,i)||[]}(e,o,s),r=t.findIndex(t=>{if(Array.isArray(t)){const[e,i]=t,n=a>=e.hours&&c>=e.minutes,s=a0?Math.floor(s/60):Math.ceil(s/60);switch(t){case N.Short:return(s>=0?"+":"")+$(r,2,o)+$(Math.abs(s%60),2,o);case N.ShortGMT:return"GMT"+(s>=0?"+":"")+$(r,1,o);case N.Long:return"GMT"+(s>=0?"+":"")+$(r,2,o)+":"+$(Math.abs(s%60),2,o);case N.Extended:return 0===n?"Z":(s>=0?"+":"")+$(r,2,o)+":"+$(Math.abs(s%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}function X(t){return Z(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function tt(t,e=!1){return function(i,n){let s;if(e){const t=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,e=i.getDate();s=1+Math.floor((e+t)/7)}else{const t=X(i),e=function(t){const e=Z(t,0,1).getDay();return Z(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),n=t.getTime()-e.getTime();s=1+Math.round(n/6048e5)}return $(s,t,P(n,x.MinusSign))}}function et(t,e=!1){return function(i,n){return $(X(i).getFullYear(),t,P(n,x.MinusSign),e)}}const it={};function nt(t,e){t=t.replace(/:/g,"");const i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function st(t){return t instanceof Date&&!isNaN(t.valueOf())}class ot{}let rt=(()=>{class t extends ot{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(I(e||this.locale)(t)){case S.Zero:return"zero";case S.One:return"one";case S.Two:return"two";case S.Few:return"few";case S.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.soG))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();function at(t,e){e=encodeURIComponent(e);for(const i of t.split(";")){const t=i.indexOf("="),[n,s]=-1==t?[i,""]:[i.slice(0,t),i.slice(t+1)];if(n.trim()===e)return decodeURIComponent(s)}return null}let ct=(()=>{class t{constructor(t,e,i,n){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=i,this._renderer=n,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&((0,n.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,n.AaK)(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.ZZ4),n.Y36(n.aQg),n.Y36(n.SBq),n.Y36(n.Qsj))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class ut{constructor(t,e,i,n){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=n}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 lt=(()=>{class t{constructor(t,e,i){this._viewContainer=t,this._template=e,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const i=this._ngForOf;if(!this._differ&&i)try{this._differ=this._differs.find(i).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${i}' of type '${t=i,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,i,n)=>{if(null==t.previousIndex){const i=this._viewContainer.createEmbeddedView(this._template,new ut(null,this._ngForOf,-1,-1),null===n?void 0:n),s=new ht(t,i);e.push(s)}else if(null==n)this._viewContainer.remove(null===i?void 0:i);else if(null!==i){const s=this._viewContainer.get(i);this._viewContainer.move(s,n);const o=new ht(t,s);e.push(o)}});for(let i=0;i{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(n.ZZ4))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class ht{constructor(t,e){this.record=t,this.view=e}}let dt=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new pt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){ft("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){ft("ngIfElse",t),this._elseTemplateRef=t,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(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class pt{constructor(){this.$implicit=null,this.ngIf=null}}function ft(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${(0,n.AaK)(e)}'.`)}class gt{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let mt=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,i){this.ngSwitch=i,i._addCase(),this._view=new gt(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(mt,9))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),wt=(()=>{class t{constructor(t,e,i){i._addDefault(new gt(t,e))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(mt,9))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),yt=(()=>{class t{constructor(t,e,i){this._ngEl=t,this._differs=e,this._renderer=i,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[i,n]=t.split(".");null!=(e=null!=e&&n?`${e}${n}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,i,e):this._renderer.removeStyle(this._ngEl.nativeElement,i)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.aQg),n.Y36(n.Qsj))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),bt=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[n.TTD]}),t})();function At(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${(0,n.AaK)(t)}'`)}class vt{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class kt{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Tt=new kt,Ct=new vt;let St=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if((0,n.QGY)(e))return Tt;if((0,n.F4k)(e))return Ct;throw At(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO,16))},t.\u0275pipe=n.Yjl({name:"async",type:t,pure:!1}),t})(),Mt=(()=>{class t{constructor(t){this.locale=t}transform(e,i="mediumDate",n,s){if(null==e||""===e||e!=e)return null;try{return U(e,i,s||this.locale,n)}catch(o){throw At(t,o.message)}}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.soG,16))},t.\u0275pipe=n.Yjl({name:"date",type:t,pure:!0}),t})(),Et=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:ot,useClass:rt}]}),t})();const Lt="browser";function xt(t){return t===Lt}let Rt=(()=>{class t{}return t.\u0275prov=(0,n.Yz7)({token:t,providedIn:"root",factory:()=>new Dt((0,n.LFG)(c),window)}),t})();class Dt{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const i=t.getElementById(e)||t.getElementsByName(e)[0];if(i)return i;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let n=i.currentNode;for(;n;){const t=n.shadowRoot;if(t){const i=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(i)return i}n=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,n=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(i-s[0],n-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=zt(this.window.history)||zt(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function zt(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class Pt{}},9063:(t,e,i)=>{"use strict";i.d(e,{TP:()=>x,eN:()=>E,JF:()=>F,WM:()=>d,LE:()=>m,Zn:()=>C});var n=i(1511),s=i(1572),o=i(878),r=i(8318),a=i(436),c=i(3835),u=i(9996);class l{}class h{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const i=t.slice(0,e),n=i.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(s):this.headers.set(n,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const n=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(n,i),this.maybeSetNormalizedName(e,n))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const n=("a"===t.op?this.headers.get(e):void 0)||[];n.push(...i),this.headers.set(e,n);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class p{encodeKey(t){return f(t)}encodeValue(t){return f(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function f(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function g(t){return`${t}`}class m{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new p,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const n=t.indexOf("="),[s,o]=-1==n?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,n)),e.decodeValue(t.slice(n+1))],r=i.get(s)||[];r.push(o),i.set(s,r)}),i}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const n=t[i];Array.isArray(n)?n.forEach(t=>{e.push({param:i,value:t,op:"a"})}):e.push({param:i,value:n,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new m({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(g(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const i=e.indexOf(g(t.value));-1!==i&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class _{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function w(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function y(t){return"undefined"!=typeof Blob&&t instanceof Blob}function b(t){return"undefined"!=typeof FormData&&t instanceof FormData}class A{constructor(t,e,i,n){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||n?(this.body=void 0!==i?i:null,s=n):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new d),this.context||(this.context=new _),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const i=e.indexOf("?");this.urlWithParams=e+(-1===i?"?":ie.set(i,t.setHeaders[i]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((e,i)=>e.set(i,t.setParams[i]),u)),new A(i,n,o,{params:u,headers:c,context:l,reportProgress:a,responseType:s,withCredentials:r})}}var v=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class k{constructor(t,e=200,i="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class T extends k{constructor(t={}){super(t),this.type=v.ResponseHeader}clone(t={}){return new T({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class C extends k{constructor(t={}){super(t),this.type=v.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new C({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class S extends k{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function M(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let E=(()=>{class t{constructor(t){this.handler=t}request(t,e,i={}){let n;if(t instanceof A)n=t;else{let s,o;s=i.headers instanceof d?i.headers:new d(i.headers),i.params&&(o=i.params instanceof m?i.params:new m({fromObject:i.params})),n=new A(t,e,void 0!==i.body?i.body:null,{headers:s,context:i.context,params:o,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=(0,o.of)(n).pipe((0,a.b)(t=>this.handler.handle(t)));if(t instanceof A||"events"===i.observe)return s;const r=s.pipe((0,c.h)(t=>t instanceof C));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return r.pipe((0,u.U)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe((0,u.U)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe((0,u.U)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe((0,u.U)(t=>t.body))}case"response":return r;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new m).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,i={}){return this.request("PATCH",t,M(i,e))}post(t,e,i={}){return this.request("POST",t,M(i,e))}put(t,e,i={}){return this.request("PUT",t,M(i,e))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(l))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class L{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const x=new s.OlP("HTTP_INTERCEPTORS");let R=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const D=/^\)\]\}',?\n/;let z=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new r.y(e=>{const i=this.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((t,e)=>i.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&i.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();i.responseType="json"!==e?e:"text"}const n=t.serializeBody();let s=null;const o=()=>{if(null!==s)return s;const e=1223===i.status?204:i.status,n=i.statusText||"OK",o=new d(i.getAllResponseHeaders()),r=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new T({headers:o,status:e,statusText:n,url:r}),s},r=()=>{let{headers:n,status:s,statusText:r,url:a}=o(),c=null;204!==s&&(c=void 0===i.response?i.responseText:i.response),0===s&&(s=c?200:0);let u=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof c){const t=c;c=c.replace(D,"");try{c=""!==c?JSON.parse(c):null}catch(l){c=t,u&&(u=!1,c={error:l,text:c})}}u?(e.next(new C({body:c,headers:n,status:s,statusText:r,url:a||void 0})),e.complete()):e.error(new S({error:c,headers:n,status:s,statusText:r,url:a||void 0}))},a=t=>{const{url:n}=o(),s=new S({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:n||void 0});e.error(s)};let c=!1;const u=n=>{c||(e.next(o()),c=!0);let s={type:v.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(s.total=n.total),"text"===t.responseType&&i.responseText&&(s.partialText=i.responseText),e.next(s)},l=t=>{let i={type:v.UploadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),e.next(i)};return i.addEventListener("load",r),i.addEventListener("error",a),i.addEventListener("timeout",a),i.addEventListener("abort",a),t.reportProgress&&(i.addEventListener("progress",u),null!==n&&i.upload&&i.upload.addEventListener("progress",l)),i.send(n),e.next({type:v.Sent}),()=>{i.removeEventListener("error",a),i.removeEventListener("abort",a),i.removeEventListener("load",r),i.removeEventListener("timeout",a),t.reportProgress&&(i.removeEventListener("progress",u),null!==n&&i.upload&&i.upload.removeEventListener("progress",l)),i.readyState!==i.DONE&&i.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.JF))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const P=new s.OlP("XSRF_COOKIE_NAME"),I=new s.OlP("XSRF_HEADER_NAME");class O{}let H=(()=>{class t{constructor(t,e,i){this.doc=t,this.platform=e,this.cookieName=i,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,n.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0),s.LFG(s.Lbi),s.LFG(P))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Y=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);const n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(O),s.LFG(I))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(x,[]);this.chain=t.reduceRight((t,e)=>new L(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(h),s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),j=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Y,useClass:R}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:P,useValue:e.cookieName}:[],e.headerName?{provide:I,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Y,{provide:x,useExisting:Y,multi:!0},{provide:O,useClass:H},{provide:P,useValue:"XSRF-TOKEN"},{provide:I,useValue:"X-XSRF-TOKEN"}]}),t})(),F=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[E,{provide:l,useClass:B},z,{provide:h,useExisting:z}],imports:[[j.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},1572:(t,e,i)=>{"use strict";i.d(e,{deG:()=>ai,tb:()=>ou,AFp:()=>tu,ip1:()=>Qc,CZH:()=>Xc,hGG:()=>Qu,z2F:()=>Nu,sBO:()=>Za,Sil:()=>mu,_Vd:()=>ma,EJc:()=>cu,SBq:()=>ba,qLn:()=>En,vpe:()=>Dc,gxx:()=>wo,tBr:()=>Ei,XFs:()=>L,OlP:()=>ri,zs3:()=>zo,ZZ4:()=>Ba,aQg:()=>Fa,soG:()=>au,YKP:()=>ic,v3s:()=>qu,h0i:()=>ec,PXZ:()=>Hu,R0b:()=>yu,FiY:()=>Li,Lbi:()=>su,g9A:()=>nu,n_E:()=>Pc,Qsj:()=>ka,FYo:()=>va,JOm:()=>zn,Tiy:()=>Ca,q3G:()=>yn,tp0:()=>xi,EAV:()=>Gu,Rgc:()=>Ja,dDg:()=>Su,DyG:()=>ci,GfV:()=>Sa,s_b:()=>sc,ifc:()=>I,eFA:()=>Yu,G48:()=>Iu,Gpc:()=>p,f3M:()=>Ci,X6Q:()=>Pu,_c5:()=>Wu,VLi:()=>Lu,c2e:()=>ru,zSh:()=>bo,wAp:()=>ia,vHH:()=>m,EiD:()=>_n,mCW:()=>Xi,qzn:()=>Ni,JVY:()=>qi,pB0:()=>Vi,eBb:()=>Zi,L6k:()=>Ui,LAX:()=>Gi,cg1:()=>Xr,Tjo:()=>$u,kL8:()=>ta,yhl:()=>Ki,dqk:()=>j,sIi:()=>Ko,CqO:()=>lr,QGY:()=>cr,F4k:()=>ur,RDi:()=>Ct,AaK:()=>l,z3N:()=>Fi,qOj:()=>Io,TTD:()=>wt,_Bn:()=>pa,xp6:()=>bs,uIk:()=>Vo,Tol:()=>xr,Gre:()=>Gr,ekj:()=>Lr,Suo:()=>Zc,Xpm:()=>J,lG2:()=>st,Yz7:()=>b,cJS:()=>A,oAB:()=>et,Yjl:()=>ot,Y36:()=>Qo,_UZ:()=>nr,GkF:()=>rr,BQk:()=>or,ynx:()=>sr,qZA:()=>ir,TgZ:()=>er,EpF:()=>ar,n5z:()=>ei,Ikx:()=>Vr,LFG:()=>Ti,$8M:()=>ni,NdJ:()=>hr,CRH:()=>Gc,kcU:()=>ye,O4$:()=>we,oxw:()=>mr,ALo:()=>Cc,lcZ:()=>Sc,xi3:()=>Mc,Dn7:()=>Ec,Hsn:()=>yr,F$t:()=>wr,Q6J:()=>Xo,s9C:()=>br,DdM:()=>yc,VKq:()=>bc,WLB:()=>Ac,iGM:()=>qc,MAs:()=>Jo,pYS:()=>Rn,Jf7:()=>xn,CHM:()=>qt,oJD:()=>bn,LSH:()=>An,kYT:()=>it,Udp:()=>Er,WFA:()=>dr,d8E:()=>$r,YNc:()=>Wo,W1O:()=>Jc,_uU:()=>Nr,Oqu:()=>Kr,hij:()=>qr,AsE:()=>Ur,xDo:()=>Zr,Gf:()=>Uc});var n=i(5959),s=i(7570),o=i(8318),r=i(1906),a=i(1055);function c(t){for(let e in t)if(t[e]===c)return e;throw Error("Could not find renamed property on target object.")}function u(t,e){for(const i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function l(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(l).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const i=e.indexOf("\n");return-1===i?e:e.substring(0,i)}function h(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const d=c({__forward_ref__:c});function p(t){return t.__forward_ref__=p,t.toString=function(){return l(this())},t}function f(t){return g(t)?t():t}function g(t){return"function"==typeof t&&t.hasOwnProperty(d)&&t.__forward_ref__===p}class m extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function _(t){return"string"==typeof t?t:null==t?"":String(t)}function w(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():_(t)}function y(t,e){const i=e?` in ${e}`:"";throw new m("201",`No provider for ${w(t)} found${i}`)}function b(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function A(t){return{providers:t.providers||[],imports:t.imports||[]}}function v(t){return k(t,C)||k(t,M)}function k(t,e){return t.hasOwnProperty(e)?t[e]:null}function T(t){return t&&(t.hasOwnProperty(S)||t.hasOwnProperty(E))?t[S]:null}const C=c({"\u0275prov":c}),S=c({"\u0275inj":c}),M=c({ngInjectableDef:c}),E=c({ngInjectorDef:c});var L=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let x;function R(t){const e=x;return x=t,e}function D(t,e,i){const n=v(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:i&L.Optional?null:void 0!==e?e:void y(l(t),"Injector")}function z(t){return{toString:t}.toString()}var P=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),I=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const O="undefined"!=typeof globalThis&&globalThis,H="undefined"!=typeof window&&window,Y="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,B="undefined"!=typeof global&&global,j=O||B||H||Y,F={},N=[],K=c({"\u0275cmp":c}),q=c({"\u0275dir":c}),U=c({"\u0275pipe":c}),Z=c({"\u0275mod":c}),G=c({"\u0275loc":c}),V=c({"\u0275fac":c}),$=c({__NG_ELEMENT_ID__:c});let W=0;function J(t){return z(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===P.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||N,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||I.Emulated,id:"c",styles:t.styles||N,_:null,setInput:null,schemas:t.schemas||null,tView:null},n=t.directives,s=t.features,o=t.pipes;return i.id+=W++,i.inputs=nt(t.inputs,e),i.outputs=nt(t.outputs),s&&s.forEach(t=>t(i)),i.directiveDefs=n?()=>("function"==typeof n?n():n).map(Q):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(X):null,i})}function Q(t){return rt(t)||function(t){return t[q]||null}(t)}function X(t){return function(t){return t[U]||null}(t)}const tt={};function et(t){return z(()=>{const e={type:t.type,bootstrap:t.bootstrap||N,declarations:t.declarations||N,imports:t.imports||N,exports:t.exports||N,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(tt[t.id]=t.type),e})}function it(t,e){return z(()=>{const i=at(t,!0);i.declarations=e.declarations||N,i.imports=e.imports||N,i.exports=e.exports||N})}function nt(t,e){if(null==t)return F;const i={};for(const n in t)if(t.hasOwnProperty(n)){let s=t[n],o=s;Array.isArray(s)&&(o=s[1],s=s[0]),i[s]=n,e&&(e[s]=o)}return i}const st=J;function ot(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function rt(t){return t[K]||null}function at(t,e){const i=t[Z]||null;if(!i&&!0===e)throw new Error(`Type ${l(t)} does not have '\u0275mod' property.`);return i}const ct=20,ut=10;function lt(t){return Array.isArray(t)&&"object"==typeof t[1]}function ht(t){return Array.isArray(t)&&!0===t[1]}function dt(t){return 0!=(8&t.flags)}function pt(t){return 2==(2&t.flags)}function ft(t){return 1==(1&t.flags)}function gt(t){return null!==t.template}function mt(t,e){return t.hasOwnProperty(V)?t[V]:null}class _t{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function wt(){return yt}function yt(t){return t.type.prototype.ngOnChanges&&(t.setInput=At),bt}function bt(){const t=vt(this),e=null==t?void 0:t.current;if(e){const i=t.previous;if(i===F)t.previous=e;else for(let t in e)i[t]=e[t];t.current=null,this.ngOnChanges(e)}}function At(t,e,i,n){const s=vt(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:F,current:null}),o=s.current||(s.current={}),r=s.previous,a=this.declaredInputs[i],c=r[a];o[a]=new _t(c&&c.currentValue,e,r===F),t[n]=e}function vt(t){return t.__ngSimpleChanges__||null}wt.ngInherit=!0;const kt="http://www.w3.org/2000/svg";let Tt;function Ct(t){Tt=t}function St(){return void 0!==Tt?Tt:"undefined"!=typeof document?document:void 0}function Mt(t){return!!t.listen}const Et={createRenderer:(t,e)=>St()};function Lt(t){for(;Array.isArray(t);)t=t[0];return t}function xt(t,e){return Lt(e[t])}function Rt(t,e){return Lt(e[t.index])}function Dt(t,e){return t.data[e]}function zt(t,e){return t[e]}function Pt(t,e){const i=e[t];return lt(i)?i:i[0]}function It(t){return 4==(4&t[2])}function Ot(t){return 128==(128&t[2])}function Ht(t,e){return null==e?null:t[e]}function Yt(t){t[18]=0}function Bt(t,e){t[5]+=e;let i=t,n=t[3];for(;null!==n&&(1===e&&1===i[5]||-1===e&&0===i[5]);)n[5]+=e,i=n,n=n[3]}const jt={lFrame:he(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ft(){return jt.bindingsEnabled}function Nt(){return jt.lFrame.lView}function Kt(){return jt.lFrame.tView}function qt(t){return jt.lFrame.contextLView=t,t[8]}function Ut(){let t=Zt();for(;null!==t&&64===t.type;)t=t.parent;return t}function Zt(){return jt.lFrame.currentTNode}function Gt(t,e){const i=jt.lFrame;i.currentTNode=t,i.isParent=e}function Vt(){return jt.lFrame.isParent}function $t(){jt.lFrame.isParent=!1}function Wt(){return jt.isInCheckNoChangesMode}function Jt(t){jt.isInCheckNoChangesMode=t}function Qt(){const t=jt.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Xt(){return jt.lFrame.bindingIndex}function te(){return jt.lFrame.bindingIndex++}function ee(t){const e=jt.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function ie(t,e){const i=jt.lFrame;i.bindingIndex=i.bindingRootIndex=t,ne(e)}function ne(t){jt.lFrame.currentDirectiveIndex=t}function se(t){const e=jt.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function oe(){return jt.lFrame.currentQueryIndex}function re(t){jt.lFrame.currentQueryIndex=t}function ae(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function ce(t,e,i){if(i&L.SkipSelf){let n=e,s=t;for(;n=n.parent,!(null!==n||i&L.Host||(n=ae(s),null===n)||(s=s[15],10&n.type)););if(null===n)return!1;e=n,t=s}const n=jt.lFrame=le();return n.currentTNode=e,n.lView=t,!0}function ue(t){const e=le(),i=t[1];jt.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function le(){const t=jt.lFrame,e=null===t?null:t.child;return null===e?he(t):e}function he(t){const e={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:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function de(){const t=jt.lFrame;return jt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const pe=de;function fe(){const t=de();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ge(){return jt.lFrame.selectedIndex}function me(t){jt.lFrame.selectedIndex=t}function _e(){const t=jt.lFrame;return Dt(t.tView,t.selectedIndex)}function we(){jt.lFrame.currentNamespace=kt}function ye(){jt.lFrame.currentNamespace=null}function be(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[a]<0&&(t[18]+=65536),(r>11>16&&(3&t[2])===e){t[2]+=2048;try{o.call(r)}finally{}}}else try{o.call(r)}finally{}}const Se=-1;class Me{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Ee(t,e,i){const n=Mt(t);let s=0;for(;se){r=o-1;break}}}for(;o>16,n=e;for(;i>0;)n=n[15],i--;return n}let Oe=!0;function He(t){const e=Oe;return Oe=t,e}let Ye=0;function Be(t,e){const i=Fe(t,e);if(-1!==i)return i;const n=e[1];n.firstCreatePass&&(t.injectorIndex=e.length,je(n.data,t),je(e,null),je(n.blueprint,null));const s=Ne(t,e),o=t.injectorIndex;if(ze(s)){const t=Pe(s),i=Ie(s,e),n=i[1].data;for(let s=0;s<8;s++)e[o+s]=i[t+s]|n[t+s]}return e[o+8]=s,o}function je(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Fe(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Ne(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let i=0,n=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(n=2===e?t.declTNode:1===e?s[6]:null,null===n)return Se;if(i++,s=s[15],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return Se}function Ke(t,e,i){!function(t,e,i){let n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty($)&&(n=i[$]),null==n&&(n=i[$]=Ye++);const s=255&n;e.data[t+(s>>5)]|=1<=0?255&e:Ve:e}(i);if("function"==typeof o){if(!ce(e,t,n))return n&L.Host?qe(s,i,n):Ue(e,i,n,s);try{const t=o(n);if(null!=t||n&L.Optional)return t;y(i)}finally{pe()}}else if("number"==typeof o){let s=null,r=Fe(t,e),a=Se,c=n&L.Host?e[16][6]:null;for((-1===r||n&L.SkipSelf)&&(a=-1===r?Ne(t,e):e[r+8],a!==Se&&Xe(n,!1)?(s=e[1],r=Pe(a),e=Ie(a,e)):r=-1);-1!==r;){const t=e[1];if(Qe(o,r,t.data)){const t=$e(r,e,i,s,n,c);if(t!==Ge)return t}a=e[r+8],a!==Se&&Xe(n,e[1].data[r+8]===c)&&Qe(o,r,e)?(s=t,r=Pe(a),e=Ie(a,e)):r=-1}}}return Ue(e,i,n,s)}const Ge={};function Ve(){return new ti(Ut(),Nt())}function $e(t,e,i,n,s,o){const r=e[1],a=r.data[t+8],c=We(a,r,i,null==n?pt(a)&&Oe:n!=r&&0!=(3&a.type),s&L.Host&&o===a);return null!==c?Je(e,r,c,a):Ge}function We(t,e,i,n,s){const o=t.providerIndexes,r=e.data,a=1048575&o,c=t.directiveStart,u=o>>20,l=s?a+u:t.directiveEnd;for(let h=n?a:a+u;h=c&&t.type===i)return h}if(s){const t=r[c];if(t&>(t)&&t.type===i)return c}return null}function Je(t,e,i,n){let s=t[i];const o=e.data;if(s instanceof Me){const r=s;r.resolving&&function(t,e){throw new m("200",`Circular dependency in DI detected for ${t}`)}(w(o[i]));const a=He(r.canSeeViewProviders);r.resolving=!0;const c=r.injectImpl?R(r.injectImpl):null;ce(t,n,L.Default);try{s=t[i]=r.factory(void 0,o,t,n),e.firstCreatePass&&i>=n.directiveStart&&function(t,e,i){const{ngOnChanges:n,ngOnInit:s,ngDoCheck:o}=e.type.prototype;if(n){const n=yt(e);(i.preOrderHooks||(i.preOrderHooks=[])).push(t,n),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,n)}s&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-t,s),o&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,o),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,o))}(i,o[i],e)}finally{null!==c&&R(c),He(a),r.resolving=!1,pe()}}return s}function Qe(t,e,i){return!!(i[e+(t>>5)]&1<{const e=t.prototype.constructor,i=e[V]||ii(e),n=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==n;){const t=s[V]||ii(s);if(t&&t!==i)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function ii(t){return g(t)?()=>{const e=ii(f(t));return e&&e()}:mt(t)}function ni(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const i=t.attrs;if(i){const t=i.length;let n=0;for(;n{const n=function(t){return function(...e){if(t){const i=t(...e);for(const t in i)this[t]=i[t]}}}(e);function s(...t){if(this instanceof s)return n.apply(this,t),this;const e=new s(...t);return i.annotation=e,i;function i(t,i,n){const s=t.hasOwnProperty(si)?t[si]:Object.defineProperty(t,si,{value:[]})[si];for(;s.length<=n;)s.push(null);return(s[n]=s[n]||[]).push(e),t}}return i&&(s.prototype=Object.create(i.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class ri{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=b({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const ai=new ri("AnalyzeForEntryComponents"),ci=Function;function ui(t,e){void 0===e&&(e=t);for(let i=0;iArray.isArray(t)?li(t,e):e(t))}function hi(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function di(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function pi(t,e){const i=[];for(let n=0;n=0?t[1|n]=i:(n=~n,function(t,e,i,n){let s=t.length;if(s==e)t.push(i,n);else if(1===s)t.push(n,t[0]),t[0]=i;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=i,t[e+1]=n}}(t,n,e,i)),n}function gi(t,e){const i=mi(t,e);if(i>=0)return t[1|i]}function mi(t,e){return function(t,e,i){let n=0,s=t.length>>1;for(;s!==n;){const i=n+(s-n>>1),o=t[i<<1];if(e===o)return i<<1;o>e?s=i:n=i+1}return~(s<<1)}(t,e)}const _i={},wi=/\n/gm,yi="__source",bi=c({provide:String,useValue:c});let Ai;function vi(t){const e=Ai;return Ai=t,e}function ki(t,e=L.Default){if(void 0===Ai)throw new Error("inject() must be called from an injection context");return null===Ai?D(t,void 0,e):Ai.get(t,e&L.Optional?null:void 0,e)}function Ti(t,e=L.Default){return(x||ki)(f(t),e)}const Ci=Ti;function Si(t){const e=[];for(let i=0;i({token:t})),-1),Li=Mi(oi("Optional"),8),xi=Mi(oi("SkipSelf"),4);let Ri,Di;function zi(t){var e;return(null===(e=function(){if(void 0===Ri&&(Ri=null,j.trustedTypes))try{Ri=j.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Ri}())||void 0===e?void 0:e.createHTML(t))||t}function Pi(t){var e;return(null===(e=function(){if(void 0===Di&&(Di=null,j.trustedTypes))try{Di=j.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Di}())||void 0===e?void 0:e.createHTML(t))||t}class Ii{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Oi extends Ii{getTypeName(){return"HTML"}}class Hi extends Ii{getTypeName(){return"Style"}}class Yi extends Ii{getTypeName(){return"Script"}}class Bi extends Ii{getTypeName(){return"URL"}}class ji extends Ii{getTypeName(){return"ResourceURL"}}function Fi(t){return t instanceof Ii?t.changingThisBreaksApplicationSecurity:t}function Ni(t,e){const i=Ki(t);if(null!=i&&i!==e){if("ResourceURL"===i&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${i} (see https://g.co/ng/security#xss)`)}return i===e}function Ki(t){return t instanceof Ii&&t.getTypeName()||null}function qi(t){return new Oi(t)}function Ui(t){return new Hi(t)}function Zi(t){return new Yi(t)}function Gi(t){return new Bi(t)}function Vi(t){return new ji(t)}class $i{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(zi(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class Wi{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=zi(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=zi(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let n=e.length-1;0Xi(t.trim())).join(", ")),this.buf.push(" ",e,'="',gn(r),'"')}var n;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();an.hasOwnProperty(e)&&!nn.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(gn(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const pn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,fn=/([^\#-~ |!])/g;function gn(t){return t.replace(/&/g,"&").replace(pn,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(fn,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let mn;function _n(t,e){let i=null;try{mn=mn||function(t){const e=new Wi(t);return function(){try{return!!(new window.DOMParser).parseFromString(zi(""),"text/html")}catch(t){return!1}}()?new $i(e):e}(t);let n=e?String(e):"";i=mn.getInertBodyElement(n);let s=5,o=n;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,n=o,o=i.innerHTML,i=mn.getInertBodyElement(n)}while(n!==o);return zi((new dn).sanitizeChildren(wn(i)||i))}finally{if(i){const t=wn(i)||i;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function wn(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var yn=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function bn(t){const e=vn();return e?Pi(e.sanitize(yn.HTML,t)||""):Ni(t,"HTML")?Pi(Fi(t)):_n(St(),_(t))}function An(t){const e=vn();return e?e.sanitize(yn.URL,t)||"":Ni(t,"URL")?Fi(t):Xi(_(t))}function vn(){const t=Nt();return t&&t[12]}function kn(t,e){t.__ngContext__=e}function Tn(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Cn(t){return t.ngDebugContext}function Sn(t){return t.ngOriginalError}function Mn(t,...e){t.error(...e)}class En{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=this._findContext(t),n=function(t){return t.ngErrorLogger||Mn}(t);n(this._console,"ERROR",t),e&&n(this._console,"ORIGINAL ERROR",e),i&&n(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?Cn(t)?Cn(t):this._findContext(Sn(t)):null}_findOriginalError(t){let e=Sn(t);for(;e&&Sn(e);)e=Sn(e);return e}}const Ln=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(j))();function xn(t){return t.ownerDocument.defaultView}function Rn(t){return t.ownerDocument.body}function Dn(t){return t instanceof Function?t():t}var zn=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function Pn(t,e){return(void 0)(t,e)}function In(t){const e=t[3];return ht(e)?e[3]:e}function On(t){return Yn(t[13])}function Hn(t){return Yn(t[4])}function Yn(t){for(;null!==t&&!ht(t);)t=t[4];return t}function Bn(t,e,i,n,s){if(null!=n){let o,r=!1;ht(n)?o=n:lt(n)&&(r=!0,n=n[0]);const a=Lt(n);0===t&&null!==i?null==s?Gn(e,i,a):Zn(e,i,a,s||null,!0):1===t&&null!==i?Zn(e,i,a,s||null,!0):2===t?function(t,e,i){const n=$n(t,e);n&&function(t,e,i,n){Mt(t)?t.removeChild(e,i,n):e.removeChild(i)}(t,n,e,i)}(e,a,r):3===t&&e.destroyNode(a),null!=o&&function(t,e,i,n,s){const o=i[7];o!==Lt(i)&&Bn(e,t,n,o,s);for(let r=ut;r0&&(t[i-1][4]=n[4]);const r=di(t,ut+e);ns(n[1],s=n,s[11],2,null,null),s[0]=null,s[6]=null;const a=r[19];null!==a&&a.detachView(r[1]),n[3]=null,n[4]=null,n[2]&=-129}var s;return n}function Kn(t,e){if(!(256&e[2])){const i=e[11];Mt(i)&&i.destroyNode&&ns(t,e,i,3,null,null),function(t){let e=t[13];if(!e)return qn(t[1],t);for(;e;){let i=null;if(lt(e))i=e[13];else{const t=e[10];t&&(i=t)}if(!i){for(;e&&!e[4]&&e!==t;)lt(e)&&qn(e[1],e),e=e[3];null===e&&(e=t),lt(e)&&qn(e[1],e),i=e&&e[4]}e=i}}(e)}}function qn(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let i;if(null!=t&&null!=(i=t.destroyHooks))for(let n=0;n=0?n[s=c]():n[s=-c].unsubscribe(),o+=2}else{const t=n[s=i[o+1]];i[o].call(t)}if(null!==n){for(let t=s+1;to?"":s[l+1].toLowerCase();const e=8&n?t:null;if(e&&-1!==as(e,u,0)||2&n&&u!==t){if(ps(n))return!1;r=!0}}}}else{if(!r&&!ps(n)&&!ps(c))return!1;if(r&&ps(c))continue;r=!1,n=c|1&n}}return ps(n)||r}function ps(t){return 0==(1&t)}function fs(t,e,i,n){if(null===e)return-1;let s=0;if(n||!i){let i=!1;for(;s-1)for(i++;i0?'="'+e+'"':"")+"]"}else 8&n?s+="."+r:4&n&&(s+=" "+r);else""===s||ps(r)||(e+=_s(o,s),s=""),n=r,o=o||!ps(n);i++}return""!==s&&(e+=_s(o,s)),e}const ys={};function bs(t){As(Kt(),Nt(),ge()+t,Wt())}function As(t,e,i,n){if(!n)if(3==(3&e[2])){const n=t.preOrderCheckHooks;null!==n&&Ae(e,n,i)}else{const n=t.preOrderHooks;null!==n&&ve(e,n,0,i)}me(i)}function vs(t,e){return t<<17|e<<2}function ks(t){return t>>17&32767}function Ts(t){return 2|t}function Cs(t){return(131068&t)>>2}function Ss(t,e){return-131069&t|e<<2}function Ms(t){return 1|t}function Es(t,e){const i=t.contentQueries;if(null!==i)for(let n=0;nct&&As(t,e,ct,Wt()),i(n,s)}finally{me(o)}}function Os(t,e,i){if(dt(e)){const n=e.directiveEnd;for(let s=e.directiveStart;s0;){const i=t[--e];if("number"==typeof i&&i<0)return i}return 0})(i)!=o&&i.push(o),i.push(n,s,r)}}function Zs(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Gs(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Vs(t,e,i){if(i){if(e.exportAs)for(let n=0;n0&&io(i)}}function io(t){for(let i=On(t);null!==i;i=Hn(i))for(let t=ut;t0&&io(e)}const e=t[1].components;if(null!==e)for(let i=0;i0&&io(n)}}function no(t,e){const i=Pt(e,t),n=i[1];!function(t,e){for(let i=e.length;iPromise.resolve(null))();function lo(t){return t[7]||(t[7]=[])}function ho(t){return t.cleanup||(t.cleanup=[])}function po(t,e,i){return(null===t||gt(t))&&(i=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(i[e.index])),i[11]}function fo(t,e){const i=t[9],n=i?i.get(En,null):null;n&&n.handleError(e)}function go(t,e,i,n,s){for(let o=0;othis.processProvider(i,t,e)),li([t],t=>this.processInjectorType(t,[],s)),this.records.set(wo,Lo(void 0,this));const o=this.records.get(bo);this.scope=null!=o?o.value:null,this.source=n||("object"==typeof t?null:l(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=_i,i=L.Default){this.assertNotDestroyed();const n=vi(this);try{if(!(i&L.SkipSelf)){let e=this.records.get(t);if(void 0===e){const i=("function"==typeof(s=t)||"object"==typeof s&&s instanceof ri)&&v(t);e=i&&this.injectableDefInScope(i)?Lo(Mo(t),Ao):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(i&L.Self?To():this.parent).get(t,e=i&L.Optional&&e===_i?null:e)}catch(o){if("NullInjectorError"===o.name){if((o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(l(t)),n)throw o;return function(t,e,i,n){const s=t.ngTempTokenPath;throw e[yi]&&s.unshift(e[yi]),t.message=function(t,e,i,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=l(e);if(Array.isArray(e))s=e.map(l).join(" -> ");else if("object"==typeof e){let t=[];for(let i in e)if(e.hasOwnProperty(i)){let n=e[i];t.push(i+":"+("string"==typeof n?JSON.stringify(n):l(n)))}s=`{${t.join(", ")}}`}return`${i}${n?"("+n+")":""}[${s}]: ${t.replace(wi,"\n ")}`}("\n"+t.message,s,i,n),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(o,t,"R3InjectorError",this.source)}throw o}finally{vi(n)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,i)=>t.push(l(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,i){if(!(t=f(t)))return!1;let n=T(t);const s=null==n&&t.ngModule||void 0,o=void 0===s?t:s,r=-1!==i.indexOf(o);if(void 0!==s&&(n=T(s)),null==n)return!1;if(null!=n.imports&&!r){let t;i.push(o);try{li(n.imports,n=>{this.processInjectorType(n,e,i)&&(void 0===t&&(t=[]),t.push(n))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,i,n||N))}}this.injectorDefTypes.add(o);const a=mt(o)||(()=>new o);this.records.set(o,Lo(a,Ao));const c=n.providers;if(null!=c&&!r){const e=t;li(c,t=>this.processProvider(t,e,c))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,i){let n=Ro(t=f(t))?t:f(t&&t.provide);const s=function(t,e,i){return xo(t)?Lo(void 0,t.useValue):Lo(Eo(t),Ao)}(t);if(Ro(t)||!0!==t.multi)this.records.get(n);else{let e=this.records.get(n);e||(e=Lo(void 0,Ao,!0),e.factory=()=>Si(e.multi),this.records.set(n,e)),n=t,e.multi.push(t)}this.records.set(n,s)}hydrate(t,e){var i;return e.value===Ao&&(e.value=vo,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(i=e.value)&&"object"==typeof i&&"function"==typeof i.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=f(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Mo(t){const e=v(t),i=null!==e?e.factory:mt(t);if(null!==i)return i;if(t instanceof ri)throw new Error(`Token ${l(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const i=pi(e,"?");throw new Error(`Can't resolve all parameters for ${l(t)}: (${i.join(", ")}).`)}const i=function(t){const e=t&&(t[C]||t[M]);if(e){const i=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${i}" 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 "${i}" class.`),e}return null}(t);return null!==i?()=>i.factory(t):()=>new t}(t);throw new Error("unreachable")}function Eo(t,e,i){let n;if(Ro(t)){const e=f(t);return mt(e)||Mo(e)}if(xo(t))n=()=>f(t.useValue);else if((s=t)&&s.useFactory)n=()=>t.useFactory(...Si(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))n=()=>Ti(f(t.useExisting));else{const e=f(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return mt(e)||Mo(e);n=()=>new e(...Si(t.deps))}var s;return n}function Lo(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function xo(t){return null!==t&&"object"==typeof t&&bi in t}function Ro(t){return"function"==typeof t}const Do=function(t,e,i){return function(t,e=null,i=null,n){const s=Co(t,e,i,n);return s._resolveInjectorDefTypes(),s}({name:i},e,t,i)};let zo=(()=>{class t{static create(t,e){return Array.isArray(t)?Do(t,e,""):Do(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=_i,t.NULL=new yo,t.\u0275prov=b({token:t,providedIn:"any",factory:()=>Ti(wo)}),t.__NG_ELEMENT_ID__=-1,t})();function Po(t,e){be(Tn(t)[1],Ut())}function Io(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,i=!0;const n=[t];for(;e;){let s;if(gt(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(i){n.push(s);const e=t;e.inputs=Oo(t.inputs),e.declaredInputs=Oo(t.declaredInputs),e.outputs=Oo(t.outputs);const i=s.hostBindings;i&&Bo(t,i);const o=s.viewQuery,r=s.contentQueries;if(o&&Ho(t,o),r&&Yo(t,r),u(t.inputs,s.inputs),u(t.declaredInputs,s.declaredInputs),u(t.outputs,s.outputs),gt(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let n=0;n=0;n--){const s=t[n];s.hostVars=e+=s.hostVars,s.hostAttrs=Re(s.hostAttrs,i=Re(i,s.hostAttrs))}}(n)}function Oo(t){return t===F?{}:t===N?[]:t}function Ho(t,e){const i=t.viewQuery;t.viewQuery=i?(t,n)=>{e(t,n),i(t,n)}:e}function Yo(t,e){const i=t.contentQueries;t.contentQueries=i?(t,n,s)=>{e(t,n,s),i(t,n,s)}:e}function Bo(t,e){const i=t.hostBindings;t.hostBindings=i?(t,n)=>{e(t,n),i(t,n)}:e}let jo=null;function Fo(){if(!jo){const t=j.Symbol;if(t&&t.iterator)jo=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Lt(t[n.index])):n.index;if(Mt(i)){let r=null;if(!a&&c&&(r=function(t,e,i,n){const s=t.cleanup;if(null!=s)for(let o=0;oi?t[i]:null}"string"==typeof t&&(o+=2)}return null}(t,e,s,n.index)),null!==r)(r.__ngLastListenerFn__||r).__ngNextListenerFn__=o,r.__ngLastListenerFn__=o,h=!1;else{o=gr(n,e,0,o,!1);const t=i.listen(p,s,o);l.push(o,t),u&&u.push(s,g,f,f+1)}}else o=gr(n,e,0,o,!0),p.addEventListener(s,o,r),l.push(o),u&&u.push(s,g,f,r)}else o=gr(n,e,0,o,!1);const d=n.outputs;let p;if(h&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let i=0;i0;)e=e[15],t--;return e}(t,jt.lFrame.contextLView))[8]}(t)}function _r(t,e){let i=null;const n=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s=0}const Tr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Cr(t){return t.substring(Tr.key,Tr.keyEnd)}function Sr(t,e){const i=Tr.textEnd;return i===e?-1:(e=Tr.keyEnd=function(t,e,i){for(;e32;)e++;return e}(t,Tr.key=e,i),Mr(t,e,i))}function Mr(t,e,i){for(;e=0;i=Sr(e,i))fi(t,Cr(e),!0)}function Dr(t,e,i,n){const s=Nt(),o=Kt(),r=ee(2);o.firstUpdatePass&&Ir(o,t,r,n),e!==ys&&Zo(s,r,e)&&Yr(o,o.data[ge()],s,s[11],t,s[r+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=l(Fi(t)))),t}(e,i),n,r)}function zr(t,e,i,n){const s=Kt(),o=ee(2);s.firstUpdatePass&&Ir(s,null,o,n);const r=Nt();if(i!==ys&&Zo(r,o,i)){const a=s.data[ge()];if(Fr(a,n)&&!Pr(s,o)){let t=n?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(i=h(t,i||"")),tr(s,a,r,i,n)}else!function(t,e,i,n,s,o,r,a){s===ys&&(s=N);let c=0,u=0,l=0=t.expandoStartIndex}function Ir(t,e,i,n){const s=t.data;if(null===s[i+1]){const o=s[ge()],r=Pr(t,i);Fr(o,n)&&null===e&&!r&&(e=!1),e=function(t,e,i,n){const s=se(t);let o=n?e.residualClasses:e.residualStyles;if(null===s)0===(n?e.classBindings:e.styleBindings)&&(i=Hr(i=Or(null,t,e,i,n),e.attrs,n),o=null);else{const r=e.directiveStylingLast;if(-1===r||t[r]!==s)if(i=Or(s,t,e,i,n),null===o){let i=function(t,e,i){const n=i?e.classBindings:e.styleBindings;if(0!==Cs(n))return t[ks(n)]}(t,e,n);void 0!==i&&Array.isArray(i)&&(i=Or(null,t,e,i[1],n),i=Hr(i,e.attrs,n),function(t,e,i,n){t[ks(i?e.classBindings:e.styleBindings)]=n}(t,e,n,i))}else o=function(t,e,i){let n;const s=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0)&&(l=!0)}else u=i;if(s)if(0!==c){const e=ks(t[a+1]);t[n+1]=vs(e,a),0!==e&&(t[e+1]=Ss(t[e+1],n)),t[a+1]=131071&t[a+1]|n<<17}else t[n+1]=vs(a,0),0!==a&&(t[a+1]=Ss(t[a+1],n)),a=n;else t[n+1]=vs(c,0),0===a?a=n:t[c+1]=Ss(t[c+1],n),c=n;l&&(t[n+1]=Ts(t[n+1])),vr(t,u,n,!0),vr(t,u,n,!1),function(t,e,i,n,s){const o=s?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&mi(o,e)>=0&&(i[n+1]=Ms(i[n+1]))}(e,u,t,n,o),r=vs(a,c),o?e.classBindings=r:e.styleBindings=r}(s,o,e,i,r,n)}}function Or(t,e,i,n,s){let o=null;const r=i.directiveEnd;let a=i.directiveStylingLast;for(-1===a?a=i.directiveStart:a++;a0;){const e=t[s],o=Array.isArray(e),c=o?e[1]:e,u=null===c;let l=i[s+1];l===ys&&(l=u?N:void 0);let h=u?gi(l,n):c===n?l:void 0;if(o&&!jr(h)&&(h=gi(e,n)),jr(h)&&(a=h,r))return a;const d=t[s+1];s=r?ks(d):Cs(d)}if(null!==e){let t=o?e.residualClasses:e.residualStyles;null!=t&&(a=gi(t,n))}return a}function jr(t){return void 0!==t}function Fr(t,e){return 0!=(t.flags&(e?16:32))}function Nr(t,e=""){const i=Nt(),n=Kt(),s=t+ct,o=n.firstCreatePass?xs(n,s,1,e,null):n.data[s],r=i[s]=function(t,e){return Mt(t)?t.createText(e):t.createTextNode(e)}(i[11],e);Qn(n,i,r,o),Gt(o,!1)}function Kr(t){return qr("",t,""),Kr}function qr(t,e,i){const n=Nt(),s=$o(n,t,e,i);return s!==ys&&mo(n,ge(),s),qr}function Ur(t,e,i,n,s){const o=Nt(),r=function(t,e,i,n,s,o){const r=Go(t,Xt(),i,s);return ee(2),r?e+_(i)+n+_(s)+o:ys}(o,t,e,i,n,s);return r!==ys&&mo(o,ge(),r),Ur}function Zr(t,e,i,n,s,o,r,a,c,u,l){const h=Nt(),d=function(t,e,i,n,s,o,r,a,c,u,l,h){const d=Xt();let p=function(t,e,i,n,s,o){const r=Go(t,e,i,n);return Go(t,e+2,s,o)||r}(t,d,i,s,r,c);return p=Zo(t,d+4,l)||p,ee(5),p?e+_(i)+n+_(s)+o+_(r)+a+_(c)+u+_(l)+h:ys}(h,t,e,i,n,s,o,r,a,c,u,l);return d!==ys&&mo(h,ge(),d),Zr}function Gr(t,e,i){zr(fi,Rr,$o(Nt(),t,e,i),!0)}function Vr(t,e,i){const n=Nt();return Zo(n,te(),e)&&Ks(Kt(),_e(),n,t,e,n[11],i,!0),Vr}function $r(t,e,i){const n=Nt();if(Zo(n,te(),e)){const s=Kt(),o=_e();Ks(s,o,n,t,e,po(se(s.data),o,n),i,!0)}return $r}const Wr=void 0;var Jr=["en",[["a","p"],["AM","PM"],Wr],[["AM","PM"],Wr,Wr],[["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"]],Wr,[["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"]],Wr,[["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}",Wr,"{1} 'at' {0}",Wr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let Qr={};function Xr(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let i=ea(e);if(i)return i;const n=e.split("-")[0];if(i=ea(n),i)return i;if("en"===n)return Jr;throw new Error(`Missing locale data for the locale "${t}".`)}function ta(t){return Xr(t)[ia.PluralCase]}function ea(t){return t in Qr||(Qr[t]=j.ng&&j.ng.common&&j.ng.common.locales&&j.ng.common.locales[t]),Qr[t]}var ia=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});const na="en-US";let sa=na;function oa(t){var e,i;i="Expected localeId to be defined",null==(e=t)&&function(t,e,i,n){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(i,e),"string"==typeof t&&(sa=t.toLowerCase().replace(/_/g,"-"))}function ra(t,e,i,n,s){if(t=f(t),Array.isArray(t))for(let o=0;o>20;if(Ro(t)||!t.multi){const n=new Me(c,s,Qo),p=ua(a,e,s?l:l+d,h);-1===p?(Ke(Be(u,r),o,a),aa(o,t,e.length),e.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),i.push(n),r.push(n)):(i[p]=n,r[p]=n)}else{const p=ua(a,e,l+d,h),f=ua(a,e,l,l+d),g=p>=0&&i[p],m=f>=0&&i[f];if(s&&!m||!s&&!g){Ke(Be(u,r),o,a);const l=function(t,e,i,n,s){const o=new Me(t,i,Qo);return o.multi=[],o.index=e,o.componentProviders=0,ca(o,s,n&&!i),o}(s?ha:la,i.length,s,n,c);!s&&m&&(i[f].providerFactory=l),aa(o,t,e.length,0),e.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),i.push(l),r.push(l)}else aa(o,t,p>-1?p:f,ca(i[s?f:p],c,!s&&n));!s&&n&&m&&i[f].componentProviders++}}}function aa(t,e,i,n){const s=Ro(e);if(s||e.useClass){const o=(e.useClass||e).prototype.ngOnDestroy;if(o){const r=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=r.indexOf(i);-1===t?r.push(i,[n,o]):r[t+1].push(n,o)}else r.push(i,o)}}}function ca(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function ua(t,e,i,n){for(let s=i;s{i.providersResolver=(i,n)=>function(t,e,i){const n=Kt();if(n.firstCreatePass){const s=gt(t);ra(i,n.data,n.blueprint,s,!0),ra(e,n.data,n.blueprint,s,!1)}}(i,n?n(t):t,e)}}class fa{}class ga{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${l(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let ma=(()=>{class t{}return t.NULL=new ga,t})();function _a(...t){}function wa(t,e){return new ba(Rt(t,e))}const ya=function(){return wa(Ut(),Nt())};let ba=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=ya,t})();function Aa(t){return t instanceof ba?t.nativeElement:t}class va{}let ka=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ta(),t})();const Ta=function(){const t=Nt(),e=Pt(Ut().index,t);return function(t){return t[11]}(lt(e)?e:t)};let Ca=(()=>{class t{}return t.\u0275prov=b({token:t,providedIn:"root",factory:()=>null}),t})();class Sa{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ma=new Sa("12.0.5");class Ea{constructor(){}supports(t){return Ko(t)}create(t){return new xa(t)}}const La=(t,e)=>e;class xa{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||La}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,n=0,s=null;for(;e||i;){const o=!i||e&&e.currentIndex{n=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,n)?(o&&(s=this._verifyReinsertion(s,t,n,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,n,e),o=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,n){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,n)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,n))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,n)):t=this._addAfter(new Ra(e,i),s,n),t}_verifyReinsertion(t,e,i,n){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,n):t.currentIndex!=n&&(t.currentIndex=n,this._addToMoves(t,n)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const n=t._prevRemoved,s=t._nextRemoved;return null===n?this._removalsHead=s:n._nextRemoved=s,null===s?this._removalsTail=n:s._prevRemoved=n,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const n=null===e?this._itHead:e._next;return t._next=n,t._prev=e,null===n?this._itTail=t:n._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new za),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new za),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Ra{constructor(t,e){this.item=t,this.trackById=e,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 Da{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class za{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new Da,this.map.set(e,i)),i.add(t)}get(t,e){const i=this.map.get(t);return i?i.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Pa(t,e,i){const n=t.previousIndex;if(null===n)return n;let s=0;return i&&n{if(e&&e.key===i)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const n=this._getOrCreateRecordForKey(i,t);e=this._insertBeforeOrAppend(e,n)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,e);const n=i._prev,s=i._next;return n&&(n._next=s),s&&(s._prev=n),i._next=null,i._prev=null,i}const i=new Ha(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class Ha{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Ya(){return new Ba([new Ea])}let Ba=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(null!=i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Ya()),deps:[[t,new xi,new Li]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${i=t,i.name||typeof i}'`);var i}}return t.\u0275prov=b({token:t,providedIn:"root",factory:Ya}),t})();function ja(){return new Fa([new Ia])}let Fa=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||ja()),deps:[[t,new xi,new Li]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=b({token:t,providedIn:"root",factory:ja}),t})();function Na(t,e,i,n,s=!1){for(;null!==i;){const o=e[i.index];if(null!==o&&n.push(Lt(o)),ht(o))for(let t=ut;t-1&&(Nn(t,i),di(e,i))}this._attachedToViewContainer=!1}Kn(this._lView[1],this._lView)}onDestroy(t){Fs(this._lView[1],this._lView,null,t)}markForCheck(){oo(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ro(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,i){Jt(!0);try{ro(t,e,i)}finally{Jt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,ns(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class qa extends Ka{constructor(t){super(t),this._view=t}detectChanges(){ao(this._view)}checkNoChanges(){!function(t){Jt(!0);try{ao(t)}finally{Jt(!1)}}(this._view)}get context(){return null}}const Ua=function(t){return function(t,e,i){if(pt(t)&&!i){const i=Pt(t.index,e);return new Ka(i,i)}return 47&t.type?new Ka(e[16],e):null}(Ut(),Nt(),16==(16&t))};let Za=(()=>{class t{}return t.__NG_ELEMENT_ID__=Ua,t})();const Ga=[new Ia],Va=new Ba([new Ea]),$a=new Fa(Ga),Wa=function(){return tc(Ut(),Nt())};let Ja=(()=>{class t{}return t.__NG_ELEMENT_ID__=Wa,t})();const Qa=Ja,Xa=class extends Qa{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=Ls(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const n=this._declarationLView[19];return null!==n&&(i[19]=n.createEmbeddedView(e)),Ds(e,i,t),new Ka(i)}};function tc(t,e){return 4&t.type?new Xa(e,t,wa(t,e)):null}class ec{}class ic{}const nc=function(){return uc(Ut(),Nt())};let sc=(()=>{class t{}return t.__NG_ELEMENT_ID__=nc,t})();const oc=sc,rc=class extends oc{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return wa(this._hostTNode,this._hostLView)}get injector(){return new ti(this._hostTNode,this._hostLView)}get parentInjector(){const t=Ne(this._hostTNode,this._hostLView);if(ze(t)){const e=Ie(t,this._hostLView),i=Pe(t);return new ti(e[1].data[i+8],e)}return new ti(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=ac(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-ut}createEmbeddedView(t,e,i){const n=t.createEmbeddedView(e||{});return this.insert(n,i),n}createComponent(t,e,i,n,s){const o=i||this.parentInjector;if(!s&&null==t.ngModule&&o){const t=o.get(ec,null);t&&(s=t)}const r=t.create(o,n,void 0,s);return this.insert(r.hostView,e),r}insert(t,e){const i=t._lView,n=i[1];if(ht(i[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=i[3],n=new rc(e,e[6],e[3]);n.detach(n.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function(t,e,i,n){const s=ut+n,o=i.length;n>0&&(i[s-1][4]=e),nLn});class fc extends fa{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(ws).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return dc(this.componentDef.inputs)}get outputs(){return dc(this.componentDef.outputs)}create(t,e,i,n){const s=(n=n||this.ngModule)?function(t,e){return{get:(i,n,s)=>{const o=t.get(i,lc,s);return o!==lc||n===lc?o:e.get(i,n,s)}}}(t,n.injector):t,o=s.get(va,Et),r=s.get(Ca,null),a=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function(t,e,i){if(Mt(t))return t.selectRootElement(e,i===I.ShadowDom);let n="string"==typeof e?t.querySelector(e):e;return n.textContent="",n}(a,i,this.componentDef.encapsulation):jn(o.createRenderer(null,this.componentDef),c,function(t){const e=t.toLowerCase();return"svg"===e?kt:"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),l=this.componentDef.onPush?576:528,h={components:[],scheduler:Ln,clean:uo,playerHandler:null,flags:0},d=js(0,null,null,1,0,null,null,null,null,null),p=Ls(null,d,h,l,null,null,o,a,r,s);let f,g;ue(p);try{const t=function(t,e,i,n,s,o){const r=i[1];i[20]=t;const a=xs(r,20,2,"#host",null),c=a.mergedAttrs=e.hostAttrs;null!==c&&(_o(a,c,!0),null!==t&&(Ee(s,t,c),null!==a.classes&&rs(s,t,a.classes),null!==a.styles&&os(s,t,a.styles)));const u=n.createRenderer(t,e),l=Ls(i,Bs(e),null,e.onPush?64:16,i[20],a,n,u,null,null);return r.firstCreatePass&&(Ke(Be(a,i),r,e.type),Gs(r,a),$s(a,i.length,1)),so(i,l),i[20]=l}(u,this.componentDef,p,o,a);if(u)if(i)Ee(a,u,["ng-version",Ma.full]);else{const{attrs:t,classes:e}=function(t){const e=[],i=[];let n=1,s=2;for(;n0&&rs(a,u,e.join(" "))}if(g=Dt(d,ct),void 0!==e){const t=g.projection=[];for(let i=0;it(r,e)),e.contentQueries){const t=Ut();e.contentQueries(1,r,t.directiveStart)}const a=Ut();return!o.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(me(a.index),Us(i[1],a,0,a.directiveStart,a.directiveEnd,e),Zs(e,r)),r}(t,this.componentDef,p,h,[Po]),Ds(d,p,null)}finally{fe()}return new gc(this.componentType,f,wa(g,p),p,g)}}class gc extends class{}{constructor(t,e,i,n,s){super(),this.location=i,this._rootLView=n,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new qa(n),this.componentType=t}get injector(){return new ti(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const mc=new Map;class _c extends ec{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new hc(this);const i=at(t),n=t[G]||null;n&&oa(n),this._bootstrapComponents=Dn(i.bootstrap),this._r3Injector=Co(t,e,[{provide:ec,useValue:this},{provide:ma,useValue:this.componentFactoryResolver}],l(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=zo.THROW_IF_NOT_FOUND,i=L.Default){return t===zo||t===ec||t===wo?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class wc extends ic{constructor(t){super(),this.moduleType=t,null!==at(t)&&function(t){const e=new Set;!function t(i){const n=at(i,!0),s=n.id;null!==s&&(function(t,e,i){if(e&&e!==i)throw new Error(`Duplicate module registered for ${t} - ${l(e)} vs ${l(e.name)}`)}(s,mc.get(s),i),mc.set(s,i));const o=Dn(n.imports);for(const r of o)e.has(r)||(e.add(r),t(r))}(t)}(t)}create(t){return new _c(this.moduleType,t)}}function yc(t,e,i){const n=Qt()+t,s=Nt();return s[n]===ys?Uo(s,n,i?e.call(i):e()):function(t,e){return t[e]}(s,n)}function bc(t,e,i,n){return kc(Nt(),Qt(),t,e,i,n)}function Ac(t,e,i,n,s){return Tc(Nt(),Qt(),t,e,i,n,s)}function vc(t,e){const i=t[e];return i===ys?void 0:i}function kc(t,e,i,n,s,o){const r=e+i;return Zo(t,r,s)?Uo(t,r+1,o?n.call(o,s):n(s)):vc(t,r+1)}function Tc(t,e,i,n,s,o,r){const a=e+i;return Go(t,a,s,o)?Uo(t,a+2,r?n.call(r,s,o):n(s,o)):vc(t,a+2)}function Cc(t,e){const i=Kt();let n;const s=t+ct;i.firstCreatePass?(n=function(t,e){if(e)for(let i=e.length-1;i>=0;i--){const n=e[i];if(t===n.name)return n}throw new m("302",`The pipe '${t}' could not be found!`)}(e,i.pipeRegistry),i.data[s]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(s,n.onDestroy)):n=i.data[s];const o=n.factory||(n.factory=mt(n.type)),r=R(Qo);try{const t=He(!1),e=o();return He(t),function(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}(i,Nt(),s,e),e}finally{R(r)}}function Sc(t,e,i){const n=t+ct,s=Nt(),o=zt(s,n);return xc(s,Lc(s,n)?kc(s,Qt(),e,o.transform,i,o):o.transform(i))}function Mc(t,e,i,n){const s=t+ct,o=Nt(),r=zt(o,s);return xc(o,Lc(o,s)?Tc(o,Qt(),e,r.transform,i,n,r):r.transform(i,n))}function Ec(t,e,i,n,s){const o=t+ct,r=Nt(),a=zt(r,o);return xc(r,Lc(r,o)?function(t,e,i,n,s,o,r,a){const c=e+i;return function(t,e,i,n,s){const o=Go(t,e,i,n);return Zo(t,e+2,s)||o}(t,c,s,o,r)?Uo(t,c+3,a?n.call(a,s,o,r):n(s,o,r)):vc(t,c+3)}(r,Qt(),e,a.transform,i,n,s,a):a.transform(i,n,s))}function Lc(t,e){return t[1].data[e].pure}function xc(t,e){return No.isWrapped(e)&&(e=No.unwrap(e),t[Xt()]=ys),e}function Rc(t){return e=>{setTimeout(t,void 0,e)}}const Dc=class extends n.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var n,o,r;let a=t,c=e||(()=>null),u=i;if(t&&"object"==typeof t){const e=t;a=null===(n=e.next)||void 0===n?void 0:n.bind(e),c=null===(o=e.error)||void 0===o?void 0:o.bind(e),u=null===(r=e.complete)||void 0===r?void 0:r.bind(e)}this.__isAsync&&(c=Rc(c),a&&(a=Rc(a)),u&&(u=Rc(u)));const l=super.subscribe({next:a,error:c,complete:u});return t instanceof s.w&&t.add(l),l}};function zc(){return this._results[Fo()]()}class Pc{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Fo(),i=Pc.prototype;i[e]||(i[e]=zc)}get changes(){return this._changes||(this._changes=new Dc)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const n=ui(t);(this._changesDetected=!function(t,e,i){if(t.length!==e.length)return!1;for(let n=0;n0)n.push(r[t/2]);else{const s=o[t+1],r=e[-i];for(let t=ut;t{class t{constructor(t){this.appInits=t,this.resolve=_a,this.reject=_a,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{e.subscribe({complete:t,error:i})});t.push(i)}}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Ti(Qc,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();const tu=new ri("AppId"),eu={provide:tu,useFactory:function(){return`${iu()}${iu()}${iu()}`},deps:[]};function iu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const nu=new ri("Platform Initializer"),su=new ri("Platform ID"),ou=new ri("appBootstrapListener");let ru=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();const au=new ri("LocaleId"),cu=new ri("DefaultCurrencyCode");class uu{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const lu=function(t){return new wc(t)},hu=lu,du=function(t){return Promise.resolve(lu(t))},pu=function(t){const e=lu(t),i=Dn(at(t).declarations).reduce((t,e)=>{const i=rt(e);return i&&t.push(new fc(i)),t},[]);return new uu(e,i)},fu=pu,gu=function(t){return Promise.resolve(pu(t))};let mu=(()=>{class t{constructor(){this.compileModuleSync=hu,this.compileModuleAsync=du,this.compileModuleAndAllComponentsSync=fu,this.compileModuleAndAllComponentsAsync=gu}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();const _u=(()=>Promise.resolve(0))();function wu(t){"undefined"==typeof Zone?_u.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class yu{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Dc(!1),this.onMicrotaskEmpty=new Dc(!1),this.onStable=new Dc(!1),this.onError=new Dc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=!i&&e,n.shouldCoalesceRunChangeDetection=i,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let t=j.requestAnimationFrame,e=j.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(j,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,vu(t),t.isCheckStableRunning=!0,Au(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),vu(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,s,o,r,a)=>{try{return ku(t),i.invokeTask(s,o,r,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&e(),Tu(t)}},onInvoke:(i,n,s,o,r,a,c)=>{try{return ku(t),i.invoke(s,o,r,a,c)}finally{t.shouldCoalesceRunChangeDetection&&e(),Tu(t)}},onHasTask:(e,i,n,s)=>{e.hasTask(n,s),i===n&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,vu(t),Au(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,n,s)=>(e.handleError(n,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!yu.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(yu.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,n){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+n,t,bu,_a,_a);try{return s.runTask(o,e,i)}finally{s.cancelTask(o)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const bu={};function Au(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function vu(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function ku(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Tu(t){t._nesting--,Au(t)}class Cu{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Dc,this.onMicrotaskEmpty=new Dc,this.onStable=new Dc,this.onError=new Dc}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,n){return t.apply(e,i)}}let Su=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{yu.assertNotInAngularZone(),wu(()=>{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())wu(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,i){let n=-1;e&&e>0&&(n=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==n),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:n,updateCb:i})}whenStable(t,e,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,e,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,i){return[]}}return t.\u0275fac=function(e){return new(e||t)(Ti(yu))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})(),Mu=(()=>{class t{constructor(){this._applications=new Map,Ru.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Ru.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();class Eu{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}function Lu(t){Ru=t}let xu,Ru=new Eu,Du=!0,zu=!1;function Pu(){return zu=!0,Du}function Iu(){if(zu)throw new Error("Cannot enable prod mode after platform setup.");Du=!1}const Ou=new ri("AllowMultipleToken");class Hu{constructor(t,e){this.name=t,this.token=e}}function Yu(t,e,i=[]){const n=`Platform: ${e}`,s=new ri(n);return(e=[])=>{let o=Bu();if(!o||o.injector.get(Ou,!1))if(t)t(i.concat(e).concat({provide:s,useValue:!0}));else{const t=i.concat(e).concat({provide:s,useValue:!0},{provide:bo,useValue:"platform"});!function(t){if(xu&&!xu.destroyed&&!xu.injector.get(Ou,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");xu=t.get(ju);const e=t.get(nu,null);e&&e.forEach(t=>t())}(zo.create({providers:t,name:n}))}return function(t){const e=Bu();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function Bu(){return xu&&!xu.destroyed?xu:null}let ju=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const i=function(t,e){let i;return i="noop"===t?new Cu:("zone.js"===t?void 0:t)||new yu({enableLongStackTrace:Pu(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),i}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),n=[{provide:yu,useValue:i}];return i.run(()=>{const e=zo.create({providers:n,parent:this.injector,name:t.moduleType.name}),s=t.create(e),o=s.injector.get(En,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.runOutsideAngular(()=>{const t=i.onError.subscribe({next:t=>{o.handleError(t)}});s.onDestroy(()=>{Ku(this._modules,s),t.unsubscribe()})}),function(t,e,i){try{const n=i();return cr(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}(o,i,()=>{const t=s.injector.get(Xc);return t.runInitializers(),t.donePromise.then(()=>(oa(s.injector.get(au,na)||na),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const i=Fu({},e);return function(t,e,i){const n=new wc(i);return Promise.resolve(n)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,i))}_moduleDoBootstrap(t){const e=t.injector.get(Nu);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${l(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Ti(zo))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();function Fu(t,e){return Array.isArray(e)?e.reduce(Fu,t):Object.assign(Object.assign({},t),e)}let Nu=(()=>{class t{constructor(t,e,i,n,s){this._zone=t,this._injector=e,this._exceptionHandler=i,this._componentFactoryResolver=n,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const c=new o.y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),u=new o.y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{yu.assertNotInAngularZone(),wu(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const i=this._zone.onUnstable.subscribe(()=>{yu.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),i.unsubscribe()}});this.isStable=(0,r.T)(c,u.pipe((0,a.B)()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let i;i=t instanceof fa?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(i.componentType);const n=i.isBoundToModule?void 0:this._injector.get(ec),s=i.create(zo.NULL,[],e||i.selector,n),o=s.location.nativeElement,r=s.injector.get(Su,null),a=r&&s.injector.get(Mu);return r&&a&&a.registerApplication(o,r),s.onDestroy(()=>{this.detachView(s.hostView),Ku(this.components,s),a&&a.unregisterApplication(o)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Ku(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(ou,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Ti(yu),Ti(zo),Ti(En),Ti(ma),Ti(Xc))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();function Ku(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}class qu{}class Uu{}const Zu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Gu=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Zu}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,n]=t.split("#");return void 0===n&&(n="default"),i(3619)(e).then(t=>t[n]).then(t=>Vu(t,e,n)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,n]=t.split("#"),s="NgFactory";return void 0===n&&(n="default",s=""),i(3619)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[n+s]).then(t=>Vu(t,e,n))}}return t.\u0275fac=function(e){return new(e||t)(Ti(mu),Ti(Uu,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();function Vu(t,e,i){if(!t)throw new Error(`Cannot find '${i}' in '${e}'`);return t}const $u=function(t){return null},Wu=Yu(null,"core",[{provide:su,useValue:"unknown"},{provide:ju,deps:[zo]},{provide:Mu,deps:[]},{provide:ru,deps:[]}]),Ju=[{provide:Nu,useClass:Nu,deps:[yu,zo,En,ma,Xc]},{provide:pc,deps:[yu],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Xc,useClass:Xc,deps:[[new Li,Qc]]},{provide:mu,useClass:mu,deps:[]},eu,{provide:Ba,useFactory:function(){return Va},deps:[]},{provide:Fa,useFactory:function(){return $a},deps:[]},{provide:au,useFactory:function(t){return oa(t=t||"undefined"!=typeof $localize&&$localize.locale||na),t},deps:[[new Ei(au),new Li,new xi]]},{provide:cu,useValue:"USD"}];let Qu=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(Ti(Nu))},t.\u0275mod=et({type:t}),t.\u0275inj=A({providers:Ju}),t})()},2623:(module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{zr:()=>OAuthModule,Ct:()=>OAuthService});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1572),_angular_common__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(1511),_angular_common_http__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(9063),tslib__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(7632),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5959),rxjs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(878),rxjs__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(9764),rxjs__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(3875),rxjs__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(1225),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(1305),rxjs__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(1906),rxjs_operators__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3835),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6599),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(7701),rxjs_operators__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(509),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(4689),rxjs_operators__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(9996),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(3530),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(7727),rxjs_operators__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(9085),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(611),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(3982);module=__webpack_require__.hmd(module);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class t extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(t)))(i||t)}}(),t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class t{constructor(){this.data=new Map}getItem(t){return this.data.get(t)}removeItem(t){this.data.delete(t)}setItem(t,e){this.data.set(t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();class ReceivedTokens{}function b64DecodeUnicode(t){const e=t.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(e).split("").map(function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(t){return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(t){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){let e=this.inferHashAlgorithm(t.idTokenHeader),i=yield this.calcHash(t.accessToken,e),n=base64UrlEncode(i.substr(0,i.length/2)),s=t.idTokenClaims.at_hash.replace(/=/g,"");return n!==s&&(console.error("exptected at_hash: "+n),console.error("actual at_hash: "+s)),n===s})}inferHashAlgorithm(t){let e=t.alg;if(!e.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+e);return"sha-"+e.substr(2)}}let UrlHelperService=(()=>{class t{getHashFragmentParams(t){let e=t||window.location.hash;if(e=decodeURIComponent(e),0!==e.indexOf("#"))return{};const i=e.indexOf("?");return e=e.substr(i>-1?i+1:1),this.parseQueryString(e)}parseQueryString(t){const e={};let i,n,s,o,r,a,c;if(null===t)return e;i=t.split("&");for(let u=0;u{location.href=t},t&&Object.assign(this,t)}}class WebHttpUrlEncodingCodec{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&module.exports,AMD="function"==typeof define&&__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[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],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t,e){return function(i){return new Sha256(e,!0).update(i)[t]()}};const \u02750=createOutputMethod;var createMethod=function(t){var e=createOutputMethod("hex",t);NODE_JS&&(e=nodeWrap(e,t)),e.create=function(){return new Sha256(t)},e.update=function(t){return e.create().update(t)};for(var i=0;i>6,r[c++]=128|63&o):o<55296||o>=57344?(r[c++]=224|o>>12,r[c++]=128|o>>6&63,r[c++]=128|63&o):(o=65536+((1023&o)<<10|1023&t.charCodeAt(++n)),r[c++]=240|o>>18,r[c++]=128|o>>12&63,r[c++]=128|o>>6&63,r[c++]=128|63&o);t=r}else{if("object"!==s)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR)}t.length>64&&(t=new Sha256(e,!0).update(t).array());var u=[],l=[];for(n=0;n<64;++n){var h=t[n]||0;u[n]=92^h,l[n]=54^h}Sha256.call(this,e,i),this.update(l),this.oKeyPad=u,this.inner=!0,this.sharedMemory=i}Sha256.prototype.update=function(t){if(!this.finalized){var e,i=typeof t;if("string"!==i){if("object"!==i)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR);e=!0}for(var n,s,o=0,r=t.length,a=this.blocks;o>2]|=t[o]<>2]|=n<>2]|=(192|n>>6)<>2]|=(128|63&n)<=57344?(a[s>>2]|=(224|n>>12)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<>2]|=(240|n>>18)<>2]|=(128|n>>12&63)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<=64?(this.block=a[16],this.start=s-64,this.hash(),this.hashed=!0):this.start=s}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 t=this.blocks,e=this.lastByteIndex;t[16]=this.block,t[e>>2]|=EXTRA[3&e],this.block=t[16],e>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var t,e,i,n,s,o,r=this.h0,a=this.h1,c=this.h2,u=this.h3,l=this.h4,h=this.h5,d=this.h6,p=this.h7,f=this.blocks;for(t=16;t<64;++t)f[t]=f[t-16]+(((e=f[t-15])>>>7|e<<25)^(e>>>18|e<<14)^e>>>3)+f[t-7]+(((e=f[t-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)<<0;for(o=a&c,t=0;t<64;t+=4)this.first?(this.is224?(i=300032,p=(e=f[0]-1413257819)-150054599<<0,u=e+24177077<<0):(i=704751109,p=(e=f[0]-210244248)-1521486534<<0,u=e+143694565<<0),this.first=!1):(p=u+(e=p+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&h^~l&d)+K[t]+f[t])<<0,u=e+(((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+((i=r&a)^r&c^o))<<0),d=c+(e=d+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&l^~p&h)+K[t+1]+f[t+1])<<0,c=e+(((u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10))+((n=u&r)^u&a^i))<<0,h=a+(e=h+((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&p^~d&l)+K[t+2]+f[t+2])<<0,a=e+(((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+((s=c&u)^c&r^n))<<0,l=r+(e=l+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&d^~h&p)+K[t+3]+f[t+3])<<0,r=e+(((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+((o=a&c)^a&u^s))<<0;this.h0=this.h0+r<<0,this.h1=this.h1+a<<0,this.h2=this.h2+c<<0,this.h3=this.h3+u<<0,this.h4=this.h4+l<<0,this.h5=this.h5+h<<0,this.h6=this.h6+d<<0,this.h7=this.h7+p<<0},Sha256.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,i=this.h2,n=this.h3,s=this.h4,o=this.h5,r=this.h6,a=this.h7,c=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[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[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[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[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]+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]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r];return this.is224||(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]),c},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,i=this.h2,n=this.h3,s=this.h4,o=this.h5,r=this.h6,a=this.h7,c=[t>>24&255,t>>16&255,t>>8&255,255&t,e>>24&255,e>>16&255,e>>8&255,255&e,i>>24&255,i>>16&255,i>>8&255,255&i,n>>24&255,n>>16&255,n>>8&255,255&n,s>>24&255,s>>16&255,s>>8&255,255&s,o>>24&255,o>>16&255,o>>8&255,255&o,r>>24&255,r>>16&255,r>>8&255,255&r];return this.is224||c.push(a>>24&255,a>>16&255,a>>8&255,255&a),c},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(this.is224?28:32),e=new DataView(t);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),e.setUint32(20,this.h5),e.setUint32(24,this.h6),this.is224||e.setUint32(28,this.h7),t},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(t),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0);class HashHandler{}let DefaultHashHandler=(()=>{class t{calcHash(t,e){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){const e=exports.array(t);return this.toHashString2(e)})}toHashString2(t){let e="";for(let i of t)e+=String.fromCharCode(i);return e}toHashString(t){const e=new Uint8Array(t);let i="";for(let n of e)i+=String.fromCharCode(n);return i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})(),OAuthService=(()=>{class t extends AuthConfig{constructor(t,e,i,n,s,o,r,a,c,u){var l;super(),this.ngZone=t,this.http=e,this.config=s,this.urlHelper=o,this.logger=r,this.crypto=a,this.dateTimeService=u,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_2__.xQ,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_2__.xQ,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=c,s||(s={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),n&&(this.tokenValidationHandler=n),s&&this.configure(s);try{i?this.setStorage(i):"undefined"!=typeof sessionStorage&&this.setStorage(sessionStorage)}catch(h){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",h)}if("undefined"!=typeof window&&void 0!==window.localStorage){const t=null===(l=null===window||void 0===window?void 0:window.navigator)||void 0===l?void 0:l.userAgent;((null==t?void 0:t.includes("MSIE "))||(null==t?void 0:t.includes("Trident")))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}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_3__.h)(t=>"token_received"===t.type)).subscribe(t=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(t={},e,i=!0){let n=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.b)(t=>{"token_received"===t.type?n=!0:"logout"===t.type&&(n=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>"token_expires"===t.type&&(null==e||"any"===e||t.info===e)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(1e3)).subscribe(e=>{n&&this.refreshInternal(t,i).catch(t=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(t,e){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(t,e):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(t=null){return this.loadDiscoveryDocument().then(e=>this.tryLogin(t))}loadDiscoveryDocumentAndLogin(t=null){return this.loadDiscoveryDocumentAndTryLogin(t=t||{}).then(e=>!(!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 e=[],i=this.validateUrlForHttps(t),n=this.validateUrlAgainstIssuer(t);return i||e.push("https for all urls required. Also for urls received by discovery."),n||e.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),e}validateUrlForHttps(t){if(!t)return!0;const e=t.toLowerCase();return!1===this.requireHttps||!(!e.match(/^http:\/\/localhost($|[:\/])/)&&!e.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps)||e.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(t,e){if(!t)throw new Error(`'${e}' should not be null`);if(!this.validateUrlForHttps(t))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(t){return!this.strictDiscoveryDocumentValidation||!t||t.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){"undefined"!=typeof window?((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_3__.h)(t=>"token_received"===t.type)).subscribe(t=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})):this.debug("timer not supported on this plattform")}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const t=this.getAccessTokenExpiration(),e=this.getAccessTokenStoredAt(),i=this.calcTimeout(e,t);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.g)(i)).subscribe(t=>{this.ngZone.run(()=>{this.eventsSubject.next(t)})})})}setupIdTokenTimer(){const t=this.getIdTokenExpiration(),e=this.getIdTokenStoredAt(),i=this.calcTimeout(e,t);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.g)(i)).subscribe(t=>{this.ngZone.run(()=>{this.eventsSubject.next(t)})})})}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,e){const i=this.dateTimeService.now();return Math.max(0,(e-t)*this.timeoutFactor-(i-t))}setStorage(t){this._storage=t,this.configChanged()}loadDiscoveryDocument(t=null){return new Promise((e,i)=>{t||((t=this.issuer||"").endsWith("/")||(t+="/"),t+=".well-known/openid-configuration"),this.validateUrlForHttps(t)?this.http.get(t).subscribe(t=>{if(!this.validateDiscoveryDocument(t))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void i("discovery_document_validation_error");this.loginUrl=t.authorization_endpoint,this.logoutUrl=t.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=t.grant_types_supported,this.issuer=t.issuer,this.tokenEndpoint=t.token_endpoint,this.userinfoEndpoint=t.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=t.jwks_uri,this.sessionCheckIFrameUrl=t.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(t),this.revocationEndpoint=t.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(i=>{const n=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:t,jwks:i});this.eventsSubject.next(n),e(n)}).catch(t=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",t)),i(t)})},t=>{this.logger.error("error loading discovery document",t),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",t)),i(t)}):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,e)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(e=>{this.jwks=e,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),t(e)},t=>{this.logger.error("error loading jwks",t),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",t)),e(t)}):t(null)})}validateDiscoveryDocument(t){let e;return this.skipIssuerCheck||t.issuer===this.issuer?(e=this.validateUrlFromDiscoveryDocument(t.authorization_endpoint),e.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(t.end_session_endpoint),e.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(t.token_endpoint),e.length>0&&this.logger.error("error validating token_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(t.revocation_endpoint),e.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(t.userinfo_endpoint),e.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(t.jwks_uri),e.length>0?(this.logger.error("error validating jwks_uri in discovery document",e),!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,e,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM){return this.fetchTokenUsingPasswordFlow(t,e,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,e)=>{const i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:i,observe:"response",responseType:"text"}).subscribe(i=>{if(this.debug("userinfo received",JSON.stringify(i)),i.headers.get("content-type").startsWith("application/json")){let n=JSON.parse(i.body);const s=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!s.sub||n.sub!==s.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");n=Object.assign({},s,n),this._storage.setItem("id_token_claims_obj",JSON.stringify(n)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),t({info:n})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),t(JSON.parse(i.body))},t=>{this.logger.error("error loading user info",t),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",t)),e(t)})})}fetchTokenUsingPasswordFlow(t,e,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM){return this.fetchTokenUsingGrant("password",{username:t,password:e},i)}fetchTokenUsingGrant(t,e,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",t).set("scope",this.scope);if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+t)}if(this.useHttpBasicAuth||(n=n.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(n=n.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const s of Object.getOwnPropertyNames(this.customQueryParams))n=n.set(s,this.customQueryParams[s]);for(const s of Object.keys(e))n=n.set(s,e[s]);return i=i.set("Content-Type","application/x-www-form-urlencoded"),new Promise((t,e)=>{this.http.post(this.tokenEndpoint,n,{headers:i}).subscribe(e=>{this.debug("tokenResponse",e),this.storeAccessTokenResponse(e.access_token,e.refresh_token,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,e.scope,this.extractRecognizedCustomParameters(e)),this.oidc&&e.id_token&&this.processIdToken(e.id_token,e.access_token).then(i=>{this.storeIdToken(i),t(e)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),t(e)},t=>{this.logger.error("Error performing ${grantType} flow",t),this.eventsSubject.next(new OAuthErrorEvent("token_error",t)),e(t)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((t,e)=>{let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),n=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);n=n.set("Authorization","Basic "+t)}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 s of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(s,this.customQueryParams[s]);this.http.post(this.tokenEndpoint,i,{headers:n}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.w)(t=>t.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_10__.D)(this.processIdToken(t.id_token,t.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.b)(t=>this.storeIdToken(t)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.U)(e=>t)):(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(t))).subscribe(e=>{this.debug("refresh tokenResponse",e),this.storeAccessTokenResponse(e.access_token,e.refresh_token,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,e.scope,this.extractRecognizedCustomParameters(e)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),t(e)},t=>{this.logger.error("Error refreshing token",t),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",t)),e(t)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=t=>{const e=this.processMessageEventMessage(t);this.tryLogin({customHashFragment:e,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(t=>this.debug("tryLogin during silent refresh failed",t))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(t={},e=!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(void 0===this.document)throw new Error("silent refresh is not supported on this platform");const n=this.document.getElementById(this.silentRefreshIFrameName);n&&this.document.body.removeChild(n),this.silentRefreshSubject=i.sub;const s=this.document.createElement("iframe");s.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,e,t).then(t=>{s.setAttribute("src",t),this.silentRefreshShowIFrame||(s.style.display="none"),this.document.body.appendChild(s)});const o=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>t instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.P)()),r=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>"token_received"===t.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.P)()),a=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_13__.S3)([o,r,a]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.U)(t=>{if(t instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===t.type||(t=new OAuthErrorEvent("silent_refresh_error",t)),this.eventsSubject.next(t),t;return"token_received"===t.type&&(t=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(t)),t})).toPromise()}initImplicitFlowInPopup(t){return this.initLoginFlowInPopup(t)}initLoginFlowInPopup(t){return t=t||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(e=>new Promise((i,n)=>{let s,o=null;t.windowRef?t.windowRef&&!t.windowRef.closed&&(o=t.windowRef,o.location.href=e):o=window.open(e,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(t));const r=t=>{this.tryLogin({customHashFragment:t,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{a(),i(!0)},t=>{a(),n(t)})};o?s=window.setInterval(()=>{o&&!o.closed||(a(),n(new OAuthErrorEvent("popup_closed",{})))},500):n(new OAuthErrorEvent("popup_blocked",{}));const a=()=>{window.clearInterval(s),window.removeEventListener("storage",u),window.removeEventListener("message",c),null!==o&&o.close(),o=null},c=t=>{const e=this.processMessageEventMessage(t);e&&null!==e?(window.removeEventListener("storage",u),r(e)):console.log("false event firing")},u=t=>{"auth_hash"===t.key&&(window.removeEventListener("message",c),r(t.newValue))};window.addEventListener("message",c),window.addEventListener("storage",u)}))}calculatePopupFeatures(t){const e=t.height||470,i=t.width||500,n=window.screenLeft+(window.outerWidth-i)/2;return`location=no,toolbar=no,width=${i},height=${e},top=${window.screenTop+(window.outerHeight-e)/2},left=${n}`}processMessageEventMessage(t){let e="#";if(this.silentRefreshMessagePrefix&&(e+=this.silentRefreshMessagePrefix),!t||!t.data||"string"!=typeof t.data)return;const i=t.data;return i.startsWith(e)?"#"+i.substr(e.length):void 0}canPerformSessionCheck(){return!!this.sessionChecksEnabled&&(this.sessionCheckIFrameUrl?this.getSessionState()?void 0!==this.document:(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 e=t.origin.toLowerCase(),i=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),i.startsWith(e)){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",e,"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_3__.h)(t=>"silently_refreshed"===t.type||"silent_refresh_timeout"===t.type||"silent_refresh_error"===t.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.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 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 t=this.document.getElementById(this.sessionCheckIFrameName);t||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const e=this.getSessionState();e||this.stopSessionCheckTimer(),t.contentWindow.postMessage(this.clientId+" "+e,this.issuer)}createLoginUrl(t="",e="",i="",n=!1,s={}){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){const o=this;let r;r=i||this.redirectUri;const a=yield this.createAndSaveNonce();if(t=t?a+this.config.nonceStateSeparator+encodeURIComponent(t):a,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.responseType=this.config.responseType?this.config.responseType:this.oidc&&this.requestAccessToken?"id_token token":this.oidc&&!this.requestAccessToken?"id_token":"token";const c=o.loginUrl.indexOf("?")>-1?"&":"?";let u=o.scope;this.oidc&&!u.match(/(^|\s)openid($|\s)/)&&(u="openid "+u);let l=o.loginUrl+c+"response_type="+encodeURIComponent(o.responseType)+"&client_id="+encodeURIComponent(o.clientId)+"&state="+encodeURIComponent(t)+"&redirect_uri="+encodeURIComponent(r)+"&scope="+encodeURIComponent(u);if(this.responseType.includes("code")&&!this.disablePKCE){const[t,e]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("PKCE_verifier",e):this._storage.setItem("PKCE_verifier",e),l+="&code_challenge="+t,l+="&code_challenge_method=S256"}e&&(l+="&login_hint="+encodeURIComponent(e)),o.resource&&(l+="&resource="+encodeURIComponent(o.resource)),o.oidc&&(l+="&nonce="+encodeURIComponent(a)),n&&(l+="&prompt=none");for(const t of Object.keys(s))l+="&"+encodeURIComponent(t)+"="+encodeURIComponent(s[t]);if(this.customQueryParams)for(const t of Object.getOwnPropertyNames(this.customQueryParams))l+="&"+t+"="+encodeURIComponent(this.customQueryParams[t]);return l})}initImplicitFlowInternal(t="",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 i={},n=null;"string"==typeof e?n=e:"object"==typeof e&&(i=e),this.createLoginUrl(t,n,null,!1,i).then(this.config.openUri).catch(t=>{console.error("Error in initImplicitFlow",t),this.inImplicitFlow=!1})}initImplicitFlow(t="",e=""){""!==this.loginUrl?this.initImplicitFlowInternal(t,e):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>"discovery_document_loaded"===t.type)).subscribe(i=>this.initImplicitFlowInternal(t,e))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(t){const e=this;if(t.onTokenReceived){const i={idClaims:e.getIdentityClaims(),idToken:e.getIdToken(),accessToken:e.getAccessToken(),state:e.state};t.onTokenReceived(i)}}storeAccessTokenResponse(t,e,i,n,s){if(this._storage.setItem("access_token",t),n&&!Array.isArray(n)?this._storage.setItem("granted_scopes",JSON.stringify(n.split(" "))):n&&Array.isArray(n)&&this._storage.setItem("granted_scopes",JSON.stringify(n)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),i){const t=1e3*i,e=this.dateTimeService.new().getTime()+t;this._storage.setItem("expires_at",""+e)}e&&this._storage.setItem("refresh_token",e),s&&s.forEach((t,e)=>{this._storage.setItem(e,t)})}tryLogin(t=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(t).then(t=>!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){const e=(t=t||{}).customHashFragment?t.customHashFragment.substring(1):window.location.search,i=this.getCodePartsFromUrl(e),n=i.code,s=i.state,o=i.session_state;if(!t.preventClearHashAfterLogin){const t=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,t)}let[r,a]=this.parseState(s);if(this.state=a,i.error){this.debug("error trying to login"),this.handleLoginError(t,i);const e=new OAuthErrorEvent("code_error",{},i);return this.eventsSubject.next(e),Promise.reject(e)}if(!t.disableNonceCheck){if(!r)return Promise.resolve();if(!t.disableOAuth2StateCheck&&!this.validateNonce(r)){const t=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(t),Promise.reject(t)}return this.storeSessionState(o),n?this.getTokenFromCode(n,t).then(t=>null):Promise.resolve()}}getCodePartsFromUrl(t){return t&&0!==t.length?("?"===t.charAt(0)&&(t=t.substr(1)),this.urlHelper.parseQueryString(t)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(t,e){let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",t).set("redirect_uri",e.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let t;t=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),t?i=i.set("code_verifier",t):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(i,e)}fetchAndProcessToken(t,e){e=e||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+t)}return this.useHttpBasicAuth||(t=t.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(t=t.set("client_secret",this.dummyClientSecret)),new Promise((n,s)=>{if(this.customQueryParams)for(let e of Object.getOwnPropertyNames(this.customQueryParams))t=t.set(e,this.customQueryParams[e]);this.http.post(this.tokenEndpoint,t,{headers:i}).subscribe(t=>{this.debug("refresh tokenResponse",t),this.storeAccessTokenResponse(t.access_token,t.refresh_token,t.expires_in||this.fallbackAccessTokenExpirationTimeInSec,t.scope,this.extractRecognizedCustomParameters(t)),this.oidc&&t.id_token?this.processIdToken(t.id_token,t.access_token,e.disableNonceCheck).then(e=>{this.storeIdToken(e),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),n(t)}).catch(t=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",t)),console.error("Error validating tokens"),console.error(t),s(t)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),n(t))},t=>{console.error("Error getting token",t),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",t)),s(t)})})}tryLoginImplicitFlow(t=null){let e;e=(t=t||{}).customHashFragment?this.urlHelper.getHashFragmentParams(t.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",e);const i=e.state;let[n,s]=this.parseState(i);if(this.state=s,e.error){this.debug("error trying to login"),this.handleLoginError(t,e);const i=new OAuthErrorEvent("token_error",{},e);return this.eventsSubject.next(i),Promise.reject(i)}const o=e.access_token,r=e.id_token,a=e.session_state,c=e.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!o)return Promise.resolve(!1);if(this.requestAccessToken&&!t.disableOAuth2StateCheck&&!i)return Promise.resolve(!1);if(this.oidc&&!r)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!a&&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(n)){const t=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(t),Promise.reject(t)}return this.requestAccessToken&&this.storeAccessTokenResponse(o,null,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,c),this.oidc?this.processIdToken(r,o,t.disableNonceCheck).then(e=>t.validationHandler?t.validationHandler({accessToken:o,idClaims:e.idTokenClaims,idToken:e.idToken,state:i}).then(t=>e):e).then(e=>(this.storeIdToken(e),this.storeSessionState(a),this.clearHashAfterLogin&&!t.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(t),this.inImplicitFlow=!1,!0)).catch(t=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",t)),this.logger.error("Error validating tokens"),this.logger.error(t),Promise.reject(t))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!t.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(t),Promise.resolve(!0))}parseState(t){let e=t,i="";if(t){const n=t.indexOf(this.config.nonceStateSeparator);n>-1&&(e=t.substr(0,n),i=t.substr(n+this.config.nonceStateSeparator.length))}return[e,i]}validateNonce(t){let e;return e=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),e===t||(console.error("Validating access_token failed, wrong state/nonce.",e,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,e){t.onLoginError&&t.onLoginError(e),this.clearHashAfterLogin&&!t.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(t=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:t}processIdToken(t,e,i=!1){const n=t.split("."),s=b64DecodeUnicode(this.padBase64(n[0])),o=JSON.parse(s),r=b64DecodeUnicode(this.padBase64(n[1])),a=JSON.parse(r);let c;if(c=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(a.aud)){if(a.aud.every(t=>t!==this.clientId)){const t="Wrong audience: "+a.aud.join(",");return this.logger.warn(t),Promise.reject(t)}}else if(a.aud!==this.clientId){const t="Wrong audience: "+a.aud;return this.logger.warn(t),Promise.reject(t)}if(!a.sub){const t="No sub claim in id_token";return this.logger.warn(t),Promise.reject(t)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==a.sub){const t=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${a.sub}`;return this.logger.warn(t),Promise.reject(t)}if(!a.iat){const t="No iat claim in id_token";return this.logger.warn(t),Promise.reject(t)}if(!this.skipIssuerCheck&&a.iss!==this.issuer){const t="Wrong issuer: "+a.iss;return this.logger.warn(t),Promise.reject(t)}if(!i&&a.nonce!==c){const t="Wrong nonce: "+a.nonce;return this.logger.warn(t),Promise.reject(t)}if(!this.hasOwnProperty("responseType")||"code"!==this.responseType&&"id_token"!==this.responseType||(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!a.at_hash){const t="An at_hash is needed!";return this.logger.warn(t),Promise.reject(t)}const u=this.dateTimeService.now(),l=1e3*a.iat,h=1e3*a.exp,d=this.getClockSkewInMsec();if(l-d>=u||h+d<=u){const t="Token has expired";return console.error(t),console.error({now:u,issuedAtMSec:l,expiresAtMSec:h}),Promise.reject(t)}const p={accessToken:e,idToken:t,jwks:this.jwks,idTokenClaims:a,idTokenHeader:o,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(p).then(e=>({idToken:t,idTokenClaims:a,idTokenClaimsJson:r,idTokenHeader:o,idTokenHeaderJson:s,idTokenExpiresAt:h})):this.checkAtHash(p).then(e=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!e){const t="Wrong at_hash";return this.logger.warn(t),Promise.reject(t)}return this.checkSignature(p).then(e=>{const i={idToken:t,idTokenClaims:a,idTokenClaimsJson:r,idTokenHeader:o,idTokenHeaderJson:s,idTokenExpiresAt:h};return this.disableAtHashCheck?i:this.checkAtHash(p).then(t=>{if(this.requestAccessToken&&!t){const t="Wrong at_hash";return this.logger.warn(t),Promise.reject(t)}return i})})})}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"),e=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={},e=""){let i=!1;"boolean"==typeof t&&(i=t,t={});const n=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(t=>this._storage.removeItem(t)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl)return;if(i)return;if(!n&&!this.postLogoutRedirectUri)return;let s;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)s=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(n)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec});n&&(i=i.set("id_token_hint",n));const o=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";o&&(i=i.set("post_logout_redirect_uri",o),e&&(i=i.set("state",e)));for(let e in t)i=i.set(e,t[e]);s=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+i.toString()}this.config.openUri(s)}createAndSaveNonce(){const t=this;return this.createNonce().then(function(e){return t.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("nonce",e):t._storage.setItem("nonce",e),e})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const t=this.document.getElementById(this.silentRefreshIFrameName);t&&t.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const e=this.document.getElementById(this.sessionCheckIFrameName);e&&e.remove()}createNonce(){return new Promise(t=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let i=45,n="";const s="undefined"==typeof self?null:self.crypto||self.msCrypto;if(s){let t=new Uint8Array(i);s.getRandomValues(t),t.map||(t.map=Array.prototype.map),t=t.map(t=>e.charCodeAt(t%e.length)),n=String.fromCharCode.apply(null,t)}else for(;0"discovery_document_loaded"===t.type)).subscribe(i=>this.initCodeFlowInternal(t,e))}initCodeFlowInternal(t="",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 i={},n=null;"string"==typeof e?n=e:"object"==typeof e&&(i=e),this.createLoginUrl(t,n,null,!1,i).then(this.config.openUri).catch(t=>{console.error("Error in initAuthorizationCodeFlow"),console.error(t)})}createChallangeVerifierPairForPKCE(){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const t=yield this.createNonce();return[base64UrlEncode(yield this.crypto.calcHash(t,"sha-256")),t]})}extractRecognizedCustomParameters(t){let e=new Map;return this.config.customTokenParameters?(this.config.customTokenParameters.forEach(i=>{t[i]&&e.set(i,JSON.stringify(t[i]))}),e):e}revokeTokenAndLogout(t={},e=!1){let i=this.revocationEndpoint,n=this.getAccessToken(),s=this.getRefreshToken();if(!n)return;let o=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}),r=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);r=r.set("Authorization","Basic "+t)}if(this.useHttpBasicAuth||(o=o.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(o=o.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const a of Object.getOwnPropertyNames(this.customQueryParams))o=o.set(a,this.customQueryParams[a]);return new Promise((a,c)=>{let u,l;if(n){let t=o.set("token",n).set("token_type_hint","access_token");u=this.http.post(i,t,{headers:r})}else u=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null);if(s){let t=o.set("token",s).set("token_type_hint","refresh_token");l=this.http.post(i,t,{headers:r})}else l=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null);e&&(u=u.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>0===t.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(t))),l=l.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>0===t.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(t)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_16__.aj)([u,l]).subscribe(e=>{this.logOut(t),a(e),this.logger.info("Token successfully revoked")},t=>{this.logger.error("Error revoking token",t),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",t)),c(t)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return t.\u0275fac=function(e){return new(e||t)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_0__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_8__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_17__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DateTimeProvider))},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(t){return(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(t)}}let DefaultOAuthInterceptor=(()=>{class t{constructor(t,e,i){this.oAuthService=t,this.errorHandler=e,this.moduleConfig=i}checkUrl(t){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(t):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(e=>t.toLowerCase().startsWith(e.toLowerCase()))}intercept(t,e){const i=t.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(i)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_18__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>!!t)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>"token_received"===t.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_19__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.U)(t=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.zg)(i=>{if(i){const e=t.headers.set("Authorization","Bearer "+i);t=t.clone({headers:e})}return e.handle(t).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>this.errorHandler.handleError(t)))})):e.handle(t).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>this.errorHandler.handleError(t))):e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthModuleConfig,8))},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();class NullValidationHandler{validateSignature(t){return Promise.resolve(null)}validateAtHash(t){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return"undefined"!=typeof sessionStorage?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class t{static forRoot(e=null,i=NullValidationHandler){return{ngModule:t,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:i},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:e},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_8__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:t}),t.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_17__.ez]]}),t})();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_0__.OlP("AUTH_CONFIG")},2051:function(t,e){var i,n;void 0===(n="function"==typeof(i=function(){"use strict";function e(t,e,i){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){r(n.response,e,i)},n.onerror=function(){console.error("could not download file")},n.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function n(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,o=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),r=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(t,o,r){var a=s.URL||s.webkitURL,c=document.createElement("a");c.download=o=o||t.name||"download",c.rel="noopener","string"==typeof t?(c.href=t,c.origin===location.origin?n(c):i(c.href)?e(t,o,r):n(c,c.target="_blank")):(c.href=a.createObjectURL(t),setTimeout(function(){a.revokeObjectURL(c.href)},4e4),setTimeout(function(){n(c)},0))}:"msSaveOrOpenBlob"in navigator?function(t,s,o){if(s=s||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,o),s);else if(i(t))e(t,s,o);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){n(r)})}}:function(t,i,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return e(t,i,n);var a="application/octet-stream"===t.type,c=/constructor/i.test(s.HTMLElement)||s.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||a&&c||o)&&"undefined"!=typeof FileReader){var l=new FileReader;l.onloadend=function(){var t=l.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},l.readAsDataURL(t)}else{var h=s.URL||s.webkitURL,d=h.createObjectURL(t);r?r.location=d:location.href=d,r=null,setTimeout(function(){h.revokeObjectURL(d)},4e4)}});s.saveAs=r.saveAs=r,t.exports=r})?i.apply(e,[]):i)||(t.exports=n)},776:function(t,e,i){!function(t){"use strict";t.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(t){return/^nm$/i.test(t)},meridiem:function(t,e,i){return t<12?i?"vm":"VM":i?"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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(9609))},2758:function(t,e,i){!function(t){"use strict";t.defineLocale("ar-dz",{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:"\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:"\u0623\u062d_\u0625\u062b_\u062b\u0644\u0627_\u0623\u0631_\u062e\u0645_\u062c\u0645_\u0633\u0628".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:4}})}(i(9609))},4980:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},9602:function(t,e,i){!function(t){"use strict";var e={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},i=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},n={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(t){return function(e,s,o,r){var a=i(e),c=n[t][i(e)];return 2===a&&(c=c[s?0:1]),c.replace(/%d/i,e)}},o=["\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"];t.defineLocale("ar-ly",{months:o,monthsShort:o,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(t){return"\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i(9609))},2500:function(t,e,i){!function(t){"use strict";t.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\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:6,doy:12}})}(i(9609))},6909:function(t,e,i){!function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},i={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};t.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(t){return"\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(t){return i[t]}).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(i(9609))},2735:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},7634:function(t,e,i){!function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},i={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},n=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%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"]},o=function(t){return function(e,i,o,r){var a=n(e),c=s[t][n(e)];return 2===a&&(c=c[i?0:1]),c.replace(/%d/i,e)}},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"];t.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(t){return"\u0645"===t},meridiem:function(t,e,i){return t<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:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(t){return t.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(t){return i[t]}).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i(9609))},7798:function(t,e,i){!function(t){"use strict";var e={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"};t.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:"birne\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(t){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(t)},meridiem:function(t,e,i){return t<4?"gec\u0259":t<12?"s\u0259h\u0259r":t<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(t){if(0===t)return t+"-\u0131nc\u0131";var i=t%10;return t+(e[i]||e[t%100-i]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i(9609))},9949:function(t,e,i){!function(t){"use strict";function e(t,e,i){return"m"===i?e?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===i?e?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":t+" "+(n=+t,s={ss:e?"\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:e?"\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:e?"\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"}[i].split("_"),n%10==1&&n%100!=11?s[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?s[1]:s[2]);var n,s}t.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(t){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(t)},meridiem:function(t,e,i){return t<4?"\u043d\u043e\u0447\u044b":t<12?"\u0440\u0430\u043d\u0456\u0446\u044b":t<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t%10!=2&&t%10!=3||t%100==12||t%100==13?t+"-\u044b":t+"-\u0456";case"D":return t+"-\u0433\u0430";default:return t}},week:{dow:1,doy:7}})}(i(9609))},4590:function(t,e,i){!function(t){"use strict";t.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\u0440_\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"[\u0412 \u0438\u0437\u043c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u0412 \u0438\u0437\u043c\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\u043d\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(t){var e=t%10,i=t%100;return 0===t?t+"-\u0435\u0432":0===i?t+"-\u0435\u043d":i>10&&i<20?t+"-\u0442\u0438":1===e?t+"-\u0432\u0438":2===e?t+"-\u0440\u0438":7===e||8===e?t+"-\u043c\u0438":t+"-\u0442\u0438"},week:{dow:1,doy:7}})}(i(9609))},5938:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},595:function(t,e,i){!function(t){"use strict";var e={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},i={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};t.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09c0_\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_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2_\u0986\u0997_\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_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u0983_\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(t){return t.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u09b0\u09be\u09a4"===e&&t>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===e&&t<5||"\u09ac\u09bf\u0995\u09be\u09b2"===e?t+12:t},meridiem:function(t,e,i){return t<4?"\u09b0\u09be\u09a4":t<10?"\u09b8\u0995\u09be\u09b2":t<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":t<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(i(9609))},4756:function(t,e,i){!function(t){"use strict";var e={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},i={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};t.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\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("_"),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\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("_"),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(t){return t.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},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(t,e){return 12===t&&(t=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===e&&t>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===e&&t<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===e?t+12:t},meridiem:function(t,e,i){return t<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":t<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":t<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":t<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(i(9609))},7277:function(t,e,i){!function(t){"use strict";function e(t,e,i){return t+" "+function(t,e){return 2===e?function(t){var e={m:"v",b:"v",d:"z"};return void 0===e[t.charAt(0)]?t:e[t.charAt(0)]+t.substring(1)}(t):t}({mm:"munutenn",MM:"miz",dd:"devezh"}[i],t)}function i(t){return t>9?i(t%10):t}t.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:e,h:"un eur",hh:"%d eur",d:"un devezh",dd:e,M:"ur miz",MM:e,y:"ur bloaz",yy:function(t){switch(i(t)){case 1:case 3:case 4:case 5:case 9:return t+" bloaz";default:return t+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(t){return t+(1===t?"a\xf1":"vet")},week:{dow:1,doy:4}})}(i(9609))},4166:function(t,e,i){!function(t){"use strict";function e(t,e,i){var n=t+" ";switch(i){case"ss":return n+(1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi");case"m":return e?"jedna minuta":"jedne minute";case"mm":return n+(1===t?"minuta":2===t||3===t||4===t?"minute":"minuta");case"h":return e?"jedan sat":"jednog sata";case"hh":return n+(1===t?"sat":2===t||3===t||4===t?"sata":"sati");case"dd":return n+(1===t?"dan":"dana");case"MM":return n+(1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci");case"yy":return n+(1===t?"godina":2===t||3===t||4===t?"godine":"godina")}}t.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:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},3943:function(t,e,i){!function(t){"use strict";t.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(t,e){var i=1===t?"r":2===t?"n":3===t?"r":4===t?"t":"\xe8";return"w"!==e&&"W"!==e||(i="a"),t+i},week:{dow:1,doy:4}})}(i(9609))},3474:function(t,e,i){!function(t){"use strict";var e="leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),i="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),n=[/^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 o(t){return t>1&&t<5&&1!=~~(t/10)}function r(t,e,i,n){var s=t+" ";switch(i){case"s":return e||n?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return e||n?s+(o(t)?"sekundy":"sekund"):s+"sekundami";case"m":return e?"minuta":n?"minutu":"minutou";case"mm":return e||n?s+(o(t)?"minuty":"minut"):s+"minutami";case"h":return e?"hodina":n?"hodinu":"hodinou";case"hh":return e||n?s+(o(t)?"hodiny":"hodin"):s+"hodinami";case"d":return e||n?"den":"dnem";case"dd":return e||n?s+(o(t)?"dny":"dn\xed"):s+"dny";case"M":return e||n?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return e||n?s+(o(t)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):s+"m\u011bs\xedci";case"y":return e||n?"rok":"rokem";case"yy":return e||n?s+(o(t)?"roky":"let"):s+"lety"}}t.defineLocale("cs",{months:e,monthsShort:i,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:n,longMonthsParse:n,shortMonthsParse:n,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}})}(i(9609))},2218:function(t,e,i){!function(t){"use strict";t.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(t){return t+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(t)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(t)?"\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}})}(i(9609))},1061:function(t,e,i){!function(t){"use strict";t.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(t){var e="";return t>20?e=40===t||50===t||60===t||80===t||100===t?"fed":"ain":t>0&&(e=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][t]),t+e},week:{dow:1,doy:4}})}(i(9609))},2743:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},8580:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?s[i][0]:s[i][1]}t.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:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},3264:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?s[i][0]:s[i][1]}t.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:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},1899:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?s[i][0]:s[i][1]}t.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:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},8784:function(t,e,i){!function(t){"use strict";var e=["\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"],i=["\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"];t.defineLocale("dv",{months:e,monthsShort:e,weekdays:i,weekdaysShort:i,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(t){return"\u0789\u078a"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(i(9609))},4654:function(t,e,i){!function(t){"use strict";t.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(t,e){return t?"string"==typeof e&&/D/.test(e.substring(0,e.indexOf("MMMM")))?this._monthsGenitiveEl[t.month()]:this._monthsNominativeEl[t.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(t,e,i){return t>11?i?"\u03bc\u03bc":"\u039c\u039c":i?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(t){return"\u03bc"===(t+"").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(){switch(this.day()){case 6:return"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT";default:return"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"}},sameElse:"L"},calendar:function(t,e){var i,n=this._calendarEl[t],s=e&&e.hours();return((i=n)instanceof Function||"[object Function]"===Object.prototype.toString.call(i))&&(n=n.apply(e)),n.replace("{}",s%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}})}(i(9609))},4047:function(t,e,i){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},6277:function(t,e,i){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},6896:function(t,e,i){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})}(i(9609))},1609:function(t,e,i){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},4557:function(t,e,i){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},5836:function(t,e,i){!function(t){"use strict";t.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",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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})}(i(9609))},3586:function(t,e,i){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},2777:function(t,e,i){!function(t){"use strict";t.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_a\u016dg_sep_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:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(t){return"p"===t.charAt(0).toLowerCase()},meridiem:function(t,e,i){return t>11?i?"p.t.m.":"P.T.M.":i?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(i(9609))},3128:function(t,e,i){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^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;t.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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",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}})}(i(9609))},3256:function(t,e,i){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^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;t.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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",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}})}(i(9609))},3357:function(t,e,i){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^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;t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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",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}})}(i(9609))},2654:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[t+"sekundi",t+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[t+" minuti",t+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[t+" tunni",t+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[t+" kuu",t+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[t+" aasta",t+" aastat"]};return e?s[i][2]?s[i][2]:s[i][1]:n?s[i][0]:s[i][1]}t.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:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:"%d p\xe4eva",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},7287:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},5210:function(t,e,i){!function(t){"use strict";var e={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},i={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};t.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(t){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(t)},meridiem:function(t,e,i){return t<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:"\u062b\u0627\u0646\u06cc\u0647 d%",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(t){return t.replace(/[\u06f0-\u06f9]/g,function(t){return i[t]}).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(i(9609))},3431:function(t,e,i){!function(t){"use strict";var e="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),i=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",e[7],e[8],e[9]];function n(t,n,s,o){var r="";switch(s){case"s":return o?"muutaman sekunnin":"muutama sekunti";case"ss":return o?"sekunnin":"sekuntia";case"m":return o?"minuutin":"minuutti";case"mm":r=o?"minuutin":"minuuttia";break;case"h":return o?"tunnin":"tunti";case"hh":r=o?"tunnin":"tuntia";break;case"d":return o?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":r=o?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return o?"kuukauden":"kuukausi";case"MM":r=o?"kuukauden":"kuukautta";break;case"y":return o?"vuoden":"vuosi";case"yy":r=o?"vuoden":"vuotta"}return function(t,n){return t<10?n?i[t]:e[t]:t}(t,o)+" "+r}t.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:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},1781:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},1539:function(t,e,i){!function(t){"use strict";t.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(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}}})}(i(9609))},9847:function(t,e,i){!function(t){"use strict";t.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(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})}(i(9609))},1717:function(t,e,i){!function(t){"use strict";t.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("_"),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|)/,ordinal:function(t,e){switch(e){case"D":return t+(1===t?"er":"");default:case"M":case"Q":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})}(i(9609))},2250:function(t,e,i){!function(t){"use strict";var e="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),i="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");t.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(9609))},7665:function(t,e,i){!function(t){"use strict";t.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","M\xe9itheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deaireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean\xe1","Feab","M\xe1rt","Aibr","Beal","M\xe9it","I\xfail","L\xfana","Me\xe1n","Deai","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 Satharn"],weekdaysShort:["Dom","Lua","M\xe1i","C\xe9a","D\xe9a","hAo","Sat"],weekdaysMin:["Do","Lu","M\xe1","Ce","D\xe9","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:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 aig] 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\xed",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(t){return t+(1===t?"d":t%10==2?"na":"mh")},week:{dow:1,doy:4}})}(i(9609))},5214:function(t,e,i){!function(t){"use strict";t.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(t){return t+(1===t?"d":t%10==2?"na":"mh")},week:{dow:1,doy:4}})}(i(9609))},6154:function(t,e,i){!function(t){"use strict";t.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(t){return 0===t.indexOf("un")?"n"+t:"en "+t},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}})}(i(9609))},8518:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={s:["thodde secondanim","thodde second"],ss:[t+" secondanim",t+" second"],m:["eka mintan","ek minute"],mm:[t+" mintanim",t+" mintam"],h:["eka voran","ek vor"],hh:[t+" voranim",t+" voram"],d:["eka disan","ek dis"],dd:[t+" disanim",t+" dis"],M:["eka mhoinean","ek mhoino"],MM:[t+" mhoineanim",t+" mhoine"],y:["eka vorsan","ek voros"],yy:[t+" vorsanim",t+" vorsam"]};return e?s[i][0]:s[i][1]}t.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_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[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",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}(er)/,ordinal:function(t,e){switch(e){case"D":return t+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return t}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(t,e){return 12===t&&(t=0),"rati"===e?t<4?t:t+12:"sokalli"===e?t:"donparam"===e?t>12?t:t+12:"sanje"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"rati":t<12?"sokalli":t<16?"donparam":t<20?"sanje":"rati"}})}(i(9609))},9221:function(t,e,i){!function(t){"use strict";var e={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},i={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};t.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\u0ac7\u0ab9\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(t){return t.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0ab0\u0abe\u0aa4"===e?t<4?t:t+12:"\u0ab8\u0ab5\u0abe\u0ab0"===e?t:"\u0aac\u0aaa\u0acb\u0ab0"===e?t>=10?t:t+12:"\u0ab8\u0abe\u0a82\u0a9c"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0ab0\u0abe\u0aa4":t<10?"\u0ab8\u0ab5\u0abe\u0ab0":t<17?"\u0aac\u0aaa\u0acb\u0ab0":t<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(i(9609))},4743:function(t,e,i){!function(t){"use strict";t.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(t){return 2===t?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":t+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(t){return 2===t?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":t+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(t){return 2===t?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":t+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(t){return 2===t?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":t%10==0&&10!==t?t+" \u05e9\u05e0\u05d4":t+" \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(t){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(t)},meridiem:function(t,e,i){return t<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":t<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":t<12?i?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":t<18?i?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(i(9609))},7339:function(t,e,i){!function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},i={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};t.defineLocale("hi",{months:"\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("_"),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("_"),monthsParseExact:!0,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"},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(t){return t.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0930\u093e\u0924"===e?t<4?t:t+12:"\u0938\u0941\u092c\u0939"===e?t:"\u0926\u094b\u092a\u0939\u0930"===e?t>=10?t:t+12:"\u0936\u093e\u092e"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0930\u093e\u0924":t<10?"\u0938\u0941\u092c\u0939":t<17?"\u0926\u094b\u092a\u0939\u0930":t<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(i(9609))},3224:function(t,e,i){!function(t){"use strict";function e(t,e,i){var n=t+" ";switch(i){case"ss":return n+(1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi");case"m":return e?"jedna minuta":"jedne minute";case"mm":return n+(1===t?"minuta":2===t||3===t||4===t?"minute":"minuta");case"h":return e?"jedan sat":"jednog sata";case"hh":return n+(1===t?"sat":2===t||3===t||4===t?"sata":"sati");case"dd":return n+(1===t?"dan":"dana");case"MM":return n+(1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci");case"yy":return n+(1===t?"godina":2===t||3===t||4===t?"godine":"godina")}}t.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:"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:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},856:function(t,e,i){!function(t){"use strict";var e="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function i(t,e,i,n){var s=t;switch(i){case"s":return n||e?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return s+(n||e)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(n||e?" perc":" perce");case"mm":return s+(n||e?" perc":" perce");case"h":return"egy"+(n||e?" \xf3ra":" \xf3r\xe1ja");case"hh":return s+(n||e?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(n||e?" nap":" napja");case"dd":return s+(n||e?" nap":" napja");case"M":return"egy"+(n||e?" h\xf3nap":" h\xf3napja");case"MM":return s+(n||e?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(n||e?" \xe9v":" \xe9ve");case"yy":return s+(n||e?" \xe9v":" \xe9ve")}return""}function n(t){return(t?"":"[m\xfalt] ")+"["+e[this.day()]+"] LT[-kor]"}t.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("_"),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(t){return"u"===t.charAt(1).toLowerCase()},meridiem:function(t,e,i){return t<12?!0===i?"de":"DE":!0===i?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return n.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return n.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%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:4}})}(i(9609))},6855:function(t,e,i){!function(t){"use strict";t.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(t){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(t)},meridiem:function(t){return t<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":t<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":t<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(t,e){switch(e){case"DDD":case"w":case"W":case"DDDo":return 1===t?t+"-\u056b\u0576":t+"-\u0580\u0564";default:return t}},week:{dow:1,doy:7}})}(i(9609))},2190:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"pagi"===e?t:"siang"===e?t>=11?t:t+12:"sore"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"pagi":t<15?"siang":t<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:1,doy:7}})}(i(9609))},3887:function(t,e,i){!function(t){"use strict";function e(t){return t%100==11||t%10!=1}function i(t,i,n,s){var o=t+" ";switch(n){case"s":return i||s?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return e(t)?o+(i||s?"sek\xfandur":"sek\xfandum"):o+"sek\xfanda";case"m":return i?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return e(t)?o+(i||s?"m\xedn\xfatur":"m\xedn\xfatum"):i?o+"m\xedn\xfata":o+"m\xedn\xfatu";case"hh":return e(t)?o+(i||s?"klukkustundir":"klukkustundum"):o+"klukkustund";case"d":return i?"dagur":s?"dag":"degi";case"dd":return e(t)?i?o+"dagar":o+(s?"daga":"d\xf6gum"):i?o+"dagur":o+(s?"dag":"degi");case"M":return i?"m\xe1nu\xf0ur":s?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return e(t)?i?o+"m\xe1nu\xf0ir":o+(s?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):i?o+"m\xe1nu\xf0ur":o+(s?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return i||s?"\xe1r":"\xe1ri";case"yy":return e(t)?o+(i||s?"\xe1r":"\xe1rum"):o+(i||s?"\xe1r":"\xe1ri")}}t.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:i,ss:i,m:i,mm:i,h:"klukkustund",hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},5890:function(t,e,i){!function(t){"use strict";t.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(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},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}})}(i(9609))},9270:function(t,e,i){!function(t){"use strict";t.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:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},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}})}(i(9609))},6595:function(t,e,i){!function(t){"use strict";t.defineLocale("ja",{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:"\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(t){return"\u5348\u5f8c"===t},meridiem:function(t,e,i){return t<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(t){return t.week()=11?t:t+12:"sonten"===e||"ndalu"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"enjing":t<15?"siyang":t<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}})}(i(9609))},7477:function(t,e,i){!function(t){"use strict";t.defineLocale("ka",{months:{standalone:"\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("_"),format:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10e1_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10e1_\u10db\u10d0\u10e0\u10e2\u10e1_\u10d0\u10de\u10e0\u10d8\u10da\u10d8\u10e1_\u10db\u10d0\u10d8\u10e1\u10e1_\u10d8\u10d5\u10dc\u10d8\u10e1\u10e1_\u10d8\u10d5\u10da\u10d8\u10e1\u10e1_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10e1_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10e1_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10e1".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:"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:"[\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(t){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10ec\u10d4\u10da\u10d8)/.test(t)?t.replace(/\u10d8$/,"\u10e8\u10d8"):t+"\u10e8\u10d8"},past:function(t){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(t)?t.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(t)?t.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):void 0},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(t){return 0===t?t:1===t?t+"-\u10da\u10d8":t<20||t<=100&&t%20==0||t%100==0?"\u10db\u10d4-"+t:t+"-\u10d4"},week:{dow:1,doy:7}})}(i(9609))},3978:function(t,e,i){!function(t){"use strict";var e={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"};t.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(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i(9609))},9205:function(t,e,i){!function(t){"use strict";var e={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},i={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};t.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(t){return"\u179b\u17d2\u1784\u17b6\u1785"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},week:{dow:1,doy:4}})}(i(9609))},25:function(t,e,i){!function(t){"use strict";var e={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},i={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};t.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(t){return t.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},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(t,e){return 12===t&&(t=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===e?t<4?t:t+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===e?t:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===e?t>=10?t:t+12:"\u0cb8\u0c82\u0c9c\u0cc6"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":t<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":t<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":t<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(t){return t+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(i(9609))},427:function(t,e,i){!function(t){"use strict";t.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(t,e){switch(e){case"d":case"D":case"DDD":return t+"\uc77c";case"M":return t+"\uc6d4";case"w":case"W":return t+"\uc8fc";default:return t}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(t){return"\uc624\ud6c4"===t},meridiem:function(t,e,i){return t<12?"\uc624\uc804":"\uc624\ud6c4"}})}(i(9609))},9089:function(t,e,i){!function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},i={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},n=["\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"];t.defineLocale("ku",{months:n,monthsShort:n,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(t){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(t)},meridiem:function(t,e,i){return t<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(t){return t.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(t){return i[t]}).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i(9609))},9314:function(t,e,i){!function(t){"use strict";var e={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"};t.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(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i(9609))},3136:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={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 e?s[i][0]:s[i][1]}function i(t){if(t=parseInt(t,10),isNaN(t))return!1;if(t<0)return!0;if(t<10)return 4<=t&&t<=7;if(t<100){var e=t%10;return i(0===e?t/10:e)}if(t<1e4){for(;t>=10;)t/=10;return i(t)}return i(t/=1e3)}t.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(t){return i(t.substr(0,t.indexOf(" ")))?"a "+t:"an "+t},past:function(t){return i(t.substr(0,t.indexOf(" ")))?"viru "+t:"virun "+t},s:"e puer Sekonnen",ss:"%d Sekonnen",m:e,mm:"%d Minutten",h:e,hh:"%d Stonnen",d:e,dd:"%d Deeg",M:e,MM:"%d M\xe9int",y:e,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},9115:function(t,e,i){!function(t){"use strict";t.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(t){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===t},meridiem:function(t,e,i){return t<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(t){return"\u0e97\u0eb5\u0ec8"+t}})}(i(9609))},7087:function(t,e,i){!function(t){"use strict";var e={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 i(t,e,i,n){return e?s(i)[0]:n?s(i)[1]:s(i)[2]}function n(t){return t%10==0||t>10&&t<20}function s(t){return e[t].split("_")}function o(t,e,o,r){var a=t+" ";return 1===t?a+i(0,e,o[0],r):e?a+(n(t)?s(o)[1]:s(o)[0]):r?a+s(o)[1]:a+(n(t)?s(o)[1]:s(o)[2])}t.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(t,e,i,n){return e?"kelios sekund\u0117s":n?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:o,m:i,mm:o,h:i,hh:o,d:i,dd:o,M:i,MM:o,y:i,yy:o},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(t){return t+"-oji"},week:{dow:1,doy:4}})}(i(9609))},5683:function(t,e,i){!function(t){"use strict";var e={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 i(t,e,i){return i?e%10==1&&e%100!=11?t[2]:t[3]:e%10==1&&e%100!=11?t[0]:t[1]}function n(t,n,s){return t+" "+i(e[s],t,n)}function s(t,n,s){return i(e[s],t,n)}t.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(t,e){return e?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:n,m:s,mm:n,h:s,hh:n,d:s,dd:n,M:s,MM:n,y:s,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},9454:function(t,e,i){!function(t){"use strict";var e={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(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,i,n){var s=e.words[n];return 1===n.length?i?s[0]:s[1]:t+" "+e.correctGrammaticalCase(t,s)}};t.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:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mjesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},5507:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},8466:function(t,e,i){!function(t){"use strict";t.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:"\u043f\u043e\u0441\u043b\u0435 %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:"\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",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",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(t){var e=t%10,i=t%100;return 0===t?t+"-\u0435\u0432":0===i?t+"-\u0435\u043d":i>10&&i<20?t+"-\u0442\u0438":1===e?t+"-\u0432\u0438":2===e?t+"-\u0440\u0438":7===e||8===e?t+"-\u043c\u0438":t+"-\u0442\u0438"},week:{dow:1,doy:7}})}(i(9609))},2933:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===e&&t>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===e||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===e?t+12:t},meridiem:function(t,e,i){return t<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":t<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":t<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":t<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(i(9609))},9477:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){switch(i){case"s":return e?"\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 t+(e?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return t+(e?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return t+(e?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return t+(e?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return t+(e?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return t+(e?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return t}}t.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(t){return"\u04ae\u0425"===t},meridiem:function(t,e,i){return t<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: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} \u04e9\u0434\u04e9\u0440/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+" \u04e9\u0434\u04e9\u0440";default:return t}}})}(i(9609))},3597:function(t,e,i){!function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},i={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function n(t,e,i,n){var s="";if(e)switch(i){case"s":s="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":s="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":s="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":s="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":s="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":s="%d \u0924\u093e\u0938";break;case"d":s="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":s="%d \u0926\u093f\u0935\u0938";break;case"M":s="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":s="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":s="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":s="%d \u0935\u0930\u094d\u0937\u0947"}else switch(i){case"s":s="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":s="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":s="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":s="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":s="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":s="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":s="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":s="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":s="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":s="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":s="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":s="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return s.replace(/%d/i,t)}t.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:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},preparse:function(t){return t.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0930\u093e\u0924\u094d\u0930\u0940|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0930\u093e\u0924\u094d\u0930\u0940"===e?t<4?t:t+12:"\u0938\u0915\u093e\u0933\u0940"===e?t:"\u0926\u0941\u092a\u093e\u0930\u0940"===e?t>=10?t:t+12:"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0930\u093e\u0924\u094d\u0930\u0940":t<10?"\u0938\u0915\u093e\u0933\u0940":t<17?"\u0926\u0941\u092a\u093e\u0930\u0940":t<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(i(9609))},9965:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"pagi":t<15?"tengahari":t<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}})}(i(9609))},5529:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"pagi":t<15?"tengahari":t<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}})}(i(9609))},259:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},8061:function(t,e,i){!function(t){"use strict";var e={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},i={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};t.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(t){return t.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},week:{dow:1,doy:4}})}(i(9609))},2618:function(t,e,i){!function(t){"use strict";t.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_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",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}})}(i(9609))},8452:function(t,e,i){!function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},i={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};t.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(t){return t.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0930\u093e\u0924\u093f"===e?t<4?t:t+12:"\u092c\u093f\u0939\u093e\u0928"===e?t:"\u0926\u093f\u0909\u0901\u0938\u094b"===e?t>=10?t:t+12:"\u0938\u093e\u0901\u091d"===e?t+12:void 0},meridiem:function(t,e,i){return t<3?"\u0930\u093e\u0924\u093f":t<12?"\u092c\u093f\u0939\u093e\u0928":t<16?"\u0926\u093f\u0909\u0901\u0938\u094b":t<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}})}(i(9609))},413:function(t,e,i){!function(t){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^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;t.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(9609))},1885:function(t,e,i){!function(t){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^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;t.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(9609))},5107:function(t,e,i){!function(t){"use strict";t.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_m\xe5n_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_m\xe5_ty_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 [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",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}})}(i(9609))},702:function(t,e,i){!function(t){"use strict";var e={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},i={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};t.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(t){return t.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0a30\u0a3e\u0a24"===e?t<4?t:t+12:"\u0a38\u0a35\u0a47\u0a30"===e?t:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===e?t>=10?t:t+12:"\u0a38\u0a3c\u0a3e\u0a2e"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0a30\u0a3e\u0a24":t<10?"\u0a38\u0a35\u0a47\u0a30":t<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":t<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(i(9609))},1711:function(t,e,i){!function(t){"use strict";var e="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),i="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_");function n(t){return t%10<5&&t%10>1&&~~(t/10)%10!=1}function s(t,e,i){var s=t+" ";switch(i){case"ss":return s+(n(t)?"sekundy":"sekund");case"m":return e?"minuta":"minut\u0119";case"mm":return s+(n(t)?"minuty":"minut");case"h":return e?"godzina":"godzin\u0119";case"hh":return s+(n(t)?"godziny":"godzin");case"MM":return s+(n(t)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return s+(n(t)?"lata":"lat")}}t.defineLocale("pl",{months:function(t,n){return t?""===n?"("+i[t.month()]+"|"+e[t.month()]+")":/D MMMM/.test(n)?i[t.month()]:e[t.month()]:e},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),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:s,m:s,mm:s,h:s,hh:s,d:"1 dzie\u0144",dd:"%d dni",M:"miesi\u0105c",MM:s,y:"rok",yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},8238:function(t,e,i){!function(t){"use strict";t.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"})}(i(9609))},594:function(t,e,i){!function(t){"use strict";t.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",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}})}(i(9609))},4681:function(t,e,i){!function(t){"use strict";function e(t,e,i){var n=" ";return(t%100>=20||t>=100&&t%100==0)&&(n=" de "),t+n+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[i]}t.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._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:e,m:"un minut",mm:e,h:"o or\u0103",hh:e,d:"o zi",dd:e,M:"o lun\u0103",MM:e,y:"un an",yy:e},week:{dow:1,doy:7}})}(i(9609))},6201:function(t,e,i){!function(t){"use strict";function e(t,e,i){return"m"===i?e?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":t+" "+(n=+t,s={ss:e?"\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:e?"\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",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"}[i].split("_"),n%10==1&&n%100!=11?s[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?s[1]:s[2]);var n,s}var i=[/^\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];t.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:i,longMonthsParse:i,shortMonthsParse:i,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(t){if(t.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(t){if(t.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,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(t){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(t)},meridiem:function(t,e,i){return t<4?"\u043d\u043e\u0447\u0438":t<12?"\u0443\u0442\u0440\u0430":t<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":return t+"-\u0439";case"D":return t+"-\u0433\u043e";case"w":case"W":return t+"-\u044f";default:return t}},week:{dow:1,doy:4}})}(i(9609))},2912:function(t,e,i){!function(t){"use strict";var e=["\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"],i=["\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"];t.defineLocale("sd",{months:e,monthsShort:e,weekdays:i,weekdaysShort:i,weekdaysMin:i,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(t){return"\u0634\u0627\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(i(9609))},6002:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},7942:function(t,e,i){!function(t){"use strict";t.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(t){return t+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(t){return"\u0db4.\u0dc0."===t||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===t},meridiem:function(t,e,i){return t>11?i?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":i?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(i(9609))},5577:function(t,e,i){!function(t){"use strict";var e="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),i="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function n(t){return t>1&&t<5}function s(t,e,i,s){var o=t+" ";switch(i){case"s":return e||s?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return e||s?o+(n(t)?"sekundy":"sek\xfand"):o+"sekundami";case"m":return e?"min\xfata":s?"min\xfatu":"min\xfatou";case"mm":return e||s?o+(n(t)?"min\xfaty":"min\xfat"):o+"min\xfatami";case"h":return e?"hodina":s?"hodinu":"hodinou";case"hh":return e||s?o+(n(t)?"hodiny":"hod\xedn"):o+"hodinami";case"d":return e||s?"de\u0148":"d\u0148om";case"dd":return e||s?o+(n(t)?"dni":"dn\xed"):o+"d\u0148ami";case"M":return e||s?"mesiac":"mesiacom";case"MM":return e||s?o+(n(t)?"mesiace":"mesiacov"):o+"mesiacmi";case"y":return e||s?"rok":"rokom";case"yy":return e||s?o+(n(t)?"roky":"rokov"):o+"rokmi"}}t.defineLocale("sk",{months:e,monthsShort:i,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:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 4:case 5:return"[minul\xfd] dddd [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}})}(i(9609))},1775:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s=t+" ";switch(i){case"s":return e||n?"nekaj sekund":"nekaj sekundami";case"ss":return s+(1===t?e?"sekundo":"sekundi":2===t?e||n?"sekundi":"sekundah":t<5?e||n?"sekunde":"sekundah":"sekund");case"m":return e?"ena minuta":"eno minuto";case"mm":return s+(1===t?e?"minuta":"minuto":2===t?e||n?"minuti":"minutama":t<5?e||n?"minute":"minutami":e||n?"minut":"minutami");case"h":return e?"ena ura":"eno uro";case"hh":return s+(1===t?e?"ura":"uro":2===t?e||n?"uri":"urama":t<5?e||n?"ure":"urami":e||n?"ur":"urami");case"d":return e||n?"en dan":"enim dnem";case"dd":return s+(1===t?e||n?"dan":"dnem":2===t?e||n?"dni":"dnevoma":e||n?"dni":"dnevi");case"M":return e||n?"en mesec":"enim mesecem";case"MM":return s+(1===t?e||n?"mesec":"mesecem":2===t?e||n?"meseca":"mesecema":t<5?e||n?"mesece":"meseci":e||n?"mesecev":"meseci");case"y":return e||n?"eno leto":"enim letom";case"yy":return s+(1===t?e||n?"leto":"letom":2===t?e||n?"leti":"letoma":t<5?e||n?"leta":"leti":e||n?"let":"leti")}}t.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: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:7}})}(i(9609))},6823:function(t,e,i){!function(t){"use strict";t.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(t){return"M"===t.charAt(0)},meridiem:function(t,e,i){return t<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}})}(i(9609))},3848:function(t,e,i){!function(t){"use strict";var e={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\u0435 \u043c\u0438\u043d\u0443\u0442\u0435"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0435","\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"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],yy:["\u0433\u043e\u0434\u0438\u043d\u0430","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,i,n){var s=e.words[n];return 1===n.length?i?s[0]:s[1]:t+" "+e.correctGrammaticalCase(t,s)}};t.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:"DD.MM.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:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"\u0434\u0430\u043d",dd:e.translate,M:"\u043c\u0435\u0441\u0435\u0446",MM:e.translate,y:"\u0433\u043e\u0434\u0438\u043d\u0443",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},9038:function(t,e,i){!function(t){"use strict";var e={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,i,n){var s=e.words[n];return 1===n.length?i?s[0]:s[1]:t+" "+e.correctGrammaticalCase(t,s)}};t.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:"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] [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:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},6173:function(t,e,i){!function(t){"use strict";t.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(t,e,i){return t<11?"ekuseni":t<15?"emini":t<19?"entsambama":"ebusuku"},meridiemHour:function(t,e){return 12===t&&(t=0),"ekuseni"===e?t:"emini"===e?t>=11?t:t+12:"entsambama"===e||"ebusuku"===e?0===t?0:t+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(i(9609))},5788:function(t,e,i){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"e":1===e||2===e?"a":"e")},week:{dow:1,doy:4}})}(i(9609))},6882:function(t,e,i){!function(t){"use strict";t.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",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:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(i(9609))},2678:function(t,e,i){!function(t){"use strict";var e={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},i={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};t.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(t){return t+"\u0bb5\u0ba4\u0bc1"},preparse:function(t){return t.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},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(t,e,i){return t<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":t<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":t<10?" \u0b95\u0bbe\u0bb2\u0bc8":t<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":t<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":t<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(t,e){return 12===t&&(t=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===e?t<2?t:t+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===e||"\u0b95\u0bbe\u0bb2\u0bc8"===e||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===e&&t>=10?t:t+12},week:{dow:0,doy:6}})}(i(9609))},2797:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===e?t<4?t:t+12:"\u0c09\u0c26\u0c2f\u0c02"===e?t:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===e?t>=10?t:t+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":t<10?"\u0c09\u0c26\u0c2f\u0c02":t<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":t<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(i(9609))},2447:function(t,e,i){!function(t){"use strict";t.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:"minutu balun",ss:"minutu %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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},1335:function(t,e,i){!function(t){"use strict";var e={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"};t.defineLocale("tg",{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:"\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:"[\u041f\u0430\u0433\u043e\u04b3 \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(t,e){return 12===t&&(t=0),"\u0448\u0430\u0431"===e?t<4?t:t+12:"\u0441\u0443\u0431\u04b3"===e?t:"\u0440\u04ef\u0437"===e?t>=11?t:t+12:"\u0431\u0435\u0433\u043e\u04b3"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0448\u0430\u0431":t<11?"\u0441\u0443\u0431\u04b3":t<16?"\u0440\u04ef\u0437":t<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i(9609))},8667:function(t,e,i){!function(t){"use strict";t.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(t){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===t},meridiem:function(t,e,i){return t<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",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(i(9609))},9914:function(t,e,i){!function(t){"use strict";t.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(t){return t},week:{dow:1,doy:4}})}(i(9609))},1389:function(t,e,i){!function(t){"use strict";var e="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function i(t,i,n,s){var o=function(t){var i=Math.floor(t%1e3/100),n=Math.floor(t%100/10),s=t%10,o="";return i>0&&(o+=e[i]+"vatlh"),n>0&&(o+=(""!==o?" ":"")+e[n]+"maH"),s>0&&(o+=(""!==o?" ":"")+e[s]),""===o?"pagh":o}(t);switch(n){case"ss":return o+" lup";case"mm":return o+" tup";case"hh":return o+" rep";case"dd":return o+" jaj";case"MM":return o+" jar";case"yy":return o+" DIS"}}t.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(t){var e=t;return-1!==t.indexOf("jaj")?e.slice(0,-3)+"leS":-1!==t.indexOf("jar")?e.slice(0,-3)+"waQ":-1!==t.indexOf("DIS")?e.slice(0,-3)+"nem":e+" pIq"},past:function(t){var e=t;return-1!==t.indexOf("jaj")?e.slice(0,-3)+"Hu\u2019":-1!==t.indexOf("jar")?e.slice(0,-3)+"wen":-1!==t.indexOf("DIS")?e.slice(0,-3)+"ben":e+" ret"},s:"puS lup",ss:i,m:"wa\u2019 tup",mm:i,h:"wa\u2019 rep",hh:i,d:"wa\u2019 jaj",dd:i,M:"wa\u2019 jar",MM:i,y:"wa\u2019 DIS",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},3578:function(t,e,i){!function(t){"use strict";var e={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"};t.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_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".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 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",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(t,i){switch(i){case"d":case"D":case"Do":case"DD":return t;default:if(0===t)return t+"'\u0131nc\u0131";var n=t%10;return t+(e[n]||e[t%100-n]||e[t>=100?100:null])}},week:{dow:1,doy:7}})}(i(9609))},6969:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={s:["viensas secunds","'iensas secunds"],ss:[t+" secunds",t+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[t+" m\xeduts",t+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[t+" \xfeoras",t+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[t+" ziuas",t+" ziuas"],M:["'n mes","'iens mes"],MM:[t+" mesen",t+" mesen"],y:["'n ar","'iens ar"],yy:[t+" ars",t+" ars"]};return n||e?s[i][0]:s[i][1]}t.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(t){return"d'o"===t.toLowerCase()},meridiem:function(t,e,i){return t>11?i?"d'o":"D'O":i?"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}})}(i(9609))},690:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},6509:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},55:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===e||"\u0633\u06d5\u06be\u06d5\u0631"===e||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===e?t:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===e||"\u0643\u06d5\u0686"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":n<900?"\u0633\u06d5\u06be\u06d5\u0631":n<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":n<1230?"\u0686\u06c8\u0634":n<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(t,e){switch(e){case"d":case"D":case"DDD":return t+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return t+"-\u06be\u06d5\u067e\u062a\u06d5";default:return t}},preparse:function(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(i(9609))},2452:function(t,e,i){!function(t){"use strict";function e(t,e,i){return"m"===i?e?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===i?e?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":t+" "+(n=+t,s={ss:e?"\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:e?"\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:e?"\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"}[i].split("_"),n%10==1&&n%100!=11?s[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?s[1]:s[2]);var n,s}function i(t){return function(){return t+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}t.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(t,e){var i={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===t?i.nominative.slice(1,7).concat(i.nominative.slice(0,1)):t?i[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(e)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(e)?"genitive":"nominative"][t.day()]:i.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:i("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:i("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:i("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:i("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return i("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return i("[\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(t){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(t)},meridiem:function(t,e,i){return t<4?"\u043d\u043e\u0447\u0456":t<12?"\u0440\u0430\u043d\u043a\u0443":t<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t+"-\u0439";case"D":return t+"-\u0433\u043e";default:return t}},week:{dow:1,doy:7}})}(i(9609))},1151:function(t,e,i){!function(t){"use strict";var e=["\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"],i=["\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"];t.defineLocale("ur",{months:e,monthsShort:e,weekdays:i,weekdaysShort:i,weekdaysMin:i,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(t){return"\u0634\u0627\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(i(9609))},6547:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},1555:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},6541:function(t,e,i){!function(t){"use strict";t.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:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".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(t){return/^ch$/i.test(t)},meridiem:function(t,e,i){return t<12?i?"sa":"SA":i?"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 r\u1ed3i 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",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})}(i(9609))},2401:function(t,e,i){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},2341:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},619:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"\u51cc\u6668"===e||"\u65e9\u4e0a"===e||"\u4e0a\u5348"===e?t:"\u4e0b\u5348"===e||"\u665a\u4e0a"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1130?"\u4e0a\u5348":n<1230?"\u4e2d\u5348":n<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|\u5468)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"\u65e5";case"M":return t+"\u6708";case"w":case"W":return t+"\u5468";default:return t}},relativeTime:{future:"%s\u5185",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",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(i(9609))},7058:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"\u51cc\u6668"===e||"\u65e9\u4e0a"===e||"\u4e0a\u5348"===e?t:"\u4e2d\u5348"===e?t>=11?t:t+12:"\u4e0b\u5348"===e||"\u665a\u4e0a"===e?t+12:void 0},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1130?"\u4e0a\u5348":n<1230?"\u4e2d\u5348":n<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(t,e){switch(e){case"d":case"D":case"DDD":return t+"\u65e5";case"M":return t+"\u6708";case"w":case"W":return t+"\u9031";default:return t}},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"}})}(i(9609))},2782:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"\u51cc\u6668"===e||"\u65e9\u4e0a"===e||"\u4e0a\u5348"===e?t:"\u4e2d\u5348"===e?t>=11?t:t+12:"\u4e0b\u5348"===e||"\u665a\u4e0a"===e?t+12:void 0},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1130?"\u4e0a\u5348":n<1230?"\u4e2d\u5348":n<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(t,e){switch(e){case"d":case"D":case"DDD":return t+"\u65e5";case"M":return t+"\u6708";case"w":case"W":return t+"\u9031";default:return t}},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"}})}(i(9609))},9609:function(t,e,i){(t=i.nmd(t)).exports=function(){"use strict";var e,n;function s(){return e.apply(null,arguments)}function o(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function r(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function a(t){return void 0===t}function c(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function u(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function l(t,e){var i,n=[];for(i=0;i>>0,n=0;n0)for(i=0;i<_.length;i++)a(s=e[n=_[i]])||(t[n]=s);return t}var y=!1;function b(t){w(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,s.updateOffset(this),y=!1)}function A(t){return t instanceof b||null!=t&&null!=t._isAMomentObject}function v(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function k(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=v(e)),i}function T(t,e,i){var n,s=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),r=0;for(n=0;n=0?i?"+":"":"-")+Math.pow(10,Math.max(0,e-n.length)).toString().substr(1)+n}var j=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,N={},K={};function q(t,e,i,n){var s=n;"string"==typeof n&&(s=function(){return this[n]()}),t&&(K[t]=s),e&&(K[e[0]]=function(){return B(s.apply(this,arguments),e[1],e[2])}),i&&(K[i]=function(){return this.localeData().ordinal(s.apply(this,arguments),t)})}function U(t,e){return t.isValid()?(e=Z(e,t.localeData()),N[e]=N[e]||function(t){var e,i,n,s=t.match(j);for(e=0,i=s.length;e=0&&F.test(t);)t=t.replace(F,n),F.lastIndex=0,i-=1;return t}var G=/\d/,V=/\d\d/,$=/\d{3}/,W=/\d{4}/,J=/[+-]?\d{6}/,Q=/\d\d?/,X=/\d\d\d\d?/,tt=/\d\d\d\d\d\d?/,et=/\d{1,3}/,it=/\d{1,4}/,nt=/[+-]?\d{1,6}/,st=/\d+/,ot=/[+-]?\d+/,rt=/Z|[+-]\d\d:?\d\d/gi,at=/Z|[+-]\d\d(?::?\d\d)?/gi,ct=/[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,ut={};function lt(t,e,i){ut[t]=x(e)?e:function(t,n){return t&&i?i:e}}function ht(t,e){return h(ut,t)?ut[t](e._strict,e._locale):new RegExp(dt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,i,n,s){return e||i||n||s})))}function dt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var pt={};function ft(t,e){var i,n=e;for("string"==typeof t&&(t=[t]),c(e)&&(n=function(t,i){i[e]=k(t)}),i=0;i68?1900:2e3)};var yt,bt=At("FullYear",!0);function At(t,e){return function(i){return null!=i?(kt(this,t,i),s.updateOffset(this,e),this):vt(this,t)}}function vt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function kt(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&&wt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),Tt(i,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](i))}function Tt(t,e){if(isNaN(t)||isNaN(e))return NaN;var i=(e%12+12)%12;return t+=(e-i)/12,1===i?wt(t)?29:28:31-i%7%2}yt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e=0?(a=new Date(t+400,e,i,n,s,o,r),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,i,n,s,o,r),a}function It(t){var e;if(t<100&&t>=0){var i=Array.prototype.slice.call(arguments);i[0]=t+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function Ot(t,e,i){var n=7+e-i;return-(7+It(t,0,n).getUTCDay()-e)%7+n-1}function Ht(t,e,i,n,s){var o,r,a=1+7*(e-1)+(7+i-n)%7+Ot(t,n,s);return a<=0?r=_t(o=t-1)+a:a>_t(t)?(o=t+1,r=a-_t(t)):(o=t,r=a),{year:o,dayOfYear:r}}function Yt(t,e,i){var n,s,o=Ot(t.year(),e,i),r=Math.floor((t.dayOfYear()-o-1)/7)+1;return r<1?n=r+Bt(s=t.year()-1,e,i):r>Bt(t.year(),e,i)?(n=r-Bt(t.year(),e,i),s=t.year()+1):(s=t.year(),n=r),{week:n,year:s}}function Bt(t,e,i){var n=Ot(t,e,i),s=Ot(t+1,e,i);return(_t(t)-n+s)/7}function jt(t,e){return t.slice(e,7).concat(t.slice(0,e))}q("w",["ww",2],"wo","week"),q("W",["WW",2],"Wo","isoWeek"),P("week","w"),P("isoWeek","W"),Y("week",5),Y("isoWeek",5),lt("w",Q),lt("ww",Q,V),lt("W",Q),lt("WW",Q,V),gt(["w","ww","W","WW"],function(t,e,i,n){e[n.substr(0,1)]=k(t)}),q("d",0,"do","day"),q("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),q("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),q("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),q("e",0,0,"weekday"),q("E",0,0,"isoWeekday"),P("day","d"),P("weekday","e"),P("isoWeekday","E"),Y("day",11),Y("weekday",11),Y("isoWeekday",11),lt("d",Q),lt("e",Q),lt("E",Q),lt("dd",function(t,e){return e.weekdaysMinRegex(t)}),lt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),lt("dddd",function(t,e){return e.weekdaysRegex(t)}),gt(["dd","ddd","dddd"],function(t,e,i,n){var s=i._locale.weekdaysParse(t,n,i._strict);null!=s?e.d=s:f(i).invalidWeekday=t}),gt(["d","e","E"],function(t,e,i,n){e[n]=k(t)});var Ft="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Nt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Kt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function qt(t,e,i){var n,s,o,r=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=p([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(s=yt.call(this._weekdaysParse,r))?s:null:"ddd"===e?-1!==(s=yt.call(this._shortWeekdaysParse,r))?s:null:-1!==(s=yt.call(this._minWeekdaysParse,r))?s:null:"dddd"===e?-1!==(s=yt.call(this._weekdaysParse,r))||-1!==(s=yt.call(this._shortWeekdaysParse,r))||-1!==(s=yt.call(this._minWeekdaysParse,r))?s:null:"ddd"===e?-1!==(s=yt.call(this._shortWeekdaysParse,r))||-1!==(s=yt.call(this._weekdaysParse,r))||-1!==(s=yt.call(this._minWeekdaysParse,r))?s:null:-1!==(s=yt.call(this._minWeekdaysParse,r))||-1!==(s=yt.call(this._weekdaysParse,r))||-1!==(s=yt.call(this._shortWeekdaysParse,r))?s:null}var Ut=ct,Zt=ct,Gt=ct;function Vt(){function t(t,e){return e.length-t.length}var e,i,n,s,o,r=[],a=[],c=[],u=[];for(e=0;e<7;e++)i=p([2e3,1]).day(e),n=this.weekdaysMin(i,""),s=this.weekdaysShort(i,""),o=this.weekdays(i,""),r.push(n),a.push(s),c.push(o),u.push(n),u.push(s),u.push(o);for(r.sort(t),a.sort(t),c.sort(t),u.sort(t),e=0;e<7;e++)a[e]=dt(a[e]),c[e]=dt(c[e]),u[e]=dt(u[e]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function $t(){return this.hours()%12||12}function Wt(t,e){q(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Jt(t,e){return e._meridiemParse}q("H",["HH",2],0,"hour"),q("h",["hh",2],0,$t),q("k",["kk",2],0,function(){return this.hours()||24}),q("hmm",0,0,function(){return""+$t.apply(this)+B(this.minutes(),2)}),q("hmmss",0,0,function(){return""+$t.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)}),q("Hmm",0,0,function(){return""+this.hours()+B(this.minutes(),2)}),q("Hmmss",0,0,function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)}),Wt("a",!0),Wt("A",!1),P("hour","h"),Y("hour",13),lt("a",Jt),lt("A",Jt),lt("H",Q),lt("h",Q),lt("k",Q),lt("HH",Q,V),lt("hh",Q,V),lt("kk",Q,V),lt("hmm",X),lt("hmmss",tt),lt("Hmm",X),lt("Hmmss",tt),ft(["H","HH"],3),ft(["k","kk"],function(t,e,i){var n=k(t);e[3]=24===n?0:n}),ft(["a","A"],function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t}),ft(["h","hh"],function(t,e,i){e[3]=k(t),f(i).bigHour=!0}),ft("hmm",function(t,e,i){var n=t.length-2;e[3]=k(t.substr(0,n)),e[4]=k(t.substr(n)),f(i).bigHour=!0}),ft("hmmss",function(t,e,i){var n=t.length-4,s=t.length-2;e[3]=k(t.substr(0,n)),e[4]=k(t.substr(n,2)),e[5]=k(t.substr(s)),f(i).bigHour=!0}),ft("Hmm",function(t,e,i){var n=t.length-2;e[3]=k(t.substr(0,n)),e[4]=k(t.substr(n))}),ft("Hmmss",function(t,e,i){var n=t.length-4,s=t.length-2;e[3]=k(t.substr(0,n)),e[4]=k(t.substr(n,2)),e[5]=k(t.substr(s))});var Qt,Xt=At("Hours",!0),te={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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:St,monthsShort:Mt,week:{dow:0,doy:6},weekdays:Ft,weekdaysMin:Kt,weekdaysShort:Nt,meridiemParse:/[ap]\.?m?\.?/i},ee={},ie={};function ne(t){return t?t.toLowerCase().replace("_","-"):t}function se(e){var n=null;if(!ee[e]&&t&&t.exports)try{n=Qt._abbr,i(6700)("./"+e),oe(n)}catch(s){}return ee[e]}function oe(t,e){var i;return t&&((i=a(e)?ae(t):re(t,e))?Qt=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Qt._abbr}function re(t,e){if(null!==e){var i,n=te;if(e.abbr=t,null!=ee[t])L("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=ee[t]._config;else if(null!=e.parentLocale)if(null!=ee[e.parentLocale])n=ee[e.parentLocale]._config;else{if(null==(i=se(e.parentLocale)))return ie[e.parentLocale]||(ie[e.parentLocale]=[]),ie[e.parentLocale].push({name:t,config:e}),null;n=i._config}return ee[t]=new D(R(n,e)),ie[t]&&ie[t].forEach(function(t){re(t.name,t.config)}),oe(t),ee[t]}return delete ee[t],null}function ae(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Qt;if(!o(t)){if(e=se(t))return e;t=[t]}return function(t){for(var e,i,n,s,o=0;o0;){if(n=se(s.slice(0,e).join("-")))return n;if(i&&i.length>=e&&T(s,i,!0)>=e-1)break;e--}o++}return Qt}(t)}function ce(t){var e,i=t._a;return i&&-2===f(t).overflow&&(e=i[1]<0||i[1]>11?1:i[2]<1||i[2]>Tt(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,f(t)._overflowDayOfYear&&(e<0||e>2)&&(e=2),f(t)._overflowWeeks&&-1===e&&(e=7),f(t)._overflowWeekday&&-1===e&&(e=8),f(t).overflow=e),t}function ue(t,e,i){return null!=t?t:null!=e?e:i}function le(t){var e,i,n,o,r,a=[];if(!t._d){for(n=function(t){var e=new Date(s.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[2]&&null==t._a[1]&&function(t){var e,i,n,s,o,r,a,c;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)o=1,r=4,i=ue(e.GG,t._a[0],Yt(Te(),1,4).year),n=ue(e.W,1),((s=ue(e.E,1))<1||s>7)&&(c=!0);else{o=t._locale._week.dow,r=t._locale._week.doy;var u=Yt(Te(),o,r);i=ue(e.gg,t._a[0],u.year),n=ue(e.w,u.week),null!=e.d?((s=e.d)<0||s>6)&&(c=!0):null!=e.e?(s=e.e+o,(e.e<0||e.e>6)&&(c=!0)):s=o}n<1||n>Bt(i,o,r)?f(t)._overflowWeeks=!0:null!=c?f(t)._overflowWeekday=!0:(a=Ht(i,n,s,o,r),t._a[0]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(r=ue(t._a[0],n[0]),(t._dayOfYear>_t(r)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),i=It(r,0,t._dayOfYear),t._a[1]=i.getUTCMonth(),t._a[2]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=n[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];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?It:Pt).apply(null,a),o=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&&void 0!==t._w.d&&t._w.d!==o&&(f(t).weekdayMismatch=!0)}}var he=/^\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)?)?$/,de=/^\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)?)?$/,pe=/Z|[+-]\d\d(?::?\d\d)?/,fe=[["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}/]],ge=[["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/]],me=/^\/?Date\((\-?\d+)/i;function _e(t){var e,i,n,s,o,r,a=t._i,c=he.exec(a)||de.exec(a);if(c){for(f(t).iso=!0,e=0,i=fe.length;e0&&f(t).unusedInput.push(r),a=a.slice(a.indexOf(i)+i.length),u+=i.length),K[o]?(i?f(t).empty=!1:f(t).unusedTokens.push(o),mt(o,i,t)):t._strict&&!i&&f(t).unusedTokens.push(o);f(t).charsLeftOver=c-u,a.length>0&&f(t).unusedInput.push(a),t._a[3]<=12&&!0===f(t).bigHour&&t._a[3]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[3]=function(t,e,i){var n;return null==i?e:null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?((n=t.isPM(i))&&e<12&&(e+=12),n||12!==e||(e=0),e):e}(t._locale,t._a[3],t._meridiem),le(t),ce(t)}else be(t);else _e(t)}function ve(t){var e=t._i,i=t._f;return t._locale=t._locale||ae(t._l),null===e||void 0===i&&""===e?m({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),A(e)?new b(ce(e)):(u(e)?t._d=e:o(i)?function(t){var e,i,n,s,o;if(0===t._f.length)return f(t).invalidFormat=!0,void(t._d=new Date(NaN));for(s=0;sthis?this:t:m()});function Me(t,e){var i,n;if(1===e.length&&o(e[0])&&(e=e[0]),!e.length)return Te();for(i=e[0],n=1;n=0?new Date(t+400,e,i)-ti:new Date(t,e,i).valueOf()}function ni(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-ti:Date.UTC(t,e,i)}function si(t,e){q(0,[t,t.length],0,e)}function oi(t,e,i,n,s){var o;return null==t?Yt(this,n,s).year:(e>(o=Bt(t,n,s))&&(e=o),ri.call(this,t,e,i,n,s))}function ri(t,e,i,n,s){var o=Ht(t,e,i,n,s),r=It(o.year,0,o.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}q(0,["gg",2],0,function(){return this.weekYear()%100}),q(0,["GG",2],0,function(){return this.isoWeekYear()%100}),si("gggg","weekYear"),si("ggggg","weekYear"),si("GGGG","isoWeekYear"),si("GGGGG","isoWeekYear"),P("weekYear","gg"),P("isoWeekYear","GG"),Y("weekYear",1),Y("isoWeekYear",1),lt("G",ot),lt("g",ot),lt("GG",Q,V),lt("gg",Q,V),lt("GGGG",it,W),lt("gggg",it,W),lt("GGGGG",nt,J),lt("ggggg",nt,J),gt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,i,n){e[n.substr(0,2)]=k(t)}),gt(["gg","GG"],function(t,e,i,n){e[n]=s.parseTwoDigitYear(t)}),q("Q",0,"Qo","quarter"),P("quarter","Q"),Y("quarter",7),lt("Q",G),ft("Q",function(t,e){e[1]=3*(k(t)-1)}),q("D",["DD",2],"Do","date"),P("date","D"),Y("date",9),lt("D",Q),lt("DD",Q,V),lt("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),ft(["D","DD"],2),ft("Do",function(t,e){e[2]=k(t.match(Q)[0])});var ai=At("Date",!0);q("DDD",["DDDD",3],"DDDo","dayOfYear"),P("dayOfYear","DDD"),Y("dayOfYear",4),lt("DDD",et),lt("DDDD",$),ft(["DDD","DDDD"],function(t,e,i){i._dayOfYear=k(t)}),q("m",["mm",2],0,"minute"),P("minute","m"),Y("minute",14),lt("m",Q),lt("mm",Q,V),ft(["m","mm"],4);var ci=At("Minutes",!1);q("s",["ss",2],0,"second"),P("second","s"),Y("second",15),lt("s",Q),lt("ss",Q,V),ft(["s","ss"],5);var ui,li=At("Seconds",!1);for(q("S",0,0,function(){return~~(this.millisecond()/100)}),q(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),q(0,["SSS",3],0,"millisecond"),q(0,["SSSS",4],0,function(){return 10*this.millisecond()}),q(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),q(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),q(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),q(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),q(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),P("millisecond","ms"),Y("millisecond",16),lt("S",et,G),lt("SS",et,V),lt("SSS",et,$),ui="SSSS";ui.length<=9;ui+="S")lt(ui,st);function hi(t,e){e[6]=k(1e3*("0."+t))}for(ui="S";ui.length<=9;ui+="S")ft(ui,hi);var di=At("Milliseconds",!1);q("z",0,0,"zoneAbbr"),q("zz",0,0,"zoneName");var pi=b.prototype;function fi(t){return t}pi.add=Ue,pi.calendar=function(t,e){var i=t||Te(),n=Ie(i,this).startOf("day"),o=s.calendarFormat(this,n)||"sameElse",r=e&&(x(e[o])?e[o].call(this,i):e[o]);return this.format(r||this.localeData().calendar(o,this,Te(i)))},pi.clone=function(){return new b(this)},pi.diff=function(t,e,i){var n,s,o;if(!this.isValid())return NaN;if(!(n=Ie(t,this)).isValid())return NaN;switch(s=6e4*(n.utcOffset()-this.utcOffset()),e=I(e)){case"year":o=Ge(this,n)/12;break;case"month":o=Ge(this,n);break;case"quarter":o=Ge(this,n)/3;break;case"second":o=(this-n)/1e3;break;case"minute":o=(this-n)/6e4;break;case"hour":o=(this-n)/36e5;break;case"day":o=(this-n-s)/864e5;break;case"week":o=(this-n-s)/6048e5;break;default:o=this-n}return i?o:v(o)},pi.endOf=function(t){var e;if(void 0===(t=I(t))||"millisecond"===t||!this.isValid())return this;var i=this._isUTC?ni:ii;switch(t){case"year":e=i(this.year()+1,0,1)-1;break;case"quarter":e=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=i(this.year(),this.month()+1,1)-1;break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=Xe-ei(e+(this._isUTC?0:this.utcOffset()*Qe),Xe)-1;break;case"minute":e=this._d.valueOf(),e+=Qe-ei(e,Qe)-1;break;case"second":e=this._d.valueOf(),e+=Je-ei(e,Je)-1}return this._d.setTime(e),s.updateOffset(this,!0),this},pi.format=function(t){t||(t=this.isUtc()?s.defaultFormatUtc:s.defaultFormat);var e=U(this,t);return this.localeData().postformat(e)},pi.from=function(t,e){return this.isValid()&&(A(t)&&t.isValid()||Te(t).isValid())?je({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},pi.fromNow=function(t){return this.from(Te(),t)},pi.to=function(t,e){return this.isValid()&&(A(t)&&t.isValid()||Te(t).isValid())?je({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},pi.toNow=function(t){return this.to(Te(),t)},pi.get=function(t){return x(this[t=I(t)])?this[t]():this},pi.invalidAt=function(){return f(this).overflow},pi.isAfter=function(t,e){var i=A(t)?t:Te(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=I(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()9999?U(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):x(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(i,"Z")):U(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},pi.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var i="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";return this.format(i+n+"-MM-DD[T]HH:mm:ss.SSS"+e+'[")]')},pi.toJSON=function(){return this.isValid()?this.toISOString():null},pi.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},pi.unix=function(){return Math.floor(this.valueOf()/1e3)},pi.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},pi.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},pi.year=bt,pi.isLeapYear=function(){return wt(this.year())},pi.weekYear=function(t){return oi.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},pi.isoWeekYear=function(t){return oi.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},pi.quarter=pi.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},pi.month=xt,pi.daysInMonth=function(){return Tt(this.year(),this.month())},pi.week=pi.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},pi.isoWeek=pi.isoWeeks=function(t){var e=Yt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},pi.weeksInYear=function(){var t=this.localeData()._week;return Bt(this.year(),t.dow,t.doy)},pi.isoWeeksInYear=function(){return Bt(this.year(),1,4)},pi.date=ai,pi.day=pi.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},pi.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},pi.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},pi.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},pi.hour=pi.hours=Xt,pi.minute=pi.minutes=ci,pi.second=pi.seconds=li,pi.millisecond=pi.milliseconds=di,pi.utcOffset=function(t,e,i){var n,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Pe(at,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(n=Oe(this)),this._offset=t,this._isUTC=!0,null!=n&&this.add(n,"m"),o!==t&&(!e||this._changeInProgress?qe(this,je(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,s.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Oe(this)},pi.utc=function(t){return this.utcOffset(0,t)},pi.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Oe(this),"m")),this},pi.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Pe(rt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},pi.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Te(t).utcOffset():0,(this.utcOffset()-t)%60==0)},pi.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},pi.isLocal=function(){return!!this.isValid()&&!this._isUTC},pi.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},pi.isUtc=He,pi.isUTC=He,pi.zoneAbbr=function(){return this._isUTC?"UTC":""},pi.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},pi.dates=S("dates accessor is deprecated. Use date instead.",ai),pi.months=S("months accessor is deprecated. Use month instead",xt),pi.years=S("years accessor is deprecated. Use year instead",bt),pi.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),pi.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var t={};if(w(t,this),(t=ve(t))._a){var e=t._isUTC?p(t._a):Te(t._a);this._isDSTShifted=this.isValid()&&T(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var gi=D.prototype;function mi(t,e,i,n){var s=ae(),o=p().set(n,e);return s[i](o,t)}function _i(t,e,i){if(c(t)&&(e=t,t=void 0),t=t||"",null!=e)return mi(t,e,i,"month");var n,s=[];for(n=0;n<12;n++)s[n]=mi(t,n,i,"month");return s}function wi(t,e,i,n){"boolean"==typeof t?(c(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,c(e)&&(i=e,e=void 0),e=e||"");var s,o=ae(),r=t?o._week.dow:0;if(null!=i)return mi(e,(i+r)%7,n,"day");var a=[];for(s=0;s<7;s++)a[s]=mi(e,(s+r)%7,n,"day");return a}gi.calendar=function(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return x(n)?n.call(e,i):n},gi.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},gi.invalidDate=function(){return this._invalidDate},gi.ordinal=function(t){return this._ordinal.replace("%d",t)},gi.preparse=fi,gi.postformat=fi,gi.relativeTime=function(t,e,i,n){var s=this._relativeTime[i];return x(s)?s(t,e,i,n):s.replace(/%d/i,t)},gi.pastFuture=function(t,e){var i=this._relativeTime[t>0?"future":"past"];return x(i)?i(e):i.replace(/%s/i,e)},gi.set=function(t){var e,i;for(i in t)x(e=t[i])?this[i]=e:this["_"+i]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},gi.months=function(t,e){return t?o(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Ct).test(e)?"format":"standalone"][t.month()]:o(this._months)?this._months:this._months.standalone},gi.monthsShort=function(t,e){return t?o(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Ct.test(e)?"format":"standalone"][t.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},gi.monthsParse=function(t,e,i){var n,s,o;if(this._monthsParseExact)return Et.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(s=p([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(o="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[n]=new RegExp(o.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}},gi.monthsRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||zt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=Dt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},gi.monthsShortRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||zt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=Rt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},gi.week=function(t){return Yt(t,this._week.dow,this._week.doy).week},gi.firstDayOfYear=function(){return this._week.doy},gi.firstDayOfWeek=function(){return this._week.dow},gi.weekdays=function(t,e){var i=o(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?jt(i,this._week.dow):t?i[t.day()]:i},gi.weekdaysMin=function(t){return!0===t?jt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},gi.weekdaysShort=function(t){return!0===t?jt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},gi.weekdaysParse=function(t,e,i){var n,s,o;if(this._weekdaysParseExact)return qt.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(s=p([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[n]=new RegExp(o.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!i&&this._weekdaysParse[n].test(t))return n}},gi.weekdaysRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Vt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=Ut),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},gi.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Vt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Zt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},gi.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Vt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Gt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},gi.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},gi.meridiem=function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},oe("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===k(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),s.lang=S("moment.lang is deprecated. Use moment.locale instead.",oe),s.langData=S("moment.langData is deprecated. Use moment.localeData instead.",ae);var yi=Math.abs;function bi(t,e,i,n){var s=je(e,i);return t._milliseconds+=n*s._milliseconds,t._days+=n*s._days,t._months+=n*s._months,t._bubble()}function Ai(t){return t<0?Math.floor(t):Math.ceil(t)}function vi(t){return 4800*t/146097}function ki(t){return 146097*t/4800}function Ti(t){return function(){return this.as(t)}}var Ci=Ti("ms"),Si=Ti("s"),Mi=Ti("m"),Ei=Ti("h"),Li=Ti("d"),xi=Ti("w"),Ri=Ti("M"),Di=Ti("Q"),zi=Ti("y");function Pi(t){return function(){return this.isValid()?this._data[t]:NaN}}var Ii=Pi("milliseconds"),Oi=Pi("seconds"),Hi=Pi("minutes"),Yi=Pi("hours"),Bi=Pi("days"),ji=Pi("months"),Fi=Pi("years"),Ni=Math.round,Ki={ss:44,s:45,m:45,h:22,d:26,M:11};function qi(t,e,i,n,s){return s.relativeTime(e||1,!!i,t,n)}var Ui=Math.abs;function Zi(t){return(t>0)-(t<0)||+t}function Gi(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i=Ui(this._milliseconds)/1e3,n=Ui(this._days),s=Ui(this._months);t=v(i/60),e=v(t/60),i%=60,t%=60;var o=v(s/12),r=s%=12,a=n,c=e,u=t,l=i?i.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var d=h<0?"-":"",p=Zi(this._months)!==Zi(h)?"-":"",f=Zi(this._days)!==Zi(h)?"-":"",g=Zi(this._milliseconds)!==Zi(h)?"-":"";return d+"P"+(o?p+o+"Y":"")+(r?p+r+"M":"")+(a?f+a+"D":"")+(c||u||l?"T":"")+(c?g+c+"H":"")+(u?g+u+"M":"")+(l?g+l+"S":"")}var Vi=Le.prototype;return Vi.isValid=function(){return this._isValid},Vi.abs=function(){var t=this._data;return this._milliseconds=yi(this._milliseconds),this._days=yi(this._days),this._months=yi(this._months),t.milliseconds=yi(t.milliseconds),t.seconds=yi(t.seconds),t.minutes=yi(t.minutes),t.hours=yi(t.hours),t.months=yi(t.months),t.years=yi(t.years),this},Vi.add=function(t,e){return bi(this,t,e,1)},Vi.subtract=function(t,e){return bi(this,t,e,-1)},Vi.as=function(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if("month"===(t=I(t))||"quarter"===t||"year"===t)switch(i=this._months+vi(e=this._days+n/864e5),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(ki(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}},Vi.asMilliseconds=Ci,Vi.asSeconds=Si,Vi.asMinutes=Mi,Vi.asHours=Ei,Vi.asDays=Li,Vi.asWeeks=xi,Vi.asMonths=Ri,Vi.asQuarters=Di,Vi.asYears=zi,Vi.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN},Vi._bubble=function(){var t,e,i,n,s,o=this._milliseconds,r=this._days,a=this._months,c=this._data;return o>=0&&r>=0&&a>=0||o<=0&&r<=0&&a<=0||(o+=864e5*Ai(ki(a)+r),r=0,a=0),c.milliseconds=o%1e3,t=v(o/1e3),c.seconds=t%60,e=v(t/60),c.minutes=e%60,i=v(e/60),c.hours=i%24,r+=v(i/24),a+=s=v(vi(r)),r-=Ai(ki(s)),n=v(a/12),a%=12,c.days=r,c.months=a,c.years=n,this},Vi.clone=function(){return je(this)},Vi.get=function(t){return t=I(t),this.isValid()?this[t+"s"]():NaN},Vi.milliseconds=Ii,Vi.seconds=Oi,Vi.minutes=Hi,Vi.hours=Yi,Vi.days=Bi,Vi.weeks=function(){return v(this.days()/7)},Vi.months=ji,Vi.years=Fi,Vi.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),i=function(t,e,i){var n=je(t).abs(),s=Ni(n.as("s")),o=Ni(n.as("m")),r=Ni(n.as("h")),a=Ni(n.as("d")),c=Ni(n.as("M")),u=Ni(n.as("y")),l=s<=Ki.ss&&["s",s]||s0,l[4]=i,qi.apply(null,l)}(this,!t,e);return t&&(i=e.pastFuture(+this,i)),e.postformat(i)},Vi.toISOString=Gi,Vi.toString=Gi,Vi.toJSON=Gi,Vi.locale=Ve,Vi.localeData=We,Vi.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Gi),Vi.lang=$e,q("X",0,0,"unix"),q("x",0,0,"valueOf"),lt("x",ot),lt("X",/[+-]?\d+(\.\d{1,3})?/),ft("X",function(t,e,i){i._d=new Date(1e3*parseFloat(t,10))}),ft("x",function(t,e,i){i._d=new Date(k(t))}),s.version="2.24.0",e=Te,s.fn=pi,s.min=function(){return Me("isBefore",[].slice.call(arguments,0))},s.max=function(){return Me("isAfter",[].slice.call(arguments,0))},s.now=function(){return Date.now?Date.now():+new Date},s.utc=p,s.unix=function(t){return Te(1e3*t)},s.months=function(t,e){return _i(t,e,"months")},s.isDate=u,s.locale=oe,s.invalid=m,s.duration=je,s.isMoment=A,s.weekdays=function(t,e,i){return wi(t,e,i,"weekdays")},s.parseZone=function(){return Te.apply(null,arguments).parseZone()},s.localeData=ae,s.isDuration=xe,s.monthsShort=function(t,e){return _i(t,e,"monthsShort")},s.weekdaysMin=function(t,e,i){return wi(t,e,i,"weekdaysMin")},s.defineLocale=re,s.updateLocale=function(t,e){if(null!=e){var i,n,s=te;null!=(n=se(t))&&(s=n._config),(i=new D(e=R(s,e))).parentLocale=ee[t],ee[t]=i,oe(t)}else null!=ee[t]&&(null!=ee[t].parentLocale?ee[t]=ee[t].parentLocale:null!=ee[t]&&delete ee[t]);return ee[t]},s.locales=function(){return M(ee)},s.weekdaysShort=function(t,e,i){return wi(t,e,i,"weekdaysShort")},s.normalizeUnits=I,s.relativeTimeRounding=function(t){return void 0===t?Ni:"function"==typeof t&&(Ni=t,!0)},s.relativeTimeThreshold=function(t,e){return void 0!==Ki[t]&&(void 0===e?Ki[t]:(Ki[t]=e,"s"===t&&(Ki.ss=e-1),!0))},s.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},s.prototype=pi,s.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"},s}()},963:t=>{"use strict";function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,i,n,s){n=n||"=";var o={};if("string"!=typeof t||0===t.length)return o;var r=/\+/g;t=t.split(i=i||"&");var a=1e3;s&&"number"==typeof s.maxKeys&&(a=s.maxKeys);var c=t.length;a>0&&c>a&&(c=a);for(var u=0;u=0?(l=f.substr(0,g),h=f.substr(g+1)):(l=f,h=""),d=decodeURIComponent(l),p=decodeURIComponent(h),e(o,d)?Array.isArray(o[d])?o[d].push(p):o[d]=[o[d],p]:o[d]=p}return o}},5341:t=>{"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,i,n,s){return i=i||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map(function(s){var o=encodeURIComponent(e(s))+n;return Array.isArray(t[s])?t[s].map(function(t){return o+encodeURIComponent(e(t))}).join(i):o+encodeURIComponent(e(t[s]))}).join(i):s?encodeURIComponent(e(s))+n+encodeURIComponent(e(t)):""}},6577:(t,e,i)=>{"use strict";i(963),i(5341)},9867:(t,e,i)=>{"use strict";i.d(e,{d:()=>s});var n=i(6673);class s extends n.L{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},3103:(t,e,i)=>{"use strict";i.d(e,{P:()=>r});var n=i(653),s=i(878),o=i(1225);let r=(()=>{class t{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return(0,s.of)(this.value);case"E":return(0,o._)(this.error);case"C":return(0,n.c)()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})()},8318:(t,e,i)=>{"use strict";i.d(e,{y:()=>u});var n=i(6673),s=i(5331),o=i(7498),r=i(6197),a=i(3392),c=i(1484);let u=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(t,e,i){const{operator:r}=this,a=function(t,e,i){if(t){if(t instanceof n.L)return t;if(t[s.b])return t[s.b]()}return t||e||i?new n.L(t,e,i):new n.L(o.c)}(t,e,i);if(a.add(r?r.call(a,this.source):this.source||c.v.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),c.v.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){c.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:i,isStopped:s}=t;if(e||s)return!1;t=i&&i instanceof n.L?i:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=l(e))((e,i)=>{let n;n=this.subscribe(e=>{try{t(e)}catch(s){i(s),n&&n.unsubscribe()}},i,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[r.L](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?a.y:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=l(t))((t,e)=>{let i;this.subscribe(t=>i=t,t=>e(t),()=>t(i))})}}return t.create=e=>new t(e),t})();function l(t){if(t||(t=c.v.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},7498:(t,e,i)=>{"use strict";i.d(e,{c:()=>o});var n=i(1484),s=i(4294);const o={closed:!0,next(t){},error(t){if(n.v.useDeprecatedSynchronousErrorHandling)throw t;(0,s.z)(t)},complete(){}}},9829:(t,e,i)=>{"use strict";i.d(e,{L:()=>s});var n=i(6673);class s extends n.L{notifyNext(t,e,i,n,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}},5959:(t,e,i)=>{"use strict";i.d(e,{Yc:()=>u,xQ:()=>l});var n=i(8318),s=i(6673),o=i(7570),r=i(3895),a=i(9291),c=i(5331);class u extends s.L{constructor(t){super(t),this.destination=t}}let l=(()=>{class t extends n.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[c.b](){return new u(this)}lift(t){const e=new h(this,this);return e.operator=t,e}next(t){if(this.closed)throw new r.N;if(!this.isStopped){const{observers:e}=this,i=e.length,n=e.slice();for(let s=0;snew h(t,e),t})();class h extends l{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):o.w.EMPTY}}},9291:(t,e,i)=>{"use strict";i.d(e,{W:()=>s});var n=i(7570);class s extends n.w{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}},6673:(t,e,i)=>{"use strict";i.d(e,{L:()=>u});var n=i(5024),s=i(7498),o=i(7570),r=i(5331),a=i(1484),c=i(4294);class u extends o.w{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.c;break;case 1:if(!t){this.destination=s.c;break}if("object"==typeof t){t instanceof u?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new l(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new l(this,t,e,i)}}[r.b](){return this}static create(t,e,i){const n=new u(t,e,i);return n.syncErrorThrowable=!1,n}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class l extends u{constructor(t,e,i,o){let r;super(),this._parentSubscriber=t;let a=this;(0,n.m)(e)?r=e:e&&(r=e.next,i=e.error,o=e.complete,e!==s.c&&(a=Object.create(e),(0,n.m)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=r,this._error=i,this._complete=o}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=a.v;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):(0,c.z)(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;(0,c.z)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),a.v.useDeprecatedSynchronousErrorHandling)throw i;(0,c.z)(i)}}__tryOrSetError(t,e,i){if(!a.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(n){return a.v.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=n,t.syncErrorThrown=!0,!0):((0,c.z)(n),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},7570:(t,e,i)=>{"use strict";i.d(e,{w:()=>a});var n=i(8470),s=i(2056),o=i(5024);const r=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let a=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:i,_unsubscribe:a,_subscriptions:u}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof t)i.remove(this);else if(null!==i)for(let t=0;tt.concat(e instanceof r?e.errors:e),[])}},1484:(t,e,i)=>{"use strict";i.d(e,{v:()=>s});let n=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else n&&console.log("RxJS: Back to a better error behavior. Thank you. <3");n=t},get useDeprecatedSynchronousErrorHandling(){return n}}},2875:(t,e,i)=>{"use strict";i.d(e,{c:()=>a,N:()=>c});var n=i(5959),s=i(8318),o=i(7570),r=i(1564);class a extends s.y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new o.w,t.add(this.source.subscribe(new u(this.getSubject(),this))),t.closed&&(this._connection=null,t=o.w.EMPTY)),t}refCount(){return(0,r.x)()(this)}}const c=(()=>{const t=a.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class u extends n.Yc{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}},1305:(t,e,i)=>{"use strict";i.d(e,{aj:()=>u});var n=i(6163),s=i(8470),o=i(9829),r=i(6268),a=i(9342);const c={};function u(...t){let e=null,i=null;return(0,n.K)(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&(0,s.k)(t[0])&&(t=t[0]),(0,a.n)(t,i).lift(new l(e))}class l{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new h(t,this.resultSelector))}}class h extends o.L{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(c),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i{"use strict";i.d(e,{E:()=>s,c:()=>o});var n=i(8318);const s=new n.y(t=>t.complete());function o(t){return t?function(t){return new n.y(e=>t.schedule(()=>e.complete()))}(t):s}},9764:(t,e,i)=>{"use strict";i.d(e,{D:()=>h});var n=i(8318),s=i(6015),o=i(7570),r=i(6197),a=i(2570),c=i(5686),u=i(5168),l=i(9653);function h(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[r.L]}(t))return function(t,e){return new n.y(i=>{const n=new o.w;return n.add(e.schedule(()=>{const s=t[r.L]();n.add(s.subscribe({next(t){n.add(e.schedule(()=>i.next(t)))},error(t){n.add(e.schedule(()=>i.error(t)))},complete(){n.add(e.schedule(()=>i.complete()))}}))})),n})}(t,e);if((0,u.t)(t))return function(t,e){return new n.y(i=>{const n=new o.w;return n.add(e.schedule(()=>t.then(t=>{n.add(e.schedule(()=>{i.next(t),n.add(e.schedule(()=>i.complete()))}))},t=>{n.add(e.schedule(()=>i.error(t)))}))),n})}(t,e);if((0,l.z)(t))return(0,a.r)(t,e);if(function(t){return t&&"function"==typeof t[c.hZ]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new n.y(i=>{const n=new o.w;let s;return n.add(()=>{s&&"function"==typeof s.return&&s.return()}),n.add(e.schedule(()=>{s=t[c.hZ](),n.add(e.schedule(function(){if(i.closed)return;let t,e;try{const i=s.next();t=i.value,e=i.done}catch(n){return void i.error(n)}e?i.complete():(i.next(t),this.schedule())}))})),n})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof n.y?t:new n.y((0,s.s)(t))}},9342:(t,e,i)=>{"use strict";i.d(e,{n:()=>r});var n=i(8318),s=i(625),o=i(2570);function r(t,e){return e?(0,o.r)(t,e):new n.y((0,s.V)(t))}},1906:(t,e,i)=>{"use strict";i.d(e,{T:()=>a});var n=i(8318),s=i(6163),o=i(7471),r=i(9342);function a(...t){let e=Number.POSITIVE_INFINITY,i=null,a=t[t.length-1];return(0,s.K)(a)?(i=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===i&&1===t.length&&t[0]instanceof n.y?t[0]:(0,o.J)(e)((0,r.n)(t,i))}},878:(t,e,i)=>{"use strict";i.d(e,{of:()=>r});var n=i(6163),s=i(9342),o=i(2570);function r(...t){let e=t[t.length-1];return(0,n.K)(e)?(t.pop(),(0,o.r)(t,e)):(0,s.n)(t)}},3875:(t,e,i)=>{"use strict";i.d(e,{S3:()=>a});var n=i(8470),s=i(9342),o=i(9829),r=i(6268);function a(...t){if(1===t.length){if(!(0,n.k)(t[0]))return t[0];t=t[0]}return(0,s.n)(t,void 0).lift(new c)}class c{call(t,e){return e.subscribe(new u(t))}}class u extends o.L{constructor(t){super(t),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(t){this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(let i=0;i{"use strict";i.d(e,{_:()=>s});var n=i(8318);function s(t,e){return new n.y(e?i=>e.schedule(o,0,{error:t,subscriber:i}):e=>e.error(t))}function o({error:t,subscriber:e}){e.error(t)}},7727:(t,e,i)=>{"use strict";i.d(e,{K:()=>r});var n=i(9829),s=i(9867),o=i(6268);function r(t){return function(e){const i=new a(t),n=e.lift(i);return i.caught=n}}class a{constructor(t){this.selector=t}call(t,e){return e.subscribe(new c(t,this.selector,this.caught))}}class c extends n.L{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let i;try{i=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const n=new s.d(this,void 0,void 0);this.add(n);const r=(0,o.D)(this,i,void 0,void 0,n);r!==n&&this.add(r)}}}},436:(t,e,i)=>{"use strict";i.d(e,{b:()=>s});var n=i(3982);function s(t,e){return(0,n.zg)(t,e,1)}},7701:(t,e,i)=>{"use strict";i.d(e,{b:()=>o});var n=i(6673),s=i(8569);function o(t,e=s.P){return i=>i.lift(new r(t,e))}class r{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))}}class a extends n.L{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function c(t){t.debouncedNext()}},7768:(t,e,i)=>{"use strict";i.d(e,{d:()=>s});var n=i(6673);function s(t=null){return e=>e.lift(new o(t))}class o{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new r(t,this.defaultValue))}}class r extends n.L{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},509:(t,e,i)=>{"use strict";i.d(e,{g:()=>a});var n=i(8569),s=i(8802),o=i(6673),r=i(3103);function a(t,e=n.P){const i=(0,s.J)(t)?+t-e.now():Math.abs(t);return t=>t.lift(new c(i,e))}class c{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new u(t,this.delay,this.scheduler))}}class u extends o.L{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,n=t.scheduler,s=t.destination;for(;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const e=Math.max(0,i[0].time-n.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(u.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new l(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(r.P.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(r.P.createComplete()),this.unsubscribe()}}class l{constructor(t,e){this.time=t,this.notification=e}}},3835:(t,e,i)=>{"use strict";i.d(e,{h:()=>s});var n=i(6673);function s(t,e){return function(i){return i.lift(new o(t,e))}}class o{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new r(t,this.predicate,this.thisArg))}}class r extends n.L{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}},3530:(t,e,i)=>{"use strict";i.d(e,{P:()=>u});var n=i(9665),s=i(3835),o=i(611),r=i(7768),a=i(790),c=i(3392);function u(t,e){const i=arguments.length>=2;return u=>u.pipe(t?(0,s.h)((e,i)=>t(e,i,u)):c.y,(0,o.q)(1),i?(0,r.d)(e):(0,a.T)(()=>new n.K))}},9996:(t,e,i)=>{"use strict";i.d(e,{U:()=>s});var n=i(6673);function s(t,e){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new o(t,e))}}class o{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new r(t,this.project,this.thisArg))}}class r extends n.L{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}},7471:(t,e,i)=>{"use strict";i.d(e,{J:()=>o});var n=i(3982),s=i(3392);function o(t=Number.POSITIVE_INFINITY){return(0,n.zg)(s.y,t)}},3982:(t,e,i)=>{"use strict";i.d(e,{zg:()=>c});var n=i(6268),s=i(9829),o=i(9867),r=i(9996),a=i(9764);function c(t,e,i=Number.POSITIVE_INFINITY){return"function"==typeof e?n=>n.pipe(c((i,n)=>(0,a.D)(t(i,n)).pipe((0,r.U)((t,s)=>e(i,t,n,s))),i)):("number"==typeof e&&(i=e),e=>e.lift(new u(t,i)))}class u{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new l(t,this.project,this.concurrent))}}class l extends s.L{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},1564:(t,e,i)=>{"use strict";i.d(e,{x:()=>s});var n=i(6673);function s(){return function(t){return t.lift(new o(t))}}class o{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const n=new r(t,i),s=e.subscribe(n);return n.closed||(n.connection=i.connect()),s}}class r extends n.L{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,n=t._connection;this.connection=null,!n||i&&n!==i||n.unsubscribe()}}},1055:(t,e,i)=>{"use strict";i.d(e,{B:()=>a});var n=i(2875),s=i(1564),o=i(5959);function r(){return new o.xQ}function a(){return t=>{return(0,s.x)()((e=r,function(t){let i;i="function"==typeof e?e:function(){return e};const s=Object.create(t,n.N);return s.source=t,s.subjectFactory=i,s})(t));var e}}},4689:(t,e,i)=>{"use strict";i.d(e,{w:()=>c});var n=i(9829),s=i(9867),o=i(6268),r=i(9996),a=i(9764);function c(t,e){return"function"==typeof e?i=>i.pipe(c((i,n)=>(0,a.D)(t(i,n)).pipe((0,r.U)((t,s)=>e(i,t,n,s))))):e=>e.lift(new u(t))}class u{constructor(t){this.project=t}call(t,e){return e.subscribe(new l(t,this.project))}}class l extends n.L{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(n){return void this.destination.error(n)}this._innerSub(e,t,i)}_innerSub(t,e,i){const n=this.innerSubscription;n&&n.unsubscribe();const r=new s.d(this,e,i),a=this.destination;a.add(r),this.innerSubscription=(0,o.D)(this,t,void 0,void 0,r),this.innerSubscription!==r&&a.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,i,n,s){this.destination.next(e)}}},611:(t,e,i)=>{"use strict";i.d(e,{q:()=>r});var n=i(6673),s=i(8402),o=i(653);function r(t){return e=>0===t?(0,o.c)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new s.W}call(t,e){return e.subscribe(new c(t,this.total))}}class c extends n.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}},6599:(t,e,i)=>{"use strict";i.d(e,{b:()=>r});var n=i(6673);function s(){}var o=i(5024);function r(t,e,i){return function(n){return n.lift(new a(t,e,i))}}class a{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new c(t,this.nextOrObserver,this.error,this.complete))}}class c extends n.L{constructor(t,e,i,n){super(t),this._tapNext=s,this._tapError=s,this._tapComplete=s,this._tapError=i||s,this._tapComplete=n||s,(0,o.m)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||s,this._tapError=e.error||s,this._tapComplete=e.complete||s)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},790:(t,e,i)=>{"use strict";i.d(e,{T:()=>o});var n=i(9665),s=i(6673);function o(t=c){return e=>e.lift(new r(t))}class r{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new a(t,this.errorFactory))}}class a extends s.L{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function c(){return new n.K}},9085:(t,e,i)=>{"use strict";i.d(e,{V:()=>h});var n=i(8569);const s=(()=>{function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t})();var o=i(8802),r=i(9829),a=i(6268);class c{constructor(t,e,i,n){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=i,this.scheduler=n}call(t,e){return e.subscribe(new u(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class u extends r.L{constructor(t,e,i,n,s){super(t),this.absoluteTimeout=e,this.waitFor=i,this.withObservable=n,this.scheduler=s,this.action=null,this.scheduleTimeout()}static dispatchTimeout(t){const{withObservable:e}=t;t._unsubscribeAndRecycle(),t.add((0,a.D)(t,e))}scheduleTimeout(){const{action:t}=this;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(u.dispatchTimeout,this.waitFor,this))}_next(t){this.absoluteTimeout||this.scheduleTimeout(),super._next(t)}_unsubscribe(){this.action=null,this.scheduler=null,this.withObservable=null}}var l=i(1225);function h(t,e=n.P){return function(t,e,i=n.P){return n=>{let s=(0,o.J)(t),r=s?+t-i.now():Math.abs(t);return n.lift(new c(r,s,e,i))}}(t,(0,l._)(new s),e)}},2570:(t,e,i)=>{"use strict";i.d(e,{r:()=>o});var n=i(8318),s=i(7570);function o(t,e){return new n.y(i=>{const n=new s.w;let o=0;return n.add(e.schedule(function(){o!==t.length?(i.next(t[o++]),i.closed||n.add(this.schedule())):i.complete()})),n})}},8277:(t,e,i)=>{"use strict";i.d(e,{o:()=>o});var n=i(7570);class s extends n.w{constructor(t,e){super()}schedule(t,e=0){return this}}class o extends s{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 i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let i,n=!1;try{this.work(t)}catch(s){n=!0,i=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},1098:(t,e,i)=>{"use strict";i.d(e,{v:()=>s});let n=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(t,e=0,i){return new this.SchedulerAction(this,t).schedule(i,e)}}return t.now=()=>Date.now(),t})();class s extends n{constructor(t,e=n.now){super(t,()=>s.delegate&&s.delegate!==this?s.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return s.delegate&&s.delegate!==this?s.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}},8569:(t,e,i)=>{"use strict";i.d(e,{P:()=>s});var n=i(8277);const s=new(i(1098).v)(n.o)},5686:(t,e,i)=>{"use strict";function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}i.d(e,{hZ:()=>s});const s=n()},6197:(t,e,i)=>{"use strict";i.d(e,{L:()=>n});const n=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},5331:(t,e,i)=>{"use strict";i.d(e,{b:()=>n});const n=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},8402:(t,e,i)=>{"use strict";i.d(e,{W:()=>n});const n=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},9665:(t,e,i)=>{"use strict";i.d(e,{K:()=>n});const n=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})()},3895:(t,e,i)=>{"use strict";i.d(e,{N:()=>n});const n=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},4294:(t,e,i)=>{"use strict";function n(t){setTimeout(()=>{throw t},0)}i.d(e,{z:()=>n})},3392:(t,e,i)=>{"use strict";function n(t){return t}i.d(e,{y:()=>n})},8470:(t,e,i)=>{"use strict";i.d(e,{k:()=>n});const n=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))()},9653:(t,e,i)=>{"use strict";i.d(e,{z:()=>n});const n=t=>t&&"number"==typeof t.length&&"function"!=typeof t},8802:(t,e,i)=>{"use strict";function n(t){return t instanceof Date&&!isNaN(+t)}i.d(e,{J:()=>n})},5024:(t,e,i)=>{"use strict";function n(t){return"function"==typeof t}i.d(e,{m:()=>n})},2056:(t,e,i)=>{"use strict";function n(t){return null!==t&&"object"==typeof t}i.d(e,{K:()=>n})},5168:(t,e,i)=>{"use strict";function n(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}i.d(e,{t:()=>n})},6163:(t,e,i)=>{"use strict";function n(t){return t&&"function"==typeof t.schedule}i.d(e,{K:()=>n})},6015:(t,e,i)=>{"use strict";i.d(e,{s:()=>l});var n=i(625),s=i(4294),o=i(5686),r=i(6197),a=i(9653),c=i(5168),u=i(2056);const l=t=>{if(t&&"function"==typeof t[r.L])return l=t,t=>{const e=l[r.L]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if((0,a.z)(t))return(0,n.V)(t);if((0,c.t)(t))return i=t,t=>(i.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,s.z),t);if(t&&"function"==typeof t[o.hZ])return e=t,t=>{const i=e[o.hZ]();for(;;){const e=i.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof i.return&&t.add(()=>{i.return&&i.return()}),t};{const e=(0,u.K)(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,i,l}},625:(t,e,i)=>{"use strict";i.d(e,{V:()=>n});const n=t=>e=>{for(let i=0,n=t.length;i{"use strict";i.d(e,{D:()=>r});var n=i(9867),s=i(6015),o=i(8318);function r(t,e,i,r,a=new n.d(t,i,r)){if(!a.closed)return e instanceof o.y?e.subscribe(a):(0,s.s)(e)(a)}},7632:(t,e,i)=>{"use strict";function n(t,e,i,n){return new(i||(i=Promise))(function(s,o){function r(t){try{c(n.next(t))}catch(e){o(e)}}function a(t){try{c(n.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(r,a)}c((n=n.apply(t,e||[])).next())})}i.d(e,{mG:()=>n})},6700:(t,e,i)=>{var n={"./af":776,"./af.js":776,"./ar":7634,"./ar-dz":2758,"./ar-dz.js":2758,"./ar-kw":4980,"./ar-kw.js":4980,"./ar-ly":9602,"./ar-ly.js":9602,"./ar-ma":2500,"./ar-ma.js":2500,"./ar-sa":6909,"./ar-sa.js":6909,"./ar-tn":2735,"./ar-tn.js":2735,"./ar.js":7634,"./az":7798,"./az.js":7798,"./be":9949,"./be.js":9949,"./bg":4590,"./bg.js":4590,"./bm":5938,"./bm.js":5938,"./bn":595,"./bn.js":595,"./bo":4756,"./bo.js":4756,"./br":7277,"./br.js":7277,"./bs":4166,"./bs.js":4166,"./ca":3943,"./ca.js":3943,"./cs":3474,"./cs.js":3474,"./cv":2218,"./cv.js":2218,"./cy":1061,"./cy.js":1061,"./da":2743,"./da.js":2743,"./de":1899,"./de-at":8580,"./de-at.js":8580,"./de-ch":3264,"./de-ch.js":3264,"./de.js":1899,"./dv":8784,"./dv.js":8784,"./el":4654,"./el.js":4654,"./en-SG":4047,"./en-SG.js":4047,"./en-au":6277,"./en-au.js":6277,"./en-ca":6896,"./en-ca.js":6896,"./en-gb":1609,"./en-gb.js":1609,"./en-ie":4557,"./en-ie.js":4557,"./en-il":5836,"./en-il.js":5836,"./en-nz":3586,"./en-nz.js":3586,"./eo":2777,"./eo.js":2777,"./es":3357,"./es-do":3128,"./es-do.js":3128,"./es-us":3256,"./es-us.js":3256,"./es.js":3357,"./et":2654,"./et.js":2654,"./eu":7287,"./eu.js":7287,"./fa":5210,"./fa.js":5210,"./fi":3431,"./fi.js":3431,"./fo":1781,"./fo.js":1781,"./fr":1717,"./fr-ca":1539,"./fr-ca.js":1539,"./fr-ch":9847,"./fr-ch.js":9847,"./fr.js":1717,"./fy":2250,"./fy.js":2250,"./ga":7665,"./ga.js":7665,"./gd":5214,"./gd.js":5214,"./gl":6154,"./gl.js":6154,"./gom-latn":8518,"./gom-latn.js":8518,"./gu":9221,"./gu.js":9221,"./he":4743,"./he.js":4743,"./hi":7339,"./hi.js":7339,"./hr":3224,"./hr.js":3224,"./hu":856,"./hu.js":856,"./hy-am":6855,"./hy-am.js":6855,"./id":2190,"./id.js":2190,"./is":3887,"./is.js":3887,"./it":9270,"./it-ch":5890,"./it-ch.js":5890,"./it.js":9270,"./ja":6595,"./ja.js":6595,"./jv":3081,"./jv.js":3081,"./ka":7477,"./ka.js":7477,"./kk":3978,"./kk.js":3978,"./km":9205,"./km.js":9205,"./kn":25,"./kn.js":25,"./ko":427,"./ko.js":427,"./ku":9089,"./ku.js":9089,"./ky":9314,"./ky.js":9314,"./lb":3136,"./lb.js":3136,"./lo":9115,"./lo.js":9115,"./lt":7087,"./lt.js":7087,"./lv":5683,"./lv.js":5683,"./me":9454,"./me.js":9454,"./mi":5507,"./mi.js":5507,"./mk":8466,"./mk.js":8466,"./ml":2933,"./ml.js":2933,"./mn":9477,"./mn.js":9477,"./mr":3597,"./mr.js":3597,"./ms":5529,"./ms-my":9965,"./ms-my.js":9965,"./ms.js":5529,"./mt":259,"./mt.js":259,"./my":8061,"./my.js":8061,"./nb":2618,"./nb.js":2618,"./ne":8452,"./ne.js":8452,"./nl":1885,"./nl-be":413,"./nl-be.js":413,"./nl.js":1885,"./nn":5107,"./nn.js":5107,"./pa-in":702,"./pa-in.js":702,"./pl":1711,"./pl.js":1711,"./pt":594,"./pt-br":8238,"./pt-br.js":8238,"./pt.js":594,"./ro":4681,"./ro.js":4681,"./ru":6201,"./ru.js":6201,"./sd":2912,"./sd.js":2912,"./se":6002,"./se.js":6002,"./si":7942,"./si.js":7942,"./sk":5577,"./sk.js":5577,"./sl":1775,"./sl.js":1775,"./sq":6823,"./sq.js":6823,"./sr":9038,"./sr-cyrl":3848,"./sr-cyrl.js":3848,"./sr.js":9038,"./ss":6173,"./ss.js":6173,"./sv":5788,"./sv.js":5788,"./sw":6882,"./sw.js":6882,"./ta":2678,"./ta.js":2678,"./te":2797,"./te.js":2797,"./tet":2447,"./tet.js":2447,"./tg":1335,"./tg.js":1335,"./th":8667,"./th.js":8667,"./tl-ph":9914,"./tl-ph.js":9914,"./tlh":1389,"./tlh.js":1389,"./tr":3578,"./tr.js":3578,"./tzl":6969,"./tzl.js":6969,"./tzm":6509,"./tzm-latn":690,"./tzm-latn.js":690,"./tzm.js":6509,"./ug-cn":55,"./ug-cn.js":55,"./uk":2452,"./uk.js":2452,"./ur":1151,"./ur.js":1151,"./uz":1555,"./uz-latn":6547,"./uz-latn.js":6547,"./uz.js":1555,"./vi":6541,"./vi.js":6541,"./x-pseudo":2401,"./x-pseudo.js":2401,"./yo":2341,"./yo.js":2341,"./zh-cn":619,"./zh-cn.js":619,"./zh-hk":7058,"./zh-hk.js":7058,"./zh-tw":2782,"./zh-tw.js":2782};function s(t){var e=o(t);return i(e)}function o(t){if(!i.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}s.keys=function(){return Object.keys(n)},s.resolve=o,t.exports=s,s.id=6700},306:t=>{"use strict";t.exports={i8:"5.2.0"}}},t=>{"use strict";t(t.s=6802)}]); \ No newline at end of file +(self.webpackChunkperun_web_apps=self.webpackChunkperun_web_apps||[]).push([[179],{3619:t=>{function e(t){return Promise.resolve().then(()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=()=>[],e.resolve=e,e.id=3619,t.exports=e},6802:(t,e,i)=>{"use strict";var n=i(1511),s=i(1572);class o extends n.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class r extends o{static makeCurrent(){(0,n.HT)(new r)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(c=c||document.querySelector("base"),c?c.getAttribute("href"):null);return null==e?null:function(t){a=a||document.createElement("a"),a.setAttribute("href",t);const e=a.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){c=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return(0,n.Mx)(document.cookie,t)}}let a,c=null;const u=new s.OlP("TRANSITION_ID"),l=[{provide:s.ip1,useFactory:function(t,e,i){return()=>{i.get(s.CZH).donePromise.then(()=>{const i=(0,n.q)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>i.remove(t))})}},deps:[u,n.K0,s.zs3],multi:!0}];class h{static init(){(0,s.VLi)(new h)}addToWindow(t){s.dqk.getAngularTestability=(e,i=!0)=>{const n=t.findTestabilityInTree(e,i);if(null==n)throw new Error("Could not find testability for element.");return n},s.dqk.getAllAngularTestabilities=()=>t.getAllTestabilities(),s.dqk.getAllAngularRootElements=()=>t.getAllRootElements(),s.dqk.frameworkStabilizers||(s.dqk.frameworkStabilizers=[]),s.dqk.frameworkStabilizers.push(t=>{const e=s.dqk.getAllAngularTestabilities();let i=e.length,n=!1;const o=function(e){n=n||e,i--,0==i&&t(n)};e.forEach(function(t){t.whenStable(o)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:i?(0,n.q)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let d=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const p=new s.OlP("EventManagerPlugins");let f=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,i){return this._findPluginFor(e).addEventListener(t,e,i)}addGlobalEventListener(t,e,i){return this._findPluginFor(e).addGlobalEventListener(t,e,i)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const i=this._plugins;for(let n=0;n{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),_=(()=>{class t extends m{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,i){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,i.push(e.appendChild(n))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(w),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,i)=>{this._addStylesToHost(t,i,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(w))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function w(t){(0,n.q)().remove(t)}const y={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/"},b=/%COMP%/g;function A(t,e,i){for(let n=0;n{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let k=(()=>{class t{constructor(t,e,i){this.eventManager=t,this.sharedStylesHost=e,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new T(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case s.ifc.Emulated:{let i=this.rendererByCompId.get(e.id);return i||(i=new C(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,i)),i.applyToHost(t),i}case 1:case s.ifc.ShadowDom:return new S(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=A(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(f),s.LFG(_),s.LFG(s.AFp))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class T{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(y[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,n){if(n){e=n+":"+e;const s=y[n];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const n=y[i];n?t.removeAttributeNS(n,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,n){n&(s.JOm.DashCase|s.JOm.Important)?t.style.setProperty(e,i,n&s.JOm.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&s.JOm.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,v(i)):this.eventManager.addEventListener(t,e,v(i))}}class C extends T{constructor(t,e,i,n){super(t),this.component=i;const s=A(n+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(b,n+"-"+i.id),this.hostAttr="_nghost-%COMP%".replace(b,n+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class S extends T{constructor(t,e,i,n){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=A(n.id,n.styles,[]);for(let o=0;o{class t extends g{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,i){return t.addEventListener(e,i,!1),()=>this.removeEventListener(t,e,i)}removeEventListener(t,e,i){return t.removeEventListener(e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const E=["alt","control","meta","shift"],L={"\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"},x={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"},R={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let D=(()=>{class t extends g{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,s){const o=t.parseEventName(i),r=t.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,n.q)().onAndCancel(e,o.domEventName,r))}static parseEventName(e){const i=e.toLowerCase().split("."),n=i.shift();if(0===i.length||"keydown"!==n&&"keyup"!==n)return null;const s=t._normalizeKey(i.pop());let o="";if(E.forEach(t=>{const e=i.indexOf(t);e>-1&&(i.splice(e,1),o+=t+".")}),o+=s,0!=i.length||0===s.length)return null;const r={};return r.domEventName=n,r.fullKey=o,r}static getEventFullKey(t){let e="",i=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&x.hasOwnProperty(e)&&(e=x[e]))}return L[e]||e}(t);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),E.forEach(n=>{n!=i&&(0,R[n])(t)&&(e+=n+".")}),e+=i,e}static eventCallback(e,i,n){return s=>{t.getEventFullKey(s)===e&&n.runGuarded(()=>i(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,s.Yz7)({factory:function(){return(0,s.LFG)(I)},token:t,providedIn:"root"}),t})();function P(t){return new I(t.get(n.K0))}let I=(()=>{class t extends z{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case s.q3G.NONE:return e;case s.q3G.HTML:return(0,s.qzn)(e,"HTML")?(0,s.z3N)(e):(0,s.EiD)(this._doc,String(e)).toString();case s.q3G.STYLE:return(0,s.qzn)(e,"Style")?(0,s.z3N)(e):e;case s.q3G.SCRIPT:if((0,s.qzn)(e,"Script"))return(0,s.z3N)(e);throw new Error("unsafe value used in a script context");case s.q3G.URL:return(0,s.yhl)(e),(0,s.qzn)(e,"URL")?(0,s.z3N)(e):(0,s.mCW)(String(e));case s.q3G.RESOURCE_URL:if((0,s.qzn)(e,"ResourceURL"))return(0,s.z3N)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return(0,s.JVY)(t)}bypassSecurityTrustStyle(t){return(0,s.L6k)(t)}bypassSecurityTrustScript(t){return(0,s.eBb)(t)}bypassSecurityTrustUrl(t){return(0,s.LAX)(t)}bypassSecurityTrustResourceUrl(t){return(0,s.pB0)(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=(0,s.Yz7)({factory:function(){return P((0,s.LFG)(s.gxx))},token:t,providedIn:"root"}),t})();const O=(0,s.eFA)(s._c5,"browser",[{provide:s.Lbi,useValue:n.bD},{provide:s.g9A,useValue:function(){r.makeCurrent(),h.init()},multi:!0},{provide:n.K0,useFactory:function(){return(0,s.RDi)(document),document},deps:[]}]),H=[[],{provide:s.zSh,useValue:"root"},{provide:s.qLn,useFactory:function(){return new s.qLn},deps:[]},{provide:p,useClass:M,multi:!0,deps:[n.K0,s.R0b,s.Lbi]},{provide:p,useClass:D,multi:!0,deps:[n.K0]},[],{provide:k,useClass:k,deps:[f,_,s.AFp]},{provide:s.FYo,useExisting:k},{provide:m,useExisting:_},{provide:_,useClass:_,deps:[n.K0]},{provide:s.dDg,useClass:s.dDg,deps:[s.R0b]},{provide:f,useClass:f,deps:[p,s.R0b]},{provide:n.JF,useClass:d,deps:[]},[]];let Y=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:s.AFp,useValue:e.appId},{provide:u,useExisting:s.AFp},l]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(t,12))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:H,imports:[n.ez,s.hGG]}),t})();function B(){return new j((0,s.LFG)(n.K0))}let j=(()=>{class t{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=(0,s.Yz7)({factory:B,token:t,providedIn:"root"}),t})();"undefined"!=typeof window&&window;var F=i(9063);class N{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const K=new s.OlP("basePath");class q{constructor(t={}){this.apiKeys=t.apiKeys,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.withCredentials=t.withCredentials,this.encoder=t.encoder}selectHeaderContentType(t){if(0===t.length)return;const e=t.find(t=>this.isJsonMime(t));return void 0===e?t[0]:e}selectHeaderAccept(t){if(0===t.length)return;const e=t.find(t=>this.isJsonMime(t));return void 0===e?t[0]:e}isJsonMime(t){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==t&&(e.test(t)||"application/json-patch+json"===t.toLowerCase())}}let U=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}convertAttributeToNonunique(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}convertAttributeToUnique(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("attribute",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteAttributeDefinitions(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let n=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("attributes[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllAttributeDefinitions(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAttribute(t,e,i,n,s,o,r,a,c,u,l,h="body",d=!1){let p=new F.LE({encoder:this.encoder});null!=t&&(p=p.set("attributeName",t)),null!=e&&(p=p.set("attributeId",e)),null!=i&&(p=p.set("facility",i)),null!=n&&(p=p.set("user",n)),null!=s&&(p=p.set("vo",s)),null!=o&&(p=p.set("resource",o)),null!=r&&(p=p.set("member",r)),null!=a&&(p=p.set("group",a)),null!=c&&(p=p.set("host",c)),null!=u&&(p=p.set("userExtSource",u)),null!=l&&(p=p.set("key",l));let f=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(f=f.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(f=f.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;f=f.set("Authorization","Bearer "+t)}const g=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==g&&(f=f.set("Accept",g)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{params:p,withCredentials:this.configuration.withCredentials,headers:f,observe:h,reportProgress:d})}getAttributeDefinitionById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeDefinitionByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeDefinitionsByNamespace(t,e="body",i=!1){if(null==t)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("namespace",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeModulesDependenciesForAttributeGraphText(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("format",t)),null!=e&&(s=s.set("attrName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAttributeModulesDependenciesGraphText(t,e="body",i=!1){if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("format",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeRights(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributesDefinitionWithRights(t,e,i,n,s,o,r,a,c="body",u=!1){let l=new F.LE({encoder:this.encoder});null!=t&&(l=l.set("member",t)),null!=e&&(l=l.set("user",e)),null!=i&&(l=l.set("vo",i)),null!=n&&(l=l.set("group",n)),null!=s&&(l=l.set("resource",s)),null!=o&&(l=l.set("facility",o)),null!=r&&(l=l.set("host",r)),null!=a&&(l=l.set("userExtSource",a));let h=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(h=h.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(h=h.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;h=h.set("Authorization","Bearer "+t)}const d=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==d&&(h=h.set("Accept",d)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{params:l,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:u})}getEntitylessAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("key",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getEntitylessAttributesByKey(t,e="body",i=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("key",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEntitylessAttributesByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("attrName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEntitylessAttributesWithKeys(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("attrName",t)),e&&e.forEach(t=>{s=s.append("keys[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getEntitylessKeys(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilityAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilityResourceUserMemberAttributes(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==n)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("user",i)),null!=n&&(r=r.set("member",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getFacilityUserAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupResourceAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getGroupResourceAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getGroupResourceAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getHostAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getHostAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getHostAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("host",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getLogins(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getLogins.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberAndUserAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==e)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("workWithUserAttributes",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberAndUserAttributesByNames(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("workWithUserAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberGroupAndUserAttributesByNames(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attrNames[]",t)}),null!=n&&(r=r.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberGroupAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("attributeId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberGroupAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("attributeName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberGroupAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberGroupAttributesByNames(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberResourceAndUserFacilityAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("workWithUserAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberResourceAndUserFacilityAttributesByNames(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attrNames[]",t)}),null!=n&&(r=r.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberResourceAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberResourceAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberResourceAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesFacilityService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesFacilityServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let s=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("services[]",t)}),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesGroupResourceService(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("group",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getRequiredAttributesHostService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==e)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("host",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("workWithUserAttributes",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesMemberGroup(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("workWithUserAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getRequiredAttributesMemberGroupResourceService(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==n)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let a=new F.LE({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("group",i)),null!=n&&(a=a.set("member",n)),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getRequiredAttributesMemberGroupService(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("member",i)),null!=n&&(r=r.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRequiredAttributesMemberResource(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("workWithUserAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getRequiredAttributesMemberResourceService(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("member",i)),null!=n&&(r=r.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRequiredAttributesResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesResourceService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesResourceServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let s=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("services[]",t)}),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesUserFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesVoService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("vo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourceAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceGroupAndGroupAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==i)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("workWithGroupAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getResourceGroupAndGroupAttributesByNames(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attrNames[]",t)}),null!=n&&(r=r.set("workWithGroupAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getResourceGroupAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceGroupMemberAttributesByNames(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==n)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("member",i)),n&&n.forEach(t=>{r=r.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getUserAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserExtSourceAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserExtSourceAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserExtSourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("userExtSource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourceAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserFacilityAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("attributeId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getUserFacilityAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("attributeName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getUserFacilityAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getVoAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getVoAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getVoAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeAttributesForFacilityResourceGroupUserMember(t,e,i,n,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==i)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==n)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let c=new F.LE({encoder:this.encoder});null!=t&&(c=c.set("facility",t)),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("group",i)),null!=n&&(c=c.set("user",n)),null!=s&&(c=c.set("member",s)),o&&o.forEach(t=>{c=c.append("attributes[]",t)});let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}removeAttributesForFacilityResourceUserMember(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==i)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==n)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let a=new F.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("user",i)),null!=n&&(a=a.set("member",n)),s&&s.forEach(t=>{a=a.append("attributes[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}removeEntitylessAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("key",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupResourceAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attribute",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeGroupResourceAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeGroupResourceAttributesWorkWithGroupAttributes(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)}),null!=n&&(r=r.set("workWithGroupAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeHostAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeHostAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeMemberAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeMemberAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeMemberAttributesWorkWithUserAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)}),null!=i&&(o=o.set("workWithUserAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeMemberGroupAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("attribute",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeMemberGroupAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeMemberGroupAttributesWorkWithUserAttributes(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)}),null!=n&&(r=r.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeMemberResourceAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attribute",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeMemberResourceAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeResourceAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeResourceAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUesAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserExtSourceAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserFacilityAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("attribute",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeUserFacilityAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),i&&i.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeVoAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeVoAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}setAttributeRights(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAttributeRights was null or undefined when calling setAttributeRights.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setEntitylessAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityResourceGroupUserMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityResourceUserMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setHostAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetHostAttribute was null or undefined when calling setHostAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setHostAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetHostAttributes was null or undefined when calling setHostAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupWithUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAndUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberWithUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceGroupWithGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserAttribute was null or undefined when calling setUserAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserAttributes was null or undefined when calling setUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserExtSourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserExtSourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserFacilityAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setVoAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoAttribute was null or undefined when calling setVoAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setVoAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoAttributes was null or undefined when calling setVoAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Z=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}auditMessagesManagerLog(t,e="body",i=!1){if(null==t)throw new Error("Required parameter msg was null or undefined when calling auditMessagesManagerLog.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("msg",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/log`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createAuditerConsumer(t,e="body",i=!1){if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling createAuditerConsumer.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("consumerName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/createAuditerConsumer`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllAuditerConsumers(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getAllAuditerConsumers`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAuditerMessagesCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getAuditerMessagesCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getLastMessageId(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getLastMessageId`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getMessages(t,e="body",i=!1){let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("count",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getMessages`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMessagesByCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter count was null or undefined when calling getMessagesByCount.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("count",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getMessagesByCount`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMessagesPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetMessagesPage was null or undefined when calling getMessagesPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/auditMessagesManager/getMessagesPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}pollConsumerMessages(t,e="body",i=!1){if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling pollConsumerMessages.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("consumerName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/pollConsumerMessages`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}setLastProcessedId(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter consumerName was null or undefined when calling setLastProcessedId.");if(null==e)throw new Error("Required parameter lastProcessedId was null or undefined when calling setLastProcessedId.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("consumerName",t)),null!=e&&(s=s.set("lastProcessedId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/setLastProcessedId`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),G=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}getAllPolicies(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllRolesManagementRules(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAuthzAdminGroups(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("role",t)),null!=e&&(o=o.set("complementaryObjectId",e)),null!=i&&(o=o.set("complementaryObjectName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getAuthzRichAdmins(t,e,i,n,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==n)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let c=new F.LE({encoder:this.encoder});null!=t&&(c=c.set("role",t)),null!=e&&(c=c.set("complementaryObjectId",e)),null!=i&&(c=c.set("complementaryObjectName",i)),n&&n.forEach(t=>{c=c.append("specificAttributes",t)}),null!=s&&(c=c.set("allUserAttributes",s)),null!=o&&(c=c.set("onlyDirectAdmins",o));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}getFacilitiesWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let s=new F.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupRoleNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupRoles(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("groupId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let s=new F.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getLoggedUser(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getMembersWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let s=new F.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getPerunPrincipal(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPrincipalRoleNames(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getResourcesWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let s=new F.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSecurityTeamsWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let s=new F.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserRoleNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserRoles(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("userId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let s=new F.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}isFacilityAdmin(t,e="body",i=!1){let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isGroupAdmin(t,e="body",i=!1){let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isPerunAdmin(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}isVoAdmin(t,e="body",i=!1){let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}keepAlive(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}loadAuthorizationComponents(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}setRoleWithGroupComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter setRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setRoleWithUserComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter setRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unsetRoleWithGroupComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter unsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unsetRoleWithUserComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter unsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),V=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}createAutorship(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateAuthorship was null or undefined when calling createAutorship.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createAuthorship`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createCategoryCat(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateCategory was null or undefined when calling createCategoryCat.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/cat`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createCategoryNR(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateCategory1 was null or undefined when calling createCategoryNR.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/n-r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createPublication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreatePublication was null or undefined when calling createPublication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublication`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createPublicationSystem(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreatePublicationSystem was null or undefined when calling createPublicationSystem.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublicationSystem`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createThanks(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateThanks was null or undefined when calling createThanks.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createThanks`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAuthorship(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter publicationId was null or undefined when calling deleteAuthorship.");if(null==e)throw new Error("Required parameter userId was null or undefined when calling deleteAuthorship.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("publicationId",t)),null!=e&&(s=s.set("userId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteAuthorship`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteCategory(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteCategory.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteCategory`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deletePublication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deletePublication.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deletePublicationSystem(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deletePublicationSystem.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublicationSystem`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteThanks(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteThanks.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteThanks`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findAllAuthors(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAllAuthors`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}findAuthorsByPublicationId(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findAuthorsByPublicationId.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAuthorsByPublicationId`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findExternalPublications(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling findExternalPublications.");if(null==e)throw new Error("Required parameter yearSince was null or undefined when calling findExternalPublications.");if(null==i)throw new Error("Required parameter yearTill was null or undefined when calling findExternalPublications.");if(null==n)throw new Error("Required parameter pubSysNamespace was null or undefined when calling findExternalPublications.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("yearSince",e)),null!=i&&(r=r.set("yearTill",i)),null!=n&&(r=r.set("pubSysNamespace",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findExternalPublications`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}findNewAuthors(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findNewAuthors.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findNewAuthors`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findPublicationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findPublicationById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findPublicationsByFilter(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter userId was null or undefined when calling findPublicationsByFilter.");let o=new F.LE({encoder:this.encoder});null!=e&&(o=o.set("yearSince",e)),null!=i&&(o=o.set("yearTill",i)),null!=t&&(o=o.set("userId",t));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByFilter`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}findPublicationsByGUIFilter(t,e,i,n,s,o,r,a,c,u="body",l=!1){let h=new F.LE({encoder:this.encoder});null!=t&&(h=h.set("title",t)),null!=e&&(h=h.set("isbn",e)),null!=i&&(h=h.set("doi",i)),null!=n&&(h=h.set("id",n)),null!=s&&(h=h.set("year",s)),null!=o&&(h=h.set("category",o)),null!=r&&(h=h.set("yearSince",r)),null!=a&&(h=h.set("yearTill",a)),null!=c&&(h=h.set("userId",c));let d=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(d=d.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(d=d.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;d=d.set("Authorization","Bearer "+t)}const p=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==p&&(d=d.set("Accept",p)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByGUIFilter`,{params:h,withCredentials:this.configuration.withCredentials,headers:d,observe:u,reportProgress:l})}findSimilarPublications(t,e,i,n="body",s=!1){let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("title",t)),null!=e&&(o=o.set("doi",e)),null!=i&&(o=o.set("isbn",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findSimilarPublications`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getCategories(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getCategories`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPublicationSystems(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getPublicationSystems`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getRank(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRank.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getRank`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichThanksByPublicationId(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichThanksByPublicationId.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getRichThanksByPublicationId`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}lockPublications(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputLockPublications was null or undefined when calling lockPublications.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/lockPublications`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateCategory(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateCategory was null or undefined when calling updateCategory.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updateCategory`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updatePublication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdatePublication was null or undefined when calling updatePublication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublication`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updatePublicationSystem(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdatePublicationSystem was null or undefined when calling updatePublicationSystem.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublicationSystem`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}getCurrentDatabaseVersion(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getCurrentDatabaseVersion`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getDatabaseDriverInformation(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getDatabaseDriverInformation`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getDatabaseInformation(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getDatabaseInformation`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getTimeOfQueryPerformance(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/databaseManager/getTimeOfQueryPerformance`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),W=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}addExtSourceWithGroupSource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling addExtSourceWithGroupSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithGroupSource.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("source",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/g-s`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addExtSourceWithVoSource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addExtSourceWithVoSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithVoSource.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("source",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/v-s`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createExtSourceFromExtSourceObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter extSourceObject was null or undefined when calling createExtSourceFromExtSourceObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/extSourcesManager/createExtSource/es`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createExtSourceWithNameType(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createExtSourceWithNameType.");if(null==e)throw new Error("Required parameter type was null or undefined when calling createExtSourceWithNameType.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("name",t)),null!=e&&(s=s.set("type",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/createExtSource/n-t`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteExtSource.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/deleteExtSource`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getExtSourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getExtSourceById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getExtSourceByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getExtSourceByName.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("name",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceByName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getExtSources(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSources`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getGroupExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupExtSources.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getGroupExtSources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoExtSources.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getVoExtSources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}loadExtSourcesDefinitions(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/loadExtSourcesDefinitions`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeExtSourceWithGroupSource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeExtSourceWithGroupSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithGroupSource.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("source",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/g-s`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeExtSourceWithVoSource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeExtSourceWithVoSource.");if(null==e)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithVoSource.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("source",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/v-s`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),J=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}addFacilityAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroup.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addFacilityAdminGroupByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroupByFacilityName.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroupByFacilityName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addFacilityAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUser.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addFacilityAdminUserByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUserByFacilityName.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUserByFacilityName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addFacilityOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwner.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwner.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addFacilityOwnerByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addFacilityOwnerByFacilityNameOwnerName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-o-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addFacilityOwnerByOwnerName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByOwnerName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/o-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addHost(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHost.");if(null==e)throw new Error("Required parameter hostname was null or undefined when calling addHost.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("hostname",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addHostByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHostByFacilityName.");if(null==e)throw new Error("Required parameter hostname was null or undefined when calling addHostByFacilityName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("hostname",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addHosts(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHosts.");if(null==e)throw new Error("Required parameter hostnames was null or undefined when calling addHosts.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("hostnames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addHostsByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addHostsByFacilityName.");if(null==e)throw new Error("Required parameter hostnames was null or undefined when calling addHostsByFacilityName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("hostnames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}assignSecurityTeam(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeam.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeam.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("securityTeam",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}assignSecurityTeamByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeamByFacilityName.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeamByFacilityName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("securityTeam",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributes.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyAttributesByDestinationName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributesByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesByDestinationName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacilityName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/dest-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyAttributesBySourceDestinationNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacilityName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-dest-names`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyAttributesBySourceName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributesBySourceName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyManagers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagers.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyManagers.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyManagersByDestinationName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagersByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersByDestinationName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacilityName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/dest-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyManagersBySourceDestinationNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacilityName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-dest-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyManagersBySourceName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyManagersBySourceName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyOwners(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwners.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyOwners.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyOwnersByDestinationName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwnersByDestinationName.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersByDestinationName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacility",t)),null!=e&&(s=s.set("destFacilityName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/dest-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyOwnersBySourceDestinationNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");if(null==e)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacilityName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-dest-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyOwnersBySourceName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceName.");if(null==e)throw new Error("Required parameter destFacility was null or undefined when calling copyOwnersBySourceName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("srcFacilityName",t)),null!=e&&(s=s.set("destFacility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createFacility.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("name",t)),null!=e&&(s=s.set("description",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/createFacility`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling deleteFacility.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("force",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling deleteFacilityByFacilityName.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility/f-name`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilities`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllowedGroups(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroups.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("service",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getAllowedGroupsByFacilityName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroupsByFacilityName.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("service",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups/f-name`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getAllowedRichGroupsWithAttributes(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributes.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributes.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("vo",i)),null!=n&&(r=r.set("service",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAllowedRichGroupsWithAttributesByFacilityName(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),e&&e.forEach(t=>{r=r.append("attrNames[]",t)}),null!=i&&(r=r.set("vo",i)),null!=n&&(r=r.set("service",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes/f-name`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAllowedUsersOfFacility(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacility.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("service",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getAllowedUsersOfFacilityByFacilityName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacilityByFacilityName.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("service",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s/f-name`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getAllowedVos(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedVos.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedVosByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllowedVosByFacilityName.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos/f-name`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedFacilitiesByGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedFacilitiesByGroup.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/group`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedFacilitiesByMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedFacilitiesByMember.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/member`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedFacilitiesByService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedFacilitiesByService.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/service`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedFacilitiesByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedFacilitiesByUser.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/user`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesByAssignedServiceForFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResourcesByAssignedService`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAssignedResourcesForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacility.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesForFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacilityByFacilityName.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacility.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesForFacilityByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityByFacilityName.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedSecurityTeams(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeams.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedSecurityTeamsByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeamsByFacilityName.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedUsers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsers.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAssignedUsersByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsersByFacilityName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getBansForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facilityId was null or undefined when calling getBansForFacility.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facilityId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForFacility`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getBansForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getBansForUser.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEnrichedFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedFacilities`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getEnrichedHosts(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedHosts.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getEnrichedHosts.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedHosts`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilitiesByAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttribute.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttribute.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeName",t)),null!=e&&(s=s.set("attributeValue",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByAttribute`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilitiesByDestination(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling getFacilitiesByDestination.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("destination",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByDestination`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilitiesByHostName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling getFacilitiesByHostName.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByHostName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilitiesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getFacilitiesByIds.");let n=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilitiesCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFacilitiesWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilitiesWhereUserIsAdmin.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesWhereUserIsAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAdminGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroups.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAdminUsers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsers.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsers.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("onlyDirectAdmins",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilityAdminUsersByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsersByFacilityName.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsersByFacilityName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("onlyDirectAdmins",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins/f-name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilityBan(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityBan.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityBan.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBan`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilityBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getFacilityBanById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBanById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getFacilityById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getFacilityByName.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("name",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityByName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityForHost(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getFacilityForHost.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("host",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityForHost`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityOwners(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwners.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityOwnersByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwnersByFacilityName.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getHostById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHosts(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHosts.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostsByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsByFacilityName.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostsByHostname(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling getHostsByHostname.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsByHostname`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostsCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsCount.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostsCountByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getHostsCountByFacilityName.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getOwnerFacilities(t,e="body",i=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling getOwnerFacilities.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("owner",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwnerFacilities`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichFacilities(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getRichFacilities`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeBanByUserIdFacilityId(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeBanByUserIdFacilityId.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeBanByUserIdFacilityId.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byUserIdFacilityId`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroup.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityAdminGroupByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroupByFacilityName.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroupByFacilityName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUser.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityAdminUserByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUserByFacilityName.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUserByFacilityName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeFacilityBanById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byId`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeFacilityOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwner.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwner.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityOwnerByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityOwnerByFacilityNameOwnerName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-o-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityOwnerByOwnerName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByOwnerName.");if(null==e)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByOwnerName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("owner",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/o-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeHost(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHost.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("host",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHost`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeHostByHostname(t,e="body",i=!1){if(null==t)throw new Error("Required parameter hostname was null or undefined when calling removeHostByHostname.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("hostname",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHostByHostname`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeHosts(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeHosts.");if(null==e)throw new Error("Required parameter hosts was null or undefined when calling removeHosts.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("hosts[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeHostsByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeHostsByFacilityName.");if(null==e)throw new Error("Required parameter hosts was null or undefined when calling removeHostsByFacilityName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("hosts[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeSecurityTeam(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeam.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeam.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("securityTeam",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeSecurityTeamByFacilityName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeamByFacilityName.");if(null==e)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeamByFacilityName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("securityTeam",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam/f-name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}setFacilityBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetBanForUserOnFacility was null or undefined when calling setFacilityBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFacility was null or undefined when calling updateFacility.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateFacility`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFacilityBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateBanForFacility was null or undefined when calling updateFacilityBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Q=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}getFacilityAdminGroupsByFacilityName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroupsByFacilityName.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups/f-name`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),X=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}addMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling addMember.");let s=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("member",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addMembers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling addMembers.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("members[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}canExtendMembershipInGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createGroupUnion(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resultGroup",t)),null!=e&&(s=s.set("operandGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createGroupWithParentGroupNameDescription(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("parentGroup",t)),null!=e&&(o=o.set("name",e)),null!=i&&(o=o.set("description",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}createGroupWithVoNameDescription(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("name",e)),null!=i&&(o=o.set("description",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}deleteGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("force",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputDeleteGroups was null or undefined when calling deleteGroups.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/deleteGroups`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}extendMembershipInGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}forceAllSubGroupsSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}forceGroupStructureSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}forceGroupSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllGroupsFromAllVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups/all`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllMemberGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllRichGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");let n=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("attrNames[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllRichGroupsWithAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAllRichSubGroupsWithGroupAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==e)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("name",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupByName`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupMemberById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==e)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("member",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupMembersCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupMembersCountsByGroupStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupMembersCountsByVoStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupRichMembersByIds(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==e)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("members[]",t)}),i&&i.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getGroupUnions(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==e)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("reverseDirection",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupUnions`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupsByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let n=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedGroups was null or undefined when calling getGroupsPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getGroupsPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getIndirectMembershipPaths(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberRichGroupsWithAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRichGroupByIdWithAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("groupId",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSubgroupsPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getSubgroupsPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}isGroupMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==e)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isGroupMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}moveGroupWithDestinationGroupMovingGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let s=new F.LE({encoder:this.encoder});null!=e&&(s=s.set("destinationGroup",e)),null!=t&&(s=s.set("movingGroup",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupUnion(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resultGroup",t)),null!=e&&(s=s.set("operandGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMember.");let s=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("member",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeMembers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("members[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}setGroupsMemberStatus(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==e)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==i)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("status",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}updateGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateGroup was null or undefined when calling updateGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/updateGroup`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),tt=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}getGroupMemberData(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/integrationManager/getGroupMemberData`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),et=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}canExtendMembership(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/canExtendMembership`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createMemberForCandidate(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/c`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createMemberForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberForUser was null or undefined when calling createMemberForUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createMemberFromExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/extSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSpecificMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSpecificMember was null or undefined when calling createSpecificMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSpecificMember`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMember1 was null or undefined when calling createSponsoredMembers.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMembersFromCSV(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let n=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("members[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}extendMembership(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findCompleteRichMembersByAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let o=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("attrsNames[]",t)}),null!=e&&(o=o.set("searchString",e)),i&&i.forEach(t=>{o=o.append("allowedStatuses[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}findCompleteRichMembersForGroup(t,e,i,n,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==n)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let c=new F.LE({encoder:this.encoder});null!=t&&(c=c.set("group",t)),e&&e.forEach(t=>{c=c.append("attrsNames[]",t)}),s&&s.forEach(t=>{c=c.append("allowedStatuses[]",t)}),o&&o.forEach(t=>{c=c.append("allowedGroupStatuses[]",t)}),null!=i&&(c=c.set("searchString",i)),null!=n&&(c=c.set("lookingInParentGroup",n));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}findCompleteRichMembersForVo(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("attrsNames[]",t)}),n&&n.forEach(t=>{r=r.append("allowedStatuses[]",t)}),null!=i&&(r=r.set("searchString",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}findMembersInVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("searchString",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findMembersInVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}findSponsoredCompleteRichMembersForVo(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==n)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("attrsNames[]",t)}),null!=i&&(r=r.set("searchString",i)),null!=n&&(r=r.set("onlySponsored",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAllMembers(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllMembers`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllNamespacesRules(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllSponsoredMembersAndTheirSponsors(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getCompleteRichMembersForGroup(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let a=new F.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),i&&i.forEach(t=>{a=a.append("allowedStatuses[]",t)}),n&&n.forEach(t=>{a=a.append("allowedGroupStatuses[]",t)}),null!=e&&(a=a.set("lookingInParentGroup",e)),s&&s.forEach(t=>{a=a.append("attrsNames[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getCompleteRichMembersForGroupResource(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==i)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==n)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attrsNames[]",t)}),n&&n.forEach(t=>{r=r.append("allowedStatuses[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getCompleteRichMembersForVo(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("allowedStatuses[]",t)}),i&&i.forEach(t=>{o=o.append("attrsNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberByExtSourceNameAndExtLogin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==i)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("extLogin",e)),null!=i&&(o=o.set("extSourceName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberByUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByUser`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMembers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("status",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMembersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let n=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMembersByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMembersCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMembersPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedMembers was null or undefined when calling getMembersPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/getMembersPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getMembersWithStatusCount(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==e)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("status",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount/status`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRichMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichMemberWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichMembersByIds(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let s=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)}),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getSponsoredMembersAndTheirSponsors(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSponsorsByMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/member`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSponsorsByVo(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("extSourceName",e)),null!=i&&(r=r.set("extLogin",i)),n&&n.forEach(t=>{r=r.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/vo`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}moveMembership(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==e)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==i)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("sourceUser",e)),null!=i&&(o=o.set("targetUser",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeSponsor(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("sponsor",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}sendAccountActivationLinkEmail(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==n)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("namespace",e)),null!=i&&(r=r.set("emailAttributeURN",i)),null!=n&&(r=r.set("language",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}sendPasswordResetLinkEmail(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==n)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let a=new F.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("emailAttributeURN",i)),null!=n&&(a=a.set("language",n)),null!=s&&(a=a.set("baseUrl",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}setSponsoredMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/setSponsoredMember`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setSponsorshipForMember(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("sponsoredMember",t)),null!=e&&(o=o.set("sponsor",e)),null!=i&&(o=o.set("validityTo",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}setStatus(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==e)throw new Error("Required parameter status was null or undefined when calling setStatus.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("status",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}sponsorMember(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("sponsor",e)),null!=i&&(o=o.set("validityTo",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}updateSponsorshipValidity(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("sponsor",e)),null!=i&&(o=o.set("validityTo",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}validateMemberAsync(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),it=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}createOwner(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateOwner was null or undefined when calling createOwner.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/ownersManager/createOwner`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("owner",t)),null!=e&&(s=s.set("force",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAllOwners(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwners`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getOwnerById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getOwnerByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("owner",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerByName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),nt=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}sentMessageToRTWithMemberQueue(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("memberId",t)),null!=e&&(r=r.set("queue",e)),null!=i&&(r=r.set("subject",i)),null!=n&&(r=r.set("text",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}sentMessageToRTWithQueue(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("queue",t)),null!=e&&(o=o.set("subject",e)),null!=i&&(o=o.set("text",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}sentMessageToRTWithVo(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("voId",t)),null!=e&&(o=o.set("subject",e)),null!=i&&(o=o.set("text",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}sentMessageToRTWithVoQueue(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("voId",t)),null!=e&&(r=r.set("queue",e)),null!=i&&(r=r.set("subject",i)),null!=n&&(r=r.set("text",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),st=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}addApplicationMailForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addApplicationMailForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addGroupsToAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let n=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("groups[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}approveApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}checkForSimilarUsersWithAuthInfo(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}consolidateIdentityUsingToken(t,e="body",i=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("token",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}copyFormFromGroupToGroup(t,e,i="body",n=!1){let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyFormFromGroupToVo(t,e,i="body",n=!1){let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toVo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyFormFromVoToGroup(t,e,i="body",n=!1){let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyFormFromVoToVo(t,e,i="body",n=!1){let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toVo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyMailsFromGroupToGroup(t,e,i="body",n=!1){let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyMailsFromGroupToVo(t,e,i="body",n=!1){let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toVo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyMailsFromVoToGroup(t,e,i="body",n=!1){let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyMailsFromVoToVo(t,e,i="body",n=!1){let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toVo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createApplicationFormInGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createApplicationFormInVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteApplicationMailForGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("id",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteApplicationMailForVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("id",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteGroupsFromAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let n=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("groups[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationDataById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationMailsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationMailsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationsForGroup(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(t=>{r=r.append("state[]",t)}),null!=i&&(r=r.set("dateFrom",i)),null!=n&&(r=r.set("dateTo",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getApplicationsForMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getApplicationsForVo(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("state[]",t)}),null!=i&&(r=r.set("dateFrom",i)),null!=n&&(r=r.set("dateTo",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getConsolidatorToken(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFormItemsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFormItemsForGroupWithType(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("type",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFormItemsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFormItemsForVoWithType(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("type",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupApplicationForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsToAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoApplicationForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}rejectApplication(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t)),null!=e&&(s=s.set("reason",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}sendInvitation(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let r=new F.LE({encoder:this.encoder});null!=i&&(r=r.set("voId",i)),null!=n&&(r=r.set("name",n)),null!=t&&(r=r.set("email",t)),null!=e&&(r=r.set("language",e));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}sendInvitationForGroup(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let a=new F.LE({encoder:this.encoder});null!=i&&(a=a.set("voId",i)),null!=n&&(a=a.set("groupId",n)),null!=s&&(a=a.set("name",s)),null!=t&&(a=a.set("email",t)),null!=e&&(a=a.set("language",e));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}sendInvitationGroupToExistingUser(t,e,i,n="body",s=!1){let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("userId",t)),null!=e&&(o=o.set("voId",e)),null!=i&&(o=o.set("groupId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}sendInvitationToExistingUser(t,e,i="body",n=!1){let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("userId",t)),null!=e&&(s=s.set("voId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}sendMessage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSendMessage was null or undefined when calling sendMessage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setSendingEnabled(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}submitApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSubmitApplication was null or undefined when calling submitApplication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateApplicationMail(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateForm was null or undefined when calling updateForm.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemData(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputFormItemData was null or undefined when calling updateFormItemData.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsData(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputFormItemData1 was null or undefined when calling updateFormItemsData.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}verifyApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ot=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}activateGroupResourceAssignment(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("async",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}addAdminToGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addAdminToUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addResourceSelfServiceGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addResourceSelfServiceUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}allowGroupsToResources(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");let o=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("groups[]",t)}),e&&e.forEach(t=>{o=o.append("resources[]",t)}),null!=i&&(o=o.set("async",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}assignGroupToResource(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let a=new F.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("async",i)),null!=n&&(a=a.set("assignInactive",n)),null!=s&&(a=a.set("autoAssignSubgroups",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}assignGroupToResources(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let a=new F.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),e&&e.forEach(t=>{a=a.append("resources[]",t)}),null!=i&&(a=a.set("async",i)),null!=n&&(a=a.set("assignInactive",n)),null!=s&&(a=a.set("autoAssignSubgroups",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}assignGroupsToResource(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let a=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{a=a.append("groups[]",t)}),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("async",i)),null!=n&&(a=a.set("assignInactive",n)),null!=s&&(a=a.set("autoAssignSubgroups",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}assignResourceTagToResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}assignService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling assignService.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}assignServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling assignServices.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("services[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}assignServicesPackage(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("servicesPackage",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCopyResource was null or undefined when calling copyResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/copyResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createResource(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==i)throw new Error("Required parameter name was null or undefined when calling createResource.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("name",i)),null!=n&&(r=r.set("description",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}createResourceTagWithResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createResourceTagWithTagName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("tagName",t)),null!=e&&(s=s.set("vo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deactivateGroupResourceAssignment(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteAllResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteAllResourcesTagsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAdminGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAdmins(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("onlyDirectAdmins",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdmins`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAllResourcesByResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAllResourcesTagsForResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllResourcesTagsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllResourcesWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedUsersOfResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedGroups(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("member",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAssignedMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedMembersWithStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembersWithStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesWithGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesWithMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesWithStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResourcesWithStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesWithGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesWithMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesWithMemberService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAssignedServicesToResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getBansForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getBansForResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForResource`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEnrichedResourceById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getEnrichedResourcesForFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getEnrichedResourcesForVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getFacility`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupAssignments(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceAssignments(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceBan(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBan`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBanById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourceByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==i)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("name",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceByName`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResources.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let n=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourcesCountForAll(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getResourcesCountForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourcesFromVoWhereUserIsAdmin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourcesWhereGroupIsAdmin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("group",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getResourcesWhereUserIsAdmin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("user",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getRichAdmins(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==e)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==i)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==n)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),e&&e.forEach(t=>{r=r.append("specificAttributes",t)}),null!=i&&(r=r.set("allUserAttributes",i)),null!=n&&(r=r.set("onlyDirectAdmins",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRichResourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichResourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let n=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getVo.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getVo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeAllResourceTagsFromResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeBanByMemberAndResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupAdminResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupFromResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupFromResources(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("resources[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupsFromResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let s=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeResourceBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeResourceSelfServiceGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeResourceSelfServiceUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeResourceTagFromResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}removeService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeService.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling removeServices.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("services[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeServicesPackage(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("servicesPackage",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserAdminResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}setResourceBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetBan was null or undefined when calling setResourceBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unallowGroupsFromResources(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let s=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),e&&e.forEach(t=>{s=s.append("resources[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}updateResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateResource was null or undefined when calling updateResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateResourceBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateBan was null or undefined when calling updateResourceBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateResourceTag was null or undefined when calling updateResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),rt=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}addDestination(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addDestination.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling addDestination.");if(null==i)throw new Error("Required parameter destination was null or undefined when calling addDestination.");if(null==n)throw new Error("Required parameter type was null or undefined when calling addDestination.");let a=new F.LE({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("facility",e)),null!=i&&(a=a.set("destination",i)),null!=n&&(a=a.set("type",n)),null!=s&&(a=a.set("propagationType",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestination`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}addDestinationToMultipleServices(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddDestinationToMultipleServices was null or undefined when calling addDestinationToMultipleServices.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestination`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addDestinationsDefinedByHostsOnFacilityWithFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithFacility.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/f`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddDestinationsDefinedByHostsOnFacility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestinationsDefinedByHostsOnFacility/lists-f`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/s-f`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addDestinationsForAllServicesOnFacility(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==i)throw new Error("Required parameter type was null or undefined when calling addDestinationsForAllServicesOnFacility.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("destination",e)),null!=i&&(r=r.set("type",i)),null!=n&&(r=r.set("propagationType",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsForAllServicesOnFacility`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}addRequiredAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addRequiredAttribute.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling addRequiredAttribute.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttribute`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addRequiredAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling addRequiredAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling addRequiredAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttributes`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addServiceToServicesPackage(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling addServiceToServicesPackage.");if(null==e)throw new Error("Required parameter service was null or undefined when calling addServiceToServicesPackage.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("servicesPackage",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addServiceToServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}blockAllServicesOnDestinationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("destination",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/d`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}blockAllServicesOnDestinationByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationByName.");if(null==e)throw new Error("Required parameter destinationType was null or undefined when calling blockAllServicesOnDestinationByName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("destination",t)),null!=e&&(s=s.set("destinationType",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/dname-dtype`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}blockAllServicesOnFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling blockAllServicesOnFacility.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnFacility`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}blockServiceOnDestination(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestination.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("destination",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-d`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}blockServiceOnDestinationWithNameAndType(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==i)throw new Error("Required parameter destinationType was null or undefined when calling blockServiceOnDestinationWithNameAndType.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("destination",e)),null!=i&&(o=o.set("destinationType",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-dname-dtype`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}blockServiceOnFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling blockServiceOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling blockServiceOnFacility.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnFacility`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createService(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createService.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createService.");if(null==i)throw new Error("Required parameter script was null or undefined when calling createService.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("name",t)),null!=e&&(o=o.set("description",e)),null!=i&&(o=o.set("script",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createService`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}createServiceWithService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateService was null or undefined when calling createServiceWithService.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createService`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateServicesPackage was null or undefined when calling createServicesPackage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createServicesPackage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createServicesPackageByNameAndDescription(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createServicesPackageByNameAndDescription.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createServicesPackageByNameAndDescription.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("name",t)),null!=e&&(s=s.set("description",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling deleteService.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("force",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteService`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling deleteServicesPackage.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("servicesPackage",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteServicesPackage`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}forceServicePropagation(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling forceServicePropagation.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/forceServicePropagation`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAllDestinations(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/all`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllRichDestinationsForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAllRichDestinationsForFacility.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/f`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllRichDestinationsForService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getAllRichDestinationsForService.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/s`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedResources.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedResourcesForService`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedServices(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getAssignedServices.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedServices`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getDataWithGroups(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getDataWithGroups.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDataWithGroups.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithGroups`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getDataWithVos(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getDataWithVos.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDataWithVos.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithVos`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getDestinationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getDestinationById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getDestinations(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getDestinations.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/s-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getDestinationsCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationsCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFacilitiesDestinations(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFacilitiesDestinations.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilitiesDestinations`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAssignedServicesForGUI(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAssignedServicesForGUI.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilityAssignedServicesForGUI`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFlatData(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getFlatData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFlatData.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFlatData`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getHashedDataWithGroups(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getHashedDataWithGroups.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHashedDataWithGroups.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedDataWithGroups`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getHashedHierarchicalData(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getHashedHierarchicalData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHashedHierarchicalData.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedHierarchicalData`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getHierarchicalData(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getHierarchicalData.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getHierarchicalData.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("filterExpiredMembers",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHierarchicalData`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getRichDestinations(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRichDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRichDestinations.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getRichDestinations`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getServiceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getServiceById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServiceByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getServiceByName.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("name",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceByName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServices(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServices`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getServicesBlockedOnDestination(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling getServicesBlockedOnDestination.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("destination",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnDestination`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesBlockedOnFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getServicesBlockedOnFacility.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnFacility`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesByAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getServicesByAttributeDefinition.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesByAttributeDefinition`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesFromServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesFromServicesPackage.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("servicesPackage",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesFromServicesPackage`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesPackageById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesPackageById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("servicesPackage",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesPackageByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling getServicesPackageByName.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("name",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageByName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getServicesPackages(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackages`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}isServiceBlockedOnDestination(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling isServiceBlockedOnDestination.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("destination",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnDestination`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}isServiceBlockedOnFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling isServiceBlockedOnFacility.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnFacility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}planServicePropagation(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling planServicePropagation.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/planServicePropagation`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeAllDestinations(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeAllDestinations.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAllDestinations.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllDestinations`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeAllRequiredAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeAllRequiredAttributes.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllRequiredAttributes`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeDestination(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeDestination.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeDestination.");if(null==i)throw new Error("Required parameter destination was null or undefined when calling removeDestination.");if(null==n)throw new Error("Required parameter type was null or undefined when calling removeDestination.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("destination",i)),null!=n&&(r=r.set("type",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeDestination`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeRequiredAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttribute.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling removeRequiredAttribute.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttribute`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeRequiredAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeRequiredAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttributes`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeServiceFromServicesPackage(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServiceFromServicesPackage.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeServiceFromServicesPackage.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("servicesPackage",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeServiceFromServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}unblockAllServicesOnDestinationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("destination",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/d`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}unblockAllServicesOnDestinationByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationByName.");if(null==e)throw new Error("Required parameter destinationType was null or undefined when calling unblockAllServicesOnDestinationByName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("destination",t)),null!=e&&(s=s.set("destinationType",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/dname-dtype`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}unblockAllServicesOnFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling unblockAllServicesOnFacility.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnFacility`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}unblockServiceOnDestinationById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationById.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationById.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("destination",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-d`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}unblockServiceOnDestinationByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationByName.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationByName.");if(null==i)throw new Error("Required parameter destinationType was null or undefined when calling unblockServiceOnDestinationByName.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("destination",e)),null!=i&&(o=o.set("destinationType",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-dname-dtype`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}unblockServiceOnFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling unblockServiceOnFacility.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnFacility`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}updateService(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateService was null or undefined when calling updateService.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateService`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateServicesPackage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateServicesPackage was null or undefined when calling updateServicesPackage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateServicesPackage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),at=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}countTasks(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/countTasks`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}deleteTask(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskIdObject was null or undefined when calling deleteTask.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTask`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteTaskResultById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskResultIdObject was null or undefined when calling deleteTaskResultById.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResultById`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteTaskResultsIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskAndDestinationIdObject was null or undefined when calling deleteTaskResultsIds.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/id`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteTaskResultsNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskAndDestinationNameObject was null or undefined when calling deleteTaskResultsNames.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/name`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAllFacilitiesStates(t,e="body",i=!1){let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllFacilitiesStates`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllResourcesState(t,e="body",i=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling getAllResourcesState.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("voId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllResourcesState`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityServicesState(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityServicesState.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityServicesState`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityState(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityState.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityState`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTask(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getTask.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getTask.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTask`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getTaskById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getTaskById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTaskResultById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter taskResult was null or undefined when calling getTaskResultById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("taskResult",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTaskResults(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResults`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getTaskResultsByTask(t,e="body",i=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsByTask.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("task",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsByTask`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTaskResultsForDestinations(t,e="body",i=!1){if(null==t)throw new Error("Required parameter destinations was null or undefined when calling getTaskResultsForDestinations.");let n=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("destinations[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForDestinations`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTaskResultsForGUIByTask(t,e="body",i=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTask.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("task",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTask`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getTaskResultsForGUIByTaskAndDestination(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");if(null==e)throw new Error("Required parameter destination was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("task",t)),null!=e&&(s=s.set("destination",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskAndDestination`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getTaskResultsForGUIByTaskOnlyNewest(t,e="body",i=!1){if(null==t)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskOnlyNewest.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("task",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskOnlyNewest`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isThereSuchTask(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling isThereSuchTask.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling isThereSuchTask.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/isThereSuchTask`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}listAllTasks(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasks`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}listAllTasksForFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling listAllTasksForFacility.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasksForFacility`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}suspendTasksPropagation(t,e="body",i=!1){if(null==t)throw new Error("Required parameter suspend was null or undefined when calling suspendTasksPropagation.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("suspend",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/suspendTasksPropagation`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ct=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}addSpecificUserOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("specificUser",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addUserExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter addUserExtSourceInput was null or undefined when calling addUserExtSource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}anonymizeUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}changeNonAuthzPasswordByToken(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==e)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("token",t)),null!=e&&(o=o.set("password",e)),null!=i&&(o=o.set("lang",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changeNonAuthzPassword/token`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}changePasswordForLogin(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");let a=new F.LE({encoder:this.encoder});null!=t&&(a=a.set("login",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("newPassword",i)),null!=n&&(a=a.set("oldPassword",n)),null!=s&&(a=a.set("checkOldPassword",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/login`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}changePasswordForUser(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");let a=new F.LE({encoder:this.encoder});null!=t&&(a=a.set("user",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("newPassword",i)),null!=n&&(a=a.set("oldPassword",n)),null!=s&&(a=a.set("checkOldPassword",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/user`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}checkPasswordResetRequestByTokenIsValid(t,e="body",i=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("token",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}checkPasswordStrength(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("password",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createAlternativePassword(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==i)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==n)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("description",e)),null!=i&&(r=r.set("loginNamespace",i)),null!=n&&(r=r.set("password",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/createAlternativePassword`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}createServiceUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateServiceUser was null or undefined when calling createServiceUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAlternativePassword(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==i)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("loginNamespace",e)),null!=i&&(o=o.set("passwordId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}deletePasswordForLogin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("login",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deletePasswordForUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("force",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}findRichUsers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findRichUsersWithAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("searchString",t)),e&&e.forEach(t=>{s=s.append("attrsNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}findUsers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}generateAccountForName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("namespace",t)),null!=e&&(s=s.set("name",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAllRichUsersWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("includedSpecificUsers",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsForFacilityWhereUserIsActive(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupsForResourceWhereUserIsActive(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupsInVoWhereUserIsAdmin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("vo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupsWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getPendingPreferredEmailChanges(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUserExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUserWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUsersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let n=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUsersWithAttributesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let n=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUsersWithoutVoWithAttributes(t,e="body",i=!1){let n=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("attrsNames[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getSpecificUsersByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getSponsorsForMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSponsorsForMemberByVoAndLogin(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let r=new F.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("extSourceName",e)),null!=i&&(r=r.set("extLogin",i)),n&&n.forEach(t=>{r=r.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getUserByExtSourceNameAndExtLogin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("extLogin",t)),null!=e&&(s=s.set("extSourceName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getUserById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("userExtSource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourceByUniqueAttributeValueAndAttributeId(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeId",t)),null!=e&&(s=s.set("attributeValue",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserExtSourceByUniqueAttributeValueAndAttributeName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeName",t)),null!=e&&(s=s.set("attributeValue",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let n=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUsers(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getUsersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let n=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUsersBySpecificUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("specificUser",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUsersPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedUsers was null or undefined when calling getUsersPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getVosWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosWhereUserIsMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isLoginAvailable(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==e)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("loginNamespace",t)),null!=e&&(s=s.set("login",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}loginExist(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeSpecificUserOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("specificUser",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserExtSource(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("userExtSource",e)),null!=i&&(o=o.set("force",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}requestPreferredEmailChange(t,e,i,n,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==e)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let c=new F.LE({encoder:this.encoder});null!=t&&(c=c.set("user",t)),null!=e&&(c=c.set("email",e)),null!=i&&(c=c.set("lang",i)),null!=n&&(c=c.set("linkPath",n)),null!=s&&(c=c.set("customUrl",s)),null!=o&&(c=c.set("idpFilter",o));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}reservePasswordForLogin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("login",t)),null!=e&&(o=o.set("namespace",e)),null!=i&&(o=o.set("password",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/login`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}reservePasswordForUser(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("namespace",e)),null!=i&&(o=o.set("password",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}reserveRandomPassword(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}updateUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateUser was null or undefined when calling updateUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}validatePasswordForLogin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("login",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}validatePasswordForUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}validatePreferredEmailChangeWithToken(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==e)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("token",t)),null!=e&&(s=s.set("u",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ut=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}getAppsConfig(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getGuiConfiguration(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunRPCVersion(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["text/plain"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunStatistics(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunStatus(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunSystemTimeInMillis(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),lt=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new F.WM,this.configuration=new q,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new N}addSponsorRoleToGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addSponsorRoleToUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addVoAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addVoAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createVoWithName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==e)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("name",t)),null!=e&&(s=s.set("shortName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createVoWithVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateVoWithVo was null or undefined when calling createVoWithVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/createVo/withVo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("force",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}findCandidates(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("id",t)),null!=e&&(o=o.set("searchString",e)),null!=i&&(o=o.set("maxNumOfResults",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}findCandidatesForGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("searchString",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAllVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAllVos`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getCompleteCandidatesForGroup(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("searchString",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getCompleteCandidatesForVo(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("searchString",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMyVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVos`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getRichAdminsForVo(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==i)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==n)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==s)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let a=new F.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("role",e)),i&&i.forEach(t=>{a=a.append("specificAttributes",t)}),null!=n&&(a=a.set("allUserAttributes",n)),null!=s&&(a=a.set("onlyDirectAdmins",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getRichAdmins`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getVoAdminGroups(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("role",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdminGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getVoAdminUsers(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==i)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");let o=new F.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("role",e)),null!=i&&(o=o.set("onlyDirectAdmins",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdmins`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getVoBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoBanForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanForMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoBansForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBansForVo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getVoById.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoByShortName(t,e="body",i=!1){let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("shortName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoByShortName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoMembersCountsByStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let n=new F.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeSponsorRoleFromGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeSponsorRoleFromUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeVoAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeVoAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let s=new F.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeVoBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeVoBanForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let n=new F.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}setVoBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoBan was null or undefined when calling setVoBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateVo was null or undefined when calling updateVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/updateVo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(K,8),s.LFG(q,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var ht,dt,pt,ft;!function(t){t.HiddenEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"},t.DisabledEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"}}(ht||(ht={})),function(t){t.FormatEnum={DOT:"DOT",TGF:"TGF"}}(dt||(dt={})),function(t){t.OwnerTypeEnum={NUMBER_0:0,NUMBER_1:1}}(pt||(pt={})),function(t){t.TypeEnum={Technical:"technical",Administrative:"administrative"}}(ft||(ft={}));let gt=(()=>{class t{constructor(t,e){if(t)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!e)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:t,providers:[{provide:q,useFactory:e}]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(t,12),s.LFG(F.eN,8))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[U,Z,G,V,$,W,J,Q,X,tt,et,it,nt,st,ot,rt,at,ct,ut,lt],imports:[[]]}),t})();var mt=function(t){return t.PERUNADMIN="PERUNADMIN",t.PERUNOBSERVER="PERUNOBSERVER",t.VOADMIN="VOADMIN",t.GROUPADMIN="GROUPADMIN",t.SELF="SELF",t.FACILITYADMIN="FACILITYADMIN",t.FACILITIYOBSERVER="FACILITYOBSERVER",t.RESOURCEADMIN="RESOURCEADMIN",t.RESOURCESELFSERVICE="RESOURCESELFSERVICE",t.REGISTRAR="REGISTRAR",t.ENGINE="ENGINE",t.RPC="RPC",t.NOTIFICATIONS="NOTIFICATIONS",t.SERVICEUSER="SERVICEUSER",t.SPONSOR="SPONSOR",t.VOOBSERVER="VOOBSERVER",t.TOPGROUPCREATOR="TOPGROUPCREATOR",t.SECURITYADMIN="SECURITYADMIN",t.CABINETADMIN="CABINETADMIN",t.UNKNOWNROLENAME="UNKNOWNROLENAME",t}({});let _t=(()=>{class t{constructor(t){this.authzSevice=t,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(t){this.principal=t,this.initData(t)}setPerunPolicies(t){this.perunPolicies=t}getPerunPolicies(){return this.perunPolicies}isAuthorized(t,e){if(null===this.principal.roles)return!1;const i=this.fetchPolicyWithAllIncludedPolicies(t);let n=[];for(const o of i)n=n.concat(o.perunRoles);const s=this.fetchAllRelatedObjects(e);return this.resolveAuthorization(n,s)}resolveAuthorization(t,e){for(const i of t){let t=!0;for(const n of Object.keys(i)){const s=i[n];if(null===s)this.principalRoles.has(n)||(t=!1);else if(e[s]){for(const i of e[s])if(!this.principalHasRole(n,s,i)){t=!1;break}}else t=!1;if(!t)break}if(t)return!0}return!1}fetchAllRelatedObjects(t){const e={};for(const i of t){let t=i.beanName;switch(i.beanName.startsWith("Rich")&&(t=i.beanName.substring(4)),e[t]?e[t].push(i.id):e[t]=[i.id],t){case"Member":e.User?e.User.push(i.userId):e.User=[i.userId],e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"Group":e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"Resource":e.Facility?e.Facility.push(i.facilityId):e.Facility=[i.facilityId],e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"ResourceTag":e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId]}}return e}principalHasRole(t,e,i){let n=e;return e.startsWith("Rich")&&(n=e.substring(4)),!(!this.principal.roles[t]||!this.principal.roles[t][n])&&this.principal.roles[t][n].includes(Number(i.toString()))}fetchPolicyWithAllIncludedPolicies(t){const e=new Map;let i=[];for(i.push(t);0!==i.length;){const n=i.shift();if(e.has(n)){console.log("Policy {} creates a cycle in the included policies of the policy {}",n,t);continue}const s=this.getPerunPolicy(n);if(!s)return[];e.set(n,s),i=i.concat(s.includePolicies)}const n=[];for(const s of e.values())n.push(s);return n}getPerunPolicy(t){for(const e of this.perunPolicies)if(e.policyName===t)return e;return console.log("policy with name"+t+"was not found"),null}canManageFacilities(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.PERUNOBSERVER,mt.FACILITYADMIN,mt.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(mt.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.VOADMIN)}isThisVoAdminOrObserver(t){return this.editableVos.includes(Number(t.toString()))||this.observableVos.includes(Number(t.toString()))||this.hasAtLeastOne(mt.PERUNADMIN,mt.PERUNOBSERVER)}isThisVoAdmin(t){return this.editableVos.includes(t)||this.principalRoles.has(mt.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(mt.SPONSOR)}isThisGroupAdmin(t){return this.editableGroups.includes(t)||this.principalRoles.has(mt.PERUNADMIN)}isGroupAdminInThisVo(t){return this.hasGroupInTheseVos.includes(t)}isFacilityAdmin(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.FACILITYADMIN)}isThisFacilityAdmin(t){return this.editableFacilities.includes(t)||this.principalRoles.has(mt.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(mt.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(mt.PERUNADMIN,mt.VOOBSERVER,mt.PERUNOBSERVER)}isThisVoObserver(t){return this.hasAtLeastOne(mt.PERUNADMIN,mt.PERUNOBSERVER)||this.observableVos.includes(t)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((t,e)=>{this.authzSevice.getAllRolesManagementRules().subscribe(e=>{this.allRolesManagementRules=e,t()},t=>e(t))})}assignAvailableRoles(t,e){this.allRolesManagementRules.forEach(i=>{i.primaryObject===e&&t.push(i.roleName)}),t.sort(),"Vo"===e&&this.voCustomSort(t)}isManagerPagePrivileged(t){const e=[];let i=t.beanName;i.startsWith("Rich")&&(i=i.substr(4)),this.assignAvailableRoles(e,i);const n=new Map;this.getRolesAuthorization(e,t,n);for(const s of n.values())if(s.readAuth||s.manageAuth)return!0;return!1}getRolesAuthorization(t,e,i){for(const n of t){let t=[],s=[],o=[];for(const e of this.allRolesManagementRules)if(e.roleName===n){t=t.concat(e.privilegedRolesToRead),s=s.concat(e.privilegedRolesToManage);for(const t of Object.keys(e.entitiesToManage))o="User"===t?[t].concat(o):o.concat(t);break}const r=this.fetchAllRelatedObjects([e]),a=this.resolveAuthorization(t,r),c=this.resolveAuthorization(s,r);i.set(n,{readAuth:a,manageAuth:c,modes:o})}}voCustomSort(t){for(let e=0;e{let i;try{i=t()}catch(n){return void e.error(n)}return(i?(0,yt.D)(i):(0,Lt.c)()).subscribe(e)})}var Rt=i(2875),Dt=i(9996),zt=i(4689),Pt=i(611),It=i(6163);function Ot(...t){const e=t[t.length-1];return(0,It.K)(e)?(t.pop(),i=>Et(t,i,e)):e=>Et(t,e)}var Ht=i(6673);function Yt(t,e){let i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new Bt(t,e,i))}}class Bt{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new jt(t,this.accumulator,this.seed,this.hasSeed))}}class jt extends Ht.L{constructor(t,e,i,n){super(t),this.accumulator=e,this._seed=i,this.hasSeed=n,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(n){this.destination.error(n)}this.seed=i,this.destination.next(i)}}var Ft=i(7727),Nt=i(436),Kt=i(8402);function qt(t){return function(e){return 0===t?(0,Lt.c)():e.lift(new Ut(t))}}class Ut{constructor(t){if(this.total=t,this.total<0)throw new Kt.W}call(t,e){return e.subscribe(new Zt(t,this.total))}}class Zt extends Ht.L{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,n=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,n=this.ring;for(let s=0;se.lift(new ie(t))}class ie{constructor(t){this.callback=t}call(t,e){return e.subscribe(new ne(t,this.callback))}}class ne extends Ht.L{constructor(t,e){super(t),this.add(new te.w(e))}}class se{constructor(t,e){this.id=t,this.url=e}}class oe extends se{constructor(t,e,i="imperative",n=null){super(t,e),this.navigationTrigger=i,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class re extends se{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ae extends se{constructor(t,e,i){super(t,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ce extends se{constructor(t,e,i){super(t,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ue extends se{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class le extends se{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class he extends se{constructor(t,e,i,n,s){super(t,e),this.urlAfterRedirects=i,this.state=n,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class de extends se{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pe extends se{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class fe{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ge{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class me{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _e{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class we{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ye{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class be{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Ae="primary";class ve{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function ke(t){return new ve(t)}function Te(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Ce(t,e,i){const n=i.path.split("/");if(n.length>t.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.lengthn[e]===t)}return t===e}function Ee(t){return Array.prototype.concat.apply([],t)}function Le(t){return t.length>0?t[t.length-1]:null}function xe(t,e){for(const i in t)t.hasOwnProperty(i)&&e(t[i],i)}function Re(t){return(0,s.CqO)(t)?t:(0,s.QGY)(t)?(0,yt.D)(Promise.resolve(t)):(0,bt.of)(t)}const De={exact:function t(e,i,n){if(!Fe(e.segments,i.segments))return!1;if(!He(e.segments,i.segments,n))return!1;if(e.numberOfChildren!==i.numberOfChildren)return!1;for(const s in i.children){if(!e.children[s])return!1;if(!t(e.children[s],i.children[s],n))return!1}return!0},subset:Ie},ze={exact:function(t,e){return Se(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>Me(t[i],e[i]))},ignored:()=>!0};function Pe(t,e,i){return De[i.paths](t.root,e.root,i.matrixParams)&&ze[i.queryParams](t.queryParams,e.queryParams)&&!("exact"===i.fragment&&t.fragment!==e.fragment)}function Ie(t,e,i){return Oe(t,e,e.segments,i)}function Oe(t,e,i,n){if(t.segments.length>i.length){const s=t.segments.slice(0,i.length);return!!Fe(s,i)&&!e.hasChildren()&&!!He(s,i,n)}if(t.segments.length===i.length){if(!Fe(t.segments,i))return!1;if(!He(t.segments,i,n))return!1;for(const i in e.children){if(!t.children[i])return!1;if(!Ie(t.children[i],e.children[i],n))return!1}return!0}{const s=i.slice(0,t.segments.length),o=i.slice(t.segments.length);return!!Fe(t.segments,s)&&!!He(t.segments,s,n)&&!!t.children.primary&&Oe(t.children.primary,e,o,n)}}function He(t,e,i){return e.every((e,n)=>ze[i](t[n].parameters,e.parameters))}class Ye{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ke(this.queryParams)),this._queryParamMap}toString(){return qe.serialize(this)}}class Be{constructor(t,e){this.segments=t,this.children=e,this.parent=null,xe(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ue(this)}}class je{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=ke(this.parameters)),this._parameterMap}toString(){return Qe(this)}}function Fe(t,e){return t.length===e.length&&t.every((t,i)=>t.path===e[i].path)}class Ne{}class Ke{parse(t){const e=new ni(t);return new Ye(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${Ze(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(t=>`${Ve(e)}=${Ve(t)}`).join("&"):`${Ve(e)}=${Ve(i)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const qe=new Ke;function Ue(t){return t.segments.map(t=>Qe(t)).join("/")}function Ze(t,e){if(!t.hasChildren())return Ue(t);if(e){const e=t.children.primary?Ze(t.children.primary,!1):"",i=[];return xe(t.children,(t,e)=>{e!==Ae&&i.push(`${e}:${Ze(t,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function(t,e){let i=[];return xe(t.children,(t,n)=>{n===Ae&&(i=i.concat(e(t,n)))}),xe(t.children,(t,n)=>{n!==Ae&&(i=i.concat(e(t,n)))}),i}(t,(e,i)=>i===Ae?[Ze(t.children.primary,!1)]:[`${i}:${Ze(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${Ue(t)}/${e[0]}`:`${Ue(t)}/(${e.join("//")})`}}function Ge(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ve(t){return Ge(t).replace(/%3B/gi,";")}function $e(t){return Ge(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function We(t){return decodeURIComponent(t)}function Je(t){return We(t.replace(/\+/g,"%20"))}function Qe(t){return`${$e(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${$e(t)}=${$e(e[t])}`).join("")}`;var e}const Xe=/^[^\/()?;=#]+/;function ti(t){const e=t.match(Xe);return e?e[0]:""}const ei=/^[^=?&#]+/,ii=/^[^?&#]+/;class ni{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Be([],{}):new Be([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new Be(t,e)),i}parseSegment(){const t=ti(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new je(We(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=ti(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=ti(this.remaining);t&&(i=t,this.capture(i))}t[We(e)]=We(i)}parseQueryParam(t){const e=function(t){const e=t.match(ei);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(ii);return e?e[0]:""}(this.remaining);t&&(i=t,this.capture(i))}const n=Je(e),s=Je(i);if(t.hasOwnProperty(n)){let e=t[n];Array.isArray(e)||(e=[e],t[n]=e),e.push(s)}else t[n]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=ti(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error(`Cannot parse url '${this.url}'`);let s;i.indexOf(":")>-1?(s=i.substr(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=Ae);const o=this.parseChildren();e[s]=1===Object.keys(o).length?o.primary:new Be([],o),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class si{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=oi(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=oi(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=ri(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return ri(t,this._root).map(t=>t.value)}}function oi(t,e){if(t===e.value)return e;for(const i of e.children){const e=oi(t,i);if(e)return e}return null}function ri(t,e){if(t===e.value)return[e];for(const i of e.children){const n=ri(t,i);if(n.length)return n.unshift(e),n}return[]}class ai{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function ci(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class ui extends si{constructor(t,e){super(t),this.snapshot=e,gi(this,t)}toString(){return this.snapshot.toString()}}function li(t,e){const i=function(t,e){const i=new pi([],{},{},"",{},Ae,e,null,t.root,-1,{});return new fi("",new ai(i,[]))}(t,e),n=new kt([new je("",{})]),s=new kt({}),o=new kt({}),r=new kt({}),a=new kt(""),c=new hi(n,s,r,a,o,Ae,e,i.root);return c.snapshot=i.root,new ui(new ai(c,[]),i)}class hi{constructor(t,e,i,n,s,o,r,a){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=o,this.component=r,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,Dt.U)(t=>ke(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Dt.U)(t=>ke(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function di(t,e="emptyOnly"){const i=t.pathFromRoot;let n=0;if("always"!==e)for(n=i.length-1;n>=1;){const t=i[n],e=i[n-1];if(t.routeConfig&&""===t.routeConfig.path)n--;else{if(e.component)break;n--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(i.slice(n))}class pi{constructor(t,e,i,n,s,o,r,a,c,u,l){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=o,this.component=r,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=u,this._resolve=l}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=ke(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ke(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class fi extends si{constructor(t,e){super(e),this.url=t,gi(this,e)}toString(){return mi(this._root)}}function gi(t,e){e.value._routerState=t,e.children.forEach(e=>gi(t,e))}function mi(t){const e=t.children.length>0?` { ${t.children.map(mi).join(", ")} } `:"";return`${t.value}${e}`}function _i(t){if(t.snapshot){const e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,Se(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),Se(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(let i=0;iSe(t.parameters,n[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||wi(t.parent,e.parent))}function yi(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){const n=i.value;n._futureSnapshot=e.value;const s=function(t,e,i){return e.children.map(e=>{for(const n of i.children)if(t.shouldReuseRoute(e.value,n.value.snapshot))return yi(t,e,n);return yi(t,e)})}(t,e,i);return new ai(n,s)}{if(t.shouldAttach(e.value)){const i=t.retrieve(e.value);if(null!==i){const t=i.route;return bi(e,t),t}}const i=new hi(new kt((n=e.value).url),new kt(n.params),new kt(n.queryParams),new kt(n.fragment),new kt(n.data),n.outlet,n.component,n),s=e.children.map(e=>yi(t,e));return new ai(i,s)}var n}function bi(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let i=0;i{o[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new Ye(i.root===t?e:Ti(i.root,t,e),o,s)}function Ti(t,e,i){const n={};return xe(t.children,(t,s)=>{n[s]=t===e?i:Ti(t,e,i)}),new Be(t.segments,n)}class Ci{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Ai(i[0]))throw new Error("Root segment cannot have matrix parameters");const n=i.find(vi);if(n&&n!==Le(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Si{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function Mi(t,e,i){if(t||(t=new Be([],{})),0===t.segments.length&&t.hasChildren())return Ei(t,e,i);const n=function(t,e,i){let n=0,s=e;const o={match:!1,pathIndex:0,commandIndex:0};for(;s=i.length)return o;const e=t.segments[s],r=i[n];if(vi(r))break;const a=`${r}`,c=n0&&void 0===a)break;if(a&&c&&"object"==typeof c&&void 0===c.outlets){if(!Di(a,c,e))return o;n+=2}else{if(!Di(a,{},e))return o;n++}s++}return{match:!0,pathIndex:s,commandIndex:n}}(t,e,i),s=i.slice(n.commandIndex);if(n.match&&n.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(s[n]=Mi(t.children[n],e,i))}),xe(t.children,(t,e)=>{void 0===n[e]&&(s[e]=t)}),new Be(t.segments,s)}}function Li(t,e,i){const n=t.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[i]=Li(new Be([],{}),0,t))}),e}function Ri(t){const e={};return xe(t,(t,i)=>e[i]=`${t}`),e}function Di(t,e,i){return t==i.path&&Se(e,i.parameters)}class zi{constructor(t,e,i,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=n}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),_i(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const n=ci(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,n[e],i),delete n[e]}),xe(n,(t,e)=>{this.deactivateRouteAndItsChildren(t,i)})}deactivateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(n===s)if(n.component){const s=i.getContext(n.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet);if(i&&i.outlet){const e=i.outlet.detach(),n=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:n})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),n=i&&t.value.component?i.children:e,s=ci(t);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],n);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const n=ci(e);t.children.forEach(t=>{this.activateRoutes(t,n[t.value.outlet],i),this.forwardEvent(new ye(t.value.snapshot))}),t.children.length&&this.forwardEvent(new _e(t.value.snapshot))}activateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(_i(n),n===s)if(n.component){const s=i.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(n.component){const e=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){const t=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),Pi(t.route)}else{const i=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(n.snapshot),s=i?i.module.componentFactoryResolver:null;e.attachRef=null,e.route=n,e.resolver=s,e.outlet&&e.outlet.activateWith(n,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,i)}}function Pi(t){_i(t.value),t.children.forEach(Pi)}class Ii{constructor(t,e){this.routes=t,this.module=e}}function Oi(t){return"function"==typeof t}function Hi(t){return t instanceof Ye}const Yi=Symbol("INITIAL_VALUE");function Bi(){return(0,zt.w)(t=>(0,Tt.aj)(t.map(t=>t.pipe((0,Pt.q)(1),Ot(Yi)))).pipe(Yt((t,e)=>{let i=!1;return e.reduce((t,n,s)=>{if(t!==Yi)return t;if(n===Yi&&(i=!0),!i){if(!1===n)return n;if(s===e.length-1||Hi(n))return n}return t},t)},Yi),(0,wt.h)(t=>t!==Yi),(0,Dt.U)(t=>Hi(t)?t:!0===t),(0,Pt.q)(1)))}let ji=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s._UZ(0,"router-outlet")},directives:function(){return[Yn]},encapsulation:2}),t})();function Fi(t,e=""){for(let i=0;iUi(t)===e);return i.push(...t.filter(t=>Ui(t)!==e)),i}const Gi={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Vi(t,e,i){var n;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?Object.assign({},Gi):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||Ce)(i,t,e);if(!s)return Object.assign({},Gi);const o={};xe(s.posParams,(t,e)=>{o[e]=t.path});const r=s.consumed.length>0?Object.assign(Object.assign({},o),s.consumed[s.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:r,positionalParamSegments:null!==(n=s.posParams)&&void 0!==n?n:{}}}function $i(t,e,i,n,s="corrected"){if(i.length>0&&function(t,e,i){return i.some(i=>Wi(t,e,i)&&Ui(i)!==Ae)}(t,i,n)){const s=new Be(e,function(t,e,i,n){const s={};s.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(const o of i)if(""===o.path&&Ui(o)!==Ae){const i=new Be([],{});i._sourceSegment=t,i._segmentIndexShift=e.length,s[Ui(o)]=i}return s}(t,e,n,new Be(i,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some(i=>Wi(t,e,i))}(t,i,n)){const o=new Be(t.segments,function(t,e,i,n,s,o){const r={};for(const a of n)if(Wi(t,i,a)&&!s[Ui(a)]){const i=new Be([],{});i._sourceSegment=t,i._segmentIndexShift="legacy"===o?t.segments.length:e.length,r[Ui(a)]=i}return Object.assign(Object.assign({},s),r)}(t,e,i,n,t.children,s));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:i}}const o=new Be(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:i}}function Wi(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path}function Ji(t,e,i,n){return!!(Ui(t)===n||n!==Ae&&Wi(e,i,t))&&("**"===t.path||Vi(e,t,i).matched)}function Qi(t,e,i){return 0===e.length&&!t.children[i]}class Xi{constructor(t){this.segmentGroup=t||null}}class tn{constructor(t){this.urlTree=t}}function en(t){return new Ct.y(e=>e.error(new Xi(t)))}function nn(t){return new Ct.y(e=>e.error(new tn(t)))}function sn(t){return new Ct.y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class on{constructor(t,e,i,n,o){this.configLoader=e,this.urlSerializer=i,this.urlTree=n,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(s.h0i)}apply(){const t=$i(this.urlTree.root,[],[],this.config).segmentGroup,e=new Be(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,Ae).pipe((0,Dt.U)(t=>this.createUrlTree(rn(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Ft.K)(t=>{if(t instanceof tn)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Xi)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,Ae).pipe((0,Dt.U)(e=>this.createUrlTree(rn(e),t.queryParams,t.fragment))).pipe((0,Ft.K)(t=>{if(t instanceof Xi)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const n=t.segments.length>0?new Be([],{[Ae]:t}):t;return new Ye(n,e,i)}expandSegmentGroup(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe((0,Dt.U)(t=>new Be([],t))):this.expandSegment(t,i,e,i.segments,n,!0)}expandChildren(t,e,i){const n=[];for(const s of Object.keys(i.children))"primary"===s?n.unshift(s):n.push(s);return(0,yt.D)(n).pipe((0,Nt.b)(n=>{const s=i.children[n],o=Zi(e,n);return this.expandSegmentGroup(t,o,s,n).pipe((0,Dt.U)(t=>({segment:t,outlet:n})))}),Yt((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const i=arguments.length>=2;return n=>n.pipe(t?(0,wt.h)((e,i)=>t(e,i,n)):$t.y,qt(1),i?(0,Vt.d)(e):(0,Gt.T)(()=>new St.K))}())}expandSegment(t,e,i,n,s,o){return(0,yt.D)(i).pipe((0,Nt.b)(r=>this.expandSegmentAgainstRoute(t,e,i,r,n,s,o).pipe((0,Ft.K)(t=>{if(t instanceof Xi)return(0,bt.of)(null);throw t}))),(0,Wt.P)(t=>!!t),(0,Ft.K)((t,i)=>{if(t instanceof St.K||"EmptyError"===t.name){if(Qi(e,n,s))return(0,bt.of)(new Be([],{}));throw new Xi(e)}throw t}))}expandSegmentAgainstRoute(t,e,i,n,s,o,r){return Ji(n,e,s,o)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,s,o):r&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o):en(e):en(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,n){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?nn(s):this.lineralizeSegments(i,s).pipe((0,Jt.zg)(i=>{const s=new Be(i,{});return this.expandSegment(t,s,e,i,n,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o){const{matched:r,consumedSegments:a,lastChild:c,positionalParamSegments:u}=Vi(e,n,s);if(!r)return en(e);const l=this.applyRedirectCommands(a,n.redirectTo,u);return n.redirectTo.startsWith("/")?nn(l):this.lineralizeSegments(n,l).pipe((0,Jt.zg)(n=>this.expandSegment(t,e,i,n.concat(s.slice(c)),o,!1)))}matchSegmentAgainstRoute(t,e,i,n,s){if("**"===i.path)return i.loadChildren?(i._loadedConfig?(0,bt.of)(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe((0,Dt.U)(t=>(i._loadedConfig=t,new Be(n,{})))):(0,bt.of)(new Be(n,{}));const{matched:o,consumedSegments:r,lastChild:a}=Vi(e,i,n);if(!o)return en(e);const c=n.slice(a);return this.getChildConfig(t,i,n).pipe((0,Jt.zg)(t=>{const n=t.module,o=t.routes,{segmentGroup:a,slicedSegments:u}=$i(e,r,c,o),l=new Be(a.segments,a.children);if(0===u.length&&l.hasChildren())return this.expandChildren(n,o,l).pipe((0,Dt.U)(t=>new Be(r,t)));if(0===o.length&&0===u.length)return(0,bt.of)(new Be(r,{}));const h=Ui(i)===s;return this.expandSegment(n,l,o,u,h?Ae:s,!0).pipe((0,Dt.U)(t=>new Be(r.concat(t.segments),t.children)))}))}getChildConfig(t,e,i){return e.children?(0,bt.of)(new Ii(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?(0,bt.of)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe((0,Jt.zg)(i=>i?this.configLoader.load(t.injector,e).pipe((0,Dt.U)(t=>(e._loadedConfig=t,t))):function(t){return new Ct.y(e=>e.error(Te(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):(0,bt.of)(new Ii([],t))}runCanLoadGuards(t,e,i){const n=e.canLoad;if(!n||0===n.length)return(0,bt.of)(!0);const s=n.map(n=>{const s=t.get(n);let o;if(function(t){return t&&Oi(t.canLoad)}(s))o=s.canLoad(e,i);else{if(!Oi(s))throw new Error("Invalid CanLoad guard");o=s(e,i)}return Re(o)});return(0,bt.of)(s).pipe(Bi(),(0,Qt.b)(t=>{if(!Hi(t))return;const e=Te(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),(0,Dt.U)(t=>!0===t))}lineralizeSegments(t,e){let i=[],n=e.root;for(;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return(0,bt.of)(i);if(n.numberOfChildren>1||!n.children.primary)return sn(t.redirectTo);n=n.children.primary}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,n){const s=this.createSegmentGroup(t,e.root,i,n);return new Ye(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return xe(t,(t,n)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);i[n]=e[s]}else i[n]=t}),i}createSegmentGroup(t,e,i,n){const s=this.createSegments(t,e.segments,i,n);let o={};return xe(e.children,(e,s)=>{o[s]=this.createSegmentGroup(t,e,i,n)}),new Be(s,o)}createSegments(t,e,i,n){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,n):this.findOrReturn(e,i))}findPosParam(t,e,i){const n=i[e.path.substring(1)];if(!n)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return n}findOrReturn(t,e){let i=0;for(const n of e){if(n.path===t.path)return e.splice(i),n;i++}return t}}function rn(t){const e={};for(const i of Object.keys(t.children)){const n=rn(t.children[i]);(n.segments.length>0||n.hasChildren())&&(e[i]=n)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new Be(t.segments.concat(e.segments),e.children)}return t}(new Be(t.segments,e))}class an{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class cn{constructor(t,e){this.component=t,this.route=e}}function un(t,e,i){const n=t._root;return hn(n,e?e._root:null,i,[n.value])}function ln(t,e,i){const n=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(n?n.module.injector:i).get(t)}function hn(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=ci(e);return t.children.forEach(t=>{!function(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,r=e?e.value:null,a=i?i.getContext(t.value.outlet):null;if(r&&o.routeConfig===r.routeConfig){const c=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!Fe(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Fe(t.url,e.url)||!Se(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!wi(t,e)||!Se(t.queryParams,e.queryParams);case"paramsChange":default:return!wi(t,e)}}(r,o,o.routeConfig.runGuardsAndResolvers);c?s.canActivateChecks.push(new an(n)):(o.data=r.data,o._resolvedData=r._resolvedData),hn(t,e,o.component?a?a.children:null:i,n,s),c&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new cn(a.outlet.component,r))}else r&&dn(e,a,s),s.canActivateChecks.push(new an(n)),hn(t,null,o.component?a?a.children:null:i,n,s)}(t,o[t.value.outlet],i,n.concat([t.value]),s),delete o[t.value.outlet]}),xe(o,(t,e)=>dn(t,i.getContext(e),s)),s}function dn(t,e,i){const n=ci(t),s=t.value;xe(n,(t,n)=>{dn(t,s.component?e?e.children.getContext(n):null:e,i)}),i.canDeactivateChecks.push(new cn(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class pn{}function fn(t){return new Ct.y(e=>e.error(t))}class gn{constructor(t,e,i,n,s,o){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=n,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=o}recognize(){const t=$i(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,Ae);if(null===e)return null;const i=new pi([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ae,this.rootComponentType,null,this.urlTree.root,-1,{}),n=new ai(i,e),s=new fi(this.url,n);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,i=di(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=[];for(const s of Object.keys(e.children)){const n=e.children[s],o=Zi(t,s),r=this.processSegmentGroup(o,n,s);if(null===r)return null;i.push(...r)}const n=_n(i);return n.sort((t,e)=>t.value.outlet===Ae?-1:e.value.outlet===Ae?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,i,n){for(const s of t){const t=this.processSegmentAgainstRoute(s,e,i,n);if(null!==t)return t}return Qi(e,i,n)?[]:null}processSegmentAgainstRoute(t,e,i,n){if(t.redirectTo||!Ji(t,e,i,n))return null;let s,o=[],r=[];if("**"===t.path){const n=i.length>0?Le(i).parameters:{};s=new pi(i,n,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,bn(t),Ui(t),t.component,t,wn(e),yn(e)+i.length,An(t))}else{const n=Vi(e,t,i);if(!n.matched)return null;o=n.consumedSegments,r=i.slice(n.lastChild),s=new pi(o,n.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,bn(t),Ui(t),t.component,t,wn(e),yn(e)+o.length,An(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:u}=$i(e,o,r,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===u.length&&c.hasChildren()){const t=this.processChildren(a,c);return null===t?null:[new ai(s,t)]}if(0===a.length&&0===u.length)return[new ai(s,[])];const l=Ui(t)===n,h=this.processSegment(a,c,u,l?Ae:n);return null===h?null:[new ai(s,h)]}}function mn(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function _n(t){const e=[],i=new Set;for(const n of t){if(!mn(n)){e.push(n);continue}const t=e.find(t=>n.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...n.children),i.add(t)):e.push(n)}for(const n of i){const t=_n(n.children);e.push(new ai(n.value,t))}return e.filter(t=>!i.has(t))}function wn(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function yn(t){let e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,i+=e._segmentIndexShift?e._segmentIndexShift:0;return i-1}function bn(t){return t.data||{}}function An(t){return t.resolve||{}}function vn(t){return(0,zt.w)(e=>{const i=t(e);return i?(0,yt.D)(i).pipe((0,Dt.U)(()=>e)):(0,bt.of)(e)})}class kn extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const Tn=new s.OlP("ROUTES");class Cn{constructor(t,e,i,n){this.loader=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=n}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const i=this.loadModuleFactory(e.loadChildren).pipe((0,Dt.U)(i=>{this.onLoadEndListener&&this.onLoadEndListener(e);const n=i.create(t);return new Ii(Ee(n.injector.get(Tn,void 0,s.XFs.Self|s.XFs.Optional)).map(qi),n)}),(0,Ft.K)(t=>{throw e._loader$=void 0,t}));return e._loader$=new Rt.c(i,()=>new At.xQ).pipe((0,Xt.x)()),e._loader$}loadModuleFactory(t){return"string"==typeof t?(0,yt.D)(this.loader.load(t)):Re(t()).pipe((0,Jt.zg)(t=>t instanceof s.YKP?(0,bt.of)(t):(0,yt.D)(this.compiler.compileModuleAsync(t))))}}class Sn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Mn,this.attachRef=null}}class Mn{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new Sn,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class En{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Ln(t){throw t}function xn(t,e,i){return e.parse("/")}function Rn(t,e){return(0,bt.of)(null)}const Dn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},zn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Pn=(()=>{class t{constructor(t,e,i,n,o,r,a,c){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=i,this.location=n,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new At.xQ,this.errorHandler=Ln,this.malformedUriErrorHandler=xn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Rn,afterPreactivation:Rn},this.urlHandlingStrategy=new En,this.routeReuseStrategy=new kn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(s.h0i),this.console=o.get(s.c2e);const u=o.get(s.R0b);this.isNgZoneEnabled=u instanceof s.R0b&&s.R0b.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new Ye(new Be([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Cn(r,a,t=>this.triggerEvent(new fe(t)),t=>this.triggerEvent(new ge(t))),this.routerState=li(this.currentUrlTree,this.rootComponentType),this.transitions=new kt({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()}setupNavigations(t){const e=this.events;return t.pipe((0,wt.h)(t=>0!==t.id),(0,Dt.U)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),(0,zt.w)(t=>{let i=!1,n=!1;return(0,bt.of)(t).pipe((0,Qt.b)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,zt.w)(t=>{const i=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return(0,bt.of)(t).pipe((0,zt.w)(t=>{const i=this.transitions.getValue();return e.next(new oe(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==this.transitions.getValue()?Lt.E:Promise.resolve(t)}),(n=this.ngModule.injector,s=this.configLoader,o=this.urlSerializer,r=this.config,(0,zt.w)(t=>function(t,e,i,n,s){return new on(t,e,i,n,s).apply()}(n,s,o,t.extractedUrl,r).pipe((0,Dt.U)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e}))))),(0,Qt.b)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,i,n,s){return(0,Jt.zg)(o=>function(t,e,i,n,s="emptyOnly",o="legacy"){try{const r=new gn(t,e,i,n,s,o).recognize();return null===r?fn(new pn):(0,bt.of)(r)}catch(r){return fn(r)}}(t,e,o.urlAfterRedirects,i(o.urlAfterRedirects),n,s).pipe((0,Dt.U)(t=>Object.assign(Object.assign({},o),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Qt.b)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const i=new ue(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(i)}));var n,s,o,r;if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:i,extractedUrl:n,source:s,restoredState:o,extras:r}=t,a=new oe(i,this.serializeUrl(n),s,o);e.next(a);const c=li(n,this.rootComponentType).snapshot;return(0,bt.of)(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:n,extras:Object.assign(Object.assign({},r),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Lt.E}),vn(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:o,replaceUrl:r}}=t;return this.hooks.beforePreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!r})}),(0,Qt.b)(t=>{const e=new le(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,Dt.U)(t=>Object.assign(Object.assign({},t),{guards:un(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return(0,Jt.zg)(i=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:o,canDeactivateChecks:r}}=i;return 0===r.length&&0===o.length?(0,bt.of)(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return(0,yt.D)(t).pipe((0,Jt.zg)(t=>function(t,e,i,n,s){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return(0,bt.of)(!0);const r=o.map(o=>{const r=ln(o,e,s);let a;if(function(t){return t&&Oi(t.canDeactivate)}(r))a=Re(r.canDeactivate(t,e,i,n));else{if(!Oi(r))throw new Error("Invalid CanDeactivate guard");a=Re(r(t,e,i,n))}return a.pipe((0,Wt.P)())});return(0,bt.of)(r).pipe(Bi())}(t.component,t.route,i,e,n)),(0,Wt.P)(t=>!0!==t,!0))}(r,n,s,t).pipe((0,Jt.zg)(i=>i&&"boolean"==typeof i?function(t,e,i,n){return(0,yt.D)(e).pipe((0,Nt.b)(e=>Et(function(t,e){return null!==t&&e&&e(new me(t)),(0,bt.of)(!0)}(e.route.parent,n),function(t,e){return null!==t&&e&&e(new we(t)),(0,bt.of)(!0)}(e.route,n),function(t,e,i){const n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>xt(()=>{const s=e.guards.map(s=>{const o=ln(s,e.node,i);let r;if(function(t){return t&&Oi(t.canActivateChild)}(o))r=Re(o.canActivateChild(n,t));else{if(!Oi(o))throw new Error("Invalid CanActivateChild guard");r=Re(o(n,t))}return r.pipe((0,Wt.P)())});return(0,bt.of)(s).pipe(Bi())}));return(0,bt.of)(s).pipe(Bi())}(t,e.path,i),function(t,e,i){const n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||0===n.length)return(0,bt.of)(!0);const s=n.map(n=>xt(()=>{const s=ln(n,e,i);let o;if(function(t){return t&&Oi(t.canActivate)}(s))o=Re(s.canActivate(e,t));else{if(!Oi(s))throw new Error("Invalid CanActivate guard");o=Re(s(e,t))}return o.pipe((0,Wt.P)())}));return(0,bt.of)(s).pipe(Bi())}(t,e.route,i))),(0,Wt.P)(t=>!0!==t,!0))}(n,o,t,e):(0,bt.of)(i)),(0,Dt.U)(t=>Object.assign(Object.assign({},i),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),(0,Qt.b)(t=>{if(Hi(t.guardsResult)){const e=Te(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new he(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),(0,wt.h)(t=>!!t.guardsResult||(this.cancelNavigationTransition(t,""),!1)),vn(t=>{if(t.guards.canActivateChecks.length)return(0,bt.of)(t).pipe((0,Qt.b)(t=>{const e=new de(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,zt.w)(t=>{let e=!1;return(0,bt.of)(t).pipe((i=this.paramsInheritanceStrategy,n=this.ngModule.injector,(0,Jt.zg)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:s}}=t;if(!s.length)return(0,bt.of)(t);let o=0;return(0,yt.D)(s).pipe((0,Nt.b)(t=>function(t,e,i,n){return function(t,e,i,n){const s=Object.keys(t);if(0===s.length)return(0,bt.of)({});const o={};return(0,yt.D)(s).pipe((0,Jt.zg)(s=>function(t,e,i,n){const s=ln(t,e,n);return Re(s.resolve?s.resolve(e,i):s(e,i))}(t[s],e,i,n).pipe((0,Qt.b)(t=>{o[s]=t}))),qt(1),(0,Jt.zg)(()=>Object.keys(o).length===s.length?(0,bt.of)(o):Lt.E))}(t._resolve,t,e,n).pipe((0,Dt.U)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),di(t,i).resolve),null)))}(t.route,e,i,n)),(0,Qt.b)(()=>o++),qt(1),(0,Jt.zg)(e=>o===s.length?(0,bt.of)(t):Lt.E))})),(0,Qt.b)({next:()=>e=!0,complete:()=>{e||this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value.")}}));var i,n}),(0,Qt.b)(t=>{const e=new pe(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),vn(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:o,replaceUrl:r}}=t;return this.hooks.afterPreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!r})}),(0,Dt.U)(t=>{const e=function(t,e,i){const n=yi(t,e._root,i?i._root:void 0);return new ui(n,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),(0,Qt.b)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,o=this.routeReuseStrategy,r=t=>this.triggerEvent(t),(0,Dt.U)(t=>(new zi(o,t.targetRouterState,t.currentRouterState,r).activate(s),t))),(0,Qt.b)({next(){i=!0},complete(){i=!0}}),ee(()=>{i||n||this.cancelNavigationTransition(t,`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`),this.currentNavigation=null}),(0,Ft.K)(i=>{if(n=!0,(s=i)&&s.ngNavigationCancelingError){const n=Hi(i.url);n||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new ae(t.id,this.serializeUrl(t.extractedUrl),i.message);e.next(s),n?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(i.url,this.rawUrlTree);this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const n=new ce(t.id,this.serializeUrl(t.extractedUrl),i);e.next(n);try{t.resolve(this.errorHandler(i))}catch(o){t.reject(o)}}var s;return Lt.E}));var s,o,r}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:i,urlTree:n}=e,s={replaceUrl:!0};if(i){const t=Object.assign({},i);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(n,t,i,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const i=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&i&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Fi(t),this.config=t.map(qi),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(t,e={}){const{relativeTo:i,queryParams:n,fragment:s,queryParamsHandling:o,preserveFragment:r}=e,a=i||this.routerState.root,c=r?this.currentUrlTree.fragment:s;let u=null;switch(o){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=n||null}return null!==u&&(u=this.removeEmptyProps(u)),function(t,e,i,n,s){if(0===i.length)return ki(e.root,e.root,e,n,s);const o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Ci(!0,0,t);let e=0,i=!1;const n=t.reduce((t,n,s)=>{if("object"==typeof n&&null!=n){if(n.outlets){const e={};return xe(n.outlets,(t,i)=>{e[i]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(n.segmentPath)return[...t,n.segmentPath]}return"string"!=typeof n?[...t,n]:0===s?(n.split("/").forEach((n,s)=>{0==s&&"."===n||(0==s&&""===n?i=!0:".."===n?e++:""!=n&&t.push(n))}),t):[...t,n]},[]);return new Ci(i,e,n)}(i);if(o.toRoot())return ki(e.root,new Be([],{}),e,n,s);const r=function(t,e,i){if(t.isAbsolute)return new Si(e.root,!0,0);if(-1===i.snapshot._lastPathIndex){const t=i.snapshot._urlSegment;return new Si(t,t===e.root,0)}const n=Ai(t.commands[0])?0:1;return function(t,e,i){let n=t,s=e,o=i;for(;o>s;){if(o-=s,n=n.parent,!n)throw new Error("Invalid number of '../'");s=n.segments.length}return new Si(n,!1,s-o)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(o,e,t),a=r.processChildren?Ei(r.segmentGroup,r.index,o.commands):Mi(r.segmentGroup,r.index,o.commands);return ki(r.segmentGroup,a,e,n,s)}(a,this.currentUrlTree,t,u,null!=c?c:null)}navigateByUrl(t,e={skipLocationChange:!1}){const i=Hi(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree);let s=null;return"computed"===this.canceledNavigationResolution&&(0===this.currentPageId||e.skipLocationChange||e.replaceUrl)&&(s=this.location.getState()),this.scheduleNavigation(n,"imperative",s,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const n=t[i];return null!=n&&(e[i]=n),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new re(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,i,n,s){if(this.disposed)return Promise.resolve(!1);const o=this.getTransition(),r="imperative"!==e&&"imperative"===(null==o?void 0:o.source),a=(this.lastSuccessfulId===o.id||this.currentNavigation?o.rawUrl:o.urlAfterRedirects).toString()===t.toString();if(r&&a)return Promise.resolve(!0);let c,u,l;s?(c=s.resolve,u=s.reject,l=s.promise):l=new Promise((t,e)=>{c=t,u=e});const h=++this.navigationId;let d;return d="computed"===this.canceledNavigationResolution?i&&i.\u0275routerPageId?i.\u0275routerPageId:this.currentPageId+1:0,this.setTransition({id:h,targetPageId:d,source:e,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const i=this.urlSerializer.serialize(t),n=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(i)||e.extras.replaceUrl?this.location.replaceState(i,"",n):this.location.go(i,"",n)}resetStateAndUrl(t,e,i){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){"computed"===this.canceledNavigationResolution?"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy||this.location.historyGo(this.currentPageId-t.targetPageId):this.resetUrlToCurrentUrlTree();const i=new ae(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(i),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.DyG),s.LFG(Ne),s.LFG(Mn),s.LFG(n.Ye),s.LFG(s.zs3),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),In=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new At.xQ,null==i&&n.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:Hn(this.skipLocationChange),replaceUrl:Hn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Hn(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Pn),s.Y36(hi),s.$8M("tabindex"),s.Y36(s.Qsj),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.TTD]}),t})(),On=(()=>{class t{constructor(t,e,i){this.router=t,this.route=e,this.locationStrategy=i,this.commands=[],this.onChanges=new At.xQ,this.subscription=t.events.subscribe(t=>{t instanceof re&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,i,n,s){if(0!==t||e||i||n||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const o={skipLocationChange:Hn(this.skipLocationChange),replaceUrl:Hn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Hn(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Pn),s.Y36(hi),s.Y36(n.S$))},t.\u0275dir=s.lG2({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(s.Ikx("href",e.href,s.LSH),s.uIk("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.TTD]}),t})();function Hn(t){return""===t||!!t}let Yn=(()=>{class t{constructor(t,e,i,n,o){this.parentContexts=t,this.location=e,this.resolver=i,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.vpe,this.deactivateEvents=new s.vpe,this.name=n||Ae,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const i=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,s=new Bn(t,n,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Mn),s.Y36(s.s_b),s.Y36(s._Vd),s.$8M("name"),s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Bn{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===hi?this.route:t===Mn?this.childContexts:this.parent.get(t,e)}}class jn{}class Fn{preload(t,e){return(0,bt.of)(null)}}let Nn=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.injector=n,this.preloadingStrategy=s,this.loader=new Cn(e,i,e=>t.triggerEvent(new fe(e)),e=>t.triggerEvent(new ge(e)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,wt.h)(t=>t instanceof re),(0,Nt.b)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(s.h0i);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const i=[];for(const n of e)if(n.loadChildren&&!n.canLoad&&n._loadedConfig){const t=n._loadedConfig;i.push(this.processRoutes(t.module,t.routes))}else n.loadChildren&&!n.canLoad?i.push(this.preloadConfig(t,n)):n.children&&i.push(this.processRoutes(t,n.children));return(0,yt.D)(i).pipe((0,Mt.J)(),(0,Dt.U)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?(0,bt.of)(e._loadedConfig):this.loader.load(t.injector,e)).pipe((0,Jt.zg)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Pn),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(s.zs3),s.LFG(jn))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Kn=(()=>{class t{constructor(t,e,i={}){this.router=t,this.viewportScroller=e,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.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(t=>{t instanceof oe?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof re&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof be&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new be(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Pn),s.LFG(n.EM),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const qn=new s.OlP("ROUTER_CONFIGURATION"),Un=new s.OlP("ROUTER_FORROOT_GUARD"),Zn=[n.Ye,{provide:Ne,useClass:Ke},{provide:Pn,useFactory:function(t,e,i,n,s,o,r,a={},c,u){const l=new Pn(null,t,e,i,n,s,o,Ee(r));return c&&(l.urlHandlingStrategy=c),u&&(l.routeReuseStrategy=u),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,l),a.enableTracing&&l.events.subscribe(t=>{var e,i;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(i=console.groupEnd)||void 0===i||i.call(console)}),l},deps:[Ne,Mn,n.Ye,s.zs3,s.v3s,s.Sil,Tn,qn,[class{},new s.FiY],[class{},new s.FiY]]},Mn,{provide:hi,useFactory:function(t){return t.routerState.root},deps:[Pn]},{provide:s.v3s,useClass:s.EAV},Nn,Fn,class{preload(t,e){return e().pipe((0,Ft.K)(()=>(0,bt.of)(null)))}},{provide:qn,useValue:{enableTracing:!1}}];function Gn(){return new s.PXZ("Router",Pn)}let Vn=(()=>{class t{constructor(t,e){}static forRoot(e,i){return{ngModule:t,providers:[Zn,Qn(e),{provide:Un,useFactory:Jn,deps:[[Pn,new s.FiY,new s.tp0]]},{provide:qn,useValue:i||{}},{provide:n.S$,useFactory:Wn,deps:[n.lw,[new s.tBr(n.mr),new s.FiY],qn]},{provide:Kn,useFactory:$n,deps:[Pn,n.EM,qn]},{provide:jn,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:Fn},{provide:s.PXZ,multi:!0,useFactory:Gn},[Xn,{provide:s.ip1,multi:!0,useFactory:ts,deps:[Xn]},{provide:is,useFactory:es,deps:[Xn]},{provide:s.tb,multi:!0,useExisting:is}]]}}static forChild(e){return{ngModule:t,providers:[Qn(e)]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Un,8),s.LFG(Pn,8))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();function $n(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new Kn(t,e,i)}function Wn(t,e,i={}){return i.useHash?new n.Do(t,e):new n.b0(t,e)}function Jn(t){return"guarded"}function Qn(t){return[{provide:s.deG,multi:!0,useValue:t},{provide:Tn,multi:!0,useValue:t}]}let Xn=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new At.xQ}appInitializer(){return this.injector.get(n.V_,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),i=this.injector.get(Pn),n=this.injector.get(qn);return"disabled"===n.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===n.initialNavigation||"enabledBlocking"===n.initialNavigation?(i.hooks.afterPreactivation=()=>this.initNavigation?(0,bt.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),i.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(qn),i=this.injector.get(Nn),n=this.injector.get(Kn),o=this.injector.get(Pn),r=this.injector.get(s.z2F);t===r.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||o.initialNavigation(),i.setUpPreloading(),n.init(),o.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function ts(t){return t.appInitializer.bind(t)}function es(t){return t.bootstrapListener.bind(t)}const is=new s.OlP("Router Initializer");let ns=(()=>{class t{constructor(){this.branding=""}setInstanceConfig(t){this.instanceConfig=t}setDefaultConfig(t){this.defaultConfig=t}getAppsConfig(){return this.appsConfig}setAppsConfig(t){this.appsConfig=t}setPerunPrincipal(t){this.principal=t}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(t){this.initialPageId=t}getLoginAttributeNames(){return this.get("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.get("member_profile_attributes_friendly_names")}setBanding(t){this.branding=t}skipOidc(){return this.get("skip_oidc")}get(...t){let e;if(""!==this.branding){const i=this.instanceConfig.brandings[this.branding];for(let n=0;n(0,ls.k)(t)?n(...t):n(t))):new Ct.y(n=>{ps(t,e,function(t){n.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},n,i)})}function ps(t,e,i,n,s){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const n=t;t.addEventListener(e,i,s),o=()=>n.removeEventListener(e,i,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const n=t;t.on(e,i),o=()=>n.off(e,i)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const n=t;t.addListener(e,i),o=()=>n.removeListener(e,i)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,r=t.length;o0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}var ms=i(1098);class _s extends ms.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++nPromise.resolve())(),As={};function vs(t){return t in As&&(delete As[t],!0)}const ks={setImmediate(t){const e=ys++;return As[e]=!0,bs.then(()=>vs(e)&&t()),e},clearImmediate(t){vs(t)}};class Ts extends fs.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=ks.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(ks.clearImmediate(e),t.scheduled=void 0)}}class Cs extends ms.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++ni.lift(new Ls(t,e))}class Ls{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new xs(t,this.compare,this.keySelector))}}class xs extends Ht.L{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:i}=this;e=i?i(t):t}catch(n){return this.destination.error(n)}let i=!1;if(this.hasKey)try{const{compare:t}=this;i=t(this.key,e)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}var Rs=i(8569),Ds=i(9829),zs=i(6268);class Ps{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new Is(t,this.durationSelector))}}class Is extends Ds.L{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let i;try{const{durationSelector:e}=this;i=e(t)}catch(e){return this.destination.error(e)}const n=(0,zs.D)(this,i);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=null,i.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,i,n){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Os(t){return!(0,ls.k)(t)&&t-parseFloat(t)+1>=0}function Hs(t=0,e,i){let n=-1;return Os(e)?n=Number(e)<1?1:Number(e):(0,It.K)(e)&&(i=e),(0,It.K)(i)||(i=Rs.P),new Ct.y(e=>{const s=Os(t)?t:+t-i.now();return i.schedule(Ys,s,{index:0,period:n,subscriber:e})})}function Ys(t){const{index:e,period:i,subscriber:n}=t;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}}function Bs(t,e=Rs.P){return i=()=>Hs(t,e),function(t){return t.lift(new Ps(i))};var i}function js(t){return e=>e.lift(new Fs(t))}class Fs{constructor(t){this.notifier=t}call(t,e){const i=new Ns(t),n=(0,zs.D)(i,this.notifier);return n&&!i.seenValue?(i.add(n),e.subscribe(i)):i}}class Ns extends Ds.L{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,i,n,s){this.seenValue=!0,this.complete()}notifyComplete(){}}class Ks extends fs.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}class qs extends ms.v{}const Us=new qs(Ks);var Zs=i(3103);class Gs extends Ht.L{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(Gs.dispatch,this.delay,new Vs(t,this.destination)))}_next(t){this.scheduleMessage(Zs.P.createNext(t))}_error(t){this.scheduleMessage(Zs.P.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(Zs.P.createComplete()),this.unsubscribe()}}class Vs{constructor(t,e){this.notification=t,this.destination=e}}var $s=i(9291);class Ws extends At.xQ{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new Js(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),n=this.scheduler,s=i.length;let o;if(this.closed)throw new vt.N;if(this.isStopped||this.hasError?o=te.w.EMPTY:(this.observers.push(t),o=new $s.W(this,t)),n&&t.add(t=new Gs(t,n)),e)for(let r=0;re&&(o=Math.max(o,s-e)),o>0&&n.splice(0,o),n}}class Js{constructor(t,e){this.time=t,this.value=e}}function Qs(t,e,i){let n;return n=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:i},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:i,scheduler:n}){let s,o,r=0,a=!1,c=!1;return function(u){r++,s&&!a||(a=!1,s=new Ws(t,e,n),o=u.subscribe({next(t){s.next(t)},error(t){a=!0,s.error(t)},complete(){c=!0,o=void 0,s.complete()}}));const l=s.subscribe(this);this.add(()=>{r--,l.unsubscribe(),o&&!c&&i&&0===r&&(o.unsubscribe(),o=void 0,s=void 0)})}}(n))}let Xs;try{Xs="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(Ix){Xs=!1}let to,eo=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?(0,n.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&&!Xs)&&"undefined"!=typeof CSS&&!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 t.\u0275fac=function(e){return new(e||t)(s.LFG(s.Lbi))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.Lbi))},token:t,providedIn:"root"}),t})(),io=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();const no=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function so(){if(to)return to;if("object"!=typeof document||!document)return to=new Set(no),to;let t=document.createElement("input");return to=new Set(no.filter(e=>(t.setAttribute("type",e),t.type===e))),to}let oo,ro,ao,co;function uo(t){return function(){if(null==oo&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>oo=!0}))}finally{oo=oo||!1}return oo}()?t:!!t.capture}function lo(){if(null==ao){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return ao=!1,ao;if("scrollBehavior"in document.documentElement.style)ao=!0;else{const t=Element.prototype.scrollTo;ao=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return ao}function ho(){if("object"!=typeof document||!document)return 0;if(null==ro){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",t.appendChild(i),document.body.appendChild(t),ro=0,0===t.scrollLeft&&(t.scrollLeft=1,ro=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return ro}function po(t){if(function(){if(null==co){const t="undefined"!=typeof document?document.head:null;co=!(!t||!t.createShadowRoot&&!t.attachShadow)}return co}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function fo(){let t="undefined"!=typeof document&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}const go=new s.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,s.f3M)(n.K0)}});let mo=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new s.vpe,t){const e=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||e;this.value="ltr"===i||"rtl"===i?i:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(go,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(go,8))},token:t,providedIn:"root"}),t})(),_o=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();function wo(t){return t&&"function"==typeof t.connect}class yo{applyChanges(t,e,i,n,s){t.forEachOperation((t,n,o)=>{let r,a;if(null==t.previousIndex){const s=i(t,n,o);r=e.createEmbeddedView(s.templateRef,s.context,s.index),a=1}else null==o?(e.remove(n),a=3):(r=e.get(n),e.move(r,o),a=2);s&&s({context:null==r?void 0:r.context,operation:a,record:t})})}detach(){}}class bo{constructor(t=!1,e,i=!0){this._multiple=t,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new At.xQ,e&&e.length&&(t?e.forEach(t=>this._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}let Ao=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let i of this._listeners)i(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const vo=new s.OlP("_ViewRepeater");let ko=(()=>{class t{constructor(t,e,i){this._ngZone=t,this._platform=e,this._scrolled=new At.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new Ct.y(e=>{this._globalSubscription||this._addGlobalListener();const i=t>0?this._scrolled.pipe(Bs(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,bt.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe((0,wt.h)(t=>!t||i.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((i,n)=>{this._scrollableContainsElement(n,t)&&e.push(n)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let i=us(e),n=t.getElementRef().nativeElement;do{if(i==n)return!0}while(i=i.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>ds(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(eo),s.LFG(n.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(eo),s.LFG(n.K0,8))},token:t,providedIn:"root"}),t})(),To=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=i,this.dir=n,this._destroyed=new At.xQ,this._elementScrolled=new Ct.y(t=>this.ngZone.runOutsideAngular(()=>ds(this.elementRef.nativeElement,"scroll").pipe(js(this._destroyed)).subscribe(t)))}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(t){const e=this.elementRef.nativeElement,i=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=i?t.end:t.start),null==t.right&&(t.right=i?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),i&&0!=ho()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==ho()?t.left=t.right:1==ho()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const e=this.elementRef.nativeElement;lo()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e="left",i="right",n=this.elementRef.nativeElement;if("top"==t)return n.scrollTop;if("bottom"==t)return n.scrollHeight-n.clientHeight-n.scrollTop;const s=this.dir&&"rtl"==this.dir.value;return"start"==t?t=s?i:e:"end"==t&&(t=s?e:i),s&&2==ho()?t==e?n.scrollWidth-n.clientWidth-n.scrollLeft:n.scrollLeft:s&&1==ho()?t==e?n.scrollLeft+n.scrollWidth-n.clientWidth:-n.scrollLeft:t==e?n.scrollLeft:n.scrollWidth-n.clientWidth-n.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(ko),s.Y36(s.R0b),s.Y36(mo,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),Co=(()=>{class t{constructor(t,e,i){this._platform=t,this._change=new At.xQ,this._changeListener=t=>{this._change.next(t)},this._document=i,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:i}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+e,height:i,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Bs(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(eo),s.LFG(s.R0b),s.LFG(n.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(eo),s.LFG(s.R0b),s.LFG(n.K0,8))},token:t,providedIn:"root"}),t})(),So=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),Mo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[_o,io,So],_o,So]}),t})();class Eo{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class Lo extends Eo{constructor(t,e,i,n){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=n}}class xo extends Eo{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class Ro extends Eo{constructor(t){super(),this.element=t instanceof s.SBq?t.nativeElement:t}}class Do{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof Lo?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof xo?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof Ro?(this._attachedPortal=t,this.attachDomPortal(t)):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(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class zo extends Do{constructor(t,e,i,n,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=n,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=t,i}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(t=>this.outletElement.appendChild(t)),i.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(i);-1!==t&&e.remove(t)}),this._attachedPortal=t,i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let Po=(()=>{class t extends xo{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc),s.Y36(s.s_b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[s.qOj]}),t})(),Io=(()=>{class t extends Do{constructor(t,e,i){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new s.vpe,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(i,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=i}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),n=e.createComponent(i,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s._Vd),s.Y36(s.s_b),s.Y36(n.K0))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[s.qOj]}),t})(),Oo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();var Ho=i(1906);class Yo{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new Bo(t,this.predicate,this.inclusive))}}class Bo extends Ht.L{constructor(t,e,i){super(t),this.predicate=e,this.inclusive=i,this.index=0}_next(t){const e=this.destination;let i;try{i=this.predicate(t,this.index++)}catch(n){return void e.error(n)}this.nextOrComplete(t,i)}nextOrComplete(t,e){const i=this.destination;Boolean(e)?i.next(t):(this.inclusive&&i.next(t),i.complete())}}const jo=13,Fo=27,No=32,Ko=37,qo=38,Uo=39,Zo=40;function Go(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}const Vo=lo();class $o{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=cs(-this._previousScrollPosition.left),t.style.top=cs(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,i=this._document.body.style,n=e.scrollBehavior||"",s=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),Vo&&(e.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Vo&&(e.scrollBehavior=n,i.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class Wo{constructor(t,e,i,n){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Jo{enable(){}disable(){}attach(){}}function Qo(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function Xo(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class tr{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=n,this._scrollSubscription=null}attach(t){this._overlayRef=t}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 t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:i}=this._viewportRuler.getViewportSize();Qo(t,[{width:e,height:i,bottom:i,right:e,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 er=(()=>{class t{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this.noop=()=>new Jo,this.close=t=>new Wo(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new $o(this._viewportRuler,this._document),this.reposition=t=>new tr(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=n}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(ko),s.LFG(Co),s.LFG(s.R0b),s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(ko),s.LFG(Co),s.LFG(s.R0b),s.LFG(n.K0))},token:t,providedIn:"root"}),t})();class ir{constructor(t){if(this.scrollStrategy=new Jo,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class nr{constructor(t,e,i,n,s){this.offsetX=i,this.offsetY=n,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class sr{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let or=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0))},token:t,providedIn:"root"}),t})(),rr=(()=>{class t extends or{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let i=e.length-1;i>-1;i--)if(e[i]._keydownEvents.observers.length>0){e[i]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0))},token:t,providedIn:"root"}),t})(),ar=(()=>{class t extends or{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,i=this._attachedOverlays.slice();for(let n=i.length-1;n>-1;n--){const s=i[n];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){if(super.add(t),!this._isAttached){const t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),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 t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0),s.LFG(eo))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0),s.LFG(eo))},token:t,providedIn:"root"}),t})();const cr="undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha;let ur=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||cr){const e=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let t=0;tthis._backdropClick.next(t),this._keydownEvents=new At.xQ,this._outsidePointerEvents=new At.xQ,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Pt.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),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 t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),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&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=cs(this._config.width),t.height=cs(this._config.height),t.minWidth=cs(this._config.minWidth),t.minHeight=cs(this._config.minHeight),t.maxWidth=cs(this._config.maxWidth),t.maxHeight=cs(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),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),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const n=t.classList;as(e).forEach(t=>{t&&(i?n.add(t):n.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(js((0,Ho.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._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const hr="cdk-overlay-connected-position-bounding-box",dr=/([A-Za-z%]+)$/;class pr{constructor(t,e,i,n,s){this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=s,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 At.xQ,this._resizeSubscription=te.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(hr),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.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();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,n=[];let s;for(let o of this._preferredPositions){let r=this._getOriginPoint(t,o),a=this._getOverlayPoint(r,e,o),c=this._getOverlayFit(a,e,i,o);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(o,r);this._canFitWithFlexibleDimensions(c,a,i)?n.push({position:o,origin:r,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(r,o)}):(!s||s.overlayFit.visibleAreae&&(e=n,t=i)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&fr(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(hr),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let i,n;if("center"==e.originX)i=t.left+t.width/2;else{const n=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;i="start"==e.originX?n:s}return n="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:n}}_getOverlayPoint(t,e,i){let n,s;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+s}}_getOverlayFit(t,e,i,n){const s=mr(e);let{x:o,y:r}=t,a=this._getOffset(n,"x"),c=this._getOffset(n,"y");a&&(o+=a),c&&(r+=c);let u=0-r,l=r+s.height-i.height,h=this._subtractOverflows(s.width,0-o,o+s.width-i.width),d=this._subtractOverflows(s.height,u,l),p=h*d;return{visibleArea:p,isCompletelyWithinViewport:s.width*s.height===p,fitsInViewportVertically:d===s.height,fitsInViewportHorizontally:h==s.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const n=i.bottom-e.y,s=i.right-e.x,o=gr(this._overlayRef.getConfig().minHeight),r=gr(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=r&&r<=s;return(t.fitsInViewportVertically||null!=o&&o<=n)&&a}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const n=mr(e),s=this._viewportRect,o=Math.max(t.x+n.width-s.width,0),r=Math.max(t.y+n.height-s.height,0),a=Math.max(s.top-i.top-t.y,0),c=Math.max(s.left-i.left-t.x,0);let u=0,l=0;return u=n.width<=s.width?c||-o:t.xn&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-n/2)}if("end"===e.overlayX&&!n||"start"===e.overlayX&&n)u=i.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!n||"end"===e.overlayX&&n)c=t.x,a=i.right-t.x;else{const e=Math.min(i.right-t.x+i.left,t.x),n=this._lastBoundingBoxSize.width;a=2*e,c=t.x-e,a>n&&!this._isInitialRender&&!this._growAfterOpen&&(c=t.x-n/2)}return{top:o,left:c,bottom:r,right:u,width:a,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;n.height=cs(i.height),n.top=cs(i.top),n.bottom=cs(i.bottom),n.width=cs(i.width),n.left=cs(i.left),n.right=cs(i.right),n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(n.maxHeight=cs(t)),s&&(n.maxWidth=cs(s))}this._lastBoundingBoxSize=i,fr(this._boundingBox.style,n)}_resetBoundingBoxStyles(){fr(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){fr(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},n=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(n){const n=this._viewportRuler.getViewportScrollPosition();fr(i,this._getExactOverlayY(e,t,n)),fr(i,this._getExactOverlayX(e,t,n))}else i.position="static";let r="",a=this._getOffset(e,"x"),c=this._getOffset(e,"y");a&&(r+=`translateX(${a}px) `),c&&(r+=`translateY(${c}px)`),i.transform=r.trim(),o.maxHeight&&(n?i.maxHeight=cs(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(n?i.maxWidth=cs(o.maxWidth):s&&(i.maxWidth="")),fr(this._pane.style,i)}_getExactOverlayY(t,e,i){let n={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i));let o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=o,"bottom"===t.overlayY?n.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":n.top=cs(s.y),n}_getExactOverlayX(t,e,i){let n,s={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),n=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===n?s.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":s.left=cs(o.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Xo(t,i),isOriginOutsideView:Qo(t,i),isOverlayClipped:Xo(e,i),isOverlayOutsideView:Qo(e,i)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&as(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof s.SBq)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function fr(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function gr(t){if("number"!=typeof t&&null!=t){const[e,i]=t.split(dr);return i&&"px"!==i?null:parseFloat(e)}return t||null}function mr(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class _r{constructor(t,e,i,n,s,o,r){this._preferredPositions=[],this._positionStrategy=new pr(i,n,s,o,r).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,i,n){const s=new nr(t,e,i,n);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const wr="cdk-global-overlay-wrapper";class yr{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(wr),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:n,height:s,maxWidth:o,maxHeight:r}=i,a=!("100%"!==n&&"100vw"!==n||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||r&&"100%"!==r&&"100vh"!==r);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(wr),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let br=(()=>{class t{constructor(t,e,i,n){this._viewportRuler=t,this._document=e,this._platform=i,this._overlayContainer=n}global(){return new yr}connectedTo(t,e,i){return new _r(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new pr(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Co),s.LFG(n.K0),s.LFG(eo),s.LFG(ur))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Co),s.LFG(n.K0),s.LFG(eo),s.LFG(ur))},token:t,providedIn:"root"}),t})(),Ar=0,vr=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u,l){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=s,this._injector=o,this._ngZone=r,this._document=a,this._directionality=c,this._location=u,this._outsideClickDispatcher=l}create(t){const e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),s=new ir(t);return s.direction=s.direction||this._directionality.value,new lr(n,e,i,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+Ar++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(s.z2F)),new zo(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(er),s.LFG(ur),s.LFG(s._Vd),s.LFG(br),s.LFG(rr),s.LFG(s.zs3),s.LFG(s.R0b),s.LFG(n.K0),s.LFG(mo),s.LFG(n.Ye),s.LFG(ar))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const kr=[{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"}],Tr=new s.OlP("cdk-connected-overlay-scroll-strategy");let Cr=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),Sr=(()=>{class t{constructor(t,e,i,n,o){this._overlay=t,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=te.w.EMPTY,this._attachSubscription=te.w.EMPTY,this._detachSubscription=te.w.EMPTY,this._positionSubscription=te.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new s.vpe,this.positionChange=new s.vpe,this.attach=new s.vpe,this.detach=new s.vpe,this.overlayKeydown=new s.vpe,this.overlayOutsideClick=new s.vpe,this._templatePortal=new xo(e,i),this._scrollStrategyFactory=n,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=ss(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=ss(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=ss(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=ss(t)}get push(){return this._push}set push(t){this._push=ss(t)}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(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=kr);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),t.keyCode!==Fo||this.disableClose||Go(t)||(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new ir({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}_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(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t,e=!1){return i=>i.lift(new Yo(t,e))}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(vr),s.Y36(s.Rgc),s.Y36(s.s_b),s.Y36(Tr),s.Y36(mo,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[s.TTD]}),t})();const Mr={provide:Tr,deps:[vr],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Er=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[vr,Mr],imports:[[_o,Oo,Mo],Mo]}),t})();var Lr=i(7701);let xr=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Rr=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=us(t);return new Ct.y(t=>{const i=this._observeElement(e).subscribe(t);return()=>{i.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new At.xQ,i=this._mutationObserverFactory.create(t=>e.next(t));i&&i.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:i,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:i}=this._observedElements.get(t);e&&e.disconnect(),i.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(xr))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(xr))},token:t,providedIn:"root"}),t})(),Dr=(()=>{class t{constructor(t,e,i){this._contentObserver=t,this._elementRef=e,this._ngZone=i,this.event=new s.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=ss(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=os(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe((0,Lr.b)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Rr),s.Y36(s.SBq),s.Y36(s.R0b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),zr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[xr]}),t})();function Pr(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const Ir="cdk-describedby-message-container",Or="cdk-describedby-host";let Hr=0;const Yr=new Map;let Br=null,jr=(()=>{class t{constructor(t){this._document=t}describe(t,e,i){if(!this._canBeDescribed(t,e))return;const n=Fr(e,i);"string"!=typeof e?(Nr(e),Yr.set(n,{messageElement:e,referenceCount:0})):Yr.has(n)||this._createMessageElement(e,i),this._isElementDescribedByMessage(t,n)||this._addMessageReference(t,n)}removeDescription(t,e,i){if(!e||!this._isElementNode(t))return;const n=Fr(e,i);if(this._isElementDescribedByMessage(t,n)&&this._removeMessageReference(t,n),"string"==typeof e){const t=Yr.get(n);t&&0===t.referenceCount&&this._deleteMessageElement(n)}Br&&0===Br.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const i=Yr.get(e);!function(t,e,i){const n=Pr(t,e);n.some(t=>t.trim()==i.trim())||(n.push(i.trim()),t.setAttribute(e,n.join(" ")))}(t,"aria-describedby",i.messageElement.id),t.setAttribute(Or,""),i.referenceCount++}_removeMessageReference(t,e){const i=Yr.get(e);i.referenceCount--,function(t,e,i){const n=Pr(t,e).filter(t=>t!=i.trim());n.length?t.setAttribute(e,n.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",i.messageElement.id),t.removeAttribute(Or)}_isElementDescribedByMessage(t,e){const i=Pr(t,"aria-describedby"),n=Yr.get(e),s=n&&n.messageElement.id;return!!s&&-1!=i.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const i=null==e?"":`${e}`.trim(),n=t.getAttribute("aria-label");return!(!i||n&&n.trim()===i)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0))},token:t,providedIn:"root"}),t})();function Fr(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function Nr(t){t.id||(t.id="cdk-describedby-message-"+Hr++)}class Kr{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new At.xQ,this._typeaheadSubscription=te.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new At.xQ,this.change=new At.xQ,t instanceof s.n_E&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Qt.b)(t=>this._pressedLetters.push(t)),(0,Lr.b)(t),(0,wt.h)(()=>this._pressedLetters.length>0),(0,Dt.U)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let i=1;i!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case 9:return void this.tabOut.next();case Zo:if(this._vertical&&i){this.setNextItemActive();break}return;case qo:if(this._vertical&&i){this.setPreviousItemActive();break}return;case Uo:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case Ko:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||Go(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.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(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),n=e[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const n=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[n]))return void this.setActiveItem(n)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof s.n_E?this._items.toArray():this._items}}class qr extends Kr{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class Ur extends Kr{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let Zr=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(Ix){return null}}((i=t).ownerDocument&&i.ownerDocument.defaultView||window);var i;if(e){if(-1===Vr(e))return!1;if(!this.isVisible(e))return!1}let n=t.nodeName.toLowerCase(),s=Vr(t);return t.hasAttribute("contenteditable")?-1!==s:"iframe"!==n&&"object"!==n&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),i="input"===e&&t.type;return"text"===i||"password"===i||"select"===e||"textarea"===e}(t))&&("audio"===n?!!t.hasAttribute("controls")&&-1!==s:"video"===n?-1!==s&&(null!==s||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||Gr(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(eo))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(eo))},token:t,providedIn:"root"}),t})();function Gr(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function Vr(t){if(!Gr(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class $r{constructor(t,e,i,n,s=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=n,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),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(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let i=0;i=0;i--){let t=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe((0,Pt.q)(1)).subscribe(t)}}let Wr=(()=>{class t{constructor(t,e,i){this._checker=t,this._ngZone=e,this._document=i}create(t,e=!1){return new $r(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Zr),s.LFG(s.R0b),s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Zr),s.LFG(s.R0b),s.LFG(n.K0))},token:t,providedIn:"root"}),t})(),Jr=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=ss(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=ss(t)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(t){const e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=fo(),this.focusTrap.focusInitialElementWhenReady()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Wr),s.Y36(n.K0))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[s.TTD]}),t})();"undefined"!=typeof Element&∈const Qr=new s.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Xr=new s.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let ta=(()=>{class t{constructor(t,e,i,n){this._ngZone=e,this._defaultOptions=n,this._document=i,this._liveElement=t||this._createLiveElement()}announce(t,...e){const i=this._defaultOptions;let n,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[n,s]=e,this.clear(),clearTimeout(this._previousTimeout),n||(n=i&&i.politeness?i.politeness:"polite"),null==s&&i&&(s=i.duration),this._liveElement.setAttribute("aria-live",n),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t="cdk-live-announcer-element",e=this._document.getElementsByClassName(t),i=this._document.createElement("div");for(let n=0;n{class t{constructor(t,e,i,n){this._elementRef=t,this._liveAnnouncer=e,this._contentObserver=i,this._ngZone=n,this._politeness="polite"}get politeness(){return this._politeness}set politeness(t){this._politeness="off"===t||"assertive"===t?t:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const t=this._elementRef.nativeElement.textContent;t!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(t,this._politeness),this._previousAnnouncedText=t)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(ta),s.Y36(Rr),s.Y36(s.R0b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),t})();function ia(t){return 0===t.buttons}function na(t){const e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}const sa=new s.OlP("cdk-focus-monitor-default-options"),oa=uo({passive:!0,capture:!0});let ra=(()=>{class t{constructor(t,e,i,n){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=ia(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{na(t)?this._lastTouchTarget||this._setOriginForCurrentEventQueue("keyboard"):(null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=aa(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650))},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=aa(t),i="focus"===t.type?this._onFocus:this._onBlur;for(let n=e;n;n=n.parentElement)i.call(this,t,n)},this._document=i,this._detectionMode=(null==n?void 0:n.detectionMode)||0}monitor(t,e=!1){const i=us(t);if(!this._platform.isBrowser||1!==i.nodeType)return(0,bt.of)(null);const n=po(i)||this._getDocument(),s=this._elementInfo.get(i);if(s)return e&&(s.checkChildren=!0),s.subject;const o={checkChildren:e,subject:new At.xQ,rootNode:n};return this._elementInfo.set(i,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(t){const e=us(t),i=this._elementInfo.get(e);i&&(i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(i))}focusVia(t,e,i){const n=us(t);n===this._getDocument().activeElement?this._getClosestElementsInfo(n).forEach(([t,i])=>this._originChanged(t,e,i)):(this._setOriginForCurrentEventQueue(e),"function"==typeof n.focus&&n.focus(i))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,i){i?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=aa(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const i=this._elementInfo.get(e);i&&(i.checkChildren||e===aa(t))&&this._originChanged(e,this._getFocusOrigin(t),i)}_onBlur(t,e){const i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,i=this._rootNodeFocusListenerCount.get(e)||0;i||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,oa),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,oa)}),this._rootNodeFocusListenerCount.set(e,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,oa),t.addEventListener("mousedown",this._documentMousedownListener,oa),t.addEventListener("touchstart",this._documentTouchstartListener,oa),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,oa),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,oa),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,oa),t.removeEventListener("mousedown",this._documentMousedownListener,oa),t.removeEventListener("touchstart",this._documentTouchstartListener,oa),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,i){this._setClasses(t,e),this._emitOrigin(i.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((i,n)=>{(n===t||i.checkChildren&&n.contains(t))&&e.push([n,i])}),e}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(eo),s.LFG(n.K0,8),s.LFG(sa,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(eo),s.LFG(n.K0,8),s.LFG(sa,8))},token:t,providedIn:"root"}),t})();function aa(t){return t.composedPath?t.composedPath()[0]:t.target}let ca=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new s.vpe}ngAfterViewInit(){const t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(ra))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})();const ua="cdk-high-contrast-black-on-white",la="cdk-high-contrast-white-on-black",ha="cdk-high-contrast-active";let da=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,i=e&&e.getComputedStyle?e.getComputedStyle(t):null,n=(i&&i.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),n){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(ha),t.remove(ua),t.remove(la),this._hasCheckedHighContrastMode=!0;const e=this.getHighContrastMode();1===e?(t.add(ha),t.add(ua)):2===e&&(t.add(ha),t.add(la))}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(eo),s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(eo),s.LFG(n.K0))},token:t,providedIn:"root"}),t})(),pa=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(da))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[io,zr]]}),t})();const fa=new s.GfV("12.0.5");class ga{}const ma="*";function _a(t,e){return{type:7,name:t,definitions:e,options:{}}}function wa(t,e=null){return{type:4,styles:e,timings:t}}function ya(t,e=null){return{type:3,steps:t,options:e}}function ba(t,e=null){return{type:2,steps:t,options:e}}function Aa(t){return{type:6,styles:t,offset:null}}function va(t,e,i){return{type:0,name:t,styles:e,options:i}}function ka(t){return{type:5,steps:t}}function Ta(t,e,i=null){return{type:1,expr:t,animation:e,options:i}}function Ca(t=null){return{type:9,options:t}}function Sa(t,e,i=null){return{type:11,selector:t,animation:e,options:i}}function Ma(t){Promise.resolve(null).then(t)}class Ea{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Ma(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class La{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,n=0;const s=this.players.length;0==s?Ma(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++i==s&&this._onDestroy()}),t.onStart(()=>{++n==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function xa(){return"undefined"!=typeof window&&void 0!==window.document}function Ra(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Da(t){switch(t.length){case 0:return new Ea;case 1:return t[0];default:return new La(t)}}function za(t,e,i,n,s={},o={}){const r=[],a=[];let c=-1,u=null;if(n.forEach(t=>{const i=t.offset,n=i==c,l=n&&u||{};Object.keys(t).forEach(i=>{let n=i,a=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,r),a){case"!":a=s[i];break;case ma:a=o[i];break;default:a=e.normalizeStyleValue(i,n,a,r)}l[n]=a}),n||a.push(l),u=l,c=i}),r.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${r.join(t)}`)}return a}function Pa(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&Ia(i,"start",t)));break;case"done":t.onDone(()=>n(i&&Ia(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&Ia(i,"destroy",t)))}}function Ia(t,e,i){const n=i.totalTime,s=Oa(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),o=t._data;return null!=o&&(s._data=o),s}function Oa(t,e,i,n,s="",o=0,r){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:s,totalTime:o,disabled:!!r}}function Ha(t,e,i){let n;return t instanceof Map?(n=t.get(e),n||t.set(e,n=i)):(n=t[e],n||(n=t[e]=i)),n}function Ya(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let Ba=(t,e)=>!1,ja=(t,e)=>!1,Fa=(t,e,i)=>[];const Na=Ra();(Na||"undefined"!=typeof Element)&&(Ba=xa()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),ja=(()=>{if(Na||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,i)=>e.apply(t,[i]):ja}})(),Fa=(t,e,i)=>{let n=[];if(i){const i=t.querySelectorAll(e);for(let t=0;t{const n=i.replace(/([a-z])([A-Z])/g,"$1-$2");e[n]=t[i]}),e}let Wa=(()=>{class t{validateStyleProperty(t){return Ua(t)}matchesElement(t,e){return Za(t,e)}containsElement(t,e){return Ga(t,e)}query(t,e,i){return Va(t,e,i)}computeStyle(t,e,i){return i||""}animate(t,e,i,n,s,o=[],r){return new Ea(i,n)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Ja=(()=>{class t{}return t.NOOP=new Wa,t})();const Qa="ng-enter",Xa="ng-leave",tc="ng-trigger",ec=".ng-trigger",ic="ng-animating",nc=".ng-animating";function sc(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:oc(parseFloat(e[1]),e[2])}function oc(t,e){switch(e){case"s":return 1e3*t;default:return t}}function rc(t,e,i){return t.hasOwnProperty("duration")?t:function(t,e,i){let n,s=0,o="";if("string"==typeof t){const i=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===i)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};n=oc(parseFloat(i[1]),i[2]);const r=i[3];null!=r&&(s=oc(parseFloat(r),i[4]));const a=i[5];a&&(o=a)}else n=t;if(!i){let i=!1,o=e.length;n<0&&(e.push("Duration values below 0 are not allowed for this animation step."),i=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),i=!0),i&&e.splice(o,0,`The provided timing value "${t}" is invalid.`)}return{duration:n,delay:s,easing:o}}(t,e,i)}function ac(t,e={}){return Object.keys(t).forEach(i=>{e[i]=t[i]}),e}function cc(t,e,i={}){if(e)for(let n in t)i[n]=t[n];else ac(t,i);return i}function uc(t,e,i){return i?e+":"+i+";":""}function lc(t){let e="";for(let i=0;i{const s=yc(n);i&&!i.hasOwnProperty(n)&&(i[n]=t.style[s]),t.style[s]=e[n]}),Ra()&&lc(t))}function dc(t,e){t.style&&(Object.keys(e).forEach(e=>{const i=yc(e);t.style[i]=""}),Ra()&&lc(t))}function pc(t){return Array.isArray(t)?1==t.length?t[0]:ba(t):t}const fc=new RegExp("{{\\s*(.+?)\\s*}}","g");function gc(t){let e=[];if("string"==typeof t){let i;for(;i=fc.exec(t);)e.push(i[1]);fc.lastIndex=0}return e}function mc(t,e,i){const n=t.toString(),s=n.replace(fc,(t,n)=>{let s=e[n];return e.hasOwnProperty(n)||(i.push(`Please provide a value for the animation param ${n}`),s=""),s.toString()});return s==n?t:s}function _c(t){const e=[];let i=t.next();for(;!i.done;)e.push(i.value),i=t.next();return e}const wc=/-+([a-z0-9])/g;function yc(t){return t.replace(wc,(...t)=>t[1].toUpperCase())}function bc(t,e){return 0===t||0===e}function Ac(t,e,i){const n=Object.keys(i);if(n.length&&e.length){let o=e[0],r=[];if(n.forEach(t=>{o.hasOwnProperty(t)||r.push(t),o[t]=i[t]}),r.length)for(var s=1;sfunction(t,e,i){if(":"==t[0]){const n=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,i);if("function"==typeof n)return void e.push(n);t=n}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return i.push(`The provided transition expression "${t}" is not supported`),e;const s=n[1],o=n[2],r=n[3];e.push(Ec(s,r)),"<"!=o[0]||s==Tc&&r==Tc||e.push(Ec(r,s))}(t,i,e)):i.push(t),i}const Sc=new Set(["true","1"]),Mc=new Set(["false","0"]);function Ec(t,e){const i=Sc.has(t)||Mc.has(t),n=Sc.has(e)||Mc.has(e);return(s,o)=>{let r=t==Tc||t==s,a=e==Tc||e==o;return!r&&i&&"boolean"==typeof s&&(r=s?Sc.has(t):Mc.has(t)),!a&&n&&"boolean"==typeof o&&(a=o?Sc.has(e):Mc.has(e)),r&&a}}const Lc=new RegExp("s*:selfs*,?","g");function xc(t,e,i){return new Rc(t).build(e,i)}class Rc{constructor(t){this._driver=t}build(t,e){const i=new Dc(e);return this._resetContextStyleTimingState(i),vc(this,pc(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,n=e.depCount=0;const s=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const i=t,n=i.name;n.toString().split(/\s*,\s*/).forEach(t=>{i.name=t,s.push(this.visitState(i,e))}),i.name=n}else if(1==t.type){const s=this.visitTransition(t,e);i+=s.queryCount,n+=s.depCount,o.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:o,queryCount:i,depCount:n,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),n=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=n||{};if(i.styles.forEach(t=>{if(zc(t)){const e=t;Object.keys(e).forEach(t=>{gc(e[t]).forEach(t=>{o.hasOwnProperty(t)||s.add(t)})})}}),s.size){const i=_c(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${i.join(", ")}`)}}return{type:0,name:t.name,style:i,options:n?{params:n}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=vc(this,pc(t.animation),e);return{type:1,matchers:Cc(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Pc(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>vc(this,t,e)),options:Pc(t.options)}}visitGroup(t,e){const i=e.currentTime;let n=0;const s=t.steps.map(t=>{e.currentTime=i;const s=vc(this,t,e);return n=Math.max(n,e.currentTime),s});return e.currentTime=n,{type:3,steps:s,options:Pc(t.options)}}visitAnimate(t,e){const i=function(t,e){let i=null;if(t.hasOwnProperty("duration"))i=t;else if("number"==typeof t)return Ic(rc(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=Ic(0,0,"");return t.dynamic=!0,t.strValue=n,t}return i=i||rc(n,e),Ic(i.duration,i.delay,i.easing)}(t.timings,e.errors);let n;e.currentAnimateTimings=i;let s=t.styles?t.styles:Aa({});if(5==s.type)n=this.visitKeyframes(s,e);else{let s=t.styles,o=!1;if(!s){o=!0;const t={};i.easing&&(t.easing=i.easing),s=Aa(t)}e.currentTime+=i.duration+i.delay;const r=this.visitStyle(s,e);r.isEmptyStep=o,n=r}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==ma?i.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):i.push(t)}):i.push(t.styles);let n=!1,s=null;return i.forEach(t=>{if(zc(t)){const e=t,i=e.easing;if(i&&(s=i,delete e.easing),!n)for(let t in e)if(e[t].toString().indexOf("{{")>=0){n=!0;break}}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:n,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let n=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(i=>{if(!this._driver.validateStyleProperty(i))return void e.errors.push(`The provided animation property "${i}" is not a supported CSS property for animations`);const o=e.collectedStyles[e.currentQuerySelector],r=o[i];let a=!0;r&&(s!=n&&s>=r.startTime&&n<=r.endTime&&(e.errors.push(`The CSS property "${i}" that exists between the times of "${r.startTime}ms" and "${r.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${n}ms"`),a=!1),s=r.startTime),a&&(o[i]={startTime:s,endTime:n}),e.options&&function(t,e,i){const n=e.params||{},s=gc(t);s.length&&s.forEach(t=>{n.hasOwnProperty(t)||i.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[i],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let n=0;const s=[];let o=!1,r=!1,a=0;const c=t.steps.map(t=>{const i=this._makeStyleAst(t,e);let c=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(zc(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(zc(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}return e}(i.styles),u=0;return null!=c&&(n++,u=i.offset=c),r=r||u<0||u>1,o=o||u0&&n{const o=l>0?n==h?1:l*n:s[n],r=o*f;e.currentTime=d+p.delay+r,p.duration=r,this._validateStyleAst(t,e),t.offset=o,i.styles.push(t)}),i}visitReference(t,e){return{type:8,animation:vc(this,pc(t.animation),e),options:Pc(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Pc(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Pc(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;const[s,o]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(Lc,"")),[t=t.replace(/@\*/g,ec).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,nc),e]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,Ha(e.collectedStyles,e.currentQuerySelector,{});const r=vc(this,pc(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:n.limit||0,optional:!!n.optional,includeSelf:o,animation:r,originalSelector:t.selector,options:Pc(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:rc(t.timings,e.errors,!0);return{type:12,animation:vc(this,pc(t.animation),e),timings:i,options:null}}}class Dc{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function zc(t){return!Array.isArray(t)&&"object"==typeof t}function Pc(t){var e;return t?(t=ac(t)).params&&(t.params=(e=t.params)?ac(e):null):t={},t}function Ic(t,e,i){return{duration:t,delay:e,easing:i}}function Oc(t,e,i,n,s,o,r=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:s,delay:o,totalTime:s+o,easing:r,subTimeline:a}}class Hc{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const Yc=new RegExp(":enter","g"),Bc=new RegExp(":leave","g");function jc(t,e,i,n,s,o={},r={},a,c,u=[]){return(new Fc).buildKeyframes(t,e,i,n,s,o,r,a,c,u)}class Fc{buildKeyframes(t,e,i,n,s,o,r,a,c,u=[]){c=c||new Hc;const l=new Kc(t,e,c,n,s,u,[]);l.options=a,l.currentTimeline.setStyles([o],null,l.errors,a),vc(this,i,l);const h=l.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(r).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([r],null,l.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[Oc(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.consume(e.element);if(i){const n=e.createSubContext(t.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,n,n.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let n=e.currentTimeline.currentTime;const s=null!=i.duration?sc(i.duration):null,o=null!=i.delay?sc(i.delay):null;return 0!==s&&t.forEach(t=>{const i=e.appendInstructionToTimeline(t,s,o);n=Math.max(n,i.duration+i.delay)}),n}visitReference(t,e){e.updateOptions(t.options,!0),vc(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let n=e;const s=t.options;if(s&&(s.params||s.delay)&&(n=e.createSubContext(s),n.transformIntoNewTimeline(),null!=s.delay)){6==n.previousNode.type&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Nc);const t=sc(s.delay);n.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>vc(this,t,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let n=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?sc(t.options.delay):0;t.steps.forEach(o=>{const r=e.createSubContext(t.options);s&&r.delayNextStep(s),vc(this,o,r),n=Math.max(n,r.currentTimeline.currentTime),i.push(r.currentTimeline)}),i.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(n),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return rc(e.params?mc(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,n=e.currentTimeline.duration,s=i.duration,o=e.createSubContext().currentTimeline;o.easing=i.easing,t.styles.forEach(t=>{o.forwardTime((t.offset||0)*s),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(n+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,n=t.options||{},s=n.delay?sc(n.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Nc);let o=i;const r=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!n.optional,e.errors);e.currentQueryTotal=r.length;let a=null;r.forEach((i,n)=>{e.currentQueryIndex=n;const r=e.createSubContext(t.options,i);s&&r.delayNextStep(s),i===e.element&&(a=r.currentTimeline),vc(this,t.animation,r),r.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,r.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,n=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),r=o*(e.currentQueryTotal-1);let a=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=r-a;break;case"full":a=i.currentStaggerTime}const c=e.currentTimeline;a&&c.delayNextStep(a);const u=c.currentTime;vc(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-u+(n.startTime-i.currentTimeline.startTime)}}const Nc={};class Kc{constructor(t,e,i,n,s,o,r,a){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=s,this.errors=o,this.timelines=r,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Nc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new qc(this._driver,e,0),r.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let n=this.options;null!=i.duration&&(n.duration=sc(i.duration)),null!=i.delay&&(n.delay=sc(i.delay));const s=i.params;if(s){let t=n.params;t||(t=this.options.params={}),Object.keys(s).forEach(i=>{e&&t.hasOwnProperty(i)||(t[i]=mc(s[i],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(t=>{i[t]=e[t]})}}return t}createSubContext(t=null,e,i){const n=e||this.element,s=new Kc(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=Nc,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const n={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new Uc(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(s),n}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,n,s,o){let r=[];if(n&&r.push(this.element),t.length>0){t=(t=t.replace(Yc,"."+this._enterClassName)).replace(Bc,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=i);0!==i&&(e=i<0?e.slice(e.length+i,e.length):e.slice(0,i)),r.push(...e)}return s||0!=r.length||o.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),r}}class qc{constructor(t,e,i,n){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),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.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new qc(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||ma,this._currentKeyframe[t]=ma}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,n){e&&(this._previousKeyframe.easing=e);const s=n&&n.params||{},o=function(t,e){const i={};let n;return t.forEach(t=>{"*"===t?(n=n||Object.keys(e),n.forEach(t=>{i[t]=ma})):cc(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(o).forEach(t=>{const e=mc(o[t],s,i);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:ma),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],n=t._styleSummary[e];(!i||n.time>i.time)&&this._updateStyle(e,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let n=[];this._keyframes.forEach((s,o)=>{const r=cc(s,!0);Object.keys(r).forEach(i=>{const n=r[i];"!"==n?t.add(i):n==ma&&e.add(i)}),i||(r.offset=o/this.duration),n.push(r)});const s=t.size?_c(t.values()):[],o=e.size?_c(e.values()):[];if(i){const t=n[0],e=ac(t);t.offset=0,e.offset=1,n=[t,e]}return Oc(this.element,n,s,o,this.duration,this.startTime,this.easing,!1)}}class Uc extends qc{constructor(t,e,i,n,s,o,r=!1){super(t,e,o.delay),this.element=e,this.keyframes=i,this.preStyleProps=n,this.postStyleProps=s,this._stretchStartingKeyframe=r,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],o=i+e,r=e/o,a=cc(t[0],!1);a.offset=0,s.push(a);const c=cc(t[0],!1);c.offset=Zc(r),s.push(c);const u=t.length-1;for(let n=1;n<=u;n++){let r=cc(t[n],!1);r.offset=Zc((e+r.offset*i)/o),s.push(r)}i=o,e=0,n="",t=s}return Oc(this.element,t,this.preStyleProps,this.postStyleProps,i,e,n,!0)}}function Zc(t,e=3){const i=Math.pow(10,e-1);return Math.round(t*i)/i}class Gc{}class Vc extends Gc{normalizePropertyName(t,e){return yc(t)}normalizeStyleValue(t,e,i,n){let s="";const o=i.toString().trim();if($c[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const e=i.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&n.push(`Please provide a CSS unit value for ${t}:${i}`)}return o+s}}const $c=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("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".split(",")))();function Wc(t,e,i,n,s,o,r,a,c,u,l,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:i,fromStyles:o,toState:n,toStyles:r,timelines:a,queriedElements:c,preStyleProps:u,postStyleProps:l,totalTime:h,errors:d}}const Jc={};class Qc{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,n){return function(t,e,i,n,s){return t.some(t=>t(e,i,n,s))}(this.ast.matchers,t,e,i,n)}buildStyles(t,e,i){const n=this._stateStyles["*"],s=this._stateStyles[t],o=n?n.buildStyles(e,i):{};return s?s.buildStyles(e,i):o}build(t,e,i,n,s,o,r,a,c,u){const l=[],h=this.ast.options&&this.ast.options.params||Jc,d=this.buildStyles(i,r&&r.params||Jc,l),p=a&&a.params||Jc,f=this.buildStyles(n,p,l),g=new Set,m=new Map,_=new Map,w="void"===n,y={params:Object.assign(Object.assign({},h),p)},b=u?[]:jc(t,e,this.ast.animation,s,o,d,f,y,c,l);let A=0;if(b.forEach(t=>{A=Math.max(t.duration+t.delay,A)}),l.length)return Wc(e,this._triggerName,i,n,w,d,f,[],[],m,_,A,l);b.forEach(t=>{const i=t.element,n=Ha(m,i,{});t.preStyleProps.forEach(t=>n[t]=!0);const s=Ha(_,i,{});t.postStyleProps.forEach(t=>s[t]=!0),i!==e&&g.add(i)});const v=_c(g.values());return Wc(e,this._triggerName,i,n,w,d,f,b,v,m,_,A)}}class Xc{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const i={},n=ac(this.defaultParams);return Object.keys(t).forEach(e=>{const i=t[e];null!=i&&(n[e]=i)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let o=s[t];o.length>1&&(o=mc(o,n,e)),i[t]=o})}}),i}}class tu{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new Xc(t.style,t.options&&t.options.params||{})}),eu(this.states,"true","1"),eu(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Qc(t,e,this.states))}),this.fallbackTransition=new Qc(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,n){return this.transitionFactories.find(s=>s.match(t,e,i,n))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function eu(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}const iu=new Hc;class nu{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],n=xc(this._driver,e,i);if(i.length)throw new Error(`Unable to build the animation due to the following errors: ${i.join("\n")}`);this._animations[t]=n}_buildPlayer(t,e,i){const n=t.element,s=za(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(n,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const n=[],s=this._animations[t];let o;const r=new Map;if(s?(o=jc(this._driver,e,s,Qa,Xa,{},{},i,iu,n),o.forEach(t=>{const e=Ha(r,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(n.push("The requested animation doesn't exist or has already been destroyed"),o=[]),n.length)throw new Error(`Unable to create the animation due to the following errors: ${n.join("\n")}`);r.forEach((t,e)=>{Object.keys(t).forEach(i=>{t[i]=this._driver.computeStyle(e,i,ma)})});const a=Da(o.map(t=>{const e=r.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,i,n){const s=Oa(e,"","","");return Pa(this._getPlayer(t),i,s,n),()=>{}}command(t,e,i,n){if("register"==i)return void this.register(t,n[0]);if("create"==i)return void this.create(t,e,n[0]||{});const s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(t)}}}const su="ng-animate-queued",ou="ng-animate-disabled",ru=".ng-animate-disabled",au=[],cu={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},uu={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class lu{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=null!=(n=i?t.value:t)?n:null,i){const e=ac(t);delete e.value,this.options=e}else this.options={};var n;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(i=>{null==t[i]&&(t[i]=e[i])})}}}const hu="void",du=new lu(hu);class pu{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,bu(e,this._hostClassName)}listen(t,e,i,n){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=i)&&"done"!=s)throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);var s;const o=Ha(this._elementListeners,t,[]),r={name:e,phase:i,callback:n};o.push(r);const a=Ha(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(bu(t,tc),bu(t,"ng-trigger-"+e),a[e]=du),()=>{this._engine.afterFlush(()=>{const t=o.indexOf(r);t>=0&&o.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,i,n=!0){const s=this._getTrigger(e),o=new gu(this.id,e,t);let r=this._engine.statesByElement.get(t);r||(bu(t,tc),bu(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,r={}));let a=r[e];const c=new lu(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),r[e]=c,a||(a=du),c.value!==hu&&a.value===c.value){if(!function(t,e){const i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(let s=0;s{dc(t,i),hc(t,n)})}return}const u=Ha(this._engine.playersByElement,t,[]);u.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let l=s.matchTransition(a.value,c.value,t,c.params),h=!1;if(!l){if(!n)return;l=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:l,fromState:a,toState:c,player:o,isFallbackTransition:h}),h||(bu(t,su),o.onStart(()=>{Au(t,su)})),o.onDone(()=>{let e=this.players.indexOf(o);e>=0&&this.players.splice(e,1);const i=this._engine.playersByElement.get(t);if(i){let t=i.indexOf(o);t>=0&&i.splice(t,1)}}),this.players.push(o),u.push(o),o}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,ec,!0);i.forEach(t=>{if(t.__ng_removed)return;const i=this._engine.fetchNamespacesByElement(t);i.size?i.forEach(i=>i.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,i,n){const s=this._engine.statesByElement.get(t);if(s){const o=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const i=this.trigger(t,e,hu,n);i&&o.push(i)}}),o.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&Da(o).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const n=new Set;e.forEach(e=>{const s=e.name;if(n.has(s))return;n.add(s);const o=this._triggers[s].fallbackTransition,r=i[s]||du,a=new lu(hu),c=new gu(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:o,fromState:r,toState:a,player:c,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let n=!1;if(i.totalAnimations){const e=i.players.length?i.playersByQueriedElement.get(t):[];if(e&&e.length)n=!0;else{let e=t;for(;e=e.parentNode;)if(i.statesByElement.get(e)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(t),n)i.markElementAsRemoved(this.id,t,!1,e);else{const n=t.__ng_removed;n&&n!==cu||(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){bu(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const n=i.player;if(n.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(e=>{if(e.name==i.triggerName){const n=Oa(s,i.triggerName,i.fromState.value,i.toState.value);n._data=t,Pa(i.player,e.phase,n,e.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):e.push(i)}),this._queue=[],e.sort((t,e)=>{const i=t.transition.ast.depCount,n=e.transition.ast.depCount;return 0==i||0==n?i-n:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class fu{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,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=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const i=new pu(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList.length-1;if(i>=0){let n=!1;for(let s=i;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),n=!0;break}n||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(i);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const t=Object.keys(i);for(let n=0;n=0&&this.collectedLeaveElements.splice(t,1)}if(t){const n=this._fetchNamespace(t);n&&n.insertNode(e,i)}n&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),bu(t,ou)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Au(t,ou))}removeNode(t,e,i,n){if(mu(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n),i){const i=this.namespacesByHostElement.get(e);i&&i.id!==t&&i.removeNode(e,n)}}else this._onRemovalComplete(e,n)}markElementAsRemoved(t,e,i,n){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}listen(t,e,i,n,s){return mu(e)?this._fetchNamespace(t).listen(e,i,n,s):()=>{}}_buildInstruction(t,e,i,n,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,ec,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,nc,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Da(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=cu,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,ru)&&this.markElementAsDisabled(t,!1),this.driver.query(t,ru,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;it()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Da(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const i=new Hc,n=[],s=new Map,o=[],r=new Map,a=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(t=>{u.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let i=0;i{const i=Qa+f++;p.set(e,i),t.forEach(t=>bu(t,i))});const g=[],m=new Set,_=new Set;for(let x=0;xm.add(t)):_.add(t))}const w=new Map,y=yu(h,Array.from(m));y.forEach((t,e)=>{const i=Xa+f++;w.set(e,i),t.forEach(t=>bu(t,i))}),t.push(()=>{d.forEach((t,e)=>{const i=p.get(e);t.forEach(t=>Au(t,i))}),y.forEach((t,e)=>{const i=w.get(e);t.forEach(t=>Au(t,i))}),g.forEach(t=>{this.processLeaveNode(t)})});const b=[],A=[];for(let x=this._namespaceList.length-1;x>=0;x--)this._namespaceList[x].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(b.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const u=!l||!this.driver.containsElement(l,s),h=w.get(s),d=p.get(s),f=this._buildInstruction(t,i,d,h,u);if(f.errors&&f.errors.length)A.push(f);else{if(u)return e.onStart(()=>dc(s,f.fromStyles)),e.onDestroy(()=>hc(s,f.toStyles)),void n.push(e);if(t.isFallbackTransition)return e.onStart(()=>dc(s,f.fromStyles)),e.onDestroy(()=>hc(s,f.toStyles)),void n.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),i.append(s,f.timelines),o.push({instruction:f,player:e,element:s}),f.queriedElements.forEach(t=>Ha(r,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const i=Object.keys(t);if(i.length){let t=a.get(e);t||a.set(e,t=new Set),i.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const i=Object.keys(t);let n=c.get(e);n||c.set(e,n=new Set),i.forEach(t=>n.add(t))})}});if(A.length){const t=[];A.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),b.forEach(t=>t.destroy()),this.reportError(t)}const v=new Map,k=new Map;o.forEach(t=>{const e=t.element;i.has(e)&&(k.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,v))}),n.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{Ha(v,e,[]).push(t),t.destroy()})});const T=g.filter(t=>Tu(t,a,c)),C=new Map;wu(C,this.driver,_,c,ma).forEach(t=>{Tu(t,a,c)&&T.push(t)});const S=new Map;d.forEach((t,e)=>{wu(S,this.driver,new Set(t),a,"!")}),T.forEach(t=>{const e=C.get(t),i=S.get(t);C.set(t,Object.assign(Object.assign({},e),i))});const M=[],E=[],L={};o.forEach(t=>{const{element:e,player:o,instruction:r}=t;if(i.has(e)){if(u.has(e))return o.onDestroy(()=>hc(e,r.toStyles)),o.disabled=!0,o.overrideTotalTime(r.totalTime),void n.push(o);let t=L;if(k.size>1){let i=e;const n=[];for(;i=i.parentNode;){const e=k.get(i);if(e){t=e;break}n.push(i)}n.forEach(e=>k.set(e,t))}const i=this._buildAnimation(o.namespaceId,r,v,s,S,C);if(o.setRealPlayer(i),t===L)M.push(o);else{const e=this.playersByElement.get(t);e&&e.length&&(o.parentPlayer=Da(e)),n.push(o)}}else dc(e,r.fromStyles),o.onDestroy(()=>hc(e,r.toStyles)),E.push(o),u.has(e)&&n.push(o)}),E.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const i=Da(e);t.setRealPlayer(i)}}),n.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let x=0;x!t.destroyed);n.length?vu(this,t,n):this.processLeaveNode(t)}return g.length=0,M.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),M}elementContainsData(t,e){let i=!1;const n=e.__ng_removed;return n&&n.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,n,s){let o=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(o=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||s==hu;e.forEach(e=>{e.queued||(t||e.triggerName==n)&&o.push(e)})}}return(i||n)&&(o=o.filter(t=>!(i&&i!=t.namespaceId||n&&n!=t.triggerName))),o}_beforeAnimationBuild(t,e,i){const n=e.element,s=e.isRemovalTransition?void 0:t,o=e.isRemovalTransition?void 0:e.triggerName;for(const r of e.timelines){const t=r.element,a=t!==n,c=Ha(i,t,[]);this._getPreviousPlayers(t,a,s,o,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),c.push(t)})}dc(n,e.fromStyles)}_buildAnimation(t,e,i,n,s,o){const r=e.triggerName,a=e.element,c=[],u=new Set,l=new Set,h=e.timelines.map(e=>{const h=e.element;u.add(h);const d=h.__ng_removed;if(d&&d.removedBeforeQueried)return new Ea(e.duration,e.delay);const p=h!==a,f=function(t){const e=[];return ku(t,e),e}((i.get(h)||au).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===h),g=s.get(h),m=o.get(h),_=za(0,this._normalizer,0,e.keyframes,g,m),w=this._buildPlayer(e,_,f);if(e.subTimeline&&n&&l.add(h),p){const e=new gu(t,r,h);e.setRealPlayer(w),c.push(e)}return w});c.forEach(t=>{Ha(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,i){let n;if(t instanceof Map){if(n=t.get(e),n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&t.delete(e)}}else if(n=t[e],n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&delete t[e]}return n}(this.playersByQueriedElement,t.element,t))}),u.forEach(t=>bu(t,ic));const d=Da(h);return d.onDestroy(()=>{u.forEach(t=>Au(t,ic)),hc(a,e.toStyles)}),l.forEach(t=>{Ha(n,t,[]).push(d)}),d}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new Ea(t.duration,t.delay)}}class gu{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new Ea,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>Pa(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Ha(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function mu(t){return t&&1===t.nodeType}function _u(t,e){const i=t.style.display;return t.style.display=null!=e?e:"none",i}function wu(t,e,i,n,s){const o=[];i.forEach(t=>o.push(_u(t)));const r=[];n.forEach((i,n)=>{const o={};i.forEach(t=>{const i=o[t]=e.computeStyle(n,t,s);i&&0!=i.length||(n.__ng_removed=uu,r.push(n))}),t.set(n,o)});let a=0;return i.forEach(t=>_u(t,o[a++])),r}function yu(t,e){const i=new Map;if(t.forEach(t=>i.set(t,[])),0==e.length)return i;const n=new Set(e),s=new Map;function o(t){if(!t)return 1;let e=s.get(t);if(e)return e;const r=t.parentNode;return e=i.has(r)?r:n.has(r)?1:o(r),s.set(t,e),e}return e.forEach(t=>{const e=o(t);1!==e&&i.get(e).push(t)}),i}function bu(t,e){if(t.classList)t.classList.add(e);else{let i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function Au(t,e){if(t.classList)t.classList.remove(e);else{let i=t.$$classes;i&&delete i[e]}}function vu(t,e,i){Da(i).onDone(()=>t.processLeaveNode(e))}function ku(t,e){for(let i=0;is.add(t)):e.set(t,n),i.delete(t),!0}class Cu{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new fu(t,e,i),this._timelineEngine=new nu(t,e,i),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,i,n,s){const o=t+"-"+n;let r=this._triggerCache[o];if(!r){const t=[],e=xc(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${n}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);r=function(t,e){return new tu(t,e)}(n,e),this._triggerCache[o]=r}this._transitionEngine.registerTrigger(e,n,r)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,n){this._transitionEngine.insertNode(t,e,i,n)}onRemove(t,e,i,n){this._transitionEngine.removeNode(t,e,n||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,n){if("@"==i.charAt(0)){const[t,s]=Ya(i);this._timelineEngine.command(t,e,s,n)}else this._transitionEngine.trigger(t,e,i,n)}listen(t,e,i,n,s){if("@"==i.charAt(0)){const[t,n]=Ya(i);return this._timelineEngine.listen(t,e,n,s)}return this._transitionEngine.listen(t,e,i,n,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Su(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=Eu(e[0]),e.length>1&&(n=Eu(e[e.length-1]))):e&&(i=Eu(e)),i||n?new Mu(t,i,n):null}let Mu=(()=>{class t{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&hc(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(hc(this._element,this._initialStyles),this._endStyles&&(hc(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(dc(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(dc(this._element,this._endStyles),this._endStyles=null),hc(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Eu(t){let e=null;const i=Object.keys(t);for(let n=0;nthis._handleCallback(t)}apply(){!function(t,e){const i=Yu(t,"").trim();i.length&&(function(t,e){let i=0;for(let n=0;n=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Ou(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const i=Yu(t,"").split(","),n=Iu(i,e);n>=0&&(i.splice(n,1),Hu(t,"",i.join(",")))}(this._element,this._name))}}function zu(t,e,i){Hu(t,"PlayState",i,Pu(t,e))}function Pu(t,e){const i=Yu(t,"");return i.indexOf(",")>0?Iu(i.split(","),e):Iu([i],e)}function Iu(t,e){for(let i=0;i=0)return i;return-1}function Ou(t,e,i){i?t.removeEventListener(Ru,e):t.addEventListener(Ru,e)}function Hu(t,e,i,n){const s=xu+e;if(null!=n){const e=t.style[s];if(e.length){const t=e.split(",");t[n]=i,i=t.join(",")}}t.style[s]=i}function Yu(t,e){return t.style[xu+e]||""}class Bu{constructor(t,e,i,n,s,o,r,a){this.element=t,this.keyframes=e,this.animationName=i,this._duration=n,this._delay=s,this._finalStyles=r,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=n+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Du(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(i=>{"offset"!=i&&(t[i]=e?this._finalStyles[i]:kc(this.element,i))})}this.currentSnapshot=t}}class ju extends Ea{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=$a(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class Fu{constructor(){this._count=0}validateStyleProperty(t){return Ua(t)}matchesElement(t,e){return Za(t,e)}containsElement(t,e){return Ga(t,e)}query(t,e,i){return Va(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(t=>$a(t));let n=`@keyframes ${e} {\n`,s="";i.forEach(t=>{s=" ";const e=parseFloat(t.offset);n+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const i=t[e];switch(e){case"offset":return;case"easing":return void(i&&(n+=`${s}animation-timing-function: ${i};\n`));default:return void(n+=`${s}${e}: ${i};\n`)}}),n+=`${s}}\n`}),n+="}\n";const o=document.createElement("style");return o.textContent=n,o}animate(t,e,i,n,s,o=[],r){const a=o.filter(t=>t instanceof Bu),c={};bc(i,n)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const u=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(i=>{"offset"!=i&&"easing"!=i&&(e[i]=t[i])})}),e}(e=Ac(t,e,c));if(0==i)return new ju(t,u);const l="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,l,e);(function(t){var e;const i=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&i instanceof ShadowRoot?i:document.head})(t).appendChild(h);const d=Su(t,e),p=new Bu(t,e,l,i,n,s,u,d);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}}class Nu{constructor(t,e,i,n){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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}_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(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:kc(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Ku{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(qu().toString()),this._cssKeyframesDriver=new Fu}validateStyleProperty(t){return Ua(t)}matchesElement(t,e){return Za(t,e)}containsElement(t,e){return Ga(t,e)}query(t,e,i){return Va(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,n,s,o=[],r){if(!r&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,s,o);const a={duration:i,delay:n,fill:0==n?"both":"forwards"};s&&(a.easing=s);const c={},u=o.filter(t=>t instanceof Nu);bc(i,n)&&u.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const l=Su(t,e=Ac(t,e=e.map(t=>cc(t,!1)),c));return new Nu(t,e,a,l)}}function qu(){return xa()&&Element.prototype.animate||{}}let Uu=(()=>{class t extends ga{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:s.ifc.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?ba(t):t;return Vu(this._renderer,null,e,"register",[i]),new Zu(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.FYo),s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class Zu extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Gu(this._id,t,e||{},this._renderer)}}class Gu{constructor(t,e,i,n){this.id=t,this.element=e,this._renderer=n,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Vu(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function Vu(t,e,i,n,s){return t.setProperty(e,`@@${i}:${n}`,s)}const $u="@",Wu="@.disabled";let Ju=(()=>{class t{constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const i=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(i);return t||(t=new Qu("",i,this.engine),this._rendererCache.set(i,t)),t}const n=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const o=e=>{Array.isArray(e)?e.forEach(o):this.engine.registerTrigger(n,s,t,e.name,e)};return e.data.animation.forEach(o),new Xu(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){t>=0&&te(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,i]=t;e(i)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,i]))}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 t.\u0275fac=function(e){return new(e||t)(s.LFG(s.FYo),s.LFG(Cu),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class Qu{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,n=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,n)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,n){this.delegate.setAttribute(t,e,i,n)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,n){this.delegate.setStyle(t,e,i,n)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){e.charAt(0)==$u&&e==Wu?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Xu extends Qu{constructor(t,e,i,n){super(e,i,n),this.factory=t,this.namespaceId=e}setProperty(t,e,i){e.charAt(0)==$u?"."==e.charAt(1)&&e==Wu?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if(e.charAt(0)==$u){const n=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),o="";return s.charAt(0)!=$u&&([s,o]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,n,s,o,t=>{this.factory.scheduleListenerCallback(t._data||-1,i,t)})}return this.delegate.listen(t,e,i)}}let tl=(()=>{class t extends Cu{constructor(t,e,i){super(t.body,e,i)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0),s.LFG(Ja),s.LFG(Gc))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const el=new s.OlP("AnimationModuleType"),il=[{provide:ga,useClass:Uu},{provide:Gc,useFactory:function(){return new Vc}},{provide:Cu,useClass:tl},{provide:s.FYo,useFactory:function(t,e,i){return new Ju(t,e,i)},deps:[k,Cu,s.R0b]}],nl=[{provide:Ja,useFactory:function(){return"function"==typeof qu()?new Ku:new Fu}},{provide:el,useValue:"BrowserAnimations"},...il],sl=[{provide:Ja,useClass:Wa},{provide:el,useValue:"NoopAnimations"},...il];let ol=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?sl:nl}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:nl,imports:[Y]}),t})();function rl(t,e){if(1&t&&s._UZ(0,"mat-pseudo-checkbox",4),2&t){const t=s.oxw();s.Q6J("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function al(t,e){if(1&t&&(s.TgZ(0,"span",5),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.hij("(",t.group.label,")")}}const cl=["*"];let ul=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),ll=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const hl=new s.GfV("12.0.5"),dl=new s.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let pl=(()=>{class t{constructor(t,e,i){this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return(0,s.X6Q)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&hl.full!==fa.full&&console.warn("The Angular Material version ("+hl.full+") does not match the Angular CDK version ("+fa.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(da),s.LFG(dl,8),s.LFG(n.K0))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[_o],_o]}),t})();function fl(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=ss(t)}}}function gl(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function ml(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=ss(t)}}}function _l(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?os(t):this.defaultTabIndex}}}function wl(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new At.xQ}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}function yl(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new Ct.y(t=>{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}const bl=new s.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return(0,s.f3M)(s.soG)}});class Al{constructor(){this._localeChanges=new At.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let i=this.isValid(t),n=this.isValid(e);return i&&n?!this.compareDate(t,e):i==n}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}}const vl=new s.OlP("mat-date-formats");let kl;try{kl="undefined"!=typeof Intl}catch(Ix){kl=!1}const Tl={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},Cl=El(31,t=>String(t+1)),Sl={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},Ml=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function El(t,e){const i=Array(t);for(let n=0;n{class t extends Al{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(kl){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return El(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return Tl[t]}getDateNames(){if(kl){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return El(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return Cl}getDayOfWeekNames(t){if(kl){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return El(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return Sl[t]}getYearName(t){if(kl){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,i){let n=this._createDateWithOverflow(t,e,i);return n.getMonth(),n}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(kl){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});const i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(i,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let i=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(i)!=((this.getMonth(t)+e)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(Ml.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,i){const n=new Date;return n.setFullYear(t,e,i),n.setHours(0,0,0,0),n}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const i=new Date;return i.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),i.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(i)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(bl,8),s.LFG(eo))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),xl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[{provide:Al,useClass:Ll}],imports:[[io]]}),t})();const Rl={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 Dl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[{provide:vl,useValue:Rl}],imports:[[xl]]}),t})(),zl=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Pl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function Il(t,e,i){const n=t.nativeElement.classList;i?n.add(e):n.remove(e)}let Ol=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[pl],pl]}),t})();class Hl{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Yl={enterDuration:450,exitDuration:400},Bl=uo({passive:!0}),jl=["mousedown","touchstart"],Fl=["mouseup","mouseleave","touchend","touchcancel"];class Nl{constructor(t,e,i,n){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,n.isBrowser&&(this._containerElement=us(i))}fadeInRipple(t,e,i={}){const n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},Yl),i.animation);i.centered&&(t=n.left+n.width/2,e=n.top+n.height/2);const o=i.radius||function(t,e,i){const n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),s=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+s*s)}(t,e,n),r=t-n.left,a=e-n.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=r-o+"px",u.style.top=a-o+"px",u.style.height=2*o+"px",u.style.width=2*o+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),window.getComputedStyle(u).getPropertyValue("opacity"),u.style.transform="scale(1)";const l=new Hl(this,u,i);return l.state=0,this._activeRipples.add(l),i.persistent||(this._mostRecentTransientRipple=l),this._runTimeoutOutsideZone(()=>{const t=l===this._mostRecentTransientRipple;l.state=1,i.persistent||t&&this._isPointerDown||l.fadeOut()},c),l}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,n=Object.assign(Object.assign({},Yl),t.config.animation);i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.parentNode.removeChild(i)},n.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=us(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(jl))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Fl),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=ia(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,Bl)})})}_removeTriggerEvents(){this._triggerElement&&(jl.forEach(t=>{this._triggerElement.removeEventListener(t,this,Bl)}),this._pointerUpEventsRegistered&&Fl.forEach(t=>{this._triggerElement.removeEventListener(t,this,Bl)}))}}const Kl=new s.OlP("mat-ripple-global-options");let ql=(()=>{class t{constructor(t,e,i,n,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=n||{},this._rippleRenderer=new Nl(this,e,t,i)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,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:Object.assign(Object.assign(Object.assign({},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(t,e=0,i){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(eo),s.Y36(Kl,8),s.Y36(el,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),Ul=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[pl,io],pl]}),t})(),Zl=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(el,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&s.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},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:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::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}\n'],encapsulation:2,changeDetection:0}),t})(),Gl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[pl]]}),t})();const Vl=new s.OlP("MAT_OPTION_PARENT_COMPONENT");class $l{}const Wl=fl($l);let Jl=0,Ql=(()=>{class t extends Wl{constructor(t){var e;super(),this._labelId="mat-optgroup-label-"+Jl++,this._inert=null!==(e=null==t?void 0:t.inertGroups)&&void 0!==e&&e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Vl,8))},t.\u0275dir=s.lG2({type:t,inputs:{label:"label"},features:[s.qOj]}),t})();const Xl=new s.OlP("MatOptgroup");let th=0;class eh{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let ih=(()=>{class t{constructor(t,e,i,n){this._element=t,this._changeDetectorRef=e,this._parent=i,this.group=n,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+th++,this.onSelectionChange=new s.vpe,this._stateChanges=new At.xQ}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(t){this._disabled=ss(t)}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(t,e){const i=this._getHostElement();"function"==typeof i.focus&&i.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){t.keyCode!==jo&&t.keyCode!==No||Go(t)||(this._selectViaInteraction(),t.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 t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new eh(this,t))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(void 0),s.Y36(Ql))},t.\u0275dir=s.lG2({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),nh=(()=>{class t extends ih{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(Vl,8),s.Y36(Xl,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(s.Ikx("id",e.id),s.uIk("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),s.ekj("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[s.qOj],ngContentSelectors:cl,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(t,e){1&t&&(s.F$t(),s.YNc(0,rl,1,2,"mat-pseudo-checkbox",0),s.TgZ(1,"span",1),s.Hsn(2),s.qZA(),s.YNc(3,al,2,1,"span",2),s._UZ(4,"div",3)),2&t&&(s.Q6J("ngIf",e.multiple),s.xp6(3),s.Q6J("ngIf",e.group&&e.group._inert),s.xp6(1),s.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[n.O5,ql,Zl],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:transparent}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function sh(t,e,i){if(i.length){let n=e.toArray(),s=i.toArray(),o=0;for(let e=0;e{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Ul,n.ez,pl,Gl]]}),t})();function rh(t,e){}class ah{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=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const ch={dialogContainer:_a("dialogContainer",[va("void, exit",Aa({opacity:0,transform:"scale(0.7)"})),va("enter",Aa({transform:"none"})),Ta("* => enter",wa("150ms cubic-bezier(0, 0, 0.2, 1)",Aa({transform:"none",opacity:1}))),Ta("* => void, * => exit",wa("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Aa({opacity:0})))])};let uh=(()=>{class t extends Do{constructor(t,e,i,n,o,r){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=i,this._config=o,this._focusMonitor=r,this._animationStateChanged=new s.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=o.ariaLabelledBy||null,this._document=n}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=fo(),i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=fo())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=fo();return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Wr),s.Y36(s.sBO),s.Y36(n.K0,8),s.Y36(ah),s.Y36(ra))},t.\u0275dir=s.lG2({type:t,viewQuery:function(t,e){if(1&t&&s.Gf(Io,7),2&t){let t;s.iGM(t=s.CRH())&&(e._portalOutlet=t.first)}},features:[s.qOj]}),t})(),lh=(()=>{class t extends uh{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&s.WFA("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(s.Ikx("id",e._id),s.uIk("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),s.d8E("@dialogContainer",e._state))},features:[s.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&s.YNc(0,rh,0,0,"ng-template",0)},directives:[Io],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[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.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}\n"],encapsulation:2,data:{animation:[ch.dialogContainer]}}),t})(),hh=0;class dh{constructor(t,e,i="mat-dialog-"+hh++){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new At.xQ,this._afterClosed=new At.xQ,this._beforeClosed=new At.xQ,this._state=0,e._id=i,e._animationStateChanged.pipe((0,wt.h)(t=>"opened"===t.state),(0,Pt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,wt.h)(t=>"closed"===t.state),(0,Pt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe((0,wt.h)(t=>t.keyCode===Fo&&!this.disableClose&&!Go(t))).subscribe(t=>{t.preventDefault(),ph(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():ph(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe((0,wt.h)(t=>"closing"===t.state),(0,Pt.q)(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function ph(t,e,i){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(i)}const fh=new s.OlP("MatDialogData"),gh=new s.OlP("mat-dialog-default-options"),mh=new s.OlP("mat-dialog-scroll-strategy"),_h={provide:mh,deps:[vr],useFactory:function(t){return()=>t.scrollStrategies.block()}};let wh=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c){this._overlay=t,this._injector=e,this._defaultOptions=i,this._parentDialog=n,this._overlayContainer=s,this._dialogRefConstructor=r,this._dialogContainerType=a,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new At.xQ,this._afterOpenedAtThisLevel=new At.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=xt(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Ot(void 0))),this._scrollStrategy=o}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new ah)).id&&this.getDialogById(e.id);const i=this._createOverlay(e),n=this._attachDialogContainer(i,e),s=this._attachDialogContent(t,n,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),n._initializeWithAttachedContent(),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new ir({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const i=s.zs3.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:ah,useValue:e}]}),n=new Lo(this._dialogContainerType,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}_attachDialogContent(t,e,i,n){const o=new this._dialogRefConstructor(i,e,n.id);if(t instanceof s.Rgc)e.attachTemplatePortal(new xo(t,null,{$implicit:n.data,dialogRef:o}));else{const i=this._createInjector(n,o,e),s=e.attachComponentPortal(new Lo(t,n.viewContainerRef,i));o.componentInstance=s.instance}return o.updateSize(n.width,n.height).updatePosition(n.position),o}_createInjector(t,e,i){const n=t&&t.viewContainerRef&&t.viewContainerRef.injector,o=[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||n&&n.get(mo,null,s.XFs.Optional)||o.push({provide:mo,useValue:{value:t.direction,change:(0,bt.of)()}}),s.zs3.create({parent:n||this._injector,providers:o})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let i=e.length-1;i>-1;i--){let n=e[i];n===t||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(vr),s.Y36(s.zs3),s.Y36(void 0),s.Y36(void 0),s.Y36(ur),s.Y36(void 0),s.Y36(s.DyG),s.Y36(s.DyG),s.Y36(s.OlP))},t.\u0275dir=s.lG2({type:t}),t})(),yh=(()=>{class t extends wh{constructor(t,e,i,n,s,o,r){super(t,e,n,o,r,s,dh,lh,fh)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(vr),s.LFG(s.zs3),s.LFG(n.Ye,8),s.LFG(gh,8),s.LFG(mh),s.LFG(t,12),s.LFG(ur))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),bh=0,Ah=(()=>{class t{constructor(t,e,i){this._dialogRef=t,this._elementRef=e,this._dialog=i,this.id="mat-dialog-title-"+bh++}ngOnInit(){this._dialogRef||(this._dialogRef=function(t,e){let i=t.nativeElement.parentElement;for(;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?e.find(t=>t.id===i.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(dh,8),s.Y36(s.SBq),s.Y36(yh))},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&s.Ikx("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),vh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),kh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})(),Th=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[yh,_h],imports:[[Er,Oo,pl],pl]}),t})();var Ch=i(2623);let Sh=(()=>{class t{constructor(t,e,i,n,s){this.injector=t,this.store=e,this.dialog=i,this.route=n,this.oauthService=s,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(Pn),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(t=>{t.idpFilter&&(this.filterShortname=t.idpFilter)})}getClientConfig(){const t=this.setIdpFilter(),e=t?{acr_values:t}:{};return this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(e.prompt="consent"),{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"),customQueryParams:e}}setIdpFilter(){const t=location.search.substr(1).split("&");this.filterShortname=null;const e=this.store.get("oidc_client","filters");if(!e)return null;let i=null;return t.forEach(t=>{const n=t.split("=");"idpFilter"===n[0]&&e[n[1]]&&(this.filterShortname=n[1],i=e[n[1]])}),e.default&&!i?(this.filterShortname="default",e.default):i}startIdpFilterKeeper(){this.router.events.pipe((0,wt.h)(t=>t instanceof re)).subscribe(()=>{const t={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===t.idpFilter?{}:t,queryParamsHandling:"merge",replaceUrl:!0})})}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const t=location.pathname,e=location.search.substr(1);return"/api-callback"===t?this.handleAuthCallback().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(t,e).then(()=>this.startRefreshToken())}startRefreshToken(){return this.isLoggedInPromise().then(t=>!!t&&(this.oauthService.events.pipe((0,wt.h)(t=>"token_expires"===t.type)).subscribe(()=>{this.oauthService.refreshToken().then(t=>{localStorage.setItem("refresh_token",t.refresh_token)})}),!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()}isPotentiallyValidPath(t){const e=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===t)return!0;for(const i of e)if(t.startsWith(i))return!0;return!1}tryRefreshToken(){return localStorage.getItem("refresh_token")?(sessionStorage.setItem("refresh_token",localStorage.getItem("refresh_token")),this.oauthService.loadDiscoveryDocument().then(()=>this.oauthService.refreshToken()).then(()=>Promise.resolve()).catch(t=>t)):Promise.resolve()}verifyAuthentication(t,e){return this.tryRefreshToken().then(()=>this.isLoggedInPromise()).then(i=>i?(this.oauthService.loadDiscoveryDocument().then(()=>localStorage.setItem("refresh_token",this.oauthService.getRefreshToken())),!0):this.isPotentiallyValidPath(t)?(sessionStorage.setItem("auth:redirect",t),sessionStorage.setItem("auth:queryParams",e),!1):new Promise((t,e)=>e("Invalid path")))}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const t=sessionStorage.getItem("mfa_route");if(t)return this.router.navigate([t],{replaceUrl:!0});let e=sessionStorage.getItem("auth:redirect");const i=sessionStorage.getItem("auth:queryParams");let n=[];i&&(n=i.split("&"));const s={};return n.forEach(t=>{const e=t.split("=");s[e[0]]=e[1]}),e&&"/login"!==e||(e="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),s.idpFilter&&(this.filterShortname=s.idpFilter),this.router.navigate([e],{queryParams:s,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.zs3),s.LFG(ns),s.LFG(yh),s.LFG(hi),s.LFG(Ch.Ct))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Mh=i(2056);function Eh(...t){if(1===t.length){const e=t[0];if((0,ls.k)(e))return Lh(e,null);if((0,Mh.K)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Lh(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Lh(t=1===t.length&&(0,ls.k)(t[0])?t[0]:t,null).pipe((0,Dt.U)(t=>e(...t)))}return Lh(t,null)}function Lh(t,e){return new Ct.y(i=>{const n=t.length;if(0===n)return void i.complete();const s=new Array(n);let o=0,r=0;for(let a=0;a{u||(u=!0,r++),s[a]=t},error:t=>i.error(t),complete:()=>{o++,o!==n&&u||(r===n&&i.next(e?e.reduce((t,e,i)=>(t[e]=s[i],t),{}):s),i.complete())}}))}})}class xh{}let Rh=(()=>{class t extends xh{getTranslation(t){return(0,bt.of)({})}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class Dh{}let zh=(()=>{class t{handle(t){return t.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function Ph(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;let i,n,s,o=typeof t;if(o==typeof e&&"object"==o){if(!Array.isArray(t)){if(Array.isArray(e))return!1;for(n in s=Object.create(null),t){if(!Ph(t[n],e[n]))return!1;s[n]=!0}for(n in e)if(!(n in s)&&void 0!==e[n])return!1;return!0}if(!Array.isArray(e))return!1;if((i=t.length)==e.length){for(n=0;n{Oh(e[n])?n in t?i[n]=Hh(t[n],e[n]):Object.assign(i,{[n]:e[n]}):Object.assign(i,{[n]:e[n]})}),i}class Yh{}let Bh=(()=>{class t extends Yh{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(t,e){let i;return i="string"==typeof t?this.interpolateString(t,e):"function"==typeof t?this.interpolateFunction(t,e):t,i}getValue(t,e){let i="string"==typeof e?e.split("."):[e];e="";do{e+=i.shift(),!Ih(t)||!Ih(t[e])||"object"!=typeof t[e]&&i.length?i.length?e+=".":t=void 0:(t=t[e],e="")}while(i.length);return t}interpolateFunction(t,e){return t(e)}interpolateString(t,e){return e?t.replace(this.templateMatcher,(t,i)=>{let n=this.getValue(e,i);return Ih(n)?n:t}):t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class jh{}let Fh=(()=>{class t extends jh{compile(t,e){return t}compileTranslations(t,e){return t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class Nh{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new s.vpe,this.onLangChange=new s.vpe,this.onDefaultLangChange=new s.vpe}}const Kh=new s.OlP("USE_STORE"),qh=new s.OlP("USE_DEFAULT_LANG"),Uh=new s.OlP("DEFAULT_LANGUAGE"),Zh=new s.OlP("USE_EXTEND");let Gh=(()=>{class t{constructor(t,e,i,n,o,r=!0,a=!1,c=!1,u){this.store=t,this.currentLoader=e,this.compiler=i,this.parser=n,this.missingTranslationHandler=o,this.useDefaultLang=r,this.isolate=a,this.extend=c,this.pending=!1,this._onTranslationChange=new s.vpe,this._onLangChange=new s.vpe,this._onDefaultLangChange=new s.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(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}setDefaultLang(t){if(t===this.defaultLang)return;let e=this.retrieveTranslations(t);void 0!==e?(null==this.defaultLang&&(this.defaultLang=t),e.pipe((0,Pt.q)(1)).subscribe(e=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return(0,bt.of)(this.translations[t]);let e=this.retrieveTranslations(t);return void 0!==e?(this.currentLang||(this.currentLang=t),e.pipe((0,Pt.q)(1)).subscribe(e=>{this.changeLang(t)}),e):(this.changeLang(t),(0,bt.of)(this.translations[t]))}retrieveTranslations(t){let e;return(void 0===this.translations[t]||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),e=this._translationRequests[t]),e}getTranslation(t){this.pending=!0;const e=this.currentLoader.getTranslation(t).pipe(Qs(1),(0,Pt.q)(1));return this.loadingTranslations=e.pipe((0,Dt.U)(e=>this.compiler.compileTranslations(e,t)),Qs(1),(0,Pt.q)(1)),this.loadingTranslations.subscribe({next:e=>{this.translations[t]=this.extend&&this.translations[t]?Object.assign(Object.assign({},e),this.translations[t]):e,this.updateLangs(),this.pending=!1},error:t=>{this.pending=!1}}),e}setTranslation(t,e,i=!1){e=this.compiler.compileTranslations(e,t),this.translations[t]=(i||this.extend)&&this.translations[t]?Hh(this.translations[t],e):e,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,e,i){let n;if(e instanceof Array){let n={},s=!1;for(let o of e)n[o]=this.getParsedResult(t,o,i),Ms(n[o])&&(s=!0);return s?Eh(e.map(t=>Ms(n[t])?n[t]:(0,bt.of)(n[t]))).pipe((0,Dt.U)(t=>{let i={};return t.forEach((t,n)=>{i[e[n]]=t}),i})):n}if(t&&(n=this.parser.interpolate(this.parser.getValue(t,e),i)),void 0===n&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(n=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e),i)),void 0===n){let t={key:e,translateService:this};void 0!==i&&(t.interpolateParams=i),n=this.missingTranslationHandler.handle(t)}return void 0!==n?n:e}get(t,e){if(!Ih(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Nt.b)(i=>Ms(i=this.getParsedResult(i,t,e))?i:(0,bt.of)(i)));{let i=this.getParsedResult(this.translations[this.currentLang],t,e);return Ms(i)?i:(0,bt.of)(i)}}getStreamOnTranslationChange(t,e){if(!Ih(t)||!t.length)throw new Error('Parameter "key" required');return Et(xt(()=>this.get(t,e)),this.onTranslationChange.pipe((0,zt.w)(i=>{const n=this.getParsedResult(i.translations,t,e);return"function"==typeof n.subscribe?n:(0,bt.of)(n)})))}stream(t,e){if(!Ih(t)||!t.length)throw new Error('Parameter "key" required');return Et(xt(()=>this.get(t,e)),this.onLangChange.pipe((0,zt.w)(i=>{const n=this.getParsedResult(i.translations,t,e);return Ms(n)?n:(0,bt.of)(n)})))}instant(t,e){if(!Ih(t)||!t.length)throw new Error('Parameter "key" required');let i=this.getParsedResult(this.translations[this.currentLang],t,e);if(Ms(i)){if(t instanceof Array){let e={};return t.forEach((i,n)=>{e[t[n]]=t[n]}),e}return t}return i}set(t,e,i=this.currentLang){this.translations[i][t]=this.compiler.compile(e,i),this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==t?(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Nh),s.LFG(xh),s.LFG(jh),s.LFG(Yh),s.LFG(Dh),s.LFG(qh),s.LFG(Kh),s.LFG(Zh),s.LFG(Uh))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Vh=(()=>{class t{constructor(t,e){this.translate=t,this._ref=e,this.value=""}updateValue(t,e,i){let n=e=>{this.value=void 0!==e?e:t,this.lastKey=t,this._ref.markForCheck()};if(i){let s=this.translate.getParsedResult(i,t,e);Ms(s.subscribe)?s.subscribe(n):n(s)}this.translate.get(t,e).subscribe(n)}transform(t,...e){if(!t||!t.length)return t;if(Ph(t,this.lastKey)&&Ph(e,this.lastParams))return this.value;let i;if(Ih(e[0])&&e.length)if("string"==typeof e[0]&&e[0].length){let t=e[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{i=JSON.parse(t)}catch(n){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${e[0]}`)}}else"object"!=typeof e[0]||Array.isArray(e[0])||(i=e[0]);return this.lastKey=t,this.lastParams=e,this.updateValue(t,i),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(e=>{this.lastKey&&e.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(t,i,e.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(e=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i,e.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Gh,16),s.Y36(s.sBO,16))},t.\u0275pipe=s.Yjl({name:"translate",type:t,pure:!1}),t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),$h=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:xh,useClass:Rh},e.compiler||{provide:jh,useClass:Fh},e.parser||{provide:Yh,useClass:Bh},e.missingTranslationHandler||{provide:Dh,useClass:zh},Nh,{provide:Kh,useValue:e.isolate},{provide:qh,useValue:e.useDefaultLang},{provide:Zh,useValue:e.extend},{provide:Uh,useValue:e.defaultLanguage},Gh]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:xh,useClass:Rh},e.compiler||{provide:jh,useClass:Fh},e.parser||{provide:Yh,useClass:Bh},e.missingTranslationHandler||{provide:Dh,useClass:zh},{provide:Kh,useValue:e.isolate},{provide:qh,useValue:e.useDefaultLang},{provide:Zh,useValue:e.extend},{provide:Uh,useValue:e.defaultLanguage},Gh]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),Wh=(()=>{class t{constructor(t){this.dialogRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(dh))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(t,e){1&t&&(s.TgZ(0,"h2",0),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},directives:[vh],pipes:[Vh],styles:[""]}),t})();const Jh=["mat-button",""],Qh=["*"],Xh=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class td{constructor(t){this._elementRef=t}}const ed=gl(fl(ml(td)));let id=(()=>{class t extends ed{constructor(t,e,i){super(t),this._focusMonitor=e,this._animationMode=i,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const n of Xh)this._hasHostAttributes(n)&&this._getHostElement().classList.add(n);t.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(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(ra),s.Y36(el,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){if(1&t&&s.Gf(ql,5),2&t){let t;s.iGM(t=s.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(s.uIk("disabled",e.disabled||null),s.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[s.qOj],attrs:Jh,ngContentSelectors:Qh,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(t,e){1&t&&(s.F$t(),s.TgZ(0,"span",0),s.Hsn(1),s.qZA(),s._UZ(2,"span",1),s._UZ(3,"span",2)),2&t&&(s.xp6(2),s.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),s.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[ql],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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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-animation-noopable.mat-raised-button{transition:none;animation:none}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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-animation-noopable.mat-fab{transition:none;animation:none}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t})(),nd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Ul,pl],pl]}),t})();const sd=["underline"],od=["connectionContainer"],rd=["inputContainer"],ad=["label"];function cd(t,e){1&t&&(s.ynx(0),s.TgZ(1,"div",14),s._UZ(2,"div",15),s._UZ(3,"div",16),s._UZ(4,"div",17),s.qZA(),s.TgZ(5,"div",18),s._UZ(6,"div",15),s._UZ(7,"div",16),s._UZ(8,"div",17),s.qZA(),s.BQk())}function ud(t,e){1&t&&(s.TgZ(0,"div",19),s.Hsn(1,1),s.qZA())}function ld(t,e){if(1&t&&(s.ynx(0),s.Hsn(1,2),s.TgZ(2,"span"),s._uU(3),s.qZA(),s.BQk()),2&t){const t=s.oxw(2);s.xp6(3),s.Oqu(t._control.placeholder)}}function hd(t,e){1&t&&s.Hsn(0,3,["*ngSwitchCase","true"])}function dd(t,e){1&t&&(s.TgZ(0,"span",23),s._uU(1," *"),s.qZA())}function pd(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"label",20,21),s.NdJ("cdkObserveContent",function(){return s.CHM(t),s.oxw().updateOutlineGap()}),s.YNc(2,ld,4,1,"ng-container",12),s.YNc(3,hd,1,0,"ng-content",12),s.YNc(4,dd,2,0,"span",22),s.qZA()}if(2&t){const t=s.oxw();s.ekj("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),s.Q6J("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),s.uIk("for",t._control.id)("aria-owns",t._control.id),s.xp6(2),s.Q6J("ngSwitchCase",!1),s.xp6(1),s.Q6J("ngSwitchCase",!0),s.xp6(1),s.Q6J("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function fd(t,e){1&t&&(s.TgZ(0,"div",24),s.Hsn(1,4),s.qZA())}function gd(t,e){if(1&t&&(s.TgZ(0,"div",25,26),s._UZ(2,"span",27),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.ekj("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function md(t,e){if(1&t&&(s.TgZ(0,"div"),s.Hsn(1,5),s.qZA()),2&t){const t=s.oxw();s.Q6J("@transitionMessages",t._subscriptAnimationState)}}function _d(t,e){if(1&t&&(s.TgZ(0,"div",31),s._uU(1),s.qZA()),2&t){const t=s.oxw(2);s.Q6J("id",t._hintLabelId),s.xp6(1),s.Oqu(t.hintLabel)}}function wd(t,e){if(1&t&&(s.TgZ(0,"div",28),s.YNc(1,_d,2,2,"div",29),s.Hsn(2,6),s._UZ(3,"div",30),s.Hsn(4,7),s.qZA()),2&t){const t=s.oxw();s.Q6J("@transitionMessages",t._subscriptAnimationState),s.xp6(1),s.Q6J("ngIf",t.hintLabel)}}const yd=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],bd=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Ad=0;const vd=new s.OlP("MatError");let kd=(()=>{class t{constructor(t,e){this.id="mat-error-"+Ad++,t||e.nativeElement.setAttribute("aria-live","polite")}}return t.\u0275fac=function(e){return new(e||t)(s.$8M("aria-live"),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&s.uIk("id",e.id)},inputs:{id:"id"},features:[s._Bn([{provide:vd,useExisting:t}])]}),t})();const Td={transitionMessages:_a("transitionMessages",[va("enter",Aa({opacity:1,transform:"translateY(0%)"})),Ta("void => enter",[Aa({opacity:0,transform:"translateY(-5px)"}),wa("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Cd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t}),t})(),Sd=0;const Md=new s.OlP("MatHint");let Ed=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+Sd++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(s.uIk("id",e.id)("align",null),s.ekj("mat-form-field-hint-end","end"===e.align))},inputs:{align:"align",id:"id"},features:[s._Bn([{provide:Md,useExisting:t}])]}),t})(),Ld=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-label"]]}),t})(),xd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-placeholder"]]}),t})();const Rd=new s.OlP("MatPrefix"),Dd=new s.OlP("MatSuffix");let zd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","matSuffix",""]],features:[s._Bn([{provide:Dd,useExisting:t}])]}),t})(),Pd=0;class Id{constructor(t){this._elementRef=t}}const Od=gl(Id,"primary"),Hd=new s.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Yd=new s.OlP("MatFormField");let Bd=(()=>{class t extends Od{constructor(t,e,i,n,s,o,r,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=n,this._defaults=s,this._platform=o,this._ngZone=r,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new At.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Pd++,this._labelId="mat-form-field-label-"+Pd++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=ss(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe(Ot(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(js(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(js(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,Ho.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Ot(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Ot(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(js(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(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_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,ds(this._label.nativeElement,"transitionend").pipe((0,Pt.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 t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,i=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),i&&t.push(i.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,i=0;const n=this._connectionContainerRef.nativeElement,s=n.querySelectorAll(".mat-form-field-outline-start"),o=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=n.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const o=this._getStartEnd(s),r=t.children,a=this._getStartEnd(r[0].getBoundingClientRect());let c=0;for(let t=0;t0?.75*c+10:0}for(let r=0;r{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,pl,zr],pl]}),t})(),Fd=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Qsj),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t}),t})(),Nd=(()=>{class t extends Fd{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,features:[s.qOj]}),t})();const Kd=new s.OlP("NgValueAccessor"),qd={provide:Kd,useExisting:(0,s.Gpc)(()=>Zd),multi:!0},Ud=new s.OlP("CompositionEventMode");let Zd=(()=>{class t extends Fd{constructor(t,e,i){super(t,e),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=(0,n.q)()?(0,n.q)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Qsj),s.Y36(s.SBq),s.Y36(Ud,8))},t.\u0275dir=s.lG2({type:t,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(t,e){1&t&&s.NdJ("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[s._Bn([qd]),s.qOj]}),t})();function Gd(t){return null==t||0===t.length}function Vd(t){return null!=t&&"number"==typeof t.length}const $d=new s.OlP("NgValidators"),Wd=new s.OlP("NgAsyncValidators"),Jd=/^(?=.{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 Qd{static min(t){return function(t){return e=>{if(Gd(e.value)||Gd(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i{if(Gd(e.value)||Gd(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}(t)}static required(t){return Xd(t)}static requiredTrue(t){return function(t){return!0===t.value?null:{required:!0}}(t)}static email(t){return function(t){return Gd(t.value)||Jd.test(t.value)?null:{email:!0}}(t)}static minLength(t){return function(t){return e=>Gd(e.value)||!Vd(e.value)?null:e.value.lengthVd(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}(t)}static pattern(t){return function(t){if(!t)return tp;let e,i;return"string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),t=>{if(Gd(t.value))return null;const n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}}(t)}static nullValidator(t){return null}static compose(t){return rp(t)}static composeAsync(t){return cp(t)}}function Xd(t){return Gd(t.value)?{required:!0}:null}function tp(t){return null}function ep(t){return null!=t}function ip(t){const e=(0,s.QGY)(t)?(0,yt.D)(t):t;return(0,s.CqO)(e),e}function np(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function sp(t,e){return e.map(e=>e(t))}function op(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function rp(t){if(!t)return null;const e=t.filter(ep);return 0==e.length?null:function(t){return np(sp(t,e))}}function ap(t){return null!=t?rp(op(t)):null}function cp(t){if(!t)return null;const e=t.filter(ep);return 0==e.length?null:function(t){return Eh(sp(t,e).map(ip)).pipe((0,Dt.U)(np))}}function up(t){return null!=t?cp(op(t)):null}function lp(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function hp(t){return t._rawValidators}function dp(t){return t._rawAsyncValidators}let pp=(()=>{class t{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(t){this._rawValidators=t||[],this._composedValidatorFn=ap(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=up(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t}),t})(),fp=(()=>{class t extends pp{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,features:[s.qOj]}),t})();class gp extends pp{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class mp{constructor(t){this._cd=t}is(t){var e,i;return!!(null===(i=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===i?void 0:i[t])}}let _p=(()=>{class t extends mp{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(gp,2))},t.\u0275dir=s.lG2({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&s.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[s.qOj]}),t})(),wp=(()=>{class t extends mp{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(fp,10))},t.\u0275dir=s.lG2({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&s.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[s.qOj]}),t})();function yp(t,e){return[...e.path,t]}function bp(t,e){kp(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Cp(t,e)})}(t,e),function(t,e){const i=(t,i)=>{e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Cp(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const i=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}(t,e)}function Ap(t,e,i=!0){const n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),Tp(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function vp(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function kp(t,e){const i=hp(t);null!==e.validator?t.setValidators(lp(i,e.validator)):"function"==typeof i&&t.setValidators([i]);const n=dp(t);null!==e.asyncValidator?t.setAsyncValidators(lp(n,e.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);const s=()=>t.updateValueAndValidity();vp(e._rawValidators,s),vp(e._rawAsyncValidators,s)}function Tp(t,e){let i=!1;if(null!==t){if(null!==e.validator){const n=hp(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.validator);s.length!==n.length&&(i=!0,t.setValidators(s))}}if(null!==e.asyncValidator){const n=dp(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.asyncValidator);s.length!==n.length&&(i=!0,t.setAsyncValidators(s))}}}const n=()=>{};return vp(e._rawValidators,n),vp(e._rawAsyncValidators,n),i}function Cp(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Sp(t,e){kp(t,e)}function Mp(t,e){if(!t.hasOwnProperty("model"))return!1;const i=t.model;return!!i.isFirstChange()||!Object.is(e,i.currentValue)}function Ep(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function Lp(t,e){if(!e)return null;let i,n,s;return Array.isArray(e),e.forEach(t=>{t.constructor===Zd?i=t:Object.getPrototypeOf(t.constructor)===Nd?n=t:s=t}),s||n||i||null}function xp(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}const Rp="VALID",Dp="INVALID",zp="PENDING",Pp="DISABLED";function Ip(t){return(Bp(t)?t.validators:t)||null}function Op(t){return Array.isArray(t)?ap(t):t||null}function Hp(t,e){return(Bp(e)?e.asyncValidators:t)||null}function Yp(t){return Array.isArray(t)?up(t):t||null}function Bp(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class jp{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=Op(this._rawValidators),this._composedAsyncValidatorFn=Yp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Rp}get invalid(){return this.status===Dp}get pending(){return this.status==zp}get disabled(){return this.status===Pp}get enabled(){return this.status!==Pp}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=Op(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=Yp(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=zp,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Pp,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Rp,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==Rp&&this.status!==zp||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Pp:Rp}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=zp,this._hasOwnPendingAsyncValidator=!0;const e=ip(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let n=t;return e.forEach(t=>{n=n instanceof Np?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof Kp&&n.at(t)||null}),n}(this,t)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new s.vpe,this.statusChanges=new s.vpe}_calculateStatus(){return this._allControlsDisabled()?Pp:this.errors?Dp:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(zp)?zp:this._anyControlsHaveStatus(Dp)?Dp:Rp}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Bp(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Fp extends jp{constructor(t=null,e,i){super(Ip(e),Hp(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){xp(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){xp(this._onDisabledChange,t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Np extends jp{constructor(t,e,i){super(Ip(e),Hp(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof Fp?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((t,n)=>{i=e(i,t,n)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class Kp extends jp{constructor(t,e,i){super(Ip(e),Hp(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,i)=>{this._throwIfControlMissing(i),this.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,i)=>{this.at(i)&&this.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof Fp?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const qp={provide:fp,useExisting:(0,s.Gpc)(()=>Zp)},Up=(()=>Promise.resolve(null))();let Zp=(()=>{class t extends fp{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new s.vpe,this.form=new Np({},ap(t),up(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Up.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),bp(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Up.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),xp(this._directives,t)})}addFormGroup(t){Up.then(()=>{const e=this._findContainer(t.path),i=new Np({});Sp(i,t),e.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Up.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){Up.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,Ep(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(s.Y36($d,10),s.Y36(Wd,10))},t.\u0275dir=s.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&s.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s._Bn([qp]),s.qOj]}),t})();const Gp={provide:gp,useExisting:(0,s.Gpc)(()=>$p)},Vp=(()=>Promise.resolve(null))();let $p=(()=>{class t extends gp{constructor(t,e,i,n){super(),this.control=new Fp,this._registered=!1,this.update=new s.vpe,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=Lp(0,n)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),Mp(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?yp(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_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(){bp(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(t){Vp.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,i=""===e||e&&"false"!==e;Vp.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(fp,9),s.Y36($d,10),s.Y36(Wd,10),s.Y36(Kd,10))},t.\u0275dir=s.lG2({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[s._Bn([Gp]),s.qOj,s.TTD]}),t})(),Wp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),Jp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();const Qp=new s.OlP("NgModelWithFormControlWarning"),Xp={provide:gp,useExisting:(0,s.Gpc)(()=>tf)};let tf=(()=>{class t extends gp{constructor(t,e,i,n){super(),this._ngModelWarningConfig=n,this.update=new s.vpe,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(e),this.valueAccessor=Lp(0,i)}set isDisabled(t){}ngOnChanges(t){if(this._isControlChanged(t)){const e=t.form.previousValue;e&&Ap(e,this,!1),bp(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Mp(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ap(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(s.Y36($d,10),s.Y36(Wd,10),s.Y36(Kd,10),s.Y36(Qp,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[s._Bn([Xp]),s.qOj,s.TTD]}),t._ngModelWarningSentOnce=!1,t})();const ef={provide:fp,useExisting:(0,s.Gpc)(()=>nf)};let nf=(()=>{class t extends fp{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new s.vpe,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Tp(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return bp(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){Ap(t.control||null,t,!1),xp(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,Ep(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,i=this.form.get(t.path);e!==i&&(Ap(e||null,t),i instanceof Fp&&(bp(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);Sp(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return Tp(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){kp(this.form,this),this._oldForm&&Tp(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36($d,10),s.Y36(Wd,10))},t.\u0275dir=s.lG2({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&s.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s._Bn([ef]),s.qOj,s.TTD]}),t})();const sf={provide:gp,useExisting:(0,s.Gpc)(()=>of)};let of=(()=>{class t extends gp{constructor(t,e,i,n,o){super(),this._ngModelWarningConfig=o,this._added=!1,this.update=new s.vpe,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=Lp(0,n)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),Mp(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return yp(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.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(fp,13),s.Y36($d,10),s.Y36(Wd,10),s.Y36(Kd,10),s.Y36(Qp,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[s._Bn([sf]),s.qOj,s.TTD]}),t._ngModelWarningSentOnce=!1,t})();const rf={provide:$d,useExisting:(0,s.Gpc)(()=>af),multi:!0};let af=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!=`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?Xd(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&s.uIk("required",e.required?"":null)},inputs:{required:"required"},features:[s._Bn([rf])]}),t})(),cf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Jp]]}),t})(),uf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[cf]}),t})(),lf=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Qp,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[cf]}),t})(),hf=(()=>{class t{group(t,e=null){const i=this._reduceControls(t);let n,s=null,o=null;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(s=null!=e.validators?e.validators:null,o=null!=e.asyncValidators?e.asyncValidators:null,n=null!=e.updateOn?e.updateOn:void 0):(s=null!=e.validator?e.validator:null,o=null!=e.asyncValidator?e.asyncValidator:null)),new Np(i,{asyncValidators:o,updateOn:n,validators:s})}control(t,e,i){return new Fp(t,e,i)}array(t,e,i){const n=t.map(t=>this._createControl(t));return new Kp(n,e,i)}_reduceControls(t){const e={};return Object.keys(t).forEach(i=>{e[i]=this._createControl(t[i])}),e}_createControl(t){return t instanceof Fp||t instanceof Np||t instanceof Kp?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t},token:t,providedIn:lf}),t})();const df=["trigger"],pf=["panel"];function ff(t,e){if(1&t&&(s.TgZ(0,"span",8),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Oqu(t.placeholder)}}function gf(t,e){if(1&t&&(s.TgZ(0,"span",12),s._uU(1),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Oqu(t.triggerValue)}}function mf(t,e){1&t&&s.Hsn(0,0,["*ngSwitchCase","true"])}function _f(t,e){if(1&t&&(s.TgZ(0,"span",9),s.YNc(1,gf,2,1,"span",10),s.YNc(2,mf,1,0,"ng-content",11),s.qZA()),2&t){const t=s.oxw();s.Q6J("ngSwitch",!!t.customTrigger),s.xp6(2),s.Q6J("ngSwitchCase",!0)}}function wf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",13),s.TgZ(1,"div",14,15),s.NdJ("@transformPanel.done",function(e){return s.CHM(t),s.oxw()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return s.CHM(t),s.oxw()._handleKeydown(e)}),s.Hsn(3,1),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("@transformPanelWrap",void 0),s.xp6(1),s.Gre("mat-select-panel ",t._getPanelTheme(),""),s.Udp("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),s.Q6J("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),s.uIk("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const yf=[[["mat-select-trigger"]],"*"],bf=["mat-select-trigger","*"],Af={transformPanelWrap:_a("transformPanelWrap",[Ta("* => void",Sa("@transformPanel",[Ca()],{optional:!0}))]),transformPanel:_a("transformPanel",[va("void",Aa({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),va("showing",Aa({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),va("showing-multiple",Aa({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Ta("void => *",wa("120ms cubic-bezier(0, 0, 0.2, 1)")),Ta("* => void",wa("100ms 25ms linear",Aa({opacity:0})))])};let vf=0;const kf=256,Tf=new s.OlP("mat-select-scroll-strategy"),Cf=new s.OlP("MAT_SELECT_CONFIG"),Sf={provide:Tf,deps:[vr],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class Mf{constructor(t,e){this.source=t,this.value=e}}class Ef{constructor(t,e,i,n,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=s}}const Lf=ml(_l(fl(wl(Ef)))),xf=new s.OlP("MatSelectTrigger");let Rf=(()=>{class t extends Lf{constructor(t,e,i,n,o,r,a,c,u,l,h,d,p,f){var g,m,_;super(o,n,a,c,l),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=i,this._dir=r,this._parentFormField=u,this.ngControl=l,this._liveAnnouncer=p,this._defaultOptions=f,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+vf++,this._triggerAriaLabelledBy=null,this._destroy=new At.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+vf++,this._panelDoneAnimatingStream=new At.xQ,this._overlayPanelClass=(null===(g=this._defaultOptions)||void 0===g?void 0:g.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(_=null===(m=this._defaultOptions)||void 0===m?void 0:m.disableOptionCentering)&&void 0!==_&&_,this.ariaLabel="",this.optionSelectionChanges=xt(()=>{const t=this.options;return t?t.changes.pipe(Ot(t),(0,zt.w)(()=>(0,Ho.T)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe((0,Pt.q)(1),(0,zt.w)(()=>this.optionSelectionChanges))}),this.openedChange=new s.vpe,this._openedStream=this.openedChange.pipe((0,wt.h)(t=>t),(0,Dt.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,wt.h)(t=>!t),(0,Dt.U)(()=>{})),this.selectionChange=new s.vpe,this.valueChange=new s.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==f?void 0:f.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=f.typeaheadDebounceInterval),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=ss(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=ss(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=ss(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=os(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new bo(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Es(),js(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(js(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(Ot(null),js(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.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(t){this.value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,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 t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,i=e===Zo||e===qo||e===Ko||e===Uo,n=e===jo||e===No,s=this._keyManager;if(!s.isTyping()&&n&&!Go(t)||(this.multiple||t.altKey)&&i)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;s.onKeydown(t);const i=this.selected;i&&e!==i&&this._liveAnnouncer.announce(i.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,i=t.keyCode,n=i===Zo||i===qo,s=e.isTyping();if(n&&t.altKey)t.preventDefault(),this.close();else if(s||i!==jo&&i!==No||!e.activeItem||Go(t))if(!s&&this._multiple&&65===i&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const i=e.activeItemIndex;e.onKeydown(t),this._multiple&&n&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==i&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.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,Pt.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._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(t=>this._selectValue(t)),this._sortValues();else{const e=this._selectValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{if(this._selectionModel.isSelected(e))return!1;try{return null!=e.value&&this._compareWith(e.value,t)}catch(i){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new qr(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(js(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(js(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 t=(0,Ho.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(js(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,Ho.T)(...this.options.map(t=>t._stateChanges)).pipe(js(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(t,e){const i=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(i!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),i!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,i)=>this.sortComparator?this.sortComparator(e,i,t):t.indexOf(e)-t.indexOf(i)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();let i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Co),s.Y36(s.sBO),s.Y36(s.R0b),s.Y36(zl),s.Y36(s.SBq),s.Y36(mo,8),s.Y36(Zp,8),s.Y36(nf,8),s.Y36(Yd,8),s.Y36(gp,10),s.$8M("tabindex"),s.Y36(Tf),s.Y36(ta),s.Y36(Cf,8))},t.\u0275dir=s.lG2({type:t,viewQuery:function(t,e){if(1&t&&(s.Gf(df,5),s.Gf(pf,5),s.Gf(Sr,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.trigger=t.first),s.iGM(t=s.CRH())&&(e.panel=t.first),s.iGM(t=s.CRH())&&(e._overlayDir=t.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[s.qOj,s.TTD]}),t})(),Df=(()=>{class t extends Rf{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(t,e,i){const n=this._getItemHeight();return Math.min(Math.max(0,n*t-e+n/2),i)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(js(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,Pt.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(t){const e=sh(t,this.options,this.optionGroups),i=this._getItemHeight();var n,s,o;this.panel.nativeElement.scrollTop=(s=i,(n=(t+e)*i)<(o=this.panel.nativeElement.scrollTop)?n:n+s>o+256?Math.max(0,n-256+s):o)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new Mf(this,t)}_calculateOverlayOffsetX(){const t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),i=this._isRtl(),n=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}i||(s*=-1);const o=0-(t.left+s-(i?n:0)),r=t.right+s-e.width+(i?0:n);o>0?s+=o+8:r>0&&(s-=r+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,i){const n=this._getItemHeight(),s=(n-this._triggerRect.height)/2,o=Math.floor(kf/n);let r;return this.disableOptionCentering?0:(r=0===this._scrollTop?t*n:this._scrollTop===i?(t-(this._getItemCount()-o))*n+(n-(this._getItemCount()*n-kf)%n):e-n/2,Math.round(-1*r-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,s=i.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),r=Math.min(this._getItemCount()*e,kf)-o-this._triggerRect.height;r>s?this._adjustPanelUp(r,s):o>n?this._adjustPanelDown(o,n,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const i=Math.round(t-e);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,i){const n=Math.round(t-e);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),i=Math.min(e*t,kf),n=e*t-i;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=sh(s,this.options,this.optionGroups);const o=i/2;this._scrollTop=this._calculateOverlayScroll(s,o,n),this._offsetY=this._calculateOverlayOffsetY(s,o,n),this._checkOverlayWithinViewport(n)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,xf,5),s.Suo(i,nh,5),s.Suo(i,Xl,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.customTrigger=t.first),s.iGM(t=s.CRH())&&(e.options=t),s.iGM(t=s.CRH())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&s.NdJ("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(s.uIk("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),s.ekj("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[s._Bn([{provide:Cd,useExisting:t},{provide:Vl,useExisting:t}]),s.qOj],ngContentSelectors:bf,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(t,e){if(1&t&&(s.F$t(yf),s.TgZ(0,"div",0,1),s.NdJ("click",function(){return e.toggle()}),s.TgZ(3,"div",2),s.YNc(4,ff,2,1,"span",3),s.YNc(5,_f,3,2,"span",4),s.qZA(),s.TgZ(6,"div",5),s._UZ(7,"div",6),s.qZA(),s.qZA(),s.YNc(8,wf,4,14,"ng-template",7),s.NdJ("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=s.MAs(1);s.uIk("aria-owns",e.panelOpen?e.id+"-panel":null),s.xp6(3),s.Q6J("ngSwitch",e.empty),s.uIk("id",e._valueId),s.xp6(1),s.Q6J("ngSwitchCase",!0),s.xp6(1),s.Q6J("ngSwitchCase",!1),s.xp6(3),s.Q6J("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[Cr,n.RF,n.n9,Sr,n.ED,n.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;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{display:table-cell;vertical-align:middle}.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 transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.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:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[Af.transformPanelWrap,Af.transformPanel]},changeDetection:0}),t})(),zf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Sf],imports:[[n.ez,Er,oh,pl],So,jd,oh,pl]}),t})();class Pf{constructor(t){this.total=t}call(t,e){return e.subscribe(new If(t,this.total))}}class If extends Ht.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}const Of=new Set;let Hf,Yf=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Bf}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!Of.has(t))try{Hf||(Hf=document.createElement("style"),Hf.setAttribute("type","text/css"),document.head.appendChild(Hf)),Hf.sheet&&(Hf.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),Of.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(eo))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(eo))},token:t,providedIn:"root"}),t})();function Bf(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let jf=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new At.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return Ff(as(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=Ff(as(t)).map(t=>this._registerQuery(t).observable);let i=(0,Tt.aj)(e);return i=Et(i.pipe((0,Pt.q)(1)),i.pipe(t=>t.lift(new Pf(1)),(0,Lr.b)(0))),i.pipe((0,Dt.U)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:i})=>{e.matches=e.matches||t,e.breakpoints[i]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),i={observable:new Ct.y(t=>{const i=e=>this._zone.run(()=>t.next(e));return e.addListener(i),()=>{e.removeListener(i)}}).pipe(Ot(e),(0,Dt.U)(({matches:e})=>({query:t,matches:e})),js(this._destroySubject)),mql:e};return this._queries.set(t,i),i}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Yf),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Yf),s.LFG(s.R0b))},token:t,providedIn:"root"}),t})();function Ff(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const Nf={tooltipState:_a("state",[va("initial, void, hidden",Aa({opacity:0,transform:"scale(0)"})),va("visible",Aa({transform:"scale(1)"})),Ta("* => visible",wa("200ms cubic-bezier(0, 0, 0.2, 1)",ka([Aa({opacity:0,transform:"scale(0)",offset:0}),Aa({opacity:.5,transform:"scale(0.99)",offset:.5}),Aa({opacity:1,transform:"scale(1)",offset:1})]))),Ta("* => hidden",wa("100ms cubic-bezier(0, 0, 0.2, 1)",Aa({opacity:0})))])},Kf=uo({passive:!0}),qf=new s.OlP("mat-tooltip-scroll-strategy"),Uf={provide:qf,deps:[vr],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},Zf=new s.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Gf=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u,l,h){this._overlay=t,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=n,this._ngZone=s,this._platform=o,this._ariaDescriber=r,this._focusMonitor=a,this._dir=u,this._defaultOptions=l,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 At.xQ,this._handleKeydown=t=>{this._isTooltipVisible()&&t.keyCode===Fo&&!Go(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=c,this._document=h,l&&(l.position&&(this.position=l.position),l.touchGestures&&(this.touchGestures=l.touchGestures)),u.change.pipe(js(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){var e;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(e=this._tooltipInstance)||void 0===e||e.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=ss(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).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(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(js(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,i])=>{t.removeEventListener(e,i,Kf)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new Lo(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(js(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return e.positionChanges.pipe(js(this._destroyed)).subscribe(t=>{this._updateCurrentPositionClass(t.connectionPair),this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:`${this._cssClassPrefix}-tooltip-panel`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(js(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const e=t.getConfig().positionStrategy,i=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([this._addOffset(Object.assign(Object.assign({},i.main),n.main)),this._addOffset(Object.assign(Object.assign({},i.fallback),n.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e||"below"==e?i={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={originX:"end",originY:"center"});const{x:n,y:s}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:n,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e?i={overlayX:"center",overlayY:"bottom"}:"below"==e?i={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={overlayX:"start",overlayY:"center"});const{x:n,y:s}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:n,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Pt.q)(1),js(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){const{overlayY:e,originX:i,originY:n}=t;let s;if(s="center"===e?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===e&&"top"===n?"above":"below",s!==this._currentPosition){const t=this._overlayRef;if(t){const e=`${this._cssClassPrefix}-tooltip-panel-`;t.removePanelClass(e+this._currentPosition),t.addPanelClass(e+s)}this._currentPosition=s}}_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 t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,Kf)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const e=this._document.elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;e===i||i.contains(e)||this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,i=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),"on"!==t&&e.draggable||(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(vr),s.Y36(s.SBq),s.Y36(ko),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(eo),s.Y36(jr),s.Y36(ra),s.Y36(void 0),s.Y36(mo),s.Y36(void 0),s.Y36(n.K0))},t.\u0275dir=s.lG2({type:t,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),Vf=(()=>{class t extends Gf{constructor(t,e,i,n,s,o,r,a,c,u,l,h){super(t,e,i,n,s,o,r,a,c,u,l,h),this._tooltipComponent=Wf}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(vr),s.Y36(s.SBq),s.Y36(ko),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(eo),s.Y36(jr),s.Y36(ra),s.Y36(qf),s.Y36(mo,8),s.Y36(Zf,8),s.Y36(n.K0))},t.\u0275dir=s.lG2({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[s.qOj]}),t})(),$f=(()=>{class t{constructor(t){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new At.xQ}show(t){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._markForCheck()},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t}),t})(),Wf=(()=>{class t extends $f{constructor(t,e){super(t),this._breakpointObserver=e,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36(jf))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e._handleBodyInteraction()},!1,s.pYS)("auxclick",function(){return e._handleBodyInteraction()},!1,s.pYS),2&t&&s.Udp("zoom","visible"===e._visibility?1:null)},features:[s.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(s.TgZ(0,"div",0),s.NdJ("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),s.ALo(1,"async"),s._uU(2),s.qZA()),2&t){let t;s.ekj("mat-tooltip-handset",null==(t=s.lcZ(1,5,e._isHandset))?null:t.matches),s.Q6J("ngClass",e.tooltipClass)("@state",e._visibility),s.xp6(2),s.Oqu(e.message)}},directives:[n.mk],pipes:[n.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[Nf.tooltipState]},changeDetection:0}),t})(),Jf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Uf],imports:[[pa,n.ez,Er,pl],pl,So]}),t})();function Qf(t,e){if(1&t&&(s.TgZ(0,"mat-option",19),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.hij(" ",t," ")}}function Xf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-form-field",16),s.TgZ(1,"mat-select",17),s.NdJ("selectionChange",function(e){return s.CHM(t),s.oxw(2)._changePageSize(e.value)}),s.YNc(2,Qf,2,2,"mat-option",18),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(2);s.Q6J("appearance",t._formFieldAppearance)("color",t.color),s.xp6(1),s.Q6J("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),s.xp6(1),s.Q6J("ngForOf",t._displayedPageSizeOptions)}}function tg(t,e){if(1&t&&(s.TgZ(0,"div",20),s._uU(1),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Oqu(t.pageSize)}}function eg(t,e){if(1&t&&(s.TgZ(0,"div",12),s.TgZ(1,"div",13),s._uU(2),s.qZA(),s.YNc(3,Xf,3,6,"mat-form-field",14),s.YNc(4,tg,2,1,"div",15),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.hij(" ",t._intl.itemsPerPageLabel," "),s.xp6(1),s.Q6J("ngIf",t._displayedPageSizeOptions.length>1),s.xp6(1),s.Q6J("ngIf",t._displayedPageSizeOptions.length<=1)}}function ig(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",21),s.NdJ("click",function(){return s.CHM(t),s.oxw().firstPage()}),s.O4$(),s.TgZ(1,"svg",7),s._UZ(2,"path",22),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),s.uIk("aria-label",t._intl.firstPageLabel)}}function ng(t,e){if(1&t){const t=s.EpF();s.O4$(),s.kcU(),s.TgZ(0,"button",23),s.NdJ("click",function(){return s.CHM(t),s.oxw().lastPage()}),s.O4$(),s.TgZ(1,"svg",7),s._UZ(2,"path",24),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),s.uIk("aria-label",t._intl.lastPageLabel)}}let sg=(()=>{class t{constructor(){this.changes=new At.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,i)=>{if(0==i||0==e)return`0 of ${i}`;const n=t*e;return`${n+1} \u2013 ${n<(i=Math.max(i,0))?Math.min(n+e,i):n+e} of ${i}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const og={provide:sg,deps:[[new s.FiY,new s.tp0,sg]],useFactory:function(t){return t||new sg}},rg=new s.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS");class ag{}const cg=fl(yl(ag));let ug=(()=>{class t extends cg{constructor(t,e,i){if(super(),this._intl=t,this._changeDetectorRef=e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new s.vpe,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){const{pageSize:t,pageSizeOptions:e,hidePageSize:n,showFirstLastButtons:s}=i;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=n&&(this._hidePageSize=n),null!=s&&(this._showFirstLastButtons=s)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(os(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=os(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(os(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>os(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=ss(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=ss(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndext-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(sg),s.Y36(s.sBO),s.Y36(void 0))},t.\u0275dir=s.lG2({type:t,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[s.qOj]}),t})(),lg=(()=>{class t extends ug{constructor(t,e,i){super(t,e,i),i&&null!=i.formFieldAppearance&&(this._formFieldAppearance=i.formFieldAppearance)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(sg),s.Y36(s.sBO),s.Y36(rg,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[s.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","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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.YNc(2,eg,5,3,"div",2),s.TgZ(3,"div",3),s.TgZ(4,"div",4),s._uU(5),s.qZA(),s.YNc(6,ig,3,5,"button",5),s.TgZ(7,"button",6),s.NdJ("click",function(){return e.previousPage()}),s.O4$(),s.TgZ(8,"svg",7),s._UZ(9,"path",8),s.qZA(),s.qZA(),s.kcU(),s.TgZ(10,"button",9),s.NdJ("click",function(){return e.nextPage()}),s.O4$(),s.TgZ(11,"svg",7),s._UZ(12,"path",10),s.qZA(),s.qZA(),s.YNc(13,ng,3,5,"button",11),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.Q6J("ngIf",!e.hidePageSize),s.xp6(3),s.hij(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),s.xp6(1),s.Q6J("ngIf",e.showFirstLastButtons),s.xp6(1),s.Q6J("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),s.uIk("aria-label",e._intl.previousPageLabel),s.xp6(3),s.Q6J("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),s.uIk("aria-label",e._intl.nextPageLabel),s.xp6(3),s.Q6J("ngIf",e.showFirstLastButtons))},directives:[n.O5,id,Vf,Bd,Df,n.sg,nh],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{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),t})(),hg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[og],imports:[[n.ez,nd,zf,Jf,pl]]}),t})();var dg=i(509);const pg=["mat-menu-item",""],fg=["*"];function gg(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",0),s.NdJ("keydown",function(e){return s.CHM(t),s.oxw()._handleKeydown(e)})("click",function(){return s.CHM(t),s.oxw().closed.emit("click")})("@transformMenu.start",function(e){return s.CHM(t),s.oxw()._onAnimationStart(e)})("@transformMenu.done",function(e){return s.CHM(t),s.oxw()._onAnimationDone(e)}),s.TgZ(1,"div",1),s.Hsn(2),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),s.uIk("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const mg={transformMenu:_a("transformMenu",[va("void",Aa({opacity:0,transform:"scale(0.8)"})),Ta("void => enter",wa("120ms cubic-bezier(0, 0, 0.2, 1)",Aa({opacity:1,transform:"scale(1)"}))),Ta("* => void",wa("100ms 25ms linear",Aa({opacity:0})))]),fadeInItems:_a("fadeInItems",[va("showing",Aa({opacity:1})),Ta("void => *",[Aa({opacity:0}),wa("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},_g=new s.OlP("MatMenuContent"),wg=new s.OlP("MAT_MENU_PANEL");class yg{}const bg=ml(fl(yg));let Ag=(()=>{class t extends bg{constructor(t,e,i,n){super(),this._elementRef=t,this._focusMonitor=i,this._parentMenu=n,this.role="menuitem",this._hovered=new At.xQ,this._focused=new At.xQ,this._highlighted=!1,this._triggersSubmenu=!1,n&&n.addItem&&n.addItem(this)}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),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(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t,e;const i=this._elementRef.nativeElement.cloneNode(!0),n=i.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class t{constructor(t,e,i){this._elementRef=t,this._ngZone=e,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new s.n_E,this._tabSubscription=te.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new At.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new s.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+kg++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=ss(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=ss(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Ur(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Ot(this._directDescendantItems),(0,zt.w)(t=>(0,Ho.T)(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Ot(this._directDescendantItems),(0,zt.w)(t=>(0,Ho.T)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,i=this._keyManager;switch(e){case Fo:Go(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case Ko:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case Uo:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:e!==qo&&e!==Zo||i.setFocusOrigin("keyboard"),i.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe((0,Pt.q)(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e=`mat-elevation-z${Math.min(4+t,24)}`,i=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const i=this._classList;i["mat-menu-before"]="before"===t,i["mat-menu-after"]="after"===t,i["mat-menu-above"]="above"===e,i["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Ot(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(vg))},t.\u0275dir=s.lG2({type:t,contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,_g,5),s.Suo(i,Ag,5),s.Suo(i,Ag,4)),2&t){let t;s.iGM(t=s.CRH())&&(e.lazyContent=t.first),s.iGM(t=s.CRH())&&(e._allItems=t),s.iGM(t=s.CRH())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&s.Gf(s.Rgc,5),2&t){let t;s.iGM(t=s.CRH())&&(e.templateRef=t.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),Cg=(()=>{class t extends Tg{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(vg))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&s.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[s._Bn([{provide:wg,useExisting:t}]),s.qOj],ngContentSelectors:fg,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(s.F$t(),s.YNc(0,gg,3,6,"ng-template"))},directives:[n.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}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}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}\n'],encapsulation:2,data:{animation:[mg.transformMenu,mg.fadeInItems]},changeDetection:0}),t})();const Sg=new s.OlP("mat-menu-scroll-strategy"),Mg={provide:Sg,deps:[vr],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},Eg=uo({passive:!0});let Lg=(()=>{class t{constructor(t,e,i,n,o,r,a,c){this._overlay=t,this._element=e,this._viewContainerRef=i,this._menuItemInstance=r,this._dir=a,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=te.w.EMPTY,this._hoverSubscription=te.w.EMPTY,this._menuCloseSubscription=te.w.EMPTY,this._handleTouchStart=t=>{na(t)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new s.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new s.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=n,this._parentMaterialMenu=o instanceof Tg?o:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,Eg),r&&(r._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(t),"click"!==t&&"tab"!==t||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Eg),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(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof Tg&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}updatePosition(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==t&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,e instanceof Tg?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe((0,wt.h)(t=>"void"===t.toState),(0,Pt.q)(1),js(e.lazyContent._attached)).subscribe({next:()=>e.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new ir({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,i]="before"===this.menu.xPosition?["end","start"]:["start","end"],[n,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[o,r]=[n,s],[a,c]=[e,i],u=0;this.triggersSubmenu()?(c=e="before"===this.menu.xPosition?"start":"end",i=a="end"===e?"start":"end",u="bottom"===n?8:-8):this.menu.overlapTrigger||(o="top"===n?"bottom":"top",r="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:o,overlayX:a,overlayY:n,offsetY:u},{originX:i,originY:o,overlayX:c,overlayY:n,offsetY:u},{originX:e,originY:r,overlayX:a,overlayY:s,offsetY:-u},{originX:i,originY:r,overlayX:c,overlayY:s,offsetY:-u}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,bt.of)(),n=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,wt.h)(t=>t!==this._menuItemInstance),(0,wt.h)(()=>this._menuOpen)):(0,bt.of)();return(0,Ho.T)(t,i,n,e)}_handleMousedown(t){ia(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;e!==jo&&e!==No||(this._openedBy="keyboard"),this.triggersSubmenu()&&(e===Uo&&"ltr"===this.dir||e===Ko&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,wt.h)(t=>t===this._menuItemInstance&&!t.disabled),(0,dg.g)(0,Ss)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Tg&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Pt.q)(1),(0,dg.g)(0,Ss),js(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new xo(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(vr),s.Y36(s.SBq),s.Y36(s.s_b),s.Y36(Sg),s.Y36(wg,8),s.Y36(Ag,10),s.Y36(mo,8),s.Y36(ra))},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&s.uIk("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),xg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Mg],imports:[pl]}),t})(),Rg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Mg],imports:[[n.ez,pl,Ul,Er,xg],So,pl,xg]}),t})();var Dg=i(1225),zg=i(1055);const Pg=["*"];function Ig(t){return Error(`Unable to find icon with the name "${t}"`)}function Og(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function Hg(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class Yg{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let Bg=(()=>{class t{constructor(t,e,i,n){this._httpClient=t,this._sanitizer=e,this._errorHandler=n,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i}addSvgIcon(t,e,i){return this.addSvgIconInNamespace("",t,e,i)}addSvgIconLiteral(t,e,i){return this.addSvgIconLiteralInNamespace("",t,e,i)}addSvgIconInNamespace(t,e,i,n){return this._addSvgIconConfig(t,e,new Yg(i,null,n))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,i,n){const o=this._sanitizer.sanitize(s.q3G.HTML,i);if(!o)throw Hg(i);return this._addSvgIconConfig(t,e,new Yg("",o,n))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,i){return this._addSvgIconSetConfig(t,new Yg(e,null,i))}addSvgIconSetLiteralInNamespace(t,e,i){const n=this._sanitizer.sanitize(s.q3G.HTML,e);if(!n)throw Hg(e);return this._addSvgIconSetConfig(t,new Yg("",n,i))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(s.q3G.RESOURCE_URL,t);if(!e)throw Og(t);const i=this._cachedIconsByUrl.get(e);return i?(0,bt.of)(jg(i)):this._loadSvgIconFromConfig(new Yg(t,null)).pipe((0,Qt.b)(t=>this._cachedIconsByUrl.set(e,t)),(0,Dt.U)(t=>jg(t)))}getNamedSvgIcon(t,e=""){const i=Fg(e,t);let n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);if(n=this._getIconConfigFromResolvers(e,t),n)return this._svgIconConfigs.set(i,n),this._getSvgFromConfig(n);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):(0,Dg._)(Ig(i))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?(0,bt.of)(jg(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe((0,Dt.U)(t=>jg(t)))}_getSvgFromIconSetConfigs(t,e){const i=this._extractIconWithNameFromAnySet(t,e);return i?(0,bt.of)(i):Eh(e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe((0,Ft.K)(e=>{const i=this._sanitizer.sanitize(s.q3G.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${i} failed: ${e.message}`)),(0,bt.of)(null)})))).pipe((0,Dt.U)(()=>{const i=this._extractIconWithNameFromAnySet(t,e);if(!i)throw Ig(t);return i}))}_extractIconWithNameFromAnySet(t,e){for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.svgText&&n.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(n),i=this._extractSvgIconFromSet(e,t,n.options);if(i)return i}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe((0,Qt.b)(e=>t.svgText=e),(0,Dt.U)(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?(0,bt.of)(null):this._fetchIcon(t).pipe((0,Qt.b)(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,i){const n=t.querySelector(`[id="${e}"]`);if(!n)return null;const s=n.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,i);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),i);const o=this._svgElementFromString("");return o.appendChild(s),this._setSvgAttributes(o,i)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const i=e.querySelector("svg");if(!i)throw Error(" tag not found");return i}_toSvgElement(t){const e=this._svgElementFromString(""),i=t.attributes;for(let n=0;nthis._inProgressUrlFetches.delete(r)),(0,zg.B)());return this._inProgressUrlFetches.set(r,c),c}_addSvgIconConfig(t,e,i){return this._svgIconConfigs.set(Fg(t,e),i),this}_addSvgIconSetConfig(t,e){const i=this._iconSetConfigs.get(t);return i?i.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let n=0;ne?e.pathname+e.search:""}}}),Ug=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Zg=Ug.map(t=>`[${t}]`).join(", "),Gg=/^url\(['"]?#(.*?)['"]?\)$/;let Vg=(()=>{class t extends Kg{constructor(t,e,i,n,s){super(t),this._iconRegistry=e,this._location=n,this._errorHandler=s,this._inline=!1,this._currentIconFetch=te.w.EMPTY,i||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=ss(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.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(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let n=0;n{e.forEach(e=>{i.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(Zg),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let n=0;n{const s=e[n],o=s.getAttribute(t),r=o?o.match(Gg):null;if(r){let e=i.get(s);e||(e=[],i.set(s,e)),e.push({name:t,value:r[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,i]=this._splitIconName(t);e&&(this._svgNamespace=e),i&&(this._svgName=i),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(i,e).pipe((0,Pt.q)(1)).subscribe(t=>this._setSvgElement(t),t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${i}! ${t.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Bg),s.$8M("aria-hidden"),s.Y36(qg),s.Y36(s.qLn))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(s.uIk("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),s.ekj("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[s.qOj],ngContentSelectors:Pg,decls:1,vars:0,template:function(t,e){1&t&&(s.F$t(),s.Hsn(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),$g=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[pl],pl]}),t})(),Wg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[],imports:[[hg,Rg,$g,nd,$h,n.ez]]}),t})();var Jg=i(2051);const Qg=[5,10,25,100];function Xg(t){let e="";return null!==t.titleBefore&&(e+=t.titleBefore+" "),null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),null!==t.titleAfter&&(e+=t.titleAfter+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}function tm(){const t=new ah;return t.disableClose=!0,t.autoFocus=!1,t}const em=new Intl.Collator("cs",{numeric:!0});function im(t,e,i,n){const s=e.active,o=e.direction;return s&&""!==o?t.sort((t,e)=>{const r=i(t,s,n),a=i(e,s,n);return em.compare(r,a)*("asc"===o?1:-1)}):t}function nm(t,e,i,n,s,o){e=e.toLowerCase();let r="";return i.forEach(e=>{r+=";"+n(t,e,s)}),o&&(r+=";"+n(t,"uuid",s)),-1!==r.toLowerCase().indexOf(e)}function sm(t,e){let i="";return t.attributes&&t.attributes.forEach(t=>{t.friendlyName===e&&(i=t.value)}),i}function om(t,e,i,n){const s=[],o=["checkbox","select","edit","menu","cite","extend","recent"];return e=e.filter(t=>!o.includes(t)),t.forEach(t=>{const o={};e.forEach(e=>{var s;o[e]=(null!==(s=i(t,e,n))&&void 0!==s?s:"").split('"').join("''").trim()}),s.push(o)}),s}function rm(t,e="csv",i="export"){switch(e){case"csv":{const n=(t,e)=>null===e?"":e,s=Object.keys(t[0]),o=t.map(t=>s.map(e=>JSON.stringify(t[e],n)).join(","));o.unshift(s.join(",").split(" ").join("_").split('"').join("''"));const r=o.join("\r\n"),a=new Blob([r],{type:"text/csv"});(0,Jg.saveAs)(a,`${i}.${e}`)}}}const am="GUI_CONFIG.PREF_PAGE_SIZE.";let cm=(()=>{class t{constructor(){}getString(t){return localStorage.getItem(t)}getNumber(t){return parseInt(localStorage.getItem(t),10)}setNumber(t,e){localStorage.setItem(t,e.toString())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),um=(()=>{class t{constructor(t){this.guiConfigService=t}getTablePageSize(t){const e=this.guiConfigService.getNumber(am+t);if(!isNaN(e))return e;const i=this.guiConfigService.getNumber("GUI_CONFIG.PREF_PAGE_SIZE");return isNaN(i)?10:i}setTablePageSize(t,e){this.guiConfigService.setNumber(am+t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(cm))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const lm="67",hm="68";let dm=(()=>{class t{constructor(){this.exportData=new s.vpe}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,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(t,e){if(1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"button",1),s.TgZ(2,"mat-icon"),s._uU(3,"more_vert"),s.qZA(),s.qZA(),s.TgZ(4,"mat-menu",null,2),s.TgZ(6,"button",3),s._uU(7),s.ALo(8,"translate"),s.qZA(),s.qZA(),s.TgZ(9,"mat-menu",null,4),s.TgZ(11,"button",5),s.NdJ("click",function(){return e.exportData.emit("csv")}),s._uU(12,"Csv"),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.MAs(5),e=s.MAs(10);s.xp6(1),s.Q6J("matMenuTriggerFor",t),s.xp6(5),s.Q6J("matMenuTriggerFor",e),s.xp6(1),s.hij(" ",s.lcZ(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[id,Lg,Vg,Cg,Ag],pipes:[Vh],styles:[""]}),t})();function pm(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-table-options",6),s.NdJ("exportData",function(e){return s.CHM(t),s.oxw().exportData.emit(e)}),s.qZA()}}function fm(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-table-options",6),s.NdJ("exportData",function(e){return s.CHM(t),s.oxw().exportData.emit(e)}),s.qZA()}}const gm=["*"];let mm=(()=>{class t{constructor(t){this.tableConfigService=t,this.hideExport=!1,this.pageSizeOptions=Qg,this.dataLength=0,this.exportData=new s.vpe,this.pageSize=5}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5)}set matPaginator(t){this.paginator=t}pageChangedTop(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}pageChangedBottom(t){this.paginator.pageSize=t.pageSize,this.paginator.pageIndex=t.pageIndex,this.paginator.page.emit(t),this.pageSize=t.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(um))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(t,e){if(1&t&&s.Gf(lg,7),2&t){let t;s.iGM(t=s.CRH())&&(e.matPaginator=t.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId"},outputs:{exportData:"exportData"},ngContentSelectors:gm,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(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"mat-paginator",2),s.NdJ("page",function(t){return e.pageChangedTop(t)}),s.qZA(),s.YNc(3,pm,1,0,"perun-web-apps-table-options",3),s.qZA(),s.TgZ(4,"div",4),s.Hsn(5),s.qZA(),s.TgZ(6,"div",1),s.TgZ(7,"mat-paginator",5),s.NdJ("page",function(t){return e.pageChangedBottom(t)}),s.qZA(),s.YNc(8,fm,1,0,"perun-web-apps-table-options",3),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.Q6J("length",e.dataLength)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),s.xp6(1),s.Q6J("ngIf",!e.hideExport),s.xp6(4),s.Q6J("length",e.paginator.length)("pageIndex",e.paginator.pageIndex)("pageSizeOptions",e.paginator.pageSizeOptions)("pageSize",e.paginator.pageSize),s.xp6(1),s.Q6J("ngIf",!e.hideExport))},directives:[lg,n.O5,dm],styles:[""]}),t})(),_m=(()=>{class t{constructor(t,e,i,n,s,o){this.authService=t,this.storeService=e,this.authResolver=i,this.authzService=n,this.dialog=s,this.router=o,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(t){this.loginScreenShown=t}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)):(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(t=>t(!0)):this.authService.verifyAuth())}startAuth(){return this.authService.startAuthentication(),new Promise(()=>{})}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(t=>{if(null===t.user){const t=tm();this.dialog.open(Wh,t)}else this.storeService.setPerunPrincipal(t),this.authResolver.init(t)})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(t=>{t()});if(this.storeService.get("auto_auth_redirect"))return this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0);const t=location.search.substr(1).split("&"),e={};for(const i of t){const t=i.split("=");e[t[0]]=t[1]}return this.router.navigate(["login"],{queryParams:e,queryParamsHandling:"merge"}).then(()=>null)}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Sh),s.LFG(ns),s.LFG(_t),s.LFG(G),s.LFG(yh),s.LFG(Pn))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),wm=(()=>{class t{constructor(t,e){this.matIconRegistry=t,this.domSanitizer=e,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/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/settings1-blue.svg",name:"settings-blue"},{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"}]}registerPerunRefreshIcon(){this.customIcons.forEach(t=>{this.matIconRegistry.addSvgIcon(t.name,this.domSanitizer.bypassSecurityTrustResourceUrl(t.url))})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Bg),s.LFG(z))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),ym=(()=>{class t{constructor(t){this.dialogRef=t}close(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(dh))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"div",2),s.TgZ(7,"div",3),s.TgZ(8,"button",4),s.NdJ("click",function(){return e.close()}),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),s.xp6(3),s.hij(" ",s.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),s.xp6(5),s.hij(" ",s.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},directives:[Ah,vh,kh,id],pipes:[Vh],styles:[""]}),t})(),bm=(()=>{class t{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const t=this.handleNextError;return this.handleNextError=!0,t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Am=(()=>{class t{constructor(t){this.translate=t,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3,this.addNotification=new s.vpe}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(t,e=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===t.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===t.name?e:e+"\n"+t.name,t,t.message)}showError(t,e,i,n,s){this.addNotification.emit({type:"error",error:e,description:i,title:t,actionText:void 0===n&&void 0!==i?this.getDefaultActionMessage():n,delay:this.defaultErrorDelayMs,icon:"error_outline",action:s,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(t,e,i,n){this.addNotification.emit({type:"success",description:e,title:t,actionText:void 0===i&&void 0!==e?this.getDefaultActionMessage():i,delay:this.defaultSuccessDelayMs,icon:"done",action:n,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Gh))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),vm=(()=>{class t{constructor(t,e,i,n,s,o){this.authService=t,this.apiRequestConfiguration=e,this.notificator=i,this.store=n,this.dialog=s,this.initAuthService=o}intercept(t,e){const i=this.store.get("api_url");if(-1!==t.url.indexOf("i18n")&&(t=t.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==i&&-1!==t.url.toString().indexOf(i)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()){const t=tm();t.width="450px",this.dialog.open(ym,t).afterClosed().subscribe(()=>{sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substr(1)),this.authService.startAuthentication()})}t=this.initAuthService.isServiceAccess()?t.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):t.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}});const n=this.apiRequestConfiguration.shouldHandleError(),s="POST"===t.method&&!this.store.skipOidc()&&this.isCallToPerunApi(t.url);return e.handle(t).pipe((0,Qt.b)(t=>{t instanceof F.Zn&&s&&this.initAuthService.loadPrincipal()},e=>{const i=this.formatErrors(e,t);return void 0===i?(0,Dg._)(e):n?void this.notificator.showRPCError(i):(0,Dg._)(i)}))}isCallToPerunApi(t){return t.startsWith(this.store.get("api_url"))}formatErrors(t,e){let i;if(console.error(t),t.error.errorId?i=t.error:t.errorId&&(i=JSON.parse(t.error)),void 0!==i)return i.urlWithParams=e.urlWithParams,i.call=e.url,i.payload=e.body,i}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Sh),s.LFG(bm),s.LFG(Am),s.LFG(ns),s.LFG(yh),s.LFG(_m))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),km=(()=>{class t{constructor(){this.notificationData=[],this.newNotificationsCount=0}storeNotification(t){this.newNotificationsCount++,this.notificationData.push(t)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Tm=(()=>{class t{constructor(t,e,i,n){this.http=t,this.notificator=e,this.authService=i,this.storeService=n}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}formatErrors(t,e,i,n){const s=t.error;return s.call=e,s.payload=i,n&&this.notificator.showRPCError(t.error),(0,Dg._)(s)}getHeaders(){let t=new F.WM;return t=t.set("Authorization",this.authService.getAuthorizationHeaderValue()),t}get(t,e=!0){const i=`${this.getApiUrl()}${t}`;return this.http.get(i,{headers:this.getHeaders()}).pipe((0,Ft.K)(t=>this.formatErrors(t,i,null,e)))}put(t,e={},i=!0){const n=`${this.getApiUrl()}${t}`,s=JSON.stringify(e);return this.http.put(n,s,{headers:this.getHeaders()}).pipe((0,Ft.K)(t=>this.formatErrors(t,n,s,i)))}post(t,e={},i=!0){const n=`${this.getApiUrl()}${t}`,s=JSON.stringify(e);let o=this.getHeaders();return o=o.set("Content-Type","application/json; charset=utf-8"),this.http.post(n,s,{headers:o}).pipe((0,Ft.K)(t=>this.formatErrors(t,n,s,i)))}delete(t,e=!0){const i=`${this.getApiUrl()}${t}`;return this.http.delete(i,{headers:this.getHeaders()}).pipe((0,Ft.K)(t=>this.formatErrors(t,i,null,e)))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(Am),s.LFG(Sh),s.LFG(ns))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Cm=(()=>{class t{constructor(){}isAllSelectedWithDisabledCheckbox(t,e,i,n,s,o,r,a){return this.numSelected=t,this.numCanBeSelected=0,this.pageStart=s*i,this.pageEnd=this.pageStart+i,this.pageIterator=0,this.dataLength=""===e?o.data.length:o.filteredData.length,n||(this.modulo=this.dataLength%i,this.pageEnd=0===this.modulo?this.pageStart+i:this.pageStart+this.modulo),o.sortData(o.filteredData,r).forEach(t=>{this.pageStart<=this.pageIterator&&this.pageIterator{a?c(t)&&this.pageStart<=this.pageIterator&&this.pageIterator{class t{constructor(t,e){this.route=t,this.store=e}getPreferredLanguage(t){const e=this.store.get("supported_languages"),i=navigator.languages.map(t=>t.split("-")[0]),n=location.search.substr(1).split("&");let s=null;for(const o of n){const t=o.split("=");"lang"===t[0]&&(s=t[1])}return s&&e.includes(s)?s:t&&e.includes(t)?t:i&&e.includes(i[0])?i[0]:"en"}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(hi),s.LFG(ns))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();_a("openClose",[va("open",Aa({overflow:"hidden"})),va("closed",Aa({height:"0px",overflow:"hidden"})),Ta("open <=> closed",[wa(".3s ease-in")])]);const Mm=_a("flyInOut",[Ta(":enter",[Aa({transform:"translateX(100%)"}),wa(".25s")]),Ta(":leave",[wa(".5s",Aa({transform:"translateX(100%)"}))])]);_a("rollInOut",[Ta(":enter",[Aa({height:"0px"}),wa(".25s")]),Ta(":leave",[wa(".25s",Aa({height:"0px"}))])]),_a("routeAnimations",[Ta("* => *",[Aa({position:"relative"}),Sa(":enter",[Aa({width:"100%",opacity:0})],{optional:!0}),Sa(":leave",[Aa({position:"absolute",width:"100%",opacity:1}),wa("0.15s",Aa({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),Sa(":enter",[Aa({position:"absolute",width:"100%",opacity:0}),wa("0.15s",Aa({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),_a("tagsOpenClose",[va("open",Aa({})),va("closed",Aa({width:"0px",height:"0px"})),Ta("open <=> closed",[wa(".3s ease-in")])]),_a("switchAnimations",[Ta("true => false",[Sa(":enter, :leave",Aa({})),ya([Sa(":enter",[Aa({transform:"translateX(-100%)"}),wa("1s ease-in-out",Aa({transform:"translateX(0%)"}))],{optional:!0}),Sa(":leave",[Aa({transform:"translateX(0%)",position:"absolute"}),wa("1s ease-in-out",Aa({transform:"translateX(100%)"}))],{optional:!0})])]),Ta("false => true",[Sa(":enter, :leave",Aa({})),ya([Sa(":enter",[Aa({transform:"translateX(100%)"}),wa("1s ease-in-out",Aa({transform:"translateX(0%)"}))],{optional:!0}),Sa(":leave",[Aa({transform:"translateX(0%)",position:"absolute"}),wa("1s ease-in-out",Aa({transform:"translateX(-100%)"}))],{optional:!0})])])]),_a("slideInOutLeft",[Ta(":enter",[Aa({transform:"translateX(-100%)",position:"relative"}),wa("0.5s ease-in",Aa({transform:"translateX(0%)"}))]),Ta(":leave",[wa("0.5s ease-in",Aa({transform:"translateX(-100%)"}))])]),_a("slideInOutRight",[Ta(":enter",[Aa({transform:"translateX(100%)",position:"fixed"}),wa("0.5s ease-in",Aa({transform:"translateX(0%)"}))]),Ta(":leave",[Aa({transform:"translateX(-100%)",position:"relative"}),wa("0.5s ease-in",Aa({transform:"translateX(100%)"}))])]);let Em=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez]]}),t})();function Lm(t,e){if(1&t&&(s.O4$(),s._UZ(0,"circle",3)),2&t){const t=s.oxw();s.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),s.uIk("r",t._getCircleRadius())}}function xm(t,e){if(1&t&&(s.O4$(),s._UZ(0,"circle",3)),2&t){const t=s.oxw();s.Udp("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),s.uIk("r",t._getCircleRadius())}}function Rm(t,e){if(1&t&&(s.O4$(),s._UZ(0,"circle",3)),2&t){const t=s.oxw();s.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),s.uIk("r",t._getCircleRadius())}}function Dm(t,e){if(1&t&&(s.O4$(),s._UZ(0,"circle",3)),2&t){const t=s.oxw();s.Udp("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),s.uIk("r",t._getCircleRadius())}}const zm=".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:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[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-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation: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)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n";class Pm{constructor(t){this._elementRef=t}}const Im=gl(Pm,"primary"),Om=new s.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let Hm=(()=>{class t extends Im{constructor(e,i,n,s,o){super(e),this._elementRef=e,this._document=n,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const r=t._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),r.has(n.head)||r.set(n.head,new Set([100])),this._fallbackAnimation=i.EDGE||i.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!o&&!o._forceAnimations,o&&(o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=os(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=os(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,os(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=po(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,i=this._diameter,n=t._diameters;let s=n.get(e);if(!s||!s.has(i)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),t.textContent=this._getAnimationText(),e.appendChild(t),s||(s=new Set,n.set(e,s)),s.add(i)}}_getAnimationText(){const t=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*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(eo),s.Y36(n.K0,8),s.Y36(el,8),s.Y36(Om))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(s.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),s.Udp("width",e.diameter,"px")("height",e.diameter,"px"),s.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[s.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(s.O4$(),s.TgZ(0,"svg",0),s.YNc(1,Lm,1,9,"circle",1),s.YNc(2,xm,1,7,"circle",2),s.qZA()),2&t&&(s.Udp("width",e.diameter,"px")("height",e.diameter,"px"),s.Q6J("ngSwitch","indeterminate"===e.mode),s.uIk("viewBox",e._getViewBox()),s.xp6(1),s.Q6J("ngSwitchCase",!0),s.xp6(1),s.Q6J("ngSwitchCase",!1))},directives:[n.RF,n.n9],styles:[zm],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),Ym=(()=>{class t extends Hm{constructor(t,e,i,n,s){super(t,e,i,n,s),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(eo),s.Y36(n.K0,8),s.Y36(el,8),s.Y36(Om))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(s.Udp("width",e.diameter,"px")("height",e.diameter,"px"),s.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[s.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(s.O4$(),s.TgZ(0,"svg",0),s.YNc(1,Rm,1,9,"circle",1),s.YNc(2,Dm,1,7,"circle",2),s.qZA()),2&t&&(s.Udp("width",e.diameter,"px")("height",e.diameter,"px"),s.Q6J("ngSwitch","indeterminate"===e.mode),s.uIk("viewBox",e._getViewBox()),s.xp6(1),s.Q6J("ngSwitchCase",!0),s.xp6(1),s.Q6J("ngSwitchCase",!1))},directives:[n.RF,n.n9],styles:[zm],encapsulation:2,changeDetection:0}),t})(),Bm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[pl,n.ez],pl]}),t})();const jm=uo({passive:!0});let Fm=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return Lt.E;const e=us(t),i=this._monitoredElements.get(e);if(i)return i.subject;const n=new At.xQ,s="cdk-text-field-autofilled",o=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",o,jm),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:n,unlisten:()=>{e.removeEventListener("animationstart",o,jm)}}),n}stopMonitoring(t){const e=us(t),i=this._monitoredElements.get(e);i&&(i.unlisten(),i.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(eo),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(eo),s.LFG(s.R0b))},token:t,providedIn:"root"}),t})(),Nm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[io]]}),t})();const Km=new s.OlP("MAT_INPUT_VALUE_ACCESSOR"),qm=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Um=0;class Zm{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const Gm=wl(Zm);let Vm=(()=>{class t extends Gm{constructor(t,e,i,n,s,o,r,a,c,u){super(o,n,s,i),this._elementRef=t,this._platform=e,this.ngControl=i,this._autofillMonitor=a,this._formField=u,this._uid="mat-input-"+Um++,this.focused=!1,this.stateChanges=new At.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>so().has(t));const l=this._elementRef.nativeElement,h=l.nodeName.toLowerCase();this._inputValueAccessor=r||l,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&c.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{const e=t.target;e.value||0!==e.selectionStart||0!==e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===h,this._isTextarea="textarea"===h,this._isNativeSelect&&(this.controlType=l.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=ss(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=ss(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&so().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=ss(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const i=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(i!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=i,i?t.setAttribute("placeholder",i):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){qm.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(eo),s.Y36(gp,10),s.Y36(Zp,8),s.Y36(nf,8),s.Y36(zl),s.Y36(Km,10),s.Y36(Fm),s.Y36(s.R0b),s.Y36(Yd,8))},t.\u0275dir=s.lG2({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&s.NdJ("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(s.Ikx("disabled",e.disabled)("required",e.required),s.uIk("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),s.ekj("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[s._Bn([{provide:Cd,useExisting:t}]),s.qOj,s.TTD]}),t})(),$m=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[zl],imports:[[Nm,jd,pl],Nm,jd]}),t})();function Wm(t,e){1&t&&s._UZ(0,"mat-spinner",7)}function Jm(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function Qm(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function Xm(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",8),s.TgZ(1,"mat-form-field"),s.TgZ(2,"mat-label"),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.TgZ(5,"input",9,10),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().subject=e}),s.qZA(),s.YNc(7,Jm,3,3,"mat-error",11),s.qZA(),s.TgZ(8,"mat-form-field"),s.TgZ(9,"mat-label"),s._uU(10),s.ALo(11,"translate"),s.qZA(),s.TgZ(12,"textarea",12,13),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().message=e}),s.ALo(14,"translate"),s._uU(15," "),s.qZA(),s.YNc(16,Qm,3,3,"mat-error",11),s.qZA(),s.qZA()}if(2&t){const t=s.MAs(6),e=s.MAs(13),i=s.oxw();s.xp6(3),s.Oqu(s.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),s.xp6(2),s.Q6J("ngModel",i.subject),s.xp6(2),s.Q6J("ngIf",t.invalid),s.xp6(3),s.Oqu(s.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),s.xp6(2),s.s9C("placeholder",s.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),s.Q6J("ngModel",i.message),s.xp6(4),s.Q6J("ngIf",e.invalid)}}let t_=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.translate=e,this.notificator=i,this.rtMessages=n,this.data=s,this.storeService=o,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data.error&&this.data.error.errorId&&(this.subject=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(t=>{this.dialogRef.afterClosed().subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1")+t.ticketNumber+this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"))}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const t=this.storeService.get("config");let e=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(e=e.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),e=e.concat(this.data.error.message+"\nPerun instance: "+t+"\nRequest:\n"+this.data.error.urlWithParams+"\n\n"),this.data.error.payload){const t=/"password":".+?"/;let i=JSON.stringify(this.data.error.payload);i=i.replace(t,'"password":"####"'),e=e.concat("Payload:\n"+i+"\n\n")}return e=e.concat("Sended from new Perun Gui, version: "+i(306).i8),e.split("\n").join("\n ")}parseMethod(t){return t?this.methodRegexp.exec(t)[1]:t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(dh),s.Y36(Gh),s.Y36(Am),s.Y36(nt),s.Y36(fh),s.Y36(ns))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.YNc(3,Wm,1,0,"mat-spinner",1),s.YNc(4,Xm,17,13,"div",2),s.TgZ(5,"div",3),s.TgZ(6,"div",4),s.TgZ(7,"button",5),s.NdJ("click",function(){return e.dialogRef.close()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",6),s.NdJ("click",function(){return e.sendBugReport()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(4),s.hij(" ",s.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),s.xp6(2),s.Q6J("disabled",""===e.message||""===e.subject||e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},directives:[Ah,n.O5,kh,id,Ym,vh,Bd,Ld,Vm,Zd,af,_p,$p,kd],pipes:[Vh],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})(),e_=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.dialog=e,this.data=i}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const t=tm();t.width="550px",t.data={error:this.data.error},t.autoFocus=!1,this.dialog.open(t_,t)}),this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(dh),s.Y36(yh),s.Y36(fh))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.qZA(),s.TgZ(2,"div",1),s._uU(3),s.qZA(),s.TgZ(4,"div",2),s.TgZ(5,"div",3),s.TgZ(6,"button",4),s.NdJ("click",function(){return e.onBugReportClick()}),s._uU(7),s.ALo(8,"translate"),s.qZA(),s.TgZ(9,"button",5),s.NdJ("click",function(){return e.onCloseClick()}),s._uU(10),s.ALo(11,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(e.data.title),s.xp6(2),s.hij(" ",e.data.description,"\n"),s.xp6(3),s.Q6J("hidden","error"!==e.data.type),s.xp6(1),s.hij(" ",s.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),s.xp6(3),s.hij(" ",s.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},directives:[Ah,vh,kh,id],pipes:[Vh],styles:[""]}),t})();const i_=[[["caption"]],[["colgroup"],["col"]]],n_=["caption","colgroup, col"];function s_(t){return class extends t{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=ss(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const o_=new s.OlP("CDK_TABLE");let r_=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkCellDef",""]]}),t})(),a_=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),c_=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class u_{}const l_=s_(u_);let h_=(()=>{class t extends l_{constructor(t){super(),this._table=t,this._stickyEnd=!1}get name(){return this._name}set name(t){this._setNameInput(t)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const e=this._stickyEnd;this._stickyEnd=ss(t),this._hasStickyChanged=e!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(o_,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,r_,5),s.Suo(i,a_,5),s.Suo(i,c_,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.cell=t.first),s.iGM(t=s.CRH())&&(e.headerCell=t.first),s.iGM(t=s.CRH())&&(e.footerCell=t.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[s._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),s.qOj]}),t})();class d_{constructor(t,e){const i=e.nativeElement.classList;for(const n of t._columnCssClassName)i.add(n)}}let p_=(()=>{class t extends d_{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(h_),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[s.qOj]}),t})(),f_=(()=>{class t extends d_{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(h_),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[s.qOj]}),t})();class g_{constructor(){this.tasks=[],this.endTasks=[]}}const m_=new s.OlP("_COALESCED_STYLE_SCHEDULER");let __=(()=>{class t{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new At.xQ}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new g_,this._getScheduleObservable().pipe(js(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const t=this._currentSchedule;this._currentSchedule=new g_;for(const e of t.tasks)e();for(const e of t.endTasks)e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,yt.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,Pt.q)(1))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),w_=(()=>{class t{constructor(t,e){this.template=t,this._differs=e}ngOnChanges(t){if(!this._columnsDiffer){const e=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof A_?t.headerCell.template:this instanceof T_?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc),s.Y36(s.ZZ4))},t.\u0275dir=s.lG2({type:t,features:[s.TTD]}),t})();class y_ extends w_{}const b_=s_(y_);let A_=(()=>{class t extends b_{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(o_,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[s.qOj,s.TTD]}),t})();class v_ extends w_{}const k_=s_(v_);let T_=(()=>{class t extends k_{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(o_,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[s.qOj,s.TTD]}),t})(),C_=(()=>{class t extends w_{constructor(t,e,i){super(t,e),this._table=i}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(o_,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[s.qOj]}),t})(),S_=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),M_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.GkF(0,0)},directives:[S_],encapsulation:2}),t})(),E_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.GkF(0,0)},directives:[S_],encapsulation:2}),t})(),L_=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const x_=["top","bottom","left","right"];class R_{constructor(t,e,i,n,s=!0,o=!0,r){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=n,this._isBrowser=s,this._needsPositionStickyOnElement=o,this._positionListener=r,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(t,e){const i=[];for(const n of t)if(n.nodeType===n.ELEMENT_NODE){i.push(n);for(let t=0;t{for(const t of i)this._removeStickyStyle(t,e)})}updateStickyColumns(t,e,i,n=!0){if(!t.length||!this._isBrowser||!e.some(t=>t)&&!i.some(t=>t))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const s=t[0],o=s.children.length,r=this._getCellWidths(s,n),a=this._getStickyStartColumnPositions(r,e),c=this._getStickyEndColumnPositions(r,i),u=e.lastIndexOf(!0),l=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const n="rtl"===this.direction,s=n?"right":"left",h=n?"left":"right";for(const r of t)for(let t=0;te[i]?t:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===l?[]:r.slice(l).map((t,e)=>i[e+l]?t:null).reverse()}))})}stickRows(t,e,i){if(!this._isBrowser)return;const n="bottom"===i?t.slice().reverse():t,s="bottom"===i?e.slice().reverse():e,o=[],r=[],a=[];for(let u=0,l=0;u{var t,e;for(let r=0;r{e.some(t=>!t)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(t,e){for(const i of e)t.style[i]="",t.classList.remove(this._borderCellCss[i]);x_.some(i=>-1===e.indexOf(i)&&t.style[i])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i,n){t.classList.add(this._stickCellCss),n&&t.classList.add(this._borderCellCss[e]),t.style[e]=`${i}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const n of x_)t.style[n]&&(i+=e[n]);return i?`${i}`:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],n=t.children;for(let s=0;s0;s--)e[s]&&(i[s]=n,n+=t[s]);return i}}const D_=new s.OlP("CDK_SPL");let z_=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","rowOutlet",""]]}),t})(),P_=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),I_=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),O_=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),H_=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u,l){this._differs=t,this._changeDetectorRef=e,this._elementRef=i,this._dir=s,this._platform=r,this._viewRepeater=a,this._coalescedStyleScheduler=c,this._viewportRuler=u,this._stickyPositioningListener=l,this._onDestroy=new At.xQ,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.viewChange=new kt({start:0,end:Number.MAX_VALUE}),n||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=o,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=ss(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=ss(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,e)=>this.trackBy?this.trackBy(e.dataIndex,e.data):e),this._viewportRuler.change().pipe(js(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.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),wo(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return void this._updateNoDataRow();const e=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,e,(t,e,i)=>this._getEmbeddedViewArgs(t.item,i),t=>t.item.data,t=>{1===t.operation&&t.context&&this._renderCellTemplateForItem(t.record.item.rowDef,t.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(t=>{e.get(t.currentIndex).context.$implicit=t.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");const i=this._headerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"top"),this._headerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");const i=this._footerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...e,...i],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((t,e)=>{this._addStickyColumnStyles([t],this._headerRowDefs[e])}),this._rowDefs.forEach(t=>{const i=[];for(let n=0;n{this._addStickyColumnStyles([t],this._footerRowDefs[e])}),Array.from(this._columnDefsByName.values()).forEach(t=>t.resetStickyChanged())}_getAllRenderRows(){const t=[],e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let i=0;i{const s=i&&i.has(n)?i.get(n):[];if(s.length){const t=s.shift();return t.dataIndex=e,t}return{data:t,rowDef:n,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Y_(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=Y_(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Y_(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Y_(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(t,e)=>t||!!e.getColumnsDiff(),e=this._rowDefs.reduce(t,!1);e&&this._forceRenderDataRows();const i=this._headerRowDefs.reduce(t,!1);i&&this._forceRenderHeaderRows();const n=this._footerRowDefs.reduce(t,!1);return n&&this._forceRenderFooterRows(),e||i||n}_switchDataSource(t){this._data=[],wo(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;wo(this.dataSource)?t=this.dataSource.connect(this):Ms(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=(0,bt.of)(this.dataSource)),this._renderChangeSubscription=t.pipe(js(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,e)=>this._renderRow(this._headerRowOutlet,t,e)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,e)=>this._renderRow(this._footerRowOutlet,t,e)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,e){const i=Array.from(e.columns||[]).map(t=>this._columnDefsByName.get(t)),n=i.map(t=>t.sticky),s=i.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,n,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){const e=[];for(let i=0;i!i.when||i.when(e,t));else{let n=this._rowDefs.find(i=>i.when&&i.when(e,t))||this._defaultRowDef;n&&i.push(n)}return i}_getEmbeddedViewArgs(t,e){return{templateRef:t.rowDef.template,context:{$implicit:t.data},index:e}}_renderRow(t,e,i,n={}){const s=t.viewContainer.createEmbeddedView(e.template,n,i);return this._renderCellTemplateForItem(e,n),s}_renderCellTemplateForItem(t,e){for(let i of this._getCellTemplates(t))S_.mostRecentCellOutlet&&S_.mostRecentCellOutlet._viewContainer.createEmbeddedView(i,e);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let e=0,i=t.length;e{const i=this._columnDefsByName.get(e);return t.extractCellTemplate(i)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),e=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const i of e){const e=this._document.createElement(i.tag);e.setAttribute("role","rowgroup");for(const t of i.outlets)e.appendChild(t.elementRef.nativeElement);t.appendChild(e)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const t=(t,e)=>t||e.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new R_(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,bt.of)()).pipe(js(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const t=this._customNoDataRow||this._noDataRow;if(t){const e=0===this._rowOutlet.viewContainer.length;if(e!==this._isShowingNoDataRow){const i=this._noDataRowOutlet.viewContainer;e?i.createEmbeddedView(t.templateRef):i.clear(),this._isShowingNoDataRow=e}}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.ZZ4),s.Y36(s.sBO),s.Y36(s.SBq),s.$8M("role"),s.Y36(mo,8),s.Y36(n.K0),s.Y36(eo),s.Y36(vo),s.Y36(m_),s.Y36(Co),s.Y36(D_,12))},t.\u0275cmp=s.Xpm({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,L_,5),s.Suo(i,h_,5),s.Suo(i,C_,5),s.Suo(i,A_,5),s.Suo(i,T_,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._noDataRow=t.first),s.iGM(t=s.CRH())&&(e._contentColumnDefs=t),s.iGM(t=s.CRH())&&(e._contentRowDefs=t),s.iGM(t=s.CRH())&&(e._contentHeaderRowDefs=t),s.iGM(t=s.CRH())&&(e._contentFooterRowDefs=t)}},viewQuery:function(t,e){if(1&t&&(s.Gf(z_,7),s.Gf(P_,7),s.Gf(I_,7),s.Gf(O_,7)),2&t){let t;s.iGM(t=s.CRH())&&(e._rowOutlet=t.first),s.iGM(t=s.CRH())&&(e._headerRowOutlet=t.first),s.iGM(t=s.CRH())&&(e._footerRowOutlet=t.first),s.iGM(t=s.CRH())&&(e._noDataRowOutlet=t.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("cdk-table-fixed-layout",e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[s._Bn([{provide:o_,useExisting:t},{provide:vo,useClass:yo},{provide:m_,useClass:__},{provide:D_,useValue:null}])],ngContentSelectors:n_,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(s.F$t(i_),s.Hsn(0),s.Hsn(1,1),s.GkF(2,0),s.GkF(3,1),s.GkF(4,2),s.GkF(5,3))},directives:[P_,z_,O_,I_],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})();function Y_(t,e){return t.concat(Array.from(e))}let B_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Mo]]}),t})();const j_=[[["caption"]],[["colgroup"],["col"]]],F_=["caption","colgroup, col"];let N_=(()=>{class t extends H_{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-table-fixed-layout",e.fixedLayout)},exportAs:["matTable"],features:[s._Bn([{provide:vo,useClass:yo},{provide:H_,useExisting:t},{provide:o_,useExisting:t},{provide:m_,useClass:__},{provide:D_,useValue:null}]),s.qOj],ngContentSelectors:F_,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(s.F$t(j_),s.Hsn(0),s.Hsn(1,1),s.GkF(2,0),s.GkF(3,1),s.GkF(4,2),s.GkF(5,3))},directives:[P_,z_,O_,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-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}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:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),t})(),K_=(()=>{class t extends r_{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matCellDef",""]],features:[s._Bn([{provide:r_,useExisting:t}]),s.qOj]}),t})(),q_=(()=>{class t extends a_{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matHeaderCellDef",""]],features:[s._Bn([{provide:a_,useExisting:t}]),s.qOj]}),t})(),U_=(()=>{class t extends h_{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[s._Bn([{provide:h_,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),s.qOj]}),t})(),Z_=(()=>{class t extends p_{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[s.qOj]}),t})(),G_=(()=>{class t extends f_{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[s.qOj]}),t})(),V_=(()=>{class t extends A_{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[s._Bn([{provide:A_,useExisting:t}]),s.qOj]}),t})(),$_=(()=>{class t extends C_{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[s._Bn([{provide:C_,useExisting:t}]),s.qOj]}),t})(),W_=(()=>{class t extends M_{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[s._Bn([{provide:M_,useExisting:t}]),s.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.GkF(0,0)},directives:[S_],encapsulation:2}),t})(),J_=(()=>{class t extends E_{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[s._Bn([{provide:E_,useExisting:t}]),s.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.GkF(0,0)},directives:[S_],encapsulation:2}),t})(),Q_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[B_,pl],pl]}),t})();class X_ extends class extends class{}{constructor(t=[]){super(),this._renderData=new kt([]),this._filter=new kt(""),this._internalPageChanges=new At.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(t,e)=>{const i=t[e];if(rs(i)){const t=Number(i);return t<9007199254740991?t:i}return i},this.sortData=(t,e)=>{const i=e.active,n=e.direction;return i&&""!=n?t.sort((t,e)=>{let s=this.sortingDataAccessor(t,i),o=this.sortingDataAccessor(e,i);const r=typeof s,a=typeof o;r!==a&&("number"===r&&(s+=""),"number"===a&&(o+=""));let c=0;return null!=s&&null!=o?s>o?c=1:s{const i=Object.keys(t).reduce((e,i)=>e+t[i]+"\u25ec","").toLowerCase(),n=e.trim().toLowerCase();return-1!=i.indexOf(n)},this._data=new kt(t),this._updateChangeSubscription()}get data(){return this._data.value}set data(t){this._data.next(t),this._renderChangesSubscription||this._filterData(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}_updateChangeSubscription(){var t;const e=this._sort?(0,Ho.T)(this._sort.sortChange,this._sort.initialized):(0,bt.of)(null),i=this._paginator?(0,Ho.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,bt.of)(null),n=(0,Tt.aj)([this._data,this._filter]).pipe((0,Dt.U)(([t])=>this._filterData(t))),s=(0,Tt.aj)([n,e]).pipe((0,Dt.U)(([t])=>this._orderData(t))),o=(0,Tt.aj)([s,i]).pipe((0,Dt.U)(([t])=>this._pageData(t)));null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=o.subscribe(t=>this._renderData.next(t))}_filterData(t){return this.filteredData=null==this.filter||""===this.filter?t:t.filter(t=>this.filterPredicate(t,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;const e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=t,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,i=Math.min(e.pageIndex,t);i!==e.pageIndex&&(e.pageIndex=i,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var t;null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=null}}{}function tw(t,e){1&t&&s._UZ(0,"mat-spinner",6)}function ew(t,e){1&t&&s._UZ(0,"th",15)}function iw(t,e){if(1&t&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t)}}function nw(t,e){1&t&&s._UZ(0,"tr",17)}function sw(t,e){1&t&&s._UZ(0,"tr",18)}function ow(t,e){if(1&t&&(s.TgZ(0,"div",7),s.TgZ(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,ew,1,0,"th",11),s.YNc(10,iw,2,1,"td",12),s.BQk(),s.YNc(11,nw,1,0,"tr",13),s.YNc(12,sw,1,0,"tr",14),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,5,t.data.description)," "),s.xp6(3),s.hij(" ",s.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "),s.xp6(2),s.Q6J("dataSource",t.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",t.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",t.displayedColumns)}}let rw=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new X_(this.data.items)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(dh),s.Y36(fh))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-universal-remove-items-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"],["mat-flat-button","","color","warn",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"],["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(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,tw,1,0,"mat-spinner",1),s.YNc(5,ow,13,9,"div",2),s.TgZ(6,"div",3),s.TgZ(7,"button",4),s.NdJ("click",function(){return e.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return e.onSubmit()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.Oqu(s.lcZ(3,9,e.data.title)),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,11,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),s.xp6(2),s.Q6J("disabled",e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,13,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," "))},directives:[Ah,n.O5,kh,id,Ym,vh,N_,U_,q_,K_,V_,$_,Z_,G_,W_,J_],pipes:[Vh],styles:[""]}),t})(),aw=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}ngOnInit(){this.theme=this.data.theme,this.message=this.data.message}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(dh),s.Y36(fh))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"div",1),s.TgZ(5,"button",2),s.NdJ("click",function(){return e.onCancel()}),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.TgZ(8,"button",3),s.NdJ("click",function(){return e.onSubmit()}),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.Oqu(s.lcZ(3,6,e.message)),s.xp6(4),s.hij(" ",s.lcZ(7,8,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_CONFIRMATION_DIALOG.CANCEL_BUTTON")," "),s.xp6(3),s.hij(" ",s.lcZ(10,10,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_CONFIRMATION_DIALOG.SUBMIT_BUTTON")," "))},directives:[Ah,kh,id],pipes:[Vh],styles:[""]}),t})();function cw(t,e){if(1&t&&(s.TgZ(0,"div",5),s.TgZ(1,"mat-icon"),s._uU(2),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.Oqu(t.data.icon)}}function uw(t,e){if(1&t&&(s.TgZ(0,"div",6),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.hij(" ",t.showTimestamp()," ")}}let lw=(()=>{class t{constructor(t,e){this.dialog=t,this.notificationStorageService=e,this.newNotification=!1,this.closeNotification=new s.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 t=tm();t.width="550px",t.data=this.data,t.autoFocus=!1,this.dialog.open(e_,t).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function(t,e){return i=this,s=function*(){var i;yield(i=t,new Promise(t=>setTimeout(t,i))),e()},new((n=void 0)||(n=Promise))(function(t,e){function o(t){try{a(s.next(t))}catch(i){e(i)}}function r(t){try{a(s.throw(t))}catch(i){e(i)}}function a(e){var i;e.done?t(e.value):(i=e.value,i instanceof n?i:new n(function(t){t(i)})).then(o,r)}a((s=s.apply(i,[])).next())});var i,n,s}(this.data.delay,()=>{this.alreadyClosed||this.waiting||this.closeSelf()})}showTimestamp(){const[t,e]=this.data.timeStamp.split(":");return e.length<2?t+":0"+e:this.data.timeStamp}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yh),s.Y36(km))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"div",0),s.NdJ("click",function(){return e.alreadyClosed||e.waiting?"":e.closeSelf()}),s.YNc(2,cw,3,1,"div",1),s.TgZ(3,"div",2),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.YNc(6,uw,2,1,"div",3),s.TgZ(7,"div",4),s.NdJ("click",function(){return e.waiting=!0,e.doAction()}),s._uU(8),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Gre("notification ",e.inDialog?"":"mat-elevation-z7",""),s.ekj("error","error"===e.data.type)("success","success"===e.data.type),s.xp6(2),s.Q6J("ngIf",null!==e.data.icon),s.xp6(2),s.hij(" ",s.lcZ(5,12,e.data.title)," "),s.xp6(2),s.Q6J("ngIf",e.inDialog),s.xp6(1),s.Q6J("hidden",e.alreadyPressed),s.xp6(1),s.hij(" ",e.data.actionText," "))},directives:[n.O5,Vg],pipes:[Vh],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}"]}),t})();function hw(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"perun-web-apps-notification",2),s.NdJ("closeNotification",function(){const e=s.CHM(t).index;return s.oxw().removeNotification(e)}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit;s.Q6J("@flyInOut",void 0),s.xp6(1),s.Q6J("data",t)("newNotification",!0)}}const dw=function(t){return{top:t}};let pw=(()=>{class t{constructor(t,e){this.notificator=t,this.notificationStorageService=e,this.mobileView=!1,this.minWidth=992,this.displayWarning=!1,this.notifications=[],this.notificator.addNotification.subscribe(t=>{this.processNotification(t)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}processNotification(t){this.notifications.push(t),this.notificationStorageService.storeNotification(t)}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(t){this.notifications.splice(t,1)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Am),s.Y36(km))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-notificator"]],hostBindings:function(t,e){1&t&&s.NdJ("resize",function(t){return e.getScreenSize(t)},!1,s.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.YNc(1,hw,2,3,"div",1),s.qZA()),2&t&&(s.Q6J("ngStyle",s.VKq(2,dw,e.getNotificatorTop())),s.xp6(1),s.Q6J("ngForOf",e.notifications))},directives:[n.PC,n.sg,lw],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width:768px){#notificator[_ngcontent-%COMP%]{width:100%;top:auto;bottom:0}}"],data:{animation:[Mm]}}),t})();const fw=["*",[["mat-toolbar-row"]]],gw=["*","mat-toolbar-row"];class mw{constructor(t){this._elementRef=t}}const _w=gl(mw);let ww=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),yw=(()=>{class t extends _w{constructor(t,e,i){super(t),this._platform=e,this._document=i}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(eo),s.Y36(n.K0))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,ww,5),2&t){let t;s.iGM(t=s.CRH())&&(e._toolbarRows=t)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&s.ekj("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[s.qOj],ngContentSelectors:gw,decls:2,vars:0,template:function(t,e){1&t&&(s.F$t(fw),s.Hsn(0),s.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%}\n"],encapsulation:2,changeDetection:0}),t})(),bw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[pl],pl]}),t})();function Aw(t,e){1&t&&(s.TgZ(0,"div",13),s.TgZ(1,"span",14),s._uU(2," ~ \ud83d\uddf2\xa0 "),s.qZA(),s.TgZ(3,"span",15),s._uU(4," DEVEL "),s.qZA(),s.TgZ(5,"span",14),s._uU(6," \xa0\ud83d\uddf2 ~ "),s.qZA(),s.qZA())}const vw=function(t){return{background:t}},kw=function(t){return{color:t}};let Tw=(()=>{class t{constructor(t,e,i){this.storeService=t,this.authService=e,this.sanitizer=i,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 t.\u0275fac=function(e){return new(e||t)(s.Y36(ns),s.Y36(Sh),s.Y36(z))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-header"]],inputs:{sideNav:"sideNav"},decls:22,vars:29,consts:[[1,"header-container","mat-elevation-z3",3,"ngStyle"],[2,"display","flex","flex-direction","row"],["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(t,e){if(1&t&&(s.TgZ(0,"mat-toolbar",0),s.TgZ(1,"div",1),s.TgZ(2,"button",2),s.NdJ("click",function(){return e.sideNav.toggle()}),s.TgZ(3,"mat-icon"),s._uU(4,"menu"),s.qZA(),s.qZA(),s._UZ(5,"a",3),s._UZ(6,"mat-icon",4),s.TgZ(7,"p",5),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.qZA(),s.YNc(10,Aw,7,0,"div",6),s.TgZ(11,"div",7),s.TgZ(12,"button",8),s.TgZ(13,"mat-icon",9),s._uU(14," person "),s.qZA(),s.TgZ(15,"span",10),s._uU(16),s.qZA(),s.qZA(),s.TgZ(17,"mat-menu",null,11),s.TgZ(19,"button",12),s.NdJ("click",function(){return e.onLogOut()}),s._uU(20),s.ALo(21,"translate"),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.MAs(18);s.Q6J("ngStyle",s.VKq(19,vw,e.bgColor)),s.xp6(2),s.Q6J("ngStyle",s.VKq(21,kw,e.iconColor)),s.xp6(3),s.Q6J("innerHTML",e.logo,s.oJD),s.xp6(2),s.Q6J("ngStyle",s.VKq(23,kw,e.textColor)),s.xp6(1),s.hij(" ",s.lcZ(9,15,"HEADER.TITLE")," "),s.xp6(2),s.Q6J("ngIf",e.isDevel),s.xp6(1),s.Q6J("ngStyle",s.VKq(25,kw,e.textColor)),s.xp6(1),s.Q6J("matMenuTriggerFor",t),s.xp6(1),s.Q6J("ngStyle",s.VKq(27,kw,e.iconColor)),s.xp6(3),s.xDo(" ",e.principal.user.titleBefore," ",e.principal.user.firstName," ",e.principal.user.middleName," ",e.principal.user.lastName," ",e.principal.user.titleAfter," "),s.xp6(4),s.Oqu(s.lcZ(21,17,"HEADER.LOGOUT"))}},directives:[yw,n.PC,id,Vg,On,In,n.O5,Lg,Cg,Ag],pipes:[Vh],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;margin-left:8px;padding:0}#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}"]}),t})();function Cw(t){return e=>e.lift(new Sw(t))}class Sw{constructor(t){this.value=t}call(t,e){return e.subscribe(new Mw(t,this.value))}}class Mw extends Ht.L{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}const Ew=["*"];function Lw(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",2),s.NdJ("click",function(){return s.CHM(t),s.oxw()._onBackdropClicked()}),s.qZA()}if(2&t){const t=s.oxw();s.ekj("mat-drawer-shown",t._isShowingBackdrop())}}function xw(t,e){1&t&&(s.TgZ(0,"mat-drawer-content"),s.Hsn(1,2),s.qZA())}const Rw=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Dw=["mat-drawer","mat-drawer-content","*"];function zw(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",2),s.NdJ("click",function(){return s.CHM(t),s.oxw()._onBackdropClicked()}),s.qZA()}if(2&t){const t=s.oxw();s.ekj("mat-drawer-shown",t._isShowingBackdrop())}}function Pw(t,e){1&t&&(s.TgZ(0,"mat-sidenav-content",3),s.Hsn(1,2),s.qZA())}const Iw=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Ow=["mat-sidenav","mat-sidenav-content","*"],Hw=".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-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",Yw={transformDrawer:_a("transform",[va("open, open-instant",Aa({transform:"none",visibility:"visible"})),va("void",Aa({"box-shadow":"none",visibility:"hidden"})),Ta("void => open-instant",wa("0ms")),Ta("void <=> open, open-instant => void",wa("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},Bw=new s.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),jw=new s.OlP("MAT_DRAWER_CONTAINER");let Fw=(()=>{class t extends To{constructor(t,e,i,n,s){super(i,n,s),this._changeDetectorRef=t,this._container=e}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36((0,s.Gpc)(()=>Kw)),s.Y36(s.SBq),s.Y36(ko),s.Y36(s.R0b))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&s.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[s.qOj],ngContentSelectors:Ew,decls:1,vars:0,template:function(t,e){1&t&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),t})(),Nw=(()=>{class t{constructor(t,e,i,n,o,r,a){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=i,this._platform=n,this._ngZone=o,this._doc=r,this._container=a,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new At.xQ,this._animationEnd=new At.xQ,this._animationState="void",this.openedChange=new s.vpe(!0),this._openedStream=this.openedChange.pipe((0,wt.h)(t=>t),(0,Dt.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,wt.h)(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),Cw(void 0)),this._closedStream=this.openedChange.pipe((0,wt.h)(t=>!t),(0,Dt.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,wt.h)(t=>t.fromState!==t.toState&&"void"===t.toState),Cw(void 0)),this._destroyed=new At.xQ,this.onPositionChanged=new s.vpe,this._modeChanged=new At.xQ,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{ds(this._elementRef.nativeElement,"keydown").pipe((0,wt.h)(t=>t.keyCode===Fo&&!this.disableClose&&!Go(t)),js(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe(Es((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{const{fromState:e,toState:i}=t;(0===i.indexOf("open")&&"void"===e||"void"===i&&0===e.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=ss(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=ss(t)}get opened(){return this._opened}set opened(t){this.toggle(ss(t))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(t=>{t||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}_isFocusWithinDrawer(){var t;const e=null===(t=this._doc)||void 0===t?void 0:t.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0)}toggle(t=!this.opened,e){return this._setOpen(t,!t&&this._isFocusWithinDrawer(),e)}_setOpen(t,e,i="program"){return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=i):(this._animationState="void",e&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(t=>{this.openedChange.pipe((0,Pt.q)(1)).subscribe(e=>t(e?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(t){this._animationStarted.next(t)}_animationDoneListener(t){this._animationEnd.next(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Wr),s.Y36(ra),s.Y36(eo),s.Y36(s.R0b),s.Y36(n.K0,8),s.Y36(jw,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&s.WFA("@transform.start",function(t){return e._animationStartListener(t)})("@transform.done",function(t){return e._animationDoneListener(t)}),2&t&&(s.uIk("align",null),s.d8E("@transform",e._animationState),s.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.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:Ew,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.Hsn(1),s.qZA())},directives:[To],encapsulation:2,data:{animation:[Yw.transformDrawer]},changeDetection:0}),t})(),Kw=(()=>{class t{constructor(t,e,i,n,o,r=!1,a){this._dir=t,this._element=e,this._ngZone=i,this._changeDetectorRef=n,this._animationMode=a,this._drawers=new s.n_E,this.backdropClick=new s.vpe,this._destroyed=new At.xQ,this._doCheckSubject=new At.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new At.xQ,t&&t.change.pipe(js(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),o.change().pipe(js(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=r}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=ss(t)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(t){this._backdropOverride=null==t?null:ss(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(Ot(this._allDrawers),js(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Ot(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,Lr.b)(10),js(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(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,e=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){const i=this._left._getWidth();t+=i,e-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)e+=this._right._getWidth();else if("push"==this._right.mode){const i=this._right._getWidth();e+=i,t-=i}t=t||null,e=e||null,t===this._contentMargins.left&&e===this._contentMargins.right||(this._contentMargins={left:t,right:e},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe((0,wt.h)(t=>t.fromState!==t.toState),js(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"!==t.mode&&t.openedChange.pipe(js(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe(js(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,Pt.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe(js((0,Ho.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const e=this._element.nativeElement.classList,i="mat-drawer-container-has-open";t?e.add(i):e.remove(i)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?this._end=t:this._start=t}),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(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(t){return"side"!==t.mode||!!this._backdropOverride}_isDrawerOpen(t){return null!=t&&t.opened}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(mo,8),s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(s.sBO),s.Y36(Co),s.Y36(Bw),s.Y36(el,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,Fw,5),s.Suo(i,Nw,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._content=t.first),s.iGM(t=s.CRH())&&(e._allDrawers=t)}},viewQuery:function(t,e){if(1&t&&s.Gf(Fw,5),2&t){let t;s.iGM(t=s.CRH())&&(e._userContent=t.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[s._Bn([{provide:jw,useExisting:t}])],ngContentSelectors:Dw,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(t,e){1&t&&(s.F$t(Rw),s.YNc(0,Lw,1,2,"div",0),s.Hsn(1),s.Hsn(2,1),s.YNc(3,xw,2,0,"mat-drawer-content",1)),2&t&&(s.Q6J("ngIf",e.hasBackdrop),s.xp6(3),s.Q6J("ngIf",!e._content))},directives:[n.O5,Fw],styles:[Hw],encapsulation:2,changeDetection:0}),t})(),qw=(()=>{class t extends Fw{constructor(t,e,i,n,s){super(t,e,i,n,s)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36((0,s.Gpc)(()=>Zw)),s.Y36(s.SBq),s.Y36(ko),s.Y36(s.R0b))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&s.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[s.qOj],ngContentSelectors:Ew,decls:1,vars:0,template:function(t,e){1&t&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),t})(),Uw=(()=>{class t extends Nw{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=ss(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=os(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=os(t)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(s.uIk("align",null),s.Udp("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),s.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[s.qOj],ngContentSelectors:Ew,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.Hsn(1),s.qZA())},directives:[To],encapsulation:2,data:{animation:[Yw.transformDrawer]},changeDetection:0}),t})(),Zw=(()=>{class t extends Kw{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,qw,5),s.Suo(i,Uw,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._content=t.first),s.iGM(t=s.CRH())&&(e._allDrawers=t)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[s._Bn([{provide:jw,useExisting:t}]),s.qOj],ngContentSelectors:Ow,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(s.F$t(Iw),s.YNc(0,zw,1,2,"div",0),s.Hsn(1),s.Hsn(2,1),s.YNc(3,Pw,2,0,"mat-sidenav-content",1)),2&t&&(s.Q6J("ngIf",e.hasBackdrop),s.xp6(3),s.Q6J("ngIf",!e._content))},directives:[n.O5,qw,To],styles:[Hw],encapsulation:2,changeDetection:0}),t})(),Gw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,pl,io,So],So,pl]}),t})(),Vw=(()=>{class t{constructor(t){this.authResolver=t}getSideMenuItems(){const t=[];return this.authResolver.isCabinetAdmin()&&t.push({label:"MENU_ITEMS.ALL_PUBLICATIONS",icon:"perun-publications-white",isSVG:!0,link:"/all-publications",activatedRegex:"^/all-publications",tabName:"all-publications"}),t.push({label:"MENU_ITEMS.MY_PUBLICATIONS",icon:"local_library",link:"/my-publications",activatedRegex:"^/my-publications",tabName:"my-publications"}),t.push({label:"MENU_ITEMS.CREATE_PUBLICATION",icon:"add_box",link:"/create-publication",activatedRegex:"^/create-publication",tabName:"create-publication"}),this.authResolver.isCabinetAdmin()&&t.push({label:"MENU_ITEMS.AUTHORS",icon:"assignment_ind",link:"/authors",activatedRegex:"^/authors",tabName:"authors"}),t.push({label:"MENU_ITEMS.CATEGORIES",icon:"all_inbox",link:"/categories",activatedRegex:"^/categories$",tabName:"categories"}),t.push({label:"MENU_ITEMS.PUBLICATION_SYSTEMS",icon:"assignment",link:"/publication-systems",activatedRegex:"^/publication-systems$",tabName:"publication-systems"}),t}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(_t))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$w=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[pl],pl]}),t})();const Ww=["*"],Jw=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],Qw=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"];class Xw{}const ty=fl(ml(Xw));class ey{}const iy=ml(ey),ny=new s.OlP("MatList"),sy=new s.OlP("MatNavList");let oy=(()=>{class t extends ty{constructor(){super(...arguments),this._stateChanges=new At.xQ}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[s._Bn([{provide:sy,useExisting:t}]),s.qOj,s.TTD],ngContentSelectors:Ww,decls:1,vars:0,template:function(t,e){1&t&&(s.F$t(),s.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.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:transparent;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{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:transparent;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{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 button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}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-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.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}}\n'],encapsulation:2,changeDetection:0}),t})(),ry=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),ay=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),cy=(()=>{class t extends iy{constructor(t,e,i,n){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new At.xQ,this._disabled=!1,this._isInteractiveList=!!(i||n&&"action-list"===n._getListType()),this._list=i||n;const s=this._getHostElement();"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(js(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=ss(t)}ngAfterContentInit(){!function(t,e,i="mat"){t.changes.pipe(Ot(t)).subscribe(({length:t})=>{Il(e,`${i}-2-line`,!1),Il(e,`${i}-3-line`,!1),Il(e,`${i}-multi-line`,!1),2===t||3===t?Il(e,`${i}-${t}-line`,!0):t>3&&Il(e,`${i}-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 t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(sy,8),s.Y36(ny,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,ry,5),s.Suo(i,ay,5),s.Suo(i,Pl,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._avatar=t.first),s.iGM(t=s.CRH())&&(e._icon=t.first),s.iGM(t=s.CRH())&&(e._lines=t)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&s.ekj("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[s.qOj],ngContentSelectors:Qw,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(t,e){1&t&&(s.F$t(Jw),s.TgZ(0,"div",0),s._UZ(1,"div",1),s.Hsn(2),s.TgZ(3,"div",2),s.Hsn(4,1),s.qZA(),s.Hsn(5,2),s.qZA()),2&t&&(s.xp6(1),s.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[ql],encapsulation:2,changeDetection:0}),t})(),uy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Ol,Ul,pl,Gl,n.ez],Ol,pl,Gl,$w]}),t})();function ly(t,e){if(1&t&&s._UZ(0,"mat-icon",6),2&t){const t=s.oxw().$implicit;s.Q6J("svgIcon",t.icon)}}function hy(t,e){if(1&t&&(s.TgZ(0,"mat-icon"),s._uU(1),s.qZA()),2&t){const t=s.oxw().$implicit;s.xp6(1),s.Oqu(t.icon)}}const dy=function(t){return{color:t}};function py(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-list-item",2),s.NdJ("click",function(){return s.CHM(t),s.oxw().shouldHideMenu()}),s.YNc(1,ly,1,1,"mat-icon",3),s.YNc(2,hy,2,1,"mat-icon",4),s.TgZ(3,"span",5),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.ekj("activated",i.isActive(t.activatedRegex)),s.s9C("routerLink",t.link),s.Q6J("ngStyle",s.VKq(10,dy,i.textColor))("matRippleColor","rgba(255, 255, 255, 0.1)"),s.xp6(1),s.Q6J("ngIf",t.isSVG),s.xp6(1),s.Q6J("ngIf",!t.isSVG),s.xp6(2),s.Oqu(s.lcZ(5,8,t.label))}}let fy=(()=>{class t{constructor(t,e,i){this.sideMenuItemService=t,this.storeService=e,this.router=i,this.items=[],this.textColor=this.storeService.get("theme","sidemenu_text_color"),this.currentUrl=i.url,i.events.subscribe(t=>{t instanceof re&&(this.currentUrl=t.url)})}ngOnInit(){this.items=this.sideMenuItemService.getSideMenuItems()}isActive(t){return new RegExp(t).test(this.currentUrl)}shouldHideMenu(){"over"===this.sideNav.mode&&this.sideNav.close()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Vw),s.Y36(ns),s.Y36(Pn))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"mat-nav-list",0),s.YNc(1,py,6,12,"mat-list-item",1),s.qZA()),2&t&&(s.xp6(1),s.Q6J("ngForOf",e.items))},directives:[oy,n.sg,cy,ql,n.PC,In,n.O5,Vg],pipes:[Vh],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}"]}),t})();function gy(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let my=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.translate=e,this.notificator=i,this.rtMessages=n,this.storeService=s,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(t=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+t.ticketNumber)),this.dialogRef.close()})}getFullEmailBody(){return this.message+"\n ------------------------\n Perun instance: "+this.instanceName+"\n Sended from new Perun Gui, version: "+i(306).i8}close(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(dh),s.Y36(Gh),s.Y36(Am),s.Y36(nt),s.Y36(ns))},t.\u0275cmp=s.Xpm({type:t,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(t,e){if(1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s.TgZ(4,"mat-form-field"),s.TgZ(5,"mat-label"),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.TgZ(8,"input",2,3),s.NdJ("ngModelChange",function(t){return e.subject=t}),s.qZA(),s.YNc(10,gy,3,3,"mat-error",4),s.qZA(),s.TgZ(11,"mat-form-field"),s.TgZ(12,"mat-label"),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.TgZ(15,"textarea",5),s.NdJ("ngModelChange",function(t){return e.message=t}),s.ALo(16,"translate"),s._uU(17," "),s.qZA(),s.TgZ(18,"mat-hint"),s._uU(19),s.ALo(20,"translate"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(21,"div",6),s.TgZ(22,"div",7),s.TgZ(23,"button",8),s.NdJ("click",function(){return e.close()}),s._uU(24),s.ALo(25,"translate"),s.qZA(),s.TgZ(26,"button",9),s.NdJ("click",function(){return e.sendBugReport()}),s._uU(27),s.ALo(28,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.MAs(9);s.xp6(1),s.Oqu(s.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),s.xp6(5),s.Oqu(s.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),s.xp6(2),s.Q6J("ngModel",e.subject),s.xp6(2),s.Q6J("ngIf",t.invalid),s.xp6(3),s.Oqu(s.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),s.xp6(2),s.s9C("placeholder",s.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),s.Q6J("ngModel",e.message),s.xp6(4),s.Oqu(s.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),s.xp6(5),s.hij(" ",s.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),s.xp6(2),s.Q6J("disabled",t.invalid),s.xp6(1),s.hij(" ",s.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[Ah,vh,Bd,Ld,Vm,Zd,af,_p,$p,n.O5,Ed,kh,id,kd],pipes:[Vh],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})(),_y=(()=>{class t{transform(t,e,i){return t[`${i}_${e}`]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"localisedText",type:t,pure:!0}),t})(),wy=(()=>{class t{transform(t,e){return t["link_"+e]||t.link_en}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"localisedLink",type:t,pure:!0}),t})(),yy=(()=>{class t{transform(t){return t.includes("/")?t:"/assets/config/"+t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"footerLogoPath",type:t,pure:!0}),t})();function by(t,e){if(1&t&&(s.TgZ(0,"a",13),s.ALo(1,"localisedLink"),s._UZ(2,"img",14),s.ALo(3,"footerLogoPath"),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Q6J("href",s.xi3(1,2,t,e.language),s.LSH),s.xp6(2),s.s9C("src",s.lcZ(3,5,t.logo),s.LSH)}}function Ay(t,e){if(1&t&&(s.TgZ(0,"span"),s._UZ(1,"img",14),s.ALo(2,"footerLogoPath"),s.qZA()),2&t){const t=s.oxw().$implicit;s.xp6(1),s.s9C("src",s.lcZ(2,1,t.logo),s.LSH)}}function vy(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,by,4,7,"a",11),s.ALo(2,"localisedLink"),s.YNc(3,Ay,3,3,"span",12),s.ALo(4,"localisedLink"),s.qZA()),2&t){const t=e.$implicit,i=s.oxw(3);s.xp6(1),s.Q6J("ngIf",s.xi3(2,2,t,i.language)),s.xp6(2),s.Q6J("ngIf",!s.xi3(4,5,t,i.language))}}const ky=function(t){return{"min-height":t}};function Ty(t,e){if(1&t&&(s.TgZ(0,"div",10),s.YNc(1,vy,5,8,"div",5),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw();s.Q6J("ngStyle",s.VKq(2,ky,e.columnContentHeight+"px")),s.xp6(1),s.Q6J("ngForOf",t.elements)}}const Cy=function(t){return{color:t}};function Sy(t,e){if(1&t&&(s.TgZ(0,"i",20),s._uU(1),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Q6J("ngStyle",s.VKq(2,Cy,e.linksTextColor)),s.xp6(1),s.hij(" ",t.icon," ")}}function My(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"span",21),s.NdJ("click",function(){s.CHM(t);const e=s.oxw().$implicit;return s.oxw(3).openDialog(e.dialog)}),s._uU(1),s.ALo(2,"localisedText"),s.qZA()}if(2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Q6J("ngStyle",s.VKq(6,Cy,e.linksTextColor)),s.xp6(1),s.hij("",s.Dn7(2,2,t,e.language,"label")," ")}}function Ey(t,e){if(1&t&&(s.TgZ(0,"a",22),s.ALo(1,"localisedLink"),s._uU(2),s.ALo(3,"localisedText"),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Q6J("href",s.xi3(1,3,t,e.language),s.LSH)("ngStyle",s.VKq(10,Cy,e.linksTextColor)),s.xp6(2),s.Oqu(s.Dn7(3,6,t,e.language,"label"))}}function Ly(t,e){if(1&t&&(s.TgZ(0,"span",10),s._uU(1),s.ALo(2,"localisedText"),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Q6J("ngStyle",s.VKq(6,Cy,e.linksTextColor)),s.xp6(1),s.Oqu(s.Dn7(2,2,t,e.language,"label"))}}function xy(t,e){if(1&t&&(s.TgZ(0,"div",16),s.YNc(1,Sy,2,4,"i",17),s.YNc(2,My,3,8,"span",18),s.YNc(3,Ey,4,12,"a",19),s.ALo(4,"localisedLink"),s.YNc(5,Ly,3,8,"span",9),s.ALo(6,"localisedLink"),s.qZA()),2&t){const t=e.$implicit,i=s.oxw(3);s.xp6(1),s.Q6J("ngIf",t.icon),s.xp6(1),s.Q6J("ngIf",t.dialog),s.xp6(1),s.Q6J("ngIf",s.xi3(4,4,t,i.language)&&!t.dialog),s.xp6(2),s.Q6J("ngIf",!s.xi3(6,7,t,i.language)&&!t.dialog)}}const Ry=function(t){return{height:t}};function Dy(t,e){if(1&t&&(s.TgZ(0,"div",10),s.YNc(1,xy,7,10,"div",15),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw();s.Q6J("ngStyle",s.VKq(2,Ry,e.columnContentHeight+"px")),s.xp6(1),s.Q6J("ngForOf",t.elements)}}function zy(t,e){if(1&t&&(s.TgZ(0,"div",7),s.TgZ(1,"h6",8),s._uU(2),s.ALo(3,"localisedText"),s.qZA(),s.YNc(4,Ty,2,4,"div",9),s.YNc(5,Dy,2,4,"div",9),s.qZA()),2&t){const t=e.$implicit,i=s.oxw();s.ekj("my-auto",i.containsLogos),s.xp6(1),s.Q6J("ngStyle",s.VKq(10,Cy,i.headersTextColor)),s.xp6(1),s.hij(" ",s.Dn7(3,6,t,i.language,"title")," "),s.xp6(2),s.Q6J("ngIf",t.logos),s.xp6(1),s.Q6J("ngIf",t.elements&&!t.logos)}}function Py(t,e){if(1&t&&(s.TgZ(0,"span"),s.TgZ(1,"a",6),s._uU(2),s.qZA(),s.qZA()),2&t){const t=e.$implicit,i=e.index,n=s.oxw();s.xp6(1),s.Q6J("href",t.url,s.LSH)("ngStyle",s.VKq(3,Cy,n.copyrightTextColor)),s.xp6(1),s.Oqu(i?", "+t.name:t.name)}}const Iy=function(t){return{background:t}};let Oy=(()=>{class t{constructor(t,e,i){this.storeService=t,this.translateService=e,this.dialog=i,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.items=[],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(t=>{this.language=t.lang}),this.version=i(306).i8,this.items=this.storeService.get("footer","columns");for(const t of this.items)t.logos?this.containsLogos=!0:25*t.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*t.elements.length);this.copyrightItems=this.storeService.get("footer","copyright_items")}openDialog(t){const e=tm();switch(t){case"reportIssue":e.width="550px",this.dialog.open(my,e)}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(ns),s.Y36(Gh),s.Y36(yh))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"footer",0),s.TgZ(1,"div",1),s.YNc(2,zy,6,12,"div",2),s.qZA(),s._UZ(3,"hr",3),s.TgZ(4,"div",4),s._uU(5),s.YNc(6,Py,3,5,"span",5),s._uU(7," Version "),s.TgZ(8,"a",6),s._uU(9),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Q6J("ngStyle",s.VKq(8,Iy,e.bgColor)),s.xp6(2),s.Q6J("ngForOf",e.items),s.xp6(2),s.Q6J("ngStyle",s.VKq(10,Cy,e.copyrightTextColor)),s.xp6(1),s.hij(" \xa9 ",e.currentYear," Copyright: "),s.xp6(1),s.Q6J("ngForOf",e.copyrightItems),s.xp6(2),s.Q6J("href",e.githubRepository,s.LSH)("ngStyle",s.VKq(12,Cy,e.copyrightTextColor)),s.xp6(1),s.Oqu(e.version))},directives:[n.PC,n.sg,n.O5],pipes:[_y,wy,yy],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}"]}),t})();function Hy(t,e){if(1&t&&(s.TgZ(0,"div",8),s._UZ(1,"div",9),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("innerHTML",t.logo,s.oJD)}}function Yy(t,e){if(1&t&&(s.TgZ(0,"div",10),s._UZ(1,"div",11),s._UZ(2,"mat-icon",12),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("innerHTML",t.logo,s.oJD)}}function By(t,e){if(1&t&&(s.TgZ(0,"div",8),s._UZ(1,"a",9),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("innerHTML",t.logo,s.oJD)}}const jy=function(t){return{color:t}};function Fy(t,e){if(1&t&&(s.TgZ(0,"p",13),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.Q6J("ngStyle",s.VKq(2,jy,t.textColor)),s.xp6(1),s.hij(" ",t.headerTitle," ")}}const Ny=function(t,e){return{background:t,color:e}},Ky=function(t,e){return{"min-height":t,"background-color":e}};let qy=(()=>{class t{constructor(t,e,i,n){this.storeService=t,this.sanitizer=e,this.preferredLangService=i,this.translateService=n,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 t=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(t)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(ns),s.Y36(z),s.Y36(Sm),s.Y36(Gh))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:11,vars:12,consts:[["id","login-nav",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["style"," display: flex; flex-direction: 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"],[2,"display","flex","flex-direction","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(t,e){1&t&&(s.TgZ(0,"div",0),s.YNc(1,Hy,2,1,"div",1),s.YNc(2,Yy,3,1,"div",2),s.YNc(3,By,2,1,"div",1),s.YNc(4,Fy,2,4,"p",3),s.qZA(),s.TgZ(5,"div",4),s.TgZ(6,"div",5),s.TgZ(7,"div",6),s._UZ(8,"router-outlet"),s.qZA(),s.TgZ(9,"div",7),s._UZ(10,"perun-web-apps-footer"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Q6J("ngStyle",s.WLB(6,Ny,e.headerBackgroundColor,e.headerTextColor)),s.xp6(1),s.Q6J("ngIf","admin-gui"===e.application),s.xp6(1),s.Q6J("ngIf","publications"===e.application),s.xp6(1),s.Q6J("ngIf","user-profile"===e.application),s.xp6(1),s.Q6J("ngIf",!!e.headerTitle),s.xp6(2),s.Q6J("ngStyle",s.WLB(9,Ky,e.getContentInnerMinHeight(),e.contentBackgroundColor)))},directives:[n.PC,n.O5,Yn,Oy,Vg],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}"]}),t})();const Uy=["footer"],Zy=function(t){return{background:t}},Gy=function(t){return{"min-height":t}};function Vy(t,e){if(1&t&&(s.TgZ(0,"div"),s._UZ(1,"perun-web-apps-header",1),s.TgZ(2,"mat-sidenav-container"),s.TgZ(3,"mat-sidenav",2,3),s._UZ(5,"perun-web-apps-side-menu",4),s.qZA(),s.TgZ(6,"mat-sidenav-content",5),s.TgZ(7,"div",6),s._UZ(8,"router-outlet"),s.qZA(),s.TgZ(9,"div",null,7),s._UZ(11,"perun-web-apps-footer"),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.MAs(4),e=s.oxw();s.xp6(1),s.Q6J("sideNav",t),s.xp6(2),s.Q6J("mode",e.sidebarMode)("ngStyle",s.VKq(7,Zy,e.sideMenuBgColor))("opened",!e.isMobile()),s.xp6(2),s.Q6J("sideNav",t),s.xp6(1),s.Q6J("ngStyle",s.VKq(9,Zy,e.contentBackgroundColor)),s.xp6(1),s.Q6J("ngStyle",s.VKq(11,Gy,e.contentHeight))}}function $y(t,e){1&t&&(s.TgZ(0,"div"),s._UZ(1,"perun-web-apps-login-screen-base",8),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Q6J("application","publications")("headerTitle",s.lcZ(2,2,"HEADER.TITLE")))}let Wy=(()=>{class t{constructor(t,e,i,n,s){this.store=t,this.initAuth=e,this.changeDetector=i,this.authResolver=n,this.router=s,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)"}ngOnInit(){this.isLoginScreenShow=this.initAuth.isLoginScreenShown(),this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),sessionStorage.removeItem("baLogout");const t=location.pathname;this.authResolver.isCabinetAdmin()||"/"!==t&&!t.includes("/all-publications")||this.router.navigate(["my-publications"])}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side"}isMobile(){return window.innerWidth<=t.minWidth}setContentHeight(t){this.contentHeight="calc(100vh - 84px - "+t+"px)",this.changeDetector.detectChanges()}isServiceLogin(){return!!sessionStorage.getItem("baLogout")}ngAfterViewInit(){this.contentHeight="calc(100vh - 84px - "+this.footer.nativeElement.offsetHeight+"px)",this.changeDetector.detectChanges()}}return t.minWidth=992,t.\u0275fac=function(e){return new(e||t)(s.Y36(ns),s.Y36(_m),s.Y36(s.sBO),s.Y36(_t),s.Y36(Pn))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-root"]],viewQuery:function(t,e){if(1&t&&s.Gf(Uy,5),2&t){let t;s.iGM(t=s.CRH())&&(e.footer=t.first)}},hostBindings:function(t,e){1&t&&s.NdJ("resize",function(t){return e.getScreenSize(t)},!1,s.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(t,e){1&t&&(s._UZ(0,"perun-web-apps-notificator"),s.YNc(1,Vy,12,13,"div",0),s.YNc(2,$y,3,4,"div",0)),2&t&&(s.xp6(1),s.Q6J("ngIf",!e.isLoginScreenShow&&!e.isServiceAccess&&!e.isServiceLogin()),s.xp6(1),s.Q6J("ngIf",e.isLoginScreenShow||e.isServiceAccess||e.isServiceLogin()))},directives:[pw,n.O5,Tw,Zw,Uw,n.PC,fy,qw,Yn,Oy,qy],pipes:[Vh],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}"]}),t})();class Jy{constructor(t,e="/assets/i18n/",i=".json"){this.http=t,this.prefix=e,this.suffix=i}getTranslation(t){return this.http.get(`${this.prefix}${t}${this.suffix}`)}}let Qy=(()=>{class t{constructor(t,e,i,n,s){this.http=t,this.storeService=e,this.authzSevice=i,this.titleService=n,this.utilsService=s}initializeColors(t,e){return new Promise(i=>{e.forEach(t=>{const e=this.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e)}),t.forEach(t=>{const e=this.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e),this.setEntityTheme(t.entity,e)}),i()})}setEntityTheme(t,e){const i=(n=e,[Xy(tinycolor(n).lighten(52),"50"),Xy(tinycolor(n).lighten(37),"100"),Xy(tinycolor(n).lighten(26),"200"),Xy(tinycolor(n).lighten(12),"300"),Xy(tinycolor(n).lighten(6),"400"),Xy(tinycolor(n),"500"),Xy(tinycolor(n).darken(6),"600"),Xy(tinycolor(n).darken(12),"700"),Xy(tinycolor(n).darken(18),"800"),Xy(tinycolor(n).darken(24),"900"),Xy(tinycolor(n).lighten(50).saturate(30),"A100"),Xy(tinycolor(n).lighten(30).saturate(30),"A200"),Xy(tinycolor(n).lighten(10).saturate(15),"A400"),Xy(tinycolor(n).lighten(5).saturate(5),"A700")]);var n;for(const s of i){const e=`--${t}-theme-primary-contrast-${s.name}`,i=s.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${t}-theme-primary-${s.name}`,`${s.red},${s.green},${s.blue}`),document.documentElement.style.setProperty(e,i)}}loadAppDefaultConfig(){return new Promise(t=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(e=>{this.storeService.setDefaultConfig(e),t()})})}loadAppInstanceConfig(){return new Promise(t=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(e=>{this.storeService.setInstanceConfig(e);const i=document.location.hostname;void 0!==e.brandings&&void 0!==e.brandings[i]&&this.storeService.setBanding(i),t()},()=>{console.log("instance config not detected"),t()})})}getNoCacheHeaders(){return new F.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(t=>{const e=document.querySelector("link[rel*='icon']")||document.createElement("link");e.type="image/x-icon",e.rel="shortcut icon",e.href=this.storeService.get("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(e),t()})}setApiUrl(){return new Promise(t=>{let e=this.storeService.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(e=e.replace("oauth","ba")),this.authzSevice.configuration.basePath=e,this.titleService.setTitle(this.storeService.get("document_title")),t()})}loadAppsConfig(){return new Promise((t,e)=>{this.utilsService.getAppsConfig().subscribe(e=>{this.storeService.setAppsConfig(e),t()},t=>e(t))})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(F.eN),s.LFG(ns),s.LFG(G),s.LFG(j),s.LFG(ut))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Xy(t,e){const i=tinycolor(t),n=i.toRgb();return{name:e,hex:i.toHexString(),darkContrast:i.isLight(),red:n.r,green:n.g,blue:n.b}}let tb=(()=>{class t{constructor(t,e,i,n,s){this.initAuthService=t,this.appConfigService=e,this.location=i,this.authzSevice=n,this.guiAuthResolver=s,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(t=>{throw console.error(t),this.location.go("/"),location.reload(),t}).then(t=>t?this.initAuthService.loadPrincipal().then(()=>this.loadPolicies()):this.initAuthService.handleAuthStart())}loadPolicies(){return new Promise((t,e)=>{this.authzSevice.getAllPolicies().subscribe(e=>{this.guiAuthResolver.setPerunPolicies(e),t()},t=>e(t))})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(_m),s.LFG(Qy),s.LFG(n.Ye),s.LFG(G),s.LFG(_t))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const eb=new s.OlP("perun-api-service");let ib=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,Th,nd,$h]]}),t})();const nb=["*",[["mat-card-footer"]]],sb=["*","mat-card-footer"];let ob=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t})(),rb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t})(),ab=(()=>{class t{constructor(t){this._animationMode=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(el,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:sb,decls:2,vars:0,template:function(t,e){1&t&&(s.F$t(nb),s.Hsn(0),s.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-animation-noopable.mat-card{transition:none;animation:none}.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}.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}\n"],encapsulation:2,changeDetection:0}),t})(),cb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[pl],pl]}),t})();const ub=["input"],lb=function(t){return{enterDuration:t}},hb=["*"],db=new s.OlP("mat-checkbox-default-options",{providedIn:"root",factory:pb});function pb(){return{color:"accent",clickAction:"check-indeterminate"}}let fb=0;const gb=pb(),mb={provide:Kd,useExisting:(0,s.Gpc)(()=>bb),multi:!0};class _b{}class wb{constructor(t){this._elementRef=t}}const yb=_l(gl(ml(fl(wb))));let bb=(()=>{class t extends yb{constructor(t,e,i,n,o,r,a){super(t),this._changeDetectorRef=e,this._focusMonitor=i,this._ngZone=n,this._animationMode=r,this._options=a,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++fb,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new s.vpe,this.indeterminateChange=new s.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||gb,this.color=this.defaultColor=this._options.color||gb.color,this.tabIndex=parseInt(o)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(t){this._required=ss(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=ss(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=ss(t),e&&(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(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,i=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{i.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new _b;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(t){var e;const i=null===(e=this._options)||void 0===e?void 0:e.clickAction;t.stopPropagation(),this.disabled||"noop"===i?this.disabled||"noop"!==i||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t,e){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let i="";switch(t){case 0:if(1===e)i="unchecked-checked";else{if(3!=e)return"";i="unchecked-indeterminate"}break;case 2:i=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===e?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${i}`}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(ra),s.Y36(s.R0b),s.$8M("tabindex"),s.Y36(el,8),s.Y36(db,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){if(1&t&&(s.Gf(ub,5),s.Gf(ql,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._inputElement=t.first),s.iGM(t=s.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Ikx("id",e.id),s.uIk("tabindex",null),s.ekj("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[s._Bn([mb]),s.qOj],ngContentSelectors:hb,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",0,"xml","space","preserve",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(t,e){if(1&t&&(s.F$t(),s.TgZ(0,"label",0,1),s.TgZ(2,"span",2),s.TgZ(3,"input",3,4),s.NdJ("change",function(t){return e._onInteractionEvent(t)})("click",function(t){return e._onInputClick(t)}),s.qZA(),s.TgZ(5,"span",5),s._UZ(6,"span",6),s.qZA(),s._UZ(7,"span",7),s.TgZ(8,"span",8),s.O4$(),s.TgZ(9,"svg",9),s._UZ(10,"path",10),s.qZA(),s.kcU(),s._UZ(11,"span",11),s.qZA(),s.qZA(),s.TgZ(12,"span",12,13),s.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),s.TgZ(14,"span",14),s._uU(15,"\xa0"),s.qZA(),s.Hsn(16),s.qZA(),s.qZA()),2&t){const t=s.MAs(1),i=s.MAs(13);s.uIk("for",e.inputId),s.xp6(2),s.ekj("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),s.xp6(1),s.Q6J("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),s.uIk("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),s.xp6(2),s.Q6J("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",s.VKq(19,lb,"NoopAnimations"===e._animationMode?0:150))}},directives:[ql,Dr],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:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-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;-moz-user-select:auto;-ms-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:transparent;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:transparent}.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%}\n"],encapsulation:2,changeDetection:0}),t})(),Ab=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),vb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Ul,pl,zr,Ab],pl,Ab]}),t})(),kb=0;const Tb=new s.OlP("CdkAccordion");let Cb=(()=>{class t{constructor(){this._stateChanges=new At.xQ,this._openCloseAllActions=new At.xQ,this.id="cdk-accordion-"+kb++,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=ss(t)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[s._Bn([{provide:Tb,useExisting:t}]),s.TTD]}),t})(),Sb=0,Mb=(()=>{class t{constructor(t,e,i){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=i,this._openCloseAllSubscription=te.w.EMPTY,this.closed=new s.vpe,this.opened=new s.vpe,this.destroyed=new s.vpe,this.expandedChange=new s.vpe,this.id="cdk-accordion-child-"+Sb++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=i.listen((t,e)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===e&&this.id!==t&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(t){t=ss(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(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(t){this._disabled=ss(t)}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(t=>{this.disabled||(this.expanded=t)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Tb,12),s.Y36(s.sBO),s.Y36(Ao))},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[s._Bn([{provide:Tb,useValue:void 0}])]}),t})(),Eb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();const Lb=["body"];function xb(t,e){}const Rb=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Db=["mat-expansion-panel-header","*","mat-action-row"];function zb(t,e){if(1&t&&s._UZ(0,"span",2),2&t){const t=s.oxw();s.Q6J("@indicatorRotate",t._getExpandedState())}}const Pb=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Ib=["mat-panel-title","mat-panel-description","*"],Ob=new s.OlP("MAT_ACCORDION"),Hb="225ms cubic-bezier(0.4,0.0,0.2,1)",Yb={indicatorRotate:_a("indicatorRotate",[va("collapsed, void",Aa({transform:"rotate(0deg)"})),va("expanded",Aa({transform:"rotate(180deg)"})),Ta("expanded <=> collapsed, void => collapsed",wa(Hb))]),bodyExpansion:_a("bodyExpansion",[va("collapsed, void",Aa({height:"0px",visibility:"hidden"})),va("expanded",Aa({height:"*",visibility:"visible"})),Ta("expanded <=> collapsed, void => collapsed",wa(Hb))])};let Bb=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),jb=0;const Fb=new s.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Nb=(()=>{class t extends Mb{constructor(t,e,i,n,o,r,a){super(t,e,i),this._viewContainerRef=n,this._animationMode=r,this._hideToggle=!1,this.afterExpand=new s.vpe,this.afterCollapse=new s.vpe,this._inputChanges=new At.xQ,this._headerId="mat-expansion-panel-header-"+jb++,this._bodyAnimationDone=new At.xQ,this.accordion=t,this._document=o,this._bodyAnimationDone.pipe(Es((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{"void"!==t.fromState&&("expanded"===t.toState?this.afterExpand.emit():"collapsed"===t.toState&&this.afterCollapse.emit())}),a&&(this.hideToggle=a.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=ss(t)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}_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.opened.pipe(Ot(null),(0,wt.h)(()=>this.expanded&&!this._portal),(0,Pt.q)(1)).subscribe(()=>{this._portal=new xo(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Ob,12),s.Y36(s.sBO),s.Y36(Ao),s.Y36(s.s_b),s.Y36(n.K0),s.Y36(el,8),s.Y36(Fb,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,Bb,5),2&t){let t;s.iGM(t=s.CRH())&&(e._lazyContent=t.first)}},viewQuery:function(t,e){if(1&t&&s.Gf(Lb,5),2&t){let t;s.iGM(t=s.CRH())&&(e._body=t.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&s.ekj("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[s._Bn([{provide:Ob,useValue:void 0}]),s.qOj,s.TTD],ngContentSelectors:Db,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(s.F$t(Rb),s.Hsn(0),s.TgZ(1,"div",0,1),s.NdJ("@bodyExpansion.done",function(t){return e._bodyAnimationDone.next(t)}),s.TgZ(3,"div",2),s.Hsn(4,1),s.YNc(5,xb,0,0,"ng-template",3),s.qZA(),s.Hsn(6,2),s.qZA()),2&t&&(s.xp6(1),s.Q6J("@bodyExpansion",e._getExpandedState())("id",e.id),s.uIk("aria-labelledby",e._headerId),s.xp6(4),s.Q6J("cdkPortalOutlet",e._portal))},directives:[Io],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-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 button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[Yb.bodyExpansion]},changeDetection:0}),t})(),Kb=(()=>{class t{constructor(t,e,i,n,s,o){this.panel=t,this._element=e,this._focusMonitor=i,this._changeDetectorRef=n,this._animationMode=o,this._parentChangeSubscription=te.w.EMPTY;const r=t.accordion?t.accordion._stateChanges.pipe((0,wt.h)(t=>!(!t.hideToggle&&!t.togglePosition))):Lt.E;this._parentChangeSubscription=(0,Ho.T)(t.opened,t.closed,r,t._inputChanges.pipe((0,wt.h)(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe((0,wt.h)(()=>t._containsFocus())).subscribe(()=>i.focusVia(e,"program")),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.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 t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}_keydown(t){switch(t.keyCode){case No:case jo:Go(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t,e){t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(t=>{t&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Nb,1),s.Y36(s.SBq),s.Y36(ra),s.Y36(s.sBO),s.Y36(Fb,8),s.Y36(el,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e._toggle()})("keydown",function(t){return e._keydown(t)}),2&t&&(s.uIk("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),s.Udp("height",e._getHeaderHeight()),s.ekj("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:Ib,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(s.F$t(Pb),s.TgZ(0,"span",0),s.Hsn(1),s.Hsn(2,1),s.Hsn(3,2),s.qZA(),s.YNc(4,zb,1,1,"span",1)),2&t&&(s.xp6(4),s.Q6J("ngIf",e._showToggle()))},directives:[n.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}[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 .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[Yb.indicatorRotate]},changeDetection:0}),t})(),qb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),Ub=(()=>{class t extends Cb{constructor(){super(...arguments),this._ownHeaders=new s.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(t){this._hideToggle=ss(t)}ngAfterContentInit(){this._headers.changes.pipe(Ot(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Ur(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(t){this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["mat-accordion"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,Kb,5),2&t){let t;s.iGM(t=s.CRH())&&(e._headers=t)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[s._Bn([{provide:Ob,useExisting:t}]),s.qOj]}),t})(),Zb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,pl,Eb,Oo]]}),t})(),Gb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Ol,pl],Ol,pl]}),t})();function Vb(t,e){1&t&&s.Hsn(0)}const $b=["*"];let Wb=(()=>{class t{constructor(t){this._elementRef=t}focus(){this._elementRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),t})(),Jb=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkStepLabel",""]]}),t})(),Qb=0;const Xb="edit",tA="done",eA="error",iA=new s.OlP("STEPPER_GLOBAL_OPTIONS");let nA=(()=>{class t{constructor(t,e){this._stepper=t,this.interacted=!1,this.interactedStream=new s.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=e||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType,this._showError=!!this._stepperOptions.showError}get editable(){return this._editable}set editable(t){this._editable=ss(t)}get optional(){return this._optional}set optional(t){this._optional=ss(t)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(t){this._completedOverride=ss(t)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(t){this._customError=ss(t)}_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))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36((0,s.Gpc)(()=>sA)),s.Y36(iA,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["cdk-step"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,Jb,5),2&t){let t;s.iGM(t=s.CRH())&&(e.stepLabel=t.first)}},viewQuery:function(t,e){if(1&t&&s.Gf(s.Rgc,7),2&t){let t;s.iGM(t=s.CRH())&&(e.content=t.first)}},inputs:{editable:"editable",optional:"optional",completed:"completed",hasError:"hasError",stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[s.TTD],ngContentSelectors:$b,decls:1,vars:0,template:function(t,e){1&t&&(s.F$t(),s.YNc(0,Vb,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t})(),sA=(()=>{class t{constructor(t,e,i,n){this._dir=t,this._changeDetectorRef=e,this._elementRef=i,this._destroyed=new At.xQ,this.steps=new s.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new s.vpe,this._orientation="horizontal",this._groupId=Qb++,this._document=n}get linear(){return this._linear}set linear(t){this._linear=ss(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){var e;const i=os(t);this.steps&&this._steps?(this._isValidIndex(t),null===(e=this.selected)||void 0===e||e._markAsInteracted(),this._selectedIndex!==i&&!this._anyControlsInvalidOrPending(i)&&(i>=this._selectedIndex||this.steps.toArray()[i].editable)&&this._updateSelectedItemIndex(t)):this._selectedIndex=i}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(t){this.selectedIndex=t&&this.steps?this.steps.toArray().indexOf(t):-1}get orientation(){return this._orientation}set orientation(t){this._orientation=t,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===t)}ngAfterContentInit(){this._steps.changes.pipe(Ot(this._steps),js(this._destroyed)).subscribe(t=>{this.steps.reset(t.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._keyManager=new Ur(this._stepHeader).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,bt.of)()).pipe(Ot(this._layoutDirection()),js(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),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._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(t=>t.reset()),this._stateChanged()}_getStepLabelId(t){return`cdk-step-label-${this._groupId}-${t}`}_getStepContentId(t){return`cdk-step-content-${this._groupId}-${t}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(t){const e=t-this._selectedIndex;return e<0?"rtl"===this._layoutDirection()?"next":"previous":e>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(t,e="number"){const i=this.steps.toArray()[t],n=this._isCurrentStep(t);return i._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(i,n):this._getGuidelineLogic(i,n,e)}_getDefaultIndicatorLogic(t,e){return t._showError&&t.hasError&&!e?eA:!t.completed||e?"number":t.editable?Xb:tA}_getGuidelineLogic(t,e,i="number"){return t._showError&&t.hasError&&!e?eA:t.completed&&!e?tA:t.completed&&e?i:t.editable&&e?Xb:i}_isCurrentStep(t){return this._selectedIndex===t}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(t){const e=this.steps.toArray();this.selectionChange.emit({selectedIndex:t,previouslySelectedIndex:this._selectedIndex,selectedStep:e[t],previouslySelectedStep:e[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(t):this._keyManager.updateActiveItem(t),this._selectedIndex=t,this._stateChanged()}_onKeydown(t){const e=Go(t),i=t.keyCode,n=this._keyManager;null==n.activeItemIndex||e||i!==No&&i!==jo?n.onKeydown(t):(this.selectedIndex=n.activeItemIndex,t.preventDefault())}_anyControlsInvalidOrPending(t){return!!(this._linear&&t>=0)&&this.steps.toArray().slice(0,t).some(t=>{const e=t.stepControl;return(e?e.invalid||e.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}_isValidIndex(t){return t>-1&&(!this.steps||t{class t{constructor(t){this._stepper=t,this.type="submit"}_handleClick(){this._stepper.next()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(sA))},t.\u0275dir=s.lG2({type:t,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e._handleClick()}),2&t&&s.Ikx("type",e.type)},inputs:{type:"type"}}),t})(),rA=(()=>{class t{constructor(t){this._stepper=t,this.type="button"}_handleClick(){this._stepper.previous()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(sA))},t.\u0275dir=s.lG2({type:t,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e._handleClick()}),2&t&&s.Ikx("type",e.type)},inputs:{type:"type"}}),t})(),aA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[_o]]}),t})();function cA(t,e){if(1&t&&s.GkF(0,8),2&t){const t=s.oxw();s.Q6J("ngTemplateOutlet",t.iconOverrides[t.state])("ngTemplateOutletContext",t._getIconContext())}}function uA(t,e){if(1&t&&(s.TgZ(0,"span"),s._uU(1),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Oqu(t._getDefaultTextForState(t.state))}}function lA(t,e){if(1&t&&(s.TgZ(0,"mat-icon"),s._uU(1),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Oqu(t._getDefaultTextForState(t.state))}}function hA(t,e){if(1&t&&(s.ynx(0,9),s.YNc(1,uA,2,1,"span",10),s.YNc(2,lA,2,1,"mat-icon",11),s.BQk()),2&t){const t=s.oxw();s.Q6J("ngSwitch",t.state),s.xp6(1),s.Q6J("ngSwitchCase","number")}}function dA(t,e){if(1&t&&(s.TgZ(0,"div",12),s.GkF(1,13),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngTemplateOutlet",t._templateLabel().template)}}function pA(t,e){if(1&t&&(s.TgZ(0,"div",12),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Oqu(t.label)}}function fA(t,e){if(1&t&&(s.TgZ(0,"div",14),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Oqu(t._intl.optionalLabel)}}function gA(t,e){if(1&t&&(s.TgZ(0,"div",15),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Oqu(t.errorMessage)}}function mA(t,e){}function _A(t,e){if(1&t&&(s.Hsn(0),s.YNc(1,mA,0,0,"ng-template",0)),2&t){const t=s.oxw();s.xp6(1),s.Q6J("cdkPortalOutlet",t._portal)}}const wA=["*"];function yA(t,e){1&t&&s._UZ(0,"div",9)}const bA=function(t,e){return{step:t,i:e}};function AA(t,e){if(1&t&&(s.ynx(0),s.GkF(1,7),s.YNc(2,yA,1,0,"div",8),s.BQk()),2&t){const t=e.$implicit,i=e.index,n=e.last;s.oxw(2);const o=s.MAs(4);s.xp6(1),s.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",s.WLB(3,bA,t,i)),s.xp6(1),s.Q6J("ngIf",!n)}}function vA(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",10),s.NdJ("@horizontalStepTransition.done",function(e){return s.CHM(t),s.oxw(2)._animationDone.next(e)}),s.GkF(1,11),s.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=s.oxw(2);s.Q6J("@horizontalStepTransition",n._getAnimationDirection(i))("id",n._getStepContentId(i)),s.uIk("aria-labelledby",n._getStepLabelId(i))("aria-expanded",n.selectedIndex===i),s.xp6(1),s.Q6J("ngTemplateOutlet",t.content)}}function kA(t,e){if(1&t&&(s.ynx(0),s.TgZ(1,"div",3),s.YNc(2,AA,3,6,"ng-container",4),s.qZA(),s.TgZ(3,"div",5),s.YNc(4,vA,2,5,"div",6),s.qZA(),s.BQk()),2&t){const t=s.oxw();s.xp6(2),s.Q6J("ngForOf",t.steps),s.xp6(2),s.Q6J("ngForOf",t.steps)}}function TA(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",13),s.GkF(1,7),s.TgZ(2,"div",14),s.TgZ(3,"div",15),s.NdJ("@verticalStepTransition.done",function(e){return s.CHM(t),s.oxw(2)._animationDone.next(e)}),s.TgZ(4,"div",16),s.GkF(5,11),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=e.last,o=s.oxw(2),r=s.MAs(4);s.xp6(1),s.Q6J("ngTemplateOutlet",r)("ngTemplateOutletContext",s.WLB(9,bA,t,i)),s.xp6(1),s.ekj("mat-stepper-vertical-line",!n),s.xp6(1),s.Q6J("@verticalStepTransition",o._getAnimationDirection(i))("id",o._getStepContentId(i)),s.uIk("aria-labelledby",o._getStepLabelId(i))("aria-expanded",o.selectedIndex===i),s.xp6(2),s.Q6J("ngTemplateOutlet",t.content)}}function CA(t,e){if(1&t&&(s.ynx(0),s.YNc(1,TA,6,12,"div",12),s.BQk()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngForOf",t.steps)}}function SA(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-step-header",17),s.NdJ("click",function(){return e.step.select()})("keydown",function(e){return s.CHM(t),s.oxw()._onKeydown(e)}),s.qZA()}if(2&t){const t=e.step,i=e.i,n=s.oxw();s.ekj("mat-horizontal-stepper-header","horizontal"===n.orientation)("mat-vertical-stepper-header","vertical"===n.orientation),s.Q6J("tabIndex",n._getFocusIndex()===i?0:-1)("id",n._getStepLabelId(i))("index",i)("state",n._getIndicatorType(i,t.state))("label",t.stepLabel||t.label)("selected",n.selectedIndex===i)("active",t.completed||n.selectedIndex===i||!n.linear)("optional",t.optional)("errorMessage",t.errorMessage)("iconOverrides",n._iconOverrides)("disableRipple",n.disableRipple)("color",t.color||n.color),s.uIk("aria-posinset",i+1)("aria-setsize",n.steps.length)("aria-controls",n._getStepContentId(i))("aria-selected",n.selectedIndex==i)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null)}}let MA=(()=>{class t extends Jb{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matStepLabel",""]],features:[s.qOj]}),t})(),EA=(()=>{class t{constructor(){this.changes=new At.xQ,this.optionalLabel="Optional"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const LA={provide:EA,deps:[[new s.FiY,new s.tp0,EA]],useFactory:function(t){return t||new EA}};class xA extends Wb{constructor(t){super(t)}}const RA=gl(xA,"primary");let DA=(()=>{class t extends RA{constructor(t,e,i,n){super(i),this._intl=t,this._focusMonitor=e,this._intlSubscription=t.changes.subscribe(()=>n.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,e){t?this._focusMonitor.focusVia(this._elementRef,t,e):this._elementRef.nativeElement.focus(e)}_stringLabel(){return this.label instanceof MA?null:this.label}_templateLabel(){return this.label instanceof MA?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(t){return"number"==t?`${this.index+1}`:"edit"==t?"create":"error"==t?"warning":t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(EA),s.Y36(ra),s.Y36(s.SBq),s.Y36(s.sBO))},t.\u0275cmp=s.Xpm({type:t,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:[s.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"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(t,e){1&t&&(s._UZ(0,"div",0),s.TgZ(1,"div"),s.TgZ(2,"div",1),s.YNc(3,cA,1,2,"ng-container",2),s.YNc(4,hA,3,2,"ng-container",3),s.qZA(),s.qZA(),s.TgZ(5,"div",4),s.YNc(6,dA,2,1,"div",5),s.YNc(7,pA,2,1,"div",5),s.YNc(8,fA,2,1,"div",6),s.YNc(9,gA,2,1,"div",7),s.qZA()),2&t&&(s.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disableRipple),s.xp6(1),s.Gre("mat-step-icon-state-",e.state," mat-step-icon"),s.ekj("mat-step-icon-selected",e.selected),s.xp6(1),s.Q6J("ngSwitch",!(!e.iconOverrides||!e.iconOverrides[e.state])),s.xp6(1),s.Q6J("ngSwitchCase",!0),s.xp6(2),s.ekj("mat-step-label-active",e.active)("mat-step-label-selected",e.selected)("mat-step-label-error","error"==e.state),s.xp6(1),s.Q6J("ngIf",e._templateLabel()),s.xp6(1),s.Q6J("ngIf",e._stringLabel()),s.xp6(1),s.Q6J("ngIf",e.optional&&"error"!=e.state),s.xp6(1),s.Q6J("ngIf","error"==e.state))},directives:[ql,n.RF,n.n9,n.ED,n.O5,n.tP,Vg],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.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,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.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}\n"],encapsulation:2,changeDetection:0}),t})();const zA={horizontalStepTransition:_a("horizontalStepTransition",[va("previous",Aa({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),va("current",Aa({transform:"none",visibility:"inherit"})),va("next",Aa({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),Ta("* => *",wa("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:_a("verticalStepTransition",[va("previous",Aa({height:"0px",visibility:"hidden"})),va("next",Aa({height:"0px",visibility:"hidden"})),va("current",Aa({height:"*",visibility:"inherit"})),Ta("* <=> current",wa("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let PA=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),t})(),IA=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["ng-template","matStepContent",""]]}),t})(),OA=(()=>{class t extends nA{constructor(t,e,i,n){super(t,n),this._errorStateMatcher=e,this._viewContainerRef=i,this._isSelected=te.w.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,zt.w)(()=>this._stepper.selectionChange.pipe((0,Dt.U)(t=>t.selectedStep===this),Ot(this._stepper.selected===this)))).subscribe(t=>{t&&this._lazyContent&&!this._portal&&(this._portal=new xo(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(t,e){return this._errorStateMatcher.isErrorState(t,e)||!!(t&&t.invalid&&this.interacted)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36((0,s.Gpc)(()=>jA)),s.Y36(zl,4),s.Y36(s.s_b),s.Y36(iA,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-step"]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,MA,5),s.Suo(i,IA,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.stepLabel=t.first),s.iGM(t=s.CRH())&&(e._lazyContent=t.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[s._Bn([{provide:zl,useExisting:t},{provide:nA,useExisting:t}]),s.qOj],ngContentSelectors:wA,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(s.F$t(),s.YNc(0,_A,2,1,"ng-template"))},directives:[Io],encapsulation:2,changeDetection:0}),t})(),HA=(()=>{class t extends sA{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,features:[s.qOj]}),t})(),YA=(()=>{class t extends HA{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["mat-horizontal-stepper"]],features:[s.qOj]}),t})(),BA=(()=>{class t extends HA{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["mat-vertical-stepper"]],features:[s.qOj]}),t})(),jA=(()=>{class t extends sA{constructor(t,e,i,n){super(t,e,i,n),this.steps=new s.n_E,this.animationDone=new s.vpe,this.labelPosition="end",this._iconOverrides={},this._animationDone=new At.xQ;const o=i.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===o?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:t,templateRef:e})=>this._iconOverrides[t]=e),this.steps.changes.pipe(js(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(Es((t,e)=>t.fromState===e.fromState&&t.toState===e.toState),js(this._destroyed)).subscribe(t=>{"current"===t.toState&&this.animationDone.emit()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(mo,8),s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(n.K0))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,OA,5),s.Suo(i,PA,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._steps=t),s.iGM(t=s.CRH())&&(e._icons=t)}},viewQuery:function(t,e){if(1&t&&s.Gf(DA,5),2&t){let t;s.iGM(t=s.CRH())&&(e._stepHeader=t)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(t,e){2&t&&(s.uIk("aria-orientation",e.orientation),s.ekj("mat-stepper-horizontal","horizontal"===e.orientation)("mat-stepper-vertical","vertical"===e.orientation)("mat-stepper-label-position-end","horizontal"===e.orientation&&"end"==e.labelPosition)("mat-stepper-label-position-bottom","horizontal"===e.orientation&&"bottom"==e.labelPosition))},inputs:{selectedIndex:"selectedIndex",labelPosition:"labelPosition",disableRipple:"disableRipple",color:"color"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[s._Bn([{provide:sA,useExisting:t},{provide:YA,useExisting:t},{provide:BA,useExisting:t}]),s.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[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(t,e){1&t&&(s.ynx(0,0),s.YNc(1,kA,5,2,"ng-container",1),s.YNc(2,CA,2,1,"ng-container",1),s.BQk(),s.YNc(3,SA,1,22,"ng-template",null,2,s.W1O)),2&t&&(s.Q6J("ngSwitch",e.orientation),s.xp6(1),s.Q6J("ngSwitchCase","horizontal"),s.xp6(1),s.Q6J("ngSwitchCase","vertical"))},directives:[n.RF,n.n9,n.sg,n.tP,n.O5,DA],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-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-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}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[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}\n'],encapsulation:2,data:{animation:[zA.horizontalStepTransition,zA.verticalStepTransition]},changeDetection:0}),t})(),FA=(()=>{class t extends oA{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(t,e){2&t&&s.Ikx("type",e.type)},inputs:{type:"type"},features:[s.qOj]}),t})(),NA=(()=>{class t extends rA{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(t,e){2&t&&s.Ikx("type",e.type)},inputs:{type:"type"},features:[s.qOj]}),t})(),KA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[LA,zl],imports:[[pl,n.ez,Oo,nd,aA,$g,Ul],pl]}),t})();const qA=["mat-calendar-body",""];function UA(t,e){if(1&t&&(s.TgZ(0,"tr",2),s.TgZ(1,"td",3),s._uU(2),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Udp("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),s.uIk("colspan",t.numCols),s.xp6(1),s.hij(" ",t.label," ")}}function ZA(t,e){if(1&t&&(s.TgZ(0,"td",7),s._uU(1),s.qZA()),2&t){const t=s.oxw(2);s.Udp("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),s.uIk("colspan",t._firstRowOffset),s.xp6(1),s.hij(" ",t._firstRowOffset>=t.labelMinRequiredCells?t.label:""," ")}}function GA(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",8),s.NdJ("click",function(e){const i=s.CHM(t).$implicit;return s.oxw(2)._cellClicked(i,e)}),s.TgZ(1,"div",9),s._uU(2),s.qZA(),s._UZ(3,"div",10),s.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=s.oxw().index,o=s.oxw();s.Udp("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),s.ekj("mat-calendar-body-disabled",!t.enabled)("mat-calendar-body-active",o._isActiveCell(n,i))("mat-calendar-body-range-start",o._isRangeStart(t.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(t.compareValue))("mat-calendar-body-in-range",o._isInRange(t.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(t.compareValue,n,i))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(t.compareValue,n,i))("mat-calendar-body-comparison-start",o._isComparisonStart(t.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(t.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(t.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(t.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(t.compareValue))("mat-calendar-body-in-preview",o._isInPreview(t.compareValue)),s.Q6J("ngClass",t.cssClasses)("tabindex",o._isActiveCell(n,i)?0:-1),s.uIk("data-mat-row",n)("data-mat-col",i)("aria-label",t.ariaLabel)("aria-disabled",!t.enabled||null)("aria-selected",o._isSelected(t.compareValue)),s.xp6(1),s.ekj("mat-calendar-body-selected",o._isSelected(t.compareValue))("mat-calendar-body-comparison-identical",o._isComparisonIdentical(t.compareValue))("mat-calendar-body-today",o.todayValue===t.compareValue),s.xp6(1),s.hij(" ",t.displayValue," ")}}function VA(t,e){if(1&t&&(s.TgZ(0,"tr",4),s.YNc(1,ZA,2,6,"td",5),s.YNc(2,GA,4,46,"td",6),s.qZA()),2&t){const t=e.$implicit,i=e.index,n=s.oxw();s.xp6(1),s.Q6J("ngIf",0===i&&n._firstRowOffset),s.xp6(1),s.Q6J("ngForOf",t)}}function $A(t,e){if(1&t&&(s.TgZ(0,"th",5),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.uIk("aria-label",t.long),s.xp6(1),s.Oqu(t.narrow)}}const WA=["*"];function JA(t,e){}function QA(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-month-view",5),s.NdJ("activeDateChange",function(e){return s.CHM(t),s.oxw().activeDate=e})("_userSelection",function(e){return s.CHM(t),s.oxw()._dateSelected(e)}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)}}function XA(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-year-view",6),s.NdJ("activeDateChange",function(e){return s.CHM(t),s.oxw().activeDate=e})("monthSelected",function(e){return s.CHM(t),s.oxw()._monthSelectedInYearView(e)})("selectedChange",function(e){return s.CHM(t),s.oxw()._goToDateInView(e,"month")}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function tv(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-multi-year-view",7),s.NdJ("activeDateChange",function(e){return s.CHM(t),s.oxw().activeDate=e})("yearSelected",function(e){return s.CHM(t),s.oxw()._yearSelectedInMultiYearView(e)})("selectedChange",function(e){return s.CHM(t),s.oxw()._goToDateInView(e,"year")}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function ev(t,e){}const iv=["button"];function nv(t,e){1&t&&(s.O4$(),s.TgZ(0,"svg",3),s._UZ(1,"path",4),s.qZA())}const sv=[[["","matDatepickerToggleIcon",""]]],ov=["[matDatepickerToggleIcon]"];let rv=(()=>{class t{constructor(){this.changes=new At.xQ,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"}formatYearRange(t,e){return`${t} \u2013 ${e}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();class av{constructor(t,e,i,n,s={},o=t,r){this.value=t,this.displayValue=e,this.ariaLabel=i,this.enabled=n,this.cssClasses=s,this.compareValue=o,this.rawValue=r}}let cv=(()=>{class t{constructor(t,e){this._elementRef=t,this._ngZone=e,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new s.vpe,this.previewChange=new s.vpe,this._enterHandler=t=>{if(this._skipNextFocus&&"focus"===t.type)this._skipNextFocus=!1;else if(t.target&&this.isRange){const e=this._getCellFromElement(t.target);e&&this._ngZone.run(()=>this.previewChange.emit({value:e.enabled?e:null,event:t}))}},this._leaveHandler=t=>{null!==this.previewEnd&&this.isRange&&t.target&&uv(t.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:t}))},e.runOutsideAngular(()=>{const e=t.nativeElement;e.addEventListener("mouseenter",this._enterHandler,!0),e.addEventListener("focus",this._enterHandler,!0),e.addEventListener("mouseleave",this._leaveHandler,!0),e.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(t,e){t.enabled&&this.selectedValueChange.emit({value:t.value,event:e})}_isSelected(t){return this.startValue===t||this.endValue===t}ngOnChanges(t){const e=t.numCols,{rows:i,numCols:n}=this;(t.rows||e)&&(this._firstRowOffset=i&&i.length&&i[0].length?n-i[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/n+"%"),!e&&this._cellWidth||(this._cellWidth=100/n+"%")}ngOnDestroy(){const t=this._elementRef.nativeElement;t.removeEventListener("mouseenter",this._enterHandler,!0),t.removeEventListener("focus",this._enterHandler,!0),t.removeEventListener("mouseleave",this._leaveHandler,!0),t.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(t,e){let i=t*this.numCols+e;return t&&(i-=this._firstRowOffset),i==this.activeCell}_focusActiveCell(t=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,Pt.q)(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");e&&(t||(this._skipNextFocus=!0),e.focus())})})}_isRangeStart(t){return lv(t,this.startValue,this.endValue)}_isRangeEnd(t){return hv(t,this.startValue,this.endValue)}_isInRange(t){return dv(t,this.startValue,this.endValue,this.isRange)}_isComparisonStart(t){return lv(t,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(t,e,i){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;let n=this.rows[e][i-1];if(!n){const t=this.rows[e-1];n=t&&t[t.length-1]}return n&&!this._isRangeEnd(n.compareValue)}_isComparisonBridgeEnd(t,e,i){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;let n=this.rows[e][i+1];if(!n){const t=this.rows[e+1];n=t&&t[0]}return n&&!this._isRangeStart(n.compareValue)}_isComparisonEnd(t){return hv(t,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(t){return dv(t,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}_isPreviewStart(t){return lv(t,this.previewStart,this.previewEnd)}_isPreviewEnd(t){return hv(t,this.previewStart,this.previewEnd)}_isInPreview(t){return dv(t,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(t){let e;if(uv(t)?e=t:uv(t.parentNode)&&(e=t.parentNode),e){const t=e.getAttribute("data-mat-row"),i=e.getAttribute("data-mat-col");if(t&&i)return this.rows[parseInt(t)][parseInt(i)]}return null}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b))},t.\u0275cmp=s.Xpm({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[s.TTD],attrs:qA,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"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(t,e){1&t&&(s.YNc(0,UA,3,6,"tr",0),s.YNc(1,VA,3,2,"tr",1)),2&t&&(s.Q6J("ngIf",e._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),t})();function uv(t){return"TD"===t.nodeName}function lv(t,e,i){return null!==i&&e!==i&&t=e&&t===i}function dv(t,e,i,n){return n&&null!==e&&null!==i&&e!==i&&t>=e&&t<=i}class pv{constructor(t,e){this.start=t,this.end=e}}let fv=(()=>{class t{constructor(t,e){this.selection=t,this._adapter=e,this._selectionChanged=new At.xQ,this.selectionChanged=this._selectionChanged,this.selection=t}updateSelection(t,e){const i=this.selection;this.selection=t,this._selectionChanged.next({selection:t,source:e,oldValue:i})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(void 0),s.LFG(Al))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),gv=(()=>{class t extends fv{constructor(t){super(null,t)}add(t){super.updateSelection(t,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new t(this._adapter);return e.updateSelection(this.selection,this),e}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Al))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const mv={provide:fv,deps:[[new s.FiY,new s.tp0,fv],Al],useFactory:function(t,e){return t||new gv(e)}},_v=new s.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let wv=(()=>{class t{constructor(t,e,i,n,o){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rangeStrategy=o,this._rerenderSubscription=te.w.EMPTY,this.selectedChange=new s.vpe,this._userSelection=new s.vpe,this.activeDateChange=new s.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){const e=this._activeDate,i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof pv?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ot(null)).subscribe(()=>this._init())}ngOnChanges(t){const e=t.comparisonStart||t.comparisonEnd;e&&!e.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(t){const e=t.value,i=this._dateAdapter.getYear(this.activeDate),n=this._dateAdapter.getMonth(this.activeDate),s=this._dateAdapter.createDate(i,n,e);let o,r;this._selected instanceof pv?(o=this._getDateInCurrentMonth(this._selected.start),r=this._getDateInCurrentMonth(this._selected.end)):o=r=this._getDateInCurrentMonth(this._selected),o===e&&r===e||this.selectedChange.emit(s),this._userSelection.emit({value:s,event:t.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case Ko:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?1:-1);break;case Uo:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?-1:1);break;case qo:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case Zo: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=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case jo:case No:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),t.preventDefault()));case Fo:return void(null==this._previewEnd||Go(t)||(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t}),t.preventDefault(),t.stopPropagation()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_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 t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(t){this._matCalendarBody._focusActiveCell(t)}_previewChanged({event:t,value:e}){if(this._rangeStrategy){const i=this._rangeStrategy.createPreview(e?e.rawValue:null,this.selected,t);this._previewStart=this._getCellCompareValue(i.start),this._previewEnd=this._getCellCompareValue(i.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow");let i=this._dateAdapter.getDayOfWeekNames("long").map((t,i)=>({long:t,narrow:e[i]}));this._weekdays=i.slice(t).concat(i.slice(0,t))}_createWeekCells(){const t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(let i=0,n=this._firstWeekOffset;i=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}_getDateInCurrentMonth(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}_hasSameMonthAndYear(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}_getCellCompareValue(t){if(t){const e=this._dateAdapter.getYear(t),i=this._dateAdapter.getMonth(t),n=this._dateAdapter.getDate(t);return new Date(e,i,n).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(t){t instanceof pv?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36(vl,8),s.Y36(Al,8),s.Y36(mo,8),s.Y36(_v,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){if(1&t&&s.Gf(cv,5),2&t){let t;s.iGM(t=s.CRH())&&(e._matCalendarBody=t.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:[s.TTD],decls:7,vars:13,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"]],template:function(t,e){1&t&&(s.TgZ(0,"table",0),s.TgZ(1,"thead",1),s.TgZ(2,"tr"),s.YNc(3,$A,2,2,"th",2),s.qZA(),s.TgZ(4,"tr"),s._UZ(5,"th",3),s.qZA(),s.qZA(),s.TgZ(6,"tbody",4),s.NdJ("selectedValueChange",function(t){return e._dateSelected(t)})("previewChange",function(t){return e._previewChanged(t)})("keydown",function(t){return e._handleCalendarBodyKeydown(t)}),s.qZA(),s.qZA()),2&t&&(s.xp6(3),s.Q6J("ngForOf",e._weekdays),s.xp6(3),s.Q6J("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("startValue",e._rangeStart)("endValue",e._rangeEnd)("comparisonStart",e._comparisonRangeStart)("comparisonEnd",e._comparisonRangeEnd)("previewStart",e._previewStart)("previewEnd",e._previewEnd)("isRange",e._isRange)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[n.sg,cv],encapsulation:2,changeDetection:0}),t})();const yv=24;let bv=(()=>{class t{constructor(t,e,i){this._changeDetectorRef=t,this._dateAdapter=e,this._dir=i,this._rerenderSubscription=te.w.EMPTY,this.selectedChange=new s.vpe,this.yearSelected=new s.vpe,this.activeDateChange=new s.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),Av(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof pv?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ot(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-vv(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let e=0,i=[];ethis._createCellForYear(t))),i=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){const e=t.value;this.yearSelected.emit(this._dateAdapter.createDate(e,0,1));let i=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));this.selectedChange.emit(this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case Ko:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?1:-1);break;case Uo:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?-1:1);break;case qo:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case Zo:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-vv(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,yv-vv(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:yv);break;case jo:case No:this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_getActiveCell(){return vv(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(t){const e=this._dateAdapter.createDate(t,0,1),i=this._dateAdapter.getYearName(e),n=this.dateClass?this.dateClass(e,"multi-year"):void 0;return new av(t,i,i,this._shouldEnableYear(t),n)}_shouldEnableYear(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t{class t{constructor(t,e,i,n){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rerenderSubscription=te.w.EMPTY,this.selectedChange=new s.vpe,this.monthSelected=new s.vpe,this.activeDateChange=new s.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._dateAdapter.getYear(e)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof pv?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedMonth(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ot(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(t){const e=t.value,i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1);this.monthSelected.emit(i);const n=this._dateAdapter.getNumDaysInMonth(i);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case Ko:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?1:-1);break;case Uo:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?-1:1);break;case qo:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case Zo: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,t.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case jo:case No:this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(e=>e.map(e=>this._createCellForMonth(e,t[e]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_createCellForMonth(t,e){const i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),n=this._dateAdapter.format(i,this._dateFormats.display.monthYearA11yLabel),s=this.dateClass?this.dateClass(i,"year"):void 0;return new av(t,e.toLocaleUpperCase(),n,this._shouldEnableMonth(t),s)}_shouldEnableMonth(t){const e=this._dateAdapter.getYear(this.activeDate);if(null==t||this._isYearAndMonthAfterMaxDate(e,t)||this._isYearAndMonthBeforeMinDate(e,t))return!1;if(!this.dateFilter)return!0;for(let i=this._dateAdapter.createDate(e,t,1);this._dateAdapter.getMonth(i)==t;i=this._dateAdapter.addCalendarDays(i,1))if(this.dateFilter(i))return!0;return!1}_isYearAndMonthAfterMaxDate(t,e){if(this.maxDate){const i=this._dateAdapter.getYear(this.maxDate),n=this._dateAdapter.getMonth(this.maxDate);return t>i||t===i&&e>n}return!1}_isYearAndMonthBeforeMinDate(t,e){if(this.minDate){const i=this._dateAdapter.getYear(this.minDate),n=this._dateAdapter.getMonth(this.minDate);return t{class t{constructor(t,e,i,n,s){this._intl=t,this.calendar=e,this._dateAdapter=i,this._dateFormats=n,this._buttonDescriptionId="mat-calendar-button-"+Cv++,this.calendar.stateChanges.subscribe(()=>s.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)-vv(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),e=t+yv-1,i=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),n=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1));return this._intl.formatYearRange(i,n)}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:yv)}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(t,e){return"month"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(e):"year"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e):Av(this._dateAdapter,t,e,this.calendar.minDate,this.calendar.maxDate)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(rv),s.Y36((0,s.Gpc)(()=>Mv)),s.Y36(Al,8),s.Y36(vl,8),s.Y36(s.sBO))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:WA,decls:10,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],[1,"mat-calendar-arrow"],[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(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"button",2),s.NdJ("click",function(){return e.currentPeriodClicked()}),s.TgZ(3,"span"),s._uU(4),s.qZA(),s._UZ(5,"div",3),s.qZA(),s._UZ(6,"div",4),s.Hsn(7),s.TgZ(8,"button",5),s.NdJ("click",function(){return e.previousClicked()}),s.qZA(),s.TgZ(9,"button",6),s.NdJ("click",function(){return e.nextClicked()}),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.uIk("aria-label",e.periodButtonLabel)("aria-describedby",e._buttonDescriptionId),s.xp6(1),s.uIk("id",e._buttonDescriptionId),s.xp6(1),s.Oqu(e.periodButtonText),s.xp6(1),s.ekj("mat-calendar-invert","month"!==e.calendar.currentView),s.xp6(3),s.Q6J("disabled",!e.previousEnabled()),s.uIk("aria-label",e.prevButtonLabel),s.xp6(1),s.Q6J("disabled",!e.nextEnabled()),s.uIk("aria-label",e.nextButtonLabel))},directives:[id,ea],encapsulation:2,changeDetection:0}),t})(),Mv=(()=>{class t{constructor(t,e,i,n){this._dateAdapter=e,this._dateFormats=i,this._changeDetectorRef=n,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new s.vpe,this.yearSelected=new s.vpe,this.monthSelected=new s.vpe,this.viewChanged=new s.vpe(!0),this._userSelection=new s.vpe,this.stateChanges=new At.xQ,this._intlChanges=t.changes.subscribe(()=>{n.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){this._selected=t instanceof pv?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(t){const e=this._currentView!==t?t:null;this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),e&&this.viewChanged.emit(e)}ngAfterContentInit(){this._calendarHeaderPortal=new Lo(this.headerComponent||Sv),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(t){const e=t.minDate||t.maxDate||t.dateFilter;if(e&&!e.firstChange){const t=this._getCurrentViewComponent();t&&(this._changeDetectorRef.detectChanges(),t._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){const t=this.currentView;let e;e="month"===t?this.monthView:"year"===t?this.yearView:this.multiYearView,e._init()}_dateSelected(t){const e=t.value;(this.selected instanceof pv||e&&!this._dateAdapter.sameDate(e,this.selected))&&this.selectedChange.emit(e),this._userSelection.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_goToDateInView(t,e){this.activeDate=t,this.currentView=e}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(rv),s.Y36(Al,8),s.Y36(vl,8),s.Y36(s.sBO))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-calendar"]],viewQuery:function(t,e){if(1&t&&(s.Gf(wv,5),s.Gf(Tv,5),s.Gf(bv,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.monthView=t.first),s.iGM(t=s.CRH())&&(e.yearView=t.first),s.iGM(t=s.CRH())&&(e.multiYearView=t.first)}},hostAttrs:[1,"mat-calendar"],inputs:{startView:"startView",startAt:"startAt",selected:"selected",minDate:"minDate",maxDate:"maxDate",headerComponent:"headerComponent",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[s._Bn([mv]),s.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(t,e){1&t&&(s.YNc(0,JA,0,0,"ng-template",0),s.TgZ(1,"div",1),s.YNc(2,QA,1,8,"mat-month-view",2),s.YNc(3,XA,1,6,"mat-year-view",3),s.YNc(4,tv,1,6,"mat-multi-year-view",4),s.qZA()),2&t&&(s.Q6J("cdkPortalOutlet",e._calendarHeaderPortal),s.xp6(1),s.Q6J("ngSwitch",e.currentView),s.xp6(1),s.Q6J("ngSwitchCase","month"),s.xp6(1),s.Q6J("ngSwitchCase","year"),s.xp6(1),s.Q6J("ngSwitchCase","multi-year"))},directives:[Io,ca,n.RF,n.n9,wv,Tv,bv],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(33% / 7 - 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:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;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}.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}\n'],encapsulation:2,changeDetection:0}),t})();const Ev={transformPanel:_a("transformPanel",[Ta("void => enter-dropdown",wa("120ms cubic-bezier(0, 0, 0.2, 1)",ka([Aa({opacity:0,transform:"scale(1, 0.8)"}),Aa({opacity:1,transform:"scale(1, 1)"})]))),Ta("void => enter-dialog",wa("150ms cubic-bezier(0, 0, 0.2, 1)",ka([Aa({opacity:0,transform:"scale(0.7)"}),Aa({transform:"none",opacity:1})]))),Ta("* => void",wa("100ms linear",Aa({opacity:0})))]),fadeInCalendar:_a("fadeInCalendar",[va("void",Aa({opacity:0})),va("enter",Aa({opacity:1})),Ta("void => *",wa("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Lv=0;const xv=new s.OlP("mat-datepicker-scroll-strategy"),Rv={provide:xv,deps:[vr],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class Dv{constructor(t){this._elementRef=t}}const zv=gl(Dv);let Pv=(()=>{class t extends zv{constructor(t,e,i,n,s,o){super(t),this._changeDetectorRef=e,this._globalModel=i,this._dateAdapter=n,this._rangeSelectionStrategy=s,this._subscriptions=new te.w,this._animationDone=new At.xQ,this._actionsPortal=null,this._closeButtonText=o.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,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(t){const e=this._model.selection,i=t.value,n=e instanceof pv;if(n&&this._rangeSelectionStrategy){const n=this._rangeSelectionStrategy.selectionFinished(i,e,t.event);this._model.updateSelection(n,this)}else!i||!n&&this._dateAdapter.sameDate(i,e)||this._model.add(i);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)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(fv),s.Y36(Al),s.Y36(_v,8),s.Y36(rv))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){if(1&t&&s.Gf(Mv,5),2&t){let t;s.iGM(t=s.CRH())&&(e._calendar=t.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&s.WFA("@transformPanel.done",function(){return e._animationDone.next()}),2&t&&(s.d8E("@transformPanel",e._animationState),s.ekj("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[s.qOj],decls:5,vars:20,consts:[["cdkTrapFocus","",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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"mat-calendar",1),s.NdJ("yearSelected",function(t){return e.datepicker._selectYear(t)})("monthSelected",function(t){return e.datepicker._selectMonth(t)})("viewChanged",function(t){return e.datepicker._viewChanged(t)})("_userSelection",function(t){return e._handleUserSelection(t)}),s.qZA(),s.YNc(2,ev,0,0,"ng-template",2),s.TgZ(3,"button",3),s.NdJ("focus",function(){return e._closeButtonFocused=!0})("blur",function(){return e._closeButtonFocused=!1})("click",function(){return e.datepicker.close()}),s._uU(4),s.qZA(),s.qZA()),2&t&&(s.ekj("mat-datepicker-content-container-with-actions",e._actionsPortal),s.xp6(1),s.Q6J("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._getMinDate())("maxDate",e.datepicker._getMaxDate())("dateFilter",e.datepicker._getDateFilter())("headerComponent",e.datepicker.calendarHeaderComponent)("selected",e._getSelected())("dateClass",e.datepicker.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("@fadeInCalendar","enter"),s.xp6(1),s.Q6J("cdkPortalOutlet",e._actionsPortal),s.xp6(1),s.ekj("cdk-visually-hidden",!e._closeButtonFocused),s.Q6J("color",e.color||"primary"),s.xp6(1),s.Oqu(e._closeButtonText))},directives:[Jr,Mv,n.mk,Io,id],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.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}}\n"],encapsulation:2,data:{animation:[Ev.transformPanel,Ev.fadeInCalendar]},changeDetection:0}),t})(),Iv=(()=>{class t{constructor(t,e,i,n,o,r,a,c,u){this._overlay=e,this._ngZone=i,this._viewContainerRef=n,this._dateAdapter=r,this._dir=a,this._model=u,this._inputStateChanges=te.w.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new s.vpe,this.monthSelected=new s.vpe,this.viewChanged=new s.vpe(!0),this.openedStream=new s.vpe,this.closedStream=new s.vpe,this._opened=!1,this.id="mat-datepicker-"+Lv++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new At.xQ,this._scrollStrategy=o}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(t){this._color=t}get touchUi(){return this._touchUi}set touchUi(t){this._touchUi=ss(t)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(t){const e=ss(t);e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(t){this._restoreFocus=ss(t)}get panelClass(){return this._panelClass}set panelClass(t){this._panelClass=function(t,e=/\s+/){const i=[];if(null!=t){const n=Array.isArray(t)?t:`${t}`.split(e);for(const t of n){const e=`${t}`.trim();e&&i.push(e)}}return i}(t)}get opened(){return this._opened}set opened(t){ss(t)?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(t){const e=t.xPosition||t.yPosition;if(e&&!e.firstChange&&this._overlayRef){const t=this._overlayRef.getConfig().positionStrategy;t instanceof pr&&(this._setConnectedPositions(t),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(t){this._model.add(t)}_selectYear(t){this.yearSelected.emit(t)}_selectMonth(t){this.monthSelected.emit(t)}_viewChanged(t){this.viewChanged.emit(t)}registerInput(t){return this._inputStateChanges.unsubscribe(),this.datepickerInput=t,this._inputStateChanges=t.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(t){this._actionsPortal=t}removeActions(t){t===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=fo(),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,Pt.q)(1)).subscribe(()=>this._destroyOverlay())}const t=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(t)):t()}_applyPendingSelection(){var t,e;null===(e=null===(t=this._componentRef)||void 0===t?void 0:t.instance)||void 0===e||e._applyPendingSelection()}_forwardContentValues(t){t.datepicker=this,t.color=this.color,t._actionsPortal=this._actionsPortal}_openOverlay(){this._destroyOverlay();const t=this.touchUi,e=this.datepickerInput.getOverlayLabelId(),i=new Lo(Pv,this._viewContainerRef),n=this._overlayRef=this._overlay.create(new ir({positionStrategy:t?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[t?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:t?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(t?"dialog":"popup")})),s=n.overlayElement;s.setAttribute("role","dialog"),e&&s.setAttribute("aria-labelledby",e),t&&s.setAttribute("aria-modal","true"),this._getCloseStream(n).subscribe(t=>{t&&t.preventDefault(),this.close()}),this._componentRef=n.attach(i),this._forwardContentValues(this._componentRef.instance),t||this._ngZone.onStable.pipe((0,Pt.q)(1)).subscribe(()=>n.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(t)}_setConnectedPositions(t){const e="end"===this.xPosition?"end":"start",i="start"===e?"end":"start",n="above"===this.yPosition?"bottom":"top",s="top"===n?"bottom":"top";return t.withPositions([{originX:e,originY:s,overlayX:e,overlayY:n},{originX:e,originY:n,overlayX:e,overlayY:s},{originX:i,originY:s,overlayX:i,overlayY:n},{originX:i,originY:n,overlayX:i,overlayY:s}])}_getCloseStream(t){return(0,Ho.T)(t.backdropClick(),t.detachments(),t.keydownEvents().pipe((0,wt.h)(t=>t.keyCode===Fo&&!Go(t)||this.datepickerInput&&Go(t,"altKey")&&t.keyCode===qo)))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(vr),s.Y36(s.R0b),s.Y36(s.s_b),s.Y36(xv),s.Y36(Al,8),s.Y36(mo,8),s.Y36(n.K0,8),s.Y36(fv))},t.\u0275dir=s.lG2({type:t,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",restoreFocus:"restoreFocus",panelClass:"panelClass",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[s.TTD]}),t})(),Ov=(()=>{class t extends Iv{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[s._Bn([mv,{provide:Iv,useExisting:t}]),s.qOj],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t})();class Hv{constructor(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}let Yv=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._dateAdapter=e,this._dateFormats=i,this.dateChange=new s.vpe,this.dateInput=new s.vpe,this.stateChanges=new At.xQ,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=te.w.EMPTY,this._localeSubscription=te.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value));return!e||this._matchesFilter(e)?null:{matDatepickerFilter:!0}},this._minValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),i=this._getMinDate();return!i||!e||this._dateAdapter.compareDate(i,e)<=0?null:{matDatepickerMin:{min:i,actual:e}}},this._maxValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),i=this._getMaxDate();return!i||!e||this._dateAdapter.compareDate(i,e)>=0?null:{matDatepickerMax:{max:i,actual:e}}},this._lastValueValid=!1,this._localeSubscription=e.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(t){this._assignValueProgrammatically(t)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(t){const e=ss(t),i=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this.stateChanges.next(void 0)),e&&this._isInitialized&&i.blur&&i.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(t){this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(t=>{if(this._shouldHandleChangeEvent(t)){const e=this._getValueFromModel(t.selection);this._lastValueValid=this._isValidValue(e),this._cvaOnChange(e),this._onTouched(),this._formatValue(e),this.dateInput.emit(new Hv(this,this._elementRef.nativeElement)),this.dateChange.emit(new Hv(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(t){(function(t,e){const i=Object.keys(t);for(let n of i){const{previousValue:i,currentValue:s}=t[n];if(!e.isDateInstance(i)||!e.isDateInstance(s))return!0;if(!e.sameDate(i,s))return!0}return!1})(t,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(t){this._validatorOnChange=t}validate(t){return this._validator?this._validator(t):null}writeValue(t){this._assignValueProgrammatically(t)}registerOnChange(t){this._cvaOnChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_onKeydown(t){t.altKey&&t.keyCode===Zo&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),t.preventDefault())}_onInput(t){const e=this._lastValueValid;let i=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(i),i=this._dateAdapter.getValidDateOrNull(i),this._dateAdapter.sameDate(i,this.value)?(t&&!this.value&&this._cvaOnChange(i),e!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(i),this._cvaOnChange(i),this.dateInput.emit(new Hv(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Hv(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(t){this._elementRef.nativeElement.value=t?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""}_assignValue(t){this._model?(this._assignValueToModel(t),this._pendingValue=null):this._pendingValue=t}_isValidValue(t){return!t||this._dateAdapter.isValid(t)}_parentDisabled(){return!1}_assignValueProgrammatically(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=this._isValidValue(t),t=this._dateAdapter.getValidDateOrNull(t),this._assignValue(t),this._formatValue(t)}_matchesFilter(t){const e=this._getDateFilter();return!e||e(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Al,8),s.Y36(vl,8))},t.\u0275dir=s.lG2({type:t,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[s.TTD]}),t})();const Bv={provide:Kd,useExisting:(0,s.Gpc)(()=>Fv),multi:!0},jv={provide:$d,useExisting:(0,s.Gpc)(()=>Fv),multi:!0};let Fv=(()=>{class t extends Yv{constructor(t,e,i,n){super(t,e,i),this._formField=n,this._closedSubscription=te.w.EMPTY,this._validator=Qd.compose(super._getValidators())}set matDatepicker(t){t&&(this._datepicker=t,this._closedSubscription=t.closedStream.subscribe(()=>this._onTouched()),this._registerModel(t.registerInput(this)))}get min(){return this._min}set min(t){const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(e,this._min)||(this._min=e,this._validatorOnChange())}get max(){return this._max}set max(t){const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(e,this._max)||(this._max=e,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(t){const e=this._matchesFilter(this.value);this._dateFilter=t,this._matchesFilter(this.value)!==e&&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(t){return t}_assignValueToModel(t){this._model&&this._model.updateSelection(t,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(t){return t.source!==this}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Al,8),s.Y36(vl,8),s.Y36(Yd,8))},t.\u0275dir=s.lG2({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(t,e){1&t&&s.NdJ("input",function(t){return e._onInput(t.target.value)})("change",function(){return e._onChange()})("blur",function(){return e._onBlur()})("keydown",function(t){return e._onKeydown(t)}),2&t&&(s.Ikx("disabled",e.disabled),s.uIk("aria-haspopup",e._datepicker?"dialog":null)("aria-owns",(null==e._datepicker?null:e._datepicker.opened)&&e._datepicker.id||null)("min",e.min?e._dateAdapter.toIso8601(e.min):null)("max",e.max?e._dateAdapter.toIso8601(e.max):null)("data-mat-calendar",e._datepicker?e._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[s._Bn([Bv,jv,{provide:Km,useExisting:t}]),s.qOj]}),t})(),Nv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),t})(),Kv=(()=>{class t{constructor(t,e,i){this._intl=t,this._changeDetectorRef=e,this._stateChanges=te.w.EMPTY;const n=Number(i);this.tabIndex=n||0===n?n:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(t){this._disabled=ss(t)}ngOnChanges(t){t.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())}_watchStateChanges(){const t=this.datepicker?this.datepicker.stateChanges:(0,bt.of)(),e=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,bt.of)(),i=this.datepicker?(0,Ho.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,bt.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,Ho.T)(this._intl.changes,t,e,i).subscribe(()=>this._changeDetectorRef.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(rv),s.Y36(s.sBO),s.$8M("tabindex"))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,Nv,5),2&t){let t;s.iGM(t=s.CRH())&&(e._customIcon=t.first)}},viewQuery:function(t,e){if(1&t&&s.Gf(iv,5),2&t){let t;s.iGM(t=s.CRH())&&(e._button=t.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(t,e){1&t&&s.NdJ("click",function(t){return e._open(t)}),2&t&&(s.uIk("tabindex",null)("data-mat-calendar",e.datepicker?e.datepicker.id:null),s.ekj("mat-datepicker-toggle-active",e.datepicker&&e.datepicker.opened)("mat-accent",e.datepicker&&"accent"===e.datepicker.color)("mat-warn",e.datepicker&&"warn"===e.datepicker.color))},inputs:{tabIndex:"tabIndex",disabled:"disabled",datepicker:["for","datepicker"],ariaLabel:["aria-label","ariaLabel"],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[s.TTD],ngContentSelectors:ov,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(t,e){1&t&&(s.F$t(sv),s.TgZ(0,"button",0,1),s.YNc(2,nv,2,0,"svg",2),s.Hsn(3),s.qZA()),2&t&&(s.Q6J("disabled",e.disabled)("disableRipple",e.disableRipple),s.uIk("aria-haspopup",e.datepicker?"dialog":null)("aria-label",e.ariaLabel||e._intl.openCalendarLabel)("tabindex",e.disabled?-1:e.tabIndex),s.xp6(2),s.Q6J("ngIf",!e._customIcon))},directives:[id,n.O5],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}\n"],encapsulation:2,changeDetection:0}),t})(),qv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[rv,Rv],imports:[[n.ez,nd,Er,pa,Oo,pl],So]}),t})();const Uv=["mat-sort-header",""];function Zv(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",3),s.NdJ("@arrowPosition.start",function(){return s.CHM(t),s.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return s.CHM(t),s.oxw()._disableViewStateAnimation=!1}),s._UZ(1,"div",4),s.TgZ(2,"div",5),s._UZ(3,"div",6),s._UZ(4,"div",7),s._UZ(5,"div",8),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("@arrowOpacity",t._getArrowViewState())("@arrowPosition",t._getArrowViewState())("@allowChildren",t._getArrowDirectionState()),s.xp6(2),s.Q6J("@indicator",t._getArrowDirectionState()),s.xp6(1),s.Q6J("@leftPointer",t._getArrowDirectionState()),s.xp6(1),s.Q6J("@rightPointer",t._getArrowDirectionState())}}const Gv=["*"],Vv=new s.OlP("MAT_SORT_DEFAULT_OPTIONS");class $v{}const Wv=yl(fl($v));let Jv=(()=>{class t extends Wv{constructor(t){super(),this._defaultOptions=t,this.sortables=new Map,this._stateChanges=new At.xQ,this.start="asc",this._direction="",this.sortChange=new s.vpe}get direction(){return this._direction}set direction(t){this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=ss(t)}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){var e,i,n;if(!t)return"";const s=null!==(i=null!==(e=null==t?void 0:t.disableClear)&&void 0!==e?e:this.disableClear)&&void 0!==i?i:!!(null===(n=this._defaultOptions)||void 0===n?void 0:n.disableClear);let o=function(t,e){let i=["asc","desc"];return"desc"==t&&i.reverse(),e||i.push(""),i}(t.start||this.start,s),r=o.indexOf(this.direction)+1;return r>=o.length&&(r=0),o[r]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Vv,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[s.qOj,s.TTD]}),t})();const Qv=ll.ENTERING+" "+ul.STANDARD_CURVE,Xv={indicator:_a("indicator",[va("active-asc, asc",Aa({transform:"translateY(0px)"})),va("active-desc, desc",Aa({transform:"translateY(10px)"})),Ta("active-asc <=> active-desc",wa(Qv))]),leftPointer:_a("leftPointer",[va("active-asc, asc",Aa({transform:"rotate(-45deg)"})),va("active-desc, desc",Aa({transform:"rotate(45deg)"})),Ta("active-asc <=> active-desc",wa(Qv))]),rightPointer:_a("rightPointer",[va("active-asc, asc",Aa({transform:"rotate(45deg)"})),va("active-desc, desc",Aa({transform:"rotate(-45deg)"})),Ta("active-asc <=> active-desc",wa(Qv))]),arrowOpacity:_a("arrowOpacity",[va("desc-to-active, asc-to-active, active",Aa({opacity:1})),va("desc-to-hint, asc-to-hint, hint",Aa({opacity:.54})),va("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Aa({opacity:0})),Ta("* => asc, * => desc, * => active, * => hint, * => void",wa("0ms")),Ta("* <=> *",wa(Qv))]),arrowPosition:_a("arrowPosition",[Ta("* => desc-to-hint, * => desc-to-active",wa(Qv,ka([Aa({transform:"translateY(-25%)"}),Aa({transform:"translateY(0)"})]))),Ta("* => hint-to-desc, * => active-to-desc",wa(Qv,ka([Aa({transform:"translateY(0)"}),Aa({transform:"translateY(25%)"})]))),Ta("* => asc-to-hint, * => asc-to-active",wa(Qv,ka([Aa({transform:"translateY(25%)"}),Aa({transform:"translateY(0)"})]))),Ta("* => hint-to-asc, * => active-to-asc",wa(Qv,ka([Aa({transform:"translateY(0)"}),Aa({transform:"translateY(-25%)"})]))),va("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Aa({transform:"translateY(0)"})),va("hint-to-desc, active-to-desc, desc",Aa({transform:"translateY(-25%)"})),va("hint-to-asc, active-to-asc, asc",Aa({transform:"translateY(25%)"}))]),allowChildren:_a("allowChildren",[Ta("* <=> *",[Sa("@*",Ca(),{optional:!0})])])};let tk=(()=>{class t{constructor(){this.changes=new At.xQ}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const ek={provide:tk,deps:[[new s.FiY,new s.tp0,tk]],useFactory:function(t){return t||new tk}};class ik{}const nk=fl(ik);let sk=(()=>{class t extends nk{constructor(t,e,i,n,s,o){super(),this._intl=t,this._changeDetectorRef=e,this._sort=i,this._columnDef=n,this._focusMonitor=s,this._elementRef=o,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._handleStateChanges()}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=ss(t)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{const e=!!t;e!==this._showIndicatorHint&&(this._setIndicatorHintVisible(e),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t||{},this._disableViewStateAnimation&&(this._viewState={toState:t.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(t){this._isDisabled()||t.keyCode!==No&&t.keyCode!==jo||(t.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 t=this._viewState.fromState;return(t?`${t}-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()}_handleStateChanges(){this._rerenderSubscription=(0,Ho.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 t.\u0275fac=function(e){return new(e||t)(s.Y36(tk),s.Y36(s.sBO),s.Y36(Jv,8),s.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),s.Y36(ra),s.Y36(s.SBq))},t.\u0275cmp=s.Xpm({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e._handleClick()})("keydown",function(t){return e._handleKeydown(t)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&t&&(s.uIk("aria-sort",e._getAriaSortAttribute()),s.ekj("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[s.qOj],attrs:Uv,ngContentSelectors:Gv,decls:4,vars:6,consts:[["role","button",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(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.Hsn(2),s.qZA(),s.YNc(3,Zv,6,6,"div",2),s.qZA()),2&t&&(s.ekj("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),s.uIk("tabindex",e._isDisabled()?null:0),s.xp6(3),s.Q6J("ngIf",e._renderArrow()))},directives:[n.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-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}\n"],encapsulation:2,data:{animation:[Xv.indicator,Xv.leftPointer,Xv.rightPointer,Xv.arrowOpacity,Xv.arrowPosition,Xv.allowChildren]},changeDetection:0}),t})(),ok=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[ek],imports:[[n.ez,pl]]}),t})(),rk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[$g,n.ez]]}),t})();const ak=new s.OlP("mat-chips-default-options"),ck={separatorKeyCodes:[jo]};let uk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[zl,{provide:ak,useValue:ck}],imports:[[pl]]}),t})();function lk(t){const{subscriber:e,counter:i,period:n}=t;e.next(i),this.schedule({subscriber:e,counter:i+1,period:n},n)}function hk(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function dk(t,e){const i=e?"":"none";hk(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:i,msUserSelect:i,webkitUserSelect:i,MozUserSelect:i})}function pk(t,e){const i=t.style;i.position=e?"":"fixed",i.top=i.opacity=e?"":"0",i.left=e?"":"-999em"}function fk(t,e){return e?t+" "+e:t}function gk(t){const e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function mk(t,e){return t.getPropertyValue(e).split(",").map(t=>t.trim())}function _k(t){const e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function wk(t,e,i){const{top:n,bottom:s,left:o,right:r}=t;return i>=n&&i<=s&&e>=o&&e<=r}function yk(t,e,i){t.top+=e,t.bottom=t.top+t.height,t.left+=i,t.right=t.left+t.width}function bk(t,e,i,n){const{top:s,right:o,bottom:r,left:a,width:c,height:u}=t,l=c*e,h=u*e;return n>s-h&&na-l&&i{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:_k(t)})})}handleScroll(t){const e=t.target,i=this.positions.get(e);if(!i)return null;const n=e===this._document?e.documentElement:e,s=i.scrollPosition;let o,r;if(e===this._document){const t=this._viewportRuler.getViewportScrollPosition();o=t.top,r=t.left}else o=e.scrollTop,r=e.scrollLeft;const a=s.top-o,c=s.left-r;return this.positions.forEach((t,i)=>{t.clientRect&&e!==i&&n.contains(i)&&yk(t.clientRect,a,c)}),s.top=o,s.left=r,{top:a,left:c}}}function vk(t){const e=t.cloneNode(!0),i=e.querySelectorAll("[id]"),n=t.nodeName.toLowerCase();e.removeAttribute("id");for(let s=0;s{if(this.beforeStarted.next(),this._handles.length){const e=this._handles.find(e=>{const i=t.target;return!!i&&(i===e||e.contains(i))});!e||this._disabledHandles.has(e)||this.disabled||this._initializeDragSequence(e,t)}else this.disabled||this._initializeDragSequence(this._rootElement,t)},this._pointerMove=t=>{const e=this._getPointerPositionOnPage(t);if(!this._hasStartedDragging){if(Math.abs(e.x-this._pickupPositionOnPage.x)+Math.abs(e.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const e=Date.now()>=this._dragStartTime+this._getDragStartDelay(t),i=this._dropContainer;if(!e)return void this._endDragSequence(t);i&&(i.isDragging()||i.isReceiving())||(t.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(t)))}return}this._boundaryElement&&(this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect())),t.preventDefault();const i=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._lastKnownPointerPosition=e,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,e);else{const t=this._activeTransform;t.x=i.x-this._pickupPositionOnPage.x+this._passiveTransform.x,t.y=i.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(t.x,t.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform",`translate(${t.x} ${t.y})`)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:t,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})},this._pointerUp=t=>{this._endDragSequence(t)},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new Ak(i,s),o.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=ss(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>dk(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(t=>us(t)),this._handles.forEach(t=>dk(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(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=us(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,Ek),e.addEventListener("touchstart",this._pointerDown,Mk)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?us(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&Dk(this._rootElement),Dk(this._anchor),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(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),dk(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),dk(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&Dk(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&Dk(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){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}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){zk(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,i=t.parentNode,n=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),o=this._getShadowRoot();i.insertBefore(s,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),pk(t,!1),this._document.body.appendChild(i.replaceChild(n,t)),this._getPreviewInsertionPoint(i,o).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),n=zk(e),s=!n&&0!==e.button,o=this._rootElement,r=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),i||s||r)return;this._handles.length&&(this._rootElementTapHighlight=o.style.webkitTapHighlightColor||"",o.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{this._updateOnScroll(t)}),this._boundaryElement&&(this._boundaryRect=_k(this._boundaryElement));const a=this._previewTemplate;this._pickupPositionInElement=a&&a.template&&!a.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);const c=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){pk(this._rootElement,!0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),n=this._getPointerPositionOnPage(t),s=this._getDragDistance(n),o=e._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:s,dropPoint:n}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:o,distance:s,dropPoint:n}),e.drop(this,i,this._initialIndex,this._initialContainer,o,s,n),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:i,y:n}){let s=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=s,this._dropContainer.enter(this,t,e,s===this._initialContainer&&s.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:s,currentIndex:s.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,n),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let n;if(i&&t){const e=t.matchSize?this._rootElement.getBoundingClientRect():null,s=t.viewContainer.createEmbeddedView(i,t.context);s.detectChanges(),n=Pk(s,this._document),this._previewRef=s,t.matchSize?Ik(n,e):n.style.transform=xk(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const t=this._rootElement;n=vk(t),Ik(n,t.getBoundingClientRect()),this._initialTransform&&(n.style.transform=this._initialTransform)}return hk(n.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:`${this._config.zIndex||1e3}`}),dk(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(t=>n.classList.add(t)):n.classList.add(e)),n}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);const e=function(t){const e=getComputedStyle(t),i=mk(e,"transition-property"),n=i.find(t=>"transform"===t||"all"===t);if(!n)return 0;const s=i.indexOf(n),o=mk(e,"transition-duration"),r=mk(e,"transition-delay");return gk(o[s])+gk(r[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const i=e=>{(!e||e.target===this._preview&&"transform"===e.propertyName)&&(this._preview.removeEventListener("transitionend",i),t(),clearTimeout(n))},n=setTimeout(i,1.5*e);this._preview.addEventListener("transitionend",i)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=Pk(this._placeholderRef,this._document)):i=vk(this._rootElement),i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e){const i=this._rootElement.getBoundingClientRect(),n=t===this._rootElement?null:t,s=n?n.getBoundingClientRect():i,o=zk(e)?e.targetTouches[0]:e,r=this._getViewportScrollPosition();return{x:s.left-i.left+(o.pageX-s.left-r.left),y:s.top-i.top+(o.pageY-s.top-r.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),i=zk(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,n=i.pageX-e.left,s=i.pageY-e.top;if(this._ownerSVGElement){const t=this._ownerSVGElement.getScreenCTM();if(t){const e=this._ownerSVGElement.createSVGPoint();return e.x=n,e.y=s,e.matrixTransform(t.inverse())}}return{x:n,y:s}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:n}=this.constrainPosition?this.constrainPosition(t,this):t;if("x"===this.lockAxis||"x"===e?n=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==e||(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:t,y:e}=this._pickupPositionInElement,s=this._boundaryRect,o=this._previewRect,r=s.top+e,a=s.bottom-(o.height-e);i=Rk(i,s.left+t,s.right-(o.width-t)),n=Rk(n,r,a)}return{x:i,y:n}}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,n=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,o=Math.abs(e-s.x),r=Math.abs(i-s.y);return o>this._config.pointerDirectionChangeThreshold&&(n.x=e>s.x?1:-1,s.x=e),r>this._config.pointerDirectionChangeThreshold&&(n.y=i>s.y?1:-1,s.y=i),n}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,dk(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,Ek),t.removeEventListener("touchstart",this._pointerDown,Mk)}_applyRootElementTransform(t,e){const i=xk(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=fk(i,this._initialTransform)}_applyPreviewTransform(t,e){var i;const n=(null===(i=this._previewTemplate)||void 0===i?void 0:i.template)?void 0:this._initialTransform,s=xk(t,e);this._preview.style.transform=fk(s,n)}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._boundaryElement.getBoundingClientRect(),n=this._rootElement.getBoundingClientRect();if(0===i.width&&0===i.height||0===n.width&&0===n.height)return;const s=i.left-n.left,o=n.right-i.right,r=i.top-n.top,a=n.bottom-i.bottom;i.width>n.width?(s>0&&(t+=s),o>0&&(t-=o)):t=0,i.height>n.height?(r>0&&(e+=r),a>0&&(e-=a)):e=0,t===this._passiveTransform.x&&e===this._passiveTransform.y||this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:zk(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const i=t.target;this._boundaryRect&&(i===this._document||i!==this._boundaryElement&&i.contains(this._boundaryElement))&&yk(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(){const t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=po(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){const i=this._previewContainer||"global";if("parent"===i)return t;if("global"===i){const t=this._document;return e||t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement||t.body}return us(i)}}function xk(t,e){return`translate3d(${Math.round(t)}px, ${Math.round(e)}px, 0)`}function Rk(t,e,i){return Math.max(e,Math.min(i,t))}function Dk(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function zk(t){return"t"===t.type[0]}function Pk(t,e){const i=t.rootNodes;if(1===i.length&&i[0].nodeType===e.ELEMENT_NODE)return i[0];const n=e.createElement("div");return i.forEach(t=>n.appendChild(t)),n}function Ik(t,e){t.style.width=`${e.width}px`,t.style.height=`${e.height}px`,t.style.transform=xk(e.left,e.top)}function Ok(t,e){return Math.max(0,Math.min(e,t))}class Hk{constructor(t,e,i,n,s){this._dragDropRegistry=e,this._ngZone=n,this._viewportRuler=s,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new At.xQ,this.entered=new At.xQ,this.exited=new At.xQ,this.dropped=new At.xQ,this.sorted=new At.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=te.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new At.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function(t=0,e=Rs.P){return(!Os(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=Rs.P),new Ct.y(i=>(i.add(e.schedule(lk,t,{subscriber:i,counter:0,period:t})),i))}(0,ws).pipe(js(this._stopScrollTimers)).subscribe(()=>{const t=this._scrollNode,e=this.autoScrollStep;1===this._verticalScrollDirection?Bk(t,-e):2===this._verticalScrollDirection&&Bk(t,e),1===this._horizontalScrollDirection?jk(t,-e):2===this._horizontalScrollDirection&&jk(t,e)})},this.element=us(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new Ak(i,s)}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(t,e,i,n){let s;this._draggingStarted(),null==n?(s=this.sortingDisabled?this._draggables.indexOf(t):-1,-1===s&&(s=this._getItemIndexFromPointerPosition(t,e,i))):s=n;const o=this._activeDraggables,r=o.indexOf(t),a=t.getPlaceholderElement();let c=o[s];if(c===t&&(c=o[s+1]),r>-1&&o.splice(r,1),c&&!this._dragDropRegistry.isDragging(c)){const e=c.getRootElement();e.parentElement.insertBefore(a,e),o.splice(s,0,t)}else if(this._shouldEnterAsFirstChild(e,i)){const e=o[0].getRootElement();e.parentNode.insertBefore(a,e),o.unshift(t)}else us(this.element).appendChild(a),o.push(t);a.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,n,s,o,r){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:n,isPointerOverContainer:s,distance:o,dropPoint:r})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(t=>t.isDragging()).every(e=>-1===t.indexOf(e))?this._reset():this._cacheItems()),this}withDirection(t){return this._direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._orientation=t,this}withScrollableParents(t){const e=us(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?Yk("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,e=>e.drag===t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,n){if(this.sortingDisabled||!this._clientRect||!bk(this._clientRect,.05,e,i))return;const s=this._itemPositions,o=this._getItemIndexFromPointerPosition(t,e,i,n);if(-1===o&&s.length>0)return;const r="horizontal"===this._orientation,a=Yk(s,e=>e.drag===t),c=s[o],u=c.clientRect,l=a>o?1:-1,h=this._getItemOffsetPx(s[a].clientRect,u,l),d=this._getSiblingOffsetPx(a,s,l),p=s.slice();!function(t,e,i){const n=Ok(e,t.length-1),s=Ok(i,t.length-1);if(n===s)return;const o=t[n],r=s{if(p[i]===e)return;const n=e.drag===t,s=n?h:d,o=n?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=s,r?(o.style.transform=fk(`translate3d(${Math.round(e.offset)}px, 0, 0)`,e.initialTransform),yk(e.clientRect,0,s)):(o.style.transform=fk(`translate3d(0, ${Math.round(e.offset)}px, 0)`,e.initialTransform),yk(e.clientRect,s,0))}),this._previousSwap.overlaps=wk(u,e,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=r?n.x:n.y}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,n=0,s=0;if(this._parentPositions.positions.forEach((o,r)=>{r!==this._document&&o.clientRect&&!i&&bk(o.clientRect,.05,t,e)&&([n,s]=function(t,e,i,n){const s=Fk(e,n),o=Nk(e,i);let r=0,a=0;if(s){const e=t.scrollTop;1===s?e>0&&(r=1):t.scrollHeight-e>t.clientHeight&&(r=2)}if(o){const e=t.scrollLeft;1===o?e>0&&(a=1):t.scrollWidth-e>t.clientWidth&&(a=2)}return[r,a]}(r,o.clientRect,t,e),(n||s)&&(i=r))}),!n&&!s){const{width:o,height:r}=this._viewportRuler.getViewportSize(),a={width:o,height:r,top:0,right:o,bottom:r,left:0};n=Fk(a,e),s=Nk(a,t),i=window}!i||n===this._verticalScrollDirection&&s===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=n,this._horizontalScrollDirection=s,this._scrollNode=i,(n||s)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=us(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=us(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_cacheItemPositions(){const t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(t=>{const e=t.getVisibleElement();return{drag:t,offset:0,initialTransform:e.style.transform||"",clientRect:_k(e)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_reset(){this._isDragging=!1;const t=us(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(t=>{var e;const i=t.getRootElement();if(i){const n=null===(e=this._itemPositions.find(e=>e.drag===t))||void 0===e?void 0:e.initialTransform;i.style.transform=n||""}}),this._siblings.forEach(t=>t._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(t,e,i){const n="horizontal"===this._orientation,s=e[t].clientRect,o=e[t+-1*i];let r=s[n?"width":"height"]*i;if(o){const t=n?"left":"top",e=n?"right":"bottom";-1===i?r-=o.clientRect[t]-s[e]:r+=s[t]-o.clientRect[e]}return r}_getItemOffsetPx(t,e,i){const n="horizontal"===this._orientation;let s=n?e.left-t.left:e.top-t.top;return-1===i&&(s+=n?e.width-t.width:e.height-t.height),s}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,n="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){const s=i[i.length-1].clientRect;return n?t>=s.right:e>=s.bottom}{const s=i[0].clientRect;return n?t<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(t,e,i,n){const s="horizontal"===this._orientation,o=Yk(this._itemPositions,({drag:o,clientRect:r},a,c)=>{if(o===t)return c.length<2;if(n){const t=s?n.x:n.y;if(o===this._previousSwap.drag&&this._previousSwap.overlaps&&t===this._previousSwap.delta)return!1}return s?e>=Math.floor(r.left)&&e=Math.floor(r.top)&&in._canReceive(t,e,i))}_canReceive(t,e,i){if(!this._clientRect||!wk(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const n=this._getShadowRoot().elementFromPoint(e,i);if(!n)return!1;const s=us(this.element);return n===s||s.contains(n)}_startReceiving(t,e){const i=this._activeSiblings;!i.has(t)&&e.every(t=>this.enterPredicate(t,this)||this._draggables.indexOf(t)>-1)&&(i.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&(this._itemPositions.forEach(({clientRect:t})=>{yk(t,e.top,e.left)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=po(us(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._activeDraggables.filter(t=>t.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function Yk(t,e){for(let i=0;i=i-o&&e<=i+o?1:e>=n-o&&e<=n+o?2:0}function Nk(t,e){const{left:i,right:n,width:s}=t,o=.05*s;return e>=i-o&&e<=i+o?1:e>=n-o&&e<=n+o?2:0}const Kk=uo({passive:!1,capture:!0});let qk=(()=>{class t{constructor(t,e){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=t=>t.isDragging(),this.pointerMove=new At.xQ,this.pointerUp=new At.xQ,this.scroll=new At.xQ,this._preventDefaultWhileDragging=t=>{this._activeDragInstances.length>0&&t.preventDefault()},this._persistentTouchmoveListener=t=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&t.preventDefault(),this.pointerMove.next(t))},this._document=e}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Kk)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Kk)}startDragging(t,e){if(!(this._activeDragInstances.indexOf(t)>-1)&&(this._activeDragInstances.push(t),1===this._activeDragInstances.length)){const t=e.type.startsWith("touch");this._globalListeners.set(t?"touchend":"mouseup",{handler:t=>this.pointerUp.next(t),options:!0}).set("scroll",{handler:t=>this.scroll.next(t),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Kk}),t||this._globalListeners.set("mousemove",{handler:t=>this.pointerMove.next(t),options:Kk}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((t,e)=>{this._document.addEventListener(e,t.handler,t.options)})})}}stopDragging(t){const e=this._activeDragInstances.indexOf(t);e>-1&&(this._activeDragInstances.splice(e,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(t){return this._activeDragInstances.indexOf(t)>-1}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,e)=>{this._document.removeEventListener(e,t.handler,t.options)}),this._globalListeners.clear()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(n.K0))},token:t,providedIn:"root"}),t})();const Uk={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let Zk=(()=>{class t{constructor(t,e,i,n){this._document=t,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=n}createDrag(t,e=Uk){return new Lk(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new Hk(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0),s.LFG(s.R0b),s.LFG(Co),s.LFG(qk))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0),s.LFG(s.R0b),s.LFG(Co),s.LFG(qk))},token:t,providedIn:"root"}),t})(),Gk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Zk],imports:[So]}),t})(),Vk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),$k=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),Wk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[$k,pl],pl]}),t})(),Jk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Ul,pl],pl]}),t})(),Qk=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,lf,nd,vb,$g,Bm,Jf]]}),t})(),Xk=(()=>{class t extends Ll{format(t,e){return"input"===e?`${t.getDate().toString()}.${(t.getMonth()+1).toString()}.${t.getFullYear()}`:t.toDateString()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const tT={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 eT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[{provide:Al,useClass:Xk},{provide:vl,useValue:tT}],imports:[[n.ez,vb,Q_,uf,uk,Gk,$h,Vn,ok,hg,Bm,rk,$g,Rg,nd,Jf,jd,lf,$m,Ul,Em,Vk,Wk,qv,Jk,oh,zf,Qk,Mo,Th,Wg]]}),t})(),iT=(()=>{class t{constructor(t){this.elementRef=t}ngOnInit(){this.elementRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","perunWebAppsAutoFocus",""]]}),t})(),nT=(()=>{class t{constructor(){}onClick(t){if(1===t.button&&null!=this.perunWebAppsMiddleClickRouterLink){const t=this.perunWebAppsMiddleClickRouterLink.join("/"),e=location.search;window.open(t+e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(t,e){1&t&&s.NdJ("mouseup",function(t){return e.onClick(t)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),t})();i(6577);let sT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,cb,$w,Zb,nd,Gb,vb,$g,Q_,Th,Bm,jd,$m,Mo,uf,lf,KA,qv,Dl,Gw,uy,eT,Rg,bw,ok,hg,Jf,zf,Ul],cb,$w,Zb,nd,Gb,vb,$g,Q_,Th,Bm,jd,$m,Mo,uf,lf,KA,qv,Dl,Gw,uy,eT,Rg,bw,ok,hg,Jf,zf,Ul]}),t})(),oT=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}ngOnInit(){this.publication=this.data}ok(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(dh),s.Y36(fh))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"div",2),s._uU(5),s.qZA(),s.TgZ(6,"div",3),s.TgZ(7,"button",4),s.NdJ("click",function(){return e.ok()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,3,"DIALOGS.SHOW_CITE.TITLE")),s.xp6(3),s.hij(" ",e.publication.main," "),s.xp6(3),s.hij(" ",s.lcZ(9,5,"DIALOGS.SHOW_CITE.OK")," "))},directives:[Ah,vh,kh,id],pipes:[Vh],styles:[""]}),t})();function rT(t,e){1&t&&(s.TgZ(0,"mat-icon",2),s._uU(1," info "),s.qZA())}function aT(t,e){1&t&&(s.TgZ(0,"mat-icon",2),s._uU(1," warning "),s.qZA())}function cT(t,e){1&t&&(s.TgZ(0,"mat-icon",2),s._uU(1," dangerous "),s.qZA())}function uT(t,e){1&t&&(s.TgZ(0,"mat-icon",2),s._uU(1," check_circle "),s.qZA())}const lT=["*"];let hT=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:lT,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(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.YNc(1,rT,2,0,"mat-icon",1),s.YNc(2,aT,2,0,"mat-icon",1),s.YNc(3,cT,2,0,"mat-icon",1),s.YNc(4,uT,2,0,"mat-icon",1),s.Hsn(5),s.qZA()),2&t&&(s.ekj("warn-alert","warn"===e.alert_type)("error-alert","error"===e.alert_type)("success-alert","success"===e.alert_type)("info-alert","info"===e.alert_type),s.xp6(1),s.Q6J("ngIf","info"===e.alert_type),s.xp6(1),s.Q6J("ngIf","warn"===e.alert_type),s.xp6(1),s.Q6J("ngIf","error"===e.alert_type),s.xp6(1),s.Q6J("ngIf","success"===e.alert_type))},directives:[n.O5,Vg],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:grey;text-align:left;border:1px solid #b3b3b3;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px solid #ececec;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 solid #fedcda;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px solid #d7ffd7;border-radius:10px;background-color:#d7ffd7}"]}),t})(),dT=(()=>{class t{transform(t){let e="";return null!==t.titleBefore&&(e+=t.titleBefore+" "),null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),null!==t.titleAfter&&(e+=t.titleAfter+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"userFullName",type:t,pure:!0}),t})();function pT(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"th",20),s.TgZ(1,"mat-checkbox",21),s.NdJ("change",function(e){s.CHM(t);const i=s.oxw();return e?i.masterToggle():null}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function fT(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",22),s.TgZ(1,"mat-checkbox",23),s.NdJ("change",function(e){const i=s.CHM(t).$implicit,n=s.oxw();return e?n.itemSelectionToggle(i):null})("click",function(t){return t.stopPropagation()}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function gT(t,e){1&t&&(s.TgZ(0,"th",24),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_ID")," "))}function mT(t,e){if(1&t&&(s.TgZ(0,"td",25),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",t.id," ")}}function _T(t,e){1&t&&(s.TgZ(0,"th",24),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_LOCK")," "))}function wT(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",27),s.NdJ("click",function(){s.CHM(t);const e=s.oxw().$implicit;return s.oxw().lockOrUnlockPublication(e)})("mouseenter",function(){return s.CHM(t),s.oxw(2).buttonPressed=!0})("mouseleave",function(){return s.CHM(t),s.oxw(2).buttonPressed=!1}),s.ALo(1,"translate"),s.TgZ(2,"mat-icon"),s._uU(3,"lock"),s.qZA(),s.qZA()}2&t&&s.s9C("matTooltip",s.lcZ(1,1,"PUBLICATIONS_LIST.LOCKED"))}function yT(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",27),s.NdJ("click",function(){s.CHM(t);const e=s.oxw().$implicit;return s.oxw().lockOrUnlockPublication(e)})("mouseenter",function(){return s.CHM(t),s.oxw(2).buttonPressed=!0})("mouseleave",function(){return s.CHM(t),s.oxw(2).buttonPressed=!1}),s.ALo(1,"translate"),s.TgZ(2,"mat-icon"),s._uU(3,"lock_open"),s.qZA(),s.qZA()}2&t&&s.s9C("matTooltip",s.lcZ(1,1,"PUBLICATIONS_LIST.UNLOCKED"))}function bT(t,e){if(1&t&&(s.TgZ(0,"td",25),s.YNc(1,wT,4,3,"button",26),s.YNc(2,yT,4,3,"button",26),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Q6J("ngIf",t.locked),s.xp6(1),s.Q6J("ngIf",!t.locked)}}function AT(t,e){1&t&&(s.TgZ(0,"th",24),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_TITLE")," "))}function vT(t,e){if(1&t&&(s.TgZ(0,"td",25),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",t.title," ")}}function kT(t,e){1&t&&(s.TgZ(0,"th",24),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_REPORTED_BY")," "))}function TT(t,e){if(1&t&&(s.TgZ(0,"span"),s._uU(1),s.ALo(2,"userFullName"),s._UZ(3,"br"),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",s.lcZ(2,1,t),"")}}function CT(t,e){if(1&t&&(s.TgZ(0,"td",25),s.YNc(1,TT,4,3,"span",28),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Q6J("ngForOf",t.authors)}}function ST(t,e){1&t&&(s.TgZ(0,"th",24),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_YEAR")," "))}function MT(t,e){if(1&t&&(s.TgZ(0,"td",25),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",t.year," ")}}function ET(t,e){1&t&&(s.TgZ(0,"th",24),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_CATEGORY")," "))}function LT(t,e){if(1&t&&(s.TgZ(0,"td",25),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",t.categoryName," ")}}function xT(t,e){1&t&&(s.TgZ(0,"th",24),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_THANKEDTO")," "))}function RT(t,e){if(1&t&&(s.TgZ(0,"span"),s._uU(1),s._UZ(2,"br"),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",t.ownerName,"")}}function DT(t,e){if(1&t&&(s.TgZ(0,"td",25),s.YNc(1,RT,3,1,"span",28),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Q6J("ngForOf",t.thanks)}}function zT(t,e){1&t&&(s.TgZ(0,"th",29),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_CITE")))}function PT(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",25),s.TgZ(1,"button",30),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().showCite(e)})("mouseenter",function(){return s.CHM(t),s.oxw().buttonPressed=!0})("mouseleave",function(){return s.CHM(t),s.oxw().buttonPressed=!1}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.qZA()}2&t&&(s.xp6(2),s.hij(" ",s.lcZ(3,1,"PUBLICATIONS_LIST.SHOW_CITE")," "))}function IT(t,e){1&t&&s._UZ(0,"tr",31)}const OT=function(t,e){return[t,e]};function HT(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"tr",32),s.NdJ("click",function(){const e=s.CHM(t).$implicit,i=s.oxw();return i.disabledRouting&&i.openInTab&&!i.buttonPressed?i.emitPublication(e):null}),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.ekj("cursor-pointer",!i.disabledRouting),s.Q6J("perunWebAppsMiddleClickRouterLink",i.disabledRouting||i.buttonPressed?null:s.WLB(4,OT,i.routerPath,t.id))("routerLink",i.disabledRouting||i.buttonPressed?null:s.WLB(7,OT,i.routerPath,t.id))}}function YT(t,e){1&t&&(s.TgZ(0,"app-alert",33),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"PUBLICATIONS_LIST.NO_PUBLICATIONS_FOUND"),"\n"))}let BT=(()=>{class t{constructor(t,e,i,n,o){this.tableCheckbox=t,this.cabinetService=e,this.dialog=i,this.notificator=n,this.translate=o,this.selection=new bo(!0,[]),this.displayedColumns=["select","id","lock","title","reportedBy","year","category","thankedTo","cite"],this.pageSizeOptions=Qg,this.disabledRouting=!1,this.openInTab=!1,this.allowAlert=!0,this.publicationSelector=new s.vpe,this.buttonPressed=!1,o.get("PUBLICATIONS_LIST.CHANGE_LOCK_SUCCESS").subscribe(t=>this.changeLockMessage=t),o.get("PUBLICATIONS_LIST.LOCKED").subscribe(t=>this.locked=t),o.get("PUBLICATIONS_LIST.UNLOCKED").subscribe(t=>this.unlocked=t)}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.dataSource=new X_(this.publications),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"lock":return String(t.locked);case"title":return t.title;case"reportedBy":{let e="";return t.authors.forEach(t=>e+=Xg(t)+";"),e.slice(0,-1)}case"year":return t.year.toString();case"category":return t.categoryName;case"thankedTo":{let e="";return t.thanks.forEach(t=>e+=t.ownerName+";"),e.slice(0,-1)}default:return t[e]}}exportData(t){rm(om(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}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)}setDataSource(){this.dataSource&&(this.dataSource.sortData=(t,e)=>im(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}itemSelectionToggle(t){this.selection.toggle(t)}showCite(t){const e=tm();e.width="500px",e.data=t,this.dialog.open(oT,e)}lockOrUnlockPublication(t){this.cabinetService.lockPublications({publications:[this.createPublication(t)],lock:!t.locked}).subscribe(()=>{this.notificator.showSuccess(t.locked?this.changeLockMessage+this.unlocked:this.changeLockMessage+this.locked),t.locked=!t.locked})}createPublication(t){return{id:t.id,externalId:t.externalId,publicationSystemId:t.publicationSystemId,categoryId:t.categoryId,createdBy:t.createdBy,createdDate:t.createdDate,doi:t.doi,isbn:t.isbn,locked:t.locked,main:t.main,rank:t.rank,title:t.title,year:t.year}}emitPublication(t){return this.publicationSelector.emit(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Cm),s.Y36(V),s.Y36(yh),s.Y36(Am),s.Y36(Gh))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-publications-list"]],viewQuery:function(t,e){if(1&t&&(s.Gf(Jv,7),s.Gf(mm,7)),2&t){let t;s.iGM(t=s.CRH())&&(e.matSort=t.first),s.iGM(t=s.CRH())&&(e.child=t.first)}},inputs:{publications:"publications",selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",pageSizeOptions:"pageSizeOptions",routerPath:"routerPath",disabledRouting:"disabledRouting",openInTab:"openInTab",allowAlert:"allowAlert"},outputs:{publicationSelector:"publicationSelector"},features:[s.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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,pT,2,3,"th",4),s.YNc(5,fT,2,2,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,gT,3,3,"th",7),s.YNc(8,mT,2,1,"td",8),s.BQk(),s.ynx(9,9),s.YNc(10,_T,3,3,"th",7),s.YNc(11,bT,3,2,"td",8),s.BQk(),s.ynx(12,10),s.YNc(13,AT,3,3,"th",7),s.YNc(14,vT,2,1,"td",8),s.BQk(),s.ynx(15,11),s.YNc(16,kT,3,3,"th",7),s.YNc(17,CT,2,1,"td",8),s.BQk(),s.ynx(18,12),s.YNc(19,ST,3,3,"th",7),s.YNc(20,MT,2,1,"td",8),s.BQk(),s.ynx(21,13),s.YNc(22,ET,3,3,"th",7),s.YNc(23,LT,2,1,"td",8),s.BQk(),s.ynx(24,14),s.YNc(25,xT,3,3,"th",7),s.YNc(26,DT,2,1,"td",8),s.BQk(),s.ynx(27,15),s.YNc(28,zT,3,3,"th",16),s.YNc(29,PT,4,3,"td",8),s.BQk(),s.YNc(30,IT,1,0,"tr",17),s.YNc(31,HT,1,10,"tr",18),s.qZA(),s.qZA(),s.qZA(),s.YNc(32,YT,3,3,"app-alert",19)),2&t&&(s.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.publications.length),s.xp6(1),s.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),s.xp6(1),s.Q6J("dataSource",e.dataSource),s.xp6(28),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===e.publications.length&&e.allowAlert))},directives:[mm,N_,Jv,U_,q_,K_,V_,$_,n.O5,Z_,bb,G_,sk,id,Vf,Vg,n.sg,W_,J_,nT,In,hT],pipes:[Vh,dT],styles:[".mat-column-title[_ngcontent-%COMP%]{width:40%}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();function jT(t,e){1&t&&s._UZ(0,"mat-spinner",7)}const FT=function(){return["id","title","year"]};function NT(t,e){if(1&t&&(s.TgZ(0,"div",8),s._uU(1),s.ALo(2,"translate"),s._UZ(3,"perun-web-apps-publications-list",9),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.hij(" ",s.lcZ(2,4,"DIALOGS.REMOVE_PUBLICATION.WARNING")," "),s.xp6(2),s.Q6J("publications",t.publications)("routerPath",null)("displayedColumns",s.DdM(6,FT))}}let KT=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.cabinetService=s,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(t=>{this.notificator.showSuccess(t),this.dialogRef.close(!0)}):this.remove()},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(dh),s.Y36(fh),s.Y36(Am),s.Y36(Gh),s.Y36(V))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,jT,1,0,"mat-spinner",2),s.YNc(5,NT,4,7,"div",3),s.TgZ(6,"div",4),s.TgZ(7,"button",5),s.NdJ("click",function(){return e.cancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",6),s.NdJ("click",function(){return e.remove()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,6,"DIALOGS.REMOVE_PUBLICATION.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(9,8,"DIALOGS.REMOVE_PUBLICATION.CANCEL")," "),s.xp6(2),s.Q6J("disabled",e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,10,"DIALOGS.REMOVE_PUBLICATION.REMOVE")," "))},directives:[Ah,n.O5,kh,id,Ym,vh,BT],pipes:[Vh],styles:[""]}),t})(),qT=(()=>{class t{constructor(){this.refresh=new s.vpe}onClickbutton(t){this.refresh.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.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(t,e){1&t&&(s.TgZ(0,"button",0),s.NdJ("click",function(t){return e.onClickbutton(t)}),s.ALo(1,"translate"),s._UZ(2,"mat-icon",1),s.qZA()),2&t&&(s.s9C("matTooltip",s.lcZ(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),s.Q6J("disabled",e.disabled),s.xp6(2),s.s9C("svgIcon",e.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},directives:[id,Vf,Vg],pipes:[Vh],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%], .perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%], .perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}"]}),t})();var UT=i(9609);const ZT=i.n(UT)()||UT,GT=new s.OlP("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function(){return{useUtc:!1}}});function VT(t,e){const i=Array(t);for(let n=0;n{class t extends Al{constructor(t,e){super(),this._options=e,this.setLocale(t||ZT.locale())}setLocale(t){super.setLocale(t);let e=ZT.localeData(t);this._localeData={firstDayOfWeek:e.firstDayOfWeek(),longMonths:e.months(),shortMonths:e.monthsShort(),dates:VT(31,t=>this.createDate(2017,0,t+1).format("D")),longDaysOfWeek:e.weekdays(),shortDaysOfWeek:e.weekdaysShort(),narrowDaysOfWeek:e.weekdaysMin()}}getYear(t){return this.clone(t).year()}getMonth(t){return this.clone(t).month()}getDate(t){return this.clone(t).date()}getDayOfWeek(t){return this.clone(t).day()}getMonthNames(t){return"long"==t?this._localeData.longMonths:this._localeData.shortMonths}getDateNames(){return this._localeData.dates}getDayOfWeekNames(t){return"long"==t?this._localeData.longDaysOfWeek:"short"==t?this._localeData.shortDaysOfWeek:this._localeData.narrowDaysOfWeek}getYearName(t){return this.clone(t).format("YYYY")}getFirstDayOfWeek(){return this._localeData.firstDayOfWeek}getNumDaysInMonth(t){return this.clone(t).daysInMonth()}clone(t){return t.clone().locale(this.locale)}createDate(t,e,i){const n=this._createMoment({year:t,month:e,date:i}).locale(this.locale);return n.isValid(),n}today(){return this._createMoment().locale(this.locale)}parse(t,e){return t&&"string"==typeof t?this._createMoment(t,e,this.locale):t?this._createMoment(t).locale(this.locale):null}format(t,e){return t=this.clone(t),this.isValid(t),t.format(e)}addCalendarYears(t,e){return this.clone(t).add({years:e})}addCalendarMonths(t,e){return this.clone(t).add({months:e})}addCalendarDays(t,e){return this.clone(t).add({days:e})}toIso8601(t){return this.clone(t).format()}deserialize(t){let e;if(t instanceof Date)e=this._createMoment(t).locale(this.locale);else if(this.isDateInstance(t))return this.clone(t);if("string"==typeof t){if(!t)return null;e=this._createMoment(t,ZT.ISO_8601).locale(this.locale)}return e&&this.isValid(e)?this._createMoment(e).locale(this.locale):super.deserialize(t)}isDateInstance(t){return ZT.isMoment(t)}isValid(t){return this.clone(t).isValid()}invalid(){return ZT.invalid()}_createMoment(t,e,i){const{strict:n,useUtc:s}=this._options||{};return s?ZT.utc(t,e,i,n):ZT(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(bl,8),s.LFG(GT,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),WT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[{provide:Al,useClass:$T,deps:[bl,GT]}]}),t})(),JT=(()=>{class t{constructor(){}ngOnInit(){this.endMaxYear=new Date,this.startMaxYear=this.endYear.value,this.endMinYear=this.startYear.value}chosenYearHandler(t,e,i){t.setValue(e),this.startMaxYear=this.endYear.value,this.endMinYear=this.startYear.value,i.close()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,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(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-form-field",0),s.NdJ("click",function(){return s.CHM(t),s.MAs(7).open()}),s.TgZ(1,"mat-label"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s._UZ(4,"input",1),s._UZ(5,"mat-datepicker-toggle",2),s.TgZ(6,"mat-datepicker",3,4),s.NdJ("yearSelected",function(i){s.CHM(t);const n=s.MAs(7);return e.chosenYearHandler(e.startYear,i,n)}),s.qZA(),s.qZA(),s.TgZ(8,"mat-form-field",0),s.NdJ("click",function(){return s.CHM(t),s.MAs(15).open()}),s.TgZ(9,"mat-label"),s._uU(10),s.ALo(11,"translate"),s.qZA(),s._UZ(12,"input",5),s._UZ(13,"mat-datepicker-toggle",2),s.TgZ(14,"mat-datepicker",3,6),s.NdJ("yearSelected",function(i){s.CHM(t);const n=s.MAs(15);return e.chosenYearHandler(e.endYear,i,n)}),s.qZA(),s.qZA()}if(2&t){const t=s.MAs(7),i=s.MAs(15);s.xp6(2),s.Oqu(s.lcZ(3,11,"PUBLICATION_FILTER.START_YEAR")),s.xp6(2),s.Q6J("matDatepicker",t)("max",e.startMaxYear)("formControl",e.startYear),s.xp6(1),s.Q6J("for",t),s.xp6(5),s.Oqu(s.lcZ(11,13,"PUBLICATION_FILTER.END_YEAR")),s.xp6(2),s.Q6J("matDatepicker",i)("min",e.endMinYear)("max",e.endMaxYear)("formControl",e.endYear),s.xp6(1),s.Q6J("for",i)}},directives:[Bd,Ld,Vm,Fv,Zd,_p,tf,Kv,zd,Ov],pipes:[Vh],styles:[".year-field[_ngcontent-%COMP%]{max-width:80px!important;width:100%!important;min-width:auto!important}"]}),t})();function QT(t,e){if(1&t&&(s.TgZ(0,"mat-option",12),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.hij(" ",t.name," ")}}const XT=UT,tC={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let eC=(()=>{class t{constructor(t){this.cabinetService=t,this.title=new Fp,this.code=new Fp,this.startYear=new Fp(XT()),this.endYear=new Fp(XT()),this.filteredPublication=new s.vpe}ngOnInit(){this.title.setValue(""),this.code.setValue(""),this.selectedCategory="no_value",this.cabinetService.getCategories().subscribe(t=>{this.categories=t,this.selectedMode="isbn/issn"})}filter(){const t={title:this.title.value,isbnissn:"isbn/issn"===this.selectedMode?this.code.value:null,doi:"doi"===this.selectedMode?this.code.value:null,category:"no_value"!==this.selectedCategory?this.selectedCategory.id:null,startYear:(0,n.p6)(this.startYear.value,"yyyy","en-GB"),endYear:(0,n.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 Fp(XT()),this.endYear=new Fp(XT()),this.filteredPublication.emit({title:null,isbnissn:null,doi:null,category:null,startYear:null,endYear:null})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(V))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-publication-filter"]],outputs:{filteredPublication:"filteredPublication"},features:[s._Bn([{provide:Al,useClass:$T,deps:[bl]},{provide:vl,useValue:tC}])],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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"mat-form-field",1),s._UZ(2,"input",2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"mat-form-field",1),s.TgZ(5,"mat-label"),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.TgZ(8,"mat-select",3),s.NdJ("valueChange",function(t){return e.selectedMode=t}),s.TgZ(9,"mat-option",4),s._uU(10),s.ALo(11,"translate"),s.qZA(),s.TgZ(12,"mat-option",5),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(15,"mat-form-field",6),s._UZ(16,"input",2),s.ALo(17,"translate"),s.qZA(),s.TgZ(18,"mat-form-field",1),s.TgZ(19,"mat-label"),s._uU(20),s.ALo(21,"translate"),s.qZA(),s.TgZ(22,"mat-select",3),s.NdJ("valueChange",function(t){return e.selectedCategory=t}),s.TgZ(23,"mat-option",7),s._uU(24),s.ALo(25,"translate"),s.qZA(),s.YNc(26,QT,2,2,"mat-option",8),s.qZA(),s.qZA(),s._UZ(27,"perun-web-apps-year-range",9),s.TgZ(28,"button",10),s.NdJ("click",function(){return e.filter()}),s.TgZ(29,"mat-icon"),s._uU(30,"search"),s.qZA(),s._uU(31),s.ALo(32,"translate"),s.qZA(),s.TgZ(33,"button",11),s.NdJ("click",function(){return e.clearFilter()}),s.TgZ(34,"mat-icon"),s._uU(35,"search_off"),s.qZA(),s._uU(36),s.ALo(37,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.s9C("placeholder",s.lcZ(3,16,"PUBLICATION_FILTER.TITLE_PLACEHOLDER")),s.Q6J("formControl",e.title),s.xp6(4),s.Oqu(s.lcZ(7,18,"PUBLICATION_FILTER.SELECT_MODE")),s.xp6(2),s.Q6J("value",e.selectedMode),s.xp6(2),s.Oqu(s.lcZ(11,20,"PUBLICATION_FILTER.ISBN/ISSN")),s.xp6(3),s.Oqu(s.lcZ(14,22,"PUBLICATION_FILTER.DOI")),s.xp6(3),s.s9C("placeholder",s.lcZ(17,24,"PUBLICATION_FILTER.CODE_PLACEHOLDER")),s.Q6J("formControl",e.code),s.xp6(4),s.Oqu(s.lcZ(21,26,"PUBLICATION_FILTER.SELECT_CATEGORY")),s.xp6(2),s.Q6J("value",e.selectedCategory),s.xp6(2),s.Oqu(s.lcZ(25,28,"PUBLICATION_FILTER.NO_CATEGORY_SELECTED")),s.xp6(2),s.Q6J("ngForOf",e.categories),s.xp6(1),s.Q6J("startYear",e.startYear)("endYear",e.endYear),s.xp6(4),s.hij(" ",s.lcZ(32,30,"PUBLICATION_FILTER.FILTER")," "),s.xp6(5),s.hij(" ",s.lcZ(37,32,"PUBLICATION_FILTER.CLEAR_FILTER")," "))},directives:[Bd,Vm,Zd,_p,tf,Ld,Df,nh,n.sg,JT,id,Vg],pipes:[Vh],styles:[".filter-field[_ngcontent-%COMP%]{max-width:250px!important;width:100%!important;min-width:auto!important}.disable[_ngcontent-%COMP%]{cursor:not-allowed;pointer-events:none}.year-field[_ngcontent-%COMP%]{max-width:80px!important;width:100%!important;min-width:auto!important}"]}),t})();function iC(t,e){if(1&t&&s._UZ(0,"perun-web-apps-publications-list",10),2&t){const t=s.oxw();s.Q6J("publications",t.publications)("selection",t.selected)("routerPath","/all-publications")("tableId",t.tableId)}}function nC(t,e){1&t&&s._UZ(0,"mat-spinner",11)}let sC=(()=>{class t{constructor(t,e,i,n,s){this.route=t,this.cabinetService=e,this.dialog=i,this.matIconRegistry=n,this.domSanitizer=s,this.selected=new bo(!0,[]),this.tableId=hm,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 t=tm();t.width="500px",t.data=this.selected.selected,this.dialog.open(KT,t).afterClosed().subscribe(t=>{t&&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(t=>{this.publications=t,this.loading=!1})}filterPublication(t){this.filter=t,this.refreshTable()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(hi),s.Y36(V),s.Y36(yh),s.Y36(Bg),s.Y36(z))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._UZ(2,"mat-icon",2),s.TgZ(3,"span",3),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.qZA(),s.TgZ(6,"div",4),s.TgZ(7,"perun-web-apps-refresh-button",5),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.TgZ(8,"button",6),s.NdJ("click",function(){return e.removePublication()}),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.TgZ(11,"perun-web-apps-publication-filter",7),s.NdJ("filteredPublication",function(t){return e.filterPublication(t)}),s.qZA(),s.qZA(),s.YNc(12,iC,1,4,"perun-web-apps-publications-list",8),s.YNc(13,nC,1,0,"mat-spinner",9),s.qZA()),2&t&&(s.xp6(4),s.Oqu(s.lcZ(5,5,"ALL_PUBLICATIONS.TITLE")),s.xp6(4),s.Q6J("disabled",0===e.selected.selected.length),s.xp6(1),s.hij(" ",s.lcZ(10,7,"ALL_PUBLICATIONS.REMOVE")," "),s.xp6(3),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",e.loading))},directives:[Vg,qT,id,eC,n.O5,BT,Ym],pipes:[Vh],styles:[".publications-icon[_ngcontent-%COMP%]{height:32px;width:32px}"]}),t})();function oC(t,e){if(1&t&&s._UZ(0,"perun-web-apps-publications-list",11),2&t){const t=s.oxw(2);s.Q6J("publications",t.publications)("selection",t.selected)("tableId",t.tableId)("routerPath","/my-publications")}}function rC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"div",6),s.TgZ(2,"perun-web-apps-refresh-button",7),s.NdJ("refresh",function(){return s.CHM(t),s.oxw().refreshTable()}),s.qZA(),s.TgZ(3,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().removePublication()}),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"perun-web-apps-publication-filter",9),s.NdJ("filteredPublication",function(e){return s.CHM(t),s.oxw().filterPublication(e)}),s.qZA(),s.qZA(),s.YNc(7,oC,1,4,"perun-web-apps-publications-list",10),s.qZA()}if(2&t){const t=s.oxw();s.xp6(3),s.Q6J("disabled",0===t.selected.selected.length),s.xp6(1),s.hij(" ",s.lcZ(5,3,"MY_PUBLICATIONS.REMOVE")," "),s.xp6(3),s.Q6J("ngIf",!t.loading)}}function aC(t,e){1&t&&s._UZ(0,"mat-spinner",12)}let cC=(()=>{class t{constructor(t,e,i,n){this.route=t,this.cabinetService=e,this.dialog=i,this.authResolver=n,this.selected=new bo(!0,[]),this.tableId=hm,this.filter={title:null,isbnissn:null,doi:null,category:null,startYear:null,endYear:null}}ngOnInit(){this.initLoading=!0,this.authResolver.getPerunPrincipal().subscribe(t=>{this.authorId=t.userId,this.initLoading=!1,this.refreshTable()})}removePublication(){const t=tm();t.width="500px",t.data=this.selected.selected,this.dialog.open(KT,t).afterClosed().subscribe(t=>{t&&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(t=>{this.publications=t,this.loading=!1})}filterPublication(t){this.filter=t,this.refreshTable()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(hi),s.Y36(V),s.Y36(yh),s.Y36(G))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s.TgZ(2,"mat-icon",2),s._uU(3,"local_library"),s.qZA(),s.TgZ(4,"span",3),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA(),s.YNc(7,rC,8,5,"div",4),s.YNc(8,aC,1,0,"mat-spinner",5),s.qZA()),2&t&&(s.xp6(5),s.Oqu(s.lcZ(6,3,"MY_PUBLICATIONS.TITLE")),s.xp6(2),s.Q6J("ngIf",!e.initLoading),s.xp6(1),s.Q6J("ngIf",e.loading||e.initLoading))},directives:[Vg,n.O5,qT,id,eC,BT,Ym],pipes:[Vh],styles:[""]}),t})(),uC=(()=>{class t{constructor(t){this.router=t}importPublications(){this.router.navigate(["create-publication","import"])}createPublication(){this.router.navigate(["create-publication","create"])}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Pn))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s.TgZ(2,"span"),s.TgZ(3,"mat-icon",2),s._uU(4,"add_box"),s.qZA(),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA(),s.TgZ(7,"div",3),s.TgZ(8,"div",4),s.TgZ(9,"mat-card",5),s.TgZ(10,"mat-card-title"),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.TgZ(13,"mat-card-content",6),s.TgZ(14,"div"),s._uU(15),s.ALo(16,"translate"),s.qZA(),s.TgZ(17,"button",7),s.NdJ("click",function(){return e.importPublications()}),s._uU(18),s.ALo(19,"translate"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(20,"div",4),s.TgZ(21,"mat-card",5),s.TgZ(22,"mat-card-title"),s._uU(23),s.ALo(24,"translate"),s.qZA(),s.TgZ(25,"mat-card-content",6),s.TgZ(26,"div"),s._uU(27),s.ALo(28,"translate"),s.qZA(),s.TgZ(29,"button",7),s.NdJ("click",function(){return e.createPublication()}),s._uU(30),s.ALo(31,"translate"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(5),s.hij(" ",s.lcZ(6,7,"CREATE_PUBLICATION.TITLE")," "),s.xp6(6),s.hij(" ",s.lcZ(12,9,"CREATE_PUBLICATION.IMPORT_TITLE")," "),s.xp6(4),s.hij(" ",s.lcZ(16,11,"CREATE_PUBLICATION.IMPORT_HINT")," "),s.xp6(3),s.hij(" ",s.lcZ(19,13,"CREATE_PUBLICATION.IMPORT")," "),s.xp6(5),s.hij(" ",s.lcZ(24,15,"CREATE_PUBLICATION.CREATE_TITLE")," "),s.xp6(4),s.hij(" ",s.lcZ(28,17,"CREATE_PUBLICATION.CREATE_HINT")," "),s.xp6(3),s.hij(" ",s.lcZ(31,19,"CREATE_PUBLICATION.CREATE")," "))},directives:[Vg,ab,rb,ob,id],pipes:[Vh],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}"]}),t})();const lC=["groupFilterInput"];let hC=(()=>{class t{constructor(){this.filter=new s.vpe}ngOnInit(){ds(this.groupFilterInput.nativeElement,"keyup").pipe((0,Dt.U)(t=>t.target.value),(0,Lr.b)(500),Es()).subscribe(t=>{this.filter.emit(t)})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(t,e){if(1&t&&s.Gf(lC,7),2&t){let t;s.iGM(t=s.CRH())&&(e.groupFilterInput=t.first)}},inputs:{placeholder:"placeholder"},outputs:{filter:"filter"},decls:4,vars:3,consts:[[1,"filter-field","mr-2"],["matInput","",3,"placeholder"],["groupFilterInput",""]],template:function(t,e){1&t&&(s.TgZ(0,"mat-form-field",0),s._UZ(1,"input",1,2),s.ALo(3,"translate"),s.qZA()),2&t&&(s.xp6(1),s.s9C("placeholder",s.lcZ(3,1,e.placeholder)))},directives:[Bd,Vm],pipes:[Vh],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),t})();function dC(t,e){1&t&&s._UZ(0,"th",20)}function pC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",21),s.TgZ(1,"mat-checkbox",22),s.NdJ("change",function(e){const i=s.CHM(t).$implicit,n=s.oxw();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function fC(t,e){1&t&&(s.TgZ(0,"th",23),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"AUTHORS_LIST.ID")))}function gC(t,e){if(1&t&&(s.TgZ(0,"td",24),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.id)}}function mC(t,e){1&t&&(s.TgZ(0,"th",23),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"AUTHORS_LIST.NAME")," "))}function _C(t,e){if(1&t&&(s.TgZ(0,"td",25),s._uU(1),s.ALo(2,"userFullName"),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(s.lcZ(2,1,t))}}function wC(t,e){1&t&&(s.TgZ(0,"th",23),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"AUTHORS_LIST.ORGANIZATION")," "))}function yC(t,e){if(1&t&&(s.TgZ(0,"td",25),s._uU(1),s.qZA()),2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.Oqu(i.parseAttribute(t,"organization"))}}function bC(t,e){1&t&&(s.TgZ(0,"th",23),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"AUTHORS_LIST.EMAIL")," "))}function AC(t,e){if(1&t&&(s.TgZ(0,"td",25),s._uU(1),s.qZA()),2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.Oqu(i.parseAttribute(t,"preferredMail"))}}function vC(t,e){1&t&&(s.TgZ(0,"th",23),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"AUTHORS_LIST.NUMBER_OF_PUBLICATIONS")," "))}function kC(t,e){if(1&t&&(s.TgZ(0,"td",25),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.authorships.length.toString())}}function TC(t,e){1&t&&s._UZ(0,"th",26)}function CC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",24),s.TgZ(1,"button",27),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().onAddClick(e)}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.qZA()}2&t&&(s.xp6(2),s.hij(" ",s.lcZ(3,1,"AUTHORS_LIST.ADD")," "))}function SC(t,e){1&t&&s._UZ(0,"th",26)}function MC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",24),s.TgZ(1,"button",28),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().onRemoveClick(e)}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.qZA()}2&t&&(s.xp6(2),s.hij(" ",s.lcZ(3,1,"AUTHORS_LIST.REMOVE")," "))}function EC(t,e){1&t&&s._UZ(0,"tr",29)}const LC=function(t){return["/authors",t]};function xC(t,e){if(1&t&&s._UZ(0,"tr",30),2&t){const t=e.$implicit,i=s.oxw();s.ekj("cursor-pointer",!i.disableRouting),s.Q6J("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:s.VKq(4,LC,t.id))("routerLink",i.disableRouting?null:s.VKq(6,LC,t.id))}}function RC(t,e){1&t&&(s.TgZ(0,"app-alert",31),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function DC(t,e){1&t&&(s.TgZ(0,"app-alert",31),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"AUTHORS_LIST.NO_AUTHORS"),"\n"))}let zC=(()=>{class t{constructor(){this.authors=[],this.displayedColumns=["select","id","name","organization","email","numberOfPublications","add","remove"],this.disableRouting=!1,this.pageSizeOptions=Qg,this.addAuthor=new s.vpe,this.removeAuthor=new s.vpe}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.dataSource=new X_(this.authors),this.setDataSource(),this.dataSource.filter=this.filterValue}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}getSortDataForColumn(t,e){var i;switch(e){case"id":return t.id.toString();case"name":return t.lastName?t.lastName:null!==(i=t.firstName)&&void 0!==i?i:"";case"organization":return sm(t,"organization");case"email":return sm(t,"preferredMail");case"numberOfPublications":return t.authorships.length.toString();default:return t[e]}}getFilterDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return function(t){let e="";return null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}(t);case"organization":return sm(t,"organization");case"email":return sm(t,"preferredMail");case"numberOfPublications":return t.authorships.length.toString();default:return t[e]}}getExportDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return Xg(t);case"organization":return sm(t,"organization");case"email":return sm(t,"preferredMail");case"numberOfPublications":return t.authorships.length.toString();default:return t[e]}}exportData(t){rm(om(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}parseAttribute(t,e){let i="";return t.attributes&&t.attributes.forEach(t=>{t.friendlyName===e&&(i=t.value)}),i}checkboxLabel(t){return`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`}onAddClick(t){this.addAuthor.emit(t)}onRemoveClick(t){this.removeAuthor.emit(t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>nm(t,e,this.displayedColumns,this.getFilterDataForColumn,this),this.dataSource.sortData=(t,e)=>im(t,e,this.getSortDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-authors-list"]],viewQuery:function(t,e){if(1&t&&(s.Gf(Jv,7),s.Gf(mm,7)),2&t){let t;s.iGM(t=s.CRH())&&(e.matSort=t.first),s.iGM(t=s.CRH())&&(e.child=t.first)}},inputs:{authors:"authors",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",disableRouting:"disableRouting",reloadTable:"reloadTable",selection:"selection",pageSizeOptions:"pageSizeOptions"},outputs:{addAuthor:"addAuthor",removeAuthor:"removeAuthor"},features:[s.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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,dC,1,0,"th",4),s.YNc(5,pC,2,2,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,fC,3,3,"th",7),s.YNc(8,gC,2,1,"td",8),s.BQk(),s.ynx(9,9),s.YNc(10,mC,3,3,"th",7),s.YNc(11,_C,3,3,"td",10),s.BQk(),s.ynx(12,11),s.YNc(13,wC,3,3,"th",7),s.YNc(14,yC,2,1,"td",10),s.BQk(),s.ynx(15,12),s.YNc(16,bC,3,3,"th",7),s.YNc(17,AC,2,1,"td",10),s.BQk(),s.ynx(18,13),s.YNc(19,vC,3,3,"th",7),s.YNc(20,kC,2,1,"td",10),s.BQk(),s.ynx(21,14),s.YNc(22,TC,1,0,"th",15),s.YNc(23,CC,4,3,"td",8),s.BQk(),s.ynx(24,16),s.YNc(25,SC,1,0,"th",15),s.YNc(26,MC,4,3,"td",8),s.BQk(),s.YNc(27,EC,1,0,"tr",17),s.YNc(28,xC,1,8,"tr",18),s.qZA(),s.qZA(),s.qZA(),s.YNc(29,RC,3,3,"app-alert",19),s.YNc(30,DC,3,3,"app-alert",19)),2&t&&(s.Q6J("hidden",0===e.authors.length||0===e.dataSource.filteredData.length),s.xp6(1),s.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),s.xp6(1),s.Q6J("dataSource",e.dataSource),s.xp6(25),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",0!==e.authors.length&&0===e.dataSource.filteredData.length),s.xp6(1),s.Q6J("ngIf",0===e.authors.length))},directives:[mm,N_,Jv,U_,q_,K_,V_,$_,n.O5,Z_,G_,bb,sk,id,W_,J_,nT,In,hT],pipes:[Vh,dT],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();function PC(t,e){1&t&&s._UZ(0,"mat-spinner",8)}const IC=function(){return["id","name","organization","email","numberOfPublications"]};function OC(t,e){if(1&t&&s._UZ(0,"perun-web-apps-authors-list",9),2&t){const t=s.oxw();s.Q6J("authors",t.authors)("displayedColumns",s.DdM(4,IC))("filterValue",t.filterValue)("tableId",t.tableId)}}let HC=(()=>{class t{constructor(t){this.cabinetService=t,this.filterValue="",this.tableId=lm}ngOnInit(){this.refreshTable()}refreshTable(){this.loading=!0,this.cabinetService.findAllAuthors().subscribe(t=>{this.authors=t,this.loading=!1})}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(V))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s.TgZ(2,"mat-icon",2),s._uU(3,"assignment_ind"),s.qZA(),s.TgZ(4,"span",3),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA(),s.TgZ(7,"perun-web-apps-refresh-button",4),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.TgZ(8,"perun-web-apps-debounce-filter",5),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.YNc(9,PC,1,0,"mat-spinner",6),s.YNc(10,OC,1,5,"perun-web-apps-authors-list",7),s.qZA()),2&t&&(s.xp6(5),s.Oqu(s.lcZ(6,4,"AUTHORS_PAGE.TITLE")),s.xp6(3),s.Q6J("placeholder","AUTHORS_PAGE.FILTER"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[Vg,qT,hC,n.O5,Ym,zC],pipes:[Vh],styles:[""]}),t})();function YC(t,e){1&t&&s._UZ(0,"mat-spinner",4)}function BC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"div",5),s.TgZ(2,"mat-form-field"),s._UZ(3,"input",6),s.ALo(4,"translate"),s.TgZ(5,"mat-error"),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.qZA(),s.TgZ(8,"mat-form-field"),s._UZ(9,"input",6),s.ALo(10,"translate"),s.TgZ(11,"mat-error"),s._uU(12),s.ALo(13,"translate"),s.qZA(),s.qZA(),s.TgZ(14,"p",7),s._uU(15),s.ALo(16,"translate"),s.qZA(),s.qZA(),s.TgZ(17,"div",8),s.TgZ(18,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(19),s.ALo(20,"translate"),s.qZA(),s.TgZ(21,"div",10),s.ALo(22,"translate"),s.TgZ(23,"button",11),s.NdJ("click",function(){return s.CHM(t),s.oxw().onSubmit()}),s._uU(24),s.ALo(25,"translate"),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(3),s.s9C("placeholder",s.lcZ(4,12,"DIALOGS.ADD_CATEGORY.NAME")),s.Q6J("formControl",t.nameCtrl),s.xp6(3),s.hij(" ",s.lcZ(7,14,"DIALOGS.ADD_CATEGORY.FILL_NAME")," "),s.xp6(3),s.s9C("placeholder",s.lcZ(10,16,"DIALOGS.ADD_CATEGORY.RANK")),s.Q6J("formControl",t.rankCtrl),s.xp6(3),s.hij(" ",s.lcZ(13,18,"DIALOGS.ADD_CATEGORY.FILL_RANK")," "),s.xp6(3),s.Oqu(s.lcZ(16,20,"DIALOGS.ADD_CATEGORY.RANK_HINT")),s.xp6(4),s.hij(" ",s.lcZ(20,22,"DIALOGS.ADD_CATEGORY.CANCEL")," "),s.xp6(2),s.s9C("matTooltip",s.lcZ(22,24,"DIALOGS.ADD_CATEGORY.TOOLTIP")),s.Q6J("matTooltipDisabled",t.nameCtrl.valid&&t.rankCtrl.valid),s.xp6(2),s.Q6J("disabled",t.nameCtrl.invalid||t.rankCtrl.invalid),s.xp6(1),s.hij(" ",s.lcZ(25,26,"DIALOGS.ADD_CATEGORY.CREATE")," ")}}let jC=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.notificator=e,this.cabinetManagerService=i,this.translate=n,n.get("DIALOGS.ADD_CATEGORY.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.nameCtrl=new Fp(null,[Qd.required,Qd.pattern("^[\\w.-]+( [\\w.-]+)*$"),Qd.maxLength(128)]),this.rankCtrl=new Fp(null,[Qd.required,Qd.pattern("^[0-9]+(\\.[0-9])?$")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.cabinetManagerService.createCategoryCat({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 t.\u0275fac=function(e){return new(e||t)(s.Y36(dh),s.Y36(Am),s.Y36(V),s.Y36(Gh))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,YC,1,0,"mat-spinner",2),s.YNc(5,BC,26,28,"div",3),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,3,"DIALOGS.ADD_CATEGORY.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[Ah,n.O5,Ym,vh,Bd,Vm,Zd,af,_p,tf,kd,kh,id,Vf],pipes:[Vh],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})();function FC(t,e){1&t&&s._UZ(0,"mat-spinner",5)}function NC(t,e){1&t&&s._UZ(0,"th",14)}function KC(t,e){if(1&t&&(s.TgZ(0,"td",15),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.name)}}function qC(t,e){1&t&&s._UZ(0,"tr",16)}function UC(t,e){1&t&&s._UZ(0,"tr",17)}function ZC(t,e){if(1&t&&(s.TgZ(0,"div",6),s.TgZ(1,"p"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"div",7),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"table",8),s.ynx(8,9),s.YNc(9,NC,1,0,"th",10),s.YNc(10,KC,2,1,"td",11),s.BQk(),s.YNc(11,qC,1,0,"tr",12),s.YNc(12,UC,1,0,"tr",13),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,5,"DIALOGS.REMOVE_CATEGORY.DESCRIPTION")," "),s.xp6(3),s.hij(" ",s.lcZ(6,7,"DIALOGS.REMOVE_CATEGORY.ASK")," "),s.xp6(2),s.Q6J("dataSource",t.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",t.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",t.displayedColumns)}}function GC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",18),s.TgZ(1,"button",19),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"button",20),s.NdJ("click",function(){return s.CHM(t),s.oxw().onSubmit()}),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,3,"DIALOGS.REMOVE_CATEGORY.CANCEL")," "),s.xp6(2),s.Q6J("disabled",t.loading),s.xp6(1),s.hij(" ",s.lcZ(6,5,"DIALOGS.REMOVE_CATEGORY.DELETE")," ")}}let VC=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.translate=n,this.cabinetManagerService=s,this.displayedColumns=["name"],this.categories=[]}ngOnInit(){this.dataSource=new X_(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(t=>{this.loading=!1,this.notificator.showSuccess(t),this.dialogRef.close(!0)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(dh),s.Y36(fh),s.Y36(Am),s.Y36(Gh),s.Y36(V))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,FC,1,0,"mat-spinner",2),s.YNc(5,ZC,13,9,"div",3),s.YNc(6,GC,7,7,"div",4),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,4,"DIALOGS.REMOVE_CATEGORY.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[Ah,n.O5,Ym,vh,N_,U_,q_,K_,V_,$_,Z_,G_,W_,J_,kh,id],pipes:[Vh],styles:[""]}),t})();function $C(t,e){if(1&t&&(s._UZ(0,"input",3),s.ALo(1,"translate")),2&t){const t=s.oxw();s.s9C("placeholder",s.lcZ(1,2,t.placeholder)),s.Q6J("formControl",t.formControl)}}function WC(t,e){if(1&t&&(s._UZ(0,"input",4),s.ALo(1,"translate")),2&t){const t=s.oxw();s.s9C("placeholder",s.lcZ(1,2,t.placeholder)),s.Q6J("formControl",t.formControl)}}let JC=(()=>{class t{constructor(){this.filter=new s.vpe,this.autoFocus=!1,this.formControl=new Fp}ngOnInit(){this.formControl.valueChanges.subscribe(t=>{let e=t.trim();e=e.toLowerCase(),this.filter.emit(e)})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,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","",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(t,e){1&t&&(s.TgZ(0,"mat-form-field",0),s.YNc(1,$C,2,4,"input",1),s.YNc(2,WC,2,4,"input",2),s.qZA()),2&t&&(s.xp6(1),s.Q6J("ngIf",e.autoFocus),s.xp6(1),s.Q6J("ngIf",!e.autoFocus))},directives:[Bd,n.O5,Vm,Zd,iT,_p,tf],pipes:[Vh],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),t})();function QC(t,e){1&t&&s._UZ(0,"mat-spinner",4)}function XC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"div",5),s.TgZ(2,"mat-form-field"),s._UZ(3,"input",6),s.ALo(4,"translate"),s.TgZ(5,"mat-error"),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.qZA(),s.TgZ(8,"p",7),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.qZA(),s.TgZ(11,"div",8),s.TgZ(12,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.TgZ(15,"div",10),s.ALo(16,"translate"),s.TgZ(17,"button",11),s.NdJ("click",function(){return s.CHM(t),s.oxw().onSubmit()}),s._uU(18),s.ALo(19,"translate"),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(3),s.s9C("placeholder",s.lcZ(4,9,"DIALOGS.UPDATE_RANK.RANK")),s.Q6J("formControl",t.rankCtrl),s.xp6(3),s.hij(" ",s.lcZ(7,11,"DIALOGS.UPDATE_RANK.FILL_RANK")," "),s.xp6(3),s.Oqu(s.lcZ(10,13,"DIALOGS.UPDATE_RANK.RANK_HINT")),s.xp6(4),s.hij(" ",s.lcZ(14,15,"DIALOGS.UPDATE_RANK.CANCEL")," "),s.xp6(2),s.s9C("matTooltip",s.lcZ(16,17,"DIALOGS.UPDATE_RANK.TOOLTIP")),s.Q6J("matTooltipDisabled",t.rankCtrl.valid),s.xp6(2),s.Q6J("disabled",t.rankCtrl.invalid),s.xp6(1),s.hij(" ",s.lcZ(19,19,"DIALOGS.UPDATE_RANK.UPDATE")," ")}}let tS=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.cabinetManagerService=n,this.translate=s,this.categoryName="",s.get("DIALOGS.UPDATE_RANK.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.categoryName=this.data.name,this.rankCtrl=new Fp(this.data.rank,[Qd.required,Qd.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 t.\u0275fac=function(e){return new(e||t)(s.Y36(dh),s.Y36(fh),s.Y36(Am),s.Y36(V),s.Y36(Gh))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,QC,1,0,"mat-spinner",2),s.YNc(5,XC,20,21,"div",3),s.qZA()),2&t&&(s.xp6(2),s.AsE("",s.lcZ(3,4,"DIALOGS.UPDATE_RANK.TITLE"),"",e.categoryName,""),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[Ah,n.O5,Ym,vh,Bd,Vm,Zd,af,_p,tf,kd,kh,id,Vf],pipes:[Vh],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})();function eS(t,e){1&t&&s._UZ(0,"th",15)}function iS(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",16),s.TgZ(1,"mat-checkbox",17),s.NdJ("change",function(e){const i=s.CHM(t).$implicit,n=s.oxw();return e?n.itemSelectionToggle(i):null})("click",function(t){return t.stopPropagation()}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function nS(t,e){1&t&&(s.TgZ(0,"th",18),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"CATEGORIES_LIST.ID")," "))}function sS(t,e){if(1&t&&(s.TgZ(0,"td",19),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.id)}}function oS(t,e){1&t&&(s.TgZ(0,"th",18),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"CATEGORIES_LIST.NAME")," "))}function rS(t,e){if(1&t&&(s.TgZ(0,"td",20),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.name)}}function aS(t,e){1&t&&(s.TgZ(0,"th",18),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"CATEGORIES_LIST.RANK")," "))}function cS(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",22),s.NdJ("click",function(){s.CHM(t);const e=s.oxw().$implicit;return s.oxw().updateCategory(e)}),s.TgZ(1,"mat-icon"),s._uU(2,"edit"),s.qZA(),s.qZA()}}function uS(t,e){if(1&t&&(s.TgZ(0,"td",20),s._uU(1),s.YNc(2,cS,3,0,"button",21),s.qZA()),2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.hij(" ",t.rank," "),s.xp6(1),s.Q6J("ngIf",i.editAuth)}}function lS(t,e){1&t&&s._UZ(0,"tr",23)}function hS(t,e){1&t&&s._UZ(0,"tr",24)}function dS(t,e){1&t&&(s.TgZ(0,"app-alert",25),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"CATEGORIES_PAGE.NO_FILTER_RESULTS"),"\n"))}let pS=(()=>{class t{constructor(t,e,i,n){this.guiAuthResolver=t,this.tableCheckbox=e,this.dialog=i,this.authResolver=n,this.categories=[],this.selection=new bo(!0,[]),this.displayedColumns=["select","id","name","rank"],this.pageSizeOptions=Qg,this.refreshTable=new s.vpe,this.editAuth=!1}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.dataSource=new X_(this.categories),this.setDataSource(),this.dataSource.filter=this.filterValue}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return t.name;case"rank":return t.rank.toString();default:return t[e]}}exportData(t){rm(om(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>nm(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>im(t,e,this.getDataForColumn,this),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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.editAuth=this.authResolver.isCabinetAdmin(),this.dataSource.paginator=this.child.paginator}itemSelectionToggle(t){this.selection.toggle(t)}updateCategory(t){const e=tm();e.width="400px",e.data=t,this.dialog.open(tS,e).afterClosed().subscribe(t=>{t&&this.refreshTable.emit()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(_t),s.Y36(Cm),s.Y36(yh),s.Y36(_t))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-categories-list"]],viewQuery:function(t,e){if(1&t&&(s.Gf(Jv,7),s.Gf(mm,7)),2&t){let t;s.iGM(t=s.CRH())&&(e.matSort=t.first),s.iGM(t=s.CRH())&&(e.child=t.first)}},inputs:{categories:"categories",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions"},outputs:{refreshTable:"refreshTable"},features:[s.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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,eS,1,0,"th",4),s.YNc(5,iS,2,2,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,nS,3,3,"th",7),s.YNc(8,sS,2,1,"td",8),s.BQk(),s.ynx(9,9),s.YNc(10,oS,3,3,"th",7),s.YNc(11,rS,2,1,"td",10),s.BQk(),s.ynx(12,11),s.YNc(13,aS,3,3,"th",7),s.YNc(14,uS,3,2,"td",10),s.BQk(),s.YNc(15,lS,1,0,"tr",12),s.YNc(16,hS,1,0,"tr",13),s.qZA(),s.qZA(),s.qZA(),s.YNc(17,dS,3,3,"app-alert",14)),2&t&&(s.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.categories.length),s.xp6(1),s.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),s.xp6(1),s.Q6J("dataSource",e.dataSource),s.xp6(13),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.categories.length))},directives:[mm,N_,Jv,U_,q_,K_,V_,$_,n.O5,Z_,G_,bb,sk,id,Vg,W_,J_,hT],pipes:[Vh],styles:[""]}),t})();function fS(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().addCategory()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"CATEGORIES_PAGE.CREATE")," "))}function gS(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().removeCategory()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",!t.selected.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"CATEGORIES_PAGE.REMOVE")," ")}}function mS(t,e){1&t&&s._UZ(0,"mat-spinner",10)}const _S=function(){return["select","id","name","rank"]},wS=function(){return["name","rank"]};function yS(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-categories-list",11),s.NdJ("refreshTable",function(){return s.CHM(t),s.oxw().refreshTable()}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("categories",t.categories)("filterValue",t.filterValue)("displayedColumns",t.removeAuth?s.DdM(5,_S):s.DdM(6,wS))("tableId",t.tableId)("selection",t.selected)}}let bS=(()=>{class t{constructor(t,e,i){this.cabinetManagerService=t,this.dialog=e,this.guiAuthResolver=i,this.categories=[],this.selected=new bo(!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(t=>{this.categories=t,this.loading=!1})}applyFilter(t){this.filterValue=t}addCategory(){const t=tm();t.width="400px",t.data={},this.dialog.open(jC,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}removeCategory(){const t=tm();t.width="400px",t.data=this.selected.selected,this.dialog.open(VC,t).afterClosed().subscribe(t=>{t&&(this.selected.clear(),this.refreshTable())})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(V),s.Y36(yh),s.Y36(_t))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",2),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.YNc(5,fS,3,3,"button",3),s.YNc(6,gS,3,4,"button",4),s.TgZ(7,"perun-web-apps-immediate-filter",5),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.YNc(8,mS,1,0,"mat-spinner",6),s.YNc(9,yS,1,7,"perun-web-apps-categories-list",7),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,6,"CATEGORIES_PAGE.TITLE")),s.xp6(3),s.Q6J("ngIf",e.addAuth),s.xp6(1),s.Q6J("ngIf",e.removeAuth),s.xp6(1),s.Q6J("placeholder","CATEGORIES_PAGE.FILTER"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",e.categories&&!e.loading))},directives:[qT,n.O5,JC,id,Ym,pS],pipes:[Vh],styles:[""]}),t})();function AS(t,e){1&t&&(s.TgZ(0,"th",14),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.ID")," "))}function vS(t,e){if(1&t&&(s.TgZ(0,"td",15),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.id)}}function kS(t,e){1&t&&(s.TgZ(0,"th",14),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.FRIENDLY_NAME")," "))}function TS(t,e){if(1&t&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.friendlyName)}}function CS(t,e){1&t&&(s.TgZ(0,"th",14),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.LOGIN_NAMESPACE")," "))}function SS(t,e){if(1&t&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ","empty"===t.loginNamespace?"":t.loginNamespace," ")}}function MS(t,e){1&t&&(s.TgZ(0,"th",14),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.URL")," "))}function ES(t,e){if(1&t&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu("empty"===t.url?"":t.url)}}function LS(t,e){1&t&&(s.TgZ(0,"th",14),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.TYPE")," "))}function xS(t,e){if(1&t&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu("empty"===t.type?"":t.type)}}function RS(t,e){1&t&&s._UZ(0,"tr",17)}function DS(t,e){1&t&&s._UZ(0,"tr",18)}function zS(t,e){1&t&&(s.TgZ(0,"app-alert",19),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let PS=(()=>{class t{constructor(){this.publicationSystems=[],this.displayedColumns=["id","friendlyName","loginNamespace","url","type"],this.pageSizeOptions=Qg}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.dataSource=new X_(this.publicationSystems),this.setDataSource(),this.dataSource.filter=this.filterValue}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"friendlyName":return t.friendlyName;case"url":return t.url;case"loginNamespace":return t.loginNamespace;case"type":return t.type;default:return t[e]}}exportData(t){rm(om(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>nm(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>im(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-publication-systems-list"]],viewQuery:function(t,e){if(1&t&&(s.Gf(Jv,7),s.Gf(mm,7)),2&t){let t;s.iGM(t=s.CRH())&&(e.matSort=t.first),s.iGM(t=s.CRH())&&(e.child=t.first)}},inputs:{publicationSystems:"publicationSystems",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions"},features:[s.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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,AS,3,3,"th",4),s.YNc(5,vS,2,1,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,kS,3,3,"th",4),s.YNc(8,TS,2,1,"td",7),s.BQk(),s.ynx(9,8),s.YNc(10,CS,3,3,"th",4),s.YNc(11,SS,2,1,"td",7),s.BQk(),s.ynx(12,9),s.YNc(13,MS,3,3,"th",4),s.YNc(14,ES,2,1,"td",7),s.BQk(),s.ynx(15,10),s.YNc(16,LS,3,3,"th",4),s.YNc(17,xS,2,1,"td",7),s.BQk(),s.YNc(18,RS,1,0,"tr",11),s.YNc(19,DS,1,0,"tr",12),s.qZA(),s.qZA(),s.qZA(),s.YNc(20,zS,3,3,"app-alert",13)),2&t&&(s.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.publicationSystems.length),s.xp6(1),s.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),s.xp6(1),s.Q6J("dataSource",e.dataSource),s.xp6(16),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.publicationSystems.length))},directives:[mm,N_,Jv,U_,q_,K_,V_,$_,n.O5,Z_,sk,G_,W_,J_,hT],pipes:[Vh],styles:[""]}),t})();function IS(t,e){1&t&&s._UZ(0,"mat-spinner",6)}function OS(t,e){if(1&t&&s._UZ(0,"perun-web-apps-publication-systems-list",7),2&t){const t=s.oxw();s.Q6J("publicationSystems",t.publicationSystems)("filterValue",t.filterValue)("tableId",t.tableId)}}let HS=(()=>{class t{constructor(t){this.cabinetManagerService=t,this.publicationSystems=[],this.filterValue="",this.tableId="5"}ngOnInit(){this.refreshTable()}refreshTable(){this.loading=!0,this.cabinetManagerService.getPublicationSystems().subscribe(t=>{this.publicationSystems=t,this.loading=!1})}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(V))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",2),s.NdJ("refresh",function(){return e.refreshTable()}),s.qZA(),s.TgZ(5,"perun-web-apps-immediate-filter",3),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.YNc(6,IS,1,0,"mat-spinner",4),s.YNc(7,OS,1,3,"perun-web-apps-publication-systems-list",5),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,4,"PUBLICATION_SYSTEMS_PAGE.TITLE")),s.xp6(3),s.Q6J("placeholder","PUBLICATION_SYSTEMS_PAGE.FILTER"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",e.publicationSystems&&!e.loading))},directives:[qT,JC,n.O5,Ym,PS],pipes:[Vh],styles:[""]}),t})();function YS(t,e){if(1&t&&s._UZ(0,"perun-web-apps-publications-list",11),2&t){const t=s.oxw(2);s.Q6J("publications",t.publications)("selection",t.selected)("tableId",t.tableId)("routerPath","/authors/"+t.author.id+"/publication")}}function BS(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"h5"),s._uU(2),s.ALo(3,"userFullName"),s.ALo(4,"translate"),s.qZA(),s.TgZ(5,"div",6),s.TgZ(6,"perun-web-apps-refresh-button",7),s.NdJ("refresh",function(){return s.CHM(t),s.oxw().refreshTable()}),s.qZA(),s.TgZ(7,"button",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().removePublication()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"perun-web-apps-publication-filter",9),s.NdJ("filteredPublication",function(e){return s.CHM(t),s.oxw().filterPublication(e)}),s.qZA(),s.qZA(),s.YNc(11,YS,1,4,"perun-web-apps-publications-list",10),s.qZA()}if(2&t){const t=s.oxw();s.xp6(2),s.AsE("",s.lcZ(3,5,t.author),"",s.lcZ(4,7,"AUTHOR_DETAIL.TITLE"),""),s.xp6(5),s.Q6J("disabled",0===t.selected.selected.length),s.xp6(1),s.hij(" ",s.lcZ(9,9,"AUTHOR_DETAIL.REMOVE")," "),s.xp6(3),s.Q6J("ngIf",!t.loading)}}function jS(t,e){1&t&&s._UZ(0,"mat-spinner",12)}let FS=(()=>{class t{constructor(t,e,i,n){this.route=t,this.cabinetService=e,this.userService=i,this.dialog=n,this.selected=new bo(!0,[]),this.tableId=hm}ngOnInit(){this.initLoading=!0,this.route.params.subscribe(t=>{this.userService.getUserById(t.authorId).subscribe(t=>{this.author=t,this.initLoading=!1,this.refreshTable()})})}removePublication(){const t=tm();t.width="500px",t.data=this.selected.selected,this.dialog.open(KT,t).afterClosed().subscribe(t=>{t&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(null,null,null,null,null,null,null,null,this.author.id).subscribe(t=>{this.publications=t,this.loading=!1})}filterPublication(t){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(t.title,null,null,null,null,t.category,+t.startYear,+t.endYear,this.author.id).subscribe(t=>{this.publications=t,this.loading=!1})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(hi),s.Y36(V),s.Y36(ct),s.Y36(yh))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s.TgZ(2,"mat-icon",2),s._uU(3,"assignment_ind"),s.qZA(),s.TgZ(4,"span",3),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA(),s.YNc(7,BS,12,11,"div",4),s.YNc(8,jS,1,0,"mat-spinner",5),s.qZA()),2&t&&(s.xp6(5),s.Oqu(s.lcZ(6,3,"AUTHORS_PAGE.TITLE")),s.xp6(2),s.Q6J("ngIf",!e.initLoading),s.xp6(1),s.Q6J("ngIf",e.loading||e.initLoading))},directives:[Vg,n.O5,qT,id,eC,BT,Ym],pipes:[Vh,dT],styles:[""]}),t})();const NS=function(){return["id","name","organization","email","add"]};function KS(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-authors-list",15),s.NdJ("addAuthor",function(e){return s.CHM(t),s.oxw(3).addAuthor(e)}),s.qZA()}if(2&t){const t=s.oxw(3);s.Q6J("authors",t.authors)("disableRouting",!0)("tableId",t.tableIdAuthors)("displayedColumns",s.DdM(4,NS))}}function qS(t,e){1&t&&(s.TgZ(0,"app-alert",16),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ADD_AUTHORS.SEARCH_INFO")," "))}function US(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,KS,1,5,"perun-web-apps-authors-list",13),s.YNc(2,qS,3,3,"app-alert",14),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("ngIf",t.firstSearchDone),s.xp6(1),s.Q6J("ngIf",!t.firstSearchDone)}}function ZS(t,e){1&t&&s._UZ(0,"mat-spinner",17)}const GS=function(){return["id","name","organization","email","remove"]};function VS(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-authors-list",19),s.NdJ("removeAuthor",function(e){return s.CHM(t),s.oxw(3).removeAuthor(e)}),s.qZA()}if(2&t){const t=s.oxw(3);s.Q6J("reloadTable",t.reloadTable)("authors",t.authorsToAdd)("disableRouting",!0)("tableId",t.tableIdAuthors)("displayedColumns",s.DdM(5,GS))}}function $S(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,VS,1,6,"perun-web-apps-authors-list",18),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("ngIf",t.firstSearchDone)}}function WS(t,e){1&t&&(s.TgZ(0,"app-alert",20),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ADD_AUTHORS.NO_AUTHORS_TO_ADD")," "))}function JS(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,US,3,2,"div",6),s.YNc(2,ZS,1,0,"mat-spinner",7),s.TgZ(3,"h2",11),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.YNc(6,$S,2,1,"div",6),s.YNc(7,WS,3,3,"app-alert",12),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngIf",!t.searchLoading),s.xp6(1),s.Q6J("ngIf",t.searchLoading),s.xp6(2),s.hij(" ",s.lcZ(5,5,"DIALOGS.ADD_AUTHORS.AUTHORS_TO_ADD")," "),s.xp6(2),s.Q6J("ngIf",t.firstSearchDone&&0!==t.authorsToAdd.length),s.xp6(1),s.Q6J("ngIf",0===t.authorsToAdd.length)}}function QS(t,e){1&t&&s._UZ(0,"mat-spinner",17)}let XS=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.notificator=i,this.cabinetService=n,this.translate=s,this.loading=!1,this.searchLoading=!1,this.firstSearchDone=!1,this.authors=[],this.alreadyAddedAuthors=[],this.authorsToAdd=[],this.tableIdAuthors=lm,this.selection=new bo(!1,[]),this.reloadTable=!1,s.get("DIALOGS.ADD_AUTHORS.SUCCESS_MESSAGE").subscribe(t=>this.successMessage=t),this.publicationId=e.publicationId,this.alreadyAddedAuthors=e.alreadyAddedAuthors}ngOnInit(){this.searchControl=new Fp("",[Qd.required,Qd.pattern(".*[\\S]+.*")])}onSearchByString(){this.searchLoading=!0;const t=[...this.alreadyAddedAuthors,...this.authorsToAdd];this.cabinetService.findNewAuthors(this.searchControl.value).subscribe(e=>{e=e.filter(e=>t.map(t=>t.id).indexOf(e.id)<=-1),this.authors=e,this.firstSearchDone=!0,this.searchLoading=!1},()=>{this.searchLoading=!1})}onAdd(){if(this.loading=!0,this.authorsToAdd.length){const t=this.authorsToAdd.pop();this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:this.publicationId,userId:t.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(t){this.authors=this.authors.filter(e=>e!==t),this.authorsToAdd.push(t),this.reloadTable=!this.reloadTable}removeAuthor(t){this.authorsToAdd=this.authorsToAdd.filter(e=>e!==t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(dh),s.Y36(fh),s.Y36(Am),s.Y36(V),s.Y36(Gh))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"div",2),s.TgZ(5,"mat-form-field",3),s.TgZ(6,"label"),s.TgZ(7,"input",4),s.NdJ("keyup.enter",function(){return e.onSearchByString()}),s.ALo(8,"translate"),s.qZA(),s.qZA(),s.TgZ(9,"mat-error"),s._uU(10),s.ALo(11,"translate"),s.qZA(),s.qZA(),s.TgZ(12,"button",5),s.NdJ("click",function(){return e.onSearchByString()}),s.TgZ(13,"mat-icon"),s._uU(14,"search"),s.qZA(),s.qZA(),s.YNc(15,JS,8,7,"div",6),s.qZA(),s.YNc(16,QS,1,0,"mat-spinner",7),s.TgZ(17,"div",8),s.TgZ(18,"button",9),s.NdJ("click",function(){return e.onCancel()}),s._uU(19),s.ALo(20,"translate"),s.qZA(),s.TgZ(21,"button",10),s.NdJ("click",function(){return e.onAdd()}),s._uU(22),s.ALo(23,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,10,"DIALOGS.ADD_AUTHORS.TITLE")),s.xp6(5),s.s9C("placeholder",s.lcZ(8,12,"DIALOGS.ADD_AUTHORS.SEARCH_PLACEHOLDER")),s.Q6J("formControl",e.searchControl),s.xp6(3),s.hij(" ",s.lcZ(11,14,"DIALOGS.ADD_AUTHORS.EMPTY_SEARCH_MESSAGE")," "),s.xp6(2),s.Q6J("disabled",e.searchLoading||""===e.searchControl.value.trim()),s.xp6(3),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(3),s.hij(" ",s.lcZ(20,16,"DIALOGS.ADD_AUTHORS.CANCEL")," "),s.xp6(2),s.Q6J("disabled",0===e.authorsToAdd.length||e.loading),s.xp6(1),s.hij(" ",s.lcZ(23,18,"DIALOGS.ADD_AUTHORS.ADD")," "))},directives:[Ah,vh,Bd,Vm,Zd,_p,tf,kd,id,Vg,n.O5,kh,zC,hT,Ym],pipes:[Vh],styles:[".top-margin[_ngcontent-%COMP%]{margin-top:15px}.adjust-width[_ngcontent-%COMP%]{width:300px}"]}),t})();function tM(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",6),s.NdJ("click",function(){return s.CHM(t),s.oxw().onAddAuthors()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"PUBLICATION_DETAIL.ADD")," "))}function eM(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",7),s.NdJ("click",function(){return s.CHM(t),s.oxw().onRemoveAuthors()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selection.selected.length||t.publication.locked),s.xp6(1),s.hij(" ",s.lcZ(2,2,"PUBLICATION_DETAIL.REMOVE")," ")}}function iM(t,e){1&t&&s._UZ(0,"mat-spinner",8)}const nM=function(){return["id","name","organization","email"]},sM=function(){return["select","id","name","organization","email"]};function oM(t,e){if(1&t&&s._UZ(0,"perun-web-apps-authors-list",9),2&t){const t=s.oxw();s.Q6J("authors",t.publication.authors)("selection",t.selection)("filterValue",t.filterValue)("tableId",t.tableId)("displayedColumns",t.publication.locked?s.DdM(5,nM):s.DdM(6,sM))}}let rM=(()=>{class t{constructor(t,e,i,n){this.dialog=t,this.cabinetService=e,this.notificator=i,this.translate=n,this.selection=new bo(!0,[]),this.filterValue="",this.loading=!1,this.tableId=lm}ngOnInit(){this.refresh()}refresh(){this.loading=!0,this.cabinetService.findAuthorsByPublicationId(this.publication.id).subscribe(t=>{this.publication.authors=t,this.selection.clear(),this.loading=!1})}onAddAuthors(){const t=tm();t.width="800px",t.data={publicationId:this.publication.id,alreadyAddedAuthors:this.publication.authors},this.dialog.open(XS,t).afterClosed().subscribe(t=>{t&&(this.selection.clear(),this.refresh())})}onRemoveAuthors(){const t=tm();t.width="800px",t.data={items:this.selection.selected.map(t=>`${t.titleBefore?t.titleBefore:""} ${t.firstName?t.firstName:""} ${t.lastName?t.lastName:""} ${t.titleAfter?t.titleAfter:""}`),title:"DIALOGS.REMOVE_AUTHORS.TITLE",description:"DIALOGS.REMOVE_AUTHORS.DESCRIPTION",theme:"user-theme"},this.dialog.open(rw,t).afterClosed().subscribe(t=>{t&&this.removeAuthors(this.selection.selected)})}removeAuthors(t){if(this.loading=!0,t.length){const e=t.pop();this.cabinetService.deleteAuthorship(this.publication.id,e.id).subscribe(()=>{this.removeAuthors(t)},()=>this.loading=!1)}else this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_AUTHORS.SUCCESS_MESSAGE")),this.selection.clear(),this.refresh()}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yh),s.Y36(V),s.Y36(Am),s.Y36(Gh))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.YNc(1,tM,3,3,"button",1),s.YNc(2,eM,3,4,"button",2),s.TgZ(3,"perun-web-apps-immediate-filter",3),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.YNc(4,iM,1,0,"mat-spinner",4),s.YNc(5,oM,1,7,"perun-web-apps-authors-list",5),s.qZA()),2&t&&(s.xp6(1),s.Q6J("ngIf",!e.publication.locked),s.xp6(1),s.Q6J("ngIf",!e.publication.locked),s.xp6(1),s.Q6J("placeholder","PUBLICATION_DETAIL.FILTER"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[n.O5,JC,id,Ym,zC],pipes:[Vh],styles:[""]}),t})();function aM(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"th",16),s.TgZ(1,"mat-checkbox",17),s.NdJ("change",function(e){s.CHM(t);const i=s.oxw();return e?i.masterToggle():null}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function cM(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",18),s.TgZ(1,"mat-checkbox",19),s.NdJ("change",function(e){const i=s.CHM(t).$implicit,n=s.oxw();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function uM(t,e){1&t&&(s.TgZ(0,"th",20),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.ID")," "))}function lM(t,e){if(1&t&&(s.TgZ(0,"td",21),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",t.id," ")}}function hM(t,e){1&t&&(s.TgZ(0,"th",20),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NAME")," "))}function dM(t,e){if(1&t&&(s.TgZ(0,"td",22),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.name)}}function pM(t,e){1&t&&(s.TgZ(0,"th",20),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.CONTACT")," "))}function fM(t,e){if(1&t&&(s.TgZ(0,"td",22),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.contact)}}function gM(t,e){1&t&&(s.TgZ(0,"th",20),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.TYPE")," "))}function mM(t,e){if(1&t&&(s.TgZ(0,"td",22),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.type)}}function _M(t,e){1&t&&s._UZ(0,"tr",23)}function wM(t,e){1&t&&s._UZ(0,"tr",24)}function yM(t,e){1&t&&(s.TgZ(0,"app-alert",25),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_OWNERS"),"\n"))}function bM(t,e){1&t&&(s.TgZ(0,"app-alert",25),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_FILTER_OWNERS"),"\n"))}let AM=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.owners=[],this.selection=new bo(!0,[]),this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.pageSizeOptions=Qg}set matSort(t){this.sort=t,this.setDataSource()}ngAfterViewInit(){this.setDataSource()}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"name":return t.name;case"contact":return t.contact;case"type":return t.type;default:return""}}exportData(t){rm(om(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>nm(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>im(t,e,this.getDataForColumn,this),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(t=>"id"!==t)),this.dataSource=new X_(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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(_t),s.Y36(Cm))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-owners-list"]],viewQuery:function(t,e){if(1&t&&(s.Gf(mm,7),s.Gf(Jv,7)),2&t){let t;s.iGM(t=s.CRH())&&(e.child=t.first),s.iGM(t=s.CRH())&&(e.matSort=t.first)}},inputs:{owners:"owners",selection:"selection",tableId:"tableId",filterValue:"filterValue",displayedColumns:"displayedColumns"},features:[s.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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,aM,2,3,"th",4),s.YNc(5,cM,2,2,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,uM,3,3,"th",7),s.YNc(8,lM,2,1,"td",8),s.BQk(),s.ynx(9,9),s.YNc(10,hM,3,3,"th",7),s.YNc(11,dM,2,1,"td",10),s.BQk(),s.ynx(12,11),s.YNc(13,pM,3,3,"th",7),s.YNc(14,fM,2,1,"td",10),s.BQk(),s.ynx(15,12),s.YNc(16,gM,3,3,"th",7),s.YNc(17,mM,2,1,"td",10),s.BQk(),s.YNc(18,_M,1,0,"tr",13),s.YNc(19,wM,1,0,"tr",14),s.qZA(),s.qZA(),s.qZA(),s.YNc(20,yM,3,3,"app-alert",15),s.YNc(21,bM,3,3,"app-alert",15)),2&t&&(s.Q6J("hidden",0===e.owners.length||0===e.dataSource.filteredData.length),s.xp6(1),s.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),s.xp6(1),s.Q6J("dataSource",e.dataSource),s.xp6(16),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",!e.owners.length),s.xp6(1),s.Q6J("ngIf",!e.dataSource.filteredData.length&&e.owners.length))},directives:[mm,N_,Jv,U_,q_,K_,V_,$_,n.O5,Z_,bb,G_,sk,W_,J_,hT],pipes:[Vh],styles:[""]}),t})();function vM(t,e){1&t&&s._UZ(0,"mat-spinner",4)}const kM=function(){return["select","id","name","contact"]};function TM(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"div",5),s.TgZ(2,"perun-web-apps-immediate-filter",6),s.NdJ("filter",function(e){return s.CHM(t),s.oxw().filterValue=e}),s.qZA(),s._UZ(3,"perun-web-apps-owners-list",7),s.qZA(),s.TgZ(4,"div",8),s.TgZ(5,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.TgZ(8,"button",10),s.NdJ("click",function(){return s.CHM(t),s.oxw().onSubmit()}),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(2),s.Q6J("placeholder","DIALOGS.ADD_THANKS.FILTER"),s.xp6(1),s.Q6J("owners",t.owners)("filterValue",t.filterValue)("tableId",t.tableId)("displayedColumns",s.DdM(13,kM))("selection",t.selected),s.xp6(3),s.hij(" ",s.lcZ(7,9,"DIALOGS.ADD_THANKS.CANCEL")," "),s.xp6(2),s.Q6J("disabled",0===t.selected.selected.length||t.loading),s.xp6(1),s.hij(" ",s.lcZ(10,11,"DIALOGS.ADD_THANKS.ADD")," ")}}let CM=(()=>{class t{constructor(t,e,i,n,s,o,r){this.dialogRef=t,this.data=e,this.ownersManagerService=i,this.storeService=n,this.notificator=s,this.translate=o,this.cabinetManagerService=r,this.selected=new bo(!0,[]),this.tableId="73"}ngOnInit(){this.loading=!0;const t=this.storeService.get("allowed_owners_for_thanks");this.ownersManagerService.getAllOwners().subscribe(e=>{this.owners=0!==t.length?e.filter(e=>t.indexOf(e.id)>-1):e,this.owners=this.owners.filter(t=>this.data.thanks.map(t=>t.ownerId).indexOf(t.id)<=-1),this.loading=!1})}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,0===this.selected.selected.length?this.translate.get("DIALOGS.ADD_THANKS.SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),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 t.\u0275fac=function(e){return new(e||t)(s.Y36(dh),s.Y36(fh),s.Y36(it),s.Y36(ns),s.Y36(Am),s.Y36(Gh),s.Y36(V))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,vM,1,0,"mat-spinner",2),s.YNc(5,TM,11,14,"div",3),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,3,"DIALOGS.ADD_THANKS.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[Ah,n.O5,Ym,vh,JC,AM,kh,id],pipes:[Vh],styles:[""]}),t})();function SM(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"th",15),s.TgZ(1,"mat-checkbox",16),s.NdJ("change",function(e){s.CHM(t);const i=s.oxw();return e?i.masterToggle():null}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function MM(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",17),s.TgZ(1,"mat-checkbox",18),s.NdJ("change",function(e){const i=s.CHM(t).$implicit,n=s.oxw();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function EM(t,e){1&t&&(s.TgZ(0,"th",19),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"THANKS_LIST.ID")))}function LM(t,e){if(1&t&&(s.TgZ(0,"td",20),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.ownerId)}}function xM(t,e){1&t&&(s.TgZ(0,"th",19),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"THANKS_LIST.NAME")," "))}function RM(t,e){if(1&t&&(s.TgZ(0,"td",21),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.ownerName)}}function DM(t,e){1&t&&(s.TgZ(0,"th",19),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"THANKS_LIST.CREATED_BY")," "))}function zM(t,e){if(1&t&&(s.TgZ(0,"td",21),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.createdBy)}}function PM(t,e){1&t&&s._UZ(0,"tr",22)}function IM(t,e){1&t&&s._UZ(0,"tr",23)}function OM(t,e){1&t&&(s.TgZ(0,"app-alert",24),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function HM(t,e){1&t&&(s.TgZ(0,"app-alert",24),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"THANKS_LIST.NO_THANKS"),"\n"))}let YM=(()=>{class t{constructor(t){this.tableCheckbox=t,this.thanks=[],this.filterValue="",this.displayedColumns=["select","id","name","createdBy"],this.pageSizeOptions=Qg,this.selection=new bo(!0,[])}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.dataSource=new X_(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)}getDataForColumn(t,e){switch(e){case"id":return t.ownerId.toString();case"name":return t.ownerName;default:return t[e]}}exportData(t){rm(om(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>nm(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>im(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Cm))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-thanks-list"]],viewQuery:function(t,e){if(1&t&&(s.Gf(Jv,7),s.Gf(mm,7)),2&t){let t;s.iGM(t=s.CRH())&&(e.matSort=t.first),s.iGM(t=s.CRH())&&(e.child=t.first)}},inputs:{thanks:"thanks",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions",selection:"selection"},features:[s.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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,SM,2,3,"th",4),s.YNc(5,MM,2,2,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,EM,3,3,"th",7),s.YNc(8,LM,2,1,"td",8),s.BQk(),s.ynx(9,9),s.YNc(10,xM,3,3,"th",7),s.YNc(11,RM,2,1,"td",10),s.BQk(),s.ynx(12,11),s.YNc(13,DM,3,3,"th",7),s.YNc(14,zM,2,1,"td",10),s.BQk(),s.YNc(15,PM,1,0,"tr",12),s.YNc(16,IM,1,0,"tr",13),s.qZA(),s.qZA(),s.qZA(),s.YNc(17,OM,3,3,"app-alert",14),s.YNc(18,HM,3,3,"app-alert",14)),2&t&&(s.Q6J("hidden",0===e.thanks.length||0===e.dataSource.filteredData.length),s.xp6(1),s.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),s.xp6(1),s.Q6J("dataSource",e.dataSource),s.xp6(13),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",0!==e.thanks.length&&0===e.dataSource.filteredData.length),s.xp6(1),s.Q6J("ngIf",0===e.thanks.length))},directives:[mm,N_,Jv,U_,q_,K_,V_,$_,n.O5,Z_,bb,G_,sk,W_,J_,hT],pipes:[Vh],styles:[""]}),t})();function BM(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",6),s.NdJ("click",function(){return s.CHM(t),s.oxw().onAddThanks()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"PUBLICATION_DETAIL.ADD")," "))}function jM(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",7),s.NdJ("click",function(){return s.CHM(t),s.oxw().onRemoveThanks()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("disabled",0===t.selection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(2,2,"PUBLICATION_DETAIL.REMOVE")," ")}}function FM(t,e){1&t&&s._UZ(0,"mat-spinner",8)}const NM=function(){return["id","name","createdBy"]},KM=function(){return["select","id","name","createdBy"]};function qM(t,e){if(1&t&&s._UZ(0,"perun-web-apps-thanks-list",9),2&t){const t=s.oxw();s.Q6J("thanks",t.publication.thanks)("filterValue",t.filterValue)("tableId",t.tableId)("displayedColumns",t.publication.locked?s.DdM(5,NM):s.DdM(6,KM))("selection",t.selection)}}let UM=(()=>{class t{constructor(t,e,i,n){this.dialog=t,this.cabinetService=e,this.notificator=i,this.translate=n,this.selection=new bo(!0,[]),this.tableId="70",this.loading=!1,this.filterValue=""}ngOnInit(){this.refresh()}refresh(){this.loading=!0,this.cabinetService.findPublicationById(this.publication.id).subscribe(t=>{this.publication=t,this.selection.clear(),this.loading=!1})}onAddThanks(){const t=tm();t.width="800px",t.data=this.publication,this.dialog.open(CM,t).afterClosed().subscribe(t=>{t&&this.refresh()})}onRemoveThanks(){const t=tm();t.width="450px",t.data={items:this.selection.selected.map(t=>t.ownerName),title:"PUBLICATION_DETAIL.REMOVE_THANKS_DIALOG_TITLE",description:"PUBLICATION_DETAIL.REMOVE_THANKS_DIALOG_DESCRIPTION",theme:"user-theme"},this.dialog.open(rw,t).afterClosed().subscribe(t=>{t&&(this.loading=!0,this.removeThank())})}removeThank(){0===this.selection.selected.length?this.translate.get("PUBLICATION_DETAIL.REMOVE_THANKS_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.refresh()}):this.cabinetService.deleteThanks(this.selection.selected.pop().id).subscribe(()=>{this.removeThank()})}applyFilter(t){this.filterValue=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yh),s.Y36(V),s.Y36(Am),s.Y36(Gh))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.YNc(1,BM,3,3,"button",1),s.YNc(2,jM,3,4,"button",2),s.TgZ(3,"perun-web-apps-immediate-filter",3),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.qZA(),s.YNc(4,FM,1,0,"mat-spinner",4),s.YNc(5,qM,1,7,"perun-web-apps-thanks-list",5),s.qZA()),2&t&&(s.xp6(1),s.Q6J("ngIf",!e.publication.locked),s.xp6(1),s.Q6J("ngIf",!e.publication.locked),s.xp6(1),s.Q6J("placeholder","PUBLICATION_DETAIL.FILTER"),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[n.O5,JC,id,Ym,YM],pipes:[Vh],styles:[""]}),t})();function ZM(t,e){1&t&&s._UZ(0,"mat-spinner",2)}function GM(t,e){if(1&t&&(s.TgZ(0,"h3",15),s._uU(1),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Oqu(t.publication.title)}}function VM(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",16),s.NdJ("click",function(){s.CHM(t);const e=s.oxw(2);return e.editing=!e.editing}),s.ALo(1,"translate"),s.TgZ(2,"mat-icon",17),s._uU(3,"edit"),s.qZA(),s.qZA()}2&t&&s.s9C("matTooltip",s.lcZ(1,1,"PUBLICATION_DETAIL.LIST.EDIT"))}function $M(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"PUBLICATION_DETAIL.LIST.EMPTY_ERROR")," "))}function WM(t,e){if(1&t&&(s.TgZ(0,"mat-form-field",18),s._UZ(1,"textarea",19),s.YNc(2,$M,3,3,"mat-error",1),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("formControl",t.titleControl),s.xp6(1),s.Q6J("ngIf",t.titleControl.invalid)}}function JM(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",20),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).save()}),s.ALo(1,"translate"),s.TgZ(2,"mat-icon",17),s._uU(3,"save"),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(2);s.s9C("matTooltip",s.lcZ(1,2,"PUBLICATION_DETAIL.LIST.SAVE")),s.Q6J("disabled",t.titleControl.invalid)}}function QM(t,e){1&t&&s._UZ(0,"th",21)}function XM(t,e){if(1&t&&(s.TgZ(0,"td",22),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij("",t.key,":")}}function tE(t,e){1&t&&s._UZ(0,"th",21)}function eE(t,e){if(1&t&&(s.TgZ(0,"span"),s._uU(1),s.TgZ(2,"span",24),s._uU(3),s.ALo(4,"translate"),s.qZA(),s._uU(5),s.TgZ(6,"span",24),s._uU(7),s.ALo(8,"translate"),s.qZA(),s._uU(9),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw(2);s.xp6(1),s.hij(" ",t.value," / "),s.xp6(2),s.hij("",s.lcZ(4,5,"PUBLICATION_DETAIL.LIST.EXT_ID"),":"),s.xp6(2),s.hij(" ",e.publication.externalId," "),s.xp6(2),s.hij("",s.lcZ(8,7,"PUBLICATION_DETAIL.LIST.SYSTEM"),":"),s.xp6(2),s.hij(" ",e.publication.pubSystemName," ")}}function iE(t,e){if(1&t&&(s.TgZ(0,"span"),s._uU(1),s.ALo(2,"date"),s.qZA()),2&t){const t=s.oxw().$implicit;s.xp6(1),s.hij(" ",s.xi3(2,1,t.value,"dd/MM/yyyy")," ")}}function nE(t,e){if(1&t&&(s.TgZ(0,"span"),s._uU(1),s.qZA()),2&t){const t=s.oxw().$implicit;s.xp6(1),s.hij(" ",t.value," ")}}function sE(t,e){if(1&t&&(s.TgZ(0,"span"),s._uU(1),s.qZA()),2&t){const t=s.oxw(3).$implicit;s.xp6(1),s.hij(" ",t.value," ")}}function oE(t,e){if(1&t&&(s.TgZ(0,"span"),s.YNc(1,sE,2,1,"span",1),s.qZA()),2&t){const t=s.oxw(2).$implicit;s.xp6(1),s.Q6J("ngIf","Id / Origin"!==t.key&&"Create date"!==t.key&&"Created by"!==t.key)}}function rE(t,e){1&t&&(s.TgZ(0,"span"),s._uU(1," - "),s.qZA())}function aE(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,oE,2,1,"span",1),s.YNc(2,rE,2,0,"span",1),s.qZA()),2&t){const t=s.oxw().$implicit;s.xp6(1),s.Q6J("ngIf",null!==t.value&&""!==t.value),s.xp6(1),s.Q6J("ngIf",null===t.value||""===t.value)}}function cE(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-form-field",26),s.NdJ("click",function(){return s.CHM(t),s.MAs(7).open()}),s.TgZ(1,"mat-label"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s._UZ(4,"input",27),s._UZ(5,"mat-datepicker-toggle",28),s.TgZ(6,"mat-datepicker",29,30),s.NdJ("yearSelected",function(e){s.CHM(t);const i=s.MAs(7);return s.oxw(4).chosenYearHandler(e,i)}),s.qZA(),s.qZA()}if(2&t){const t=s.MAs(7),e=s.oxw(4);s.xp6(2),s.Oqu(s.lcZ(3,5,"PUBLICATION_DETAIL.LIST.YEAR")),s.xp6(2),s.Q6J("max",e.maxYear)("matDatepicker",t)("formControl",e.yearControl),s.xp6(1),s.Q6J("for",t)}}function uE(t,e){if(1&t&&(s.TgZ(0,"mat-option",33),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t.name),s.xp6(1),s.hij(" ",t.name," ")}}function lE(t,e){if(1&t&&(s.TgZ(0,"mat-form-field"),s.TgZ(1,"mat-select",31),s.YNc(2,uE,2,2,"mat-option",32),s.qZA(),s.qZA()),2&t){const t=s.oxw(4);s.xp6(1),s.Q6J("formControl",t.categoryControl),s.xp6(1),s.Q6J("ngForOf",t.categories)}}function hE(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"PUBLICATION_DETAIL.LIST.RANK_ERROR")," "))}function dE(t,e){if(1&t&&(s.TgZ(0,"mat-form-field"),s._UZ(1,"input",34),s.YNc(2,hE,3,3,"mat-error",1),s.qZA()),2&t){const t=s.oxw(4);s.xp6(1),s.Q6J("formControl",t.rankControl),s.xp6(1),s.Q6J("ngIf",t.rankControl.invalid)}}function pE(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-form-field",18),s.TgZ(1,"input",35),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(4).publication.isbn=e}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(4);s.xp6(1),s.Q6J("ngModel",t.publication.isbn)}}function fE(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-form-field",18),s.TgZ(1,"input",35),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(4).publication.doi=e}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(4);s.xp6(1),s.Q6J("ngModel",t.publication.doi)}}function gE(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-form-field",18),s.TgZ(1,"textarea",36),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(4).publication.main=e}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(4);s.xp6(1),s.Q6J("ngModel",t.publication.main)}}function mE(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,cE,8,7,"mat-form-field",25),s.YNc(2,lE,3,2,"mat-form-field",1),s.YNc(3,dE,3,2,"mat-form-field",1),s.YNc(4,pE,2,1,"mat-form-field",6),s.YNc(5,fE,2,1,"mat-form-field",6),s.YNc(6,gE,2,1,"mat-form-field",6),s.qZA()),2&t){const t=s.oxw().$implicit;s.xp6(1),s.Q6J("ngIf","Year"===t.key),s.xp6(1),s.Q6J("ngIf","Category"===t.key),s.xp6(1),s.Q6J("ngIf","Rank"===t.key),s.xp6(1),s.Q6J("ngIf","ISBN / ISSN"===t.key),s.xp6(1),s.Q6J("ngIf","DOI"===t.key),s.xp6(1),s.Q6J("ngIf","Full cite"===t.key)}}function _E(t,e){if(1&t&&(s.TgZ(0,"td",23),s.YNc(1,eE,10,9,"span",1),s.YNc(2,iE,3,4,"span",1),s.YNc(3,nE,2,1,"span",1),s.YNc(4,aE,3,2,"div",1),s.YNc(5,mE,7,6,"div",1),s.qZA()),2&t){const t=e.$implicit,i=s.oxw(2);s.xp6(1),s.Q6J("ngIf","Id / Origin"===t.key),s.xp6(1),s.Q6J("ngIf","Create date"===t.key),s.xp6(1),s.Q6J("ngIf","Created by"===t.key),s.xp6(1),s.Q6J("ngIf",!i.editing),s.xp6(1),s.Q6J("ngIf",i.editing)}}function wE(t,e){1&t&&s._UZ(0,"tr",37)}function yE(t,e){if(1&t&&(s.TgZ(0,"div"),s.TgZ(1,"div",3),s.YNc(2,GM,2,1,"h3",4),s.YNc(3,VM,4,3,"button",5),s.YNc(4,WM,3,2,"mat-form-field",6),s.YNc(5,JM,4,4,"button",7),s.qZA(),s.TgZ(6,"table",8),s.ynx(7,9),s.YNc(8,QM,1,0,"th",10),s.YNc(9,XM,2,1,"td",11),s.BQk(),s.ynx(10,12),s.YNc(11,tE,1,0,"th",10),s.YNc(12,_E,6,5,"td",13),s.BQk(),s.YNc(13,wE,1,0,"tr",14),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.Q6J("ngIf",!t.editing),s.xp6(1),s.Q6J("ngIf",!t.editing&&!t.publication.locked),s.xp6(1),s.Q6J("ngIf",t.editing),s.xp6(1),s.Q6J("ngIf",t.editing),s.xp6(1),s.Q6J("dataSource",t.dataSource),s.xp6(7),s.Q6J("matRowDefColumns",t.displayedColumns)}}const bE=UT,AE={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let vE=(()=>{class t{constructor(t,e,i){this.cabinetService=t,this.notificator=e,this.translate=i,this.categories=[],this.edited=new s.vpe,this.loading=!1,this.dataSource=null,this.displayedColumns=["key","value"],this.isChanging=new bo(!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 t=0;tt.name===this.categoryControl.value).id,e={id:this.publication.id,externalId:this.publication.externalId,publicationSystemId:this.publication.publicationSystemId,title:this.titleControl.value,year:this.yearControl.value.year(),main:this.publication.main,isbn:this.publication.isbn,doi:this.publication.doi,categoryId:t,rank:this.rankControl.value,locked:this.publication.locked,createdBy:this.publication.createdBy,createdDate:this.publication.createdDate};this.cabinetService.updatePublication({publication:e}).subscribe(()=>{this.translate.get("PUBLICATION_DETAIL.CHANGE_PUBLICATION_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.edited.emit(!0),this.loading=!1})},()=>this.loading=!1)}chosenYearHandler(t,e){const i=this.yearControl.value;i.year(t.year()),this.yearControl.setValue(i),e.close()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(V),s.Y36(Am),s.Y36(Gh))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-publication-detail-list"]],inputs:{publication:"publication",categories:"categories"},outputs:{edited:"edited"},features:[s._Bn([{provide:Al,useClass:$T,deps:[bl]},{provide:vl,useValue:AE}])],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(t,e){1&t&&(s.TgZ(0,"div"),s.YNc(1,ZM,1,0,"mat-spinner",0),s.YNc(2,yE,14,6,"div",1),s.qZA()),2&t&&(s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[n.O5,Ym,N_,U_,q_,K_,$_,id,Vf,Vg,Bd,Vm,Zd,_p,tf,kd,Z_,G_,Ld,Fv,Kv,zd,Ov,Df,n.sg,nh,$p,J_],pipes:[Vh,n.uU],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}"]}),t})();function kE(t,e){1&t&&s._UZ(0,"mat-spinner",3)}function TE(t,e){1&t&&(s.TgZ(0,"h1",11),s.TgZ(1,"span"),s.TgZ(2,"mat-icon",12),s._uU(3,"assignment_ind"),s.qZA(),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(4),s.hij(" ",s.lcZ(5,1,"AUTHORS_PAGE.TITLE")," "))}function CE(t,e){1&t&&(s.TgZ(0,"h1",11),s._UZ(1,"mat-icon",13),s.TgZ(2,"span",14),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(3),s.Oqu(s.lcZ(4,1,"ALL_PUBLICATIONS.TITLE")))}function SE(t,e){1&t&&(s.TgZ(0,"h1",11),s.TgZ(1,"span"),s.TgZ(2,"mat-icon",12),s._uU(3,"local_library"),s.qZA(),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(4),s.hij(" ",s.lcZ(5,1,"MY_PUBLICATIONS.TITLE")," "))}function ME(t,e){if(1&t&&(s.TgZ(0,"h5",15),s._uU(1),s.ALo(2,"userFullName"),s.ALo(3,"translate"),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.AsE(" ",s.lcZ(2,2,t.mainAuthor),"",s.lcZ(3,4,"AUTHOR_DETAIL.TITLE")," ")}}function EE(t,e){1&t&&(s.TgZ(0,"span",16),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"PUBLICATION_DETAIL.LOCKED")," "))}function LE(t,e){1&t&&(s.TgZ(0,"mat-icon"),s._uU(1," lock "),s.qZA())}function xE(t,e){1&t&&(s.TgZ(0,"span",16),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"PUBLICATION_DETAIL.UNLOCKED")," "))}function RE(t,e){1&t&&(s.TgZ(0,"mat-icon"),s._uU(1," lock_open "),s.qZA())}function DE(t,e){1&t&&s._UZ(0,"mat-spinner",3)}function zE(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-publication-detail-list",17),s.NdJ("edited",function(){return s.CHM(t),s.oxw(2).refreshPublication()}),s.qZA()}if(2&t){const t=s.oxw(2);s.Q6J("publication",t.publication)("categories",t.categories)}}function PE(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.YNc(1,TE,6,3,"h1",4),s.YNc(2,CE,5,3,"h1",4),s.YNc(3,SE,6,3,"h1",4),s.YNc(4,ME,4,6,"h5",5),s.TgZ(5,"h5"),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.TgZ(8,"h6"),s._uU(9),s.ALo(10,"translate"),s.TgZ(11,"button",6),s.NdJ("click",function(){return s.CHM(t),s.oxw().changeLock()}),s.YNc(12,EE,3,3,"span",7),s.YNc(13,LE,2,0,"mat-icon",2),s.YNc(14,xE,3,3,"span",7),s.YNc(15,RE,2,0,"mat-icon",2),s.qZA(),s.qZA(),s.TgZ(16,"mat-card"),s.TgZ(17,"mat-card-content"),s.YNc(18,DE,1,0,"mat-spinner",1),s.YNc(19,zE,1,2,"perun-web-apps-publication-detail-list",8),s.qZA(),s.qZA(),s.TgZ(20,"mat-card",9),s.TgZ(21,"mat-card-title"),s._uU(22),s.ALo(23,"translate"),s.qZA(),s.TgZ(24,"mat-card-content"),s._UZ(25,"perun-web-apps-add-authors",10),s.qZA(),s.qZA(),s.TgZ(26,"mat-card",9),s.TgZ(27,"mat-card-title"),s._uU(28),s.ALo(29,"translate"),s.qZA(),s.TgZ(30,"mat-card-content"),s._UZ(31,"perun-web-apps-add-thanks",10),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngIf","authors"===t.mode),s.xp6(1),s.Q6J("ngIf","all"===t.mode),s.xp6(1),s.Q6J("ngIf","my"===t.mode),s.xp6(1),s.Q6J("ngIf",void 0!==t.mainAuthor),s.xp6(2),s.Oqu(s.lcZ(7,18,"PUBLICATION_DETAIL.TITLE")),s.xp6(3),s.hij(" ",s.lcZ(10,20,"PUBLICATION_DETAIL.LOCK_INFO")," "),s.xp6(3),s.Q6J("ngIf",t.publication.locked),s.xp6(1),s.Q6J("ngIf",t.publication.locked),s.xp6(1),s.Q6J("ngIf",!t.publication.locked),s.xp6(1),s.Q6J("ngIf",!t.publication.locked),s.xp6(3),s.Q6J("ngIf",t.loading||t.pubLoading),s.xp6(1),s.Q6J("ngIf",!t.pubLoading&&!t.loading),s.xp6(3),s.hij(" ",s.lcZ(23,22,"PUBLICATION_DETAIL.AUTHORS")," "),s.xp6(3),s.Q6J("publication",t.publication)("selection",t.selectionAuthors),s.xp6(3),s.hij(" ",s.lcZ(29,24,"PUBLICATION_DETAIL.ACKNOWLEDGEMENT")," "),s.xp6(3),s.Q6J("publication",t.publication)("selection",t.selectionThanks)}}let IE=(()=>{class t{constructor(t,e,i,n,s,o,r){this.route=t,this.cabinetService=e,this.matIconRegistry=i,this.domSanitizer=n,this.dialog=s,this.notificator=o,this.translate=r,this.loading=!1,this.pubLoading=!1,this.initLoading=!1,this.selectionAuthors=new bo(!0,[]),this.selectionThanks=new bo(!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(t=>{this.publicationId=t.publicationId,this.mainAuthorId=parseInt(t.authorId,10),this.setMode(),this.loadAllData()})}setMode(){const t=location.pathname;this.mode=t.includes("my")?"my":t.includes("all")?"all":t.includes("import")?"import":t.includes("create")?"create":"authors"}loadAllData(){this.loading=!0,this.cabinetService.findPublicationById(this.publicationId).subscribe(t=>{this.publication=t,this.cabinetService.getCategories().subscribe(t=>{this.categories=t,this.loading=!1,this.initLoading=!1})})}refreshPublication(){this.pubLoading=!0,this.cabinetService.findPublicationById(this.publicationId).subscribe(t=>{this.publication=t,this.pubLoading=!1})}changeLock(){this.pubLoading=!0,this.cabinetService.lockPublications({publications:[{id:this.publication.id,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 t.\u0275fac=function(e){return new(e||t)(s.Y36(hi),s.Y36(V),s.Y36(Bg),s.Y36(z),s.Y36(yh),s.Y36(Am),s.Y36(Gh))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.YNc(1,kE,1,0,"mat-spinner",1),s.YNc(2,PE,32,26,"div",2),s.qZA()),2&t&&(s.xp6(1),s.Q6J("ngIf",e.initLoading),s.xp6(1),s.Q6J("ngIf",!e.initLoading))},directives:[n.O5,Ym,id,ab,ob,rb,rM,UM,Vg,vE],pipes:[Vh,dT],styles:[".icon-size[_ngcontent-%COMP%]{width:32px;height:32px}.align-icon[_ngcontent-%COMP%]{vertical-align:text-top}"]}),t})(),OE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,nd,$g,Vn,eT,$h,jd,lf,$m,rk]]}),t})(),HE=(()=>{class t{constructor(t){this.auth=t}startAuth(){this.auth.startAuthentication()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Sh))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.TgZ(3,"h4",3),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"button",4),s.NdJ("click",function(){return e.startAuth()}),s._uU(7),s.ALo(8,"translate"),s.TgZ(9,"mat-icon"),s._uU(10," login "),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(4),s.hij(" ",s.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),s.xp6(3),s.hij(" ",s.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},directives:[id,Vg],pipes:[Vh],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),t})();function YE(t,e){1&t&&(s.TgZ(0,"app-alert",8),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}let BE=(()=>{class t{constructor(t,e,i){this.authzService=t,this.dialog=e,this.translate=i,this.wrongUsernameOrPassword=!1}ngOnInit(){this.usernameCtrl=new Fp(null,[Qd.required]),this.passwordCtrl=new Fp(null,[Qd.required])}startAuth(){sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe(t=>{sessionStorage.setItem("baPrincipal",JSON.stringify(t)),location.reload()},()=>{this.wrongUsernameOrPassword=!0})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(G),s.Y36(yh),s.Y36(Gh))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.TgZ(3,"h2"),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.YNc(6,YE,3,3,"app-alert",3),s.TgZ(7,"mat-form-field",4),s.TgZ(8,"mat-label"),s._uU(9),s.ALo(10,"translate"),s.qZA(),s._UZ(11,"input",5),s.TgZ(12,"mat-error"),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.qZA(),s.TgZ(15,"mat-form-field",4),s.TgZ(16,"mat-label"),s._uU(17),s.ALo(18,"translate"),s.qZA(),s._UZ(19,"input",6),s.TgZ(20,"mat-error"),s._uU(21),s.ALo(22,"translate"),s.qZA(),s.qZA(),s.TgZ(23,"button",7),s.NdJ("click",function(){return e.startAuth()}),s._uU(24),s.ALo(25,"translate"),s.TgZ(26,"mat-icon"),s._uU(27," login "),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(4),s.Oqu(s.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),s.xp6(2),s.Q6J("ngIf",e.wrongUsernameOrPassword),s.xp6(3),s.Oqu(s.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),s.xp6(2),s.Q6J("formControl",e.usernameCtrl),s.xp6(2),s.hij(" ",s.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),s.xp6(4),s.Oqu(s.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),s.xp6(2),s.Q6J("formControl",e.passwordCtrl)("type","password"),s.xp6(2),s.hij(" ",s.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),s.xp6(2),s.Q6J("disabled",e.usernameCtrl.invalid||e.passwordCtrl.invalid),s.xp6(1),s.hij(" ",s.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},directives:[n.O5,Bd,Ld,Vm,Zd,af,_p,tf,kd,id,Vg,hT],pipes:[Vh],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}"]}),t})();function jE(t,e){1&t&&s.Hsn(0)}const FE=["*"];function NE(t,e){}const KE=function(t){return{animationDuration:t}},qE=function(t,e){return{value:t,params:e}},UE=["tabBodyWrapper"],ZE=["tabHeader"];function GE(t,e){}function VE(t,e){if(1&t&&s.YNc(0,GE,0,0,"ng-template",9),2&t){const t=s.oxw().$implicit;s.Q6J("cdkPortalOutlet",t.templateLabel)}}function $E(t,e){if(1&t&&s._uU(0),2&t){const t=s.oxw().$implicit;s.Oqu(t.textLabel)}}function WE(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",6),s.NdJ("click",function(){const e=s.CHM(t),i=e.$implicit,n=e.index,o=s.oxw(),r=s.MAs(1);return o._handleClick(i,r,n)})("cdkFocusChange",function(e){const i=s.CHM(t).index;return s.oxw()._tabFocusChanged(e,i)}),s.TgZ(1,"div",7),s.YNc(2,VE,1,1,"ng-template",8),s.YNc(3,$E,1,1,"ng-template",8),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=s.oxw();s.ekj("mat-tab-label-active",n.selectedIndex==i),s.Q6J("id",n._getTabLabelId(i))("disabled",t.disabled)("matRippleDisabled",t.disabled||n.disableRipple),s.uIk("tabIndex",n._getTabIndex(t,i))("aria-posinset",i+1)("aria-setsize",n._tabs.length)("aria-controls",n._getTabContentId(i))("aria-selected",n.selectedIndex==i)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),s.xp6(2),s.Q6J("ngIf",t.templateLabel),s.xp6(1),s.Q6J("ngIf",!t.templateLabel)}}function JE(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-tab-body",10),s.NdJ("_onCentered",function(){return s.CHM(t),s.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(e){return s.CHM(t),s.oxw()._setTabBodyWrapperHeight(e)}),s.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=s.oxw();s.ekj("mat-tab-body-active",n.selectedIndex==i),s.Q6J("id",n._getTabContentId(i))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",n.animationDuration),s.uIk("aria-labelledby",n._getTabLabelId(i))}}const QE=["tabListContainer"],XE=["tabList"],tL=["nextPaginator"],eL=["previousPaginator"],iL=new s.OlP("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let nL=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=i,this._animationMode=n}alignToElement(t){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(t))}):this._setStyles(t)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(t){const e=this._inkBarPositioner(t),i=this._elementRef.nativeElement;i.style.left=e.left,i.style.width=e.width}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(iL),s.Y36(el,8))},t.\u0275dir=s.lG2({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t})();const sL=new s.OlP("MatTabContent");let oL=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","matTabContent",""]],features:[s._Bn([{provide:sL,useExisting:t}])]}),t})();const rL=new s.OlP("MatTabLabel");let aL=(()=>{class t extends Po{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[s._Bn([{provide:rL,useExisting:t}]),s.qOj]}),t})();class cL{}const uL=fl(cL),lL=new s.OlP("MAT_TAB_GROUP");let hL=(()=>{class t extends uL{constructor(t,e){super(),this._viewContainerRef=t,this._closestTabGroup=e,this.textLabel="",this._contentPortal=null,this._stateChanges=new At.xQ,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}get content(){return this._contentPortal}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new xo(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&(this._templateLabel=t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(lL,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,rL,5),s.Suo(i,sL,7,s.Rgc)),2&t){let t;s.iGM(t=s.CRH())&&(e.templateLabel=t.first),s.iGM(t=s.CRH())&&(e._explicitContent=t.first)}},viewQuery:function(t,e){if(1&t&&s.Gf(s.Rgc,7),2&t){let t;s.iGM(t=s.CRH())&&(e._implicitContent=t.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[s.qOj,s.TTD],ngContentSelectors:FE,decls:1,vars:0,template:function(t,e){1&t&&(s.F$t(),s.YNc(0,jE,1,0,"ng-template"))},encapsulation:2}),t})();const dL={translateTab:_a("translateTab",[va("center, void, left-origin-center, right-origin-center",Aa({transform:"none"})),va("left",Aa({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),va("right",Aa({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),Ta("* => left, * => right, left => center, right => center",wa("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Ta("void => left-origin-center",[Aa({transform:"translate3d(-100%, 0, 0)"}),wa("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Ta("void => right-origin-center",[Aa({transform:"translate3d(100%, 0, 0)"}),wa("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let pL=(()=>{class t extends Io{constructor(t,e,i,n){super(t,e,n),this._host=i,this._centeringSub=te.w.EMPTY,this._leavingSub=te.w.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Ot(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s._Vd),s.Y36(s.s_b),s.Y36((0,s.Gpc)(()=>gL)),s.Y36(n.K0))},t.\u0275dir=s.lG2({type:t,selectors:[["","matTabBodyHost",""]],features:[s.qOj]}),t})(),fL=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._dir=e,this._dirChangeSubscription=te.w.EMPTY,this._translateTabComplete=new At.xQ,this._onCentering=new s.vpe,this._beforeCentering=new s.vpe,this._afterLeavingCenter=new s.vpe,this._onCentered=new s.vpe(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe(t=>{this._computePositionAnimationState(t),i.markForCheck()})),this._translateTabComplete.pipe(Es((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(t){this._positionIndex=t,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){const e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}_computePositionAnimationState(t=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}_computePositionFromOrigin(t){const e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(mo,8),s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),gL=(()=>{class t extends fL{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(mo,8),s.Y36(s.sBO))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){if(1&t&&s.Gf(Io,5),2&t){let t;s.iGM(t=s.CRH())&&(e._portalHost=t.first)}},hostAttrs:[1,"mat-tab-body"],features:[s.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(s.TgZ(0,"div",0,1),s.NdJ("@translateTab.start",function(t){return e._onTranslateTabStarted(t)})("@translateTab.done",function(t){return e._translateTabComplete.next(t)}),s.YNc(2,NE,0,0,"ng-template",2),s.qZA()),2&t&&s.Q6J("@translateTab",s.WLB(3,qE,e._position,s.VKq(1,KE,e.animationDuration)))},directives:[pL],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[dL.translateTab]}}),t})();const mL=new s.OlP("MAT_TABS_CONFIG");let _L=0;class wL{}class yL{constructor(t){this._elementRef=t}}const bL=gl(ml(yL),"primary");let AL=(()=>{class t extends bL{constructor(t,e,i,n){super(t),this._changeDetectorRef=e,this._animationMode=n,this._tabs=new s.n_E,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=te.w.EMPTY,this._tabLabelSubscription=te.w.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new s.vpe,this.focusChange=new s.vpe,this.animationDone=new s.vpe,this.selectedTabChange=new s.vpe(!0),this._groupId=_L++,this.animationDuration=i&&i.animationDuration?i.animationDuration:"500ms",this.disablePagination=!(!i||null==i.disablePagination)&&i.disablePagination,this.dynamicHeight=!(!i||null==i.dynamicHeight)&&i.dynamicHeight}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(t){this._dynamicHeight=ss(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=os(t,null)}get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement;e.classList.remove(`mat-background-${this.backgroundColor}`),t&&e.classList.add(`mat-background-${t}`),this._backgroundColor=t}ngAfterContentChecked(){const t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){const e=null==this._selectedIndex;if(!e){this.selectedTabChange.emit(this._createChangeEvent(t));const e=this._tabBodyWrapper.nativeElement;e.style.minHeight=e.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((e,i)=>e.isActive=i===t),e||(this.selectedIndexChange.emit(t),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((e,i)=>{e.position=i-t,null==this._selectedIndex||0!=e.position||e.origin||(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let e=0;e{this._tabs.reset(t.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()}focusTab(t){const e=this._tabHeader;e&&(e.focusIndex=t)}_focusChanged(t){this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){const e=new wL;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,Ho.T)(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){const t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,e,i){t.disabled||(this.selectedIndex=e.focusIndex=i)}_getTabIndex(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}_tabFocusChanged(t,e){t&&(this._tabHeader.focusIndex=e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(mL,8),s.Y36(el,8))},t.\u0275dir=s.lG2({type:t,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[s.qOj]}),t})(),vL=(()=>{class t extends AL{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(mL,8),s.Y36(el,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-tab-group"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,hL,5),2&t){let t;s.iGM(t=s.CRH())&&(e._allTabs=t)}},viewQuery:function(t,e){if(1&t&&(s.Gf(UE,5),s.Gf(ZE,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._tabBodyWrapper=t.first),s.iGM(t=s.CRH())&&(e._tabHeader=t.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&s.ekj("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[s._Bn([{provide:lL,useExisting:t}]),s.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","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(s.TgZ(0,"mat-tab-header",0,1),s.NdJ("indexFocused",function(t){return e._focusChanged(t)})("selectFocusedIndex",function(t){return e.selectedIndex=t}),s.YNc(2,WE,4,14,"div",2),s.qZA(),s.TgZ(3,"div",3,4),s.YNc(5,JE,1,8,"mat-tab-body",5),s.qZA()),2&t&&(s.Q6J("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),s.xp6(2),s.Q6J("ngForOf",e._tabs),s.xp6(1),s.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode),s.xp6(2),s.Q6J("ngForOf",e._tabs))},directives:function(){return[LL,n.sg,CL,ql,ca,n.O5,Io,gL]},styles:[".mat-tab-group{display:flex;flex-direction:column}.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}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.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-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;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}\n"],encapsulation:2}),t})();class kL{}const TL=fl(kL);let CL=(()=>{class t extends TL{constructor(t){super(),this.elementRef=t}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(s.uIk("aria-disabled",!!e.disabled),s.ekj("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[s.qOj]}),t})();const SL=uo({passive:!0});let ML=(()=>{class t{constructor(t,e,i,n,o,r,a){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=i,this._dir=n,this._ngZone=o,this._platform=r,this._animationMode=a,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new At.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new At.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new s.vpe,this.indexFocused=new s.vpe,o.runOutsideAngular(()=>{ds(t.nativeElement,"mouseleave").pipe(js(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=os(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}ngAfterViewInit(){ds(this._previousPaginator.nativeElement,"touchstart",SL).pipe(js(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),ds(this._nextPaginator.nativeElement,"touchstart",SL).pipe(js(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:(0,bt.of)("ltr"),e=this._viewportRuler.change(150),i=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Ur(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),(0,Ho.T)(t,e,this._items.changes).pipe(js(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(i)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(js(this._destroyed)).subscribe(t=>{this.indexFocused.emit(t),this._setTabFocus(t)})}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(t){if(!Go(t))switch(t.keyCode){case jo:case No:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){const t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",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(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}_isValidIndex(t){if(!this._items)return!0;const e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();const e=this._tabListContainer.nativeElement,i=this._getLayoutDirection();e.scrollLeft="ltr"==i?0:e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(e)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;const e=this._items?this._items.toArray()[t]:null;if(!e)return;const i=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:n,offsetWidth:s}=e.elementRef.nativeElement;let o,r;"ltr"==this._getLayoutDirection()?(o=n,r=o+s):(r=this._tabList.nativeElement.offsetWidth-n,o=r-s);const a=this.scrollDistance,c=this.scrollDistance+i;oc&&(this.scrollDistance+=r-c+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}_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._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&null!=e.button&&0!==e.button||(this._stopInterval(),Hs(650,100).pipe(js((0,Ho.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:e,distance:i}=this._scrollHeader(t);(0===i||i>=e)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(Co),s.Y36(mo,8),s.Y36(s.R0b),s.Y36(eo),s.Y36(el,8))},t.\u0275dir=s.lG2({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),EL=(()=>{class t extends ML{constructor(t,e,i,n,s,o,r){super(t,e,i,n,s,o,r),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=ss(t)}_itemSelected(t){t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(Co),s.Y36(mo,8),s.Y36(s.R0b),s.Y36(eo),s.Y36(el,8))},t.\u0275dir=s.lG2({type:t,inputs:{disableRipple:"disableRipple"},features:[s.qOj]}),t})(),LL=(()=>{class t extends EL{constructor(t,e,i,n,s,o,r){super(t,e,i,n,s,o,r)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(Co),s.Y36(mo,8),s.Y36(s.R0b),s.Y36(eo),s.Y36(el,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,CL,4),2&t){let t;s.iGM(t=s.CRH())&&(e._items=t)}},viewQuery:function(t,e){if(1&t&&(s.Gf(nL,7),s.Gf(QE,7),s.Gf(XE,7),s.Gf(tL,5),s.Gf(eL,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._inkBar=t.first),s.iGM(t=s.CRH())&&(e._tabListContainer=t.first),s.iGM(t=s.CRH())&&(e._tabList=t.first),s.iGM(t=s.CRH())&&(e._nextPaginator=t.first),s.iGM(t=s.CRH())&&(e._previousPaginator=t.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&s.ekj("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[s.qOj],ngContentSelectors:FE,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","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"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0,1),s.NdJ("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),s._UZ(2,"div",2),s.qZA(),s.TgZ(3,"div",3,4),s.NdJ("keydown",function(t){return e._handleKeydown(t)}),s.TgZ(5,"div",5,6),s.NdJ("cdkObserveContent",function(){return e._onContentChanges()}),s.TgZ(7,"div",7),s.Hsn(8),s.qZA(),s._UZ(9,"mat-ink-bar"),s.qZA(),s.qZA(),s.TgZ(10,"div",8,9),s.NdJ("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),s._UZ(12,"div",2),s.qZA()),2&t&&(s.ekj("mat-tab-header-pagination-disabled",e._disableScrollBefore),s.Q6J("matRippleDisabled",e._disableScrollBefore||e.disableRipple),s.xp6(5),s.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode),s.xp6(5),s.ekj("mat-tab-header-pagination-disabled",e._disableScrollAfter),s.Q6J("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[ql,Dr,nL],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-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:transparent;touch-action:none}.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;content:"";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-animation-noopable.mat-ink-bar{transition:none;animation:none}.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-animation-noopable.mat-tab-list{transition:none;animation:none}.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}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.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{min-width:72px}}\n'],encapsulation:2}),t})(),xL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,pl,Oo,Ul,zr,pa],pl]}),t})();function RL(t,e){1&t&&s._UZ(0,"mat-spinner",5)}function DL(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.Oqu(s.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.PUBLICATION"))}function zL(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function PL(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function IL(t,e){if(1&t&&(s.TgZ(0,"mat-option",36),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.hij(" ",t.name," ")}}function OL(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function HL(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function YL(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.hij(" ",s.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.CHECK")," ")}function BL(t,e){1&t&&(s.TgZ(0,"div",28),s._UZ(1,"mat-spinner",5),s.TgZ(2,"h5",37),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(3),s.hij(" ",s.lcZ(4,1,"CREATE_SINGLE_PUBLICATION.CHECK_PERFORM")," "))}function jL(t,e){1&t&&(s.TgZ(0,"app-alert",38),s.TgZ(1,"div",28),s.TgZ(2,"span",39),s._uU(3),s.ALo(4,"translate"),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"span",40),s.TgZ(7,"mat-icon",41),s._uU(8,"fiber_manual_record"),s.qZA(),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.TgZ(11,"span",42),s.TgZ(12,"mat-icon",41),s._uU(13,"fiber_manual_record"),s.qZA(),s._uU(14),s.ALo(15,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(3),s.AsE(" ",s.lcZ(4,4,"CREATE_SINGLE_PUBLICATION.SIMILAR_FOUND"),". ",s.lcZ(5,6,"CREATE_SINGLE_PUBLICATION.CHECK_BELOW"),". "),s.xp6(6),s.hij(" ",s.lcZ(10,8,"CREATE_SINGLE_PUBLICATION.IS_BELOW")," "),s.xp6(5),s.hij(" ",s.lcZ(15,10,"CREATE_SINGLE_PUBLICATION.NOT_BELOW")," "))}function FL(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.Oqu(s.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.CHECK"))}function NL(t,e){1&t&&s._UZ(0,"mat-spinner",5)}const KL=function(){return["id","lock","title","reportedBy","year","category","thankedTo","cite"]};function qL(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-publications-list",48),s.NdJ("publicationSelector",function(e){s.CHM(t),s.oxw(2);const i=s.MAs(1);return s.oxw(2).loadPublicationDetail(e,i)}),s.qZA()}if(2&t){const t=s.oxw(4);s.Q6J("displayedColumns",s.DdM(4,KL))("disabledRouting",!0)("openInTab",!0)("publications",t.filteredPublications)}}function UL(t,e){if(1&t&&(s.TgZ(0,"div",46),s.YNc(1,NL,1,0,"mat-spinner",3),s.YNc(2,qL,1,5,"perun-web-apps-publications-list",47),s.qZA()),2&t){const t=s.oxw(3);s.xp6(1),s.Q6J("ngIf",t.innerLoading),s.xp6(1),s.Q6J("ngIf",!t.innerLoading)}}function ZL(t,e){if(1&t&&s._uU(0),2&t){const t=s.oxw(4);s.Oqu(t.selectedPubTitle)}}function GL(t,e){if(1&t&&(s.TgZ(0,"div",49),s._UZ(1,"perun-web-apps-publication-detail",50),s.qZA()),2&t){const t=s.oxw(4);s.xp6(1),s.Q6J("publicationId",t.selectedPubId)}}function VL(t,e){1&t&&(s.TgZ(0,"mat-tab"),s.YNc(1,ZL,1,1,"ng-template",44),s.YNc(2,GL,2,1,"ng-template",45),s.qZA())}function $L(t,e){if(1&t&&(s.TgZ(0,"mat-tab-group",null,43),s.TgZ(2,"mat-tab"),s.YNc(3,FL,2,3,"ng-template",44),s.YNc(4,UL,3,2,"ng-template",45),s.qZA(),s.YNc(5,VL,3,0,"mat-tab",14),s.qZA()),2&t){const t=s.oxw(2);s.xp6(5),s.Q6J("ngIf",null!==t.selectedPubId)}}function WL(t,e){1&t&&(s.TgZ(0,"div",28),s.TgZ(1,"mat-icon",51),s._uU(2,"check_circle"),s.qZA(),s.TgZ(3,"h5",52),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(4),s.hij(" ",s.lcZ(5,1,"CREATE_SINGLE_PUBLICATION.NO_SIMILAR")," "))}function JL(t,e){1&t&&(s.TgZ(0,"button",34),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.PREV")," "))}function QL(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",57),s.NdJ("click",function(){return s.CHM(t),s.oxw(3).redirect(["create-publication"])}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.RETURN")," "))}function XL(t,e){if(1&t&&(s.TgZ(0,"div",53),s.YNc(1,JL,3,3,"button",54),s.TgZ(2,"button",55),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.YNc(5,QL,3,3,"button",56),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("ngIf",!t.duplicateCheck),s.xp6(2),s.hij(" ",s.lcZ(4,3,"CREATE_SINGLE_PUBLICATION.CREATE")," "),s.xp6(2),s.Q6J("ngIf",!t.duplicateCheck)}}function tx(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.hij(" ",s.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.AUTHORS")," ")}function ex(t,e){1&t&&s._UZ(0,"mat-spinner",5)}function ix(t,e){if(1&t&&s._UZ(0,"perun-web-apps-add-authors",59),2&t){const t=s.oxw(3);s.Q6J("publication",t.publication)("selection",t.authorsSelection)}}function nx(t,e){if(1&t&&(s.TgZ(0,"div"),s.TgZ(1,"app-alert",58),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,ix,1,2,"perun-web-apps-add-authors",33),s.qZA()),2&t){const t=s.oxw(2);s.xp6(2),s.Oqu(s.lcZ(3,2,"CREATE_SINGLE_PUBLICATION.PUB_CREATED")),s.xp6(2),s.Q6J("ngIf",null!==t.publication)}}function sx(t,e){1&t&&(s.TgZ(0,"button",34),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.PREV")," "))}function ox(t,e){if(1&t&&(s.TgZ(0,"div",25),s.YNc(1,sx,3,3,"button",54),s.TgZ(2,"button",60),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("ngIf",!t.duplicateCheck),s.xp6(2),s.hij(" ",s.lcZ(4,2,"CREATE_SINGLE_PUBLICATION.NEXT")," ")}}function rx(t,e){1&t&&(s._uU(0),s.ALo(1,"translate")),2&t&&s.hij(" ",s.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.THANKS")," ")}function ax(t,e){if(1&t&&s._UZ(0,"perun-web-apps-add-thanks",59),2&t){const t=s.oxw(2);s.Q6J("publication",t.publication)("selection",t.thanksSelection)}}function cx(t,e){1&t&&s._UZ(0,"mat-spinner",5)}function ux(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-horizontal-stepper",6),s.NdJ("selectionChange",function(e){return s.CHM(t),s.oxw().stepChanged(e)}),s.TgZ(1,"mat-step",7),s.YNc(2,DL,2,3,"ng-template",8),s.TgZ(3,"form",9),s.TgZ(4,"h5",10),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"div",11),s.TgZ(8,"mat-checkbox",12),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.TgZ(11,"mat-form-field"),s._UZ(12,"input",13),s.ALo(13,"translate"),s.YNc(14,zL,3,3,"mat-error",14),s.qZA(),s.TgZ(15,"mat-form-field",15),s.NdJ("click",function(){return s.CHM(t),s.MAs(22).open()}),s.TgZ(16,"mat-label"),s._uU(17),s.ALo(18,"translate"),s.qZA(),s._UZ(19,"input",16),s._UZ(20,"mat-datepicker-toggle",17),s.TgZ(21,"mat-datepicker",18,19),s.NdJ("yearSelected",function(e){s.CHM(t);const i=s.MAs(22);return s.oxw().chosenYearHandler(e,i)}),s.qZA(),s.YNc(23,PL,3,3,"mat-error",14),s.qZA(),s.TgZ(24,"mat-form-field"),s.TgZ(25,"mat-select",20),s.ALo(26,"translate"),s.YNc(27,IL,2,2,"mat-option",21),s.qZA(),s.YNc(28,OL,3,3,"mat-error",14),s.qZA(),s.TgZ(29,"mat-form-field"),s._UZ(30,"input",22),s.ALo(31,"translate"),s.qZA(),s.TgZ(32,"mat-form-field"),s._UZ(33,"input",23),s.ALo(34,"translate"),s.qZA(),s.TgZ(35,"mat-form-field"),s.TgZ(36,"textarea",24),s.ALo(37,"translate"),s._uU(38," "),s.qZA(),s.YNc(39,HL,3,3,"mat-error",14),s.qZA(),s.qZA(),s.qZA(),s.TgZ(40,"div",25),s.TgZ(41,"button",26),s._uU(42),s.ALo(43,"translate"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(44,"mat-step",27),s.YNc(45,YL,2,3,"ng-template",8),s.TgZ(46,"form",28),s.TgZ(47,"h5",10),s._uU(48),s.ALo(49,"translate"),s.qZA(),s.YNc(50,BL,5,3,"div",29),s.YNc(51,jL,16,12,"app-alert",30),s.YNc(52,$L,6,1,"mat-tab-group",14),s.YNc(53,WL,6,3,"div",29),s.qZA(),s.YNc(54,XL,6,5,"div",31),s.qZA(),s.TgZ(55,"mat-step"),s.YNc(56,tx,2,3,"ng-template",8),s.TgZ(57,"h5",10),s._uU(58),s.ALo(59,"translate"),s.qZA(),s.YNc(60,ex,1,0,"mat-spinner",3),s.YNc(61,nx,5,4,"div",14),s.YNc(62,ox,5,4,"div",32),s.qZA(),s.TgZ(63,"mat-step"),s.YNc(64,rx,2,3,"ng-template",8),s.TgZ(65,"h5",10),s._uU(66),s.ALo(67,"translate"),s.qZA(),s.YNc(68,ax,1,2,"perun-web-apps-add-thanks",33),s.YNc(69,cx,1,0,"mat-spinner",3),s.TgZ(70,"div",25),s.TgZ(71,"button",34),s._uU(72),s.ALo(73,"translate"),s.qZA(),s.TgZ(74,"button",35),s.NdJ("click",function(){s.CHM(t);const e=s.oxw();return e.redirect(["all-publications",e.publication.id])}),s._uU(75),s.ALo(76,"translate"),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.MAs(22),e=s.oxw();s.xp6(1),s.Q6J("editable",!e.duplicateCheck)("stepControl",e.publicationControl),s.xp6(2),s.Q6J("formGroup",e.publicationControl),s.xp6(2),s.hij(" ",s.lcZ(6,37,"CREATE_SINGLE_PUBLICATION.PUB_INFO")," "),s.xp6(4),s.hij(" ",s.lcZ(10,39,"CREATE_SINGLE_PUBLICATION.ADD_MYSELF")," "),s.xp6(3),s.s9C("placeholder",s.lcZ(13,41,"CREATE_SINGLE_PUBLICATION.SET_TITLE")),s.xp6(2),s.Q6J("ngIf",e.publicationControl.hasError("required","title")),s.xp6(3),s.Oqu(s.lcZ(18,43,"CREATE_SINGLE_PUBLICATION.YEAR")),s.xp6(2),s.Q6J("max",e.maxYear)("matDatepicker",t),s.xp6(1),s.Q6J("for",t),s.xp6(3),s.Q6J("ngIf",e.publicationControl.hasError("required","year")),s.xp6(2),s.s9C("placeholder",s.lcZ(26,45,"CREATE_SINGLE_PUBLICATION.CATEGORY")),s.xp6(2),s.Q6J("ngForOf",e.categories),s.xp6(1),s.Q6J("ngIf",e.publicationControl.hasError("required","category")),s.xp6(2),s.s9C("placeholder",s.lcZ(31,47,"CREATE_SINGLE_PUBLICATION.ISBN")),s.xp6(3),s.s9C("placeholder",s.lcZ(34,49,"CREATE_SINGLE_PUBLICATION.DOI")),s.xp6(3),s.s9C("placeholder",s.lcZ(37,51,"CREATE_SINGLE_PUBLICATION.CITE")),s.xp6(3),s.Q6J("ngIf",e.publicationControl.hasError("required","cite")),s.xp6(2),s.Q6J("disabled",e.publicationControl.invalid),s.xp6(1),s.hij(" ",s.lcZ(43,53,"CREATE_SINGLE_PUBLICATION.NEXT")," "),s.xp6(2),s.Q6J("editable",!e.duplicateCheck),s.xp6(4),s.hij(" ",s.lcZ(49,55,"CREATE_SINGLE_PUBLICATION.SIMILARITY_CHECK")," "),s.xp6(2),s.Q6J("ngIf",e.innerLoading),s.xp6(1),s.Q6J("ngIf",!e.innerLoading&&!e.duplicateCheck),s.xp6(1),s.Q6J("ngIf",!e.innerLoading&&!e.duplicateCheck),s.xp6(1),s.Q6J("ngIf",!e.innerLoading&&e.duplicateCheck),s.xp6(1),s.Q6J("ngIf",!e.innerLoading),s.xp6(4),s.hij(" ",s.lcZ(59,57,"CREATE_SINGLE_PUBLICATION.ADD_AUTHORS")," "),s.xp6(2),s.Q6J("ngIf",e.innerLoading),s.xp6(1),s.Q6J("ngIf",!e.innerLoading),s.xp6(1),s.Q6J("ngIf",!e.innerLoading),s.xp6(4),s.hij(" ",s.lcZ(67,59,"CREATE_SINGLE_PUBLICATION.ADD_THANKS")," "),s.xp6(2),s.Q6J("ngIf",null!==e.publication),s.xp6(1),s.Q6J("ngIf",e.innerLoading),s.xp6(3),s.hij(" ",s.lcZ(73,61,"CREATE_SINGLE_PUBLICATION.PREV")," "),s.xp6(3),s.hij(" ",s.lcZ(76,63,"CREATE_SINGLE_PUBLICATION.FINISH")," ")}}const lx=UT,hx={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let dx=(()=>{class t{constructor(t,e,i,n,s,o,r,a){this.formBuilder=t,this.cabinetService=e,this.dialog=i,this.router=n,this.notificator=s,this.translate=o,this.storeService=r,this.userService=a,this.similarPublications=[],this.filteredPublications=[],this.categories=[],this.publication=null,this.authorsSelection=new bo(!0,[]),this.thanksSelection=new bo(!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:["",Qd.required],year:["",Qd.required],category:["",Qd.required],isbn:[""],doi:[""],cite:["",Qd.required]}),this.maxYear=lx(),this.cabinetService.getCategories().subscribe(t=>{this.categories=t,this.loading=!1})}chosenYearHandler(t,e){this.publicationControl.get("year").setValue(t),e.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 t={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(e=>{const i=e.userAttributes.filter(t=>"preferredMail"===t.friendlyName);0!==i.length&&(t.publication.createdBy=i[0].value),this.cabinetService.createPublication(t).subscribe(t=>{this.publication=t,this.publicationControl.get("addAuthor").value?this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:this.publication.id,userId:e.id}}).subscribe(()=>{this.createTimeout()},()=>this.innerLoading=!1):this.createTimeout()},()=>this.innerLoading=!1)},()=>this.innerLoading=!1)}similarCheck(){this.innerLoading=!0;const t=this.publicationControl.get("title").value?this.publicationControl.get("title").value:null,e=this.publicationControl.get("doi").value?this.publicationControl.get("doi").value:null,i=this.publicationControl.get("isbn").value?this.publicationControl.get("isbn").value:null;this.cabinetService.findSimilarPublications(t,e,i).subscribe(t=>{this.similarPublications=t,this.filteredPublications=t,setTimeout(()=>{this.duplicateCheck=0===t.length,this.innerLoading=!1},2e3)})}stepChanged(t){1===t.selectedIndex&&this.similarCheck(),2===t.selectedIndex&&null===this.publication&&this.createPublication()}redirect(t){this.router.navigate(t)}loadPublicationDetail(t,e){this.selectedPubId=t.id,this.selectedPubTitle=t.title,e.selectedIndex=1}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(hf),s.Y36(V),s.Y36(yh),s.Y36(Pn),s.Y36(Am),s.Y36(Gh),s.Y36(ns),s.Y36(ct))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-create-single-publication-page"]],features:[s._Bn([{provide:Al,useClass:$T,deps:[bl]},{provide:vl,useValue:hx}])],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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s.TgZ(2,"span"),s.TgZ(3,"mat-icon",2),s._uU(4,"add_box"),s.qZA(),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA(),s.YNc(7,RL,1,0,"mat-spinner",3),s.YNc(8,ux,77,65,"mat-horizontal-stepper",4),s.qZA()),2&t&&(s.xp6(5),s.hij(" ",s.lcZ(6,3,"CREATE_SINGLE_PUBLICATION.TITLE")," "),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[Vg,n.O5,Ym,jA,OA,MA,Wp,wp,nf,bb,_p,of,Bd,Vm,Zd,af,Ld,Fv,Kv,zd,Ov,Df,n.sg,id,FA,Zp,NA,kd,nh,hT,vL,hL,aL,oL,BT,IE,rM,UM],pipes:[Vh],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}"]}),t})();function px(t,e){if(1&t&&(s.TgZ(0,"mat-option",14),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.Oqu(t.friendlyName)}}function fx(t,e){1&t&&(s.TgZ(0,"app-alert",15),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"IMPORT_PUBLICATIONS.INFO")," "))}function gx(t,e){if(1&t&&s._UZ(0,"perun-web-apps-publications-list",16),2&t){const t=s.oxw(2);s.Q6J("publications",t.publications)("displayedColumns",t.displayedColumns)("selection",t.selected)("tableId",t.tableId)("disabledRouting",!0)("allowAlert",t.firstSearchDone)}}function mx(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"div"),s.TgZ(2,"mat-form-field",5),s.TgZ(3,"mat-label"),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"mat-select",6),s.NdJ("closed",function(){return s.CHM(t),s.oxw().selectPubSystem()}),s.YNc(7,px,2,2,"mat-option",7),s.qZA(),s.qZA(),s._UZ(8,"perun-web-apps-year-range",8),s.TgZ(9,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().searchPublications()}),s.TgZ(10,"mat-icon"),s._uU(11,"search"),s.qZA(),s._uU(12),s.ALo(13,"translate"),s.qZA(),s.TgZ(14,"button",10),s.NdJ("click",function(){s.CHM(t);const e=s.oxw();return e.importPublications(e.selected.selected)}),s._uU(15),s.ALo(16,"translate"),s.qZA(),s.TgZ(17,"mat-checkbox",11),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().userAsAuthor=e}),s._uU(18),s.ALo(19,"translate"),s.qZA(),s.qZA(),s.YNc(20,fx,3,3,"app-alert",12),s.YNc(21,gx,1,6,"perun-web-apps-publications-list",13),s.qZA()}if(2&t){const t=s.oxw();s.xp6(4),s.Oqu(s.lcZ(5,12,"IMPORT_PUBLICATIONS.EXT_PUB_SYSTEM")),s.xp6(2),s.Q6J("formControl",t.pubSystem),s.xp6(1),s.Q6J("ngForOf",t.publicationSystems),s.xp6(1),s.Q6J("startYear",t.startYear)("endYear",t.endYear),s.xp6(4),s.hij(" ",s.lcZ(13,14,"IMPORT_PUBLICATIONS.SEARCH")," "),s.xp6(2),s.Q6J("disabled",0===t.selected.selected.length),s.xp6(1),s.hij(" ",s.lcZ(16,16,"IMPORT_PUBLICATIONS.IMPORT")," "),s.xp6(2),s.Q6J("ngModel",t.userAsAuthor),s.xp6(1),s.hij(" ",s.lcZ(19,18,"IMPORT_PUBLICATIONS.ADD_MYSELF")," "),s.xp6(2),s.Q6J("ngIf",!t.firstSearchDone),s.xp6(1),s.Q6J("ngIf",!t.loading)}}function _x(t,e){1&t&&s._UZ(0,"mat-spinner",17)}function wx(t,e){1&t&&(s.TgZ(0,"i"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"IMPORT_PUBLICATIONS.NOT_CHECKED")," "))}function yx(t,e){1&t&&(s.TgZ(0,"mat-icon",28),s._uU(1,"check_circle"),s.qZA())}function bx(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",29),s.NdJ("click",function(){s.CHM(t);const e=s.oxw(),i=e.$implicit,n=e.index;return s.oxw(2).completePublication(i.id,n)}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"IMPORT_PUBLICATIONS.CHECKED_BUTTON")," "))}function Ax(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",30),s.NdJ("click",function(){s.CHM(t);const e=s.oxw().$implicit;return s.oxw(2).incompletePublication(e.id)}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"IMPORT_PUBLICATIONS.NOT_CHECKED_BUTTON")," "))}function vx(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-expansion-panel",22),s.TgZ(1,"mat-expansion-panel-header",23),s.NdJ("click",function(){const e=s.CHM(t).index;return s.oxw(2).editPublication(e)}),s.TgZ(2,"mat-panel-title"),s._uU(3),s.YNc(4,wx,3,3,"i",3),s.YNc(5,yx,2,0,"mat-icon",24),s.qZA(),s.qZA(),s._UZ(6,"perun-web-apps-publication-detail",25),s.TgZ(7,"div",26),s.YNc(8,bx,3,3,"button",20),s.YNc(9,Ax,3,3,"button",27),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=s.oxw(2);s.Q6J("expanded",n.indexExpanded===i),s.xp6(3),s.hij(" ",t.title," "),s.xp6(1),s.Q6J("ngIf",!n.completePublications.includes(t.id)),s.xp6(1),s.Q6J("ngIf",n.completePublications.includes(t.id)),s.xp6(1),s.Q6J("publicationId",t.id),s.xp6(2),s.Q6J("ngIf",!n.completePublications.includes(t.id)),s.xp6(1),s.Q6J("ngIf",n.completePublications.includes(t.id))}}function kx(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",29),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).completeAllPublications()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"IMPORT_PUBLICATIONS.CHECK_ALL")," "))}function Tx(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",31),s.ALo(1,"translate"),s.TgZ(2,"button",32),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).onSubmit()}),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(2);s.s9C("matTooltip",s.lcZ(1,4,"IMPORT_PUBLICATIONS.SUBMIT_TOOLTIP")),s.Q6J("matTooltipPosition","above")("matTooltipDisabled",t.completePublications.length===t.importedPublications.length),s.xp6(3),s.hij(" ",s.lcZ(4,6,"IMPORT_PUBLICATIONS.FINISH")," ")}}function Cx(t,e){if(1&t&&(s.TgZ(0,"div"),s.TgZ(1,"app-alert",15),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"mat-accordion"),s.YNc(5,vx,10,7,"mat-expansion-panel",18),s.qZA(),s.TgZ(6,"div",19),s.YNc(7,kx,3,3,"button",20),s.qZA(),s.YNc(8,Tx,5,8,"div",21),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,4,"IMPORT_PUBLICATIONS.IMPORTED_INFO")," "),s.xp6(3),s.Q6J("ngForOf",t.importedPublications),s.xp6(2),s.Q6J("ngIf",t.completePublications.length!==t.importedPublications.length),s.xp6(1),s.Q6J("ngIf",t.completePublications.length===t.importedPublications.length)}}const Sx=UT,Mx={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},Ex=[{path:"",redirectTo:"all-publications",pathMatch:"full"},{path:"login",component:HE},{path:"service-access",component:BE},{path:"all-publications",component:sC},{path:"my-publications",component:cC},{path:"create-publication",component:uC},{path:"create-publication/import",component:(()=>{class t{constructor(t,e,i,n,s,o){this.cabinetService=t,this.storeService=e,this.notificator=i,this.translate=n,this.router=s,this.dialog=o,this.loading=!1,this.publicationSystems=[],this.pubSystem=new Fp,this.publications=[],this.selected=new bo(!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 Fp(Sx().subtract(1,"year")),this.endYear=new Fp(Sx()),this.cabinetService.getPublicationSystems().subscribe(t=>{this.publicationSystems=t.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(t=>{this.publications=t,this.loading=!1},()=>this.loading=!1)}importPublications(t){if(this.loading=!0,0===t.length)return this.notificator.showSuccess(this.translate.instant("IMPORT_PUBLICATIONS.SUCCESS")),this.importDone=!0,this.indexExpanded=0,void(this.loading=!1);const e=t.shift();this.cabinetService.createPublication({publication:{title:e.title,categoryId:e.categoryId,year:e.year,isbn:e.isbn,doi:e.doi,main:e.main}}).subscribe(e=>{this.userAsAuthor?this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:e.id,userId:this.userId}}).subscribe(()=>{this.importedPublications.push(e),this.importPublications(t)},()=>this.loading=!1):(this.importedPublications.push(e),this.importPublications(t))},()=>this.loading=!1)}editPublication(t){this.indexExpanded=t===this.indexExpanded?-1:t}completePublication(t,e){this.completePublications.includes(t)||this.completePublications.push(t),this.indexExpanded=e!==this.importedPublications.length-1?e+1:-1}incompletePublication(t){this.completePublications.includes(t)&&(this.completePublications=this.completePublications.filter(e=>e!==t)),this.indexExpanded=-1}completeAllPublications(){const t=tm();t.width="500px",t.data={theme:"user-theme",message:this.translate.instant("IMPORT_PUBLICATIONS.CHECK_ALL_MESSAGE")},this.dialog.open(aw,t).afterClosed().subscribe(t=>{t&&this.onSubmit()})}onSubmit(){this.notificator.showSuccess(this.translate.instant("IMPORT_PUBLICATIONS.SHOW_FINISH")),this.router.navigate(["/my-publications"])}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(V),s.Y36(ns),s.Y36(Am),s.Y36(Gh),s.Y36(Pn),s.Y36(yh))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-import-publications-page"]],features:[s._Bn([{provide:Al,useClass:$T,deps:[bl]},{provide:vl,useValue:Mx}])],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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s.TgZ(2,"span"),s.TgZ(3,"mat-icon",2),s._uU(4,"add_box"),s.qZA(),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA(),s.YNc(7,mx,22,20,"div",3),s.YNc(8,_x,1,0,"mat-spinner",4),s.YNc(9,Cx,9,6,"div",3),s.qZA()),2&t&&(s.xp6(5),s.hij(" ",s.lcZ(6,4,"IMPORT_PUBLICATIONS.TITLE")," "),s.xp6(2),s.Q6J("ngIf",!e.importDone),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",e.importDone))},directives:[Vg,n.O5,Bd,Ld,Df,_p,tf,n.sg,JT,id,bb,$p,nh,hT,BT,Ym,Ub,Nb,Kb,qb,IE,Vf],pipes:[Vh],styles:[".input-width-300[_ngcontent-%COMP%]{width:300px}.left-space[_ngcontent-%COMP%]{margin-left:10px}.checked-icon[_ngcontent-%COMP%], mat-panel-title[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-left:5px}.checked-icon[_ngcontent-%COMP%]{vertical-align:middle}.right-button[_ngcontent-%COMP%]{margin-top:20px;margin-left:auto;margin-right:0}.fit-content[_ngcontent-%COMP%], .right-button[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.fit-content[_ngcontent-%COMP%]{margin-top:15px}.width-100[_ngcontent-%COMP%]{width:100%}"]}),t})()},{path:"create-publication/create",component:dx},{path:"authors",component:HC},{path:"authors/:authorId",component:FS},{path:"authors/:authorId/publication/:publicationId",component:IE},{path:"all-publications/:publicationId",component:IE},{path:"my-publications/:publicationId",component:IE},{path:"categories",component:bS},{path:"publication-systems",component:HS}];let Lx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Vn.forRoot(Ex,{preloadingStrategy:Fn,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})],Vn]}),t})();const xx={provide:F.TP,useExisting:(0,s.Gpc)(()=>vm),multi:!0};function Rx(t){return new Jy(t,"./assets/i18n/",".json")}function Dx(t){const e={basePath:t.get("api_url")};return new q(e)}const zx=t=>()=>t.loadConfigs();let Px=(()=>{class t{constructor(t,e){this.customIconService=t,this.translate=e,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(wm),s.LFG(Gh))},t.\u0275mod=s.oAB({type:t,bootstrap:[Wy]}),t.\u0275inj=s.cJS({providers:[wm,{provide:s.ip1,useFactory:zx,multi:!0,deps:[tb]},{provide:q,useFactory:Dx,deps:[ns]},vm,xx,{provide:eb,useClass:Tm},WT],imports:[[Y,$h.forRoot({loader:{provide:xh,useFactory:Rx,deps:[F.eN]}}),ol,sT,ib,gt,F.JF,Lx,rk,Em,OE,xL,Wg,Ch.zr.forRoot()]]}),t})();(0,s.G48)(),O().bootstrapModule(Px).catch(t=>console.error(t))},1511:(t,e,i)=>{"use strict";i.d(e,{mr:()=>b,Ov:()=>St,ez:()=>Et,K0:()=>c,uU:()=>Mt,Do:()=>v,V_:()=>h,Ye:()=>k,S$:()=>w,mk:()=>ct,sg:()=>lt,O5:()=>dt,PC:()=>yt,RF:()=>mt,n9:()=>_t,ED:()=>wt,tP:()=>bt,b0:()=>A,lw:()=>u,EM:()=>Rt,JF:()=>Pt,p6:()=>U,NF:()=>xt,w_:()=>a,bD:()=>Lt,q:()=>o,Mx:()=>at,HT:()=>r});var n=i(1572);let s=null;function o(){return s}function r(t){s||(s=t)}class a{}const c=new n.OlP("DocumentToken");let u=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:l,token:t,providedIn:"platform"}),t})();function l(){return(0,n.LFG)(d)}const h=new n.OlP("Location Initialized");let d=(()=>{class t extends u{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return o().getBaseHref(this._doc)}onPopState(t){const e=o().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=o().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}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(t){this.location.pathname=t}pushState(t,e,i){p()?this._history.pushState(t,e,i):this.location.hash=i}replaceState(t,e,i){p()?this._history.replaceState(t,e,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(c))},t.\u0275prov=(0,n.Yz7)({factory:f,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function f(){return new d((0,n.LFG)(c))}function g(t,e){if(0==t.length)return e;if(0==e.length)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,2==i?t+e.substring(1):1==i?t+e:t+"/"+e}function m(t){const e=t.match(/#|\?|$/),i=e&&e.index||t.length;return t.slice(0,i-("/"===t[i-1]?1:0))+t.slice(i)}function _(t){return t&&"?"!==t[0]?"?"+t:t}let w=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:y,token:t,providedIn:"root"}),t})();function y(t){const e=(0,n.LFG)(c).location;return new A((0,n.LFG)(u),e&&e.origin||"")}const b=new n.OlP("appBaseHref");let A=(()=>{class t extends w{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return g(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+_(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${e}${i}`:e}pushState(t,e,i,n){const s=this.prepareExternalUrl(i+_(n));this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){const s=this.prepareExternalUrl(i+_(n));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformLocation).historyGo)||void 0===i||i.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(u),n.LFG(b,8))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),v=(()=>{class t extends w{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=g(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,i,n){let s=this.prepareExternalUrl(i+_(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){let s=this.prepareExternalUrl(i+_(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformLocation).historyGo)||void 0===i||i.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(u),n.LFG(b,8))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),k=(()=>{class t{constructor(t,e){this._subject=new n.vpe,this._urlChangeListeners=[],this._platformStrategy=t;const i=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=m(C(i)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+_(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,C(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",i=null){this._platformStrategy.pushState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+_(e)),i)}replaceState(t,e="",i=null){this._platformStrategy.replaceState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+_(e)),i)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformStrategy).historyGo)||void 0===i||i.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(i=>i(t,e))}subscribe(t,e,i){return this._subject.subscribe({next:t,error:e,complete:i})}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(w),n.LFG(u))},t.normalizeQueryParams=_,t.joinWithSlash=g,t.stripTrailingSlash=m,t.\u0275prov=(0,n.Yz7)({factory:T,token:t,providedIn:"root"}),t})();function T(){return new k((0,n.LFG)(w),(0,n.LFG)(u))}function C(t){return t.replace(/\/index.html$/,"")}var S=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),M=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),E=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),L=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),x=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function R(t,e){return H((0,n.cg1)(t)[n.wAp.DateFormat],e)}function D(t,e){return H((0,n.cg1)(t)[n.wAp.TimeFormat],e)}function z(t,e){return H((0,n.cg1)(t)[n.wAp.DateTimeFormat],e)}function P(t,e){const i=(0,n.cg1)(t),s=i[n.wAp.NumberSymbols][e];if(void 0===s){if(e===x.CurrencyDecimal)return i[n.wAp.NumberSymbols][x.Decimal];if(e===x.CurrencyGroup)return i[n.wAp.NumberSymbols][x.Group]}return s}const I=n.kL8;function O(t){if(!t[n.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[n.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function H(t,e){for(let i=e;i>-1;i--)if(void 0!==t[i])return t[i];throw new Error("Locale data API: locale data undefined")}function Y(t){const[e,i]=t.split(":");return{hours:+e,minutes:+i}}const B=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,j={},F=/((?:[^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=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),K=function(t){return 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}({}),q=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function U(t,e,i,n){let s=function(t){if(st(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[e,i=1,n=1]=t.split("-").map(t=>+t);return Z(e,i-1,n)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(B))return function(t){const e=new Date(0);let i=0,n=0;const s=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),s.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const r=Number(t[4]||0)-i,a=Number(t[5]||0)-n,c=Number(t[6]||0),u=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,r,a,c,u),e}(i)}const e=new Date(t);if(!st(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=G(i,e)||e;let o,r=[];for(;e;){if(o=F.exec(e),!o){r.push(e);break}{r=r.concat(o.slice(1));const t=r.pop();if(!t)break;e=t}}let a=s.getTimezoneOffset();n&&(a=nt(n,a),s=function(t,e,i){const n=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(nt(e,n)-n))}(s,n));let c="";return r.forEach(t=>{const e=function(t){if(it[t])return it[t];let e;switch(t){case"G":case"GG":case"GGG":e=J(q.Eras,E.Abbreviated);break;case"GGGG":e=J(q.Eras,E.Wide);break;case"GGGGG":e=J(q.Eras,E.Narrow);break;case"y":e=W(K.FullYear,1,0,!1,!0);break;case"yy":e=W(K.FullYear,2,0,!0,!0);break;case"yyy":e=W(K.FullYear,3,0,!1,!0);break;case"yyyy":e=W(K.FullYear,4,0,!1,!0);break;case"Y":e=et(1);break;case"YY":e=et(2,!0);break;case"YYY":e=et(3);break;case"YYYY":e=et(4);break;case"M":case"L":e=W(K.Month,1,1);break;case"MM":case"LL":e=W(K.Month,2,1);break;case"MMM":e=J(q.Months,E.Abbreviated);break;case"MMMM":e=J(q.Months,E.Wide);break;case"MMMMM":e=J(q.Months,E.Narrow);break;case"LLL":e=J(q.Months,E.Abbreviated,M.Standalone);break;case"LLLL":e=J(q.Months,E.Wide,M.Standalone);break;case"LLLLL":e=J(q.Months,E.Narrow,M.Standalone);break;case"w":e=tt(1);break;case"ww":e=tt(2);break;case"W":e=tt(1,!0);break;case"d":e=W(K.Date,1);break;case"dd":e=W(K.Date,2);break;case"c":case"cc":e=W(K.Day,1);break;case"ccc":e=J(q.Days,E.Abbreviated,M.Standalone);break;case"cccc":e=J(q.Days,E.Wide,M.Standalone);break;case"ccccc":e=J(q.Days,E.Narrow,M.Standalone);break;case"cccccc":e=J(q.Days,E.Short,M.Standalone);break;case"E":case"EE":case"EEE":e=J(q.Days,E.Abbreviated);break;case"EEEE":e=J(q.Days,E.Wide);break;case"EEEEE":e=J(q.Days,E.Narrow);break;case"EEEEEE":e=J(q.Days,E.Short);break;case"a":case"aa":case"aaa":e=J(q.DayPeriods,E.Abbreviated);break;case"aaaa":e=J(q.DayPeriods,E.Wide);break;case"aaaaa":e=J(q.DayPeriods,E.Narrow);break;case"b":case"bb":case"bbb":e=J(q.DayPeriods,E.Abbreviated,M.Standalone,!0);break;case"bbbb":e=J(q.DayPeriods,E.Wide,M.Standalone,!0);break;case"bbbbb":e=J(q.DayPeriods,E.Narrow,M.Standalone,!0);break;case"B":case"BB":case"BBB":e=J(q.DayPeriods,E.Abbreviated,M.Format,!0);break;case"BBBB":e=J(q.DayPeriods,E.Wide,M.Format,!0);break;case"BBBBB":e=J(q.DayPeriods,E.Narrow,M.Format,!0);break;case"h":e=W(K.Hours,1,-12);break;case"hh":e=W(K.Hours,2,-12);break;case"H":e=W(K.Hours,1);break;case"HH":e=W(K.Hours,2);break;case"m":e=W(K.Minutes,1);break;case"mm":e=W(K.Minutes,2);break;case"s":e=W(K.Seconds,1);break;case"ss":e=W(K.Seconds,2);break;case"S":e=W(K.FractionalSeconds,1);break;case"SS":e=W(K.FractionalSeconds,2);break;case"SSS":e=W(K.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Q(N.Short);break;case"ZZZZZ":e=Q(N.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Q(N.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Q(N.Long);break;default:return null}return it[t]=e,e}(t);c+=e?e(s,i,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Z(t,e,i){const n=new Date(0);return n.setFullYear(t,e,i),n.setHours(0,0,0),n}function G(t,e){const i=function(t){return(0,n.cg1)(t)[n.wAp.LocaleId]}(t);if(j[i]=j[i]||{},j[i][e])return j[i][e];let s="";switch(e){case"shortDate":s=R(t,L.Short);break;case"mediumDate":s=R(t,L.Medium);break;case"longDate":s=R(t,L.Long);break;case"fullDate":s=R(t,L.Full);break;case"shortTime":s=D(t,L.Short);break;case"mediumTime":s=D(t,L.Medium);break;case"longTime":s=D(t,L.Long);break;case"fullTime":s=D(t,L.Full);break;case"short":const e=G(t,"shortTime"),i=G(t,"shortDate");s=V(z(t,L.Short),[e,i]);break;case"medium":const n=G(t,"mediumTime"),o=G(t,"mediumDate");s=V(z(t,L.Medium),[n,o]);break;case"long":const r=G(t,"longTime"),a=G(t,"longDate");s=V(z(t,L.Long),[r,a]);break;case"full":const c=G(t,"fullTime"),u=G(t,"fullDate");s=V(z(t,L.Full),[c,u])}return s&&(j[i][e]=s),s}function V(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,i){return null!=e&&i in e?e[i]:t})),t}function $(t,e,i="-",n,s){let o="";(t<0||s&&t<=0)&&(s?t=1-t:(t=-t,o=i));let r=String(t);for(;r.length0||a>-i)&&(a+=i),t===K.Hours)0===a&&-12===i&&(a=12);else if(t===K.FractionalSeconds)return c=e,$(a,3).substr(0,c);var c;const u=P(r,x.MinusSign);return $(a,e,u,n,s)}}function J(t,e,i=M.Format,s=!1){return function(o,r){return function(t,e,i,s,o,r){switch(i){case q.Months:return function(t,e,i){const s=(0,n.cg1)(t),o=H([s[n.wAp.MonthsFormat],s[n.wAp.MonthsStandalone]],e);return H(o,i)}(e,o,s)[t.getMonth()];case q.Days:return function(t,e,i){const s=(0,n.cg1)(t),o=H([s[n.wAp.DaysFormat],s[n.wAp.DaysStandalone]],e);return H(o,i)}(e,o,s)[t.getDay()];case q.DayPeriods:const a=t.getHours(),c=t.getMinutes();if(r){const t=function(t){const e=(0,n.cg1)(t);return O(e),(e[n.wAp.ExtraData][2]||[]).map(t=>"string"==typeof t?Y(t):[Y(t[0]),Y(t[1])])}(e),i=function(t,e,i){const s=(0,n.cg1)(t);O(s);const o=H([s[n.wAp.ExtraData][0],s[n.wAp.ExtraData][1]],e)||[];return H(o,i)||[]}(e,o,s),r=t.findIndex(t=>{if(Array.isArray(t)){const[e,i]=t,n=a>=e.hours&&c>=e.minutes,s=a0?Math.floor(s/60):Math.ceil(s/60);switch(t){case N.Short:return(s>=0?"+":"")+$(r,2,o)+$(Math.abs(s%60),2,o);case N.ShortGMT:return"GMT"+(s>=0?"+":"")+$(r,1,o);case N.Long:return"GMT"+(s>=0?"+":"")+$(r,2,o)+":"+$(Math.abs(s%60),2,o);case N.Extended:return 0===n?"Z":(s>=0?"+":"")+$(r,2,o)+":"+$(Math.abs(s%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}function X(t){return Z(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function tt(t,e=!1){return function(i,n){let s;if(e){const t=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,e=i.getDate();s=1+Math.floor((e+t)/7)}else{const t=X(i),e=function(t){const e=Z(t,0,1).getDay();return Z(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),n=t.getTime()-e.getTime();s=1+Math.round(n/6048e5)}return $(s,t,P(n,x.MinusSign))}}function et(t,e=!1){return function(i,n){return $(X(i).getFullYear(),t,P(n,x.MinusSign),e)}}const it={};function nt(t,e){t=t.replace(/:/g,"");const i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function st(t){return t instanceof Date&&!isNaN(t.valueOf())}class ot{}let rt=(()=>{class t extends ot{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(I(e||this.locale)(t)){case S.Zero:return"zero";case S.One:return"one";case S.Two:return"two";case S.Few:return"few";case S.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.soG))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();function at(t,e){e=encodeURIComponent(e);for(const i of t.split(";")){const t=i.indexOf("="),[n,s]=-1==t?[i,""]:[i.slice(0,t),i.slice(t+1)];if(n.trim()===e)return decodeURIComponent(s)}return null}let ct=(()=>{class t{constructor(t,e,i,n){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=i,this._renderer=n,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&((0,n.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,n.AaK)(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.ZZ4),n.Y36(n.aQg),n.Y36(n.SBq),n.Y36(n.Qsj))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class ut{constructor(t,e,i,n){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=n}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 lt=(()=>{class t{constructor(t,e,i){this._viewContainer=t,this._template=e,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const i=this._ngForOf;if(!this._differ&&i)try{this._differ=this._differs.find(i).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${i}' of type '${t=i,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,i,n)=>{if(null==t.previousIndex){const i=this._viewContainer.createEmbeddedView(this._template,new ut(null,this._ngForOf,-1,-1),null===n?void 0:n),s=new ht(t,i);e.push(s)}else if(null==n)this._viewContainer.remove(null===i?void 0:i);else if(null!==i){const s=this._viewContainer.get(i);this._viewContainer.move(s,n);const o=new ht(t,s);e.push(o)}});for(let i=0;i{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(n.ZZ4))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class ht{constructor(t,e){this.record=t,this.view=e}}let dt=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new pt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){ft("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){ft("ngIfElse",t),this._elseTemplateRef=t,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(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class pt{constructor(){this.$implicit=null,this.ngIf=null}}function ft(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${(0,n.AaK)(e)}'.`)}class gt{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let mt=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,i){this.ngSwitch=i,i._addCase(),this._view=new gt(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(mt,9))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),wt=(()=>{class t{constructor(t,e,i){i._addDefault(new gt(t,e))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(mt,9))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),yt=(()=>{class t{constructor(t,e,i){this._ngEl=t,this._differs=e,this._renderer=i,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[i,n]=t.split(".");null!=(e=null!=e&&n?`${e}${n}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,i,e):this._renderer.removeStyle(this._ngEl.nativeElement,i)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.aQg),n.Y36(n.Qsj))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),bt=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[n.TTD]}),t})();function At(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${(0,n.AaK)(t)}'`)}class vt{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class kt{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Tt=new kt,Ct=new vt;let St=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if((0,n.QGY)(e))return Tt;if((0,n.F4k)(e))return Ct;throw At(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO,16))},t.\u0275pipe=n.Yjl({name:"async",type:t,pure:!1}),t})(),Mt=(()=>{class t{constructor(t){this.locale=t}transform(e,i="mediumDate",n,s){if(null==e||""===e||e!=e)return null;try{return U(e,i,s||this.locale,n)}catch(o){throw At(t,o.message)}}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.soG,16))},t.\u0275pipe=n.Yjl({name:"date",type:t,pure:!0}),t})(),Et=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:ot,useClass:rt}]}),t})();const Lt="browser";function xt(t){return t===Lt}let Rt=(()=>{class t{}return t.\u0275prov=(0,n.Yz7)({token:t,providedIn:"root",factory:()=>new Dt((0,n.LFG)(c),window)}),t})();class Dt{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const i=t.getElementById(e)||t.getElementsByName(e)[0];if(i)return i;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let n=i.currentNode;for(;n;){const t=n.shadowRoot;if(t){const i=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(i)return i}n=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,n=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(i-s[0],n-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=zt(this.window.history)||zt(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function zt(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class Pt{}},9063:(t,e,i)=>{"use strict";i.d(e,{TP:()=>x,eN:()=>E,JF:()=>F,WM:()=>d,LE:()=>m,Zn:()=>C});var n=i(1511),s=i(1572),o=i(878),r=i(8318),a=i(436),c=i(3835),u=i(9996);class l{}class h{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const i=t.slice(0,e),n=i.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(s):this.headers.set(n,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const n=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(n,i),this.maybeSetNormalizedName(e,n))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const n=("a"===t.op?this.headers.get(e):void 0)||[];n.push(...i),this.headers.set(e,n);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class p{encodeKey(t){return f(t)}encodeValue(t){return f(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function f(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function g(t){return`${t}`}class m{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new p,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const n=t.indexOf("="),[s,o]=-1==n?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,n)),e.decodeValue(t.slice(n+1))],r=i.get(s)||[];r.push(o),i.set(s,r)}),i}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const n=t[i];Array.isArray(n)?n.forEach(t=>{e.push({param:i,value:t,op:"a"})}):e.push({param:i,value:n,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new m({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(g(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const i=e.indexOf(g(t.value));-1!==i&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class _{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function w(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function y(t){return"undefined"!=typeof Blob&&t instanceof Blob}function b(t){return"undefined"!=typeof FormData&&t instanceof FormData}class A{constructor(t,e,i,n){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||n?(this.body=void 0!==i?i:null,s=n):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new d),this.context||(this.context=new _),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const i=e.indexOf("?");this.urlWithParams=e+(-1===i?"?":ie.set(i,t.setHeaders[i]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((e,i)=>e.set(i,t.setParams[i]),u)),new A(i,n,o,{params:u,headers:c,context:l,reportProgress:a,responseType:s,withCredentials:r})}}var v=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class k{constructor(t,e=200,i="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class T extends k{constructor(t={}){super(t),this.type=v.ResponseHeader}clone(t={}){return new T({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class C extends k{constructor(t={}){super(t),this.type=v.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new C({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class S extends k{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function M(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let E=(()=>{class t{constructor(t){this.handler=t}request(t,e,i={}){let n;if(t instanceof A)n=t;else{let s,o;s=i.headers instanceof d?i.headers:new d(i.headers),i.params&&(o=i.params instanceof m?i.params:new m({fromObject:i.params})),n=new A(t,e,void 0!==i.body?i.body:null,{headers:s,context:i.context,params:o,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=(0,o.of)(n).pipe((0,a.b)(t=>this.handler.handle(t)));if(t instanceof A||"events"===i.observe)return s;const r=s.pipe((0,c.h)(t=>t instanceof C));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return r.pipe((0,u.U)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe((0,u.U)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe((0,u.U)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe((0,u.U)(t=>t.body))}case"response":return r;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new m).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,i={}){return this.request("PATCH",t,M(i,e))}post(t,e,i={}){return this.request("POST",t,M(i,e))}put(t,e,i={}){return this.request("PUT",t,M(i,e))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(l))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class L{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const x=new s.OlP("HTTP_INTERCEPTORS");let R=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const D=/^\)\]\}',?\n/;let z=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new r.y(e=>{const i=this.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((t,e)=>i.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&i.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();i.responseType="json"!==e?e:"text"}const n=t.serializeBody();let s=null;const o=()=>{if(null!==s)return s;const e=1223===i.status?204:i.status,n=i.statusText||"OK",o=new d(i.getAllResponseHeaders()),r=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new T({headers:o,status:e,statusText:n,url:r}),s},r=()=>{let{headers:n,status:s,statusText:r,url:a}=o(),c=null;204!==s&&(c=void 0===i.response?i.responseText:i.response),0===s&&(s=c?200:0);let u=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof c){const t=c;c=c.replace(D,"");try{c=""!==c?JSON.parse(c):null}catch(l){c=t,u&&(u=!1,c={error:l,text:c})}}u?(e.next(new C({body:c,headers:n,status:s,statusText:r,url:a||void 0})),e.complete()):e.error(new S({error:c,headers:n,status:s,statusText:r,url:a||void 0}))},a=t=>{const{url:n}=o(),s=new S({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:n||void 0});e.error(s)};let c=!1;const u=n=>{c||(e.next(o()),c=!0);let s={type:v.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(s.total=n.total),"text"===t.responseType&&i.responseText&&(s.partialText=i.responseText),e.next(s)},l=t=>{let i={type:v.UploadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),e.next(i)};return i.addEventListener("load",r),i.addEventListener("error",a),i.addEventListener("timeout",a),i.addEventListener("abort",a),t.reportProgress&&(i.addEventListener("progress",u),null!==n&&i.upload&&i.upload.addEventListener("progress",l)),i.send(n),e.next({type:v.Sent}),()=>{i.removeEventListener("error",a),i.removeEventListener("abort",a),i.removeEventListener("load",r),i.removeEventListener("timeout",a),t.reportProgress&&(i.removeEventListener("progress",u),null!==n&&i.upload&&i.upload.removeEventListener("progress",l)),i.readyState!==i.DONE&&i.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.JF))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const P=new s.OlP("XSRF_COOKIE_NAME"),I=new s.OlP("XSRF_HEADER_NAME");class O{}let H=(()=>{class t{constructor(t,e,i){this.doc=t,this.platform=e,this.cookieName=i,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,n.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0),s.LFG(s.Lbi),s.LFG(P))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Y=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);const n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(O),s.LFG(I))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(x,[]);this.chain=t.reduceRight((t,e)=>new L(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(h),s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),j=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Y,useClass:R}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:P,useValue:e.cookieName}:[],e.headerName?{provide:I,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Y,{provide:x,useExisting:Y,multi:!0},{provide:O,useClass:H},{provide:P,useValue:"XSRF-TOKEN"},{provide:I,useValue:"X-XSRF-TOKEN"}]}),t})(),F=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[E,{provide:l,useClass:B},z,{provide:h,useExisting:z}],imports:[[j.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},1572:(t,e,i)=>{"use strict";i.d(e,{deG:()=>ai,tb:()=>ou,AFp:()=>tu,ip1:()=>Qc,CZH:()=>Xc,hGG:()=>Qu,z2F:()=>Nu,sBO:()=>Za,Sil:()=>mu,_Vd:()=>ma,EJc:()=>cu,SBq:()=>ba,qLn:()=>En,vpe:()=>Dc,gxx:()=>wo,tBr:()=>Ei,XFs:()=>L,OlP:()=>ri,zs3:()=>zo,ZZ4:()=>Ba,aQg:()=>Fa,soG:()=>au,YKP:()=>ic,v3s:()=>qu,h0i:()=>ec,PXZ:()=>Hu,R0b:()=>yu,FiY:()=>Li,Lbi:()=>su,g9A:()=>nu,n_E:()=>Pc,Qsj:()=>ka,FYo:()=>va,JOm:()=>zn,Tiy:()=>Ca,q3G:()=>yn,tp0:()=>xi,EAV:()=>Gu,Rgc:()=>Ja,dDg:()=>Su,DyG:()=>ci,GfV:()=>Sa,s_b:()=>sc,ifc:()=>I,eFA:()=>Yu,G48:()=>Iu,Gpc:()=>p,f3M:()=>Ci,X6Q:()=>Pu,_c5:()=>Wu,VLi:()=>Lu,c2e:()=>ru,zSh:()=>bo,wAp:()=>ia,vHH:()=>m,EiD:()=>_n,mCW:()=>Xi,qzn:()=>Ni,JVY:()=>qi,pB0:()=>Vi,eBb:()=>Zi,L6k:()=>Ui,LAX:()=>Gi,cg1:()=>Xr,Tjo:()=>$u,kL8:()=>ta,yhl:()=>Ki,dqk:()=>j,sIi:()=>Ko,CqO:()=>lr,QGY:()=>cr,F4k:()=>ur,RDi:()=>Ct,AaK:()=>l,z3N:()=>Fi,qOj:()=>Io,TTD:()=>wt,_Bn:()=>pa,xp6:()=>bs,uIk:()=>Vo,Tol:()=>xr,Gre:()=>Gr,ekj:()=>Lr,Suo:()=>Zc,Xpm:()=>J,lG2:()=>st,Yz7:()=>b,cJS:()=>A,oAB:()=>et,Yjl:()=>ot,Y36:()=>Qo,_UZ:()=>nr,GkF:()=>rr,BQk:()=>or,ynx:()=>sr,qZA:()=>ir,TgZ:()=>er,EpF:()=>ar,n5z:()=>ei,Ikx:()=>Vr,LFG:()=>Ti,$8M:()=>ni,NdJ:()=>hr,CRH:()=>Gc,kcU:()=>ye,O4$:()=>we,oxw:()=>mr,ALo:()=>Cc,lcZ:()=>Sc,xi3:()=>Mc,Dn7:()=>Ec,Hsn:()=>yr,F$t:()=>wr,Q6J:()=>Xo,s9C:()=>br,DdM:()=>yc,VKq:()=>bc,WLB:()=>Ac,iGM:()=>qc,MAs:()=>Jo,pYS:()=>Rn,Jf7:()=>xn,CHM:()=>qt,oJD:()=>bn,LSH:()=>An,kYT:()=>it,Udp:()=>Er,WFA:()=>dr,d8E:()=>$r,YNc:()=>Wo,W1O:()=>Jc,_uU:()=>Nr,Oqu:()=>Kr,hij:()=>qr,AsE:()=>Ur,xDo:()=>Zr,Gf:()=>Uc});var n=i(5959),s=i(7570),o=i(8318),r=i(1906),a=i(1055);function c(t){for(let e in t)if(t[e]===c)return e;throw Error("Could not find renamed property on target object.")}function u(t,e){for(const i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function l(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(l).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const i=e.indexOf("\n");return-1===i?e:e.substring(0,i)}function h(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const d=c({__forward_ref__:c});function p(t){return t.__forward_ref__=p,t.toString=function(){return l(this())},t}function f(t){return g(t)?t():t}function g(t){return"function"==typeof t&&t.hasOwnProperty(d)&&t.__forward_ref__===p}class m extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function _(t){return"string"==typeof t?t:null==t?"":String(t)}function w(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():_(t)}function y(t,e){const i=e?` in ${e}`:"";throw new m("201",`No provider for ${w(t)} found${i}`)}function b(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function A(t){return{providers:t.providers||[],imports:t.imports||[]}}function v(t){return k(t,C)||k(t,M)}function k(t,e){return t.hasOwnProperty(e)?t[e]:null}function T(t){return t&&(t.hasOwnProperty(S)||t.hasOwnProperty(E))?t[S]:null}const C=c({"\u0275prov":c}),S=c({"\u0275inj":c}),M=c({ngInjectableDef:c}),E=c({ngInjectorDef:c});var L=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let x;function R(t){const e=x;return x=t,e}function D(t,e,i){const n=v(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:i&L.Optional?null:void 0!==e?e:void y(l(t),"Injector")}function z(t){return{toString:t}.toString()}var P=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),I=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const O="undefined"!=typeof globalThis&&globalThis,H="undefined"!=typeof window&&window,Y="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,B="undefined"!=typeof global&&global,j=O||B||H||Y,F={},N=[],K=c({"\u0275cmp":c}),q=c({"\u0275dir":c}),U=c({"\u0275pipe":c}),Z=c({"\u0275mod":c}),G=c({"\u0275loc":c}),V=c({"\u0275fac":c}),$=c({__NG_ELEMENT_ID__:c});let W=0;function J(t){return z(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===P.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||N,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||I.Emulated,id:"c",styles:t.styles||N,_:null,setInput:null,schemas:t.schemas||null,tView:null},n=t.directives,s=t.features,o=t.pipes;return i.id+=W++,i.inputs=nt(t.inputs,e),i.outputs=nt(t.outputs),s&&s.forEach(t=>t(i)),i.directiveDefs=n?()=>("function"==typeof n?n():n).map(Q):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(X):null,i})}function Q(t){return rt(t)||function(t){return t[q]||null}(t)}function X(t){return function(t){return t[U]||null}(t)}const tt={};function et(t){return z(()=>{const e={type:t.type,bootstrap:t.bootstrap||N,declarations:t.declarations||N,imports:t.imports||N,exports:t.exports||N,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(tt[t.id]=t.type),e})}function it(t,e){return z(()=>{const i=at(t,!0);i.declarations=e.declarations||N,i.imports=e.imports||N,i.exports=e.exports||N})}function nt(t,e){if(null==t)return F;const i={};for(const n in t)if(t.hasOwnProperty(n)){let s=t[n],o=s;Array.isArray(s)&&(o=s[1],s=s[0]),i[s]=n,e&&(e[s]=o)}return i}const st=J;function ot(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function rt(t){return t[K]||null}function at(t,e){const i=t[Z]||null;if(!i&&!0===e)throw new Error(`Type ${l(t)} does not have '\u0275mod' property.`);return i}const ct=20,ut=10;function lt(t){return Array.isArray(t)&&"object"==typeof t[1]}function ht(t){return Array.isArray(t)&&!0===t[1]}function dt(t){return 0!=(8&t.flags)}function pt(t){return 2==(2&t.flags)}function ft(t){return 1==(1&t.flags)}function gt(t){return null!==t.template}function mt(t,e){return t.hasOwnProperty(V)?t[V]:null}class _t{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function wt(){return yt}function yt(t){return t.type.prototype.ngOnChanges&&(t.setInput=At),bt}function bt(){const t=vt(this),e=null==t?void 0:t.current;if(e){const i=t.previous;if(i===F)t.previous=e;else for(let t in e)i[t]=e[t];t.current=null,this.ngOnChanges(e)}}function At(t,e,i,n){const s=vt(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:F,current:null}),o=s.current||(s.current={}),r=s.previous,a=this.declaredInputs[i],c=r[a];o[a]=new _t(c&&c.currentValue,e,r===F),t[n]=e}function vt(t){return t.__ngSimpleChanges__||null}wt.ngInherit=!0;const kt="http://www.w3.org/2000/svg";let Tt;function Ct(t){Tt=t}function St(){return void 0!==Tt?Tt:"undefined"!=typeof document?document:void 0}function Mt(t){return!!t.listen}const Et={createRenderer:(t,e)=>St()};function Lt(t){for(;Array.isArray(t);)t=t[0];return t}function xt(t,e){return Lt(e[t])}function Rt(t,e){return Lt(e[t.index])}function Dt(t,e){return t.data[e]}function zt(t,e){return t[e]}function Pt(t,e){const i=e[t];return lt(i)?i:i[0]}function It(t){return 4==(4&t[2])}function Ot(t){return 128==(128&t[2])}function Ht(t,e){return null==e?null:t[e]}function Yt(t){t[18]=0}function Bt(t,e){t[5]+=e;let i=t,n=t[3];for(;null!==n&&(1===e&&1===i[5]||-1===e&&0===i[5]);)n[5]+=e,i=n,n=n[3]}const jt={lFrame:he(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ft(){return jt.bindingsEnabled}function Nt(){return jt.lFrame.lView}function Kt(){return jt.lFrame.tView}function qt(t){return jt.lFrame.contextLView=t,t[8]}function Ut(){let t=Zt();for(;null!==t&&64===t.type;)t=t.parent;return t}function Zt(){return jt.lFrame.currentTNode}function Gt(t,e){const i=jt.lFrame;i.currentTNode=t,i.isParent=e}function Vt(){return jt.lFrame.isParent}function $t(){jt.lFrame.isParent=!1}function Wt(){return jt.isInCheckNoChangesMode}function Jt(t){jt.isInCheckNoChangesMode=t}function Qt(){const t=jt.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Xt(){return jt.lFrame.bindingIndex}function te(){return jt.lFrame.bindingIndex++}function ee(t){const e=jt.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function ie(t,e){const i=jt.lFrame;i.bindingIndex=i.bindingRootIndex=t,ne(e)}function ne(t){jt.lFrame.currentDirectiveIndex=t}function se(t){const e=jt.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function oe(){return jt.lFrame.currentQueryIndex}function re(t){jt.lFrame.currentQueryIndex=t}function ae(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function ce(t,e,i){if(i&L.SkipSelf){let n=e,s=t;for(;n=n.parent,!(null!==n||i&L.Host||(n=ae(s),null===n)||(s=s[15],10&n.type)););if(null===n)return!1;e=n,t=s}const n=jt.lFrame=le();return n.currentTNode=e,n.lView=t,!0}function ue(t){const e=le(),i=t[1];jt.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function le(){const t=jt.lFrame,e=null===t?null:t.child;return null===e?he(t):e}function he(t){const e={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:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function de(){const t=jt.lFrame;return jt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const pe=de;function fe(){const t=de();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ge(){return jt.lFrame.selectedIndex}function me(t){jt.lFrame.selectedIndex=t}function _e(){const t=jt.lFrame;return Dt(t.tView,t.selectedIndex)}function we(){jt.lFrame.currentNamespace=kt}function ye(){jt.lFrame.currentNamespace=null}function be(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[a]<0&&(t[18]+=65536),(r>11>16&&(3&t[2])===e){t[2]+=2048;try{o.call(r)}finally{}}}else try{o.call(r)}finally{}}const Se=-1;class Me{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Ee(t,e,i){const n=Mt(t);let s=0;for(;se){r=o-1;break}}}for(;o>16,n=e;for(;i>0;)n=n[15],i--;return n}let Oe=!0;function He(t){const e=Oe;return Oe=t,e}let Ye=0;function Be(t,e){const i=Fe(t,e);if(-1!==i)return i;const n=e[1];n.firstCreatePass&&(t.injectorIndex=e.length,je(n.data,t),je(e,null),je(n.blueprint,null));const s=Ne(t,e),o=t.injectorIndex;if(ze(s)){const t=Pe(s),i=Ie(s,e),n=i[1].data;for(let s=0;s<8;s++)e[o+s]=i[t+s]|n[t+s]}return e[o+8]=s,o}function je(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Fe(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Ne(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let i=0,n=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(n=2===e?t.declTNode:1===e?s[6]:null,null===n)return Se;if(i++,s=s[15],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return Se}function Ke(t,e,i){!function(t,e,i){let n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty($)&&(n=i[$]),null==n&&(n=i[$]=Ye++);const s=255&n;e.data[t+(s>>5)]|=1<=0?255&e:Ve:e}(i);if("function"==typeof o){if(!ce(e,t,n))return n&L.Host?qe(s,i,n):Ue(e,i,n,s);try{const t=o(n);if(null!=t||n&L.Optional)return t;y(i)}finally{pe()}}else if("number"==typeof o){let s=null,r=Fe(t,e),a=Se,c=n&L.Host?e[16][6]:null;for((-1===r||n&L.SkipSelf)&&(a=-1===r?Ne(t,e):e[r+8],a!==Se&&Xe(n,!1)?(s=e[1],r=Pe(a),e=Ie(a,e)):r=-1);-1!==r;){const t=e[1];if(Qe(o,r,t.data)){const t=$e(r,e,i,s,n,c);if(t!==Ge)return t}a=e[r+8],a!==Se&&Xe(n,e[1].data[r+8]===c)&&Qe(o,r,e)?(s=t,r=Pe(a),e=Ie(a,e)):r=-1}}}return Ue(e,i,n,s)}const Ge={};function Ve(){return new ti(Ut(),Nt())}function $e(t,e,i,n,s,o){const r=e[1],a=r.data[t+8],c=We(a,r,i,null==n?pt(a)&&Oe:n!=r&&0!=(3&a.type),s&L.Host&&o===a);return null!==c?Je(e,r,c,a):Ge}function We(t,e,i,n,s){const o=t.providerIndexes,r=e.data,a=1048575&o,c=t.directiveStart,u=o>>20,l=s?a+u:t.directiveEnd;for(let h=n?a:a+u;h=c&&t.type===i)return h}if(s){const t=r[c];if(t&>(t)&&t.type===i)return c}return null}function Je(t,e,i,n){let s=t[i];const o=e.data;if(s instanceof Me){const r=s;r.resolving&&function(t,e){throw new m("200",`Circular dependency in DI detected for ${t}`)}(w(o[i]));const a=He(r.canSeeViewProviders);r.resolving=!0;const c=r.injectImpl?R(r.injectImpl):null;ce(t,n,L.Default);try{s=t[i]=r.factory(void 0,o,t,n),e.firstCreatePass&&i>=n.directiveStart&&function(t,e,i){const{ngOnChanges:n,ngOnInit:s,ngDoCheck:o}=e.type.prototype;if(n){const n=yt(e);(i.preOrderHooks||(i.preOrderHooks=[])).push(t,n),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,n)}s&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-t,s),o&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,o),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,o))}(i,o[i],e)}finally{null!==c&&R(c),He(a),r.resolving=!1,pe()}}return s}function Qe(t,e,i){return!!(i[e+(t>>5)]&1<{const e=t.prototype.constructor,i=e[V]||ii(e),n=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==n;){const t=s[V]||ii(s);if(t&&t!==i)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function ii(t){return g(t)?()=>{const e=ii(f(t));return e&&e()}:mt(t)}function ni(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const i=t.attrs;if(i){const t=i.length;let n=0;for(;n{const n=function(t){return function(...e){if(t){const i=t(...e);for(const t in i)this[t]=i[t]}}}(e);function s(...t){if(this instanceof s)return n.apply(this,t),this;const e=new s(...t);return i.annotation=e,i;function i(t,i,n){const s=t.hasOwnProperty(si)?t[si]:Object.defineProperty(t,si,{value:[]})[si];for(;s.length<=n;)s.push(null);return(s[n]=s[n]||[]).push(e),t}}return i&&(s.prototype=Object.create(i.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class ri{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=b({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const ai=new ri("AnalyzeForEntryComponents"),ci=Function;function ui(t,e){void 0===e&&(e=t);for(let i=0;iArray.isArray(t)?li(t,e):e(t))}function hi(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function di(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function pi(t,e){const i=[];for(let n=0;n=0?t[1|n]=i:(n=~n,function(t,e,i,n){let s=t.length;if(s==e)t.push(i,n);else if(1===s)t.push(n,t[0]),t[0]=i;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=i,t[e+1]=n}}(t,n,e,i)),n}function gi(t,e){const i=mi(t,e);if(i>=0)return t[1|i]}function mi(t,e){return function(t,e,i){let n=0,s=t.length>>1;for(;s!==n;){const i=n+(s-n>>1),o=t[i<<1];if(e===o)return i<<1;o>e?s=i:n=i+1}return~(s<<1)}(t,e)}const _i={},wi=/\n/gm,yi="__source",bi=c({provide:String,useValue:c});let Ai;function vi(t){const e=Ai;return Ai=t,e}function ki(t,e=L.Default){if(void 0===Ai)throw new Error("inject() must be called from an injection context");return null===Ai?D(t,void 0,e):Ai.get(t,e&L.Optional?null:void 0,e)}function Ti(t,e=L.Default){return(x||ki)(f(t),e)}const Ci=Ti;function Si(t){const e=[];for(let i=0;i({token:t})),-1),Li=Mi(oi("Optional"),8),xi=Mi(oi("SkipSelf"),4);let Ri,Di;function zi(t){var e;return(null===(e=function(){if(void 0===Ri&&(Ri=null,j.trustedTypes))try{Ri=j.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Ri}())||void 0===e?void 0:e.createHTML(t))||t}function Pi(t){var e;return(null===(e=function(){if(void 0===Di&&(Di=null,j.trustedTypes))try{Di=j.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Di}())||void 0===e?void 0:e.createHTML(t))||t}class Ii{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Oi extends Ii{getTypeName(){return"HTML"}}class Hi extends Ii{getTypeName(){return"Style"}}class Yi extends Ii{getTypeName(){return"Script"}}class Bi extends Ii{getTypeName(){return"URL"}}class ji extends Ii{getTypeName(){return"ResourceURL"}}function Fi(t){return t instanceof Ii?t.changingThisBreaksApplicationSecurity:t}function Ni(t,e){const i=Ki(t);if(null!=i&&i!==e){if("ResourceURL"===i&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${i} (see https://g.co/ng/security#xss)`)}return i===e}function Ki(t){return t instanceof Ii&&t.getTypeName()||null}function qi(t){return new Oi(t)}function Ui(t){return new Hi(t)}function Zi(t){return new Yi(t)}function Gi(t){return new Bi(t)}function Vi(t){return new ji(t)}class $i{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(zi(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class Wi{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=zi(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=zi(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let n=e.length-1;0Xi(t.trim())).join(", ")),this.buf.push(" ",e,'="',gn(r),'"')}var n;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();an.hasOwnProperty(e)&&!nn.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(gn(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const pn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,fn=/([^\#-~ |!])/g;function gn(t){return t.replace(/&/g,"&").replace(pn,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(fn,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let mn;function _n(t,e){let i=null;try{mn=mn||function(t){const e=new Wi(t);return function(){try{return!!(new window.DOMParser).parseFromString(zi(""),"text/html")}catch(t){return!1}}()?new $i(e):e}(t);let n=e?String(e):"";i=mn.getInertBodyElement(n);let s=5,o=n;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,n=o,o=i.innerHTML,i=mn.getInertBodyElement(n)}while(n!==o);return zi((new dn).sanitizeChildren(wn(i)||i))}finally{if(i){const t=wn(i)||i;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function wn(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var yn=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function bn(t){const e=vn();return e?Pi(e.sanitize(yn.HTML,t)||""):Ni(t,"HTML")?Pi(Fi(t)):_n(St(),_(t))}function An(t){const e=vn();return e?e.sanitize(yn.URL,t)||"":Ni(t,"URL")?Fi(t):Xi(_(t))}function vn(){const t=Nt();return t&&t[12]}function kn(t,e){t.__ngContext__=e}function Tn(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Cn(t){return t.ngDebugContext}function Sn(t){return t.ngOriginalError}function Mn(t,...e){t.error(...e)}class En{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=this._findContext(t),n=function(t){return t.ngErrorLogger||Mn}(t);n(this._console,"ERROR",t),e&&n(this._console,"ORIGINAL ERROR",e),i&&n(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?Cn(t)?Cn(t):this._findContext(Sn(t)):null}_findOriginalError(t){let e=Sn(t);for(;e&&Sn(e);)e=Sn(e);return e}}const Ln=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(j))();function xn(t){return t.ownerDocument.defaultView}function Rn(t){return t.ownerDocument.body}function Dn(t){return t instanceof Function?t():t}var zn=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function Pn(t,e){return(void 0)(t,e)}function In(t){const e=t[3];return ht(e)?e[3]:e}function On(t){return Yn(t[13])}function Hn(t){return Yn(t[4])}function Yn(t){for(;null!==t&&!ht(t);)t=t[4];return t}function Bn(t,e,i,n,s){if(null!=n){let o,r=!1;ht(n)?o=n:lt(n)&&(r=!0,n=n[0]);const a=Lt(n);0===t&&null!==i?null==s?Gn(e,i,a):Zn(e,i,a,s||null,!0):1===t&&null!==i?Zn(e,i,a,s||null,!0):2===t?function(t,e,i){const n=$n(t,e);n&&function(t,e,i,n){Mt(t)?t.removeChild(e,i,n):e.removeChild(i)}(t,n,e,i)}(e,a,r):3===t&&e.destroyNode(a),null!=o&&function(t,e,i,n,s){const o=i[7];o!==Lt(i)&&Bn(e,t,n,o,s);for(let r=ut;r0&&(t[i-1][4]=n[4]);const r=di(t,ut+e);ns(n[1],s=n,s[11],2,null,null),s[0]=null,s[6]=null;const a=r[19];null!==a&&a.detachView(r[1]),n[3]=null,n[4]=null,n[2]&=-129}var s;return n}function Kn(t,e){if(!(256&e[2])){const i=e[11];Mt(i)&&i.destroyNode&&ns(t,e,i,3,null,null),function(t){let e=t[13];if(!e)return qn(t[1],t);for(;e;){let i=null;if(lt(e))i=e[13];else{const t=e[10];t&&(i=t)}if(!i){for(;e&&!e[4]&&e!==t;)lt(e)&&qn(e[1],e),e=e[3];null===e&&(e=t),lt(e)&&qn(e[1],e),i=e&&e[4]}e=i}}(e)}}function qn(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let i;if(null!=t&&null!=(i=t.destroyHooks))for(let n=0;n=0?n[s=c]():n[s=-c].unsubscribe(),o+=2}else{const t=n[s=i[o+1]];i[o].call(t)}if(null!==n){for(let t=s+1;to?"":s[l+1].toLowerCase();const e=8&n?t:null;if(e&&-1!==as(e,u,0)||2&n&&u!==t){if(ps(n))return!1;r=!0}}}}else{if(!r&&!ps(n)&&!ps(c))return!1;if(r&&ps(c))continue;r=!1,n=c|1&n}}return ps(n)||r}function ps(t){return 0==(1&t)}function fs(t,e,i,n){if(null===e)return-1;let s=0;if(n||!i){let i=!1;for(;s-1)for(i++;i0?'="'+e+'"':"")+"]"}else 8&n?s+="."+r:4&n&&(s+=" "+r);else""===s||ps(r)||(e+=_s(o,s),s=""),n=r,o=o||!ps(n);i++}return""!==s&&(e+=_s(o,s)),e}const ys={};function bs(t){As(Kt(),Nt(),ge()+t,Wt())}function As(t,e,i,n){if(!n)if(3==(3&e[2])){const n=t.preOrderCheckHooks;null!==n&&Ae(e,n,i)}else{const n=t.preOrderHooks;null!==n&&ve(e,n,0,i)}me(i)}function vs(t,e){return t<<17|e<<2}function ks(t){return t>>17&32767}function Ts(t){return 2|t}function Cs(t){return(131068&t)>>2}function Ss(t,e){return-131069&t|e<<2}function Ms(t){return 1|t}function Es(t,e){const i=t.contentQueries;if(null!==i)for(let n=0;nct&&As(t,e,ct,Wt()),i(n,s)}finally{me(o)}}function Os(t,e,i){if(dt(e)){const n=e.directiveEnd;for(let s=e.directiveStart;s0;){const i=t[--e];if("number"==typeof i&&i<0)return i}return 0})(i)!=o&&i.push(o),i.push(n,s,r)}}function Zs(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Gs(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Vs(t,e,i){if(i){if(e.exportAs)for(let n=0;n0&&io(i)}}function io(t){for(let i=On(t);null!==i;i=Hn(i))for(let t=ut;t0&&io(e)}const e=t[1].components;if(null!==e)for(let i=0;i0&&io(n)}}function no(t,e){const i=Pt(e,t),n=i[1];!function(t,e){for(let i=e.length;iPromise.resolve(null))();function lo(t){return t[7]||(t[7]=[])}function ho(t){return t.cleanup||(t.cleanup=[])}function po(t,e,i){return(null===t||gt(t))&&(i=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(i[e.index])),i[11]}function fo(t,e){const i=t[9],n=i?i.get(En,null):null;n&&n.handleError(e)}function go(t,e,i,n,s){for(let o=0;othis.processProvider(i,t,e)),li([t],t=>this.processInjectorType(t,[],s)),this.records.set(wo,Lo(void 0,this));const o=this.records.get(bo);this.scope=null!=o?o.value:null,this.source=n||("object"==typeof t?null:l(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=_i,i=L.Default){this.assertNotDestroyed();const n=vi(this);try{if(!(i&L.SkipSelf)){let e=this.records.get(t);if(void 0===e){const i=("function"==typeof(s=t)||"object"==typeof s&&s instanceof ri)&&v(t);e=i&&this.injectableDefInScope(i)?Lo(Mo(t),Ao):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(i&L.Self?To():this.parent).get(t,e=i&L.Optional&&e===_i?null:e)}catch(o){if("NullInjectorError"===o.name){if((o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(l(t)),n)throw o;return function(t,e,i,n){const s=t.ngTempTokenPath;throw e[yi]&&s.unshift(e[yi]),t.message=function(t,e,i,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=l(e);if(Array.isArray(e))s=e.map(l).join(" -> ");else if("object"==typeof e){let t=[];for(let i in e)if(e.hasOwnProperty(i)){let n=e[i];t.push(i+":"+("string"==typeof n?JSON.stringify(n):l(n)))}s=`{${t.join(", ")}}`}return`${i}${n?"("+n+")":""}[${s}]: ${t.replace(wi,"\n ")}`}("\n"+t.message,s,i,n),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(o,t,"R3InjectorError",this.source)}throw o}finally{vi(n)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,i)=>t.push(l(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,i){if(!(t=f(t)))return!1;let n=T(t);const s=null==n&&t.ngModule||void 0,o=void 0===s?t:s,r=-1!==i.indexOf(o);if(void 0!==s&&(n=T(s)),null==n)return!1;if(null!=n.imports&&!r){let t;i.push(o);try{li(n.imports,n=>{this.processInjectorType(n,e,i)&&(void 0===t&&(t=[]),t.push(n))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,i,n||N))}}this.injectorDefTypes.add(o);const a=mt(o)||(()=>new o);this.records.set(o,Lo(a,Ao));const c=n.providers;if(null!=c&&!r){const e=t;li(c,t=>this.processProvider(t,e,c))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,i){let n=Ro(t=f(t))?t:f(t&&t.provide);const s=function(t,e,i){return xo(t)?Lo(void 0,t.useValue):Lo(Eo(t),Ao)}(t);if(Ro(t)||!0!==t.multi)this.records.get(n);else{let e=this.records.get(n);e||(e=Lo(void 0,Ao,!0),e.factory=()=>Si(e.multi),this.records.set(n,e)),n=t,e.multi.push(t)}this.records.set(n,s)}hydrate(t,e){var i;return e.value===Ao&&(e.value=vo,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(i=e.value)&&"object"==typeof i&&"function"==typeof i.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=f(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Mo(t){const e=v(t),i=null!==e?e.factory:mt(t);if(null!==i)return i;if(t instanceof ri)throw new Error(`Token ${l(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const i=pi(e,"?");throw new Error(`Can't resolve all parameters for ${l(t)}: (${i.join(", ")}).`)}const i=function(t){const e=t&&(t[C]||t[M]);if(e){const i=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${i}" 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 "${i}" class.`),e}return null}(t);return null!==i?()=>i.factory(t):()=>new t}(t);throw new Error("unreachable")}function Eo(t,e,i){let n;if(Ro(t)){const e=f(t);return mt(e)||Mo(e)}if(xo(t))n=()=>f(t.useValue);else if((s=t)&&s.useFactory)n=()=>t.useFactory(...Si(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))n=()=>Ti(f(t.useExisting));else{const e=f(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return mt(e)||Mo(e);n=()=>new e(...Si(t.deps))}var s;return n}function Lo(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function xo(t){return null!==t&&"object"==typeof t&&bi in t}function Ro(t){return"function"==typeof t}const Do=function(t,e,i){return function(t,e=null,i=null,n){const s=Co(t,e,i,n);return s._resolveInjectorDefTypes(),s}({name:i},e,t,i)};let zo=(()=>{class t{static create(t,e){return Array.isArray(t)?Do(t,e,""):Do(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=_i,t.NULL=new yo,t.\u0275prov=b({token:t,providedIn:"any",factory:()=>Ti(wo)}),t.__NG_ELEMENT_ID__=-1,t})();function Po(t,e){be(Tn(t)[1],Ut())}function Io(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,i=!0;const n=[t];for(;e;){let s;if(gt(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(i){n.push(s);const e=t;e.inputs=Oo(t.inputs),e.declaredInputs=Oo(t.declaredInputs),e.outputs=Oo(t.outputs);const i=s.hostBindings;i&&Bo(t,i);const o=s.viewQuery,r=s.contentQueries;if(o&&Ho(t,o),r&&Yo(t,r),u(t.inputs,s.inputs),u(t.declaredInputs,s.declaredInputs),u(t.outputs,s.outputs),gt(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let n=0;n=0;n--){const s=t[n];s.hostVars=e+=s.hostVars,s.hostAttrs=Re(s.hostAttrs,i=Re(i,s.hostAttrs))}}(n)}function Oo(t){return t===F?{}:t===N?[]:t}function Ho(t,e){const i=t.viewQuery;t.viewQuery=i?(t,n)=>{e(t,n),i(t,n)}:e}function Yo(t,e){const i=t.contentQueries;t.contentQueries=i?(t,n,s)=>{e(t,n,s),i(t,n,s)}:e}function Bo(t,e){const i=t.hostBindings;t.hostBindings=i?(t,n)=>{e(t,n),i(t,n)}:e}let jo=null;function Fo(){if(!jo){const t=j.Symbol;if(t&&t.iterator)jo=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Lt(t[n.index])):n.index;if(Mt(i)){let r=null;if(!a&&c&&(r=function(t,e,i,n){const s=t.cleanup;if(null!=s)for(let o=0;oi?t[i]:null}"string"==typeof t&&(o+=2)}return null}(t,e,s,n.index)),null!==r)(r.__ngLastListenerFn__||r).__ngNextListenerFn__=o,r.__ngLastListenerFn__=o,h=!1;else{o=gr(n,e,0,o,!1);const t=i.listen(p,s,o);l.push(o,t),u&&u.push(s,g,f,f+1)}}else o=gr(n,e,0,o,!0),p.addEventListener(s,o,r),l.push(o),u&&u.push(s,g,f,r)}else o=gr(n,e,0,o,!1);const d=n.outputs;let p;if(h&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let i=0;i0;)e=e[15],t--;return e}(t,jt.lFrame.contextLView))[8]}(t)}function _r(t,e){let i=null;const n=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s=0}const Tr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Cr(t){return t.substring(Tr.key,Tr.keyEnd)}function Sr(t,e){const i=Tr.textEnd;return i===e?-1:(e=Tr.keyEnd=function(t,e,i){for(;e32;)e++;return e}(t,Tr.key=e,i),Mr(t,e,i))}function Mr(t,e,i){for(;e=0;i=Sr(e,i))fi(t,Cr(e),!0)}function Dr(t,e,i,n){const s=Nt(),o=Kt(),r=ee(2);o.firstUpdatePass&&Ir(o,t,r,n),e!==ys&&Zo(s,r,e)&&Yr(o,o.data[ge()],s,s[11],t,s[r+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=l(Fi(t)))),t}(e,i),n,r)}function zr(t,e,i,n){const s=Kt(),o=ee(2);s.firstUpdatePass&&Ir(s,null,o,n);const r=Nt();if(i!==ys&&Zo(r,o,i)){const a=s.data[ge()];if(Fr(a,n)&&!Pr(s,o)){let t=n?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(i=h(t,i||"")),tr(s,a,r,i,n)}else!function(t,e,i,n,s,o,r,a){s===ys&&(s=N);let c=0,u=0,l=0=t.expandoStartIndex}function Ir(t,e,i,n){const s=t.data;if(null===s[i+1]){const o=s[ge()],r=Pr(t,i);Fr(o,n)&&null===e&&!r&&(e=!1),e=function(t,e,i,n){const s=se(t);let o=n?e.residualClasses:e.residualStyles;if(null===s)0===(n?e.classBindings:e.styleBindings)&&(i=Hr(i=Or(null,t,e,i,n),e.attrs,n),o=null);else{const r=e.directiveStylingLast;if(-1===r||t[r]!==s)if(i=Or(s,t,e,i,n),null===o){let i=function(t,e,i){const n=i?e.classBindings:e.styleBindings;if(0!==Cs(n))return t[ks(n)]}(t,e,n);void 0!==i&&Array.isArray(i)&&(i=Or(null,t,e,i[1],n),i=Hr(i,e.attrs,n),function(t,e,i,n){t[ks(i?e.classBindings:e.styleBindings)]=n}(t,e,n,i))}else o=function(t,e,i){let n;const s=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0)&&(l=!0)}else u=i;if(s)if(0!==c){const e=ks(t[a+1]);t[n+1]=vs(e,a),0!==e&&(t[e+1]=Ss(t[e+1],n)),t[a+1]=131071&t[a+1]|n<<17}else t[n+1]=vs(a,0),0!==a&&(t[a+1]=Ss(t[a+1],n)),a=n;else t[n+1]=vs(c,0),0===a?a=n:t[c+1]=Ss(t[c+1],n),c=n;l&&(t[n+1]=Ts(t[n+1])),vr(t,u,n,!0),vr(t,u,n,!1),function(t,e,i,n,s){const o=s?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&mi(o,e)>=0&&(i[n+1]=Ms(i[n+1]))}(e,u,t,n,o),r=vs(a,c),o?e.classBindings=r:e.styleBindings=r}(s,o,e,i,r,n)}}function Or(t,e,i,n,s){let o=null;const r=i.directiveEnd;let a=i.directiveStylingLast;for(-1===a?a=i.directiveStart:a++;a0;){const e=t[s],o=Array.isArray(e),c=o?e[1]:e,u=null===c;let l=i[s+1];l===ys&&(l=u?N:void 0);let h=u?gi(l,n):c===n?l:void 0;if(o&&!jr(h)&&(h=gi(e,n)),jr(h)&&(a=h,r))return a;const d=t[s+1];s=r?ks(d):Cs(d)}if(null!==e){let t=o?e.residualClasses:e.residualStyles;null!=t&&(a=gi(t,n))}return a}function jr(t){return void 0!==t}function Fr(t,e){return 0!=(t.flags&(e?16:32))}function Nr(t,e=""){const i=Nt(),n=Kt(),s=t+ct,o=n.firstCreatePass?xs(n,s,1,e,null):n.data[s],r=i[s]=function(t,e){return Mt(t)?t.createText(e):t.createTextNode(e)}(i[11],e);Qn(n,i,r,o),Gt(o,!1)}function Kr(t){return qr("",t,""),Kr}function qr(t,e,i){const n=Nt(),s=$o(n,t,e,i);return s!==ys&&mo(n,ge(),s),qr}function Ur(t,e,i,n,s){const o=Nt(),r=function(t,e,i,n,s,o){const r=Go(t,Xt(),i,s);return ee(2),r?e+_(i)+n+_(s)+o:ys}(o,t,e,i,n,s);return r!==ys&&mo(o,ge(),r),Ur}function Zr(t,e,i,n,s,o,r,a,c,u,l){const h=Nt(),d=function(t,e,i,n,s,o,r,a,c,u,l,h){const d=Xt();let p=function(t,e,i,n,s,o){const r=Go(t,e,i,n);return Go(t,e+2,s,o)||r}(t,d,i,s,r,c);return p=Zo(t,d+4,l)||p,ee(5),p?e+_(i)+n+_(s)+o+_(r)+a+_(c)+u+_(l)+h:ys}(h,t,e,i,n,s,o,r,a,c,u,l);return d!==ys&&mo(h,ge(),d),Zr}function Gr(t,e,i){zr(fi,Rr,$o(Nt(),t,e,i),!0)}function Vr(t,e,i){const n=Nt();return Zo(n,te(),e)&&Ks(Kt(),_e(),n,t,e,n[11],i,!0),Vr}function $r(t,e,i){const n=Nt();if(Zo(n,te(),e)){const s=Kt(),o=_e();Ks(s,o,n,t,e,po(se(s.data),o,n),i,!0)}return $r}const Wr=void 0;var Jr=["en",[["a","p"],["AM","PM"],Wr],[["AM","PM"],Wr,Wr],[["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"]],Wr,[["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"]],Wr,[["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}",Wr,"{1} 'at' {0}",Wr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let Qr={};function Xr(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let i=ea(e);if(i)return i;const n=e.split("-")[0];if(i=ea(n),i)return i;if("en"===n)return Jr;throw new Error(`Missing locale data for the locale "${t}".`)}function ta(t){return Xr(t)[ia.PluralCase]}function ea(t){return t in Qr||(Qr[t]=j.ng&&j.ng.common&&j.ng.common.locales&&j.ng.common.locales[t]),Qr[t]}var ia=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});const na="en-US";let sa=na;function oa(t){var e,i;i="Expected localeId to be defined",null==(e=t)&&function(t,e,i,n){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(i,e),"string"==typeof t&&(sa=t.toLowerCase().replace(/_/g,"-"))}function ra(t,e,i,n,s){if(t=f(t),Array.isArray(t))for(let o=0;o>20;if(Ro(t)||!t.multi){const n=new Me(c,s,Qo),p=ua(a,e,s?l:l+d,h);-1===p?(Ke(Be(u,r),o,a),aa(o,t,e.length),e.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),i.push(n),r.push(n)):(i[p]=n,r[p]=n)}else{const p=ua(a,e,l+d,h),f=ua(a,e,l,l+d),g=p>=0&&i[p],m=f>=0&&i[f];if(s&&!m||!s&&!g){Ke(Be(u,r),o,a);const l=function(t,e,i,n,s){const o=new Me(t,i,Qo);return o.multi=[],o.index=e,o.componentProviders=0,ca(o,s,n&&!i),o}(s?ha:la,i.length,s,n,c);!s&&m&&(i[f].providerFactory=l),aa(o,t,e.length,0),e.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),i.push(l),r.push(l)}else aa(o,t,p>-1?p:f,ca(i[s?f:p],c,!s&&n));!s&&n&&m&&i[f].componentProviders++}}}function aa(t,e,i,n){const s=Ro(e);if(s||e.useClass){const o=(e.useClass||e).prototype.ngOnDestroy;if(o){const r=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=r.indexOf(i);-1===t?r.push(i,[n,o]):r[t+1].push(n,o)}else r.push(i,o)}}}function ca(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function ua(t,e,i,n){for(let s=i;s{i.providersResolver=(i,n)=>function(t,e,i){const n=Kt();if(n.firstCreatePass){const s=gt(t);ra(i,n.data,n.blueprint,s,!0),ra(e,n.data,n.blueprint,s,!1)}}(i,n?n(t):t,e)}}class fa{}class ga{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${l(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let ma=(()=>{class t{}return t.NULL=new ga,t})();function _a(...t){}function wa(t,e){return new ba(Rt(t,e))}const ya=function(){return wa(Ut(),Nt())};let ba=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=ya,t})();function Aa(t){return t instanceof ba?t.nativeElement:t}class va{}let ka=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ta(),t})();const Ta=function(){const t=Nt(),e=Pt(Ut().index,t);return function(t){return t[11]}(lt(e)?e:t)};let Ca=(()=>{class t{}return t.\u0275prov=b({token:t,providedIn:"root",factory:()=>null}),t})();class Sa{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ma=new Sa("12.0.5");class Ea{constructor(){}supports(t){return Ko(t)}create(t){return new xa(t)}}const La=(t,e)=>e;class xa{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||La}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,n=0,s=null;for(;e||i;){const o=!i||e&&e.currentIndex{n=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,n)?(o&&(s=this._verifyReinsertion(s,t,n,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,n,e),o=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,n){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,n)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,n))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,n)):t=this._addAfter(new Ra(e,i),s,n),t}_verifyReinsertion(t,e,i,n){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,n):t.currentIndex!=n&&(t.currentIndex=n,this._addToMoves(t,n)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const n=t._prevRemoved,s=t._nextRemoved;return null===n?this._removalsHead=s:n._nextRemoved=s,null===s?this._removalsTail=n:s._prevRemoved=n,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const n=null===e?this._itHead:e._next;return t._next=n,t._prev=e,null===n?this._itTail=t:n._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new za),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new za),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Ra{constructor(t,e){this.item=t,this.trackById=e,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 Da{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class za{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new Da,this.map.set(e,i)),i.add(t)}get(t,e){const i=this.map.get(t);return i?i.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Pa(t,e,i){const n=t.previousIndex;if(null===n)return n;let s=0;return i&&n{if(e&&e.key===i)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const n=this._getOrCreateRecordForKey(i,t);e=this._insertBeforeOrAppend(e,n)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,e);const n=i._prev,s=i._next;return n&&(n._next=s),s&&(s._prev=n),i._next=null,i._prev=null,i}const i=new Ha(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class Ha{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Ya(){return new Ba([new Ea])}let Ba=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(null!=i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Ya()),deps:[[t,new xi,new Li]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${i=t,i.name||typeof i}'`);var i}}return t.\u0275prov=b({token:t,providedIn:"root",factory:Ya}),t})();function ja(){return new Fa([new Ia])}let Fa=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||ja()),deps:[[t,new xi,new Li]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=b({token:t,providedIn:"root",factory:ja}),t})();function Na(t,e,i,n,s=!1){for(;null!==i;){const o=e[i.index];if(null!==o&&n.push(Lt(o)),ht(o))for(let t=ut;t-1&&(Nn(t,i),di(e,i))}this._attachedToViewContainer=!1}Kn(this._lView[1],this._lView)}onDestroy(t){Fs(this._lView[1],this._lView,null,t)}markForCheck(){oo(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ro(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,i){Jt(!0);try{ro(t,e,i)}finally{Jt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,ns(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class qa extends Ka{constructor(t){super(t),this._view=t}detectChanges(){ao(this._view)}checkNoChanges(){!function(t){Jt(!0);try{ao(t)}finally{Jt(!1)}}(this._view)}get context(){return null}}const Ua=function(t){return function(t,e,i){if(pt(t)&&!i){const i=Pt(t.index,e);return new Ka(i,i)}return 47&t.type?new Ka(e[16],e):null}(Ut(),Nt(),16==(16&t))};let Za=(()=>{class t{}return t.__NG_ELEMENT_ID__=Ua,t})();const Ga=[new Ia],Va=new Ba([new Ea]),$a=new Fa(Ga),Wa=function(){return tc(Ut(),Nt())};let Ja=(()=>{class t{}return t.__NG_ELEMENT_ID__=Wa,t})();const Qa=Ja,Xa=class extends Qa{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=Ls(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const n=this._declarationLView[19];return null!==n&&(i[19]=n.createEmbeddedView(e)),Ds(e,i,t),new Ka(i)}};function tc(t,e){return 4&t.type?new Xa(e,t,wa(t,e)):null}class ec{}class ic{}const nc=function(){return uc(Ut(),Nt())};let sc=(()=>{class t{}return t.__NG_ELEMENT_ID__=nc,t})();const oc=sc,rc=class extends oc{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return wa(this._hostTNode,this._hostLView)}get injector(){return new ti(this._hostTNode,this._hostLView)}get parentInjector(){const t=Ne(this._hostTNode,this._hostLView);if(ze(t)){const e=Ie(t,this._hostLView),i=Pe(t);return new ti(e[1].data[i+8],e)}return new ti(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=ac(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-ut}createEmbeddedView(t,e,i){const n=t.createEmbeddedView(e||{});return this.insert(n,i),n}createComponent(t,e,i,n,s){const o=i||this.parentInjector;if(!s&&null==t.ngModule&&o){const t=o.get(ec,null);t&&(s=t)}const r=t.create(o,n,void 0,s);return this.insert(r.hostView,e),r}insert(t,e){const i=t._lView,n=i[1];if(ht(i[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=i[3],n=new rc(e,e[6],e[3]);n.detach(n.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function(t,e,i,n){const s=ut+n,o=i.length;n>0&&(i[s-1][4]=e),nLn});class fc extends fa{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(ws).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return dc(this.componentDef.inputs)}get outputs(){return dc(this.componentDef.outputs)}create(t,e,i,n){const s=(n=n||this.ngModule)?function(t,e){return{get:(i,n,s)=>{const o=t.get(i,lc,s);return o!==lc||n===lc?o:e.get(i,n,s)}}}(t,n.injector):t,o=s.get(va,Et),r=s.get(Ca,null),a=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function(t,e,i){if(Mt(t))return t.selectRootElement(e,i===I.ShadowDom);let n="string"==typeof e?t.querySelector(e):e;return n.textContent="",n}(a,i,this.componentDef.encapsulation):jn(o.createRenderer(null,this.componentDef),c,function(t){const e=t.toLowerCase();return"svg"===e?kt:"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),l=this.componentDef.onPush?576:528,h={components:[],scheduler:Ln,clean:uo,playerHandler:null,flags:0},d=js(0,null,null,1,0,null,null,null,null,null),p=Ls(null,d,h,l,null,null,o,a,r,s);let f,g;ue(p);try{const t=function(t,e,i,n,s,o){const r=i[1];i[20]=t;const a=xs(r,20,2,"#host",null),c=a.mergedAttrs=e.hostAttrs;null!==c&&(_o(a,c,!0),null!==t&&(Ee(s,t,c),null!==a.classes&&rs(s,t,a.classes),null!==a.styles&&os(s,t,a.styles)));const u=n.createRenderer(t,e),l=Ls(i,Bs(e),null,e.onPush?64:16,i[20],a,n,u,null,null);return r.firstCreatePass&&(Ke(Be(a,i),r,e.type),Gs(r,a),$s(a,i.length,1)),so(i,l),i[20]=l}(u,this.componentDef,p,o,a);if(u)if(i)Ee(a,u,["ng-version",Ma.full]);else{const{attrs:t,classes:e}=function(t){const e=[],i=[];let n=1,s=2;for(;n0&&rs(a,u,e.join(" "))}if(g=Dt(d,ct),void 0!==e){const t=g.projection=[];for(let i=0;it(r,e)),e.contentQueries){const t=Ut();e.contentQueries(1,r,t.directiveStart)}const a=Ut();return!o.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(me(a.index),Us(i[1],a,0,a.directiveStart,a.directiveEnd,e),Zs(e,r)),r}(t,this.componentDef,p,h,[Po]),Ds(d,p,null)}finally{fe()}return new gc(this.componentType,f,wa(g,p),p,g)}}class gc extends class{}{constructor(t,e,i,n,s){super(),this.location=i,this._rootLView=n,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new qa(n),this.componentType=t}get injector(){return new ti(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const mc=new Map;class _c extends ec{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new hc(this);const i=at(t),n=t[G]||null;n&&oa(n),this._bootstrapComponents=Dn(i.bootstrap),this._r3Injector=Co(t,e,[{provide:ec,useValue:this},{provide:ma,useValue:this.componentFactoryResolver}],l(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=zo.THROW_IF_NOT_FOUND,i=L.Default){return t===zo||t===ec||t===wo?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class wc extends ic{constructor(t){super(),this.moduleType=t,null!==at(t)&&function(t){const e=new Set;!function t(i){const n=at(i,!0),s=n.id;null!==s&&(function(t,e,i){if(e&&e!==i)throw new Error(`Duplicate module registered for ${t} - ${l(e)} vs ${l(e.name)}`)}(s,mc.get(s),i),mc.set(s,i));const o=Dn(n.imports);for(const r of o)e.has(r)||(e.add(r),t(r))}(t)}(t)}create(t){return new _c(this.moduleType,t)}}function yc(t,e,i){const n=Qt()+t,s=Nt();return s[n]===ys?Uo(s,n,i?e.call(i):e()):function(t,e){return t[e]}(s,n)}function bc(t,e,i,n){return kc(Nt(),Qt(),t,e,i,n)}function Ac(t,e,i,n,s){return Tc(Nt(),Qt(),t,e,i,n,s)}function vc(t,e){const i=t[e];return i===ys?void 0:i}function kc(t,e,i,n,s,o){const r=e+i;return Zo(t,r,s)?Uo(t,r+1,o?n.call(o,s):n(s)):vc(t,r+1)}function Tc(t,e,i,n,s,o,r){const a=e+i;return Go(t,a,s,o)?Uo(t,a+2,r?n.call(r,s,o):n(s,o)):vc(t,a+2)}function Cc(t,e){const i=Kt();let n;const s=t+ct;i.firstCreatePass?(n=function(t,e){if(e)for(let i=e.length-1;i>=0;i--){const n=e[i];if(t===n.name)return n}throw new m("302",`The pipe '${t}' could not be found!`)}(e,i.pipeRegistry),i.data[s]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(s,n.onDestroy)):n=i.data[s];const o=n.factory||(n.factory=mt(n.type)),r=R(Qo);try{const t=He(!1),e=o();return He(t),function(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}(i,Nt(),s,e),e}finally{R(r)}}function Sc(t,e,i){const n=t+ct,s=Nt(),o=zt(s,n);return xc(s,Lc(s,n)?kc(s,Qt(),e,o.transform,i,o):o.transform(i))}function Mc(t,e,i,n){const s=t+ct,o=Nt(),r=zt(o,s);return xc(o,Lc(o,s)?Tc(o,Qt(),e,r.transform,i,n,r):r.transform(i,n))}function Ec(t,e,i,n,s){const o=t+ct,r=Nt(),a=zt(r,o);return xc(r,Lc(r,o)?function(t,e,i,n,s,o,r,a){const c=e+i;return function(t,e,i,n,s){const o=Go(t,e,i,n);return Zo(t,e+2,s)||o}(t,c,s,o,r)?Uo(t,c+3,a?n.call(a,s,o,r):n(s,o,r)):vc(t,c+3)}(r,Qt(),e,a.transform,i,n,s,a):a.transform(i,n,s))}function Lc(t,e){return t[1].data[e].pure}function xc(t,e){return No.isWrapped(e)&&(e=No.unwrap(e),t[Xt()]=ys),e}function Rc(t){return e=>{setTimeout(t,void 0,e)}}const Dc=class extends n.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var n,o,r;let a=t,c=e||(()=>null),u=i;if(t&&"object"==typeof t){const e=t;a=null===(n=e.next)||void 0===n?void 0:n.bind(e),c=null===(o=e.error)||void 0===o?void 0:o.bind(e),u=null===(r=e.complete)||void 0===r?void 0:r.bind(e)}this.__isAsync&&(c=Rc(c),a&&(a=Rc(a)),u&&(u=Rc(u)));const l=super.subscribe({next:a,error:c,complete:u});return t instanceof s.w&&t.add(l),l}};function zc(){return this._results[Fo()]()}class Pc{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Fo(),i=Pc.prototype;i[e]||(i[e]=zc)}get changes(){return this._changes||(this._changes=new Dc)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const n=ui(t);(this._changesDetected=!function(t,e,i){if(t.length!==e.length)return!1;for(let n=0;n0)n.push(r[t/2]);else{const s=o[t+1],r=e[-i];for(let t=ut;t{class t{constructor(t){this.appInits=t,this.resolve=_a,this.reject=_a,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{e.subscribe({complete:t,error:i})});t.push(i)}}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Ti(Qc,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();const tu=new ri("AppId"),eu={provide:tu,useFactory:function(){return`${iu()}${iu()}${iu()}`},deps:[]};function iu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const nu=new ri("Platform Initializer"),su=new ri("Platform ID"),ou=new ri("appBootstrapListener");let ru=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();const au=new ri("LocaleId"),cu=new ri("DefaultCurrencyCode");class uu{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const lu=function(t){return new wc(t)},hu=lu,du=function(t){return Promise.resolve(lu(t))},pu=function(t){const e=lu(t),i=Dn(at(t).declarations).reduce((t,e)=>{const i=rt(e);return i&&t.push(new fc(i)),t},[]);return new uu(e,i)},fu=pu,gu=function(t){return Promise.resolve(pu(t))};let mu=(()=>{class t{constructor(){this.compileModuleSync=hu,this.compileModuleAsync=du,this.compileModuleAndAllComponentsSync=fu,this.compileModuleAndAllComponentsAsync=gu}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();const _u=(()=>Promise.resolve(0))();function wu(t){"undefined"==typeof Zone?_u.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class yu{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Dc(!1),this.onMicrotaskEmpty=new Dc(!1),this.onStable=new Dc(!1),this.onError=new Dc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=!i&&e,n.shouldCoalesceRunChangeDetection=i,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let t=j.requestAnimationFrame,e=j.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(j,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,vu(t),t.isCheckStableRunning=!0,Au(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),vu(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,s,o,r,a)=>{try{return ku(t),i.invokeTask(s,o,r,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&e(),Tu(t)}},onInvoke:(i,n,s,o,r,a,c)=>{try{return ku(t),i.invoke(s,o,r,a,c)}finally{t.shouldCoalesceRunChangeDetection&&e(),Tu(t)}},onHasTask:(e,i,n,s)=>{e.hasTask(n,s),i===n&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,vu(t),Au(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,n,s)=>(e.handleError(n,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!yu.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(yu.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,n){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+n,t,bu,_a,_a);try{return s.runTask(o,e,i)}finally{s.cancelTask(o)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const bu={};function Au(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function vu(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function ku(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Tu(t){t._nesting--,Au(t)}class Cu{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Dc,this.onMicrotaskEmpty=new Dc,this.onStable=new Dc,this.onError=new Dc}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,n){return t.apply(e,i)}}let Su=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{yu.assertNotInAngularZone(),wu(()=>{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())wu(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,i){let n=-1;e&&e>0&&(n=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==n),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:n,updateCb:i})}whenStable(t,e,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,e,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,i){return[]}}return t.\u0275fac=function(e){return new(e||t)(Ti(yu))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})(),Mu=(()=>{class t{constructor(){this._applications=new Map,Ru.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Ru.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();class Eu{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}function Lu(t){Ru=t}let xu,Ru=new Eu,Du=!0,zu=!1;function Pu(){return zu=!0,Du}function Iu(){if(zu)throw new Error("Cannot enable prod mode after platform setup.");Du=!1}const Ou=new ri("AllowMultipleToken");class Hu{constructor(t,e){this.name=t,this.token=e}}function Yu(t,e,i=[]){const n=`Platform: ${e}`,s=new ri(n);return(e=[])=>{let o=Bu();if(!o||o.injector.get(Ou,!1))if(t)t(i.concat(e).concat({provide:s,useValue:!0}));else{const t=i.concat(e).concat({provide:s,useValue:!0},{provide:bo,useValue:"platform"});!function(t){if(xu&&!xu.destroyed&&!xu.injector.get(Ou,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");xu=t.get(ju);const e=t.get(nu,null);e&&e.forEach(t=>t())}(zo.create({providers:t,name:n}))}return function(t){const e=Bu();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function Bu(){return xu&&!xu.destroyed?xu:null}let ju=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const i=function(t,e){let i;return i="noop"===t?new Cu:("zone.js"===t?void 0:t)||new yu({enableLongStackTrace:Pu(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),i}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),n=[{provide:yu,useValue:i}];return i.run(()=>{const e=zo.create({providers:n,parent:this.injector,name:t.moduleType.name}),s=t.create(e),o=s.injector.get(En,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.runOutsideAngular(()=>{const t=i.onError.subscribe({next:t=>{o.handleError(t)}});s.onDestroy(()=>{Ku(this._modules,s),t.unsubscribe()})}),function(t,e,i){try{const n=i();return cr(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}(o,i,()=>{const t=s.injector.get(Xc);return t.runInitializers(),t.donePromise.then(()=>(oa(s.injector.get(au,na)||na),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const i=Fu({},e);return function(t,e,i){const n=new wc(i);return Promise.resolve(n)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,i))}_moduleDoBootstrap(t){const e=t.injector.get(Nu);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${l(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Ti(zo))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();function Fu(t,e){return Array.isArray(e)?e.reduce(Fu,t):Object.assign(Object.assign({},t),e)}let Nu=(()=>{class t{constructor(t,e,i,n,s){this._zone=t,this._injector=e,this._exceptionHandler=i,this._componentFactoryResolver=n,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const c=new o.y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),u=new o.y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{yu.assertNotInAngularZone(),wu(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const i=this._zone.onUnstable.subscribe(()=>{yu.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),i.unsubscribe()}});this.isStable=(0,r.T)(c,u.pipe((0,a.B)()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let i;i=t instanceof fa?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(i.componentType);const n=i.isBoundToModule?void 0:this._injector.get(ec),s=i.create(zo.NULL,[],e||i.selector,n),o=s.location.nativeElement,r=s.injector.get(Su,null),a=r&&s.injector.get(Mu);return r&&a&&a.registerApplication(o,r),s.onDestroy(()=>{this.detachView(s.hostView),Ku(this.components,s),a&&a.unregisterApplication(o)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Ku(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(ou,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Ti(yu),Ti(zo),Ti(En),Ti(ma),Ti(Xc))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();function Ku(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}class qu{}class Uu{}const Zu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Gu=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Zu}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,n]=t.split("#");return void 0===n&&(n="default"),i(3619)(e).then(t=>t[n]).then(t=>Vu(t,e,n)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,n]=t.split("#"),s="NgFactory";return void 0===n&&(n="default",s=""),i(3619)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[n+s]).then(t=>Vu(t,e,n))}}return t.\u0275fac=function(e){return new(e||t)(Ti(mu),Ti(Uu,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();function Vu(t,e,i){if(!t)throw new Error(`Cannot find '${i}' in '${e}'`);return t}const $u=function(t){return null},Wu=Yu(null,"core",[{provide:su,useValue:"unknown"},{provide:ju,deps:[zo]},{provide:Mu,deps:[]},{provide:ru,deps:[]}]),Ju=[{provide:Nu,useClass:Nu,deps:[yu,zo,En,ma,Xc]},{provide:pc,deps:[yu],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Xc,useClass:Xc,deps:[[new Li,Qc]]},{provide:mu,useClass:mu,deps:[]},eu,{provide:Ba,useFactory:function(){return Va},deps:[]},{provide:Fa,useFactory:function(){return $a},deps:[]},{provide:au,useFactory:function(t){return oa(t=t||"undefined"!=typeof $localize&&$localize.locale||na),t},deps:[[new Ei(au),new Li,new xi]]},{provide:cu,useValue:"USD"}];let Qu=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(Ti(Nu))},t.\u0275mod=et({type:t}),t.\u0275inj=A({providers:Ju}),t})()},2623:(module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{zr:()=>OAuthModule,Ct:()=>OAuthService});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1572),_angular_common__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(1511),_angular_common_http__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(9063),tslib__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(7632),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5959),rxjs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(878),rxjs__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(9764),rxjs__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(3875),rxjs__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(1225),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(1305),rxjs__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(1906),rxjs_operators__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3835),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6599),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(7701),rxjs_operators__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(509),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(4689),rxjs_operators__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(9996),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(3530),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(7727),rxjs_operators__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(9085),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(611),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(3982);module=__webpack_require__.hmd(module);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class t extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(t)))(i||t)}}(),t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class t{constructor(){this.data=new Map}getItem(t){return this.data.get(t)}removeItem(t){this.data.delete(t)}setItem(t,e){this.data.set(t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();class ReceivedTokens{}function b64DecodeUnicode(t){const e=t.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(e).split("").map(function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(t){return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(t){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){let e=this.inferHashAlgorithm(t.idTokenHeader),i=yield this.calcHash(t.accessToken,e),n=base64UrlEncode(i.substr(0,i.length/2)),s=t.idTokenClaims.at_hash.replace(/=/g,"");return n!==s&&(console.error("exptected at_hash: "+n),console.error("actual at_hash: "+s)),n===s})}inferHashAlgorithm(t){let e=t.alg;if(!e.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+e);return"sha-"+e.substr(2)}}let UrlHelperService=(()=>{class t{getHashFragmentParams(t){let e=t||window.location.hash;if(e=decodeURIComponent(e),0!==e.indexOf("#"))return{};const i=e.indexOf("?");return e=e.substr(i>-1?i+1:1),this.parseQueryString(e)}parseQueryString(t){const e={};let i,n,s,o,r,a,c;if(null===t)return e;i=t.split("&");for(let u=0;u{location.href=t},t&&Object.assign(this,t)}}class WebHttpUrlEncodingCodec{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&module.exports,AMD="function"==typeof define&&__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[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],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t,e){return function(i){return new Sha256(e,!0).update(i)[t]()}};const \u02750=createOutputMethod;var createMethod=function(t){var e=createOutputMethod("hex",t);NODE_JS&&(e=nodeWrap(e,t)),e.create=function(){return new Sha256(t)},e.update=function(t){return e.create().update(t)};for(var i=0;i>6,r[c++]=128|63&o):o<55296||o>=57344?(r[c++]=224|o>>12,r[c++]=128|o>>6&63,r[c++]=128|63&o):(o=65536+((1023&o)<<10|1023&t.charCodeAt(++n)),r[c++]=240|o>>18,r[c++]=128|o>>12&63,r[c++]=128|o>>6&63,r[c++]=128|63&o);t=r}else{if("object"!==s)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR)}t.length>64&&(t=new Sha256(e,!0).update(t).array());var u=[],l=[];for(n=0;n<64;++n){var h=t[n]||0;u[n]=92^h,l[n]=54^h}Sha256.call(this,e,i),this.update(l),this.oKeyPad=u,this.inner=!0,this.sharedMemory=i}Sha256.prototype.update=function(t){if(!this.finalized){var e,i=typeof t;if("string"!==i){if("object"!==i)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR);e=!0}for(var n,s,o=0,r=t.length,a=this.blocks;o>2]|=t[o]<>2]|=n<>2]|=(192|n>>6)<>2]|=(128|63&n)<=57344?(a[s>>2]|=(224|n>>12)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<>2]|=(240|n>>18)<>2]|=(128|n>>12&63)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<=64?(this.block=a[16],this.start=s-64,this.hash(),this.hashed=!0):this.start=s}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 t=this.blocks,e=this.lastByteIndex;t[16]=this.block,t[e>>2]|=EXTRA[3&e],this.block=t[16],e>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var t,e,i,n,s,o,r=this.h0,a=this.h1,c=this.h2,u=this.h3,l=this.h4,h=this.h5,d=this.h6,p=this.h7,f=this.blocks;for(t=16;t<64;++t)f[t]=f[t-16]+(((e=f[t-15])>>>7|e<<25)^(e>>>18|e<<14)^e>>>3)+f[t-7]+(((e=f[t-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)<<0;for(o=a&c,t=0;t<64;t+=4)this.first?(this.is224?(i=300032,p=(e=f[0]-1413257819)-150054599<<0,u=e+24177077<<0):(i=704751109,p=(e=f[0]-210244248)-1521486534<<0,u=e+143694565<<0),this.first=!1):(p=u+(e=p+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&h^~l&d)+K[t]+f[t])<<0,u=e+(((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+((i=r&a)^r&c^o))<<0),d=c+(e=d+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&l^~p&h)+K[t+1]+f[t+1])<<0,c=e+(((u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10))+((n=u&r)^u&a^i))<<0,h=a+(e=h+((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&p^~d&l)+K[t+2]+f[t+2])<<0,a=e+(((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+((s=c&u)^c&r^n))<<0,l=r+(e=l+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&d^~h&p)+K[t+3]+f[t+3])<<0,r=e+(((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+((o=a&c)^a&u^s))<<0;this.h0=this.h0+r<<0,this.h1=this.h1+a<<0,this.h2=this.h2+c<<0,this.h3=this.h3+u<<0,this.h4=this.h4+l<<0,this.h5=this.h5+h<<0,this.h6=this.h6+d<<0,this.h7=this.h7+p<<0},Sha256.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,i=this.h2,n=this.h3,s=this.h4,o=this.h5,r=this.h6,a=this.h7,c=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[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[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[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[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]+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]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r];return this.is224||(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]),c},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,i=this.h2,n=this.h3,s=this.h4,o=this.h5,r=this.h6,a=this.h7,c=[t>>24&255,t>>16&255,t>>8&255,255&t,e>>24&255,e>>16&255,e>>8&255,255&e,i>>24&255,i>>16&255,i>>8&255,255&i,n>>24&255,n>>16&255,n>>8&255,255&n,s>>24&255,s>>16&255,s>>8&255,255&s,o>>24&255,o>>16&255,o>>8&255,255&o,r>>24&255,r>>16&255,r>>8&255,255&r];return this.is224||c.push(a>>24&255,a>>16&255,a>>8&255,255&a),c},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(this.is224?28:32),e=new DataView(t);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),e.setUint32(20,this.h5),e.setUint32(24,this.h6),this.is224||e.setUint32(28,this.h7),t},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(t),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0);class HashHandler{}let DefaultHashHandler=(()=>{class t{calcHash(t,e){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){const e=exports.array(t);return this.toHashString2(e)})}toHashString2(t){let e="";for(let i of t)e+=String.fromCharCode(i);return e}toHashString(t){const e=new Uint8Array(t);let i="";for(let n of e)i+=String.fromCharCode(n);return i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})(),OAuthService=(()=>{class t extends AuthConfig{constructor(t,e,i,n,s,o,r,a,c,u){var l;super(),this.ngZone=t,this.http=e,this.config=s,this.urlHelper=o,this.logger=r,this.crypto=a,this.dateTimeService=u,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_2__.xQ,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_2__.xQ,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=c,s||(s={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),n&&(this.tokenValidationHandler=n),s&&this.configure(s);try{i?this.setStorage(i):"undefined"!=typeof sessionStorage&&this.setStorage(sessionStorage)}catch(h){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",h)}if("undefined"!=typeof window&&void 0!==window.localStorage){const t=null===(l=null===window||void 0===window?void 0:window.navigator)||void 0===l?void 0:l.userAgent;((null==t?void 0:t.includes("MSIE "))||(null==t?void 0:t.includes("Trident")))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}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_3__.h)(t=>"token_received"===t.type)).subscribe(t=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(t={},e,i=!0){let n=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.b)(t=>{"token_received"===t.type?n=!0:"logout"===t.type&&(n=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>"token_expires"===t.type&&(null==e||"any"===e||t.info===e)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(1e3)).subscribe(e=>{n&&this.refreshInternal(t,i).catch(t=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(t,e){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(t,e):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(t=null){return this.loadDiscoveryDocument().then(e=>this.tryLogin(t))}loadDiscoveryDocumentAndLogin(t=null){return this.loadDiscoveryDocumentAndTryLogin(t=t||{}).then(e=>!(!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 e=[],i=this.validateUrlForHttps(t),n=this.validateUrlAgainstIssuer(t);return i||e.push("https for all urls required. Also for urls received by discovery."),n||e.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),e}validateUrlForHttps(t){if(!t)return!0;const e=t.toLowerCase();return!1===this.requireHttps||!(!e.match(/^http:\/\/localhost($|[:\/])/)&&!e.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps)||e.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(t,e){if(!t)throw new Error(`'${e}' should not be null`);if(!this.validateUrlForHttps(t))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(t){return!this.strictDiscoveryDocumentValidation||!t||t.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){"undefined"!=typeof window?((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_3__.h)(t=>"token_received"===t.type)).subscribe(t=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})):this.debug("timer not supported on this plattform")}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const t=this.getAccessTokenExpiration(),e=this.getAccessTokenStoredAt(),i=this.calcTimeout(e,t);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.g)(i)).subscribe(t=>{this.ngZone.run(()=>{this.eventsSubject.next(t)})})})}setupIdTokenTimer(){const t=this.getIdTokenExpiration(),e=this.getIdTokenStoredAt(),i=this.calcTimeout(e,t);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.g)(i)).subscribe(t=>{this.ngZone.run(()=>{this.eventsSubject.next(t)})})})}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,e){const i=this.dateTimeService.now();return Math.max(0,(e-t)*this.timeoutFactor-(i-t))}setStorage(t){this._storage=t,this.configChanged()}loadDiscoveryDocument(t=null){return new Promise((e,i)=>{t||((t=this.issuer||"").endsWith("/")||(t+="/"),t+=".well-known/openid-configuration"),this.validateUrlForHttps(t)?this.http.get(t).subscribe(t=>{if(!this.validateDiscoveryDocument(t))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void i("discovery_document_validation_error");this.loginUrl=t.authorization_endpoint,this.logoutUrl=t.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=t.grant_types_supported,this.issuer=t.issuer,this.tokenEndpoint=t.token_endpoint,this.userinfoEndpoint=t.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=t.jwks_uri,this.sessionCheckIFrameUrl=t.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(t),this.revocationEndpoint=t.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(i=>{const n=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:t,jwks:i});this.eventsSubject.next(n),e(n)}).catch(t=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",t)),i(t)})},t=>{this.logger.error("error loading discovery document",t),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",t)),i(t)}):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,e)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(e=>{this.jwks=e,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),t(e)},t=>{this.logger.error("error loading jwks",t),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",t)),e(t)}):t(null)})}validateDiscoveryDocument(t){let e;return this.skipIssuerCheck||t.issuer===this.issuer?(e=this.validateUrlFromDiscoveryDocument(t.authorization_endpoint),e.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(t.end_session_endpoint),e.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(t.token_endpoint),e.length>0&&this.logger.error("error validating token_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(t.revocation_endpoint),e.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(t.userinfo_endpoint),e.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(t.jwks_uri),e.length>0?(this.logger.error("error validating jwks_uri in discovery document",e),!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,e,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM){return this.fetchTokenUsingPasswordFlow(t,e,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,e)=>{const i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:i,observe:"response",responseType:"text"}).subscribe(i=>{if(this.debug("userinfo received",JSON.stringify(i)),i.headers.get("content-type").startsWith("application/json")){let n=JSON.parse(i.body);const s=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!s.sub||n.sub!==s.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");n=Object.assign({},s,n),this._storage.setItem("id_token_claims_obj",JSON.stringify(n)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),t({info:n})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),t(JSON.parse(i.body))},t=>{this.logger.error("error loading user info",t),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",t)),e(t)})})}fetchTokenUsingPasswordFlow(t,e,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM){return this.fetchTokenUsingGrant("password",{username:t,password:e},i)}fetchTokenUsingGrant(t,e,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",t).set("scope",this.scope);if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+t)}if(this.useHttpBasicAuth||(n=n.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(n=n.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const s of Object.getOwnPropertyNames(this.customQueryParams))n=n.set(s,this.customQueryParams[s]);for(const s of Object.keys(e))n=n.set(s,e[s]);return i=i.set("Content-Type","application/x-www-form-urlencoded"),new Promise((t,e)=>{this.http.post(this.tokenEndpoint,n,{headers:i}).subscribe(e=>{this.debug("tokenResponse",e),this.storeAccessTokenResponse(e.access_token,e.refresh_token,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,e.scope,this.extractRecognizedCustomParameters(e)),this.oidc&&e.id_token&&this.processIdToken(e.id_token,e.access_token).then(i=>{this.storeIdToken(i),t(e)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),t(e)},t=>{this.logger.error("Error performing ${grantType} flow",t),this.eventsSubject.next(new OAuthErrorEvent("token_error",t)),e(t)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((t,e)=>{let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),n=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);n=n.set("Authorization","Basic "+t)}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 s of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(s,this.customQueryParams[s]);this.http.post(this.tokenEndpoint,i,{headers:n}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.w)(t=>t.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_10__.D)(this.processIdToken(t.id_token,t.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.b)(t=>this.storeIdToken(t)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.U)(e=>t)):(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(t))).subscribe(e=>{this.debug("refresh tokenResponse",e),this.storeAccessTokenResponse(e.access_token,e.refresh_token,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,e.scope,this.extractRecognizedCustomParameters(e)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),t(e)},t=>{this.logger.error("Error refreshing token",t),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",t)),e(t)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=t=>{const e=this.processMessageEventMessage(t);this.tryLogin({customHashFragment:e,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(t=>this.debug("tryLogin during silent refresh failed",t))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(t={},e=!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(void 0===this.document)throw new Error("silent refresh is not supported on this platform");const n=this.document.getElementById(this.silentRefreshIFrameName);n&&this.document.body.removeChild(n),this.silentRefreshSubject=i.sub;const s=this.document.createElement("iframe");s.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,e,t).then(t=>{s.setAttribute("src",t),this.silentRefreshShowIFrame||(s.style.display="none"),this.document.body.appendChild(s)});const o=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>t instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.P)()),r=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>"token_received"===t.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.P)()),a=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_13__.S3)([o,r,a]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.U)(t=>{if(t instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===t.type||(t=new OAuthErrorEvent("silent_refresh_error",t)),this.eventsSubject.next(t),t;return"token_received"===t.type&&(t=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(t)),t})).toPromise()}initImplicitFlowInPopup(t){return this.initLoginFlowInPopup(t)}initLoginFlowInPopup(t){return t=t||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(e=>new Promise((i,n)=>{let s,o=null;t.windowRef?t.windowRef&&!t.windowRef.closed&&(o=t.windowRef,o.location.href=e):o=window.open(e,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(t));const r=t=>{this.tryLogin({customHashFragment:t,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{a(),i(!0)},t=>{a(),n(t)})};o?s=window.setInterval(()=>{o&&!o.closed||(a(),n(new OAuthErrorEvent("popup_closed",{})))},500):n(new OAuthErrorEvent("popup_blocked",{}));const a=()=>{window.clearInterval(s),window.removeEventListener("storage",u),window.removeEventListener("message",c),null!==o&&o.close(),o=null},c=t=>{const e=this.processMessageEventMessage(t);e&&null!==e?(window.removeEventListener("storage",u),r(e)):console.log("false event firing")},u=t=>{"auth_hash"===t.key&&(window.removeEventListener("message",c),r(t.newValue))};window.addEventListener("message",c),window.addEventListener("storage",u)}))}calculatePopupFeatures(t){const e=t.height||470,i=t.width||500,n=window.screenLeft+(window.outerWidth-i)/2;return`location=no,toolbar=no,width=${i},height=${e},top=${window.screenTop+(window.outerHeight-e)/2},left=${n}`}processMessageEventMessage(t){let e="#";if(this.silentRefreshMessagePrefix&&(e+=this.silentRefreshMessagePrefix),!t||!t.data||"string"!=typeof t.data)return;const i=t.data;return i.startsWith(e)?"#"+i.substr(e.length):void 0}canPerformSessionCheck(){return!!this.sessionChecksEnabled&&(this.sessionCheckIFrameUrl?this.getSessionState()?void 0!==this.document:(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 e=t.origin.toLowerCase(),i=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),i.startsWith(e)){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",e,"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_3__.h)(t=>"silently_refreshed"===t.type||"silent_refresh_timeout"===t.type||"silent_refresh_error"===t.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.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 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 t=this.document.getElementById(this.sessionCheckIFrameName);t||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const e=this.getSessionState();e||this.stopSessionCheckTimer(),t.contentWindow.postMessage(this.clientId+" "+e,this.issuer)}createLoginUrl(t="",e="",i="",n=!1,s={}){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){const o=this;let r;r=i||this.redirectUri;const a=yield this.createAndSaveNonce();if(t=t?a+this.config.nonceStateSeparator+encodeURIComponent(t):a,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.responseType=this.config.responseType?this.config.responseType:this.oidc&&this.requestAccessToken?"id_token token":this.oidc&&!this.requestAccessToken?"id_token":"token";const c=o.loginUrl.indexOf("?")>-1?"&":"?";let u=o.scope;this.oidc&&!u.match(/(^|\s)openid($|\s)/)&&(u="openid "+u);let l=o.loginUrl+c+"response_type="+encodeURIComponent(o.responseType)+"&client_id="+encodeURIComponent(o.clientId)+"&state="+encodeURIComponent(t)+"&redirect_uri="+encodeURIComponent(r)+"&scope="+encodeURIComponent(u);if(this.responseType.includes("code")&&!this.disablePKCE){const[t,e]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("PKCE_verifier",e):this._storage.setItem("PKCE_verifier",e),l+="&code_challenge="+t,l+="&code_challenge_method=S256"}e&&(l+="&login_hint="+encodeURIComponent(e)),o.resource&&(l+="&resource="+encodeURIComponent(o.resource)),o.oidc&&(l+="&nonce="+encodeURIComponent(a)),n&&(l+="&prompt=none");for(const t of Object.keys(s))l+="&"+encodeURIComponent(t)+"="+encodeURIComponent(s[t]);if(this.customQueryParams)for(const t of Object.getOwnPropertyNames(this.customQueryParams))l+="&"+t+"="+encodeURIComponent(this.customQueryParams[t]);return l})}initImplicitFlowInternal(t="",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 i={},n=null;"string"==typeof e?n=e:"object"==typeof e&&(i=e),this.createLoginUrl(t,n,null,!1,i).then(this.config.openUri).catch(t=>{console.error("Error in initImplicitFlow",t),this.inImplicitFlow=!1})}initImplicitFlow(t="",e=""){""!==this.loginUrl?this.initImplicitFlowInternal(t,e):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>"discovery_document_loaded"===t.type)).subscribe(i=>this.initImplicitFlowInternal(t,e))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(t){const e=this;if(t.onTokenReceived){const i={idClaims:e.getIdentityClaims(),idToken:e.getIdToken(),accessToken:e.getAccessToken(),state:e.state};t.onTokenReceived(i)}}storeAccessTokenResponse(t,e,i,n,s){if(this._storage.setItem("access_token",t),n&&!Array.isArray(n)?this._storage.setItem("granted_scopes",JSON.stringify(n.split(" "))):n&&Array.isArray(n)&&this._storage.setItem("granted_scopes",JSON.stringify(n)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),i){const t=1e3*i,e=this.dateTimeService.new().getTime()+t;this._storage.setItem("expires_at",""+e)}e&&this._storage.setItem("refresh_token",e),s&&s.forEach((t,e)=>{this._storage.setItem(e,t)})}tryLogin(t=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(t).then(t=>!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){const e=(t=t||{}).customHashFragment?t.customHashFragment.substring(1):window.location.search,i=this.getCodePartsFromUrl(e),n=i.code,s=i.state,o=i.session_state;if(!t.preventClearHashAfterLogin){const t=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,t)}let[r,a]=this.parseState(s);if(this.state=a,i.error){this.debug("error trying to login"),this.handleLoginError(t,i);const e=new OAuthErrorEvent("code_error",{},i);return this.eventsSubject.next(e),Promise.reject(e)}if(!t.disableNonceCheck){if(!r)return Promise.resolve();if(!t.disableOAuth2StateCheck&&!this.validateNonce(r)){const t=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(t),Promise.reject(t)}return this.storeSessionState(o),n?this.getTokenFromCode(n,t).then(t=>null):Promise.resolve()}}getCodePartsFromUrl(t){return t&&0!==t.length?("?"===t.charAt(0)&&(t=t.substr(1)),this.urlHelper.parseQueryString(t)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(t,e){let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",t).set("redirect_uri",e.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let t;t=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),t?i=i.set("code_verifier",t):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(i,e)}fetchAndProcessToken(t,e){e=e||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+t)}return this.useHttpBasicAuth||(t=t.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(t=t.set("client_secret",this.dummyClientSecret)),new Promise((n,s)=>{if(this.customQueryParams)for(let e of Object.getOwnPropertyNames(this.customQueryParams))t=t.set(e,this.customQueryParams[e]);this.http.post(this.tokenEndpoint,t,{headers:i}).subscribe(t=>{this.debug("refresh tokenResponse",t),this.storeAccessTokenResponse(t.access_token,t.refresh_token,t.expires_in||this.fallbackAccessTokenExpirationTimeInSec,t.scope,this.extractRecognizedCustomParameters(t)),this.oidc&&t.id_token?this.processIdToken(t.id_token,t.access_token,e.disableNonceCheck).then(e=>{this.storeIdToken(e),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),n(t)}).catch(t=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",t)),console.error("Error validating tokens"),console.error(t),s(t)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),n(t))},t=>{console.error("Error getting token",t),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",t)),s(t)})})}tryLoginImplicitFlow(t=null){let e;e=(t=t||{}).customHashFragment?this.urlHelper.getHashFragmentParams(t.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",e);const i=e.state;let[n,s]=this.parseState(i);if(this.state=s,e.error){this.debug("error trying to login"),this.handleLoginError(t,e);const i=new OAuthErrorEvent("token_error",{},e);return this.eventsSubject.next(i),Promise.reject(i)}const o=e.access_token,r=e.id_token,a=e.session_state,c=e.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!o)return Promise.resolve(!1);if(this.requestAccessToken&&!t.disableOAuth2StateCheck&&!i)return Promise.resolve(!1);if(this.oidc&&!r)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!a&&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(n)){const t=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(t),Promise.reject(t)}return this.requestAccessToken&&this.storeAccessTokenResponse(o,null,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,c),this.oidc?this.processIdToken(r,o,t.disableNonceCheck).then(e=>t.validationHandler?t.validationHandler({accessToken:o,idClaims:e.idTokenClaims,idToken:e.idToken,state:i}).then(t=>e):e).then(e=>(this.storeIdToken(e),this.storeSessionState(a),this.clearHashAfterLogin&&!t.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(t),this.inImplicitFlow=!1,!0)).catch(t=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",t)),this.logger.error("Error validating tokens"),this.logger.error(t),Promise.reject(t))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!t.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(t),Promise.resolve(!0))}parseState(t){let e=t,i="";if(t){const n=t.indexOf(this.config.nonceStateSeparator);n>-1&&(e=t.substr(0,n),i=t.substr(n+this.config.nonceStateSeparator.length))}return[e,i]}validateNonce(t){let e;return e=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),e===t||(console.error("Validating access_token failed, wrong state/nonce.",e,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,e){t.onLoginError&&t.onLoginError(e),this.clearHashAfterLogin&&!t.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(t=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:t}processIdToken(t,e,i=!1){const n=t.split("."),s=b64DecodeUnicode(this.padBase64(n[0])),o=JSON.parse(s),r=b64DecodeUnicode(this.padBase64(n[1])),a=JSON.parse(r);let c;if(c=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(a.aud)){if(a.aud.every(t=>t!==this.clientId)){const t="Wrong audience: "+a.aud.join(",");return this.logger.warn(t),Promise.reject(t)}}else if(a.aud!==this.clientId){const t="Wrong audience: "+a.aud;return this.logger.warn(t),Promise.reject(t)}if(!a.sub){const t="No sub claim in id_token";return this.logger.warn(t),Promise.reject(t)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==a.sub){const t=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${a.sub}`;return this.logger.warn(t),Promise.reject(t)}if(!a.iat){const t="No iat claim in id_token";return this.logger.warn(t),Promise.reject(t)}if(!this.skipIssuerCheck&&a.iss!==this.issuer){const t="Wrong issuer: "+a.iss;return this.logger.warn(t),Promise.reject(t)}if(!i&&a.nonce!==c){const t="Wrong nonce: "+a.nonce;return this.logger.warn(t),Promise.reject(t)}if(!this.hasOwnProperty("responseType")||"code"!==this.responseType&&"id_token"!==this.responseType||(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!a.at_hash){const t="An at_hash is needed!";return this.logger.warn(t),Promise.reject(t)}const u=this.dateTimeService.now(),l=1e3*a.iat,h=1e3*a.exp,d=this.getClockSkewInMsec();if(l-d>=u||h+d<=u){const t="Token has expired";return console.error(t),console.error({now:u,issuedAtMSec:l,expiresAtMSec:h}),Promise.reject(t)}const p={accessToken:e,idToken:t,jwks:this.jwks,idTokenClaims:a,idTokenHeader:o,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(p).then(e=>({idToken:t,idTokenClaims:a,idTokenClaimsJson:r,idTokenHeader:o,idTokenHeaderJson:s,idTokenExpiresAt:h})):this.checkAtHash(p).then(e=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!e){const t="Wrong at_hash";return this.logger.warn(t),Promise.reject(t)}return this.checkSignature(p).then(e=>{const i={idToken:t,idTokenClaims:a,idTokenClaimsJson:r,idTokenHeader:o,idTokenHeaderJson:s,idTokenExpiresAt:h};return this.disableAtHashCheck?i:this.checkAtHash(p).then(t=>{if(this.requestAccessToken&&!t){const t="Wrong at_hash";return this.logger.warn(t),Promise.reject(t)}return i})})})}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"),e=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={},e=""){let i=!1;"boolean"==typeof t&&(i=t,t={});const n=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(t=>this._storage.removeItem(t)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl)return;if(i)return;if(!n&&!this.postLogoutRedirectUri)return;let s;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)s=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(n)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec});n&&(i=i.set("id_token_hint",n));const o=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";o&&(i=i.set("post_logout_redirect_uri",o),e&&(i=i.set("state",e)));for(let e in t)i=i.set(e,t[e]);s=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+i.toString()}this.config.openUri(s)}createAndSaveNonce(){const t=this;return this.createNonce().then(function(e){return t.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("nonce",e):t._storage.setItem("nonce",e),e})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const t=this.document.getElementById(this.silentRefreshIFrameName);t&&t.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const e=this.document.getElementById(this.sessionCheckIFrameName);e&&e.remove()}createNonce(){return new Promise(t=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let i=45,n="";const s="undefined"==typeof self?null:self.crypto||self.msCrypto;if(s){let t=new Uint8Array(i);s.getRandomValues(t),t.map||(t.map=Array.prototype.map),t=t.map(t=>e.charCodeAt(t%e.length)),n=String.fromCharCode.apply(null,t)}else for(;0"discovery_document_loaded"===t.type)).subscribe(i=>this.initCodeFlowInternal(t,e))}initCodeFlowInternal(t="",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 i={},n=null;"string"==typeof e?n=e:"object"==typeof e&&(i=e),this.createLoginUrl(t,n,null,!1,i).then(this.config.openUri).catch(t=>{console.error("Error in initAuthorizationCodeFlow"),console.error(t)})}createChallangeVerifierPairForPKCE(){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const t=yield this.createNonce();return[base64UrlEncode(yield this.crypto.calcHash(t,"sha-256")),t]})}extractRecognizedCustomParameters(t){let e=new Map;return this.config.customTokenParameters?(this.config.customTokenParameters.forEach(i=>{t[i]&&e.set(i,JSON.stringify(t[i]))}),e):e}revokeTokenAndLogout(t={},e=!1){let i=this.revocationEndpoint,n=this.getAccessToken(),s=this.getRefreshToken();if(!n)return;let o=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}),r=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);r=r.set("Authorization","Basic "+t)}if(this.useHttpBasicAuth||(o=o.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(o=o.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const a of Object.getOwnPropertyNames(this.customQueryParams))o=o.set(a,this.customQueryParams[a]);return new Promise((a,c)=>{let u,l;if(n){let t=o.set("token",n).set("token_type_hint","access_token");u=this.http.post(i,t,{headers:r})}else u=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null);if(s){let t=o.set("token",s).set("token_type_hint","refresh_token");l=this.http.post(i,t,{headers:r})}else l=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null);e&&(u=u.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>0===t.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(t))),l=l.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>0===t.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(t)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_16__.aj)([u,l]).subscribe(e=>{this.logOut(t),a(e),this.logger.info("Token successfully revoked")},t=>{this.logger.error("Error revoking token",t),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",t)),c(t)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return t.\u0275fac=function(e){return new(e||t)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_0__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_8__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_17__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DateTimeProvider))},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(t){return(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(t)}}let DefaultOAuthInterceptor=(()=>{class t{constructor(t,e,i){this.oAuthService=t,this.errorHandler=e,this.moduleConfig=i}checkUrl(t){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(t):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(e=>t.toLowerCase().startsWith(e.toLowerCase()))}intercept(t,e){const i=t.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(i)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_18__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>!!t)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>"token_received"===t.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_19__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.U)(t=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.zg)(i=>{if(i){const e=t.headers.set("Authorization","Bearer "+i);t=t.clone({headers:e})}return e.handle(t).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>this.errorHandler.handleError(t)))})):e.handle(t).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>this.errorHandler.handleError(t))):e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthModuleConfig,8))},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();class NullValidationHandler{validateSignature(t){return Promise.resolve(null)}validateAtHash(t){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return"undefined"!=typeof sessionStorage?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class t{static forRoot(e=null,i=NullValidationHandler){return{ngModule:t,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:i},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:e},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_8__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:t}),t.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_17__.ez]]}),t})();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_0__.OlP("AUTH_CONFIG")},2051:function(t,e){var i,n;void 0===(n="function"==typeof(i=function(){"use strict";function e(t,e,i){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){r(n.response,e,i)},n.onerror=function(){console.error("could not download file")},n.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function n(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,o=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),r=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(t,o,r){var a=s.URL||s.webkitURL,c=document.createElement("a");c.download=o=o||t.name||"download",c.rel="noopener","string"==typeof t?(c.href=t,c.origin===location.origin?n(c):i(c.href)?e(t,o,r):n(c,c.target="_blank")):(c.href=a.createObjectURL(t),setTimeout(function(){a.revokeObjectURL(c.href)},4e4),setTimeout(function(){n(c)},0))}:"msSaveOrOpenBlob"in navigator?function(t,s,o){if(s=s||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,o),s);else if(i(t))e(t,s,o);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){n(r)})}}:function(t,i,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return e(t,i,n);var a="application/octet-stream"===t.type,c=/constructor/i.test(s.HTMLElement)||s.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||a&&c||o)&&"undefined"!=typeof FileReader){var l=new FileReader;l.onloadend=function(){var t=l.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},l.readAsDataURL(t)}else{var h=s.URL||s.webkitURL,d=h.createObjectURL(t);r?r.location=d:location.href=d,r=null,setTimeout(function(){h.revokeObjectURL(d)},4e4)}});s.saveAs=r.saveAs=r,t.exports=r})?i.apply(e,[]):i)||(t.exports=n)},776:function(t,e,i){!function(t){"use strict";t.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(t){return/^nm$/i.test(t)},meridiem:function(t,e,i){return t<12?i?"vm":"VM":i?"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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(9609))},2758:function(t,e,i){!function(t){"use strict";t.defineLocale("ar-dz",{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:"\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:"\u0623\u062d_\u0625\u062b_\u062b\u0644\u0627_\u0623\u0631_\u062e\u0645_\u062c\u0645_\u0633\u0628".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:4}})}(i(9609))},4980:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},9602:function(t,e,i){!function(t){"use strict";var e={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},i=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},n={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(t){return function(e,s,o,r){var a=i(e),c=n[t][i(e)];return 2===a&&(c=c[s?0:1]),c.replace(/%d/i,e)}},o=["\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"];t.defineLocale("ar-ly",{months:o,monthsShort:o,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(t){return"\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i(9609))},2500:function(t,e,i){!function(t){"use strict";t.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\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:6,doy:12}})}(i(9609))},6909:function(t,e,i){!function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},i={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};t.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(t){return"\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(t){return i[t]}).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(i(9609))},2735:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},7634:function(t,e,i){!function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},i={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},n=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%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"]},o=function(t){return function(e,i,o,r){var a=n(e),c=s[t][n(e)];return 2===a&&(c=c[i?0:1]),c.replace(/%d/i,e)}},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"];t.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(t){return"\u0645"===t},meridiem:function(t,e,i){return t<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:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(t){return t.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(t){return i[t]}).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i(9609))},7798:function(t,e,i){!function(t){"use strict";var e={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"};t.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:"birne\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(t){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(t)},meridiem:function(t,e,i){return t<4?"gec\u0259":t<12?"s\u0259h\u0259r":t<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(t){if(0===t)return t+"-\u0131nc\u0131";var i=t%10;return t+(e[i]||e[t%100-i]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i(9609))},9949:function(t,e,i){!function(t){"use strict";function e(t,e,i){return"m"===i?e?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===i?e?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":t+" "+(n=+t,s={ss:e?"\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:e?"\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:e?"\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"}[i].split("_"),n%10==1&&n%100!=11?s[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?s[1]:s[2]);var n,s}t.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(t){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(t)},meridiem:function(t,e,i){return t<4?"\u043d\u043e\u0447\u044b":t<12?"\u0440\u0430\u043d\u0456\u0446\u044b":t<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t%10!=2&&t%10!=3||t%100==12||t%100==13?t+"-\u044b":t+"-\u0456";case"D":return t+"-\u0433\u0430";default:return t}},week:{dow:1,doy:7}})}(i(9609))},4590:function(t,e,i){!function(t){"use strict";t.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\u0440_\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"[\u0412 \u0438\u0437\u043c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u0412 \u0438\u0437\u043c\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\u043d\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(t){var e=t%10,i=t%100;return 0===t?t+"-\u0435\u0432":0===i?t+"-\u0435\u043d":i>10&&i<20?t+"-\u0442\u0438":1===e?t+"-\u0432\u0438":2===e?t+"-\u0440\u0438":7===e||8===e?t+"-\u043c\u0438":t+"-\u0442\u0438"},week:{dow:1,doy:7}})}(i(9609))},5938:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},595:function(t,e,i){!function(t){"use strict";var e={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},i={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};t.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09c0_\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_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2_\u0986\u0997_\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_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u0983_\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(t){return t.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u09b0\u09be\u09a4"===e&&t>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===e&&t<5||"\u09ac\u09bf\u0995\u09be\u09b2"===e?t+12:t},meridiem:function(t,e,i){return t<4?"\u09b0\u09be\u09a4":t<10?"\u09b8\u0995\u09be\u09b2":t<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":t<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(i(9609))},4756:function(t,e,i){!function(t){"use strict";var e={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},i={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};t.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\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("_"),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\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("_"),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(t){return t.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},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(t,e){return 12===t&&(t=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===e&&t>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===e&&t<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===e?t+12:t},meridiem:function(t,e,i){return t<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":t<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":t<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":t<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(i(9609))},7277:function(t,e,i){!function(t){"use strict";function e(t,e,i){return t+" "+function(t,e){return 2===e?function(t){var e={m:"v",b:"v",d:"z"};return void 0===e[t.charAt(0)]?t:e[t.charAt(0)]+t.substring(1)}(t):t}({mm:"munutenn",MM:"miz",dd:"devezh"}[i],t)}function i(t){return t>9?i(t%10):t}t.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:e,h:"un eur",hh:"%d eur",d:"un devezh",dd:e,M:"ur miz",MM:e,y:"ur bloaz",yy:function(t){switch(i(t)){case 1:case 3:case 4:case 5:case 9:return t+" bloaz";default:return t+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(t){return t+(1===t?"a\xf1":"vet")},week:{dow:1,doy:4}})}(i(9609))},4166:function(t,e,i){!function(t){"use strict";function e(t,e,i){var n=t+" ";switch(i){case"ss":return n+(1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi");case"m":return e?"jedna minuta":"jedne minute";case"mm":return n+(1===t?"minuta":2===t||3===t||4===t?"minute":"minuta");case"h":return e?"jedan sat":"jednog sata";case"hh":return n+(1===t?"sat":2===t||3===t||4===t?"sata":"sati");case"dd":return n+(1===t?"dan":"dana");case"MM":return n+(1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci");case"yy":return n+(1===t?"godina":2===t||3===t||4===t?"godine":"godina")}}t.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:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},3943:function(t,e,i){!function(t){"use strict";t.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(t,e){var i=1===t?"r":2===t?"n":3===t?"r":4===t?"t":"\xe8";return"w"!==e&&"W"!==e||(i="a"),t+i},week:{dow:1,doy:4}})}(i(9609))},3474:function(t,e,i){!function(t){"use strict";var e="leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),i="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),n=[/^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 o(t){return t>1&&t<5&&1!=~~(t/10)}function r(t,e,i,n){var s=t+" ";switch(i){case"s":return e||n?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return e||n?s+(o(t)?"sekundy":"sekund"):s+"sekundami";case"m":return e?"minuta":n?"minutu":"minutou";case"mm":return e||n?s+(o(t)?"minuty":"minut"):s+"minutami";case"h":return e?"hodina":n?"hodinu":"hodinou";case"hh":return e||n?s+(o(t)?"hodiny":"hodin"):s+"hodinami";case"d":return e||n?"den":"dnem";case"dd":return e||n?s+(o(t)?"dny":"dn\xed"):s+"dny";case"M":return e||n?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return e||n?s+(o(t)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):s+"m\u011bs\xedci";case"y":return e||n?"rok":"rokem";case"yy":return e||n?s+(o(t)?"roky":"let"):s+"lety"}}t.defineLocale("cs",{months:e,monthsShort:i,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:n,longMonthsParse:n,shortMonthsParse:n,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}})}(i(9609))},2218:function(t,e,i){!function(t){"use strict";t.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(t){return t+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(t)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(t)?"\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}})}(i(9609))},1061:function(t,e,i){!function(t){"use strict";t.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(t){var e="";return t>20?e=40===t||50===t||60===t||80===t||100===t?"fed":"ain":t>0&&(e=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][t]),t+e},week:{dow:1,doy:4}})}(i(9609))},2743:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},8580:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?s[i][0]:s[i][1]}t.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:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},3264:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?s[i][0]:s[i][1]}t.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:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},1899:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?s[i][0]:s[i][1]}t.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:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},8784:function(t,e,i){!function(t){"use strict";var e=["\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"],i=["\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"];t.defineLocale("dv",{months:e,monthsShort:e,weekdays:i,weekdaysShort:i,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(t){return"\u0789\u078a"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(i(9609))},4654:function(t,e,i){!function(t){"use strict";t.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(t,e){return t?"string"==typeof e&&/D/.test(e.substring(0,e.indexOf("MMMM")))?this._monthsGenitiveEl[t.month()]:this._monthsNominativeEl[t.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(t,e,i){return t>11?i?"\u03bc\u03bc":"\u039c\u039c":i?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(t){return"\u03bc"===(t+"").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(){switch(this.day()){case 6:return"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT";default:return"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"}},sameElse:"L"},calendar:function(t,e){var i,n=this._calendarEl[t],s=e&&e.hours();return((i=n)instanceof Function||"[object Function]"===Object.prototype.toString.call(i))&&(n=n.apply(e)),n.replace("{}",s%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}})}(i(9609))},4047:function(t,e,i){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},6277:function(t,e,i){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},6896:function(t,e,i){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})}(i(9609))},1609:function(t,e,i){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},4557:function(t,e,i){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},5836:function(t,e,i){!function(t){"use strict";t.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",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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})}(i(9609))},3586:function(t,e,i){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},2777:function(t,e,i){!function(t){"use strict";t.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_a\u016dg_sep_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:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(t){return"p"===t.charAt(0).toLowerCase()},meridiem:function(t,e,i){return t>11?i?"p.t.m.":"P.T.M.":i?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(i(9609))},3128:function(t,e,i){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^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;t.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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",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}})}(i(9609))},3256:function(t,e,i){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^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;t.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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",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}})}(i(9609))},3357:function(t,e,i){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^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;t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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",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}})}(i(9609))},2654:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[t+"sekundi",t+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[t+" minuti",t+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[t+" tunni",t+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[t+" kuu",t+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[t+" aasta",t+" aastat"]};return e?s[i][2]?s[i][2]:s[i][1]:n?s[i][0]:s[i][1]}t.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:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:"%d p\xe4eva",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},7287:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},5210:function(t,e,i){!function(t){"use strict";var e={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},i={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};t.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(t){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(t)},meridiem:function(t,e,i){return t<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:"\u062b\u0627\u0646\u06cc\u0647 d%",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(t){return t.replace(/[\u06f0-\u06f9]/g,function(t){return i[t]}).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(i(9609))},3431:function(t,e,i){!function(t){"use strict";var e="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),i=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",e[7],e[8],e[9]];function n(t,n,s,o){var r="";switch(s){case"s":return o?"muutaman sekunnin":"muutama sekunti";case"ss":return o?"sekunnin":"sekuntia";case"m":return o?"minuutin":"minuutti";case"mm":r=o?"minuutin":"minuuttia";break;case"h":return o?"tunnin":"tunti";case"hh":r=o?"tunnin":"tuntia";break;case"d":return o?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":r=o?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return o?"kuukauden":"kuukausi";case"MM":r=o?"kuukauden":"kuukautta";break;case"y":return o?"vuoden":"vuosi";case"yy":r=o?"vuoden":"vuotta"}return function(t,n){return t<10?n?i[t]:e[t]:t}(t,o)+" "+r}t.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:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},1781:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},1539:function(t,e,i){!function(t){"use strict";t.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(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}}})}(i(9609))},9847:function(t,e,i){!function(t){"use strict";t.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(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})}(i(9609))},1717:function(t,e,i){!function(t){"use strict";t.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("_"),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|)/,ordinal:function(t,e){switch(e){case"D":return t+(1===t?"er":"");default:case"M":case"Q":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})}(i(9609))},2250:function(t,e,i){!function(t){"use strict";var e="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),i="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");t.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(9609))},7665:function(t,e,i){!function(t){"use strict";t.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","M\xe9itheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deaireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean\xe1","Feab","M\xe1rt","Aibr","Beal","M\xe9it","I\xfail","L\xfana","Me\xe1n","Deai","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 Satharn"],weekdaysShort:["Dom","Lua","M\xe1i","C\xe9a","D\xe9a","hAo","Sat"],weekdaysMin:["Do","Lu","M\xe1","Ce","D\xe9","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:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 aig] 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\xed",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(t){return t+(1===t?"d":t%10==2?"na":"mh")},week:{dow:1,doy:4}})}(i(9609))},5214:function(t,e,i){!function(t){"use strict";t.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(t){return t+(1===t?"d":t%10==2?"na":"mh")},week:{dow:1,doy:4}})}(i(9609))},6154:function(t,e,i){!function(t){"use strict";t.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(t){return 0===t.indexOf("un")?"n"+t:"en "+t},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}})}(i(9609))},8518:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={s:["thodde secondanim","thodde second"],ss:[t+" secondanim",t+" second"],m:["eka mintan","ek minute"],mm:[t+" mintanim",t+" mintam"],h:["eka voran","ek vor"],hh:[t+" voranim",t+" voram"],d:["eka disan","ek dis"],dd:[t+" disanim",t+" dis"],M:["eka mhoinean","ek mhoino"],MM:[t+" mhoineanim",t+" mhoine"],y:["eka vorsan","ek voros"],yy:[t+" vorsanim",t+" vorsam"]};return e?s[i][0]:s[i][1]}t.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_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[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",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}(er)/,ordinal:function(t,e){switch(e){case"D":return t+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return t}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(t,e){return 12===t&&(t=0),"rati"===e?t<4?t:t+12:"sokalli"===e?t:"donparam"===e?t>12?t:t+12:"sanje"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"rati":t<12?"sokalli":t<16?"donparam":t<20?"sanje":"rati"}})}(i(9609))},9221:function(t,e,i){!function(t){"use strict";var e={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},i={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};t.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\u0ac7\u0ab9\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(t){return t.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0ab0\u0abe\u0aa4"===e?t<4?t:t+12:"\u0ab8\u0ab5\u0abe\u0ab0"===e?t:"\u0aac\u0aaa\u0acb\u0ab0"===e?t>=10?t:t+12:"\u0ab8\u0abe\u0a82\u0a9c"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0ab0\u0abe\u0aa4":t<10?"\u0ab8\u0ab5\u0abe\u0ab0":t<17?"\u0aac\u0aaa\u0acb\u0ab0":t<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(i(9609))},4743:function(t,e,i){!function(t){"use strict";t.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(t){return 2===t?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":t+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(t){return 2===t?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":t+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(t){return 2===t?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":t+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(t){return 2===t?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":t%10==0&&10!==t?t+" \u05e9\u05e0\u05d4":t+" \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(t){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(t)},meridiem:function(t,e,i){return t<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":t<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":t<12?i?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":t<18?i?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(i(9609))},7339:function(t,e,i){!function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},i={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};t.defineLocale("hi",{months:"\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("_"),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("_"),monthsParseExact:!0,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"},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(t){return t.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0930\u093e\u0924"===e?t<4?t:t+12:"\u0938\u0941\u092c\u0939"===e?t:"\u0926\u094b\u092a\u0939\u0930"===e?t>=10?t:t+12:"\u0936\u093e\u092e"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0930\u093e\u0924":t<10?"\u0938\u0941\u092c\u0939":t<17?"\u0926\u094b\u092a\u0939\u0930":t<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(i(9609))},3224:function(t,e,i){!function(t){"use strict";function e(t,e,i){var n=t+" ";switch(i){case"ss":return n+(1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi");case"m":return e?"jedna minuta":"jedne minute";case"mm":return n+(1===t?"minuta":2===t||3===t||4===t?"minute":"minuta");case"h":return e?"jedan sat":"jednog sata";case"hh":return n+(1===t?"sat":2===t||3===t||4===t?"sata":"sati");case"dd":return n+(1===t?"dan":"dana");case"MM":return n+(1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci");case"yy":return n+(1===t?"godina":2===t||3===t||4===t?"godine":"godina")}}t.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:"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:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},856:function(t,e,i){!function(t){"use strict";var e="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function i(t,e,i,n){var s=t;switch(i){case"s":return n||e?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return s+(n||e)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(n||e?" perc":" perce");case"mm":return s+(n||e?" perc":" perce");case"h":return"egy"+(n||e?" \xf3ra":" \xf3r\xe1ja");case"hh":return s+(n||e?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(n||e?" nap":" napja");case"dd":return s+(n||e?" nap":" napja");case"M":return"egy"+(n||e?" h\xf3nap":" h\xf3napja");case"MM":return s+(n||e?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(n||e?" \xe9v":" \xe9ve");case"yy":return s+(n||e?" \xe9v":" \xe9ve")}return""}function n(t){return(t?"":"[m\xfalt] ")+"["+e[this.day()]+"] LT[-kor]"}t.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("_"),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(t){return"u"===t.charAt(1).toLowerCase()},meridiem:function(t,e,i){return t<12?!0===i?"de":"DE":!0===i?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return n.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return n.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%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:4}})}(i(9609))},6855:function(t,e,i){!function(t){"use strict";t.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(t){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(t)},meridiem:function(t){return t<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":t<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":t<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(t,e){switch(e){case"DDD":case"w":case"W":case"DDDo":return 1===t?t+"-\u056b\u0576":t+"-\u0580\u0564";default:return t}},week:{dow:1,doy:7}})}(i(9609))},2190:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"pagi"===e?t:"siang"===e?t>=11?t:t+12:"sore"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"pagi":t<15?"siang":t<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:1,doy:7}})}(i(9609))},3887:function(t,e,i){!function(t){"use strict";function e(t){return t%100==11||t%10!=1}function i(t,i,n,s){var o=t+" ";switch(n){case"s":return i||s?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return e(t)?o+(i||s?"sek\xfandur":"sek\xfandum"):o+"sek\xfanda";case"m":return i?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return e(t)?o+(i||s?"m\xedn\xfatur":"m\xedn\xfatum"):i?o+"m\xedn\xfata":o+"m\xedn\xfatu";case"hh":return e(t)?o+(i||s?"klukkustundir":"klukkustundum"):o+"klukkustund";case"d":return i?"dagur":s?"dag":"degi";case"dd":return e(t)?i?o+"dagar":o+(s?"daga":"d\xf6gum"):i?o+"dagur":o+(s?"dag":"degi");case"M":return i?"m\xe1nu\xf0ur":s?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return e(t)?i?o+"m\xe1nu\xf0ir":o+(s?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):i?o+"m\xe1nu\xf0ur":o+(s?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return i||s?"\xe1r":"\xe1ri";case"yy":return e(t)?o+(i||s?"\xe1r":"\xe1rum"):o+(i||s?"\xe1r":"\xe1ri")}}t.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:i,ss:i,m:i,mm:i,h:"klukkustund",hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},5890:function(t,e,i){!function(t){"use strict";t.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(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},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}})}(i(9609))},9270:function(t,e,i){!function(t){"use strict";t.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:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},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}})}(i(9609))},6595:function(t,e,i){!function(t){"use strict";t.defineLocale("ja",{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:"\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(t){return"\u5348\u5f8c"===t},meridiem:function(t,e,i){return t<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(t){return t.week()=11?t:t+12:"sonten"===e||"ndalu"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"enjing":t<15?"siyang":t<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}})}(i(9609))},7477:function(t,e,i){!function(t){"use strict";t.defineLocale("ka",{months:{standalone:"\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("_"),format:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10e1_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10e1_\u10db\u10d0\u10e0\u10e2\u10e1_\u10d0\u10de\u10e0\u10d8\u10da\u10d8\u10e1_\u10db\u10d0\u10d8\u10e1\u10e1_\u10d8\u10d5\u10dc\u10d8\u10e1\u10e1_\u10d8\u10d5\u10da\u10d8\u10e1\u10e1_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10e1_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10e1_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10e1".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:"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:"[\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(t){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10ec\u10d4\u10da\u10d8)/.test(t)?t.replace(/\u10d8$/,"\u10e8\u10d8"):t+"\u10e8\u10d8"},past:function(t){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(t)?t.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(t)?t.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):void 0},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(t){return 0===t?t:1===t?t+"-\u10da\u10d8":t<20||t<=100&&t%20==0||t%100==0?"\u10db\u10d4-"+t:t+"-\u10d4"},week:{dow:1,doy:7}})}(i(9609))},3978:function(t,e,i){!function(t){"use strict";var e={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"};t.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(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i(9609))},9205:function(t,e,i){!function(t){"use strict";var e={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},i={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};t.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(t){return"\u179b\u17d2\u1784\u17b6\u1785"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},week:{dow:1,doy:4}})}(i(9609))},25:function(t,e,i){!function(t){"use strict";var e={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},i={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};t.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(t){return t.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},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(t,e){return 12===t&&(t=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===e?t<4?t:t+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===e?t:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===e?t>=10?t:t+12:"\u0cb8\u0c82\u0c9c\u0cc6"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":t<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":t<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":t<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(t){return t+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(i(9609))},427:function(t,e,i){!function(t){"use strict";t.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(t,e){switch(e){case"d":case"D":case"DDD":return t+"\uc77c";case"M":return t+"\uc6d4";case"w":case"W":return t+"\uc8fc";default:return t}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(t){return"\uc624\ud6c4"===t},meridiem:function(t,e,i){return t<12?"\uc624\uc804":"\uc624\ud6c4"}})}(i(9609))},9089:function(t,e,i){!function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},i={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},n=["\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"];t.defineLocale("ku",{months:n,monthsShort:n,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(t){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(t)},meridiem:function(t,e,i){return t<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(t){return t.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(t){return i[t]}).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i(9609))},9314:function(t,e,i){!function(t){"use strict";var e={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"};t.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(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i(9609))},3136:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={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 e?s[i][0]:s[i][1]}function i(t){if(t=parseInt(t,10),isNaN(t))return!1;if(t<0)return!0;if(t<10)return 4<=t&&t<=7;if(t<100){var e=t%10;return i(0===e?t/10:e)}if(t<1e4){for(;t>=10;)t/=10;return i(t)}return i(t/=1e3)}t.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(t){return i(t.substr(0,t.indexOf(" ")))?"a "+t:"an "+t},past:function(t){return i(t.substr(0,t.indexOf(" ")))?"viru "+t:"virun "+t},s:"e puer Sekonnen",ss:"%d Sekonnen",m:e,mm:"%d Minutten",h:e,hh:"%d Stonnen",d:e,dd:"%d Deeg",M:e,MM:"%d M\xe9int",y:e,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},9115:function(t,e,i){!function(t){"use strict";t.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(t){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===t},meridiem:function(t,e,i){return t<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(t){return"\u0e97\u0eb5\u0ec8"+t}})}(i(9609))},7087:function(t,e,i){!function(t){"use strict";var e={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 i(t,e,i,n){return e?s(i)[0]:n?s(i)[1]:s(i)[2]}function n(t){return t%10==0||t>10&&t<20}function s(t){return e[t].split("_")}function o(t,e,o,r){var a=t+" ";return 1===t?a+i(0,e,o[0],r):e?a+(n(t)?s(o)[1]:s(o)[0]):r?a+s(o)[1]:a+(n(t)?s(o)[1]:s(o)[2])}t.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(t,e,i,n){return e?"kelios sekund\u0117s":n?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:o,m:i,mm:o,h:i,hh:o,d:i,dd:o,M:i,MM:o,y:i,yy:o},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(t){return t+"-oji"},week:{dow:1,doy:4}})}(i(9609))},5683:function(t,e,i){!function(t){"use strict";var e={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 i(t,e,i){return i?e%10==1&&e%100!=11?t[2]:t[3]:e%10==1&&e%100!=11?t[0]:t[1]}function n(t,n,s){return t+" "+i(e[s],t,n)}function s(t,n,s){return i(e[s],t,n)}t.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(t,e){return e?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:n,m:s,mm:n,h:s,hh:n,d:s,dd:n,M:s,MM:n,y:s,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},9454:function(t,e,i){!function(t){"use strict";var e={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(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,i,n){var s=e.words[n];return 1===n.length?i?s[0]:s[1]:t+" "+e.correctGrammaticalCase(t,s)}};t.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:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mjesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},5507:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},8466:function(t,e,i){!function(t){"use strict";t.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:"\u043f\u043e\u0441\u043b\u0435 %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:"\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",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",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(t){var e=t%10,i=t%100;return 0===t?t+"-\u0435\u0432":0===i?t+"-\u0435\u043d":i>10&&i<20?t+"-\u0442\u0438":1===e?t+"-\u0432\u0438":2===e?t+"-\u0440\u0438":7===e||8===e?t+"-\u043c\u0438":t+"-\u0442\u0438"},week:{dow:1,doy:7}})}(i(9609))},2933:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===e&&t>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===e||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===e?t+12:t},meridiem:function(t,e,i){return t<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":t<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":t<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":t<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(i(9609))},9477:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){switch(i){case"s":return e?"\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 t+(e?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return t+(e?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return t+(e?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return t+(e?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return t+(e?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return t+(e?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return t}}t.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(t){return"\u04ae\u0425"===t},meridiem:function(t,e,i){return t<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: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} \u04e9\u0434\u04e9\u0440/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+" \u04e9\u0434\u04e9\u0440";default:return t}}})}(i(9609))},3597:function(t,e,i){!function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},i={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function n(t,e,i,n){var s="";if(e)switch(i){case"s":s="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":s="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":s="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":s="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":s="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":s="%d \u0924\u093e\u0938";break;case"d":s="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":s="%d \u0926\u093f\u0935\u0938";break;case"M":s="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":s="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":s="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":s="%d \u0935\u0930\u094d\u0937\u0947"}else switch(i){case"s":s="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":s="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":s="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":s="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":s="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":s="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":s="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":s="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":s="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":s="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":s="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":s="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return s.replace(/%d/i,t)}t.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:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},preparse:function(t){return t.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0930\u093e\u0924\u094d\u0930\u0940|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0930\u093e\u0924\u094d\u0930\u0940"===e?t<4?t:t+12:"\u0938\u0915\u093e\u0933\u0940"===e?t:"\u0926\u0941\u092a\u093e\u0930\u0940"===e?t>=10?t:t+12:"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0930\u093e\u0924\u094d\u0930\u0940":t<10?"\u0938\u0915\u093e\u0933\u0940":t<17?"\u0926\u0941\u092a\u093e\u0930\u0940":t<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(i(9609))},9965:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"pagi":t<15?"tengahari":t<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}})}(i(9609))},5529:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"pagi":t<15?"tengahari":t<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}})}(i(9609))},259:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},8061:function(t,e,i){!function(t){"use strict";var e={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},i={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};t.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(t){return t.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},week:{dow:1,doy:4}})}(i(9609))},2618:function(t,e,i){!function(t){"use strict";t.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_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",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}})}(i(9609))},8452:function(t,e,i){!function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},i={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};t.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(t){return t.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0930\u093e\u0924\u093f"===e?t<4?t:t+12:"\u092c\u093f\u0939\u093e\u0928"===e?t:"\u0926\u093f\u0909\u0901\u0938\u094b"===e?t>=10?t:t+12:"\u0938\u093e\u0901\u091d"===e?t+12:void 0},meridiem:function(t,e,i){return t<3?"\u0930\u093e\u0924\u093f":t<12?"\u092c\u093f\u0939\u093e\u0928":t<16?"\u0926\u093f\u0909\u0901\u0938\u094b":t<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}})}(i(9609))},413:function(t,e,i){!function(t){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^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;t.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(9609))},1885:function(t,e,i){!function(t){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^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;t.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(9609))},5107:function(t,e,i){!function(t){"use strict";t.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_m\xe5n_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_m\xe5_ty_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 [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",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}})}(i(9609))},702:function(t,e,i){!function(t){"use strict";var e={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},i={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};t.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(t){return t.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0a30\u0a3e\u0a24"===e?t<4?t:t+12:"\u0a38\u0a35\u0a47\u0a30"===e?t:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===e?t>=10?t:t+12:"\u0a38\u0a3c\u0a3e\u0a2e"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0a30\u0a3e\u0a24":t<10?"\u0a38\u0a35\u0a47\u0a30":t<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":t<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(i(9609))},1711:function(t,e,i){!function(t){"use strict";var e="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),i="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_");function n(t){return t%10<5&&t%10>1&&~~(t/10)%10!=1}function s(t,e,i){var s=t+" ";switch(i){case"ss":return s+(n(t)?"sekundy":"sekund");case"m":return e?"minuta":"minut\u0119";case"mm":return s+(n(t)?"minuty":"minut");case"h":return e?"godzina":"godzin\u0119";case"hh":return s+(n(t)?"godziny":"godzin");case"MM":return s+(n(t)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return s+(n(t)?"lata":"lat")}}t.defineLocale("pl",{months:function(t,n){return t?""===n?"("+i[t.month()]+"|"+e[t.month()]+")":/D MMMM/.test(n)?i[t.month()]:e[t.month()]:e},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),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:s,m:s,mm:s,h:s,hh:s,d:"1 dzie\u0144",dd:"%d dni",M:"miesi\u0105c",MM:s,y:"rok",yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},8238:function(t,e,i){!function(t){"use strict";t.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"})}(i(9609))},594:function(t,e,i){!function(t){"use strict";t.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",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}})}(i(9609))},4681:function(t,e,i){!function(t){"use strict";function e(t,e,i){var n=" ";return(t%100>=20||t>=100&&t%100==0)&&(n=" de "),t+n+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[i]}t.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._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:e,m:"un minut",mm:e,h:"o or\u0103",hh:e,d:"o zi",dd:e,M:"o lun\u0103",MM:e,y:"un an",yy:e},week:{dow:1,doy:7}})}(i(9609))},6201:function(t,e,i){!function(t){"use strict";function e(t,e,i){return"m"===i?e?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":t+" "+(n=+t,s={ss:e?"\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:e?"\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",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"}[i].split("_"),n%10==1&&n%100!=11?s[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?s[1]:s[2]);var n,s}var i=[/^\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];t.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:i,longMonthsParse:i,shortMonthsParse:i,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(t){if(t.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(t){if(t.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,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(t){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(t)},meridiem:function(t,e,i){return t<4?"\u043d\u043e\u0447\u0438":t<12?"\u0443\u0442\u0440\u0430":t<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":return t+"-\u0439";case"D":return t+"-\u0433\u043e";case"w":case"W":return t+"-\u044f";default:return t}},week:{dow:1,doy:4}})}(i(9609))},2912:function(t,e,i){!function(t){"use strict";var e=["\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"],i=["\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"];t.defineLocale("sd",{months:e,monthsShort:e,weekdays:i,weekdaysShort:i,weekdaysMin:i,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(t){return"\u0634\u0627\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(i(9609))},6002:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},7942:function(t,e,i){!function(t){"use strict";t.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(t){return t+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(t){return"\u0db4.\u0dc0."===t||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===t},meridiem:function(t,e,i){return t>11?i?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":i?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(i(9609))},5577:function(t,e,i){!function(t){"use strict";var e="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),i="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function n(t){return t>1&&t<5}function s(t,e,i,s){var o=t+" ";switch(i){case"s":return e||s?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return e||s?o+(n(t)?"sekundy":"sek\xfand"):o+"sekundami";case"m":return e?"min\xfata":s?"min\xfatu":"min\xfatou";case"mm":return e||s?o+(n(t)?"min\xfaty":"min\xfat"):o+"min\xfatami";case"h":return e?"hodina":s?"hodinu":"hodinou";case"hh":return e||s?o+(n(t)?"hodiny":"hod\xedn"):o+"hodinami";case"d":return e||s?"de\u0148":"d\u0148om";case"dd":return e||s?o+(n(t)?"dni":"dn\xed"):o+"d\u0148ami";case"M":return e||s?"mesiac":"mesiacom";case"MM":return e||s?o+(n(t)?"mesiace":"mesiacov"):o+"mesiacmi";case"y":return e||s?"rok":"rokom";case"yy":return e||s?o+(n(t)?"roky":"rokov"):o+"rokmi"}}t.defineLocale("sk",{months:e,monthsShort:i,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:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 4:case 5:return"[minul\xfd] dddd [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}})}(i(9609))},1775:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s=t+" ";switch(i){case"s":return e||n?"nekaj sekund":"nekaj sekundami";case"ss":return s+(1===t?e?"sekundo":"sekundi":2===t?e||n?"sekundi":"sekundah":t<5?e||n?"sekunde":"sekundah":"sekund");case"m":return e?"ena minuta":"eno minuto";case"mm":return s+(1===t?e?"minuta":"minuto":2===t?e||n?"minuti":"minutama":t<5?e||n?"minute":"minutami":e||n?"minut":"minutami");case"h":return e?"ena ura":"eno uro";case"hh":return s+(1===t?e?"ura":"uro":2===t?e||n?"uri":"urama":t<5?e||n?"ure":"urami":e||n?"ur":"urami");case"d":return e||n?"en dan":"enim dnem";case"dd":return s+(1===t?e||n?"dan":"dnem":2===t?e||n?"dni":"dnevoma":e||n?"dni":"dnevi");case"M":return e||n?"en mesec":"enim mesecem";case"MM":return s+(1===t?e||n?"mesec":"mesecem":2===t?e||n?"meseca":"mesecema":t<5?e||n?"mesece":"meseci":e||n?"mesecev":"meseci");case"y":return e||n?"eno leto":"enim letom";case"yy":return s+(1===t?e||n?"leto":"letom":2===t?e||n?"leti":"letoma":t<5?e||n?"leta":"leti":e||n?"let":"leti")}}t.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: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:7}})}(i(9609))},6823:function(t,e,i){!function(t){"use strict";t.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(t){return"M"===t.charAt(0)},meridiem:function(t,e,i){return t<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}})}(i(9609))},3848:function(t,e,i){!function(t){"use strict";var e={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\u0435 \u043c\u0438\u043d\u0443\u0442\u0435"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0435","\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"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],yy:["\u0433\u043e\u0434\u0438\u043d\u0430","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,i,n){var s=e.words[n];return 1===n.length?i?s[0]:s[1]:t+" "+e.correctGrammaticalCase(t,s)}};t.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:"DD.MM.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:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"\u0434\u0430\u043d",dd:e.translate,M:"\u043c\u0435\u0441\u0435\u0446",MM:e.translate,y:"\u0433\u043e\u0434\u0438\u043d\u0443",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},9038:function(t,e,i){!function(t){"use strict";var e={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,i,n){var s=e.words[n];return 1===n.length?i?s[0]:s[1]:t+" "+e.correctGrammaticalCase(t,s)}};t.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:"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] [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:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},6173:function(t,e,i){!function(t){"use strict";t.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(t,e,i){return t<11?"ekuseni":t<15?"emini":t<19?"entsambama":"ebusuku"},meridiemHour:function(t,e){return 12===t&&(t=0),"ekuseni"===e?t:"emini"===e?t>=11?t:t+12:"entsambama"===e||"ebusuku"===e?0===t?0:t+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(i(9609))},5788:function(t,e,i){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"e":1===e||2===e?"a":"e")},week:{dow:1,doy:4}})}(i(9609))},6882:function(t,e,i){!function(t){"use strict";t.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",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:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(i(9609))},2678:function(t,e,i){!function(t){"use strict";var e={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},i={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};t.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(t){return t+"\u0bb5\u0ba4\u0bc1"},preparse:function(t){return t.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},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(t,e,i){return t<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":t<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":t<10?" \u0b95\u0bbe\u0bb2\u0bc8":t<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":t<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":t<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(t,e){return 12===t&&(t=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===e?t<2?t:t+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===e||"\u0b95\u0bbe\u0bb2\u0bc8"===e||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===e&&t>=10?t:t+12},week:{dow:0,doy:6}})}(i(9609))},2797:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===e?t<4?t:t+12:"\u0c09\u0c26\u0c2f\u0c02"===e?t:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===e?t>=10?t:t+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":t<10?"\u0c09\u0c26\u0c2f\u0c02":t<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":t<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(i(9609))},2447:function(t,e,i){!function(t){"use strict";t.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:"minutu balun",ss:"minutu %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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},1335:function(t,e,i){!function(t){"use strict";var e={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"};t.defineLocale("tg",{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:"\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:"[\u041f\u0430\u0433\u043e\u04b3 \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(t,e){return 12===t&&(t=0),"\u0448\u0430\u0431"===e?t<4?t:t+12:"\u0441\u0443\u0431\u04b3"===e?t:"\u0440\u04ef\u0437"===e?t>=11?t:t+12:"\u0431\u0435\u0433\u043e\u04b3"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0448\u0430\u0431":t<11?"\u0441\u0443\u0431\u04b3":t<16?"\u0440\u04ef\u0437":t<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i(9609))},8667:function(t,e,i){!function(t){"use strict";t.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(t){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===t},meridiem:function(t,e,i){return t<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",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(i(9609))},9914:function(t,e,i){!function(t){"use strict";t.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(t){return t},week:{dow:1,doy:4}})}(i(9609))},1389:function(t,e,i){!function(t){"use strict";var e="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function i(t,i,n,s){var o=function(t){var i=Math.floor(t%1e3/100),n=Math.floor(t%100/10),s=t%10,o="";return i>0&&(o+=e[i]+"vatlh"),n>0&&(o+=(""!==o?" ":"")+e[n]+"maH"),s>0&&(o+=(""!==o?" ":"")+e[s]),""===o?"pagh":o}(t);switch(n){case"ss":return o+" lup";case"mm":return o+" tup";case"hh":return o+" rep";case"dd":return o+" jaj";case"MM":return o+" jar";case"yy":return o+" DIS"}}t.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(t){var e=t;return-1!==t.indexOf("jaj")?e.slice(0,-3)+"leS":-1!==t.indexOf("jar")?e.slice(0,-3)+"waQ":-1!==t.indexOf("DIS")?e.slice(0,-3)+"nem":e+" pIq"},past:function(t){var e=t;return-1!==t.indexOf("jaj")?e.slice(0,-3)+"Hu\u2019":-1!==t.indexOf("jar")?e.slice(0,-3)+"wen":-1!==t.indexOf("DIS")?e.slice(0,-3)+"ben":e+" ret"},s:"puS lup",ss:i,m:"wa\u2019 tup",mm:i,h:"wa\u2019 rep",hh:i,d:"wa\u2019 jaj",dd:i,M:"wa\u2019 jar",MM:i,y:"wa\u2019 DIS",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},3578:function(t,e,i){!function(t){"use strict";var e={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"};t.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_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".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 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",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(t,i){switch(i){case"d":case"D":case"Do":case"DD":return t;default:if(0===t)return t+"'\u0131nc\u0131";var n=t%10;return t+(e[n]||e[t%100-n]||e[t>=100?100:null])}},week:{dow:1,doy:7}})}(i(9609))},6969:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={s:["viensas secunds","'iensas secunds"],ss:[t+" secunds",t+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[t+" m\xeduts",t+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[t+" \xfeoras",t+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[t+" ziuas",t+" ziuas"],M:["'n mes","'iens mes"],MM:[t+" mesen",t+" mesen"],y:["'n ar","'iens ar"],yy:[t+" ars",t+" ars"]};return n||e?s[i][0]:s[i][1]}t.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(t){return"d'o"===t.toLowerCase()},meridiem:function(t,e,i){return t>11?i?"d'o":"D'O":i?"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}})}(i(9609))},690:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},6509:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},55:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===e||"\u0633\u06d5\u06be\u06d5\u0631"===e||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===e?t:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===e||"\u0643\u06d5\u0686"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":n<900?"\u0633\u06d5\u06be\u06d5\u0631":n<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":n<1230?"\u0686\u06c8\u0634":n<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(t,e){switch(e){case"d":case"D":case"DDD":return t+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return t+"-\u06be\u06d5\u067e\u062a\u06d5";default:return t}},preparse:function(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(i(9609))},2452:function(t,e,i){!function(t){"use strict";function e(t,e,i){return"m"===i?e?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===i?e?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":t+" "+(n=+t,s={ss:e?"\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:e?"\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:e?"\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"}[i].split("_"),n%10==1&&n%100!=11?s[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?s[1]:s[2]);var n,s}function i(t){return function(){return t+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}t.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(t,e){var i={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===t?i.nominative.slice(1,7).concat(i.nominative.slice(0,1)):t?i[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(e)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(e)?"genitive":"nominative"][t.day()]:i.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:i("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:i("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:i("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:i("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return i("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return i("[\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(t){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(t)},meridiem:function(t,e,i){return t<4?"\u043d\u043e\u0447\u0456":t<12?"\u0440\u0430\u043d\u043a\u0443":t<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t+"-\u0439";case"D":return t+"-\u0433\u043e";default:return t}},week:{dow:1,doy:7}})}(i(9609))},1151:function(t,e,i){!function(t){"use strict";var e=["\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"],i=["\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"];t.defineLocale("ur",{months:e,monthsShort:e,weekdays:i,weekdaysShort:i,weekdaysMin:i,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(t){return"\u0634\u0627\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(i(9609))},6547:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},1555:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},6541:function(t,e,i){!function(t){"use strict";t.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:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".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(t){return/^ch$/i.test(t)},meridiem:function(t,e,i){return t<12?i?"sa":"SA":i?"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 r\u1ed3i 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",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})}(i(9609))},2401:function(t,e,i){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},2341:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},619:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"\u51cc\u6668"===e||"\u65e9\u4e0a"===e||"\u4e0a\u5348"===e?t:"\u4e0b\u5348"===e||"\u665a\u4e0a"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1130?"\u4e0a\u5348":n<1230?"\u4e2d\u5348":n<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|\u5468)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"\u65e5";case"M":return t+"\u6708";case"w":case"W":return t+"\u5468";default:return t}},relativeTime:{future:"%s\u5185",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",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(i(9609))},7058:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"\u51cc\u6668"===e||"\u65e9\u4e0a"===e||"\u4e0a\u5348"===e?t:"\u4e2d\u5348"===e?t>=11?t:t+12:"\u4e0b\u5348"===e||"\u665a\u4e0a"===e?t+12:void 0},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1130?"\u4e0a\u5348":n<1230?"\u4e2d\u5348":n<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(t,e){switch(e){case"d":case"D":case"DDD":return t+"\u65e5";case"M":return t+"\u6708";case"w":case"W":return t+"\u9031";default:return t}},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"}})}(i(9609))},2782:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"\u51cc\u6668"===e||"\u65e9\u4e0a"===e||"\u4e0a\u5348"===e?t:"\u4e2d\u5348"===e?t>=11?t:t+12:"\u4e0b\u5348"===e||"\u665a\u4e0a"===e?t+12:void 0},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1130?"\u4e0a\u5348":n<1230?"\u4e2d\u5348":n<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(t,e){switch(e){case"d":case"D":case"DDD":return t+"\u65e5";case"M":return t+"\u6708";case"w":case"W":return t+"\u9031";default:return t}},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"}})}(i(9609))},9609:function(t,e,i){(t=i.nmd(t)).exports=function(){"use strict";var e,n;function s(){return e.apply(null,arguments)}function o(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function r(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function a(t){return void 0===t}function c(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function u(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function l(t,e){var i,n=[];for(i=0;i>>0,n=0;n0)for(i=0;i<_.length;i++)a(s=e[n=_[i]])||(t[n]=s);return t}var y=!1;function b(t){w(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,s.updateOffset(this),y=!1)}function A(t){return t instanceof b||null!=t&&null!=t._isAMomentObject}function v(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function k(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=v(e)),i}function T(t,e,i){var n,s=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),r=0;for(n=0;n=0?i?"+":"":"-")+Math.pow(10,Math.max(0,e-n.length)).toString().substr(1)+n}var j=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,N={},K={};function q(t,e,i,n){var s=n;"string"==typeof n&&(s=function(){return this[n]()}),t&&(K[t]=s),e&&(K[e[0]]=function(){return B(s.apply(this,arguments),e[1],e[2])}),i&&(K[i]=function(){return this.localeData().ordinal(s.apply(this,arguments),t)})}function U(t,e){return t.isValid()?(e=Z(e,t.localeData()),N[e]=N[e]||function(t){var e,i,n,s=t.match(j);for(e=0,i=s.length;e=0&&F.test(t);)t=t.replace(F,n),F.lastIndex=0,i-=1;return t}var G=/\d/,V=/\d\d/,$=/\d{3}/,W=/\d{4}/,J=/[+-]?\d{6}/,Q=/\d\d?/,X=/\d\d\d\d?/,tt=/\d\d\d\d\d\d?/,et=/\d{1,3}/,it=/\d{1,4}/,nt=/[+-]?\d{1,6}/,st=/\d+/,ot=/[+-]?\d+/,rt=/Z|[+-]\d\d:?\d\d/gi,at=/Z|[+-]\d\d(?::?\d\d)?/gi,ct=/[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,ut={};function lt(t,e,i){ut[t]=x(e)?e:function(t,n){return t&&i?i:e}}function ht(t,e){return h(ut,t)?ut[t](e._strict,e._locale):new RegExp(dt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,i,n,s){return e||i||n||s})))}function dt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var pt={};function ft(t,e){var i,n=e;for("string"==typeof t&&(t=[t]),c(e)&&(n=function(t,i){i[e]=k(t)}),i=0;i68?1900:2e3)};var yt,bt=At("FullYear",!0);function At(t,e){return function(i){return null!=i?(kt(this,t,i),s.updateOffset(this,e),this):vt(this,t)}}function vt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function kt(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&&wt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),Tt(i,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](i))}function Tt(t,e){if(isNaN(t)||isNaN(e))return NaN;var i=(e%12+12)%12;return t+=(e-i)/12,1===i?wt(t)?29:28:31-i%7%2}yt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e=0?(a=new Date(t+400,e,i,n,s,o,r),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,i,n,s,o,r),a}function It(t){var e;if(t<100&&t>=0){var i=Array.prototype.slice.call(arguments);i[0]=t+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function Ot(t,e,i){var n=7+e-i;return-(7+It(t,0,n).getUTCDay()-e)%7+n-1}function Ht(t,e,i,n,s){var o,r,a=1+7*(e-1)+(7+i-n)%7+Ot(t,n,s);return a<=0?r=_t(o=t-1)+a:a>_t(t)?(o=t+1,r=a-_t(t)):(o=t,r=a),{year:o,dayOfYear:r}}function Yt(t,e,i){var n,s,o=Ot(t.year(),e,i),r=Math.floor((t.dayOfYear()-o-1)/7)+1;return r<1?n=r+Bt(s=t.year()-1,e,i):r>Bt(t.year(),e,i)?(n=r-Bt(t.year(),e,i),s=t.year()+1):(s=t.year(),n=r),{week:n,year:s}}function Bt(t,e,i){var n=Ot(t,e,i),s=Ot(t+1,e,i);return(_t(t)-n+s)/7}function jt(t,e){return t.slice(e,7).concat(t.slice(0,e))}q("w",["ww",2],"wo","week"),q("W",["WW",2],"Wo","isoWeek"),P("week","w"),P("isoWeek","W"),Y("week",5),Y("isoWeek",5),lt("w",Q),lt("ww",Q,V),lt("W",Q),lt("WW",Q,V),gt(["w","ww","W","WW"],function(t,e,i,n){e[n.substr(0,1)]=k(t)}),q("d",0,"do","day"),q("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),q("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),q("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),q("e",0,0,"weekday"),q("E",0,0,"isoWeekday"),P("day","d"),P("weekday","e"),P("isoWeekday","E"),Y("day",11),Y("weekday",11),Y("isoWeekday",11),lt("d",Q),lt("e",Q),lt("E",Q),lt("dd",function(t,e){return e.weekdaysMinRegex(t)}),lt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),lt("dddd",function(t,e){return e.weekdaysRegex(t)}),gt(["dd","ddd","dddd"],function(t,e,i,n){var s=i._locale.weekdaysParse(t,n,i._strict);null!=s?e.d=s:f(i).invalidWeekday=t}),gt(["d","e","E"],function(t,e,i,n){e[n]=k(t)});var Ft="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Nt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Kt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function qt(t,e,i){var n,s,o,r=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=p([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(s=yt.call(this._weekdaysParse,r))?s:null:"ddd"===e?-1!==(s=yt.call(this._shortWeekdaysParse,r))?s:null:-1!==(s=yt.call(this._minWeekdaysParse,r))?s:null:"dddd"===e?-1!==(s=yt.call(this._weekdaysParse,r))||-1!==(s=yt.call(this._shortWeekdaysParse,r))||-1!==(s=yt.call(this._minWeekdaysParse,r))?s:null:"ddd"===e?-1!==(s=yt.call(this._shortWeekdaysParse,r))||-1!==(s=yt.call(this._weekdaysParse,r))||-1!==(s=yt.call(this._minWeekdaysParse,r))?s:null:-1!==(s=yt.call(this._minWeekdaysParse,r))||-1!==(s=yt.call(this._weekdaysParse,r))||-1!==(s=yt.call(this._shortWeekdaysParse,r))?s:null}var Ut=ct,Zt=ct,Gt=ct;function Vt(){function t(t,e){return e.length-t.length}var e,i,n,s,o,r=[],a=[],c=[],u=[];for(e=0;e<7;e++)i=p([2e3,1]).day(e),n=this.weekdaysMin(i,""),s=this.weekdaysShort(i,""),o=this.weekdays(i,""),r.push(n),a.push(s),c.push(o),u.push(n),u.push(s),u.push(o);for(r.sort(t),a.sort(t),c.sort(t),u.sort(t),e=0;e<7;e++)a[e]=dt(a[e]),c[e]=dt(c[e]),u[e]=dt(u[e]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function $t(){return this.hours()%12||12}function Wt(t,e){q(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Jt(t,e){return e._meridiemParse}q("H",["HH",2],0,"hour"),q("h",["hh",2],0,$t),q("k",["kk",2],0,function(){return this.hours()||24}),q("hmm",0,0,function(){return""+$t.apply(this)+B(this.minutes(),2)}),q("hmmss",0,0,function(){return""+$t.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)}),q("Hmm",0,0,function(){return""+this.hours()+B(this.minutes(),2)}),q("Hmmss",0,0,function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)}),Wt("a",!0),Wt("A",!1),P("hour","h"),Y("hour",13),lt("a",Jt),lt("A",Jt),lt("H",Q),lt("h",Q),lt("k",Q),lt("HH",Q,V),lt("hh",Q,V),lt("kk",Q,V),lt("hmm",X),lt("hmmss",tt),lt("Hmm",X),lt("Hmmss",tt),ft(["H","HH"],3),ft(["k","kk"],function(t,e,i){var n=k(t);e[3]=24===n?0:n}),ft(["a","A"],function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t}),ft(["h","hh"],function(t,e,i){e[3]=k(t),f(i).bigHour=!0}),ft("hmm",function(t,e,i){var n=t.length-2;e[3]=k(t.substr(0,n)),e[4]=k(t.substr(n)),f(i).bigHour=!0}),ft("hmmss",function(t,e,i){var n=t.length-4,s=t.length-2;e[3]=k(t.substr(0,n)),e[4]=k(t.substr(n,2)),e[5]=k(t.substr(s)),f(i).bigHour=!0}),ft("Hmm",function(t,e,i){var n=t.length-2;e[3]=k(t.substr(0,n)),e[4]=k(t.substr(n))}),ft("Hmmss",function(t,e,i){var n=t.length-4,s=t.length-2;e[3]=k(t.substr(0,n)),e[4]=k(t.substr(n,2)),e[5]=k(t.substr(s))});var Qt,Xt=At("Hours",!0),te={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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:St,monthsShort:Mt,week:{dow:0,doy:6},weekdays:Ft,weekdaysMin:Kt,weekdaysShort:Nt,meridiemParse:/[ap]\.?m?\.?/i},ee={},ie={};function ne(t){return t?t.toLowerCase().replace("_","-"):t}function se(e){var n=null;if(!ee[e]&&t&&t.exports)try{n=Qt._abbr,i(6700)("./"+e),oe(n)}catch(s){}return ee[e]}function oe(t,e){var i;return t&&((i=a(e)?ae(t):re(t,e))?Qt=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Qt._abbr}function re(t,e){if(null!==e){var i,n=te;if(e.abbr=t,null!=ee[t])L("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=ee[t]._config;else if(null!=e.parentLocale)if(null!=ee[e.parentLocale])n=ee[e.parentLocale]._config;else{if(null==(i=se(e.parentLocale)))return ie[e.parentLocale]||(ie[e.parentLocale]=[]),ie[e.parentLocale].push({name:t,config:e}),null;n=i._config}return ee[t]=new D(R(n,e)),ie[t]&&ie[t].forEach(function(t){re(t.name,t.config)}),oe(t),ee[t]}return delete ee[t],null}function ae(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Qt;if(!o(t)){if(e=se(t))return e;t=[t]}return function(t){for(var e,i,n,s,o=0;o0;){if(n=se(s.slice(0,e).join("-")))return n;if(i&&i.length>=e&&T(s,i,!0)>=e-1)break;e--}o++}return Qt}(t)}function ce(t){var e,i=t._a;return i&&-2===f(t).overflow&&(e=i[1]<0||i[1]>11?1:i[2]<1||i[2]>Tt(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,f(t)._overflowDayOfYear&&(e<0||e>2)&&(e=2),f(t)._overflowWeeks&&-1===e&&(e=7),f(t)._overflowWeekday&&-1===e&&(e=8),f(t).overflow=e),t}function ue(t,e,i){return null!=t?t:null!=e?e:i}function le(t){var e,i,n,o,r,a=[];if(!t._d){for(n=function(t){var e=new Date(s.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[2]&&null==t._a[1]&&function(t){var e,i,n,s,o,r,a,c;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)o=1,r=4,i=ue(e.GG,t._a[0],Yt(Te(),1,4).year),n=ue(e.W,1),((s=ue(e.E,1))<1||s>7)&&(c=!0);else{o=t._locale._week.dow,r=t._locale._week.doy;var u=Yt(Te(),o,r);i=ue(e.gg,t._a[0],u.year),n=ue(e.w,u.week),null!=e.d?((s=e.d)<0||s>6)&&(c=!0):null!=e.e?(s=e.e+o,(e.e<0||e.e>6)&&(c=!0)):s=o}n<1||n>Bt(i,o,r)?f(t)._overflowWeeks=!0:null!=c?f(t)._overflowWeekday=!0:(a=Ht(i,n,s,o,r),t._a[0]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(r=ue(t._a[0],n[0]),(t._dayOfYear>_t(r)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),i=It(r,0,t._dayOfYear),t._a[1]=i.getUTCMonth(),t._a[2]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=n[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];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?It:Pt).apply(null,a),o=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&&void 0!==t._w.d&&t._w.d!==o&&(f(t).weekdayMismatch=!0)}}var he=/^\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)?)?$/,de=/^\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)?)?$/,pe=/Z|[+-]\d\d(?::?\d\d)?/,fe=[["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}/]],ge=[["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/]],me=/^\/?Date\((\-?\d+)/i;function _e(t){var e,i,n,s,o,r,a=t._i,c=he.exec(a)||de.exec(a);if(c){for(f(t).iso=!0,e=0,i=fe.length;e0&&f(t).unusedInput.push(r),a=a.slice(a.indexOf(i)+i.length),u+=i.length),K[o]?(i?f(t).empty=!1:f(t).unusedTokens.push(o),mt(o,i,t)):t._strict&&!i&&f(t).unusedTokens.push(o);f(t).charsLeftOver=c-u,a.length>0&&f(t).unusedInput.push(a),t._a[3]<=12&&!0===f(t).bigHour&&t._a[3]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[3]=function(t,e,i){var n;return null==i?e:null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?((n=t.isPM(i))&&e<12&&(e+=12),n||12!==e||(e=0),e):e}(t._locale,t._a[3],t._meridiem),le(t),ce(t)}else be(t);else _e(t)}function ve(t){var e=t._i,i=t._f;return t._locale=t._locale||ae(t._l),null===e||void 0===i&&""===e?m({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),A(e)?new b(ce(e)):(u(e)?t._d=e:o(i)?function(t){var e,i,n,s,o;if(0===t._f.length)return f(t).invalidFormat=!0,void(t._d=new Date(NaN));for(s=0;sthis?this:t:m()});function Me(t,e){var i,n;if(1===e.length&&o(e[0])&&(e=e[0]),!e.length)return Te();for(i=e[0],n=1;n=0?new Date(t+400,e,i)-ti:new Date(t,e,i).valueOf()}function ni(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-ti:Date.UTC(t,e,i)}function si(t,e){q(0,[t,t.length],0,e)}function oi(t,e,i,n,s){var o;return null==t?Yt(this,n,s).year:(e>(o=Bt(t,n,s))&&(e=o),ri.call(this,t,e,i,n,s))}function ri(t,e,i,n,s){var o=Ht(t,e,i,n,s),r=It(o.year,0,o.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}q(0,["gg",2],0,function(){return this.weekYear()%100}),q(0,["GG",2],0,function(){return this.isoWeekYear()%100}),si("gggg","weekYear"),si("ggggg","weekYear"),si("GGGG","isoWeekYear"),si("GGGGG","isoWeekYear"),P("weekYear","gg"),P("isoWeekYear","GG"),Y("weekYear",1),Y("isoWeekYear",1),lt("G",ot),lt("g",ot),lt("GG",Q,V),lt("gg",Q,V),lt("GGGG",it,W),lt("gggg",it,W),lt("GGGGG",nt,J),lt("ggggg",nt,J),gt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,i,n){e[n.substr(0,2)]=k(t)}),gt(["gg","GG"],function(t,e,i,n){e[n]=s.parseTwoDigitYear(t)}),q("Q",0,"Qo","quarter"),P("quarter","Q"),Y("quarter",7),lt("Q",G),ft("Q",function(t,e){e[1]=3*(k(t)-1)}),q("D",["DD",2],"Do","date"),P("date","D"),Y("date",9),lt("D",Q),lt("DD",Q,V),lt("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),ft(["D","DD"],2),ft("Do",function(t,e){e[2]=k(t.match(Q)[0])});var ai=At("Date",!0);q("DDD",["DDDD",3],"DDDo","dayOfYear"),P("dayOfYear","DDD"),Y("dayOfYear",4),lt("DDD",et),lt("DDDD",$),ft(["DDD","DDDD"],function(t,e,i){i._dayOfYear=k(t)}),q("m",["mm",2],0,"minute"),P("minute","m"),Y("minute",14),lt("m",Q),lt("mm",Q,V),ft(["m","mm"],4);var ci=At("Minutes",!1);q("s",["ss",2],0,"second"),P("second","s"),Y("second",15),lt("s",Q),lt("ss",Q,V),ft(["s","ss"],5);var ui,li=At("Seconds",!1);for(q("S",0,0,function(){return~~(this.millisecond()/100)}),q(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),q(0,["SSS",3],0,"millisecond"),q(0,["SSSS",4],0,function(){return 10*this.millisecond()}),q(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),q(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),q(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),q(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),q(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),P("millisecond","ms"),Y("millisecond",16),lt("S",et,G),lt("SS",et,V),lt("SSS",et,$),ui="SSSS";ui.length<=9;ui+="S")lt(ui,st);function hi(t,e){e[6]=k(1e3*("0."+t))}for(ui="S";ui.length<=9;ui+="S")ft(ui,hi);var di=At("Milliseconds",!1);q("z",0,0,"zoneAbbr"),q("zz",0,0,"zoneName");var pi=b.prototype;function fi(t){return t}pi.add=Ue,pi.calendar=function(t,e){var i=t||Te(),n=Ie(i,this).startOf("day"),o=s.calendarFormat(this,n)||"sameElse",r=e&&(x(e[o])?e[o].call(this,i):e[o]);return this.format(r||this.localeData().calendar(o,this,Te(i)))},pi.clone=function(){return new b(this)},pi.diff=function(t,e,i){var n,s,o;if(!this.isValid())return NaN;if(!(n=Ie(t,this)).isValid())return NaN;switch(s=6e4*(n.utcOffset()-this.utcOffset()),e=I(e)){case"year":o=Ge(this,n)/12;break;case"month":o=Ge(this,n);break;case"quarter":o=Ge(this,n)/3;break;case"second":o=(this-n)/1e3;break;case"minute":o=(this-n)/6e4;break;case"hour":o=(this-n)/36e5;break;case"day":o=(this-n-s)/864e5;break;case"week":o=(this-n-s)/6048e5;break;default:o=this-n}return i?o:v(o)},pi.endOf=function(t){var e;if(void 0===(t=I(t))||"millisecond"===t||!this.isValid())return this;var i=this._isUTC?ni:ii;switch(t){case"year":e=i(this.year()+1,0,1)-1;break;case"quarter":e=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=i(this.year(),this.month()+1,1)-1;break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=Xe-ei(e+(this._isUTC?0:this.utcOffset()*Qe),Xe)-1;break;case"minute":e=this._d.valueOf(),e+=Qe-ei(e,Qe)-1;break;case"second":e=this._d.valueOf(),e+=Je-ei(e,Je)-1}return this._d.setTime(e),s.updateOffset(this,!0),this},pi.format=function(t){t||(t=this.isUtc()?s.defaultFormatUtc:s.defaultFormat);var e=U(this,t);return this.localeData().postformat(e)},pi.from=function(t,e){return this.isValid()&&(A(t)&&t.isValid()||Te(t).isValid())?je({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},pi.fromNow=function(t){return this.from(Te(),t)},pi.to=function(t,e){return this.isValid()&&(A(t)&&t.isValid()||Te(t).isValid())?je({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},pi.toNow=function(t){return this.to(Te(),t)},pi.get=function(t){return x(this[t=I(t)])?this[t]():this},pi.invalidAt=function(){return f(this).overflow},pi.isAfter=function(t,e){var i=A(t)?t:Te(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=I(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()9999?U(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):x(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(i,"Z")):U(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},pi.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var i="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";return this.format(i+n+"-MM-DD[T]HH:mm:ss.SSS"+e+'[")]')},pi.toJSON=function(){return this.isValid()?this.toISOString():null},pi.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},pi.unix=function(){return Math.floor(this.valueOf()/1e3)},pi.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},pi.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},pi.year=bt,pi.isLeapYear=function(){return wt(this.year())},pi.weekYear=function(t){return oi.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},pi.isoWeekYear=function(t){return oi.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},pi.quarter=pi.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},pi.month=xt,pi.daysInMonth=function(){return Tt(this.year(),this.month())},pi.week=pi.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},pi.isoWeek=pi.isoWeeks=function(t){var e=Yt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},pi.weeksInYear=function(){var t=this.localeData()._week;return Bt(this.year(),t.dow,t.doy)},pi.isoWeeksInYear=function(){return Bt(this.year(),1,4)},pi.date=ai,pi.day=pi.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},pi.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},pi.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},pi.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},pi.hour=pi.hours=Xt,pi.minute=pi.minutes=ci,pi.second=pi.seconds=li,pi.millisecond=pi.milliseconds=di,pi.utcOffset=function(t,e,i){var n,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Pe(at,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(n=Oe(this)),this._offset=t,this._isUTC=!0,null!=n&&this.add(n,"m"),o!==t&&(!e||this._changeInProgress?qe(this,je(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,s.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Oe(this)},pi.utc=function(t){return this.utcOffset(0,t)},pi.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Oe(this),"m")),this},pi.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Pe(rt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},pi.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Te(t).utcOffset():0,(this.utcOffset()-t)%60==0)},pi.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},pi.isLocal=function(){return!!this.isValid()&&!this._isUTC},pi.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},pi.isUtc=He,pi.isUTC=He,pi.zoneAbbr=function(){return this._isUTC?"UTC":""},pi.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},pi.dates=S("dates accessor is deprecated. Use date instead.",ai),pi.months=S("months accessor is deprecated. Use month instead",xt),pi.years=S("years accessor is deprecated. Use year instead",bt),pi.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),pi.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var t={};if(w(t,this),(t=ve(t))._a){var e=t._isUTC?p(t._a):Te(t._a);this._isDSTShifted=this.isValid()&&T(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var gi=D.prototype;function mi(t,e,i,n){var s=ae(),o=p().set(n,e);return s[i](o,t)}function _i(t,e,i){if(c(t)&&(e=t,t=void 0),t=t||"",null!=e)return mi(t,e,i,"month");var n,s=[];for(n=0;n<12;n++)s[n]=mi(t,n,i,"month");return s}function wi(t,e,i,n){"boolean"==typeof t?(c(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,c(e)&&(i=e,e=void 0),e=e||"");var s,o=ae(),r=t?o._week.dow:0;if(null!=i)return mi(e,(i+r)%7,n,"day");var a=[];for(s=0;s<7;s++)a[s]=mi(e,(s+r)%7,n,"day");return a}gi.calendar=function(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return x(n)?n.call(e,i):n},gi.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},gi.invalidDate=function(){return this._invalidDate},gi.ordinal=function(t){return this._ordinal.replace("%d",t)},gi.preparse=fi,gi.postformat=fi,gi.relativeTime=function(t,e,i,n){var s=this._relativeTime[i];return x(s)?s(t,e,i,n):s.replace(/%d/i,t)},gi.pastFuture=function(t,e){var i=this._relativeTime[t>0?"future":"past"];return x(i)?i(e):i.replace(/%s/i,e)},gi.set=function(t){var e,i;for(i in t)x(e=t[i])?this[i]=e:this["_"+i]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},gi.months=function(t,e){return t?o(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Ct).test(e)?"format":"standalone"][t.month()]:o(this._months)?this._months:this._months.standalone},gi.monthsShort=function(t,e){return t?o(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Ct.test(e)?"format":"standalone"][t.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},gi.monthsParse=function(t,e,i){var n,s,o;if(this._monthsParseExact)return Et.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(s=p([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(o="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[n]=new RegExp(o.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}},gi.monthsRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||zt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=Dt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},gi.monthsShortRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||zt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=Rt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},gi.week=function(t){return Yt(t,this._week.dow,this._week.doy).week},gi.firstDayOfYear=function(){return this._week.doy},gi.firstDayOfWeek=function(){return this._week.dow},gi.weekdays=function(t,e){var i=o(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?jt(i,this._week.dow):t?i[t.day()]:i},gi.weekdaysMin=function(t){return!0===t?jt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},gi.weekdaysShort=function(t){return!0===t?jt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},gi.weekdaysParse=function(t,e,i){var n,s,o;if(this._weekdaysParseExact)return qt.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(s=p([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[n]=new RegExp(o.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!i&&this._weekdaysParse[n].test(t))return n}},gi.weekdaysRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Vt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=Ut),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},gi.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Vt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Zt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},gi.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Vt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Gt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},gi.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},gi.meridiem=function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},oe("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===k(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),s.lang=S("moment.lang is deprecated. Use moment.locale instead.",oe),s.langData=S("moment.langData is deprecated. Use moment.localeData instead.",ae);var yi=Math.abs;function bi(t,e,i,n){var s=je(e,i);return t._milliseconds+=n*s._milliseconds,t._days+=n*s._days,t._months+=n*s._months,t._bubble()}function Ai(t){return t<0?Math.floor(t):Math.ceil(t)}function vi(t){return 4800*t/146097}function ki(t){return 146097*t/4800}function Ti(t){return function(){return this.as(t)}}var Ci=Ti("ms"),Si=Ti("s"),Mi=Ti("m"),Ei=Ti("h"),Li=Ti("d"),xi=Ti("w"),Ri=Ti("M"),Di=Ti("Q"),zi=Ti("y");function Pi(t){return function(){return this.isValid()?this._data[t]:NaN}}var Ii=Pi("milliseconds"),Oi=Pi("seconds"),Hi=Pi("minutes"),Yi=Pi("hours"),Bi=Pi("days"),ji=Pi("months"),Fi=Pi("years"),Ni=Math.round,Ki={ss:44,s:45,m:45,h:22,d:26,M:11};function qi(t,e,i,n,s){return s.relativeTime(e||1,!!i,t,n)}var Ui=Math.abs;function Zi(t){return(t>0)-(t<0)||+t}function Gi(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i=Ui(this._milliseconds)/1e3,n=Ui(this._days),s=Ui(this._months);t=v(i/60),e=v(t/60),i%=60,t%=60;var o=v(s/12),r=s%=12,a=n,c=e,u=t,l=i?i.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var d=h<0?"-":"",p=Zi(this._months)!==Zi(h)?"-":"",f=Zi(this._days)!==Zi(h)?"-":"",g=Zi(this._milliseconds)!==Zi(h)?"-":"";return d+"P"+(o?p+o+"Y":"")+(r?p+r+"M":"")+(a?f+a+"D":"")+(c||u||l?"T":"")+(c?g+c+"H":"")+(u?g+u+"M":"")+(l?g+l+"S":"")}var Vi=Le.prototype;return Vi.isValid=function(){return this._isValid},Vi.abs=function(){var t=this._data;return this._milliseconds=yi(this._milliseconds),this._days=yi(this._days),this._months=yi(this._months),t.milliseconds=yi(t.milliseconds),t.seconds=yi(t.seconds),t.minutes=yi(t.minutes),t.hours=yi(t.hours),t.months=yi(t.months),t.years=yi(t.years),this},Vi.add=function(t,e){return bi(this,t,e,1)},Vi.subtract=function(t,e){return bi(this,t,e,-1)},Vi.as=function(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if("month"===(t=I(t))||"quarter"===t||"year"===t)switch(i=this._months+vi(e=this._days+n/864e5),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(ki(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}},Vi.asMilliseconds=Ci,Vi.asSeconds=Si,Vi.asMinutes=Mi,Vi.asHours=Ei,Vi.asDays=Li,Vi.asWeeks=xi,Vi.asMonths=Ri,Vi.asQuarters=Di,Vi.asYears=zi,Vi.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN},Vi._bubble=function(){var t,e,i,n,s,o=this._milliseconds,r=this._days,a=this._months,c=this._data;return o>=0&&r>=0&&a>=0||o<=0&&r<=0&&a<=0||(o+=864e5*Ai(ki(a)+r),r=0,a=0),c.milliseconds=o%1e3,t=v(o/1e3),c.seconds=t%60,e=v(t/60),c.minutes=e%60,i=v(e/60),c.hours=i%24,r+=v(i/24),a+=s=v(vi(r)),r-=Ai(ki(s)),n=v(a/12),a%=12,c.days=r,c.months=a,c.years=n,this},Vi.clone=function(){return je(this)},Vi.get=function(t){return t=I(t),this.isValid()?this[t+"s"]():NaN},Vi.milliseconds=Ii,Vi.seconds=Oi,Vi.minutes=Hi,Vi.hours=Yi,Vi.days=Bi,Vi.weeks=function(){return v(this.days()/7)},Vi.months=ji,Vi.years=Fi,Vi.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),i=function(t,e,i){var n=je(t).abs(),s=Ni(n.as("s")),o=Ni(n.as("m")),r=Ni(n.as("h")),a=Ni(n.as("d")),c=Ni(n.as("M")),u=Ni(n.as("y")),l=s<=Ki.ss&&["s",s]||s0,l[4]=i,qi.apply(null,l)}(this,!t,e);return t&&(i=e.pastFuture(+this,i)),e.postformat(i)},Vi.toISOString=Gi,Vi.toString=Gi,Vi.toJSON=Gi,Vi.locale=Ve,Vi.localeData=We,Vi.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Gi),Vi.lang=$e,q("X",0,0,"unix"),q("x",0,0,"valueOf"),lt("x",ot),lt("X",/[+-]?\d+(\.\d{1,3})?/),ft("X",function(t,e,i){i._d=new Date(1e3*parseFloat(t,10))}),ft("x",function(t,e,i){i._d=new Date(k(t))}),s.version="2.24.0",e=Te,s.fn=pi,s.min=function(){return Me("isBefore",[].slice.call(arguments,0))},s.max=function(){return Me("isAfter",[].slice.call(arguments,0))},s.now=function(){return Date.now?Date.now():+new Date},s.utc=p,s.unix=function(t){return Te(1e3*t)},s.months=function(t,e){return _i(t,e,"months")},s.isDate=u,s.locale=oe,s.invalid=m,s.duration=je,s.isMoment=A,s.weekdays=function(t,e,i){return wi(t,e,i,"weekdays")},s.parseZone=function(){return Te.apply(null,arguments).parseZone()},s.localeData=ae,s.isDuration=xe,s.monthsShort=function(t,e){return _i(t,e,"monthsShort")},s.weekdaysMin=function(t,e,i){return wi(t,e,i,"weekdaysMin")},s.defineLocale=re,s.updateLocale=function(t,e){if(null!=e){var i,n,s=te;null!=(n=se(t))&&(s=n._config),(i=new D(e=R(s,e))).parentLocale=ee[t],ee[t]=i,oe(t)}else null!=ee[t]&&(null!=ee[t].parentLocale?ee[t]=ee[t].parentLocale:null!=ee[t]&&delete ee[t]);return ee[t]},s.locales=function(){return M(ee)},s.weekdaysShort=function(t,e,i){return wi(t,e,i,"weekdaysShort")},s.normalizeUnits=I,s.relativeTimeRounding=function(t){return void 0===t?Ni:"function"==typeof t&&(Ni=t,!0)},s.relativeTimeThreshold=function(t,e){return void 0!==Ki[t]&&(void 0===e?Ki[t]:(Ki[t]=e,"s"===t&&(Ki.ss=e-1),!0))},s.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},s.prototype=pi,s.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"},s}()},963:t=>{"use strict";function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,i,n,s){n=n||"=";var o={};if("string"!=typeof t||0===t.length)return o;var r=/\+/g;t=t.split(i=i||"&");var a=1e3;s&&"number"==typeof s.maxKeys&&(a=s.maxKeys);var c=t.length;a>0&&c>a&&(c=a);for(var u=0;u=0?(l=f.substr(0,g),h=f.substr(g+1)):(l=f,h=""),d=decodeURIComponent(l),p=decodeURIComponent(h),e(o,d)?Array.isArray(o[d])?o[d].push(p):o[d]=[o[d],p]:o[d]=p}return o}},5341:t=>{"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,i,n,s){return i=i||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map(function(s){var o=encodeURIComponent(e(s))+n;return Array.isArray(t[s])?t[s].map(function(t){return o+encodeURIComponent(e(t))}).join(i):o+encodeURIComponent(e(t[s]))}).join(i):s?encodeURIComponent(e(s))+n+encodeURIComponent(e(t)):""}},6577:(t,e,i)=>{"use strict";i(963),i(5341)},9867:(t,e,i)=>{"use strict";i.d(e,{d:()=>s});var n=i(6673);class s extends n.L{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},3103:(t,e,i)=>{"use strict";i.d(e,{P:()=>r});var n=i(653),s=i(878),o=i(1225);let r=(()=>{class t{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return(0,s.of)(this.value);case"E":return(0,o._)(this.error);case"C":return(0,n.c)()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})()},8318:(t,e,i)=>{"use strict";i.d(e,{y:()=>u});var n=i(6673),s=i(5331),o=i(7498),r=i(6197),a=i(3392),c=i(1484);let u=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(t,e,i){const{operator:r}=this,a=function(t,e,i){if(t){if(t instanceof n.L)return t;if(t[s.b])return t[s.b]()}return t||e||i?new n.L(t,e,i):new n.L(o.c)}(t,e,i);if(a.add(r?r.call(a,this.source):this.source||c.v.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),c.v.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){c.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:i,isStopped:s}=t;if(e||s)return!1;t=i&&i instanceof n.L?i:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=l(e))((e,i)=>{let n;n=this.subscribe(e=>{try{t(e)}catch(s){i(s),n&&n.unsubscribe()}},i,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[r.L](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?a.y:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=l(t))((t,e)=>{let i;this.subscribe(t=>i=t,t=>e(t),()=>t(i))})}}return t.create=e=>new t(e),t})();function l(t){if(t||(t=c.v.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},7498:(t,e,i)=>{"use strict";i.d(e,{c:()=>o});var n=i(1484),s=i(4294);const o={closed:!0,next(t){},error(t){if(n.v.useDeprecatedSynchronousErrorHandling)throw t;(0,s.z)(t)},complete(){}}},9829:(t,e,i)=>{"use strict";i.d(e,{L:()=>s});var n=i(6673);class s extends n.L{notifyNext(t,e,i,n,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}},5959:(t,e,i)=>{"use strict";i.d(e,{Yc:()=>u,xQ:()=>l});var n=i(8318),s=i(6673),o=i(7570),r=i(3895),a=i(9291),c=i(5331);class u extends s.L{constructor(t){super(t),this.destination=t}}let l=(()=>{class t extends n.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[c.b](){return new u(this)}lift(t){const e=new h(this,this);return e.operator=t,e}next(t){if(this.closed)throw new r.N;if(!this.isStopped){const{observers:e}=this,i=e.length,n=e.slice();for(let s=0;snew h(t,e),t})();class h extends l{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):o.w.EMPTY}}},9291:(t,e,i)=>{"use strict";i.d(e,{W:()=>s});var n=i(7570);class s extends n.w{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}},6673:(t,e,i)=>{"use strict";i.d(e,{L:()=>u});var n=i(5024),s=i(7498),o=i(7570),r=i(5331),a=i(1484),c=i(4294);class u extends o.w{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.c;break;case 1:if(!t){this.destination=s.c;break}if("object"==typeof t){t instanceof u?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new l(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new l(this,t,e,i)}}[r.b](){return this}static create(t,e,i){const n=new u(t,e,i);return n.syncErrorThrowable=!1,n}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class l extends u{constructor(t,e,i,o){let r;super(),this._parentSubscriber=t;let a=this;(0,n.m)(e)?r=e:e&&(r=e.next,i=e.error,o=e.complete,e!==s.c&&(a=Object.create(e),(0,n.m)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=r,this._error=i,this._complete=o}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=a.v;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):(0,c.z)(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;(0,c.z)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),a.v.useDeprecatedSynchronousErrorHandling)throw i;(0,c.z)(i)}}__tryOrSetError(t,e,i){if(!a.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(n){return a.v.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=n,t.syncErrorThrown=!0,!0):((0,c.z)(n),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},7570:(t,e,i)=>{"use strict";i.d(e,{w:()=>a});var n=i(8470),s=i(2056),o=i(5024);const r=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let a=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:i,_unsubscribe:a,_subscriptions:u}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof t)i.remove(this);else if(null!==i)for(let t=0;tt.concat(e instanceof r?e.errors:e),[])}},1484:(t,e,i)=>{"use strict";i.d(e,{v:()=>s});let n=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else n&&console.log("RxJS: Back to a better error behavior. Thank you. <3");n=t},get useDeprecatedSynchronousErrorHandling(){return n}}},2875:(t,e,i)=>{"use strict";i.d(e,{c:()=>a,N:()=>c});var n=i(5959),s=i(8318),o=i(7570),r=i(1564);class a extends s.y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new o.w,t.add(this.source.subscribe(new u(this.getSubject(),this))),t.closed&&(this._connection=null,t=o.w.EMPTY)),t}refCount(){return(0,r.x)()(this)}}const c=(()=>{const t=a.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class u extends n.Yc{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}},1305:(t,e,i)=>{"use strict";i.d(e,{aj:()=>u});var n=i(6163),s=i(8470),o=i(9829),r=i(6268),a=i(9342);const c={};function u(...t){let e=null,i=null;return(0,n.K)(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&(0,s.k)(t[0])&&(t=t[0]),(0,a.n)(t,i).lift(new l(e))}class l{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new h(t,this.resultSelector))}}class h extends o.L{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(c),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i{"use strict";i.d(e,{E:()=>s,c:()=>o});var n=i(8318);const s=new n.y(t=>t.complete());function o(t){return t?function(t){return new n.y(e=>t.schedule(()=>e.complete()))}(t):s}},9764:(t,e,i)=>{"use strict";i.d(e,{D:()=>h});var n=i(8318),s=i(6015),o=i(7570),r=i(6197),a=i(2570),c=i(5686),u=i(5168),l=i(9653);function h(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[r.L]}(t))return function(t,e){return new n.y(i=>{const n=new o.w;return n.add(e.schedule(()=>{const s=t[r.L]();n.add(s.subscribe({next(t){n.add(e.schedule(()=>i.next(t)))},error(t){n.add(e.schedule(()=>i.error(t)))},complete(){n.add(e.schedule(()=>i.complete()))}}))})),n})}(t,e);if((0,u.t)(t))return function(t,e){return new n.y(i=>{const n=new o.w;return n.add(e.schedule(()=>t.then(t=>{n.add(e.schedule(()=>{i.next(t),n.add(e.schedule(()=>i.complete()))}))},t=>{n.add(e.schedule(()=>i.error(t)))}))),n})}(t,e);if((0,l.z)(t))return(0,a.r)(t,e);if(function(t){return t&&"function"==typeof t[c.hZ]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new n.y(i=>{const n=new o.w;let s;return n.add(()=>{s&&"function"==typeof s.return&&s.return()}),n.add(e.schedule(()=>{s=t[c.hZ](),n.add(e.schedule(function(){if(i.closed)return;let t,e;try{const i=s.next();t=i.value,e=i.done}catch(n){return void i.error(n)}e?i.complete():(i.next(t),this.schedule())}))})),n})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof n.y?t:new n.y((0,s.s)(t))}},9342:(t,e,i)=>{"use strict";i.d(e,{n:()=>r});var n=i(8318),s=i(625),o=i(2570);function r(t,e){return e?(0,o.r)(t,e):new n.y((0,s.V)(t))}},1906:(t,e,i)=>{"use strict";i.d(e,{T:()=>a});var n=i(8318),s=i(6163),o=i(7471),r=i(9342);function a(...t){let e=Number.POSITIVE_INFINITY,i=null,a=t[t.length-1];return(0,s.K)(a)?(i=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===i&&1===t.length&&t[0]instanceof n.y?t[0]:(0,o.J)(e)((0,r.n)(t,i))}},878:(t,e,i)=>{"use strict";i.d(e,{of:()=>r});var n=i(6163),s=i(9342),o=i(2570);function r(...t){let e=t[t.length-1];return(0,n.K)(e)?(t.pop(),(0,o.r)(t,e)):(0,s.n)(t)}},3875:(t,e,i)=>{"use strict";i.d(e,{S3:()=>a});var n=i(8470),s=i(9342),o=i(9829),r=i(6268);function a(...t){if(1===t.length){if(!(0,n.k)(t[0]))return t[0];t=t[0]}return(0,s.n)(t,void 0).lift(new c)}class c{call(t,e){return e.subscribe(new u(t))}}class u extends o.L{constructor(t){super(t),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(t){this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(let i=0;i{"use strict";i.d(e,{_:()=>s});var n=i(8318);function s(t,e){return new n.y(e?i=>e.schedule(o,0,{error:t,subscriber:i}):e=>e.error(t))}function o({error:t,subscriber:e}){e.error(t)}},7727:(t,e,i)=>{"use strict";i.d(e,{K:()=>r});var n=i(9829),s=i(9867),o=i(6268);function r(t){return function(e){const i=new a(t),n=e.lift(i);return i.caught=n}}class a{constructor(t){this.selector=t}call(t,e){return e.subscribe(new c(t,this.selector,this.caught))}}class c extends n.L{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let i;try{i=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const n=new s.d(this,void 0,void 0);this.add(n);const r=(0,o.D)(this,i,void 0,void 0,n);r!==n&&this.add(r)}}}},436:(t,e,i)=>{"use strict";i.d(e,{b:()=>s});var n=i(3982);function s(t,e){return(0,n.zg)(t,e,1)}},7701:(t,e,i)=>{"use strict";i.d(e,{b:()=>o});var n=i(6673),s=i(8569);function o(t,e=s.P){return i=>i.lift(new r(t,e))}class r{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))}}class a extends n.L{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function c(t){t.debouncedNext()}},7768:(t,e,i)=>{"use strict";i.d(e,{d:()=>s});var n=i(6673);function s(t=null){return e=>e.lift(new o(t))}class o{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new r(t,this.defaultValue))}}class r extends n.L{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},509:(t,e,i)=>{"use strict";i.d(e,{g:()=>a});var n=i(8569),s=i(8802),o=i(6673),r=i(3103);function a(t,e=n.P){const i=(0,s.J)(t)?+t-e.now():Math.abs(t);return t=>t.lift(new c(i,e))}class c{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new u(t,this.delay,this.scheduler))}}class u extends o.L{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,n=t.scheduler,s=t.destination;for(;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const e=Math.max(0,i[0].time-n.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(u.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new l(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(r.P.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(r.P.createComplete()),this.unsubscribe()}}class l{constructor(t,e){this.time=t,this.notification=e}}},3835:(t,e,i)=>{"use strict";i.d(e,{h:()=>s});var n=i(6673);function s(t,e){return function(i){return i.lift(new o(t,e))}}class o{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new r(t,this.predicate,this.thisArg))}}class r extends n.L{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}},3530:(t,e,i)=>{"use strict";i.d(e,{P:()=>u});var n=i(9665),s=i(3835),o=i(611),r=i(7768),a=i(790),c=i(3392);function u(t,e){const i=arguments.length>=2;return u=>u.pipe(t?(0,s.h)((e,i)=>t(e,i,u)):c.y,(0,o.q)(1),i?(0,r.d)(e):(0,a.T)(()=>new n.K))}},9996:(t,e,i)=>{"use strict";i.d(e,{U:()=>s});var n=i(6673);function s(t,e){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new o(t,e))}}class o{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new r(t,this.project,this.thisArg))}}class r extends n.L{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}},7471:(t,e,i)=>{"use strict";i.d(e,{J:()=>o});var n=i(3982),s=i(3392);function o(t=Number.POSITIVE_INFINITY){return(0,n.zg)(s.y,t)}},3982:(t,e,i)=>{"use strict";i.d(e,{zg:()=>c});var n=i(6268),s=i(9829),o=i(9867),r=i(9996),a=i(9764);function c(t,e,i=Number.POSITIVE_INFINITY){return"function"==typeof e?n=>n.pipe(c((i,n)=>(0,a.D)(t(i,n)).pipe((0,r.U)((t,s)=>e(i,t,n,s))),i)):("number"==typeof e&&(i=e),e=>e.lift(new u(t,i)))}class u{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new l(t,this.project,this.concurrent))}}class l extends s.L{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},1564:(t,e,i)=>{"use strict";i.d(e,{x:()=>s});var n=i(6673);function s(){return function(t){return t.lift(new o(t))}}class o{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const n=new r(t,i),s=e.subscribe(n);return n.closed||(n.connection=i.connect()),s}}class r extends n.L{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,n=t._connection;this.connection=null,!n||i&&n!==i||n.unsubscribe()}}},1055:(t,e,i)=>{"use strict";i.d(e,{B:()=>a});var n=i(2875),s=i(1564),o=i(5959);function r(){return new o.xQ}function a(){return t=>{return(0,s.x)()((e=r,function(t){let i;i="function"==typeof e?e:function(){return e};const s=Object.create(t,n.N);return s.source=t,s.subjectFactory=i,s})(t));var e}}},4689:(t,e,i)=>{"use strict";i.d(e,{w:()=>c});var n=i(9829),s=i(9867),o=i(6268),r=i(9996),a=i(9764);function c(t,e){return"function"==typeof e?i=>i.pipe(c((i,n)=>(0,a.D)(t(i,n)).pipe((0,r.U)((t,s)=>e(i,t,n,s))))):e=>e.lift(new u(t))}class u{constructor(t){this.project=t}call(t,e){return e.subscribe(new l(t,this.project))}}class l extends n.L{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(n){return void this.destination.error(n)}this._innerSub(e,t,i)}_innerSub(t,e,i){const n=this.innerSubscription;n&&n.unsubscribe();const r=new s.d(this,e,i),a=this.destination;a.add(r),this.innerSubscription=(0,o.D)(this,t,void 0,void 0,r),this.innerSubscription!==r&&a.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,i,n,s){this.destination.next(e)}}},611:(t,e,i)=>{"use strict";i.d(e,{q:()=>r});var n=i(6673),s=i(8402),o=i(653);function r(t){return e=>0===t?(0,o.c)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new s.W}call(t,e){return e.subscribe(new c(t,this.total))}}class c extends n.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}},6599:(t,e,i)=>{"use strict";i.d(e,{b:()=>r});var n=i(6673);function s(){}var o=i(5024);function r(t,e,i){return function(n){return n.lift(new a(t,e,i))}}class a{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new c(t,this.nextOrObserver,this.error,this.complete))}}class c extends n.L{constructor(t,e,i,n){super(t),this._tapNext=s,this._tapError=s,this._tapComplete=s,this._tapError=i||s,this._tapComplete=n||s,(0,o.m)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||s,this._tapError=e.error||s,this._tapComplete=e.complete||s)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},790:(t,e,i)=>{"use strict";i.d(e,{T:()=>o});var n=i(9665),s=i(6673);function o(t=c){return e=>e.lift(new r(t))}class r{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new a(t,this.errorFactory))}}class a extends s.L{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function c(){return new n.K}},9085:(t,e,i)=>{"use strict";i.d(e,{V:()=>h});var n=i(8569);const s=(()=>{function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t})();var o=i(8802),r=i(9829),a=i(6268);class c{constructor(t,e,i,n){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=i,this.scheduler=n}call(t,e){return e.subscribe(new u(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class u extends r.L{constructor(t,e,i,n,s){super(t),this.absoluteTimeout=e,this.waitFor=i,this.withObservable=n,this.scheduler=s,this.action=null,this.scheduleTimeout()}static dispatchTimeout(t){const{withObservable:e}=t;t._unsubscribeAndRecycle(),t.add((0,a.D)(t,e))}scheduleTimeout(){const{action:t}=this;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(u.dispatchTimeout,this.waitFor,this))}_next(t){this.absoluteTimeout||this.scheduleTimeout(),super._next(t)}_unsubscribe(){this.action=null,this.scheduler=null,this.withObservable=null}}var l=i(1225);function h(t,e=n.P){return function(t,e,i=n.P){return n=>{let s=(0,o.J)(t),r=s?+t-i.now():Math.abs(t);return n.lift(new c(r,s,e,i))}}(t,(0,l._)(new s),e)}},2570:(t,e,i)=>{"use strict";i.d(e,{r:()=>o});var n=i(8318),s=i(7570);function o(t,e){return new n.y(i=>{const n=new s.w;let o=0;return n.add(e.schedule(function(){o!==t.length?(i.next(t[o++]),i.closed||n.add(this.schedule())):i.complete()})),n})}},8277:(t,e,i)=>{"use strict";i.d(e,{o:()=>o});var n=i(7570);class s extends n.w{constructor(t,e){super()}schedule(t,e=0){return this}}class o extends s{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 i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let i,n=!1;try{this.work(t)}catch(s){n=!0,i=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},1098:(t,e,i)=>{"use strict";i.d(e,{v:()=>s});let n=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(t,e=0,i){return new this.SchedulerAction(this,t).schedule(i,e)}}return t.now=()=>Date.now(),t})();class s extends n{constructor(t,e=n.now){super(t,()=>s.delegate&&s.delegate!==this?s.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return s.delegate&&s.delegate!==this?s.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}},8569:(t,e,i)=>{"use strict";i.d(e,{P:()=>s});var n=i(8277);const s=new(i(1098).v)(n.o)},5686:(t,e,i)=>{"use strict";function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}i.d(e,{hZ:()=>s});const s=n()},6197:(t,e,i)=>{"use strict";i.d(e,{L:()=>n});const n=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},5331:(t,e,i)=>{"use strict";i.d(e,{b:()=>n});const n=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},8402:(t,e,i)=>{"use strict";i.d(e,{W:()=>n});const n=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},9665:(t,e,i)=>{"use strict";i.d(e,{K:()=>n});const n=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})()},3895:(t,e,i)=>{"use strict";i.d(e,{N:()=>n});const n=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},4294:(t,e,i)=>{"use strict";function n(t){setTimeout(()=>{throw t},0)}i.d(e,{z:()=>n})},3392:(t,e,i)=>{"use strict";function n(t){return t}i.d(e,{y:()=>n})},8470:(t,e,i)=>{"use strict";i.d(e,{k:()=>n});const n=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))()},9653:(t,e,i)=>{"use strict";i.d(e,{z:()=>n});const n=t=>t&&"number"==typeof t.length&&"function"!=typeof t},8802:(t,e,i)=>{"use strict";function n(t){return t instanceof Date&&!isNaN(+t)}i.d(e,{J:()=>n})},5024:(t,e,i)=>{"use strict";function n(t){return"function"==typeof t}i.d(e,{m:()=>n})},2056:(t,e,i)=>{"use strict";function n(t){return null!==t&&"object"==typeof t}i.d(e,{K:()=>n})},5168:(t,e,i)=>{"use strict";function n(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}i.d(e,{t:()=>n})},6163:(t,e,i)=>{"use strict";function n(t){return t&&"function"==typeof t.schedule}i.d(e,{K:()=>n})},6015:(t,e,i)=>{"use strict";i.d(e,{s:()=>l});var n=i(625),s=i(4294),o=i(5686),r=i(6197),a=i(9653),c=i(5168),u=i(2056);const l=t=>{if(t&&"function"==typeof t[r.L])return l=t,t=>{const e=l[r.L]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if((0,a.z)(t))return(0,n.V)(t);if((0,c.t)(t))return i=t,t=>(i.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,s.z),t);if(t&&"function"==typeof t[o.hZ])return e=t,t=>{const i=e[o.hZ]();for(;;){const e=i.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof i.return&&t.add(()=>{i.return&&i.return()}),t};{const e=(0,u.K)(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,i,l}},625:(t,e,i)=>{"use strict";i.d(e,{V:()=>n});const n=t=>e=>{for(let i=0,n=t.length;i{"use strict";i.d(e,{D:()=>r});var n=i(9867),s=i(6015),o=i(8318);function r(t,e,i,r,a=new n.d(t,i,r)){if(!a.closed)return e instanceof o.y?e.subscribe(a):(0,s.s)(e)(a)}},7632:(t,e,i)=>{"use strict";function n(t,e,i,n){return new(i||(i=Promise))(function(s,o){function r(t){try{c(n.next(t))}catch(e){o(e)}}function a(t){try{c(n.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(r,a)}c((n=n.apply(t,e||[])).next())})}i.d(e,{mG:()=>n})},6700:(t,e,i)=>{var n={"./af":776,"./af.js":776,"./ar":7634,"./ar-dz":2758,"./ar-dz.js":2758,"./ar-kw":4980,"./ar-kw.js":4980,"./ar-ly":9602,"./ar-ly.js":9602,"./ar-ma":2500,"./ar-ma.js":2500,"./ar-sa":6909,"./ar-sa.js":6909,"./ar-tn":2735,"./ar-tn.js":2735,"./ar.js":7634,"./az":7798,"./az.js":7798,"./be":9949,"./be.js":9949,"./bg":4590,"./bg.js":4590,"./bm":5938,"./bm.js":5938,"./bn":595,"./bn.js":595,"./bo":4756,"./bo.js":4756,"./br":7277,"./br.js":7277,"./bs":4166,"./bs.js":4166,"./ca":3943,"./ca.js":3943,"./cs":3474,"./cs.js":3474,"./cv":2218,"./cv.js":2218,"./cy":1061,"./cy.js":1061,"./da":2743,"./da.js":2743,"./de":1899,"./de-at":8580,"./de-at.js":8580,"./de-ch":3264,"./de-ch.js":3264,"./de.js":1899,"./dv":8784,"./dv.js":8784,"./el":4654,"./el.js":4654,"./en-SG":4047,"./en-SG.js":4047,"./en-au":6277,"./en-au.js":6277,"./en-ca":6896,"./en-ca.js":6896,"./en-gb":1609,"./en-gb.js":1609,"./en-ie":4557,"./en-ie.js":4557,"./en-il":5836,"./en-il.js":5836,"./en-nz":3586,"./en-nz.js":3586,"./eo":2777,"./eo.js":2777,"./es":3357,"./es-do":3128,"./es-do.js":3128,"./es-us":3256,"./es-us.js":3256,"./es.js":3357,"./et":2654,"./et.js":2654,"./eu":7287,"./eu.js":7287,"./fa":5210,"./fa.js":5210,"./fi":3431,"./fi.js":3431,"./fo":1781,"./fo.js":1781,"./fr":1717,"./fr-ca":1539,"./fr-ca.js":1539,"./fr-ch":9847,"./fr-ch.js":9847,"./fr.js":1717,"./fy":2250,"./fy.js":2250,"./ga":7665,"./ga.js":7665,"./gd":5214,"./gd.js":5214,"./gl":6154,"./gl.js":6154,"./gom-latn":8518,"./gom-latn.js":8518,"./gu":9221,"./gu.js":9221,"./he":4743,"./he.js":4743,"./hi":7339,"./hi.js":7339,"./hr":3224,"./hr.js":3224,"./hu":856,"./hu.js":856,"./hy-am":6855,"./hy-am.js":6855,"./id":2190,"./id.js":2190,"./is":3887,"./is.js":3887,"./it":9270,"./it-ch":5890,"./it-ch.js":5890,"./it.js":9270,"./ja":6595,"./ja.js":6595,"./jv":3081,"./jv.js":3081,"./ka":7477,"./ka.js":7477,"./kk":3978,"./kk.js":3978,"./km":9205,"./km.js":9205,"./kn":25,"./kn.js":25,"./ko":427,"./ko.js":427,"./ku":9089,"./ku.js":9089,"./ky":9314,"./ky.js":9314,"./lb":3136,"./lb.js":3136,"./lo":9115,"./lo.js":9115,"./lt":7087,"./lt.js":7087,"./lv":5683,"./lv.js":5683,"./me":9454,"./me.js":9454,"./mi":5507,"./mi.js":5507,"./mk":8466,"./mk.js":8466,"./ml":2933,"./ml.js":2933,"./mn":9477,"./mn.js":9477,"./mr":3597,"./mr.js":3597,"./ms":5529,"./ms-my":9965,"./ms-my.js":9965,"./ms.js":5529,"./mt":259,"./mt.js":259,"./my":8061,"./my.js":8061,"./nb":2618,"./nb.js":2618,"./ne":8452,"./ne.js":8452,"./nl":1885,"./nl-be":413,"./nl-be.js":413,"./nl.js":1885,"./nn":5107,"./nn.js":5107,"./pa-in":702,"./pa-in.js":702,"./pl":1711,"./pl.js":1711,"./pt":594,"./pt-br":8238,"./pt-br.js":8238,"./pt.js":594,"./ro":4681,"./ro.js":4681,"./ru":6201,"./ru.js":6201,"./sd":2912,"./sd.js":2912,"./se":6002,"./se.js":6002,"./si":7942,"./si.js":7942,"./sk":5577,"./sk.js":5577,"./sl":1775,"./sl.js":1775,"./sq":6823,"./sq.js":6823,"./sr":9038,"./sr-cyrl":3848,"./sr-cyrl.js":3848,"./sr.js":9038,"./ss":6173,"./ss.js":6173,"./sv":5788,"./sv.js":5788,"./sw":6882,"./sw.js":6882,"./ta":2678,"./ta.js":2678,"./te":2797,"./te.js":2797,"./tet":2447,"./tet.js":2447,"./tg":1335,"./tg.js":1335,"./th":8667,"./th.js":8667,"./tl-ph":9914,"./tl-ph.js":9914,"./tlh":1389,"./tlh.js":1389,"./tr":3578,"./tr.js":3578,"./tzl":6969,"./tzl.js":6969,"./tzm":6509,"./tzm-latn":690,"./tzm-latn.js":690,"./tzm.js":6509,"./ug-cn":55,"./ug-cn.js":55,"./uk":2452,"./uk.js":2452,"./ur":1151,"./ur.js":1151,"./uz":1555,"./uz-latn":6547,"./uz-latn.js":6547,"./uz.js":1555,"./vi":6541,"./vi.js":6541,"./x-pseudo":2401,"./x-pseudo.js":2401,"./yo":2341,"./yo.js":2341,"./zh-cn":619,"./zh-cn.js":619,"./zh-hk":7058,"./zh-hk.js":7058,"./zh-tw":2782,"./zh-tw.js":2782};function s(t){var e=o(t);return i(e)}function o(t){if(!i.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}s.keys=function(){return Object.keys(n)},s.resolve=o,t.exports=s,s.id=6700},306:t=>{"use strict";t.exports={i8:"5.3.0"}}},t=>{"use strict";t(t.s=6802)}]); \ No newline at end of file diff --git a/dist/apps/publications/styles.06332a1f2c25658e6421.css b/dist/apps/publications/styles.790f5af9221d0b485dcc.css similarity index 99% rename from dist/apps/publications/styles.06332a1f2c25658e6421.css rename to dist/apps/publications/styles.790f5af9221d0b485dcc.css index be56a2b15..bce9f185c 100644 --- a/dist/apps/publications/styles.06332a1f2c25658e6421.css +++ b/dist/apps/publications/styles.790f5af9221d0b485dcc.css @@ -1,6 +1,6 @@ @charset "UTF-8";.mat-badge-content{font-weight:600;font-size:12px;font-family:Roboto,Helvetica Neue,sans-serif}.mat-badge-small .mat-badge-content{font-size:9px}.mat-badge-large .mat-badge-content{font-size:24px}.mat-h1,.mat-headline,.mat-typography h1{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h2,.mat-title,.mat-typography h2{font:500 20px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h3,.mat-subheading-2,.mat-typography h3{font:400 16px/28px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h4,.mat-subheading-1,.mat-typography h4{font:400 15px/24px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h5,.mat-typography h5{font:400 calc(14px * .83)/20px Roboto,Helvetica Neue,sans-serif;margin:0 0 12px}.mat-h6,.mat-typography h6{font:400 calc(14px * .67)/20px Roboto,Helvetica Neue,sans-serif;margin:0 0 12px}.mat-body-2,.mat-body-strong{font:500 14px/24px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-body,.mat-body-1,.mat-typography{font:400 14px/20px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-body-1 p,.mat-body p,.mat-typography p{margin:0 0 12px}.mat-caption,.mat-small{font:400 12px/20px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-display-4,.mat-typography .mat-display-4{font:300 112px/112px Roboto,Helvetica Neue,sans-serif;letter-spacing:-.05em;margin:0 0 56px}.mat-display-3,.mat-typography .mat-display-3{font:400 56px/56px Roboto,Helvetica Neue,sans-serif;letter-spacing:-.02em;margin:0 0 64px}.mat-display-2,.mat-typography .mat-display-2{font:400 45px/48px Roboto,Helvetica Neue,sans-serif;letter-spacing:-.005em;margin:0 0 64px}.mat-display-1,.mat-typography .mat-display-1{font:400 34px/40px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 64px}.mat-bottom-sheet-container{font:400 14px/20px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-button,.mat-fab,.mat-flat-button,.mat-icon-button,.mat-mini-fab,.mat-raised-button,.mat-stroked-button{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:500}.mat-button-toggle,.mat-card{font-family:Roboto,Helvetica Neue,sans-serif}.mat-card-title{font-size:24px;font-weight:500}.mat-card-header .mat-card-title{font-size:20px}.mat-card-content,.mat-card-subtitle{font-size:14px}.mat-checkbox{font-family:Roboto,Helvetica Neue,sans-serif}.mat-checkbox-layout .mat-checkbox-label{line-height:24px}.mat-chip{font-size:14px;font-weight:500}.mat-chip .mat-chip-remove.mat-icon,.mat-chip .mat-chip-trailing-icon.mat-icon{font-size:18px}.mat-table{font-family:Roboto,Helvetica Neue,sans-serif}.mat-header-cell{font-size:12px;font-weight:500}.mat-cell,.mat-footer-cell{font-size:14px}.mat-calendar{font-family:Roboto,Helvetica Neue,sans-serif}.mat-calendar-body{font-size:13px}.mat-calendar-body-label,.mat-calendar-period-button{font-size:14px;font-weight:500}.mat-calendar-table-header th{font-size:11px;font-weight:400}.mat-dialog-title{font:500 20px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-expansion-panel-header{font-family:Roboto,Helvetica Neue,sans-serif;font-size:15px;font-weight:400}.mat-expansion-panel-content{font:400 14px/20px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-form-field{font-size:inherit;font-weight:400;line-height:1.125;font-family:Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-form-field-wrapper{padding-bottom:1.34375em}.mat-form-field-prefix .mat-icon,.mat-form-field-suffix .mat-icon{font-size:150%;line-height:1.125}.mat-form-field-prefix .mat-icon-button,.mat-form-field-suffix .mat-icon-button{height:1.5em;width:1.5em}.mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-suffix .mat-icon-button .mat-icon{height:1.125em;line-height:1.125}.mat-form-field-infix{padding:.5em 0;border-top:.84375em solid transparent}.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.34375em) scale(.75);width:133.3333333333%}.mat-form-field-can-float .mat-input-server[label]:not(:label-shown)+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.34374em) scale(.75);width:133.3333433333%}.mat-form-field-label-wrapper{top:-.84375em;padding-top:.84375em}.mat-form-field-label{top:1.34375em}.mat-form-field-underline{bottom:1.34375em}.mat-form-field-subscript-wrapper{font-size:75%;margin-top:.6666666667em;top:calc(100% - 1.7916666667em)}.mat-form-field-appearance-legacy .mat-form-field-wrapper{padding-bottom:1.25em}.mat-form-field-appearance-legacy .mat-form-field-infix{padding:.4375em 0}.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.001px);-ms-transform:translateY(-1.28125em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00101px);-ms-transform:translateY(-1.28124em) scale(.75);width:133.3333433333%}.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-input-server[label]:not(:label-shown)+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00102px);-ms-transform:translateY(-1.28123em) scale(.75);width:133.3333533333%}.mat-form-field-appearance-legacy .mat-form-field-label{top:1.28125em}.mat-form-field-appearance-legacy .mat-form-field-underline{bottom:1.25em}.mat-form-field-appearance-legacy .mat-form-field-subscript-wrapper{margin-top:.5416666667em;top:calc(100% - 1.6666666667em)}@media print{.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.28122em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.28121em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-input-server[label]:not(:label-shown)+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.2812em) scale(.75)}}.mat-form-field-appearance-fill .mat-form-field-infix{padding:.25em 0 .75em}.mat-form-field-appearance-fill .mat-form-field-label{top:1.09375em;margin-top:-.5em}.mat-form-field-appearance-fill.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-appearance-fill.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-fill.mat-form-field-can-float .mat-input-server[label]:not(:label-shown)+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-.59374em) scale(.75);width:133.3333433333%}.mat-form-field-appearance-outline .mat-form-field-infix{padding:1em 0}.mat-form-field-appearance-outline .mat-form-field-label{top:1.84375em;margin-top:-.25em}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-appearance-outline.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-outline.mat-form-field-can-float .mat-input-server[label]:not(:label-shown)+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.59374em) scale(.75);width:133.3333433333%}.mat-grid-tile-footer,.mat-grid-tile-header{font-size:14px}.mat-grid-tile-footer .mat-line,.mat-grid-tile-header .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-footer .mat-line:nth-child(n+2),.mat-grid-tile-header .mat-line:nth-child(n+2){font-size:12px}input.mat-input-element{margin-top:-.0625em}.mat-menu-item{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:400}.mat-paginator,.mat-paginator-page-size .mat-select-trigger{font-family:Roboto,Helvetica Neue,sans-serif;font-size:12px}.mat-radio-button,.mat-select{font-family:Roboto,Helvetica Neue,sans-serif}.mat-select-trigger{height:1.125em}.mat-slide-toggle-content,.mat-slider-thumb-label-text{font-family:Roboto,Helvetica Neue,sans-serif}.mat-slider-thumb-label-text{font-size:12px;font-weight:500}.mat-stepper-horizontal,.mat-stepper-vertical{font-family:Roboto,Helvetica Neue,sans-serif}.mat-step-label{font-size:14px;font-weight:400}.mat-step-sub-label-error{font-weight:400}.mat-step-label-error{font-size:14px}.mat-step-label-selected{font-size:14px;font-weight:500}.mat-tab-group,.mat-tab-label,.mat-tab-link{font-family:Roboto,Helvetica Neue,sans-serif}.mat-tab-label,.mat-tab-link{font-size:14px;font-weight:500}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font:500 20px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0}.mat-tooltip{font-family:Roboto,Helvetica Neue,sans-serif;font-size:10px;padding-top:6px;padding-bottom:6px}.mat-tooltip-handset{font-size:14px;padding-top:8px;padding-bottom:8px}.mat-list-item,.mat-list-option{font-family:Roboto,Helvetica Neue,sans-serif}.mat-list-base .mat-list-item{font-size:16px}.mat-list-base .mat-list-item .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base .mat-list-item .mat-line:nth-child(n+2){font-size:14px}.mat-list-base .mat-list-option{font-size:16px}.mat-list-base .mat-list-option .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base .mat-list-option .mat-line:nth-child(n+2){font-size:14px}.mat-list-base .mat-subheader{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:500}.mat-list-base[dense] .mat-list-item{font-size:12px}.mat-list-base[dense] .mat-list-item .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense] .mat-list-item .mat-line:nth-child(n+2),.mat-list-base[dense] .mat-list-option{font-size:12px}.mat-list-base[dense] .mat-list-option .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense] .mat-list-option .mat-line:nth-child(n+2){font-size:12px}.mat-list-base[dense] .mat-subheader{font-family:Roboto,Helvetica Neue,sans-serif;font-size:12px;font-weight:500}.mat-option{font-family:Roboto,Helvetica Neue,sans-serif;font-size:16px}.mat-optgroup-label{font:500 14px/24px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-simple-snackbar{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px}.mat-simple-snackbar-action{line-height:1;font-family:inherit;font-size:inherit;font-weight:500}.mat-tree{font-family:Roboto,Helvetica Neue,sans-serif}.mat-nested-tree-node,.mat-tree-node{font-weight:400;font-size:14px}.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale(0)}.cdk-high-contrast-active .mat-ripple-element{display:none}.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none}.cdk-global-overlay-wrapper,.cdk-overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper,.cdk-overlay-pane{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{pointer-events:auto;box-sizing:border-box;max-width:100%;max-height:100%}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop,.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes cdk-text-field-autofill-start{ /*!*/}@keyframes cdk-text-field-autofill-end{ - /*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator,.mat-mdc-focus-indicator{position:relative}.mat-ripple-element{background-color:rgba(0,0,0,.1)}.mat-option{color:rgba(0,0,0,.87)}.mat-option.mat-active,.mat-option.mat-selected:not(.mat-option-multiple):not(.mat-option-disabled),.mat-option:focus:not(.mat-option-disabled),.mat-option:hover:not(.mat-option-disabled){background:rgba(0,0,0,.04)}.mat-option.mat-active{color:rgba(0,0,0,.87)}.mat-option.mat-option-disabled{color:rgba(0,0,0,.38)}.mat-primary .mat-option.mat-selected:not(.mat-option-disabled){color:#212121}.mat-accent .mat-option.mat-selected:not(.mat-option-disabled){color:#43a047}.mat-warn .mat-option.mat-selected:not(.mat-option-disabled){color:#f44336}.mat-optgroup-label{color:rgba(0,0,0,.54)}.mat-optgroup-disabled .mat-optgroup-label{color:rgba(0,0,0,.38)}.mat-pseudo-checkbox{color:rgba(0,0,0,.54)}.mat-pseudo-checkbox:after{color:#fafafa}.mat-pseudo-checkbox-disabled{color:#b0b0b0}.mat-primary .mat-pseudo-checkbox-checked,.mat-primary .mat-pseudo-checkbox-indeterminate{background:#212121}.mat-accent .mat-pseudo-checkbox-checked,.mat-accent .mat-pseudo-checkbox-indeterminate,.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-indeterminate{background:#43a047}.mat-warn .mat-pseudo-checkbox-checked,.mat-warn .mat-pseudo-checkbox-indeterminate{background:#f44336}.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background:#b0b0b0}.mat-app-background{background-color:#fafafa;color:rgba(0,0,0,.87)}.mat-elevation-z0{box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-elevation-z1{box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.mat-elevation-z2{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-elevation-z3{box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12)}.mat-elevation-z4{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.mat-elevation-z5{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 5px 8px 0 rgba(0,0,0,.14),0 1px 14px 0 rgba(0,0,0,.12)}.mat-elevation-z6{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-elevation-z7{box-shadow:0 4px 5px -2px rgba(0,0,0,.2),0 7px 10px 1px rgba(0,0,0,.14),0 2px 16px 1px rgba(0,0,0,.12)}.mat-elevation-z8{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.mat-elevation-z9{box-shadow:0 5px 6px -3px rgba(0,0,0,.2),0 9px 12px 1px rgba(0,0,0,.14),0 3px 16px 2px rgba(0,0,0,.12)}.mat-elevation-z10{box-shadow:0 6px 6px -3px rgba(0,0,0,.2),0 10px 14px 1px rgba(0,0,0,.14),0 4px 18px 3px rgba(0,0,0,.12)}.mat-elevation-z11{box-shadow:0 6px 7px -4px rgba(0,0,0,.2),0 11px 15px 1px rgba(0,0,0,.14),0 4px 20px 3px rgba(0,0,0,.12)}.mat-elevation-z12{box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.mat-elevation-z13{box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 13px 19px 2px rgba(0,0,0,.14),0 5px 24px 4px rgba(0,0,0,.12)}.mat-elevation-z14{box-shadow:0 7px 9px -4px rgba(0,0,0,.2),0 14px 21px 2px rgba(0,0,0,.14),0 5px 26px 4px rgba(0,0,0,.12)}.mat-elevation-z15{box-shadow:0 8px 9px -5px rgba(0,0,0,.2),0 15px 22px 2px rgba(0,0,0,.14),0 6px 28px 5px rgba(0,0,0,.12)}.mat-elevation-z16{box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12)}.mat-elevation-z17{box-shadow:0 8px 11px -5px rgba(0,0,0,.2),0 17px 26px 2px rgba(0,0,0,.14),0 6px 32px 5px rgba(0,0,0,.12)}.mat-elevation-z18{box-shadow:0 9px 11px -5px rgba(0,0,0,.2),0 18px 28px 2px rgba(0,0,0,.14),0 7px 34px 6px rgba(0,0,0,.12)}.mat-elevation-z19{box-shadow:0 9px 12px -6px rgba(0,0,0,.2),0 19px 29px 2px rgba(0,0,0,.14),0 7px 36px 6px rgba(0,0,0,.12)}.mat-elevation-z20{box-shadow:0 10px 13px -6px rgba(0,0,0,.2),0 20px 31px 3px rgba(0,0,0,.14),0 8px 38px 7px rgba(0,0,0,.12)}.mat-elevation-z21{box-shadow:0 10px 13px -6px rgba(0,0,0,.2),0 21px 33px 3px rgba(0,0,0,.14),0 8px 40px 7px rgba(0,0,0,.12)}.mat-elevation-z22{box-shadow:0 10px 14px -6px rgba(0,0,0,.2),0 22px 35px 3px rgba(0,0,0,.14),0 8px 42px 7px rgba(0,0,0,.12)}.mat-elevation-z23{box-shadow:0 11px 14px -7px rgba(0,0,0,.2),0 23px 36px 3px rgba(0,0,0,.14),0 9px 44px 8px rgba(0,0,0,.12)}.mat-elevation-z24{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12)}.mat-autocomplete-panel{background:#fff;color:rgba(0,0,0,.87)}.mat-autocomplete-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.mat-autocomplete-panel .mat-option.mat-selected:not(.mat-active):not(:hover){background:#fff}.mat-autocomplete-panel .mat-option.mat-selected:not(.mat-active):not(:hover):not(.mat-option-disabled){color:rgba(0,0,0,.87)}.mat-badge-content{color:#fff;background:#212121}.cdk-high-contrast-active .mat-badge-content{outline:1px solid;border-radius:0}.mat-badge-accent .mat-badge-content{background:#43a047;color:#fff}.mat-badge-warn .mat-badge-content{color:#fff;background:#f44336}.mat-badge{position:relative}.mat-badge-hidden .mat-badge-content{display:none}.mat-badge-disabled .mat-badge-content{background:#b9b9b9;color:rgba(0,0,0,.38)}.mat-badge-content{position:absolute;text-align:center;display:inline-block;border-radius:50%;transition:transform .2s ease-in-out;transform:scale(.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;pointer-events:none}.mat-badge-content._mat-animation-noopable,.ng-animate-disabled .mat-badge-content{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:16px;height:16px;line-height:16px}.mat-badge-small.mat-badge-above .mat-badge-content{top:-8px}.mat-badge-small.mat-badge-below .mat-badge-content{bottom:-8px}.mat-badge-small.mat-badge-before .mat-badge-content{left:-16px}[dir=rtl] .mat-badge-small.mat-badge-before .mat-badge-content{left:auto;right:-16px}.mat-badge-small.mat-badge-after .mat-badge-content{right:-16px}[dir=rtl] .mat-badge-small.mat-badge-after .mat-badge-content{right:auto;left:-16px}.mat-badge-small.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-8px}[dir=rtl] .mat-badge-small.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-8px}.mat-badge-small.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-8px}[dir=rtl] .mat-badge-small.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-8px}.mat-badge-medium .mat-badge-content{width:22px;height:22px;line-height:22px}.mat-badge-medium.mat-badge-above .mat-badge-content{top:-11px}.mat-badge-medium.mat-badge-below .mat-badge-content{bottom:-11px}.mat-badge-medium.mat-badge-before .mat-badge-content{left:-22px}[dir=rtl] .mat-badge-medium.mat-badge-before .mat-badge-content{left:auto;right:-22px}.mat-badge-medium.mat-badge-after .mat-badge-content{right:-22px}[dir=rtl] .mat-badge-medium.mat-badge-after .mat-badge-content{right:auto;left:-22px}.mat-badge-medium.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-11px}[dir=rtl] .mat-badge-medium.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-11px}.mat-badge-medium.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-11px}[dir=rtl] .mat-badge-medium.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-11px}.mat-badge-large .mat-badge-content{width:28px;height:28px;line-height:28px}.mat-badge-large.mat-badge-above .mat-badge-content{top:-14px}.mat-badge-large.mat-badge-below .mat-badge-content{bottom:-14px}.mat-badge-large.mat-badge-before .mat-badge-content{left:-28px}[dir=rtl] .mat-badge-large.mat-badge-before .mat-badge-content{left:auto;right:-28px}.mat-badge-large.mat-badge-after .mat-badge-content{right:-28px}[dir=rtl] .mat-badge-large.mat-badge-after .mat-badge-content{right:auto;left:-28px}.mat-badge-large.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-14px}[dir=rtl] .mat-badge-large.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-14px}.mat-badge-large.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-14px}[dir=rtl] .mat-badge-large.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-14px}.mat-bottom-sheet-container{box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12);background:#fff;color:rgba(0,0,0,.87)}.mat-button,.mat-icon-button,.mat-stroked-button{color:inherit;background:transparent}.mat-button.mat-primary,.mat-icon-button.mat-primary,.mat-stroked-button.mat-primary{color:#212121}.mat-button.mat-accent,.mat-icon-button.mat-accent,.mat-stroked-button.mat-accent{color:#43a047}.mat-button.mat-warn,.mat-icon-button.mat-warn,.mat-stroked-button.mat-warn{color:#f44336}.mat-button.mat-accent.mat-button-disabled,.mat-button.mat-button-disabled.mat-button-disabled,.mat-button.mat-primary.mat-button-disabled,.mat-button.mat-warn.mat-button-disabled,.mat-icon-button.mat-accent.mat-button-disabled,.mat-icon-button.mat-button-disabled.mat-button-disabled,.mat-icon-button.mat-primary.mat-button-disabled,.mat-icon-button.mat-warn.mat-button-disabled,.mat-stroked-button.mat-accent.mat-button-disabled,.mat-stroked-button.mat-button-disabled.mat-button-disabled,.mat-stroked-button.mat-primary.mat-button-disabled,.mat-stroked-button.mat-warn.mat-button-disabled{color:rgba(0,0,0,.26)}.mat-button.mat-primary .mat-button-focus-overlay,.mat-icon-button.mat-primary .mat-button-focus-overlay,.mat-stroked-button.mat-primary .mat-button-focus-overlay{background-color:#212121}.mat-button.mat-accent .mat-button-focus-overlay,.mat-icon-button.mat-accent .mat-button-focus-overlay,.mat-stroked-button.mat-accent .mat-button-focus-overlay{background-color:#43a047}.mat-button.mat-warn .mat-button-focus-overlay,.mat-icon-button.mat-warn .mat-button-focus-overlay,.mat-stroked-button.mat-warn .mat-button-focus-overlay{background-color:#f44336}.mat-button.mat-button-disabled .mat-button-focus-overlay,.mat-icon-button.mat-button-disabled .mat-button-focus-overlay,.mat-stroked-button.mat-button-disabled .mat-button-focus-overlay{background-color:transparent}.mat-button .mat-ripple-element,.mat-icon-button .mat-ripple-element,.mat-stroked-button .mat-ripple-element{opacity:.1;background-color:currentColor}.mat-button-focus-overlay{background:#000}.mat-stroked-button:not(.mat-button-disabled){border-color:rgba(0,0,0,.12)}.mat-fab,.mat-flat-button,.mat-mini-fab,.mat-raised-button{color:rgba(0,0,0,.87);background-color:#fff}.mat-fab.mat-accent,.mat-fab.mat-primary,.mat-fab.mat-warn,.mat-flat-button.mat-accent,.mat-flat-button.mat-primary,.mat-flat-button.mat-warn,.mat-mini-fab.mat-accent,.mat-mini-fab.mat-primary,.mat-mini-fab.mat-warn,.mat-raised-button.mat-accent,.mat-raised-button.mat-primary,.mat-raised-button.mat-warn{color:#fff}.mat-fab.mat-accent.mat-button-disabled,.mat-fab.mat-button-disabled.mat-button-disabled,.mat-fab.mat-primary.mat-button-disabled,.mat-fab.mat-warn.mat-button-disabled,.mat-flat-button.mat-accent.mat-button-disabled,.mat-flat-button.mat-button-disabled.mat-button-disabled,.mat-flat-button.mat-primary.mat-button-disabled,.mat-flat-button.mat-warn.mat-button-disabled,.mat-mini-fab.mat-accent.mat-button-disabled,.mat-mini-fab.mat-button-disabled.mat-button-disabled,.mat-mini-fab.mat-primary.mat-button-disabled,.mat-mini-fab.mat-warn.mat-button-disabled,.mat-raised-button.mat-accent.mat-button-disabled,.mat-raised-button.mat-button-disabled.mat-button-disabled,.mat-raised-button.mat-primary.mat-button-disabled,.mat-raised-button.mat-warn.mat-button-disabled{color:rgba(0,0,0,.26)}.mat-fab.mat-primary,.mat-flat-button.mat-primary,.mat-mini-fab.mat-primary,.mat-raised-button.mat-primary{background-color:#212121}.mat-fab.mat-accent,.mat-flat-button.mat-accent,.mat-mini-fab.mat-accent,.mat-raised-button.mat-accent{background-color:#43a047}.mat-fab.mat-warn,.mat-flat-button.mat-warn,.mat-mini-fab.mat-warn,.mat-raised-button.mat-warn{background-color:#f44336}.mat-fab.mat-accent.mat-button-disabled,.mat-fab.mat-button-disabled.mat-button-disabled,.mat-fab.mat-primary.mat-button-disabled,.mat-fab.mat-warn.mat-button-disabled,.mat-flat-button.mat-accent.mat-button-disabled,.mat-flat-button.mat-button-disabled.mat-button-disabled,.mat-flat-button.mat-primary.mat-button-disabled,.mat-flat-button.mat-warn.mat-button-disabled,.mat-mini-fab.mat-accent.mat-button-disabled,.mat-mini-fab.mat-button-disabled.mat-button-disabled,.mat-mini-fab.mat-primary.mat-button-disabled,.mat-mini-fab.mat-warn.mat-button-disabled,.mat-raised-button.mat-accent.mat-button-disabled,.mat-raised-button.mat-button-disabled.mat-button-disabled,.mat-raised-button.mat-primary.mat-button-disabled,.mat-raised-button.mat-warn.mat-button-disabled{background-color:rgba(0,0,0,.12)}.mat-fab.mat-accent .mat-ripple-element,.mat-fab.mat-primary .mat-ripple-element,.mat-fab.mat-warn .mat-ripple-element,.mat-flat-button.mat-accent .mat-ripple-element,.mat-flat-button.mat-primary .mat-ripple-element,.mat-flat-button.mat-warn .mat-ripple-element,.mat-mini-fab.mat-accent .mat-ripple-element,.mat-mini-fab.mat-primary .mat-ripple-element,.mat-mini-fab.mat-warn .mat-ripple-element,.mat-raised-button.mat-accent .mat-ripple-element,.mat-raised-button.mat-primary .mat-ripple-element,.mat-raised-button.mat-warn .mat-ripple-element{background-color:hsla(0,0%,100%,.1)}.mat-flat-button:not([class*=mat-elevation-z]),.mat-stroked-button:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-raised-button:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-raised-button:not(.mat-button-disabled):active:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.mat-raised-button.mat-button-disabled:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-fab:not([class*=mat-elevation-z]),.mat-mini-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-fab:not(.mat-button-disabled):active:not([class*=mat-elevation-z]),.mat-mini-fab:not(.mat-button-disabled):active:not([class*=mat-elevation-z]){box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.mat-fab.mat-button-disabled:not([class*=mat-elevation-z]),.mat-mini-fab.mat-button-disabled:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-button-toggle-group,.mat-button-toggle-standalone{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-button-toggle-group-appearance-standard,.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{box-shadow:none}.mat-button-toggle{color:rgba(0,0,0,.38)}.mat-button-toggle .mat-button-toggle-focus-overlay{background-color:rgba(0,0,0,.12)}.mat-button-toggle-appearance-standard{color:rgba(0,0,0,.87);background:#fff}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:#000}.mat-button-toggle-group-appearance-standard .mat-button-toggle+.mat-button-toggle{border-left:1px solid rgba(0,0,0,.12)}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle+.mat-button-toggle{border-left:none;border-right:1px solid rgba(0,0,0,.12)}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle+.mat-button-toggle{border-left:none;border-right:none;border-top:1px solid rgba(0,0,0,.12)}.mat-button-toggle-checked{background-color:#e0e0e0;color:rgba(0,0,0,.54)}.mat-button-toggle-checked.mat-button-toggle-appearance-standard{color:rgba(0,0,0,.87)}.mat-button-toggle-disabled{color:rgba(0,0,0,.26);background-color:#eee}.mat-button-toggle-disabled.mat-button-toggle-appearance-standard{background:#fff}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:#bdbdbd}.mat-button-toggle-group-appearance-standard,.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{border:1px solid rgba(0,0,0,.12)}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{line-height:48px}.mat-card{background:#fff;color:rgba(0,0,0,.87)}.mat-card:not([class*=mat-elevation-z]){box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.mat-card.mat-card-flat:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-card-subtitle{color:rgba(0,0,0,.54)}.mat-checkbox-frame{border-color:rgba(0,0,0,.54)}.mat-checkbox-checkmark{fill:#fafafa}.mat-checkbox-checkmark-path{stroke:#fafafa!important}.mat-checkbox-mixedmark{background-color:#fafafa}.mat-checkbox-checked.mat-primary .mat-checkbox-background,.mat-checkbox-indeterminate.mat-primary .mat-checkbox-background{background-color:#212121}.mat-checkbox-checked.mat-accent .mat-checkbox-background,.mat-checkbox-indeterminate.mat-accent .mat-checkbox-background{background-color:#43a047}.mat-checkbox-checked.mat-warn .mat-checkbox-background,.mat-checkbox-indeterminate.mat-warn .mat-checkbox-background{background-color:#f44336}.mat-checkbox-disabled.mat-checkbox-checked .mat-checkbox-background,.mat-checkbox-disabled.mat-checkbox-indeterminate .mat-checkbox-background{background-color:#b0b0b0}.mat-checkbox-disabled:not(.mat-checkbox-checked) .mat-checkbox-frame{border-color:#b0b0b0}.mat-checkbox-disabled .mat-checkbox-label{color:rgba(0,0,0,.54)}.mat-checkbox .mat-ripple-element{background-color:#000}.mat-checkbox-checked:not(.mat-checkbox-disabled).mat-primary .mat-ripple-element,.mat-checkbox:active:not(.mat-checkbox-disabled).mat-primary .mat-ripple-element{background:#212121}.mat-checkbox-checked:not(.mat-checkbox-disabled).mat-accent .mat-ripple-element,.mat-checkbox:active:not(.mat-checkbox-disabled).mat-accent .mat-ripple-element{background:#43a047}.mat-checkbox-checked:not(.mat-checkbox-disabled).mat-warn .mat-ripple-element,.mat-checkbox:active:not(.mat-checkbox-disabled).mat-warn .mat-ripple-element{background:#f44336}.mat-chip.mat-standard-chip{background-color:#e0e0e0;color:rgba(0,0,0,.87)}.mat-chip.mat-standard-chip .mat-chip-remove{color:rgba(0,0,0,.87);opacity:.4}.mat-chip.mat-standard-chip:not(.mat-chip-disabled):active{box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12)}.mat-chip.mat-standard-chip:not(.mat-chip-disabled) .mat-chip-remove:hover{opacity:.54}.mat-chip.mat-standard-chip.mat-chip-disabled{opacity:.4}.mat-chip.mat-standard-chip:after{background:#000}.mat-chip.mat-standard-chip.mat-chip-selected.mat-primary{background-color:#212121;color:#fff}.mat-chip.mat-standard-chip.mat-chip-selected.mat-primary .mat-chip-remove{color:#fff;opacity:.4}.mat-chip.mat-standard-chip.mat-chip-selected.mat-primary .mat-ripple-element{background-color:hsla(0,0%,100%,.1)}.mat-chip.mat-standard-chip.mat-chip-selected.mat-warn{background-color:#f44336;color:#fff}.mat-chip.mat-standard-chip.mat-chip-selected.mat-warn .mat-chip-remove{color:#fff;opacity:.4}.mat-chip.mat-standard-chip.mat-chip-selected.mat-warn .mat-ripple-element{background-color:hsla(0,0%,100%,.1)}.mat-chip.mat-standard-chip.mat-chip-selected.mat-accent{background-color:#43a047;color:#fff}.mat-chip.mat-standard-chip.mat-chip-selected.mat-accent .mat-chip-remove{color:#fff;opacity:.4}.mat-chip.mat-standard-chip.mat-chip-selected.mat-accent .mat-ripple-element{background-color:hsla(0,0%,100%,.1)}.mat-table{background:#fff}.mat-table-sticky,.mat-table tbody,.mat-table tfoot,.mat-table thead,[mat-footer-row],[mat-header-row],[mat-row],mat-footer-row,mat-header-row,mat-row{background:inherit}mat-footer-row,mat-header-row,mat-row,td.mat-cell,td.mat-footer-cell,th.mat-header-cell{border-bottom-color:rgba(0,0,0,.12)}.mat-header-cell{color:rgba(0,0,0,.54)}.mat-cell,.mat-footer-cell{color:rgba(0,0,0,.87)}.mat-calendar-arrow{border-top-color:rgba(0,0,0,.54)}.mat-datepicker-content .mat-calendar-next-button,.mat-datepicker-content .mat-calendar-previous-button,.mat-datepicker-toggle{color:rgba(0,0,0,.54)}.mat-calendar-table-header{color:rgba(0,0,0,.38)}.mat-calendar-table-header-divider:after{background:rgba(0,0,0,.12)}.mat-calendar-body-label{color:rgba(0,0,0,.54)}.mat-calendar-body-cell-content,.mat-date-range-input-separator{color:rgba(0,0,0,.87);border-color:transparent}.mat-calendar-body-disabled>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.mat-form-field-disabled .mat-date-range-input-separator{color:rgba(0,0,0,.38)}.mat-calendar-body-in-preview{color:rgba(0,0,0,.24)}.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:rgba(0,0,0,.38)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:rgba(0,0,0,.18)}.mat-calendar-body-in-range:before{background:rgba(33,33,33,.2)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range:before{background:rgba(249,171,0,.2)}.mat-calendar-body-comparison-bridge-start:before,[dir=rtl] .mat-calendar-body-comparison-bridge-end:before{background:linear-gradient(90deg,rgba(33,33,33,.2) 50%,rgba(249,171,0,.2) 0)}.mat-calendar-body-comparison-bridge-end:before,[dir=rtl] .mat-calendar-body-comparison-bridge-start:before{background:linear-gradient(270deg,rgba(33,33,33,.2) 50%,rgba(249,171,0,.2) 0)}.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range:after,.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical{background:#a8dab5}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:#46a35e}.mat-calendar-body-selected{background-color:#212121;color:#fff}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(33,33,33,.4)}.mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:rgba(33,33,33,.3)}.mat-datepicker-content{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12);background-color:#fff;color:rgba(0,0,0,.87)}.mat-datepicker-content.mat-accent .mat-calendar-body-in-range:before{background:rgba(67,160,71,.2)}.mat-datepicker-content.mat-accent .mat-calendar-body-comparison-identical,.mat-datepicker-content.mat-accent .mat-calendar-body-in-comparison-range:before{background:rgba(249,171,0,.2)}.mat-datepicker-content.mat-accent .mat-calendar-body-comparison-bridge-start:before,.mat-datepicker-content.mat-accent [dir=rtl] .mat-calendar-body-comparison-bridge-end:before{background:linear-gradient(90deg,rgba(67,160,71,.2) 50%,rgba(249,171,0,.2) 0)}.mat-datepicker-content.mat-accent .mat-calendar-body-comparison-bridge-end:before,.mat-datepicker-content.mat-accent [dir=rtl] .mat-calendar-body-comparison-bridge-start:before{background:linear-gradient(270deg,rgba(67,160,71,.2) 50%,rgba(249,171,0,.2) 0)}.mat-datepicker-content.mat-accent .mat-calendar-body-in-comparison-range.mat-calendar-body-in-range:after,.mat-datepicker-content.mat-accent .mat-calendar-body-in-range>.mat-calendar-body-comparison-identical{background:#a8dab5}.mat-datepicker-content.mat-accent .mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-datepicker-content.mat-accent .mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:#46a35e}.mat-datepicker-content.mat-accent .mat-calendar-body-selected{background-color:#43a047;color:#fff}.mat-datepicker-content.mat-accent .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(67,160,71,.4)}.mat-datepicker-content.mat-accent .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.mat-datepicker-content.mat-accent .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.mat-datepicker-content.mat-accent .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.mat-datepicker-content.mat-accent .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:rgba(67,160,71,.3)}.mat-datepicker-content.mat-warn .mat-calendar-body-in-range:before{background:rgba(244,67,54,.2)}.mat-datepicker-content.mat-warn .mat-calendar-body-comparison-identical,.mat-datepicker-content.mat-warn .mat-calendar-body-in-comparison-range:before{background:rgba(249,171,0,.2)}.mat-datepicker-content.mat-warn .mat-calendar-body-comparison-bridge-start:before,.mat-datepicker-content.mat-warn [dir=rtl] .mat-calendar-body-comparison-bridge-end:before{background:linear-gradient(90deg,rgba(244,67,54,.2) 50%,rgba(249,171,0,.2) 0)}.mat-datepicker-content.mat-warn .mat-calendar-body-comparison-bridge-end:before,.mat-datepicker-content.mat-warn [dir=rtl] .mat-calendar-body-comparison-bridge-start:before{background:linear-gradient(270deg,rgba(244,67,54,.2) 50%,rgba(249,171,0,.2) 0)}.mat-datepicker-content.mat-warn .mat-calendar-body-in-comparison-range.mat-calendar-body-in-range:after,.mat-datepicker-content.mat-warn .mat-calendar-body-in-range>.mat-calendar-body-comparison-identical{background:#a8dab5}.mat-datepicker-content.mat-warn .mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-datepicker-content.mat-warn .mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:#46a35e}.mat-datepicker-content.mat-warn .mat-calendar-body-selected{background-color:#f44336;color:#fff}.mat-datepicker-content.mat-warn .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(244,67,54,.4)}.mat-datepicker-content.mat-warn .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.mat-datepicker-content.mat-warn .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.mat-datepicker-content.mat-warn .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.mat-datepicker-content.mat-warn .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:rgba(244,67,54,.3)}.mat-datepicker-content-touch{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12)}.mat-datepicker-toggle-active{color:#212121}.mat-datepicker-toggle-active.mat-accent{color:#43a047}.mat-datepicker-toggle-active.mat-warn{color:#f44336}.mat-date-range-input-inner[disabled]{color:rgba(0,0,0,.38)}.mat-dialog-container{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);background:#fff;color:rgba(0,0,0,.87)}.mat-divider{border-top-color:rgba(0,0,0,.12)}.mat-divider-vertical{border-right-color:rgba(0,0,0,.12)}.mat-expansion-panel{background:#fff;color:rgba(0,0,0,.87)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-action-row{border-top-color:rgba(0,0,0,.12)}.mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true]),.mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true]),.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true]){background:rgba(0,0,0,.04)}@media (hover:none){.mat-expansion-panel:not(.mat-expanded):not([aria-disabled=true]) .mat-expansion-panel-header:hover{background:#fff}}.mat-expansion-panel-header-title{color:rgba(0,0,0,.87)}.mat-expansion-indicator:after,.mat-expansion-panel-header-description{color:rgba(0,0,0,.54)}.mat-expansion-panel-header[aria-disabled=true]{color:rgba(0,0,0,.26)}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title{color:inherit}.mat-expansion-panel-header{height:48px}.mat-expansion-panel-header.mat-expanded{height:64px}.mat-form-field-label,.mat-hint{color:rgba(0,0,0,.6)}.mat-form-field.mat-focused .mat-form-field-label{color:#212121}.mat-form-field.mat-focused .mat-form-field-label.mat-accent{color:#43a047}.mat-form-field.mat-focused .mat-form-field-label.mat-warn{color:#f44336}.mat-focused .mat-form-field-required-marker{color:#43a047}.mat-form-field-ripple{background-color:rgba(0,0,0,.87)}.mat-form-field.mat-focused .mat-form-field-ripple{background-color:#212121}.mat-form-field.mat-focused .mat-form-field-ripple.mat-accent{background-color:#43a047}.mat-form-field.mat-focused .mat-form-field-ripple.mat-warn{background-color:#f44336}.mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid) .mat-form-field-infix:after{color:#212121}.mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid).mat-accent .mat-form-field-infix:after{color:#43a047}.mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid).mat-warn .mat-form-field-infix:after,.mat-form-field.mat-form-field-invalid .mat-form-field-label,.mat-form-field.mat-form-field-invalid .mat-form-field-label.mat-accent,.mat-form-field.mat-form-field-invalid .mat-form-field-label .mat-form-field-required-marker{color:#f44336}.mat-form-field.mat-form-field-invalid .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple.mat-accent{background-color:#f44336}.mat-error{color:#f44336}.mat-form-field-appearance-legacy .mat-form-field-label,.mat-form-field-appearance-legacy .mat-hint{color:rgba(0,0,0,.54)}.mat-form-field-appearance-legacy .mat-form-field-underline{background-color:rgba(0,0,0,.42)}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-image:linear-gradient(90deg,rgba(0,0,0,.42) 0,rgba(0,0,0,.42) 33%,transparent 0);background-size:4px 100%;background-repeat:repeat-x}.mat-form-field-appearance-standard .mat-form-field-underline{background-color:rgba(0,0,0,.42)}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-image:linear-gradient(90deg,rgba(0,0,0,.42) 0,rgba(0,0,0,.42) 33%,transparent 0);background-size:4px 100%;background-repeat:repeat-x}.mat-form-field-appearance-fill .mat-form-field-flex{background-color:rgba(0,0,0,.04)}.mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{background-color:rgba(0,0,0,.02)}.mat-form-field-appearance-fill .mat-form-field-underline:before{background-color:rgba(0,0,0,.42)}.mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-label{color:rgba(0,0,0,.38)}.mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-underline:before{background-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline{color:rgba(0,0,0,.12)}.mat-form-field-appearance-outline .mat-form-field-outline-thick{color:rgba(0,0,0,.87)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{color:#212121}.mat-form-field-appearance-outline.mat-focused.mat-accent .mat-form-field-outline-thick{color:#43a047}.mat-form-field-appearance-outline.mat-focused.mat-warn .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid.mat-form-field-invalid .mat-form-field-outline-thick{color:#f44336}.mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-label{color:rgba(0,0,0,.38)}.mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:rgba(0,0,0,.06)}.mat-icon.mat-primary{color:#212121}.mat-icon.mat-accent{color:#43a047}.mat-icon.mat-warn{color:#f44336}.mat-form-field-type-mat-native-select .mat-form-field-infix:after{color:rgba(0,0,0,.54)}.mat-form-field-type-mat-native-select.mat-form-field-disabled .mat-form-field-infix:after,.mat-input-element:disabled{color:rgba(0,0,0,.38)}.mat-input-element{caret-color:#212121}.mat-input-element::placeholder{color:rgba(0,0,0,.42)}.mat-input-element::-moz-placeholder{color:rgba(0,0,0,.42)}.mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,.42)}.mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,.42)}.mat-form-field.mat-accent .mat-input-element{caret-color:#43a047}.mat-form-field-invalid .mat-input-element,.mat-form-field.mat-warn .mat-input-element{caret-color:#f44336}.mat-form-field-type-mat-native-select.mat-form-field-invalid .mat-form-field-infix:after{color:#f44336}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{color:rgba(0,0,0,.87)}.mat-list-base .mat-subheader{color:rgba(0,0,0,.54)}.mat-list-item-disabled{background-color:#eee}.mat-action-list .mat-list-item:focus,.mat-action-list .mat-list-item:hover,.mat-list-option:focus,.mat-list-option:hover,.mat-nav-list .mat-list-item:focus,.mat-nav-list .mat-list-item:hover{background:rgba(0,0,0,.04)}.mat-list-single-selected-option,.mat-list-single-selected-option:focus,.mat-list-single-selected-option:hover{background:rgba(0,0,0,.12)}.mat-menu-panel{background:#fff}.mat-menu-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.mat-menu-item{background:transparent;color:rgba(0,0,0,.87)}.mat-menu-item[disabled],.mat-menu-item[disabled] .mat-icon-no-color,.mat-menu-item[disabled]:after{color:rgba(0,0,0,.38)}.mat-menu-item-submenu-trigger:after,.mat-menu-item .mat-icon-no-color{color:rgba(0,0,0,.54)}.mat-menu-item-highlighted:not([disabled]),.mat-menu-item.cdk-keyboard-focused:not([disabled]),.mat-menu-item.cdk-program-focused:not([disabled]),.mat-menu-item:hover:not([disabled]){background:rgba(0,0,0,.04)}.mat-paginator{background:#fff}.mat-paginator,.mat-paginator-page-size .mat-select-trigger{color:rgba(0,0,0,.54)}.mat-paginator-decrement,.mat-paginator-increment{border-top:2px solid rgba(0,0,0,.54);border-right:2px solid rgba(0,0,0,.54)}.mat-paginator-first,.mat-paginator-last{border-top:2px solid rgba(0,0,0,.54)}.mat-icon-button[disabled] .mat-paginator-decrement,.mat-icon-button[disabled] .mat-paginator-first,.mat-icon-button[disabled] .mat-paginator-increment,.mat-icon-button[disabled] .mat-paginator-last{border-color:rgba(0,0,0,.38)}.mat-paginator-container{min-height:56px}.mat-progress-bar-background{fill:#c4c4c4}.mat-progress-bar-buffer{background-color:#c4c4c4}.mat-progress-bar-fill:after{background-color:#212121}.mat-progress-bar.mat-accent .mat-progress-bar-background{fill:#cce4cd}.mat-progress-bar.mat-accent .mat-progress-bar-buffer{background-color:#cce4cd}.mat-progress-bar.mat-accent .mat-progress-bar-fill:after{background-color:#43a047}.mat-progress-bar.mat-warn .mat-progress-bar-background{fill:#f9ccc9}.mat-progress-bar.mat-warn .mat-progress-bar-buffer{background-color:#f9ccc9}.mat-progress-bar.mat-warn .mat-progress-bar-fill:after{background-color:#f44336}.mat-progress-spinner circle,.mat-spinner circle{stroke:#212121}.mat-progress-spinner.mat-accent circle,.mat-spinner.mat-accent circle{stroke:#43a047}.mat-progress-spinner.mat-warn circle,.mat-spinner.mat-warn circle{stroke:#f44336}.mat-radio-outer-circle{border-color:rgba(0,0,0,.54)}.mat-radio-button.mat-primary.mat-radio-checked .mat-radio-outer-circle{border-color:#212121}.mat-radio-button.mat-primary.mat-radio-checked .mat-radio-persistent-ripple,.mat-radio-button.mat-primary .mat-radio-inner-circle,.mat-radio-button.mat-primary .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.mat-radio-button.mat-primary:active .mat-radio-persistent-ripple{background-color:#212121}.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:#43a047}.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-persistent-ripple,.mat-radio-button.mat-accent .mat-radio-inner-circle,.mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.mat-radio-button.mat-accent:active .mat-radio-persistent-ripple{background-color:#43a047}.mat-radio-button.mat-warn.mat-radio-checked .mat-radio-outer-circle{border-color:#f44336}.mat-radio-button.mat-warn.mat-radio-checked .mat-radio-persistent-ripple,.mat-radio-button.mat-warn .mat-radio-inner-circle,.mat-radio-button.mat-warn .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.mat-radio-button.mat-warn:active .mat-radio-persistent-ripple{background-color:#f44336}.mat-radio-button.mat-radio-disabled.mat-radio-checked .mat-radio-outer-circle,.mat-radio-button.mat-radio-disabled .mat-radio-outer-circle{border-color:rgba(0,0,0,.38)}.mat-radio-button.mat-radio-disabled .mat-radio-inner-circle,.mat-radio-button.mat-radio-disabled .mat-radio-ripple .mat-ripple-element{background-color:rgba(0,0,0,.38)}.mat-radio-button.mat-radio-disabled .mat-radio-label-content{color:rgba(0,0,0,.38)}.mat-radio-button .mat-ripple-element{background-color:#000}.mat-select-value{color:rgba(0,0,0,.87)}.mat-select-placeholder{color:rgba(0,0,0,.42)}.mat-select-disabled .mat-select-value{color:rgba(0,0,0,.38)}.mat-select-arrow{color:rgba(0,0,0,.54)}.mat-select-panel{background:#fff}.mat-select-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.mat-select-panel .mat-option.mat-selected:not(.mat-option-multiple){background:rgba(0,0,0,.12)}.mat-form-field.mat-focused.mat-primary .mat-select-arrow{color:#212121}.mat-form-field.mat-focused.mat-accent .mat-select-arrow{color:#43a047}.mat-form-field.mat-focused.mat-warn .mat-select-arrow,.mat-form-field .mat-select.mat-select-invalid .mat-select-arrow{color:#f44336}.mat-form-field .mat-select.mat-select-disabled .mat-select-arrow{color:rgba(0,0,0,.38)}.mat-drawer-container{background-color:#fafafa;color:rgba(0,0,0,.87)}.mat-drawer{color:rgba(0,0,0,.87)}.mat-drawer,.mat-drawer.mat-drawer-push{background-color:#fff}.mat-drawer:not(.mat-drawer-side){box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12)}.mat-drawer-side{border-right:1px solid rgba(0,0,0,.12)}.mat-drawer-side.mat-drawer-end,[dir=rtl] .mat-drawer-side{border-left:1px solid rgba(0,0,0,.12);border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-left:none;border-right:1px solid rgba(0,0,0,.12)}.mat-drawer-backdrop.mat-drawer-shown{background-color:rgba(0,0,0,.6)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb{background-color:#43a047}.mat-slide-toggle.mat-checked .mat-slide-toggle-bar{background-color:rgba(67,160,71,.54)}.mat-slide-toggle.mat-checked .mat-ripple-element{background-color:#43a047}.mat-slide-toggle.mat-primary.mat-checked .mat-slide-toggle-thumb{background-color:#212121}.mat-slide-toggle.mat-primary.mat-checked .mat-slide-toggle-bar{background-color:rgba(33,33,33,.54)}.mat-slide-toggle.mat-primary.mat-checked .mat-ripple-element{background-color:#212121}.mat-slide-toggle.mat-warn.mat-checked .mat-slide-toggle-thumb{background-color:#f44336}.mat-slide-toggle.mat-warn.mat-checked .mat-slide-toggle-bar{background-color:rgba(244,67,54,.54)}.mat-slide-toggle.mat-warn.mat-checked .mat-ripple-element{background-color:#f44336}.mat-slide-toggle:not(.mat-checked) .mat-ripple-element{background-color:#000}.mat-slide-toggle-thumb{box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);background-color:#fafafa}.mat-slide-toggle-bar{background-color:rgba(0,0,0,.38)}.mat-slider-track-background{background-color:rgba(0,0,0,.26)}.mat-primary .mat-slider-thumb,.mat-primary .mat-slider-thumb-label,.mat-primary .mat-slider-track-fill{background-color:#212121}.mat-primary .mat-slider-thumb-label-text{color:#fff}.mat-primary .mat-slider-focus-ring{background-color:rgba(33,33,33,.2)}.mat-accent .mat-slider-thumb,.mat-accent .mat-slider-thumb-label,.mat-accent .mat-slider-track-fill{background-color:#43a047}.mat-accent .mat-slider-thumb-label-text{color:#fff}.mat-accent .mat-slider-focus-ring{background-color:rgba(67,160,71,.2)}.mat-warn .mat-slider-thumb,.mat-warn .mat-slider-thumb-label,.mat-warn .mat-slider-track-fill{background-color:#f44336}.mat-warn .mat-slider-thumb-label-text{color:#fff}.mat-warn .mat-slider-focus-ring{background-color:rgba(244,67,54,.2)}.cdk-focused .mat-slider-track-background,.mat-slider:hover .mat-slider-track-background{background-color:rgba(0,0,0,.38)}.mat-slider-disabled .mat-slider-thumb,.mat-slider-disabled .mat-slider-track-background,.mat-slider-disabled .mat-slider-track-fill,.mat-slider-disabled:hover .mat-slider-track-background{background-color:rgba(0,0,0,.26)}.mat-slider-min-value .mat-slider-focus-ring{background-color:rgba(0,0,0,.12)}.mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb,.mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb-label{background-color:rgba(0,0,0,.87)}.mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb,.mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb-label{background-color:rgba(0,0,0,.26)}.mat-slider-min-value:not(.mat-slider-thumb-label-showing) .mat-slider-thumb{border-color:rgba(0,0,0,.26);background-color:transparent}.mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused .mat-slider-thumb,.mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover .mat-slider-thumb{border-color:rgba(0,0,0,.38)}.mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused.mat-slider-disabled .mat-slider-thumb,.mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover.mat-slider-disabled .mat-slider-thumb{border-color:rgba(0,0,0,.26)}.mat-slider-has-ticks .mat-slider-wrapper:after{border-color:rgba(0,0,0,.7)}.mat-slider-horizontal .mat-slider-ticks{background-image:repeating-linear-gradient(90deg,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent);background-image:-moz-repeating-linear-gradient(.0001deg,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent)}.mat-slider-vertical .mat-slider-ticks{background-image:repeating-linear-gradient(180deg,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent)}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused,.mat-step-header:hover{background-color:rgba(0,0,0,.04)}@media (hover:none){.mat-step-header:hover{background:none}}.mat-step-header .mat-step-label,.mat-step-header .mat-step-optional{color:rgba(0,0,0,.54)}.mat-step-header .mat-step-icon{background-color:rgba(0,0,0,.54);color:#fff}.mat-step-header .mat-step-icon-selected,.mat-step-header .mat-step-icon-state-done,.mat-step-header .mat-step-icon-state-edit{background-color:#212121;color:#fff}.mat-step-header.mat-accent .mat-step-icon{color:#fff}.mat-step-header.mat-accent .mat-step-icon-selected,.mat-step-header.mat-accent .mat-step-icon-state-done,.mat-step-header.mat-accent .mat-step-icon-state-edit{background-color:#43a047;color:#fff}.mat-step-header.mat-warn .mat-step-icon{color:#fff}.mat-step-header.mat-warn .mat-step-icon-selected,.mat-step-header.mat-warn .mat-step-icon-state-done,.mat-step-header.mat-warn .mat-step-icon-state-edit{background-color:#f44336;color:#fff}.mat-step-header .mat-step-icon-state-error{background-color:transparent;color:#f44336}.mat-step-header .mat-step-label.mat-step-label-active{color:rgba(0,0,0,.87)}.mat-step-header .mat-step-label.mat-step-label-error{color:#f44336}.mat-stepper-horizontal,.mat-stepper-vertical{background-color:#fff}.mat-stepper-vertical-line:before{border-left-color:rgba(0,0,0,.12)}.mat-horizontal-stepper-header:after,.mat-horizontal-stepper-header:before,.mat-stepper-horizontal-line{border-top-color:rgba(0,0,0,.12)}.mat-horizontal-stepper-header{height:72px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header,.mat-vertical-stepper-header{padding:24px}.mat-stepper-vertical-line:before{top:-16px;bottom:-16px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:after,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:before,.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{top:36px}.mat-sort-header-arrow{color:#757575}.mat-tab-header,.mat-tab-nav-bar{border-bottom:1px solid rgba(0,0,0,.12)}.mat-tab-group-inverted-header .mat-tab-header,.mat-tab-group-inverted-header .mat-tab-nav-bar{border-top:1px solid rgba(0,0,0,.12);border-bottom:none}.mat-tab-label,.mat-tab-link{color:rgba(0,0,0,.87)}.mat-tab-label.mat-tab-disabled,.mat-tab-link.mat-tab-disabled{color:rgba(0,0,0,.38)}.mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.87)}.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.38)}.mat-tab-group[class*=mat-background-] .mat-tab-header,.mat-tab-nav-bar[class*=mat-background-]{border-bottom:none;border-top:none}.mat-tab-group.mat-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:hsla(0,0%,96%,.3)}.mat-tab-group.mat-primary .mat-ink-bar,.mat-tab-nav-bar.mat-primary .mat-ink-bar{background-color:#212121}.mat-tab-group.mat-primary.mat-background-primary>.mat-tab-header .mat-ink-bar,.mat-tab-group.mat-primary.mat-background-primary>.mat-tab-link-container .mat-ink-bar,.mat-tab-nav-bar.mat-primary.mat-background-primary>.mat-tab-header .mat-ink-bar,.mat-tab-nav-bar.mat-primary.mat-background-primary>.mat-tab-link-container .mat-ink-bar{background-color:#fff}.mat-tab-group.mat-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(200,230,201,.3)}.mat-tab-group.mat-accent .mat-ink-bar,.mat-tab-nav-bar.mat-accent .mat-ink-bar{background-color:#43a047}.mat-tab-group.mat-accent.mat-background-accent>.mat-tab-header .mat-ink-bar,.mat-tab-group.mat-accent.mat-background-accent>.mat-tab-link-container .mat-ink-bar,.mat-tab-nav-bar.mat-accent.mat-background-accent>.mat-tab-header .mat-ink-bar,.mat-tab-nav-bar.mat-accent.mat-background-accent>.mat-tab-link-container .mat-ink-bar{background-color:#fff}.mat-tab-group.mat-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,205,210,.3)}.mat-tab-group.mat-warn .mat-ink-bar,.mat-tab-nav-bar.mat-warn .mat-ink-bar{background-color:#f44336}.mat-tab-group.mat-warn.mat-background-warn>.mat-tab-header .mat-ink-bar,.mat-tab-group.mat-warn.mat-background-warn>.mat-tab-link-container .mat-ink-bar,.mat-tab-nav-bar.mat-warn.mat-background-warn>.mat-tab-header .mat-ink-bar,.mat-tab-nav-bar.mat-warn.mat-background-warn>.mat-tab-link-container .mat-ink-bar{background-color:#fff}.mat-tab-group.mat-background-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:hsla(0,0%,96%,.3)}.mat-tab-group.mat-background-primary>.mat-tab-header,.mat-tab-group.mat-background-primary>.mat-tab-header-pagination,.mat-tab-group.mat-background-primary>.mat-tab-link-container,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination,.mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container{background-color:#212121}.mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-label,.mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-tab-link,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-label,.mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-tab-link{color:#fff}.mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-tab-link.mat-tab-disabled{color:hsla(0,0%,100%,.4)}.mat-tab-group.mat-background-primary>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-primary>.mat-tab-header .mat-focus-indicator:before,.mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-focus-indicator:before{border-color:#fff}.mat-tab-group.mat-background-primary>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:hsla(0,0%,100%,.4)}.mat-tab-group.mat-background-primary>.mat-tab-header-pagination .mat-ripple-element,.mat-tab-group.mat-background-primary>.mat-tab-header .mat-ripple-element,.mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-ripple-element,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination .mat-ripple-element,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-ripple-element,.mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-ripple-element{background-color:hsla(0,0%,100%,.12)}.mat-tab-group.mat-background-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(200,230,201,.3)}.mat-tab-group.mat-background-accent>.mat-tab-header,.mat-tab-group.mat-background-accent>.mat-tab-header-pagination,.mat-tab-group.mat-background-accent>.mat-tab-link-container,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination,.mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container{background-color:#43a047}.mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-label,.mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-tab-link,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-label,.mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-tab-link{color:#fff}.mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-tab-link.mat-tab-disabled{color:hsla(0,0%,100%,.4)}.mat-tab-group.mat-background-accent>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-accent>.mat-tab-header .mat-focus-indicator:before,.mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-focus-indicator:before{border-color:#fff}.mat-tab-group.mat-background-accent>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:hsla(0,0%,100%,.4)}.mat-tab-group.mat-background-accent>.mat-tab-header-pagination .mat-ripple-element,.mat-tab-group.mat-background-accent>.mat-tab-header .mat-ripple-element,.mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-ripple-element,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination .mat-ripple-element,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-ripple-element,.mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-ripple-element{background-color:hsla(0,0%,100%,.12)}.mat-tab-group.mat-background-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,205,210,.3)}.mat-tab-group.mat-background-warn>.mat-tab-header,.mat-tab-group.mat-background-warn>.mat-tab-header-pagination,.mat-tab-group.mat-background-warn>.mat-tab-link-container,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination,.mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container{background-color:#f44336}.mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-label,.mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-tab-link,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-label,.mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-tab-link{color:#fff}.mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-tab-link.mat-tab-disabled{color:hsla(0,0%,100%,.4)}.mat-tab-group.mat-background-warn>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-warn>.mat-tab-header .mat-focus-indicator:before,.mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-focus-indicator:before{border-color:#fff}.mat-tab-group.mat-background-warn>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:hsla(0,0%,100%,.4)}.mat-tab-group.mat-background-warn>.mat-tab-header-pagination .mat-ripple-element,.mat-tab-group.mat-background-warn>.mat-tab-header .mat-ripple-element,.mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-ripple-element,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination .mat-ripple-element,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-ripple-element,.mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-ripple-element{background-color:hsla(0,0%,100%,.12)}.mat-toolbar{background:#f5f5f5;color:rgba(0,0,0,.87)}.mat-toolbar.mat-primary{background:#212121;color:#fff}.mat-toolbar.mat-accent{background:#43a047;color:#fff}.mat-toolbar.mat-warn{background:#f44336;color:#fff}.mat-toolbar .mat-focused .mat-form-field-ripple,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-form-field-underline{background-color:currentColor}.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-select-value{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media (max-width:599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}.mat-tooltip{background:rgba(97,97,97,.9)}.mat-tree{background:#fff}.mat-nested-tree-node,.mat-tree-node{color:rgba(0,0,0,.87)}.mat-tree-node{min-height:48px}.mat-snack-bar-container{color:hsla(0,0%,100%,.7);background:#323232;box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-simple-snackbar-action{color:#43a047}.user-theme .mat-ripple-element{background-color:rgba(0,0,0,.1)}.user-theme .mat-option{color:rgba(0,0,0,.87)}.user-theme .mat-option.mat-selected:not(.mat-option-multiple):not(.mat-option-disabled),.user-theme .mat-option:focus:not(.mat-option-disabled),.user-theme .mat-option:hover:not(.mat-option-disabled){background:rgba(0,0,0,.04)}.user-theme .mat-option.mat-active{background:rgba(0,0,0,.04);color:rgba(0,0,0,.87)}.user-theme .mat-option.mat-option-disabled{color:rgba(0,0,0,.38)}.user-theme .mat-primary .mat-option.mat-selected:not(.mat-option-disabled){color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-accent .mat-option.mat-selected:not(.mat-option-disabled){color:#43a047}.user-theme .mat-warn .mat-option.mat-selected:not(.mat-option-disabled){color:#f44336}.user-theme .mat-optgroup-label{color:rgba(0,0,0,.54)}.user-theme .mat-optgroup-disabled .mat-optgroup-label{color:rgba(0,0,0,.38)}.user-theme .mat-pseudo-checkbox{color:rgba(0,0,0,.54)}.user-theme .mat-pseudo-checkbox:after{color:#fafafa}.user-theme .mat-pseudo-checkbox-disabled{color:#b0b0b0}.user-theme .mat-primary .mat-pseudo-checkbox-checked,.user-theme .mat-primary .mat-pseudo-checkbox-indeterminate{background:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-accent .mat-pseudo-checkbox-checked,.user-theme .mat-accent .mat-pseudo-checkbox-indeterminate,.user-theme .mat-pseudo-checkbox-checked,.user-theme .mat-pseudo-checkbox-indeterminate{background:#43a047}.user-theme .mat-warn .mat-pseudo-checkbox-checked,.user-theme .mat-warn .mat-pseudo-checkbox-indeterminate{background:#f44336}.user-theme .mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.user-theme .mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background:#b0b0b0}.user-theme.mat-app-background,.user-theme .mat-app-background{background-color:#fafafa;color:rgba(0,0,0,.87)}.user-theme .mat-elevation-z0{box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.user-theme .mat-elevation-z1{box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.user-theme .mat-elevation-z2{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.user-theme .mat-elevation-z3{box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12)}.user-theme .mat-elevation-z4{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.user-theme .mat-elevation-z5{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 5px 8px 0 rgba(0,0,0,.14),0 1px 14px 0 rgba(0,0,0,.12)}.user-theme .mat-elevation-z6{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.user-theme .mat-elevation-z7{box-shadow:0 4px 5px -2px rgba(0,0,0,.2),0 7px 10px 1px rgba(0,0,0,.14),0 2px 16px 1px rgba(0,0,0,.12)}.user-theme .mat-elevation-z8{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.user-theme .mat-elevation-z9{box-shadow:0 5px 6px -3px rgba(0,0,0,.2),0 9px 12px 1px rgba(0,0,0,.14),0 3px 16px 2px rgba(0,0,0,.12)}.user-theme .mat-elevation-z10{box-shadow:0 6px 6px -3px rgba(0,0,0,.2),0 10px 14px 1px rgba(0,0,0,.14),0 4px 18px 3px rgba(0,0,0,.12)}.user-theme .mat-elevation-z11{box-shadow:0 6px 7px -4px rgba(0,0,0,.2),0 11px 15px 1px rgba(0,0,0,.14),0 4px 20px 3px rgba(0,0,0,.12)}.user-theme .mat-elevation-z12{box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.user-theme .mat-elevation-z13{box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 13px 19px 2px rgba(0,0,0,.14),0 5px 24px 4px rgba(0,0,0,.12)}.user-theme .mat-elevation-z14{box-shadow:0 7px 9px -4px rgba(0,0,0,.2),0 14px 21px 2px rgba(0,0,0,.14),0 5px 26px 4px rgba(0,0,0,.12)}.user-theme .mat-elevation-z15{box-shadow:0 8px 9px -5px rgba(0,0,0,.2),0 15px 22px 2px rgba(0,0,0,.14),0 6px 28px 5px rgba(0,0,0,.12)}.user-theme .mat-elevation-z16{box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12)}.user-theme .mat-elevation-z17{box-shadow:0 8px 11px -5px rgba(0,0,0,.2),0 17px 26px 2px rgba(0,0,0,.14),0 6px 32px 5px rgba(0,0,0,.12)}.user-theme .mat-elevation-z18{box-shadow:0 9px 11px -5px rgba(0,0,0,.2),0 18px 28px 2px rgba(0,0,0,.14),0 7px 34px 6px rgba(0,0,0,.12)}.user-theme .mat-elevation-z19{box-shadow:0 9px 12px -6px rgba(0,0,0,.2),0 19px 29px 2px rgba(0,0,0,.14),0 7px 36px 6px rgba(0,0,0,.12)}.user-theme .mat-elevation-z20{box-shadow:0 10px 13px -6px rgba(0,0,0,.2),0 20px 31px 3px rgba(0,0,0,.14),0 8px 38px 7px rgba(0,0,0,.12)}.user-theme .mat-elevation-z21{box-shadow:0 10px 13px -6px rgba(0,0,0,.2),0 21px 33px 3px rgba(0,0,0,.14),0 8px 40px 7px rgba(0,0,0,.12)}.user-theme .mat-elevation-z22{box-shadow:0 10px 14px -6px rgba(0,0,0,.2),0 22px 35px 3px rgba(0,0,0,.14),0 8px 42px 7px rgba(0,0,0,.12)}.user-theme .mat-elevation-z23{box-shadow:0 11px 14px -7px rgba(0,0,0,.2),0 23px 36px 3px rgba(0,0,0,.14),0 9px 44px 8px rgba(0,0,0,.12)}.user-theme .mat-elevation-z24{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12)}.mat-theme-loaded-marker{display:none}.user-theme .mat-autocomplete-panel{background:#fff;color:rgba(0,0,0,.87)}.user-theme .mat-autocomplete-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.user-theme .mat-autocomplete-panel .mat-option.mat-selected:not(.mat-active):not(:hover){background:#fff}.user-theme .mat-autocomplete-panel .mat-option.mat-selected:not(.mat-active):not(:hover):not(.mat-option-disabled){color:rgba(0,0,0,.87)}.user-theme .mat-badge-content{color:rgba(var(--user-theme-primary-contrast-500),1);background:rgba(var(--user-theme-primary-500),1)}.cdk-high-contrast-active .user-theme .mat-badge-content{outline:1px solid;border-radius:0}.user-theme .mat-badge-accent .mat-badge-content{background:#43a047;color:#fff}.user-theme .mat-badge-warn .mat-badge-content{color:#fff;background:#f44336}.user-theme .mat-badge{position:relative}.user-theme .mat-badge-hidden .mat-badge-content{display:none}.user-theme .mat-badge-disabled .mat-badge-content{background:#b9b9b9;color:rgba(0,0,0,.38)}.user-theme .mat-badge-content{position:absolute;text-align:center;display:inline-block;border-radius:50%;transition:transform .2s ease-in-out;transform:scale(.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;pointer-events:none}.user-theme .mat-badge-content._mat-animation-noopable,.user-theme .ng-animate-disabled .mat-badge-content{transition:none}.user-theme .mat-badge-content.mat-badge-active{transform:none}.user-theme .mat-badge-small .mat-badge-content{width:16px;height:16px;line-height:16px}.user-theme .mat-badge-small.mat-badge-above .mat-badge-content{top:-8px}.user-theme .mat-badge-small.mat-badge-below .mat-badge-content{bottom:-8px}.user-theme .mat-badge-small.mat-badge-before .mat-badge-content{left:-16px}[dir=rtl] .user-theme .mat-badge-small.mat-badge-before .mat-badge-content{left:auto;right:-16px}.user-theme .mat-badge-small.mat-badge-after .mat-badge-content{right:-16px}[dir=rtl] .user-theme .mat-badge-small.mat-badge-after .mat-badge-content{right:auto;left:-16px}.user-theme .mat-badge-small.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-8px}[dir=rtl] .user-theme .mat-badge-small.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-8px}.user-theme .mat-badge-small.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-8px}[dir=rtl] .user-theme .mat-badge-small.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-8px}.user-theme .mat-badge-medium .mat-badge-content{width:22px;height:22px;line-height:22px}.user-theme .mat-badge-medium.mat-badge-above .mat-badge-content{top:-11px}.user-theme .mat-badge-medium.mat-badge-below .mat-badge-content{bottom:-11px}.user-theme .mat-badge-medium.mat-badge-before .mat-badge-content{left:-22px}[dir=rtl] .user-theme .mat-badge-medium.mat-badge-before .mat-badge-content{left:auto;right:-22px}.user-theme .mat-badge-medium.mat-badge-after .mat-badge-content{right:-22px}[dir=rtl] .user-theme .mat-badge-medium.mat-badge-after .mat-badge-content{right:auto;left:-22px}.user-theme .mat-badge-medium.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-11px}[dir=rtl] .user-theme .mat-badge-medium.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-11px}.user-theme .mat-badge-medium.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-11px}[dir=rtl] .user-theme .mat-badge-medium.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-11px}.user-theme .mat-badge-large .mat-badge-content{width:28px;height:28px;line-height:28px}.user-theme .mat-badge-large.mat-badge-above .mat-badge-content{top:-14px}.user-theme .mat-badge-large.mat-badge-below .mat-badge-content{bottom:-14px}.user-theme .mat-badge-large.mat-badge-before .mat-badge-content{left:-28px}[dir=rtl] .user-theme .mat-badge-large.mat-badge-before .mat-badge-content{left:auto;right:-28px}.user-theme .mat-badge-large.mat-badge-after .mat-badge-content{right:-28px}[dir=rtl] .user-theme .mat-badge-large.mat-badge-after .mat-badge-content{right:auto;left:-28px}.user-theme .mat-badge-large.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-14px}[dir=rtl] .user-theme .mat-badge-large.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-14px}.user-theme .mat-badge-large.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-14px}[dir=rtl] .user-theme .mat-badge-large.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-14px}.user-theme .mat-bottom-sheet-container{box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12);background:#fff;color:rgba(0,0,0,.87)}.user-theme .mat-button,.user-theme .mat-icon-button,.user-theme .mat-stroked-button{color:inherit;background:transparent}.user-theme .mat-button.mat-primary,.user-theme .mat-icon-button.mat-primary,.user-theme .mat-stroked-button.mat-primary{color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-button.mat-accent,.user-theme .mat-icon-button.mat-accent,.user-theme .mat-stroked-button.mat-accent{color:#43a047}.user-theme .mat-button.mat-warn,.user-theme .mat-icon-button.mat-warn,.user-theme .mat-stroked-button.mat-warn{color:#f44336}.user-theme .mat-button.mat-accent.mat-button-disabled,.user-theme .mat-button.mat-button-disabled.mat-button-disabled,.user-theme .mat-button.mat-primary.mat-button-disabled,.user-theme .mat-button.mat-warn.mat-button-disabled,.user-theme .mat-icon-button.mat-accent.mat-button-disabled,.user-theme .mat-icon-button.mat-button-disabled.mat-button-disabled,.user-theme .mat-icon-button.mat-primary.mat-button-disabled,.user-theme .mat-icon-button.mat-warn.mat-button-disabled,.user-theme .mat-stroked-button.mat-accent.mat-button-disabled,.user-theme .mat-stroked-button.mat-button-disabled.mat-button-disabled,.user-theme .mat-stroked-button.mat-primary.mat-button-disabled,.user-theme .mat-stroked-button.mat-warn.mat-button-disabled{color:rgba(0,0,0,.26)}.user-theme .mat-button.mat-primary .mat-button-focus-overlay,.user-theme .mat-icon-button.mat-primary .mat-button-focus-overlay,.user-theme .mat-stroked-button.mat-primary .mat-button-focus-overlay{background-color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-button.mat-accent .mat-button-focus-overlay,.user-theme .mat-icon-button.mat-accent .mat-button-focus-overlay,.user-theme .mat-stroked-button.mat-accent .mat-button-focus-overlay{background-color:#43a047}.user-theme .mat-button.mat-warn .mat-button-focus-overlay,.user-theme .mat-icon-button.mat-warn .mat-button-focus-overlay,.user-theme .mat-stroked-button.mat-warn .mat-button-focus-overlay{background-color:#f44336}.user-theme .mat-button.mat-button-disabled .mat-button-focus-overlay,.user-theme .mat-icon-button.mat-button-disabled .mat-button-focus-overlay,.user-theme .mat-stroked-button.mat-button-disabled .mat-button-focus-overlay{background-color:transparent}.user-theme .mat-button .mat-ripple-element,.user-theme .mat-icon-button .mat-ripple-element,.user-theme .mat-stroked-button .mat-ripple-element{opacity:.1;background-color:currentColor}.user-theme .mat-button-focus-overlay{background:#000}.user-theme .mat-stroked-button:not(.mat-button-disabled){border-color:rgba(0,0,0,.12)}.user-theme .mat-fab,.user-theme .mat-flat-button,.user-theme .mat-mini-fab,.user-theme .mat-raised-button{color:rgba(0,0,0,.87);background-color:#fff}.user-theme .mat-fab.mat-primary,.user-theme .mat-flat-button.mat-primary,.user-theme .mat-mini-fab.mat-primary,.user-theme .mat-raised-button.mat-primary{color:rgba(var(--user-theme-primary-contrast-500),1)}.user-theme .mat-fab.mat-accent,.user-theme .mat-fab.mat-warn,.user-theme .mat-flat-button.mat-accent,.user-theme .mat-flat-button.mat-warn,.user-theme .mat-mini-fab.mat-accent,.user-theme .mat-mini-fab.mat-warn,.user-theme .mat-raised-button.mat-accent,.user-theme .mat-raised-button.mat-warn{color:#fff}.user-theme .mat-fab.mat-accent.mat-button-disabled,.user-theme .mat-fab.mat-button-disabled.mat-button-disabled,.user-theme .mat-fab.mat-primary.mat-button-disabled,.user-theme .mat-fab.mat-warn.mat-button-disabled,.user-theme .mat-flat-button.mat-accent.mat-button-disabled,.user-theme .mat-flat-button.mat-button-disabled.mat-button-disabled,.user-theme .mat-flat-button.mat-primary.mat-button-disabled,.user-theme .mat-flat-button.mat-warn.mat-button-disabled,.user-theme .mat-mini-fab.mat-accent.mat-button-disabled,.user-theme .mat-mini-fab.mat-button-disabled.mat-button-disabled,.user-theme .mat-mini-fab.mat-primary.mat-button-disabled,.user-theme .mat-mini-fab.mat-warn.mat-button-disabled,.user-theme .mat-raised-button.mat-accent.mat-button-disabled,.user-theme .mat-raised-button.mat-button-disabled.mat-button-disabled,.user-theme .mat-raised-button.mat-primary.mat-button-disabled,.user-theme .mat-raised-button.mat-warn.mat-button-disabled{color:rgba(0,0,0,.26)}.user-theme .mat-fab.mat-primary,.user-theme .mat-flat-button.mat-primary,.user-theme .mat-mini-fab.mat-primary,.user-theme .mat-raised-button.mat-primary{background-color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-fab.mat-accent,.user-theme .mat-flat-button.mat-accent,.user-theme .mat-mini-fab.mat-accent,.user-theme .mat-raised-button.mat-accent{background-color:#43a047}.user-theme .mat-fab.mat-warn,.user-theme .mat-flat-button.mat-warn,.user-theme .mat-mini-fab.mat-warn,.user-theme .mat-raised-button.mat-warn{background-color:#f44336}.user-theme .mat-fab.mat-accent.mat-button-disabled,.user-theme .mat-fab.mat-button-disabled.mat-button-disabled,.user-theme .mat-fab.mat-primary.mat-button-disabled,.user-theme .mat-fab.mat-warn.mat-button-disabled,.user-theme .mat-flat-button.mat-accent.mat-button-disabled,.user-theme .mat-flat-button.mat-button-disabled.mat-button-disabled,.user-theme .mat-flat-button.mat-primary.mat-button-disabled,.user-theme .mat-flat-button.mat-warn.mat-button-disabled,.user-theme .mat-mini-fab.mat-accent.mat-button-disabled,.user-theme .mat-mini-fab.mat-button-disabled.mat-button-disabled,.user-theme .mat-mini-fab.mat-primary.mat-button-disabled,.user-theme .mat-mini-fab.mat-warn.mat-button-disabled,.user-theme .mat-raised-button.mat-accent.mat-button-disabled,.user-theme .mat-raised-button.mat-button-disabled.mat-button-disabled,.user-theme .mat-raised-button.mat-primary.mat-button-disabled,.user-theme .mat-raised-button.mat-warn.mat-button-disabled{background-color:rgba(0,0,0,.12)}.user-theme .mat-fab.mat-primary .mat-ripple-element,.user-theme .mat-flat-button.mat-primary .mat-ripple-element,.user-theme .mat-mini-fab.mat-primary .mat-ripple-element,.user-theme .mat-raised-button.mat-primary .mat-ripple-element{background-color:rgba(var(--user-theme-primary-contrast-500),1);opacity:.1}.user-theme .mat-fab.mat-accent .mat-ripple-element,.user-theme .mat-fab.mat-warn .mat-ripple-element,.user-theme .mat-flat-button.mat-accent .mat-ripple-element,.user-theme .mat-flat-button.mat-warn .mat-ripple-element,.user-theme .mat-mini-fab.mat-accent .mat-ripple-element,.user-theme .mat-mini-fab.mat-warn .mat-ripple-element,.user-theme .mat-raised-button.mat-accent .mat-ripple-element,.user-theme .mat-raised-button.mat-warn .mat-ripple-element{background-color:hsla(0,0%,100%,.1)}.user-theme .mat-flat-button:not([class*=mat-elevation-z]),.user-theme .mat-stroked-button:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.user-theme .mat-raised-button:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.user-theme .mat-raised-button:not(.mat-button-disabled):active:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.user-theme .mat-raised-button.mat-button-disabled:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.user-theme .mat-fab:not([class*=mat-elevation-z]),.user-theme .mat-mini-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.user-theme .mat-fab:not(.mat-button-disabled):active:not([class*=mat-elevation-z]),.user-theme .mat-mini-fab:not(.mat-button-disabled):active:not([class*=mat-elevation-z]){box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.user-theme .mat-fab.mat-button-disabled:not([class*=mat-elevation-z]),.user-theme .mat-mini-fab.mat-button-disabled:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.user-theme .mat-button-toggle-group,.user-theme .mat-button-toggle-standalone{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.user-theme .mat-button-toggle-group-appearance-standard,.user-theme .mat-button-toggle-standalone.mat-button-toggle-appearance-standard{box-shadow:none}.user-theme .mat-button-toggle{color:rgba(0,0,0,.38)}.user-theme .mat-button-toggle .mat-button-toggle-focus-overlay{background-color:rgba(0,0,0,.12)}.user-theme .mat-button-toggle-appearance-standard{color:rgba(0,0,0,.87);background:#fff}.user-theme .mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:#000}.user-theme .mat-button-toggle-group-appearance-standard .mat-button-toggle+.mat-button-toggle{border-left:1px solid rgba(0,0,0,.12)}.user-theme [dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle+.mat-button-toggle{border-left:none;border-right:1px solid rgba(0,0,0,.12)}.user-theme .mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle+.mat-button-toggle{border-left:none;border-right:none;border-top:1px solid rgba(0,0,0,.12)}.user-theme .mat-button-toggle-checked{background-color:#e0e0e0;color:rgba(0,0,0,.54)}.user-theme .mat-button-toggle-checked.mat-button-toggle-appearance-standard{color:rgba(0,0,0,.87)}.user-theme .mat-button-toggle-disabled{color:rgba(0,0,0,.26);background-color:#eee}.user-theme .mat-button-toggle-disabled.mat-button-toggle-appearance-standard{background:#fff}.user-theme .mat-button-toggle-disabled.mat-button-toggle-checked{background-color:#bdbdbd}.user-theme .mat-button-toggle-group-appearance-standard,.user-theme .mat-button-toggle-standalone.mat-button-toggle-appearance-standard{border:1px solid rgba(0,0,0,.12)}.user-theme .mat-card{background:#fff;color:rgba(0,0,0,.87)}.user-theme .mat-card:not([class*=mat-elevation-z]){box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.user-theme .mat-card.mat-card-flat:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.user-theme .mat-card-subtitle{color:rgba(0,0,0,.54)}.user-theme .mat-checkbox-frame{border-color:rgba(0,0,0,.54)}.user-theme .mat-checkbox-checkmark{fill:#fafafa}.user-theme .mat-checkbox-checkmark-path{stroke:#fafafa!important}.user-theme .mat-checkbox-mixedmark{background-color:#fafafa}.user-theme .mat-checkbox-checked.mat-primary .mat-checkbox-background,.user-theme .mat-checkbox-indeterminate.mat-primary .mat-checkbox-background{background-color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-checkbox-checked.mat-accent .mat-checkbox-background,.user-theme .mat-checkbox-indeterminate.mat-accent .mat-checkbox-background{background-color:#43a047}.user-theme .mat-checkbox-checked.mat-warn .mat-checkbox-background,.user-theme .mat-checkbox-indeterminate.mat-warn .mat-checkbox-background{background-color:#f44336}.user-theme .mat-checkbox-disabled.mat-checkbox-checked .mat-checkbox-background,.user-theme .mat-checkbox-disabled.mat-checkbox-indeterminate .mat-checkbox-background{background-color:#b0b0b0}.user-theme .mat-checkbox-disabled:not(.mat-checkbox-checked) .mat-checkbox-frame{border-color:#b0b0b0}.user-theme .mat-checkbox-disabled .mat-checkbox-label{color:rgba(0,0,0,.54)}.user-theme .mat-checkbox .mat-ripple-element{background-color:#000}.user-theme .mat-checkbox-checked:not(.mat-checkbox-disabled).mat-primary .mat-ripple-element,.user-theme .mat-checkbox:active:not(.mat-checkbox-disabled).mat-primary .mat-ripple-element{background:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-checkbox-checked:not(.mat-checkbox-disabled).mat-accent .mat-ripple-element,.user-theme .mat-checkbox:active:not(.mat-checkbox-disabled).mat-accent .mat-ripple-element{background:#43a047}.user-theme .mat-checkbox-checked:not(.mat-checkbox-disabled).mat-warn .mat-ripple-element,.user-theme .mat-checkbox:active:not(.mat-checkbox-disabled).mat-warn .mat-ripple-element{background:#f44336}.user-theme .mat-chip.mat-standard-chip{background-color:#e0e0e0;color:rgba(0,0,0,.87)}.user-theme .mat-chip.mat-standard-chip .mat-chip-remove{color:rgba(0,0,0,.87);opacity:.4}.user-theme .mat-chip.mat-standard-chip:not(.mat-chip-disabled):active{box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12)}.user-theme .mat-chip.mat-standard-chip:not(.mat-chip-disabled) .mat-chip-remove:hover{opacity:.54}.user-theme .mat-chip.mat-standard-chip.mat-chip-disabled{opacity:.4}.user-theme .mat-chip.mat-standard-chip:after{background:#000}.user-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-primary{background-color:rgba(var(--user-theme-primary-500),1);color:rgba(var(--user-theme-primary-contrast-500),1)}.user-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-primary .mat-chip-remove{color:rgba(var(--user-theme-primary-contrast-500),1);opacity:.4}.user-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-primary .mat-ripple-element{background-color:rgba(var(--user-theme-primary-contrast-500),1);opacity:.1}.user-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-warn{background-color:#f44336;color:#fff}.user-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-warn .mat-chip-remove{color:#fff;opacity:.4}.user-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-warn .mat-ripple-element{background-color:hsla(0,0%,100%,.1)}.user-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-accent{background-color:#43a047;color:#fff}.user-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-accent .mat-chip-remove{color:#fff;opacity:.4}.user-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-accent .mat-ripple-element{background-color:hsla(0,0%,100%,.1)}.user-theme .mat-table{background:#fff}.user-theme .mat-table-sticky,.user-theme .mat-table tbody,.user-theme .mat-table tfoot,.user-theme .mat-table thead,.user-theme [mat-footer-row],.user-theme [mat-header-row],.user-theme [mat-row],.user-theme mat-footer-row,.user-theme mat-header-row,.user-theme mat-row{background:inherit}.user-theme mat-footer-row,.user-theme mat-header-row,.user-theme mat-row,.user-theme td.mat-cell,.user-theme td.mat-footer-cell,.user-theme th.mat-header-cell{border-bottom-color:rgba(0,0,0,.12)}.user-theme .mat-header-cell{color:rgba(0,0,0,.54)}.user-theme .mat-cell,.user-theme .mat-footer-cell{color:rgba(0,0,0,.87)}.user-theme .mat-calendar-arrow{border-top-color:rgba(0,0,0,.54)}.user-theme .mat-datepicker-content .mat-calendar-next-button,.user-theme .mat-datepicker-content .mat-calendar-previous-button,.user-theme .mat-datepicker-toggle{color:rgba(0,0,0,.54)}.user-theme .mat-calendar-table-header{color:rgba(0,0,0,.38)}.user-theme .mat-calendar-table-header-divider:after{background:rgba(0,0,0,.12)}.user-theme .mat-calendar-body-label{color:rgba(0,0,0,.54)}.user-theme .mat-calendar-body-cell-content,.user-theme .mat-date-range-input-separator{color:rgba(0,0,0,.87);border-color:transparent}.user-theme .mat-calendar-body-disabled>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.user-theme .mat-form-field-disabled .mat-date-range-input-separator{color:rgba(0,0,0,.38)}.user-theme .mat-calendar-body-in-preview{color:rgba(0,0,0,.24)}.user-theme .mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:rgba(0,0,0,.38)}.user-theme .mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:rgba(0,0,0,.18)}.user-theme .mat-calendar-body-in-range:before{background:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-calendar-body-comparison-identical,.user-theme .mat-calendar-body-in-comparison-range:before{background:rgba(249,171,0,.2)}.user-theme .mat-calendar-body-comparison-bridge-start:before,.user-theme [dir=rtl] .mat-calendar-body-comparison-bridge-end:before{background:linear-gradient(to right,rgba(var(--user-theme-primary-500),1) 50%,rgba(249,171,0,.2) 50%)}.user-theme .mat-calendar-body-comparison-bridge-end:before,.user-theme [dir=rtl] .mat-calendar-body-comparison-bridge-start:before{background:linear-gradient(to left,rgba(var(--user-theme-primary-500),1) 50%,rgba(249,171,0,.2) 50%)}.user-theme .mat-calendar-body-in-comparison-range.mat-calendar-body-in-range:after,.user-theme .mat-calendar-body-in-range>.mat-calendar-body-comparison-identical{background:#a8dab5}.user-theme .mat-calendar-body-comparison-identical.mat-calendar-body-selected,.user-theme .mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:#46a35e}.user-theme .mat-calendar-body-selected{background-color:rgba(var(--user-theme-primary-500),1);color:rgba(var(--user-theme-primary-contrast-500),1)}.user-theme .mat-calendar-body-disabled>.mat-calendar-body-selected{opacity:.2}.user-theme .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px rgba(var(--user-theme-primary-contrast-500),1)}.user-theme .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.user-theme .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.user-theme .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-datepicker-content{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12);background-color:#fff;color:rgba(0,0,0,.87)}.user-theme .mat-datepicker-content.mat-accent .mat-calendar-body-in-range:before{background:rgba(67,160,71,.2)}.user-theme .mat-datepicker-content.mat-accent .mat-calendar-body-comparison-identical,.user-theme .mat-datepicker-content.mat-accent .mat-calendar-body-in-comparison-range:before{background:rgba(249,171,0,.2)}.user-theme .mat-datepicker-content.mat-accent .mat-calendar-body-comparison-bridge-start:before,.user-theme .mat-datepicker-content.mat-accent [dir=rtl] .mat-calendar-body-comparison-bridge-end:before{background:linear-gradient(90deg,rgba(67,160,71,.2) 50%,rgba(249,171,0,.2) 0)}.user-theme .mat-datepicker-content.mat-accent .mat-calendar-body-comparison-bridge-end:before,.user-theme .mat-datepicker-content.mat-accent [dir=rtl] .mat-calendar-body-comparison-bridge-start:before{background:linear-gradient(270deg,rgba(67,160,71,.2) 50%,rgba(249,171,0,.2) 0)}.user-theme .mat-datepicker-content.mat-accent .mat-calendar-body-in-comparison-range.mat-calendar-body-in-range:after,.user-theme .mat-datepicker-content.mat-accent .mat-calendar-body-in-range>.mat-calendar-body-comparison-identical{background:#a8dab5}.user-theme .mat-datepicker-content.mat-accent .mat-calendar-body-comparison-identical.mat-calendar-body-selected,.user-theme .mat-datepicker-content.mat-accent .mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:#46a35e}.user-theme .mat-datepicker-content.mat-accent .mat-calendar-body-selected{background-color:#43a047;color:#fff}.user-theme .mat-datepicker-content.mat-accent .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(67,160,71,.4)}.user-theme .mat-datepicker-content.mat-accent .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.user-theme .mat-datepicker-content.mat-accent .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.user-theme .mat-datepicker-content.mat-accent .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.user-theme .mat-datepicker-content.mat-accent .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:rgba(67,160,71,.3)}.user-theme .mat-datepicker-content.mat-warn .mat-calendar-body-in-range:before{background:rgba(244,67,54,.2)}.user-theme .mat-datepicker-content.mat-warn .mat-calendar-body-comparison-identical,.user-theme .mat-datepicker-content.mat-warn .mat-calendar-body-in-comparison-range:before{background:rgba(249,171,0,.2)}.user-theme .mat-datepicker-content.mat-warn .mat-calendar-body-comparison-bridge-start:before,.user-theme .mat-datepicker-content.mat-warn [dir=rtl] .mat-calendar-body-comparison-bridge-end:before{background:linear-gradient(90deg,rgba(244,67,54,.2) 50%,rgba(249,171,0,.2) 0)}.user-theme .mat-datepicker-content.mat-warn .mat-calendar-body-comparison-bridge-end:before,.user-theme .mat-datepicker-content.mat-warn [dir=rtl] .mat-calendar-body-comparison-bridge-start:before{background:linear-gradient(270deg,rgba(244,67,54,.2) 50%,rgba(249,171,0,.2) 0)}.user-theme .mat-datepicker-content.mat-warn .mat-calendar-body-in-comparison-range.mat-calendar-body-in-range:after,.user-theme .mat-datepicker-content.mat-warn .mat-calendar-body-in-range>.mat-calendar-body-comparison-identical{background:#a8dab5}.user-theme .mat-datepicker-content.mat-warn .mat-calendar-body-comparison-identical.mat-calendar-body-selected,.user-theme .mat-datepicker-content.mat-warn .mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:#46a35e}.user-theme .mat-datepicker-content.mat-warn .mat-calendar-body-selected{background-color:#f44336;color:#fff}.user-theme .mat-datepicker-content.mat-warn .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(244,67,54,.4)}.user-theme .mat-datepicker-content.mat-warn .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.user-theme .mat-datepicker-content.mat-warn .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.user-theme .mat-datepicker-content.mat-warn .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.user-theme .mat-datepicker-content.mat-warn .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:rgba(244,67,54,.3)}.user-theme .mat-datepicker-content-touch{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12)}.user-theme .mat-datepicker-toggle-active{color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-datepicker-toggle-active.mat-accent{color:#43a047}.user-theme .mat-datepicker-toggle-active.mat-warn{color:#f44336}.user-theme .mat-date-range-input-inner[disabled]{color:rgba(0,0,0,.38)}.user-theme .mat-dialog-container{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);background:#fff;color:rgba(0,0,0,.87)}.user-theme .mat-divider{border-top-color:rgba(0,0,0,.12)}.user-theme .mat-divider-vertical{border-right-color:rgba(0,0,0,.12)}.user-theme .mat-expansion-panel{background:#fff;color:rgba(0,0,0,.87)}.user-theme .mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.user-theme .mat-action-row{border-top-color:rgba(0,0,0,.12)}.user-theme .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true]),.user-theme .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true]),.user-theme .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true]){background:rgba(0,0,0,.04)}@media (hover:none){.user-theme .mat-expansion-panel:not(.mat-expanded):not([aria-disabled=true]) .mat-expansion-panel-header:hover{background:#fff}}.user-theme .mat-expansion-panel-header-title{color:rgba(0,0,0,.87)}.user-theme .mat-expansion-indicator:after,.user-theme .mat-expansion-panel-header-description{color:rgba(0,0,0,.54)}.user-theme .mat-expansion-panel-header[aria-disabled=true]{color:rgba(0,0,0,.26)}.user-theme .mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description,.user-theme .mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title{color:inherit}.user-theme .mat-form-field-label,.user-theme .mat-hint{color:rgba(0,0,0,.6)}.user-theme .mat-form-field.mat-focused .mat-form-field-label{color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-form-field.mat-focused .mat-form-field-label.mat-accent{color:#43a047}.user-theme .mat-form-field.mat-focused .mat-form-field-label.mat-warn{color:#f44336}.user-theme .mat-focused .mat-form-field-required-marker{color:#43a047}.user-theme .mat-form-field-ripple{background-color:rgba(0,0,0,.87)}.user-theme .mat-form-field.mat-focused .mat-form-field-ripple{background-color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-form-field.mat-focused .mat-form-field-ripple.mat-accent{background-color:#43a047}.user-theme .mat-form-field.mat-focused .mat-form-field-ripple.mat-warn{background-color:#f44336}.user-theme .mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid) .mat-form-field-infix:after{color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid).mat-accent .mat-form-field-infix:after{color:#43a047}.user-theme .mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid).mat-warn .mat-form-field-infix:after,.user-theme .mat-form-field.mat-form-field-invalid .mat-form-field-label,.user-theme .mat-form-field.mat-form-field-invalid .mat-form-field-label.mat-accent,.user-theme .mat-form-field.mat-form-field-invalid .mat-form-field-label .mat-form-field-required-marker{color:#f44336}.user-theme .mat-form-field.mat-form-field-invalid .mat-form-field-ripple,.user-theme .mat-form-field.mat-form-field-invalid .mat-form-field-ripple.mat-accent{background-color:#f44336}.user-theme .mat-error{color:#f44336}.user-theme .mat-form-field-appearance-legacy .mat-form-field-label,.user-theme .mat-form-field-appearance-legacy .mat-hint{color:rgba(0,0,0,.54)}.user-theme .mat-form-field-appearance-legacy .mat-form-field-underline{background-color:rgba(0,0,0,.42)}.user-theme .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-image:linear-gradient(90deg,rgba(0,0,0,.42) 0,rgba(0,0,0,.42) 33%,transparent 0);background-size:4px 100%;background-repeat:repeat-x}.user-theme .mat-form-field-appearance-standard .mat-form-field-underline{background-color:rgba(0,0,0,.42)}.user-theme .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-image:linear-gradient(90deg,rgba(0,0,0,.42) 0,rgba(0,0,0,.42) 33%,transparent 0);background-size:4px 100%;background-repeat:repeat-x}.user-theme .mat-form-field-appearance-fill .mat-form-field-flex{background-color:rgba(0,0,0,.04)}.user-theme .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{background-color:rgba(0,0,0,.02)}.user-theme .mat-form-field-appearance-fill .mat-form-field-underline:before{background-color:rgba(0,0,0,.42)}.user-theme .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-label{color:rgba(0,0,0,.38)}.user-theme .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-underline:before{background-color:transparent}.user-theme .mat-form-field-appearance-outline .mat-form-field-outline{color:rgba(0,0,0,.12)}.user-theme .mat-form-field-appearance-outline .mat-form-field-outline-thick{color:rgba(0,0,0,.87)}.user-theme .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-form-field-appearance-outline.mat-focused.mat-accent .mat-form-field-outline-thick{color:#43a047}.user-theme .mat-form-field-appearance-outline.mat-focused.mat-warn .mat-form-field-outline-thick,.user-theme .mat-form-field-appearance-outline.mat-form-field-invalid.mat-form-field-invalid .mat-form-field-outline-thick{color:#f44336}.user-theme .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-label{color:rgba(0,0,0,.38)}.user-theme .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:rgba(0,0,0,.06)}.user-theme .mat-icon.mat-primary{color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-icon.mat-accent{color:#43a047}.user-theme .mat-icon.mat-warn{color:#f44336}.user-theme .mat-form-field-type-mat-native-select .mat-form-field-infix:after{color:rgba(0,0,0,.54)}.user-theme .mat-form-field-type-mat-native-select.mat-form-field-disabled .mat-form-field-infix:after,.user-theme .mat-input-element:disabled{color:rgba(0,0,0,.38)}.user-theme .mat-input-element{caret-color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-input-element::placeholder{color:rgba(0,0,0,.42)}.user-theme .mat-input-element::-moz-placeholder{color:rgba(0,0,0,.42)}.user-theme .mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,.42)}.user-theme .mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,.42)}.user-theme .mat-form-field.mat-accent .mat-input-element{caret-color:#43a047}.user-theme .mat-form-field-invalid .mat-input-element,.user-theme .mat-form-field.mat-warn .mat-input-element{caret-color:#f44336}.user-theme .mat-form-field-type-mat-native-select.mat-form-field-invalid .mat-form-field-infix:after{color:#f44336}.user-theme .mat-list-base .mat-list-item,.user-theme .mat-list-base .mat-list-option{color:rgba(0,0,0,.87)}.user-theme .mat-list-base .mat-subheader{color:rgba(0,0,0,.54)}.user-theme .mat-list-item-disabled{background-color:#eee}.user-theme .mat-action-list .mat-list-item:focus,.user-theme .mat-action-list .mat-list-item:hover,.user-theme .mat-list-option:focus,.user-theme .mat-list-option:hover,.user-theme .mat-nav-list .mat-list-item:focus,.user-theme .mat-nav-list .mat-list-item:hover{background:rgba(0,0,0,.04)}.user-theme .mat-list-single-selected-option,.user-theme .mat-list-single-selected-option:focus,.user-theme .mat-list-single-selected-option:hover{background:rgba(0,0,0,.12)}.user-theme .mat-menu-panel{background:#fff}.user-theme .mat-menu-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.user-theme .mat-menu-item{background:transparent;color:rgba(0,0,0,.87)}.user-theme .mat-menu-item[disabled],.user-theme .mat-menu-item[disabled] .mat-icon-no-color,.user-theme .mat-menu-item[disabled]:after{color:rgba(0,0,0,.38)}.user-theme .mat-menu-item-submenu-trigger:after,.user-theme .mat-menu-item .mat-icon-no-color{color:rgba(0,0,0,.54)}.user-theme .mat-menu-item-highlighted:not([disabled]),.user-theme .mat-menu-item.cdk-keyboard-focused:not([disabled]),.user-theme .mat-menu-item.cdk-program-focused:not([disabled]),.user-theme .mat-menu-item:hover:not([disabled]){background:rgba(0,0,0,.04)}.user-theme .mat-paginator{background:#fff}.user-theme .mat-paginator,.user-theme .mat-paginator-page-size .mat-select-trigger{color:rgba(0,0,0,.54)}.user-theme .mat-paginator-decrement,.user-theme .mat-paginator-increment{border-top:2px solid rgba(0,0,0,.54);border-right:2px solid rgba(0,0,0,.54)}.user-theme .mat-paginator-first,.user-theme .mat-paginator-last{border-top:2px solid rgba(0,0,0,.54)}.user-theme .mat-icon-button[disabled] .mat-paginator-decrement,.user-theme .mat-icon-button[disabled] .mat-paginator-first,.user-theme .mat-icon-button[disabled] .mat-paginator-increment,.user-theme .mat-icon-button[disabled] .mat-paginator-last{border-color:rgba(0,0,0,.38)}.user-theme .mat-progress-bar-background{fill:rgba(var(--user-theme-primary-100),1)}.user-theme .mat-progress-bar-buffer{background-color:rgba(var(--user-theme-primary-100),1)}.user-theme .mat-progress-bar-fill:after{background-color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-progress-bar.mat-accent .mat-progress-bar-background{fill:#cce4cd}.user-theme .mat-progress-bar.mat-accent .mat-progress-bar-buffer{background-color:#cce4cd}.user-theme .mat-progress-bar.mat-accent .mat-progress-bar-fill:after{background-color:#43a047}.user-theme .mat-progress-bar.mat-warn .mat-progress-bar-background{fill:#f9ccc9}.user-theme .mat-progress-bar.mat-warn .mat-progress-bar-buffer{background-color:#f9ccc9}.user-theme .mat-progress-bar.mat-warn .mat-progress-bar-fill:after{background-color:#f44336}.user-theme .mat-progress-spinner circle,.user-theme .mat-spinner circle{stroke:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-progress-spinner.mat-accent circle,.user-theme .mat-spinner.mat-accent circle{stroke:#43a047}.user-theme .mat-progress-spinner.mat-warn circle,.user-theme .mat-spinner.mat-warn circle{stroke:#f44336}.user-theme .mat-radio-outer-circle{border-color:rgba(0,0,0,.54)}.user-theme .mat-radio-button.mat-primary.mat-radio-checked .mat-radio-outer-circle{border-color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-radio-button.mat-primary.mat-radio-checked .mat-radio-persistent-ripple,.user-theme .mat-radio-button.mat-primary .mat-radio-inner-circle,.user-theme .mat-radio-button.mat-primary .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.user-theme .mat-radio-button.mat-primary:active .mat-radio-persistent-ripple{background-color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:#43a047}.user-theme .mat-radio-button.mat-accent.mat-radio-checked .mat-radio-persistent-ripple,.user-theme .mat-radio-button.mat-accent .mat-radio-inner-circle,.user-theme .mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.user-theme .mat-radio-button.mat-accent:active .mat-radio-persistent-ripple{background-color:#43a047}.user-theme .mat-radio-button.mat-warn.mat-radio-checked .mat-radio-outer-circle{border-color:#f44336}.user-theme .mat-radio-button.mat-warn.mat-radio-checked .mat-radio-persistent-ripple,.user-theme .mat-radio-button.mat-warn .mat-radio-inner-circle,.user-theme .mat-radio-button.mat-warn .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.user-theme .mat-radio-button.mat-warn:active .mat-radio-persistent-ripple{background-color:#f44336}.user-theme .mat-radio-button.mat-radio-disabled.mat-radio-checked .mat-radio-outer-circle,.user-theme .mat-radio-button.mat-radio-disabled .mat-radio-outer-circle{border-color:rgba(0,0,0,.38)}.user-theme .mat-radio-button.mat-radio-disabled .mat-radio-inner-circle,.user-theme .mat-radio-button.mat-radio-disabled .mat-radio-ripple .mat-ripple-element{background-color:rgba(0,0,0,.38)}.user-theme .mat-radio-button.mat-radio-disabled .mat-radio-label-content{color:rgba(0,0,0,.38)}.user-theme .mat-radio-button .mat-ripple-element{background-color:#000}.user-theme .mat-select-value{color:rgba(0,0,0,.87)}.user-theme .mat-select-placeholder{color:rgba(0,0,0,.42)}.user-theme .mat-select-disabled .mat-select-value{color:rgba(0,0,0,.38)}.user-theme .mat-select-arrow{color:rgba(0,0,0,.54)}.user-theme .mat-select-panel{background:#fff}.user-theme .mat-select-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.user-theme .mat-select-panel .mat-option.mat-selected:not(.mat-option-multiple){background:rgba(0,0,0,.12)}.user-theme .mat-form-field.mat-focused.mat-primary .mat-select-arrow{color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-form-field.mat-focused.mat-accent .mat-select-arrow{color:#43a047}.user-theme .mat-form-field.mat-focused.mat-warn .mat-select-arrow,.user-theme .mat-form-field .mat-select.mat-select-invalid .mat-select-arrow{color:#f44336}.user-theme .mat-form-field .mat-select.mat-select-disabled .mat-select-arrow{color:rgba(0,0,0,.38)}.user-theme .mat-drawer-container{background-color:#fafafa;color:rgba(0,0,0,.87)}.user-theme .mat-drawer{background-color:#fff;color:rgba(0,0,0,.87)}.user-theme .mat-drawer.mat-drawer-push{background-color:#fff}.user-theme .mat-drawer:not(.mat-drawer-side){box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12)}.user-theme .mat-drawer-side{border-right:1px solid rgba(0,0,0,.12)}.user-theme .mat-drawer-side.mat-drawer-end,.user-theme [dir=rtl] .mat-drawer-side{border-left:1px solid rgba(0,0,0,.12);border-right:none}.user-theme [dir=rtl] .mat-drawer-side.mat-drawer-end{border-left:none;border-right:1px solid rgba(0,0,0,.12)}.user-theme .mat-drawer-backdrop.mat-drawer-shown{background-color:rgba(0,0,0,.6)}.user-theme .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb{background-color:#43a047}.user-theme .mat-slide-toggle.mat-checked .mat-slide-toggle-bar{background-color:rgba(67,160,71,.54)}.user-theme .mat-slide-toggle.mat-checked .mat-ripple-element{background-color:#43a047}.user-theme .mat-slide-toggle.mat-primary.mat-checked .mat-ripple-element,.user-theme .mat-slide-toggle.mat-primary.mat-checked .mat-slide-toggle-bar,.user-theme .mat-slide-toggle.mat-primary.mat-checked .mat-slide-toggle-thumb{background-color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-slide-toggle.mat-warn.mat-checked .mat-slide-toggle-thumb{background-color:#f44336}.user-theme .mat-slide-toggle.mat-warn.mat-checked .mat-slide-toggle-bar{background-color:rgba(244,67,54,.54)}.user-theme .mat-slide-toggle.mat-warn.mat-checked .mat-ripple-element{background-color:#f44336}.user-theme .mat-slide-toggle:not(.mat-checked) .mat-ripple-element{background-color:#000}.user-theme .mat-slide-toggle-thumb{box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);background-color:#fafafa}.user-theme .mat-slide-toggle-bar{background-color:rgba(0,0,0,.38)}.user-theme .mat-slider-track-background{background-color:rgba(0,0,0,.26)}.user-theme .mat-primary .mat-slider-thumb,.user-theme .mat-primary .mat-slider-thumb-label,.user-theme .mat-primary .mat-slider-track-fill{background-color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-primary .mat-slider-thumb-label-text{color:rgba(var(--user-theme-primary-contrast-500),1)}.user-theme .mat-primary .mat-slider-focus-ring{background-color:rgba(var(--user-theme-primary-500),1);opacity:.2}.user-theme .mat-accent .mat-slider-thumb,.user-theme .mat-accent .mat-slider-thumb-label,.user-theme .mat-accent .mat-slider-track-fill{background-color:#43a047}.user-theme .mat-accent .mat-slider-thumb-label-text{color:#fff}.user-theme .mat-accent .mat-slider-focus-ring{background-color:rgba(67,160,71,.2)}.user-theme .mat-warn .mat-slider-thumb,.user-theme .mat-warn .mat-slider-thumb-label,.user-theme .mat-warn .mat-slider-track-fill{background-color:#f44336}.user-theme .mat-warn .mat-slider-thumb-label-text{color:#fff}.user-theme .mat-warn .mat-slider-focus-ring{background-color:rgba(244,67,54,.2)}.user-theme .cdk-focused .mat-slider-track-background,.user-theme .mat-slider:hover .mat-slider-track-background{background-color:rgba(0,0,0,.38)}.user-theme .mat-slider-disabled .mat-slider-thumb,.user-theme .mat-slider-disabled .mat-slider-track-background,.user-theme .mat-slider-disabled .mat-slider-track-fill,.user-theme .mat-slider-disabled:hover .mat-slider-track-background{background-color:rgba(0,0,0,.26)}.user-theme .mat-slider-min-value .mat-slider-focus-ring{background-color:rgba(0,0,0,.12)}.user-theme .mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb,.user-theme .mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb-label{background-color:rgba(0,0,0,.87)}.user-theme .mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb,.user-theme .mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb-label{background-color:rgba(0,0,0,.26)}.user-theme .mat-slider-min-value:not(.mat-slider-thumb-label-showing) .mat-slider-thumb{border-color:rgba(0,0,0,.26);background-color:transparent}.user-theme .mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused .mat-slider-thumb,.user-theme .mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover .mat-slider-thumb{border-color:rgba(0,0,0,.38)}.user-theme .mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused.mat-slider-disabled .mat-slider-thumb,.user-theme .mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover.mat-slider-disabled .mat-slider-thumb{border-color:rgba(0,0,0,.26)}.user-theme .mat-slider-has-ticks .mat-slider-wrapper:after{border-color:rgba(0,0,0,.7)}.user-theme .mat-slider-horizontal .mat-slider-ticks{background-image:repeating-linear-gradient(90deg,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent);background-image:-moz-repeating-linear-gradient(.0001deg,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent)}.user-theme .mat-slider-vertical .mat-slider-ticks{background-image:repeating-linear-gradient(180deg,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent)}.user-theme .mat-step-header.cdk-keyboard-focused,.user-theme .mat-step-header.cdk-program-focused,.user-theme .mat-step-header:hover{background-color:rgba(0,0,0,.04)}@media (hover:none){.user-theme .mat-step-header:hover{background:none}}.user-theme .mat-step-header .mat-step-label,.user-theme .mat-step-header .mat-step-optional{color:rgba(0,0,0,.54)}.user-theme .mat-step-header .mat-step-icon{background-color:rgba(0,0,0,.54);color:rgba(var(--user-theme-primary-contrast-500),1)}.user-theme .mat-step-header .mat-step-icon-selected,.user-theme .mat-step-header .mat-step-icon-state-done,.user-theme .mat-step-header .mat-step-icon-state-edit{background-color:rgba(var(--user-theme-primary-500),1);color:rgba(var(--user-theme-primary-contrast-500),1)}.user-theme .mat-step-header.mat-accent .mat-step-icon{color:#fff}.user-theme .mat-step-header.mat-accent .mat-step-icon-selected,.user-theme .mat-step-header.mat-accent .mat-step-icon-state-done,.user-theme .mat-step-header.mat-accent .mat-step-icon-state-edit{background-color:#43a047;color:#fff}.user-theme .mat-step-header.mat-warn .mat-step-icon{color:#fff}.user-theme .mat-step-header.mat-warn .mat-step-icon-selected,.user-theme .mat-step-header.mat-warn .mat-step-icon-state-done,.user-theme .mat-step-header.mat-warn .mat-step-icon-state-edit{background-color:#f44336;color:#fff}.user-theme .mat-step-header .mat-step-icon-state-error{background-color:transparent;color:#f44336}.user-theme .mat-step-header .mat-step-label.mat-step-label-active{color:rgba(0,0,0,.87)}.user-theme .mat-step-header .mat-step-label.mat-step-label-error{color:#f44336}.user-theme .mat-stepper-horizontal,.user-theme .mat-stepper-vertical{background-color:#fff}.user-theme .mat-stepper-vertical-line:before{border-left-color:rgba(0,0,0,.12)}.user-theme .mat-horizontal-stepper-header:after,.user-theme .mat-horizontal-stepper-header:before,.user-theme .mat-stepper-horizontal-line{border-top-color:rgba(0,0,0,.12)}.user-theme .mat-sort-header-arrow{color:#757575}.user-theme .mat-tab-header,.user-theme .mat-tab-nav-bar{border-bottom:1px solid rgba(0,0,0,.12)}.user-theme .mat-tab-group-inverted-header .mat-tab-header,.user-theme .mat-tab-group-inverted-header .mat-tab-nav-bar{border-top:1px solid rgba(0,0,0,.12);border-bottom:none}.user-theme .mat-tab-label,.user-theme .mat-tab-link{color:rgba(0,0,0,.87)}.user-theme .mat-tab-label.mat-tab-disabled,.user-theme .mat-tab-link.mat-tab-disabled{color:rgba(0,0,0,.38)}.user-theme .mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.87)}.user-theme .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.38)}.user-theme .mat-tab-group[class*=mat-background-] .mat-tab-header,.user-theme .mat-tab-nav-bar[class*=mat-background-]{border-bottom:none;border-top:none}.user-theme .mat-tab-group.mat-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(var(--user-theme-primary-100),1)}.user-theme .mat-tab-group.mat-primary .mat-ink-bar,.user-theme .mat-tab-nav-bar.mat-primary .mat-ink-bar{background-color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-tab-group.mat-primary.mat-background-primary>.mat-tab-header .mat-ink-bar,.user-theme .mat-tab-group.mat-primary.mat-background-primary>.mat-tab-link-container .mat-ink-bar,.user-theme .mat-tab-nav-bar.mat-primary.mat-background-primary>.mat-tab-header .mat-ink-bar,.user-theme .mat-tab-nav-bar.mat-primary.mat-background-primary>.mat-tab-link-container .mat-ink-bar{background-color:rgba(var(--user-theme-primary-contrast-500),1)}.user-theme .mat-tab-group.mat-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(200,230,201,.3)}.user-theme .mat-tab-group.mat-accent .mat-ink-bar,.user-theme .mat-tab-nav-bar.mat-accent .mat-ink-bar{background-color:#43a047}.user-theme .mat-tab-group.mat-accent.mat-background-accent>.mat-tab-header .mat-ink-bar,.user-theme .mat-tab-group.mat-accent.mat-background-accent>.mat-tab-link-container .mat-ink-bar,.user-theme .mat-tab-nav-bar.mat-accent.mat-background-accent>.mat-tab-header .mat-ink-bar,.user-theme .mat-tab-nav-bar.mat-accent.mat-background-accent>.mat-tab-link-container .mat-ink-bar{background-color:#fff}.user-theme .mat-tab-group.mat-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,205,210,.3)}.user-theme .mat-tab-group.mat-warn .mat-ink-bar,.user-theme .mat-tab-nav-bar.mat-warn .mat-ink-bar{background-color:#f44336}.user-theme .mat-tab-group.mat-warn.mat-background-warn>.mat-tab-header .mat-ink-bar,.user-theme .mat-tab-group.mat-warn.mat-background-warn>.mat-tab-link-container .mat-ink-bar,.user-theme .mat-tab-nav-bar.mat-warn.mat-background-warn>.mat-tab-header .mat-ink-bar,.user-theme .mat-tab-nav-bar.mat-warn.mat-background-warn>.mat-tab-link-container .mat-ink-bar{background-color:#fff}.user-theme .mat-tab-group.mat-background-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-background-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-background-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-background-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(var(--user-theme-primary-100),1)}.user-theme .mat-tab-group.mat-background-primary>.mat-tab-header,.user-theme .mat-tab-group.mat-background-primary>.mat-tab-header-pagination,.user-theme .mat-tab-group.mat-background-primary>.mat-tab-link-container,.user-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-header,.user-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination,.user-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container{background-color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-label,.user-theme .mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-label.mat-tab-disabled,.user-theme .mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-tab-link,.user-theme .mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-tab-link.mat-tab-disabled,.user-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-label,.user-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-label.mat-tab-disabled,.user-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-tab-link,.user-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-tab-link.mat-tab-disabled{color:rgba(var(--user-theme-primary-contrast-500),1)}.user-theme .mat-tab-group.mat-background-primary>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.user-theme .mat-tab-group.mat-background-primary>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.user-theme .mat-tab-group.mat-background-primary>.mat-tab-header .mat-focus-indicator:before,.user-theme .mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-chevron,.user-theme .mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.user-theme .mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-focus-indicator:before,.user-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.user-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.user-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-focus-indicator:before,.user-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-chevron,.user-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.user-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-focus-indicator:before{border-color:rgba(var(--user-theme-primary-contrast-500),1)}.user-theme .mat-tab-group.mat-background-primary>.mat-tab-header-pagination .mat-ripple-element,.user-theme .mat-tab-group.mat-background-primary>.mat-tab-header .mat-ripple-element,.user-theme .mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-ripple-element,.user-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination .mat-ripple-element,.user-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-ripple-element,.user-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-ripple-element{background-color:rgba(var(--user-theme-primary-contrast-500),1)}.user-theme .mat-tab-group.mat-background-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-background-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-background-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-background-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(200,230,201,.3)}.user-theme .mat-tab-group.mat-background-accent>.mat-tab-header,.user-theme .mat-tab-group.mat-background-accent>.mat-tab-header-pagination,.user-theme .mat-tab-group.mat-background-accent>.mat-tab-link-container,.user-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-header,.user-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination,.user-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container{background-color:#43a047}.user-theme .mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-label,.user-theme .mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-tab-link,.user-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-label,.user-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-tab-link{color:#fff}.user-theme .mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-label.mat-tab-disabled,.user-theme .mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-tab-link.mat-tab-disabled,.user-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-label.mat-tab-disabled,.user-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-tab-link.mat-tab-disabled{color:hsla(0,0%,100%,.4)}.user-theme .mat-tab-group.mat-background-accent>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.user-theme .mat-tab-group.mat-background-accent>.mat-tab-header .mat-focus-indicator:before,.user-theme .mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-chevron,.user-theme .mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-focus-indicator:before,.user-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.user-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-focus-indicator:before,.user-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-chevron,.user-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-focus-indicator:before{border-color:#fff}.user-theme .mat-tab-group.mat-background-accent>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.user-theme .mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.user-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.user-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:hsla(0,0%,100%,.4)}.user-theme .mat-tab-group.mat-background-accent>.mat-tab-header-pagination .mat-ripple-element,.user-theme .mat-tab-group.mat-background-accent>.mat-tab-header .mat-ripple-element,.user-theme .mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-ripple-element,.user-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination .mat-ripple-element,.user-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-ripple-element,.user-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-ripple-element{background-color:hsla(0,0%,100%,.12)}.user-theme .mat-tab-group.mat-background-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-background-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-background-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-background-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,205,210,.3)}.user-theme .mat-tab-group.mat-background-warn>.mat-tab-header,.user-theme .mat-tab-group.mat-background-warn>.mat-tab-header-pagination,.user-theme .mat-tab-group.mat-background-warn>.mat-tab-link-container,.user-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-header,.user-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination,.user-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container{background-color:#f44336}.user-theme .mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-label,.user-theme .mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-tab-link,.user-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-label,.user-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-tab-link{color:#fff}.user-theme .mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-label.mat-tab-disabled,.user-theme .mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-tab-link.mat-tab-disabled,.user-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-label.mat-tab-disabled,.user-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-tab-link.mat-tab-disabled{color:hsla(0,0%,100%,.4)}.user-theme .mat-tab-group.mat-background-warn>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.user-theme .mat-tab-group.mat-background-warn>.mat-tab-header .mat-focus-indicator:before,.user-theme .mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-chevron,.user-theme .mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-focus-indicator:before,.user-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.user-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-focus-indicator:before,.user-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-chevron,.user-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-focus-indicator:before{border-color:#fff}.user-theme .mat-tab-group.mat-background-warn>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.user-theme .mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.user-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.user-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:hsla(0,0%,100%,.4)}.user-theme .mat-tab-group.mat-background-warn>.mat-tab-header-pagination .mat-ripple-element,.user-theme .mat-tab-group.mat-background-warn>.mat-tab-header .mat-ripple-element,.user-theme .mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-ripple-element,.user-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination .mat-ripple-element,.user-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-ripple-element,.user-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-ripple-element{background-color:hsla(0,0%,100%,.12)}.user-theme .mat-toolbar{background:#f5f5f5;color:rgba(0,0,0,.87)}.user-theme .mat-toolbar.mat-primary{background:rgba(var(--user-theme-primary-500),1);color:rgba(var(--user-theme-primary-contrast-500),1)}.user-theme .mat-toolbar.mat-accent{background:#43a047;color:#fff}.user-theme .mat-toolbar.mat-warn{background:#f44336;color:#fff}.user-theme .mat-toolbar .mat-focused .mat-form-field-ripple,.user-theme .mat-toolbar .mat-form-field-ripple,.user-theme .mat-toolbar .mat-form-field-underline{background-color:currentColor}.user-theme .mat-toolbar .mat-focused .mat-form-field-label,.user-theme .mat-toolbar .mat-form-field-label,.user-theme .mat-toolbar .mat-form-field.mat-focused .mat-select-arrow,.user-theme .mat-toolbar .mat-select-arrow,.user-theme .mat-toolbar .mat-select-value{color:inherit}.user-theme .mat-toolbar .mat-input-element{caret-color:currentColor}.user-theme .mat-tooltip{background:rgba(97,97,97,.9)}.user-theme .mat-tree{background:#fff}.user-theme .mat-nested-tree-node,.user-theme .mat-tree-node{color:rgba(0,0,0,.87)}.user-theme .mat-snack-bar-container{color:hsla(0,0%,100%,.7);background:#323232;box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.user-theme .mat-simple-snackbar-action{color:#43a047}button{border-radius:0!important}button:focus{outline:none!important}td.mat-cell,th{padding:.25rem!important}.page-subtitle{margin-bottom:1rem;font-size:1.5rem}.dark-hover-list-item:hover{background-color:rgba(0,0,0,.05)}.title-icon{font-size:32px}.dialog-container{display:flex;flex-direction:column}.dialog-container>*{width:100%}.loading{min-height:100vh;display:flex;justify-content:center;align-items:center}.book{--color:#000;--duration:6.8s;margin:32px 0 0;zoom:1.5}.book,.book .inner{width:32px;height:12px;position:relative}.book .inner{transform-origin:2px 2px;transform:rotate(-90deg);animation:book var(--duration) ease infinite}.book .inner .left,.book .inner .right{width:60px;height:4px;top:0;border-radius:2px;background:var(--color);position:absolute}.book .inner .left:before,.book .inner .right:before{content:"";width:48px;height:4px;border-radius:2px;background:inherit;position:absolute;top:-10px;left:6px}.book .inner .left{right:28px;transform-origin:58px 2px;transform:rotate(90deg);animation:left var(--duration) ease infinite}.book .inner .right{left:28px;transform-origin:2px 2px;transform:rotate(-90deg);animation:right var(--duration) ease infinite}.book .inner .middle{width:32px;height:12px;border:4px solid var(--color);border-top:0;border-radius:0 0 9px 9px;transform:translateY(2px)}.book ul{margin:0;padding:0;list-style:none;position:absolute;left:50%;top:0}.book ul li{height:4px;border-radius:2px;transform-origin:100% 2px;width:48px;right:0;top:-10px;position:absolute;background:var(--color);transform:rotate(0deg) translateX(-18px);animation-duration:var(--duration);animation-timing-function:ease;animation-iteration-count:infinite}.book ul li:nth-child(0){animation-name:page-0}.book ul li:first-child{animation-name:page-1}.book ul li:nth-child(2){animation-name:page-2}.book ul li:nth-child(3){animation-name:page-3}.book ul li:nth-child(4){animation-name:page-4}.book ul li:nth-child(5){animation-name:page-5}.book ul li:nth-child(6){animation-name:page-6}.book ul li:nth-child(7){animation-name:page-7}.book ul li:nth-child(8){animation-name:page-8}.book ul li:nth-child(9){animation-name:page-9}.book ul li:nth-child(10){animation-name:page-10}.book ul li:nth-child(11){animation-name:page-11}.book ul li:nth-child(12){animation-name:page-12}.book ul li:nth-child(13){animation-name:page-13}.book ul li:nth-child(14){animation-name:page-14}.book ul li:nth-child(15){animation-name:page-15}.book ul li:nth-child(16){animation-name:page-16}.book ul li:nth-child(17){animation-name:page-17}.book ul li:nth-child(18){animation-name:page-18}@keyframes page-0{4%{transform:rotate(0deg) translateX(-18px)}13%,54%{transform:rotate(180deg) translateX(-18px)}63%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-1{5.86%{transform:rotate(0deg) translateX(-18px)}14.74%,55.86%{transform:rotate(180deg) translateX(-18px)}64.74%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-2{7.72%{transform:rotate(0deg) translateX(-18px)}16.48%,57.72%{transform:rotate(180deg) translateX(-18px)}66.48%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-3{9.58%{transform:rotate(0deg) translateX(-18px)}18.22%,59.58%{transform:rotate(180deg) translateX(-18px)}68.22%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-4{11.44%{transform:rotate(0deg) translateX(-18px)}19.96%,61.44%{transform:rotate(180deg) translateX(-18px)}69.96%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-5{13.3%{transform:rotate(0deg) translateX(-18px)}21.7%,63.3%{transform:rotate(180deg) translateX(-18px)}71.7%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-6{15.16%{transform:rotate(0deg) translateX(-18px)}23.44%,65.16%{transform:rotate(180deg) translateX(-18px)}73.44%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-7{17.02%{transform:rotate(0deg) translateX(-18px)}25.18%,67.02%{transform:rotate(180deg) translateX(-18px)}75.18%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-8{18.88%{transform:rotate(0deg) translateX(-18px)}26.92%,68.88%{transform:rotate(180deg) translateX(-18px)}76.92%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-9{20.74%{transform:rotate(0deg) translateX(-18px)}28.66%,70.74%{transform:rotate(180deg) translateX(-18px)}78.66%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-10{22.6%{transform:rotate(0deg) translateX(-18px)}30.4%,72.6%{transform:rotate(180deg) translateX(-18px)}80.4%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-11{24.46%{transform:rotate(0deg) translateX(-18px)}32.14%,74.46%{transform:rotate(180deg) translateX(-18px)}82.14%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-12{26.32%{transform:rotate(0deg) translateX(-18px)}33.88%,76.32%{transform:rotate(180deg) translateX(-18px)}83.88%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-13{28.18%{transform:rotate(0deg) translateX(-18px)}35.62%,78.18%{transform:rotate(180deg) translateX(-18px)}85.62%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-14{30.04%{transform:rotate(0deg) translateX(-18px)}37.36%,80.04%{transform:rotate(180deg) translateX(-18px)}87.36%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-15{31.9%{transform:rotate(0deg) translateX(-18px)}39.1%,81.9%{transform:rotate(180deg) translateX(-18px)}89.1%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-16{33.76%{transform:rotate(0deg) translateX(-18px)}40.84%,83.76%{transform:rotate(180deg) translateX(-18px)}90.84%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-17{35.62%{transform:rotate(0deg) translateX(-18px)}42.58%,85.62%{transform:rotate(180deg) translateX(-18px)}92.58%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-18{37.48%{transform:rotate(0deg) translateX(-18px)}44.32%,87.48%{transform:rotate(180deg) translateX(-18px)}94.32%{transform:rotate(0deg) translateX(-18px)}}@keyframes left{4%{transform:rotate(0deg)}10%,40%{transform:rotate(0deg)}46%,54%{transform:rotate(90deg)}60%,90%{transform:rotate(0deg)}96%{transform:rotate(90deg)}}@keyframes right{4%{transform:rotate(0deg)}10%,40%{transform:rotate(0deg)}46%,54%{transform:rotate(-90deg)}60%,90%{transform:rotate(0deg)}96%{transform:rotate(-90deg)}}@keyframes book{4%{transform:rotate(0deg)}10%,40%{transform:rotate(0deg);transform-origin:2px 2px}40.01%,59.99%{transform-origin:30px 2px}46%,54%{transform:rotate(90deg)}60%,90%{transform:rotate(0deg);transform-origin:2px 2px}96%{transform:rotate(-90deg)}}.action-button:after{content:"…"} + /*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator,.mat-mdc-focus-indicator{position:relative}.mat-ripple-element{background-color:rgba(0,0,0,.1)}.mat-option{color:rgba(0,0,0,.87)}.mat-option.mat-active,.mat-option.mat-selected:not(.mat-option-multiple):not(.mat-option-disabled),.mat-option:focus:not(.mat-option-disabled),.mat-option:hover:not(.mat-option-disabled){background:rgba(0,0,0,.04)}.mat-option.mat-active{color:rgba(0,0,0,.87)}.mat-option.mat-option-disabled{color:rgba(0,0,0,.38)}.mat-primary .mat-option.mat-selected:not(.mat-option-disabled){color:#212121}.mat-accent .mat-option.mat-selected:not(.mat-option-disabled){color:#43a047}.mat-warn .mat-option.mat-selected:not(.mat-option-disabled){color:#f44336}.mat-optgroup-label{color:rgba(0,0,0,.54)}.mat-optgroup-disabled .mat-optgroup-label{color:rgba(0,0,0,.38)}.mat-pseudo-checkbox{color:rgba(0,0,0,.54)}.mat-pseudo-checkbox:after{color:#fafafa}.mat-pseudo-checkbox-disabled{color:#b0b0b0}.mat-primary .mat-pseudo-checkbox-checked,.mat-primary .mat-pseudo-checkbox-indeterminate{background:#212121}.mat-accent .mat-pseudo-checkbox-checked,.mat-accent .mat-pseudo-checkbox-indeterminate,.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-indeterminate{background:#43a047}.mat-warn .mat-pseudo-checkbox-checked,.mat-warn .mat-pseudo-checkbox-indeterminate{background:#f44336}.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background:#b0b0b0}.mat-app-background{background-color:#fafafa;color:rgba(0,0,0,.87)}.mat-elevation-z0{box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-elevation-z1{box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.mat-elevation-z2{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-elevation-z3{box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12)}.mat-elevation-z4{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.mat-elevation-z5{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 5px 8px 0 rgba(0,0,0,.14),0 1px 14px 0 rgba(0,0,0,.12)}.mat-elevation-z6{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-elevation-z7{box-shadow:0 4px 5px -2px rgba(0,0,0,.2),0 7px 10px 1px rgba(0,0,0,.14),0 2px 16px 1px rgba(0,0,0,.12)}.mat-elevation-z8{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.mat-elevation-z9{box-shadow:0 5px 6px -3px rgba(0,0,0,.2),0 9px 12px 1px rgba(0,0,0,.14),0 3px 16px 2px rgba(0,0,0,.12)}.mat-elevation-z10{box-shadow:0 6px 6px -3px rgba(0,0,0,.2),0 10px 14px 1px rgba(0,0,0,.14),0 4px 18px 3px rgba(0,0,0,.12)}.mat-elevation-z11{box-shadow:0 6px 7px -4px rgba(0,0,0,.2),0 11px 15px 1px rgba(0,0,0,.14),0 4px 20px 3px rgba(0,0,0,.12)}.mat-elevation-z12{box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.mat-elevation-z13{box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 13px 19px 2px rgba(0,0,0,.14),0 5px 24px 4px rgba(0,0,0,.12)}.mat-elevation-z14{box-shadow:0 7px 9px -4px rgba(0,0,0,.2),0 14px 21px 2px rgba(0,0,0,.14),0 5px 26px 4px rgba(0,0,0,.12)}.mat-elevation-z15{box-shadow:0 8px 9px -5px rgba(0,0,0,.2),0 15px 22px 2px rgba(0,0,0,.14),0 6px 28px 5px rgba(0,0,0,.12)}.mat-elevation-z16{box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12)}.mat-elevation-z17{box-shadow:0 8px 11px -5px rgba(0,0,0,.2),0 17px 26px 2px rgba(0,0,0,.14),0 6px 32px 5px rgba(0,0,0,.12)}.mat-elevation-z18{box-shadow:0 9px 11px -5px rgba(0,0,0,.2),0 18px 28px 2px rgba(0,0,0,.14),0 7px 34px 6px rgba(0,0,0,.12)}.mat-elevation-z19{box-shadow:0 9px 12px -6px rgba(0,0,0,.2),0 19px 29px 2px rgba(0,0,0,.14),0 7px 36px 6px rgba(0,0,0,.12)}.mat-elevation-z20{box-shadow:0 10px 13px -6px rgba(0,0,0,.2),0 20px 31px 3px rgba(0,0,0,.14),0 8px 38px 7px rgba(0,0,0,.12)}.mat-elevation-z21{box-shadow:0 10px 13px -6px rgba(0,0,0,.2),0 21px 33px 3px rgba(0,0,0,.14),0 8px 40px 7px rgba(0,0,0,.12)}.mat-elevation-z22{box-shadow:0 10px 14px -6px rgba(0,0,0,.2),0 22px 35px 3px rgba(0,0,0,.14),0 8px 42px 7px rgba(0,0,0,.12)}.mat-elevation-z23{box-shadow:0 11px 14px -7px rgba(0,0,0,.2),0 23px 36px 3px rgba(0,0,0,.14),0 9px 44px 8px rgba(0,0,0,.12)}.mat-elevation-z24{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12)}.mat-autocomplete-panel{background:#fff;color:rgba(0,0,0,.87)}.mat-autocomplete-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.mat-autocomplete-panel .mat-option.mat-selected:not(.mat-active):not(:hover){background:#fff}.mat-autocomplete-panel .mat-option.mat-selected:not(.mat-active):not(:hover):not(.mat-option-disabled){color:rgba(0,0,0,.87)}.mat-badge-content{color:#fff;background:#212121}.cdk-high-contrast-active .mat-badge-content{outline:1px solid;border-radius:0}.mat-badge-accent .mat-badge-content{background:#43a047;color:#fff}.mat-badge-warn .mat-badge-content{color:#fff;background:#f44336}.mat-badge{position:relative}.mat-badge-hidden .mat-badge-content{display:none}.mat-badge-disabled .mat-badge-content{background:#b9b9b9;color:rgba(0,0,0,.38)}.mat-badge-content{position:absolute;text-align:center;display:inline-block;border-radius:50%;transition:transform .2s ease-in-out;transform:scale(.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;pointer-events:none}.mat-badge-content._mat-animation-noopable,.ng-animate-disabled .mat-badge-content{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:16px;height:16px;line-height:16px}.mat-badge-small.mat-badge-above .mat-badge-content{top:-8px}.mat-badge-small.mat-badge-below .mat-badge-content{bottom:-8px}.mat-badge-small.mat-badge-before .mat-badge-content{left:-16px}[dir=rtl] .mat-badge-small.mat-badge-before .mat-badge-content{left:auto;right:-16px}.mat-badge-small.mat-badge-after .mat-badge-content{right:-16px}[dir=rtl] .mat-badge-small.mat-badge-after .mat-badge-content{right:auto;left:-16px}.mat-badge-small.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-8px}[dir=rtl] .mat-badge-small.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-8px}.mat-badge-small.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-8px}[dir=rtl] .mat-badge-small.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-8px}.mat-badge-medium .mat-badge-content{width:22px;height:22px;line-height:22px}.mat-badge-medium.mat-badge-above .mat-badge-content{top:-11px}.mat-badge-medium.mat-badge-below .mat-badge-content{bottom:-11px}.mat-badge-medium.mat-badge-before .mat-badge-content{left:-22px}[dir=rtl] .mat-badge-medium.mat-badge-before .mat-badge-content{left:auto;right:-22px}.mat-badge-medium.mat-badge-after .mat-badge-content{right:-22px}[dir=rtl] .mat-badge-medium.mat-badge-after .mat-badge-content{right:auto;left:-22px}.mat-badge-medium.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-11px}[dir=rtl] .mat-badge-medium.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-11px}.mat-badge-medium.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-11px}[dir=rtl] .mat-badge-medium.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-11px}.mat-badge-large .mat-badge-content{width:28px;height:28px;line-height:28px}.mat-badge-large.mat-badge-above .mat-badge-content{top:-14px}.mat-badge-large.mat-badge-below .mat-badge-content{bottom:-14px}.mat-badge-large.mat-badge-before .mat-badge-content{left:-28px}[dir=rtl] .mat-badge-large.mat-badge-before .mat-badge-content{left:auto;right:-28px}.mat-badge-large.mat-badge-after .mat-badge-content{right:-28px}[dir=rtl] .mat-badge-large.mat-badge-after .mat-badge-content{right:auto;left:-28px}.mat-badge-large.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-14px}[dir=rtl] .mat-badge-large.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-14px}.mat-badge-large.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-14px}[dir=rtl] .mat-badge-large.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-14px}.mat-bottom-sheet-container{box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12);background:#fff;color:rgba(0,0,0,.87)}.mat-button,.mat-icon-button,.mat-stroked-button{color:inherit;background:transparent}.mat-button.mat-primary,.mat-icon-button.mat-primary,.mat-stroked-button.mat-primary{color:#212121}.mat-button.mat-accent,.mat-icon-button.mat-accent,.mat-stroked-button.mat-accent{color:#43a047}.mat-button.mat-warn,.mat-icon-button.mat-warn,.mat-stroked-button.mat-warn{color:#f44336}.mat-button.mat-accent.mat-button-disabled,.mat-button.mat-button-disabled.mat-button-disabled,.mat-button.mat-primary.mat-button-disabled,.mat-button.mat-warn.mat-button-disabled,.mat-icon-button.mat-accent.mat-button-disabled,.mat-icon-button.mat-button-disabled.mat-button-disabled,.mat-icon-button.mat-primary.mat-button-disabled,.mat-icon-button.mat-warn.mat-button-disabled,.mat-stroked-button.mat-accent.mat-button-disabled,.mat-stroked-button.mat-button-disabled.mat-button-disabled,.mat-stroked-button.mat-primary.mat-button-disabled,.mat-stroked-button.mat-warn.mat-button-disabled{color:rgba(0,0,0,.26)}.mat-button.mat-primary .mat-button-focus-overlay,.mat-icon-button.mat-primary .mat-button-focus-overlay,.mat-stroked-button.mat-primary .mat-button-focus-overlay{background-color:#212121}.mat-button.mat-accent .mat-button-focus-overlay,.mat-icon-button.mat-accent .mat-button-focus-overlay,.mat-stroked-button.mat-accent .mat-button-focus-overlay{background-color:#43a047}.mat-button.mat-warn .mat-button-focus-overlay,.mat-icon-button.mat-warn .mat-button-focus-overlay,.mat-stroked-button.mat-warn .mat-button-focus-overlay{background-color:#f44336}.mat-button.mat-button-disabled .mat-button-focus-overlay,.mat-icon-button.mat-button-disabled .mat-button-focus-overlay,.mat-stroked-button.mat-button-disabled .mat-button-focus-overlay{background-color:transparent}.mat-button .mat-ripple-element,.mat-icon-button .mat-ripple-element,.mat-stroked-button .mat-ripple-element{opacity:.1;background-color:currentColor}.mat-button-focus-overlay{background:#000}.mat-stroked-button:not(.mat-button-disabled){border-color:rgba(0,0,0,.12)}.mat-fab,.mat-flat-button,.mat-mini-fab,.mat-raised-button{color:rgba(0,0,0,.87);background-color:#fff}.mat-fab.mat-accent,.mat-fab.mat-primary,.mat-fab.mat-warn,.mat-flat-button.mat-accent,.mat-flat-button.mat-primary,.mat-flat-button.mat-warn,.mat-mini-fab.mat-accent,.mat-mini-fab.mat-primary,.mat-mini-fab.mat-warn,.mat-raised-button.mat-accent,.mat-raised-button.mat-primary,.mat-raised-button.mat-warn{color:#fff}.mat-fab.mat-accent.mat-button-disabled,.mat-fab.mat-button-disabled.mat-button-disabled,.mat-fab.mat-primary.mat-button-disabled,.mat-fab.mat-warn.mat-button-disabled,.mat-flat-button.mat-accent.mat-button-disabled,.mat-flat-button.mat-button-disabled.mat-button-disabled,.mat-flat-button.mat-primary.mat-button-disabled,.mat-flat-button.mat-warn.mat-button-disabled,.mat-mini-fab.mat-accent.mat-button-disabled,.mat-mini-fab.mat-button-disabled.mat-button-disabled,.mat-mini-fab.mat-primary.mat-button-disabled,.mat-mini-fab.mat-warn.mat-button-disabled,.mat-raised-button.mat-accent.mat-button-disabled,.mat-raised-button.mat-button-disabled.mat-button-disabled,.mat-raised-button.mat-primary.mat-button-disabled,.mat-raised-button.mat-warn.mat-button-disabled{color:rgba(0,0,0,.26)}.mat-fab.mat-primary,.mat-flat-button.mat-primary,.mat-mini-fab.mat-primary,.mat-raised-button.mat-primary{background-color:#212121}.mat-fab.mat-accent,.mat-flat-button.mat-accent,.mat-mini-fab.mat-accent,.mat-raised-button.mat-accent{background-color:#43a047}.mat-fab.mat-warn,.mat-flat-button.mat-warn,.mat-mini-fab.mat-warn,.mat-raised-button.mat-warn{background-color:#f44336}.mat-fab.mat-accent.mat-button-disabled,.mat-fab.mat-button-disabled.mat-button-disabled,.mat-fab.mat-primary.mat-button-disabled,.mat-fab.mat-warn.mat-button-disabled,.mat-flat-button.mat-accent.mat-button-disabled,.mat-flat-button.mat-button-disabled.mat-button-disabled,.mat-flat-button.mat-primary.mat-button-disabled,.mat-flat-button.mat-warn.mat-button-disabled,.mat-mini-fab.mat-accent.mat-button-disabled,.mat-mini-fab.mat-button-disabled.mat-button-disabled,.mat-mini-fab.mat-primary.mat-button-disabled,.mat-mini-fab.mat-warn.mat-button-disabled,.mat-raised-button.mat-accent.mat-button-disabled,.mat-raised-button.mat-button-disabled.mat-button-disabled,.mat-raised-button.mat-primary.mat-button-disabled,.mat-raised-button.mat-warn.mat-button-disabled{background-color:rgba(0,0,0,.12)}.mat-fab.mat-accent .mat-ripple-element,.mat-fab.mat-primary .mat-ripple-element,.mat-fab.mat-warn .mat-ripple-element,.mat-flat-button.mat-accent .mat-ripple-element,.mat-flat-button.mat-primary .mat-ripple-element,.mat-flat-button.mat-warn .mat-ripple-element,.mat-mini-fab.mat-accent .mat-ripple-element,.mat-mini-fab.mat-primary .mat-ripple-element,.mat-mini-fab.mat-warn .mat-ripple-element,.mat-raised-button.mat-accent .mat-ripple-element,.mat-raised-button.mat-primary .mat-ripple-element,.mat-raised-button.mat-warn .mat-ripple-element{background-color:hsla(0,0%,100%,.1)}.mat-flat-button:not([class*=mat-elevation-z]),.mat-stroked-button:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-raised-button:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-raised-button:not(.mat-button-disabled):active:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.mat-raised-button.mat-button-disabled:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-fab:not([class*=mat-elevation-z]),.mat-mini-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-fab:not(.mat-button-disabled):active:not([class*=mat-elevation-z]),.mat-mini-fab:not(.mat-button-disabled):active:not([class*=mat-elevation-z]){box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.mat-fab.mat-button-disabled:not([class*=mat-elevation-z]),.mat-mini-fab.mat-button-disabled:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-button-toggle-group,.mat-button-toggle-standalone{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-button-toggle-group-appearance-standard,.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{box-shadow:none}.mat-button-toggle{color:rgba(0,0,0,.38)}.mat-button-toggle .mat-button-toggle-focus-overlay{background-color:rgba(0,0,0,.12)}.mat-button-toggle-appearance-standard{color:rgba(0,0,0,.87);background:#fff}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:#000}.mat-button-toggle-group-appearance-standard .mat-button-toggle+.mat-button-toggle{border-left:1px solid rgba(0,0,0,.12)}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle+.mat-button-toggle{border-left:none;border-right:1px solid rgba(0,0,0,.12)}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle+.mat-button-toggle{border-left:none;border-right:none;border-top:1px solid rgba(0,0,0,.12)}.mat-button-toggle-checked{background-color:#e0e0e0;color:rgba(0,0,0,.54)}.mat-button-toggle-checked.mat-button-toggle-appearance-standard{color:rgba(0,0,0,.87)}.mat-button-toggle-disabled{color:rgba(0,0,0,.26);background-color:#eee}.mat-button-toggle-disabled.mat-button-toggle-appearance-standard{background:#fff}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:#bdbdbd}.mat-button-toggle-group-appearance-standard,.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{border:1px solid rgba(0,0,0,.12)}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{line-height:48px}.mat-card{background:#fff;color:rgba(0,0,0,.87)}.mat-card:not([class*=mat-elevation-z]){box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.mat-card.mat-card-flat:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-card-subtitle{color:rgba(0,0,0,.54)}.mat-checkbox-frame{border-color:rgba(0,0,0,.54)}.mat-checkbox-checkmark{fill:#fafafa}.mat-checkbox-checkmark-path{stroke:#fafafa!important}.mat-checkbox-mixedmark{background-color:#fafafa}.mat-checkbox-checked.mat-primary .mat-checkbox-background,.mat-checkbox-indeterminate.mat-primary .mat-checkbox-background{background-color:#212121}.mat-checkbox-checked.mat-accent .mat-checkbox-background,.mat-checkbox-indeterminate.mat-accent .mat-checkbox-background{background-color:#43a047}.mat-checkbox-checked.mat-warn .mat-checkbox-background,.mat-checkbox-indeterminate.mat-warn .mat-checkbox-background{background-color:#f44336}.mat-checkbox-disabled.mat-checkbox-checked .mat-checkbox-background,.mat-checkbox-disabled.mat-checkbox-indeterminate .mat-checkbox-background{background-color:#b0b0b0}.mat-checkbox-disabled:not(.mat-checkbox-checked) .mat-checkbox-frame{border-color:#b0b0b0}.mat-checkbox-disabled .mat-checkbox-label{color:rgba(0,0,0,.54)}.mat-checkbox .mat-ripple-element{background-color:#000}.mat-checkbox-checked:not(.mat-checkbox-disabled).mat-primary .mat-ripple-element,.mat-checkbox:active:not(.mat-checkbox-disabled).mat-primary .mat-ripple-element{background:#212121}.mat-checkbox-checked:not(.mat-checkbox-disabled).mat-accent .mat-ripple-element,.mat-checkbox:active:not(.mat-checkbox-disabled).mat-accent .mat-ripple-element{background:#43a047}.mat-checkbox-checked:not(.mat-checkbox-disabled).mat-warn .mat-ripple-element,.mat-checkbox:active:not(.mat-checkbox-disabled).mat-warn .mat-ripple-element{background:#f44336}.mat-chip.mat-standard-chip{background-color:#e0e0e0;color:rgba(0,0,0,.87)}.mat-chip.mat-standard-chip .mat-chip-remove{color:rgba(0,0,0,.87);opacity:.4}.mat-chip.mat-standard-chip:not(.mat-chip-disabled):active{box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12)}.mat-chip.mat-standard-chip:not(.mat-chip-disabled) .mat-chip-remove:hover{opacity:.54}.mat-chip.mat-standard-chip.mat-chip-disabled{opacity:.4}.mat-chip.mat-standard-chip:after{background:#000}.mat-chip.mat-standard-chip.mat-chip-selected.mat-primary{background-color:#212121;color:#fff}.mat-chip.mat-standard-chip.mat-chip-selected.mat-primary .mat-chip-remove{color:#fff;opacity:.4}.mat-chip.mat-standard-chip.mat-chip-selected.mat-primary .mat-ripple-element{background-color:hsla(0,0%,100%,.1)}.mat-chip.mat-standard-chip.mat-chip-selected.mat-warn{background-color:#f44336;color:#fff}.mat-chip.mat-standard-chip.mat-chip-selected.mat-warn .mat-chip-remove{color:#fff;opacity:.4}.mat-chip.mat-standard-chip.mat-chip-selected.mat-warn .mat-ripple-element{background-color:hsla(0,0%,100%,.1)}.mat-chip.mat-standard-chip.mat-chip-selected.mat-accent{background-color:#43a047;color:#fff}.mat-chip.mat-standard-chip.mat-chip-selected.mat-accent .mat-chip-remove{color:#fff;opacity:.4}.mat-chip.mat-standard-chip.mat-chip-selected.mat-accent .mat-ripple-element{background-color:hsla(0,0%,100%,.1)}.mat-table{background:#fff}.mat-table-sticky,.mat-table tbody,.mat-table tfoot,.mat-table thead,[mat-footer-row],[mat-header-row],[mat-row],mat-footer-row,mat-header-row,mat-row{background:inherit}mat-footer-row,mat-header-row,mat-row,td.mat-cell,td.mat-footer-cell,th.mat-header-cell{border-bottom-color:rgba(0,0,0,.12)}.mat-header-cell{color:rgba(0,0,0,.54)}.mat-cell,.mat-footer-cell{color:rgba(0,0,0,.87)}.mat-calendar-arrow{border-top-color:rgba(0,0,0,.54)}.mat-datepicker-content .mat-calendar-next-button,.mat-datepicker-content .mat-calendar-previous-button,.mat-datepicker-toggle{color:rgba(0,0,0,.54)}.mat-calendar-table-header{color:rgba(0,0,0,.38)}.mat-calendar-table-header-divider:after{background:rgba(0,0,0,.12)}.mat-calendar-body-label{color:rgba(0,0,0,.54)}.mat-calendar-body-cell-content,.mat-date-range-input-separator{color:rgba(0,0,0,.87);border-color:transparent}.mat-calendar-body-disabled>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.mat-form-field-disabled .mat-date-range-input-separator{color:rgba(0,0,0,.38)}.mat-calendar-body-in-preview{color:rgba(0,0,0,.24)}.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:rgba(0,0,0,.38)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:rgba(0,0,0,.18)}.mat-calendar-body-in-range:before{background:rgba(33,33,33,.2)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range:before{background:rgba(249,171,0,.2)}.mat-calendar-body-comparison-bridge-start:before,[dir=rtl] .mat-calendar-body-comparison-bridge-end:before{background:linear-gradient(90deg,rgba(33,33,33,.2) 50%,rgba(249,171,0,.2) 0)}.mat-calendar-body-comparison-bridge-end:before,[dir=rtl] .mat-calendar-body-comparison-bridge-start:before{background:linear-gradient(270deg,rgba(33,33,33,.2) 50%,rgba(249,171,0,.2) 0)}.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range:after,.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical{background:#a8dab5}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:#46a35e}.mat-calendar-body-selected{background-color:#212121;color:#fff}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(33,33,33,.4)}.mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:rgba(33,33,33,.3)}.mat-datepicker-content{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12);background-color:#fff;color:rgba(0,0,0,.87)}.mat-datepicker-content.mat-accent .mat-calendar-body-in-range:before{background:rgba(67,160,71,.2)}.mat-datepicker-content.mat-accent .mat-calendar-body-comparison-identical,.mat-datepicker-content.mat-accent .mat-calendar-body-in-comparison-range:before{background:rgba(249,171,0,.2)}.mat-datepicker-content.mat-accent .mat-calendar-body-comparison-bridge-start:before,.mat-datepicker-content.mat-accent [dir=rtl] .mat-calendar-body-comparison-bridge-end:before{background:linear-gradient(90deg,rgba(67,160,71,.2) 50%,rgba(249,171,0,.2) 0)}.mat-datepicker-content.mat-accent .mat-calendar-body-comparison-bridge-end:before,.mat-datepicker-content.mat-accent [dir=rtl] .mat-calendar-body-comparison-bridge-start:before{background:linear-gradient(270deg,rgba(67,160,71,.2) 50%,rgba(249,171,0,.2) 0)}.mat-datepicker-content.mat-accent .mat-calendar-body-in-comparison-range.mat-calendar-body-in-range:after,.mat-datepicker-content.mat-accent .mat-calendar-body-in-range>.mat-calendar-body-comparison-identical{background:#a8dab5}.mat-datepicker-content.mat-accent .mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-datepicker-content.mat-accent .mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:#46a35e}.mat-datepicker-content.mat-accent .mat-calendar-body-selected{background-color:#43a047;color:#fff}.mat-datepicker-content.mat-accent .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(67,160,71,.4)}.mat-datepicker-content.mat-accent .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.mat-datepicker-content.mat-accent .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.mat-datepicker-content.mat-accent .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.mat-datepicker-content.mat-accent .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:rgba(67,160,71,.3)}.mat-datepicker-content.mat-warn .mat-calendar-body-in-range:before{background:rgba(244,67,54,.2)}.mat-datepicker-content.mat-warn .mat-calendar-body-comparison-identical,.mat-datepicker-content.mat-warn .mat-calendar-body-in-comparison-range:before{background:rgba(249,171,0,.2)}.mat-datepicker-content.mat-warn .mat-calendar-body-comparison-bridge-start:before,.mat-datepicker-content.mat-warn [dir=rtl] .mat-calendar-body-comparison-bridge-end:before{background:linear-gradient(90deg,rgba(244,67,54,.2) 50%,rgba(249,171,0,.2) 0)}.mat-datepicker-content.mat-warn .mat-calendar-body-comparison-bridge-end:before,.mat-datepicker-content.mat-warn [dir=rtl] .mat-calendar-body-comparison-bridge-start:before{background:linear-gradient(270deg,rgba(244,67,54,.2) 50%,rgba(249,171,0,.2) 0)}.mat-datepicker-content.mat-warn .mat-calendar-body-in-comparison-range.mat-calendar-body-in-range:after,.mat-datepicker-content.mat-warn .mat-calendar-body-in-range>.mat-calendar-body-comparison-identical{background:#a8dab5}.mat-datepicker-content.mat-warn .mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-datepicker-content.mat-warn .mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:#46a35e}.mat-datepicker-content.mat-warn .mat-calendar-body-selected{background-color:#f44336;color:#fff}.mat-datepicker-content.mat-warn .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(244,67,54,.4)}.mat-datepicker-content.mat-warn .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.mat-datepicker-content.mat-warn .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.mat-datepicker-content.mat-warn .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.mat-datepicker-content.mat-warn .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:rgba(244,67,54,.3)}.mat-datepicker-content-touch{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12)}.mat-datepicker-toggle-active{color:#212121}.mat-datepicker-toggle-active.mat-accent{color:#43a047}.mat-datepicker-toggle-active.mat-warn{color:#f44336}.mat-date-range-input-inner[disabled]{color:rgba(0,0,0,.38)}.mat-dialog-container{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);background:#fff;color:rgba(0,0,0,.87)}.mat-divider{border-top-color:rgba(0,0,0,.12)}.mat-divider-vertical{border-right-color:rgba(0,0,0,.12)}.mat-expansion-panel{background:#fff;color:rgba(0,0,0,.87)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-action-row{border-top-color:rgba(0,0,0,.12)}.mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true]),.mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true]),.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true]){background:rgba(0,0,0,.04)}@media (hover:none){.mat-expansion-panel:not(.mat-expanded):not([aria-disabled=true]) .mat-expansion-panel-header:hover{background:#fff}}.mat-expansion-panel-header-title{color:rgba(0,0,0,.87)}.mat-expansion-indicator:after,.mat-expansion-panel-header-description{color:rgba(0,0,0,.54)}.mat-expansion-panel-header[aria-disabled=true]{color:rgba(0,0,0,.26)}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title{color:inherit}.mat-expansion-panel-header{height:48px}.mat-expansion-panel-header.mat-expanded{height:64px}.mat-form-field-label,.mat-hint{color:rgba(0,0,0,.6)}.mat-form-field.mat-focused .mat-form-field-label{color:#212121}.mat-form-field.mat-focused .mat-form-field-label.mat-accent{color:#43a047}.mat-form-field.mat-focused .mat-form-field-label.mat-warn{color:#f44336}.mat-focused .mat-form-field-required-marker{color:#43a047}.mat-form-field-ripple{background-color:rgba(0,0,0,.87)}.mat-form-field.mat-focused .mat-form-field-ripple{background-color:#212121}.mat-form-field.mat-focused .mat-form-field-ripple.mat-accent{background-color:#43a047}.mat-form-field.mat-focused .mat-form-field-ripple.mat-warn{background-color:#f44336}.mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid) .mat-form-field-infix:after{color:#212121}.mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid).mat-accent .mat-form-field-infix:after{color:#43a047}.mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid).mat-warn .mat-form-field-infix:after,.mat-form-field.mat-form-field-invalid .mat-form-field-label,.mat-form-field.mat-form-field-invalid .mat-form-field-label.mat-accent,.mat-form-field.mat-form-field-invalid .mat-form-field-label .mat-form-field-required-marker{color:#f44336}.mat-form-field.mat-form-field-invalid .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple.mat-accent{background-color:#f44336}.mat-error{color:#f44336}.mat-form-field-appearance-legacy .mat-form-field-label,.mat-form-field-appearance-legacy .mat-hint{color:rgba(0,0,0,.54)}.mat-form-field-appearance-legacy .mat-form-field-underline{background-color:rgba(0,0,0,.42)}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-image:linear-gradient(90deg,rgba(0,0,0,.42) 0,rgba(0,0,0,.42) 33%,transparent 0);background-size:4px 100%;background-repeat:repeat-x}.mat-form-field-appearance-standard .mat-form-field-underline{background-color:rgba(0,0,0,.42)}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-image:linear-gradient(90deg,rgba(0,0,0,.42) 0,rgba(0,0,0,.42) 33%,transparent 0);background-size:4px 100%;background-repeat:repeat-x}.mat-form-field-appearance-fill .mat-form-field-flex{background-color:rgba(0,0,0,.04)}.mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{background-color:rgba(0,0,0,.02)}.mat-form-field-appearance-fill .mat-form-field-underline:before{background-color:rgba(0,0,0,.42)}.mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-label{color:rgba(0,0,0,.38)}.mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-underline:before{background-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline{color:rgba(0,0,0,.12)}.mat-form-field-appearance-outline .mat-form-field-outline-thick{color:rgba(0,0,0,.87)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{color:#212121}.mat-form-field-appearance-outline.mat-focused.mat-accent .mat-form-field-outline-thick{color:#43a047}.mat-form-field-appearance-outline.mat-focused.mat-warn .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid.mat-form-field-invalid .mat-form-field-outline-thick{color:#f44336}.mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-label{color:rgba(0,0,0,.38)}.mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:rgba(0,0,0,.06)}.mat-icon.mat-primary{color:#212121}.mat-icon.mat-accent{color:#43a047}.mat-icon.mat-warn{color:#f44336}.mat-form-field-type-mat-native-select .mat-form-field-infix:after{color:rgba(0,0,0,.54)}.mat-form-field-type-mat-native-select.mat-form-field-disabled .mat-form-field-infix:after,.mat-input-element:disabled{color:rgba(0,0,0,.38)}.mat-input-element{caret-color:#212121}.mat-input-element::placeholder{color:rgba(0,0,0,.42)}.mat-input-element::-moz-placeholder{color:rgba(0,0,0,.42)}.mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,.42)}.mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,.42)}.mat-form-field.mat-accent .mat-input-element{caret-color:#43a047}.mat-form-field-invalid .mat-input-element,.mat-form-field.mat-warn .mat-input-element{caret-color:#f44336}.mat-form-field-type-mat-native-select.mat-form-field-invalid .mat-form-field-infix:after{color:#f44336}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{color:rgba(0,0,0,.87)}.mat-list-base .mat-subheader{color:rgba(0,0,0,.54)}.mat-list-item-disabled{background-color:#eee}.mat-action-list .mat-list-item:focus,.mat-action-list .mat-list-item:hover,.mat-list-option:focus,.mat-list-option:hover,.mat-nav-list .mat-list-item:focus,.mat-nav-list .mat-list-item:hover{background:rgba(0,0,0,.04)}.mat-list-single-selected-option,.mat-list-single-selected-option:focus,.mat-list-single-selected-option:hover{background:rgba(0,0,0,.12)}.mat-menu-panel{background:#fff}.mat-menu-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.mat-menu-item{background:transparent;color:rgba(0,0,0,.87)}.mat-menu-item[disabled],.mat-menu-item[disabled] .mat-icon-no-color,.mat-menu-item[disabled]:after{color:rgba(0,0,0,.38)}.mat-menu-item-submenu-trigger:after,.mat-menu-item .mat-icon-no-color{color:rgba(0,0,0,.54)}.mat-menu-item-highlighted:not([disabled]),.mat-menu-item.cdk-keyboard-focused:not([disabled]),.mat-menu-item.cdk-program-focused:not([disabled]),.mat-menu-item:hover:not([disabled]){background:rgba(0,0,0,.04)}.mat-paginator{background:#fff}.mat-paginator,.mat-paginator-page-size .mat-select-trigger{color:rgba(0,0,0,.54)}.mat-paginator-decrement,.mat-paginator-increment{border-top:2px solid rgba(0,0,0,.54);border-right:2px solid rgba(0,0,0,.54)}.mat-paginator-first,.mat-paginator-last{border-top:2px solid rgba(0,0,0,.54)}.mat-icon-button[disabled] .mat-paginator-decrement,.mat-icon-button[disabled] .mat-paginator-first,.mat-icon-button[disabled] .mat-paginator-increment,.mat-icon-button[disabled] .mat-paginator-last{border-color:rgba(0,0,0,.38)}.mat-paginator-container{min-height:56px}.mat-progress-bar-background{fill:#c4c4c4}.mat-progress-bar-buffer{background-color:#c4c4c4}.mat-progress-bar-fill:after{background-color:#212121}.mat-progress-bar.mat-accent .mat-progress-bar-background{fill:#cce4cd}.mat-progress-bar.mat-accent .mat-progress-bar-buffer{background-color:#cce4cd}.mat-progress-bar.mat-accent .mat-progress-bar-fill:after{background-color:#43a047}.mat-progress-bar.mat-warn .mat-progress-bar-background{fill:#f9ccc9}.mat-progress-bar.mat-warn .mat-progress-bar-buffer{background-color:#f9ccc9}.mat-progress-bar.mat-warn .mat-progress-bar-fill:after{background-color:#f44336}.mat-progress-spinner circle,.mat-spinner circle{stroke:#212121}.mat-progress-spinner.mat-accent circle,.mat-spinner.mat-accent circle{stroke:#43a047}.mat-progress-spinner.mat-warn circle,.mat-spinner.mat-warn circle{stroke:#f44336}.mat-radio-outer-circle{border-color:rgba(0,0,0,.54)}.mat-radio-button.mat-primary.mat-radio-checked .mat-radio-outer-circle{border-color:#212121}.mat-radio-button.mat-primary.mat-radio-checked .mat-radio-persistent-ripple,.mat-radio-button.mat-primary .mat-radio-inner-circle,.mat-radio-button.mat-primary .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.mat-radio-button.mat-primary:active .mat-radio-persistent-ripple{background-color:#212121}.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:#43a047}.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-persistent-ripple,.mat-radio-button.mat-accent .mat-radio-inner-circle,.mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.mat-radio-button.mat-accent:active .mat-radio-persistent-ripple{background-color:#43a047}.mat-radio-button.mat-warn.mat-radio-checked .mat-radio-outer-circle{border-color:#f44336}.mat-radio-button.mat-warn.mat-radio-checked .mat-radio-persistent-ripple,.mat-radio-button.mat-warn .mat-radio-inner-circle,.mat-radio-button.mat-warn .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.mat-radio-button.mat-warn:active .mat-radio-persistent-ripple{background-color:#f44336}.mat-radio-button.mat-radio-disabled.mat-radio-checked .mat-radio-outer-circle,.mat-radio-button.mat-radio-disabled .mat-radio-outer-circle{border-color:rgba(0,0,0,.38)}.mat-radio-button.mat-radio-disabled .mat-radio-inner-circle,.mat-radio-button.mat-radio-disabled .mat-radio-ripple .mat-ripple-element{background-color:rgba(0,0,0,.38)}.mat-radio-button.mat-radio-disabled .mat-radio-label-content{color:rgba(0,0,0,.38)}.mat-radio-button .mat-ripple-element{background-color:#000}.mat-select-value{color:rgba(0,0,0,.87)}.mat-select-placeholder{color:rgba(0,0,0,.42)}.mat-select-disabled .mat-select-value{color:rgba(0,0,0,.38)}.mat-select-arrow{color:rgba(0,0,0,.54)}.mat-select-panel{background:#fff}.mat-select-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.mat-select-panel .mat-option.mat-selected:not(.mat-option-multiple){background:rgba(0,0,0,.12)}.mat-form-field.mat-focused.mat-primary .mat-select-arrow{color:#212121}.mat-form-field.mat-focused.mat-accent .mat-select-arrow{color:#43a047}.mat-form-field.mat-focused.mat-warn .mat-select-arrow,.mat-form-field .mat-select.mat-select-invalid .mat-select-arrow{color:#f44336}.mat-form-field .mat-select.mat-select-disabled .mat-select-arrow{color:rgba(0,0,0,.38)}.mat-drawer-container{background-color:#fafafa;color:rgba(0,0,0,.87)}.mat-drawer{color:rgba(0,0,0,.87)}.mat-drawer,.mat-drawer.mat-drawer-push{background-color:#fff}.mat-drawer:not(.mat-drawer-side){box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12)}.mat-drawer-side{border-right:1px solid rgba(0,0,0,.12)}.mat-drawer-side.mat-drawer-end,[dir=rtl] .mat-drawer-side{border-left:1px solid rgba(0,0,0,.12);border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-left:none;border-right:1px solid rgba(0,0,0,.12)}.mat-drawer-backdrop.mat-drawer-shown{background-color:rgba(0,0,0,.6)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb{background-color:#43a047}.mat-slide-toggle.mat-checked .mat-slide-toggle-bar{background-color:rgba(67,160,71,.54)}.mat-slide-toggle.mat-checked .mat-ripple-element{background-color:#43a047}.mat-slide-toggle.mat-primary.mat-checked .mat-slide-toggle-thumb{background-color:#212121}.mat-slide-toggle.mat-primary.mat-checked .mat-slide-toggle-bar{background-color:rgba(33,33,33,.54)}.mat-slide-toggle.mat-primary.mat-checked .mat-ripple-element{background-color:#212121}.mat-slide-toggle.mat-warn.mat-checked .mat-slide-toggle-thumb{background-color:#f44336}.mat-slide-toggle.mat-warn.mat-checked .mat-slide-toggle-bar{background-color:rgba(244,67,54,.54)}.mat-slide-toggle.mat-warn.mat-checked .mat-ripple-element{background-color:#f44336}.mat-slide-toggle:not(.mat-checked) .mat-ripple-element{background-color:#000}.mat-slide-toggle-thumb{box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);background-color:#fafafa}.mat-slide-toggle-bar{background-color:rgba(0,0,0,.38)}.mat-slider-track-background{background-color:rgba(0,0,0,.26)}.mat-primary .mat-slider-thumb,.mat-primary .mat-slider-thumb-label,.mat-primary .mat-slider-track-fill{background-color:#212121}.mat-primary .mat-slider-thumb-label-text{color:#fff}.mat-primary .mat-slider-focus-ring{background-color:rgba(33,33,33,.2)}.mat-accent .mat-slider-thumb,.mat-accent .mat-slider-thumb-label,.mat-accent .mat-slider-track-fill{background-color:#43a047}.mat-accent .mat-slider-thumb-label-text{color:#fff}.mat-accent .mat-slider-focus-ring{background-color:rgba(67,160,71,.2)}.mat-warn .mat-slider-thumb,.mat-warn .mat-slider-thumb-label,.mat-warn .mat-slider-track-fill{background-color:#f44336}.mat-warn .mat-slider-thumb-label-text{color:#fff}.mat-warn .mat-slider-focus-ring{background-color:rgba(244,67,54,.2)}.cdk-focused .mat-slider-track-background,.mat-slider:hover .mat-slider-track-background{background-color:rgba(0,0,0,.38)}.mat-slider-disabled .mat-slider-thumb,.mat-slider-disabled .mat-slider-track-background,.mat-slider-disabled .mat-slider-track-fill,.mat-slider-disabled:hover .mat-slider-track-background{background-color:rgba(0,0,0,.26)}.mat-slider-min-value .mat-slider-focus-ring{background-color:rgba(0,0,0,.12)}.mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb,.mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb-label{background-color:rgba(0,0,0,.87)}.mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb,.mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb-label{background-color:rgba(0,0,0,.26)}.mat-slider-min-value:not(.mat-slider-thumb-label-showing) .mat-slider-thumb{border-color:rgba(0,0,0,.26);background-color:transparent}.mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused .mat-slider-thumb,.mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover .mat-slider-thumb{border-color:rgba(0,0,0,.38)}.mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused.mat-slider-disabled .mat-slider-thumb,.mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover.mat-slider-disabled .mat-slider-thumb{border-color:rgba(0,0,0,.26)}.mat-slider-has-ticks .mat-slider-wrapper:after{border-color:rgba(0,0,0,.7)}.mat-slider-horizontal .mat-slider-ticks{background-image:repeating-linear-gradient(90deg,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent);background-image:-moz-repeating-linear-gradient(.0001deg,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent)}.mat-slider-vertical .mat-slider-ticks{background-image:repeating-linear-gradient(180deg,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent)}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused,.mat-step-header:hover{background-color:rgba(0,0,0,.04)}@media (hover:none){.mat-step-header:hover{background:none}}.mat-step-header .mat-step-label,.mat-step-header .mat-step-optional{color:rgba(0,0,0,.54)}.mat-step-header .mat-step-icon{background-color:rgba(0,0,0,.54);color:#fff}.mat-step-header .mat-step-icon-selected,.mat-step-header .mat-step-icon-state-done,.mat-step-header .mat-step-icon-state-edit{background-color:#212121;color:#fff}.mat-step-header.mat-accent .mat-step-icon{color:#fff}.mat-step-header.mat-accent .mat-step-icon-selected,.mat-step-header.mat-accent .mat-step-icon-state-done,.mat-step-header.mat-accent .mat-step-icon-state-edit{background-color:#43a047;color:#fff}.mat-step-header.mat-warn .mat-step-icon{color:#fff}.mat-step-header.mat-warn .mat-step-icon-selected,.mat-step-header.mat-warn .mat-step-icon-state-done,.mat-step-header.mat-warn .mat-step-icon-state-edit{background-color:#f44336;color:#fff}.mat-step-header .mat-step-icon-state-error{background-color:transparent;color:#f44336}.mat-step-header .mat-step-label.mat-step-label-active{color:rgba(0,0,0,.87)}.mat-step-header .mat-step-label.mat-step-label-error{color:#f44336}.mat-stepper-horizontal,.mat-stepper-vertical{background-color:#fff}.mat-stepper-vertical-line:before{border-left-color:rgba(0,0,0,.12)}.mat-horizontal-stepper-header:after,.mat-horizontal-stepper-header:before,.mat-stepper-horizontal-line{border-top-color:rgba(0,0,0,.12)}.mat-horizontal-stepper-header{height:72px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header,.mat-vertical-stepper-header{padding:24px}.mat-stepper-vertical-line:before{top:-16px;bottom:-16px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:after,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:before,.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{top:36px}.mat-sort-header-arrow{color:#757575}.mat-tab-header,.mat-tab-nav-bar{border-bottom:1px solid rgba(0,0,0,.12)}.mat-tab-group-inverted-header .mat-tab-header,.mat-tab-group-inverted-header .mat-tab-nav-bar{border-top:1px solid rgba(0,0,0,.12);border-bottom:none}.mat-tab-label,.mat-tab-link{color:rgba(0,0,0,.87)}.mat-tab-label.mat-tab-disabled,.mat-tab-link.mat-tab-disabled{color:rgba(0,0,0,.38)}.mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.87)}.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.38)}.mat-tab-group[class*=mat-background-] .mat-tab-header,.mat-tab-nav-bar[class*=mat-background-]{border-bottom:none;border-top:none}.mat-tab-group.mat-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:hsla(0,0%,96%,.3)}.mat-tab-group.mat-primary .mat-ink-bar,.mat-tab-nav-bar.mat-primary .mat-ink-bar{background-color:#212121}.mat-tab-group.mat-primary.mat-background-primary>.mat-tab-header .mat-ink-bar,.mat-tab-group.mat-primary.mat-background-primary>.mat-tab-link-container .mat-ink-bar,.mat-tab-nav-bar.mat-primary.mat-background-primary>.mat-tab-header .mat-ink-bar,.mat-tab-nav-bar.mat-primary.mat-background-primary>.mat-tab-link-container .mat-ink-bar{background-color:#fff}.mat-tab-group.mat-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(200,230,201,.3)}.mat-tab-group.mat-accent .mat-ink-bar,.mat-tab-nav-bar.mat-accent .mat-ink-bar{background-color:#43a047}.mat-tab-group.mat-accent.mat-background-accent>.mat-tab-header .mat-ink-bar,.mat-tab-group.mat-accent.mat-background-accent>.mat-tab-link-container .mat-ink-bar,.mat-tab-nav-bar.mat-accent.mat-background-accent>.mat-tab-header .mat-ink-bar,.mat-tab-nav-bar.mat-accent.mat-background-accent>.mat-tab-link-container .mat-ink-bar{background-color:#fff}.mat-tab-group.mat-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,205,210,.3)}.mat-tab-group.mat-warn .mat-ink-bar,.mat-tab-nav-bar.mat-warn .mat-ink-bar{background-color:#f44336}.mat-tab-group.mat-warn.mat-background-warn>.mat-tab-header .mat-ink-bar,.mat-tab-group.mat-warn.mat-background-warn>.mat-tab-link-container .mat-ink-bar,.mat-tab-nav-bar.mat-warn.mat-background-warn>.mat-tab-header .mat-ink-bar,.mat-tab-nav-bar.mat-warn.mat-background-warn>.mat-tab-link-container .mat-ink-bar{background-color:#fff}.mat-tab-group.mat-background-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:hsla(0,0%,96%,.3)}.mat-tab-group.mat-background-primary>.mat-tab-header,.mat-tab-group.mat-background-primary>.mat-tab-header-pagination,.mat-tab-group.mat-background-primary>.mat-tab-link-container,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination,.mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container{background-color:#212121}.mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-label,.mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-tab-link,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-label,.mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-tab-link{color:#fff}.mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-tab-link.mat-tab-disabled{color:hsla(0,0%,100%,.4)}.mat-tab-group.mat-background-primary>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-primary>.mat-tab-header .mat-focus-indicator:before,.mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-focus-indicator:before{border-color:#fff}.mat-tab-group.mat-background-primary>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:hsla(0,0%,100%,.4)}.mat-tab-group.mat-background-primary>.mat-tab-header-pagination .mat-ripple-element,.mat-tab-group.mat-background-primary>.mat-tab-header .mat-ripple-element,.mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-ripple-element,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination .mat-ripple-element,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-ripple-element,.mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-ripple-element{background-color:hsla(0,0%,100%,.12)}.mat-tab-group.mat-background-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(200,230,201,.3)}.mat-tab-group.mat-background-accent>.mat-tab-header,.mat-tab-group.mat-background-accent>.mat-tab-header-pagination,.mat-tab-group.mat-background-accent>.mat-tab-link-container,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination,.mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container{background-color:#43a047}.mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-label,.mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-tab-link,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-label,.mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-tab-link{color:#fff}.mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-tab-link.mat-tab-disabled{color:hsla(0,0%,100%,.4)}.mat-tab-group.mat-background-accent>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-accent>.mat-tab-header .mat-focus-indicator:before,.mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-focus-indicator:before{border-color:#fff}.mat-tab-group.mat-background-accent>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:hsla(0,0%,100%,.4)}.mat-tab-group.mat-background-accent>.mat-tab-header-pagination .mat-ripple-element,.mat-tab-group.mat-background-accent>.mat-tab-header .mat-ripple-element,.mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-ripple-element,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination .mat-ripple-element,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-ripple-element,.mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-ripple-element{background-color:hsla(0,0%,100%,.12)}.mat-tab-group.mat-background-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,205,210,.3)}.mat-tab-group.mat-background-warn>.mat-tab-header,.mat-tab-group.mat-background-warn>.mat-tab-header-pagination,.mat-tab-group.mat-background-warn>.mat-tab-link-container,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination,.mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container{background-color:#f44336}.mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-label,.mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-tab-link,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-label,.mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-tab-link{color:#fff}.mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-tab-link.mat-tab-disabled{color:hsla(0,0%,100%,.4)}.mat-tab-group.mat-background-warn>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-warn>.mat-tab-header .mat-focus-indicator:before,.mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-focus-indicator:before{border-color:#fff}.mat-tab-group.mat-background-warn>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:hsla(0,0%,100%,.4)}.mat-tab-group.mat-background-warn>.mat-tab-header-pagination .mat-ripple-element,.mat-tab-group.mat-background-warn>.mat-tab-header .mat-ripple-element,.mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-ripple-element,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination .mat-ripple-element,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-ripple-element,.mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-ripple-element{background-color:hsla(0,0%,100%,.12)}.mat-toolbar{background:#f5f5f5;color:rgba(0,0,0,.87)}.mat-toolbar.mat-primary{background:#212121;color:#fff}.mat-toolbar.mat-accent{background:#43a047;color:#fff}.mat-toolbar.mat-warn{background:#f44336;color:#fff}.mat-toolbar .mat-focused .mat-form-field-ripple,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-form-field-underline{background-color:currentColor}.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-select-value{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media (max-width:599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}.mat-tooltip{background:rgba(97,97,97,.9)}.mat-tree{background:#fff}.mat-nested-tree-node,.mat-tree-node{color:rgba(0,0,0,.87)}.mat-tree-node{min-height:48px}.mat-snack-bar-container{color:hsla(0,0%,100%,.7);background:#323232;box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-simple-snackbar-action{color:#43a047}.user-theme .mat-ripple-element{background-color:rgba(0,0,0,.1)}.user-theme .mat-option{color:rgba(0,0,0,.87)}.user-theme .mat-option.mat-selected:not(.mat-option-multiple):not(.mat-option-disabled),.user-theme .mat-option:focus:not(.mat-option-disabled),.user-theme .mat-option:hover:not(.mat-option-disabled){background:rgba(0,0,0,.04)}.user-theme .mat-option.mat-active{background:rgba(0,0,0,.04);color:rgba(0,0,0,.87)}.user-theme .mat-option.mat-option-disabled{color:rgba(0,0,0,.38)}.user-theme .mat-primary .mat-option.mat-selected:not(.mat-option-disabled){color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-accent .mat-option.mat-selected:not(.mat-option-disabled){color:#43a047}.user-theme .mat-warn .mat-option.mat-selected:not(.mat-option-disabled){color:#f44336}.user-theme .mat-optgroup-label{color:rgba(0,0,0,.54)}.user-theme .mat-optgroup-disabled .mat-optgroup-label{color:rgba(0,0,0,.38)}.user-theme .mat-pseudo-checkbox{color:rgba(0,0,0,.54)}.user-theme .mat-pseudo-checkbox:after{color:#fafafa}.user-theme .mat-pseudo-checkbox-disabled{color:#b0b0b0}.user-theme .mat-primary .mat-pseudo-checkbox-checked,.user-theme .mat-primary .mat-pseudo-checkbox-indeterminate{background:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-accent .mat-pseudo-checkbox-checked,.user-theme .mat-accent .mat-pseudo-checkbox-indeterminate,.user-theme .mat-pseudo-checkbox-checked,.user-theme .mat-pseudo-checkbox-indeterminate{background:#43a047}.user-theme .mat-warn .mat-pseudo-checkbox-checked,.user-theme .mat-warn .mat-pseudo-checkbox-indeterminate{background:#f44336}.user-theme .mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.user-theme .mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background:#b0b0b0}.user-theme.mat-app-background,.user-theme .mat-app-background{background-color:#fafafa;color:rgba(0,0,0,.87)}.user-theme .mat-elevation-z0{box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.user-theme .mat-elevation-z1{box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.user-theme .mat-elevation-z2{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.user-theme .mat-elevation-z3{box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12)}.user-theme .mat-elevation-z4{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.user-theme .mat-elevation-z5{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 5px 8px 0 rgba(0,0,0,.14),0 1px 14px 0 rgba(0,0,0,.12)}.user-theme .mat-elevation-z6{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.user-theme .mat-elevation-z7{box-shadow:0 4px 5px -2px rgba(0,0,0,.2),0 7px 10px 1px rgba(0,0,0,.14),0 2px 16px 1px rgba(0,0,0,.12)}.user-theme .mat-elevation-z8{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.user-theme .mat-elevation-z9{box-shadow:0 5px 6px -3px rgba(0,0,0,.2),0 9px 12px 1px rgba(0,0,0,.14),0 3px 16px 2px rgba(0,0,0,.12)}.user-theme .mat-elevation-z10{box-shadow:0 6px 6px -3px rgba(0,0,0,.2),0 10px 14px 1px rgba(0,0,0,.14),0 4px 18px 3px rgba(0,0,0,.12)}.user-theme .mat-elevation-z11{box-shadow:0 6px 7px -4px rgba(0,0,0,.2),0 11px 15px 1px rgba(0,0,0,.14),0 4px 20px 3px rgba(0,0,0,.12)}.user-theme .mat-elevation-z12{box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.user-theme .mat-elevation-z13{box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 13px 19px 2px rgba(0,0,0,.14),0 5px 24px 4px rgba(0,0,0,.12)}.user-theme .mat-elevation-z14{box-shadow:0 7px 9px -4px rgba(0,0,0,.2),0 14px 21px 2px rgba(0,0,0,.14),0 5px 26px 4px rgba(0,0,0,.12)}.user-theme .mat-elevation-z15{box-shadow:0 8px 9px -5px rgba(0,0,0,.2),0 15px 22px 2px rgba(0,0,0,.14),0 6px 28px 5px rgba(0,0,0,.12)}.user-theme .mat-elevation-z16{box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12)}.user-theme .mat-elevation-z17{box-shadow:0 8px 11px -5px rgba(0,0,0,.2),0 17px 26px 2px rgba(0,0,0,.14),0 6px 32px 5px rgba(0,0,0,.12)}.user-theme .mat-elevation-z18{box-shadow:0 9px 11px -5px rgba(0,0,0,.2),0 18px 28px 2px rgba(0,0,0,.14),0 7px 34px 6px rgba(0,0,0,.12)}.user-theme .mat-elevation-z19{box-shadow:0 9px 12px -6px rgba(0,0,0,.2),0 19px 29px 2px rgba(0,0,0,.14),0 7px 36px 6px rgba(0,0,0,.12)}.user-theme .mat-elevation-z20{box-shadow:0 10px 13px -6px rgba(0,0,0,.2),0 20px 31px 3px rgba(0,0,0,.14),0 8px 38px 7px rgba(0,0,0,.12)}.user-theme .mat-elevation-z21{box-shadow:0 10px 13px -6px rgba(0,0,0,.2),0 21px 33px 3px rgba(0,0,0,.14),0 8px 40px 7px rgba(0,0,0,.12)}.user-theme .mat-elevation-z22{box-shadow:0 10px 14px -6px rgba(0,0,0,.2),0 22px 35px 3px rgba(0,0,0,.14),0 8px 42px 7px rgba(0,0,0,.12)}.user-theme .mat-elevation-z23{box-shadow:0 11px 14px -7px rgba(0,0,0,.2),0 23px 36px 3px rgba(0,0,0,.14),0 9px 44px 8px rgba(0,0,0,.12)}.user-theme .mat-elevation-z24{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12)}.mat-theme-loaded-marker{display:none}.user-theme .mat-autocomplete-panel{background:#fff;color:rgba(0,0,0,.87)}.user-theme .mat-autocomplete-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.user-theme .mat-autocomplete-panel .mat-option.mat-selected:not(.mat-active):not(:hover){background:#fff}.user-theme .mat-autocomplete-panel .mat-option.mat-selected:not(.mat-active):not(:hover):not(.mat-option-disabled){color:rgba(0,0,0,.87)}.user-theme .mat-badge-content{color:rgba(var(--user-theme-primary-contrast-500),1);background:rgba(var(--user-theme-primary-500),1)}.cdk-high-contrast-active .user-theme .mat-badge-content{outline:1px solid;border-radius:0}.user-theme .mat-badge-accent .mat-badge-content{background:#43a047;color:#fff}.user-theme .mat-badge-warn .mat-badge-content{color:#fff;background:#f44336}.user-theme .mat-badge{position:relative}.user-theme .mat-badge-hidden .mat-badge-content{display:none}.user-theme .mat-badge-disabled .mat-badge-content{background:#b9b9b9;color:rgba(0,0,0,.38)}.user-theme .mat-badge-content{position:absolute;text-align:center;display:inline-block;border-radius:50%;transition:transform .2s ease-in-out;transform:scale(.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;pointer-events:none}.user-theme .mat-badge-content._mat-animation-noopable,.user-theme .ng-animate-disabled .mat-badge-content{transition:none}.user-theme .mat-badge-content.mat-badge-active{transform:none}.user-theme .mat-badge-small .mat-badge-content{width:16px;height:16px;line-height:16px}.user-theme .mat-badge-small.mat-badge-above .mat-badge-content{top:-8px}.user-theme .mat-badge-small.mat-badge-below .mat-badge-content{bottom:-8px}.user-theme .mat-badge-small.mat-badge-before .mat-badge-content{left:-16px}[dir=rtl] .user-theme .mat-badge-small.mat-badge-before .mat-badge-content{left:auto;right:-16px}.user-theme .mat-badge-small.mat-badge-after .mat-badge-content{right:-16px}[dir=rtl] .user-theme .mat-badge-small.mat-badge-after .mat-badge-content{right:auto;left:-16px}.user-theme .mat-badge-small.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-8px}[dir=rtl] .user-theme .mat-badge-small.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-8px}.user-theme .mat-badge-small.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-8px}[dir=rtl] .user-theme .mat-badge-small.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-8px}.user-theme .mat-badge-medium .mat-badge-content{width:22px;height:22px;line-height:22px}.user-theme .mat-badge-medium.mat-badge-above .mat-badge-content{top:-11px}.user-theme .mat-badge-medium.mat-badge-below .mat-badge-content{bottom:-11px}.user-theme .mat-badge-medium.mat-badge-before .mat-badge-content{left:-22px}[dir=rtl] .user-theme .mat-badge-medium.mat-badge-before .mat-badge-content{left:auto;right:-22px}.user-theme .mat-badge-medium.mat-badge-after .mat-badge-content{right:-22px}[dir=rtl] .user-theme .mat-badge-medium.mat-badge-after .mat-badge-content{right:auto;left:-22px}.user-theme .mat-badge-medium.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-11px}[dir=rtl] .user-theme .mat-badge-medium.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-11px}.user-theme .mat-badge-medium.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-11px}[dir=rtl] .user-theme .mat-badge-medium.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-11px}.user-theme .mat-badge-large .mat-badge-content{width:28px;height:28px;line-height:28px}.user-theme .mat-badge-large.mat-badge-above .mat-badge-content{top:-14px}.user-theme .mat-badge-large.mat-badge-below .mat-badge-content{bottom:-14px}.user-theme .mat-badge-large.mat-badge-before .mat-badge-content{left:-28px}[dir=rtl] .user-theme .mat-badge-large.mat-badge-before .mat-badge-content{left:auto;right:-28px}.user-theme .mat-badge-large.mat-badge-after .mat-badge-content{right:-28px}[dir=rtl] .user-theme .mat-badge-large.mat-badge-after .mat-badge-content{right:auto;left:-28px}.user-theme .mat-badge-large.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-14px}[dir=rtl] .user-theme .mat-badge-large.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-14px}.user-theme .mat-badge-large.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-14px}[dir=rtl] .user-theme .mat-badge-large.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-14px}.user-theme .mat-bottom-sheet-container{box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12);background:#fff;color:rgba(0,0,0,.87)}.user-theme .mat-button,.user-theme .mat-icon-button,.user-theme .mat-stroked-button{color:inherit;background:transparent}.user-theme .mat-button.mat-primary,.user-theme .mat-icon-button.mat-primary,.user-theme .mat-stroked-button.mat-primary{color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-button.mat-accent,.user-theme .mat-icon-button.mat-accent,.user-theme .mat-stroked-button.mat-accent{color:#43a047}.user-theme .mat-button.mat-warn,.user-theme .mat-icon-button.mat-warn,.user-theme .mat-stroked-button.mat-warn{color:#f44336}.user-theme .mat-button.mat-accent.mat-button-disabled,.user-theme .mat-button.mat-button-disabled.mat-button-disabled,.user-theme .mat-button.mat-primary.mat-button-disabled,.user-theme .mat-button.mat-warn.mat-button-disabled,.user-theme .mat-icon-button.mat-accent.mat-button-disabled,.user-theme .mat-icon-button.mat-button-disabled.mat-button-disabled,.user-theme .mat-icon-button.mat-primary.mat-button-disabled,.user-theme .mat-icon-button.mat-warn.mat-button-disabled,.user-theme .mat-stroked-button.mat-accent.mat-button-disabled,.user-theme .mat-stroked-button.mat-button-disabled.mat-button-disabled,.user-theme .mat-stroked-button.mat-primary.mat-button-disabled,.user-theme .mat-stroked-button.mat-warn.mat-button-disabled{color:rgba(0,0,0,.26)}.user-theme .mat-button.mat-primary .mat-button-focus-overlay,.user-theme .mat-icon-button.mat-primary .mat-button-focus-overlay,.user-theme .mat-stroked-button.mat-primary .mat-button-focus-overlay{background-color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-button.mat-accent .mat-button-focus-overlay,.user-theme .mat-icon-button.mat-accent .mat-button-focus-overlay,.user-theme .mat-stroked-button.mat-accent .mat-button-focus-overlay{background-color:#43a047}.user-theme .mat-button.mat-warn .mat-button-focus-overlay,.user-theme .mat-icon-button.mat-warn .mat-button-focus-overlay,.user-theme .mat-stroked-button.mat-warn .mat-button-focus-overlay{background-color:#f44336}.user-theme .mat-button.mat-button-disabled .mat-button-focus-overlay,.user-theme .mat-icon-button.mat-button-disabled .mat-button-focus-overlay,.user-theme .mat-stroked-button.mat-button-disabled .mat-button-focus-overlay{background-color:transparent}.user-theme .mat-button .mat-ripple-element,.user-theme .mat-icon-button .mat-ripple-element,.user-theme .mat-stroked-button .mat-ripple-element{opacity:.1;background-color:currentColor}.user-theme .mat-button-focus-overlay{background:#000}.user-theme .mat-stroked-button:not(.mat-button-disabled){border-color:rgba(0,0,0,.12)}.user-theme .mat-fab,.user-theme .mat-flat-button,.user-theme .mat-mini-fab,.user-theme .mat-raised-button{color:rgba(0,0,0,.87);background-color:#fff}.user-theme .mat-fab.mat-primary,.user-theme .mat-flat-button.mat-primary,.user-theme .mat-mini-fab.mat-primary,.user-theme .mat-raised-button.mat-primary{color:rgba(var(--user-theme-primary-contrast-500),1)}.user-theme .mat-fab.mat-accent,.user-theme .mat-fab.mat-warn,.user-theme .mat-flat-button.mat-accent,.user-theme .mat-flat-button.mat-warn,.user-theme .mat-mini-fab.mat-accent,.user-theme .mat-mini-fab.mat-warn,.user-theme .mat-raised-button.mat-accent,.user-theme .mat-raised-button.mat-warn{color:#fff}.user-theme .mat-fab.mat-accent.mat-button-disabled,.user-theme .mat-fab.mat-button-disabled.mat-button-disabled,.user-theme .mat-fab.mat-primary.mat-button-disabled,.user-theme .mat-fab.mat-warn.mat-button-disabled,.user-theme .mat-flat-button.mat-accent.mat-button-disabled,.user-theme .mat-flat-button.mat-button-disabled.mat-button-disabled,.user-theme .mat-flat-button.mat-primary.mat-button-disabled,.user-theme .mat-flat-button.mat-warn.mat-button-disabled,.user-theme .mat-mini-fab.mat-accent.mat-button-disabled,.user-theme .mat-mini-fab.mat-button-disabled.mat-button-disabled,.user-theme .mat-mini-fab.mat-primary.mat-button-disabled,.user-theme .mat-mini-fab.mat-warn.mat-button-disabled,.user-theme .mat-raised-button.mat-accent.mat-button-disabled,.user-theme .mat-raised-button.mat-button-disabled.mat-button-disabled,.user-theme .mat-raised-button.mat-primary.mat-button-disabled,.user-theme .mat-raised-button.mat-warn.mat-button-disabled{color:rgba(0,0,0,.26)}.user-theme .mat-fab.mat-primary,.user-theme .mat-flat-button.mat-primary,.user-theme .mat-mini-fab.mat-primary,.user-theme .mat-raised-button.mat-primary{background-color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-fab.mat-accent,.user-theme .mat-flat-button.mat-accent,.user-theme .mat-mini-fab.mat-accent,.user-theme .mat-raised-button.mat-accent{background-color:#43a047}.user-theme .mat-fab.mat-warn,.user-theme .mat-flat-button.mat-warn,.user-theme .mat-mini-fab.mat-warn,.user-theme .mat-raised-button.mat-warn{background-color:#f44336}.user-theme .mat-fab.mat-accent.mat-button-disabled,.user-theme .mat-fab.mat-button-disabled.mat-button-disabled,.user-theme .mat-fab.mat-primary.mat-button-disabled,.user-theme .mat-fab.mat-warn.mat-button-disabled,.user-theme .mat-flat-button.mat-accent.mat-button-disabled,.user-theme .mat-flat-button.mat-button-disabled.mat-button-disabled,.user-theme .mat-flat-button.mat-primary.mat-button-disabled,.user-theme .mat-flat-button.mat-warn.mat-button-disabled,.user-theme .mat-mini-fab.mat-accent.mat-button-disabled,.user-theme .mat-mini-fab.mat-button-disabled.mat-button-disabled,.user-theme .mat-mini-fab.mat-primary.mat-button-disabled,.user-theme .mat-mini-fab.mat-warn.mat-button-disabled,.user-theme .mat-raised-button.mat-accent.mat-button-disabled,.user-theme .mat-raised-button.mat-button-disabled.mat-button-disabled,.user-theme .mat-raised-button.mat-primary.mat-button-disabled,.user-theme .mat-raised-button.mat-warn.mat-button-disabled{background-color:rgba(0,0,0,.12)}.user-theme .mat-fab.mat-primary .mat-ripple-element,.user-theme .mat-flat-button.mat-primary .mat-ripple-element,.user-theme .mat-mini-fab.mat-primary .mat-ripple-element,.user-theme .mat-raised-button.mat-primary .mat-ripple-element{background-color:rgba(var(--user-theme-primary-contrast-500),1);opacity:.1}.user-theme .mat-fab.mat-accent .mat-ripple-element,.user-theme .mat-fab.mat-warn .mat-ripple-element,.user-theme .mat-flat-button.mat-accent .mat-ripple-element,.user-theme .mat-flat-button.mat-warn .mat-ripple-element,.user-theme .mat-mini-fab.mat-accent .mat-ripple-element,.user-theme .mat-mini-fab.mat-warn .mat-ripple-element,.user-theme .mat-raised-button.mat-accent .mat-ripple-element,.user-theme .mat-raised-button.mat-warn .mat-ripple-element{background-color:hsla(0,0%,100%,.1)}.user-theme .mat-flat-button:not([class*=mat-elevation-z]),.user-theme .mat-stroked-button:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.user-theme .mat-raised-button:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.user-theme .mat-raised-button:not(.mat-button-disabled):active:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.user-theme .mat-raised-button.mat-button-disabled:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.user-theme .mat-fab:not([class*=mat-elevation-z]),.user-theme .mat-mini-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.user-theme .mat-fab:not(.mat-button-disabled):active:not([class*=mat-elevation-z]),.user-theme .mat-mini-fab:not(.mat-button-disabled):active:not([class*=mat-elevation-z]){box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.user-theme .mat-fab.mat-button-disabled:not([class*=mat-elevation-z]),.user-theme .mat-mini-fab.mat-button-disabled:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.user-theme .mat-button-toggle-group,.user-theme .mat-button-toggle-standalone{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.user-theme .mat-button-toggle-group-appearance-standard,.user-theme .mat-button-toggle-standalone.mat-button-toggle-appearance-standard{box-shadow:none}.user-theme .mat-button-toggle{color:rgba(0,0,0,.38)}.user-theme .mat-button-toggle .mat-button-toggle-focus-overlay{background-color:rgba(0,0,0,.12)}.user-theme .mat-button-toggle-appearance-standard{color:rgba(0,0,0,.87);background:#fff}.user-theme .mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:#000}.user-theme .mat-button-toggle-group-appearance-standard .mat-button-toggle+.mat-button-toggle{border-left:1px solid rgba(0,0,0,.12)}.user-theme [dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle+.mat-button-toggle{border-left:none;border-right:1px solid rgba(0,0,0,.12)}.user-theme .mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle+.mat-button-toggle{border-left:none;border-right:none;border-top:1px solid rgba(0,0,0,.12)}.user-theme .mat-button-toggle-checked{background-color:#e0e0e0;color:rgba(0,0,0,.54)}.user-theme .mat-button-toggle-checked.mat-button-toggle-appearance-standard{color:rgba(0,0,0,.87)}.user-theme .mat-button-toggle-disabled{color:rgba(0,0,0,.26);background-color:#eee}.user-theme .mat-button-toggle-disabled.mat-button-toggle-appearance-standard{background:#fff}.user-theme .mat-button-toggle-disabled.mat-button-toggle-checked{background-color:#bdbdbd}.user-theme .mat-button-toggle-group-appearance-standard,.user-theme .mat-button-toggle-standalone.mat-button-toggle-appearance-standard{border:1px solid rgba(0,0,0,.12)}.user-theme .mat-card{background:#fff;color:rgba(0,0,0,.87)}.user-theme .mat-card:not([class*=mat-elevation-z]){box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.user-theme .mat-card.mat-card-flat:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.user-theme .mat-card-subtitle{color:rgba(0,0,0,.54)}.user-theme .mat-checkbox-frame{border-color:rgba(0,0,0,.54)}.user-theme .mat-checkbox-checkmark{fill:#fafafa}.user-theme .mat-checkbox-checkmark-path{stroke:#fafafa!important}.user-theme .mat-checkbox-mixedmark{background-color:#fafafa}.user-theme .mat-checkbox-checked.mat-primary .mat-checkbox-background,.user-theme .mat-checkbox-indeterminate.mat-primary .mat-checkbox-background{background-color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-checkbox-checked.mat-accent .mat-checkbox-background,.user-theme .mat-checkbox-indeterminate.mat-accent .mat-checkbox-background{background-color:#43a047}.user-theme .mat-checkbox-checked.mat-warn .mat-checkbox-background,.user-theme .mat-checkbox-indeterminate.mat-warn .mat-checkbox-background{background-color:#f44336}.user-theme .mat-checkbox-disabled.mat-checkbox-checked .mat-checkbox-background,.user-theme .mat-checkbox-disabled.mat-checkbox-indeterminate .mat-checkbox-background{background-color:#b0b0b0}.user-theme .mat-checkbox-disabled:not(.mat-checkbox-checked) .mat-checkbox-frame{border-color:#b0b0b0}.user-theme .mat-checkbox-disabled .mat-checkbox-label{color:rgba(0,0,0,.54)}.user-theme .mat-checkbox .mat-ripple-element{background-color:#000}.user-theme .mat-checkbox-checked:not(.mat-checkbox-disabled).mat-primary .mat-ripple-element,.user-theme .mat-checkbox:active:not(.mat-checkbox-disabled).mat-primary .mat-ripple-element{background:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-checkbox-checked:not(.mat-checkbox-disabled).mat-accent .mat-ripple-element,.user-theme .mat-checkbox:active:not(.mat-checkbox-disabled).mat-accent .mat-ripple-element{background:#43a047}.user-theme .mat-checkbox-checked:not(.mat-checkbox-disabled).mat-warn .mat-ripple-element,.user-theme .mat-checkbox:active:not(.mat-checkbox-disabled).mat-warn .mat-ripple-element{background:#f44336}.user-theme .mat-chip.mat-standard-chip{background-color:#e0e0e0;color:rgba(0,0,0,.87)}.user-theme .mat-chip.mat-standard-chip .mat-chip-remove{color:rgba(0,0,0,.87);opacity:.4}.user-theme .mat-chip.mat-standard-chip:not(.mat-chip-disabled):active{box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12)}.user-theme .mat-chip.mat-standard-chip:not(.mat-chip-disabled) .mat-chip-remove:hover{opacity:.54}.user-theme .mat-chip.mat-standard-chip.mat-chip-disabled{opacity:.4}.user-theme .mat-chip.mat-standard-chip:after{background:#000}.user-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-primary{background-color:rgba(var(--user-theme-primary-500),1);color:rgba(var(--user-theme-primary-contrast-500),1)}.user-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-primary .mat-chip-remove{color:rgba(var(--user-theme-primary-contrast-500),1);opacity:.4}.user-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-primary .mat-ripple-element{background-color:rgba(var(--user-theme-primary-contrast-500),1);opacity:.1}.user-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-warn{background-color:#f44336;color:#fff}.user-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-warn .mat-chip-remove{color:#fff;opacity:.4}.user-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-warn .mat-ripple-element{background-color:hsla(0,0%,100%,.1)}.user-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-accent{background-color:#43a047;color:#fff}.user-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-accent .mat-chip-remove{color:#fff;opacity:.4}.user-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-accent .mat-ripple-element{background-color:hsla(0,0%,100%,.1)}.user-theme .mat-table{background:#fff}.user-theme .mat-table-sticky,.user-theme .mat-table tbody,.user-theme .mat-table tfoot,.user-theme .mat-table thead,.user-theme [mat-footer-row],.user-theme [mat-header-row],.user-theme [mat-row],.user-theme mat-footer-row,.user-theme mat-header-row,.user-theme mat-row{background:inherit}.user-theme mat-footer-row,.user-theme mat-header-row,.user-theme mat-row,.user-theme td.mat-cell,.user-theme td.mat-footer-cell,.user-theme th.mat-header-cell{border-bottom-color:rgba(0,0,0,.12)}.user-theme .mat-header-cell{color:rgba(0,0,0,.54)}.user-theme .mat-cell,.user-theme .mat-footer-cell{color:rgba(0,0,0,.87)}.user-theme .mat-calendar-arrow{border-top-color:rgba(0,0,0,.54)}.user-theme .mat-datepicker-content .mat-calendar-next-button,.user-theme .mat-datepicker-content .mat-calendar-previous-button,.user-theme .mat-datepicker-toggle{color:rgba(0,0,0,.54)}.user-theme .mat-calendar-table-header{color:rgba(0,0,0,.38)}.user-theme .mat-calendar-table-header-divider:after{background:rgba(0,0,0,.12)}.user-theme .mat-calendar-body-label{color:rgba(0,0,0,.54)}.user-theme .mat-calendar-body-cell-content,.user-theme .mat-date-range-input-separator{color:rgba(0,0,0,.87);border-color:transparent}.user-theme .mat-calendar-body-disabled>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.user-theme .mat-form-field-disabled .mat-date-range-input-separator{color:rgba(0,0,0,.38)}.user-theme .mat-calendar-body-in-preview{color:rgba(0,0,0,.24)}.user-theme .mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:rgba(0,0,0,.38)}.user-theme .mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:rgba(0,0,0,.18)}.user-theme .mat-calendar-body-in-range:before{background:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-calendar-body-comparison-identical,.user-theme .mat-calendar-body-in-comparison-range:before{background:rgba(249,171,0,.2)}.user-theme .mat-calendar-body-comparison-bridge-start:before,.user-theme [dir=rtl] .mat-calendar-body-comparison-bridge-end:before{background:linear-gradient(to right,rgba(var(--user-theme-primary-500),1) 50%,rgba(249,171,0,.2) 50%)}.user-theme .mat-calendar-body-comparison-bridge-end:before,.user-theme [dir=rtl] .mat-calendar-body-comparison-bridge-start:before{background:linear-gradient(to left,rgba(var(--user-theme-primary-500),1) 50%,rgba(249,171,0,.2) 50%)}.user-theme .mat-calendar-body-in-comparison-range.mat-calendar-body-in-range:after,.user-theme .mat-calendar-body-in-range>.mat-calendar-body-comparison-identical{background:#a8dab5}.user-theme .mat-calendar-body-comparison-identical.mat-calendar-body-selected,.user-theme .mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:#46a35e}.user-theme .mat-calendar-body-selected{background-color:rgba(var(--user-theme-primary-500),1);color:rgba(var(--user-theme-primary-contrast-500),1)}.user-theme .mat-calendar-body-disabled>.mat-calendar-body-selected{opacity:.2}.user-theme .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px rgba(var(--user-theme-primary-contrast-500),1)}.user-theme .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.user-theme .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.user-theme .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-datepicker-content{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12);background-color:#fff;color:rgba(0,0,0,.87)}.user-theme .mat-datepicker-content.mat-accent .mat-calendar-body-in-range:before{background:rgba(67,160,71,.2)}.user-theme .mat-datepicker-content.mat-accent .mat-calendar-body-comparison-identical,.user-theme .mat-datepicker-content.mat-accent .mat-calendar-body-in-comparison-range:before{background:rgba(249,171,0,.2)}.user-theme .mat-datepicker-content.mat-accent .mat-calendar-body-comparison-bridge-start:before,.user-theme .mat-datepicker-content.mat-accent [dir=rtl] .mat-calendar-body-comparison-bridge-end:before{background:linear-gradient(90deg,rgba(67,160,71,.2) 50%,rgba(249,171,0,.2) 0)}.user-theme .mat-datepicker-content.mat-accent .mat-calendar-body-comparison-bridge-end:before,.user-theme .mat-datepicker-content.mat-accent [dir=rtl] .mat-calendar-body-comparison-bridge-start:before{background:linear-gradient(270deg,rgba(67,160,71,.2) 50%,rgba(249,171,0,.2) 0)}.user-theme .mat-datepicker-content.mat-accent .mat-calendar-body-in-comparison-range.mat-calendar-body-in-range:after,.user-theme .mat-datepicker-content.mat-accent .mat-calendar-body-in-range>.mat-calendar-body-comparison-identical{background:#a8dab5}.user-theme .mat-datepicker-content.mat-accent .mat-calendar-body-comparison-identical.mat-calendar-body-selected,.user-theme .mat-datepicker-content.mat-accent .mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:#46a35e}.user-theme .mat-datepicker-content.mat-accent .mat-calendar-body-selected{background-color:#43a047;color:#fff}.user-theme .mat-datepicker-content.mat-accent .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(67,160,71,.4)}.user-theme .mat-datepicker-content.mat-accent .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.user-theme .mat-datepicker-content.mat-accent .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.user-theme .mat-datepicker-content.mat-accent .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.user-theme .mat-datepicker-content.mat-accent .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:rgba(67,160,71,.3)}.user-theme .mat-datepicker-content.mat-warn .mat-calendar-body-in-range:before{background:rgba(244,67,54,.2)}.user-theme .mat-datepicker-content.mat-warn .mat-calendar-body-comparison-identical,.user-theme .mat-datepicker-content.mat-warn .mat-calendar-body-in-comparison-range:before{background:rgba(249,171,0,.2)}.user-theme .mat-datepicker-content.mat-warn .mat-calendar-body-comparison-bridge-start:before,.user-theme .mat-datepicker-content.mat-warn [dir=rtl] .mat-calendar-body-comparison-bridge-end:before{background:linear-gradient(90deg,rgba(244,67,54,.2) 50%,rgba(249,171,0,.2) 0)}.user-theme .mat-datepicker-content.mat-warn .mat-calendar-body-comparison-bridge-end:before,.user-theme .mat-datepicker-content.mat-warn [dir=rtl] .mat-calendar-body-comparison-bridge-start:before{background:linear-gradient(270deg,rgba(244,67,54,.2) 50%,rgba(249,171,0,.2) 0)}.user-theme .mat-datepicker-content.mat-warn .mat-calendar-body-in-comparison-range.mat-calendar-body-in-range:after,.user-theme .mat-datepicker-content.mat-warn .mat-calendar-body-in-range>.mat-calendar-body-comparison-identical{background:#a8dab5}.user-theme .mat-datepicker-content.mat-warn .mat-calendar-body-comparison-identical.mat-calendar-body-selected,.user-theme .mat-datepicker-content.mat-warn .mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:#46a35e}.user-theme .mat-datepicker-content.mat-warn .mat-calendar-body-selected{background-color:#f44336;color:#fff}.user-theme .mat-datepicker-content.mat-warn .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(244,67,54,.4)}.user-theme .mat-datepicker-content.mat-warn .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.user-theme .mat-datepicker-content.mat-warn .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.user-theme .mat-datepicker-content.mat-warn .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.user-theme .mat-datepicker-content.mat-warn .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:rgba(244,67,54,.3)}.user-theme .mat-datepicker-content-touch{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12)}.user-theme .mat-datepicker-toggle-active{color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-datepicker-toggle-active.mat-accent{color:#43a047}.user-theme .mat-datepicker-toggle-active.mat-warn{color:#f44336}.user-theme .mat-date-range-input-inner[disabled]{color:rgba(0,0,0,.38)}.user-theme .mat-dialog-container{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);background:#fff;color:rgba(0,0,0,.87)}.user-theme .mat-divider{border-top-color:rgba(0,0,0,.12)}.user-theme .mat-divider-vertical{border-right-color:rgba(0,0,0,.12)}.user-theme .mat-expansion-panel{background:#fff;color:rgba(0,0,0,.87)}.user-theme .mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.user-theme .mat-action-row{border-top-color:rgba(0,0,0,.12)}.user-theme .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true]),.user-theme .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true]),.user-theme .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true]){background:rgba(0,0,0,.04)}@media (hover:none){.user-theme .mat-expansion-panel:not(.mat-expanded):not([aria-disabled=true]) .mat-expansion-panel-header:hover{background:#fff}}.user-theme .mat-expansion-panel-header-title{color:rgba(0,0,0,.87)}.user-theme .mat-expansion-indicator:after,.user-theme .mat-expansion-panel-header-description{color:rgba(0,0,0,.54)}.user-theme .mat-expansion-panel-header[aria-disabled=true]{color:rgba(0,0,0,.26)}.user-theme .mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description,.user-theme .mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title{color:inherit}.user-theme .mat-form-field-label,.user-theme .mat-hint{color:rgba(0,0,0,.6)}.user-theme .mat-form-field.mat-focused .mat-form-field-label{color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-form-field.mat-focused .mat-form-field-label.mat-accent{color:#43a047}.user-theme .mat-form-field.mat-focused .mat-form-field-label.mat-warn{color:#f44336}.user-theme .mat-focused .mat-form-field-required-marker{color:#43a047}.user-theme .mat-form-field-ripple{background-color:rgba(0,0,0,.87)}.user-theme .mat-form-field.mat-focused .mat-form-field-ripple{background-color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-form-field.mat-focused .mat-form-field-ripple.mat-accent{background-color:#43a047}.user-theme .mat-form-field.mat-focused .mat-form-field-ripple.mat-warn{background-color:#f44336}.user-theme .mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid) .mat-form-field-infix:after{color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid).mat-accent .mat-form-field-infix:after{color:#43a047}.user-theme .mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid).mat-warn .mat-form-field-infix:after,.user-theme .mat-form-field.mat-form-field-invalid .mat-form-field-label,.user-theme .mat-form-field.mat-form-field-invalid .mat-form-field-label.mat-accent,.user-theme .mat-form-field.mat-form-field-invalid .mat-form-field-label .mat-form-field-required-marker{color:#f44336}.user-theme .mat-form-field.mat-form-field-invalid .mat-form-field-ripple,.user-theme .mat-form-field.mat-form-field-invalid .mat-form-field-ripple.mat-accent{background-color:#f44336}.user-theme .mat-error{color:#f44336}.user-theme .mat-form-field-appearance-legacy .mat-form-field-label,.user-theme .mat-form-field-appearance-legacy .mat-hint{color:rgba(0,0,0,.54)}.user-theme .mat-form-field-appearance-legacy .mat-form-field-underline{background-color:rgba(0,0,0,.42)}.user-theme .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-image:linear-gradient(90deg,rgba(0,0,0,.42) 0,rgba(0,0,0,.42) 33%,transparent 0);background-size:4px 100%;background-repeat:repeat-x}.user-theme .mat-form-field-appearance-standard .mat-form-field-underline{background-color:rgba(0,0,0,.42)}.user-theme .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-image:linear-gradient(90deg,rgba(0,0,0,.42) 0,rgba(0,0,0,.42) 33%,transparent 0);background-size:4px 100%;background-repeat:repeat-x}.user-theme .mat-form-field-appearance-fill .mat-form-field-flex{background-color:rgba(0,0,0,.04)}.user-theme .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{background-color:rgba(0,0,0,.02)}.user-theme .mat-form-field-appearance-fill .mat-form-field-underline:before{background-color:rgba(0,0,0,.42)}.user-theme .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-label{color:rgba(0,0,0,.38)}.user-theme .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-underline:before{background-color:transparent}.user-theme .mat-form-field-appearance-outline .mat-form-field-outline{color:rgba(0,0,0,.12)}.user-theme .mat-form-field-appearance-outline .mat-form-field-outline-thick{color:rgba(0,0,0,.87)}.user-theme .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-form-field-appearance-outline.mat-focused.mat-accent .mat-form-field-outline-thick{color:#43a047}.user-theme .mat-form-field-appearance-outline.mat-focused.mat-warn .mat-form-field-outline-thick,.user-theme .mat-form-field-appearance-outline.mat-form-field-invalid.mat-form-field-invalid .mat-form-field-outline-thick{color:#f44336}.user-theme .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-label{color:rgba(0,0,0,.38)}.user-theme .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:rgba(0,0,0,.06)}.user-theme .mat-icon.mat-primary{color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-icon.mat-accent{color:#43a047}.user-theme .mat-icon.mat-warn{color:#f44336}.user-theme .mat-form-field-type-mat-native-select .mat-form-field-infix:after{color:rgba(0,0,0,.54)}.user-theme .mat-form-field-type-mat-native-select.mat-form-field-disabled .mat-form-field-infix:after,.user-theme .mat-input-element:disabled{color:rgba(0,0,0,.38)}.user-theme .mat-input-element{caret-color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-input-element::placeholder{color:rgba(0,0,0,.42)}.user-theme .mat-input-element::-moz-placeholder{color:rgba(0,0,0,.42)}.user-theme .mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,.42)}.user-theme .mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,.42)}.user-theme .mat-form-field.mat-accent .mat-input-element{caret-color:#43a047}.user-theme .mat-form-field-invalid .mat-input-element,.user-theme .mat-form-field.mat-warn .mat-input-element{caret-color:#f44336}.user-theme .mat-form-field-type-mat-native-select.mat-form-field-invalid .mat-form-field-infix:after{color:#f44336}.user-theme .mat-list-base .mat-list-item,.user-theme .mat-list-base .mat-list-option{color:rgba(0,0,0,.87)}.user-theme .mat-list-base .mat-subheader{color:rgba(0,0,0,.54)}.user-theme .mat-list-item-disabled{background-color:#eee}.user-theme .mat-action-list .mat-list-item:focus,.user-theme .mat-action-list .mat-list-item:hover,.user-theme .mat-list-option:focus,.user-theme .mat-list-option:hover,.user-theme .mat-nav-list .mat-list-item:focus,.user-theme .mat-nav-list .mat-list-item:hover{background:rgba(0,0,0,.04)}.user-theme .mat-list-single-selected-option,.user-theme .mat-list-single-selected-option:focus,.user-theme .mat-list-single-selected-option:hover{background:rgba(0,0,0,.12)}.user-theme .mat-menu-panel{background:#fff}.user-theme .mat-menu-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.user-theme .mat-menu-item{background:transparent;color:rgba(0,0,0,.87)}.user-theme .mat-menu-item[disabled],.user-theme .mat-menu-item[disabled] .mat-icon-no-color,.user-theme .mat-menu-item[disabled]:after{color:rgba(0,0,0,.38)}.user-theme .mat-menu-item-submenu-trigger:after,.user-theme .mat-menu-item .mat-icon-no-color{color:rgba(0,0,0,.54)}.user-theme .mat-menu-item-highlighted:not([disabled]),.user-theme .mat-menu-item.cdk-keyboard-focused:not([disabled]),.user-theme .mat-menu-item.cdk-program-focused:not([disabled]),.user-theme .mat-menu-item:hover:not([disabled]){background:rgba(0,0,0,.04)}.user-theme .mat-paginator{background:#fff}.user-theme .mat-paginator,.user-theme .mat-paginator-page-size .mat-select-trigger{color:rgba(0,0,0,.54)}.user-theme .mat-paginator-decrement,.user-theme .mat-paginator-increment{border-top:2px solid rgba(0,0,0,.54);border-right:2px solid rgba(0,0,0,.54)}.user-theme .mat-paginator-first,.user-theme .mat-paginator-last{border-top:2px solid rgba(0,0,0,.54)}.user-theme .mat-icon-button[disabled] .mat-paginator-decrement,.user-theme .mat-icon-button[disabled] .mat-paginator-first,.user-theme .mat-icon-button[disabled] .mat-paginator-increment,.user-theme .mat-icon-button[disabled] .mat-paginator-last{border-color:rgba(0,0,0,.38)}.user-theme .mat-progress-bar-background{fill:rgba(var(--user-theme-primary-100),1)}.user-theme .mat-progress-bar-buffer{background-color:rgba(var(--user-theme-primary-100),1)}.user-theme .mat-progress-bar-fill:after{background-color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-progress-bar.mat-accent .mat-progress-bar-background{fill:#cce4cd}.user-theme .mat-progress-bar.mat-accent .mat-progress-bar-buffer{background-color:#cce4cd}.user-theme .mat-progress-bar.mat-accent .mat-progress-bar-fill:after{background-color:#43a047}.user-theme .mat-progress-bar.mat-warn .mat-progress-bar-background{fill:#f9ccc9}.user-theme .mat-progress-bar.mat-warn .mat-progress-bar-buffer{background-color:#f9ccc9}.user-theme .mat-progress-bar.mat-warn .mat-progress-bar-fill:after{background-color:#f44336}.user-theme .mat-progress-spinner circle,.user-theme .mat-spinner circle{stroke:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-progress-spinner.mat-accent circle,.user-theme .mat-spinner.mat-accent circle{stroke:#43a047}.user-theme .mat-progress-spinner.mat-warn circle,.user-theme .mat-spinner.mat-warn circle{stroke:#f44336}.user-theme .mat-radio-outer-circle{border-color:rgba(0,0,0,.54)}.user-theme .mat-radio-button.mat-primary.mat-radio-checked .mat-radio-outer-circle{border-color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-radio-button.mat-primary.mat-radio-checked .mat-radio-persistent-ripple,.user-theme .mat-radio-button.mat-primary .mat-radio-inner-circle,.user-theme .mat-radio-button.mat-primary .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.user-theme .mat-radio-button.mat-primary:active .mat-radio-persistent-ripple{background-color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:#43a047}.user-theme .mat-radio-button.mat-accent.mat-radio-checked .mat-radio-persistent-ripple,.user-theme .mat-radio-button.mat-accent .mat-radio-inner-circle,.user-theme .mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.user-theme .mat-radio-button.mat-accent:active .mat-radio-persistent-ripple{background-color:#43a047}.user-theme .mat-radio-button.mat-warn.mat-radio-checked .mat-radio-outer-circle{border-color:#f44336}.user-theme .mat-radio-button.mat-warn.mat-radio-checked .mat-radio-persistent-ripple,.user-theme .mat-radio-button.mat-warn .mat-radio-inner-circle,.user-theme .mat-radio-button.mat-warn .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.user-theme .mat-radio-button.mat-warn:active .mat-radio-persistent-ripple{background-color:#f44336}.user-theme .mat-radio-button.mat-radio-disabled.mat-radio-checked .mat-radio-outer-circle,.user-theme .mat-radio-button.mat-radio-disabled .mat-radio-outer-circle{border-color:rgba(0,0,0,.38)}.user-theme .mat-radio-button.mat-radio-disabled .mat-radio-inner-circle,.user-theme .mat-radio-button.mat-radio-disabled .mat-radio-ripple .mat-ripple-element{background-color:rgba(0,0,0,.38)}.user-theme .mat-radio-button.mat-radio-disabled .mat-radio-label-content{color:rgba(0,0,0,.38)}.user-theme .mat-radio-button .mat-ripple-element{background-color:#000}.user-theme .mat-select-value{color:rgba(0,0,0,.87)}.user-theme .mat-select-placeholder{color:rgba(0,0,0,.42)}.user-theme .mat-select-disabled .mat-select-value{color:rgba(0,0,0,.38)}.user-theme .mat-select-arrow{color:rgba(0,0,0,.54)}.user-theme .mat-select-panel{background:#fff}.user-theme .mat-select-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.user-theme .mat-select-panel .mat-option.mat-selected:not(.mat-option-multiple){background:rgba(0,0,0,.12)}.user-theme .mat-form-field.mat-focused.mat-primary .mat-select-arrow{color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-form-field.mat-focused.mat-accent .mat-select-arrow{color:#43a047}.user-theme .mat-form-field.mat-focused.mat-warn .mat-select-arrow,.user-theme .mat-form-field .mat-select.mat-select-invalid .mat-select-arrow{color:#f44336}.user-theme .mat-form-field .mat-select.mat-select-disabled .mat-select-arrow{color:rgba(0,0,0,.38)}.user-theme .mat-drawer-container{background-color:#fafafa;color:rgba(0,0,0,.87)}.user-theme .mat-drawer{background-color:#fff;color:rgba(0,0,0,.87)}.user-theme .mat-drawer.mat-drawer-push{background-color:#fff}.user-theme .mat-drawer:not(.mat-drawer-side){box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12)}.user-theme .mat-drawer-side{border-right:1px solid rgba(0,0,0,.12)}.user-theme .mat-drawer-side.mat-drawer-end,.user-theme [dir=rtl] .mat-drawer-side{border-left:1px solid rgba(0,0,0,.12);border-right:none}.user-theme [dir=rtl] .mat-drawer-side.mat-drawer-end{border-left:none;border-right:1px solid rgba(0,0,0,.12)}.user-theme .mat-drawer-backdrop.mat-drawer-shown{background-color:rgba(0,0,0,.6)}.user-theme .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb{background-color:#43a047}.user-theme .mat-slide-toggle.mat-checked .mat-slide-toggle-bar{background-color:rgba(67,160,71,.54)}.user-theme .mat-slide-toggle.mat-checked .mat-ripple-element{background-color:#43a047}.user-theme .mat-slide-toggle.mat-primary.mat-checked .mat-ripple-element,.user-theme .mat-slide-toggle.mat-primary.mat-checked .mat-slide-toggle-bar,.user-theme .mat-slide-toggle.mat-primary.mat-checked .mat-slide-toggle-thumb{background-color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-slide-toggle.mat-warn.mat-checked .mat-slide-toggle-thumb{background-color:#f44336}.user-theme .mat-slide-toggle.mat-warn.mat-checked .mat-slide-toggle-bar{background-color:rgba(244,67,54,.54)}.user-theme .mat-slide-toggle.mat-warn.mat-checked .mat-ripple-element{background-color:#f44336}.user-theme .mat-slide-toggle:not(.mat-checked) .mat-ripple-element{background-color:#000}.user-theme .mat-slide-toggle-thumb{box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);background-color:#fafafa}.user-theme .mat-slide-toggle-bar{background-color:rgba(0,0,0,.38)}.user-theme .mat-slider-track-background{background-color:rgba(0,0,0,.26)}.user-theme .mat-primary .mat-slider-thumb,.user-theme .mat-primary .mat-slider-thumb-label,.user-theme .mat-primary .mat-slider-track-fill{background-color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-primary .mat-slider-thumb-label-text{color:rgba(var(--user-theme-primary-contrast-500),1)}.user-theme .mat-primary .mat-slider-focus-ring{background-color:rgba(var(--user-theme-primary-500),1);opacity:.2}.user-theme .mat-accent .mat-slider-thumb,.user-theme .mat-accent .mat-slider-thumb-label,.user-theme .mat-accent .mat-slider-track-fill{background-color:#43a047}.user-theme .mat-accent .mat-slider-thumb-label-text{color:#fff}.user-theme .mat-accent .mat-slider-focus-ring{background-color:rgba(67,160,71,.2)}.user-theme .mat-warn .mat-slider-thumb,.user-theme .mat-warn .mat-slider-thumb-label,.user-theme .mat-warn .mat-slider-track-fill{background-color:#f44336}.user-theme .mat-warn .mat-slider-thumb-label-text{color:#fff}.user-theme .mat-warn .mat-slider-focus-ring{background-color:rgba(244,67,54,.2)}.user-theme .cdk-focused .mat-slider-track-background,.user-theme .mat-slider:hover .mat-slider-track-background{background-color:rgba(0,0,0,.38)}.user-theme .mat-slider-disabled .mat-slider-thumb,.user-theme .mat-slider-disabled .mat-slider-track-background,.user-theme .mat-slider-disabled .mat-slider-track-fill,.user-theme .mat-slider-disabled:hover .mat-slider-track-background{background-color:rgba(0,0,0,.26)}.user-theme .mat-slider-min-value .mat-slider-focus-ring{background-color:rgba(0,0,0,.12)}.user-theme .mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb,.user-theme .mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb-label{background-color:rgba(0,0,0,.87)}.user-theme .mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb,.user-theme .mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb-label{background-color:rgba(0,0,0,.26)}.user-theme .mat-slider-min-value:not(.mat-slider-thumb-label-showing) .mat-slider-thumb{border-color:rgba(0,0,0,.26);background-color:transparent}.user-theme .mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused .mat-slider-thumb,.user-theme .mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover .mat-slider-thumb{border-color:rgba(0,0,0,.38)}.user-theme .mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused.mat-slider-disabled .mat-slider-thumb,.user-theme .mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover.mat-slider-disabled .mat-slider-thumb{border-color:rgba(0,0,0,.26)}.user-theme .mat-slider-has-ticks .mat-slider-wrapper:after{border-color:rgba(0,0,0,.7)}.user-theme .mat-slider-horizontal .mat-slider-ticks{background-image:repeating-linear-gradient(90deg,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent);background-image:-moz-repeating-linear-gradient(.0001deg,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent)}.user-theme .mat-slider-vertical .mat-slider-ticks{background-image:repeating-linear-gradient(180deg,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent)}.user-theme .mat-step-header.cdk-keyboard-focused,.user-theme .mat-step-header.cdk-program-focused,.user-theme .mat-step-header:hover{background-color:rgba(0,0,0,.04)}@media (hover:none){.user-theme .mat-step-header:hover{background:none}}.user-theme .mat-step-header .mat-step-label,.user-theme .mat-step-header .mat-step-optional{color:rgba(0,0,0,.54)}.user-theme .mat-step-header .mat-step-icon{background-color:rgba(0,0,0,.54);color:rgba(var(--user-theme-primary-contrast-500),1)}.user-theme .mat-step-header .mat-step-icon-selected,.user-theme .mat-step-header .mat-step-icon-state-done,.user-theme .mat-step-header .mat-step-icon-state-edit{background-color:rgba(var(--user-theme-primary-500),1);color:rgba(var(--user-theme-primary-contrast-500),1)}.user-theme .mat-step-header.mat-accent .mat-step-icon{color:#fff}.user-theme .mat-step-header.mat-accent .mat-step-icon-selected,.user-theme .mat-step-header.mat-accent .mat-step-icon-state-done,.user-theme .mat-step-header.mat-accent .mat-step-icon-state-edit{background-color:#43a047;color:#fff}.user-theme .mat-step-header.mat-warn .mat-step-icon{color:#fff}.user-theme .mat-step-header.mat-warn .mat-step-icon-selected,.user-theme .mat-step-header.mat-warn .mat-step-icon-state-done,.user-theme .mat-step-header.mat-warn .mat-step-icon-state-edit{background-color:#f44336;color:#fff}.user-theme .mat-step-header .mat-step-icon-state-error{background-color:transparent;color:#f44336}.user-theme .mat-step-header .mat-step-label.mat-step-label-active{color:rgba(0,0,0,.87)}.user-theme .mat-step-header .mat-step-label.mat-step-label-error{color:#f44336}.user-theme .mat-stepper-horizontal,.user-theme .mat-stepper-vertical{background-color:#fff}.user-theme .mat-stepper-vertical-line:before{border-left-color:rgba(0,0,0,.12)}.user-theme .mat-horizontal-stepper-header:after,.user-theme .mat-horizontal-stepper-header:before,.user-theme .mat-stepper-horizontal-line{border-top-color:rgba(0,0,0,.12)}.user-theme .mat-sort-header-arrow{color:#757575}.user-theme .mat-tab-header,.user-theme .mat-tab-nav-bar{border-bottom:1px solid rgba(0,0,0,.12)}.user-theme .mat-tab-group-inverted-header .mat-tab-header,.user-theme .mat-tab-group-inverted-header .mat-tab-nav-bar{border-top:1px solid rgba(0,0,0,.12);border-bottom:none}.user-theme .mat-tab-label,.user-theme .mat-tab-link{color:rgba(0,0,0,.87)}.user-theme .mat-tab-label.mat-tab-disabled,.user-theme .mat-tab-link.mat-tab-disabled{color:rgba(0,0,0,.38)}.user-theme .mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.87)}.user-theme .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.38)}.user-theme .mat-tab-group[class*=mat-background-] .mat-tab-header,.user-theme .mat-tab-nav-bar[class*=mat-background-]{border-bottom:none;border-top:none}.user-theme .mat-tab-group.mat-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(var(--user-theme-primary-100),1)}.user-theme .mat-tab-group.mat-primary .mat-ink-bar,.user-theme .mat-tab-nav-bar.mat-primary .mat-ink-bar{background-color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-tab-group.mat-primary.mat-background-primary>.mat-tab-header .mat-ink-bar,.user-theme .mat-tab-group.mat-primary.mat-background-primary>.mat-tab-link-container .mat-ink-bar,.user-theme .mat-tab-nav-bar.mat-primary.mat-background-primary>.mat-tab-header .mat-ink-bar,.user-theme .mat-tab-nav-bar.mat-primary.mat-background-primary>.mat-tab-link-container .mat-ink-bar{background-color:rgba(var(--user-theme-primary-contrast-500),1)}.user-theme .mat-tab-group.mat-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(200,230,201,.3)}.user-theme .mat-tab-group.mat-accent .mat-ink-bar,.user-theme .mat-tab-nav-bar.mat-accent .mat-ink-bar{background-color:#43a047}.user-theme .mat-tab-group.mat-accent.mat-background-accent>.mat-tab-header .mat-ink-bar,.user-theme .mat-tab-group.mat-accent.mat-background-accent>.mat-tab-link-container .mat-ink-bar,.user-theme .mat-tab-nav-bar.mat-accent.mat-background-accent>.mat-tab-header .mat-ink-bar,.user-theme .mat-tab-nav-bar.mat-accent.mat-background-accent>.mat-tab-link-container .mat-ink-bar{background-color:#fff}.user-theme .mat-tab-group.mat-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,205,210,.3)}.user-theme .mat-tab-group.mat-warn .mat-ink-bar,.user-theme .mat-tab-nav-bar.mat-warn .mat-ink-bar{background-color:#f44336}.user-theme .mat-tab-group.mat-warn.mat-background-warn>.mat-tab-header .mat-ink-bar,.user-theme .mat-tab-group.mat-warn.mat-background-warn>.mat-tab-link-container .mat-ink-bar,.user-theme .mat-tab-nav-bar.mat-warn.mat-background-warn>.mat-tab-header .mat-ink-bar,.user-theme .mat-tab-nav-bar.mat-warn.mat-background-warn>.mat-tab-link-container .mat-ink-bar{background-color:#fff}.user-theme .mat-tab-group.mat-background-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-background-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-background-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-background-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(var(--user-theme-primary-100),1)}.user-theme .mat-tab-group.mat-background-primary>.mat-tab-header,.user-theme .mat-tab-group.mat-background-primary>.mat-tab-header-pagination,.user-theme .mat-tab-group.mat-background-primary>.mat-tab-link-container,.user-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-header,.user-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination,.user-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container{background-color:rgba(var(--user-theme-primary-500),1)}.user-theme .mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-label,.user-theme .mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-label.mat-tab-disabled,.user-theme .mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-tab-link,.user-theme .mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-tab-link.mat-tab-disabled,.user-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-label,.user-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-label.mat-tab-disabled,.user-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-tab-link,.user-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-tab-link.mat-tab-disabled{color:rgba(var(--user-theme-primary-contrast-500),1)}.user-theme .mat-tab-group.mat-background-primary>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.user-theme .mat-tab-group.mat-background-primary>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.user-theme .mat-tab-group.mat-background-primary>.mat-tab-header .mat-focus-indicator:before,.user-theme .mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-chevron,.user-theme .mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.user-theme .mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-focus-indicator:before,.user-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.user-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.user-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-focus-indicator:before,.user-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-chevron,.user-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.user-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-focus-indicator:before{border-color:rgba(var(--user-theme-primary-contrast-500),1)}.user-theme .mat-tab-group.mat-background-primary>.mat-tab-header-pagination .mat-ripple-element,.user-theme .mat-tab-group.mat-background-primary>.mat-tab-header .mat-ripple-element,.user-theme .mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-ripple-element,.user-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination .mat-ripple-element,.user-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-ripple-element,.user-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-ripple-element{background-color:rgba(var(--user-theme-primary-contrast-500),1)}.user-theme .mat-tab-group.mat-background-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-background-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-background-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-background-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(200,230,201,.3)}.user-theme .mat-tab-group.mat-background-accent>.mat-tab-header,.user-theme .mat-tab-group.mat-background-accent>.mat-tab-header-pagination,.user-theme .mat-tab-group.mat-background-accent>.mat-tab-link-container,.user-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-header,.user-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination,.user-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container{background-color:#43a047}.user-theme .mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-label,.user-theme .mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-tab-link,.user-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-label,.user-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-tab-link{color:#fff}.user-theme .mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-label.mat-tab-disabled,.user-theme .mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-tab-link.mat-tab-disabled,.user-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-label.mat-tab-disabled,.user-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-tab-link.mat-tab-disabled{color:hsla(0,0%,100%,.4)}.user-theme .mat-tab-group.mat-background-accent>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.user-theme .mat-tab-group.mat-background-accent>.mat-tab-header .mat-focus-indicator:before,.user-theme .mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-chevron,.user-theme .mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-focus-indicator:before,.user-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.user-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-focus-indicator:before,.user-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-chevron,.user-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-focus-indicator:before{border-color:#fff}.user-theme .mat-tab-group.mat-background-accent>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.user-theme .mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.user-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.user-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:hsla(0,0%,100%,.4)}.user-theme .mat-tab-group.mat-background-accent>.mat-tab-header-pagination .mat-ripple-element,.user-theme .mat-tab-group.mat-background-accent>.mat-tab-header .mat-ripple-element,.user-theme .mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-ripple-element,.user-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination .mat-ripple-element,.user-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-ripple-element,.user-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-ripple-element{background-color:hsla(0,0%,100%,.12)}.user-theme .mat-tab-group.mat-background-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-background-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-background-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-group.mat-background-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.user-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,205,210,.3)}.user-theme .mat-tab-group.mat-background-warn>.mat-tab-header,.user-theme .mat-tab-group.mat-background-warn>.mat-tab-header-pagination,.user-theme .mat-tab-group.mat-background-warn>.mat-tab-link-container,.user-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-header,.user-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination,.user-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container{background-color:#f44336}.user-theme .mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-label,.user-theme .mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-tab-link,.user-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-label,.user-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-tab-link{color:#fff}.user-theme .mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-label.mat-tab-disabled,.user-theme .mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-tab-link.mat-tab-disabled,.user-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-label.mat-tab-disabled,.user-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-tab-link.mat-tab-disabled{color:hsla(0,0%,100%,.4)}.user-theme .mat-tab-group.mat-background-warn>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.user-theme .mat-tab-group.mat-background-warn>.mat-tab-header .mat-focus-indicator:before,.user-theme .mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-chevron,.user-theme .mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-focus-indicator:before,.user-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.user-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-focus-indicator:before,.user-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-chevron,.user-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-focus-indicator:before{border-color:#fff}.user-theme .mat-tab-group.mat-background-warn>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.user-theme .mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.user-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.user-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:hsla(0,0%,100%,.4)}.user-theme .mat-tab-group.mat-background-warn>.mat-tab-header-pagination .mat-ripple-element,.user-theme .mat-tab-group.mat-background-warn>.mat-tab-header .mat-ripple-element,.user-theme .mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-ripple-element,.user-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination .mat-ripple-element,.user-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-ripple-element,.user-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-ripple-element{background-color:hsla(0,0%,100%,.12)}.user-theme .mat-toolbar{background:#f5f5f5;color:rgba(0,0,0,.87)}.user-theme .mat-toolbar.mat-primary{background:rgba(var(--user-theme-primary-500),1);color:rgba(var(--user-theme-primary-contrast-500),1)}.user-theme .mat-toolbar.mat-accent{background:#43a047;color:#fff}.user-theme .mat-toolbar.mat-warn{background:#f44336;color:#fff}.user-theme .mat-toolbar .mat-focused .mat-form-field-ripple,.user-theme .mat-toolbar .mat-form-field-ripple,.user-theme .mat-toolbar .mat-form-field-underline{background-color:currentColor}.user-theme .mat-toolbar .mat-focused .mat-form-field-label,.user-theme .mat-toolbar .mat-form-field-label,.user-theme .mat-toolbar .mat-form-field.mat-focused .mat-select-arrow,.user-theme .mat-toolbar .mat-select-arrow,.user-theme .mat-toolbar .mat-select-value{color:inherit}.user-theme .mat-toolbar .mat-input-element{caret-color:currentColor}.user-theme .mat-tooltip{background:rgba(97,97,97,.9)}.user-theme .mat-tree{background:#fff}.user-theme .mat-nested-tree-node,.user-theme .mat-tree-node{color:rgba(0,0,0,.87)}.user-theme .mat-snack-bar-container{color:hsla(0,0%,100%,.7);background:#323232;box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.user-theme .mat-simple-snackbar-action{color:#43a047}button{border-radius:0!important}button:focus{outline:none!important}td.mat-cell,th{padding:.25rem!important}.page-subtitle{margin-bottom:1rem;font-size:1.5rem}.dark-hover-list-item:hover{background-color:rgba(0,0,0,.05)}.title-icon{font-size:32px}.dialog-container{display:flex;flex-direction:column}.dialog-container>*{width:100%}.loading{min-height:100vh;display:flex;justify-content:center;align-items:center}.book{--color:#000;--duration:6.8s;margin:32px 0 0;zoom:1.5}.book,.book .inner{width:32px;height:12px;position:relative}.book .inner{transform-origin:2px 2px;transform:rotate(-90deg);animation:book var(--duration) ease infinite}.book .inner .left,.book .inner .right{width:60px;height:4px;top:0;border-radius:2px;background:var(--color);position:absolute}.book .inner .left:before,.book .inner .right:before{content:"";width:48px;height:4px;border-radius:2px;background:inherit;position:absolute;top:-10px;left:6px}.book .inner .left{right:28px;transform-origin:58px 2px;transform:rotate(90deg);animation:left var(--duration) ease infinite}.book .inner .right{left:28px;transform-origin:2px 2px;transform:rotate(-90deg);animation:right var(--duration) ease infinite}.book .inner .middle{width:32px;height:12px;border:4px solid var(--color);border-top:0;border-radius:0 0 9px 9px;transform:translateY(2px)}.book ul{margin:0;padding:0;list-style:none;position:absolute;left:50%;top:0}.book ul li{height:4px;border-radius:2px;transform-origin:100% 2px;width:48px;right:0;top:-10px;position:absolute;background:var(--color);transform:rotate(0deg) translateX(-18px);animation-duration:var(--duration);animation-timing-function:ease;animation-iteration-count:infinite}.book ul li:nth-child(0){animation-name:page-0}.book ul li:first-child{animation-name:page-1}.book ul li:nth-child(2){animation-name:page-2}.book ul li:nth-child(3){animation-name:page-3}.book ul li:nth-child(4){animation-name:page-4}.book ul li:nth-child(5){animation-name:page-5}.book ul li:nth-child(6){animation-name:page-6}.book ul li:nth-child(7){animation-name:page-7}.book ul li:nth-child(8){animation-name:page-8}.book ul li:nth-child(9){animation-name:page-9}.book ul li:nth-child(10){animation-name:page-10}.book ul li:nth-child(11){animation-name:page-11}.book ul li:nth-child(12){animation-name:page-12}.book ul li:nth-child(13){animation-name:page-13}.book ul li:nth-child(14){animation-name:page-14}.book ul li:nth-child(15){animation-name:page-15}.book ul li:nth-child(16){animation-name:page-16}.book ul li:nth-child(17){animation-name:page-17}.book ul li:nth-child(18){animation-name:page-18}@keyframes page-0{4%{transform:rotate(0deg) translateX(-18px)}13%,54%{transform:rotate(180deg) translateX(-18px)}63%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-1{5.86%{transform:rotate(0deg) translateX(-18px)}14.74%,55.86%{transform:rotate(180deg) translateX(-18px)}64.74%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-2{7.72%{transform:rotate(0deg) translateX(-18px)}16.48%,57.72%{transform:rotate(180deg) translateX(-18px)}66.48%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-3{9.58%{transform:rotate(0deg) translateX(-18px)}18.22%,59.58%{transform:rotate(180deg) translateX(-18px)}68.22%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-4{11.44%{transform:rotate(0deg) translateX(-18px)}19.96%,61.44%{transform:rotate(180deg) translateX(-18px)}69.96%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-5{13.3%{transform:rotate(0deg) translateX(-18px)}21.7%,63.3%{transform:rotate(180deg) translateX(-18px)}71.7%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-6{15.16%{transform:rotate(0deg) translateX(-18px)}23.44%,65.16%{transform:rotate(180deg) translateX(-18px)}73.44%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-7{17.02%{transform:rotate(0deg) translateX(-18px)}25.18%,67.02%{transform:rotate(180deg) translateX(-18px)}75.18%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-8{18.88%{transform:rotate(0deg) translateX(-18px)}26.92%,68.88%{transform:rotate(180deg) translateX(-18px)}76.92%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-9{20.74%{transform:rotate(0deg) translateX(-18px)}28.66%,70.74%{transform:rotate(180deg) translateX(-18px)}78.66%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-10{22.6%{transform:rotate(0deg) translateX(-18px)}30.4%,72.6%{transform:rotate(180deg) translateX(-18px)}80.4%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-11{24.46%{transform:rotate(0deg) translateX(-18px)}32.14%,74.46%{transform:rotate(180deg) translateX(-18px)}82.14%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-12{26.32%{transform:rotate(0deg) translateX(-18px)}33.88%,76.32%{transform:rotate(180deg) translateX(-18px)}83.88%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-13{28.18%{transform:rotate(0deg) translateX(-18px)}35.62%,78.18%{transform:rotate(180deg) translateX(-18px)}85.62%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-14{30.04%{transform:rotate(0deg) translateX(-18px)}37.36%,80.04%{transform:rotate(180deg) translateX(-18px)}87.36%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-15{31.9%{transform:rotate(0deg) translateX(-18px)}39.1%,81.9%{transform:rotate(180deg) translateX(-18px)}89.1%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-16{33.76%{transform:rotate(0deg) translateX(-18px)}40.84%,83.76%{transform:rotate(180deg) translateX(-18px)}90.84%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-17{35.62%{transform:rotate(0deg) translateX(-18px)}42.58%,85.62%{transform:rotate(180deg) translateX(-18px)}92.58%{transform:rotate(0deg) translateX(-18px)}}@keyframes page-18{37.48%{transform:rotate(0deg) translateX(-18px)}44.32%,87.48%{transform:rotate(180deg) translateX(-18px)}94.32%{transform:rotate(0deg) translateX(-18px)}}@keyframes left{4%{transform:rotate(0deg)}10%,40%{transform:rotate(0deg)}46%,54%{transform:rotate(90deg)}60%,90%{transform:rotate(0deg)}96%{transform:rotate(90deg)}}@keyframes right{4%{transform:rotate(0deg)}10%,40%{transform:rotate(0deg)}46%,54%{transform:rotate(-90deg)}60%,90%{transform:rotate(0deg)}96%{transform:rotate(-90deg)}}@keyframes book{4%{transform:rotate(0deg)}10%,40%{transform:rotate(0deg);transform-origin:2px 2px}40.01%,59.99%{transform-origin:30px 2px}46%,54%{transform:rotate(90deg)}60%,90%{transform:rotate(0deg);transform-origin:2px 2px}96%{transform:rotate(-90deg)}}.action-button:after{content:"…"}.perun-icon path,.perun-icon polygon,.perun-icon rect{fill:currentColor} /*! * Bootstrap v4.6.0 (https://getbootstrap.com/) * Copyright 2011-2021 The Bootstrap Authors diff --git a/dist/apps/user-profile/assets/config/defaultConfig.json b/dist/apps/user-profile/assets/config/defaultConfig.json index 0d436b86c..ca208ecec 100644 --- a/dist/apps/user-profile/assets/config/defaultConfig.json +++ b/dist/apps/user-profile/assets/config/defaultConfig.json @@ -224,7 +224,6 @@ "sidemenu_text_color": "#ffffff", "sidemenu_bg_color": "#263238", "sidemenu_border_color": "#071e24", - "sidemenu_item_icon_color": "#ffffff", "sidemenu_hover_color": "#566268", "sidemenu-link-active": "#465258", "sidemenu_active_text_color": "#ffffff", diff --git a/dist/apps/user-profile/index.html b/dist/apps/user-profile/index.html index 6ef6aff76..02484fb92 100644 --- a/dist/apps/user-profile/index.html +++ b/dist/apps/user-profile/index.html @@ -13,5 +13,5 @@
- + diff --git a/dist/apps/user-profile/main-es2015.d04b37070158a26b7d86.js b/dist/apps/user-profile/main-es2015.23bc9b991eb85fff1c1e.js similarity index 50% rename from dist/apps/user-profile/main-es2015.d04b37070158a26b7d86.js rename to dist/apps/user-profile/main-es2015.23bc9b991eb85fff1c1e.js index e43d04380..3beace896 100644 --- a/dist/apps/user-profile/main-es2015.d04b37070158a26b7d86.js +++ b/dist/apps/user-profile/main-es2015.23bc9b991eb85fff1c1e.js @@ -1 +1 @@ -(self.webpackChunkperun_web_apps=self.webpackChunkperun_web_apps||[]).push([[179],{1730:function(t){function e(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=function(){return[]},e.resolve=e,e.id=1730,t.exports=e},5411:function(t,e,i){"use strict";var n=i(1511),s=i(1572);class o extends n.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class r extends o{static makeCurrent(){(0,n.HT)(new r)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(c=c||document.querySelector("base"),c?c.getAttribute("href"):null);return null==e?null:function(t){a=a||document.createElement("a"),a.setAttribute("href",t);const e=a.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){c=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return(0,n.Mx)(document.cookie,t)}}let a,c=null;const u=new s.OlP("TRANSITION_ID"),l=[{provide:s.ip1,useFactory:function(t,e,i){return()=>{i.get(s.CZH).donePromise.then(()=>{const i=(0,n.q)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>i.remove(t))})}},deps:[u,n.K0,s.zs3],multi:!0}];class h{static init(){(0,s.VLi)(new h)}addToWindow(t){s.dqk.getAngularTestability=(e,i=!0)=>{const n=t.findTestabilityInTree(e,i);if(null==n)throw new Error("Could not find testability for element.");return n},s.dqk.getAllAngularTestabilities=()=>t.getAllTestabilities(),s.dqk.getAllAngularRootElements=()=>t.getAllRootElements(),s.dqk.frameworkStabilizers||(s.dqk.frameworkStabilizers=[]),s.dqk.frameworkStabilizers.push(t=>{const e=s.dqk.getAllAngularTestabilities();let i=e.length,n=!1;const o=function(e){n=n||e,i--,0==i&&t(n)};e.forEach(function(t){t.whenStable(o)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:i?(0,n.q)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let d=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const p=new s.OlP("EventManagerPlugins");let f=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,i){return this._findPluginFor(e).addEventListener(t,e,i)}addGlobalEventListener(t,e,i){return this._findPluginFor(e).addGlobalEventListener(t,e,i)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const i=this._plugins;for(let n=0;n{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),_=(()=>{class t extends m{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,i){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,i.push(e.appendChild(n))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(b),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,i)=>{this._addStylesToHost(t,i,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(b))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function b(t){(0,n.q)().remove(t)}const y={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/"},w=/%COMP%/g;function A(t,e,i){for(let n=0;n{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let v=(()=>{class t{constructor(t,e,i){this.eventManager=t,this.sharedStylesHost=e,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new T(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case s.ifc.Emulated:{let i=this.rendererByCompId.get(e.id);return i||(i=new k(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,i)),i.applyToHost(t),i}case 1:case s.ifc.ShadowDom:return new L(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=A(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(f),s.LFG(_),s.LFG(s.AFp))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class T{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(y[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,n){if(n){e=n+":"+e;const s=y[n];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const n=y[i];n?t.removeAttributeNS(n,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,n){n&(s.JOm.DashCase|s.JOm.Important)?t.style.setProperty(e,i,n&s.JOm.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&s.JOm.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,M(i)):this.eventManager.addEventListener(t,e,M(i))}}class k extends T{constructor(t,e,i,n){super(t),this.component=i;const s=A(n+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(w,n+"-"+i.id),this.hostAttr="_nghost-%COMP%".replace(w,n+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class L extends T{constructor(t,e,i,n){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=A(n.id,n.styles,[]);for(let o=0;o{class t extends g{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,i){return t.addEventListener(e,i,!1),()=>this.removeEventListener(t,e,i)}removeEventListener(t,e,i){return t.removeEventListener(e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const S=["alt","control","meta","shift"],E={"\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"},z={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"},x={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let O=(()=>{class t extends g{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,s){const o=t.parseEventName(i),r=t.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,n.q)().onAndCancel(e,o.domEventName,r))}static parseEventName(e){const i=e.toLowerCase().split("."),n=i.shift();if(0===i.length||"keydown"!==n&&"keyup"!==n)return null;const s=t._normalizeKey(i.pop());let o="";if(S.forEach(t=>{const e=i.indexOf(t);e>-1&&(i.splice(e,1),o+=t+".")}),o+=s,0!=i.length||0===s.length)return null;const r={};return r.domEventName=n,r.fullKey=o,r}static getEventFullKey(t){let e="",i=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&z.hasOwnProperty(e)&&(e=z[e]))}return E[e]||e}(t);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),S.forEach(n=>{n!=i&&(0,x[n])(t)&&(e+=n+".")}),e+=i,e}static eventCallback(e,i,n){return s=>{t.getEventFullKey(s)===e&&n.runGuarded(()=>i(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),R=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,s.Yz7)({factory:function(){return(0,s.LFG)(P)},token:t,providedIn:"root"}),t})();function D(t){return new P(t.get(n.K0))}let P=(()=>{class t extends R{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case s.q3G.NONE:return e;case s.q3G.HTML:return(0,s.qzn)(e,"HTML")?(0,s.z3N)(e):(0,s.EiD)(this._doc,String(e)).toString();case s.q3G.STYLE:return(0,s.qzn)(e,"Style")?(0,s.z3N)(e):e;case s.q3G.SCRIPT:if((0,s.qzn)(e,"Script"))return(0,s.z3N)(e);throw new Error("unsafe value used in a script context");case s.q3G.URL:return(0,s.yhl)(e),(0,s.qzn)(e,"URL")?(0,s.z3N)(e):(0,s.mCW)(String(e));case s.q3G.RESOURCE_URL:if((0,s.qzn)(e,"ResourceURL"))return(0,s.z3N)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return(0,s.JVY)(t)}bypassSecurityTrustStyle(t){return(0,s.L6k)(t)}bypassSecurityTrustScript(t){return(0,s.eBb)(t)}bypassSecurityTrustUrl(t){return(0,s.LAX)(t)}bypassSecurityTrustResourceUrl(t){return(0,s.pB0)(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=(0,s.Yz7)({factory:function(){return D((0,s.LFG)(s.gxx))},token:t,providedIn:"root"}),t})();const N=(0,s.eFA)(s._c5,"browser",[{provide:s.Lbi,useValue:n.bD},{provide:s.g9A,useValue:function(){r.makeCurrent(),h.init()},multi:!0},{provide:n.K0,useFactory:function(){return(0,s.RDi)(document),document},deps:[]}]),I=[[],{provide:s.zSh,useValue:"root"},{provide:s.qLn,useFactory:function(){return new s.qLn},deps:[]},{provide:p,useClass:C,multi:!0,deps:[n.K0,s.R0b,s.Lbi]},{provide:p,useClass:O,multi:!0,deps:[n.K0]},[],{provide:v,useClass:v,deps:[f,_,s.AFp]},{provide:s.FYo,useExisting:v},{provide:m,useExisting:_},{provide:_,useClass:_,deps:[n.K0]},{provide:s.dDg,useClass:s.dDg,deps:[s.R0b]},{provide:f,useClass:f,deps:[p,s.R0b]},{provide:n.JF,useClass:d,deps:[]},[]];let q=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:s.AFp,useValue:e.appId},{provide:u,useExisting:s.AFp},l]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(t,12))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:I,imports:[n.ez,s.hGG]}),t})();function B(){return new H((0,s.LFG)(n.K0))}let H=(()=>{class t{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=(0,s.Yz7)({factory:B,token:t,providedIn:"root"}),t})();"undefined"!=typeof window&&window;var Y=i(9063);class j{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const F=new s.OlP("basePath");class W{constructor(t={}){this.apiKeys=t.apiKeys,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.withCredentials=t.withCredentials,this.encoder=t.encoder}selectHeaderContentType(t){if(0===t.length)return;const e=t.find(t=>this.isJsonMime(t));return void 0===e?t[0]:e}selectHeaderAccept(t){if(0===t.length)return;const e=t.find(t=>this.isJsonMime(t));return void 0===e?t[0]:e}isJsonMime(t){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==t&&(e.test(t)||"application/json-patch+json"===t.toLowerCase())}}let U=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Y.WM,this.configuration=new W,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new j}convertAttributeToNonunique(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}convertAttributeToUnique(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("attribute",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteAttributeDefinitions(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let n=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("attributes[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllAttributeDefinitions(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAttribute(t,e,i,n,s,o,r,a,c,u,l,h="body",d=!1){let p=new Y.LE({encoder:this.encoder});null!=t&&(p=p.set("attributeName",t)),null!=e&&(p=p.set("attributeId",e)),null!=i&&(p=p.set("facility",i)),null!=n&&(p=p.set("user",n)),null!=s&&(p=p.set("vo",s)),null!=o&&(p=p.set("resource",o)),null!=r&&(p=p.set("member",r)),null!=a&&(p=p.set("group",a)),null!=c&&(p=p.set("host",c)),null!=u&&(p=p.set("userExtSource",u)),null!=l&&(p=p.set("key",l));let f=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(f=f.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(f=f.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;f=f.set("Authorization","Bearer "+t)}const g=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==g&&(f=f.set("Accept",g)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{params:p,withCredentials:this.configuration.withCredentials,headers:f,observe:h,reportProgress:d})}getAttributeDefinitionById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeDefinitionByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeDefinitionsByNamespace(t,e="body",i=!1){if(null==t)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("namespace",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeModulesDependenciesForAttributeGraphText(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("format",t)),null!=e&&(s=s.set("attrName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAttributeModulesDependenciesGraphText(t,e="body",i=!1){if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("format",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeRights(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributesDefinitionWithRights(t,e,i,n,s,o,r,a,c="body",u=!1){let l=new Y.LE({encoder:this.encoder});null!=t&&(l=l.set("member",t)),null!=e&&(l=l.set("user",e)),null!=i&&(l=l.set("vo",i)),null!=n&&(l=l.set("group",n)),null!=s&&(l=l.set("resource",s)),null!=o&&(l=l.set("facility",o)),null!=r&&(l=l.set("host",r)),null!=a&&(l=l.set("userExtSource",a));let h=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(h=h.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(h=h.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;h=h.set("Authorization","Bearer "+t)}const d=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==d&&(h=h.set("Accept",d)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{params:l,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:u})}getEntitylessAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("key",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getEntitylessAttributesByKey(t,e="body",i=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("key",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEntitylessAttributesByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("attrName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEntitylessAttributesWithKeys(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("attrName",t)),e&&e.forEach(t=>{s=s.append("keys[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getEntitylessKeys(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilityAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilityResourceUserMemberAttributes(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==n)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("user",i)),null!=n&&(r=r.set("member",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getFacilityUserAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupResourceAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getGroupResourceAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getGroupResourceAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getHostAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getHostAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getHostAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("host",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getLogins(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getLogins.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberAndUserAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==e)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("workWithUserAttributes",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberAndUserAttributesByNames(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("workWithUserAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberGroupAndUserAttributesByNames(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attrNames[]",t)}),null!=n&&(r=r.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberGroupAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("attributeId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberGroupAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("attributeName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberGroupAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberGroupAttributesByNames(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberResourceAndUserFacilityAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("workWithUserAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberResourceAndUserFacilityAttributesByNames(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attrNames[]",t)}),null!=n&&(r=r.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberResourceAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberResourceAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberResourceAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesFacilityService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesFacilityServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let s=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("services[]",t)}),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesGroupResourceService(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("group",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getRequiredAttributesHostService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==e)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("host",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("workWithUserAttributes",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesMemberGroup(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("workWithUserAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getRequiredAttributesMemberGroupResourceService(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==n)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let a=new Y.LE({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("group",i)),null!=n&&(a=a.set("member",n)),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getRequiredAttributesMemberGroupService(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("member",i)),null!=n&&(r=r.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRequiredAttributesMemberResource(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("workWithUserAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getRequiredAttributesMemberResourceService(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("member",i)),null!=n&&(r=r.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRequiredAttributesResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesResourceService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesResourceServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let s=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("services[]",t)}),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesUserFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesVoService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("vo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourceAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceGroupAndGroupAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==i)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("workWithGroupAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getResourceGroupAndGroupAttributesByNames(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attrNames[]",t)}),null!=n&&(r=r.set("workWithGroupAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getResourceGroupAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceGroupMemberAttributesByNames(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==n)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("member",i)),n&&n.forEach(t=>{r=r.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getUserAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserExtSourceAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserExtSourceAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserExtSourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("userExtSource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourceAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserFacilityAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("attributeId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getUserFacilityAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("attributeName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getUserFacilityAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getVoAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getVoAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getVoAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeAttributesForFacilityResourceGroupUserMember(t,e,i,n,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==i)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==n)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let c=new Y.LE({encoder:this.encoder});null!=t&&(c=c.set("facility",t)),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("group",i)),null!=n&&(c=c.set("user",n)),null!=s&&(c=c.set("member",s)),o&&o.forEach(t=>{c=c.append("attributes[]",t)});let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}removeAttributesForFacilityResourceUserMember(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==i)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==n)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let a=new Y.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("user",i)),null!=n&&(a=a.set("member",n)),s&&s.forEach(t=>{a=a.append("attributes[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}removeEntitylessAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("key",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupResourceAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attribute",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeGroupResourceAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeGroupResourceAttributesWorkWithGroupAttributes(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)}),null!=n&&(r=r.set("workWithGroupAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeHostAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeHostAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeMemberAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeMemberAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeMemberAttributesWorkWithUserAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)}),null!=i&&(o=o.set("workWithUserAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeMemberGroupAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("attribute",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeMemberGroupAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeMemberGroupAttributesWorkWithUserAttributes(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)}),null!=n&&(r=r.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeMemberResourceAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attribute",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeMemberResourceAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeResourceAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeResourceAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUesAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserExtSourceAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserFacilityAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("attribute",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeUserFacilityAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),i&&i.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeVoAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeVoAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}setAttributeRights(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAttributeRights was null or undefined when calling setAttributeRights.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setEntitylessAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityResourceGroupUserMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityResourceUserMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setHostAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetHostAttribute was null or undefined when calling setHostAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setHostAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetHostAttributes was null or undefined when calling setHostAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupWithUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAndUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberWithUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceGroupWithGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserAttribute was null or undefined when calling setUserAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserAttributes was null or undefined when calling setUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserExtSourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserExtSourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserFacilityAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setVoAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoAttribute was null or undefined when calling setVoAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setVoAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoAttributes was null or undefined when calling setVoAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Y.eN),s.LFG(F,8),s.LFG(W,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),K=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Y.WM,this.configuration=new W,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new j}getAllPolicies(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllRolesManagementRules(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAuthzAdminGroups(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("role",t)),null!=e&&(o=o.set("complementaryObjectId",e)),null!=i&&(o=o.set("complementaryObjectName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getAuthzRichAdmins(t,e,i,n,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==n)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let c=new Y.LE({encoder:this.encoder});null!=t&&(c=c.set("role",t)),null!=e&&(c=c.set("complementaryObjectId",e)),null!=i&&(c=c.set("complementaryObjectName",i)),n&&n.forEach(t=>{c=c.append("specificAttributes",t)}),null!=s&&(c=c.set("allUserAttributes",s)),null!=o&&(c=c.set("onlyDirectAdmins",o));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}getFacilitiesWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let s=new Y.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupRoleNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupRoles(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("groupId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let s=new Y.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getLoggedUser(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getMembersWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let s=new Y.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getPerunPrincipal(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPrincipalRoleNames(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getResourcesWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let s=new Y.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSecurityTeamsWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let s=new Y.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserRoleNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserRoles(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("userId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let s=new Y.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}isFacilityAdmin(t,e="body",i=!1){let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isGroupAdmin(t,e="body",i=!1){let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isPerunAdmin(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}isVoAdmin(t,e="body",i=!1){let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}keepAlive(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}loadAuthorizationComponents(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}setRoleWithGroupComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter setRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setRoleWithUserComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter setRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unsetRoleWithGroupComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter unsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unsetRoleWithUserComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter unsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Y.eN),s.LFG(F,8),s.LFG(W,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Z=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Y.WM,this.configuration=new W,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new j}addMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling addMember.");let s=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("member",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addMembers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling addMembers.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("members[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}canExtendMembershipInGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createGroupUnion(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resultGroup",t)),null!=e&&(s=s.set("operandGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createGroupWithParentGroupNameDescription(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("parentGroup",t)),null!=e&&(o=o.set("name",e)),null!=i&&(o=o.set("description",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}createGroupWithVoNameDescription(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("name",e)),null!=i&&(o=o.set("description",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}deleteGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("force",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputDeleteGroups was null or undefined when calling deleteGroups.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/deleteGroups`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}extendMembershipInGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}forceAllSubGroupsSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}forceGroupStructureSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}forceGroupSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllGroupsFromAllVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups/all`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllMemberGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllRichGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");let n=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("attrNames[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllRichGroupsWithAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAllRichSubGroupsWithGroupAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==e)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("name",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupByName`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupMemberById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==e)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("member",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupMembersCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupMembersCountsByGroupStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupMembersCountsByVoStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupRichMembersByIds(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==e)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("members[]",t)}),i&&i.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getGroupUnions(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==e)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("reverseDirection",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupUnions`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupsByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let n=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedGroups was null or undefined when calling getGroupsPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getGroupsPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getIndirectMembershipPaths(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberRichGroupsWithAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRichGroupByIdWithAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("groupId",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSubgroupsPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getSubgroupsPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}isGroupMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==e)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isGroupMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}moveGroupWithDestinationGroupMovingGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let s=new Y.LE({encoder:this.encoder});null!=e&&(s=s.set("destinationGroup",e)),null!=t&&(s=s.set("movingGroup",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupUnion(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resultGroup",t)),null!=e&&(s=s.set("operandGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMember.");let s=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("member",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeMembers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("members[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}setGroupsMemberStatus(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==e)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==i)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("status",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}updateGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateGroup was null or undefined when calling updateGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/updateGroup`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Y.eN),s.LFG(F,8),s.LFG(W,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),G=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Y.WM,this.configuration=new W,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new j}canExtendMembership(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/canExtendMembership`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createMemberForCandidate(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/c`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createMemberForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberForUser was null or undefined when calling createMemberForUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createMemberFromExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/extSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSpecificMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSpecificMember was null or undefined when calling createSpecificMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSpecificMember`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMember1 was null or undefined when calling createSponsoredMembers.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMembersFromCSV(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let n=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("members[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}extendMembership(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findCompleteRichMembersByAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let o=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("attrsNames[]",t)}),null!=e&&(o=o.set("searchString",e)),i&&i.forEach(t=>{o=o.append("allowedStatuses[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}findCompleteRichMembersForGroup(t,e,i,n,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==n)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let c=new Y.LE({encoder:this.encoder});null!=t&&(c=c.set("group",t)),e&&e.forEach(t=>{c=c.append("attrsNames[]",t)}),s&&s.forEach(t=>{c=c.append("allowedStatuses[]",t)}),o&&o.forEach(t=>{c=c.append("allowedGroupStatuses[]",t)}),null!=i&&(c=c.set("searchString",i)),null!=n&&(c=c.set("lookingInParentGroup",n));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}findCompleteRichMembersForVo(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("attrsNames[]",t)}),n&&n.forEach(t=>{r=r.append("allowedStatuses[]",t)}),null!=i&&(r=r.set("searchString",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}findMembersInVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("searchString",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findMembersInVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}findSponsoredCompleteRichMembersForVo(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==n)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("attrsNames[]",t)}),null!=i&&(r=r.set("searchString",i)),null!=n&&(r=r.set("onlySponsored",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAllMembers(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllMembers`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllNamespacesRules(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllSponsoredMembersAndTheirSponsors(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getCompleteRichMembersForGroup(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let a=new Y.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),i&&i.forEach(t=>{a=a.append("allowedStatuses[]",t)}),n&&n.forEach(t=>{a=a.append("allowedGroupStatuses[]",t)}),null!=e&&(a=a.set("lookingInParentGroup",e)),s&&s.forEach(t=>{a=a.append("attrsNames[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getCompleteRichMembersForGroupResource(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==i)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==n)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attrsNames[]",t)}),n&&n.forEach(t=>{r=r.append("allowedStatuses[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getCompleteRichMembersForVo(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("allowedStatuses[]",t)}),i&&i.forEach(t=>{o=o.append("attrsNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberByExtSourceNameAndExtLogin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==i)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("extLogin",e)),null!=i&&(o=o.set("extSourceName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberByUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByUser`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMembers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("status",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMembersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let n=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMembersByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMembersCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMembersPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedMembers was null or undefined when calling getMembersPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/getMembersPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getMembersWithStatusCount(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==e)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("status",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount/status`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRichMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichMemberWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichMembersByIds(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let s=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)}),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getSponsoredMembersAndTheirSponsors(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSponsorsByMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/member`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSponsorsByVo(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("extSourceName",e)),null!=i&&(r=r.set("extLogin",i)),n&&n.forEach(t=>{r=r.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/vo`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}moveMembership(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==e)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==i)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("sourceUser",e)),null!=i&&(o=o.set("targetUser",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeSponsor(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("sponsor",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}sendAccountActivationLinkEmail(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==n)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("namespace",e)),null!=i&&(r=r.set("emailAttributeURN",i)),null!=n&&(r=r.set("language",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}sendPasswordResetLinkEmail(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==n)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let a=new Y.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("emailAttributeURN",i)),null!=n&&(a=a.set("language",n)),null!=s&&(a=a.set("baseUrl",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}setSponsoredMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/setSponsoredMember`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setSponsorshipForMember(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("sponsoredMember",t)),null!=e&&(o=o.set("sponsor",e)),null!=i&&(o=o.set("validityTo",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}setStatus(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==e)throw new Error("Required parameter status was null or undefined when calling setStatus.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("status",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}sponsorMember(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("sponsor",e)),null!=i&&(o=o.set("validityTo",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}updateSponsorshipValidity(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("sponsor",e)),null!=i&&(o=o.set("validityTo",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}validateMemberAsync(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Y.eN),s.LFG(F,8),s.LFG(W,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),X=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Y.WM,this.configuration=new W,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new j}sentMessageToRTWithMemberQueue(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("memberId",t)),null!=e&&(r=r.set("queue",e)),null!=i&&(r=r.set("subject",i)),null!=n&&(r=r.set("text",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}sentMessageToRTWithQueue(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("queue",t)),null!=e&&(o=o.set("subject",e)),null!=i&&(o=o.set("text",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}sentMessageToRTWithVo(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("voId",t)),null!=e&&(o=o.set("subject",e)),null!=i&&(o=o.set("text",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}sentMessageToRTWithVoQueue(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("voId",t)),null!=e&&(r=r.set("queue",e)),null!=i&&(r=r.set("subject",i)),null!=n&&(r=r.set("text",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Y.eN),s.LFG(F,8),s.LFG(W,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),V=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Y.WM,this.configuration=new W,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new j}addApplicationMailForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addApplicationMailForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addGroupsToAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let n=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("groups[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}approveApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}checkForSimilarUsersWithAuthInfo(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}consolidateIdentityUsingToken(t,e="body",i=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("token",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}copyFormFromGroupToGroup(t,e,i="body",n=!1){let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyFormFromGroupToVo(t,e,i="body",n=!1){let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toVo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyFormFromVoToGroup(t,e,i="body",n=!1){let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyFormFromVoToVo(t,e,i="body",n=!1){let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toVo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyMailsFromGroupToGroup(t,e,i="body",n=!1){let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyMailsFromGroupToVo(t,e,i="body",n=!1){let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toVo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyMailsFromVoToGroup(t,e,i="body",n=!1){let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyMailsFromVoToVo(t,e,i="body",n=!1){let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toVo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createApplicationFormInGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createApplicationFormInVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteApplicationMailForGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("id",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteApplicationMailForVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("id",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteGroupsFromAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let n=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("groups[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationDataById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationMailsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationMailsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationsForGroup(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(t=>{r=r.append("state[]",t)}),null!=i&&(r=r.set("dateFrom",i)),null!=n&&(r=r.set("dateTo",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getApplicationsForMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getApplicationsForVo(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("state[]",t)}),null!=i&&(r=r.set("dateFrom",i)),null!=n&&(r=r.set("dateTo",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getConsolidatorToken(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFormItemsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFormItemsForGroupWithType(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("type",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFormItemsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFormItemsForVoWithType(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("type",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupApplicationForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsToAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoApplicationForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}rejectApplication(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t)),null!=e&&(s=s.set("reason",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}sendInvitation(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let r=new Y.LE({encoder:this.encoder});null!=i&&(r=r.set("voId",i)),null!=n&&(r=r.set("name",n)),null!=t&&(r=r.set("email",t)),null!=e&&(r=r.set("language",e));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}sendInvitationForGroup(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let a=new Y.LE({encoder:this.encoder});null!=i&&(a=a.set("voId",i)),null!=n&&(a=a.set("groupId",n)),null!=s&&(a=a.set("name",s)),null!=t&&(a=a.set("email",t)),null!=e&&(a=a.set("language",e));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}sendInvitationGroupToExistingUser(t,e,i,n="body",s=!1){let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("userId",t)),null!=e&&(o=o.set("voId",e)),null!=i&&(o=o.set("groupId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}sendInvitationToExistingUser(t,e,i="body",n=!1){let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("userId",t)),null!=e&&(s=s.set("voId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}sendMessage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSendMessage was null or undefined when calling sendMessage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setSendingEnabled(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}submitApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSubmitApplication was null or undefined when calling submitApplication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateApplicationMail(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateForm was null or undefined when calling updateForm.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemData(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputFormItemData was null or undefined when calling updateFormItemData.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsData(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputFormItemData1 was null or undefined when calling updateFormItemsData.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}verifyApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Y.eN),s.LFG(F,8),s.LFG(W,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Y.WM,this.configuration=new W,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new j}activateGroupResourceAssignment(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("async",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}addAdminToGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addAdminToUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addResourceSelfServiceGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addResourceSelfServiceUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}allowGroupsToResources(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");let o=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("groups[]",t)}),e&&e.forEach(t=>{o=o.append("resources[]",t)}),null!=i&&(o=o.set("async",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}assignGroupToResource(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let a=new Y.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("async",i)),null!=n&&(a=a.set("assignInactive",n)),null!=s&&(a=a.set("autoAssignSubgroups",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}assignGroupToResources(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let a=new Y.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),e&&e.forEach(t=>{a=a.append("resources[]",t)}),null!=i&&(a=a.set("async",i)),null!=n&&(a=a.set("assignInactive",n)),null!=s&&(a=a.set("autoAssignSubgroups",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}assignGroupsToResource(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let a=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{a=a.append("groups[]",t)}),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("async",i)),null!=n&&(a=a.set("assignInactive",n)),null!=s&&(a=a.set("autoAssignSubgroups",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}assignResourceTagToResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}assignService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling assignService.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}assignServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling assignServices.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("services[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}assignServicesPackage(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("servicesPackage",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCopyResource was null or undefined when calling copyResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/copyResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createResource(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==i)throw new Error("Required parameter name was null or undefined when calling createResource.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("name",i)),null!=n&&(r=r.set("description",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}createResourceTagWithResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createResourceTagWithTagName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("tagName",t)),null!=e&&(s=s.set("vo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deactivateGroupResourceAssignment(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteAllResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteAllResourcesTagsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAdminGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAdmins(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("onlyDirectAdmins",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdmins`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAllResourcesByResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAllResourcesTagsForResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllResourcesTagsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllResourcesWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedUsersOfResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedGroups(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("member",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAssignedMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedMembersWithStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembersWithStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesWithGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesWithMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesWithStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResourcesWithStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesWithGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesWithMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesWithMemberService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAssignedServicesToResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getBansForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getBansForResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForResource`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEnrichedResourceById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getEnrichedResourcesForFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getEnrichedResourcesForVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getFacility`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupAssignments(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceAssignments(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceBan(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBan`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBanById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourceByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==i)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("name",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceByName`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResources.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let n=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourcesCountForAll(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getResourcesCountForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourcesFromVoWhereUserIsAdmin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourcesWhereGroupIsAdmin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("group",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getResourcesWhereUserIsAdmin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("user",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getRichAdmins(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==e)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==i)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==n)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),e&&e.forEach(t=>{r=r.append("specificAttributes",t)}),null!=i&&(r=r.set("allUserAttributes",i)),null!=n&&(r=r.set("onlyDirectAdmins",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRichResourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichResourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let n=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getVo.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getVo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeAllResourceTagsFromResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeBanByMemberAndResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupAdminResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupFromResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupFromResources(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("resources[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupsFromResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let s=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeResourceBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeResourceSelfServiceGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeResourceSelfServiceUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeResourceTagFromResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}removeService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeService.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling removeServices.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("services[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeServicesPackage(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("servicesPackage",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserAdminResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}setResourceBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetBan was null or undefined when calling setResourceBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unallowGroupsFromResources(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let s=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),e&&e.forEach(t=>{s=s.append("resources[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}updateResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateResource was null or undefined when calling updateResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateResourceBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateBan was null or undefined when calling updateResourceBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateResourceTag was null or undefined when calling updateResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Y.eN),s.LFG(F,8),s.LFG(W,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),J=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Y.WM,this.configuration=new W,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new j}addSpecificUserOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("specificUser",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addUserExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter addUserExtSourceInput was null or undefined when calling addUserExtSource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}anonymizeUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}changeNonAuthzPasswordByToken(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==e)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("token",t)),null!=e&&(o=o.set("password",e)),null!=i&&(o=o.set("lang",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changeNonAuthzPassword/token`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}changePasswordForLogin(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");let a=new Y.LE({encoder:this.encoder});null!=t&&(a=a.set("login",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("newPassword",i)),null!=n&&(a=a.set("oldPassword",n)),null!=s&&(a=a.set("checkOldPassword",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/login`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}changePasswordForUser(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");let a=new Y.LE({encoder:this.encoder});null!=t&&(a=a.set("user",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("newPassword",i)),null!=n&&(a=a.set("oldPassword",n)),null!=s&&(a=a.set("checkOldPassword",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/user`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}checkPasswordResetRequestByTokenIsValid(t,e="body",i=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("token",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}checkPasswordStrength(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("password",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createAlternativePassword(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==i)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==n)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("description",e)),null!=i&&(r=r.set("loginNamespace",i)),null!=n&&(r=r.set("password",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/createAlternativePassword`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}createServiceUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateServiceUser was null or undefined when calling createServiceUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAlternativePassword(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==i)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("loginNamespace",e)),null!=i&&(o=o.set("passwordId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}deletePasswordForLogin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("login",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deletePasswordForUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("force",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}findRichUsers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findRichUsersWithAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("searchString",t)),e&&e.forEach(t=>{s=s.append("attrsNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}findUsers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}generateAccountForName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("namespace",t)),null!=e&&(s=s.set("name",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAllRichUsersWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("includedSpecificUsers",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsForFacilityWhereUserIsActive(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupsForResourceWhereUserIsActive(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupsInVoWhereUserIsAdmin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("vo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupsWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getPendingPreferredEmailChanges(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUserExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUserWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUsersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let n=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUsersWithAttributesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let n=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUsersWithoutVoWithAttributes(t,e="body",i=!1){let n=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("attrsNames[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getSpecificUsersByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getSponsorsForMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSponsorsForMemberByVoAndLogin(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("extSourceName",e)),null!=i&&(r=r.set("extLogin",i)),n&&n.forEach(t=>{r=r.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getUserByExtSourceNameAndExtLogin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("extLogin",t)),null!=e&&(s=s.set("extSourceName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getUserById.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("userExtSource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourceByUniqueAttributeValueAndAttributeId(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeId",t)),null!=e&&(s=s.set("attributeValue",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserExtSourceByUniqueAttributeValueAndAttributeName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeName",t)),null!=e&&(s=s.set("attributeValue",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let n=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUsers(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getUsersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let n=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUsersBySpecificUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("specificUser",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUsersPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedUsers was null or undefined when calling getUsersPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getVosWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosWhereUserIsMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isLoginAvailable(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==e)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("loginNamespace",t)),null!=e&&(s=s.set("login",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}loginExist(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeSpecificUserOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("specificUser",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserExtSource(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("userExtSource",e)),null!=i&&(o=o.set("force",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}requestPreferredEmailChange(t,e,i,n,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==e)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let c=new Y.LE({encoder:this.encoder});null!=t&&(c=c.set("user",t)),null!=e&&(c=c.set("email",e)),null!=i&&(c=c.set("lang",i)),null!=n&&(c=c.set("linkPath",n)),null!=s&&(c=c.set("customUrl",s)),null!=o&&(c=c.set("idpFilter",o));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}reservePasswordForLogin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("login",t)),null!=e&&(o=o.set("namespace",e)),null!=i&&(o=o.set("password",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/login`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}reservePasswordForUser(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("namespace",e)),null!=i&&(o=o.set("password",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}reserveRandomPassword(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}updateUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateUser was null or undefined when calling updateUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}validatePasswordForLogin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("login",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}validatePasswordForUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}validatePreferredEmailChangeWithToken(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==e)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("token",t)),null!=e&&(s=s.set("u",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Y.eN),s.LFG(F,8),s.LFG(W,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Q=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Y.WM,this.configuration=new W,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new j}getAppsConfig(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getGuiConfiguration(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunRPCVersion(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["text/plain"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunStatistics(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunStatus(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunSystemTimeInMillis(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Y.eN),s.LFG(F,8),s.LFG(W,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),tt=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Y.WM,this.configuration=new W,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new j}addSponsorRoleToGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addSponsorRoleToUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addVoAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addVoAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createVoWithName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==e)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("name",t)),null!=e&&(s=s.set("shortName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createVoWithVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateVoWithVo was null or undefined when calling createVoWithVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/createVo/withVo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("force",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}findCandidates(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("id",t)),null!=e&&(o=o.set("searchString",e)),null!=i&&(o=o.set("maxNumOfResults",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}findCandidatesForGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("searchString",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAllVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAllVos`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getCompleteCandidatesForGroup(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("searchString",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getCompleteCandidatesForVo(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("searchString",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMyVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVos`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getRichAdminsForVo(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==i)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==n)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==s)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let a=new Y.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("role",e)),i&&i.forEach(t=>{a=a.append("specificAttributes",t)}),null!=n&&(a=a.set("allUserAttributes",n)),null!=s&&(a=a.set("onlyDirectAdmins",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getRichAdmins`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getVoAdminGroups(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("role",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdminGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getVoAdminUsers(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==i)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("role",e)),null!=i&&(o=o.set("onlyDirectAdmins",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdmins`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getVoBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoBanForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanForMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoBansForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBansForVo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getVoById.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoByShortName(t,e="body",i=!1){let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("shortName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoByShortName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoMembersCountsByStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let n=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeSponsorRoleFromGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeSponsorRoleFromUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeVoAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeVoAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeVoBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeVoBanForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}setVoBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoBan was null or undefined when calling setVoBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateVo was null or undefined when calling updateVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/updateVo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Y.eN),s.LFG(F,8),s.LFG(W,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var et,it,nt,st;!function(t){t.HiddenEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"},t.DisabledEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"}}(et||(et={})),function(t){t.FormatEnum={DOT:"DOT",TGF:"TGF"}}(it||(it={})),function(t){t.OwnerTypeEnum={NUMBER_0:0,NUMBER_1:1}}(nt||(nt={})),function(t){t.TypeEnum={Technical:"technical",Administrative:"administrative"}}(st||(st={}));var ot=function(t){return t.PERUNADMIN="PERUNADMIN",t.PERUNOBSERVER="PERUNOBSERVER",t.VOADMIN="VOADMIN",t.GROUPADMIN="GROUPADMIN",t.SELF="SELF",t.FACILITYADMIN="FACILITYADMIN",t.FACILITIYOBSERVER="FACILITYOBSERVER",t.RESOURCEADMIN="RESOURCEADMIN",t.RESOURCESELFSERVICE="RESOURCESELFSERVICE",t.REGISTRAR="REGISTRAR",t.ENGINE="ENGINE",t.RPC="RPC",t.NOTIFICATIONS="NOTIFICATIONS",t.SERVICEUSER="SERVICEUSER",t.SPONSOR="SPONSOR",t.VOOBSERVER="VOOBSERVER",t.TOPGROUPCREATOR="TOPGROUPCREATOR",t.SECURITYADMIN="SECURITYADMIN",t.CABINETADMIN="CABINETADMIN",t.UNKNOWNROLENAME="UNKNOWNROLENAME",t}({});let rt=(()=>{class t{constructor(t){this.authzSevice=t,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(t){this.principal=t,this.initData(t)}setPerunPolicies(t){this.perunPolicies=t}getPerunPolicies(){return this.perunPolicies}isAuthorized(t,e){if(null===this.principal.roles)return!1;const i=this.fetchPolicyWithAllIncludedPolicies(t);let n=[];for(const o of i)n=n.concat(o.perunRoles);const s=this.fetchAllRelatedObjects(e);return this.resolveAuthorization(n,s)}resolveAuthorization(t,e){for(const i of t){let t=!0;for(const n of Object.keys(i)){const s=i[n];if(null===s)this.principalRoles.has(n)||(t=!1);else if(e[s]){for(const i of e[s])if(!this.principalHasRole(n,s,i)){t=!1;break}}else t=!1;if(!t)break}if(t)return!0}return!1}fetchAllRelatedObjects(t){const e={};for(const i of t){let t=i.beanName;switch(i.beanName.startsWith("Rich")&&(t=i.beanName.substring(4)),e[t]?e[t].push(i.id):e[t]=[i.id],t){case"Member":e.User?e.User.push(i.userId):e.User=[i.userId],e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"Group":e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"Resource":e.Facility?e.Facility.push(i.facilityId):e.Facility=[i.facilityId],e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"ResourceTag":e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId]}}return e}principalHasRole(t,e,i){let n=e;return e.startsWith("Rich")&&(n=e.substring(4)),!(!this.principal.roles[t]||!this.principal.roles[t][n])&&this.principal.roles[t][n].includes(Number(i.toString()))}fetchPolicyWithAllIncludedPolicies(t){const e=new Map;let i=[];for(i.push(t);0!==i.length;){const n=i.shift();if(e.has(n)){console.log("Policy {} creates a cycle in the included policies of the policy {}",n,t);continue}const s=this.getPerunPolicy(n);if(!s)return[];e.set(n,s),i=i.concat(s.includePolicies)}const n=[];for(const s of e.values())n.push(s);return n}getPerunPolicy(t){for(const e of this.perunPolicies)if(e.policyName===t)return e;return console.log("policy with name"+t+"was not found"),null}canManageFacilities(){return this.hasAtLeastOne(ot.PERUNADMIN,ot.PERUNOBSERVER,ot.FACILITYADMIN,ot.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(ot.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(ot.PERUNADMIN,ot.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(ot.PERUNADMIN,ot.VOADMIN)}isThisVoAdminOrObserver(t){return this.editableVos.includes(Number(t.toString()))||this.observableVos.includes(Number(t.toString()))||this.hasAtLeastOne(ot.PERUNADMIN,ot.PERUNOBSERVER)}isThisVoAdmin(t){return this.editableVos.includes(t)||this.principalRoles.has(ot.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(ot.PERUNADMIN,ot.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(ot.SPONSOR)}isThisGroupAdmin(t){return this.editableGroups.includes(t)||this.principalRoles.has(ot.PERUNADMIN)}isGroupAdminInThisVo(t){return this.hasGroupInTheseVos.includes(t)}isFacilityAdmin(){return this.hasAtLeastOne(ot.PERUNADMIN,ot.FACILITYADMIN)}isThisFacilityAdmin(t){return this.editableFacilities.includes(t)||this.principalRoles.has(ot.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(ot.PERUNADMIN,ot.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(ot.PERUNADMIN,ot.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(ot.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(ot.PERUNADMIN,ot.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(ot.PERUNADMIN,ot.VOOBSERVER,ot.PERUNOBSERVER)}isThisVoObserver(t){return this.hasAtLeastOne(ot.PERUNADMIN,ot.PERUNOBSERVER)||this.observableVos.includes(t)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((t,e)=>{this.authzSevice.getAllRolesManagementRules().subscribe(e=>{this.allRolesManagementRules=e,t()},t=>e(t))})}assignAvailableRoles(t,e){this.allRolesManagementRules.forEach(i=>{i.primaryObject===e&&t.push(i.roleName)}),t.sort(),"Vo"===e&&this.voCustomSort(t)}isManagerPagePrivileged(t){const e=[];let i=t.beanName;i.startsWith("Rich")&&(i=i.substr(4)),this.assignAvailableRoles(e,i);const n=new Map;this.getRolesAuthorization(e,t,n);for(const s of n.values())if(s.readAuth||s.manageAuth)return!0;return!1}getRolesAuthorization(t,e,i){for(const n of t){let t=[],s=[],o=[];for(const e of this.allRolesManagementRules)if(e.roleName===n){t=t.concat(e.privilegedRolesToRead),s=s.concat(e.privilegedRolesToManage);for(const t of Object.keys(e.entitiesToManage))o="User"===t?[t].concat(o):o.concat(t);break}const r=this.fetchAllRelatedObjects([e]),a=this.resolveAuthorization(t,r),c=this.resolveAuthorization(s,r);i.set(n,{readAuth:a,manageAuth:c,modes:o})}}voCustomSort(t){for(let e=0;e{let i;try{i=t()}catch(n){return void e.error(n)}return(i?(0,ct.D)(i):(0,bt.c)()).subscribe(e)})}var wt=i(2875),At=i(9996),Mt=i(4689),vt=i(611),Tt=i(6163);function kt(...t){const e=t[t.length-1];return(0,Tt.K)(e)?(t.pop(),i=>_t(t,i,e)):e=>_t(t,e)}var Lt=i(6673);function Ct(t,e){let i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new St(t,e,i))}}class St{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new Et(t,this.accumulator,this.seed,this.hasSeed))}}class Et extends Lt.L{constructor(t,e,i,n){super(t),this.accumulator=e,this._seed=i,this.hasSeed=n,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(n){this.destination.error(n)}this.seed=i,this.destination.next(i)}}var zt=i(7727),xt=i(436),Ot=i(8402);function Rt(t){return function(e){return 0===t?(0,bt.c)():e.lift(new Dt(t))}}class Dt{constructor(t){if(this.total=t,this.total<0)throw new Ot.W}call(t,e){return e.subscribe(new Pt(t,this.total))}}class Pt extends Lt.L{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,n=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,n=this.ring;for(let s=0;se.lift(new Ut(t))}class Ut{constructor(t){this.callback=t}call(t,e){return e.subscribe(new Kt(t,this.callback))}}class Kt extends Lt.L{constructor(t,e){super(t),this.add(new Ft.w(e))}}class Zt{constructor(t,e){this.id=t,this.url=e}}class Gt extends Zt{constructor(t,e,i="imperative",n=null){super(t,e),this.navigationTrigger=i,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Xt extends Zt{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Vt extends Zt{constructor(t,e,i){super(t,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class $t extends Zt{constructor(t,e,i){super(t,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Jt extends Zt{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Qt extends Zt{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class te extends Zt{constructor(t,e,i,n,s){super(t,e),this.urlAfterRedirects=i,this.state=n,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ee extends Zt{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ie extends Zt{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ne{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class se{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class oe{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class re{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ae{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ce{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ue{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class le{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function he(t){return new le(t)}function de(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function pe(t,e,i){const n=i.path.split("/");if(n.length>t.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.lengthn[e]===t)}return t===e}function me(t){return Array.prototype.concat.apply([],t)}function _e(t){return t.length>0?t[t.length-1]:null}function be(t,e){for(const i in t)t.hasOwnProperty(i)&&e(t[i],i)}function ye(t){return(0,s.CqO)(t)?t:(0,s.QGY)(t)?(0,ct.D)(Promise.resolve(t)):(0,ut.of)(t)}const we={exact:function t(e,i,n){if(!Ee(e.segments,i.segments))return!1;if(!ke(e.segments,i.segments,n))return!1;if(e.numberOfChildren!==i.numberOfChildren)return!1;for(const s in i.children){if(!e.children[s])return!1;if(!t(e.children[s],i.children[s],n))return!1}return!0},subset:ve},Ae={exact:function(t,e){return fe(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>ge(t[i],e[i]))},ignored:()=>!0};function Me(t,e,i){return we[i.paths](t.root,e.root,i.matrixParams)&&Ae[i.queryParams](t.queryParams,e.queryParams)&&!("exact"===i.fragment&&t.fragment!==e.fragment)}function ve(t,e,i){return Te(t,e,e.segments,i)}function Te(t,e,i,n){if(t.segments.length>i.length){const s=t.segments.slice(0,i.length);return!!Ee(s,i)&&!e.hasChildren()&&!!ke(s,i,n)}if(t.segments.length===i.length){if(!Ee(t.segments,i))return!1;if(!ke(t.segments,i,n))return!1;for(const i in e.children){if(!t.children[i])return!1;if(!ve(t.children[i],e.children[i],n))return!1}return!0}{const s=i.slice(0,t.segments.length),o=i.slice(t.segments.length);return!!Ee(t.segments,s)&&!!ke(t.segments,s,n)&&!!t.children.primary&&Te(t.children.primary,e,o,n)}}function ke(t,e,i){return e.every((e,n)=>Ae[i](t[n].parameters,e.parameters))}class Le{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=he(this.queryParams)),this._queryParamMap}toString(){return Oe.serialize(this)}}class Ce{constructor(t,e){this.segments=t,this.children=e,this.parent=null,be(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Re(this)}}class Se{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=he(this.parameters)),this._parameterMap}toString(){return He(this)}}function Ee(t,e){return t.length===e.length&&t.every((t,i)=>t.path===e[i].path)}class ze{}class xe{parse(t){const e=new Ue(t);return new Le(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${De(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(t=>`${Ne(e)}=${Ne(t)}`).join("&"):`${Ne(e)}=${Ne(i)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const Oe=new xe;function Re(t){return t.segments.map(t=>He(t)).join("/")}function De(t,e){if(!t.hasChildren())return Re(t);if(e){const e=t.children.primary?De(t.children.primary,!1):"",i=[];return be(t.children,(t,e)=>{"primary"!==e&&i.push(`${e}:${De(t,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function(t,e){let i=[];return be(t.children,(t,n)=>{"primary"===n&&(i=i.concat(e(t,n)))}),be(t.children,(t,n)=>{"primary"!==n&&(i=i.concat(e(t,n)))}),i}(t,(e,i)=>"primary"===i?[De(t.children.primary,!1)]:[`${i}:${De(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${Re(t)}/${e[0]}`:`${Re(t)}/(${e.join("//")})`}}function Pe(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ne(t){return Pe(t).replace(/%3B/gi,";")}function Ie(t){return Pe(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function qe(t){return decodeURIComponent(t)}function Be(t){return qe(t.replace(/\+/g,"%20"))}function He(t){return`${Ie(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Ie(t)}=${Ie(e[t])}`).join("")}`;var e}const Ye=/^[^\/()?;=#]+/;function je(t){const e=t.match(Ye);return e?e[0]:""}const Fe=/^[^=?&#]+/,We=/^[^?&#]+/;class Ue{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ce([],{}):new Ce([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new Ce(t,e)),i}parseSegment(){const t=je(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Se(qe(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=je(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=je(this.remaining);t&&(i=t,this.capture(i))}t[qe(e)]=qe(i)}parseQueryParam(t){const e=function(t){const e=t.match(Fe);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(We);return e?e[0]:""}(this.remaining);t&&(i=t,this.capture(i))}const n=Be(e),s=Be(i);if(t.hasOwnProperty(n)){let e=t[n];Array.isArray(e)||(e=[e],t[n]=e),e.push(s)}else t[n]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=je(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error(`Cannot parse url '${this.url}'`);let s;i.indexOf(":")>-1?(s=i.substr(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s="primary");const o=this.parseChildren();e[s]=1===Object.keys(o).length?o.primary:new Ce([],o),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Ke{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Ze(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Ze(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Ge(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Ge(t,this._root).map(t=>t.value)}}function Ze(t,e){if(t===e.value)return e;for(const i of e.children){const e=Ze(t,i);if(e)return e}return null}function Ge(t,e){if(t===e.value)return[e];for(const i of e.children){const n=Ge(t,i);if(n.length)return n.unshift(e),n}return[]}class Xe{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Ve(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class $e extends Ke{constructor(t,e){super(t),this.snapshot=e,ni(this,t)}toString(){return this.snapshot.toString()}}function Je(t,e){const i=function(t,e){const i=new ei([],{},{},"",{},"primary",e,null,t.root,-1,{});return new ii("",new Xe(i,[]))}(t,e),n=new dt([new Se("",{})]),s=new dt({}),o=new dt({}),r=new dt({}),a=new dt(""),c=new Qe(n,s,r,a,o,"primary",e,i.root);return c.snapshot=i.root,new $e(new Xe(c,[]),i)}class Qe{constructor(t,e,i,n,s,o,r,a){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=o,this.component=r,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,At.U)(t=>he(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,At.U)(t=>he(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ti(t,e="emptyOnly"){const i=t.pathFromRoot;let n=0;if("always"!==e)for(n=i.length-1;n>=1;){const t=i[n],e=i[n-1];if(t.routeConfig&&""===t.routeConfig.path)n--;else{if(e.component)break;n--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(i.slice(n))}class ei{constructor(t,e,i,n,s,o,r,a,c,u,l){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=o,this.component=r,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=u,this._resolve=l}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=he(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=he(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ii extends Ke{constructor(t,e){super(e),this.url=t,ni(this,e)}toString(){return si(this._root)}}function ni(t,e){e.value._routerState=t,e.children.forEach(e=>ni(t,e))}function si(t){const e=t.children.length>0?` { ${t.children.map(si).join(", ")} } `:"";return`${t.value}${e}`}function oi(t){if(t.snapshot){const e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,fe(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),fe(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(let i=0;ife(t.parameters,n[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||ri(t.parent,e.parent))}function ai(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){const n=i.value;n._futureSnapshot=e.value;const s=function(t,e,i){return e.children.map(e=>{for(const n of i.children)if(t.shouldReuseRoute(e.value,n.value.snapshot))return ai(t,e,n);return ai(t,e)})}(t,e,i);return new Xe(n,s)}{if(t.shouldAttach(e.value)){const i=t.retrieve(e.value);if(null!==i){const t=i.route;return ci(e,t),t}}const i=new Qe(new dt((n=e.value).url),new dt(n.params),new dt(n.queryParams),new dt(n.fragment),new dt(n.data),n.outlet,n.component,n),s=e.children.map(e=>ai(t,e));return new Xe(i,s)}var n}function ci(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let i=0;i{o[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new Le(i.root===t?e:di(i.root,t,e),o,s)}function di(t,e,i){const n={};return be(t.children,(t,s)=>{n[s]=t===e?i:di(t,e,i)}),new Ce(t.segments,n)}class pi{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&ui(i[0]))throw new Error("Root segment cannot have matrix parameters");const n=i.find(li);if(n&&n!==_e(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class fi{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function gi(t,e,i){if(t||(t=new Ce([],{})),0===t.segments.length&&t.hasChildren())return mi(t,e,i);const n=function(t,e,i){let n=0,s=e;const o={match:!1,pathIndex:0,commandIndex:0};for(;s=i.length)return o;const e=t.segments[s],r=i[n];if(li(r))break;const a=`${r}`,c=n0&&void 0===a)break;if(a&&c&&"object"==typeof c&&void 0===c.outlets){if(!wi(a,c,e))return o;n+=2}else{if(!wi(a,{},e))return o;n++}s++}return{match:!0,pathIndex:s,commandIndex:n}}(t,e,i),s=i.slice(n.commandIndex);if(n.match&&n.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(s[n]=gi(t.children[n],e,i))}),be(t.children,(t,e)=>{void 0===n[e]&&(s[e]=t)}),new Ce(t.segments,s)}}function _i(t,e,i){const n=t.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[i]=_i(new Ce([],{}),0,t))}),e}function yi(t){const e={};return be(t,(t,i)=>e[i]=`${t}`),e}function wi(t,e,i){return t==i.path&&fe(e,i.parameters)}class Ai{constructor(t,e,i,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=n}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),oi(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const n=Ve(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,n[e],i),delete n[e]}),be(n,(t,e)=>{this.deactivateRouteAndItsChildren(t,i)})}deactivateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(n===s)if(n.component){const s=i.getContext(n.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet);if(i&&i.outlet){const e=i.outlet.detach(),n=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:n})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),n=i&&t.value.component?i.children:e,s=Ve(t);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],n);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const n=Ve(e);t.children.forEach(t=>{this.activateRoutes(t,n[t.value.outlet],i),this.forwardEvent(new ce(t.value.snapshot))}),t.children.length&&this.forwardEvent(new re(t.value.snapshot))}activateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(oi(n),n===s)if(n.component){const s=i.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(n.component){const e=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){const t=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),Mi(t.route)}else{const i=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(n.snapshot),s=i?i.module.componentFactoryResolver:null;e.attachRef=null,e.route=n,e.resolver=s,e.outlet&&e.outlet.activateWith(n,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,i)}}function Mi(t){oi(t.value),t.children.forEach(Mi)}class vi{constructor(t,e){this.routes=t,this.module=e}}function Ti(t){return"function"==typeof t}function ki(t){return t instanceof Le}const Li=Symbol("INITIAL_VALUE");function Ci(){return(0,Mt.w)(t=>(0,pt.aj)(t.map(t=>t.pipe((0,vt.q)(1),kt(Li)))).pipe(Ct((t,e)=>{let i=!1;return e.reduce((t,n,s)=>{if(t!==Li)return t;if(n===Li&&(i=!0),!i){if(!1===n)return n;if(s===e.length-1||ki(n))return n}return t},t)},Li),(0,at.h)(t=>t!==Li),(0,At.U)(t=>ki(t)?t:!0===t),(0,vt.q)(1)))}let Si=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s._UZ(0,"router-outlet")},directives:function(){return[Ln]},encapsulation:2}),t})();function Ei(t,e=""){for(let i=0;iRi(t)===e);return i.push(...t.filter(t=>Ri(t)!==e)),i}const Pi={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Ni(t,e,i){var n;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?Object.assign({},Pi):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||pe)(i,t,e);if(!s)return Object.assign({},Pi);const o={};be(s.posParams,(t,e)=>{o[e]=t.path});const r=s.consumed.length>0?Object.assign(Object.assign({},o),s.consumed[s.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:r,positionalParamSegments:null!==(n=s.posParams)&&void 0!==n?n:{}}}function Ii(t,e,i,n,s="corrected"){if(i.length>0&&function(t,e,i){return i.some(i=>qi(t,e,i)&&"primary"!==Ri(i))}(t,i,n)){const s=new Ce(e,function(t,e,i,n){const s={};s.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(const o of i)if(""===o.path&&"primary"!==Ri(o)){const i=new Ce([],{});i._sourceSegment=t,i._segmentIndexShift=e.length,s[Ri(o)]=i}return s}(t,e,n,new Ce(i,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some(i=>qi(t,e,i))}(t,i,n)){const o=new Ce(t.segments,function(t,e,i,n,s,o){const r={};for(const a of n)if(qi(t,i,a)&&!s[Ri(a)]){const i=new Ce([],{});i._sourceSegment=t,i._segmentIndexShift="legacy"===o?t.segments.length:e.length,r[Ri(a)]=i}return Object.assign(Object.assign({},s),r)}(t,e,i,n,t.children,s));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:i}}const o=new Ce(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:i}}function qi(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path}function Bi(t,e,i,n){return!!(Ri(t)===n||"primary"!==n&&qi(e,i,t))&&("**"===t.path||Ni(e,t,i).matched)}function Hi(t,e,i){return 0===e.length&&!t.children[i]}class Yi{constructor(t){this.segmentGroup=t||null}}class ji{constructor(t){this.urlTree=t}}function Fi(t){return new ft.y(e=>e.error(new Yi(t)))}function Wi(t){return new ft.y(e=>e.error(new ji(t)))}function Ui(t){return new ft.y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Ki{constructor(t,e,i,n,o){this.configLoader=e,this.urlSerializer=i,this.urlTree=n,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(s.h0i)}apply(){const t=Ii(this.urlTree.root,[],[],this.config).segmentGroup,e=new Ce(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,"primary").pipe((0,At.U)(t=>this.createUrlTree(Zi(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,zt.K)(t=>{if(t instanceof ji)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Yi)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe((0,At.U)(e=>this.createUrlTree(Zi(e),t.queryParams,t.fragment))).pipe((0,zt.K)(t=>{if(t instanceof Yi)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const n=t.segments.length>0?new Ce([],{primary:t}):t;return new Le(n,e,i)}expandSegmentGroup(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe((0,At.U)(t=>new Ce([],t))):this.expandSegment(t,i,e,i.segments,n,!0)}expandChildren(t,e,i){const n=[];for(const s of Object.keys(i.children))"primary"===s?n.unshift(s):n.push(s);return(0,ct.D)(n).pipe((0,xt.b)(n=>{const s=i.children[n],o=Di(e,n);return this.expandSegmentGroup(t,o,s,n).pipe((0,At.U)(t=>({segment:t,outlet:n})))}),Ct((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const i=arguments.length>=2;return n=>n.pipe(t?(0,at.h)((e,i)=>t(e,i,n)):qt.y,Rt(1),i?(0,It.d)(e):(0,Nt.T)(()=>new gt.K))}())}expandSegment(t,e,i,n,s,o){return(0,ct.D)(i).pipe((0,xt.b)(r=>this.expandSegmentAgainstRoute(t,e,i,r,n,s,o).pipe((0,zt.K)(t=>{if(t instanceof Yi)return(0,ut.of)(null);throw t}))),(0,Bt.P)(t=>!!t),(0,zt.K)((t,i)=>{if(t instanceof gt.K||"EmptyError"===t.name){if(Hi(e,n,s))return(0,ut.of)(new Ce([],{}));throw new Yi(e)}throw t}))}expandSegmentAgainstRoute(t,e,i,n,s,o,r){return Bi(n,e,s,o)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,s,o):r&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o):Fi(e):Fi(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,n){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?Wi(s):this.lineralizeSegments(i,s).pipe((0,Ht.zg)(i=>{const s=new Ce(i,{});return this.expandSegment(t,s,e,i,n,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o){const{matched:r,consumedSegments:a,lastChild:c,positionalParamSegments:u}=Ni(e,n,s);if(!r)return Fi(e);const l=this.applyRedirectCommands(a,n.redirectTo,u);return n.redirectTo.startsWith("/")?Wi(l):this.lineralizeSegments(n,l).pipe((0,Ht.zg)(n=>this.expandSegment(t,e,i,n.concat(s.slice(c)),o,!1)))}matchSegmentAgainstRoute(t,e,i,n,s){if("**"===i.path)return i.loadChildren?(i._loadedConfig?(0,ut.of)(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe((0,At.U)(t=>(i._loadedConfig=t,new Ce(n,{})))):(0,ut.of)(new Ce(n,{}));const{matched:o,consumedSegments:r,lastChild:a}=Ni(e,i,n);if(!o)return Fi(e);const c=n.slice(a);return this.getChildConfig(t,i,n).pipe((0,Ht.zg)(t=>{const n=t.module,o=t.routes,{segmentGroup:a,slicedSegments:u}=Ii(e,r,c,o),l=new Ce(a.segments,a.children);if(0===u.length&&l.hasChildren())return this.expandChildren(n,o,l).pipe((0,At.U)(t=>new Ce(r,t)));if(0===o.length&&0===u.length)return(0,ut.of)(new Ce(r,{}));const h=Ri(i)===s;return this.expandSegment(n,l,o,u,h?"primary":s,!0).pipe((0,At.U)(t=>new Ce(r.concat(t.segments),t.children)))}))}getChildConfig(t,e,i){return e.children?(0,ut.of)(new vi(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?(0,ut.of)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe((0,Ht.zg)(i=>i?this.configLoader.load(t.injector,e).pipe((0,At.U)(t=>(e._loadedConfig=t,t))):function(t){return new ft.y(e=>e.error(de(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):(0,ut.of)(new vi([],t))}runCanLoadGuards(t,e,i){const n=e.canLoad;if(!n||0===n.length)return(0,ut.of)(!0);const s=n.map(n=>{const s=t.get(n);let o;if(function(t){return t&&Ti(t.canLoad)}(s))o=s.canLoad(e,i);else{if(!Ti(s))throw new Error("Invalid CanLoad guard");o=s(e,i)}return ye(o)});return(0,ut.of)(s).pipe(Ci(),(0,Yt.b)(t=>{if(!ki(t))return;const e=de(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),(0,At.U)(t=>!0===t))}lineralizeSegments(t,e){let i=[],n=e.root;for(;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return(0,ut.of)(i);if(n.numberOfChildren>1||!n.children.primary)return Ui(t.redirectTo);n=n.children.primary}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,n){const s=this.createSegmentGroup(t,e.root,i,n);return new Le(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return be(t,(t,n)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);i[n]=e[s]}else i[n]=t}),i}createSegmentGroup(t,e,i,n){const s=this.createSegments(t,e.segments,i,n);let o={};return be(e.children,(e,s)=>{o[s]=this.createSegmentGroup(t,e,i,n)}),new Ce(s,o)}createSegments(t,e,i,n){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,n):this.findOrReturn(e,i))}findPosParam(t,e,i){const n=i[e.path.substring(1)];if(!n)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return n}findOrReturn(t,e){let i=0;for(const n of e){if(n.path===t.path)return e.splice(i),n;i++}return t}}function Zi(t){const e={};for(const i of Object.keys(t.children)){const n=Zi(t.children[i]);(n.segments.length>0||n.hasChildren())&&(e[i]=n)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new Ce(t.segments.concat(e.segments),e.children)}return t}(new Ce(t.segments,e))}class Gi{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Xi{constructor(t,e){this.component=t,this.route=e}}function Vi(t,e,i){const n=t._root;return Ji(n,e?e._root:null,i,[n.value])}function $i(t,e,i){const n=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(n?n.module.injector:i).get(t)}function Ji(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=Ve(e);return t.children.forEach(t=>{!function(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,r=e?e.value:null,a=i?i.getContext(t.value.outlet):null;if(r&&o.routeConfig===r.routeConfig){const c=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!Ee(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Ee(t.url,e.url)||!fe(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ri(t,e)||!fe(t.queryParams,e.queryParams);case"paramsChange":default:return!ri(t,e)}}(r,o,o.routeConfig.runGuardsAndResolvers);c?s.canActivateChecks.push(new Gi(n)):(o.data=r.data,o._resolvedData=r._resolvedData),Ji(t,e,o.component?a?a.children:null:i,n,s),c&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new Xi(a.outlet.component,r))}else r&&Qi(e,a,s),s.canActivateChecks.push(new Gi(n)),Ji(t,null,o.component?a?a.children:null:i,n,s)}(t,o[t.value.outlet],i,n.concat([t.value]),s),delete o[t.value.outlet]}),be(o,(t,e)=>Qi(t,i.getContext(e),s)),s}function Qi(t,e,i){const n=Ve(t),s=t.value;be(n,(t,n)=>{Qi(t,s.component?e?e.children.getContext(n):null:e,i)}),i.canDeactivateChecks.push(new Xi(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class tn{}function en(t){return new ft.y(e=>e.error(t))}class nn{constructor(t,e,i,n,s,o){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=n,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=o}recognize(){const t=Ii(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary");if(null===e)return null;const i=new ei([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),n=new Xe(i,e),s=new ii(this.url,n);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,i=ti(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=[];for(const s of Object.keys(e.children)){const n=e.children[s],o=Di(t,s),r=this.processSegmentGroup(o,n,s);if(null===r)return null;i.push(...r)}const n=on(i);return n.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,i,n){for(const s of t){const t=this.processSegmentAgainstRoute(s,e,i,n);if(null!==t)return t}return Hi(e,i,n)?[]:null}processSegmentAgainstRoute(t,e,i,n){if(t.redirectTo||!Bi(t,e,i,n))return null;let s,o=[],r=[];if("**"===t.path){const n=i.length>0?_e(i).parameters:{};s=new ei(i,n,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,cn(t),Ri(t),t.component,t,rn(e),an(e)+i.length,un(t))}else{const n=Ni(e,t,i);if(!n.matched)return null;o=n.consumedSegments,r=i.slice(n.lastChild),s=new ei(o,n.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,cn(t),Ri(t),t.component,t,rn(e),an(e)+o.length,un(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:u}=Ii(e,o,r,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===u.length&&c.hasChildren()){const t=this.processChildren(a,c);return null===t?null:[new Xe(s,t)]}if(0===a.length&&0===u.length)return[new Xe(s,[])];const l=Ri(t)===n,h=this.processSegment(a,c,u,l?"primary":n);return null===h?null:[new Xe(s,h)]}}function sn(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function on(t){const e=[],i=new Set;for(const n of t){if(!sn(n)){e.push(n);continue}const t=e.find(t=>n.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...n.children),i.add(t)):e.push(n)}for(const n of i){const t=on(n.children);e.push(new Xe(n.value,t))}return e.filter(t=>!i.has(t))}function rn(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function an(t){let e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,i+=e._segmentIndexShift?e._segmentIndexShift:0;return i-1}function cn(t){return t.data||{}}function un(t){return t.resolve||{}}function ln(t){return(0,Mt.w)(e=>{const i=t(e);return i?(0,ct.D)(i).pipe((0,At.U)(()=>e)):(0,ut.of)(e)})}class hn extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const dn=new s.OlP("ROUTES");class pn{constructor(t,e,i,n){this.loader=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=n}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const i=this.loadModuleFactory(e.loadChildren).pipe((0,At.U)(i=>{this.onLoadEndListener&&this.onLoadEndListener(e);const n=i.create(t);return new vi(me(n.injector.get(dn,void 0,s.XFs.Self|s.XFs.Optional)).map(Oi),n)}),(0,zt.K)(t=>{throw e._loader$=void 0,t}));return e._loader$=new wt.c(i,()=>new lt.xQ).pipe((0,jt.x)()),e._loader$}loadModuleFactory(t){return"string"==typeof t?(0,ct.D)(this.loader.load(t)):ye(t()).pipe((0,Ht.zg)(t=>t instanceof s.YKP?(0,ut.of)(t):(0,ct.D)(this.compiler.compileModuleAsync(t))))}}class fn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new gn,this.attachRef=null}}class gn{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new fn,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class mn{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function _n(t){throw t}function bn(t,e,i){return e.parse("/")}function yn(t,e){return(0,ut.of)(null)}const wn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},An={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Mn=(()=>{class t{constructor(t,e,i,n,o,r,a,c){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=i,this.location=n,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new lt.xQ,this.errorHandler=_n,this.malformedUriErrorHandler=bn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:yn,afterPreactivation:yn},this.urlHandlingStrategy=new mn,this.routeReuseStrategy=new hn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(s.h0i),this.console=o.get(s.c2e);const u=o.get(s.R0b);this.isNgZoneEnabled=u instanceof s.R0b&&s.R0b.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new Le(new Ce([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new pn(r,a,t=>this.triggerEvent(new ne(t)),t=>this.triggerEvent(new se(t))),this.routerState=Je(this.currentUrlTree,this.rootComponentType),this.transitions=new dt({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()}setupNavigations(t){const e=this.events;return t.pipe((0,at.h)(t=>0!==t.id),(0,At.U)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),(0,Mt.w)(t=>{let i=!1,n=!1;return(0,ut.of)(t).pipe((0,Yt.b)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,Mt.w)(t=>{const i=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return(0,ut.of)(t).pipe((0,Mt.w)(t=>{const i=this.transitions.getValue();return e.next(new Gt(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==this.transitions.getValue()?bt.E:Promise.resolve(t)}),(n=this.ngModule.injector,s=this.configLoader,o=this.urlSerializer,r=this.config,(0,Mt.w)(t=>function(t,e,i,n,s){return new Ki(t,e,i,n,s).apply()}(n,s,o,t.extractedUrl,r).pipe((0,At.U)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e}))))),(0,Yt.b)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,i,n,s){return(0,Ht.zg)(o=>function(t,e,i,n,s="emptyOnly",o="legacy"){try{const r=new nn(t,e,i,n,s,o).recognize();return null===r?en(new tn):(0,ut.of)(r)}catch(r){return en(r)}}(t,e,o.urlAfterRedirects,i(o.urlAfterRedirects),n,s).pipe((0,At.U)(t=>Object.assign(Object.assign({},o),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Yt.b)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const i=new Jt(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(i)}));var n,s,o,r;if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:i,extractedUrl:n,source:s,restoredState:o,extras:r}=t,a=new Gt(i,this.serializeUrl(n),s,o);e.next(a);const c=Je(n,this.rootComponentType).snapshot;return(0,ut.of)(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:n,extras:Object.assign(Object.assign({},r),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),bt.E}),ln(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:o,replaceUrl:r}}=t;return this.hooks.beforePreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!r})}),(0,Yt.b)(t=>{const e=new Qt(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,At.U)(t=>Object.assign(Object.assign({},t),{guards:Vi(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return(0,Ht.zg)(i=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:o,canDeactivateChecks:r}}=i;return 0===r.length&&0===o.length?(0,ut.of)(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return(0,ct.D)(t).pipe((0,Ht.zg)(t=>function(t,e,i,n,s){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return(0,ut.of)(!0);const r=o.map(o=>{const r=$i(o,e,s);let a;if(function(t){return t&&Ti(t.canDeactivate)}(r))a=ye(r.canDeactivate(t,e,i,n));else{if(!Ti(r))throw new Error("Invalid CanDeactivate guard");a=ye(r(t,e,i,n))}return a.pipe((0,Bt.P)())});return(0,ut.of)(r).pipe(Ci())}(t.component,t.route,i,e,n)),(0,Bt.P)(t=>!0!==t,!0))}(r,n,s,t).pipe((0,Ht.zg)(i=>i&&"boolean"==typeof i?function(t,e,i,n){return(0,ct.D)(e).pipe((0,xt.b)(e=>_t(function(t,e){return null!==t&&e&&e(new oe(t)),(0,ut.of)(!0)}(e.route.parent,n),function(t,e){return null!==t&&e&&e(new ae(t)),(0,ut.of)(!0)}(e.route,n),function(t,e,i){const n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>yt(()=>{const s=e.guards.map(s=>{const o=$i(s,e.node,i);let r;if(function(t){return t&&Ti(t.canActivateChild)}(o))r=ye(o.canActivateChild(n,t));else{if(!Ti(o))throw new Error("Invalid CanActivateChild guard");r=ye(o(n,t))}return r.pipe((0,Bt.P)())});return(0,ut.of)(s).pipe(Ci())}));return(0,ut.of)(s).pipe(Ci())}(t,e.path,i),function(t,e,i){const n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||0===n.length)return(0,ut.of)(!0);const s=n.map(n=>yt(()=>{const s=$i(n,e,i);let o;if(function(t){return t&&Ti(t.canActivate)}(s))o=ye(s.canActivate(e,t));else{if(!Ti(s))throw new Error("Invalid CanActivate guard");o=ye(s(e,t))}return o.pipe((0,Bt.P)())}));return(0,ut.of)(s).pipe(Ci())}(t,e.route,i))),(0,Bt.P)(t=>!0!==t,!0))}(n,o,t,e):(0,ut.of)(i)),(0,At.U)(t=>Object.assign(Object.assign({},i),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),(0,Yt.b)(t=>{if(ki(t.guardsResult)){const e=de(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new te(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),(0,at.h)(t=>!!t.guardsResult||(this.cancelNavigationTransition(t,""),!1)),ln(t=>{if(t.guards.canActivateChecks.length)return(0,ut.of)(t).pipe((0,Yt.b)(t=>{const e=new ee(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,Mt.w)(t=>{let e=!1;return(0,ut.of)(t).pipe((i=this.paramsInheritanceStrategy,n=this.ngModule.injector,(0,Ht.zg)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:s}}=t;if(!s.length)return(0,ut.of)(t);let o=0;return(0,ct.D)(s).pipe((0,xt.b)(t=>function(t,e,i,n){return function(t,e,i,n){const s=Object.keys(t);if(0===s.length)return(0,ut.of)({});const o={};return(0,ct.D)(s).pipe((0,Ht.zg)(s=>function(t,e,i,n){const s=$i(t,e,n);return ye(s.resolve?s.resolve(e,i):s(e,i))}(t[s],e,i,n).pipe((0,Yt.b)(t=>{o[s]=t}))),Rt(1),(0,Ht.zg)(()=>Object.keys(o).length===s.length?(0,ut.of)(o):bt.E))}(t._resolve,t,e,n).pipe((0,At.U)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),ti(t,i).resolve),null)))}(t.route,e,i,n)),(0,Yt.b)(()=>o++),Rt(1),(0,Ht.zg)(e=>o===s.length?(0,ut.of)(t):bt.E))})),(0,Yt.b)({next:()=>e=!0,complete:()=>{e||this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value.")}}));var i,n}),(0,Yt.b)(t=>{const e=new ie(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),ln(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:o,replaceUrl:r}}=t;return this.hooks.afterPreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!r})}),(0,At.U)(t=>{const e=function(t,e,i){const n=ai(t,e._root,i?i._root:void 0);return new $e(n,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),(0,Yt.b)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,o=this.routeReuseStrategy,r=t=>this.triggerEvent(t),(0,At.U)(t=>(new Ai(o,t.targetRouterState,t.currentRouterState,r).activate(s),t))),(0,Yt.b)({next(){i=!0},complete(){i=!0}}),Wt(()=>{i||n||this.cancelNavigationTransition(t,`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`),this.currentNavigation=null}),(0,zt.K)(i=>{if(n=!0,(s=i)&&s.ngNavigationCancelingError){const n=ki(i.url);n||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new Vt(t.id,this.serializeUrl(t.extractedUrl),i.message);e.next(s),n?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(i.url,this.rawUrlTree);this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const n=new $t(t.id,this.serializeUrl(t.extractedUrl),i);e.next(n);try{t.resolve(this.errorHandler(i))}catch(o){t.reject(o)}}var s;return bt.E}));var s,o,r}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:i,urlTree:n}=e,s={replaceUrl:!0};if(i){const t=Object.assign({},i);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(n,t,i,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const i=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&i&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Ei(t),this.config=t.map(Oi),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(t,e={}){const{relativeTo:i,queryParams:n,fragment:s,queryParamsHandling:o,preserveFragment:r}=e,a=i||this.routerState.root,c=r?this.currentUrlTree.fragment:s;let u=null;switch(o){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=n||null}return null!==u&&(u=this.removeEmptyProps(u)),function(t,e,i,n,s){if(0===i.length)return hi(e.root,e.root,e,n,s);const o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new pi(!0,0,t);let e=0,i=!1;const n=t.reduce((t,n,s)=>{if("object"==typeof n&&null!=n){if(n.outlets){const e={};return be(n.outlets,(t,i)=>{e[i]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(n.segmentPath)return[...t,n.segmentPath]}return"string"!=typeof n?[...t,n]:0===s?(n.split("/").forEach((n,s)=>{0==s&&"."===n||(0==s&&""===n?i=!0:".."===n?e++:""!=n&&t.push(n))}),t):[...t,n]},[]);return new pi(i,e,n)}(i);if(o.toRoot())return hi(e.root,new Ce([],{}),e,n,s);const r=function(t,e,i){if(t.isAbsolute)return new fi(e.root,!0,0);if(-1===i.snapshot._lastPathIndex){const t=i.snapshot._urlSegment;return new fi(t,t===e.root,0)}const n=ui(t.commands[0])?0:1;return function(t,e,i){let n=t,s=e,o=i;for(;o>s;){if(o-=s,n=n.parent,!n)throw new Error("Invalid number of '../'");s=n.segments.length}return new fi(n,!1,s-o)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(o,e,t),a=r.processChildren?mi(r.segmentGroup,r.index,o.commands):gi(r.segmentGroup,r.index,o.commands);return hi(r.segmentGroup,a,e,n,s)}(a,this.currentUrlTree,t,u,null!=c?c:null)}navigateByUrl(t,e={skipLocationChange:!1}){const i=ki(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree);let s=null;return"computed"===this.canceledNavigationResolution&&(0===this.currentPageId||e.skipLocationChange||e.replaceUrl)&&(s=this.location.getState()),this.scheduleNavigation(n,"imperative",s,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const n=t[i];return null!=n&&(e[i]=n),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new Xt(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,i,n,s){if(this.disposed)return Promise.resolve(!1);const o=this.getTransition(),r="imperative"!==e&&"imperative"===(null==o?void 0:o.source),a=(this.lastSuccessfulId===o.id||this.currentNavigation?o.rawUrl:o.urlAfterRedirects).toString()===t.toString();if(r&&a)return Promise.resolve(!0);let c,u,l;s?(c=s.resolve,u=s.reject,l=s.promise):l=new Promise((t,e)=>{c=t,u=e});const h=++this.navigationId;let d;return d="computed"===this.canceledNavigationResolution?i&&i.\u0275routerPageId?i.\u0275routerPageId:this.currentPageId+1:0,this.setTransition({id:h,targetPageId:d,source:e,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const i=this.urlSerializer.serialize(t),n=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(i)||e.extras.replaceUrl?this.location.replaceState(i,"",n):this.location.go(i,"",n)}resetStateAndUrl(t,e,i){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){"computed"===this.canceledNavigationResolution?"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy||this.location.historyGo(this.currentPageId-t.targetPageId):this.resetUrlToCurrentUrlTree();const i=new Vt(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(i),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.DyG),s.LFG(ze),s.LFG(gn),s.LFG(n.Ye),s.LFG(s.zs3),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),vn=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new lt.xQ,null==i&&n.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:kn(this.skipLocationChange),replaceUrl:kn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:kn(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Mn),s.Y36(Qe),s.$8M("tabindex"),s.Y36(s.Qsj),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.TTD]}),t})(),Tn=(()=>{class t{constructor(t,e,i){this.router=t,this.route=e,this.locationStrategy=i,this.commands=[],this.onChanges=new lt.xQ,this.subscription=t.events.subscribe(t=>{t instanceof Xt&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,i,n,s){if(0!==t||e||i||n||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const o={skipLocationChange:kn(this.skipLocationChange),replaceUrl:kn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:kn(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Mn),s.Y36(Qe),s.Y36(n.S$))},t.\u0275dir=s.lG2({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(s.Ikx("href",e.href,s.LSH),s.uIk("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.TTD]}),t})();function kn(t){return""===t||!!t}let Ln=(()=>{class t{constructor(t,e,i,n,o){this.parentContexts=t,this.location=e,this.resolver=i,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.vpe,this.deactivateEvents=new s.vpe,this.name=n||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const i=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,s=new Cn(t,n,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(gn),s.Y36(s.s_b),s.Y36(s._Vd),s.$8M("name"),s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Cn{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===Qe?this.route:t===gn?this.childContexts:this.parent.get(t,e)}}class Sn{}class En{preload(t,e){return e().pipe((0,zt.K)(()=>(0,ut.of)(null)))}}class zn{preload(t,e){return(0,ut.of)(null)}}let xn=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.injector=n,this.preloadingStrategy=s,this.loader=new pn(e,i,e=>t.triggerEvent(new ne(e)),e=>t.triggerEvent(new se(e)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,at.h)(t=>t instanceof Xt),(0,xt.b)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(s.h0i);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const i=[];for(const n of e)if(n.loadChildren&&!n.canLoad&&n._loadedConfig){const t=n._loadedConfig;i.push(this.processRoutes(t.module,t.routes))}else n.loadChildren&&!n.canLoad?i.push(this.preloadConfig(t,n)):n.children&&i.push(this.processRoutes(t,n.children));return(0,ct.D)(i).pipe((0,mt.J)(),(0,At.U)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?(0,ut.of)(e._loadedConfig):this.loader.load(t.injector,e)).pipe((0,Ht.zg)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Mn),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(s.zs3),s.LFG(Sn))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),On=(()=>{class t{constructor(t,e,i={}){this.router=t,this.viewportScroller=e,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.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(t=>{t instanceof Gt?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Xt&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof ue&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new ue(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Mn),s.LFG(n.EM),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const Rn=new s.OlP("ROUTER_CONFIGURATION"),Dn=new s.OlP("ROUTER_FORROOT_GUARD"),Pn=[n.Ye,{provide:ze,useClass:xe},{provide:Mn,useFactory:function(t,e,i,n,s,o,r,a={},c,u){const l=new Mn(null,t,e,i,n,s,o,me(r));return c&&(l.urlHandlingStrategy=c),u&&(l.routeReuseStrategy=u),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,l),a.enableTracing&&l.events.subscribe(t=>{var e,i;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(i=console.groupEnd)||void 0===i||i.call(console)}),l},deps:[ze,gn,n.Ye,s.zs3,s.v3s,s.Sil,dn,Rn,[class{},new s.FiY],[class{},new s.FiY]]},gn,{provide:Qe,useFactory:function(t){return t.routerState.root},deps:[Mn]},{provide:s.v3s,useClass:s.EAV},xn,zn,En,{provide:Rn,useValue:{enableTracing:!1}}];function Nn(){return new s.PXZ("Router",Mn)}let In=(()=>{class t{constructor(t,e){}static forRoot(e,i){return{ngModule:t,providers:[Pn,Yn(e),{provide:Dn,useFactory:Hn,deps:[[Mn,new s.FiY,new s.tp0]]},{provide:Rn,useValue:i||{}},{provide:n.S$,useFactory:Bn,deps:[n.lw,[new s.tBr(n.mr),new s.FiY],Rn]},{provide:On,useFactory:qn,deps:[Mn,n.EM,Rn]},{provide:Sn,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:zn},{provide:s.PXZ,multi:!0,useFactory:Nn},[jn,{provide:s.ip1,multi:!0,useFactory:Fn,deps:[jn]},{provide:Un,useFactory:Wn,deps:[jn]},{provide:s.tb,multi:!0,useExisting:Un}]]}}static forChild(e){return{ngModule:t,providers:[Yn(e)]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Dn,8),s.LFG(Mn,8))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();function qn(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new On(t,e,i)}function Bn(t,e,i={}){return i.useHash?new n.Do(t,e):new n.b0(t,e)}function Hn(t){return"guarded"}function Yn(t){return[{provide:s.deG,multi:!0,useValue:t},{provide:dn,multi:!0,useValue:t}]}let jn=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new lt.xQ}appInitializer(){return this.injector.get(n.V_,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),i=this.injector.get(Mn),n=this.injector.get(Rn);return"disabled"===n.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===n.initialNavigation||"enabledBlocking"===n.initialNavigation?(i.hooks.afterPreactivation=()=>this.initNavigation?(0,ut.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),i.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(Rn),i=this.injector.get(xn),n=this.injector.get(On),o=this.injector.get(Mn),r=this.injector.get(s.z2F);t===r.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||o.initialNavigation(),i.setUpPreloading(),n.init(),o.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function Fn(t){return t.appInitializer.bind(t)}function Wn(t){return t.bootstrapListener.bind(t)}const Un=new s.OlP("Router Initializer");let Kn=(()=>{class t{constructor(){this.branding=""}setInstanceConfig(t){this.instanceConfig=t}setDefaultConfig(t){this.defaultConfig=t}getAppsConfig(){return this.appsConfig}setAppsConfig(t){this.appsConfig=t}setPerunPrincipal(t){this.principal=t}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(t){this.initialPageId=t}getLoginAttributeNames(){return this.get("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.get("member_profile_attributes_friendly_names")}setBanding(t){this.branding=t}skipOidc(){return this.get("skip_oidc")}get(...t){let e;if(""!==this.branding){const i=this.instanceConfig.brandings[this.branding];for(let n=0;n(0,Qn.k)(t)?n(...t):n(t))):new ft.y(n=>{is(t,e,function(t){n.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},n,i)})}function is(t,e,i,n,s){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const n=t;t.addEventListener(e,i,s),o=()=>n.removeEventListener(e,i,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const n=t;t.on(e,i),o=()=>n.off(e,i)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const n=t;t.addListener(e,i),o=()=>n.removeListener(e,i)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,r=t.length;o0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}var os=i(1098);class rs extends os.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++nPromise.resolve())(),ls={};function hs(t){return t in ls&&(delete ls[t],!0)}const ds={setImmediate(t){const e=cs++;return ls[e]=!0,us.then(()=>hs(e)&&t()),e},clearImmediate(t){hs(t)}};class ps extends ns.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=ds.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(ds.clearImmediate(e),t.scheduled=void 0)}}class fs extends os.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++ni.lift(new bs(t,e))}class bs{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new ys(t,this.compare,this.keySelector))}}class ys extends Lt.L{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:i}=this;e=i?i(t):t}catch(n){return this.destination.error(n)}let i=!1;if(this.hasKey)try{const{compare:t}=this;i=t(this.key,e)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}var ws=i(8569),As=i(9829),Ms=i(6268);class vs{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new Ts(t,this.durationSelector))}}class Ts extends As.L{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let i;try{const{durationSelector:e}=this;i=e(t)}catch(e){return this.destination.error(e)}const n=(0,Ms.D)(this,i);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=null,i.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,i,n){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function ks(t){return!(0,Qn.k)(t)&&t-parseFloat(t)+1>=0}function Ls(t=0,e,i){let n=-1;return ks(e)?n=Number(e)<1?1:Number(e):(0,Tt.K)(e)&&(i=e),(0,Tt.K)(i)||(i=ws.P),new ft.y(e=>{const s=ks(t)?t:+t-i.now();return i.schedule(Cs,s,{index:0,period:n,subscriber:e})})}function Cs(t){const{index:e,period:i,subscriber:n}=t;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}}function Ss(t,e=ws.P){return i=()=>Ls(t,e),function(t){return t.lift(new vs(i))};var i}function Es(t){return e=>e.lift(new zs(t))}class zs{constructor(t){this.notifier=t}call(t,e){const i=new xs(t),n=(0,Ms.D)(i,this.notifier);return n&&!i.seenValue?(i.add(n),e.subscribe(i)):i}}class xs extends As.L{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,i,n,s){this.seenValue=!0,this.complete()}notifyComplete(){}}class Os extends ns.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}class Rs extends os.v{}const Ds=new Rs(Os);var Ps=i(3103);class Ns extends Lt.L{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(Ns.dispatch,this.delay,new Is(t,this.destination)))}_next(t){this.scheduleMessage(Ps.P.createNext(t))}_error(t){this.scheduleMessage(Ps.P.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(Ps.P.createComplete()),this.unsubscribe()}}class Is{constructor(t,e){this.notification=t,this.destination=e}}var qs=i(9291);class Bs extends lt.xQ{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new Hs(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),n=this.scheduler,s=i.length;let o;if(this.closed)throw new ht.N;if(this.isStopped||this.hasError?o=Ft.w.EMPTY:(this.observers.push(t),o=new qs.W(this,t)),n&&t.add(t=new Ns(t,n)),e)for(let r=0;re&&(o=Math.max(o,s-e)),o>0&&n.splice(0,o),n}}class Hs{constructor(t,e){this.time=t,this.value=e}}function Ys(t,e,i){let n;return n=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:i},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:i,scheduler:n}){let s,o,r=0,a=!1,c=!1;return function(u){r++,s&&!a||(a=!1,s=new Bs(t,e,n),o=u.subscribe({next(t){s.next(t)},error(t){a=!0,s.error(t)},complete(){c=!0,o=void 0,s.complete()}}));const l=s.subscribe(this);this.add(()=>{r--,l.unsubscribe(),o&&!c&&i&&0===r&&(o.unsubscribe(),o=void 0,s=void 0)})}}(n))}let js;try{js="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(hE){js=!1}let Fs,Ws=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?(0,n.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&&!js)&&"undefined"!=typeof CSS&&!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 t.\u0275fac=function(e){return new(e||t)(s.LFG(s.Lbi))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.Lbi))},token:t,providedIn:"root"}),t})(),Us=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();const Ks=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Zs(){if(Fs)return Fs;if("object"!=typeof document||!document)return Fs=new Set(Ks),Fs;let t=document.createElement("input");return Fs=new Set(Ks.filter(e=>(t.setAttribute("type",e),t.type===e))),Fs}let Gs,Xs,Vs,$s;function Js(t){return function(){if(null==Gs&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Gs=!0}))}finally{Gs=Gs||!1}return Gs}()?t:!!t.capture}function Qs(){if(null==Vs){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Vs=!1,Vs;if("scrollBehavior"in document.documentElement.style)Vs=!0;else{const t=Element.prototype.scrollTo;Vs=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Vs}function to(){if("object"!=typeof document||!document)return 0;if(null==Xs){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",t.appendChild(i),document.body.appendChild(t),Xs=0,0===t.scrollLeft&&(t.scrollLeft=1,Xs=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return Xs}function eo(t){if(function(){if(null==$s){const t="undefined"!=typeof document?document.head:null;$s=!(!t||!t.createShadowRoot&&!t.attachShadow)}return $s}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function io(){let t="undefined"!=typeof document&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}const no=new s.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,s.f3M)(n.K0)}});let so=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new s.vpe,t){const e=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||e;this.value="ltr"===i||"rtl"===i?i:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(no,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(no,8))},token:t,providedIn:"root"}),t})(),oo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();function ro(t){return t&&"function"==typeof t.connect}class ao{applyChanges(t,e,i,n,s){t.forEachOperation((t,n,o)=>{let r,a;if(null==t.previousIndex){const s=i(t,n,o);r=e.createEmbeddedView(s.templateRef,s.context,s.index),a=1}else null==o?(e.remove(n),a=3):(r=e.get(n),e.move(r,o),a=2);s&&s({context:null==r?void 0:r.context,operation:a,record:t})})}detach(){}}class co{constructor(t=!1,e,i=!0){this._multiple=t,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new lt.xQ,e&&e.length&&(t?e.forEach(t=>this._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}let uo=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let i of this._listeners)i(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const lo=new s.OlP("_ViewRepeater");let ho=(()=>{class t{constructor(t,e,i){this._ngZone=t,this._platform=e,this._scrolled=new lt.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new ft.y(e=>{this._globalSubscription||this._addGlobalListener();const i=t>0?this._scrolled.pipe(Ss(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,ut.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe((0,at.h)(t=>!t||i.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((i,n)=>{this._scrollableContainsElement(n,t)&&e.push(n)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let i=Jn(e),n=t.getElementRef().nativeElement;do{if(i==n)return!0}while(i=i.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>es(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(Ws),s.LFG(n.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(Ws),s.LFG(n.K0,8))},token:t,providedIn:"root"}),t})(),po=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=i,this.dir=n,this._destroyed=new lt.xQ,this._elementScrolled=new ft.y(t=>this.ngZone.runOutsideAngular(()=>es(this.elementRef.nativeElement,"scroll").pipe(Es(this._destroyed)).subscribe(t)))}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(t){const e=this.elementRef.nativeElement,i=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=i?t.end:t.start),null==t.right&&(t.right=i?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),i&&0!=to()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==to()?t.left=t.right:1==to()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const e=this.elementRef.nativeElement;Qs()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;const i=this.dir&&"rtl"==this.dir.value;return"start"==t?t=i?"right":"left":"end"==t&&(t=i?"left":"right"),i&&2==to()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:i&&1==to()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(ho),s.Y36(s.R0b),s.Y36(so,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),fo=(()=>{class t{constructor(t,e,i){this._platform=t,this._change=new lt.xQ,this._changeListener=t=>{this._change.next(t)},this._document=i,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:i}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+e,height:i,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Ss(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Ws),s.LFG(s.R0b),s.LFG(n.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Ws),s.LFG(s.R0b),s.LFG(n.K0,8))},token:t,providedIn:"root"}),t})(),go=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),mo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[oo,Us,go],oo,go]}),t})();class _o{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class bo extends _o{constructor(t,e,i,n){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=n}}class yo extends _o{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class wo extends _o{constructor(t){super(),this.element=t instanceof s.SBq?t.nativeElement:t}}class Ao{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof bo?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof yo?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof wo?(this._attachedPortal=t,this.attachDomPortal(t)):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(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Mo extends Ao{constructor(t,e,i,n,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=n,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=t,i}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(t=>this.outletElement.appendChild(t)),i.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(i);-1!==t&&e.remove(t)}),this._attachedPortal=t,i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let vo=(()=>{class t extends Ao{constructor(t,e,i){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new s.vpe,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(i,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=i}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),n=e.createComponent(i,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s._Vd),s.Y36(s.s_b),s.Y36(n.K0))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[s.qOj]}),t})(),To=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();var ko=i(1906);class Lo{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new Co(t,this.predicate,this.inclusive))}}class Co extends Lt.L{constructor(t,e,i){super(t),this.predicate=e,this.inclusive=i,this.index=0}_next(t){const e=this.destination;let i;try{i=this.predicate(t,this.index++)}catch(n){return void e.error(n)}this.nextOrComplete(t,i)}nextOrComplete(t,e){const i=this.destination;Boolean(e)?i.next(t):(this.inclusive&&i.next(t),i.complete())}}function So(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}const Eo=Qs();class zo{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=$n(-this._previousScrollPosition.left),t.style.top=$n(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,i=this._document.body.style,n=e.scrollBehavior||"",s=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),Eo&&(e.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Eo&&(e.scrollBehavior=n,i.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class xo{constructor(t,e,i,n){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Oo{enable(){}disable(){}attach(){}}function Ro(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function Do(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class Po{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=n,this._scrollSubscription=null}attach(t){this._overlayRef=t}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 t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:i}=this._viewportRuler.getViewportSize();Ro(t,[{width:e,height:i,bottom:i,right:e,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 No=(()=>{class t{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this.noop=()=>new Oo,this.close=t=>new xo(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new zo(this._viewportRuler,this._document),this.reposition=t=>new Po(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=n}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(ho),s.LFG(fo),s.LFG(s.R0b),s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(ho),s.LFG(fo),s.LFG(s.R0b),s.LFG(n.K0))},token:t,providedIn:"root"}),t})();class Io{constructor(t){if(this.scrollStrategy=new Oo,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class qo{constructor(t,e,i,n,s){this.offsetX=i,this.offsetY=n,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class Bo{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let Ho=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0))},token:t,providedIn:"root"}),t})(),Yo=(()=>{class t extends Ho{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let i=e.length-1;i>-1;i--)if(e[i]._keydownEvents.observers.length>0){e[i]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0))},token:t,providedIn:"root"}),t})(),jo=(()=>{class t extends Ho{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,i=this._attachedOverlays.slice();for(let n=i.length-1;n>-1;n--){const s=i[n];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){if(super.add(t),!this._isAttached){const t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),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 t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0),s.LFG(Ws))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0),s.LFG(Ws))},token:t,providedIn:"root"}),t})();const Fo="undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha;let Wo=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){if(this._platform.isBrowser||Fo){const t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let e=0;ethis._backdropClick.next(t),this._keydownEvents=new lt.xQ,this._outsidePointerEvents=new lt.xQ,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,vt.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),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 t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),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&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=$n(this._config.width),t.height=$n(this._config.height),t.minWidth=$n(this._config.minWidth),t.minHeight=$n(this._config.minHeight),t.maxWidth=$n(this._config.maxWidth),t.maxHeight=$n(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),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),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const n=t.classList;Vn(e).forEach(t=>{t&&(i?n.add(t):n.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Es((0,ko.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._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const Ko=/([A-Za-z%]+)$/;class Zo{constructor(t,e,i,n,s){this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=s,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 lt.xQ,this._resizeSubscription=Ft.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.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();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,n=[];let s;for(let o of this._preferredPositions){let r=this._getOriginPoint(t,o),a=this._getOverlayPoint(r,e,o),c=this._getOverlayFit(a,e,i,o);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(o,r);this._canFitWithFlexibleDimensions(c,a,i)?n.push({position:o,origin:r,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(r,o)}):(!s||s.overlayFit.visibleAreae&&(e=n,t=i)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Go(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let i,n;if("center"==e.originX)i=t.left+t.width/2;else{const n=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;i="start"==e.originX?n:s}return n="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:n}}_getOverlayPoint(t,e,i){let n,s;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+s}}_getOverlayFit(t,e,i,n){const s=Vo(e);let{x:o,y:r}=t,a=this._getOffset(n,"x"),c=this._getOffset(n,"y");a&&(o+=a),c&&(r+=c);let u=0-r,l=r+s.height-i.height,h=this._subtractOverflows(s.width,0-o,o+s.width-i.width),d=this._subtractOverflows(s.height,u,l),p=h*d;return{visibleArea:p,isCompletelyWithinViewport:s.width*s.height===p,fitsInViewportVertically:d===s.height,fitsInViewportHorizontally:h==s.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const n=i.bottom-e.y,s=i.right-e.x,o=Xo(this._overlayRef.getConfig().minHeight),r=Xo(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=r&&r<=s;return(t.fitsInViewportVertically||null!=o&&o<=n)&&a}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const n=Vo(e),s=this._viewportRect,o=Math.max(t.x+n.width-s.width,0),r=Math.max(t.y+n.height-s.height,0),a=Math.max(s.top-i.top-t.y,0),c=Math.max(s.left-i.left-t.x,0);let u=0,l=0;return u=n.width<=s.width?c||-o:t.xn&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-n/2)}if("end"===e.overlayX&&!n||"start"===e.overlayX&&n)u=i.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!n||"end"===e.overlayX&&n)c=t.x,a=i.right-t.x;else{const e=Math.min(i.right-t.x+i.left,t.x),n=this._lastBoundingBoxSize.width;a=2*e,c=t.x-e,a>n&&!this._isInitialRender&&!this._growAfterOpen&&(c=t.x-n/2)}return{top:o,left:c,bottom:r,right:u,width:a,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;n.height=$n(i.height),n.top=$n(i.top),n.bottom=$n(i.bottom),n.width=$n(i.width),n.left=$n(i.left),n.right=$n(i.right),n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(n.maxHeight=$n(t)),s&&(n.maxWidth=$n(s))}this._lastBoundingBoxSize=i,Go(this._boundingBox.style,n)}_resetBoundingBoxStyles(){Go(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Go(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},n=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(n){const n=this._viewportRuler.getViewportScrollPosition();Go(i,this._getExactOverlayY(e,t,n)),Go(i,this._getExactOverlayX(e,t,n))}else i.position="static";let r="",a=this._getOffset(e,"x"),c=this._getOffset(e,"y");a&&(r+=`translateX(${a}px) `),c&&(r+=`translateY(${c}px)`),i.transform=r.trim(),o.maxHeight&&(n?i.maxHeight=$n(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(n?i.maxWidth=$n(o.maxWidth):s&&(i.maxWidth="")),Go(this._pane.style,i)}_getExactOverlayY(t,e,i){let n={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i));let o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=o,"bottom"===t.overlayY?n.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":n.top=$n(s.y),n}_getExactOverlayX(t,e,i){let n,s={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),n=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===n?s.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":s.left=$n(o.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Do(t,i),isOriginOutsideView:Ro(t,i),isOverlayClipped:Do(e,i),isOverlayOutsideView:Ro(e,i)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&Vn(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof s.SBq)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function Go(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function Xo(t){if("number"!=typeof t&&null!=t){const[e,i]=t.split(Ko);return i&&"px"!==i?null:parseFloat(e)}return t||null}function Vo(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class $o{constructor(t,e,i,n,s,o,r){this._preferredPositions=[],this._positionStrategy=new Zo(i,n,s,o,r).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,i,n){const s=new qo(t,e,i,n);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}class Jo{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:n,height:s,maxWidth:o,maxHeight:r}=i,a=!("100%"!==n&&"100vw"!==n||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||r&&"100%"!==r&&"100vh"!==r);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove("cdk-global-overlay-wrapper"),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let Qo=(()=>{class t{constructor(t,e,i,n){this._viewportRuler=t,this._document=e,this._platform=i,this._overlayContainer=n}global(){return new Jo}connectedTo(t,e,i){return new $o(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new Zo(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(fo),s.LFG(n.K0),s.LFG(Ws),s.LFG(Wo))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(fo),s.LFG(n.K0),s.LFG(Ws),s.LFG(Wo))},token:t,providedIn:"root"}),t})(),tr=0,er=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u,l){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=s,this._injector=o,this._ngZone=r,this._document=a,this._directionality=c,this._location=u,this._outsideClickDispatcher=l}create(t){const e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),s=new Io(t);return s.direction=s.direction||this._directionality.value,new Uo(n,e,i,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+tr++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(s.z2F)),new Mo(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(No),s.LFG(Wo),s.LFG(s._Vd),s.LFG(Qo),s.LFG(Yo),s.LFG(s.zs3),s.LFG(s.R0b),s.LFG(n.K0),s.LFG(so),s.LFG(n.Ye),s.LFG(jo))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const ir=[{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"}],nr=new s.OlP("cdk-connected-overlay-scroll-strategy");let sr=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),or=(()=>{class t{constructor(t,e,i,n,o){this._overlay=t,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Ft.w.EMPTY,this._attachSubscription=Ft.w.EMPTY,this._detachSubscription=Ft.w.EMPTY,this._positionSubscription=Ft.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new s.vpe,this.positionChange=new s.vpe,this.attach=new s.vpe,this.detach=new s.vpe,this.overlayKeydown=new s.vpe,this.overlayOutsideClick=new s.vpe,this._templatePortal=new yo(e,i),this._scrollStrategyFactory=n,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=Zn(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=Zn(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=Zn(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=Zn(t)}get push(){return this._push}set push(t){this._push=Zn(t)}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(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=ir);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27!==t.keyCode||this.disableClose||So(t)||(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new Io({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}_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(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t,e=!1){return i=>i.lift(new Lo(t,e))}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(er),s.Y36(s.Rgc),s.Y36(s.s_b),s.Y36(nr),s.Y36(so,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[s.TTD]}),t})();const rr={provide:nr,deps:[er],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let ar=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[er,rr],imports:[[oo,To,mo],mo]}),t})();var cr=i(7701);let ur=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),lr=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=Jn(t);return new ft.y(t=>{const i=this._observeElement(e).subscribe(t);return()=>{i.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new lt.xQ,i=this._mutationObserverFactory.create(t=>e.next(t));i&&i.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:i,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:i}=this._observedElements.get(t);e&&e.disconnect(),i.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(ur))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(ur))},token:t,providedIn:"root"}),t})(),hr=(()=>{class t{constructor(t,e,i){this._contentObserver=t,this._elementRef=e,this._ngZone=i,this.event=new s.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=Zn(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=Gn(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe((0,cr.b)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(lr),s.Y36(s.SBq),s.Y36(s.R0b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),dr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[ur]}),t})();function pr(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}let fr=0;const gr=new Map;let mr=null,_r=(()=>{class t{constructor(t){this._document=t}describe(t,e,i){if(!this._canBeDescribed(t,e))return;const n=br(e,i);"string"!=typeof e?(yr(e),gr.set(n,{messageElement:e,referenceCount:0})):gr.has(n)||this._createMessageElement(e,i),this._isElementDescribedByMessage(t,n)||this._addMessageReference(t,n)}removeDescription(t,e,i){if(!e||!this._isElementNode(t))return;const n=br(e,i);if(this._isElementDescribedByMessage(t,n)&&this._removeMessageReference(t,n),"string"==typeof e){const t=gr.get(n);t&&0===t.referenceCount&&this._deleteMessageElement(n)}mr&&0===mr.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const i=gr.get(e);!function(t,e,i){const n=pr(t,e);n.some(t=>t.trim()==i.trim())||(n.push(i.trim()),t.setAttribute(e,n.join(" ")))}(t,"aria-describedby",i.messageElement.id),t.setAttribute("cdk-describedby-host",""),i.referenceCount++}_removeMessageReference(t,e){const i=gr.get(e);i.referenceCount--,function(t,e,i){const n=pr(t,e).filter(t=>t!=i.trim());n.length?t.setAttribute(e,n.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",i.messageElement.id),t.removeAttribute("cdk-describedby-host")}_isElementDescribedByMessage(t,e){const i=pr(t,"aria-describedby"),n=gr.get(e),s=n&&n.messageElement.id;return!!s&&-1!=i.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const i=null==e?"":`${e}`.trim(),n=t.getAttribute("aria-label");return!(!i||n&&n.trim()===i)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0))},token:t,providedIn:"root"}),t})();function br(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function yr(t){t.id||(t.id="cdk-describedby-message-"+fr++)}class wr{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new lt.xQ,this._typeaheadSubscription=Ft.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new lt.xQ,this.change=new lt.xQ,t instanceof s.n_E&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Yt.b)(t=>this._pressedLetters.push(t)),(0,cr.b)(t),(0,at.h)(()=>this._pressedLetters.length>0),(0,At.U)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let i=1;i!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||So(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.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(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),n=e[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const n=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[n]))return void this.setActiveItem(n)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof s.n_E?this._items.toArray():this._items}}class Ar extends wr{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class Mr extends wr{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let vr=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(hE){return null}}((i=t).ownerDocument&&i.ownerDocument.defaultView||window);var i;if(e){if(-1===kr(e))return!1;if(!this.isVisible(e))return!1}let n=t.nodeName.toLowerCase(),s=kr(t);return t.hasAttribute("contenteditable")?-1!==s:"iframe"!==n&&"object"!==n&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),i="input"===e&&t.type;return"text"===i||"password"===i||"select"===e||"textarea"===e}(t))&&("audio"===n?!!t.hasAttribute("controls")&&-1!==s:"video"===n?-1!==s&&(null!==s||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||Tr(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Ws))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Ws))},token:t,providedIn:"root"}),t})();function Tr(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function kr(t){if(!Tr(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class Lr{constructor(t,e,i,n,s=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=n,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),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(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let i=0;i=0;i--){let t=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe((0,vt.q)(1)).subscribe(t)}}let Cr=(()=>{class t{constructor(t,e,i){this._checker=t,this._ngZone=e,this._document=i}create(t,e=!1){return new Lr(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(vr),s.LFG(s.R0b),s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(vr),s.LFG(s.R0b),s.LFG(n.K0))},token:t,providedIn:"root"}),t})();"undefined"!=typeof Element&∈const Sr=new s.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Er=new s.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let zr=(()=>{class t{constructor(t,e,i,n){this._ngZone=e,this._defaultOptions=n,this._document=i,this._liveElement=t||this._createLiveElement()}announce(t,...e){const i=this._defaultOptions;let n,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[n,s]=e,this.clear(),clearTimeout(this._previousTimeout),n||(n=i&&i.politeness?i.politeness:"polite"),null==s&&i&&(s=i.duration),this._liveElement.setAttribute("aria-live",n),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div");for(let i=0;i{class t{constructor(t,e,i,n){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=xr(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{Or(t)?this._lastTouchTarget||this._setOriginForCurrentEventQueue("keyboard"):(null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=Nr(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650))},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=Nr(t),i="focus"===t.type?this._onFocus:this._onBlur;for(let n=e;n;n=n.parentElement)i.call(this,t,n)},this._document=i,this._detectionMode=(null==n?void 0:n.detectionMode)||0}monitor(t,e=!1){const i=Jn(t);if(!this._platform.isBrowser||1!==i.nodeType)return(0,ut.of)(null);const n=eo(i)||this._getDocument(),s=this._elementInfo.get(i);if(s)return e&&(s.checkChildren=!0),s.subject;const o={checkChildren:e,subject:new lt.xQ,rootNode:n};return this._elementInfo.set(i,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(t){const e=Jn(t),i=this._elementInfo.get(e);i&&(i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(i))}focusVia(t,e,i){const n=Jn(t);n===this._getDocument().activeElement?this._getClosestElementsInfo(n).forEach(([t,i])=>this._originChanged(t,e,i)):(this._setOriginForCurrentEventQueue(e),"function"==typeof n.focus&&n.focus(i))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,i){i?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=Nr(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const i=this._elementInfo.get(e);i&&(i.checkChildren||e===Nr(t))&&this._originChanged(e,this._getFocusOrigin(t),i)}_onBlur(t,e){const i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,i=this._rootNodeFocusListenerCount.get(e)||0;i||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,Dr),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,Dr)}),this._rootNodeFocusListenerCount.set(e,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,Dr),t.addEventListener("mousedown",this._documentMousedownListener,Dr),t.addEventListener("touchstart",this._documentTouchstartListener,Dr),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Dr),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Dr),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,Dr),t.removeEventListener("mousedown",this._documentMousedownListener,Dr),t.removeEventListener("touchstart",this._documentTouchstartListener,Dr),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,i){this._setClasses(t,e),this._emitOrigin(i.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((i,n)=>{(n===t||i.checkChildren&&n.contains(t))&&e.push([n,i])}),e}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(Ws),s.LFG(n.K0,8),s.LFG(Rr,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(Ws),s.LFG(n.K0,8),s.LFG(Rr,8))},token:t,providedIn:"root"}),t})();function Nr(t){return t.composedPath?t.composedPath()[0]:t.target}let Ir=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,i=e&&e.getComputedStyle?e.getComputedStyle(t):null,n=(i&&i.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),n){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black"),this._hasCheckedHighContrastMode=!0;const e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Ws),s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Ws),s.LFG(n.K0))},token:t,providedIn:"root"}),t})(),qr=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Ir))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Us,dr]]}),t})();const Br=new s.GfV("12.0.5");class Hr{}function Yr(t,e){return{type:7,name:t,definitions:e,options:{}}}function jr(t,e=null){return{type:4,styles:e,timings:t}}function Fr(t,e=null){return{type:3,steps:t,options:e}}function Wr(t,e=null){return{type:2,steps:t,options:e}}function Ur(t){return{type:6,styles:t,offset:null}}function Kr(t,e,i){return{type:0,name:t,styles:e,options:i}}function Zr(t){return{type:5,steps:t}}function Gr(t,e,i=null){return{type:1,expr:t,animation:e,options:i}}function Xr(t=null){return{type:9,options:t}}function Vr(t,e,i=null){return{type:11,selector:t,animation:e,options:i}}function $r(t){Promise.resolve(null).then(t)}class Jr{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){$r(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Qr{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,n=0;const s=this.players.length;0==s?$r(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++i==s&&this._onDestroy()}),t.onStart(()=>{++n==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function ta(){return"undefined"!=typeof window&&void 0!==window.document}function ea(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function ia(t){switch(t.length){case 0:return new Jr;case 1:return t[0];default:return new Qr(t)}}function na(t,e,i,n,s={},o={}){const r=[],a=[];let c=-1,u=null;if(n.forEach(t=>{const i=t.offset,n=i==c,l=n&&u||{};Object.keys(t).forEach(i=>{let n=i,a=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,r),a){case"!":a=s[i];break;case"*":a=o[i];break;default:a=e.normalizeStyleValue(i,n,a,r)}l[n]=a}),n||a.push(l),u=l,c=i}),r.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${r.join(t)}`)}return a}function sa(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&oa(i,"start",t)));break;case"done":t.onDone(()=>n(i&&oa(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&oa(i,"destroy",t)))}}function oa(t,e,i){const n=i.totalTime,s=ra(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),o=t._data;return null!=o&&(s._data=o),s}function ra(t,e,i,n,s="",o=0,r){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:s,totalTime:o,disabled:!!r}}function aa(t,e,i){let n;return t instanceof Map?(n=t.get(e),n||t.set(e,n=i)):(n=t[e],n||(n=t[e]=i)),n}function ca(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let ua=(t,e)=>!1,la=(t,e)=>!1,ha=(t,e,i)=>[];const da=ea();(da||"undefined"!=typeof Element)&&(ua=ta()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),la=(()=>{if(da||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,i)=>e.apply(t,[i]):la}})(),ha=(t,e,i)=>{let n=[];if(i){const i=t.querySelectorAll(e);for(let t=0;t{const n=i.replace(/([a-z])([A-Z])/g,"$1-$2");e[n]=t[i]}),e}let wa=(()=>{class t{validateStyleProperty(t){return ga(t)}matchesElement(t,e){return ma(t,e)}containsElement(t,e){return _a(t,e)}query(t,e,i){return ba(t,e,i)}computeStyle(t,e,i){return i||""}animate(t,e,i,n,s,o=[],r){return new Jr(i,n)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Aa=(()=>{class t{}return t.NOOP=new wa,t})();function Ma(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:va(parseFloat(e[1]),e[2])}function va(t,e){switch(e){case"s":return 1e3*t;default:return t}}function Ta(t,e,i){return t.hasOwnProperty("duration")?t:function(t,e,i){let n,s=0,o="";if("string"==typeof t){const i=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===i)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};n=va(parseFloat(i[1]),i[2]);const r=i[3];null!=r&&(s=va(parseFloat(r),i[4]));const a=i[5];a&&(o=a)}else n=t;if(!i){let i=!1,o=e.length;n<0&&(e.push("Duration values below 0 are not allowed for this animation step."),i=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),i=!0),i&&e.splice(o,0,`The provided timing value "${t}" is invalid.`)}return{duration:n,delay:s,easing:o}}(t,e,i)}function ka(t,e={}){return Object.keys(t).forEach(i=>{e[i]=t[i]}),e}function La(t,e,i={}){if(e)for(let n in t)i[n]=t[n];else ka(t,i);return i}function Ca(t,e,i){return i?e+":"+i+";":""}function Sa(t){let e="";for(let i=0;i{const s=Ia(n);i&&!i.hasOwnProperty(n)&&(i[n]=t.style[s]),t.style[s]=e[n]}),ea()&&Sa(t))}function za(t,e){t.style&&(Object.keys(e).forEach(e=>{const i=Ia(e);t.style[i]=""}),ea()&&Sa(t))}function xa(t){return Array.isArray(t)?1==t.length?t[0]:Wr(t):t}const Oa=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ra(t){let e=[];if("string"==typeof t){let i;for(;i=Oa.exec(t);)e.push(i[1]);Oa.lastIndex=0}return e}function Da(t,e,i){const n=t.toString(),s=n.replace(Oa,(t,n)=>{let s=e[n];return e.hasOwnProperty(n)||(i.push(`Please provide a value for the animation param ${n}`),s=""),s.toString()});return s==n?t:s}function Pa(t){const e=[];let i=t.next();for(;!i.done;)e.push(i.value),i=t.next();return e}const Na=/-+([a-z0-9])/g;function Ia(t){return t.replace(Na,(...t)=>t[1].toUpperCase())}function qa(t,e){return 0===t||0===e}function Ba(t,e,i){const n=Object.keys(i);if(n.length&&e.length){let o=e[0],r=[];if(n.forEach(t=>{o.hasOwnProperty(t)||r.push(t),o[t]=i[t]}),r.length)for(var s=1;sfunction(t,e,i){if(":"==t[0]){const n=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,i);if("function"==typeof n)return void e.push(n);t=n}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return i.push(`The provided transition expression "${t}" is not supported`),e;const s=n[1],o=n[2],r=n[3];e.push(Ua(s,r)),"<"!=o[0]||"*"==s&&"*"==r||e.push(Ua(r,s))}(t,i,e)):i.push(t),i}const Fa=new Set(["true","1"]),Wa=new Set(["false","0"]);function Ua(t,e){const i=Fa.has(t)||Wa.has(t),n=Fa.has(e)||Wa.has(e);return(s,o)=>{let r="*"==t||t==s,a="*"==e||e==o;return!r&&i&&"boolean"==typeof s&&(r=s?Fa.has(t):Wa.has(t)),!a&&n&&"boolean"==typeof o&&(a=o?Fa.has(e):Wa.has(e)),r&&a}}const Ka=new RegExp("s*:selfs*,?","g");function Za(t,e,i){return new Ga(t).build(e,i)}class Ga{constructor(t){this._driver=t}build(t,e){const i=new Xa(e);return this._resetContextStyleTimingState(i),Ha(this,xa(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,n=e.depCount=0;const s=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const i=t,n=i.name;n.toString().split(/\s*,\s*/).forEach(t=>{i.name=t,s.push(this.visitState(i,e))}),i.name=n}else if(1==t.type){const s=this.visitTransition(t,e);i+=s.queryCount,n+=s.depCount,o.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:o,queryCount:i,depCount:n,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),n=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=n||{};if(i.styles.forEach(t=>{if(Va(t)){const e=t;Object.keys(e).forEach(t=>{Ra(e[t]).forEach(t=>{o.hasOwnProperty(t)||s.add(t)})})}}),s.size){const i=Pa(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${i.join(", ")}`)}}return{type:0,name:t.name,style:i,options:n?{params:n}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=Ha(this,xa(t.animation),e);return{type:1,matchers:ja(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:$a(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>Ha(this,t,e)),options:$a(t.options)}}visitGroup(t,e){const i=e.currentTime;let n=0;const s=t.steps.map(t=>{e.currentTime=i;const s=Ha(this,t,e);return n=Math.max(n,e.currentTime),s});return e.currentTime=n,{type:3,steps:s,options:$a(t.options)}}visitAnimate(t,e){const i=function(t,e){let i=null;if(t.hasOwnProperty("duration"))i=t;else if("number"==typeof t)return Ja(Ta(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=Ja(0,0,"");return t.dynamic=!0,t.strValue=n,t}return i=i||Ta(n,e),Ja(i.duration,i.delay,i.easing)}(t.timings,e.errors);let n;e.currentAnimateTimings=i;let s=t.styles?t.styles:Ur({});if(5==s.type)n=this.visitKeyframes(s,e);else{let s=t.styles,o=!1;if(!s){o=!0;const t={};i.easing&&(t.easing=i.easing),s=Ur(t)}e.currentTime+=i.duration+i.delay;const r=this.visitStyle(s,e);r.isEmptyStep=o,n=r}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?"*"==t?i.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):i.push(t)}):i.push(t.styles);let n=!1,s=null;return i.forEach(t=>{if(Va(t)){const e=t,i=e.easing;if(i&&(s=i,delete e.easing),!n)for(let t in e)if(e[t].toString().indexOf("{{")>=0){n=!0;break}}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:n,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let n=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(i=>{if(!this._driver.validateStyleProperty(i))return void e.errors.push(`The provided animation property "${i}" is not a supported CSS property for animations`);const o=e.collectedStyles[e.currentQuerySelector],r=o[i];let a=!0;r&&(s!=n&&s>=r.startTime&&n<=r.endTime&&(e.errors.push(`The CSS property "${i}" that exists between the times of "${r.startTime}ms" and "${r.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${n}ms"`),a=!1),s=r.startTime),a&&(o[i]={startTime:s,endTime:n}),e.options&&function(t,e,i){const n=e.params||{},s=Ra(t);s.length&&s.forEach(t=>{n.hasOwnProperty(t)||i.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[i],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let n=0;const s=[];let o=!1,r=!1,a=0;const c=t.steps.map(t=>{const i=this._makeStyleAst(t,e);let c=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(Va(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(Va(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}return e}(i.styles),u=0;return null!=c&&(n++,u=i.offset=c),r=r||u<0||u>1,o=o||u0&&n{const o=l>0?n==h?1:l*n:s[n],r=o*f;e.currentTime=d+p.delay+r,p.duration=r,this._validateStyleAst(t,e),t.offset=o,i.styles.push(t)}),i}visitReference(t,e){return{type:8,animation:Ha(this,xa(t.animation),e),options:$a(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:$a(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:$a(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;const[s,o]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(Ka,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,aa(e.collectedStyles,e.currentQuerySelector,{});const r=Ha(this,xa(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:n.limit||0,optional:!!n.optional,includeSelf:o,animation:r,originalSelector:t.selector,options:$a(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:Ta(t.timings,e.errors,!0);return{type:12,animation:Ha(this,xa(t.animation),e),timings:i,options:null}}}class Xa{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Va(t){return!Array.isArray(t)&&"object"==typeof t}function $a(t){var e;return t?(t=ka(t)).params&&(t.params=(e=t.params)?ka(e):null):t={},t}function Ja(t,e,i){return{duration:t,delay:e,easing:i}}function Qa(t,e,i,n,s,o,r=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:s,delay:o,totalTime:s+o,easing:r,subTimeline:a}}class tc{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const ec=new RegExp(":enter","g"),ic=new RegExp(":leave","g");function nc(t,e,i,n,s,o={},r={},a,c,u=[]){return(new sc).buildKeyframes(t,e,i,n,s,o,r,a,c,u)}class sc{buildKeyframes(t,e,i,n,s,o,r,a,c,u=[]){c=c||new tc;const l=new rc(t,e,c,n,s,u,[]);l.options=a,l.currentTimeline.setStyles([o],null,l.errors,a),Ha(this,i,l);const h=l.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(r).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([r],null,l.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[Qa(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.consume(e.element);if(i){const n=e.createSubContext(t.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,n,n.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let n=e.currentTimeline.currentTime;const s=null!=i.duration?Ma(i.duration):null,o=null!=i.delay?Ma(i.delay):null;return 0!==s&&t.forEach(t=>{const i=e.appendInstructionToTimeline(t,s,o);n=Math.max(n,i.duration+i.delay)}),n}visitReference(t,e){e.updateOptions(t.options,!0),Ha(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let n=e;const s=t.options;if(s&&(s.params||s.delay)&&(n=e.createSubContext(s),n.transformIntoNewTimeline(),null!=s.delay)){6==n.previousNode.type&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=oc);const t=Ma(s.delay);n.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>Ha(this,t,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let n=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?Ma(t.options.delay):0;t.steps.forEach(o=>{const r=e.createSubContext(t.options);s&&r.delayNextStep(s),Ha(this,o,r),n=Math.max(n,r.currentTimeline.currentTime),i.push(r.currentTimeline)}),i.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(n),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return Ta(e.params?Da(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,n=e.currentTimeline.duration,s=i.duration,o=e.createSubContext().currentTimeline;o.easing=i.easing,t.styles.forEach(t=>{o.forwardTime((t.offset||0)*s),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(n+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,n=t.options||{},s=n.delay?Ma(n.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=oc);let o=i;const r=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!n.optional,e.errors);e.currentQueryTotal=r.length;let a=null;r.forEach((i,n)=>{e.currentQueryIndex=n;const r=e.createSubContext(t.options,i);s&&r.delayNextStep(s),i===e.element&&(a=r.currentTimeline),Ha(this,t.animation,r),r.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,r.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,n=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),r=o*(e.currentQueryTotal-1);let a=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=r-a;break;case"full":a=i.currentStaggerTime}const c=e.currentTimeline;a&&c.delayNextStep(a);const u=c.currentTime;Ha(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-u+(n.startTime-i.currentTimeline.startTime)}}const oc={};class rc{constructor(t,e,i,n,s,o,r,a){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=s,this.errors=o,this.timelines=r,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=oc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new ac(this._driver,e,0),r.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let n=this.options;null!=i.duration&&(n.duration=Ma(i.duration)),null!=i.delay&&(n.delay=Ma(i.delay));const s=i.params;if(s){let t=n.params;t||(t=this.options.params={}),Object.keys(s).forEach(i=>{e&&t.hasOwnProperty(i)||(t[i]=Da(s[i],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(t=>{i[t]=e[t]})}}return t}createSubContext(t=null,e,i){const n=e||this.element,s=new rc(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=oc,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const n={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new cc(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(s),n}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,n,s,o){let r=[];if(n&&r.push(this.element),t.length>0){t=(t=t.replace(ec,"."+this._enterClassName)).replace(ic,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=i);0!==i&&(e=i<0?e.slice(e.length+i,e.length):e.slice(0,i)),r.push(...e)}return s||0!=r.length||o.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),r}}class ac{constructor(t,e,i,n){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),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.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new ac(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||"*",this._currentKeyframe[t]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,n){e&&(this._previousKeyframe.easing=e);const s=n&&n.params||{},o=function(t,e){const i={};let n;return t.forEach(t=>{"*"===t?(n=n||Object.keys(e),n.forEach(t=>{i[t]="*"})):La(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(o).forEach(t=>{const e=Da(o[t],s,i);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:"*"),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],n=t._styleSummary[e];(!i||n.time>i.time)&&this._updateStyle(e,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let n=[];this._keyframes.forEach((s,o)=>{const r=La(s,!0);Object.keys(r).forEach(i=>{const n=r[i];"!"==n?t.add(i):"*"==n&&e.add(i)}),i||(r.offset=o/this.duration),n.push(r)});const s=t.size?Pa(t.values()):[],o=e.size?Pa(e.values()):[];if(i){const t=n[0],e=ka(t);t.offset=0,e.offset=1,n=[t,e]}return Qa(this.element,n,s,o,this.duration,this.startTime,this.easing,!1)}}class cc extends ac{constructor(t,e,i,n,s,o,r=!1){super(t,e,o.delay),this.element=e,this.keyframes=i,this.preStyleProps=n,this.postStyleProps=s,this._stretchStartingKeyframe=r,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],o=i+e,r=e/o,a=La(t[0],!1);a.offset=0,s.push(a);const c=La(t[0],!1);c.offset=uc(r),s.push(c);const u=t.length-1;for(let n=1;n<=u;n++){let r=La(t[n],!1);r.offset=uc((e+r.offset*i)/o),s.push(r)}i=o,e=0,n="",t=s}return Qa(this.element,t,this.preStyleProps,this.postStyleProps,i,e,n,!0)}}function uc(t,e=3){const i=Math.pow(10,e-1);return Math.round(t*i)/i}class lc{}class hc extends lc{normalizePropertyName(t,e){return Ia(t)}normalizeStyleValue(t,e,i,n){let s="";const o=i.toString().trim();if(dc[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const e=i.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&n.push(`Please provide a CSS unit value for ${t}:${i}`)}return o+s}}const dc=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("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".split(",")))();function pc(t,e,i,n,s,o,r,a,c,u,l,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:i,fromStyles:o,toState:n,toStyles:r,timelines:a,queriedElements:c,preStyleProps:u,postStyleProps:l,totalTime:h,errors:d}}const fc={};class gc{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,n){return function(t,e,i,n,s){return t.some(t=>t(e,i,n,s))}(this.ast.matchers,t,e,i,n)}buildStyles(t,e,i){const n=this._stateStyles["*"],s=this._stateStyles[t],o=n?n.buildStyles(e,i):{};return s?s.buildStyles(e,i):o}build(t,e,i,n,s,o,r,a,c,u){const l=[],h=this.ast.options&&this.ast.options.params||fc,d=this.buildStyles(i,r&&r.params||fc,l),p=a&&a.params||fc,f=this.buildStyles(n,p,l),g=new Set,m=new Map,_=new Map,b="void"===n,y={params:Object.assign(Object.assign({},h),p)},w=u?[]:nc(t,e,this.ast.animation,s,o,d,f,y,c,l);let A=0;if(w.forEach(t=>{A=Math.max(t.duration+t.delay,A)}),l.length)return pc(e,this._triggerName,i,n,b,d,f,[],[],m,_,A,l);w.forEach(t=>{const i=t.element,n=aa(m,i,{});t.preStyleProps.forEach(t=>n[t]=!0);const s=aa(_,i,{});t.postStyleProps.forEach(t=>s[t]=!0),i!==e&&g.add(i)});const M=Pa(g.values());return pc(e,this._triggerName,i,n,b,d,f,w,M,m,_,A)}}class mc{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const i={},n=ka(this.defaultParams);return Object.keys(t).forEach(e=>{const i=t[e];null!=i&&(n[e]=i)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let o=s[t];o.length>1&&(o=Da(o,n,e)),i[t]=o})}}),i}}class _c{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new mc(t.style,t.options&&t.options.params||{})}),bc(this.states,"true","1"),bc(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new gc(t,e,this.states))}),this.fallbackTransition=new gc(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,n){return this.transitionFactories.find(s=>s.match(t,e,i,n))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function bc(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}const yc=new tc;class wc{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],n=Za(this._driver,e,i);if(i.length)throw new Error(`Unable to build the animation due to the following errors: ${i.join("\n")}`);this._animations[t]=n}_buildPlayer(t,e,i){const n=t.element,s=na(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(n,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const n=[],s=this._animations[t];let o;const r=new Map;if(s?(o=nc(this._driver,e,s,"ng-enter","ng-leave",{},{},i,yc,n),o.forEach(t=>{const e=aa(r,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(n.push("The requested animation doesn't exist or has already been destroyed"),o=[]),n.length)throw new Error(`Unable to create the animation due to the following errors: ${n.join("\n")}`);r.forEach((t,e)=>{Object.keys(t).forEach(i=>{t[i]=this._driver.computeStyle(e,i,"*")})});const a=ia(o.map(t=>{const e=r.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,i,n){const s=ra(e,"","","");return sa(this._getPlayer(t),i,s,n),()=>{}}command(t,e,i,n){if("register"==i)return void this.register(t,n[0]);if("create"==i)return void this.create(t,e,n[0]||{});const s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(t)}}}const Ac=[],Mc={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},vc={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Tc{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=null!=(n=i?t.value:t)?n:null,i){const e=ka(t);delete e.value,this.options=e}else this.options={};var n;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(i=>{null==t[i]&&(t[i]=e[i])})}}}const kc=new Tc("void");class Lc{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Rc(e,this._hostClassName)}listen(t,e,i,n){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=i)&&"done"!=s)throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);var s;const o=aa(this._elementListeners,t,[]),r={name:e,phase:i,callback:n};o.push(r);const a=aa(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Rc(t,"ng-trigger"),Rc(t,"ng-trigger-"+e),a[e]=kc),()=>{this._engine.afterFlush(()=>{const t=o.indexOf(r);t>=0&&o.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,i,n=!0){const s=this._getTrigger(e),o=new Sc(this.id,e,t);let r=this._engine.statesByElement.get(t);r||(Rc(t,"ng-trigger"),Rc(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,r={}));let a=r[e];const c=new Tc(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),r[e]=c,a||(a=kc),"void"!==c.value&&a.value===c.value){if(!function(t,e){const i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(let s=0;s{za(t,i),Ea(t,n)})}return}const u=aa(this._engine.playersByElement,t,[]);u.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let l=s.matchTransition(a.value,c.value,t,c.params),h=!1;if(!l){if(!n)return;l=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:l,fromState:a,toState:c,player:o,isFallbackTransition:h}),h||(Rc(t,"ng-animate-queued"),o.onStart(()=>{Dc(t,"ng-animate-queued")})),o.onDone(()=>{let e=this.players.indexOf(o);e>=0&&this.players.splice(e,1);const i=this._engine.playersByElement.get(t);if(i){let t=i.indexOf(o);t>=0&&i.splice(t,1)}}),this.players.push(o),u.push(o),o}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,".ng-trigger",!0);i.forEach(t=>{if(t.__ng_removed)return;const i=this._engine.fetchNamespacesByElement(t);i.size?i.forEach(i=>i.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,i,n){const s=this._engine.statesByElement.get(t);if(s){const o=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const i=this.trigger(t,e,"void",n);i&&o.push(i)}}),o.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&ia(o).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const n=new Set;e.forEach(e=>{const s=e.name;if(n.has(s))return;n.add(s);const o=this._triggers[s].fallbackTransition,r=i[s]||kc,a=new Tc("void"),c=new Sc(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:o,fromState:r,toState:a,player:c,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let n=!1;if(i.totalAnimations){const e=i.players.length?i.playersByQueriedElement.get(t):[];if(e&&e.length)n=!0;else{let e=t;for(;e=e.parentNode;)if(i.statesByElement.get(e)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(t),n)i.markElementAsRemoved(this.id,t,!1,e);else{const n=t.__ng_removed;n&&n!==Mc||(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){Rc(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const n=i.player;if(n.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(e=>{if(e.name==i.triggerName){const n=ra(s,i.triggerName,i.fromState.value,i.toState.value);n._data=t,sa(i.player,e.phase,n,e.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):e.push(i)}),this._queue=[],e.sort((t,e)=>{const i=t.transition.ast.depCount,n=e.transition.ast.depCount;return 0==i||0==n?i-n:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class Cc{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,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=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const i=new Lc(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList.length-1;if(i>=0){let n=!1;for(let s=i;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),n=!0;break}n||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(i);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const t=Object.keys(i);for(let n=0;n=0&&this.collectedLeaveElements.splice(t,1)}if(t){const n=this._fetchNamespace(t);n&&n.insertNode(e,i)}n&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Rc(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Dc(t,"ng-animate-disabled"))}removeNode(t,e,i,n){if(Ec(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n),i){const i=this.namespacesByHostElement.get(e);i&&i.id!==t&&i.removeNode(e,n)}}else this._onRemovalComplete(e,n)}markElementAsRemoved(t,e,i,n){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}listen(t,e,i,n,s){return Ec(e)?this._fetchNamespace(t).listen(e,i,n,s):()=>{}}_buildInstruction(t,e,i,n,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return ia(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=Mc,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;it()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?ia(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const i=new tc,n=[],s=new Map,o=[],r=new Map,a=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(t=>{u.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let i=0;i{const i="ng-enter"+f++;p.set(e,i),t.forEach(t=>Rc(t,i))});const g=[],m=new Set,_=new Set;for(let z=0;zm.add(t)):_.add(t))}const b=new Map,y=Oc(h,Array.from(m));y.forEach((t,e)=>{const i="ng-leave"+f++;b.set(e,i),t.forEach(t=>Rc(t,i))}),t.push(()=>{d.forEach((t,e)=>{const i=p.get(e);t.forEach(t=>Dc(t,i))}),y.forEach((t,e)=>{const i=b.get(e);t.forEach(t=>Dc(t,i))}),g.forEach(t=>{this.processLeaveNode(t)})});const w=[],A=[];for(let z=this._namespaceList.length-1;z>=0;z--)this._namespaceList[z].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(w.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const u=!l||!this.driver.containsElement(l,s),h=b.get(s),d=p.get(s),f=this._buildInstruction(t,i,d,h,u);if(f.errors&&f.errors.length)A.push(f);else{if(u)return e.onStart(()=>za(s,f.fromStyles)),e.onDestroy(()=>Ea(s,f.toStyles)),void n.push(e);if(t.isFallbackTransition)return e.onStart(()=>za(s,f.fromStyles)),e.onDestroy(()=>Ea(s,f.toStyles)),void n.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),i.append(s,f.timelines),o.push({instruction:f,player:e,element:s}),f.queriedElements.forEach(t=>aa(r,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const i=Object.keys(t);if(i.length){let t=a.get(e);t||a.set(e,t=new Set),i.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const i=Object.keys(t);let n=c.get(e);n||c.set(e,n=new Set),i.forEach(t=>n.add(t))})}});if(A.length){const t=[];A.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),w.forEach(t=>t.destroy()),this.reportError(t)}const M=new Map,v=new Map;o.forEach(t=>{const e=t.element;i.has(e)&&(v.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,M))}),n.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{aa(M,e,[]).push(t),t.destroy()})});const T=g.filter(t=>Ic(t,a,c)),k=new Map;xc(k,this.driver,_,c,"*").forEach(t=>{Ic(t,a,c)&&T.push(t)});const L=new Map;d.forEach((t,e)=>{xc(L,this.driver,new Set(t),a,"!")}),T.forEach(t=>{const e=k.get(t),i=L.get(t);k.set(t,Object.assign(Object.assign({},e),i))});const C=[],S=[],E={};o.forEach(t=>{const{element:e,player:o,instruction:r}=t;if(i.has(e)){if(u.has(e))return o.onDestroy(()=>Ea(e,r.toStyles)),o.disabled=!0,o.overrideTotalTime(r.totalTime),void n.push(o);let t=E;if(v.size>1){let i=e;const n=[];for(;i=i.parentNode;){const e=v.get(i);if(e){t=e;break}n.push(i)}n.forEach(e=>v.set(e,t))}const i=this._buildAnimation(o.namespaceId,r,M,s,L,k);if(o.setRealPlayer(i),t===E)C.push(o);else{const e=this.playersByElement.get(t);e&&e.length&&(o.parentPlayer=ia(e)),n.push(o)}}else za(e,r.fromStyles),o.onDestroy(()=>Ea(e,r.toStyles)),S.push(o),u.has(e)&&n.push(o)}),S.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const i=ia(e);t.setRealPlayer(i)}}),n.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let z=0;z!t.destroyed);n.length?Pc(this,t,n):this.processLeaveNode(t)}return g.length=0,C.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),C}elementContainsData(t,e){let i=!1;const n=e.__ng_removed;return n&&n.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,n,s){let o=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(o=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||"void"==s;e.forEach(e=>{e.queued||(t||e.triggerName==n)&&o.push(e)})}}return(i||n)&&(o=o.filter(t=>!(i&&i!=t.namespaceId||n&&n!=t.triggerName))),o}_beforeAnimationBuild(t,e,i){const n=e.element,s=e.isRemovalTransition?void 0:t,o=e.isRemovalTransition?void 0:e.triggerName;for(const r of e.timelines){const t=r.element,a=t!==n,c=aa(i,t,[]);this._getPreviousPlayers(t,a,s,o,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),c.push(t)})}za(n,e.fromStyles)}_buildAnimation(t,e,i,n,s,o){const r=e.triggerName,a=e.element,c=[],u=new Set,l=new Set,h=e.timelines.map(e=>{const h=e.element;u.add(h);const d=h.__ng_removed;if(d&&d.removedBeforeQueried)return new Jr(e.duration,e.delay);const p=h!==a,f=function(t){const e=[];return Nc(t,e),e}((i.get(h)||Ac).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===h),g=s.get(h),m=o.get(h),_=na(0,this._normalizer,0,e.keyframes,g,m),b=this._buildPlayer(e,_,f);if(e.subTimeline&&n&&l.add(h),p){const e=new Sc(t,r,h);e.setRealPlayer(b),c.push(e)}return b});c.forEach(t=>{aa(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,i){let n;if(t instanceof Map){if(n=t.get(e),n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&t.delete(e)}}else if(n=t[e],n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&delete t[e]}return n}(this.playersByQueriedElement,t.element,t))}),u.forEach(t=>Rc(t,"ng-animating"));const d=ia(h);return d.onDestroy(()=>{u.forEach(t=>Dc(t,"ng-animating")),Ea(a,e.toStyles)}),l.forEach(t=>{aa(n,t,[]).push(d)}),d}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new Jr(t.duration,t.delay)}}class Sc{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new Jr,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>sa(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){aa(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Ec(t){return t&&1===t.nodeType}function zc(t,e){const i=t.style.display;return t.style.display=null!=e?e:"none",i}function xc(t,e,i,n,s){const o=[];i.forEach(t=>o.push(zc(t)));const r=[];n.forEach((i,n)=>{const o={};i.forEach(t=>{const i=o[t]=e.computeStyle(n,t,s);i&&0!=i.length||(n.__ng_removed=vc,r.push(n))}),t.set(n,o)});let a=0;return i.forEach(t=>zc(t,o[a++])),r}function Oc(t,e){const i=new Map;if(t.forEach(t=>i.set(t,[])),0==e.length)return i;const n=new Set(e),s=new Map;function o(t){if(!t)return 1;let e=s.get(t);if(e)return e;const r=t.parentNode;return e=i.has(r)?r:n.has(r)?1:o(r),s.set(t,e),e}return e.forEach(t=>{const e=o(t);1!==e&&i.get(e).push(t)}),i}function Rc(t,e){if(t.classList)t.classList.add(e);else{let i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function Dc(t,e){if(t.classList)t.classList.remove(e);else{let i=t.$$classes;i&&delete i[e]}}function Pc(t,e,i){ia(i).onDone(()=>t.processLeaveNode(e))}function Nc(t,e){for(let i=0;is.add(t)):e.set(t,n),i.delete(t),!0}class qc{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Cc(t,e,i),this._timelineEngine=new wc(t,e,i),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,i,n,s){const o=t+"-"+n;let r=this._triggerCache[o];if(!r){const t=[],e=Za(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${n}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);r=function(t,e){return new _c(t,e)}(n,e),this._triggerCache[o]=r}this._transitionEngine.registerTrigger(e,n,r)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,n){this._transitionEngine.insertNode(t,e,i,n)}onRemove(t,e,i,n){this._transitionEngine.removeNode(t,e,n||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,n){if("@"==i.charAt(0)){const[t,s]=ca(i);this._timelineEngine.command(t,e,s,n)}else this._transitionEngine.trigger(t,e,i,n)}listen(t,e,i,n,s){if("@"==i.charAt(0)){const[t,n]=ca(i);return this._timelineEngine.listen(t,e,n,s)}return this._transitionEngine.listen(t,e,i,n,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Bc(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=Yc(e[0]),e.length>1&&(n=Yc(e[e.length-1]))):e&&(i=Yc(e)),i||n?new Hc(t,i,n):null}let Hc=(()=>{class t{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&Ea(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ea(this._element,this._initialStyles),this._endStyles&&(Ea(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(za(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(za(this._element,this._endStyles),this._endStyles=null),Ea(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Yc(t){let e=null;const i=Object.keys(t);for(let n=0;nthis._handleCallback(t)}apply(){!function(t,e){const i=Xc(t,"").trim();i.length&&(function(t,e){let i=0;for(let n=0;n=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Zc(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const i=Xc(t,"").split(","),n=Kc(i,e);n>=0&&(i.splice(n,1),Gc(t,"",i.join(",")))}(this._element,this._name))}}function Wc(t,e,i){Gc(t,"PlayState",i,Uc(t,e))}function Uc(t,e){const i=Xc(t,"");return i.indexOf(",")>0?Kc(i.split(","),e):Kc([i],e)}function Kc(t,e){for(let i=0;i=0)return i;return-1}function Zc(t,e,i){i?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function Gc(t,e,i,n){const s="animation"+e;if(null!=n){const e=t.style[s];if(e.length){const t=e.split(",");t[n]=i,i=t.join(",")}}t.style[s]=i}function Xc(t,e){return t.style["animation"+e]||""}class Vc{constructor(t,e,i,n,s,o,r,a){this.element=t,this.keyframes=e,this.animationName=i,this._duration=n,this._delay=s,this._finalStyles=r,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=n+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Fc(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(i=>{"offset"!=i&&(t[i]=e?this._finalStyles[i]:Ya(this.element,i))})}this.currentSnapshot=t}}class $c extends Jr{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=ya(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class Jc{constructor(){this._count=0}validateStyleProperty(t){return ga(t)}matchesElement(t,e){return ma(t,e)}containsElement(t,e){return _a(t,e)}query(t,e,i){return ba(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(t=>ya(t));let n=`@keyframes ${e} {\n`,s="";i.forEach(t=>{s=" ";const e=parseFloat(t.offset);n+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const i=t[e];switch(e){case"offset":return;case"easing":return void(i&&(n+=`${s}animation-timing-function: ${i};\n`));default:return void(n+=`${s}${e}: ${i};\n`)}}),n+=`${s}}\n`}),n+="}\n";const o=document.createElement("style");return o.textContent=n,o}animate(t,e,i,n,s,o=[],r){const a=o.filter(t=>t instanceof Vc),c={};qa(i,n)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const u=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(i=>{"offset"!=i&&"easing"!=i&&(e[i]=t[i])})}),e}(e=Ba(t,e,c));if(0==i)return new $c(t,u);const l="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,l,e);(function(t){var e;const i=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&i instanceof ShadowRoot?i:document.head})(t).appendChild(h);const d=Bc(t,e),p=new Vc(t,e,l,i,n,s,u,d);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}}class Qc{constructor(t,e,i,n){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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}_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(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:Ya(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class tu{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(eu().toString()),this._cssKeyframesDriver=new Jc}validateStyleProperty(t){return ga(t)}matchesElement(t,e){return ma(t,e)}containsElement(t,e){return _a(t,e)}query(t,e,i){return ba(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,n,s,o=[],r){if(!r&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,s,o);const a={duration:i,delay:n,fill:0==n?"both":"forwards"};s&&(a.easing=s);const c={},u=o.filter(t=>t instanceof Qc);qa(i,n)&&u.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const l=Bc(t,e=Ba(t,e=e.map(t=>La(t,!1)),c));return new Qc(t,e,a,l)}}function eu(){return ta()&&Element.prototype.animate||{}}let iu=(()=>{class t extends Hr{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:s.ifc.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?Wr(t):t;return ou(this._renderer,null,e,"register",[i]),new nu(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.FYo),s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class nu extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new su(this._id,t,e||{},this._renderer)}}class su{constructor(t,e,i,n){this.id=t,this.element=e,this._renderer=n,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return ou(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function ou(t,e,i,n,s){return t.setProperty(e,`@@${i}:${n}`,s)}let ru=(()=>{class t{constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const i=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(i);return t||(t=new au("",i,this.engine),this._rendererCache.set(i,t)),t}const n=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const o=e=>{Array.isArray(e)?e.forEach(o):this.engine.registerTrigger(n,s,t,e.name,e)};return e.data.animation.forEach(o),new cu(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){t>=0&&te(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,i]=t;e(i)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,i]))}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 t.\u0275fac=function(e){return new(e||t)(s.LFG(s.FYo),s.LFG(qc),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class au{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,n=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,n)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,n){this.delegate.setAttribute(t,e,i,n)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,n){this.delegate.setStyle(t,e,i,n)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class cu extends au{constructor(t,e,i,n){super(e,i,n),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const n=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,n,s,o,t=>{this.factory.scheduleListenerCallback(t._data||-1,i,t)})}return this.delegate.listen(t,e,i)}}let uu=(()=>{class t extends qc{constructor(t,e,i){super(t.body,e,i)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0),s.LFG(Aa),s.LFG(lc))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const lu=new s.OlP("AnimationModuleType"),hu=[{provide:Hr,useClass:iu},{provide:lc,useFactory:function(){return new hc}},{provide:qc,useClass:uu},{provide:s.FYo,useFactory:function(t,e,i){return new ru(t,e,i)},deps:[v,qc,s.R0b]}],du=[{provide:Aa,useFactory:function(){return"function"==typeof eu()?new tu:new Jc}},{provide:lu,useValue:"BrowserAnimations"},...hu],pu=[{provide:Aa,useClass:wa},{provide:lu,useValue:"NoopAnimations"},...hu];let fu=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?pu:du}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:du,imports:[q]}),t})();function gu(t,e){if(1&t&&s._UZ(0,"mat-pseudo-checkbox",4),2&t){const t=s.oxw();s.Q6J("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function mu(t,e){if(1&t&&(s.TgZ(0,"span",5),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.hij("(",t.group.label,")")}}const _u=["*"];let bu=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),yu=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const wu=new s.GfV("12.0.5"),Au=new s.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let Mu=(()=>{class t{constructor(t,e,i){this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return(0,s.X6Q)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&wu.full!==Br.full&&console.warn("The Angular Material version ("+wu.full+") does not match the Angular CDK version ("+Br.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Ir),s.LFG(Au,8),s.LFG(n.K0))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[oo],oo]}),t})();function vu(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Zn(t)}}}function Tu(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function ku(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Zn(t)}}}function Lu(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?Gn(t):this.defaultTabIndex}}}function Cu(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new lt.xQ}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}function Su(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new ft.y(t=>{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}const Eu=new s.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return(0,s.f3M)(s.soG)}});class zu{constructor(){this._localeChanges=new lt.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let i=this.isValid(t),n=this.isValid(e);return i&&n?!this.compareDate(t,e):i==n}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}}const xu=new s.OlP("mat-date-formats");let Ou;try{Ou="undefined"!=typeof Intl}catch(hE){Ou=!1}const Ru={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},Du=Iu(31,t=>String(t+1)),Pu={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},Nu=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Iu(t,e){const i=Array(t);for(let n=0;n{class t extends zu{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(Ou){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return Iu(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return Ru[t]}getDateNames(){if(Ou){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Iu(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return Du}getDayOfWeekNames(t){if(Ou){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return Iu(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return Pu[t]}getYearName(t){if(Ou){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,i){let n=this._createDateWithOverflow(t,e,i);return n.getMonth(),n}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(Ou){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});const i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(i,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let i=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(i)!=((this.getMonth(t)+e)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(Nu.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,i){const n=new Date;return n.setFullYear(t,e,i),n.setHours(0,0,0,0),n}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const i=new Date;return i.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),i.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(i)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Eu,8),s.LFG(Ws))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Bu=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Hu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function Yu(t,e,i){const n=t.nativeElement.classList;i?n.add(e):n.remove(e)}let ju=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Mu],Mu]}),t})();class Fu{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Wu={enterDuration:450,exitDuration:400},Uu=Js({passive:!0}),Ku=["mousedown","touchstart"],Zu=["mouseup","mouseleave","touchend","touchcancel"];class Gu{constructor(t,e,i,n){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,n.isBrowser&&(this._containerElement=Jn(i))}fadeInRipple(t,e,i={}){const n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},Wu),i.animation);i.centered&&(t=n.left+n.width/2,e=n.top+n.height/2);const o=i.radius||function(t,e,i){const n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),s=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+s*s)}(t,e,n),r=t-n.left,a=e-n.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=r-o+"px",u.style.top=a-o+"px",u.style.height=2*o+"px",u.style.width=2*o+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),window.getComputedStyle(u).getPropertyValue("opacity"),u.style.transform="scale(1)";const l=new Fu(this,u,i);return l.state=0,this._activeRipples.add(l),i.persistent||(this._mostRecentTransientRipple=l),this._runTimeoutOutsideZone(()=>{const t=l===this._mostRecentTransientRipple;l.state=1,i.persistent||t&&this._isPointerDown||l.fadeOut()},c),l}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,n=Object.assign(Object.assign({},Wu),t.config.animation);i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.parentNode.removeChild(i)},n.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=Jn(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Ku))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Zu),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=xr(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,Uu)})})}_removeTriggerEvents(){this._triggerElement&&(Ku.forEach(t=>{this._triggerElement.removeEventListener(t,this,Uu)}),this._pointerUpEventsRegistered&&Zu.forEach(t=>{this._triggerElement.removeEventListener(t,this,Uu)}))}}const Xu=new s.OlP("mat-ripple-global-options");let Vu=(()=>{class t{constructor(t,e,i,n,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=n||{},this._rippleRenderer=new Gu(this,e,t,i)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,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:Object.assign(Object.assign(Object.assign({},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(t,e=0,i){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(Ws),s.Y36(Xu,8),s.Y36(lu,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),$u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Mu,Us],Mu]}),t})(),Ju=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(lu,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&s.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},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:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::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}\n'],encapsulation:2,changeDetection:0}),t})(),Qu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Mu]]}),t})();const tl=new s.OlP("MAT_OPTION_PARENT_COMPONENT");class el{}const il=vu(el);let nl=0,sl=(()=>{class t extends il{constructor(t){var e;super(),this._labelId="mat-optgroup-label-"+nl++,this._inert=null!==(e=null==t?void 0:t.inertGroups)&&void 0!==e&&e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(tl,8))},t.\u0275dir=s.lG2({type:t,inputs:{label:"label"},features:[s.qOj]}),t})();const ol=new s.OlP("MatOptgroup");let rl=0;class al{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let cl=(()=>{class t{constructor(t,e,i,n){this._element=t,this._changeDetectorRef=e,this._parent=i,this.group=n,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+rl++,this.onSelectionChange=new s.vpe,this._stateChanges=new lt.xQ}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(t){this._disabled=Zn(t)}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(t,e){const i=this._getHostElement();"function"==typeof i.focus&&i.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){13!==t.keyCode&&32!==t.keyCode||So(t)||(this._selectViaInteraction(),t.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 t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new al(this,t))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(void 0),s.Y36(sl))},t.\u0275dir=s.lG2({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),ul=(()=>{class t extends cl{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(tl,8),s.Y36(ol,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(s.Ikx("id",e.id),s.uIk("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),s.ekj("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[s.qOj],ngContentSelectors:_u,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(t,e){1&t&&(s.F$t(),s.YNc(0,gu,1,2,"mat-pseudo-checkbox",0),s.TgZ(1,"span",1),s.Hsn(2),s.qZA(),s.YNc(3,mu,2,1,"span",2),s._UZ(4,"div",3)),2&t&&(s.Q6J("ngIf",e.multiple),s.xp6(3),s.Q6J("ngIf",e.group&&e.group._inert),s.xp6(1),s.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[n.O5,Vu,Ju],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:transparent}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function ll(t,e,i){if(i.length){let n=e.toArray(),s=i.toArray(),o=0;for(let e=0;ei+n?Math.max(0,t-n+e):i}let dl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[$u,n.ez,Mu,Qu]]}),t})();function pl(t,e){}class fl{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=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const gl={dialogContainer:Yr("dialogContainer",[Kr("void, exit",Ur({opacity:0,transform:"scale(0.7)"})),Kr("enter",Ur({transform:"none"})),Gr("* => enter",jr("150ms cubic-bezier(0, 0, 0.2, 1)",Ur({transform:"none",opacity:1}))),Gr("* => void, * => exit",jr("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Ur({opacity:0})))])};let ml=(()=>{class t extends Ao{constructor(t,e,i,n,o,r){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=i,this._config=o,this._focusMonitor=r,this._animationStateChanged=new s.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=o.ariaLabelledBy||null,this._document=n}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=io(),i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=io())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=io();return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Cr),s.Y36(s.sBO),s.Y36(n.K0,8),s.Y36(fl),s.Y36(Pr))},t.\u0275dir=s.lG2({type:t,viewQuery:function(t,e){if(1&t&&s.Gf(vo,7),2&t){let t;s.iGM(t=s.CRH())&&(e._portalOutlet=t.first)}},features:[s.qOj]}),t})(),_l=(()=>{class t extends ml{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&s.WFA("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(s.Ikx("id",e._id),s.uIk("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),s.d8E("@dialogContainer",e._state))},features:[s.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&s.YNc(0,pl,0,0,"ng-template",0)},directives:[vo],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[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.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}\n"],encapsulation:2,data:{animation:[gl.dialogContainer]}}),t})(),bl=0;class yl{constructor(t,e,i="mat-dialog-"+bl++){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new lt.xQ,this._afterClosed=new lt.xQ,this._beforeClosed=new lt.xQ,this._state=0,e._id=i,e._animationStateChanged.pipe((0,at.h)(t=>"opened"===t.state),(0,vt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,at.h)(t=>"closed"===t.state),(0,vt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe((0,at.h)(t=>27===t.keyCode&&!this.disableClose&&!So(t))).subscribe(t=>{t.preventDefault(),wl(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():wl(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe((0,at.h)(t=>"closing"===t.state),(0,vt.q)(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function wl(t,e,i){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(i)}const Al=new s.OlP("MatDialogData"),Ml=new s.OlP("mat-dialog-default-options"),vl=new s.OlP("mat-dialog-scroll-strategy"),Tl={provide:vl,deps:[er],useFactory:function(t){return()=>t.scrollStrategies.block()}};let kl=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c){this._overlay=t,this._injector=e,this._defaultOptions=i,this._parentDialog=n,this._overlayContainer=s,this._dialogRefConstructor=r,this._dialogContainerType=a,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new lt.xQ,this._afterOpenedAtThisLevel=new lt.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=yt(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(kt(void 0))),this._scrollStrategy=o}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new fl)).id&&this.getDialogById(e.id);const i=this._createOverlay(e),n=this._attachDialogContainer(i,e),s=this._attachDialogContent(t,n,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),n._initializeWithAttachedContent(),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new Io({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const i=s.zs3.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:fl,useValue:e}]}),n=new bo(this._dialogContainerType,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}_attachDialogContent(t,e,i,n){const o=new this._dialogRefConstructor(i,e,n.id);if(t instanceof s.Rgc)e.attachTemplatePortal(new yo(t,null,{$implicit:n.data,dialogRef:o}));else{const i=this._createInjector(n,o,e),s=e.attachComponentPortal(new bo(t,n.viewContainerRef,i));o.componentInstance=s.instance}return o.updateSize(n.width,n.height).updatePosition(n.position),o}_createInjector(t,e,i){const n=t&&t.viewContainerRef&&t.viewContainerRef.injector,o=[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||n&&n.get(so,null,s.XFs.Optional)||o.push({provide:so,useValue:{value:t.direction,change:(0,ut.of)()}}),s.zs3.create({parent:n||this._injector,providers:o})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let i=e.length-1;i>-1;i--){let n=e[i];n===t||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(er),s.Y36(s.zs3),s.Y36(void 0),s.Y36(void 0),s.Y36(Wo),s.Y36(void 0),s.Y36(s.DyG),s.Y36(s.DyG),s.Y36(s.OlP))},t.\u0275dir=s.lG2({type:t}),t})(),Ll=(()=>{class t extends kl{constructor(t,e,i,n,s,o,r){super(t,e,n,o,r,s,yl,_l,Al)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(er),s.LFG(s.zs3),s.LFG(n.Ye,8),s.LFG(Ml,8),s.LFG(vl),s.LFG(t,12),s.LFG(Wo))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Cl=0,Sl=(()=>{class t{constructor(t,e,i){this._dialogRef=t,this._elementRef=e,this._dialog=i,this.id="mat-dialog-title-"+Cl++}ngOnInit(){this._dialogRef||(this._dialogRef=function(t,e){let i=t.nativeElement.parentElement;for(;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?e.find(t=>t.id===i.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yl,8),s.Y36(s.SBq),s.Y36(Ll))},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&s.Ikx("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),El=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),zl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})(),xl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Ll,Tl],imports:[[ar,To,Mu],Mu]}),t})();var Ol=i(2623);let Rl=(()=>{class t{constructor(t,e,i,n,s){this.injector=t,this.store=e,this.dialog=i,this.route=n,this.oauthService=s,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(Mn),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(t=>{t.idpFilter&&(this.filterShortname=t.idpFilter)})}getClientConfig(){const t=this.setIdpFilter(),e=t?{acr_values:t}:{};return this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(e.prompt="consent"),{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"),customQueryParams:e}}setIdpFilter(){const t=location.search.substr(1).split("&");this.filterShortname=null;const e=this.store.get("oidc_client","filters");if(!e)return null;let i=null;return t.forEach(t=>{const n=t.split("=");"idpFilter"===n[0]&&e[n[1]]&&(this.filterShortname=n[1],i=e[n[1]])}),e.default&&!i?(this.filterShortname="default",e.default):i}startIdpFilterKeeper(){this.router.events.pipe((0,at.h)(t=>t instanceof Xt)).subscribe(()=>{const t={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===t.idpFilter?{}:t,queryParamsHandling:"merge",replaceUrl:!0})})}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const t=location.pathname,e=location.search.substr(1);return"/api-callback"===t?this.handleAuthCallback().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(t,e).then(()=>this.startRefreshToken())}startRefreshToken(){return this.isLoggedInPromise().then(t=>!!t&&(this.oauthService.events.pipe((0,at.h)(t=>"token_expires"===t.type)).subscribe(()=>{this.oauthService.refreshToken()}),!0))}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):this.oauthService.logOut()}isLoggedInPromise(){return this.isLoggedIn()?Promise.resolve(!0):Promise.resolve(!1)}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}isPotentiallyValidPath(t){const e=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===t)return!0;for(const i of e)if(t.startsWith(i))return!0;return!1}verifyAuthentication(t,e){return this.isLoggedInPromise().then(i=>i?(this.oauthService.loadDiscoveryDocument(),!0):this.isPotentiallyValidPath(t)?(sessionStorage.setItem("auth:redirect",t),sessionStorage.setItem("auth:queryParams",e),!1):new Promise((t,e)=>e("Invalid path")))}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const t=sessionStorage.getItem("mfa_route");if(t)return this.router.navigate([t],{replaceUrl:!0});let e=sessionStorage.getItem("auth:redirect");const i=sessionStorage.getItem("auth:queryParams");let n=[];i&&(n=i.split("&"));const s={};return n.forEach(t=>{const e=t.split("=");s[e[0]]=e[1]}),e&&"/login"!==e||(e="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),s.idpFilter&&(this.filterShortname=s.idpFilter),this.router.navigate([e],{queryParams:s,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.zs3),s.LFG(Kn),s.LFG(Ll),s.LFG(Qe),s.LFG(Ol.Ct))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Dl=i(2056);function Pl(...t){if(1===t.length){const e=t[0];if((0,Qn.k)(e))return Nl(e,null);if((0,Dl.K)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Nl(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Nl(t=1===t.length&&(0,Qn.k)(t[0])?t[0]:t,null).pipe((0,At.U)(t=>e(...t)))}return Nl(t,null)}function Nl(t,e){return new ft.y(i=>{const n=t.length;if(0===n)return void i.complete();const s=new Array(n);let o=0,r=0;for(let a=0;a{u||(u=!0,r++),s[a]=t},error:t=>i.error(t),complete:()=>{o++,o!==n&&u||(r===n&&i.next(e?e.reduce((t,e,i)=>(t[e]=s[i],t),{}):s),i.complete())}}))}})}class Il{}let ql=(()=>{class t extends Il{getTranslation(t){return(0,ut.of)({})}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class Bl{}let Hl=(()=>{class t{handle(t){return t.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function Yl(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;let i,n,s,o=typeof t;if(o==typeof e&&"object"==o){if(!Array.isArray(t)){if(Array.isArray(e))return!1;for(n in s=Object.create(null),t){if(!Yl(t[n],e[n]))return!1;s[n]=!0}for(n in e)if(!(n in s)&&void 0!==e[n])return!1;return!0}if(!Array.isArray(e))return!1;if((i=t.length)==e.length){for(n=0;n{Fl(e[n])?n in t?i[n]=Wl(t[n],e[n]):Object.assign(i,{[n]:e[n]}):Object.assign(i,{[n]:e[n]})}),i}class Ul{}let Kl=(()=>{class t extends Ul{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(t,e){let i;return i="string"==typeof t?this.interpolateString(t,e):"function"==typeof t?this.interpolateFunction(t,e):t,i}getValue(t,e){let i="string"==typeof e?e.split("."):[e];e="";do{e+=i.shift(),!jl(t)||!jl(t[e])||"object"!=typeof t[e]&&i.length?i.length?e+=".":t=void 0:(t=t[e],e="")}while(i.length);return t}interpolateFunction(t,e){return t(e)}interpolateString(t,e){return e?t.replace(this.templateMatcher,(t,i)=>{let n=this.getValue(e,i);return jl(n)?n:t}):t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class Zl{}let Gl=(()=>{class t extends Zl{compile(t,e){return t}compileTranslations(t,e){return t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class Xl{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new s.vpe,this.onLangChange=new s.vpe,this.onDefaultLangChange=new s.vpe}}const Vl=new s.OlP("USE_STORE"),$l=new s.OlP("USE_DEFAULT_LANG"),Jl=new s.OlP("DEFAULT_LANGUAGE"),Ql=new s.OlP("USE_EXTEND");let th=(()=>{class t{constructor(t,e,i,n,o,r=!0,a=!1,c=!1,u){this.store=t,this.currentLoader=e,this.compiler=i,this.parser=n,this.missingTranslationHandler=o,this.useDefaultLang=r,this.isolate=a,this.extend=c,this.pending=!1,this._onTranslationChange=new s.vpe,this._onLangChange=new s.vpe,this._onDefaultLangChange=new s.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(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}setDefaultLang(t){if(t===this.defaultLang)return;let e=this.retrieveTranslations(t);void 0!==e?(null==this.defaultLang&&(this.defaultLang=t),e.pipe((0,vt.q)(1)).subscribe(e=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return(0,ut.of)(this.translations[t]);let e=this.retrieveTranslations(t);return void 0!==e?(this.currentLang||(this.currentLang=t),e.pipe((0,vt.q)(1)).subscribe(e=>{this.changeLang(t)}),e):(this.changeLang(t),(0,ut.of)(this.translations[t]))}retrieveTranslations(t){let e;return(void 0===this.translations[t]||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),e=this._translationRequests[t]),e}getTranslation(t){this.pending=!0;const e=this.currentLoader.getTranslation(t).pipe(Ys(1),(0,vt.q)(1));return this.loadingTranslations=e.pipe((0,At.U)(e=>this.compiler.compileTranslations(e,t)),Ys(1),(0,vt.q)(1)),this.loadingTranslations.subscribe({next:e=>{this.translations[t]=this.extend&&this.translations[t]?Object.assign(Object.assign({},e),this.translations[t]):e,this.updateLangs(),this.pending=!1},error:t=>{this.pending=!1}}),e}setTranslation(t,e,i=!1){e=this.compiler.compileTranslations(e,t),this.translations[t]=(i||this.extend)&&this.translations[t]?Wl(this.translations[t],e):e,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,e,i){let n;if(e instanceof Array){let n={},s=!1;for(let o of e)n[o]=this.getParsedResult(t,o,i),ms(n[o])&&(s=!0);return s?Pl(e.map(t=>ms(n[t])?n[t]:(0,ut.of)(n[t]))).pipe((0,At.U)(t=>{let i={};return t.forEach((t,n)=>{i[e[n]]=t}),i})):n}if(t&&(n=this.parser.interpolate(this.parser.getValue(t,e),i)),void 0===n&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(n=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e),i)),void 0===n){let t={key:e,translateService:this};void 0!==i&&(t.interpolateParams=i),n=this.missingTranslationHandler.handle(t)}return void 0!==n?n:e}get(t,e){if(!jl(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,xt.b)(i=>ms(i=this.getParsedResult(i,t,e))?i:(0,ut.of)(i)));{let i=this.getParsedResult(this.translations[this.currentLang],t,e);return ms(i)?i:(0,ut.of)(i)}}getStreamOnTranslationChange(t,e){if(!jl(t)||!t.length)throw new Error('Parameter "key" required');return _t(yt(()=>this.get(t,e)),this.onTranslationChange.pipe((0,Mt.w)(i=>{const n=this.getParsedResult(i.translations,t,e);return"function"==typeof n.subscribe?n:(0,ut.of)(n)})))}stream(t,e){if(!jl(t)||!t.length)throw new Error('Parameter "key" required');return _t(yt(()=>this.get(t,e)),this.onLangChange.pipe((0,Mt.w)(i=>{const n=this.getParsedResult(i.translations,t,e);return ms(n)?n:(0,ut.of)(n)})))}instant(t,e){if(!jl(t)||!t.length)throw new Error('Parameter "key" required');let i=this.getParsedResult(this.translations[this.currentLang],t,e);if(ms(i)){if(t instanceof Array){let e={};return t.forEach((i,n)=>{e[t[n]]=t[n]}),e}return t}return i}set(t,e,i=this.currentLang){this.translations[i][t]=this.compiler.compile(e,i),this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==t?(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Xl),s.LFG(Il),s.LFG(Zl),s.LFG(Ul),s.LFG(Bl),s.LFG($l),s.LFG(Vl),s.LFG(Ql),s.LFG(Jl))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),eh=(()=>{class t{constructor(t,e){this.translate=t,this._ref=e,this.value=""}updateValue(t,e,i){let n=e=>{this.value=void 0!==e?e:t,this.lastKey=t,this._ref.markForCheck()};if(i){let s=this.translate.getParsedResult(i,t,e);ms(s.subscribe)?s.subscribe(n):n(s)}this.translate.get(t,e).subscribe(n)}transform(t,...e){if(!t||!t.length)return t;if(Yl(t,this.lastKey)&&Yl(e,this.lastParams))return this.value;let i;if(jl(e[0])&&e.length)if("string"==typeof e[0]&&e[0].length){let t=e[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{i=JSON.parse(t)}catch(n){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${e[0]}`)}}else"object"!=typeof e[0]||Array.isArray(e[0])||(i=e[0]);return this.lastKey=t,this.lastParams=e,this.updateValue(t,i),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(e=>{this.lastKey&&e.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(t,i,e.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(e=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i,e.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(th,16),s.Y36(s.sBO,16))},t.\u0275pipe=s.Yjl({name:"translate",type:t,pure:!1}),t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),ih=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:Il,useClass:ql},e.compiler||{provide:Zl,useClass:Gl},e.parser||{provide:Ul,useClass:Kl},e.missingTranslationHandler||{provide:Bl,useClass:Hl},Xl,{provide:Vl,useValue:e.isolate},{provide:$l,useValue:e.useDefaultLang},{provide:Ql,useValue:e.extend},{provide:Jl,useValue:e.defaultLanguage},th]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:Il,useClass:ql},e.compiler||{provide:Zl,useClass:Gl},e.parser||{provide:Ul,useClass:Kl},e.missingTranslationHandler||{provide:Bl,useClass:Hl},{provide:Vl,useValue:e.isolate},{provide:$l,useValue:e.useDefaultLang},{provide:Ql,useValue:e.extend},{provide:Jl,useValue:e.defaultLanguage},th]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),nh=(()=>{class t{constructor(t){this.dialogRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yl))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(t,e){1&t&&(s.TgZ(0,"h2",0),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE")))},directives:[El],pipes:[eh],styles:[""]}),t})();const sh=["mat-button",""],oh=["*"],rh=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class ah{constructor(t){this._elementRef=t}}const ch=Tu(vu(ku(ah)));let uh=(()=>{class t extends ch{constructor(t,e,i){super(t),this._focusMonitor=e,this._animationMode=i,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const n of rh)this._hasHostAttributes(n)&&this._getHostElement().classList.add(n);t.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(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Pr),s.Y36(lu,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){if(1&t&&s.Gf(Vu,5),2&t){let t;s.iGM(t=s.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(s.uIk("disabled",e.disabled||null),s.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[s.qOj],attrs:sh,ngContentSelectors:oh,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(t,e){1&t&&(s.F$t(),s.TgZ(0,"span",0),s.Hsn(1),s.qZA(),s._UZ(2,"span",1),s._UZ(3,"span",2)),2&t&&(s.xp6(2),s.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),s.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[Vu],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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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-animation-noopable.mat-raised-button{transition:none;animation:none}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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-animation-noopable.mat-fab{transition:none;animation:none}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t})(),lh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[$u,Mu],Mu]}),t})();const hh=["underline"],dh=["connectionContainer"],ph=["inputContainer"],fh=["label"];function gh(t,e){1&t&&(s.ynx(0),s.TgZ(1,"div",14),s._UZ(2,"div",15),s._UZ(3,"div",16),s._UZ(4,"div",17),s.qZA(),s.TgZ(5,"div",18),s._UZ(6,"div",15),s._UZ(7,"div",16),s._UZ(8,"div",17),s.qZA(),s.BQk())}function mh(t,e){1&t&&(s.TgZ(0,"div",19),s.Hsn(1,1),s.qZA())}function _h(t,e){if(1&t&&(s.ynx(0),s.Hsn(1,2),s.TgZ(2,"span"),s._uU(3),s.qZA(),s.BQk()),2&t){const t=s.oxw(2);s.xp6(3),s.Oqu(t._control.placeholder)}}function bh(t,e){1&t&&s.Hsn(0,3,["*ngSwitchCase","true"])}function yh(t,e){1&t&&(s.TgZ(0,"span",23),s._uU(1," *"),s.qZA())}function wh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"label",20,21),s.NdJ("cdkObserveContent",function(){return s.CHM(t),s.oxw().updateOutlineGap()}),s.YNc(2,_h,4,1,"ng-container",12),s.YNc(3,bh,1,0,"ng-content",12),s.YNc(4,yh,2,0,"span",22),s.qZA()}if(2&t){const t=s.oxw();s.ekj("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),s.Q6J("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),s.uIk("for",t._control.id)("aria-owns",t._control.id),s.xp6(2),s.Q6J("ngSwitchCase",!1),s.xp6(1),s.Q6J("ngSwitchCase",!0),s.xp6(1),s.Q6J("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function Ah(t,e){1&t&&(s.TgZ(0,"div",24),s.Hsn(1,4),s.qZA())}function Mh(t,e){if(1&t&&(s.TgZ(0,"div",25,26),s._UZ(2,"span",27),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.ekj("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function vh(t,e){if(1&t&&(s.TgZ(0,"div"),s.Hsn(1,5),s.qZA()),2&t){const t=s.oxw();s.Q6J("@transitionMessages",t._subscriptAnimationState)}}function Th(t,e){if(1&t&&(s.TgZ(0,"div",31),s._uU(1),s.qZA()),2&t){const t=s.oxw(2);s.Q6J("id",t._hintLabelId),s.xp6(1),s.Oqu(t.hintLabel)}}function kh(t,e){if(1&t&&(s.TgZ(0,"div",28),s.YNc(1,Th,2,2,"div",29),s.Hsn(2,6),s._UZ(3,"div",30),s.Hsn(4,7),s.qZA()),2&t){const t=s.oxw();s.Q6J("@transitionMessages",t._subscriptAnimationState),s.xp6(1),s.Q6J("ngIf",t.hintLabel)}}const Lh=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Ch=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Sh=0;const Eh=new s.OlP("MatError");let zh=(()=>{class t{constructor(t,e){this.id="mat-error-"+Sh++,t||e.nativeElement.setAttribute("aria-live","polite")}}return t.\u0275fac=function(e){return new(e||t)(s.$8M("aria-live"),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&s.uIk("id",e.id)},inputs:{id:"id"},features:[s._Bn([{provide:Eh,useExisting:t}])]}),t})();const xh={transitionMessages:Yr("transitionMessages",[Kr("enter",Ur({opacity:1,transform:"translateY(0%)"})),Gr("void => enter",[Ur({opacity:0,transform:"translateY(-5px)"}),jr("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Oh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t}),t})(),Rh=0;const Dh=new s.OlP("MatHint");let Ph=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+Rh++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(s.uIk("id",e.id)("align",null),s.ekj("mat-form-field-hint-end","end"===e.align))},inputs:{align:"align",id:"id"},features:[s._Bn([{provide:Dh,useExisting:t}])]}),t})(),Nh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-label"]]}),t})(),Ih=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-placeholder"]]}),t})();const qh=new s.OlP("MatPrefix"),Bh=new s.OlP("MatSuffix");let Hh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","matSuffix",""]],features:[s._Bn([{provide:Bh,useExisting:t}])]}),t})(),Yh=0;class jh{constructor(t){this._elementRef=t}}const Fh=Tu(jh,"primary"),Wh=new s.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Uh=new s.OlP("MatFormField");let Kh=(()=>{class t extends Fh{constructor(t,e,i,n,s,o,r,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=n,this._defaults=s,this._platform=o,this._ngZone=r,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new lt.xQ,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"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=Zn(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe(kt(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Es(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Es(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,ko.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(kt(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(kt(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Es(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(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_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,es(this._label.nativeElement,"transitionend").pipe((0,vt.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 t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,i=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),i&&t.push(i.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,i=0;const n=this._connectionContainerRef.nativeElement,s=n.querySelectorAll(".mat-form-field-outline-start"),o=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=n.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const o=this._getStartEnd(s),r=t.children,a=this._getStartEnd(r[0].getBoundingClientRect());let c=0;for(let t=0;t0?.75*c+10:0}for(let r=0;r{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,Mu,dr],Mu]}),t})(),Gh=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Qsj),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t}),t})(),Xh=(()=>{class t extends Gh{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,features:[s.qOj]}),t})();const Vh=new s.OlP("NgValueAccessor"),$h={provide:Vh,useExisting:(0,s.Gpc)(()=>Qh),multi:!0},Jh=new s.OlP("CompositionEventMode");let Qh=(()=>{class t extends Gh{constructor(t,e,i){super(t,e),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=(0,n.q)()?(0,n.q)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Qsj),s.Y36(s.SBq),s.Y36(Jh,8))},t.\u0275dir=s.lG2({type:t,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(t,e){1&t&&s.NdJ("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[s._Bn([$h]),s.qOj]}),t})();function td(t){return null==t||0===t.length}function ed(t){return null!=t&&"number"==typeof t.length}const id=new s.OlP("NgValidators"),nd=new s.OlP("NgAsyncValidators"),sd=/^(?=.{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 od{static min(t){return function(t){return e=>{if(td(e.value)||td(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i{if(td(e.value)||td(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}(t)}static required(t){return rd(t)}static requiredTrue(t){return function(t){return!0===t.value?null:{required:!0}}(t)}static email(t){return function(t){return td(t.value)||sd.test(t.value)?null:{email:!0}}(t)}static minLength(t){return function(t){return e=>td(e.value)||!ed(e.value)?null:e.value.lengthed(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}(t)}static pattern(t){return function(t){if(!t)return ad;let e,i;return"string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),t=>{if(td(t.value))return null;const n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}}(t)}static nullValidator(t){return null}static compose(t){return pd(t)}static composeAsync(t){return gd(t)}}function rd(t){return td(t.value)?{required:!0}:null}function ad(t){return null}function cd(t){return null!=t}function ud(t){const e=(0,s.QGY)(t)?(0,ct.D)(t):t;return(0,s.CqO)(e),e}function ld(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function hd(t,e){return e.map(e=>e(t))}function dd(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function pd(t){if(!t)return null;const e=t.filter(cd);return 0==e.length?null:function(t){return ld(hd(t,e))}}function fd(t){return null!=t?pd(dd(t)):null}function gd(t){if(!t)return null;const e=t.filter(cd);return 0==e.length?null:function(t){return Pl(hd(t,e).map(ud)).pipe((0,At.U)(ld))}}function md(t){return null!=t?gd(dd(t)):null}function _d(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function bd(t){return t._rawValidators}function yd(t){return t._rawAsyncValidators}let wd=(()=>{class t{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(t){this._rawValidators=t||[],this._composedValidatorFn=fd(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=md(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t}),t})(),Ad=(()=>{class t extends wd{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,features:[s.qOj]}),t})();class Md extends wd{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class vd{constructor(t){this._cd=t}is(t){var e,i;return!!(null===(i=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===i?void 0:i[t])}}let Td=(()=>{class t extends vd{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Md,2))},t.\u0275dir=s.lG2({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&s.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[s.qOj]}),t})(),kd=(()=>{class t extends vd{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Ad,10))},t.\u0275dir=s.lG2({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&s.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[s.qOj]}),t})();function Ld(t,e){return[...e.path,t]}function Cd(t,e){zd(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Od(t,e)})}(t,e),function(t,e){const i=(t,i)=>{e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Od(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const i=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}(t,e)}function Sd(t,e,i=!0){const n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),xd(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Ed(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function zd(t,e){const i=bd(t);null!==e.validator?t.setValidators(_d(i,e.validator)):"function"==typeof i&&t.setValidators([i]);const n=yd(t);null!==e.asyncValidator?t.setAsyncValidators(_d(n,e.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);const s=()=>t.updateValueAndValidity();Ed(e._rawValidators,s),Ed(e._rawAsyncValidators,s)}function xd(t,e){let i=!1;if(null!==t){if(null!==e.validator){const n=bd(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.validator);s.length!==n.length&&(i=!0,t.setValidators(s))}}if(null!==e.asyncValidator){const n=yd(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.asyncValidator);s.length!==n.length&&(i=!0,t.setAsyncValidators(s))}}}const n=()=>{};return Ed(e._rawValidators,n),Ed(e._rawAsyncValidators,n),i}function Od(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Rd(t,e){zd(t,e)}function Dd(t,e){if(!t.hasOwnProperty("model"))return!1;const i=t.model;return!!i.isFirstChange()||!Object.is(e,i.currentValue)}function Pd(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function Nd(t,e){if(!e)return null;let i,n,s;return Array.isArray(e),e.forEach(t=>{t.constructor===Qh?i=t:Object.getPrototypeOf(t.constructor)===Xh?n=t:s=t}),s||n||i||null}function Id(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}function qd(t){return(jd(t)?t.validators:t)||null}function Bd(t){return Array.isArray(t)?fd(t):t||null}function Hd(t,e){return(jd(e)?e.asyncValidators:t)||null}function Yd(t){return Array.isArray(t)?md(t):t||null}function jd(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Fd{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=Bd(this._rawValidators),this._composedAsyncValidatorFn=Yd(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=Bd(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=Yd(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const e=ud(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let n=t;return e.forEach(t=>{n=n instanceof Ud?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof Kd&&n.at(t)||null}),n}(this,t)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new s.vpe,this.statusChanges=new s.vpe}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){jd(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Wd extends Fd{constructor(t=null,e,i){super(qd(e),Hd(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Id(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Id(this._onDisabledChange,t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Ud extends Fd{constructor(t,e,i){super(qd(e),Hd(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof Wd?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((t,n)=>{i=e(i,t,n)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class Kd extends Fd{constructor(t,e,i){super(qd(e),Hd(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,i)=>{this._throwIfControlMissing(i),this.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,i)=>{this.at(i)&&this.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof Wd?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const Zd={provide:Ad,useExisting:(0,s.Gpc)(()=>Xd)},Gd=(()=>Promise.resolve(null))();let Xd=(()=>{class t extends Ad{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new s.vpe,this.form=new Ud({},fd(t),md(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Gd.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),Cd(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Gd.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),Id(this._directives,t)})}addFormGroup(t){Gd.then(()=>{const e=this._findContainer(t.path),i=new Ud({});Rd(i,t),e.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Gd.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){Gd.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,Pd(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(id,10),s.Y36(nd,10))},t.\u0275dir=s.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&s.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s._Bn([Zd]),s.qOj]}),t})();const Vd={provide:Md,useExisting:(0,s.Gpc)(()=>Jd)},$d=(()=>Promise.resolve(null))();let Jd=(()=>{class t extends Md{constructor(t,e,i,n){super(),this.control=new Wd,this._registered=!1,this.update=new s.vpe,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=Nd(0,n)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),Dd(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Ld(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_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(){Cd(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(t){$d.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,i=""===e||e&&"false"!==e;$d.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Ad,9),s.Y36(id,10),s.Y36(nd,10),s.Y36(Vh,10))},t.\u0275dir=s.lG2({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[s._Bn([Vd]),s.qOj,s.TTD]}),t})(),Qd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const tp={provide:Vh,useExisting:(0,s.Gpc)(()=>ep),multi:!0};let ep=(()=>{class t extends Xh{writeValue(t){this.setProperty("value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&s.NdJ("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[s._Bn([tp]),s.qOj]}),t})(),ip=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();const np=new s.OlP("NgModelWithFormControlWarning"),sp={provide:Md,useExisting:(0,s.Gpc)(()=>op)};let op=(()=>{class t extends Md{constructor(t,e,i,n){super(),this._ngModelWarningConfig=n,this.update=new s.vpe,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(e),this.valueAccessor=Nd(0,i)}set isDisabled(t){}ngOnChanges(t){if(this._isControlChanged(t)){const e=t.form.previousValue;e&&Sd(e,this,!1),Cd(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Dd(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Sd(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(id,10),s.Y36(nd,10),s.Y36(Vh,10),s.Y36(np,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[s._Bn([sp]),s.qOj,s.TTD]}),t._ngModelWarningSentOnce=!1,t})();const rp={provide:Ad,useExisting:(0,s.Gpc)(()=>ap)};let ap=(()=>{class t extends Ad{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new s.vpe,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(xd(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return Cd(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){Sd(t.control||null,t,!1),Id(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,Pd(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,i=this.form.get(t.path);e!==i&&(Sd(e||null,t),i instanceof Wd&&(Cd(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);Rd(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return xd(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){zd(this.form,this),this._oldForm&&xd(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(id,10),s.Y36(nd,10))},t.\u0275dir=s.lG2({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&s.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s._Bn([rp]),s.qOj,s.TTD]}),t})();const cp={provide:Md,useExisting:(0,s.Gpc)(()=>up)};let up=(()=>{class t extends Md{constructor(t,e,i,n,o){super(),this._ngModelWarningConfig=o,this._added=!1,this.update=new s.vpe,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=Nd(0,n)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),Dd(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return Ld(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.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Ad,13),s.Y36(id,10),s.Y36(nd,10),s.Y36(Vh,10),s.Y36(np,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[s._Bn([cp]),s.qOj,s.TTD]}),t._ngModelWarningSentOnce=!1,t})();const lp={provide:id,useExisting:(0,s.Gpc)(()=>hp),multi:!0};let hp=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!=`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?rd(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&s.uIk("required",e.required?"":null)},inputs:{required:"required"},features:[s._Bn([lp])]}),t})(),dp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[ip]]}),t})(),pp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[dp]}),t})(),fp=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:np,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[dp]}),t})(),gp=(()=>{class t{group(t,e=null){const i=this._reduceControls(t);let n,s=null,o=null;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(s=null!=e.validators?e.validators:null,o=null!=e.asyncValidators?e.asyncValidators:null,n=null!=e.updateOn?e.updateOn:void 0):(s=null!=e.validator?e.validator:null,o=null!=e.asyncValidator?e.asyncValidator:null)),new Ud(i,{asyncValidators:o,updateOn:n,validators:s})}control(t,e,i){return new Wd(t,e,i)}array(t,e,i){const n=t.map(t=>this._createControl(t));return new Kd(n,e,i)}_reduceControls(t){const e={};return Object.keys(t).forEach(i=>{e[i]=this._createControl(t[i])}),e}_createControl(t){return t instanceof Wd||t instanceof Ud||t instanceof Kd?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t},token:t,providedIn:fp}),t})();const mp=["trigger"],_p=["panel"];function bp(t,e){if(1&t&&(s.TgZ(0,"span",8),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Oqu(t.placeholder)}}function yp(t,e){if(1&t&&(s.TgZ(0,"span",12),s._uU(1),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Oqu(t.triggerValue)}}function wp(t,e){1&t&&s.Hsn(0,0,["*ngSwitchCase","true"])}function Ap(t,e){if(1&t&&(s.TgZ(0,"span",9),s.YNc(1,yp,2,1,"span",10),s.YNc(2,wp,1,0,"ng-content",11),s.qZA()),2&t){const t=s.oxw();s.Q6J("ngSwitch",!!t.customTrigger),s.xp6(2),s.Q6J("ngSwitchCase",!0)}}function Mp(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",13),s.TgZ(1,"div",14,15),s.NdJ("@transformPanel.done",function(e){return s.CHM(t),s.oxw()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return s.CHM(t),s.oxw()._handleKeydown(e)}),s.Hsn(3,1),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("@transformPanelWrap",void 0),s.xp6(1),s.Gre("mat-select-panel ",t._getPanelTheme(),""),s.Udp("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),s.Q6J("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),s.uIk("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const vp=[[["mat-select-trigger"]],"*"],Tp=["mat-select-trigger","*"],kp={transformPanelWrap:Yr("transformPanelWrap",[Gr("* => void",Vr("@transformPanel",[Xr()],{optional:!0}))]),transformPanel:Yr("transformPanel",[Kr("void",Ur({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Kr("showing",Ur({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Kr("showing-multiple",Ur({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Gr("void => *",jr("120ms cubic-bezier(0, 0, 0.2, 1)")),Gr("* => void",jr("100ms 25ms linear",Ur({opacity:0})))])};let Lp=0;const Cp=new s.OlP("mat-select-scroll-strategy"),Sp=new s.OlP("MAT_SELECT_CONFIG"),Ep={provide:Cp,deps:[er],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class zp{constructor(t,e){this.source=t,this.value=e}}class xp{constructor(t,e,i,n,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=s}}const Op=ku(Lu(vu(Cu(xp)))),Rp=new s.OlP("MatSelectTrigger");let Dp=(()=>{class t extends Op{constructor(t,e,i,n,o,r,a,c,u,l,h,d,p,f){var g,m,_;super(o,n,a,c,l),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=i,this._dir=r,this._parentFormField=u,this.ngControl=l,this._liveAnnouncer=p,this._defaultOptions=f,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+Lp++,this._triggerAriaLabelledBy=null,this._destroy=new lt.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Lp++,this._panelDoneAnimatingStream=new lt.xQ,this._overlayPanelClass=(null===(g=this._defaultOptions)||void 0===g?void 0:g.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(_=null===(m=this._defaultOptions)||void 0===m?void 0:m.disableOptionCentering)&&void 0!==_&&_,this.ariaLabel="",this.optionSelectionChanges=yt(()=>{const t=this.options;return t?t.changes.pipe(kt(t),(0,Mt.w)(()=>(0,ko.T)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe((0,vt.q)(1),(0,Mt.w)(()=>this.optionSelectionChanges))}),this.openedChange=new s.vpe,this._openedStream=this.openedChange.pipe((0,at.h)(t=>t),(0,At.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,at.h)(t=>!t),(0,At.U)(()=>{})),this.selectionChange=new s.vpe,this.valueChange=new s.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==f?void 0:f.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=f.typeaheadDebounceInterval),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=Zn(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=Zn(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=Zn(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=Gn(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new co(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(_s(),Es(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Es(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(kt(null),Es(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.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(t){this.value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,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 t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,i=40===e||38===e||37===e||39===e,n=13===e||32===e,s=this._keyManager;if(!s.isTyping()&&n&&!So(t)||(this.multiple||t.altKey)&&i)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;s.onKeydown(t);const i=this.selected;i&&e!==i&&this._liveAnnouncer.announce(i.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,i=t.keyCode,n=40===i||38===i,s=e.isTyping();if(n&&t.altKey)t.preventDefault(),this.close();else if(s||13!==i&&32!==i||!e.activeItem||So(t))if(!s&&this._multiple&&65===i&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const i=e.activeItemIndex;e.onKeydown(t),this._multiple&&n&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==i&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.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,vt.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._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(t=>this._selectValue(t)),this._sortValues();else{const e=this._selectValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{if(this._selectionModel.isSelected(e))return!1;try{return null!=e.value&&this._compareWith(e.value,t)}catch(i){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new Ar(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Es(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Es(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 t=(0,ko.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Es(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,ko.T)(...this.options.map(t=>t._stateChanges)).pipe(Es(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(t,e){const i=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(i!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),i!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,i)=>this.sortComparator?this.sortComparator(e,i,t):t.indexOf(e)-t.indexOf(i)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();let i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(fo),s.Y36(s.sBO),s.Y36(s.R0b),s.Y36(Bu),s.Y36(s.SBq),s.Y36(so,8),s.Y36(Xd,8),s.Y36(ap,8),s.Y36(Uh,8),s.Y36(Md,10),s.$8M("tabindex"),s.Y36(Cp),s.Y36(zr),s.Y36(Sp,8))},t.\u0275dir=s.lG2({type:t,viewQuery:function(t,e){if(1&t&&(s.Gf(mp,5),s.Gf(_p,5),s.Gf(or,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.trigger=t.first),s.iGM(t=s.CRH())&&(e.panel=t.first),s.iGM(t=s.CRH())&&(e._overlayDir=t.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[s.qOj,s.TTD]}),t})(),Pp=(()=>{class t extends Dp{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(t,e,i){const n=this._getItemHeight();return Math.min(Math.max(0,n*t-e+n/2),i)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Es(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,vt.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(t){const e=ll(t,this.options,this.optionGroups),i=this._getItemHeight();this.panel.nativeElement.scrollTop=hl((t+e)*i,i,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new zp(this,t)}_calculateOverlayOffsetX(){const t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),i=this._isRtl(),n=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}i||(s*=-1);const o=0-(t.left+s-(i?n:0)),r=t.right+s-e.width+(i?0:n);o>0?s+=o+8:r>0&&(s-=r+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,i){const n=this._getItemHeight(),s=(n-this._triggerRect.height)/2,o=Math.floor(256/n);let r;return this.disableOptionCentering?0:(r=0===this._scrollTop?t*n:this._scrollTop===i?(t-(this._getItemCount()-o))*n+(n-(this._getItemCount()*n-256)%n):e-n/2,Math.round(-1*r-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,s=i.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),r=Math.min(this._getItemCount()*e,256)-o-this._triggerRect.height;r>s?this._adjustPanelUp(r,s):o>n?this._adjustPanelDown(o,n,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const i=Math.round(t-e);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,i){const n=Math.round(t-e);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),i=Math.min(e*t,256),n=e*t-i;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=ll(s,this.options,this.optionGroups);const o=i/2;this._scrollTop=this._calculateOverlayScroll(s,o,n),this._offsetY=this._calculateOverlayOffsetY(s,o,n),this._checkOverlayWithinViewport(n)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,Rp,5),s.Suo(i,ul,5),s.Suo(i,ol,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.customTrigger=t.first),s.iGM(t=s.CRH())&&(e.options=t),s.iGM(t=s.CRH())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&s.NdJ("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(s.uIk("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),s.ekj("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[s._Bn([{provide:Oh,useExisting:t},{provide:tl,useExisting:t}]),s.qOj],ngContentSelectors:Tp,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(t,e){if(1&t&&(s.F$t(vp),s.TgZ(0,"div",0,1),s.NdJ("click",function(){return e.toggle()}),s.TgZ(3,"div",2),s.YNc(4,bp,2,1,"span",3),s.YNc(5,Ap,3,2,"span",4),s.qZA(),s.TgZ(6,"div",5),s._UZ(7,"div",6),s.qZA(),s.qZA(),s.YNc(8,Mp,4,14,"ng-template",7),s.NdJ("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=s.MAs(1);s.uIk("aria-owns",e.panelOpen?e.id+"-panel":null),s.xp6(3),s.Q6J("ngSwitch",e.empty),s.uIk("id",e._valueId),s.xp6(1),s.Q6J("ngSwitchCase",!0),s.xp6(1),s.Q6J("ngSwitchCase",!1),s.xp6(3),s.Q6J("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[sr,n.RF,n.n9,or,n.ED,n.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;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{display:table-cell;vertical-align:middle}.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 transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.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:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[kp.transformPanelWrap,kp.transformPanel]},changeDetection:0}),t})(),Np=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Ep],imports:[[n.ez,ar,dl,Mu],go,Zh,dl,Mu]}),t})();class Ip{constructor(t){this.total=t}call(t,e){return e.subscribe(new qp(t,this.total))}}class qp extends Lt.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}const Bp=new Set;let Hp,Yp=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):jp}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!Bp.has(t))try{Hp||(Hp=document.createElement("style"),Hp.setAttribute("type","text/css"),document.head.appendChild(Hp)),Hp.sheet&&(Hp.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),Bp.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Ws))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Ws))},token:t,providedIn:"root"}),t})();function jp(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let Fp=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new lt.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return Wp(Vn(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=Wp(Vn(t)).map(t=>this._registerQuery(t).observable);let i=(0,pt.aj)(e);return i=_t(i.pipe((0,vt.q)(1)),i.pipe(t=>t.lift(new Ip(1)),(0,cr.b)(0))),i.pipe((0,At.U)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:i})=>{e.matches=e.matches||t,e.breakpoints[i]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),i={observable:new ft.y(t=>{const i=e=>this._zone.run(()=>t.next(e));return e.addListener(i),()=>{e.removeListener(i)}}).pipe(kt(e),(0,At.U)(({matches:e})=>({query:t,matches:e})),Es(this._destroySubject)),mql:e};return this._queries.set(t,i),i}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Yp),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Yp),s.LFG(s.R0b))},token:t,providedIn:"root"}),t})();function Wp(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const Up={tooltipState:Yr("state",[Kr("initial, void, hidden",Ur({opacity:0,transform:"scale(0)"})),Kr("visible",Ur({transform:"scale(1)"})),Gr("* => visible",jr("200ms cubic-bezier(0, 0, 0.2, 1)",Zr([Ur({opacity:0,transform:"scale(0)",offset:0}),Ur({opacity:.5,transform:"scale(0.99)",offset:.5}),Ur({opacity:1,transform:"scale(1)",offset:1})]))),Gr("* => hidden",jr("100ms cubic-bezier(0, 0, 0.2, 1)",Ur({opacity:0})))])},Kp=Js({passive:!0}),Zp=new s.OlP("mat-tooltip-scroll-strategy"),Gp={provide:Zp,deps:[er],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},Xp=new s.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Vp=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u,l,h){this._overlay=t,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=n,this._ngZone=s,this._platform=o,this._ariaDescriber=r,this._focusMonitor=a,this._dir=u,this._defaultOptions=l,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 lt.xQ,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!So(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=c,this._document=h,l&&(l.position&&(this.position=l.position),l.touchGestures&&(this.touchGestures=l.touchGestures)),u.change.pipe(Es(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){var e;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(e=this._tooltipInstance)||void 0===e||e.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=Zn(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).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(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Es(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,i])=>{t.removeEventListener(e,i,Kp)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new bo(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Es(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return e.positionChanges.pipe(Es(this._destroyed)).subscribe(t=>{this._updateCurrentPositionClass(t.connectionPair),this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:`${this._cssClassPrefix}-tooltip-panel`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Es(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const e=t.getConfig().positionStrategy,i=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([this._addOffset(Object.assign(Object.assign({},i.main),n.main)),this._addOffset(Object.assign(Object.assign({},i.fallback),n.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e||"below"==e?i={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={originX:"end",originY:"center"});const{x:n,y:s}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:n,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e?i={overlayX:"center",overlayY:"bottom"}:"below"==e?i={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={overlayX:"start",overlayY:"center"});const{x:n,y:s}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:n,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,vt.q)(1),Es(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){const{overlayY:e,originX:i,originY:n}=t;let s;if(s="center"===e?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===e&&"top"===n?"above":"below",s!==this._currentPosition){const t=this._overlayRef;if(t){const e=`${this._cssClassPrefix}-tooltip-panel-`;t.removePanelClass(e+this._currentPosition),t.addPanelClass(e+s)}this._currentPosition=s}}_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 t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,Kp)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const e=this._document.elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;e===i||i.contains(e)||this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,i=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),"on"!==t&&e.draggable||(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(er),s.Y36(s.SBq),s.Y36(ho),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(Ws),s.Y36(_r),s.Y36(Pr),s.Y36(void 0),s.Y36(so),s.Y36(void 0),s.Y36(n.K0))},t.\u0275dir=s.lG2({type:t,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),$p=(()=>{class t extends Vp{constructor(t,e,i,n,s,o,r,a,c,u,l,h){super(t,e,i,n,s,o,r,a,c,u,l,h),this._tooltipComponent=Qp}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(er),s.Y36(s.SBq),s.Y36(ho),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(Ws),s.Y36(_r),s.Y36(Pr),s.Y36(Zp),s.Y36(so,8),s.Y36(Xp,8),s.Y36(n.K0))},t.\u0275dir=s.lG2({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[s.qOj]}),t})(),Jp=(()=>{class t{constructor(t){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new lt.xQ}show(t){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._markForCheck()},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t}),t})(),Qp=(()=>{class t extends Jp{constructor(t,e){super(t),this._breakpointObserver=e,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36(Fp))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e._handleBodyInteraction()},!1,s.pYS)("auxclick",function(){return e._handleBodyInteraction()},!1,s.pYS),2&t&&s.Udp("zoom","visible"===e._visibility?1:null)},features:[s.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(s.TgZ(0,"div",0),s.NdJ("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),s.ALo(1,"async"),s._uU(2),s.qZA()),2&t){let t;s.ekj("mat-tooltip-handset",null==(t=s.lcZ(1,5,e._isHandset))?null:t.matches),s.Q6J("ngClass",e.tooltipClass)("@state",e._visibility),s.xp6(2),s.Oqu(e.message)}},directives:[n.mk],pipes:[n.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[Up.tooltipState]},changeDetection:0}),t})(),tf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Gp],imports:[[qr,n.ez,ar,Mu],Mu,go]}),t})();function ef(t,e){if(1&t&&(s.TgZ(0,"mat-option",19),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.hij(" ",t," ")}}function nf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-form-field",16),s.TgZ(1,"mat-select",17),s.NdJ("selectionChange",function(e){return s.CHM(t),s.oxw(2)._changePageSize(e.value)}),s.YNc(2,ef,2,2,"mat-option",18),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(2);s.Q6J("appearance",t._formFieldAppearance)("color",t.color),s.xp6(1),s.Q6J("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),s.xp6(1),s.Q6J("ngForOf",t._displayedPageSizeOptions)}}function sf(t,e){if(1&t&&(s.TgZ(0,"div",20),s._uU(1),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Oqu(t.pageSize)}}function of(t,e){if(1&t&&(s.TgZ(0,"div",12),s.TgZ(1,"div",13),s._uU(2),s.qZA(),s.YNc(3,nf,3,6,"mat-form-field",14),s.YNc(4,sf,2,1,"div",15),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.hij(" ",t._intl.itemsPerPageLabel," "),s.xp6(1),s.Q6J("ngIf",t._displayedPageSizeOptions.length>1),s.xp6(1),s.Q6J("ngIf",t._displayedPageSizeOptions.length<=1)}}function rf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",21),s.NdJ("click",function(){return s.CHM(t),s.oxw().firstPage()}),s.O4$(),s.TgZ(1,"svg",7),s._UZ(2,"path",22),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),s.uIk("aria-label",t._intl.firstPageLabel)}}function af(t,e){if(1&t){const t=s.EpF();s.O4$(),s.kcU(),s.TgZ(0,"button",23),s.NdJ("click",function(){return s.CHM(t),s.oxw().lastPage()}),s.O4$(),s.TgZ(1,"svg",7),s._UZ(2,"path",24),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),s.uIk("aria-label",t._intl.lastPageLabel)}}let cf=(()=>{class t{constructor(){this.changes=new lt.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,i)=>{if(0==i||0==e)return`0 of ${i}`;const n=t*e;return`${n+1} \u2013 ${n<(i=Math.max(i,0))?Math.min(n+e,i):n+e} of ${i}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const uf={provide:cf,deps:[[new s.FiY,new s.tp0,cf]],useFactory:function(t){return t||new cf}},lf=new s.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS");class hf{}const df=vu(Su(hf));let pf=(()=>{class t extends df{constructor(t,e,i){if(super(),this._intl=t,this._changeDetectorRef=e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new s.vpe,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){const{pageSize:t,pageSizeOptions:e,hidePageSize:n,showFirstLastButtons:s}=i;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=n&&(this._hidePageSize=n),null!=s&&(this._showFirstLastButtons=s)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(Gn(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=Gn(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(Gn(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>Gn(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=Zn(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=Zn(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndext-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(cf),s.Y36(s.sBO),s.Y36(void 0))},t.\u0275dir=s.lG2({type:t,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[s.qOj]}),t})(),ff=(()=>{class t extends pf{constructor(t,e,i){super(t,e,i),i&&null!=i.formFieldAppearance&&(this._formFieldAppearance=i.formFieldAppearance)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(cf),s.Y36(s.sBO),s.Y36(lf,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[s.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","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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.YNc(2,of,5,3,"div",2),s.TgZ(3,"div",3),s.TgZ(4,"div",4),s._uU(5),s.qZA(),s.YNc(6,rf,3,5,"button",5),s.TgZ(7,"button",6),s.NdJ("click",function(){return e.previousPage()}),s.O4$(),s.TgZ(8,"svg",7),s._UZ(9,"path",8),s.qZA(),s.qZA(),s.kcU(),s.TgZ(10,"button",9),s.NdJ("click",function(){return e.nextPage()}),s.O4$(),s.TgZ(11,"svg",7),s._UZ(12,"path",10),s.qZA(),s.qZA(),s.YNc(13,af,3,5,"button",11),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.Q6J("ngIf",!e.hidePageSize),s.xp6(3),s.hij(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),s.xp6(1),s.Q6J("ngIf",e.showFirstLastButtons),s.xp6(1),s.Q6J("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),s.uIk("aria-label",e._intl.previousPageLabel),s.xp6(3),s.Q6J("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),s.uIk("aria-label",e._intl.nextPageLabel),s.xp6(3),s.Q6J("ngIf",e.showFirstLastButtons))},directives:[n.O5,uh,$p,Kh,Pp,n.sg,ul],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{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),t})(),gf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[uf],imports:[[n.ez,lh,Np,tf,Mu]]}),t})();var mf=i(509);const _f=["mat-menu-item",""],bf=["*"];function yf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",0),s.NdJ("keydown",function(e){return s.CHM(t),s.oxw()._handleKeydown(e)})("click",function(){return s.CHM(t),s.oxw().closed.emit("click")})("@transformMenu.start",function(e){return s.CHM(t),s.oxw()._onAnimationStart(e)})("@transformMenu.done",function(e){return s.CHM(t),s.oxw()._onAnimationDone(e)}),s.TgZ(1,"div",1),s.Hsn(2),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),s.uIk("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const wf={transformMenu:Yr("transformMenu",[Kr("void",Ur({opacity:0,transform:"scale(0.8)"})),Gr("void => enter",jr("120ms cubic-bezier(0, 0, 0.2, 1)",Ur({opacity:1,transform:"scale(1)"}))),Gr("* => void",jr("100ms 25ms linear",Ur({opacity:0})))]),fadeInItems:Yr("fadeInItems",[Kr("showing",Ur({opacity:1})),Gr("void => *",[Ur({opacity:0}),jr("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Af=new s.OlP("MatMenuContent"),Mf=new s.OlP("MAT_MENU_PANEL");class vf{}const Tf=ku(vu(vf));let kf=(()=>{class t extends Tf{constructor(t,e,i,n){super(),this._elementRef=t,this._focusMonitor=i,this._parentMenu=n,this.role="menuitem",this._hovered=new lt.xQ,this._focused=new lt.xQ,this._highlighted=!1,this._triggersSubmenu=!1,n&&n.addItem&&n.addItem(this)}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),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(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t,e;const i=this._elementRef.nativeElement.cloneNode(!0),n=i.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class t{constructor(t,e,i){this._elementRef=t,this._ngZone=e,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new s.n_E,this._tabSubscription=Ft.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new lt.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new s.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Cf++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=Zn(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=Zn(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Mr(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(kt(this._directDescendantItems),(0,Mt.w)(t=>(0,ko.T)(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(kt(this._directDescendantItems),(0,Mt.w)(t=>(0,ko.T)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,i=this._keyManager;switch(e){case 27:So(t)||(t.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:38!==e&&40!==e||i.setFocusOrigin("keyboard"),i.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe((0,vt.q)(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e=`mat-elevation-z${Math.min(4+t,24)}`,i=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const i=this._classList;i["mat-menu-before"]="before"===t,i["mat-menu-after"]="after"===t,i["mat-menu-above"]="above"===e,i["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(kt(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(Lf))},t.\u0275dir=s.lG2({type:t,contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,Af,5),s.Suo(i,kf,5),s.Suo(i,kf,4)),2&t){let t;s.iGM(t=s.CRH())&&(e.lazyContent=t.first),s.iGM(t=s.CRH())&&(e._allItems=t),s.iGM(t=s.CRH())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&s.Gf(s.Rgc,5),2&t){let t;s.iGM(t=s.CRH())&&(e.templateRef=t.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),Ef=(()=>{class t extends Sf{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(Lf))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&s.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[s._Bn([{provide:Mf,useExisting:t}]),s.qOj],ngContentSelectors:bf,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(s.F$t(),s.YNc(0,yf,3,6,"ng-template"))},directives:[n.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}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}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}\n'],encapsulation:2,data:{animation:[wf.transformMenu,wf.fadeInItems]},changeDetection:0}),t})();const zf=new s.OlP("mat-menu-scroll-strategy"),xf={provide:zf,deps:[er],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},Of=Js({passive:!0});let Rf=(()=>{class t{constructor(t,e,i,n,o,r,a,c){this._overlay=t,this._element=e,this._viewContainerRef=i,this._menuItemInstance=r,this._dir=a,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Ft.w.EMPTY,this._hoverSubscription=Ft.w.EMPTY,this._menuCloseSubscription=Ft.w.EMPTY,this._handleTouchStart=t=>{Or(t)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new s.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new s.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=n,this._parentMaterialMenu=o instanceof Sf?o:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,Of),r&&(r._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(t),"click"!==t&&"tab"!==t||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Of),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(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof Sf&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}updatePosition(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==t&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,e instanceof Sf?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe((0,at.h)(t=>"void"===t.toState),(0,vt.q)(1),Es(e.lazyContent._attached)).subscribe({next:()=>e.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new Io({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,i]="before"===this.menu.xPosition?["end","start"]:["start","end"],[n,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[o,r]=[n,s],[a,c]=[e,i],u=0;this.triggersSubmenu()?(c=e="before"===this.menu.xPosition?"start":"end",i=a="end"===e?"start":"end",u="bottom"===n?8:-8):this.menu.overlapTrigger||(o="top"===n?"bottom":"top",r="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:o,overlayX:a,overlayY:n,offsetY:u},{originX:i,originY:o,overlayX:c,overlayY:n,offsetY:u},{originX:e,originY:r,overlayX:a,overlayY:s,offsetY:-u},{originX:i,originY:r,overlayX:c,overlayY:s,offsetY:-u}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,ut.of)(),n=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,at.h)(t=>t!==this._menuItemInstance),(0,at.h)(()=>this._menuOpen)):(0,ut.of)();return(0,ko.T)(t,i,n,e)}_handleMousedown(t){xr(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;13!==e&&32!==e||(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===e&&"ltr"===this.dir||37===e&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,at.h)(t=>t===this._menuItemInstance&&!t.disabled),(0,mf.g)(0,gs)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Sf&&this.menu._isAnimating?this.menu._animationDone.pipe((0,vt.q)(1),(0,mf.g)(0,gs),Es(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new yo(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(er),s.Y36(s.SBq),s.Y36(s.s_b),s.Y36(zf),s.Y36(Mf,8),s.Y36(kf,10),s.Y36(so,8),s.Y36(Pr))},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&s.uIk("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),Df=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[xf],imports:[Mu]}),t})(),Pf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[xf],imports:[[n.ez,Mu,$u,ar,Df],go,Mu,Df]}),t})();var Nf=i(1225),If=i(1055);const qf=["*"];function Bf(t){return Error(`Unable to find icon with the name "${t}"`)}function Hf(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function Yf(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class jf{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let Ff=(()=>{class t{constructor(t,e,i,n){this._httpClient=t,this._sanitizer=e,this._errorHandler=n,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i}addSvgIcon(t,e,i){return this.addSvgIconInNamespace("",t,e,i)}addSvgIconLiteral(t,e,i){return this.addSvgIconLiteralInNamespace("",t,e,i)}addSvgIconInNamespace(t,e,i,n){return this._addSvgIconConfig(t,e,new jf(i,null,n))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,i,n){const o=this._sanitizer.sanitize(s.q3G.HTML,i);if(!o)throw Yf(i);return this._addSvgIconConfig(t,e,new jf("",o,n))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,i){return this._addSvgIconSetConfig(t,new jf(e,null,i))}addSvgIconSetLiteralInNamespace(t,e,i){const n=this._sanitizer.sanitize(s.q3G.HTML,e);if(!n)throw Yf(e);return this._addSvgIconSetConfig(t,new jf("",n,i))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(s.q3G.RESOURCE_URL,t);if(!e)throw Hf(t);const i=this._cachedIconsByUrl.get(e);return i?(0,ut.of)(Wf(i)):this._loadSvgIconFromConfig(new jf(t,null)).pipe((0,Yt.b)(t=>this._cachedIconsByUrl.set(e,t)),(0,At.U)(t=>Wf(t)))}getNamedSvgIcon(t,e=""){const i=Uf(e,t);let n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);if(n=this._getIconConfigFromResolvers(e,t),n)return this._svgIconConfigs.set(i,n),this._getSvgFromConfig(n);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):(0,Nf._)(Bf(i))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?(0,ut.of)(Wf(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe((0,At.U)(t=>Wf(t)))}_getSvgFromIconSetConfigs(t,e){const i=this._extractIconWithNameFromAnySet(t,e);return i?(0,ut.of)(i):Pl(e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe((0,zt.K)(e=>{const i=this._sanitizer.sanitize(s.q3G.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${i} failed: ${e.message}`)),(0,ut.of)(null)})))).pipe((0,At.U)(()=>{const i=this._extractIconWithNameFromAnySet(t,e);if(!i)throw Bf(t);return i}))}_extractIconWithNameFromAnySet(t,e){for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.svgText&&n.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(n),i=this._extractSvgIconFromSet(e,t,n.options);if(i)return i}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe((0,Yt.b)(e=>t.svgText=e),(0,At.U)(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?(0,ut.of)(null):this._fetchIcon(t).pipe((0,Yt.b)(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,i){const n=t.querySelector(`[id="${e}"]`);if(!n)return null;const s=n.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,i);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),i);const o=this._svgElementFromString("");return o.appendChild(s),this._setSvgAttributes(o,i)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const i=e.querySelector("svg");if(!i)throw Error(" tag not found");return i}_toSvgElement(t){const e=this._svgElementFromString(""),i=t.attributes;for(let n=0;nthis._inProgressUrlFetches.delete(r)),(0,If.B)());return this._inProgressUrlFetches.set(r,c),c}_addSvgIconConfig(t,e,i){return this._svgIconConfigs.set(Uf(t,e),i),this}_addSvgIconSetConfig(t,e){const i=this._iconSetConfigs.get(t);return i?i.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let n=0;ne?e.pathname+e.search:""}}}),Xf=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Vf=Xf.map(t=>`[${t}]`).join(", "),$f=/^url\(['"]?#(.*?)['"]?\)$/;let Jf=(()=>{class t extends Zf{constructor(t,e,i,n,s){super(t),this._iconRegistry=e,this._location=n,this._errorHandler=s,this._inline=!1,this._currentIconFetch=Ft.w.EMPTY,i||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=Zn(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.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(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let n=0;n{e.forEach(e=>{i.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(Vf),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let n=0;n{const s=e[n],o=s.getAttribute(t),r=o?o.match($f):null;if(r){let e=i.get(s);e||(e=[],i.set(s,e)),e.push({name:t,value:r[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,i]=this._splitIconName(t);e&&(this._svgNamespace=e),i&&(this._svgName=i),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(i,e).pipe((0,vt.q)(1)).subscribe(t=>this._setSvgElement(t),t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${i}! ${t.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Ff),s.$8M("aria-hidden"),s.Y36(Gf),s.Y36(s.qLn))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(s.uIk("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),s.ekj("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[s.qOj],ngContentSelectors:qf,decls:1,vars:0,template:function(t,e){1&t&&(s.F$t(),s.Hsn(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),Qf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Mu],Mu]}),t})(),tg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[],imports:[[gf,Pf,Qf,lh,ih,n.ez]]}),t})();var eg=i(2051);const ig=[5,10,25,100];function ng(){const t=new fl;return t.disableClose=!0,t.autoFocus=!1,t}function sg(t){return"virt"===t.namespace.split(":")[4]}const og=new Intl.Collator("cs",{numeric:!0});function rg(t,e,i,n){const s=e.active,o=e.direction;return s&&""!==o?t.sort((t,e)=>{const r=i(t,s,n),a=i(e,s,n);return og.compare(r,a)*("asc"===o?1:-1)}):t}function ag(t,e,i,n,s,o){e=e.toLowerCase();let r="";return i.forEach(e=>{r+=";"+n(t,e,s)}),o&&(r+=";"+n(t,"uuid",s)),-1!==r.toLowerCase().indexOf(e)}function cg(t,e,i,n){const s=[],o=["checkbox","select","edit","menu","cite","extend","recent"];return e=e.filter(t=>!o.includes(t)),t.forEach(t=>{const o={};e.forEach(e=>{var s;o[e]=(null!==(s=i(t,e,n))&&void 0!==s?s:"").split('"').join("''").trim()}),s.push(o)}),s}function ug(t,e="csv",i="export"){switch(e){case"csv":{const n=(t,e)=>null===e?"":e,s=Object.keys(t[0]),o=t.map(t=>s.map(e=>JSON.stringify(t[e],n)).join(","));o.unshift(s.join(",").split(" ").join("_").split('"').join("''"));const r=o.join("\r\n"),a=new Blob([r],{type:"text/csv"});(0,eg.saveAs)(a,`${i}.${e}`)}}}let lg=(()=>{class t{constructor(){}getString(t){return localStorage.getItem(t)}getNumber(t){return parseInt(localStorage.getItem(t),10)}setNumber(t,e){localStorage.setItem(t,e.toString())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),hg=(()=>{class t{constructor(t){this.guiConfigService=t}getTablePageSize(t){const e=this.guiConfigService.getNumber("GUI_CONFIG.PREF_PAGE_SIZE."+t);if(!isNaN(e))return e;const i=this.guiConfigService.getNumber("GUI_CONFIG.PREF_PAGE_SIZE");return isNaN(i)?10:i}setTablePageSize(t,e){this.guiConfigService.setNumber("GUI_CONFIG.PREF_PAGE_SIZE."+t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(lg))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),dg=(()=>{class t{constructor(){this.exportData=new s.vpe}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,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(t,e){if(1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"button",1),s.TgZ(2,"mat-icon"),s._uU(3,"more_vert"),s.qZA(),s.qZA(),s.TgZ(4,"mat-menu",null,2),s.TgZ(6,"button",3),s._uU(7),s.ALo(8,"translate"),s.qZA(),s.qZA(),s.TgZ(9,"mat-menu",null,4),s.TgZ(11,"button",5),s.NdJ("click",function(){return e.exportData.emit("csv")}),s._uU(12,"Csv"),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.MAs(5),e=s.MAs(10);s.xp6(1),s.Q6J("matMenuTriggerFor",t),s.xp6(5),s.Q6J("matMenuTriggerFor",e),s.xp6(1),s.hij(" ",s.lcZ(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[uh,Rf,Jf,Ef,kf],pipes:[eh],styles:[""]}),t})();function pg(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-table-options",6),s.NdJ("exportData",function(e){return s.CHM(t),s.oxw().exportData.emit(e)}),s.qZA()}}function fg(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-table-options",6),s.NdJ("exportData",function(e){return s.CHM(t),s.oxw().exportData.emit(e)}),s.qZA()}}const gg=["*"];let mg=(()=>{class t{constructor(t){this.tableConfigService=t,this.hideExport=!1,this.pageSizeOptions=ig,this.dataLength=0,this.exportData=new s.vpe,this.pageSize=5}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5)}set matPaginator(t){this.paginator=t}pageChangedTop(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}pageChangedBottom(t){this.paginator.pageSize=t.pageSize,this.paginator.pageIndex=t.pageIndex,this.paginator.page.emit(t),this.pageSize=t.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(hg))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(t,e){if(1&t&&s.Gf(ff,7),2&t){let t;s.iGM(t=s.CRH())&&(e.matPaginator=t.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId"},outputs:{exportData:"exportData"},ngContentSelectors:gg,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(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"mat-paginator",2),s.NdJ("page",function(t){return e.pageChangedTop(t)}),s.qZA(),s.YNc(3,pg,1,0,"perun-web-apps-table-options",3),s.qZA(),s.TgZ(4,"div",4),s.Hsn(5),s.qZA(),s.TgZ(6,"div",1),s.TgZ(7,"mat-paginator",5),s.NdJ("page",function(t){return e.pageChangedBottom(t)}),s.qZA(),s.YNc(8,fg,1,0,"perun-web-apps-table-options",3),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.Q6J("length",e.dataLength)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),s.xp6(1),s.Q6J("ngIf",!e.hideExport),s.xp6(4),s.Q6J("length",e.paginator.length)("pageIndex",e.paginator.pageIndex)("pageSizeOptions",e.paginator.pageSizeOptions)("pageSize",e.paginator.pageSize),s.xp6(1),s.Q6J("ngIf",!e.hideExport))},directives:[ff,n.O5,dg],styles:[""]}),t})();class _g{static passwordMatchValidator(t){const e=t.get("passwordCtrl").value,i=t.get("passwordAgainCtrl").value;return t.get("passwordAgainCtrl").setErrors(e!==i?{noPasswordMatch:!0}:null),null}static patternValidator(t){return e=>{if(!e.value)return null;let i=0;for(const n of t)i+=n.test(e.value)?1:0;return i>=3?null:{isWeak:!0}}}}let bg=(()=>{class t{constructor(t,e,i,n,s,o){this.authService=t,this.storeService=e,this.authResolver=i,this.authzService=n,this.dialog=s,this.router=o,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(t){this.loginScreenShown=t}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)):(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(t=>t(!0)):this.authService.verifyAuth())}startAuth(){return this.authService.startAuthentication(),new Promise(()=>{})}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(t=>{if(null===t.user){const t=ng();this.dialog.open(nh,t)}else this.storeService.setPerunPrincipal(t),this.authResolver.init(t)})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(t=>{t()});if(this.storeService.get("auto_auth_redirect"))return this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0);const t=location.search.substr(1).split("&"),e={};for(const i of t){const t=i.split("=");e[t[0]]=t[1]}return this.router.navigate(["login"],{queryParams:e,queryParamsHandling:"merge"}).then(()=>null)}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Rl),s.LFG(Kn),s.LFG(rt),s.LFG(K),s.LFG(Ll),s.LFG(Mn))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),yg=(()=>{class t{constructor(t,e){this.matIconRegistry=t,this.domSanitizer=e,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/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/settings1-blue.svg",name:"settings-blue"},{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"}]}registerPerunRefreshIcon(){this.customIcons.forEach(t=>{this.matIconRegistry.addSvgIcon(t.name,this.domSanitizer.bypassSecurityTrustResourceUrl(t.url))})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Ff),s.LFG(R))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),wg=(()=>{class t{constructor(t){this.dialogRef=t}close(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yl))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"div",2),s.TgZ(7,"div",3),s.TgZ(8,"button",4),s.NdJ("click",function(){return e.close()}),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),s.xp6(3),s.hij(" ",s.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),s.xp6(5),s.hij(" ",s.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},directives:[Sl,El,zl,uh],pipes:[eh],styles:[""]}),t})(),Ag=(()=>{class t{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const t=this.handleNextError;return this.handleNextError=!0,t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Mg=(()=>{class t{constructor(t){this.translate=t,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3,this.addNotification=new s.vpe}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(t,e=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===t.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===t.name?e:e+"\n"+t.name,t,t.message)}showError(t,e,i,n,s){this.addNotification.emit({type:"error",error:e,description:i,title:t,actionText:void 0===n&&void 0!==i?this.getDefaultActionMessage():n,delay:this.defaultErrorDelayMs,icon:"error_outline",action:s,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(t,e,i,n){this.addNotification.emit({type:"success",description:e,title:t,actionText:void 0===i&&void 0!==e?this.getDefaultActionMessage():i,delay:this.defaultSuccessDelayMs,icon:"done",action:n,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(th))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),vg=(()=>{class t{constructor(t,e,i,n,s,o){this.authService=t,this.apiRequestConfiguration=e,this.notificator=i,this.store=n,this.dialog=s,this.initAuthService=o}intercept(t,e){const i=this.store.get("api_url");if(-1!==t.url.indexOf("i18n")&&(t=t.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==i&&-1!==t.url.toString().indexOf(i)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()){const t=ng();t.width="450px",this.dialog.open(wg,t).afterClosed().subscribe(()=>{sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substr(1)),this.authService.startAuthentication()})}t=this.initAuthService.isServiceAccess()?t.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):t.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}});const n=this.apiRequestConfiguration.shouldHandleError(),s="POST"===t.method&&!this.store.skipOidc()&&this.isCallToPerunApi(t.url);return e.handle(t).pipe((0,Yt.b)(t=>{t instanceof Y.Zn&&s&&this.initAuthService.loadPrincipal()},e=>{const i=this.formatErrors(e,t);return void 0===i?(0,Nf._)(e):n?void this.notificator.showRPCError(i):(0,Nf._)(i)}))}isCallToPerunApi(t){return t.startsWith(this.store.get("api_url"))}formatErrors(t,e){let i;if(console.error(t),t.error.errorId?i=t.error:t.errorId&&(i=JSON.parse(t.error)),void 0!==i)return i.urlWithParams=e.urlWithParams,i.call=e.url,i.payload=e.body,i}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Rl),s.LFG(Ag),s.LFG(Mg),s.LFG(Kn),s.LFG(Ll),s.LFG(bg))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Tg=(()=>{class t{constructor(){this.notificationData=[],this.newNotificationsCount=0}storeNotification(t){this.newNotificationsCount++,this.notificationData.push(t)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),kg=(()=>{class t{constructor(t,e,i,n){this.http=t,this.notificator=e,this.authService=i,this.storeService=n}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}formatErrors(t,e,i,n){const s=t.error;return s.call=e,s.payload=i,n&&this.notificator.showRPCError(t.error),(0,Nf._)(s)}getHeaders(){let t=new Y.WM;return t=t.set("Authorization",this.authService.getAuthorizationHeaderValue()),t}get(t,e=!0){const i=`${this.getApiUrl()}${t}`;return this.http.get(i,{headers:this.getHeaders()}).pipe((0,zt.K)(t=>this.formatErrors(t,i,null,e)))}put(t,e={},i=!0){const n=`${this.getApiUrl()}${t}`,s=JSON.stringify(e);return this.http.put(n,s,{headers:this.getHeaders()}).pipe((0,zt.K)(t=>this.formatErrors(t,n,s,i)))}post(t,e={},i=!0){const n=`${this.getApiUrl()}${t}`,s=JSON.stringify(e);let o=this.getHeaders();return o=o.set("Content-Type","application/json; charset=utf-8"),this.http.post(n,s,{headers:o}).pipe((0,zt.K)(t=>this.formatErrors(t,n,s,i)))}delete(t,e=!0){const i=`${this.getApiUrl()}${t}`;return this.http.delete(i,{headers:this.getHeaders()}).pipe((0,zt.K)(t=>this.formatErrors(t,i,null,e)))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Y.eN),s.LFG(Mg),s.LFG(Rl),s.LFG(Kn))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Lg=(()=>{class t{constructor(){}isAllSelectedWithDisabledCheckbox(t,e,i,n,s,o,r,a){return this.numSelected=t,this.numCanBeSelected=0,this.pageStart=s*i,this.pageEnd=this.pageStart+i,this.pageIterator=0,this.dataLength=""===e?o.data.length:o.filteredData.length,n||(this.modulo=this.dataLength%i,this.pageEnd=0===this.modulo?this.pageStart+i:this.pageStart+this.modulo),o.sortData(o.filteredData,r).forEach(t=>{this.pageStart<=this.pageIterator&&this.pageIterator{a?c(t)&&this.pageStart<=this.pageIterator&&this.pageIterator{class t{constructor(t,e){this.route=t,this.store=e}getPreferredLanguage(t){const e=this.store.get("supported_languages"),i=navigator.languages.map(t=>t.split("-")[0]),n=location.search.substr(1).split("&");let s=null;for(const o of n){const t=o.split("=");"lang"===t[0]&&(s=t[1])}return s&&e.includes(s)?s:t&&e.includes(t)?t:i&&e.includes(i[0])?i[0]:"en"}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Qe),s.LFG(Kn))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Sg=(()=>{class t{constructor(t){this.storeService=t}static getBrandContainingDomain(t,e){for(const i of t)if(i.newApps.admin===e||i.newApps.profile===e||i.newApps.pwdReset===e)return i;return t[0]}getUrlForOtherApplication(e,i){const n=window.location.href.split("/"),s=n[0]+"//"+n[2],o=t.getBrandContainingDomain(this.storeService.getAppsConfig().brands,s);let r;if(o.newApps[e])r=o.newApps[e],"pwdReset"===e&&(r+=`?login-namespace=${i}`);else switch(r=o.oldGuiDomain+"/fed",e){case"admin":r+="/gui/";break;case"profile":r+="/profile/";break;case"pwdReset":r+="/pwd-reset/"}return r}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Kn))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();Yr("openClose",[Kr("open",Ur({overflow:"hidden"})),Kr("closed",Ur({height:"0px",overflow:"hidden"})),Gr("open <=> closed",[jr(".3s ease-in")])]);const Eg=Yr("flyInOut",[Gr(":enter",[Ur({transform:"translateX(100%)"}),jr(".25s")]),Gr(":leave",[jr(".5s",Ur({transform:"translateX(100%)"}))])]);Yr("rollInOut",[Gr(":enter",[Ur({height:"0px"}),jr(".25s")]),Gr(":leave",[jr(".25s",Ur({height:"0px"}))])]),Yr("routeAnimations",[Gr("* => *",[Ur({position:"relative"}),Vr(":enter",[Ur({width:"100%",opacity:0})],{optional:!0}),Vr(":leave",[Ur({position:"absolute",width:"100%",opacity:1}),jr("0.15s",Ur({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),Vr(":enter",[Ur({position:"absolute",width:"100%",opacity:0}),jr("0.15s",Ur({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),Yr("tagsOpenClose",[Kr("open",Ur({})),Kr("closed",Ur({width:"0px",height:"0px"})),Gr("open <=> closed",[jr(".3s ease-in")])]),Yr("switchAnimations",[Gr("true => false",[Vr(":enter, :leave",Ur({})),Fr([Vr(":enter",[Ur({transform:"translateX(-100%)"}),jr("1s ease-in-out",Ur({transform:"translateX(0%)"}))],{optional:!0}),Vr(":leave",[Ur({transform:"translateX(0%)",position:"absolute"}),jr("1s ease-in-out",Ur({transform:"translateX(100%)"}))],{optional:!0})])]),Gr("false => true",[Vr(":enter, :leave",Ur({})),Fr([Vr(":enter",[Ur({transform:"translateX(100%)"}),jr("1s ease-in-out",Ur({transform:"translateX(0%)"}))],{optional:!0}),Vr(":leave",[Ur({transform:"translateX(0%)",position:"absolute"}),jr("1s ease-in-out",Ur({transform:"translateX(-100%)"}))],{optional:!0})])])]),Yr("slideInOutLeft",[Gr(":enter",[Ur({transform:"translateX(-100%)",position:"relative"}),jr("0.5s ease-in",Ur({transform:"translateX(0%)"}))]),Gr(":leave",[jr("0.5s ease-in",Ur({transform:"translateX(-100%)"}))])]),Yr("slideInOutRight",[Gr(":enter",[Ur({transform:"translateX(100%)",position:"fixed"}),jr("0.5s ease-in",Ur({transform:"translateX(0%)"}))]),Gr(":leave",[Ur({transform:"translateX(-100%)",position:"relative"}),jr("0.5s ease-in",Ur({transform:"translateX(100%)"}))])]);let zg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez]]}),t})(),xg=(()=>{class t{transform(t){let e="";return null!==t.titleBefore&&(e+=t.titleBefore+" "),null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),null!==t.titleAfter&&(e+=t.titleAfter+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"userFullName",type:t,pure:!0}),t})(),Og=(()=>{class t{constructor(t,e){this.translate=t,this.storage=e}transform(t,e="en"){const i=this.storage.get("custom_labels");if(i){const n=Object.keys(i);for(const i of n){const n=this.storage.get("custom_labels",i);if(n.label===t)return n[e]}}return t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(th,16),s.Y36(Kn,16))},t.\u0275pipe=s.Yjl({name:"customTranslate",type:t,pure:!0}),t})();class Rg{isErrorState(t){return!!(t&&t.invalid&&t.dirty)}}const Dg=(t,e,i,n=500)=>s=>Ls(n).pipe((0,Mt.w)(()=>(i.dontHandleErrorForNext(),t&&"No namespace"!==t?e.checkPasswordStrength(s.value,t):(0,ut.of)(null))),(0,At.U)(()=>null),(0,zt.K)(t=>(0,ut.of)({backendError:t.error.message.substr(t.error.message.indexOf(":")+1)}))),Pg=Js({passive:!0});let Ng=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return bt.E;const e=Jn(t),i=this._monitoredElements.get(e);if(i)return i.subject;const n=new lt.xQ,s="cdk-text-field-autofilled",o=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",o,Pg),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:n,unlisten:()=>{e.removeEventListener("animationstart",o,Pg)}}),n}stopMonitoring(t){const e=Jn(t),i=this._monitoredElements.get(e);i&&(i.unlisten(),i.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Ws),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Ws),s.LFG(s.R0b))},token:t,providedIn:"root"}),t})(),Ig=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._platform=e,this._ngZone=i,this._destroyed=new lt.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._document=n,this._textareaElement=this._elementRef.nativeElement,this._measuringClass=e.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring"}get minRows(){return this._minRows}set minRows(t){this._minRows=Gn(t),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(t){this._maxRows=Gn(t),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(t){t=Zn(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(t){this._cachedPlaceholderHeight=void 0,this._textareaElement.placeholder=t,this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const t=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.minHeight=t)}_setMaxHeight(){const t=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.maxHeight=t)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{es(this._getWindow(),"resize").pipe(Ss(16),Es(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0))}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let t=this._textareaElement.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,this._textareaElement.parentNode.removeChild(t),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){this._textareaElement.classList.add(this._measuringClass);const t=this._textareaElement.scrollHeight-4;return this._textareaElement.classList.remove(this._measuringClass),t}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const t=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=t}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(t=!1){if(!this._enabled)return;if(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight)return;const e=this._elementRef.nativeElement,i=e.value;if(!t&&this._minRows===this._previousMinRows&&i===this._previousValue)return;const n=this._measureScrollHeight(),s=Math.max(n,this._cachedPlaceholderHeight||0);e.style.height=`${s}px`,this._ngZone.runOutsideAngular(()=>{"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(()=>this._scrollToCaretPosition(e)):setTimeout(()=>this._scrollToCaretPosition(e))}),this._previousValue=i,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(t){const{selectionStart:e,selectionEnd:i}=t,n=this._getDocument();this._destroyed.isStopped||n.activeElement!==t||t.setSelectionRange(e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Ws),s.Y36(s.R0b),s.Y36(n.K0,8))},t.\u0275dir=s.lG2({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&s.NdJ("input",function(){return e._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),t})(),qg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Us]]}),t})();const Bg=new s.OlP("MAT_INPUT_VALUE_ACCESSOR"),Hg=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Yg=0;class jg{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const Fg=Cu(jg);let Wg=(()=>{class t extends Fg{constructor(t,e,i,n,s,o,r,a,c,u){super(o,n,s,i),this._elementRef=t,this._platform=e,this.ngControl=i,this._autofillMonitor=a,this._formField=u,this._uid="mat-input-"+Yg++,this.focused=!1,this.stateChanges=new lt.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>Zs().has(t));const l=this._elementRef.nativeElement,h=l.nodeName.toLowerCase();this._inputValueAccessor=r||l,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&c.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{const e=t.target;e.value||0!==e.selectionStart||0!==e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===h,this._isTextarea="textarea"===h,this._isNativeSelect&&(this.controlType=l.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=Zn(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=Zn(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&Zs().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=Zn(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const i=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(i!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=i,i?t.setAttribute("placeholder",i):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){Hg.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Ws),s.Y36(Md,10),s.Y36(Xd,8),s.Y36(ap,8),s.Y36(Bu),s.Y36(Bg,10),s.Y36(Ng),s.Y36(s.R0b),s.Y36(Uh,8))},t.\u0275dir=s.lG2({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&s.NdJ("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(s.Ikx("disabled",e.disabled)("required",e.required),s.uIk("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),s.ekj("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[s._Bn([{provide:Oh,useExisting:t}]),s.qOj,s.TTD]}),t})(),Ug=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Bu],imports:[[qg,Zh,Mu],qg,Zh]}),t})();function Kg(t,e){1&t&&(s.TgZ(0,"mat-icon",2),s._uU(1," info "),s.qZA())}function Zg(t,e){1&t&&(s.TgZ(0,"mat-icon",2),s._uU(1," warning "),s.qZA())}function Gg(t,e){1&t&&(s.TgZ(0,"mat-icon",2),s._uU(1," dangerous "),s.qZA())}function Xg(t,e){1&t&&(s.TgZ(0,"mat-icon",2),s._uU(1," check_circle "),s.qZA())}const Vg=["*"];let $g=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:Vg,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(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.YNc(1,Kg,2,0,"mat-icon",1),s.YNc(2,Zg,2,0,"mat-icon",1),s.YNc(3,Gg,2,0,"mat-icon",1),s.YNc(4,Xg,2,0,"mat-icon",1),s.Hsn(5),s.qZA()),2&t&&(s.ekj("warn-alert","warn"===e.alert_type)("error-alert","error"===e.alert_type)("success-alert","success"===e.alert_type)("info-alert","info"===e.alert_type),s.xp6(1),s.Q6J("ngIf","info"===e.alert_type),s.xp6(1),s.Q6J("ngIf","warn"===e.alert_type),s.xp6(1),s.Q6J("ngIf","error"===e.alert_type),s.xp6(1),s.Q6J("ngIf","success"===e.alert_type))},directives:[n.O5,Jf],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:grey;text-align:left;border:1px solid #b3b3b3;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px solid #ececec;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 solid #fedcda;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px solid #d7ffd7;border-radius:10px;background-color:#d7ffd7}"]}),t})();function Jg(t,e){if(1&t&&(s.O4$(),s._UZ(0,"circle",3)),2&t){const t=s.oxw();s.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),s.uIk("r",t._getCircleRadius())}}function Qg(t,e){if(1&t&&(s.O4$(),s._UZ(0,"circle",3)),2&t){const t=s.oxw();s.Udp("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),s.uIk("r",t._getCircleRadius())}}function tm(t,e){if(1&t&&(s.O4$(),s._UZ(0,"circle",3)),2&t){const t=s.oxw();s.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),s.uIk("r",t._getCircleRadius())}}function em(t,e){if(1&t&&(s.O4$(),s._UZ(0,"circle",3)),2&t){const t=s.oxw();s.Udp("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),s.uIk("r",t._getCircleRadius())}}const im=".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:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[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-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation: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)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n";class nm{constructor(t){this._elementRef=t}}const sm=Tu(nm,"primary"),om=new s.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let rm=(()=>{class t extends sm{constructor(e,i,n,s,o){super(e),this._elementRef=e,this._document=n,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const r=t._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),r.has(n.head)||r.set(n.head,new Set([100])),this._fallbackAnimation=i.EDGE||i.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!o&&!o._forceAnimations,o&&(o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=Gn(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=Gn(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,Gn(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=eo(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,i=this._diameter,n=t._diameters;let s=n.get(e);if(!s||!s.has(i)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),t.textContent=this._getAnimationText(),e.appendChild(t),s||(s=new Set,n.set(e,s)),s.add(i)}}_getAnimationText(){const t=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*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Ws),s.Y36(n.K0,8),s.Y36(lu,8),s.Y36(om))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(s.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),s.Udp("width",e.diameter,"px")("height",e.diameter,"px"),s.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[s.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(s.O4$(),s.TgZ(0,"svg",0),s.YNc(1,Jg,1,9,"circle",1),s.YNc(2,Qg,1,7,"circle",2),s.qZA()),2&t&&(s.Udp("width",e.diameter,"px")("height",e.diameter,"px"),s.Q6J("ngSwitch","indeterminate"===e.mode),s.uIk("viewBox",e._getViewBox()),s.xp6(1),s.Q6J("ngSwitchCase",!0),s.xp6(1),s.Q6J("ngSwitchCase",!1))},directives:[n.RF,n.n9],styles:[im],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),am=(()=>{class t extends rm{constructor(t,e,i,n,s){super(t,e,i,n,s),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Ws),s.Y36(n.K0,8),s.Y36(lu,8),s.Y36(om))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(s.Udp("width",e.diameter,"px")("height",e.diameter,"px"),s.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[s.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(s.O4$(),s.TgZ(0,"svg",0),s.YNc(1,tm,1,9,"circle",1),s.YNc(2,em,1,7,"circle",2),s.qZA()),2&t&&(s.Udp("width",e.diameter,"px")("height",e.diameter,"px"),s.Q6J("ngSwitch","indeterminate"===e.mode),s.uIk("viewBox",e._getViewBox()),s.xp6(1),s.Q6J("ngSwitchCase",!0),s.xp6(1),s.Q6J("ngSwitchCase",!1))},directives:[n.RF,n.n9],styles:[im],encapsulation:2,changeDetection:0}),t})(),cm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Mu,n.ez],Mu]}),t})();function um(t,e){1&t&&s._UZ(0,"mat-spinner",12),2&t&&s.Q6J("diameter",18)}function lm(t,e){if(1&t&&(s.TgZ(0,"mat-icon",13),s._uU(1," error "),s.qZA()),2&t){const t=s.oxw();s.Q6J("matTooltip",t.getErrorTooltip())("matTooltipDisabled",!t.formGroup.get("passwordCtrl").hasError("backendError"))}}function hm(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function dm(t,e){if(1&t&&(s.TgZ(0,"mat-error",14),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.Q6J("matTooltip",t.getErrorTooltip()),s.xp6(1),s.Oqu(t.getErrorTooltip())}}function pm(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function fm(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let gm=(()=>{class t{constructor(t,e,i){this.translator=t,this.usersManagerService=e,this.store=i,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.multiLanguage=!1,this.language="en",this.allPasswordRequirements=this.store.get("password_requirements_help"),this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new Rg}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(t=>{const e=t.userAttributes.find(t=>"preferredLanguage"===t.friendlyName);this.language=e&&e.value?e.value.toString():"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 t=this.formGroup.get("passwordCtrl").getError("backendError");return t&&(t=t.replace(":null","")),t}changeHelp(){this.passwordRequirement=this.allPasswordRequirements.find(t=>t.split(":")[0]===this.namespace),this.passwordRequirement=void 0===this.passwordRequirement?this.allPasswordRequirements.find(t=>"default"===t.split(":")[0]).split(/:(.+)/)[1]:this.passwordRequirement.split(/:(.+)/)[1]}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(th),s.Y36(J),s.Y36(Kn))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",namespace:"namespace",multiLanguage:"multiLanguage",language:"language"},features:[s.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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"mat-form-field",1),s._UZ(2,"input",2),s.ALo(3,"translate"),s.YNc(4,um,1,1,"mat-spinner",3),s.TgZ(5,"mat-icon",4),s.NdJ("click",function(){return e.showNewPassword=!e.showNewPassword}),s._uU(6),s.qZA(),s.YNc(7,lm,2,2,"mat-icon",5),s.YNc(8,hm,3,3,"mat-error",6),s.YNc(9,dm,2,2,"mat-error",7),s.qZA(),s.TgZ(10,"mat-form-field",8),s.TgZ(11,"mat-label"),s._uU(12),s.ALo(13,"translate"),s.qZA(),s._UZ(14,"input",9),s.TgZ(15,"mat-icon",4),s.NdJ("click",function(){return e.showPasswordConfirm=!e.showPasswordConfirm}),s._uU(16),s.qZA(),s.YNc(17,pm,3,3,"mat-error",6),s.YNc(18,fm,3,3,"mat-error",6),s.qZA(),s.TgZ(19,"app-alert",10),s._UZ(20,"div",11),s.qZA(),s.qZA()),2&t&&(s.Q6J("formGroup",e.formGroup),s.xp6(1),s.Q6J("matTooltip",e.getPasswordDisabledTooltip())("matTooltipDisabled",e.formGroup.get("passwordCtrl").enabled),s.xp6(1),s.s9C("placeholder",s.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),s.Q6J("type",e.showNewPassword?"text":"password")("required",e.passwordRequired)("errorStateMatcher",e.passwordStateMatcher),s.xp6(2),s.Q6J("ngIf",e.formGroup.get("passwordCtrl").pending),s.xp6(2),s.hij(" ",e.showNewPassword?"visibility_off":"visibility"," "),s.xp6(1),s.Q6J("ngIf",e.formGroup.get("passwordCtrl").dirty&&null!==e.formGroup.get("passwordCtrl").errors),s.xp6(1),s.Q6J("ngIf",e.formGroup.get("passwordCtrl").hasError("required")),s.xp6(1),s.Q6J("ngIf",e.formGroup.get("passwordCtrl").hasError("backendError")),s.xp6(3),s.Oqu(s.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),s.xp6(2),s.Q6J("type",e.showPasswordConfirm?"text":"password")("required",e.passwordRequired),s.xp6(2),s.hij(" ",e.showPasswordConfirm?"visibility_off":"visibility"," "),s.xp6(1),s.Q6J("ngIf",e.formGroup.get("passwordAgainCtrl").hasError("required")),s.xp6(1),s.Q6J("ngIf",e.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),s.xp6(2),s.Q6J("innerHTML",e.passwordRequirement,s.oJD))},directives:[kd,ap,Kh,$p,Wg,Qh,Td,up,hp,n.O5,Jf,Hh,Nh,$g,am,zh],pipes:[eh],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right}.error-icon[_ngcontent-%COMP%], .input-spinner[_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;display:block;margin-top:-1px}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple, [_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{position:static!important;display:table}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}"]}),t})();function mm(t,e){1&t&&s._UZ(0,"mat-spinner",7)}function _m(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function bm(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function ym(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",8),s.TgZ(1,"mat-form-field"),s.TgZ(2,"mat-label"),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.TgZ(5,"input",9,10),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().subject=e}),s.qZA(),s.YNc(7,_m,3,3,"mat-error",11),s.qZA(),s.TgZ(8,"mat-form-field"),s.TgZ(9,"mat-label"),s._uU(10),s.ALo(11,"translate"),s.qZA(),s.TgZ(12,"textarea",12,13),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().message=e}),s.ALo(14,"translate"),s._uU(15," "),s.qZA(),s.YNc(16,bm,3,3,"mat-error",11),s.qZA(),s.qZA()}if(2&t){const t=s.MAs(6),e=s.MAs(13),i=s.oxw();s.xp6(3),s.Oqu(s.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),s.xp6(2),s.Q6J("ngModel",i.subject),s.xp6(2),s.Q6J("ngIf",t.invalid),s.xp6(3),s.Oqu(s.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),s.xp6(2),s.s9C("placeholder",s.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),s.Q6J("ngModel",i.message),s.xp6(4),s.Q6J("ngIf",e.invalid)}}let wm=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.translate=e,this.notificator=i,this.rtMessages=n,this.data=s,this.storeService=o,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data.error&&this.data.error.errorId&&(this.subject=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(t=>{this.dialogRef.afterClosed().subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1")+t.ticketNumber+this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"))}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const t=this.storeService.get("config");let e=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(e=e.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),e=e.concat(this.data.error.message+"\nPerun instance: "+t+"\nRequest:\n"+this.data.error.urlWithParams+"\n\n"),this.data.error.payload){const t=/"password":".+?"/;let i=JSON.stringify(this.data.error.payload);i=i.replace(t,'"password":"####"'),e=e.concat("Payload:\n"+i+"\n\n")}return e=e.concat("Sended from new Perun Gui, version: "+i(306).i8),e.split("\n").join("\n ")}parseMethod(t){return t?this.methodRegexp.exec(t)[1]:t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(th),s.Y36(Mg),s.Y36(X),s.Y36(Al),s.Y36(Kn))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.YNc(3,mm,1,0,"mat-spinner",1),s.YNc(4,ym,17,13,"div",2),s.TgZ(5,"div",3),s.TgZ(6,"div",4),s.TgZ(7,"button",5),s.NdJ("click",function(){return e.dialogRef.close()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",6),s.NdJ("click",function(){return e.sendBugReport()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(4),s.hij(" ",s.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),s.xp6(2),s.Q6J("disabled",""===e.message||""===e.subject||e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},directives:[Sl,n.O5,zl,uh,am,El,Kh,Nh,Wg,Qh,hp,Td,Jd,zh],pipes:[eh],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})(),Am=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.dialog=e,this.data=i}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const t=ng();t.width="550px",t.data={error:this.data.error},t.autoFocus=!1,this.dialog.open(wm,t)}),this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(Ll),s.Y36(Al))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.qZA(),s.TgZ(2,"div",1),s._uU(3),s.qZA(),s.TgZ(4,"div",2),s.TgZ(5,"div",3),s.TgZ(6,"button",4),s.NdJ("click",function(){return e.onBugReportClick()}),s._uU(7),s.ALo(8,"translate"),s.qZA(),s.TgZ(9,"button",5),s.NdJ("click",function(){return e.onCloseClick()}),s._uU(10),s.ALo(11,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(e.data.title),s.xp6(2),s.hij("\n",e.data.description,"\n"),s.xp6(3),s.Q6J("hidden","error"!==e.data.type),s.xp6(1),s.hij(" ",s.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),s.xp6(3),s.hij(" ",s.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},directives:[Sl,El,zl,uh],pipes:[eh],styles:[""]}),t})();const Mm=[[["caption"]],[["colgroup"],["col"]]],vm=["caption","colgroup, col"];function Tm(t){return class extends t{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=Zn(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const km=new s.OlP("CDK_TABLE");let Lm=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkCellDef",""]]}),t})(),Cm=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),Sm=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class Em{}const zm=Tm(Em);let xm=(()=>{class t extends zm{constructor(t){super(),this._table=t,this._stickyEnd=!1}get name(){return this._name}set name(t){this._setNameInput(t)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const e=this._stickyEnd;this._stickyEnd=Zn(t),this._hasStickyChanged=e!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(km,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,Lm,5),s.Suo(i,Cm,5),s.Suo(i,Sm,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.cell=t.first),s.iGM(t=s.CRH())&&(e.headerCell=t.first),s.iGM(t=s.CRH())&&(e.footerCell=t.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[s._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),s.qOj]}),t})();class Om{constructor(t,e){const i=e.nativeElement.classList;for(const n of t._columnCssClassName)i.add(n)}}let Rm=(()=>{class t extends Om{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(xm),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[s.qOj]}),t})(),Dm=(()=>{class t extends Om{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(xm),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[s.qOj]}),t})();class Pm{constructor(){this.tasks=[],this.endTasks=[]}}const Nm=new s.OlP("_COALESCED_STYLE_SCHEDULER");let Im=(()=>{class t{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new lt.xQ}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Pm,this._getScheduleObservable().pipe(Es(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const t=this._currentSchedule;this._currentSchedule=new Pm;for(const e of t.tasks)e();for(const e of t.endTasks)e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,ct.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,vt.q)(1))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),qm=(()=>{class t{constructor(t,e){this.template=t,this._differs=e}ngOnChanges(t){if(!this._columnsDiffer){const e=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof Ym?t.headerCell.template:this instanceof Wm?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc),s.Y36(s.ZZ4))},t.\u0275dir=s.lG2({type:t,features:[s.TTD]}),t})();class Bm extends qm{}const Hm=Tm(Bm);let Ym=(()=>{class t extends Hm{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(km,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[s.qOj,s.TTD]}),t})();class jm extends qm{}const Fm=Tm(jm);let Wm=(()=>{class t extends Fm{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(km,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[s.qOj,s.TTD]}),t})(),Um=(()=>{class t extends qm{constructor(t,e,i){super(t,e),this._table=i}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(km,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[s.qOj]}),t})(),Km=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),Zm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.GkF(0,0)},directives:[Km],encapsulation:2}),t})(),Gm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.GkF(0,0)},directives:[Km],encapsulation:2}),t})(),Xm=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const Vm=["top","bottom","left","right"];class $m{constructor(t,e,i,n,s=!0,o=!0,r){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=n,this._isBrowser=s,this._needsPositionStickyOnElement=o,this._positionListener=r,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(t,e){const i=[];for(const n of t)if(n.nodeType===n.ELEMENT_NODE){i.push(n);for(let t=0;t{for(const t of i)this._removeStickyStyle(t,e)})}updateStickyColumns(t,e,i,n=!0){if(!t.length||!this._isBrowser||!e.some(t=>t)&&!i.some(t=>t))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const s=t[0],o=s.children.length,r=this._getCellWidths(s,n),a=this._getStickyStartColumnPositions(r,e),c=this._getStickyEndColumnPositions(r,i),u=e.lastIndexOf(!0),l=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const n="rtl"===this.direction,s=n?"right":"left",h=n?"left":"right";for(const r of t)for(let t=0;te[i]?t:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===l?[]:r.slice(l).map((t,e)=>i[e+l]?t:null).reverse()}))})}stickRows(t,e,i){if(!this._isBrowser)return;const n="bottom"===i?t.slice().reverse():t,s="bottom"===i?e.slice().reverse():e,o=[],r=[],a=[];for(let u=0,l=0;u{var t,e;for(let r=0;r{e.some(t=>!t)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(t,e){for(const i of e)t.style[i]="",t.classList.remove(this._borderCellCss[i]);Vm.some(i=>-1===e.indexOf(i)&&t.style[i])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i,n){t.classList.add(this._stickCellCss),n&&t.classList.add(this._borderCellCss[e]),t.style[e]=`${i}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const n of Vm)t.style[n]&&(i+=e[n]);return i?`${i}`:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],n=t.children;for(let s=0;s0;s--)e[s]&&(i[s]=n,n+=t[s]);return i}}const Jm=new s.OlP("CDK_SPL");let Qm=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","rowOutlet",""]]}),t})(),t_=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),e_=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),i_=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),n_=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u,l){this._differs=t,this._changeDetectorRef=e,this._elementRef=i,this._dir=s,this._platform=r,this._viewRepeater=a,this._coalescedStyleScheduler=c,this._viewportRuler=u,this._stickyPositioningListener=l,this._onDestroy=new lt.xQ,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.viewChange=new dt({start:0,end:Number.MAX_VALUE}),n||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=o,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=Zn(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=Zn(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,e)=>this.trackBy?this.trackBy(e.dataIndex,e.data):e),this._viewportRuler.change().pipe(Es(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.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),ro(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return void this._updateNoDataRow();const e=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,e,(t,e,i)=>this._getEmbeddedViewArgs(t.item,i),t=>t.item.data,t=>{1===t.operation&&t.context&&this._renderCellTemplateForItem(t.record.item.rowDef,t.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(t=>{e.get(t.currentIndex).context.$implicit=t.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");const i=this._headerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"top"),this._headerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");const i=this._footerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...e,...i],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((t,e)=>{this._addStickyColumnStyles([t],this._headerRowDefs[e])}),this._rowDefs.forEach(t=>{const i=[];for(let n=0;n{this._addStickyColumnStyles([t],this._footerRowDefs[e])}),Array.from(this._columnDefsByName.values()).forEach(t=>t.resetStickyChanged())}_getAllRenderRows(){const t=[],e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let i=0;i{const s=i&&i.has(n)?i.get(n):[];if(s.length){const t=s.shift();return t.dataIndex=e,t}return{data:t,rowDef:n,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),s_(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=s_(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=s_(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=s_(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(t,e)=>t||!!e.getColumnsDiff(),e=this._rowDefs.reduce(t,!1);e&&this._forceRenderDataRows();const i=this._headerRowDefs.reduce(t,!1);i&&this._forceRenderHeaderRows();const n=this._footerRowDefs.reduce(t,!1);return n&&this._forceRenderFooterRows(),e||i||n}_switchDataSource(t){this._data=[],ro(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;ro(this.dataSource)?t=this.dataSource.connect(this):ms(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=(0,ut.of)(this.dataSource)),this._renderChangeSubscription=t.pipe(Es(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,e)=>this._renderRow(this._headerRowOutlet,t,e)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,e)=>this._renderRow(this._footerRowOutlet,t,e)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,e){const i=Array.from(e.columns||[]).map(t=>this._columnDefsByName.get(t)),n=i.map(t=>t.sticky),s=i.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,n,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){const e=[];for(let i=0;i!i.when||i.when(e,t));else{let n=this._rowDefs.find(i=>i.when&&i.when(e,t))||this._defaultRowDef;n&&i.push(n)}return i}_getEmbeddedViewArgs(t,e){return{templateRef:t.rowDef.template,context:{$implicit:t.data},index:e}}_renderRow(t,e,i,n={}){const s=t.viewContainer.createEmbeddedView(e.template,n,i);return this._renderCellTemplateForItem(e,n),s}_renderCellTemplateForItem(t,e){for(let i of this._getCellTemplates(t))Km.mostRecentCellOutlet&&Km.mostRecentCellOutlet._viewContainer.createEmbeddedView(i,e);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let e=0,i=t.length;e{const i=this._columnDefsByName.get(e);return t.extractCellTemplate(i)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),e=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const i of e){const e=this._document.createElement(i.tag);e.setAttribute("role","rowgroup");for(const t of i.outlets)e.appendChild(t.elementRef.nativeElement);t.appendChild(e)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const t=(t,e)=>t||e.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new $m(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,ut.of)()).pipe(Es(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const t=this._customNoDataRow||this._noDataRow;if(t){const e=0===this._rowOutlet.viewContainer.length;if(e!==this._isShowingNoDataRow){const i=this._noDataRowOutlet.viewContainer;e?i.createEmbeddedView(t.templateRef):i.clear(),this._isShowingNoDataRow=e}}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.ZZ4),s.Y36(s.sBO),s.Y36(s.SBq),s.$8M("role"),s.Y36(so,8),s.Y36(n.K0),s.Y36(Ws),s.Y36(lo),s.Y36(Nm),s.Y36(fo),s.Y36(Jm,12))},t.\u0275cmp=s.Xpm({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,Xm,5),s.Suo(i,xm,5),s.Suo(i,Um,5),s.Suo(i,Ym,5),s.Suo(i,Wm,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._noDataRow=t.first),s.iGM(t=s.CRH())&&(e._contentColumnDefs=t),s.iGM(t=s.CRH())&&(e._contentRowDefs=t),s.iGM(t=s.CRH())&&(e._contentHeaderRowDefs=t),s.iGM(t=s.CRH())&&(e._contentFooterRowDefs=t)}},viewQuery:function(t,e){if(1&t&&(s.Gf(Qm,7),s.Gf(t_,7),s.Gf(e_,7),s.Gf(i_,7)),2&t){let t;s.iGM(t=s.CRH())&&(e._rowOutlet=t.first),s.iGM(t=s.CRH())&&(e._headerRowOutlet=t.first),s.iGM(t=s.CRH())&&(e._footerRowOutlet=t.first),s.iGM(t=s.CRH())&&(e._noDataRowOutlet=t.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("cdk-table-fixed-layout",e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[s._Bn([{provide:km,useExisting:t},{provide:lo,useClass:ao},{provide:Nm,useClass:Im},{provide:Jm,useValue:null}])],ngContentSelectors:vm,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(s.F$t(Mm),s.Hsn(0),s.Hsn(1,1),s.GkF(2,0),s.GkF(3,1),s.GkF(4,2),s.GkF(5,3))},directives:[t_,Qm,i_,e_],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})();function s_(t,e){return t.concat(Array.from(e))}let o_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[mo]]}),t})();const r_=[[["caption"]],[["colgroup"],["col"]]],a_=["caption","colgroup, col"];let c_=(()=>{class t extends n_{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-table-fixed-layout",e.fixedLayout)},exportAs:["matTable"],features:[s._Bn([{provide:lo,useClass:ao},{provide:n_,useExisting:t},{provide:km,useExisting:t},{provide:Nm,useClass:Im},{provide:Jm,useValue:null}]),s.qOj],ngContentSelectors:a_,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(s.F$t(r_),s.Hsn(0),s.Hsn(1,1),s.GkF(2,0),s.GkF(3,1),s.GkF(4,2),s.GkF(5,3))},directives:[t_,Qm,i_,e_],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-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}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:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),t})(),u_=(()=>{class t extends Lm{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matCellDef",""]],features:[s._Bn([{provide:Lm,useExisting:t}]),s.qOj]}),t})(),l_=(()=>{class t extends Cm{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matHeaderCellDef",""]],features:[s._Bn([{provide:Cm,useExisting:t}]),s.qOj]}),t})(),h_=(()=>{class t extends xm{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[s._Bn([{provide:xm,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),s.qOj]}),t})(),d_=(()=>{class t extends Rm{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[s.qOj]}),t})(),p_=(()=>{class t extends Dm{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[s.qOj]}),t})(),f_=(()=>{class t extends Ym{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[s._Bn([{provide:Ym,useExisting:t}]),s.qOj]}),t})(),g_=(()=>{class t extends Um{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[s._Bn([{provide:Um,useExisting:t}]),s.qOj]}),t})(),m_=(()=>{class t extends Zm{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[s._Bn([{provide:Zm,useExisting:t}]),s.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.GkF(0,0)},directives:[Km],encapsulation:2}),t})(),__=(()=>{class t extends Gm{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[s._Bn([{provide:Gm,useExisting:t}]),s.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.GkF(0,0)},directives:[Km],encapsulation:2}),t})(),b_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[o_,Mu],Mu]}),t})();class y_ extends class extends class{}{constructor(t=[]){super(),this._renderData=new dt([]),this._filter=new dt(""),this._internalPageChanges=new lt.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(t,e)=>{const i=t[e];if(Xn(i)){const t=Number(i);return t<9007199254740991?t:i}return i},this.sortData=(t,e)=>{const i=e.active,n=e.direction;return i&&""!=n?t.sort((t,e)=>{let s=this.sortingDataAccessor(t,i),o=this.sortingDataAccessor(e,i);const r=typeof s,a=typeof o;r!==a&&("number"===r&&(s+=""),"number"===a&&(o+=""));let c=0;return null!=s&&null!=o?s>o?c=1:s{const i=Object.keys(t).reduce((e,i)=>e+t[i]+"\u25ec","").toLowerCase(),n=e.trim().toLowerCase();return-1!=i.indexOf(n)},this._data=new dt(t),this._updateChangeSubscription()}get data(){return this._data.value}set data(t){this._data.next(t),this._renderChangesSubscription||this._filterData(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}_updateChangeSubscription(){var t;const e=this._sort?(0,ko.T)(this._sort.sortChange,this._sort.initialized):(0,ut.of)(null),i=this._paginator?(0,ko.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,ut.of)(null),n=(0,pt.aj)([this._data,this._filter]).pipe((0,At.U)(([t])=>this._filterData(t))),s=(0,pt.aj)([n,e]).pipe((0,At.U)(([t])=>this._orderData(t))),o=(0,pt.aj)([s,i]).pipe((0,At.U)(([t])=>this._pageData(t)));null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=o.subscribe(t=>this._renderData.next(t))}_filterData(t){return this.filteredData=null==this.filter||""===this.filter?t:t.filter(t=>this.filterPredicate(t,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;const e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=t,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,i=Math.min(e.pageIndex,t);i!==e.pageIndex&&(e.pageIndex=i,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var t;null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=null}}{}function w_(t,e){1&t&&s._UZ(0,"mat-spinner",3)}function A_(t,e){1&t&&s._UZ(0,"th",15)}function M_(t,e){if(1&t&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",t.userExtSource.extSource.name," ")}}function v_(t,e){1&t&&s._UZ(0,"tr",17)}function T_(t,e){1&t&&s._UZ(0,"tr",18)}function k_(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"div",4),s.TgZ(2,"p"),s._uU(3),s.ALo(4,"translate"),s.ALo(5,"customTranslate"),s.qZA(),s.TgZ(6,"div",5),s._uU(7),s.ALo(8,"translate"),s.ALo(9,"customTranslate"),s.qZA(),s.TgZ(10,"table",6),s.ynx(11,7),s.YNc(12,A_,1,0,"th",8),s.YNc(13,M_,2,1,"td",9),s.BQk(),s.YNc(14,v_,1,0,"tr",10),s.YNc(15,T_,1,0,"tr",11),s.qZA(),s.qZA(),s.TgZ(16,"div",12),s.TgZ(17,"button",13),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(18),s.ALo(19,"translate"),s.ALo(20,"customTranslate"),s.qZA(),s.TgZ(21,"button",14),s.NdJ("click",function(){return s.CHM(t),s.oxw().onSubmit()}),s._uU(22),s.ALo(23,"translate"),s.ALo(24,"customTranslate"),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(3),s.hij(" ",s.lcZ(4,7,s.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),s.xp6(4),s.hij(" ",s.lcZ(8,11,s.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),s.xp6(3),s.Q6J("dataSource",t.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",t.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",t.displayedColumns),s.xp6(3),s.hij(" ",s.lcZ(19,15,s.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),s.xp6(4),s.hij(" ",s.lcZ(23,19,s.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let L_=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.usersManagerService=i,this.translate=n,this.notificator=s,this.force=!1,this.displayedColumns=["name"],n.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new y_(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 t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(Al),s.Y36(J),s.Y36(th),s.Y36(Mg))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.TgZ(4,"div"),s.YNc(5,w_,1,0,"mat-spinner",1),s.YNc(6,k_,25,23,"div",2),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,6,s.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE"))),s.xp6(3),s.Tol(e.theme),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[Sl,n.O5,am,El,c_,h_,l_,u_,f_,g_,zl,uh,d_,p_,m_,__],pipes:[eh,Og],styles:[""]}),t})();class C_{constructor(t,e){this._document=e;const i=this._textarea=this._document.createElement("textarea"),n=i.style;n.position="fixed",n.top=n.opacity="0",n.left="-999em",i.setAttribute("aria-hidden","true"),i.value=t,this._document.body.appendChild(i)}copy(){const t=this._textarea;let e=!1;try{if(t){const i=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch(hE){}return e}destroy(){const t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}let S_=(()=>{class t{constructor(t){this._document=t}copy(t){const e=this.beginCopy(t),i=e.copy();return e.destroy(),i}beginCopy(t){return new C_(t,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0))},token:t,providedIn:"root"}),t})();const E_=new s.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let z_=(()=>{class t{constructor(t,e,i){this._clipboard=t,this._ngZone=e,this.text="",this.attempts=1,this.copied=new s.vpe,this._pending=new Set,i&&null!=i.attempts&&(this.attempts=i.attempts)}copy(t=this.attempts){if(t>1){let e=t;const i=this._clipboard.beginCopy(this.text);this._pending.add(i);const n=()=>{const t=i.copy();t||!--e||this._destroyed?(this._currentTimeout=null,this._pending.delete(i),i.destroy(),this.copied.emit(t)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(n,1))};n()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(t=>t.destroy()),this._pending.clear(),this._destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S_),s.Y36(s.R0b),s.Y36(E_,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),t})(),x_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),O_=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}ngOnInit(){this.value=this.data.value,this.title=this.data.title}onCancel(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(Al))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.qZA(),s.TgZ(2,"div",1),s.TgZ(3,"textarea",2),s._uU(4),s.qZA(),s.qZA(),s.TgZ(5,"div",3),s.TgZ(6,"button",4),s.NdJ("click",function(){return e.onCancel()}),s._uU(7),s.ALo(8,"translate"),s.qZA(),s.TgZ(9,"button",5),s._uU(10),s.ALo(11,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(e.title),s.xp6(3),s.Oqu(e.value),s.xp6(3),s.hij(" ",s.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),s.xp6(2),s.Q6J("cdkCopyToClipboard",e.value),s.xp6(1),s.hij(" ",s.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},directives:[Sl,El,Ig,Wg,zl,uh,z_],pipes:[eh],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),t})(),R_=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,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 t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(Al))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h5",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s.TgZ(4,"mat-form-field"),s.TgZ(5,"textarea",2),s.NdJ("ngModelChange",function(t){return e.attributeValue=t}),s.qZA(),s.qZA(),s.qZA(),s.TgZ(6,"div",3),s.TgZ(7,"button",4),s.NdJ("click",function(){return e.cancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return e.submit()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE")),s.xp6(4),s.Q6J("ngModel",e.attributeValue),s.xp6(3),s.hij(" ",s.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),s.xp6(3),s.hij(" ",s.lcZ(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},directives:[Sl,El,Kh,Ig,Wg,Qh,Td,Jd,zl,uh],pipes:[eh],styles:[""]}),t})(),D_=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}cancel(){this.dialogRef.close()}submit(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(Al))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h5",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s.TgZ(4,"div"),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"div",2),s._uU(8),s.qZA(),s.qZA(),s.TgZ(9,"div",3),s.TgZ(10,"button",4),s.NdJ("click",function(){return e.cancel()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.TgZ(13,"button",5),s.NdJ("click",function(){return e.submit()}),s._uU(14),s.ALo(15,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE")),s.xp6(4),s.hij(" ",s.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),s.xp6(3),s.hij(" ",e.data.name," "),s.xp6(3),s.hij(" ",s.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),s.xp6(3),s.hij(" ",s.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},directives:[Sl,El,zl,uh],pipes:[eh],styles:[""]}),t})();function P_(t,e){if(1&t&&(s.TgZ(0,"app-alert",9),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Oqu(t.pendingEmailsMessage)}}function N_(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}let I_=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.translate=i,this.notificator=n,this.usersManagerService=s,this.authService=o,this.pendingMails=[],i.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(t=>this.successMessage=t),i.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(t=>this.pendingEmailsMessageStart=t),i.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(t=>this.pendingEmailsMessageEnd=t)}ngOnInit(){this.emailControl=new Wd(null,[od.required,od.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(t=>{this.pendingMails=t.filter((t,e,i)=>e===i.indexOf(t));let e="";this.pendingMails.forEach(t=>e+=`${t===this.pendingMails[0]?"":", "}${t}`),console.log(e),this.pendingEmailsMessage=this.pendingEmailsMessageStart+e+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 t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(Al),s.Y36(th),s.Y36(Mg),s.Y36(J),s.Y36(Rl))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.TgZ(4,"div",1),s.YNc(5,P_,2,1,"app-alert",2),s.TgZ(6,"mat-form-field",3),s.TgZ(7,"label",3),s._UZ(8,"input",4),s.ALo(9,"translate"),s.ALo(10,"customTranslate"),s.qZA(),s.YNc(11,N_,4,5,"mat-error",5),s.qZA(),s.qZA(),s.TgZ(12,"div",6),s.TgZ(13,"button",7),s.NdJ("click",function(){return e.onCancel()}),s._uU(14),s.ALo(15,"translate"),s.ALo(16,"customTranslate"),s.qZA(),s.TgZ(17,"button",8),s.NdJ("click",function(){return e.onSubmit()}),s._uU(18),s.ALo(19,"translate"),s.ALo(20,"customTranslate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,8,s.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),s.xp6(4),s.Q6J("ngIf",e.pendingMails.length),s.xp6(3),s.s9C("placeholder",s.lcZ(9,12,s.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),s.Q6J("formControl",e.emailControl),s.xp6(3),s.Q6J("ngIf",e.emailControl.invalid),s.xp6(3),s.hij(" ",s.lcZ(15,16,s.lcZ(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),s.xp6(3),s.Q6J("disabled",!e.emailControl.valid),s.xp6(1),s.hij(" ",s.lcZ(19,20,s.lcZ(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},directives:[Sl,El,n.O5,Kh,Wg,Qh,hp,Td,op,zl,uh,$g,zh],pipes:[eh,Og],styles:[""]}),t})(),q_=(()=>{class t{constructor(t,e){this.dialogRef=t,this.router=e}onClose(){this.router.navigate([]),this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(Mn))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s.TgZ(4,"app-alert",2),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA(),s.TgZ(7,"div",3),s.TgZ(8,"button",4),s.NdJ("click",function(){return e.onClose()}),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE")),s.xp6(4),s.Oqu(s.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),s.xp6(4),s.hij(" ",s.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},directives:[Sl,El,$g,zl,uh],pipes:[eh],styles:[""]}),t})();function B_(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.FIELD_EMPTY")))}function H_(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"form",5),s.TgZ(1,"div",6),s.TgZ(2,"mat-form-field"),s.TgZ(3,"mat-label"),s._uU(4),s.ALo(5,"translate"),s.qZA(),s._UZ(6,"input",7),s.TgZ(7,"mat-icon",8),s.NdJ("click",function(){s.CHM(t);const e=s.oxw();return e.showOldPassword=!e.showOldPassword}),s._uU(8),s.qZA(),s.YNc(9,B_,3,3,"mat-error",9),s.qZA(),s._UZ(10,"perun-web-apps-password-form",10),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("formGroup",t.formGroup),s.xp6(4),s.Oqu(s.lcZ(5,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.OLD_PASSWORD")),s.xp6(2),s.Q6J("type",t.showOldPassword?"text":"password"),s.xp6(2),s.hij(" ",t.showOldPassword?"visibility_off":"visibility"," "),s.xp6(1),s.Q6J("ngIf",t.oldPwd.hasError("required")),s.xp6(1),s.Q6J("formGroup",t.formGroup)("namespace",t.data.namespace)}}function Y_(t,e){1&t&&s._UZ(0,"mat-spinner",11)}function j_(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",12),s.TgZ(1,"div",13),s.TgZ(2,"button",14),s.NdJ("click",function(){return s.CHM(t),s.oxw().close()}),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.TgZ(5,"button",15),s.NdJ("click",function(){return s.CHM(t),s.oxw().changePassword()}),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(3),s.hij(" ",s.lcZ(4,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CANCEL")," "),s.xp6(2),s.Q6J("disabled",t.formGroup.invalid||t.formGroup.pending),s.xp6(1),s.hij(" ",s.lcZ(7,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CHANGE")," ")}}let F_=(()=>{class t{constructor(t,e,i,n,s,o,r){this.dialogRef=t,this.data=e,this._formBuilder=i,this.usersManagerService=n,this.apiRequestConfiguration=s,this.notificator=o,this.translate=r,this.showOldPassword=!1,r.get("SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.formGroup=this._formBuilder.group({oldPasswordCtrl:["",od.required],passwordCtrl:["",od.required,[Dg(this.data.namespace,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""]},{validators:_g.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(this.data.login,this.data.namespace,this.newPwd.value,this.oldPwd.value,!0).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(Al),s.Y36(gp),s.Y36(J),s.Y36(Ag),s.Y36(Mg),s.Y36(th))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s.YNc(4,H_,11,9,"form",2),s.YNc(5,Y_,1,0,"mat-spinner",3),s.qZA(),s.YNc(6,j_,8,7,"div",4)),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.TITLE")),s.xp6(3),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[Sl,El,n.O5,Qd,kd,ap,Kh,Nh,Qh,Wg,Td,up,hp,Jf,Hh,gm,zh,am,zl,uh],pipes:[eh],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}"]}),t})();const W_=["input"],U_=function(t){return{enterDuration:t}},K_=["*"],Z_=new s.OlP("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}});let G_=0;const X_={provide:Vh,useExisting:(0,s.Gpc)(()=>Q_),multi:!0};class V_{constructor(t,e){this.source=t,this.value=e}}const $_=new s.OlP("MatRadioGroup");let J_=(()=>{class t{constructor(t){this._changeDetector=t,this._value=null,this._name="mat-radio-group-"+G_++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new s.vpe}get name(){return this._name}set name(t){this._name=t,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(t){this._labelPosition="before"===t?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(t){this._disabled=Zn(t),this._markRadiosForCheck()}get required(){return this._required}set required(t){this._required=Zn(t),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(t=>{t.name=this.name,t._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 V_(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(t=>t._markForCheck())}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t,inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"}}),t})(),Q_=(()=>{class t extends J_{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["mat-radio-group"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,nb,5),2&t){let t;s.iGM(t=s.CRH())&&(e._radios=t)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[s._Bn([X_,{provide:$_,useExisting:t}]),s.qOj]}),t})();class tb{constructor(t){this._elementRef=t}}const eb=ku(Lu(tb));let ib=(()=>{class t extends eb{constructor(t,e,i,n,o,r,a,c){super(e),this._changeDetector=i,this._focusMonitor=n,this._radioDispatcher=o,this._providerOverride=a,this._uniqueId="mat-radio-"+ ++G_,this.id=this._uniqueId,this.change=new s.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=t,this._noopAnimations="NoopAnimations"===r,c&&(this.tabIndex=Gn(c,0)),this._removeUniqueSelectionListener=o.listen((t,e)=>{t!==this.id&&e===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(t){const e=Zn(t);this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(t){this._labelPosition=t}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(t){this._setDisabled(Zn(t))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(t){this._required=Zn(t)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(t){this._color=t}get inputId(){return`${this.id||this._uniqueId}-input`}focus(t,e){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}_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)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{!t&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new V_(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(t){t.stopPropagation()}_onInputChange(t){t.stopPropagation();const e=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),e&&this.radioGroup._emitChangeEvent())}_setDisabled(t){this._disabled!==t&&(this._disabled=t,this._changeDetector.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(J_),s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(Pr),s.Y36(uo),s.Y36(String),s.Y36(void 0),s.Y36(String))},t.\u0275dir=s.lG2({type:t,viewQuery:function(t,e){if(1&t&&s.Gf(W_,5),2&t){let t;s.iGM(t=s.CRH())&&(e._inputElement=t.first)}},inputs:{id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},features:[s.qOj]}),t})(),nb=(()=>{class t extends ib{constructor(t,e,i,n,s,o,r,a){super(t,e,i,n,s,o,r,a)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36($_,8),s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(Pr),s.Y36(uo),s.Y36(lu,8),s.Y36(Z_,8),s.$8M("tabindex"))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,e){1&t&&s.NdJ("focus",function(){return e._inputElement.nativeElement.focus()}),2&t&&(s.uIk("tabindex",null)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),s.ekj("mat-radio-checked",e.checked)("mat-radio-disabled",e.disabled)("_mat-animation-noopable",e._noopAnimations)("mat-primary","primary"===e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[s.qOj],ngContentSelectors:K_,decls:13,vars:20,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","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","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(t,e){if(1&t&&(s.F$t(),s.TgZ(0,"label",0,1),s.TgZ(2,"span",2),s._UZ(3,"span",3),s._UZ(4,"span",4),s.TgZ(5,"input",5,6),s.NdJ("change",function(t){return e._onInputChange(t)})("click",function(t){return e._onInputClick(t)}),s.qZA(),s.TgZ(7,"span",7),s._UZ(8,"span",8),s.qZA(),s.qZA(),s.TgZ(9,"span",9),s.TgZ(10,"span",10),s._uU(11,"\xa0"),s.qZA(),s.Hsn(12),s.qZA(),s.qZA()),2&t){const t=s.MAs(1);s.uIk("for",e.inputId),s.xp6(5),s.Q6J("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex)("required",e.required),s.uIk("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),s.xp6(2),s.Q6J("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",s.VKq(18,U_,e._noopAnimations?0:150)),s.xp6(2),s.ekj("mat-radio-label-before","before"==e.labelPosition)}},directives:[Vu],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-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;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-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{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),t})(),sb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[$u,Mu],Mu]}),t})();function ob(t,e){1&t&&s._UZ(0,"mat-spinner",4)}function rb(t,e){1&t&&(s.TgZ(0,"span",11),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function ab(t,e){1&t&&(s.TgZ(0,"span",11),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function cb(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-radio-group",12),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).asyncValidation=e}),s.TgZ(1,"span",13),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"mat-radio-button",14),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"mat-radio-button",14),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(2);s.Q6J("ngModel",t.asyncValidation),s.xp6(2),s.hij(" ",s.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE"),": "),s.xp6(2),s.Q6J("value",!1),s.xp6(1),s.hij(" ",s.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),s.xp6(2),s.Q6J("value",!0),s.xp6(1),s.hij(" ",s.lcZ(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," ")}}function ub(t,e){1&t&&(s.TgZ(0,"span",11),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function lb(t,e){1&t&&(s.TgZ(0,"span",11),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function hb(t,e){if(1&t&&(s.TgZ(0,"div",5),s.TgZ(1,"p",6),s._uU(2),s.TgZ(3,"span",7),s._uU(4),s.qZA(),s._uU(5),s.TgZ(6,"span",7),s._uU(7),s.qZA(),s.qZA(),s.TgZ(8,"p"),s.TgZ(9,"strong",8),s._uU(10),s.ALo(11,"translate"),s.qZA(),s._uU(12),s.qZA(),s.TgZ(13,"p"),s.TgZ(14,"strong",8),s._uU(15),s.ALo(16,"translate"),s.qZA(),s._uU(17),s.qZA(),s.YNc(18,rb,3,3,"span",9),s.YNc(19,ab,3,3,"span",9),s.YNc(20,cb,10,12,"mat-radio-group",10),s.YNc(21,ub,3,3,"span",9),s.YNc(22,lb,3,3,"span",9),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.hij(" ",t.group.name," "),s.xp6(2),s.hij("#",t.group.id,""),s.xp6(1),s.hij(" - ",t.resource.name," "),s.xp6(2),s.hij("#",t.resource.id,""),s.xp6(3),s.hij("",s.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT"),":"),s.xp6(2),s.hij(" ",t.status," "),s.xp6(3),s.hij("",s.lcZ(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW"),":"),s.xp6(2),s.hij(" ",t.getReversedStatus()," "),s.xp6(1),s.Q6J("ngIf","INACTIVE"===t.status),s.xp6(1),s.Q6J("ngIf","ACTIVE"===t.status),s.xp6(1),s.Q6J("ngIf","INACTIVE"===t.status),s.xp6(1),s.Q6J("ngIf","INACTIVE"===t.status&&!1===t.asyncValidation),s.xp6(1),s.Q6J("ngIf","INACTIVE"===t.status&&!0===t.asyncValidation)}}function db(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",15),s.TgZ(1,"button",16),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"button",17),s.NdJ("click",function(){return s.CHM(t),s.oxw().onSubmit()}),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),s.xp6(2),s.Q6J("disabled",t.loading),s.xp6(1),s.hij(" ",s.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG."+("ACTIVE"===t.status?"DEACTIVATE":"ACTIVATE"))," ")}}let pb=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.data=e,this.resourceService=i,this.groupService=n,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(t=>{this.resource=t,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 t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(Al),s.Y36($),s.Y36(Z))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,ob,1,0,"mat-spinner",1),s.YNc(5,hb,23,17,"div",2),s.YNc(6,db,7,7,"div",3),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.Oqu(s.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[Sl,n.O5,am,El,Q_,Td,Jd,nb,zl,uh],pipes:[eh],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),t})();function fb(t,e){if(1&t&&(s.TgZ(0,"div",5),s.TgZ(1,"mat-icon"),s._uU(2),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.Oqu(t.data.icon)}}function gb(t,e){if(1&t&&(s.TgZ(0,"div",6),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.hij(" ",t.showTimestamp()," ")}}let mb=(()=>{class t{constructor(t,e){this.dialog=t,this.notificationStorageService=e,this.newNotification=!1,this.closeNotification=new s.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 t=ng();t.width="550px",t.data=this.data,t.autoFocus=!1,this.dialog.open(Am,t).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function(t,e){return i=this,s=function*(){var i;yield(i=t,new Promise(t=>setTimeout(t,i))),e()},new((n=void 0)||(n=Promise))(function(t,e){function o(t){try{a(s.next(t))}catch(i){e(i)}}function r(t){try{a(s.throw(t))}catch(i){e(i)}}function a(e){var i;e.done?t(e.value):(i=e.value,i instanceof n?i:new n(function(t){t(i)})).then(o,r)}a((s=s.apply(i,[])).next())});var i,n,s}(this.data.delay,()=>{this.alreadyClosed||this.waiting||this.closeSelf()})}showTimestamp(){const[t,e]=this.data.timeStamp.split(":");return e.length<2?t+":0"+e:this.data.timeStamp}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Ll),s.Y36(Tg))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"div",0),s.NdJ("click",function(){return e.alreadyClosed||e.waiting?"":e.closeSelf()}),s.YNc(2,fb,3,1,"div",1),s.TgZ(3,"div",2),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.YNc(6,gb,2,1,"div",3),s.TgZ(7,"div",4),s.NdJ("click",function(){return e.waiting=!0,e.doAction()}),s._uU(8),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Gre("notification ",e.inDialog?"":"mat-elevation-z7",""),s.ekj("error","error"===e.data.type)("success","success"===e.data.type),s.xp6(2),s.Q6J("ngIf",null!==e.data.icon),s.xp6(2),s.hij(" ",s.lcZ(5,12,e.data.title)," "),s.xp6(2),s.Q6J("ngIf",e.inDialog),s.xp6(1),s.Q6J("hidden",e.alreadyPressed),s.xp6(1),s.hij(" ",e.data.actionText," "))},directives:[n.O5,Jf],pipes:[eh],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}"]}),t})();function _b(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"perun-web-apps-notification",2),s.NdJ("closeNotification",function(){const e=s.CHM(t).index;return s.oxw().removeNotification(e)}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit;s.Q6J("@flyInOut",void 0),s.xp6(1),s.Q6J("data",t)("newNotification",!0)}}const bb=function(t){return{top:t}};let yb=(()=>{class t{constructor(t,e){this.notificator=t,this.notificationStorageService=e,this.mobileView=!1,this.minWidth=992,this.displayWarning=!1,this.notifications=[],this.notificator.addNotification.subscribe(t=>{this.processNotification(t)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}processNotification(t){this.notifications.push(t),this.notificationStorageService.storeNotification(t)}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(t){this.notifications.splice(t,1)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Mg),s.Y36(Tg))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-notificator"]],hostBindings:function(t,e){1&t&&s.NdJ("resize",function(t){return e.getScreenSize(t)},!1,s.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.YNc(1,_b,2,3,"div",1),s.qZA()),2&t&&(s.Q6J("ngStyle",s.VKq(2,bb,e.getNotificatorTop())),s.xp6(1),s.Q6J("ngForOf",e.notifications))},directives:[n.PC,n.sg,mb],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width:768px){#notificator[_ngcontent-%COMP%]{width:100%;top:auto;bottom:0}}"],data:{animation:[Eg]}}),t})();const wb=["*",[["mat-toolbar-row"]]],Ab=["*","mat-toolbar-row"];class Mb{constructor(t){this._elementRef=t}}const vb=Tu(Mb);let Tb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),kb=(()=>{class t extends vb{constructor(t,e,i){super(t),this._platform=e,this._document=i}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Ws),s.Y36(n.K0))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,Tb,5),2&t){let t;s.iGM(t=s.CRH())&&(e._toolbarRows=t)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&s.ekj("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[s.qOj],ngContentSelectors:Ab,decls:2,vars:0,template:function(t,e){1&t&&(s.F$t(wb),s.Hsn(0),s.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%}\n"],encapsulation:2,changeDetection:0}),t})(),Lb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Mu],Mu]}),t})();const Cb={provide:s.tb,useFactory:function(t,e){return()=>{if((0,n.NF)(e)){const e=Array.from(t.querySelectorAll(`[class*=${Sb}]`)),i=/\bflex-layout-.+?\b/g;e.forEach(t=>{t.classList.contains(`${Sb}ssr`)&&t.parentNode?t.parentNode.removeChild(t):t.className.replace(i,"")})}}},deps:[n.K0,s.Lbi],multi:!0},Sb="flex-layout-";let Eb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Cb]}),t})();class zb{constructor(t=!1,e="all",i="",n="",s=0){this.matches=t,this.mediaQuery=e,this.mqAlias=i,this.suffix=n,this.priority=s,this.property=""}clone(){return new zb(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let xb=(()=>{class t{constructor(){this.stylesheet=new Map}addStyleToElement(t,e,i){const n=this.stylesheet.get(t);n?n.set(e,i):this.stylesheet.set(t,new Map([[e,i]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(t,e){const i=this.stylesheet.get(t);let n="";if(i){const t=i.get(e);"number"!=typeof t&&"string"!=typeof t||(n=t+"")}return n}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Ob={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},Rb=new s.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>Ob}),Db=new s.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),Pb=new s.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function Nb(t,e){return t=t?t.clone():new zb,e&&(t.mqAlias=e.alias,t.mediaQuery=e.mediaQuery,t.suffix=e.suffix,t.priority=e.priority),t}const Ib=["row","column","row-reverse","column-reverse"];function qb(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let Bb=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.styleBuilder=e,this.styler=i,this.marshal=n,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new lt.xQ,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(t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,this.marshal.activatedAlias)}ngOnChanges(t){Object.keys(t).forEach(e=>{if(-1!==this.inputs.indexOf(e)){const i=e.split(".").slice(1).join(".");this.setValue(t[e].currentValue,i)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(t=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),t)}addStyles(t,e){const i=this.styleBuilder,n=i.shouldCache;let s=this.styleCache.get(t);s&&n||(s=i.buildStyles(t,e),n&&this.styleCache.set(t,s)),this.mru=Object.assign({},s),this.applyStyleToElement(s),i.sideEffect(t,s,e)}clearStyles(){Object.keys(this.mru).forEach(t=>{this.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={}}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(t,e=!1){if(t){const[i,n]=this.styler.getFlowDirection(t);if(!n&&e){const e=function(t){let[e,i,n]=function(t){t=t?t.toLowerCase():"";let[e,i,n]=t.split(" ");return Ib.find(t=>t===e)||(e=Ib[0]),"inline"===i&&(i="inline"!==n?n:"",n="inline"),[e,qb(i),!!n]}(t);return function(t,e=null,i=!1){return{display:i?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,i,n)}(i);this.styler.applyStyleToElements(e,[t])}return i.trim()}return"row"}hasWrap(t){return this.styler.hasWrap(t)}applyStyleToElement(t,e,i=this.nativeElement){this.styler.applyStyleToElement(i,t,e)}setValue(t,e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,e)}updateWithValue(t){this.currentValue!==t&&(this.addStyles(t),this.currentValue=t)}}return t.\u0275fac=function(t){s.$Z()},t.\u0275dir=s.lG2({type:t,features:[s.TTD]}),t})();const Hb=[{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}],Yb="(orientation: portrait) and (max-width: 599.98px)",jb="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",Fb="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",Wb="(orientation: portrait) and (min-width: 840px)",Ub="(orientation: landscape) and (min-width: 1280px)",Kb={HANDSET:`${Yb}, (orientation: landscape) and (max-width: 959.98px)`,TABLET:`${jb} , ${Fb}`,WEB:`${Wb}, ${Ub} `,HANDSET_PORTRAIT:`${Yb}`,TABLET_PORTRAIT:`${jb} `,WEB_PORTRAIT:`${Wb}`,HANDSET_LANDSCAPE:"(orientation: landscape) and (max-width: 959.98px)",TABLET_LANDSCAPE:`${Fb}`,WEB_LANDSCAPE:`${Ub}`},Zb=[{alias:"handset",priority:2e3,mediaQuery:Kb.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Kb.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Kb.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Kb.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Kb.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Kb.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Kb.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Kb.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Kb.WEB_PORTRAIT,overlapping:!0}],Gb=/(\.|-|_)/g;function Xb(t){let e=t.length>0?t.charAt(0):"",i=t.length>1?t.slice(1):"";return e.toUpperCase()+i}const Vb=new s.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const t=(0,s.f3M)(Pb),e=(0,s.f3M)(Rb),i=[].concat.apply([],(t||[]).map(t=>Array.isArray(t)?t:[t]));return function(t,e=[]){const i={};return t.forEach(t=>{i[t.alias]=t}),e.forEach(t=>{i[t.alias]?function(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let i of e)if(null!=i)for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e])}(i[t.alias],t):i[t.alias]=t}),(n=Object.keys(i).map(t=>i[t])).forEach(t=>{t.suffix||(t.suffix=t.alias.replace(Gb,"|").split("|").map(Xb).join(""),t.overlapping=!!t.overlapping)}),n;var n}((e.disableDefaultBps?[]:Hb).concat(e.addOrientationBps?Zb:[]),i)}});function $b(t,e){return(e&&e.priority||0)-(t&&t.priority||0)}function Jb(t,e){return(t.priority||0)-(e.priority||0)}let Qb=(()=>{class t{constructor(t){this.findByMap=new Map,this.items=[...t].sort(Jb)}findByAlias(t){return t?this.findWithPredicate(t,e=>e.alias==t):null}findByQuery(t){return this.findWithPredicate(t,e=>e.mediaQuery==t)}get overlappings(){return this.items.filter(t=>1==t.overlapping)}get aliases(){return this.items.map(t=>t.alias)}get suffixes(){return this.items.map(t=>t.suffix?t.suffix:"")}findWithPredicate(t,e){let i=this.findByMap.get(t);return i||(i=this.items.find(e)||null,this.findByMap.set(t,i)),i||null}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Vb))},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t((0,s.LFG)(Vb))},token:t,providedIn:"root"}),t})(),ty=(()=>{class t{constructor(t,e,i){this._zone=t,this._platformId=e,this._document=i,this.source=new dt(new zb(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const t=[];return this.registry.forEach((e,i)=>{e.matches&&t.push(i)}),t}isActive(t){const e=this.registry.get(t);return e?e.matches:this.registerQuery(t).some(t=>t.matches)}observe(t,e=!1){if(t&&t.length){const i=this._observable$.pipe((0,at.h)(i=>!e||t.indexOf(i.mediaQuery)>-1)),n=new ft.y(e=>{const i=this.registerQuery(t);if(i.length){const t=i.pop();i.forEach(t=>{e.next(t)}),this.source.next(t)}e.complete()});return(0,ko.T)(n,i)}return this._observable$}registerQuery(t){const e=Array.isArray(t)?t:[t],i=[];return function(t,e){const i=t.filter(t=>!ey[t]);if(i.length>0){const t=i.join(", ");try{const n=e.createElement("style");n.setAttribute("type","text/css"),n.styleSheet||n.appendChild(e.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`)),e.head.appendChild(n),i.forEach(t=>ey[t]=n)}catch(n){console.error(n)}}}(e,this._document),e.forEach(t=>{const e=e=>{this._zone.run(()=>this.source.next(new zb(e.matches,t)))};let n=this.registry.get(t);n||(n=this.buildMQL(t),n.addListener(e),this.pendingRemoveListenerFns.push(()=>n.removeListener(e)),this.registry.set(t,n)),n.matches&&i.push(new zb(!0,t))}),i}ngOnDestroy(){let t;for(;t=this.pendingRemoveListenerFns.pop();)t()}buildMQL(t){return function(t,e){return e&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(t,(0,n.NF)(this._platformId))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(s.Lbi),s.LFG(n.K0))},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t((0,s.LFG)(s.R0b),(0,s.LFG)(s.Lbi),(0,s.LFG)(n.K0))},token:t,providedIn:"root"}),t})();const ey={},iy={alias:"print",mediaQuery:"print",priority:1e3};let ny=(()=>{class t{constructor(t,e,i){this.breakpoints=t,this.layoutConfig=e,this._document=i,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new sy,this.deactivations=[]}withPrintQuery(t){return[...t,"print"]}isPrintEvent(t){return t.mediaQuery.startsWith("print")}get printAlias(){return this.layoutConfig.printWithBreakpoints||[]}get printBreakPoints(){return this.printAlias.map(t=>this.breakpoints.findByAlias(t)).filter(t=>null!==t)}getEventBreakpoints({mediaQuery:t}){const e=this.breakpoints.findByQuery(t);return(e?[...this.printBreakPoints,e]:this.printBreakPoints).sort($b)}updateEvent(t){let e=this.breakpoints.findByQuery(t.mediaQuery);return this.isPrintEvent(t)&&(e=this.getEventBreakpoints(t)[0],t.mediaQuery=e?e.mediaQuery:""),Nb(t,e)}registerBeforeAfterPrintHooks(t){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const e=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(t,this.getEventBreakpoints(new zb(!0,"print"))),t.updateStyles())},i=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(t),t.updateStyles())};this._document.defaultView.addEventListener("beforeprint",e),this._document.defaultView.addEventListener("afterprint",i),this.beforePrintEventListeners.push(e),this.afterPrintEventListeners.push(i)}interceptEvents(t){return this.registerBeforeAfterPrintHooks(t),e=>{this.isPrintEvent(e)?e.matches&&!this.isPrinting?(this.startPrinting(t,this.getEventBreakpoints(e)),t.updateStyles()):e.matches||!this.isPrinting||this.isPrintingBeforeAfterEvent||(this.stopPrinting(t),t.updateStyles()):this.collectActivations(e)}}blockPropagation(){return t=>!(this.isPrinting||this.isPrintEvent(t))}startPrinting(t,e){this.isPrinting=!0,t.activatedBreakpoints=this.queue.addPrintBreakpoints(e)}stopPrinting(t){t.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}collectActivations(t){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(t.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{const e=this.breakpoints.findByQuery(t.mediaQuery);e&&(this.deactivations.push(e),this.deactivations.sort($b))}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("beforeprint",t)),this.afterPrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("afterprint",t)))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Qb),s.LFG(Rb),s.LFG(n.K0))},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t((0,s.LFG)(Qb),(0,s.LFG)(Rb),(0,s.LFG)(n.K0))},token:t,providedIn:"root"}),t})();class sy{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(t){return t.push(iy),t.sort($b),t.forEach(t=>this.addBreakpoint(t)),this.printBreakpoints}addBreakpoint(t){t&&void 0===this.printBreakpoints.find(e=>e.mediaQuery===t.mediaQuery)&&(this.printBreakpoints=function(t){return!!t&&t.mediaQuery.startsWith("print")}(t)?[t,...this.printBreakpoints]:[...this.printBreakpoints,t])}clear(){this.printBreakpoints=[]}}function oy(t){for(let e in t){let i=t[e]||"";switch(e){case"display":t.display="flex"===i?["-webkit-flex","flex"]:"inline-flex"===i?["-webkit-inline-flex","inline-flex"]:i;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":t["-webkit-"+e]=i;break;case"flex-direction":i=i||"row",t["-webkit-flex-direction"]=i,t["flex-direction"]=i;break;case"order":t.order=t["-webkit-"+e]=isNaN(+i)?"0":i}}return t}let ry=(()=>{class t{constructor(t,e,i,n){this._serverStylesheet=t,this._serverModuleLoaded=e,this._platformId=i,this.layoutConfig=n}applyStyleToElement(t,e,i=null){let n={};"string"==typeof e&&(n[e]=i,e=n),n=this.layoutConfig.disableVendorPrefixes?e:oy(e),this._applyMultiValueStyleToElement(n,t)}applyStyleToElements(t,e=[]){const i=this.layoutConfig.disableVendorPrefixes?t:oy(t);e.forEach(t=>{this._applyMultiValueStyleToElement(i,t)})}getFlowDirection(t){let e=this.lookupStyle(t,"flex-direction");return[e||"row",this.lookupInlineStyle(t,"flex-direction")||(0,n.PM)(this._platformId)&&this._serverModuleLoaded?e:""]}hasWrap(t){return"wrap"===this.lookupStyle(t,"flex-wrap")}lookupAttributeValue(t,e){return t.getAttribute(e)||""}lookupInlineStyle(t,e){return(0,n.NF)(this._platformId)?t.style.getPropertyValue(e):this._getServerStyle(t,e)}lookupStyle(t,e,i=!1){let s="";return t&&((s=this.lookupInlineStyle(t,e))||((0,n.NF)(this._platformId)?i||(s=getComputedStyle(t).getPropertyValue(e)):this._serverModuleLoaded&&(s=this._serverStylesheet.getStyleForElement(t,e)))),s?s.trim():""}_applyMultiValueStyleToElement(t,e){Object.keys(t).sort().forEach(i=>{const s=t[i],o=Array.isArray(s)?s:[s];o.sort();for(let t of o)t=t?t+"":"",(0,n.NF)(this._platformId)||!this._serverModuleLoaded?(0,n.NF)(this._platformId)?e.style.setProperty(i,t):this._setServerStyle(e,i,t):this._serverStylesheet.addStyleToElement(e,i,t)})}_setServerStyle(t,e,i){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const n=this._readStyleAttribute(t);n[e]=i||"",this._writeStyleAttribute(t,n)}_getServerStyle(t,e){return this._readStyleAttribute(t)[e]||""}_readStyleAttribute(t){const e={},i=t.getAttribute("style");if(i){const t=i.split(/;+/g);for(let i=0;i0){const t=n.indexOf(":");if(-1===t)throw new Error(`Invalid CSS style: ${n}`);e[n.substr(0,t).trim()]=n.substr(t+1).trim()}}}return e}_writeStyleAttribute(t,e){let i="";for(const n in e)e[n]&&(i+=n+":"+e[n]+";");t.setAttribute("style",i)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(xb),s.LFG(Db),s.LFG(s.Lbi),s.LFG(Rb))},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t((0,s.LFG)(xb),(0,s.LFG)(Db),(0,s.LFG)(s.Lbi),(0,s.LFG)(Rb))},token:t,providedIn:"root"}),t})();class ay{constructor(){this.shouldCache=!0}sideEffect(t,e,i){}}let cy=(()=>{class t{constructor(t,e,i){this.matchMedia=t,this.breakpoints=e,this.hook=i,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 lt.xQ,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}onMediaChange(t){const e=this.findByQuery(t.mediaQuery);e&&((t=Nb(t,e)).matches&&-1===this.activatedBreakpoints.indexOf(e)?(this.activatedBreakpoints.push(e),this.activatedBreakpoints.sort($b),this.updateStyles()):t.matches||-1===this.activatedBreakpoints.indexOf(e)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(e),1),this.activatedBreakpoints.sort($b),this.updateStyles()))}init(t,e,i,n,s=[]){uy(this.updateMap,t,e,i),uy(this.clearMap,t,e,n),this.buildElementKeyMap(t,e),this.watchExtraTriggers(t,e,s)}getValue(t,e,i){const n=this.elementMap.get(t);if(n){const t=void 0!==i?n.get(i):this.getActivatedValues(n,e);if(t)return t.get(e)}}hasValue(t,e){const i=this.elementMap.get(t);if(i){const t=this.getActivatedValues(i,e);if(t)return void 0!==t.get(e)||!1}return!1}setValue(t,e,i,n){let s=this.elementMap.get(t);if(s){const o=(s.get(n)||new Map).set(e,i);s.set(n,o),this.elementMap.set(t,s)}else s=(new Map).set(n,(new Map).set(e,i)),this.elementMap.set(t,s);const o=this.getValue(t,e);void 0!==o&&this.updateElement(t,e,o)}trackValue(t,e){return this.subject.asObservable().pipe((0,at.h)(i=>i.element===t&&i.key===e))}updateStyles(){this.elementMap.forEach((t,e)=>{const i=new Set(this.elementKeyMap.get(e));let n=this.getActivatedValues(t);n&&n.forEach((t,n)=>{this.updateElement(e,n,t),i.delete(n)}),i.forEach(i=>{if(n=this.getActivatedValues(t,i),n){const t=n.get(i);this.updateElement(e,i,t)}else this.clearElement(e,i)})})}clearElement(t,e){const i=this.clearMap.get(t);if(i){const n=i.get(e);n&&(n(),this.subject.next({element:t,key:e,value:""}))}}updateElement(t,e,i){const n=this.updateMap.get(t);if(n){const s=n.get(e);s&&(s(i),this.subject.next({element:t,key:e,value:i}))}}releaseElement(t){const e=this.watcherMap.get(t);e&&(e.forEach(t=>t.unsubscribe()),this.watcherMap.delete(t));const i=this.elementMap.get(t);i&&(i.forEach((t,e)=>i.delete(e)),this.elementMap.delete(t))}triggerUpdate(t,e){const i=this.elementMap.get(t);if(i){const n=this.getActivatedValues(i,e);n&&(e?this.updateElement(t,e,n.get(e)):n.forEach((e,i)=>this.updateElement(t,i,e)))}}buildElementKeyMap(t,e){let i=this.elementKeyMap.get(t);i||(i=new Set,this.elementKeyMap.set(t,i)),i.add(e)}watchExtraTriggers(t,e,i){if(i&&i.length){let n=this.watcherMap.get(t);if(n||(n=new Map,this.watcherMap.set(t,n)),!n.get(e)){const s=(0,ko.T)(...i).subscribe(()=>{const i=this.getValue(t,e);this.updateElement(t,e,i)});n.set(e,s)}}}findByQuery(t){return this.breakpoints.findByQuery(t)}getActivatedValues(t,e){for(let n=0;nt.mediaQuery);this.matchMedia.observe(this.hook.withPrintQuery(t)).pipe((0,Yt.b)(this.hook.interceptEvents(this)),(0,at.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(ty),s.LFG(Qb),s.LFG(ny))},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t((0,s.LFG)(ty),(0,s.LFG)(Qb),(0,s.LFG)(ny))},token:t,providedIn:"root"}),t})();function uy(t,e,i,n){if(void 0!==n){let s=t.get(e);s||(s=new Map,t.set(e,s)),s.set(i,n)}}new Map,new WeakMap;class ly{constructor(t,e,i=!0){this.key=t,this.value=e,this.key=i?t.replace(/['"]/g,"").trim():t.trim(),this.value=i?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}function hy(t){let e=typeof t;return"object"===e?t.constructor===Array?"array":t.constructor===Set?"set":"object":e}function dy(t){const[e,...i]=t.split(":");return new ly(e,i.join(":"))}function py(t,e){return e.key&&(t[e.key]=e.value),t}let fy=(()=>{class t extends Bb{constructor(t,e,i,s,o,r,a,c,u){super(t,null,e,i),this.sanitizer=s,this.ngStyleInstance=a,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new n.PC(t,o,r)),this.init();const l=this.nativeElement.getAttribute("style")||"";this.fallbackStyles=this.buildStyleMap(l),this.isServer=c&&(0,n.PM)(u)}updateWithValue(t){const e=this.buildStyleMap(t);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),e),this.isServer&&this.applyStyleToElement(e),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(t){const e=t=>this.sanitizer.sanitize(s.q3G.STYLE,t)||"";if(t)switch(hy(t)){case"string":return _y(function(t,e=";"){return String(t).trim().split(e).map(t=>t.trim()).filter(t=>""!==t)}(t),e);case"array":return _y(t,e);case"set":default:return function(t,e){let i=[];return"set"===hy(t)?t.forEach(t=>i.push(t)):Object.keys(t).forEach(e=>{i.push(`${e}:${t[e]}`)}),function(t,e){return t.map(dy).filter(t=>!!t).map(t=>(e&&(t.value=e(t.value)),t)).reduce(py,{})}(i,e)}(t,e)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(ry),s.Y36(cy),s.Y36(R),s.Y36(s.aQg),s.Y36(s.Qsj),s.Y36(n.PC,10),s.Y36(Db),s.Y36(s.Lbi))},t.\u0275dir=s.lG2({type:t,features:[s.qOj]}),t})();const gy=["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 my=(()=>{class t extends fy{constructor(){super(...arguments),this.inputs=gy}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,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:[s.qOj]}),t})();function _y(t,e){return t.map(dy).filter(t=>!!t).map(t=>(e&&(t.value=e(t.value)),t)).reduce(py,{})}let by=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Eb]]}),t})();const yy=function(t){return{color:t}};function wy(t,e){if(1&t&&(s.TgZ(0,"button",8),s.ALo(1,"translate"),s.TgZ(2,"mat-icon",4),s._uU(3," apps "),s.qZA(),s.qZA()),2&t){const t=s.oxw(),e=s.MAs(2);s.Q6J("matMenuTriggerFor",e)("matTooltip",s.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),s.xp6(2),s.Q6J("ngStyle",s.VKq(5,yy,t.iconColor))}}function Ay(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",2),s.NdJ("click",function(){return s.CHM(t),s.oxw().onLogOut()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"NAV.LOGOUT")))}let My=(()=>{class t{constructor(t,e,i,n){this.authService=t,this.authzResolverService=e,this.notificator=i,this.translateService=n}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Rl),s.Y36(K),s.Y36(Mg),s.Y36(th))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:14,vars:15,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],[1,"d-none","d-lg-inline",3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"]],template:function(t,e){if(1&t&&(s.YNc(0,wy,4,7,"button",0),s.TgZ(1,"mat-menu",null,1),s.TgZ(3,"button",2),s.NdJ("click",function(){return e.redirectToUrl()}),s.TgZ(4,"span"),s._uU(5),s.qZA(),s.qZA(),s.qZA(),s.TgZ(6,"button",3),s.TgZ(7,"mat-icon",4),s._uU(8," person "),s.qZA(),s.TgZ(9,"span",5),s._uU(10),s.qZA(),s.qZA(),s.TgZ(11,"mat-menu",null,6),s.YNc(13,Ay,3,3,"button",7),s.qZA()),2&t){const t=s.MAs(12);s.Q6J("ngIf",e.url),s.xp6(5),s.Oqu(e.label),s.xp6(1),s.Q6J("matMenuTriggerFor",t),s.xp6(1),s.Q6J("ngStyle",s.VKq(11,yy,e.iconColor)),s.xp6(2),s.Q6J("ngStyle",s.VKq(13,yy,e.textColor)),s.xp6(1),s.xDo(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," "),s.xp6(3),s.Q6J("ngIf",e.logoutEnabled)}},directives:[n.O5,Ef,kf,uh,Rf,Jf,n.PC,$p],pipes:[eh],styles:["@media (max-width:991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),t})();const vy=function(t){return{color:t}};function Ty(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",7),s.NdJ("click",function(){return s.CHM(t),s.oxw().onToggleSidenav()}),s.TgZ(1,"mat-icon"),s._uU(2,"menu"),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("ngStyle",s.VKq(1,vy,t.iconColor))}}function ky(t,e){1&t&&(s.TgZ(0,"div",8),s.TgZ(1,"span",9),s._uU(2," ~ \ud83d\uddf2\xa0 "),s.qZA(),s.TgZ(3,"span",10),s._uU(4," DEVEL "),s.qZA(),s.TgZ(5,"span",9),s._uU(6," \ud83d\uddf2 ~ "),s.qZA(),s.qZA())}const Ly=function(t){return{background:t}},Cy=function(){return[]},Sy=function(){return["/"]};let Ey=(()=>{class t{constructor(t,e,i,n){this.storeService=t,this.sanitizer=e,this.translate=i,this.otherApplicationService=n,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.sidenavToggle=new s.vpe,this.hideToggle=!1,this.disableLogo=!1,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(t=>{this.label=this.storeService.get(`header_label_${t.lang}`),this.adminLabel=this.storeService.get(`admin_gui_label_${t.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 t in this.storeService.getPerunPrincipal().roles)this.linkRoles.includes(t)&&(this.activeLink=!0);this.activeLink&&(this.adminGuiUrl=this.otherApplicationService.getUrlForOtherApplication("admin"))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Kn),s.Y36(R),s.Y36(th),s.Y36(Sg))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-header"]],inputs:{hideToggle:"hideToggle",disableLogo:"disableLogo"},outputs:{sidenavToggle:"sidenavToggle"},decls:8,vars:19,consts:[[1,"sticky-top","header-container",3,"ngStyle"],["id","nav-menu-icons"],["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"],["mat-icon-button","",3,"ngStyle","click"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(t,e){1&t&&(s.TgZ(0,"mat-toolbar",0),s.TgZ(1,"div",1),s.YNc(2,Ty,3,3,"button",2),s._UZ(3,"a",3),s.TgZ(4,"p",4),s._uU(5),s.qZA(),s.qZA(),s.YNc(6,ky,7,0,"div",5),s._UZ(7,"perun-web-apps-header-menu",6),s.qZA()),2&t&&(s.Q6J("ngStyle",s.VKq(13,Ly,e.bgColor)),s.xp6(2),s.Q6J("ngIf",!e.hideToggle),s.xp6(1),s.Q6J("innerHTML",e.logo,s.oJD)("routerLink",e.disableLogo?s.DdM(15,Cy):s.DdM(16,Sy)),s.xp6(1),s.Q6J("ngStyle",s.VKq(17,vy,e.textColor)),s.xp6(1),s.Oqu(e.label),s.xp6(1),s.Q6J("ngIf",e.isDevel),s.xp6(1),s.Q6J("url",e.adminGuiUrl)("label",e.adminLabel)("user",e.principal.user)("logoutEnabled",e.logoutEnabled)("iconColor",e.iconColor)("textColor",e.textColor))},directives:[kb,n.PC,my,n.O5,Tn,My,uh,Jf],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}"]}),t})();function zy(t){return e=>e.lift(new xy(t))}class xy{constructor(t){this.value=t}call(t,e){return e.subscribe(new Oy(t,this.value))}}class Oy extends Lt.L{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}const Ry=["*"];function Dy(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",2),s.NdJ("click",function(){return s.CHM(t),s.oxw()._onBackdropClicked()}),s.qZA()}if(2&t){const t=s.oxw();s.ekj("mat-drawer-shown",t._isShowingBackdrop())}}function Py(t,e){1&t&&(s.TgZ(0,"mat-drawer-content"),s.Hsn(1,2),s.qZA())}const Ny=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Iy=["mat-drawer","mat-drawer-content","*"];function qy(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",2),s.NdJ("click",function(){return s.CHM(t),s.oxw()._onBackdropClicked()}),s.qZA()}if(2&t){const t=s.oxw();s.ekj("mat-drawer-shown",t._isShowingBackdrop())}}function By(t,e){1&t&&(s.TgZ(0,"mat-sidenav-content",3),s.Hsn(1,2),s.qZA())}const Hy=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Yy=["mat-sidenav","mat-sidenav-content","*"],jy=".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-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",Fy={transformDrawer:Yr("transform",[Kr("open, open-instant",Ur({transform:"none",visibility:"visible"})),Kr("void",Ur({"box-shadow":"none",visibility:"hidden"})),Gr("void => open-instant",jr("0ms")),Gr("void <=> open, open-instant => void",jr("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},Wy=new s.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),Uy=new s.OlP("MAT_DRAWER_CONTAINER");let Ky=(()=>{class t extends po{constructor(t,e,i,n,s){super(i,n,s),this._changeDetectorRef=t,this._container=e}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36((0,s.Gpc)(()=>Gy)),s.Y36(s.SBq),s.Y36(ho),s.Y36(s.R0b))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&s.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[s.qOj],ngContentSelectors:Ry,decls:1,vars:0,template:function(t,e){1&t&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),t})(),Zy=(()=>{class t{constructor(t,e,i,n,o,r,a){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=i,this._platform=n,this._ngZone=o,this._doc=r,this._container=a,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new lt.xQ,this._animationEnd=new lt.xQ,this._animationState="void",this.openedChange=new s.vpe(!0),this._openedStream=this.openedChange.pipe((0,at.h)(t=>t),(0,At.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,at.h)(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),zy(void 0)),this._closedStream=this.openedChange.pipe((0,at.h)(t=>!t),(0,At.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,at.h)(t=>t.fromState!==t.toState&&"void"===t.toState),zy(void 0)),this._destroyed=new lt.xQ,this.onPositionChanged=new s.vpe,this._modeChanged=new lt.xQ,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{es(this._elementRef.nativeElement,"keydown").pipe((0,at.h)(t=>27===t.keyCode&&!this.disableClose&&!So(t)),Es(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe(_s((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{const{fromState:e,toState:i}=t;(0===i.indexOf("open")&&"void"===e||"void"===i&&0===e.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=Zn(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=Zn(t)}get opened(){return this._opened}set opened(t){this.toggle(Zn(t))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(t=>{t||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}_isFocusWithinDrawer(){var t;const e=null===(t=this._doc)||void 0===t?void 0:t.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0)}toggle(t=!this.opened,e){return this._setOpen(t,!t&&this._isFocusWithinDrawer(),e)}_setOpen(t,e,i="program"){return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=i):(this._animationState="void",e&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(t=>{this.openedChange.pipe((0,vt.q)(1)).subscribe(e=>t(e?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(t){this._animationStarted.next(t)}_animationDoneListener(t){this._animationEnd.next(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Cr),s.Y36(Pr),s.Y36(Ws),s.Y36(s.R0b),s.Y36(n.K0,8),s.Y36(Uy,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&s.WFA("@transform.start",function(t){return e._animationStartListener(t)})("@transform.done",function(t){return e._animationDoneListener(t)}),2&t&&(s.uIk("align",null),s.d8E("@transform",e._animationState),s.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.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:Ry,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.Hsn(1),s.qZA())},directives:[po],encapsulation:2,data:{animation:[Fy.transformDrawer]},changeDetection:0}),t})(),Gy=(()=>{class t{constructor(t,e,i,n,o,r=!1,a){this._dir=t,this._element=e,this._ngZone=i,this._changeDetectorRef=n,this._animationMode=a,this._drawers=new s.n_E,this.backdropClick=new s.vpe,this._destroyed=new lt.xQ,this._doCheckSubject=new lt.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new lt.xQ,t&&t.change.pipe(Es(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),o.change().pipe(Es(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=r}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=Zn(t)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(t){this._backdropOverride=null==t?null:Zn(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(kt(this._allDrawers),Es(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(kt(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,cr.b)(10),Es(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(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,e=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){const i=this._left._getWidth();t+=i,e-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)e+=this._right._getWidth();else if("push"==this._right.mode){const i=this._right._getWidth();e+=i,t-=i}t=t||null,e=e||null,t===this._contentMargins.left&&e===this._contentMargins.right||(this._contentMargins={left:t,right:e},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe((0,at.h)(t=>t.fromState!==t.toState),Es(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"!==t.mode&&t.openedChange.pipe(Es(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe(Es(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,vt.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe(Es((0,ko.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const e=this._element.nativeElement.classList,i="mat-drawer-container-has-open";t?e.add(i):e.remove(i)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?this._end=t:this._start=t}),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(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(t){return"side"!==t.mode||!!this._backdropOverride}_isDrawerOpen(t){return null!=t&&t.opened}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(so,8),s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(s.sBO),s.Y36(fo),s.Y36(Wy),s.Y36(lu,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,Ky,5),s.Suo(i,Zy,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._content=t.first),s.iGM(t=s.CRH())&&(e._allDrawers=t)}},viewQuery:function(t,e){if(1&t&&s.Gf(Ky,5),2&t){let t;s.iGM(t=s.CRH())&&(e._userContent=t.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[s._Bn([{provide:Uy,useExisting:t}])],ngContentSelectors:Iy,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(t,e){1&t&&(s.F$t(Ny),s.YNc(0,Dy,1,2,"div",0),s.Hsn(1),s.Hsn(2,1),s.YNc(3,Py,2,0,"mat-drawer-content",1)),2&t&&(s.Q6J("ngIf",e.hasBackdrop),s.xp6(3),s.Q6J("ngIf",!e._content))},directives:[n.O5,Ky],styles:[jy],encapsulation:2,changeDetection:0}),t})(),Xy=(()=>{class t extends Ky{constructor(t,e,i,n,s){super(t,e,i,n,s)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36((0,s.Gpc)(()=>$y)),s.Y36(s.SBq),s.Y36(ho),s.Y36(s.R0b))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&s.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[s.qOj],ngContentSelectors:Ry,decls:1,vars:0,template:function(t,e){1&t&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),t})(),Vy=(()=>{class t extends Zy{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=Zn(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=Gn(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=Gn(t)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(s.uIk("align",null),s.Udp("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),s.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[s.qOj],ngContentSelectors:Ry,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.Hsn(1),s.qZA())},directives:[po],encapsulation:2,data:{animation:[Fy.transformDrawer]},changeDetection:0}),t})(),$y=(()=>{class t extends Gy{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,Xy,5),s.Suo(i,Vy,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._content=t.first),s.iGM(t=s.CRH())&&(e._allDrawers=t)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[s._Bn([{provide:Uy,useExisting:t}]),s.qOj],ngContentSelectors:Yy,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(s.F$t(Hy),s.YNc(0,qy,1,2,"div",0),s.Hsn(1),s.Hsn(2,1),s.YNc(3,By,2,0,"mat-sidenav-content",1)),2&t&&(s.Q6J("ngIf",e.hasBackdrop),s.xp6(3),s.Q6J("ngIf",!e._content))},directives:[n.O5,Xy,po],styles:[jy],encapsulation:2,changeDetection:0}),t})(),Jy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,Mu,Us,go],go,Mu]}),t})(),Qy=(()=>{class t{constructor(t){this.store=t}getSideMenuItems(){const t=this.store.get("displayed_tabs"),e=[];return t.forEach(t=>{switch(t){case"profile":e.push({label:"MENU_ITEMS.PROFILE",icon:"account_box",link:"/profile",activatedRegex:"^/profile$",tabName:"profile"});break;case"identities":e.push({label:"MENU_ITEMS.IDENTITIES",icon:"remove_red_eye",link:"/profile/identities",activatedRegex:"^/profile/identities$",tabName:"identities"});break;case"services":e.push({label:"MENU_ITEMS.SERVICES",icon:"build",link:"/profile/services",activatedRegex:"^/profile/services$",tabName:"services"});break;case"groups":e.push({label:"MENU_ITEMS.GROUPS",icon:"group",link:"/profile/groups",activatedRegex:"^/profile/groups$",tabName:"groups"});break;case"vos":e.push({label:"MENU_ITEMS.VOS",icon:"account_balance",link:"/profile/organizations",activatedRegex:"^/profile/organizations$",tabName:"vos"});break;case"privacy":e.push({label:"MENU_ITEMS.PRIVACY",icon:"vpn_key",link:"/profile/privacy",activatedRegex:"^/profile/privacy$",tabName:"privacy"});break;case"settings":e.push({label:"MENU_ITEMS.SETTINGS",icon:"settings",link:"/profile/settings",activatedRegex:"^/profile/settings",tabName:"settings"})}}),this.store.get("external_services").forEach(t=>{const i={icon:"insert_link",link:t.url,activatedRegex:"^/profile/external",tabName:"external",external:!0};this.store.get("supported_languages").forEach(e=>{var n;i[`label_${e}`]=null!==(n=t[`label_${e}`])&&void 0!==n?n:t.label_en}),e.push(i)}),e}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Kn))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),tw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Mu],Mu]}),t})();const ew=["*"],iw='.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.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:transparent;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{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:transparent;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{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 button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}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-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.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}}\n',nw=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],sw=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"];class ow{}const rw=vu(ku(ow));class aw{}const cw=ku(aw),uw=new s.OlP("MatList"),lw=new s.OlP("MatNavList");let hw=(()=>{class t extends rw{constructor(){super(...arguments),this._stateChanges=new lt.xQ}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[s._Bn([{provide:lw,useExisting:t}]),s.qOj,s.TTD],ngContentSelectors:ew,decls:1,vars:0,template:function(t,e){1&t&&(s.F$t(),s.Hsn(0))},styles:[iw],encapsulation:2,changeDetection:0}),t})(),dw=(()=>{class t extends rw{constructor(t){super(),this._elementRef=t,this._stateChanges=new lt.xQ,"action-list"===this._getListType()&&t.nativeElement.classList.add("mat-action-list")}_getListType(){const t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[s._Bn([{provide:uw,useExisting:t}]),s.qOj,s.TTD],ngContentSelectors:ew,decls:1,vars:0,template:function(t,e){1&t&&(s.F$t(),s.Hsn(0))},styles:[iw],encapsulation:2,changeDetection:0}),t})(),pw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),fw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),gw=(()=>{class t extends cw{constructor(t,e,i,n){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new lt.xQ,this._disabled=!1,this._isInteractiveList=!!(i||n&&"action-list"===n._getListType()),this._list=i||n;const s=this._getHostElement();"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(Es(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=Zn(t)}ngAfterContentInit(){!function(t,e,i="mat"){t.changes.pipe(kt(t)).subscribe(({length:t})=>{Yu(e,`${i}-2-line`,!1),Yu(e,`${i}-3-line`,!1),Yu(e,`${i}-multi-line`,!1),2===t||3===t?Yu(e,`${i}-${t}-line`,!0):t>3&&Yu(e,`${i}-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 t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(lw,8),s.Y36(uw,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,pw,5),s.Suo(i,fw,5),s.Suo(i,Hu,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._avatar=t.first),s.iGM(t=s.CRH())&&(e._icon=t.first),s.iGM(t=s.CRH())&&(e._lines=t)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&s.ekj("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[s.qOj],ngContentSelectors:sw,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(t,e){1&t&&(s.F$t(nw),s.TgZ(0,"div",0),s._UZ(1,"div",1),s.Hsn(2),s.TgZ(3,"div",2),s.Hsn(4,1),s.qZA(),s.Hsn(5,2),s.qZA()),2&t&&(s.xp6(1),s.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[Vu],encapsulation:2,changeDetection:0}),t})(),mw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[ju,$u,Mu,Qu,n.ez],ju,Mu,Qu,tw]}),t})(),_w=(()=>{class t{transform(t,e,i){return t[`${i}_${e}`]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"localisedText",type:t,pure:!0}),t})();const bw=function(t){return{color:t}};function yw(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-list-item",2),s.NdJ("click",function(){const e=s.CHM(t).$implicit,i=s.oxw();return e.external?i.goToURL(e.link):i.shouldHideMenu()}),s.TgZ(1,"mat-icon",3),s._uU(2),s.qZA(),s.TgZ(3,"span",4),s._uU(4),s.ALo(5,"localisedText"),s.ALo(6,"translate"),s.ALo(7,"customTranslate"),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.ekj("activated",i.isActive(t.activatedRegex)),s.s9C("routerLink",t.external?null:t.link),s.Q6J("ngStyle",s.VKq(17,bw,i.textColor))("matRippleColor","rgba(255, 255, 255, 0.1)"),s.xp6(1),s.Q6J("ngStyle",s.VKq(19,bw,i.iconColor)),s.xp6(1),s.Oqu(t.icon),s.xp6(2),s.Oqu(t.external?s.Dn7(5,8,t,i.lang,"label"):s.lcZ(6,12,s.xi3(7,14,t.label,i.lang)))}}let ww=(()=>{class t{constructor(t,e,i,n){this.sideMenuItemService=t,this.storeService=e,this.router=i,this.translateService=n,this.items=[],this.lang="en",this.textColor=this.storeService.get("theme","sidemenu_text_color"),this.iconColor=this.storeService.get("theme","sidemenu_item_icon_color"),this.currentUrl=i.url,i.events.subscribe(t=>{t instanceof Xt&&(this.currentUrl=t.url)})}ngOnInit(){this.translateService.onLangChange.subscribe(t=>{const{lang:e}=t;this.lang=e});const t=this.storeService.get("displayed_tabs");this.items=this.sideMenuItemService.getSideMenuItems(),this.items=this.items.filter(e=>t.includes(e.tabName))}isActive(t){return new RegExp(t).test(this.currentUrl)}shouldHideMenu(){"over"===this.sideNav.mode&&this.sideNav.close()}goToURL(t){window.open(t,"_blank")}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Qy),s.Y36(Kn),s.Y36(Mn),s.Y36(th))},t.\u0275cmp=s.Xpm({type:t,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"],[3,"ngStyle"],[1,"nav-caption","ml-3"]],template:function(t,e){1&t&&(s.TgZ(0,"mat-nav-list",0),s.YNc(1,yw,8,21,"mat-list-item",1),s.qZA()),2&t&&(s.xp6(1),s.Q6J("ngForOf",e.items))},directives:[hw,n.sg,gw,Vu,n.PC,my,vn,Jf],pipes:[_w,eh,Og],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}"]}),t})();function Aw(t,e){if(1&t&&(s.TgZ(0,"span",1),s.TgZ(1,"a",2),s._uU(2),s.qZA(),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Q6J("routerLink",t.routerLink),s.xp6(1),s.Oqu(t.label)}}let Mw=(()=>{class t{constructor(t,e,i){this.router=t,this.activatedRoute=e,this.translate=i,this.home={label:"Home",routerLink:"profile"},this.menuItems=[]}ngOnInit(){this.router.events.pipe((0,at.h)(t=>t instanceof Xt)).subscribe(()=>{this.menuItems=[],this.createBreadcrumbs(this.activatedRoute.root)})}createBreadcrumbs(e,i=""){const n=e.children;0!==n.length&&"service-access"!==n[0].snapshot.routeConfig.path&&n.forEach(e=>{const n=e.snapshot.url.map(t=>t.path).join("/");""!==n&&(i+=`/${n}`);const s=this.translate.instant(e.snapshot.data[t.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:i}),this.createBreadcrumbs(e,i)})}}return t.ROUTE_DATA_BREADCRUMB="breadcrumb",t.\u0275fac=function(e){return new(e||t)(s.Y36(Mn),s.Y36(Qe),s.Y36(th))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&s.YNc(0,Aw,3,2,"span",0),2&t&&s.Q6J("ngForOf",e.menuItems)},directives:[n.sg,Tn],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}']}),t})();function vw(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let Tw=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.translate=e,this.notificator=i,this.rtMessages=n,this.storeService=s,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(t=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+t.ticketNumber)),this.dialogRef.close()})}getFullEmailBody(){return this.message+"\n ------------------------\n Perun instance: "+this.instanceName+"\n Sended from new Perun Gui, version: "+i(306).i8}close(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(th),s.Y36(Mg),s.Y36(X),s.Y36(Kn))},t.\u0275cmp=s.Xpm({type:t,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(t,e){if(1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s.TgZ(4,"mat-form-field"),s.TgZ(5,"mat-label"),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.TgZ(8,"input",2,3),s.NdJ("ngModelChange",function(t){return e.subject=t}),s.qZA(),s.YNc(10,vw,3,3,"mat-error",4),s.qZA(),s.TgZ(11,"mat-form-field"),s.TgZ(12,"mat-label"),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.TgZ(15,"textarea",5),s.NdJ("ngModelChange",function(t){return e.message=t}),s.ALo(16,"translate"),s._uU(17," "),s.qZA(),s.TgZ(18,"mat-hint"),s._uU(19),s.ALo(20,"translate"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(21,"div",6),s.TgZ(22,"div",7),s.TgZ(23,"button",8),s.NdJ("click",function(){return e.close()}),s._uU(24),s.ALo(25,"translate"),s.qZA(),s.TgZ(26,"button",9),s.NdJ("click",function(){return e.sendBugReport()}),s._uU(27),s.ALo(28,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.MAs(9);s.xp6(1),s.Oqu(s.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),s.xp6(5),s.Oqu(s.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),s.xp6(2),s.Q6J("ngModel",e.subject),s.xp6(2),s.Q6J("ngIf",t.invalid),s.xp6(3),s.Oqu(s.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),s.xp6(2),s.s9C("placeholder",s.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),s.Q6J("ngModel",e.message),s.xp6(4),s.Oqu(s.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),s.xp6(5),s.hij(" ",s.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),s.xp6(2),s.Q6J("disabled",t.invalid),s.xp6(1),s.hij(" ",s.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[Sl,El,Kh,Nh,Wg,Qh,hp,Td,Jd,n.O5,Ph,zl,uh,zh],pipes:[eh],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})(),kw=(()=>{class t{transform(t,e){return t["link_"+e]||t.link_en}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"localisedLink",type:t,pure:!0}),t})(),Lw=(()=>{class t{transform(t){return t.includes("/")?t:"/assets/config/"+t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"footerLogoPath",type:t,pure:!0}),t})();function Cw(t,e){if(1&t&&(s.TgZ(0,"a",13),s.ALo(1,"localisedLink"),s._UZ(2,"img",14),s.ALo(3,"footerLogoPath"),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Q6J("href",s.xi3(1,2,t,e.language),s.LSH),s.xp6(2),s.s9C("src",s.lcZ(3,5,t.logo),s.LSH)}}function Sw(t,e){if(1&t&&(s.TgZ(0,"span"),s._UZ(1,"img",14),s.ALo(2,"footerLogoPath"),s.qZA()),2&t){const t=s.oxw().$implicit;s.xp6(1),s.s9C("src",s.lcZ(2,1,t.logo),s.LSH)}}function Ew(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,Cw,4,7,"a",11),s.ALo(2,"localisedLink"),s.YNc(3,Sw,3,3,"span",12),s.ALo(4,"localisedLink"),s.qZA()),2&t){const t=e.$implicit,i=s.oxw(3);s.xp6(1),s.Q6J("ngIf",s.xi3(2,2,t,i.language)),s.xp6(2),s.Q6J("ngIf",!s.xi3(4,5,t,i.language))}}const zw=function(t){return{"min-height":t}};function xw(t,e){if(1&t&&(s.TgZ(0,"div",10),s.YNc(1,Ew,5,8,"div",5),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw();s.Q6J("ngStyle",s.VKq(2,zw,e.columnContentHeight+"px")),s.xp6(1),s.Q6J("ngForOf",t.elements)}}const Ow=function(t){return{color:t}};function Rw(t,e){if(1&t&&(s.TgZ(0,"i",20),s._uU(1),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Q6J("ngStyle",s.VKq(2,Ow,e.linksTextColor)),s.xp6(1),s.hij(" ",t.icon," ")}}function Dw(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"span",21),s.NdJ("click",function(){s.CHM(t);const e=s.oxw().$implicit;return s.oxw(3).openDialog(e.dialog)}),s._uU(1),s.ALo(2,"localisedText"),s.qZA()}if(2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Q6J("ngStyle",s.VKq(6,Ow,e.linksTextColor)),s.xp6(1),s.hij("",s.Dn7(2,2,t,e.language,"label")," ")}}function Pw(t,e){if(1&t&&(s.TgZ(0,"a",22),s.ALo(1,"localisedLink"),s._uU(2),s.ALo(3,"localisedText"),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Q6J("href",s.xi3(1,3,t,e.language),s.LSH)("ngStyle",s.VKq(10,Ow,e.linksTextColor)),s.xp6(2),s.Oqu(s.Dn7(3,6,t,e.language,"label"))}}function Nw(t,e){if(1&t&&(s.TgZ(0,"span",10),s._uU(1),s.ALo(2,"localisedText"),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Q6J("ngStyle",s.VKq(6,Ow,e.linksTextColor)),s.xp6(1),s.Oqu(s.Dn7(2,2,t,e.language,"label"))}}function Iw(t,e){if(1&t&&(s.TgZ(0,"div",16),s.YNc(1,Rw,2,4,"i",17),s.YNc(2,Dw,3,8,"span",18),s.YNc(3,Pw,4,12,"a",19),s.ALo(4,"localisedLink"),s.YNc(5,Nw,3,8,"span",9),s.ALo(6,"localisedLink"),s.qZA()),2&t){const t=e.$implicit,i=s.oxw(3);s.xp6(1),s.Q6J("ngIf",t.icon),s.xp6(1),s.Q6J("ngIf",t.dialog),s.xp6(1),s.Q6J("ngIf",s.xi3(4,4,t,i.language)&&!t.dialog),s.xp6(2),s.Q6J("ngIf",!s.xi3(6,7,t,i.language)&&!t.dialog)}}const qw=function(t){return{height:t}};function Bw(t,e){if(1&t&&(s.TgZ(0,"div",10),s.YNc(1,Iw,7,10,"div",15),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw();s.Q6J("ngStyle",s.VKq(2,qw,e.columnContentHeight+"px")),s.xp6(1),s.Q6J("ngForOf",t.elements)}}function Hw(t,e){if(1&t&&(s.TgZ(0,"div",7),s.TgZ(1,"h6",8),s._uU(2),s.ALo(3,"localisedText"),s.qZA(),s.YNc(4,xw,2,4,"div",9),s.YNc(5,Bw,2,4,"div",9),s.qZA()),2&t){const t=e.$implicit,i=s.oxw();s.ekj("my-auto",i.containsLogos),s.xp6(1),s.Q6J("ngStyle",s.VKq(10,Ow,i.headersTextColor)),s.xp6(1),s.hij(" ",s.Dn7(3,6,t,i.language,"title")," "),s.xp6(2),s.Q6J("ngIf",t.logos),s.xp6(1),s.Q6J("ngIf",t.elements&&!t.logos)}}function Yw(t,e){if(1&t&&(s.TgZ(0,"span"),s.TgZ(1,"a",6),s._uU(2),s.qZA(),s.qZA()),2&t){const t=e.$implicit,i=e.index,n=s.oxw();s.xp6(1),s.Q6J("href",t.url,s.LSH)("ngStyle",s.VKq(3,Ow,n.copyrightTextColor)),s.xp6(1),s.Oqu(i?", "+t.name:t.name)}}const jw=function(t){return{background:t}};let Fw=(()=>{class t{constructor(t,e,i){this.storeService=t,this.translateService=e,this.dialog=i,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.items=[],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(t=>{this.language=t.lang}),this.version=i(306).i8,this.items=this.storeService.get("footer","columns");for(const t of this.items)t.logos?this.containsLogos=!0:25*t.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*t.elements.length);this.copyrightItems=this.storeService.get("footer","copyright_items")}openDialog(t){const e=ng();switch(t){case"reportIssue":e.width="550px",this.dialog.open(Tw,e)}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Kn),s.Y36(th),s.Y36(Ll))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"footer",0),s.TgZ(1,"div",1),s.YNc(2,Hw,6,12,"div",2),s.qZA(),s._UZ(3,"hr",3),s.TgZ(4,"div",4),s._uU(5),s.YNc(6,Yw,3,5,"span",5),s._uU(7," Version "),s.TgZ(8,"a",6),s._uU(9),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Q6J("ngStyle",s.VKq(8,jw,e.bgColor)),s.xp6(2),s.Q6J("ngForOf",e.items),s.xp6(2),s.Q6J("ngStyle",s.VKq(10,Ow,e.copyrightTextColor)),s.xp6(1),s.hij(" \xa9 ",e.currentYear," Copyright: "),s.xp6(1),s.Q6J("ngForOf",e.copyrightItems),s.xp6(2),s.Q6J("href",e.githubRepository,s.LSH)("ngStyle",s.VKq(12,Ow,e.copyrightTextColor)),s.xp6(1),s.Oqu(e.version))},directives:[n.PC,n.sg,n.O5],pipes:[_w,kw,Lw],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}"]}),t})();function Ww(t,e){if(1&t&&(s.TgZ(0,"div",8),s._UZ(1,"div",9),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("innerHTML",t.logo,s.oJD)}}function Uw(t,e){if(1&t&&(s.TgZ(0,"div",10),s._UZ(1,"div",11),s._UZ(2,"mat-icon",12),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("innerHTML",t.logo,s.oJD)}}function Kw(t,e){if(1&t&&(s.TgZ(0,"div",8),s._UZ(1,"a",9),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("innerHTML",t.logo,s.oJD)}}const Zw=function(t){return{color:t}};function Gw(t,e){if(1&t&&(s.TgZ(0,"p",13),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.Q6J("ngStyle",s.VKq(2,Zw,t.textColor)),s.xp6(1),s.hij(" ",t.headerTitle," ")}}const Xw=function(t,e){return{background:t,color:e}},Vw=function(t,e){return{"min-height":t,"background-color":e}};let $w=(()=>{class t{constructor(t,e,i,n){this.storeService=t,this.sanitizer=e,this.preferredLangService=i,this.translateService=n,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 t=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(t)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Kn),s.Y36(R),s.Y36(Cg),s.Y36(th))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:11,vars:12,consts:[["id","login-nav",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["style"," display: flex; flex-direction: 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"],[2,"display","flex","flex-direction","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(t,e){1&t&&(s.TgZ(0,"div",0),s.YNc(1,Ww,2,1,"div",1),s.YNc(2,Uw,3,1,"div",2),s.YNc(3,Kw,2,1,"div",1),s.YNc(4,Gw,2,4,"p",3),s.qZA(),s.TgZ(5,"div",4),s.TgZ(6,"div",5),s.TgZ(7,"div",6),s._UZ(8,"router-outlet"),s.qZA(),s.TgZ(9,"div",7),s._UZ(10,"perun-web-apps-footer"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Q6J("ngStyle",s.WLB(6,Xw,e.headerBackgroundColor,e.headerTextColor)),s.xp6(1),s.Q6J("ngIf","admin-gui"===e.application),s.xp6(1),s.Q6J("ngIf","publications"===e.application),s.xp6(1),s.Q6J("ngIf","user-profile"===e.application),s.xp6(1),s.Q6J("ngIf",!!e.headerTitle),s.xp6(2),s.Q6J("ngStyle",s.WLB(9,Vw,e.getContentInnerMinHeight(),e.contentBackgroundColor)))},directives:[n.PC,n.O5,Ln,Fw,Jf],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}"]}),t})();const Jw=["footer"],Qw=function(t){return{background:t}},tA=function(t){return{"min-height":t}};function eA(t,e){if(1&t){const t=s.EpF();s._UZ(0,"perun-web-apps-notificator"),s.TgZ(1,"div",2),s.TgZ(2,"perun-web-apps-header",3),s.NdJ("sidenavToggle",function(){return s.CHM(t),s.MAs(5).toggle()}),s.qZA(),s.TgZ(3,"mat-sidenav-container"),s.TgZ(4,"mat-sidenav",4,5),s._UZ(6,"perun-web-apps-side-menu",6),s.qZA(),s.TgZ(7,"mat-sidenav-content",7),s.TgZ(8,"div",8),s._UZ(9,"perun-web-apps-breadcrumbs"),s._UZ(10,"router-outlet"),s.qZA(),s.TgZ(11,"div",null,9),s._UZ(13,"perun-web-apps-footer"),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.MAs(5),e=s.oxw();s.xp6(4),s.Q6J("mode",e.sidebarMode)("ngStyle",s.VKq(6,Qw,e.sideMenuBgColor))("opened",!e.isMobile()),s.xp6(2),s.Q6J("sideNav",t),s.xp6(1),s.Q6J("ngStyle",s.VKq(8,Qw,e.contentBackgroundColor)),s.xp6(1),s.Q6J("ngStyle",s.VKq(10,tA,e.contentHeight))}}function iA(t,e){if(1&t&&s._UZ(0,"perun-web-apps-login-screen-base",10),2&t){const t=s.oxw();s.Q6J("application","user-profile")("headerTitle",t.headerLabel)}}let nA=(()=>{class t{constructor(t,e,i,n,s,o){this.store=t,this.attributesManagerService=e,this.translateService=i,this.initAuth=n,this.changeDetector=s,this.preferredLangService=o,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()}ngOnInit(){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(t=>{const e=t.find(t=>"preferredLanguage"===t.friendlyName),i=e&&e.value?e.value.toString():null,n=this.preferredLangService.getPreferredLanguage(i);this.translateService.use(n)})}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side"}isMobile(){return window.innerWidth<=t.minWidth}isServiceLogin(){return!!sessionStorage.getItem("baLogout")}ngAfterViewInit(){this.contentHeight="calc(100vh - 84px - "+this.footer.nativeElement.offsetHeight+"px)",this.changeDetector.detectChanges()}}return t.minWidth=992,t.\u0275fac=function(e){return new(e||t)(s.Y36(Kn),s.Y36(U),s.Y36(th),s.Y36(bg),s.Y36(s.sBO),s.Y36(Cg))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-root"]],viewQuery:function(t,e){if(1&t&&s.Gf(Jw,5),2&t){let t;s.iGM(t=s.CRH())&&(e.footer=t.first)}},hostBindings:function(t,e){1&t&&s.NdJ("resize",function(t){return e.getScreenSize(t)},!1,s.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(t,e){1&t&&(s.YNc(0,eA,14,12,"ng-template",0),s.YNc(1,iA,1,2,"perun-web-apps-login-screen-base",1)),2&t&&(s.Q6J("ngIf",!e.isLoginScreenShown&&!e.isServiceAccess&&!e.isServiceLogin()),s.xp6(1),s.Q6J("ngIf",e.isLoginScreenShown||e.isServiceAccess||e.isServiceLogin()))},directives:[n.O5,yb,Ey,$y,Vy,n.PC,my,ww,Xy,Mw,Ln,Fw,$w],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}"]}),t})();var sA=i(9355);function oA(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",15),s.NdJ("click",function(){s.CHM(t);const e=s.oxw().index;return s.oxw().removeValue(e)}),s.TgZ(1,"mat-icon"),s._uU(2," indeterminate_check_box "),s.qZA(),s.qZA()}}function rA(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",9),s.TgZ(1,"mat-form-field",10),s._UZ(2,"label",11),s.TgZ(3,"input",12),s.NdJ("click",function(){const e=s.CHM(t).index,i=s.oxw();return i.readonly&&i.attribute.displayName&&i.showValue(i.keys[e],i.attribute.displayName)})("ngModelChange",function(e){const i=s.CHM(t).index;return s.oxw().keys[i]=e}),s.qZA(),s.qZA(),s.TgZ(4,"mat-form-field",10),s._UZ(5,"label",11),s.TgZ(6,"input",13),s.NdJ("click",function(){const e=s.CHM(t).$implicit,i=s.oxw();return i.readonly&&void 0!==i.attribute.displayName&&i.showValue(e,i.attribute.displayName)})("ngModelChange",function(e){const i=s.CHM(t).index;return s.oxw().values[i]=e}),s.qZA(),s.qZA(),s.YNc(7,oA,3,0,"button",14),s.qZA()}if(2&t){const t=e.index,i=s.oxw();s.xp6(1),s.s9C("appearance",i.readonly?"none":"standard"),s.xp6(1),s.hYB("for","",i.attribute.id,"-key-",t,""),s.xp6(1),s.ekj("cursor-pointer",i.readonly&&void 0!==i.attribute.displayName),s.hYB("id","",i.attribute.id,"-key-",t,""),s.MGl("name","key-",t,""),s.Q6J("ngModel",i.keys[t])("readonly",i.readonly),s.xp6(1),s.s9C("appearance",i.readonly?"none":"standard"),s.xp6(1),s.hYB("for","",i.attribute.id,"-value-",t,""),s.xp6(1),s.ekj("cursor-pointer",i.readonly&&void 0!==i.attribute.displayName),s.MGl("name","value-",t,""),s.hYB("id","",i.attribute.id,"-value-",t,""),s.Q6J("readonly",i.readonly)("ngModel",i.values[t]),s.xp6(1),s.Q6J("ngIf",!i.readonly)}}function aA(t,e){1&t&&(s.TgZ(0,"mat-icon"),s._uU(1,"more_horiz"),s.qZA())}function cA(t,e){1&t&&(s.TgZ(0,"mat-icon"),s._uU(1,"keyboard_arrow_up"),s.qZA())}function uA(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",16),s.NdJ("click",function(){return s.CHM(t),s.oxw().onShowChange()}),s.YNc(1,aA,2,0,"mat-icon",17),s.YNc(2,cA,2,0,"mat-icon",17),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngIf",!t.showMore),s.xp6(1),s.Q6J("ngIf",t.showMore)}}function lA(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",18),s.NdJ("click",function(){return s.CHM(t),s.oxw().addValue()}),s.TgZ(1,"mat-icon"),s._uU(2," add_box "),s.qZA(),s.qZA()}}let hA=(()=>{class t{constructor(t){this.dialog=t,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}ngOnInit(){if(this.attribute.value){const t=this.attribute.value;for(const[e,i]of Object.entries(t))this.keys.push(e),this.values.push(i)}this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=sg(this.attribute))}customTrackBy(t){return t}addValue(){this.keys.push(""),this.values.push(""),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}removeValue(t){this.keys.splice(t,1),this.values.splice(t,1)}updateAttribute(){const t={};for(let e=0;ee.defaultItemsShown),s.xp6(1),s.Q6J("ngIf",!e.readonly))},directives:[Qd,kd,Xd,n.sg,$p,n.O5,Kh,Wg,Qh,hp,Td,Jd,uh,Jf],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}"]}),t})();const dA=["input"],pA=function(t){return{enterDuration:t}},fA=["*"],gA=new s.OlP("mat-checkbox-default-options",{providedIn:"root",factory:mA});function mA(){return{color:"accent",clickAction:"check-indeterminate"}}let _A=0;const bA=mA(),yA={provide:Vh,useExisting:(0,s.Gpc)(()=>vA),multi:!0};class wA{}class AA{constructor(t){this._elementRef=t}}const MA=Lu(Tu(ku(vu(AA))));let vA=(()=>{class t extends MA{constructor(t,e,i,n,o,r,a){super(t),this._changeDetectorRef=e,this._focusMonitor=i,this._ngZone=n,this._animationMode=r,this._options=a,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++_A,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new s.vpe,this.indeterminateChange=new s.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||bA,this.color=this.defaultColor=this._options.color||bA.color,this.tabIndex=parseInt(o)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(t){this._required=Zn(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=Zn(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=Zn(t),e&&(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(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,i=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{i.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new wA;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(t){var e;const i=null===(e=this._options)||void 0===e?void 0:e.clickAction;t.stopPropagation(),this.disabled||"noop"===i?this.disabled||"noop"!==i||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t,e){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let i="";switch(t){case 0:if(1===e)i="unchecked-checked";else{if(3!=e)return"";i="unchecked-indeterminate"}break;case 2:i=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===e?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${i}`}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(Pr),s.Y36(s.R0b),s.$8M("tabindex"),s.Y36(lu,8),s.Y36(gA,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){if(1&t&&(s.Gf(dA,5),s.Gf(Vu,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._inputElement=t.first),s.iGM(t=s.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Ikx("id",e.id),s.uIk("tabindex",null),s.ekj("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[s._Bn([yA]),s.qOj],ngContentSelectors:fA,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",0,"xml","space","preserve",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(t,e){if(1&t&&(s.F$t(),s.TgZ(0,"label",0,1),s.TgZ(2,"span",2),s.TgZ(3,"input",3,4),s.NdJ("change",function(t){return e._onInteractionEvent(t)})("click",function(t){return e._onInputClick(t)}),s.qZA(),s.TgZ(5,"span",5),s._UZ(6,"span",6),s.qZA(),s._UZ(7,"span",7),s.TgZ(8,"span",8),s.O4$(),s.TgZ(9,"svg",9),s._UZ(10,"path",10),s.qZA(),s.kcU(),s._UZ(11,"span",11),s.qZA(),s.qZA(),s.TgZ(12,"span",12,13),s.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),s.TgZ(14,"span",14),s._uU(15,"\xa0"),s.qZA(),s.Hsn(16),s.qZA(),s.qZA()),2&t){const t=s.MAs(1),i=s.MAs(13);s.uIk("for",e.inputId),s.xp6(2),s.ekj("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),s.xp6(1),s.Q6J("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),s.uIk("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),s.xp6(2),s.Q6J("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",s.VKq(19,pA,"NoopAnimations"===e._animationMode?0:150))}},directives:[Vu,hr],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:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-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;-moz-user-select:auto;-ms-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:transparent;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:transparent}.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%}\n"],encapsulation:2,changeDetection:0}),t})(),TA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),kA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[$u,Mu,dr,TA],Mu,TA]}),t})();function LA(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-checkbox",2),s.NdJ("change",function(){return s.CHM(t),s.oxw()._sendEventToParent()})("ngModelChange",function(e){return s.CHM(t),s.oxw().attribute.value=e}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("ngModel",t.attribute.value)}}function CA(t,e){if(1&t&&(s.TgZ(0,"mat-label"),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Oqu(t.attribute.value)}}let SA=(()=>{class t{constructor(){this.readonly=!1,this.sendEventToParent=new s.vpe}ngOnInit(){this.readonly||(this.readonly=sg(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div"),s.YNc(1,LA,1,1,"mat-checkbox",0),s.YNc(2,CA,2,1,"mat-label",1),s.qZA()),2&t&&(s.xp6(1),s.Q6J("ngIf",!e.readonly),s.xp6(1),s.Q6J("ngIf",e.readonly))},directives:[n.O5,vA,Td,Jd,Nh],styles:[""]}),t})();function EA(t){const{subscriber:e,counter:i,period:n}=t;e.next(i),this.schedule({subscriber:e,counter:i+1,period:n},n)}function zA(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function xA(t,e){const i=e?"":"none";zA(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:i,msUserSelect:i,webkitUserSelect:i,MozUserSelect:i})}function OA(t,e){const i=t.style;i.position=e?"":"fixed",i.top=i.opacity=e?"":"0",i.left=e?"":"-999em"}function RA(t,e){return e?t+" "+e:t}function DA(t){const e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function PA(t,e){return t.getPropertyValue(e).split(",").map(t=>t.trim())}function NA(t){const e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function IA(t,e,i){const{top:n,bottom:s,left:o,right:r}=t;return i>=n&&i<=s&&e>=o&&e<=r}function qA(t,e,i){t.top+=e,t.bottom=t.top+t.height,t.left+=i,t.right=t.left+t.width}function BA(t,e,i,n){const{top:s,right:o,bottom:r,left:a,width:c,height:u}=t,l=c*e,h=u*e;return n>s-h&&na-l&&i{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:NA(t)})})}handleScroll(t){const e=t.target,i=this.positions.get(e);if(!i)return null;const n=e===this._document?e.documentElement:e,s=i.scrollPosition;let o,r;if(e===this._document){const t=this._viewportRuler.getViewportScrollPosition();o=t.top,r=t.left}else o=e.scrollTop,r=e.scrollLeft;const a=s.top-o,c=s.left-r;return this.positions.forEach((t,i)=>{t.clientRect&&e!==i&&n.contains(i)&&qA(t.clientRect,a,c)}),s.top=o,s.left=r,{top:a,left:c}}}function YA(t){const e=t.cloneNode(!0),i=e.querySelectorAll("[id]"),n=t.nodeName.toLowerCase();e.removeAttribute("id");for(let s=0;s{if(this.beforeStarted.next(),this._handles.length){const e=this._handles.find(e=>{const i=t.target;return!!i&&(i===e||e.contains(i))});!e||this._disabledHandles.has(e)||this.disabled||this._initializeDragSequence(e,t)}else this.disabled||this._initializeDragSequence(this._rootElement,t)},this._pointerMove=t=>{const e=this._getPointerPositionOnPage(t);if(!this._hasStartedDragging){if(Math.abs(e.x-this._pickupPositionOnPage.x)+Math.abs(e.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const e=Date.now()>=this._dragStartTime+this._getDragStartDelay(t),i=this._dropContainer;if(!e)return void this._endDragSequence(t);i&&(i.isDragging()||i.isReceiving())||(t.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(t)))}return}this._boundaryElement&&(this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect())),t.preventDefault();const i=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._lastKnownPointerPosition=e,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,e);else{const t=this._activeTransform;t.x=i.x-this._pickupPositionOnPage.x+this._passiveTransform.x,t.y=i.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(t.x,t.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform",`translate(${t.x} ${t.y})`)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:t,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})},this._pointerUp=t=>{this._endDragSequence(t)},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new HA(i,s),o.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=Zn(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>xA(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(t=>Jn(t)),this._handles.forEach(t=>xA(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(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=Jn(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,ZA),e.addEventListener("touchstart",this._pointerDown,KA)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?Jn(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&$A(this._rootElement),$A(this._anchor),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(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),xA(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),xA(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&$A(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&$A(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){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}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){JA(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,i=t.parentNode,n=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),o=this._getShadowRoot();i.insertBefore(s,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),OA(t,!1),this._document.body.appendChild(i.replaceChild(n,t)),this._getPreviewInsertionPoint(i,o).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),n=JA(e),s=!n&&0!==e.button,o=this._rootElement,r=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),i||s||r)return;this._handles.length&&(this._rootElementTapHighlight=o.style.webkitTapHighlightColor||"",o.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{this._updateOnScroll(t)}),this._boundaryElement&&(this._boundaryRect=NA(this._boundaryElement));const a=this._previewTemplate;this._pickupPositionInElement=a&&a.template&&!a.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);const c=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){OA(this._rootElement,!0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),n=this._getPointerPositionOnPage(t),s=this._getDragDistance(n),o=e._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:s,dropPoint:n}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:o,distance:s,dropPoint:n}),e.drop(this,i,this._initialIndex,this._initialContainer,o,s,n),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:i,y:n}){let s=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=s,this._dropContainer.enter(this,t,e,s===this._initialContainer&&s.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:s,currentIndex:s.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,n),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let n;if(i&&t){const e=t.matchSize?this._rootElement.getBoundingClientRect():null,s=t.viewContainer.createEmbeddedView(i,t.context);s.detectChanges(),n=QA(s,this._document),this._previewRef=s,t.matchSize?tM(n,e):n.style.transform=XA(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const t=this._rootElement;n=YA(t),tM(n,t.getBoundingClientRect()),this._initialTransform&&(n.style.transform=this._initialTransform)}return zA(n.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:`${this._config.zIndex||1e3}`}),xA(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(t=>n.classList.add(t)):n.classList.add(e)),n}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);const e=function(t){const e=getComputedStyle(t),i=PA(e,"transition-property"),n=i.find(t=>"transform"===t||"all"===t);if(!n)return 0;const s=i.indexOf(n),o=PA(e,"transition-duration"),r=PA(e,"transition-delay");return DA(o[s])+DA(r[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const i=e=>{(!e||e.target===this._preview&&"transform"===e.propertyName)&&(this._preview.removeEventListener("transitionend",i),t(),clearTimeout(n))},n=setTimeout(i,1.5*e);this._preview.addEventListener("transitionend",i)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=QA(this._placeholderRef,this._document)):i=YA(this._rootElement),i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e){const i=this._rootElement.getBoundingClientRect(),n=t===this._rootElement?null:t,s=n?n.getBoundingClientRect():i,o=JA(e)?e.targetTouches[0]:e,r=this._getViewportScrollPosition();return{x:s.left-i.left+(o.pageX-s.left-r.left),y:s.top-i.top+(o.pageY-s.top-r.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),i=JA(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,n=i.pageX-e.left,s=i.pageY-e.top;if(this._ownerSVGElement){const t=this._ownerSVGElement.getScreenCTM();if(t){const e=this._ownerSVGElement.createSVGPoint();return e.x=n,e.y=s,e.matrixTransform(t.inverse())}}return{x:n,y:s}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:n}=this.constrainPosition?this.constrainPosition(t,this):t;if("x"===this.lockAxis||"x"===e?n=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==e||(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:t,y:e}=this._pickupPositionInElement,s=this._boundaryRect,o=this._previewRect,r=s.top+e,a=s.bottom-(o.height-e);i=VA(i,s.left+t,s.right-(o.width-t)),n=VA(n,r,a)}return{x:i,y:n}}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,n=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,o=Math.abs(e-s.x),r=Math.abs(i-s.y);return o>this._config.pointerDirectionChangeThreshold&&(n.x=e>s.x?1:-1,s.x=e),r>this._config.pointerDirectionChangeThreshold&&(n.y=i>s.y?1:-1,s.y=i),n}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,xA(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,ZA),t.removeEventListener("touchstart",this._pointerDown,KA)}_applyRootElementTransform(t,e){const i=XA(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=RA(i,this._initialTransform)}_applyPreviewTransform(t,e){var i;const n=(null===(i=this._previewTemplate)||void 0===i?void 0:i.template)?void 0:this._initialTransform,s=XA(t,e);this._preview.style.transform=RA(s,n)}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._boundaryElement.getBoundingClientRect(),n=this._rootElement.getBoundingClientRect();if(0===i.width&&0===i.height||0===n.width&&0===n.height)return;const s=i.left-n.left,o=n.right-i.right,r=i.top-n.top,a=n.bottom-i.bottom;i.width>n.width?(s>0&&(t+=s),o>0&&(t-=o)):t=0,i.height>n.height?(r>0&&(e+=r),a>0&&(e-=a)):e=0,t===this._passiveTransform.x&&e===this._passiveTransform.y||this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:JA(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const i=t.target;this._boundaryRect&&(i===this._document||i!==this._boundaryElement&&i.contains(this._boundaryElement))&&qA(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(){const t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=eo(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){const i=this._previewContainer||"global";if("parent"===i)return t;if("global"===i){const t=this._document;return e||t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement||t.body}return Jn(i)}}function XA(t,e){return`translate3d(${Math.round(t)}px, ${Math.round(e)}px, 0)`}function VA(t,e,i){return Math.max(e,Math.min(i,t))}function $A(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function JA(t){return"t"===t.type[0]}function QA(t,e){const i=t.rootNodes;if(1===i.length&&i[0].nodeType===e.ELEMENT_NODE)return i[0];const n=e.createElement("div");return i.forEach(t=>n.appendChild(t)),n}function tM(t,e){t.style.width=`${e.width}px`,t.style.height=`${e.height}px`,t.style.transform=XA(e.left,e.top)}function eM(t,e,i){const n=iM(e,t.length-1),s=iM(i,t.length-1);if(n===s)return;const o=t[n],r=s!0,this.sortPredicate=()=>!0,this.beforeStarted=new lt.xQ,this.entered=new lt.xQ,this.exited=new lt.xQ,this.dropped=new lt.xQ,this.sorted=new lt.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=Ft.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new lt.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function(t=0,e=ws.P){return(!ks(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=ws.P),new ft.y(i=>(i.add(e.schedule(EA,t,{subscriber:i,counter:0,period:t})),i))}(0,as).pipe(Es(this._stopScrollTimers)).subscribe(()=>{const t=this._scrollNode,e=this.autoScrollStep;1===this._verticalScrollDirection?oM(t,-e):2===this._verticalScrollDirection&&oM(t,e),1===this._horizontalScrollDirection?rM(t,-e):2===this._horizontalScrollDirection&&rM(t,e)})},this.element=Jn(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new HA(i,s)}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(t,e,i,n){let s;this._draggingStarted(),null==n?(s=this.sortingDisabled?this._draggables.indexOf(t):-1,-1===s&&(s=this._getItemIndexFromPointerPosition(t,e,i))):s=n;const o=this._activeDraggables,r=o.indexOf(t),a=t.getPlaceholderElement();let c=o[s];if(c===t&&(c=o[s+1]),r>-1&&o.splice(r,1),c&&!this._dragDropRegistry.isDragging(c)){const e=c.getRootElement();e.parentElement.insertBefore(a,e),o.splice(s,0,t)}else if(this._shouldEnterAsFirstChild(e,i)){const e=o[0].getRootElement();e.parentNode.insertBefore(a,e),o.unshift(t)}else Jn(this.element).appendChild(a),o.push(t);a.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,n,s,o,r){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:n,isPointerOverContainer:s,distance:o,dropPoint:r})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(t=>t.isDragging()).every(e=>-1===t.indexOf(e))?this._reset():this._cacheItems()),this}withDirection(t){return this._direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._orientation=t,this}withScrollableParents(t){const e=Jn(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?sM("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,e=>e.drag===t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,n){if(this.sortingDisabled||!this._clientRect||!BA(this._clientRect,.05,e,i))return;const s=this._itemPositions,o=this._getItemIndexFromPointerPosition(t,e,i,n);if(-1===o&&s.length>0)return;const r="horizontal"===this._orientation,a=sM(s,e=>e.drag===t),c=s[o],u=c.clientRect,l=a>o?1:-1,h=this._getItemOffsetPx(s[a].clientRect,u,l),d=this._getSiblingOffsetPx(a,s,l),p=s.slice();eM(s,a,o),this.sorted.next({previousIndex:a,currentIndex:o,container:this,item:t}),s.forEach((e,i)=>{if(p[i]===e)return;const n=e.drag===t,s=n?h:d,o=n?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=s,r?(o.style.transform=RA(`translate3d(${Math.round(e.offset)}px, 0, 0)`,e.initialTransform),qA(e.clientRect,0,s)):(o.style.transform=RA(`translate3d(0, ${Math.round(e.offset)}px, 0)`,e.initialTransform),qA(e.clientRect,s,0))}),this._previousSwap.overlaps=IA(u,e,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=r?n.x:n.y}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,n=0,s=0;if(this._parentPositions.positions.forEach((o,r)=>{r!==this._document&&o.clientRect&&!i&&BA(o.clientRect,.05,t,e)&&([n,s]=function(t,e,i,n){const s=aM(e,n),o=cM(e,i);let r=0,a=0;if(s){const e=t.scrollTop;1===s?e>0&&(r=1):t.scrollHeight-e>t.clientHeight&&(r=2)}if(o){const e=t.scrollLeft;1===o?e>0&&(a=1):t.scrollWidth-e>t.clientWidth&&(a=2)}return[r,a]}(r,o.clientRect,t,e),(n||s)&&(i=r))}),!n&&!s){const{width:o,height:r}=this._viewportRuler.getViewportSize(),a={width:o,height:r,top:0,right:o,bottom:r,left:0};n=aM(a,e),s=cM(a,t),i=window}!i||n===this._verticalScrollDirection&&s===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=n,this._horizontalScrollDirection=s,this._scrollNode=i,(n||s)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=Jn(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=Jn(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_cacheItemPositions(){const t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(t=>{const e=t.getVisibleElement();return{drag:t,offset:0,initialTransform:e.style.transform||"",clientRect:NA(e)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_reset(){this._isDragging=!1;const t=Jn(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(t=>{var e;const i=t.getRootElement();if(i){const n=null===(e=this._itemPositions.find(e=>e.drag===t))||void 0===e?void 0:e.initialTransform;i.style.transform=n||""}}),this._siblings.forEach(t=>t._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(t,e,i){const n="horizontal"===this._orientation,s=e[t].clientRect,o=e[t+-1*i];let r=s[n?"width":"height"]*i;if(o){const t=n?"left":"top",e=n?"right":"bottom";-1===i?r-=o.clientRect[t]-s[e]:r+=s[t]-o.clientRect[e]}return r}_getItemOffsetPx(t,e,i){const n="horizontal"===this._orientation;let s=n?e.left-t.left:e.top-t.top;return-1===i&&(s+=n?e.width-t.width:e.height-t.height),s}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,n="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){const s=i[i.length-1].clientRect;return n?t>=s.right:e>=s.bottom}{const s=i[0].clientRect;return n?t<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(t,e,i,n){const s="horizontal"===this._orientation,o=sM(this._itemPositions,({drag:o,clientRect:r},a,c)=>{if(o===t)return c.length<2;if(n){const t=s?n.x:n.y;if(o===this._previousSwap.drag&&this._previousSwap.overlaps&&t===this._previousSwap.delta)return!1}return s?e>=Math.floor(r.left)&&e=Math.floor(r.top)&&in._canReceive(t,e,i))}_canReceive(t,e,i){if(!this._clientRect||!IA(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const n=this._getShadowRoot().elementFromPoint(e,i);if(!n)return!1;const s=Jn(this.element);return n===s||s.contains(n)}_startReceiving(t,e){const i=this._activeSiblings;!i.has(t)&&e.every(t=>this.enterPredicate(t,this)||this._draggables.indexOf(t)>-1)&&(i.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&(this._itemPositions.forEach(({clientRect:t})=>{qA(t,e.top,e.left)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=eo(Jn(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._activeDraggables.filter(t=>t.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function sM(t,e){for(let i=0;i=i-o&&e<=i+o?1:e>=n-o&&e<=n+o?2:0}function cM(t,e){const{left:i,right:n,width:s}=t,o=.05*s;return e>=i-o&&e<=i+o?1:e>=n-o&&e<=n+o?2:0}const uM=Js({passive:!1,capture:!0});let lM=(()=>{class t{constructor(t,e){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=t=>t.isDragging(),this.pointerMove=new lt.xQ,this.pointerUp=new lt.xQ,this.scroll=new lt.xQ,this._preventDefaultWhileDragging=t=>{this._activeDragInstances.length>0&&t.preventDefault()},this._persistentTouchmoveListener=t=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&t.preventDefault(),this.pointerMove.next(t))},this._document=e}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,uM)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,uM)}startDragging(t,e){if(!(this._activeDragInstances.indexOf(t)>-1)&&(this._activeDragInstances.push(t),1===this._activeDragInstances.length)){const t=e.type.startsWith("touch");this._globalListeners.set(t?"touchend":"mouseup",{handler:t=>this.pointerUp.next(t),options:!0}).set("scroll",{handler:t=>this.scroll.next(t),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:uM}),t||this._globalListeners.set("mousemove",{handler:t=>this.pointerMove.next(t),options:uM}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((t,e)=>{this._document.addEventListener(e,t.handler,t.options)})})}}stopDragging(t){const e=this._activeDragInstances.indexOf(t);e>-1&&(this._activeDragInstances.splice(e,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(t){return this._activeDragInstances.indexOf(t)>-1}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,e)=>{this._document.removeEventListener(e,t.handler,t.options)}),this._globalListeners.clear()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(n.K0))},token:t,providedIn:"root"}),t})();const hM={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let dM=(()=>{class t{constructor(t,e,i,n){this._document=t,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=n}createDrag(t,e=hM){return new GA(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new nM(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0),s.LFG(s.R0b),s.LFG(fo),s.LFG(lM))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0),s.LFG(s.R0b),s.LFG(fo),s.LFG(lM))},token:t,providedIn:"root"}),t})();const pM=new s.OlP("CDK_DRAG_PARENT"),fM=new s.OlP("CdkDropListGroup"),gM=new s.OlP("CDK_DRAG_CONFIG");let mM=0;const _M=new s.OlP("CdkDropList");let bM=(()=>{class t{constructor(e,i,n,o,r,a,c){this.element=e,this._changeDetectorRef=n,this._scrollDispatcher=o,this._dir=r,this._group=a,this._destroyed=new lt.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+mM++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new s.vpe,this.entered=new s.vpe,this.exited=new s.vpe,this.sorted=new s.vpe,this._unsortedItems=new Set,this._dropListRef=i.createDropList(e),this._dropListRef.data=this,c&&this._assignDefaults(c),this._dropListRef.enterPredicate=(t,e)=>this.enterPredicate(t.data,e.data),this._dropListRef.sortPredicate=(t,e,i)=>this.sortPredicate(t,e.data,i.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),a&&a._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(t){this._dropListRef.disabled=this._disabled=Zn(t)}addItem(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((t,e)=>t._dragRef.getVisibleElement().compareDocumentPosition(e._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=t._dropLists.indexOf(this);e>-1&&t._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(kt(this._dir.value),Es(this._destroyed)).subscribe(t=>e.withDirection(t)),e.beforeStarted.subscribe(()=>{const i=Vn(this.connectedTo).map(e=>"string"==typeof e?t._dropLists.find(t=>t.id===e):e);if(this._group&&this._group._items.forEach(t=>{-1===i.indexOf(t)&&i.push(t)}),!this._scrollableParentsResolved){const t=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(t=>t.getElementRef().nativeElement);this._dropListRef.withScrollableParents(t),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=Zn(this.sortingDisabled),e.autoScrollDisabled=Zn(this.autoScrollDisabled),e.autoScrollStep=Gn(this.autoScrollStep,2),e.connectedTo(i.filter(t=>t&&t!==this).map(t=>t._dropListRef)).withOrientation(this.orientation)})}_handleEvents(t){t.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:this,item:t.item.data,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:this,item:t.item.data}),this._changeDetectorRef.markForCheck()}),t.sorted.subscribe(t=>{this.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:this,item:t.item.data})}),t.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}),this._changeDetectorRef.markForCheck()})}_assignDefaults(t){const{lockAxis:e,draggingDisabled:i,sortingDisabled:n,listAutoScrollDisabled:s,listOrientation:o}=t;this.disabled=null!=i&&i,this.sortingDisabled=null!=n&&n,this.autoScrollDisabled=null!=s&&s,this.orientation=o||"vertical",e&&(this.lockAxis=e)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(t=>t._dragRef))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(dM),s.Y36(s.sBO),s.Y36(ho),s.Y36(so,8),s.Y36(fM,12),s.Y36(gM,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,e){2&t&&(s.uIk("id",e.id),s.ekj("cdk-drop-list-disabled",e.disabled)("cdk-drop-list-dragging",e._dropListRef.isDragging())("cdk-drop-list-receiving",e._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[s._Bn([{provide:fM,useValue:void 0},{provide:_M,useExisting:t}])]}),t._dropLists=[],t})();const yM=new s.OlP("CdkDragHandle"),wM=new s.OlP("CdkDragPlaceholder"),AM=new s.OlP("CdkDragPreview");let MM=(()=>{class t{constructor(e,i,n,o,r,a,c,u,l,h,d){this.element=e,this.dropContainer=i,this._ngZone=o,this._viewContainerRef=r,this._dir=c,this._changeDetectorRef=l,this._selfHandle=h,this._parentDrag=d,this._destroyed=new lt.xQ,this.started=new s.vpe,this.released=new s.vpe,this.ended=new s.vpe,this.entered=new s.vpe,this.exited=new s.vpe,this.dropped=new s.vpe,this.moved=new ft.y(t=>{const e=this._dragRef.moved.pipe((0,At.U)(t=>({source:this,pointerPosition:t.pointerPosition,event:t.event,delta:t.delta,distance:t.distance}))).subscribe(t);return()=>{e.unsubscribe()}}),this._dragRef=u.createDrag(e,{dragStartThreshold:a&&null!=a.dragStartThreshold?a.dragStartThreshold:5,pointerDirectionChangeThreshold:a&&null!=a.pointerDirectionChangeThreshold?a.pointerDirectionChangeThreshold:5,zIndex:null==a?void 0:a.zIndex}),this._dragRef.data=this,t._dragInstances.push(this),a&&this._assignDefaults(a),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(t){this._disabled=Zn(t),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.onStable.pipe((0,vt.q)(1),Es(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._handles.changes.pipe(kt(this._handles),(0,Yt.b)(t=>{const e=t.filter(t=>t._parentDrag===this).map(t=>t.element);this._selfHandle&&this.rootElementSelector&&e.push(this.element),this._dragRef.withHandles(e)}),(0,Mt.w)(t=>(0,ko.T)(...t.map(t=>t._stateChanges.pipe(kt(t))))),Es(this._destroyed)).subscribe(t=>{const e=this._dragRef,i=t.element.nativeElement;t.disabled?e.disableHandle(i):e.enableHandle(i)}),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})}ngOnChanges(t){const e=t.rootElementSelector,i=t.freeDragPosition;e&&!e.firstChange&&this._updateRootElement(),i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=t._dragInstances.indexOf(this);e>-1&&t._dragInstances.splice(e,1),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}_updateRootElement(){const t=this.element.nativeElement,e=this.rootElementSelector?vM(t,this.rootElementSelector):t;this._dragRef.withRootElement(e||t)}_getBoundaryElement(){const t=this.boundaryElement;return t?"string"==typeof t?vM(this.element.nativeElement,t):Jn(t):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const t=this._dir,i=this.dragStartDelay,n=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,s=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 i&&i?i:Gn(i),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(n).withPreviewTemplate(s).withPreviewContainer(this.previewContainer||"global"),t&&e.withDirection(t.value)}}),e.beforeStarted.pipe((0,vt.q)(1)).subscribe(()=>{var i,n;if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let s=this.element.nativeElement.parentElement;for(;s;){if(null===(i=s.classList)||void 0===i?void 0:i.contains("cdk-drag")){e.withParent((null===(n=t._dragInstances.find(t=>t.element.nativeElement===s))||void 0===n?void 0:n._dragRef)||null);break}s=s.parentElement}})}_handleEvents(t){t.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),t.released.subscribe(()=>{this.released.emit({source:this})}),t.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance,dropPoint:t.dropPoint}),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),t.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})})}_assignDefaults(t){const{lockAxis:e,dragStartDelay:i,constrainPosition:n,previewClass:s,boundaryElement:o,draggingDisabled:r,rootElementSelector:a,previewContainer:c}=t;this.disabled=null!=r&&r,this.dragStartDelay=i||0,e&&(this.lockAxis=e),n&&(this.constrainPosition=n),s&&(this.previewClass=s),o&&(this.boundaryElement=o),a&&(this.rootElementSelector=a),c&&(this.previewContainer=c)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(_M,12),s.Y36(n.K0),s.Y36(s.R0b),s.Y36(s.s_b),s.Y36(gM,8),s.Y36(so,8),s.Y36(dM),s.Y36(s.sBO),s.Y36(yM,10),s.Y36(pM,12))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkDrag",""]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,AM,5),s.Suo(i,wM,5),s.Suo(i,yM,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._previewTemplate=t.first),s.iGM(t=s.CRH())&&(e._placeholderTemplate=t.first),s.iGM(t=s.CRH())&&(e._handles=t)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,e){2&t&&s.ekj("cdk-drag-disabled",e.disabled)("cdk-drag-dragging",e._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],previewContainer:["cdkDragPreviewContainer","previewContainer"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[s._Bn([{provide:pM,useExisting:t}]),s.TTD]}),t._dragInstances=[],t})();function vM(t,e){let i=t.parentElement;for(;i;){if(i.matches?i.matches(e):i.msMatchesSelector(e))return i;i=i.parentElement}return null}let TM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[dM],imports:[go]}),t})();const kM=["*"],LM=new s.OlP("MatChipRemove"),CM=new s.OlP("MatChipAvatar"),SM=new s.OlP("MatChipTrailingIcon");class EM{constructor(t){this._elementRef=t}}const zM=Lu(Tu(ku(EM),"primary"),-1);let xM=(()=>{class t extends zM{constructor(t,e,i,n,o,r,a,c){super(t),this._elementRef=t,this._ngZone=e,this._changeDetectorRef=o,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new lt.xQ,this._onBlur=new lt.xQ,this.selectionChange=new s.vpe,this.destroyed=new s.vpe,this.removed=new s.vpe,this._addHostClassName(),this._chipRippleTarget=r.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new Gu(this,e,this._chipRippleTarget,i),this._chipRipple.setupTriggerEvents(t),this.rippleConfig=n||{},this._animationsDisabled="NoopAnimations"===a,this.tabIndex=null!=c&&parseInt(c)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(t){const e=Zn(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(t){this._value=t}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(t){this._selectable=Zn(t)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(t){this._disabled=Zn(t)}get removable(){return this._removable}set removable(t){this._removable=Zn(t)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const t=this._elementRef.nativeElement;t.hasAttribute("mat-basic-chip")||"mat-basic-chip"===t.tagName.toLowerCase()?t.classList.add("mat-basic-chip"):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(t=!1){return this._selected=!this.selected,this._dispatchSelectionChange(t),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(t){this.disabled?t.preventDefault():t.stopPropagation()}_handleKeydown(t){if(!this.disabled)switch(t.keyCode){case 46:case 8:this.remove(),t.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,vt.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(t=!1){this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(Ws),s.Y36(Xu,8),s.Y36(s.sBO),s.Y36(n.K0),s.Y36(lu,8),s.$8M("tabindex"))},t.\u0275dir=s.lG2({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,CM,5),s.Suo(i,SM,5),s.Suo(i,LM,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.avatar=t.first),s.iGM(t=s.CRH())&&(e.trailingIcon=t.first),s.iGM(t=s.CRH())&&(e.removeIcon=t.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&s.NdJ("click",function(t){return e._handleClick(t)})("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e.focus()})("blur",function(){return e._blur()}),2&t&&(s.uIk("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),s.ekj("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[s.qOj]}),t})();const OM=new s.OlP("mat-chips-default-options");class RM{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const DM=Cu(RM);let PM=0;class NM{constructor(t,e){this.source=t,this.value=e}}let IM=(()=>{class t extends DM{constructor(t,e,i,n,o,r,a){super(r,n,o,a),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this.ngControl=a,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new lt.xQ,this._uid="mat-chip-list-"+PM++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(t,e)=>t===e,this._required=!1,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new s.vpe,this.valueChange=new s.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(t){this._multiple=Zn(t),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this.writeValue(t),this._value=t}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required}set required(t){this._required=Zn(t),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(t){this._placeholder=t,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(t){this._disabled=Zn(t),this._syncChipsState()}get selectable(){return this._selectable}set selectable(t){this._selectable=Zn(t),this.chips&&this.chips.forEach(t=>t.chipListSelectable=this._selectable)}set tabIndex(t){this._userTabIndex=t,this._tabIndex=t}get chipSelectionChanges(){return(0,ko.T)(...this.chips.map(t=>t.selectionChange))}get chipFocusChanges(){return(0,ko.T)(...this.chips.map(t=>t._onFocus))}get chipBlurChanges(){return(0,ko.T)(...this.chips.map(t=>t._onBlur))}get chipRemoveChanges(){return(0,ko.T)(...this.chips.map(t=>t.destroyed))}ngAfterContentInit(){this._keyManager=new Mr(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Es(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.tabOut.pipe(Es(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(kt(null),Es(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 co(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(t){this._chipInput=t,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",t.id)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}writeValue(t){this.chips&&this._setSelectionByValue(t,!1)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this.stateChanges.next()}onContainerClick(t){this._originatesFromChip(t)||this.focus()}focus(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}_focusInput(t){this._chipInput&&this._chipInput.focus(t)}_keydown(t){const e=t.target;e&&e.classList.contains("mat-chip")&&(this._keyManager.onKeydown(t),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(t){return t>=0&&tt.deselect()),Array.isArray(t))t.forEach(t=>this._selectValue(t,e)),this._sortValues();else{const i=this._selectValue(t,e);i&&e&&this._keyManager.setActiveItem(i)}}_selectValue(t,e=!0){const i=this.chips.find(e=>null!=e.value&&this._compareWith(e.value,t));return i&&(e?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(t){this._selectionModel.clear(),this.chips.forEach(e=>{e!==t&&e.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(t=>{t.selected&&this._selectionModel.select(t)}),this.stateChanges.next())}_propagateChanges(t){let e=null;e=Array.isArray(this.selected)?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.change.emit(new NM(this,e)),this.valueChange.emit(e),this._onChange(e),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(t=>{t.source.selected?this._selectionModel.select(t.source):this._selectionModel.deselect(t.source),this.multiple||this.chips.forEach(t=>{!this._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),t.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(t=>{let e=this.chips.toArray().indexOf(t.chip);this._isValidIndex(e)&&this._keyManager.updateActiveItem(e),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(t=>{const e=t.chip,i=this.chips.toArray().indexOf(t.chip);this._isValidIndex(i)&&e._hasFocus&&(this._lastDestroyedChipIndex=i)})}_originatesFromChip(t){let e=t.target;for(;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-chip"))return!0;e=e.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(t=>t._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(t=>{t._chipListDisabled=this._disabled,t._chipListMultiple=this.multiple})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(so,8),s.Y36(Xd,8),s.Y36(ap,8),s.Y36(Bu),s.Y36(Md,10))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,xM,5),2&t){let t;s.iGM(t=s.CRH())&&(e.chips=t)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&s.NdJ("focus",function(){return e.focus()})("blur",function(){return e._blur()})("keydown",function(t){return e._keydown(t)}),2&t&&(s.Ikx("id",e._uid),s.uIk("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),s.ekj("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[s._Bn([{provide:Oh,useExisting:t}]),s.qOj],ngContentSelectors:kM,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.Hsn(1),s.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.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-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height: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:focus{outline:dotted 2px}.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}.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}\n'],encapsulation:2,changeDetection:0}),t})(),qM=0,BM=(()=>{class t{constructor(t,e){this._elementRef=t,this._defaultOptions=e,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new s.vpe,this.placeholder="",this.id="mat-chip-list-input-"+qM++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(t){t&&(this._chipList=t,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(t){this._addOnBlur=Zn(t)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(t){this._disabled=Zn(t)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(t){if(t){if(9!==t.keyCode||So(t,"shiftKey")||this._chipList._allowFocusEscape(),8===t.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void t.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(t)}_keyup(t){!this._focusLastChipOnBackspace&&8===t.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,t.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._chipList.stateChanges.next()}_emitChipEnd(t){!this.inputElement.value&&t&&this._chipList._keydown(t),t&&!this._isSeparatorKey(t)||(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==t||t.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(t){this.inputElement.focus(t)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(t){return!So(t)&&new Set(this.separatorKeyCodes).has(t.keyCode)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(OM))},t.\u0275dir=s.lG2({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,e){1&t&&s.NdJ("keydown",function(t){return e._keydown(t)})("keyup",function(t){return e._keyup(t)})("blur",function(){return e._blur()})("focus",function(){return e._focus()})("input",function(){return e._onInput()}),2&t&&(s.Ikx("id",e.id),s.uIk("disabled",e.disabled||null)("placeholder",e.placeholder||null)("aria-invalid",e._chipList&&e._chipList.ngControl?e._chipList.ngControl.invalid:null)("aria-required",e._chipList&&e._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[s.TTD]}),t})();const HM={separatorKeyCodes:[13]};let YM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Bu,{provide:OM,useValue:HM}],imports:[[Mu]]}),t})();function jM(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-icon",9),s.NdJ("mousedown",function(){return s.CHM(t),s.oxw(2).dragDisabled=!1}),s._uU(1,"drag_indicator"),s.qZA()}}function FM(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-icon",10),s.NdJ("click",function(){s.CHM(t);const e=s.oxw().$implicit;return s.oxw().edit(e)}),s._uU(1,"edit"),s.qZA()}}function WM(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-icon",11),s.NdJ("click",function(){s.CHM(t);const e=s.oxw().$implicit;return s.oxw().remove(e)}),s._uU(1,"cancel"),s.qZA()}}function UM(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-chip",4),s.NdJ("removed",function(){const e=s.CHM(t).$implicit,i=s.oxw();return i.remove(e),i._sendEventToParent()}),s.YNc(1,jM,2,0,"mat-icon",5),s.TgZ(2,"div",6),s.NdJ("click",function(){const e=s.CHM(t).$implicit,i=s.oxw();return i.readonly&&void 0!==i.attribute.displayName&&i.showValue(e,i.attribute.displayName)}),s._uU(3),s.qZA(),s.YNc(4,FM,2,0,"mat-icon",7),s.YNc(5,WM,2,0,"mat-icon",8),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.Q6J("selectable",i.selectable)("cdkDragData",t)("removable",i.removable),s.xp6(1),s.Q6J("ngIf",i.removable),s.xp6(1),s.ekj("cursor-pointer",i.readonly&&void 0!==i.attribute.displayName),s.xp6(1),s.Oqu(t),s.xp6(1),s.Q6J("ngIf",i.removable),s.xp6(1),s.Q6J("ngIf",i.removable)}}function KM(t,e){1&t&&(s.TgZ(0,"mat-icon"),s._uU(1,"more_horiz"),s.qZA())}function ZM(t,e){1&t&&(s.TgZ(0,"mat-icon"),s._uU(1,"keyboard_arrow_up"),s.qZA())}function GM(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",12),s.TgZ(1,"span",13),s.TgZ(2,"button",14),s.NdJ("click",function(){return s.CHM(t),s.oxw().onShowChange()}),s.YNc(3,KM,2,0,"mat-icon",15),s.YNc(4,ZM,2,0,"mat-icon",15),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.Q6J("matTooltip",t.showMore?"Show less":"Show more")("matTooltipPosition","above"),s.xp6(2),s.Q6J("ngIf",!t.showMore),s.xp6(1),s.Q6J("ngIf",t.showMore)}}function XM(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-form-field",12),s.TgZ(1,"input",16),s.NdJ("matChipInputTokenEnd",function(e){return s.CHM(t),s.oxw().add(e)})("change",function(){return s.CHM(t),s.oxw()._sendEventToParent()}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(),e=s.MAs(2);s.xp6(1),s.Q6J("matChipInputFor",e)("matChipInputSeparatorKeyCodes",t.separatorKeysCodes)("matChipInputAddOnBlur",t.addOnBlur)}}let VM=(()=>{class t{constructor(t){this.dialog=t,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[13,188],this.values=[],this.showMore=!1,this.defaultItemsShown=5,this.sendEventToParent=new s.vpe,this.readonly=!1}ngOnInit(){this.removable=!sg(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=Object.values(this.attribute.value),this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=sg(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}add(t){const e=t.input,i=t.value;(i||"").trim()&&(this.attribute.value.push(i.trim()),this.values=Object.values(this.attribute.value),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),e&&(e.value=""),this.sendEventToParent.emit()}remove(t){const e=ng();e.width="400px",e.data={name:t},this.dialog.open(D_,e).afterClosed().subscribe(e=>{if(e){const e=this.attribute.value.indexOf(t);this.attribute.value.splice(e,1),this.values=Object.values(this.attribute.value),this.sendEventToParent.emit()}})}drop(t){this.dragDisabled=!0,eM(this.attribute.value,t.previousIndex,t.currentIndex),this.values=Object.values(this.attribute.value)}edit(t){const e=this.attribute.value.indexOf(t),i=ng();i.width="600px",i.data={attribute:this.attribute,index:e},this.dialog.open(R_,i).afterClosed().subscribe(t=>{t&&(this.values=Object.values(this.attribute.value),this.sendEventToParent.emit())})}showValue(t,e){const i=ng();i.width="350px",i.data={value:t,title:e},this.dialog.open(O_,i)}setItemsShown(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Ll))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"mat-chip-list",0,1),s.NdJ("cdkDropListDropped",function(t){return e.drop(t),e._sendEventToParent()}),s.YNc(3,UM,6,9,"mat-chip",2),s.YNc(4,GM,5,4,"div",3),s.YNc(5,XM,2,3,"mat-form-field",3),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Q6J("cdkDropListDisabled",e.dragDisabled),s.xp6(2),s.Q6J("ngForOf",e.values.slice(0,e.itemsShown)),s.xp6(1),s.Q6J("ngIf",e.values.length>e.defaultItemsShown),s.xp6(1),s.Q6J("ngIf",!e.readonly))},directives:[IM,bM,n.sg,n.O5,xM,MM,Jf,$p,uh,Kh,Wg,BM],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%], .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}.edit-delete-icon[_ngcontent-%COMP%], .handle-icon[_ngcontent-%COMP%]{justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),t})(),$M=(()=>{class t{transform(t){return t.replace(/\s/g,"-").toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"multiWordDataCy",type:t,pure:!0}),t})(),JM=(()=>{class t{constructor(t){this.dialog=t,this.readonly=!1,this.sendEventToParent=new s.vpe}ngOnInit(){this.value=this.attribute.value,this.readonly||(this.readonly=sg(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(t,e){const i=ng();i.width="350px",i.data={value:t,title:e},this.dialog.open(O_,i)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Ll))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"mat-form-field",0),s.TgZ(1,"input",1),s.NdJ("click",function(){return e.readonly&&void 0!==e.value&&e.showValue(e.value,e.attribute.displayName)})("ngModelChange",function(t){return e.attribute.value=t})("keydown",function(){return e._sendEventToParent()}),s.ALo(2,"multiWordDataCy"),s.qZA(),s.qZA()),2&t&&(s.s9C("appearance",e.readonly?"none":"standard"),s.xp6(1),s.ekj("cursor-pointer",e.readonly&&void 0!==e.value),s.Q2q("data-cy","",s.lcZ(2,6,e.attribute.displayName),"-value"),s.Q6J("readonly",e.readonly)("ngModel",e.attribute.value))},directives:[Kh,Wg,Qh,Td,Jd],pipes:[$M],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),t})(),QM=(()=>{class t{constructor(t){this.dialog=t,this.readonly=!1,this.sendEventToParent=new s.vpe}ngOnInit(){this.readonly||(this.readonly=sg(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(t){const e=ng();e.width="350px",e.data={value:t.value,title:t.displayName},this.dialog.open(O_,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Ll))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"mat-form-field",0),s.TgZ(1,"input",1),s.NdJ("click",function(){return e.readonly&&void 0!==e.attribute.value&&e.showValue(e.attribute)})("ngModelChange",function(t){return e.attribute.value=t})("keydown",function(){return e._sendEventToParent()}),s.qZA(),s.qZA()),2&t&&(s.s9C("appearance",e.readonly?"none":"standard"),s.xp6(1),s.ekj("cursor-pointer",e.readonly&&void 0!==e.attribute.value),s.Q6J("readonly",e.readonly)("ngModel",e.attribute.value))},directives:[Kh,Wg,ep,Qh,Td,Jd],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();const tv=["map"];function ev(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-attribute-value-boolean",3),s.NdJ("sendEventToParent",function(){return s.CHM(t),s.oxw()._sendEventToParent2()}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("attribute",t.attribute)("readonly",t.readonly)}}function iv(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-attribute-value-list",3),s.NdJ("sendEventToParent",function(){return s.CHM(t),s.oxw()._sendEventToParent2()}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("attribute",t.attribute)("readonly",t.readonly)}}function nv(t,e){if(1&t&&s._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&t){const t=s.oxw();s.Q6J("attribute",t.attribute)("readonly",t.readonly)}}function sv(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-attribute-value-string",3),s.NdJ("sendEventToParent",function(){return s.CHM(t),s.oxw()._sendEventToParent2()}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("attribute",t.attribute)("readonly",t.readonly)}}function ov(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-attribute-value-integer",3),s.NdJ("sendEventToParent",function(){return s.CHM(t),s.oxw()._sendEventToParent2()}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("attribute",t.attribute)("readonly",t.readonly)}}let rv=(()=>{class t{constructor(){this.readonly=!1,this.sendEventToParent2=new s.vpe}updateMapAttribute(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}_sendEventToParent2(){this.sendEventToParent2.emit()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(t,e){if(1&t&&s.Gf(tv,5),2&t){let t;s.iGM(t=s.CRH())&&(e.mapComponent=t.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(t,e){1&t&&(s.TgZ(0,"div"),s.YNc(1,ev,1,2,"perun-web-apps-attribute-value-boolean",0),s.YNc(2,iv,1,2,"perun-web-apps-attribute-value-list",0),s.TgZ(3,"div",1),s.NdJ("click",function(){return e._sendEventToParent2()}),s.YNc(4,nv,2,2,"perun-web-apps-attribute-value-map",2),s.qZA(),s.YNc(5,sv,1,2,"perun-web-apps-attribute-value-string",0),s.YNc(6,ov,1,2,"perun-web-apps-attribute-value-integer",0),s.qZA()),2&t&&(s.xp6(1),s.Q6J("ngIf","java.lang.Boolean"===e.attribute.type),s.xp6(1),s.Q6J("ngIf","java.util.ArrayList"===e.attribute.type),s.xp6(2),s.Q6J("ngIf","java.util.LinkedHashMap"===e.attribute.type),s.xp6(1),s.Q6J("ngIf","java.lang.String"===e.attribute.type||"java.lang.LargeString"===e.attribute.type),s.xp6(1),s.Q6J("ngIf","java.lang.Integer"===e.attribute.type))},directives:[n.O5,SA,VM,hA,JM,QM],styles:[""]}),t})();function av(t,e){1&t&&s._UZ(0,"mat-spinner",3)}function cv(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-option",16),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw(4).changeLanguage(e)}),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"uppercase"),s.qZA()}if(2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.hij(" ",s.lcZ(2,2,s.lcZ(3,4,"SHARED_LIB.LANGUAGES."+t))," ")}}function uv(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-form-field",13),s.TgZ(1,"mat-select",14),s.NdJ("valueChange",function(e){return s.CHM(t),s.oxw(3).currentLang=e}),s.YNc(2,cv,4,6,"mat-option",15),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(3);s.xp6(1),s.Q6J("value",t.currentLang),s.xp6(1),s.Q6J("ngForOf",t.languages)}}function lv(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"a",17),s._uU(2),s.qZA(),s.TgZ(3,"button",18),s.NdJ("click",function(){return s.CHM(t),s.oxw(3).changeEmail()}),s.TgZ(4,"mat-icon"),s._uU(5," edit "),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(3);s.xp6(1),s.MGl("href","mailto:",t.email,"",s.LSH),s.xp6(1),s.Oqu(t.email)}}function hv(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-option",16),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw(4).changeTimeZone(e)}),s._uU(1),s.qZA()}if(2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.hij(" ",t," ")}}function dv(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-form-field",13),s.TgZ(1,"mat-select",19),s.NdJ("valueChange",function(e){return s.CHM(t),s.oxw(3).currentTimezone=e}),s.YNc(2,hv,2,2,"mat-option",15),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(3);s.xp6(1),s.Q6J("value",t.currentTimezone),s.xp6(1),s.Q6J("ngForOf",t.timeZones)}}function pv(t,e){1&t&&(s.TgZ(0,"p"),s._uU(1,"-"),s.qZA())}function fv(t,e){if(1&t&&s._UZ(0,"perun-web-apps-attribute-value",22),2&t){const t=s.oxw(2).$implicit;s.Q6J("attribute",t.attribute)("readonly",!0)}}function gv(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,pv,2,0,"p",20),s.YNc(2,fv,1,2,"perun-web-apps-attribute-value",21),s.qZA()),2&t){const t=s.oxw().$implicit;s.xp6(1),s.Q6J("ngIf",!t.attribute.value),s.xp6(1),s.Q6J("ngIf",t.attribute.value)}}function mv(t,e){if(1&t&&(s.TgZ(0,"tr"),s.TgZ(1,"td",7),s.TgZ(2,"div",8),s._uU(3),s.qZA(),s.qZA(),s.TgZ(4,"td",9),s.YNc(5,uv,3,2,"mat-form-field",10),s.YNc(6,lv,6,2,"div",11),s.YNc(7,dv,3,2,"mat-form-field",10),s.YNc(8,gv,3,2,"div",12),s.qZA(),s.qZA()),2&t){const t=e.$implicit,i=s.oxw(2);s.xp6(2),s.Q6J("matTooltip",t["tooltip_"+i.currentLang]),s.xp6(1),s.Oqu(t["displayName_"+i.currentLang]),s.xp6(1),s.Q6J("ngSwitch",t.attribute.friendlyName),s.xp6(1),s.Q6J("ngSwitchCase","preferredLanguage"),s.xp6(1),s.Q6J("ngSwitchCase","preferredMail"),s.xp6(1),s.Q6J("ngSwitchCase","timezone")}}function _v(t,e){if(1&t&&(s.TgZ(0,"table",4),s.TgZ(1,"tbody"),s.TgZ(2,"tr"),s.TgZ(3,"td",5),s._uU(4),s.ALo(5,"translate"),s.ALo(6,"customTranslate"),s.qZA(),s.TgZ(7,"td"),s._uU(8),s.qZA(),s.qZA(),s.YNc(9,mv,9,6,"tr",6),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(4),s.Oqu(s.lcZ(5,3,s.lcZ(6,5,"PROFILE_PAGE.NAME"))),s.xp6(4),s.Oqu(t.fullName),s.xp6(1),s.Q6J("ngForOf",t.additionalAttributes)}}let bv=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u,l){this.translateService=t,this.dialog=e,this.authzResolverService=i,this.attributesManagerService=n,this.usersManagerService=s,this.route=o,this.router=r,this.notificator=a,this.storeService=c,this.apiRequestConfiguration=u,this.preferredLangService=l,this.currentLang="en",this.languages=this.storeService.get("supported_languages"),this.timeZones=sA.tz.names().filter(t=>!t.startsWith("Etc/")),this.additionalAttributes=[],this.email="",this.fullName="",this.organization="",this.currentTimezone="",t.get("PROFILE_PAGE.MAIL_CHANGE_SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){const t=this.route.snapshot.queryParamMap,e=t.get("token"),i=t.get("u");this.loading=!0,e&&i?(this.apiRequestConfiguration.dontHandleErrorForNext(),this.usersManagerService.validatePreferredEmailChangeWithToken(e,Number.parseInt(i,10)).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.router.navigate([],{replaceUrl:!0}),this.getData()},()=>{const t=ng();t.width="600px",this.dialog.open(q_,t).afterClosed().subscribe(()=>{this.getData()})})):this.getData()}getData(){this.authzResolverService.getPerunPrincipal().subscribe(t=>{this.userId=t.userId,this.usersManagerService.getRichUserWithAttributes(this.userId).subscribe(t=>{this.fullName=(new xg).transform(t);const e=t.userAttributes.find(t=>"preferredMail"===t.friendlyName);this.email=e.value,this.languageAttribute=t.userAttributes.find(t=>"preferredLanguage"===t.friendlyName);const i=this.languageAttribute&&this.languageAttribute.value?this.languageAttribute.value.toString():null,n=this.preferredLangService.getPreferredLanguage(i);this.translateService.use(n),this.currentLang=n,this.timezoneAttribute=t.userAttributes.find(t=>"timezone"===t.friendlyName),this.currentTimezone=this.timezoneAttribute&&this.timezoneAttribute.value?this.timezoneAttribute.value:"-";const s=this.storeService.get("profile_page_attributes");let o=0;const r=this.storeService.get("supported_languages");s.forEach(e=>{const i=t.userAttributes.find(t=>t.friendlyName===e.friendly_name);i?(o++,this.addAttribute(i,e,r)):this.attributesManagerService.getAttributeDefinitionByName(`urn:perun:user:attribute-def:${e.is_virtual?"virt":"def"}:${e.friendly_name}`).subscribe(t=>{this.addAttribute(t,e,r),o++,this.loading=o!==s.length}),this.loading=o!==s.length})})})}addAttribute(t,e,i){var n;const s={attribute:t};for(const o of i)s[`displayName_${o}`]=e[`display_name_${o}`]&&e[`display_name_${o}`].length?e[`display_name_${o}`]:t.displayName,s[`tooltip_${o}`]=null!==(n=e[`tooltip_${o}`])&&void 0!==n?n:"";this.additionalAttributes.push(s)}changeLanguage(t){this.currentLang=t,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(t){this.currentTimezone=t,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 t=ng();t.width="350px",t.data={userId:this.userId},this.dialog.open(I_,t).afterClosed().subscribe(t=>{t&&this.getEmail()})}getEmail(){this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredMail").subscribe(t=>{this.email=t.value})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(th),s.Y36(Ll),s.Y36(K),s.Y36(U),s.Y36(J),s.Y36(Qe),s.Y36(Mn),s.Y36(Mg),s.Y36(Kn),s.Y36(Ag),s.Y36(Cg))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.YNc(1,av,1,0,"mat-spinner",1),s.YNc(2,_v,10,7,"table",2),s.qZA()),2&t&&(s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[n.O5,am,n.sg,$p,n.RF,n.n9,n.ED,Kh,Pp,ul,uh,Jf,rv],pipes:[eh,Og,n.gd],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}"]}),t})();const yv=["mat-sort-header",""];function wv(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",3),s.NdJ("@arrowPosition.start",function(){return s.CHM(t),s.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return s.CHM(t),s.oxw()._disableViewStateAnimation=!1}),s._UZ(1,"div",4),s.TgZ(2,"div",5),s._UZ(3,"div",6),s._UZ(4,"div",7),s._UZ(5,"div",8),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("@arrowOpacity",t._getArrowViewState())("@arrowPosition",t._getArrowViewState())("@allowChildren",t._getArrowDirectionState()),s.xp6(2),s.Q6J("@indicator",t._getArrowDirectionState()),s.xp6(1),s.Q6J("@leftPointer",t._getArrowDirectionState()),s.xp6(1),s.Q6J("@rightPointer",t._getArrowDirectionState())}}const Av=["*"],Mv=new s.OlP("MAT_SORT_DEFAULT_OPTIONS");class vv{}const Tv=Su(vu(vv));let kv=(()=>{class t extends Tv{constructor(t){super(),this._defaultOptions=t,this.sortables=new Map,this._stateChanges=new lt.xQ,this.start="asc",this._direction="",this.sortChange=new s.vpe}get direction(){return this._direction}set direction(t){this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=Zn(t)}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){var e,i,n;if(!t)return"";const s=null!==(i=null!==(e=null==t?void 0:t.disableClear)&&void 0!==e?e:this.disableClear)&&void 0!==i?i:!!(null===(n=this._defaultOptions)||void 0===n?void 0:n.disableClear);let o=function(t,e){let i=["asc","desc"];return"desc"==t&&i.reverse(),e||i.push(""),i}(t.start||this.start,s),r=o.indexOf(this.direction)+1;return r>=o.length&&(r=0),o[r]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Mv,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[s.qOj,s.TTD]}),t})();const Lv=yu.ENTERING+" "+bu.STANDARD_CURVE,Cv={indicator:Yr("indicator",[Kr("active-asc, asc",Ur({transform:"translateY(0px)"})),Kr("active-desc, desc",Ur({transform:"translateY(10px)"})),Gr("active-asc <=> active-desc",jr(Lv))]),leftPointer:Yr("leftPointer",[Kr("active-asc, asc",Ur({transform:"rotate(-45deg)"})),Kr("active-desc, desc",Ur({transform:"rotate(45deg)"})),Gr("active-asc <=> active-desc",jr(Lv))]),rightPointer:Yr("rightPointer",[Kr("active-asc, asc",Ur({transform:"rotate(45deg)"})),Kr("active-desc, desc",Ur({transform:"rotate(-45deg)"})),Gr("active-asc <=> active-desc",jr(Lv))]),arrowOpacity:Yr("arrowOpacity",[Kr("desc-to-active, asc-to-active, active",Ur({opacity:1})),Kr("desc-to-hint, asc-to-hint, hint",Ur({opacity:.54})),Kr("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Ur({opacity:0})),Gr("* => asc, * => desc, * => active, * => hint, * => void",jr("0ms")),Gr("* <=> *",jr(Lv))]),arrowPosition:Yr("arrowPosition",[Gr("* => desc-to-hint, * => desc-to-active",jr(Lv,Zr([Ur({transform:"translateY(-25%)"}),Ur({transform:"translateY(0)"})]))),Gr("* => hint-to-desc, * => active-to-desc",jr(Lv,Zr([Ur({transform:"translateY(0)"}),Ur({transform:"translateY(25%)"})]))),Gr("* => asc-to-hint, * => asc-to-active",jr(Lv,Zr([Ur({transform:"translateY(25%)"}),Ur({transform:"translateY(0)"})]))),Gr("* => hint-to-asc, * => active-to-asc",jr(Lv,Zr([Ur({transform:"translateY(0)"}),Ur({transform:"translateY(-25%)"})]))),Kr("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Ur({transform:"translateY(0)"})),Kr("hint-to-desc, active-to-desc, desc",Ur({transform:"translateY(-25%)"})),Kr("hint-to-asc, active-to-asc, asc",Ur({transform:"translateY(25%)"}))]),allowChildren:Yr("allowChildren",[Gr("* <=> *",[Vr("@*",Xr(),{optional:!0})])])};let Sv=(()=>{class t{constructor(){this.changes=new lt.xQ}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Ev={provide:Sv,deps:[[new s.FiY,new s.tp0,Sv]],useFactory:function(t){return t||new Sv}};class zv{}const xv=vu(zv);let Ov=(()=>{class t extends xv{constructor(t,e,i,n,s,o){super(),this._intl=t,this._changeDetectorRef=e,this._sort=i,this._columnDef=n,this._focusMonitor=s,this._elementRef=o,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._handleStateChanges()}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=Zn(t)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{const e=!!t;e!==this._showIndicatorHint&&(this._setIndicatorHintVisible(e),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t||{},this._disableViewStateAnimation&&(this._viewState={toState:t.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(t){this._isDisabled()||32!==t.keyCode&&13!==t.keyCode||(t.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 t=this._viewState.fromState;return(t?`${t}-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()}_handleStateChanges(){this._rerenderSubscription=(0,ko.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 t.\u0275fac=function(e){return new(e||t)(s.Y36(Sv),s.Y36(s.sBO),s.Y36(kv,8),s.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),s.Y36(Pr),s.Y36(s.SBq))},t.\u0275cmp=s.Xpm({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e._handleClick()})("keydown",function(t){return e._handleKeydown(t)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&t&&(s.uIk("aria-sort",e._getAriaSortAttribute()),s.ekj("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[s.qOj],attrs:yv,ngContentSelectors:Av,decls:4,vars:6,consts:[["role","button",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(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.Hsn(2),s.qZA(),s.YNc(3,wv,6,6,"div",2),s.qZA()),2&t&&(s.ekj("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),s.uIk("tabindex",e._isDisabled()?null:0),s.xp6(3),s.Q6J("ngIf",e._renderArrow()))},directives:[n.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-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}\n"],encapsulation:2,data:{animation:[Cv.indicator,Cv.leftPointer,Cv.rightPointer,Cv.arrowOpacity,Cv.arrowPosition,Cv.allowChildren]},changeDetection:0}),t})(),Rv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Ev],imports:[[n.ez,Mu]]}),t})(),Dv=(()=>{class t{constructor(t){this.elementRef=t}ngOnInit(){this.elementRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","perunWebAppsAutoFocus",""]]}),t})(),Pv=(()=>{class t{constructor(){}onClick(t){if(1===t.button&&null!=this.perunWebAppsMiddleClickRouterLink){const t=this.perunWebAppsMiddleClickRouterLink.join("/"),e=location.search;window.open(t+e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(t,e){1&t&&s.NdJ("mouseup",function(t){return e.onClick(t)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),t})(),Nv=(()=>{class t{transform(t){const e=t.find(t=>"mail"===t.friendlyName);return e?e.value.toString():"N/A"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"getMailFromAttributes",type:t,pure:!0}),t})();function Iv(t,e){1&t&&s._UZ(0,"th",18)}function qv(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",19),s.TgZ(1,"span",20),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.TgZ(4,"mat-checkbox",21),s.NdJ("change",function(e){const i=s.CHM(t).$implicit,n=s.oxw();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.s9C("matTooltip",s.lcZ(2,6,s.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.CANNOT_BE_DELETED_TOOLTIP"))),s.Q6J("matTooltipPosition","above")("matTooltipDisabled",!t.userExtSource.persistent),s.xp6(3),s.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))("disabled",t.userExtSource.persistent)}}function Bv(t,e){1&t&&(s.TgZ(0,"th",22),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))))}function Hv(t,e){if(1&t&&(s.TgZ(0,"td",23),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.userExtSource.id)}}function Yv(t,e){1&t&&(s.TgZ(0,"th",24),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))))}function jv(t,e){if(1&t&&(s.TgZ(0,"td",23),s._uU(1),s.ALo(2,"getMailFromAttributes"),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(s.lcZ(2,1,t.attributes))}}function Fv(t,e){if(1&t&&(s.TgZ(0,"th",22),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,t.extSourceNameHeader?t.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME")))}}function Wv(t,e){if(1&t&&(s.TgZ(0,"td",23),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.userExtSource.extSource.name)}}function Uv(t,e){if(1&t&&(s.TgZ(0,"th",22),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,t.loginHeader?t.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN")))}}function Kv(t,e){if(1&t&&(s.TgZ(0,"td",23),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.userExtSource.login)}}function Zv(t,e){1&t&&(s.TgZ(0,"th",22),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))))}function Gv(t,e){if(1&t&&(s.TgZ(0,"td",25),s._uU(1),s.ALo(2,"date"),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(s.xi3(2,1,t.userExtSource.lastAccess,"d.M.y H:mm:ss"))}}function Xv(t,e){1&t&&s._UZ(0,"tr",26)}const Vv=function(t,e){return["/admin","users",t,"identities",e]};function $v(t,e){if(1&t&&s._UZ(0,"tr",27),2&t){const t=e.$implicit,i=s.oxw();s.ekj("cursor-pointer",!i.disableRouting)("disable-outline",i.disableRouting),s.Q6J("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:s.WLB(6,Vv,i.userId,t.userExtSource.id))("routerLink",i.disableRouting?null:s.WLB(9,Vv,i.userId,t.userExtSource.id))}}function Jv(t,e){1&t&&(s.TgZ(0,"app-alert",28),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Qv(t,e){1&t&&(s.TgZ(0,"app-alert",28),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,s.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}let tT=(()=>{class t{constructor(t,e){this.route=t,this.authResolver=e,this.selection=new co,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSizeOptions=ig}set matSort(t){this.sort=t,this.setDataSource()}ngOnInit(){this.disableRouting||this.route.parent.params.subscribe(t=>{this.userId=t.userId}),this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new y_(this.userExtSources),this.setDataSource()}getDataForColumn(t,e){switch(e){case"id":return t.userExtSource.id.toString();case"mail":{const e=t.attributes.find(t=>"mail"===t.friendlyName);return e?e.value.toString():"N/A"}case"extSourceName":return t.userExtSource.extSource.name;case"login":return t.userExtSource.login;case"lastAccess":return t.userExtSource.lastAccess.split(".")[0];default:return t[e]}}exportData(t){ug(cg(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>ag(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>rg(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}checkboxLabel(t){return`${this.selection.isSelected(t.userExtSource)?"deselect":"select"} row ${t.userExtSource.id+1}`}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Qe),s.Y36(rt))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(t,e){if(1&t&&(s.Gf(mg,7),s.Gf(kv,7)),2&t){let t;s.iGM(t=s.CRH())&&(e.child=t.first),s.iGM(t=s.CRH())&&(e.matSort=t.first)}},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},features:[s.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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,Iv,1,0,"th",4),s.YNc(5,qv,5,10,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,Bv,4,5,"th",7),s.YNc(8,Hv,2,1,"td",8),s.BQk(),s.ynx(9,9),s.YNc(10,Yv,4,5,"th",10),s.YNc(11,jv,3,3,"td",8),s.BQk(),s.ynx(12,11),s.YNc(13,Fv,4,5,"th",7),s.YNc(14,Wv,2,1,"td",8),s.BQk(),s.ynx(15,12),s.YNc(16,Uv,4,5,"th",7),s.YNc(17,Kv,2,1,"td",8),s.BQk(),s.ynx(18,13),s.YNc(19,Zv,4,5,"th",7),s.YNc(20,Gv,3,4,"td",14),s.BQk(),s.YNc(21,Xv,1,0,"tr",15),s.YNc(22,$v,1,12,"tr",16),s.qZA(),s.qZA(),s.qZA(),s.YNc(23,Jv,3,3,"app-alert",17),s.YNc(24,Qv,4,5,"app-alert",17)),2&t&&(s.Q6J("hidden",0===e.userExtSources.length||0===e.dataSource.filteredData.length),s.xp6(1),s.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),s.xp6(1),s.Q6J("dataSource",e.dataSource),s.xp6(19),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.userExtSources.length),s.xp6(1),s.Q6J("ngIf",0===e.userExtSources.length))},directives:[mg,c_,kv,h_,l_,u_,f_,g_,n.O5,d_,p_,$p,vA,Ov,m_,__,Pv,vn,$g],pipes:[eh,Og,Nv,n.uU],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),t})();function eT(t,e){1&t&&s._UZ(0,"mat-spinner",3)}function iT(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"h1",8),s._uU(2),s.ALo(3,"translate"),s.ALo(4,"customTranslate"),s.qZA(),s.TgZ(5,"button",5),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).addIdentity()}),s._uU(6),s.ALo(7,"translate"),s.ALo(8,"customTranslate"),s.qZA(),s.TgZ(9,"button",6),s.NdJ("click",function(){s.CHM(t);const e=s.oxw(2);return e.removeIdentity(e.certSelection)}),s._uU(10),s.ALo(11,"translate"),s.ALo(12,"customTranslate"),s.qZA(),s._UZ(13,"perun-web-apps-user-ext-sources-list",11),s.qZA()}if(2&t){const t=s.oxw(2);s.xp6(2),s.Oqu(s.lcZ(3,10,s.lcZ(4,12,"IDENTITIES.CERT"))),s.xp6(4),s.Oqu(s.lcZ(7,14,s.lcZ(8,16,"IDENTITIES.ADD"))),s.xp6(3),s.Q6J("disabled",0===t.certSelection.selected.length),s.xp6(1),s.Oqu(s.lcZ(11,18,s.lcZ(12,20,"IDENTITIES.REMOVE"))),s.xp6(3),s.Q6J("userExtSources",t.certExtSources)("selection",t.certSelection)("extSourceNameHeader",t.extSourceNameCert)("loginHeader",t.loginCert)("displayedColumns",t.displayedColumnsCert)("disableRouting",!0)}}function nT(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"h1",4),s._uU(2),s.ALo(3,"translate"),s.ALo(4,"customTranslate"),s.qZA(),s.TgZ(5,"button",5),s.NdJ("click",function(){return s.CHM(t),s.oxw().addIdentity()}),s._uU(6),s.ALo(7,"translate"),s.ALo(8,"customTranslate"),s.qZA(),s.TgZ(9,"button",6),s.NdJ("click",function(){s.CHM(t);const e=s.oxw();return e.removeIdentity(e.idpSelection)}),s._uU(10),s.ALo(11,"translate"),s.ALo(12,"customTranslate"),s.qZA(),s._UZ(13,"perun-web-apps-user-ext-sources-list",7),s.YNc(14,iT,14,22,"div",2),s.TgZ(15,"h1",8),s._uU(16),s.ALo(17,"translate"),s.ALo(18,"customTranslate"),s.TgZ(19,"mat-icon",9),s.ALo(20,"translate"),s.ALo(21,"customTranslate"),s._uU(22," info_outline "),s.qZA(),s.qZA(),s._UZ(23,"perun-web-apps-user-ext-sources-list",10),s.qZA()}if(2&t){const t=s.oxw();s.xp6(2),s.Oqu(s.lcZ(3,17,s.lcZ(4,19,"IDENTITIES.IDP"))),s.xp6(4),s.Oqu(s.lcZ(7,21,s.lcZ(8,23,"IDENTITIES.ADD"))),s.xp6(3),s.Q6J("disabled",0===t.idpSelection.selected.length),s.xp6(1),s.Oqu(s.lcZ(11,25,s.lcZ(12,27,"IDENTITIES.REMOVE"))),s.xp6(3),s.Q6J("userExtSources",t.idpExtSources)("selection",t.idpSelection)("displayedColumns",t.displayedColumnsIdp)("loginHeader",t.loginIdp)("disableRouting",!0),s.xp6(1),s.Q6J("ngIf",t.displayCertificates),s.xp6(2),s.hij(" ",s.lcZ(17,29,s.lcZ(18,31,"IDENTITIES.OTHER"))," "),s.xp6(3),s.Q6J("matTooltip",s.lcZ(20,33,s.lcZ(21,35,"IDENTITIES.OTHER_TOOLTIP"))),s.xp6(4),s.Q6J("userExtSources",t.otherExtSources)("selection",t.otherSelection)("extSourceNameHeader",t.extSourceNameOther)("displayedColumns",t.displayedColumnsOther)("disableRouting",!0)}}let sT=(()=>{class t{constructor(t,e,i,n,s){this.usersManagerService=t,this.storage=e,this.registrarManagerService=i,this.dialog=n,this.attributesManagerService=s,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.idpSelection=new co(!0,[]),this.certSelection=new co(!0,[]),this.otherSelection=new co(!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","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(t=>{let e=t.length;t.forEach(t=>{this.attributesManagerService.getUserExtSourceAttributeByName(t.userExtSource.id,"urn:perun:ues:attribute-def:def:sourceIdPName").subscribe(i=>{i&&i.value?(t.userExtSource.extSource.name=i.value,e--,this.loading=0!==e,this.addToList(t)):this.attributesManagerService.getUserExtSourceAttributeByName(t.userExtSource.id,"urn:perun:ues:attribute-def:def:IdPOrganizationName").subscribe(i=>{e--,i&&i.value&&(t.userExtSource.extSource.name=i.value),this.loading=0!==e,this.addToList(t)})})})})}addIdentity(){this.registrarManagerService.getConsolidatorToken().subscribe(t=>{const e=this.storage.getPerunPrincipal().extSourceType,i=this.storage.get("consolidator_base_url");window.location.href=`${i}${e&&e.endsWith("X509")?"cert":"fed"}-ic/ic/?target_url=${window.location.href}&token=${t}`})}removeIdentity(t){const e=ng();e.width="600px",e.data={theme:"user-theme",userId:this.userId,extSources:t.selected},this.dialog.open(L_,e).afterClosed().subscribe(e=>{e&&(t.clear(),this.refreshTables())})}addToList(t){t.userExtSource.extSource.type.endsWith("Idp")?this.idpExtSources.push(t):t.userExtSource.extSource.type.endsWith("X509")?this.certExtSources.push(t):this.otherExtSources.push(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(J),s.Y36(Kn),s.Y36(V),s.Y36(Ll),s.Y36(U))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-identities-page"]],decls:3,vars:2,consts:[[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"page-title"],["mat-flat-button","","color","accent",1,"action-button",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(t,e){1&t&&(s.TgZ(0,"div",0),s.YNc(1,eT,1,0,"mat-spinner",1),s.YNc(2,nT,24,37,"div",2),s.qZA()),2&t&&(s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[n.O5,am,uh,tT,Jf,$p],pipes:[eh,Og],styles:[".center-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),t})();const oT=["panel"];function rT(t,e){if(1&t&&(s.TgZ(0,"div",0,1),s.Hsn(2),s.qZA()),2&t){const t=e.id,i=s.oxw();s.Q6J("id",i.id)("ngClass",i._classList),s.uIk("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(t))}}const aT=["*"];let cT=0;class uT{constructor(t,e){this.source=t,this.option=e}}class lT{}const hT=ku(lT),dT=new s.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}});let pT=(()=>{class t extends hT{constructor(t,e,i,n){super(),this._changeDetectorRef=t,this._elementRef=e,this._activeOptionChanges=Ft.w.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new s.vpe,this.opened=new s.vpe,this.closed=new s.vpe,this.optionActivated=new s.vpe,this._classList={},this.id="mat-autocomplete-"+cT++,this.inertGroups=(null==n?void 0:n.SAFARI)||!1,this._autoActiveFirstOption=!!i.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(t){this._autoActiveFirstOption=Zn(t)}set classList(t){this._classList=t&&t.length?function(t,e=/\s+/){const i=[];if(null!=t){const n=Array.isArray(t)?t:`${t}`.split(e);for(const t of n){const e=`${t}`.trim();e&&i.push(e)}}return i}(t).reduce((t,e)=>(t[e]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new Ar(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){const e=new uT(this,t);this.optionSelected.emit(e)}_getPanelAriaLabelledby(t){return this.ariaLabel?null:this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_setVisibilityClasses(t){t[this._visibleClass]=this.showPanel,t[this._hiddenClass]=!this.showPanel}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(dT),s.Y36(Ws))},t.\u0275dir=s.lG2({type:t,viewQuery:function(t,e){if(1&t&&(s.Gf(s.Rgc,7),s.Gf(oT,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.template=t.first),s.iGM(t=s.CRH())&&(e.panel=t.first)}},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[s.qOj]}),t})(),fT=(()=>{class t extends pT{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,ol,5),s.Suo(i,ul,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.optionGroups=t),s.iGM(t=s.CRH())&&(e.options=t)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[s._Bn([{provide:tl,useExisting:t}]),s.qOj],ngContentSelectors:aT,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(s.F$t(),s.YNc(0,rT,3,4,"ng-template"))},directives:[n.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}\n"],encapsulation:2,changeDetection:0}),t})();const gT=new s.OlP("mat-autocomplete-scroll-strategy"),mT={provide:gT,deps:[er],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},_T={provide:Vh,useExisting:(0,s.Gpc)(()=>yT),multi:!0};let bT=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u,l){this._element=t,this._overlay=e,this._viewContainerRef=i,this._zone=n,this._changeDetectorRef=s,this._dir=r,this._formField=a,this._document=c,this._viewportRuler=u,this._defaults=l,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Ft.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new lt.xQ,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=yt(()=>this.autocomplete&&this.autocomplete.options?(0,ko.T)(...this.autocomplete.options.map(t=>t.onSelectionChange)):this._zone.onStable.pipe((0,vt.q)(1),(0,Mt.w)(()=>this.optionSelections))),this._scrollStrategy=o}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(t){this._autocompleteDisabled=Zn(t)}ngAfterViewInit(){const t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular(()=>t.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const t=this._getWindow();void 0!==t&&t.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.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,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,ko.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,at.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,at.h)(()=>this._overlayAttached)):(0,ut.of)()).pipe((0,At.U)(t=>t instanceof al?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,ko.T)(es(this._document,"click"),es(this._document,"auxclick"),es(this._document,"touchend")).pipe((0,at.h)(t=>{const e=this._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,i=this._formField?this._formField._elementRef.nativeElement:null,n=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&e!==this._element.nativeElement&&(!i||!i.contains(e))&&(!n||!n.contains(e))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(e)}))}writeValue(t){Promise.resolve(null).then(()=>this._setTriggerValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){const e=t.keyCode;if(27!==e||So(t)||t.preventDefault(),this.activeOption&&13===e&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){const i=this.autocomplete._keyManager.activeItem,n=38===e||40===e;this.panelOpen||9===e?this.autocomplete._keyManager.onKeydown(t):n&&this._canOpen()&&this.openPanel(),(n||this.autocomplete._keyManager.activeItem!==i)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(t){let e=t.target,i=e.value;"number"===e.type&&(i=""==i?null:parseFloat(i)),this._previousValue!==i&&(this._previousValue=i,this._onChange(i),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(t=!1){this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const t=this._zone.onStable.pipe((0,vt.q)(1)),e=this.autocomplete.options.changes.pipe((0,Yt.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,mf.g)(0));return(0,ko.T)(t,e).pipe((0,Mt.w)(()=>{const t=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),t!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),(0,vt.q)(1)).subscribe(t=>this._setValueAndClose(t))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(t){const e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,i=null!=e?e:"";this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}_setValueAndClose(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()}_clearPreviousSelectedOption(t){this.autocomplete.options.forEach(e=>{e!==t&&e.selected&&e.deselect()})}_attachOverlay(){var t;null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!eo(this._element.nativeElement));let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new yo(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,e.keydownEvents().subscribe(t=>{(27===t.keyCode&&!So(t)||38===t.keyCode&&So(t,"altKey"))&&(this._resetActiveItem(),this._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),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 i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var t;return new Io({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(t=this._defaults)||void 0===t?void 0:t.overlayPanelClass})}_getOverlayPosition(){const t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){const e=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=this._aboveClass,n=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:i},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:i}];let s;s="above"===this.position?n:"below"===this.position?e:[...e,...n],t.withPositions(s)}_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 t=this.autocomplete;t.autoActiveFirstOption?t._keyManager.setFirstItemActive():t._keyManager.setActiveItem(-1)}_canOpen(){const t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}_getWindow(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}_scrollToOption(t){const e=this.autocomplete,i=ll(t,e.options,e.optionGroups);if(0===t&&1===i)e._setScrollTop(0);else if(e.panel){const i=e.options.toArray()[t];if(i){const t=i._getHostElement(),n=hl(t.offsetTop,t.offsetHeight,e._getScrollTop(),e.panel.nativeElement.offsetHeight);e._setScrollTop(n)}}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(er),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(s.sBO),s.Y36(gT),s.Y36(so,8),s.Y36(Uh,9),s.Y36(n.K0,8),s.Y36(fo),s.Y36(dT,8))},t.\u0275dir=s.lG2({type:t,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[s.TTD]}),t})(),yT=(()=>{class t extends bT{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&s.NdJ("focusin",function(){return e._handleFocus()})("blur",function(){return e._onTouched()})("input",function(t){return e._handleInput(t)})("keydown",function(t){return e._handleKeydown(t)}),2&t&&s.uIk("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[s._Bn([_T]),s.qOj]}),t})(),wT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[mT],imports:[[ar,dl,Mu,n.ez],go,dl,Mu]}),t})(),AT=(()=>{class t{transform(t){return t&&t.value?t.value:"never"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"validateExpiration",type:t,pure:!0}),t})();function MT(t,e){1&t&&s._UZ(0,"th",17)}function vT(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",18),s.TgZ(1,"mat-checkbox",19),s.NdJ("change",function(e){const i=s.CHM(t).$implicit,n=s.oxw();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),s.ALo(2,"validateExpiration"),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))("disabled","never"===s.lcZ(2,3,t.expirationAttribute))}}function TT(t,e){1&t&&(s.TgZ(0,"th",20),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"MEMBERSHIP_LIST.NAME"))))}function kT(t,e){if(1&t&&(s.TgZ(0,"td",21),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.entity.name)}}function LT(t,e){1&t&&(s.TgZ(0,"th",20),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"MEMBERSHIP_LIST.DESCRIPTION"))))}function CT(t,e){if(1&t&&(s.TgZ(0,"td",22),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.entity.description)}}function ST(t,e){1&t&&(s.TgZ(0,"th",23),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"MEMBERSHIP_LIST.EXPIRATION"))))}function ET(t,e){if(1&t&&(s.TgZ(0,"td",22),s._uU(1),s.ALo(2,"validateExpiration"),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",s.lcZ(2,1,t.expirationAttribute)," ")}}function zT(t,e){1&t&&s._UZ(0,"th",20)}function xT(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",22),s.TgZ(1,"button",24),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().extend(e)}),s.ALo(2,"validateExpiration"),s._uU(3),s.ALo(4,"translate"),s.ALo(5,"customTranslate"),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(1),s.Q6J("disabled","never"===s.lcZ(2,2,t.expirationAttribute)),s.xp6(2),s.Oqu(s.lcZ(4,4,s.lcZ(5,6,"MEMBERSHIP_LIST.EXTEND")))}}function OT(t,e){1&t&&s._UZ(0,"tr",25)}function RT(t,e){1&t&&s._UZ(0,"tr",26)}function DT(t,e){1&t&&(s.TgZ(0,"app-alert",27),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"MEMBERSHIP_LIST.NO_MEMBERSHIPS"))))}let PT=(()=>{class t{constructor(){this.members=[],this.searchString="",this.selection=new co(!1,[]),this.displayedColumns=["checkbox","name","description","expirationAttribute","extend"],this.filterValue="",this.extendMembership=new s.vpe,this.pageSizeOptions=ig}set matSort(t){this.sort=t,this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}ngOnChanges(){this.dataSource=new y_(this.members),this.setDataSource()}getDataForColumn(t,e){switch(e){case"name":return t.entity.name;case"description":return"description"in t.entity?t.entity.description:"";case"expirationAttribute":return t.expirationAttribute&&t.expirationAttribute.value?t.expirationAttribute.value:"never";default:return""}}exportData(t){ug(cg(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>ag(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>rg(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}checkboxLabel(t){return`${this.selection.isSelected(t)?"deselect":"select"} row ${t.entity.id+1}`}extend(t){this.extendMembership.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-membership-list"]],viewQuery:function(t,e){if(1&t&&(s.Gf(kv,7),s.Gf(mg,7)),2&t){let t;s.iGM(t=s.CRH())&&(e.matSort=t.first),s.iGM(t=s.CRH())&&(e.child=t.first)}},inputs:{members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",filterValue:"filterValue"},outputs:{extendMembership:"extendMembership"},features:[s.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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,MT,1,0,"th",4),s.YNc(5,vT,3,5,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,TT,4,5,"th",7),s.YNc(8,kT,2,1,"td",8),s.BQk(),s.ynx(9,9),s.YNc(10,LT,4,5,"th",7),s.YNc(11,CT,2,1,"td",10),s.BQk(),s.ynx(12,11),s.YNc(13,ST,4,5,"th",12),s.YNc(14,ET,3,3,"td",10),s.BQk(),s.ynx(15,13),s.YNc(16,zT,1,0,"th",7),s.YNc(17,xT,6,8,"td",10),s.BQk(),s.YNc(18,OT,1,0,"tr",14),s.YNc(19,RT,1,0,"tr",15),s.qZA(),s.qZA(),s.qZA(),s.YNc(20,DT,4,5,"app-alert",16)),2&t&&(s.Q6J("hidden",!e.dataSource.filteredData.length),s.xp6(1),s.Q6J("dataLength",e.dataSource.filteredData.length)("tableId",e.tableId)("pageSizeOptions",e.pageSizeOptions),s.xp6(1),s.Q6J("dataSource",e.dataSource),s.xp6(16),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",!e.dataSource.filteredData.length))},directives:[mg,c_,kv,h_,l_,u_,f_,g_,n.O5,d_,p_,vA,Ov,uh,m_,__,$g],pipes:[AT,eh,Og],styles:[""]}),t})();function NT(t,e){if(1&t&&(s.TgZ(0,"mat-option",13),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.hij(" ",t.name," ")}}function IT(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-form-field",7),s.TgZ(1,"mat-label"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s._UZ(4,"input",8),s.ALo(5,"translate"),s.ALo(6,"customTranslate"),s.TgZ(7,"mat-autocomplete",9,10),s.NdJ("optionSelected",function(e){return s.CHM(t),s.oxw().filterByVo(e)}),s.TgZ(9,"mat-option",11),s._uU(10),s.ALo(11,"translate"),s.ALo(12,"customTranslate"),s.qZA(),s.YNc(13,NT,2,2,"mat-option",12),s.ALo(14,"async"),s.qZA(),s.qZA()}if(2&t){const t=s.MAs(8),e=s.oxw();s.xp6(2),s.Oqu(s.lcZ(3,7,"GROUPS.SELECT_VO")),s.xp6(2),s.s9C("placeholder",s.lcZ(5,9,s.lcZ(6,11,"GROUPS.SELECT_VO"))),s.Q6J("formControl",e.myControl)("matAutocomplete",t),s.xp6(3),s.Q6J("displayWith",e.displayFn),s.xp6(3),s.Oqu(s.lcZ(11,13,s.lcZ(12,15,"GROUPS.ALL"))),s.xp6(3),s.Q6J("ngForOf",s.lcZ(14,17,e.filteredVos))}}function qT(t,e){1&t&&s._UZ(0,"mat-spinner",14)}function BT(t,e){1&t&&(s.TgZ(0,"app-alert",15),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"GROUPS.NO_GROUPS"))))}const HT=function(){return["name","description","expirationAttribute","extend"]};function YT(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"h4",16),s._uU(2),s.ALo(3,"translate"),s.ALo(4,"customTranslate"),s.qZA(),s.TgZ(5,"perun-web-apps-membership-list",17),s.NdJ("extendMembership",function(e){return s.CHM(t),s.oxw().extendMembership(e)}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(2),s.Oqu(s.lcZ(3,4,s.lcZ(4,6,"GROUPS.MEMBER_GROUPS"))),s.xp6(3),s.Q6J("members",t.userMemberships)("selection",t.selection)("displayedColumns",s.DdM(8,HT))}}const jT=function(){return["name","description"]};function FT(t,e){if(1&t&&(s.TgZ(0,"div",18),s.TgZ(1,"h4",16),s._uU(2),s.ALo(3,"translate"),s.ALo(4,"customTranslate"),s.qZA(),s._UZ(5,"perun-web-apps-membership-list",19),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.Oqu(s.lcZ(3,3,s.lcZ(4,5,"GROUPS.ADMINS_GROUPS"))),s.xp6(3),s.Q6J("members",t.adminMemberships)("displayedColumns",s.DdM(7,jT))}}let WT=(()=>{class t{constructor(t,e,i,n,s,o){this.usersService=t,this.memberService=e,this.groupService=i,this.store=n,this.vosManagerService=s,this.attributesManagerService=o,this.loading=!1,this.vos=[],this.myControl=new Wd,this.selection=new co(!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(t=>{this.vos=t,this.filteredVos=this.myControl.valueChanges.pipe(kt(""),(0,At.U)(t=>this._filter(t))),this.getAllGroups()})}_filter(t){const e="string"==typeof t?t.toLowerCase():t.name.toLowerCase;return this.vos.filter(t=>t.name.toLowerCase().includes(e))}getAllGroups(){this.loading=!0;let t=0,e=0;this.userMemberships=[],this.adminMemberships=[];const i=this.store.getPerunPrincipal().roles.SELF.Member;i.length?e=i.length:this.loading=!1,i.forEach(i=>{e--,this.groupService.getMemberGroups(i).subscribe(n=>{t+=n.length,this.loading=0===t&&0!==e,n.forEach(e=>{this.attributesManagerService.getMemberGroupAttributes(i,e.id).subscribe(i=>{t--,this.userMemberships.push({entity:e,expirationAttribute:i.find(t=>"groupMembershipExpiration"===t.friendlyName)}),this.loading=0!==t})})})}),this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(t=>{t.forEach(t=>{this.adminMemberships.push({entity:t,expirationAttribute:null})})})}displayFn(t){return t?t.name:null}filterByVo(t){if("all"===t.option.value)this.getAllGroups();else{this.userMemberships=[],this.adminMemberships=[],this.loading=!0;const e=t.option.value;this.memberService.getMemberByUser(e.id,this.userId).subscribe(t=>{this.groupService.getMemberGroups(t.id).subscribe(e=>{let i=e.length;this.loading=0!==i,e.forEach(e=>{this.attributesManagerService.getMemberGroupAttributes(t.id,e.id).subscribe(t=>{i--,this.userMemberships.push({entity:e,expirationAttribute:t.find(t=>"groupMembershipExpiration"===t.friendlyName)}),this.loading=0!==i})})})}),this.usersService.getGroupsInVoWhereUserIsAdmin(this.userId,e.id).subscribe(t=>{t.forEach(t=>{this.adminMemberships.push({entity:t,expirationAttribute:null})})})}}extendMembership(t){const e=this.store.get("registrar_base_url"),i=t.entity,n=this.vos.find(t=>t.id===i.voId).shortName;window.location.href=`${e}?vo=${n}&group=${t.entity.shortName}`}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(J),s.Y36(G),s.Y36(Z),s.Y36(Kn),s.Y36(tt),s.Y36(U))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.TgZ(4,"div",1),s.YNc(5,IT,15,19,"mat-form-field",2),s.YNc(6,qT,1,0,"mat-spinner",3),s.YNc(7,BT,4,5,"app-alert",4),s.YNc(8,YT,6,9,"div",5),s.YNc(9,FT,6,8,"div",6),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,6,s.lcZ(3,8,"GROUPS.TITLE"))),s.xp6(4),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.userMemberships.length&&!e.adminMemberships.length&&!e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading&&0!==e.userMemberships.length),s.xp6(1),s.Q6J("ngIf",!e.loading&&0!==e.adminMemberships.length))},directives:[n.O5,Kh,Nh,Wg,Qh,yT,Td,op,fT,ul,n.sg,am,$g,PT],pipes:[eh,Og,n.Ov],styles:[""]}),t})();function UT(t,e){if(1&t&&(s._UZ(0,"input",3),s.ALo(1,"translate")),2&t){const t=s.oxw();s.s9C("placeholder",s.lcZ(1,2,t.placeholder)),s.Q6J("formControl",t.formControl)}}function KT(t,e){if(1&t&&(s._UZ(0,"input",4),s.ALo(1,"translate")),2&t){const t=s.oxw();s.s9C("placeholder",s.lcZ(1,2,t.placeholder)),s.Q6J("formControl",t.formControl)}}let ZT=(()=>{class t{constructor(){this.filter=new s.vpe,this.autoFocus=!1,this.formControl=new Wd}ngOnInit(){this.formControl.valueChanges.subscribe(t=>{let e=t.trim();e=e.toLowerCase(),this.filter.emit(e)})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,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","",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(t,e){1&t&&(s.TgZ(0,"mat-form-field",0),s.YNc(1,UT,2,4,"input",1),s.YNc(2,KT,2,4,"input",2),s.qZA()),2&t&&(s.xp6(1),s.Q6J("ngIf",e.autoFocus),s.xp6(1),s.Q6J("ngIf",!e.autoFocus))},directives:[Kh,n.O5,Wg,Qh,Dv,Td,op],pipes:[eh],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:auto!important}"]}),t})(),GT=0;const XT=new s.OlP("CdkAccordion");let VT=(()=>{class t{constructor(){this._stateChanges=new lt.xQ,this._openCloseAllActions=new lt.xQ,this.id="cdk-accordion-"+GT++,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=Zn(t)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[s._Bn([{provide:XT,useExisting:t}]),s.TTD]}),t})(),$T=0,JT=(()=>{class t{constructor(t,e,i){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=i,this._openCloseAllSubscription=Ft.w.EMPTY,this.closed=new s.vpe,this.opened=new s.vpe,this.destroyed=new s.vpe,this.expandedChange=new s.vpe,this.id="cdk-accordion-child-"+$T++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=i.listen((t,e)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===e&&this.id!==t&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(t){t=Zn(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(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(t){this._disabled=Zn(t)}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(t=>{this.disabled||(this.expanded=t)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(XT,12),s.Y36(s.sBO),s.Y36(uo))},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[s._Bn([{provide:XT,useValue:void 0}])]}),t})(),QT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();const tk=["body"];function ek(t,e){}const ik=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],nk=["mat-expansion-panel-header","*","mat-action-row"];function sk(t,e){if(1&t&&s._UZ(0,"span",2),2&t){const t=s.oxw();s.Q6J("@indicatorRotate",t._getExpandedState())}}const ok=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],rk=["mat-panel-title","mat-panel-description","*"],ak=new s.OlP("MAT_ACCORDION"),ck={indicatorRotate:Yr("indicatorRotate",[Kr("collapsed, void",Ur({transform:"rotate(0deg)"})),Kr("expanded",Ur({transform:"rotate(180deg)"})),Gr("expanded <=> collapsed, void => collapsed",jr("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),bodyExpansion:Yr("bodyExpansion",[Kr("collapsed, void",Ur({height:"0px",visibility:"hidden"})),Kr("expanded",Ur({height:"*",visibility:"visible"})),Gr("expanded <=> collapsed, void => collapsed",jr("225ms cubic-bezier(0.4,0.0,0.2,1)"))])};let uk=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),lk=0;const hk=new s.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let dk=(()=>{class t extends JT{constructor(t,e,i,n,o,r,a){super(t,e,i),this._viewContainerRef=n,this._animationMode=r,this._hideToggle=!1,this.afterExpand=new s.vpe,this.afterCollapse=new s.vpe,this._inputChanges=new lt.xQ,this._headerId="mat-expansion-panel-header-"+lk++,this._bodyAnimationDone=new lt.xQ,this.accordion=t,this._document=o,this._bodyAnimationDone.pipe(_s((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{"void"!==t.fromState&&("expanded"===t.toState?this.afterExpand.emit():"collapsed"===t.toState&&this.afterCollapse.emit())}),a&&(this.hideToggle=a.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=Zn(t)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}_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.opened.pipe(kt(null),(0,at.h)(()=>this.expanded&&!this._portal),(0,vt.q)(1)).subscribe(()=>{this._portal=new yo(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(ak,12),s.Y36(s.sBO),s.Y36(uo),s.Y36(s.s_b),s.Y36(n.K0),s.Y36(lu,8),s.Y36(hk,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,uk,5),2&t){let t;s.iGM(t=s.CRH())&&(e._lazyContent=t.first)}},viewQuery:function(t,e){if(1&t&&s.Gf(tk,5),2&t){let t;s.iGM(t=s.CRH())&&(e._body=t.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&s.ekj("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[s._Bn([{provide:ak,useValue:void 0}]),s.qOj,s.TTD],ngContentSelectors:nk,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(s.F$t(ik),s.Hsn(0),s.TgZ(1,"div",0,1),s.NdJ("@bodyExpansion.done",function(t){return e._bodyAnimationDone.next(t)}),s.TgZ(3,"div",2),s.Hsn(4,1),s.YNc(5,ek,0,0,"ng-template",3),s.qZA(),s.Hsn(6,2),s.qZA()),2&t&&(s.xp6(1),s.Q6J("@bodyExpansion",e._getExpandedState())("id",e.id),s.uIk("aria-labelledby",e._headerId),s.xp6(4),s.Q6J("cdkPortalOutlet",e._portal))},directives:[vo],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-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 button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[ck.bodyExpansion]},changeDetection:0}),t})(),pk=(()=>{class t{constructor(t,e,i,n,s,o){this.panel=t,this._element=e,this._focusMonitor=i,this._changeDetectorRef=n,this._animationMode=o,this._parentChangeSubscription=Ft.w.EMPTY;const r=t.accordion?t.accordion._stateChanges.pipe((0,at.h)(t=>!(!t.hideToggle&&!t.togglePosition))):bt.E;this._parentChangeSubscription=(0,ko.T)(t.opened,t.closed,r,t._inputChanges.pipe((0,at.h)(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe((0,at.h)(()=>t._containsFocus())).subscribe(()=>i.focusVia(e,"program")),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.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 t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}_keydown(t){switch(t.keyCode){case 32:case 13:So(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t,e){t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(t=>{t&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(dk,1),s.Y36(s.SBq),s.Y36(Pr),s.Y36(s.sBO),s.Y36(hk,8),s.Y36(lu,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e._toggle()})("keydown",function(t){return e._keydown(t)}),2&t&&(s.uIk("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),s.Udp("height",e._getHeaderHeight()),s.ekj("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:rk,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(s.F$t(ok),s.TgZ(0,"span",0),s.Hsn(1),s.Hsn(2,1),s.Hsn(3,2),s.qZA(),s.YNc(4,sk,1,1,"span",1)),2&t&&(s.xp6(4),s.Q6J("ngIf",e._showToggle()))},directives:[n.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}[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 .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[ck.indicatorRotate]},changeDetection:0}),t})(),fk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),gk=(()=>{class t extends VT{constructor(){super(...arguments),this._ownHeaders=new s.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(t){this._hideToggle=Zn(t)}ngAfterContentInit(){this._headers.changes.pipe(kt(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Mr(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(t){this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["mat-accordion"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,pk,5),2&t){let t;s.iGM(t=s.CRH())&&(e._headers=t)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[s._Bn([{provide:ak,useExisting:t}]),s.qOj]}),t})(),mk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,Mu,QT,To]]}),t})();function _k(t,e){1&t&&(s.TgZ(0,"mat-icon",1),s.ALo(1,"translate"),s._uU(2," visibility\n"),s.qZA()),2&t&&s.s9C("matTooltip",s.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}let bk=(()=>{class t{constructor(){this.recentIds=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&s.YNc(0,_k,3,3,"mat-icon",0),2&t&&s.Q6J("ngIf",e.recentIds.indexOf(e.id)>-1)},directives:[n.O5,Jf,$p],pipes:[eh],styles:[".disabled-icon[_ngcontent-%COMP%]{color:rgba(0,0,0,.26)}"]}),t})();function yk(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"span",3),s.NdJ("click",function(){return s.CHM(t),s.oxw().changeStatus()}),s.ALo(1,"translate"),s.TgZ(2,"mat-icon",4),s._uU(3,"check_circle_outline"),s.qZA(),s.qZA()}2&t&&s.s9C("matTooltip",s.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE"))}function wk(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"span",3),s.NdJ("click",function(){return s.CHM(t),s.oxw().changeStatus()}),s.ALo(1,"translate"),s.TgZ(2,"mat-icon",5),s._uU(3,"block"),s.qZA(),s.qZA()}2&t&&s.s9C("matTooltip",s.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE"))}function Ak(t,e){if(1&t&&(s.TgZ(0,"span",6),s.ALo(1,"translate"),s.TgZ(2,"mat-icon",7),s._uU(3,"report"),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.hYB("matTooltip","",s.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",t.failureCause,"")}}function Mk(t,e){1&t&&(s.TgZ(0,"span",6),s.ALo(1,"translate"),s.TgZ(2,"mat-icon",8),s._uU(3,"autorenew"),s.qZA(),s.qZA()),2&t&&s.s9C("matTooltip",s.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}let vk=(()=>{class t{constructor(t){this.dialog=t,this.status="",this.statusChange=new s.vpe}changeStatus(){const t=ng();t.width="500px",t.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(pb,t).afterClosed().subscribe(t=>{t&&this.statusChange.emit()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Ll))},t.\u0275cmp=s.Xpm({type:t,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"],["matTooltipPosition","above",3,"matTooltip"],[1,"red"],[1,"black"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.YNc(1,yk,4,3,"span",1),s.YNc(2,wk,4,3,"span",1),s.YNc(3,Ak,4,4,"span",2),s.YNc(4,Mk,4,3,"span",2),s.qZA()),2&t&&(s.xp6(1),s.Q6J("ngIf","ACTIVE"===e.status),s.xp6(1),s.Q6J("ngIf","INACTIVE"===e.status),s.xp6(1),s.Q6J("ngIf","FAILED"===e.status),s.xp6(1),s.Q6J("ngIf","PROCESSING"===e.status))},directives:[n.O5,$p,Jf],pipes:[eh],styles:[""]}),t})(),Tk=(()=>{class t{transform(t){if(null==t)return null;let e="";return t.forEach(function(t){e=e.concat(t.tagName)}),e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"resourceTagsToString",type:t,pure:!0}),t})(),kk=(()=>{class t{transform(t,e){return e?`/organizations/${t.voId}/resources/${t.id}`:`/facilities/${t.facilityId}/resources/${t.id}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"getResourceRoute",type:t,pure:!0}),t})();function Lk(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"th",22),s.TgZ(1,"mat-checkbox",23),s.NdJ("change",function(e){s.CHM(t);const i=s.oxw();return e?i.masterToggle():null}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function Ck(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",24),s.TgZ(1,"span",25),s.ALo(2,"translate"),s.TgZ(3,"mat-checkbox",26),s.NdJ("change",function(e){const i=s.CHM(t).$implicit,n=s.oxw();return e?n.itemSelectionToggle(i):null})("click",function(t){return t.stopPropagation()}),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.s9C("matTooltip",s.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE")),s.Q6J("matTooltipPosition","above")("matTooltipDisabled",!i.disableSelect(t)),s.xp6(2),s.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))("disabled",i.disableSelect(t))}}function Sk(t,e){1&t&&(s.TgZ(0,"th",27),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")))}function Ek(t,e){if(1&t&&(s.TgZ(0,"td",28),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.id)}}function zk(t,e){1&t&&s._UZ(0,"th",29)}function xk(t,e){if(1&t&&(s.TgZ(0,"td",30),s._UZ(1,"perun-web-apps-recently-viewed-icon",31),s.qZA()),2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.Q6J("recentIds",i.recentIds)("id",t.id)}}function Ok(t,e){1&t&&s._UZ(0,"th",29)}function Rk(t,e){1&t&&(s.TgZ(0,"mat-icon",33),s.ALo(1,"translate"),s._uU(2,"account_tree"),s.qZA()),2&t&&s.Q6J("matTooltip",s.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE"))}function Dk(t,e){if(1&t&&(s.TgZ(0,"td",30),s.YNc(1,Rk,3,3,"mat-icon",32),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Q6J("ngIf",t.sourceGroupId)}}function Pk(t,e){1&t&&(s.TgZ(0,"th",27),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")))}function Nk(t,e){if(1&t&&(s.TgZ(0,"td",30),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.name)}}function Ik(t,e){1&t&&(s.TgZ(0,"th",27),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")))}function qk(t,e){if(1&t&&(s.TgZ(0,"td",30),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.vo.name)}}function Bk(t,e){1&t&&(s.TgZ(0,"th",27),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")))}function Hk(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",30),s.TgZ(1,"perun-web-apps-group-resource-status",34),s.NdJ("mouseenter",function(){return s.CHM(t),s.oxw().disabledRouting=!0})("mouseleave",function(){s.CHM(t);const e=s.oxw();return e.disabledRouting=e.disableRouting})("statusChange",function(){return s.CHM(t),s.oxw().refreshTable.emit()}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.Q6J("theme","group-theme")("resourceId",t.id)("groupId",i.groupId)("failureCause",t.failureCause)("status",t.status)}}function Yk(t,e){1&t&&(s.TgZ(0,"th",27),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")))}function jk(t,e){if(1&t&&(s.TgZ(0,"td",30),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.facility.name)}}function Fk(t,e){1&t&&(s.TgZ(0,"th",27),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")))}function Wk(t,e){if(1&t&&(s.TgZ(0,"td",30),s._uU(1),s.ALo(2,"resourceTagsToString"),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(s.lcZ(2,1,t.resourceTags))}}function Uk(t,e){1&t&&(s.TgZ(0,"th",27),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")))}function Kk(t,e){if(1&t&&(s.TgZ(0,"td",30),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.description)}}function Zk(t,e){1&t&&s._UZ(0,"tr",35)}const Gk=function(t){return[t]};function Xk(t,e){if(1&t&&(s._UZ(0,"tr",36),s.ALo(1,"getResourceRoute"),s.ALo(2,"getResourceRoute")),2&t){const t=e.$implicit,i=s.oxw();s.ekj("cursor-pointer",!i.disableRouting)("disable-outline",i.disabledRouting),s.Q6J("perunWebAppsMiddleClickRouterLink",s.VKq(12,Gk,i.disabledRouting?null:s.xi3(1,6,t,i.routingVo)))("routerLink",i.disabledRouting?null:s.xi3(2,9,t,i.routingVo))}}function Vk(t,e){1&t&&(s.TgZ(0,"app-alert",37),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function $k(t,e){1&t&&(s.TgZ(0,"app-alert",37),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}let Jk=(()=>{class t{constructor(t,e){this.guiAuthResolver=t,this.tableCheckbox=e,this.resources=[],this.selection=new co(!0,[]),this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","indirectResourceAssigment","name","vo","status","facility","tags","description"],this.pageSizeOptions=ig,this.groupId=null,this.resourcesToDisableCheckbox=new Set,this.refreshTable=new s.vpe,this.allSelected=new s.vpe,this.removeAuth=!1,this.addAuth=!1,this.canBeSelected=t=>!this.disableSelect(t)}set matSort(t){this.sort=t}ngOnInit(){this.disabledRouting=this.disableRouting}ngOnChanges(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.setDataSource(),this.setAuth()}getDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return t.vo.name;case"name":return t.name;case"facility":return t.facility.name;case"description":return t.description;case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;case"tags":{if(!t.resourceTags)return t[e];let i="";return t.resourceTags.forEach(function(t){i=i.concat(t.tagName)}),i}case"status":return t.status;case"uuid":return t.uuid;default:return t[e]}}exportData(t){ug(cg(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource||(this.dataSource=new y_,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(t,e)=>ag(t,e,this.displayedColumns,this.getDataForColumn,this,!0),this.dataSource.sortData=(t,e)=>rg(t,e,this.getDataForColumn,this)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}isAllSelected(){const t=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(t),t}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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}setAuth(){const t=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce((e,i)=>e&&this.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",t.concat([i])),!0),this.addAuth=this.selection.selected.reduce((e,i)=>e&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",t.concat([i])),!0)}itemSelectionToggle(t){this.selection.toggle(t),this.setAuth()}disableSelect(t){return this.resourcesToDisableCheckbox.has(t.id)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(rt),s.Y36(Lg))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(t,e){if(1&t&&(s.Gf(kv,7),s.Gf(mg,7)),2&t){let t;s.iGM(t=s.CRH())&&(e.matSort=t.first),s.iGM(t=s.CRH())&&(e.child=t.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:[s.TTD],decls:37,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","status"],["matColumnDef","facility"],["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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,Lk,2,3,"th",4),s.YNc(5,Ck,4,8,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,Sk,3,3,"th",7),s.YNc(8,Ek,2,1,"td",8),s.BQk(),s.ynx(9,9),s.YNc(10,zk,1,0,"th",10),s.YNc(11,xk,2,2,"td",11),s.BQk(),s.ynx(12,12),s.YNc(13,Ok,1,0,"th",10),s.YNc(14,Dk,2,1,"td",11),s.BQk(),s.ynx(15,13),s.YNc(16,Pk,3,3,"th",7),s.YNc(17,Nk,2,1,"td",11),s.BQk(),s.ynx(18,14),s.YNc(19,Ik,3,3,"th",7),s.YNc(20,qk,2,1,"td",11),s.BQk(),s.ynx(21,15),s.YNc(22,Bk,3,3,"th",7),s.YNc(23,Hk,2,5,"td",11),s.BQk(),s.ynx(24,16),s.YNc(25,Yk,3,3,"th",7),s.YNc(26,jk,2,1,"td",11),s.BQk(),s.ynx(27,17),s.YNc(28,Fk,3,3,"th",7),s.YNc(29,Wk,3,3,"td",11),s.BQk(),s.ynx(30,18),s.YNc(31,Uk,3,3,"th",7),s.YNc(32,Kk,2,1,"td",11),s.BQk(),s.YNc(33,Zk,1,0,"tr",19),s.YNc(34,Xk,3,14,"tr",20),s.qZA(),s.qZA(),s.qZA(),s.YNc(35,Vk,3,3,"app-alert",21),s.YNc(36,$k,3,3,"app-alert",21)),2&t&&(s.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.resources.length),s.xp6(1),s.Q6J("dataLength",e.dataSource.filteredData.length)("tableId",e.tableId)("pageSizeOptions",e.pageSizeOptions),s.xp6(1),s.Q6J("dataSource",e.dataSource),s.xp6(31),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.resources.length),s.xp6(1),s.Q6J("ngIf",0===e.resources.length))},directives:[mg,c_,kv,h_,l_,u_,f_,g_,n.O5,d_,vA,p_,$p,Ov,bk,Jf,vk,m_,__,Pv,vn,$g],pipes:[eh,Tk,kk],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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t})();function Qk(t,e){1&t&&s._UZ(0,"mat-spinner",8)}const tL=function(){return["name","description"]};function eL(t,e){if(1&t&&s._UZ(0,"perun-web-apps-resources-list",9),2&t){const t=s.oxw(3);s.Q6J("resources",t.resources)("displayedColumns",s.DdM(3,tL))("disableRouting",!0)}}function iL(t,e){if(1&t&&(s.YNc(0,Qk,1,0,"mat-spinner",6),s.YNc(1,eL,1,4,"perun-web-apps-resources-list",7)),2&t){const t=s.oxw(2);s.Q6J("ngIf",t.loading),s.xp6(1),s.Q6J("ngIf",!t.loading)}}function nL(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-expansion-panel",4),s.NdJ("opened",function(){const e=s.CHM(t).$implicit;return s.oxw().getMemberData(e)}),s.TgZ(1,"mat-expansion-panel-header"),s.TgZ(2,"mat-panel-title"),s._uU(3),s.qZA(),s.qZA(),s.YNc(4,iL,2,2,"ng-template",5),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(3),s.hij(" ",t.name," ")}}let sL=(()=>{class t{constructor(t,e,i,n){this.usersManagerService=t,this.membersManagerService=e,this.resourcesManagerService=i,this.storage=n,this.resources=[],this.filteredVos=[]}ngOnInit(){this.userId=this.storage.getPerunPrincipal().userId,this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(t=>{this.vos=t,this.filteredVos=t})}getMemberData(t){this.loading=!0,this.membersManagerService.getMemberByUser(t.id,this.userId).subscribe(t=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(t.id).subscribe(t=>{this.resources=t,this.loading=!1})})}applyFilter(t){this.filteredVos=this.vos.filter(e=>e.name.toLowerCase().includes(t.toLowerCase()))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(J),s.Y36(G),s.Y36($),s.Y36(Kn))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.TgZ(4,"div",1),s.TgZ(5,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.ALo(6,"translate"),s.ALo(7,"customTranslate"),s.qZA(),s.TgZ(8,"mat-accordion"),s.YNc(9,nL,5,1,"mat-expansion-panel",3),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,3,s.lcZ(3,5,"SERVICES.TITLE"))),s.xp6(4),s.Q6J("placeholder",s.lcZ(6,7,s.lcZ(7,9,"SERVICES.FILTER"))),s.xp6(4),s.Q6J("ngForOf",e.filteredVos))},directives:[ZT,gk,n.sg,dk,pk,fk,uk,n.O5,am,Jk],pipes:[eh,Og],styles:[""]}),t})();function oL(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-immediate-filter",5),s.NdJ("filter",function(e){return s.CHM(t),s.oxw().applyFilter(e)}),s.qZA()}2&t&&s.Q6J("placeholder","ORGANIZATIONS.FILTER")}function rL(t,e){1&t&&s._UZ(0,"mat-spinner",6)}const aL=function(){return["name","expirationAttribute","extend"]};function cL(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"perun-web-apps-membership-list",11),s.NdJ("extendMembership",function(e){return s.CHM(t),s.oxw(2).extendMembership(e)}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("members",t.userMemberships)("selection",t.selection)("filterValue",t.filterValue)("displayedColumns",s.DdM(4,aL))}}function uL(t,e){1&t&&(s.TgZ(0,"app-alert",12),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}function lL(t,e){if(1&t&&(s.TgZ(0,"div",7),s.TgZ(1,"h1",8),s._uU(2),s.ALo(3,"translate"),s.ALo(4,"customTranslate"),s.qZA(),s.YNc(5,cL,2,5,"div",9),s.YNc(6,uL,4,5,"app-alert",10),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.Oqu(s.lcZ(3,3,s.lcZ(4,5,"ORGANIZATIONS.IS_MEMBER"))),s.xp6(3),s.Q6J("ngIf",0!==t.userMemberships.length),s.xp6(1),s.Q6J("ngIf",0===t.userMemberships.length)}}function hL(t,e){1&t&&(s.TgZ(0,"app-alert",12),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}const dL=function(){return["name"]};function pL(t,e){if(1&t&&s._UZ(0,"perun-web-apps-membership-list",14),2&t){const t=s.oxw(2);s.Q6J("members",t.adminMemberships)("filterValue",t.filterValue)("displayedColumns",s.DdM(3,dL))}}function fL(t,e){if(1&t&&(s.TgZ(0,"div",7),s.TgZ(1,"h1",8),s._uU(2),s.ALo(3,"translate"),s.ALo(4,"customTranslate"),s.qZA(),s.YNc(5,hL,4,5,"app-alert",10),s.YNc(6,pL,1,4,"perun-web-apps-membership-list",13),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.Oqu(s.lcZ(3,3,s.lcZ(4,5,"ORGANIZATIONS.IS_ADMIN"))),s.xp6(3),s.Q6J("ngIf",!t.adminMemberships.length),s.xp6(1),s.Q6J("ngIf",t.adminMemberships.length)}}let gL=(()=>{class t{constructor(t,e,i){this.usersService=t,this.store=e,this.membersService=i,this.filterValue="",this.selection=new co(!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(t=>{this.usersService.getVosWhereUserIsAdmin(this.userId).subscribe(e=>{this.vosCount=t.length+e.length,this.fillMemberships(t,this.userMemberships),this.fillMemberships(e,this.adminMemberships)})})}applyFilter(t){this.filterValue=t}isEverythingLoaded(){this.vosCount--,this.loading=0!==this.vosCount}fillMemberships(t,e){this.membersService.getMembersByUser(this.userId).subscribe(i=>{t.forEach(t=>{const n=i.find(e=>e.voId===t.id);n?this.membersService.getRichMemberWithAttributes(n.id).subscribe(i=>{const n=i.memberAttributes.find(t=>"membershipExpiration"===t.friendlyName);e.push({entity:t,expirationAttribute:n}),this.isEverythingLoaded()}):(e.push({entity:t,expirationAttribute:null}),this.isEverythingLoaded())})})}extendMembership(t){const e=this.store.get("registrar_base_url");window.location.href=`${e}?vo=${t.entity.shortName}`}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(J),s.Y36(Kn),s.Y36(G))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.TgZ(4,"div",1),s.YNc(5,oL,1,1,"perun-web-apps-immediate-filter",2),s.YNc(6,rL,1,0,"mat-spinner",3),s.YNc(7,lL,7,7,"div",4),s.YNc(8,fL,7,7,"div",4),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,5,s.lcZ(3,7,"ORGANIZATIONS.TITLE"))),s.xp6(4),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[n.O5,ZT,am,PT,$g],pipes:[eh,Og],styles:[""]}),t})(),mL=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-settings-page"]],decls:2,vars:0,consts:[[1,"user-theme"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s._UZ(1,"router-outlet"),s.qZA())},directives:[Ln],styles:[""]}),t})(),_L=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,this.password=""}ngOnInit(){this.password=this.data.password}onClose(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(Al))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.TgZ(4,"div",1),s.TgZ(5,"p"),s._uU(6),s.ALo(7,"translate"),s.ALo(8,"customTranslate"),s.qZA(),s.TgZ(9,"label"),s._UZ(10,"input",2),s.qZA(),s.qZA(),s.TgZ(11,"div",3),s.TgZ(12,"button",4),s.NdJ("click",function(){return e.onClose()}),s._uU(13),s.ALo(14,"translate"),s.ALo(15,"customTranslate"),s.qZA(),s.TgZ(16,"button",5),s._uU(17),s.ALo(18,"translate"),s.ALo(19,"customTranslate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,6,s.lcZ(3,8,"DIALOGS.SHOW_PASSWORD.TITLE"))),s.xp6(5),s.Oqu(s.lcZ(7,10,s.lcZ(8,12,"DIALOGS.SHOW_PASSWORD.LABEL"))),s.xp6(4),s.Q6J("value",e.password),s.xp6(3),s.hij(" ",s.lcZ(14,14,s.lcZ(15,16,"DIALOGS.SHOW_PASSWORD.CLOSE"))," "),s.xp6(3),s.Q6J("cdkCopyToClipboard",e.password),s.xp6(1),s.hij(" ",s.lcZ(18,18,s.lcZ(19,20,"DIALOGS.SHOW_PASSWORD.COPY"))," "))},directives:[Sl,El,zl,uh,z_],pipes:[eh,Og],styles:[".center-text[_ngcontent-%COMP%]{text-align:center}"]}),t})();function bL(t,e){1&t&&s._UZ(0,"mat-spinner",7)}function yL(t,e){1&t&&s._UZ(0,"th",16)}function wL(t,e){if(1&t&&(s.TgZ(0,"td",17),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",t," ")}}function AL(t,e){1&t&&s._UZ(0,"tr",18)}function ML(t,e){1&t&&s._UZ(0,"tr",19)}function vL(t,e){if(1&t&&(s.TgZ(0,"div",8),s.TgZ(1,"p"),s._uU(2),s.ALo(3,"translate"),s.ALo(4,"customTranslate"),s.qZA(),s.TgZ(5,"div",9),s._uU(6),s.ALo(7,"translate"),s.ALo(8,"customTranslate"),s.qZA(),s.TgZ(9,"table",10),s.ynx(10,11),s.YNc(11,yL,1,0,"th",12),s.YNc(12,wL,2,1,"td",13),s.BQk(),s.YNc(13,AL,1,0,"tr",14),s.YNc(14,ML,1,0,"tr",15),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,5,s.lcZ(4,7,"DIALOGS.REMOVE_ALT_PASSWORD.DESCRIPTION"))," "),s.xp6(4),s.hij(" ",s.lcZ(7,9,s.lcZ(8,11,"DIALOGS.REMOVE_ALT_PASSWORD.ASK"))," "),s.xp6(3),s.Q6J("dataSource",t.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",t.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",t.displayedColumns)}}let TL=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.usersManagerService=i,this.displayedColumns=["description"]}ngOnInit(){this.dataSource=new y_(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 t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(Al),s.Y36(J))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.TgZ(4,"div",1),s.YNc(5,bL,1,0,"mat-spinner",2),s.qZA(),s.YNc(6,vL,15,13,"div",3),s.TgZ(7,"div",4),s.TgZ(8,"button",5),s.NdJ("click",function(){return e.onCancel()}),s._uU(9),s.ALo(10,"translate"),s.ALo(11,"customTranslate"),s.qZA(),s.TgZ(12,"button",6),s.NdJ("click",function(){return e.onSubmit()}),s._uU(13),s.ALo(14,"translate"),s.ALo(15,"customTranslate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,5,s.lcZ(3,7,"DIALOGS.REMOVE_ALT_PASSWORD.TITLE"))),s.xp6(4),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(10,9,s.lcZ(11,11,"DIALOGS.REMOVE_ALT_PASSWORD.CANCEL"))," "),s.xp6(4),s.hij(" ",s.lcZ(14,13,s.lcZ(15,15,"DIALOGS.REMOVE_ALT_PASSWORD.REMOVE"))," "))},directives:[Sl,n.O5,zl,uh,am,El,c_,h_,l_,u_,f_,g_,d_,p_,m_,__],pipes:[eh,Og],styles:[""]}),t})();function kL(t,e){1&t&&s._UZ(0,"th",12)}function LL(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",13),s.TgZ(1,"mat-checkbox",14),s.NdJ("change",function(e){const i=s.CHM(t).$implicit,n=s.oxw();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function CL(t,e){if(1&t&&(s.TgZ(0,"th",15),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Oqu(t.headerColumnText)}}function SL(t,e){if(1&t&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t)}}function EL(t,e){1&t&&s._UZ(0,"tr",17)}function zL(t,e){1&t&&s._UZ(0,"tr",18)}function xL(t,e){if(1&t&&(s.TgZ(0,"app-alert",19),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.hij(" ",t.alertText,"\n")}}let OL=(()=>{class t{constructor(){this.values=[],this.selection=new co(!1,[]),this.alertText="",this.headerColumnText="",this.displayedColumns=["select","value"]}ngOnChanges(){this.values=this.values?this.values:[],this.dataSource=new y_(this.values),this.setDataSource()}getExportDataForColumn(t){return t}exportData(t){ug(cg(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}checkboxLabel(t){return(this.selection.isSelected(t)?"deselect":"select")+" row"}ngAfterViewInit(){this.setDataSource()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-string-list"]],viewQuery:function(t,e){if(1&t&&s.Gf(mg,7),2&t){let t;s.iGM(t=s.CRH())&&(e.child=t.first)}},inputs:{values:"values",selection:"selection",alertText:"alertText",headerColumnText:"headerColumnText"},features:[s.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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,kL,1,0,"th",4),s.YNc(5,LL,2,2,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,CL,2,1,"th",7),s.YNc(8,SL,2,1,"td",8),s.BQk(),s.YNc(9,EL,1,0,"tr",9),s.YNc(10,zL,1,0,"tr",10),s.qZA(),s.qZA(),s.qZA(),s.YNc(11,xL,2,1,"app-alert",11)),2&t&&(s.Q6J("hidden",!e.values.length),s.xp6(1),s.Q6J("dataLength",e.dataSource.filteredData.length),s.xp6(1),s.Q6J("dataSource",e.dataSource),s.xp6(7),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===e.values.length))},directives:[mg,c_,h_,l_,u_,f_,g_,n.O5,d_,p_,vA,m_,__,$g],styles:[".static-column-size[_ngcontent-%COMP%]{width:20px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100px}"]}),t})();function RL(t,e){if(1&t&&s._UZ(0,"perun-web-apps-string-list",10),2&t){const t=s.oxw();s.Q6J("values",t.displayedValues)("selection",t.selection)("alertText",t.alertText)("headerColumnText",t.headerColumnText)}}function DL(t,e){1&t&&s._UZ(0,"mat-spinner",11)}let PL=(()=>{class t{constructor(t,e,i,n,s){this.store=t,this.attributesManagerService=e,this.dialog=i,this.translateService=n,this.usersManagerService=s,this.altPasswordCtrl=new Wd(null,[od.required]),this.userId=this.store.getPerunPrincipal().userId,this.passwordDescriptions=new Set,this.displayedValues=[],this.selection=new co(!1,[]),n.get("ALT_PASSWORDS.REMOVE_DIALOG_DESCRIPTION").subscribe(t=>this.removeDialogDescription=t),n.get("ALT_PASSWORDS.REMOVE_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t),n.get("ALERTS.NO_ALT_PASSWORDS").subscribe(t=>this.alertText=t),n.get("ALT_PASSWORDS.HEADER_COLUMN").subscribe(t=>this.headerColumnText=t)}ngOnInit(){this.getAltPasswords()}createPassword(){const t=this.generatePassword();this.usersManagerService.createAlternativePassword(this.userId,this.altPasswordCtrl.value,"einfra",t).subscribe(()=>{const e=ng();e.width="600px",e.data={password:t},this.dialog.open(_L,e),this.getAltPasswords(),this.altPasswordCtrl.setValue("")})}generatePassword(){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%&/=?_.,:;\\-";let e="",i=0;const n=t.length;for(;i<16;++i)e+=t.charAt(Math.random()*n);return e.match("((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])|(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])).{3,}")||this.generatePassword(),e}getAltPasswords(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:altPasswords:einfra").subscribe(t=>{if(this.altPasswordsAttribute=t,t.value){const e=Object.keys(t.value);this.passwordDescriptions=new Set(e),this.displayedValues=Array.from(this.passwordDescriptions.values())}else this.displayedValues=[];this.loading=!1})}alreadyContainsValue(t){return this.passwordDescriptions.has(t)}removeAltPasswords(){const t=ng();t.width="600px",t.data={description:this.selection.selected,passwordId:this.altPasswordsAttribute.value[this.selection.selected[0]],userId:this.userId},this.dialog.open(TL,t).afterClosed().subscribe(t=>{t&&(this.getAltPasswords(),this.selection.clear())})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Kn),s.Y36(U),s.Y36(Ll),s.Y36(th),s.Y36(J))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.ALo(4,"customTranslate"),s.qZA(),s.TgZ(5,"mat-form-field",2),s.TgZ(6,"label",2),s._UZ(7,"input",3),s.ALo(8,"translate"),s.ALo(9,"customTranslate"),s.qZA(),s.qZA(),s.TgZ(10,"button",4),s.NdJ("click",function(){return e.createPassword()}),s._uU(11),s.ALo(12,"translate"),s.ALo(13,"customTranslate"),s.qZA(),s.TgZ(14,"app-alert",5),s._uU(15),s.ALo(16,"translate"),s.ALo(17,"customTranslate"),s.qZA(),s.TgZ(18,"h1",6),s._uU(19),s.ALo(20,"translate"),s.ALo(21,"customTranslate"),s.qZA(),s.TgZ(22,"button",7),s.NdJ("click",function(){return e.removeAltPasswords()}),s._uU(23),s.ALo(24,"translate"),s.ALo(25,"customTranslate"),s.qZA(),s.YNc(26,RL,1,4,"perun-web-apps-string-list",8),s.YNc(27,DL,1,0,"mat-spinner",9),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,11,s.lcZ(4,13,"ALT_PASSWORDS.TITLE_GENERATE"))),s.xp6(5),s.s9C("placeholder",s.lcZ(8,15,s.lcZ(9,17,"ALT_PASSWORDS.INPUT_PLACEHOLDER"))),s.Q6J("formControl",e.altPasswordCtrl),s.xp6(3),s.Q6J("disabled",!e.altPasswordCtrl.valid||e.alreadyContainsValue(e.altPasswordCtrl.value)),s.xp6(1),s.Oqu(s.lcZ(12,19,s.lcZ(13,21,"ALT_PASSWORDS.GENERATE"))),s.xp6(4),s.Oqu(s.lcZ(16,23,s.lcZ(17,25,"ALT_PASSWORDS.EXAMPLE_DESCRIPTIONS"))),s.xp6(4),s.Oqu(s.lcZ(20,27,s.lcZ(21,29,"ALT_PASSWORDS.TITLE_PASSWORDS"))),s.xp6(3),s.Q6J("disabled",e.selection.isEmpty()),s.xp6(1),s.Oqu(s.lcZ(24,31,s.lcZ(25,33,"ALT_PASSWORDS.REMOVE"))),s.xp6(3),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",e.loading))},directives:[Kh,Wg,Qh,Td,op,uh,$g,n.O5,OL,am],pipes:[eh,Og],styles:[""]}),t})();function NL(t,e){if(1&t&&(s.TgZ(0,"mat-list-item",1),s.TgZ(1,"mat-icon"),s._uU(2),s.qZA(),s.TgZ(3,"p",2),s._uU(4),s.ALo(5,"translate"),s.ALo(6,"customTranslate"),s.qZA(),s.qZA()),2&t){const t=e.$implicit;s.Q6J("routerLink",t.url),s.xp6(2),s.Oqu(t.icon),s.xp6(2),s.Oqu(s.lcZ(5,3,s.lcZ(6,5,t.label)))}}let IL=(()=>{class t{constructor(t){this.storeService=t,this.items=[]}ngOnInit(){this.initItems();const t=this.storeService.get("displayed_tabs");this.items=this.items.filter(e=>t.includes(e.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:"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 t.\u0275fac=function(e){return new(e||t)(s.Y36(Kn))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"mat-list"),s.YNc(1,NL,7,7,"mat-list-item",0),s.qZA()),2&t&&(s.xp6(1),s.Q6J("ngForOf",e.items))},directives:[dw,n.sg,gw,Vu,vn,Jf],pipes:[eh,Og],styles:["mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important;color:var(--side-text-active)!important;cursor:pointer}"]}),t})();const qL=["row","column","row-reverse","column-reverse"];function BL(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let HL=(()=>{class t extends ay{buildStyles(t){return function(t){let[e,i,n]=function(t){t=t?t.toLowerCase():"";let[e,i,n]=t.split(" ");return qL.find(t=>t===e)||(e=qL[0]),"inline"===i&&(i="inline"!==n?n:"",n="inline"),[e,BL(i),!!n]}(t);return function(t,e=null,i=!1){return{display:i?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,i,n)}(t)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275prov=(0,s.Yz7)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const YL=["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 jL=(()=>{class t extends Bb{constructor(t,e,i,n){super(t,i,e,n),this.DIRECTIVE_KEY="layout",this.styleCache=WL,this.init()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(ry),s.Y36(HL),s.Y36(cy))},t.\u0275dir=s.lG2({type:t,features:[s.qOj]}),t})(),FL=(()=>{class t extends jL{constructor(){super(...arguments),this.inputs=YL}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,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:[s.qOj]}),t})();const WL=new Map;new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;let UL=(()=>{class t extends ay{buildStyles(t){const e={};switch(t=t||"stretch"){case"start":e["align-self"]="flex-start";break;case"end":e["align-self"]="flex-end";break;default:e["align-self"]=t}return e}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275prov=(0,s.Yz7)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const KL=["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 ZL=(()=>{class t extends Bb{constructor(t,e,i,n){super(t,i,e,n),this.DIRECTIVE_KEY="flex-align",this.styleCache=GL,this.init()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(ry),s.Y36(UL),s.Y36(cy))},t.\u0275dir=s.lG2({type:t,features:[s.qOj]}),t})();const GL=new Map;let XL=(()=>{class t extends ZL{constructor(){super(...arguments),this.inputs=KL}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,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:[s.qOj]}),t})();new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;let VL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Eb,oo]]}),t})();function $L(t,e){if(1&t&&(s.TgZ(0,"mat-option",13),s._uU(1),s.qZA()),2&t){const t=e.$implicit,i=s.oxw();s.Q6J("value",i.selectedUnit),s.xp6(1),s.hij(" ",t," ")}}let JL=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.rtMessagesService=i,this.notificator=n,this.translate=s,this.resource="",this.currentQuota="",this.units=["MiB","GiB","TiB"],this.selectedUnit="GiB",s.get("DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.resource=this.data.resource.name,this.currentQuota=this.data.currentQuota,this.reasonControl=new Wd(null,[od.required]),this.newValueControl=new Wd(null,[od.required,od.pattern("[1-9][0-9]*")])}onCancel(){this.dialogRef.close()}onSubmit(){const t=(new xg).transform(this.data.user);this.rtMessagesService.sentMessageToRTWithVo(this.data.vo.id,"QUOTA: Change request",`QUOTA CHANGE REQUEST\u21b5 \u21b5 User: ${t} (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`).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(Al),s.Y36(X),s.Y36(Mg),s.Y36(th))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.TgZ(4,"div",1),s.TgZ(5,"div"),s.TgZ(6,"p",2),s._uU(7),s.ALo(8,"translate"),s.ALo(9,"customTranslate"),s.qZA(),s.TgZ(10,"p"),s._uU(11),s.qZA(),s.qZA(),s.TgZ(12,"div"),s.TgZ(13,"p",2),s._uU(14),s.ALo(15,"translate"),s.ALo(16,"customTranslate"),s.qZA(),s.TgZ(17,"p"),s._uU(18),s.qZA(),s.qZA(),s.TgZ(19,"div",3),s.TgZ(20,"mat-form-field"),s.TgZ(21,"label",4),s._UZ(22,"input",5),s.ALo(23,"translate"),s.ALo(24,"customTranslate"),s.qZA(),s.qZA(),s.TgZ(25,"mat-select",6),s.NdJ("valueChange",function(t){return e.selectedUnit=t}),s.YNc(26,$L,2,2,"mat-option",7),s.qZA(),s.qZA(),s.TgZ(27,"div"),s.TgZ(28,"mat-form-field",8),s.TgZ(29,"label",4),s._UZ(30,"textarea",9),s.ALo(31,"translate"),s.ALo(32,"customTranslate"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(33,"div",10),s.TgZ(34,"button",11),s.NdJ("click",function(){return e.onCancel()}),s._uU(35),s.ALo(36,"translate"),s.ALo(37,"customTranslate"),s.qZA(),s.TgZ(38,"button",12),s.NdJ("click",function(){return e.onSubmit()}),s._uU(39),s.ALo(40,"translate"),s.ALo(41,"customTranslate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,14,s.lcZ(3,16,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.TITLE"))),s.xp6(6),s.Oqu(s.lcZ(8,18,s.lcZ(9,20,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.RESOURCE"))),s.xp6(4),s.Oqu(e.resource),s.xp6(3),s.Oqu(s.lcZ(15,22,s.lcZ(16,24,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.CURRENT_QUOTA"))),s.xp6(4),s.Oqu(e.currentQuota),s.xp6(4),s.s9C("placeholder",s.lcZ(23,26,s.lcZ(24,28,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.REQUESTED_QUOTA"))),s.Q6J("formControl",e.newValueControl),s.xp6(3),s.Q6J("value",e.selectedUnit),s.xp6(1),s.Q6J("ngForOf",e.units),s.xp6(4),s.s9C("placeholder",s.lcZ(31,30,s.lcZ(32,32,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.REASON"))),s.Q6J("formControl",e.reasonControl),s.xp6(5),s.hij(" ",s.lcZ(36,34,s.lcZ(37,36,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.CANCEL"))," "),s.xp6(3),s.Q6J("disabled",e.reasonControl.invalid),s.xp6(1),s.hij(" ",s.lcZ(40,38,s.lcZ(41,40,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SEND"))," "))},directives:[Sl,FL,XL,Kh,Wg,ep,Qh,hp,Td,op,Pp,n.sg,zl,uh,ul],pipes:[eh,Og],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-ripple.mat-form-field-ripple[_ngcontent-%COMP%], .mat-input-underline.mat-form-field-underline[_ngcontent-%COMP%]{display:none}"]}),t})();function QL(t,e){1&t&&s._UZ(0,"mat-spinner",8)}function tC(t,e){1&t&&(s.TgZ(0,"app-alert",9),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"DATA_QUOTAS.NO_QUOTAS"))))}function eC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"p"),s.TgZ(2,"strong"),s._uU(3),s.ALo(4,"translate"),s.ALo(5,"customTranslate"),s.qZA(),s._uU(6),s.qZA(),s.TgZ(7,"p",10),s._uU(8),s.ALo(9,"translate"),s.ALo(10,"customTranslate"),s.qZA(),s.TgZ(11,"button",11),s.NdJ("click",function(){s.CHM(t);const e=s.oxw().$implicit,i=s.oxw(3).$implicit;return s.oxw().requestChangeQuota(i,e)}),s._uU(12),s.ALo(13,"translate"),s.ALo(14,"customTranslate"),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(5);s.xp6(3),s.Oqu(s.lcZ(4,4,s.lcZ(5,6,"DATA_QUOTAS.QUOTA"))),s.xp6(3),s.hij(" ",t.quotasMarkup,""),s.xp6(2),s.Oqu(s.lcZ(9,8,s.lcZ(10,10,"DATA_QUOTAS.QUOTA_INFO"))),s.xp6(4),s.Oqu(s.lcZ(13,12,s.lcZ(14,14,"DATA_QUOTAS.CHANGE")))}}function iC(t,e){1&t&&(s.TgZ(0,"p"),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"DATA_QUOTAS.NO_QUOTAS"))))}function nC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-expansion-panel",3),s.NdJ("opened",function(){const e=s.CHM(t).$implicit;return s.oxw(4).getResAttributes(e.id)}),s.TgZ(1,"mat-expansion-panel-header"),s.TgZ(2,"mat-panel-title"),s._uU(3),s.qZA(),s.qZA(),s.YNc(4,eC,15,16,"div",7),s.YNc(5,iC,4,5,"p",7),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw(4);s.xp6(3),s.hij(" ",t.name," "),s.xp6(1),s.Q6J("ngIf",i.defaultQuota),s.xp6(1),s.Q6J("ngIf",!i.defaultQuota)}}function sC(t,e){if(1&t&&(s.TgZ(0,"mat-accordion"),s.YNc(1,nC,6,3,"mat-expansion-panel",2),s.qZA()),2&t){const t=s.oxw(3);s.xp6(1),s.Q6J("ngForOf",t.resources)}}function oC(t,e){if(1&t&&(s.YNc(0,QL,1,0,"mat-spinner",5),s.YNc(1,tC,4,5,"app-alert",6),s.YNc(2,sC,2,1,"mat-accordion",7)),2&t){const t=s.oxw(2);s.Q6J("ngIf",t.loading),s.xp6(1),s.Q6J("ngIf",0===t.resources.length&&!t.loading),s.xp6(1),s.Q6J("ngIf",t.resources.length&&!t.loading)}}function rC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-expansion-panel",3),s.NdJ("opened",function(){const e=s.CHM(t).$implicit;return s.oxw().getMembersResources(e)}),s.TgZ(1,"mat-expansion-panel-header"),s.TgZ(2,"mat-panel-title"),s._uU(3),s.qZA(),s.qZA(),s.YNc(4,oC,3,3,"ng-template",4),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(3),s.hij(" ",t.name," ")}}let aC=(()=>{class t{constructor(t,e,i,n,s,o){this.store=t,this.usersManagerService=e,this.membersService=i,this.resourcesManagerService=n,this.attributesManagerService=s,this.dialog=o,this.vos=[],this.resources=[],this.quotasMarkup="",this.filteredVos=[]}ngOnInit(){this.user=this.store.getPerunPrincipal().user,this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(t=>{this.vos=t,this.filteredVos=t})}getMembersResources(t){this.loading=!0,this.resources=[],this.membersService.getMemberByUser(t.id,this.user.id).subscribe(t=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(t.id).subscribe(t=>{let e=t.length;e||(this.loading=!1),t.forEach(t=>{this.attributesManagerService.getResourceAttributes(t.id).subscribe(i=>{e--,i.find(t=>"defaultDataQuotas"===t.friendlyName)&&this.resources.push(t),this.loading=0!==e})})})})}getResAttributes(t){this.attributesManagerService.getResourceAttributes(t).subscribe(t=>{let e=t.find(t=>"dataQuotas"===t.friendlyName);if(e&&e.value){const t=Object.keys(e.value);this.currentQuota=e.value[t[0]]}else this.currentQuota="";if(e=t.find(t=>"defaultDataQuotas"===t.friendlyName),e){const t=Object.keys(e.value);this.defaultQuota=e.value[t[0]]}else this.defaultQuota="";this.currentQuota||(this.currentQuota=this.defaultQuota),this.parseMarkup()})}parseMarkup(){let t="";t+=this.currentQuota,t+=` (default: ${this.defaultQuota})`,t=t.split(":").join(" : ").split("K").join(" KiB").split("M").join(" MiB").split("G").join(" GiB").split("T").join(" TiB").split("E").join(" EiB"),this.quotasMarkup=t}requestChangeQuota(t,e){const i=ng();i.width="400px",i.data={vo:t,resource:e,user:this.user,currentQuota:this.quotasMarkup},this.dialog.open(JL,i)}applyFilter(t){this.filteredVos=this.vos.filter(e=>e.name.toLowerCase().includes(t.toLowerCase()))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Kn),s.Y36(J),s.Y36(G),s.Y36($),s.Y36(U),s.Y36(Ll))},t.\u0275cmp=s.Xpm({type:t,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"],[2,"color","gray"],["mat-flat-button","","color","primary",3,"click"]],template:function(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.TgZ(4,"perun-web-apps-immediate-filter",1),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.ALo(5,"translate"),s.ALo(6,"customTranslate"),s.qZA(),s.TgZ(7,"mat-accordion"),s.YNc(8,rC,5,1,"mat-expansion-panel",2),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,3,s.lcZ(3,5,"DATA_QUOTAS.TITLE"))),s.xp6(3),s.Q6J("placeholder",s.lcZ(5,7,s.lcZ(6,9,"DATA_QUOTAS.FILTER"))),s.xp6(4),s.Q6J("ngForOf",e.filteredVos))},directives:[ZT,gk,n.sg,dk,pk,fk,uk,n.O5,am,$g,uh],pipes:[eh,Og],styles:[""]}),t})();function cC(t,e){1&t&&s._UZ(0,"mat-spinner",8)}function uC(t,e){1&t&&(s.TgZ(0,"app-alert",9),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"OPT_OUT_MAILING_LISTS.NO_MAILING_LISTS_ALERT"))))}function lC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-expansion-panel",3),s.NdJ("opened",function(){const e=s.CHM(t).$implicit;return s.oxw(4).getOptOutAttribute(e)}),s.TgZ(1,"mat-expansion-panel-header"),s.TgZ(2,"mat-panel-title"),s._uU(3),s.qZA(),s.qZA(),s.TgZ(4,"div",10),s.TgZ(5,"p"),s._uU(6),s.ALo(7,"translate"),s.ALo(8,"customTranslate"),s.qZA(),s.TgZ(9,"mat-checkbox",11),s.NdJ("change",function(){return s.CHM(t),s.oxw(4).setOptOut()}),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw(4);s.xp6(3),s.hij(" ",t.name," "),s.xp6(3),s.Oqu(s.lcZ(7,3,s.lcZ(8,5,"OPT_OUT_MAILING_LISTS.OPT_OUT_LABEL"))),s.xp6(3),s.Q6J("checked",i.optOutAttribute&&null!==i.optOutAttribute.value)}}function hC(t,e){if(1&t&&(s.TgZ(0,"mat-accordion"),s.YNc(1,lC,10,7,"mat-expansion-panel",2),s.qZA()),2&t){const t=s.oxw(3);s.xp6(1),s.Q6J("ngForOf",t.resources)}}function dC(t,e){if(1&t&&(s.YNc(0,cC,1,0,"mat-spinner",5),s.YNc(1,uC,4,5,"app-alert",6),s.YNc(2,hC,2,1,"mat-accordion",7)),2&t){const t=s.oxw(2);s.Q6J("ngIf",t.loading),s.xp6(1),s.Q6J("ngIf",0===t.resources.length&&!t.loading),s.xp6(1),s.Q6J("ngIf",t.resources.length&&!t.loading)}}function pC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-expansion-panel",3),s.NdJ("opened",function(){const e=s.CHM(t).$implicit;return s.oxw().getMailingLists(e)}),s.TgZ(1,"mat-expansion-panel-header"),s.TgZ(2,"mat-panel-title"),s._uU(3),s.qZA(),s.qZA(),s.YNc(4,dC,3,3,"ng-template",4),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(3),s.hij(" ",t.name," ")}}let fC=(()=>{class t{constructor(t,e,i,n,s){this.store=t,this.usersManagerService=e,this.membersService=i,this.resourcesManagerService=n,this.attributesManagerService=s,this.vos=[],this.resources=[],this.mailingLists=[],this.optOuts=[],this.filteredVos=[]}ngOnInit(){this.user=this.store.getPerunPrincipal().user,this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(t=>{this.vos=t,this.filteredVos=t})}getMailingLists(t){this.loading=!0,this.resources=[],this.membersService.getMemberByUser(t.id,this.user.id).subscribe(t=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(t.id).subscribe(e=>{let i=e.length;i||(this.loading=!1),e.forEach(e=>{this.attributesManagerService.getRequiredAttributesMemberResource(t.id,e.id).subscribe(n=>{this.attributesManagerService.getResourceAttributeByName(e.id,"urn:perun:resource:attribute-def:def:disableMailingListOptOut").subscribe(s=>{i--;const o=n.find(t=>"optOutMailingList"===t.friendlyName);!o||s&&"true"===s.value||(this.optOuts.push({resource:e.id,member:t.id,attribute:o}),this.resources.push(e)),this.loading=0!==i})})})})})}getOptOutAttribute(t){this.index=this.resources.indexOf(t),this.optOutAttribute=this.optOuts[this.index].attribute}setOptOut(){this.optOuts[this.index].attribute.value=this.optOutAttribute.value?null:"true",this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(()=>{console.log("done")})}applyFilter(t){this.filteredVos=this.vos.filter(e=>e.name.toLowerCase().includes(t.toLowerCase()))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Kn),s.Y36(J),s.Y36(G),s.Y36($),s.Y36(U))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-settings-mailing-lists"]],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,"row"],[1,"ml-3",3,"checked","change"]],template:function(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.TgZ(4,"perun-web-apps-immediate-filter",1),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.ALo(5,"translate"),s.ALo(6,"customTranslate"),s.qZA(),s.TgZ(7,"mat-accordion"),s.YNc(8,pC,5,1,"mat-expansion-panel",2),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,3,s.lcZ(3,5,"OPT_OUT_MAILING_LISTS.TITLE"))),s.xp6(3),s.Q6J("placeholder",s.lcZ(5,7,s.lcZ(6,9,"OPT_OUT_MAILING_LISTS.FILTER"))),s.xp6(4),s.Q6J("ngForOf",e.filteredVos))},directives:[ZT,gk,n.sg,dk,pk,fk,uk,n.O5,am,$g,vA],pipes:[eh,Og],styles:[""]}),t})();function gC(t,e){1&t&&s._UZ(0,"mat-spinner",4)}function mC(t,e){1&t&&s._UZ(0,"th",17)}function _C(t,e){if(1&t&&(s.TgZ(0,"td",18),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",t," ")}}function bC(t,e){1&t&&s._UZ(0,"tr",19)}function yC(t,e){1&t&&s._UZ(0,"tr",20)}function wC(t,e){if(1&t&&(s.TgZ(0,"table",11),s.ynx(1,12),s.YNc(2,mC,1,0,"th",13),s.YNc(3,_C,2,1,"td",14),s.BQk(),s.YNc(4,bC,1,0,"tr",15),s.YNc(5,yC,1,0,"tr",16),s.qZA()),2&t){const t=s.oxw(2);s.Q6J("dataSource",t.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",t.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",t.displayedColumns)}}function AC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",1),s.TgZ(1,"div",5),s.TgZ(2,"p"),s._uU(3),s.qZA(),s.TgZ(4,"div",6),s._uU(5),s.ALo(6,"translate"),s.ALo(7,"customTranslate"),s.qZA(),s.YNc(8,wC,6,3,"table",7),s.qZA(),s.TgZ(9,"div",8),s.TgZ(10,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(11),s.ALo(12,"translate"),s.ALo(13,"customTranslate"),s.qZA(),s.TgZ(14,"button",10),s.NdJ("click",function(){return s.CHM(t),s.oxw().onSubmit()}),s._uU(15),s.ALo(16,"translate"),s.ALo(17,"customTranslate"),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(3),s.hij(" ",t.description," "),s.xp6(2),s.hij(" ",s.lcZ(6,5,s.lcZ(7,7,"DIALOGS.REMOVE_STRING_VALUE.ASK"))," "),s.xp6(3),s.Q6J("ngIf",t.dataSource.data.length),s.xp6(3),s.hij(" ",s.lcZ(12,9,s.lcZ(13,11,"DIALOGS.REMOVE_STRING_VALUE.CANCEL"))," "),s.xp6(4),s.hij(" ",s.lcZ(16,13,s.lcZ(17,15,"DIALOGS.REMOVE_STRING_VALUE.REMOVE"))," ")}}let MC=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.attributesManagerService=i,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new y_(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 t=this.data.attribute.value?this.data.attribute.value:[];void 0!==this.data.valueIndex?t.splice(this.data.valueIndex,1):t=t.filter(t=>!this.data.values.find(e=>e===t)),this.data.attribute.value=t}this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(Al),s.Y36(U))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.qZA(),s.TgZ(2,"div",1),s.YNc(3,gC,1,0,"mat-spinner",2),s.qZA(),s.YNc(4,AC,18,17,"div",3)),2&t&&(s.xp6(1),s.Oqu(e.title),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[Sl,n.O5,am,El,zl,uh,c_,h_,l_,u_,f_,g_,d_,p_,m_,__],pipes:[eh,Og],styles:[""]}),t})();function vC(t,e){1&t&&(s.TgZ(0,"app-alert",5),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"PREFERRED_SHELLS.NO_SHELLS"))))}function TC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-option",11),s.NdJ("click",function(){return s.CHM(t),s.oxw(3).changeValue()}),s._uU(1),s.qZA()}if(2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.Oqu(t)}}function kC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-list-item"),s.TgZ(1,"mat-form-field",7),s.TgZ(2,"mat-select",8),s.NdJ("valueChange",function(e){const i=s.CHM(t).index;return s.oxw(2).shells[i]=e}),s.YNc(3,TC,2,2,"mat-option",9),s.qZA(),s.qZA(),s.TgZ(4,"button",10),s.NdJ("click",function(){const e=s.CHM(t).index;return s.oxw(2).removeShell(e)}),s._uU(5),s.ALo(6,"translate"),s.ALo(7,"customTranslate"),s.qZA(),s.qZA()}if(2&t){const t=e.index,i=s.oxw(2);s.xp6(2),s.Q6J("value",i.shells[t]),s.xp6(1),s.Q6J("ngForOf",i.defaultShells),s.xp6(2),s.Oqu(s.lcZ(6,3,s.lcZ(7,5,"PREFERRED_SHELLS.REMOVE_BUTTON")))}}function LC(t,e){if(1&t&&(s.TgZ(0,"mat-list"),s.YNc(1,kC,8,7,"mat-list-item",6),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngForOf",t.shells)}}let CC=(()=>{class t{constructor(t,e,i,n){this.store=t,this.attributesManagerService=e,this.dialog=i,this.translateService=n,this.defaultShells=["/bin/bash","/bin/csh","/bin/ksh","/bin/sh","/bin/zsh"],this.shells=[],n.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(t=>this.removeDialogDescription=t),n.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(()=>{this.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(t=>this.removeDialogDescription=t),this.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t)}),this.getAttribute()}addShell(){this.shells.push("/bin/bash"),this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe(()=>{console.log("done")})}removeShell(t){const e=ng();e.width="600px",e.data={valueIndex:t,values:[this.shells[t]],attribute:this.prefShellsAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(MC,e).afterClosed().subscribe(t=>{t&&this.getAttribute()})}getAttribute(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredShells").subscribe(t=>{this.prefShellsAttribute=t,this.shells=this.prefShellsAttribute.value?this.prefShellsAttribute.value:[],this.loading=!1})}changeValue(){this.loading=!0,this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe(()=>{this.getAttribute()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Kn),s.Y36(U),s.Y36(Ll),s.Y36(th))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.TgZ(4,"app-alert",1),s._uU(5),s.ALo(6,"translate"),s.ALo(7,"customTranslate"),s.qZA(),s.TgZ(8,"button",2),s.NdJ("click",function(){return e.addShell()}),s._uU(9),s.ALo(10,"translate"),s.ALo(11,"customTranslate"),s.qZA(),s.YNc(12,vC,4,5,"app-alert",3),s.YNc(13,LC,2,1,"mat-list",4)),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,5,s.lcZ(3,7,"PREFERRED_SHELLS.TITLE"))),s.xp6(4),s.hij(" ",s.lcZ(6,9,s.lcZ(7,11,"PREFERRED_SHELLS.DESCRIPTION")),"\n"),s.xp6(4),s.Oqu(s.lcZ(10,13,s.lcZ(11,15,"PREFERRED_SHELLS.NEW_BUTTON"))),s.xp6(3),s.Q6J("ngIf",!e.loading&&0===e.shells.length),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[$g,uh,n.O5,dw,n.sg,gw,Kh,Pp,ul],pipes:[eh,Og],styles:[""]}),t})();function SC(t,e){1&t&&s._UZ(0,"mat-spinner",4)}function EC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"div",5),s.TgZ(2,"mat-form-field",6),s.TgZ(3,"label",6),s._UZ(4,"input",7),s.qZA(),s.qZA(),s.qZA(),s.TgZ(5,"div",8),s.TgZ(6,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(7),s.ALo(8,"translate"),s.ALo(9,"customTranslate"),s.qZA(),s.TgZ(10,"button",10),s.NdJ("click",function(){return s.CHM(t),s.oxw().onSubmit()}),s._uU(11),s.ALo(12,"translate"),s.ALo(13,"customTranslate"),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(4),s.Q6J("formControl",t.inputControl),s.xp6(3),s.hij(" ",s.lcZ(8,4,s.lcZ(9,6,"DIALOGS.ADD_UNIX_GROUP.CANCEL"))," "),s.xp6(3),s.Q6J("disabled",!t.inputControl.valid||t.groups.includes(t.inputControl.value)),s.xp6(1),s.hij(" ",s.lcZ(12,8,s.lcZ(13,10,"DIALOGS.ADD_UNIX_GROUP.ADD"))," ")}}let zC=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.attributesManagerService=i,this.groups=[]}ngOnInit(){this.inputControl=new Wd(null,od.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(t=>{const e=t.value?t.value:[];e.push(this.inputControl.value),t.value=e,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:t}).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)})})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(Al),s.Y36(U))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.TgZ(4,"div",1),s.YNc(5,SC,1,0,"mat-spinner",2),s.YNc(6,EC,14,12,"div",3),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,3,s.lcZ(3,5,"DIALOGS.ADD_UNIX_GROUP.TITLE"))),s.xp6(4),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[Sl,n.O5,am,El,Kh,Wg,Qh,hp,Td,op,zl,uh],pipes:[eh,Og],styles:[""]}),t})();function xC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",2),s.TgZ(1,"h4"),s._uU(2),s.qZA(),s.TgZ(3,"button",3),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().addGroupName(e)}),s._uU(4),s.ALo(5,"translate"),s.ALo(6,"customTranslate"),s.qZA(),s.TgZ(7,"button",4),s.NdJ("click",function(){const e=s.CHM(t),i=e.$implicit,n=e.index;return s.oxw().removeGroupName(i,n)}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s._UZ(10,"perun-web-apps-string-list",5),s.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=s.oxw();s.xp6(2),s.Oqu(t),s.xp6(2),s.Oqu(s.lcZ(5,8,s.lcZ(6,10,"PREFERRED_UNIX_GROUP_NAMES.NEW_BUTTON"))),s.xp6(3),s.Q6J("disabled",0===n.selectionList[i].selected.length),s.xp6(1),s.Oqu(s.lcZ(9,12,"PREFERRED_UNIX_GROUP_NAMES.REMOVE_BUTTON")),s.xp6(2),s.Q6J("values",n.groupNames.get(t))("selection",n.selectionList[i])("alertText",n.alertText)("headerColumnText",n.headerColumnText)}}let OC=(()=>{class t{constructor(t,e,i,n){this.store=t,this.attributesManagerService=e,this.dialog=i,this.translateService=n,this.namespaces=[],this.userId=this.store.getPerunPrincipal().userId,this.groupNames=new Map,this.groupNameAttributes=[],this.selectionList=[],n.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_DESCRIPTION").subscribe(t=>this.removeDialogDescription=t),n.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t),n.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(t=>this.alertText=t),n.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(t=>this.headerColumnText=t)}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(t=>this.removeDialogDescription=t),this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t),this.translateService.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(t=>this.alertText=t),this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(t=>this.headerColumnText=t)}),this.initSelection(),this.namespaces.forEach(t=>{this.getAttribute(t)})}initSelection(){for(let t=0;t{this.groupNames.set(t,e.value?e.value:[]),this.groupNameAttributes.push(e)})}addGroupName(t){const e=this.groupNames.get(t),i=ng();i.width="400px",i.data={groups:e,namespace:t,userId:this.userId},this.dialog.open(zC,i).afterClosed().subscribe(e=>{e&&this.getAttribute(t)})}removeGroupName(t,e){const i=ng();i.width="600px",i.data={values:this.selectionList[e].selected,attribute:this.groupNameAttributes[e],userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(MC,i).afterClosed().subscribe(i=>{i&&(this.selectionList[e].clear(),this.getAttribute(t))})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Kn),s.Y36(U),s.Y36(Ll),s.Y36(th))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.YNc(4,xC,11,14,"div",1)),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,2,s.lcZ(3,4,"PREFERRED_UNIX_GROUP_NAMES.TITLE"))),s.xp6(3),s.Q6J("ngForOf",e.namespaces))},directives:[n.sg,uh,OL],pipes:[eh,Og],styles:[""]}),t})();function RC(t,e){1&t&&(s.TgZ(0,"app-alert",7),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,s.lcZ(3,3,"ALERTS.NO_SAMBA")),"\n"))}function DC(t,e){1&t&&(s.TgZ(0,"app-alert",7),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,s.lcZ(3,3,"ALERTS.SAMBA_EXISTS")),"\n"))}function PC(t,e){1&t&&(s.TgZ(0,"app-alert",8),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"SAMBA_PASSWORD.PASSWORD_VALIDATION"))))}let NC=(()=>{class t{constructor(t,e,i,n,s){this.attributesManagerService=t,this.store=e,this.usersManagerService=i,this.notificator=n,this.translate=s,s.get("SAMBA_PASSWORD.SUCCESS_MESSAGE").subscribe(t=>this.successMessage=t),s.get("SAMBA_PASSWORD.SHOW_PWD_TOOLTIP").subscribe(t=>this.showPwdTooltip=t),s.get("SAMBA_PASSWORD.HIDE_PWD_TOOLTIP").subscribe(t=>this.hidePwdTooltip=t)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.sambaControl=new Wd("",[od.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 t=(new Date).getTime().toString();this.usersManagerService.createAlternativePassword(this.userId,t,"samba-du",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(t=>{this.sambaExists=!!t.value,this.sambaAttribute=t})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(U),s.Y36(Kn),s.Y36(J),s.Y36(Mg),s.Y36(th))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.YNc(4,RC,4,5,"app-alert",1),s.YNc(5,DC,4,5,"app-alert",1),s.TgZ(6,"mat-form-field",2),s.TgZ(7,"label",2),s._UZ(8,"input",3),s.ALo(9,"translate"),s.ALo(10,"customTranslate"),s.qZA(),s.qZA(),s.TgZ(11,"button",4),s.NdJ("click",function(){return e.showPassword=!e.showPassword}),s.TgZ(12,"mat-icon"),s._uU(13),s.qZA(),s.qZA(),s.TgZ(14,"button",5),s.NdJ("click",function(){return e.setSambaPassword()}),s._uU(15),s.ALo(16,"translate"),s.ALo(17,"customTranslate"),s.qZA(),s.YNc(18,PC,4,5,"app-alert",6)),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,11,s.lcZ(3,13,"SAMBA_PASSWORD.TITLE"))),s.xp6(3),s.Q6J("ngIf",!e.sambaExists),s.xp6(1),s.Q6J("ngIf",e.sambaExists),s.xp6(3),s.s9C("placeholder",s.lcZ(9,15,s.lcZ(10,17,"SAMBA_PASSWORD.INPUT_PLACEHOLDER"))),s.Q6J("formControl",e.sambaControl)("type",e.showPassword?"text":"password"),s.xp6(3),s.Q6J("matTooltip",e.showPassword?e.hidePwdTooltip:e.showPwdTooltip),s.xp6(2),s.Oqu(e.showPassword?"visibility_off":"visibility"),s.xp6(1),s.Q6J("disabled",0===e.sambaControl.value.length||e.sambaControl.invalid),s.xp6(1),s.Oqu(s.lcZ(16,19,s.lcZ(17,21,"SAMBA_PASSWORD.SET_PASSWORD"))),s.xp6(3),s.Q6J("ngIf",e.sambaControl.invalid))},directives:[n.O5,Kh,Wg,Qh,Td,op,uh,$p,Jf,$g],pipes:[eh,Og],styles:[""]}),t})();function IC(t,e){1&t&&(s.TgZ(0,"mat-error",8),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"DIALOGS.ADD_SSH.INVALID_TYPE"))))}let qC=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.attributesManagerService=i}ngOnInit(){this.sshControl=new Wd(null,[od.required,od.pattern(t.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){const t=this.data.attribute.value?this.data.attribute.value:[];t.includes(this.sshControl.value)||t.push(this.sshControl.value),this.data.attribute.value=t,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{t.pop()})}}return t.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"],t.sshKeyPattern="^("+t.allowedSshKeys.join("|")+").+$",t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(Al),s.Y36(U))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.TgZ(4,"div",1),s.TgZ(5,"mat-form-field",2),s.TgZ(6,"label",2),s._UZ(7,"textarea",3),s.ALo(8,"translate"),s.ALo(9,"customTranslate"),s.qZA(),s.YNc(10,IC,4,5,"mat-error",4),s.qZA(),s.qZA(),s.TgZ(11,"div",5),s.TgZ(12,"button",6),s.NdJ("click",function(){return e.onCancel()}),s._uU(13),s.ALo(14,"translate"),s.ALo(15,"customTranslate"),s.qZA(),s.TgZ(16,"button",7),s.NdJ("click",function(){return e.onSubmit()}),s._uU(17),s.ALo(18,"translate"),s.ALo(19,"customTranslate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,7,s.lcZ(3,9,"DIALOGS.ADD_SSH.TITLE"))),s.xp6(6),s.s9C("placeholder",s.lcZ(8,11,s.lcZ(9,13,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),s.Q6J("formControl",e.sshControl),s.xp6(3),s.Q6J("ngIf",e.sshControl.invalid&&e.sshControl.dirty),s.xp6(3),s.hij(" ",s.lcZ(14,15,s.lcZ(15,17,"DIALOGS.ADD_SSH.CANCEL"))," "),s.xp6(3),s.Q6J("disabled",e.sshControl.invalid),s.xp6(1),s.hij(" ",s.lcZ(18,19,s.lcZ(19,21,"DIALOGS.ADD_SSH.ADD"))," "))},directives:[Sl,El,Kh,Wg,Ig,Qh,hp,Td,op,n.O5,zl,uh,zh],pipes:[eh,Og],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;display:block;margin-top:-1px}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple,perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{position:static!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)}"],encapsulation:2}),t})(),BC=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}ngOnInit(){this.sshKey=this.data.value}onClose(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(Al))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"textarea",1),s._uU(2),s.qZA(),s.qZA(),s.TgZ(3,"mat-dialog-actions"),s.TgZ(4,"button",2),s.NdJ("click",function(){return e.onClose()}),s._uU(5),s.ALo(6,"translate"),s.ALo(7,"customTranslate"),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.Oqu(e.sshKey),s.xp6(3),s.Oqu(s.lcZ(6,2,s.lcZ(7,4,"DIALOGS.SHOW_SSH.CLOSE"))))},directives:[Wg,Ig,zl,uh],pipes:[eh,Og],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}[_ngcontent-%COMP%]:focus{outline:none}"]}),t})();function HC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-list-item",4),s.TgZ(1,"p",5),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().showWholeKey(e)}),s._uU(2),s.qZA(),s.TgZ(3,"button",6),s.ALo(4,"translate"),s.ALo(5,"customTranslate"),s.TgZ(6,"mat-icon"),s._uU(7," file_copy "),s.qZA(),s.qZA(),s.TgZ(8,"button",7),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().removeKey(e,!1)}),s.ALo(9,"translate"),s.ALo(10,"customTranslate"),s.TgZ(11,"mat-icon"),s._uU(12," delete "),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(2),s.Oqu(t),s.xp6(1),s.s9C("matTooltip",s.lcZ(4,4,s.lcZ(5,6,"SSH_KEYS.COPY_TOOLTIP"))),s.Q6J("cdkCopyToClipboard",t),s.xp6(5),s.s9C("matTooltip",s.lcZ(9,8,s.lcZ(10,10,"SSH_KEYS.REMOVE_TOOLTIP")))}}function YC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-list-item",4),s.TgZ(1,"label",8),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().showWholeKey(e)}),s._uU(2),s.qZA(),s.TgZ(3,"button",9),s.TgZ(4,"mat-icon"),s._uU(5," file_copy "),s.qZA(),s.qZA(),s.TgZ(6,"button",10),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().removeKey(e,!0)}),s.TgZ(7,"mat-icon"),s._uU(8," delete "),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(2),s.Oqu(t),s.xp6(1),s.Q6J("cdkCopyToClipboard",t)}}let jC=(()=>{class t{constructor(t,e,i,n){this.store=t,this.attributesManagerService=e,this.dialog=i,this.translateService=n,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 co(!1,[]),this.selectionAdmin=new co(!1,[]),n.get("SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(t=>this.removeDialogDescription=t),n.get("SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t),n.get("ALERTS.NO_ALT_PASSWORDS").subscribe(t=>this.alertText=t),n.get("SSH_KEYS.HEADER_COLUMN").subscribe(t=>this.headerColumnText=t)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(()=>{this.translateService.get("SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(t=>this.removeDialogDescription=t),this.translateService.get("SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t),this.translateService.get("ALERTS.NO_ALT_PASSWORDS").subscribe(t=>this.alertText=t),this.translateService.get("SSH_KEYS.HEADER_COLUMN").subscribe(t=>this.headerColumnText=t)}),this.loading=!0,this.getUserSSH(),this.getAdminSSH()}addKey(t){const e=ng();e.width="850px",e.data={attribute:t?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId},this.dialog.open(qC,e).afterClosed().subscribe(e=>{e&&(t?this.getAdminSSH():this.getUserSSH())})}removeKey(t,e){const i=ng();i.width="600px",i.data={values:[t],attribute:e?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(MC,i).afterClosed().subscribe(t=>{t&&(this.loading=!0,e?(this.getAdminSSH(),this.selectionAdmin.clear()):(this.getUserSSH(),this.selection.clear()))})}getUserSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.userUrn).subscribe(t=>{this.userKeyAttribute=t,this.userKeys=t.value,this.loading=!1})}getAdminSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.adminUrn).subscribe(t=>{this.adminKeyAttribute=t,this.adminKeys=t.value,this.loading=!1})}showWholeKey(t){const e=ng();e.width="600px",e.data={value:t},this.dialog.open(BC,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Kn),s.Y36(U),s.Y36(Ll),s.Y36(th))},t.\u0275cmp=s.Xpm({type:t,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","matRipple","","style","width: auto",4,"ngFor","ngForOf"],[1,"page-title","mt-5"],["matRipple","",1,"dark-hover-list-item",2,"width","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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.TgZ(4,"p"),s._uU(5),s.ALo(6,"translate"),s.ALo(7,"customTranslate"),s.qZA(),s.TgZ(8,"button",1),s.NdJ("click",function(){return e.addKey(!1)}),s._uU(9),s.ALo(10,"translate"),s.ALo(11,"customTranslate"),s.qZA(),s.TgZ(12,"mat-list"),s.YNc(13,HC,13,12,"mat-list-item",2),s.qZA(),s.TgZ(14,"h1",3),s._uU(15),s.ALo(16,"translate"),s.ALo(17,"customTranslate"),s.qZA(),s.TgZ(18,"p"),s._uU(19),s.ALo(20,"translate"),s.ALo(21,"customTranslate"),s.qZA(),s.TgZ(22,"button",1),s.NdJ("click",function(){return e.addKey(!0)}),s._uU(23),s.ALo(24,"translate"),s.ALo(25,"customTranslate"),s.qZA(),s.TgZ(26,"mat-list"),s.YNc(27,YC,9,2,"mat-list-item",2),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,8,s.lcZ(3,10,"SSH_KEYS.SSH_KEYS_TITLE"))),s.xp6(4),s.Oqu(s.lcZ(6,12,s.lcZ(7,14,"SSH_KEYS.SSH_KEYS_DESCRIPTION"))),s.xp6(4),s.Oqu(s.lcZ(10,16,s.lcZ(11,18,"SSH_KEYS.NEW_KEY"))),s.xp6(4),s.Q6J("ngForOf",e.userKeys),s.xp6(2),s.Oqu(s.lcZ(16,20,s.lcZ(17,22,"SSH_KEYS.ADMIN_SSH_KEYS_TITLE"))),s.xp6(4),s.Oqu(s.lcZ(20,24,s.lcZ(21,26,"SSH_KEYS.ADMIN_SSH_KEYS_DESCRIPTION"))),s.xp6(4),s.Oqu(s.lcZ(24,28,s.lcZ(25,30,"SSH_KEYS.NEW_KEY"))),s.xp6(4),s.Q6J("ngForOf",e.adminKeys))},directives:[uh,dw,n.sg,gw,Vu,z_,$p,Jf],pipes:[eh,Og],styles:[".truncate[_ngcontent-%COMP%]{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap}.center-content[_ngcontent-%COMP%]{margin-bottom:auto;margin-top:auto}.cursor-pointer[_ngcontent-%COMP%], label[_ngcontent-%COMP%]:hover{cursor:pointer}"]}),t})(),FC=(()=>{class t{transform(t){return"virt"===t.namespace.split(":")[4]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"isVirtualAttribute",type:t,pure:!0}),t})();function WC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"th",17),s.TgZ(1,"mat-checkbox",18),s.NdJ("change",function(e){s.CHM(t);const i=s.oxw();return e?i.masterToggle():null}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.Q6J("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())("aria-label",t.checkboxLabel())}}function UC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",19),s.TgZ(1,"mat-checkbox",20),s.NdJ("click",function(t){return t.stopPropagation()})("change",function(e){const i=s.CHM(t).$implicit,n=s.oxw();return e?n.selection.toggle(i):null}),s.ALo(2,"multiWordDataCy"),s.ALo(3,"isVirtualAttribute"),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.Q2q("data-cy","",s.lcZ(2,4,t.displayName),"-checkbox"),s.Q6J("checked",i.selection.isSelected(t))("disabled",s.lcZ(3,6,t)||!t.writable)("aria-label",i.checkboxLabel(t))}}function KC(t,e){1&t&&(s.TgZ(0,"th",21),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")))}function ZC(t,e){if(1&t&&(s.TgZ(0,"td",22),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.id)}}function GC(t,e){1&t&&(s.TgZ(0,"th",21),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")))}function XC(t,e){if(1&t&&(s.TgZ(0,"td",23),s.TgZ(1,"div",24),s._uU(2),s.qZA(),s.qZA()),2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.s9C("matTooltip",i.getAttributeFullName(t)),s.xp6(1),s.hij(" ",t.displayName," ")}}function VC(t,e){1&t&&(s.TgZ(0,"th",25),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")))}function $C(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",23),s.TgZ(1,"perun-web-apps-attribute-value",26),s.NdJ("sendEventToParent2",function(){const e=s.CHM(t).$implicit;return s.oxw().onValueChange(e)}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.Q6J("attribute",t)("readonly",i.readonly||!t.writable)}}function JC(t,e){1&t&&(s.TgZ(0,"th",21),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")))}function QC(t,e){if(1&t&&(s.TgZ(0,"td",23),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.description)}}function tS(t,e){1&t&&s._UZ(0,"tr",27)}function eS(t,e){if(1&t&&(s._UZ(0,"tr",28),s.ALo(1,"translate")),2&t){const t=e.$implicit,i=s.oxw();s.s9C("matTooltip",s.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),s.Q6J("matTooltipPosition","before")("matTooltipDisabled",t.writable||i.readonly)}}function iS(t,e){1&t&&(s.TgZ(0,"app-alert",29),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function nS(t,e){if(1&t&&(s.TgZ(0,"app-alert",29),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.hij(" ",s.lcZ(2,1,t.emptyListText),"\n")}}let sS=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.attributes=[],this.selection=new co(!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=ig}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new y_(this.attributes.filter(t=>!t.namespace.includes("def:core"))),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"displayName":return t.displayName;case"description":return t.description;case"value":return JSON.stringify(t.value);case"urn":return t.namespace+":"+t.baseFriendlyName;default:return""}}exportData(t){ug(cg(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(t=>!this.hiddenColumns.includes(t)),this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>ag(t,e,this.displayedColumns.concat("urn"),this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>rg(t,e,this.getDataForColumn,this),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,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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}updateMapAttributes(){for(const t of this.items.toArray())"java.util.LinkedHashMap"===t.attribute.type&&t.updateMapAttribute()}onValueChange(t){this.canBeSelected(t)&&this.selection.select(t)}canBeSelected(t){return!sg(t)&&t.writable}getAttributeFullName(t){return`${t.namespace}:${t.friendlyName}`}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(rt),s.Y36(Lg))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(t,e){if(1&t&&(s.Gf(kv,7),s.Gf(mg,7),s.Gf(rv,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.matSort=t.first),s.iGM(t=s.CRH())&&(e.child=t.first),s.iGM(t=s.CRH())&&(e.items=t)}},inputs:{attributes:"attributes",selection:"selection",displayedColumns:"displayedColumns",inDialog:"inDialog",filterValue:"filterValue",tableId:"tableId",readonly:"readonly",hiddenColumns:"hiddenColumns",emptyListText:"emptyListText"},features:[s.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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,WC,2,3,"th",4),s.YNc(5,UC,4,8,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,KC,3,3,"th",7),s.YNc(8,ZC,2,1,"td",8),s.BQk(),s.ynx(9,9),s.YNc(10,GC,3,3,"th",7),s.YNc(11,XC,3,2,"td",10),s.BQk(),s.ynx(12,11),s.YNc(13,VC,3,3,"th",12),s.YNc(14,$C,2,2,"td",10),s.BQk(),s.ynx(15,13),s.YNc(16,JC,3,3,"th",7),s.YNc(17,QC,2,1,"td",10),s.BQk(),s.YNc(18,tS,1,0,"tr",14),s.YNc(19,eS,2,5,"tr",15),s.qZA(),s.qZA(),s.qZA(),s.YNc(20,iS,3,3,"app-alert",16),s.YNc(21,nS,3,3,"app-alert",16)),2&t&&(s.Q6J("hidden",0===e.dataSource.filteredData.length),s.xp6(1),s.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),s.xp6(1),s.Q6J("dataSource",e.dataSource),s.xp6(16),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.dataSource.data.length),s.xp6(1),s.Q6J("ngIf",0===e.dataSource.data.length))},directives:[mg,c_,kv,h_,l_,u_,f_,g_,n.O5,d_,vA,p_,Ov,$p,rv,m_,__,$g],pipes:[$M,FC,eh],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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important} .urn-tooltip{max-width:800px!important}"]}),t})();function oS(t,e){1&t&&s._UZ(0,"mat-spinner",5)}function rS(t,e){1&t&&s._UZ(0,"mat-spinner",5)}function aS(t,e){if(1&t&&s._UZ(0,"perun-web-apps-attributes-list",10),2&t){const t=s.oxw(3);s.Q6J("attributes",t.attributes)("readonly",!0)("hiddenColumns",t.hiddenColumns)}}function cS(t,e){if(1&t&&(s.YNc(0,rS,1,0,"mat-spinner",3),s.YNc(1,aS,1,3,"perun-web-apps-attributes-list",9)),2&t){const t=s.oxw(2);s.Q6J("ngIf",t.innerLoading),s.xp6(1),s.Q6J("ngIf",!t.innerLoading)}}function uS(t,e){1&t&&s._UZ(0,"mat-spinner",5)}function lS(t,e){if(1&t&&s._UZ(0,"perun-web-apps-attributes-list",10),2&t){const t=s.oxw(4);s.Q6J("attributes",t.attributes)("readonly",!0)("hiddenColumns",t.hiddenColumns)}}function hS(t,e){if(1&t&&(s.YNc(0,uS,1,0,"mat-spinner",3),s.YNc(1,lS,1,3,"perun-web-apps-attributes-list",9)),2&t){const t=s.oxw(3);s.Q6J("ngIf",t.innerLoading),s.xp6(1),s.Q6J("ngIf",!t.innerLoading)}}function dS(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-expansion-panel",6),s.NdJ("opened",function(){const e=s.CHM(t).$implicit;return s.oxw(2).getMemberData(e)}),s.TgZ(1,"mat-expansion-panel-header"),s.TgZ(2,"mat-panel-title"),s._uU(3),s.ALo(4,"translate"),s.ALo(5,"customTranslate"),s.qZA(),s.qZA(),s.YNc(6,hS,2,2,"ng-template",7),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(3),s.AsE(" ",s.lcZ(4,2,s.lcZ(5,4,"PRIVACY.DATA")),"",t.name," ")}}function pS(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-accordion"),s.TgZ(1,"mat-expansion-panel",6),s.NdJ("opened",function(){return s.CHM(t),s.oxw().getUserData()}),s.TgZ(2,"mat-expansion-panel-header"),s.TgZ(3,"mat-panel-title"),s._uU(4),s.ALo(5,"translate"),s.ALo(6,"customTranslate"),s.qZA(),s.qZA(),s.YNc(7,cS,2,2,"ng-template",7),s.qZA(),s.YNc(8,dS,7,6,"mat-expansion-panel",8),s.qZA()}if(2&t){const t=s.oxw();s.xp6(4),s.hij(" ",s.lcZ(5,2,s.lcZ(6,4,"PRIVACY.USER_INFO"))," "),s.xp6(4),s.Q6J("ngForOf",t.filteredVos)}}let fS=(()=>{class t{constructor(t,e,i,n){this.usersManagerService=t,this.membersService=e,this.attributesManagerService=i,this.storage=n,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(t=>{this.vos=t,this.filteredVos=t,this.outerLoading=!1})}getUserData(){this.innerLoading=!0,this.usersManagerService.getRichUserWithAttributes(this.userId).subscribe(t=>{this.user=t,this.attributes=t.userAttributes,this.username=(new xg).transform(t),this.innerLoading=!1})}getMemberData(t){this.innerLoading=!0,this.membersService.getMemberByUser(t.id,this.userId).subscribe(t=>{this.membersService.getRichMemberWithAttributes(t.id).subscribe(t=>{this.attributes=t.memberAttributes,this.innerLoading=!1})})}applyFilter(t){this.filteredVos=this.vos.filter(e=>e.name.toLowerCase().includes(t.toLowerCase()))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(J),s.Y36(G),s.Y36(U),s.Y36(Kn))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.TgZ(4,"div",1),s.TgZ(5,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.ALo(6,"translate"),s.ALo(7,"customTranslate"),s.qZA(),s.YNc(8,oS,1,0,"mat-spinner",3),s.YNc(9,pS,9,6,"mat-accordion",4),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,4,s.lcZ(3,6,"PRIVACY.TITLE"))),s.xp6(4),s.Q6J("placeholder",s.lcZ(6,8,s.lcZ(7,10,"SERVICES.FILTER"))),s.xp6(3),s.Q6J("ngIf",e.outerLoading),s.xp6(1),s.Q6J("ngIf",!e.outerLoading))},directives:[ZT,n.O5,am,gk,dk,pk,fk,uk,n.sg,sS],pipes:[eh,Og],styles:[""]}),t})(),gS=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-home-page"]],decls:1,vars:0,template:function(t,e){1&t&&s._UZ(0,"router-outlet")},directives:[Ln],styles:[""]}),t})(),mS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Qf,n.ez]]}),t})(),_S=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),bS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[_S,Mu],Mu]}),t})(),yS=(()=>{class t{constructor(){this.changes=new lt.xQ,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"}formatYearRange(t,e){return`${t} \u2013 ${e}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const wS={provide:new s.OlP("mat-datepicker-scroll-strategy"),deps:[er],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let AS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[yS,wS],imports:[[n.ez,lh,ar,qr,To,Mu],go]}),t})(),MS=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,fp,lh,kA,Qf,cm,tf]]}),t})(),vS=(()=>{class t extends qu{format(t,e){return"input"===e?`${t.getDate().toString()}.${(t.getMonth()+1).toString()}.${t.getFullYear()}`:t.toDateString()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const TS={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 kS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[{provide:zu,useClass:vS},{provide:xu,useValue:TS}],imports:[[n.ez,kA,b_,pp,YM,TM,ih,In,Rv,gf,cm,mS,Qf,Pf,lh,tf,Zh,fp,Ug,$u,zg,x_,bS,AS,sb,dl,Np,MS,mo,xl,tg]]}),t})();function LS(t,e){1&t&&(s.TgZ(0,"app-alert"),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function CS(t,e){1&t&&(s.TgZ(0,"th",16),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))))}function SS(t,e){if(1&t&&(s.TgZ(0,"td",17),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.friendlyNameParameter)}}function ES(t,e){1&t&&(s.TgZ(0,"th",16),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))))}function zS(t,e){if(1&t&&(s.TgZ(0,"td",18),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.value)}}function xS(t,e){1&t&&s._UZ(0,"th",16)}function OS(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",19),s.TgZ(1,"button",20),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().resetPassword(e.friendlyNameParameter)}),s._uU(2),s.ALo(3,"translate"),s.ALo(4,"customTranslate"),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.Q6J("disabled",!i.logins.includes(t)),s.xp6(1),s.Oqu(s.lcZ(3,2,s.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.RESET_PASSWORD")))}}function RS(t,e){1&t&&s._UZ(0,"th",16)}function DS(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",19),s.TgZ(1,"button",21),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().changePassword(e)}),s._uU(2),s.ALo(3,"translate"),s.ALo(4,"customTranslate"),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.Q6J("disabled",!i.logins.includes(t)),s.xp6(1),s.Oqu(s.lcZ(3,2,s.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD")))}}function PS(t,e){1&t&&s._UZ(0,"tr",22)}function NS(t,e){1&t&&s._UZ(0,"tr",23)}let IS=(()=>{class t{constructor(t,e,i,n,s,o){this.attributesManagerService=t,this.store=e,this.dialog=i,this.route=n,this.router=s,this.otherApplicationService=o,this.nameSpaces=[],this.logins=[],this.displayedColumns=["namespace","value","reset","change"]}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.nameSpaces=this.store.get("password_namespace_attributes"),this.attributesManagerService.getLogins(this.userId).subscribe(t=>{const e=this.nameSpaces.map(t=>{const e=t.split(":");return e[e.length-1]});this.logins=t.filter(t=>e.includes(t.friendlyNameParameter)),this.dataSource=new y_(t);const i=this.route.snapshot.queryParamMap.get("namespace");if(i){const t=this.logins.find(t=>t.friendlyNameParameter===i);t&&this.changePassword(t)}})}resetPassword(t){window.open(this.otherApplicationService.getUrlForOtherApplication("pwdReset",t),"_blank")}changePassword(t){this.router.navigate([],{queryParams:{namespace:t.friendlyNameParameter},queryParamsHandling:"merge"});const e=ng();e.width="600px",e.data={login:t.value,namespace:t.friendlyName.split(":")[1]},this.dialog.open(F_,e).afterClosed().subscribe(()=>{this.router.navigate([],{queryParams:{namespace:null},queryParamsHandling:"merge"})})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(U),s.Y36(Kn),s.Y36(Ll),s.Y36(Qe),s.Y36(Mn),s.Y36(Sg))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-password-reset"]],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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.YNc(4,LS,4,5,"app-alert",1),s.TgZ(5,"div",2),s.TgZ(6,"div",3),s.TgZ(7,"div",4),s.TgZ(8,"table",5),s.ynx(9,6),s.YNc(10,CS,4,5,"th",7),s.YNc(11,SS,2,1,"td",8),s.BQk(),s.ynx(12,9),s.YNc(13,ES,4,5,"th",7),s.YNc(14,zS,2,1,"td",10),s.BQk(),s.ynx(15,11),s.YNc(16,xS,1,0,"th",7),s.YNc(17,OS,5,6,"td",12),s.BQk(),s.ynx(18,13),s.YNc(19,RS,1,0,"th",7),s.YNc(20,DS,5,6,"td",12),s.BQk(),s.YNc(21,PS,1,0,"tr",14),s.YNc(22,NS,1,0,"tr",15),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,5,s.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE"))),s.xp6(3),s.Q6J("ngIf",!e.logins.length),s.xp6(4),s.Q6J("dataSource",e.dataSource),s.xp6(13),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns))},directives:[n.O5,c_,kv,h_,l_,u_,f_,g_,$g,d_,p_,uh,m_,__],pipes:[eh,Og],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}"]}),t})();function qS(t,e){1&t&&(s.TgZ(0,"app-alert",11),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.INFO"))))}function BS(t,e){1&t&&(s.TgZ(0,"app-alert",12),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.IMG_TOO_LONG"))))}function HS(t,e){if(1&t&&(s.TgZ(0,"div",13),s._UZ(1,"img",14),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("src",t.newImage,s.LSH)}}function YS(t,e){1&t&&(s.TgZ(0,"app-alert",11),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.DELAY_INFO"))))}i(6577);let jS=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.data=e,this.attributesManagerService=i,this.store=n,this.newImage=""}ngOnInit(){this.theme=this.data.theme,this.attribute=this.data.attribute,this.newImage=this.attribute.value}handleInputChange(t){const e=t.dataTransfer?t.dataTransfer.files[0]:t.target.files[0],i=new FileReader;e.type.match(/image-*/)?(i.onload=this._handleReaderLoaded.bind(this),i.readAsDataURL(e)):alert("invalid format")}_handleReaderLoaded(t){const e=t.target;this.imgTooLong=e.result.length>=5120,this.newImage=e.result}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 t(t,e,i,n){n.beginPath(),n.rect(20*t,20*e,20,20),n.fillStyle="rgb("+i.join(",")+")",n.fill()}this.newImage=function(){const e=function(){const t=document.createElement("canvas");t.width=100,t.height=100;const e=t.getContext("2d");return e.beginPath(),e.rect(0,0,100,100),e.fillStyle="#FFFFFF",e.fill(),t}(),i=e.getContext("2d"),n=function(){const t=[];for(let e=0;e<3;e++){const e=Math.floor(256*Math.random()),i=Math.max(120,e),n=Math.min(200,i);t.push(n)}return t}();for(let s=0;s{class t{constructor(t,e,i,n){this.dialog=t,this.attributesManagerService=e,this.store=i,this.translate=n,this.imageSrc="",this.mfaUrl="",n.get("AUTHENTICATION.DELETE_IMG_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t),n.get("AUTHENTICATION.DELETE_IMG_DIALOG_DESC").subscribe(t=>this.removeDialogDescription=t)}ngOnInit(){this.translate.onLangChange.subscribe(()=>{this.translate.get("AUTHENTICATION.DELETE_IMG_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t),this.translate.get("AUTHENTICATION.DELETE_IMG_DIALOG_DESC").subscribe(t=>this.removeDialogDescription=t),this.mfaUrl=this.store.get("mfa","url_"+this.translate.currentLang)}),this.mfaUrl=this.store.get("mfa","url_"+this.translate.currentLang),this.loadImage()}onAddImg(){const t=ng();t.width="500px",t.data={theme:"user-theme",attribute:this.imgAtt},this.dialog.open(jS,t).afterClosed().subscribe(t=>{t&&this.loadImage()})}onDeleteImg(){const t=ng();t.width="600px",t.data={doNotShowValues:!0,attribute:this.imgAtt,userId:this.store.getPerunPrincipal().userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(MC,t).afterClosed().subscribe(t=>{t&&this.loadImage()})}loadImage(){const t=this.store.get("mfa","security_image_attribute");this.displayImageBlock=this.store.get("mfa","enable_security_image"),this.attributesManagerService.getUserAttributeByName(this.store.getPerunPrincipal().userId,t).subscribe(e=>{e?(this.imgAtt=e,this.imageSrc=this.imgAtt.value):this.attributesManagerService.getAttributeDefinitionByName(t).subscribe(t=>{this.imgAtt=t})})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Ll),s.Y36(U),s.Y36(Kn),s.Y36(th))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-settings-authentication"]],decls:10,vars:11,consts:[["class","mb-5",4,"ngIf"],[1,"page-subtitle"],[3,"href"],[1,"mb-5"],[4,"ngIf"],["color","accent","mat-flat-button","",1,"m-1","action-button",3,"click"],["color","warn","mat-flat-button","",1,"m-1",3,"disabled","click"],["alt","",1,"img-size",3,"src"]],template:function(t,e){1&t&&(s.YNc(0,WS,18,22,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.ALo(4,"customTranslate"),s.qZA(),s.TgZ(5,"span"),s._uU(6),s.ALo(7,"translate"),s.TgZ(8,"a",2),s._uU(9),s.qZA(),s.qZA()),2&t&&(s.Q6J("ngIf",e.displayImageBlock),s.xp6(2),s.Oqu(s.lcZ(3,5,s.lcZ(4,7,"AUTHENTICATION.MFA"))),s.xp6(4),s.Oqu(s.lcZ(7,9,"AUTHENTICATION.MFA_INFO")),s.xp6(2),s.Q6J("href",e.mfaUrl,s.LSH),s.xp6(1),s.Oqu(e.mfaUrl))},directives:[n.O5,uh],pipes:[eh,Og],styles:[".img-size[_ngcontent-%COMP%]{width:100px;height:100px}"]}),t})(),KS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,lh,Qf,In,kS,ih,Zh,fp,Ug,mS]]}),t})();function ZS(t,e){1&t&&(s.TgZ(0,"app-alert",8),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}const GS=[{path:"",redirectTo:"profile",pathMatch:"full"},{path:"login",component:(()=>{class t{constructor(t){this.auth=t}startAuth(){this.auth.startAuthentication()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Rl))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.TgZ(3,"h4",3),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"button",4),s.NdJ("click",function(){return e.startAuth()}),s._uU(7),s.ALo(8,"translate"),s.TgZ(9,"mat-icon"),s._uU(10," login "),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(4),s.hij(" ",s.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),s.xp6(3),s.hij(" ",s.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},directives:[uh,Jf],pipes:[eh],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),t})()},{path:"service-access",component:(()=>{class t{constructor(t,e,i){this.authzService=t,this.dialog=e,this.translate=i,this.wrongUsernameOrPassword=!1}ngOnInit(){this.usernameCtrl=new Wd(null,[od.required]),this.passwordCtrl=new Wd(null,[od.required])}startAuth(){sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe(t=>{sessionStorage.setItem("baPrincipal",JSON.stringify(t)),location.reload()},()=>{this.wrongUsernameOrPassword=!0})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(K),s.Y36(Ll),s.Y36(th))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.TgZ(3,"h2"),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.YNc(6,ZS,3,3,"app-alert",3),s.TgZ(7,"mat-form-field",4),s.TgZ(8,"mat-label"),s._uU(9),s.ALo(10,"translate"),s.qZA(),s._UZ(11,"input",5),s.TgZ(12,"mat-error"),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.qZA(),s.TgZ(15,"mat-form-field",4),s.TgZ(16,"mat-label"),s._uU(17),s.ALo(18,"translate"),s.qZA(),s._UZ(19,"input",6),s.TgZ(20,"mat-error"),s._uU(21),s.ALo(22,"translate"),s.qZA(),s.qZA(),s.TgZ(23,"button",7),s.NdJ("click",function(){return e.startAuth()}),s._uU(24),s.ALo(25,"translate"),s.TgZ(26,"mat-icon"),s._uU(27," login "),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(4),s.Oqu(s.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),s.xp6(2),s.Q6J("ngIf",e.wrongUsernameOrPassword),s.xp6(3),s.Oqu(s.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),s.xp6(2),s.Q6J("formControl",e.usernameCtrl),s.xp6(2),s.hij(" ",s.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),s.xp6(4),s.Oqu(s.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),s.xp6(2),s.Q6J("formControl",e.passwordCtrl)("type","password"),s.xp6(2),s.hij(" ",s.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),s.xp6(2),s.Q6J("disabled",e.usernameCtrl.invalid||e.passwordCtrl.invalid),s.xp6(1),s.hij(" ",s.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},directives:[n.O5,Kh,Nh,Wg,Qh,hp,Td,op,zh,uh,Jf,$g],pipes:[eh],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}"]}),t})()},{path:"profile",component:gS,data:{breadcrumb:"MENU_ITEMS.PROFILE"},children:[{path:"",component:bv,data:{breadcrumb:"MENU_ITEMS.PROFILE"}},{path:"identities",component:sT,data:{breadcrumb:"MENU_ITEMS.IDENTITIES"}},{path:"groups",component:WT,data:{breadcrumb:"MENU_ITEMS.GROUPS"}},{path:"services",component:sL,data:{breadcrumb:"MENU_ITEMS.SERVICES"}},{path:"organizations",component:gL,data:{breadcrumb:"MENU_ITEMS.VOS"}},{path:"privacy",component:fS,data:{breadcrumb:"MENU_ITEMS.PRIVACY"}},{path:"settings",component:mL,data:{breadcrumb:"MENU_ITEMS.SETTINGS"},children:[{path:"",component:IL,data:{breadcrumb:"MENU_ITEMS.SETTINGS"}},{path:"altPasswords",component:PL,data:{breadcrumb:"SETTINGS.ALTERNATIVE_PASSWORDS"}},{path:"auth",component:US,data:{breadcrumb:"SETTINGS.AUTHENTICATION"}},{path:"dataQuotas",component:aC,data:{breadcrumb:"SETTINGS.DATA_QUOTAS"}},{path:"mailingLists",component:fC,data:{breadcrumb:"SETTINGS.MAILING_LISTS"}},{path:"prefShells",component:CC,data:{breadcrumb:"SETTINGS.PREFERRED_SHELLS"}},{path:"prefGroupNames",component:OC,data:{breadcrumb:"SETTINGS.PREFERRED_UNIX_GROUP_NAMES"}},{path:"sambaPassword",component:NC,data:{breadcrumb:"SETTINGS.SAMBA_PASSWORD"}},{path:"sshKeys",component:jC,data:{breadcrumb:"SETTINGS.SSH_KEYS"}},{path:"passwordReset",component:IS,data:{breadcrumb:"SETTINGS.PASSWORD_RESET"}}]}]}];let XS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[In.forRoot(GS,{preloadingStrategy:En,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})]]}),t})();class VS{constructor(t,e="/assets/i18n/",i=".json"){this.http=t,this.prefix=e,this.suffix=i}getTranslation(t){return this.http.get(`${this.prefix}${t}${this.suffix}`)}}let $S=(()=>{class t{constructor(t,e,i,n,s){this.http=t,this.storeService=e,this.authzSevice=i,this.titleService=n,this.utilsService=s}initializeColors(t,e){return new Promise(i=>{e.forEach(t=>{const e=this.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e)}),t.forEach(t=>{const e=this.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e),this.setEntityTheme(t.entity,e)}),i()})}setEntityTheme(t,e){const i=(n=e,[JS(tinycolor(n).lighten(52),"50"),JS(tinycolor(n).lighten(37),"100"),JS(tinycolor(n).lighten(26),"200"),JS(tinycolor(n).lighten(12),"300"),JS(tinycolor(n).lighten(6),"400"),JS(tinycolor(n),"500"),JS(tinycolor(n).darken(6),"600"),JS(tinycolor(n).darken(12),"700"),JS(tinycolor(n).darken(18),"800"),JS(tinycolor(n).darken(24),"900"),JS(tinycolor(n).lighten(50).saturate(30),"A100"),JS(tinycolor(n).lighten(30).saturate(30),"A200"),JS(tinycolor(n).lighten(10).saturate(15),"A400"),JS(tinycolor(n).lighten(5).saturate(5),"A700")]);var n;for(const s of i){const e=`--${t}-theme-primary-contrast-${s.name}`,i=s.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${t}-theme-primary-${s.name}`,`${s.red},${s.green},${s.blue}`),document.documentElement.style.setProperty(e,i)}}loadAppDefaultConfig(){return new Promise(t=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(e=>{this.storeService.setDefaultConfig(e),t()})})}loadAppInstanceConfig(){return new Promise(t=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(e=>{this.storeService.setInstanceConfig(e);const i=document.location.hostname;void 0!==e.brandings&&void 0!==e.brandings[i]&&this.storeService.setBanding(i),t()},()=>{console.log("instance config not detected"),t()})})}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(t=>{const e=document.querySelector("link[rel*='icon']")||document.createElement("link");e.type="image/x-icon",e.rel="shortcut icon",e.href=this.storeService.get("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(e),t()})}setApiUrl(){return new Promise(t=>{let e=this.storeService.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(e=e.replace("oauth","ba")),this.authzSevice.configuration.basePath=e,this.titleService.setTitle(this.storeService.get("document_title")),t()})}loadAppsConfig(){return new Promise((t,e)=>{this.utilsService.getAppsConfig().subscribe(e=>{this.storeService.setAppsConfig(e),t()},t=>e(t))})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Y.eN),s.LFG(Kn),s.LFG(K),s.LFG(H),s.LFG(Q))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function JS(t,e){const i=tinycolor(t),n=i.toRgb();return{name:e,hex:i.toHexString(),darkContrast:i.isLight(),red:n.r,green:n.g,blue:n.b}}let QS=(()=>{class t{constructor(t,e,i){this.initAuthService=t,this.appConfigService=e,this.location=i,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(t=>{throw console.error(t),this.location.go("/"),location.reload(),t}).then(t=>t?this.initAuthService.loadPrincipal().then(()=>this.appConfigService.loadAppsConfig()):this.initAuthService.handleAuthStart())}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(bg),s.LFG($S),s.LFG(n.Ye))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;let tE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Eb]]}),t})();new s.GfV("12.0.0-beta.34");let eE=(()=>{class t{constructor(t,e){(0,n.PM)(e)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,i=[]){return{ngModule:t,providers:e.serverLoaded?[{provide:Rb,useValue:Object.assign(Object.assign({},Ob),e)},{provide:Pb,useValue:i,multi:!0},{provide:Db,useValue:!0}]:[{provide:Rb,useValue:Object.assign(Object.assign({},Ob),e)},{provide:Pb,useValue:i,multi:!0}]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Db),s.LFG(s.Lbi))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[VL,by,tE],VL,by,tE]}),t})(),iE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Mu],Mu]}),t})();const nE=new s.OlP("perun-api-service");let sE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),oE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[sE,$u,Mu,dr],sE,Mu]}),t})();const rE={provide:Y.TP,useExisting:(0,s.Gpc)(()=>vg),multi:!0};function aE(t){return new VS(t,"./assets/i18n/",".json")}function cE(t){const e={basePath:t.get("api_url")};return new W(e)}const uE=t=>()=>t.initialize();let lE=(()=>{class t{constructor(t,e){this.customIconService=t,this.translate=e,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(yg),s.LFG(th))},t.\u0275mod=s.oAB({type:t,bootstrap:[nA]}),t.\u0275inj=s.cJS({providers:[yg,{provide:s.ip1,useFactory:uE,multi:!0,deps:[QS]},{provide:W,useFactory:cE,deps:[Kn]},xg,vg,rE,{provide:nE,useClass:kg}],imports:[[q,fu,Y.JF,ih.forRoot({loader:{provide:Il,useFactory:aE,deps:[Y.eN]}}),XS,Qf,Jy,mw,In,lh,eE,Lb,kS,mS,mk,Zh,Np,xl,b_,Ug,fp,kA,gf,cm,Rv,iE,x_,zg,wT,$u,tf,oE,sb,pp,KS,tg,Pf,Ol.zr.forRoot()]]}),t})();(0,s.G48)(),N().bootstrapModule(lE).catch(t=>console.error(t))},1511:function(t,e,i){"use strict";i.d(e,{mr:function(){return w},Ov:function(){return kt},ez:function(){return St},K0:function(){return c},uU:function(){return Ct},Do:function(){return M},V_:function(){return h},Ye:function(){return v},S$:function(){return b},mk:function(){return ct},sg:function(){return lt},O5:function(){return dt},PC:function(){return yt},RF:function(){return mt},n9:function(){return _t},ED:function(){return bt},b0:function(){return A},lw:function(){return u},gd:function(){return Lt},EM:function(){return Ot},JF:function(){return Pt},NF:function(){return zt},PM:function(){return xt},w_:function(){return a},bD:function(){return Et},q:function(){return o},Mx:function(){return at},HT:function(){return r}});var n=i(1572);let s=null;function o(){return s}function r(t){s||(s=t)}class a{}const c=new n.OlP("DocumentToken");let u=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:l,token:t,providedIn:"platform"}),t})();function l(){return(0,n.LFG)(d)}const h=new n.OlP("Location Initialized");let d=(()=>{class t extends u{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return o().getBaseHref(this._doc)}onPopState(t){const e=o().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=o().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}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(t){this.location.pathname=t}pushState(t,e,i){p()?this._history.pushState(t,e,i):this.location.hash=i}replaceState(t,e,i){p()?this._history.replaceState(t,e,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(c))},t.\u0275prov=(0,n.Yz7)({factory:f,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function f(){return new d((0,n.LFG)(c))}function g(t,e){if(0==t.length)return e;if(0==e.length)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,2==i?t+e.substring(1):1==i?t+e:t+"/"+e}function m(t){const e=t.match(/#|\?|$/),i=e&&e.index||t.length;return t.slice(0,i-("/"===t[i-1]?1:0))+t.slice(i)}function _(t){return t&&"?"!==t[0]?"?"+t:t}let b=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:y,token:t,providedIn:"root"}),t})();function y(t){const e=(0,n.LFG)(c).location;return new A((0,n.LFG)(u),e&&e.origin||"")}const w=new n.OlP("appBaseHref");let A=(()=>{class t extends b{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return g(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+_(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${e}${i}`:e}pushState(t,e,i,n){const s=this.prepareExternalUrl(i+_(n));this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){const s=this.prepareExternalUrl(i+_(n));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformLocation).historyGo)||void 0===i||i.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(u),n.LFG(w,8))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),M=(()=>{class t extends b{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=g(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,i,n){let s=this.prepareExternalUrl(i+_(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){let s=this.prepareExternalUrl(i+_(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformLocation).historyGo)||void 0===i||i.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(u),n.LFG(w,8))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),v=(()=>{class t{constructor(t,e){this._subject=new n.vpe,this._urlChangeListeners=[],this._platformStrategy=t;const i=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=m(k(i)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+_(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,k(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",i=null){this._platformStrategy.pushState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+_(e)),i)}replaceState(t,e="",i=null){this._platformStrategy.replaceState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+_(e)),i)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformStrategy).historyGo)||void 0===i||i.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(i=>i(t,e))}subscribe(t,e,i){return this._subject.subscribe({next:t,error:e,complete:i})}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(b),n.LFG(u))},t.normalizeQueryParams=_,t.joinWithSlash=g,t.stripTrailingSlash=m,t.\u0275prov=(0,n.Yz7)({factory:T,token:t,providedIn:"root"}),t})();function T(){return new v((0,n.LFG)(b),(0,n.LFG)(u))}function k(t){return t.replace(/\/index.html$/,"")}var L=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),C=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),S=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),E=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),z=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function x(t,e){return I((0,n.cg1)(t)[n.wAp.DateFormat],e)}function O(t,e){return I((0,n.cg1)(t)[n.wAp.TimeFormat],e)}function R(t,e){return I((0,n.cg1)(t)[n.wAp.DateTimeFormat],e)}function D(t,e){const i=(0,n.cg1)(t),s=i[n.wAp.NumberSymbols][e];if(void 0===s){if(e===z.CurrencyDecimal)return i[n.wAp.NumberSymbols][z.Decimal];if(e===z.CurrencyGroup)return i[n.wAp.NumberSymbols][z.Group]}return s}const P=n.kL8;function N(t){if(!t[n.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[n.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function I(t,e){for(let i=e;i>-1;i--)if(void 0!==t[i])return t[i];throw new Error("Locale data API: locale data undefined")}function q(t){const[e,i]=t.split(":");return{hours:+e,minutes:+i}}const B=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,H={},Y=/((?:[^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 j=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),F=function(t){return 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}({}),W=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function U(t,e,i,n){let s=function(t){if(st(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[e,i=1,n=1]=t.split("-").map(t=>+t);return K(e,i-1,n)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(B))return function(t){const e=new Date(0);let i=0,n=0;const s=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),s.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const r=Number(t[4]||0)-i,a=Number(t[5]||0)-n,c=Number(t[6]||0),u=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,r,a,c,u),e}(i)}const e=new Date(t);if(!st(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=Z(i,e)||e;let o,r=[];for(;e;){if(o=Y.exec(e),!o){r.push(e);break}{r=r.concat(o.slice(1));const t=r.pop();if(!t)break;e=t}}let a=s.getTimezoneOffset();n&&(a=nt(n,a),s=function(t,e,i){const n=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(nt(e,n)-n))}(s,n));let c="";return r.forEach(t=>{const e=function(t){if(it[t])return it[t];let e;switch(t){case"G":case"GG":case"GGG":e=$(W.Eras,S.Abbreviated);break;case"GGGG":e=$(W.Eras,S.Wide);break;case"GGGGG":e=$(W.Eras,S.Narrow);break;case"y":e=V(F.FullYear,1,0,!1,!0);break;case"yy":e=V(F.FullYear,2,0,!0,!0);break;case"yyy":e=V(F.FullYear,3,0,!1,!0);break;case"yyyy":e=V(F.FullYear,4,0,!1,!0);break;case"Y":e=et(1);break;case"YY":e=et(2,!0);break;case"YYY":e=et(3);break;case"YYYY":e=et(4);break;case"M":case"L":e=V(F.Month,1,1);break;case"MM":case"LL":e=V(F.Month,2,1);break;case"MMM":e=$(W.Months,S.Abbreviated);break;case"MMMM":e=$(W.Months,S.Wide);break;case"MMMMM":e=$(W.Months,S.Narrow);break;case"LLL":e=$(W.Months,S.Abbreviated,C.Standalone);break;case"LLLL":e=$(W.Months,S.Wide,C.Standalone);break;case"LLLLL":e=$(W.Months,S.Narrow,C.Standalone);break;case"w":e=tt(1);break;case"ww":e=tt(2);break;case"W":e=tt(1,!0);break;case"d":e=V(F.Date,1);break;case"dd":e=V(F.Date,2);break;case"c":case"cc":e=V(F.Day,1);break;case"ccc":e=$(W.Days,S.Abbreviated,C.Standalone);break;case"cccc":e=$(W.Days,S.Wide,C.Standalone);break;case"ccccc":e=$(W.Days,S.Narrow,C.Standalone);break;case"cccccc":e=$(W.Days,S.Short,C.Standalone);break;case"E":case"EE":case"EEE":e=$(W.Days,S.Abbreviated);break;case"EEEE":e=$(W.Days,S.Wide);break;case"EEEEE":e=$(W.Days,S.Narrow);break;case"EEEEEE":e=$(W.Days,S.Short);break;case"a":case"aa":case"aaa":e=$(W.DayPeriods,S.Abbreviated);break;case"aaaa":e=$(W.DayPeriods,S.Wide);break;case"aaaaa":e=$(W.DayPeriods,S.Narrow);break;case"b":case"bb":case"bbb":e=$(W.DayPeriods,S.Abbreviated,C.Standalone,!0);break;case"bbbb":e=$(W.DayPeriods,S.Wide,C.Standalone,!0);break;case"bbbbb":e=$(W.DayPeriods,S.Narrow,C.Standalone,!0);break;case"B":case"BB":case"BBB":e=$(W.DayPeriods,S.Abbreviated,C.Format,!0);break;case"BBBB":e=$(W.DayPeriods,S.Wide,C.Format,!0);break;case"BBBBB":e=$(W.DayPeriods,S.Narrow,C.Format,!0);break;case"h":e=V(F.Hours,1,-12);break;case"hh":e=V(F.Hours,2,-12);break;case"H":e=V(F.Hours,1);break;case"HH":e=V(F.Hours,2);break;case"m":e=V(F.Minutes,1);break;case"mm":e=V(F.Minutes,2);break;case"s":e=V(F.Seconds,1);break;case"ss":e=V(F.Seconds,2);break;case"S":e=V(F.FractionalSeconds,1);break;case"SS":e=V(F.FractionalSeconds,2);break;case"SSS":e=V(F.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=J(j.Short);break;case"ZZZZZ":e=J(j.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=J(j.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=J(j.Long);break;default:return null}return it[t]=e,e}(t);c+=e?e(s,i,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function K(t,e,i){const n=new Date(0);return n.setFullYear(t,e,i),n.setHours(0,0,0),n}function Z(t,e){const i=function(t){return(0,n.cg1)(t)[n.wAp.LocaleId]}(t);if(H[i]=H[i]||{},H[i][e])return H[i][e];let s="";switch(e){case"shortDate":s=x(t,E.Short);break;case"mediumDate":s=x(t,E.Medium);break;case"longDate":s=x(t,E.Long);break;case"fullDate":s=x(t,E.Full);break;case"shortTime":s=O(t,E.Short);break;case"mediumTime":s=O(t,E.Medium);break;case"longTime":s=O(t,E.Long);break;case"fullTime":s=O(t,E.Full);break;case"short":const e=Z(t,"shortTime"),i=Z(t,"shortDate");s=G(R(t,E.Short),[e,i]);break;case"medium":const n=Z(t,"mediumTime"),o=Z(t,"mediumDate");s=G(R(t,E.Medium),[n,o]);break;case"long":const r=Z(t,"longTime"),a=Z(t,"longDate");s=G(R(t,E.Long),[r,a]);break;case"full":const c=Z(t,"fullTime"),u=Z(t,"fullDate");s=G(R(t,E.Full),[c,u])}return s&&(H[i][e]=s),s}function G(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,i){return null!=e&&i in e?e[i]:t})),t}function X(t,e,i="-",n,s){let o="";(t<0||s&&t<=0)&&(s?t=1-t:(t=-t,o=i));let r=String(t);for(;r.length0||a>-i)&&(a+=i),t===F.Hours)0===a&&-12===i&&(a=12);else if(t===F.FractionalSeconds)return c=e,X(a,3).substr(0,c);var c;const u=D(r,z.MinusSign);return X(a,e,u,n,s)}}function $(t,e,i=C.Format,s=!1){return function(o,r){return function(t,e,i,s,o,r){switch(i){case W.Months:return function(t,e,i){const s=(0,n.cg1)(t),o=I([s[n.wAp.MonthsFormat],s[n.wAp.MonthsStandalone]],e);return I(o,i)}(e,o,s)[t.getMonth()];case W.Days:return function(t,e,i){const s=(0,n.cg1)(t),o=I([s[n.wAp.DaysFormat],s[n.wAp.DaysStandalone]],e);return I(o,i)}(e,o,s)[t.getDay()];case W.DayPeriods:const a=t.getHours(),c=t.getMinutes();if(r){const t=function(t){const e=(0,n.cg1)(t);return N(e),(e[n.wAp.ExtraData][2]||[]).map(t=>"string"==typeof t?q(t):[q(t[0]),q(t[1])])}(e),i=function(t,e,i){const s=(0,n.cg1)(t);N(s);const o=I([s[n.wAp.ExtraData][0],s[n.wAp.ExtraData][1]],e)||[];return I(o,i)||[]}(e,o,s),r=t.findIndex(t=>{if(Array.isArray(t)){const[e,i]=t,n=a>=e.hours&&c>=e.minutes,s=a0?Math.floor(s/60):Math.ceil(s/60);switch(t){case j.Short:return(s>=0?"+":"")+X(r,2,o)+X(Math.abs(s%60),2,o);case j.ShortGMT:return"GMT"+(s>=0?"+":"")+X(r,1,o);case j.Long:return"GMT"+(s>=0?"+":"")+X(r,2,o)+":"+X(Math.abs(s%60),2,o);case j.Extended:return 0===n?"Z":(s>=0?"+":"")+X(r,2,o)+":"+X(Math.abs(s%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}function Q(t){return K(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function tt(t,e=!1){return function(i,n){let s;if(e){const t=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,e=i.getDate();s=1+Math.floor((e+t)/7)}else{const t=Q(i),e=function(t){const e=K(t,0,1).getDay();return K(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),n=t.getTime()-e.getTime();s=1+Math.round(n/6048e5)}return X(s,t,D(n,z.MinusSign))}}function et(t,e=!1){return function(i,n){return X(Q(i).getFullYear(),t,D(n,z.MinusSign),e)}}const it={};function nt(t,e){t=t.replace(/:/g,"");const i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function st(t){return t instanceof Date&&!isNaN(t.valueOf())}class ot{}let rt=(()=>{class t extends ot{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(P(e||this.locale)(t)){case L.Zero:return"zero";case L.One:return"one";case L.Two:return"two";case L.Few:return"few";case L.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.soG))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();function at(t,e){e=encodeURIComponent(e);for(const i of t.split(";")){const t=i.indexOf("="),[n,s]=-1==t?[i,""]:[i.slice(0,t),i.slice(t+1)];if(n.trim()===e)return decodeURIComponent(s)}return null}let ct=(()=>{class t{constructor(t,e,i,n){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=i,this._renderer=n,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&((0,n.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,n.AaK)(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.ZZ4),n.Y36(n.aQg),n.Y36(n.SBq),n.Y36(n.Qsj))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class ut{constructor(t,e,i,n){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=n}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 lt=(()=>{class t{constructor(t,e,i){this._viewContainer=t,this._template=e,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const i=this._ngForOf;if(!this._differ&&i)try{this._differ=this._differs.find(i).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${i}' of type '${t=i,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,i,n)=>{if(null==t.previousIndex){const i=this._viewContainer.createEmbeddedView(this._template,new ut(null,this._ngForOf,-1,-1),null===n?void 0:n),s=new ht(t,i);e.push(s)}else if(null==n)this._viewContainer.remove(null===i?void 0:i);else if(null!==i){const s=this._viewContainer.get(i);this._viewContainer.move(s,n);const o=new ht(t,s);e.push(o)}});for(let i=0;i{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(n.ZZ4))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class ht{constructor(t,e){this.record=t,this.view=e}}let dt=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new pt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){ft("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){ft("ngIfElse",t),this._elseTemplateRef=t,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(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class pt{constructor(){this.$implicit=null,this.ngIf=null}}function ft(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${(0,n.AaK)(e)}'.`)}class gt{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let mt=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,i){this.ngSwitch=i,i._addCase(),this._view=new gt(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(mt,9))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),bt=(()=>{class t{constructor(t,e,i){i._addDefault(new gt(t,e))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(mt,9))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),yt=(()=>{class t{constructor(t,e,i){this._ngEl=t,this._differs=e,this._renderer=i,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[i,n]=t.split(".");null!=(e=null!=e&&n?`${e}${n}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,i,e):this._renderer.removeStyle(this._ngEl.nativeElement,i)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.aQg),n.Y36(n.Qsj))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})();function wt(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${(0,n.AaK)(t)}'`)}class At{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Mt{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const vt=new Mt,Tt=new At;let kt=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if((0,n.QGY)(e))return vt;if((0,n.F4k)(e))return Tt;throw wt(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO,16))},t.\u0275pipe=n.Yjl({name:"async",type:t,pure:!1}),t})(),Lt=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw wt(t,e);return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"uppercase",type:t,pure:!0}),t})(),Ct=(()=>{class t{constructor(t){this.locale=t}transform(e,i="mediumDate",n,s){if(null==e||""===e||e!=e)return null;try{return U(e,i,s||this.locale,n)}catch(o){throw wt(t,o.message)}}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.soG,16))},t.\u0275pipe=n.Yjl({name:"date",type:t,pure:!0}),t})(),St=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:ot,useClass:rt}]}),t})();const Et="browser";function zt(t){return t===Et}function xt(t){return"server"===t}let Ot=(()=>{class t{}return t.\u0275prov=(0,n.Yz7)({token:t,providedIn:"root",factory:()=>new Rt((0,n.LFG)(c),window)}),t})();class Rt{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const i=t.getElementById(e)||t.getElementsByName(e)[0];if(i)return i;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let n=i.currentNode;for(;n;){const t=n.shadowRoot;if(t){const i=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(i)return i}n=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,n=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(i-s[0],n-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Dt(this.window.history)||Dt(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function Dt(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class Pt{}},9063:function(t,e,i){"use strict";i.d(e,{TP:function(){return z},eN:function(){return S},JF:function(){return Y},WM:function(){return d},LE:function(){return m},Zn:function(){return k}});var n=i(1511),s=i(1572),o=i(878),r=i(8318),a=i(436),c=i(3835),u=i(9996);class l{}class h{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const i=t.slice(0,e),n=i.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(s):this.headers.set(n,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const n=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(n,i),this.maybeSetNormalizedName(e,n))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const n=("a"===t.op?this.headers.get(e):void 0)||[];n.push(...i),this.headers.set(e,n);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class p{encodeKey(t){return f(t)}encodeValue(t){return f(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function f(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function g(t){return`${t}`}class m{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new p,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const n=t.indexOf("="),[s,o]=-1==n?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,n)),e.decodeValue(t.slice(n+1))],r=i.get(s)||[];r.push(o),i.set(s,r)}),i}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const n=t[i];Array.isArray(n)?n.forEach(t=>{e.push({param:i,value:t,op:"a"})}):e.push({param:i,value:n,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new m({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(g(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const i=e.indexOf(g(t.value));-1!==i&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class _{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function b(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function y(t){return"undefined"!=typeof Blob&&t instanceof Blob}function w(t){return"undefined"!=typeof FormData&&t instanceof FormData}class A{constructor(t,e,i,n){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||n?(this.body=void 0!==i?i:null,s=n):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new d),this.context||(this.context=new _),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const i=e.indexOf("?");this.urlWithParams=e+(-1===i?"?":ie.set(i,t.setHeaders[i]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((e,i)=>e.set(i,t.setParams[i]),u)),new A(i,n,o,{params:u,headers:c,context:l,reportProgress:a,responseType:s,withCredentials:r})}}var M=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class v{constructor(t,e=200,i="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class T extends v{constructor(t={}){super(t),this.type=M.ResponseHeader}clone(t={}){return new T({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class k extends v{constructor(t={}){super(t),this.type=M.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new k({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class L extends v{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function C(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let S=(()=>{class t{constructor(t){this.handler=t}request(t,e,i={}){let n;if(t instanceof A)n=t;else{let s,o;s=i.headers instanceof d?i.headers:new d(i.headers),i.params&&(o=i.params instanceof m?i.params:new m({fromObject:i.params})),n=new A(t,e,void 0!==i.body?i.body:null,{headers:s,context:i.context,params:o,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=(0,o.of)(n).pipe((0,a.b)(t=>this.handler.handle(t)));if(t instanceof A||"events"===i.observe)return s;const r=s.pipe((0,c.h)(t=>t instanceof k));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return r.pipe((0,u.U)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe((0,u.U)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe((0,u.U)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe((0,u.U)(t=>t.body))}case"response":return r;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new m).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,i={}){return this.request("PATCH",t,C(i,e))}post(t,e,i={}){return this.request("POST",t,C(i,e))}put(t,e,i={}){return this.request("PUT",t,C(i,e))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(l))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class E{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const z=new s.OlP("HTTP_INTERCEPTORS");let x=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const O=/^\)\]\}',?\n/;let R=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new r.y(e=>{const i=this.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((t,e)=>i.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&i.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();i.responseType="json"!==e?e:"text"}const n=t.serializeBody();let s=null;const o=()=>{if(null!==s)return s;const e=1223===i.status?204:i.status,n=i.statusText||"OK",o=new d(i.getAllResponseHeaders()),r=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new T({headers:o,status:e,statusText:n,url:r}),s},r=()=>{let{headers:n,status:s,statusText:r,url:a}=o(),c=null;204!==s&&(c=void 0===i.response?i.responseText:i.response),0===s&&(s=c?200:0);let u=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof c){const t=c;c=c.replace(O,"");try{c=""!==c?JSON.parse(c):null}catch(l){c=t,u&&(u=!1,c={error:l,text:c})}}u?(e.next(new k({body:c,headers:n,status:s,statusText:r,url:a||void 0})),e.complete()):e.error(new L({error:c,headers:n,status:s,statusText:r,url:a||void 0}))},a=t=>{const{url:n}=o(),s=new L({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:n||void 0});e.error(s)};let c=!1;const u=n=>{c||(e.next(o()),c=!0);let s={type:M.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(s.total=n.total),"text"===t.responseType&&i.responseText&&(s.partialText=i.responseText),e.next(s)},l=t=>{let i={type:M.UploadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),e.next(i)};return i.addEventListener("load",r),i.addEventListener("error",a),i.addEventListener("timeout",a),i.addEventListener("abort",a),t.reportProgress&&(i.addEventListener("progress",u),null!==n&&i.upload&&i.upload.addEventListener("progress",l)),i.send(n),e.next({type:M.Sent}),()=>{i.removeEventListener("error",a),i.removeEventListener("abort",a),i.removeEventListener("load",r),i.removeEventListener("timeout",a),t.reportProgress&&(i.removeEventListener("progress",u),null!==n&&i.upload&&i.upload.removeEventListener("progress",l)),i.readyState!==i.DONE&&i.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.JF))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const D=new s.OlP("XSRF_COOKIE_NAME"),P=new s.OlP("XSRF_HEADER_NAME");class N{}let I=(()=>{class t{constructor(t,e,i){this.doc=t,this.platform=e,this.cookieName=i,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,n.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0),s.LFG(s.Lbi),s.LFG(D))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),q=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);const n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(N),s.LFG(P))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(z,[]);this.chain=t.reduceRight((t,e)=>new E(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(h),s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),H=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:q,useClass:x}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:D,useValue:e.cookieName}:[],e.headerName?{provide:P,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[q,{provide:z,useExisting:q,multi:!0},{provide:N,useClass:I},{provide:D,useValue:"XSRF-TOKEN"},{provide:P,useValue:"X-XSRF-TOKEN"}]}),t})(),Y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[S,{provide:l,useClass:B},R,{provide:h,useExisting:R}],imports:[[H.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},1572:function(t,e,i){"use strict";i.d(e,{deG:function(){return ii},tb:function(){return iu},AFp:function(){return $c},ip1:function(){return Xc},CZH:function(){return Vc},hGG:function(){return Xu},z2F:function(){return Bu},sBO:function(){return Fa},Sil:function(){return pu},_Vd:function(){return pa},EJc:function(){return ou},SBq:function(){return _a},qLn:function(){return Mn},vpe:function(){return Ec},gxx:function(){return ho},tBr:function(){return Mi},XFs:function(){return E},OlP:function(){return ei},zs3:function(){return Co},ZZ4:function(){return Na},aQg:function(){return qa},soG:function(){return su},YKP:function(){return Qa},v3s:function(){return Yu},h0i:function(){return Ja},PXZ:function(){return Du},R0b:function(){return mu},FiY:function(){return vi},Lbi:function(){return eu},g9A:function(){return tu},n_E:function(){return xc},Qsj:function(){return wa},FYo:function(){return ya},JOm:function(){return Cn},Tiy:function(){return Ma},q3G:function(){return pn},tp0:function(){return Ti},EAV:function(){return Wu},Rgc:function(){return Ga},dDg:function(){return vu},DyG:function(){return ni},GfV:function(){return va},s_b:function(){return ec},ifc:function(){return P},eFA:function(){return Pu},G48:function(){return Ou},Gpc:function(){return p},f3M:function(){return yi},X6Q:function(){return xu},_c5:function(){return Zu},VLi:function(){return Lu},c2e:function(){return nu},zSh:function(){return fo},wAp:function(){return ta},vHH:function(){return m},EiD:function(){return hn},mCW:function(){return Zi},qzn:function(){return Ni},JVY:function(){return qi},pB0:function(){return ji},eBb:function(){return Hi},L6k:function(){return Bi},LAX:function(){return Yi},cg1:function(){return $r},Tjo:function(){return Ku},kL8:function(){return Jr},yhl:function(){return Ii},dqk:function(){return H},sIi:function(){return Io},CqO:function(){return ar},QGY:function(){return or},F4k:function(){return rr},RDi:function(){return Mt},AaK:function(){return l},z3N:function(){return Pi},qOj:function(){return Eo},TTD:function(){return mt},_Bn:function(){return la},xp6:function(){return ps},uIk:function(){return jo},Q2q:function(){return Uo},Tol:function(){return Sr},Gre:function(){return Ur},ekj:function(){return Cr},Suo:function(){return Fc},Xpm:function(){return $},lG2:function(){return st},Yz7:function(){return w},cJS:function(){return A},oAB:function(){return et},Yjl:function(){return ot},Y36:function(){return Go},_UZ:function(){return tr},GkF:function(){return nr},BQk:function(){return ir},ynx:function(){return er},qZA:function(){return Qo},TgZ:function(){return Jo},EpF:function(){return sr},n5z:function(){return $e},Ikx:function(){return Kr},LFG:function(){return bi},$8M:function(){return Qe},$Z:function(){return Xo},NdJ:function(){return cr},CRH:function(){return Wc},kcU:function(){return me},O4$:function(){return ge},oxw:function(){return pr},ALo:function(){return Mc},lcZ:function(){return vc},xi3:function(){return Tc},Dn7:function(){return kc},Hsn:function(){return mr},F$t:function(){return gr},Q6J:function(){return Vo},s9C:function(){return _r},MGl:function(){return br},hYB:function(){return yr},DdM:function(){return mc},VKq:function(){return _c},WLB:function(){return bc},iGM:function(){return Yc},MAs:function(){return Zo},pYS:function(){return kn},Jf7:function(){return Tn},CHM:function(){return Yt},oJD:function(){return fn},LSH:function(){return gn},kYT:function(){return it},Udp:function(){return Lr},WFA:function(){return ur},d8E:function(){return Zr},YNc:function(){return Ko},W1O:function(){return Gc},_uU:function(){return Hr},Oqu:function(){return Yr},hij:function(){return jr},AsE:function(){return Fr},xDo:function(){return Wr},Gf:function(){return jc}});var n=i(5959),s=i(7570),o=i(8318),r=i(1906),a=i(1055);function c(t){for(let e in t)if(t[e]===c)return e;throw Error("Could not find renamed property on target object.")}function u(t,e){for(const i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function l(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(l).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const i=e.indexOf("\n");return-1===i?e:e.substring(0,i)}function h(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const d=c({__forward_ref__:c});function p(t){return t.__forward_ref__=p,t.toString=function(){return l(this())},t}function f(t){return g(t)?t():t}function g(t){return"function"==typeof t&&t.hasOwnProperty(d)&&t.__forward_ref__===p}class m extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function _(t){return"string"==typeof t?t:null==t?"":String(t)}function b(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():_(t)}function y(t,e){const i=e?` in ${e}`:"";throw new m("201",`No provider for ${b(t)} found${i}`)}function w(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function A(t){return{providers:t.providers||[],imports:t.imports||[]}}function M(t){return v(t,k)||v(t,C)}function v(t,e){return t.hasOwnProperty(e)?t[e]:null}function T(t){return t&&(t.hasOwnProperty(L)||t.hasOwnProperty(S))?t[L]:null}const k=c({"\u0275prov":c}),L=c({"\u0275inj":c}),C=c({ngInjectableDef:c}),S=c({ngInjectorDef:c});var E=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let z;function x(t){const e=z;return z=t,e}function O(t,e,i){const n=M(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:i&E.Optional?null:void 0!==e?e:void y(l(t),"Injector")}function R(t){return{toString:t}.toString()}var D=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),P=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const N="undefined"!=typeof globalThis&&globalThis,I="undefined"!=typeof window&&window,q="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,B="undefined"!=typeof global&&global,H=N||B||I||q,Y={},j=[],F=c({"\u0275cmp":c}),W=c({"\u0275dir":c}),U=c({"\u0275pipe":c}),K=c({"\u0275mod":c}),Z=c({"\u0275loc":c}),G=c({"\u0275fac":c}),X=c({__NG_ELEMENT_ID__:c});let V=0;function $(t){return R(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===D.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||j,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||P.Emulated,id:"c",styles:t.styles||j,_:null,setInput:null,schemas:t.schemas||null,tView:null},n=t.directives,s=t.features,o=t.pipes;return i.id+=V++,i.inputs=nt(t.inputs,e),i.outputs=nt(t.outputs),s&&s.forEach(t=>t(i)),i.directiveDefs=n?()=>("function"==typeof n?n():n).map(J):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(Q):null,i})}function J(t){return rt(t)||function(t){return t[W]||null}(t)}function Q(t){return function(t){return t[U]||null}(t)}const tt={};function et(t){return R(()=>{const e={type:t.type,bootstrap:t.bootstrap||j,declarations:t.declarations||j,imports:t.imports||j,exports:t.exports||j,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(tt[t.id]=t.type),e})}function it(t,e){return R(()=>{const i=at(t,!0);i.declarations=e.declarations||j,i.imports=e.imports||j,i.exports=e.exports||j})}function nt(t,e){if(null==t)return Y;const i={};for(const n in t)if(t.hasOwnProperty(n)){let s=t[n],o=s;Array.isArray(s)&&(o=s[1],s=s[0]),i[s]=n,e&&(e[s]=o)}return i}const st=$;function ot(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function rt(t){return t[F]||null}function at(t,e){const i=t[K]||null;if(!i&&!0===e)throw new Error(`Type ${l(t)} does not have '\u0275mod' property.`);return i}function ct(t){return Array.isArray(t)&&"object"==typeof t[1]}function ut(t){return Array.isArray(t)&&!0===t[1]}function lt(t){return 0!=(8&t.flags)}function ht(t){return 2==(2&t.flags)}function dt(t){return 1==(1&t.flags)}function pt(t){return null!==t.template}function ft(t,e){return t.hasOwnProperty(G)?t[G]:null}class gt{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function mt(){return _t}function _t(t){return t.type.prototype.ngOnChanges&&(t.setInput=yt),bt}function bt(){const t=wt(this),e=null==t?void 0:t.current;if(e){const i=t.previous;if(i===Y)t.previous=e;else for(let t in e)i[t]=e[t];t.current=null,this.ngOnChanges(e)}}function yt(t,e,i,n){const s=wt(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:Y,current:null}),o=s.current||(s.current={}),r=s.previous,a=this.declaredInputs[i],c=r[a];o[a]=new gt(c&&c.currentValue,e,r===Y),t[n]=e}function wt(t){return t.__ngSimpleChanges__||null}let At;function Mt(t){At=t}function vt(){return void 0!==At?At:"undefined"!=typeof document?document:void 0}function Tt(t){return!!t.listen}mt.ngInherit=!0;const kt={createRenderer:(t,e)=>vt()};function Lt(t){for(;Array.isArray(t);)t=t[0];return t}function Ct(t,e){return Lt(e[t])}function St(t,e){return Lt(e[t.index])}function Et(t,e){return t.data[e]}function zt(t,e){return t[e]}function xt(t,e){const i=e[t];return ct(i)?i:i[0]}function Ot(t){return 4==(4&t[2])}function Rt(t){return 128==(128&t[2])}function Dt(t,e){return null==e?null:t[e]}function Pt(t){t[18]=0}function Nt(t,e){t[5]+=e;let i=t,n=t[3];for(;null!==n&&(1===e&&1===i[5]||-1===e&&0===i[5]);)n[5]+=e,i=n,n=n[3]}const It={lFrame:ce(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function qt(){return It.bindingsEnabled}function Bt(){return It.lFrame.lView}function Ht(){return It.lFrame.tView}function Yt(t){return It.lFrame.contextLView=t,t[8]}function jt(){let t=Ft();for(;null!==t&&64===t.type;)t=t.parent;return t}function Ft(){return It.lFrame.currentTNode}function Wt(t,e){const i=It.lFrame;i.currentTNode=t,i.isParent=e}function Ut(){return It.lFrame.isParent}function Kt(){It.lFrame.isParent=!1}function Zt(){return It.isInCheckNoChangesMode}function Gt(t){It.isInCheckNoChangesMode=t}function Xt(){const t=It.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Vt(){return It.lFrame.bindingIndex}function $t(){return It.lFrame.bindingIndex++}function Jt(t){const e=It.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function Qt(t,e){const i=It.lFrame;i.bindingIndex=i.bindingRootIndex=t,te(e)}function te(t){It.lFrame.currentDirectiveIndex=t}function ee(t){const e=It.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function ie(){return It.lFrame.currentQueryIndex}function ne(t){It.lFrame.currentQueryIndex=t}function se(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function oe(t,e,i){if(i&E.SkipSelf){let n=e,s=t;for(;n=n.parent,!(null!==n||i&E.Host||(n=se(s),null===n)||(s=s[15],10&n.type)););if(null===n)return!1;e=n,t=s}const n=It.lFrame=ae();return n.currentTNode=e,n.lView=t,!0}function re(t){const e=ae(),i=t[1];It.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function ae(){const t=It.lFrame,e=null===t?null:t.child;return null===e?ce(t):e}function ce(t){const e={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:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function ue(){const t=It.lFrame;return It.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const le=ue;function he(){const t=ue();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function de(){return It.lFrame.selectedIndex}function pe(t){It.lFrame.selectedIndex=t}function fe(){const t=It.lFrame;return Et(t.tView,t.selectedIndex)}function ge(){It.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function me(){It.lFrame.currentNamespace=null}function _e(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[a]<0&&(t[18]+=65536),(r>11>16&&(3&t[2])===e){t[2]+=2048;try{o.call(r)}finally{}}}else try{o.call(r)}finally{}}class ve{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Te(t,e,i){const n=Tt(t);let s=0;for(;se){r=o-1;break}}}for(;o>16,n=e;for(;i>0;)n=n[15],i--;return n}let Oe=!0;function Re(t){const e=Oe;return Oe=t,e}let De=0;function Pe(t,e){const i=Ie(t,e);if(-1!==i)return i;const n=e[1];n.firstCreatePass&&(t.injectorIndex=e.length,Ne(n.data,t),Ne(e,null),Ne(n.blueprint,null));const s=qe(t,e),o=t.injectorIndex;if(Ee(s)){const t=ze(s),i=xe(s,e),n=i[1].data;for(let s=0;s<8;s++)e[o+s]=i[t+s]|n[t+s]}return e[o+8]=s,o}function Ne(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Ie(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function qe(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let i=0,n=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(n=2===e?t.declTNode:1===e?s[6]:null,null===n)return-1;if(i++,s=s[15],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return-1}function Be(t,e,i){!function(t,e,i){let n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty(X)&&(n=i[X]),null==n&&(n=i[X]=De++);const s=255&n;e.data[t+(s>>5)]|=1<=0?255&e:We:e}(i);if("function"==typeof o){if(!oe(e,t,n))return n&E.Host?He(s,i,n):Ye(e,i,n,s);try{const t=o(n);if(null!=t||n&E.Optional)return t;y(i)}finally{le()}}else if("number"==typeof o){let s=null,r=Ie(t,e),a=-1,c=n&E.Host?e[16][6]:null;for((-1===r||n&E.SkipSelf)&&(a=-1===r?qe(t,e):e[r+8],-1!==a&&Xe(n,!1)?(s=e[1],r=ze(a),e=xe(a,e)):r=-1);-1!==r;){const t=e[1];if(Ge(o,r,t.data)){const t=Ue(r,e,i,s,n,c);if(t!==Fe)return t}a=e[r+8],-1!==a&&Xe(n,e[1].data[r+8]===c)&&Ge(o,r,e)?(s=t,r=ze(a),e=xe(a,e)):r=-1}}}return Ye(e,i,n,s)}const Fe={};function We(){return new Ve(jt(),Bt())}function Ue(t,e,i,n,s,o){const r=e[1],a=r.data[t+8],c=Ke(a,r,i,null==n?ht(a)&&Oe:n!=r&&0!=(3&a.type),s&E.Host&&o===a);return null!==c?Ze(e,r,c,a):Fe}function Ke(t,e,i,n,s){const o=t.providerIndexes,r=e.data,a=1048575&o,c=t.directiveStart,u=o>>20,l=s?a+u:t.directiveEnd;for(let h=n?a:a+u;h=c&&t.type===i)return h}if(s){const t=r[c];if(t&&pt(t)&&t.type===i)return c}return null}function Ze(t,e,i,n){let s=t[i];const o=e.data;if(s instanceof ve){const r=s;r.resolving&&function(t,e){throw new m("200",`Circular dependency in DI detected for ${t}`)}(b(o[i]));const a=Re(r.canSeeViewProviders);r.resolving=!0;const c=r.injectImpl?x(r.injectImpl):null;oe(t,n,E.Default);try{s=t[i]=r.factory(void 0,o,t,n),e.firstCreatePass&&i>=n.directiveStart&&function(t,e,i){const{ngOnChanges:n,ngOnInit:s,ngDoCheck:o}=e.type.prototype;if(n){const n=_t(e);(i.preOrderHooks||(i.preOrderHooks=[])).push(t,n),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,n)}s&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-t,s),o&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,o),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,o))}(i,o[i],e)}finally{null!==c&&x(c),Re(a),r.resolving=!1,le()}}return s}function Ge(t,e,i){return!!(i[e+(t>>5)]&1<{const e=t.prototype.constructor,i=e[G]||Je(e),n=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==n;){const t=s[G]||Je(s);if(t&&t!==i)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function Je(t){return g(t)?()=>{const e=Je(f(t));return e&&e()}:ft(t)}function Qe(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const i=t.attrs;if(i){const t=i.length;let n=0;for(;n{const n=function(t){return function(...e){if(t){const i=t(...e);for(const t in i)this[t]=i[t]}}}(e);function s(...t){if(this instanceof s)return n.apply(this,t),this;const e=new s(...t);return i.annotation=e,i;function i(t,i,n){const s=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;s.length<=n;)s.push(null);return(s[n]=s[n]||[]).push(e),t}}return i&&(s.prototype=Object.create(i.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class ei{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=w({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const ii=new ei("AnalyzeForEntryComponents"),ni=Function;function si(t,e){void 0===e&&(e=t);for(let i=0;iArray.isArray(t)?oi(t,e):e(t))}function ri(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function ai(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function ci(t,e){const i=[];for(let n=0;n=0?t[1|n]=i:(n=~n,function(t,e,i,n){let s=t.length;if(s==e)t.push(i,n);else if(1===s)t.push(n,t[0]),t[0]=i;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=i,t[e+1]=n}}(t,n,e,i)),n}function li(t,e){const i=hi(t,e);if(i>=0)return t[1|i]}function hi(t,e){return function(t,e,i){let n=0,s=t.length>>1;for(;s!==n;){const i=n+(s-n>>1),o=t[i<<1];if(e===o)return i<<1;o>e?s=i:n=i+1}return~(s<<1)}(t,e)}const di={},pi=/\n/gm,fi=c({provide:String,useValue:c});let gi;function mi(t){const e=gi;return gi=t,e}function _i(t,e=E.Default){if(void 0===gi)throw new Error("inject() must be called from an injection context");return null===gi?O(t,void 0,e):gi.get(t,e&E.Optional?null:void 0,e)}function bi(t,e=E.Default){return(z||_i)(f(t),e)}const yi=bi;function wi(t){const e=[];for(let i=0;i({token:t})),-1),vi=Ai(ti("Optional"),8),Ti=Ai(ti("SkipSelf"),4);let ki,Li;function Ci(t){var e;return(null===(e=function(){if(void 0===ki&&(ki=null,H.trustedTypes))try{ki=H.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return ki}())||void 0===e?void 0:e.createHTML(t))||t}function Si(t){var e;return(null===(e=function(){if(void 0===Li&&(Li=null,H.trustedTypes))try{Li=H.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Li}())||void 0===e?void 0:e.createHTML(t))||t}class Ei{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class zi extends Ei{getTypeName(){return"HTML"}}class xi extends Ei{getTypeName(){return"Style"}}class Oi extends Ei{getTypeName(){return"Script"}}class Ri extends Ei{getTypeName(){return"URL"}}class Di extends Ei{getTypeName(){return"ResourceURL"}}function Pi(t){return t instanceof Ei?t.changingThisBreaksApplicationSecurity:t}function Ni(t,e){const i=Ii(t);if(null!=i&&i!==e){if("ResourceURL"===i&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${i} (see https://g.co/ng/security#xss)`)}return i===e}function Ii(t){return t instanceof Ei&&t.getTypeName()||null}function qi(t){return new zi(t)}function Bi(t){return new xi(t)}function Hi(t){return new Oi(t)}function Yi(t){return new Ri(t)}function ji(t){return new Di(t)}class Fi{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Ci(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class Wi{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Ci(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Ci(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let n=e.length-1;0Zi(t.trim())).join(", ")),this.buf.push(" ",e,'="',un(r),'"')}var n;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();tn.hasOwnProperty(e)&&!Vi.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(un(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const an=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,cn=/([^\#-~ |!])/g;function un(t){return t.replace(/&/g,"&").replace(an,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(cn,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let ln;function hn(t,e){let i=null;try{ln=ln||function(t){const e=new Wi(t);return function(){try{return!!(new window.DOMParser).parseFromString(Ci(""),"text/html")}catch(t){return!1}}()?new Fi(e):e}(t);let n=e?String(e):"";i=ln.getInertBodyElement(n);let s=5,o=n;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,n=o,o=i.innerHTML,i=ln.getInertBodyElement(n)}while(n!==o);return Ci((new rn).sanitizeChildren(dn(i)||i))}finally{if(i){const t=dn(i)||i;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function dn(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var pn=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function fn(t){const e=mn();return e?Si(e.sanitize(pn.HTML,t)||""):Ni(t,"HTML")?Si(Pi(t)):hn(vt(),_(t))}function gn(t){const e=mn();return e?e.sanitize(pn.URL,t)||"":Ni(t,"URL")?Pi(t):Zi(_(t))}function mn(){const t=Bt();return t&&t[12]}function _n(t,e){t.__ngContext__=e}function bn(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function yn(t){return t.ngDebugContext}function wn(t){return t.ngOriginalError}function An(t,...e){t.error(...e)}class Mn{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=this._findContext(t),n=function(t){return t.ngErrorLogger||An}(t);n(this._console,"ERROR",t),e&&n(this._console,"ORIGINAL ERROR",e),i&&n(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?yn(t)?yn(t):this._findContext(wn(t)):null}_findOriginalError(t){let e=wn(t);for(;e&&wn(e);)e=wn(e);return e}}const vn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(H))();function Tn(t){return t.ownerDocument.defaultView}function kn(t){return t.ownerDocument.body}function Ln(t){return t instanceof Function?t():t}var Cn=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function Sn(t,e){return(void 0)(t,e)}function En(t){const e=t[3];return ut(e)?e[3]:e}function zn(t){return On(t[13])}function xn(t){return On(t[4])}function On(t){for(;null!==t&&!ut(t);)t=t[4];return t}function Rn(t,e,i,n,s){if(null!=n){let o,r=!1;ut(n)?o=n:ct(n)&&(r=!0,n=n[0]);const a=Lt(n);0===t&&null!==i?null==s?Yn(e,i,a):Hn(e,i,a,s||null,!0):1===t&&null!==i?Hn(e,i,a,s||null,!0):2===t?function(t,e,i){const n=Fn(t,e);n&&function(t,e,i,n){Tt(t)?t.removeChild(e,i,n):e.removeChild(i)}(t,n,e,i)}(e,a,r):3===t&&e.destroyNode(a),null!=o&&function(t,e,i,n,s){const o=i[7];o!==Lt(i)&&Rn(e,t,n,o,s);for(let r=10;r0&&(t[i-1][4]=n[4]);const r=ai(t,10+e);$n(n[1],s=n,s[11],2,null,null),s[0]=null,s[6]=null;const a=r[19];null!==a&&a.detachView(r[1]),n[3]=null,n[4]=null,n[2]&=-129}var s;return n}function In(t,e){if(!(256&e[2])){const i=e[11];Tt(i)&&i.destroyNode&&$n(t,e,i,3,null,null),function(t){let e=t[13];if(!e)return qn(t[1],t);for(;e;){let i=null;if(ct(e))i=e[13];else{const t=e[10];t&&(i=t)}if(!i){for(;e&&!e[4]&&e!==t;)ct(e)&&qn(e[1],e),e=e[3];null===e&&(e=t),ct(e)&&qn(e[1],e),i=e&&e[4]}e=i}}(e)}}function qn(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let i;if(null!=t&&null!=(i=t.destroyHooks))for(let n=0;n=0?n[s=c]():n[s=-c].unsubscribe(),o+=2}else{const t=n[s=i[o+1]];i[o].call(t)}if(null!==n){for(let t=s+1;to?"":s[l+1].toLowerCase();const e=8&n?t:null;if(e&&-1!==es(e,u,0)||2&n&&u!==t){if(rs(n))return!1;r=!0}}}}else{if(!r&&!rs(n)&&!rs(c))return!1;if(r&&rs(c))continue;r=!1,n=c|1&n}}return rs(n)||r}function rs(t){return 0==(1&t)}function as(t,e,i,n){if(null===e)return-1;let s=0;if(n||!i){let i=!1;for(;s-1)for(i++;i0?'="'+e+'"':"")+"]"}else 8&n?s+="."+r:4&n&&(s+=" "+r);else""===s||rs(r)||(e+=ls(o,s),s=""),n=r,o=o||!rs(n);i++}return""!==s&&(e+=ls(o,s)),e}const ds={};function ps(t){fs(Ht(),Bt(),de()+t,Zt())}function fs(t,e,i,n){if(!n)if(3==(3&e[2])){const n=t.preOrderCheckHooks;null!==n&&be(e,n,i)}else{const n=t.preOrderHooks;null!==n&&ye(e,n,0,i)}pe(i)}function gs(t,e){return t<<17|e<<2}function ms(t){return t>>17&32767}function _s(t){return 2|t}function bs(t){return(131068&t)>>2}function ys(t,e){return-131069&t|e<<2}function ws(t){return 1|t}function As(t,e){const i=t.contentQueries;if(null!==i)for(let n=0;n20&&fs(t,e,20,Zt()),i(n,s)}finally{pe(o)}}function Es(t,e,i){if(lt(e)){const n=e.directiveEnd;for(let s=e.directiveStart;s0;){const i=t[--e];if("number"==typeof i&&i<0)return i}return 0})(i)!=o&&i.push(o),i.push(n,s,r)}}function Bs(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Hs(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Ys(t,e,i){if(i){if(e.exportAs)for(let n=0;n0&&Vs(i)}}function Vs(t){for(let i=zn(t);null!==i;i=xn(i))for(let t=10;t0&&Vs(e)}const e=t[1].components;if(null!==e)for(let i=0;i0&&Vs(n)}}function $s(t,e){const i=xt(e,t),n=i[1];!function(t,e){for(let i=e.length;iPromise.resolve(null))();function so(t){return t[7]||(t[7]=[])}function oo(t){return t.cleanup||(t.cleanup=[])}function ro(t,e,i){return(null===t||pt(t))&&(i=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(i[e.index])),i[11]}function ao(t,e){const i=t[9],n=i?i.get(Mn,null):null;n&&n.handleError(e)}function co(t,e,i,n,s){for(let o=0;othis.processProvider(i,t,e)),oi([t],t=>this.processInjectorType(t,[],s)),this.records.set(ho,vo(void 0,this));const o=this.records.get(fo);this.scope=null!=o?o.value:null,this.source=n||("object"==typeof t?null:l(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=di,i=E.Default){this.assertNotDestroyed();const n=mi(this);try{if(!(i&E.SkipSelf)){let e=this.records.get(t);if(void 0===e){const i=("function"==typeof(s=t)||"object"==typeof s&&s instanceof ei)&&M(t);e=i&&this.injectableDefInScope(i)?vo(Ao(t),go):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(i&E.Self?bo():this.parent).get(t,e=i&E.Optional&&e===di?null:e)}catch(o){if("NullInjectorError"===o.name){if((o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(l(t)),n)throw o;return function(t,e,i,n){const s=t.ngTempTokenPath;throw e.__source&&s.unshift(e.__source),t.message=function(t,e,i,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=l(e);if(Array.isArray(e))s=e.map(l).join(" -> ");else if("object"==typeof e){let t=[];for(let i in e)if(e.hasOwnProperty(i)){let n=e[i];t.push(i+":"+("string"==typeof n?JSON.stringify(n):l(n)))}s=`{${t.join(", ")}}`}return`${i}${n?"("+n+")":""}[${s}]: ${t.replace(pi,"\n ")}`}("\n"+t.message,s,i,n),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(o,t,"R3InjectorError",this.source)}throw o}finally{mi(n)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,i)=>t.push(l(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,i){if(!(t=f(t)))return!1;let n=T(t);const s=null==n&&t.ngModule||void 0,o=void 0===s?t:s,r=-1!==i.indexOf(o);if(void 0!==s&&(n=T(s)),null==n)return!1;if(null!=n.imports&&!r){let t;i.push(o);try{oi(n.imports,n=>{this.processInjectorType(n,e,i)&&(void 0===t&&(t=[]),t.push(n))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,i,n||j))}}this.injectorDefTypes.add(o);const a=ft(o)||(()=>new o);this.records.set(o,vo(a,go));const c=n.providers;if(null!=c&&!r){const e=t;oi(c,t=>this.processProvider(t,e,c))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,i){let n=ko(t=f(t))?t:f(t&&t.provide);const s=function(t,e,i){return To(t)?vo(void 0,t.useValue):vo(Mo(t),go)}(t);if(ko(t)||!0!==t.multi)this.records.get(n);else{let e=this.records.get(n);e||(e=vo(void 0,go,!0),e.factory=()=>wi(e.multi),this.records.set(n,e)),n=t,e.multi.push(t)}this.records.set(n,s)}hydrate(t,e){var i;return e.value===go&&(e.value=mo,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(i=e.value)&&"object"==typeof i&&"function"==typeof i.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=f(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Ao(t){const e=M(t),i=null!==e?e.factory:ft(t);if(null!==i)return i;if(t instanceof ei)throw new Error(`Token ${l(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const i=ci(e,"?");throw new Error(`Can't resolve all parameters for ${l(t)}: (${i.join(", ")}).`)}const i=function(t){const e=t&&(t[k]||t[C]);if(e){const i=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${i}" 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 "${i}" class.`),e}return null}(t);return null!==i?()=>i.factory(t):()=>new t}(t);throw new Error("unreachable")}function Mo(t,e,i){let n;if(ko(t)){const e=f(t);return ft(e)||Ao(e)}if(To(t))n=()=>f(t.useValue);else if((s=t)&&s.useFactory)n=()=>t.useFactory(...wi(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))n=()=>bi(f(t.useExisting));else{const e=f(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return ft(e)||Ao(e);n=()=>new e(...wi(t.deps))}var s;return n}function vo(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function To(t){return null!==t&&"object"==typeof t&&fi in t}function ko(t){return"function"==typeof t}const Lo=function(t,e,i){return function(t,e=null,i=null,n){const s=yo(t,e,i,n);return s._resolveInjectorDefTypes(),s}({name:i},e,t,i)};let Co=(()=>{class t{static create(t,e){return Array.isArray(t)?Lo(t,e,""):Lo(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=di,t.NULL=new po,t.\u0275prov=w({token:t,providedIn:"any",factory:()=>bi(ho)}),t.__NG_ELEMENT_ID__=-1,t})();function So(t,e){_e(bn(t)[1],jt())}function Eo(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,i=!0;const n=[t];for(;e;){let s;if(pt(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(i){n.push(s);const e=t;e.inputs=zo(t.inputs),e.declaredInputs=zo(t.declaredInputs),e.outputs=zo(t.outputs);const i=s.hostBindings;i&&Ro(t,i);const o=s.viewQuery,r=s.contentQueries;if(o&&xo(t,o),r&&Oo(t,r),u(t.inputs,s.inputs),u(t.declaredInputs,s.declaredInputs),u(t.outputs,s.outputs),pt(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let n=0;n=0;n--){const s=t[n];s.hostVars=e+=s.hostVars,s.hostAttrs=Ce(s.hostAttrs,i=Ce(i,s.hostAttrs))}}(n)}function zo(t){return t===Y?{}:t===j?[]:t}function xo(t,e){const i=t.viewQuery;t.viewQuery=i?(t,n)=>{e(t,n),i(t,n)}:e}function Oo(t,e){const i=t.contentQueries;t.contentQueries=i?(t,n,s)=>{e(t,n,s),i(t,n,s)}:e}function Ro(t,e){const i=t.hostBindings;t.hostBindings=i?(t,n)=>{e(t,n),i(t,n)}:e}let Do=null;function Po(){if(!Do){const t=H.Symbol;if(t&&t.iterator)Do=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Lt(t[n.index])):n.index;if(Tt(i)){let r=null;if(!a&&c&&(r=function(t,e,i,n){const s=t.cleanup;if(null!=s)for(let o=0;oi?t[i]:null}"string"==typeof t&&(o+=2)}return null}(t,e,s,n.index)),null!==r)(r.__ngLastListenerFn__||r).__ngNextListenerFn__=o,r.__ngLastListenerFn__=o,h=!1;else{o=dr(n,e,0,o,!1);const t=i.listen(p,s,o);l.push(o,t),u&&u.push(s,g,f,f+1)}}else o=dr(n,e,0,o,!0),p.addEventListener(s,o,r),l.push(o),u&&u.push(s,g,f,r)}else o=dr(n,e,0,o,!1);const d=n.outputs;let p;if(h&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let i=0;i0;)e=e[15],t--;return e}(t,It.lFrame.contextLView))[8]}(t)}function fr(t,e){let i=null;const n=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s=0}const Mr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function vr(t){return t.substring(Mr.key,Mr.keyEnd)}function Tr(t,e){const i=Mr.textEnd;return i===e?-1:(e=Mr.keyEnd=function(t,e,i){for(;e32;)e++;return e}(t,Mr.key=e,i),kr(t,e,i))}function kr(t,e,i){for(;e=0;i=Tr(e,i))ui(t,vr(e),!0)}function zr(t,e,i,n){const s=Bt(),o=Ht(),r=Jt(2);o.firstUpdatePass&&Rr(o,t,r,n),e!==ds&&Ho(s,r,e)&&Nr(o,o.data[de()],s,s[11],t,s[r+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=l(Pi(t)))),t}(e,i),n,r)}function xr(t,e,i,n){const s=Ht(),o=Jt(2);s.firstUpdatePass&&Rr(s,null,o,n);const r=Bt();if(i!==ds&&Ho(r,o,i)){const a=s.data[de()];if(Br(a,n)&&!Or(s,o)){let t=n?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(i=h(t,i||"")),$o(s,a,r,i,n)}else!function(t,e,i,n,s,o,r,a){s===ds&&(s=j);let c=0,u=0,l=0=t.expandoStartIndex}function Rr(t,e,i,n){const s=t.data;if(null===s[i+1]){const o=s[de()],r=Or(t,i);Br(o,n)&&null===e&&!r&&(e=!1),e=function(t,e,i,n){const s=ee(t);let o=n?e.residualClasses:e.residualStyles;if(null===s)0===(n?e.classBindings:e.styleBindings)&&(i=Pr(i=Dr(null,t,e,i,n),e.attrs,n),o=null);else{const r=e.directiveStylingLast;if(-1===r||t[r]!==s)if(i=Dr(s,t,e,i,n),null===o){let i=function(t,e,i){const n=i?e.classBindings:e.styleBindings;if(0!==bs(n))return t[ms(n)]}(t,e,n);void 0!==i&&Array.isArray(i)&&(i=Dr(null,t,e,i[1],n),i=Pr(i,e.attrs,n),function(t,e,i,n){t[ms(i?e.classBindings:e.styleBindings)]=n}(t,e,n,i))}else o=function(t,e,i){let n;const s=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0)&&(l=!0)}else u=i;if(s)if(0!==c){const e=ms(t[a+1]);t[n+1]=gs(e,a),0!==e&&(t[e+1]=ys(t[e+1],n)),t[a+1]=131071&t[a+1]|n<<17}else t[n+1]=gs(a,0),0!==a&&(t[a+1]=ys(t[a+1],n)),a=n;else t[n+1]=gs(c,0),0===a?a=n:t[c+1]=ys(t[c+1],n),c=n;l&&(t[n+1]=_s(t[n+1])),wr(t,u,n,!0),wr(t,u,n,!1),function(t,e,i,n,s){const o=s?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&hi(o,e)>=0&&(i[n+1]=ws(i[n+1]))}(e,u,t,n,o),r=gs(a,c),o?e.classBindings=r:e.styleBindings=r}(s,o,e,i,r,n)}}function Dr(t,e,i,n,s){let o=null;const r=i.directiveEnd;let a=i.directiveStylingLast;for(-1===a?a=i.directiveStart:a++;a0;){const e=t[s],o=Array.isArray(e),c=o?e[1]:e,u=null===c;let l=i[s+1];l===ds&&(l=u?j:void 0);let h=u?li(l,n):c===n?l:void 0;if(o&&!qr(h)&&(h=li(e,n)),qr(h)&&(a=h,r))return a;const d=t[s+1];s=r?ms(d):bs(d)}if(null!==e){let t=o?e.residualClasses:e.residualStyles;null!=t&&(a=li(t,n))}return a}function qr(t){return void 0!==t}function Br(t,e){return 0!=(t.flags&(e?16:32))}function Hr(t,e=""){const i=Bt(),n=Ht(),s=t+20,o=n.firstCreatePass?vs(n,s,1,e,null):n.data[s],r=i[s]=function(t,e){return Tt(t)?t.createText(e):t.createTextNode(e)}(i[11],e);Kn(n,i,r,o),Wt(o,!1)}function Yr(t){return jr("",t,""),Yr}function jr(t,e,i){const n=Bt(),s=Fo(n,t,e,i);return s!==ds&&uo(n,de(),s),jr}function Fr(t,e,i,n,s){const o=Bt(),r=Wo(o,t,e,i,n,s);return r!==ds&&uo(o,de(),r),Fr}function Wr(t,e,i,n,s,o,r,a,c,u,l){const h=Bt(),d=function(t,e,i,n,s,o,r,a,c,u,l,h){const d=Vt();let p=function(t,e,i,n,s,o){const r=Yo(t,e,i,n);return Yo(t,e+2,s,o)||r}(t,d,i,s,r,c);return p=Ho(t,d+4,l)||p,Jt(5),p?e+_(i)+n+_(s)+o+_(r)+a+_(c)+u+_(l)+h:ds}(h,t,e,i,n,s,o,r,a,c,u,l);return d!==ds&&uo(h,de(),d),Wr}function Ur(t,e,i){xr(ui,Er,Fo(Bt(),t,e,i),!0)}function Kr(t,e,i){const n=Bt();return Ho(n,$t(),e)&&Ns(Ht(),fe(),n,t,e,n[11],i,!0),Kr}function Zr(t,e,i){const n=Bt();if(Ho(n,$t(),e)){const s=Ht(),o=fe();Ns(s,o,n,t,e,ro(ee(s.data),o,n),i,!0)}return Zr}const Gr=void 0;var Xr=["en",[["a","p"],["AM","PM"],Gr],[["AM","PM"],Gr,Gr],[["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"]],Gr,[["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"]],Gr,[["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}",Gr,"{1} 'at' {0}",Gr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let Vr={};function $r(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let i=Qr(e);if(i)return i;const n=e.split("-")[0];if(i=Qr(n),i)return i;if("en"===n)return Xr;throw new Error(`Missing locale data for the locale "${t}".`)}function Jr(t){return $r(t)[ta.PluralCase]}function Qr(t){return t in Vr||(Vr[t]=H.ng&&H.ng.common&&H.ng.common.locales&&H.ng.common.locales[t]),Vr[t]}var ta=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});let ea="en-US";function ia(t){var e,i;i="Expected localeId to be defined",null==(e=t)&&function(t,e,i,n){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(i,e),"string"==typeof t&&(ea=t.toLowerCase().replace(/_/g,"-"))}function na(t,e,i,n,s){if(t=f(t),Array.isArray(t))for(let o=0;o>20;if(ko(t)||!t.multi){const n=new ve(c,s,Go),p=ra(a,e,s?l:l+d,h);-1===p?(Be(Pe(u,r),o,a),sa(o,t,e.length),e.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),i.push(n),r.push(n)):(i[p]=n,r[p]=n)}else{const p=ra(a,e,l+d,h),f=ra(a,e,l,l+d),g=p>=0&&i[p],m=f>=0&&i[f];if(s&&!m||!s&&!g){Be(Pe(u,r),o,a);const l=function(t,e,i,n,s){const o=new ve(t,i,Go);return o.multi=[],o.index=e,o.componentProviders=0,oa(o,s,n&&!i),o}(s?ca:aa,i.length,s,n,c);!s&&m&&(i[f].providerFactory=l),sa(o,t,e.length,0),e.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),i.push(l),r.push(l)}else sa(o,t,p>-1?p:f,oa(i[s?f:p],c,!s&&n));!s&&n&&m&&i[f].componentProviders++}}}function sa(t,e,i,n){const s=ko(e);if(s||e.useClass){const o=(e.useClass||e).prototype.ngOnDestroy;if(o){const r=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=r.indexOf(i);-1===t?r.push(i,[n,o]):r[t+1].push(n,o)}else r.push(i,o)}}}function oa(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function ra(t,e,i,n){for(let s=i;s{i.providersResolver=(i,n)=>function(t,e,i){const n=Ht();if(n.firstCreatePass){const s=pt(t);na(i,n.data,n.blueprint,s,!0),na(e,n.data,n.blueprint,s,!1)}}(i,n?n(t):t,e)}}class ha{}class da{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${l(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let pa=(()=>{class t{}return t.NULL=new da,t})();function fa(...t){}function ga(t,e){return new _a(St(t,e))}const ma=function(){return ga(jt(),Bt())};let _a=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=ma,t})();function ba(t){return t instanceof _a?t.nativeElement:t}class ya{}let wa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Aa(),t})();const Aa=function(){const t=Bt(),e=xt(jt().index,t);return function(t){return t[11]}(ct(e)?e:t)};let Ma=(()=>{class t{}return t.\u0275prov=w({token:t,providedIn:"root",factory:()=>null}),t})();class va{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ta=new va("12.0.5");class ka{constructor(){}supports(t){return Io(t)}create(t){return new Ca(t)}}const La=(t,e)=>e;class Ca{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||La}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,n=0,s=null;for(;e||i;){const o=!i||e&&e.currentIndex{n=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,n)?(o&&(s=this._verifyReinsertion(s,t,n,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,n,e),o=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,n){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,n)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,n))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,n)):t=this._addAfter(new Sa(e,i),s,n),t}_verifyReinsertion(t,e,i,n){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,n):t.currentIndex!=n&&(t.currentIndex=n,this._addToMoves(t,n)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const n=t._prevRemoved,s=t._nextRemoved;return null===n?this._removalsHead=s:n._nextRemoved=s,null===s?this._removalsTail=n:s._prevRemoved=n,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const n=null===e?this._itHead:e._next;return t._next=n,t._prev=e,null===n?this._itTail=t:n._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new za),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new za),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Sa{constructor(t,e){this.item=t,this.trackById=e,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 Ea{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class za{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new Ea,this.map.set(e,i)),i.add(t)}get(t,e){const i=this.map.get(t);return i?i.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function xa(t,e,i){const n=t.previousIndex;if(null===n)return n;let s=0;return i&&n{if(e&&e.key===i)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const n=this._getOrCreateRecordForKey(i,t);e=this._insertBeforeOrAppend(e,n)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,e);const n=i._prev,s=i._next;return n&&(n._next=s),s&&(s._prev=n),i._next=null,i._prev=null,i}const i=new Da(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class Da{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Pa(){return new Na([new ka])}let Na=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(null!=i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Pa()),deps:[[t,new Ti,new vi]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${i=t,i.name||typeof i}'`);var i}}return t.\u0275prov=w({token:t,providedIn:"root",factory:Pa}),t})();function Ia(){return new qa([new Oa])}let qa=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Ia()),deps:[[t,new Ti,new vi]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=w({token:t,providedIn:"root",factory:Ia}),t})();function Ba(t,e,i,n,s=!1){for(;null!==i;){const o=e[i.index];if(null!==o&&n.push(Lt(o)),ut(o))for(let t=10;t-1&&(Nn(t,i),ai(e,i))}this._attachedToViewContainer=!1}In(this._lView[1],this._lView)}onDestroy(t){Ds(this._lView[1],this._lView,null,t)}markForCheck(){Qs(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){to(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,i){Gt(!0);try{to(t,e,i)}finally{Gt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,$n(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Ya extends Ha{constructor(t){super(t),this._view=t}detectChanges(){eo(this._view)}checkNoChanges(){!function(t){Gt(!0);try{eo(t)}finally{Gt(!1)}}(this._view)}get context(){return null}}const ja=function(t){return function(t,e,i){if(ht(t)&&!i){const i=xt(t.index,e);return new Ha(i,i)}return 47&t.type?new Ha(e[16],e):null}(jt(),Bt(),16==(16&t))};let Fa=(()=>{class t{}return t.__NG_ELEMENT_ID__=ja,t})();const Wa=[new Oa],Ua=new Na([new ka]),Ka=new qa(Wa),Za=function(){return $a(jt(),Bt())};let Ga=(()=>{class t{}return t.__NG_ELEMENT_ID__=Za,t})();const Xa=Ga,Va=class extends Xa{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=Ms(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const n=this._declarationLView[19];return null!==n&&(i[19]=n.createEmbeddedView(e)),ks(e,i,t),new Ha(i)}};function $a(t,e){return 4&t.type?new Va(e,t,ga(t,e)):null}class Ja{}class Qa{}const tc=function(){return rc(jt(),Bt())};let ec=(()=>{class t{}return t.__NG_ELEMENT_ID__=tc,t})();const ic=ec,nc=class extends ic{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return ga(this._hostTNode,this._hostLView)}get injector(){return new Ve(this._hostTNode,this._hostLView)}get parentInjector(){const t=qe(this._hostTNode,this._hostLView);if(Ee(t)){const e=xe(t,this._hostLView),i=ze(t);return new Ve(e[1].data[i+8],e)}return new Ve(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=sc(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){const n=t.createEmbeddedView(e||{});return this.insert(n,i),n}createComponent(t,e,i,n,s){const o=i||this.parentInjector;if(!s&&null==t.ngModule&&o){const t=o.get(Ja,null);t&&(s=t)}const r=t.create(o,n,void 0,s);return this.insert(r.hostView,e),r}insert(t,e){const i=t._lView,n=i[1];if(ut(i[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=i[3],n=new nc(e,e[6],e[3]);n.detach(n.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function(t,e,i,n){const s=10+n,o=i.length;n>0&&(i[s-1][4]=e),nvn});class hc extends ha{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(hs).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return uc(this.componentDef.inputs)}get outputs(){return uc(this.componentDef.outputs)}create(t,e,i,n){const s=(n=n||this.ngModule)?function(t,e){return{get:(i,n,s)=>{const o=t.get(i,ac,s);return o!==ac||n===ac?o:e.get(i,n,s)}}}(t,n.injector):t,o=s.get(ya,kt),r=s.get(Ma,null),a=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function(t,e,i){if(Tt(t))return t.selectRootElement(e,i===P.ShadowDom);let n="string"==typeof e?t.querySelector(e):e;return n.textContent="",n}(a,i,this.componentDef.encapsulation):Dn(o.createRenderer(null,this.componentDef),c,function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),l=this.componentDef.onPush?576:528,h={components:[],scheduler:vn,clean:no,playerHandler:null,flags:0},d=Rs(0,null,null,1,0,null,null,null,null,null),p=Ms(null,d,h,l,null,null,o,a,r,s);let f,g;re(p);try{const t=function(t,e,i,n,s,o){const r=i[1];i[20]=t;const a=vs(r,20,2,"#host",null),c=a.mergedAttrs=e.hostAttrs;null!==c&&(lo(a,c,!0),null!==t&&(Te(s,t,c),null!==a.classes&&ts(s,t,a.classes),null!==a.styles&&Qn(s,t,a.styles)));const u=n.createRenderer(t,e),l=Ms(i,Os(e),null,e.onPush?64:16,i[20],a,n,u,null,null);return r.firstCreatePass&&(Be(Pe(a,i),r,e.type),Hs(r,a),js(a,i.length,1)),Js(i,l),i[20]=l}(u,this.componentDef,p,o,a);if(u)if(i)Te(a,u,["ng-version",Ta.full]);else{const{attrs:t,classes:e}=function(t){const e=[],i=[];let n=1,s=2;for(;n0&&ts(a,u,e.join(" "))}if(g=Et(d,20),void 0!==e){const t=g.projection=[];for(let i=0;it(r,e)),e.contentQueries){const t=jt();e.contentQueries(1,r,t.directiveStart)}const a=jt();return!o.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(pe(a.index),qs(i[1],a,0,a.directiveStart,a.directiveEnd,e),Bs(e,r)),r}(t,this.componentDef,p,h,[So]),ks(d,p,null)}finally{he()}return new dc(this.componentType,f,ga(g,p),p,g)}}class dc extends class{}{constructor(t,e,i,n,s){super(),this.location=i,this._rootLView=n,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new Ya(n),this.componentType=t}get injector(){return new Ve(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const pc=new Map;class fc extends Ja{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new cc(this);const i=at(t),n=t[Z]||null;n&&ia(n),this._bootstrapComponents=Ln(i.bootstrap),this._r3Injector=yo(t,e,[{provide:Ja,useValue:this},{provide:pa,useValue:this.componentFactoryResolver}],l(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Co.THROW_IF_NOT_FOUND,i=E.Default){return t===Co||t===Ja||t===ho?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class gc extends Qa{constructor(t){super(),this.moduleType=t,null!==at(t)&&function(t){const e=new Set;!function t(i){const n=at(i,!0),s=n.id;null!==s&&(function(t,e,i){if(e&&e!==i)throw new Error(`Duplicate module registered for ${t} - ${l(e)} vs ${l(e.name)}`)}(s,pc.get(s),i),pc.set(s,i));const o=Ln(n.imports);for(const r of o)e.has(r)||(e.add(r),t(r))}(t)}(t)}create(t){return new fc(this.moduleType,t)}}function mc(t,e,i){const n=Xt()+t,s=Bt();return s[n]===ds?Bo(s,n,i?e.call(i):e()):function(t,e){return t[e]}(s,n)}function _c(t,e,i,n){return wc(Bt(),Xt(),t,e,i,n)}function bc(t,e,i,n,s){return Ac(Bt(),Xt(),t,e,i,n,s)}function yc(t,e){const i=t[e];return i===ds?void 0:i}function wc(t,e,i,n,s,o){const r=e+i;return Ho(t,r,s)?Bo(t,r+1,o?n.call(o,s):n(s)):yc(t,r+1)}function Ac(t,e,i,n,s,o,r){const a=e+i;return Yo(t,a,s,o)?Bo(t,a+2,r?n.call(r,s,o):n(s,o)):yc(t,a+2)}function Mc(t,e){const i=Ht();let n;const s=t+20;i.firstCreatePass?(n=function(t,e){if(e)for(let i=e.length-1;i>=0;i--){const n=e[i];if(t===n.name)return n}throw new m("302",`The pipe '${t}' could not be found!`)}(e,i.pipeRegistry),i.data[s]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(s,n.onDestroy)):n=i.data[s];const o=n.factory||(n.factory=ft(n.type)),r=x(Go);try{const t=Re(!1),e=o();return Re(t),function(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}(i,Bt(),s,e),e}finally{x(r)}}function vc(t,e,i){const n=t+20,s=Bt(),o=zt(s,n);return Cc(s,Lc(s,n)?wc(s,Xt(),e,o.transform,i,o):o.transform(i))}function Tc(t,e,i,n){const s=t+20,o=Bt(),r=zt(o,s);return Cc(o,Lc(o,s)?Ac(o,Xt(),e,r.transform,i,n,r):r.transform(i,n))}function kc(t,e,i,n,s){const o=t+20,r=Bt(),a=zt(r,o);return Cc(r,Lc(r,o)?function(t,e,i,n,s,o,r,a){const c=e+i;return function(t,e,i,n,s){const o=Yo(t,e,i,n);return Ho(t,e+2,s)||o}(t,c,s,o,r)?Bo(t,c+3,a?n.call(a,s,o,r):n(s,o,r)):yc(t,c+3)}(r,Xt(),e,a.transform,i,n,s,a):a.transform(i,n,s))}function Lc(t,e){return t[1].data[e].pure}function Cc(t,e){return No.isWrapped(e)&&(e=No.unwrap(e),t[Vt()]=ds),e}function Sc(t){return e=>{setTimeout(t,void 0,e)}}const Ec=class extends n.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var n,o,r;let a=t,c=e||(()=>null),u=i;if(t&&"object"==typeof t){const e=t;a=null===(n=e.next)||void 0===n?void 0:n.bind(e),c=null===(o=e.error)||void 0===o?void 0:o.bind(e),u=null===(r=e.complete)||void 0===r?void 0:r.bind(e)}this.__isAsync&&(c=Sc(c),a&&(a=Sc(a)),u&&(u=Sc(u)));const l=super.subscribe({next:a,error:c,complete:u});return t instanceof s.w&&t.add(l),l}};function zc(){return this._results[Po()]()}class xc{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Po(),i=xc.prototype;i[e]||(i[e]=zc)}get changes(){return this._changes||(this._changes=new Ec)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){this.dirty=!1;const i=si(t);(this._changesDetected=!function(t,e,i){if(t.length!==e.length)return!1;for(let n=0;n0)n.push(r[t/2]);else{const s=o[t+1],r=e[-i];for(let t=10;t{class t{constructor(t){this.appInits=t,this.resolve=fa,this.reject=fa,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{e.subscribe({complete:t,error:i})});t.push(i)}}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(bi(Xc,8))},t.\u0275prov=w({token:t,factory:t.\u0275fac}),t})();const $c=new ei("AppId"),Jc={provide:$c,useFactory:function(){return`${Qc()}${Qc()}${Qc()}`},deps:[]};function Qc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const tu=new ei("Platform Initializer"),eu=new ei("Platform ID"),iu=new ei("appBootstrapListener");let nu=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac}),t})();const su=new ei("LocaleId"),ou=new ei("DefaultCurrencyCode");class ru{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const au=function(t){return new gc(t)},cu=au,uu=function(t){return Promise.resolve(au(t))},lu=function(t){const e=au(t),i=Ln(at(t).declarations).reduce((t,e)=>{const i=rt(e);return i&&t.push(new hc(i)),t},[]);return new ru(e,i)},hu=lu,du=function(t){return Promise.resolve(lu(t))};let pu=(()=>{class t{constructor(){this.compileModuleSync=cu,this.compileModuleAsync=uu,this.compileModuleAndAllComponentsSync=hu,this.compileModuleAndAllComponentsAsync=du}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac}),t})();const fu=(()=>Promise.resolve(0))();function gu(t){"undefined"==typeof Zone?fu.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class mu{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ec(!1),this.onMicrotaskEmpty=new Ec(!1),this.onStable=new Ec(!1),this.onError=new Ec(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=!i&&e,this.shouldCoalesceRunChangeDetection=i,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=H.requestAnimationFrame,e=H.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(H,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,yu(t),t.isCheckStableRunning=!0,bu(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),yu(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,s,o,r,a)=>{try{return wu(t),i.invokeTask(s,o,r,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&e(),Au(t)}},onInvoke:(i,n,s,o,r,a,c)=>{try{return wu(t),i.invoke(s,o,r,a,c)}finally{t.shouldCoalesceRunChangeDetection&&e(),Au(t)}},onHasTask:(e,i,n,s)=>{e.hasTask(n,s),i===n&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,yu(t),bu(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,n,s)=>(e.handleError(n,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!mu.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(mu.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,n){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+n,t,_u,fa,fa);try{return s.runTask(o,e,i)}finally{s.cancelTask(o)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const _u={};function bu(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function yu(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function wu(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Au(t){t._nesting--,bu(t)}class Mu{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ec,this.onMicrotaskEmpty=new Ec,this.onStable=new Ec,this.onError=new Ec}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,n){return t.apply(e,i)}}let vu=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{mu.assertNotInAngularZone(),gu(()=>{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())gu(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,i){let n=-1;e&&e>0&&(n=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==n),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:n,updateCb:i})}whenStable(t,e,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,e,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,i){return[]}}return t.\u0275fac=function(e){return new(e||t)(bi(mu))},t.\u0275prov=w({token:t,factory:t.\u0275fac}),t})(),Tu=(()=>{class t{constructor(){this._applications=new Map,Su.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Su.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac}),t})();class ku{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}function Lu(t){Su=t}let Cu,Su=new ku,Eu=!0,zu=!1;function xu(){return zu=!0,Eu}function Ou(){if(zu)throw new Error("Cannot enable prod mode after platform setup.");Eu=!1}const Ru=new ei("AllowMultipleToken");class Du{constructor(t,e){this.name=t,this.token=e}}function Pu(t,e,i=[]){const n=`Platform: ${e}`,s=new ei(n);return(e=[])=>{let o=Nu();if(!o||o.injector.get(Ru,!1))if(t)t(i.concat(e).concat({provide:s,useValue:!0}));else{const t=i.concat(e).concat({provide:s,useValue:!0},{provide:fo,useValue:"platform"});!function(t){if(Cu&&!Cu.destroyed&&!Cu.injector.get(Ru,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Cu=t.get(Iu);const e=t.get(tu,null);e&&e.forEach(t=>t())}(Co.create({providers:t,name:n}))}return function(t){const e=Nu();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function Nu(){return Cu&&!Cu.destroyed?Cu:null}let Iu=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const i=function(t,e){let i;return i="noop"===t?new Mu:("zone.js"===t?void 0:t)||new mu({enableLongStackTrace:xu(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),i}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),n=[{provide:mu,useValue:i}];return i.run(()=>{const e=Co.create({providers:n,parent:this.injector,name:t.moduleType.name}),s=t.create(e),o=s.injector.get(Mn,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.runOutsideAngular(()=>{const t=i.onError.subscribe({next:t=>{o.handleError(t)}});s.onDestroy(()=>{Hu(this._modules,s),t.unsubscribe()})}),function(t,e,i){try{const n=i();return or(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}(o,i,()=>{const t=s.injector.get(Vc);return t.runInitializers(),t.donePromise.then(()=>(ia(s.injector.get(su,"en-US")||"en-US"),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const i=qu({},e);return function(t,e,i){const n=new gc(i);return Promise.resolve(n)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,i))}_moduleDoBootstrap(t){const e=t.injector.get(Bu);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${l(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(bi(Co))},t.\u0275prov=w({token:t,factory:t.\u0275fac}),t})();function qu(t,e){return Array.isArray(e)?e.reduce(qu,t):Object.assign(Object.assign({},t),e)}let Bu=(()=>{class t{constructor(t,e,i,n,s){this._zone=t,this._injector=e,this._exceptionHandler=i,this._componentFactoryResolver=n,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const c=new o.y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),u=new o.y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{mu.assertNotInAngularZone(),gu(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const i=this._zone.onUnstable.subscribe(()=>{mu.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),i.unsubscribe()}});this.isStable=(0,r.T)(c,u.pipe((0,a.B)()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let i;i=t instanceof ha?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(i.componentType);const n=i.isBoundToModule?void 0:this._injector.get(Ja),s=i.create(Co.NULL,[],e||i.selector,n),o=s.location.nativeElement,r=s.injector.get(vu,null),a=r&&s.injector.get(Tu);return r&&a&&a.registerApplication(o,r),s.onDestroy(()=>{this.detachView(s.hostView),Hu(this.components,s),a&&a.unregisterApplication(o)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Hu(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(iu,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(bi(mu),bi(Co),bi(Mn),bi(pa),bi(Vc))},t.\u0275prov=w({token:t,factory:t.\u0275fac}),t})();function Hu(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}class Yu{}class ju{}const Fu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Wu=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Fu}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,n]=t.split("#");return void 0===n&&(n="default"),i(1730)(e).then(t=>t[n]).then(t=>Uu(t,e,n)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,n]=t.split("#"),s="NgFactory";return void 0===n&&(n="default",s=""),i(1730)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[n+s]).then(t=>Uu(t,e,n))}}return t.\u0275fac=function(e){return new(e||t)(bi(pu),bi(ju,8))},t.\u0275prov=w({token:t,factory:t.\u0275fac}),t})();function Uu(t,e,i){if(!t)throw new Error(`Cannot find '${i}' in '${e}'`);return t}const Ku=function(t){return null},Zu=Pu(null,"core",[{provide:eu,useValue:"unknown"},{provide:Iu,deps:[Co]},{provide:Tu,deps:[]},{provide:nu,deps:[]}]),Gu=[{provide:Bu,useClass:Bu,deps:[mu,Co,Mn,pa,Vc]},{provide:lc,deps:[mu],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Vc,useClass:Vc,deps:[[new vi,Xc]]},{provide:pu,useClass:pu,deps:[]},Jc,{provide:Na,useFactory:function(){return Ua},deps:[]},{provide:qa,useFactory:function(){return Ka},deps:[]},{provide:su,useFactory:function(t){return ia(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new Mi(su),new vi,new Ti]]},{provide:ou,useValue:"USD"}];let Xu=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(bi(Bu))},t.\u0275mod=et({type:t}),t.\u0275inj=A({providers:Gu}),t})()},2623:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{zr:function(){return OAuthModule},Ct:function(){return OAuthService}});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1572),_angular_common__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(1511),_angular_common_http__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(9063),tslib__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(7632),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5959),rxjs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(878),rxjs__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(9764),rxjs__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(3875),rxjs__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(1225),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(1305),rxjs__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(1906),rxjs_operators__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3835),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6599),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(7701),rxjs_operators__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(509),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(4689),rxjs_operators__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(9996),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(3530),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(7727),rxjs_operators__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(9085),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(611),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(3982);module=__webpack_require__.hmd(module);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class t extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(t)))(i||t)}}(),t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class t{constructor(){this.data=new Map}getItem(t){return this.data.get(t)}removeItem(t){this.data.delete(t)}setItem(t,e){this.data.set(t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();class ReceivedTokens{}function b64DecodeUnicode(t){const e=t.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(e).split("").map(function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(t){return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(t){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){let e=this.inferHashAlgorithm(t.idTokenHeader),i=yield this.calcHash(t.accessToken,e),n=base64UrlEncode(i.substr(0,i.length/2)),s=t.idTokenClaims.at_hash.replace(/=/g,"");return n!==s&&(console.error("exptected at_hash: "+n),console.error("actual at_hash: "+s)),n===s})}inferHashAlgorithm(t){let e=t.alg;if(!e.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+e);return"sha-"+e.substr(2)}}let UrlHelperService=(()=>{class t{getHashFragmentParams(t){let e=t||window.location.hash;if(e=decodeURIComponent(e),0!==e.indexOf("#"))return{};const i=e.indexOf("?");return e=e.substr(i>-1?i+1:1),this.parseQueryString(e)}parseQueryString(t){const e={};let i,n,s,o,r,a,c;if(null===t)return e;i=t.split("&");for(let u=0;u{location.href=t},t&&Object.assign(this,t)}}class WebHttpUrlEncodingCodec{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&module.exports,AMD="function"==typeof define&&__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[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],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t,e){return function(i){return new Sha256(e,!0).update(i)[t]()}};const \u02750=createOutputMethod;var createMethod=function(t){var e=createOutputMethod("hex",t);NODE_JS&&(e=nodeWrap(e,t)),e.create=function(){return new Sha256(t)},e.update=function(t){return e.create().update(t)};for(var i=0;i>6,r[c++]=128|63&o):o<55296||o>=57344?(r[c++]=224|o>>12,r[c++]=128|o>>6&63,r[c++]=128|63&o):(o=65536+((1023&o)<<10|1023&t.charCodeAt(++n)),r[c++]=240|o>>18,r[c++]=128|o>>12&63,r[c++]=128|o>>6&63,r[c++]=128|63&o);t=r}else{if("object"!==s)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR)}t.length>64&&(t=new Sha256(e,!0).update(t).array());var u=[],l=[];for(n=0;n<64;++n){var h=t[n]||0;u[n]=92^h,l[n]=54^h}Sha256.call(this,e,i),this.update(l),this.oKeyPad=u,this.inner=!0,this.sharedMemory=i}Sha256.prototype.update=function(t){if(!this.finalized){var e,i=typeof t;if("string"!==i){if("object"!==i)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR);e=!0}for(var n,s,o=0,r=t.length,a=this.blocks;o>2]|=t[o]<>2]|=n<>2]|=(192|n>>6)<>2]|=(128|63&n)<=57344?(a[s>>2]|=(224|n>>12)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<>2]|=(240|n>>18)<>2]|=(128|n>>12&63)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<=64?(this.block=a[16],this.start=s-64,this.hash(),this.hashed=!0):this.start=s}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 t=this.blocks,e=this.lastByteIndex;t[16]=this.block,t[e>>2]|=EXTRA[3&e],this.block=t[16],e>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var t,e,i,n,s,o,r=this.h0,a=this.h1,c=this.h2,u=this.h3,l=this.h4,h=this.h5,d=this.h6,p=this.h7,f=this.blocks;for(t=16;t<64;++t)f[t]=f[t-16]+(((e=f[t-15])>>>7|e<<25)^(e>>>18|e<<14)^e>>>3)+f[t-7]+(((e=f[t-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)<<0;for(o=a&c,t=0;t<64;t+=4)this.first?(this.is224?(i=300032,p=(e=f[0]-1413257819)-150054599<<0,u=e+24177077<<0):(i=704751109,p=(e=f[0]-210244248)-1521486534<<0,u=e+143694565<<0),this.first=!1):(p=u+(e=p+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&h^~l&d)+K[t]+f[t])<<0,u=e+(((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+((i=r&a)^r&c^o))<<0),d=c+(e=d+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&l^~p&h)+K[t+1]+f[t+1])<<0,c=e+(((u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10))+((n=u&r)^u&a^i))<<0,h=a+(e=h+((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&p^~d&l)+K[t+2]+f[t+2])<<0,a=e+(((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+((s=c&u)^c&r^n))<<0,l=r+(e=l+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&d^~h&p)+K[t+3]+f[t+3])<<0,r=e+(((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+((o=a&c)^a&u^s))<<0;this.h0=this.h0+r<<0,this.h1=this.h1+a<<0,this.h2=this.h2+c<<0,this.h3=this.h3+u<<0,this.h4=this.h4+l<<0,this.h5=this.h5+h<<0,this.h6=this.h6+d<<0,this.h7=this.h7+p<<0},Sha256.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,i=this.h2,n=this.h3,s=this.h4,o=this.h5,r=this.h6,a=this.h7,c=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[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[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[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[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]+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]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r];return this.is224||(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]),c},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,i=this.h2,n=this.h3,s=this.h4,o=this.h5,r=this.h6,a=this.h7,c=[t>>24&255,t>>16&255,t>>8&255,255&t,e>>24&255,e>>16&255,e>>8&255,255&e,i>>24&255,i>>16&255,i>>8&255,255&i,n>>24&255,n>>16&255,n>>8&255,255&n,s>>24&255,s>>16&255,s>>8&255,255&s,o>>24&255,o>>16&255,o>>8&255,255&o,r>>24&255,r>>16&255,r>>8&255,255&r];return this.is224||c.push(a>>24&255,a>>16&255,a>>8&255,255&a),c},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(this.is224?28:32),e=new DataView(t);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),e.setUint32(20,this.h5),e.setUint32(24,this.h6),this.is224||e.setUint32(28,this.h7),t},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(t),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0);class HashHandler{}let DefaultHashHandler=(()=>{class t{calcHash(t,e){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){const e=exports.array(t);return this.toHashString2(e)})}toHashString2(t){let e="";for(let i of t)e+=String.fromCharCode(i);return e}toHashString(t){const e=new Uint8Array(t);let i="";for(let n of e)i+=String.fromCharCode(n);return i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})(),OAuthService=(()=>{class t extends AuthConfig{constructor(t,e,i,n,s,o,r,a,c,u){var l;super(),this.ngZone=t,this.http=e,this.config=s,this.urlHelper=o,this.logger=r,this.crypto=a,this.dateTimeService=u,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_2__.xQ,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_2__.xQ,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=c,s||(s={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),n&&(this.tokenValidationHandler=n),s&&this.configure(s);try{i?this.setStorage(i):"undefined"!=typeof sessionStorage&&this.setStorage(sessionStorage)}catch(h){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",h)}if("undefined"!=typeof window&&void 0!==window.localStorage){const t=null===(l=null===window||void 0===window?void 0:window.navigator)||void 0===l?void 0:l.userAgent;((null==t?void 0:t.includes("MSIE "))||(null==t?void 0:t.includes("Trident")))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}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_3__.h)(t=>"token_received"===t.type)).subscribe(t=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(t={},e,i=!0){let n=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.b)(t=>{"token_received"===t.type?n=!0:"logout"===t.type&&(n=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>"token_expires"===t.type&&(null==e||"any"===e||t.info===e)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(1e3)).subscribe(e=>{n&&this.refreshInternal(t,i).catch(t=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(t,e){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(t,e):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(t=null){return this.loadDiscoveryDocument().then(e=>this.tryLogin(t))}loadDiscoveryDocumentAndLogin(t=null){return this.loadDiscoveryDocumentAndTryLogin(t=t||{}).then(e=>!(!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 e=[],i=this.validateUrlForHttps(t),n=this.validateUrlAgainstIssuer(t);return i||e.push("https for all urls required. Also for urls received by discovery."),n||e.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),e}validateUrlForHttps(t){if(!t)return!0;const e=t.toLowerCase();return!1===this.requireHttps||!(!e.match(/^http:\/\/localhost($|[:\/])/)&&!e.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps)||e.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(t,e){if(!t)throw new Error(`'${e}' should not be null`);if(!this.validateUrlForHttps(t))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(t){return!this.strictDiscoveryDocumentValidation||!t||t.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){"undefined"!=typeof window?((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_3__.h)(t=>"token_received"===t.type)).subscribe(t=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})):this.debug("timer not supported on this plattform")}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const t=this.getAccessTokenExpiration(),e=this.getAccessTokenStoredAt(),i=this.calcTimeout(e,t);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.g)(i)).subscribe(t=>{this.ngZone.run(()=>{this.eventsSubject.next(t)})})})}setupIdTokenTimer(){const t=this.getIdTokenExpiration(),e=this.getIdTokenStoredAt(),i=this.calcTimeout(e,t);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.g)(i)).subscribe(t=>{this.ngZone.run(()=>{this.eventsSubject.next(t)})})})}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,e){const i=this.dateTimeService.now();return Math.max(0,(e-t)*this.timeoutFactor-(i-t))}setStorage(t){this._storage=t,this.configChanged()}loadDiscoveryDocument(t=null){return new Promise((e,i)=>{t||((t=this.issuer||"").endsWith("/")||(t+="/"),t+=".well-known/openid-configuration"),this.validateUrlForHttps(t)?this.http.get(t).subscribe(t=>{if(!this.validateDiscoveryDocument(t))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void i("discovery_document_validation_error");this.loginUrl=t.authorization_endpoint,this.logoutUrl=t.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=t.grant_types_supported,this.issuer=t.issuer,this.tokenEndpoint=t.token_endpoint,this.userinfoEndpoint=t.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=t.jwks_uri,this.sessionCheckIFrameUrl=t.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(t),this.revocationEndpoint=t.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(i=>{const n=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:t,jwks:i});this.eventsSubject.next(n),e(n)}).catch(t=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",t)),i(t)})},t=>{this.logger.error("error loading discovery document",t),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",t)),i(t)}):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,e)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(e=>{this.jwks=e,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),t(e)},t=>{this.logger.error("error loading jwks",t),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",t)),e(t)}):t(null)})}validateDiscoveryDocument(t){let e;return this.skipIssuerCheck||t.issuer===this.issuer?(e=this.validateUrlFromDiscoveryDocument(t.authorization_endpoint),e.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(t.end_session_endpoint),e.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(t.token_endpoint),e.length>0&&this.logger.error("error validating token_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(t.revocation_endpoint),e.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(t.userinfo_endpoint),e.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(t.jwks_uri),e.length>0?(this.logger.error("error validating jwks_uri in discovery document",e),!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,e,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM){return this.fetchTokenUsingPasswordFlow(t,e,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,e)=>{const i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:i,observe:"response",responseType:"text"}).subscribe(i=>{if(this.debug("userinfo received",JSON.stringify(i)),i.headers.get("content-type").startsWith("application/json")){let n=JSON.parse(i.body);const s=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!s.sub||n.sub!==s.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");n=Object.assign({},s,n),this._storage.setItem("id_token_claims_obj",JSON.stringify(n)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),t({info:n})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),t(JSON.parse(i.body))},t=>{this.logger.error("error loading user info",t),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",t)),e(t)})})}fetchTokenUsingPasswordFlow(t,e,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM){return this.fetchTokenUsingGrant("password",{username:t,password:e},i)}fetchTokenUsingGrant(t,e,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",t).set("scope",this.scope);if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+t)}if(this.useHttpBasicAuth||(n=n.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(n=n.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const s of Object.getOwnPropertyNames(this.customQueryParams))n=n.set(s,this.customQueryParams[s]);for(const s of Object.keys(e))n=n.set(s,e[s]);return i=i.set("Content-Type","application/x-www-form-urlencoded"),new Promise((t,e)=>{this.http.post(this.tokenEndpoint,n,{headers:i}).subscribe(e=>{this.debug("tokenResponse",e),this.storeAccessTokenResponse(e.access_token,e.refresh_token,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,e.scope,this.extractRecognizedCustomParameters(e)),this.oidc&&e.id_token&&this.processIdToken(e.id_token,e.access_token).then(i=>{this.storeIdToken(i),t(e)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),t(e)},t=>{this.logger.error("Error performing ${grantType} flow",t),this.eventsSubject.next(new OAuthErrorEvent("token_error",t)),e(t)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((t,e)=>{let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),n=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);n=n.set("Authorization","Basic "+t)}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 s of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(s,this.customQueryParams[s]);this.http.post(this.tokenEndpoint,i,{headers:n}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.w)(t=>t.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_10__.D)(this.processIdToken(t.id_token,t.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.b)(t=>this.storeIdToken(t)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.U)(e=>t)):(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(t))).subscribe(e=>{this.debug("refresh tokenResponse",e),this.storeAccessTokenResponse(e.access_token,e.refresh_token,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,e.scope,this.extractRecognizedCustomParameters(e)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),t(e)},t=>{this.logger.error("Error refreshing token",t),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",t)),e(t)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=t=>{const e=this.processMessageEventMessage(t);this.tryLogin({customHashFragment:e,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(t=>this.debug("tryLogin during silent refresh failed",t))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(t={},e=!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(void 0===this.document)throw new Error("silent refresh is not supported on this platform");const n=this.document.getElementById(this.silentRefreshIFrameName);n&&this.document.body.removeChild(n),this.silentRefreshSubject=i.sub;const s=this.document.createElement("iframe");s.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,e,t).then(t=>{s.setAttribute("src",t),this.silentRefreshShowIFrame||(s.style.display="none"),this.document.body.appendChild(s)});const o=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>t instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.P)()),r=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>"token_received"===t.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.P)()),a=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_13__.S3)([o,r,a]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.U)(t=>{if(t instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===t.type||(t=new OAuthErrorEvent("silent_refresh_error",t)),this.eventsSubject.next(t),t;return"token_received"===t.type&&(t=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(t)),t})).toPromise()}initImplicitFlowInPopup(t){return this.initLoginFlowInPopup(t)}initLoginFlowInPopup(t){return t=t||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(e=>new Promise((i,n)=>{let s,o=null;t.windowRef?t.windowRef&&!t.windowRef.closed&&(o=t.windowRef,o.location.href=e):o=window.open(e,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(t));const r=t=>{this.tryLogin({customHashFragment:t,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{a(),i(!0)},t=>{a(),n(t)})};o?s=window.setInterval(()=>{o&&!o.closed||(a(),n(new OAuthErrorEvent("popup_closed",{})))},500):n(new OAuthErrorEvent("popup_blocked",{}));const a=()=>{window.clearInterval(s),window.removeEventListener("storage",u),window.removeEventListener("message",c),null!==o&&o.close(),o=null},c=t=>{const e=this.processMessageEventMessage(t);e&&null!==e?(window.removeEventListener("storage",u),r(e)):console.log("false event firing")},u=t=>{"auth_hash"===t.key&&(window.removeEventListener("message",c),r(t.newValue))};window.addEventListener("message",c),window.addEventListener("storage",u)}))}calculatePopupFeatures(t){const e=t.height||470,i=t.width||500,n=window.screenLeft+(window.outerWidth-i)/2;return`location=no,toolbar=no,width=${i},height=${e},top=${window.screenTop+(window.outerHeight-e)/2},left=${n}`}processMessageEventMessage(t){let e="#";if(this.silentRefreshMessagePrefix&&(e+=this.silentRefreshMessagePrefix),!t||!t.data||"string"!=typeof t.data)return;const i=t.data;return i.startsWith(e)?"#"+i.substr(e.length):void 0}canPerformSessionCheck(){return!!this.sessionChecksEnabled&&(this.sessionCheckIFrameUrl?this.getSessionState()?void 0!==this.document:(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 e=t.origin.toLowerCase(),i=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),i.startsWith(e)){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",e,"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_3__.h)(t=>"silently_refreshed"===t.type||"silent_refresh_timeout"===t.type||"silent_refresh_error"===t.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.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 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 t=this.document.getElementById(this.sessionCheckIFrameName);t||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const e=this.getSessionState();e||this.stopSessionCheckTimer(),t.contentWindow.postMessage(this.clientId+" "+e,this.issuer)}createLoginUrl(t="",e="",i="",n=!1,s={}){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){let o;o=i||this.redirectUri;const r=yield this.createAndSaveNonce();if(t=t?r+this.config.nonceStateSeparator+encodeURIComponent(t):r,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.responseType=this.config.responseType?this.config.responseType:this.oidc&&this.requestAccessToken?"id_token token":this.oidc&&!this.requestAccessToken?"id_token":"token";const a=this.loginUrl.indexOf("?")>-1?"&":"?";let c=this.scope;this.oidc&&!c.match(/(^|\s)openid($|\s)/)&&(c="openid "+c);let u=this.loginUrl+a+"response_type="+encodeURIComponent(this.responseType)+"&client_id="+encodeURIComponent(this.clientId)+"&state="+encodeURIComponent(t)+"&redirect_uri="+encodeURIComponent(o)+"&scope="+encodeURIComponent(c);if(this.responseType.includes("code")&&!this.disablePKCE){const[t,e]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("PKCE_verifier",e):this._storage.setItem("PKCE_verifier",e),u+="&code_challenge="+t,u+="&code_challenge_method=S256"}e&&(u+="&login_hint="+encodeURIComponent(e)),this.resource&&(u+="&resource="+encodeURIComponent(this.resource)),this.oidc&&(u+="&nonce="+encodeURIComponent(r)),n&&(u+="&prompt=none");for(const t of Object.keys(s))u+="&"+encodeURIComponent(t)+"="+encodeURIComponent(s[t]);if(this.customQueryParams)for(const t of Object.getOwnPropertyNames(this.customQueryParams))u+="&"+t+"="+encodeURIComponent(this.customQueryParams[t]);return u})}initImplicitFlowInternal(t="",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 i={},n=null;"string"==typeof e?n=e:"object"==typeof e&&(i=e),this.createLoginUrl(t,n,null,!1,i).then(this.config.openUri).catch(t=>{console.error("Error in initImplicitFlow",t),this.inImplicitFlow=!1})}initImplicitFlow(t="",e=""){""!==this.loginUrl?this.initImplicitFlowInternal(t,e):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>"discovery_document_loaded"===t.type)).subscribe(i=>this.initImplicitFlowInternal(t,e))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(t){const e=this;if(t.onTokenReceived){const i={idClaims:e.getIdentityClaims(),idToken:e.getIdToken(),accessToken:e.getAccessToken(),state:e.state};t.onTokenReceived(i)}}storeAccessTokenResponse(t,e,i,n,s){if(this._storage.setItem("access_token",t),n&&!Array.isArray(n)?this._storage.setItem("granted_scopes",JSON.stringify(n.split(" "))):n&&Array.isArray(n)&&this._storage.setItem("granted_scopes",JSON.stringify(n)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),i){const t=1e3*i,e=this.dateTimeService.new().getTime()+t;this._storage.setItem("expires_at",""+e)}e&&this._storage.setItem("refresh_token",e),s&&s.forEach((t,e)=>{this._storage.setItem(e,t)})}tryLogin(t=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(t).then(t=>!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){const e=(t=t||{}).customHashFragment?t.customHashFragment.substring(1):window.location.search,i=this.getCodePartsFromUrl(e),n=i.code,s=i.state,o=i.session_state;if(!t.preventClearHashAfterLogin){const t=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,t)}let[r,a]=this.parseState(s);if(this.state=a,i.error){this.debug("error trying to login"),this.handleLoginError(t,i);const e=new OAuthErrorEvent("code_error",{},i);return this.eventsSubject.next(e),Promise.reject(e)}if(!t.disableNonceCheck){if(!r)return Promise.resolve();if(!t.disableOAuth2StateCheck&&!this.validateNonce(r)){const t=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(t),Promise.reject(t)}return this.storeSessionState(o),n?this.getTokenFromCode(n,t).then(t=>null):Promise.resolve()}}getCodePartsFromUrl(t){return t&&0!==t.length?("?"===t.charAt(0)&&(t=t.substr(1)),this.urlHelper.parseQueryString(t)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(t,e){let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",t).set("redirect_uri",e.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let t;t=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),t?i=i.set("code_verifier",t):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(i,e)}fetchAndProcessToken(t,e){e=e||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+t)}return this.useHttpBasicAuth||(t=t.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(t=t.set("client_secret",this.dummyClientSecret)),new Promise((n,s)=>{if(this.customQueryParams)for(let e of Object.getOwnPropertyNames(this.customQueryParams))t=t.set(e,this.customQueryParams[e]);this.http.post(this.tokenEndpoint,t,{headers:i}).subscribe(t=>{this.debug("refresh tokenResponse",t),this.storeAccessTokenResponse(t.access_token,t.refresh_token,t.expires_in||this.fallbackAccessTokenExpirationTimeInSec,t.scope,this.extractRecognizedCustomParameters(t)),this.oidc&&t.id_token?this.processIdToken(t.id_token,t.access_token,e.disableNonceCheck).then(e=>{this.storeIdToken(e),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),n(t)}).catch(t=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",t)),console.error("Error validating tokens"),console.error(t),s(t)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),n(t))},t=>{console.error("Error getting token",t),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",t)),s(t)})})}tryLoginImplicitFlow(t=null){let e;e=(t=t||{}).customHashFragment?this.urlHelper.getHashFragmentParams(t.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",e);const i=e.state;let[n,s]=this.parseState(i);if(this.state=s,e.error){this.debug("error trying to login"),this.handleLoginError(t,e);const i=new OAuthErrorEvent("token_error",{},e);return this.eventsSubject.next(i),Promise.reject(i)}const o=e.access_token,r=e.id_token,a=e.session_state,c=e.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!o)return Promise.resolve(!1);if(this.requestAccessToken&&!t.disableOAuth2StateCheck&&!i)return Promise.resolve(!1);if(this.oidc&&!r)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!a&&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(n)){const t=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(t),Promise.reject(t)}return this.requestAccessToken&&this.storeAccessTokenResponse(o,null,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,c),this.oidc?this.processIdToken(r,o,t.disableNonceCheck).then(e=>t.validationHandler?t.validationHandler({accessToken:o,idClaims:e.idTokenClaims,idToken:e.idToken,state:i}).then(t=>e):e).then(e=>(this.storeIdToken(e),this.storeSessionState(a),this.clearHashAfterLogin&&!t.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(t),this.inImplicitFlow=!1,!0)).catch(t=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",t)),this.logger.error("Error validating tokens"),this.logger.error(t),Promise.reject(t))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!t.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(t),Promise.resolve(!0))}parseState(t){let e=t,i="";if(t){const n=t.indexOf(this.config.nonceStateSeparator);n>-1&&(e=t.substr(0,n),i=t.substr(n+this.config.nonceStateSeparator.length))}return[e,i]}validateNonce(t){let e;return e=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),e===t||(console.error("Validating access_token failed, wrong state/nonce.",e,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,e){t.onLoginError&&t.onLoginError(e),this.clearHashAfterLogin&&!t.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(t=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:t}processIdToken(t,e,i=!1){const n=t.split("."),s=b64DecodeUnicode(this.padBase64(n[0])),o=JSON.parse(s),r=b64DecodeUnicode(this.padBase64(n[1])),a=JSON.parse(r);let c;if(c=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(a.aud)){if(a.aud.every(t=>t!==this.clientId)){const t="Wrong audience: "+a.aud.join(",");return this.logger.warn(t),Promise.reject(t)}}else if(a.aud!==this.clientId){const t="Wrong audience: "+a.aud;return this.logger.warn(t),Promise.reject(t)}if(!a.sub){const t="No sub claim in id_token";return this.logger.warn(t),Promise.reject(t)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==a.sub){const t=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${a.sub}`;return this.logger.warn(t),Promise.reject(t)}if(!a.iat){const t="No iat claim in id_token";return this.logger.warn(t),Promise.reject(t)}if(!this.skipIssuerCheck&&a.iss!==this.issuer){const t="Wrong issuer: "+a.iss;return this.logger.warn(t),Promise.reject(t)}if(!i&&a.nonce!==c){const t="Wrong nonce: "+a.nonce;return this.logger.warn(t),Promise.reject(t)}if(!this.hasOwnProperty("responseType")||"code"!==this.responseType&&"id_token"!==this.responseType||(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!a.at_hash){const t="An at_hash is needed!";return this.logger.warn(t),Promise.reject(t)}const u=this.dateTimeService.now(),l=1e3*a.iat,h=1e3*a.exp,d=this.getClockSkewInMsec();if(l-d>=u||h+d<=u){const t="Token has expired";return console.error(t),console.error({now:u,issuedAtMSec:l,expiresAtMSec:h}),Promise.reject(t)}const p={accessToken:e,idToken:t,jwks:this.jwks,idTokenClaims:a,idTokenHeader:o,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(p).then(e=>({idToken:t,idTokenClaims:a,idTokenClaimsJson:r,idTokenHeader:o,idTokenHeaderJson:s,idTokenExpiresAt:h})):this.checkAtHash(p).then(e=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!e){const t="Wrong at_hash";return this.logger.warn(t),Promise.reject(t)}return this.checkSignature(p).then(e=>{const i={idToken:t,idTokenClaims:a,idTokenClaimsJson:r,idTokenHeader:o,idTokenHeaderJson:s,idTokenExpiresAt:h};return this.disableAtHashCheck?i:this.checkAtHash(p).then(t=>{if(this.requestAccessToken&&!t){const t="Wrong at_hash";return this.logger.warn(t),Promise.reject(t)}return i})})})}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"),e=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={},e=""){let i=!1;"boolean"==typeof t&&(i=t,t={});const n=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(t=>this._storage.removeItem(t)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl)return;if(i)return;if(!n&&!this.postLogoutRedirectUri)return;let s;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)s=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(n)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec});n&&(i=i.set("id_token_hint",n));const o=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";o&&(i=i.set("post_logout_redirect_uri",o),e&&(i=i.set("state",e)));for(let e in t)i=i.set(e,t[e]);s=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+i.toString()}this.config.openUri(s)}createAndSaveNonce(){const t=this;return this.createNonce().then(function(e){return t.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("nonce",e):t._storage.setItem("nonce",e),e})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const t=this.document.getElementById(this.silentRefreshIFrameName);t&&t.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const e=this.document.getElementById(this.sessionCheckIFrameName);e&&e.remove()}createNonce(){return new Promise(t=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let i=45,n="";const s="undefined"==typeof self?null:self.crypto||self.msCrypto;if(s){let t=new Uint8Array(i);s.getRandomValues(t),t.map||(t.map=Array.prototype.map),t=t.map(t=>e.charCodeAt(t%e.length)),n=String.fromCharCode.apply(null,t)}else for(;0"discovery_document_loaded"===t.type)).subscribe(i=>this.initCodeFlowInternal(t,e))}initCodeFlowInternal(t="",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 i={},n=null;"string"==typeof e?n=e:"object"==typeof e&&(i=e),this.createLoginUrl(t,n,null,!1,i).then(this.config.openUri).catch(t=>{console.error("Error in initAuthorizationCodeFlow"),console.error(t)})}createChallangeVerifierPairForPKCE(){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const t=yield this.createNonce();return[base64UrlEncode(yield this.crypto.calcHash(t,"sha-256")),t]})}extractRecognizedCustomParameters(t){let e=new Map;return this.config.customTokenParameters?(this.config.customTokenParameters.forEach(i=>{t[i]&&e.set(i,JSON.stringify(t[i]))}),e):e}revokeTokenAndLogout(t={},e=!1){let i=this.revocationEndpoint,n=this.getAccessToken(),s=this.getRefreshToken();if(!n)return;let o=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}),r=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);r=r.set("Authorization","Basic "+t)}if(this.useHttpBasicAuth||(o=o.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(o=o.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const a of Object.getOwnPropertyNames(this.customQueryParams))o=o.set(a,this.customQueryParams[a]);return new Promise((a,c)=>{let u,l;if(n){let t=o.set("token",n).set("token_type_hint","access_token");u=this.http.post(i,t,{headers:r})}else u=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null);if(s){let t=o.set("token",s).set("token_type_hint","refresh_token");l=this.http.post(i,t,{headers:r})}else l=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null);e&&(u=u.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>0===t.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(t))),l=l.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>0===t.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(t)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_16__.aj)([u,l]).subscribe(e=>{this.logOut(t),a(e),this.logger.info("Token successfully revoked")},t=>{this.logger.error("Error revoking token",t),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",t)),c(t)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return t.\u0275fac=function(e){return new(e||t)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_0__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_8__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_17__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DateTimeProvider))},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(t){return(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(t)}}let DefaultOAuthInterceptor=(()=>{class t{constructor(t,e,i){this.oAuthService=t,this.errorHandler=e,this.moduleConfig=i}checkUrl(t){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(t):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(e=>t.toLowerCase().startsWith(e.toLowerCase()))}intercept(t,e){const i=t.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(i)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_18__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>!!t)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>"token_received"===t.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_19__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.U)(t=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.zg)(i=>{if(i){const e=t.headers.set("Authorization","Bearer "+i);t=t.clone({headers:e})}return e.handle(t).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>this.errorHandler.handleError(t)))})):e.handle(t).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>this.errorHandler.handleError(t))):e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthModuleConfig,8))},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();class NullValidationHandler{validateSignature(t){return Promise.resolve(null)}validateAtHash(t){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return"undefined"!=typeof sessionStorage?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class t{static forRoot(e=null,i=NullValidationHandler){return{ngModule:t,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:i},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:e},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_8__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:t}),t.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_17__.ez]]}),t})();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_0__.OlP("AUTH_CONFIG")},2051:function(t,e){var i,n;void 0===(n="function"==typeof(i=function(){"use strict";function e(t,e,i){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){r(n.response,e,i)},n.onerror=function(){console.error("could not download file")},n.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function n(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,o=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),r=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(t,o,r){var a=s.URL||s.webkitURL,c=document.createElement("a");c.download=o=o||t.name||"download",c.rel="noopener","string"==typeof t?(c.href=t,c.origin===location.origin?n(c):i(c.href)?e(t,o,r):n(c,c.target="_blank")):(c.href=a.createObjectURL(t),setTimeout(function(){a.revokeObjectURL(c.href)},4e4),setTimeout(function(){n(c)},0))}:"msSaveOrOpenBlob"in navigator?function(t,s,o){if(s=s||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,o),s);else if(i(t))e(t,s,o);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){n(r)})}}:function(t,i,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return e(t,i,n);var a="application/octet-stream"===t.type,c=/constructor/i.test(s.HTMLElement)||s.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||a&&c||o)&&"undefined"!=typeof FileReader){var l=new FileReader;l.onloadend=function(){var t=l.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},l.readAsDataURL(t)}else{var h=s.URL||s.webkitURL,d=h.createObjectURL(t);r?r.location=d:location.href=d,r=null,setTimeout(function(){h.revokeObjectURL(d)},4e4)}});s.saveAs=r.saveAs=r,t.exports=r})?i.apply(e,[]):i)||(t.exports=n)},9355:function(t,e,i){(t.exports=i(2021)).tz.load(i(4360))},2021:function(t,e,i){var n,s,o;!function(r,a){"use strict";t.exports?t.exports=a(i(9609)):(s=[i(9609)],void 0===(o="function"==typeof(n=a)?n.apply(e,s):n)||(t.exports=o))}(0,function(t){"use strict";void 0===t.version&&t.default&&(t=t.default);var e,i={},n={},s={},o={},r={};t&&"string"==typeof t.version||S("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var a=t.version.split("."),c=+a[0],u=+a[1];function l(t){return t>96?t-87:t>64?t-29:t-48}function h(t){var e=0,i=t.split("."),n=i[0],s=i[1]||"",o=1,r=0,a=1;for(45===t.charCodeAt(0)&&(e=1,a=-1);e= 2.6.0. You are using Moment.js "+t.version+". See momentjs.com"),g.prototype={_set:function(t){this.name=t.name,this.abbrs=t.abbrs,this.untils=t.untils,this.offsets=t.offsets,this.population=t.population},_index:function(t){var e,i=+t,n=this.untils;for(e=0;en&&E.moveInvalidForward&&(e=n),o3){var e=o[v(t)];if(e)return e;S("Moment Timezone found "+t+" from the Intl api, but did not have that data loaded.")}}catch(l){}var i,n,s,r=function(){var t,e,i,n=(new Date).getFullYear()-2,s=new _(new Date(n,0,1)),o=[s];for(i=1;i<48;i++)(e=new _(new Date(n,i,1))).offset!==s.offset&&(t=y(s,e),o.push(t),o.push(new _(new Date(t.at+6e4)))),s=e;for(i=0;i<4;i++)o.push(new _(new Date(n+i,0,1))),o.push(new _(new Date(n+i,6,1)));return o}(),a=r.length,c=M(r),u=[];for(n=0;n0?u[0].zone.name:void 0}()),e},E.names=function(){var t,e=[];for(t in o)o.hasOwnProperty(t)&&(i[t]||i[n[t]])&&o[t]&&e.push(o[t]);return e.sort()},E.Zone=g,E.unpack=f,E.unpackBase60=h,E.needsOffset=C,E.moveInvalidForward=!0,E.moveAmbiguousForward=!1,E.countries=function(){return Object.keys(s)},E.zonesForCountry=function(t,e){var i;if(i=(i=t).toUpperCase(),!(t=s[i]||null))return null;var n=t.zones.sort();return e?n.map(function(t){return{name:t,offset:k(t).utcOffset(new Date)}}):n};var z,x=t.fn;function O(t){return function(){return this._z?this._z.abbr(this):t.call(this)}}function R(t){return function(){return this._z=null,t.apply(this,arguments)}}t.tz=E,t.defaultZone=null,t.updateOffset=function(e,i){var n,s=t.defaultZone;if(void 0===e._z&&(s&&C(e)&&!e._isUTC&&(e._d=t.utc(e._a)._d,e.utc().add(s.parse(e),"minutes")),e._z=s),e._z)if(n=e._z.utcOffset(e),Math.abs(n)<16&&(n/=60),void 0!==e.utcOffset){var o=e._z;e.utcOffset(-n,i),e._z=o}else e.zone(n,i)},x.tz=function(e,i){if(e){if("string"!=typeof e)throw new Error("Time zone name must be a string, got "+e+" ["+typeof e+"]");return this._z=k(e),this._z?t.updateOffset(this,i):S("Moment Timezone has no data for "+e+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},x.zoneName=O(x.zoneName),x.zoneAbbr=O(x.zoneAbbr),x.utc=R(x.utc),x.local=R(x.local),x.utcOffset=(z=x.utcOffset,function(){return arguments.length>0&&(this._z=null),z.apply(this,arguments)}),t.tz.setDefault=function(e){return(c<2||2===c&&u<9)&&S("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+t.version+"."),t.defaultZone=e?k(e):null,t};var D=t.momentProperties;return"[object Array]"===Object.prototype.toString.call(D)?(D.push("_z"),D.push("_a")):D&&(D._z=null),t})},776:function(t,e,i){!function(t){"use strict";t.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(t){return/^nm$/i.test(t)},meridiem:function(t,e,i){return t<12?i?"vm":"VM":i?"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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(9609))},2758:function(t,e,i){!function(t){"use strict";t.defineLocale("ar-dz",{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:"\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:"\u0623\u062d_\u0625\u062b_\u062b\u0644\u0627_\u0623\u0631_\u062e\u0645_\u062c\u0645_\u0633\u0628".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:4}})}(i(9609))},4980:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},9602:function(t,e,i){!function(t){"use strict";var e={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},i=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},n={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(t){return function(e,s,o,r){var a=i(e),c=n[t][i(e)];return 2===a&&(c=c[s?0:1]),c.replace(/%d/i,e)}},o=["\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"];t.defineLocale("ar-ly",{months:o,monthsShort:o,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(t){return"\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i(9609))},2500:function(t,e,i){!function(t){"use strict";t.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\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:6,doy:12}})}(i(9609))},6909:function(t,e,i){!function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},i={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};t.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(t){return"\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(t){return i[t]}).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(i(9609))},2735:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},7634:function(t,e,i){!function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},i={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},n=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%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"]},o=function(t){return function(e,i,o,r){var a=n(e),c=s[t][n(e)];return 2===a&&(c=c[i?0:1]),c.replace(/%d/i,e)}},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"];t.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(t){return"\u0645"===t},meridiem:function(t,e,i){return t<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:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(t){return t.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(t){return i[t]}).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i(9609))},7798:function(t,e,i){!function(t){"use strict";var e={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"};t.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:"birne\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(t){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(t)},meridiem:function(t,e,i){return t<4?"gec\u0259":t<12?"s\u0259h\u0259r":t<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(t){if(0===t)return t+"-\u0131nc\u0131";var i=t%10;return t+(e[i]||e[t%100-i]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i(9609))},9949:function(t,e,i){!function(t){"use strict";function e(t,e,i){return"m"===i?e?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===i?e?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":t+" "+(n=+t,s={ss:e?"\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:e?"\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:e?"\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"}[i].split("_"),n%10==1&&n%100!=11?s[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?s[1]:s[2]);var n,s}t.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(t){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(t)},meridiem:function(t,e,i){return t<4?"\u043d\u043e\u0447\u044b":t<12?"\u0440\u0430\u043d\u0456\u0446\u044b":t<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t%10!=2&&t%10!=3||t%100==12||t%100==13?t+"-\u044b":t+"-\u0456";case"D":return t+"-\u0433\u0430";default:return t}},week:{dow:1,doy:7}})}(i(9609))},4590:function(t,e,i){!function(t){"use strict";t.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\u0440_\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"[\u0412 \u0438\u0437\u043c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u0412 \u0438\u0437\u043c\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\u043d\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(t){var e=t%10,i=t%100;return 0===t?t+"-\u0435\u0432":0===i?t+"-\u0435\u043d":i>10&&i<20?t+"-\u0442\u0438":1===e?t+"-\u0432\u0438":2===e?t+"-\u0440\u0438":7===e||8===e?t+"-\u043c\u0438":t+"-\u0442\u0438"},week:{dow:1,doy:7}})}(i(9609))},5938:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},595:function(t,e,i){!function(t){"use strict";var e={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},i={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};t.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09c0_\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_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2_\u0986\u0997_\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_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u0983_\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(t){return t.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u09b0\u09be\u09a4"===e&&t>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===e&&t<5||"\u09ac\u09bf\u0995\u09be\u09b2"===e?t+12:t},meridiem:function(t,e,i){return t<4?"\u09b0\u09be\u09a4":t<10?"\u09b8\u0995\u09be\u09b2":t<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":t<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(i(9609))},4756:function(t,e,i){!function(t){"use strict";var e={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},i={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};t.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\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("_"),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\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("_"),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(t){return t.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},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(t,e){return 12===t&&(t=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===e&&t>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===e&&t<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===e?t+12:t},meridiem:function(t,e,i){return t<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":t<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":t<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":t<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(i(9609))},7277:function(t,e,i){!function(t){"use strict";function e(t,e,i){return t+" "+function(t,e){return 2===e?function(t){var e={m:"v",b:"v",d:"z"};return void 0===e[t.charAt(0)]?t:e[t.charAt(0)]+t.substring(1)}(t):t}({mm:"munutenn",MM:"miz",dd:"devezh"}[i],t)}function i(t){return t>9?i(t%10):t}t.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:e,h:"un eur",hh:"%d eur",d:"un devezh",dd:e,M:"ur miz",MM:e,y:"ur bloaz",yy:function(t){switch(i(t)){case 1:case 3:case 4:case 5:case 9:return t+" bloaz";default:return t+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(t){return t+(1===t?"a\xf1":"vet")},week:{dow:1,doy:4}})}(i(9609))},4166:function(t,e,i){!function(t){"use strict";function e(t,e,i){var n=t+" ";switch(i){case"ss":return n+(1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi");case"m":return e?"jedna minuta":"jedne minute";case"mm":return n+(1===t?"minuta":2===t||3===t||4===t?"minute":"minuta");case"h":return e?"jedan sat":"jednog sata";case"hh":return n+(1===t?"sat":2===t||3===t||4===t?"sata":"sati");case"dd":return n+(1===t?"dan":"dana");case"MM":return n+(1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci");case"yy":return n+(1===t?"godina":2===t||3===t||4===t?"godine":"godina")}}t.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:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},3943:function(t,e,i){!function(t){"use strict";t.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(t,e){var i=1===t?"r":2===t?"n":3===t?"r":4===t?"t":"\xe8";return"w"!==e&&"W"!==e||(i="a"),t+i},week:{dow:1,doy:4}})}(i(9609))},3474:function(t,e,i){!function(t){"use strict";var e="leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),i="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),n=[/^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 o(t){return t>1&&t<5&&1!=~~(t/10)}function r(t,e,i,n){var s=t+" ";switch(i){case"s":return e||n?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return e||n?s+(o(t)?"sekundy":"sekund"):s+"sekundami";case"m":return e?"minuta":n?"minutu":"minutou";case"mm":return e||n?s+(o(t)?"minuty":"minut"):s+"minutami";case"h":return e?"hodina":n?"hodinu":"hodinou";case"hh":return e||n?s+(o(t)?"hodiny":"hodin"):s+"hodinami";case"d":return e||n?"den":"dnem";case"dd":return e||n?s+(o(t)?"dny":"dn\xed"):s+"dny";case"M":return e||n?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return e||n?s+(o(t)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):s+"m\u011bs\xedci";case"y":return e||n?"rok":"rokem";case"yy":return e||n?s+(o(t)?"roky":"let"):s+"lety"}}t.defineLocale("cs",{months:e,monthsShort:i,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:n,longMonthsParse:n,shortMonthsParse:n,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}})}(i(9609))},2218:function(t,e,i){!function(t){"use strict";t.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(t){return t+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(t)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(t)?"\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}})}(i(9609))},1061:function(t,e,i){!function(t){"use strict";t.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(t){var e="";return t>20?e=40===t||50===t||60===t||80===t||100===t?"fed":"ain":t>0&&(e=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][t]),t+e},week:{dow:1,doy:4}})}(i(9609))},2743:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},8580:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?s[i][0]:s[i][1]}t.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:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},3264:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?s[i][0]:s[i][1]}t.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:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},1899:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?s[i][0]:s[i][1]}t.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:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},8784:function(t,e,i){!function(t){"use strict";var e=["\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"],i=["\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"];t.defineLocale("dv",{months:e,monthsShort:e,weekdays:i,weekdaysShort:i,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(t){return"\u0789\u078a"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(i(9609))},4654:function(t,e,i){!function(t){"use strict";t.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(t,e){return t?"string"==typeof e&&/D/.test(e.substring(0,e.indexOf("MMMM")))?this._monthsGenitiveEl[t.month()]:this._monthsNominativeEl[t.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(t,e,i){return t>11?i?"\u03bc\u03bc":"\u039c\u039c":i?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(t){return"\u03bc"===(t+"").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(){switch(this.day()){case 6:return"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT";default:return"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"}},sameElse:"L"},calendar:function(t,e){var i,n=this._calendarEl[t],s=e&&e.hours();return((i=n)instanceof Function||"[object Function]"===Object.prototype.toString.call(i))&&(n=n.apply(e)),n.replace("{}",s%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}})}(i(9609))},4047:function(t,e,i){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},6277:function(t,e,i){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},6896:function(t,e,i){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})}(i(9609))},1609:function(t,e,i){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},4557:function(t,e,i){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},5836:function(t,e,i){!function(t){"use strict";t.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",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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})}(i(9609))},3586:function(t,e,i){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},2777:function(t,e,i){!function(t){"use strict";t.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_a\u016dg_sep_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:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(t){return"p"===t.charAt(0).toLowerCase()},meridiem:function(t,e,i){return t>11?i?"p.t.m.":"P.T.M.":i?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(i(9609))},3128:function(t,e,i){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^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;t.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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",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}})}(i(9609))},3256:function(t,e,i){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^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;t.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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",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}})}(i(9609))},3357:function(t,e,i){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^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;t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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",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}})}(i(9609))},2654:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[t+"sekundi",t+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[t+" minuti",t+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[t+" tunni",t+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[t+" kuu",t+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[t+" aasta",t+" aastat"]};return e?s[i][2]?s[i][2]:s[i][1]:n?s[i][0]:s[i][1]}t.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:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:"%d p\xe4eva",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},7287:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},5210:function(t,e,i){!function(t){"use strict";var e={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},i={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};t.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(t){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(t)},meridiem:function(t,e,i){return t<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:"\u062b\u0627\u0646\u06cc\u0647 d%",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(t){return t.replace(/[\u06f0-\u06f9]/g,function(t){return i[t]}).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(i(9609))},3431:function(t,e,i){!function(t){"use strict";var e="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),i=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",e[7],e[8],e[9]];function n(t,n,s,o){var r="";switch(s){case"s":return o?"muutaman sekunnin":"muutama sekunti";case"ss":return o?"sekunnin":"sekuntia";case"m":return o?"minuutin":"minuutti";case"mm":r=o?"minuutin":"minuuttia";break;case"h":return o?"tunnin":"tunti";case"hh":r=o?"tunnin":"tuntia";break;case"d":return o?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":r=o?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return o?"kuukauden":"kuukausi";case"MM":r=o?"kuukauden":"kuukautta";break;case"y":return o?"vuoden":"vuosi";case"yy":r=o?"vuoden":"vuotta"}return function(t,n){return t<10?n?i[t]:e[t]:t}(t,o)+" "+r}t.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:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},1781:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},1539:function(t,e,i){!function(t){"use strict";t.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(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}}})}(i(9609))},9847:function(t,e,i){!function(t){"use strict";t.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(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})}(i(9609))},1717:function(t,e,i){!function(t){"use strict";t.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("_"),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|)/,ordinal:function(t,e){switch(e){case"D":return t+(1===t?"er":"");default:case"M":case"Q":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})}(i(9609))},2250:function(t,e,i){!function(t){"use strict";var e="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),i="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");t.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(9609))},7665:function(t,e,i){!function(t){"use strict";t.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","M\xe9itheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deaireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean\xe1","Feab","M\xe1rt","Aibr","Beal","M\xe9it","I\xfail","L\xfana","Me\xe1n","Deai","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 Satharn"],weekdaysShort:["Dom","Lua","M\xe1i","C\xe9a","D\xe9a","hAo","Sat"],weekdaysMin:["Do","Lu","M\xe1","Ce","D\xe9","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:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 aig] 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\xed",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(t){return t+(1===t?"d":t%10==2?"na":"mh")},week:{dow:1,doy:4}})}(i(9609))},5214:function(t,e,i){!function(t){"use strict";t.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(t){return t+(1===t?"d":t%10==2?"na":"mh")},week:{dow:1,doy:4}})}(i(9609))},6154:function(t,e,i){!function(t){"use strict";t.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(t){return 0===t.indexOf("un")?"n"+t:"en "+t},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}})}(i(9609))},8518:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={s:["thodde secondanim","thodde second"],ss:[t+" secondanim",t+" second"],m:["eka mintan","ek minute"],mm:[t+" mintanim",t+" mintam"],h:["eka voran","ek vor"],hh:[t+" voranim",t+" voram"],d:["eka disan","ek dis"],dd:[t+" disanim",t+" dis"],M:["eka mhoinean","ek mhoino"],MM:[t+" mhoineanim",t+" mhoine"],y:["eka vorsan","ek voros"],yy:[t+" vorsanim",t+" vorsam"]};return e?s[i][0]:s[i][1]}t.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_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[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",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}(er)/,ordinal:function(t,e){switch(e){case"D":return t+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return t}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(t,e){return 12===t&&(t=0),"rati"===e?t<4?t:t+12:"sokalli"===e?t:"donparam"===e?t>12?t:t+12:"sanje"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"rati":t<12?"sokalli":t<16?"donparam":t<20?"sanje":"rati"}})}(i(9609))},9221:function(t,e,i){!function(t){"use strict";var e={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},i={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};t.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\u0ac7\u0ab9\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(t){return t.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0ab0\u0abe\u0aa4"===e?t<4?t:t+12:"\u0ab8\u0ab5\u0abe\u0ab0"===e?t:"\u0aac\u0aaa\u0acb\u0ab0"===e?t>=10?t:t+12:"\u0ab8\u0abe\u0a82\u0a9c"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0ab0\u0abe\u0aa4":t<10?"\u0ab8\u0ab5\u0abe\u0ab0":t<17?"\u0aac\u0aaa\u0acb\u0ab0":t<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(i(9609))},4743:function(t,e,i){!function(t){"use strict";t.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(t){return 2===t?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":t+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(t){return 2===t?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":t+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(t){return 2===t?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":t+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(t){return 2===t?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":t%10==0&&10!==t?t+" \u05e9\u05e0\u05d4":t+" \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(t){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(t)},meridiem:function(t,e,i){return t<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":t<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":t<12?i?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":t<18?i?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(i(9609))},7339:function(t,e,i){!function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},i={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};t.defineLocale("hi",{months:"\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("_"),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("_"),monthsParseExact:!0,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"},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(t){return t.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0930\u093e\u0924"===e?t<4?t:t+12:"\u0938\u0941\u092c\u0939"===e?t:"\u0926\u094b\u092a\u0939\u0930"===e?t>=10?t:t+12:"\u0936\u093e\u092e"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0930\u093e\u0924":t<10?"\u0938\u0941\u092c\u0939":t<17?"\u0926\u094b\u092a\u0939\u0930":t<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(i(9609))},3224:function(t,e,i){!function(t){"use strict";function e(t,e,i){var n=t+" ";switch(i){case"ss":return n+(1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi");case"m":return e?"jedna minuta":"jedne minute";case"mm":return n+(1===t?"minuta":2===t||3===t||4===t?"minute":"minuta");case"h":return e?"jedan sat":"jednog sata";case"hh":return n+(1===t?"sat":2===t||3===t||4===t?"sata":"sati");case"dd":return n+(1===t?"dan":"dana");case"MM":return n+(1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci");case"yy":return n+(1===t?"godina":2===t||3===t||4===t?"godine":"godina")}}t.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:"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:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},856:function(t,e,i){!function(t){"use strict";var e="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function i(t,e,i,n){var s=t;switch(i){case"s":return n||e?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return s+(n||e)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(n||e?" perc":" perce");case"mm":return s+(n||e?" perc":" perce");case"h":return"egy"+(n||e?" \xf3ra":" \xf3r\xe1ja");case"hh":return s+(n||e?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(n||e?" nap":" napja");case"dd":return s+(n||e?" nap":" napja");case"M":return"egy"+(n||e?" h\xf3nap":" h\xf3napja");case"MM":return s+(n||e?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(n||e?" \xe9v":" \xe9ve");case"yy":return s+(n||e?" \xe9v":" \xe9ve")}return""}function n(t){return(t?"":"[m\xfalt] ")+"["+e[this.day()]+"] LT[-kor]"}t.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("_"),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(t){return"u"===t.charAt(1).toLowerCase()},meridiem:function(t,e,i){return t<12?!0===i?"de":"DE":!0===i?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return n.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return n.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%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:4}})}(i(9609))},6855:function(t,e,i){!function(t){"use strict";t.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(t){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(t)},meridiem:function(t){return t<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":t<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":t<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(t,e){switch(e){case"DDD":case"w":case"W":case"DDDo":return 1===t?t+"-\u056b\u0576":t+"-\u0580\u0564";default:return t}},week:{dow:1,doy:7}})}(i(9609))},2190:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"pagi"===e?t:"siang"===e?t>=11?t:t+12:"sore"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"pagi":t<15?"siang":t<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:1,doy:7}})}(i(9609))},3887:function(t,e,i){!function(t){"use strict";function e(t){return t%100==11||t%10!=1}function i(t,i,n,s){var o=t+" ";switch(n){case"s":return i||s?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return e(t)?o+(i||s?"sek\xfandur":"sek\xfandum"):o+"sek\xfanda";case"m":return i?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return e(t)?o+(i||s?"m\xedn\xfatur":"m\xedn\xfatum"):i?o+"m\xedn\xfata":o+"m\xedn\xfatu";case"hh":return e(t)?o+(i||s?"klukkustundir":"klukkustundum"):o+"klukkustund";case"d":return i?"dagur":s?"dag":"degi";case"dd":return e(t)?i?o+"dagar":o+(s?"daga":"d\xf6gum"):i?o+"dagur":o+(s?"dag":"degi");case"M":return i?"m\xe1nu\xf0ur":s?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return e(t)?i?o+"m\xe1nu\xf0ir":o+(s?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):i?o+"m\xe1nu\xf0ur":o+(s?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return i||s?"\xe1r":"\xe1ri";case"yy":return e(t)?o+(i||s?"\xe1r":"\xe1rum"):o+(i||s?"\xe1r":"\xe1ri")}}t.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:i,ss:i,m:i,mm:i,h:"klukkustund",hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},5890:function(t,e,i){!function(t){"use strict";t.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(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},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}})}(i(9609))},9270:function(t,e,i){!function(t){"use strict";t.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:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},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}})}(i(9609))},6595:function(t,e,i){!function(t){"use strict";t.defineLocale("ja",{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:"\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(t){return"\u5348\u5f8c"===t},meridiem:function(t,e,i){return t<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(t){return t.week()=11?t:t+12:"sonten"===e||"ndalu"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"enjing":t<15?"siyang":t<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}})}(i(9609))},7477:function(t,e,i){!function(t){"use strict";t.defineLocale("ka",{months:{standalone:"\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("_"),format:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10e1_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10e1_\u10db\u10d0\u10e0\u10e2\u10e1_\u10d0\u10de\u10e0\u10d8\u10da\u10d8\u10e1_\u10db\u10d0\u10d8\u10e1\u10e1_\u10d8\u10d5\u10dc\u10d8\u10e1\u10e1_\u10d8\u10d5\u10da\u10d8\u10e1\u10e1_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10e1_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10e1_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10e1".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:"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:"[\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(t){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10ec\u10d4\u10da\u10d8)/.test(t)?t.replace(/\u10d8$/,"\u10e8\u10d8"):t+"\u10e8\u10d8"},past:function(t){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(t)?t.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(t)?t.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):void 0},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(t){return 0===t?t:1===t?t+"-\u10da\u10d8":t<20||t<=100&&t%20==0||t%100==0?"\u10db\u10d4-"+t:t+"-\u10d4"},week:{dow:1,doy:7}})}(i(9609))},3978:function(t,e,i){!function(t){"use strict";var e={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"};t.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(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i(9609))},9205:function(t,e,i){!function(t){"use strict";var e={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},i={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};t.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(t){return"\u179b\u17d2\u1784\u17b6\u1785"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},week:{dow:1,doy:4}})}(i(9609))},25:function(t,e,i){!function(t){"use strict";var e={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},i={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};t.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(t){return t.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},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(t,e){return 12===t&&(t=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===e?t<4?t:t+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===e?t:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===e?t>=10?t:t+12:"\u0cb8\u0c82\u0c9c\u0cc6"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":t<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":t<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":t<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(t){return t+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(i(9609))},427:function(t,e,i){!function(t){"use strict";t.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(t,e){switch(e){case"d":case"D":case"DDD":return t+"\uc77c";case"M":return t+"\uc6d4";case"w":case"W":return t+"\uc8fc";default:return t}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(t){return"\uc624\ud6c4"===t},meridiem:function(t,e,i){return t<12?"\uc624\uc804":"\uc624\ud6c4"}})}(i(9609))},9089:function(t,e,i){!function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},i={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},n=["\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"];t.defineLocale("ku",{months:n,monthsShort:n,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(t){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(t)},meridiem:function(t,e,i){return t<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(t){return t.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(t){return i[t]}).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i(9609))},9314:function(t,e,i){!function(t){"use strict";var e={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"};t.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(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i(9609))},3136:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={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 e?s[i][0]:s[i][1]}function i(t){if(t=parseInt(t,10),isNaN(t))return!1;if(t<0)return!0;if(t<10)return 4<=t&&t<=7;if(t<100){var e=t%10;return i(0===e?t/10:e)}if(t<1e4){for(;t>=10;)t/=10;return i(t)}return i(t/=1e3)}t.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(t){return i(t.substr(0,t.indexOf(" ")))?"a "+t:"an "+t},past:function(t){return i(t.substr(0,t.indexOf(" ")))?"viru "+t:"virun "+t},s:"e puer Sekonnen",ss:"%d Sekonnen",m:e,mm:"%d Minutten",h:e,hh:"%d Stonnen",d:e,dd:"%d Deeg",M:e,MM:"%d M\xe9int",y:e,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},9115:function(t,e,i){!function(t){"use strict";t.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(t){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===t},meridiem:function(t,e,i){return t<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(t){return"\u0e97\u0eb5\u0ec8"+t}})}(i(9609))},7087:function(t,e,i){!function(t){"use strict";var e={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 i(t,e,i,n){return e?s(i)[0]:n?s(i)[1]:s(i)[2]}function n(t){return t%10==0||t>10&&t<20}function s(t){return e[t].split("_")}function o(t,e,o,r){var a=t+" ";return 1===t?a+i(0,e,o[0],r):e?a+(n(t)?s(o)[1]:s(o)[0]):r?a+s(o)[1]:a+(n(t)?s(o)[1]:s(o)[2])}t.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(t,e,i,n){return e?"kelios sekund\u0117s":n?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:o,m:i,mm:o,h:i,hh:o,d:i,dd:o,M:i,MM:o,y:i,yy:o},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(t){return t+"-oji"},week:{dow:1,doy:4}})}(i(9609))},5683:function(t,e,i){!function(t){"use strict";var e={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 i(t,e,i){return i?e%10==1&&e%100!=11?t[2]:t[3]:e%10==1&&e%100!=11?t[0]:t[1]}function n(t,n,s){return t+" "+i(e[s],t,n)}function s(t,n,s){return i(e[s],t,n)}t.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(t,e){return e?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:n,m:s,mm:n,h:s,hh:n,d:s,dd:n,M:s,MM:n,y:s,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},9454:function(t,e,i){!function(t){"use strict";var e={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(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,i,n){var s=e.words[n];return 1===n.length?i?s[0]:s[1]:t+" "+e.correctGrammaticalCase(t,s)}};t.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:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mjesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},5507:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},8466:function(t,e,i){!function(t){"use strict";t.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:"\u043f\u043e\u0441\u043b\u0435 %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:"\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",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",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(t){var e=t%10,i=t%100;return 0===t?t+"-\u0435\u0432":0===i?t+"-\u0435\u043d":i>10&&i<20?t+"-\u0442\u0438":1===e?t+"-\u0432\u0438":2===e?t+"-\u0440\u0438":7===e||8===e?t+"-\u043c\u0438":t+"-\u0442\u0438"},week:{dow:1,doy:7}})}(i(9609))},2933:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===e&&t>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===e||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===e?t+12:t},meridiem:function(t,e,i){return t<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":t<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":t<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":t<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(i(9609))},9477:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){switch(i){case"s":return e?"\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 t+(e?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return t+(e?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return t+(e?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return t+(e?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return t+(e?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return t+(e?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return t}}t.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(t){return"\u04ae\u0425"===t},meridiem:function(t,e,i){return t<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: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} \u04e9\u0434\u04e9\u0440/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+" \u04e9\u0434\u04e9\u0440";default:return t}}})}(i(9609))},3597:function(t,e,i){!function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},i={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function n(t,e,i,n){var s="";if(e)switch(i){case"s":s="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":s="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":s="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":s="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":s="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":s="%d \u0924\u093e\u0938";break;case"d":s="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":s="%d \u0926\u093f\u0935\u0938";break;case"M":s="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":s="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":s="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":s="%d \u0935\u0930\u094d\u0937\u0947"}else switch(i){case"s":s="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":s="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":s="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":s="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":s="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":s="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":s="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":s="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":s="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":s="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":s="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":s="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return s.replace(/%d/i,t)}t.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:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},preparse:function(t){return t.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0930\u093e\u0924\u094d\u0930\u0940|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0930\u093e\u0924\u094d\u0930\u0940"===e?t<4?t:t+12:"\u0938\u0915\u093e\u0933\u0940"===e?t:"\u0926\u0941\u092a\u093e\u0930\u0940"===e?t>=10?t:t+12:"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0930\u093e\u0924\u094d\u0930\u0940":t<10?"\u0938\u0915\u093e\u0933\u0940":t<17?"\u0926\u0941\u092a\u093e\u0930\u0940":t<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(i(9609))},9965:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"pagi":t<15?"tengahari":t<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}})}(i(9609))},5529:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"pagi":t<15?"tengahari":t<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}})}(i(9609))},259:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},8061:function(t,e,i){!function(t){"use strict";var e={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},i={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};t.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(t){return t.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},week:{dow:1,doy:4}})}(i(9609))},2618:function(t,e,i){!function(t){"use strict";t.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_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",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}})}(i(9609))},8452:function(t,e,i){!function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},i={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};t.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(t){return t.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0930\u093e\u0924\u093f"===e?t<4?t:t+12:"\u092c\u093f\u0939\u093e\u0928"===e?t:"\u0926\u093f\u0909\u0901\u0938\u094b"===e?t>=10?t:t+12:"\u0938\u093e\u0901\u091d"===e?t+12:void 0},meridiem:function(t,e,i){return t<3?"\u0930\u093e\u0924\u093f":t<12?"\u092c\u093f\u0939\u093e\u0928":t<16?"\u0926\u093f\u0909\u0901\u0938\u094b":t<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}})}(i(9609))},413:function(t,e,i){!function(t){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^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;t.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(9609))},1885:function(t,e,i){!function(t){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^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;t.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(9609))},5107:function(t,e,i){!function(t){"use strict";t.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_m\xe5n_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_m\xe5_ty_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 [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",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}})}(i(9609))},702:function(t,e,i){!function(t){"use strict";var e={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},i={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};t.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(t){return t.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0a30\u0a3e\u0a24"===e?t<4?t:t+12:"\u0a38\u0a35\u0a47\u0a30"===e?t:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===e?t>=10?t:t+12:"\u0a38\u0a3c\u0a3e\u0a2e"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0a30\u0a3e\u0a24":t<10?"\u0a38\u0a35\u0a47\u0a30":t<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":t<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(i(9609))},1711:function(t,e,i){!function(t){"use strict";var e="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),i="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_");function n(t){return t%10<5&&t%10>1&&~~(t/10)%10!=1}function s(t,e,i){var s=t+" ";switch(i){case"ss":return s+(n(t)?"sekundy":"sekund");case"m":return e?"minuta":"minut\u0119";case"mm":return s+(n(t)?"minuty":"minut");case"h":return e?"godzina":"godzin\u0119";case"hh":return s+(n(t)?"godziny":"godzin");case"MM":return s+(n(t)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return s+(n(t)?"lata":"lat")}}t.defineLocale("pl",{months:function(t,n){return t?""===n?"("+i[t.month()]+"|"+e[t.month()]+")":/D MMMM/.test(n)?i[t.month()]:e[t.month()]:e},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),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:s,m:s,mm:s,h:s,hh:s,d:"1 dzie\u0144",dd:"%d dni",M:"miesi\u0105c",MM:s,y:"rok",yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},8238:function(t,e,i){!function(t){"use strict";t.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"})}(i(9609))},594:function(t,e,i){!function(t){"use strict";t.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",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}})}(i(9609))},4681:function(t,e,i){!function(t){"use strict";function e(t,e,i){var n=" ";return(t%100>=20||t>=100&&t%100==0)&&(n=" de "),t+n+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[i]}t.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._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:e,m:"un minut",mm:e,h:"o or\u0103",hh:e,d:"o zi",dd:e,M:"o lun\u0103",MM:e,y:"un an",yy:e},week:{dow:1,doy:7}})}(i(9609))},6201:function(t,e,i){!function(t){"use strict";function e(t,e,i){return"m"===i?e?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":t+" "+(n=+t,s={ss:e?"\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:e?"\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",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"}[i].split("_"),n%10==1&&n%100!=11?s[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?s[1]:s[2]);var n,s}var i=[/^\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];t.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:i,longMonthsParse:i,shortMonthsParse:i,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(t){if(t.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(t){if(t.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,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(t){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(t)},meridiem:function(t,e,i){return t<4?"\u043d\u043e\u0447\u0438":t<12?"\u0443\u0442\u0440\u0430":t<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":return t+"-\u0439";case"D":return t+"-\u0433\u043e";case"w":case"W":return t+"-\u044f";default:return t}},week:{dow:1,doy:4}})}(i(9609))},2912:function(t,e,i){!function(t){"use strict";var e=["\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"],i=["\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"];t.defineLocale("sd",{months:e,monthsShort:e,weekdays:i,weekdaysShort:i,weekdaysMin:i,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(t){return"\u0634\u0627\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(i(9609))},6002:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},7942:function(t,e,i){!function(t){"use strict";t.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(t){return t+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(t){return"\u0db4.\u0dc0."===t||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===t},meridiem:function(t,e,i){return t>11?i?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":i?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(i(9609))},5577:function(t,e,i){!function(t){"use strict";var e="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),i="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function n(t){return t>1&&t<5}function s(t,e,i,s){var o=t+" ";switch(i){case"s":return e||s?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return e||s?o+(n(t)?"sekundy":"sek\xfand"):o+"sekundami";case"m":return e?"min\xfata":s?"min\xfatu":"min\xfatou";case"mm":return e||s?o+(n(t)?"min\xfaty":"min\xfat"):o+"min\xfatami";case"h":return e?"hodina":s?"hodinu":"hodinou";case"hh":return e||s?o+(n(t)?"hodiny":"hod\xedn"):o+"hodinami";case"d":return e||s?"de\u0148":"d\u0148om";case"dd":return e||s?o+(n(t)?"dni":"dn\xed"):o+"d\u0148ami";case"M":return e||s?"mesiac":"mesiacom";case"MM":return e||s?o+(n(t)?"mesiace":"mesiacov"):o+"mesiacmi";case"y":return e||s?"rok":"rokom";case"yy":return e||s?o+(n(t)?"roky":"rokov"):o+"rokmi"}}t.defineLocale("sk",{months:e,monthsShort:i,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:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 4:case 5:return"[minul\xfd] dddd [o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %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}})}(i(9609))},1775:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s=t+" ";switch(i){case"s":return e||n?"nekaj sekund":"nekaj sekundami";case"ss":return s+(1===t?e?"sekundo":"sekundi":2===t?e||n?"sekundi":"sekundah":t<5?e||n?"sekunde":"sekundah":"sekund");case"m":return e?"ena minuta":"eno minuto";case"mm":return s+(1===t?e?"minuta":"minuto":2===t?e||n?"minuti":"minutama":t<5?e||n?"minute":"minutami":e||n?"minut":"minutami");case"h":return e?"ena ura":"eno uro";case"hh":return s+(1===t?e?"ura":"uro":2===t?e||n?"uri":"urama":t<5?e||n?"ure":"urami":e||n?"ur":"urami");case"d":return e||n?"en dan":"enim dnem";case"dd":return s+(1===t?e||n?"dan":"dnem":2===t?e||n?"dni":"dnevoma":e||n?"dni":"dnevi");case"M":return e||n?"en mesec":"enim mesecem";case"MM":return s+(1===t?e||n?"mesec":"mesecem":2===t?e||n?"meseca":"mesecema":t<5?e||n?"mesece":"meseci":e||n?"mesecev":"meseci");case"y":return e||n?"eno leto":"enim letom";case"yy":return s+(1===t?e||n?"leto":"letom":2===t?e||n?"leti":"letoma":t<5?e||n?"leta":"leti":e||n?"let":"leti")}}t.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: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:7}})}(i(9609))},6823:function(t,e,i){!function(t){"use strict";t.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(t){return"M"===t.charAt(0)},meridiem:function(t,e,i){return t<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}})}(i(9609))},3848:function(t,e,i){!function(t){"use strict";var e={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\u0435 \u043c\u0438\u043d\u0443\u0442\u0435"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0435","\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"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],yy:["\u0433\u043e\u0434\u0438\u043d\u0430","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,i,n){var s=e.words[n];return 1===n.length?i?s[0]:s[1]:t+" "+e.correctGrammaticalCase(t,s)}};t.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:"DD.MM.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:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"\u0434\u0430\u043d",dd:e.translate,M:"\u043c\u0435\u0441\u0435\u0446",MM:e.translate,y:"\u0433\u043e\u0434\u0438\u043d\u0443",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},9038:function(t,e,i){!function(t){"use strict";var e={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,i,n){var s=e.words[n];return 1===n.length?i?s[0]:s[1]:t+" "+e.correctGrammaticalCase(t,s)}};t.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:"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] [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:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},6173:function(t,e,i){!function(t){"use strict";t.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(t,e,i){return t<11?"ekuseni":t<15?"emini":t<19?"entsambama":"ebusuku"},meridiemHour:function(t,e){return 12===t&&(t=0),"ekuseni"===e?t:"emini"===e?t>=11?t:t+12:"entsambama"===e||"ebusuku"===e?0===t?0:t+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(i(9609))},5788:function(t,e,i){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"e":1===e||2===e?"a":"e")},week:{dow:1,doy:4}})}(i(9609))},6882:function(t,e,i){!function(t){"use strict";t.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",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:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(i(9609))},2678:function(t,e,i){!function(t){"use strict";var e={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},i={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};t.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(t){return t+"\u0bb5\u0ba4\u0bc1"},preparse:function(t){return t.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},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(t,e,i){return t<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":t<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":t<10?" \u0b95\u0bbe\u0bb2\u0bc8":t<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":t<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":t<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(t,e){return 12===t&&(t=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===e?t<2?t:t+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===e||"\u0b95\u0bbe\u0bb2\u0bc8"===e||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===e&&t>=10?t:t+12},week:{dow:0,doy:6}})}(i(9609))},2797:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===e?t<4?t:t+12:"\u0c09\u0c26\u0c2f\u0c02"===e?t:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===e?t>=10?t:t+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":t<10?"\u0c09\u0c26\u0c2f\u0c02":t<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":t<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(i(9609))},2447:function(t,e,i){!function(t){"use strict";t.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:"minutu balun",ss:"minutu %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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},1335:function(t,e,i){!function(t){"use strict";var e={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"};t.defineLocale("tg",{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:"\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:"[\u041f\u0430\u0433\u043e\u04b3 \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(t,e){return 12===t&&(t=0),"\u0448\u0430\u0431"===e?t<4?t:t+12:"\u0441\u0443\u0431\u04b3"===e?t:"\u0440\u04ef\u0437"===e?t>=11?t:t+12:"\u0431\u0435\u0433\u043e\u04b3"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0448\u0430\u0431":t<11?"\u0441\u0443\u0431\u04b3":t<16?"\u0440\u04ef\u0437":t<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i(9609))},8667:function(t,e,i){!function(t){"use strict";t.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(t){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===t},meridiem:function(t,e,i){return t<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",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(i(9609))},9914:function(t,e,i){!function(t){"use strict";t.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(t){return t},week:{dow:1,doy:4}})}(i(9609))},1389:function(t,e,i){!function(t){"use strict";var e="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function i(t,i,n,s){var o=function(t){var i=Math.floor(t%1e3/100),n=Math.floor(t%100/10),s=t%10,o="";return i>0&&(o+=e[i]+"vatlh"),n>0&&(o+=(""!==o?" ":"")+e[n]+"maH"),s>0&&(o+=(""!==o?" ":"")+e[s]),""===o?"pagh":o}(t);switch(n){case"ss":return o+" lup";case"mm":return o+" tup";case"hh":return o+" rep";case"dd":return o+" jaj";case"MM":return o+" jar";case"yy":return o+" DIS"}}t.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(t){var e=t;return-1!==t.indexOf("jaj")?e.slice(0,-3)+"leS":-1!==t.indexOf("jar")?e.slice(0,-3)+"waQ":-1!==t.indexOf("DIS")?e.slice(0,-3)+"nem":e+" pIq"},past:function(t){var e=t;return-1!==t.indexOf("jaj")?e.slice(0,-3)+"Hu\u2019":-1!==t.indexOf("jar")?e.slice(0,-3)+"wen":-1!==t.indexOf("DIS")?e.slice(0,-3)+"ben":e+" ret"},s:"puS lup",ss:i,m:"wa\u2019 tup",mm:i,h:"wa\u2019 rep",hh:i,d:"wa\u2019 jaj",dd:i,M:"wa\u2019 jar",MM:i,y:"wa\u2019 DIS",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},3578:function(t,e,i){!function(t){"use strict";var e={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"};t.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_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".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 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",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(t,i){switch(i){case"d":case"D":case"Do":case"DD":return t;default:if(0===t)return t+"'\u0131nc\u0131";var n=t%10;return t+(e[n]||e[t%100-n]||e[t>=100?100:null])}},week:{dow:1,doy:7}})}(i(9609))},6969:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={s:["viensas secunds","'iensas secunds"],ss:[t+" secunds",t+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[t+" m\xeduts",t+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[t+" \xfeoras",t+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[t+" ziuas",t+" ziuas"],M:["'n mes","'iens mes"],MM:[t+" mesen",t+" mesen"],y:["'n ar","'iens ar"],yy:[t+" ars",t+" ars"]};return n||e?s[i][0]:s[i][1]}t.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(t){return"d'o"===t.toLowerCase()},meridiem:function(t,e,i){return t>11?i?"d'o":"D'O":i?"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}})}(i(9609))},690:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},6509:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},55:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===e||"\u0633\u06d5\u06be\u06d5\u0631"===e||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===e?t:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===e||"\u0643\u06d5\u0686"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":n<900?"\u0633\u06d5\u06be\u06d5\u0631":n<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":n<1230?"\u0686\u06c8\u0634":n<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(t,e){switch(e){case"d":case"D":case"DDD":return t+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return t+"-\u06be\u06d5\u067e\u062a\u06d5";default:return t}},preparse:function(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(i(9609))},2452:function(t,e,i){!function(t){"use strict";function e(t,e,i){return"m"===i?e?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===i?e?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":t+" "+(n=+t,s={ss:e?"\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:e?"\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:e?"\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"}[i].split("_"),n%10==1&&n%100!=11?s[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?s[1]:s[2]);var n,s}function i(t){return function(){return t+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}t.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(t,e){var i={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===t?i.nominative.slice(1,7).concat(i.nominative.slice(0,1)):t?i[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(e)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(e)?"genitive":"nominative"][t.day()]:i.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:i("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:i("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:i("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:i("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return i("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return i("[\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(t){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(t)},meridiem:function(t,e,i){return t<4?"\u043d\u043e\u0447\u0456":t<12?"\u0440\u0430\u043d\u043a\u0443":t<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t+"-\u0439";case"D":return t+"-\u0433\u043e";default:return t}},week:{dow:1,doy:7}})}(i(9609))},1151:function(t,e,i){!function(t){"use strict";var e=["\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"],i=["\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"];t.defineLocale("ur",{months:e,monthsShort:e,weekdays:i,weekdaysShort:i,weekdaysMin:i,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(t){return"\u0634\u0627\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(i(9609))},6547:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},1555:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},6541:function(t,e,i){!function(t){"use strict";t.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:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".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(t){return/^ch$/i.test(t)},meridiem:function(t,e,i){return t<12?i?"sa":"SA":i?"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 r\u1ed3i 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",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})}(i(9609))},2401:function(t,e,i){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},2341:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},619:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"\u51cc\u6668"===e||"\u65e9\u4e0a"===e||"\u4e0a\u5348"===e?t:"\u4e0b\u5348"===e||"\u665a\u4e0a"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1130?"\u4e0a\u5348":n<1230?"\u4e2d\u5348":n<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|\u5468)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"\u65e5";case"M":return t+"\u6708";case"w":case"W":return t+"\u5468";default:return t}},relativeTime:{future:"%s\u5185",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",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(i(9609))},7058:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"\u51cc\u6668"===e||"\u65e9\u4e0a"===e||"\u4e0a\u5348"===e?t:"\u4e2d\u5348"===e?t>=11?t:t+12:"\u4e0b\u5348"===e||"\u665a\u4e0a"===e?t+12:void 0},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1130?"\u4e0a\u5348":n<1230?"\u4e2d\u5348":n<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(t,e){switch(e){case"d":case"D":case"DDD":return t+"\u65e5";case"M":return t+"\u6708";case"w":case"W":return t+"\u9031";default:return t}},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"}})}(i(9609))},2782:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"\u51cc\u6668"===e||"\u65e9\u4e0a"===e||"\u4e0a\u5348"===e?t:"\u4e2d\u5348"===e?t>=11?t:t+12:"\u4e0b\u5348"===e||"\u665a\u4e0a"===e?t+12:void 0},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1130?"\u4e0a\u5348":n<1230?"\u4e2d\u5348":n<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(t,e){switch(e){case"d":case"D":case"DDD":return t+"\u65e5";case"M":return t+"\u6708";case"w":case"W":return t+"\u9031";default:return t}},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"}})}(i(9609))},9609:function(t,e,i){(t=i.nmd(t)).exports=function(){"use strict";var e,n;function s(){return e.apply(null,arguments)}function o(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function r(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function a(t){return void 0===t}function c(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function u(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function l(t,e){var i,n=[];for(i=0;i>>0,n=0;n0)for(i=0;i<_.length;i++)a(s=e[n=_[i]])||(t[n]=s);return t}var y=!1;function w(t){b(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,s.updateOffset(this),y=!1)}function A(t){return t instanceof w||null!=t&&null!=t._isAMomentObject}function M(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function v(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=M(e)),i}function T(t,e,i){var n,s=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),r=0;for(n=0;n=0?i?"+":"":"-")+Math.pow(10,Math.max(0,e-n.length)).toString().substr(1)+n}var H=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Y=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j={},F={};function W(t,e,i,n){var s=n;"string"==typeof n&&(s=function(){return this[n]()}),t&&(F[t]=s),e&&(F[e[0]]=function(){return B(s.apply(this,arguments),e[1],e[2])}),i&&(F[i]=function(){return this.localeData().ordinal(s.apply(this,arguments),t)})}function U(t,e){return t.isValid()?(e=K(e,t.localeData()),j[e]=j[e]||function(t){var e,i,n,s=t.match(H);for(e=0,i=s.length;e=0&&Y.test(t);)t=t.replace(Y,n),Y.lastIndex=0,i-=1;return t}var Z=/\d/,G=/\d\d/,X=/\d{3}/,V=/\d{4}/,$=/[+-]?\d{6}/,J=/\d\d?/,Q=/\d\d\d\d?/,tt=/\d\d\d\d\d\d?/,et=/\d{1,3}/,it=/\d{1,4}/,nt=/[+-]?\d{1,6}/,st=/\d+/,ot=/[+-]?\d+/,rt=/Z|[+-]\d\d:?\d\d/gi,at=/Z|[+-]\d\d(?::?\d\d)?/gi,ct=/[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,ut={};function lt(t,e,i){ut[t]=z(e)?e:function(t,n){return t&&i?i:e}}function ht(t,e){return h(ut,t)?ut[t](e._strict,e._locale):new RegExp(dt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,i,n,s){return e||i||n||s})))}function dt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var pt={};function ft(t,e){var i,n=e;for("string"==typeof t&&(t=[t]),c(e)&&(n=function(t,i){i[e]=v(t)}),i=0;i68?1900:2e3)};var yt,wt=At("FullYear",!0);function At(t,e){return function(i){return null!=i?(vt(this,t,i),s.updateOffset(this,e),this):Mt(this,t)}}function Mt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function vt(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&&bt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),Tt(i,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](i))}function Tt(t,e){if(isNaN(t)||isNaN(e))return NaN;var i=(e%12+12)%12;return t+=(e-i)/12,1===i?bt(t)?29:28:31-i%7%2}yt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e=0?(a=new Date(t+400,e,i,n,s,o,r),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,i,n,s,o,r),a}function Pt(t){var e;if(t<100&&t>=0){var i=Array.prototype.slice.call(arguments);i[0]=t+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function Nt(t,e,i){var n=7+e-i;return-(7+Pt(t,0,n).getUTCDay()-e)%7+n-1}function It(t,e,i,n,s){var o,r,a=1+7*(e-1)+(7+i-n)%7+Nt(t,n,s);return a<=0?r=_t(o=t-1)+a:a>_t(t)?(o=t+1,r=a-_t(t)):(o=t,r=a),{year:o,dayOfYear:r}}function qt(t,e,i){var n,s,o=Nt(t.year(),e,i),r=Math.floor((t.dayOfYear()-o-1)/7)+1;return r<1?n=r+Bt(s=t.year()-1,e,i):r>Bt(t.year(),e,i)?(n=r-Bt(t.year(),e,i),s=t.year()+1):(s=t.year(),n=r),{week:n,year:s}}function Bt(t,e,i){var n=Nt(t,e,i),s=Nt(t+1,e,i);return(_t(t)-n+s)/7}function Ht(t,e){return t.slice(e,7).concat(t.slice(0,e))}W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),D("week","w"),D("isoWeek","W"),q("week",5),q("isoWeek",5),lt("w",J),lt("ww",J,G),lt("W",J),lt("WW",J,G),gt(["w","ww","W","WW"],function(t,e,i,n){e[n.substr(0,1)]=v(t)}),W("d",0,"do","day"),W("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),W("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),W("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),D("day","d"),D("weekday","e"),D("isoWeekday","E"),q("day",11),q("weekday",11),q("isoWeekday",11),lt("d",J),lt("e",J),lt("E",J),lt("dd",function(t,e){return e.weekdaysMinRegex(t)}),lt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),lt("dddd",function(t,e){return e.weekdaysRegex(t)}),gt(["dd","ddd","dddd"],function(t,e,i,n){var s=i._locale.weekdaysParse(t,n,i._strict);null!=s?e.d=s:f(i).invalidWeekday=t}),gt(["d","e","E"],function(t,e,i,n){e[n]=v(t)});var Yt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),jt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ft="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Wt(t,e,i){var n,s,o,r=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=p([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(s=yt.call(this._weekdaysParse,r))?s:null:"ddd"===e?-1!==(s=yt.call(this._shortWeekdaysParse,r))?s:null:-1!==(s=yt.call(this._minWeekdaysParse,r))?s:null:"dddd"===e?-1!==(s=yt.call(this._weekdaysParse,r))||-1!==(s=yt.call(this._shortWeekdaysParse,r))||-1!==(s=yt.call(this._minWeekdaysParse,r))?s:null:"ddd"===e?-1!==(s=yt.call(this._shortWeekdaysParse,r))||-1!==(s=yt.call(this._weekdaysParse,r))||-1!==(s=yt.call(this._minWeekdaysParse,r))?s:null:-1!==(s=yt.call(this._minWeekdaysParse,r))||-1!==(s=yt.call(this._weekdaysParse,r))||-1!==(s=yt.call(this._shortWeekdaysParse,r))?s:null}var Ut=ct,Kt=ct,Zt=ct;function Gt(){function t(t,e){return e.length-t.length}var e,i,n,s,o,r=[],a=[],c=[],u=[];for(e=0;e<7;e++)i=p([2e3,1]).day(e),n=this.weekdaysMin(i,""),s=this.weekdaysShort(i,""),o=this.weekdays(i,""),r.push(n),a.push(s),c.push(o),u.push(n),u.push(s),u.push(o);for(r.sort(t),a.sort(t),c.sort(t),u.sort(t),e=0;e<7;e++)a[e]=dt(a[e]),c[e]=dt(c[e]),u[e]=dt(u[e]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Xt(){return this.hours()%12||12}function Vt(t,e){W(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function $t(t,e){return e._meridiemParse}W("H",["HH",2],0,"hour"),W("h",["hh",2],0,Xt),W("k",["kk",2],0,function(){return this.hours()||24}),W("hmm",0,0,function(){return""+Xt.apply(this)+B(this.minutes(),2)}),W("hmmss",0,0,function(){return""+Xt.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)}),W("Hmm",0,0,function(){return""+this.hours()+B(this.minutes(),2)}),W("Hmmss",0,0,function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)}),Vt("a",!0),Vt("A",!1),D("hour","h"),q("hour",13),lt("a",$t),lt("A",$t),lt("H",J),lt("h",J),lt("k",J),lt("HH",J,G),lt("hh",J,G),lt("kk",J,G),lt("hmm",Q),lt("hmmss",tt),lt("Hmm",Q),lt("Hmmss",tt),ft(["H","HH"],3),ft(["k","kk"],function(t,e,i){var n=v(t);e[3]=24===n?0:n}),ft(["a","A"],function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t}),ft(["h","hh"],function(t,e,i){e[3]=v(t),f(i).bigHour=!0}),ft("hmm",function(t,e,i){var n=t.length-2;e[3]=v(t.substr(0,n)),e[4]=v(t.substr(n)),f(i).bigHour=!0}),ft("hmmss",function(t,e,i){var n=t.length-4,s=t.length-2;e[3]=v(t.substr(0,n)),e[4]=v(t.substr(n,2)),e[5]=v(t.substr(s)),f(i).bigHour=!0}),ft("Hmm",function(t,e,i){var n=t.length-2;e[3]=v(t.substr(0,n)),e[4]=v(t.substr(n))}),ft("Hmmss",function(t,e,i){var n=t.length-4,s=t.length-2;e[3]=v(t.substr(0,n)),e[4]=v(t.substr(n,2)),e[5]=v(t.substr(s))});var Jt,Qt=At("Hours",!0),te={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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Lt,monthsShort:Ct,week:{dow:0,doy:6},weekdays:Yt,weekdaysMin:Ft,weekdaysShort:jt,meridiemParse:/[ap]\.?m?\.?/i},ee={},ie={};function ne(t){return t?t.toLowerCase().replace("_","-"):t}function se(e){var n=null;if(!ee[e]&&t&&t.exports)try{n=Jt._abbr,i(6700)("./"+e),oe(n)}catch(s){}return ee[e]}function oe(t,e){var i;return t&&((i=a(e)?ae(t):re(t,e))?Jt=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Jt._abbr}function re(t,e){if(null!==e){var i,n=te;if(e.abbr=t,null!=ee[t])E("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=ee[t]._config;else if(null!=e.parentLocale)if(null!=ee[e.parentLocale])n=ee[e.parentLocale]._config;else{if(null==(i=se(e.parentLocale)))return ie[e.parentLocale]||(ie[e.parentLocale]=[]),ie[e.parentLocale].push({name:t,config:e}),null;n=i._config}return ee[t]=new O(x(n,e)),ie[t]&&ie[t].forEach(function(t){re(t.name,t.config)}),oe(t),ee[t]}return delete ee[t],null}function ae(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Jt;if(!o(t)){if(e=se(t))return e;t=[t]}return function(t){for(var e,i,n,s,o=0;o0;){if(n=se(s.slice(0,e).join("-")))return n;if(i&&i.length>=e&&T(s,i,!0)>=e-1)break;e--}o++}return Jt}(t)}function ce(t){var e,i=t._a;return i&&-2===f(t).overflow&&(e=i[1]<0||i[1]>11?1:i[2]<1||i[2]>Tt(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,f(t)._overflowDayOfYear&&(e<0||e>2)&&(e=2),f(t)._overflowWeeks&&-1===e&&(e=7),f(t)._overflowWeekday&&-1===e&&(e=8),f(t).overflow=e),t}function ue(t,e,i){return null!=t?t:null!=e?e:i}function le(t){var e,i,n,o,r,a=[];if(!t._d){for(n=function(t){var e=new Date(s.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[2]&&null==t._a[1]&&function(t){var e,i,n,s,o,r,a,c;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)o=1,r=4,i=ue(e.GG,t._a[0],qt(Te(),1,4).year),n=ue(e.W,1),((s=ue(e.E,1))<1||s>7)&&(c=!0);else{o=t._locale._week.dow,r=t._locale._week.doy;var u=qt(Te(),o,r);i=ue(e.gg,t._a[0],u.year),n=ue(e.w,u.week),null!=e.d?((s=e.d)<0||s>6)&&(c=!0):null!=e.e?(s=e.e+o,(e.e<0||e.e>6)&&(c=!0)):s=o}n<1||n>Bt(i,o,r)?f(t)._overflowWeeks=!0:null!=c?f(t)._overflowWeekday=!0:(a=It(i,n,s,o,r),t._a[0]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(r=ue(t._a[0],n[0]),(t._dayOfYear>_t(r)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),i=Pt(r,0,t._dayOfYear),t._a[1]=i.getUTCMonth(),t._a[2]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=n[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];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?Pt:Dt).apply(null,a),o=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&&void 0!==t._w.d&&t._w.d!==o&&(f(t).weekdayMismatch=!0)}}var he=/^\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)?)?$/,de=/^\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)?)?$/,pe=/Z|[+-]\d\d(?::?\d\d)?/,fe=[["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}/]],ge=[["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/]],me=/^\/?Date\((\-?\d+)/i;function _e(t){var e,i,n,s,o,r,a=t._i,c=he.exec(a)||de.exec(a);if(c){for(f(t).iso=!0,e=0,i=fe.length;e0&&f(t).unusedInput.push(r),a=a.slice(a.indexOf(i)+i.length),u+=i.length),F[o]?(i?f(t).empty=!1:f(t).unusedTokens.push(o),mt(o,i,t)):t._strict&&!i&&f(t).unusedTokens.push(o);f(t).charsLeftOver=c-u,a.length>0&&f(t).unusedInput.push(a),t._a[3]<=12&&!0===f(t).bigHour&&t._a[3]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[3]=function(t,e,i){var n;return null==i?e:null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?((n=t.isPM(i))&&e<12&&(e+=12),n||12!==e||(e=0),e):e}(t._locale,t._a[3],t._meridiem),le(t),ce(t)}else we(t);else _e(t)}function Me(t){var e=t._i,i=t._f;return t._locale=t._locale||ae(t._l),null===e||void 0===i&&""===e?m({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),A(e)?new w(ce(e)):(u(e)?t._d=e:o(i)?function(t){var e,i,n,s,o;if(0===t._f.length)return f(t).invalidFormat=!0,void(t._d=new Date(NaN));for(s=0;sthis?this:t:m()});function Ce(t,e){var i,n;if(1===e.length&&o(e[0])&&(e=e[0]),!e.length)return Te();for(i=e[0],n=1;n=0?new Date(t+400,e,i)-126227808e5:new Date(t,e,i).valueOf()}function Qe(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-126227808e5:Date.UTC(t,e,i)}function ti(t,e){W(0,[t,t.length],0,e)}function ei(t,e,i,n,s){var o;return null==t?qt(this,n,s).year:(e>(o=Bt(t,n,s))&&(e=o),ii.call(this,t,e,i,n,s))}function ii(t,e,i,n,s){var o=It(t,e,i,n,s),r=Pt(o.year,0,o.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}W(0,["gg",2],0,function(){return this.weekYear()%100}),W(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ti("gggg","weekYear"),ti("ggggg","weekYear"),ti("GGGG","isoWeekYear"),ti("GGGGG","isoWeekYear"),D("weekYear","gg"),D("isoWeekYear","GG"),q("weekYear",1),q("isoWeekYear",1),lt("G",ot),lt("g",ot),lt("GG",J,G),lt("gg",J,G),lt("GGGG",it,V),lt("gggg",it,V),lt("GGGGG",nt,$),lt("ggggg",nt,$),gt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,i,n){e[n.substr(0,2)]=v(t)}),gt(["gg","GG"],function(t,e,i,n){e[n]=s.parseTwoDigitYear(t)}),W("Q",0,"Qo","quarter"),D("quarter","Q"),q("quarter",7),lt("Q",Z),ft("Q",function(t,e){e[1]=3*(v(t)-1)}),W("D",["DD",2],"Do","date"),D("date","D"),q("date",9),lt("D",J),lt("DD",J,G),lt("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),ft(["D","DD"],2),ft("Do",function(t,e){e[2]=v(t.match(J)[0])});var ni=At("Date",!0);W("DDD",["DDDD",3],"DDDo","dayOfYear"),D("dayOfYear","DDD"),q("dayOfYear",4),lt("DDD",et),lt("DDDD",X),ft(["DDD","DDDD"],function(t,e,i){i._dayOfYear=v(t)}),W("m",["mm",2],0,"minute"),D("minute","m"),q("minute",14),lt("m",J),lt("mm",J,G),ft(["m","mm"],4);var si=At("Minutes",!1);W("s",["ss",2],0,"second"),D("second","s"),q("second",15),lt("s",J),lt("ss",J,G),ft(["s","ss"],5);var oi,ri=At("Seconds",!1);for(W("S",0,0,function(){return~~(this.millisecond()/100)}),W(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,function(){return 10*this.millisecond()}),W(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),W(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),W(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),W(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),W(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),D("millisecond","ms"),q("millisecond",16),lt("S",et,Z),lt("SS",et,G),lt("SSS",et,X),oi="SSSS";oi.length<=9;oi+="S")lt(oi,st);function ai(t,e){e[6]=v(1e3*("0."+t))}for(oi="S";oi.length<=9;oi+="S")ft(oi,ai);var ci=At("Milliseconds",!1);W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var ui=w.prototype;function li(t){return t}ui.add=Ue,ui.calendar=function(t,e){var i=t||Te(),n=Pe(i,this).startOf("day"),o=s.calendarFormat(this,n)||"sameElse",r=e&&(z(e[o])?e[o].call(this,i):e[o]);return this.format(r||this.localeData().calendar(o,this,Te(i)))},ui.clone=function(){return new w(this)},ui.diff=function(t,e,i){var n,s,o;if(!this.isValid())return NaN;if(!(n=Pe(t,this)).isValid())return NaN;switch(s=6e4*(n.utcOffset()-this.utcOffset()),e=P(e)){case"year":o=Ze(this,n)/12;break;case"month":o=Ze(this,n);break;case"quarter":o=Ze(this,n)/3;break;case"second":o=(this-n)/1e3;break;case"minute":o=(this-n)/6e4;break;case"hour":o=(this-n)/36e5;break;case"day":o=(this-n-s)/864e5;break;case"week":o=(this-n-s)/6048e5;break;default:o=this-n}return i?o:M(o)},ui.endOf=function(t){var e;if(void 0===(t=P(t))||"millisecond"===t||!this.isValid())return this;var i=this._isUTC?Qe:Je;switch(t){case"year":e=i(this.year()+1,0,1)-1;break;case"quarter":e=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=i(this.year(),this.month()+1,1)-1;break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-$e(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-$e(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-$e(e,1e3)-1}return this._d.setTime(e),s.updateOffset(this,!0),this},ui.format=function(t){t||(t=this.isUtc()?s.defaultFormatUtc:s.defaultFormat);var e=U(this,t);return this.localeData().postformat(e)},ui.from=function(t,e){return this.isValid()&&(A(t)&&t.isValid()||Te(t).isValid())?He({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},ui.fromNow=function(t){return this.from(Te(),t)},ui.to=function(t,e){return this.isValid()&&(A(t)&&t.isValid()||Te(t).isValid())?He({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},ui.toNow=function(t){return this.to(Te(),t)},ui.get=function(t){return z(this[t=P(t)])?this[t]():this},ui.invalidAt=function(){return f(this).overflow},ui.isAfter=function(t,e){var i=A(t)?t:Te(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=P(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()9999?U(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):z(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(i,"Z")):U(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},ui.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var i="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";return this.format(i+n+"-MM-DD[T]HH:mm:ss.SSS"+e+'[")]')},ui.toJSON=function(){return this.isValid()?this.toISOString():null},ui.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ui.unix=function(){return Math.floor(this.valueOf()/1e3)},ui.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ui.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ui.year=wt,ui.isLeapYear=function(){return bt(this.year())},ui.weekYear=function(t){return ei.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ui.isoWeekYear=function(t){return ei.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},ui.quarter=ui.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},ui.month=zt,ui.daysInMonth=function(){return Tt(this.year(),this.month())},ui.week=ui.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},ui.isoWeek=ui.isoWeeks=function(t){var e=qt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},ui.weeksInYear=function(){var t=this.localeData()._week;return Bt(this.year(),t.dow,t.doy)},ui.isoWeeksInYear=function(){return Bt(this.year(),1,4)},ui.date=ni,ui.day=ui.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},ui.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},ui.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},ui.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},ui.hour=ui.hours=Qt,ui.minute=ui.minutes=si,ui.second=ui.seconds=ri,ui.millisecond=ui.milliseconds=ci,ui.utcOffset=function(t,e,i){var n,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=De(at,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(n=Ne(this)),this._offset=t,this._isUTC=!0,null!=n&&this.add(n,"m"),o!==t&&(!e||this._changeInProgress?We(this,He(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,s.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Ne(this)},ui.utc=function(t){return this.utcOffset(0,t)},ui.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ne(this),"m")),this},ui.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=De(rt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},ui.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Te(t).utcOffset():0,(this.utcOffset()-t)%60==0)},ui.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ui.isLocal=function(){return!!this.isValid()&&!this._isUTC},ui.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ui.isUtc=Ie,ui.isUTC=Ie,ui.zoneAbbr=function(){return this._isUTC?"UTC":""},ui.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ui.dates=L("dates accessor is deprecated. Use date instead.",ni),ui.months=L("months accessor is deprecated. Use month instead",zt),ui.years=L("years accessor is deprecated. Use year instead",wt),ui.zone=L("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),ui.isDSTShifted=L("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var t={};if(b(t,this),(t=Me(t))._a){var e=t._isUTC?p(t._a):Te(t._a);this._isDSTShifted=this.isValid()&&T(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var hi=O.prototype;function di(t,e,i,n){var s=ae(),o=p().set(n,e);return s[i](o,t)}function pi(t,e,i){if(c(t)&&(e=t,t=void 0),t=t||"",null!=e)return di(t,e,i,"month");var n,s=[];for(n=0;n<12;n++)s[n]=di(t,n,i,"month");return s}function fi(t,e,i,n){"boolean"==typeof t?(c(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,c(e)&&(i=e,e=void 0),e=e||"");var s,o=ae(),r=t?o._week.dow:0;if(null!=i)return di(e,(i+r)%7,n,"day");var a=[];for(s=0;s<7;s++)a[s]=di(e,(s+r)%7,n,"day");return a}hi.calendar=function(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return z(n)?n.call(e,i):n},hi.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},hi.invalidDate=function(){return this._invalidDate},hi.ordinal=function(t){return this._ordinal.replace("%d",t)},hi.preparse=li,hi.postformat=li,hi.relativeTime=function(t,e,i,n){var s=this._relativeTime[i];return z(s)?s(t,e,i,n):s.replace(/%d/i,t)},hi.pastFuture=function(t,e){var i=this._relativeTime[t>0?"future":"past"];return z(i)?i(e):i.replace(/%s/i,e)},hi.set=function(t){var e,i;for(i in t)z(e=t[i])?this[i]=e:this["_"+i]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},hi.months=function(t,e){return t?o(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||kt).test(e)?"format":"standalone"][t.month()]:o(this._months)?this._months:this._months.standalone},hi.monthsShort=function(t,e){return t?o(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[kt.test(e)?"format":"standalone"][t.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},hi.monthsParse=function(t,e,i){var n,s,o;if(this._monthsParseExact)return St.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(s=p([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(o="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[n]=new RegExp(o.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}},hi.monthsRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||Rt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=Ot),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},hi.monthsShortRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||Rt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=xt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},hi.week=function(t){return qt(t,this._week.dow,this._week.doy).week},hi.firstDayOfYear=function(){return this._week.doy},hi.firstDayOfWeek=function(){return this._week.dow},hi.weekdays=function(t,e){var i=o(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Ht(i,this._week.dow):t?i[t.day()]:i},hi.weekdaysMin=function(t){return!0===t?Ht(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},hi.weekdaysShort=function(t){return!0===t?Ht(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},hi.weekdaysParse=function(t,e,i){var n,s,o;if(this._weekdaysParseExact)return Wt.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(s=p([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[n]=new RegExp(o.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!i&&this._weekdaysParse[n].test(t))return n}},hi.weekdaysRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Gt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=Ut),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},hi.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Gt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Kt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},hi.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Gt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Zt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},hi.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},hi.meridiem=function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},oe("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===v(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),s.lang=L("moment.lang is deprecated. Use moment.locale instead.",oe),s.langData=L("moment.langData is deprecated. Use moment.localeData instead.",ae);var gi=Math.abs;function mi(t,e,i,n){var s=He(e,i);return t._milliseconds+=n*s._milliseconds,t._days+=n*s._days,t._months+=n*s._months,t._bubble()}function _i(t){return t<0?Math.floor(t):Math.ceil(t)}function bi(t){return 4800*t/146097}function yi(t){return 146097*t/4800}function wi(t){return function(){return this.as(t)}}var Ai=wi("ms"),Mi=wi("s"),vi=wi("m"),Ti=wi("h"),ki=wi("d"),Li=wi("w"),Ci=wi("M"),Si=wi("Q"),Ei=wi("y");function zi(t){return function(){return this.isValid()?this._data[t]:NaN}}var xi=zi("milliseconds"),Oi=zi("seconds"),Ri=zi("minutes"),Di=zi("hours"),Pi=zi("days"),Ni=zi("months"),Ii=zi("years"),qi=Math.round,Bi={ss:44,s:45,m:45,h:22,d:26,M:11};function Hi(t,e,i,n,s){return s.relativeTime(e||1,!!i,t,n)}var Yi=Math.abs;function ji(t){return(t>0)-(t<0)||+t}function Fi(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i=Yi(this._milliseconds)/1e3,n=Yi(this._days),s=Yi(this._months);t=M(i/60),e=M(t/60),i%=60,t%=60;var o=M(s/12),r=s%=12,a=n,c=e,u=t,l=i?i.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var d=h<0?"-":"",p=ji(this._months)!==ji(h)?"-":"",f=ji(this._days)!==ji(h)?"-":"",g=ji(this._milliseconds)!==ji(h)?"-":"";return d+"P"+(o?p+o+"Y":"")+(r?p+r+"M":"")+(a?f+a+"D":"")+(c||u||l?"T":"")+(c?g+c+"H":"")+(u?g+u+"M":"")+(l?g+l+"S":"")}var Wi=Ee.prototype;return Wi.isValid=function(){return this._isValid},Wi.abs=function(){var t=this._data;return this._milliseconds=gi(this._milliseconds),this._days=gi(this._days),this._months=gi(this._months),t.milliseconds=gi(t.milliseconds),t.seconds=gi(t.seconds),t.minutes=gi(t.minutes),t.hours=gi(t.hours),t.months=gi(t.months),t.years=gi(t.years),this},Wi.add=function(t,e){return mi(this,t,e,1)},Wi.subtract=function(t,e){return mi(this,t,e,-1)},Wi.as=function(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if("month"===(t=P(t))||"quarter"===t||"year"===t)switch(i=this._months+bi(e=this._days+n/864e5),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(yi(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}},Wi.asMilliseconds=Ai,Wi.asSeconds=Mi,Wi.asMinutes=vi,Wi.asHours=Ti,Wi.asDays=ki,Wi.asWeeks=Li,Wi.asMonths=Ci,Wi.asQuarters=Si,Wi.asYears=Ei,Wi.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*v(this._months/12):NaN},Wi._bubble=function(){var t,e,i,n,s,o=this._milliseconds,r=this._days,a=this._months,c=this._data;return o>=0&&r>=0&&a>=0||o<=0&&r<=0&&a<=0||(o+=864e5*_i(yi(a)+r),r=0,a=0),c.milliseconds=o%1e3,t=M(o/1e3),c.seconds=t%60,e=M(t/60),c.minutes=e%60,i=M(e/60),c.hours=i%24,r+=M(i/24),a+=s=M(bi(r)),r-=_i(yi(s)),n=M(a/12),a%=12,c.days=r,c.months=a,c.years=n,this},Wi.clone=function(){return He(this)},Wi.get=function(t){return t=P(t),this.isValid()?this[t+"s"]():NaN},Wi.milliseconds=xi,Wi.seconds=Oi,Wi.minutes=Ri,Wi.hours=Di,Wi.days=Pi,Wi.weeks=function(){return M(this.days()/7)},Wi.months=Ni,Wi.years=Ii,Wi.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),i=function(t,e,i){var n=He(t).abs(),s=qi(n.as("s")),o=qi(n.as("m")),r=qi(n.as("h")),a=qi(n.as("d")),c=qi(n.as("M")),u=qi(n.as("y")),l=s<=Bi.ss&&["s",s]||s0,l[4]=i,Hi.apply(null,l)}(this,!t,e);return t&&(i=e.pastFuture(+this,i)),e.postformat(i)},Wi.toISOString=Fi,Wi.toString=Fi,Wi.toJSON=Fi,Wi.locale=Ge,Wi.localeData=Ve,Wi.toIsoString=L("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Fi),Wi.lang=Xe,W("X",0,0,"unix"),W("x",0,0,"valueOf"),lt("x",ot),lt("X",/[+-]?\d+(\.\d{1,3})?/),ft("X",function(t,e,i){i._d=new Date(1e3*parseFloat(t,10))}),ft("x",function(t,e,i){i._d=new Date(v(t))}),s.version="2.24.0",e=Te,s.fn=ui,s.min=function(){return Ce("isBefore",[].slice.call(arguments,0))},s.max=function(){return Ce("isAfter",[].slice.call(arguments,0))},s.now=function(){return Date.now?Date.now():+new Date},s.utc=p,s.unix=function(t){return Te(1e3*t)},s.months=function(t,e){return pi(t,e,"months")},s.isDate=u,s.locale=oe,s.invalid=m,s.duration=He,s.isMoment=A,s.weekdays=function(t,e,i){return fi(t,e,i,"weekdays")},s.parseZone=function(){return Te.apply(null,arguments).parseZone()},s.localeData=ae,s.isDuration=ze,s.monthsShort=function(t,e){return pi(t,e,"monthsShort")},s.weekdaysMin=function(t,e,i){return fi(t,e,i,"weekdaysMin")},s.defineLocale=re,s.updateLocale=function(t,e){if(null!=e){var i,n,s=te;null!=(n=se(t))&&(s=n._config),(i=new O(e=x(s,e))).parentLocale=ee[t],ee[t]=i,oe(t)}else null!=ee[t]&&(null!=ee[t].parentLocale?ee[t]=ee[t].parentLocale:null!=ee[t]&&delete ee[t]);return ee[t]},s.locales=function(){return C(ee)},s.weekdaysShort=function(t,e,i){return fi(t,e,i,"weekdaysShort")},s.normalizeUnits=P,s.relativeTimeRounding=function(t){return void 0===t?qi:"function"==typeof t&&(qi=t,!0)},s.relativeTimeThreshold=function(t,e){return void 0!==Bi[t]&&(void 0===e?Bi[t]:(Bi[t]=e,"s"===t&&(Bi.ss=e-1),!0))},s.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},s.prototype=ui,s.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"},s}()},963:function(t){"use strict";function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,i,n,s){n=n||"=";var o={};if("string"!=typeof t||0===t.length)return o;var r=/\+/g;t=t.split(i=i||"&");var a=1e3;s&&"number"==typeof s.maxKeys&&(a=s.maxKeys);var c=t.length;a>0&&c>a&&(c=a);for(var u=0;u=0?(l=f.substr(0,g),h=f.substr(g+1)):(l=f,h=""),d=decodeURIComponent(l),p=decodeURIComponent(h),e(o,d)?Array.isArray(o[d])?o[d].push(p):o[d]=[o[d],p]:o[d]=p}return o}},5341:function(t){"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,i,n,s){return i=i||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map(function(s){var o=encodeURIComponent(e(s))+n;return Array.isArray(t[s])?t[s].map(function(t){return o+encodeURIComponent(e(t))}).join(i):o+encodeURIComponent(e(t[s]))}).join(i):s?encodeURIComponent(e(s))+n+encodeURIComponent(e(t)):""}},6577:function(t,e,i){"use strict";i(963),i(5341)},9867:function(t,e,i){"use strict";i.d(e,{d:function(){return s}});var n=i(6673);class s extends n.L{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},3103:function(t,e,i){"use strict";i.d(e,{P:function(){return r}});var n=i(653),s=i(878),o=i(1225);let r=(()=>{class t{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return(0,s.of)(this.value);case"E":return(0,o._)(this.error);case"C":return(0,n.c)()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})()},8318:function(t,e,i){"use strict";i.d(e,{y:function(){return u}});var n=i(6673),s=i(5331),o=i(7498),r=i(6197),a=i(3392),c=i(1484);let u=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(t,e,i){const{operator:r}=this,a=function(t,e,i){if(t){if(t instanceof n.L)return t;if(t[s.b])return t[s.b]()}return t||e||i?new n.L(t,e,i):new n.L(o.c)}(t,e,i);if(a.add(r?r.call(a,this.source):this.source||c.v.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),c.v.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){c.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:i,isStopped:s}=t;if(e||s)return!1;t=i&&i instanceof n.L?i:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=l(e))((e,i)=>{let n;n=this.subscribe(e=>{try{t(e)}catch(s){i(s),n&&n.unsubscribe()}},i,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[r.L](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?a.y:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=l(t))((t,e)=>{let i;this.subscribe(t=>i=t,t=>e(t),()=>t(i))})}}return t.create=e=>new t(e),t})();function l(t){if(t||(t=c.v.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},7498:function(t,e,i){"use strict";i.d(e,{c:function(){return o}});var n=i(1484),s=i(4294);const o={closed:!0,next(t){},error(t){if(n.v.useDeprecatedSynchronousErrorHandling)throw t;(0,s.z)(t)},complete(){}}},9829:function(t,e,i){"use strict";i.d(e,{L:function(){return s}});var n=i(6673);class s extends n.L{notifyNext(t,e,i,n,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}},5959:function(t,e,i){"use strict";i.d(e,{Yc:function(){return u},xQ:function(){return l}});var n=i(8318),s=i(6673),o=i(7570),r=i(3895),a=i(9291),c=i(5331);class u extends s.L{constructor(t){super(t),this.destination=t}}let l=(()=>{class t extends n.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[c.b](){return new u(this)}lift(t){const e=new h(this,this);return e.operator=t,e}next(t){if(this.closed)throw new r.N;if(!this.isStopped){const{observers:e}=this,i=e.length,n=e.slice();for(let s=0;snew h(t,e),t})();class h extends l{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):o.w.EMPTY}}},9291:function(t,e,i){"use strict";i.d(e,{W:function(){return s}});var n=i(7570);class s extends n.w{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}},6673:function(t,e,i){"use strict";i.d(e,{L:function(){return u}});var n=i(5024),s=i(7498),o=i(7570),r=i(5331),a=i(1484),c=i(4294);class u extends o.w{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.c;break;case 1:if(!t){this.destination=s.c;break}if("object"==typeof t){t instanceof u?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new l(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new l(this,t,e,i)}}[r.b](){return this}static create(t,e,i){const n=new u(t,e,i);return n.syncErrorThrowable=!1,n}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class l extends u{constructor(t,e,i,o){let r;super(),this._parentSubscriber=t;let a=this;(0,n.m)(e)?r=e:e&&(r=e.next,i=e.error,o=e.complete,e!==s.c&&(a=Object.create(e),(0,n.m)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=r,this._error=i,this._complete=o}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=a.v;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):(0,c.z)(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;(0,c.z)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),a.v.useDeprecatedSynchronousErrorHandling)throw i;(0,c.z)(i)}}__tryOrSetError(t,e,i){if(!a.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(n){return a.v.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=n,t.syncErrorThrown=!0,!0):((0,c.z)(n),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},7570:function(t,e,i){"use strict";i.d(e,{w:function(){return a}});var n=i(8470),s=i(2056),o=i(5024);const r=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let a=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:i,_unsubscribe:a,_subscriptions:u}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof t)i.remove(this);else if(null!==i)for(let t=0;tt.concat(e instanceof r?e.errors:e),[])}},1484:function(t,e,i){"use strict";i.d(e,{v:function(){return s}});let n=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else n&&console.log("RxJS: Back to a better error behavior. Thank you. <3");n=t},get useDeprecatedSynchronousErrorHandling(){return n}}},2875:function(t,e,i){"use strict";i.d(e,{c:function(){return a},N:function(){return c}});var n=i(5959),s=i(8318),o=i(7570),r=i(1564);class a extends s.y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new o.w,t.add(this.source.subscribe(new u(this.getSubject(),this))),t.closed&&(this._connection=null,t=o.w.EMPTY)),t}refCount(){return(0,r.x)()(this)}}const c=(()=>{const t=a.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class u extends n.Yc{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}},1305:function(t,e,i){"use strict";i.d(e,{aj:function(){return u}});var n=i(6163),s=i(8470),o=i(9829),r=i(6268),a=i(9342);const c={};function u(...t){let e=null,i=null;return(0,n.K)(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&(0,s.k)(t[0])&&(t=t[0]),(0,a.n)(t,i).lift(new l(e))}class l{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new h(t,this.resultSelector))}}class h extends o.L{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(c),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;it.complete());function o(t){return t?function(t){return new n.y(e=>t.schedule(()=>e.complete()))}(t):s}},9764:function(t,e,i){"use strict";i.d(e,{D:function(){return h}});var n=i(8318),s=i(6015),o=i(7570),r=i(6197),a=i(2570),c=i(5686),u=i(5168),l=i(9653);function h(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[r.L]}(t))return function(t,e){return new n.y(i=>{const n=new o.w;return n.add(e.schedule(()=>{const s=t[r.L]();n.add(s.subscribe({next(t){n.add(e.schedule(()=>i.next(t)))},error(t){n.add(e.schedule(()=>i.error(t)))},complete(){n.add(e.schedule(()=>i.complete()))}}))})),n})}(t,e);if((0,u.t)(t))return function(t,e){return new n.y(i=>{const n=new o.w;return n.add(e.schedule(()=>t.then(t=>{n.add(e.schedule(()=>{i.next(t),n.add(e.schedule(()=>i.complete()))}))},t=>{n.add(e.schedule(()=>i.error(t)))}))),n})}(t,e);if((0,l.z)(t))return(0,a.r)(t,e);if(function(t){return t&&"function"==typeof t[c.hZ]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new n.y(i=>{const n=new o.w;let s;return n.add(()=>{s&&"function"==typeof s.return&&s.return()}),n.add(e.schedule(()=>{s=t[c.hZ](),n.add(e.schedule(function(){if(i.closed)return;let t,e;try{const i=s.next();t=i.value,e=i.done}catch(n){return void i.error(n)}e?i.complete():(i.next(t),this.schedule())}))})),n})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof n.y?t:new n.y((0,s.s)(t))}},9342:function(t,e,i){"use strict";i.d(e,{n:function(){return r}});var n=i(8318),s=i(625),o=i(2570);function r(t,e){return e?(0,o.r)(t,e):new n.y((0,s.V)(t))}},1906:function(t,e,i){"use strict";i.d(e,{T:function(){return a}});var n=i(8318),s=i(6163),o=i(7471),r=i(9342);function a(...t){let e=Number.POSITIVE_INFINITY,i=null,a=t[t.length-1];return(0,s.K)(a)?(i=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===i&&1===t.length&&t[0]instanceof n.y?t[0]:(0,o.J)(e)((0,r.n)(t,i))}},878:function(t,e,i){"use strict";i.d(e,{of:function(){return r}});var n=i(6163),s=i(9342),o=i(2570);function r(...t){let e=t[t.length-1];return(0,n.K)(e)?(t.pop(),(0,o.r)(t,e)):(0,s.n)(t)}},3875:function(t,e,i){"use strict";i.d(e,{S3:function(){return a}});var n=i(8470),s=i(9342),o=i(9829),r=i(6268);function a(...t){if(1===t.length){if(!(0,n.k)(t[0]))return t[0];t=t[0]}return(0,s.n)(t,void 0).lift(new c)}class c{call(t,e){return e.subscribe(new u(t))}}class u extends o.L{constructor(t){super(t),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(t){this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(let i=0;ie.schedule(o,0,{error:t,subscriber:i}):e=>e.error(t))}function o({error:t,subscriber:e}){e.error(t)}},7727:function(t,e,i){"use strict";i.d(e,{K:function(){return r}});var n=i(9829),s=i(9867),o=i(6268);function r(t){return function(e){const i=new a(t),n=e.lift(i);return i.caught=n}}class a{constructor(t){this.selector=t}call(t,e){return e.subscribe(new c(t,this.selector,this.caught))}}class c extends n.L{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let i;try{i=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const n=new s.d(this,void 0,void 0);this.add(n);const r=(0,o.D)(this,i,void 0,void 0,n);r!==n&&this.add(r)}}}},436:function(t,e,i){"use strict";i.d(e,{b:function(){return s}});var n=i(3982);function s(t,e){return(0,n.zg)(t,e,1)}},7701:function(t,e,i){"use strict";i.d(e,{b:function(){return o}});var n=i(6673),s=i(8569);function o(t,e=s.P){return i=>i.lift(new r(t,e))}class r{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))}}class a extends n.L{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function c(t){t.debouncedNext()}},7768:function(t,e,i){"use strict";i.d(e,{d:function(){return s}});var n=i(6673);function s(t=null){return e=>e.lift(new o(t))}class o{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new r(t,this.defaultValue))}}class r extends n.L{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},509:function(t,e,i){"use strict";i.d(e,{g:function(){return a}});var n=i(8569),s=i(8802),o=i(6673),r=i(3103);function a(t,e=n.P){const i=(0,s.J)(t)?+t-e.now():Math.abs(t);return t=>t.lift(new c(i,e))}class c{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new u(t,this.delay,this.scheduler))}}class u extends o.L{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,n=t.scheduler,s=t.destination;for(;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const e=Math.max(0,i[0].time-n.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(u.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new l(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(r.P.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(r.P.createComplete()),this.unsubscribe()}}class l{constructor(t,e){this.time=t,this.notification=e}}},3835:function(t,e,i){"use strict";i.d(e,{h:function(){return s}});var n=i(6673);function s(t,e){return function(i){return i.lift(new o(t,e))}}class o{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new r(t,this.predicate,this.thisArg))}}class r extends n.L{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}},3530:function(t,e,i){"use strict";i.d(e,{P:function(){return u}});var n=i(9665),s=i(3835),o=i(611),r=i(7768),a=i(790),c=i(3392);function u(t,e){const i=arguments.length>=2;return u=>u.pipe(t?(0,s.h)((e,i)=>t(e,i,u)):c.y,(0,o.q)(1),i?(0,r.d)(e):(0,a.T)(()=>new n.K))}},9996:function(t,e,i){"use strict";i.d(e,{U:function(){return s}});var n=i(6673);function s(t,e){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new o(t,e))}}class o{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new r(t,this.project,this.thisArg))}}class r extends n.L{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}},7471:function(t,e,i){"use strict";i.d(e,{J:function(){return o}});var n=i(3982),s=i(3392);function o(t=Number.POSITIVE_INFINITY){return(0,n.zg)(s.y,t)}},3982:function(t,e,i){"use strict";i.d(e,{zg:function(){return c}});var n=i(6268),s=i(9829),o=i(9867),r=i(9996),a=i(9764);function c(t,e,i=Number.POSITIVE_INFINITY){return"function"==typeof e?n=>n.pipe(c((i,n)=>(0,a.D)(t(i,n)).pipe((0,r.U)((t,s)=>e(i,t,n,s))),i)):("number"==typeof e&&(i=e),e=>e.lift(new u(t,i)))}class u{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new l(t,this.project,this.concurrent))}}class l extends s.L{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},1564:function(t,e,i){"use strict";i.d(e,{x:function(){return s}});var n=i(6673);function s(){return function(t){return t.lift(new o(t))}}class o{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const n=new r(t,i),s=e.subscribe(n);return n.closed||(n.connection=i.connect()),s}}class r extends n.L{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,n=t._connection;this.connection=null,!n||i&&n!==i||n.unsubscribe()}}},1055:function(t,e,i){"use strict";i.d(e,{B:function(){return a}});var n=i(2875),s=i(1564),o=i(5959);function r(){return new o.xQ}function a(){return t=>{return(0,s.x)()((e=r,function(t){let i;i="function"==typeof e?e:function(){return e};const s=Object.create(t,n.N);return s.source=t,s.subjectFactory=i,s})(t));var e}}},4689:function(t,e,i){"use strict";i.d(e,{w:function(){return c}});var n=i(9829),s=i(9867),o=i(6268),r=i(9996),a=i(9764);function c(t,e){return"function"==typeof e?i=>i.pipe(c((i,n)=>(0,a.D)(t(i,n)).pipe((0,r.U)((t,s)=>e(i,t,n,s))))):e=>e.lift(new u(t))}class u{constructor(t){this.project=t}call(t,e){return e.subscribe(new l(t,this.project))}}class l extends n.L{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(n){return void this.destination.error(n)}this._innerSub(e,t,i)}_innerSub(t,e,i){const n=this.innerSubscription;n&&n.unsubscribe();const r=new s.d(this,e,i),a=this.destination;a.add(r),this.innerSubscription=(0,o.D)(this,t,void 0,void 0,r),this.innerSubscription!==r&&a.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,i,n,s){this.destination.next(e)}}},611:function(t,e,i){"use strict";i.d(e,{q:function(){return r}});var n=i(6673),s=i(8402),o=i(653);function r(t){return e=>0===t?(0,o.c)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new s.W}call(t,e){return e.subscribe(new c(t,this.total))}}class c extends n.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}},6599:function(t,e,i){"use strict";i.d(e,{b:function(){return r}});var n=i(6673);function s(){}var o=i(5024);function r(t,e,i){return function(n){return n.lift(new a(t,e,i))}}class a{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new c(t,this.nextOrObserver,this.error,this.complete))}}class c extends n.L{constructor(t,e,i,n){super(t),this._tapNext=s,this._tapError=s,this._tapComplete=s,this._tapError=i||s,this._tapComplete=n||s,(0,o.m)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||s,this._tapError=e.error||s,this._tapComplete=e.complete||s)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},790:function(t,e,i){"use strict";i.d(e,{T:function(){return o}});var n=i(9665),s=i(6673);function o(t=c){return e=>e.lift(new r(t))}class r{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new a(t,this.errorFactory))}}class a extends s.L{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function c(){return new n.K}},9085:function(t,e,i){"use strict";i.d(e,{V:function(){return h}});var n=i(8569);const s=(()=>{function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t})();var o=i(8802),r=i(9829),a=i(6268);class c{constructor(t,e,i,n){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=i,this.scheduler=n}call(t,e){return e.subscribe(new u(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class u extends r.L{constructor(t,e,i,n,s){super(t),this.absoluteTimeout=e,this.waitFor=i,this.withObservable=n,this.scheduler=s,this.action=null,this.scheduleTimeout()}static dispatchTimeout(t){const{withObservable:e}=t;t._unsubscribeAndRecycle(),t.add((0,a.D)(t,e))}scheduleTimeout(){const{action:t}=this;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(u.dispatchTimeout,this.waitFor,this))}_next(t){this.absoluteTimeout||this.scheduleTimeout(),super._next(t)}_unsubscribe(){this.action=null,this.scheduler=null,this.withObservable=null}}var l=i(1225);function h(t,e=n.P){return function(t,e,i=n.P){return n=>{let s=(0,o.J)(t),r=s?+t-i.now():Math.abs(t);return n.lift(new c(r,s,e,i))}}(t,(0,l._)(new s),e)}},2570:function(t,e,i){"use strict";i.d(e,{r:function(){return o}});var n=i(8318),s=i(7570);function o(t,e){return new n.y(i=>{const n=new s.w;let o=0;return n.add(e.schedule(function(){o!==t.length?(i.next(t[o++]),i.closed||n.add(this.schedule())):i.complete()})),n})}},8277:function(t,e,i){"use strict";i.d(e,{o:function(){return o}});var n=i(7570);class s extends n.w{constructor(t,e){super()}schedule(t,e=0){return this}}class o extends s{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 i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let i,n=!1;try{this.work(t)}catch(s){n=!0,i=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},1098:function(t,e,i){"use strict";i.d(e,{v:function(){return s}});let n=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(t,e=0,i){return new this.SchedulerAction(this,t).schedule(i,e)}}return t.now=()=>Date.now(),t})();class s extends n{constructor(t,e=n.now){super(t,()=>s.delegate&&s.delegate!==this?s.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return s.delegate&&s.delegate!==this?s.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}},8569:function(t,e,i){"use strict";i.d(e,{P:function(){return s}});var n=i(8277);const s=new(i(1098).v)(n.o)},5686:function(t,e,i){"use strict";function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}i.d(e,{hZ:function(){return s}});const s=n()},6197:function(t,e,i){"use strict";i.d(e,{L:function(){return n}});const n=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},5331:function(t,e,i){"use strict";i.d(e,{b:function(){return n}});const n=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},8402:function(t,e,i){"use strict";i.d(e,{W:function(){return n}});const n=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},9665:function(t,e,i){"use strict";i.d(e,{K:function(){return n}});const n=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})()},3895:function(t,e,i){"use strict";i.d(e,{N:function(){return n}});const n=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},4294:function(t,e,i){"use strict";function n(t){setTimeout(()=>{throw t},0)}i.d(e,{z:function(){return n}})},3392:function(t,e,i){"use strict";function n(t){return t}i.d(e,{y:function(){return n}})},8470:function(t,e,i){"use strict";i.d(e,{k:function(){return n}});const n=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))()},9653:function(t,e,i){"use strict";i.d(e,{z:function(){return n}});const n=t=>t&&"number"==typeof t.length&&"function"!=typeof t},8802:function(t,e,i){"use strict";function n(t){return t instanceof Date&&!isNaN(+t)}i.d(e,{J:function(){return n}})},5024:function(t,e,i){"use strict";function n(t){return"function"==typeof t}i.d(e,{m:function(){return n}})},2056:function(t,e,i){"use strict";function n(t){return null!==t&&"object"==typeof t}i.d(e,{K:function(){return n}})},5168:function(t,e,i){"use strict";function n(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}i.d(e,{t:function(){return n}})},6163:function(t,e,i){"use strict";function n(t){return t&&"function"==typeof t.schedule}i.d(e,{K:function(){return n}})},6015:function(t,e,i){"use strict";i.d(e,{s:function(){return l}});var n=i(625),s=i(4294),o=i(5686),r=i(6197),a=i(9653),c=i(5168),u=i(2056);const l=t=>{if(t&&"function"==typeof t[r.L])return l=t,t=>{const e=l[r.L]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if((0,a.z)(t))return(0,n.V)(t);if((0,c.t)(t))return i=t,t=>(i.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,s.z),t);if(t&&"function"==typeof t[o.hZ])return e=t,t=>{const i=e[o.hZ]();for(;;){const e=i.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof i.return&&t.add(()=>{i.return&&i.return()}),t};{const e=(0,u.K)(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,i,l}},625:function(t,e,i){"use strict";i.d(e,{V:function(){return n}});const n=t=>e=>{for(let i=0,n=t.length;i{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(c=c||document.querySelector("base"),c?c.getAttribute("href"):null);return null==e?null:function(t){a=a||document.createElement("a"),a.setAttribute("href",t);const e=a.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){c=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return(0,n.Mx)(document.cookie,t)}}let a,c=null;const u=new s.OlP("TRANSITION_ID"),l=[{provide:s.ip1,useFactory:function(t,e,i){return()=>{i.get(s.CZH).donePromise.then(()=>{const i=(0,n.q)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>i.remove(t))})}},deps:[u,n.K0,s.zs3],multi:!0}];class h{static init(){(0,s.VLi)(new h)}addToWindow(t){s.dqk.getAngularTestability=(e,i=!0)=>{const n=t.findTestabilityInTree(e,i);if(null==n)throw new Error("Could not find testability for element.");return n},s.dqk.getAllAngularTestabilities=()=>t.getAllTestabilities(),s.dqk.getAllAngularRootElements=()=>t.getAllRootElements(),s.dqk.frameworkStabilizers||(s.dqk.frameworkStabilizers=[]),s.dqk.frameworkStabilizers.push(t=>{const e=s.dqk.getAllAngularTestabilities();let i=e.length,n=!1;const o=function(e){n=n||e,i--,0==i&&t(n)};e.forEach(function(t){t.whenStable(o)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:i?(0,n.q)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let d=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const p=new s.OlP("EventManagerPlugins");let f=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,i){return this._findPluginFor(e).addEventListener(t,e,i)}addGlobalEventListener(t,e,i){return this._findPluginFor(e).addGlobalEventListener(t,e,i)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const i=this._plugins;for(let n=0;n{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),_=(()=>{class t extends m{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,i){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,i.push(e.appendChild(n))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(b),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,i)=>{this._addStylesToHost(t,i,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(b))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function b(t){(0,n.q)().remove(t)}const y={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/"},w=/%COMP%/g;function A(t,e,i){for(let n=0;n{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let v=(()=>{class t{constructor(t,e,i){this.eventManager=t,this.sharedStylesHost=e,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new T(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case s.ifc.Emulated:{let i=this.rendererByCompId.get(e.id);return i||(i=new k(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,i)),i.applyToHost(t),i}case 1:case s.ifc.ShadowDom:return new L(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=A(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(f),s.LFG(_),s.LFG(s.AFp))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class T{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(y[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,n){if(n){e=n+":"+e;const s=y[n];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const n=y[i];n?t.removeAttributeNS(n,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,n){n&(s.JOm.DashCase|s.JOm.Important)?t.style.setProperty(e,i,n&s.JOm.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&s.JOm.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,M(i)):this.eventManager.addEventListener(t,e,M(i))}}class k extends T{constructor(t,e,i,n){super(t),this.component=i;const s=A(n+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(w,n+"-"+i.id),this.hostAttr="_nghost-%COMP%".replace(w,n+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class L extends T{constructor(t,e,i,n){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=A(n.id,n.styles,[]);for(let o=0;o{class t extends g{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,i){return t.addEventListener(e,i,!1),()=>this.removeEventListener(t,e,i)}removeEventListener(t,e,i){return t.removeEventListener(e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const S=["alt","control","meta","shift"],E={"\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"},z={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"},x={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let O=(()=>{class t extends g{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,s){const o=t.parseEventName(i),r=t.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,n.q)().onAndCancel(e,o.domEventName,r))}static parseEventName(e){const i=e.toLowerCase().split("."),n=i.shift();if(0===i.length||"keydown"!==n&&"keyup"!==n)return null;const s=t._normalizeKey(i.pop());let o="";if(S.forEach(t=>{const e=i.indexOf(t);e>-1&&(i.splice(e,1),o+=t+".")}),o+=s,0!=i.length||0===s.length)return null;const r={};return r.domEventName=n,r.fullKey=o,r}static getEventFullKey(t){let e="",i=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&z.hasOwnProperty(e)&&(e=z[e]))}return E[e]||e}(t);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),S.forEach(n=>{n!=i&&(0,x[n])(t)&&(e+=n+".")}),e+=i,e}static eventCallback(e,i,n){return s=>{t.getEventFullKey(s)===e&&n.runGuarded(()=>i(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),R=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,s.Yz7)({factory:function(){return(0,s.LFG)(P)},token:t,providedIn:"root"}),t})();function D(t){return new P(t.get(n.K0))}let P=(()=>{class t extends R{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case s.q3G.NONE:return e;case s.q3G.HTML:return(0,s.qzn)(e,"HTML")?(0,s.z3N)(e):(0,s.EiD)(this._doc,String(e)).toString();case s.q3G.STYLE:return(0,s.qzn)(e,"Style")?(0,s.z3N)(e):e;case s.q3G.SCRIPT:if((0,s.qzn)(e,"Script"))return(0,s.z3N)(e);throw new Error("unsafe value used in a script context");case s.q3G.URL:return(0,s.yhl)(e),(0,s.qzn)(e,"URL")?(0,s.z3N)(e):(0,s.mCW)(String(e));case s.q3G.RESOURCE_URL:if((0,s.qzn)(e,"ResourceURL"))return(0,s.z3N)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return(0,s.JVY)(t)}bypassSecurityTrustStyle(t){return(0,s.L6k)(t)}bypassSecurityTrustScript(t){return(0,s.eBb)(t)}bypassSecurityTrustUrl(t){return(0,s.LAX)(t)}bypassSecurityTrustResourceUrl(t){return(0,s.pB0)(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=(0,s.Yz7)({factory:function(){return D((0,s.LFG)(s.gxx))},token:t,providedIn:"root"}),t})();const N=(0,s.eFA)(s._c5,"browser",[{provide:s.Lbi,useValue:n.bD},{provide:s.g9A,useValue:function(){r.makeCurrent(),h.init()},multi:!0},{provide:n.K0,useFactory:function(){return(0,s.RDi)(document),document},deps:[]}]),I=[[],{provide:s.zSh,useValue:"root"},{provide:s.qLn,useFactory:function(){return new s.qLn},deps:[]},{provide:p,useClass:C,multi:!0,deps:[n.K0,s.R0b,s.Lbi]},{provide:p,useClass:O,multi:!0,deps:[n.K0]},[],{provide:v,useClass:v,deps:[f,_,s.AFp]},{provide:s.FYo,useExisting:v},{provide:m,useExisting:_},{provide:_,useClass:_,deps:[n.K0]},{provide:s.dDg,useClass:s.dDg,deps:[s.R0b]},{provide:f,useClass:f,deps:[p,s.R0b]},{provide:n.JF,useClass:d,deps:[]},[]];let q=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:s.AFp,useValue:e.appId},{provide:u,useExisting:s.AFp},l]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(t,12))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:I,imports:[n.ez,s.hGG]}),t})();function B(){return new H((0,s.LFG)(n.K0))}let H=(()=>{class t{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=(0,s.Yz7)({factory:B,token:t,providedIn:"root"}),t})();"undefined"!=typeof window&&window;var Y=i(9063);class j{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const F=new s.OlP("basePath");class W{constructor(t={}){this.apiKeys=t.apiKeys,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.withCredentials=t.withCredentials,this.encoder=t.encoder}selectHeaderContentType(t){if(0===t.length)return;const e=t.find(t=>this.isJsonMime(t));return void 0===e?t[0]:e}selectHeaderAccept(t){if(0===t.length)return;const e=t.find(t=>this.isJsonMime(t));return void 0===e?t[0]:e}isJsonMime(t){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==t&&(e.test(t)||"application/json-patch+json"===t.toLowerCase())}}let U=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Y.WM,this.configuration=new W,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new j}convertAttributeToNonunique(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}convertAttributeToUnique(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("attribute",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteAttributeDefinitions(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let n=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("attributes[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllAttributeDefinitions(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAttribute(t,e,i,n,s,o,r,a,c,u,l,h="body",d=!1){let p=new Y.LE({encoder:this.encoder});null!=t&&(p=p.set("attributeName",t)),null!=e&&(p=p.set("attributeId",e)),null!=i&&(p=p.set("facility",i)),null!=n&&(p=p.set("user",n)),null!=s&&(p=p.set("vo",s)),null!=o&&(p=p.set("resource",o)),null!=r&&(p=p.set("member",r)),null!=a&&(p=p.set("group",a)),null!=c&&(p=p.set("host",c)),null!=u&&(p=p.set("userExtSource",u)),null!=l&&(p=p.set("key",l));let f=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(f=f.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(f=f.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;f=f.set("Authorization","Bearer "+t)}const g=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==g&&(f=f.set("Accept",g)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{params:p,withCredentials:this.configuration.withCredentials,headers:f,observe:h,reportProgress:d})}getAttributeDefinitionById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeDefinitionByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeDefinitionsByNamespace(t,e="body",i=!1){if(null==t)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("namespace",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeModulesDependenciesForAttributeGraphText(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("format",t)),null!=e&&(s=s.set("attrName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAttributeModulesDependenciesGraphText(t,e="body",i=!1){if(null==t)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("format",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributeRights(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAttributesDefinitionWithRights(t,e,i,n,s,o,r,a,c="body",u=!1){let l=new Y.LE({encoder:this.encoder});null!=t&&(l=l.set("member",t)),null!=e&&(l=l.set("user",e)),null!=i&&(l=l.set("vo",i)),null!=n&&(l=l.set("group",n)),null!=s&&(l=l.set("resource",s)),null!=o&&(l=l.set("facility",o)),null!=r&&(l=l.set("host",r)),null!=a&&(l=l.set("userExtSource",a));let h=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(h=h.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(h=h.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;h=h.set("Authorization","Bearer "+t)}const d=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==d&&(h=h.set("Accept",d)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{params:l,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:u})}getEntitylessAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("key",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getEntitylessAttributesByKey(t,e="body",i=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("key",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEntitylessAttributesByName(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("attrName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEntitylessAttributesWithKeys(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("attrName",t)),e&&e.forEach(t=>{s=s.append("keys[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getEntitylessKeys(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("attributeDefinition",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilityAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFacilityAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacilityResourceUserMemberAttributes(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==n)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("facility",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("user",i)),null!=n&&(r=r.set("member",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getFacilityUserAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupResourceAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getGroupResourceAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getGroupResourceAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getHostAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getHostAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getHostAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("host",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getHostAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getLogins(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getLogins.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberAndUserAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==e)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("workWithUserAttributes",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberAndUserAttributesByNames(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("workWithUserAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberGroupAndUserAttributesByNames(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attrNames[]",t)}),null!=n&&(r=r.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberGroupAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("attributeId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberGroupAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("attributeName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberGroupAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberGroupAttributesByNames(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberResourceAndUserFacilityAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("workWithUserAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberResourceAndUserFacilityAttributesByNames(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attrNames[]",t)}),null!=n&&(r=r.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getMemberResourceAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberResourceAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attributeName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberResourceAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("service",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesFacilityService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesFacilityServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let s=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("services[]",t)}),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesGroupResourceService(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("service",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("group",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getRequiredAttributesHostService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==e)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("host",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("workWithUserAttributes",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesMemberGroup(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("workWithUserAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getRequiredAttributesMemberGroupResourceService(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==n)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let a=new Y.LE({encoder:this.encoder});null!=t&&(a=a.set("service",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("group",i)),null!=n&&(a=a.set("member",n)),null!=s&&(a=a.set("workWithUserAttributes",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getRequiredAttributesMemberGroupService(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("member",i)),null!=n&&(r=r.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRequiredAttributesMemberResource(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("workWithUserAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getRequiredAttributesMemberResourceService(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("service",t)),null!=e&&(r=r.set("resource",e)),null!=i&&(r=r.set("member",i)),null!=n&&(r=r.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRequiredAttributesResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesResourceService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesResourceServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let s=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("services[]",t)}),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRequiredAttributesUserFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRequiredAttributesVoService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("service",t)),null!=e&&(s=s.set("vo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourceAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceGroupAndGroupAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==i)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("resource",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("workWithGroupAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getResourceGroupAndGroupAttributesByNames(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attrNames[]",t)}),null!=n&&(r=r.set("workWithGroupAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getResourceGroupAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceGroupMemberAttributesByNames(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==n)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),null!=e&&(r=r.set("group",e)),null!=i&&(r=r.set("member",i)),n&&n.forEach(t=>{r=r.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getUserAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserExtSourceAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserExtSourceAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserExtSourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("userExtSource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourceAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserFacilityAttributeById(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("attributeId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getUserFacilityAttributeByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("attributeName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getUserFacilityAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getVoAttributeById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("attributeId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getVoAttributeByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("attributeName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getVoAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeAttributesForFacilityResourceGroupUserMember(t,e,i,n,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==i)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==n)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let c=new Y.LE({encoder:this.encoder});null!=t&&(c=c.set("facility",t)),null!=e&&(c=c.set("resource",e)),null!=i&&(c=c.set("group",i)),null!=n&&(c=c.set("user",n)),null!=s&&(c=c.set("member",s)),o&&o.forEach(t=>{c=c.append("attributes[]",t)});let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}removeAttributesForFacilityResourceUserMember(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==i)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==n)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let a=new Y.LE({encoder:this.encoder});null!=t&&(a=a.set("facility",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("user",i)),null!=n&&(a=a.set("member",n)),s&&s.forEach(t=>{a=a.append("attributes[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}removeEntitylessAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("key",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeFacilityAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupResourceAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attribute",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeGroupResourceAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeGroupResourceAttributesWorkWithGroupAttributes(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)}),null!=n&&(r=r.set("workWithGroupAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeHostAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeHostAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("host",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeMemberAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeMemberAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeMemberAttributesWorkWithUserAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),e&&e.forEach(t=>{o=o.append("attributes[]",t)}),null!=i&&(o=o.set("workWithUserAttributes",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeMemberGroupAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("attribute",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeMemberGroupAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),i&&i.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeMemberGroupAttributesWorkWithUserAttributes(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("group",e)),i&&i.forEach(t=>{r=r.append("attributes[]",t)}),null!=n&&(r=r.set("workWithUserAttributes",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}removeMemberResourceAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("attribute",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeMemberResourceAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("resource",e)),i&&i.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeResourceAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeResourceAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUesAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserExtSourceAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("userExtSource",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserFacilityAttribute(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==i)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("attribute",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeUserFacilityAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==i)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("facility",e)),i&&i.forEach(t=>{o=o.append("attributes[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeVoAttribute(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==e)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("attribute",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeVoAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==e)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attributes[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}setAttributeRights(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAttributeRights was null or undefined when calling setAttributeRights.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setEntitylessAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityResourceGroupUserMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityResourceUserMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setFacilityUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setGroupResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setHostAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetHostAttribute was null or undefined when calling setHostAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setHostAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetHostAttributes was null or undefined when calling setHostAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberGroupWithUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAndUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setMemberWithUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setResourceGroupWithGroupAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserAttribute was null or undefined when calling setUserAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserAttributes was null or undefined when calling setUserAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserExtSourceAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserExtSourceAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserFacilityAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setUserFacilityAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setVoAttribute(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoAttribute was null or undefined when calling setVoAttribute.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setVoAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoAttributes was null or undefined when calling setVoAttributes.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateAttributeDefinition(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Y.eN),s.LFG(F,8),s.LFG(W,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),K=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Y.WM,this.configuration=new W,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new j}getAllPolicies(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllRolesManagementRules(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAuthzAdminGroups(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("role",t)),null!=e&&(o=o.set("complementaryObjectId",e)),null!=i&&(o=o.set("complementaryObjectName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getAuthzRichAdmins(t,e,i,n,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==e)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==i)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==n)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let c=new Y.LE({encoder:this.encoder});null!=t&&(c=c.set("role",t)),null!=e&&(c=c.set("complementaryObjectId",e)),null!=i&&(c=c.set("complementaryObjectName",i)),n&&n.forEach(t=>{c=c.append("specificAttributes",t)}),null!=s&&(c=c.set("allUserAttributes",s)),null!=o&&(c=c.set("onlyDirectAdmins",o));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}getFacilitiesWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let s=new Y.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupRoleNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupRoles(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("groupId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let s=new Y.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getLoggedUser(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getMembersWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let s=new Y.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getPerunPrincipal(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPrincipalRoleNames(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getResourcesWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let s=new Y.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSecurityTeamsWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let s=new Y.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserRoleNames(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserRoles(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("userId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosWhereUserIsInRoles(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let s=new Y.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),t&&t.forEach(t=>{s=s.append("roles[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}isFacilityAdmin(t,e="body",i=!1){let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("facility",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isGroupAdmin(t,e="body",i=!1){let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isPerunAdmin(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}isVoAdmin(t,e="body",i=!1){let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}keepAlive(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}loadAuthorizationComponents(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}setRoleWithGroupComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter setRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setRoleWithUserComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter setRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unsetRoleWithGroupComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter unsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unsetRoleWithUserComplementaryObject(t,e="body",i=!1){if(null==t)throw new Error("Required parameter unsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Y.eN),s.LFG(F,8),s.LFG(W,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Z=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Y.WM,this.configuration=new W,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new j}addMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling addMember.");let s=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("member",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addMembers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling addMembers.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("members[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}canExtendMembershipInGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createGroupUnion(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resultGroup",t)),null!=e&&(s=s.set("operandGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createGroupWithParentGroupNameDescription(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("parentGroup",t)),null!=e&&(o=o.set("name",e)),null!=i&&(o=o.set("description",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}createGroupWithVoNameDescription(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==e)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==i)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("name",e)),null!=i&&(o=o.set("description",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}deleteGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("force",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputDeleteGroups was null or undefined when calling deleteGroups.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/deleteGroups`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}extendMembershipInGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}forceAllSubGroupsSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}forceGroupStructureSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}forceGroupSynchronization(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllGroupsFromAllVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups/all`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllMemberGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllRichGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");let n=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("attrNames[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllRichGroupsWithAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAllRichSubGroupsWithGroupAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupByName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==e)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("name",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupByName`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupMemberById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==e)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("member",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupMembersCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupMembersCountsByGroupStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupMembersCountsByVoStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupRichMembersByIds(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==e)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("members[]",t)}),i&&i.forEach(t=>{o=o.append("attrNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getGroupUnions(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==e)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("reverseDirection",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupUnions`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupsByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let n=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedGroups was null or undefined when calling getGroupsPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getGroupsPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getIndirectMembershipPaths(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==e)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMemberGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberRichGroupsWithAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRichGroupByIdWithAttributesByNames(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("groupId",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSubgroupsPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getSubgroupsPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}isGroupMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==e)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isGroupMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}moveGroupWithDestinationGroupMovingGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let s=new Y.LE({encoder:this.encoder});null!=e&&(s=s.set("destinationGroup",e)),null!=t&&(s=s.set("movingGroup",t));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupUnion(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==e)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resultGroup",t)),null!=e&&(s=s.set("operandGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMember.");let s=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("member",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeMembers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==e)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("members[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}setGroupsMemberStatus(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==e)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==i)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("group",e)),null!=i&&(o=o.set("status",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}updateGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateGroup was null or undefined when calling updateGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/updateGroup`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Y.eN),s.LFG(F,8),s.LFG(W,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),G=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Y.WM,this.configuration=new W,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new j}canExtendMembership(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/canExtendMembership`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createMemberForCandidate(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/c`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createMemberForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberForUser was null or undefined when calling createMemberForUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/u`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createMemberFromExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/extSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSpecificMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSpecificMember was null or undefined when calling createSpecificMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSpecificMember`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMember1 was null or undefined when calling createSponsoredMembers.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createSponsoredMembersFromCSV(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let n=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("members[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}extendMembership(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findCompleteRichMembersByAttributes(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let o=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("attrsNames[]",t)}),null!=e&&(o=o.set("searchString",e)),i&&i.forEach(t=>{o=o.append("allowedStatuses[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}findCompleteRichMembersForGroup(t,e,i,n,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==n)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let c=new Y.LE({encoder:this.encoder});null!=t&&(c=c.set("group",t)),e&&e.forEach(t=>{c=c.append("attrsNames[]",t)}),s&&s.forEach(t=>{c=c.append("allowedStatuses[]",t)}),o&&o.forEach(t=>{c=c.append("allowedGroupStatuses[]",t)}),null!=i&&(c=c.set("searchString",i)),null!=n&&(c=c.set("lookingInParentGroup",n));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}findCompleteRichMembersForVo(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("attrsNames[]",t)}),n&&n.forEach(t=>{r=r.append("allowedStatuses[]",t)}),null!=i&&(r=r.set("searchString",i));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}findMembersInVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("searchString",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findMembersInVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}findSponsoredCompleteRichMembersForVo(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==n)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("attrsNames[]",t)}),null!=i&&(r=r.set("searchString",i)),null!=n&&(r=r.set("onlySponsored",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getAllMembers(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllMembers`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllNamespacesRules(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getAllSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllSponsoredMembersAndTheirSponsors(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getCompleteRichMembersForGroup(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==e)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let a=new Y.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),i&&i.forEach(t=>{a=a.append("allowedStatuses[]",t)}),n&&n.forEach(t=>{a=a.append("allowedGroupStatuses[]",t)}),null!=e&&(a=a.set("lookingInParentGroup",e)),s&&s.forEach(t=>{a=a.append("attrsNames[]",t)});let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getCompleteRichMembersForGroupResource(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==i)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==n)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),null!=e&&(r=r.set("resource",e)),i&&i.forEach(t=>{r=r.append("attrsNames[]",t)}),n&&n.forEach(t=>{r=r.append("allowedStatuses[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getCompleteRichMembersForVo(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("allowedStatuses[]",t)}),i&&i.forEach(t=>{o=o.append("attrsNames[]",t)});let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberByExtSourceNameAndExtLogin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==i)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("extLogin",e)),null!=i&&(o=o.set("extSourceName",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMemberById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMemberByUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByUser`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMembers(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("status",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembers`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getMembersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let n=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMembersByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMembersCount(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getMembersPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedMembers was null or undefined when calling getMembersPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/getMembersPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getMembersWithStatusCount(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==e)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("status",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount/status`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getRichMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichMemberWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichMembersByIds(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let s=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("ids[]",t)}),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSponsoredMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getSponsoredMembersAndTheirSponsors(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSponsorsByMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/member`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSponsorsByVo(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("extSourceName",e)),null!=i&&(r=r.set("extLogin",i)),n&&n.forEach(t=>{r=r.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/vo`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}moveMembership(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==e)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==i)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("sourceUser",e)),null!=i&&(o=o.set("targetUser",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}removeSponsor(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("sponsor",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}sendAccountActivationLinkEmail(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==n)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("member",t)),null!=e&&(r=r.set("namespace",e)),null!=i&&(r=r.set("emailAttributeURN",i)),null!=n&&(r=r.set("language",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}sendPasswordResetLinkEmail(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==i)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==n)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let a=new Y.LE({encoder:this.encoder});null!=t&&(a=a.set("member",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("emailAttributeURN",i)),null!=n&&(a=a.set("language",n)),null!=s&&(a=a.set("baseUrl",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}setSponsoredMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/setSponsoredMember`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setSponsorshipForMember(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("sponsoredMember",t)),null!=e&&(o=o.set("sponsor",e)),null!=i&&(o=o.set("validityTo",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}setStatus(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==e)throw new Error("Required parameter status was null or undefined when calling setStatus.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("status",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}sponsorMember(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("sponsor",e)),null!=i&&(o=o.set("validityTo",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}updateSponsorshipValidity(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==e)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("member",t)),null!=e&&(o=o.set("sponsor",e)),null!=i&&(o=o.set("validityTo",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}validateMemberAsync(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Y.eN),s.LFG(F,8),s.LFG(W,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),X=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Y.WM,this.configuration=new W,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new j}sentMessageToRTWithMemberQueue(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("memberId",t)),null!=e&&(r=r.set("queue",e)),null!=i&&(r=r.set("subject",i)),null!=n&&(r=r.set("text",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}sentMessageToRTWithQueue(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("queue",t)),null!=e&&(o=o.set("subject",e)),null!=i&&(o=o.set("text",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}sentMessageToRTWithVo(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==e)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("voId",t)),null!=e&&(o=o.set("subject",e)),null!=i&&(o=o.set("text",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}sentMessageToRTWithVoQueue(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==i)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("voId",t)),null!=e&&(r=r.set("queue",e)),null!=i&&(r=r.set("subject",i)),null!=n&&(r=r.set("text",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Y.eN),s.LFG(F,8),s.LFG(W,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),V=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Y.WM,this.configuration=new W,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new j}addApplicationMailForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addApplicationMailForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}addGroupsToAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let n=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("groups[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}approveApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}checkForSimilarUsersWithAuthInfo(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}consolidateIdentityUsingToken(t,e="body",i=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("token",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}copyFormFromGroupToGroup(t,e,i="body",n=!1){let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyFormFromGroupToVo(t,e,i="body",n=!1){let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toVo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyFormFromVoToGroup(t,e,i="body",n=!1){let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyFormFromVoToVo(t,e,i="body",n=!1){let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toVo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyMailsFromGroupToGroup(t,e,i="body",n=!1){let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyMailsFromGroupToVo(t,e,i="body",n=!1){let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("fromGroup",t)),null!=e&&(s=s.set("toVo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyMailsFromVoToGroup(t,e,i="body",n=!1){let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyMailsFromVoToVo(t,e,i="body",n=!1){let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("fromVo",t)),null!=e&&(s=s.set("toVo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createApplicationFormInGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}createApplicationFormInVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteApplicationMailForGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("id",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteApplicationMailForVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("id",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteGroupsFromAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let n=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("groups[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationDataById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationMailsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationMailsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getApplicationsForGroup(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("group",t)),e&&e.forEach(t=>{r=r.append("state[]",t)}),null!=i&&(r=r.set("dateFrom",i)),null!=n&&(r=r.set("dateTo",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getApplicationsForMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getApplicationsForVo(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),e&&e.forEach(t=>{r=r.append("state[]",t)}),null!=i&&(r=r.set("dateFrom",i)),null!=n&&(r=r.set("dateTo",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getConsolidatorToken(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getFormItemsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFormItemsForGroupWithType(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("type",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFormItemsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getFormItemsForVoWithType(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("type",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupApplicationForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsToAutoRegistration(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoApplicationForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}rejectApplication(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t)),null!=e&&(s=s.set("reason",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}sendInvitation(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let r=new Y.LE({encoder:this.encoder});null!=i&&(r=r.set("voId",i)),null!=n&&(r=r.set("name",n)),null!=t&&(r=r.set("email",t)),null!=e&&(r=r.set("language",e));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}sendInvitationForGroup(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==e)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let a=new Y.LE({encoder:this.encoder});null!=i&&(a=a.set("voId",i)),null!=n&&(a=a.set("groupId",n)),null!=s&&(a=a.set("name",s)),null!=t&&(a=a.set("email",t)),null!=e&&(a=a.set("language",e));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}sendInvitationGroupToExistingUser(t,e,i,n="body",s=!1){let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("userId",t)),null!=e&&(o=o.set("voId",e)),null!=i&&(o=o.set("groupId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}sendInvitationToExistingUser(t,e,i="body",n=!1){let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("userId",t)),null!=e&&(s=s.set("voId",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}sendMessage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSendMessage was null or undefined when calling sendMessage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}setSendingEnabled(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}submitApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSubmitApplication was null or undefined when calling submitApplication.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateApplicationMail(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateForm(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateForm was null or undefined when calling updateForm.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemData(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputFormItemData was null or undefined when calling updateFormItemData.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsData(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputFormItemData1 was null or undefined when calling updateFormItemsData.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsForGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateFormItemsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}verifyApplication(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Y.eN),s.LFG(F,8),s.LFG(W,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Y.WM,this.configuration=new W,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new j}activateGroupResourceAssignment(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),null!=e&&(o=o.set("resource",e)),null!=i&&(o=o.set("async",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}addAdminToGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addAdminToUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addResourceSelfServiceGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addResourceSelfServiceUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}allowGroupsToResources(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");let o=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{o=o.append("groups[]",t)}),e&&e.forEach(t=>{o=o.append("resources[]",t)}),null!=i&&(o=o.set("async",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}assignGroupToResource(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let a=new Y.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("async",i)),null!=n&&(a=a.set("assignInactive",n)),null!=s&&(a=a.set("autoAssignSubgroups",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}assignGroupToResources(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let a=new Y.LE({encoder:this.encoder});null!=t&&(a=a.set("group",t)),e&&e.forEach(t=>{a=a.append("resources[]",t)}),null!=i&&(a=a.set("async",i)),null!=n&&(a=a.set("assignInactive",n)),null!=s&&(a=a.set("autoAssignSubgroups",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}assignGroupsToResource(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let a=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{a=a.append("groups[]",t)}),null!=e&&(a=a.set("resource",e)),null!=i&&(a=a.set("async",i)),null!=n&&(a=a.set("assignInactive",n)),null!=s&&(a=a.set("autoAssignSubgroups",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}assignResourceTagToResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}assignService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling assignService.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}assignServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling assignServices.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("services[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}assignServicesPackage(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("servicesPackage",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}copyResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCopyResource was null or undefined when calling copyResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/copyResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createResource(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==i)throw new Error("Required parameter name was null or undefined when calling createResource.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("facility",e)),null!=i&&(r=r.set("name",i)),null!=n&&(r=r.set("description",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}createResourceTagWithResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}createResourceTagWithTagName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("tagName",t)),null!=e&&(s=s.set("vo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deactivateGroupResourceAssignment(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteAllResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteAllResourcesTagsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}deleteResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAdminGroups(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAdmins(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==e)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("onlyDirectAdmins",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdmins`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAllResourcesByResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getAllResourcesTagsForResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllResourcesTagsForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllResourcesWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAllowedUsersOfResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedGroups(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("member",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAssignedMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedMembersWithStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembersWithStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesWithGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesWithMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedResourcesWithStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResourcesWithStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichMembers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesWithGroup(t,e="body",i=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("group",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesWithMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesWithMemberService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAssignedServicesToResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getBansForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getBansForResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForResource`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getEnrichedResourceById(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("id",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getEnrichedResourcesForFacility(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("facility",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getEnrichedResourcesForVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getFacility(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getFacility`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupAssignments(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceAssignments(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceBan(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBan`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourceBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBanById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourceByName(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==i)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("facility",e)),null!=i&&(o=o.set("name",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceByName`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResources.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let n=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourcesCountForAll(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getResourcesCountForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getResourcesFromVoWhereUserIsAdmin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getResourcesWhereGroupIsAdmin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==i)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("group",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getResourcesWhereUserIsAdmin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==i)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("facility",t)),null!=e&&(o=o.set("vo",e)),null!=i&&(o=o.set("user",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getRichAdmins(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==e)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==i)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==n)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("resource",t)),e&&e.forEach(t=>{r=r.append("specificAttributes",t)}),null!=i&&(r=r.set("allUserAttributes",i)),null!=n&&(r=r.set("onlyDirectAdmins",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getRichResourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichResources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichResourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let n=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling getVo.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getVo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeAllResourceTagsFromResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("resource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeBanByMemberAndResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupAdminResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupFromResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupFromResources(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),e&&e.forEach(t=>{s=s.append("resources[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeGroupsFromResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let s=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeResourceBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeResourceSelfServiceGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==e)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("group",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeResourceSelfServiceUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeResourceTagFromResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}removeService(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==e)throw new Error("Required parameter service was null or undefined when calling removeService.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("service",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeServices(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==e)throw new Error("Required parameter services was null or undefined when calling removeServices.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),e&&e.forEach(t=>{s=s.append("services[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeServicesPackage(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==e)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("servicesPackage",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserAdminResource(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("resource",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}setResourceBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetBan was null or undefined when calling setResourceBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}unallowGroupsFromResources(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==e)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let s=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{s=s.append("groups[]",t)}),e&&e.forEach(t=>{s=s.append("resources[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}updateResource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateResource was null or undefined when calling updateResource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateResourceBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateBan was null or undefined when calling updateResourceBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateResourceTag(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateResourceTag was null or undefined when calling updateResourceTag.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Y.eN),s.LFG(F,8),s.LFG(W,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),J=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Y.WM,this.configuration=new W,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new j}addSpecificUserOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("specificUser",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addUserExtSource(t,e="body",i=!1){if(null==t)throw new Error("Required parameter addUserExtSourceInput was null or undefined when calling addUserExtSource.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}anonymizeUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}changeNonAuthzPasswordByToken(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==e)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("token",t)),null!=e&&(o=o.set("password",e)),null!=i&&(o=o.set("lang",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changeNonAuthzPassword/token`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}changePasswordForLogin(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");let a=new Y.LE({encoder:this.encoder});null!=t&&(a=a.set("login",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("newPassword",i)),null!=n&&(a=a.set("oldPassword",n)),null!=s&&(a=a.set("checkOldPassword",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/login`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}changePasswordForUser(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==i)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");let a=new Y.LE({encoder:this.encoder});null!=t&&(a=a.set("user",t)),null!=e&&(a=a.set("namespace",e)),null!=i&&(a=a.set("newPassword",i)),null!=n&&(a=a.set("oldPassword",n)),null!=s&&(a=a.set("checkOldPassword",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/user`,null,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}checkPasswordResetRequestByTokenIsValid(t,e="body",i=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("token",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}checkPasswordStrength(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("password",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createAlternativePassword(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==e)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==i)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==n)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),null!=e&&(r=r.set("description",e)),null!=i&&(r=r.set("loginNamespace",i)),null!=n&&(r=r.set("password",n));let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/createAlternativePassword`,null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}createServiceUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateServiceUser was null or undefined when calling createServiceUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteAlternativePassword(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==i)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("loginNamespace",e)),null!=i&&(o=o.set("passwordId",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}deletePasswordForLogin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("login",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deletePasswordForUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}deleteUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("force",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}findRichUsers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}findRichUsersWithAttributes(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("searchString",t)),e&&e.forEach(t=>{s=s.append("attrsNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}findUsers(t,e="body",i=!1){if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("searchString",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}generateAccountForName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("namespace",t)),null!=e&&(s=s.set("name",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAllRichUsersWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("includedSpecificUsers",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getAssignedRichResourcesForUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getGroupsForFacilityWhereUserIsActive(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==e)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("facility",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupsForResourceWhereUserIsActive(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("resource",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupsInVoWhereUserIsAdmin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("vo",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getGroupsWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getPendingPreferredEmailChanges(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUserExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUserWithAttributes(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUsersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let n=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUsersWithAttributesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let n=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getRichUsersWithoutVoWithAttributes(t,e="body",i=!1){let n=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("attrsNames[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getSpecificUsersByUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getSponsorsForMember(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("member",t)),e&&e.forEach(t=>{s=s.append("attrNames[]",t)});let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getSponsorsForMemberByVoAndLogin(t,e,i,n,s="body",o=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let r=new Y.LE({encoder:this.encoder});null!=t&&(r=r.set("vo",t)),null!=e&&(r=r.set("extSourceName",e)),null!=i&&(r=r.set("extLogin",i)),n&&n.forEach(t=>{r=r.append("attrNames[]",t)});let a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+t)}const c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(a=a.set("Accept",c)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:o})}getUserByExtSourceNameAndExtLogin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("extLogin",t)),null!=e&&(s=s.set("extSourceName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getUserById.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourceById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("userExtSource",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourceByUniqueAttributeValueAndAttributeId(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeId",t)),null!=e&&(s=s.set("attributeValue",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserExtSourceByUniqueAttributeValueAndAttributeName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==e)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("attributeName",t)),null!=e&&(s=s.set("attributeValue",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getUserExtSources(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUserExtSourcesByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let n=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUsers(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getUsersByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let n=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUsersBySpecificUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("specificUser",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getUsersPage(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputGetPaginatedUsers was null or undefined when calling getUsersPage.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}getVosWhereUserIsAdmin(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosWhereUserIsMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("user",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}isLoginAvailable(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==e)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("loginNamespace",t)),null!=e&&(s=s.set("login",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}loginExist(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeSpecificUserOwner(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("specificUser",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeUserExtSource(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("userExtSource",e)),null!=i&&(o=o.set("force",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}requestPreferredEmailChange(t,e,i,n,s,o,r="body",a=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==e)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let c=new Y.LE({encoder:this.encoder});null!=t&&(c=c.set("user",t)),null!=e&&(c=c.set("email",e)),null!=i&&(c=c.set("lang",i)),null!=n&&(c=c.set("linkPath",n)),null!=s&&(c=c.set("customUrl",s)),null!=o&&(c=c.set("idpFilter",o));let u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+t)}const l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(u=u.set("Accept",l)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:r,reportProgress:a})}reservePasswordForLogin(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("login",t)),null!=e&&(o=o.set("namespace",e)),null!=i&&(o=o.set("password",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/login`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}reservePasswordForUser(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==i)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("user",t)),null!=e&&(o=o.set("namespace",e)),null!=i&&(o=o.set("password",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/user`,null,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}reserveRandomPassword(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}updateUser(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateUser was null or undefined when calling updateUser.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}validatePasswordForLogin(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("login",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}validatePasswordForUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==e)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("user",t)),null!=e&&(s=s.set("namespace",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}validatePreferredEmailChangeWithToken(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==e)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("token",t)),null!=e&&(s=s.set("u",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Y.eN),s.LFG(F,8),s.LFG(W,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Q=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Y.WM,this.configuration=new W,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new j}getAppsConfig(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getGuiConfiguration(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunRPCVersion(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["text/plain"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunStatistics(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunStatus(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getPerunSystemTimeInMillis(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Y.eN),s.LFG(F,8),s.LFG(W,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),tt=(()=>{class t{constructor(t,e,i){this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new Y.WM,this.configuration=new W,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof e&&(e=this.basePath),this.configuration.basePath=e),this.encoder=this.configuration.encoder||new j}addSponsorRoleToGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addSponsorRoleToUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addVoAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}addVoAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createVoWithName(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==e)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("name",t)),null!=e&&(s=s.set("shortName",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}createVoWithVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputCreateVoWithVo was null or undefined when calling createVoWithVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/createVo/withVo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}deleteVo(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("force",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}findCandidates(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("id",t)),null!=e&&(o=o.set("searchString",e)),null!=i&&(o=o.set("maxNumOfResults",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}findCandidatesForGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("group",t)),null!=e&&(s=s.set("searchString",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getAllVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAllVos`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getCompleteCandidatesForGroup(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("group",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("searchString",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getCompleteCandidatesForVo(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==i)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),e&&e.forEach(t=>{o=o.append("attrNames[]",t)}),null!=i&&(o=o.set("searchString",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getMyVos(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVos`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}getRichAdminsForVo(t,e,i,n,s,o="body",r=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==i)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==n)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==s)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let a=new Y.LE({encoder:this.encoder});null!=t&&(a=a.set("vo",t)),null!=e&&(a=a.set("role",e)),i&&i.forEach(t=>{a=a.append("specificAttributes",t)}),null!=n&&(a=a.set("allUserAttributes",n)),null!=s&&(a=a.set("onlyDirectAdmins",s));let c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+t)}const u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(c=c.set("Accept",u)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getRichAdmins`,{params:a,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:r})}getVoAdminGroups(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("role",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdminGroups`,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}getVoAdminUsers(t,e,i,n="body",s=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==e)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==i)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");let o=new Y.LE({encoder:this.encoder});null!=t&&(o=o.set("vo",t)),null!=e&&(o=o.set("role",e)),null!=i&&(o=o.set("onlyDirectAdmins",i));let r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+t)}const a=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==a&&(r=r.set("Accept",a)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdmins`,{params:o,withCredentials:this.configuration.withCredentials,headers:r,observe:n,reportProgress:s})}getVoBanById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoBanForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanForMember`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoBansForVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBansForVo`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoById(t,e="body",i=!1){if(null==t)throw new Error("Required parameter id was null or undefined when calling getVoById.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("id",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoById`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoByShortName(t,e="body",i=!1){let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("shortName",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoByShortName`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVoMembersCountsByStatus(t,e="body",i=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("vo",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosByIds(t,e="body",i=!1){if(null==t)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let n=new Y.LE({encoder:this.encoder});t&&t.forEach(t=>{n=n.append("ids[]",t)});let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosByIds`,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}getVosCount(t="body",e=!1){let i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+t)}const n=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==n&&(i=i.set("Accept",n)),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosCount`,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:e})}removeSponsorRoleFromGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeSponsorRoleFromUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeVoAdminGroup(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==e)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("authorizedGroup",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeVoAdminUser(t,e,i="body",n=!1){if(null==t)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==e)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let s=new Y.LE({encoder:this.encoder});null!=t&&(s=s.set("vo",t)),null!=e&&(s=s.set("user",e));let o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+t)}const r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(o=o.set("Accept",r)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`,null,{params:s,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:n})}removeVoBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("banId",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}removeVoBanForMember(t,e="body",i=!1){if(null==t)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let n=new Y.LE({encoder:this.encoder});null!=t&&(n=n.set("member",t));let s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+t)}const o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(s=s.set("Accept",o)),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`,null,{params:n,withCredentials:this.configuration.withCredentials,headers:s,observe:e,reportProgress:i})}setVoBan(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputSetVoBan was null or undefined when calling setVoBan.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/setBan`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}updateVo(t,e="body",i=!1){if(null==t)throw new Error("Required parameter inputUpdateVo was null or undefined when calling updateVo.");let n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){const t="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+t)}const s=this.configuration.selectHeaderAccept(["application/json"]);void 0!==s&&(n=n.set("Accept",s));const o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(n=n.set("Content-Type",o)),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/updateVo`,t,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:i})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Y.eN),s.LFG(F,8),s.LFG(W,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var et,it,nt,st;!function(t){t.HiddenEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"},t.DisabledEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"}}(et||(et={})),function(t){t.FormatEnum={DOT:"DOT",TGF:"TGF"}}(it||(it={})),function(t){t.OwnerTypeEnum={NUMBER_0:0,NUMBER_1:1}}(nt||(nt={})),function(t){t.TypeEnum={Technical:"technical",Administrative:"administrative"}}(st||(st={}));var ot=function(t){return t.PERUNADMIN="PERUNADMIN",t.PERUNOBSERVER="PERUNOBSERVER",t.VOADMIN="VOADMIN",t.GROUPADMIN="GROUPADMIN",t.SELF="SELF",t.FACILITYADMIN="FACILITYADMIN",t.FACILITIYOBSERVER="FACILITYOBSERVER",t.RESOURCEADMIN="RESOURCEADMIN",t.RESOURCESELFSERVICE="RESOURCESELFSERVICE",t.REGISTRAR="REGISTRAR",t.ENGINE="ENGINE",t.RPC="RPC",t.NOTIFICATIONS="NOTIFICATIONS",t.SERVICEUSER="SERVICEUSER",t.SPONSOR="SPONSOR",t.VOOBSERVER="VOOBSERVER",t.TOPGROUPCREATOR="TOPGROUPCREATOR",t.SECURITYADMIN="SECURITYADMIN",t.CABINETADMIN="CABINETADMIN",t.UNKNOWNROLENAME="UNKNOWNROLENAME",t}({});let rt=(()=>{class t{constructor(t){this.authzSevice=t,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(t){this.principal=t,this.initData(t)}setPerunPolicies(t){this.perunPolicies=t}getPerunPolicies(){return this.perunPolicies}isAuthorized(t,e){if(null===this.principal.roles)return!1;const i=this.fetchPolicyWithAllIncludedPolicies(t);let n=[];for(const o of i)n=n.concat(o.perunRoles);const s=this.fetchAllRelatedObjects(e);return this.resolveAuthorization(n,s)}resolveAuthorization(t,e){for(const i of t){let t=!0;for(const n of Object.keys(i)){const s=i[n];if(null===s)this.principalRoles.has(n)||(t=!1);else if(e[s]){for(const i of e[s])if(!this.principalHasRole(n,s,i)){t=!1;break}}else t=!1;if(!t)break}if(t)return!0}return!1}fetchAllRelatedObjects(t){const e={};for(const i of t){let t=i.beanName;switch(i.beanName.startsWith("Rich")&&(t=i.beanName.substring(4)),e[t]?e[t].push(i.id):e[t]=[i.id],t){case"Member":e.User?e.User.push(i.userId):e.User=[i.userId],e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"Group":e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"Resource":e.Facility?e.Facility.push(i.facilityId):e.Facility=[i.facilityId],e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId];break;case"ResourceTag":e.Vo?e.Vo.push(i.voId):e.Vo=[i.voId]}}return e}principalHasRole(t,e,i){let n=e;return e.startsWith("Rich")&&(n=e.substring(4)),!(!this.principal.roles[t]||!this.principal.roles[t][n])&&this.principal.roles[t][n].includes(Number(i.toString()))}fetchPolicyWithAllIncludedPolicies(t){const e=new Map;let i=[];for(i.push(t);0!==i.length;){const n=i.shift();if(e.has(n)){console.log("Policy {} creates a cycle in the included policies of the policy {}",n,t);continue}const s=this.getPerunPolicy(n);if(!s)return[];e.set(n,s),i=i.concat(s.includePolicies)}const n=[];for(const s of e.values())n.push(s);return n}getPerunPolicy(t){for(const e of this.perunPolicies)if(e.policyName===t)return e;return console.log("policy with name"+t+"was not found"),null}canManageFacilities(){return this.hasAtLeastOne(ot.PERUNADMIN,ot.PERUNOBSERVER,ot.FACILITYADMIN,ot.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(ot.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(ot.PERUNADMIN,ot.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(ot.PERUNADMIN,ot.VOADMIN)}isThisVoAdminOrObserver(t){return this.editableVos.includes(Number(t.toString()))||this.observableVos.includes(Number(t.toString()))||this.hasAtLeastOne(ot.PERUNADMIN,ot.PERUNOBSERVER)}isThisVoAdmin(t){return this.editableVos.includes(t)||this.principalRoles.has(ot.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(ot.PERUNADMIN,ot.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(ot.SPONSOR)}isThisGroupAdmin(t){return this.editableGroups.includes(t)||this.principalRoles.has(ot.PERUNADMIN)}isGroupAdminInThisVo(t){return this.hasGroupInTheseVos.includes(t)}isFacilityAdmin(){return this.hasAtLeastOne(ot.PERUNADMIN,ot.FACILITYADMIN)}isThisFacilityAdmin(t){return this.editableFacilities.includes(t)||this.principalRoles.has(ot.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(ot.PERUNADMIN,ot.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(ot.PERUNADMIN,ot.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(ot.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(ot.PERUNADMIN,ot.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(ot.PERUNADMIN,ot.VOOBSERVER,ot.PERUNOBSERVER)}isThisVoObserver(t){return this.hasAtLeastOne(ot.PERUNADMIN,ot.PERUNOBSERVER)||this.observableVos.includes(t)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((t,e)=>{this.authzSevice.getAllRolesManagementRules().subscribe(e=>{this.allRolesManagementRules=e,t()},t=>e(t))})}assignAvailableRoles(t,e){this.allRolesManagementRules.forEach(i=>{i.primaryObject===e&&t.push(i.roleName)}),t.sort(),"Vo"===e&&this.voCustomSort(t)}isManagerPagePrivileged(t){const e=[];let i=t.beanName;i.startsWith("Rich")&&(i=i.substr(4)),this.assignAvailableRoles(e,i);const n=new Map;this.getRolesAuthorization(e,t,n);for(const s of n.values())if(s.readAuth||s.manageAuth)return!0;return!1}getRolesAuthorization(t,e,i){for(const n of t){let t=[],s=[],o=[];for(const e of this.allRolesManagementRules)if(e.roleName===n){t=t.concat(e.privilegedRolesToRead),s=s.concat(e.privilegedRolesToManage);for(const t of Object.keys(e.entitiesToManage))o="User"===t?[t].concat(o):o.concat(t);break}const r=this.fetchAllRelatedObjects([e]),a=this.resolveAuthorization(t,r),c=this.resolveAuthorization(s,r);i.set(n,{readAuth:a,manageAuth:c,modes:o})}}voCustomSort(t){for(let e=0;e{let i;try{i=t()}catch(n){return void e.error(n)}return(i?(0,ct.D)(i):(0,bt.c)()).subscribe(e)})}var wt=i(2875),At=i(9996),Mt=i(4689),vt=i(611),Tt=i(6163);function kt(...t){const e=t[t.length-1];return(0,Tt.K)(e)?(t.pop(),i=>_t(t,i,e)):e=>_t(t,e)}var Lt=i(6673);function Ct(t,e){let i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new St(t,e,i))}}class St{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new Et(t,this.accumulator,this.seed,this.hasSeed))}}class Et extends Lt.L{constructor(t,e,i,n){super(t),this.accumulator=e,this._seed=i,this.hasSeed=n,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(n){this.destination.error(n)}this.seed=i,this.destination.next(i)}}var zt=i(7727),xt=i(436),Ot=i(8402);function Rt(t){return function(e){return 0===t?(0,bt.c)():e.lift(new Dt(t))}}class Dt{constructor(t){if(this.total=t,this.total<0)throw new Ot.W}call(t,e){return e.subscribe(new Pt(t,this.total))}}class Pt extends Lt.L{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,n=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,n=this.ring;for(let s=0;se.lift(new Ut(t))}class Ut{constructor(t){this.callback=t}call(t,e){return e.subscribe(new Kt(t,this.callback))}}class Kt extends Lt.L{constructor(t,e){super(t),this.add(new Ft.w(e))}}class Zt{constructor(t,e){this.id=t,this.url=e}}class Gt extends Zt{constructor(t,e,i="imperative",n=null){super(t,e),this.navigationTrigger=i,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Xt extends Zt{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Vt extends Zt{constructor(t,e,i){super(t,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class $t extends Zt{constructor(t,e,i){super(t,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Jt extends Zt{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Qt extends Zt{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class te extends Zt{constructor(t,e,i,n,s){super(t,e),this.urlAfterRedirects=i,this.state=n,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ee extends Zt{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ie extends Zt{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ne{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class se{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class oe{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class re{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ae{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ce{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ue{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class le{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function he(t){return new le(t)}function de(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function pe(t,e,i){const n=i.path.split("/");if(n.length>t.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.lengthn[e]===t)}return t===e}function me(t){return Array.prototype.concat.apply([],t)}function _e(t){return t.length>0?t[t.length-1]:null}function be(t,e){for(const i in t)t.hasOwnProperty(i)&&e(t[i],i)}function ye(t){return(0,s.CqO)(t)?t:(0,s.QGY)(t)?(0,ct.D)(Promise.resolve(t)):(0,ut.of)(t)}const we={exact:function t(e,i,n){if(!Ee(e.segments,i.segments))return!1;if(!ke(e.segments,i.segments,n))return!1;if(e.numberOfChildren!==i.numberOfChildren)return!1;for(const s in i.children){if(!e.children[s])return!1;if(!t(e.children[s],i.children[s],n))return!1}return!0},subset:ve},Ae={exact:function(t,e){return fe(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>ge(t[i],e[i]))},ignored:()=>!0};function Me(t,e,i){return we[i.paths](t.root,e.root,i.matrixParams)&&Ae[i.queryParams](t.queryParams,e.queryParams)&&!("exact"===i.fragment&&t.fragment!==e.fragment)}function ve(t,e,i){return Te(t,e,e.segments,i)}function Te(t,e,i,n){if(t.segments.length>i.length){const s=t.segments.slice(0,i.length);return!!Ee(s,i)&&!e.hasChildren()&&!!ke(s,i,n)}if(t.segments.length===i.length){if(!Ee(t.segments,i))return!1;if(!ke(t.segments,i,n))return!1;for(const i in e.children){if(!t.children[i])return!1;if(!ve(t.children[i],e.children[i],n))return!1}return!0}{const s=i.slice(0,t.segments.length),o=i.slice(t.segments.length);return!!Ee(t.segments,s)&&!!ke(t.segments,s,n)&&!!t.children.primary&&Te(t.children.primary,e,o,n)}}function ke(t,e,i){return e.every((e,n)=>Ae[i](t[n].parameters,e.parameters))}class Le{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=he(this.queryParams)),this._queryParamMap}toString(){return Oe.serialize(this)}}class Ce{constructor(t,e){this.segments=t,this.children=e,this.parent=null,be(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Re(this)}}class Se{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=he(this.parameters)),this._parameterMap}toString(){return He(this)}}function Ee(t,e){return t.length===e.length&&t.every((t,i)=>t.path===e[i].path)}class ze{}class xe{parse(t){const e=new Ue(t);return new Le(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${De(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(t=>`${Ne(e)}=${Ne(t)}`).join("&"):`${Ne(e)}=${Ne(i)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const Oe=new xe;function Re(t){return t.segments.map(t=>He(t)).join("/")}function De(t,e){if(!t.hasChildren())return Re(t);if(e){const e=t.children.primary?De(t.children.primary,!1):"",i=[];return be(t.children,(t,e)=>{"primary"!==e&&i.push(`${e}:${De(t,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function(t,e){let i=[];return be(t.children,(t,n)=>{"primary"===n&&(i=i.concat(e(t,n)))}),be(t.children,(t,n)=>{"primary"!==n&&(i=i.concat(e(t,n)))}),i}(t,(e,i)=>"primary"===i?[De(t.children.primary,!1)]:[`${i}:${De(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${Re(t)}/${e[0]}`:`${Re(t)}/(${e.join("//")})`}}function Pe(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ne(t){return Pe(t).replace(/%3B/gi,";")}function Ie(t){return Pe(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function qe(t){return decodeURIComponent(t)}function Be(t){return qe(t.replace(/\+/g,"%20"))}function He(t){return`${Ie(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Ie(t)}=${Ie(e[t])}`).join("")}`;var e}const Ye=/^[^\/()?;=#]+/;function je(t){const e=t.match(Ye);return e?e[0]:""}const Fe=/^[^=?&#]+/,We=/^[^?&#]+/;class Ue{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ce([],{}):new Ce([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new Ce(t,e)),i}parseSegment(){const t=je(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Se(qe(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=je(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=je(this.remaining);t&&(i=t,this.capture(i))}t[qe(e)]=qe(i)}parseQueryParam(t){const e=function(t){const e=t.match(Fe);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(We);return e?e[0]:""}(this.remaining);t&&(i=t,this.capture(i))}const n=Be(e),s=Be(i);if(t.hasOwnProperty(n)){let e=t[n];Array.isArray(e)||(e=[e],t[n]=e),e.push(s)}else t[n]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=je(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error(`Cannot parse url '${this.url}'`);let s;i.indexOf(":")>-1?(s=i.substr(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s="primary");const o=this.parseChildren();e[s]=1===Object.keys(o).length?o.primary:new Ce([],o),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Ke{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Ze(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Ze(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Ge(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Ge(t,this._root).map(t=>t.value)}}function Ze(t,e){if(t===e.value)return e;for(const i of e.children){const e=Ze(t,i);if(e)return e}return null}function Ge(t,e){if(t===e.value)return[e];for(const i of e.children){const n=Ge(t,i);if(n.length)return n.unshift(e),n}return[]}class Xe{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Ve(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class $e extends Ke{constructor(t,e){super(t),this.snapshot=e,ni(this,t)}toString(){return this.snapshot.toString()}}function Je(t,e){const i=function(t,e){const i=new ei([],{},{},"",{},"primary",e,null,t.root,-1,{});return new ii("",new Xe(i,[]))}(t,e),n=new dt([new Se("",{})]),s=new dt({}),o=new dt({}),r=new dt({}),a=new dt(""),c=new Qe(n,s,r,a,o,"primary",e,i.root);return c.snapshot=i.root,new $e(new Xe(c,[]),i)}class Qe{constructor(t,e,i,n,s,o,r,a){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=o,this.component=r,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,At.U)(t=>he(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,At.U)(t=>he(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ti(t,e="emptyOnly"){const i=t.pathFromRoot;let n=0;if("always"!==e)for(n=i.length-1;n>=1;){const t=i[n],e=i[n-1];if(t.routeConfig&&""===t.routeConfig.path)n--;else{if(e.component)break;n--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(i.slice(n))}class ei{constructor(t,e,i,n,s,o,r,a,c,u,l){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=o,this.component=r,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=u,this._resolve=l}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=he(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=he(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ii extends Ke{constructor(t,e){super(e),this.url=t,ni(this,e)}toString(){return si(this._root)}}function ni(t,e){e.value._routerState=t,e.children.forEach(e=>ni(t,e))}function si(t){const e=t.children.length>0?` { ${t.children.map(si).join(", ")} } `:"";return`${t.value}${e}`}function oi(t){if(t.snapshot){const e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,fe(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),fe(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(let i=0;ife(t.parameters,n[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||ri(t.parent,e.parent))}function ai(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){const n=i.value;n._futureSnapshot=e.value;const s=function(t,e,i){return e.children.map(e=>{for(const n of i.children)if(t.shouldReuseRoute(e.value,n.value.snapshot))return ai(t,e,n);return ai(t,e)})}(t,e,i);return new Xe(n,s)}{if(t.shouldAttach(e.value)){const i=t.retrieve(e.value);if(null!==i){const t=i.route;return ci(e,t),t}}const i=new Qe(new dt((n=e.value).url),new dt(n.params),new dt(n.queryParams),new dt(n.fragment),new dt(n.data),n.outlet,n.component,n),s=e.children.map(e=>ai(t,e));return new Xe(i,s)}var n}function ci(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let i=0;i{o[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new Le(i.root===t?e:di(i.root,t,e),o,s)}function di(t,e,i){const n={};return be(t.children,(t,s)=>{n[s]=t===e?i:di(t,e,i)}),new Ce(t.segments,n)}class pi{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&ui(i[0]))throw new Error("Root segment cannot have matrix parameters");const n=i.find(li);if(n&&n!==_e(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class fi{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function gi(t,e,i){if(t||(t=new Ce([],{})),0===t.segments.length&&t.hasChildren())return mi(t,e,i);const n=function(t,e,i){let n=0,s=e;const o={match:!1,pathIndex:0,commandIndex:0};for(;s=i.length)return o;const e=t.segments[s],r=i[n];if(li(r))break;const a=`${r}`,c=n0&&void 0===a)break;if(a&&c&&"object"==typeof c&&void 0===c.outlets){if(!wi(a,c,e))return o;n+=2}else{if(!wi(a,{},e))return o;n++}s++}return{match:!0,pathIndex:s,commandIndex:n}}(t,e,i),s=i.slice(n.commandIndex);if(n.match&&n.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(s[n]=gi(t.children[n],e,i))}),be(t.children,(t,e)=>{void 0===n[e]&&(s[e]=t)}),new Ce(t.segments,s)}}function _i(t,e,i){const n=t.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[i]=_i(new Ce([],{}),0,t))}),e}function yi(t){const e={};return be(t,(t,i)=>e[i]=`${t}`),e}function wi(t,e,i){return t==i.path&&fe(e,i.parameters)}class Ai{constructor(t,e,i,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=n}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),oi(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const n=Ve(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,n[e],i),delete n[e]}),be(n,(t,e)=>{this.deactivateRouteAndItsChildren(t,i)})}deactivateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(n===s)if(n.component){const s=i.getContext(n.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet);if(i&&i.outlet){const e=i.outlet.detach(),n=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:n})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),n=i&&t.value.component?i.children:e,s=Ve(t);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],n);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const n=Ve(e);t.children.forEach(t=>{this.activateRoutes(t,n[t.value.outlet],i),this.forwardEvent(new ce(t.value.snapshot))}),t.children.length&&this.forwardEvent(new re(t.value.snapshot))}activateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(oi(n),n===s)if(n.component){const s=i.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(n.component){const e=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){const t=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),Mi(t.route)}else{const i=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(n.snapshot),s=i?i.module.componentFactoryResolver:null;e.attachRef=null,e.route=n,e.resolver=s,e.outlet&&e.outlet.activateWith(n,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,i)}}function Mi(t){oi(t.value),t.children.forEach(Mi)}class vi{constructor(t,e){this.routes=t,this.module=e}}function Ti(t){return"function"==typeof t}function ki(t){return t instanceof Le}const Li=Symbol("INITIAL_VALUE");function Ci(){return(0,Mt.w)(t=>(0,pt.aj)(t.map(t=>t.pipe((0,vt.q)(1),kt(Li)))).pipe(Ct((t,e)=>{let i=!1;return e.reduce((t,n,s)=>{if(t!==Li)return t;if(n===Li&&(i=!0),!i){if(!1===n)return n;if(s===e.length-1||ki(n))return n}return t},t)},Li),(0,at.h)(t=>t!==Li),(0,At.U)(t=>ki(t)?t:!0===t),(0,vt.q)(1)))}let Si=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s._UZ(0,"router-outlet")},directives:function(){return[Ln]},encapsulation:2}),t})();function Ei(t,e=""){for(let i=0;iRi(t)===e);return i.push(...t.filter(t=>Ri(t)!==e)),i}const Pi={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Ni(t,e,i){var n;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?Object.assign({},Pi):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||pe)(i,t,e);if(!s)return Object.assign({},Pi);const o={};be(s.posParams,(t,e)=>{o[e]=t.path});const r=s.consumed.length>0?Object.assign(Object.assign({},o),s.consumed[s.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:r,positionalParamSegments:null!==(n=s.posParams)&&void 0!==n?n:{}}}function Ii(t,e,i,n,s="corrected"){if(i.length>0&&function(t,e,i){return i.some(i=>qi(t,e,i)&&"primary"!==Ri(i))}(t,i,n)){const s=new Ce(e,function(t,e,i,n){const s={};s.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(const o of i)if(""===o.path&&"primary"!==Ri(o)){const i=new Ce([],{});i._sourceSegment=t,i._segmentIndexShift=e.length,s[Ri(o)]=i}return s}(t,e,n,new Ce(i,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some(i=>qi(t,e,i))}(t,i,n)){const o=new Ce(t.segments,function(t,e,i,n,s,o){const r={};for(const a of n)if(qi(t,i,a)&&!s[Ri(a)]){const i=new Ce([],{});i._sourceSegment=t,i._segmentIndexShift="legacy"===o?t.segments.length:e.length,r[Ri(a)]=i}return Object.assign(Object.assign({},s),r)}(t,e,i,n,t.children,s));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:i}}const o=new Ce(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:i}}function qi(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path}function Bi(t,e,i,n){return!!(Ri(t)===n||"primary"!==n&&qi(e,i,t))&&("**"===t.path||Ni(e,t,i).matched)}function Hi(t,e,i){return 0===e.length&&!t.children[i]}class Yi{constructor(t){this.segmentGroup=t||null}}class ji{constructor(t){this.urlTree=t}}function Fi(t){return new ft.y(e=>e.error(new Yi(t)))}function Wi(t){return new ft.y(e=>e.error(new ji(t)))}function Ui(t){return new ft.y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Ki{constructor(t,e,i,n,o){this.configLoader=e,this.urlSerializer=i,this.urlTree=n,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(s.h0i)}apply(){const t=Ii(this.urlTree.root,[],[],this.config).segmentGroup,e=new Ce(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,"primary").pipe((0,At.U)(t=>this.createUrlTree(Zi(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,zt.K)(t=>{if(t instanceof ji)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Yi)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe((0,At.U)(e=>this.createUrlTree(Zi(e),t.queryParams,t.fragment))).pipe((0,zt.K)(t=>{if(t instanceof Yi)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const n=t.segments.length>0?new Ce([],{primary:t}):t;return new Le(n,e,i)}expandSegmentGroup(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe((0,At.U)(t=>new Ce([],t))):this.expandSegment(t,i,e,i.segments,n,!0)}expandChildren(t,e,i){const n=[];for(const s of Object.keys(i.children))"primary"===s?n.unshift(s):n.push(s);return(0,ct.D)(n).pipe((0,xt.b)(n=>{const s=i.children[n],o=Di(e,n);return this.expandSegmentGroup(t,o,s,n).pipe((0,At.U)(t=>({segment:t,outlet:n})))}),Ct((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const i=arguments.length>=2;return n=>n.pipe(t?(0,at.h)((e,i)=>t(e,i,n)):qt.y,Rt(1),i?(0,It.d)(e):(0,Nt.T)(()=>new gt.K))}())}expandSegment(t,e,i,n,s,o){return(0,ct.D)(i).pipe((0,xt.b)(r=>this.expandSegmentAgainstRoute(t,e,i,r,n,s,o).pipe((0,zt.K)(t=>{if(t instanceof Yi)return(0,ut.of)(null);throw t}))),(0,Bt.P)(t=>!!t),(0,zt.K)((t,i)=>{if(t instanceof gt.K||"EmptyError"===t.name){if(Hi(e,n,s))return(0,ut.of)(new Ce([],{}));throw new Yi(e)}throw t}))}expandSegmentAgainstRoute(t,e,i,n,s,o,r){return Bi(n,e,s,o)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,s,o):r&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o):Fi(e):Fi(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,n){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?Wi(s):this.lineralizeSegments(i,s).pipe((0,Ht.zg)(i=>{const s=new Ce(i,{});return this.expandSegment(t,s,e,i,n,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o){const{matched:r,consumedSegments:a,lastChild:c,positionalParamSegments:u}=Ni(e,n,s);if(!r)return Fi(e);const l=this.applyRedirectCommands(a,n.redirectTo,u);return n.redirectTo.startsWith("/")?Wi(l):this.lineralizeSegments(n,l).pipe((0,Ht.zg)(n=>this.expandSegment(t,e,i,n.concat(s.slice(c)),o,!1)))}matchSegmentAgainstRoute(t,e,i,n,s){if("**"===i.path)return i.loadChildren?(i._loadedConfig?(0,ut.of)(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe((0,At.U)(t=>(i._loadedConfig=t,new Ce(n,{})))):(0,ut.of)(new Ce(n,{}));const{matched:o,consumedSegments:r,lastChild:a}=Ni(e,i,n);if(!o)return Fi(e);const c=n.slice(a);return this.getChildConfig(t,i,n).pipe((0,Ht.zg)(t=>{const n=t.module,o=t.routes,{segmentGroup:a,slicedSegments:u}=Ii(e,r,c,o),l=new Ce(a.segments,a.children);if(0===u.length&&l.hasChildren())return this.expandChildren(n,o,l).pipe((0,At.U)(t=>new Ce(r,t)));if(0===o.length&&0===u.length)return(0,ut.of)(new Ce(r,{}));const h=Ri(i)===s;return this.expandSegment(n,l,o,u,h?"primary":s,!0).pipe((0,At.U)(t=>new Ce(r.concat(t.segments),t.children)))}))}getChildConfig(t,e,i){return e.children?(0,ut.of)(new vi(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?(0,ut.of)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe((0,Ht.zg)(i=>i?this.configLoader.load(t.injector,e).pipe((0,At.U)(t=>(e._loadedConfig=t,t))):function(t){return new ft.y(e=>e.error(de(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):(0,ut.of)(new vi([],t))}runCanLoadGuards(t,e,i){const n=e.canLoad;if(!n||0===n.length)return(0,ut.of)(!0);const s=n.map(n=>{const s=t.get(n);let o;if(function(t){return t&&Ti(t.canLoad)}(s))o=s.canLoad(e,i);else{if(!Ti(s))throw new Error("Invalid CanLoad guard");o=s(e,i)}return ye(o)});return(0,ut.of)(s).pipe(Ci(),(0,Yt.b)(t=>{if(!ki(t))return;const e=de(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),(0,At.U)(t=>!0===t))}lineralizeSegments(t,e){let i=[],n=e.root;for(;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return(0,ut.of)(i);if(n.numberOfChildren>1||!n.children.primary)return Ui(t.redirectTo);n=n.children.primary}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,n){const s=this.createSegmentGroup(t,e.root,i,n);return new Le(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return be(t,(t,n)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);i[n]=e[s]}else i[n]=t}),i}createSegmentGroup(t,e,i,n){const s=this.createSegments(t,e.segments,i,n);let o={};return be(e.children,(e,s)=>{o[s]=this.createSegmentGroup(t,e,i,n)}),new Ce(s,o)}createSegments(t,e,i,n){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,n):this.findOrReturn(e,i))}findPosParam(t,e,i){const n=i[e.path.substring(1)];if(!n)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return n}findOrReturn(t,e){let i=0;for(const n of e){if(n.path===t.path)return e.splice(i),n;i++}return t}}function Zi(t){const e={};for(const i of Object.keys(t.children)){const n=Zi(t.children[i]);(n.segments.length>0||n.hasChildren())&&(e[i]=n)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new Ce(t.segments.concat(e.segments),e.children)}return t}(new Ce(t.segments,e))}class Gi{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Xi{constructor(t,e){this.component=t,this.route=e}}function Vi(t,e,i){const n=t._root;return Ji(n,e?e._root:null,i,[n.value])}function $i(t,e,i){const n=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(n?n.module.injector:i).get(t)}function Ji(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=Ve(e);return t.children.forEach(t=>{!function(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,r=e?e.value:null,a=i?i.getContext(t.value.outlet):null;if(r&&o.routeConfig===r.routeConfig){const c=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!Ee(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Ee(t.url,e.url)||!fe(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ri(t,e)||!fe(t.queryParams,e.queryParams);case"paramsChange":default:return!ri(t,e)}}(r,o,o.routeConfig.runGuardsAndResolvers);c?s.canActivateChecks.push(new Gi(n)):(o.data=r.data,o._resolvedData=r._resolvedData),Ji(t,e,o.component?a?a.children:null:i,n,s),c&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new Xi(a.outlet.component,r))}else r&&Qi(e,a,s),s.canActivateChecks.push(new Gi(n)),Ji(t,null,o.component?a?a.children:null:i,n,s)}(t,o[t.value.outlet],i,n.concat([t.value]),s),delete o[t.value.outlet]}),be(o,(t,e)=>Qi(t,i.getContext(e),s)),s}function Qi(t,e,i){const n=Ve(t),s=t.value;be(n,(t,n)=>{Qi(t,s.component?e?e.children.getContext(n):null:e,i)}),i.canDeactivateChecks.push(new Xi(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class tn{}function en(t){return new ft.y(e=>e.error(t))}class nn{constructor(t,e,i,n,s,o){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=n,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=o}recognize(){const t=Ii(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary");if(null===e)return null;const i=new ei([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),n=new Xe(i,e),s=new ii(this.url,n);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,i=ti(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=[];for(const s of Object.keys(e.children)){const n=e.children[s],o=Di(t,s),r=this.processSegmentGroup(o,n,s);if(null===r)return null;i.push(...r)}const n=on(i);return n.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,i,n){for(const s of t){const t=this.processSegmentAgainstRoute(s,e,i,n);if(null!==t)return t}return Hi(e,i,n)?[]:null}processSegmentAgainstRoute(t,e,i,n){if(t.redirectTo||!Bi(t,e,i,n))return null;let s,o=[],r=[];if("**"===t.path){const n=i.length>0?_e(i).parameters:{};s=new ei(i,n,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,cn(t),Ri(t),t.component,t,rn(e),an(e)+i.length,un(t))}else{const n=Ni(e,t,i);if(!n.matched)return null;o=n.consumedSegments,r=i.slice(n.lastChild),s=new ei(o,n.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,cn(t),Ri(t),t.component,t,rn(e),an(e)+o.length,un(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:u}=Ii(e,o,r,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===u.length&&c.hasChildren()){const t=this.processChildren(a,c);return null===t?null:[new Xe(s,t)]}if(0===a.length&&0===u.length)return[new Xe(s,[])];const l=Ri(t)===n,h=this.processSegment(a,c,u,l?"primary":n);return null===h?null:[new Xe(s,h)]}}function sn(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function on(t){const e=[],i=new Set;for(const n of t){if(!sn(n)){e.push(n);continue}const t=e.find(t=>n.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...n.children),i.add(t)):e.push(n)}for(const n of i){const t=on(n.children);e.push(new Xe(n.value,t))}return e.filter(t=>!i.has(t))}function rn(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function an(t){let e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,i+=e._segmentIndexShift?e._segmentIndexShift:0;return i-1}function cn(t){return t.data||{}}function un(t){return t.resolve||{}}function ln(t){return(0,Mt.w)(e=>{const i=t(e);return i?(0,ct.D)(i).pipe((0,At.U)(()=>e)):(0,ut.of)(e)})}class hn extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const dn=new s.OlP("ROUTES");class pn{constructor(t,e,i,n){this.loader=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=n}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const i=this.loadModuleFactory(e.loadChildren).pipe((0,At.U)(i=>{this.onLoadEndListener&&this.onLoadEndListener(e);const n=i.create(t);return new vi(me(n.injector.get(dn,void 0,s.XFs.Self|s.XFs.Optional)).map(Oi),n)}),(0,zt.K)(t=>{throw e._loader$=void 0,t}));return e._loader$=new wt.c(i,()=>new lt.xQ).pipe((0,jt.x)()),e._loader$}loadModuleFactory(t){return"string"==typeof t?(0,ct.D)(this.loader.load(t)):ye(t()).pipe((0,Ht.zg)(t=>t instanceof s.YKP?(0,ut.of)(t):(0,ct.D)(this.compiler.compileModuleAsync(t))))}}class fn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new gn,this.attachRef=null}}class gn{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new fn,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class mn{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function _n(t){throw t}function bn(t,e,i){return e.parse("/")}function yn(t,e){return(0,ut.of)(null)}const wn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},An={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Mn=(()=>{class t{constructor(t,e,i,n,o,r,a,c){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=i,this.location=n,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new lt.xQ,this.errorHandler=_n,this.malformedUriErrorHandler=bn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:yn,afterPreactivation:yn},this.urlHandlingStrategy=new mn,this.routeReuseStrategy=new hn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(s.h0i),this.console=o.get(s.c2e);const u=o.get(s.R0b);this.isNgZoneEnabled=u instanceof s.R0b&&s.R0b.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new Le(new Ce([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new pn(r,a,t=>this.triggerEvent(new ne(t)),t=>this.triggerEvent(new se(t))),this.routerState=Je(this.currentUrlTree,this.rootComponentType),this.transitions=new dt({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()}setupNavigations(t){const e=this.events;return t.pipe((0,at.h)(t=>0!==t.id),(0,At.U)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),(0,Mt.w)(t=>{let i=!1,n=!1;return(0,ut.of)(t).pipe((0,Yt.b)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,Mt.w)(t=>{const i=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return(0,ut.of)(t).pipe((0,Mt.w)(t=>{const i=this.transitions.getValue();return e.next(new Gt(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==this.transitions.getValue()?bt.E:Promise.resolve(t)}),(n=this.ngModule.injector,s=this.configLoader,o=this.urlSerializer,r=this.config,(0,Mt.w)(t=>function(t,e,i,n,s){return new Ki(t,e,i,n,s).apply()}(n,s,o,t.extractedUrl,r).pipe((0,At.U)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e}))))),(0,Yt.b)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,i,n,s){return(0,Ht.zg)(o=>function(t,e,i,n,s="emptyOnly",o="legacy"){try{const r=new nn(t,e,i,n,s,o).recognize();return null===r?en(new tn):(0,ut.of)(r)}catch(r){return en(r)}}(t,e,o.urlAfterRedirects,i(o.urlAfterRedirects),n,s).pipe((0,At.U)(t=>Object.assign(Object.assign({},o),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Yt.b)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const i=new Jt(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(i)}));var n,s,o,r;if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:i,extractedUrl:n,source:s,restoredState:o,extras:r}=t,a=new Gt(i,this.serializeUrl(n),s,o);e.next(a);const c=Je(n,this.rootComponentType).snapshot;return(0,ut.of)(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:n,extras:Object.assign(Object.assign({},r),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),bt.E}),ln(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:o,replaceUrl:r}}=t;return this.hooks.beforePreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!r})}),(0,Yt.b)(t=>{const e=new Qt(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,At.U)(t=>Object.assign(Object.assign({},t),{guards:Vi(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return(0,Ht.zg)(i=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:o,canDeactivateChecks:r}}=i;return 0===r.length&&0===o.length?(0,ut.of)(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return(0,ct.D)(t).pipe((0,Ht.zg)(t=>function(t,e,i,n,s){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return(0,ut.of)(!0);const r=o.map(o=>{const r=$i(o,e,s);let a;if(function(t){return t&&Ti(t.canDeactivate)}(r))a=ye(r.canDeactivate(t,e,i,n));else{if(!Ti(r))throw new Error("Invalid CanDeactivate guard");a=ye(r(t,e,i,n))}return a.pipe((0,Bt.P)())});return(0,ut.of)(r).pipe(Ci())}(t.component,t.route,i,e,n)),(0,Bt.P)(t=>!0!==t,!0))}(r,n,s,t).pipe((0,Ht.zg)(i=>i&&"boolean"==typeof i?function(t,e,i,n){return(0,ct.D)(e).pipe((0,xt.b)(e=>_t(function(t,e){return null!==t&&e&&e(new oe(t)),(0,ut.of)(!0)}(e.route.parent,n),function(t,e){return null!==t&&e&&e(new ae(t)),(0,ut.of)(!0)}(e.route,n),function(t,e,i){const n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>yt(()=>{const s=e.guards.map(s=>{const o=$i(s,e.node,i);let r;if(function(t){return t&&Ti(t.canActivateChild)}(o))r=ye(o.canActivateChild(n,t));else{if(!Ti(o))throw new Error("Invalid CanActivateChild guard");r=ye(o(n,t))}return r.pipe((0,Bt.P)())});return(0,ut.of)(s).pipe(Ci())}));return(0,ut.of)(s).pipe(Ci())}(t,e.path,i),function(t,e,i){const n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||0===n.length)return(0,ut.of)(!0);const s=n.map(n=>yt(()=>{const s=$i(n,e,i);let o;if(function(t){return t&&Ti(t.canActivate)}(s))o=ye(s.canActivate(e,t));else{if(!Ti(s))throw new Error("Invalid CanActivate guard");o=ye(s(e,t))}return o.pipe((0,Bt.P)())}));return(0,ut.of)(s).pipe(Ci())}(t,e.route,i))),(0,Bt.P)(t=>!0!==t,!0))}(n,o,t,e):(0,ut.of)(i)),(0,At.U)(t=>Object.assign(Object.assign({},i),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),(0,Yt.b)(t=>{if(ki(t.guardsResult)){const e=de(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new te(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),(0,at.h)(t=>!!t.guardsResult||(this.cancelNavigationTransition(t,""),!1)),ln(t=>{if(t.guards.canActivateChecks.length)return(0,ut.of)(t).pipe((0,Yt.b)(t=>{const e=new ee(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,Mt.w)(t=>{let e=!1;return(0,ut.of)(t).pipe((i=this.paramsInheritanceStrategy,n=this.ngModule.injector,(0,Ht.zg)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:s}}=t;if(!s.length)return(0,ut.of)(t);let o=0;return(0,ct.D)(s).pipe((0,xt.b)(t=>function(t,e,i,n){return function(t,e,i,n){const s=Object.keys(t);if(0===s.length)return(0,ut.of)({});const o={};return(0,ct.D)(s).pipe((0,Ht.zg)(s=>function(t,e,i,n){const s=$i(t,e,n);return ye(s.resolve?s.resolve(e,i):s(e,i))}(t[s],e,i,n).pipe((0,Yt.b)(t=>{o[s]=t}))),Rt(1),(0,Ht.zg)(()=>Object.keys(o).length===s.length?(0,ut.of)(o):bt.E))}(t._resolve,t,e,n).pipe((0,At.U)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),ti(t,i).resolve),null)))}(t.route,e,i,n)),(0,Yt.b)(()=>o++),Rt(1),(0,Ht.zg)(e=>o===s.length?(0,ut.of)(t):bt.E))})),(0,Yt.b)({next:()=>e=!0,complete:()=>{e||this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value.")}}));var i,n}),(0,Yt.b)(t=>{const e=new ie(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),ln(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:o,replaceUrl:r}}=t;return this.hooks.afterPreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!o,replaceUrl:!!r})}),(0,At.U)(t=>{const e=function(t,e,i){const n=ai(t,e._root,i?i._root:void 0);return new $e(n,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),(0,Yt.b)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,o=this.routeReuseStrategy,r=t=>this.triggerEvent(t),(0,At.U)(t=>(new Ai(o,t.targetRouterState,t.currentRouterState,r).activate(s),t))),(0,Yt.b)({next(){i=!0},complete(){i=!0}}),Wt(()=>{i||n||this.cancelNavigationTransition(t,`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`),this.currentNavigation=null}),(0,zt.K)(i=>{if(n=!0,(s=i)&&s.ngNavigationCancelingError){const n=ki(i.url);n||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new Vt(t.id,this.serializeUrl(t.extractedUrl),i.message);e.next(s),n?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(i.url,this.rawUrlTree);this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const n=new $t(t.id,this.serializeUrl(t.extractedUrl),i);e.next(n);try{t.resolve(this.errorHandler(i))}catch(o){t.reject(o)}}var s;return bt.E}));var s,o,r}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:i,urlTree:n}=e,s={replaceUrl:!0};if(i){const t=Object.assign({},i);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(n,t,i,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const i=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&i&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Ei(t),this.config=t.map(Oi),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(t,e={}){const{relativeTo:i,queryParams:n,fragment:s,queryParamsHandling:o,preserveFragment:r}=e,a=i||this.routerState.root,c=r?this.currentUrlTree.fragment:s;let u=null;switch(o){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=n||null}return null!==u&&(u=this.removeEmptyProps(u)),function(t,e,i,n,s){if(0===i.length)return hi(e.root,e.root,e,n,s);const o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new pi(!0,0,t);let e=0,i=!1;const n=t.reduce((t,n,s)=>{if("object"==typeof n&&null!=n){if(n.outlets){const e={};return be(n.outlets,(t,i)=>{e[i]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(n.segmentPath)return[...t,n.segmentPath]}return"string"!=typeof n?[...t,n]:0===s?(n.split("/").forEach((n,s)=>{0==s&&"."===n||(0==s&&""===n?i=!0:".."===n?e++:""!=n&&t.push(n))}),t):[...t,n]},[]);return new pi(i,e,n)}(i);if(o.toRoot())return hi(e.root,new Ce([],{}),e,n,s);const r=function(t,e,i){if(t.isAbsolute)return new fi(e.root,!0,0);if(-1===i.snapshot._lastPathIndex){const t=i.snapshot._urlSegment;return new fi(t,t===e.root,0)}const n=ui(t.commands[0])?0:1;return function(t,e,i){let n=t,s=e,o=i;for(;o>s;){if(o-=s,n=n.parent,!n)throw new Error("Invalid number of '../'");s=n.segments.length}return new fi(n,!1,s-o)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(o,e,t),a=r.processChildren?mi(r.segmentGroup,r.index,o.commands):gi(r.segmentGroup,r.index,o.commands);return hi(r.segmentGroup,a,e,n,s)}(a,this.currentUrlTree,t,u,null!=c?c:null)}navigateByUrl(t,e={skipLocationChange:!1}){const i=ki(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree);let s=null;return"computed"===this.canceledNavigationResolution&&(0===this.currentPageId||e.skipLocationChange||e.replaceUrl)&&(s=this.location.getState()),this.scheduleNavigation(n,"imperative",s,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const n=t[i];return null!=n&&(e[i]=n),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new Xt(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,i,n,s){if(this.disposed)return Promise.resolve(!1);const o=this.getTransition(),r="imperative"!==e&&"imperative"===(null==o?void 0:o.source),a=(this.lastSuccessfulId===o.id||this.currentNavigation?o.rawUrl:o.urlAfterRedirects).toString()===t.toString();if(r&&a)return Promise.resolve(!0);let c,u,l;s?(c=s.resolve,u=s.reject,l=s.promise):l=new Promise((t,e)=>{c=t,u=e});const h=++this.navigationId;let d;return d="computed"===this.canceledNavigationResolution?i&&i.\u0275routerPageId?i.\u0275routerPageId:this.currentPageId+1:0,this.setTransition({id:h,targetPageId:d,source:e,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const i=this.urlSerializer.serialize(t),n=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(i)||e.extras.replaceUrl?this.location.replaceState(i,"",n):this.location.go(i,"",n)}resetStateAndUrl(t,e,i){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){"computed"===this.canceledNavigationResolution?"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy||this.location.historyGo(this.currentPageId-t.targetPageId):this.resetUrlToCurrentUrlTree();const i=new Vt(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(i),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.DyG),s.LFG(ze),s.LFG(gn),s.LFG(n.Ye),s.LFG(s.zs3),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),vn=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new lt.xQ,null==i&&n.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:kn(this.skipLocationChange),replaceUrl:kn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:kn(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Mn),s.Y36(Qe),s.$8M("tabindex"),s.Y36(s.Qsj),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.TTD]}),t})(),Tn=(()=>{class t{constructor(t,e,i){this.router=t,this.route=e,this.locationStrategy=i,this.commands=[],this.onChanges=new lt.xQ,this.subscription=t.events.subscribe(t=>{t instanceof Xt&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,i,n,s){if(0!==t||e||i||n||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const o={skipLocationChange:kn(this.skipLocationChange),replaceUrl:kn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:kn(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Mn),s.Y36(Qe),s.Y36(n.S$))},t.\u0275dir=s.lG2({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(s.Ikx("href",e.href,s.LSH),s.uIk("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.TTD]}),t})();function kn(t){return""===t||!!t}let Ln=(()=>{class t{constructor(t,e,i,n,o){this.parentContexts=t,this.location=e,this.resolver=i,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.vpe,this.deactivateEvents=new s.vpe,this.name=n||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const i=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,s=new Cn(t,n,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(gn),s.Y36(s.s_b),s.Y36(s._Vd),s.$8M("name"),s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Cn{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===Qe?this.route:t===gn?this.childContexts:this.parent.get(t,e)}}class Sn{}class En{preload(t,e){return e().pipe((0,zt.K)(()=>(0,ut.of)(null)))}}class zn{preload(t,e){return(0,ut.of)(null)}}let xn=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.injector=n,this.preloadingStrategy=s,this.loader=new pn(e,i,e=>t.triggerEvent(new ne(e)),e=>t.triggerEvent(new se(e)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,at.h)(t=>t instanceof Xt),(0,xt.b)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(s.h0i);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const i=[];for(const n of e)if(n.loadChildren&&!n.canLoad&&n._loadedConfig){const t=n._loadedConfig;i.push(this.processRoutes(t.module,t.routes))}else n.loadChildren&&!n.canLoad?i.push(this.preloadConfig(t,n)):n.children&&i.push(this.processRoutes(t,n.children));return(0,ct.D)(i).pipe((0,mt.J)(),(0,At.U)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?(0,ut.of)(e._loadedConfig):this.loader.load(t.injector,e)).pipe((0,Ht.zg)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Mn),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(s.zs3),s.LFG(Sn))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),On=(()=>{class t{constructor(t,e,i={}){this.router=t,this.viewportScroller=e,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.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(t=>{t instanceof Gt?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Xt&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof ue&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new ue(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Mn),s.LFG(n.EM),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const Rn=new s.OlP("ROUTER_CONFIGURATION"),Dn=new s.OlP("ROUTER_FORROOT_GUARD"),Pn=[n.Ye,{provide:ze,useClass:xe},{provide:Mn,useFactory:function(t,e,i,n,s,o,r,a={},c,u){const l=new Mn(null,t,e,i,n,s,o,me(r));return c&&(l.urlHandlingStrategy=c),u&&(l.routeReuseStrategy=u),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,l),a.enableTracing&&l.events.subscribe(t=>{var e,i;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(i=console.groupEnd)||void 0===i||i.call(console)}),l},deps:[ze,gn,n.Ye,s.zs3,s.v3s,s.Sil,dn,Rn,[class{},new s.FiY],[class{},new s.FiY]]},gn,{provide:Qe,useFactory:function(t){return t.routerState.root},deps:[Mn]},{provide:s.v3s,useClass:s.EAV},xn,zn,En,{provide:Rn,useValue:{enableTracing:!1}}];function Nn(){return new s.PXZ("Router",Mn)}let In=(()=>{class t{constructor(t,e){}static forRoot(e,i){return{ngModule:t,providers:[Pn,Yn(e),{provide:Dn,useFactory:Hn,deps:[[Mn,new s.FiY,new s.tp0]]},{provide:Rn,useValue:i||{}},{provide:n.S$,useFactory:Bn,deps:[n.lw,[new s.tBr(n.mr),new s.FiY],Rn]},{provide:On,useFactory:qn,deps:[Mn,n.EM,Rn]},{provide:Sn,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:zn},{provide:s.PXZ,multi:!0,useFactory:Nn},[jn,{provide:s.ip1,multi:!0,useFactory:Fn,deps:[jn]},{provide:Un,useFactory:Wn,deps:[jn]},{provide:s.tb,multi:!0,useExisting:Un}]]}}static forChild(e){return{ngModule:t,providers:[Yn(e)]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Dn,8),s.LFG(Mn,8))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();function qn(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new On(t,e,i)}function Bn(t,e,i={}){return i.useHash?new n.Do(t,e):new n.b0(t,e)}function Hn(t){return"guarded"}function Yn(t){return[{provide:s.deG,multi:!0,useValue:t},{provide:dn,multi:!0,useValue:t}]}let jn=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new lt.xQ}appInitializer(){return this.injector.get(n.V_,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),i=this.injector.get(Mn),n=this.injector.get(Rn);return"disabled"===n.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===n.initialNavigation||"enabledBlocking"===n.initialNavigation?(i.hooks.afterPreactivation=()=>this.initNavigation?(0,ut.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),i.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(Rn),i=this.injector.get(xn),n=this.injector.get(On),o=this.injector.get(Mn),r=this.injector.get(s.z2F);t===r.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||o.initialNavigation(),i.setUpPreloading(),n.init(),o.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function Fn(t){return t.appInitializer.bind(t)}function Wn(t){return t.bootstrapListener.bind(t)}const Un=new s.OlP("Router Initializer");let Kn=(()=>{class t{constructor(){this.branding=""}setInstanceConfig(t){this.instanceConfig=t}setDefaultConfig(t){this.defaultConfig=t}getAppsConfig(){return this.appsConfig}setAppsConfig(t){this.appsConfig=t}setPerunPrincipal(t){this.principal=t}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(t){this.initialPageId=t}getLoginAttributeNames(){return this.get("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.get("member_profile_attributes_friendly_names")}setBanding(t){this.branding=t}skipOidc(){return this.get("skip_oidc")}get(...t){let e;if(""!==this.branding){const i=this.instanceConfig.brandings[this.branding];for(let n=0;n(0,Qn.k)(t)?n(...t):n(t))):new ft.y(n=>{is(t,e,function(t){n.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},n,i)})}function is(t,e,i,n,s){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const n=t;t.addEventListener(e,i,s),o=()=>n.removeEventListener(e,i,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const n=t;t.on(e,i),o=()=>n.off(e,i)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const n=t;t.addListener(e,i),o=()=>n.removeListener(e,i)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,r=t.length;o0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}var os=i(1098);class rs extends os.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++nPromise.resolve())(),ls={};function hs(t){return t in ls&&(delete ls[t],!0)}const ds={setImmediate(t){const e=cs++;return ls[e]=!0,us.then(()=>hs(e)&&t()),e},clearImmediate(t){hs(t)}};class ps extends ns.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=ds.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(ds.clearImmediate(e),t.scheduled=void 0)}}class fs extends os.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++ni.lift(new bs(t,e))}class bs{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new ys(t,this.compare,this.keySelector))}}class ys extends Lt.L{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:i}=this;e=i?i(t):t}catch(n){return this.destination.error(n)}let i=!1;if(this.hasKey)try{const{compare:t}=this;i=t(this.key,e)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}var ws=i(8569),As=i(9829),Ms=i(6268);class vs{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new Ts(t,this.durationSelector))}}class Ts extends As.L{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let i;try{const{durationSelector:e}=this;i=e(t)}catch(e){return this.destination.error(e)}const n=(0,Ms.D)(this,i);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=null,i.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,i,n){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function ks(t){return!(0,Qn.k)(t)&&t-parseFloat(t)+1>=0}function Ls(t=0,e,i){let n=-1;return ks(e)?n=Number(e)<1?1:Number(e):(0,Tt.K)(e)&&(i=e),(0,Tt.K)(i)||(i=ws.P),new ft.y(e=>{const s=ks(t)?t:+t-i.now();return i.schedule(Cs,s,{index:0,period:n,subscriber:e})})}function Cs(t){const{index:e,period:i,subscriber:n}=t;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}}function Ss(t,e=ws.P){return i=()=>Ls(t,e),function(t){return t.lift(new vs(i))};var i}function Es(t){return e=>e.lift(new zs(t))}class zs{constructor(t){this.notifier=t}call(t,e){const i=new xs(t),n=(0,Ms.D)(i,this.notifier);return n&&!i.seenValue?(i.add(n),e.subscribe(i)):i}}class xs extends As.L{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,i,n,s){this.seenValue=!0,this.complete()}notifyComplete(){}}class Os extends ns.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}class Rs extends os.v{}const Ds=new Rs(Os);var Ps=i(3103);class Ns extends Lt.L{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(Ns.dispatch,this.delay,new Is(t,this.destination)))}_next(t){this.scheduleMessage(Ps.P.createNext(t))}_error(t){this.scheduleMessage(Ps.P.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(Ps.P.createComplete()),this.unsubscribe()}}class Is{constructor(t,e){this.notification=t,this.destination=e}}var qs=i(9291);class Bs extends lt.xQ{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new Hs(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),n=this.scheduler,s=i.length;let o;if(this.closed)throw new ht.N;if(this.isStopped||this.hasError?o=Ft.w.EMPTY:(this.observers.push(t),o=new qs.W(this,t)),n&&t.add(t=new Ns(t,n)),e)for(let r=0;re&&(o=Math.max(o,s-e)),o>0&&n.splice(0,o),n}}class Hs{constructor(t,e){this.time=t,this.value=e}}function Ys(t,e,i){let n;return n=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:i},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:i,scheduler:n}){let s,o,r=0,a=!1,c=!1;return function(u){r++,s&&!a||(a=!1,s=new Bs(t,e,n),o=u.subscribe({next(t){s.next(t)},error(t){a=!0,s.error(t)},complete(){c=!0,o=void 0,s.complete()}}));const l=s.subscribe(this);this.add(()=>{r--,l.unsubscribe(),o&&!c&&i&&0===r&&(o.unsubscribe(),o=void 0,s=void 0)})}}(n))}let js;try{js="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(hE){js=!1}let Fs,Ws=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?(0,n.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&&!js)&&"undefined"!=typeof CSS&&!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 t.\u0275fac=function(e){return new(e||t)(s.LFG(s.Lbi))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.Lbi))},token:t,providedIn:"root"}),t})(),Us=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();const Ks=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Zs(){if(Fs)return Fs;if("object"!=typeof document||!document)return Fs=new Set(Ks),Fs;let t=document.createElement("input");return Fs=new Set(Ks.filter(e=>(t.setAttribute("type",e),t.type===e))),Fs}let Gs,Xs,Vs,$s;function Js(t){return function(){if(null==Gs&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Gs=!0}))}finally{Gs=Gs||!1}return Gs}()?t:!!t.capture}function Qs(){if(null==Vs){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Vs=!1,Vs;if("scrollBehavior"in document.documentElement.style)Vs=!0;else{const t=Element.prototype.scrollTo;Vs=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Vs}function to(){if("object"!=typeof document||!document)return 0;if(null==Xs){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",t.appendChild(i),document.body.appendChild(t),Xs=0,0===t.scrollLeft&&(t.scrollLeft=1,Xs=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return Xs}function eo(t){if(function(){if(null==$s){const t="undefined"!=typeof document?document.head:null;$s=!(!t||!t.createShadowRoot&&!t.attachShadow)}return $s}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function io(){let t="undefined"!=typeof document&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}const no=new s.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,s.f3M)(n.K0)}});let so=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new s.vpe,t){const e=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||e;this.value="ltr"===i||"rtl"===i?i:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(no,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(no,8))},token:t,providedIn:"root"}),t})(),oo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();function ro(t){return t&&"function"==typeof t.connect}class ao{applyChanges(t,e,i,n,s){t.forEachOperation((t,n,o)=>{let r,a;if(null==t.previousIndex){const s=i(t,n,o);r=e.createEmbeddedView(s.templateRef,s.context,s.index),a=1}else null==o?(e.remove(n),a=3):(r=e.get(n),e.move(r,o),a=2);s&&s({context:null==r?void 0:r.context,operation:a,record:t})})}detach(){}}class co{constructor(t=!1,e,i=!0){this._multiple=t,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new lt.xQ,e&&e.length&&(t?e.forEach(t=>this._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}let uo=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let i of this._listeners)i(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const lo=new s.OlP("_ViewRepeater");let ho=(()=>{class t{constructor(t,e,i){this._ngZone=t,this._platform=e,this._scrolled=new lt.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new ft.y(e=>{this._globalSubscription||this._addGlobalListener();const i=t>0?this._scrolled.pipe(Ss(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,ut.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe((0,at.h)(t=>!t||i.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((i,n)=>{this._scrollableContainsElement(n,t)&&e.push(n)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let i=Jn(e),n=t.getElementRef().nativeElement;do{if(i==n)return!0}while(i=i.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>es(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(Ws),s.LFG(n.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(Ws),s.LFG(n.K0,8))},token:t,providedIn:"root"}),t})(),po=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=i,this.dir=n,this._destroyed=new lt.xQ,this._elementScrolled=new ft.y(t=>this.ngZone.runOutsideAngular(()=>es(this.elementRef.nativeElement,"scroll").pipe(Es(this._destroyed)).subscribe(t)))}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(t){const e=this.elementRef.nativeElement,i=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=i?t.end:t.start),null==t.right&&(t.right=i?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),i&&0!=to()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==to()?t.left=t.right:1==to()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const e=this.elementRef.nativeElement;Qs()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;const i=this.dir&&"rtl"==this.dir.value;return"start"==t?t=i?"right":"left":"end"==t&&(t=i?"left":"right"),i&&2==to()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:i&&1==to()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(ho),s.Y36(s.R0b),s.Y36(so,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),fo=(()=>{class t{constructor(t,e,i){this._platform=t,this._change=new lt.xQ,this._changeListener=t=>{this._change.next(t)},this._document=i,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:i}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+e,height:i,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Ss(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Ws),s.LFG(s.R0b),s.LFG(n.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Ws),s.LFG(s.R0b),s.LFG(n.K0,8))},token:t,providedIn:"root"}),t})(),go=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),mo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[oo,Us,go],oo,go]}),t})();class _o{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class bo extends _o{constructor(t,e,i,n){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=n}}class yo extends _o{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class wo extends _o{constructor(t){super(),this.element=t instanceof s.SBq?t.nativeElement:t}}class Ao{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof bo?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof yo?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof wo?(this._attachedPortal=t,this.attachDomPortal(t)):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(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Mo extends Ao{constructor(t,e,i,n,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=n,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=t,i}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(t=>this.outletElement.appendChild(t)),i.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(i);-1!==t&&e.remove(t)}),this._attachedPortal=t,i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let vo=(()=>{class t extends Ao{constructor(t,e,i){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new s.vpe,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(i,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=i}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),n=e.createComponent(i,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s._Vd),s.Y36(s.s_b),s.Y36(n.K0))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[s.qOj]}),t})(),To=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();var ko=i(1906);class Lo{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new Co(t,this.predicate,this.inclusive))}}class Co extends Lt.L{constructor(t,e,i){super(t),this.predicate=e,this.inclusive=i,this.index=0}_next(t){const e=this.destination;let i;try{i=this.predicate(t,this.index++)}catch(n){return void e.error(n)}this.nextOrComplete(t,i)}nextOrComplete(t,e){const i=this.destination;Boolean(e)?i.next(t):(this.inclusive&&i.next(t),i.complete())}}function So(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}const Eo=Qs();class zo{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=$n(-this._previousScrollPosition.left),t.style.top=$n(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,i=this._document.body.style,n=e.scrollBehavior||"",s=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),Eo&&(e.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Eo&&(e.scrollBehavior=n,i.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class xo{constructor(t,e,i,n){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Oo{enable(){}disable(){}attach(){}}function Ro(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function Do(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class Po{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=n,this._scrollSubscription=null}attach(t){this._overlayRef=t}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 t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:i}=this._viewportRuler.getViewportSize();Ro(t,[{width:e,height:i,bottom:i,right:e,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 No=(()=>{class t{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this.noop=()=>new Oo,this.close=t=>new xo(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new zo(this._viewportRuler,this._document),this.reposition=t=>new Po(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=n}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(ho),s.LFG(fo),s.LFG(s.R0b),s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(ho),s.LFG(fo),s.LFG(s.R0b),s.LFG(n.K0))},token:t,providedIn:"root"}),t})();class Io{constructor(t){if(this.scrollStrategy=new Oo,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class qo{constructor(t,e,i,n,s){this.offsetX=i,this.offsetY=n,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class Bo{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let Ho=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0))},token:t,providedIn:"root"}),t})(),Yo=(()=>{class t extends Ho{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let i=e.length-1;i>-1;i--)if(e[i]._keydownEvents.observers.length>0){e[i]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0))},token:t,providedIn:"root"}),t})(),jo=(()=>{class t extends Ho{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,i=this._attachedOverlays.slice();for(let n=i.length-1;n>-1;n--){const s=i[n];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){if(super.add(t),!this._isAttached){const t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),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 t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0),s.LFG(Ws))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0),s.LFG(Ws))},token:t,providedIn:"root"}),t})();const Fo="undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha;let Wo=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){if(this._platform.isBrowser||Fo){const t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let e=0;ethis._backdropClick.next(t),this._keydownEvents=new lt.xQ,this._outsidePointerEvents=new lt.xQ,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,vt.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),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 t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),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&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=$n(this._config.width),t.height=$n(this._config.height),t.minWidth=$n(this._config.minWidth),t.minHeight=$n(this._config.minHeight),t.maxWidth=$n(this._config.maxWidth),t.maxHeight=$n(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),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),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const n=t.classList;Vn(e).forEach(t=>{t&&(i?n.add(t):n.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Es((0,ko.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._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const Ko=/([A-Za-z%]+)$/;class Zo{constructor(t,e,i,n,s){this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=s,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 lt.xQ,this._resizeSubscription=Ft.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.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();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,n=[];let s;for(let o of this._preferredPositions){let r=this._getOriginPoint(t,o),a=this._getOverlayPoint(r,e,o),c=this._getOverlayFit(a,e,i,o);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(o,r);this._canFitWithFlexibleDimensions(c,a,i)?n.push({position:o,origin:r,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(r,o)}):(!s||s.overlayFit.visibleAreae&&(e=n,t=i)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Go(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let i,n;if("center"==e.originX)i=t.left+t.width/2;else{const n=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;i="start"==e.originX?n:s}return n="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:n}}_getOverlayPoint(t,e,i){let n,s;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+s}}_getOverlayFit(t,e,i,n){const s=Vo(e);let{x:o,y:r}=t,a=this._getOffset(n,"x"),c=this._getOffset(n,"y");a&&(o+=a),c&&(r+=c);let u=0-r,l=r+s.height-i.height,h=this._subtractOverflows(s.width,0-o,o+s.width-i.width),d=this._subtractOverflows(s.height,u,l),p=h*d;return{visibleArea:p,isCompletelyWithinViewport:s.width*s.height===p,fitsInViewportVertically:d===s.height,fitsInViewportHorizontally:h==s.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const n=i.bottom-e.y,s=i.right-e.x,o=Xo(this._overlayRef.getConfig().minHeight),r=Xo(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=r&&r<=s;return(t.fitsInViewportVertically||null!=o&&o<=n)&&a}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const n=Vo(e),s=this._viewportRect,o=Math.max(t.x+n.width-s.width,0),r=Math.max(t.y+n.height-s.height,0),a=Math.max(s.top-i.top-t.y,0),c=Math.max(s.left-i.left-t.x,0);let u=0,l=0;return u=n.width<=s.width?c||-o:t.xn&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-n/2)}if("end"===e.overlayX&&!n||"start"===e.overlayX&&n)u=i.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!n||"end"===e.overlayX&&n)c=t.x,a=i.right-t.x;else{const e=Math.min(i.right-t.x+i.left,t.x),n=this._lastBoundingBoxSize.width;a=2*e,c=t.x-e,a>n&&!this._isInitialRender&&!this._growAfterOpen&&(c=t.x-n/2)}return{top:o,left:c,bottom:r,right:u,width:a,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;n.height=$n(i.height),n.top=$n(i.top),n.bottom=$n(i.bottom),n.width=$n(i.width),n.left=$n(i.left),n.right=$n(i.right),n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(n.maxHeight=$n(t)),s&&(n.maxWidth=$n(s))}this._lastBoundingBoxSize=i,Go(this._boundingBox.style,n)}_resetBoundingBoxStyles(){Go(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Go(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},n=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(n){const n=this._viewportRuler.getViewportScrollPosition();Go(i,this._getExactOverlayY(e,t,n)),Go(i,this._getExactOverlayX(e,t,n))}else i.position="static";let r="",a=this._getOffset(e,"x"),c=this._getOffset(e,"y");a&&(r+=`translateX(${a}px) `),c&&(r+=`translateY(${c}px)`),i.transform=r.trim(),o.maxHeight&&(n?i.maxHeight=$n(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(n?i.maxWidth=$n(o.maxWidth):s&&(i.maxWidth="")),Go(this._pane.style,i)}_getExactOverlayY(t,e,i){let n={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i));let o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=o,"bottom"===t.overlayY?n.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":n.top=$n(s.y),n}_getExactOverlayX(t,e,i){let n,s={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),n=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===n?s.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":s.left=$n(o.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Do(t,i),isOriginOutsideView:Ro(t,i),isOverlayClipped:Do(e,i),isOverlayOutsideView:Ro(e,i)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&Vn(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof s.SBq)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function Go(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function Xo(t){if("number"!=typeof t&&null!=t){const[e,i]=t.split(Ko);return i&&"px"!==i?null:parseFloat(e)}return t||null}function Vo(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class $o{constructor(t,e,i,n,s,o,r){this._preferredPositions=[],this._positionStrategy=new Zo(i,n,s,o,r).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,i,n){const s=new qo(t,e,i,n);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}class Jo{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:n,height:s,maxWidth:o,maxHeight:r}=i,a=!("100%"!==n&&"100vw"!==n||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||r&&"100%"!==r&&"100vh"!==r);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove("cdk-global-overlay-wrapper"),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let Qo=(()=>{class t{constructor(t,e,i,n){this._viewportRuler=t,this._document=e,this._platform=i,this._overlayContainer=n}global(){return new Jo}connectedTo(t,e,i){return new $o(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new Zo(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(fo),s.LFG(n.K0),s.LFG(Ws),s.LFG(Wo))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(fo),s.LFG(n.K0),s.LFG(Ws),s.LFG(Wo))},token:t,providedIn:"root"}),t})(),tr=0,er=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u,l){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=s,this._injector=o,this._ngZone=r,this._document=a,this._directionality=c,this._location=u,this._outsideClickDispatcher=l}create(t){const e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),s=new Io(t);return s.direction=s.direction||this._directionality.value,new Uo(n,e,i,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+tr++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(s.z2F)),new Mo(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(No),s.LFG(Wo),s.LFG(s._Vd),s.LFG(Qo),s.LFG(Yo),s.LFG(s.zs3),s.LFG(s.R0b),s.LFG(n.K0),s.LFG(so),s.LFG(n.Ye),s.LFG(jo))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const ir=[{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"}],nr=new s.OlP("cdk-connected-overlay-scroll-strategy");let sr=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),or=(()=>{class t{constructor(t,e,i,n,o){this._overlay=t,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Ft.w.EMPTY,this._attachSubscription=Ft.w.EMPTY,this._detachSubscription=Ft.w.EMPTY,this._positionSubscription=Ft.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new s.vpe,this.positionChange=new s.vpe,this.attach=new s.vpe,this.detach=new s.vpe,this.overlayKeydown=new s.vpe,this.overlayOutsideClick=new s.vpe,this._templatePortal=new yo(e,i),this._scrollStrategyFactory=n,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=Zn(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=Zn(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=Zn(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=Zn(t)}get push(){return this._push}set push(t){this._push=Zn(t)}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(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=ir);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27!==t.keyCode||this.disableClose||So(t)||(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new Io({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}_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(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t,e=!1){return i=>i.lift(new Lo(t,e))}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(er),s.Y36(s.Rgc),s.Y36(s.s_b),s.Y36(nr),s.Y36(so,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[s.TTD]}),t})();const rr={provide:nr,deps:[er],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let ar=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[er,rr],imports:[[oo,To,mo],mo]}),t})();var cr=i(7701);let ur=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),lr=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=Jn(t);return new ft.y(t=>{const i=this._observeElement(e).subscribe(t);return()=>{i.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new lt.xQ,i=this._mutationObserverFactory.create(t=>e.next(t));i&&i.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:i,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:i}=this._observedElements.get(t);e&&e.disconnect(),i.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(ur))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(ur))},token:t,providedIn:"root"}),t})(),hr=(()=>{class t{constructor(t,e,i){this._contentObserver=t,this._elementRef=e,this._ngZone=i,this.event=new s.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=Zn(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=Gn(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe((0,cr.b)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(lr),s.Y36(s.SBq),s.Y36(s.R0b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),dr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[ur]}),t})();function pr(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}let fr=0;const gr=new Map;let mr=null,_r=(()=>{class t{constructor(t){this._document=t}describe(t,e,i){if(!this._canBeDescribed(t,e))return;const n=br(e,i);"string"!=typeof e?(yr(e),gr.set(n,{messageElement:e,referenceCount:0})):gr.has(n)||this._createMessageElement(e,i),this._isElementDescribedByMessage(t,n)||this._addMessageReference(t,n)}removeDescription(t,e,i){if(!e||!this._isElementNode(t))return;const n=br(e,i);if(this._isElementDescribedByMessage(t,n)&&this._removeMessageReference(t,n),"string"==typeof e){const t=gr.get(n);t&&0===t.referenceCount&&this._deleteMessageElement(n)}mr&&0===mr.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const i=gr.get(e);!function(t,e,i){const n=pr(t,e);n.some(t=>t.trim()==i.trim())||(n.push(i.trim()),t.setAttribute(e,n.join(" ")))}(t,"aria-describedby",i.messageElement.id),t.setAttribute("cdk-describedby-host",""),i.referenceCount++}_removeMessageReference(t,e){const i=gr.get(e);i.referenceCount--,function(t,e,i){const n=pr(t,e).filter(t=>t!=i.trim());n.length?t.setAttribute(e,n.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",i.messageElement.id),t.removeAttribute("cdk-describedby-host")}_isElementDescribedByMessage(t,e){const i=pr(t,"aria-describedby"),n=gr.get(e),s=n&&n.messageElement.id;return!!s&&-1!=i.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const i=null==e?"":`${e}`.trim(),n=t.getAttribute("aria-label");return!(!i||n&&n.trim()===i)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0))},token:t,providedIn:"root"}),t})();function br(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function yr(t){t.id||(t.id="cdk-describedby-message-"+fr++)}class wr{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new lt.xQ,this._typeaheadSubscription=Ft.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new lt.xQ,this.change=new lt.xQ,t instanceof s.n_E&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Yt.b)(t=>this._pressedLetters.push(t)),(0,cr.b)(t),(0,at.h)(()=>this._pressedLetters.length>0),(0,At.U)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let i=1;i!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||So(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.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(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),n=e[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const n=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[n]))return void this.setActiveItem(n)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof s.n_E?this._items.toArray():this._items}}class Ar extends wr{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class Mr extends wr{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let vr=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(hE){return null}}((i=t).ownerDocument&&i.ownerDocument.defaultView||window);var i;if(e){if(-1===kr(e))return!1;if(!this.isVisible(e))return!1}let n=t.nodeName.toLowerCase(),s=kr(t);return t.hasAttribute("contenteditable")?-1!==s:"iframe"!==n&&"object"!==n&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),i="input"===e&&t.type;return"text"===i||"password"===i||"select"===e||"textarea"===e}(t))&&("audio"===n?!!t.hasAttribute("controls")&&-1!==s:"video"===n?-1!==s&&(null!==s||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||Tr(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Ws))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Ws))},token:t,providedIn:"root"}),t})();function Tr(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function kr(t){if(!Tr(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class Lr{constructor(t,e,i,n,s=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=n,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),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(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let i=0;i=0;i--){let t=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe((0,vt.q)(1)).subscribe(t)}}let Cr=(()=>{class t{constructor(t,e,i){this._checker=t,this._ngZone=e,this._document=i}create(t,e=!1){return new Lr(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(vr),s.LFG(s.R0b),s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(vr),s.LFG(s.R0b),s.LFG(n.K0))},token:t,providedIn:"root"}),t})();"undefined"!=typeof Element&∈const Sr=new s.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Er=new s.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let zr=(()=>{class t{constructor(t,e,i,n){this._ngZone=e,this._defaultOptions=n,this._document=i,this._liveElement=t||this._createLiveElement()}announce(t,...e){const i=this._defaultOptions;let n,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[n,s]=e,this.clear(),clearTimeout(this._previousTimeout),n||(n=i&&i.politeness?i.politeness:"polite"),null==s&&i&&(s=i.duration),this._liveElement.setAttribute("aria-live",n),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div");for(let i=0;i{class t{constructor(t,e,i,n){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=xr(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{Or(t)?this._lastTouchTarget||this._setOriginForCurrentEventQueue("keyboard"):(null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=Nr(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650))},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=Nr(t),i="focus"===t.type?this._onFocus:this._onBlur;for(let n=e;n;n=n.parentElement)i.call(this,t,n)},this._document=i,this._detectionMode=(null==n?void 0:n.detectionMode)||0}monitor(t,e=!1){const i=Jn(t);if(!this._platform.isBrowser||1!==i.nodeType)return(0,ut.of)(null);const n=eo(i)||this._getDocument(),s=this._elementInfo.get(i);if(s)return e&&(s.checkChildren=!0),s.subject;const o={checkChildren:e,subject:new lt.xQ,rootNode:n};return this._elementInfo.set(i,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(t){const e=Jn(t),i=this._elementInfo.get(e);i&&(i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(i))}focusVia(t,e,i){const n=Jn(t);n===this._getDocument().activeElement?this._getClosestElementsInfo(n).forEach(([t,i])=>this._originChanged(t,e,i)):(this._setOriginForCurrentEventQueue(e),"function"==typeof n.focus&&n.focus(i))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,i){i?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=Nr(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const i=this._elementInfo.get(e);i&&(i.checkChildren||e===Nr(t))&&this._originChanged(e,this._getFocusOrigin(t),i)}_onBlur(t,e){const i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,i=this._rootNodeFocusListenerCount.get(e)||0;i||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,Dr),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,Dr)}),this._rootNodeFocusListenerCount.set(e,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,Dr),t.addEventListener("mousedown",this._documentMousedownListener,Dr),t.addEventListener("touchstart",this._documentTouchstartListener,Dr),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Dr),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Dr),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,Dr),t.removeEventListener("mousedown",this._documentMousedownListener,Dr),t.removeEventListener("touchstart",this._documentTouchstartListener,Dr),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,i){this._setClasses(t,e),this._emitOrigin(i.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((i,n)=>{(n===t||i.checkChildren&&n.contains(t))&&e.push([n,i])}),e}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(Ws),s.LFG(n.K0,8),s.LFG(Rr,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(Ws),s.LFG(n.K0,8),s.LFG(Rr,8))},token:t,providedIn:"root"}),t})();function Nr(t){return t.composedPath?t.composedPath()[0]:t.target}let Ir=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,i=e&&e.getComputedStyle?e.getComputedStyle(t):null,n=(i&&i.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),n){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black"),this._hasCheckedHighContrastMode=!0;const e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Ws),s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Ws),s.LFG(n.K0))},token:t,providedIn:"root"}),t})(),qr=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Ir))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Us,dr]]}),t})();const Br=new s.GfV("12.0.5");class Hr{}function Yr(t,e){return{type:7,name:t,definitions:e,options:{}}}function jr(t,e=null){return{type:4,styles:e,timings:t}}function Fr(t,e=null){return{type:3,steps:t,options:e}}function Wr(t,e=null){return{type:2,steps:t,options:e}}function Ur(t){return{type:6,styles:t,offset:null}}function Kr(t,e,i){return{type:0,name:t,styles:e,options:i}}function Zr(t){return{type:5,steps:t}}function Gr(t,e,i=null){return{type:1,expr:t,animation:e,options:i}}function Xr(t=null){return{type:9,options:t}}function Vr(t,e,i=null){return{type:11,selector:t,animation:e,options:i}}function $r(t){Promise.resolve(null).then(t)}class Jr{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){$r(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Qr{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,n=0;const s=this.players.length;0==s?$r(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++i==s&&this._onDestroy()}),t.onStart(()=>{++n==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function ta(){return"undefined"!=typeof window&&void 0!==window.document}function ea(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function ia(t){switch(t.length){case 0:return new Jr;case 1:return t[0];default:return new Qr(t)}}function na(t,e,i,n,s={},o={}){const r=[],a=[];let c=-1,u=null;if(n.forEach(t=>{const i=t.offset,n=i==c,l=n&&u||{};Object.keys(t).forEach(i=>{let n=i,a=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,r),a){case"!":a=s[i];break;case"*":a=o[i];break;default:a=e.normalizeStyleValue(i,n,a,r)}l[n]=a}),n||a.push(l),u=l,c=i}),r.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${r.join(t)}`)}return a}function sa(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&oa(i,"start",t)));break;case"done":t.onDone(()=>n(i&&oa(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&oa(i,"destroy",t)))}}function oa(t,e,i){const n=i.totalTime,s=ra(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),o=t._data;return null!=o&&(s._data=o),s}function ra(t,e,i,n,s="",o=0,r){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:s,totalTime:o,disabled:!!r}}function aa(t,e,i){let n;return t instanceof Map?(n=t.get(e),n||t.set(e,n=i)):(n=t[e],n||(n=t[e]=i)),n}function ca(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let ua=(t,e)=>!1,la=(t,e)=>!1,ha=(t,e,i)=>[];const da=ea();(da||"undefined"!=typeof Element)&&(ua=ta()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),la=(()=>{if(da||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,i)=>e.apply(t,[i]):la}})(),ha=(t,e,i)=>{let n=[];if(i){const i=t.querySelectorAll(e);for(let t=0;t{const n=i.replace(/([a-z])([A-Z])/g,"$1-$2");e[n]=t[i]}),e}let wa=(()=>{class t{validateStyleProperty(t){return ga(t)}matchesElement(t,e){return ma(t,e)}containsElement(t,e){return _a(t,e)}query(t,e,i){return ba(t,e,i)}computeStyle(t,e,i){return i||""}animate(t,e,i,n,s,o=[],r){return new Jr(i,n)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Aa=(()=>{class t{}return t.NOOP=new wa,t})();function Ma(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:va(parseFloat(e[1]),e[2])}function va(t,e){switch(e){case"s":return 1e3*t;default:return t}}function Ta(t,e,i){return t.hasOwnProperty("duration")?t:function(t,e,i){let n,s=0,o="";if("string"==typeof t){const i=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===i)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};n=va(parseFloat(i[1]),i[2]);const r=i[3];null!=r&&(s=va(parseFloat(r),i[4]));const a=i[5];a&&(o=a)}else n=t;if(!i){let i=!1,o=e.length;n<0&&(e.push("Duration values below 0 are not allowed for this animation step."),i=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),i=!0),i&&e.splice(o,0,`The provided timing value "${t}" is invalid.`)}return{duration:n,delay:s,easing:o}}(t,e,i)}function ka(t,e={}){return Object.keys(t).forEach(i=>{e[i]=t[i]}),e}function La(t,e,i={}){if(e)for(let n in t)i[n]=t[n];else ka(t,i);return i}function Ca(t,e,i){return i?e+":"+i+";":""}function Sa(t){let e="";for(let i=0;i{const s=Ia(n);i&&!i.hasOwnProperty(n)&&(i[n]=t.style[s]),t.style[s]=e[n]}),ea()&&Sa(t))}function za(t,e){t.style&&(Object.keys(e).forEach(e=>{const i=Ia(e);t.style[i]=""}),ea()&&Sa(t))}function xa(t){return Array.isArray(t)?1==t.length?t[0]:Wr(t):t}const Oa=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ra(t){let e=[];if("string"==typeof t){let i;for(;i=Oa.exec(t);)e.push(i[1]);Oa.lastIndex=0}return e}function Da(t,e,i){const n=t.toString(),s=n.replace(Oa,(t,n)=>{let s=e[n];return e.hasOwnProperty(n)||(i.push(`Please provide a value for the animation param ${n}`),s=""),s.toString()});return s==n?t:s}function Pa(t){const e=[];let i=t.next();for(;!i.done;)e.push(i.value),i=t.next();return e}const Na=/-+([a-z0-9])/g;function Ia(t){return t.replace(Na,(...t)=>t[1].toUpperCase())}function qa(t,e){return 0===t||0===e}function Ba(t,e,i){const n=Object.keys(i);if(n.length&&e.length){let o=e[0],r=[];if(n.forEach(t=>{o.hasOwnProperty(t)||r.push(t),o[t]=i[t]}),r.length)for(var s=1;sfunction(t,e,i){if(":"==t[0]){const n=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,i);if("function"==typeof n)return void e.push(n);t=n}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return i.push(`The provided transition expression "${t}" is not supported`),e;const s=n[1],o=n[2],r=n[3];e.push(Ua(s,r)),"<"!=o[0]||"*"==s&&"*"==r||e.push(Ua(r,s))}(t,i,e)):i.push(t),i}const Fa=new Set(["true","1"]),Wa=new Set(["false","0"]);function Ua(t,e){const i=Fa.has(t)||Wa.has(t),n=Fa.has(e)||Wa.has(e);return(s,o)=>{let r="*"==t||t==s,a="*"==e||e==o;return!r&&i&&"boolean"==typeof s&&(r=s?Fa.has(t):Wa.has(t)),!a&&n&&"boolean"==typeof o&&(a=o?Fa.has(e):Wa.has(e)),r&&a}}const Ka=new RegExp("s*:selfs*,?","g");function Za(t,e,i){return new Ga(t).build(e,i)}class Ga{constructor(t){this._driver=t}build(t,e){const i=new Xa(e);return this._resetContextStyleTimingState(i),Ha(this,xa(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,n=e.depCount=0;const s=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const i=t,n=i.name;n.toString().split(/\s*,\s*/).forEach(t=>{i.name=t,s.push(this.visitState(i,e))}),i.name=n}else if(1==t.type){const s=this.visitTransition(t,e);i+=s.queryCount,n+=s.depCount,o.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:o,queryCount:i,depCount:n,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),n=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=n||{};if(i.styles.forEach(t=>{if(Va(t)){const e=t;Object.keys(e).forEach(t=>{Ra(e[t]).forEach(t=>{o.hasOwnProperty(t)||s.add(t)})})}}),s.size){const i=Pa(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${i.join(", ")}`)}}return{type:0,name:t.name,style:i,options:n?{params:n}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=Ha(this,xa(t.animation),e);return{type:1,matchers:ja(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:$a(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>Ha(this,t,e)),options:$a(t.options)}}visitGroup(t,e){const i=e.currentTime;let n=0;const s=t.steps.map(t=>{e.currentTime=i;const s=Ha(this,t,e);return n=Math.max(n,e.currentTime),s});return e.currentTime=n,{type:3,steps:s,options:$a(t.options)}}visitAnimate(t,e){const i=function(t,e){let i=null;if(t.hasOwnProperty("duration"))i=t;else if("number"==typeof t)return Ja(Ta(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=Ja(0,0,"");return t.dynamic=!0,t.strValue=n,t}return i=i||Ta(n,e),Ja(i.duration,i.delay,i.easing)}(t.timings,e.errors);let n;e.currentAnimateTimings=i;let s=t.styles?t.styles:Ur({});if(5==s.type)n=this.visitKeyframes(s,e);else{let s=t.styles,o=!1;if(!s){o=!0;const t={};i.easing&&(t.easing=i.easing),s=Ur(t)}e.currentTime+=i.duration+i.delay;const r=this.visitStyle(s,e);r.isEmptyStep=o,n=r}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?"*"==t?i.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):i.push(t)}):i.push(t.styles);let n=!1,s=null;return i.forEach(t=>{if(Va(t)){const e=t,i=e.easing;if(i&&(s=i,delete e.easing),!n)for(let t in e)if(e[t].toString().indexOf("{{")>=0){n=!0;break}}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:n,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let n=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(i=>{if(!this._driver.validateStyleProperty(i))return void e.errors.push(`The provided animation property "${i}" is not a supported CSS property for animations`);const o=e.collectedStyles[e.currentQuerySelector],r=o[i];let a=!0;r&&(s!=n&&s>=r.startTime&&n<=r.endTime&&(e.errors.push(`The CSS property "${i}" that exists between the times of "${r.startTime}ms" and "${r.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${n}ms"`),a=!1),s=r.startTime),a&&(o[i]={startTime:s,endTime:n}),e.options&&function(t,e,i){const n=e.params||{},s=Ra(t);s.length&&s.forEach(t=>{n.hasOwnProperty(t)||i.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[i],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let n=0;const s=[];let o=!1,r=!1,a=0;const c=t.steps.map(t=>{const i=this._makeStyleAst(t,e);let c=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(Va(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(Va(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}return e}(i.styles),u=0;return null!=c&&(n++,u=i.offset=c),r=r||u<0||u>1,o=o||u0&&n{const o=l>0?n==h?1:l*n:s[n],r=o*f;e.currentTime=d+p.delay+r,p.duration=r,this._validateStyleAst(t,e),t.offset=o,i.styles.push(t)}),i}visitReference(t,e){return{type:8,animation:Ha(this,xa(t.animation),e),options:$a(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:$a(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:$a(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;const[s,o]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(Ka,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,aa(e.collectedStyles,e.currentQuerySelector,{});const r=Ha(this,xa(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:n.limit||0,optional:!!n.optional,includeSelf:o,animation:r,originalSelector:t.selector,options:$a(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:Ta(t.timings,e.errors,!0);return{type:12,animation:Ha(this,xa(t.animation),e),timings:i,options:null}}}class Xa{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Va(t){return!Array.isArray(t)&&"object"==typeof t}function $a(t){var e;return t?(t=ka(t)).params&&(t.params=(e=t.params)?ka(e):null):t={},t}function Ja(t,e,i){return{duration:t,delay:e,easing:i}}function Qa(t,e,i,n,s,o,r=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:s,delay:o,totalTime:s+o,easing:r,subTimeline:a}}class tc{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const ec=new RegExp(":enter","g"),ic=new RegExp(":leave","g");function nc(t,e,i,n,s,o={},r={},a,c,u=[]){return(new sc).buildKeyframes(t,e,i,n,s,o,r,a,c,u)}class sc{buildKeyframes(t,e,i,n,s,o,r,a,c,u=[]){c=c||new tc;const l=new rc(t,e,c,n,s,u,[]);l.options=a,l.currentTimeline.setStyles([o],null,l.errors,a),Ha(this,i,l);const h=l.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(r).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([r],null,l.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[Qa(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.consume(e.element);if(i){const n=e.createSubContext(t.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,n,n.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let n=e.currentTimeline.currentTime;const s=null!=i.duration?Ma(i.duration):null,o=null!=i.delay?Ma(i.delay):null;return 0!==s&&t.forEach(t=>{const i=e.appendInstructionToTimeline(t,s,o);n=Math.max(n,i.duration+i.delay)}),n}visitReference(t,e){e.updateOptions(t.options,!0),Ha(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let n=e;const s=t.options;if(s&&(s.params||s.delay)&&(n=e.createSubContext(s),n.transformIntoNewTimeline(),null!=s.delay)){6==n.previousNode.type&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=oc);const t=Ma(s.delay);n.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>Ha(this,t,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let n=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?Ma(t.options.delay):0;t.steps.forEach(o=>{const r=e.createSubContext(t.options);s&&r.delayNextStep(s),Ha(this,o,r),n=Math.max(n,r.currentTimeline.currentTime),i.push(r.currentTimeline)}),i.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(n),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return Ta(e.params?Da(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,n=e.currentTimeline.duration,s=i.duration,o=e.createSubContext().currentTimeline;o.easing=i.easing,t.styles.forEach(t=>{o.forwardTime((t.offset||0)*s),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(n+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,n=t.options||{},s=n.delay?Ma(n.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=oc);let o=i;const r=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!n.optional,e.errors);e.currentQueryTotal=r.length;let a=null;r.forEach((i,n)=>{e.currentQueryIndex=n;const r=e.createSubContext(t.options,i);s&&r.delayNextStep(s),i===e.element&&(a=r.currentTimeline),Ha(this,t.animation,r),r.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,r.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,n=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),r=o*(e.currentQueryTotal-1);let a=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=r-a;break;case"full":a=i.currentStaggerTime}const c=e.currentTimeline;a&&c.delayNextStep(a);const u=c.currentTime;Ha(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-u+(n.startTime-i.currentTimeline.startTime)}}const oc={};class rc{constructor(t,e,i,n,s,o,r,a){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=s,this.errors=o,this.timelines=r,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=oc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new ac(this._driver,e,0),r.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let n=this.options;null!=i.duration&&(n.duration=Ma(i.duration)),null!=i.delay&&(n.delay=Ma(i.delay));const s=i.params;if(s){let t=n.params;t||(t=this.options.params={}),Object.keys(s).forEach(i=>{e&&t.hasOwnProperty(i)||(t[i]=Da(s[i],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(t=>{i[t]=e[t]})}}return t}createSubContext(t=null,e,i){const n=e||this.element,s=new rc(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=oc,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const n={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new cc(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(s),n}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,n,s,o){let r=[];if(n&&r.push(this.element),t.length>0){t=(t=t.replace(ec,"."+this._enterClassName)).replace(ic,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=i);0!==i&&(e=i<0?e.slice(e.length+i,e.length):e.slice(0,i)),r.push(...e)}return s||0!=r.length||o.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),r}}class ac{constructor(t,e,i,n){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),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.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new ac(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||"*",this._currentKeyframe[t]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,n){e&&(this._previousKeyframe.easing=e);const s=n&&n.params||{},o=function(t,e){const i={};let n;return t.forEach(t=>{"*"===t?(n=n||Object.keys(e),n.forEach(t=>{i[t]="*"})):La(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(o).forEach(t=>{const e=Da(o[t],s,i);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:"*"),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],n=t._styleSummary[e];(!i||n.time>i.time)&&this._updateStyle(e,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let n=[];this._keyframes.forEach((s,o)=>{const r=La(s,!0);Object.keys(r).forEach(i=>{const n=r[i];"!"==n?t.add(i):"*"==n&&e.add(i)}),i||(r.offset=o/this.duration),n.push(r)});const s=t.size?Pa(t.values()):[],o=e.size?Pa(e.values()):[];if(i){const t=n[0],e=ka(t);t.offset=0,e.offset=1,n=[t,e]}return Qa(this.element,n,s,o,this.duration,this.startTime,this.easing,!1)}}class cc extends ac{constructor(t,e,i,n,s,o,r=!1){super(t,e,o.delay),this.element=e,this.keyframes=i,this.preStyleProps=n,this.postStyleProps=s,this._stretchStartingKeyframe=r,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],o=i+e,r=e/o,a=La(t[0],!1);a.offset=0,s.push(a);const c=La(t[0],!1);c.offset=uc(r),s.push(c);const u=t.length-1;for(let n=1;n<=u;n++){let r=La(t[n],!1);r.offset=uc((e+r.offset*i)/o),s.push(r)}i=o,e=0,n="",t=s}return Qa(this.element,t,this.preStyleProps,this.postStyleProps,i,e,n,!0)}}function uc(t,e=3){const i=Math.pow(10,e-1);return Math.round(t*i)/i}class lc{}class hc extends lc{normalizePropertyName(t,e){return Ia(t)}normalizeStyleValue(t,e,i,n){let s="";const o=i.toString().trim();if(dc[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const e=i.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&n.push(`Please provide a CSS unit value for ${t}:${i}`)}return o+s}}const dc=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("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".split(",")))();function pc(t,e,i,n,s,o,r,a,c,u,l,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:i,fromStyles:o,toState:n,toStyles:r,timelines:a,queriedElements:c,preStyleProps:u,postStyleProps:l,totalTime:h,errors:d}}const fc={};class gc{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,n){return function(t,e,i,n,s){return t.some(t=>t(e,i,n,s))}(this.ast.matchers,t,e,i,n)}buildStyles(t,e,i){const n=this._stateStyles["*"],s=this._stateStyles[t],o=n?n.buildStyles(e,i):{};return s?s.buildStyles(e,i):o}build(t,e,i,n,s,o,r,a,c,u){const l=[],h=this.ast.options&&this.ast.options.params||fc,d=this.buildStyles(i,r&&r.params||fc,l),p=a&&a.params||fc,f=this.buildStyles(n,p,l),g=new Set,m=new Map,_=new Map,b="void"===n,y={params:Object.assign(Object.assign({},h),p)},w=u?[]:nc(t,e,this.ast.animation,s,o,d,f,y,c,l);let A=0;if(w.forEach(t=>{A=Math.max(t.duration+t.delay,A)}),l.length)return pc(e,this._triggerName,i,n,b,d,f,[],[],m,_,A,l);w.forEach(t=>{const i=t.element,n=aa(m,i,{});t.preStyleProps.forEach(t=>n[t]=!0);const s=aa(_,i,{});t.postStyleProps.forEach(t=>s[t]=!0),i!==e&&g.add(i)});const M=Pa(g.values());return pc(e,this._triggerName,i,n,b,d,f,w,M,m,_,A)}}class mc{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const i={},n=ka(this.defaultParams);return Object.keys(t).forEach(e=>{const i=t[e];null!=i&&(n[e]=i)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let o=s[t];o.length>1&&(o=Da(o,n,e)),i[t]=o})}}),i}}class _c{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new mc(t.style,t.options&&t.options.params||{})}),bc(this.states,"true","1"),bc(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new gc(t,e,this.states))}),this.fallbackTransition=new gc(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,n){return this.transitionFactories.find(s=>s.match(t,e,i,n))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function bc(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}const yc=new tc;class wc{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],n=Za(this._driver,e,i);if(i.length)throw new Error(`Unable to build the animation due to the following errors: ${i.join("\n")}`);this._animations[t]=n}_buildPlayer(t,e,i){const n=t.element,s=na(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(n,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const n=[],s=this._animations[t];let o;const r=new Map;if(s?(o=nc(this._driver,e,s,"ng-enter","ng-leave",{},{},i,yc,n),o.forEach(t=>{const e=aa(r,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(n.push("The requested animation doesn't exist or has already been destroyed"),o=[]),n.length)throw new Error(`Unable to create the animation due to the following errors: ${n.join("\n")}`);r.forEach((t,e)=>{Object.keys(t).forEach(i=>{t[i]=this._driver.computeStyle(e,i,"*")})});const a=ia(o.map(t=>{const e=r.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,i,n){const s=ra(e,"","","");return sa(this._getPlayer(t),i,s,n),()=>{}}command(t,e,i,n){if("register"==i)return void this.register(t,n[0]);if("create"==i)return void this.create(t,e,n[0]||{});const s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(t)}}}const Ac=[],Mc={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},vc={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Tc{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=null!=(n=i?t.value:t)?n:null,i){const e=ka(t);delete e.value,this.options=e}else this.options={};var n;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(i=>{null==t[i]&&(t[i]=e[i])})}}}const kc=new Tc("void");class Lc{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Rc(e,this._hostClassName)}listen(t,e,i,n){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=i)&&"done"!=s)throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);var s;const o=aa(this._elementListeners,t,[]),r={name:e,phase:i,callback:n};o.push(r);const a=aa(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Rc(t,"ng-trigger"),Rc(t,"ng-trigger-"+e),a[e]=kc),()=>{this._engine.afterFlush(()=>{const t=o.indexOf(r);t>=0&&o.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,i,n=!0){const s=this._getTrigger(e),o=new Sc(this.id,e,t);let r=this._engine.statesByElement.get(t);r||(Rc(t,"ng-trigger"),Rc(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,r={}));let a=r[e];const c=new Tc(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),r[e]=c,a||(a=kc),"void"!==c.value&&a.value===c.value){if(!function(t,e){const i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(let s=0;s{za(t,i),Ea(t,n)})}return}const u=aa(this._engine.playersByElement,t,[]);u.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let l=s.matchTransition(a.value,c.value,t,c.params),h=!1;if(!l){if(!n)return;l=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:l,fromState:a,toState:c,player:o,isFallbackTransition:h}),h||(Rc(t,"ng-animate-queued"),o.onStart(()=>{Dc(t,"ng-animate-queued")})),o.onDone(()=>{let e=this.players.indexOf(o);e>=0&&this.players.splice(e,1);const i=this._engine.playersByElement.get(t);if(i){let t=i.indexOf(o);t>=0&&i.splice(t,1)}}),this.players.push(o),u.push(o),o}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,".ng-trigger",!0);i.forEach(t=>{if(t.__ng_removed)return;const i=this._engine.fetchNamespacesByElement(t);i.size?i.forEach(i=>i.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,i,n){const s=this._engine.statesByElement.get(t);if(s){const o=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const i=this.trigger(t,e,"void",n);i&&o.push(i)}}),o.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&ia(o).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const n=new Set;e.forEach(e=>{const s=e.name;if(n.has(s))return;n.add(s);const o=this._triggers[s].fallbackTransition,r=i[s]||kc,a=new Tc("void"),c=new Sc(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:o,fromState:r,toState:a,player:c,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let n=!1;if(i.totalAnimations){const e=i.players.length?i.playersByQueriedElement.get(t):[];if(e&&e.length)n=!0;else{let e=t;for(;e=e.parentNode;)if(i.statesByElement.get(e)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(t),n)i.markElementAsRemoved(this.id,t,!1,e);else{const n=t.__ng_removed;n&&n!==Mc||(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){Rc(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const n=i.player;if(n.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(e=>{if(e.name==i.triggerName){const n=ra(s,i.triggerName,i.fromState.value,i.toState.value);n._data=t,sa(i.player,e.phase,n,e.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):e.push(i)}),this._queue=[],e.sort((t,e)=>{const i=t.transition.ast.depCount,n=e.transition.ast.depCount;return 0==i||0==n?i-n:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class Cc{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,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=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const i=new Lc(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList.length-1;if(i>=0){let n=!1;for(let s=i;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),n=!0;break}n||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(i);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const t=Object.keys(i);for(let n=0;n=0&&this.collectedLeaveElements.splice(t,1)}if(t){const n=this._fetchNamespace(t);n&&n.insertNode(e,i)}n&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Rc(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Dc(t,"ng-animate-disabled"))}removeNode(t,e,i,n){if(Ec(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n),i){const i=this.namespacesByHostElement.get(e);i&&i.id!==t&&i.removeNode(e,n)}}else this._onRemovalComplete(e,n)}markElementAsRemoved(t,e,i,n){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}listen(t,e,i,n,s){return Ec(e)?this._fetchNamespace(t).listen(e,i,n,s):()=>{}}_buildInstruction(t,e,i,n,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return ia(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=Mc,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;it()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?ia(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const i=new tc,n=[],s=new Map,o=[],r=new Map,a=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(t=>{u.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let i=0;i{const i="ng-enter"+f++;p.set(e,i),t.forEach(t=>Rc(t,i))});const g=[],m=new Set,_=new Set;for(let z=0;zm.add(t)):_.add(t))}const b=new Map,y=Oc(h,Array.from(m));y.forEach((t,e)=>{const i="ng-leave"+f++;b.set(e,i),t.forEach(t=>Rc(t,i))}),t.push(()=>{d.forEach((t,e)=>{const i=p.get(e);t.forEach(t=>Dc(t,i))}),y.forEach((t,e)=>{const i=b.get(e);t.forEach(t=>Dc(t,i))}),g.forEach(t=>{this.processLeaveNode(t)})});const w=[],A=[];for(let z=this._namespaceList.length-1;z>=0;z--)this._namespaceList[z].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(w.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const u=!l||!this.driver.containsElement(l,s),h=b.get(s),d=p.get(s),f=this._buildInstruction(t,i,d,h,u);if(f.errors&&f.errors.length)A.push(f);else{if(u)return e.onStart(()=>za(s,f.fromStyles)),e.onDestroy(()=>Ea(s,f.toStyles)),void n.push(e);if(t.isFallbackTransition)return e.onStart(()=>za(s,f.fromStyles)),e.onDestroy(()=>Ea(s,f.toStyles)),void n.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),i.append(s,f.timelines),o.push({instruction:f,player:e,element:s}),f.queriedElements.forEach(t=>aa(r,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const i=Object.keys(t);if(i.length){let t=a.get(e);t||a.set(e,t=new Set),i.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const i=Object.keys(t);let n=c.get(e);n||c.set(e,n=new Set),i.forEach(t=>n.add(t))})}});if(A.length){const t=[];A.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),w.forEach(t=>t.destroy()),this.reportError(t)}const M=new Map,v=new Map;o.forEach(t=>{const e=t.element;i.has(e)&&(v.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,M))}),n.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{aa(M,e,[]).push(t),t.destroy()})});const T=g.filter(t=>Ic(t,a,c)),k=new Map;xc(k,this.driver,_,c,"*").forEach(t=>{Ic(t,a,c)&&T.push(t)});const L=new Map;d.forEach((t,e)=>{xc(L,this.driver,new Set(t),a,"!")}),T.forEach(t=>{const e=k.get(t),i=L.get(t);k.set(t,Object.assign(Object.assign({},e),i))});const C=[],S=[],E={};o.forEach(t=>{const{element:e,player:o,instruction:r}=t;if(i.has(e)){if(u.has(e))return o.onDestroy(()=>Ea(e,r.toStyles)),o.disabled=!0,o.overrideTotalTime(r.totalTime),void n.push(o);let t=E;if(v.size>1){let i=e;const n=[];for(;i=i.parentNode;){const e=v.get(i);if(e){t=e;break}n.push(i)}n.forEach(e=>v.set(e,t))}const i=this._buildAnimation(o.namespaceId,r,M,s,L,k);if(o.setRealPlayer(i),t===E)C.push(o);else{const e=this.playersByElement.get(t);e&&e.length&&(o.parentPlayer=ia(e)),n.push(o)}}else za(e,r.fromStyles),o.onDestroy(()=>Ea(e,r.toStyles)),S.push(o),u.has(e)&&n.push(o)}),S.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const i=ia(e);t.setRealPlayer(i)}}),n.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let z=0;z!t.destroyed);n.length?Pc(this,t,n):this.processLeaveNode(t)}return g.length=0,C.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),C}elementContainsData(t,e){let i=!1;const n=e.__ng_removed;return n&&n.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,n,s){let o=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(o=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||"void"==s;e.forEach(e=>{e.queued||(t||e.triggerName==n)&&o.push(e)})}}return(i||n)&&(o=o.filter(t=>!(i&&i!=t.namespaceId||n&&n!=t.triggerName))),o}_beforeAnimationBuild(t,e,i){const n=e.element,s=e.isRemovalTransition?void 0:t,o=e.isRemovalTransition?void 0:e.triggerName;for(const r of e.timelines){const t=r.element,a=t!==n,c=aa(i,t,[]);this._getPreviousPlayers(t,a,s,o,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),c.push(t)})}za(n,e.fromStyles)}_buildAnimation(t,e,i,n,s,o){const r=e.triggerName,a=e.element,c=[],u=new Set,l=new Set,h=e.timelines.map(e=>{const h=e.element;u.add(h);const d=h.__ng_removed;if(d&&d.removedBeforeQueried)return new Jr(e.duration,e.delay);const p=h!==a,f=function(t){const e=[];return Nc(t,e),e}((i.get(h)||Ac).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===h),g=s.get(h),m=o.get(h),_=na(0,this._normalizer,0,e.keyframes,g,m),b=this._buildPlayer(e,_,f);if(e.subTimeline&&n&&l.add(h),p){const e=new Sc(t,r,h);e.setRealPlayer(b),c.push(e)}return b});c.forEach(t=>{aa(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,i){let n;if(t instanceof Map){if(n=t.get(e),n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&t.delete(e)}}else if(n=t[e],n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&delete t[e]}return n}(this.playersByQueriedElement,t.element,t))}),u.forEach(t=>Rc(t,"ng-animating"));const d=ia(h);return d.onDestroy(()=>{u.forEach(t=>Dc(t,"ng-animating")),Ea(a,e.toStyles)}),l.forEach(t=>{aa(n,t,[]).push(d)}),d}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new Jr(t.duration,t.delay)}}class Sc{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new Jr,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>sa(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){aa(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Ec(t){return t&&1===t.nodeType}function zc(t,e){const i=t.style.display;return t.style.display=null!=e?e:"none",i}function xc(t,e,i,n,s){const o=[];i.forEach(t=>o.push(zc(t)));const r=[];n.forEach((i,n)=>{const o={};i.forEach(t=>{const i=o[t]=e.computeStyle(n,t,s);i&&0!=i.length||(n.__ng_removed=vc,r.push(n))}),t.set(n,o)});let a=0;return i.forEach(t=>zc(t,o[a++])),r}function Oc(t,e){const i=new Map;if(t.forEach(t=>i.set(t,[])),0==e.length)return i;const n=new Set(e),s=new Map;function o(t){if(!t)return 1;let e=s.get(t);if(e)return e;const r=t.parentNode;return e=i.has(r)?r:n.has(r)?1:o(r),s.set(t,e),e}return e.forEach(t=>{const e=o(t);1!==e&&i.get(e).push(t)}),i}function Rc(t,e){if(t.classList)t.classList.add(e);else{let i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function Dc(t,e){if(t.classList)t.classList.remove(e);else{let i=t.$$classes;i&&delete i[e]}}function Pc(t,e,i){ia(i).onDone(()=>t.processLeaveNode(e))}function Nc(t,e){for(let i=0;is.add(t)):e.set(t,n),i.delete(t),!0}class qc{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Cc(t,e,i),this._timelineEngine=new wc(t,e,i),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,i,n,s){const o=t+"-"+n;let r=this._triggerCache[o];if(!r){const t=[],e=Za(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${n}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);r=function(t,e){return new _c(t,e)}(n,e),this._triggerCache[o]=r}this._transitionEngine.registerTrigger(e,n,r)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,n){this._transitionEngine.insertNode(t,e,i,n)}onRemove(t,e,i,n){this._transitionEngine.removeNode(t,e,n||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,n){if("@"==i.charAt(0)){const[t,s]=ca(i);this._timelineEngine.command(t,e,s,n)}else this._transitionEngine.trigger(t,e,i,n)}listen(t,e,i,n,s){if("@"==i.charAt(0)){const[t,n]=ca(i);return this._timelineEngine.listen(t,e,n,s)}return this._transitionEngine.listen(t,e,i,n,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Bc(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=Yc(e[0]),e.length>1&&(n=Yc(e[e.length-1]))):e&&(i=Yc(e)),i||n?new Hc(t,i,n):null}let Hc=(()=>{class t{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&Ea(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ea(this._element,this._initialStyles),this._endStyles&&(Ea(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(za(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(za(this._element,this._endStyles),this._endStyles=null),Ea(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Yc(t){let e=null;const i=Object.keys(t);for(let n=0;nthis._handleCallback(t)}apply(){!function(t,e){const i=Xc(t,"").trim();i.length&&(function(t,e){let i=0;for(let n=0;n=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Zc(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const i=Xc(t,"").split(","),n=Kc(i,e);n>=0&&(i.splice(n,1),Gc(t,"",i.join(",")))}(this._element,this._name))}}function Wc(t,e,i){Gc(t,"PlayState",i,Uc(t,e))}function Uc(t,e){const i=Xc(t,"");return i.indexOf(",")>0?Kc(i.split(","),e):Kc([i],e)}function Kc(t,e){for(let i=0;i=0)return i;return-1}function Zc(t,e,i){i?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function Gc(t,e,i,n){const s="animation"+e;if(null!=n){const e=t.style[s];if(e.length){const t=e.split(",");t[n]=i,i=t.join(",")}}t.style[s]=i}function Xc(t,e){return t.style["animation"+e]||""}class Vc{constructor(t,e,i,n,s,o,r,a){this.element=t,this.keyframes=e,this.animationName=i,this._duration=n,this._delay=s,this._finalStyles=r,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=n+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Fc(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(i=>{"offset"!=i&&(t[i]=e?this._finalStyles[i]:Ya(this.element,i))})}this.currentSnapshot=t}}class $c extends Jr{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=ya(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class Jc{constructor(){this._count=0}validateStyleProperty(t){return ga(t)}matchesElement(t,e){return ma(t,e)}containsElement(t,e){return _a(t,e)}query(t,e,i){return ba(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(t=>ya(t));let n=`@keyframes ${e} {\n`,s="";i.forEach(t=>{s=" ";const e=parseFloat(t.offset);n+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const i=t[e];switch(e){case"offset":return;case"easing":return void(i&&(n+=`${s}animation-timing-function: ${i};\n`));default:return void(n+=`${s}${e}: ${i};\n`)}}),n+=`${s}}\n`}),n+="}\n";const o=document.createElement("style");return o.textContent=n,o}animate(t,e,i,n,s,o=[],r){const a=o.filter(t=>t instanceof Vc),c={};qa(i,n)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const u=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(i=>{"offset"!=i&&"easing"!=i&&(e[i]=t[i])})}),e}(e=Ba(t,e,c));if(0==i)return new $c(t,u);const l="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,l,e);(function(t){var e;const i=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&i instanceof ShadowRoot?i:document.head})(t).appendChild(h);const d=Bc(t,e),p=new Vc(t,e,l,i,n,s,u,d);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}}class Qc{constructor(t,e,i,n){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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}_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(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:Ya(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class tu{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(eu().toString()),this._cssKeyframesDriver=new Jc}validateStyleProperty(t){return ga(t)}matchesElement(t,e){return ma(t,e)}containsElement(t,e){return _a(t,e)}query(t,e,i){return ba(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,n,s,o=[],r){if(!r&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,s,o);const a={duration:i,delay:n,fill:0==n?"both":"forwards"};s&&(a.easing=s);const c={},u=o.filter(t=>t instanceof Qc);qa(i,n)&&u.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const l=Bc(t,e=Ba(t,e=e.map(t=>La(t,!1)),c));return new Qc(t,e,a,l)}}function eu(){return ta()&&Element.prototype.animate||{}}let iu=(()=>{class t extends Hr{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:s.ifc.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?Wr(t):t;return ou(this._renderer,null,e,"register",[i]),new nu(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.FYo),s.LFG(n.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class nu extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new su(this._id,t,e||{},this._renderer)}}class su{constructor(t,e,i,n){this.id=t,this.element=e,this._renderer=n,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return ou(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function ou(t,e,i,n,s){return t.setProperty(e,`@@${i}:${n}`,s)}let ru=(()=>{class t{constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const i=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(i);return t||(t=new au("",i,this.engine),this._rendererCache.set(i,t)),t}const n=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const o=e=>{Array.isArray(e)?e.forEach(o):this.engine.registerTrigger(n,s,t,e.name,e)};return e.data.animation.forEach(o),new cu(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){t>=0&&te(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,i]=t;e(i)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,i]))}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 t.\u0275fac=function(e){return new(e||t)(s.LFG(s.FYo),s.LFG(qc),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class au{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,n=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,n)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,n){this.delegate.setAttribute(t,e,i,n)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,n){this.delegate.setStyle(t,e,i,n)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class cu extends au{constructor(t,e,i,n){super(e,i,n),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const n=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,n,s,o,t=>{this.factory.scheduleListenerCallback(t._data||-1,i,t)})}return this.delegate.listen(t,e,i)}}let uu=(()=>{class t extends qc{constructor(t,e,i){super(t.body,e,i)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0),s.LFG(Aa),s.LFG(lc))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const lu=new s.OlP("AnimationModuleType"),hu=[{provide:Hr,useClass:iu},{provide:lc,useFactory:function(){return new hc}},{provide:qc,useClass:uu},{provide:s.FYo,useFactory:function(t,e,i){return new ru(t,e,i)},deps:[v,qc,s.R0b]}],du=[{provide:Aa,useFactory:function(){return"function"==typeof eu()?new tu:new Jc}},{provide:lu,useValue:"BrowserAnimations"},...hu],pu=[{provide:Aa,useClass:wa},{provide:lu,useValue:"NoopAnimations"},...hu];let fu=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?pu:du}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:du,imports:[q]}),t})();function gu(t,e){if(1&t&&s._UZ(0,"mat-pseudo-checkbox",4),2&t){const t=s.oxw();s.Q6J("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function mu(t,e){if(1&t&&(s.TgZ(0,"span",5),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.hij("(",t.group.label,")")}}const _u=["*"];let bu=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),yu=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const wu=new s.GfV("12.0.5"),Au=new s.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let Mu=(()=>{class t{constructor(t,e,i){this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return(0,s.X6Q)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&wu.full!==Br.full&&console.warn("The Angular Material version ("+wu.full+") does not match the Angular CDK version ("+Br.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Ir),s.LFG(Au,8),s.LFG(n.K0))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[oo],oo]}),t})();function vu(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Zn(t)}}}function Tu(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function ku(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Zn(t)}}}function Lu(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?Gn(t):this.defaultTabIndex}}}function Cu(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new lt.xQ}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}function Su(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new ft.y(t=>{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}const Eu=new s.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return(0,s.f3M)(s.soG)}});class zu{constructor(){this._localeChanges=new lt.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let i=this.isValid(t),n=this.isValid(e);return i&&n?!this.compareDate(t,e):i==n}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}}const xu=new s.OlP("mat-date-formats");let Ou;try{Ou="undefined"!=typeof Intl}catch(hE){Ou=!1}const Ru={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},Du=Iu(31,t=>String(t+1)),Pu={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},Nu=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Iu(t,e){const i=Array(t);for(let n=0;n{class t extends zu{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(Ou){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return Iu(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return Ru[t]}getDateNames(){if(Ou){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Iu(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return Du}getDayOfWeekNames(t){if(Ou){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return Iu(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return Pu[t]}getYearName(t){if(Ou){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,i){let n=this._createDateWithOverflow(t,e,i);return n.getMonth(),n}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(Ou){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});const i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(i,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let i=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(i)!=((this.getMonth(t)+e)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(Nu.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,i){const n=new Date;return n.setFullYear(t,e,i),n.setHours(0,0,0,0),n}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const i=new Date;return i.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),i.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(i)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Eu,8),s.LFG(Ws))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Bu=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Hu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function Yu(t,e,i){const n=t.nativeElement.classList;i?n.add(e):n.remove(e)}let ju=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Mu],Mu]}),t})();class Fu{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Wu={enterDuration:450,exitDuration:400},Uu=Js({passive:!0}),Ku=["mousedown","touchstart"],Zu=["mouseup","mouseleave","touchend","touchcancel"];class Gu{constructor(t,e,i,n){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,n.isBrowser&&(this._containerElement=Jn(i))}fadeInRipple(t,e,i={}){const n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},Wu),i.animation);i.centered&&(t=n.left+n.width/2,e=n.top+n.height/2);const o=i.radius||function(t,e,i){const n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),s=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+s*s)}(t,e,n),r=t-n.left,a=e-n.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=r-o+"px",u.style.top=a-o+"px",u.style.height=2*o+"px",u.style.width=2*o+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),window.getComputedStyle(u).getPropertyValue("opacity"),u.style.transform="scale(1)";const l=new Fu(this,u,i);return l.state=0,this._activeRipples.add(l),i.persistent||(this._mostRecentTransientRipple=l),this._runTimeoutOutsideZone(()=>{const t=l===this._mostRecentTransientRipple;l.state=1,i.persistent||t&&this._isPointerDown||l.fadeOut()},c),l}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,n=Object.assign(Object.assign({},Wu),t.config.animation);i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.parentNode.removeChild(i)},n.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=Jn(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Ku))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Zu),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=xr(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,Uu)})})}_removeTriggerEvents(){this._triggerElement&&(Ku.forEach(t=>{this._triggerElement.removeEventListener(t,this,Uu)}),this._pointerUpEventsRegistered&&Zu.forEach(t=>{this._triggerElement.removeEventListener(t,this,Uu)}))}}const Xu=new s.OlP("mat-ripple-global-options");let Vu=(()=>{class t{constructor(t,e,i,n,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=n||{},this._rippleRenderer=new Gu(this,e,t,i)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,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:Object.assign(Object.assign(Object.assign({},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(t,e=0,i){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(Ws),s.Y36(Xu,8),s.Y36(lu,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),$u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Mu,Us],Mu]}),t})(),Ju=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(lu,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&s.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},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:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::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}\n'],encapsulation:2,changeDetection:0}),t})(),Qu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Mu]]}),t})();const tl=new s.OlP("MAT_OPTION_PARENT_COMPONENT");class el{}const il=vu(el);let nl=0,sl=(()=>{class t extends il{constructor(t){var e;super(),this._labelId="mat-optgroup-label-"+nl++,this._inert=null!==(e=null==t?void 0:t.inertGroups)&&void 0!==e&&e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(tl,8))},t.\u0275dir=s.lG2({type:t,inputs:{label:"label"},features:[s.qOj]}),t})();const ol=new s.OlP("MatOptgroup");let rl=0;class al{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let cl=(()=>{class t{constructor(t,e,i,n){this._element=t,this._changeDetectorRef=e,this._parent=i,this.group=n,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+rl++,this.onSelectionChange=new s.vpe,this._stateChanges=new lt.xQ}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(t){this._disabled=Zn(t)}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(t,e){const i=this._getHostElement();"function"==typeof i.focus&&i.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){13!==t.keyCode&&32!==t.keyCode||So(t)||(this._selectViaInteraction(),t.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 t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new al(this,t))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(void 0),s.Y36(sl))},t.\u0275dir=s.lG2({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),ul=(()=>{class t extends cl{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(tl,8),s.Y36(ol,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(s.Ikx("id",e.id),s.uIk("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),s.ekj("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[s.qOj],ngContentSelectors:_u,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(t,e){1&t&&(s.F$t(),s.YNc(0,gu,1,2,"mat-pseudo-checkbox",0),s.TgZ(1,"span",1),s.Hsn(2),s.qZA(),s.YNc(3,mu,2,1,"span",2),s._UZ(4,"div",3)),2&t&&(s.Q6J("ngIf",e.multiple),s.xp6(3),s.Q6J("ngIf",e.group&&e.group._inert),s.xp6(1),s.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[n.O5,Vu,Ju],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:transparent}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function ll(t,e,i){if(i.length){let n=e.toArray(),s=i.toArray(),o=0;for(let e=0;ei+n?Math.max(0,t-n+e):i}let dl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[$u,n.ez,Mu,Qu]]}),t})();function pl(t,e){}class fl{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=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const gl={dialogContainer:Yr("dialogContainer",[Kr("void, exit",Ur({opacity:0,transform:"scale(0.7)"})),Kr("enter",Ur({transform:"none"})),Gr("* => enter",jr("150ms cubic-bezier(0, 0, 0.2, 1)",Ur({transform:"none",opacity:1}))),Gr("* => void, * => exit",jr("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Ur({opacity:0})))])};let ml=(()=>{class t extends Ao{constructor(t,e,i,n,o,r){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=i,this._config=o,this._focusMonitor=r,this._animationStateChanged=new s.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=o.ariaLabelledBy||null,this._document=n}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=io(),i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=io())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=io();return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Cr),s.Y36(s.sBO),s.Y36(n.K0,8),s.Y36(fl),s.Y36(Pr))},t.\u0275dir=s.lG2({type:t,viewQuery:function(t,e){if(1&t&&s.Gf(vo,7),2&t){let t;s.iGM(t=s.CRH())&&(e._portalOutlet=t.first)}},features:[s.qOj]}),t})(),_l=(()=>{class t extends ml{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&s.WFA("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(s.Ikx("id",e._id),s.uIk("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),s.d8E("@dialogContainer",e._state))},features:[s.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&s.YNc(0,pl,0,0,"ng-template",0)},directives:[vo],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[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.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}\n"],encapsulation:2,data:{animation:[gl.dialogContainer]}}),t})(),bl=0;class yl{constructor(t,e,i="mat-dialog-"+bl++){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new lt.xQ,this._afterClosed=new lt.xQ,this._beforeClosed=new lt.xQ,this._state=0,e._id=i,e._animationStateChanged.pipe((0,at.h)(t=>"opened"===t.state),(0,vt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,at.h)(t=>"closed"===t.state),(0,vt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe((0,at.h)(t=>27===t.keyCode&&!this.disableClose&&!So(t))).subscribe(t=>{t.preventDefault(),wl(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():wl(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe((0,at.h)(t=>"closing"===t.state),(0,vt.q)(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function wl(t,e,i){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(i)}const Al=new s.OlP("MatDialogData"),Ml=new s.OlP("mat-dialog-default-options"),vl=new s.OlP("mat-dialog-scroll-strategy"),Tl={provide:vl,deps:[er],useFactory:function(t){return()=>t.scrollStrategies.block()}};let kl=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c){this._overlay=t,this._injector=e,this._defaultOptions=i,this._parentDialog=n,this._overlayContainer=s,this._dialogRefConstructor=r,this._dialogContainerType=a,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new lt.xQ,this._afterOpenedAtThisLevel=new lt.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=yt(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(kt(void 0))),this._scrollStrategy=o}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new fl)).id&&this.getDialogById(e.id);const i=this._createOverlay(e),n=this._attachDialogContainer(i,e),s=this._attachDialogContent(t,n,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),n._initializeWithAttachedContent(),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new Io({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const i=s.zs3.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:fl,useValue:e}]}),n=new bo(this._dialogContainerType,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}_attachDialogContent(t,e,i,n){const o=new this._dialogRefConstructor(i,e,n.id);if(t instanceof s.Rgc)e.attachTemplatePortal(new yo(t,null,{$implicit:n.data,dialogRef:o}));else{const i=this._createInjector(n,o,e),s=e.attachComponentPortal(new bo(t,n.viewContainerRef,i));o.componentInstance=s.instance}return o.updateSize(n.width,n.height).updatePosition(n.position),o}_createInjector(t,e,i){const n=t&&t.viewContainerRef&&t.viewContainerRef.injector,o=[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||n&&n.get(so,null,s.XFs.Optional)||o.push({provide:so,useValue:{value:t.direction,change:(0,ut.of)()}}),s.zs3.create({parent:n||this._injector,providers:o})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let i=e.length-1;i>-1;i--){let n=e[i];n===t||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(er),s.Y36(s.zs3),s.Y36(void 0),s.Y36(void 0),s.Y36(Wo),s.Y36(void 0),s.Y36(s.DyG),s.Y36(s.DyG),s.Y36(s.OlP))},t.\u0275dir=s.lG2({type:t}),t})(),Ll=(()=>{class t extends kl{constructor(t,e,i,n,s,o,r){super(t,e,n,o,r,s,yl,_l,Al)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(er),s.LFG(s.zs3),s.LFG(n.Ye,8),s.LFG(Ml,8),s.LFG(vl),s.LFG(t,12),s.LFG(Wo))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Cl=0,Sl=(()=>{class t{constructor(t,e,i){this._dialogRef=t,this._elementRef=e,this._dialog=i,this.id="mat-dialog-title-"+Cl++}ngOnInit(){this._dialogRef||(this._dialogRef=function(t,e){let i=t.nativeElement.parentElement;for(;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?e.find(t=>t.id===i.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yl,8),s.Y36(s.SBq),s.Y36(Ll))},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&s.Ikx("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),El=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),zl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})(),xl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Ll,Tl],imports:[[ar,To,Mu],Mu]}),t})();var Ol=i(2623);let Rl=(()=>{class t{constructor(t,e,i,n,s){this.injector=t,this.store=e,this.dialog=i,this.route=n,this.oauthService=s,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(Mn),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(t=>{t.idpFilter&&(this.filterShortname=t.idpFilter)})}getClientConfig(){const t=this.setIdpFilter(),e=t?{acr_values:t}:{};return this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(e.prompt="consent"),{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"),customQueryParams:e}}setIdpFilter(){const t=location.search.substr(1).split("&");this.filterShortname=null;const e=this.store.get("oidc_client","filters");if(!e)return null;let i=null;return t.forEach(t=>{const n=t.split("=");"idpFilter"===n[0]&&e[n[1]]&&(this.filterShortname=n[1],i=e[n[1]])}),e.default&&!i?(this.filterShortname="default",e.default):i}startIdpFilterKeeper(){this.router.events.pipe((0,at.h)(t=>t instanceof Xt)).subscribe(()=>{const t={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===t.idpFilter?{}:t,queryParamsHandling:"merge",replaceUrl:!0})})}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const t=location.pathname,e=location.search.substr(1);return"/api-callback"===t?this.handleAuthCallback().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(t,e).then(()=>this.startRefreshToken())}startRefreshToken(){return this.isLoggedInPromise().then(t=>!!t&&(this.oauthService.events.pipe((0,at.h)(t=>"token_expires"===t.type)).subscribe(()=>{this.oauthService.refreshToken().then(t=>{localStorage.setItem("refresh_token",t.refresh_token)})}),!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()}isPotentiallyValidPath(t){const e=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===t)return!0;for(const i of e)if(t.startsWith(i))return!0;return!1}tryRefreshToken(){return localStorage.getItem("refresh_token")?(sessionStorage.setItem("refresh_token",localStorage.getItem("refresh_token")),this.oauthService.loadDiscoveryDocument().then(()=>this.oauthService.refreshToken()).then(()=>Promise.resolve()).catch(t=>t)):Promise.resolve()}verifyAuthentication(t,e){return this.tryRefreshToken().then(()=>this.isLoggedInPromise()).then(i=>i?(this.oauthService.loadDiscoveryDocument().then(()=>localStorage.setItem("refresh_token",this.oauthService.getRefreshToken())),!0):this.isPotentiallyValidPath(t)?(sessionStorage.setItem("auth:redirect",t),sessionStorage.setItem("auth:queryParams",e),!1):new Promise((t,e)=>e("Invalid path")))}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const t=sessionStorage.getItem("mfa_route");if(t)return this.router.navigate([t],{replaceUrl:!0});let e=sessionStorage.getItem("auth:redirect");const i=sessionStorage.getItem("auth:queryParams");let n=[];i&&(n=i.split("&"));const s={};return n.forEach(t=>{const e=t.split("=");s[e[0]]=e[1]}),e&&"/login"!==e||(e="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),s.idpFilter&&(this.filterShortname=s.idpFilter),this.router.navigate([e],{queryParams:s,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.zs3),s.LFG(Kn),s.LFG(Ll),s.LFG(Qe),s.LFG(Ol.Ct))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Dl=i(2056);function Pl(...t){if(1===t.length){const e=t[0];if((0,Qn.k)(e))return Nl(e,null);if((0,Dl.K)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Nl(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Nl(t=1===t.length&&(0,Qn.k)(t[0])?t[0]:t,null).pipe((0,At.U)(t=>e(...t)))}return Nl(t,null)}function Nl(t,e){return new ft.y(i=>{const n=t.length;if(0===n)return void i.complete();const s=new Array(n);let o=0,r=0;for(let a=0;a{u||(u=!0,r++),s[a]=t},error:t=>i.error(t),complete:()=>{o++,o!==n&&u||(r===n&&i.next(e?e.reduce((t,e,i)=>(t[e]=s[i],t),{}):s),i.complete())}}))}})}class Il{}let ql=(()=>{class t extends Il{getTranslation(t){return(0,ut.of)({})}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class Bl{}let Hl=(()=>{class t{handle(t){return t.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function Yl(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;let i,n,s,o=typeof t;if(o==typeof e&&"object"==o){if(!Array.isArray(t)){if(Array.isArray(e))return!1;for(n in s=Object.create(null),t){if(!Yl(t[n],e[n]))return!1;s[n]=!0}for(n in e)if(!(n in s)&&void 0!==e[n])return!1;return!0}if(!Array.isArray(e))return!1;if((i=t.length)==e.length){for(n=0;n{Fl(e[n])?n in t?i[n]=Wl(t[n],e[n]):Object.assign(i,{[n]:e[n]}):Object.assign(i,{[n]:e[n]})}),i}class Ul{}let Kl=(()=>{class t extends Ul{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(t,e){let i;return i="string"==typeof t?this.interpolateString(t,e):"function"==typeof t?this.interpolateFunction(t,e):t,i}getValue(t,e){let i="string"==typeof e?e.split("."):[e];e="";do{e+=i.shift(),!jl(t)||!jl(t[e])||"object"!=typeof t[e]&&i.length?i.length?e+=".":t=void 0:(t=t[e],e="")}while(i.length);return t}interpolateFunction(t,e){return t(e)}interpolateString(t,e){return e?t.replace(this.templateMatcher,(t,i)=>{let n=this.getValue(e,i);return jl(n)?n:t}):t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class Zl{}let Gl=(()=>{class t extends Zl{compile(t,e){return t}compileTranslations(t,e){return t}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class Xl{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new s.vpe,this.onLangChange=new s.vpe,this.onDefaultLangChange=new s.vpe}}const Vl=new s.OlP("USE_STORE"),$l=new s.OlP("USE_DEFAULT_LANG"),Jl=new s.OlP("DEFAULT_LANGUAGE"),Ql=new s.OlP("USE_EXTEND");let th=(()=>{class t{constructor(t,e,i,n,o,r=!0,a=!1,c=!1,u){this.store=t,this.currentLoader=e,this.compiler=i,this.parser=n,this.missingTranslationHandler=o,this.useDefaultLang=r,this.isolate=a,this.extend=c,this.pending=!1,this._onTranslationChange=new s.vpe,this._onLangChange=new s.vpe,this._onDefaultLangChange=new s.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(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}setDefaultLang(t){if(t===this.defaultLang)return;let e=this.retrieveTranslations(t);void 0!==e?(null==this.defaultLang&&(this.defaultLang=t),e.pipe((0,vt.q)(1)).subscribe(e=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return(0,ut.of)(this.translations[t]);let e=this.retrieveTranslations(t);return void 0!==e?(this.currentLang||(this.currentLang=t),e.pipe((0,vt.q)(1)).subscribe(e=>{this.changeLang(t)}),e):(this.changeLang(t),(0,ut.of)(this.translations[t]))}retrieveTranslations(t){let e;return(void 0===this.translations[t]||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),e=this._translationRequests[t]),e}getTranslation(t){this.pending=!0;const e=this.currentLoader.getTranslation(t).pipe(Ys(1),(0,vt.q)(1));return this.loadingTranslations=e.pipe((0,At.U)(e=>this.compiler.compileTranslations(e,t)),Ys(1),(0,vt.q)(1)),this.loadingTranslations.subscribe({next:e=>{this.translations[t]=this.extend&&this.translations[t]?Object.assign(Object.assign({},e),this.translations[t]):e,this.updateLangs(),this.pending=!1},error:t=>{this.pending=!1}}),e}setTranslation(t,e,i=!1){e=this.compiler.compileTranslations(e,t),this.translations[t]=(i||this.extend)&&this.translations[t]?Wl(this.translations[t],e):e,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,e,i){let n;if(e instanceof Array){let n={},s=!1;for(let o of e)n[o]=this.getParsedResult(t,o,i),ms(n[o])&&(s=!0);return s?Pl(e.map(t=>ms(n[t])?n[t]:(0,ut.of)(n[t]))).pipe((0,At.U)(t=>{let i={};return t.forEach((t,n)=>{i[e[n]]=t}),i})):n}if(t&&(n=this.parser.interpolate(this.parser.getValue(t,e),i)),void 0===n&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(n=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e),i)),void 0===n){let t={key:e,translateService:this};void 0!==i&&(t.interpolateParams=i),n=this.missingTranslationHandler.handle(t)}return void 0!==n?n:e}get(t,e){if(!jl(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,xt.b)(i=>ms(i=this.getParsedResult(i,t,e))?i:(0,ut.of)(i)));{let i=this.getParsedResult(this.translations[this.currentLang],t,e);return ms(i)?i:(0,ut.of)(i)}}getStreamOnTranslationChange(t,e){if(!jl(t)||!t.length)throw new Error('Parameter "key" required');return _t(yt(()=>this.get(t,e)),this.onTranslationChange.pipe((0,Mt.w)(i=>{const n=this.getParsedResult(i.translations,t,e);return"function"==typeof n.subscribe?n:(0,ut.of)(n)})))}stream(t,e){if(!jl(t)||!t.length)throw new Error('Parameter "key" required');return _t(yt(()=>this.get(t,e)),this.onLangChange.pipe((0,Mt.w)(i=>{const n=this.getParsedResult(i.translations,t,e);return ms(n)?n:(0,ut.of)(n)})))}instant(t,e){if(!jl(t)||!t.length)throw new Error('Parameter "key" required');let i=this.getParsedResult(this.translations[this.currentLang],t,e);if(ms(i)){if(t instanceof Array){let e={};return t.forEach((i,n)=>{e[t[n]]=t[n]}),e}return t}return i}set(t,e,i=this.currentLang){this.translations[i][t]=this.compiler.compile(e,i),this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==t?(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Xl),s.LFG(Il),s.LFG(Zl),s.LFG(Ul),s.LFG(Bl),s.LFG($l),s.LFG(Vl),s.LFG(Ql),s.LFG(Jl))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),eh=(()=>{class t{constructor(t,e){this.translate=t,this._ref=e,this.value=""}updateValue(t,e,i){let n=e=>{this.value=void 0!==e?e:t,this.lastKey=t,this._ref.markForCheck()};if(i){let s=this.translate.getParsedResult(i,t,e);ms(s.subscribe)?s.subscribe(n):n(s)}this.translate.get(t,e).subscribe(n)}transform(t,...e){if(!t||!t.length)return t;if(Yl(t,this.lastKey)&&Yl(e,this.lastParams))return this.value;let i;if(jl(e[0])&&e.length)if("string"==typeof e[0]&&e[0].length){let t=e[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{i=JSON.parse(t)}catch(n){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${e[0]}`)}}else"object"!=typeof e[0]||Array.isArray(e[0])||(i=e[0]);return this.lastKey=t,this.lastParams=e,this.updateValue(t,i),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(e=>{this.lastKey&&e.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(t,i,e.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(e=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i,e.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,i))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(th,16),s.Y36(s.sBO,16))},t.\u0275pipe=s.Yjl({name:"translate",type:t,pure:!1}),t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),ih=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:Il,useClass:ql},e.compiler||{provide:Zl,useClass:Gl},e.parser||{provide:Ul,useClass:Kl},e.missingTranslationHandler||{provide:Bl,useClass:Hl},Xl,{provide:Vl,useValue:e.isolate},{provide:$l,useValue:e.useDefaultLang},{provide:Ql,useValue:e.extend},{provide:Jl,useValue:e.defaultLanguage},th]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:Il,useClass:ql},e.compiler||{provide:Zl,useClass:Gl},e.parser||{provide:Ul,useClass:Kl},e.missingTranslationHandler||{provide:Bl,useClass:Hl},{provide:Vl,useValue:e.isolate},{provide:$l,useValue:e.useDefaultLang},{provide:Ql,useValue:e.extend},{provide:Jl,useValue:e.defaultLanguage},th]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),nh=(()=>{class t{constructor(t){this.dialogRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yl))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(t,e){1&t&&(s.TgZ(0,"h2",0),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},directives:[El],pipes:[eh],styles:[""]}),t})();const sh=["mat-button",""],oh=["*"],rh=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class ah{constructor(t){this._elementRef=t}}const ch=Tu(vu(ku(ah)));let uh=(()=>{class t extends ch{constructor(t,e,i){super(t),this._focusMonitor=e,this._animationMode=i,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const n of rh)this._hasHostAttributes(n)&&this._getHostElement().classList.add(n);t.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(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Pr),s.Y36(lu,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){if(1&t&&s.Gf(Vu,5),2&t){let t;s.iGM(t=s.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(s.uIk("disabled",e.disabled||null),s.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[s.qOj],attrs:sh,ngContentSelectors:oh,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(t,e){1&t&&(s.F$t(),s.TgZ(0,"span",0),s.Hsn(1),s.qZA(),s._UZ(2,"span",1),s._UZ(3,"span",2)),2&t&&(s.xp6(2),s.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),s.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[Vu],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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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-animation-noopable.mat-raised-button{transition:none;animation:none}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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-animation-noopable.mat-fab{transition:none;animation:none}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t})(),lh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[$u,Mu],Mu]}),t})();const hh=["underline"],dh=["connectionContainer"],ph=["inputContainer"],fh=["label"];function gh(t,e){1&t&&(s.ynx(0),s.TgZ(1,"div",14),s._UZ(2,"div",15),s._UZ(3,"div",16),s._UZ(4,"div",17),s.qZA(),s.TgZ(5,"div",18),s._UZ(6,"div",15),s._UZ(7,"div",16),s._UZ(8,"div",17),s.qZA(),s.BQk())}function mh(t,e){1&t&&(s.TgZ(0,"div",19),s.Hsn(1,1),s.qZA())}function _h(t,e){if(1&t&&(s.ynx(0),s.Hsn(1,2),s.TgZ(2,"span"),s._uU(3),s.qZA(),s.BQk()),2&t){const t=s.oxw(2);s.xp6(3),s.Oqu(t._control.placeholder)}}function bh(t,e){1&t&&s.Hsn(0,3,["*ngSwitchCase","true"])}function yh(t,e){1&t&&(s.TgZ(0,"span",23),s._uU(1," *"),s.qZA())}function wh(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"label",20,21),s.NdJ("cdkObserveContent",function(){return s.CHM(t),s.oxw().updateOutlineGap()}),s.YNc(2,_h,4,1,"ng-container",12),s.YNc(3,bh,1,0,"ng-content",12),s.YNc(4,yh,2,0,"span",22),s.qZA()}if(2&t){const t=s.oxw();s.ekj("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),s.Q6J("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),s.uIk("for",t._control.id)("aria-owns",t._control.id),s.xp6(2),s.Q6J("ngSwitchCase",!1),s.xp6(1),s.Q6J("ngSwitchCase",!0),s.xp6(1),s.Q6J("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function Ah(t,e){1&t&&(s.TgZ(0,"div",24),s.Hsn(1,4),s.qZA())}function Mh(t,e){if(1&t&&(s.TgZ(0,"div",25,26),s._UZ(2,"span",27),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.ekj("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function vh(t,e){if(1&t&&(s.TgZ(0,"div"),s.Hsn(1,5),s.qZA()),2&t){const t=s.oxw();s.Q6J("@transitionMessages",t._subscriptAnimationState)}}function Th(t,e){if(1&t&&(s.TgZ(0,"div",31),s._uU(1),s.qZA()),2&t){const t=s.oxw(2);s.Q6J("id",t._hintLabelId),s.xp6(1),s.Oqu(t.hintLabel)}}function kh(t,e){if(1&t&&(s.TgZ(0,"div",28),s.YNc(1,Th,2,2,"div",29),s.Hsn(2,6),s._UZ(3,"div",30),s.Hsn(4,7),s.qZA()),2&t){const t=s.oxw();s.Q6J("@transitionMessages",t._subscriptAnimationState),s.xp6(1),s.Q6J("ngIf",t.hintLabel)}}const Lh=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Ch=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Sh=0;const Eh=new s.OlP("MatError");let zh=(()=>{class t{constructor(t,e){this.id="mat-error-"+Sh++,t||e.nativeElement.setAttribute("aria-live","polite")}}return t.\u0275fac=function(e){return new(e||t)(s.$8M("aria-live"),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&s.uIk("id",e.id)},inputs:{id:"id"},features:[s._Bn([{provide:Eh,useExisting:t}])]}),t})();const xh={transitionMessages:Yr("transitionMessages",[Kr("enter",Ur({opacity:1,transform:"translateY(0%)"})),Gr("void => enter",[Ur({opacity:0,transform:"translateY(-5px)"}),jr("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Oh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t}),t})(),Rh=0;const Dh=new s.OlP("MatHint");let Ph=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+Rh++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(s.uIk("id",e.id)("align",null),s.ekj("mat-form-field-hint-end","end"===e.align))},inputs:{align:"align",id:"id"},features:[s._Bn([{provide:Dh,useExisting:t}])]}),t})(),Nh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-label"]]}),t})(),Ih=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-placeholder"]]}),t})();const qh=new s.OlP("MatPrefix"),Bh=new s.OlP("MatSuffix");let Hh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","matSuffix",""]],features:[s._Bn([{provide:Bh,useExisting:t}])]}),t})(),Yh=0;class jh{constructor(t){this._elementRef=t}}const Fh=Tu(jh,"primary"),Wh=new s.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Uh=new s.OlP("MatFormField");let Kh=(()=>{class t extends Fh{constructor(t,e,i,n,s,o,r,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=n,this._defaults=s,this._platform=o,this._ngZone=r,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new lt.xQ,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"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=Zn(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe(kt(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Es(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Es(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,ko.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(kt(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(kt(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Es(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(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_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,es(this._label.nativeElement,"transitionend").pipe((0,vt.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 t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,i=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),i&&t.push(i.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,i=0;const n=this._connectionContainerRef.nativeElement,s=n.querySelectorAll(".mat-form-field-outline-start"),o=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=n.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const o=this._getStartEnd(s),r=t.children,a=this._getStartEnd(r[0].getBoundingClientRect());let c=0;for(let t=0;t0?.75*c+10:0}for(let r=0;r{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,Mu,dr],Mu]}),t})(),Gh=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Qsj),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t}),t})(),Xh=(()=>{class t extends Gh{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,features:[s.qOj]}),t})();const Vh=new s.OlP("NgValueAccessor"),$h={provide:Vh,useExisting:(0,s.Gpc)(()=>Qh),multi:!0},Jh=new s.OlP("CompositionEventMode");let Qh=(()=>{class t extends Gh{constructor(t,e,i){super(t,e),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=(0,n.q)()?(0,n.q)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Qsj),s.Y36(s.SBq),s.Y36(Jh,8))},t.\u0275dir=s.lG2({type:t,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(t,e){1&t&&s.NdJ("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[s._Bn([$h]),s.qOj]}),t})();function td(t){return null==t||0===t.length}function ed(t){return null!=t&&"number"==typeof t.length}const id=new s.OlP("NgValidators"),nd=new s.OlP("NgAsyncValidators"),sd=/^(?=.{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 od{static min(t){return function(t){return e=>{if(td(e.value)||td(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i{if(td(e.value)||td(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}(t)}static required(t){return rd(t)}static requiredTrue(t){return function(t){return!0===t.value?null:{required:!0}}(t)}static email(t){return function(t){return td(t.value)||sd.test(t.value)?null:{email:!0}}(t)}static minLength(t){return function(t){return e=>td(e.value)||!ed(e.value)?null:e.value.lengthed(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}(t)}static pattern(t){return function(t){if(!t)return ad;let e,i;return"string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),t=>{if(td(t.value))return null;const n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}}(t)}static nullValidator(t){return null}static compose(t){return pd(t)}static composeAsync(t){return gd(t)}}function rd(t){return td(t.value)?{required:!0}:null}function ad(t){return null}function cd(t){return null!=t}function ud(t){const e=(0,s.QGY)(t)?(0,ct.D)(t):t;return(0,s.CqO)(e),e}function ld(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function hd(t,e){return e.map(e=>e(t))}function dd(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function pd(t){if(!t)return null;const e=t.filter(cd);return 0==e.length?null:function(t){return ld(hd(t,e))}}function fd(t){return null!=t?pd(dd(t)):null}function gd(t){if(!t)return null;const e=t.filter(cd);return 0==e.length?null:function(t){return Pl(hd(t,e).map(ud)).pipe((0,At.U)(ld))}}function md(t){return null!=t?gd(dd(t)):null}function _d(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function bd(t){return t._rawValidators}function yd(t){return t._rawAsyncValidators}let wd=(()=>{class t{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(t){this._rawValidators=t||[],this._composedValidatorFn=fd(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=md(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t}),t})(),Ad=(()=>{class t extends wd{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,features:[s.qOj]}),t})();class Md extends wd{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class vd{constructor(t){this._cd=t}is(t){var e,i;return!!(null===(i=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===i?void 0:i[t])}}let Td=(()=>{class t extends vd{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Md,2))},t.\u0275dir=s.lG2({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&s.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[s.qOj]}),t})(),kd=(()=>{class t extends vd{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Ad,10))},t.\u0275dir=s.lG2({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&s.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[s.qOj]}),t})();function Ld(t,e){return[...e.path,t]}function Cd(t,e){zd(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Od(t,e)})}(t,e),function(t,e){const i=(t,i)=>{e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Od(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const i=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}(t,e)}function Sd(t,e,i=!0){const n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),xd(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Ed(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function zd(t,e){const i=bd(t);null!==e.validator?t.setValidators(_d(i,e.validator)):"function"==typeof i&&t.setValidators([i]);const n=yd(t);null!==e.asyncValidator?t.setAsyncValidators(_d(n,e.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);const s=()=>t.updateValueAndValidity();Ed(e._rawValidators,s),Ed(e._rawAsyncValidators,s)}function xd(t,e){let i=!1;if(null!==t){if(null!==e.validator){const n=bd(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.validator);s.length!==n.length&&(i=!0,t.setValidators(s))}}if(null!==e.asyncValidator){const n=yd(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.asyncValidator);s.length!==n.length&&(i=!0,t.setAsyncValidators(s))}}}const n=()=>{};return Ed(e._rawValidators,n),Ed(e._rawAsyncValidators,n),i}function Od(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Rd(t,e){zd(t,e)}function Dd(t,e){if(!t.hasOwnProperty("model"))return!1;const i=t.model;return!!i.isFirstChange()||!Object.is(e,i.currentValue)}function Pd(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function Nd(t,e){if(!e)return null;let i,n,s;return Array.isArray(e),e.forEach(t=>{t.constructor===Qh?i=t:Object.getPrototypeOf(t.constructor)===Xh?n=t:s=t}),s||n||i||null}function Id(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}function qd(t){return(jd(t)?t.validators:t)||null}function Bd(t){return Array.isArray(t)?fd(t):t||null}function Hd(t,e){return(jd(e)?e.asyncValidators:t)||null}function Yd(t){return Array.isArray(t)?md(t):t||null}function jd(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Fd{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=Bd(this._rawValidators),this._composedAsyncValidatorFn=Yd(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=Bd(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=Yd(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const e=ud(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let n=t;return e.forEach(t=>{n=n instanceof Ud?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof Kd&&n.at(t)||null}),n}(this,t)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new s.vpe,this.statusChanges=new s.vpe}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){jd(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Wd extends Fd{constructor(t=null,e,i){super(qd(e),Hd(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Id(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Id(this._onDisabledChange,t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Ud extends Fd{constructor(t,e,i){super(qd(e),Hd(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof Wd?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((t,n)=>{i=e(i,t,n)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class Kd extends Fd{constructor(t,e,i){super(qd(e),Hd(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,i)=>{this._throwIfControlMissing(i),this.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,i)=>{this.at(i)&&this.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof Wd?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const Zd={provide:Ad,useExisting:(0,s.Gpc)(()=>Xd)},Gd=(()=>Promise.resolve(null))();let Xd=(()=>{class t extends Ad{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new s.vpe,this.form=new Ud({},fd(t),md(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Gd.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),Cd(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Gd.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),Id(this._directives,t)})}addFormGroup(t){Gd.then(()=>{const e=this._findContainer(t.path),i=new Ud({});Rd(i,t),e.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Gd.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){Gd.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,Pd(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(id,10),s.Y36(nd,10))},t.\u0275dir=s.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&s.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s._Bn([Zd]),s.qOj]}),t})();const Vd={provide:Md,useExisting:(0,s.Gpc)(()=>Jd)},$d=(()=>Promise.resolve(null))();let Jd=(()=>{class t extends Md{constructor(t,e,i,n){super(),this.control=new Wd,this._registered=!1,this.update=new s.vpe,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=Nd(0,n)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),Dd(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Ld(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_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(){Cd(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(t){$d.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,i=""===e||e&&"false"!==e;$d.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Ad,9),s.Y36(id,10),s.Y36(nd,10),s.Y36(Vh,10))},t.\u0275dir=s.lG2({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[s._Bn([Vd]),s.qOj,s.TTD]}),t})(),Qd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const tp={provide:Vh,useExisting:(0,s.Gpc)(()=>ep),multi:!0};let ep=(()=>{class t extends Xh{writeValue(t){this.setProperty("value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&s.NdJ("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[s._Bn([tp]),s.qOj]}),t})(),ip=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();const np=new s.OlP("NgModelWithFormControlWarning"),sp={provide:Md,useExisting:(0,s.Gpc)(()=>op)};let op=(()=>{class t extends Md{constructor(t,e,i,n){super(),this._ngModelWarningConfig=n,this.update=new s.vpe,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(e),this.valueAccessor=Nd(0,i)}set isDisabled(t){}ngOnChanges(t){if(this._isControlChanged(t)){const e=t.form.previousValue;e&&Sd(e,this,!1),Cd(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Dd(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Sd(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(id,10),s.Y36(nd,10),s.Y36(Vh,10),s.Y36(np,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[s._Bn([sp]),s.qOj,s.TTD]}),t._ngModelWarningSentOnce=!1,t})();const rp={provide:Ad,useExisting:(0,s.Gpc)(()=>ap)};let ap=(()=>{class t extends Ad{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new s.vpe,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(xd(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return Cd(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){Sd(t.control||null,t,!1),Id(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,Pd(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,i=this.form.get(t.path);e!==i&&(Sd(e||null,t),i instanceof Wd&&(Cd(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);Rd(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return xd(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){zd(this.form,this),this._oldForm&&xd(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(id,10),s.Y36(nd,10))},t.\u0275dir=s.lG2({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&s.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s._Bn([rp]),s.qOj,s.TTD]}),t})();const cp={provide:Md,useExisting:(0,s.Gpc)(()=>up)};let up=(()=>{class t extends Md{constructor(t,e,i,n,o){super(),this._ngModelWarningConfig=o,this._added=!1,this.update=new s.vpe,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=Nd(0,n)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),Dd(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return Ld(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.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Ad,13),s.Y36(id,10),s.Y36(nd,10),s.Y36(Vh,10),s.Y36(np,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[s._Bn([cp]),s.qOj,s.TTD]}),t._ngModelWarningSentOnce=!1,t})();const lp={provide:id,useExisting:(0,s.Gpc)(()=>hp),multi:!0};let hp=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!=`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?rd(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&s.uIk("required",e.required?"":null)},inputs:{required:"required"},features:[s._Bn([lp])]}),t})(),dp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[ip]]}),t})(),pp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[dp]}),t})(),fp=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:np,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[dp]}),t})(),gp=(()=>{class t{group(t,e=null){const i=this._reduceControls(t);let n,s=null,o=null;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(s=null!=e.validators?e.validators:null,o=null!=e.asyncValidators?e.asyncValidators:null,n=null!=e.updateOn?e.updateOn:void 0):(s=null!=e.validator?e.validator:null,o=null!=e.asyncValidator?e.asyncValidator:null)),new Ud(i,{asyncValidators:o,updateOn:n,validators:s})}control(t,e,i){return new Wd(t,e,i)}array(t,e,i){const n=t.map(t=>this._createControl(t));return new Kd(n,e,i)}_reduceControls(t){const e={};return Object.keys(t).forEach(i=>{e[i]=this._createControl(t[i])}),e}_createControl(t){return t instanceof Wd||t instanceof Ud||t instanceof Kd?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t},token:t,providedIn:fp}),t})();const mp=["trigger"],_p=["panel"];function bp(t,e){if(1&t&&(s.TgZ(0,"span",8),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Oqu(t.placeholder)}}function yp(t,e){if(1&t&&(s.TgZ(0,"span",12),s._uU(1),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Oqu(t.triggerValue)}}function wp(t,e){1&t&&s.Hsn(0,0,["*ngSwitchCase","true"])}function Ap(t,e){if(1&t&&(s.TgZ(0,"span",9),s.YNc(1,yp,2,1,"span",10),s.YNc(2,wp,1,0,"ng-content",11),s.qZA()),2&t){const t=s.oxw();s.Q6J("ngSwitch",!!t.customTrigger),s.xp6(2),s.Q6J("ngSwitchCase",!0)}}function Mp(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",13),s.TgZ(1,"div",14,15),s.NdJ("@transformPanel.done",function(e){return s.CHM(t),s.oxw()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return s.CHM(t),s.oxw()._handleKeydown(e)}),s.Hsn(3,1),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("@transformPanelWrap",void 0),s.xp6(1),s.Gre("mat-select-panel ",t._getPanelTheme(),""),s.Udp("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),s.Q6J("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),s.uIk("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const vp=[[["mat-select-trigger"]],"*"],Tp=["mat-select-trigger","*"],kp={transformPanelWrap:Yr("transformPanelWrap",[Gr("* => void",Vr("@transformPanel",[Xr()],{optional:!0}))]),transformPanel:Yr("transformPanel",[Kr("void",Ur({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Kr("showing",Ur({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Kr("showing-multiple",Ur({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Gr("void => *",jr("120ms cubic-bezier(0, 0, 0.2, 1)")),Gr("* => void",jr("100ms 25ms linear",Ur({opacity:0})))])};let Lp=0;const Cp=new s.OlP("mat-select-scroll-strategy"),Sp=new s.OlP("MAT_SELECT_CONFIG"),Ep={provide:Cp,deps:[er],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class zp{constructor(t,e){this.source=t,this.value=e}}class xp{constructor(t,e,i,n,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=s}}const Op=ku(Lu(vu(Cu(xp)))),Rp=new s.OlP("MatSelectTrigger");let Dp=(()=>{class t extends Op{constructor(t,e,i,n,o,r,a,c,u,l,h,d,p,f){var g,m,_;super(o,n,a,c,l),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=i,this._dir=r,this._parentFormField=u,this.ngControl=l,this._liveAnnouncer=p,this._defaultOptions=f,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+Lp++,this._triggerAriaLabelledBy=null,this._destroy=new lt.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Lp++,this._panelDoneAnimatingStream=new lt.xQ,this._overlayPanelClass=(null===(g=this._defaultOptions)||void 0===g?void 0:g.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(_=null===(m=this._defaultOptions)||void 0===m?void 0:m.disableOptionCentering)&&void 0!==_&&_,this.ariaLabel="",this.optionSelectionChanges=yt(()=>{const t=this.options;return t?t.changes.pipe(kt(t),(0,Mt.w)(()=>(0,ko.T)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe((0,vt.q)(1),(0,Mt.w)(()=>this.optionSelectionChanges))}),this.openedChange=new s.vpe,this._openedStream=this.openedChange.pipe((0,at.h)(t=>t),(0,At.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,at.h)(t=>!t),(0,At.U)(()=>{})),this.selectionChange=new s.vpe,this.valueChange=new s.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==f?void 0:f.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=f.typeaheadDebounceInterval),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=Zn(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=Zn(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=Zn(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=Gn(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new co(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(_s(),Es(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Es(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(kt(null),Es(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.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(t){this.value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,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 t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,i=40===e||38===e||37===e||39===e,n=13===e||32===e,s=this._keyManager;if(!s.isTyping()&&n&&!So(t)||(this.multiple||t.altKey)&&i)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;s.onKeydown(t);const i=this.selected;i&&e!==i&&this._liveAnnouncer.announce(i.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,i=t.keyCode,n=40===i||38===i,s=e.isTyping();if(n&&t.altKey)t.preventDefault(),this.close();else if(s||13!==i&&32!==i||!e.activeItem||So(t))if(!s&&this._multiple&&65===i&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const i=e.activeItemIndex;e.onKeydown(t),this._multiple&&n&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==i&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.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,vt.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._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(t=>this._selectValue(t)),this._sortValues();else{const e=this._selectValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{if(this._selectionModel.isSelected(e))return!1;try{return null!=e.value&&this._compareWith(e.value,t)}catch(i){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new Ar(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Es(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Es(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 t=(0,ko.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Es(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,ko.T)(...this.options.map(t=>t._stateChanges)).pipe(Es(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(t,e){const i=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(i!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),i!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,i)=>this.sortComparator?this.sortComparator(e,i,t):t.indexOf(e)-t.indexOf(i)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();let i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(fo),s.Y36(s.sBO),s.Y36(s.R0b),s.Y36(Bu),s.Y36(s.SBq),s.Y36(so,8),s.Y36(Xd,8),s.Y36(ap,8),s.Y36(Uh,8),s.Y36(Md,10),s.$8M("tabindex"),s.Y36(Cp),s.Y36(zr),s.Y36(Sp,8))},t.\u0275dir=s.lG2({type:t,viewQuery:function(t,e){if(1&t&&(s.Gf(mp,5),s.Gf(_p,5),s.Gf(or,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.trigger=t.first),s.iGM(t=s.CRH())&&(e.panel=t.first),s.iGM(t=s.CRH())&&(e._overlayDir=t.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[s.qOj,s.TTD]}),t})(),Pp=(()=>{class t extends Dp{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(t,e,i){const n=this._getItemHeight();return Math.min(Math.max(0,n*t-e+n/2),i)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Es(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,vt.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(t){const e=ll(t,this.options,this.optionGroups),i=this._getItemHeight();this.panel.nativeElement.scrollTop=hl((t+e)*i,i,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new zp(this,t)}_calculateOverlayOffsetX(){const t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),i=this._isRtl(),n=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}i||(s*=-1);const o=0-(t.left+s-(i?n:0)),r=t.right+s-e.width+(i?0:n);o>0?s+=o+8:r>0&&(s-=r+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,i){const n=this._getItemHeight(),s=(n-this._triggerRect.height)/2,o=Math.floor(256/n);let r;return this.disableOptionCentering?0:(r=0===this._scrollTop?t*n:this._scrollTop===i?(t-(this._getItemCount()-o))*n+(n-(this._getItemCount()*n-256)%n):e-n/2,Math.round(-1*r-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,s=i.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),r=Math.min(this._getItemCount()*e,256)-o-this._triggerRect.height;r>s?this._adjustPanelUp(r,s):o>n?this._adjustPanelDown(o,n,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const i=Math.round(t-e);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,i){const n=Math.round(t-e);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),i=Math.min(e*t,256),n=e*t-i;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=ll(s,this.options,this.optionGroups);const o=i/2;this._scrollTop=this._calculateOverlayScroll(s,o,n),this._offsetY=this._calculateOverlayOffsetY(s,o,n),this._checkOverlayWithinViewport(n)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,Rp,5),s.Suo(i,ul,5),s.Suo(i,ol,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.customTrigger=t.first),s.iGM(t=s.CRH())&&(e.options=t),s.iGM(t=s.CRH())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&s.NdJ("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(s.uIk("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),s.ekj("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[s._Bn([{provide:Oh,useExisting:t},{provide:tl,useExisting:t}]),s.qOj],ngContentSelectors:Tp,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(t,e){if(1&t&&(s.F$t(vp),s.TgZ(0,"div",0,1),s.NdJ("click",function(){return e.toggle()}),s.TgZ(3,"div",2),s.YNc(4,bp,2,1,"span",3),s.YNc(5,Ap,3,2,"span",4),s.qZA(),s.TgZ(6,"div",5),s._UZ(7,"div",6),s.qZA(),s.qZA(),s.YNc(8,Mp,4,14,"ng-template",7),s.NdJ("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=s.MAs(1);s.uIk("aria-owns",e.panelOpen?e.id+"-panel":null),s.xp6(3),s.Q6J("ngSwitch",e.empty),s.uIk("id",e._valueId),s.xp6(1),s.Q6J("ngSwitchCase",!0),s.xp6(1),s.Q6J("ngSwitchCase",!1),s.xp6(3),s.Q6J("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[sr,n.RF,n.n9,or,n.ED,n.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;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{display:table-cell;vertical-align:middle}.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 transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.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:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[kp.transformPanelWrap,kp.transformPanel]},changeDetection:0}),t})(),Np=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Ep],imports:[[n.ez,ar,dl,Mu],go,Zh,dl,Mu]}),t})();class Ip{constructor(t){this.total=t}call(t,e){return e.subscribe(new qp(t,this.total))}}class qp extends Lt.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}const Bp=new Set;let Hp,Yp=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):jp}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!Bp.has(t))try{Hp||(Hp=document.createElement("style"),Hp.setAttribute("type","text/css"),document.head.appendChild(Hp)),Hp.sheet&&(Hp.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),Bp.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Ws))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Ws))},token:t,providedIn:"root"}),t})();function jp(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let Fp=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new lt.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return Wp(Vn(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=Wp(Vn(t)).map(t=>this._registerQuery(t).observable);let i=(0,pt.aj)(e);return i=_t(i.pipe((0,vt.q)(1)),i.pipe(t=>t.lift(new Ip(1)),(0,cr.b)(0))),i.pipe((0,At.U)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:i})=>{e.matches=e.matches||t,e.breakpoints[i]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),i={observable:new ft.y(t=>{const i=e=>this._zone.run(()=>t.next(e));return e.addListener(i),()=>{e.removeListener(i)}}).pipe(kt(e),(0,At.U)(({matches:e})=>({query:t,matches:e})),Es(this._destroySubject)),mql:e};return this._queries.set(t,i),i}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Yp),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Yp),s.LFG(s.R0b))},token:t,providedIn:"root"}),t})();function Wp(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const Up={tooltipState:Yr("state",[Kr("initial, void, hidden",Ur({opacity:0,transform:"scale(0)"})),Kr("visible",Ur({transform:"scale(1)"})),Gr("* => visible",jr("200ms cubic-bezier(0, 0, 0.2, 1)",Zr([Ur({opacity:0,transform:"scale(0)",offset:0}),Ur({opacity:.5,transform:"scale(0.99)",offset:.5}),Ur({opacity:1,transform:"scale(1)",offset:1})]))),Gr("* => hidden",jr("100ms cubic-bezier(0, 0, 0.2, 1)",Ur({opacity:0})))])},Kp=Js({passive:!0}),Zp=new s.OlP("mat-tooltip-scroll-strategy"),Gp={provide:Zp,deps:[er],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},Xp=new s.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Vp=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u,l,h){this._overlay=t,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=n,this._ngZone=s,this._platform=o,this._ariaDescriber=r,this._focusMonitor=a,this._dir=u,this._defaultOptions=l,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 lt.xQ,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!So(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=c,this._document=h,l&&(l.position&&(this.position=l.position),l.touchGestures&&(this.touchGestures=l.touchGestures)),u.change.pipe(Es(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){var e;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(e=this._tooltipInstance)||void 0===e||e.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=Zn(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).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(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Es(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,i])=>{t.removeEventListener(e,i,Kp)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new bo(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Es(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return e.positionChanges.pipe(Es(this._destroyed)).subscribe(t=>{this._updateCurrentPositionClass(t.connectionPair),this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:`${this._cssClassPrefix}-tooltip-panel`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Es(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const e=t.getConfig().positionStrategy,i=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([this._addOffset(Object.assign(Object.assign({},i.main),n.main)),this._addOffset(Object.assign(Object.assign({},i.fallback),n.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e||"below"==e?i={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={originX:"end",originY:"center"});const{x:n,y:s}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:n,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e?i={overlayX:"center",overlayY:"bottom"}:"below"==e?i={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={overlayX:"start",overlayY:"center"});const{x:n,y:s}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:n,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,vt.q)(1),Es(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){const{overlayY:e,originX:i,originY:n}=t;let s;if(s="center"===e?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===e&&"top"===n?"above":"below",s!==this._currentPosition){const t=this._overlayRef;if(t){const e=`${this._cssClassPrefix}-tooltip-panel-`;t.removePanelClass(e+this._currentPosition),t.addPanelClass(e+s)}this._currentPosition=s}}_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 t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,Kp)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const e=this._document.elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;e===i||i.contains(e)||this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,i=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),"on"!==t&&e.draggable||(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(er),s.Y36(s.SBq),s.Y36(ho),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(Ws),s.Y36(_r),s.Y36(Pr),s.Y36(void 0),s.Y36(so),s.Y36(void 0),s.Y36(n.K0))},t.\u0275dir=s.lG2({type:t,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),$p=(()=>{class t extends Vp{constructor(t,e,i,n,s,o,r,a,c,u,l,h){super(t,e,i,n,s,o,r,a,c,u,l,h),this._tooltipComponent=Qp}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(er),s.Y36(s.SBq),s.Y36(ho),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(Ws),s.Y36(_r),s.Y36(Pr),s.Y36(Zp),s.Y36(so,8),s.Y36(Xp,8),s.Y36(n.K0))},t.\u0275dir=s.lG2({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[s.qOj]}),t})(),Jp=(()=>{class t{constructor(t){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new lt.xQ}show(t){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._markForCheck()},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t}),t})(),Qp=(()=>{class t extends Jp{constructor(t,e){super(t),this._breakpointObserver=e,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36(Fp))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e._handleBodyInteraction()},!1,s.pYS)("auxclick",function(){return e._handleBodyInteraction()},!1,s.pYS),2&t&&s.Udp("zoom","visible"===e._visibility?1:null)},features:[s.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(s.TgZ(0,"div",0),s.NdJ("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),s.ALo(1,"async"),s._uU(2),s.qZA()),2&t){let t;s.ekj("mat-tooltip-handset",null==(t=s.lcZ(1,5,e._isHandset))?null:t.matches),s.Q6J("ngClass",e.tooltipClass)("@state",e._visibility),s.xp6(2),s.Oqu(e.message)}},directives:[n.mk],pipes:[n.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[Up.tooltipState]},changeDetection:0}),t})(),tf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Gp],imports:[[qr,n.ez,ar,Mu],Mu,go]}),t})();function ef(t,e){if(1&t&&(s.TgZ(0,"mat-option",19),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.hij(" ",t," ")}}function nf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-form-field",16),s.TgZ(1,"mat-select",17),s.NdJ("selectionChange",function(e){return s.CHM(t),s.oxw(2)._changePageSize(e.value)}),s.YNc(2,ef,2,2,"mat-option",18),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(2);s.Q6J("appearance",t._formFieldAppearance)("color",t.color),s.xp6(1),s.Q6J("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),s.xp6(1),s.Q6J("ngForOf",t._displayedPageSizeOptions)}}function sf(t,e){if(1&t&&(s.TgZ(0,"div",20),s._uU(1),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Oqu(t.pageSize)}}function of(t,e){if(1&t&&(s.TgZ(0,"div",12),s.TgZ(1,"div",13),s._uU(2),s.qZA(),s.YNc(3,nf,3,6,"mat-form-field",14),s.YNc(4,sf,2,1,"div",15),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.hij(" ",t._intl.itemsPerPageLabel," "),s.xp6(1),s.Q6J("ngIf",t._displayedPageSizeOptions.length>1),s.xp6(1),s.Q6J("ngIf",t._displayedPageSizeOptions.length<=1)}}function rf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",21),s.NdJ("click",function(){return s.CHM(t),s.oxw().firstPage()}),s.O4$(),s.TgZ(1,"svg",7),s._UZ(2,"path",22),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),s.uIk("aria-label",t._intl.firstPageLabel)}}function af(t,e){if(1&t){const t=s.EpF();s.O4$(),s.kcU(),s.TgZ(0,"button",23),s.NdJ("click",function(){return s.CHM(t),s.oxw().lastPage()}),s.O4$(),s.TgZ(1,"svg",7),s._UZ(2,"path",24),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),s.uIk("aria-label",t._intl.lastPageLabel)}}let cf=(()=>{class t{constructor(){this.changes=new lt.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,i)=>{if(0==i||0==e)return`0 of ${i}`;const n=t*e;return`${n+1} \u2013 ${n<(i=Math.max(i,0))?Math.min(n+e,i):n+e} of ${i}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const uf={provide:cf,deps:[[new s.FiY,new s.tp0,cf]],useFactory:function(t){return t||new cf}},lf=new s.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS");class hf{}const df=vu(Su(hf));let pf=(()=>{class t extends df{constructor(t,e,i){if(super(),this._intl=t,this._changeDetectorRef=e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new s.vpe,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){const{pageSize:t,pageSizeOptions:e,hidePageSize:n,showFirstLastButtons:s}=i;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=n&&(this._hidePageSize=n),null!=s&&(this._showFirstLastButtons=s)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(Gn(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=Gn(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(Gn(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>Gn(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=Zn(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=Zn(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndext-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(cf),s.Y36(s.sBO),s.Y36(void 0))},t.\u0275dir=s.lG2({type:t,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[s.qOj]}),t})(),ff=(()=>{class t extends pf{constructor(t,e,i){super(t,e,i),i&&null!=i.formFieldAppearance&&(this._formFieldAppearance=i.formFieldAppearance)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(cf),s.Y36(s.sBO),s.Y36(lf,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[s.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","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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.YNc(2,of,5,3,"div",2),s.TgZ(3,"div",3),s.TgZ(4,"div",4),s._uU(5),s.qZA(),s.YNc(6,rf,3,5,"button",5),s.TgZ(7,"button",6),s.NdJ("click",function(){return e.previousPage()}),s.O4$(),s.TgZ(8,"svg",7),s._UZ(9,"path",8),s.qZA(),s.qZA(),s.kcU(),s.TgZ(10,"button",9),s.NdJ("click",function(){return e.nextPage()}),s.O4$(),s.TgZ(11,"svg",7),s._UZ(12,"path",10),s.qZA(),s.qZA(),s.YNc(13,af,3,5,"button",11),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.Q6J("ngIf",!e.hidePageSize),s.xp6(3),s.hij(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),s.xp6(1),s.Q6J("ngIf",e.showFirstLastButtons),s.xp6(1),s.Q6J("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),s.uIk("aria-label",e._intl.previousPageLabel),s.xp6(3),s.Q6J("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),s.uIk("aria-label",e._intl.nextPageLabel),s.xp6(3),s.Q6J("ngIf",e.showFirstLastButtons))},directives:[n.O5,uh,$p,Kh,Pp,n.sg,ul],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{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),t})(),gf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[uf],imports:[[n.ez,lh,Np,tf,Mu]]}),t})();var mf=i(509);const _f=["mat-menu-item",""],bf=["*"];function yf(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",0),s.NdJ("keydown",function(e){return s.CHM(t),s.oxw()._handleKeydown(e)})("click",function(){return s.CHM(t),s.oxw().closed.emit("click")})("@transformMenu.start",function(e){return s.CHM(t),s.oxw()._onAnimationStart(e)})("@transformMenu.done",function(e){return s.CHM(t),s.oxw()._onAnimationDone(e)}),s.TgZ(1,"div",1),s.Hsn(2),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),s.uIk("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const wf={transformMenu:Yr("transformMenu",[Kr("void",Ur({opacity:0,transform:"scale(0.8)"})),Gr("void => enter",jr("120ms cubic-bezier(0, 0, 0.2, 1)",Ur({opacity:1,transform:"scale(1)"}))),Gr("* => void",jr("100ms 25ms linear",Ur({opacity:0})))]),fadeInItems:Yr("fadeInItems",[Kr("showing",Ur({opacity:1})),Gr("void => *",[Ur({opacity:0}),jr("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Af=new s.OlP("MatMenuContent"),Mf=new s.OlP("MAT_MENU_PANEL");class vf{}const Tf=ku(vu(vf));let kf=(()=>{class t extends Tf{constructor(t,e,i,n){super(),this._elementRef=t,this._focusMonitor=i,this._parentMenu=n,this.role="menuitem",this._hovered=new lt.xQ,this._focused=new lt.xQ,this._highlighted=!1,this._triggersSubmenu=!1,n&&n.addItem&&n.addItem(this)}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),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(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t,e;const i=this._elementRef.nativeElement.cloneNode(!0),n=i.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class t{constructor(t,e,i){this._elementRef=t,this._ngZone=e,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new s.n_E,this._tabSubscription=Ft.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new lt.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new s.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Cf++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=Zn(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=Zn(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Mr(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(kt(this._directDescendantItems),(0,Mt.w)(t=>(0,ko.T)(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(kt(this._directDescendantItems),(0,Mt.w)(t=>(0,ko.T)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,i=this._keyManager;switch(e){case 27:So(t)||(t.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:38!==e&&40!==e||i.setFocusOrigin("keyboard"),i.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe((0,vt.q)(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e=`mat-elevation-z${Math.min(4+t,24)}`,i=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const i=this._classList;i["mat-menu-before"]="before"===t,i["mat-menu-after"]="after"===t,i["mat-menu-above"]="above"===e,i["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(kt(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(Lf))},t.\u0275dir=s.lG2({type:t,contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,Af,5),s.Suo(i,kf,5),s.Suo(i,kf,4)),2&t){let t;s.iGM(t=s.CRH())&&(e.lazyContent=t.first),s.iGM(t=s.CRH())&&(e._allItems=t),s.iGM(t=s.CRH())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&s.Gf(s.Rgc,5),2&t){let t;s.iGM(t=s.CRH())&&(e.templateRef=t.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),Ef=(()=>{class t extends Sf{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(Lf))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&s.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[s._Bn([{provide:Mf,useExisting:t}]),s.qOj],ngContentSelectors:bf,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(s.F$t(),s.YNc(0,yf,3,6,"ng-template"))},directives:[n.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}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}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}\n'],encapsulation:2,data:{animation:[wf.transformMenu,wf.fadeInItems]},changeDetection:0}),t})();const zf=new s.OlP("mat-menu-scroll-strategy"),xf={provide:zf,deps:[er],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},Of=Js({passive:!0});let Rf=(()=>{class t{constructor(t,e,i,n,o,r,a,c){this._overlay=t,this._element=e,this._viewContainerRef=i,this._menuItemInstance=r,this._dir=a,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Ft.w.EMPTY,this._hoverSubscription=Ft.w.EMPTY,this._menuCloseSubscription=Ft.w.EMPTY,this._handleTouchStart=t=>{Or(t)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new s.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new s.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=n,this._parentMaterialMenu=o instanceof Sf?o:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,Of),r&&(r._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(t),"click"!==t&&"tab"!==t||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Of),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(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof Sf&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}updatePosition(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==t&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,e instanceof Sf?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe((0,at.h)(t=>"void"===t.toState),(0,vt.q)(1),Es(e.lazyContent._attached)).subscribe({next:()=>e.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new Io({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,i]="before"===this.menu.xPosition?["end","start"]:["start","end"],[n,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[o,r]=[n,s],[a,c]=[e,i],u=0;this.triggersSubmenu()?(c=e="before"===this.menu.xPosition?"start":"end",i=a="end"===e?"start":"end",u="bottom"===n?8:-8):this.menu.overlapTrigger||(o="top"===n?"bottom":"top",r="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:o,overlayX:a,overlayY:n,offsetY:u},{originX:i,originY:o,overlayX:c,overlayY:n,offsetY:u},{originX:e,originY:r,overlayX:a,overlayY:s,offsetY:-u},{originX:i,originY:r,overlayX:c,overlayY:s,offsetY:-u}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,ut.of)(),n=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,at.h)(t=>t!==this._menuItemInstance),(0,at.h)(()=>this._menuOpen)):(0,ut.of)();return(0,ko.T)(t,i,n,e)}_handleMousedown(t){xr(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;13!==e&&32!==e||(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===e&&"ltr"===this.dir||37===e&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,at.h)(t=>t===this._menuItemInstance&&!t.disabled),(0,mf.g)(0,gs)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Sf&&this.menu._isAnimating?this.menu._animationDone.pipe((0,vt.q)(1),(0,mf.g)(0,gs),Es(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new yo(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(er),s.Y36(s.SBq),s.Y36(s.s_b),s.Y36(zf),s.Y36(Mf,8),s.Y36(kf,10),s.Y36(so,8),s.Y36(Pr))},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&s.uIk("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),Df=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[xf],imports:[Mu]}),t})(),Pf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[xf],imports:[[n.ez,Mu,$u,ar,Df],go,Mu,Df]}),t})();var Nf=i(1225),If=i(1055);const qf=["*"];function Bf(t){return Error(`Unable to find icon with the name "${t}"`)}function Hf(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function Yf(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class jf{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let Ff=(()=>{class t{constructor(t,e,i,n){this._httpClient=t,this._sanitizer=e,this._errorHandler=n,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i}addSvgIcon(t,e,i){return this.addSvgIconInNamespace("",t,e,i)}addSvgIconLiteral(t,e,i){return this.addSvgIconLiteralInNamespace("",t,e,i)}addSvgIconInNamespace(t,e,i,n){return this._addSvgIconConfig(t,e,new jf(i,null,n))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,i,n){const o=this._sanitizer.sanitize(s.q3G.HTML,i);if(!o)throw Yf(i);return this._addSvgIconConfig(t,e,new jf("",o,n))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,i){return this._addSvgIconSetConfig(t,new jf(e,null,i))}addSvgIconSetLiteralInNamespace(t,e,i){const n=this._sanitizer.sanitize(s.q3G.HTML,e);if(!n)throw Yf(e);return this._addSvgIconSetConfig(t,new jf("",n,i))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(s.q3G.RESOURCE_URL,t);if(!e)throw Hf(t);const i=this._cachedIconsByUrl.get(e);return i?(0,ut.of)(Wf(i)):this._loadSvgIconFromConfig(new jf(t,null)).pipe((0,Yt.b)(t=>this._cachedIconsByUrl.set(e,t)),(0,At.U)(t=>Wf(t)))}getNamedSvgIcon(t,e=""){const i=Uf(e,t);let n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);if(n=this._getIconConfigFromResolvers(e,t),n)return this._svgIconConfigs.set(i,n),this._getSvgFromConfig(n);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):(0,Nf._)(Bf(i))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?(0,ut.of)(Wf(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe((0,At.U)(t=>Wf(t)))}_getSvgFromIconSetConfigs(t,e){const i=this._extractIconWithNameFromAnySet(t,e);return i?(0,ut.of)(i):Pl(e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe((0,zt.K)(e=>{const i=this._sanitizer.sanitize(s.q3G.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${i} failed: ${e.message}`)),(0,ut.of)(null)})))).pipe((0,At.U)(()=>{const i=this._extractIconWithNameFromAnySet(t,e);if(!i)throw Bf(t);return i}))}_extractIconWithNameFromAnySet(t,e){for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.svgText&&n.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(n),i=this._extractSvgIconFromSet(e,t,n.options);if(i)return i}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe((0,Yt.b)(e=>t.svgText=e),(0,At.U)(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?(0,ut.of)(null):this._fetchIcon(t).pipe((0,Yt.b)(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,i){const n=t.querySelector(`[id="${e}"]`);if(!n)return null;const s=n.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,i);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),i);const o=this._svgElementFromString("");return o.appendChild(s),this._setSvgAttributes(o,i)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const i=e.querySelector("svg");if(!i)throw Error(" tag not found");return i}_toSvgElement(t){const e=this._svgElementFromString(""),i=t.attributes;for(let n=0;nthis._inProgressUrlFetches.delete(r)),(0,If.B)());return this._inProgressUrlFetches.set(r,c),c}_addSvgIconConfig(t,e,i){return this._svgIconConfigs.set(Uf(t,e),i),this}_addSvgIconSetConfig(t,e){const i=this._iconSetConfigs.get(t);return i?i.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let n=0;ne?e.pathname+e.search:""}}}),Xf=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Vf=Xf.map(t=>`[${t}]`).join(", "),$f=/^url\(['"]?#(.*?)['"]?\)$/;let Jf=(()=>{class t extends Zf{constructor(t,e,i,n,s){super(t),this._iconRegistry=e,this._location=n,this._errorHandler=s,this._inline=!1,this._currentIconFetch=Ft.w.EMPTY,i||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=Zn(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.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(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let n=0;n{e.forEach(e=>{i.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(Vf),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let n=0;n{const s=e[n],o=s.getAttribute(t),r=o?o.match($f):null;if(r){let e=i.get(s);e||(e=[],i.set(s,e)),e.push({name:t,value:r[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,i]=this._splitIconName(t);e&&(this._svgNamespace=e),i&&(this._svgName=i),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(i,e).pipe((0,vt.q)(1)).subscribe(t=>this._setSvgElement(t),t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${i}! ${t.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Ff),s.$8M("aria-hidden"),s.Y36(Gf),s.Y36(s.qLn))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(s.uIk("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),s.ekj("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[s.qOj],ngContentSelectors:qf,decls:1,vars:0,template:function(t,e){1&t&&(s.F$t(),s.Hsn(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),Qf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Mu],Mu]}),t})(),tg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[],imports:[[gf,Pf,Qf,lh,ih,n.ez]]}),t})();var eg=i(2051);const ig=[5,10,25,100];function ng(){const t=new fl;return t.disableClose=!0,t.autoFocus=!1,t}function sg(t){return"virt"===t.namespace.split(":")[4]}const og=new Intl.Collator("cs",{numeric:!0});function rg(t,e,i,n){const s=e.active,o=e.direction;return s&&""!==o?t.sort((t,e)=>{const r=i(t,s,n),a=i(e,s,n);return og.compare(r,a)*("asc"===o?1:-1)}):t}function ag(t,e,i,n,s,o){e=e.toLowerCase();let r="";return i.forEach(e=>{r+=";"+n(t,e,s)}),o&&(r+=";"+n(t,"uuid",s)),-1!==r.toLowerCase().indexOf(e)}function cg(t,e,i,n){const s=[],o=["checkbox","select","edit","menu","cite","extend","recent"];return e=e.filter(t=>!o.includes(t)),t.forEach(t=>{const o={};e.forEach(e=>{var s;o[e]=(null!==(s=i(t,e,n))&&void 0!==s?s:"").split('"').join("''").trim()}),s.push(o)}),s}function ug(t,e="csv",i="export"){switch(e){case"csv":{const n=(t,e)=>null===e?"":e,s=Object.keys(t[0]),o=t.map(t=>s.map(e=>JSON.stringify(t[e],n)).join(","));o.unshift(s.join(",").split(" ").join("_").split('"').join("''"));const r=o.join("\r\n"),a=new Blob([r],{type:"text/csv"});(0,eg.saveAs)(a,`${i}.${e}`)}}}let lg=(()=>{class t{constructor(){}getString(t){return localStorage.getItem(t)}getNumber(t){return parseInt(localStorage.getItem(t),10)}setNumber(t,e){localStorage.setItem(t,e.toString())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),hg=(()=>{class t{constructor(t){this.guiConfigService=t}getTablePageSize(t){const e=this.guiConfigService.getNumber("GUI_CONFIG.PREF_PAGE_SIZE."+t);if(!isNaN(e))return e;const i=this.guiConfigService.getNumber("GUI_CONFIG.PREF_PAGE_SIZE");return isNaN(i)?10:i}setTablePageSize(t,e){this.guiConfigService.setNumber("GUI_CONFIG.PREF_PAGE_SIZE."+t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(lg))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),dg=(()=>{class t{constructor(){this.exportData=new s.vpe}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,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(t,e){if(1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"button",1),s.TgZ(2,"mat-icon"),s._uU(3,"more_vert"),s.qZA(),s.qZA(),s.TgZ(4,"mat-menu",null,2),s.TgZ(6,"button",3),s._uU(7),s.ALo(8,"translate"),s.qZA(),s.qZA(),s.TgZ(9,"mat-menu",null,4),s.TgZ(11,"button",5),s.NdJ("click",function(){return e.exportData.emit("csv")}),s._uU(12,"Csv"),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.MAs(5),e=s.MAs(10);s.xp6(1),s.Q6J("matMenuTriggerFor",t),s.xp6(5),s.Q6J("matMenuTriggerFor",e),s.xp6(1),s.hij(" ",s.lcZ(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[uh,Rf,Jf,Ef,kf],pipes:[eh],styles:[""]}),t})();function pg(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-table-options",6),s.NdJ("exportData",function(e){return s.CHM(t),s.oxw().exportData.emit(e)}),s.qZA()}}function fg(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-table-options",6),s.NdJ("exportData",function(e){return s.CHM(t),s.oxw().exportData.emit(e)}),s.qZA()}}const gg=["*"];let mg=(()=>{class t{constructor(t){this.tableConfigService=t,this.hideExport=!1,this.pageSizeOptions=ig,this.dataLength=0,this.exportData=new s.vpe,this.pageSize=5}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5)}set matPaginator(t){this.paginator=t}pageChangedTop(t){this.pageSize=t.pageSize,this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}pageChangedBottom(t){this.paginator.pageSize=t.pageSize,this.paginator.pageIndex=t.pageIndex,this.paginator.page.emit(t),this.pageSize=t.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,t.pageSize)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(hg))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(t,e){if(1&t&&s.Gf(ff,7),2&t){let t;s.iGM(t=s.CRH())&&(e.matPaginator=t.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId"},outputs:{exportData:"exportData"},ngContentSelectors:gg,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(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"mat-paginator",2),s.NdJ("page",function(t){return e.pageChangedTop(t)}),s.qZA(),s.YNc(3,pg,1,0,"perun-web-apps-table-options",3),s.qZA(),s.TgZ(4,"div",4),s.Hsn(5),s.qZA(),s.TgZ(6,"div",1),s.TgZ(7,"mat-paginator",5),s.NdJ("page",function(t){return e.pageChangedBottom(t)}),s.qZA(),s.YNc(8,fg,1,0,"perun-web-apps-table-options",3),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.Q6J("length",e.dataLength)("pageSizeOptions",e.pageSizeOptions)("pageSize",e.pageSize),s.xp6(1),s.Q6J("ngIf",!e.hideExport),s.xp6(4),s.Q6J("length",e.paginator.length)("pageIndex",e.paginator.pageIndex)("pageSizeOptions",e.paginator.pageSizeOptions)("pageSize",e.paginator.pageSize),s.xp6(1),s.Q6J("ngIf",!e.hideExport))},directives:[ff,n.O5,dg],styles:[""]}),t})();class _g{static passwordMatchValidator(t){const e=t.get("passwordCtrl").value,i=t.get("passwordAgainCtrl").value;return t.get("passwordAgainCtrl").setErrors(e!==i?{noPasswordMatch:!0}:null),null}static patternValidator(t){return e=>{if(!e.value)return null;let i=0;for(const n of t)i+=n.test(e.value)?1:0;return i>=3?null:{isWeak:!0}}}}let bg=(()=>{class t{constructor(t,e,i,n,s,o){this.authService=t,this.storeService=e,this.authResolver=i,this.authzService=n,this.dialog=s,this.router=o,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(t){this.loginScreenShown=t}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)):(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(t=>t(!0)):this.authService.verifyAuth())}startAuth(){return this.authService.startAuthentication(),new Promise(()=>{})}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(t=>{if(null===t.user){const t=ng();this.dialog.open(nh,t)}else this.storeService.setPerunPrincipal(t),this.authResolver.init(t)})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(t=>{t()});if(this.storeService.get("auto_auth_redirect"))return this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0);const t=location.search.substr(1).split("&"),e={};for(const i of t){const t=i.split("=");e[t[0]]=t[1]}return this.router.navigate(["login"],{queryParams:e,queryParamsHandling:"merge"}).then(()=>null)}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Rl),s.LFG(Kn),s.LFG(rt),s.LFG(K),s.LFG(Ll),s.LFG(Mn))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),yg=(()=>{class t{constructor(t,e){this.matIconRegistry=t,this.domSanitizer=e,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/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/settings1-blue.svg",name:"settings-blue"},{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"}]}registerPerunRefreshIcon(){this.customIcons.forEach(t=>{this.matIconRegistry.addSvgIcon(t.name,this.domSanitizer.bypassSecurityTrustResourceUrl(t.url))})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Ff),s.LFG(R))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),wg=(()=>{class t{constructor(t){this.dialogRef=t}close(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yl))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"div",2),s.TgZ(7,"div",3),s.TgZ(8,"button",4),s.NdJ("click",function(){return e.close()}),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),s.xp6(3),s.hij(" ",s.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),s.xp6(5),s.hij(" ",s.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},directives:[Sl,El,zl,uh],pipes:[eh],styles:[""]}),t})(),Ag=(()=>{class t{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const t=this.handleNextError;return this.handleNextError=!0,t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Mg=(()=>{class t{constructor(t){this.translate=t,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3,this.addNotification=new s.vpe}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(t,e=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===t.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===t.name?e:e+"\n"+t.name,t,t.message)}showError(t,e,i,n,s){this.addNotification.emit({type:"error",error:e,description:i,title:t,actionText:void 0===n&&void 0!==i?this.getDefaultActionMessage():n,delay:this.defaultErrorDelayMs,icon:"error_outline",action:s,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(t,e,i,n){this.addNotification.emit({type:"success",description:e,title:t,actionText:void 0===i&&void 0!==e?this.getDefaultActionMessage():i,delay:this.defaultSuccessDelayMs,icon:"done",action:n,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(th))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),vg=(()=>{class t{constructor(t,e,i,n,s,o){this.authService=t,this.apiRequestConfiguration=e,this.notificator=i,this.store=n,this.dialog=s,this.initAuthService=o}intercept(t,e){const i=this.store.get("api_url");if(-1!==t.url.indexOf("i18n")&&(t=t.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==i&&-1!==t.url.toString().indexOf(i)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()){const t=ng();t.width="450px",this.dialog.open(wg,t).afterClosed().subscribe(()=>{sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substr(1)),this.authService.startAuthentication()})}t=this.initAuthService.isServiceAccess()?t.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):t.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}});const n=this.apiRequestConfiguration.shouldHandleError(),s="POST"===t.method&&!this.store.skipOidc()&&this.isCallToPerunApi(t.url);return e.handle(t).pipe((0,Yt.b)(t=>{t instanceof Y.Zn&&s&&this.initAuthService.loadPrincipal()},e=>{const i=this.formatErrors(e,t);return void 0===i?(0,Nf._)(e):n?void this.notificator.showRPCError(i):(0,Nf._)(i)}))}isCallToPerunApi(t){return t.startsWith(this.store.get("api_url"))}formatErrors(t,e){let i;if(console.error(t),t.error.errorId?i=t.error:t.errorId&&(i=JSON.parse(t.error)),void 0!==i)return i.urlWithParams=e.urlWithParams,i.call=e.url,i.payload=e.body,i}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Rl),s.LFG(Ag),s.LFG(Mg),s.LFG(Kn),s.LFG(Ll),s.LFG(bg))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Tg=(()=>{class t{constructor(){this.notificationData=[],this.newNotificationsCount=0}storeNotification(t){this.newNotificationsCount++,this.notificationData.push(t)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),kg=(()=>{class t{constructor(t,e,i,n){this.http=t,this.notificator=e,this.authService=i,this.storeService=n}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}formatErrors(t,e,i,n){const s=t.error;return s.call=e,s.payload=i,n&&this.notificator.showRPCError(t.error),(0,Nf._)(s)}getHeaders(){let t=new Y.WM;return t=t.set("Authorization",this.authService.getAuthorizationHeaderValue()),t}get(t,e=!0){const i=`${this.getApiUrl()}${t}`;return this.http.get(i,{headers:this.getHeaders()}).pipe((0,zt.K)(t=>this.formatErrors(t,i,null,e)))}put(t,e={},i=!0){const n=`${this.getApiUrl()}${t}`,s=JSON.stringify(e);return this.http.put(n,s,{headers:this.getHeaders()}).pipe((0,zt.K)(t=>this.formatErrors(t,n,s,i)))}post(t,e={},i=!0){const n=`${this.getApiUrl()}${t}`,s=JSON.stringify(e);let o=this.getHeaders();return o=o.set("Content-Type","application/json; charset=utf-8"),this.http.post(n,s,{headers:o}).pipe((0,zt.K)(t=>this.formatErrors(t,n,s,i)))}delete(t,e=!0){const i=`${this.getApiUrl()}${t}`;return this.http.delete(i,{headers:this.getHeaders()}).pipe((0,zt.K)(t=>this.formatErrors(t,i,null,e)))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Y.eN),s.LFG(Mg),s.LFG(Rl),s.LFG(Kn))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Lg=(()=>{class t{constructor(){}isAllSelectedWithDisabledCheckbox(t,e,i,n,s,o,r,a){return this.numSelected=t,this.numCanBeSelected=0,this.pageStart=s*i,this.pageEnd=this.pageStart+i,this.pageIterator=0,this.dataLength=""===e?o.data.length:o.filteredData.length,n||(this.modulo=this.dataLength%i,this.pageEnd=0===this.modulo?this.pageStart+i:this.pageStart+this.modulo),o.sortData(o.filteredData,r).forEach(t=>{this.pageStart<=this.pageIterator&&this.pageIterator{a?c(t)&&this.pageStart<=this.pageIterator&&this.pageIterator{class t{constructor(t,e){this.route=t,this.store=e}getPreferredLanguage(t){const e=this.store.get("supported_languages"),i=navigator.languages.map(t=>t.split("-")[0]),n=location.search.substr(1).split("&");let s=null;for(const o of n){const t=o.split("=");"lang"===t[0]&&(s=t[1])}return s&&e.includes(s)?s:t&&e.includes(t)?t:i&&e.includes(i[0])?i[0]:"en"}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Qe),s.LFG(Kn))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Sg=(()=>{class t{constructor(t){this.storeService=t}static getBrandContainingDomain(t,e){for(const i of t)if(i.newApps.admin===e||i.newApps.profile===e||i.newApps.pwdReset===e)return i;return t[0]}getUrlForOtherApplication(e,i){const n=window.location.href.split("/"),s=n[0]+"//"+n[2],o=t.getBrandContainingDomain(this.storeService.getAppsConfig().brands,s);let r;if(o.newApps[e])r=o.newApps[e],"pwdReset"===e&&(r+=`?login-namespace=${i}`);else switch(r=o.oldGuiDomain+"/fed",e){case"admin":r+="/gui/";break;case"profile":r+="/profile/";break;case"pwdReset":r+="/pwd-reset/"}return r}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Kn))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();Yr("openClose",[Kr("open",Ur({overflow:"hidden"})),Kr("closed",Ur({height:"0px",overflow:"hidden"})),Gr("open <=> closed",[jr(".3s ease-in")])]);const Eg=Yr("flyInOut",[Gr(":enter",[Ur({transform:"translateX(100%)"}),jr(".25s")]),Gr(":leave",[jr(".5s",Ur({transform:"translateX(100%)"}))])]);Yr("rollInOut",[Gr(":enter",[Ur({height:"0px"}),jr(".25s")]),Gr(":leave",[jr(".25s",Ur({height:"0px"}))])]),Yr("routeAnimations",[Gr("* => *",[Ur({position:"relative"}),Vr(":enter",[Ur({width:"100%",opacity:0})],{optional:!0}),Vr(":leave",[Ur({position:"absolute",width:"100%",opacity:1}),jr("0.15s",Ur({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),Vr(":enter",[Ur({position:"absolute",width:"100%",opacity:0}),jr("0.15s",Ur({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),Yr("tagsOpenClose",[Kr("open",Ur({})),Kr("closed",Ur({width:"0px",height:"0px"})),Gr("open <=> closed",[jr(".3s ease-in")])]),Yr("switchAnimations",[Gr("true => false",[Vr(":enter, :leave",Ur({})),Fr([Vr(":enter",[Ur({transform:"translateX(-100%)"}),jr("1s ease-in-out",Ur({transform:"translateX(0%)"}))],{optional:!0}),Vr(":leave",[Ur({transform:"translateX(0%)",position:"absolute"}),jr("1s ease-in-out",Ur({transform:"translateX(100%)"}))],{optional:!0})])]),Gr("false => true",[Vr(":enter, :leave",Ur({})),Fr([Vr(":enter",[Ur({transform:"translateX(100%)"}),jr("1s ease-in-out",Ur({transform:"translateX(0%)"}))],{optional:!0}),Vr(":leave",[Ur({transform:"translateX(0%)",position:"absolute"}),jr("1s ease-in-out",Ur({transform:"translateX(-100%)"}))],{optional:!0})])])]),Yr("slideInOutLeft",[Gr(":enter",[Ur({transform:"translateX(-100%)",position:"relative"}),jr("0.5s ease-in",Ur({transform:"translateX(0%)"}))]),Gr(":leave",[jr("0.5s ease-in",Ur({transform:"translateX(-100%)"}))])]),Yr("slideInOutRight",[Gr(":enter",[Ur({transform:"translateX(100%)",position:"fixed"}),jr("0.5s ease-in",Ur({transform:"translateX(0%)"}))]),Gr(":leave",[Ur({transform:"translateX(-100%)",position:"relative"}),jr("0.5s ease-in",Ur({transform:"translateX(100%)"}))])]);let zg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez]]}),t})(),xg=(()=>{class t{transform(t){let e="";return null!==t.titleBefore&&(e+=t.titleBefore+" "),null!==t.firstName&&(e+=t.firstName+" "),null!==t.middleName&&(e+=t.middleName+" "),null!==t.lastName&&(e+=t.lastName+" "),null!==t.titleAfter&&(e+=t.titleAfter+" "),e.endsWith(" ")&&(e=e.substring(0,e.length-1)),e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"userFullName",type:t,pure:!0}),t})(),Og=(()=>{class t{constructor(t,e){this.translate=t,this.storage=e}transform(t,e="en"){const i=this.storage.get("custom_labels");if(i){const n=Object.keys(i);for(const i of n){const n=this.storage.get("custom_labels",i);if(n.label===t)return n[e]}}return t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(th,16),s.Y36(Kn,16))},t.\u0275pipe=s.Yjl({name:"customTranslate",type:t,pure:!0}),t})();class Rg{isErrorState(t){return!!(t&&t.invalid&&t.dirty)}}const Dg=(t,e,i,n=500)=>s=>Ls(n).pipe((0,Mt.w)(()=>(i.dontHandleErrorForNext(),t&&"No namespace"!==t?e.checkPasswordStrength(s.value,t):(0,ut.of)(null))),(0,At.U)(()=>null),(0,zt.K)(t=>(0,ut.of)({backendError:t.error.message.substr(t.error.message.indexOf(":")+1)}))),Pg=Js({passive:!0});let Ng=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return bt.E;const e=Jn(t),i=this._monitoredElements.get(e);if(i)return i.subject;const n=new lt.xQ,s="cdk-text-field-autofilled",o=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",o,Pg),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:n,unlisten:()=>{e.removeEventListener("animationstart",o,Pg)}}),n}stopMonitoring(t){const e=Jn(t),i=this._monitoredElements.get(e);i&&(i.unlisten(),i.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Ws),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(Ws),s.LFG(s.R0b))},token:t,providedIn:"root"}),t})(),Ig=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._platform=e,this._ngZone=i,this._destroyed=new lt.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._document=n,this._textareaElement=this._elementRef.nativeElement,this._measuringClass=e.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring"}get minRows(){return this._minRows}set minRows(t){this._minRows=Gn(t),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(t){this._maxRows=Gn(t),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(t){t=Zn(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(t){this._cachedPlaceholderHeight=void 0,this._textareaElement.placeholder=t,this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const t=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.minHeight=t)}_setMaxHeight(){const t=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.maxHeight=t)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{es(this._getWindow(),"resize").pipe(Ss(16),Es(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0))}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let t=this._textareaElement.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,this._textareaElement.parentNode.removeChild(t),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){this._textareaElement.classList.add(this._measuringClass);const t=this._textareaElement.scrollHeight-4;return this._textareaElement.classList.remove(this._measuringClass),t}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const t=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=t}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(t=!1){if(!this._enabled)return;if(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight)return;const e=this._elementRef.nativeElement,i=e.value;if(!t&&this._minRows===this._previousMinRows&&i===this._previousValue)return;const n=this._measureScrollHeight(),s=Math.max(n,this._cachedPlaceholderHeight||0);e.style.height=`${s}px`,this._ngZone.runOutsideAngular(()=>{"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(()=>this._scrollToCaretPosition(e)):setTimeout(()=>this._scrollToCaretPosition(e))}),this._previousValue=i,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(t){const{selectionStart:e,selectionEnd:i}=t,n=this._getDocument();this._destroyed.isStopped||n.activeElement!==t||t.setSelectionRange(e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Ws),s.Y36(s.R0b),s.Y36(n.K0,8))},t.\u0275dir=s.lG2({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&s.NdJ("input",function(){return e._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),t})(),qg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Us]]}),t})();const Bg=new s.OlP("MAT_INPUT_VALUE_ACCESSOR"),Hg=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Yg=0;class jg{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const Fg=Cu(jg);let Wg=(()=>{class t extends Fg{constructor(t,e,i,n,s,o,r,a,c,u){super(o,n,s,i),this._elementRef=t,this._platform=e,this.ngControl=i,this._autofillMonitor=a,this._formField=u,this._uid="mat-input-"+Yg++,this.focused=!1,this.stateChanges=new lt.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>Zs().has(t));const l=this._elementRef.nativeElement,h=l.nodeName.toLowerCase();this._inputValueAccessor=r||l,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&c.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{const e=t.target;e.value||0!==e.selectionStart||0!==e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===h,this._isTextarea="textarea"===h,this._isNativeSelect&&(this.controlType=l.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=Zn(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=Zn(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&Zs().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=Zn(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const i=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(i!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=i,i?t.setAttribute("placeholder",i):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){Hg.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Ws),s.Y36(Md,10),s.Y36(Xd,8),s.Y36(ap,8),s.Y36(Bu),s.Y36(Bg,10),s.Y36(Ng),s.Y36(s.R0b),s.Y36(Uh,8))},t.\u0275dir=s.lG2({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&s.NdJ("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(s.Ikx("disabled",e.disabled)("required",e.required),s.uIk("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),s.ekj("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[s._Bn([{provide:Oh,useExisting:t}]),s.qOj,s.TTD]}),t})(),Ug=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Bu],imports:[[qg,Zh,Mu],qg,Zh]}),t})();function Kg(t,e){1&t&&(s.TgZ(0,"mat-icon",2),s._uU(1," info "),s.qZA())}function Zg(t,e){1&t&&(s.TgZ(0,"mat-icon",2),s._uU(1," warning "),s.qZA())}function Gg(t,e){1&t&&(s.TgZ(0,"mat-icon",2),s._uU(1," dangerous "),s.qZA())}function Xg(t,e){1&t&&(s.TgZ(0,"mat-icon",2),s._uU(1," check_circle "),s.qZA())}const Vg=["*"];let $g=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:Vg,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(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.YNc(1,Kg,2,0,"mat-icon",1),s.YNc(2,Zg,2,0,"mat-icon",1),s.YNc(3,Gg,2,0,"mat-icon",1),s.YNc(4,Xg,2,0,"mat-icon",1),s.Hsn(5),s.qZA()),2&t&&(s.ekj("warn-alert","warn"===e.alert_type)("error-alert","error"===e.alert_type)("success-alert","success"===e.alert_type)("info-alert","info"===e.alert_type),s.xp6(1),s.Q6J("ngIf","info"===e.alert_type),s.xp6(1),s.Q6J("ngIf","warn"===e.alert_type),s.xp6(1),s.Q6J("ngIf","error"===e.alert_type),s.xp6(1),s.Q6J("ngIf","success"===e.alert_type))},directives:[n.O5,Jf],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:grey;text-align:left;border:1px solid #b3b3b3;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px solid #ececec;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 solid #fedcda;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px solid #d7ffd7;border-radius:10px;background-color:#d7ffd7}"]}),t})();function Jg(t,e){if(1&t&&(s.O4$(),s._UZ(0,"circle",3)),2&t){const t=s.oxw();s.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),s.uIk("r",t._getCircleRadius())}}function Qg(t,e){if(1&t&&(s.O4$(),s._UZ(0,"circle",3)),2&t){const t=s.oxw();s.Udp("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),s.uIk("r",t._getCircleRadius())}}function tm(t,e){if(1&t&&(s.O4$(),s._UZ(0,"circle",3)),2&t){const t=s.oxw();s.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),s.uIk("r",t._getCircleRadius())}}function em(t,e){if(1&t&&(s.O4$(),s._UZ(0,"circle",3)),2&t){const t=s.oxw();s.Udp("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),s.uIk("r",t._getCircleRadius())}}const im=".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:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[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-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation: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)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n";class nm{constructor(t){this._elementRef=t}}const sm=Tu(nm,"primary"),om=new s.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let rm=(()=>{class t extends sm{constructor(e,i,n,s,o){super(e),this._elementRef=e,this._document=n,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const r=t._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),r.has(n.head)||r.set(n.head,new Set([100])),this._fallbackAnimation=i.EDGE||i.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!o&&!o._forceAnimations,o&&(o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=Gn(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=Gn(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,Gn(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=eo(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,i=this._diameter,n=t._diameters;let s=n.get(e);if(!s||!s.has(i)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),t.textContent=this._getAnimationText(),e.appendChild(t),s||(s=new Set,n.set(e,s)),s.add(i)}}_getAnimationText(){const t=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*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Ws),s.Y36(n.K0,8),s.Y36(lu,8),s.Y36(om))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(s.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),s.Udp("width",e.diameter,"px")("height",e.diameter,"px"),s.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[s.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(s.O4$(),s.TgZ(0,"svg",0),s.YNc(1,Jg,1,9,"circle",1),s.YNc(2,Qg,1,7,"circle",2),s.qZA()),2&t&&(s.Udp("width",e.diameter,"px")("height",e.diameter,"px"),s.Q6J("ngSwitch","indeterminate"===e.mode),s.uIk("viewBox",e._getViewBox()),s.xp6(1),s.Q6J("ngSwitchCase",!0),s.xp6(1),s.Q6J("ngSwitchCase",!1))},directives:[n.RF,n.n9],styles:[im],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),am=(()=>{class t extends rm{constructor(t,e,i,n,s){super(t,e,i,n,s),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Ws),s.Y36(n.K0,8),s.Y36(lu,8),s.Y36(om))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(s.Udp("width",e.diameter,"px")("height",e.diameter,"px"),s.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[s.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(s.O4$(),s.TgZ(0,"svg",0),s.YNc(1,tm,1,9,"circle",1),s.YNc(2,em,1,7,"circle",2),s.qZA()),2&t&&(s.Udp("width",e.diameter,"px")("height",e.diameter,"px"),s.Q6J("ngSwitch","indeterminate"===e.mode),s.uIk("viewBox",e._getViewBox()),s.xp6(1),s.Q6J("ngSwitchCase",!0),s.xp6(1),s.Q6J("ngSwitchCase",!1))},directives:[n.RF,n.n9],styles:[im],encapsulation:2,changeDetection:0}),t})(),cm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Mu,n.ez],Mu]}),t})();function um(t,e){1&t&&s._UZ(0,"mat-spinner",12),2&t&&s.Q6J("diameter",18)}function lm(t,e){if(1&t&&(s.TgZ(0,"mat-icon",13),s._uU(1," error "),s.qZA()),2&t){const t=s.oxw();s.Q6J("matTooltip",t.getErrorTooltip())("matTooltipDisabled",!t.formGroup.get("passwordCtrl").hasError("backendError"))}}function hm(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function dm(t,e){if(1&t&&(s.TgZ(0,"mat-error",14),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.Q6J("matTooltip",t.getErrorTooltip()),s.xp6(1),s.Oqu(t.getErrorTooltip())}}function pm(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function fm(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let gm=(()=>{class t{constructor(t,e,i){this.translator=t,this.usersManagerService=e,this.store=i,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.multiLanguage=!1,this.language="en",this.allPasswordRequirements=this.store.get("password_requirements_help"),this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new Rg}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(t=>{const e=t.userAttributes.find(t=>"preferredLanguage"===t.friendlyName);this.language=e&&e.value?e.value.toString():"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 t=this.formGroup.get("passwordCtrl").getError("backendError");return t&&(t=t.replace(":null","")),t}changeHelp(){this.passwordRequirement=this.allPasswordRequirements.find(t=>t.split(":")[0]===this.namespace),this.passwordRequirement=void 0===this.passwordRequirement?this.allPasswordRequirements.find(t=>"default"===t.split(":")[0]).split(/:(.+)/)[1]:this.passwordRequirement.split(/:(.+)/)[1]}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(th),s.Y36(J),s.Y36(Kn))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",namespace:"namespace",multiLanguage:"multiLanguage",language:"language"},features:[s.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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"mat-form-field",1),s._UZ(2,"input",2),s.ALo(3,"translate"),s.YNc(4,um,1,1,"mat-spinner",3),s.TgZ(5,"mat-icon",4),s.NdJ("click",function(){return e.showNewPassword=!e.showNewPassword}),s._uU(6),s.qZA(),s.YNc(7,lm,2,2,"mat-icon",5),s.YNc(8,hm,3,3,"mat-error",6),s.YNc(9,dm,2,2,"mat-error",7),s.qZA(),s.TgZ(10,"mat-form-field",8),s.TgZ(11,"mat-label"),s._uU(12),s.ALo(13,"translate"),s.qZA(),s._UZ(14,"input",9),s.TgZ(15,"mat-icon",4),s.NdJ("click",function(){return e.showPasswordConfirm=!e.showPasswordConfirm}),s._uU(16),s.qZA(),s.YNc(17,pm,3,3,"mat-error",6),s.YNc(18,fm,3,3,"mat-error",6),s.qZA(),s.TgZ(19,"app-alert",10),s._UZ(20,"div",11),s.qZA(),s.qZA()),2&t&&(s.Q6J("formGroup",e.formGroup),s.xp6(1),s.Q6J("matTooltip",e.getPasswordDisabledTooltip())("matTooltipDisabled",e.formGroup.get("passwordCtrl").enabled),s.xp6(1),s.s9C("placeholder",s.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),s.Q6J("type",e.showNewPassword?"text":"password")("required",e.passwordRequired)("errorStateMatcher",e.passwordStateMatcher),s.xp6(2),s.Q6J("ngIf",e.formGroup.get("passwordCtrl").pending),s.xp6(2),s.hij(" ",e.showNewPassword?"visibility_off":"visibility"," "),s.xp6(1),s.Q6J("ngIf",e.formGroup.get("passwordCtrl").dirty&&null!==e.formGroup.get("passwordCtrl").errors),s.xp6(1),s.Q6J("ngIf",e.formGroup.get("passwordCtrl").hasError("required")),s.xp6(1),s.Q6J("ngIf",e.formGroup.get("passwordCtrl").hasError("backendError")),s.xp6(3),s.Oqu(s.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),s.xp6(2),s.Q6J("type",e.showPasswordConfirm?"text":"password")("required",e.passwordRequired),s.xp6(2),s.hij(" ",e.showPasswordConfirm?"visibility_off":"visibility"," "),s.xp6(1),s.Q6J("ngIf",e.formGroup.get("passwordAgainCtrl").hasError("required")),s.xp6(1),s.Q6J("ngIf",e.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),s.xp6(2),s.Q6J("innerHTML",e.passwordRequirement,s.oJD))},directives:[kd,ap,Kh,$p,Wg,Qh,Td,up,hp,n.O5,Jf,Hh,Nh,$g,am,zh],pipes:[eh],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right}.error-icon[_ngcontent-%COMP%], .input-spinner[_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;display:block;margin-top:-1px}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple, [_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{position:static!important;display:table}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}"]}),t})();function mm(t,e){1&t&&s._UZ(0,"mat-spinner",7)}function _m(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function bm(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function ym(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",8),s.TgZ(1,"mat-form-field"),s.TgZ(2,"mat-label"),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.TgZ(5,"input",9,10),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().subject=e}),s.qZA(),s.YNc(7,_m,3,3,"mat-error",11),s.qZA(),s.TgZ(8,"mat-form-field"),s.TgZ(9,"mat-label"),s._uU(10),s.ALo(11,"translate"),s.qZA(),s.TgZ(12,"textarea",12,13),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw().message=e}),s.ALo(14,"translate"),s._uU(15," "),s.qZA(),s.YNc(16,bm,3,3,"mat-error",11),s.qZA(),s.qZA()}if(2&t){const t=s.MAs(6),e=s.MAs(13),i=s.oxw();s.xp6(3),s.Oqu(s.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),s.xp6(2),s.Q6J("ngModel",i.subject),s.xp6(2),s.Q6J("ngIf",t.invalid),s.xp6(3),s.Oqu(s.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),s.xp6(2),s.s9C("placeholder",s.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),s.Q6J("ngModel",i.message),s.xp6(4),s.Q6J("ngIf",e.invalid)}}let wm=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.translate=e,this.notificator=i,this.rtMessages=n,this.data=s,this.storeService=o,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data.error&&this.data.error.errorId&&(this.subject=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(t=>{this.dialogRef.afterClosed().subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1")+t.ticketNumber+this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"))}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const t=this.storeService.get("config");let e=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(e=e.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),e=e.concat(this.data.error.message+"\nPerun instance: "+t+"\nRequest:\n"+this.data.error.urlWithParams+"\n\n"),this.data.error.payload){const t=/"password":".+?"/;let i=JSON.stringify(this.data.error.payload);i=i.replace(t,'"password":"####"'),e=e.concat("Payload:\n"+i+"\n\n")}return e=e.concat("Sended from new Perun Gui, version: "+i(306).i8),e.split("\n").join("\n ")}parseMethod(t){return t?this.methodRegexp.exec(t)[1]:t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(th),s.Y36(Mg),s.Y36(X),s.Y36(Al),s.Y36(Kn))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.YNc(3,mm,1,0,"mat-spinner",1),s.YNc(4,ym,17,13,"div",2),s.TgZ(5,"div",3),s.TgZ(6,"div",4),s.TgZ(7,"button",5),s.NdJ("click",function(){return e.dialogRef.close()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",6),s.NdJ("click",function(){return e.sendBugReport()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(4),s.hij(" ",s.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),s.xp6(2),s.Q6J("disabled",""===e.message||""===e.subject||e.loading),s.xp6(1),s.hij(" ",s.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},directives:[Sl,n.O5,zl,uh,am,El,Kh,Nh,Wg,Qh,hp,Td,Jd,zh],pipes:[eh],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})(),Am=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.dialog=e,this.data=i}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const t=ng();t.width="550px",t.data={error:this.data.error},t.autoFocus=!1,this.dialog.open(wm,t)}),this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(Ll),s.Y36(Al))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.qZA(),s.TgZ(2,"div",1),s._uU(3),s.qZA(),s.TgZ(4,"div",2),s.TgZ(5,"div",3),s.TgZ(6,"button",4),s.NdJ("click",function(){return e.onBugReportClick()}),s._uU(7),s.ALo(8,"translate"),s.qZA(),s.TgZ(9,"button",5),s.NdJ("click",function(){return e.onCloseClick()}),s._uU(10),s.ALo(11,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(e.data.title),s.xp6(2),s.hij(" ",e.data.description,"\n"),s.xp6(3),s.Q6J("hidden","error"!==e.data.type),s.xp6(1),s.hij(" ",s.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),s.xp6(3),s.hij(" ",s.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},directives:[Sl,El,zl,uh],pipes:[eh],styles:[""]}),t})();const Mm=[[["caption"]],[["colgroup"],["col"]]],vm=["caption","colgroup, col"];function Tm(t){return class extends t{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=Zn(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const km=new s.OlP("CDK_TABLE");let Lm=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkCellDef",""]]}),t})(),Cm=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),Sm=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class Em{}const zm=Tm(Em);let xm=(()=>{class t extends zm{constructor(t){super(),this._table=t,this._stickyEnd=!1}get name(){return this._name}set name(t){this._setNameInput(t)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const e=this._stickyEnd;this._stickyEnd=Zn(t),this._hasStickyChanged=e!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(km,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,Lm,5),s.Suo(i,Cm,5),s.Suo(i,Sm,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.cell=t.first),s.iGM(t=s.CRH())&&(e.headerCell=t.first),s.iGM(t=s.CRH())&&(e.footerCell=t.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[s._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),s.qOj]}),t})();class Om{constructor(t,e){const i=e.nativeElement.classList;for(const n of t._columnCssClassName)i.add(n)}}let Rm=(()=>{class t extends Om{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(xm),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[s.qOj]}),t})(),Dm=(()=>{class t extends Om{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(xm),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[s.qOj]}),t})();class Pm{constructor(){this.tasks=[],this.endTasks=[]}}const Nm=new s.OlP("_COALESCED_STYLE_SCHEDULER");let Im=(()=>{class t{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new lt.xQ}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Pm,this._getScheduleObservable().pipe(Es(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const t=this._currentSchedule;this._currentSchedule=new Pm;for(const e of t.tasks)e();for(const e of t.endTasks)e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,ct.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,vt.q)(1))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),qm=(()=>{class t{constructor(t,e){this.template=t,this._differs=e}ngOnChanges(t){if(!this._columnsDiffer){const e=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof Ym?t.headerCell.template:this instanceof Wm?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc),s.Y36(s.ZZ4))},t.\u0275dir=s.lG2({type:t,features:[s.TTD]}),t})();class Bm extends qm{}const Hm=Tm(Bm);let Ym=(()=>{class t extends Hm{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(km,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[s.qOj,s.TTD]}),t})();class jm extends qm{}const Fm=Tm(jm);let Wm=(()=>{class t extends Fm{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(km,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[s.qOj,s.TTD]}),t})(),Um=(()=>{class t extends qm{constructor(t,e,i){super(t,e),this._table=i}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(km,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[s.qOj]}),t})(),Km=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),Zm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.GkF(0,0)},directives:[Km],encapsulation:2}),t})(),Gm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.GkF(0,0)},directives:[Km],encapsulation:2}),t})(),Xm=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const Vm=["top","bottom","left","right"];class $m{constructor(t,e,i,n,s=!0,o=!0,r){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=n,this._isBrowser=s,this._needsPositionStickyOnElement=o,this._positionListener=r,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(t,e){const i=[];for(const n of t)if(n.nodeType===n.ELEMENT_NODE){i.push(n);for(let t=0;t{for(const t of i)this._removeStickyStyle(t,e)})}updateStickyColumns(t,e,i,n=!0){if(!t.length||!this._isBrowser||!e.some(t=>t)&&!i.some(t=>t))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const s=t[0],o=s.children.length,r=this._getCellWidths(s,n),a=this._getStickyStartColumnPositions(r,e),c=this._getStickyEndColumnPositions(r,i),u=e.lastIndexOf(!0),l=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const n="rtl"===this.direction,s=n?"right":"left",h=n?"left":"right";for(const r of t)for(let t=0;te[i]?t:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===l?[]:r.slice(l).map((t,e)=>i[e+l]?t:null).reverse()}))})}stickRows(t,e,i){if(!this._isBrowser)return;const n="bottom"===i?t.slice().reverse():t,s="bottom"===i?e.slice().reverse():e,o=[],r=[],a=[];for(let u=0,l=0;u{var t,e;for(let r=0;r{e.some(t=>!t)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(t,e){for(const i of e)t.style[i]="",t.classList.remove(this._borderCellCss[i]);Vm.some(i=>-1===e.indexOf(i)&&t.style[i])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i,n){t.classList.add(this._stickCellCss),n&&t.classList.add(this._borderCellCss[e]),t.style[e]=`${i}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const n of Vm)t.style[n]&&(i+=e[n]);return i?`${i}`:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],n=t.children;for(let s=0;s0;s--)e[s]&&(i[s]=n,n+=t[s]);return i}}const Jm=new s.OlP("CDK_SPL");let Qm=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","rowOutlet",""]]}),t})(),t_=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),e_=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),i_=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),n_=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u,l){this._differs=t,this._changeDetectorRef=e,this._elementRef=i,this._dir=s,this._platform=r,this._viewRepeater=a,this._coalescedStyleScheduler=c,this._viewportRuler=u,this._stickyPositioningListener=l,this._onDestroy=new lt.xQ,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.viewChange=new dt({start:0,end:Number.MAX_VALUE}),n||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=o,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=Zn(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=Zn(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,e)=>this.trackBy?this.trackBy(e.dataIndex,e.data):e),this._viewportRuler.change().pipe(Es(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.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),ro(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return void this._updateNoDataRow();const e=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,e,(t,e,i)=>this._getEmbeddedViewArgs(t.item,i),t=>t.item.data,t=>{1===t.operation&&t.context&&this._renderCellTemplateForItem(t.record.item.rowDef,t.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(t=>{e.get(t.currentIndex).context.$implicit=t.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");const i=this._headerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"top"),this._headerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");const i=this._footerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...e,...i],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((t,e)=>{this._addStickyColumnStyles([t],this._headerRowDefs[e])}),this._rowDefs.forEach(t=>{const i=[];for(let n=0;n{this._addStickyColumnStyles([t],this._footerRowDefs[e])}),Array.from(this._columnDefsByName.values()).forEach(t=>t.resetStickyChanged())}_getAllRenderRows(){const t=[],e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let i=0;i{const s=i&&i.has(n)?i.get(n):[];if(s.length){const t=s.shift();return t.dataIndex=e,t}return{data:t,rowDef:n,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),s_(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=s_(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=s_(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=s_(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(t,e)=>t||!!e.getColumnsDiff(),e=this._rowDefs.reduce(t,!1);e&&this._forceRenderDataRows();const i=this._headerRowDefs.reduce(t,!1);i&&this._forceRenderHeaderRows();const n=this._footerRowDefs.reduce(t,!1);return n&&this._forceRenderFooterRows(),e||i||n}_switchDataSource(t){this._data=[],ro(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;ro(this.dataSource)?t=this.dataSource.connect(this):ms(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=(0,ut.of)(this.dataSource)),this._renderChangeSubscription=t.pipe(Es(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,e)=>this._renderRow(this._headerRowOutlet,t,e)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,e)=>this._renderRow(this._footerRowOutlet,t,e)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,e){const i=Array.from(e.columns||[]).map(t=>this._columnDefsByName.get(t)),n=i.map(t=>t.sticky),s=i.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,n,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){const e=[];for(let i=0;i!i.when||i.when(e,t));else{let n=this._rowDefs.find(i=>i.when&&i.when(e,t))||this._defaultRowDef;n&&i.push(n)}return i}_getEmbeddedViewArgs(t,e){return{templateRef:t.rowDef.template,context:{$implicit:t.data},index:e}}_renderRow(t,e,i,n={}){const s=t.viewContainer.createEmbeddedView(e.template,n,i);return this._renderCellTemplateForItem(e,n),s}_renderCellTemplateForItem(t,e){for(let i of this._getCellTemplates(t))Km.mostRecentCellOutlet&&Km.mostRecentCellOutlet._viewContainer.createEmbeddedView(i,e);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let e=0,i=t.length;e{const i=this._columnDefsByName.get(e);return t.extractCellTemplate(i)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),e=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const i of e){const e=this._document.createElement(i.tag);e.setAttribute("role","rowgroup");for(const t of i.outlets)e.appendChild(t.elementRef.nativeElement);t.appendChild(e)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const t=(t,e)=>t||e.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new $m(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,ut.of)()).pipe(Es(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const t=this._customNoDataRow||this._noDataRow;if(t){const e=0===this._rowOutlet.viewContainer.length;if(e!==this._isShowingNoDataRow){const i=this._noDataRowOutlet.viewContainer;e?i.createEmbeddedView(t.templateRef):i.clear(),this._isShowingNoDataRow=e}}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.ZZ4),s.Y36(s.sBO),s.Y36(s.SBq),s.$8M("role"),s.Y36(so,8),s.Y36(n.K0),s.Y36(Ws),s.Y36(lo),s.Y36(Nm),s.Y36(fo),s.Y36(Jm,12))},t.\u0275cmp=s.Xpm({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,Xm,5),s.Suo(i,xm,5),s.Suo(i,Um,5),s.Suo(i,Ym,5),s.Suo(i,Wm,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._noDataRow=t.first),s.iGM(t=s.CRH())&&(e._contentColumnDefs=t),s.iGM(t=s.CRH())&&(e._contentRowDefs=t),s.iGM(t=s.CRH())&&(e._contentHeaderRowDefs=t),s.iGM(t=s.CRH())&&(e._contentFooterRowDefs=t)}},viewQuery:function(t,e){if(1&t&&(s.Gf(Qm,7),s.Gf(t_,7),s.Gf(e_,7),s.Gf(i_,7)),2&t){let t;s.iGM(t=s.CRH())&&(e._rowOutlet=t.first),s.iGM(t=s.CRH())&&(e._headerRowOutlet=t.first),s.iGM(t=s.CRH())&&(e._footerRowOutlet=t.first),s.iGM(t=s.CRH())&&(e._noDataRowOutlet=t.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("cdk-table-fixed-layout",e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[s._Bn([{provide:km,useExisting:t},{provide:lo,useClass:ao},{provide:Nm,useClass:Im},{provide:Jm,useValue:null}])],ngContentSelectors:vm,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(s.F$t(Mm),s.Hsn(0),s.Hsn(1,1),s.GkF(2,0),s.GkF(3,1),s.GkF(4,2),s.GkF(5,3))},directives:[t_,Qm,i_,e_],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})();function s_(t,e){return t.concat(Array.from(e))}let o_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[mo]]}),t})();const r_=[[["caption"]],[["colgroup"],["col"]]],a_=["caption","colgroup, col"];let c_=(()=>{class t extends n_{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-table-fixed-layout",e.fixedLayout)},exportAs:["matTable"],features:[s._Bn([{provide:lo,useClass:ao},{provide:n_,useExisting:t},{provide:km,useExisting:t},{provide:Nm,useClass:Im},{provide:Jm,useValue:null}]),s.qOj],ngContentSelectors:a_,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(s.F$t(r_),s.Hsn(0),s.Hsn(1,1),s.GkF(2,0),s.GkF(3,1),s.GkF(4,2),s.GkF(5,3))},directives:[t_,Qm,i_,e_],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-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}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:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),t})(),u_=(()=>{class t extends Lm{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matCellDef",""]],features:[s._Bn([{provide:Lm,useExisting:t}]),s.qOj]}),t})(),l_=(()=>{class t extends Cm{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matHeaderCellDef",""]],features:[s._Bn([{provide:Cm,useExisting:t}]),s.qOj]}),t})(),h_=(()=>{class t extends xm{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[s._Bn([{provide:xm,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),s.qOj]}),t})(),d_=(()=>{class t extends Rm{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[s.qOj]}),t})(),p_=(()=>{class t extends Dm{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[s.qOj]}),t})(),f_=(()=>{class t extends Ym{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[s._Bn([{provide:Ym,useExisting:t}]),s.qOj]}),t})(),g_=(()=>{class t extends Um{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[s._Bn([{provide:Um,useExisting:t}]),s.qOj]}),t})(),m_=(()=>{class t extends Zm{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[s._Bn([{provide:Zm,useExisting:t}]),s.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.GkF(0,0)},directives:[Km],encapsulation:2}),t})(),__=(()=>{class t extends Gm{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[s._Bn([{provide:Gm,useExisting:t}]),s.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.GkF(0,0)},directives:[Km],encapsulation:2}),t})(),b_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[o_,Mu],Mu]}),t})();class y_ extends class extends class{}{constructor(t=[]){super(),this._renderData=new dt([]),this._filter=new dt(""),this._internalPageChanges=new lt.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(t,e)=>{const i=t[e];if(Xn(i)){const t=Number(i);return t<9007199254740991?t:i}return i},this.sortData=(t,e)=>{const i=e.active,n=e.direction;return i&&""!=n?t.sort((t,e)=>{let s=this.sortingDataAccessor(t,i),o=this.sortingDataAccessor(e,i);const r=typeof s,a=typeof o;r!==a&&("number"===r&&(s+=""),"number"===a&&(o+=""));let c=0;return null!=s&&null!=o?s>o?c=1:s{const i=Object.keys(t).reduce((e,i)=>e+t[i]+"\u25ec","").toLowerCase(),n=e.trim().toLowerCase();return-1!=i.indexOf(n)},this._data=new dt(t),this._updateChangeSubscription()}get data(){return this._data.value}set data(t){this._data.next(t),this._renderChangesSubscription||this._filterData(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}_updateChangeSubscription(){var t;const e=this._sort?(0,ko.T)(this._sort.sortChange,this._sort.initialized):(0,ut.of)(null),i=this._paginator?(0,ko.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,ut.of)(null),n=(0,pt.aj)([this._data,this._filter]).pipe((0,At.U)(([t])=>this._filterData(t))),s=(0,pt.aj)([n,e]).pipe((0,At.U)(([t])=>this._orderData(t))),o=(0,pt.aj)([s,i]).pipe((0,At.U)(([t])=>this._pageData(t)));null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=o.subscribe(t=>this._renderData.next(t))}_filterData(t){return this.filteredData=null==this.filter||""===this.filter?t:t.filter(t=>this.filterPredicate(t,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;const e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=t,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,i=Math.min(e.pageIndex,t);i!==e.pageIndex&&(e.pageIndex=i,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var t;null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=null}}{}function w_(t,e){1&t&&s._UZ(0,"mat-spinner",3)}function A_(t,e){1&t&&s._UZ(0,"th",15)}function M_(t,e){if(1&t&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",t.userExtSource.extSource.name," ")}}function v_(t,e){1&t&&s._UZ(0,"tr",17)}function T_(t,e){1&t&&s._UZ(0,"tr",18)}function k_(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"div",4),s.TgZ(2,"p"),s._uU(3),s.ALo(4,"translate"),s.ALo(5,"customTranslate"),s.qZA(),s.TgZ(6,"div",5),s._uU(7),s.ALo(8,"translate"),s.ALo(9,"customTranslate"),s.qZA(),s.TgZ(10,"table",6),s.ynx(11,7),s.YNc(12,A_,1,0,"th",8),s.YNc(13,M_,2,1,"td",9),s.BQk(),s.YNc(14,v_,1,0,"tr",10),s.YNc(15,T_,1,0,"tr",11),s.qZA(),s.qZA(),s.TgZ(16,"div",12),s.TgZ(17,"button",13),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(18),s.ALo(19,"translate"),s.ALo(20,"customTranslate"),s.qZA(),s.TgZ(21,"button",14),s.NdJ("click",function(){return s.CHM(t),s.oxw().onSubmit()}),s._uU(22),s.ALo(23,"translate"),s.ALo(24,"customTranslate"),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(3),s.hij(" ",s.lcZ(4,7,s.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),s.xp6(4),s.hij(" ",s.lcZ(8,11,s.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),s.xp6(3),s.Q6J("dataSource",t.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",t.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",t.displayedColumns),s.xp6(3),s.hij(" ",s.lcZ(19,15,s.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),s.xp6(4),s.hij(" ",s.lcZ(23,19,s.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let L_=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.usersManagerService=i,this.translate=n,this.notificator=s,this.force=!1,this.displayedColumns=["name"],n.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new y_(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 t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(Al),s.Y36(J),s.Y36(th),s.Y36(Mg))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.TgZ(4,"div"),s.YNc(5,w_,1,0,"mat-spinner",1),s.YNc(6,k_,25,23,"div",2),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,6,s.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE")),"\n"),s.xp6(3),s.Tol(e.theme),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[Sl,n.O5,am,El,c_,h_,l_,u_,f_,g_,zl,uh,d_,p_,m_,__],pipes:[eh,Og],styles:[""]}),t})();class C_{constructor(t,e){this._document=e;const i=this._textarea=this._document.createElement("textarea"),n=i.style;n.position="fixed",n.top=n.opacity="0",n.left="-999em",i.setAttribute("aria-hidden","true"),i.value=t,this._document.body.appendChild(i)}copy(){const t=this._textarea;let e=!1;try{if(t){const i=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch(hE){}return e}destroy(){const t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}let S_=(()=>{class t{constructor(t){this._document=t}copy(t){const e=this.beginCopy(t),i=e.copy();return e.destroy(),i}beginCopy(t){return new C_(t,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0))},token:t,providedIn:"root"}),t})();const E_=new s.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let z_=(()=>{class t{constructor(t,e,i){this._clipboard=t,this._ngZone=e,this.text="",this.attempts=1,this.copied=new s.vpe,this._pending=new Set,i&&null!=i.attempts&&(this.attempts=i.attempts)}copy(t=this.attempts){if(t>1){let e=t;const i=this._clipboard.beginCopy(this.text);this._pending.add(i);const n=()=>{const t=i.copy();t||!--e||this._destroyed?(this._currentTimeout=null,this._pending.delete(i),i.destroy(),this.copied.emit(t)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(n,1))};n()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(t=>t.destroy()),this._pending.clear(),this._destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S_),s.Y36(s.R0b),s.Y36(E_,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),t})(),x_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),O_=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}ngOnInit(){this.value=this.data.value,this.title=this.data.title}onCancel(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(Al))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.qZA(),s.TgZ(2,"div",1),s.TgZ(3,"textarea",2),s._uU(4),s.qZA(),s.qZA(),s.TgZ(5,"div",3),s.TgZ(6,"button",4),s.NdJ("click",function(){return e.onCancel()}),s._uU(7),s.ALo(8,"translate"),s.qZA(),s.TgZ(9,"button",5),s._uU(10),s.ALo(11,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(e.title),s.xp6(3),s.Oqu(e.value),s.xp6(3),s.hij(" ",s.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),s.xp6(2),s.Q6J("cdkCopyToClipboard",e.value),s.xp6(1),s.hij(" ",s.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},directives:[Sl,El,Ig,Wg,zl,uh,z_],pipes:[eh],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),t})(),R_=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,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 t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(Al))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h5",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s.TgZ(4,"mat-form-field"),s.TgZ(5,"textarea",2),s.NdJ("ngModelChange",function(t){return e.attributeValue=t}),s.qZA(),s.qZA(),s.qZA(),s.TgZ(6,"div",3),s.TgZ(7,"button",4),s.NdJ("click",function(){return e.cancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return e.submit()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE"),"\n"),s.xp6(4),s.Q6J("ngModel",e.attributeValue),s.xp6(3),s.hij(" ",s.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),s.xp6(3),s.hij(" ",s.lcZ(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},directives:[Sl,El,Kh,Ig,Wg,Qh,Td,Jd,zl,uh],pipes:[eh],styles:[""]}),t})(),D_=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}cancel(){this.dialogRef.close()}submit(){this.dialogRef.close(!0)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(Al))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h5",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s.TgZ(4,"div"),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"div",2),s._uU(8),s.qZA(),s.qZA(),s.TgZ(9,"div",3),s.TgZ(10,"button",4),s.NdJ("click",function(){return e.cancel()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.TgZ(13,"button",5),s.NdJ("click",function(){return e.submit()}),s._uU(14),s.ALo(15,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE"),"\n"),s.xp6(4),s.hij(" ",s.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),s.xp6(3),s.hij(" ",e.data.name," "),s.xp6(3),s.hij(" ",s.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),s.xp6(3),s.hij(" ",s.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},directives:[Sl,El,zl,uh],pipes:[eh],styles:[""]}),t})();function P_(t,e){if(1&t&&(s.TgZ(0,"app-alert",9),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Oqu(t.pendingEmailsMessage)}}function N_(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}let I_=(()=>{class t{constructor(t,e,i,n,s,o){this.dialogRef=t,this.data=e,this.translate=i,this.notificator=n,this.usersManagerService=s,this.authService=o,this.pendingMails=[],i.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(t=>this.successMessage=t),i.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(t=>this.pendingEmailsMessageStart=t),i.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(t=>this.pendingEmailsMessageEnd=t)}ngOnInit(){this.emailControl=new Wd(null,[od.required,od.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(t=>{this.pendingMails=t.filter((t,e,i)=>e===i.indexOf(t));let e="";this.pendingMails.forEach(t=>e+=`${t===this.pendingMails[0]?"":", "}${t}`),console.log(e),this.pendingEmailsMessage=this.pendingEmailsMessageStart+e+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 t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(Al),s.Y36(th),s.Y36(Mg),s.Y36(J),s.Y36(Rl))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.TgZ(4,"div",1),s.YNc(5,P_,2,1,"app-alert",2),s.TgZ(6,"mat-form-field",3),s.TgZ(7,"label",3),s._UZ(8,"input",4),s.ALo(9,"translate"),s.ALo(10,"customTranslate"),s.qZA(),s.YNc(11,N_,4,5,"mat-error",5),s.qZA(),s.qZA(),s.TgZ(12,"div",6),s.TgZ(13,"button",7),s.NdJ("click",function(){return e.onCancel()}),s._uU(14),s.ALo(15,"translate"),s.ALo(16,"customTranslate"),s.qZA(),s.TgZ(17,"button",8),s.NdJ("click",function(){return e.onSubmit()}),s._uU(18),s.ALo(19,"translate"),s.ALo(20,"customTranslate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,8,s.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),s.xp6(4),s.Q6J("ngIf",e.pendingMails.length),s.xp6(3),s.s9C("placeholder",s.lcZ(9,12,s.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),s.Q6J("formControl",e.emailControl),s.xp6(3),s.Q6J("ngIf",e.emailControl.invalid),s.xp6(3),s.hij(" ",s.lcZ(15,16,s.lcZ(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),s.xp6(3),s.Q6J("disabled",!e.emailControl.valid),s.xp6(1),s.hij(" ",s.lcZ(19,20,s.lcZ(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},directives:[Sl,El,n.O5,Kh,Wg,Qh,hp,Td,op,zl,uh,$g,zh],pipes:[eh,Og],styles:[""]}),t})(),q_=(()=>{class t{constructor(t,e){this.dialogRef=t,this.router=e}onClose(){this.router.navigate([]),this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(Mn))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s.TgZ(4,"app-alert",2),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA(),s.TgZ(7,"div",3),s.TgZ(8,"button",4),s.NdJ("click",function(){return e.onClose()}),s._uU(9),s.ALo(10,"translate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE"),"\n"),s.xp6(4),s.Oqu(s.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),s.xp6(4),s.hij(" ",s.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},directives:[Sl,El,$g,zl,uh],pipes:[eh],styles:[""]}),t})();function B_(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.FIELD_EMPTY")))}function H_(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"form",5),s.TgZ(1,"div",6),s.TgZ(2,"mat-form-field"),s.TgZ(3,"mat-label"),s._uU(4),s.ALo(5,"translate"),s.qZA(),s._UZ(6,"input",7),s.TgZ(7,"mat-icon",8),s.NdJ("click",function(){s.CHM(t);const e=s.oxw();return e.showOldPassword=!e.showOldPassword}),s._uU(8),s.qZA(),s.YNc(9,B_,3,3,"mat-error",9),s.qZA(),s._UZ(10,"perun-web-apps-password-form",10),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("formGroup",t.formGroup),s.xp6(4),s.Oqu(s.lcZ(5,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.OLD_PASSWORD")),s.xp6(2),s.Q6J("type",t.showOldPassword?"text":"password"),s.xp6(2),s.hij(" ",t.showOldPassword?"visibility_off":"visibility"," "),s.xp6(1),s.Q6J("ngIf",t.oldPwd.hasError("required")),s.xp6(1),s.Q6J("formGroup",t.formGroup)("namespace",t.data.namespace)}}function Y_(t,e){1&t&&s._UZ(0,"mat-spinner",11)}function j_(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",12),s.TgZ(1,"div",13),s.TgZ(2,"button",14),s.NdJ("click",function(){return s.CHM(t),s.oxw().close()}),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.TgZ(5,"button",15),s.NdJ("click",function(){return s.CHM(t),s.oxw().changePassword()}),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(3),s.hij(" ",s.lcZ(4,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CANCEL")," "),s.xp6(2),s.Q6J("disabled",t.formGroup.invalid||t.formGroup.pending),s.xp6(1),s.hij(" ",s.lcZ(7,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CHANGE")," ")}}let F_=(()=>{class t{constructor(t,e,i,n,s,o,r){this.dialogRef=t,this.data=e,this._formBuilder=i,this.usersManagerService=n,this.apiRequestConfiguration=s,this.notificator=o,this.translate=r,this.showOldPassword=!1,r.get("SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.formGroup=this._formBuilder.group({oldPasswordCtrl:["",od.required],passwordCtrl:["",od.required,[Dg(this.data.namespace,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""]},{validators:_g.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(this.data.login,this.data.namespace,this.newPwd.value,this.oldPwd.value,!0).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(Al),s.Y36(gp),s.Y36(J),s.Y36(Ag),s.Y36(Mg),s.Y36(th))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s.YNc(4,H_,11,9,"form",2),s.YNc(5,Y_,1,0,"mat-spinner",3),s.qZA(),s.YNc(6,j_,8,7,"div",4)),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.TITLE")),s.xp6(3),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[Sl,El,n.O5,Qd,kd,ap,Kh,Nh,Qh,Wg,Td,up,hp,Jf,Hh,gm,zh,am,zl,uh],pipes:[eh],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}"]}),t})();const W_=["input"],U_=function(t){return{enterDuration:t}},K_=["*"],Z_=new s.OlP("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}});let G_=0;const X_={provide:Vh,useExisting:(0,s.Gpc)(()=>Q_),multi:!0};class V_{constructor(t,e){this.source=t,this.value=e}}const $_=new s.OlP("MatRadioGroup");let J_=(()=>{class t{constructor(t){this._changeDetector=t,this._value=null,this._name="mat-radio-group-"+G_++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new s.vpe}get name(){return this._name}set name(t){this._name=t,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(t){this._labelPosition="before"===t?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(t){this._disabled=Zn(t),this._markRadiosForCheck()}get required(){return this._required}set required(t){this._required=Zn(t),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(t=>{t.name=this.name,t._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 V_(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(t=>t._markForCheck())}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t,inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"}}),t})(),Q_=(()=>{class t extends J_{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["mat-radio-group"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,nb,5),2&t){let t;s.iGM(t=s.CRH())&&(e._radios=t)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[s._Bn([X_,{provide:$_,useExisting:t}]),s.qOj]}),t})();class tb{constructor(t){this._elementRef=t}}const eb=ku(Lu(tb));let ib=(()=>{class t extends eb{constructor(t,e,i,n,o,r,a,c){super(e),this._changeDetector=i,this._focusMonitor=n,this._radioDispatcher=o,this._providerOverride=a,this._uniqueId="mat-radio-"+ ++G_,this.id=this._uniqueId,this.change=new s.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=t,this._noopAnimations="NoopAnimations"===r,c&&(this.tabIndex=Gn(c,0)),this._removeUniqueSelectionListener=o.listen((t,e)=>{t!==this.id&&e===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(t){const e=Zn(t);this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(t){this._labelPosition=t}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(t){this._setDisabled(Zn(t))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(t){this._required=Zn(t)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(t){this._color=t}get inputId(){return`${this.id||this._uniqueId}-input`}focus(t,e){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}_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)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{!t&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new V_(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(t){t.stopPropagation()}_onInputChange(t){t.stopPropagation();const e=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),e&&this.radioGroup._emitChangeEvent())}_setDisabled(t){this._disabled!==t&&(this._disabled=t,this._changeDetector.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(J_),s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(Pr),s.Y36(uo),s.Y36(String),s.Y36(void 0),s.Y36(String))},t.\u0275dir=s.lG2({type:t,viewQuery:function(t,e){if(1&t&&s.Gf(W_,5),2&t){let t;s.iGM(t=s.CRH())&&(e._inputElement=t.first)}},inputs:{id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},features:[s.qOj]}),t})(),nb=(()=>{class t extends ib{constructor(t,e,i,n,s,o,r,a){super(t,e,i,n,s,o,r,a)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36($_,8),s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(Pr),s.Y36(uo),s.Y36(lu,8),s.Y36(Z_,8),s.$8M("tabindex"))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,e){1&t&&s.NdJ("focus",function(){return e._inputElement.nativeElement.focus()}),2&t&&(s.uIk("tabindex",null)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),s.ekj("mat-radio-checked",e.checked)("mat-radio-disabled",e.disabled)("_mat-animation-noopable",e._noopAnimations)("mat-primary","primary"===e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[s.qOj],ngContentSelectors:K_,decls:13,vars:20,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","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","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(t,e){if(1&t&&(s.F$t(),s.TgZ(0,"label",0,1),s.TgZ(2,"span",2),s._UZ(3,"span",3),s._UZ(4,"span",4),s.TgZ(5,"input",5,6),s.NdJ("change",function(t){return e._onInputChange(t)})("click",function(t){return e._onInputClick(t)}),s.qZA(),s.TgZ(7,"span",7),s._UZ(8,"span",8),s.qZA(),s.qZA(),s.TgZ(9,"span",9),s.TgZ(10,"span",10),s._uU(11,"\xa0"),s.qZA(),s.Hsn(12),s.qZA(),s.qZA()),2&t){const t=s.MAs(1);s.uIk("for",e.inputId),s.xp6(5),s.Q6J("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex)("required",e.required),s.uIk("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),s.xp6(2),s.Q6J("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",s.VKq(18,U_,e._noopAnimations?0:150)),s.xp6(2),s.ekj("mat-radio-label-before","before"==e.labelPosition)}},directives:[Vu],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-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;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-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{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),t})(),sb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[$u,Mu],Mu]}),t})();function ob(t,e){1&t&&s._UZ(0,"mat-spinner",4)}function rb(t,e){1&t&&(s.TgZ(0,"span",11),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function ab(t,e){1&t&&(s.TgZ(0,"span",11),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function cb(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-radio-group",12),s.NdJ("ngModelChange",function(e){return s.CHM(t),s.oxw(2).asyncValidation=e}),s.TgZ(1,"span",13),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"mat-radio-button",14),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"mat-radio-button",14),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(2);s.Q6J("ngModel",t.asyncValidation),s.xp6(2),s.hij(" ",s.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE"),": "),s.xp6(2),s.Q6J("value",!1),s.xp6(1),s.hij(" ",s.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),s.xp6(2),s.Q6J("value",!0),s.xp6(1),s.hij(" ",s.lcZ(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," ")}}function ub(t,e){1&t&&(s.TgZ(0,"span",11),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function lb(t,e){1&t&&(s.TgZ(0,"span",11),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function hb(t,e){if(1&t&&(s.TgZ(0,"div",5),s.TgZ(1,"p",6),s._uU(2),s.TgZ(3,"span",7),s._uU(4),s.qZA(),s._uU(5),s.TgZ(6,"span",7),s._uU(7),s.qZA(),s.qZA(),s.TgZ(8,"p"),s.TgZ(9,"strong",8),s._uU(10),s.ALo(11,"translate"),s.qZA(),s._uU(12),s.qZA(),s.TgZ(13,"p"),s.TgZ(14,"strong",8),s._uU(15),s.ALo(16,"translate"),s.qZA(),s._uU(17),s.qZA(),s.YNc(18,rb,3,3,"span",9),s.YNc(19,ab,3,3,"span",9),s.YNc(20,cb,10,12,"mat-radio-group",10),s.YNc(21,ub,3,3,"span",9),s.YNc(22,lb,3,3,"span",9),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.hij(" ",t.group.name," "),s.xp6(2),s.hij("#",t.group.id,""),s.xp6(1),s.hij(" - ",t.resource.name," "),s.xp6(2),s.hij("#",t.resource.id,""),s.xp6(3),s.hij("",s.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT"),":"),s.xp6(2),s.hij(" ",t.status," "),s.xp6(3),s.hij("",s.lcZ(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW"),":"),s.xp6(2),s.hij(" ",t.getReversedStatus()," "),s.xp6(1),s.Q6J("ngIf","INACTIVE"===t.status),s.xp6(1),s.Q6J("ngIf","ACTIVE"===t.status),s.xp6(1),s.Q6J("ngIf","INACTIVE"===t.status),s.xp6(1),s.Q6J("ngIf","INACTIVE"===t.status&&!1===t.asyncValidation),s.xp6(1),s.Q6J("ngIf","INACTIVE"===t.status&&!0===t.asyncValidation)}}function db(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",15),s.TgZ(1,"button",16),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"button",17),s.NdJ("click",function(){return s.CHM(t),s.oxw().onSubmit()}),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),s.xp6(2),s.Q6J("disabled",t.loading),s.xp6(1),s.hij(" ",s.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG."+("ACTIVE"===t.status?"DEACTIVATE":"ACTIVATE"))," ")}}let pb=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.data=e,this.resourceService=i,this.groupService=n,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(t=>{this.resource=t,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 t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(Al),s.Y36($),s.Y36(Z))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,ob,1,0,"mat-spinner",1),s.YNc(5,hb,23,17,"div",2),s.YNc(6,db,7,7,"div",3),s.qZA()),2&t&&(s.Tol(e.theme),s.xp6(2),s.hij(" ",s.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")," "),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[Sl,n.O5,am,El,Q_,Td,Jd,nb,zl,uh],pipes:[eh],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),t})();function fb(t,e){if(1&t&&(s.TgZ(0,"div",5),s.TgZ(1,"mat-icon"),s._uU(2),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.Oqu(t.data.icon)}}function gb(t,e){if(1&t&&(s.TgZ(0,"div",6),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.hij(" ",t.showTimestamp()," ")}}let mb=(()=>{class t{constructor(t,e){this.dialog=t,this.notificationStorageService=e,this.newNotification=!1,this.closeNotification=new s.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 t=ng();t.width="550px",t.data=this.data,t.autoFocus=!1,this.dialog.open(Am,t).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function(t,e){return i=this,s=function*(){var i;yield(i=t,new Promise(t=>setTimeout(t,i))),e()},new((n=void 0)||(n=Promise))(function(t,e){function o(t){try{a(s.next(t))}catch(i){e(i)}}function r(t){try{a(s.throw(t))}catch(i){e(i)}}function a(e){var i;e.done?t(e.value):(i=e.value,i instanceof n?i:new n(function(t){t(i)})).then(o,r)}a((s=s.apply(i,[])).next())});var i,n,s}(this.data.delay,()=>{this.alreadyClosed||this.waiting||this.closeSelf()})}showTimestamp(){const[t,e]=this.data.timeStamp.split(":");return e.length<2?t+":0"+e:this.data.timeStamp}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Ll),s.Y36(Tg))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"div",0),s.NdJ("click",function(){return e.alreadyClosed||e.waiting?"":e.closeSelf()}),s.YNc(2,fb,3,1,"div",1),s.TgZ(3,"div",2),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.YNc(6,gb,2,1,"div",3),s.TgZ(7,"div",4),s.NdJ("click",function(){return e.waiting=!0,e.doAction()}),s._uU(8),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Gre("notification ",e.inDialog?"":"mat-elevation-z7",""),s.ekj("error","error"===e.data.type)("success","success"===e.data.type),s.xp6(2),s.Q6J("ngIf",null!==e.data.icon),s.xp6(2),s.hij(" ",s.lcZ(5,12,e.data.title)," "),s.xp6(2),s.Q6J("ngIf",e.inDialog),s.xp6(1),s.Q6J("hidden",e.alreadyPressed),s.xp6(1),s.hij(" ",e.data.actionText," "))},directives:[n.O5,Jf],pipes:[eh],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}"]}),t})();function _b(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"perun-web-apps-notification",2),s.NdJ("closeNotification",function(){const e=s.CHM(t).index;return s.oxw().removeNotification(e)}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit;s.Q6J("@flyInOut",void 0),s.xp6(1),s.Q6J("data",t)("newNotification",!0)}}const bb=function(t){return{top:t}};let yb=(()=>{class t{constructor(t,e){this.notificator=t,this.notificationStorageService=e,this.mobileView=!1,this.minWidth=992,this.displayWarning=!1,this.notifications=[],this.notificator.addNotification.subscribe(t=>{this.processNotification(t)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}processNotification(t){this.notifications.push(t),this.notificationStorageService.storeNotification(t)}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(t){this.notifications.splice(t,1)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Mg),s.Y36(Tg))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-notificator"]],hostBindings:function(t,e){1&t&&s.NdJ("resize",function(t){return e.getScreenSize(t)},!1,s.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.YNc(1,_b,2,3,"div",1),s.qZA()),2&t&&(s.Q6J("ngStyle",s.VKq(2,bb,e.getNotificatorTop())),s.xp6(1),s.Q6J("ngForOf",e.notifications))},directives:[n.PC,n.sg,mb],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width:768px){#notificator[_ngcontent-%COMP%]{width:100%;top:auto;bottom:0}}"],data:{animation:[Eg]}}),t})();const wb=["*",[["mat-toolbar-row"]]],Ab=["*","mat-toolbar-row"];class Mb{constructor(t){this._elementRef=t}}const vb=Tu(Mb);let Tb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),kb=(()=>{class t extends vb{constructor(t,e,i){super(t),this._platform=e,this._document=i}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Ws),s.Y36(n.K0))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,Tb,5),2&t){let t;s.iGM(t=s.CRH())&&(e._toolbarRows=t)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&s.ekj("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[s.qOj],ngContentSelectors:Ab,decls:2,vars:0,template:function(t,e){1&t&&(s.F$t(wb),s.Hsn(0),s.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%}\n"],encapsulation:2,changeDetection:0}),t})(),Lb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Mu],Mu]}),t})();const Cb={provide:s.tb,useFactory:function(t,e){return()=>{if((0,n.NF)(e)){const e=Array.from(t.querySelectorAll(`[class*=${Sb}]`)),i=/\bflex-layout-.+?\b/g;e.forEach(t=>{t.classList.contains(`${Sb}ssr`)&&t.parentNode?t.parentNode.removeChild(t):t.className.replace(i,"")})}}},deps:[n.K0,s.Lbi],multi:!0},Sb="flex-layout-";let Eb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Cb]}),t})();class zb{constructor(t=!1,e="all",i="",n="",s=0){this.matches=t,this.mediaQuery=e,this.mqAlias=i,this.suffix=n,this.priority=s,this.property=""}clone(){return new zb(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let xb=(()=>{class t{constructor(){this.stylesheet=new Map}addStyleToElement(t,e,i){const n=this.stylesheet.get(t);n?n.set(e,i):this.stylesheet.set(t,new Map([[e,i]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(t,e){const i=this.stylesheet.get(t);let n="";if(i){const t=i.get(e);"number"!=typeof t&&"string"!=typeof t||(n=t+"")}return n}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Ob={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},Rb=new s.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>Ob}),Db=new s.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),Pb=new s.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function Nb(t,e){return t=t?t.clone():new zb,e&&(t.mqAlias=e.alias,t.mediaQuery=e.mediaQuery,t.suffix=e.suffix,t.priority=e.priority),t}const Ib=["row","column","row-reverse","column-reverse"];function qb(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let Bb=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.styleBuilder=e,this.styler=i,this.marshal=n,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new lt.xQ,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(t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,this.marshal.activatedAlias)}ngOnChanges(t){Object.keys(t).forEach(e=>{if(-1!==this.inputs.indexOf(e)){const i=e.split(".").slice(1).join(".");this.setValue(t[e].currentValue,i)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(t=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),t)}addStyles(t,e){const i=this.styleBuilder,n=i.shouldCache;let s=this.styleCache.get(t);s&&n||(s=i.buildStyles(t,e),n&&this.styleCache.set(t,s)),this.mru=Object.assign({},s),this.applyStyleToElement(s),i.sideEffect(t,s,e)}clearStyles(){Object.keys(this.mru).forEach(t=>{this.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={}}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(t,e=!1){if(t){const[i,n]=this.styler.getFlowDirection(t);if(!n&&e){const e=function(t){let[e,i,n]=function(t){t=t?t.toLowerCase():"";let[e,i,n]=t.split(" ");return Ib.find(t=>t===e)||(e=Ib[0]),"inline"===i&&(i="inline"!==n?n:"",n="inline"),[e,qb(i),!!n]}(t);return function(t,e=null,i=!1){return{display:i?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,i,n)}(i);this.styler.applyStyleToElements(e,[t])}return i.trim()}return"row"}hasWrap(t){return this.styler.hasWrap(t)}applyStyleToElement(t,e,i=this.nativeElement){this.styler.applyStyleToElement(i,t,e)}setValue(t,e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,e)}updateWithValue(t){this.currentValue!==t&&(this.addStyles(t),this.currentValue=t)}}return t.\u0275fac=function(t){s.$Z()},t.\u0275dir=s.lG2({type:t,features:[s.TTD]}),t})();const Hb=[{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}],Yb="(orientation: portrait) and (max-width: 599.98px)",jb="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",Fb="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",Wb="(orientation: portrait) and (min-width: 840px)",Ub="(orientation: landscape) and (min-width: 1280px)",Kb={HANDSET:`${Yb}, (orientation: landscape) and (max-width: 959.98px)`,TABLET:`${jb} , ${Fb}`,WEB:`${Wb}, ${Ub} `,HANDSET_PORTRAIT:`${Yb}`,TABLET_PORTRAIT:`${jb} `,WEB_PORTRAIT:`${Wb}`,HANDSET_LANDSCAPE:"(orientation: landscape) and (max-width: 959.98px)",TABLET_LANDSCAPE:`${Fb}`,WEB_LANDSCAPE:`${Ub}`},Zb=[{alias:"handset",priority:2e3,mediaQuery:Kb.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Kb.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Kb.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Kb.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Kb.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Kb.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Kb.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Kb.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Kb.WEB_PORTRAIT,overlapping:!0}],Gb=/(\.|-|_)/g;function Xb(t){let e=t.length>0?t.charAt(0):"",i=t.length>1?t.slice(1):"";return e.toUpperCase()+i}const Vb=new s.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const t=(0,s.f3M)(Pb),e=(0,s.f3M)(Rb),i=[].concat.apply([],(t||[]).map(t=>Array.isArray(t)?t:[t]));return function(t,e=[]){const i={};return t.forEach(t=>{i[t.alias]=t}),e.forEach(t=>{i[t.alias]?function(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let i of e)if(null!=i)for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e])}(i[t.alias],t):i[t.alias]=t}),(n=Object.keys(i).map(t=>i[t])).forEach(t=>{t.suffix||(t.suffix=t.alias.replace(Gb,"|").split("|").map(Xb).join(""),t.overlapping=!!t.overlapping)}),n;var n}((e.disableDefaultBps?[]:Hb).concat(e.addOrientationBps?Zb:[]),i)}});function $b(t,e){return(e&&e.priority||0)-(t&&t.priority||0)}function Jb(t,e){return(t.priority||0)-(e.priority||0)}let Qb=(()=>{class t{constructor(t){this.findByMap=new Map,this.items=[...t].sort(Jb)}findByAlias(t){return t?this.findWithPredicate(t,e=>e.alias==t):null}findByQuery(t){return this.findWithPredicate(t,e=>e.mediaQuery==t)}get overlappings(){return this.items.filter(t=>1==t.overlapping)}get aliases(){return this.items.map(t=>t.alias)}get suffixes(){return this.items.map(t=>t.suffix?t.suffix:"")}findWithPredicate(t,e){let i=this.findByMap.get(t);return i||(i=this.items.find(e)||null,this.findByMap.set(t,i)),i||null}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Vb))},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t((0,s.LFG)(Vb))},token:t,providedIn:"root"}),t})(),ty=(()=>{class t{constructor(t,e,i){this._zone=t,this._platformId=e,this._document=i,this.source=new dt(new zb(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const t=[];return this.registry.forEach((e,i)=>{e.matches&&t.push(i)}),t}isActive(t){const e=this.registry.get(t);return e?e.matches:this.registerQuery(t).some(t=>t.matches)}observe(t,e=!1){if(t&&t.length){const i=this._observable$.pipe((0,at.h)(i=>!e||t.indexOf(i.mediaQuery)>-1)),n=new ft.y(e=>{const i=this.registerQuery(t);if(i.length){const t=i.pop();i.forEach(t=>{e.next(t)}),this.source.next(t)}e.complete()});return(0,ko.T)(n,i)}return this._observable$}registerQuery(t){const e=Array.isArray(t)?t:[t],i=[];return function(t,e){const i=t.filter(t=>!ey[t]);if(i.length>0){const t=i.join(", ");try{const n=e.createElement("style");n.setAttribute("type","text/css"),n.styleSheet||n.appendChild(e.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`)),e.head.appendChild(n),i.forEach(t=>ey[t]=n)}catch(n){console.error(n)}}}(e,this._document),e.forEach(t=>{const e=e=>{this._zone.run(()=>this.source.next(new zb(e.matches,t)))};let n=this.registry.get(t);n||(n=this.buildMQL(t),n.addListener(e),this.pendingRemoveListenerFns.push(()=>n.removeListener(e)),this.registry.set(t,n)),n.matches&&i.push(new zb(!0,t))}),i}ngOnDestroy(){let t;for(;t=this.pendingRemoveListenerFns.pop();)t()}buildMQL(t){return function(t,e){return e&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(t,(0,n.NF)(this._platformId))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(s.Lbi),s.LFG(n.K0))},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t((0,s.LFG)(s.R0b),(0,s.LFG)(s.Lbi),(0,s.LFG)(n.K0))},token:t,providedIn:"root"}),t})();const ey={},iy={alias:"print",mediaQuery:"print",priority:1e3};let ny=(()=>{class t{constructor(t,e,i){this.breakpoints=t,this.layoutConfig=e,this._document=i,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new sy,this.deactivations=[]}withPrintQuery(t){return[...t,"print"]}isPrintEvent(t){return t.mediaQuery.startsWith("print")}get printAlias(){return this.layoutConfig.printWithBreakpoints||[]}get printBreakPoints(){return this.printAlias.map(t=>this.breakpoints.findByAlias(t)).filter(t=>null!==t)}getEventBreakpoints({mediaQuery:t}){const e=this.breakpoints.findByQuery(t);return(e?[...this.printBreakPoints,e]:this.printBreakPoints).sort($b)}updateEvent(t){let e=this.breakpoints.findByQuery(t.mediaQuery);return this.isPrintEvent(t)&&(e=this.getEventBreakpoints(t)[0],t.mediaQuery=e?e.mediaQuery:""),Nb(t,e)}registerBeforeAfterPrintHooks(t){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const e=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(t,this.getEventBreakpoints(new zb(!0,"print"))),t.updateStyles())},i=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(t),t.updateStyles())};this._document.defaultView.addEventListener("beforeprint",e),this._document.defaultView.addEventListener("afterprint",i),this.beforePrintEventListeners.push(e),this.afterPrintEventListeners.push(i)}interceptEvents(t){return this.registerBeforeAfterPrintHooks(t),e=>{this.isPrintEvent(e)?e.matches&&!this.isPrinting?(this.startPrinting(t,this.getEventBreakpoints(e)),t.updateStyles()):e.matches||!this.isPrinting||this.isPrintingBeforeAfterEvent||(this.stopPrinting(t),t.updateStyles()):this.collectActivations(e)}}blockPropagation(){return t=>!(this.isPrinting||this.isPrintEvent(t))}startPrinting(t,e){this.isPrinting=!0,t.activatedBreakpoints=this.queue.addPrintBreakpoints(e)}stopPrinting(t){t.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}collectActivations(t){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(t.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{const e=this.breakpoints.findByQuery(t.mediaQuery);e&&(this.deactivations.push(e),this.deactivations.sort($b))}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("beforeprint",t)),this.afterPrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("afterprint",t)))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Qb),s.LFG(Rb),s.LFG(n.K0))},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t((0,s.LFG)(Qb),(0,s.LFG)(Rb),(0,s.LFG)(n.K0))},token:t,providedIn:"root"}),t})();class sy{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(t){return t.push(iy),t.sort($b),t.forEach(t=>this.addBreakpoint(t)),this.printBreakpoints}addBreakpoint(t){t&&void 0===this.printBreakpoints.find(e=>e.mediaQuery===t.mediaQuery)&&(this.printBreakpoints=function(t){return!!t&&t.mediaQuery.startsWith("print")}(t)?[t,...this.printBreakpoints]:[...this.printBreakpoints,t])}clear(){this.printBreakpoints=[]}}function oy(t){for(let e in t){let i=t[e]||"";switch(e){case"display":t.display="flex"===i?["-webkit-flex","flex"]:"inline-flex"===i?["-webkit-inline-flex","inline-flex"]:i;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":t["-webkit-"+e]=i;break;case"flex-direction":i=i||"row",t["-webkit-flex-direction"]=i,t["flex-direction"]=i;break;case"order":t.order=t["-webkit-"+e]=isNaN(+i)?"0":i}}return t}let ry=(()=>{class t{constructor(t,e,i,n){this._serverStylesheet=t,this._serverModuleLoaded=e,this._platformId=i,this.layoutConfig=n}applyStyleToElement(t,e,i=null){let n={};"string"==typeof e&&(n[e]=i,e=n),n=this.layoutConfig.disableVendorPrefixes?e:oy(e),this._applyMultiValueStyleToElement(n,t)}applyStyleToElements(t,e=[]){const i=this.layoutConfig.disableVendorPrefixes?t:oy(t);e.forEach(t=>{this._applyMultiValueStyleToElement(i,t)})}getFlowDirection(t){let e=this.lookupStyle(t,"flex-direction");return[e||"row",this.lookupInlineStyle(t,"flex-direction")||(0,n.PM)(this._platformId)&&this._serverModuleLoaded?e:""]}hasWrap(t){return"wrap"===this.lookupStyle(t,"flex-wrap")}lookupAttributeValue(t,e){return t.getAttribute(e)||""}lookupInlineStyle(t,e){return(0,n.NF)(this._platformId)?t.style.getPropertyValue(e):this._getServerStyle(t,e)}lookupStyle(t,e,i=!1){let s="";return t&&((s=this.lookupInlineStyle(t,e))||((0,n.NF)(this._platformId)?i||(s=getComputedStyle(t).getPropertyValue(e)):this._serverModuleLoaded&&(s=this._serverStylesheet.getStyleForElement(t,e)))),s?s.trim():""}_applyMultiValueStyleToElement(t,e){Object.keys(t).sort().forEach(i=>{const s=t[i],o=Array.isArray(s)?s:[s];o.sort();for(let t of o)t=t?t+"":"",(0,n.NF)(this._platformId)||!this._serverModuleLoaded?(0,n.NF)(this._platformId)?e.style.setProperty(i,t):this._setServerStyle(e,i,t):this._serverStylesheet.addStyleToElement(e,i,t)})}_setServerStyle(t,e,i){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const n=this._readStyleAttribute(t);n[e]=i||"",this._writeStyleAttribute(t,n)}_getServerStyle(t,e){return this._readStyleAttribute(t)[e]||""}_readStyleAttribute(t){const e={},i=t.getAttribute("style");if(i){const t=i.split(/;+/g);for(let i=0;i0){const t=n.indexOf(":");if(-1===t)throw new Error(`Invalid CSS style: ${n}`);e[n.substr(0,t).trim()]=n.substr(t+1).trim()}}}return e}_writeStyleAttribute(t,e){let i="";for(const n in e)e[n]&&(i+=n+":"+e[n]+";");t.setAttribute("style",i)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(xb),s.LFG(Db),s.LFG(s.Lbi),s.LFG(Rb))},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t((0,s.LFG)(xb),(0,s.LFG)(Db),(0,s.LFG)(s.Lbi),(0,s.LFG)(Rb))},token:t,providedIn:"root"}),t})();class ay{constructor(){this.shouldCache=!0}sideEffect(t,e,i){}}let cy=(()=>{class t{constructor(t,e,i){this.matchMedia=t,this.breakpoints=e,this.hook=i,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 lt.xQ,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}onMediaChange(t){const e=this.findByQuery(t.mediaQuery);e&&((t=Nb(t,e)).matches&&-1===this.activatedBreakpoints.indexOf(e)?(this.activatedBreakpoints.push(e),this.activatedBreakpoints.sort($b),this.updateStyles()):t.matches||-1===this.activatedBreakpoints.indexOf(e)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(e),1),this.activatedBreakpoints.sort($b),this.updateStyles()))}init(t,e,i,n,s=[]){uy(this.updateMap,t,e,i),uy(this.clearMap,t,e,n),this.buildElementKeyMap(t,e),this.watchExtraTriggers(t,e,s)}getValue(t,e,i){const n=this.elementMap.get(t);if(n){const t=void 0!==i?n.get(i):this.getActivatedValues(n,e);if(t)return t.get(e)}}hasValue(t,e){const i=this.elementMap.get(t);if(i){const t=this.getActivatedValues(i,e);if(t)return void 0!==t.get(e)||!1}return!1}setValue(t,e,i,n){let s=this.elementMap.get(t);if(s){const o=(s.get(n)||new Map).set(e,i);s.set(n,o),this.elementMap.set(t,s)}else s=(new Map).set(n,(new Map).set(e,i)),this.elementMap.set(t,s);const o=this.getValue(t,e);void 0!==o&&this.updateElement(t,e,o)}trackValue(t,e){return this.subject.asObservable().pipe((0,at.h)(i=>i.element===t&&i.key===e))}updateStyles(){this.elementMap.forEach((t,e)=>{const i=new Set(this.elementKeyMap.get(e));let n=this.getActivatedValues(t);n&&n.forEach((t,n)=>{this.updateElement(e,n,t),i.delete(n)}),i.forEach(i=>{if(n=this.getActivatedValues(t,i),n){const t=n.get(i);this.updateElement(e,i,t)}else this.clearElement(e,i)})})}clearElement(t,e){const i=this.clearMap.get(t);if(i){const n=i.get(e);n&&(n(),this.subject.next({element:t,key:e,value:""}))}}updateElement(t,e,i){const n=this.updateMap.get(t);if(n){const s=n.get(e);s&&(s(i),this.subject.next({element:t,key:e,value:i}))}}releaseElement(t){const e=this.watcherMap.get(t);e&&(e.forEach(t=>t.unsubscribe()),this.watcherMap.delete(t));const i=this.elementMap.get(t);i&&(i.forEach((t,e)=>i.delete(e)),this.elementMap.delete(t))}triggerUpdate(t,e){const i=this.elementMap.get(t);if(i){const n=this.getActivatedValues(i,e);n&&(e?this.updateElement(t,e,n.get(e)):n.forEach((e,i)=>this.updateElement(t,i,e)))}}buildElementKeyMap(t,e){let i=this.elementKeyMap.get(t);i||(i=new Set,this.elementKeyMap.set(t,i)),i.add(e)}watchExtraTriggers(t,e,i){if(i&&i.length){let n=this.watcherMap.get(t);if(n||(n=new Map,this.watcherMap.set(t,n)),!n.get(e)){const s=(0,ko.T)(...i).subscribe(()=>{const i=this.getValue(t,e);this.updateElement(t,e,i)});n.set(e,s)}}}findByQuery(t){return this.breakpoints.findByQuery(t)}getActivatedValues(t,e){for(let n=0;nt.mediaQuery);this.matchMedia.observe(this.hook.withPrintQuery(t)).pipe((0,Yt.b)(this.hook.interceptEvents(this)),(0,at.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(ty),s.LFG(Qb),s.LFG(ny))},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t((0,s.LFG)(ty),(0,s.LFG)(Qb),(0,s.LFG)(ny))},token:t,providedIn:"root"}),t})();function uy(t,e,i,n){if(void 0!==n){let s=t.get(e);s||(s=new Map,t.set(e,s)),s.set(i,n)}}new Map,new WeakMap;class ly{constructor(t,e,i=!0){this.key=t,this.value=e,this.key=i?t.replace(/['"]/g,"").trim():t.trim(),this.value=i?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}function hy(t){let e=typeof t;return"object"===e?t.constructor===Array?"array":t.constructor===Set?"set":"object":e}function dy(t){const[e,...i]=t.split(":");return new ly(e,i.join(":"))}function py(t,e){return e.key&&(t[e.key]=e.value),t}let fy=(()=>{class t extends Bb{constructor(t,e,i,s,o,r,a,c,u){super(t,null,e,i),this.sanitizer=s,this.ngStyleInstance=a,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new n.PC(t,o,r)),this.init();const l=this.nativeElement.getAttribute("style")||"";this.fallbackStyles=this.buildStyleMap(l),this.isServer=c&&(0,n.PM)(u)}updateWithValue(t){const e=this.buildStyleMap(t);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),e),this.isServer&&this.applyStyleToElement(e),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(t){const e=t=>this.sanitizer.sanitize(s.q3G.STYLE,t)||"";if(t)switch(hy(t)){case"string":return _y(function(t,e=";"){return String(t).trim().split(e).map(t=>t.trim()).filter(t=>""!==t)}(t),e);case"array":return _y(t,e);case"set":default:return function(t,e){let i=[];return"set"===hy(t)?t.forEach(t=>i.push(t)):Object.keys(t).forEach(e=>{i.push(`${e}:${t[e]}`)}),function(t,e){return t.map(dy).filter(t=>!!t).map(t=>(e&&(t.value=e(t.value)),t)).reduce(py,{})}(i,e)}(t,e)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(ry),s.Y36(cy),s.Y36(R),s.Y36(s.aQg),s.Y36(s.Qsj),s.Y36(n.PC,10),s.Y36(Db),s.Y36(s.Lbi))},t.\u0275dir=s.lG2({type:t,features:[s.qOj]}),t})();const gy=["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 my=(()=>{class t extends fy{constructor(){super(...arguments),this.inputs=gy}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,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:[s.qOj]}),t})();function _y(t,e){return t.map(dy).filter(t=>!!t).map(t=>(e&&(t.value=e(t.value)),t)).reduce(py,{})}let by=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Eb]]}),t})();const yy=function(t){return{color:t}};function wy(t,e){if(1&t&&(s.TgZ(0,"button",8),s.ALo(1,"translate"),s.TgZ(2,"mat-icon",4),s._uU(3," apps "),s.qZA(),s.qZA()),2&t){const t=s.oxw(),e=s.MAs(2);s.Q6J("matMenuTriggerFor",e)("matTooltip",s.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),s.xp6(2),s.Q6J("ngStyle",s.VKq(5,yy,t.iconColor))}}function Ay(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",2),s.NdJ("click",function(){return s.CHM(t),s.oxw().onLogOut()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"NAV.LOGOUT")," "))}let My=(()=>{class t{constructor(t,e,i,n){this.authService=t,this.authzResolverService=e,this.notificator=i,this.translateService=n}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Rl),s.Y36(K),s.Y36(Mg),s.Y36(th))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:14,vars:15,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],[1,"d-none","d-lg-inline",3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"]],template:function(t,e){if(1&t&&(s.YNc(0,wy,4,7,"button",0),s.TgZ(1,"mat-menu",null,1),s.TgZ(3,"button",2),s.NdJ("click",function(){return e.redirectToUrl()}),s.TgZ(4,"span"),s._uU(5),s.qZA(),s.qZA(),s.qZA(),s.TgZ(6,"button",3),s.TgZ(7,"mat-icon",4),s._uU(8," person "),s.qZA(),s.TgZ(9,"span",5),s._uU(10),s.qZA(),s.qZA(),s.TgZ(11,"mat-menu",null,6),s.YNc(13,Ay,3,3,"button",7),s.qZA()),2&t){const t=s.MAs(12);s.Q6J("ngIf",e.url),s.xp6(5),s.Oqu(e.label),s.xp6(1),s.Q6J("matMenuTriggerFor",t),s.xp6(1),s.Q6J("ngStyle",s.VKq(11,yy,e.iconColor)),s.xp6(2),s.Q6J("ngStyle",s.VKq(13,yy,e.textColor)),s.xp6(1),s.xDo(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," "),s.xp6(3),s.Q6J("ngIf",e.logoutEnabled)}},directives:[n.O5,Ef,kf,uh,Rf,Jf,n.PC,$p],pipes:[eh],styles:["@media (max-width:991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),t})();const vy=function(t){return{color:t}};function Ty(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",7),s.NdJ("click",function(){return s.CHM(t),s.oxw().onToggleSidenav()}),s.TgZ(1,"mat-icon"),s._uU(2,"menu"),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("ngStyle",s.VKq(1,vy,t.iconColor))}}function ky(t,e){1&t&&(s.TgZ(0,"div",8),s.TgZ(1,"span",9),s._uU(2," ~ \ud83d\uddf2\xa0 "),s.qZA(),s.TgZ(3,"span",10),s._uU(4," DEVEL "),s.qZA(),s.TgZ(5,"span",9),s._uU(6," \ud83d\uddf2 ~ "),s.qZA(),s.qZA())}const Ly=function(t){return{background:t}},Cy=function(){return[]},Sy=function(){return["/"]};let Ey=(()=>{class t{constructor(t,e,i,n){this.storeService=t,this.sanitizer=e,this.translate=i,this.otherApplicationService=n,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.sidenavToggle=new s.vpe,this.hideToggle=!1,this.disableLogo=!1,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(t=>{this.label=this.storeService.get(`header_label_${t.lang}`),this.adminLabel=this.storeService.get(`admin_gui_label_${t.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 t in this.storeService.getPerunPrincipal().roles)this.linkRoles.includes(t)&&(this.activeLink=!0);this.activeLink&&(this.adminGuiUrl=this.otherApplicationService.getUrlForOtherApplication("admin"))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Kn),s.Y36(R),s.Y36(th),s.Y36(Sg))},t.\u0275cmp=s.Xpm({type:t,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"],["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"],["mat-icon-button","",3,"ngStyle","click"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(t,e){1&t&&(s.TgZ(0,"mat-toolbar",0),s.TgZ(1,"div",1),s.YNc(2,Ty,3,3,"button",2),s._UZ(3,"a",3),s.TgZ(4,"p",4),s._uU(5),s.qZA(),s.qZA(),s.YNc(6,ky,7,0,"div",5),s._UZ(7,"perun-web-apps-header-menu",6),s.qZA()),2&t&&(s.Q6J("ngStyle",s.VKq(13,Ly,e.bgColor)),s.xp6(2),s.Q6J("ngIf",!e.hideToggle),s.xp6(1),s.Q6J("innerHTML",e.logo,s.oJD)("routerLink",e.disableLogo?s.DdM(15,Cy):s.DdM(16,Sy)),s.xp6(1),s.Q6J("ngStyle",s.VKq(17,vy,e.textColor)),s.xp6(1),s.Oqu(e.label),s.xp6(1),s.Q6J("ngIf",e.isDevel),s.xp6(1),s.Q6J("url",e.adminGuiUrl)("label",e.adminLabel)("user",e.principal.user)("logoutEnabled",e.logoutEnabled)("iconColor",e.iconColor)("textColor",e.textColor))},directives:[kb,n.PC,my,n.O5,Tn,My,uh,Jf],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}"]}),t})();function zy(t){return e=>e.lift(new xy(t))}class xy{constructor(t){this.value=t}call(t,e){return e.subscribe(new Oy(t,this.value))}}class Oy extends Lt.L{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}const Ry=["*"];function Dy(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",2),s.NdJ("click",function(){return s.CHM(t),s.oxw()._onBackdropClicked()}),s.qZA()}if(2&t){const t=s.oxw();s.ekj("mat-drawer-shown",t._isShowingBackdrop())}}function Py(t,e){1&t&&(s.TgZ(0,"mat-drawer-content"),s.Hsn(1,2),s.qZA())}const Ny=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Iy=["mat-drawer","mat-drawer-content","*"];function qy(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",2),s.NdJ("click",function(){return s.CHM(t),s.oxw()._onBackdropClicked()}),s.qZA()}if(2&t){const t=s.oxw();s.ekj("mat-drawer-shown",t._isShowingBackdrop())}}function By(t,e){1&t&&(s.TgZ(0,"mat-sidenav-content",3),s.Hsn(1,2),s.qZA())}const Hy=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Yy=["mat-sidenav","mat-sidenav-content","*"],jy=".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-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",Fy={transformDrawer:Yr("transform",[Kr("open, open-instant",Ur({transform:"none",visibility:"visible"})),Kr("void",Ur({"box-shadow":"none",visibility:"hidden"})),Gr("void => open-instant",jr("0ms")),Gr("void <=> open, open-instant => void",jr("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},Wy=new s.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),Uy=new s.OlP("MAT_DRAWER_CONTAINER");let Ky=(()=>{class t extends po{constructor(t,e,i,n,s){super(i,n,s),this._changeDetectorRef=t,this._container=e}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36((0,s.Gpc)(()=>Gy)),s.Y36(s.SBq),s.Y36(ho),s.Y36(s.R0b))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&s.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[s.qOj],ngContentSelectors:Ry,decls:1,vars:0,template:function(t,e){1&t&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),t})(),Zy=(()=>{class t{constructor(t,e,i,n,o,r,a){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=i,this._platform=n,this._ngZone=o,this._doc=r,this._container=a,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new lt.xQ,this._animationEnd=new lt.xQ,this._animationState="void",this.openedChange=new s.vpe(!0),this._openedStream=this.openedChange.pipe((0,at.h)(t=>t),(0,At.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,at.h)(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),zy(void 0)),this._closedStream=this.openedChange.pipe((0,at.h)(t=>!t),(0,At.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,at.h)(t=>t.fromState!==t.toState&&"void"===t.toState),zy(void 0)),this._destroyed=new lt.xQ,this.onPositionChanged=new s.vpe,this._modeChanged=new lt.xQ,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{es(this._elementRef.nativeElement,"keydown").pipe((0,at.h)(t=>27===t.keyCode&&!this.disableClose&&!So(t)),Es(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe(_s((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{const{fromState:e,toState:i}=t;(0===i.indexOf("open")&&"void"===e||"void"===i&&0===e.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=Zn(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=Zn(t)}get opened(){return this._opened}set opened(t){this.toggle(Zn(t))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(t=>{t||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}_isFocusWithinDrawer(){var t;const e=null===(t=this._doc)||void 0===t?void 0:t.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0)}toggle(t=!this.opened,e){return this._setOpen(t,!t&&this._isFocusWithinDrawer(),e)}_setOpen(t,e,i="program"){return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=i):(this._animationState="void",e&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(t=>{this.openedChange.pipe((0,vt.q)(1)).subscribe(e=>t(e?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(t){this._animationStarted.next(t)}_animationDoneListener(t){this._animationEnd.next(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(Cr),s.Y36(Pr),s.Y36(Ws),s.Y36(s.R0b),s.Y36(n.K0,8),s.Y36(Uy,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&s.WFA("@transform.start",function(t){return e._animationStartListener(t)})("@transform.done",function(t){return e._animationDoneListener(t)}),2&t&&(s.uIk("align",null),s.d8E("@transform",e._animationState),s.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.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:Ry,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.Hsn(1),s.qZA())},directives:[po],encapsulation:2,data:{animation:[Fy.transformDrawer]},changeDetection:0}),t})(),Gy=(()=>{class t{constructor(t,e,i,n,o,r=!1,a){this._dir=t,this._element=e,this._ngZone=i,this._changeDetectorRef=n,this._animationMode=a,this._drawers=new s.n_E,this.backdropClick=new s.vpe,this._destroyed=new lt.xQ,this._doCheckSubject=new lt.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new lt.xQ,t&&t.change.pipe(Es(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),o.change().pipe(Es(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=r}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=Zn(t)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(t){this._backdropOverride=null==t?null:Zn(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(kt(this._allDrawers),Es(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(kt(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,cr.b)(10),Es(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(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,e=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){const i=this._left._getWidth();t+=i,e-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)e+=this._right._getWidth();else if("push"==this._right.mode){const i=this._right._getWidth();e+=i,t-=i}t=t||null,e=e||null,t===this._contentMargins.left&&e===this._contentMargins.right||(this._contentMargins={left:t,right:e},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe((0,at.h)(t=>t.fromState!==t.toState),Es(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"!==t.mode&&t.openedChange.pipe(Es(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe(Es(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,vt.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe(Es((0,ko.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const e=this._element.nativeElement.classList,i="mat-drawer-container-has-open";t?e.add(i):e.remove(i)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?this._end=t:this._start=t}),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(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(t){return"side"!==t.mode||!!this._backdropOverride}_isDrawerOpen(t){return null!=t&&t.opened}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(so,8),s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(s.sBO),s.Y36(fo),s.Y36(Wy),s.Y36(lu,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,Ky,5),s.Suo(i,Zy,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._content=t.first),s.iGM(t=s.CRH())&&(e._allDrawers=t)}},viewQuery:function(t,e){if(1&t&&s.Gf(Ky,5),2&t){let t;s.iGM(t=s.CRH())&&(e._userContent=t.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[s._Bn([{provide:Uy,useExisting:t}])],ngContentSelectors:Iy,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(t,e){1&t&&(s.F$t(Ny),s.YNc(0,Dy,1,2,"div",0),s.Hsn(1),s.Hsn(2,1),s.YNc(3,Py,2,0,"mat-drawer-content",1)),2&t&&(s.Q6J("ngIf",e.hasBackdrop),s.xp6(3),s.Q6J("ngIf",!e._content))},directives:[n.O5,Ky],styles:[jy],encapsulation:2,changeDetection:0}),t})(),Xy=(()=>{class t extends Ky{constructor(t,e,i,n,s){super(t,e,i,n,s)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36((0,s.Gpc)(()=>$y)),s.Y36(s.SBq),s.Y36(ho),s.Y36(s.R0b))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&s.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[s.qOj],ngContentSelectors:Ry,decls:1,vars:0,template:function(t,e){1&t&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),t})(),Vy=(()=>{class t extends Zy{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=Zn(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=Gn(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=Gn(t)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(s.uIk("align",null),s.Udp("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),s.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[s.qOj],ngContentSelectors:Ry,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.Hsn(1),s.qZA())},directives:[po],encapsulation:2,data:{animation:[Fy.transformDrawer]},changeDetection:0}),t})(),$y=(()=>{class t extends Gy{}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,Xy,5),s.Suo(i,Vy,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._content=t.first),s.iGM(t=s.CRH())&&(e._allDrawers=t)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[s._Bn([{provide:Uy,useExisting:t}]),s.qOj],ngContentSelectors:Yy,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(s.F$t(Hy),s.YNc(0,qy,1,2,"div",0),s.Hsn(1),s.Hsn(2,1),s.YNc(3,By,2,0,"mat-sidenav-content",1)),2&t&&(s.Q6J("ngIf",e.hasBackdrop),s.xp6(3),s.Q6J("ngIf",!e._content))},directives:[n.O5,Xy,po],styles:[jy],encapsulation:2,changeDetection:0}),t})(),Jy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,Mu,Us,go],go,Mu]}),t})(),Qy=(()=>{class t{constructor(t){this.store=t}getSideMenuItems(){const t=this.store.get("displayed_tabs"),e=[];return t.forEach(t=>{switch(t){case"profile":e.push({label:"MENU_ITEMS.PROFILE",icon:"account_box",link:"/profile",activatedRegex:"^/profile$",tabName:"profile"});break;case"identities":e.push({label:"MENU_ITEMS.IDENTITIES",icon:"remove_red_eye",link:"/profile/identities",activatedRegex:"^/profile/identities$",tabName:"identities"});break;case"services":e.push({label:"MENU_ITEMS.SERVICES",icon:"build",link:"/profile/services",activatedRegex:"^/profile/services$",tabName:"services"});break;case"groups":e.push({label:"MENU_ITEMS.GROUPS",icon:"group",link:"/profile/groups",activatedRegex:"^/profile/groups$",tabName:"groups"});break;case"vos":e.push({label:"MENU_ITEMS.VOS",icon:"account_balance",link:"/profile/organizations",activatedRegex:"^/profile/organizations$",tabName:"vos"});break;case"privacy":e.push({label:"MENU_ITEMS.PRIVACY",icon:"vpn_key",link:"/profile/privacy",activatedRegex:"^/profile/privacy$",tabName:"privacy"});break;case"settings":e.push({label:"MENU_ITEMS.SETTINGS",icon:"settings",link:"/profile/settings",activatedRegex:"^/profile/settings",tabName:"settings"})}}),this.store.get("external_services").forEach(t=>{const i={icon:"insert_link",link:t.url,activatedRegex:"^/profile/external",tabName:"external",external:!0};this.store.get("supported_languages").forEach(e=>{var n;i[`label_${e}`]=null!==(n=t[`label_${e}`])&&void 0!==n?n:t.label_en}),e.push(i)}),e}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Kn))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),tw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Mu],Mu]}),t})();const ew=["*"],iw='.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.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:transparent;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{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:transparent;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{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 button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}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-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.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}}\n',nw=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],sw=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"];class ow{}const rw=vu(ku(ow));class aw{}const cw=ku(aw),uw=new s.OlP("MatList"),lw=new s.OlP("MatNavList");let hw=(()=>{class t extends rw{constructor(){super(...arguments),this._stateChanges=new lt.xQ}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[s._Bn([{provide:lw,useExisting:t}]),s.qOj,s.TTD],ngContentSelectors:ew,decls:1,vars:0,template:function(t,e){1&t&&(s.F$t(),s.Hsn(0))},styles:[iw],encapsulation:2,changeDetection:0}),t})(),dw=(()=>{class t extends rw{constructor(t){super(),this._elementRef=t,this._stateChanges=new lt.xQ,"action-list"===this._getListType()&&t.nativeElement.classList.add("mat-action-list")}_getListType(){const t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[s._Bn([{provide:uw,useExisting:t}]),s.qOj,s.TTD],ngContentSelectors:ew,decls:1,vars:0,template:function(t,e){1&t&&(s.F$t(),s.Hsn(0))},styles:[iw],encapsulation:2,changeDetection:0}),t})(),pw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),fw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),gw=(()=>{class t extends cw{constructor(t,e,i,n){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new lt.xQ,this._disabled=!1,this._isInteractiveList=!!(i||n&&"action-list"===n._getListType()),this._list=i||n;const s=this._getHostElement();"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(Es(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=Zn(t)}ngAfterContentInit(){!function(t,e,i="mat"){t.changes.pipe(kt(t)).subscribe(({length:t})=>{Yu(e,`${i}-2-line`,!1),Yu(e,`${i}-3-line`,!1),Yu(e,`${i}-multi-line`,!1),2===t||3===t?Yu(e,`${i}-${t}-line`,!0):t>3&&Yu(e,`${i}-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 t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(lw,8),s.Y36(uw,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,pw,5),s.Suo(i,fw,5),s.Suo(i,Hu,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._avatar=t.first),s.iGM(t=s.CRH())&&(e._icon=t.first),s.iGM(t=s.CRH())&&(e._lines=t)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&s.ekj("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[s.qOj],ngContentSelectors:sw,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(t,e){1&t&&(s.F$t(nw),s.TgZ(0,"div",0),s._UZ(1,"div",1),s.Hsn(2),s.TgZ(3,"div",2),s.Hsn(4,1),s.qZA(),s.Hsn(5,2),s.qZA()),2&t&&(s.xp6(1),s.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[Vu],encapsulation:2,changeDetection:0}),t})(),mw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[ju,$u,Mu,Qu,n.ez],ju,Mu,Qu,tw]}),t})(),_w=(()=>{class t{transform(t,e,i){return t[`${i}_${e}`]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"localisedText",type:t,pure:!0}),t})();const bw=function(t){return{color:t}};function yw(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-list-item",2),s.NdJ("click",function(){const e=s.CHM(t).$implicit,i=s.oxw();return e.external?i.goToURL(e.link):i.shouldHideMenu()}),s.TgZ(1,"mat-icon"),s._uU(2),s.qZA(),s.TgZ(3,"span",3),s._uU(4),s.ALo(5,"localisedText"),s.ALo(6,"translate"),s.ALo(7,"customTranslate"),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.ekj("activated",i.isActive(t.activatedRegex)),s.s9C("routerLink",t.external?null:t.link),s.Q6J("ngStyle",s.VKq(16,bw,i.textColor))("matRippleColor","rgba(255, 255, 255, 0.1)"),s.xp6(2),s.Oqu(t.icon),s.xp6(2),s.Oqu(t.external?s.Dn7(5,7,t,i.lang,"label"):s.lcZ(6,11,s.xi3(7,13,t.label,i.lang)))}}let ww=(()=>{class t{constructor(t,e,i,n){this.sideMenuItemService=t,this.storeService=e,this.router=i,this.translateService=n,this.items=[],this.lang="en",this.textColor=this.storeService.get("theme","sidemenu_text_color"),this.currentUrl=i.url,i.events.subscribe(t=>{t instanceof Xt&&(this.currentUrl=t.url)})}ngOnInit(){this.translateService.onLangChange.subscribe(t=>{const{lang:e}=t;this.lang=e});const t=this.storeService.get("displayed_tabs");this.items=this.sideMenuItemService.getSideMenuItems(),this.items=this.items.filter(e=>t.includes(e.tabName))}isActive(t){return new RegExp(t).test(this.currentUrl)}shouldHideMenu(){"over"===this.sideNav.mode&&this.sideNav.close()}goToURL(t){window.open(t,"_blank")}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Qy),s.Y36(Kn),s.Y36(Mn),s.Y36(th))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"mat-nav-list",0),s.YNc(1,yw,8,18,"mat-list-item",1),s.qZA()),2&t&&(s.xp6(1),s.Q6J("ngForOf",e.items))},directives:[hw,n.sg,gw,Vu,n.PC,my,vn,Jf],pipes:[_w,eh,Og],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}"]}),t})();function Aw(t,e){if(1&t&&(s.TgZ(0,"span",1),s.TgZ(1,"a",2),s._uU(2),s.qZA(),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Q6J("routerLink",t.routerLink),s.xp6(1),s.Oqu(t.label)}}let Mw=(()=>{class t{constructor(t,e,i){this.router=t,this.activatedRoute=e,this.translate=i,this.home={label:"Home",routerLink:"profile"},this.menuItems=[]}ngOnInit(){this.router.events.pipe((0,at.h)(t=>t instanceof Xt)).subscribe(()=>{this.menuItems=[],this.createBreadcrumbs(this.activatedRoute.root)})}createBreadcrumbs(e,i=""){const n=e.children;0!==n.length&&"service-access"!==n[0].snapshot.routeConfig.path&&n.forEach(e=>{const n=e.snapshot.url.map(t=>t.path).join("/");""!==n&&(i+=`/${n}`);const s=this.translate.instant(e.snapshot.data[t.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:i}),this.createBreadcrumbs(e,i)})}}return t.ROUTE_DATA_BREADCRUMB="breadcrumb",t.\u0275fac=function(e){return new(e||t)(s.Y36(Mn),s.Y36(Qe),s.Y36(th))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&s.YNc(0,Aw,3,2,"span",0),2&t&&s.Q6J("ngForOf",e.menuItems)},directives:[n.sg,Tn],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}']}),t})();function vw(t,e){1&t&&(s.TgZ(0,"mat-error"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let Tw=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.translate=e,this.notificator=i,this.rtMessages=n,this.storeService=s,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(t=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+t.ticketNumber)),this.dialogRef.close()})}getFullEmailBody(){return this.message+"\n ------------------------\n Perun instance: "+this.instanceName+"\n Sended from new Perun Gui, version: "+i(306).i8}close(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(th),s.Y36(Mg),s.Y36(X),s.Y36(Kn))},t.\u0275cmp=s.Xpm({type:t,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(t,e){if(1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"div",1),s.TgZ(4,"mat-form-field"),s.TgZ(5,"mat-label"),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.TgZ(8,"input",2,3),s.NdJ("ngModelChange",function(t){return e.subject=t}),s.qZA(),s.YNc(10,vw,3,3,"mat-error",4),s.qZA(),s.TgZ(11,"mat-form-field"),s.TgZ(12,"mat-label"),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.TgZ(15,"textarea",5),s.NdJ("ngModelChange",function(t){return e.message=t}),s.ALo(16,"translate"),s._uU(17," "),s.qZA(),s.TgZ(18,"mat-hint"),s._uU(19),s.ALo(20,"translate"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(21,"div",6),s.TgZ(22,"div",7),s.TgZ(23,"button",8),s.NdJ("click",function(){return e.close()}),s._uU(24),s.ALo(25,"translate"),s.qZA(),s.TgZ(26,"button",9),s.NdJ("click",function(){return e.sendBugReport()}),s._uU(27),s.ALo(28,"translate"),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.MAs(9);s.xp6(1),s.Oqu(s.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),s.xp6(5),s.Oqu(s.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),s.xp6(2),s.Q6J("ngModel",e.subject),s.xp6(2),s.Q6J("ngIf",t.invalid),s.xp6(3),s.Oqu(s.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),s.xp6(2),s.s9C("placeholder",s.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),s.Q6J("ngModel",e.message),s.xp6(4),s.Oqu(s.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),s.xp6(5),s.hij(" ",s.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),s.xp6(2),s.Q6J("disabled",t.invalid),s.xp6(1),s.hij(" ",s.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[Sl,El,Kh,Nh,Wg,Qh,hp,Td,Jd,n.O5,Ph,zl,uh,zh],pipes:[eh],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),t})(),kw=(()=>{class t{transform(t,e){return t["link_"+e]||t.link_en}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"localisedLink",type:t,pure:!0}),t})(),Lw=(()=>{class t{transform(t){return t.includes("/")?t:"/assets/config/"+t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"footerLogoPath",type:t,pure:!0}),t})();function Cw(t,e){if(1&t&&(s.TgZ(0,"a",13),s.ALo(1,"localisedLink"),s._UZ(2,"img",14),s.ALo(3,"footerLogoPath"),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Q6J("href",s.xi3(1,2,t,e.language),s.LSH),s.xp6(2),s.s9C("src",s.lcZ(3,5,t.logo),s.LSH)}}function Sw(t,e){if(1&t&&(s.TgZ(0,"span"),s._UZ(1,"img",14),s.ALo(2,"footerLogoPath"),s.qZA()),2&t){const t=s.oxw().$implicit;s.xp6(1),s.s9C("src",s.lcZ(2,1,t.logo),s.LSH)}}function Ew(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,Cw,4,7,"a",11),s.ALo(2,"localisedLink"),s.YNc(3,Sw,3,3,"span",12),s.ALo(4,"localisedLink"),s.qZA()),2&t){const t=e.$implicit,i=s.oxw(3);s.xp6(1),s.Q6J("ngIf",s.xi3(2,2,t,i.language)),s.xp6(2),s.Q6J("ngIf",!s.xi3(4,5,t,i.language))}}const zw=function(t){return{"min-height":t}};function xw(t,e){if(1&t&&(s.TgZ(0,"div",10),s.YNc(1,Ew,5,8,"div",5),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw();s.Q6J("ngStyle",s.VKq(2,zw,e.columnContentHeight+"px")),s.xp6(1),s.Q6J("ngForOf",t.elements)}}const Ow=function(t){return{color:t}};function Rw(t,e){if(1&t&&(s.TgZ(0,"i",20),s._uU(1),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Q6J("ngStyle",s.VKq(2,Ow,e.linksTextColor)),s.xp6(1),s.hij(" ",t.icon," ")}}function Dw(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"span",21),s.NdJ("click",function(){s.CHM(t);const e=s.oxw().$implicit;return s.oxw(3).openDialog(e.dialog)}),s._uU(1),s.ALo(2,"localisedText"),s.qZA()}if(2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Q6J("ngStyle",s.VKq(6,Ow,e.linksTextColor)),s.xp6(1),s.hij("",s.Dn7(2,2,t,e.language,"label")," ")}}function Pw(t,e){if(1&t&&(s.TgZ(0,"a",22),s.ALo(1,"localisedLink"),s._uU(2),s.ALo(3,"localisedText"),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Q6J("href",s.xi3(1,3,t,e.language),s.LSH)("ngStyle",s.VKq(10,Ow,e.linksTextColor)),s.xp6(2),s.Oqu(s.Dn7(3,6,t,e.language,"label"))}}function Nw(t,e){if(1&t&&(s.TgZ(0,"span",10),s._uU(1),s.ALo(2,"localisedText"),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw(3);s.Q6J("ngStyle",s.VKq(6,Ow,e.linksTextColor)),s.xp6(1),s.Oqu(s.Dn7(2,2,t,e.language,"label"))}}function Iw(t,e){if(1&t&&(s.TgZ(0,"div",16),s.YNc(1,Rw,2,4,"i",17),s.YNc(2,Dw,3,8,"span",18),s.YNc(3,Pw,4,12,"a",19),s.ALo(4,"localisedLink"),s.YNc(5,Nw,3,8,"span",9),s.ALo(6,"localisedLink"),s.qZA()),2&t){const t=e.$implicit,i=s.oxw(3);s.xp6(1),s.Q6J("ngIf",t.icon),s.xp6(1),s.Q6J("ngIf",t.dialog),s.xp6(1),s.Q6J("ngIf",s.xi3(4,4,t,i.language)&&!t.dialog),s.xp6(2),s.Q6J("ngIf",!s.xi3(6,7,t,i.language)&&!t.dialog)}}const qw=function(t){return{height:t}};function Bw(t,e){if(1&t&&(s.TgZ(0,"div",10),s.YNc(1,Iw,7,10,"div",15),s.qZA()),2&t){const t=s.oxw().$implicit,e=s.oxw();s.Q6J("ngStyle",s.VKq(2,qw,e.columnContentHeight+"px")),s.xp6(1),s.Q6J("ngForOf",t.elements)}}function Hw(t,e){if(1&t&&(s.TgZ(0,"div",7),s.TgZ(1,"h6",8),s._uU(2),s.ALo(3,"localisedText"),s.qZA(),s.YNc(4,xw,2,4,"div",9),s.YNc(5,Bw,2,4,"div",9),s.qZA()),2&t){const t=e.$implicit,i=s.oxw();s.ekj("my-auto",i.containsLogos),s.xp6(1),s.Q6J("ngStyle",s.VKq(10,Ow,i.headersTextColor)),s.xp6(1),s.hij(" ",s.Dn7(3,6,t,i.language,"title")," "),s.xp6(2),s.Q6J("ngIf",t.logos),s.xp6(1),s.Q6J("ngIf",t.elements&&!t.logos)}}function Yw(t,e){if(1&t&&(s.TgZ(0,"span"),s.TgZ(1,"a",6),s._uU(2),s.qZA(),s.qZA()),2&t){const t=e.$implicit,i=e.index,n=s.oxw();s.xp6(1),s.Q6J("href",t.url,s.LSH)("ngStyle",s.VKq(3,Ow,n.copyrightTextColor)),s.xp6(1),s.Oqu(i?", "+t.name:t.name)}}const jw=function(t){return{background:t}};let Fw=(()=>{class t{constructor(t,e,i){this.storeService=t,this.translateService=e,this.dialog=i,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.items=[],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(t=>{this.language=t.lang}),this.version=i(306).i8,this.items=this.storeService.get("footer","columns");for(const t of this.items)t.logos?this.containsLogos=!0:25*t.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*t.elements.length);this.copyrightItems=this.storeService.get("footer","copyright_items")}openDialog(t){const e=ng();switch(t){case"reportIssue":e.width="550px",this.dialog.open(Tw,e)}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Kn),s.Y36(th),s.Y36(Ll))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"footer",0),s.TgZ(1,"div",1),s.YNc(2,Hw,6,12,"div",2),s.qZA(),s._UZ(3,"hr",3),s.TgZ(4,"div",4),s._uU(5),s.YNc(6,Yw,3,5,"span",5),s._uU(7," Version "),s.TgZ(8,"a",6),s._uU(9),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Q6J("ngStyle",s.VKq(8,jw,e.bgColor)),s.xp6(2),s.Q6J("ngForOf",e.items),s.xp6(2),s.Q6J("ngStyle",s.VKq(10,Ow,e.copyrightTextColor)),s.xp6(1),s.hij(" \xa9 ",e.currentYear," Copyright: "),s.xp6(1),s.Q6J("ngForOf",e.copyrightItems),s.xp6(2),s.Q6J("href",e.githubRepository,s.LSH)("ngStyle",s.VKq(12,Ow,e.copyrightTextColor)),s.xp6(1),s.Oqu(e.version))},directives:[n.PC,n.sg,n.O5],pipes:[_w,kw,Lw],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}"]}),t})();function Ww(t,e){if(1&t&&(s.TgZ(0,"div",8),s._UZ(1,"div",9),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("innerHTML",t.logo,s.oJD)}}function Uw(t,e){if(1&t&&(s.TgZ(0,"div",10),s._UZ(1,"div",11),s._UZ(2,"mat-icon",12),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("innerHTML",t.logo,s.oJD)}}function Kw(t,e){if(1&t&&(s.TgZ(0,"div",8),s._UZ(1,"a",9),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("innerHTML",t.logo,s.oJD)}}const Zw=function(t){return{color:t}};function Gw(t,e){if(1&t&&(s.TgZ(0,"p",13),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.Q6J("ngStyle",s.VKq(2,Zw,t.textColor)),s.xp6(1),s.hij(" ",t.headerTitle," ")}}const Xw=function(t,e){return{background:t,color:e}},Vw=function(t,e){return{"min-height":t,"background-color":e}};let $w=(()=>{class t{constructor(t,e,i,n){this.storeService=t,this.sanitizer=e,this.preferredLangService=i,this.translateService=n,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 t=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(t)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Kn),s.Y36(R),s.Y36(Cg),s.Y36(th))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:11,vars:12,consts:[["id","login-nav",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["style"," display: flex; flex-direction: 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"],[2,"display","flex","flex-direction","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(t,e){1&t&&(s.TgZ(0,"div",0),s.YNc(1,Ww,2,1,"div",1),s.YNc(2,Uw,3,1,"div",2),s.YNc(3,Kw,2,1,"div",1),s.YNc(4,Gw,2,4,"p",3),s.qZA(),s.TgZ(5,"div",4),s.TgZ(6,"div",5),s.TgZ(7,"div",6),s._UZ(8,"router-outlet"),s.qZA(),s.TgZ(9,"div",7),s._UZ(10,"perun-web-apps-footer"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.Q6J("ngStyle",s.WLB(6,Xw,e.headerBackgroundColor,e.headerTextColor)),s.xp6(1),s.Q6J("ngIf","admin-gui"===e.application),s.xp6(1),s.Q6J("ngIf","publications"===e.application),s.xp6(1),s.Q6J("ngIf","user-profile"===e.application),s.xp6(1),s.Q6J("ngIf",!!e.headerTitle),s.xp6(2),s.Q6J("ngStyle",s.WLB(9,Vw,e.getContentInnerMinHeight(),e.contentBackgroundColor)))},directives:[n.PC,n.O5,Ln,Fw,Jf],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}"]}),t})();const Jw=["footer"],Qw=function(t){return{background:t}},tA=function(t){return{"min-height":t}};function eA(t,e){if(1&t){const t=s.EpF();s._UZ(0,"perun-web-apps-notificator"),s.TgZ(1,"div",2),s.TgZ(2,"perun-web-apps-header",3),s.NdJ("sidenavToggle",function(){return s.CHM(t),s.MAs(5).toggle()}),s.qZA(),s.TgZ(3,"mat-sidenav-container"),s.TgZ(4,"mat-sidenav",4,5),s._UZ(6,"perun-web-apps-side-menu",6),s.qZA(),s.TgZ(7,"mat-sidenav-content",7),s.TgZ(8,"div",8),s._UZ(9,"perun-web-apps-breadcrumbs"),s._UZ(10,"router-outlet"),s.qZA(),s.TgZ(11,"div",null,9),s._UZ(13,"perun-web-apps-footer"),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.MAs(5),e=s.oxw();s.xp6(4),s.Q6J("mode",e.sidebarMode)("ngStyle",s.VKq(6,Qw,e.sideMenuBgColor))("opened",!e.isMobile()),s.xp6(2),s.Q6J("sideNav",t),s.xp6(1),s.Q6J("ngStyle",s.VKq(8,Qw,e.contentBackgroundColor)),s.xp6(1),s.Q6J("ngStyle",s.VKq(10,tA,e.contentHeight))}}function iA(t,e){if(1&t&&s._UZ(0,"perun-web-apps-login-screen-base",10),2&t){const t=s.oxw();s.Q6J("application","user-profile")("headerTitle",t.headerLabel)}}let nA=(()=>{class t{constructor(t,e,i,n,s,o){this.store=t,this.attributesManagerService=e,this.translateService=i,this.initAuth=n,this.changeDetector=s,this.preferredLangService=o,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()}ngOnInit(){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(t=>{const e=t.find(t=>"preferredLanguage"===t.friendlyName),i=e&&e.value?e.value.toString():null,n=this.preferredLangService.getPreferredLanguage(i);this.translateService.use(n)})}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side"}isMobile(){return window.innerWidth<=t.minWidth}isServiceLogin(){return!!sessionStorage.getItem("baLogout")}ngAfterViewInit(){this.contentHeight="calc(100vh - 84px - "+this.footer.nativeElement.offsetHeight+"px)",this.changeDetector.detectChanges()}}return t.minWidth=992,t.\u0275fac=function(e){return new(e||t)(s.Y36(Kn),s.Y36(U),s.Y36(th),s.Y36(bg),s.Y36(s.sBO),s.Y36(Cg))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-root"]],viewQuery:function(t,e){if(1&t&&s.Gf(Jw,5),2&t){let t;s.iGM(t=s.CRH())&&(e.footer=t.first)}},hostBindings:function(t,e){1&t&&s.NdJ("resize",function(t){return e.getScreenSize(t)},!1,s.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(t,e){1&t&&(s.YNc(0,eA,14,12,"ng-template",0),s.YNc(1,iA,1,2,"perun-web-apps-login-screen-base",1)),2&t&&(s.Q6J("ngIf",!e.isLoginScreenShown&&!e.isServiceAccess&&!e.isServiceLogin()),s.xp6(1),s.Q6J("ngIf",e.isLoginScreenShown||e.isServiceAccess||e.isServiceLogin()))},directives:[n.O5,yb,Ey,$y,Vy,n.PC,my,ww,Xy,Mw,Ln,Fw,$w],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}"]}),t})();var sA=i(9355);function oA(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",15),s.NdJ("click",function(){s.CHM(t);const e=s.oxw().index;return s.oxw().removeValue(e)}),s.TgZ(1,"mat-icon"),s._uU(2," indeterminate_check_box "),s.qZA(),s.qZA()}}function rA(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",9),s.TgZ(1,"mat-form-field",10),s._UZ(2,"label",11),s.TgZ(3,"input",12),s.NdJ("click",function(){const e=s.CHM(t).index,i=s.oxw();return i.readonly&&i.attribute.displayName&&i.showValue(i.keys[e],i.attribute.displayName)})("ngModelChange",function(e){const i=s.CHM(t).index;return s.oxw().keys[i]=e}),s.qZA(),s.qZA(),s.TgZ(4,"mat-form-field",10),s._UZ(5,"label",11),s.TgZ(6,"input",13),s.NdJ("click",function(){const e=s.CHM(t).$implicit,i=s.oxw();return i.readonly&&void 0!==i.attribute.displayName&&i.showValue(e,i.attribute.displayName)})("ngModelChange",function(e){const i=s.CHM(t).index;return s.oxw().values[i]=e}),s.qZA(),s.qZA(),s.YNc(7,oA,3,0,"button",14),s.qZA()}if(2&t){const t=e.index,i=s.oxw();s.xp6(1),s.s9C("appearance",i.readonly?"none":"standard"),s.xp6(1),s.hYB("for","",i.attribute.id,"-key-",t,""),s.xp6(1),s.ekj("cursor-pointer",i.readonly&&void 0!==i.attribute.displayName),s.hYB("id","",i.attribute.id,"-key-",t,""),s.MGl("name","key-",t,""),s.Q6J("ngModel",i.keys[t])("readonly",i.readonly),s.xp6(1),s.s9C("appearance",i.readonly?"none":"standard"),s.xp6(1),s.hYB("for","",i.attribute.id,"-value-",t,""),s.xp6(1),s.ekj("cursor-pointer",i.readonly&&void 0!==i.attribute.displayName),s.MGl("name","value-",t,""),s.hYB("id","",i.attribute.id,"-value-",t,""),s.Q6J("readonly",i.readonly)("ngModel",i.values[t]),s.xp6(1),s.Q6J("ngIf",!i.readonly)}}function aA(t,e){1&t&&(s.TgZ(0,"mat-icon"),s._uU(1,"more_horiz"),s.qZA())}function cA(t,e){1&t&&(s.TgZ(0,"mat-icon"),s._uU(1,"keyboard_arrow_up"),s.qZA())}function uA(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",16),s.NdJ("click",function(){return s.CHM(t),s.oxw().onShowChange()}),s.YNc(1,aA,2,0,"mat-icon",17),s.YNc(2,cA,2,0,"mat-icon",17),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngIf",!t.showMore),s.xp6(1),s.Q6J("ngIf",t.showMore)}}function lA(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",18),s.NdJ("click",function(){return s.CHM(t),s.oxw().addValue()}),s.TgZ(1,"mat-icon"),s._uU(2," add_box "),s.qZA(),s.qZA()}}let hA=(()=>{class t{constructor(t){this.dialog=t,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}ngOnInit(){if(this.attribute.value){const t=this.attribute.value;for(const[e,i]of Object.entries(t))this.keys.push(e),this.values.push(i)}this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=sg(this.attribute))}customTrackBy(t){return t}addValue(){this.keys.push(""),this.values.push(""),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}removeValue(t){this.keys.splice(t,1),this.values.splice(t,1)}updateAttribute(){const t={};for(let e=0;ee.defaultItemsShown),s.xp6(1),s.Q6J("ngIf",!e.readonly))},directives:[Qd,kd,Xd,n.sg,$p,n.O5,Kh,Wg,Qh,hp,Td,Jd,uh,Jf],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}"]}),t})();const dA=["input"],pA=function(t){return{enterDuration:t}},fA=["*"],gA=new s.OlP("mat-checkbox-default-options",{providedIn:"root",factory:mA});function mA(){return{color:"accent",clickAction:"check-indeterminate"}}let _A=0;const bA=mA(),yA={provide:Vh,useExisting:(0,s.Gpc)(()=>vA),multi:!0};class wA{}class AA{constructor(t){this._elementRef=t}}const MA=Lu(Tu(ku(vu(AA))));let vA=(()=>{class t extends MA{constructor(t,e,i,n,o,r,a){super(t),this._changeDetectorRef=e,this._focusMonitor=i,this._ngZone=n,this._animationMode=r,this._options=a,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++_A,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new s.vpe,this.indeterminateChange=new s.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||bA,this.color=this.defaultColor=this._options.color||bA.color,this.tabIndex=parseInt(o)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(t){this._required=Zn(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=Zn(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=Zn(t),e&&(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(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,i=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{i.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new wA;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(t){var e;const i=null===(e=this._options)||void 0===e?void 0:e.clickAction;t.stopPropagation(),this.disabled||"noop"===i?this.disabled||"noop"!==i||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t,e){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let i="";switch(t){case 0:if(1===e)i="unchecked-checked";else{if(3!=e)return"";i="unchecked-indeterminate"}break;case 2:i=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===e?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${i}`}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(Pr),s.Y36(s.R0b),s.$8M("tabindex"),s.Y36(lu,8),s.Y36(gA,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){if(1&t&&(s.Gf(dA,5),s.Gf(Vu,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._inputElement=t.first),s.iGM(t=s.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Ikx("id",e.id),s.uIk("tabindex",null),s.ekj("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[s._Bn([yA]),s.qOj],ngContentSelectors:fA,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",0,"xml","space","preserve",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(t,e){if(1&t&&(s.F$t(),s.TgZ(0,"label",0,1),s.TgZ(2,"span",2),s.TgZ(3,"input",3,4),s.NdJ("change",function(t){return e._onInteractionEvent(t)})("click",function(t){return e._onInputClick(t)}),s.qZA(),s.TgZ(5,"span",5),s._UZ(6,"span",6),s.qZA(),s._UZ(7,"span",7),s.TgZ(8,"span",8),s.O4$(),s.TgZ(9,"svg",9),s._UZ(10,"path",10),s.qZA(),s.kcU(),s._UZ(11,"span",11),s.qZA(),s.qZA(),s.TgZ(12,"span",12,13),s.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),s.TgZ(14,"span",14),s._uU(15,"\xa0"),s.qZA(),s.Hsn(16),s.qZA(),s.qZA()),2&t){const t=s.MAs(1),i=s.MAs(13);s.uIk("for",e.inputId),s.xp6(2),s.ekj("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),s.xp6(1),s.Q6J("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),s.uIk("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),s.xp6(2),s.Q6J("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",s.VKq(19,pA,"NoopAnimations"===e._animationMode?0:150))}},directives:[Vu,hr],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:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-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;-moz-user-select:auto;-ms-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:transparent;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:transparent}.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%}\n"],encapsulation:2,changeDetection:0}),t})(),TA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),kA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[$u,Mu,dr,TA],Mu,TA]}),t})(),LA=(()=>{class t{transform(t){return t.replace(/\s/g,"-").toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"multiWordDataCy",type:t,pure:!0}),t})();function CA(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-checkbox",2),s.NdJ("change",function(){return s.CHM(t),s.oxw()._sendEventToParent()})("ngModelChange",function(e){return s.CHM(t),s.oxw().attribute.value=e}),s.ALo(1,"multiWordDataCy"),s.qZA()}if(2&t){const t=s.oxw();s.Q2q("data-cy","",s.lcZ(1,2,t.attribute.displayName),"-value"),s.Q6J("ngModel",t.attribute.value)}}function SA(t,e){if(1&t&&(s.TgZ(0,"mat-label"),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Oqu(t.attribute.value)}}let EA=(()=>{class t{constructor(){this.readonly=!1,this.sendEventToParent=new s.vpe}ngOnInit(){this.readonly||(this.readonly=sg(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div"),s.YNc(1,CA,2,4,"mat-checkbox",0),s.YNc(2,SA,2,1,"mat-label",1),s.qZA()),2&t&&(s.xp6(1),s.Q6J("ngIf",!e.readonly),s.xp6(1),s.Q6J("ngIf",e.readonly))},directives:[n.O5,vA,Td,Jd,Nh],pipes:[LA],styles:[""]}),t})();function zA(t){const{subscriber:e,counter:i,period:n}=t;e.next(i),this.schedule({subscriber:e,counter:i+1,period:n},n)}function xA(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function OA(t,e){const i=e?"":"none";xA(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:i,msUserSelect:i,webkitUserSelect:i,MozUserSelect:i})}function RA(t,e){const i=t.style;i.position=e?"":"fixed",i.top=i.opacity=e?"":"0",i.left=e?"":"-999em"}function DA(t,e){return e?t+" "+e:t}function PA(t){const e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function NA(t,e){return t.getPropertyValue(e).split(",").map(t=>t.trim())}function IA(t){const e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function qA(t,e,i){const{top:n,bottom:s,left:o,right:r}=t;return i>=n&&i<=s&&e>=o&&e<=r}function BA(t,e,i){t.top+=e,t.bottom=t.top+t.height,t.left+=i,t.right=t.left+t.width}function HA(t,e,i,n){const{top:s,right:o,bottom:r,left:a,width:c,height:u}=t,l=c*e,h=u*e;return n>s-h&&na-l&&i{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:IA(t)})})}handleScroll(t){const e=t.target,i=this.positions.get(e);if(!i)return null;const n=e===this._document?e.documentElement:e,s=i.scrollPosition;let o,r;if(e===this._document){const t=this._viewportRuler.getViewportScrollPosition();o=t.top,r=t.left}else o=e.scrollTop,r=e.scrollLeft;const a=s.top-o,c=s.left-r;return this.positions.forEach((t,i)=>{t.clientRect&&e!==i&&n.contains(i)&&BA(t.clientRect,a,c)}),s.top=o,s.left=r,{top:a,left:c}}}function jA(t){const e=t.cloneNode(!0),i=e.querySelectorAll("[id]"),n=t.nodeName.toLowerCase();e.removeAttribute("id");for(let s=0;s{if(this.beforeStarted.next(),this._handles.length){const e=this._handles.find(e=>{const i=t.target;return!!i&&(i===e||e.contains(i))});!e||this._disabledHandles.has(e)||this.disabled||this._initializeDragSequence(e,t)}else this.disabled||this._initializeDragSequence(this._rootElement,t)},this._pointerMove=t=>{const e=this._getPointerPositionOnPage(t);if(!this._hasStartedDragging){if(Math.abs(e.x-this._pickupPositionOnPage.x)+Math.abs(e.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const e=Date.now()>=this._dragStartTime+this._getDragStartDelay(t),i=this._dropContainer;if(!e)return void this._endDragSequence(t);i&&(i.isDragging()||i.isReceiving())||(t.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(t)))}return}this._boundaryElement&&(this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect())),t.preventDefault();const i=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._lastKnownPointerPosition=e,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,e);else{const t=this._activeTransform;t.x=i.x-this._pickupPositionOnPage.x+this._passiveTransform.x,t.y=i.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(t.x,t.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform",`translate(${t.x} ${t.y})`)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:t,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})},this._pointerUp=t=>{this._endDragSequence(t)},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new YA(i,s),o.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=Zn(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>OA(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(t=>Jn(t)),this._handles.forEach(t=>OA(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(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=Jn(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,GA),e.addEventListener("touchstart",this._pointerDown,ZA)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?Jn(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&JA(this._rootElement),JA(this._anchor),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(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),OA(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),OA(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&JA(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&JA(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){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}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){QA(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,i=t.parentNode,n=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),o=this._getShadowRoot();i.insertBefore(s,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),RA(t,!1),this._document.body.appendChild(i.replaceChild(n,t)),this._getPreviewInsertionPoint(i,o).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),n=QA(e),s=!n&&0!==e.button,o=this._rootElement,r=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),i||s||r)return;this._handles.length&&(this._rootElementTapHighlight=o.style.webkitTapHighlightColor||"",o.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{this._updateOnScroll(t)}),this._boundaryElement&&(this._boundaryRect=IA(this._boundaryElement));const a=this._previewTemplate;this._pickupPositionInElement=a&&a.template&&!a.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);const c=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){RA(this._rootElement,!0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),n=this._getPointerPositionOnPage(t),s=this._getDragDistance(n),o=e._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:s,dropPoint:n}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:o,distance:s,dropPoint:n}),e.drop(this,i,this._initialIndex,this._initialContainer,o,s,n),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:i,y:n}){let s=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=s,this._dropContainer.enter(this,t,e,s===this._initialContainer&&s.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:s,currentIndex:s.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,n),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let n;if(i&&t){const e=t.matchSize?this._rootElement.getBoundingClientRect():null,s=t.viewContainer.createEmbeddedView(i,t.context);s.detectChanges(),n=tM(s,this._document),this._previewRef=s,t.matchSize?eM(n,e):n.style.transform=VA(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const t=this._rootElement;n=jA(t),eM(n,t.getBoundingClientRect()),this._initialTransform&&(n.style.transform=this._initialTransform)}return xA(n.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:`${this._config.zIndex||1e3}`}),OA(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(t=>n.classList.add(t)):n.classList.add(e)),n}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);const e=function(t){const e=getComputedStyle(t),i=NA(e,"transition-property"),n=i.find(t=>"transform"===t||"all"===t);if(!n)return 0;const s=i.indexOf(n),o=NA(e,"transition-duration"),r=NA(e,"transition-delay");return PA(o[s])+PA(r[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const i=e=>{(!e||e.target===this._preview&&"transform"===e.propertyName)&&(this._preview.removeEventListener("transitionend",i),t(),clearTimeout(n))},n=setTimeout(i,1.5*e);this._preview.addEventListener("transitionend",i)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=tM(this._placeholderRef,this._document)):i=jA(this._rootElement),i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e){const i=this._rootElement.getBoundingClientRect(),n=t===this._rootElement?null:t,s=n?n.getBoundingClientRect():i,o=QA(e)?e.targetTouches[0]:e,r=this._getViewportScrollPosition();return{x:s.left-i.left+(o.pageX-s.left-r.left),y:s.top-i.top+(o.pageY-s.top-r.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),i=QA(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,n=i.pageX-e.left,s=i.pageY-e.top;if(this._ownerSVGElement){const t=this._ownerSVGElement.getScreenCTM();if(t){const e=this._ownerSVGElement.createSVGPoint();return e.x=n,e.y=s,e.matrixTransform(t.inverse())}}return{x:n,y:s}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:n}=this.constrainPosition?this.constrainPosition(t,this):t;if("x"===this.lockAxis||"x"===e?n=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==e||(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:t,y:e}=this._pickupPositionInElement,s=this._boundaryRect,o=this._previewRect,r=s.top+e,a=s.bottom-(o.height-e);i=$A(i,s.left+t,s.right-(o.width-t)),n=$A(n,r,a)}return{x:i,y:n}}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,n=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,o=Math.abs(e-s.x),r=Math.abs(i-s.y);return o>this._config.pointerDirectionChangeThreshold&&(n.x=e>s.x?1:-1,s.x=e),r>this._config.pointerDirectionChangeThreshold&&(n.y=i>s.y?1:-1,s.y=i),n}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,OA(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,GA),t.removeEventListener("touchstart",this._pointerDown,ZA)}_applyRootElementTransform(t,e){const i=VA(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=DA(i,this._initialTransform)}_applyPreviewTransform(t,e){var i;const n=(null===(i=this._previewTemplate)||void 0===i?void 0:i.template)?void 0:this._initialTransform,s=VA(t,e);this._preview.style.transform=DA(s,n)}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._boundaryElement.getBoundingClientRect(),n=this._rootElement.getBoundingClientRect();if(0===i.width&&0===i.height||0===n.width&&0===n.height)return;const s=i.left-n.left,o=n.right-i.right,r=i.top-n.top,a=n.bottom-i.bottom;i.width>n.width?(s>0&&(t+=s),o>0&&(t-=o)):t=0,i.height>n.height?(r>0&&(e+=r),a>0&&(e-=a)):e=0,t===this._passiveTransform.x&&e===this._passiveTransform.y||this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:QA(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const i=t.target;this._boundaryRect&&(i===this._document||i!==this._boundaryElement&&i.contains(this._boundaryElement))&&BA(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(){const t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=eo(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){const i=this._previewContainer||"global";if("parent"===i)return t;if("global"===i){const t=this._document;return e||t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement||t.body}return Jn(i)}}function VA(t,e){return`translate3d(${Math.round(t)}px, ${Math.round(e)}px, 0)`}function $A(t,e,i){return Math.max(e,Math.min(i,t))}function JA(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function QA(t){return"t"===t.type[0]}function tM(t,e){const i=t.rootNodes;if(1===i.length&&i[0].nodeType===e.ELEMENT_NODE)return i[0];const n=e.createElement("div");return i.forEach(t=>n.appendChild(t)),n}function eM(t,e){t.style.width=`${e.width}px`,t.style.height=`${e.height}px`,t.style.transform=VA(e.left,e.top)}function iM(t,e,i){const n=nM(e,t.length-1),s=nM(i,t.length-1);if(n===s)return;const o=t[n],r=s!0,this.sortPredicate=()=>!0,this.beforeStarted=new lt.xQ,this.entered=new lt.xQ,this.exited=new lt.xQ,this.dropped=new lt.xQ,this.sorted=new lt.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=Ft.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new lt.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function(t=0,e=ws.P){return(!ks(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=ws.P),new ft.y(i=>(i.add(e.schedule(zA,t,{subscriber:i,counter:0,period:t})),i))}(0,as).pipe(Es(this._stopScrollTimers)).subscribe(()=>{const t=this._scrollNode,e=this.autoScrollStep;1===this._verticalScrollDirection?rM(t,-e):2===this._verticalScrollDirection&&rM(t,e),1===this._horizontalScrollDirection?aM(t,-e):2===this._horizontalScrollDirection&&aM(t,e)})},this.element=Jn(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new YA(i,s)}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(t,e,i,n){let s;this._draggingStarted(),null==n?(s=this.sortingDisabled?this._draggables.indexOf(t):-1,-1===s&&(s=this._getItemIndexFromPointerPosition(t,e,i))):s=n;const o=this._activeDraggables,r=o.indexOf(t),a=t.getPlaceholderElement();let c=o[s];if(c===t&&(c=o[s+1]),r>-1&&o.splice(r,1),c&&!this._dragDropRegistry.isDragging(c)){const e=c.getRootElement();e.parentElement.insertBefore(a,e),o.splice(s,0,t)}else if(this._shouldEnterAsFirstChild(e,i)){const e=o[0].getRootElement();e.parentNode.insertBefore(a,e),o.unshift(t)}else Jn(this.element).appendChild(a),o.push(t);a.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,n,s,o,r){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:n,isPointerOverContainer:s,distance:o,dropPoint:r})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(t=>t.isDragging()).every(e=>-1===t.indexOf(e))?this._reset():this._cacheItems()),this}withDirection(t){return this._direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._orientation=t,this}withScrollableParents(t){const e=Jn(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?oM("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,e=>e.drag===t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,n){if(this.sortingDisabled||!this._clientRect||!HA(this._clientRect,.05,e,i))return;const s=this._itemPositions,o=this._getItemIndexFromPointerPosition(t,e,i,n);if(-1===o&&s.length>0)return;const r="horizontal"===this._orientation,a=oM(s,e=>e.drag===t),c=s[o],u=c.clientRect,l=a>o?1:-1,h=this._getItemOffsetPx(s[a].clientRect,u,l),d=this._getSiblingOffsetPx(a,s,l),p=s.slice();iM(s,a,o),this.sorted.next({previousIndex:a,currentIndex:o,container:this,item:t}),s.forEach((e,i)=>{if(p[i]===e)return;const n=e.drag===t,s=n?h:d,o=n?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=s,r?(o.style.transform=DA(`translate3d(${Math.round(e.offset)}px, 0, 0)`,e.initialTransform),BA(e.clientRect,0,s)):(o.style.transform=DA(`translate3d(0, ${Math.round(e.offset)}px, 0)`,e.initialTransform),BA(e.clientRect,s,0))}),this._previousSwap.overlaps=qA(u,e,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=r?n.x:n.y}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,n=0,s=0;if(this._parentPositions.positions.forEach((o,r)=>{r!==this._document&&o.clientRect&&!i&&HA(o.clientRect,.05,t,e)&&([n,s]=function(t,e,i,n){const s=cM(e,n),o=uM(e,i);let r=0,a=0;if(s){const e=t.scrollTop;1===s?e>0&&(r=1):t.scrollHeight-e>t.clientHeight&&(r=2)}if(o){const e=t.scrollLeft;1===o?e>0&&(a=1):t.scrollWidth-e>t.clientWidth&&(a=2)}return[r,a]}(r,o.clientRect,t,e),(n||s)&&(i=r))}),!n&&!s){const{width:o,height:r}=this._viewportRuler.getViewportSize(),a={width:o,height:r,top:0,right:o,bottom:r,left:0};n=cM(a,e),s=uM(a,t),i=window}!i||n===this._verticalScrollDirection&&s===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=n,this._horizontalScrollDirection=s,this._scrollNode=i,(n||s)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=Jn(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=Jn(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_cacheItemPositions(){const t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(t=>{const e=t.getVisibleElement();return{drag:t,offset:0,initialTransform:e.style.transform||"",clientRect:IA(e)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_reset(){this._isDragging=!1;const t=Jn(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(t=>{var e;const i=t.getRootElement();if(i){const n=null===(e=this._itemPositions.find(e=>e.drag===t))||void 0===e?void 0:e.initialTransform;i.style.transform=n||""}}),this._siblings.forEach(t=>t._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(t,e,i){const n="horizontal"===this._orientation,s=e[t].clientRect,o=e[t+-1*i];let r=s[n?"width":"height"]*i;if(o){const t=n?"left":"top",e=n?"right":"bottom";-1===i?r-=o.clientRect[t]-s[e]:r+=s[t]-o.clientRect[e]}return r}_getItemOffsetPx(t,e,i){const n="horizontal"===this._orientation;let s=n?e.left-t.left:e.top-t.top;return-1===i&&(s+=n?e.width-t.width:e.height-t.height),s}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,n="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){const s=i[i.length-1].clientRect;return n?t>=s.right:e>=s.bottom}{const s=i[0].clientRect;return n?t<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(t,e,i,n){const s="horizontal"===this._orientation,o=oM(this._itemPositions,({drag:o,clientRect:r},a,c)=>{if(o===t)return c.length<2;if(n){const t=s?n.x:n.y;if(o===this._previousSwap.drag&&this._previousSwap.overlaps&&t===this._previousSwap.delta)return!1}return s?e>=Math.floor(r.left)&&e=Math.floor(r.top)&&in._canReceive(t,e,i))}_canReceive(t,e,i){if(!this._clientRect||!qA(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const n=this._getShadowRoot().elementFromPoint(e,i);if(!n)return!1;const s=Jn(this.element);return n===s||s.contains(n)}_startReceiving(t,e){const i=this._activeSiblings;!i.has(t)&&e.every(t=>this.enterPredicate(t,this)||this._draggables.indexOf(t)>-1)&&(i.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&(this._itemPositions.forEach(({clientRect:t})=>{BA(t,e.top,e.left)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=eo(Jn(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._activeDraggables.filter(t=>t.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function oM(t,e){for(let i=0;i=i-o&&e<=i+o?1:e>=n-o&&e<=n+o?2:0}function uM(t,e){const{left:i,right:n,width:s}=t,o=.05*s;return e>=i-o&&e<=i+o?1:e>=n-o&&e<=n+o?2:0}const lM=Js({passive:!1,capture:!0});let hM=(()=>{class t{constructor(t,e){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=t=>t.isDragging(),this.pointerMove=new lt.xQ,this.pointerUp=new lt.xQ,this.scroll=new lt.xQ,this._preventDefaultWhileDragging=t=>{this._activeDragInstances.length>0&&t.preventDefault()},this._persistentTouchmoveListener=t=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&t.preventDefault(),this.pointerMove.next(t))},this._document=e}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,lM)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,lM)}startDragging(t,e){if(!(this._activeDragInstances.indexOf(t)>-1)&&(this._activeDragInstances.push(t),1===this._activeDragInstances.length)){const t=e.type.startsWith("touch");this._globalListeners.set(t?"touchend":"mouseup",{handler:t=>this.pointerUp.next(t),options:!0}).set("scroll",{handler:t=>this.scroll.next(t),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:lM}),t||this._globalListeners.set("mousemove",{handler:t=>this.pointerMove.next(t),options:lM}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((t,e)=>{this._document.addEventListener(e,t.handler,t.options)})})}}stopDragging(t){const e=this._activeDragInstances.indexOf(t);e>-1&&(this._activeDragInstances.splice(e,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(t){return this._activeDragInstances.indexOf(t)>-1}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,e)=>{this._document.removeEventListener(e,t.handler,t.options)}),this._globalListeners.clear()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(n.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(n.K0))},token:t,providedIn:"root"}),t})();const dM={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let pM=(()=>{class t{constructor(t,e,i,n){this._document=t,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=n}createDrag(t,e=dM){return new XA(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new sM(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0),s.LFG(s.R0b),s.LFG(fo),s.LFG(hM))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(n.K0),s.LFG(s.R0b),s.LFG(fo),s.LFG(hM))},token:t,providedIn:"root"}),t})();const fM=new s.OlP("CDK_DRAG_PARENT"),gM=new s.OlP("CdkDropListGroup"),mM=new s.OlP("CDK_DRAG_CONFIG");let _M=0;const bM=new s.OlP("CdkDropList");let yM=(()=>{class t{constructor(e,i,n,o,r,a,c){this.element=e,this._changeDetectorRef=n,this._scrollDispatcher=o,this._dir=r,this._group=a,this._destroyed=new lt.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+_M++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new s.vpe,this.entered=new s.vpe,this.exited=new s.vpe,this.sorted=new s.vpe,this._unsortedItems=new Set,this._dropListRef=i.createDropList(e),this._dropListRef.data=this,c&&this._assignDefaults(c),this._dropListRef.enterPredicate=(t,e)=>this.enterPredicate(t.data,e.data),this._dropListRef.sortPredicate=(t,e,i)=>this.sortPredicate(t,e.data,i.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),a&&a._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(t){this._dropListRef.disabled=this._disabled=Zn(t)}addItem(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((t,e)=>t._dragRef.getVisibleElement().compareDocumentPosition(e._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=t._dropLists.indexOf(this);e>-1&&t._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(kt(this._dir.value),Es(this._destroyed)).subscribe(t=>e.withDirection(t)),e.beforeStarted.subscribe(()=>{const i=Vn(this.connectedTo).map(e=>"string"==typeof e?t._dropLists.find(t=>t.id===e):e);if(this._group&&this._group._items.forEach(t=>{-1===i.indexOf(t)&&i.push(t)}),!this._scrollableParentsResolved){const t=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(t=>t.getElementRef().nativeElement);this._dropListRef.withScrollableParents(t),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=Zn(this.sortingDisabled),e.autoScrollDisabled=Zn(this.autoScrollDisabled),e.autoScrollStep=Gn(this.autoScrollStep,2),e.connectedTo(i.filter(t=>t&&t!==this).map(t=>t._dropListRef)).withOrientation(this.orientation)})}_handleEvents(t){t.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:this,item:t.item.data,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:this,item:t.item.data}),this._changeDetectorRef.markForCheck()}),t.sorted.subscribe(t=>{this.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:this,item:t.item.data})}),t.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}),this._changeDetectorRef.markForCheck()})}_assignDefaults(t){const{lockAxis:e,draggingDisabled:i,sortingDisabled:n,listAutoScrollDisabled:s,listOrientation:o}=t;this.disabled=null!=i&&i,this.sortingDisabled=null!=n&&n,this.autoScrollDisabled=null!=s&&s,this.orientation=o||"vertical",e&&(this.lockAxis=e)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(t=>t._dragRef))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(pM),s.Y36(s.sBO),s.Y36(ho),s.Y36(so,8),s.Y36(gM,12),s.Y36(mM,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,e){2&t&&(s.uIk("id",e.id),s.ekj("cdk-drop-list-disabled",e.disabled)("cdk-drop-list-dragging",e._dropListRef.isDragging())("cdk-drop-list-receiving",e._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[s._Bn([{provide:gM,useValue:void 0},{provide:bM,useExisting:t}])]}),t._dropLists=[],t})();const wM=new s.OlP("CdkDragHandle"),AM=new s.OlP("CdkDragPlaceholder"),MM=new s.OlP("CdkDragPreview");let vM=(()=>{class t{constructor(e,i,n,o,r,a,c,u,l,h,d){this.element=e,this.dropContainer=i,this._ngZone=o,this._viewContainerRef=r,this._dir=c,this._changeDetectorRef=l,this._selfHandle=h,this._parentDrag=d,this._destroyed=new lt.xQ,this.started=new s.vpe,this.released=new s.vpe,this.ended=new s.vpe,this.entered=new s.vpe,this.exited=new s.vpe,this.dropped=new s.vpe,this.moved=new ft.y(t=>{const e=this._dragRef.moved.pipe((0,At.U)(t=>({source:this,pointerPosition:t.pointerPosition,event:t.event,delta:t.delta,distance:t.distance}))).subscribe(t);return()=>{e.unsubscribe()}}),this._dragRef=u.createDrag(e,{dragStartThreshold:a&&null!=a.dragStartThreshold?a.dragStartThreshold:5,pointerDirectionChangeThreshold:a&&null!=a.pointerDirectionChangeThreshold?a.pointerDirectionChangeThreshold:5,zIndex:null==a?void 0:a.zIndex}),this._dragRef.data=this,t._dragInstances.push(this),a&&this._assignDefaults(a),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(t){this._disabled=Zn(t),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.onStable.pipe((0,vt.q)(1),Es(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._handles.changes.pipe(kt(this._handles),(0,Yt.b)(t=>{const e=t.filter(t=>t._parentDrag===this).map(t=>t.element);this._selfHandle&&this.rootElementSelector&&e.push(this.element),this._dragRef.withHandles(e)}),(0,Mt.w)(t=>(0,ko.T)(...t.map(t=>t._stateChanges.pipe(kt(t))))),Es(this._destroyed)).subscribe(t=>{const e=this._dragRef,i=t.element.nativeElement;t.disabled?e.disableHandle(i):e.enableHandle(i)}),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})}ngOnChanges(t){const e=t.rootElementSelector,i=t.freeDragPosition;e&&!e.firstChange&&this._updateRootElement(),i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=t._dragInstances.indexOf(this);e>-1&&t._dragInstances.splice(e,1),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}_updateRootElement(){const t=this.element.nativeElement,e=this.rootElementSelector?TM(t,this.rootElementSelector):t;this._dragRef.withRootElement(e||t)}_getBoundaryElement(){const t=this.boundaryElement;return t?"string"==typeof t?TM(this.element.nativeElement,t):Jn(t):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const t=this._dir,i=this.dragStartDelay,n=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,s=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 i&&i?i:Gn(i),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(n).withPreviewTemplate(s).withPreviewContainer(this.previewContainer||"global"),t&&e.withDirection(t.value)}}),e.beforeStarted.pipe((0,vt.q)(1)).subscribe(()=>{var i,n;if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let s=this.element.nativeElement.parentElement;for(;s;){if(null===(i=s.classList)||void 0===i?void 0:i.contains("cdk-drag")){e.withParent((null===(n=t._dragInstances.find(t=>t.element.nativeElement===s))||void 0===n?void 0:n._dragRef)||null);break}s=s.parentElement}})}_handleEvents(t){t.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),t.released.subscribe(()=>{this.released.emit({source:this})}),t.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance,dropPoint:t.dropPoint}),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),t.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})})}_assignDefaults(t){const{lockAxis:e,dragStartDelay:i,constrainPosition:n,previewClass:s,boundaryElement:o,draggingDisabled:r,rootElementSelector:a,previewContainer:c}=t;this.disabled=null!=r&&r,this.dragStartDelay=i||0,e&&(this.lockAxis=e),n&&(this.constrainPosition=n),s&&(this.previewClass=s),o&&(this.boundaryElement=o),a&&(this.rootElementSelector=a),c&&(this.previewContainer=c)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(bM,12),s.Y36(n.K0),s.Y36(s.R0b),s.Y36(s.s_b),s.Y36(mM,8),s.Y36(so,8),s.Y36(pM),s.Y36(s.sBO),s.Y36(wM,10),s.Y36(fM,12))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkDrag",""]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,MM,5),s.Suo(i,AM,5),s.Suo(i,wM,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._previewTemplate=t.first),s.iGM(t=s.CRH())&&(e._placeholderTemplate=t.first),s.iGM(t=s.CRH())&&(e._handles=t)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,e){2&t&&s.ekj("cdk-drag-disabled",e.disabled)("cdk-drag-dragging",e._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],previewContainer:["cdkDragPreviewContainer","previewContainer"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[s._Bn([{provide:fM,useExisting:t}]),s.TTD]}),t._dragInstances=[],t})();function TM(t,e){let i=t.parentElement;for(;i;){if(i.matches?i.matches(e):i.msMatchesSelector(e))return i;i=i.parentElement}return null}let kM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[pM],imports:[go]}),t})();const LM=["*"],CM=new s.OlP("MatChipRemove"),SM=new s.OlP("MatChipAvatar"),EM=new s.OlP("MatChipTrailingIcon");class zM{constructor(t){this._elementRef=t}}const xM=Lu(Tu(ku(zM),"primary"),-1);let OM=(()=>{class t extends xM{constructor(t,e,i,n,o,r,a,c){super(t),this._elementRef=t,this._ngZone=e,this._changeDetectorRef=o,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new lt.xQ,this._onBlur=new lt.xQ,this.selectionChange=new s.vpe,this.destroyed=new s.vpe,this.removed=new s.vpe,this._addHostClassName(),this._chipRippleTarget=r.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new Gu(this,e,this._chipRippleTarget,i),this._chipRipple.setupTriggerEvents(t),this.rippleConfig=n||{},this._animationsDisabled="NoopAnimations"===a,this.tabIndex=null!=c&&parseInt(c)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(t){const e=Zn(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(t){this._value=t}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(t){this._selectable=Zn(t)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(t){this._disabled=Zn(t)}get removable(){return this._removable}set removable(t){this._removable=Zn(t)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const t=this._elementRef.nativeElement;t.hasAttribute("mat-basic-chip")||"mat-basic-chip"===t.tagName.toLowerCase()?t.classList.add("mat-basic-chip"):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(t=!1){return this._selected=!this.selected,this._dispatchSelectionChange(t),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(t){this.disabled?t.preventDefault():t.stopPropagation()}_handleKeydown(t){if(!this.disabled)switch(t.keyCode){case 46:case 8:this.remove(),t.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,vt.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(t=!1){this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(Ws),s.Y36(Xu,8),s.Y36(s.sBO),s.Y36(n.K0),s.Y36(lu,8),s.$8M("tabindex"))},t.\u0275dir=s.lG2({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,SM,5),s.Suo(i,EM,5),s.Suo(i,CM,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.avatar=t.first),s.iGM(t=s.CRH())&&(e.trailingIcon=t.first),s.iGM(t=s.CRH())&&(e.removeIcon=t.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&s.NdJ("click",function(t){return e._handleClick(t)})("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e.focus()})("blur",function(){return e._blur()}),2&t&&(s.uIk("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),s.ekj("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[s.qOj]}),t})();const RM=new s.OlP("mat-chips-default-options");class DM{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const PM=Cu(DM);let NM=0;class IM{constructor(t,e){this.source=t,this.value=e}}let qM=(()=>{class t extends PM{constructor(t,e,i,n,o,r,a){super(r,n,o,a),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this.ngControl=a,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new lt.xQ,this._uid="mat-chip-list-"+NM++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(t,e)=>t===e,this._required=!1,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new s.vpe,this.valueChange=new s.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(t){this._multiple=Zn(t),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this.writeValue(t),this._value=t}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required}set required(t){this._required=Zn(t),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(t){this._placeholder=t,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(t){this._disabled=Zn(t),this._syncChipsState()}get selectable(){return this._selectable}set selectable(t){this._selectable=Zn(t),this.chips&&this.chips.forEach(t=>t.chipListSelectable=this._selectable)}set tabIndex(t){this._userTabIndex=t,this._tabIndex=t}get chipSelectionChanges(){return(0,ko.T)(...this.chips.map(t=>t.selectionChange))}get chipFocusChanges(){return(0,ko.T)(...this.chips.map(t=>t._onFocus))}get chipBlurChanges(){return(0,ko.T)(...this.chips.map(t=>t._onBlur))}get chipRemoveChanges(){return(0,ko.T)(...this.chips.map(t=>t.destroyed))}ngAfterContentInit(){this._keyManager=new Mr(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Es(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.tabOut.pipe(Es(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(kt(null),Es(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 co(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(t){this._chipInput=t,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",t.id)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}writeValue(t){this.chips&&this._setSelectionByValue(t,!1)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this.stateChanges.next()}onContainerClick(t){this._originatesFromChip(t)||this.focus()}focus(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}_focusInput(t){this._chipInput&&this._chipInput.focus(t)}_keydown(t){const e=t.target;e&&e.classList.contains("mat-chip")&&(this._keyManager.onKeydown(t),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(t){return t>=0&&tt.deselect()),Array.isArray(t))t.forEach(t=>this._selectValue(t,e)),this._sortValues();else{const i=this._selectValue(t,e);i&&e&&this._keyManager.setActiveItem(i)}}_selectValue(t,e=!0){const i=this.chips.find(e=>null!=e.value&&this._compareWith(e.value,t));return i&&(e?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(t){this._selectionModel.clear(),this.chips.forEach(e=>{e!==t&&e.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(t=>{t.selected&&this._selectionModel.select(t)}),this.stateChanges.next())}_propagateChanges(t){let e=null;e=Array.isArray(this.selected)?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.change.emit(new IM(this,e)),this.valueChange.emit(e),this._onChange(e),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(t=>{t.source.selected?this._selectionModel.select(t.source):this._selectionModel.deselect(t.source),this.multiple||this.chips.forEach(t=>{!this._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),t.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(t=>{let e=this.chips.toArray().indexOf(t.chip);this._isValidIndex(e)&&this._keyManager.updateActiveItem(e),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(t=>{const e=t.chip,i=this.chips.toArray().indexOf(t.chip);this._isValidIndex(i)&&e._hasFocus&&(this._lastDestroyedChipIndex=i)})}_originatesFromChip(t){let e=t.target;for(;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-chip"))return!0;e=e.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(t=>t._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(t=>{t._chipListDisabled=this._disabled,t._chipListMultiple=this.multiple})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(so,8),s.Y36(Xd,8),s.Y36(ap,8),s.Y36(Bu),s.Y36(Md,10))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,OM,5),2&t){let t;s.iGM(t=s.CRH())&&(e.chips=t)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&s.NdJ("focus",function(){return e.focus()})("blur",function(){return e._blur()})("keydown",function(t){return e._keydown(t)}),2&t&&(s.Ikx("id",e._uid),s.uIk("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),s.ekj("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[s._Bn([{provide:Oh,useExisting:t}]),s.qOj],ngContentSelectors:LM,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.Hsn(1),s.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.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-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height: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:focus{outline:dotted 2px}.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}.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}\n'],encapsulation:2,changeDetection:0}),t})(),BM=0,HM=(()=>{class t{constructor(t,e){this._elementRef=t,this._defaultOptions=e,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new s.vpe,this.placeholder="",this.id="mat-chip-list-input-"+BM++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(t){t&&(this._chipList=t,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(t){this._addOnBlur=Zn(t)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(t){this._disabled=Zn(t)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(t){if(t){if(9!==t.keyCode||So(t,"shiftKey")||this._chipList._allowFocusEscape(),8===t.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void t.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(t)}_keyup(t){!this._focusLastChipOnBackspace&&8===t.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,t.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._chipList.stateChanges.next()}_emitChipEnd(t){!this.inputElement.value&&t&&this._chipList._keydown(t),t&&!this._isSeparatorKey(t)||(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==t||t.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(t){this.inputElement.focus(t)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(t){return!So(t)&&new Set(this.separatorKeyCodes).has(t.keyCode)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(RM))},t.\u0275dir=s.lG2({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,e){1&t&&s.NdJ("keydown",function(t){return e._keydown(t)})("keyup",function(t){return e._keyup(t)})("blur",function(){return e._blur()})("focus",function(){return e._focus()})("input",function(){return e._onInput()}),2&t&&(s.Ikx("id",e.id),s.uIk("disabled",e.disabled||null)("placeholder",e.placeholder||null)("aria-invalid",e._chipList&&e._chipList.ngControl?e._chipList.ngControl.invalid:null)("aria-required",e._chipList&&e._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[s.TTD]}),t})();const YM={separatorKeyCodes:[13]};let jM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Bu,{provide:RM,useValue:YM}],imports:[[Mu]]}),t})();function FM(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-icon",9),s.NdJ("mousedown",function(){return s.CHM(t),s.oxw(2).dragDisabled=!1}),s._uU(1,"drag_indicator"),s.qZA()}}function WM(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-icon",10),s.NdJ("click",function(){s.CHM(t);const e=s.oxw().$implicit;return s.oxw().edit(e)}),s._uU(1,"edit"),s.qZA()}}function UM(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-icon",11),s.NdJ("click",function(){s.CHM(t);const e=s.oxw().$implicit;return s.oxw().remove(e)}),s._uU(1,"cancel"),s.qZA()}}function KM(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-chip",4),s.NdJ("removed",function(){const e=s.CHM(t).$implicit,i=s.oxw();return i.remove(e),i._sendEventToParent()}),s.YNc(1,FM,2,0,"mat-icon",5),s.TgZ(2,"div",6),s.NdJ("click",function(){const e=s.CHM(t).$implicit,i=s.oxw();return i.readonly&&void 0!==i.attribute.displayName&&i.showValue(e,i.attribute.displayName)}),s._uU(3),s.qZA(),s.YNc(4,WM,2,0,"mat-icon",7),s.YNc(5,UM,2,0,"mat-icon",8),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.Q6J("selectable",i.selectable)("cdkDragData",t)("removable",i.removable),s.xp6(1),s.Q6J("ngIf",i.removable),s.xp6(1),s.ekj("cursor-pointer",i.readonly&&void 0!==i.attribute.displayName),s.xp6(1),s.hij(" ",t," "),s.xp6(1),s.Q6J("ngIf",i.removable),s.xp6(1),s.Q6J("ngIf",i.removable)}}function ZM(t,e){1&t&&(s.TgZ(0,"mat-icon"),s._uU(1,"more_horiz"),s.qZA())}function GM(t,e){1&t&&(s.TgZ(0,"mat-icon"),s._uU(1,"keyboard_arrow_up"),s.qZA())}function XM(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",12),s.TgZ(1,"span",13),s.TgZ(2,"button",14),s.NdJ("click",function(){return s.CHM(t),s.oxw().onShowChange()}),s.YNc(3,ZM,2,0,"mat-icon",15),s.YNc(4,GM,2,0,"mat-icon",15),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.Q6J("matTooltip",t.showMore?"Show less":"Show more")("matTooltipPosition","above"),s.xp6(2),s.Q6J("ngIf",!t.showMore),s.xp6(1),s.Q6J("ngIf",t.showMore)}}function VM(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-form-field",12),s.TgZ(1,"input",16),s.NdJ("matChipInputTokenEnd",function(e){return s.CHM(t),s.oxw().add(e)})("change",function(){return s.CHM(t),s.oxw()._sendEventToParent()}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(),e=s.MAs(2);s.xp6(1),s.Q6J("matChipInputFor",e)("matChipInputSeparatorKeyCodes",t.separatorKeysCodes)("matChipInputAddOnBlur",t.addOnBlur)}}let $M=(()=>{class t{constructor(t){this.dialog=t,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[13,188],this.values=[],this.showMore=!1,this.defaultItemsShown=5,this.sendEventToParent=new s.vpe,this.readonly=!1}ngOnInit(){this.removable=!sg(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=Object.values(this.attribute.value),this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=sg(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}add(t){const e=t.input,i=t.value;(i||"").trim()&&(this.attribute.value.push(i.trim()),this.values=Object.values(this.attribute.value),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),e&&(e.value=""),this.sendEventToParent.emit()}remove(t){const e=ng();e.width="400px",e.data={name:t},this.dialog.open(D_,e).afterClosed().subscribe(e=>{if(e){const e=this.attribute.value.indexOf(t);this.attribute.value.splice(e,1),this.values=Object.values(this.attribute.value),this.sendEventToParent.emit()}})}drop(t){this.dragDisabled=!0,iM(this.attribute.value,t.previousIndex,t.currentIndex),this.values=Object.values(this.attribute.value)}edit(t){const e=this.attribute.value.indexOf(t),i=ng();i.width="600px",i.data={attribute:this.attribute,index:e},this.dialog.open(R_,i).afterClosed().subscribe(t=>{t&&(this.values=Object.values(this.attribute.value),this.sendEventToParent.emit())})}showValue(t,e){const i=ng();i.width="350px",i.data={value:t,title:e},this.dialog.open(O_,i)}setItemsShown(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Ll))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"mat-chip-list",0,1),s.NdJ("cdkDropListDropped",function(t){return e.drop(t),e._sendEventToParent()}),s.YNc(3,KM,6,9,"mat-chip",2),s.YNc(4,XM,5,4,"div",3),s.YNc(5,VM,2,3,"mat-form-field",3),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Q6J("cdkDropListDisabled",e.dragDisabled),s.xp6(2),s.Q6J("ngForOf",e.values.slice(0,e.itemsShown)),s.xp6(1),s.Q6J("ngIf",e.values.length>e.defaultItemsShown),s.xp6(1),s.Q6J("ngIf",!e.readonly))},directives:[qM,yM,n.sg,n.O5,OM,vM,Jf,$p,uh,Kh,Wg,HM],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%], .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}.edit-delete-icon[_ngcontent-%COMP%], .handle-icon[_ngcontent-%COMP%]{justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),t})(),JM=(()=>{class t{constructor(t){this.dialog=t,this.readonly=!1,this.sendEventToParent=new s.vpe}ngOnInit(){this.value=this.attribute.value,this.readonly||(this.readonly=sg(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(t,e){const i=ng();i.width="350px",i.data={value:t,title:e},this.dialog.open(O_,i)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Ll))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"mat-form-field",0),s.TgZ(1,"input",1),s.NdJ("click",function(){return e.readonly&&void 0!==e.value&&e.showValue(e.value,e.attribute.displayName)})("ngModelChange",function(t){return e.attribute.value=t})("keydown",function(){return e._sendEventToParent()}),s.ALo(2,"multiWordDataCy"),s.qZA(),s.qZA()),2&t&&(s.s9C("appearance",e.readonly?"none":"standard"),s.xp6(1),s.ekj("cursor-pointer",e.readonly&&void 0!==e.value),s.Q2q("data-cy","",s.lcZ(2,6,e.attribute.displayName),"-value"),s.Q6J("readonly",e.readonly)("ngModel",e.attribute.value))},directives:[Kh,Wg,Qh,Td,Jd],pipes:[LA],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),t})(),QM=(()=>{class t{constructor(t){this.dialog=t,this.readonly=!1,this.sendEventToParent=new s.vpe}ngOnInit(){this.readonly||(this.readonly=sg(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(t){const e=ng();e.width="350px",e.data={value:t.value,title:t.displayName},this.dialog.open(O_,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Ll))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"mat-form-field",0),s.TgZ(1,"input",1),s.NdJ("click",function(){return e.readonly&&void 0!==e.attribute.value&&e.showValue(e.attribute)})("ngModelChange",function(t){return e.attribute.value=t})("keydown",function(){return e._sendEventToParent()}),s.qZA(),s.qZA()),2&t&&(s.s9C("appearance",e.readonly?"none":"standard"),s.xp6(1),s.ekj("cursor-pointer",e.readonly&&void 0!==e.attribute.value),s.Q6J("readonly",e.readonly)("ngModel",e.attribute.value))},directives:[Kh,Wg,ep,Qh,Td,Jd],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})();const tv=["map"];function ev(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-attribute-value-boolean",3),s.NdJ("sendEventToParent",function(){return s.CHM(t),s.oxw()._sendEventToParent2()}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("attribute",t.attribute)("readonly",t.readonly)}}function iv(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-attribute-value-list",3),s.NdJ("sendEventToParent",function(){return s.CHM(t),s.oxw()._sendEventToParent2()}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("attribute",t.attribute)("readonly",t.readonly)}}function nv(t,e){if(1&t&&s._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&t){const t=s.oxw();s.Q6J("attribute",t.attribute)("readonly",t.readonly)}}function sv(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-attribute-value-string",3),s.NdJ("sendEventToParent",function(){return s.CHM(t),s.oxw()._sendEventToParent2()}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("attribute",t.attribute)("readonly",t.readonly)}}function ov(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-attribute-value-integer",3),s.NdJ("sendEventToParent",function(){return s.CHM(t),s.oxw()._sendEventToParent2()}),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("attribute",t.attribute)("readonly",t.readonly)}}let rv=(()=>{class t{constructor(){this.readonly=!1,this.sendEventToParent2=new s.vpe}updateMapAttribute(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}_sendEventToParent2(){this.sendEventToParent2.emit()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(t,e){if(1&t&&s.Gf(tv,5),2&t){let t;s.iGM(t=s.CRH())&&(e.mapComponent=t.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(t,e){1&t&&(s.TgZ(0,"div"),s.YNc(1,ev,1,2,"perun-web-apps-attribute-value-boolean",0),s.YNc(2,iv,1,2,"perun-web-apps-attribute-value-list",0),s.TgZ(3,"div",1),s.NdJ("click",function(){return e._sendEventToParent2()}),s.YNc(4,nv,2,2,"perun-web-apps-attribute-value-map",2),s.qZA(),s.YNc(5,sv,1,2,"perun-web-apps-attribute-value-string",0),s.YNc(6,ov,1,2,"perun-web-apps-attribute-value-integer",0),s.qZA()),2&t&&(s.xp6(1),s.Q6J("ngIf","java.lang.Boolean"===e.attribute.type),s.xp6(1),s.Q6J("ngIf","java.util.ArrayList"===e.attribute.type),s.xp6(2),s.Q6J("ngIf","java.util.LinkedHashMap"===e.attribute.type),s.xp6(1),s.Q6J("ngIf","java.lang.String"===e.attribute.type||"java.lang.LargeString"===e.attribute.type),s.xp6(1),s.Q6J("ngIf","java.lang.Integer"===e.attribute.type))},directives:[n.O5,EA,$M,hA,JM,QM],styles:[""]}),t})();function av(t,e){1&t&&s._UZ(0,"mat-spinner",3)}function cv(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-option",16),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw(4).changeLanguage(e)}),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"uppercase"),s.qZA()}if(2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.hij(" ",s.lcZ(2,2,s.lcZ(3,4,"SHARED_LIB.LANGUAGES."+t))," ")}}function uv(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-form-field",13),s.TgZ(1,"mat-select",14),s.NdJ("valueChange",function(e){return s.CHM(t),s.oxw(3).currentLang=e}),s.YNc(2,cv,4,6,"mat-option",15),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(3);s.xp6(1),s.Q6J("value",t.currentLang),s.xp6(1),s.Q6J("ngForOf",t.languages)}}function lv(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"a",17),s._uU(2),s.qZA(),s.TgZ(3,"button",18),s.NdJ("click",function(){return s.CHM(t),s.oxw(3).changeEmail()}),s.TgZ(4,"mat-icon"),s._uU(5," edit "),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(3);s.xp6(1),s.MGl("href","mailto:",t.email,"",s.LSH),s.xp6(1),s.Oqu(t.email)}}function hv(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-option",16),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw(4).changeTimeZone(e)}),s._uU(1),s.qZA()}if(2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.hij(" ",t," ")}}function dv(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-form-field",13),s.TgZ(1,"mat-select",19),s.NdJ("valueChange",function(e){return s.CHM(t),s.oxw(3).currentTimezone=e}),s.YNc(2,hv,2,2,"mat-option",15),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(3);s.xp6(1),s.Q6J("value",t.currentTimezone),s.xp6(1),s.Q6J("ngForOf",t.timeZones)}}function pv(t,e){1&t&&(s.TgZ(0,"p"),s._uU(1,"-"),s.qZA())}function fv(t,e){if(1&t&&s._UZ(0,"perun-web-apps-attribute-value",22),2&t){const t=s.oxw(2).$implicit;s.Q6J("attribute",t.attribute)("readonly",!0)}}function gv(t,e){if(1&t&&(s.TgZ(0,"div"),s.YNc(1,pv,2,0,"p",20),s.YNc(2,fv,1,2,"perun-web-apps-attribute-value",21),s.qZA()),2&t){const t=s.oxw().$implicit;s.xp6(1),s.Q6J("ngIf",!t.attribute.value),s.xp6(1),s.Q6J("ngIf",t.attribute.value)}}function mv(t,e){if(1&t&&(s.TgZ(0,"tr"),s.TgZ(1,"td",7),s.TgZ(2,"div",8),s._uU(3),s.qZA(),s.qZA(),s.TgZ(4,"td",9),s.YNc(5,uv,3,2,"mat-form-field",10),s.YNc(6,lv,6,2,"div",11),s.YNc(7,dv,3,2,"mat-form-field",10),s.YNc(8,gv,3,2,"div",12),s.qZA(),s.qZA()),2&t){const t=e.$implicit,i=s.oxw(2);s.xp6(2),s.Q6J("matTooltip",t["tooltip_"+i.currentLang]),s.xp6(1),s.hij(" ",t["displayName_"+i.currentLang]," "),s.xp6(1),s.Q6J("ngSwitch",t.attribute.friendlyName),s.xp6(1),s.Q6J("ngSwitchCase","preferredLanguage"),s.xp6(1),s.Q6J("ngSwitchCase","preferredMail"),s.xp6(1),s.Q6J("ngSwitchCase","timezone")}}function _v(t,e){if(1&t&&(s.TgZ(0,"table",4),s.TgZ(1,"tbody"),s.TgZ(2,"tr"),s.TgZ(3,"td",5),s._uU(4),s.ALo(5,"translate"),s.ALo(6,"customTranslate"),s.qZA(),s.TgZ(7,"td"),s._uU(8),s.qZA(),s.qZA(),s.YNc(9,mv,9,6,"tr",6),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(4),s.Oqu(s.lcZ(5,3,s.lcZ(6,5,"PROFILE_PAGE.NAME"))),s.xp6(4),s.Oqu(t.fullName),s.xp6(1),s.Q6J("ngForOf",t.additionalAttributes)}}let bv=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u,l){this.translateService=t,this.dialog=e,this.authzResolverService=i,this.attributesManagerService=n,this.usersManagerService=s,this.route=o,this.router=r,this.notificator=a,this.storeService=c,this.apiRequestConfiguration=u,this.preferredLangService=l,this.currentLang="en",this.languages=this.storeService.get("supported_languages"),this.timeZones=sA.tz.names().filter(t=>!t.startsWith("Etc/")),this.additionalAttributes=[],this.email="",this.fullName="",this.organization="",this.currentTimezone="",t.get("PROFILE_PAGE.MAIL_CHANGE_SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){const t=this.route.snapshot.queryParamMap,e=t.get("token"),i=t.get("u");this.loading=!0,e&&i?(this.apiRequestConfiguration.dontHandleErrorForNext(),this.usersManagerService.validatePreferredEmailChangeWithToken(e,Number.parseInt(i,10)).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.router.navigate([],{replaceUrl:!0}),this.getData()},()=>{const t=ng();t.width="600px",this.dialog.open(q_,t).afterClosed().subscribe(()=>{this.getData()})})):this.getData()}getData(){this.authzResolverService.getPerunPrincipal().subscribe(t=>{this.userId=t.userId,this.usersManagerService.getRichUserWithAttributes(this.userId).subscribe(t=>{this.fullName=(new xg).transform(t);const e=t.userAttributes.find(t=>"preferredMail"===t.friendlyName);this.email=e.value,this.languageAttribute=t.userAttributes.find(t=>"preferredLanguage"===t.friendlyName);const i=this.languageAttribute&&this.languageAttribute.value?this.languageAttribute.value.toString():null,n=this.preferredLangService.getPreferredLanguage(i);this.translateService.use(n),this.currentLang=n,this.timezoneAttribute=t.userAttributes.find(t=>"timezone"===t.friendlyName),this.currentTimezone=this.timezoneAttribute&&this.timezoneAttribute.value?this.timezoneAttribute.value:"-";const s=this.storeService.get("profile_page_attributes");let o=0;const r=this.storeService.get("supported_languages");s.forEach(e=>{const i=t.userAttributes.find(t=>t.friendlyName===e.friendly_name);i?(o++,this.addAttribute(i,e,r)):this.attributesManagerService.getAttributeDefinitionByName(`urn:perun:user:attribute-def:${e.is_virtual?"virt":"def"}:${e.friendly_name}`).subscribe(t=>{this.addAttribute(t,e,r),o++,this.loading=o!==s.length}),this.loading=o!==s.length})})})}addAttribute(t,e,i){var n;const s={attribute:t};for(const o of i)s[`displayName_${o}`]=e[`display_name_${o}`]&&e[`display_name_${o}`].length?e[`display_name_${o}`]:t.displayName,s[`tooltip_${o}`]=null!==(n=e[`tooltip_${o}`])&&void 0!==n?n:"";this.additionalAttributes.push(s)}changeLanguage(t){this.currentLang=t,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(t){this.currentTimezone=t,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 t=ng();t.width="350px",t.data={userId:this.userId},this.dialog.open(I_,t).afterClosed().subscribe(t=>{t&&this.getEmail()})}getEmail(){this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredMail").subscribe(t=>{this.email=t.value})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(th),s.Y36(Ll),s.Y36(K),s.Y36(U),s.Y36(J),s.Y36(Qe),s.Y36(Mn),s.Y36(Mg),s.Y36(Kn),s.Y36(Ag),s.Y36(Cg))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.YNc(1,av,1,0,"mat-spinner",1),s.YNc(2,_v,10,7,"table",2),s.qZA()),2&t&&(s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[n.O5,am,n.sg,$p,n.RF,n.n9,n.ED,Kh,Pp,ul,uh,Jf,rv],pipes:[eh,Og,n.gd],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}"]}),t})();const yv=["mat-sort-header",""];function wv(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",3),s.NdJ("@arrowPosition.start",function(){return s.CHM(t),s.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return s.CHM(t),s.oxw()._disableViewStateAnimation=!1}),s._UZ(1,"div",4),s.TgZ(2,"div",5),s._UZ(3,"div",6),s._UZ(4,"div",7),s._UZ(5,"div",8),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("@arrowOpacity",t._getArrowViewState())("@arrowPosition",t._getArrowViewState())("@allowChildren",t._getArrowDirectionState()),s.xp6(2),s.Q6J("@indicator",t._getArrowDirectionState()),s.xp6(1),s.Q6J("@leftPointer",t._getArrowDirectionState()),s.xp6(1),s.Q6J("@rightPointer",t._getArrowDirectionState())}}const Av=["*"],Mv=new s.OlP("MAT_SORT_DEFAULT_OPTIONS");class vv{}const Tv=Su(vu(vv));let kv=(()=>{class t extends Tv{constructor(t){super(),this._defaultOptions=t,this.sortables=new Map,this._stateChanges=new lt.xQ,this.start="asc",this._direction="",this.sortChange=new s.vpe}get direction(){return this._direction}set direction(t){this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=Zn(t)}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){var e,i,n;if(!t)return"";const s=null!==(i=null!==(e=null==t?void 0:t.disableClear)&&void 0!==e?e:this.disableClear)&&void 0!==i?i:!!(null===(n=this._defaultOptions)||void 0===n?void 0:n.disableClear);let o=function(t,e){let i=["asc","desc"];return"desc"==t&&i.reverse(),e||i.push(""),i}(t.start||this.start,s),r=o.indexOf(this.direction)+1;return r>=o.length&&(r=0),o[r]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Mv,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[s.qOj,s.TTD]}),t})();const Lv=yu.ENTERING+" "+bu.STANDARD_CURVE,Cv={indicator:Yr("indicator",[Kr("active-asc, asc",Ur({transform:"translateY(0px)"})),Kr("active-desc, desc",Ur({transform:"translateY(10px)"})),Gr("active-asc <=> active-desc",jr(Lv))]),leftPointer:Yr("leftPointer",[Kr("active-asc, asc",Ur({transform:"rotate(-45deg)"})),Kr("active-desc, desc",Ur({transform:"rotate(45deg)"})),Gr("active-asc <=> active-desc",jr(Lv))]),rightPointer:Yr("rightPointer",[Kr("active-asc, asc",Ur({transform:"rotate(45deg)"})),Kr("active-desc, desc",Ur({transform:"rotate(-45deg)"})),Gr("active-asc <=> active-desc",jr(Lv))]),arrowOpacity:Yr("arrowOpacity",[Kr("desc-to-active, asc-to-active, active",Ur({opacity:1})),Kr("desc-to-hint, asc-to-hint, hint",Ur({opacity:.54})),Kr("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Ur({opacity:0})),Gr("* => asc, * => desc, * => active, * => hint, * => void",jr("0ms")),Gr("* <=> *",jr(Lv))]),arrowPosition:Yr("arrowPosition",[Gr("* => desc-to-hint, * => desc-to-active",jr(Lv,Zr([Ur({transform:"translateY(-25%)"}),Ur({transform:"translateY(0)"})]))),Gr("* => hint-to-desc, * => active-to-desc",jr(Lv,Zr([Ur({transform:"translateY(0)"}),Ur({transform:"translateY(25%)"})]))),Gr("* => asc-to-hint, * => asc-to-active",jr(Lv,Zr([Ur({transform:"translateY(25%)"}),Ur({transform:"translateY(0)"})]))),Gr("* => hint-to-asc, * => active-to-asc",jr(Lv,Zr([Ur({transform:"translateY(0)"}),Ur({transform:"translateY(-25%)"})]))),Kr("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Ur({transform:"translateY(0)"})),Kr("hint-to-desc, active-to-desc, desc",Ur({transform:"translateY(-25%)"})),Kr("hint-to-asc, active-to-asc, asc",Ur({transform:"translateY(25%)"}))]),allowChildren:Yr("allowChildren",[Gr("* <=> *",[Vr("@*",Xr(),{optional:!0})])])};let Sv=(()=>{class t{constructor(){this.changes=new lt.xQ}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Ev={provide:Sv,deps:[[new s.FiY,new s.tp0,Sv]],useFactory:function(t){return t||new Sv}};class zv{}const xv=vu(zv);let Ov=(()=>{class t extends xv{constructor(t,e,i,n,s,o){super(),this._intl=t,this._changeDetectorRef=e,this._sort=i,this._columnDef=n,this._focusMonitor=s,this._elementRef=o,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._handleStateChanges()}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=Zn(t)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{const e=!!t;e!==this._showIndicatorHint&&(this._setIndicatorHintVisible(e),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t||{},this._disableViewStateAnimation&&(this._viewState={toState:t.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(t){this._isDisabled()||32!==t.keyCode&&13!==t.keyCode||(t.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 t=this._viewState.fromState;return(t?`${t}-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()}_handleStateChanges(){this._rerenderSubscription=(0,ko.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 t.\u0275fac=function(e){return new(e||t)(s.Y36(Sv),s.Y36(s.sBO),s.Y36(kv,8),s.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),s.Y36(Pr),s.Y36(s.SBq))},t.\u0275cmp=s.Xpm({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e._handleClick()})("keydown",function(t){return e._handleKeydown(t)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&t&&(s.uIk("aria-sort",e._getAriaSortAttribute()),s.ekj("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[s.qOj],attrs:yv,ngContentSelectors:Av,decls:4,vars:6,consts:[["role","button",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(t,e){1&t&&(s.F$t(),s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.Hsn(2),s.qZA(),s.YNc(3,wv,6,6,"div",2),s.qZA()),2&t&&(s.ekj("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),s.uIk("tabindex",e._isDisabled()?null:0),s.xp6(3),s.Q6J("ngIf",e._renderArrow()))},directives:[n.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-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}\n"],encapsulation:2,data:{animation:[Cv.indicator,Cv.leftPointer,Cv.rightPointer,Cv.arrowOpacity,Cv.arrowPosition,Cv.allowChildren]},changeDetection:0}),t})(),Rv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Ev],imports:[[n.ez,Mu]]}),t})(),Dv=(()=>{class t{constructor(t){this.elementRef=t}ngOnInit(){this.elementRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","perunWebAppsAutoFocus",""]]}),t})(),Pv=(()=>{class t{constructor(){}onClick(t){if(1===t.button&&null!=this.perunWebAppsMiddleClickRouterLink){const t=this.perunWebAppsMiddleClickRouterLink.join("/"),e=location.search;window.open(t+e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(t,e){1&t&&s.NdJ("mouseup",function(t){return e.onClick(t)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),t})(),Nv=(()=>{class t{transform(t){const e=t.find(t=>"mail"===t.friendlyName);return e?e.value.toString():"N/A"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"getMailFromAttributes",type:t,pure:!0}),t})();function Iv(t,e){1&t&&s._UZ(0,"th",18)}function qv(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",19),s.TgZ(1,"span",20),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.TgZ(4,"mat-checkbox",21),s.NdJ("change",function(e){const i=s.CHM(t).$implicit,n=s.oxw();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.s9C("matTooltip",s.lcZ(2,6,s.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.CANNOT_BE_DELETED_TOOLTIP"))),s.Q6J("matTooltipPosition","above")("matTooltipDisabled",!t.userExtSource.persistent),s.xp6(3),s.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))("disabled",t.userExtSource.persistent)}}function Bv(t,e){1&t&&(s.TgZ(0,"th",22),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,s.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))," "))}function Hv(t,e){if(1&t&&(s.TgZ(0,"td",23),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",t.userExtSource.id," ")}}function Yv(t,e){1&t&&(s.TgZ(0,"th",24),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,s.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))," "))}function jv(t,e){if(1&t&&(s.TgZ(0,"td",23),s._uU(1),s.ALo(2,"getMailFromAttributes"),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",s.lcZ(2,1,t.attributes)," ")}}function Fv(t,e){if(1&t&&(s.TgZ(0,"th",22),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.hij(" ",s.lcZ(2,1,s.lcZ(3,3,t.extSourceNameHeader?t.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME"))," ")}}function Wv(t,e){if(1&t&&(s.TgZ(0,"td",23),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",t.userExtSource.extSource.name," ")}}function Uv(t,e){if(1&t&&(s.TgZ(0,"th",22),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.hij(" ",s.lcZ(2,1,s.lcZ(3,3,t.loginHeader?t.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN"))," ")}}function Kv(t,e){if(1&t&&(s.TgZ(0,"td",23),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",t.userExtSource.login," ")}}function Zv(t,e){1&t&&(s.TgZ(0,"th",22),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,s.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))," "))}function Gv(t,e){if(1&t&&(s.TgZ(0,"td",25),s._uU(1),s.ALo(2,"date"),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",s.xi3(2,1,t.userExtSource.lastAccess,"d.M.y H:mm:ss")," ")}}function Xv(t,e){1&t&&s._UZ(0,"tr",26)}const Vv=function(t,e){return["/admin","users",t,"identities",e]};function $v(t,e){if(1&t&&s._UZ(0,"tr",27),2&t){const t=e.$implicit,i=s.oxw();s.ekj("cursor-pointer",!i.disableRouting)("disable-outline",i.disableRouting),s.Q6J("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:s.WLB(6,Vv,i.userId,t.userExtSource.id))("routerLink",i.disableRouting?null:s.WLB(9,Vv,i.userId,t.userExtSource.id))}}function Jv(t,e){1&t&&(s.TgZ(0,"app-alert",28),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Qv(t,e){1&t&&(s.TgZ(0,"app-alert",28),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,s.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}let tT=(()=>{class t{constructor(t,e){this.route=t,this.authResolver=e,this.selection=new co,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSizeOptions=ig}set matSort(t){this.sort=t,this.setDataSource()}ngOnInit(){this.disableRouting||this.route.parent.params.subscribe(t=>{this.userId=t.userId}),this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new y_(this.userExtSources),this.setDataSource()}getDataForColumn(t,e){switch(e){case"id":return t.userExtSource.id.toString();case"mail":{const e=t.attributes.find(t=>"mail"===t.friendlyName);return e?e.value.toString():"N/A"}case"extSourceName":return t.userExtSource.extSource.name;case"login":return t.userExtSource.login;case"lastAccess":return t.userExtSource.lastAccess.split(".")[0];default:return t[e]}}exportData(t){ug(cg(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>ag(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>rg(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}checkboxLabel(t){return`${this.selection.isSelected(t.userExtSource)?"deselect":"select"} row ${t.userExtSource.id+1}`}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Qe),s.Y36(rt))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(t,e){if(1&t&&(s.Gf(mg,7),s.Gf(kv,7)),2&t){let t;s.iGM(t=s.CRH())&&(e.child=t.first),s.iGM(t=s.CRH())&&(e.matSort=t.first)}},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},features:[s.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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,Iv,1,0,"th",4),s.YNc(5,qv,5,10,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,Bv,4,5,"th",7),s.YNc(8,Hv,2,1,"td",8),s.BQk(),s.ynx(9,9),s.YNc(10,Yv,4,5,"th",10),s.YNc(11,jv,3,3,"td",8),s.BQk(),s.ynx(12,11),s.YNc(13,Fv,4,5,"th",7),s.YNc(14,Wv,2,1,"td",8),s.BQk(),s.ynx(15,12),s.YNc(16,Uv,4,5,"th",7),s.YNc(17,Kv,2,1,"td",8),s.BQk(),s.ynx(18,13),s.YNc(19,Zv,4,5,"th",7),s.YNc(20,Gv,3,4,"td",14),s.BQk(),s.YNc(21,Xv,1,0,"tr",15),s.YNc(22,$v,1,12,"tr",16),s.qZA(),s.qZA(),s.qZA(),s.YNc(23,Jv,3,3,"app-alert",17),s.YNc(24,Qv,4,5,"app-alert",17)),2&t&&(s.Q6J("hidden",0===e.userExtSources.length||0===e.dataSource.filteredData.length),s.xp6(1),s.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),s.xp6(1),s.Q6J("dataSource",e.dataSource),s.xp6(19),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.userExtSources.length),s.xp6(1),s.Q6J("ngIf",0===e.userExtSources.length))},directives:[mg,c_,kv,h_,l_,u_,f_,g_,n.O5,d_,p_,$p,vA,Ov,m_,__,Pv,vn,$g],pipes:[eh,Og,Nv,n.uU],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),t})();function eT(t,e){1&t&&s._UZ(0,"mat-spinner",3)}function iT(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"h1",8),s._uU(2),s.ALo(3,"translate"),s.ALo(4,"customTranslate"),s.qZA(),s.TgZ(5,"button",5),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).addIdentity()}),s._uU(6),s.ALo(7,"translate"),s.ALo(8,"customTranslate"),s.qZA(),s.TgZ(9,"button",6),s.NdJ("click",function(){s.CHM(t);const e=s.oxw(2);return e.removeIdentity(e.certSelection)}),s._uU(10),s.ALo(11,"translate"),s.ALo(12,"customTranslate"),s.qZA(),s._UZ(13,"perun-web-apps-user-ext-sources-list",11),s.qZA()}if(2&t){const t=s.oxw(2);s.xp6(2),s.Oqu(s.lcZ(3,10,s.lcZ(4,12,"IDENTITIES.CERT"))),s.xp6(4),s.hij(" ",s.lcZ(7,14,s.lcZ(8,16,"IDENTITIES.ADD"))," "),s.xp6(3),s.Q6J("disabled",0===t.certSelection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(11,18,s.lcZ(12,20,"IDENTITIES.REMOVE"))," "),s.xp6(3),s.Q6J("userExtSources",t.certExtSources)("selection",t.certSelection)("extSourceNameHeader",t.extSourceNameCert)("loginHeader",t.loginCert)("displayedColumns",t.displayedColumnsCert)("disableRouting",!0)}}function nT(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"h1",4),s._uU(2),s.ALo(3,"translate"),s.ALo(4,"customTranslate"),s.qZA(),s.TgZ(5,"button",5),s.NdJ("click",function(){return s.CHM(t),s.oxw().addIdentity()}),s._uU(6),s.ALo(7,"translate"),s.ALo(8,"customTranslate"),s.qZA(),s.TgZ(9,"button",6),s.NdJ("click",function(){s.CHM(t);const e=s.oxw();return e.removeIdentity(e.idpSelection)}),s._uU(10),s.ALo(11,"translate"),s.ALo(12,"customTranslate"),s.qZA(),s._UZ(13,"perun-web-apps-user-ext-sources-list",7),s.YNc(14,iT,14,22,"div",2),s.TgZ(15,"h1",8),s._uU(16),s.ALo(17,"translate"),s.ALo(18,"customTranslate"),s.TgZ(19,"mat-icon",9),s.ALo(20,"translate"),s.ALo(21,"customTranslate"),s._uU(22," info_outline "),s.qZA(),s.qZA(),s._UZ(23,"perun-web-apps-user-ext-sources-list",10),s.qZA()}if(2&t){const t=s.oxw();s.xp6(2),s.Oqu(s.lcZ(3,17,s.lcZ(4,19,"IDENTITIES.IDP"))),s.xp6(4),s.hij(" ",s.lcZ(7,21,s.lcZ(8,23,"IDENTITIES.ADD"))," "),s.xp6(3),s.Q6J("disabled",0===t.idpSelection.selected.length),s.xp6(1),s.hij(" ",s.lcZ(11,25,s.lcZ(12,27,"IDENTITIES.REMOVE"))," "),s.xp6(3),s.Q6J("userExtSources",t.idpExtSources)("selection",t.idpSelection)("displayedColumns",t.displayedColumnsIdp)("loginHeader",t.loginIdp)("disableRouting",!0),s.xp6(1),s.Q6J("ngIf",t.displayCertificates),s.xp6(2),s.hij(" ",s.lcZ(17,29,s.lcZ(18,31,"IDENTITIES.OTHER"))," "),s.xp6(3),s.Q6J("matTooltip",s.lcZ(20,33,s.lcZ(21,35,"IDENTITIES.OTHER_TOOLTIP"))),s.xp6(4),s.Q6J("userExtSources",t.otherExtSources)("selection",t.otherSelection)("extSourceNameHeader",t.extSourceNameOther)("displayedColumns",t.displayedColumnsOther)("disableRouting",!0)}}let sT=(()=>{class t{constructor(t,e,i,n,s){this.usersManagerService=t,this.storage=e,this.registrarManagerService=i,this.dialog=n,this.attributesManagerService=s,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.idpSelection=new co(!0,[]),this.certSelection=new co(!0,[]),this.otherSelection=new co(!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","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(t=>{let e=t.length;t.forEach(t=>{this.attributesManagerService.getUserExtSourceAttributeByName(t.userExtSource.id,"urn:perun:ues:attribute-def:def:sourceIdPName").subscribe(i=>{i&&i.value?(t.userExtSource.extSource.name=i.value,e--,this.loading=0!==e,this.addToList(t)):this.attributesManagerService.getUserExtSourceAttributeByName(t.userExtSource.id,"urn:perun:ues:attribute-def:def:IdPOrganizationName").subscribe(i=>{e--,i&&i.value&&(t.userExtSource.extSource.name=i.value),this.loading=0!==e,this.addToList(t)})})})})}addIdentity(){this.registrarManagerService.getConsolidatorToken().subscribe(t=>{const e=this.storage.getPerunPrincipal().extSourceType,i=this.storage.get("consolidator_base_url");window.location.href=`${i}${e&&e.endsWith("X509")?"cert":"fed"}-ic/ic/?target_url=${window.location.href}&token=${t}`})}removeIdentity(t){const e=ng();e.width="600px",e.data={theme:"user-theme",userId:this.userId,extSources:t.selected},this.dialog.open(L_,e).afterClosed().subscribe(e=>{e&&(t.clear(),this.refreshTables())})}addToList(t){t.userExtSource.extSource.type.endsWith("Idp")?this.idpExtSources.push(t):t.userExtSource.extSource.type.endsWith("X509")?this.certExtSources.push(t):this.otherExtSources.push(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(J),s.Y36(Kn),s.Y36(V),s.Y36(Ll),s.Y36(U))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-identities-page"]],decls:3,vars:2,consts:[[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"page-title"],["mat-flat-button","","color","accent",1,"action-button",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(t,e){1&t&&(s.TgZ(0,"div",0),s.YNc(1,eT,1,0,"mat-spinner",1),s.YNc(2,nT,24,37,"div",2),s.qZA()),2&t&&(s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[n.O5,am,uh,tT,Jf,$p],pipes:[eh,Og],styles:[".center-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),t})();const oT=["panel"];function rT(t,e){if(1&t&&(s.TgZ(0,"div",0,1),s.Hsn(2),s.qZA()),2&t){const t=e.id,i=s.oxw();s.Q6J("id",i.id)("ngClass",i._classList),s.uIk("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(t))}}const aT=["*"];let cT=0;class uT{constructor(t,e){this.source=t,this.option=e}}class lT{}const hT=ku(lT),dT=new s.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}});let pT=(()=>{class t extends hT{constructor(t,e,i,n){super(),this._changeDetectorRef=t,this._elementRef=e,this._activeOptionChanges=Ft.w.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new s.vpe,this.opened=new s.vpe,this.closed=new s.vpe,this.optionActivated=new s.vpe,this._classList={},this.id="mat-autocomplete-"+cT++,this.inertGroups=(null==n?void 0:n.SAFARI)||!1,this._autoActiveFirstOption=!!i.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(t){this._autoActiveFirstOption=Zn(t)}set classList(t){this._classList=t&&t.length?function(t,e=/\s+/){const i=[];if(null!=t){const n=Array.isArray(t)?t:`${t}`.split(e);for(const t of n){const e=`${t}`.trim();e&&i.push(e)}}return i}(t).reduce((t,e)=>(t[e]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new Ar(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){const e=new uT(this,t);this.optionSelected.emit(e)}_getPanelAriaLabelledby(t){return this.ariaLabel?null:this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_setVisibilityClasses(t){t[this._visibleClass]=this.showPanel,t[this._hiddenClass]=!this.showPanel}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(dT),s.Y36(Ws))},t.\u0275dir=s.lG2({type:t,viewQuery:function(t,e){if(1&t&&(s.Gf(s.Rgc,7),s.Gf(oT,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.template=t.first),s.iGM(t=s.CRH())&&(e.panel=t.first)}},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[s.qOj]}),t})(),fT=(()=>{class t extends pT{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,i){if(1&t&&(s.Suo(i,ol,5),s.Suo(i,ul,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.optionGroups=t),s.iGM(t=s.CRH())&&(e.options=t)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[s._Bn([{provide:tl,useExisting:t}]),s.qOj],ngContentSelectors:aT,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(s.F$t(),s.YNc(0,rT,3,4,"ng-template"))},directives:[n.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}\n"],encapsulation:2,changeDetection:0}),t})();const gT=new s.OlP("mat-autocomplete-scroll-strategy"),mT={provide:gT,deps:[er],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},_T={provide:Vh,useExisting:(0,s.Gpc)(()=>yT),multi:!0};let bT=(()=>{class t{constructor(t,e,i,n,s,o,r,a,c,u,l){this._element=t,this._overlay=e,this._viewContainerRef=i,this._zone=n,this._changeDetectorRef=s,this._dir=r,this._formField=a,this._document=c,this._viewportRuler=u,this._defaults=l,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Ft.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new lt.xQ,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=yt(()=>this.autocomplete&&this.autocomplete.options?(0,ko.T)(...this.autocomplete.options.map(t=>t.onSelectionChange)):this._zone.onStable.pipe((0,vt.q)(1),(0,Mt.w)(()=>this.optionSelections))),this._scrollStrategy=o}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(t){this._autocompleteDisabled=Zn(t)}ngAfterViewInit(){const t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular(()=>t.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const t=this._getWindow();void 0!==t&&t.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.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,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,ko.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,at.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,at.h)(()=>this._overlayAttached)):(0,ut.of)()).pipe((0,At.U)(t=>t instanceof al?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,ko.T)(es(this._document,"click"),es(this._document,"auxclick"),es(this._document,"touchend")).pipe((0,at.h)(t=>{const e=this._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,i=this._formField?this._formField._elementRef.nativeElement:null,n=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&e!==this._element.nativeElement&&(!i||!i.contains(e))&&(!n||!n.contains(e))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(e)}))}writeValue(t){Promise.resolve(null).then(()=>this._setTriggerValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){const e=t.keyCode;if(27!==e||So(t)||t.preventDefault(),this.activeOption&&13===e&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){const i=this.autocomplete._keyManager.activeItem,n=38===e||40===e;this.panelOpen||9===e?this.autocomplete._keyManager.onKeydown(t):n&&this._canOpen()&&this.openPanel(),(n||this.autocomplete._keyManager.activeItem!==i)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(t){let e=t.target,i=e.value;"number"===e.type&&(i=""==i?null:parseFloat(i)),this._previousValue!==i&&(this._previousValue=i,this._onChange(i),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(t=!1){this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const t=this._zone.onStable.pipe((0,vt.q)(1)),e=this.autocomplete.options.changes.pipe((0,Yt.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,mf.g)(0));return(0,ko.T)(t,e).pipe((0,Mt.w)(()=>{const t=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),t!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),(0,vt.q)(1)).subscribe(t=>this._setValueAndClose(t))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(t){const e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,i=null!=e?e:"";this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}_setValueAndClose(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()}_clearPreviousSelectedOption(t){this.autocomplete.options.forEach(e=>{e!==t&&e.selected&&e.deselect()})}_attachOverlay(){var t;null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!eo(this._element.nativeElement));let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new yo(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,e.keydownEvents().subscribe(t=>{(27===t.keyCode&&!So(t)||38===t.keyCode&&So(t,"altKey"))&&(this._resetActiveItem(),this._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),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 i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var t;return new Io({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(t=this._defaults)||void 0===t?void 0:t.overlayPanelClass})}_getOverlayPosition(){const t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){const e=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=this._aboveClass,n=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:i},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:i}];let s;s="above"===this.position?n:"below"===this.position?e:[...e,...n],t.withPositions(s)}_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 t=this.autocomplete;t.autoActiveFirstOption?t._keyManager.setFirstItemActive():t._keyManager.setActiveItem(-1)}_canOpen(){const t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}_getWindow(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}_scrollToOption(t){const e=this.autocomplete,i=ll(t,e.options,e.optionGroups);if(0===t&&1===i)e._setScrollTop(0);else if(e.panel){const i=e.options.toArray()[t];if(i){const t=i._getHostElement(),n=hl(t.offsetTop,t.offsetHeight,e._getScrollTop(),e.panel.nativeElement.offsetHeight);e._setScrollTop(n)}}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(er),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(s.sBO),s.Y36(gT),s.Y36(so,8),s.Y36(Uh,9),s.Y36(n.K0,8),s.Y36(fo),s.Y36(dT,8))},t.\u0275dir=s.lG2({type:t,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[s.TTD]}),t})(),yT=(()=>{class t extends bT{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&s.NdJ("focusin",function(){return e._handleFocus()})("blur",function(){return e._onTouched()})("input",function(t){return e._handleInput(t)})("keydown",function(t){return e._handleKeydown(t)}),2&t&&s.uIk("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[s._Bn([_T]),s.qOj]}),t})(),wT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[mT],imports:[[ar,dl,Mu,n.ez],go,dl,Mu]}),t})(),AT=(()=>{class t{transform(t){return t&&t.value?t.value:"never"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"validateExpiration",type:t,pure:!0}),t})();function MT(t,e){1&t&&s._UZ(0,"th",17)}function vT(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",18),s.TgZ(1,"mat-checkbox",19),s.NdJ("change",function(e){const i=s.CHM(t).$implicit,n=s.oxw();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),s.ALo(2,"validateExpiration"),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))("disabled","never"===s.lcZ(2,3,t.expirationAttribute))}}function TT(t,e){1&t&&(s.TgZ(0,"th",20),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,s.lcZ(3,3,"MEMBERSHIP_LIST.NAME"))," "))}function kT(t,e){if(1&t&&(s.TgZ(0,"td",21),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.entity.name)}}function LT(t,e){1&t&&(s.TgZ(0,"th",20),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,s.lcZ(3,3,"MEMBERSHIP_LIST.DESCRIPTION"))," "))}function CT(t,e){if(1&t&&(s.TgZ(0,"td",22),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.entity.description)}}function ST(t,e){1&t&&(s.TgZ(0,"th",23),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,s.lcZ(3,3,"MEMBERSHIP_LIST.EXPIRATION"))," "))}function ET(t,e){if(1&t&&(s.TgZ(0,"td",22),s._uU(1),s.ALo(2,"validateExpiration"),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",s.lcZ(2,1,t.expirationAttribute)," ")}}function zT(t,e){1&t&&s._UZ(0,"th",20)}function xT(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",22),s.TgZ(1,"button",24),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().extend(e)}),s.ALo(2,"validateExpiration"),s._uU(3),s.ALo(4,"translate"),s.ALo(5,"customTranslate"),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(1),s.Q6J("disabled","never"===s.lcZ(2,2,t.expirationAttribute)),s.xp6(2),s.hij(" ",s.lcZ(4,4,s.lcZ(5,6,"MEMBERSHIP_LIST.EXTEND"))," ")}}function OT(t,e){1&t&&s._UZ(0,"tr",25)}function RT(t,e){1&t&&s._UZ(0,"tr",26)}function DT(t,e){1&t&&(s.TgZ(0,"app-alert",27),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"MEMBERSHIP_LIST.NO_MEMBERSHIPS"))))}let PT=(()=>{class t{constructor(){this.members=[],this.searchString="",this.selection=new co(!1,[]),this.displayedColumns=["checkbox","name","description","expirationAttribute","extend"],this.filterValue="",this.extendMembership=new s.vpe,this.pageSizeOptions=ig}set matSort(t){this.sort=t,this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}ngOnChanges(){this.dataSource=new y_(this.members),this.setDataSource()}getDataForColumn(t,e){switch(e){case"name":return t.entity.name;case"description":return"description"in t.entity?t.entity.description:"";case"expirationAttribute":return t.expirationAttribute&&t.expirationAttribute.value?t.expirationAttribute.value:"never";default:return""}}exportData(t){ug(cg(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>ag(t,e,this.displayedColumns,this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>rg(t,e,this.getDataForColumn,this),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}checkboxLabel(t){return`${this.selection.isSelected(t)?"deselect":"select"} row ${t.entity.id+1}`}extend(t){this.extendMembership.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-membership-list"]],viewQuery:function(t,e){if(1&t&&(s.Gf(kv,7),s.Gf(mg,7)),2&t){let t;s.iGM(t=s.CRH())&&(e.matSort=t.first),s.iGM(t=s.CRH())&&(e.child=t.first)}},inputs:{members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",filterValue:"filterValue"},outputs:{extendMembership:"extendMembership"},features:[s.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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,MT,1,0,"th",4),s.YNc(5,vT,3,5,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,TT,4,5,"th",7),s.YNc(8,kT,2,1,"td",8),s.BQk(),s.ynx(9,9),s.YNc(10,LT,4,5,"th",7),s.YNc(11,CT,2,1,"td",10),s.BQk(),s.ynx(12,11),s.YNc(13,ST,4,5,"th",12),s.YNc(14,ET,3,3,"td",10),s.BQk(),s.ynx(15,13),s.YNc(16,zT,1,0,"th",7),s.YNc(17,xT,6,8,"td",10),s.BQk(),s.YNc(18,OT,1,0,"tr",14),s.YNc(19,RT,1,0,"tr",15),s.qZA(),s.qZA(),s.qZA(),s.YNc(20,DT,4,5,"app-alert",16)),2&t&&(s.Q6J("hidden",!e.dataSource.filteredData.length),s.xp6(1),s.Q6J("dataLength",e.dataSource.filteredData.length)("tableId",e.tableId)("pageSizeOptions",e.pageSizeOptions),s.xp6(1),s.Q6J("dataSource",e.dataSource),s.xp6(16),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",!e.dataSource.filteredData.length))},directives:[mg,c_,kv,h_,l_,u_,f_,g_,n.O5,d_,p_,vA,Ov,uh,m_,__,$g],pipes:[AT,eh,Og],styles:[""]}),t})();function NT(t,e){if(1&t&&(s.TgZ(0,"mat-option",13),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.hij(" ",t.name," ")}}function IT(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-form-field",7),s.TgZ(1,"mat-label"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s._UZ(4,"input",8),s.ALo(5,"translate"),s.ALo(6,"customTranslate"),s.TgZ(7,"mat-autocomplete",9,10),s.NdJ("optionSelected",function(e){return s.CHM(t),s.oxw().filterByVo(e)}),s.TgZ(9,"mat-option",11),s._uU(10),s.ALo(11,"translate"),s.ALo(12,"customTranslate"),s.qZA(),s.YNc(13,NT,2,2,"mat-option",12),s.ALo(14,"async"),s.qZA(),s.qZA()}if(2&t){const t=s.MAs(8),e=s.oxw();s.xp6(2),s.Oqu(s.lcZ(3,7,"GROUPS.SELECT_VO")),s.xp6(2),s.s9C("placeholder",s.lcZ(5,9,s.lcZ(6,11,"GROUPS.SELECT_VO"))),s.Q6J("formControl",e.myControl)("matAutocomplete",t),s.xp6(3),s.Q6J("displayWith",e.displayFn),s.xp6(3),s.Oqu(s.lcZ(11,13,s.lcZ(12,15,"GROUPS.ALL"))),s.xp6(3),s.Q6J("ngForOf",s.lcZ(14,17,e.filteredVos))}}function qT(t,e){1&t&&s._UZ(0,"mat-spinner",14)}function BT(t,e){1&t&&(s.TgZ(0,"app-alert",15),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"GROUPS.NO_GROUPS"))))}const HT=function(){return["name","description","expirationAttribute","extend"]};function YT(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"h4",16),s._uU(2),s.ALo(3,"translate"),s.ALo(4,"customTranslate"),s.qZA(),s.TgZ(5,"perun-web-apps-membership-list",17),s.NdJ("extendMembership",function(e){return s.CHM(t),s.oxw().extendMembership(e)}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(2),s.Oqu(s.lcZ(3,4,s.lcZ(4,6,"GROUPS.MEMBER_GROUPS"))),s.xp6(3),s.Q6J("members",t.userMemberships)("selection",t.selection)("displayedColumns",s.DdM(8,HT))}}const jT=function(){return["name","description"]};function FT(t,e){if(1&t&&(s.TgZ(0,"div",18),s.TgZ(1,"h4",16),s._uU(2),s.ALo(3,"translate"),s.ALo(4,"customTranslate"),s.qZA(),s._UZ(5,"perun-web-apps-membership-list",19),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.Oqu(s.lcZ(3,3,s.lcZ(4,5,"GROUPS.ADMINS_GROUPS"))),s.xp6(3),s.Q6J("members",t.adminMemberships)("displayedColumns",s.DdM(7,jT))}}let WT=(()=>{class t{constructor(t,e,i,n,s,o){this.usersService=t,this.memberService=e,this.groupService=i,this.store=n,this.vosManagerService=s,this.attributesManagerService=o,this.loading=!1,this.vos=[],this.myControl=new Wd,this.selection=new co(!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(t=>{this.vos=t,this.filteredVos=this.myControl.valueChanges.pipe(kt(""),(0,At.U)(t=>this._filter(t))),this.getAllGroups()})}_filter(t){const e="string"==typeof t?t.toLowerCase():t.name.toLowerCase;return this.vos.filter(t=>t.name.toLowerCase().includes(e))}getAllGroups(){this.loading=!0;let t=0,e=0;this.userMemberships=[],this.adminMemberships=[];const i=this.store.getPerunPrincipal().roles.SELF.Member;i.length?e=i.length:this.loading=!1,i.forEach(i=>{e--,this.groupService.getMemberGroups(i).subscribe(n=>{t+=n.length,this.loading=0===t&&0!==e,n.forEach(e=>{this.attributesManagerService.getMemberGroupAttributes(i,e.id).subscribe(i=>{t--,this.userMemberships.push({entity:e,expirationAttribute:i.find(t=>"groupMembershipExpiration"===t.friendlyName)}),this.loading=0!==t})})})}),this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(t=>{t.forEach(t=>{this.adminMemberships.push({entity:t,expirationAttribute:null})})})}displayFn(t){return t?t.name:null}filterByVo(t){if("all"===t.option.value)this.getAllGroups();else{this.userMemberships=[],this.adminMemberships=[],this.loading=!0;const e=t.option.value;this.memberService.getMemberByUser(e.id,this.userId).subscribe(t=>{this.groupService.getMemberGroups(t.id).subscribe(e=>{let i=e.length;this.loading=0!==i,e.forEach(e=>{this.attributesManagerService.getMemberGroupAttributes(t.id,e.id).subscribe(t=>{i--,this.userMemberships.push({entity:e,expirationAttribute:t.find(t=>"groupMembershipExpiration"===t.friendlyName)}),this.loading=0!==i})})})}),this.usersService.getGroupsInVoWhereUserIsAdmin(this.userId,e.id).subscribe(t=>{t.forEach(t=>{this.adminMemberships.push({entity:t,expirationAttribute:null})})})}}extendMembership(t){const e=this.store.get("registrar_base_url"),i=t.entity,n=this.vos.find(t=>t.id===i.voId).shortName;window.location.href=`${e}?vo=${n}&group=${t.entity.shortName}`}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(J),s.Y36(G),s.Y36(Z),s.Y36(Kn),s.Y36(tt),s.Y36(U))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.TgZ(4,"div",1),s.YNc(5,IT,15,19,"mat-form-field",2),s.YNc(6,qT,1,0,"mat-spinner",3),s.YNc(7,BT,4,5,"app-alert",4),s.YNc(8,YT,6,9,"div",5),s.YNc(9,FT,6,8,"div",6),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,6,s.lcZ(3,8,"GROUPS.TITLE"))),s.xp6(4),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.userMemberships.length&&!e.adminMemberships.length&&!e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading&&0!==e.userMemberships.length),s.xp6(1),s.Q6J("ngIf",!e.loading&&0!==e.adminMemberships.length))},directives:[n.O5,Kh,Nh,Wg,Qh,yT,Td,op,fT,ul,n.sg,am,$g,PT],pipes:[eh,Og,n.Ov],styles:[""]}),t})();function UT(t,e){if(1&t&&(s._UZ(0,"input",3),s.ALo(1,"translate")),2&t){const t=s.oxw();s.s9C("placeholder",s.lcZ(1,2,t.placeholder)),s.Q6J("formControl",t.formControl)}}function KT(t,e){if(1&t&&(s._UZ(0,"input",4),s.ALo(1,"translate")),2&t){const t=s.oxw();s.s9C("placeholder",s.lcZ(1,2,t.placeholder)),s.Q6J("formControl",t.formControl)}}let ZT=(()=>{class t{constructor(){this.filter=new s.vpe,this.autoFocus=!1,this.formControl=new Wd}ngOnInit(){this.formControl.valueChanges.subscribe(t=>{let e=t.trim();e=e.toLowerCase(),this.filter.emit(e)})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,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","",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(t,e){1&t&&(s.TgZ(0,"mat-form-field",0),s.YNc(1,UT,2,4,"input",1),s.YNc(2,KT,2,4,"input",2),s.qZA()),2&t&&(s.xp6(1),s.Q6J("ngIf",e.autoFocus),s.xp6(1),s.Q6J("ngIf",!e.autoFocus))},directives:[Kh,n.O5,Wg,Qh,Dv,Td,op],pipes:[eh],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:auto!important}"]}),t})(),GT=0;const XT=new s.OlP("CdkAccordion");let VT=(()=>{class t{constructor(){this._stateChanges=new lt.xQ,this._openCloseAllActions=new lt.xQ,this.id="cdk-accordion-"+GT++,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=Zn(t)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[s._Bn([{provide:XT,useExisting:t}]),s.TTD]}),t})(),$T=0,JT=(()=>{class t{constructor(t,e,i){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=i,this._openCloseAllSubscription=Ft.w.EMPTY,this.closed=new s.vpe,this.opened=new s.vpe,this.destroyed=new s.vpe,this.expandedChange=new s.vpe,this.id="cdk-accordion-child-"+$T++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=i.listen((t,e)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===e&&this.id!==t&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(t){t=Zn(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(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(t){this._disabled=Zn(t)}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(t=>{this.disabled||(this.expanded=t)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(XT,12),s.Y36(s.sBO),s.Y36(uo))},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[s._Bn([{provide:XT,useValue:void 0}])]}),t})(),QT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();const tk=["body"];function ek(t,e){}const ik=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],nk=["mat-expansion-panel-header","*","mat-action-row"];function sk(t,e){if(1&t&&s._UZ(0,"span",2),2&t){const t=s.oxw();s.Q6J("@indicatorRotate",t._getExpandedState())}}const ok=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],rk=["mat-panel-title","mat-panel-description","*"],ak=new s.OlP("MAT_ACCORDION"),ck={indicatorRotate:Yr("indicatorRotate",[Kr("collapsed, void",Ur({transform:"rotate(0deg)"})),Kr("expanded",Ur({transform:"rotate(180deg)"})),Gr("expanded <=> collapsed, void => collapsed",jr("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),bodyExpansion:Yr("bodyExpansion",[Kr("collapsed, void",Ur({height:"0px",visibility:"hidden"})),Kr("expanded",Ur({height:"*",visibility:"visible"})),Gr("expanded <=> collapsed, void => collapsed",jr("225ms cubic-bezier(0.4,0.0,0.2,1)"))])};let uk=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),lk=0;const hk=new s.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let dk=(()=>{class t extends JT{constructor(t,e,i,n,o,r,a){super(t,e,i),this._viewContainerRef=n,this._animationMode=r,this._hideToggle=!1,this.afterExpand=new s.vpe,this.afterCollapse=new s.vpe,this._inputChanges=new lt.xQ,this._headerId="mat-expansion-panel-header-"+lk++,this._bodyAnimationDone=new lt.xQ,this.accordion=t,this._document=o,this._bodyAnimationDone.pipe(_s((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{"void"!==t.fromState&&("expanded"===t.toState?this.afterExpand.emit():"collapsed"===t.toState&&this.afterCollapse.emit())}),a&&(this.hideToggle=a.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=Zn(t)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}_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.opened.pipe(kt(null),(0,at.h)(()=>this.expanded&&!this._portal),(0,vt.q)(1)).subscribe(()=>{this._portal=new yo(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(ak,12),s.Y36(s.sBO),s.Y36(uo),s.Y36(s.s_b),s.Y36(n.K0),s.Y36(lu,8),s.Y36(hk,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,uk,5),2&t){let t;s.iGM(t=s.CRH())&&(e._lazyContent=t.first)}},viewQuery:function(t,e){if(1&t&&s.Gf(tk,5),2&t){let t;s.iGM(t=s.CRH())&&(e._body=t.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&s.ekj("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[s._Bn([{provide:ak,useValue:void 0}]),s.qOj,s.TTD],ngContentSelectors:nk,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(s.F$t(ik),s.Hsn(0),s.TgZ(1,"div",0,1),s.NdJ("@bodyExpansion.done",function(t){return e._bodyAnimationDone.next(t)}),s.TgZ(3,"div",2),s.Hsn(4,1),s.YNc(5,ek,0,0,"ng-template",3),s.qZA(),s.Hsn(6,2),s.qZA()),2&t&&(s.xp6(1),s.Q6J("@bodyExpansion",e._getExpandedState())("id",e.id),s.uIk("aria-labelledby",e._headerId),s.xp6(4),s.Q6J("cdkPortalOutlet",e._portal))},directives:[vo],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-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 button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[ck.bodyExpansion]},changeDetection:0}),t})(),pk=(()=>{class t{constructor(t,e,i,n,s,o){this.panel=t,this._element=e,this._focusMonitor=i,this._changeDetectorRef=n,this._animationMode=o,this._parentChangeSubscription=Ft.w.EMPTY;const r=t.accordion?t.accordion._stateChanges.pipe((0,at.h)(t=>!(!t.hideToggle&&!t.togglePosition))):bt.E;this._parentChangeSubscription=(0,ko.T)(t.opened,t.closed,r,t._inputChanges.pipe((0,at.h)(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe((0,at.h)(()=>t._containsFocus())).subscribe(()=>i.focusVia(e,"program")),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.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 t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}_keydown(t){switch(t.keyCode){case 32:case 13:So(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t,e){t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(t=>{t&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(dk,1),s.Y36(s.SBq),s.Y36(Pr),s.Y36(s.sBO),s.Y36(hk,8),s.Y36(lu,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e._toggle()})("keydown",function(t){return e._keydown(t)}),2&t&&(s.uIk("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),s.Udp("height",e._getHeaderHeight()),s.ekj("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:rk,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(s.F$t(ok),s.TgZ(0,"span",0),s.Hsn(1),s.Hsn(2,1),s.Hsn(3,2),s.qZA(),s.YNc(4,sk,1,1,"span",1)),2&t&&(s.xp6(4),s.Q6J("ngIf",e._showToggle()))},directives:[n.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}[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 .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[ck.indicatorRotate]},changeDetection:0}),t})(),fk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),gk=(()=>{class t extends VT{constructor(){super(...arguments),this._ownHeaders=new s.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(t){this._hideToggle=Zn(t)}ngAfterContentInit(){this._headers.changes.pipe(kt(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Mr(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(t){this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["mat-accordion"]],contentQueries:function(t,e,i){if(1&t&&s.Suo(i,pk,5),2&t){let t;s.iGM(t=s.CRH())&&(e._headers=t)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[s._Bn([{provide:ak,useExisting:t}]),s.qOj]}),t})(),mk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,Mu,QT,To]]}),t})();function _k(t,e){1&t&&(s.TgZ(0,"mat-icon",1),s.ALo(1,"translate"),s._uU(2," visibility\n"),s.qZA()),2&t&&s.s9C("matTooltip",s.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}let bk=(()=>{class t{constructor(){this.recentIds=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&s.YNc(0,_k,3,3,"mat-icon",0),2&t&&s.Q6J("ngIf",e.recentIds.indexOf(e.id)>-1)},directives:[n.O5,Jf,$p],pipes:[eh],styles:[".disabled-icon[_ngcontent-%COMP%]{color:rgba(0,0,0,.26)}"]}),t})();function yk(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"span",3),s.NdJ("click",function(){return s.CHM(t),s.oxw().changeStatus()}),s.ALo(1,"translate"),s.TgZ(2,"mat-icon",4),s._uU(3,"check_circle_outline"),s.qZA(),s.qZA()}2&t&&s.s9C("matTooltip",s.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE"))}function wk(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"span",3),s.NdJ("click",function(){return s.CHM(t),s.oxw().changeStatus()}),s.ALo(1,"translate"),s.TgZ(2,"mat-icon",5),s._uU(3,"block"),s.qZA(),s.qZA()}2&t&&s.s9C("matTooltip",s.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE"))}function Ak(t,e){if(1&t&&(s.TgZ(0,"span",6),s.ALo(1,"translate"),s.TgZ(2,"mat-icon",7),s._uU(3,"report"),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.hYB("matTooltip","",s.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",t.failureCause,"")}}function Mk(t,e){1&t&&(s.TgZ(0,"span",6),s.ALo(1,"translate"),s.TgZ(2,"mat-icon",8),s._uU(3,"autorenew"),s.qZA(),s.qZA()),2&t&&s.s9C("matTooltip",s.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}let vk=(()=>{class t{constructor(t){this.dialog=t,this.status="",this.statusChange=new s.vpe}changeStatus(){const t=ng();t.width="500px",t.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(pb,t).afterClosed().subscribe(t=>{t&&this.statusChange.emit()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Ll))},t.\u0275cmp=s.Xpm({type:t,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"],["matTooltipPosition","above",3,"matTooltip"],[1,"red"],[1,"black"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.YNc(1,yk,4,3,"span",1),s.YNc(2,wk,4,3,"span",1),s.YNc(3,Ak,4,4,"span",2),s.YNc(4,Mk,4,3,"span",2),s.qZA()),2&t&&(s.xp6(1),s.Q6J("ngIf","ACTIVE"===e.status),s.xp6(1),s.Q6J("ngIf","INACTIVE"===e.status),s.xp6(1),s.Q6J("ngIf","FAILED"===e.status),s.xp6(1),s.Q6J("ngIf","PROCESSING"===e.status))},directives:[n.O5,$p,Jf],pipes:[eh],styles:[""]}),t})(),Tk=(()=>{class t{transform(t){if(null==t)return null;let e="";return t.forEach(function(t){e=e.concat(t.tagName)}),e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"resourceTagsToString",type:t,pure:!0}),t})(),kk=(()=>{class t{transform(t,e){return e?`/organizations/${t.voId}/resources/${t.id}`:`/facilities/${t.facilityId}/resources/${t.id}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"getResourceRoute",type:t,pure:!0}),t})();function Lk(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"th",22),s.TgZ(1,"mat-checkbox",23),s.NdJ("change",function(e){s.CHM(t);const i=s.oxw();return e?i.masterToggle():null}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.Q6J("aria-label",t.checkboxLabel())("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function Ck(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",24),s.TgZ(1,"span",25),s.ALo(2,"translate"),s.TgZ(3,"mat-checkbox",26),s.NdJ("change",function(e){const i=s.CHM(t).$implicit,n=s.oxw();return e?n.itemSelectionToggle(i):null})("click",function(t){return t.stopPropagation()}),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.s9C("matTooltip",s.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE")),s.Q6J("matTooltipPosition","above")("matTooltipDisabled",!i.disableSelect(t)),s.xp6(2),s.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))("disabled",i.disableSelect(t))}}function Sk(t,e){1&t&&(s.TgZ(0,"th",27),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")," "))}function Ek(t,e){if(1&t&&(s.TgZ(0,"td",28),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.id)}}function zk(t,e){1&t&&s._UZ(0,"th",29)}function xk(t,e){if(1&t&&(s.TgZ(0,"td",30),s._UZ(1,"perun-web-apps-recently-viewed-icon",31),s.qZA()),2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.Q6J("recentIds",i.recentIds)("id",t.id)}}function Ok(t,e){1&t&&s._UZ(0,"th",29)}function Rk(t,e){1&t&&(s.TgZ(0,"mat-icon",33),s.ALo(1,"translate"),s._uU(2,"account_tree"),s.qZA()),2&t&&s.Q6J("matTooltip",s.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE"))}function Dk(t,e){if(1&t&&(s.TgZ(0,"td",30),s.YNc(1,Rk,3,3,"mat-icon",32),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Q6J("ngIf",t.sourceGroupId)}}function Pk(t,e){1&t&&(s.TgZ(0,"th",27),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")," "))}function Nk(t,e){if(1&t&&(s.TgZ(0,"td",30),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.name)}}function Ik(t,e){1&t&&(s.TgZ(0,"th",27),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")," "))}function qk(t,e){if(1&t&&(s.TgZ(0,"td",30),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.vo.name)}}function Bk(t,e){1&t&&(s.TgZ(0,"th",27),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")," "))}function Hk(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",30),s.TgZ(1,"perun-web-apps-group-resource-status",34),s.NdJ("mouseenter",function(){return s.CHM(t),s.oxw().disabledRouting=!0})("mouseleave",function(){s.CHM(t);const e=s.oxw();return e.disabledRouting=e.disableRouting})("statusChange",function(){return s.CHM(t),s.oxw().refreshTable.emit()}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.Q6J("theme","group-theme")("resourceId",t.id)("groupId",i.groupId)("failureCause",t.failureCause)("status",t.status)}}function Yk(t,e){1&t&&(s.TgZ(0,"th",27),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")," "))}function jk(t,e){if(1&t&&(s.TgZ(0,"td",30),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.facility.name)}}function Fk(t,e){1&t&&(s.TgZ(0,"th",27),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")," "))}function Wk(t,e){if(1&t&&(s.TgZ(0,"td",30),s._uU(1),s.ALo(2,"resourceTagsToString"),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",s.lcZ(2,1,t.resourceTags)," ")}}function Uk(t,e){1&t&&(s.TgZ(0,"th",27),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")," "))}function Kk(t,e){if(1&t&&(s.TgZ(0,"td",30),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.description)}}function Zk(t,e){1&t&&s._UZ(0,"tr",35)}const Gk=function(t){return[t]};function Xk(t,e){if(1&t&&(s._UZ(0,"tr",36),s.ALo(1,"getResourceRoute"),s.ALo(2,"getResourceRoute")),2&t){const t=e.$implicit,i=s.oxw();s.ekj("cursor-pointer",!i.disableRouting)("disable-outline",i.disabledRouting),s.Q6J("perunWebAppsMiddleClickRouterLink",s.VKq(12,Gk,i.disabledRouting?null:s.xi3(1,6,t,i.routingVo)))("routerLink",i.disabledRouting?null:s.xi3(2,9,t,i.routingVo))}}function Vk(t,e){1&t&&(s.TgZ(0,"app-alert",37),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function $k(t,e){1&t&&(s.TgZ(0,"app-alert",37),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}let Jk=(()=>{class t{constructor(t,e){this.guiAuthResolver=t,this.tableCheckbox=e,this.resources=[],this.selection=new co(!0,[]),this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","indirectResourceAssigment","name","vo","status","facility","tags","description"],this.pageSizeOptions=ig,this.groupId=null,this.resourcesToDisableCheckbox=new Set,this.refreshTable=new s.vpe,this.allSelected=new s.vpe,this.removeAuth=!1,this.addAuth=!1,this.canBeSelected=t=>!this.disableSelect(t)}set matSort(t){this.sort=t}ngOnInit(){this.disabledRouting=this.disableRouting}ngOnChanges(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.setDataSource(),this.setAuth()}getDataForColumn(t,e,i){switch(e){case"id":return t.id.toString();case"vo":return t.vo.name;case"name":return t.name;case"facility":return t.facility.name;case"description":return t.description;case"recent":return i.recentIds&&i.recentIds.indexOf(t.id)>-1?"#".repeat(i.recentIds.indexOf(t.id)):t.name;case"tags":{if(!t.resourceTags)return t[e];let i="";return t.resourceTags.forEach(function(t){i=i.concat(t.tagName)}),i}case"status":return t.status;case"uuid":return t.uuid;default:return t[e]}}exportData(t){ug(cg(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.dataSource||(this.dataSource=new y_,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(t,e)=>ag(t,e,this.displayedColumns,this.getDataForColumn,this,!0),this.dataSource.sortData=(t,e)=>rg(t,e,this.getDataForColumn,this)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}isAllSelected(){const t=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(t),t}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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}setAuth(){const t=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce((e,i)=>e&&this.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",t.concat([i])),!0),this.addAuth=this.selection.selected.reduce((e,i)=>e&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",t.concat([i])),!0)}itemSelectionToggle(t){this.selection.toggle(t),this.setAuth()}disableSelect(t){return this.resourcesToDisableCheckbox.has(t.id)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(rt),s.Y36(Lg))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(t,e){if(1&t&&(s.Gf(kv,7),s.Gf(mg,7)),2&t){let t;s.iGM(t=s.CRH())&&(e.matSort=t.first),s.iGM(t=s.CRH())&&(e.child=t.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:[s.TTD],decls:37,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","status"],["matColumnDef","facility"],["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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,Lk,2,3,"th",4),s.YNc(5,Ck,4,8,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,Sk,3,3,"th",7),s.YNc(8,Ek,2,1,"td",8),s.BQk(),s.ynx(9,9),s.YNc(10,zk,1,0,"th",10),s.YNc(11,xk,2,2,"td",11),s.BQk(),s.ynx(12,12),s.YNc(13,Ok,1,0,"th",10),s.YNc(14,Dk,2,1,"td",11),s.BQk(),s.ynx(15,13),s.YNc(16,Pk,3,3,"th",7),s.YNc(17,Nk,2,1,"td",11),s.BQk(),s.ynx(18,14),s.YNc(19,Ik,3,3,"th",7),s.YNc(20,qk,2,1,"td",11),s.BQk(),s.ynx(21,15),s.YNc(22,Bk,3,3,"th",7),s.YNc(23,Hk,2,5,"td",11),s.BQk(),s.ynx(24,16),s.YNc(25,Yk,3,3,"th",7),s.YNc(26,jk,2,1,"td",11),s.BQk(),s.ynx(27,17),s.YNc(28,Fk,3,3,"th",7),s.YNc(29,Wk,3,3,"td",11),s.BQk(),s.ynx(30,18),s.YNc(31,Uk,3,3,"th",7),s.YNc(32,Kk,2,1,"td",11),s.BQk(),s.YNc(33,Zk,1,0,"tr",19),s.YNc(34,Xk,3,14,"tr",20),s.qZA(),s.qZA(),s.qZA(),s.YNc(35,Vk,3,3,"app-alert",21),s.YNc(36,$k,3,3,"app-alert",21)),2&t&&(s.Q6J("hidden",0===e.dataSource.filteredData.length||0===e.resources.length),s.xp6(1),s.Q6J("dataLength",e.dataSource.filteredData.length)("tableId",e.tableId)("pageSizeOptions",e.pageSizeOptions),s.xp6(1),s.Q6J("dataSource",e.dataSource),s.xp6(31),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.resources.length),s.xp6(1),s.Q6J("ngIf",0===e.resources.length))},directives:[mg,c_,kv,h_,l_,u_,f_,g_,n.O5,d_,vA,p_,$p,Ov,bk,Jf,vk,m_,__,Pv,vn,$g],pipes:[eh,Tk,kk],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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),t})();function Qk(t,e){1&t&&s._UZ(0,"mat-spinner",8)}const tL=function(){return["name","description"]};function eL(t,e){if(1&t&&s._UZ(0,"perun-web-apps-resources-list",9),2&t){const t=s.oxw(3);s.Q6J("resources",t.resources)("displayedColumns",s.DdM(3,tL))("disableRouting",!0)}}function iL(t,e){if(1&t&&(s.YNc(0,Qk,1,0,"mat-spinner",6),s.YNc(1,eL,1,4,"perun-web-apps-resources-list",7)),2&t){const t=s.oxw(2);s.Q6J("ngIf",t.loading),s.xp6(1),s.Q6J("ngIf",!t.loading)}}function nL(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-expansion-panel",4),s.NdJ("opened",function(){const e=s.CHM(t).$implicit;return s.oxw().getMemberData(e)}),s.TgZ(1,"mat-expansion-panel-header"),s.TgZ(2,"mat-panel-title"),s._uU(3),s.qZA(),s.qZA(),s.YNc(4,iL,2,2,"ng-template",5),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(3),s.hij(" ",t.name," ")}}let sL=(()=>{class t{constructor(t,e,i,n){this.usersManagerService=t,this.membersManagerService=e,this.resourcesManagerService=i,this.storage=n,this.resources=[],this.filteredVos=[]}ngOnInit(){this.userId=this.storage.getPerunPrincipal().userId,this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(t=>{this.vos=t,this.filteredVos=t})}getMemberData(t){this.loading=!0,this.membersManagerService.getMemberByUser(t.id,this.userId).subscribe(t=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(t.id).subscribe(t=>{this.resources=t,this.loading=!1})})}applyFilter(t){this.filteredVos=this.vos.filter(e=>e.name.toLowerCase().includes(t.toLowerCase()))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(J),s.Y36(G),s.Y36($),s.Y36(Kn))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.TgZ(4,"div",1),s.TgZ(5,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.ALo(6,"translate"),s.ALo(7,"customTranslate"),s.qZA(),s.TgZ(8,"mat-accordion"),s.YNc(9,nL,5,1,"mat-expansion-panel",3),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,3,s.lcZ(3,5,"SERVICES.TITLE"))),s.xp6(4),s.Q6J("placeholder",s.lcZ(6,7,s.lcZ(7,9,"SERVICES.FILTER"))),s.xp6(4),s.Q6J("ngForOf",e.filteredVos))},directives:[ZT,gk,n.sg,dk,pk,fk,uk,n.O5,am,Jk],pipes:[eh,Og],styles:[""]}),t})();function oL(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"perun-web-apps-immediate-filter",5),s.NdJ("filter",function(e){return s.CHM(t),s.oxw().applyFilter(e)}),s.qZA()}2&t&&s.Q6J("placeholder","ORGANIZATIONS.FILTER")}function rL(t,e){1&t&&s._UZ(0,"mat-spinner",6)}const aL=function(){return["name","expirationAttribute","extend"]};function cL(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"perun-web-apps-membership-list",11),s.NdJ("extendMembership",function(e){return s.CHM(t),s.oxw(2).extendMembership(e)}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(2);s.xp6(1),s.Q6J("members",t.userMemberships)("selection",t.selection)("filterValue",t.filterValue)("displayedColumns",s.DdM(4,aL))}}function uL(t,e){1&t&&(s.TgZ(0,"app-alert",12),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}function lL(t,e){if(1&t&&(s.TgZ(0,"div",7),s.TgZ(1,"h1",8),s._uU(2),s.ALo(3,"translate"),s.ALo(4,"customTranslate"),s.qZA(),s.YNc(5,cL,2,5,"div",9),s.YNc(6,uL,4,5,"app-alert",10),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.Oqu(s.lcZ(3,3,s.lcZ(4,5,"ORGANIZATIONS.IS_MEMBER"))),s.xp6(3),s.Q6J("ngIf",0!==t.userMemberships.length),s.xp6(1),s.Q6J("ngIf",0===t.userMemberships.length)}}function hL(t,e){1&t&&(s.TgZ(0,"app-alert",12),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}const dL=function(){return["name"]};function pL(t,e){if(1&t&&s._UZ(0,"perun-web-apps-membership-list",14),2&t){const t=s.oxw(2);s.Q6J("members",t.adminMemberships)("filterValue",t.filterValue)("displayedColumns",s.DdM(3,dL))}}function fL(t,e){if(1&t&&(s.TgZ(0,"div",7),s.TgZ(1,"h1",8),s._uU(2),s.ALo(3,"translate"),s.ALo(4,"customTranslate"),s.qZA(),s.YNc(5,hL,4,5,"app-alert",10),s.YNc(6,pL,1,4,"perun-web-apps-membership-list",13),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.Oqu(s.lcZ(3,3,s.lcZ(4,5,"ORGANIZATIONS.IS_ADMIN"))),s.xp6(3),s.Q6J("ngIf",!t.adminMemberships.length),s.xp6(1),s.Q6J("ngIf",t.adminMemberships.length)}}let gL=(()=>{class t{constructor(t,e,i){this.usersService=t,this.store=e,this.membersService=i,this.filterValue="",this.selection=new co(!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(t=>{this.usersService.getVosWhereUserIsAdmin(this.userId).subscribe(e=>{this.vosCount=t.length+e.length,this.fillMemberships(t,this.userMemberships),this.fillMemberships(e,this.adminMemberships)})})}applyFilter(t){this.filterValue=t}isEverythingLoaded(){this.vosCount--,this.loading=0!==this.vosCount}fillMemberships(t,e){this.membersService.getMembersByUser(this.userId).subscribe(i=>{t.forEach(t=>{const n=i.find(e=>e.voId===t.id);n?this.membersService.getRichMemberWithAttributes(n.id).subscribe(i=>{const n=i.memberAttributes.find(t=>"membershipExpiration"===t.friendlyName);e.push({entity:t,expirationAttribute:n}),this.isEverythingLoaded()}):(e.push({entity:t,expirationAttribute:null}),this.isEverythingLoaded())})})}extendMembership(t){const e=this.store.get("registrar_base_url");window.location.href=`${e}?vo=${t.entity.shortName}`}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(J),s.Y36(Kn),s.Y36(G))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.TgZ(4,"div",1),s.YNc(5,oL,1,1,"perun-web-apps-immediate-filter",2),s.YNc(6,rL,1,0,"mat-spinner",3),s.YNc(7,lL,7,7,"div",4),s.YNc(8,fL,7,7,"div",4),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,5,s.lcZ(3,7,"ORGANIZATIONS.TITLE"))),s.xp6(4),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[n.O5,ZT,am,PT,$g],pipes:[eh,Og],styles:[""]}),t})(),mL=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-settings-page"]],decls:2,vars:0,consts:[[1,"user-theme"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s._UZ(1,"router-outlet"),s.qZA())},directives:[Ln],styles:[""]}),t})(),_L=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,this.password=""}ngOnInit(){this.password=this.data.password}onClose(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(Al))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.TgZ(4,"div",1),s.TgZ(5,"p"),s._uU(6),s.ALo(7,"translate"),s.ALo(8,"customTranslate"),s.qZA(),s.TgZ(9,"label"),s._UZ(10,"input",2),s.qZA(),s.qZA(),s.TgZ(11,"div",3),s.TgZ(12,"button",4),s.NdJ("click",function(){return e.onClose()}),s._uU(13),s.ALo(14,"translate"),s.ALo(15,"customTranslate"),s.qZA(),s.TgZ(16,"button",5),s._uU(17),s.ALo(18,"translate"),s.ALo(19,"customTranslate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,6,s.lcZ(3,8,"DIALOGS.SHOW_PASSWORD.TITLE")),"\n"),s.xp6(5),s.Oqu(s.lcZ(7,10,s.lcZ(8,12,"DIALOGS.SHOW_PASSWORD.LABEL"))),s.xp6(4),s.Q6J("value",e.password),s.xp6(3),s.hij(" ",s.lcZ(14,14,s.lcZ(15,16,"DIALOGS.SHOW_PASSWORD.CLOSE"))," "),s.xp6(3),s.Q6J("cdkCopyToClipboard",e.password),s.xp6(1),s.hij(" ",s.lcZ(18,18,s.lcZ(19,20,"DIALOGS.SHOW_PASSWORD.COPY"))," "))},directives:[Sl,El,zl,uh,z_],pipes:[eh,Og],styles:[".center-text[_ngcontent-%COMP%]{text-align:center}"]}),t})();function bL(t,e){1&t&&s._UZ(0,"mat-spinner",7)}function yL(t,e){1&t&&s._UZ(0,"th",16)}function wL(t,e){if(1&t&&(s.TgZ(0,"td",17),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t)}}function AL(t,e){1&t&&s._UZ(0,"tr",18)}function ML(t,e){1&t&&s._UZ(0,"tr",19)}function vL(t,e){if(1&t&&(s.TgZ(0,"div",8),s.TgZ(1,"p"),s._uU(2),s.ALo(3,"translate"),s.ALo(4,"customTranslate"),s.qZA(),s.TgZ(5,"div",9),s._uU(6),s.ALo(7,"translate"),s.ALo(8,"customTranslate"),s.qZA(),s.TgZ(9,"table",10),s.ynx(10,11),s.YNc(11,yL,1,0,"th",12),s.YNc(12,wL,2,1,"td",13),s.BQk(),s.YNc(13,AL,1,0,"tr",14),s.YNc(14,ML,1,0,"tr",15),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,5,s.lcZ(4,7,"DIALOGS.REMOVE_ALT_PASSWORD.DESCRIPTION"))," "),s.xp6(4),s.hij(" ",s.lcZ(7,9,s.lcZ(8,11,"DIALOGS.REMOVE_ALT_PASSWORD.ASK"))," "),s.xp6(3),s.Q6J("dataSource",t.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",t.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",t.displayedColumns)}}let TL=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.usersManagerService=i,this.displayedColumns=["description"]}ngOnInit(){this.dataSource=new y_(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 t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(Al),s.Y36(J))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.TgZ(4,"div",1),s.YNc(5,bL,1,0,"mat-spinner",2),s.qZA(),s.YNc(6,vL,15,13,"div",3),s.TgZ(7,"div",4),s.TgZ(8,"button",5),s.NdJ("click",function(){return e.onCancel()}),s._uU(9),s.ALo(10,"translate"),s.ALo(11,"customTranslate"),s.qZA(),s.TgZ(12,"button",6),s.NdJ("click",function(){return e.onSubmit()}),s._uU(13),s.ALo(14,"translate"),s.ALo(15,"customTranslate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,5,s.lcZ(3,7,"DIALOGS.REMOVE_ALT_PASSWORD.TITLE"))),s.xp6(4),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading),s.xp6(3),s.hij(" ",s.lcZ(10,9,s.lcZ(11,11,"DIALOGS.REMOVE_ALT_PASSWORD.CANCEL"))," "),s.xp6(4),s.hij(" ",s.lcZ(14,13,s.lcZ(15,15,"DIALOGS.REMOVE_ALT_PASSWORD.REMOVE"))," "))},directives:[Sl,n.O5,zl,uh,am,El,c_,h_,l_,u_,f_,g_,d_,p_,m_,__],pipes:[eh,Og],styles:[""]}),t})();function kL(t,e){1&t&&s._UZ(0,"th",12)}function LL(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",13),s.TgZ(1,"mat-checkbox",14),s.NdJ("change",function(e){const i=s.CHM(t).$implicit,n=s.oxw();return e?n.selection.toggle(i):null})("click",function(t){return t.stopPropagation()}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.Q6J("aria-label",i.checkboxLabel(t))("checked",i.selection.isSelected(t))}}function CL(t,e){if(1&t&&(s.TgZ(0,"th",15),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Oqu(t.headerColumnText)}}function SL(t,e){if(1&t&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t)}}function EL(t,e){1&t&&s._UZ(0,"tr",17)}function zL(t,e){1&t&&s._UZ(0,"tr",18)}function xL(t,e){if(1&t&&(s.TgZ(0,"app-alert",19),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.hij(" ",t.alertText,"\n")}}let OL=(()=>{class t{constructor(){this.values=[],this.selection=new co(!1,[]),this.alertText="",this.headerColumnText="",this.displayedColumns=["select","value"]}ngOnChanges(){this.values=this.values?this.values:[],this.dataSource=new y_(this.values),this.setDataSource()}getExportDataForColumn(t){return t}exportData(t){ug(cg(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),t)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}checkboxLabel(t){return(this.selection.isSelected(t)?"deselect":"select")+" row"}ngAfterViewInit(){this.setDataSource()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-string-list"]],viewQuery:function(t,e){if(1&t&&s.Gf(mg,7),2&t){let t;s.iGM(t=s.CRH())&&(e.child=t.first)}},inputs:{values:"values",selection:"selection",alertText:"alertText",headerColumnText:"headerColumnText"},features:[s.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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,kL,1,0,"th",4),s.YNc(5,LL,2,2,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,CL,2,1,"th",7),s.YNc(8,SL,2,1,"td",8),s.BQk(),s.YNc(9,EL,1,0,"tr",9),s.YNc(10,zL,1,0,"tr",10),s.qZA(),s.qZA(),s.qZA(),s.YNc(11,xL,2,1,"app-alert",11)),2&t&&(s.Q6J("hidden",!e.values.length),s.xp6(1),s.Q6J("dataLength",e.dataSource.filteredData.length),s.xp6(1),s.Q6J("dataSource",e.dataSource),s.xp6(7),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===e.values.length))},directives:[mg,c_,h_,l_,u_,f_,g_,n.O5,d_,p_,vA,m_,__,$g],styles:[".static-column-size[_ngcontent-%COMP%]{width:20px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100px}"]}),t})();function RL(t,e){if(1&t&&s._UZ(0,"perun-web-apps-string-list",10),2&t){const t=s.oxw();s.Q6J("values",t.displayedValues)("selection",t.selection)("alertText",t.alertText)("headerColumnText",t.headerColumnText)}}function DL(t,e){1&t&&s._UZ(0,"mat-spinner",11)}let PL=(()=>{class t{constructor(t,e,i,n,s){this.store=t,this.attributesManagerService=e,this.dialog=i,this.translateService=n,this.usersManagerService=s,this.altPasswordCtrl=new Wd(null,[od.required]),this.userId=this.store.getPerunPrincipal().userId,this.passwordDescriptions=new Set,this.displayedValues=[],this.selection=new co(!1,[]),n.get("ALT_PASSWORDS.REMOVE_DIALOG_DESCRIPTION").subscribe(t=>this.removeDialogDescription=t),n.get("ALT_PASSWORDS.REMOVE_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t),n.get("ALERTS.NO_ALT_PASSWORDS").subscribe(t=>this.alertText=t),n.get("ALT_PASSWORDS.HEADER_COLUMN").subscribe(t=>this.headerColumnText=t)}ngOnInit(){this.getAltPasswords()}createPassword(){const t=this.generatePassword();this.usersManagerService.createAlternativePassword(this.userId,this.altPasswordCtrl.value,"einfra",t).subscribe(()=>{const e=ng();e.width="600px",e.data={password:t},this.dialog.open(_L,e),this.getAltPasswords(),this.altPasswordCtrl.setValue("")})}generatePassword(){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%&/=?_.,:;\\-";let e="",i=0;const n=t.length;for(;i<16;++i)e+=t.charAt(Math.random()*n);return e.match("((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])|(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])).{3,}")||this.generatePassword(),e}getAltPasswords(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:altPasswords:einfra").subscribe(t=>{if(this.altPasswordsAttribute=t,t.value){const e=Object.keys(t.value);this.passwordDescriptions=new Set(e),this.displayedValues=Array.from(this.passwordDescriptions.values())}else this.displayedValues=[];this.loading=!1})}alreadyContainsValue(t){return this.passwordDescriptions.has(t)}removeAltPasswords(){const t=ng();t.width="600px",t.data={description:this.selection.selected,passwordId:this.altPasswordsAttribute.value[this.selection.selected[0]],userId:this.userId},this.dialog.open(TL,t).afterClosed().subscribe(t=>{t&&(this.getAltPasswords(),this.selection.clear())})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Kn),s.Y36(U),s.Y36(Ll),s.Y36(th),s.Y36(J))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.ALo(4,"customTranslate"),s.qZA(),s.TgZ(5,"mat-form-field",2),s.TgZ(6,"label",2),s._UZ(7,"input",3),s.ALo(8,"translate"),s.ALo(9,"customTranslate"),s.qZA(),s.qZA(),s.TgZ(10,"button",4),s.NdJ("click",function(){return e.createPassword()}),s._uU(11),s.ALo(12,"translate"),s.ALo(13,"customTranslate"),s.qZA(),s.TgZ(14,"app-alert",5),s._uU(15),s.ALo(16,"translate"),s.ALo(17,"customTranslate"),s.qZA(),s.TgZ(18,"h1",6),s._uU(19),s.ALo(20,"translate"),s.ALo(21,"customTranslate"),s.qZA(),s.TgZ(22,"button",7),s.NdJ("click",function(){return e.removeAltPasswords()}),s._uU(23),s.ALo(24,"translate"),s.ALo(25,"customTranslate"),s.qZA(),s.YNc(26,RL,1,4,"perun-web-apps-string-list",8),s.YNc(27,DL,1,0,"mat-spinner",9),s.qZA()),2&t&&(s.xp6(2),s.Oqu(s.lcZ(3,11,s.lcZ(4,13,"ALT_PASSWORDS.TITLE_GENERATE"))),s.xp6(5),s.s9C("placeholder",s.lcZ(8,15,s.lcZ(9,17,"ALT_PASSWORDS.INPUT_PLACEHOLDER"))),s.Q6J("formControl",e.altPasswordCtrl),s.xp6(3),s.Q6J("disabled",!e.altPasswordCtrl.valid||e.alreadyContainsValue(e.altPasswordCtrl.value)),s.xp6(1),s.hij(" ",s.lcZ(12,19,s.lcZ(13,21,"ALT_PASSWORDS.GENERATE"))," "),s.xp6(4),s.Oqu(s.lcZ(16,23,s.lcZ(17,25,"ALT_PASSWORDS.EXAMPLE_DESCRIPTIONS"))),s.xp6(4),s.Oqu(s.lcZ(20,27,s.lcZ(21,29,"ALT_PASSWORDS.TITLE_PASSWORDS"))),s.xp6(3),s.Q6J("disabled",e.selection.isEmpty()),s.xp6(1),s.hij(" ",s.lcZ(24,31,s.lcZ(25,33,"ALT_PASSWORDS.REMOVE"))," "),s.xp6(3),s.Q6J("ngIf",!e.loading),s.xp6(1),s.Q6J("ngIf",e.loading))},directives:[Kh,Wg,Qh,Td,op,uh,$g,n.O5,OL,am],pipes:[eh,Og],styles:[""]}),t})();function NL(t,e){if(1&t&&(s.TgZ(0,"mat-list-item",1),s.TgZ(1,"mat-icon"),s._uU(2),s.qZA(),s.TgZ(3,"p",2),s._uU(4),s.ALo(5,"translate"),s.ALo(6,"customTranslate"),s.qZA(),s.qZA()),2&t){const t=e.$implicit;s.Q6J("routerLink",t.url),s.xp6(2),s.Oqu(t.icon),s.xp6(2),s.Oqu(s.lcZ(5,3,s.lcZ(6,5,t.label)))}}let IL=(()=>{class t{constructor(t){this.storeService=t,this.items=[]}ngOnInit(){this.initItems();const t=this.storeService.get("displayed_tabs");this.items=this.items.filter(e=>t.includes(e.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:"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 t.\u0275fac=function(e){return new(e||t)(s.Y36(Kn))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"mat-list"),s.YNc(1,NL,7,7,"mat-list-item",0),s.qZA()),2&t&&(s.xp6(1),s.Q6J("ngForOf",e.items))},directives:[dw,n.sg,gw,Vu,vn,Jf],pipes:[eh,Og],styles:["mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important;color:var(--side-text-active)!important;cursor:pointer}"]}),t})();const qL=["row","column","row-reverse","column-reverse"];function BL(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let HL=(()=>{class t extends ay{buildStyles(t){return function(t){let[e,i,n]=function(t){t=t?t.toLowerCase():"";let[e,i,n]=t.split(" ");return qL.find(t=>t===e)||(e=qL[0]),"inline"===i&&(i="inline"!==n?n:"",n="inline"),[e,BL(i),!!n]}(t);return function(t,e=null,i=!1){return{display:i?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,i,n)}(t)}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275prov=(0,s.Yz7)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const YL=["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 jL=(()=>{class t extends Bb{constructor(t,e,i,n){super(t,i,e,n),this.DIRECTIVE_KEY="layout",this.styleCache=WL,this.init()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(ry),s.Y36(HL),s.Y36(cy))},t.\u0275dir=s.lG2({type:t,features:[s.qOj]}),t})(),FL=(()=>{class t extends jL{constructor(){super(...arguments),this.inputs=YL}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,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:[s.qOj]}),t})();const WL=new Map;new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;let UL=(()=>{class t extends ay{buildStyles(t){const e={};switch(t=t||"stretch"){case"start":e["align-self"]="flex-start";break;case"end":e["align-self"]="flex-end";break;default:e["align-self"]=t}return e}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275prov=(0,s.Yz7)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const KL=["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 ZL=(()=>{class t extends Bb{constructor(t,e,i,n){super(t,i,e,n),this.DIRECTIVE_KEY="flex-align",this.styleCache=GL,this.init()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(ry),s.Y36(UL),s.Y36(cy))},t.\u0275dir=s.lG2({type:t,features:[s.qOj]}),t})();const GL=new Map;let XL=(()=>{class t extends ZL{constructor(){super(...arguments),this.inputs=KL}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275dir=s.lG2({type:t,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:[s.qOj]}),t})();new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;let VL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Eb,oo]]}),t})();function $L(t,e){if(1&t&&(s.TgZ(0,"mat-option",13),s._uU(1),s.qZA()),2&t){const t=e.$implicit,i=s.oxw();s.Q6J("value",i.selectedUnit),s.xp6(1),s.hij(" ",t," ")}}let JL=(()=>{class t{constructor(t,e,i,n,s){this.dialogRef=t,this.data=e,this.rtMessagesService=i,this.notificator=n,this.translate=s,this.resource="",this.currentQuota="",this.units=["MiB","GiB","TiB"],this.selectedUnit="GiB",s.get("DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SUCCESS").subscribe(t=>this.successMessage=t)}ngOnInit(){this.resource=this.data.resource.name,this.currentQuota=this.data.currentQuota,this.reasonControl=new Wd(null,[od.required]),this.newValueControl=new Wd(null,[od.required,od.pattern("[1-9][0-9]*")])}onCancel(){this.dialogRef.close()}onSubmit(){const t=(new xg).transform(this.data.user);this.rtMessagesService.sentMessageToRTWithVo(this.data.vo.id,"QUOTA: Change request",`QUOTA CHANGE REQUEST\u21b5 \u21b5 User: ${t} (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`).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(Al),s.Y36(X),s.Y36(Mg),s.Y36(th))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.TgZ(4,"div",1),s.TgZ(5,"div"),s.TgZ(6,"p",2),s._uU(7),s.ALo(8,"translate"),s.ALo(9,"customTranslate"),s.qZA(),s.TgZ(10,"p"),s._uU(11),s.qZA(),s.qZA(),s.TgZ(12,"div"),s.TgZ(13,"p",2),s._uU(14),s.ALo(15,"translate"),s.ALo(16,"customTranslate"),s.qZA(),s.TgZ(17,"p"),s._uU(18),s.qZA(),s.qZA(),s.TgZ(19,"div",3),s.TgZ(20,"mat-form-field"),s.TgZ(21,"label",4),s._UZ(22,"input",5),s.ALo(23,"translate"),s.ALo(24,"customTranslate"),s.qZA(),s.qZA(),s.TgZ(25,"mat-select",6),s.NdJ("valueChange",function(t){return e.selectedUnit=t}),s.YNc(26,$L,2,2,"mat-option",7),s.qZA(),s.qZA(),s.TgZ(27,"div"),s.TgZ(28,"mat-form-field",8),s.TgZ(29,"label",4),s._UZ(30,"textarea",9),s.ALo(31,"translate"),s.ALo(32,"customTranslate"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(33,"div",10),s.TgZ(34,"button",11),s.NdJ("click",function(){return e.onCancel()}),s._uU(35),s.ALo(36,"translate"),s.ALo(37,"customTranslate"),s.qZA(),s.TgZ(38,"button",12),s.NdJ("click",function(){return e.onSubmit()}),s._uU(39),s.ALo(40,"translate"),s.ALo(41,"customTranslate"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,14,s.lcZ(3,16,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.TITLE")),"\n"),s.xp6(6),s.hij(" ",s.lcZ(8,18,s.lcZ(9,20,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.RESOURCE"))," "),s.xp6(4),s.Oqu(e.resource),s.xp6(3),s.hij(" ",s.lcZ(15,22,s.lcZ(16,24,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.CURRENT_QUOTA"))," "),s.xp6(4),s.Oqu(e.currentQuota),s.xp6(4),s.s9C("placeholder",s.lcZ(23,26,s.lcZ(24,28,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.REQUESTED_QUOTA"))),s.Q6J("formControl",e.newValueControl),s.xp6(3),s.Q6J("value",e.selectedUnit),s.xp6(1),s.Q6J("ngForOf",e.units),s.xp6(4),s.s9C("placeholder",s.lcZ(31,30,s.lcZ(32,32,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.REASON"))),s.Q6J("formControl",e.reasonControl),s.xp6(5),s.hij(" ",s.lcZ(36,34,s.lcZ(37,36,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.CANCEL"))," "),s.xp6(3),s.Q6J("disabled",e.reasonControl.invalid),s.xp6(1),s.hij(" ",s.lcZ(40,38,s.lcZ(41,40,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SEND"))," "))},directives:[Sl,FL,XL,Kh,Wg,ep,Qh,hp,Td,op,Pp,n.sg,zl,uh,ul],pipes:[eh,Og],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-ripple.mat-form-field-ripple[_ngcontent-%COMP%], .mat-input-underline.mat-form-field-underline[_ngcontent-%COMP%]{display:none}"]}),t})();function QL(t,e){1&t&&s._UZ(0,"mat-spinner",8)}function tC(t,e){1&t&&(s.TgZ(0,"app-alert",9),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"DATA_QUOTAS.NO_QUOTAS"))))}function eC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"p"),s.TgZ(2,"strong"),s._uU(3),s.ALo(4,"translate"),s.ALo(5,"customTranslate"),s.qZA(),s._uU(6),s.qZA(),s.TgZ(7,"p",10),s._uU(8),s.ALo(9,"translate"),s.ALo(10,"customTranslate"),s.qZA(),s.TgZ(11,"button",11),s.NdJ("click",function(){s.CHM(t);const e=s.oxw().$implicit,i=s.oxw(3).$implicit;return s.oxw().requestChangeQuota(i,e)}),s._uU(12),s.ALo(13,"translate"),s.ALo(14,"customTranslate"),s.qZA(),s.qZA()}if(2&t){const t=s.oxw(5);s.xp6(3),s.Oqu(s.lcZ(4,4,s.lcZ(5,6,"DATA_QUOTAS.QUOTA"))),s.xp6(3),s.hij(" ",t.quotasMarkup," "),s.xp6(2),s.Oqu(s.lcZ(9,8,s.lcZ(10,10,"DATA_QUOTAS.QUOTA_INFO"))),s.xp6(4),s.hij(" ",s.lcZ(13,12,s.lcZ(14,14,"DATA_QUOTAS.CHANGE"))," ")}}function iC(t,e){1&t&&(s.TgZ(0,"p"),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"DATA_QUOTAS.NO_QUOTAS"))))}function nC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-expansion-panel",3),s.NdJ("opened",function(){const e=s.CHM(t).$implicit;return s.oxw(4).getResAttributes(e.id)}),s.TgZ(1,"mat-expansion-panel-header"),s.TgZ(2,"mat-panel-title"),s._uU(3),s.qZA(),s.qZA(),s.YNc(4,eC,15,16,"div",7),s.YNc(5,iC,4,5,"p",7),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw(4);s.xp6(3),s.hij(" ",t.name," "),s.xp6(1),s.Q6J("ngIf",i.defaultQuota),s.xp6(1),s.Q6J("ngIf",!i.defaultQuota)}}function sC(t,e){if(1&t&&(s.TgZ(0,"mat-accordion"),s.YNc(1,nC,6,3,"mat-expansion-panel",2),s.qZA()),2&t){const t=s.oxw(3);s.xp6(1),s.Q6J("ngForOf",t.resources)}}function oC(t,e){if(1&t&&(s.YNc(0,QL,1,0,"mat-spinner",5),s.YNc(1,tC,4,5,"app-alert",6),s.YNc(2,sC,2,1,"mat-accordion",7)),2&t){const t=s.oxw(2);s.Q6J("ngIf",t.loading),s.xp6(1),s.Q6J("ngIf",0===t.resources.length&&!t.loading),s.xp6(1),s.Q6J("ngIf",t.resources.length&&!t.loading)}}function rC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-expansion-panel",3),s.NdJ("opened",function(){const e=s.CHM(t).$implicit;return s.oxw().getMembersResources(e)}),s.TgZ(1,"mat-expansion-panel-header"),s.TgZ(2,"mat-panel-title"),s._uU(3),s.qZA(),s.qZA(),s.YNc(4,oC,3,3,"ng-template",4),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(3),s.hij(" ",t.name," ")}}let aC=(()=>{class t{constructor(t,e,i,n,s,o){this.store=t,this.usersManagerService=e,this.membersService=i,this.resourcesManagerService=n,this.attributesManagerService=s,this.dialog=o,this.vos=[],this.resources=[],this.quotasMarkup="",this.filteredVos=[]}ngOnInit(){this.user=this.store.getPerunPrincipal().user,this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(t=>{this.vos=t,this.filteredVos=t})}getMembersResources(t){this.loading=!0,this.resources=[],this.membersService.getMemberByUser(t.id,this.user.id).subscribe(t=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(t.id).subscribe(t=>{let e=t.length;e||(this.loading=!1),t.forEach(t=>{this.attributesManagerService.getResourceAttributes(t.id).subscribe(i=>{e--,i.find(t=>"defaultDataQuotas"===t.friendlyName)&&this.resources.push(t),this.loading=0!==e})})})})}getResAttributes(t){this.attributesManagerService.getResourceAttributes(t).subscribe(t=>{let e=t.find(t=>"dataQuotas"===t.friendlyName);if(e&&e.value){const t=Object.keys(e.value);this.currentQuota=e.value[t[0]]}else this.currentQuota="";if(e=t.find(t=>"defaultDataQuotas"===t.friendlyName),e){const t=Object.keys(e.value);this.defaultQuota=e.value[t[0]]}else this.defaultQuota="";this.currentQuota||(this.currentQuota=this.defaultQuota),this.parseMarkup()})}parseMarkup(){let t="";t+=this.currentQuota,t+=` (default: ${this.defaultQuota})`,t=t.split(":").join(" : ").split("K").join(" KiB").split("M").join(" MiB").split("G").join(" GiB").split("T").join(" TiB").split("E").join(" EiB"),this.quotasMarkup=t}requestChangeQuota(t,e){const i=ng();i.width="400px",i.data={vo:t,resource:e,user:this.user,currentQuota:this.quotasMarkup},this.dialog.open(JL,i)}applyFilter(t){this.filteredVos=this.vos.filter(e=>e.name.toLowerCase().includes(t.toLowerCase()))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Kn),s.Y36(J),s.Y36(G),s.Y36($),s.Y36(U),s.Y36(Ll))},t.\u0275cmp=s.Xpm({type:t,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"],[2,"color","gray"],["mat-flat-button","","color","primary",3,"click"]],template:function(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.TgZ(4,"perun-web-apps-immediate-filter",1),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.ALo(5,"translate"),s.ALo(6,"customTranslate"),s.qZA(),s.TgZ(7,"mat-accordion"),s.YNc(8,rC,5,1,"mat-expansion-panel",2),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,3,s.lcZ(3,5,"DATA_QUOTAS.TITLE"))),s.xp6(3),s.Q6J("placeholder",s.lcZ(5,7,s.lcZ(6,9,"DATA_QUOTAS.FILTER"))),s.xp6(4),s.Q6J("ngForOf",e.filteredVos))},directives:[ZT,gk,n.sg,dk,pk,fk,uk,n.O5,am,$g,uh],pipes:[eh,Og],styles:[""]}),t})();function cC(t,e){1&t&&s._UZ(0,"mat-spinner",8)}function uC(t,e){1&t&&(s.TgZ(0,"app-alert",9),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"OPT_OUT_MAILING_LISTS.NO_MAILING_LISTS_ALERT"))))}function lC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-expansion-panel",3),s.NdJ("opened",function(){const e=s.CHM(t).$implicit;return s.oxw(4).getOptOutAttribute(e)}),s.TgZ(1,"mat-expansion-panel-header"),s.TgZ(2,"mat-panel-title"),s._uU(3),s.qZA(),s.qZA(),s.TgZ(4,"div",10),s.TgZ(5,"p"),s._uU(6),s.ALo(7,"translate"),s.ALo(8,"customTranslate"),s.qZA(),s.TgZ(9,"mat-checkbox",11),s.NdJ("change",function(){return s.CHM(t),s.oxw(4).setOptOut()}),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw(4);s.xp6(3),s.hij(" ",t.name," "),s.xp6(3),s.Oqu(s.lcZ(7,3,s.lcZ(8,5,"OPT_OUT_MAILING_LISTS.OPT_OUT_LABEL"))),s.xp6(3),s.Q6J("checked",i.optOutAttribute&&null!==i.optOutAttribute.value)}}function hC(t,e){if(1&t&&(s.TgZ(0,"mat-accordion"),s.YNc(1,lC,10,7,"mat-expansion-panel",2),s.qZA()),2&t){const t=s.oxw(3);s.xp6(1),s.Q6J("ngForOf",t.resources)}}function dC(t,e){if(1&t&&(s.YNc(0,cC,1,0,"mat-spinner",5),s.YNc(1,uC,4,5,"app-alert",6),s.YNc(2,hC,2,1,"mat-accordion",7)),2&t){const t=s.oxw(2);s.Q6J("ngIf",t.loading),s.xp6(1),s.Q6J("ngIf",0===t.resources.length&&!t.loading),s.xp6(1),s.Q6J("ngIf",t.resources.length&&!t.loading)}}function pC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-expansion-panel",3),s.NdJ("opened",function(){const e=s.CHM(t).$implicit;return s.oxw().getMailingLists(e)}),s.TgZ(1,"mat-expansion-panel-header"),s.TgZ(2,"mat-panel-title"),s._uU(3),s.qZA(),s.qZA(),s.YNc(4,dC,3,3,"ng-template",4),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(3),s.hij(" ",t.name," ")}}let fC=(()=>{class t{constructor(t,e,i,n,s){this.store=t,this.usersManagerService=e,this.membersService=i,this.resourcesManagerService=n,this.attributesManagerService=s,this.vos=[],this.resources=[],this.mailingLists=[],this.optOuts=[],this.filteredVos=[]}ngOnInit(){this.user=this.store.getPerunPrincipal().user,this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(t=>{this.vos=t,this.filteredVos=t})}getMailingLists(t){this.loading=!0,this.resources=[],this.membersService.getMemberByUser(t.id,this.user.id).subscribe(t=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(t.id).subscribe(e=>{let i=e.length;i||(this.loading=!1),e.forEach(e=>{this.attributesManagerService.getRequiredAttributesMemberResource(t.id,e.id).subscribe(n=>{this.attributesManagerService.getResourceAttributeByName(e.id,"urn:perun:resource:attribute-def:def:disableMailingListOptOut").subscribe(s=>{i--;const o=n.find(t=>"optOutMailingList"===t.friendlyName);!o||s&&"true"===s.value||(this.optOuts.push({resource:e.id,member:t.id,attribute:o}),this.resources.push(e)),this.loading=0!==i})})})})})}getOptOutAttribute(t){this.index=this.resources.indexOf(t),this.optOutAttribute=this.optOuts[this.index].attribute}setOptOut(){this.optOuts[this.index].attribute.value=this.optOutAttribute.value?null:"true",this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(()=>{console.log("done")})}applyFilter(t){this.filteredVos=this.vos.filter(e=>e.name.toLowerCase().includes(t.toLowerCase()))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Kn),s.Y36(J),s.Y36(G),s.Y36($),s.Y36(U))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-settings-mailing-lists"]],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,"row"],[1,"ml-3",3,"checked","change"]],template:function(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.TgZ(4,"perun-web-apps-immediate-filter",1),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.ALo(5,"translate"),s.ALo(6,"customTranslate"),s.qZA(),s.TgZ(7,"mat-accordion"),s.YNc(8,pC,5,1,"mat-expansion-panel",2),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,3,s.lcZ(3,5,"OPT_OUT_MAILING_LISTS.TITLE"))),s.xp6(3),s.Q6J("placeholder",s.lcZ(5,7,s.lcZ(6,9,"OPT_OUT_MAILING_LISTS.FILTER"))),s.xp6(4),s.Q6J("ngForOf",e.filteredVos))},directives:[ZT,gk,n.sg,dk,pk,fk,uk,n.O5,am,$g,vA],pipes:[eh,Og],styles:[""]}),t})();function gC(t,e){1&t&&s._UZ(0,"mat-spinner",4)}function mC(t,e){1&t&&s._UZ(0,"th",17)}function _C(t,e){if(1&t&&(s.TgZ(0,"td",18),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t)}}function bC(t,e){1&t&&s._UZ(0,"tr",19)}function yC(t,e){1&t&&s._UZ(0,"tr",20)}function wC(t,e){if(1&t&&(s.TgZ(0,"table",11),s.ynx(1,12),s.YNc(2,mC,1,0,"th",13),s.YNc(3,_C,2,1,"td",14),s.BQk(),s.YNc(4,bC,1,0,"tr",15),s.YNc(5,yC,1,0,"tr",16),s.qZA()),2&t){const t=s.oxw(2);s.Q6J("dataSource",t.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",t.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",t.displayedColumns)}}function AC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",1),s.TgZ(1,"div",5),s.TgZ(2,"p"),s._uU(3),s.qZA(),s.TgZ(4,"div",6),s._uU(5),s.ALo(6,"translate"),s.ALo(7,"customTranslate"),s.qZA(),s.YNc(8,wC,6,3,"table",7),s.qZA(),s.TgZ(9,"div",8),s.TgZ(10,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(11),s.ALo(12,"translate"),s.ALo(13,"customTranslate"),s.qZA(),s.TgZ(14,"button",10),s.NdJ("click",function(){return s.CHM(t),s.oxw().onSubmit()}),s._uU(15),s.ALo(16,"translate"),s.ALo(17,"customTranslate"),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(3),s.hij(" ",t.description," "),s.xp6(2),s.hij(" ",s.lcZ(6,5,s.lcZ(7,7,"DIALOGS.REMOVE_STRING_VALUE.ASK"))," "),s.xp6(3),s.Q6J("ngIf",t.dataSource.data.length),s.xp6(3),s.hij(" ",s.lcZ(12,9,s.lcZ(13,11,"DIALOGS.REMOVE_STRING_VALUE.CANCEL"))," "),s.xp6(4),s.hij(" ",s.lcZ(16,13,s.lcZ(17,15,"DIALOGS.REMOVE_STRING_VALUE.REMOVE"))," ")}}let MC=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.attributesManagerService=i,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new y_(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 t=this.data.attribute.value?this.data.attribute.value:[];void 0!==this.data.valueIndex?t.splice(this.data.valueIndex,1):t=t.filter(t=>!this.data.values.find(e=>e===t)),this.data.attribute.value=t}this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(Al),s.Y36(U))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.qZA(),s.TgZ(2,"div",1),s.YNc(3,gC,1,0,"mat-spinner",2),s.qZA(),s.YNc(4,AC,18,17,"div",3)),2&t&&(s.xp6(1),s.Oqu(e.title),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[Sl,n.O5,am,El,zl,uh,c_,h_,l_,u_,f_,g_,d_,p_,m_,__],pipes:[eh,Og],styles:[""]}),t})();function vC(t,e){1&t&&(s.TgZ(0,"app-alert",5),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"PREFERRED_SHELLS.NO_SHELLS"))))}function TC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-option",11),s.NdJ("click",function(){return s.CHM(t),s.oxw(3).changeValue()}),s._uU(1),s.qZA()}if(2&t){const t=e.$implicit;s.Q6J("value",t),s.xp6(1),s.Oqu(t)}}function kC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-list-item"),s.TgZ(1,"mat-form-field",7),s.TgZ(2,"mat-select",8),s.NdJ("valueChange",function(e){const i=s.CHM(t).index;return s.oxw(2).shells[i]=e}),s.YNc(3,TC,2,2,"mat-option",9),s.qZA(),s.qZA(),s.TgZ(4,"button",10),s.NdJ("click",function(){const e=s.CHM(t).index;return s.oxw(2).removeShell(e)}),s._uU(5),s.ALo(6,"translate"),s.ALo(7,"customTranslate"),s.qZA(),s.qZA()}if(2&t){const t=e.index,i=s.oxw(2);s.xp6(2),s.Q6J("value",i.shells[t]),s.xp6(1),s.Q6J("ngForOf",i.defaultShells),s.xp6(2),s.hij(" ",s.lcZ(6,3,s.lcZ(7,5,"PREFERRED_SHELLS.REMOVE_BUTTON"))," ")}}function LC(t,e){if(1&t&&(s.TgZ(0,"mat-list"),s.YNc(1,kC,8,7,"mat-list-item",6),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngForOf",t.shells)}}let CC=(()=>{class t{constructor(t,e,i,n){this.store=t,this.attributesManagerService=e,this.dialog=i,this.translateService=n,this.defaultShells=["/bin/bash","/bin/csh","/bin/ksh","/bin/sh","/bin/zsh"],this.shells=[],n.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(t=>this.removeDialogDescription=t),n.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(()=>{this.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(t=>this.removeDialogDescription=t),this.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t)}),this.getAttribute()}addShell(){this.shells.push("/bin/bash"),this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe(()=>{console.log("done")})}removeShell(t){const e=ng();e.width="600px",e.data={valueIndex:t,values:[this.shells[t]],attribute:this.prefShellsAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(MC,e).afterClosed().subscribe(t=>{t&&this.getAttribute()})}getAttribute(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredShells").subscribe(t=>{this.prefShellsAttribute=t,this.shells=this.prefShellsAttribute.value?this.prefShellsAttribute.value:[],this.loading=!1})}changeValue(){this.loading=!0,this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe(()=>{this.getAttribute()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Kn),s.Y36(U),s.Y36(Ll),s.Y36(th))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.TgZ(4,"app-alert",1),s._uU(5),s.ALo(6,"translate"),s.ALo(7,"customTranslate"),s.qZA(),s.TgZ(8,"button",2),s.NdJ("click",function(){return e.addShell()}),s._uU(9),s.ALo(10,"translate"),s.ALo(11,"customTranslate"),s.qZA(),s.YNc(12,vC,4,5,"app-alert",3),s.YNc(13,LC,2,1,"mat-list",4)),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,5,s.lcZ(3,7,"PREFERRED_SHELLS.TITLE"))),s.xp6(4),s.hij(" ",s.lcZ(6,9,s.lcZ(7,11,"PREFERRED_SHELLS.DESCRIPTION")),"\n"),s.xp6(4),s.hij(" ",s.lcZ(10,13,s.lcZ(11,15,"PREFERRED_SHELLS.NEW_BUTTON")),"\n"),s.xp6(3),s.Q6J("ngIf",!e.loading&&0===e.shells.length),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[$g,uh,n.O5,dw,n.sg,gw,Kh,Pp,ul],pipes:[eh,Og],styles:[""]}),t})();function SC(t,e){1&t&&s._UZ(0,"mat-spinner",4)}function EC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"div",5),s.TgZ(2,"mat-form-field",6),s.TgZ(3,"label",6),s._UZ(4,"input",7),s.qZA(),s.qZA(),s.qZA(),s.TgZ(5,"div",8),s.TgZ(6,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().onCancel()}),s._uU(7),s.ALo(8,"translate"),s.ALo(9,"customTranslate"),s.qZA(),s.TgZ(10,"button",10),s.NdJ("click",function(){return s.CHM(t),s.oxw().onSubmit()}),s._uU(11),s.ALo(12,"translate"),s.ALo(13,"customTranslate"),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(4),s.Q6J("formControl",t.inputControl),s.xp6(3),s.hij(" ",s.lcZ(8,4,s.lcZ(9,6,"DIALOGS.ADD_UNIX_GROUP.CANCEL"))," "),s.xp6(3),s.Q6J("disabled",!t.inputControl.valid||t.groups.includes(t.inputControl.value)),s.xp6(1),s.hij(" ",s.lcZ(12,8,s.lcZ(13,10,"DIALOGS.ADD_UNIX_GROUP.ADD"))," ")}}let zC=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.attributesManagerService=i,this.groups=[]}ngOnInit(){this.inputControl=new Wd(null,od.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(t=>{const e=t.value?t.value:[];e.push(this.inputControl.value),t.value=e,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:t}).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)})})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(Al),s.Y36(U))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.TgZ(4,"div",1),s.YNc(5,SC,1,0,"mat-spinner",2),s.YNc(6,EC,14,12,"div",3),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,3,s.lcZ(3,5,"DIALOGS.ADD_UNIX_GROUP.TITLE"))),s.xp6(4),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",!e.loading))},directives:[Sl,n.O5,am,El,Kh,Wg,Qh,hp,Td,op,zl,uh],pipes:[eh,Og],styles:[""]}),t})();function xC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",2),s.TgZ(1,"h4"),s._uU(2),s.qZA(),s.TgZ(3,"button",3),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().addGroupName(e)}),s._uU(4),s.ALo(5,"translate"),s.ALo(6,"customTranslate"),s.qZA(),s.TgZ(7,"button",4),s.NdJ("click",function(){const e=s.CHM(t),i=e.$implicit,n=e.index;return s.oxw().removeGroupName(i,n)}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s._UZ(10,"perun-web-apps-string-list",5),s.qZA()}if(2&t){const t=e.$implicit,i=e.index,n=s.oxw();s.xp6(2),s.Oqu(t),s.xp6(2),s.hij(" ",s.lcZ(5,8,s.lcZ(6,10,"PREFERRED_UNIX_GROUP_NAMES.NEW_BUTTON"))," "),s.xp6(3),s.Q6J("disabled",0===n.selectionList[i].selected.length),s.xp6(1),s.hij(" ",s.lcZ(9,12,"PREFERRED_UNIX_GROUP_NAMES.REMOVE_BUTTON")," "),s.xp6(2),s.Q6J("values",n.groupNames.get(t))("selection",n.selectionList[i])("alertText",n.alertText)("headerColumnText",n.headerColumnText)}}let OC=(()=>{class t{constructor(t,e,i,n){this.store=t,this.attributesManagerService=e,this.dialog=i,this.translateService=n,this.namespaces=[],this.userId=this.store.getPerunPrincipal().userId,this.groupNames=new Map,this.groupNameAttributes=[],this.selectionList=[],n.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_DESCRIPTION").subscribe(t=>this.removeDialogDescription=t),n.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t),n.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(t=>this.alertText=t),n.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(t=>this.headerColumnText=t)}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(t=>this.removeDialogDescription=t),this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t),this.translateService.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(t=>this.alertText=t),this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(t=>this.headerColumnText=t)}),this.initSelection(),this.namespaces.forEach(t=>{this.getAttribute(t)})}initSelection(){for(let t=0;t{this.groupNames.set(t,e.value?e.value:[]),this.groupNameAttributes.push(e)})}addGroupName(t){const e=this.groupNames.get(t),i=ng();i.width="400px",i.data={groups:e,namespace:t,userId:this.userId},this.dialog.open(zC,i).afterClosed().subscribe(e=>{e&&this.getAttribute(t)})}removeGroupName(t,e){const i=ng();i.width="600px",i.data={values:this.selectionList[e].selected,attribute:this.groupNameAttributes[e],userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(MC,i).afterClosed().subscribe(i=>{i&&(this.selectionList[e].clear(),this.getAttribute(t))})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Kn),s.Y36(U),s.Y36(Ll),s.Y36(th))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.YNc(4,xC,11,14,"div",1)),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,2,s.lcZ(3,4,"PREFERRED_UNIX_GROUP_NAMES.TITLE"))),s.xp6(3),s.Q6J("ngForOf",e.namespaces))},directives:[n.sg,uh,OL],pipes:[eh,Og],styles:[""]}),t})();function RC(t,e){1&t&&(s.TgZ(0,"app-alert",7),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,s.lcZ(3,3,"ALERTS.NO_SAMBA")),"\n"))}function DC(t,e){1&t&&(s.TgZ(0,"app-alert",7),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,s.lcZ(3,3,"ALERTS.SAMBA_EXISTS")),"\n"))}function PC(t,e){1&t&&(s.TgZ(0,"app-alert",8),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"SAMBA_PASSWORD.PASSWORD_VALIDATION"))))}let NC=(()=>{class t{constructor(t,e,i,n,s){this.attributesManagerService=t,this.store=e,this.usersManagerService=i,this.notificator=n,this.translate=s,s.get("SAMBA_PASSWORD.SUCCESS_MESSAGE").subscribe(t=>this.successMessage=t),s.get("SAMBA_PASSWORD.SHOW_PWD_TOOLTIP").subscribe(t=>this.showPwdTooltip=t),s.get("SAMBA_PASSWORD.HIDE_PWD_TOOLTIP").subscribe(t=>this.hidePwdTooltip=t)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.sambaControl=new Wd("",[od.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 t=(new Date).getTime().toString();this.usersManagerService.createAlternativePassword(this.userId,t,"samba-du",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(t=>{this.sambaExists=!!t.value,this.sambaAttribute=t})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(U),s.Y36(Kn),s.Y36(J),s.Y36(Mg),s.Y36(th))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.YNc(4,RC,4,5,"app-alert",1),s.YNc(5,DC,4,5,"app-alert",1),s.TgZ(6,"mat-form-field",2),s.TgZ(7,"label",2),s._UZ(8,"input",3),s.ALo(9,"translate"),s.ALo(10,"customTranslate"),s.qZA(),s.qZA(),s.TgZ(11,"button",4),s.NdJ("click",function(){return e.showPassword=!e.showPassword}),s.TgZ(12,"mat-icon"),s._uU(13),s.qZA(),s.qZA(),s.TgZ(14,"button",5),s.NdJ("click",function(){return e.setSambaPassword()}),s._uU(15),s.ALo(16,"translate"),s.ALo(17,"customTranslate"),s.qZA(),s.YNc(18,PC,4,5,"app-alert",6)),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,11,s.lcZ(3,13,"SAMBA_PASSWORD.TITLE"))),s.xp6(3),s.Q6J("ngIf",!e.sambaExists),s.xp6(1),s.Q6J("ngIf",e.sambaExists),s.xp6(3),s.s9C("placeholder",s.lcZ(9,15,s.lcZ(10,17,"SAMBA_PASSWORD.INPUT_PLACEHOLDER"))),s.Q6J("formControl",e.sambaControl)("type",e.showPassword?"text":"password"),s.xp6(3),s.Q6J("matTooltip",e.showPassword?e.hidePwdTooltip:e.showPwdTooltip),s.xp6(2),s.Oqu(e.showPassword?"visibility_off":"visibility"),s.xp6(1),s.Q6J("disabled",0===e.sambaControl.value.length||e.sambaControl.invalid),s.xp6(1),s.hij(" ",s.lcZ(16,19,s.lcZ(17,21,"SAMBA_PASSWORD.SET_PASSWORD")),"\n"),s.xp6(3),s.Q6J("ngIf",e.sambaControl.invalid))},directives:[n.O5,Kh,Wg,Qh,Td,op,uh,$p,Jf,$g],pipes:[eh,Og],styles:[""]}),t})();function IC(t,e){1&t&&(s.TgZ(0,"mat-error",8),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"DIALOGS.ADD_SSH.INVALID_TYPE"))))}let qC=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.attributesManagerService=i}ngOnInit(){this.sshControl=new Wd(null,[od.required,od.pattern(t.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){const t=this.data.attribute.value?this.data.attribute.value:[];t.includes(this.sshControl.value)||t.push(this.sshControl.value),this.data.attribute.value=t,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{t.pop()})}}return t.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"],t.sshKeyPattern="^("+t.allowedSshKeys.join("|")+").+$",t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(Al),s.Y36(U))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.TgZ(4,"div",1),s.TgZ(5,"mat-form-field",2),s.TgZ(6,"label",2),s._UZ(7,"textarea",3),s.ALo(8,"translate"),s.ALo(9,"customTranslate"),s.qZA(),s.YNc(10,IC,4,5,"mat-error",4),s.qZA(),s.qZA(),s.TgZ(11,"div",5),s.TgZ(12,"button",6),s.NdJ("click",function(){return e.onCancel()}),s._uU(13),s.ALo(14,"translate"),s.ALo(15,"customTranslate"),s.qZA(),s.TgZ(16,"button",7),s.NdJ("click",function(){return e.onSubmit()}),s._uU(17),s.ALo(18,"translate"),s.ALo(19,"customTranslate"),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,7,s.lcZ(3,9,"DIALOGS.ADD_SSH.TITLE"))),s.xp6(6),s.s9C("placeholder",s.lcZ(8,11,s.lcZ(9,13,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),s.Q6J("formControl",e.sshControl),s.xp6(3),s.Q6J("ngIf",e.sshControl.invalid&&e.sshControl.dirty),s.xp6(3),s.hij(" ",s.lcZ(14,15,s.lcZ(15,17,"DIALOGS.ADD_SSH.CANCEL"))," "),s.xp6(3),s.Q6J("disabled",e.sshControl.invalid),s.xp6(1),s.hij(" ",s.lcZ(18,19,s.lcZ(19,21,"DIALOGS.ADD_SSH.ADD"))," "))},directives:[Sl,El,Kh,Wg,Ig,Qh,hp,Td,op,n.O5,zl,uh,zh],pipes:[eh,Og],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;display:block;margin-top:-1px}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple,perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{position:static!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)}"],encapsulation:2}),t})(),BC=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}ngOnInit(){this.sshKey=this.data.value}onClose(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(yl),s.Y36(Al))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"textarea",1),s._uU(2),s.qZA(),s.qZA(),s.TgZ(3,"mat-dialog-actions"),s.TgZ(4,"button",2),s.NdJ("click",function(){return e.onClose()}),s._uU(5),s.ALo(6,"translate"),s.ALo(7,"customTranslate"),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.Oqu(e.sshKey),s.xp6(3),s.hij(" ",s.lcZ(6,2,s.lcZ(7,4,"DIALOGS.SHOW_SSH.CLOSE"))," "))},directives:[Wg,Ig,zl,uh],pipes:[eh,Og],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}[_ngcontent-%COMP%]:focus{outline:none}"]}),t})();function HC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-list-item",4),s.TgZ(1,"p",5),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().showWholeKey(e)}),s._uU(2),s.qZA(),s.TgZ(3,"button",6),s.ALo(4,"translate"),s.ALo(5,"customTranslate"),s.TgZ(6,"mat-icon"),s._uU(7," file_copy "),s.qZA(),s.qZA(),s.TgZ(8,"button",7),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().removeKey(e,!1)}),s.ALo(9,"translate"),s.ALo(10,"customTranslate"),s.TgZ(11,"mat-icon"),s._uU(12," delete "),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(2),s.Oqu(t),s.xp6(1),s.s9C("matTooltip",s.lcZ(4,4,s.lcZ(5,6,"SSH_KEYS.COPY_TOOLTIP"))),s.Q6J("cdkCopyToClipboard",t),s.xp6(5),s.s9C("matTooltip",s.lcZ(9,8,s.lcZ(10,10,"SSH_KEYS.REMOVE_TOOLTIP")))}}function YC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-list-item",4),s.TgZ(1,"label",8),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().showWholeKey(e)}),s._uU(2),s.qZA(),s.TgZ(3,"button",9),s.TgZ(4,"mat-icon"),s._uU(5," file_copy "),s.qZA(),s.qZA(),s.TgZ(6,"button",10),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().removeKey(e,!0)}),s.TgZ(7,"mat-icon"),s._uU(8," delete "),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(2),s.Oqu(t),s.xp6(1),s.Q6J("cdkCopyToClipboard",t)}}let jC=(()=>{class t{constructor(t,e,i,n){this.store=t,this.attributesManagerService=e,this.dialog=i,this.translateService=n,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 co(!1,[]),this.selectionAdmin=new co(!1,[]),n.get("SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(t=>this.removeDialogDescription=t),n.get("SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t),n.get("ALERTS.NO_ALT_PASSWORDS").subscribe(t=>this.alertText=t),n.get("SSH_KEYS.HEADER_COLUMN").subscribe(t=>this.headerColumnText=t)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(()=>{this.translateService.get("SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(t=>this.removeDialogDescription=t),this.translateService.get("SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t),this.translateService.get("ALERTS.NO_ALT_PASSWORDS").subscribe(t=>this.alertText=t),this.translateService.get("SSH_KEYS.HEADER_COLUMN").subscribe(t=>this.headerColumnText=t)}),this.loading=!0,this.getUserSSH(),this.getAdminSSH()}addKey(t){const e=ng();e.width="850px",e.data={attribute:t?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId},this.dialog.open(qC,e).afterClosed().subscribe(e=>{e&&(t?this.getAdminSSH():this.getUserSSH())})}removeKey(t,e){const i=ng();i.width="600px",i.data={values:[t],attribute:e?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(MC,i).afterClosed().subscribe(t=>{t&&(this.loading=!0,e?(this.getAdminSSH(),this.selectionAdmin.clear()):(this.getUserSSH(),this.selection.clear()))})}getUserSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.userUrn).subscribe(t=>{this.userKeyAttribute=t,this.userKeys=t.value,this.loading=!1})}getAdminSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.adminUrn).subscribe(t=>{this.adminKeyAttribute=t,this.adminKeys=t.value,this.loading=!1})}showWholeKey(t){const e=ng();e.width="600px",e.data={value:t},this.dialog.open(BC,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Kn),s.Y36(U),s.Y36(Ll),s.Y36(th))},t.\u0275cmp=s.Xpm({type:t,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","matRipple","","style","width: auto",4,"ngFor","ngForOf"],[1,"page-title","mt-5"],["matRipple","",1,"dark-hover-list-item",2,"width","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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.TgZ(4,"p"),s._uU(5),s.ALo(6,"translate"),s.ALo(7,"customTranslate"),s.qZA(),s.TgZ(8,"button",1),s.NdJ("click",function(){return e.addKey(!1)}),s._uU(9),s.ALo(10,"translate"),s.ALo(11,"customTranslate"),s.qZA(),s.TgZ(12,"mat-list"),s.YNc(13,HC,13,12,"mat-list-item",2),s.qZA(),s.TgZ(14,"h1",3),s._uU(15),s.ALo(16,"translate"),s.ALo(17,"customTranslate"),s.qZA(),s.TgZ(18,"p"),s._uU(19),s.ALo(20,"translate"),s.ALo(21,"customTranslate"),s.qZA(),s.TgZ(22,"button",1),s.NdJ("click",function(){return e.addKey(!0)}),s._uU(23),s.ALo(24,"translate"),s.ALo(25,"customTranslate"),s.qZA(),s.TgZ(26,"mat-list"),s.YNc(27,YC,9,2,"mat-list-item",2),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,8,s.lcZ(3,10,"SSH_KEYS.SSH_KEYS_TITLE"))),s.xp6(4),s.Oqu(s.lcZ(6,12,s.lcZ(7,14,"SSH_KEYS.SSH_KEYS_DESCRIPTION"))),s.xp6(4),s.hij(" ",s.lcZ(10,16,s.lcZ(11,18,"SSH_KEYS.NEW_KEY")),"\n"),s.xp6(4),s.Q6J("ngForOf",e.userKeys),s.xp6(2),s.Oqu(s.lcZ(16,20,s.lcZ(17,22,"SSH_KEYS.ADMIN_SSH_KEYS_TITLE"))),s.xp6(4),s.Oqu(s.lcZ(20,24,s.lcZ(21,26,"SSH_KEYS.ADMIN_SSH_KEYS_DESCRIPTION"))),s.xp6(4),s.hij(" ",s.lcZ(24,28,s.lcZ(25,30,"SSH_KEYS.NEW_KEY")),"\n"),s.xp6(4),s.Q6J("ngForOf",e.adminKeys))},directives:[uh,dw,n.sg,gw,Vu,z_,$p,Jf],pipes:[eh,Og],styles:[".truncate[_ngcontent-%COMP%]{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap}.center-content[_ngcontent-%COMP%]{margin-bottom:auto;margin-top:auto}.cursor-pointer[_ngcontent-%COMP%], label[_ngcontent-%COMP%]:hover{cursor:pointer}"]}),t})(),FC=(()=>{class t{transform(t){return"virt"===t.namespace.split(":")[4]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"isVirtualAttribute",type:t,pure:!0}),t})();function WC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"th",17),s.TgZ(1,"mat-checkbox",18),s.NdJ("change",function(e){s.CHM(t);const i=s.oxw();return e?i.masterToggle():null}),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(1),s.Q6J("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())("aria-label",t.checkboxLabel())}}function UC(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",19),s.TgZ(1,"mat-checkbox",20),s.NdJ("click",function(t){return t.stopPropagation()})("change",function(e){const i=s.CHM(t).$implicit,n=s.oxw();return e?n.selection.toggle(i):null}),s.ALo(2,"multiWordDataCy"),s.ALo(3,"isVirtualAttribute"),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.Q2q("data-cy","",s.lcZ(2,4,t.displayName),"-checkbox"),s.Q6J("checked",i.selection.isSelected(t))("disabled",s.lcZ(3,6,t)||!t.writable)("aria-label",i.checkboxLabel(t))}}function KC(t,e){1&t&&(s.TgZ(0,"th",21),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")," "))}function ZC(t,e){if(1&t&&(s.TgZ(0,"td",22),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.id)}}function GC(t,e){1&t&&(s.TgZ(0,"th",21),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")," "))}function XC(t,e){if(1&t&&(s.TgZ(0,"td",23),s.TgZ(1,"div",24),s._uU(2),s.qZA(),s.qZA()),2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.s9C("matTooltip",i.getAttributeFullName(t)),s.xp6(1),s.hij(" ",t.displayName," ")}}function VC(t,e){1&t&&(s.TgZ(0,"th",25),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")," "))}function $C(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",23),s.TgZ(1,"perun-web-apps-attribute-value",26),s.NdJ("sendEventToParent2",function(){const e=s.CHM(t).$implicit;return s.oxw().onValueChange(e)}),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.Q6J("attribute",t)("readonly",i.readonly||!t.writable)}}function JC(t,e){1&t&&(s.TgZ(0,"th",21),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")," "))}function QC(t,e){if(1&t&&(s.TgZ(0,"td",23),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.description)}}function tS(t,e){1&t&&s._UZ(0,"tr",27)}function eS(t,e){if(1&t&&(s._UZ(0,"tr",28),s.ALo(1,"translate")),2&t){const t=e.$implicit,i=s.oxw();s.s9C("matTooltip",s.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),s.Q6J("matTooltipPosition","before")("matTooltipDisabled",t.writable||i.readonly)}}function iS(t,e){1&t&&(s.TgZ(0,"app-alert",29),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function nS(t,e){if(1&t&&(s.TgZ(0,"app-alert",29),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.hij(" ",s.lcZ(2,1,t.emptyListText),"\n")}}let sS=(()=>{class t{constructor(t,e){this.authResolver=t,this.tableCheckbox=e,this.attributes=[],this.selection=new co(!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=ig}set matSort(t){this.sort=t,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(t=>"id"!==t)),this.dataSource=new y_(this.attributes.filter(t=>!t.namespace.includes("def:core"))),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}getDataForColumn(t,e){switch(e){case"id":return t.id.toString();case"displayName":return t.displayName;case"description":return t.description;case"value":return JSON.stringify(t.value);case"urn":return t.namespace+":"+t.baseFriendlyName;default:return""}}exportData(t){ug(cg(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),t)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(t=>!this.hiddenColumns.includes(t)),this.dataSource&&(this.dataSource.filterPredicate=(t,e)=>ag(t,e,this.displayedColumns.concat("urn"),this.getDataForColumn,this),this.dataSource.sortData=(t,e)=>rg(t,e,this.getDataForColumn,this),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,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(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}updateMapAttributes(){for(const t of this.items.toArray())"java.util.LinkedHashMap"===t.attribute.type&&t.updateMapAttribute()}onValueChange(t){this.canBeSelected(t)&&this.selection.select(t)}canBeSelected(t){return!sg(t)&&t.writable}getAttributeFullName(t){return`${t.namespace}:${t.friendlyName}`}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(rt),s.Y36(Lg))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(t,e){if(1&t&&(s.Gf(kv,7),s.Gf(mg,7),s.Gf(rv,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.matSort=t.first),s.iGM(t=s.CRH())&&(e.child=t.first),s.iGM(t=s.CRH())&&(e.items=t)}},inputs:{attributes:"attributes",selection:"selection",displayedColumns:"displayedColumns",inDialog:"inDialog",filterValue:"filterValue",tableId:"tableId",readonly:"readonly",hiddenColumns:"hiddenColumns",emptyListText:"emptyListText"},features:[s.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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"perun-web-apps-table-wrapper",1),s.NdJ("exportData",function(t){return e.exportData(t)}),s.TgZ(2,"table",2),s.ynx(3,3),s.YNc(4,WC,2,3,"th",4),s.YNc(5,UC,4,8,"td",5),s.BQk(),s.ynx(6,6),s.YNc(7,KC,3,3,"th",7),s.YNc(8,ZC,2,1,"td",8),s.BQk(),s.ynx(9,9),s.YNc(10,GC,3,3,"th",7),s.YNc(11,XC,3,2,"td",10),s.BQk(),s.ynx(12,11),s.YNc(13,VC,3,3,"th",12),s.YNc(14,$C,2,2,"td",10),s.BQk(),s.ynx(15,13),s.YNc(16,JC,3,3,"th",7),s.YNc(17,QC,2,1,"td",10),s.BQk(),s.YNc(18,tS,1,0,"tr",14),s.YNc(19,eS,2,5,"tr",15),s.qZA(),s.qZA(),s.qZA(),s.YNc(20,iS,3,3,"app-alert",16),s.YNc(21,nS,3,3,"app-alert",16)),2&t&&(s.Q6J("hidden",0===e.dataSource.filteredData.length),s.xp6(1),s.Q6J("tableId",e.tableId)("dataLength",e.dataSource.filteredData.length)("pageSizeOptions",e.pageSizeOptions),s.xp6(1),s.Q6J("dataSource",e.dataSource),s.xp6(16),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns),s.xp6(1),s.Q6J("ngIf",0===e.dataSource.filteredData.length&&0!==e.dataSource.data.length),s.xp6(1),s.Q6J("ngIf",0===e.dataSource.data.length))},directives:[mg,c_,kv,h_,l_,u_,f_,g_,n.O5,d_,vA,p_,Ov,$p,rv,m_,__,$g],pipes:[LA,FC,eh],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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important} .urn-tooltip{max-width:800px!important}"]}),t})();function oS(t,e){1&t&&s._UZ(0,"mat-spinner",5)}function rS(t,e){1&t&&s._UZ(0,"mat-spinner",5)}function aS(t,e){if(1&t&&s._UZ(0,"perun-web-apps-attributes-list",10),2&t){const t=s.oxw(3);s.Q6J("attributes",t.attributes)("readonly",!0)("hiddenColumns",t.hiddenColumns)}}function cS(t,e){if(1&t&&(s.YNc(0,rS,1,0,"mat-spinner",3),s.YNc(1,aS,1,3,"perun-web-apps-attributes-list",9)),2&t){const t=s.oxw(2);s.Q6J("ngIf",t.innerLoading),s.xp6(1),s.Q6J("ngIf",!t.innerLoading)}}function uS(t,e){1&t&&s._UZ(0,"mat-spinner",5)}function lS(t,e){if(1&t&&s._UZ(0,"perun-web-apps-attributes-list",10),2&t){const t=s.oxw(4);s.Q6J("attributes",t.attributes)("readonly",!0)("hiddenColumns",t.hiddenColumns)}}function hS(t,e){if(1&t&&(s.YNc(0,uS,1,0,"mat-spinner",3),s.YNc(1,lS,1,3,"perun-web-apps-attributes-list",9)),2&t){const t=s.oxw(3);s.Q6J("ngIf",t.innerLoading),s.xp6(1),s.Q6J("ngIf",!t.innerLoading)}}function dS(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-expansion-panel",6),s.NdJ("opened",function(){const e=s.CHM(t).$implicit;return s.oxw(2).getMemberData(e)}),s.TgZ(1,"mat-expansion-panel-header"),s.TgZ(2,"mat-panel-title"),s._uU(3),s.ALo(4,"translate"),s.ALo(5,"customTranslate"),s.qZA(),s.qZA(),s.YNc(6,hS,2,2,"ng-template",7),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(3),s.AsE(" ",s.lcZ(4,2,s.lcZ(5,4,"PRIVACY.DATA")),"",t.name," ")}}function pS(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"mat-accordion"),s.TgZ(1,"mat-expansion-panel",6),s.NdJ("opened",function(){return s.CHM(t),s.oxw().getUserData()}),s.TgZ(2,"mat-expansion-panel-header"),s.TgZ(3,"mat-panel-title"),s._uU(4),s.ALo(5,"translate"),s.ALo(6,"customTranslate"),s.qZA(),s.qZA(),s.YNc(7,cS,2,2,"ng-template",7),s.qZA(),s.YNc(8,dS,7,6,"mat-expansion-panel",8),s.qZA()}if(2&t){const t=s.oxw();s.xp6(4),s.hij(" ",s.lcZ(5,2,s.lcZ(6,4,"PRIVACY.USER_INFO"))," "),s.xp6(4),s.Q6J("ngForOf",t.filteredVos)}}let fS=(()=>{class t{constructor(t,e,i,n){this.usersManagerService=t,this.membersService=e,this.attributesManagerService=i,this.storage=n,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(t=>{this.vos=t,this.filteredVos=t,this.outerLoading=!1})}getUserData(){this.innerLoading=!0,this.usersManagerService.getRichUserWithAttributes(this.userId).subscribe(t=>{this.user=t,this.attributes=t.userAttributes,this.username=(new xg).transform(t),this.innerLoading=!1})}getMemberData(t){this.innerLoading=!0,this.membersService.getMemberByUser(t.id,this.userId).subscribe(t=>{this.membersService.getRichMemberWithAttributes(t.id).subscribe(t=>{this.attributes=t.memberAttributes,this.innerLoading=!1})})}applyFilter(t){this.filteredVos=this.vos.filter(e=>e.name.toLowerCase().includes(t.toLowerCase()))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(J),s.Y36(G),s.Y36(U),s.Y36(Kn))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.TgZ(4,"div",1),s.TgZ(5,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(t){return e.applyFilter(t)}),s.ALo(6,"translate"),s.ALo(7,"customTranslate"),s.qZA(),s.YNc(8,oS,1,0,"mat-spinner",3),s.YNc(9,pS,9,6,"mat-accordion",4),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,4,s.lcZ(3,6,"PRIVACY.TITLE"))),s.xp6(4),s.Q6J("placeholder",s.lcZ(6,8,s.lcZ(7,10,"SERVICES.FILTER"))),s.xp6(3),s.Q6J("ngIf",e.outerLoading),s.xp6(1),s.Q6J("ngIf",!e.outerLoading))},directives:[ZT,n.O5,am,gk,dk,pk,fk,uk,n.sg,sS],pipes:[eh,Og],styles:[""]}),t})(),gS=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-home-page"]],decls:1,vars:0,template:function(t,e){1&t&&s._UZ(0,"router-outlet")},directives:[Ln],styles:[""]}),t})(),mS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Qf,n.ez]]}),t})(),_S=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),bS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[_S,Mu],Mu]}),t})(),yS=(()=>{class t{constructor(){this.changes=new lt.xQ,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"}formatYearRange(t,e){return`${t} \u2013 ${e}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const wS={provide:new s.OlP("mat-datepicker-scroll-strategy"),deps:[er],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let AS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[yS,wS],imports:[[n.ez,lh,ar,qr,To,Mu],go]}),t})(),MS=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,fp,lh,kA,Qf,cm,tf]]}),t})(),vS=(()=>{class t extends qu{format(t,e){return"input"===e?`${t.getDate().toString()}.${(t.getMonth()+1).toString()}.${t.getFullYear()}`:t.toDateString()}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=s.n5z(t)))(i||t)}}(),t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const TS={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 kS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[{provide:zu,useClass:vS},{provide:xu,useValue:TS}],imports:[[n.ez,kA,b_,pp,jM,kM,ih,In,Rv,gf,cm,mS,Qf,Pf,lh,tf,Zh,fp,Ug,$u,zg,x_,bS,AS,sb,dl,Np,MS,mo,xl,tg]]}),t})();function LS(t,e){1&t&&(s.TgZ(0,"app-alert"),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function CS(t,e){1&t&&(s.TgZ(0,"th",16),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,s.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))," "))}function SS(t,e){if(1&t&&(s.TgZ(0,"td",17),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.friendlyNameParameter)}}function ES(t,e){1&t&&(s.TgZ(0,"th",16),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,s.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))," "))}function zS(t,e){if(1&t&&(s.TgZ(0,"td",18),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.value)}}function xS(t,e){1&t&&s._UZ(0,"th",16)}function OS(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",19),s.TgZ(1,"button",20),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().resetPassword(e.friendlyNameParameter)}),s._uU(2),s.ALo(3,"translate"),s.ALo(4,"customTranslate"),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.Q6J("disabled",!i.logins.includes(t)),s.xp6(1),s.hij(" ",s.lcZ(3,2,s.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.RESET_PASSWORD"))," ")}}function RS(t,e){1&t&&s._UZ(0,"th",16)}function DS(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"td",19),s.TgZ(1,"button",21),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().changePassword(e)}),s._uU(2),s.ALo(3,"translate"),s.ALo(4,"customTranslate"),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,i=s.oxw();s.xp6(1),s.Q6J("disabled",!i.logins.includes(t)),s.xp6(1),s.hij(" ",s.lcZ(3,2,s.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD"))," ")}}function PS(t,e){1&t&&s._UZ(0,"tr",22)}function NS(t,e){1&t&&s._UZ(0,"tr",23)}let IS=(()=>{class t{constructor(t,e,i,n,s,o){this.attributesManagerService=t,this.store=e,this.dialog=i,this.route=n,this.router=s,this.otherApplicationService=o,this.nameSpaces=[],this.logins=[],this.displayedColumns=["namespace","value","reset","change"]}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.nameSpaces=this.store.get("password_namespace_attributes"),this.attributesManagerService.getLogins(this.userId).subscribe(t=>{const e=this.nameSpaces.map(t=>{const e=t.split(":");return e[e.length-1]});this.logins=t.filter(t=>e.includes(t.friendlyNameParameter)),this.dataSource=new y_(t);const i=this.route.snapshot.queryParamMap.get("namespace");if(i){const t=this.logins.find(t=>t.friendlyNameParameter===i);t&&this.changePassword(t)}})}resetPassword(t){window.open(this.otherApplicationService.getUrlForOtherApplication("pwdReset",t),"_blank")}changePassword(t){this.router.navigate([],{queryParams:{namespace:t.friendlyNameParameter},queryParamsHandling:"merge"});const e=ng();e.width="600px",e.data={login:t.value,namespace:t.friendlyName.split(":")[1]},this.dialog.open(F_,e).afterClosed().subscribe(()=>{this.router.navigate([],{queryParams:{namespace:null},queryParamsHandling:"merge"})})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(U),s.Y36(Kn),s.Y36(Ll),s.Y36(Qe),s.Y36(Mn),s.Y36(Sg))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-password-reset"]],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(t,e){1&t&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA(),s.YNc(4,LS,4,5,"app-alert",1),s.TgZ(5,"div",2),s.TgZ(6,"div",3),s.TgZ(7,"div",4),s.TgZ(8,"table",5),s.ynx(9,6),s.YNc(10,CS,4,5,"th",7),s.YNc(11,SS,2,1,"td",8),s.BQk(),s.ynx(12,9),s.YNc(13,ES,4,5,"th",7),s.YNc(14,zS,2,1,"td",10),s.BQk(),s.ynx(15,11),s.YNc(16,xS,1,0,"th",7),s.YNc(17,OS,5,6,"td",12),s.BQk(),s.ynx(18,13),s.YNc(19,RS,1,0,"th",7),s.YNc(20,DS,5,6,"td",12),s.BQk(),s.YNc(21,PS,1,0,"tr",14),s.YNc(22,NS,1,0,"tr",15),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,5,s.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE")),"\n"),s.xp6(3),s.Q6J("ngIf",!e.logins.length),s.xp6(4),s.Q6J("dataSource",e.dataSource),s.xp6(13),s.Q6J("matHeaderRowDef",e.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",e.displayedColumns))},directives:[n.O5,c_,kv,h_,l_,u_,f_,g_,$g,d_,p_,uh,m_,__],pipes:[eh,Og],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}"]}),t})();function qS(t,e){1&t&&(s.TgZ(0,"app-alert",11),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.INFO"))))}function BS(t,e){1&t&&(s.TgZ(0,"app-alert",12),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.IMG_TOO_LONG"))))}function HS(t,e){if(1&t&&(s.TgZ(0,"div",13),s._UZ(1,"img",14),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("src",t.newImage,s.LSH)}}function YS(t,e){1&t&&(s.TgZ(0,"app-alert",11),s._uU(1),s.ALo(2,"translate"),s.ALo(3,"customTranslate"),s.qZA()),2&t&&(s.xp6(1),s.Oqu(s.lcZ(2,1,s.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.DELAY_INFO"))))}i(6577);let jS=(()=>{class t{constructor(t,e,i,n){this.dialogRef=t,this.data=e,this.attributesManagerService=i,this.store=n,this.newImage=""}ngOnInit(){this.theme=this.data.theme,this.attribute=this.data.attribute,this.newImage=this.attribute.value}handleInputChange(t){const e=t.dataTransfer?t.dataTransfer.files[0]:t.target.files[0],i=new FileReader;e.type.match(/image-*/)?(i.onload=this._handleReaderLoaded.bind(this),i.readAsDataURL(e)):alert("invalid format")}_handleReaderLoaded(t){const e=t.target;this.imgTooLong=e.result.length>=5120,this.newImage=e.result}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 t(t,e,i,n){n.beginPath(),n.rect(20*t,20*e,20,20),n.fillStyle="rgb("+i.join(",")+")",n.fill()}this.newImage=function(){const e=function(){const t=document.createElement("canvas");t.width=100,t.height=100;const e=t.getContext("2d");return e.beginPath(),e.rect(0,0,100,100),e.fillStyle="#FFFFFF",e.fill(),t}(),i=e.getContext("2d"),n=function(){const t=[];for(let e=0;e<3;e++){const e=Math.floor(256*Math.random()),i=Math.max(120,e),n=Math.min(200,i);t.push(n)}return t}();for(let s=0;s{class t{constructor(t,e,i,n){this.dialog=t,this.attributesManagerService=e,this.store=i,this.translate=n,this.imageSrc="",this.mfaUrl="",n.get("AUTHENTICATION.DELETE_IMG_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t),n.get("AUTHENTICATION.DELETE_IMG_DIALOG_DESC").subscribe(t=>this.removeDialogDescription=t)}ngOnInit(){this.translate.onLangChange.subscribe(()=>{this.translate.get("AUTHENTICATION.DELETE_IMG_DIALOG_TITLE").subscribe(t=>this.removeDialogTitle=t),this.translate.get("AUTHENTICATION.DELETE_IMG_DIALOG_DESC").subscribe(t=>this.removeDialogDescription=t),this.mfaUrl=this.store.get("mfa","url_"+this.translate.currentLang)}),this.mfaUrl=this.store.get("mfa","url_"+this.translate.currentLang),this.loadImage()}onAddImg(){const t=ng();t.width="500px",t.data={theme:"user-theme",attribute:this.imgAtt},this.dialog.open(jS,t).afterClosed().subscribe(t=>{t&&this.loadImage()})}onDeleteImg(){const t=ng();t.width="600px",t.data={doNotShowValues:!0,attribute:this.imgAtt,userId:this.store.getPerunPrincipal().userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(MC,t).afterClosed().subscribe(t=>{t&&this.loadImage()})}loadImage(){const t=this.store.get("mfa","security_image_attribute");this.displayImageBlock=this.store.get("mfa","enable_security_image"),this.attributesManagerService.getUserAttributeByName(this.store.getPerunPrincipal().userId,t).subscribe(e=>{e?(this.imgAtt=e,this.imageSrc=this.imgAtt.value):this.attributesManagerService.getAttributeDefinitionByName(t).subscribe(t=>{this.imgAtt=t})})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Ll),s.Y36(U),s.Y36(Kn),s.Y36(th))},t.\u0275cmp=s.Xpm({type:t,selectors:[["perun-web-apps-settings-authentication"]],decls:10,vars:11,consts:[["class","mb-5",4,"ngIf"],[1,"page-subtitle"],[3,"href"],[1,"mb-5"],[4,"ngIf"],["color","accent","mat-flat-button","",1,"m-1","action-button",3,"click"],["color","warn","mat-flat-button","",1,"m-1",3,"disabled","click"],["alt","",1,"img-size",3,"src"]],template:function(t,e){1&t&&(s.YNc(0,WS,18,22,"div",0),s.TgZ(1,"h1",1),s._uU(2),s.ALo(3,"translate"),s.ALo(4,"customTranslate"),s.qZA(),s.TgZ(5,"span"),s._uU(6),s.ALo(7,"translate"),s.TgZ(8,"a",2),s._uU(9),s.qZA(),s.qZA()),2&t&&(s.Q6J("ngIf",e.displayImageBlock),s.xp6(2),s.Oqu(s.lcZ(3,5,s.lcZ(4,7,"AUTHENTICATION.MFA"))),s.xp6(4),s.Oqu(s.lcZ(7,9,"AUTHENTICATION.MFA_INFO")),s.xp6(2),s.Q6J("href",e.mfaUrl,s.LSH),s.xp6(1),s.Oqu(e.mfaUrl))},directives:[n.O5,uh],pipes:[eh,Og],styles:[".img-size[_ngcontent-%COMP%]{width:100px;height:100px}"]}),t})(),KS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[n.ez,lh,Qf,In,kS,ih,Zh,fp,Ug,mS]]}),t})();function ZS(t,e){1&t&&(s.TgZ(0,"app-alert",8),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&t&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}const GS=[{path:"",redirectTo:"profile",pathMatch:"full"},{path:"login",component:(()=>{class t{constructor(t){this.auth=t}startAuth(){this.auth.startAuthentication()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(Rl))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.TgZ(3,"h4",3),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"button",4),s.NdJ("click",function(){return e.startAuth()}),s._uU(7),s.ALo(8,"translate"),s.TgZ(9,"mat-icon"),s._uU(10," login "),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(4),s.hij(" ",s.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),s.xp6(3),s.hij(" ",s.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},directives:[uh,Jf],pipes:[eh],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),t})()},{path:"service-access",component:(()=>{class t{constructor(t,e,i){this.authzService=t,this.dialog=e,this.translate=i,this.wrongUsernameOrPassword=!1}ngOnInit(){this.usernameCtrl=new Wd(null,[od.required]),this.passwordCtrl=new Wd(null,[od.required])}startAuth(){sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe(t=>{sessionStorage.setItem("baPrincipal",JSON.stringify(t)),location.reload()},()=>{this.wrongUsernameOrPassword=!0})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(K),s.Y36(Ll),s.Y36(th))},t.\u0275cmp=s.Xpm({type:t,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(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.TgZ(3,"h2"),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.YNc(6,ZS,3,3,"app-alert",3),s.TgZ(7,"mat-form-field",4),s.TgZ(8,"mat-label"),s._uU(9),s.ALo(10,"translate"),s.qZA(),s._UZ(11,"input",5),s.TgZ(12,"mat-error"),s._uU(13),s.ALo(14,"translate"),s.qZA(),s.qZA(),s.TgZ(15,"mat-form-field",4),s.TgZ(16,"mat-label"),s._uU(17),s.ALo(18,"translate"),s.qZA(),s._UZ(19,"input",6),s.TgZ(20,"mat-error"),s._uU(21),s.ALo(22,"translate"),s.qZA(),s.qZA(),s.TgZ(23,"button",7),s.NdJ("click",function(){return e.startAuth()}),s._uU(24),s.ALo(25,"translate"),s.TgZ(26,"mat-icon"),s._uU(27," login "),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(4),s.Oqu(s.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),s.xp6(2),s.Q6J("ngIf",e.wrongUsernameOrPassword),s.xp6(3),s.Oqu(s.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),s.xp6(2),s.Q6J("formControl",e.usernameCtrl),s.xp6(2),s.hij(" ",s.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),s.xp6(4),s.Oqu(s.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),s.xp6(2),s.Q6J("formControl",e.passwordCtrl)("type","password"),s.xp6(2),s.hij(" ",s.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),s.xp6(2),s.Q6J("disabled",e.usernameCtrl.invalid||e.passwordCtrl.invalid),s.xp6(1),s.hij(" ",s.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},directives:[n.O5,Kh,Nh,Wg,Qh,hp,Td,op,zh,uh,Jf,$g],pipes:[eh],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}"]}),t})()},{path:"profile",component:gS,data:{breadcrumb:"MENU_ITEMS.PROFILE"},children:[{path:"",component:bv,data:{breadcrumb:"MENU_ITEMS.PROFILE"}},{path:"identities",component:sT,data:{breadcrumb:"MENU_ITEMS.IDENTITIES"}},{path:"groups",component:WT,data:{breadcrumb:"MENU_ITEMS.GROUPS"}},{path:"services",component:sL,data:{breadcrumb:"MENU_ITEMS.SERVICES"}},{path:"organizations",component:gL,data:{breadcrumb:"MENU_ITEMS.VOS"}},{path:"privacy",component:fS,data:{breadcrumb:"MENU_ITEMS.PRIVACY"}},{path:"settings",component:mL,data:{breadcrumb:"MENU_ITEMS.SETTINGS"},children:[{path:"",component:IL,data:{breadcrumb:"MENU_ITEMS.SETTINGS"}},{path:"altPasswords",component:PL,data:{breadcrumb:"SETTINGS.ALTERNATIVE_PASSWORDS"}},{path:"auth",component:US,data:{breadcrumb:"SETTINGS.AUTHENTICATION"}},{path:"dataQuotas",component:aC,data:{breadcrumb:"SETTINGS.DATA_QUOTAS"}},{path:"mailingLists",component:fC,data:{breadcrumb:"SETTINGS.MAILING_LISTS"}},{path:"prefShells",component:CC,data:{breadcrumb:"SETTINGS.PREFERRED_SHELLS"}},{path:"prefGroupNames",component:OC,data:{breadcrumb:"SETTINGS.PREFERRED_UNIX_GROUP_NAMES"}},{path:"sambaPassword",component:NC,data:{breadcrumb:"SETTINGS.SAMBA_PASSWORD"}},{path:"sshKeys",component:jC,data:{breadcrumb:"SETTINGS.SSH_KEYS"}},{path:"passwordReset",component:IS,data:{breadcrumb:"SETTINGS.PASSWORD_RESET"}}]}]}];let XS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[In.forRoot(GS,{preloadingStrategy:En,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})]]}),t})();class VS{constructor(t,e="/assets/i18n/",i=".json"){this.http=t,this.prefix=e,this.suffix=i}getTranslation(t){return this.http.get(`${this.prefix}${t}${this.suffix}`)}}let $S=(()=>{class t{constructor(t,e,i,n,s){this.http=t,this.storeService=e,this.authzSevice=i,this.titleService=n,this.utilsService=s}initializeColors(t,e){return new Promise(i=>{e.forEach(t=>{const e=this.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e)}),t.forEach(t=>{const e=this.storeService.get("theme",t.configValue);document.documentElement.style.setProperty(t.cssVariable,e),this.setEntityTheme(t.entity,e)}),i()})}setEntityTheme(t,e){const i=(n=e,[JS(tinycolor(n).lighten(52),"50"),JS(tinycolor(n).lighten(37),"100"),JS(tinycolor(n).lighten(26),"200"),JS(tinycolor(n).lighten(12),"300"),JS(tinycolor(n).lighten(6),"400"),JS(tinycolor(n),"500"),JS(tinycolor(n).darken(6),"600"),JS(tinycolor(n).darken(12),"700"),JS(tinycolor(n).darken(18),"800"),JS(tinycolor(n).darken(24),"900"),JS(tinycolor(n).lighten(50).saturate(30),"A100"),JS(tinycolor(n).lighten(30).saturate(30),"A200"),JS(tinycolor(n).lighten(10).saturate(15),"A400"),JS(tinycolor(n).lighten(5).saturate(5),"A700")]);var n;for(const s of i){const e=`--${t}-theme-primary-contrast-${s.name}`,i=s.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${t}-theme-primary-${s.name}`,`${s.red},${s.green},${s.blue}`),document.documentElement.style.setProperty(e,i)}}loadAppDefaultConfig(){return new Promise(t=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(e=>{this.storeService.setDefaultConfig(e),t()})})}loadAppInstanceConfig(){return new Promise(t=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(e=>{this.storeService.setInstanceConfig(e);const i=document.location.hostname;void 0!==e.brandings&&void 0!==e.brandings[i]&&this.storeService.setBanding(i),t()},()=>{console.log("instance config not detected"),t()})})}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(t=>{const e=document.querySelector("link[rel*='icon']")||document.createElement("link");e.type="image/x-icon",e.rel="shortcut icon",e.href=this.storeService.get("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(e),t()})}setApiUrl(){return new Promise(t=>{let e=this.storeService.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(e=e.replace("oauth","ba")),this.authzSevice.configuration.basePath=e,this.titleService.setTitle(this.storeService.get("document_title")),t()})}loadAppsConfig(){return new Promise((t,e)=>{this.utilsService.getAppsConfig().subscribe(e=>{this.storeService.setAppsConfig(e),t()},t=>e(t))})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Y.eN),s.LFG(Kn),s.LFG(K),s.LFG(H),s.LFG(Q))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function JS(t,e){const i=tinycolor(t),n=i.toRgb();return{name:e,hex:i.toHexString(),darkContrast:i.isLight(),red:n.r,green:n.g,blue:n.b}}let QS=(()=>{class t{constructor(t,e,i){this.initAuthService=t,this.appConfigService=e,this.location=i,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(t=>{throw console.error(t),this.location.go("/"),location.reload(),t}).then(t=>t?this.initAuthService.loadPrincipal().then(()=>this.appConfigService.loadAppsConfig()):this.initAuthService.handleAuthStart())}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(bg),s.LFG($S),s.LFG(n.Ye))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;let tE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Eb]]}),t})();new s.GfV("12.0.0-beta.34");let eE=(()=>{class t{constructor(t,e){(0,n.PM)(e)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,i=[]){return{ngModule:t,providers:e.serverLoaded?[{provide:Rb,useValue:Object.assign(Object.assign({},Ob),e)},{provide:Pb,useValue:i,multi:!0},{provide:Db,useValue:!0}]:[{provide:Rb,useValue:Object.assign(Object.assign({},Ob),e)},{provide:Pb,useValue:i,multi:!0}]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Db),s.LFG(s.Lbi))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[VL,by,tE],VL,by,tE]}),t})(),iE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[Mu],Mu]}),t})();const nE=new s.OlP("perun-api-service");let sE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),oE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[sE,$u,Mu,dr],sE,Mu]}),t})();const rE={provide:Y.TP,useExisting:(0,s.Gpc)(()=>vg),multi:!0};function aE(t){return new VS(t,"./assets/i18n/",".json")}function cE(t){const e={basePath:t.get("api_url")};return new W(e)}const uE=t=>()=>t.initialize();let lE=(()=>{class t{constructor(t,e){this.customIconService=t,this.translate=e,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(yg),s.LFG(th))},t.\u0275mod=s.oAB({type:t,bootstrap:[nA]}),t.\u0275inj=s.cJS({providers:[yg,{provide:s.ip1,useFactory:uE,multi:!0,deps:[QS]},{provide:W,useFactory:cE,deps:[Kn]},xg,vg,rE,{provide:nE,useClass:kg}],imports:[[q,fu,Y.JF,ih.forRoot({loader:{provide:Il,useFactory:aE,deps:[Y.eN]}}),XS,Qf,Jy,mw,In,lh,eE,Lb,kS,mS,mk,Zh,Np,xl,b_,Ug,fp,kA,gf,cm,Rv,iE,x_,zg,wT,$u,tf,oE,sb,pp,KS,tg,Pf,Ol.zr.forRoot()]]}),t})();(0,s.G48)(),N().bootstrapModule(lE).catch(t=>console.error(t))},1511:function(t,e,i){"use strict";i.d(e,{mr:function(){return w},Ov:function(){return kt},ez:function(){return St},K0:function(){return c},uU:function(){return Ct},Do:function(){return M},V_:function(){return h},Ye:function(){return v},S$:function(){return b},mk:function(){return ct},sg:function(){return lt},O5:function(){return dt},PC:function(){return yt},RF:function(){return mt},n9:function(){return _t},ED:function(){return bt},b0:function(){return A},lw:function(){return u},gd:function(){return Lt},EM:function(){return Ot},JF:function(){return Pt},NF:function(){return zt},PM:function(){return xt},w_:function(){return a},bD:function(){return Et},q:function(){return o},Mx:function(){return at},HT:function(){return r}});var n=i(1572);let s=null;function o(){return s}function r(t){s||(s=t)}class a{}const c=new n.OlP("DocumentToken");let u=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:l,token:t,providedIn:"platform"}),t})();function l(){return(0,n.LFG)(d)}const h=new n.OlP("Location Initialized");let d=(()=>{class t extends u{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return o().getBaseHref(this._doc)}onPopState(t){const e=o().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=o().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}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(t){this.location.pathname=t}pushState(t,e,i){p()?this._history.pushState(t,e,i):this.location.hash=i}replaceState(t,e,i){p()?this._history.replaceState(t,e,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(c))},t.\u0275prov=(0,n.Yz7)({factory:f,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function f(){return new d((0,n.LFG)(c))}function g(t,e){if(0==t.length)return e;if(0==e.length)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,2==i?t+e.substring(1):1==i?t+e:t+"/"+e}function m(t){const e=t.match(/#|\?|$/),i=e&&e.index||t.length;return t.slice(0,i-("/"===t[i-1]?1:0))+t.slice(i)}function _(t){return t&&"?"!==t[0]?"?"+t:t}let b=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,n.Yz7)({factory:y,token:t,providedIn:"root"}),t})();function y(t){const e=(0,n.LFG)(c).location;return new A((0,n.LFG)(u),e&&e.origin||"")}const w=new n.OlP("appBaseHref");let A=(()=>{class t extends b{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return g(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+_(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${e}${i}`:e}pushState(t,e,i,n){const s=this.prepareExternalUrl(i+_(n));this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){const s=this.prepareExternalUrl(i+_(n));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformLocation).historyGo)||void 0===i||i.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(u),n.LFG(w,8))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),M=(()=>{class t extends b{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=g(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,i,n){let s=this.prepareExternalUrl(i+_(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){let s=this.prepareExternalUrl(i+_(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformLocation).historyGo)||void 0===i||i.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(u),n.LFG(w,8))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),v=(()=>{class t{constructor(t,e){this._subject=new n.vpe,this._urlChangeListeners=[],this._platformStrategy=t;const i=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=m(k(i)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+_(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,k(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",i=null){this._platformStrategy.pushState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+_(e)),i)}replaceState(t,e="",i=null){this._platformStrategy.replaceState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+_(e)),i)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,i;null===(i=(e=this._platformStrategy).historyGo)||void 0===i||i.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(i=>i(t,e))}subscribe(t,e,i){return this._subject.subscribe({next:t,error:e,complete:i})}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(b),n.LFG(u))},t.normalizeQueryParams=_,t.joinWithSlash=g,t.stripTrailingSlash=m,t.\u0275prov=(0,n.Yz7)({factory:T,token:t,providedIn:"root"}),t})();function T(){return new v((0,n.LFG)(b),(0,n.LFG)(u))}function k(t){return t.replace(/\/index.html$/,"")}var L=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),C=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),S=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),E=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),z=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function x(t,e){return I((0,n.cg1)(t)[n.wAp.DateFormat],e)}function O(t,e){return I((0,n.cg1)(t)[n.wAp.TimeFormat],e)}function R(t,e){return I((0,n.cg1)(t)[n.wAp.DateTimeFormat],e)}function D(t,e){const i=(0,n.cg1)(t),s=i[n.wAp.NumberSymbols][e];if(void 0===s){if(e===z.CurrencyDecimal)return i[n.wAp.NumberSymbols][z.Decimal];if(e===z.CurrencyGroup)return i[n.wAp.NumberSymbols][z.Group]}return s}const P=n.kL8;function N(t){if(!t[n.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[n.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function I(t,e){for(let i=e;i>-1;i--)if(void 0!==t[i])return t[i];throw new Error("Locale data API: locale data undefined")}function q(t){const[e,i]=t.split(":");return{hours:+e,minutes:+i}}const B=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,H={},Y=/((?:[^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 j=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),F=function(t){return 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}({}),W=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function U(t,e,i,n){let s=function(t){if(st(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[e,i=1,n=1]=t.split("-").map(t=>+t);return K(e,i-1,n)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(B))return function(t){const e=new Date(0);let i=0,n=0;const s=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),s.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const r=Number(t[4]||0)-i,a=Number(t[5]||0)-n,c=Number(t[6]||0),u=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,r,a,c,u),e}(i)}const e=new Date(t);if(!st(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=Z(i,e)||e;let o,r=[];for(;e;){if(o=Y.exec(e),!o){r.push(e);break}{r=r.concat(o.slice(1));const t=r.pop();if(!t)break;e=t}}let a=s.getTimezoneOffset();n&&(a=nt(n,a),s=function(t,e,i){const n=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(nt(e,n)-n))}(s,n));let c="";return r.forEach(t=>{const e=function(t){if(it[t])return it[t];let e;switch(t){case"G":case"GG":case"GGG":e=$(W.Eras,S.Abbreviated);break;case"GGGG":e=$(W.Eras,S.Wide);break;case"GGGGG":e=$(W.Eras,S.Narrow);break;case"y":e=V(F.FullYear,1,0,!1,!0);break;case"yy":e=V(F.FullYear,2,0,!0,!0);break;case"yyy":e=V(F.FullYear,3,0,!1,!0);break;case"yyyy":e=V(F.FullYear,4,0,!1,!0);break;case"Y":e=et(1);break;case"YY":e=et(2,!0);break;case"YYY":e=et(3);break;case"YYYY":e=et(4);break;case"M":case"L":e=V(F.Month,1,1);break;case"MM":case"LL":e=V(F.Month,2,1);break;case"MMM":e=$(W.Months,S.Abbreviated);break;case"MMMM":e=$(W.Months,S.Wide);break;case"MMMMM":e=$(W.Months,S.Narrow);break;case"LLL":e=$(W.Months,S.Abbreviated,C.Standalone);break;case"LLLL":e=$(W.Months,S.Wide,C.Standalone);break;case"LLLLL":e=$(W.Months,S.Narrow,C.Standalone);break;case"w":e=tt(1);break;case"ww":e=tt(2);break;case"W":e=tt(1,!0);break;case"d":e=V(F.Date,1);break;case"dd":e=V(F.Date,2);break;case"c":case"cc":e=V(F.Day,1);break;case"ccc":e=$(W.Days,S.Abbreviated,C.Standalone);break;case"cccc":e=$(W.Days,S.Wide,C.Standalone);break;case"ccccc":e=$(W.Days,S.Narrow,C.Standalone);break;case"cccccc":e=$(W.Days,S.Short,C.Standalone);break;case"E":case"EE":case"EEE":e=$(W.Days,S.Abbreviated);break;case"EEEE":e=$(W.Days,S.Wide);break;case"EEEEE":e=$(W.Days,S.Narrow);break;case"EEEEEE":e=$(W.Days,S.Short);break;case"a":case"aa":case"aaa":e=$(W.DayPeriods,S.Abbreviated);break;case"aaaa":e=$(W.DayPeriods,S.Wide);break;case"aaaaa":e=$(W.DayPeriods,S.Narrow);break;case"b":case"bb":case"bbb":e=$(W.DayPeriods,S.Abbreviated,C.Standalone,!0);break;case"bbbb":e=$(W.DayPeriods,S.Wide,C.Standalone,!0);break;case"bbbbb":e=$(W.DayPeriods,S.Narrow,C.Standalone,!0);break;case"B":case"BB":case"BBB":e=$(W.DayPeriods,S.Abbreviated,C.Format,!0);break;case"BBBB":e=$(W.DayPeriods,S.Wide,C.Format,!0);break;case"BBBBB":e=$(W.DayPeriods,S.Narrow,C.Format,!0);break;case"h":e=V(F.Hours,1,-12);break;case"hh":e=V(F.Hours,2,-12);break;case"H":e=V(F.Hours,1);break;case"HH":e=V(F.Hours,2);break;case"m":e=V(F.Minutes,1);break;case"mm":e=V(F.Minutes,2);break;case"s":e=V(F.Seconds,1);break;case"ss":e=V(F.Seconds,2);break;case"S":e=V(F.FractionalSeconds,1);break;case"SS":e=V(F.FractionalSeconds,2);break;case"SSS":e=V(F.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=J(j.Short);break;case"ZZZZZ":e=J(j.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=J(j.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=J(j.Long);break;default:return null}return it[t]=e,e}(t);c+=e?e(s,i,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function K(t,e,i){const n=new Date(0);return n.setFullYear(t,e,i),n.setHours(0,0,0),n}function Z(t,e){const i=function(t){return(0,n.cg1)(t)[n.wAp.LocaleId]}(t);if(H[i]=H[i]||{},H[i][e])return H[i][e];let s="";switch(e){case"shortDate":s=x(t,E.Short);break;case"mediumDate":s=x(t,E.Medium);break;case"longDate":s=x(t,E.Long);break;case"fullDate":s=x(t,E.Full);break;case"shortTime":s=O(t,E.Short);break;case"mediumTime":s=O(t,E.Medium);break;case"longTime":s=O(t,E.Long);break;case"fullTime":s=O(t,E.Full);break;case"short":const e=Z(t,"shortTime"),i=Z(t,"shortDate");s=G(R(t,E.Short),[e,i]);break;case"medium":const n=Z(t,"mediumTime"),o=Z(t,"mediumDate");s=G(R(t,E.Medium),[n,o]);break;case"long":const r=Z(t,"longTime"),a=Z(t,"longDate");s=G(R(t,E.Long),[r,a]);break;case"full":const c=Z(t,"fullTime"),u=Z(t,"fullDate");s=G(R(t,E.Full),[c,u])}return s&&(H[i][e]=s),s}function G(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,i){return null!=e&&i in e?e[i]:t})),t}function X(t,e,i="-",n,s){let o="";(t<0||s&&t<=0)&&(s?t=1-t:(t=-t,o=i));let r=String(t);for(;r.length0||a>-i)&&(a+=i),t===F.Hours)0===a&&-12===i&&(a=12);else if(t===F.FractionalSeconds)return c=e,X(a,3).substr(0,c);var c;const u=D(r,z.MinusSign);return X(a,e,u,n,s)}}function $(t,e,i=C.Format,s=!1){return function(o,r){return function(t,e,i,s,o,r){switch(i){case W.Months:return function(t,e,i){const s=(0,n.cg1)(t),o=I([s[n.wAp.MonthsFormat],s[n.wAp.MonthsStandalone]],e);return I(o,i)}(e,o,s)[t.getMonth()];case W.Days:return function(t,e,i){const s=(0,n.cg1)(t),o=I([s[n.wAp.DaysFormat],s[n.wAp.DaysStandalone]],e);return I(o,i)}(e,o,s)[t.getDay()];case W.DayPeriods:const a=t.getHours(),c=t.getMinutes();if(r){const t=function(t){const e=(0,n.cg1)(t);return N(e),(e[n.wAp.ExtraData][2]||[]).map(t=>"string"==typeof t?q(t):[q(t[0]),q(t[1])])}(e),i=function(t,e,i){const s=(0,n.cg1)(t);N(s);const o=I([s[n.wAp.ExtraData][0],s[n.wAp.ExtraData][1]],e)||[];return I(o,i)||[]}(e,o,s),r=t.findIndex(t=>{if(Array.isArray(t)){const[e,i]=t,n=a>=e.hours&&c>=e.minutes,s=a0?Math.floor(s/60):Math.ceil(s/60);switch(t){case j.Short:return(s>=0?"+":"")+X(r,2,o)+X(Math.abs(s%60),2,o);case j.ShortGMT:return"GMT"+(s>=0?"+":"")+X(r,1,o);case j.Long:return"GMT"+(s>=0?"+":"")+X(r,2,o)+":"+X(Math.abs(s%60),2,o);case j.Extended:return 0===n?"Z":(s>=0?"+":"")+X(r,2,o)+":"+X(Math.abs(s%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}function Q(t){return K(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function tt(t,e=!1){return function(i,n){let s;if(e){const t=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,e=i.getDate();s=1+Math.floor((e+t)/7)}else{const t=Q(i),e=function(t){const e=K(t,0,1).getDay();return K(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),n=t.getTime()-e.getTime();s=1+Math.round(n/6048e5)}return X(s,t,D(n,z.MinusSign))}}function et(t,e=!1){return function(i,n){return X(Q(i).getFullYear(),t,D(n,z.MinusSign),e)}}const it={};function nt(t,e){t=t.replace(/:/g,"");const i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function st(t){return t instanceof Date&&!isNaN(t.valueOf())}class ot{}let rt=(()=>{class t extends ot{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(P(e||this.locale)(t)){case L.Zero:return"zero";case L.One:return"one";case L.Two:return"two";case L.Few:return"few";case L.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(n.soG))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})();function at(t,e){e=encodeURIComponent(e);for(const i of t.split(";")){const t=i.indexOf("="),[n,s]=-1==t?[i,""]:[i.slice(0,t),i.slice(t+1)];if(n.trim()===e)return decodeURIComponent(s)}return null}let ct=(()=>{class t{constructor(t,e,i,n){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=i,this._renderer=n,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&((0,n.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,n.AaK)(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.ZZ4),n.Y36(n.aQg),n.Y36(n.SBq),n.Y36(n.Qsj))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class ut{constructor(t,e,i,n){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=n}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 lt=(()=>{class t{constructor(t,e,i){this._viewContainer=t,this._template=e,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const i=this._ngForOf;if(!this._differ&&i)try{this._differ=this._differs.find(i).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${i}' of type '${t=i,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,i,n)=>{if(null==t.previousIndex){const i=this._viewContainer.createEmbeddedView(this._template,new ut(null,this._ngForOf,-1,-1),null===n?void 0:n),s=new ht(t,i);e.push(s)}else if(null==n)this._viewContainer.remove(null===i?void 0:i);else if(null!==i){const s=this._viewContainer.get(i);this._viewContainer.move(s,n);const o=new ht(t,s);e.push(o)}});for(let i=0;i{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(n.ZZ4))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class ht{constructor(t,e){this.record=t,this.view=e}}let dt=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new pt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){ft("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){ft("ngIfElse",t),this._elseTemplateRef=t,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(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class pt{constructor(){this.$implicit=null,this.ngIf=null}}function ft(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${(0,n.AaK)(e)}'.`)}class gt{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let mt=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,i){this.ngSwitch=i,i._addCase(),this._view=new gt(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(mt,9))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),bt=(()=>{class t{constructor(t,e,i){i._addDefault(new gt(t,e))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(mt,9))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),yt=(()=>{class t{constructor(t,e,i){this._ngEl=t,this._differs=e,this._renderer=i,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[i,n]=t.split(".");null!=(e=null!=e&&n?`${e}${n}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,i,e):this._renderer.removeStyle(this._ngEl.nativeElement,i)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.SBq),n.Y36(n.aQg),n.Y36(n.Qsj))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})();function wt(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${(0,n.AaK)(t)}'`)}class At{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Mt{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const vt=new Mt,Tt=new At;let kt=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if((0,n.QGY)(e))return vt;if((0,n.F4k)(e))return Tt;throw wt(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.sBO,16))},t.\u0275pipe=n.Yjl({name:"async",type:t,pure:!1}),t})(),Lt=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw wt(t,e);return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"uppercase",type:t,pure:!0}),t})(),Ct=(()=>{class t{constructor(t){this.locale=t}transform(e,i="mediumDate",n,s){if(null==e||""===e||e!=e)return null;try{return U(e,i,s||this.locale,n)}catch(o){throw wt(t,o.message)}}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.soG,16))},t.\u0275pipe=n.Yjl({name:"date",type:t,pure:!0}),t})(),St=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:ot,useClass:rt}]}),t})();const Et="browser";function zt(t){return t===Et}function xt(t){return"server"===t}let Ot=(()=>{class t{}return t.\u0275prov=(0,n.Yz7)({token:t,providedIn:"root",factory:()=>new Rt((0,n.LFG)(c),window)}),t})();class Rt{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const i=t.getElementById(e)||t.getElementsByName(e)[0];if(i)return i;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let n=i.currentNode;for(;n;){const t=n.shadowRoot;if(t){const i=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(i)return i}n=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,n=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(i-s[0],n-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Dt(this.window.history)||Dt(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function Dt(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class Pt{}},9063:function(t,e,i){"use strict";i.d(e,{TP:function(){return z},eN:function(){return S},JF:function(){return Y},WM:function(){return d},LE:function(){return m},Zn:function(){return k}});var n=i(1511),s=i(1572),o=i(878),r=i(8318),a=i(436),c=i(3835),u=i(9996);class l{}class h{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const i=t.slice(0,e),n=i.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(s):this.headers.set(n,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const n=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(n,i),this.maybeSetNormalizedName(e,n))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const n=("a"===t.op?this.headers.get(e):void 0)||[];n.push(...i),this.headers.set(e,n);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class p{encodeKey(t){return f(t)}encodeValue(t){return f(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function f(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function g(t){return`${t}`}class m{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new p,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const n=t.indexOf("="),[s,o]=-1==n?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,n)),e.decodeValue(t.slice(n+1))],r=i.get(s)||[];r.push(o),i.set(s,r)}),i}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const n=t[i];Array.isArray(n)?n.forEach(t=>{e.push({param:i,value:t,op:"a"})}):e.push({param:i,value:n,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new m({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(g(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const i=e.indexOf(g(t.value));-1!==i&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class _{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function b(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function y(t){return"undefined"!=typeof Blob&&t instanceof Blob}function w(t){return"undefined"!=typeof FormData&&t instanceof FormData}class A{constructor(t,e,i,n){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||n?(this.body=void 0!==i?i:null,s=n):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new d),this.context||(this.context=new _),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const i=e.indexOf("?");this.urlWithParams=e+(-1===i?"?":ie.set(i,t.setHeaders[i]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((e,i)=>e.set(i,t.setParams[i]),u)),new A(i,n,o,{params:u,headers:c,context:l,reportProgress:a,responseType:s,withCredentials:r})}}var M=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class v{constructor(t,e=200,i="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class T extends v{constructor(t={}){super(t),this.type=M.ResponseHeader}clone(t={}){return new T({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class k extends v{constructor(t={}){super(t),this.type=M.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new k({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class L extends v{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function C(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let S=(()=>{class t{constructor(t){this.handler=t}request(t,e,i={}){let n;if(t instanceof A)n=t;else{let s,o;s=i.headers instanceof d?i.headers:new d(i.headers),i.params&&(o=i.params instanceof m?i.params:new m({fromObject:i.params})),n=new A(t,e,void 0!==i.body?i.body:null,{headers:s,context:i.context,params:o,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=(0,o.of)(n).pipe((0,a.b)(t=>this.handler.handle(t)));if(t instanceof A||"events"===i.observe)return s;const r=s.pipe((0,c.h)(t=>t instanceof k));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return r.pipe((0,u.U)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe((0,u.U)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe((0,u.U)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe((0,u.U)(t=>t.body))}case"response":return r;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new m).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,i={}){return this.request("PATCH",t,C(i,e))}post(t,e,i={}){return this.request("POST",t,C(i,e))}put(t,e,i={}){return this.request("PUT",t,C(i,e))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(l))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class E{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const z=new s.OlP("HTTP_INTERCEPTORS");let x=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const O=/^\)\]\}',?\n/;let R=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new r.y(e=>{const i=this.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((t,e)=>i.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&i.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();i.responseType="json"!==e?e:"text"}const n=t.serializeBody();let s=null;const o=()=>{if(null!==s)return s;const e=1223===i.status?204:i.status,n=i.statusText||"OK",o=new d(i.getAllResponseHeaders()),r=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new T({headers:o,status:e,statusText:n,url:r}),s},r=()=>{let{headers:n,status:s,statusText:r,url:a}=o(),c=null;204!==s&&(c=void 0===i.response?i.responseText:i.response),0===s&&(s=c?200:0);let u=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof c){const t=c;c=c.replace(O,"");try{c=""!==c?JSON.parse(c):null}catch(l){c=t,u&&(u=!1,c={error:l,text:c})}}u?(e.next(new k({body:c,headers:n,status:s,statusText:r,url:a||void 0})),e.complete()):e.error(new L({error:c,headers:n,status:s,statusText:r,url:a||void 0}))},a=t=>{const{url:n}=o(),s=new L({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:n||void 0});e.error(s)};let c=!1;const u=n=>{c||(e.next(o()),c=!0);let s={type:M.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(s.total=n.total),"text"===t.responseType&&i.responseText&&(s.partialText=i.responseText),e.next(s)},l=t=>{let i={type:M.UploadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),e.next(i)};return i.addEventListener("load",r),i.addEventListener("error",a),i.addEventListener("timeout",a),i.addEventListener("abort",a),t.reportProgress&&(i.addEventListener("progress",u),null!==n&&i.upload&&i.upload.addEventListener("progress",l)),i.send(n),e.next({type:M.Sent}),()=>{i.removeEventListener("error",a),i.removeEventListener("abort",a),i.removeEventListener("load",r),i.removeEventListener("timeout",a),t.reportProgress&&(i.removeEventListener("progress",u),null!==n&&i.upload&&i.upload.removeEventListener("progress",l)),i.readyState!==i.DONE&&i.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.JF))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const D=new s.OlP("XSRF_COOKIE_NAME"),P=new s.OlP("XSRF_HEADER_NAME");class N{}let I=(()=>{class t{constructor(t,e,i){this.doc=t,this.platform=e,this.cookieName=i,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,n.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(n.K0),s.LFG(s.Lbi),s.LFG(D))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),q=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);const n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(N),s.LFG(P))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(z,[]);this.chain=t.reduceRight((t,e)=>new E(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(h),s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),H=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:q,useClass:x}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:D,useValue:e.cookieName}:[],e.headerName?{provide:P,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[q,{provide:z,useExisting:q,multi:!0},{provide:N,useClass:I},{provide:D,useValue:"XSRF-TOKEN"},{provide:P,useValue:"X-XSRF-TOKEN"}]}),t})(),Y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[S,{provide:l,useClass:B},R,{provide:h,useExisting:R}],imports:[[H.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},1572:function(t,e,i){"use strict";i.d(e,{deG:function(){return ii},tb:function(){return iu},AFp:function(){return $c},ip1:function(){return Xc},CZH:function(){return Vc},hGG:function(){return Xu},z2F:function(){return Bu},sBO:function(){return Fa},Sil:function(){return pu},_Vd:function(){return pa},EJc:function(){return ou},SBq:function(){return _a},qLn:function(){return Mn},vpe:function(){return Ec},gxx:function(){return ho},tBr:function(){return Mi},XFs:function(){return E},OlP:function(){return ei},zs3:function(){return Co},ZZ4:function(){return Na},aQg:function(){return qa},soG:function(){return su},YKP:function(){return Qa},v3s:function(){return Yu},h0i:function(){return Ja},PXZ:function(){return Du},R0b:function(){return mu},FiY:function(){return vi},Lbi:function(){return eu},g9A:function(){return tu},n_E:function(){return xc},Qsj:function(){return wa},FYo:function(){return ya},JOm:function(){return Cn},Tiy:function(){return Ma},q3G:function(){return pn},tp0:function(){return Ti},EAV:function(){return Wu},Rgc:function(){return Ga},dDg:function(){return vu},DyG:function(){return ni},GfV:function(){return va},s_b:function(){return ec},ifc:function(){return P},eFA:function(){return Pu},G48:function(){return Ou},Gpc:function(){return p},f3M:function(){return yi},X6Q:function(){return xu},_c5:function(){return Zu},VLi:function(){return Lu},c2e:function(){return nu},zSh:function(){return fo},wAp:function(){return ta},vHH:function(){return m},EiD:function(){return hn},mCW:function(){return Zi},qzn:function(){return Ni},JVY:function(){return qi},pB0:function(){return ji},eBb:function(){return Hi},L6k:function(){return Bi},LAX:function(){return Yi},cg1:function(){return $r},Tjo:function(){return Ku},kL8:function(){return Jr},yhl:function(){return Ii},dqk:function(){return H},sIi:function(){return Io},CqO:function(){return ar},QGY:function(){return or},F4k:function(){return rr},RDi:function(){return Mt},AaK:function(){return l},z3N:function(){return Pi},qOj:function(){return Eo},TTD:function(){return mt},_Bn:function(){return la},xp6:function(){return ps},uIk:function(){return jo},Q2q:function(){return Uo},Tol:function(){return Sr},Gre:function(){return Ur},ekj:function(){return Cr},Suo:function(){return Fc},Xpm:function(){return $},lG2:function(){return st},Yz7:function(){return w},cJS:function(){return A},oAB:function(){return et},Yjl:function(){return ot},Y36:function(){return Go},_UZ:function(){return tr},GkF:function(){return nr},BQk:function(){return ir},ynx:function(){return er},qZA:function(){return Qo},TgZ:function(){return Jo},EpF:function(){return sr},n5z:function(){return $e},Ikx:function(){return Kr},LFG:function(){return bi},$8M:function(){return Qe},$Z:function(){return Xo},NdJ:function(){return cr},CRH:function(){return Wc},kcU:function(){return me},O4$:function(){return ge},oxw:function(){return pr},ALo:function(){return Mc},lcZ:function(){return vc},xi3:function(){return Tc},Dn7:function(){return kc},Hsn:function(){return mr},F$t:function(){return gr},Q6J:function(){return Vo},s9C:function(){return _r},MGl:function(){return br},hYB:function(){return yr},DdM:function(){return mc},VKq:function(){return _c},WLB:function(){return bc},iGM:function(){return Yc},MAs:function(){return Zo},pYS:function(){return kn},Jf7:function(){return Tn},CHM:function(){return Yt},oJD:function(){return fn},LSH:function(){return gn},kYT:function(){return it},Udp:function(){return Lr},WFA:function(){return ur},d8E:function(){return Zr},YNc:function(){return Ko},W1O:function(){return Gc},_uU:function(){return Hr},Oqu:function(){return Yr},hij:function(){return jr},AsE:function(){return Fr},xDo:function(){return Wr},Gf:function(){return jc}});var n=i(5959),s=i(7570),o=i(8318),r=i(1906),a=i(1055);function c(t){for(let e in t)if(t[e]===c)return e;throw Error("Could not find renamed property on target object.")}function u(t,e){for(const i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function l(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(l).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const i=e.indexOf("\n");return-1===i?e:e.substring(0,i)}function h(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const d=c({__forward_ref__:c});function p(t){return t.__forward_ref__=p,t.toString=function(){return l(this())},t}function f(t){return g(t)?t():t}function g(t){return"function"==typeof t&&t.hasOwnProperty(d)&&t.__forward_ref__===p}class m extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function _(t){return"string"==typeof t?t:null==t?"":String(t)}function b(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():_(t)}function y(t,e){const i=e?` in ${e}`:"";throw new m("201",`No provider for ${b(t)} found${i}`)}function w(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function A(t){return{providers:t.providers||[],imports:t.imports||[]}}function M(t){return v(t,k)||v(t,C)}function v(t,e){return t.hasOwnProperty(e)?t[e]:null}function T(t){return t&&(t.hasOwnProperty(L)||t.hasOwnProperty(S))?t[L]:null}const k=c({"\u0275prov":c}),L=c({"\u0275inj":c}),C=c({ngInjectableDef:c}),S=c({ngInjectorDef:c});var E=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let z;function x(t){const e=z;return z=t,e}function O(t,e,i){const n=M(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:i&E.Optional?null:void 0!==e?e:void y(l(t),"Injector")}function R(t){return{toString:t}.toString()}var D=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),P=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const N="undefined"!=typeof globalThis&&globalThis,I="undefined"!=typeof window&&window,q="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,B="undefined"!=typeof global&&global,H=N||B||I||q,Y={},j=[],F=c({"\u0275cmp":c}),W=c({"\u0275dir":c}),U=c({"\u0275pipe":c}),K=c({"\u0275mod":c}),Z=c({"\u0275loc":c}),G=c({"\u0275fac":c}),X=c({__NG_ELEMENT_ID__:c});let V=0;function $(t){return R(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===D.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||j,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||P.Emulated,id:"c",styles:t.styles||j,_:null,setInput:null,schemas:t.schemas||null,tView:null},n=t.directives,s=t.features,o=t.pipes;return i.id+=V++,i.inputs=nt(t.inputs,e),i.outputs=nt(t.outputs),s&&s.forEach(t=>t(i)),i.directiveDefs=n?()=>("function"==typeof n?n():n).map(J):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(Q):null,i})}function J(t){return rt(t)||function(t){return t[W]||null}(t)}function Q(t){return function(t){return t[U]||null}(t)}const tt={};function et(t){return R(()=>{const e={type:t.type,bootstrap:t.bootstrap||j,declarations:t.declarations||j,imports:t.imports||j,exports:t.exports||j,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(tt[t.id]=t.type),e})}function it(t,e){return R(()=>{const i=at(t,!0);i.declarations=e.declarations||j,i.imports=e.imports||j,i.exports=e.exports||j})}function nt(t,e){if(null==t)return Y;const i={};for(const n in t)if(t.hasOwnProperty(n)){let s=t[n],o=s;Array.isArray(s)&&(o=s[1],s=s[0]),i[s]=n,e&&(e[s]=o)}return i}const st=$;function ot(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function rt(t){return t[F]||null}function at(t,e){const i=t[K]||null;if(!i&&!0===e)throw new Error(`Type ${l(t)} does not have '\u0275mod' property.`);return i}function ct(t){return Array.isArray(t)&&"object"==typeof t[1]}function ut(t){return Array.isArray(t)&&!0===t[1]}function lt(t){return 0!=(8&t.flags)}function ht(t){return 2==(2&t.flags)}function dt(t){return 1==(1&t.flags)}function pt(t){return null!==t.template}function ft(t,e){return t.hasOwnProperty(G)?t[G]:null}class gt{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function mt(){return _t}function _t(t){return t.type.prototype.ngOnChanges&&(t.setInput=yt),bt}function bt(){const t=wt(this),e=null==t?void 0:t.current;if(e){const i=t.previous;if(i===Y)t.previous=e;else for(let t in e)i[t]=e[t];t.current=null,this.ngOnChanges(e)}}function yt(t,e,i,n){const s=wt(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:Y,current:null}),o=s.current||(s.current={}),r=s.previous,a=this.declaredInputs[i],c=r[a];o[a]=new gt(c&&c.currentValue,e,r===Y),t[n]=e}function wt(t){return t.__ngSimpleChanges__||null}let At;function Mt(t){At=t}function vt(){return void 0!==At?At:"undefined"!=typeof document?document:void 0}function Tt(t){return!!t.listen}mt.ngInherit=!0;const kt={createRenderer:(t,e)=>vt()};function Lt(t){for(;Array.isArray(t);)t=t[0];return t}function Ct(t,e){return Lt(e[t])}function St(t,e){return Lt(e[t.index])}function Et(t,e){return t.data[e]}function zt(t,e){return t[e]}function xt(t,e){const i=e[t];return ct(i)?i:i[0]}function Ot(t){return 4==(4&t[2])}function Rt(t){return 128==(128&t[2])}function Dt(t,e){return null==e?null:t[e]}function Pt(t){t[18]=0}function Nt(t,e){t[5]+=e;let i=t,n=t[3];for(;null!==n&&(1===e&&1===i[5]||-1===e&&0===i[5]);)n[5]+=e,i=n,n=n[3]}const It={lFrame:ce(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function qt(){return It.bindingsEnabled}function Bt(){return It.lFrame.lView}function Ht(){return It.lFrame.tView}function Yt(t){return It.lFrame.contextLView=t,t[8]}function jt(){let t=Ft();for(;null!==t&&64===t.type;)t=t.parent;return t}function Ft(){return It.lFrame.currentTNode}function Wt(t,e){const i=It.lFrame;i.currentTNode=t,i.isParent=e}function Ut(){return It.lFrame.isParent}function Kt(){It.lFrame.isParent=!1}function Zt(){return It.isInCheckNoChangesMode}function Gt(t){It.isInCheckNoChangesMode=t}function Xt(){const t=It.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Vt(){return It.lFrame.bindingIndex}function $t(){return It.lFrame.bindingIndex++}function Jt(t){const e=It.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function Qt(t,e){const i=It.lFrame;i.bindingIndex=i.bindingRootIndex=t,te(e)}function te(t){It.lFrame.currentDirectiveIndex=t}function ee(t){const e=It.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function ie(){return It.lFrame.currentQueryIndex}function ne(t){It.lFrame.currentQueryIndex=t}function se(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function oe(t,e,i){if(i&E.SkipSelf){let n=e,s=t;for(;n=n.parent,!(null!==n||i&E.Host||(n=se(s),null===n)||(s=s[15],10&n.type)););if(null===n)return!1;e=n,t=s}const n=It.lFrame=ae();return n.currentTNode=e,n.lView=t,!0}function re(t){const e=ae(),i=t[1];It.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function ae(){const t=It.lFrame,e=null===t?null:t.child;return null===e?ce(t):e}function ce(t){const e={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:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function ue(){const t=It.lFrame;return It.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const le=ue;function he(){const t=ue();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function de(){return It.lFrame.selectedIndex}function pe(t){It.lFrame.selectedIndex=t}function fe(){const t=It.lFrame;return Et(t.tView,t.selectedIndex)}function ge(){It.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function me(){It.lFrame.currentNamespace=null}function _e(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[a]<0&&(t[18]+=65536),(r>11>16&&(3&t[2])===e){t[2]+=2048;try{o.call(r)}finally{}}}else try{o.call(r)}finally{}}class ve{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Te(t,e,i){const n=Tt(t);let s=0;for(;se){r=o-1;break}}}for(;o>16,n=e;for(;i>0;)n=n[15],i--;return n}let Oe=!0;function Re(t){const e=Oe;return Oe=t,e}let De=0;function Pe(t,e){const i=Ie(t,e);if(-1!==i)return i;const n=e[1];n.firstCreatePass&&(t.injectorIndex=e.length,Ne(n.data,t),Ne(e,null),Ne(n.blueprint,null));const s=qe(t,e),o=t.injectorIndex;if(Ee(s)){const t=ze(s),i=xe(s,e),n=i[1].data;for(let s=0;s<8;s++)e[o+s]=i[t+s]|n[t+s]}return e[o+8]=s,o}function Ne(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Ie(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function qe(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let i=0,n=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(n=2===e?t.declTNode:1===e?s[6]:null,null===n)return-1;if(i++,s=s[15],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return-1}function Be(t,e,i){!function(t,e,i){let n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty(X)&&(n=i[X]),null==n&&(n=i[X]=De++);const s=255&n;e.data[t+(s>>5)]|=1<=0?255&e:We:e}(i);if("function"==typeof o){if(!oe(e,t,n))return n&E.Host?He(s,i,n):Ye(e,i,n,s);try{const t=o(n);if(null!=t||n&E.Optional)return t;y(i)}finally{le()}}else if("number"==typeof o){let s=null,r=Ie(t,e),a=-1,c=n&E.Host?e[16][6]:null;for((-1===r||n&E.SkipSelf)&&(a=-1===r?qe(t,e):e[r+8],-1!==a&&Xe(n,!1)?(s=e[1],r=ze(a),e=xe(a,e)):r=-1);-1!==r;){const t=e[1];if(Ge(o,r,t.data)){const t=Ue(r,e,i,s,n,c);if(t!==Fe)return t}a=e[r+8],-1!==a&&Xe(n,e[1].data[r+8]===c)&&Ge(o,r,e)?(s=t,r=ze(a),e=xe(a,e)):r=-1}}}return Ye(e,i,n,s)}const Fe={};function We(){return new Ve(jt(),Bt())}function Ue(t,e,i,n,s,o){const r=e[1],a=r.data[t+8],c=Ke(a,r,i,null==n?ht(a)&&Oe:n!=r&&0!=(3&a.type),s&E.Host&&o===a);return null!==c?Ze(e,r,c,a):Fe}function Ke(t,e,i,n,s){const o=t.providerIndexes,r=e.data,a=1048575&o,c=t.directiveStart,u=o>>20,l=s?a+u:t.directiveEnd;for(let h=n?a:a+u;h=c&&t.type===i)return h}if(s){const t=r[c];if(t&&pt(t)&&t.type===i)return c}return null}function Ze(t,e,i,n){let s=t[i];const o=e.data;if(s instanceof ve){const r=s;r.resolving&&function(t,e){throw new m("200",`Circular dependency in DI detected for ${t}`)}(b(o[i]));const a=Re(r.canSeeViewProviders);r.resolving=!0;const c=r.injectImpl?x(r.injectImpl):null;oe(t,n,E.Default);try{s=t[i]=r.factory(void 0,o,t,n),e.firstCreatePass&&i>=n.directiveStart&&function(t,e,i){const{ngOnChanges:n,ngOnInit:s,ngDoCheck:o}=e.type.prototype;if(n){const n=_t(e);(i.preOrderHooks||(i.preOrderHooks=[])).push(t,n),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,n)}s&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-t,s),o&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,o),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,o))}(i,o[i],e)}finally{null!==c&&x(c),Re(a),r.resolving=!1,le()}}return s}function Ge(t,e,i){return!!(i[e+(t>>5)]&1<{const e=t.prototype.constructor,i=e[G]||Je(e),n=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==n;){const t=s[G]||Je(s);if(t&&t!==i)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function Je(t){return g(t)?()=>{const e=Je(f(t));return e&&e()}:ft(t)}function Qe(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const i=t.attrs;if(i){const t=i.length;let n=0;for(;n{const n=function(t){return function(...e){if(t){const i=t(...e);for(const t in i)this[t]=i[t]}}}(e);function s(...t){if(this instanceof s)return n.apply(this,t),this;const e=new s(...t);return i.annotation=e,i;function i(t,i,n){const s=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;s.length<=n;)s.push(null);return(s[n]=s[n]||[]).push(e),t}}return i&&(s.prototype=Object.create(i.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class ei{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=w({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const ii=new ei("AnalyzeForEntryComponents"),ni=Function;function si(t,e){void 0===e&&(e=t);for(let i=0;iArray.isArray(t)?oi(t,e):e(t))}function ri(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function ai(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function ci(t,e){const i=[];for(let n=0;n=0?t[1|n]=i:(n=~n,function(t,e,i,n){let s=t.length;if(s==e)t.push(i,n);else if(1===s)t.push(n,t[0]),t[0]=i;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=i,t[e+1]=n}}(t,n,e,i)),n}function li(t,e){const i=hi(t,e);if(i>=0)return t[1|i]}function hi(t,e){return function(t,e,i){let n=0,s=t.length>>1;for(;s!==n;){const i=n+(s-n>>1),o=t[i<<1];if(e===o)return i<<1;o>e?s=i:n=i+1}return~(s<<1)}(t,e)}const di={},pi=/\n/gm,fi=c({provide:String,useValue:c});let gi;function mi(t){const e=gi;return gi=t,e}function _i(t,e=E.Default){if(void 0===gi)throw new Error("inject() must be called from an injection context");return null===gi?O(t,void 0,e):gi.get(t,e&E.Optional?null:void 0,e)}function bi(t,e=E.Default){return(z||_i)(f(t),e)}const yi=bi;function wi(t){const e=[];for(let i=0;i({token:t})),-1),vi=Ai(ti("Optional"),8),Ti=Ai(ti("SkipSelf"),4);let ki,Li;function Ci(t){var e;return(null===(e=function(){if(void 0===ki&&(ki=null,H.trustedTypes))try{ki=H.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return ki}())||void 0===e?void 0:e.createHTML(t))||t}function Si(t){var e;return(null===(e=function(){if(void 0===Li&&(Li=null,H.trustedTypes))try{Li=H.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Li}())||void 0===e?void 0:e.createHTML(t))||t}class Ei{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class zi extends Ei{getTypeName(){return"HTML"}}class xi extends Ei{getTypeName(){return"Style"}}class Oi extends Ei{getTypeName(){return"Script"}}class Ri extends Ei{getTypeName(){return"URL"}}class Di extends Ei{getTypeName(){return"ResourceURL"}}function Pi(t){return t instanceof Ei?t.changingThisBreaksApplicationSecurity:t}function Ni(t,e){const i=Ii(t);if(null!=i&&i!==e){if("ResourceURL"===i&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${i} (see https://g.co/ng/security#xss)`)}return i===e}function Ii(t){return t instanceof Ei&&t.getTypeName()||null}function qi(t){return new zi(t)}function Bi(t){return new xi(t)}function Hi(t){return new Oi(t)}function Yi(t){return new Ri(t)}function ji(t){return new Di(t)}class Fi{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Ci(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class Wi{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Ci(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Ci(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let n=e.length-1;0Zi(t.trim())).join(", ")),this.buf.push(" ",e,'="',un(r),'"')}var n;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();tn.hasOwnProperty(e)&&!Vi.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(un(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const an=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,cn=/([^\#-~ |!])/g;function un(t){return t.replace(/&/g,"&").replace(an,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(cn,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let ln;function hn(t,e){let i=null;try{ln=ln||function(t){const e=new Wi(t);return function(){try{return!!(new window.DOMParser).parseFromString(Ci(""),"text/html")}catch(t){return!1}}()?new Fi(e):e}(t);let n=e?String(e):"";i=ln.getInertBodyElement(n);let s=5,o=n;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,n=o,o=i.innerHTML,i=ln.getInertBodyElement(n)}while(n!==o);return Ci((new rn).sanitizeChildren(dn(i)||i))}finally{if(i){const t=dn(i)||i;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function dn(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var pn=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function fn(t){const e=mn();return e?Si(e.sanitize(pn.HTML,t)||""):Ni(t,"HTML")?Si(Pi(t)):hn(vt(),_(t))}function gn(t){const e=mn();return e?e.sanitize(pn.URL,t)||"":Ni(t,"URL")?Pi(t):Zi(_(t))}function mn(){const t=Bt();return t&&t[12]}function _n(t,e){t.__ngContext__=e}function bn(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function yn(t){return t.ngDebugContext}function wn(t){return t.ngOriginalError}function An(t,...e){t.error(...e)}class Mn{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=this._findContext(t),n=function(t){return t.ngErrorLogger||An}(t);n(this._console,"ERROR",t),e&&n(this._console,"ORIGINAL ERROR",e),i&&n(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?yn(t)?yn(t):this._findContext(wn(t)):null}_findOriginalError(t){let e=wn(t);for(;e&&wn(e);)e=wn(e);return e}}const vn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(H))();function Tn(t){return t.ownerDocument.defaultView}function kn(t){return t.ownerDocument.body}function Ln(t){return t instanceof Function?t():t}var Cn=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function Sn(t,e){return(void 0)(t,e)}function En(t){const e=t[3];return ut(e)?e[3]:e}function zn(t){return On(t[13])}function xn(t){return On(t[4])}function On(t){for(;null!==t&&!ut(t);)t=t[4];return t}function Rn(t,e,i,n,s){if(null!=n){let o,r=!1;ut(n)?o=n:ct(n)&&(r=!0,n=n[0]);const a=Lt(n);0===t&&null!==i?null==s?Yn(e,i,a):Hn(e,i,a,s||null,!0):1===t&&null!==i?Hn(e,i,a,s||null,!0):2===t?function(t,e,i){const n=Fn(t,e);n&&function(t,e,i,n){Tt(t)?t.removeChild(e,i,n):e.removeChild(i)}(t,n,e,i)}(e,a,r):3===t&&e.destroyNode(a),null!=o&&function(t,e,i,n,s){const o=i[7];o!==Lt(i)&&Rn(e,t,n,o,s);for(let r=10;r0&&(t[i-1][4]=n[4]);const r=ai(t,10+e);$n(n[1],s=n,s[11],2,null,null),s[0]=null,s[6]=null;const a=r[19];null!==a&&a.detachView(r[1]),n[3]=null,n[4]=null,n[2]&=-129}var s;return n}function In(t,e){if(!(256&e[2])){const i=e[11];Tt(i)&&i.destroyNode&&$n(t,e,i,3,null,null),function(t){let e=t[13];if(!e)return qn(t[1],t);for(;e;){let i=null;if(ct(e))i=e[13];else{const t=e[10];t&&(i=t)}if(!i){for(;e&&!e[4]&&e!==t;)ct(e)&&qn(e[1],e),e=e[3];null===e&&(e=t),ct(e)&&qn(e[1],e),i=e&&e[4]}e=i}}(e)}}function qn(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let i;if(null!=t&&null!=(i=t.destroyHooks))for(let n=0;n=0?n[s=c]():n[s=-c].unsubscribe(),o+=2}else{const t=n[s=i[o+1]];i[o].call(t)}if(null!==n){for(let t=s+1;to?"":s[l+1].toLowerCase();const e=8&n?t:null;if(e&&-1!==es(e,u,0)||2&n&&u!==t){if(rs(n))return!1;r=!0}}}}else{if(!r&&!rs(n)&&!rs(c))return!1;if(r&&rs(c))continue;r=!1,n=c|1&n}}return rs(n)||r}function rs(t){return 0==(1&t)}function as(t,e,i,n){if(null===e)return-1;let s=0;if(n||!i){let i=!1;for(;s-1)for(i++;i0?'="'+e+'"':"")+"]"}else 8&n?s+="."+r:4&n&&(s+=" "+r);else""===s||rs(r)||(e+=ls(o,s),s=""),n=r,o=o||!rs(n);i++}return""!==s&&(e+=ls(o,s)),e}const ds={};function ps(t){fs(Ht(),Bt(),de()+t,Zt())}function fs(t,e,i,n){if(!n)if(3==(3&e[2])){const n=t.preOrderCheckHooks;null!==n&&be(e,n,i)}else{const n=t.preOrderHooks;null!==n&&ye(e,n,0,i)}pe(i)}function gs(t,e){return t<<17|e<<2}function ms(t){return t>>17&32767}function _s(t){return 2|t}function bs(t){return(131068&t)>>2}function ys(t,e){return-131069&t|e<<2}function ws(t){return 1|t}function As(t,e){const i=t.contentQueries;if(null!==i)for(let n=0;n20&&fs(t,e,20,Zt()),i(n,s)}finally{pe(o)}}function Es(t,e,i){if(lt(e)){const n=e.directiveEnd;for(let s=e.directiveStart;s0;){const i=t[--e];if("number"==typeof i&&i<0)return i}return 0})(i)!=o&&i.push(o),i.push(n,s,r)}}function Bs(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Hs(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Ys(t,e,i){if(i){if(e.exportAs)for(let n=0;n0&&Vs(i)}}function Vs(t){for(let i=zn(t);null!==i;i=xn(i))for(let t=10;t0&&Vs(e)}const e=t[1].components;if(null!==e)for(let i=0;i0&&Vs(n)}}function $s(t,e){const i=xt(e,t),n=i[1];!function(t,e){for(let i=e.length;iPromise.resolve(null))();function so(t){return t[7]||(t[7]=[])}function oo(t){return t.cleanup||(t.cleanup=[])}function ro(t,e,i){return(null===t||pt(t))&&(i=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(i[e.index])),i[11]}function ao(t,e){const i=t[9],n=i?i.get(Mn,null):null;n&&n.handleError(e)}function co(t,e,i,n,s){for(let o=0;othis.processProvider(i,t,e)),oi([t],t=>this.processInjectorType(t,[],s)),this.records.set(ho,vo(void 0,this));const o=this.records.get(fo);this.scope=null!=o?o.value:null,this.source=n||("object"==typeof t?null:l(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=di,i=E.Default){this.assertNotDestroyed();const n=mi(this);try{if(!(i&E.SkipSelf)){let e=this.records.get(t);if(void 0===e){const i=("function"==typeof(s=t)||"object"==typeof s&&s instanceof ei)&&M(t);e=i&&this.injectableDefInScope(i)?vo(Ao(t),go):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(i&E.Self?bo():this.parent).get(t,e=i&E.Optional&&e===di?null:e)}catch(o){if("NullInjectorError"===o.name){if((o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(l(t)),n)throw o;return function(t,e,i,n){const s=t.ngTempTokenPath;throw e.__source&&s.unshift(e.__source),t.message=function(t,e,i,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=l(e);if(Array.isArray(e))s=e.map(l).join(" -> ");else if("object"==typeof e){let t=[];for(let i in e)if(e.hasOwnProperty(i)){let n=e[i];t.push(i+":"+("string"==typeof n?JSON.stringify(n):l(n)))}s=`{${t.join(", ")}}`}return`${i}${n?"("+n+")":""}[${s}]: ${t.replace(pi,"\n ")}`}("\n"+t.message,s,i,n),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(o,t,"R3InjectorError",this.source)}throw o}finally{mi(n)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,i)=>t.push(l(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,i){if(!(t=f(t)))return!1;let n=T(t);const s=null==n&&t.ngModule||void 0,o=void 0===s?t:s,r=-1!==i.indexOf(o);if(void 0!==s&&(n=T(s)),null==n)return!1;if(null!=n.imports&&!r){let t;i.push(o);try{oi(n.imports,n=>{this.processInjectorType(n,e,i)&&(void 0===t&&(t=[]),t.push(n))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,i,n||j))}}this.injectorDefTypes.add(o);const a=ft(o)||(()=>new o);this.records.set(o,vo(a,go));const c=n.providers;if(null!=c&&!r){const e=t;oi(c,t=>this.processProvider(t,e,c))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,i){let n=ko(t=f(t))?t:f(t&&t.provide);const s=function(t,e,i){return To(t)?vo(void 0,t.useValue):vo(Mo(t),go)}(t);if(ko(t)||!0!==t.multi)this.records.get(n);else{let e=this.records.get(n);e||(e=vo(void 0,go,!0),e.factory=()=>wi(e.multi),this.records.set(n,e)),n=t,e.multi.push(t)}this.records.set(n,s)}hydrate(t,e){var i;return e.value===go&&(e.value=mo,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(i=e.value)&&"object"==typeof i&&"function"==typeof i.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=f(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Ao(t){const e=M(t),i=null!==e?e.factory:ft(t);if(null!==i)return i;if(t instanceof ei)throw new Error(`Token ${l(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const i=ci(e,"?");throw new Error(`Can't resolve all parameters for ${l(t)}: (${i.join(", ")}).`)}const i=function(t){const e=t&&(t[k]||t[C]);if(e){const i=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${i}" 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 "${i}" class.`),e}return null}(t);return null!==i?()=>i.factory(t):()=>new t}(t);throw new Error("unreachable")}function Mo(t,e,i){let n;if(ko(t)){const e=f(t);return ft(e)||Ao(e)}if(To(t))n=()=>f(t.useValue);else if((s=t)&&s.useFactory)n=()=>t.useFactory(...wi(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))n=()=>bi(f(t.useExisting));else{const e=f(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return ft(e)||Ao(e);n=()=>new e(...wi(t.deps))}var s;return n}function vo(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function To(t){return null!==t&&"object"==typeof t&&fi in t}function ko(t){return"function"==typeof t}const Lo=function(t,e,i){return function(t,e=null,i=null,n){const s=yo(t,e,i,n);return s._resolveInjectorDefTypes(),s}({name:i},e,t,i)};let Co=(()=>{class t{static create(t,e){return Array.isArray(t)?Lo(t,e,""):Lo(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=di,t.NULL=new po,t.\u0275prov=w({token:t,providedIn:"any",factory:()=>bi(ho)}),t.__NG_ELEMENT_ID__=-1,t})();function So(t,e){_e(bn(t)[1],jt())}function Eo(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,i=!0;const n=[t];for(;e;){let s;if(pt(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(i){n.push(s);const e=t;e.inputs=zo(t.inputs),e.declaredInputs=zo(t.declaredInputs),e.outputs=zo(t.outputs);const i=s.hostBindings;i&&Ro(t,i);const o=s.viewQuery,r=s.contentQueries;if(o&&xo(t,o),r&&Oo(t,r),u(t.inputs,s.inputs),u(t.declaredInputs,s.declaredInputs),u(t.outputs,s.outputs),pt(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let n=0;n=0;n--){const s=t[n];s.hostVars=e+=s.hostVars,s.hostAttrs=Ce(s.hostAttrs,i=Ce(i,s.hostAttrs))}}(n)}function zo(t){return t===Y?{}:t===j?[]:t}function xo(t,e){const i=t.viewQuery;t.viewQuery=i?(t,n)=>{e(t,n),i(t,n)}:e}function Oo(t,e){const i=t.contentQueries;t.contentQueries=i?(t,n,s)=>{e(t,n,s),i(t,n,s)}:e}function Ro(t,e){const i=t.hostBindings;t.hostBindings=i?(t,n)=>{e(t,n),i(t,n)}:e}let Do=null;function Po(){if(!Do){const t=H.Symbol;if(t&&t.iterator)Do=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Lt(t[n.index])):n.index;if(Tt(i)){let r=null;if(!a&&c&&(r=function(t,e,i,n){const s=t.cleanup;if(null!=s)for(let o=0;oi?t[i]:null}"string"==typeof t&&(o+=2)}return null}(t,e,s,n.index)),null!==r)(r.__ngLastListenerFn__||r).__ngNextListenerFn__=o,r.__ngLastListenerFn__=o,h=!1;else{o=dr(n,e,0,o,!1);const t=i.listen(p,s,o);l.push(o,t),u&&u.push(s,g,f,f+1)}}else o=dr(n,e,0,o,!0),p.addEventListener(s,o,r),l.push(o),u&&u.push(s,g,f,r)}else o=dr(n,e,0,o,!1);const d=n.outputs;let p;if(h&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let i=0;i0;)e=e[15],t--;return e}(t,It.lFrame.contextLView))[8]}(t)}function fr(t,e){let i=null;const n=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s=0}const Mr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function vr(t){return t.substring(Mr.key,Mr.keyEnd)}function Tr(t,e){const i=Mr.textEnd;return i===e?-1:(e=Mr.keyEnd=function(t,e,i){for(;e32;)e++;return e}(t,Mr.key=e,i),kr(t,e,i))}function kr(t,e,i){for(;e=0;i=Tr(e,i))ui(t,vr(e),!0)}function zr(t,e,i,n){const s=Bt(),o=Ht(),r=Jt(2);o.firstUpdatePass&&Rr(o,t,r,n),e!==ds&&Ho(s,r,e)&&Nr(o,o.data[de()],s,s[11],t,s[r+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=l(Pi(t)))),t}(e,i),n,r)}function xr(t,e,i,n){const s=Ht(),o=Jt(2);s.firstUpdatePass&&Rr(s,null,o,n);const r=Bt();if(i!==ds&&Ho(r,o,i)){const a=s.data[de()];if(Br(a,n)&&!Or(s,o)){let t=n?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(i=h(t,i||"")),$o(s,a,r,i,n)}else!function(t,e,i,n,s,o,r,a){s===ds&&(s=j);let c=0,u=0,l=0=t.expandoStartIndex}function Rr(t,e,i,n){const s=t.data;if(null===s[i+1]){const o=s[de()],r=Or(t,i);Br(o,n)&&null===e&&!r&&(e=!1),e=function(t,e,i,n){const s=ee(t);let o=n?e.residualClasses:e.residualStyles;if(null===s)0===(n?e.classBindings:e.styleBindings)&&(i=Pr(i=Dr(null,t,e,i,n),e.attrs,n),o=null);else{const r=e.directiveStylingLast;if(-1===r||t[r]!==s)if(i=Dr(s,t,e,i,n),null===o){let i=function(t,e,i){const n=i?e.classBindings:e.styleBindings;if(0!==bs(n))return t[ms(n)]}(t,e,n);void 0!==i&&Array.isArray(i)&&(i=Dr(null,t,e,i[1],n),i=Pr(i,e.attrs,n),function(t,e,i,n){t[ms(i?e.classBindings:e.styleBindings)]=n}(t,e,n,i))}else o=function(t,e,i){let n;const s=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0)&&(l=!0)}else u=i;if(s)if(0!==c){const e=ms(t[a+1]);t[n+1]=gs(e,a),0!==e&&(t[e+1]=ys(t[e+1],n)),t[a+1]=131071&t[a+1]|n<<17}else t[n+1]=gs(a,0),0!==a&&(t[a+1]=ys(t[a+1],n)),a=n;else t[n+1]=gs(c,0),0===a?a=n:t[c+1]=ys(t[c+1],n),c=n;l&&(t[n+1]=_s(t[n+1])),wr(t,u,n,!0),wr(t,u,n,!1),function(t,e,i,n,s){const o=s?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&hi(o,e)>=0&&(i[n+1]=ws(i[n+1]))}(e,u,t,n,o),r=gs(a,c),o?e.classBindings=r:e.styleBindings=r}(s,o,e,i,r,n)}}function Dr(t,e,i,n,s){let o=null;const r=i.directiveEnd;let a=i.directiveStylingLast;for(-1===a?a=i.directiveStart:a++;a0;){const e=t[s],o=Array.isArray(e),c=o?e[1]:e,u=null===c;let l=i[s+1];l===ds&&(l=u?j:void 0);let h=u?li(l,n):c===n?l:void 0;if(o&&!qr(h)&&(h=li(e,n)),qr(h)&&(a=h,r))return a;const d=t[s+1];s=r?ms(d):bs(d)}if(null!==e){let t=o?e.residualClasses:e.residualStyles;null!=t&&(a=li(t,n))}return a}function qr(t){return void 0!==t}function Br(t,e){return 0!=(t.flags&(e?16:32))}function Hr(t,e=""){const i=Bt(),n=Ht(),s=t+20,o=n.firstCreatePass?vs(n,s,1,e,null):n.data[s],r=i[s]=function(t,e){return Tt(t)?t.createText(e):t.createTextNode(e)}(i[11],e);Kn(n,i,r,o),Wt(o,!1)}function Yr(t){return jr("",t,""),Yr}function jr(t,e,i){const n=Bt(),s=Fo(n,t,e,i);return s!==ds&&uo(n,de(),s),jr}function Fr(t,e,i,n,s){const o=Bt(),r=Wo(o,t,e,i,n,s);return r!==ds&&uo(o,de(),r),Fr}function Wr(t,e,i,n,s,o,r,a,c,u,l){const h=Bt(),d=function(t,e,i,n,s,o,r,a,c,u,l,h){const d=Vt();let p=function(t,e,i,n,s,o){const r=Yo(t,e,i,n);return Yo(t,e+2,s,o)||r}(t,d,i,s,r,c);return p=Ho(t,d+4,l)||p,Jt(5),p?e+_(i)+n+_(s)+o+_(r)+a+_(c)+u+_(l)+h:ds}(h,t,e,i,n,s,o,r,a,c,u,l);return d!==ds&&uo(h,de(),d),Wr}function Ur(t,e,i){xr(ui,Er,Fo(Bt(),t,e,i),!0)}function Kr(t,e,i){const n=Bt();return Ho(n,$t(),e)&&Ns(Ht(),fe(),n,t,e,n[11],i,!0),Kr}function Zr(t,e,i){const n=Bt();if(Ho(n,$t(),e)){const s=Ht(),o=fe();Ns(s,o,n,t,e,ro(ee(s.data),o,n),i,!0)}return Zr}const Gr=void 0;var Xr=["en",[["a","p"],["AM","PM"],Gr],[["AM","PM"],Gr,Gr],[["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"]],Gr,[["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"]],Gr,[["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}",Gr,"{1} 'at' {0}",Gr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let Vr={};function $r(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let i=Qr(e);if(i)return i;const n=e.split("-")[0];if(i=Qr(n),i)return i;if("en"===n)return Xr;throw new Error(`Missing locale data for the locale "${t}".`)}function Jr(t){return $r(t)[ta.PluralCase]}function Qr(t){return t in Vr||(Vr[t]=H.ng&&H.ng.common&&H.ng.common.locales&&H.ng.common.locales[t]),Vr[t]}var ta=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});let ea="en-US";function ia(t){var e,i;i="Expected localeId to be defined",null==(e=t)&&function(t,e,i,n){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(i,e),"string"==typeof t&&(ea=t.toLowerCase().replace(/_/g,"-"))}function na(t,e,i,n,s){if(t=f(t),Array.isArray(t))for(let o=0;o>20;if(ko(t)||!t.multi){const n=new ve(c,s,Go),p=ra(a,e,s?l:l+d,h);-1===p?(Be(Pe(u,r),o,a),sa(o,t,e.length),e.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),i.push(n),r.push(n)):(i[p]=n,r[p]=n)}else{const p=ra(a,e,l+d,h),f=ra(a,e,l,l+d),g=p>=0&&i[p],m=f>=0&&i[f];if(s&&!m||!s&&!g){Be(Pe(u,r),o,a);const l=function(t,e,i,n,s){const o=new ve(t,i,Go);return o.multi=[],o.index=e,o.componentProviders=0,oa(o,s,n&&!i),o}(s?ca:aa,i.length,s,n,c);!s&&m&&(i[f].providerFactory=l),sa(o,t,e.length,0),e.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),i.push(l),r.push(l)}else sa(o,t,p>-1?p:f,oa(i[s?f:p],c,!s&&n));!s&&n&&m&&i[f].componentProviders++}}}function sa(t,e,i,n){const s=ko(e);if(s||e.useClass){const o=(e.useClass||e).prototype.ngOnDestroy;if(o){const r=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=r.indexOf(i);-1===t?r.push(i,[n,o]):r[t+1].push(n,o)}else r.push(i,o)}}}function oa(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function ra(t,e,i,n){for(let s=i;s{i.providersResolver=(i,n)=>function(t,e,i){const n=Ht();if(n.firstCreatePass){const s=pt(t);na(i,n.data,n.blueprint,s,!0),na(e,n.data,n.blueprint,s,!1)}}(i,n?n(t):t,e)}}class ha{}class da{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${l(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let pa=(()=>{class t{}return t.NULL=new da,t})();function fa(...t){}function ga(t,e){return new _a(St(t,e))}const ma=function(){return ga(jt(),Bt())};let _a=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=ma,t})();function ba(t){return t instanceof _a?t.nativeElement:t}class ya{}let wa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Aa(),t})();const Aa=function(){const t=Bt(),e=xt(jt().index,t);return function(t){return t[11]}(ct(e)?e:t)};let Ma=(()=>{class t{}return t.\u0275prov=w({token:t,providedIn:"root",factory:()=>null}),t})();class va{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ta=new va("12.0.5");class ka{constructor(){}supports(t){return Io(t)}create(t){return new Ca(t)}}const La=(t,e)=>e;class Ca{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||La}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,n=0,s=null;for(;e||i;){const o=!i||e&&e.currentIndex{n=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,n)?(o&&(s=this._verifyReinsertion(s,t,n,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,n,e),o=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,n){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,n)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,n))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,n)):t=this._addAfter(new Sa(e,i),s,n),t}_verifyReinsertion(t,e,i,n){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,n):t.currentIndex!=n&&(t.currentIndex=n,this._addToMoves(t,n)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const n=t._prevRemoved,s=t._nextRemoved;return null===n?this._removalsHead=s:n._nextRemoved=s,null===s?this._removalsTail=n:s._prevRemoved=n,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const n=null===e?this._itHead:e._next;return t._next=n,t._prev=e,null===n?this._itTail=t:n._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new za),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new za),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Sa{constructor(t,e){this.item=t,this.trackById=e,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 Ea{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class za{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new Ea,this.map.set(e,i)),i.add(t)}get(t,e){const i=this.map.get(t);return i?i.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function xa(t,e,i){const n=t.previousIndex;if(null===n)return n;let s=0;return i&&n{if(e&&e.key===i)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const n=this._getOrCreateRecordForKey(i,t);e=this._insertBeforeOrAppend(e,n)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,e);const n=i._prev,s=i._next;return n&&(n._next=s),s&&(s._prev=n),i._next=null,i._prev=null,i}const i=new Da(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class Da{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Pa(){return new Na([new ka])}let Na=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(null!=i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Pa()),deps:[[t,new Ti,new vi]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${i=t,i.name||typeof i}'`);var i}}return t.\u0275prov=w({token:t,providedIn:"root",factory:Pa}),t})();function Ia(){return new qa([new Oa])}let qa=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Ia()),deps:[[t,new Ti,new vi]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=w({token:t,providedIn:"root",factory:Ia}),t})();function Ba(t,e,i,n,s=!1){for(;null!==i;){const o=e[i.index];if(null!==o&&n.push(Lt(o)),ut(o))for(let t=10;t-1&&(Nn(t,i),ai(e,i))}this._attachedToViewContainer=!1}In(this._lView[1],this._lView)}onDestroy(t){Ds(this._lView[1],this._lView,null,t)}markForCheck(){Qs(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){to(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,i){Gt(!0);try{to(t,e,i)}finally{Gt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,$n(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Ya extends Ha{constructor(t){super(t),this._view=t}detectChanges(){eo(this._view)}checkNoChanges(){!function(t){Gt(!0);try{eo(t)}finally{Gt(!1)}}(this._view)}get context(){return null}}const ja=function(t){return function(t,e,i){if(ht(t)&&!i){const i=xt(t.index,e);return new Ha(i,i)}return 47&t.type?new Ha(e[16],e):null}(jt(),Bt(),16==(16&t))};let Fa=(()=>{class t{}return t.__NG_ELEMENT_ID__=ja,t})();const Wa=[new Oa],Ua=new Na([new ka]),Ka=new qa(Wa),Za=function(){return $a(jt(),Bt())};let Ga=(()=>{class t{}return t.__NG_ELEMENT_ID__=Za,t})();const Xa=Ga,Va=class extends Xa{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=Ms(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const n=this._declarationLView[19];return null!==n&&(i[19]=n.createEmbeddedView(e)),ks(e,i,t),new Ha(i)}};function $a(t,e){return 4&t.type?new Va(e,t,ga(t,e)):null}class Ja{}class Qa{}const tc=function(){return rc(jt(),Bt())};let ec=(()=>{class t{}return t.__NG_ELEMENT_ID__=tc,t})();const ic=ec,nc=class extends ic{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return ga(this._hostTNode,this._hostLView)}get injector(){return new Ve(this._hostTNode,this._hostLView)}get parentInjector(){const t=qe(this._hostTNode,this._hostLView);if(Ee(t)){const e=xe(t,this._hostLView),i=ze(t);return new Ve(e[1].data[i+8],e)}return new Ve(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=sc(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){const n=t.createEmbeddedView(e||{});return this.insert(n,i),n}createComponent(t,e,i,n,s){const o=i||this.parentInjector;if(!s&&null==t.ngModule&&o){const t=o.get(Ja,null);t&&(s=t)}const r=t.create(o,n,void 0,s);return this.insert(r.hostView,e),r}insert(t,e){const i=t._lView,n=i[1];if(ut(i[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=i[3],n=new nc(e,e[6],e[3]);n.detach(n.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function(t,e,i,n){const s=10+n,o=i.length;n>0&&(i[s-1][4]=e),nvn});class hc extends ha{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(hs).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return uc(this.componentDef.inputs)}get outputs(){return uc(this.componentDef.outputs)}create(t,e,i,n){const s=(n=n||this.ngModule)?function(t,e){return{get:(i,n,s)=>{const o=t.get(i,ac,s);return o!==ac||n===ac?o:e.get(i,n,s)}}}(t,n.injector):t,o=s.get(ya,kt),r=s.get(Ma,null),a=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function(t,e,i){if(Tt(t))return t.selectRootElement(e,i===P.ShadowDom);let n="string"==typeof e?t.querySelector(e):e;return n.textContent="",n}(a,i,this.componentDef.encapsulation):Dn(o.createRenderer(null,this.componentDef),c,function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),l=this.componentDef.onPush?576:528,h={components:[],scheduler:vn,clean:no,playerHandler:null,flags:0},d=Rs(0,null,null,1,0,null,null,null,null,null),p=Ms(null,d,h,l,null,null,o,a,r,s);let f,g;re(p);try{const t=function(t,e,i,n,s,o){const r=i[1];i[20]=t;const a=vs(r,20,2,"#host",null),c=a.mergedAttrs=e.hostAttrs;null!==c&&(lo(a,c,!0),null!==t&&(Te(s,t,c),null!==a.classes&&ts(s,t,a.classes),null!==a.styles&&Qn(s,t,a.styles)));const u=n.createRenderer(t,e),l=Ms(i,Os(e),null,e.onPush?64:16,i[20],a,n,u,null,null);return r.firstCreatePass&&(Be(Pe(a,i),r,e.type),Hs(r,a),js(a,i.length,1)),Js(i,l),i[20]=l}(u,this.componentDef,p,o,a);if(u)if(i)Te(a,u,["ng-version",Ta.full]);else{const{attrs:t,classes:e}=function(t){const e=[],i=[];let n=1,s=2;for(;n0&&ts(a,u,e.join(" "))}if(g=Et(d,20),void 0!==e){const t=g.projection=[];for(let i=0;it(r,e)),e.contentQueries){const t=jt();e.contentQueries(1,r,t.directiveStart)}const a=jt();return!o.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(pe(a.index),qs(i[1],a,0,a.directiveStart,a.directiveEnd,e),Bs(e,r)),r}(t,this.componentDef,p,h,[So]),ks(d,p,null)}finally{he()}return new dc(this.componentType,f,ga(g,p),p,g)}}class dc extends class{}{constructor(t,e,i,n,s){super(),this.location=i,this._rootLView=n,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new Ya(n),this.componentType=t}get injector(){return new Ve(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const pc=new Map;class fc extends Ja{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new cc(this);const i=at(t),n=t[Z]||null;n&&ia(n),this._bootstrapComponents=Ln(i.bootstrap),this._r3Injector=yo(t,e,[{provide:Ja,useValue:this},{provide:pa,useValue:this.componentFactoryResolver}],l(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Co.THROW_IF_NOT_FOUND,i=E.Default){return t===Co||t===Ja||t===ho?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class gc extends Qa{constructor(t){super(),this.moduleType=t,null!==at(t)&&function(t){const e=new Set;!function t(i){const n=at(i,!0),s=n.id;null!==s&&(function(t,e,i){if(e&&e!==i)throw new Error(`Duplicate module registered for ${t} - ${l(e)} vs ${l(e.name)}`)}(s,pc.get(s),i),pc.set(s,i));const o=Ln(n.imports);for(const r of o)e.has(r)||(e.add(r),t(r))}(t)}(t)}create(t){return new fc(this.moduleType,t)}}function mc(t,e,i){const n=Xt()+t,s=Bt();return s[n]===ds?Bo(s,n,i?e.call(i):e()):function(t,e){return t[e]}(s,n)}function _c(t,e,i,n){return wc(Bt(),Xt(),t,e,i,n)}function bc(t,e,i,n,s){return Ac(Bt(),Xt(),t,e,i,n,s)}function yc(t,e){const i=t[e];return i===ds?void 0:i}function wc(t,e,i,n,s,o){const r=e+i;return Ho(t,r,s)?Bo(t,r+1,o?n.call(o,s):n(s)):yc(t,r+1)}function Ac(t,e,i,n,s,o,r){const a=e+i;return Yo(t,a,s,o)?Bo(t,a+2,r?n.call(r,s,o):n(s,o)):yc(t,a+2)}function Mc(t,e){const i=Ht();let n;const s=t+20;i.firstCreatePass?(n=function(t,e){if(e)for(let i=e.length-1;i>=0;i--){const n=e[i];if(t===n.name)return n}throw new m("302",`The pipe '${t}' could not be found!`)}(e,i.pipeRegistry),i.data[s]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(s,n.onDestroy)):n=i.data[s];const o=n.factory||(n.factory=ft(n.type)),r=x(Go);try{const t=Re(!1),e=o();return Re(t),function(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}(i,Bt(),s,e),e}finally{x(r)}}function vc(t,e,i){const n=t+20,s=Bt(),o=zt(s,n);return Cc(s,Lc(s,n)?wc(s,Xt(),e,o.transform,i,o):o.transform(i))}function Tc(t,e,i,n){const s=t+20,o=Bt(),r=zt(o,s);return Cc(o,Lc(o,s)?Ac(o,Xt(),e,r.transform,i,n,r):r.transform(i,n))}function kc(t,e,i,n,s){const o=t+20,r=Bt(),a=zt(r,o);return Cc(r,Lc(r,o)?function(t,e,i,n,s,o,r,a){const c=e+i;return function(t,e,i,n,s){const o=Yo(t,e,i,n);return Ho(t,e+2,s)||o}(t,c,s,o,r)?Bo(t,c+3,a?n.call(a,s,o,r):n(s,o,r)):yc(t,c+3)}(r,Xt(),e,a.transform,i,n,s,a):a.transform(i,n,s))}function Lc(t,e){return t[1].data[e].pure}function Cc(t,e){return No.isWrapped(e)&&(e=No.unwrap(e),t[Vt()]=ds),e}function Sc(t){return e=>{setTimeout(t,void 0,e)}}const Ec=class extends n.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var n,o,r;let a=t,c=e||(()=>null),u=i;if(t&&"object"==typeof t){const e=t;a=null===(n=e.next)||void 0===n?void 0:n.bind(e),c=null===(o=e.error)||void 0===o?void 0:o.bind(e),u=null===(r=e.complete)||void 0===r?void 0:r.bind(e)}this.__isAsync&&(c=Sc(c),a&&(a=Sc(a)),u&&(u=Sc(u)));const l=super.subscribe({next:a,error:c,complete:u});return t instanceof s.w&&t.add(l),l}};function zc(){return this._results[Po()]()}class xc{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Po(),i=xc.prototype;i[e]||(i[e]=zc)}get changes(){return this._changes||(this._changes=new Ec)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){this.dirty=!1;const i=si(t);(this._changesDetected=!function(t,e,i){if(t.length!==e.length)return!1;for(let n=0;n0)n.push(r[t/2]);else{const s=o[t+1],r=e[-i];for(let t=10;t{class t{constructor(t){this.appInits=t,this.resolve=fa,this.reject=fa,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{e.subscribe({complete:t,error:i})});t.push(i)}}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(bi(Xc,8))},t.\u0275prov=w({token:t,factory:t.\u0275fac}),t})();const $c=new ei("AppId"),Jc={provide:$c,useFactory:function(){return`${Qc()}${Qc()}${Qc()}`},deps:[]};function Qc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const tu=new ei("Platform Initializer"),eu=new ei("Platform ID"),iu=new ei("appBootstrapListener");let nu=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac}),t})();const su=new ei("LocaleId"),ou=new ei("DefaultCurrencyCode");class ru{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const au=function(t){return new gc(t)},cu=au,uu=function(t){return Promise.resolve(au(t))},lu=function(t){const e=au(t),i=Ln(at(t).declarations).reduce((t,e)=>{const i=rt(e);return i&&t.push(new hc(i)),t},[]);return new ru(e,i)},hu=lu,du=function(t){return Promise.resolve(lu(t))};let pu=(()=>{class t{constructor(){this.compileModuleSync=cu,this.compileModuleAsync=uu,this.compileModuleAndAllComponentsSync=hu,this.compileModuleAndAllComponentsAsync=du}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac}),t})();const fu=(()=>Promise.resolve(0))();function gu(t){"undefined"==typeof Zone?fu.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class mu{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ec(!1),this.onMicrotaskEmpty=new Ec(!1),this.onStable=new Ec(!1),this.onError=new Ec(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=!i&&e,this.shouldCoalesceRunChangeDetection=i,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=H.requestAnimationFrame,e=H.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(H,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,yu(t),t.isCheckStableRunning=!0,bu(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),yu(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,s,o,r,a)=>{try{return wu(t),i.invokeTask(s,o,r,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&e(),Au(t)}},onInvoke:(i,n,s,o,r,a,c)=>{try{return wu(t),i.invoke(s,o,r,a,c)}finally{t.shouldCoalesceRunChangeDetection&&e(),Au(t)}},onHasTask:(e,i,n,s)=>{e.hasTask(n,s),i===n&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,yu(t),bu(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,n,s)=>(e.handleError(n,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!mu.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(mu.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,n){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+n,t,_u,fa,fa);try{return s.runTask(o,e,i)}finally{s.cancelTask(o)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const _u={};function bu(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function yu(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function wu(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Au(t){t._nesting--,bu(t)}class Mu{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ec,this.onMicrotaskEmpty=new Ec,this.onStable=new Ec,this.onError=new Ec}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,n){return t.apply(e,i)}}let vu=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{mu.assertNotInAngularZone(),gu(()=>{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())gu(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,i){let n=-1;e&&e>0&&(n=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==n),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:n,updateCb:i})}whenStable(t,e,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,e,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,i){return[]}}return t.\u0275fac=function(e){return new(e||t)(bi(mu))},t.\u0275prov=w({token:t,factory:t.\u0275fac}),t})(),Tu=(()=>{class t{constructor(){this._applications=new Map,Su.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Su.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac}),t})();class ku{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}function Lu(t){Su=t}let Cu,Su=new ku,Eu=!0,zu=!1;function xu(){return zu=!0,Eu}function Ou(){if(zu)throw new Error("Cannot enable prod mode after platform setup.");Eu=!1}const Ru=new ei("AllowMultipleToken");class Du{constructor(t,e){this.name=t,this.token=e}}function Pu(t,e,i=[]){const n=`Platform: ${e}`,s=new ei(n);return(e=[])=>{let o=Nu();if(!o||o.injector.get(Ru,!1))if(t)t(i.concat(e).concat({provide:s,useValue:!0}));else{const t=i.concat(e).concat({provide:s,useValue:!0},{provide:fo,useValue:"platform"});!function(t){if(Cu&&!Cu.destroyed&&!Cu.injector.get(Ru,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Cu=t.get(Iu);const e=t.get(tu,null);e&&e.forEach(t=>t())}(Co.create({providers:t,name:n}))}return function(t){const e=Nu();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function Nu(){return Cu&&!Cu.destroyed?Cu:null}let Iu=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const i=function(t,e){let i;return i="noop"===t?new Mu:("zone.js"===t?void 0:t)||new mu({enableLongStackTrace:xu(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),i}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),n=[{provide:mu,useValue:i}];return i.run(()=>{const e=Co.create({providers:n,parent:this.injector,name:t.moduleType.name}),s=t.create(e),o=s.injector.get(Mn,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.runOutsideAngular(()=>{const t=i.onError.subscribe({next:t=>{o.handleError(t)}});s.onDestroy(()=>{Hu(this._modules,s),t.unsubscribe()})}),function(t,e,i){try{const n=i();return or(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}(o,i,()=>{const t=s.injector.get(Vc);return t.runInitializers(),t.donePromise.then(()=>(ia(s.injector.get(su,"en-US")||"en-US"),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const i=qu({},e);return function(t,e,i){const n=new gc(i);return Promise.resolve(n)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,i))}_moduleDoBootstrap(t){const e=t.injector.get(Bu);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${l(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(bi(Co))},t.\u0275prov=w({token:t,factory:t.\u0275fac}),t})();function qu(t,e){return Array.isArray(e)?e.reduce(qu,t):Object.assign(Object.assign({},t),e)}let Bu=(()=>{class t{constructor(t,e,i,n,s){this._zone=t,this._injector=e,this._exceptionHandler=i,this._componentFactoryResolver=n,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const c=new o.y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),u=new o.y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{mu.assertNotInAngularZone(),gu(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const i=this._zone.onUnstable.subscribe(()=>{mu.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),i.unsubscribe()}});this.isStable=(0,r.T)(c,u.pipe((0,a.B)()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let i;i=t instanceof ha?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(i.componentType);const n=i.isBoundToModule?void 0:this._injector.get(Ja),s=i.create(Co.NULL,[],e||i.selector,n),o=s.location.nativeElement,r=s.injector.get(vu,null),a=r&&s.injector.get(Tu);return r&&a&&a.registerApplication(o,r),s.onDestroy(()=>{this.detachView(s.hostView),Hu(this.components,s),a&&a.unregisterApplication(o)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Hu(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(iu,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(bi(mu),bi(Co),bi(Mn),bi(pa),bi(Vc))},t.\u0275prov=w({token:t,factory:t.\u0275fac}),t})();function Hu(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}class Yu{}class ju{}const Fu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Wu=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Fu}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,n]=t.split("#");return void 0===n&&(n="default"),i(1730)(e).then(t=>t[n]).then(t=>Uu(t,e,n)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,n]=t.split("#"),s="NgFactory";return void 0===n&&(n="default",s=""),i(1730)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[n+s]).then(t=>Uu(t,e,n))}}return t.\u0275fac=function(e){return new(e||t)(bi(pu),bi(ju,8))},t.\u0275prov=w({token:t,factory:t.\u0275fac}),t})();function Uu(t,e,i){if(!t)throw new Error(`Cannot find '${i}' in '${e}'`);return t}const Ku=function(t){return null},Zu=Pu(null,"core",[{provide:eu,useValue:"unknown"},{provide:Iu,deps:[Co]},{provide:Tu,deps:[]},{provide:nu,deps:[]}]),Gu=[{provide:Bu,useClass:Bu,deps:[mu,Co,Mn,pa,Vc]},{provide:lc,deps:[mu],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Vc,useClass:Vc,deps:[[new vi,Xc]]},{provide:pu,useClass:pu,deps:[]},Jc,{provide:Na,useFactory:function(){return Ua},deps:[]},{provide:qa,useFactory:function(){return Ka},deps:[]},{provide:su,useFactory:function(t){return ia(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new Mi(su),new vi,new Ti]]},{provide:ou,useValue:"USD"}];let Xu=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(bi(Bu))},t.\u0275mod=et({type:t}),t.\u0275inj=A({providers:Gu}),t})()},2623:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{zr:function(){return OAuthModule},Ct:function(){return OAuthService}});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1572),_angular_common__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(1511),_angular_common_http__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(9063),tslib__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(7632),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5959),rxjs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(878),rxjs__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(9764),rxjs__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(3875),rxjs__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(1225),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(1305),rxjs__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(1906),rxjs_operators__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3835),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6599),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(7701),rxjs_operators__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(509),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(4689),rxjs_operators__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(9996),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(3530),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(7727),rxjs_operators__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(9085),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(611),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(3982);module=__webpack_require__.hmd(module);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class t extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return t.\u0275fac=function(){let e;return function(i){return(e||(e=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(t)))(i||t)}}(),t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class t{constructor(){this.data=new Map}getItem(t){return this.data.get(t)}removeItem(t){this.data.delete(t)}setItem(t,e){this.data.set(t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();class ReceivedTokens{}function b64DecodeUnicode(t){const e=t.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(e).split("").map(function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(t){return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(t){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){let e=this.inferHashAlgorithm(t.idTokenHeader),i=yield this.calcHash(t.accessToken,e),n=base64UrlEncode(i.substr(0,i.length/2)),s=t.idTokenClaims.at_hash.replace(/=/g,"");return n!==s&&(console.error("exptected at_hash: "+n),console.error("actual at_hash: "+s)),n===s})}inferHashAlgorithm(t){let e=t.alg;if(!e.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+e);return"sha-"+e.substr(2)}}let UrlHelperService=(()=>{class t{getHashFragmentParams(t){let e=t||window.location.hash;if(e=decodeURIComponent(e),0!==e.indexOf("#"))return{};const i=e.indexOf("?");return e=e.substr(i>-1?i+1:1),this.parseQueryString(e)}parseQueryString(t){const e={};let i,n,s,o,r,a,c;if(null===t)return e;i=t.split("&");for(let u=0;u{location.href=t},t&&Object.assign(this,t)}}class WebHttpUrlEncodingCodec{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&module.exports,AMD="function"==typeof define&&__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[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],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t,e){return function(i){return new Sha256(e,!0).update(i)[t]()}};const \u02750=createOutputMethod;var createMethod=function(t){var e=createOutputMethod("hex",t);NODE_JS&&(e=nodeWrap(e,t)),e.create=function(){return new Sha256(t)},e.update=function(t){return e.create().update(t)};for(var i=0;i>6,r[c++]=128|63&o):o<55296||o>=57344?(r[c++]=224|o>>12,r[c++]=128|o>>6&63,r[c++]=128|63&o):(o=65536+((1023&o)<<10|1023&t.charCodeAt(++n)),r[c++]=240|o>>18,r[c++]=128|o>>12&63,r[c++]=128|o>>6&63,r[c++]=128|63&o);t=r}else{if("object"!==s)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR)}t.length>64&&(t=new Sha256(e,!0).update(t).array());var u=[],l=[];for(n=0;n<64;++n){var h=t[n]||0;u[n]=92^h,l[n]=54^h}Sha256.call(this,e,i),this.update(l),this.oKeyPad=u,this.inner=!0,this.sharedMemory=i}Sha256.prototype.update=function(t){if(!this.finalized){var e,i=typeof t;if("string"!==i){if("object"!==i)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR);e=!0}for(var n,s,o=0,r=t.length,a=this.blocks;o>2]|=t[o]<>2]|=n<>2]|=(192|n>>6)<>2]|=(128|63&n)<=57344?(a[s>>2]|=(224|n>>12)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<>2]|=(240|n>>18)<>2]|=(128|n>>12&63)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<=64?(this.block=a[16],this.start=s-64,this.hash(),this.hashed=!0):this.start=s}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 t=this.blocks,e=this.lastByteIndex;t[16]=this.block,t[e>>2]|=EXTRA[3&e],this.block=t[16],e>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var t,e,i,n,s,o,r=this.h0,a=this.h1,c=this.h2,u=this.h3,l=this.h4,h=this.h5,d=this.h6,p=this.h7,f=this.blocks;for(t=16;t<64;++t)f[t]=f[t-16]+(((e=f[t-15])>>>7|e<<25)^(e>>>18|e<<14)^e>>>3)+f[t-7]+(((e=f[t-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)<<0;for(o=a&c,t=0;t<64;t+=4)this.first?(this.is224?(i=300032,p=(e=f[0]-1413257819)-150054599<<0,u=e+24177077<<0):(i=704751109,p=(e=f[0]-210244248)-1521486534<<0,u=e+143694565<<0),this.first=!1):(p=u+(e=p+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&h^~l&d)+K[t]+f[t])<<0,u=e+(((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+((i=r&a)^r&c^o))<<0),d=c+(e=d+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&l^~p&h)+K[t+1]+f[t+1])<<0,c=e+(((u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10))+((n=u&r)^u&a^i))<<0,h=a+(e=h+((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&p^~d&l)+K[t+2]+f[t+2])<<0,a=e+(((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+((s=c&u)^c&r^n))<<0,l=r+(e=l+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&d^~h&p)+K[t+3]+f[t+3])<<0,r=e+(((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+((o=a&c)^a&u^s))<<0;this.h0=this.h0+r<<0,this.h1=this.h1+a<<0,this.h2=this.h2+c<<0,this.h3=this.h3+u<<0,this.h4=this.h4+l<<0,this.h5=this.h5+h<<0,this.h6=this.h6+d<<0,this.h7=this.h7+p<<0},Sha256.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,i=this.h2,n=this.h3,s=this.h4,o=this.h5,r=this.h6,a=this.h7,c=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[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[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[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[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]+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]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r];return this.is224||(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]),c},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,i=this.h2,n=this.h3,s=this.h4,o=this.h5,r=this.h6,a=this.h7,c=[t>>24&255,t>>16&255,t>>8&255,255&t,e>>24&255,e>>16&255,e>>8&255,255&e,i>>24&255,i>>16&255,i>>8&255,255&i,n>>24&255,n>>16&255,n>>8&255,255&n,s>>24&255,s>>16&255,s>>8&255,255&s,o>>24&255,o>>16&255,o>>8&255,255&o,r>>24&255,r>>16&255,r>>8&255,255&r];return this.is224||c.push(a>>24&255,a>>16&255,a>>8&255,255&a),c},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(this.is224?28:32),e=new DataView(t);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),e.setUint32(20,this.h5),e.setUint32(24,this.h6),this.is224||e.setUint32(28,this.h7),t},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(t),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0);class HashHandler{}let DefaultHashHandler=(()=>{class t{calcHash(t,e){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){const e=exports.array(t);return this.toHashString2(e)})}toHashString2(t){let e="";for(let i of t)e+=String.fromCharCode(i);return e}toHashString(t){const e=new Uint8Array(t);let i="";for(let n of e)i+=String.fromCharCode(n);return i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})(),OAuthService=(()=>{class t extends AuthConfig{constructor(t,e,i,n,s,o,r,a,c,u){var l;super(),this.ngZone=t,this.http=e,this.config=s,this.urlHelper=o,this.logger=r,this.crypto=a,this.dateTimeService=u,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_2__.xQ,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_2__.xQ,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=c,s||(s={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),n&&(this.tokenValidationHandler=n),s&&this.configure(s);try{i?this.setStorage(i):"undefined"!=typeof sessionStorage&&this.setStorage(sessionStorage)}catch(h){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",h)}if("undefined"!=typeof window&&void 0!==window.localStorage){const t=null===(l=null===window||void 0===window?void 0:window.navigator)||void 0===l?void 0:l.userAgent;((null==t?void 0:t.includes("MSIE "))||(null==t?void 0:t.includes("Trident")))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}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_3__.h)(t=>"token_received"===t.type)).subscribe(t=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(t={},e,i=!0){let n=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.b)(t=>{"token_received"===t.type?n=!0:"logout"===t.type&&(n=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>"token_expires"===t.type&&(null==e||"any"===e||t.info===e)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(1e3)).subscribe(e=>{n&&this.refreshInternal(t,i).catch(t=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(t,e){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(t,e):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(t=null){return this.loadDiscoveryDocument().then(e=>this.tryLogin(t))}loadDiscoveryDocumentAndLogin(t=null){return this.loadDiscoveryDocumentAndTryLogin(t=t||{}).then(e=>!(!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 e=[],i=this.validateUrlForHttps(t),n=this.validateUrlAgainstIssuer(t);return i||e.push("https for all urls required. Also for urls received by discovery."),n||e.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),e}validateUrlForHttps(t){if(!t)return!0;const e=t.toLowerCase();return!1===this.requireHttps||!(!e.match(/^http:\/\/localhost($|[:\/])/)&&!e.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps)||e.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(t,e){if(!t)throw new Error(`'${e}' should not be null`);if(!this.validateUrlForHttps(t))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(t){return!this.strictDiscoveryDocumentValidation||!t||t.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){"undefined"!=typeof window?((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_3__.h)(t=>"token_received"===t.type)).subscribe(t=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})):this.debug("timer not supported on this plattform")}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const t=this.getAccessTokenExpiration(),e=this.getAccessTokenStoredAt(),i=this.calcTimeout(e,t);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.g)(i)).subscribe(t=>{this.ngZone.run(()=>{this.eventsSubject.next(t)})})})}setupIdTokenTimer(){const t=this.getIdTokenExpiration(),e=this.getIdTokenStoredAt(),i=this.calcTimeout(e,t);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.g)(i)).subscribe(t=>{this.ngZone.run(()=>{this.eventsSubject.next(t)})})})}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,e){const i=this.dateTimeService.now();return Math.max(0,(e-t)*this.timeoutFactor-(i-t))}setStorage(t){this._storage=t,this.configChanged()}loadDiscoveryDocument(t=null){return new Promise((e,i)=>{t||((t=this.issuer||"").endsWith("/")||(t+="/"),t+=".well-known/openid-configuration"),this.validateUrlForHttps(t)?this.http.get(t).subscribe(t=>{if(!this.validateDiscoveryDocument(t))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void i("discovery_document_validation_error");this.loginUrl=t.authorization_endpoint,this.logoutUrl=t.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=t.grant_types_supported,this.issuer=t.issuer,this.tokenEndpoint=t.token_endpoint,this.userinfoEndpoint=t.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=t.jwks_uri,this.sessionCheckIFrameUrl=t.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(t),this.revocationEndpoint=t.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(i=>{const n=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:t,jwks:i});this.eventsSubject.next(n),e(n)}).catch(t=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",t)),i(t)})},t=>{this.logger.error("error loading discovery document",t),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",t)),i(t)}):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,e)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(e=>{this.jwks=e,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),t(e)},t=>{this.logger.error("error loading jwks",t),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",t)),e(t)}):t(null)})}validateDiscoveryDocument(t){let e;return this.skipIssuerCheck||t.issuer===this.issuer?(e=this.validateUrlFromDiscoveryDocument(t.authorization_endpoint),e.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(t.end_session_endpoint),e.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(t.token_endpoint),e.length>0&&this.logger.error("error validating token_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(t.revocation_endpoint),e.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(t.userinfo_endpoint),e.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(t.jwks_uri),e.length>0?(this.logger.error("error validating jwks_uri in discovery document",e),!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,e,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM){return this.fetchTokenUsingPasswordFlow(t,e,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,e)=>{const i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:i,observe:"response",responseType:"text"}).subscribe(i=>{if(this.debug("userinfo received",JSON.stringify(i)),i.headers.get("content-type").startsWith("application/json")){let n=JSON.parse(i.body);const s=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!s.sub||n.sub!==s.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");n=Object.assign({},s,n),this._storage.setItem("id_token_claims_obj",JSON.stringify(n)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),t({info:n})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),t(JSON.parse(i.body))},t=>{this.logger.error("error loading user info",t),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",t)),e(t)})})}fetchTokenUsingPasswordFlow(t,e,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM){return this.fetchTokenUsingGrant("password",{username:t,password:e},i)}fetchTokenUsingGrant(t,e,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",t).set("scope",this.scope);if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+t)}if(this.useHttpBasicAuth||(n=n.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(n=n.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const s of Object.getOwnPropertyNames(this.customQueryParams))n=n.set(s,this.customQueryParams[s]);for(const s of Object.keys(e))n=n.set(s,e[s]);return i=i.set("Content-Type","application/x-www-form-urlencoded"),new Promise((t,e)=>{this.http.post(this.tokenEndpoint,n,{headers:i}).subscribe(e=>{this.debug("tokenResponse",e),this.storeAccessTokenResponse(e.access_token,e.refresh_token,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,e.scope,this.extractRecognizedCustomParameters(e)),this.oidc&&e.id_token&&this.processIdToken(e.id_token,e.access_token).then(i=>{this.storeIdToken(i),t(e)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),t(e)},t=>{this.logger.error("Error performing ${grantType} flow",t),this.eventsSubject.next(new OAuthErrorEvent("token_error",t)),e(t)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((t,e)=>{let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),n=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);n=n.set("Authorization","Basic "+t)}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 s of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(s,this.customQueryParams[s]);this.http.post(this.tokenEndpoint,i,{headers:n}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.w)(t=>t.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_10__.D)(this.processIdToken(t.id_token,t.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.b)(t=>this.storeIdToken(t)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.U)(e=>t)):(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(t))).subscribe(e=>{this.debug("refresh tokenResponse",e),this.storeAccessTokenResponse(e.access_token,e.refresh_token,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,e.scope,this.extractRecognizedCustomParameters(e)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),t(e)},t=>{this.logger.error("Error refreshing token",t),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",t)),e(t)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=t=>{const e=this.processMessageEventMessage(t);this.tryLogin({customHashFragment:e,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(t=>this.debug("tryLogin during silent refresh failed",t))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(t={},e=!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(void 0===this.document)throw new Error("silent refresh is not supported on this platform");const n=this.document.getElementById(this.silentRefreshIFrameName);n&&this.document.body.removeChild(n),this.silentRefreshSubject=i.sub;const s=this.document.createElement("iframe");s.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,e,t).then(t=>{s.setAttribute("src",t),this.silentRefreshShowIFrame||(s.style.display="none"),this.document.body.appendChild(s)});const o=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>t instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.P)()),r=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>"token_received"===t.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.P)()),a=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_13__.S3)([o,r,a]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.U)(t=>{if(t instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===t.type||(t=new OAuthErrorEvent("silent_refresh_error",t)),this.eventsSubject.next(t),t;return"token_received"===t.type&&(t=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(t)),t})).toPromise()}initImplicitFlowInPopup(t){return this.initLoginFlowInPopup(t)}initLoginFlowInPopup(t){return t=t||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(e=>new Promise((i,n)=>{let s,o=null;t.windowRef?t.windowRef&&!t.windowRef.closed&&(o=t.windowRef,o.location.href=e):o=window.open(e,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(t));const r=t=>{this.tryLogin({customHashFragment:t,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{a(),i(!0)},t=>{a(),n(t)})};o?s=window.setInterval(()=>{o&&!o.closed||(a(),n(new OAuthErrorEvent("popup_closed",{})))},500):n(new OAuthErrorEvent("popup_blocked",{}));const a=()=>{window.clearInterval(s),window.removeEventListener("storage",u),window.removeEventListener("message",c),null!==o&&o.close(),o=null},c=t=>{const e=this.processMessageEventMessage(t);e&&null!==e?(window.removeEventListener("storage",u),r(e)):console.log("false event firing")},u=t=>{"auth_hash"===t.key&&(window.removeEventListener("message",c),r(t.newValue))};window.addEventListener("message",c),window.addEventListener("storage",u)}))}calculatePopupFeatures(t){const e=t.height||470,i=t.width||500,n=window.screenLeft+(window.outerWidth-i)/2;return`location=no,toolbar=no,width=${i},height=${e},top=${window.screenTop+(window.outerHeight-e)/2},left=${n}`}processMessageEventMessage(t){let e="#";if(this.silentRefreshMessagePrefix&&(e+=this.silentRefreshMessagePrefix),!t||!t.data||"string"!=typeof t.data)return;const i=t.data;return i.startsWith(e)?"#"+i.substr(e.length):void 0}canPerformSessionCheck(){return!!this.sessionChecksEnabled&&(this.sessionCheckIFrameUrl?this.getSessionState()?void 0!==this.document:(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 e=t.origin.toLowerCase(),i=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),i.startsWith(e)){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",e,"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_3__.h)(t=>"silently_refreshed"===t.type||"silent_refresh_timeout"===t.type||"silent_refresh_error"===t.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.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 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 t=this.document.getElementById(this.sessionCheckIFrameName);t||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const e=this.getSessionState();e||this.stopSessionCheckTimer(),t.contentWindow.postMessage(this.clientId+" "+e,this.issuer)}createLoginUrl(t="",e="",i="",n=!1,s={}){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){let o;o=i||this.redirectUri;const r=yield this.createAndSaveNonce();if(t=t?r+this.config.nonceStateSeparator+encodeURIComponent(t):r,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.responseType=this.config.responseType?this.config.responseType:this.oidc&&this.requestAccessToken?"id_token token":this.oidc&&!this.requestAccessToken?"id_token":"token";const a=this.loginUrl.indexOf("?")>-1?"&":"?";let c=this.scope;this.oidc&&!c.match(/(^|\s)openid($|\s)/)&&(c="openid "+c);let u=this.loginUrl+a+"response_type="+encodeURIComponent(this.responseType)+"&client_id="+encodeURIComponent(this.clientId)+"&state="+encodeURIComponent(t)+"&redirect_uri="+encodeURIComponent(o)+"&scope="+encodeURIComponent(c);if(this.responseType.includes("code")&&!this.disablePKCE){const[t,e]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("PKCE_verifier",e):this._storage.setItem("PKCE_verifier",e),u+="&code_challenge="+t,u+="&code_challenge_method=S256"}e&&(u+="&login_hint="+encodeURIComponent(e)),this.resource&&(u+="&resource="+encodeURIComponent(this.resource)),this.oidc&&(u+="&nonce="+encodeURIComponent(r)),n&&(u+="&prompt=none");for(const t of Object.keys(s))u+="&"+encodeURIComponent(t)+"="+encodeURIComponent(s[t]);if(this.customQueryParams)for(const t of Object.getOwnPropertyNames(this.customQueryParams))u+="&"+t+"="+encodeURIComponent(this.customQueryParams[t]);return u})}initImplicitFlowInternal(t="",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 i={},n=null;"string"==typeof e?n=e:"object"==typeof e&&(i=e),this.createLoginUrl(t,n,null,!1,i).then(this.config.openUri).catch(t=>{console.error("Error in initImplicitFlow",t),this.inImplicitFlow=!1})}initImplicitFlow(t="",e=""){""!==this.loginUrl?this.initImplicitFlowInternal(t,e):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>"discovery_document_loaded"===t.type)).subscribe(i=>this.initImplicitFlowInternal(t,e))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(t){const e=this;if(t.onTokenReceived){const i={idClaims:e.getIdentityClaims(),idToken:e.getIdToken(),accessToken:e.getAccessToken(),state:e.state};t.onTokenReceived(i)}}storeAccessTokenResponse(t,e,i,n,s){if(this._storage.setItem("access_token",t),n&&!Array.isArray(n)?this._storage.setItem("granted_scopes",JSON.stringify(n.split(" "))):n&&Array.isArray(n)&&this._storage.setItem("granted_scopes",JSON.stringify(n)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),i){const t=1e3*i,e=this.dateTimeService.new().getTime()+t;this._storage.setItem("expires_at",""+e)}e&&this._storage.setItem("refresh_token",e),s&&s.forEach((t,e)=>{this._storage.setItem(e,t)})}tryLogin(t=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(t).then(t=>!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){const e=(t=t||{}).customHashFragment?t.customHashFragment.substring(1):window.location.search,i=this.getCodePartsFromUrl(e),n=i.code,s=i.state,o=i.session_state;if(!t.preventClearHashAfterLogin){const t=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,t)}let[r,a]=this.parseState(s);if(this.state=a,i.error){this.debug("error trying to login"),this.handleLoginError(t,i);const e=new OAuthErrorEvent("code_error",{},i);return this.eventsSubject.next(e),Promise.reject(e)}if(!t.disableNonceCheck){if(!r)return Promise.resolve();if(!t.disableOAuth2StateCheck&&!this.validateNonce(r)){const t=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(t),Promise.reject(t)}return this.storeSessionState(o),n?this.getTokenFromCode(n,t).then(t=>null):Promise.resolve()}}getCodePartsFromUrl(t){return t&&0!==t.length?("?"===t.charAt(0)&&(t=t.substr(1)),this.urlHelper.parseQueryString(t)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(t,e){let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",t).set("redirect_uri",e.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let t;t=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),t?i=i.set("code_verifier",t):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(i,e)}fetchAndProcessToken(t,e){e=e||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+t)}return this.useHttpBasicAuth||(t=t.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(t=t.set("client_secret",this.dummyClientSecret)),new Promise((n,s)=>{if(this.customQueryParams)for(let e of Object.getOwnPropertyNames(this.customQueryParams))t=t.set(e,this.customQueryParams[e]);this.http.post(this.tokenEndpoint,t,{headers:i}).subscribe(t=>{this.debug("refresh tokenResponse",t),this.storeAccessTokenResponse(t.access_token,t.refresh_token,t.expires_in||this.fallbackAccessTokenExpirationTimeInSec,t.scope,this.extractRecognizedCustomParameters(t)),this.oidc&&t.id_token?this.processIdToken(t.id_token,t.access_token,e.disableNonceCheck).then(e=>{this.storeIdToken(e),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),n(t)}).catch(t=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",t)),console.error("Error validating tokens"),console.error(t),s(t)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),n(t))},t=>{console.error("Error getting token",t),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",t)),s(t)})})}tryLoginImplicitFlow(t=null){let e;e=(t=t||{}).customHashFragment?this.urlHelper.getHashFragmentParams(t.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",e);const i=e.state;let[n,s]=this.parseState(i);if(this.state=s,e.error){this.debug("error trying to login"),this.handleLoginError(t,e);const i=new OAuthErrorEvent("token_error",{},e);return this.eventsSubject.next(i),Promise.reject(i)}const o=e.access_token,r=e.id_token,a=e.session_state,c=e.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!o)return Promise.resolve(!1);if(this.requestAccessToken&&!t.disableOAuth2StateCheck&&!i)return Promise.resolve(!1);if(this.oidc&&!r)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!a&&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(n)){const t=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(t),Promise.reject(t)}return this.requestAccessToken&&this.storeAccessTokenResponse(o,null,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,c),this.oidc?this.processIdToken(r,o,t.disableNonceCheck).then(e=>t.validationHandler?t.validationHandler({accessToken:o,idClaims:e.idTokenClaims,idToken:e.idToken,state:i}).then(t=>e):e).then(e=>(this.storeIdToken(e),this.storeSessionState(a),this.clearHashAfterLogin&&!t.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(t),this.inImplicitFlow=!1,!0)).catch(t=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",t)),this.logger.error("Error validating tokens"),this.logger.error(t),Promise.reject(t))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!t.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(t),Promise.resolve(!0))}parseState(t){let e=t,i="";if(t){const n=t.indexOf(this.config.nonceStateSeparator);n>-1&&(e=t.substr(0,n),i=t.substr(n+this.config.nonceStateSeparator.length))}return[e,i]}validateNonce(t){let e;return e=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),e===t||(console.error("Validating access_token failed, wrong state/nonce.",e,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,e){t.onLoginError&&t.onLoginError(e),this.clearHashAfterLogin&&!t.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(t=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:t}processIdToken(t,e,i=!1){const n=t.split("."),s=b64DecodeUnicode(this.padBase64(n[0])),o=JSON.parse(s),r=b64DecodeUnicode(this.padBase64(n[1])),a=JSON.parse(r);let c;if(c=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(a.aud)){if(a.aud.every(t=>t!==this.clientId)){const t="Wrong audience: "+a.aud.join(",");return this.logger.warn(t),Promise.reject(t)}}else if(a.aud!==this.clientId){const t="Wrong audience: "+a.aud;return this.logger.warn(t),Promise.reject(t)}if(!a.sub){const t="No sub claim in id_token";return this.logger.warn(t),Promise.reject(t)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==a.sub){const t=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${a.sub}`;return this.logger.warn(t),Promise.reject(t)}if(!a.iat){const t="No iat claim in id_token";return this.logger.warn(t),Promise.reject(t)}if(!this.skipIssuerCheck&&a.iss!==this.issuer){const t="Wrong issuer: "+a.iss;return this.logger.warn(t),Promise.reject(t)}if(!i&&a.nonce!==c){const t="Wrong nonce: "+a.nonce;return this.logger.warn(t),Promise.reject(t)}if(!this.hasOwnProperty("responseType")||"code"!==this.responseType&&"id_token"!==this.responseType||(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!a.at_hash){const t="An at_hash is needed!";return this.logger.warn(t),Promise.reject(t)}const u=this.dateTimeService.now(),l=1e3*a.iat,h=1e3*a.exp,d=this.getClockSkewInMsec();if(l-d>=u||h+d<=u){const t="Token has expired";return console.error(t),console.error({now:u,issuedAtMSec:l,expiresAtMSec:h}),Promise.reject(t)}const p={accessToken:e,idToken:t,jwks:this.jwks,idTokenClaims:a,idTokenHeader:o,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(p).then(e=>({idToken:t,idTokenClaims:a,idTokenClaimsJson:r,idTokenHeader:o,idTokenHeaderJson:s,idTokenExpiresAt:h})):this.checkAtHash(p).then(e=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!e){const t="Wrong at_hash";return this.logger.warn(t),Promise.reject(t)}return this.checkSignature(p).then(e=>{const i={idToken:t,idTokenClaims:a,idTokenClaimsJson:r,idTokenHeader:o,idTokenHeaderJson:s,idTokenExpiresAt:h};return this.disableAtHashCheck?i:this.checkAtHash(p).then(t=>{if(this.requestAccessToken&&!t){const t="Wrong at_hash";return this.logger.warn(t),Promise.reject(t)}return i})})})}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"),e=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={},e=""){let i=!1;"boolean"==typeof t&&(i=t,t={});const n=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(t=>this._storage.removeItem(t)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl)return;if(i)return;if(!n&&!this.postLogoutRedirectUri)return;let s;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)s=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(n)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec});n&&(i=i.set("id_token_hint",n));const o=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";o&&(i=i.set("post_logout_redirect_uri",o),e&&(i=i.set("state",e)));for(let e in t)i=i.set(e,t[e]);s=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+i.toString()}this.config.openUri(s)}createAndSaveNonce(){const t=this;return this.createNonce().then(function(e){return t.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("nonce",e):t._storage.setItem("nonce",e),e})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const t=this.document.getElementById(this.silentRefreshIFrameName);t&&t.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const e=this.document.getElementById(this.sessionCheckIFrameName);e&&e.remove()}createNonce(){return new Promise(t=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let i=45,n="";const s="undefined"==typeof self?null:self.crypto||self.msCrypto;if(s){let t=new Uint8Array(i);s.getRandomValues(t),t.map||(t.map=Array.prototype.map),t=t.map(t=>e.charCodeAt(t%e.length)),n=String.fromCharCode.apply(null,t)}else for(;0"discovery_document_loaded"===t.type)).subscribe(i=>this.initCodeFlowInternal(t,e))}initCodeFlowInternal(t="",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 i={},n=null;"string"==typeof e?n=e:"object"==typeof e&&(i=e),this.createLoginUrl(t,n,null,!1,i).then(this.config.openUri).catch(t=>{console.error("Error in initAuthorizationCodeFlow"),console.error(t)})}createChallangeVerifierPairForPKCE(){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const t=yield this.createNonce();return[base64UrlEncode(yield this.crypto.calcHash(t,"sha-256")),t]})}extractRecognizedCustomParameters(t){let e=new Map;return this.config.customTokenParameters?(this.config.customTokenParameters.forEach(i=>{t[i]&&e.set(i,JSON.stringify(t[i]))}),e):e}revokeTokenAndLogout(t={},e=!1){let i=this.revocationEndpoint,n=this.getAccessToken(),s=this.getRefreshToken();if(!n)return;let o=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}),r=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);r=r.set("Authorization","Basic "+t)}if(this.useHttpBasicAuth||(o=o.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(o=o.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const a of Object.getOwnPropertyNames(this.customQueryParams))o=o.set(a,this.customQueryParams[a]);return new Promise((a,c)=>{let u,l;if(n){let t=o.set("token",n).set("token_type_hint","access_token");u=this.http.post(i,t,{headers:r})}else u=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null);if(s){let t=o.set("token",s).set("token_type_hint","refresh_token");l=this.http.post(i,t,{headers:r})}else l=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null);e&&(u=u.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>0===t.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(t))),l=l.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>0===t.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(t)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_16__.aj)([u,l]).subscribe(e=>{this.logOut(t),a(e),this.logger.info("Token successfully revoked")},t=>{this.logger.error("Error revoking token",t),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",t)),c(t)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return t.\u0275fac=function(e){return new(e||t)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_0__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_8__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_17__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DateTimeProvider))},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(t){return(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(t)}}let DefaultOAuthInterceptor=(()=>{class t{constructor(t,e,i){this.oAuthService=t,this.errorHandler=e,this.moduleConfig=i}checkUrl(t){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(t):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(e=>t.toLowerCase().startsWith(e.toLowerCase()))}intercept(t,e){const i=t.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(i)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_18__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>!!t)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(t=>"token_received"===t.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_19__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.U)(t=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.zg)(i=>{if(i){const e=t.headers.set("Authorization","Bearer "+i);t=t.clone({headers:e})}return e.handle(t).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>this.errorHandler.handleError(t)))})):e.handle(t).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(t=>this.errorHandler.handleError(t))):e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthModuleConfig,8))},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t})();class NullValidationHandler{validateSignature(t){return Promise.resolve(null)}validateAtHash(t){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return"undefined"!=typeof sessionStorage?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class t{static forRoot(e=null,i=NullValidationHandler){return{ngModule:t,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:i},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:e},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_8__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:t}),t.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_17__.ez]]}),t})();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_0__.OlP("AUTH_CONFIG")},2051:function(t,e){var i,n;void 0===(n="function"==typeof(i=function(){"use strict";function e(t,e,i){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){r(n.response,e,i)},n.onerror=function(){console.error("could not download file")},n.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function n(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,o=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),r=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(t,o,r){var a=s.URL||s.webkitURL,c=document.createElement("a");c.download=o=o||t.name||"download",c.rel="noopener","string"==typeof t?(c.href=t,c.origin===location.origin?n(c):i(c.href)?e(t,o,r):n(c,c.target="_blank")):(c.href=a.createObjectURL(t),setTimeout(function(){a.revokeObjectURL(c.href)},4e4),setTimeout(function(){n(c)},0))}:"msSaveOrOpenBlob"in navigator?function(t,s,o){if(s=s||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,o),s);else if(i(t))e(t,s,o);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){n(r)})}}:function(t,i,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return e(t,i,n);var a="application/octet-stream"===t.type,c=/constructor/i.test(s.HTMLElement)||s.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||a&&c||o)&&"undefined"!=typeof FileReader){var l=new FileReader;l.onloadend=function(){var t=l.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},l.readAsDataURL(t)}else{var h=s.URL||s.webkitURL,d=h.createObjectURL(t);r?r.location=d:location.href=d,r=null,setTimeout(function(){h.revokeObjectURL(d)},4e4)}});s.saveAs=r.saveAs=r,t.exports=r})?i.apply(e,[]):i)||(t.exports=n)},9355:function(t,e,i){(t.exports=i(2021)).tz.load(i(4360))},2021:function(t,e,i){var n,s,o;!function(r,a){"use strict";t.exports?t.exports=a(i(9609)):(s=[i(9609)],void 0===(o="function"==typeof(n=a)?n.apply(e,s):n)||(t.exports=o))}(0,function(t){"use strict";void 0===t.version&&t.default&&(t=t.default);var e,i={},n={},s={},o={},r={};t&&"string"==typeof t.version||S("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var a=t.version.split("."),c=+a[0],u=+a[1];function l(t){return t>96?t-87:t>64?t-29:t-48}function h(t){var e=0,i=t.split("."),n=i[0],s=i[1]||"",o=1,r=0,a=1;for(45===t.charCodeAt(0)&&(e=1,a=-1);e= 2.6.0. You are using Moment.js "+t.version+". See momentjs.com"),g.prototype={_set:function(t){this.name=t.name,this.abbrs=t.abbrs,this.untils=t.untils,this.offsets=t.offsets,this.population=t.population},_index:function(t){var e,i=+t,n=this.untils;for(e=0;en&&E.moveInvalidForward&&(e=n),o3){var e=o[v(t)];if(e)return e;S("Moment Timezone found "+t+" from the Intl api, but did not have that data loaded.")}}catch(l){}var i,n,s,r=function(){var t,e,i,n=(new Date).getFullYear()-2,s=new _(new Date(n,0,1)),o=[s];for(i=1;i<48;i++)(e=new _(new Date(n,i,1))).offset!==s.offset&&(t=y(s,e),o.push(t),o.push(new _(new Date(t.at+6e4)))),s=e;for(i=0;i<4;i++)o.push(new _(new Date(n+i,0,1))),o.push(new _(new Date(n+i,6,1)));return o}(),a=r.length,c=M(r),u=[];for(n=0;n0?u[0].zone.name:void 0}()),e},E.names=function(){var t,e=[];for(t in o)o.hasOwnProperty(t)&&(i[t]||i[n[t]])&&o[t]&&e.push(o[t]);return e.sort()},E.Zone=g,E.unpack=f,E.unpackBase60=h,E.needsOffset=C,E.moveInvalidForward=!0,E.moveAmbiguousForward=!1,E.countries=function(){return Object.keys(s)},E.zonesForCountry=function(t,e){var i;if(i=(i=t).toUpperCase(),!(t=s[i]||null))return null;var n=t.zones.sort();return e?n.map(function(t){return{name:t,offset:k(t).utcOffset(new Date)}}):n};var z,x=t.fn;function O(t){return function(){return this._z?this._z.abbr(this):t.call(this)}}function R(t){return function(){return this._z=null,t.apply(this,arguments)}}t.tz=E,t.defaultZone=null,t.updateOffset=function(e,i){var n,s=t.defaultZone;if(void 0===e._z&&(s&&C(e)&&!e._isUTC&&(e._d=t.utc(e._a)._d,e.utc().add(s.parse(e),"minutes")),e._z=s),e._z)if(n=e._z.utcOffset(e),Math.abs(n)<16&&(n/=60),void 0!==e.utcOffset){var o=e._z;e.utcOffset(-n,i),e._z=o}else e.zone(n,i)},x.tz=function(e,i){if(e){if("string"!=typeof e)throw new Error("Time zone name must be a string, got "+e+" ["+typeof e+"]");return this._z=k(e),this._z?t.updateOffset(this,i):S("Moment Timezone has no data for "+e+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},x.zoneName=O(x.zoneName),x.zoneAbbr=O(x.zoneAbbr),x.utc=R(x.utc),x.local=R(x.local),x.utcOffset=(z=x.utcOffset,function(){return arguments.length>0&&(this._z=null),z.apply(this,arguments)}),t.tz.setDefault=function(e){return(c<2||2===c&&u<9)&&S("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+t.version+"."),t.defaultZone=e?k(e):null,t};var D=t.momentProperties;return"[object Array]"===Object.prototype.toString.call(D)?(D.push("_z"),D.push("_a")):D&&(D._z=null),t})},776:function(t,e,i){!function(t){"use strict";t.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(t){return/^nm$/i.test(t)},meridiem:function(t,e,i){return t<12?i?"vm":"VM":i?"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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(9609))},2758:function(t,e,i){!function(t){"use strict";t.defineLocale("ar-dz",{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:"\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:"\u0623\u062d_\u0625\u062b_\u062b\u0644\u0627_\u0623\u0631_\u062e\u0645_\u062c\u0645_\u0633\u0628".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:4}})}(i(9609))},4980:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},9602:function(t,e,i){!function(t){"use strict";var e={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},i=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},n={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(t){return function(e,s,o,r){var a=i(e),c=n[t][i(e)];return 2===a&&(c=c[s?0:1]),c.replace(/%d/i,e)}},o=["\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"];t.defineLocale("ar-ly",{months:o,monthsShort:o,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(t){return"\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i(9609))},2500:function(t,e,i){!function(t){"use strict";t.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\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:6,doy:12}})}(i(9609))},6909:function(t,e,i){!function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},i={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};t.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(t){return"\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(t){return i[t]}).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(i(9609))},2735:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},7634:function(t,e,i){!function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},i={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},n=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%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"]},o=function(t){return function(e,i,o,r){var a=n(e),c=s[t][n(e)];return 2===a&&(c=c[i?0:1]),c.replace(/%d/i,e)}},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"];t.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(t){return"\u0645"===t},meridiem:function(t,e,i){return t<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:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(t){return t.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(t){return i[t]}).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i(9609))},7798:function(t,e,i){!function(t){"use strict";var e={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"};t.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:"birne\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(t){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(t)},meridiem:function(t,e,i){return t<4?"gec\u0259":t<12?"s\u0259h\u0259r":t<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(t){if(0===t)return t+"-\u0131nc\u0131";var i=t%10;return t+(e[i]||e[t%100-i]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i(9609))},9949:function(t,e,i){!function(t){"use strict";function e(t,e,i){return"m"===i?e?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===i?e?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":t+" "+(n=+t,s={ss:e?"\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:e?"\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:e?"\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"}[i].split("_"),n%10==1&&n%100!=11?s[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?s[1]:s[2]);var n,s}t.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(t){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(t)},meridiem:function(t,e,i){return t<4?"\u043d\u043e\u0447\u044b":t<12?"\u0440\u0430\u043d\u0456\u0446\u044b":t<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t%10!=2&&t%10!=3||t%100==12||t%100==13?t+"-\u044b":t+"-\u0456";case"D":return t+"-\u0433\u0430";default:return t}},week:{dow:1,doy:7}})}(i(9609))},4590:function(t,e,i){!function(t){"use strict";t.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\u0440_\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"[\u0412 \u0438\u0437\u043c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u0412 \u0438\u0437\u043c\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\u043d\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(t){var e=t%10,i=t%100;return 0===t?t+"-\u0435\u0432":0===i?t+"-\u0435\u043d":i>10&&i<20?t+"-\u0442\u0438":1===e?t+"-\u0432\u0438":2===e?t+"-\u0440\u0438":7===e||8===e?t+"-\u043c\u0438":t+"-\u0442\u0438"},week:{dow:1,doy:7}})}(i(9609))},5938:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},595:function(t,e,i){!function(t){"use strict";var e={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},i={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};t.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09c0_\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_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2_\u0986\u0997_\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_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u0983_\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(t){return t.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u09b0\u09be\u09a4"===e&&t>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===e&&t<5||"\u09ac\u09bf\u0995\u09be\u09b2"===e?t+12:t},meridiem:function(t,e,i){return t<4?"\u09b0\u09be\u09a4":t<10?"\u09b8\u0995\u09be\u09b2":t<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":t<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(i(9609))},4756:function(t,e,i){!function(t){"use strict";var e={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},i={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};t.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\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("_"),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\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("_"),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(t){return t.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},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(t,e){return 12===t&&(t=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===e&&t>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===e&&t<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===e?t+12:t},meridiem:function(t,e,i){return t<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":t<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":t<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":t<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(i(9609))},7277:function(t,e,i){!function(t){"use strict";function e(t,e,i){return t+" "+function(t,e){return 2===e?function(t){var e={m:"v",b:"v",d:"z"};return void 0===e[t.charAt(0)]?t:e[t.charAt(0)]+t.substring(1)}(t):t}({mm:"munutenn",MM:"miz",dd:"devezh"}[i],t)}function i(t){return t>9?i(t%10):t}t.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:e,h:"un eur",hh:"%d eur",d:"un devezh",dd:e,M:"ur miz",MM:e,y:"ur bloaz",yy:function(t){switch(i(t)){case 1:case 3:case 4:case 5:case 9:return t+" bloaz";default:return t+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(t){return t+(1===t?"a\xf1":"vet")},week:{dow:1,doy:4}})}(i(9609))},4166:function(t,e,i){!function(t){"use strict";function e(t,e,i){var n=t+" ";switch(i){case"ss":return n+(1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi");case"m":return e?"jedna minuta":"jedne minute";case"mm":return n+(1===t?"minuta":2===t||3===t||4===t?"minute":"minuta");case"h":return e?"jedan sat":"jednog sata";case"hh":return n+(1===t?"sat":2===t||3===t||4===t?"sata":"sati");case"dd":return n+(1===t?"dan":"dana");case"MM":return n+(1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci");case"yy":return n+(1===t?"godina":2===t||3===t||4===t?"godine":"godina")}}t.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:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},3943:function(t,e,i){!function(t){"use strict";t.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(t,e){var i=1===t?"r":2===t?"n":3===t?"r":4===t?"t":"\xe8";return"w"!==e&&"W"!==e||(i="a"),t+i},week:{dow:1,doy:4}})}(i(9609))},3474:function(t,e,i){!function(t){"use strict";var e="leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),i="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),n=[/^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 o(t){return t>1&&t<5&&1!=~~(t/10)}function r(t,e,i,n){var s=t+" ";switch(i){case"s":return e||n?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return e||n?s+(o(t)?"sekundy":"sekund"):s+"sekundami";case"m":return e?"minuta":n?"minutu":"minutou";case"mm":return e||n?s+(o(t)?"minuty":"minut"):s+"minutami";case"h":return e?"hodina":n?"hodinu":"hodinou";case"hh":return e||n?s+(o(t)?"hodiny":"hodin"):s+"hodinami";case"d":return e||n?"den":"dnem";case"dd":return e||n?s+(o(t)?"dny":"dn\xed"):s+"dny";case"M":return e||n?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return e||n?s+(o(t)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):s+"m\u011bs\xedci";case"y":return e||n?"rok":"rokem";case"yy":return e||n?s+(o(t)?"roky":"let"):s+"lety"}}t.defineLocale("cs",{months:e,monthsShort:i,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:n,longMonthsParse:n,shortMonthsParse:n,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}})}(i(9609))},2218:function(t,e,i){!function(t){"use strict";t.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(t){return t+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(t)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(t)?"\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}})}(i(9609))},1061:function(t,e,i){!function(t){"use strict";t.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(t){var e="";return t>20?e=40===t||50===t||60===t||80===t||100===t?"fed":"ain":t>0&&(e=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][t]),t+e},week:{dow:1,doy:4}})}(i(9609))},2743:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},8580:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?s[i][0]:s[i][1]}t.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:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},3264:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?s[i][0]:s[i][1]}t.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:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},1899:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?s[i][0]:s[i][1]}t.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:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},8784:function(t,e,i){!function(t){"use strict";var e=["\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"],i=["\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"];t.defineLocale("dv",{months:e,monthsShort:e,weekdays:i,weekdaysShort:i,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(t){return"\u0789\u078a"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(i(9609))},4654:function(t,e,i){!function(t){"use strict";t.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(t,e){return t?"string"==typeof e&&/D/.test(e.substring(0,e.indexOf("MMMM")))?this._monthsGenitiveEl[t.month()]:this._monthsNominativeEl[t.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(t,e,i){return t>11?i?"\u03bc\u03bc":"\u039c\u039c":i?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(t){return"\u03bc"===(t+"").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(){switch(this.day()){case 6:return"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT";default:return"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"}},sameElse:"L"},calendar:function(t,e){var i,n=this._calendarEl[t],s=e&&e.hours();return((i=n)instanceof Function||"[object Function]"===Object.prototype.toString.call(i))&&(n=n.apply(e)),n.replace("{}",s%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}})}(i(9609))},4047:function(t,e,i){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},6277:function(t,e,i){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},6896:function(t,e,i){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})}(i(9609))},1609:function(t,e,i){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},4557:function(t,e,i){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},5836:function(t,e,i){!function(t){"use strict";t.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",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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})}(i(9609))},3586:function(t,e,i){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},2777:function(t,e,i){!function(t){"use strict";t.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_a\u016dg_sep_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:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(t){return"p"===t.charAt(0).toLowerCase()},meridiem:function(t,e,i){return t>11?i?"p.t.m.":"P.T.M.":i?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(i(9609))},3128:function(t,e,i){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^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;t.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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",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}})}(i(9609))},3256:function(t,e,i){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^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;t.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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",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}})}(i(9609))},3357:function(t,e,i){!function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^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;t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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",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}})}(i(9609))},2654:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[t+"sekundi",t+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[t+" minuti",t+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[t+" tunni",t+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[t+" kuu",t+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[t+" aasta",t+" aastat"]};return e?s[i][2]?s[i][2]:s[i][1]:n?s[i][0]:s[i][1]}t.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:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:"%d p\xe4eva",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},7287:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},5210:function(t,e,i){!function(t){"use strict";var e={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},i={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};t.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(t){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(t)},meridiem:function(t,e,i){return t<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:"\u062b\u0627\u0646\u06cc\u0647 d%",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(t){return t.replace(/[\u06f0-\u06f9]/g,function(t){return i[t]}).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(i(9609))},3431:function(t,e,i){!function(t){"use strict";var e="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),i=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",e[7],e[8],e[9]];function n(t,n,s,o){var r="";switch(s){case"s":return o?"muutaman sekunnin":"muutama sekunti";case"ss":return o?"sekunnin":"sekuntia";case"m":return o?"minuutin":"minuutti";case"mm":r=o?"minuutin":"minuuttia";break;case"h":return o?"tunnin":"tunti";case"hh":r=o?"tunnin":"tuntia";break;case"d":return o?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":r=o?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return o?"kuukauden":"kuukausi";case"MM":r=o?"kuukauden":"kuukautta";break;case"y":return o?"vuoden":"vuosi";case"yy":r=o?"vuoden":"vuotta"}return function(t,n){return t<10?n?i[t]:e[t]:t}(t,o)+" "+r}t.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:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},1781:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},1539:function(t,e,i){!function(t){"use strict";t.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(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}}})}(i(9609))},9847:function(t,e,i){!function(t){"use strict";t.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(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})}(i(9609))},1717:function(t,e,i){!function(t){"use strict";t.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("_"),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|)/,ordinal:function(t,e){switch(e){case"D":return t+(1===t?"er":"");default:case"M":case"Q":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})}(i(9609))},2250:function(t,e,i){!function(t){"use strict";var e="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),i="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");t.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(9609))},7665:function(t,e,i){!function(t){"use strict";t.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","M\xe9itheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deaireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean\xe1","Feab","M\xe1rt","Aibr","Beal","M\xe9it","I\xfail","L\xfana","Me\xe1n","Deai","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 Satharn"],weekdaysShort:["Dom","Lua","M\xe1i","C\xe9a","D\xe9a","hAo","Sat"],weekdaysMin:["Do","Lu","M\xe1","Ce","D\xe9","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:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 aig] 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\xed",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(t){return t+(1===t?"d":t%10==2?"na":"mh")},week:{dow:1,doy:4}})}(i(9609))},5214:function(t,e,i){!function(t){"use strict";t.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(t){return t+(1===t?"d":t%10==2?"na":"mh")},week:{dow:1,doy:4}})}(i(9609))},6154:function(t,e,i){!function(t){"use strict";t.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(t){return 0===t.indexOf("un")?"n"+t:"en "+t},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}})}(i(9609))},8518:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={s:["thodde secondanim","thodde second"],ss:[t+" secondanim",t+" second"],m:["eka mintan","ek minute"],mm:[t+" mintanim",t+" mintam"],h:["eka voran","ek vor"],hh:[t+" voranim",t+" voram"],d:["eka disan","ek dis"],dd:[t+" disanim",t+" dis"],M:["eka mhoinean","ek mhoino"],MM:[t+" mhoineanim",t+" mhoine"],y:["eka vorsan","ek voros"],yy:[t+" vorsanim",t+" vorsam"]};return e?s[i][0]:s[i][1]}t.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_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[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",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}(er)/,ordinal:function(t,e){switch(e){case"D":return t+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return t}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(t,e){return 12===t&&(t=0),"rati"===e?t<4?t:t+12:"sokalli"===e?t:"donparam"===e?t>12?t:t+12:"sanje"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"rati":t<12?"sokalli":t<16?"donparam":t<20?"sanje":"rati"}})}(i(9609))},9221:function(t,e,i){!function(t){"use strict";var e={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},i={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};t.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\u0ac7\u0ab9\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(t){return t.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0ab0\u0abe\u0aa4"===e?t<4?t:t+12:"\u0ab8\u0ab5\u0abe\u0ab0"===e?t:"\u0aac\u0aaa\u0acb\u0ab0"===e?t>=10?t:t+12:"\u0ab8\u0abe\u0a82\u0a9c"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0ab0\u0abe\u0aa4":t<10?"\u0ab8\u0ab5\u0abe\u0ab0":t<17?"\u0aac\u0aaa\u0acb\u0ab0":t<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(i(9609))},4743:function(t,e,i){!function(t){"use strict";t.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(t){return 2===t?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":t+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(t){return 2===t?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":t+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(t){return 2===t?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":t+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(t){return 2===t?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":t%10==0&&10!==t?t+" \u05e9\u05e0\u05d4":t+" \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(t){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(t)},meridiem:function(t,e,i){return t<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":t<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":t<12?i?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":t<18?i?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(i(9609))},7339:function(t,e,i){!function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},i={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};t.defineLocale("hi",{months:"\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("_"),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("_"),monthsParseExact:!0,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"},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(t){return t.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0930\u093e\u0924"===e?t<4?t:t+12:"\u0938\u0941\u092c\u0939"===e?t:"\u0926\u094b\u092a\u0939\u0930"===e?t>=10?t:t+12:"\u0936\u093e\u092e"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0930\u093e\u0924":t<10?"\u0938\u0941\u092c\u0939":t<17?"\u0926\u094b\u092a\u0939\u0930":t<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(i(9609))},3224:function(t,e,i){!function(t){"use strict";function e(t,e,i){var n=t+" ";switch(i){case"ss":return n+(1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi");case"m":return e?"jedna minuta":"jedne minute";case"mm":return n+(1===t?"minuta":2===t||3===t||4===t?"minute":"minuta");case"h":return e?"jedan sat":"jednog sata";case"hh":return n+(1===t?"sat":2===t||3===t||4===t?"sata":"sati");case"dd":return n+(1===t?"dan":"dana");case"MM":return n+(1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci");case"yy":return n+(1===t?"godina":2===t||3===t||4===t?"godine":"godina")}}t.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:"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:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},856:function(t,e,i){!function(t){"use strict";var e="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function i(t,e,i,n){var s=t;switch(i){case"s":return n||e?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return s+(n||e)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(n||e?" perc":" perce");case"mm":return s+(n||e?" perc":" perce");case"h":return"egy"+(n||e?" \xf3ra":" \xf3r\xe1ja");case"hh":return s+(n||e?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(n||e?" nap":" napja");case"dd":return s+(n||e?" nap":" napja");case"M":return"egy"+(n||e?" h\xf3nap":" h\xf3napja");case"MM":return s+(n||e?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(n||e?" \xe9v":" \xe9ve");case"yy":return s+(n||e?" \xe9v":" \xe9ve")}return""}function n(t){return(t?"":"[m\xfalt] ")+"["+e[this.day()]+"] LT[-kor]"}t.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("_"),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(t){return"u"===t.charAt(1).toLowerCase()},meridiem:function(t,e,i){return t<12?!0===i?"de":"DE":!0===i?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return n.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return n.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%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:4}})}(i(9609))},6855:function(t,e,i){!function(t){"use strict";t.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(t){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(t)},meridiem:function(t){return t<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":t<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":t<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(t,e){switch(e){case"DDD":case"w":case"W":case"DDDo":return 1===t?t+"-\u056b\u0576":t+"-\u0580\u0564";default:return t}},week:{dow:1,doy:7}})}(i(9609))},2190:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"pagi"===e?t:"siang"===e?t>=11?t:t+12:"sore"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"pagi":t<15?"siang":t<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:1,doy:7}})}(i(9609))},3887:function(t,e,i){!function(t){"use strict";function e(t){return t%100==11||t%10!=1}function i(t,i,n,s){var o=t+" ";switch(n){case"s":return i||s?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return e(t)?o+(i||s?"sek\xfandur":"sek\xfandum"):o+"sek\xfanda";case"m":return i?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return e(t)?o+(i||s?"m\xedn\xfatur":"m\xedn\xfatum"):i?o+"m\xedn\xfata":o+"m\xedn\xfatu";case"hh":return e(t)?o+(i||s?"klukkustundir":"klukkustundum"):o+"klukkustund";case"d":return i?"dagur":s?"dag":"degi";case"dd":return e(t)?i?o+"dagar":o+(s?"daga":"d\xf6gum"):i?o+"dagur":o+(s?"dag":"degi");case"M":return i?"m\xe1nu\xf0ur":s?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return e(t)?i?o+"m\xe1nu\xf0ir":o+(s?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):i?o+"m\xe1nu\xf0ur":o+(s?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return i||s?"\xe1r":"\xe1ri";case"yy":return e(t)?o+(i||s?"\xe1r":"\xe1rum"):o+(i||s?"\xe1r":"\xe1ri")}}t.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:i,ss:i,m:i,mm:i,h:"klukkustund",hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},5890:function(t,e,i){!function(t){"use strict";t.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(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},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}})}(i(9609))},9270:function(t,e,i){!function(t){"use strict";t.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:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},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}})}(i(9609))},6595:function(t,e,i){!function(t){"use strict";t.defineLocale("ja",{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:"\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(t){return"\u5348\u5f8c"===t},meridiem:function(t,e,i){return t<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(t){return t.week()=11?t:t+12:"sonten"===e||"ndalu"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"enjing":t<15?"siyang":t<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}})}(i(9609))},7477:function(t,e,i){!function(t){"use strict";t.defineLocale("ka",{months:{standalone:"\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("_"),format:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10e1_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10e1_\u10db\u10d0\u10e0\u10e2\u10e1_\u10d0\u10de\u10e0\u10d8\u10da\u10d8\u10e1_\u10db\u10d0\u10d8\u10e1\u10e1_\u10d8\u10d5\u10dc\u10d8\u10e1\u10e1_\u10d8\u10d5\u10da\u10d8\u10e1\u10e1_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10e1_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10e1_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10e1".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:"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:"[\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(t){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10ec\u10d4\u10da\u10d8)/.test(t)?t.replace(/\u10d8$/,"\u10e8\u10d8"):t+"\u10e8\u10d8"},past:function(t){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(t)?t.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(t)?t.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):void 0},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(t){return 0===t?t:1===t?t+"-\u10da\u10d8":t<20||t<=100&&t%20==0||t%100==0?"\u10db\u10d4-"+t:t+"-\u10d4"},week:{dow:1,doy:7}})}(i(9609))},3978:function(t,e,i){!function(t){"use strict";var e={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"};t.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(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i(9609))},9205:function(t,e,i){!function(t){"use strict";var e={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},i={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};t.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(t){return"\u179b\u17d2\u1784\u17b6\u1785"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},week:{dow:1,doy:4}})}(i(9609))},25:function(t,e,i){!function(t){"use strict";var e={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},i={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};t.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(t){return t.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},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(t,e){return 12===t&&(t=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===e?t<4?t:t+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===e?t:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===e?t>=10?t:t+12:"\u0cb8\u0c82\u0c9c\u0cc6"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":t<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":t<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":t<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(t){return t+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(i(9609))},427:function(t,e,i){!function(t){"use strict";t.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(t,e){switch(e){case"d":case"D":case"DDD":return t+"\uc77c";case"M":return t+"\uc6d4";case"w":case"W":return t+"\uc8fc";default:return t}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(t){return"\uc624\ud6c4"===t},meridiem:function(t,e,i){return t<12?"\uc624\uc804":"\uc624\ud6c4"}})}(i(9609))},9089:function(t,e,i){!function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},i={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},n=["\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"];t.defineLocale("ku",{months:n,monthsShort:n,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(t){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(t)},meridiem:function(t,e,i){return t<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(t){return t.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(t){return i[t]}).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i(9609))},9314:function(t,e,i){!function(t){"use strict";var e={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"};t.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(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i(9609))},3136:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={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 e?s[i][0]:s[i][1]}function i(t){if(t=parseInt(t,10),isNaN(t))return!1;if(t<0)return!0;if(t<10)return 4<=t&&t<=7;if(t<100){var e=t%10;return i(0===e?t/10:e)}if(t<1e4){for(;t>=10;)t/=10;return i(t)}return i(t/=1e3)}t.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(t){return i(t.substr(0,t.indexOf(" ")))?"a "+t:"an "+t},past:function(t){return i(t.substr(0,t.indexOf(" ")))?"viru "+t:"virun "+t},s:"e puer Sekonnen",ss:"%d Sekonnen",m:e,mm:"%d Minutten",h:e,hh:"%d Stonnen",d:e,dd:"%d Deeg",M:e,MM:"%d M\xe9int",y:e,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},9115:function(t,e,i){!function(t){"use strict";t.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(t){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===t},meridiem:function(t,e,i){return t<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(t){return"\u0e97\u0eb5\u0ec8"+t}})}(i(9609))},7087:function(t,e,i){!function(t){"use strict";var e={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 i(t,e,i,n){return e?s(i)[0]:n?s(i)[1]:s(i)[2]}function n(t){return t%10==0||t>10&&t<20}function s(t){return e[t].split("_")}function o(t,e,o,r){var a=t+" ";return 1===t?a+i(0,e,o[0],r):e?a+(n(t)?s(o)[1]:s(o)[0]):r?a+s(o)[1]:a+(n(t)?s(o)[1]:s(o)[2])}t.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(t,e,i,n){return e?"kelios sekund\u0117s":n?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:o,m:i,mm:o,h:i,hh:o,d:i,dd:o,M:i,MM:o,y:i,yy:o},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(t){return t+"-oji"},week:{dow:1,doy:4}})}(i(9609))},5683:function(t,e,i){!function(t){"use strict";var e={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 i(t,e,i){return i?e%10==1&&e%100!=11?t[2]:t[3]:e%10==1&&e%100!=11?t[0]:t[1]}function n(t,n,s){return t+" "+i(e[s],t,n)}function s(t,n,s){return i(e[s],t,n)}t.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(t,e){return e?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:n,m:s,mm:n,h:s,hh:n,d:s,dd:n,M:s,MM:n,y:s,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},9454:function(t,e,i){!function(t){"use strict";var e={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(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,i,n){var s=e.words[n];return 1===n.length?i?s[0]:s[1]:t+" "+e.correctGrammaticalCase(t,s)}};t.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:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mjesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},5507:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},8466:function(t,e,i){!function(t){"use strict";t.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:"\u043f\u043e\u0441\u043b\u0435 %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:"\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",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",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(t){var e=t%10,i=t%100;return 0===t?t+"-\u0435\u0432":0===i?t+"-\u0435\u043d":i>10&&i<20?t+"-\u0442\u0438":1===e?t+"-\u0432\u0438":2===e?t+"-\u0440\u0438":7===e||8===e?t+"-\u043c\u0438":t+"-\u0442\u0438"},week:{dow:1,doy:7}})}(i(9609))},2933:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===e&&t>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===e||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===e?t+12:t},meridiem:function(t,e,i){return t<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":t<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":t<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":t<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(i(9609))},9477:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){switch(i){case"s":return e?"\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 t+(e?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return t+(e?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return t+(e?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return t+(e?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return t+(e?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return t+(e?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return t}}t.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(t){return"\u04ae\u0425"===t},meridiem:function(t,e,i){return t<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: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} \u04e9\u0434\u04e9\u0440/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+" \u04e9\u0434\u04e9\u0440";default:return t}}})}(i(9609))},3597:function(t,e,i){!function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},i={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function n(t,e,i,n){var s="";if(e)switch(i){case"s":s="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":s="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":s="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":s="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":s="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":s="%d \u0924\u093e\u0938";break;case"d":s="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":s="%d \u0926\u093f\u0935\u0938";break;case"M":s="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":s="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":s="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":s="%d \u0935\u0930\u094d\u0937\u0947"}else switch(i){case"s":s="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":s="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":s="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":s="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":s="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":s="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":s="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":s="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":s="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":s="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":s="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":s="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return s.replace(/%d/i,t)}t.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:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},preparse:function(t){return t.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0930\u093e\u0924\u094d\u0930\u0940|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0930\u093e\u0924\u094d\u0930\u0940"===e?t<4?t:t+12:"\u0938\u0915\u093e\u0933\u0940"===e?t:"\u0926\u0941\u092a\u093e\u0930\u0940"===e?t>=10?t:t+12:"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0930\u093e\u0924\u094d\u0930\u0940":t<10?"\u0938\u0915\u093e\u0933\u0940":t<17?"\u0926\u0941\u092a\u093e\u0930\u0940":t<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(i(9609))},9965:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"pagi":t<15?"tengahari":t<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}})}(i(9609))},5529:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"pagi":t<15?"tengahari":t<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}})}(i(9609))},259:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},8061:function(t,e,i){!function(t){"use strict";var e={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},i={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};t.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(t){return t.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},week:{dow:1,doy:4}})}(i(9609))},2618:function(t,e,i){!function(t){"use strict";t.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_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",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}})}(i(9609))},8452:function(t,e,i){!function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},i={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};t.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(t){return t.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0930\u093e\u0924\u093f"===e?t<4?t:t+12:"\u092c\u093f\u0939\u093e\u0928"===e?t:"\u0926\u093f\u0909\u0901\u0938\u094b"===e?t>=10?t:t+12:"\u0938\u093e\u0901\u091d"===e?t+12:void 0},meridiem:function(t,e,i){return t<3?"\u0930\u093e\u0924\u093f":t<12?"\u092c\u093f\u0939\u093e\u0928":t<16?"\u0926\u093f\u0909\u0901\u0938\u094b":t<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}})}(i(9609))},413:function(t,e,i){!function(t){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^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;t.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(9609))},1885:function(t,e,i){!function(t){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^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;t.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},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:n,longMonthsParse:n,shortMonthsParse:n,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(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(9609))},5107:function(t,e,i){!function(t){"use strict";t.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_m\xe5n_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_m\xe5_ty_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 [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",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}})}(i(9609))},702:function(t,e,i){!function(t){"use strict";var e={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},i={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};t.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(t){return t.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0a30\u0a3e\u0a24"===e?t<4?t:t+12:"\u0a38\u0a35\u0a47\u0a30"===e?t:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===e?t>=10?t:t+12:"\u0a38\u0a3c\u0a3e\u0a2e"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0a30\u0a3e\u0a24":t<10?"\u0a38\u0a35\u0a47\u0a30":t<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":t<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(i(9609))},1711:function(t,e,i){!function(t){"use strict";var e="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),i="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_");function n(t){return t%10<5&&t%10>1&&~~(t/10)%10!=1}function s(t,e,i){var s=t+" ";switch(i){case"ss":return s+(n(t)?"sekundy":"sekund");case"m":return e?"minuta":"minut\u0119";case"mm":return s+(n(t)?"minuty":"minut");case"h":return e?"godzina":"godzin\u0119";case"hh":return s+(n(t)?"godziny":"godzin");case"MM":return s+(n(t)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return s+(n(t)?"lata":"lat")}}t.defineLocale("pl",{months:function(t,n){return t?""===n?"("+i[t.month()]+"|"+e[t.month()]+")":/D MMMM/.test(n)?i[t.month()]:e[t.month()]:e},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),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:s,m:s,mm:s,h:s,hh:s,d:"1 dzie\u0144",dd:"%d dni",M:"miesi\u0105c",MM:s,y:"rok",yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},8238:function(t,e,i){!function(t){"use strict";t.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"})}(i(9609))},594:function(t,e,i){!function(t){"use strict";t.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",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}})}(i(9609))},4681:function(t,e,i){!function(t){"use strict";function e(t,e,i){var n=" ";return(t%100>=20||t>=100&&t%100==0)&&(n=" de "),t+n+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[i]}t.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._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:e,m:"un minut",mm:e,h:"o or\u0103",hh:e,d:"o zi",dd:e,M:"o lun\u0103",MM:e,y:"un an",yy:e},week:{dow:1,doy:7}})}(i(9609))},6201:function(t,e,i){!function(t){"use strict";function e(t,e,i){return"m"===i?e?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":t+" "+(n=+t,s={ss:e?"\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:e?"\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",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"}[i].split("_"),n%10==1&&n%100!=11?s[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?s[1]:s[2]);var n,s}var i=[/^\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];t.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:i,longMonthsParse:i,shortMonthsParse:i,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(t){if(t.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(t){if(t.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,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(t){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(t)},meridiem:function(t,e,i){return t<4?"\u043d\u043e\u0447\u0438":t<12?"\u0443\u0442\u0440\u0430":t<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":return t+"-\u0439";case"D":return t+"-\u0433\u043e";case"w":case"W":return t+"-\u044f";default:return t}},week:{dow:1,doy:4}})}(i(9609))},2912:function(t,e,i){!function(t){"use strict";var e=["\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"],i=["\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"];t.defineLocale("sd",{months:e,monthsShort:e,weekdays:i,weekdaysShort:i,weekdaysMin:i,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(t){return"\u0634\u0627\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(i(9609))},6002:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},7942:function(t,e,i){!function(t){"use strict";t.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(t){return t+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(t){return"\u0db4.\u0dc0."===t||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===t},meridiem:function(t,e,i){return t>11?i?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":i?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(i(9609))},5577:function(t,e,i){!function(t){"use strict";var e="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),i="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function n(t){return t>1&&t<5}function s(t,e,i,s){var o=t+" ";switch(i){case"s":return e||s?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return e||s?o+(n(t)?"sekundy":"sek\xfand"):o+"sekundami";case"m":return e?"min\xfata":s?"min\xfatu":"min\xfatou";case"mm":return e||s?o+(n(t)?"min\xfaty":"min\xfat"):o+"min\xfatami";case"h":return e?"hodina":s?"hodinu":"hodinou";case"hh":return e||s?o+(n(t)?"hodiny":"hod\xedn"):o+"hodinami";case"d":return e||s?"de\u0148":"d\u0148om";case"dd":return e||s?o+(n(t)?"dni":"dn\xed"):o+"d\u0148ami";case"M":return e||s?"mesiac":"mesiacom";case"MM":return e||s?o+(n(t)?"mesiace":"mesiacov"):o+"mesiacmi";case"y":return e||s?"rok":"rokom";case"yy":return e||s?o+(n(t)?"roky":"rokov"):o+"rokmi"}}t.defineLocale("sk",{months:e,monthsShort:i,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:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 4:case 5:return"[minul\xfd] dddd [o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %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}})}(i(9609))},1775:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s=t+" ";switch(i){case"s":return e||n?"nekaj sekund":"nekaj sekundami";case"ss":return s+(1===t?e?"sekundo":"sekundi":2===t?e||n?"sekundi":"sekundah":t<5?e||n?"sekunde":"sekundah":"sekund");case"m":return e?"ena minuta":"eno minuto";case"mm":return s+(1===t?e?"minuta":"minuto":2===t?e||n?"minuti":"minutama":t<5?e||n?"minute":"minutami":e||n?"minut":"minutami");case"h":return e?"ena ura":"eno uro";case"hh":return s+(1===t?e?"ura":"uro":2===t?e||n?"uri":"urama":t<5?e||n?"ure":"urami":e||n?"ur":"urami");case"d":return e||n?"en dan":"enim dnem";case"dd":return s+(1===t?e||n?"dan":"dnem":2===t?e||n?"dni":"dnevoma":e||n?"dni":"dnevi");case"M":return e||n?"en mesec":"enim mesecem";case"MM":return s+(1===t?e||n?"mesec":"mesecem":2===t?e||n?"meseca":"mesecema":t<5?e||n?"mesece":"meseci":e||n?"mesecev":"meseci");case"y":return e||n?"eno leto":"enim letom";case"yy":return s+(1===t?e||n?"leto":"letom":2===t?e||n?"leti":"letoma":t<5?e||n?"leta":"leti":e||n?"let":"leti")}}t.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: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:7}})}(i(9609))},6823:function(t,e,i){!function(t){"use strict";t.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(t){return"M"===t.charAt(0)},meridiem:function(t,e,i){return t<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}})}(i(9609))},3848:function(t,e,i){!function(t){"use strict";var e={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\u0435 \u043c\u0438\u043d\u0443\u0442\u0435"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0435","\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"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],yy:["\u0433\u043e\u0434\u0438\u043d\u0430","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,i,n){var s=e.words[n];return 1===n.length?i?s[0]:s[1]:t+" "+e.correctGrammaticalCase(t,s)}};t.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:"DD.MM.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:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"\u0434\u0430\u043d",dd:e.translate,M:"\u043c\u0435\u0441\u0435\u0446",MM:e.translate,y:"\u0433\u043e\u0434\u0438\u043d\u0443",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},9038:function(t,e,i){!function(t){"use strict";var e={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,i,n){var s=e.words[n];return 1===n.length?i?s[0]:s[1]:t+" "+e.correctGrammaticalCase(t,s)}};t.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:"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] [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:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(9609))},6173:function(t,e,i){!function(t){"use strict";t.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(t,e,i){return t<11?"ekuseni":t<15?"emini":t<19?"entsambama":"ebusuku"},meridiemHour:function(t,e){return 12===t&&(t=0),"ekuseni"===e?t:"emini"===e?t>=11?t:t+12:"entsambama"===e||"ebusuku"===e?0===t?0:t+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(i(9609))},5788:function(t,e,i){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"e":1===e||2===e?"a":"e")},week:{dow:1,doy:4}})}(i(9609))},6882:function(t,e,i){!function(t){"use strict";t.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",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:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(i(9609))},2678:function(t,e,i){!function(t){"use strict";var e={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},i={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};t.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(t){return t+"\u0bb5\u0ba4\u0bc1"},preparse:function(t){return t.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(t){return i[t]})},postformat:function(t){return t.replace(/\d/g,function(t){return e[t]})},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(t,e,i){return t<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":t<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":t<10?" \u0b95\u0bbe\u0bb2\u0bc8":t<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":t<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":t<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(t,e){return 12===t&&(t=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===e?t<2?t:t+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===e||"\u0b95\u0bbe\u0bb2\u0bc8"===e||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===e&&t>=10?t:t+12},week:{dow:0,doy:6}})}(i(9609))},2797:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===e?t<4?t:t+12:"\u0c09\u0c26\u0c2f\u0c02"===e?t:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===e?t>=10?t:t+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":t<10?"\u0c09\u0c26\u0c2f\u0c02":t<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":t<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(i(9609))},2447:function(t,e,i){!function(t){"use strict";t.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:"minutu balun",ss:"minutu %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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},1335:function(t,e,i){!function(t){"use strict";var e={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"};t.defineLocale("tg",{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:"\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:"[\u041f\u0430\u0433\u043e\u04b3 \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(t,e){return 12===t&&(t=0),"\u0448\u0430\u0431"===e?t<4?t:t+12:"\u0441\u0443\u0431\u04b3"===e?t:"\u0440\u04ef\u0437"===e?t>=11?t:t+12:"\u0431\u0435\u0433\u043e\u04b3"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"\u0448\u0430\u0431":t<11?"\u0441\u0443\u0431\u04b3":t<16?"\u0440\u04ef\u0437":t<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(i(9609))},8667:function(t,e,i){!function(t){"use strict";t.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(t){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===t},meridiem:function(t,e,i){return t<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",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(i(9609))},9914:function(t,e,i){!function(t){"use strict";t.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(t){return t},week:{dow:1,doy:4}})}(i(9609))},1389:function(t,e,i){!function(t){"use strict";var e="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function i(t,i,n,s){var o=function(t){var i=Math.floor(t%1e3/100),n=Math.floor(t%100/10),s=t%10,o="";return i>0&&(o+=e[i]+"vatlh"),n>0&&(o+=(""!==o?" ":"")+e[n]+"maH"),s>0&&(o+=(""!==o?" ":"")+e[s]),""===o?"pagh":o}(t);switch(n){case"ss":return o+" lup";case"mm":return o+" tup";case"hh":return o+" rep";case"dd":return o+" jaj";case"MM":return o+" jar";case"yy":return o+" DIS"}}t.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(t){var e=t;return-1!==t.indexOf("jaj")?e.slice(0,-3)+"leS":-1!==t.indexOf("jar")?e.slice(0,-3)+"waQ":-1!==t.indexOf("DIS")?e.slice(0,-3)+"nem":e+" pIq"},past:function(t){var e=t;return-1!==t.indexOf("jaj")?e.slice(0,-3)+"Hu\u2019":-1!==t.indexOf("jar")?e.slice(0,-3)+"wen":-1!==t.indexOf("DIS")?e.slice(0,-3)+"ben":e+" ret"},s:"puS lup",ss:i,m:"wa\u2019 tup",mm:i,h:"wa\u2019 rep",hh:i,d:"wa\u2019 jaj",dd:i,M:"wa\u2019 jar",MM:i,y:"wa\u2019 DIS",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(9609))},3578:function(t,e,i){!function(t){"use strict";var e={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"};t.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_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".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 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",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(t,i){switch(i){case"d":case"D":case"Do":case"DD":return t;default:if(0===t)return t+"'\u0131nc\u0131";var n=t%10;return t+(e[n]||e[t%100-n]||e[t>=100?100:null])}},week:{dow:1,doy:7}})}(i(9609))},6969:function(t,e,i){!function(t){"use strict";function e(t,e,i,n){var s={s:["viensas secunds","'iensas secunds"],ss:[t+" secunds",t+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[t+" m\xeduts",t+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[t+" \xfeoras",t+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[t+" ziuas",t+" ziuas"],M:["'n mes","'iens mes"],MM:[t+" mesen",t+" mesen"],y:["'n ar","'iens ar"],yy:[t+" ars",t+" ars"]};return n||e?s[i][0]:s[i][1]}t.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(t){return"d'o"===t.toLowerCase()},meridiem:function(t,e,i){return t>11?i?"d'o":"D'O":i?"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}})}(i(9609))},690:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},6509:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},55:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===e||"\u0633\u06d5\u06be\u06d5\u0631"===e||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===e?t:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===e||"\u0643\u06d5\u0686"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":n<900?"\u0633\u06d5\u06be\u06d5\u0631":n<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":n<1230?"\u0686\u06c8\u0634":n<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(t,e){switch(e){case"d":case"D":case"DDD":return t+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return t+"-\u06be\u06d5\u067e\u062a\u06d5";default:return t}},preparse:function(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(i(9609))},2452:function(t,e,i){!function(t){"use strict";function e(t,e,i){return"m"===i?e?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===i?e?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":t+" "+(n=+t,s={ss:e?"\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:e?"\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:e?"\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"}[i].split("_"),n%10==1&&n%100!=11?s[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?s[1]:s[2]);var n,s}function i(t){return function(){return t+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}t.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(t,e){var i={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===t?i.nominative.slice(1,7).concat(i.nominative.slice(0,1)):t?i[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(e)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(e)?"genitive":"nominative"][t.day()]:i.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:i("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:i("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:i("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:i("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return i("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return i("[\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(t){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(t)},meridiem:function(t,e,i){return t<4?"\u043d\u043e\u0447\u0456":t<12?"\u0440\u0430\u043d\u043a\u0443":t<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t+"-\u0439";case"D":return t+"-\u0433\u043e";default:return t}},week:{dow:1,doy:7}})}(i(9609))},1151:function(t,e,i){!function(t){"use strict";var e=["\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"],i=["\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"];t.defineLocale("ur",{months:e,monthsShort:e,weekdays:i,weekdaysShort:i,weekdaysMin:i,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(t){return"\u0634\u0627\u0645"===t},meridiem:function(t,e,i){return t<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(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(i(9609))},6547:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},1555:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},6541:function(t,e,i){!function(t){"use strict";t.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:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".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(t){return/^ch$/i.test(t)},meridiem:function(t,e,i){return t<12?i?"sa":"SA":i?"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 r\u1ed3i 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",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})}(i(9609))},2401:function(t,e,i){!function(t){"use strict";t.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(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(i(9609))},2341:function(t,e,i){!function(t){"use strict";t.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}})}(i(9609))},619:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"\u51cc\u6668"===e||"\u65e9\u4e0a"===e||"\u4e0a\u5348"===e?t:"\u4e0b\u5348"===e||"\u665a\u4e0a"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1130?"\u4e0a\u5348":n<1230?"\u4e2d\u5348":n<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|\u5468)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"\u65e5";case"M":return t+"\u6708";case"w":case"W":return t+"\u5468";default:return t}},relativeTime:{future:"%s\u5185",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",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(i(9609))},7058:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"\u51cc\u6668"===e||"\u65e9\u4e0a"===e||"\u4e0a\u5348"===e?t:"\u4e2d\u5348"===e?t>=11?t:t+12:"\u4e0b\u5348"===e||"\u665a\u4e0a"===e?t+12:void 0},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1130?"\u4e0a\u5348":n<1230?"\u4e2d\u5348":n<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(t,e){switch(e){case"d":case"D":case"DDD":return t+"\u65e5";case"M":return t+"\u6708";case"w":case"W":return t+"\u9031";default:return t}},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"}})}(i(9609))},2782:function(t,e,i){!function(t){"use strict";t.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(t,e){return 12===t&&(t=0),"\u51cc\u6668"===e||"\u65e9\u4e0a"===e||"\u4e0a\u5348"===e?t:"\u4e2d\u5348"===e?t>=11?t:t+12:"\u4e0b\u5348"===e||"\u665a\u4e0a"===e?t+12:void 0},meridiem:function(t,e,i){var n=100*t+e;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1130?"\u4e0a\u5348":n<1230?"\u4e2d\u5348":n<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(t,e){switch(e){case"d":case"D":case"DDD":return t+"\u65e5";case"M":return t+"\u6708";case"w":case"W":return t+"\u9031";default:return t}},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"}})}(i(9609))},9609:function(t,e,i){(t=i.nmd(t)).exports=function(){"use strict";var e,n;function s(){return e.apply(null,arguments)}function o(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function r(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function a(t){return void 0===t}function c(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function u(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function l(t,e){var i,n=[];for(i=0;i>>0,n=0;n0)for(i=0;i<_.length;i++)a(s=e[n=_[i]])||(t[n]=s);return t}var y=!1;function w(t){b(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,s.updateOffset(this),y=!1)}function A(t){return t instanceof w||null!=t&&null!=t._isAMomentObject}function M(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function v(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=M(e)),i}function T(t,e,i){var n,s=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),r=0;for(n=0;n=0?i?"+":"":"-")+Math.pow(10,Math.max(0,e-n.length)).toString().substr(1)+n}var H=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Y=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j={},F={};function W(t,e,i,n){var s=n;"string"==typeof n&&(s=function(){return this[n]()}),t&&(F[t]=s),e&&(F[e[0]]=function(){return B(s.apply(this,arguments),e[1],e[2])}),i&&(F[i]=function(){return this.localeData().ordinal(s.apply(this,arguments),t)})}function U(t,e){return t.isValid()?(e=K(e,t.localeData()),j[e]=j[e]||function(t){var e,i,n,s=t.match(H);for(e=0,i=s.length;e=0&&Y.test(t);)t=t.replace(Y,n),Y.lastIndex=0,i-=1;return t}var Z=/\d/,G=/\d\d/,X=/\d{3}/,V=/\d{4}/,$=/[+-]?\d{6}/,J=/\d\d?/,Q=/\d\d\d\d?/,tt=/\d\d\d\d\d\d?/,et=/\d{1,3}/,it=/\d{1,4}/,nt=/[+-]?\d{1,6}/,st=/\d+/,ot=/[+-]?\d+/,rt=/Z|[+-]\d\d:?\d\d/gi,at=/Z|[+-]\d\d(?::?\d\d)?/gi,ct=/[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,ut={};function lt(t,e,i){ut[t]=z(e)?e:function(t,n){return t&&i?i:e}}function ht(t,e){return h(ut,t)?ut[t](e._strict,e._locale):new RegExp(dt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,i,n,s){return e||i||n||s})))}function dt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var pt={};function ft(t,e){var i,n=e;for("string"==typeof t&&(t=[t]),c(e)&&(n=function(t,i){i[e]=v(t)}),i=0;i68?1900:2e3)};var yt,wt=At("FullYear",!0);function At(t,e){return function(i){return null!=i?(vt(this,t,i),s.updateOffset(this,e),this):Mt(this,t)}}function Mt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function vt(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&&bt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),Tt(i,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](i))}function Tt(t,e){if(isNaN(t)||isNaN(e))return NaN;var i=(e%12+12)%12;return t+=(e-i)/12,1===i?bt(t)?29:28:31-i%7%2}yt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e=0?(a=new Date(t+400,e,i,n,s,o,r),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,i,n,s,o,r),a}function Pt(t){var e;if(t<100&&t>=0){var i=Array.prototype.slice.call(arguments);i[0]=t+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function Nt(t,e,i){var n=7+e-i;return-(7+Pt(t,0,n).getUTCDay()-e)%7+n-1}function It(t,e,i,n,s){var o,r,a=1+7*(e-1)+(7+i-n)%7+Nt(t,n,s);return a<=0?r=_t(o=t-1)+a:a>_t(t)?(o=t+1,r=a-_t(t)):(o=t,r=a),{year:o,dayOfYear:r}}function qt(t,e,i){var n,s,o=Nt(t.year(),e,i),r=Math.floor((t.dayOfYear()-o-1)/7)+1;return r<1?n=r+Bt(s=t.year()-1,e,i):r>Bt(t.year(),e,i)?(n=r-Bt(t.year(),e,i),s=t.year()+1):(s=t.year(),n=r),{week:n,year:s}}function Bt(t,e,i){var n=Nt(t,e,i),s=Nt(t+1,e,i);return(_t(t)-n+s)/7}function Ht(t,e){return t.slice(e,7).concat(t.slice(0,e))}W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),D("week","w"),D("isoWeek","W"),q("week",5),q("isoWeek",5),lt("w",J),lt("ww",J,G),lt("W",J),lt("WW",J,G),gt(["w","ww","W","WW"],function(t,e,i,n){e[n.substr(0,1)]=v(t)}),W("d",0,"do","day"),W("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),W("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),W("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),D("day","d"),D("weekday","e"),D("isoWeekday","E"),q("day",11),q("weekday",11),q("isoWeekday",11),lt("d",J),lt("e",J),lt("E",J),lt("dd",function(t,e){return e.weekdaysMinRegex(t)}),lt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),lt("dddd",function(t,e){return e.weekdaysRegex(t)}),gt(["dd","ddd","dddd"],function(t,e,i,n){var s=i._locale.weekdaysParse(t,n,i._strict);null!=s?e.d=s:f(i).invalidWeekday=t}),gt(["d","e","E"],function(t,e,i,n){e[n]=v(t)});var Yt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),jt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ft="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Wt(t,e,i){var n,s,o,r=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=p([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(s=yt.call(this._weekdaysParse,r))?s:null:"ddd"===e?-1!==(s=yt.call(this._shortWeekdaysParse,r))?s:null:-1!==(s=yt.call(this._minWeekdaysParse,r))?s:null:"dddd"===e?-1!==(s=yt.call(this._weekdaysParse,r))||-1!==(s=yt.call(this._shortWeekdaysParse,r))||-1!==(s=yt.call(this._minWeekdaysParse,r))?s:null:"ddd"===e?-1!==(s=yt.call(this._shortWeekdaysParse,r))||-1!==(s=yt.call(this._weekdaysParse,r))||-1!==(s=yt.call(this._minWeekdaysParse,r))?s:null:-1!==(s=yt.call(this._minWeekdaysParse,r))||-1!==(s=yt.call(this._weekdaysParse,r))||-1!==(s=yt.call(this._shortWeekdaysParse,r))?s:null}var Ut=ct,Kt=ct,Zt=ct;function Gt(){function t(t,e){return e.length-t.length}var e,i,n,s,o,r=[],a=[],c=[],u=[];for(e=0;e<7;e++)i=p([2e3,1]).day(e),n=this.weekdaysMin(i,""),s=this.weekdaysShort(i,""),o=this.weekdays(i,""),r.push(n),a.push(s),c.push(o),u.push(n),u.push(s),u.push(o);for(r.sort(t),a.sort(t),c.sort(t),u.sort(t),e=0;e<7;e++)a[e]=dt(a[e]),c[e]=dt(c[e]),u[e]=dt(u[e]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Xt(){return this.hours()%12||12}function Vt(t,e){W(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function $t(t,e){return e._meridiemParse}W("H",["HH",2],0,"hour"),W("h",["hh",2],0,Xt),W("k",["kk",2],0,function(){return this.hours()||24}),W("hmm",0,0,function(){return""+Xt.apply(this)+B(this.minutes(),2)}),W("hmmss",0,0,function(){return""+Xt.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)}),W("Hmm",0,0,function(){return""+this.hours()+B(this.minutes(),2)}),W("Hmmss",0,0,function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)}),Vt("a",!0),Vt("A",!1),D("hour","h"),q("hour",13),lt("a",$t),lt("A",$t),lt("H",J),lt("h",J),lt("k",J),lt("HH",J,G),lt("hh",J,G),lt("kk",J,G),lt("hmm",Q),lt("hmmss",tt),lt("Hmm",Q),lt("Hmmss",tt),ft(["H","HH"],3),ft(["k","kk"],function(t,e,i){var n=v(t);e[3]=24===n?0:n}),ft(["a","A"],function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t}),ft(["h","hh"],function(t,e,i){e[3]=v(t),f(i).bigHour=!0}),ft("hmm",function(t,e,i){var n=t.length-2;e[3]=v(t.substr(0,n)),e[4]=v(t.substr(n)),f(i).bigHour=!0}),ft("hmmss",function(t,e,i){var n=t.length-4,s=t.length-2;e[3]=v(t.substr(0,n)),e[4]=v(t.substr(n,2)),e[5]=v(t.substr(s)),f(i).bigHour=!0}),ft("Hmm",function(t,e,i){var n=t.length-2;e[3]=v(t.substr(0,n)),e[4]=v(t.substr(n))}),ft("Hmmss",function(t,e,i){var n=t.length-4,s=t.length-2;e[3]=v(t.substr(0,n)),e[4]=v(t.substr(n,2)),e[5]=v(t.substr(s))});var Jt,Qt=At("Hours",!0),te={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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Lt,monthsShort:Ct,week:{dow:0,doy:6},weekdays:Yt,weekdaysMin:Ft,weekdaysShort:jt,meridiemParse:/[ap]\.?m?\.?/i},ee={},ie={};function ne(t){return t?t.toLowerCase().replace("_","-"):t}function se(e){var n=null;if(!ee[e]&&t&&t.exports)try{n=Jt._abbr,i(6700)("./"+e),oe(n)}catch(s){}return ee[e]}function oe(t,e){var i;return t&&((i=a(e)?ae(t):re(t,e))?Jt=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Jt._abbr}function re(t,e){if(null!==e){var i,n=te;if(e.abbr=t,null!=ee[t])E("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=ee[t]._config;else if(null!=e.parentLocale)if(null!=ee[e.parentLocale])n=ee[e.parentLocale]._config;else{if(null==(i=se(e.parentLocale)))return ie[e.parentLocale]||(ie[e.parentLocale]=[]),ie[e.parentLocale].push({name:t,config:e}),null;n=i._config}return ee[t]=new O(x(n,e)),ie[t]&&ie[t].forEach(function(t){re(t.name,t.config)}),oe(t),ee[t]}return delete ee[t],null}function ae(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Jt;if(!o(t)){if(e=se(t))return e;t=[t]}return function(t){for(var e,i,n,s,o=0;o0;){if(n=se(s.slice(0,e).join("-")))return n;if(i&&i.length>=e&&T(s,i,!0)>=e-1)break;e--}o++}return Jt}(t)}function ce(t){var e,i=t._a;return i&&-2===f(t).overflow&&(e=i[1]<0||i[1]>11?1:i[2]<1||i[2]>Tt(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,f(t)._overflowDayOfYear&&(e<0||e>2)&&(e=2),f(t)._overflowWeeks&&-1===e&&(e=7),f(t)._overflowWeekday&&-1===e&&(e=8),f(t).overflow=e),t}function ue(t,e,i){return null!=t?t:null!=e?e:i}function le(t){var e,i,n,o,r,a=[];if(!t._d){for(n=function(t){var e=new Date(s.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[2]&&null==t._a[1]&&function(t){var e,i,n,s,o,r,a,c;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)o=1,r=4,i=ue(e.GG,t._a[0],qt(Te(),1,4).year),n=ue(e.W,1),((s=ue(e.E,1))<1||s>7)&&(c=!0);else{o=t._locale._week.dow,r=t._locale._week.doy;var u=qt(Te(),o,r);i=ue(e.gg,t._a[0],u.year),n=ue(e.w,u.week),null!=e.d?((s=e.d)<0||s>6)&&(c=!0):null!=e.e?(s=e.e+o,(e.e<0||e.e>6)&&(c=!0)):s=o}n<1||n>Bt(i,o,r)?f(t)._overflowWeeks=!0:null!=c?f(t)._overflowWeekday=!0:(a=It(i,n,s,o,r),t._a[0]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(r=ue(t._a[0],n[0]),(t._dayOfYear>_t(r)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),i=Pt(r,0,t._dayOfYear),t._a[1]=i.getUTCMonth(),t._a[2]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=n[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];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?Pt:Dt).apply(null,a),o=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&&void 0!==t._w.d&&t._w.d!==o&&(f(t).weekdayMismatch=!0)}}var he=/^\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)?)?$/,de=/^\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)?)?$/,pe=/Z|[+-]\d\d(?::?\d\d)?/,fe=[["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}/]],ge=[["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/]],me=/^\/?Date\((\-?\d+)/i;function _e(t){var e,i,n,s,o,r,a=t._i,c=he.exec(a)||de.exec(a);if(c){for(f(t).iso=!0,e=0,i=fe.length;e0&&f(t).unusedInput.push(r),a=a.slice(a.indexOf(i)+i.length),u+=i.length),F[o]?(i?f(t).empty=!1:f(t).unusedTokens.push(o),mt(o,i,t)):t._strict&&!i&&f(t).unusedTokens.push(o);f(t).charsLeftOver=c-u,a.length>0&&f(t).unusedInput.push(a),t._a[3]<=12&&!0===f(t).bigHour&&t._a[3]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[3]=function(t,e,i){var n;return null==i?e:null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?((n=t.isPM(i))&&e<12&&(e+=12),n||12!==e||(e=0),e):e}(t._locale,t._a[3],t._meridiem),le(t),ce(t)}else we(t);else _e(t)}function Me(t){var e=t._i,i=t._f;return t._locale=t._locale||ae(t._l),null===e||void 0===i&&""===e?m({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),A(e)?new w(ce(e)):(u(e)?t._d=e:o(i)?function(t){var e,i,n,s,o;if(0===t._f.length)return f(t).invalidFormat=!0,void(t._d=new Date(NaN));for(s=0;sthis?this:t:m()});function Ce(t,e){var i,n;if(1===e.length&&o(e[0])&&(e=e[0]),!e.length)return Te();for(i=e[0],n=1;n=0?new Date(t+400,e,i)-126227808e5:new Date(t,e,i).valueOf()}function Qe(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-126227808e5:Date.UTC(t,e,i)}function ti(t,e){W(0,[t,t.length],0,e)}function ei(t,e,i,n,s){var o;return null==t?qt(this,n,s).year:(e>(o=Bt(t,n,s))&&(e=o),ii.call(this,t,e,i,n,s))}function ii(t,e,i,n,s){var o=It(t,e,i,n,s),r=Pt(o.year,0,o.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}W(0,["gg",2],0,function(){return this.weekYear()%100}),W(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ti("gggg","weekYear"),ti("ggggg","weekYear"),ti("GGGG","isoWeekYear"),ti("GGGGG","isoWeekYear"),D("weekYear","gg"),D("isoWeekYear","GG"),q("weekYear",1),q("isoWeekYear",1),lt("G",ot),lt("g",ot),lt("GG",J,G),lt("gg",J,G),lt("GGGG",it,V),lt("gggg",it,V),lt("GGGGG",nt,$),lt("ggggg",nt,$),gt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,i,n){e[n.substr(0,2)]=v(t)}),gt(["gg","GG"],function(t,e,i,n){e[n]=s.parseTwoDigitYear(t)}),W("Q",0,"Qo","quarter"),D("quarter","Q"),q("quarter",7),lt("Q",Z),ft("Q",function(t,e){e[1]=3*(v(t)-1)}),W("D",["DD",2],"Do","date"),D("date","D"),q("date",9),lt("D",J),lt("DD",J,G),lt("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),ft(["D","DD"],2),ft("Do",function(t,e){e[2]=v(t.match(J)[0])});var ni=At("Date",!0);W("DDD",["DDDD",3],"DDDo","dayOfYear"),D("dayOfYear","DDD"),q("dayOfYear",4),lt("DDD",et),lt("DDDD",X),ft(["DDD","DDDD"],function(t,e,i){i._dayOfYear=v(t)}),W("m",["mm",2],0,"minute"),D("minute","m"),q("minute",14),lt("m",J),lt("mm",J,G),ft(["m","mm"],4);var si=At("Minutes",!1);W("s",["ss",2],0,"second"),D("second","s"),q("second",15),lt("s",J),lt("ss",J,G),ft(["s","ss"],5);var oi,ri=At("Seconds",!1);for(W("S",0,0,function(){return~~(this.millisecond()/100)}),W(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,function(){return 10*this.millisecond()}),W(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),W(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),W(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),W(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),W(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),D("millisecond","ms"),q("millisecond",16),lt("S",et,Z),lt("SS",et,G),lt("SSS",et,X),oi="SSSS";oi.length<=9;oi+="S")lt(oi,st);function ai(t,e){e[6]=v(1e3*("0."+t))}for(oi="S";oi.length<=9;oi+="S")ft(oi,ai);var ci=At("Milliseconds",!1);W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var ui=w.prototype;function li(t){return t}ui.add=Ue,ui.calendar=function(t,e){var i=t||Te(),n=Pe(i,this).startOf("day"),o=s.calendarFormat(this,n)||"sameElse",r=e&&(z(e[o])?e[o].call(this,i):e[o]);return this.format(r||this.localeData().calendar(o,this,Te(i)))},ui.clone=function(){return new w(this)},ui.diff=function(t,e,i){var n,s,o;if(!this.isValid())return NaN;if(!(n=Pe(t,this)).isValid())return NaN;switch(s=6e4*(n.utcOffset()-this.utcOffset()),e=P(e)){case"year":o=Ze(this,n)/12;break;case"month":o=Ze(this,n);break;case"quarter":o=Ze(this,n)/3;break;case"second":o=(this-n)/1e3;break;case"minute":o=(this-n)/6e4;break;case"hour":o=(this-n)/36e5;break;case"day":o=(this-n-s)/864e5;break;case"week":o=(this-n-s)/6048e5;break;default:o=this-n}return i?o:M(o)},ui.endOf=function(t){var e;if(void 0===(t=P(t))||"millisecond"===t||!this.isValid())return this;var i=this._isUTC?Qe:Je;switch(t){case"year":e=i(this.year()+1,0,1)-1;break;case"quarter":e=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=i(this.year(),this.month()+1,1)-1;break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-$e(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-$e(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-$e(e,1e3)-1}return this._d.setTime(e),s.updateOffset(this,!0),this},ui.format=function(t){t||(t=this.isUtc()?s.defaultFormatUtc:s.defaultFormat);var e=U(this,t);return this.localeData().postformat(e)},ui.from=function(t,e){return this.isValid()&&(A(t)&&t.isValid()||Te(t).isValid())?He({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},ui.fromNow=function(t){return this.from(Te(),t)},ui.to=function(t,e){return this.isValid()&&(A(t)&&t.isValid()||Te(t).isValid())?He({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},ui.toNow=function(t){return this.to(Te(),t)},ui.get=function(t){return z(this[t=P(t)])?this[t]():this},ui.invalidAt=function(){return f(this).overflow},ui.isAfter=function(t,e){var i=A(t)?t:Te(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=P(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()9999?U(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):z(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(i,"Z")):U(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},ui.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var i="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";return this.format(i+n+"-MM-DD[T]HH:mm:ss.SSS"+e+'[")]')},ui.toJSON=function(){return this.isValid()?this.toISOString():null},ui.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ui.unix=function(){return Math.floor(this.valueOf()/1e3)},ui.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ui.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ui.year=wt,ui.isLeapYear=function(){return bt(this.year())},ui.weekYear=function(t){return ei.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ui.isoWeekYear=function(t){return ei.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},ui.quarter=ui.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},ui.month=zt,ui.daysInMonth=function(){return Tt(this.year(),this.month())},ui.week=ui.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},ui.isoWeek=ui.isoWeeks=function(t){var e=qt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},ui.weeksInYear=function(){var t=this.localeData()._week;return Bt(this.year(),t.dow,t.doy)},ui.isoWeeksInYear=function(){return Bt(this.year(),1,4)},ui.date=ni,ui.day=ui.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},ui.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},ui.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},ui.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},ui.hour=ui.hours=Qt,ui.minute=ui.minutes=si,ui.second=ui.seconds=ri,ui.millisecond=ui.milliseconds=ci,ui.utcOffset=function(t,e,i){var n,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=De(at,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(n=Ne(this)),this._offset=t,this._isUTC=!0,null!=n&&this.add(n,"m"),o!==t&&(!e||this._changeInProgress?We(this,He(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,s.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Ne(this)},ui.utc=function(t){return this.utcOffset(0,t)},ui.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ne(this),"m")),this},ui.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=De(rt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},ui.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Te(t).utcOffset():0,(this.utcOffset()-t)%60==0)},ui.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ui.isLocal=function(){return!!this.isValid()&&!this._isUTC},ui.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ui.isUtc=Ie,ui.isUTC=Ie,ui.zoneAbbr=function(){return this._isUTC?"UTC":""},ui.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ui.dates=L("dates accessor is deprecated. Use date instead.",ni),ui.months=L("months accessor is deprecated. Use month instead",zt),ui.years=L("years accessor is deprecated. Use year instead",wt),ui.zone=L("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),ui.isDSTShifted=L("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var t={};if(b(t,this),(t=Me(t))._a){var e=t._isUTC?p(t._a):Te(t._a);this._isDSTShifted=this.isValid()&&T(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var hi=O.prototype;function di(t,e,i,n){var s=ae(),o=p().set(n,e);return s[i](o,t)}function pi(t,e,i){if(c(t)&&(e=t,t=void 0),t=t||"",null!=e)return di(t,e,i,"month");var n,s=[];for(n=0;n<12;n++)s[n]=di(t,n,i,"month");return s}function fi(t,e,i,n){"boolean"==typeof t?(c(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,c(e)&&(i=e,e=void 0),e=e||"");var s,o=ae(),r=t?o._week.dow:0;if(null!=i)return di(e,(i+r)%7,n,"day");var a=[];for(s=0;s<7;s++)a[s]=di(e,(s+r)%7,n,"day");return a}hi.calendar=function(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return z(n)?n.call(e,i):n},hi.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},hi.invalidDate=function(){return this._invalidDate},hi.ordinal=function(t){return this._ordinal.replace("%d",t)},hi.preparse=li,hi.postformat=li,hi.relativeTime=function(t,e,i,n){var s=this._relativeTime[i];return z(s)?s(t,e,i,n):s.replace(/%d/i,t)},hi.pastFuture=function(t,e){var i=this._relativeTime[t>0?"future":"past"];return z(i)?i(e):i.replace(/%s/i,e)},hi.set=function(t){var e,i;for(i in t)z(e=t[i])?this[i]=e:this["_"+i]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},hi.months=function(t,e){return t?o(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||kt).test(e)?"format":"standalone"][t.month()]:o(this._months)?this._months:this._months.standalone},hi.monthsShort=function(t,e){return t?o(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[kt.test(e)?"format":"standalone"][t.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},hi.monthsParse=function(t,e,i){var n,s,o;if(this._monthsParseExact)return St.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(s=p([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(o="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[n]=new RegExp(o.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}},hi.monthsRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||Rt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=Ot),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},hi.monthsShortRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||Rt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=xt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},hi.week=function(t){return qt(t,this._week.dow,this._week.doy).week},hi.firstDayOfYear=function(){return this._week.doy},hi.firstDayOfWeek=function(){return this._week.dow},hi.weekdays=function(t,e){var i=o(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Ht(i,this._week.dow):t?i[t.day()]:i},hi.weekdaysMin=function(t){return!0===t?Ht(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},hi.weekdaysShort=function(t){return!0===t?Ht(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},hi.weekdaysParse=function(t,e,i){var n,s,o;if(this._weekdaysParseExact)return Wt.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(s=p([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[n]=new RegExp(o.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!i&&this._weekdaysParse[n].test(t))return n}},hi.weekdaysRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Gt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=Ut),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},hi.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Gt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Kt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},hi.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Gt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Zt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},hi.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},hi.meridiem=function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},oe("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===v(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),s.lang=L("moment.lang is deprecated. Use moment.locale instead.",oe),s.langData=L("moment.langData is deprecated. Use moment.localeData instead.",ae);var gi=Math.abs;function mi(t,e,i,n){var s=He(e,i);return t._milliseconds+=n*s._milliseconds,t._days+=n*s._days,t._months+=n*s._months,t._bubble()}function _i(t){return t<0?Math.floor(t):Math.ceil(t)}function bi(t){return 4800*t/146097}function yi(t){return 146097*t/4800}function wi(t){return function(){return this.as(t)}}var Ai=wi("ms"),Mi=wi("s"),vi=wi("m"),Ti=wi("h"),ki=wi("d"),Li=wi("w"),Ci=wi("M"),Si=wi("Q"),Ei=wi("y");function zi(t){return function(){return this.isValid()?this._data[t]:NaN}}var xi=zi("milliseconds"),Oi=zi("seconds"),Ri=zi("minutes"),Di=zi("hours"),Pi=zi("days"),Ni=zi("months"),Ii=zi("years"),qi=Math.round,Bi={ss:44,s:45,m:45,h:22,d:26,M:11};function Hi(t,e,i,n,s){return s.relativeTime(e||1,!!i,t,n)}var Yi=Math.abs;function ji(t){return(t>0)-(t<0)||+t}function Fi(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i=Yi(this._milliseconds)/1e3,n=Yi(this._days),s=Yi(this._months);t=M(i/60),e=M(t/60),i%=60,t%=60;var o=M(s/12),r=s%=12,a=n,c=e,u=t,l=i?i.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var d=h<0?"-":"",p=ji(this._months)!==ji(h)?"-":"",f=ji(this._days)!==ji(h)?"-":"",g=ji(this._milliseconds)!==ji(h)?"-":"";return d+"P"+(o?p+o+"Y":"")+(r?p+r+"M":"")+(a?f+a+"D":"")+(c||u||l?"T":"")+(c?g+c+"H":"")+(u?g+u+"M":"")+(l?g+l+"S":"")}var Wi=Ee.prototype;return Wi.isValid=function(){return this._isValid},Wi.abs=function(){var t=this._data;return this._milliseconds=gi(this._milliseconds),this._days=gi(this._days),this._months=gi(this._months),t.milliseconds=gi(t.milliseconds),t.seconds=gi(t.seconds),t.minutes=gi(t.minutes),t.hours=gi(t.hours),t.months=gi(t.months),t.years=gi(t.years),this},Wi.add=function(t,e){return mi(this,t,e,1)},Wi.subtract=function(t,e){return mi(this,t,e,-1)},Wi.as=function(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if("month"===(t=P(t))||"quarter"===t||"year"===t)switch(i=this._months+bi(e=this._days+n/864e5),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(yi(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}},Wi.asMilliseconds=Ai,Wi.asSeconds=Mi,Wi.asMinutes=vi,Wi.asHours=Ti,Wi.asDays=ki,Wi.asWeeks=Li,Wi.asMonths=Ci,Wi.asQuarters=Si,Wi.asYears=Ei,Wi.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*v(this._months/12):NaN},Wi._bubble=function(){var t,e,i,n,s,o=this._milliseconds,r=this._days,a=this._months,c=this._data;return o>=0&&r>=0&&a>=0||o<=0&&r<=0&&a<=0||(o+=864e5*_i(yi(a)+r),r=0,a=0),c.milliseconds=o%1e3,t=M(o/1e3),c.seconds=t%60,e=M(t/60),c.minutes=e%60,i=M(e/60),c.hours=i%24,r+=M(i/24),a+=s=M(bi(r)),r-=_i(yi(s)),n=M(a/12),a%=12,c.days=r,c.months=a,c.years=n,this},Wi.clone=function(){return He(this)},Wi.get=function(t){return t=P(t),this.isValid()?this[t+"s"]():NaN},Wi.milliseconds=xi,Wi.seconds=Oi,Wi.minutes=Ri,Wi.hours=Di,Wi.days=Pi,Wi.weeks=function(){return M(this.days()/7)},Wi.months=Ni,Wi.years=Ii,Wi.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),i=function(t,e,i){var n=He(t).abs(),s=qi(n.as("s")),o=qi(n.as("m")),r=qi(n.as("h")),a=qi(n.as("d")),c=qi(n.as("M")),u=qi(n.as("y")),l=s<=Bi.ss&&["s",s]||s0,l[4]=i,Hi.apply(null,l)}(this,!t,e);return t&&(i=e.pastFuture(+this,i)),e.postformat(i)},Wi.toISOString=Fi,Wi.toString=Fi,Wi.toJSON=Fi,Wi.locale=Ge,Wi.localeData=Ve,Wi.toIsoString=L("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Fi),Wi.lang=Xe,W("X",0,0,"unix"),W("x",0,0,"valueOf"),lt("x",ot),lt("X",/[+-]?\d+(\.\d{1,3})?/),ft("X",function(t,e,i){i._d=new Date(1e3*parseFloat(t,10))}),ft("x",function(t,e,i){i._d=new Date(v(t))}),s.version="2.24.0",e=Te,s.fn=ui,s.min=function(){return Ce("isBefore",[].slice.call(arguments,0))},s.max=function(){return Ce("isAfter",[].slice.call(arguments,0))},s.now=function(){return Date.now?Date.now():+new Date},s.utc=p,s.unix=function(t){return Te(1e3*t)},s.months=function(t,e){return pi(t,e,"months")},s.isDate=u,s.locale=oe,s.invalid=m,s.duration=He,s.isMoment=A,s.weekdays=function(t,e,i){return fi(t,e,i,"weekdays")},s.parseZone=function(){return Te.apply(null,arguments).parseZone()},s.localeData=ae,s.isDuration=ze,s.monthsShort=function(t,e){return pi(t,e,"monthsShort")},s.weekdaysMin=function(t,e,i){return fi(t,e,i,"weekdaysMin")},s.defineLocale=re,s.updateLocale=function(t,e){if(null!=e){var i,n,s=te;null!=(n=se(t))&&(s=n._config),(i=new O(e=x(s,e))).parentLocale=ee[t],ee[t]=i,oe(t)}else null!=ee[t]&&(null!=ee[t].parentLocale?ee[t]=ee[t].parentLocale:null!=ee[t]&&delete ee[t]);return ee[t]},s.locales=function(){return C(ee)},s.weekdaysShort=function(t,e,i){return fi(t,e,i,"weekdaysShort")},s.normalizeUnits=P,s.relativeTimeRounding=function(t){return void 0===t?qi:"function"==typeof t&&(qi=t,!0)},s.relativeTimeThreshold=function(t,e){return void 0!==Bi[t]&&(void 0===e?Bi[t]:(Bi[t]=e,"s"===t&&(Bi.ss=e-1),!0))},s.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},s.prototype=ui,s.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"},s}()},963:function(t){"use strict";function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,i,n,s){n=n||"=";var o={};if("string"!=typeof t||0===t.length)return o;var r=/\+/g;t=t.split(i=i||"&");var a=1e3;s&&"number"==typeof s.maxKeys&&(a=s.maxKeys);var c=t.length;a>0&&c>a&&(c=a);for(var u=0;u=0?(l=f.substr(0,g),h=f.substr(g+1)):(l=f,h=""),d=decodeURIComponent(l),p=decodeURIComponent(h),e(o,d)?Array.isArray(o[d])?o[d].push(p):o[d]=[o[d],p]:o[d]=p}return o}},5341:function(t){"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,i,n,s){return i=i||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map(function(s){var o=encodeURIComponent(e(s))+n;return Array.isArray(t[s])?t[s].map(function(t){return o+encodeURIComponent(e(t))}).join(i):o+encodeURIComponent(e(t[s]))}).join(i):s?encodeURIComponent(e(s))+n+encodeURIComponent(e(t)):""}},6577:function(t,e,i){"use strict";i(963),i(5341)},9867:function(t,e,i){"use strict";i.d(e,{d:function(){return s}});var n=i(6673);class s extends n.L{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},3103:function(t,e,i){"use strict";i.d(e,{P:function(){return r}});var n=i(653),s=i(878),o=i(1225);let r=(()=>{class t{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return(0,s.of)(this.value);case"E":return(0,o._)(this.error);case"C":return(0,n.c)()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})()},8318:function(t,e,i){"use strict";i.d(e,{y:function(){return u}});var n=i(6673),s=i(5331),o=i(7498),r=i(6197),a=i(3392),c=i(1484);let u=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(t,e,i){const{operator:r}=this,a=function(t,e,i){if(t){if(t instanceof n.L)return t;if(t[s.b])return t[s.b]()}return t||e||i?new n.L(t,e,i):new n.L(o.c)}(t,e,i);if(a.add(r?r.call(a,this.source):this.source||c.v.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),c.v.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){c.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:i,isStopped:s}=t;if(e||s)return!1;t=i&&i instanceof n.L?i:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=l(e))((e,i)=>{let n;n=this.subscribe(e=>{try{t(e)}catch(s){i(s),n&&n.unsubscribe()}},i,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[r.L](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?a.y:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=l(t))((t,e)=>{let i;this.subscribe(t=>i=t,t=>e(t),()=>t(i))})}}return t.create=e=>new t(e),t})();function l(t){if(t||(t=c.v.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},7498:function(t,e,i){"use strict";i.d(e,{c:function(){return o}});var n=i(1484),s=i(4294);const o={closed:!0,next(t){},error(t){if(n.v.useDeprecatedSynchronousErrorHandling)throw t;(0,s.z)(t)},complete(){}}},9829:function(t,e,i){"use strict";i.d(e,{L:function(){return s}});var n=i(6673);class s extends n.L{notifyNext(t,e,i,n,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}},5959:function(t,e,i){"use strict";i.d(e,{Yc:function(){return u},xQ:function(){return l}});var n=i(8318),s=i(6673),o=i(7570),r=i(3895),a=i(9291),c=i(5331);class u extends s.L{constructor(t){super(t),this.destination=t}}let l=(()=>{class t extends n.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[c.b](){return new u(this)}lift(t){const e=new h(this,this);return e.operator=t,e}next(t){if(this.closed)throw new r.N;if(!this.isStopped){const{observers:e}=this,i=e.length,n=e.slice();for(let s=0;snew h(t,e),t})();class h extends l{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):o.w.EMPTY}}},9291:function(t,e,i){"use strict";i.d(e,{W:function(){return s}});var n=i(7570);class s extends n.w{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}},6673:function(t,e,i){"use strict";i.d(e,{L:function(){return u}});var n=i(5024),s=i(7498),o=i(7570),r=i(5331),a=i(1484),c=i(4294);class u extends o.w{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.c;break;case 1:if(!t){this.destination=s.c;break}if("object"==typeof t){t instanceof u?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new l(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new l(this,t,e,i)}}[r.b](){return this}static create(t,e,i){const n=new u(t,e,i);return n.syncErrorThrowable=!1,n}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class l extends u{constructor(t,e,i,o){let r;super(),this._parentSubscriber=t;let a=this;(0,n.m)(e)?r=e:e&&(r=e.next,i=e.error,o=e.complete,e!==s.c&&(a=Object.create(e),(0,n.m)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=r,this._error=i,this._complete=o}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=a.v;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):(0,c.z)(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;(0,c.z)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),a.v.useDeprecatedSynchronousErrorHandling)throw i;(0,c.z)(i)}}__tryOrSetError(t,e,i){if(!a.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(n){return a.v.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=n,t.syncErrorThrown=!0,!0):((0,c.z)(n),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},7570:function(t,e,i){"use strict";i.d(e,{w:function(){return a}});var n=i(8470),s=i(2056),o=i(5024);const r=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let a=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:i,_unsubscribe:a,_subscriptions:u}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof t)i.remove(this);else if(null!==i)for(let t=0;tt.concat(e instanceof r?e.errors:e),[])}},1484:function(t,e,i){"use strict";i.d(e,{v:function(){return s}});let n=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else n&&console.log("RxJS: Back to a better error behavior. Thank you. <3");n=t},get useDeprecatedSynchronousErrorHandling(){return n}}},2875:function(t,e,i){"use strict";i.d(e,{c:function(){return a},N:function(){return c}});var n=i(5959),s=i(8318),o=i(7570),r=i(1564);class a extends s.y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new o.w,t.add(this.source.subscribe(new u(this.getSubject(),this))),t.closed&&(this._connection=null,t=o.w.EMPTY)),t}refCount(){return(0,r.x)()(this)}}const c=(()=>{const t=a.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class u extends n.Yc{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}},1305:function(t,e,i){"use strict";i.d(e,{aj:function(){return u}});var n=i(6163),s=i(8470),o=i(9829),r=i(6268),a=i(9342);const c={};function u(...t){let e=null,i=null;return(0,n.K)(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&(0,s.k)(t[0])&&(t=t[0]),(0,a.n)(t,i).lift(new l(e))}class l{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new h(t,this.resultSelector))}}class h extends o.L{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(c),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;it.complete());function o(t){return t?function(t){return new n.y(e=>t.schedule(()=>e.complete()))}(t):s}},9764:function(t,e,i){"use strict";i.d(e,{D:function(){return h}});var n=i(8318),s=i(6015),o=i(7570),r=i(6197),a=i(2570),c=i(5686),u=i(5168),l=i(9653);function h(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[r.L]}(t))return function(t,e){return new n.y(i=>{const n=new o.w;return n.add(e.schedule(()=>{const s=t[r.L]();n.add(s.subscribe({next(t){n.add(e.schedule(()=>i.next(t)))},error(t){n.add(e.schedule(()=>i.error(t)))},complete(){n.add(e.schedule(()=>i.complete()))}}))})),n})}(t,e);if((0,u.t)(t))return function(t,e){return new n.y(i=>{const n=new o.w;return n.add(e.schedule(()=>t.then(t=>{n.add(e.schedule(()=>{i.next(t),n.add(e.schedule(()=>i.complete()))}))},t=>{n.add(e.schedule(()=>i.error(t)))}))),n})}(t,e);if((0,l.z)(t))return(0,a.r)(t,e);if(function(t){return t&&"function"==typeof t[c.hZ]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new n.y(i=>{const n=new o.w;let s;return n.add(()=>{s&&"function"==typeof s.return&&s.return()}),n.add(e.schedule(()=>{s=t[c.hZ](),n.add(e.schedule(function(){if(i.closed)return;let t,e;try{const i=s.next();t=i.value,e=i.done}catch(n){return void i.error(n)}e?i.complete():(i.next(t),this.schedule())}))})),n})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof n.y?t:new n.y((0,s.s)(t))}},9342:function(t,e,i){"use strict";i.d(e,{n:function(){return r}});var n=i(8318),s=i(625),o=i(2570);function r(t,e){return e?(0,o.r)(t,e):new n.y((0,s.V)(t))}},1906:function(t,e,i){"use strict";i.d(e,{T:function(){return a}});var n=i(8318),s=i(6163),o=i(7471),r=i(9342);function a(...t){let e=Number.POSITIVE_INFINITY,i=null,a=t[t.length-1];return(0,s.K)(a)?(i=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===i&&1===t.length&&t[0]instanceof n.y?t[0]:(0,o.J)(e)((0,r.n)(t,i))}},878:function(t,e,i){"use strict";i.d(e,{of:function(){return r}});var n=i(6163),s=i(9342),o=i(2570);function r(...t){let e=t[t.length-1];return(0,n.K)(e)?(t.pop(),(0,o.r)(t,e)):(0,s.n)(t)}},3875:function(t,e,i){"use strict";i.d(e,{S3:function(){return a}});var n=i(8470),s=i(9342),o=i(9829),r=i(6268);function a(...t){if(1===t.length){if(!(0,n.k)(t[0]))return t[0];t=t[0]}return(0,s.n)(t,void 0).lift(new c)}class c{call(t,e){return e.subscribe(new u(t))}}class u extends o.L{constructor(t){super(t),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(t){this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(let i=0;ie.schedule(o,0,{error:t,subscriber:i}):e=>e.error(t))}function o({error:t,subscriber:e}){e.error(t)}},7727:function(t,e,i){"use strict";i.d(e,{K:function(){return r}});var n=i(9829),s=i(9867),o=i(6268);function r(t){return function(e){const i=new a(t),n=e.lift(i);return i.caught=n}}class a{constructor(t){this.selector=t}call(t,e){return e.subscribe(new c(t,this.selector,this.caught))}}class c extends n.L{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let i;try{i=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const n=new s.d(this,void 0,void 0);this.add(n);const r=(0,o.D)(this,i,void 0,void 0,n);r!==n&&this.add(r)}}}},436:function(t,e,i){"use strict";i.d(e,{b:function(){return s}});var n=i(3982);function s(t,e){return(0,n.zg)(t,e,1)}},7701:function(t,e,i){"use strict";i.d(e,{b:function(){return o}});var n=i(6673),s=i(8569);function o(t,e=s.P){return i=>i.lift(new r(t,e))}class r{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))}}class a extends n.L{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function c(t){t.debouncedNext()}},7768:function(t,e,i){"use strict";i.d(e,{d:function(){return s}});var n=i(6673);function s(t=null){return e=>e.lift(new o(t))}class o{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new r(t,this.defaultValue))}}class r extends n.L{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},509:function(t,e,i){"use strict";i.d(e,{g:function(){return a}});var n=i(8569),s=i(8802),o=i(6673),r=i(3103);function a(t,e=n.P){const i=(0,s.J)(t)?+t-e.now():Math.abs(t);return t=>t.lift(new c(i,e))}class c{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new u(t,this.delay,this.scheduler))}}class u extends o.L{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,n=t.scheduler,s=t.destination;for(;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const e=Math.max(0,i[0].time-n.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(u.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new l(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(r.P.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(r.P.createComplete()),this.unsubscribe()}}class l{constructor(t,e){this.time=t,this.notification=e}}},3835:function(t,e,i){"use strict";i.d(e,{h:function(){return s}});var n=i(6673);function s(t,e){return function(i){return i.lift(new o(t,e))}}class o{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new r(t,this.predicate,this.thisArg))}}class r extends n.L{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}},3530:function(t,e,i){"use strict";i.d(e,{P:function(){return u}});var n=i(9665),s=i(3835),o=i(611),r=i(7768),a=i(790),c=i(3392);function u(t,e){const i=arguments.length>=2;return u=>u.pipe(t?(0,s.h)((e,i)=>t(e,i,u)):c.y,(0,o.q)(1),i?(0,r.d)(e):(0,a.T)(()=>new n.K))}},9996:function(t,e,i){"use strict";i.d(e,{U:function(){return s}});var n=i(6673);function s(t,e){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new o(t,e))}}class o{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new r(t,this.project,this.thisArg))}}class r extends n.L{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}},7471:function(t,e,i){"use strict";i.d(e,{J:function(){return o}});var n=i(3982),s=i(3392);function o(t=Number.POSITIVE_INFINITY){return(0,n.zg)(s.y,t)}},3982:function(t,e,i){"use strict";i.d(e,{zg:function(){return c}});var n=i(6268),s=i(9829),o=i(9867),r=i(9996),a=i(9764);function c(t,e,i=Number.POSITIVE_INFINITY){return"function"==typeof e?n=>n.pipe(c((i,n)=>(0,a.D)(t(i,n)).pipe((0,r.U)((t,s)=>e(i,t,n,s))),i)):("number"==typeof e&&(i=e),e=>e.lift(new u(t,i)))}class u{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new l(t,this.project,this.concurrent))}}class l extends s.L{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},1564:function(t,e,i){"use strict";i.d(e,{x:function(){return s}});var n=i(6673);function s(){return function(t){return t.lift(new o(t))}}class o{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const n=new r(t,i),s=e.subscribe(n);return n.closed||(n.connection=i.connect()),s}}class r extends n.L{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,n=t._connection;this.connection=null,!n||i&&n!==i||n.unsubscribe()}}},1055:function(t,e,i){"use strict";i.d(e,{B:function(){return a}});var n=i(2875),s=i(1564),o=i(5959);function r(){return new o.xQ}function a(){return t=>{return(0,s.x)()((e=r,function(t){let i;i="function"==typeof e?e:function(){return e};const s=Object.create(t,n.N);return s.source=t,s.subjectFactory=i,s})(t));var e}}},4689:function(t,e,i){"use strict";i.d(e,{w:function(){return c}});var n=i(9829),s=i(9867),o=i(6268),r=i(9996),a=i(9764);function c(t,e){return"function"==typeof e?i=>i.pipe(c((i,n)=>(0,a.D)(t(i,n)).pipe((0,r.U)((t,s)=>e(i,t,n,s))))):e=>e.lift(new u(t))}class u{constructor(t){this.project=t}call(t,e){return e.subscribe(new l(t,this.project))}}class l extends n.L{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(n){return void this.destination.error(n)}this._innerSub(e,t,i)}_innerSub(t,e,i){const n=this.innerSubscription;n&&n.unsubscribe();const r=new s.d(this,e,i),a=this.destination;a.add(r),this.innerSubscription=(0,o.D)(this,t,void 0,void 0,r),this.innerSubscription!==r&&a.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,i,n,s){this.destination.next(e)}}},611:function(t,e,i){"use strict";i.d(e,{q:function(){return r}});var n=i(6673),s=i(8402),o=i(653);function r(t){return e=>0===t?(0,o.c)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new s.W}call(t,e){return e.subscribe(new c(t,this.total))}}class c extends n.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}},6599:function(t,e,i){"use strict";i.d(e,{b:function(){return r}});var n=i(6673);function s(){}var o=i(5024);function r(t,e,i){return function(n){return n.lift(new a(t,e,i))}}class a{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new c(t,this.nextOrObserver,this.error,this.complete))}}class c extends n.L{constructor(t,e,i,n){super(t),this._tapNext=s,this._tapError=s,this._tapComplete=s,this._tapError=i||s,this._tapComplete=n||s,(0,o.m)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||s,this._tapError=e.error||s,this._tapComplete=e.complete||s)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},790:function(t,e,i){"use strict";i.d(e,{T:function(){return o}});var n=i(9665),s=i(6673);function o(t=c){return e=>e.lift(new r(t))}class r{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new a(t,this.errorFactory))}}class a extends s.L{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function c(){return new n.K}},9085:function(t,e,i){"use strict";i.d(e,{V:function(){return h}});var n=i(8569);const s=(()=>{function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t})();var o=i(8802),r=i(9829),a=i(6268);class c{constructor(t,e,i,n){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=i,this.scheduler=n}call(t,e){return e.subscribe(new u(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class u extends r.L{constructor(t,e,i,n,s){super(t),this.absoluteTimeout=e,this.waitFor=i,this.withObservable=n,this.scheduler=s,this.action=null,this.scheduleTimeout()}static dispatchTimeout(t){const{withObservable:e}=t;t._unsubscribeAndRecycle(),t.add((0,a.D)(t,e))}scheduleTimeout(){const{action:t}=this;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(u.dispatchTimeout,this.waitFor,this))}_next(t){this.absoluteTimeout||this.scheduleTimeout(),super._next(t)}_unsubscribe(){this.action=null,this.scheduler=null,this.withObservable=null}}var l=i(1225);function h(t,e=n.P){return function(t,e,i=n.P){return n=>{let s=(0,o.J)(t),r=s?+t-i.now():Math.abs(t);return n.lift(new c(r,s,e,i))}}(t,(0,l._)(new s),e)}},2570:function(t,e,i){"use strict";i.d(e,{r:function(){return o}});var n=i(8318),s=i(7570);function o(t,e){return new n.y(i=>{const n=new s.w;let o=0;return n.add(e.schedule(function(){o!==t.length?(i.next(t[o++]),i.closed||n.add(this.schedule())):i.complete()})),n})}},8277:function(t,e,i){"use strict";i.d(e,{o:function(){return o}});var n=i(7570);class s extends n.w{constructor(t,e){super()}schedule(t,e=0){return this}}class o extends s{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 i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let i,n=!1;try{this.work(t)}catch(s){n=!0,i=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},1098:function(t,e,i){"use strict";i.d(e,{v:function(){return s}});let n=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(t,e=0,i){return new this.SchedulerAction(this,t).schedule(i,e)}}return t.now=()=>Date.now(),t})();class s extends n{constructor(t,e=n.now){super(t,()=>s.delegate&&s.delegate!==this?s.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return s.delegate&&s.delegate!==this?s.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}},8569:function(t,e,i){"use strict";i.d(e,{P:function(){return s}});var n=i(8277);const s=new(i(1098).v)(n.o)},5686:function(t,e,i){"use strict";function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}i.d(e,{hZ:function(){return s}});const s=n()},6197:function(t,e,i){"use strict";i.d(e,{L:function(){return n}});const n=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},5331:function(t,e,i){"use strict";i.d(e,{b:function(){return n}});const n=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},8402:function(t,e,i){"use strict";i.d(e,{W:function(){return n}});const n=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},9665:function(t,e,i){"use strict";i.d(e,{K:function(){return n}});const n=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})()},3895:function(t,e,i){"use strict";i.d(e,{N:function(){return n}});const n=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},4294:function(t,e,i){"use strict";function n(t){setTimeout(()=>{throw t},0)}i.d(e,{z:function(){return n}})},3392:function(t,e,i){"use strict";function n(t){return t}i.d(e,{y:function(){return n}})},8470:function(t,e,i){"use strict";i.d(e,{k:function(){return n}});const n=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))()},9653:function(t,e,i){"use strict";i.d(e,{z:function(){return n}});const n=t=>t&&"number"==typeof t.length&&"function"!=typeof t},8802:function(t,e,i){"use strict";function n(t){return t instanceof Date&&!isNaN(+t)}i.d(e,{J:function(){return n}})},5024:function(t,e,i){"use strict";function n(t){return"function"==typeof t}i.d(e,{m:function(){return n}})},2056:function(t,e,i){"use strict";function n(t){return null!==t&&"object"==typeof t}i.d(e,{K:function(){return n}})},5168:function(t,e,i){"use strict";function n(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}i.d(e,{t:function(){return n}})},6163:function(t,e,i){"use strict";function n(t){return t&&"function"==typeof t.schedule}i.d(e,{K:function(){return n}})},6015:function(t,e,i){"use strict";i.d(e,{s:function(){return l}});var n=i(625),s=i(4294),o=i(5686),r=i(6197),a=i(9653),c=i(5168),u=i(2056);const l=t=>{if(t&&"function"==typeof t[r.L])return l=t,t=>{const e=l[r.L]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if((0,a.z)(t))return(0,n.V)(t);if((0,c.t)(t))return i=t,t=>(i.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,s.z),t);if(t&&"function"==typeof t[o.hZ])return e=t,t=>{const i=e[o.hZ]();for(;;){const e=i.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof i.return&&t.add(()=>{i.return&&i.return()}),t};{const e=(0,u.K)(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,i,l}},625:function(t,e,i){"use strict";i.d(e,{V:function(){return n}});const n=t=>e=>{for(let i=0,n=t.length;i=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n1&&void 0!==arguments[1])||arguments[1],i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},a.dqk.getAllAngularTestabilities=function(){return e.getAllTestabilities()},a.dqk.getAllAngularRootElements=function(){return e.getAllRootElements()},a.dqk.frameworkStabilizers||(a.dqk.frameworkStabilizers=[]),a.dqk.frameworkStabilizers.push(function(e){var t=a.dqk.getAllAngularTestabilities(),n=t.length,i=!1,r=function(t){i=i||t,0==--n&&e(i)};t.forEach(function(e){e.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return null!=i?i:n?(0,r.q)().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){(0,a.VLi)(new e)}}]),e}(),h=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}(),d=new a.OlP("EventManagerPlugins"),f=function(){var e=function(){function e(t,n){var i=this;_classCallCheck(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=i}),this._plugins=t.slice().reverse()}return _createClass(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,i=0;i-1&&(t.splice(n,1),a+=e+".")}),a+=r,0!=t.length||0===r.length)return null;var o={};return o.domEventName=i,o.fullKey=a,o}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&E.hasOwnProperty(t)&&(t=E[t]))}return S[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),L.forEach(function(i){i!=n&&(0,z[i])(e)&&(t+=i+".")}),t+=n}},{key:"eventCallback",value:function(e,t,i){return function(r){n.getEventFullKey(r)===e&&i.runGuarded(function(){return t(r)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(p);return e.\u0275fac=function(t){return new(t||e)(a.LFG(r.K0))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}(),x=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,a.Yz7)({factory:function(){return(0,a.LFG)(D)},token:e,providedIn:"root"}),e}();function R(e){return new D(e.get(r.K0))}var D=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._doc=e,i}return _createClass(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case a.q3G.NONE:return t;case a.q3G.HTML:return(0,a.qzn)(t,"HTML")?(0,a.z3N)(t):(0,a.EiD)(this._doc,String(t)).toString();case a.q3G.STYLE:return(0,a.qzn)(t,"Style")?(0,a.z3N)(t):t;case a.q3G.SCRIPT:if((0,a.qzn)(t,"Script"))return(0,a.z3N)(t);throw new Error("unsafe value used in a script context");case a.q3G.URL:return(0,a.yhl)(t),(0,a.qzn)(t,"URL")?(0,a.z3N)(t):(0,a.mCW)(String(t));case a.q3G.RESOURCE_URL:if((0,a.qzn)(t,"ResourceURL"))return(0,a.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 ".concat(e," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return(0,a.JVY)(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return(0,a.L6k)(e)}},{key:"bypassSecurityTrustScript",value:function(e){return(0,a.eBb)(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return(0,a.LAX)(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return(0,a.pB0)(e)}}]),n}(x);return e.\u0275fac=function(t){return new(t||e)(a.LFG(r.K0))},e.\u0275prov=(0,a.Yz7)({factory:function(){return R((0,a.LFG)(a.gxx))},token:e,providedIn:"root"}),e}(),P=(0,a.eFA)(a._c5,"browser",[{provide:a.Lbi,useValue:r.bD},{provide:a.g9A,useValue:function(){o.makeCurrent(),l.init()},multi:!0},{provide:r.K0,useFactory:function(){return(0,a.RDi)(document),document},deps:[]}]),N=[[],{provide:a.zSh,useValue:"root"},{provide:a.qLn,useFactory:function(){return new a.qLn},deps:[]},{provide:d,useClass:T,multi:!0,deps:[r.K0,a.R0b,a.Lbi]},{provide:d,useClass:O,multi:!0,deps:[r.K0]},[],{provide:w,useClass:w,deps:[f,m,a.AFp]},{provide:a.FYo,useExisting:w},{provide:g,useExisting:m},{provide:m,useClass:m,deps:[r.K0]},{provide:a.dDg,useClass:a.dDg,deps:[a.R0b]},{provide:f,useClass:f,deps:[d,a.R0b]},{provide:r.JF,useClass:h,deps:[]},[]],I=function(){var e=function(){function e(t){if(_classCallCheck(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return _createClass(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:a.AFp,useValue:t.appId},{provide:c,useExisting:a.AFp},u]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(e,12))},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:N,imports:[r.ez,a.hGG]}),e}();function q(){return new B((0,a.LFG)(r.K0))}var B=function(){var e=function(){function e(t){_classCallCheck(this,e),this._doc=t}return _createClass(e,[{key:"getTitle",value:function(){return this._doc.title}},{key:"setTitle",value:function(e){this._doc.title=e||""}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(r.K0))},e.\u0275prov=(0,a.Yz7)({factory:q,token:e,providedIn:"root"}),e}();"undefined"!=typeof window&&window;var H,Y,j,F,W,U,K,Z,G,X,V,J,Q,$,ee=n(9063),te=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"encodeKey",value:function(e){return encodeURIComponent(e)}},{key:"encodeValue",value:function(e){return encodeURIComponent(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}(),ne=new a.OlP("basePath"),ie=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,e),this.apiKeys=t.apiKeys,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.withCredentials=t.withCredentials,this.encoder=t.encoder}return _createClass(e,[{key:"selectHeaderContentType",value:function(e){var t=this;if(0!==e.length){var n=e.find(function(e){return t.isJsonMime(e)});return void 0===n?e[0]:n}}},{key:"selectHeaderAccept",value:function(e){var t=this;if(0!==e.length){var n=e.find(function(e){return t.isJsonMime(e)});return void 0===n?e[0]:n}}},{key:"isJsonMime",value:function(e){var t=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}}]),e}(),re=((X=function(){function e(t,n,i){_classCallCheck(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new ee.WM,this.configuration=new ie,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new te}return _createClass(e,[{key:"convertAttributeToNonunique",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("attributeDefinition",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/convertAttributeToNonunique"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"convertAttributeToUnique",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("attributeDefinition",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/convertAttributeToUnique"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"createAttributeDefinition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/createAttribute"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"deleteAttributeDefinition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("attribute",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/deleteAttribute"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"deleteAttributeDefinitions",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");var i=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("attributes[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/deleteAttributes"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllAttributeDefinitions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributesDefinition"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getAttribute",value:function(e,t,n,i,r,a,o,s,c,u,l){var h=arguments.length>11&&void 0!==arguments[11]?arguments[11]:"body",d=arguments.length>12&&void 0!==arguments[12]&&arguments[12],f=new ee.LE({encoder:this.encoder});null!=e&&(f=f.set("attributeName",e)),null!=t&&(f=f.set("attributeId",t)),null!=n&&(f=f.set("facility",n)),null!=i&&(f=f.set("user",i)),null!=r&&(f=f.set("vo",r)),null!=a&&(f=f.set("resource",a)),null!=o&&(f=f.set("member",o)),null!=s&&(f=f.set("group",s)),null!=c&&(f=f.set("host",c)),null!=u&&(f=f.set("userExtSource",u)),null!=l&&(f=f.set("key",l));var p=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(p=p.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(p=p.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var g="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;p=p.set("Authorization","Bearer "+g)}var m=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==m&&(p=p.set("Accept",m)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/any"),{params:f,withCredentials:this.configuration.withCredentials,headers:p,observe:h,reportProgress:d})}},{key:"getAttributeDefinitionById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeDefinitionById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAttributeDefinitionByName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("attributeName",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeDefinition"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAttributeDefinitionsByNamespace",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("namespace",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributesDefinitionByNamespace"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAttributeModulesDependenciesForAttributeGraphText",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("format",e)),null!=t&&(r=r.set("attrName",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getAttributeModulesDependenciesGraphText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("format",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeModulesDependenciesGraphText"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAttributeRights",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("attributeId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeRights"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAttributesDefinitionWithRights",value:function(e,t,n,i,r,a,o,s){var c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:"body",u=arguments.length>9&&void 0!==arguments[9]&&arguments[9],l=new ee.LE({encoder:this.encoder});null!=e&&(l=l.set("member",e)),null!=t&&(l=l.set("user",t)),null!=n&&(l=l.set("vo",n)),null!=i&&(l=l.set("group",i)),null!=r&&(l=l.set("resource",r)),null!=a&&(l=l.set("facility",a)),null!=o&&(l=l.set("host",o)),null!=s&&(l=l.set("userExtSource",s));var h=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(h=h.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(h=h.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var d="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;h=h.set("Authorization","Bearer "+d)}var f=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==f&&(h=h.set("Accept",f)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/getAttributesDefinitionWithRights"),{params:l,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:u})}},{key:"getEntitylessAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("key",e)),null!=t&&(r=r.set("attributeName",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-entityless"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getEntitylessAttributesByKey",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("key",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/key"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getEntitylessAttributesByName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("attrName",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getEntitylessAttributes"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getEntitylessAttributesWithKeys",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("attrName",e)),t&&t.forEach(function(e){r=r.append("keys[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getEntitylessAttributesWithKeys"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getEntitylessKeys",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("attributeDefinition",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getEntitylessKeys"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getFacilityAttributeById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("attributeId",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-facility"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getFacilityAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("attributeName",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-facility"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getFacilityAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("facility",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/f"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getFacilityAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/f-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getFacilityResourceUserMemberAttributes",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("facility",e)),null!=t&&(o=o.set("resource",t)),null!=n&&(o=o.set("user",n)),null!=i&&(o=o.set("member",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/f-r-u-m"),{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getFacilityUserAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("user",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/f-u"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getGroupAttributeById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("attributeId",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-group"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getGroupAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("attributeName",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-group"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getGroupAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/g"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/g-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getGroupResourceAttributeById",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("group",e)),null!=t&&(a=a.set("resource",t)),null!=n&&(a=a.set("attributeId",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-group-resource"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getGroupResourceAttributeByName",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("group",e)),null!=t&&(a=a.set("resource",t)),null!=n&&(a=a.set("attributeName",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-group-resource"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getGroupResourceAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("resource",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/group-resource"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getHostAttributeById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("host",e)),null!=t&&(r=r.set("attributeId",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-host"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getHostAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("host",e)),null!=t&&(r=r.set("attributeName",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-host"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getHostAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("host",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/h"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getHostAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("host",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/h-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getLogins",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getLogins"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getMemberAndUserAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("workWithUserAttributes",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-wu"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getMemberAndUserAttributesByNames",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("member",e)),t&&t.forEach(function(e){a=a.append("attrNames[]",e)}),null!=n&&(a=a.set("workWithUserAttributes",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-names-wu"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getMemberAttributeById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("attributeId",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-member"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getMemberAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("attributeName",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-member"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getMemberAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getMemberAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getMemberGroupAndUserAttributesByNames",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("group",t)),n&&n.forEach(function(e){o=o.append("attrNames[]",e)}),null!=i&&(o=o.set("workWithUserAttributes",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-g-names-wu"),{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getMemberGroupAttributeById",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("group",t)),null!=n&&(a=a.set("attributeId",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-member-group"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getMemberGroupAttributeByName",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("group",t)),null!=n&&(a=a.set("attributeName",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-member-group"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getMemberGroupAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("group",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-g"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getMemberGroupAttributesByNames",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("group",t)),n&&n.forEach(function(e){a=a.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-g-names"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getMemberResourceAndUserFacilityAttributes",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("resource",t)),null!=n&&(a=a.set("workWithUserAttributes",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-r-wu"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getMemberResourceAndUserFacilityAttributesByNames",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("resource",t)),n&&n.forEach(function(e){o=o.append("attrNames[]",e)}),null!=i&&(o=o.set("workWithUserAttributes",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-r-names-wu"),{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getMemberResourceAttributeById",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("resource",t)),null!=n&&(a=a.set("attributeId",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-member-resource"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getMemberResourceAttributeByName",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("resource",t)),null!=n&&(a=a.set("attributeName",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-member-resource"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getMemberResourceAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("resource",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-r"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getRequiredAttributesDefinition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("service",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributesDefinition"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRequiredAttributesFacility",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("facility",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/f"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRequiredAttributesFacilityService",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("service",e)),null!=t&&(r=r.set("facility",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-f"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getRequiredAttributesFacilityServices",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){r=r.append("services[]",e)}),null!=t&&(r=r.set("facility",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/ss-f"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getRequiredAttributesGroupResourceService",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("service",e)),null!=t&&(a=a.set("resource",t)),null!=n&&(a=a.set("group",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-r-g"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getRequiredAttributesHostService",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("service",e)),null!=t&&(r=r.set("host",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-h"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getRequiredAttributesMember",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("workWithUserAttributes",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/m"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getRequiredAttributesMemberGroup",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("group",t)),null!=n&&(a=a.set("workWithUserAttributes",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/m-g"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getRequiredAttributesMemberGroupResourceService",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",o=arguments.length>6&&void 0!==arguments[6]&&arguments[6];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==n)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");var s=new ee.LE({encoder:this.encoder});null!=e&&(s=s.set("service",e)),null!=t&&(s=s.set("resource",t)),null!=n&&(s=s.set("group",n)),null!=i&&(s=s.set("member",i)),null!=r&&(s=s.set("workWithUserAttributes",r));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-r-g-m"),{params:s,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:o})}},{key:"getRequiredAttributesMemberGroupService",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("service",e)),null!=t&&(o=o.set("group",t)),null!=n&&(o=o.set("member",n)),null!=i&&(o=o.set("workWithUserAttributes",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-g-m"),{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getRequiredAttributesMemberResource",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("resource",t)),null!=n&&(a=a.set("workWithUserAttributes",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/m-r"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getRequiredAttributesMemberResourceService",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("service",e)),null!=t&&(o=o.set("resource",t)),null!=n&&(o=o.set("member",n)),null!=i&&(o=o.set("workWithUserAttributes",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-r-m"),{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getRequiredAttributesResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/r"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRequiredAttributesResourceService",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("service",e)),null!=t&&(r=r.set("resource",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-r"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getRequiredAttributesResourceServices",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){r=r.append("services[]",e)}),null!=t&&(r=r.set("resource",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/ss-r"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getRequiredAttributesUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/u"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRequiredAttributesUserFacility",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("facility",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/u-f"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getRequiredAttributesVoService",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("service",e)),null!=t&&(r=r.set("vo",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-v"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getResourceAttributeById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("attributeId",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-resource"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getResourceAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("attributeName",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-resource"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getResourceAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getResourceAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getResourceGroupAndGroupAttributes",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("resource",e)),null!=t&&(a=a.set("group",t)),null!=n&&(a=a.set("workWithGroupAttributes",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-g-wg"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getResourceGroupAndGroupAttributesByNames",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==i)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("resource",e)),null!=t&&(o=o.set("group",t)),n&&n.forEach(function(e){o=o.append("attrNames[]",e)}),null!=i&&(o=o.set("workWithGroupAttributes",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-g-names-wg"),{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getResourceGroupAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("group",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-g"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getResourceGroupMemberAttributesByNames",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("resource",e)),null!=t&&(o=o.set("group",t)),null!=n&&(o=o.set("member",n)),i&&i.forEach(function(e){o=o.append("attrNames[]",e)});var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-g-m-names"),{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getUserAttributeById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("attributeId",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-user"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getUserAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("attributeName",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-user"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getUserAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/u"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getUserAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/u-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getUserExtSourceAttributeById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("userExtSource",e)),null!=t&&(r=r.set("attributeId",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-ues"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getUserExtSourceAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("userExtSource",e)),null!=t&&(r=r.set("attributeName",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-ues"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getUserExtSourceAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("userExtSource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/ues"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getUserExtSourceAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("userExtSource",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/ues-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getUserFacilityAttributeById",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("user",e)),null!=t&&(a=a.set("facility",t)),null!=n&&(a=a.set("attributeId",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-user_facility"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getUserFacilityAttributeByName",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("user",e)),null!=t&&(a=a.set("facility",t)),null!=n&&(a=a.set("attributeName",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-user_facility"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getUserFacilityAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("facility",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/user-facility"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getVoAttributeById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("attributeId",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-vo"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getVoAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("attributeName",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-vo"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getVoAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/vo"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVoAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/vo-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeAttributesForFacilityResourceGroupUserMember",value:function(e,t,n,i,r,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];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==n)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==i)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==r)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==a)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");var c=new ee.LE({encoder:this.encoder});null!=e&&(c=c.set("facility",e)),null!=t&&(c=c.set("resource",t)),null!=n&&(c=c.set("group",n)),null!=i&&(c=c.set("user",i)),null!=r&&(c=c.set("member",r)),a&&a.forEach(function(e){c=c.append("attributes[]",e)});var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m"),null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:s})}},{key:"removeAttributesForFacilityResourceUserMember",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",o=arguments.length>6&&void 0!==arguments[6]&&arguments[6];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==n)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==i)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");var s=new ee.LE({encoder:this.encoder});null!=e&&(s=s.set("facility",e)),null!=t&&(s=s.set("resource",t)),null!=n&&(s=s.set("user",n)),null!=i&&(s=s.set("member",i)),r&&r.forEach(function(e){s=s.append("attributes[]",e)});var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/f-r-u-m"),null,{params:s,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:o})}},{key:"removeEntitylessAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("key",e)),null!=t&&(r=r.set("attribute",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/e"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeFacilityAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("attribute",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/f"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeFacilityAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),t&&t.forEach(function(e){r=r.append("attributes[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/f"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeGroupAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("attribute",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeGroupAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),t&&t.forEach(function(e){r=r.append("attributes[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeGroupResourceAttribute",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("group",e)),null!=t&&(a=a.set("resource",t)),null!=n&&(a=a.set("attribute",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/g-r"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"removeGroupResourceAttributes",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("group",e)),null!=t&&(a=a.set("resource",t)),n&&n.forEach(function(e){a=a.append("attributes[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/g-r"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"removeGroupResourceAttributesWorkWithGroupAttributes",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==i)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("group",e)),null!=t&&(o=o.set("resource",t)),n&&n.forEach(function(e){o=o.append("attributes[]",e)}),null!=i&&(o=o.set("workWithGroupAttributes",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"removeHostAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("host",e)),null!=t&&(r=r.set("attribute",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/h"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeHostAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("host",e)),t&&t.forEach(function(e){r=r.append("attributes[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/h"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeMemberAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("attribute",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/m"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeMemberAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),t&&t.forEach(function(e){r=r.append("attributes[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeMemberAttributesWorkWithUserAttributes",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("member",e)),t&&t.forEach(function(e){a=a.append("attributes[]",e)}),null!=n&&(a=a.set("workWithUserAttributes",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"removeMemberGroupAttribute",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("group",t)),null!=n&&(a=a.set("attribute",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/m-g"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"removeMemberGroupAttributes",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("group",t)),n&&n.forEach(function(e){a=a.append("attributes[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m-g"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"removeMemberGroupAttributesWorkWithUserAttributes",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("group",t)),n&&n.forEach(function(e){o=o.append("attributes[]",e)}),null!=i&&(o=o.set("workWithUserAttributes",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"removeMemberResourceAttribute",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("resource",t)),null!=n&&(a=a.set("attribute",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/m-r"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"removeMemberResourceAttributes",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("resource",t)),n&&n.forEach(function(e){a=a.append("attributes[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m-r"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"removeResourceAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("attribute",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/r"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeResourceAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),t&&t.forEach(function(e){r=r.append("attributes[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/r"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeUesAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("userExtSource",e)),t&&t.forEach(function(e){r=r.append("attributes[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/ues"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeUserAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("attribute",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeUserAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach(function(e){r=r.append("attributes[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeUserExtSourceAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("userExtSource",e)),null!=t&&(r=r.set("attribute",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/ues"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeUserFacilityAttribute",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("user",e)),null!=t&&(a=a.set("facility",t)),null!=n&&(a=a.set("attribute",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/u-f"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"removeUserFacilityAttributes",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("user",e)),null!=t&&(a=a.set("facility",t)),n&&n.forEach(function(e){a=a.append("attributes[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/u-f"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"removeVoAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("attribute",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/v"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeVoAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),t&&t.forEach(function(e){r=r.append("attributes[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/v"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"setAttributeRights",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputAttributeRights was null or undefined when calling setAttributeRights.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributeRights"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setEntitylessAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/entityless"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setFacilityAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/facility"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setFacilityAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/f"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setFacilityResourceGroupUserMemberAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/f-r-g-u-m"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setFacilityResourceUserMemberAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/f-r-u-m"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setFacilityUserAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/f-u"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setGroupAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetGroupAttribute was null or undefined when calling setGroupAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/group"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setGroupAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetGroupAttributes was null or undefined when calling setGroupAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/g"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setGroupResourceAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/group-resource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setGroupResourceAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/group-resource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setHostAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetHostAttribute was null or undefined when calling setHostAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/host"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setHostAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetHostAttributes was null or undefined when calling setHostAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/h"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberAttribute was null or undefined when calling setMemberAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/member"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberAttributes was null or undefined when calling setMemberAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberGroupAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/member-group"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberGroupAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-g"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberGroupWithUserAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-g-wu"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberResourceAndUserAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-r-wu"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberResourceAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/member-resource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberResourceAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-r"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberWithUserAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-wu"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setResourceAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetResourceAttribute was null or undefined when calling setResourceAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/resource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setResourceAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetResourceAttributes was null or undefined when calling setResourceAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/r"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setResourceGroupAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/r-g"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setResourceGroupWithGroupAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/r-g-wg"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setUserAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetUserAttribute was null or undefined when calling setUserAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/user"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setUserAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetUserAttributes was null or undefined when calling setUserAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/u"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setUserExtSourceAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/userExtSource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setUserExtSourceAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/ues"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setUserFacilityAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/facility-user"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setUserFacilityAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/facility-user"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setVoAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetVoAttribute was null or undefined when calling setVoAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/vo"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setVoAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetVoAttributes was null or undefined when calling setVoAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/vo"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateAttributeDefinition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/updateAttributeDefinition"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}}]),e}()).\u0275fac=function(e){return new(e||X)(a.LFG(ee.eN),a.LFG(ne,8),a.LFG(ie,8))},X.\u0275prov=a.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),X),ae=((G=function(){function e(t,n,i){_classCallCheck(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new ee.WM,this.configuration=new ie,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new te}return _createClass(e,[{key:"getAllPolicies",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getAllPolicies"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getAllRolesManagementRules",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getAllRolesManagementRules"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getAuthzAdminGroups",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("role",e)),null!=t&&(a=a.set("complementaryObjectId",t)),null!=n&&(a=a.set("complementaryObjectName",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getAdminGroups"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getAuthzRichAdmins",value:function(e,t,n,i,r,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];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==n)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==i)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");var c=new ee.LE({encoder:this.encoder});null!=e&&(c=c.set("role",e)),null!=t&&(c=c.set("complementaryObjectId",t)),null!=n&&(c=c.set("complementaryObjectName",n)),i&&i.forEach(function(e){c=c.append("specificAttributes",e)}),null!=r&&(c=c.set("allUserAttributes",r)),null!=a&&(c=c.set("onlyDirectAdmins",a));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getRichAdmins"),{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:s})}},{key:"getFacilitiesWhereUserIsInRoles",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");var r=new ee.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach(function(e){r=r.append("roles[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getFacilitiesWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getGroupRoleNames",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getGroupRoleNames"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupRoles",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("groupId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/authzResolver/getGroupRoles"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupsWhereUserIsInRoles",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");var r=new ee.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach(function(e){r=r.append("roles[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getGroupsWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getLoggedUser",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getLoggedUser"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getMembersWhereUserIsInRoles",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");var r=new ee.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach(function(e){r=r.append("roles[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getMembersWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getPerunPrincipal",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getPerunPrincipal"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getPrincipalRoleNames",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getPrincipalRoleNames"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getResourcesWhereUserIsInRoles",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");var r=new ee.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach(function(e){r=r.append("roles[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getResourcesWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getSecurityTeamsWhereUserIsInRoles",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");var r=new ee.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach(function(e){r=r.append("roles[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getSecurityTeamsWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getUserRoleNames",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getUserRoleNames"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getUserRoles",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("userId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getUserRoles"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVosWhereUserIsInRoles",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");var r=new ee.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach(function(e){r=r.append("roles[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getVosWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"isFacilityAdmin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("facility",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/authzResolver/isFacilityAdmin"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"isGroupAdmin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/authzResolver/isGroupAdmin"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"isPerunAdmin",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/isPerunAdmin"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"isVoAdmin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/authzResolver/isVoAdmin"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"keepAlive",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/keepAlive"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"loadAuthorizationComponents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/loadAuthorizationComponents"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"setRoleWithGroupComplementaryObject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter setRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/authzResolver/setRole/g-co"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setRoleWithUserComplementaryObject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter setRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/authzResolver/setRole/u-co"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"unsetRoleWithGroupComplementaryObject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter unsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/authzResolver/unsetRole/g-co"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"unsetRoleWithUserComplementaryObject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter unsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/authzResolver/unsetRole/u-co"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}}]),e}()).\u0275fac=function(e){return new(e||G)(a.LFG(ee.eN),a.LFG(ne,8),a.LFG(ie,8))},G.\u0275prov=a.Yz7({token:G,factory:G.\u0275fac,providedIn:"root"}),G),oe=((Z=function(){function e(t,n,i){_classCallCheck(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new ee.WM,this.configuration=new ie,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new te}return _createClass(e,[{key:"addMember",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){r=r.append("groups[]",e)}),null!=t&&(r=r.set("member",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/addMember"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"addMembers",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),t&&t.forEach(function(e){r=r.append("members[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/addMembers"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"canExtendMembershipInGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("group",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/canExtendMembershipInGroup"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"createGroupUnion",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resultGroup",e)),null!=t&&(r=r.set("operandGroup",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/createGroupUnion"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"createGroupWithParentGroupNameDescription",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("parentGroup",e)),null!=t&&(a=a.set("name",t)),null!=n&&(a=a.set("description",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/createGroup/pg-n-d"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"createGroupWithVoNameDescription",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("vo",e)),null!=t&&(a=a.set("name",t)),null!=n&&(a=a.set("description",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/createGroup/v-n-d"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"deleteGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("force",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/deleteGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"deleteGroups",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputDeleteGroups was null or undefined when calling deleteGroups.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/groupsManager/deleteGroups"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"extendMembershipInGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("group",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/extendMembershipInGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"forceAllSubGroupsSynchronization",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"forceGroupStructureSynchronization",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/forceGroupStructureSynchronization"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"forceGroupSynchronization",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/forceGroupSynchronization"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllGroups",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllGroups"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllGroupsFromAllVos",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllGroups/all"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getAllMemberGroups",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllMemberGroups"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllRichGroups",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");var i=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("attrNames[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllRichGroups"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllRichGroupsWithAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllRichGroupsWithAttributesByNames"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getAllRichSubGroupsWithGroupAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllRichSubGroupsWithAttributesByNames"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getGroupById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getGroupById.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("name",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupByName"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getGroupMemberById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("member",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMemberById"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getGroupMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMembers"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupMembersCount",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMembersCount"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupMembersCountsByGroupStatus",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMembersCountsByGroupStatus"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupMembersCountsByVoStatus",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMembersCountsByVoStatus"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupRichMembersByIds",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("group",e)),t&&t.forEach(function(e){a=a.append("members[]",e)}),n&&n.forEach(function(e){a=a.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupRichMembersByIds"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getGroupUnions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("reverseDirection",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupUnions"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getGroupsByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");var i=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupsByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupsPage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputGetPaginatedGroups was null or undefined when calling getGroupsPage.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/groupsManager/getGroupsPage"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"getIndirectMembershipPaths",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("group",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getIndirectMembershipPaths"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getMemberGroups",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getMemberGroups"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getMemberRichGroupsWithAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getMemberRichGroupsWithAttributesByNames"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getRichGroupByIdWithAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("groupId",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getRichGroupByIdWithAttributesByNames"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getSubgroupsPage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/groupsManager/getSubgroupsPage"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"isGroupMember",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("group",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/isGroupMember"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"moveGroupWithDestinationGroupMovingGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");var r=new ee.LE({encoder:this.encoder});null!=t&&(r=r.set("destinationGroup",t)),null!=e&&(r=r.set("movingGroup",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/moveGroup/dg-mg"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeGroupUnion",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resultGroup",e)),null!=t&&(r=r.set("operandGroup",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/removeGroupUnion"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeMember",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){r=r.append("groups[]",e)}),null!=t&&(r=r.set("member",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/removeMember"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeMembers",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),t&&t.forEach(function(e){r=r.append("members[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/removeMembers"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"setGroupsMemberStatus",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("group",t)),null!=n&&(a=a.set("status",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/setGroupsMemberStatus"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"updateGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateGroup was null or undefined when calling updateGroup.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/groupsManager/updateGroup"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}}]),e}()).\u0275fac=function(e){return new(e||Z)(a.LFG(ee.eN),a.LFG(ne,8),a.LFG(ie,8))},Z.\u0275prov=a.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"root"}),Z),se=((K=function(){function e(t,n,i){_classCallCheck(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new ee.WM,this.configuration=new ie,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new te}return _createClass(e,[{key:"canExtendMembership",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/canExtendMembership"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"createMemberForCandidate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createMember/c"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"createMemberForUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateMemberForUser was null or undefined when calling createMemberForUser.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createMember/u"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"createMemberFromExtSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createMember/extSource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"createSpecificMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSpecificMember was null or undefined when calling createSpecificMember.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createSpecificMember"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"createSponsoredMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createSponsoredMember/withFullName"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"createSponsoredMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateSponsoredMember1 was null or undefined when calling createSponsoredMembers.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createSponsoredMembers"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"createSponsoredMembersFromCSV",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createSponsoredMembersFromCSV"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"deleteMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling deleteMember.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/deleteMember"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"deleteMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");var i=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("members[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/deleteMembers"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"extendMembership",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling extendMembership.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/extendMembership"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"findCompleteRichMembersByAttributes",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var a=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){a=a.append("attrsNames[]",e)}),null!=t&&(a=a.set("searchString",t)),n&&n.forEach(function(e){a=a.append("allowedStatuses[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findCompleteRichMembers/attrs"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"findCompleteRichMembersForGroup",value:function(e,t,n,i,r,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];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==n)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==i)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");var c=new ee.LE({encoder:this.encoder});null!=e&&(c=c.set("group",e)),t&&t.forEach(function(e){c=c.append("attrsNames[]",e)}),r&&r.forEach(function(e){c=c.append("allowedStatuses[]",e)}),a&&a.forEach(function(e){c=c.append("allowedGroupStatuses[]",e)}),null!=n&&(c=c.set("searchString",n)),null!=i&&(c=c.set("lookingInParentGroup",i));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findCompleteRichMembers/g"),{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:s})}},{key:"findCompleteRichMembersForVo",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("vo",e)),t&&t.forEach(function(e){o=o.append("attrsNames[]",e)}),i&&i.forEach(function(e){o=o.append("allowedStatuses[]",e)}),null!=n&&(o=o.set("searchString",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findCompleteRichMembers/v"),{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"findMembersInVo",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("searchString",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findMembersInVo"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"findSponsoredCompleteRichMembersForVo",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("vo",e)),t&&t.forEach(function(e){o=o.append("attrsNames[]",e)}),null!=n&&(o=o.set("searchString",n)),null!=i&&(o=o.set("onlySponsored",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findCompleteRichMembers/v-sponsored"),{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getAllMembers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getAllMembers"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getAllNamespacesRules",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getAllNamespacesRules"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getAllSponsoredMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getAllSponsoredMembers"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllSponsoredMembersAndTheirSponsors",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getAllSponsoredMembersAndTheirSponsors"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getCompleteRichMembersForGroup",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",o=arguments.length>6&&void 0!==arguments[6]&&arguments[6];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.");var s=new ee.LE({encoder:this.encoder});null!=e&&(s=s.set("group",e)),n&&n.forEach(function(e){s=s.append("allowedStatuses[]",e)}),i&&i.forEach(function(e){s=s.append("allowedGroupStatuses[]",e)}),null!=t&&(s=s.set("lookingInParentGroup",t)),r&&r.forEach(function(e){s=s.append("attrsNames[]",e)});var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getCompleteRichMembers/g"),{params:s,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:o})}},{key:"getCompleteRichMembersForGroupResource",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==i)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("group",e)),null!=t&&(o=o.set("resource",t)),n&&n.forEach(function(e){o=o.append("attrsNames[]",e)}),i&&i.forEach(function(e){o=o.append("allowedStatuses[]",e)});var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getCompleteRichMembers/g-r"),{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getCompleteRichMembersForVo",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("vo",e)),t&&t.forEach(function(e){a=a.append("allowedStatuses[]",e)}),n&&n.forEach(function(e){a=a.append("attrsNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getCompleteRichMembers/v"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getMemberByExtSourceNameAndExtLogin",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("vo",e)),null!=t&&(a=a.set("extLogin",t)),null!=n&&(a=a.set("extSourceName",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMemberByExtSourceNameAndExtLogin"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getMemberById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getMemberById.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMemberById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getMemberByUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("user",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMemberByUser"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getMembers",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembers.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("status",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembers"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getMembersByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");var i=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembersByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getMembersByUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembersByUser"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getMembersCount",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembersCount"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getMembersPage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputGetPaginatedMembers was null or undefined when calling getMembersPage.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/getMembersPage"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"getMembersWithStatusCount",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("status",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembersCount/status"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getRichMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichMember.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getRichMember"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichMemberWithAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getRichMemberWithAttributes"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichMembersByIds",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");var r=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){r=r.append("ids[]",e)}),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getRichMembersByIds"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getSponsoredMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getSponsoredMembers/v"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getSponsoredMembersAndTheirSponsors",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getSponsoredMembersAndTheirSponsors"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getSponsorsByMember",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getSponsors/member"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getSponsorsByVo",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("vo",e)),null!=t&&(o=o.set("extSourceName",t)),null!=n&&(o=o.set("extLogin",n)),i&&i.forEach(function(e){o=o.append("attrNames[]",e)});var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getSponsors/vo"),{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"moveMembership",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("vo",e)),null!=t&&(a=a.set("sourceUser",t)),null!=n&&(a=a.set("targetUser",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/moveMembership"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"removeSponsor",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("sponsor",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/removeSponsor"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"sendAccountActivationLinkEmail",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==i)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("namespace",t)),null!=n&&(o=o.set("emailAttributeURN",n)),null!=i&&(o=o.set("language",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/sendAccountActivationLinkEmail"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"sendPasswordResetLinkEmail",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",o=arguments.length>6&&void 0!==arguments[6]&&arguments[6];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==n)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==i)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");var s=new ee.LE({encoder:this.encoder});null!=e&&(s=s.set("member",e)),null!=t&&(s=s.set("namespace",t)),null!=n&&(s=s.set("emailAttributeURN",n)),null!=i&&(s=s.set("language",i)),null!=r&&(s=s.set("baseUrl",r));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/sendPasswordResetLinkEmail"),null,{params:s,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:o})}},{key:"setSponsoredMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetSponsoredMember was null or undefined when calling setSponsoredMember.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/setSponsoredMember"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setSponsorshipForMember",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("sponsoredMember",e)),null!=t&&(a=a.set("sponsor",t)),null!=n&&(a=a.set("validityTo",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/setSponsorshipForMember"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"setStatus",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("status",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/setStatus"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"sponsorMember",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("sponsor",t)),null!=n&&(a=a.set("validityTo",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/sponsorMember"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"updateSponsorshipValidity",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("sponsor",t)),null!=n&&(a=a.set("validityTo",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/updateSponsorshipValidity"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"validateMemberAsync",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/validateMemberAsync"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}}]),e}()).\u0275fac=function(e){return new(e||K)(a.LFG(ee.eN),a.LFG(ne,8),a.LFG(ie,8))},K.\u0275prov=a.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"}),K),ce=((U=function(){function e(t,n,i){_classCallCheck(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new ee.WM,this.configuration=new ie,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new te}return _createClass(e,[{key:"sentMessageToRTWithMemberQueue",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("memberId",e)),null!=t&&(o=o.set("queue",t)),null!=n&&(o=o.set("subject",n)),null!=i&&(o=o.set("text",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"sentMessageToRTWithQueue",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("queue",e)),null!=t&&(a=a.set("subject",t)),null!=n&&(a=a.set("text",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/rtMessagesManager/sentMessageToRT/q"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"sentMessageToRTWithVo",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("voId",e)),null!=t&&(a=a.set("subject",t)),null!=n&&(a=a.set("text",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/rtMessagesManager/sentMessageToRT/v"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"sentMessageToRTWithVoQueue",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("voId",e)),null!=t&&(o=o.set("queue",t)),null!=n&&(o=o.set("subject",n)),null!=i&&(o=o.set("text",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}}]),e}()).\u0275fac=function(e){return new(e||U)(a.LFG(ee.eN),a.LFG(ne,8),a.LFG(ie,8))},U.\u0275prov=a.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U),ue=((W=function(){function e(t,n,i){_classCallCheck(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new ee.WM,this.configuration=new ie,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new te}return _createClass(e,[{key:"addApplicationMailForGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/addApplicationMail/g"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"addApplicationMailForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/addApplicationMail/v"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"addGroupsToAutoRegistration",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");var i=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("groups[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/addGroupsToAutoRegistration"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"approveApplication",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling approveApplication.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/approveApplication"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"checkForSimilarUsersWithAuthInfo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo"),null,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"consolidateIdentityUsingToken",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("token",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/consolidateIdentityUsingToken"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"copyFormFromGroupToGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("fromGroup",e)),null!=t&&(r=r.set("toGroup",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyForm/groupToGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"copyFormFromGroupToVo",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("fromGroup",e)),null!=t&&(r=r.set("toVo",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyForm/groupToVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"copyFormFromVoToGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("fromVo",e)),null!=t&&(r=r.set("toGroup",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyForm/voToGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"copyFormFromVoToVo",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("fromVo",e)),null!=t&&(r=r.set("toVo",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyForm/voToVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"copyMailsFromGroupToGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("fromGroup",e)),null!=t&&(r=r.set("toGroup",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyMails/groupToGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"copyMailsFromGroupToVo",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("fromGroup",e)),null!=t&&(r=r.set("toVo",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyMails/groupToVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"copyMailsFromVoToGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("fromVo",e)),null!=t&&(r=r.set("toGroup",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyMails/voToGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"copyMailsFromVoToVo",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("fromVo",e)),null!=t&&(r=r.set("toVo",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyMails/voToVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"createApplicationFormInGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/createApplicationForm/group"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"createApplicationFormInVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/createApplicationForm/vo"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"deleteApplication",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/deleteApplication"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"deleteApplicationMailForGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("id",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/deleteApplicationMail/g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"deleteApplicationMailForVo",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("id",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/deleteApplicationMail/v"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"deleteGroupsFromAutoRegistration",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");var i=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("groups[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getApplicationById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getApplicationDataById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationDataById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getApplicationMailsForGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationMails/g"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getApplicationMailsForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationMails/v"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getApplicationsForGroup",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("group",e)),t&&t.forEach(function(e){o=o.append("state[]",e)}),null!=n&&(o=o.set("dateFrom",n)),null!=i&&(o=o.set("dateTo",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationsForGroup"),{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getApplicationsForMember",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("group",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationsForMember"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getApplicationsForVo",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("vo",e)),t&&t.forEach(function(e){o=o.append("state[]",e)}),null!=n&&(o=o.set("dateFrom",n)),null!=i&&(o=o.set("dateTo",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationsForVo"),{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getConsolidatorToken",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getConsolidatorToken"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getFormItemsForGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getFormItems/group"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getFormItemsForGroupWithType",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("type",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getFormItems/group-type"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getFormItemsForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getFormItems/vo"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getFormItemsForVoWithType",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("type",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getFormItems/vo-type"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getGroupApplicationForm",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationForm/group"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupsToAutoRegistration",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getGroupsToAutoRegistration"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVoApplicationForm",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationForm/vo"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"rejectApplication",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("id",e)),null!=t&&(r=r.set("reason",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/rejectApplication"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"sendInvitation",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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.");var o=new ee.LE({encoder:this.encoder});null!=n&&(o=o.set("voId",n)),null!=i&&(o=o.set("name",i)),null!=e&&(o=o.set("email",e)),null!=t&&(o=o.set("language",t));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/sendInvitation"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"sendInvitationForGroup",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",o=arguments.length>6&&void 0!==arguments[6]&&arguments[6];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.");var s=new ee.LE({encoder:this.encoder});null!=n&&(s=s.set("voId",n)),null!=i&&(s=s.set("groupId",i)),null!=r&&(s=s.set("name",r)),null!=e&&(s=s.set("email",e)),null!=t&&(s=s.set("language",t));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/sendInvitation/g"),null,{params:s,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:o})}},{key:"sendInvitationGroupToExistingUser",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("userId",e)),null!=t&&(a=a.set("voId",t)),null!=n&&(a=a.set("groupId",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/sendInvitation/u-g"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"sendInvitationToExistingUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("userId",e)),null!=t&&(r=r.set("voId",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/sendInvitation/u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"sendMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSendMessage was null or undefined when calling sendMessage.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/sendMessage"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setSendingEnabled",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetSendingEnabled was null or undefined when calling setSendingEnabled.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/setSendingEnabled"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"submitApplication",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSubmitApplication was null or undefined when calling submitApplication.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/submitApplication"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateApplicationMail",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateApplicationMail"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateForm",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateForm was null or undefined when calling updateForm.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateForm"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateFormItemData",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputFormItemData was null or undefined when calling updateFormItemData.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateFormItemData"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateFormItemsData",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputFormItemData1 was null or undefined when calling updateFormItemsData.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateFormItemsData"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateFormItemsForGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateFormItems/group"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateFormItemsForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateFormItems/vo"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"verifyApplication",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/verifyApplication"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}}]),e}()).\u0275fac=function(e){return new(e||W)(a.LFG(ee.eN),a.LFG(ne,8),a.LFG(ie,8))},W.\u0275prov=a.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"}),W),le=((F=function(){function e(t,n,i){_classCallCheck(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new ee.WM,this.configuration=new ie,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new te}return _createClass(e,[{key:"activateGroupResourceAssignment",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("group",e)),null!=t&&(a=a.set("resource",t)),null!=n&&(a=a.set("async",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/activateGroupResourceAssignment"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"addAdminToGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("authorizedGroup",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/addAdmin/r-g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"addAdminToUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("user",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/addAdmin/r-u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"addResourceSelfServiceGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("group",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/addResourceSelfServiceGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"addResourceSelfServiceUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("user",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/addResourceSelfServiceUser"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"allowGroupsToResources",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var a=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){a=a.append("groups[]",e)}),t&&t.forEach(function(e){a=a.append("resources[]",e)}),null!=n&&(a=a.set("async",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/allowGroupsToResources"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"assignGroupToResource",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",o=arguments.length>6&&void 0!==arguments[6]&&arguments[6];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.");var s=new ee.LE({encoder:this.encoder});null!=e&&(s=s.set("group",e)),null!=t&&(s=s.set("resource",t)),null!=n&&(s=s.set("async",n)),null!=i&&(s=s.set("assignInactive",i)),null!=r&&(s=s.set("autoAssignSubgroups",r));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignGroupToResource"),null,{params:s,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:o})}},{key:"assignGroupToResources",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",o=arguments.length>6&&void 0!==arguments[6]&&arguments[6];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.");var s=new ee.LE({encoder:this.encoder});null!=e&&(s=s.set("group",e)),t&&t.forEach(function(e){s=s.append("resources[]",e)}),null!=n&&(s=s.set("async",n)),null!=i&&(s=s.set("assignInactive",i)),null!=r&&(s=s.set("autoAssignSubgroups",r));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignGroupToResources"),null,{params:s,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:o})}},{key:"assignGroupsToResource",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",o=arguments.length>6&&void 0!==arguments[6]&&arguments[6];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.");var s=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){s=s.append("groups[]",e)}),null!=t&&(s=s.set("resource",t)),null!=n&&(s=s.set("async",n)),null!=i&&(s=s.set("assignInactive",i)),null!=r&&(s=s.set("autoAssignSubgroups",r));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignGroupsToResource"),null,{params:s,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:o})}},{key:"assignResourceTagToResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/assignResourceTagToResource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"assignService",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("service",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignService"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"assignServices",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),t&&t.forEach(function(e){r=r.append("services[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignServices"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"assignServicesPackage",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("servicesPackage",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignServicesPackage"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"copyResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCopyResource was null or undefined when calling copyResource.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/copyResource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"createResource",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter name was null or undefined when calling createResource.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("vo",e)),null!=t&&(o=o.set("facility",t)),null!=n&&(o=o.set("name",n)),null!=i&&(o=o.set("description",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/createResource"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"createResourceTagWithResourceTag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/createResourceTag/resourceTag"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"createResourceTagWithTagName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("tagName",e)),null!=t&&(r=r.set("vo",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/createResourceTag/tagName"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"deactivateGroupResourceAssignment",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("resource",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"deleteAllResources",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/deleteAllResources"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"deleteAllResourcesTagsForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"deleteResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/deleteResource"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"deleteResourceTag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputDeleteResourceTag was null or undefined when calling deleteResourceTag.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/deleteResourceTag"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"getAdminGroups",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAdminGroups"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAdmins",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("onlyDirectAdmins",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAdmins"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getAllResourcesByResourceTag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/getAllResourcesByResourceTag"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"getAllResourcesTagsForResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllResourcesTagsForResource"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllResourcesTagsForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllResourcesTagsForVo"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllResourcesWhereUserIsAdmin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesWhereUserIsAdmin/all"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllowedMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllowedMembers"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllowedResources",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllowedResources"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllowedUsersOfResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllowedUsers"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedGroups",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("member",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedGroups"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getAssignedMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedMembers"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedMembersWithStatus",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedMembersWithStatus"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedResourcesWithGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedResources/g"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedResourcesWithMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedResources/m"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedResourcesWithStatus",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedResourcesWithStatus"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedRichMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedRichMembers"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedRichResourcesWithGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedRichResources/g"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedRichResourcesWithMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedRichResources/m"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedRichResourcesWithMemberService",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("service",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedRichResources/s-m"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getAssignedServicesToResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedServices"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getBansForMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getBansForMember"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getBansForResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getBansForResource"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getEnrichedResourceById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("id",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getEnrichedResourceById"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getEnrichedResourcesForFacility",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getEnrichedResourcesForFacility"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getEnrichedResourcesForVo",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getEnrichedResourcesForVo"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getFacility",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacility.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getFacility"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupAssignments",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getGroupAssignments"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getResourceAssignments",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourceAssignments"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getResourceBan",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("resource",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getBan"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getResourceBanById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("banId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getBanById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getResourceById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getResourceById.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourceById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getResourceByName",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("vo",e)),null!=t&&(a=a.set("facility",t)),null!=n&&(a=a.set("name",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourceByName"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getResources",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResources.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResources"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getResourcesByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");var i=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getResourcesCountForAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesCount/all"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getResourcesCountForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesCount/vo"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getResourcesFromVoWhereUserIsAdmin",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("user",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getResourcesWhereGroupIsAdmin",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("facility",e)),null!=t&&(a=a.set("vo",t)),null!=n&&(a=a.set("group",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesWhereUserIsAdmin/group"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getResourcesWhereUserIsAdmin",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("facility",e)),null!=t&&(a=a.set("vo",t)),null!=n&&(a=a.set("user",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesWhereUserIsAdmin"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getRichAdmins",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==i)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("resource",e)),t&&t.forEach(function(e){o=o.append("specificAttributes",e)}),null!=n&&(o=o.set("allUserAttributes",n)),null!=i&&(o=o.set("onlyDirectAdmins",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getRichAdmins"),{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getRichResourceById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getRichResourceById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichResources",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getRichResources"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichResourcesByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");var i=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getRichResourcesByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getVo.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getVo"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"removeAllResourceTagsFromResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"removeBanByMemberAndResource",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("resource",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeBan/member-resource-id"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeGroupAdminResource",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("authorizedGroup",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeAdmin/r-g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeGroupFromResource",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("resource",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeGroupFromResource"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeGroupFromResources",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),t&&t.forEach(function(e){r=r.append("resources[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeGroupFromResources"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeGroupsFromResource",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){r=r.append("groups[]",e)}),null!=t&&(r=r.set("resource",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeGroupsFromResource"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeResourceBanById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("banId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeBan/id"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"removeResourceSelfServiceGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("group",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeResourceSelfServiceUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("user",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeResourceSelfServiceUser"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeResourceTagFromResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/removeResourceTagFromResource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"removeService",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("service",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeService"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeServices",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),t&&t.forEach(function(e){r=r.append("services[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeServices"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeServicesPackage",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("servicesPackage",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeServicesPackage"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeUserAdminResource",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("user",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeAdmin/r-u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"setResourceBan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetBan was null or undefined when calling setResourceBan.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/setBan"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"unallowGroupsFromResources",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){r=r.append("groups[]",e)}),t&&t.forEach(function(e){r=r.append("resources[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/unallowGroupsFromResources"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"updateResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateResource was null or undefined when calling updateResource.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/updateResource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateResourceBan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateBan was null or undefined when calling updateResourceBan.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/updateBan"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateResourceTag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateResourceTag was null or undefined when calling updateResourceTag.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/updateResourceTag"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}}]),e}()).\u0275fac=function(e){return new(e||F)(a.LFG(ee.eN),a.LFG(ne,8),a.LFG(ie,8))},F.\u0275prov=a.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"}),F),he=((j=function(){function e(t,n,i){_classCallCheck(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new ee.WM,this.configuration=new ie,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new te}return _createClass(e,[{key:"addSpecificUserOwner",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("specificUser",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/addSpecificUserOwner"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"addUserExtSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter addUserExtSourceInput was null or undefined when calling addUserExtSource.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/usersManager/addUserExtSource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"anonymizeUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/anonymizeUser"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"changeNonAuthzPasswordByToken",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==e)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==t)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("token",e)),null!=t&&(a=a.set("password",t)),null!=n&&(a=a.set("lang",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/changeNonAuthzPassword/token"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"changePasswordForLogin",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",o=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==e)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==n)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");var s=new ee.LE({encoder:this.encoder});null!=e&&(s=s.set("login",e)),null!=t&&(s=s.set("namespace",t)),null!=n&&(s=s.set("newPassword",n)),null!=i&&(s=s.set("oldPassword",i)),null!=r&&(s=s.set("checkOldPassword",r));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/changePassword/login"),null,{params:s,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:o})}},{key:"changePasswordForUser",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",o=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==e)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==n)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");var s=new ee.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),null!=t&&(s=s.set("namespace",t)),null!=n&&(s=s.set("newPassword",n)),null!=i&&(s=s.set("oldPassword",i)),null!=r&&(s=s.set("checkOldPassword",r));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/changePassword/user"),null,{params:s,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:o})}},{key:"checkPasswordResetRequestByTokenIsValid",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("token",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/checkPasswordResetRequestIsValid/token"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"checkPasswordStrength",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("password",e)),null!=t&&(r=r.set("namespace",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/checkPasswordStrength"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"createAlternativePassword",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==e)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==t)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==n)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==i)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("user",e)),null!=t&&(o=o.set("description",t)),null!=n&&(o=o.set("loginNamespace",n)),null!=i&&(o=o.set("password",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/createAlternativePassword"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"createServiceUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateServiceUser was null or undefined when calling createServiceUser.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/usersManager/createServiceUser"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"deleteAlternativePassword",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("user",e)),null!=t&&(a=a.set("loginNamespace",t)),null!=n&&(a=a.set("passwordId",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/deleteAlternativePassword"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"deletePasswordForLogin",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("login",e)),null!=t&&(r=r.set("namespace",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/deletePassword/login"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"deletePasswordForUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("namespace",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/deletePassword/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"deleteUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("force",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/deleteUser"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"findRichUsers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("searchString",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/findRichUsers"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"findRichUsersWithAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("searchString",e)),t&&t.forEach(function(e){r=r.append("attrsNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/findRichUsersWithAttributes"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"findUsers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("searchString",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/findUsers"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"generateAccountForName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("namespace",e)),null!=t&&(r=r.set("name",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/generateAccount/name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getAllRichUsersWithAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("includedSpecificUsers",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getAllRichUsersWithAttributes"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedRichResourcesForUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getAssignedRichResources"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupsForFacilityWhereUserIsActive",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("facility",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getGroupsWhereUserIsActive/facility"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getGroupsForResourceWhereUserIsActive",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("resource",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getGroupsWhereUserIsActive/resource"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getGroupsInVoWhereUserIsAdmin",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("vo",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getGroupsWhereUserIsAdmin/u-v"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getGroupsWhereUserIsAdmin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getGroupsWhereUserIsAdmin/u"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getPendingPreferredEmailChanges",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getPendingPreferredEmailChanges"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichUserExtSources",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUserExtSources/u"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichUserWithAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUserWithAttributes"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichUsersByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");var i=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUsersByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichUsersWithAttributesByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");var i=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUsersWithAttributesByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichUsersWithoutVoWithAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("attrsNames[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUsersWithoutVoWithAttributes"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getSpecificUsersByUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getSpecificUsersByUser"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getSponsorsForMember",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getSponsorsForMember/member"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getSponsorsForMemberByVoAndLogin",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("vo",e)),null!=t&&(o=o.set("extSourceName",t)),null!=n&&(o=o.set("extLogin",n)),i&&i.forEach(function(e){o=o.append("attrNames[]",e)});var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getSponsorsForMember/vo"),{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getUserByExtSourceNameAndExtLogin",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("extLogin",e)),null!=t&&(r=r.set("extSourceName",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserByExtSourceNameAndExtLogin"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getUserById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getUserExtSourceById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("userExtSource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserExtSourceById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getUserExtSourceByUniqueAttributeValueAndAttributeId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("attributeId",e)),null!=t&&(r=r.set("attributeValue",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserExtSourceByUniqueAttributeValue/id"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getUserExtSourceByUniqueAttributeValueAndAttributeName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("attributeName",e)),null!=t&&(r=r.set("attributeValue",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserExtSourceByUniqueAttributeValue/name"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getUserExtSources",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserExtSources"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getUserExtSourcesByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");var i=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserExtSourcesByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getUsers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUsers"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getUsersByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");var i=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUsersByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getUsersBySpecificUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("specificUser",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUsersBySpecificUser"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getUsersPage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputGetPaginatedUsers was null or undefined when calling getUsersPage.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/usersManager/getUsersPage"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"getVosWhereUserIsAdmin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getVosWhereUserIsAdmin"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVosWhereUserIsMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getVosWhereUserIsMember"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"isLoginAvailable",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("loginNamespace",e)),null!=t&&(r=r.set("login",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/isLoginAvailable"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"loginExist",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("namespace",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/loginExist"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeSpecificUserOwner",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("specificUser",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/removeSpecificUserOwner"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeUserExtSource",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("user",e)),null!=t&&(a=a.set("userExtSource",t)),null!=n&&(a=a.set("force",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/removeUserExtSource"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"requestPreferredEmailChange",value:function(e,t,n,i,r,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];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.");var c=new ee.LE({encoder:this.encoder});null!=e&&(c=c.set("user",e)),null!=t&&(c=c.set("email",t)),null!=n&&(c=c.set("lang",n)),null!=i&&(c=c.set("linkPath",i)),null!=r&&(c=c.set("customUrl",r)),null!=a&&(c=c.set("idpFilter",a));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/requestPreferredEmailChange"),null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:s})}},{key:"reservePasswordForLogin",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==e)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==n)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("login",e)),null!=t&&(a=a.set("namespace",t)),null!=n&&(a=a.set("password",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/reservePassword/login"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"reservePasswordForUser",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==e)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==n)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("user",e)),null!=t&&(a=a.set("namespace",t)),null!=n&&(a=a.set("password",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/reservePassword/user"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"reserveRandomPassword",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("namespace",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/reserveRandomPassword"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"updateUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateUser was null or undefined when calling updateUser.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/usersManager/updateUser"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"validatePasswordForLogin",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("login",e)),null!=t&&(r=r.set("namespace",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/validatePassword/login"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"validatePasswordForUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("namespace",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/validatePassword/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"validatePreferredEmailChangeWithToken",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("token",e)),null!=t&&(r=r.set("u",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/validatePreferredEmailChange"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}}]),e}()).\u0275fac=function(e){return new(e||j)(a.LFG(ee.eN),a.LFG(ne,8),a.LFG(ie,8))},j.\u0275prov=a.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"}),j),de=((Y=function(){function e(t,n,i){_classCallCheck(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new ee.WM,this.configuration=new ie,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new te}return _createClass(e,[{key:"getAppsConfig",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getAppsConfig"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getGuiConfiguration",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getGuiConfiguration"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getPerunRPCVersion",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["text/plain"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getPerunStatistics",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getPerunStatistics"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getPerunStatus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getPerunStatus"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getPerunSystemTimeInMillis",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getPerunSystemTimeInMillis"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}}]),e}()).\u0275fac=function(e){return new(e||Y)(a.LFG(ee.eN),a.LFG(ne,8),a.LFG(ie,8))},Y.\u0275prov=a.Yz7({token:Y,factory:Y.\u0275fac,providedIn:"root"}),Y),fe=((H=function(){function e(t,n,i){_classCallCheck(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new ee.WM,this.configuration=new ie,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new te}return _createClass(e,[{key:"addSponsorRoleToGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("authorizedGroup",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/addSponsorRole/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"addSponsorRoleToUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("user",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/addSponsorRole/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"addVoAdminGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("authorizedGroup",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/addAdmin/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"addVoAdminUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("user",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/addAdmin/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"createVoWithName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("name",e)),null!=t&&(r=r.set("shortName",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/createVo/withName"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"createVoWithVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateVoWithVo was null or undefined when calling createVoWithVo.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/vosManager/createVo/withVo"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"deleteVo",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("force",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/deleteVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"findCandidates",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("id",e)),null!=t&&(a=a.set("searchString",t)),null!=n&&(a=a.set("maxNumOfResults",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/findCandidates"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"findCandidatesForGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("searchString",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/findCandidates/forGroup"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getAllVos",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getAllVos"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getCompleteCandidatesForGroup",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("group",e)),t&&t.forEach(function(e){a=a.append("attrNames[]",e)}),null!=n&&(a=a.set("searchString",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getCompleteCandidates/forGroup"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getCompleteCandidatesForVo",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("vo",e)),t&&t.forEach(function(e){a=a.append("attrNames[]",e)}),null!=n&&(a=a.set("searchString",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getCompleteCandidates/forVo"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getMyVos",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVos"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getRichAdminsForVo",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",o=arguments.length>6&&void 0!==arguments[6]&&arguments[6];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==n)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==i)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==r)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");var s=new ee.LE({encoder:this.encoder});null!=e&&(s=s.set("vo",e)),null!=t&&(s=s.set("role",t)),n&&n.forEach(function(e){s=s.append("specificAttributes",e)}),null!=i&&(s=s.set("allUserAttributes",i)),null!=r&&(s=s.set("onlyDirectAdmins",r));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getRichAdmins"),{params:s,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:o})}},{key:"getVoAdminGroups",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("role",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getAdminGroups"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getVoAdminUsers",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("vo",e)),null!=t&&(a=a.set("role",t)),null!=n&&(a=a.set("onlyDirectAdmins",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getAdmins"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getVoBanById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("banId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getBanById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVoBanForMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getBanForMember"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVoBansForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getBansForVo"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVoById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getVoById.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVoById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVoByShortName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("shortName",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVoByShortName"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVoMembersCountsByStatus",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVoMembersCountsByStatus"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVosByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");var i=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVosByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVosCount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVosCount"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"removeSponsorRoleFromGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("authorizedGroup",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeSponsorRole/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeSponsorRoleFromUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("user",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeSponsorRole/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeVoAdminGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("authorizedGroup",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeAdmin/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeVoAdminUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("user",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeAdmin/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeVoBan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("banId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeBan"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"removeVoBanForMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeBanForMember"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"setVoBan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetVoBan was null or undefined when calling setVoBan.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/vosManager/setBan"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateVo was null or undefined when calling updateVo.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/vosManager/updateVo"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}}]),e}()).\u0275fac=function(e){return new(e||H)(a.LFG(ee.eN),a.LFG(ne,8),a.LFG(ie,8))},H.\u0275prov=a.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H);!function(e){e.HiddenEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"},e.DisabledEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"}}(V||(V={})),function(e){e.FormatEnum={DOT:"DOT",TGF:"TGF"}}(J||(J={})),function(e){e.OwnerTypeEnum={NUMBER_0:0,NUMBER_1:1}}(Q||(Q={})),function(e){e.TypeEnum={Technical:"technical",Administrative:"administrative"}}($||($={}));var pe=function(e){return e.PERUNADMIN="PERUNADMIN",e.PERUNOBSERVER="PERUNOBSERVER",e.VOADMIN="VOADMIN",e.GROUPADMIN="GROUPADMIN",e.SELF="SELF",e.FACILITYADMIN="FACILITYADMIN",e.FACILITIYOBSERVER="FACILITYOBSERVER",e.RESOURCEADMIN="RESOURCEADMIN",e.RESOURCESELFSERVICE="RESOURCESELFSERVICE",e.REGISTRAR="REGISTRAR",e.ENGINE="ENGINE",e.RPC="RPC",e.NOTIFICATIONS="NOTIFICATIONS",e.SERVICEUSER="SERVICEUSER",e.SPONSOR="SPONSOR",e.VOOBSERVER="VOOBSERVER",e.TOPGROUPCREATOR="TOPGROUPCREATOR",e.SECURITYADMIN="SECURITYADMIN",e.CABINETADMIN="CABINETADMIN",e.UNKNOWNROLENAME="UNKNOWNROLENAME",e}({}),ge=function(){var e=function(){function e(t){_classCallCheck(this,e),this.authzSevice=t,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}return _createClass(e,[{key:"init",value:function(e){this.principal=e,this.initData(e)}},{key:"setPerunPolicies",value:function(e){this.perunPolicies=e}},{key:"getPerunPolicies",value:function(){return this.perunPolicies}},{key:"isAuthorized",value:function(e,t){if(null===this.principal.roles)return!1;var n,i=[],r=_createForOfIteratorHelper(this.fetchPolicyWithAllIncludedPolicies(e));try{for(r.s();!(n=r.n()).done;){var a=n.value;i=i.concat(a.perunRoles)}}catch(s){r.e(s)}finally{r.f()}var o=this.fetchAllRelatedObjects(t);return this.resolveAuthorization(i,o)}},{key:"resolveAuthorization",value:function(e,t){var n,i=_createForOfIteratorHelper(e);try{for(i.s();!(n=i.n()).done;){for(var r=n.value,a=!0,o=0,s=Object.keys(r);o=2&&(n=!0),function(i){return i.lift(new Ie(e,t,n))}}var Ie=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,e),this.accumulator=t,this.seed=n,this.hasSeed=i}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new qe(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),qe=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this,e)).accumulator=i,o._seed=r,o.hasSeed=a,o.index=0,o}return _createClass(n,[{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}},{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(i){this.destination.error(i)}this.seed=t,this.destination.next(t)}}]),n}(Pe.L),Be=n(7727),He=n(436),Ye=n(8402);function je(e){return function(t){return 0===e?(0,Le.c)():t.lift(new Fe(e))}}var Fe=function(){function e(t){if(_classCallCheck(this,e),this.total=t,this.total<0)throw new Ye.W}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new We(e,this.total))}}]),e}(),We=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).total=i,r.ring=new Array,r.count=0,r}return _createClass(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,i=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r2&&void 0!==arguments[2]?arguments[2]:"imperative",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _classCallCheck(this,n),(r=t.call(this,e,i)).navigationTrigger=a,r.restoredState=o,r}return _createClass(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(nt),rt=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a}return _createClass(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(nt),at=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).reason=r,a}return _createClass(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(nt),ot=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).error=r,a}return _createClass(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(nt),st=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o.state=a,o}return _createClass(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(nt),ct=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o.state=a,o}return _createClass(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(nt),ut=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o){var s;return _classCallCheck(this,n),(s=t.call(this,e,i)).urlAfterRedirects=r,s.state=a,s.shouldActivate=o,s}return _createClass(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(nt),lt=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o.state=a,o}return _createClass(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(nt),ht=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o.state=a,o}return _createClass(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(nt),dt=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),ft=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),pt=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),gt=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),mt=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),vt=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),_t=function(){function e(t,n,i){_classCallCheck(this,e),this.routerEvent=t,this.position=n,this.anchor=i}return _createClass(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),yt=function(){function e(t){_classCallCheck(this,e),this.params=t||{}}return _createClass(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function bt(e){return new yt(e)}function At(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function wt(e,t,n){var i=n.path.split("/");if(i.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||i.length0?e[e.length-1]:null}function Lt(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function St(e){return(0,a.CqO)(e)?e:(0,a.QGY)(e)?(0,ve.D)(Promise.resolve(e)):(0,_e.of)(e)}var Et={exact:function e(t,n,i){if(!qt(t.segments,n.segments))return!1;if(!Dt(t.segments,n.segments,i))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r],i))return!1}return!0},subset:xt},zt={exact:function(e,t){return kt(e,t)},subset:function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return Mt(e[n],t[n])})},ignored:function(){return!0}};function Ot(e,t,n){return Et[n.paths](e.root,t.root,n.matrixParams)&&zt[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function xt(e,t,n){return Rt(e,t,t.segments,n)}function Rt(e,t,n,i){if(e.segments.length>n.length){var r=e.segments.slice(0,n.length);return!!qt(r,n)&&!t.hasChildren()&&!!Dt(r,n,i)}if(e.segments.length===n.length){if(!qt(e.segments,n))return!1;if(!Dt(e.segments,n,i))return!1;for(var a in t.children){if(!e.children[a])return!1;if(!xt(e.children[a],t.children[a],i))return!1}return!0}var o=n.slice(0,e.segments.length),s=n.slice(e.segments.length);return!!qt(e.segments,o)&&!!Dt(e.segments,o,i)&&!!e.children.primary&&Rt(e.children.primary,t,s,i)}function Dt(e,t,n){return t.every(function(t,i){return zt[n](e[i].parameters,t.parameters)})}var Pt=function(){function e(t,n,i){_classCallCheck(this,e),this.root=t,this.queryParams=n,this.fragment=i}return _createClass(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=bt(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Yt.serialize(this)}}]),e}(),Nt=function(){function e(t,n){var i=this;_classCallCheck(this,e),this.segments=t,this.children=n,this.parent=null,Lt(n,function(e,t){return e.parent=i})}return _createClass(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return jt(this)}}]),e}(),It=function(){function e(t,n){_classCallCheck(this,e),this.path=t,this.parameters=n}return _createClass(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=bt(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return Xt(this)}}]),e}();function qt(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}var Bt=function e(){_classCallCheck(this,e)},Ht=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"parse",value:function(e){var t=new en(e);return new Pt(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){var t,n,i;return"/".concat(Ft(e.root,!0)).concat((n=e.queryParams,i=Object.keys(n).map(function(e){var t=n[e];return Array.isArray(t)?t.map(function(t){return"".concat(Ut(e),"=").concat(Ut(t))}).join("&"):"".concat(Ut(e),"=").concat(Ut(t))}).filter(function(e){return!!e}),i.length?"?".concat(i.join("&")):"")).concat("string"==typeof e.fragment?"#".concat((t=e.fragment,encodeURI(t))):"")}}]),e}(),Yt=new Ht;function jt(e){return e.segments.map(function(e){return Xt(e)}).join("/")}function Ft(e,t){if(!e.hasChildren())return jt(e);if(t){var n=e.children.primary?Ft(e.children.primary,!1):"",i=[];return Lt(e.children,function(e,t){"primary"!==t&&i.push("".concat(t,":").concat(Ft(e,!1)))}),i.length>0?"".concat(n,"(").concat(i.join("//"),")"):n}var r=function(e,t){var n=[];return Lt(e.children,function(e,i){"primary"===i&&(n=n.concat(t(e,i)))}),Lt(e.children,function(e,i){"primary"!==i&&(n=n.concat(t(e,i)))}),n}(e,function(t,n){return"primary"===n?[Ft(e.children.primary,!1)]:["".concat(n,":").concat(Ft(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children.primary?"".concat(jt(e),"/").concat(r[0]):"".concat(jt(e),"/(").concat(r.join("//"),")")}function Wt(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ut(e){return Wt(e).replace(/%3B/gi,";")}function Kt(e){return Wt(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Zt(e){return decodeURIComponent(e)}function Gt(e){return Zt(e.replace(/\+/g,"%20"))}function Xt(e){return"".concat(Kt(e.path)).concat((t=e.parameters,Object.keys(t).map(function(e){return";".concat(Kt(e),"=").concat(Kt(t[e]))}).join("")));var t}var Vt=/^[^\/()?;=#]+/;function Jt(e){var t=e.match(Vt);return t?t[0]:""}var Qt=/^[^=?&#]+/,$t=/^[^?&#]+/,en=function(){function e(t){_classCallCheck(this,e),this.url=t,this.remaining=t}return _createClass(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Nt([],{}):new Nt([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new Nt(e,t)),n}},{key:"parseSegment",value:function(){var e=Jt(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new It(Zt(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=Jt(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=Jt(this.remaining);i&&(n=i,this.capture(n))}e[Zt(t)]=Zt(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(Qt);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=function(e){var t=e.match($t);return t?t[0]:""}(this.remaining);i&&(n=i,this.capture(n))}var r=Gt(t),a=Gt(n);if(e.hasOwnProperty(r)){var o=e[r];Array.isArray(o)||(o=[o],e[r]=o),o.push(a)}else e[r]=a}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Jt(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r="primary");var a=this.parseChildren();t[r]=1===Object.keys(a).length?a.primary:new Nt([],a),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),tn=function(){function e(t){_classCallCheck(this,e),this._root=t}return _createClass(e,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=nn(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=nn(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=rn(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})}},{key:"pathFromRoot",value:function(e){return rn(e,this._root).map(function(e){return e.value})}}]),e}();function nn(e,t){if(e===t.value)return t;var n,i=_createForOfIteratorHelper(t.children);try{for(i.s();!(n=i.n()).done;){var r=nn(e,n.value);if(r)return r}}catch(a){i.e(a)}finally{i.f()}return null}function rn(e,t){if(e===t.value)return[t];var n,i=_createForOfIteratorHelper(t.children);try{for(i.s();!(n=i.n()).done;){var r=rn(e,n.value);if(r.length)return r.unshift(t),r}}catch(a){i.e(a)}finally{i.f()}return[]}var an=function(){function e(t,n){_classCallCheck(this,e),this.value=t,this.children=n}return _createClass(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function on(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var sn=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).snapshot=i,fn(_assertThisInitialized(r),e),r}return _createClass(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(tn);function cn(e,t){var n=function(e,t){var n=new hn([],{},{},"",{},"primary",t,null,e.root,-1,{});return new dn("",new an(n,[]))}(e,t),i=new Ae([new It("",{})]),r=new Ae({}),a=new Ae({}),o=new Ae({}),s=new Ae(""),c=new un(i,r,o,s,a,"primary",t,n.root);return c.snapshot=n.root,new sn(new an(c,[]),n)}var un=function(){function e(t,n,i,r,a,o,s,c){_classCallCheck(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=a,this.outlet=o,this.component=s,this._futureSnapshot=c}return _createClass(e,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe((0,ze.U)(function(e){return bt(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ze.U)(function(e){return bt(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function ln(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,i=0;if("always"!==t)for(i=n.length-1;i>=1;){var r=n[i],a=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(a.component)break;i--}}return function(e){return e.reduce(function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(i))}var hn=function(){function e(t,n,i,r,a,o,s,c,u,l,h){_classCallCheck(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=a,this.outlet=o,this.component=s,this.routeConfig=c,this._urlSegment=u,this._lastPathIndex=l,this._resolve=h}return _createClass(e,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=bt(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=bt(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(e){return e.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}}]),e}(),dn=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,i)).url=e,fn(_assertThisInitialized(r),i),r}return _createClass(n,[{key:"toString",value:function(){return pn(this._root)}}]),n}(tn);function fn(e,t){t.value._routerState=e,t.children.forEach(function(t){return fn(e,t)})}function pn(e){var t=e.children.length>0?" { ".concat(e.children.map(pn).join(", ")," } "):"";return"".concat(e.value).concat(t)}function gn(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,kt(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),kt(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&yn(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find(bn);if(r&&r!==Tt(i))throw new Error("{outlets:{}} has to be the last command")}return _createClass(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),Mn=function e(t,n,i){_classCallCheck(this,e),this.segmentGroup=t,this.processChildren=n,this.index=i};function Cn(e,t,n){if(e||(e=new Nt([],{})),0===e.segments.length&&e.hasChildren())return Tn(e,t,n);var i=function(e,t,n){for(var i=0,r=t,a={match:!1,pathIndex:0,commandIndex:0};r=n.length)return a;var o=e.segments[r],s=n[i];if(bn(s))break;var c="".concat(s),u=i0&&void 0===c)break;if(c&&u&&"object"==typeof u&&void 0===u.outlets){if(!zn(c,u,o))return a;i+=2}else{if(!zn(c,{},o))return a;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0)?Object.assign({},Un):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var r=(t.matcher||wt)(n,e,t);if(!r)return Object.assign({},Un);var a={};Lt(r.posParams,function(e,t){a[t]=e.path});var o=r.consumed.length>0?Object.assign(Object.assign({},a),r.consumed[r.consumed.length-1].parameters):a;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function Zn(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&function(e,t,n){return n.some(function(n){return Gn(e,t,n)&&"primary"!==Fn(n)})}(e,n,i)){var a=new Nt(t,function(e,t,n,i){var r={};r.primary=i,i._sourceSegment=e,i._segmentIndexShift=t.length;var a,o=_createForOfIteratorHelper(n);try{for(o.s();!(a=o.n()).done;){var s=a.value;if(""===s.path&&"primary"!==Fn(s)){var c=new Nt([],{});c._sourceSegment=e,c._segmentIndexShift=t.length,r[Fn(s)]=c}}}catch(u){o.e(u)}finally{o.f()}return r}(e,t,i,new Nt(n,e.children)));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(function(n){return Gn(e,t,n)})}(e,n,i)){var o=new Nt(e.segments,function(e,t,n,i,r,a){var o,s={},c=_createForOfIteratorHelper(i);try{for(c.s();!(o=c.n()).done;){var u=o.value;if(Gn(e,n,u)&&!r[Fn(u)]){var l=new Nt([],{});l._sourceSegment=e,l._segmentIndexShift="legacy"===a?e.segments.length:t.length,s[Fn(u)]=l}}}catch(h){c.e(h)}finally{c.f()}return Object.assign(Object.assign({},r),s)}(e,t,n,i,e.children,r));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:n}}var s=new Nt(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function Gn(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function Xn(e,t,n,i){return!!(Fn(e)===i||"primary"!==i&&Gn(t,n,e))&&("**"===e.path||Kn(t,e,n).matched)}function Vn(e,t,n){return 0===t.length&&!e.children[n]}var Jn=function e(t){_classCallCheck(this,e),this.segmentGroup=t||null},Qn=function e(t){_classCallCheck(this,e),this.urlTree=t};function $n(e){return new ke.y(function(t){return t.error(new Jn(e))})}function ei(e){return new ke.y(function(t){return t.error(new Qn(e))})}function ti(e){return new ke.y(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var ni=function(){function e(t,n,i,r,o){_classCallCheck(this,e),this.configLoader=n,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(a.h0i)}return _createClass(e,[{key:"apply",value:function(){var e=this,t=Zn(this.urlTree.root,[],[],this.config).segmentGroup,n=new Nt(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,n,"primary").pipe((0,ze.U)(function(t){return e.createUrlTree(ii(t),e.urlTree.queryParams,e.urlTree.fragment)})).pipe((0,Be.K)(function(t){if(t instanceof Qn)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof Jn)throw e.noMatchError(t);throw t}))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,"primary").pipe((0,ze.U)(function(n){return t.createUrlTree(ii(n),e.queryParams,e.fragment)})).pipe((0,Be.K)(function(e){if(e instanceof Jn)throw t.noMatchError(e);throw e}))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,n){var i=e.segments.length>0?new Nt([],{primary:e}):e;return new Pt(i,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe((0,ze.U)(function(e){return new Nt([],e)})):this.expandSegment(e,n,t,n.segments,i,!0)}},{key:"expandChildren",value:function(e,t,n){for(var i=this,r=[],a=0,o=Object.keys(n.children);a=2;return function(i){return i.pipe(e?(0,me.h)(function(t,n){return e(t,n,i)}):Ze.y,je(1),n?(0,Ke.d)(t):(0,Ue.T)(function(){return new Me.K}))}}())}},{key:"expandSegment",value:function(e,t,n,i,r,a){var o=this;return(0,ve.D)(n).pipe((0,He.b)(function(s){return o.expandSegmentAgainstRoute(e,t,n,s,i,r,a).pipe((0,Be.K)(function(e){if(e instanceof Jn)return(0,_e.of)(null);throw e}))}),(0,Ge.P)(function(e){return!!e}),(0,Be.K)(function(e,n){if(e instanceof Me.K||"EmptyError"===e.name){if(Vn(t,i,r))return(0,_e.of)(new Nt([],{}));throw new Jn(t)}throw e}))}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,i,r,a,o){return Xn(i,t,r,a)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r,a):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,a):$n(t):$n(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,a){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,a):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,a)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,i){var r=this,a=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?ei(a):this.lineralizeSegments(n,a).pipe((0,Xe.zg)(function(n){var a=new Nt(n,{});return r.expandSegment(e,a,t,n,i,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,a){var o=this,s=Kn(t,i,r),c=s.matched,u=s.consumedSegments,l=s.lastChild,h=s.positionalParamSegments;if(!c)return $n(t);var d=this.applyRedirectCommands(u,i.redirectTo,h);return i.redirectTo.startsWith("/")?ei(d):this.lineralizeSegments(i,d).pipe((0,Xe.zg)(function(i){return o.expandSegment(e,t,n,i.concat(r.slice(l)),a,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,i,r){var a=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?(0,_e.of)(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe((0,ze.U)(function(e){return n._loadedConfig=e,new Nt(i,{})})):(0,_e.of)(new Nt(i,{}));var o=Kn(t,n,i),s=o.matched,c=o.consumedSegments,u=o.lastChild;if(!s)return $n(t);var l=i.slice(u);return this.getChildConfig(e,n,i).pipe((0,Xe.zg)(function(e){var i=e.module,o=e.routes,s=Zn(t,c,l,o),u=s.segmentGroup,h=s.slicedSegments,d=new Nt(u.segments,u.children);if(0===h.length&&d.hasChildren())return a.expandChildren(i,o,d).pipe((0,ze.U)(function(e){return new Nt(c,e)}));if(0===o.length&&0===h.length)return(0,_e.of)(new Nt(c,{}));var f=Fn(n)===r;return a.expandSegment(i,d,o,h,f?"primary":r,!0).pipe((0,ze.U)(function(e){return new Nt(c.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var i=this;return t.children?(0,_e.of)(new Rn(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?(0,_e.of)(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe((0,Xe.zg)(function(n){return n?i.configLoader.load(e.injector,t).pipe((0,ze.U)(function(e){return t._loadedConfig=e,e})):function(e){return new ke.y(function(t){return t.error(At("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(t)})):(0,_e.of)(new Rn([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var i=this,r=t.canLoad;if(!r||0===r.length)return(0,_e.of)(!0);var a=r.map(function(i){var r,a=e.get(i);if(function(e){return e&&Dn(e.canLoad)}(a))r=a.canLoad(t,n);else{if(!Dn(a))throw new Error("Invalid CanLoad guard");r=a(t,n)}return St(r)});return(0,_e.of)(a).pipe(In(),(0,Ve.b)(function(e){if(Pn(e)){var t=At('Redirecting to "'.concat(i.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),(0,ze.U)(function(e){return!0===e}))}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],i=t.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return(0,_e.of)(n);if(i.numberOfChildren>1||!i.children.primary)return ti(e.redirectTo);i=i.children.primary}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,i){var r=this.createSegmentGroup(e,t.root,n,i);return new Pt(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return Lt(e,function(e,i){if("string"==typeof e&&e.startsWith(":")){var r=e.substring(1);n[i]=t[r]}else n[i]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,i){var r=this,a=this.createSegments(e,t.segments,n,i),o={};return Lt(t.children,function(t,a){o[a]=r.createSegmentGroup(e,t,n,i)}),new Nt(a,o)}},{key:"createSegments",value:function(e,t,n,i){var r=this;return t.map(function(t){return t.path.startsWith(":")?r.findPosParam(e,t,i):r.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var i=n[t.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return i}},{key:"findOrReturn",value:function(e,t){var n,i=0,r=_createForOfIteratorHelper(t);try{for(r.s();!(n=r.n()).done;){var a=n.value;if(a.path===e.path)return t.splice(i),a;i++}}catch(o){r.e(o)}finally{r.f()}return e}}]),e}();function ii(e){for(var t={},n=0,i=Object.keys(e.children);n0||a.hasChildren())&&(t[r]=a)}return function(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new Nt(e.segments.concat(t.segments),t.children)}return e}(new Nt(e.segments,t))}var ri=function e(t){_classCallCheck(this,e),this.path=t,this.route=this.path[this.path.length-1]},ai=function e(t,n){_classCallCheck(this,e),this.component=t,this.route=n};function oi(e,t,n){var i=e._root;return ci(i,t?t._root:null,n,[i.value])}function si(e,t,n){var i=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function ci(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=on(t);return e.children.forEach(function(e){!function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=e.value,o=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(o&&a.routeConfig===o.routeConfig){var c=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!qt(e.url,t.url);case"pathParamsOrQueryParamsChange":return!qt(e.url,t.url)||!kt(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!mn(e,t)||!kt(e.queryParams,t.queryParams);case"paramsChange":default:return!mn(e,t)}}(o,a,a.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new ri(i)):(a.data=o.data,a._resolvedData=o._resolvedData),ci(e,t,a.component?s?s.children:null:n,i,r),c&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new ai(s.outlet.component,o))}else o&&ui(t,s,r),r.canActivateChecks.push(new ri(i)),ci(e,null,a.component?s?s.children:null:n,i,r)}(e,a[e.value.outlet],n,i.concat([e.value]),r),delete a[e.value.outlet]}),Lt(a,function(e,t){return ui(e,n.getContext(t),r)}),r}function ui(e,t,n){var i=on(e),r=e.value;Lt(i,function(e,i){ui(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new ai(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}var li=function e(){_classCallCheck(this,e)};function hi(e){return new ke.y(function(t){return t.error(e)})}var di=function(){function e(t,n,i,r,a,o){_classCallCheck(this,e),this.rootComponentType=t,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=o}return _createClass(e,[{key:"recognize",value:function(){var e=Zn(this.urlTree.root,[],[],this.config.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary");if(null===t)return null;var n=new hn([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new an(n,t),r=new dn(this.url,i);return this.inheritParamsAndData(r._root),r}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,i=ln(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){for(var n=[],i=0,r=Object.keys(t.children);i0?Tt(n).parameters:{};r=new hn(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,mi(e),Fn(e),e.component,e,pi(t),gi(t)+n.length,vi(e))}else{var c=Kn(t,e,n);if(!c.matched)return null;a=c.consumedSegments,o=n.slice(c.lastChild),r=new hn(a,c.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,mi(e),Fn(e),e.component,e,pi(t),gi(t)+a.length,vi(e))}var u=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),l=Zn(t,a,o,u.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution),h=l.segmentGroup,d=l.slicedSegments;if(0===d.length&&h.hasChildren()){var f=this.processChildren(u,h);return null===f?null:[new an(r,f)]}if(0===u.length&&0===d.length)return[new an(r,[])];var p=Fn(e)===i,g=this.processSegment(u,h,d,p?"primary":i);return null===g?null:[new an(r,g)]}}]),e}();function fi(e){var t,n=[],i=new Set,r=_createForOfIteratorHelper(e);try{var a=function(){var e,r=t.value;if(!function(e){var t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}(r))return n.push(r),"continue";var a=n.find(function(e){return r.value.routeConfig===e.value.routeConfig});void 0!==a?((e=a.children).push.apply(e,_toConsumableArray(r.children)),i.add(a)):n.push(r)};for(r.s();!(t=r.n()).done;)a()}catch(l){r.e(l)}finally{r.f()}var o,s=_createForOfIteratorHelper(i);try{for(s.s();!(o=s.n()).done;){var c=o.value,u=fi(c.children);n.push(new an(c.value,u))}}catch(l){s.e(l)}finally{s.f()}return n.filter(function(e){return!i.has(e)})}function pi(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function gi(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function mi(e){return e.data||{}}function vi(e){return e.resolve||{}}function _i(e){return(0,Oe.w)(function(t){var n=e(t);return n?(0,ve.D)(n).pipe((0,ze.U)(function(){return t})):(0,_e.of)(t)})}var yi=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}()),bi=new a.OlP("ROUTES"),Ai=function(){function e(t,n,i,r){_classCallCheck(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r}return _createClass(e,[{key:"load",value:function(e,t){var n=this;if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);var i=this.loadModuleFactory(t.loadChildren).pipe((0,ze.U)(function(i){n.onLoadEndListener&&n.onLoadEndListener(t);var r=i.create(e);return new Rn(Ct(r.injector.get(bi,void 0,a.XFs.Self|a.XFs.Optional)).map(jn),r)}),(0,Be.K)(function(e){throw t._loader$=void 0,e}));return t._loader$=new Ee.c(i,function(){return new ye.xQ}).pipe((0,Je.x)()),t._loader$}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?(0,ve.D)(this.loader.load(e)):St(e()).pipe((0,Xe.zg)(function(e){return e instanceof a.YKP?(0,_e.of)(e):(0,ve.D)(t.compiler.compileModuleAsync(e))}))}}]),e}(),wi=function e(){_classCallCheck(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new ki,this.attachRef=null},ki=function(){function e(){_classCallCheck(this,e),this.contexts=new Map}return _createClass(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new wi,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),Mi=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function Ci(e){throw e}function Ti(e,t,n){return t.parse("/")}function Li(e,t){return(0,_e.of)(null)}var Si={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ei={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},zi=function(){var e=function(){function e(t,n,i,r,o,s,c,u){var l=this;_classCallCheck(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=i,this.location=r,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new ye.xQ,this.errorHandler=Ci,this.malformedUriErrorHandler=Ti,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Li,afterPreactivation:Li},this.urlHandlingStrategy=new Mi,this.routeReuseStrategy=new yi,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(a.h0i),this.console=o.get(a.c2e);var h=o.get(a.R0b);this.isNgZoneEnabled=h instanceof a.R0b&&a.R0b.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=new Pt(new Nt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Ai(s,c,function(e){return l.triggerEvent(new dt(e))},function(e){return l.triggerEvent(new ft(e))}),this.routerState=cn(this.currentUrlTree,this.rootComponentType),this.transitions=new Ae({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()}return _createClass(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe((0,me.h)(function(e){return 0!==e.id}),(0,ze.U)(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),(0,Oe.w)(function(e){var i,r,a,o=!1,s=!1;return(0,_e.of)(e).pipe((0,Ve.b)(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,Oe.w)(function(e){var i,r,a,o,s=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return(0,_e.of)(e).pipe((0,Oe.w)(function(e){var i=t.transitions.getValue();return n.next(new it(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),i!==t.transitions.getValue()?Le.E:Promise.resolve(e)}),(i=t.ngModule.injector,r=t.configLoader,a=t.urlSerializer,o=t.config,(0,Oe.w)(function(e){return function(e,t,n,i,r){return new ni(e,t,n,i,r).apply()}(i,r,a,e.extractedUrl,o).pipe((0,ze.U)(function(t){return Object.assign(Object.assign({},e),{urlAfterRedirects:t})}))})),(0,Ve.b)(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,i,r,a){return(0,Xe.zg)(function(i){return function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var o=new di(e,t,n,i,r,a).recognize();return null===o?hi(new li):(0,_e.of)(o)}catch(s){return hi(s)}}(e,n,i.urlAfterRedirects,(o=i.urlAfterRedirects,t.serializeUrl(o)),r,a).pipe((0,ze.U)(function(e){return Object.assign(Object.assign({},i),{targetSnapshot:e})}));var o})}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),(0,Ve.b)(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,e),t.browserUrlTree=e.urlAfterRedirects);var i=new st(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(i)}));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var c=e.id,u=e.extractedUrl,l=e.source,h=e.restoredState,d=e.extras,f=new it(c,t.serializeUrl(u),l,h);n.next(f);var p=cn(u,t.rootComponentType).snapshot;return(0,_e.of)(Object.assign(Object.assign({},e),{targetSnapshot:p,urlAfterRedirects:u,extras:Object.assign(Object.assign({},d),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),Le.E}),_i(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,a=e.rawUrl,o=e.extras,s=o.skipLocationChange,c=o.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:a,skipLocationChange:!!s,replaceUrl:!!c})}),(0,Ve.b)(function(e){var n=new ct(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),(0,ze.U)(function(e){return Object.assign(Object.assign({},e),{guards:oi(e.targetSnapshot,e.currentSnapshot,t.rootContexts)})}),function(e,t){return(0,Xe.zg)(function(n){var i=n.targetSnapshot,r=n.currentSnapshot,a=n.guards,o=a.canActivateChecks,s=a.canDeactivateChecks;return 0===s.length&&0===o.length?(0,_e.of)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return(0,ve.D)(e).pipe((0,Xe.zg)(function(e){return function(e,t,n,i,r){var a=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!a||0===a.length)return(0,_e.of)(!0);var o=a.map(function(a){var o,s=si(a,t,r);if(function(e){return e&&Dn(e.canDeactivate)}(s))o=St(s.canDeactivate(e,t,n,i));else{if(!Dn(s))throw new Error("Invalid CanDeactivate guard");o=St(s(e,t,n,i))}return o.pipe((0,Ge.P)())});return(0,_e.of)(o).pipe(In())}(e.component,e.route,n,t,i)}),(0,Ge.P)(function(e){return!0!==e},!0))}(s,i,r,e).pipe((0,Xe.zg)(function(n){return n&&"boolean"==typeof n?function(e,t,n,i){return(0,ve.D)(t).pipe((0,He.b)(function(t){return Te(function(e,t){return null!==e&&t&&t(new pt(e)),(0,_e.of)(!0)}(t.route.parent,i),function(e,t){return null!==e&&t&&t(new mt(e)),(0,_e.of)(!0)}(t.route,i),function(e,t,n){var i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return Se(function(){var r=t.guards.map(function(r){var a,o=si(r,t.node,n);if(function(e){return e&&Dn(e.canActivateChild)}(o))a=St(o.canActivateChild(i,e));else{if(!Dn(o))throw new Error("Invalid CanActivateChild guard");a=St(o(i,e))}return a.pipe((0,Ge.P)())});return(0,_e.of)(r).pipe(In())})});return(0,_e.of)(r).pipe(In())}(e,t.path,n),function(e,t,n){var i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return(0,_e.of)(!0);var r=i.map(function(i){return Se(function(){var r,a=si(i,t,n);if(function(e){return e&&Dn(e.canActivate)}(a))r=St(a.canActivate(t,e));else{if(!Dn(a))throw new Error("Invalid CanActivate guard");r=St(a(t,e))}return r.pipe((0,Ge.P)())})});return(0,_e.of)(r).pipe(In())}(e,t.route,n))}),(0,Ge.P)(function(e){return!0!==e},!0))}(i,o,e,t):(0,_e.of)(n)}),(0,ze.U)(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))})}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),(0,Ve.b)(function(e){if(Pn(e.guardsResult)){var n=At('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}var i=new ut(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(i)}),(0,me.h)(function(e){return!!e.guardsResult||(t.cancelNavigationTransition(e,""),!1)}),_i(function(e){if(e.guards.canActivateChecks.length)return(0,_e.of)(e).pipe((0,Ve.b)(function(e){var n=new lt(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),(0,Oe.w)(function(e){var n,i,r=!1;return(0,_e.of)(e).pipe((n=t.paramsInheritanceStrategy,i=t.ngModule.injector,(0,Xe.zg)(function(e){var t=e.targetSnapshot,r=e.guards.canActivateChecks;if(!r.length)return(0,_e.of)(e);var a=0;return(0,ve.D)(r).pipe((0,He.b)(function(e){return function(e,t,n,i){return function(e,t,n,i){var r=Object.keys(e);if(0===r.length)return(0,_e.of)({});var a={};return(0,ve.D)(r).pipe((0,Xe.zg)(function(r){return function(e,t,n,i){var r=si(e,t,i);return St(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe((0,Ve.b)(function(e){a[r]=e}))}),je(1),(0,Xe.zg)(function(){return Object.keys(a).length===r.length?(0,_e.of)(a):Le.E}))}(e._resolve,e,t,i).pipe((0,ze.U)(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),ln(e,n).resolve),null}))}(e.route,t,n,i)}),(0,Ve.b)(function(){return a++}),je(1),(0,Xe.zg)(function(t){return a===r.length?(0,_e.of)(e):Le.E}))})),(0,Ve.b)({next:function(){return r=!0},complete:function(){r||t.cancelNavigationTransition(e,"At least one route resolver didn't emit any value.")}}))}),(0,Ve.b)(function(e){var n=new ht(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),_i(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,a=e.rawUrl,o=e.extras,s=o.skipLocationChange,c=o.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:a,skipLocationChange:!!s,replaceUrl:!!c})}),(0,ze.U)(function(e){var n=function(e,t,n){var i=vn(e,t._root,n?n._root:void 0);return new sn(i,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})}),(0,Ve.b)(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,e),t.browserUrlTree=e.urlAfterRedirects)}),(i=t.rootContexts,r=t.routeReuseStrategy,a=function(e){return t.triggerEvent(e)},(0,ze.U)(function(e){return new On(r,e.targetRouterState,e.currentRouterState,a).activate(i),e})),(0,Ve.b)({next:function(){o=!0},complete:function(){o=!0}}),$e(function(){o||s||t.cancelNavigationTransition(e,"Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId)),t.currentNavigation=null}),(0,Be.K)(function(i){if(s=!0,(c=i)&&c.ngNavigationCancelingError){var r=Pn(i.url);r||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var a=new at(e.id,t.serializeUrl(e.extractedUrl),i.message);n.next(a),r?setTimeout(function(){var n=t.urlHandlingStrategy.merge(i.url,t.rawUrlTree);t.scheduleNavigation(n,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var o=new ot(e.id,t.serializeUrl(e.extractedUrl),i);n.next(o);try{e.resolve(t.errorHandler(i))}catch(u){e.reject(u)}}var c;return Le.E}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,i=n.state,r=n.urlTree,a={replaceUrl:!0};if(i){var o=Object.assign({},i);delete o.navigationId,delete o.\u0275routerPageId,0!==Object.keys(o).length&&(a.state=o)}e.scheduleNavigation(r,t,i,a)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){Bn(e),this.config=e.map(jn),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,i=t.queryParams,r=t.fragment,a=t.queryParamsHandling,o=t.preserveFragment,s=n||this.routerState.root,c=o?this.currentUrlTree.fragment:r,u=null;switch(a){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}return null!==u&&(u=this.removeEmptyProps(u)),function(e,t,n,i,r){if(0===n.length)return An(t.root,t.root,t,i,r);var a=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new kn(!0,0,e);var t=0,n=!1,i=e.reduce(function(e,i,r){if("object"==typeof i&&null!=i){if(i.outlets){var a={};return Lt(i.outlets,function(e,t){a[t]="string"==typeof e?e.split("/"):e}),[].concat(_toConsumableArray(e),[{outlets:a}])}if(i.segmentPath)return[].concat(_toConsumableArray(e),[i.segmentPath])}return"string"!=typeof i?[].concat(_toConsumableArray(e),[i]):0===r?(i.split("/").forEach(function(i,r){0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))}),e):[].concat(_toConsumableArray(e),[i])},[]);return new kn(n,t,i)}(n);if(a.toRoot())return An(t.root,new Nt([],{}),t,i,r);var o=function(e,t,n){if(e.isAbsolute)return new Mn(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var i=n.snapshot._urlSegment;return new Mn(i,i===t.root,0)}var r=yn(e.commands[0])?0:1;return function(e,t,n){for(var i=e,r=t,a=n;a>r;){if(a-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new Mn(i,!1,r-a)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(a,t,e),s=o.processChildren?Tn(o.segmentGroup,o.index,a.commands):Cn(o.segmentGroup,o.index,a.commands);return An(o.segmentGroup,s,t,i,r)}(s,this.currentUrlTree,e,u,null!=c?c:null)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=Pn(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree),r=null;return"computed"===this.canceledNavigationResolution&&(0===this.currentPageId||t.skipLocationChange||t.replaceUrl)&&(r=this.location.getState()),this.scheduleNavigation(i,"imperative",r,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,e),this.router=t,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return _createClass(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof it?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof rt&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof _t&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new _t(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(zi),a.LFG(r.EM),a.LFG(void 0))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}(),Yi=new a.OlP("ROUTER_CONFIGURATION"),ji=new a.OlP("ROUTER_FORROOT_GUARD"),Fi=[r.Ye,{provide:Bt,useClass:Ht},{provide:zi,useFactory:function(e,t,n,i,r,a,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},c=arguments.length>8?arguments[8]:void 0,u=arguments.length>9?arguments[9]:void 0,l=new zi(null,e,t,n,i,r,a,Ct(o));return c&&(l.urlHandlingStrategy=c),u&&(l.routeReuseStrategy=u),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(s,l),s.enableTracing&&l.events.subscribe(function(e){var t,n;null===(t=console.group)||void 0===t||t.call(console,"Router Event: ".concat(e.constructor.name)),console.log(e.toString()),console.log(e),null===(n=console.groupEnd)||void 0===n||n.call(console)}),l},deps:[Bt,ki,r.Ye,a.zs3,a.v3s,a.Sil,bi,Yi,[function(){return function e(){_classCallCheck(this,e)}}(),new a.FiY],[function(){return function e(){_classCallCheck(this,e)}}(),new a.FiY]]},ki,{provide:un,useFactory:function(e){return e.routerState.root},deps:[zi]},{provide:a.v3s,useClass:a.EAV},Bi,qi,Ii,{provide:Yi,useValue:{enableTracing:!1}}];function Wi(){return new a.PXZ("Router",zi)}var Ui,Ki=((Ui=function(){function e(t,n){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[Fi,Vi(t),{provide:ji,useFactory:Xi,deps:[[zi,new a.FiY,new a.tp0]]},{provide:Yi,useValue:n||{}},{provide:r.S$,useFactory:Gi,deps:[r.lw,[new a.tBr(r.mr),new a.FiY],Yi]},{provide:Hi,useFactory:Zi,deps:[zi,r.EM,Yi]},{provide:Ni,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:qi},{provide:a.PXZ,multi:!0,useFactory:Wi},[Ji,{provide:a.ip1,multi:!0,useFactory:Qi,deps:[Ji]},{provide:er,useFactory:$i,deps:[Ji]},{provide:a.tb,multi:!0,useExisting:er}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[Vi(t)]}}}]),e}()).\u0275fac=function(e){return new(e||Ui)(a.LFG(ji,8),a.LFG(zi,8))},Ui.\u0275mod=a.oAB({type:Ui}),Ui.\u0275inj=a.cJS({}),Ui);function Zi(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Hi(e,t,n)}function Gi(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new r.Do(e,t):new r.b0(e,t)}function Xi(e){return"guarded"}function Vi(e){return[{provide:a.deG,multi:!0,useValue:e},{provide:bi,multi:!0,useValue:e}]}var Ji=function(){var e=function(){function e(t){_classCallCheck(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new ye.xQ}return _createClass(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(r.V_,Promise.resolve(null)).then(function(){var t=null,n=new Promise(function(e){return t=e}),i=e.injector.get(zi),r=e.injector.get(Yi);return"disabled"===r.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(i.hooks.afterPreactivation=function(){return e.initNavigation?(0,_e.of)(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},i.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(Yi),n=this.injector.get(Bi),i=this.injector.get(Hi),r=this.injector.get(zi),o=this.injector.get(a.z2F);e===o.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(a.zs3))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}();function Qi(e){return e.appInitializer.bind(e)}function $i(e){return e.bootstrapListener.bind(e)}var er=new a.OlP("Router Initializer"),tr=function(){var e=function(){function e(){_classCallCheck(this,e),this.branding=""}return _createClass(e,[{key:"setInstanceConfig",value:function(e){this.instanceConfig=e}},{key:"setDefaultConfig",value:function(e){this.defaultConfig=e}},{key:"getAppsConfig",value:function(){return this.appsConfig}},{key:"setAppsConfig",value:function(e){this.appsConfig=e}},{key:"setPerunPrincipal",value:function(e){this.principal=e}},{key:"getPerunPrincipal",value:function(){return this.principal}},{key:"getInitialPageId",value:function(){return this.initialPageId}},{key:"setInitialPageId",value:function(e){this.initialPageId=e}},{key:"getLoginAttributeNames",value:function(){return this.get("login_namespace_attributes")}},{key:"getMemberProfileAttributeNames",value:function(){return this.get("member_profile_attributes_friendly_names")}},{key:"setBanding",value:function(e){this.branding=e}},{key:"skipOidc",value:function(){return this.get("skip_oidc")}},{key:"get",value:function(){for(var e,t=arguments.length,n=new Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:0;return rr(e)?Number(e):t}function rr(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function ar(e){return Array.isArray(e)?e:[e]}function or(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function sr(e){return e instanceof a.SBq?e.nativeElement:e}var cr=n(8470),ur=n(5024);function lr(e,t,n,i){return(0,ur.m)(n)&&(i=n,n=void 0),i?lr(e,t,n).pipe((0,ze.U)(function(e){return(0,cr.k)(e)?i.apply(void 0,_toConsumableArray(e)):i(e)})):new ke.y(function(i){hr(e,t,function(e){i.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},i,n)})}function hr(e,t,n,i,r){var a;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var o=e;e.addEventListener(t,n,r),a=function(){return o.removeEventListener(t,n,r)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var s=e;e.on(t,n),a=function(){return s.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var c=e;e.addListener(t,n),a=function(){return c.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var u=0,l=e.length;u2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return _get(_getPrototypeOf(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}]),n}(dr.o),pr=n(1098),gr=new(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=br(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return _get(_getPrototypeOf(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(Ar(t),e.scheduled=void 0)}}]),n}(dr.o),kr=new(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i=0}function Dr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=-1;return Rr(t)?i=Number(t)<1?1:Number(t):(0,Re.K)(t)&&(n=t),(0,Re.K)(n)||(n=Sr.P),new ke.y(function(t){var r=Rr(e)?e:+e-n.now();return n.schedule(Pr,r,{index:0,period:i,subscriber:t})})}function Pr(e){var t=e.index,n=e.period,i=e.subscriber;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}function Nr(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Sr.P;return t=function(){return Dr(e,n)},function(e){return e.lift(new Or(t))}}function Ir(e){return function(t){return t.lift(new Br(e))}}var qr,Br=function(){function e(t){_classCallCheck(this,e),this.notifier=t}return _createClass(e,[{key:"call",value:function(e,t){var n=new Hr(e),i=(0,zr.D)(n,this.notifier);return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}]),e}(),Hr=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e)).seenValue=!1,i}return _createClass(n,[{key:"notifyNext",value:function(e,t,n,i,r){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(Er.L),Yr=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t>0?_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,t){return t>0||this.closed?_get(_getPrototypeOf(n.prototype),"execute",this).call(this,e,t):this._execute(e,t)}},{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0||null===i&&this.delay>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,e,t,i):e.flush(this)}}]),n}(dr.o),jr=new(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(pr.v))(Yr),Fr=n(3103),Wr=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return _classCallCheck(this,n),(r=t.call(this,e)).scheduler=i,r.delay=a,r}return _createClass(n,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(n.dispatch,this.delay,new Ur(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage(Fr.P.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage(Fr.P.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(Fr.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()}}]),n}(Pe.L),Ur=function e(t,n){_classCallCheck(this,e),this.notification=t,this.destination=n},Kr=n(9291),Zr=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,a=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,n),(e=t.call(this)).scheduler=a,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=i<1?1:i,e._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return _createClass(n,[{key:"nextInfiniteTimeWindow",value:function(e){var t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"nextTimeWindow",value:function(e){this._events.push(new Gr(this._getNow(),e)),this._trimBufferThenGetEvents(),_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"_subscribe",value:function(e){var t,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,a=i.length;if(this.closed)throw new be.N;if(this.isStopped||this.hasError?t=Qe.w.EMPTY:(this.observers.push(e),t=new Kr.W(this,e)),r&&e.add(e=new Wr(e,r)),n)for(var o=0;ot&&(a=Math.max(a,r-t)),a>0&&i.splice(0,a),i}}]),n}(ye.xQ),Gr=function e(t,n){_classCallCheck(this,e),this.time=t,this.value=n};function Xr(e,t,n){var i;return i=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},function(e){return e.lift(function(e){var t,n,i=e.bufferSize,r=void 0===i?Number.POSITIVE_INFINITY:i,a=e.windowTime,o=void 0===a?Number.POSITIVE_INFINITY:a,s=e.refCount,c=e.scheduler,u=0,l=!1,h=!1;return function(e){u++,t&&!l||(l=!1,t=new Zr(r,o,c),n=e.subscribe({next:function(e){t.next(e)},error:function(e){l=!0,t.error(e)},complete:function(){h=!0,n=void 0,t.complete()}}));var i=t.subscribe(this);this.add(function(){u--,i.unsubscribe(),n&&!h&&s&&0===u&&(n.unsubscribe(),n=void 0,t=void 0)})}}(i))}}try{qr="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(_E){qr=!1}var Vr,Jr,Qr,$r,ea,ta=function(){var e=function e(t){_classCallCheck(this,e),this._platformId=t,this.isBrowser=this._platformId?(0,r.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&&!qr)&&"undefined"!=typeof CSS&&!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 e.\u0275fac=function(t){return new(t||e)(a.LFG(a.Lbi))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(a.Lbi))},token:e,providedIn:"root"}),e}(),na=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({}),e}(),ia=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function ra(){if(Vr)return Vr;if("object"!=typeof document||!document)return Vr=new Set(ia);var e=document.createElement("input");return Vr=new Set(ia.filter(function(t){return e.setAttribute("type",t),e.type===t}))}function aa(e){return function(){if(null==Jr&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Jr=!0}}))}finally{Jr=Jr||!1}return Jr}()?e:!!e.capture}function oa(){if(null==$r){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return $r=!1;if("scrollBehavior"in document.documentElement.style)$r=!0;else{var e=Element.prototype.scrollTo;$r=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return $r}function sa(){if("object"!=typeof document||!document)return 0;if(null==Qr){var e=document.createElement("div"),t=e.style;e.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";var n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",e.appendChild(n),document.body.appendChild(e),Qr=0,0===e.scrollLeft&&(e.scrollLeft=1,Qr=0===e.scrollLeft?1:2),e.parentNode.removeChild(e)}return Qr}function ca(e){if(function(){if(null==ea){var e="undefined"!=typeof document?document.head:null;ea=!(!e||!e.createShadowRoot&&!e.attachShadow)}return ea}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function ua(){for(var e="undefined"!=typeof document&&document?document.activeElement:null;e&&e.shadowRoot;){var t=e.shadowRoot.activeElement;if(t===e)break;e=t}return e}var la=new a.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,a.f3M)(r.K0)}}),ha=function(){var e=function(){function e(t){if(_classCallCheck(this,e),this.value="ltr",this.change=new a.vpe,t){var n=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||n;this.value="ltr"===i||"rtl"===i?i:"ltr"}}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(la,8))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(la,8))},token:e,providedIn:"root"}),e}(),da=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({}),e}();function fa(e){return e&&"function"==typeof e.connect}var pa=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"applyChanges",value:function(e,t,n,i,r){e.forEachOperation(function(e,i,a){var o,s;if(null==e.previousIndex){var c=n(e,i,a);o=t.createEmbeddedView(c.templateRef,c.context,c.index),s=1}else null==a?(t.remove(i),s=3):(o=t.get(i),t.move(o,a),s=2);r&&r({context:null==o?void 0:o.context,operation:s,record:e})})}},{key:"detach",value:function(){}}]),e}(),ga=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];_classCallCheck(this,e),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new ye.xQ,i&&i.length&&(n?i.forEach(function(e){return t._markSelected(e)}):this._markSelected(i[0]),this._selectedToEmit.length=0)}return _createClass(e,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new ke.y(function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe(Nr(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):(0,_e.of)()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,n){return e.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,me.h)(function(e){return!e||n.indexOf(e)>-1}))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach(function(i,r){t._scrollableContainsElement(r,e)&&n.push(r)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=sr(t),i=e.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return lr(e._getWindow().document,"scroll").subscribe(function(){return e._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(a.R0b),a.LFG(ta),a.LFG(r.K0,8))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(a.R0b),a.LFG(ta),a.LFG(r.K0,8))},token:e,providedIn:"root"}),e}(),ya=function(){var e=function(){function e(t,n,i,r){var a=this;_classCallCheck(this,e),this.elementRef=t,this.scrollDispatcher=n,this.ngZone=i,this.dir=r,this._destroyed=new ye.xQ,this._elementScrolled=new ke.y(function(e){return a.ngZone.runOutsideAngular(function(){return lr(a.elementRef.nativeElement,"scroll").pipe(Ir(a._destroyed)).subscribe(e)})})}return _createClass(e,[{key:"ngOnInit",value:function(){this.scrollDispatcher.register(this)}},{key:"ngOnDestroy",value:function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}},{key:"elementScrolled",value:function(){return this._elementScrolled}},{key:"getElementRef",value:function(){return this.elementRef}},{key:"scrollTo",value:function(e){var t=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=n?e.end:e.start),null==e.right&&(e.right=n?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),n&&0!=sa()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==sa()?e.left=e.right:1==sa()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}},{key:"_applyScrollToOptions",value:function(e){var t=this.elementRef.nativeElement;oa()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}},{key:"measureScrollOffset",value:function(e){var t=this.elementRef.nativeElement;if("top"==e)return t.scrollTop;if("bottom"==e)return t.scrollHeight-t.clientHeight-t.scrollTop;var n=this.dir&&"rtl"==this.dir.value;return"start"==e?e=n?"right":"left":"end"==e&&(e=n?"left":"right"),n&&2==sa()?"left"==e?t.scrollWidth-t.clientWidth-t.scrollLeft:t.scrollLeft:n&&1==sa()?"left"==e?t.scrollLeft+t.scrollWidth-t.clientWidth:-t.scrollLeft:"left"==e?t.scrollLeft:t.scrollWidth-t.clientWidth-t.scrollLeft}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(_a),a.Y36(a.R0b),a.Y36(ha,8))},e.\u0275dir=a.lG2({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),e}(),ba=function(){var e=function(){function e(t,n,i){var r=this;_classCallCheck(this,e),this._platform=t,this._change=new ye.xQ,this._changeListener=function(e){r._change.next(e)},this._document=i,n.runOutsideAngular(function(){if(t.isBrowser){var e=r._getWindow();e.addEventListener("resize",r._changeListener),e.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._updateViewportSize()})})}return _createClass(e,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,i=t.height;return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._document,t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe(Nr(e)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(ta),a.LFG(a.R0b),a.LFG(r.K0,8))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(ta),a.LFG(a.R0b),a.LFG(r.K0,8))},token:e,providedIn:"root"}),e}(),Aa=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({}),e}(),wa=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[da,na,Aa],da,Aa]}),e}(),ka=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"attach",value:function(e){return this._attachedHost=e,e.attach(this)}},{key:"detach",value:function(){var e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}}]),e}(),Ma=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this)).component=e,o.viewContainerRef=i,o.injector=r,o.componentFactoryResolver=a,o}return n}(ka),Ca=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this)).templateRef=e,a.viewContainerRef=i,a.context=r,a}return _createClass(n,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=t,_get(_getPrototypeOf(n.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,_get(_getPrototypeOf(n.prototype),"detach",this).call(this)}}]),n}(ka),Ta=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).element=e instanceof a.SBq?e.nativeElement:e,i}return n}(ka),La=function(){function e(){_classCallCheck(this,e),this._isDisposed=!1,this.attachDomPortal=null}return _createClass(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e instanceof Ma?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof Ca?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof Ta?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),Sa=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o){var s,c;return _classCallCheck(this,n),(c=t.call(this)).outletElement=e,c._componentFactoryResolver=i,c._appRef=r,c._defaultInjector=a,c.attachDomPortal=function(e){var t=e.element,i=c._document.createComment("dom-portal");t.parentNode.insertBefore(i,t),c.outletElement.appendChild(t),c._attachedPortal=e,_get((s=_assertThisInitialized(c),_getPrototypeOf(n.prototype)),"setDisposeFn",s).call(s,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},c._document=o,c}return _createClass(n,[{key:"attachComponentPortal",value:function(e){var t,n=this,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(function(){return t.destroy()})):(t=i.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn(function(){n._appRef.detachView(t.hostView),t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}},{key:"attachTemplatePortal",value:function(e){var t=this,n=e.viewContainerRef,i=n.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),i.detectChanges(),this.setDisposeFn(function(){var e=n.indexOf(i);-1!==e&&n.remove(e)}),this._attachedPortal=e,i}},{key:"dispose",value:function(){_get(_getPrototypeOf(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}]),n}(La),Ea=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o,s;return _classCallCheck(this,n),(s=t.call(this))._componentFactoryResolver=e,s._viewContainerRef=i,s._isInitialized=!1,s.attached=new a.vpe,s.attachDomPortal=function(e){var t=e.element,i=s._document.createComment("dom-portal");e.setAttachedHost(_assertThisInitialized(s)),t.parentNode.insertBefore(i,t),s._getRootNode().appendChild(t),s._attachedPortal=e,_get((o=_assertThisInitialized(s),_getPrototypeOf(n.prototype)),"setDisposeFn",o).call(o,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},s._document=r,s}return _createClass(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&_get(_getPrototypeOf(n.prototype),"detach",this).call(this),e&&_get(_getPrototypeOf(n.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r=t.createComponent(i,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),_get(_getPrototypeOf(n.prototype),"setDisposeFn",this).call(this,function(){return r.destroy()}),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return _get(_getPrototypeOf(n.prototype),"setDisposeFn",this).call(this,function(){return t._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}]),n}(La);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a._Vd),a.Y36(a.s_b),a.Y36(r.K0))},e.\u0275dir=a.lG2({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[a.qOj]}),e}(),za=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({}),e}(),Oa=n(1906),xa=function(){function e(t,n){_classCallCheck(this,e),this.predicate=t,this.inclusive=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Ra(e,this.predicate,this.inclusive))}}]),e}(),Ra=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e)).predicate=i,a.inclusive=r,a.index=0,a}return _createClass(n,[{key:"_next",value:function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(i){return void n.error(i)}this.nextOrComplete(e,t)}},{key:"nextOrComplete",value:function(e,t){var n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())}}]),n}(Pe.L);function Da(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;it.height||e.scrollWidth>t.width}}]),e}(),Ia=function(){function e(t,n,i,r){var a=this;_classCallCheck(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){a.disable(),a._overlayRef.hasAttached()&&a._ngZone.run(function(){return a._overlayRef.detach()})}}return _createClass(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),qa=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function Ba(e,t){return t.some(function(t){return e.bottomt.bottom||e.rightt.right})}function Ha(e,t){return t.some(function(t){return e.topt.bottom||e.leftt.right})}var Ya=function(){function e(t,n,i,r){_classCallCheck(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return _createClass(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),i=n.width,r=n.height;Ba(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),ja=function(){var e=function e(t,n,i,r){var a=this;_classCallCheck(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new qa},this.close=function(e){return new Ia(a._scrollDispatcher,a._ngZone,a._viewportRuler,e)},this.block=function(){return new Na(a._viewportRuler,a._document)},this.reposition=function(e){return new Ya(a._scrollDispatcher,a._viewportRuler,a._ngZone,e)},this._document=r};return e.\u0275fac=function(t){return new(t||e)(a.LFG(_a),a.LFG(ba),a.LFG(a.R0b),a.LFG(r.K0))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(_a),a.LFG(ba),a.LFG(a.R0b),a.LFG(r.K0))},token:e,providedIn:"root"}),e}(),Fa=function e(t){if(_classCallCheck(this,e),this.scrollStrategy=new qa,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,i=Object.keys(t);n-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(r.K0))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(r.K0))},token:e,providedIn:"root"}),e}(),Za=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e))._keydownListener=function(e){for(var t=i._attachedOverlays,n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}},i}return _createClass(n,[{key:"add",value:function(e){_get(_getPrototypeOf(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(Ka);return e.\u0275fac=function(t){return new(t||e)(a.LFG(r.K0))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(r.K0))},token:e,providedIn:"root"}),e}(),Ga=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e))._platform=i,r._cursorStyleIsSet=!1,r._clickListener=function(e){for(var t=e.composedPath?e.composedPath()[0]:e.target,n=r._attachedOverlays.slice(),i=n.length-1;i>-1;i--){var a=n[i];if(!(a._outsidePointerEvents.observers.length<1)&&a.hasAttached()){if(a.overlayElement.contains(t))break;a._outsidePointerEvents.next(e)}}},r}return _createClass(n,[{key:"add",value:function(e){if(_get(_getPrototypeOf(n.prototype),"add",this).call(this,e),!this._isAttached){var t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var e=this._document.body;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}}}]),n}(Ka);return e.\u0275fac=function(t){return new(t||e)(a.LFG(r.K0),a.LFG(ta))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(r.K0),a.LFG(ta))},token:e,providedIn:"root"}),e}(),Xa="undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha,Va=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._platform=n,this._document=t}return _createClass(e,[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){if(this._platform.isBrowser||Xa)for(var e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),t=0;tf&&(f=m,d=g)}}catch(v){p.e(v)}finally{p.f()}return this._isPushed=!1,void this._applyPosition(d.position,d.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&eo(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var i=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;n="start"==t.originX?i:r}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,n){var i,r;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,r="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+i,y:e.y+r}}},{key:"_getOverlayFit",value:function(e,t,n,i){var r=no(t),a=e.x,o=e.y,s=this._getOffset(i,"x"),c=this._getOffset(i,"y");s&&(a+=s),c&&(o+=c);var u=0-o,l=o+r.height-n.height,h=this._subtractOverflows(r.width,0-a,a+r.width-n.width),d=this._subtractOverflows(r.height,u,l),f=h*d;return{visibleArea:f,isCompletelyWithinViewport:r.width*r.height===f,fitsInViewportVertically:d===r.height,fitsInViewportHorizontally:h==r.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var i=n.bottom-t.y,r=n.right-t.x,a=to(this._overlayRef.getConfig().minHeight),o=to(this._overlayRef.getConfig().minWidth),s=e.fitsInViewportHorizontally||null!=o&&o<=r;return(e.fitsInViewportVertically||null!=a&&a<=i)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var i,r,a=no(t),o=this._viewportRect,s=Math.max(e.x+a.width-o.width,0),c=Math.max(e.y+a.height-o.height,0),u=Math.max(o.top-n.top-e.y,0),l=Math.max(o.left-n.left-e.x,0);return i=a.width<=o.width?l||-s:e.xh&&!this._isInitialRender&&!this._growAfterOpen&&(i=e.y-h/2)}if("end"===t.overlayX&&!u||"start"===t.overlayX&&u)s=c.width-e.x+this._viewportMargin,a=e.x-this._viewportMargin;else if("start"===t.overlayX&&!u||"end"===t.overlayX&&u)o=e.x,a=c.right-e.x;else{var d=Math.min(c.right-e.x+c.left,e.x),f=this._lastBoundingBoxSize.width;a=2*d,o=e.x-d,a>f&&!this._isInitialRender&&!this._growAfterOpen&&(o=e.x-f/2)}return{top:i,left:o,bottom:r,right:s,width:a,height:n}}},{key:"_setBoundingBoxStyles",value:function(e,t){var n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;i.height=or(n.height),i.top=or(n.top),i.bottom=or(n.bottom),i.width=or(n.width),i.left=or(n.left),i.right=or(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=or(r)),a&&(i.maxWidth=or(a))}this._lastBoundingBoxSize=n,eo(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){eo(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){eo(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(i){var o=this._viewportRuler.getViewportScrollPosition();eo(n,this._getExactOverlayY(t,e,o)),eo(n,this._getExactOverlayX(t,e,o))}else n.position="static";var s="",c=this._getOffset(t,"x"),u=this._getOffset(t,"y");c&&(s+="translateX(".concat(c,"px) ")),u&&(s+="translateY(".concat(u,"px)")),n.transform=s.trim(),a.maxHeight&&(i?n.maxHeight=or(a.maxHeight):r&&(n.maxHeight="")),a.maxWidth&&(i?n.maxWidth=or(a.maxWidth):r&&(n.maxWidth="")),eo(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var i={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var a=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=a,"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=or(r.y),i}},{key:"_getExactOverlayX",value:function(e,t,n){var i={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"===(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?i.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":i.left=or(r.x),i}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(e){return e.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:Ha(e,n),isOriginOutsideView:Ba(e,n),isOverlayClipped:Ha(t,n),isOverlayOutsideView:Ba(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,a=n.maxWidth,o=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||a&&"100%"!==a&&"100vw"!==a),c=!("100%"!==r&&"100vh"!==r||o&&"100%"!==o&&"100vh"!==o);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,s?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=c?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),ao=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r}return _createClass(e,[{key:"global",value:function(){return new ro}},{key:"connectedTo",value:function(e,t,n){return new io(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new $a(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(ba),a.LFG(r.K0),a.LFG(ta),a.LFG(Va))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(ba),a.LFG(r.K0),a.LFG(ta),a.LFG(Va))},token:e,providedIn:"root"}),e}(),oo=0,so=function(){var e=function(){function e(t,n,i,r,a,o,s,c,u,l,h){_classCallCheck(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=a,this._injector=o,this._ngZone=s,this._document=c,this._directionality=u,this._location=l,this._outsideClickDispatcher=h}return _createClass(e,[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),r=new Fa(e);return r.direction=r.direction||this._directionality.value,new Ja(i,t,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-"+oo++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(a.z2F)),new Sa(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(ja),a.LFG(Va),a.LFG(a._Vd),a.LFG(ao),a.LFG(Za),a.LFG(a.zs3),a.LFG(a.R0b),a.LFG(r.K0),a.LFG(ha),a.LFG(r.Ye),a.LFG(Ga))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}(),co=[{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"}],uo=new a.OlP("cdk-connected-overlay-scroll-strategy"),lo=function(){var e=function e(t){_classCallCheck(this,e),this.elementRef=t};return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq))},e.\u0275dir=a.lG2({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e}(),ho=function(){var e=function(){function e(t,n,i,r,o){_classCallCheck(this,e),this._overlay=t,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Qe.w.EMPTY,this._attachSubscription=Qe.w.EMPTY,this._detachSubscription=Qe.w.EMPTY,this._positionSubscription=Qe.w.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 Ca(n,i),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return _createClass(e,[{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=nr(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=nr(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=nr(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=nr(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=nr(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(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())}},{key:"_createOverlay",value:function(){var e=this;this.positions&&this.positions.length||(this.positions=co);var t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(function(){return e.attach.emit()}),this._detachSubscription=t.detachments().subscribe(function(){return e.detach.emit()}),t.keydownEvents().subscribe(function(t){e.overlayKeydown.next(t),27!==t.keyCode||e.disableClose||Da(t)||(t.preventDefault(),e._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(t){e.overlayOutsideClick.next(t)})}},{key:"_buildConfig",value:function(){var e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new Fa({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}},{key:"_updatePositionStrategy",value:function(e){var t=this,n=this.positions.map(function(e){return{originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||t.offsetX,offsetY:e.offsetY||t.offsetY,panelClass:e.panelClass||void 0}});return e.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}},{key:"_attachOverlay",value:function(){var e=this;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(function(t){e.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new xa(e,t))}}(function(){return e.positionChange.observers.length>0})).subscribe(function(t){e.positionChange.emit(t),0===e.positionChange.observers.length&&e._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(so),a.Y36(a.Rgc),a.Y36(a.s_b),a.Y36(uo),a.Y36(ha,8))},e.\u0275dir=a.lG2({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[a.TTD]}),e}(),fo={provide:uo,deps:[so],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},po=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[so,fo],imports:[[da,za,wa],wa]}),e}(),go=n(7701),mo=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"create",value:function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=a.Yz7({factory:function(){return new e},token:e,providedIn:"root"}),e}(),vo=function(){var e=function(){function e(t){_classCallCheck(this,e),this._mutationObserverFactory=t,this._observedElements=new Map}return _createClass(e,[{key:"ngOnDestroy",value:function(){var e=this;this._observedElements.forEach(function(t,n){return e._cleanupObserver(n)})}},{key:"observe",value:function(e){var t=this,n=sr(e);return new ke.y(function(e){var i=t._observeElement(n).subscribe(e);return function(){i.unsubscribe(),t._unobserveElement(n)}})}},{key:"_observeElement",value:function(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{var t=new ye.xQ,n=this._mutationObserverFactory.create(function(e){return t.next(e)});n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream}},{key:"_unobserveElement",value:function(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}},{key:"_cleanupObserver",value:function(e){if(this._observedElements.has(e)){var t=this._observedElements.get(e),n=t.observer,i=t.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(e)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(mo))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(mo))},token:e,providedIn:"root"}),e}(),_o=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._contentObserver=t,this._elementRef=n,this._ngZone=i,this.event=new a.vpe,this._disabled=!1,this._currentSubscription=null}return _createClass(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=nr(e),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(e){this._debounce=ir(e),this._subscribe()}},{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var e=this;this._unsubscribe();var t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){e._currentSubscription=(e.debounce?t.pipe((0,go.b)(e.debounce)):t).subscribe(e.event)})}},{key:"_unsubscribe",value:function(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(vo),a.Y36(a.SBq),a.Y36(a.R0b))},e.\u0275dir=a.lG2({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),e}(),yo=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[mo]}),e}();function bo(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var Ao=0,wo=new Map,ko=null,Mo=function(){var e=function(){function e(t){_classCallCheck(this,e),this._document=t}return _createClass(e,[{key:"describe",value:function(e,t,n){if(this._canBeDescribed(e,t)){var i=Co(t,n);"string"!=typeof t?(To(t),wo.set(i,{messageElement:t,referenceCount:0})):wo.has(i)||this._createMessageElement(t,n),this._isElementDescribedByMessage(e,i)||this._addMessageReference(e,i)}}},{key:"removeDescription",value:function(e,t,n){if(t&&this._isElementNode(e)){var i=Co(t,n);if(this._isElementDescribedByMessage(e,i)&&this._removeMessageReference(e,i),"string"==typeof t){var r=wo.get(i);r&&0===r.referenceCount&&this._deleteMessageElement(i)}ko&&0===ko.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[cdk-describedby-host]"),t=0;t-1&&t!==n._activeItemIndex&&(n._activeItemIndex=t)}})}return _createClass(e,[{key:"skipPredicate",value:function(e){return this._skipPredicateFn=e,this}},{key:"withWrap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=e,this}},{key:"withVerticalOrientation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=e,this}},{key:"withHorizontalOrientation",value:function(e){return this._horizontal=e,this}},{key:"withAllowedModifierKeys",value:function(e){return this._allowedModifierKeys=e,this}},{key:"withTypeAhead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Ve.b)(function(t){return e._pressedLetters.push(t)}),(0,go.b)(t),(0,me.h)(function(){return e._pressedLetters.length>0}),(0,ze.U)(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._getItemsArray(),i=1;i0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=e,this}},{key:"setActiveItem",value:function(e){var t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(e){var t=this,n=e.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!e[n]||t._allowedModifierKeys.indexOf(n)>-1});switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||Da(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],e.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof a.n_E?this._items.toArray():this._items}}]),e}(),So=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"setActiveItem",value:function(e){this.activeItem&&this.activeItem.setInactiveStyles(),_get(_getPrototypeOf(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(Lo),Eo=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._origin="program",e}return _createClass(n,[{key:"setFocusOrigin",value:function(e){return this._origin=e,this}},{key:"setActiveItem",value:function(e){_get(_getPrototypeOf(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(Lo),zo=function(){var e=function(){function e(t){_classCallCheck(this,e),this._platform=t}return _createClass(e,[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t,n=function(e){try{return e.frameElement}catch(_E){return null}}((t=e).ownerDocument&&t.ownerDocument.defaultView||window);if(n){if(-1===xo(n))return!1;if(!this.isVisible(n))return!1}var i=e.nodeName.toLowerCase(),r=xo(e);return e.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===i?!!e.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}},{key:"isFocusable",value:function(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||Oo(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(ta))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(ta))},token:e,providedIn:"root"}),e}();function Oo(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function xo(e){if(!Oo(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var Ro=function(){function e(t,n,i,r){var a=this,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_classCallCheck(this,e),this._element=t,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return a.focusLastTabbableElement()},this.endAnchorListener=function(){return a.focusFirstTabbableElement()},this._enabled=!0,o||this.attachAnchors()}return _createClass(e,[{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.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)}},{key:"focusInitialElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusInitialElement(e))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusFirstTabbableElement(e))})})}},{key:"focusLastTabbableElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusLastTabbableElement(e))})})}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], [cdkFocusRegion").concat(e,"], [cdk-focus-").concat(e,"]")),n=0;n=0;n--){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe((0,xe.q)(1)).subscribe(e)}}]),e}(),Do=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._checker=t,this._ngZone=n,this._document=i}return _createClass(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Ro(e,this._checker,this._ngZone,this._document,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(zo),a.LFG(a.R0b),a.LFG(r.K0))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(zo),a.LFG(a.R0b),a.LFG(r.K0))},token:e,providedIn:"root"}),e}();"undefined"!=typeof Element&∈var Po=new a.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),No=new a.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Io=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=t||this._createLiveElement()}return _createClass(e,[{key:"announce",value:function(e){for(var t,n,i,r=this,a=this._defaultOptions,o=arguments.length,s=new Array(o>1?o-1:0),c=1;c1&&void 0!==arguments[1]&&arguments[1],n=sr(e);if(!this._platform.isBrowser||1!==n.nodeType)return(0,_e.of)(null);var i=ca(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;var a={checkChildren:t,subject:new ye.xQ,rootNode:i};return this._elementInfo.set(n,a),this._registerGlobalListeners(a),a.subject}},{key:"stopMonitoring",value:function(e){var t=sr(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(e,t,n){var i=this,r=sr(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(function(e){var n=_slicedToArray(e,2),r=n[0],a=n[1];return i._originChanged(r,t,a)}):(this._setOriginForCurrentEventQueue(t),"function"==typeof r.focus&&r.focus(n))}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach(function(t,n){return e.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,n){n?e.classList.add(t):e.classList.remove(t)}},{key:"_getFocusOrigin",value:function(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"}},{key:"_setClasses",value:function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}},{key:"_setOriginForCurrentEventQueue",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){t._origin=e,0===t._detectionMode&&(t._originTimeoutId=setTimeout(function(){return t._origin=null},1))})}},{key:"_wasCausedByTouch",value:function(e){var t=Fo(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t);n&&(n.checkChildren||t===Fo(e))&&this._originChanged(t,this._getFocusOrigin(e),n)}},{key:"_onBlur",value:function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run(function(){return e.next(t)})}},{key:"_registerGlobalListeners",value:function(e){var t=this;if(this._platform.isBrowser){var n=e.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,Yo),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,Yo)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(function(){var e=t._getDocument(),n=t._getWindow();e.addEventListener("keydown",t._documentKeydownListener,Yo),e.addEventListener("mousedown",t._documentMousedownListener,Yo),e.addEventListener("touchstart",t._documentTouchstartListener,Yo),n.addEventListener("focus",t._windowFocusListener)})}}},{key:"_removeGlobalListeners",value:function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Yo),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Yo),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){var i=this._getDocument(),r=this._getWindow();i.removeEventListener("keydown",this._documentKeydownListener,Yo),i.removeEventListener("mousedown",this._documentMousedownListener,Yo),i.removeEventListener("touchstart",this._documentTouchstartListener,Yo),r.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}},{key:"_originChanged",value:function(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}},{key:"_getClosestElementsInfo",value:function(e){var t=[];return this._elementInfo.forEach(function(n,i){(i===e||n.checkChildren&&i.contains(e))&&t.push([i,n])}),t}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(a.R0b),a.LFG(ta),a.LFG(r.K0,8),a.LFG(Ho,8))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(a.R0b),a.LFG(ta),a.LFG(r.K0,8),a.LFG(Ho,8))},token:e,providedIn:"root"}),e}();function Fo(e){return e.composedPath?e.composedPath()[0]:e.target}var Wo=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._platform=t,this._document=n}return _createClass(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove("cdk-high-contrast-active"),e.remove("cdk-high-contrast-black-on-white"),e.remove("cdk-high-contrast-white-on-black"),this._hasCheckedHighContrastMode=!0;var t=this.getHighContrastMode();1===t?(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-black-on-white")):2===t&&(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-white-on-black"))}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(ta),a.LFG(r.K0))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(ta),a.LFG(r.K0))},token:e,providedIn:"root"}),e}(),Uo=function(){var e=function e(t){_classCallCheck(this,e),t._applyBodyHighContrastModeCssClasses()};return e.\u0275fac=function(t){return new(t||e)(a.LFG(Wo))},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[na,yo]]}),e}(),Ko=new a.GfV("12.0.5"),Zo=function e(){_classCallCheck(this,e)};function Go(e,t){return{type:7,name:e,definitions:t,options:{}}}function Xo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function Vo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:e,options:t}}function Jo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function Qo(e){return{type:6,styles:e,offset:null}}function $o(e,t,n){return{type:0,name:e,styles:t,options:n}}function es(e){return{type:5,steps:e}}function ts(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function ns(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function is(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function rs(e){Promise.resolve(null).then(e)}var as=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;rs(function(){return e._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(e){this._position=this.totalTime?e*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),os=function(){function e(t){var n=this;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var i=0,r=0,a=0,o=this.players.length;0==o?rs(function(){return n._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++i==o&&n._onFinish()}),e.onDestroy(function(){++r==o&&n._onDestroy()}),e.onStart(function(){++a==o&&n._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})}},{key:"pause",value:function(){this.players.forEach(function(e){return e.pause()})}},{key:"restart",value:function(){this.players.forEach(function(e){return e.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}},{key:"getPosition",value:function(){var e=this.players.reduce(function(e,t){return null===e||t.totalTime>e.totalTime?t:e},null);return null!=e?e.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}();function ss(){return"undefined"!=typeof window&&void 0!==window.document}function cs(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function us(e){switch(e.length){case 0:return new as;case 1:return e[0];default:return new os(e)}}function ls(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=[],s=[],c=-1,u=null;if(i.forEach(function(e){var n=e.offset,i=n==c,l=i&&u||{};Object.keys(e).forEach(function(n){var i=n,s=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,o),s){case"!":s=r[n];break;case"*":s=a[n];break;default:s=t.normalizeStyleValue(n,i,s,o)}l[i]=s}),i||s.push(l),u=l,c=n}),o.length){var l="\n - ";throw new Error("Unable to animate due to the following errors:".concat(l).concat(o.join(l)))}return s}function hs(e,t,n,i){switch(t){case"start":e.onStart(function(){return i(n&&ds(n,"start",e))});break;case"done":e.onDone(function(){return i(n&&ds(n,"done",e))});break;case"destroy":e.onDestroy(function(){return i(n&&ds(n,"destroy",e))})}}function ds(e,t,n){var i=n.totalTime,r=fs(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),a=e._data;return null!=a&&(r._data=a),r}function fs(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:a,disabled:!!o}}function ps(e,t,n){var i;return e instanceof Map?(i=e.get(t))||e.set(t,i=n):(i=e[t])||(i=e[t]=n),i}function gs(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var ms=function(e,t){return!1},vs=function(e,t){return!1},_s=function(e,t,n){return[]},ys=cs();(ys||"undefined"!=typeof Element)&&(ms=ss()?function(e,t){for(;t&&t!==document.documentElement;){if(t===e)return!0;t=t.parentNode||t.host}return!1}:function(e,t){return e.contains(t)},vs=function(){if(ys||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:vs}(),_s=function(e,t,n){var i=[];if(n)for(var r=e.querySelectorAll(t),a=0;a1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function Rs(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var i in e)n[i]=e[i];else xs(e,n);return n}function Ds(e,t,n){return n?t+":"+n+";":""}function Ps(e){for(var t="",n=0;n *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}var r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var a=r[1],o=r[2],s=r[3];t.push(Js(a,s)),"<"!=o[0]||"*"==a&&"*"==s||t.push(Js(s,a))}(e,r,i)}):r.push(n),r),animation:a,queryCount:t.queryCount,depCount:t.depCount,options:ic(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return Zs(n,e,t)}),options:ic(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,i=t.currentTime,r=0,a=e.steps.map(function(e){t.currentTime=i;var a=Zs(n,e,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:3,steps:a,options:ic(e.options)}}},{key:"visitAnimate",value:function(e,t){var n,i=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return rc(Os(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var r=rc(0,0,"");return r.dynamic=!0,r.strValue=i,r}return rc((n=n||Os(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;var r=e.styles?e.styles:Qo({});if(5==r.type)n=this.visitKeyframes(r,t);else{var a=e.styles,o=!1;if(!a){o=!0;var s={};i.easing&&(s.easing=i.easing),a=Qo(s)}t.currentTime+=i.duration+i.delay;var c=this.visitStyle(a,t);c.isEmptyStep=o,n=c}return t.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?"*"==e?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)}):n.push(e.styles);var i=!1,r=null;return n.forEach(function(e){if(nc(e)){var t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(var a in t)if(t[a].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,i=t.currentAnimateTimings,r=t.currentTime,a=t.currentTime;i&&a>0&&(a-=i.duration+i.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(i){if(n._driver.validateStyleProperty(i)){var o,s,c,u,l,h=t.collectedStyles[t.currentQuerySelector],d=h[i],f=!0;d&&(a!=r&&a>=d.startTime&&r<=d.endTime&&(t.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(d.startTime,'ms" and "').concat(d.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(a,'ms" and "').concat(r,'ms"')),f=!1),a=d.startTime),f&&(h[i]={startTime:a,endTime:r}),t.options&&(o=e[i],s=t.options,c=t.errors,u=s.params||{},(l=Hs(o)).length&&l.forEach(function(e){u.hasOwnProperty(e)||c.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))}))}else t.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(e,t){var n=this,i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,a=[],o=!1,s=!1,c=0,u=e.steps.map(function(e){var i=n._makeStyleAst(e,t),u=null!=i.offset?i.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(nc(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(nc(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),l=0;return null!=u&&(r++,l=i.offset=u),s=s||l<0||l>1,o=o||l0&&r0?r==d?1:h*r:a[r],s=o*g;t.currentTime=f+p.delay+s,p.duration=s,n._validateStyleAst(e,t),e.offset=o,i.styles.push(e)}),i}},{key:"visitReference",value:function(e,t){return{type:8,animation:Zs(this,qs(e.animation),t),options:ic(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:ic(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:ic(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;var r=_slicedToArray(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(Qs,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,".ng-animating"),t]}(e.selector),2),a=r[0],o=r[1];t.currentQuerySelector=n.length?n+" "+a:a,ps(t.collectedStyles,t.currentQuerySelector,{});var s=Zs(this,qs(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:a,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:s,originalSelector:e.selector,options:ic(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:Os(e.timings,t.errors,!0);return{type:12,animation:Zs(this,qs(e.animation),t),timings:n,options:null}}}]),e}(),tc=function e(t){_classCallCheck(this,e),this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function nc(e){return!Array.isArray(e)&&"object"==typeof e}function ic(e){var t;return e?(e=xs(e)).params&&(e.params=(t=e.params)?xs(t):null):e={},e}function rc(e,t,n){return{duration:e,delay:t,easing:n}}function ac(e,t,n,i,r,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:a,totalTime:r+a,easing:o,subTimeline:s}}var oc=function(){function e(){_classCallCheck(this,e),this._map=new Map}return _createClass(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,i=this._map.get(e);i||this._map.set(e,i=[]),(n=i).push.apply(n,_toConsumableArray(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),sc=new RegExp(":enter","g"),cc=new RegExp(":leave","g");function uc(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,c=arguments.length>8?arguments[8]:void 0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new lc).buildKeyframes(e,t,n,i,r,a,o,s,c,u)}var lc=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"buildKeyframes",value:function(e,t,n,i,r,a,o,s,c){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];c=c||new oc;var l=new dc(e,t,c,i,r,u,[]);l.options=s,l.currentTimeline.setStyles([a],null,l.errors,s),Zs(this,n,l);var h=l.timelines.filter(function(e){return e.containsAnimation()});if(h.length&&Object.keys(o).length){var d=h[h.length-1];d.allowOnlyTimelineStyles()||d.setStyles([o],null,l.errors,s)}return h.length?h.map(function(e){return e.buildKeyframes()}):[ac(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,a=this._visitSubInstructions(n,i,i.options);r!=a&&t.transformIntoNewTimeline(a)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var i=t.currentTimeline.currentTime,r=null!=n.duration?Es(n.duration):null,a=null!=n.delay?Es(n.delay):null;return 0!==r&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,r,a);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),Zs(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,i=t.subContextCount,r=t,a=e.options;if(a&&(a.params||a.delay)&&((r=t.createSubContext(a)).transformIntoNewTimeline(),null!=a.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=hc);var o=Es(a.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(function(e){return Zs(n,e,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,i=[],r=t.currentTimeline.currentTime,a=e.options&&e.options.delay?Es(e.options.delay):0;e.steps.forEach(function(o){var s=t.createSubContext(e.options);a&&s.delayNextStep(a),Zs(n,o,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(r),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return Os(t.params?Ys(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());var r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,a=t.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(function(e){a.forwardTime((e.offset||0)*r),a.setStyles(e.styles,e.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(i+r),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,i=t.currentTimeline.currentTime,r=e.options||{},a=r.delay?Es(r.delay):0;a&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=hc);var o=i,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=s.length;var c=null;s.forEach(function(i,r){t.currentQueryIndex=r;var s=t.createSubContext(e.options,i);a&&s.delayNextStep(a),i===t.element&&(c=s.currentTimeline),Zs(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),c&&(t.currentTimeline.mergeTimelineCollectedStyles(c),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,i=t.currentTimeline,r=e.timings,a=Math.abs(r.duration),o=a*(t.currentQueryTotal-1),s=a*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=o-s;break;case"full":s=n.currentStaggerTime}var c=t.currentTimeline;s&&c.delayNextStep(s);var u=c.currentTime;Zs(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime)}}]),e}(),hc={},dc=function(){function e(t,n,i,r,a,o,s,c){_classCallCheck(this,e),this._driver=t,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=a,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=hc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new fc(this._driver,n,0),s.push(this.currentTimeline)}return _createClass(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(e,t){var n=this;if(e){var i=e,r=this.options;null!=i.duration&&(r.duration=Es(i.duration)),null!=i.delay&&(r.delay=Es(i.delay));var a=i.params;if(a){var o=r.params;o||(o=this.options.params={}),Object.keys(a).forEach(function(e){t&&o.hasOwnProperty(e)||(o[e]=Ys(a[e],o,n.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=n||this.element,a=new e(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return a.previousNode=this.previousNode,a.currentAnimateTimings=this.currentAnimateTimings,a.options=this._copyOptions(),a.updateOptions(t),a.currentQueryIndex=this.currentQueryIndex,a.currentQueryTotal=this.currentQueryTotal,a.parentContext=this,this.subContextCount++,a}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=hc,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new pc(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,i,r,a){var o=[];if(i&&o.push(this.element),e.length>0){e=(e=e.replace(sc,"."+this._enterClassName)).replace(cc,"."+this._leaveClassName);var s=this._driver.query(this.element,e,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),o.push.apply(o,_toConsumableArray(s))}return r||0!=o.length||a.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),o}}]),e}(),fc=function(){function e(t,n,i,r){_classCallCheck(this,e),this._driver=t,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return _createClass(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||"*",t._currentKeyframe[e]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,i){var r=this;t&&(this._previousKeyframe.easing=t);var a=i&&i.params||{},o=function(e,t){var n,i={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){i[e]="*"}):Rs(e,!1,i)}),i}(e,this._globalTimelineStyles);Object.keys(o).forEach(function(e){var t=Ys(o[e],a,n);r._pendingStyles[e]=t,r._localTimelineStyles.hasOwnProperty(e)||(r._backFill[e]=r._globalTimelineStyles.hasOwnProperty(e)?r._globalTimelineStyles[e]:"*"),r._updateStyle(e,t)})}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var i=t._styleSummary[n],r=e._styleSummary[n];(!i||r.time>i.time)&&t._updateStyle(n,r.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(a,o){var s=Rs(a,!0);Object.keys(s).forEach(function(e){var i=s[e];"!"==i?t.add(e):"*"==i&&n.add(e)}),i||(s.offset=o/e.duration),r.push(s)});var a=t.size?js(t.values()):[],o=n.size?js(n.values()):[];if(i){var s=r[0],c=xs(s);s.offset=0,c.offset=1,r=[s,c]}return ac(this.element,r,a,o,this.duration,this.startTime,this.easing,!1)}}]),e}(),pc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o,s){var c,u=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return _classCallCheck(this,n),(c=t.call(this,e,i,s.delay)).element=i,c.keyframes=r,c.preStyleProps=a,c.postStyleProps=o,c._stretchStartingKeyframe=u,c.timings={duration:s.duration,delay:s.delay,easing:s.easing},c}return _createClass(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,i=t.duration,r=t.easing;if(this._stretchStartingKeyframe&&n){var a=[],o=i+n,s=n/o,c=Rs(e[0],!1);c.offset=0,a.push(c);var u=Rs(e[0],!1);u.offset=gc(s),a.push(u);for(var l=e.length-1,h=1;h<=l;h++){var d=Rs(e[h],!1);d.offset=gc((n+d.offset*i)/o),a.push(d)}i=o,n=0,r="",e=a}return ac(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(fc);function gc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var mc,vc,_c=function e(){_classCallCheck(this,e)},yc=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"normalizePropertyName",value:function(e,t){return Ws(e)}},{key:"normalizeStyleValue",value:function(e,t,n,i){var r="",a=n.toString().trim();if(bc[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&0==o[1].length&&i.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return a+r}}]),n}(_c),bc=(mc="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".split(","),vc={},mc.forEach(function(e){return vc[e]=!0}),vc);function Ac(e,t,n,i,r,a,o,s,c,u,l,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:a,toState:i,toStyles:o,timelines:s,queriedElements:c,preStyleProps:u,postStyleProps:l,totalTime:h,errors:d}}var wc={},kc=function(){function e(t,n,i){_classCallCheck(this,e),this._triggerName=t,this.ast=n,this._stateStyles=i}return _createClass(e,[{key:"match",value:function(e,t,n,i){return function(e,t,n,i,r){return e.some(function(e){return e(t,n,i,r)})}(this.ast.matchers,e,t,n,i)}},{key:"buildStyles",value:function(e,t,n){var i=this._stateStyles["*"],r=this._stateStyles[e],a=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):a}},{key:"build",value:function(e,t,n,i,r,a,o,s,c,u){var l=[],h=this.ast.options&&this.ast.options.params||wc,d=this.buildStyles(n,o&&o.params||wc,l),f=s&&s.params||wc,p=this.buildStyles(i,f,l),g=new Set,m=new Map,v=new Map,_="void"===i,y={params:Object.assign(Object.assign({},h),f)},b=u?[]:uc(e,t,this.ast.animation,r,a,d,p,y,c,l),A=0;if(b.forEach(function(e){A=Math.max(e.duration+e.delay,A)}),l.length)return Ac(t,this._triggerName,n,i,_,d,p,[],[],m,v,A,l);b.forEach(function(e){var n=e.element,i=ps(m,n,{});e.preStyleProps.forEach(function(e){return i[e]=!0});var r=ps(v,n,{});e.postStyleProps.forEach(function(e){return r[e]=!0}),n!==t&&g.add(n)});var w=js(g.values());return Ac(t,this._triggerName,n,i,_,d,p,b,w,m,v,A)}}]),e}(),Mc=function(){function e(t,n){_classCallCheck(this,e),this.styles=t,this.defaultParams=n}return _createClass(e,[{key:"buildStyles",value:function(e,t){var n={},i=xs(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(i[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var r=e;Object.keys(r).forEach(function(e){var a=r[e];a.length>1&&(a=Ys(a,i,t)),n[e]=a})}}),n}}]),e}(),Cc=function(){function e(t,n){var i=this;_classCallCheck(this,e),this.name=t,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach(function(e){i.states[e.name]=new Mc(e.style,e.options&&e.options.params||{})}),Tc(this.states,"true","1"),Tc(this.states,"false","0"),n.transitions.forEach(function(e){i.transitionFactories.push(new kc(t,e,i.states))}),this.fallbackTransition=new kc(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return _createClass(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(e,t,n,i){return this.transitionFactories.find(function(r){return r.match(e,t,n,i)})||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}]),e}();function Tc(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var Lc=new oc,Sc=function(){function e(t,n,i){_classCallCheck(this,e),this.bodyNode=t,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return _createClass(e,[{key:"register",value:function(e,t){var n=[],i=$s(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[e]=i}},{key:"_buildPlayer",value:function(e,t,n){var i=e.element,r=ls(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=[],o=this._animations[e],s=new Map;if(o?(n=uc(this._driver,t,o,"ng-enter","ng-leave",{},{},r,Lc,a)).forEach(function(e){var t=ps(s,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(a.push("The requested animation doesn't exist or has already been destroyed"),n=[]),a.length)throw new Error("Unable to create the animation due to the following errors: ".concat(a.join("\n")));s.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=i._driver.computeStyle(t,n,"*")})});var c=us(n.map(function(e){var t=s.get(e.element);return i._buildPlayer(e,{},t)}));return this._playersById[e]=c,c.onDestroy(function(){return i.destroy(e)}),this.players.push(c),c}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by ".concat(e));return t}},{key:"listen",value:function(e,t,n,i){var r=fs(t,"","","");return hs(this._getPlayer(e),n,r,i),function(){}}},{key:"command",value:function(e,t,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])}}]),e}(),Ec=[],zc={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Oc={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},xc=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";_classCallCheck(this,e),this.namespaceId=n;var i,r=t&&t.hasOwnProperty("value");if(this.value=null!=(i=r?t.value:t)?i:null,r){var a=xs(t);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}return _createClass(e,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}}}]),e}(),Rc=new xc("void"),Dc=function(){function e(t,n,i){_classCallCheck(this,e),this.id=t,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Yc(n,this._hostClassName)}return _createClass(e,[{key:"listen",value:function(e,t,n,i){var r,a=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var o=ps(this._elementListeners,e,[]),s={name:t,phase:n,callback:i};o.push(s);var c=ps(this._engine.statesByElement,e,{});return c.hasOwnProperty(t)||(Yc(e,"ng-trigger"),Yc(e,"ng-trigger-"+t),c[t]=Rc),function(){a._engine.afterFlush(function(){var e=o.indexOf(s);e>=0&&o.splice(e,1),a._triggers[t]||delete c[t]})}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=this._getTrigger(t),o=new Nc(this.id,t,e),s=this._engine.statesByElement.get(e);s||(Yc(e,"ng-trigger"),Yc(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var c=s[t],u=new xc(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&c&&u.absorbOptions(c.options),s[t]=u,c||(c=Rc),"void"===u.value||c.value!==u.value){var l=ps(this._engine.playersByElement,e,[]);l.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var h=a.matchTransition(c.value,u.value,e,u.params),d=!1;if(!h){if(!r)return;h=a.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:h,fromState:c,toState:u,player:o,isFallbackTransition:d}),d||(Yc(e,"ng-animate-queued"),o.onStart(function(){jc(e,"ng-animate-queued")})),o.onDone(function(){var t=i.players.indexOf(o);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(o);r>=0&&n.splice(r,1)}}),this.players.push(o),l.push(o),o}if(!function(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var r=0;r=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var i=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(i);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(t)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var i=Object.keys(n),r=0;r=0&&this.collectedLeaveElements.splice(a,1)}if(e){var o=this._fetchNamespace(e);o&&o.insertNode(t,n)}i&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Yc(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),jc(e,"ng-animate-disabled"))}},{key:"removeNode",value:function(e,t,n,i){if(Ic(t)){var r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){var a=this.namespacesByHostElement.get(t);a&&a.id!==e&&a.removeNode(t,i)}}else this._onRemovalComplete(t,i)}},{key:"markElementAsRemoved",value:function(e,t,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,i,r){return Ic(t)?this._fetchNamespace(e).listen(t,n,i,r):function(){}}},{key:"_buildInstruction",value:function(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(t){if(e.players.length)return us(e.players).onDone(function(){return t()});t()})}},{key:"processLeaveNode",value:function(e){var t=this,n=e.__ng_removed;if(n&&n.setForRemoval){if(e.__ng_removed=zc,n.namespaceId){this.destroyInnerAnimations(e);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(e){t.markElementAsDisabled(e,!1)})}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i=0;T--)this._namespaceList[T].drainQueuedTransitions(t).forEach(function(e){var t=e.player,a=e.element;if(M.push(t),n.collectedEnterElements.length){var l=a.__ng_removed;if(l&&l.setForMove)return void t.destroy()}var d=!h||!n.driver.containsElement(h,a),f=w.get(a),g=p.get(a),m=n._buildInstruction(e,i,g,f,d);if(m.errors&&m.errors.length)C.push(m);else{if(d)return t.onStart(function(){return Is(a,m.fromStyles)}),t.onDestroy(function(){return Ns(a,m.toStyles)}),void r.push(t);if(e.isFallbackTransition)return t.onStart(function(){return Is(a,m.fromStyles)}),t.onDestroy(function(){return Ns(a,m.toStyles)}),void r.push(t);m.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),i.append(a,m.timelines),o.push({instruction:m,player:t,element:a}),m.queriedElements.forEach(function(e){return ps(s,e,[]).push(t)}),m.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var i=c.get(t);i||c.set(t,i=new Set),n.forEach(function(e){return i.add(e)})}}),m.postStyleProps.forEach(function(e,t){var n=Object.keys(e),i=u.get(t);i||u.set(t,i=new Set),n.forEach(function(e){return i.add(e)})})}});if(C.length){var L=[];C.forEach(function(e){L.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach(function(e){return L.push("- ".concat(e,"\n"))})}),M.forEach(function(e){return e.destroy()}),this.reportError(L)}var S=new Map,E=new Map;o.forEach(function(e){var t=e.element;i.has(t)&&(E.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,S))}),r.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){ps(S,t,[]).push(e),e.destroy()})});var z=m.filter(function(e){return Uc(e,c,u)}),O=new Map;Bc(O,this.driver,_,u,"*").forEach(function(e){Uc(e,c,u)&&z.push(e)});var x=new Map;f.forEach(function(e,t){Bc(x,n.driver,new Set(e),c,"!")}),z.forEach(function(e){var t=O.get(e),n=x.get(e);O.set(e,Object.assign(Object.assign({},t),n))});var R=[],D=[],P={};o.forEach(function(e){var t=e.element,o=e.player,s=e.instruction;if(i.has(t)){if(l.has(t))return o.onDestroy(function(){return Ns(t,s.toStyles)}),o.disabled=!0,o.overrideTotalTime(s.totalTime),void r.push(o);var c=P;if(E.size>1){for(var u=t,h=[];u=u.parentNode;){var d=E.get(u);if(d){c=d;break}h.push(u)}h.forEach(function(e){return E.set(e,c)})}var f=n._buildAnimation(o.namespaceId,s,S,a,x,O);if(o.setRealPlayer(f),c===P)R.push(o);else{var p=n.playersByElement.get(c);p&&p.length&&(o.parentPlayer=us(p)),r.push(o)}}else Is(t,s.fromStyles),o.onDestroy(function(){return Ns(t,s.toStyles)}),D.push(o),l.has(t)&&r.push(o)}),D.forEach(function(e){var t=a.get(e.element);if(t&&t.length){var n=us(t);e.setRealPlayer(n)}}),r.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var N=0;N0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new as(e.duration,e.delay)}}]),e}(),Nc=function(){function e(t,n,i){_classCallCheck(this,e),this.namespaceId=t,this.triggerName=n,this.element=i,this._player=new as,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return _createClass(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return hs(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})}},{key:"_queueEvent",value:function(e,t){ps(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function Ic(e){return e&&1===e.nodeType}function qc(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function Bc(e,t,n,i,r){var a=[];n.forEach(function(e){return a.push(qc(e))});var o=[];i.forEach(function(n,i){var a={};n.forEach(function(e){var n=a[e]=t.computeStyle(i,e,r);n&&0!=n.length||(i.__ng_removed=Oc,o.push(i))}),e.set(i,a)});var s=0;return n.forEach(function(e){return qc(e,a[s++])}),o}function Hc(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var i=new Set(t),r=new Map;function a(e){if(!e)return 1;var t=r.get(e);if(t)return t;var o=e.parentNode;return t=n.has(o)?o:i.has(o)?1:a(o),r.set(e,t),t}return t.forEach(function(e){var t=a(e);1!==t&&n.get(t).push(e)}),n}function Yc(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function jc(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function Fc(e,t,n){us(n).onDone(function(){return e.processLeaveNode(t)})}function Wc(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function Zc(e,t){var n=null,i=null;return Array.isArray(t)&&t.length?(n=Xc(t[0]),t.length>1&&(i=Xc(t[t.length-1]))):t&&(n=Xc(t)),n||i?new Gc(e,n,i):null}var Gc=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}return _createClass(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&Ns(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(Ns(this._element,this._initialStyles),this._endStyles&&(Ns(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Is(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Is(this._element,this._endStyles),this._endStyles=null),Ns(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function Xc(e){for(var t=null,n=Object.keys(e),i=0;i=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),tu(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var e,t,n,i;this._destroyed||(this._destroyed=!0,this.finish(),e=this._element,t=this._name,n=iu(e,"").split(","),(i=eu(n,t))>=0&&(n.splice(i,1),nu(e,"",n.join(","))))}}]),e}();function Qc(e,t,n){nu(e,"PlayState",n,$c(e,t))}function $c(e,t){var n=iu(e,"");return n.indexOf(",")>0?eu(n.split(","),t):eu([n],t)}function eu(e,t){for(var n=0;n=0)return n;return-1}function tu(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function nu(e,t,n,i){var r="animation"+t;if(null!=i){var a=e.style[r];if(a.length){var o=a.split(",");o[i]=n,n=o.join(",")}}e.style[r]=n}function iu(e,t){return e.style["animation"+t]||""}var ru=function(){function e(t,n,i,r,a,o,s,c){_classCallCheck(this,e),this.element=t,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=a,this._finalStyles=s,this._specialStyles=c,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=r+a,this._buildStyler()}return _createClass(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new Jc(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(t[i]=n?e._finalStyles[i]:Gs(e.element,i))})}this.currentSnapshot=t}}]),e}(),au=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this)).element=e,r._startingStyles={},r.__initialized=!1,r._styles=Ts(i),r}return _createClass(n,[{key:"init",value:function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),_get(_getPrototypeOf(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),_get(_getPrototypeOf(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,_get(_getPrototypeOf(n.prototype),"destroy",this).call(this))}}]),n}(as),ou=function(){function e(){_classCallCheck(this,e),this._count=0}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return ws(e)}},{key:"matchesElement",value:function(e,t){return ks(e,t)}},{key:"containsElement",value:function(e,t){return Ms(e,t)}},{key:"query",value:function(e,t,n){return Cs(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map(function(e){return Ts(e)});var i="@keyframes ".concat(t," {\n"),r="";n.forEach(function(e){r=" ";var t=parseFloat(e.offset);i+="".concat(r).concat(100*t,"% {\n"),r+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(t,": ").concat(n,";\n"))}}),i+="".concat(r,"}\n")}),i+="}\n";var a=document.createElement("style");return a.textContent=i,a}},{key:"animate",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=a.filter(function(e){return e instanceof ru}),s={};Us(n,i)&&o.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return s[e]=t[e]})});var c=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=Ks(e,t,s));if(0==n)return new au(e,c);var u="gen_css_kf_"+this._count++,l=this.buildKeyframeElement(e,u,t);(function(e){var t,n=null===(t=e.getRootNode)||void 0===t?void 0:t.call(e);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head})(e).appendChild(l);var h=Zc(e,t),d=new ru(e,t,u,n,i,r,c,h);return d.onDestroy(function(){var e;(e=l).parentNode.removeChild(e)}),d}}]),e}(),su=function(){function e(t,n,i,r){_classCallCheck(this,e),this.element=t,this.keyframes=n,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:Gs(e.element,n))}),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),cu=function(){function e(){_classCallCheck(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(uu().toString()),this._cssKeyframesDriver=new ou}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return ws(e)}},{key:"matchesElement",value:function(e,t){return ks(e,t)}},{key:"containsElement",value:function(e,t){return Ms(e,t)}},{key:"query",value:function(e,t,n){return Cs(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=arguments.length>6?arguments[6]:void 0;if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,i,r,a);var s={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(s.easing=r);var c={},u=a.filter(function(e){return e instanceof su});Us(n,i)&&u.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return c[e]=t[e]})});var l=Zc(e,t=Ks(e,t=t.map(function(e){return Rs(e,!1)}),c));return new su(e,t,s,l)}}]),e}();function uu(){return ss()&&Element.prototype.animate||{}}var lu=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this))._nextAnimationId=0,r._renderer=e.createRenderer(i.body,{id:"0",encapsulation:a.ifc.None,styles:[],data:{animation:[]}}),r}return _createClass(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?Jo(e):e;return fu(this._renderer,null,t,"register",[n]),new hu(t,this._renderer)}}]),n}(Zo);return e.\u0275fac=function(t){return new(t||e)(a.LFG(a.FYo),a.LFG(r.K0))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}(),hu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this))._id=e,r._renderer=i,r}return _createClass(n,[{key:"create",value:function(e,t){return new du(this._id,e,t||{},this._renderer)}}]),n}(function(){return function e(){_classCallCheck(this,e)}}()),du=function(){function e(t,n,i,r){_classCallCheck(this,e),this.id=t,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return _createClass(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i=0&&e3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,i){this.delegate.setStyle(e,t,n,i)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}}]),e}(),mu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this,i,r,a)).factory=e,o.namespaceId=i,o}return _createClass(n,[{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(e,t,n){var i,r,a=this;if("@"==t.charAt(0)){var o,s=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),c=t.substr(1),u="";return"@"!=c.charAt(0)&&(r=(i=c).indexOf("."),c=(o=_slicedToArray([i.substring(0,r),i.substr(r+1)],2))[0],u=o[1]),this.engine.listen(this.namespaceId,s,c,u,function(e){a.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}]),n}(gu),vu=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){return _classCallCheck(this,n),t.call(this,e.body,i,r)}return _createClass(n,[{key:"ngOnDestroy",value:function(){this.flush()}}]),n}(Kc);return e.\u0275fac=function(t){return new(t||e)(a.LFG(r.K0),a.LFG(Ss),a.LFG(_c))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}(),_u=new a.OlP("AnimationModuleType"),yu=[{provide:Zo,useClass:lu},{provide:_c,useFactory:function(){return new yc}},{provide:Kc,useClass:vu},{provide:a.FYo,useFactory:function(e,t,n){return new pu(e,t,n)},deps:[w,Kc,a.R0b]}],bu=[{provide:Ss,useFactory:function(){return"function"==typeof uu()?new cu:new ou}},{provide:_u,useValue:"BrowserAnimations"}].concat(yu),Au=[{provide:Ss,useClass:Ls},{provide:_u,useValue:"NoopAnimations"}].concat(yu),wu=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:t.disableAnimations?Au:bu}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:bu,imports:[I]}),e}();function ku(e,t){if(1&e&&a._UZ(0,"mat-pseudo-checkbox",4),2&e){var n=a.oxw();a.Q6J("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}function Mu(e,t){if(1&e&&(a.TgZ(0,"span",5),a._uU(1),a.qZA()),2&e){var n=a.oxw();a.xp6(1),a.hij("(",n.group.label,")")}}var Cu=["*"],Tu=function(){var e=function e(){_classCallCheck(this,e)};return e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",e}(),Lu=function(){var e=function e(){_classCallCheck(this,e)};return e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",e}(),Su=new a.GfV("12.0.5"),Eu=new a.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),zu=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return _createClass(e,[{key:"_getWindow",value:function(){var e=this._document.defaultView||window;return"object"==typeof e&&e?e:null}},{key:"_checksAreEnabled",value:function(){return(0,a.X6Q)()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var e=this._getWindow();return e&&(e.__karma__||e.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document.body&&"function"==typeof getComputedStyle){var e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);var t=getComputedStyle(e);t&&"none"!==t.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&Su.full!==Ko.full&&console.warn("The Angular Material version ("+Su.full+") does not match the Angular CDK version ("+Ko.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(Wo),a.LFG(Eu,8),a.LFG(r.K0))},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[da],da]}),e}();function Ou(e){return function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck(this,n);for(var i=arguments.length,r=new Array(i),a=0;a1&&void 0!==arguments[1]?arguments[1]:0;return function(e){_inherits(i,e);var n=_createSuper(i);function i(){var e;_classCallCheck(this,i);for(var r=arguments.length,a=new Array(r),o=0;o0?n:e}}]),e}(),Hu=new a.OlP("mat-date-formats");try{Iu="undefined"!=typeof Intl}catch(_E){Iu=!1}var Yu={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},ju=Uu(31,function(e){return String(e+1)}),Fu={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},Wu=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Uu(e,t){for(var n=Array(e),i=0;i9999)&&(e=this.clone(e)).setFullYear(Math.max(1,Math.min(9999,e.getFullYear()))),t=Object.assign(Object.assign({},t),{timeZone:"utc"});var n=new Intl.DateTimeFormat(this.locale,t);return this._stripDirectionalityCharacters(this._format(n,e))}return this._stripDirectionalityCharacters(e.toDateString())}},{key:"addCalendarYears",value:function(e,t){return this.addCalendarMonths(e,12*t)}},{key:"addCalendarMonths",value:function(e,t){var n=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(n)!=((this.getMonth(e)+t)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n}},{key:"addCalendarDays",value:function(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}},{key:"toIso8601",value:function(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}},{key:"deserialize",value:function(e){if("string"==typeof e){if(!e)return null;if(Wu.test(e)){var t=new Date(e);if(this.isValid(t))return t}}return _get(_getPrototypeOf(n.prototype),"deserialize",this).call(this,e)}},{key:"isDateInstance",value:function(e){return e instanceof Date}},{key:"isValid",value:function(e){return!isNaN(e.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(e,t,n){var i=new Date;return i.setFullYear(e,t,n),i.setHours(0,0,0,0),i}},{key:"_2digit",value:function(e){return("00"+e).slice(-2)}},{key:"_stripDirectionalityCharacters",value:function(e){return e.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(e,t){var n=new Date;return n.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(n)}}]),n}(Bu);return e.\u0275fac=function(t){return new(t||e)(a.LFG(qu,8),a.LFG(ta))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}(),Zu=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"isErrorState",value:function(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=a.Yz7({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Gu=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),e}();function Xu(e,t,n){var i=e.nativeElement.classList;n?i.add(t):i.remove(t)}var Vu=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[zu],zu]}),e}(),Ju=function(){function e(t,n,i){_classCallCheck(this,e),this._renderer=t,this.element=n,this.config=i,this.state=3}return _createClass(e,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),e}(),Qu={enterDuration:450,exitDuration:400},$u=aa({passive:!0}),el=["mousedown","touchstart"],tl=["mouseup","mouseleave","touchend","touchcancel"],nl=function(){function e(t,n,i,r){_classCallCheck(this,e),this._target=t,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=sr(i))}return _createClass(e,[{key:"fadeInRipple",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),a=Object.assign(Object.assign({},Qu),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);var o=i.radius||function(e,t,n){var i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),s=e-r.left,c=t-r.top,u=a.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=s-o+"px",l.style.top=c-o+"px",l.style.height=2*o+"px",l.style.width=2*o+"px",null!=i.color&&(l.style.backgroundColor=i.color),l.style.transitionDuration="".concat(u,"ms"),this._containerElement.appendChild(l),window.getComputedStyle(l).getPropertyValue("opacity"),l.style.transform="scale(1)";var h=new Ju(this,l,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(function(){var e=h===n._mostRecentTransientRipple;h.state=1,i.persistent||e&&n._isPointerDown||h.fadeOut()},u),h}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var n=e.element,i=Object.assign(Object.assign({},Qu),e.config.animation);n.style.transitionDuration="".concat(i.exitDuration,"ms"),n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(function(){e.state=3,n.parentNode.removeChild(n)},i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(e){return e.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(e){e.config.persistent||e.fadeOut()})}},{key:"setupTriggerEvents",value:function(e){var t=sr(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(el))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(tl),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=qo(e),n=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(e,t)})}},{key:"_registerEvents",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){e.forEach(function(e){t._triggerElement.addEventListener(e,t,$u)})})}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(el.forEach(function(t){e._triggerElement.removeEventListener(t,e,$u)}),this._pointerUpEventsRegistered&&tl.forEach(function(t){e._triggerElement.removeEventListener(t,e,$u)}))}}]),e}(),il=new a.OlP("mat-ripple-global-options"),rl=function(){var e=function(){function e(t,n,i,r,a){_classCallCheck(this,e),this._elementRef=t,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new nl(this,n,t,i)}return _createClass(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(ta),a.Y36(il,8),a.Y36(_u,8))},e.\u0275dir=a.lG2({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&a.ekj("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),e}(),al=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[zu,na],zu]}),e}(),ol=function(){var e=function e(t){_classCallCheck(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1};return e.\u0275fac=function(t){return new(t||e)(a.Y36(_u,8))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&a.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:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::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}\n'],encapsulation:2,changeDetection:0}),e}(),sl=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[zu]]}),e}(),cl=new a.OlP("MAT_OPTION_PARENT_COMPONENT"),ul=Ou(function e(){_classCallCheck(this,e)}),ll=0,hl=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i,r;return _classCallCheck(this,n),(i=t.call(this))._labelId="mat-optgroup-label-"+ll++,i._inert=null!==(r=null==e?void 0:e.inertGroups)&&void 0!==r&&r,i}return n}(ul);return e.\u0275fac=function(t){return new(t||e)(a.Y36(cl,8))},e.\u0275dir=a.lG2({type:e,inputs:{label:"label"},features:[a.qOj]}),e}(),dl=new a.OlP("MatOptgroup"),fl=0,pl=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_classCallCheck(this,e),this.source=t,this.isUserInput=n},gl=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this._element=t,this._changeDetectorRef=n,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+fl++,this.onSelectionChange=new a.vpe,this._stateChanges=new ye.xQ}return _createClass(e,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(e){this._disabled=nr(e)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(e,t){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(e){13!==e.keyCode&&32!==e.keyCode||Da(e)||(this._selectViaInteraction(),e.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new pl(this,e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(void 0),a.Y36(hl))},e.\u0275dir=a.lG2({type:e,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),e}(),ml=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){return _classCallCheck(this,n),t.call(this,e,i,r,a)}return n}(gl);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(cl,8),a.Y36(dl,8))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&a.NdJ("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(a.Ikx("id",t.id),a.uIk("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),a.ekj("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[a.qOj],ngContentSelectors:Cu,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&&(a.F$t(),a.YNc(0,ku,1,2,"mat-pseudo-checkbox",0),a.TgZ(1,"span",1),a.Hsn(2),a.qZA(),a.YNc(3,Mu,2,1,"span",2),a._UZ(4,"div",3)),2&e&&(a.Q6J("ngIf",t.multiple),a.xp6(3),a.Q6J("ngIf",t.group&&t.group._inert),a.xp6(1),a.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[r.O5,rl,ol],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:transparent}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),e}();function vl(e,t,n){if(n.length){for(var i=t.toArray(),r=n.toArray(),a=0,o=0;on+i?Math.max(0,e-i+t):n}var yl=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[al,r.ez,zu,sl]]}),e}();function bl(e,t){}var Al=function e(){_classCallCheck(this,e),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=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},wl={dialogContainer:Go("dialogContainer",[$o("void, exit",Qo({opacity:0,transform:"scale(0.7)"})),$o("enter",Qo({transform:"none"})),ts("* => enter",Xo("150ms cubic-bezier(0, 0, 0.2, 1)",Qo({transform:"none",opacity:1}))),ts("* => void, * => exit",Xo("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Qo({opacity:0})))])},kl=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,s,c){var u;return _classCallCheck(this,n),(u=t.call(this))._elementRef=e,u._focusTrapFactory=i,u._changeDetectorRef=r,u._config=s,u._focusMonitor=c,u._animationStateChanged=new a.vpe,u._elementFocusedBeforeDialogWasOpened=null,u._closeInteractionType=null,u.attachDomPortal=function(e){return u._portalOutlet.hasAttached(),u._portalOutlet.attachDomPortal(e)},u._ariaLabelledBy=s.ariaLabelledBy||null,u._document=o,u}return _createClass(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=ua(),n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=ua())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=ua();return e===t||e.contains(t)}}]),n}(La);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(Do),a.Y36(a.sBO),a.Y36(r.K0,8),a.Y36(Al),a.Y36(jo))},e.\u0275dir=a.lG2({type:e,viewQuery:function(e,t){var n;(1&e&&a.Gf(Ea,7),2&e)&&(a.iGM(n=a.CRH())&&(t._portalOutlet=n.first))},features:[a.qOj]}),e}(),Ml=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._state="enter",e}return _createClass(n,[{key:"_onAnimationDone",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:n}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(kl);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&a.WFA("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(a.Ikx("id",t._id),a.uIk("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),a.d8E("@dialogContainer",t._state))},features:[a.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&a.YNc(0,bl,0,0,"ng-template",0)},directives:[Ea],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[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.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}\n"],encapsulation:2,data:{animation:[wl.dialogContainer]}}),t}(),Cl=0,Tl=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-"+Cl++;_classCallCheck(this,e),this._overlayRef=t,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new ye.xQ,this._afterClosed=new ye.xQ,this._beforeClosed=new ye.xQ,this._state=0,n._id=r,n._animationStateChanged.pipe((0,me.h)(function(e){return"opened"===e.state}),(0,xe.q)(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),n._animationStateChanged.pipe((0,me.h)(function(e){return"closed"===e.state}),(0,xe.q)(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),t.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),t.keydownEvents().pipe((0,me.h)(function(e){return 27===e.keyCode&&!i.disableClose&&!Da(e)})).subscribe(function(e){e.preventDefault(),Ll(i,"keyboard")}),t.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():Ll(i,"mouse")})}return _createClass(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe((0,me.h)(function(e){return"closing"===e.state}),(0,xe.q)(1)).subscribe(function(n){t._beforeClosed.next(e),t._beforeClosed.complete(),t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout(function(){return t._finishDialogClose()},n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:e,height:t}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function Ll(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}var Sl,El=new a.OlP("MatDialogData"),zl=new a.OlP("mat-dialog-default-options"),Ol=new a.OlP("mat-dialog-scroll-strategy"),xl={provide:Ol,deps:[so],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},Rl=function(){var e=function(){function e(t,n,i,r,a,o,s,c,u){var l=this;_classCallCheck(this,e),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=a,this._dialogRefConstructor=s,this._dialogContainerType=c,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ye.xQ,this._afterOpenedAtThisLevel=new ye.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=Se(function(){return l.openDialogs.length?l._getAfterAllClosed():l._getAfterAllClosed().pipe(De(void 0))}),this._scrollStrategy=o}return _createClass(e,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(e,t){var n=this;(t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new Al)).id&&this.getDialogById(t.id);var i=this._createOverlay(t),r=this._attachDialogContainer(i,t),a=this._attachDialogContent(e,r,i,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.afterClosed().subscribe(function(){return n._removeOpenDialog(a)}),this.afterOpened.next(a),r._initializeWithAttachedContent(),a}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(t){return t.id===e})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new Fa({positionStrategy:this._overlay.position().global(),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,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var n=a.zs3.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:Al,useValue:t}]}),i=new Ma(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}},{key:"_attachDialogContent",value:function(e,t,n,i){var r=new this._dialogRefConstructor(n,t,i.id);if(e instanceof a.Rgc)t.attachTemplatePortal(new Ca(e,null,{$implicit:i.data,dialogRef:r}));else{var o=this._createInjector(i,r,t),s=t.attachComponentPortal(new Ma(e,i.viewContainerRef,o));r.componentInstance=s.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}},{key:"_createInjector",value:function(e,t,n){var i=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return!e.direction||i&&i.get(ha,null,a.XFs.Optional)||r.push({provide:ha,useValue:{value:e.direction,change:(0,_e.of)()}}),a.zs3.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var i=t[n];i===e||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(so),a.Y36(a.zs3),a.Y36(void 0),a.Y36(void 0),a.Y36(Va),a.Y36(void 0),a.Y36(a.DyG),a.Y36(a.DyG),a.Y36(a.OlP))},e.\u0275dir=a.lG2({type:e}),e}(),Dl=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o,s,c){return _classCallCheck(this,n),t.call(this,e,i,a,s,c,o,Tl,Ml,El)}return n}(Rl);return e.\u0275fac=function(t){return new(t||e)(a.LFG(so),a.LFG(a.zs3),a.LFG(r.Ye,8),a.LFG(zl,8),a.LFG(Ol),a.LFG(e,12),a.LFG(Va))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}(),Pl=0,Nl=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._dialogRef=t,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-"+Pl++}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=function(e,t){for(var n=e.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?t.find(function(e){return e.id===n.id}):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var t=e._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=e.id)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl,8),a.Y36(a.SBq),a.Y36(Dl))},e.\u0275dir=a.lG2({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&a.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e}(),Il=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),e}(),ql=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),e}(),Bl=((Sl=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Sl)},Sl.\u0275mod=a.oAB({type:Sl}),Sl.\u0275inj=a.cJS({providers:[Dl,xl],imports:[[po,za,zu],zu]}),Sl),Hl=n(2623),Yl=function(){var e=function(){function e(t,n,i,r,a){var o=this;_classCallCheck(this,e),this.injector=t,this.store=n,this.dialog=i,this.route=r,this.oauthService=a,this.loggedIn=!1,setTimeout(function(){o.router=o.injector.get(zi),o.startIdpFilterKeeper()}),this.route.queryParams.subscribe(function(e){e.idpFilter&&(o.filterShortname=e.idpFilter)})}return _createClass(e,[{key:"getClientConfig",value:function(){var e=this.setIdpFilter(),t=e?{acr_values:e}:{};return this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(t.prompt="consent"),{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"),customQueryParams:t}}},{key:"setIdpFilter",value:function(){var e=this,t=location.search.substr(1).split("&");this.filterShortname=null;var n=this.store.get("oidc_client","filters");if(!n)return null;var i=null;return t.forEach(function(t){var r=t.split("=");"idpFilter"===r[0]&&n[r[1]]&&(e.filterShortname=r[1],i=n[r[1]])}),n.default&&!i?(this.filterShortname="default",n.default):i}},{key:"startIdpFilterKeeper",value:function(){var e=this;this.router.events.pipe((0,me.h)(function(e){return e instanceof rt})).subscribe(function(){var t={idpFilter:e.getIdpFilter()};e.router.navigate([],{relativeTo:e.route,queryParams:"default"===t.idpFilter?{}:t,queryParamsHandling:"merge",replaceUrl:!0})})}},{key:"loadConfigData",value:function(){this.oauthService.configure(this.getClientConfig())}},{key:"verifyAuth",value:function(){var e=this,t=location.pathname,n=location.search.substr(1);return"/api-callback"===t?this.handleAuthCallback().then(function(){return e.startRefreshToken()}).then(function(){return e.redirectToOriginDestination()}):this.verifyAuthentication(t,n).then(function(){return e.startRefreshToken()})}},{key:"startRefreshToken",value:function(){var e=this;return this.isLoggedInPromise().then(function(t){return!!t&&(e.oauthService.events.pipe((0,me.h)(function(e){return"token_expires"===e.type})).subscribe(function(){e.oauthService.refreshToken()}),!0)})}},{key:"logout",value:function(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):this.oauthService.logOut()}},{key:"isLoggedInPromise",value:function(){return this.isLoggedIn()?Promise.resolve(!0):Promise.resolve(!1)}},{key:"isLoggedIn",value:function(){return this.oauthService.hasValidAccessToken()}},{key:"getAuthorizationHeaderValue",value:function(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}},{key:"startAuthentication",value:function(){this.oauthService.loadDiscoveryDocumentAndLogin()}},{key:"isPotentiallyValidPath",value:function(e){if("/"===e)return!0;for(var t=0,n=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];t5&&void 0!==arguments[5])||arguments[5],c=arguments.length>6&&void 0!==arguments[6]&&arguments[6],u=arguments.length>7&&void 0!==arguments[7]&&arguments[7],l=arguments.length>8?arguments[8]:void 0;_classCallCheck(this,e),this.store=t,this.currentLoader=n,this.compiler=i,this.parser=r,this.missingTranslationHandler=o,this.useDefaultLang=s,this.isolate=c,this.extend=u,this.pending=!1,this._onTranslationChange=new a.vpe,this._onLangChange=new a.vpe,this._onDefaultLangChange=new a.vpe,this._langs=[],this._translations={},this._translationRequests={},l&&this.setDefaultLang(l)}return _createClass(e,[{key:"onTranslationChange",get:function(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}},{key:"onLangChange",get:function(){return this.isolate?this._onLangChange:this.store.onLangChange}},{key:"onDefaultLangChange",get:function(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}},{key:"defaultLang",get:function(){return this.isolate?this._defaultLang:this.store.defaultLang},set:function(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}},{key:"currentLang",get:function(){return this.isolate?this._currentLang:this.store.currentLang},set:function(e){this.isolate?this._currentLang=e:this.store.currentLang=e}},{key:"langs",get:function(){return this.isolate?this._langs:this.store.langs},set:function(e){this.isolate?this._langs=e:this.store.langs=e}},{key:"translations",get:function(){return this.isolate?this._translations:this.store.translations},set:function(e){this.isolate?this._translations=e:this.store.translations=e}},{key:"setDefaultLang",value:function(e){var t=this;if(e!==this.defaultLang){var n=this.retrieveTranslations(e);void 0!==n?(null==this.defaultLang&&(this.defaultLang=e),n.pipe((0,xe.q)(1)).subscribe(function(n){t.changeDefaultLang(e)})):this.changeDefaultLang(e)}}},{key:"getDefaultLang",value:function(){return this.defaultLang}},{key:"use",value:function(e){var t=this;if(e===this.currentLang)return(0,_e.of)(this.translations[e]);var n=this.retrieveTranslations(e);return void 0!==n?(this.currentLang||(this.currentLang=e),n.pipe((0,xe.q)(1)).subscribe(function(n){t.changeLang(e)}),n):(this.changeLang(e),(0,_e.of)(this.translations[e]))}},{key:"retrieveTranslations",value:function(e){var t;return(void 0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}},{key:"getTranslation",value:function(e){var t=this;this.pending=!0;var n=this.currentLoader.getTranslation(e).pipe(Xr(1),(0,xe.q)(1));return this.loadingTranslations=n.pipe((0,ze.U)(function(n){return t.compiler.compileTranslations(n,e)}),Xr(1),(0,xe.q)(1)),this.loadingTranslations.subscribe({next:function(n){t.translations[e]=t.extend&&t.translations[e]?Object.assign(Object.assign({},n),t.translations[e]):n,t.updateLangs(),t.pending=!1},error:function(e){t.pending=!1}}),n}},{key:"setTranslation",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t=this.compiler.compileTranslations(t,e),this.translations[e]=(n||this.extend)&&this.translations[e]?Ql(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}},{key:"getLangs",value:function(){return this.langs}},{key:"addLangs",value:function(e){var t=this;e.forEach(function(e){-1===t.langs.indexOf(e)&&t.langs.push(e)})}},{key:"updateLangs",value:function(){this.addLangs(Object.keys(this.translations))}},{key:"getParsedResult",value:function(e,t,n){var i;if(t instanceof Array){var r,a={},o=!1,s=_createForOfIteratorHelper(t);try{for(s.s();!(r=s.n()).done;){var c=r.value;a[c]=this.getParsedResult(e,c,n),Mr(a[c])&&(o=!0)}}catch(l){s.e(l)}finally{s.f()}return o?Fl(t.map(function(e){return Mr(a[e])?a[e]:(0,_e.of)(a[e])})).pipe((0,ze.U)(function(e){var n={};return e.forEach(function(e,i){n[t[i]]=e}),n})):a}if(e&&(i=this.parser.interpolate(this.parser.getValue(e,t),n)),void 0===i&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(i=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),n)),void 0===i){var u={key:t,translateService:this};void 0!==n&&(u.interpolateParams=n),i=this.missingTranslationHandler.handle(u)}return void 0!==i?i:t}},{key:"get",value:function(e,t){var n=this;if(!Vl(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,He.b)(function(i){return Mr(i=n.getParsedResult(i,e,t))?i:(0,_e.of)(i)}));var i=this.getParsedResult(this.translations[this.currentLang],e,t);return Mr(i)?i:(0,_e.of)(i)}},{key:"getStreamOnTranslationChange",value:function(e,t){var n=this;if(!Vl(e)||!e.length)throw new Error('Parameter "key" required');return Te(Se(function(){return n.get(e,t)}),this.onTranslationChange.pipe((0,Oe.w)(function(i){var r=n.getParsedResult(i.translations,e,t);return"function"==typeof r.subscribe?r:(0,_e.of)(r)})))}},{key:"stream",value:function(e,t){var n=this;if(!Vl(e)||!e.length)throw new Error('Parameter "key" required');return Te(Se(function(){return n.get(e,t)}),this.onLangChange.pipe((0,Oe.w)(function(i){var r=n.getParsedResult(i.translations,e,t);return Mr(r)?r:(0,_e.of)(r)})))}},{key:"instant",value:function(e,t){if(!Vl(e)||!e.length)throw new Error('Parameter "key" required');var n=this.getParsedResult(this.translations[this.currentLang],e,t);if(Mr(n)){if(e instanceof Array){var i={};return e.forEach(function(t,n){i[e[n]]=e[n]}),i}return e}return n}},{key:"set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.currentLang;this.translations[n][e]=this.compiler.compile(t,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}},{key:"changeLang",value:function(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}},{key:"changeDefaultLang",value:function(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}},{key:"reloadLang",value:function(e){return this.resetLang(e),this.getTranslation(e)}},{key:"resetLang",value:function(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}},{key:"getBrowserLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return void 0!==(e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage)?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void 0}}},{key:"getBrowserCultureLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(ah),a.LFG(Ul),a.LFG(ih),a.LFG(th),a.LFG(Zl),a.LFG(sh),a.LFG(oh),a.LFG(uh),a.LFG(ch))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}(),hh=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.translate=t,this._ref=n,this.value=""}return _createClass(e,[{key:"updateValue",value:function(e,t,n){var i=this,r=function(t){i.value=void 0!==t?t:e,i.lastKey=e,i._ref.markForCheck()};if(n){var a=this.translate.getParsedResult(n,e,t);Mr(a.subscribe)?a.subscribe(r):r(a)}this.translate.get(e,t).subscribe(r)}},{key:"transform",value:function(e){var t,n=this;if(!e||!e.length)return e;for(var i=arguments.length,r=new Array(i>1?i-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:Ul,useClass:Kl},t.compiler||{provide:ih,useClass:rh},t.parser||{provide:th,useClass:nh},t.missingTranslationHandler||{provide:Zl,useClass:Gl},ah,{provide:oh,useValue:t.isolate},{provide:sh,useValue:t.useDefaultLang},{provide:uh,useValue:t.extend},{provide:ch,useValue:t.defaultLanguage},lh]}}},{key:"forChild",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:Ul,useClass:Kl},t.compiler||{provide:ih,useClass:rh},t.parser||{provide:th,useClass:nh},t.missingTranslationHandler||{provide:Zl,useClass:Gl},{provide:oh,useValue:t.isolate},{provide:sh,useValue:t.useDefaultLang},{provide:uh,useValue:t.extend},{provide:ch,useValue:t.defaultLanguage},lh]}}}]),e}()).\u0275fac=function(e){return new(e||$l)},$l.\u0275mod=a.oAB({type:$l}),$l.\u0275inj=a.cJS({}),$l),fh=function(){var e=function e(t){_classCallCheck(this,e),this.dialogRef=t};return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h2",0),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE")))},directives:[Il],pipes:[hh],styles:[""]}),e}(),ph=["mat-button",""],gh=["*"],mh=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],vh=xu(Ou(Ru(function e(t){_classCallCheck(this,e),this._elementRef=t}))),_h=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;_classCallCheck(this,n),(a=t.call(this,e))._focusMonitor=i,a._animationMode=r,a.isRoundButton=a._hasHostAttributes("mat-fab","mat-mini-fab"),a.isIconButton=a._hasHostAttributes("mat-icon-button");var o,s=_createForOfIteratorHelper(mh);try{for(s.s();!(o=s.n()).done;){var c=o.value;a._hasHostAttributes(c)&&a._getHostElement().classList.add(c)}}catch(u){s.e(u)}finally{s.f()}return e.nativeElement.classList.add("mat-button-base"),a.isRoundButton&&(a.color="accent"),a}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),e}(),yh=((eh=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||eh)},eh.\u0275mod=a.oAB({type:eh}),eh.\u0275inj=a.cJS({imports:[[al,zu],zu]}),eh),bh=["underline"],Ah=["connectionContainer"],wh=["inputContainer"],kh=["label"];function Mh(e,t){1&e&&(a.ynx(0),a.TgZ(1,"div",14),a._UZ(2,"div",15),a._UZ(3,"div",16),a._UZ(4,"div",17),a.qZA(),a.TgZ(5,"div",18),a._UZ(6,"div",15),a._UZ(7,"div",16),a._UZ(8,"div",17),a.qZA(),a.BQk())}function Ch(e,t){1&e&&(a.TgZ(0,"div",19),a.Hsn(1,1),a.qZA())}function Th(e,t){if(1&e&&(a.ynx(0),a.Hsn(1,2),a.TgZ(2,"span"),a._uU(3),a.qZA(),a.BQk()),2&e){var n=a.oxw(2);a.xp6(3),a.Oqu(n._control.placeholder)}}function Lh(e,t){1&e&&a.Hsn(0,3,["*ngSwitchCase","true"])}function Sh(e,t){1&e&&(a.TgZ(0,"span",23),a._uU(1," *"),a.qZA())}function Eh(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"label",20,21),a.NdJ("cdkObserveContent",function(){return a.CHM(n),a.oxw().updateOutlineGap()}),a.YNc(2,Th,4,1,"ng-container",12),a.YNc(3,Lh,1,0,"ng-content",12),a.YNc(4,Sh,2,0,"span",22),a.qZA()}if(2&e){var i=a.oxw();a.ekj("mat-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),a.Q6J("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),a.uIk("for",i._control.id)("aria-owns",i._control.id),a.xp6(2),a.Q6J("ngSwitchCase",!1),a.xp6(1),a.Q6J("ngSwitchCase",!0),a.xp6(1),a.Q6J("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function zh(e,t){1&e&&(a.TgZ(0,"div",24),a.Hsn(1,4),a.qZA())}function Oh(e,t){if(1&e&&(a.TgZ(0,"div",25,26),a._UZ(2,"span",27),a.qZA()),2&e){var n=a.oxw();a.xp6(2),a.ekj("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function xh(e,t){if(1&e&&(a.TgZ(0,"div"),a.Hsn(1,5),a.qZA()),2&e){var n=a.oxw();a.Q6J("@transitionMessages",n._subscriptAnimationState)}}function Rh(e,t){if(1&e&&(a.TgZ(0,"div",31),a._uU(1),a.qZA()),2&e){var n=a.oxw(2);a.Q6J("id",n._hintLabelId),a.xp6(1),a.Oqu(n.hintLabel)}}function Dh(e,t){if(1&e&&(a.TgZ(0,"div",28),a.YNc(1,Rh,2,2,"div",29),a.Hsn(2,6),a._UZ(3,"div",30),a.Hsn(4,7),a.qZA()),2&e){var n=a.oxw();a.Q6J("@transitionMessages",n._subscriptAnimationState),a.xp6(1),a.Q6J("ngIf",n.hintLabel)}}var Ph,Nh=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Ih=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],qh=0,Bh=new a.OlP("MatError"),Hh=function(){var e=function e(t,n){_classCallCheck(this,e),this.id="mat-error-"+qh++,t||n.nativeElement.setAttribute("aria-live","polite")};return e.\u0275fac=function(t){return new(t||e)(a.$8M("aria-live"),a.Y36(a.SBq))},e.\u0275dir=a.lG2({type:e,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&a.uIk("id",t.id)},inputs:{id:"id"},features:[a._Bn([{provide:Bh,useExisting:e}])]}),e}(),Yh={transitionMessages:Go("transitionMessages",[$o("enter",Qo({opacity:1,transform:"translateY(0%)"})),ts("void => enter",[Qo({opacity:0,transform:"translateY(-5px)"}),Xo("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},jh=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e}),e}(),Fh=0,Wh=new a.OlP("MatHint"),Uh=function(){var e=function e(){_classCallCheck(this,e),this.align="start",this.id="mat-hint-"+Fh++};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(a.uIk("id",t.id)("align",null),a.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[a._Bn([{provide:Wh,useExisting:e}])]}),e}(),Kh=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["mat-label"]]}),e}(),Zh=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["mat-placeholder"]]}),e}(),Gh=new a.OlP("MatPrefix"),Xh=new a.OlP("MatSuffix"),Vh=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["","matSuffix",""]],features:[a._Bn([{provide:Xh,useExisting:e}])]}),e}(),Jh=0,Qh=xu(function e(t){_classCallCheck(this,e),this._elementRef=t},"primary"),$h=new a.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),ed=new a.OlP("MatFormField"),td=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o,s,c,u){var l;return _classCallCheck(this,n),(l=t.call(this,e))._elementRef=e,l._changeDetectorRef=i,l._dir=a,l._defaults=o,l._platform=s,l._ngZone=c,l._outlineGapCalculationNeededImmediately=!1,l._outlineGapCalculationNeededOnStable=!1,l._destroyed=new ye.xQ,l._showAlwaysAnimate=!1,l._subscriptAnimationState="",l._hintLabel="",l._hintLabelId="mat-hint-"+Jh++,l._labelId="mat-form-field-label-"+Jh++,l.floatLabel=l._getDefaultFloatLabelState(),l._animationsEnabled="NoopAnimations"!==u,l.appearance=o&&o.appearance?o.appearance:"legacy",l._hideRequiredMarker=!(!o||null==o.hideRequiredMarker)&&o.hideRequiredMarker,l}return _createClass(n,[{key:"appearance",get:function(){return this._appearance},set:function(e){var t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(e){this._hideRequiredMarker=nr(e)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(e){this._explicitFormFieldControl=e}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(t.controlType)),t.stateChanges.pipe(De(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Ir(this._destroyed)).subscribe(function(){return e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe(Ir(e._destroyed)).subscribe(function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()})}),(0,Oa.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(De(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(De(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Ir(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e.updateOutlineGap()})}):e.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,lr(this._label.nativeElement,"transitionend").pipe((0,xe.q)(1)).subscribe(function(){e._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push.apply(e,_toConsumableArray(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,n=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push.apply(e,_toConsumableArray(this._errorChildren.map(function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),a=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var o=i.getBoundingClientRect();if(0===o.width&&0===o.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(o),c=e.children,u=this._getStartEnd(c[0].getBoundingClientRect()),l=0,h=0;h0?.75*l+10:0}for(var d=0;de?{max:{max:e,actual:t.value}}:null}}(e)}},{key:"required",value:function(e){return gd(e)}},{key:"requiredTrue",value:function(e){return function(e){return!0===e.value?null:{required:!0}}(e)}},{key:"email",value:function(e){return function(e){return ud(e.value)||fd.test(e.value)?null:{email:!0}}(e)}},{key:"minLength",value:function(e){return function(e){return function(t){return ud(t.value)||!ld(t.value)?null:t.value.lengthe?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}}(e)}},{key:"pattern",value:function(e){return function(e){return e?("string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),function(e){if(ud(e.value))return null;var i=e.value;return t.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}):md;var t,n}(e)}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){return wd(e)}},{key:"composeAsync",value:function(e){return Md(e)}}]),e}();function gd(e){return ud(e.value)?{required:!0}:null}function md(e){return null}function vd(e){return null!=e}function _d(e){var t=(0,a.QGY)(e)?(0,ve.D)(e):e;return(0,a.CqO)(t),t}function yd(e){var t={};return e.forEach(function(e){t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function bd(e,t){return t.map(function(t){return t(e)})}function Ad(e){return e.map(function(e){return function(e){return!e.validate}(e)?e:function(t){return e.validate(t)}})}function wd(e){if(!e)return null;var t=e.filter(vd);return 0==t.length?null:function(e){return yd(bd(e,t))}}function kd(e){return null!=e?wd(Ad(e)):null}function Md(e){if(!e)return null;var t=e.filter(vd);return 0==t.length?null:function(e){return Fl(bd(e,t).map(_d)).pipe((0,ze.U)(yd))}}function Cd(e){return null!=e?Md(Ad(e)):null}function Td(e,t){return null===e?[t]:Array.isArray(e)?[].concat(_toConsumableArray(e),[t]):[e,t]}function Ld(e){return e._rawValidators}function Sd(e){return e._rawAsyncValidators}var Ed=function(){var e=function(){function e(){_classCallCheck(this,e),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return _createClass(e,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(e){this._rawValidators=e||[],this._composedValidatorFn=kd(this._rawValidators)}},{key:"_setAsyncValidators",value:function(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Cd(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(e){this._onDestroyCallbacks.push(e)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(e){return e()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(e){this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e}),e}(),zd=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(Ed);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275dir=a.lG2({type:t,features:[a.qOj]}),t}(),Od=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return n}(Ed),xd=function(){function e(t){_classCallCheck(this,e),this._cd=t}return _createClass(e,[{key:"is",value:function(e){var t,n;return!!(null===(n=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===n?void 0:n[e])}}]),e}(),Rd=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e)}return n}(xd);return e.\u0275fac=function(t){return new(t||e)(a.Y36(Od,2))},e.\u0275dir=a.lG2({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&a.ekj("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[a.qOj]}),e}(),Dd=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e)}return n}(xd);return e.\u0275fac=function(t){return new(t||e)(a.Y36(zd,10))},e.\u0275dir=a.lG2({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&a.ekj("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[a.qOj]}),e}();function Pd(e,t){return[].concat(_toConsumableArray(t.path),[e])}function Nd(e,t){Bd(e,t),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&Yd(e,t)})}(e,t),function(e,t){var n=function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(function(){e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&Yd(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){var n=function(e){t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(function(){e._unregisterOnDisabledChange(n)})}}(e,t)}function Id(e,t){var n=function(){};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),Hd(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function qd(e,t){e.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function Bd(e,t){var n=Ld(e);null!==t.validator?e.setValidators(Td(n,t.validator)):"function"==typeof n&&e.setValidators([n]);var i=Sd(e);null!==t.asyncValidator?e.setAsyncValidators(Td(i,t.asyncValidator)):"function"==typeof i&&e.setAsyncValidators([i]);var r=function(){return e.updateValueAndValidity()};qd(t._rawValidators,r),qd(t._rawAsyncValidators,r)}function Hd(e,t){var n=!1;if(null!==e){if(null!==t.validator){var i=Ld(e);if(Array.isArray(i)&&i.length>0){var r=i.filter(function(e){return e!==t.validator});r.length!==i.length&&(n=!0,e.setValidators(r))}}if(null!==t.asyncValidator){var a=Sd(e);if(Array.isArray(a)&&a.length>0){var o=a.filter(function(e){return e!==t.asyncValidator});o.length!==a.length&&(n=!0,e.setAsyncValidators(o))}}}var s=function(){};return qd(t._rawValidators,s),qd(t._rawAsyncValidators,s),n}function Yd(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function jd(e,t){Bd(e,t)}function Fd(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}function Wd(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Ud(e,t){return t?(Array.isArray(t),t.forEach(function(e){e.constructor===cd?n=e:Object.getPrototypeOf(e.constructor)===rd?i=e:r=e}),r||i||n||null):null;var n,i,r}function Kd(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function Zd(e){return(Jd(e)?e.validators:e)||null}function Gd(e){return Array.isArray(e)?kd(e):e||null}function Xd(e,t){return(Jd(t)?t.asyncValidators:e)||null}function Vd(e){return Array.isArray(e)?Cd(e):e||null}function Jd(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var Qd,$d,ef=function(){function e(t,n){_classCallCheck(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=Gd(this._rawValidators),this._composedAsyncValidatorFn=Vd(this._rawAsyncValidators)}return _createClass(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=Gd(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=Vd(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;var n=_d(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var i=e;return t.forEach(function(e){i=i instanceof nf?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof rf&&i.at(e)||null}),i}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new a.vpe,this.statusChanges=new a.vpe}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){Jd(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),tf=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,n),(e=t.call(this,Zd(r),Xd(a,r)))._onChange=[],e._applyFormState(i),e._setUpdateStrategy(r),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!e.asyncValidator}),e}return _createClass(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){Kd(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){Kd(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(ef),nf=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,Zd(i),Xd(r,i))).controls=e,a._initObservables(),a._setUpdateStrategy(i),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!!a.asyncValidator}),a}return _createClass(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(i){t._throwIfControlMissing(i),t.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(Object.keys(e).forEach(function(i){t.controls[i]&&t.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof tf?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){var i=t.controls[n];i&&e(i,n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(ef),rf=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,Zd(i),Xd(r,i))).controls=e,a._initObservables(),a._setUpdateStrategy(i),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!!a.asyncValidator}),a}return _createClass(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}},{key:"removeAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,i){t._throwIfControlMissing(i),t.at(i).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(e.forEach(function(e,i){t.at(i)&&t.at(i).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof tf?e.value:e.getRawValue()})}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index ".concat(e))}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=_createForOfIteratorHelper(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}]),n}(ef),af={provide:zd,useExisting:(0,a.Gpc)(function(){return sf})},of=Promise.resolve(null),sf=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new a.vpe,r.form=new nf({},kd(e),Cd(i)),r}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(e){var t=this;of.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Nd(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;of.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),Kd(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;of.then(function(){var n=t._findContainer(e.path),i=new nf({});jd(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;of.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;of.then(function(){n.form.get(e.path).setValue(t)})}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,Wd(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}}]),n}(zd);return e.\u0275fac=function(t){return new(t||e)(a.Y36(hd,10),a.Y36(dd,10))},e.\u0275dir=a.lG2({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&a.NdJ("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a._Bn([af]),a.qOj]}),e}(),cf={provide:Od,useExisting:(0,a.Gpc)(function(){return lf})},uf=Promise.resolve(null),lf=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var s;return _classCallCheck(this,n),(s=t.call(this)).control=new tf,s._registered=!1,s.update=new a.vpe,s._parent=e,s._setValidators(i),s._setAsyncValidators(r),s.valueAccessor=Ud(0,o),s}return _createClass(n,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),Fd(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?Pd(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){Nd(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(e){var t=this;uf.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,i=""===n||n&&"false"!==n;uf.then(function(){i&&!t.control.disabled?t.control.disable():!i&&t.control.disabled&&t.control.enable()})}}]),n}(Od);return e.\u0275fac=function(t){return new(t||e)(a.Y36(zd,9),a.Y36(hd,10),a.Y36(dd,10),a.Y36(ad,10))},e.\u0275dir=a.lG2({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[a._Bn([cf]),a.qOj,a.TTD]}),e}(),hf=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e}(),df={provide:ad,useExisting:(0,a.Gpc)(function(){return ff}),multi:!0},ff=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"writeValue",value:function(e){this.setProperty("value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}}]),n}(rd);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275dir=a.lG2({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&a.NdJ("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[a._Bn([df]),a.qOj]}),t}(),pf=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({}),e}(),gf=new a.OlP("NgModelWithFormControlWarning"),mf={provide:Od,useExisting:(0,a.Gpc)(function(){return vf})},vf=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var s;return _classCallCheck(this,n),(s=t.call(this))._ngModelWarningConfig=o,s.update=new a.vpe,s._ngModelWarningSent=!1,s._setValidators(e),s._setAsyncValidators(i),s.valueAccessor=Ud(0,r),s}return _createClass(n,[{key:"isDisabled",set:function(e){}},{key:"ngOnChanges",value:function(e){if(this._isControlChanged(e)){var t=e.form.previousValue;t&&Id(t,this,!1),Nd(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Fd(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&Id(this.form,this,!1)}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_isControlChanged",value:function(e){return e.hasOwnProperty("form")}}]),n}(Od);return e.\u0275fac=function(t){return new(t||e)(a.Y36(hd,10),a.Y36(dd,10),a.Y36(ad,10),a.Y36(gf,8))},e.\u0275dir=a.lG2({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[a._Bn([mf]),a.qOj,a.TTD]}),e._ngModelWarningSentOnce=!1,e}(),_f={provide:zd,useExisting:(0,a.Gpc)(function(){return yf})},yf=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this)).validators=e,r.asyncValidators=i,r.submitted=!1,r._onCollectionChange=function(){return r._updateDomValue()},r.directives=[],r.form=null,r.ngSubmit=new a.vpe,r._setValidators(e),r._setAsyncValidators(i),r}return _createClass(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(Hd(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return Nd(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){Id(e.control||null,e,!1),Kd(this.directives,e)}},{key:"addFormGroup",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormGroup",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormArray",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,Wd(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach(function(t){var n=t.control,i=e.form.get(t.path);n!==i&&(Id(n||null,t),i instanceof tf&&(Nd(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(e){var t=this.form.get(e.path);jd(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(e){if(this.form){var t=this.form.get(e.path);t&&function(e,t){return Hd(e,t)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){Bd(this.form,this),this._oldForm&&Hd(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),n}(zd);return e.\u0275fac=function(t){return new(t||e)(a.Y36(hd,10),a.Y36(dd,10))},e.\u0275dir=a.lG2({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&a.NdJ("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a._Bn([_f]),a.qOj,a.TTD]}),e}(),bf={provide:Od,useExisting:(0,a.Gpc)(function(){return Af})},Af=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,s){var c;return _classCallCheck(this,n),(c=t.call(this))._ngModelWarningConfig=s,c._added=!1,c.update=new a.vpe,c._ngModelWarningSent=!1,c._parent=e,c._setValidators(i),c._setAsyncValidators(r),c.valueAccessor=Ud(0,o),c}return _createClass(n,[{key:"isDisabled",set:function(e){}},{key:"ngOnChanges",value:function(e){this._added||this._setUpControl(),Fd(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"path",get:function(){return Pd(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"_checkParentType",value:function(){}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}]),n}(Od);return e.\u0275fac=function(t){return new(t||e)(a.Y36(zd,13),a.Y36(hd,10),a.Y36(dd,10),a.Y36(ad,10),a.Y36(gf,8))},e.\u0275dir=a.lG2({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[a._Bn([bf]),a.qOj,a.TTD]}),e._ngModelWarningSentOnce=!1,e}(),wf={provide:hd,useExisting:(0,a.Gpc)(function(){return kf}),multi:!0},kf=function(){var e=function(){function e(){_classCallCheck(this,e),this._required=!1}return _createClass(e,[{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&"false"!="".concat(e),this._onChange&&this._onChange()}},{key:"validate",value:function(e){return this.required?gd(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&a.uIk("required",t.required?"":null)},inputs:{required:"required"},features:[a._Bn([wf])]}),e}(),Mf=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[pf]]}),e}(),Cf=(($d=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||$d)},$d.\u0275mod=a.oAB({type:$d}),$d.\u0275inj=a.cJS({imports:[Mf]}),$d),Tf=((Qd=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:gf,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}()).\u0275fac=function(e){return new(e||Qd)},Qd.\u0275mod=a.oAB({type:Qd}),Qd.\u0275inj=a.cJS({imports:[Mf]}),Qd),Lf=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"group",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this._reduceControls(e),r=null,a=null;return null!=n&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(n)?(r=null!=n.validators?n.validators:null,a=null!=n.asyncValidators?n.asyncValidators:null,t=null!=n.updateOn?n.updateOn:void 0):(r=null!=n.validator?n.validator:null,a=null!=n.asyncValidator?n.asyncValidator:null)),new nf(i,{asyncValidators:a,updateOn:t,validators:r})}},{key:"control",value:function(e,t,n){return new tf(e,t,n)}},{key:"array",value:function(e,t,n){var i=this,r=e.map(function(e){return i._createControl(e)});return new rf(r,t,n)}},{key:"_reduceControls",value:function(e){var t=this,n={};return Object.keys(e).forEach(function(i){n[i]=t._createControl(e[i])}),n}},{key:"_createControl",value:function(e){return e instanceof tf||e instanceof nf||e instanceof rf?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,a.Yz7)({factory:function(){return new e},token:e,providedIn:Tf}),e}(),Sf=["trigger"],Ef=["panel"];function zf(e,t){if(1&e&&(a.TgZ(0,"span",8),a._uU(1),a.qZA()),2&e){var n=a.oxw();a.xp6(1),a.Oqu(n.placeholder)}}function Of(e,t){if(1&e&&(a.TgZ(0,"span",12),a._uU(1),a.qZA()),2&e){var n=a.oxw(2);a.xp6(1),a.Oqu(n.triggerValue)}}function xf(e,t){1&e&&a.Hsn(0,0,["*ngSwitchCase","true"])}function Rf(e,t){if(1&e&&(a.TgZ(0,"span",9),a.YNc(1,Of,2,1,"span",10),a.YNc(2,xf,1,0,"ng-content",11),a.qZA()),2&e){var n=a.oxw();a.Q6J("ngSwitch",!!n.customTrigger),a.xp6(2),a.Q6J("ngSwitchCase",!0)}}function Df(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",13),a.TgZ(1,"div",14,15),a.NdJ("@transformPanel.done",function(e){return a.CHM(n),a.oxw()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return a.CHM(n),a.oxw()._handleKeydown(e)}),a.Hsn(3,1),a.qZA(),a.qZA()}if(2&e){var 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())}}var Pf,Nf,If=[[["mat-select-trigger"]],"*"],qf=["mat-select-trigger","*"],Bf={transformPanelWrap:Go("transformPanelWrap",[ts("* => void",is("@transformPanel",[ns()],{optional:!0}))]),transformPanel:Go("transformPanel",[$o("void",Qo({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),$o("showing",Qo({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),$o("showing-multiple",Qo({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),ts("void => *",Xo("120ms cubic-bezier(0, 0, 0.2, 1)")),ts("* => void",Xo("100ms 25ms linear",Qo({opacity:0})))])},Hf=0,Yf=new a.OlP("mat-select-scroll-strategy"),jf=new a.OlP("MAT_SELECT_CONFIG"),Ff={provide:Yf,deps:[so],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Wf=function e(t,n){_classCallCheck(this,e),this.source=t,this.value=n},Uf=Ru(Du(Ou(Pu(function e(t,n,i,r,a){_classCallCheck(this,e),this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=a})))),Kf=new a.OlP("MatSelectTrigger"),Zf=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,s,c,u,l,h,d,f,p,g,m){var v,_,y,b;return _classCallCheck(this,n),(v=t.call(this,s,o,u,l,d))._viewportRuler=e,v._changeDetectorRef=i,v._ngZone=r,v._dir=c,v._parentFormField=h,v.ngControl=d,v._liveAnnouncer=g,v._defaultOptions=m,v._panelOpen=!1,v._compareWith=function(e,t){return e===t},v._uid="mat-select-"+Hf++,v._triggerAriaLabelledBy=null,v._destroy=new ye.xQ,v._onChange=function(){},v._onTouched=function(){},v._valueId="mat-select-value-"+Hf++,v._panelDoneAnimatingStream=new ye.xQ,v._overlayPanelClass=(null===(_=v._defaultOptions)||void 0===_?void 0:_.overlayPanelClass)||"",v._focused=!1,v.controlType="mat-select",v._required=!1,v._multiple=!1,v._disableOptionCentering=null!==(b=null===(y=v._defaultOptions)||void 0===y?void 0:y.disableOptionCentering)&&void 0!==b&&b,v.ariaLabel="",v.optionSelectionChanges=Se(function(){var e=v.options;return e?e.changes.pipe(De(e),(0,Oe.w)(function(){return Oa.T.apply(void 0,_toConsumableArray(e.map(function(e){return e.onSelectionChange})))})):v._ngZone.onStable.pipe((0,xe.q)(1),(0,Oe.w)(function(){return v.optionSelectionChanges}))}),v.openedChange=new a.vpe,v._openedStream=v.openedChange.pipe((0,me.h)(function(e){return e}),(0,ze.U)(function(){})),v._closedStream=v.openedChange.pipe((0,me.h)(function(e){return!e}),(0,ze.U)(function(){})),v.selectionChange=new a.vpe,v.valueChange=new a.vpe,v.ngControl&&(v.ngControl.valueAccessor=_assertThisInitialized(v)),null!=(null==m?void 0:m.typeaheadDebounceInterval)&&(v._typeaheadDebounceInterval=m.typeaheadDebounceInterval),v._scrollStrategyFactory=p,v._scrollStrategy=v._scrollStrategyFactory(),v.tabIndex=parseInt(f)||0,v.id=v.id,v}return _createClass(n,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=nr(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=nr(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=nr(e)}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=ir(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var e=this;this._selectionModel=new ga(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Cr(),Ir(this._destroy)).subscribe(function(){return e._panelDoneAnimating(e.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe(Ir(this._destroy)).subscribe(function(e){e.added.forEach(function(e){return e.select()}),e.removed.forEach(function(e){return e.deselect()})}),this.options.changes.pipe(De(null),Ir(this._destroy)).subscribe(function(){e._resetOptions(),e._initializeSelection()})}},{key:"ngDoCheck",value:function(){var e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){var t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(e){this.value=e}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map(function(e){return e.viewValue});return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}},{key:"_handleClosedKeydown",value:function(e){var t=e.keyCode,n=40===t||38===t||37===t||39===t,i=13===t||32===t,r=this._keyManager;if(!r.isTyping()&&i&&!Da(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){var a=this.selected;r.onKeydown(e);var o=this.selected;o&&a!==o&&this._liveAnnouncer.announce(o.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(e){var t=this._keyManager,n=e.keyCode,i=40===n||38===n,r=t.isTyping();if(i&&e.altKey)e.preventDefault(),this.close();else if(r||13!==n&&32!==n||!t.activeItem||Da(e))if(!r&&this._multiple&&65===n&&e.ctrlKey){e.preventDefault();var a=this.options.some(function(e){return!e.disabled&&!e.selected});this.options.forEach(function(e){e.disabled||(a?e.select():e.deselect())})}else{var o=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==o&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var e=this;this._overlayDir.positionChange.pipe((0,xe.q)(1)).subscribe(function(){e._changeDetectorRef.detectChanges(),e._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then(function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value),e.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(e){var t=this;if(this._selectionModel.selected.forEach(function(e){return e.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(function(e){return t._selectValue(e)}),this._sortValues();else{var n=this._selectValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(e){var t=this,n=this.options.find(function(n){if(t._selectionModel.isSelected(n))return!1;try{return null!=n.value&&t._compareWith(n.value,e)}catch(i){return!1}});return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var e=this;this._keyManager=new So(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Ir(this._destroy)).subscribe(function(){e.panelOpen&&(!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close())}),this._keyManager.change.pipe(Ir(this._destroy)).subscribe(function(){e._panelOpen&&e.panel?e._scrollOptionIntoView(e._keyManager.activeItemIndex||0):e._panelOpen||e.multiple||!e._keyManager.activeItem||e._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var e=this,t=(0,Oa.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Ir(t)).subscribe(function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())}),Oa.T.apply(void 0,_toConsumableArray(this.options.map(function(e){return e._stateChanges}))).pipe(Ir(t)).subscribe(function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()})}},{key:"_onSelect",value:function(e,t){var n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==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)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;if(this.multiple){var t=this.options.toArray();this._selectionModel.sort(function(n,i){return e.sortComparator?e.sortComparator(n,i,t):t.indexOf(n)-t.indexOf(i)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(e){var t;t=this.multiple?this.selected.map(function(e){return e.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()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getPanelAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId(),n=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}},{key:"_panelDoneAnimating",value:function(e){this.openedChange.emit(e)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),n}(Uf);return e.\u0275fac=function(t){return new(t||e)(a.Y36(ba),a.Y36(a.sBO),a.Y36(a.R0b),a.Y36(Zu),a.Y36(a.SBq),a.Y36(ha,8),a.Y36(sf,8),a.Y36(yf,8),a.Y36(ed,8),a.Y36(Od,10),a.$8M("tabindex"),a.Y36(Yf),a.Y36(Io),a.Y36(jf,8))},e.\u0275dir=a.lG2({type:e,viewQuery:function(e,t){var n;(1&e&&(a.Gf(Sf,5),a.Gf(Ef,5),a.Gf(ho,5)),2&e)&&(a.iGM(n=a.CRH())&&(t.trigger=n.first),a.iGM(n=a.CRH())&&(t.panel=n.first),a.iGM(n=a.CRH())&&(t._overlayDir=n.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[a.qOj,a.TTD]}),e}(),Gf=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._scrollTop=0,e._triggerFontSize=0,e._transformOrigin="top",e._offsetY=0,e._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],e}return _createClass(n,[{key:"_calculateOverlayScroll",value:function(e,t,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}},{key:"ngOnInit",value:function(){var e=this;_get(_getPrototypeOf(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(Ir(this._destroy)).subscribe(function(){e.panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var e=this;_get(_getPrototypeOf(n.prototype),"_canOpen",this).call(this)&&(_get(_getPrototypeOf(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,xe.q)(1)).subscribe(function(){e._triggerFontSize&&e._overlayDir.overlayRef&&e._overlayDir.overlayRef.overlayElement&&(e._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(e._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(e){var t=vl(e,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=_l((e+t)*n,n,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),_get(_getPrototypeOf(n.prototype),"_panelDoneAnimating",this).call(this,e)}},{key:"_getChangeEvent",value:function(e){return new Wf(this,e)}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)e=40;else if(this.disableOptionCentering)e=16;else{var a=this._selectionModel.selected[0]||this.options.first;e=a&&a.group?32:16}i||(e*=-1);var o=0-(t.left+e-(i?r:0)),s=t.right+e-n.width+(i?0:r);o>0?e+=o+8:s>0&&(e-=s+8),this._overlayDir.offsetX=Math.round(e),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(e,t,n){var i,r=this._getItemHeight(),a=(r-this._triggerRect.height)/2,o=Math.floor(256/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-o))*r+(r-(this._getItemCount()*r-256)%r):t-r/2,Math.round(-1*i-a))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*t,256)-a-this._triggerRect.height;o>r?this._adjustPanelUp(o,r):a>i?this._adjustPanelDown(a,i,e):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(e,t,n){var i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var e,t=this._getItemHeight(),n=this._getItemCount(),i=Math.min(n*t,256),r=n*t-i;e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),e+=vl(e,this.options,this.optionGroups);var a=i/2;this._scrollTop=this._calculateOverlayScroll(e,a,r),this._offsetY=this._calculateOverlayOffsetY(e,a,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-t+e/2,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(Zf);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-select"]],contentQueries:function(e,t,n){var i;(1&e&&(a.Suo(n,Kf,5),a.Suo(n,ml,5),a.Suo(n,dl,5)),2&e)&&(a.iGM(i=a.CRH())&&(t.customTrigger=i.first),a.iGM(i=a.CRH())&&(t.options=i),a.iGM(i=a.CRH())&&(t.optionGroups=i))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&a.NdJ("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(a.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-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),a.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:[a._Bn([{provide:jh,useExisting:t},{provide:cl,useExisting:t}]),a.qOj],ngContentSelectors:qf,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&&(a.F$t(If),a.TgZ(0,"div",0,1),a.NdJ("click",function(){return t.toggle()}),a.TgZ(3,"div",2),a.YNc(4,zf,2,1,"span",3),a.YNc(5,Rf,3,2,"span",4),a.qZA(),a.TgZ(6,"div",5),a._UZ(7,"div",6),a.qZA(),a.qZA(),a.YNc(8,Df,4,14,"ng-template",7),a.NdJ("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){var n=a.MAs(1);a.uIk("aria-owns",t.panelOpen?t.id+"-panel":null),a.xp6(3),a.Q6J("ngSwitch",t.empty),a.uIk("id",t._valueId),a.xp6(1),a.Q6J("ngSwitchCase",!0),a.xp6(1),a.Q6J("ngSwitchCase",!1),a.xp6(3),a.Q6J("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[lo,r.RF,r.n9,ho,r.ED,r.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;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{display:table-cell;vertical-align:middle}.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 transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.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:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[Bf.transformPanelWrap,Bf.transformPanel]},changeDetection:0}),t}(),Xf=((Pf=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Pf)},Pf.\u0275mod=a.oAB({type:Pf}),Pf.\u0275inj=a.cJS({providers:[Ff],imports:[[r.ez,po,yl,zu],Aa,nd,yl,zu]}),Pf),Vf=function(){function e(t){_classCallCheck(this,e),this.total=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Jf(e,this.total))}}]),e}(),Jf=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return _createClass(n,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}]),n}(Pe.L),Qf=new Set,$f=function(){var e=function(){function e(t){_classCallCheck(this,e),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ep}return _createClass(e,[{key:"matchMedia",value:function(e){return this._platform.WEBKIT&&function(e){if(!Qf.has(e))try{Nf||((Nf=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(Nf)),Nf.sheet&&(Nf.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),Qf.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(ta))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(ta))},token:e,providedIn:"root"}),e}();function ep(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var tp=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new ye.xQ}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var t=this;return np(ar(e)).some(function(e){return t._registerQuery(e).mql.matches})}},{key:"observe",value:function(e){var t=this,n=np(ar(e)).map(function(e){return t._registerQuery(e).observable}),i=(0,we.aj)(n);return(i=Te(i.pipe((0,xe.q)(1)),i.pipe(function(e){return e.lift(new Vf(1))},(0,go.b)(0)))).pipe((0,ze.U)(function(e){var t={matches:!1,breakpoints:{}};return e.forEach(function(e){var n=e.matches,i=e.query;t.matches=t.matches||n,t.breakpoints[i]=n}),t}))}},{key:"_registerQuery",value:function(e){var t=this;if(this._queries.has(e))return this._queries.get(e);var n=this._mediaMatcher.matchMedia(e),i={observable:new ke.y(function(e){var i=function(n){return t._zone.run(function(){return e.next(n)})};return n.addListener(i),function(){n.removeListener(i)}}).pipe(De(n),(0,ze.U)(function(t){var n=t.matches;return{query:e,matches:n}}),Ir(this._destroySubject)),mql:n};return this._queries.set(e,i),i}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG($f),a.LFG(a.R0b))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG($f),a.LFG(a.R0b))},token:e,providedIn:"root"}),e}();function np(e){return e.map(function(e){return e.split(",")}).reduce(function(e,t){return e.concat(t)}).map(function(e){return e.trim()})}var ip={tooltipState:Go("state",[$o("initial, void, hidden",Qo({opacity:0,transform:"scale(0)"})),$o("visible",Qo({transform:"scale(1)"})),ts("* => visible",Xo("200ms cubic-bezier(0, 0, 0.2, 1)",es([Qo({opacity:0,transform:"scale(0)",offset:0}),Qo({opacity:.5,transform:"scale(0.99)",offset:.5}),Qo({opacity:1,transform:"scale(1)",offset:1})]))),ts("* => hidden",Xo("100ms cubic-bezier(0, 0, 0.2, 1)",Qo({opacity:0})))])},rp=aa({passive:!0}),ap=new a.OlP("mat-tooltip-scroll-strategy"),op={provide:ap,deps:[so],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},sp=new a.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),cp=function(){var e=function(){function e(t,n,i,r,a,o,s,c,u,l,h,d){var f=this;_classCallCheck(this,e),this._overlay=t,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=a,this._platform=o,this._ariaDescriber=s,this._focusMonitor=c,this._dir=l,this._defaultOptions=h,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 ye.xQ,this._handleKeydown=function(e){f._isTooltipVisible()&&27===e.keyCode&&!Da(e)&&(e.preventDefault(),e.stopPropagation(),f._ngZone.run(function(){return f.hide(0)}))},this._scrollStrategy=u,this._document=d,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),l.change.pipe(Ir(this._destroyed)).subscribe(function(){f._overlayRef&&f._updatePosition(f._overlayRef)}),a.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",f._handleKeydown)})}return _createClass(e,[{key:"position",get:function(){return this._position},set:function(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()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=nr(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(e){var t=this;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(function(){Promise.resolve().then(function(){t._ariaDescriber.describe(t._elementRef.nativeElement,t.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var e=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Ir(this._destroyed)).subscribe(function(t){t?"keyboard"===t&&e._ngZone.run(function(){return e.show()}):e._ngZone.run(function(){return e.hide(0)})})}},{key:"ngOnDestroy",value:function(){var e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(t){var n=_slicedToArray(t,2),i=n[0],r=n[1];e.removeEventListener(i,r,rp)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}},{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new Ma(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Ir(this._destroyed)).subscribe(function(){return e._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(e)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var e=this;if(this._overlayRef)return this._overlayRef;var t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return n.positionChanges.pipe(Ir(this._destroyed)).subscribe(function(t){e._updateCurrentPositionClass(t.connectionPair),e._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run(function(){return e.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"".concat(this._cssClassPrefix,"-tooltip-panel"),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Ir(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(e){var t=e.getConfig().positionStrategy,n=this._getOrigin(),i=this._getOverlayPosition();t.withPositions([this._addOffset(Object.assign(Object.assign({},n.main),i.main)),this._addOffset(Object.assign(Object.assign({},n.fallback),i.fallback))])}},{key:"_addOffset",value:function(e){return e}},{key:"_getOrigin",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n||"below"==n?e={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={originX:"start",originY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={originX:"end",originY:"center"});var i=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n?e={overlayX:"center",overlayY:"bottom"}:"below"==n?e={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={overlayX:"start",overlayY:"center"});var i=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,xe.q)(1),Ir(this._destroyed)).subscribe(function(){e._tooltipInstance&&e._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(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}}},{key:"_updateCurrentPositionClass",value:function(e){var t,n=e.overlayY,i=e.originX,r=e.originY;if((t="center"===n?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===n&&"top"===r?"above":"below")!==this._currentPosition){var a=this._overlayRef;if(a){var o="".concat(this._cssClassPrefix,"-tooltip-panel-");a.removePanelClass(o+this._currentPosition),a.addPanelClass(o+t)}this._currentPosition=t}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var e=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){e._setupPointerExitEventsIfNeeded(),e.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){e._setupPointerExitEventsIfNeeded(),clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout(function(){return e.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var e,t=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return t.hide()}],["wheel",function(e){return t._wheelListener(e)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var i=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),(e=this._passiveListeners).push.apply(e,n)}}},{key:"_addListeners",value:function(e){var t=this;e.forEach(function(e){var n=_slicedToArray(e,2),i=n[0],r=n[1];t._elementRef.nativeElement.addEventListener(i,r,rp)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(e){if(this._isTooltipVisible()){var t=this._document.elementFromPoint(e.clientX,e.clientY),n=this._elementRef.nativeElement;t===n||n.contains(t)||this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this.touchGestures;if("off"!==e){var t=this._elementRef.nativeElement,n=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==e&&t.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(so),a.Y36(a.SBq),a.Y36(_a),a.Y36(a.s_b),a.Y36(a.R0b),a.Y36(ta),a.Y36(Mo),a.Y36(jo),a.Y36(void 0),a.Y36(ha),a.Y36(void 0),a.Y36(r.K0))},e.\u0275dir=a.lG2({type:e,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),e}(),up=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o,s,c,u,l,h,d,f){var p;return _classCallCheck(this,n),(p=t.call(this,e,i,r,a,o,s,c,u,l,h,d,f))._tooltipComponent=hp,p}return n}(cp);return e.\u0275fac=function(t){return new(t||e)(a.Y36(so),a.Y36(a.SBq),a.Y36(_a),a.Y36(a.s_b),a.Y36(a.R0b),a.Y36(ta),a.Y36(Mo),a.Y36(jo),a.Y36(ap),a.Y36(ha,8),a.Y36(sp,8),a.Y36(r.K0))},e.\u0275dir=a.lG2({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[a.qOj]}),e}(),lp=function(){var e=function(){function e(t){_classCallCheck(this,e),this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new ye.xQ}return _createClass(e,[{key:"show",value:function(e){var t=this;clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){t._visibility="visible",t._showTimeoutId=void 0,t._markForCheck()},e)}},{key:"hide",value:function(e){var t=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){t._visibility="hidden",t._hideTimeoutId=void 0,t._markForCheck()},e)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(e){var t=e.toState;"hidden"!==t||this.isVisible()||this._onHide.next(),"visible"!==t&&"hidden"!==t||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.sBO))},e.\u0275dir=a.lG2({type:e}),e}(),hp=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e))._breakpointObserver=i,r._isHandset=r._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),r}return n}(lp);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.sBO),a.Y36(tp))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&a.NdJ("click",function(){return t._handleBodyInteraction()},!1,a.pYS)("auxclick",function(){return t._handleBodyInteraction()},!1,a.pYS),2&e&&a.Udp("zoom","visible"===t._visibility?1:null)},features:[a.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){var n;(1&e&&(a.TgZ(0,"div",0),a.NdJ("@state.start",function(){return t._animationStart()})("@state.done",function(e){return t._animationDone(e)}),a.ALo(1,"async"),a._uU(2),a.qZA()),2&e)&&(a.ekj("mat-tooltip-handset",null==(n=a.lcZ(1,5,t._isHandset))?null:n.matches),a.Q6J("ngClass",t.tooltipClass)("@state",t._visibility),a.xp6(2),a.Oqu(t.message))},directives:[r.mk],pipes:[r.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[ip.tooltipState]},changeDetection:0}),e}(),dp=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[op],imports:[[Uo,r.ez,po,zu],zu,Aa]}),e}();function fp(e,t){if(1&e&&(a.TgZ(0,"mat-option",19),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.Q6J("value",n),a.xp6(1),a.hij(" ",n," ")}}function pp(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-form-field",16),a.TgZ(1,"mat-select",17),a.NdJ("selectionChange",function(e){return a.CHM(n),a.oxw(2)._changePageSize(e.value)}),a.YNc(2,fp,2,2,"mat-option",18),a.qZA(),a.qZA()}if(2&e){var i=a.oxw(2);a.Q6J("appearance",i._formFieldAppearance)("color",i.color),a.xp6(1),a.Q6J("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),a.xp6(1),a.Q6J("ngForOf",i._displayedPageSizeOptions)}}function gp(e,t){if(1&e&&(a.TgZ(0,"div",20),a._uU(1),a.qZA()),2&e){var n=a.oxw(2);a.xp6(1),a.Oqu(n.pageSize)}}function mp(e,t){if(1&e&&(a.TgZ(0,"div",12),a.TgZ(1,"div",13),a._uU(2),a.qZA(),a.YNc(3,pp,3,6,"mat-form-field",14),a.YNc(4,gp,2,1,"div",15),a.qZA()),2&e){var n=a.oxw();a.xp6(2),a.hij(" ",n._intl.itemsPerPageLabel," "),a.xp6(1),a.Q6J("ngIf",n._displayedPageSizeOptions.length>1),a.xp6(1),a.Q6J("ngIf",n._displayedPageSizeOptions.length<=1)}}function vp(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",21),a.NdJ("click",function(){return a.CHM(n),a.oxw().firstPage()}),a.O4$(),a.TgZ(1,"svg",7),a._UZ(2,"path",22),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.Q6J("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),a.uIk("aria-label",i._intl.firstPageLabel)}}function _p(e,t){if(1&e){var n=a.EpF();a.O4$(),a.kcU(),a.TgZ(0,"button",23),a.NdJ("click",function(){return a.CHM(n),a.oxw().lastPage()}),a.O4$(),a.TgZ(1,"svg",7),a._UZ(2,"path",24),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.Q6J("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),a.uIk("aria-label",i._intl.lastPageLabel)}}var yp=function(){var e=function e(){_classCallCheck(this,e),this.changes=new ye.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(e,t,n){if(0==n||0==t)return"0 of ".concat(n);var i=e*t;return"".concat(i+1," \u2013 ").concat(i<(n=Math.max(n,0))?Math.min(i+t,n):i+t," of ").concat(n)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=a.Yz7({factory:function(){return new e},token:e,providedIn:"root"}),e}(),bp={provide:yp,deps:[[new a.FiY,new a.tp0,yp]],useFactory:function(e){return e||new yp}},Ap=new a.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),wp=Ou(Nu(function e(){_classCallCheck(this,e)})),kp=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;if(_classCallCheck(this,n),(o=t.call(this))._intl=e,o._changeDetectorRef=i,o._pageIndex=0,o._length=0,o._pageSizeOptions=[],o._hidePageSize=!1,o._showFirstLastButtons=!1,o.page=new a.vpe,o._intlChanges=e.changes.subscribe(function(){return o._changeDetectorRef.markForCheck()}),r){var s=r.pageSize,c=r.pageSizeOptions,u=r.hidePageSize,l=r.showFirstLastButtons;null!=s&&(o._pageSize=s),null!=c&&(o._pageSizeOptions=c),null!=u&&(o._hidePageSize=u),null!=l&&(o._showFirstLastButtons=l)}return _possibleConstructorReturn(o)}return _createClass(n,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(e){this._pageIndex=Math.max(ir(e),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(e){this._length=ir(e),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(e){this._pageSize=Math.max(ir(e),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(e){this._pageSizeOptions=(e||[]).map(function(e){return ir(e)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(e){this._hidePageSize=nr(e)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(e){this._showFirstLastButtons=nr(e)}},{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex++,this._emitPageEvent(e)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex--,this._emitPageEvent(e)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var e=this.getNumberOfPages()-1;return this.pageIndex enter",Xo("120ms cubic-bezier(0, 0, 0.2, 1)",Qo({opacity:1,transform:"scale(1)"}))),ts("* => void",Xo("100ms 25ms linear",Qo({opacity:0})))]),fadeInItems:Go("fadeInItems",[$o("showing",Qo({opacity:1})),ts("void => *",[Qo({opacity:0}),Xo("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Op=new a.OlP("MatMenuContent"),xp=new a.OlP("MAT_MENU_PANEL"),Rp=Ru(Ou(function e(){_classCallCheck(this,e)})),Dp=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this))._elementRef=e,o._focusMonitor=r,o._parentMenu=a,o.role="menuitem",o._hovered=new ye.xQ,o._focused=new ye.xQ,o._highlighted=!1,o._triggersSubmenu=!1,a&&a.addItem&&a.addItem(_assertThisInitialized(o)),o}return _createClass(n,[{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var e,t,n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons"),r=0;r0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe((0,xe.q)(1)).subscribe(function(){return e._focusFirstItem(t)}):this._focusFirstItem(t)}},{key:"_focusFirstItem",value:function(e){var t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(e){var t="mat-elevation-z".concat(Math.min(4+e,24)),n=Object.keys(this._classList).find(function(e){return e.startsWith("mat-elevation-z")});n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[t]=!0,this._previousElevation=t)}},{key:"setPositionClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,n=this._classList;n["mat-menu-before"]="before"===e,n["mat-menu-after"]="after"===e,n["mat-menu-above"]="above"===t,n["mat-menu-below"]="below"===t}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(e){this._animationDone.next(e),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var e=this;this._allItems.changes.pipe(De(this._allItems)).subscribe(function(t){e._directDescendantItems.reset(t.filter(function(t){return t._parentMenu===e})),e._directDescendantItems.notifyOnChanges()})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(Pp))},e.\u0275dir=a.lG2({type:e,contentQueries:function(e,t,n){var i;(1&e&&(a.Suo(n,Op,5),a.Suo(n,Dp,5),a.Suo(n,Dp,4)),2&e)&&(a.iGM(i=a.CRH())&&(t.lazyContent=i.first),a.iGM(i=a.CRH())&&(t._allItems=i),a.iGM(i=a.CRH())&&(t.items=i))},viewQuery:function(e,t){var n;(1&e&&a.Gf(a.Rgc,5),2&e)&&(a.iGM(n=a.CRH())&&(t.templateRef=n.first))},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),e}(),qp=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){return _classCallCheck(this,n),t.call(this,e,i,r)}return n}(Ip);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(Pp))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&a.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[a._Bn([{provide:xp,useExisting:e}]),a.qOj],ngContentSelectors:Sp,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&&(a.F$t(),a.YNc(0,Ep,3,6,"ng-template"))},directives:[r.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}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}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}\n'],encapsulation:2,data:{animation:[zp.transformMenu,zp.fadeInItems]},changeDetection:0}),e}(),Bp=new a.OlP("mat-menu-scroll-strategy"),Hp={provide:Bp,deps:[so],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Yp=aa({passive:!0}),jp=function(){var e=function(){function e(t,n,i,r,o,s,c,u){var l=this;_classCallCheck(this,e),this._overlay=t,this._element=n,this._viewContainerRef=i,this._menuItemInstance=s,this._dir=c,this._focusMonitor=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Qe.w.EMPTY,this._hoverSubscription=Qe.w.EMPTY,this._menuCloseSubscription=Qe.w.EMPTY,this._handleTouchStart=function(e){Bo(e)||(l._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new a.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new a.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=o instanceof Ip?o:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,Yp),s&&(s._triggersSubmenu=this.triggersSubmenu())}return _createClass(e,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(e){this.menu=e}},{key:"menu",get:function(){return this._menu},set:function(e){var t=this;e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(function(e){t._destroyMenu(e),"click"!==e&&"tab"!==e||!t._parentMaterialMenu||t._parentMaterialMenu.closed.emit(e)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Yp),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var e=this;if(!this._menuOpen){this._checkMenu();var t=this._createOverlay(),n=t.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return e.closeMenu()}),this._initMenu(),this.menu instanceof Ip&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"updatePosition",value:function(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}},{key:"_destroyMenu",value:function(e){var t=this;if(this._overlayRef&&this.menuOpen){var n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==e&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,n instanceof Ip?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe((0,me.h)(function(e){return"void"===e.toState}),(0,xe.q)(1),Ir(n.lazyContent._attached)).subscribe({next:function(){return n.lazyContent.detach()},complete:function(){return t._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n.lazyContent&&n.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var e=0,t=this.menu.parentMenu;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=e)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new Fa({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(e){var t=this;this.menu.setPositionClasses&&e.positionChanges.subscribe(function(e){t.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(e){var t=_slicedToArray("before"===this.menu.xPosition?["end","start"]:["start","end"],2),n=t[0],i=t[1],r=_slicedToArray("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),a=r[0],o=r[1],s=a,c=o,u=n,l=i,h=0;this.triggersSubmenu()?(l=n="before"===this.menu.xPosition?"start":"end",i=u="end"===n?"start":"end",h="bottom"===a?8:-8):this.menu.overlapTrigger||(s="top"===a?"bottom":"top",c="top"===o?"bottom":"top"),e.withPositions([{originX:n,originY:s,overlayX:u,overlayY:a,offsetY:h},{originX:i,originY:s,overlayX:l,overlayY:a,offsetY:h},{originX:n,originY:c,overlayX:u,overlayY:o,offsetY:-h},{originX:i,originY:c,overlayX:l,overlayY:o,offsetY:-h}])}},{key:"_menuClosingActions",value:function(){var e=this,t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,_e.of)(),r=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,me.h)(function(t){return t!==e._menuItemInstance}),(0,me.h)(function(){return e._menuOpen})):(0,_e.of)();return(0,Oa.T)(t,i,r,n)}},{key:"_handleMousedown",value:function(e){qo(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var 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())}},{key:"_handleClick",value:function(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var e=this;this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,me.h)(function(t){return t===e._menuItemInstance&&!t.disabled}),(0,Tp.g)(0,kr)).subscribe(function(){e._openedBy="mouse",e.menu instanceof Ip&&e.menu._isAnimating?e.menu._animationDone.pipe((0,xe.q)(1),(0,Tp.g)(0,kr),Ir(e._parentMaterialMenu._hovered())).subscribe(function(){return e.openMenu()}):e.openMenu()}))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new Ca(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(so),a.Y36(a.SBq),a.Y36(a.s_b),a.Y36(Bp),a.Y36(xp,8),a.Y36(Dp,10),a.Y36(ha,8),a.Y36(jo))},e.\u0275dir=a.lG2({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&a.NdJ("mousedown",function(e){return t._handleMousedown(e)})("keydown",function(e){return t._handleKeydown(e)})("click",function(e){return t._handleClick(e)}),2&e&&a.uIk("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),e}(),Fp=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[Hp],imports:[zu]}),e}(),Wp=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[Hp],imports:[[r.ez,zu,al,po,Fp],Aa,zu,Fp]}),e}(),Up=n(1225),Kp=n(1055),Zp=["*"];function Gp(e){return Error('Unable to find icon with the name "'.concat(e,'"'))}function Xp(e){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \"".concat(e,'".'))}function Vp(e){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was \"".concat(e,'".'))}var Jp=function e(t,n,i){_classCallCheck(this,e),this.url=t,this.svgText=n,this.options=i},Qp=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this._httpClient=t,this._sanitizer=n,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i}return _createClass(e,[{key:"addSvgIcon",value:function(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}},{key:"addSvgIconLiteral",value:function(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}},{key:"addSvgIconInNamespace",value:function(e,t,n,i){return this._addSvgIconConfig(e,t,new Jp(n,null,i))}},{key:"addSvgIconResolver",value:function(e){return this._resolvers.push(e),this}},{key:"addSvgIconLiteralInNamespace",value:function(e,t,n,i){var r=this._sanitizer.sanitize(a.q3G.HTML,n);if(!r)throw Vp(n);return this._addSvgIconConfig(e,t,new Jp("",r,i))}},{key:"addSvgIconSet",value:function(e,t){return this.addSvgIconSetInNamespace("",e,t)}},{key:"addSvgIconSetLiteral",value:function(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}},{key:"addSvgIconSetInNamespace",value:function(e,t,n){return this._addSvgIconSetConfig(e,new Jp(t,null,n))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,t,n){var i=this._sanitizer.sanitize(a.q3G.HTML,t);if(!i)throw Vp(t);return this._addSvgIconSetConfig(e,new Jp("",i,n))}},{key:"registerFontClassAlias",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this._fontCssClassesByAlias.set(e,t),this}},{key:"classNameForFontAlias",value:function(e){return this._fontCssClassesByAlias.get(e)||e}},{key:"setDefaultFontSetClass",value:function(e){return this._defaultFontSetClass=e,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(e){var t=this,n=this._sanitizer.sanitize(a.q3G.RESOURCE_URL,e);if(!n)throw Xp(e);var i=this._cachedIconsByUrl.get(n);return i?(0,_e.of)($p(i)):this._loadSvgIconFromConfig(new Jp(e,null)).pipe((0,Ve.b)(function(e){return t._cachedIconsByUrl.set(n,e)}),(0,ze.U)(function(e){return $p(e)}))}},{key:"getNamedSvgIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=eg(t,e),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(t,e))return this._svgIconConfigs.set(n,i),this._getSvgFromConfig(i);var r=this._iconSetConfigs.get(t);return r?this._getSvgFromIconSetConfigs(e,r):(0,Up._)(Gp(n))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(e){return e.svgText?(0,_e.of)($p(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,ze.U)(function(e){return $p(e)}))}},{key:"_getSvgFromIconSetConfigs",value:function(e,t){var n=this,i=this._extractIconWithNameFromAnySet(e,t);return i?(0,_e.of)(i):Fl(t.filter(function(e){return!e.svgText}).map(function(e){return n._loadSvgIconSetFromConfig(e).pipe((0,Be.K)(function(t){var i=n._sanitizer.sanitize(a.q3G.RESOURCE_URL,e.url);return n._errorHandler.handleError(new Error("Loading icon set URL: ".concat(i," failed: ").concat(t.message))),(0,_e.of)(null)}))})).pipe((0,ze.U)(function(){var i=n._extractIconWithNameFromAnySet(e,t);if(!i)throw Gp(e);return i}))}},{key:"_extractIconWithNameFromAnySet",value:function(e,t){for(var n=t.length-1;n>=0;n--){var i=t[n];if(i.svgText&&i.svgText.indexOf(e)>-1){var r=this._svgElementFromConfig(i),a=this._extractSvgIconFromSet(r,e,i.options);if(a)return a}}return null}},{key:"_loadSvgIconFromConfig",value:function(e){var t=this;return this._fetchIcon(e).pipe((0,Ve.b)(function(t){return e.svgText=t}),(0,ze.U)(function(){return t._svgElementFromConfig(e)}))}},{key:"_loadSvgIconSetFromConfig",value:function(e){return e.svgText?(0,_e.of)(null):this._fetchIcon(e).pipe((0,Ve.b)(function(t){return e.svgText=t}))}},{key:"_extractSvgIconFromSet",value:function(e,t,n){var i=e.querySelector('[id="'.concat(t,'"]'));if(!i)return null;var r=i.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,n);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),n);var a=this._svgElementFromString("");return a.appendChild(r),this._setSvgAttributes(a,n)}},{key:"_svgElementFromString",value:function(e){var t=this._document.createElement("DIV");t.innerHTML=e;var n=t.querySelector("svg");if(!n)throw Error(" tag not found");return n}},{key:"_toSvgElement",value:function(e){for(var t=this._svgElementFromString(""),n=e.attributes,i=0;i1&&void 0!==arguments[1]?arguments[1]:"csv",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"export";switch(t){case"csv":var i=function(e,t){return null===t?"":t},r=Object.keys(e[0]),a=e.map(function(e){return r.map(function(t){return JSON.stringify(e[t],i)}).join(",")});a.unshift(r.join(",").split(" ").join("_").split('"').join("''"));var o=a.join("\r\n"),s=new Blob([o],{type:"text/csv"});(0,lg.saveAs)(s,"".concat(n,".").concat(t))}}var yg=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"getString",value:function(e){return localStorage.getItem(e)}},{key:"getNumber",value:function(e){return parseInt(localStorage.getItem(e),10)}},{key:"setNumber",value:function(e,t){localStorage.setItem(e,t.toString())}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),bg=function(){var e=function(){function e(t){_classCallCheck(this,e),this.guiConfigService=t}return _createClass(e,[{key:"getTablePageSize",value:function(e){var t=this.guiConfigService.getNumber("GUI_CONFIG.PREF_PAGE_SIZE."+e);if(!isNaN(t))return t;var n=this.guiConfigService.getNumber("GUI_CONFIG.PREF_PAGE_SIZE");return isNaN(n)?10:n}},{key:"setTablePageSize",value:function(e,t){this.guiConfigService.setNumber("GUI_CONFIG.PREF_PAGE_SIZE."+e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(yg))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Ag=function(){var e=function e(){_classCallCheck(this,e),this.exportData=new a.vpe};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"div",0),a.TgZ(1,"button",1),a.TgZ(2,"mat-icon"),a._uU(3,"more_vert"),a.qZA(),a.qZA(),a.TgZ(4,"mat-menu",null,2),a.TgZ(6,"button",3),a._uU(7),a.ALo(8,"translate"),a.qZA(),a.qZA(),a.TgZ(9,"mat-menu",null,4),a.TgZ(11,"button",5),a.NdJ("click",function(){return t.exportData.emit("csv")}),a._uU(12,"Csv"),a.qZA(),a.qZA(),a.qZA()),2&e){var n=a.MAs(5),i=a.MAs(10);a.xp6(1),a.Q6J("matMenuTriggerFor",n),a.xp6(5),a.Q6J("matMenuTriggerFor",i),a.xp6(1),a.hij(" ",a.lcZ(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[_h,jp,sg,qp,Dp],pipes:[hh],styles:[""]}),e}();function wg(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"perun-web-apps-table-options",6),a.NdJ("exportData",function(e){return a.CHM(n),a.oxw().exportData.emit(e)}),a.qZA()}}function kg(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"perun-web-apps-table-options",6),a.NdJ("exportData",function(e){return a.CHM(n),a.oxw().exportData.emit(e)}),a.qZA()}}var Mg,Cg=["*"],Tg=((Mg=function(){function e(t){_classCallCheck(this,e),this.tableConfigService=t,this.hideExport=!1,this.pageSizeOptions=hg,this.dataLength=0,this.exportData=new a.vpe,this.pageSize=5}return _createClass(e,[{key:"ngOnInit",value:function(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5)}},{key:"matPaginator",set:function(e){this.paginator=e}},{key:"pageChangedTop",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}},{key:"pageChangedBottom",value:function(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)}}]),e}()).\u0275fac=function(e){return new(e||Mg)(a.Y36(bg))},Mg.\u0275cmp=a.Xpm({type:Mg,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(e,t){var n;1&e&&a.Gf(Mp,7),2&e&&a.iGM(n=a.CRH())&&(t.matPaginator=n.first)},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId"},outputs:{exportData:"exportData"},ngContentSelectors:Cg,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&&(a.F$t(),a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.TgZ(2,"mat-paginator",2),a.NdJ("page",function(e){return t.pageChangedTop(e)}),a.qZA(),a.YNc(3,wg,1,0,"perun-web-apps-table-options",3),a.qZA(),a.TgZ(4,"div",4),a.Hsn(5),a.qZA(),a.TgZ(6,"div",1),a.TgZ(7,"mat-paginator",5),a.NdJ("page",function(e){return t.pageChangedBottom(e)}),a.qZA(),a.YNc(8,kg,1,0,"perun-web-apps-table-options",3),a.qZA(),a.qZA()),2&e&&(a.xp6(2),a.Q6J("length",t.dataLength)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),a.xp6(1),a.Q6J("ngIf",!t.hideExport),a.xp6(4),a.Q6J("length",t.paginator.length)("pageIndex",t.paginator.pageIndex)("pageSizeOptions",t.paginator.pageSizeOptions)("pageSize",t.paginator.pageSize),a.xp6(1),a.Q6J("ngIf",!t.hideExport))},directives:[Mp,r.O5,Ag],styles:[""]}),Mg),Lg=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"passwordMatchValidator",value:function(e){var t=e.get("passwordCtrl").value,n=e.get("passwordAgainCtrl").value;return e.get("passwordAgainCtrl").setErrors(t!==n?{noPasswordMatch:!0}:null),null}},{key:"patternValidator",value:function(e){return function(t){if(!t.value)return null;var n,i=0,r=_createForOfIteratorHelper(e);try{for(r.s();!(n=r.n()).done;){i+=n.value.test(t.value)?1:0}}catch(a){r.e(a)}finally{r.f()}return i>=3?null:{isWeak:!0}}}}]),e}(),Sg=function(){var e=function(){function e(t,n,i,r,a,o){_classCallCheck(this,e),this.authService=t,this.storeService=n,this.authResolver=i,this.authzService=r,this.dialog=a,this.router=o,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}return _createClass(e,[{key:"setLoginScreen",value:function(e){this.loginScreenShown=e}},{key:"isLoginScreenShown",value:function(){return this.loginScreenShown}},{key:"isServiceAccess",value:function(){return this.serviceAccess}},{key:"isServiceAccessLoginScreenShown",value:function(){return this.serviceAccessLoginScreen}},{key:"verifyAuth",value:function(){return sessionStorage.getItem("baPrincipal")?(this.serviceAccess=!0,"/service-access"===location.pathname?this.router.navigate([]).then(function(){return!0}):this.router.navigate([location.pathname]).then(function(){return!0})):(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(function(e){return e(!0)}):this.authService.verifyAuth())}},{key:"startAuth",value:function(){return this.authService.startAuthentication(),new Promise(function(){})}},{key:"loadPrincipal",value:function(){var e=this;return this.authzService.getPerunPrincipal().toPromise().then(function(t){if(null===t.user){var n=dg();e.dialog.open(fh,n)}else e.storeService.setPerunPrincipal(t),e.authResolver.init(t)})}},{key:"handleAuthStart",value:function(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(function(e){e()});if(this.storeService.get("auto_auth_redirect"))return this.startAuth().then(function(){return new Promise(function(){})});this.setLoginScreen(!0);var e,t={},n=_createForOfIteratorHelper(location.search.substr(1).split("&"));try{for(n.s();!(e=n.n()).done;){var i=e.value.split("=");t[i[0]]=i[1]}}catch(r){n.e(r)}finally{n.f()}return this.router.navigate(["login"],{queryParams:t,queryParamsHandling:"merge"}).then(function(){return null})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(Yl),a.LFG(tr),a.LFG(ge),a.LFG(ae),a.LFG(Dl),a.LFG(zi))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Eg=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.matIconRegistry=t,this.domSanitizer=n,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/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/settings1-blue.svg",name:"settings-blue"},{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"}]}return _createClass(e,[{key:"registerPerunRefreshIcon",value:function(){var e=this;this.customIcons.forEach(function(t){e.matIconRegistry.addSvgIcon(t.name,e.domSanitizer.bypassSecurityTrustResourceUrl(t.url))})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(Qp),a.LFG(x))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}(),zg=function(){var e=function(){function e(t){_classCallCheck(this,e),this.dialogRef=t}return _createClass(e,[{key:"close",value:function(){this.dialogRef.close(!0)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl))},e.\u0275cmp=a.Xpm({type:e,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&&(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),a.TgZ(7,"div",3),a.TgZ(8,"button",4),a.NdJ("click",function(){return t.close()}),a._uU(9),a.ALo(10,"translate"),a.qZA(),a.qZA(),a.qZA()),2&e&&(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")," "))},directives:[Nl,Il,ql,_h],pipes:[hh],styles:[""]}),e}(),Og=function(){var e=function(){function e(){_classCallCheck(this,e),this.handleNextError=!0}return _createClass(e,[{key:"dontHandleErrorForNext",value:function(){this.handleNextError=!1}},{key:"shouldHandleError",value:function(){var e=this.handleNextError;return this.handleNextError=!0,e}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),xg=function(){var e=function(){function e(t){_classCallCheck(this,e),this.translate=t,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3,this.addNotification=new a.vpe}return _createClass(e,[{key:"getDefaultActionMessage",value:function(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}},{key:"getDefaultRpcMessage",value:function(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}},{key:"showRPCError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]: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)}},{key:"showError",value:function(e,t,n,i,r){this.addNotification.emit({type:"error",error:t,description:n,title:e,actionText:void 0===i&&void 0!==n?this.getDefaultActionMessage():i,delay:this.defaultErrorDelayMs,icon:"error_outline",action:r,timeStamp:"".concat((new Date).getHours(),":").concat((new Date).getMinutes())})}},{key:"showSuccess",value:function(e,t,n,i){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===n&&void 0!==t?this.getDefaultActionMessage():n,delay:this.defaultSuccessDelayMs,icon:"done",action:i,timeStamp:"".concat((new Date).getHours(),":").concat((new Date).getMinutes())})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(lh))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Rg=function(){var e=function(){function e(t,n,i,r,a,o){_classCallCheck(this,e),this.authService=t,this.apiRequestConfiguration=n,this.notificator=i,this.store=r,this.dialog=a,this.initAuthService=o}return _createClass(e,[{key:"intercept",value:function(e,t){var n=this,i=this.store.get("api_url");if(-1!==e.url.indexOf("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==i&&-1!==e.url.toString().indexOf(i)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()){var r=dg();r.width="450px",this.dialog.open(zg,r).afterClosed().subscribe(function(){sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substr(1)),n.authService.startAuthentication()})}e=this.initAuthService.isServiceAccess()?e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}});var a=this.apiRequestConfiguration.shouldHandleError(),o="POST"===e.method&&!this.store.skipOidc()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,Ve.b)(function(e){e instanceof ee.Zn&&o&&n.initAuthService.loadPrincipal()},function(t){var i=n.formatErrors(t,e);return void 0===i?(0,Up._)(t):a?void n.notificator.showRPCError(i):(0,Up._)(i)}))}},{key:"isCallToPerunApi",value:function(e){return e.startsWith(this.store.get("api_url"))}},{key:"formatErrors",value:function(e,t){var n;if(console.error(e),e.error.errorId?n=e.error:e.errorId&&(n=JSON.parse(e.error)),void 0!==n)return n.urlWithParams=t.urlWithParams,n.call=t.url,n.payload=t.body,n}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(Yl),a.LFG(Og),a.LFG(xg),a.LFG(tr),a.LFG(Dl),a.LFG(Sg))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}(),Dg=function(){var e=function(){function e(){_classCallCheck(this,e),this.notificationData=[],this.newNotificationsCount=0}return _createClass(e,[{key:"storeNotification",value:function(e){this.newNotificationsCount++,this.notificationData.push(e)}},{key:"getNotifications",value:function(){return this.notificationData.reverse()}},{key:"clearNotifications",value:function(){this.notificationData=[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Pg=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this.http=t,this.notificator=n,this.authService=i,this.storeService=r}return _createClass(e,[{key:"getApiUrl",value:function(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}},{key:"formatErrors",value:function(e,t,n,i){var r=e.error;return r.call=t,r.payload=n,i&&this.notificator.showRPCError(e.error),(0,Up._)(r)}},{key:"getHeaders",value:function(){var e=new ee.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue())}},{key:"get",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i="".concat(this.getApiUrl()).concat(e);return this.http.get(i,{headers:this.getHeaders()}).pipe((0,Be.K)(function(e){return t.formatErrors(e,i,null,n)}))}},{key:"put",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r="".concat(this.getApiUrl()).concat(e),a=JSON.stringify(n);return this.http.put(r,a,{headers:this.getHeaders()}).pipe((0,Be.K)(function(e){return t.formatErrors(e,r,a,i)}))}},{key:"post",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r="".concat(this.getApiUrl()).concat(e),a=JSON.stringify(n),o=this.getHeaders();return o=o.set("Content-Type","application/json; charset=utf-8"),this.http.post(r,a,{headers:o}).pipe((0,Be.K)(function(e){return t.formatErrors(e,r,a,i)}))}},{key:"delete",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i="".concat(this.getApiUrl()).concat(e);return this.http.delete(i,{headers:this.getHeaders()}).pipe((0,Be.K)(function(e){return t.formatErrors(e,i,null,n)}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(ee.eN),a.LFG(xg),a.LFG(Yl),a.LFG(tr))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Ng=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"isAllSelectedWithDisabledCheckbox",value:function(e,t,n,i,r,a,o,s){var c=this;return this.numSelected=e,this.numCanBeSelected=0,this.pageStart=r*n,this.pageEnd=this.pageStart+n,this.pageIterator=0,this.dataLength=""===t?a.data.length:a.filteredData.length,i||(this.modulo=this.dataLength%n,this.pageEnd=0===this.modulo?this.pageStart+n:this.pageStart+this.modulo),a.sortData(a.filteredData,o).forEach(function(e){c.pageStart<=c.pageIterator&&c.pageIterator closed",[Xo(".3s ease-in")])]);var Bg=Go("flyInOut",[ts(":enter",[Qo({transform:"translateX(100%)"}),Xo(".25s")]),ts(":leave",[Xo(".5s",Qo({transform:"translateX(100%)"}))])]);Go("rollInOut",[ts(":enter",[Qo({height:"0px"}),Xo(".25s")]),ts(":leave",[Xo(".25s",Qo({height:"0px"}))])]),Go("routeAnimations",[ts("* => *",[Qo({position:"relative"}),is(":enter",[Qo({width:"100%",opacity:0})],{optional:!0}),is(":leave",[Qo({position:"absolute",width:"100%",opacity:1}),Xo("0.15s",Qo({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),is(":enter",[Qo({position:"absolute",width:"100%",opacity:0}),Xo("0.15s",Qo({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),Go("tagsOpenClose",[$o("open",Qo({})),$o("closed",Qo({width:"0px",height:"0px"})),ts("open <=> closed",[Xo(".3s ease-in")])]),Go("switchAnimations",[ts("true => false",[is(":enter, :leave",Qo({})),Vo([is(":enter",[Qo({transform:"translateX(-100%)"}),Xo("1s ease-in-out",Qo({transform:"translateX(0%)"}))],{optional:!0}),is(":leave",[Qo({transform:"translateX(0%)",position:"absolute"}),Xo("1s ease-in-out",Qo({transform:"translateX(100%)"}))],{optional:!0})])]),ts("false => true",[is(":enter, :leave",Qo({})),Vo([is(":enter",[Qo({transform:"translateX(100%)"}),Xo("1s ease-in-out",Qo({transform:"translateX(0%)"}))],{optional:!0}),is(":leave",[Qo({transform:"translateX(0%)",position:"absolute"}),Xo("1s ease-in-out",Qo({transform:"translateX(-100%)"}))],{optional:!0})])])]),Go("slideInOutLeft",[ts(":enter",[Qo({transform:"translateX(-100%)",position:"relative"}),Xo("0.5s ease-in",Qo({transform:"translateX(0%)"}))]),ts(":leave",[Xo("0.5s ease-in",Qo({transform:"translateX(-100%)"}))])]),Go("slideInOutRight",[ts(":enter",[Qo({transform:"translateX(100%)",position:"fixed"}),Xo("0.5s ease-in",Qo({transform:"translateX(0%)"}))]),ts(":leave",[Qo({transform:"translateX(-100%)",position:"relative"}),Xo("0.5s ease-in",Qo({transform:"translateX(100%)"}))])]);var Hg,Yg,jg=((Hg=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Hg)},Hg.\u0275mod=a.oAB({type:Hg}),Hg.\u0275inj=a.cJS({imports:[[r.ez]]}),Hg),Fg=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e){var t="";return null!==e.titleBefore&&(t+=e.titleBefore+" "),null!==e.firstName&&(t+=e.firstName+" "),null!==e.middleName&&(t+=e.middleName+" "),null!==e.lastName&&(t+=e.lastName+" "),null!==e.titleAfter&&(t+=e.titleAfter+" "),t.endsWith(" ")&&(t=t.substring(0,t.length-1)),t}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=a.Yjl({name:"userFullName",type:e,pure:!0}),e}(),Wg=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.translate=t,this.storage=n}return _createClass(e,[{key:"transform",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en",n=this.storage.get("custom_labels");if(n)for(var i=Object.keys(n),r=0,a=i;r3&&void 0!==arguments[3]?arguments[3]:500;return function(r){return Dr(i).pipe((0,Oe.w)(function(){return n.dontHandleErrorForNext(),e&&"No namespace"!==e?t.checkPasswordStrength(r.value,e):(0,_e.of)(null)}),(0,ze.U)(function(){return null}),(0,Be.K)(function(e){return(0,_e.of)({backendError:e.error.message.substr(e.error.message.indexOf(":")+1)})}))}},Zg=aa({passive:!0}),Gg=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._platform=t,this._ngZone=n,this._monitoredElements=new Map}return _createClass(e,[{key:"monitor",value:function(e){var t=this;if(!this._platform.isBrowser)return Le.E;var n=sr(e),i=this._monitoredElements.get(n);if(i)return i.subject;var r=new ye.xQ,a="cdk-text-field-autofilled",o=function(e){"cdk-text-field-autofill-start"!==e.animationName||n.classList.contains(a)?"cdk-text-field-autofill-end"===e.animationName&&n.classList.contains(a)&&(n.classList.remove(a),t._ngZone.run(function(){return r.next({target:e.target,isAutofilled:!1})})):(n.classList.add(a),t._ngZone.run(function(){return r.next({target:e.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){n.addEventListener("animationstart",o,Zg),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:r,unlisten:function(){n.removeEventListener("animationstart",o,Zg)}}),r}},{key:"stopMonitoring",value:function(e){var t=sr(e),n=this._monitoredElements.get(t);n&&(n.unlisten(),n.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}},{key:"ngOnDestroy",value:function(){var e=this;this._monitoredElements.forEach(function(t,n){return e.stopMonitoring(n)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(ta),a.LFG(a.R0b))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(ta),a.LFG(a.R0b))},token:e,providedIn:"root"}),e}(),Xg=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this._elementRef=t,this._platform=n,this._ngZone=i,this._destroyed=new ye.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._document=r,this._textareaElement=this._elementRef.nativeElement,this._measuringClass=n.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring"}return _createClass(e,[{key:"minRows",get:function(){return this._minRows},set:function(e){this._minRows=ir(e),this._setMinHeight()}},{key:"maxRows",get:function(){return this._maxRows},set:function(e){this._maxRows=ir(e),this._setMaxHeight()}},{key:"enabled",get:function(){return this._enabled},set:function(e){e=nr(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}},{key:"placeholder",get:function(){return this._textareaElement.placeholder},set:function(e){this._cachedPlaceholderHeight=void 0,this._textareaElement.placeholder=e,this._cacheTextareaPlaceholderHeight()}},{key:"_setMinHeight",value:function(){var e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}},{key:"_setMaxHeight",value:function(){var e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(function(){lr(e._getWindow(),"resize").pipe(Nr(16),Ir(e._destroyed)).subscribe(function(){return e.resizeToFitContent(!0)})}),this._isViewInited=!0,this.resizeToFitContent(!0))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_cacheTextareaLineHeight",value:function(){if(!this._cachedLineHeight){var 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,this._textareaElement.parentNode.removeChild(e),this._setMinHeight(),this._setMaxHeight()}}},{key:"_measureScrollHeight",value:function(){this._textareaElement.classList.add(this._measuringClass);var e=this._textareaElement.scrollHeight-4;return this._textareaElement.classList.remove(this._measuringClass),e}},{key:"_cacheTextareaPlaceholderHeight",value:function(){if(this._isViewInited&&null==this._cachedPlaceholderHeight)if(this.placeholder){var e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}else this._cachedPlaceholderHeight=0}},{key:"ngDoCheck",value:function(){this._platform.isBrowser&&this.resizeToFitContent()}},{key:"resizeToFitContent",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._enabled&&(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),this._cachedLineHeight)){var n=this._elementRef.nativeElement,i=n.value;if(t||this._minRows!==this._previousMinRows||i!==this._previousValue){var r=this._measureScrollHeight(),a=Math.max(r,this._cachedPlaceholderHeight||0);n.style.height="".concat(a,"px"),this._ngZone.runOutsideAngular(function(){"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(function(){return e._scrollToCaretPosition(n)}):setTimeout(function(){return e._scrollToCaretPosition(n)})}),this._previousValue=i,this._previousMinRows=this._minRows}}}},{key:"reset",value:function(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}},{key:"_noopInputHandler",value:function(){}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollToCaretPosition",value:function(e){var t=e.selectionStart,n=e.selectionEnd,i=this._getDocument();this._destroyed.isStopped||i.activeElement!==e||e.setSelectionRange(t,n)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(ta),a.Y36(a.R0b),a.Y36(r.K0,8))},e.\u0275dir=a.lG2({type:e,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&a.NdJ("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),e}(),Vg=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[na]]}),e}(),Jg=new a.OlP("MAT_INPUT_VALUE_ACCESSOR"),Qg=["button","checkbox","file","hidden","image","radio","range","reset","submit"],$g=0,em=Pu(function e(t,n,i,r){_classCallCheck(this,e),this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}),tm=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o,s,c,u,l,h){var d;_classCallCheck(this,n),(d=t.call(this,s,a,o,r))._elementRef=e,d._platform=i,d.ngControl=r,d._autofillMonitor=u,d._formField=h,d._uid="mat-input-"+$g++,d.focused=!1,d.stateChanges=new ye.xQ,d.controlType="mat-input",d.autofilled=!1,d._disabled=!1,d._required=!1,d._type="text",d._readonly=!1,d._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(e){return ra().has(e)});var f=d._elementRef.nativeElement,p=f.nodeName.toLowerCase();return d._inputValueAccessor=c||f,d._previousNativeValue=d.value,d.id=d.id,i.IOS&&l.runOutsideAngular(function(){e.nativeElement.addEventListener("keyup",function(e){var t=e.target;t.value||0!==t.selectionStart||0!==t.selectionEnd||(t.setSelectionRange(1,1),t.setSelectionRange(0,0))})}),d._isServer=!d._platform.isBrowser,d._isNativeSelect="select"===p,d._isTextarea="textarea"===p,d._isNativeSelect&&(d.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select"),d}return _createClass(n,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(e){this._disabled=nr(e),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=nr(e)}},{key:"type",get:function(){return this._type},set:function(e){this._type=e||"text",this._validateType(),!this._isTextarea&&ra().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(e){this._readonly=nr(e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(t){e.autofilled=t.isAutofilled,e.stateChanges.next()})}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_focusChanged",value:function(e){e===this.focused||this.readonly&&e||(this.focused=e,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var e,t,n=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(n!==this._previousPlaceholder){var i=this._elementRef.nativeElement;this._previousPlaceholder=n,n?i.setAttribute("placeholder",n):i.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}},{key:"_validateType",value:function(){Qg.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var 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}},{key:"setDescribedByIds",value:function(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}}]),n}(em);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(ta),a.Y36(Od,10),a.Y36(sf,8),a.Y36(yf,8),a.Y36(Zu),a.Y36(Jg,10),a.Y36(Gg),a.Y36(a.R0b),a.Y36(ed,8))},e.\u0275dir=a.lG2({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(e,t){1&e&&a.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(a.Ikx("disabled",t.disabled)("required",t.required),a.uIk("id",t.id)("data-placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),a.ekj("mat-input-server",t._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[a._Bn([{provide:jh,useExisting:e}]),a.qOj,a.TTD]}),e}(),nm=((Yg=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Yg)},Yg.\u0275mod=a.oAB({type:Yg}),Yg.\u0275inj=a.cJS({providers:[Zu],imports:[[Vg,nd,zu],Vg,nd]}),Yg);function im(e,t){1&e&&(a.TgZ(0,"mat-icon",2),a._uU(1," info "),a.qZA())}function rm(e,t){1&e&&(a.TgZ(0,"mat-icon",2),a._uU(1," warning "),a.qZA())}function am(e,t){1&e&&(a.TgZ(0,"mat-icon",2),a._uU(1," dangerous "),a.qZA())}function om(e,t){1&e&&(a.TgZ(0,"mat-icon",2),a._uU(1," check_circle "),a.qZA())}var sm=["*"],cm=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.Xpm({type:e,selectors:[["app-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:sm,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&&(a.F$t(),a.TgZ(0,"div",0),a.YNc(1,im,2,0,"mat-icon",1),a.YNc(2,rm,2,0,"mat-icon",1),a.YNc(3,am,2,0,"mat-icon",1),a.YNc(4,om,2,0,"mat-icon",1),a.Hsn(5),a.qZA()),2&e&&(a.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),a.xp6(1),a.Q6J("ngIf","info"===t.alert_type),a.xp6(1),a.Q6J("ngIf","warn"===t.alert_type),a.xp6(1),a.Q6J("ngIf","error"===t.alert_type),a.xp6(1),a.Q6J("ngIf","success"===t.alert_type))},directives:[r.O5,sg],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:grey;text-align:left;border:1px solid #b3b3b3;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px solid #ececec;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 solid #fedcda;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px solid #d7ffd7;border-radius:10px;background-color:#d7ffd7}"]}),e}();function um(e,t){if(1&e&&(a.O4$(),a._UZ(0,"circle",3)),2&e){var n=a.oxw();a.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+n._spinnerAnimationLabel)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),a.uIk("r",n._getCircleRadius())}}function lm(e,t){if(1&e&&(a.O4$(),a._UZ(0,"circle",3)),2&e){var n=a.oxw();a.Udp("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),a.uIk("r",n._getCircleRadius())}}function hm(e,t){if(1&e&&(a.O4$(),a._UZ(0,"circle",3)),2&e){var n=a.oxw();a.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+n._spinnerAnimationLabel)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),a.uIk("r",n._getCircleRadius())}}function dm(e,t){if(1&e&&(a.O4$(),a._UZ(0,"circle",3)),2&e){var n=a.oxw();a.Udp("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),a.uIk("r",n._getCircleRadius())}}var fm,pm=".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:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[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-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation: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)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n",gm=xu(function e(t){_classCallCheck(this,e),this._elementRef=t},"primary"),mm=new a.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),vm=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o){var s;_classCallCheck(this,n),(s=t.call(this,e))._elementRef=e,s._document=r,s._diameter=100,s._value=0,s._fallbackAnimation=!1,s.mode="determinate";var c=n._diameters;return s._spinnerAnimationLabel=s._getSpinnerAnimationLabel(),c.has(r.head)||c.set(r.head,new Set([100])),s._fallbackAnimation=i.EDGE||i.TRIDENT,s._noopAnimations="NoopAnimations"===a&&!!o&&!o._forceAnimations,o&&(o.diameter&&(s.diameter=o.diameter),o.strokeWidth&&(s.strokeWidth=o.strokeWidth)),s}return _createClass(n,[{key:"diameter",get:function(){return this._diameter},set:function(e){this._diameter=ir(e),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(e){this._strokeWidth=ir(e)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(e){this._value=Math.max(0,Math.min(100,ir(e)))}},{key:"ngOnInit",value:function(){var e=this._elementRef.nativeElement;this._styleRoot=ca(e)||this._document.head,this._attachStyleNode(),e.classList.add("mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation"))}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var e=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(e," ").concat(e)}},{key:"_getStrokeCircumference",value:function(){return 2*Math.PI*this._getCircleRadius()}},{key:"_getStrokeDashOffset",value:function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}},{key:"_getCircleStrokeWidth",value:function(){return this.strokeWidth/this.diameter*100}},{key:"_attachStyleNode",value:function(){var e=this._styleRoot,t=this._diameter,i=n._diameters,r=i.get(e);if(!r||!r.has(t)){var a=this._document.createElement("style");a.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),a.textContent=this._getAnimationText(),e.appendChild(a),r||(r=new Set,i.set(e,r)),r.add(t)}}},{key:"_getAnimationText",value:function(){var e=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*e).replace(/END_VALUE/g,""+.2*e).replace(/DIAMETER/g,"".concat(this._spinnerAnimationLabel))}},{key:"_getSpinnerAnimationLabel",value:function(){return this.diameter.toString().replace(".","_")}}]),n}(gm);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(ta),a.Y36(r.K0,8),a.Y36(_u,8),a.Y36(mm))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(e,t){2&e&&(a.uIk("aria-valuemin","determinate"===t.mode?0:null)("aria-valuemax","determinate"===t.mode?100:null)("aria-valuenow","determinate"===t.mode?t.value:null)("mode",t.mode),a.Udp("width",t.diameter,"px")("height",t.diameter,"px"),a.ekj("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[a.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(a.O4$(),a.TgZ(0,"svg",0),a.YNc(1,um,1,9,"circle",1),a.YNc(2,lm,1,7,"circle",2),a.qZA()),2&e&&(a.Udp("width",t.diameter,"px")("height",t.diameter,"px"),a.Q6J("ngSwitch","indeterminate"===t.mode),a.uIk("viewBox",t._getViewBox()),a.xp6(1),a.Q6J("ngSwitchCase",!0),a.xp6(1),a.Q6J("ngSwitchCase",!1))},directives:[r.RF,r.n9],styles:[pm],encapsulation:2,changeDetection:0}),e._diameters=new WeakMap,e}(),_m=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o){var s;return _classCallCheck(this,n),(s=t.call(this,e,i,r,a,o)).mode="indeterminate",s}return n}(vm);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(ta),a.Y36(r.K0,8),a.Y36(_u,8),a.Y36(mm))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,t){2&e&&(a.Udp("width",t.diameter,"px")("height",t.diameter,"px"),a.ekj("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color"},features:[a.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(a.O4$(),a.TgZ(0,"svg",0),a.YNc(1,hm,1,9,"circle",1),a.YNc(2,dm,1,7,"circle",2),a.qZA()),2&e&&(a.Udp("width",t.diameter,"px")("height",t.diameter,"px"),a.Q6J("ngSwitch","indeterminate"===t.mode),a.uIk("viewBox",t._getViewBox()),a.xp6(1),a.Q6J("ngSwitchCase",!0),a.xp6(1),a.Q6J("ngSwitchCase",!1))},directives:[r.RF,r.n9],styles:[pm],encapsulation:2,changeDetection:0}),e}(),ym=((fm=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||fm)},fm.\u0275mod=a.oAB({type:fm}),fm.\u0275inj=a.cJS({imports:[[zu,r.ez],zu]}),fm);function bm(e,t){1&e&&a._UZ(0,"mat-spinner",12),2&e&&a.Q6J("diameter",18)}function Am(e,t){if(1&e&&(a.TgZ(0,"mat-icon",13),a._uU(1," error "),a.qZA()),2&e){var n=a.oxw();a.Q6J("matTooltip",n.getErrorTooltip())("matTooltipDisabled",!n.formGroup.get("passwordCtrl").hasError("backendError"))}}function wm(e,t){1&e&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function km(e,t){if(1&e&&(a.TgZ(0,"mat-error",14),a._uU(1),a.qZA()),2&e){var n=a.oxw();a.Q6J("matTooltip",n.getErrorTooltip()),a.xp6(1),a.Oqu(n.getErrorTooltip())}}function Mm(e,t){1&e&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function Cm(e,t){1&e&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}var Tm=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.translator=t,this.usersManagerService=n,this.store=i,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.multiLanguage=!1,this.language="en",this.allPasswordRequirements=this.store.get("password_requirements_help"),this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new Ug}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(function(t){var n=t.userAttributes.find(function(e){return"preferredLanguage"===e.friendlyName});e.language=n&&n.value?n.value.toString():"en","en"!==e.language&&(e.allPasswordRequirements=e.store.get("password_requirements_help_".concat(e.language))),e.changeHelp()}):this.changeHelp()}},{key:"ngOnChanges",value:function(){this.allPasswordRequirements=this.store.get("en"!==this.language?"password_requirements_help_".concat(this.language):"password_requirements_help"),this.changeHelp()}},{key:"getPasswordDisabledTooltip",value:function(){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")}},{key:"getErrorTooltip",value:function(){var e=this.formGroup.get("passwordCtrl").getError("backendError");return e&&(e=e.replace(":null","")),e}},{key:"changeHelp",value:function(){var e=this;this.passwordRequirement=this.allPasswordRequirements.find(function(t){return t.split(":")[0]===e.namespace}),this.passwordRequirement=void 0===this.passwordRequirement?this.allPasswordRequirements.find(function(e){return"default"===e.split(":")[0]}).split(/:(.+)/)[1]:this.passwordRequirement.split(/:(.+)/)[1]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(lh),a.Y36(he),a.Y36(tr))},e.\u0275cmp=a.Xpm({type:e,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",namespace:"namespace",multiLanguage:"multiLanguage",language:"language"},features:[a.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&&(a.TgZ(0,"div",0),a.TgZ(1,"mat-form-field",1),a._UZ(2,"input",2),a.ALo(3,"translate"),a.YNc(4,bm,1,1,"mat-spinner",3),a.TgZ(5,"mat-icon",4),a.NdJ("click",function(){return t.showNewPassword=!t.showNewPassword}),a._uU(6),a.qZA(),a.YNc(7,Am,2,2,"mat-icon",5),a.YNc(8,wm,3,3,"mat-error",6),a.YNc(9,km,2,2,"mat-error",7),a.qZA(),a.TgZ(10,"mat-form-field",8),a.TgZ(11,"mat-label"),a._uU(12),a.ALo(13,"translate"),a.qZA(),a._UZ(14,"input",9),a.TgZ(15,"mat-icon",4),a.NdJ("click",function(){return t.showPasswordConfirm=!t.showPasswordConfirm}),a._uU(16),a.qZA(),a.YNc(17,Mm,3,3,"mat-error",6),a.YNc(18,Cm,3,3,"mat-error",6),a.qZA(),a.TgZ(19,"app-alert",10),a._UZ(20,"div",11),a.qZA(),a.qZA()),2&e&&(a.Q6J("formGroup",t.formGroup),a.xp6(1),a.Q6J("matTooltip",t.getPasswordDisabledTooltip())("matTooltipDisabled",t.formGroup.get("passwordCtrl").enabled),a.xp6(1),a.s9C("placeholder",a.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),a.Q6J("type",t.showNewPassword?"text":"password")("required",t.passwordRequired)("errorStateMatcher",t.passwordStateMatcher),a.xp6(2),a.Q6J("ngIf",t.formGroup.get("passwordCtrl").pending),a.xp6(2),a.hij(" ",t.showNewPassword?"visibility_off":"visibility"," "),a.xp6(1),a.Q6J("ngIf",t.formGroup.get("passwordCtrl").dirty&&null!==t.formGroup.get("passwordCtrl").errors),a.xp6(1),a.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("required")),a.xp6(1),a.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("backendError")),a.xp6(3),a.Oqu(a.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),a.xp6(2),a.Q6J("type",t.showPasswordConfirm?"text":"password")("required",t.passwordRequired),a.xp6(2),a.hij(" ",t.showPasswordConfirm?"visibility_off":"visibility"," "),a.xp6(1),a.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("required")),a.xp6(1),a.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),a.xp6(2),a.Q6J("innerHTML",t.passwordRequirement,a.oJD))},directives:[Dd,yf,td,up,tm,cd,Rd,Af,kf,r.O5,sg,Vh,Kh,cm,_m,Hh],pipes:[hh],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right}.error-icon[_ngcontent-%COMP%], .input-spinner[_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;display:block;margin-top:-1px}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple, [_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{position:static!important;display:table}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}"]}),e}();function Lm(e,t){1&e&&a._UZ(0,"mat-spinner",7)}function Sm(e,t){1&e&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function Em(e,t){1&e&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function zm(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",8),a.TgZ(1,"mat-form-field"),a.TgZ(2,"mat-label"),a._uU(3),a.ALo(4,"translate"),a.qZA(),a.TgZ(5,"input",9,10),a.NdJ("ngModelChange",function(e){return a.CHM(n),a.oxw().subject=e}),a.qZA(),a.YNc(7,Sm,3,3,"mat-error",11),a.qZA(),a.TgZ(8,"mat-form-field"),a.TgZ(9,"mat-label"),a._uU(10),a.ALo(11,"translate"),a.qZA(),a.TgZ(12,"textarea",12,13),a.NdJ("ngModelChange",function(e){return a.CHM(n),a.oxw().message=e}),a.ALo(14,"translate"),a._uU(15," "),a.qZA(),a.YNc(16,Em,3,3,"mat-error",11),a.qZA(),a.qZA()}if(2&e){var i=a.MAs(6),r=a.MAs(13),o=a.oxw();a.xp6(3),a.Oqu(a.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),a.xp6(2),a.Q6J("ngModel",o.subject),a.xp6(2),a.Q6J("ngIf",i.invalid),a.xp6(3),a.Oqu(a.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),a.xp6(2),a.s9C("placeholder",a.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),a.Q6J("ngModel",o.message),a.xp6(4),a.Q6J("ngIf",r.invalid)}}var Om=function(){var e=function(){function e(t,n,i,r,a,o){_classCallCheck(this,e),this.dialogRef=t,this.translate=n,this.notificator=i,this.rtMessages=r,this.data=a,this.storeService=o,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}return _createClass(e,[{key:"ngOnInit",value:function(){this.data.error&&this.data.error.errorId&&(this.subject=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE")+this.parseMethod(this.data.error.call)+" ("+this.data.error.errorId+")")}},{key:"sendBugReport",value:function(){var e=this;this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(function(t){e.dialogRef.afterClosed().subscribe(function(){e.notificator.showSuccess(e.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1")+t.ticketNumber+e.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"))}),e.dialogRef.close()},function(){e.loading=!1,e.dialogRef.afterClosed().subscribe(function(){})})}},{key:"getFullEmailBody",value:function(){var e=this.storeService.get("config"),t=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(t=(t=t.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n")).concat(this.data.error.message+"\nPerun instance: "+e+"\nRequest:\n"+this.data.error.urlWithParams+"\n\n"),this.data.error.payload){var i=JSON.stringify(this.data.error.payload);i=i.replace(/"password":".+?"/,'"password":"####"'),t=t.concat("Payload:\n"+i+"\n\n")}return(t=t.concat("Sended from new Perun Gui, version: "+n(306).i8)).split("\n").join("\n ")}},{key:"parseMethod",value:function(e){return e?this.methodRegexp.exec(e)[1]:e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl),a.Y36(lh),a.Y36(xg),a.Y36(ce),a.Y36(El),a.Y36(tr))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.YNc(3,Lm,1,0,"mat-spinner",1),a.YNc(4,zm,17,13,"div",2),a.TgZ(5,"div",3),a.TgZ(6,"div",4),a.TgZ(7,"button",5),a.NdJ("click",function(){return t.dialogRef.close()}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"button",6),a.NdJ("click",function(){return t.sendBugReport()}),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),a.xp6(2),a.Q6J("ngIf",t.loading),a.xp6(1),a.Q6J("ngIf",!t.loading),a.xp6(4),a.hij(" ",a.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),a.xp6(2),a.Q6J("disabled",""===t.message||""===t.subject||t.loading),a.xp6(1),a.hij(" ",a.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},directives:[Nl,r.O5,ql,_h,_m,Il,td,Kh,tm,cd,kf,Rd,lf,Hh],pipes:[hh],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),e}(),xm=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.dialogRef=t,this.dialog=n,this.data=i}return _createClass(e,[{key:"onCloseClick",value:function(){this.dialogRef.close()}},{key:"onBugReportClick",value:function(){var e=this;this.dialogRef.afterClosed().subscribe(function(){var t=dg();t.width="550px",t.data={error:e.data.error},t.autoFocus=!1,e.dialog.open(Om,t)}),this.dialogRef.close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl),a.Y36(Dl),a.Y36(El))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h1",0),a._uU(1),a.qZA(),a.TgZ(2,"div",1),a._uU(3),a.qZA(),a.TgZ(4,"div",2),a.TgZ(5,"div",3),a.TgZ(6,"button",4),a.NdJ("click",function(){return t.onBugReportClick()}),a._uU(7),a.ALo(8,"translate"),a.qZA(),a.TgZ(9,"button",5),a.NdJ("click",function(){return t.onCloseClick()}),a._uU(10),a.ALo(11,"translate"),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(1),a.Oqu(t.data.title),a.xp6(2),a.hij("\n",t.data.description,"\n"),a.xp6(3),a.Q6J("hidden","error"!==t.data.type),a.xp6(1),a.hij(" ",a.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),a.xp6(3),a.hij(" ",a.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},directives:[Nl,Il,ql,_h],pipes:[hh],styles:[""]}),e}(),Rm=[[["caption"]],[["colgroup"],["col"]]],Dm=["caption","colgroup, col"];function Pm(e){return function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck(this,n);for(var i=arguments.length,r=new Array(i),a=0;a4&&void 0!==arguments[4])||arguments[4],o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],s=arguments.length>6?arguments[6]:void 0;_classCallCheck(this,e),this._isNativeHtmlTable=t,this._stickCellCss=n,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=a,this._needsPositionStickyOnElement=o,this._positionListener=s,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(n,"-border-elem-top"),bottom:"".concat(n,"-border-elem-bottom"),left:"".concat(n,"-border-elem-left"),right:"".concat(n,"-border-elem-right")}}return _createClass(e,[{key:"clearStickyPositioning",value:function(e,t){var n,i=this,r=[],a=_createForOfIteratorHelper(e);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(o.nodeType===o.ELEMENT_NODE){r.push(o);for(var s=0;s3&&void 0!==arguments[3])||arguments[3];if(e.length&&this._isBrowser&&(t.some(function(e){return e})||n.some(function(e){return e}))){var a=e[0],o=a.children.length,s=this._getCellWidths(a,r),c=this._getStickyStartColumnPositions(s,t),u=this._getStickyEndColumnPositions(s,n),l=t.lastIndexOf(!0),h=n.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var r,a="rtl"===i.direction,d=a?"right":"left",f=a?"left":"right",p=_createForOfIteratorHelper(e);try{for(p.s();!(r=p.n()).done;)for(var g=r.value,m=0;m1&&void 0!==arguments[1])||arguments[1];if(!t&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var n=[],i=e.children,r=0;r0;r--)t[r]&&(n[r]=i,i+=e[r]);return n}}]),e}(),ov=new a.OlP("CDK_SPL"),sv=function(){var e=function e(t,n){_classCallCheck(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.s_b),a.Y36(a.SBq))},e.\u0275dir=a.lG2({type:e,selectors:[["","rowOutlet",""]]}),e}(),cv=function(){var e=function e(t,n){_classCallCheck(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.s_b),a.Y36(a.SBq))},e.\u0275dir=a.lG2({type:e,selectors:[["","headerRowOutlet",""]]}),e}(),uv=function(){var e=function e(t,n){_classCallCheck(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.s_b),a.Y36(a.SBq))},e.\u0275dir=a.lG2({type:e,selectors:[["","footerRowOutlet",""]]}),e}(),lv=function(){var e=function e(t,n){_classCallCheck(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.s_b),a.Y36(a.SBq))},e.\u0275dir=a.lG2({type:e,selectors:[["","noDataRowOutlet",""]]}),e}(),hv=function(){var e=function(){function e(t,n,i,r,a,o,s,c,u,l,h){_classCallCheck(this,e),this._differs=t,this._changeDetectorRef=n,this._elementRef=i,this._dir=a,this._platform=s,this._viewRepeater=c,this._coalescedStyleScheduler=u,this._viewportRuler=l,this._stickyPositioningListener=h,this._onDestroy=new ye.xQ,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.viewChange=new Ae({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=o,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return _createClass(e,[{key:"trackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"dataSource",get:function(){return this._dataSource},set:function(e){this._dataSource!==e&&this._switchDataSource(e)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(e){this._multiTemplateDataRows=nr(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(e){this._fixedLayout=nr(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}},{key:"ngOnInit",value:function(){var e=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(t,n){return e.trackBy?e.trackBy(n.dataIndex,n.data):n}),this._viewportRuler.change().pipe(Ir(this._onDestroy)).subscribe(function(){e._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var 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()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),fa(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var e=this;this._renderRows=this._getAllRenderRows();var t=this._dataDiffer.diff(this._renderRows);if(t){var n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,n,function(t,n,i){return e._getEmbeddedViewArgs(t.item,i)},function(e){return e.item.data},function(t){1===t.operation&&t.context&&e._renderCellTemplateForItem(t.record.item.rowDef,t.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(function(e){n.get(e.currentIndex).context.$implicit=e.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}else this._updateNoDataRow()}},{key:"addColumnDef",value:function(e){this._customColumnDefs.add(e)}},{key:"removeColumnDef",value:function(e){this._customColumnDefs.delete(e)}},{key:"addRowDef",value:function(e){this._customRowDefs.add(e)}},{key:"removeRowDef",value:function(e){this._customRowDefs.delete(e)}},{key:"addHeaderRowDef",value:function(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(e){this._customNoDataRow=e}},{key:"updateStickyHeaderRowStyles",value:function(){var e=this._getRenderedRows(this._headerRowOutlet),t=this._elementRef.nativeElement.querySelector("thead");t&&(t.style.display=e.length?"":"none");var n=this._headerRowDefs.map(function(e){return e.sticky});this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,n,"top"),this._headerRowDefs.forEach(function(e){return e.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var e=this._getRenderedRows(this._footerRowOutlet),t=this._elementRef.nativeElement.querySelector("tfoot");t&&(t.style.display=e.length?"":"none");var n=this._footerRowDefs.map(function(e){return e.sticky});this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(function(e){return e.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var e=this,t=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(_toConsumableArray(t),_toConsumableArray(n),_toConsumableArray(i)),["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach(function(t,n){e._addStickyColumnStyles([t],e._headerRowDefs[n])}),this._rowDefs.forEach(function(t){for(var i=[],r=0;r0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(t,n){return e._renderRow(e._headerRowOutlet,t,n)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var e=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(t,n){return e._renderRow(e._footerRowOutlet,t,n)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(e,t){var n=this,i=Array.from(t.columns||[]).map(function(e){return n._columnDefsByName.get(e)}),r=i.map(function(e){return e.sticky}),a=i.map(function(e){return e.stickyEnd});this._stickyStyler.updateStickyColumns(e,r,a,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(e){for(var t=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:{},r=e.viewContainer.createEmbeddedView(t.template,i,n);return this._renderCellTemplateForItem(t,i),r}},{key:"_renderCellTemplateForItem",value:function(e,t){var n,i=_createForOfIteratorHelper(this._getCellTemplates(e));try{for(i.s();!(n=i.n()).done;){var r=n.value;ev.mostRecentCellOutlet&&ev.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,t)}}catch(a){i.e(a)}finally{i.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var e=this._rowOutlet.viewContainer,t=0,n=e.length;t0&&void 0!==arguments[0]?arguments[0]:[];return _classCallCheck(this,n),(e=t.call(this))._renderData=new Ae([]),e._filter=new Ae(""),e._internalPageChanges=new ye.xQ,e._renderChangesSubscription=null,e.sortingDataAccessor=function(e,t){var n=e[t];if(rr(n)){var i=Number(n);return i<9007199254740991?i:n}return n},e.sortData=function(t,n){var i=n.active,r=n.direction;return i&&""!=r?t.sort(function(t,n){var a=e.sortingDataAccessor(t,i),o=e.sortingDataAccessor(n,i),s=typeof a,c=typeof o;s!==c&&("number"===s&&(a+=""),"number"===c&&(o+=""));var u=0;return null!=a&&null!=o?a>o?u=1:a0)){var i=Math.ceil(n.length/n.pageSize)-1||0,r=Math.min(n.pageIndex,i);r!==n.pageIndex&&(n.pageIndex=r,t._internalPageChanges.next())}})}},{key:"connect",value:function(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}},{key:"disconnect",value:function(){var e;null===(e=this._renderChangesSubscription)||void 0===e||e.unsubscribe(),this._renderChangesSubscription=null}}]),n}(function(){return function e(){_classCallCheck(this,e)}}()));function Ev(e,t){1&e&&a._UZ(0,"mat-spinner",3)}function zv(e,t){1&e&&a._UZ(0,"th",15)}function Ov(e,t){if(1&e&&(a.TgZ(0,"td",16),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.hij(" ",n.userExtSource.extSource.name," ")}}function xv(e,t){1&e&&a._UZ(0,"tr",17)}function Rv(e,t){1&e&&a._UZ(0,"tr",18)}function Dv(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div"),a.TgZ(1,"div",4),a.TgZ(2,"p"),a._uU(3),a.ALo(4,"translate"),a.ALo(5,"customTranslate"),a.qZA(),a.TgZ(6,"div",5),a._uU(7),a.ALo(8,"translate"),a.ALo(9,"customTranslate"),a.qZA(),a.TgZ(10,"table",6),a.ynx(11,7),a.YNc(12,zv,1,0,"th",8),a.YNc(13,Ov,2,1,"td",9),a.BQk(),a.YNc(14,xv,1,0,"tr",10),a.YNc(15,Rv,1,0,"tr",11),a.qZA(),a.qZA(),a.TgZ(16,"div",12),a.TgZ(17,"button",13),a.NdJ("click",function(){return a.CHM(n),a.oxw().onCancel()}),a._uU(18),a.ALo(19,"translate"),a.ALo(20,"customTranslate"),a.qZA(),a.TgZ(21,"button",14),a.NdJ("click",function(){return a.CHM(n),a.oxw().onSubmit()}),a._uU(22),a.ALo(23,"translate"),a.ALo(24,"customTranslate"),a.qZA(),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.xp6(3),a.hij(" ",a.lcZ(4,7,a.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),a.xp6(4),a.hij(" ",a.lcZ(8,11,a.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),a.xp6(3),a.Q6J("dataSource",i.dataSource),a.xp6(4),a.Q6J("matHeaderRowDef",i.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",i.displayedColumns),a.xp6(3),a.hij(" ",a.lcZ(19,15,a.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),a.xp6(4),a.hij(" ",a.lcZ(23,19,a.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}var Pv,Nv=function(){var e=function(){function e(t,n,i,r,a){var o=this;_classCallCheck(this,e),this.dialogRef=t,this.data=n,this.usersManagerService=i,this.translate=r,this.notificator=a,this.force=!1,this.displayedColumns=["name"],r.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(function(e){return o.successMessage=e})}return _createClass(e,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new Sv(this.data.extSources)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,this.data.extSources.length?this.usersManagerService.removeUserExtSource(this.data.userId,this.data.extSources.pop().userExtSource.id,this.force).subscribe(function(){e.onSubmit()},function(){return e.loading=!1}):(this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl),a.Y36(El),a.Y36(he),a.Y36(lh),a.Y36(xg))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA(),a.TgZ(4,"div"),a.YNc(5,Ev,1,0,"mat-spinner",1),a.YNc(6,Dv,25,23,"div",2),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,6,a.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE"))),a.xp6(3),a.Tol(t.theme),a.xp6(1),a.Q6J("ngIf",t.loading),a.xp6(1),a.Q6J("ngIf",!t.loading))},directives:[Nl,r.O5,_m,Il,vv,bv,yv,_v,kv,Mv,ql,_h,Av,wv,Cv,Tv],pipes:[hh,Wg],styles:[""]}),e}(),Iv=function(){function e(t,n){_classCallCheck(this,e),this._document=n;var i=this._textarea=this._document.createElement("textarea"),r=i.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",i.setAttribute("aria-hidden","true"),i.value=t,this._document.body.appendChild(i)}return _createClass(e,[{key:"copy",value:function(){var e=this._textarea,t=!1;try{if(e){var n=this._document.activeElement;e.select(),e.setSelectionRange(0,e.value.length),t=this._document.execCommand("copy"),n&&n.focus()}}catch(_E){}return t}},{key:"destroy",value:function(){var e=this._textarea;e&&(e.parentNode&&e.parentNode.removeChild(e),this._textarea=void 0)}}]),e}(),qv=function(){var e=function(){function e(t){_classCallCheck(this,e),this._document=t}return _createClass(e,[{key:"copy",value:function(e){var t=this.beginCopy(e),n=t.copy();return t.destroy(),n}},{key:"beginCopy",value:function(e){return new Iv(e,this._document)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(r.K0))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(r.K0))},token:e,providedIn:"root"}),e}(),Bv=new a.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG"),Hv=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._clipboard=t,this._ngZone=n,this.text="",this.attempts=1,this.copied=new a.vpe,this._pending=new Set,i&&null!=i.attempts&&(this.attempts=i.attempts)}return _createClass(e,[{key:"copy",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.attempts;if(t>1){var n=t,i=this._clipboard.beginCopy(this.text);this._pending.add(i);var r=function t(){var r=i.copy();r||!--n||e._destroyed?(e._currentTimeout=null,e._pending.delete(i),i.destroy(),e.copied.emit(r)):e._currentTimeout=e._ngZone.runOutsideAngular(function(){return setTimeout(t,1)})};r()}else this.copied.emit(this._clipboard.copy(this.text))}},{key:"ngOnDestroy",value:function(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(function(e){return e.destroy()}),this._pending.clear(),this._destroyed=!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(qv),a.Y36(a.R0b),a.Y36(Bv,8))},e.\u0275dir=a.lG2({type:e,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(e,t){1&e&&a.NdJ("click",function(){return t.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),e}(),Yv=((Pv=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Pv)},Pv.\u0275mod=a.oAB({type:Pv}),Pv.\u0275inj=a.cJS({}),Pv),jv=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.dialogRef=t,this.data=n}return _createClass(e,[{key:"ngOnInit",value:function(){this.value=this.data.value,this.title=this.data.title}},{key:"onCancel",value:function(){this.dialogRef.close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl),a.Y36(El))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h1",0),a._uU(1),a.qZA(),a.TgZ(2,"div",1),a.TgZ(3,"textarea",2),a._uU(4),a.qZA(),a.qZA(),a.TgZ(5,"div",3),a.TgZ(6,"button",4),a.NdJ("click",function(){return t.onCancel()}),a._uU(7),a.ALo(8,"translate"),a.qZA(),a.TgZ(9,"button",5),a._uU(10),a.ALo(11,"translate"),a.qZA(),a.qZA()),2&e&&(a.xp6(1),a.Oqu(t.title),a.xp6(3),a.Oqu(t.value),a.xp6(3),a.hij(" ",a.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),a.xp6(2),a.Q6J("cdkCopyToClipboard",t.value),a.xp6(1),a.hij(" ",a.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},directives:[Nl,Il,Xg,tm,ql,_h,Hv],pipes:[hh],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),e}(),Fv=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.dialogRef=t,this.data=n,this.attributeValue=""}return _createClass(e,[{key:"ngOnInit",value:function(){this.attributeValue=this.data.attribute.value[this.data.index]}},{key:"cancel",value:function(){this.dialogRef.close()}},{key:"submit",value:function(){this.data.attribute.value[this.data.index]=this.attributeValue,this.dialogRef.close(!0)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl),a.Y36(El))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h5",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.TgZ(4,"mat-form-field"),a.TgZ(5,"textarea",2),a.NdJ("ngModelChange",function(e){return t.attributeValue=e}),a.qZA(),a.qZA(),a.qZA(),a.TgZ(6,"div",3),a.TgZ(7,"button",4),a.NdJ("click",function(){return t.cancel()}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"button",5),a.NdJ("click",function(){return t.submit()}),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE")),a.xp6(4),a.Q6J("ngModel",t.attributeValue),a.xp6(3),a.hij(" ",a.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),a.xp6(3),a.hij(" ",a.lcZ(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},directives:[Nl,Il,td,Xg,tm,cd,Rd,lf,ql,_h],pipes:[hh],styles:[""]}),e}(),Wv=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.dialogRef=t,this.data=n}return _createClass(e,[{key:"cancel",value:function(){this.dialogRef.close()}},{key:"submit",value:function(){this.dialogRef.close(!0)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl),a.Y36(El))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h5",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.TgZ(4,"div"),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.TgZ(7,"div",2),a._uU(8),a.qZA(),a.qZA(),a.TgZ(9,"div",3),a.TgZ(10,"button",4),a.NdJ("click",function(){return t.cancel()}),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.TgZ(13,"button",5),a.NdJ("click",function(){return t.submit()}),a._uU(14),a.ALo(15,"translate"),a.qZA(),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE")),a.xp6(4),a.hij(" ",a.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),a.xp6(3),a.hij(" ",t.data.name," "),a.xp6(3),a.hij(" ",a.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),a.xp6(3),a.hij(" ",a.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},directives:[Nl,Il,ql,_h],pipes:[hh],styles:[""]}),e}();function Uv(e,t){if(1&e&&(a.TgZ(0,"app-alert",9),a._uU(1),a.qZA()),2&e){var n=a.oxw();a.xp6(1),a.Oqu(n.pendingEmailsMessage)}}function Kv(e,t){1&e&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,a.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}var Zv=function(){var e=function(){function e(t,n,i,r,a,o){var s=this;_classCallCheck(this,e),this.dialogRef=t,this.data=n,this.translate=i,this.notificator=r,this.usersManagerService=a,this.authService=o,this.pendingMails=[],i.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(function(e){return s.successMessage=e}),i.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(function(e){return s.pendingEmailsMessageStart=e}),i.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(function(e){return s.pendingEmailsMessageEnd=e})}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.emailControl=new tf(null,[pd.required,pd.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(function(t){e.pendingMails=t.filter(function(e,t,n){return t===n.indexOf(e)});var n="";e.pendingMails.forEach(function(t){return n+="".concat(t===e.pendingMails[0]?"":", ").concat(t)}),console.log(n),e.pendingEmailsMessage=e.pendingEmailsMessageStart+n+e.pendingEmailsMessageEnd})}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var e=this,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(function(){e.notificator.showSuccess(e.successMessage),e.dialogRef.close()})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl),a.Y36(El),a.Y36(lh),a.Y36(xg),a.Y36(he),a.Y36(Yl))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA(),a.TgZ(4,"div",1),a.YNc(5,Uv,2,1,"app-alert",2),a.TgZ(6,"mat-form-field",3),a.TgZ(7,"label",3),a._UZ(8,"input",4),a.ALo(9,"translate"),a.ALo(10,"customTranslate"),a.qZA(),a.YNc(11,Kv,4,5,"mat-error",5),a.qZA(),a.qZA(),a.TgZ(12,"div",6),a.TgZ(13,"button",7),a.NdJ("click",function(){return t.onCancel()}),a._uU(14),a.ALo(15,"translate"),a.ALo(16,"customTranslate"),a.qZA(),a.TgZ(17,"button",8),a.NdJ("click",function(){return t.onSubmit()}),a._uU(18),a.ALo(19,"translate"),a.ALo(20,"customTranslate"),a.qZA(),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,8,a.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),a.xp6(4),a.Q6J("ngIf",t.pendingMails.length),a.xp6(3),a.s9C("placeholder",a.lcZ(9,12,a.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),a.Q6J("formControl",t.emailControl),a.xp6(3),a.Q6J("ngIf",t.emailControl.invalid),a.xp6(3),a.hij(" ",a.lcZ(15,16,a.lcZ(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),a.xp6(3),a.Q6J("disabled",!t.emailControl.valid),a.xp6(1),a.hij(" ",a.lcZ(19,20,a.lcZ(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},directives:[Nl,Il,r.O5,td,tm,cd,kf,Rd,vf,ql,_h,cm,Hh],pipes:[hh,Wg],styles:[""]}),e}(),Gv=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.dialogRef=t,this.router=n}return _createClass(e,[{key:"onClose",value:function(){this.router.navigate([]),this.dialogRef.close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl),a.Y36(zi))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.TgZ(4,"app-alert",2),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.qZA(),a.TgZ(7,"div",3),a.TgZ(8,"button",4),a.NdJ("click",function(){return t.onClose()}),a._uU(9),a.ALo(10,"translate"),a.qZA(),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE")),a.xp6(4),a.Oqu(a.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),a.xp6(4),a.hij(" ",a.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},directives:[Nl,Il,cm,ql,_h],pipes:[hh],styles:[""]}),e}();function Xv(e,t){1&e&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.FIELD_EMPTY")))}function Vv(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"form",5),a.TgZ(1,"div",6),a.TgZ(2,"mat-form-field"),a.TgZ(3,"mat-label"),a._uU(4),a.ALo(5,"translate"),a.qZA(),a._UZ(6,"input",7),a.TgZ(7,"mat-icon",8),a.NdJ("click",function(){a.CHM(n);var e=a.oxw();return e.showOldPassword=!e.showOldPassword}),a._uU(8),a.qZA(),a.YNc(9,Xv,3,3,"mat-error",9),a.qZA(),a._UZ(10,"perun-web-apps-password-form",10),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.Q6J("formGroup",i.formGroup),a.xp6(4),a.Oqu(a.lcZ(5,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.OLD_PASSWORD")),a.xp6(2),a.Q6J("type",i.showOldPassword?"text":"password"),a.xp6(2),a.hij(" ",i.showOldPassword?"visibility_off":"visibility"," "),a.xp6(1),a.Q6J("ngIf",i.oldPwd.hasError("required")),a.xp6(1),a.Q6J("formGroup",i.formGroup)("namespace",i.data.namespace)}}function Jv(e,t){1&e&&a._UZ(0,"mat-spinner",11)}function Qv(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",12),a.TgZ(1,"div",13),a.TgZ(2,"button",14),a.NdJ("click",function(){return a.CHM(n),a.oxw().close()}),a._uU(3),a.ALo(4,"translate"),a.qZA(),a.TgZ(5,"button",15),a.NdJ("click",function(){return a.CHM(n),a.oxw().changePassword()}),a._uU(6),a.ALo(7,"translate"),a.qZA(),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.xp6(3),a.hij(" ",a.lcZ(4,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CANCEL")," "),a.xp6(2),a.Q6J("disabled",i.formGroup.invalid||i.formGroup.pending),a.xp6(1),a.hij(" ",a.lcZ(7,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CHANGE")," ")}}var $v,e_=function(){var e=function(){function e(t,n,i,r,a,o,s){var c=this;_classCallCheck(this,e),this.dialogRef=t,this.data=n,this._formBuilder=i,this.usersManagerService=r,this.apiRequestConfiguration=a,this.notificator=o,this.translate=s,this.showOldPassword=!1,s.get("SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.SUCCESS").subscribe(function(e){return c.successMessage=e})}return _createClass(e,[{key:"ngOnInit",value:function(){this.formGroup=this._formBuilder.group({oldPasswordCtrl:["",pd.required],passwordCtrl:["",pd.required,[Kg(this.data.namespace,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""]},{validators:Lg.passwordMatchValidator}),this.oldPwd=this.formGroup.get("oldPasswordCtrl"),this.newPwd=this.formGroup.get("passwordCtrl"),this.newPwdAgain=this.formGroup.get("passwordAgainCtrl")}},{key:"close",value:function(){this.dialogRef.close(!1)}},{key:"changePassword",value:function(){var e=this;this.loading=!0,this.usersManagerService.changePasswordForLogin(this.data.login,this.data.namespace,this.newPwd.value,this.oldPwd.value,!0).subscribe(function(){e.notificator.showSuccess(e.successMessage),e.loading=!1,e.dialogRef.close(!0)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl),a.Y36(El),a.Y36(Lf),a.Y36(he),a.Y36(Og),a.Y36(xg),a.Y36(lh))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.YNc(4,Vv,11,9,"form",2),a.YNc(5,Jv,1,0,"mat-spinner",3),a.qZA(),a.YNc(6,Qv,8,7,"div",4)),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.TITLE")),a.xp6(3),a.Q6J("ngIf",!t.loading),a.xp6(1),a.Q6J("ngIf",t.loading),a.xp6(1),a.Q6J("ngIf",!t.loading))},directives:[Nl,Il,r.O5,hf,Dd,yf,td,Kh,cd,tm,Rd,Af,kf,sg,Vh,Tm,Hh,_m,ql,_h],pipes:[hh],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}"]}),e}(),t_=["input"],n_=function(e){return{enterDuration:e}},i_=["*"],r_=new a.OlP("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}}),a_=0,o_={provide:ad,useExisting:(0,a.Gpc)(function(){return l_}),multi:!0},s_=function e(t,n){_classCallCheck(this,e),this.source=t,this.value=n},c_=new a.OlP("MatRadioGroup"),u_=function(){var e=function(){function e(t){_classCallCheck(this,e),this._changeDetector=t,this._value=null,this._name="mat-radio-group-"+a_++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=function(){},this.onTouched=function(){},this.change=new a.vpe}return _createClass(e,[{key:"name",get:function(){return this._name},set:function(e){this._name=e,this._updateRadioButtonNames()}},{key:"labelPosition",get:function(){return this._labelPosition},set:function(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}},{key:"_checkSelectedRadioButton",value:function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}},{key:"selected",get:function(){return this._selected},set:function(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=nr(e),this._markRadiosForCheck()}},{key:"required",get:function(){return this._required},set:function(e){this._required=nr(e),this._markRadiosForCheck()}},{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"_touch",value:function(){this.onTouched&&this.onTouched()}},{key:"_updateRadioButtonNames",value:function(){var e=this;this._radios&&this._radios.forEach(function(t){t.name=e.name,t._markForCheck()})}},{key:"_updateSelectedRadioFromValue",value:function(){var e=this;this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(function(t){t.checked=e.value===t.value,t.checked&&(e._selected=t)}))}},{key:"_emitChangeEvent",value:function(){this._isInitialized&&this.change.emit(new s_(this._selected,this._value))}},{key:"_markRadiosForCheck",value:function(){this._radios&&this._radios.forEach(function(e){return e._markForCheck()})}},{key:"writeValue",value:function(e){this.value=e,this._changeDetector.markForCheck()}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetector.markForCheck()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.sBO))},e.\u0275dir=a.lG2({type:e,inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"}}),e}(),l_=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(u_);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275dir=a.lG2({type:t,selectors:[["mat-radio-group"]],contentQueries:function(e,t,n){var i;(1&e&&a.Suo(n,f_,5),2&e)&&(a.iGM(i=a.CRH())&&(t._radios=i))},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[a._Bn([o_,{provide:c_,useExisting:t}]),a.qOj]}),t}(),h_=Ru(Du(function e(t){_classCallCheck(this,e),this._elementRef=t})),d_=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,s,c,u,l){var h;return _classCallCheck(this,n),(h=t.call(this,i))._changeDetector=r,h._focusMonitor=o,h._radioDispatcher=s,h._providerOverride=u,h._uniqueId="mat-radio-"+ ++a_,h.id=h._uniqueId,h.change=new a.vpe,h._checked=!1,h._value=null,h._removeUniqueSelectionListener=function(){},h.radioGroup=e,h._noopAnimations="NoopAnimations"===c,l&&(h.tabIndex=ir(l,0)),h._removeUniqueSelectionListener=s.listen(function(e,t){e!==h.id&&t===h.name&&(h.checked=!1)}),h}return _createClass(n,[{key:"checked",get:function(){return this._checked},set:function(e){var t=nr(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())}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}},{key:"labelPosition",get:function(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"},set:function(e){this._labelPosition=e}},{key:"disabled",get:function(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled},set:function(e){this._setDisabled(nr(e))}},{key:"required",get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(e){this._required=nr(e)}},{key:"color",get:function(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"},set:function(e){this._color=e}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"focus",value:function(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"ngOnInit",value:function(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){!t&&e.radioGroup&&e.radioGroup._touch()})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}},{key:"_emitChangeEvent",value:function(){this.change.emit(new s_(this,this._value))}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onInputClick",value:function(e){e.stopPropagation()}},{key:"_onInputChange",value:function(e){e.stopPropagation();var t=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),t&&this.radioGroup._emitChangeEvent())}},{key:"_setDisabled",value:function(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}}]),n}(h_);return e.\u0275fac=function(t){return new(t||e)(a.Y36(u_),a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(jo),a.Y36(ma),a.Y36(String),a.Y36(void 0),a.Y36(String))},e.\u0275dir=a.lG2({type:e,viewQuery:function(e,t){var n;(1&e&&a.Gf(t_,5),2&e)&&(a.iGM(n=a.CRH())&&(t._inputElement=n.first))},inputs:{id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},features:[a.qOj]}),e}(),f_=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o,s,c,u){return _classCallCheck(this,n),t.call(this,e,i,r,a,o,s,c,u)}return n}(d_);return e.\u0275fac=function(t){return new(t||e)(a.Y36(c_,8),a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(jo),a.Y36(ma),a.Y36(_u,8),a.Y36(r_,8),a.$8M("tabindex"))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(e,t){1&e&&a.NdJ("focus",function(){return t._inputElement.nativeElement.focus()}),2&e&&(a.uIk("tabindex",null)("id",t.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),a.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:[a.qOj],ngContentSelectors:i_,decls:13,vars:20,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","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","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&&(a.F$t(),a.TgZ(0,"label",0,1),a.TgZ(2,"span",2),a._UZ(3,"span",3),a._UZ(4,"span",4),a.TgZ(5,"input",5,6),a.NdJ("change",function(e){return t._onInputChange(e)})("click",function(e){return t._onInputClick(e)}),a.qZA(),a.TgZ(7,"span",7),a._UZ(8,"span",8),a.qZA(),a.qZA(),a.TgZ(9,"span",9),a.TgZ(10,"span",10),a._uU(11,"\xa0"),a.qZA(),a.Hsn(12),a.qZA(),a.qZA()),2&e){var n=a.MAs(1);a.uIk("for",t.inputId),a.xp6(5),a.Q6J("id",t.inputId)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex)("required",t.required),a.uIk("name",t.name)("value",t.value)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),a.xp6(2),a.Q6J("matRippleTrigger",n)("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",a.VKq(18,n_,t._noopAnimations?0:150)),a.xp6(2),a.ekj("mat-radio-label-before","before"==t.labelPosition)}},directives:[rl],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-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;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-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{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),e}(),p_=(($v=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||$v)},$v.\u0275mod=a.oAB({type:$v}),$v.\u0275inj=a.cJS({imports:[[al,zu],zu]}),$v);function g_(e,t){1&e&&a._UZ(0,"mat-spinner",4)}function m_(e,t){1&e&&(a.TgZ(0,"span",11),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function v_(e,t){1&e&&(a.TgZ(0,"span",11),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function __(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-radio-group",12),a.NdJ("ngModelChange",function(e){return a.CHM(n),a.oxw(2).asyncValidation=e}),a.TgZ(1,"span",13),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"mat-radio-button",14),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.TgZ(7,"mat-radio-button",14),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.qZA()}if(2&e){var i=a.oxw(2);a.Q6J("ngModel",i.asyncValidation),a.xp6(2),a.hij(" ",a.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE"),": "),a.xp6(2),a.Q6J("value",!1),a.xp6(1),a.hij(" ",a.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),a.xp6(2),a.Q6J("value",!0),a.xp6(1),a.hij(" ",a.lcZ(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," ")}}function y_(e,t){1&e&&(a.TgZ(0,"span",11),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function b_(e,t){1&e&&(a.TgZ(0,"span",11),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function A_(e,t){if(1&e&&(a.TgZ(0,"div",5),a.TgZ(1,"p",6),a._uU(2),a.TgZ(3,"span",7),a._uU(4),a.qZA(),a._uU(5),a.TgZ(6,"span",7),a._uU(7),a.qZA(),a.qZA(),a.TgZ(8,"p"),a.TgZ(9,"strong",8),a._uU(10),a.ALo(11,"translate"),a.qZA(),a._uU(12),a.qZA(),a.TgZ(13,"p"),a.TgZ(14,"strong",8),a._uU(15),a.ALo(16,"translate"),a.qZA(),a._uU(17),a.qZA(),a.YNc(18,m_,3,3,"span",9),a.YNc(19,v_,3,3,"span",9),a.YNc(20,__,10,12,"mat-radio-group",10),a.YNc(21,y_,3,3,"span",9),a.YNc(22,b_,3,3,"span",9),a.qZA()),2&e){var n=a.oxw();a.xp6(2),a.hij(" ",n.group.name," "),a.xp6(2),a.hij("#",n.group.id,""),a.xp6(1),a.hij(" - ",n.resource.name," "),a.xp6(2),a.hij("#",n.resource.id,""),a.xp6(3),a.hij("",a.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT"),":"),a.xp6(2),a.hij(" ",n.status," "),a.xp6(3),a.hij("",a.lcZ(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW"),":"),a.xp6(2),a.hij(" ",n.getReversedStatus()," "),a.xp6(1),a.Q6J("ngIf","INACTIVE"===n.status),a.xp6(1),a.Q6J("ngIf","ACTIVE"===n.status),a.xp6(1),a.Q6J("ngIf","INACTIVE"===n.status),a.xp6(1),a.Q6J("ngIf","INACTIVE"===n.status&&!1===n.asyncValidation),a.xp6(1),a.Q6J("ngIf","INACTIVE"===n.status&&!0===n.asyncValidation)}}function w_(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",15),a.TgZ(1,"button",16),a.NdJ("click",function(){return a.CHM(n),a.oxw().onCancel()}),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"button",17),a.NdJ("click",function(){return a.CHM(n),a.oxw().onSubmit()}),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.xp6(2),a.hij(" ",a.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),a.xp6(2),a.Q6J("disabled",i.loading),a.xp6(1),a.hij(" ",a.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG."+("ACTIVE"===i.status?"DEACTIVATE":"ACTIVATE"))," ")}}var k_=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this.dialogRef=t,this.data=n,this.resourceService=i,this.groupService=r,this.loading=!1,this.asyncValidation=!1,this.resource=null,this.group=null}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.status=this.data.status,this.theme=this.data.theme,this.resourceService.getResourceById(this.data.resourceId).subscribe(function(t){e.resource=t,e.groupService.getGroupById(e.data.groupId).subscribe(function(t){e.group=t,e.loading=!1},function(){return e.loading=!1})},function(){return e.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,"ACTIVE"===this.status?this.resourceService.deactivateGroupResourceAssignment(this.data.groupId,this.data.resourceId).subscribe(function(){e.dialogRef.close(!0),e.loading=!1},function(){return e.loading=!1}):this.resourceService.activateGroupResourceAssignment(this.data.groupId,this.data.resourceId,this.asyncValidation).subscribe(function(){e.dialogRef.close(!0),e.loading=!1},function(){return e.loading=!1})}},{key:"getReversedStatus",value:function(){return"ACTIVE"===this.status?"INACTIVE":"ACTIVE"}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl),a.Y36(El),a.Y36(le),a.Y36(oe))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"div"),a.TgZ(1,"h1",0),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,g_,1,0,"mat-spinner",1),a.YNc(5,A_,23,17,"div",2),a.YNc(6,w_,7,7,"div",3),a.qZA()),2&e&&(a.Tol(t.theme),a.xp6(2),a.Oqu(a.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")),a.xp6(2),a.Q6J("ngIf",t.loading),a.xp6(1),a.Q6J("ngIf",!t.loading),a.xp6(1),a.Q6J("ngIf",!t.loading))},directives:[Nl,r.O5,_m,Il,l_,Rd,lf,f_,ql,_h],pipes:[hh],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),e}();function M_(e,t){if(1&e&&(a.TgZ(0,"div",5),a.TgZ(1,"mat-icon"),a._uU(2),a.qZA(),a.qZA()),2&e){var n=a.oxw();a.xp6(2),a.Oqu(n.data.icon)}}function C_(e,t){if(1&e&&(a.TgZ(0,"div",6),a._uU(1),a.qZA()),2&e){var n=a.oxw();a.xp6(1),a.hij(" ",n.showTimestamp()," ")}}var T_=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.dialog=t,this.notificationStorageService=n,this.newNotification=!1,this.closeNotification=new a.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}return _createClass(e,[{key:"doAction",value:function(){var e=this;if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{var t=dg();t.width="550px",t.data=this.data,t.autoFocus=!1,this.dialog.open(xm,t).afterClosed().subscribe(function(){e.closeSelf()})}}},{key:"closeSelf",value:function(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}},{key:"ngOnInit",value:function(){var e=this;!function(t,n){return i=this,a=regeneratorRuntime.mark(function n(){var i;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,i=t,new Promise(function(e){return setTimeout(e,i)});case 2:e.alreadyClosed||e.waiting||e.closeSelf();case 3:case"end":return n.stop()}},n)}),new((r=void 0)||(r=Promise))(function(e,t){function n(e){try{s(a.next(e))}catch(n){t(n)}}function o(e){try{s(a.throw(e))}catch(n){t(n)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof r?i:new r(function(e){e(i)})).then(n,o)}s((a=a.apply(i,[])).next())});var i,r,a}(this.data.delay)}},{key:"showTimestamp",value:function(){var e=_slicedToArray(this.data.timeStamp.split(":"),2),t=e[0],n=e[1];return n.length<2?t+":0"+n:this.data.timeStamp}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Dl),a.Y36(Dg))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"div"),a.TgZ(1,"div",0),a.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),a.YNc(2,M_,3,1,"div",1),a.TgZ(3,"div",2),a._uU(4),a.ALo(5,"translate"),a.qZA(),a.YNc(6,C_,2,1,"div",3),a.TgZ(7,"div",4),a.NdJ("click",function(){return t.waiting=!0,t.doAction()}),a._uU(8),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.Gre("notification ",t.inDialog?"":"mat-elevation-z7",""),a.ekj("error","error"===t.data.type)("success","success"===t.data.type),a.xp6(2),a.Q6J("ngIf",null!==t.data.icon),a.xp6(2),a.hij(" ",a.lcZ(5,12,t.data.title)," "),a.xp6(2),a.Q6J("ngIf",t.inDialog),a.xp6(1),a.Q6J("hidden",t.alreadyPressed),a.xp6(1),a.hij(" ",t.data.actionText," "))},directives:[r.O5,sg],pipes:[hh],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}"]}),e}();function L_(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div"),a.TgZ(1,"perun-web-apps-notification",2),a.NdJ("closeNotification",function(){var e=a.CHM(n).index;return a.oxw().removeNotification(e)}),a.qZA(),a.qZA()}if(2&e){var i=t.$implicit;a.Q6J("@flyInOut",void 0),a.xp6(1),a.Q6J("data",i)("newNotification",!0)}}var S_=function(e){return{top:e}},E_=function(){var e=function(){function e(t,n){var i=this;_classCallCheck(this,e),this.notificator=t,this.notificationStorageService=n,this.mobileView=!1,this.minWidth=992,this.displayWarning=!1,this.notifications=[],this.notificator.addNotification.subscribe(function(e){i.processNotification(e)}),this.getScreenSize()}return _createClass(e,[{key:"getScreenSize",value:function(){this.mobileView=window.innerWidth<=this.minWidth}},{key:"processNotification",value:function(e){this.notifications.push(e),this.notificationStorageService.storeNotification(e)}},{key:"getNotificatorTop",value:function(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}},{key:"removeNotification",value:function(e){this.notifications.splice(e,1)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(xg),a.Y36(Dg))},e.\u0275cmp=a.Xpm({type:e,selectors:[["perun-web-apps-notificator"]],hostBindings:function(e,t){1&e&&a.NdJ("resize",function(e){return t.getScreenSize(e)},!1,a.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&&(a.TgZ(0,"div",0),a.YNc(1,L_,2,3,"div",1),a.qZA()),2&e&&(a.Q6J("ngStyle",a.VKq(2,S_,t.getNotificatorTop())),a.xp6(1),a.Q6J("ngForOf",t.notifications))},directives:[r.PC,r.sg,T_],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width:768px){#notificator[_ngcontent-%COMP%]{width:100%;top:auto;bottom:0}}"],data:{animation:[Bg]}}),e}(),z_=["*",[["mat-toolbar-row"]]],O_=["*","mat-toolbar-row"],x_=xu(function e(t){_classCallCheck(this,e),this._elementRef=t}),R_=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),e}(),D_=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e))._platform=i,a._document=r,a}return _createClass(n,[{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return e._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(x_);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(ta),a.Y36(r.K0))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-toolbar"]],contentQueries:function(e,t,n){var i;(1&e&&a.Suo(n,R_,5),2&e)&&(a.iGM(i=a.CRH())&&(t._toolbarRows=i))},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&a.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[a.qOj],ngContentSelectors:O_,decls:2,vars:0,template:function(e,t){1&e&&(a.F$t(z_),a.Hsn(0),a.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%}\n"],encapsulation:2,changeDetection:0}),e}(),P_=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[zu],zu]}),e}(),N_={provide:a.tb,useFactory:function(e,t){return function(){if((0,r.NF)(t)){var n=Array.from(e.querySelectorAll("[class*=".concat(I_,"]"))),i=/\bflex-layout-.+?\b/g;n.forEach(function(e){e.classList.contains("".concat(I_,"ssr"))&&e.parentNode?e.parentNode.removeChild(e):e.className.replace(i,"")})}}},deps:[r.K0,a.Lbi],multi:!0},I_="flex-layout-",q_=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[N_]}),e}(),B_=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;_classCallCheck(this,e),this.matches=t,this.mediaQuery=n,this.mqAlias=i,this.suffix=r,this.priority=a,this.property=""}return _createClass(e,[{key:"clone",value:function(){return new e(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}]),e}(),H_=function(){var e=function(){function e(){_classCallCheck(this,e),this.stylesheet=new Map}return _createClass(e,[{key:"addStyleToElement",value:function(e,t,n){var i=this.stylesheet.get(e);i?i.set(t,n):this.stylesheet.set(e,new Map([[t,n]]))}},{key:"clearStyles",value:function(){this.stylesheet.clear()}},{key:"getStyleForElement",value:function(e,t){var n=this.stylesheet.get(e),i="";if(n){var r=n.get(t);"number"!=typeof r&&"string"!=typeof r||(i=r+"")}return i}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,a.Yz7)({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Y_={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},j_=new a.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:function(){return Y_}}),F_=new a.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:function(){return!1}}),W_=new a.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:function(){return null}});function U_(e,t){return e=e?e.clone():new B_,t&&(e.mqAlias=t.alias,e.mediaQuery=t.mediaQuery,e.suffix=t.suffix,e.priority=t.priority),e}var K_=["row","column","row-reverse","column-reverse"];function Z_(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}var G_=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this.elementRef=t,this.styleBuilder=n,this.styler=i,this.marshal=r,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new ye.xQ,this.styleCache=new Map}return _createClass(e,[{key:"parentElement",get:function(){return this.elementRef.nativeElement.parentElement}},{key:"nativeElement",get:function(){return this.elementRef.nativeElement}},{key:"activatedValue",get:function(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)},set:function(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}},{key:"ngOnChanges",value:function(e){var t=this;Object.keys(e).forEach(function(n){if(-1!==t.inputs.indexOf(n)){var i=n.split(".").slice(1).join(".");t.setValue(e[n].currentValue,i)}})}},{key:"ngOnDestroy",value:function(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}},{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}},{key:"addStyles",value:function(e,t){var n=this.styleBuilder,i=n.shouldCache,r=this.styleCache.get(e);r&&i||(r=n.buildStyles(e,t),i&&this.styleCache.set(e,r)),this.mru=Object.assign({},r),this.applyStyleToElement(r),n.sideEffect(e,r,t)}},{key:"clearStyles",value:function(){var e=this;Object.keys(this.mru).forEach(function(t){e.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={}}},{key:"triggerUpdate",value:function(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}},{key:"getFlexFlowDirection",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){var n=this.styler.getFlowDirection(e),i=_slicedToArray(n,2),r=i[0],a=i[1];if(!a&&t){var o=function(e){var t=function(e){var t=_slicedToArray((e=e?e.toLowerCase():"").split(" "),3),n=t[0],i=t[1],r=t[2];return K_.find(function(e){return e===n})||(n=K_[0]),"inline"===i&&(i="inline"!==r?r:"",r="inline"),[n,Z_(i),!!r]}(e),n=_slicedToArray(t,3);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e,"flex-wrap":t||null}}(n[0],n[1],n[2])}(r);this.styler.applyStyleToElements(o,[e])}return r.trim()}return"row"}},{key:"hasWrap",value:function(e){return this.styler.hasWrap(e)}},{key:"applyStyleToElement",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.nativeElement;this.styler.applyStyleToElement(n,e,t)}},{key:"setValue",value:function(e,t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,t)}},{key:"updateWithValue",value:function(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}]),e}();return e.\u0275fac=function(e){a.$Z()},e.\u0275dir=a.lG2({type:e,features:[a.TTD]}),e}(),X_=[{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}],V_="(orientation: portrait) and (max-width: 599.98px)",J_="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",Q_="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",$_="(orientation: portrait) and (min-width: 840px)",ey="(orientation: landscape) and (min-width: 1280px)",ty={HANDSET:"".concat(V_,", (orientation: landscape) and (max-width: 959.98px)"),TABLET:"".concat(J_," , ").concat(Q_),WEB:"".concat($_,", ").concat(ey," "),HANDSET_PORTRAIT:"".concat(V_),TABLET_PORTRAIT:"".concat(J_," "),WEB_PORTRAIT:"".concat($_),HANDSET_LANDSCAPE:"(orientation: landscape) and (max-width: 959.98px)",TABLET_LANDSCAPE:"".concat(Q_),WEB_LANDSCAPE:"".concat(ey)},ny=[{alias:"handset",priority:2e3,mediaQuery:ty.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:ty.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:ty.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:ty.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:ty.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:ty.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:ty.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:ty.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:ty.WEB_PORTRAIT,overlapping:!0}],iy=/(\.|-|_)/g;function ry(e){var t=e.length>0?e.charAt(0):"",n=e.length>1?e.slice(1):"";return t.toUpperCase()+n}var ay=new a.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var e=(0,a.f3M)(W_),t=(0,a.f3M)(j_),n=[].concat.apply([],(e||[]).map(function(e){return Array.isArray(e)?e:[e]}));return function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i={};return e.forEach(function(e){i[e.alias]=e}),n.forEach(function(e){i[e.alias]?function(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i1&&void 0!==arguments[1]&&arguments[1];if(e&&e.length){var i=this._observable$.pipe((0,me.h)(function(t){return!n||e.indexOf(t.mediaQuery)>-1})),r=new ke.y(function(n){var i=t.registerQuery(e);if(i.length){var r=i.pop();i.forEach(function(e){n.next(e)}),t.source.next(r)}n.complete()});return(0,Oa.T)(r,i)}return this._observable$}},{key:"registerQuery",value:function(e){var t=this,n=Array.isArray(e)?e:[e],i=[];return function(e,t){var n=e.filter(function(e){return!ly[e]});if(n.length>0){var i=n.join(", ");try{var r=t.createElement("style");r.setAttribute("type","text/css"),r.styleSheet||r.appendChild(t.createTextNode("\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ".concat(i," {.fx-query-test{ }}\n"))),t.head.appendChild(r),n.forEach(function(e){return ly[e]=r})}catch(a){console.error(a)}}}(n,this._document),n.forEach(function(e){var n=function(n){t._zone.run(function(){return t.source.next(new B_(n.matches,e))})},r=t.registry.get(e);r||((r=t.buildMQL(e)).addListener(n),t.pendingRemoveListenerFns.push(function(){return r.removeListener(n)}),t.registry.set(e,r)),r.matches&&i.push(new B_(!0,e))}),i}},{key:"ngOnDestroy",value:function(){for(var e;e=this.pendingRemoveListenerFns.pop();)e()}},{key:"buildMQL",value:function(e){return function(e,t){return t&&window.matchMedia("all").addListener?window.matchMedia(e):{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){},onchange:null,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){return!1}}}(e,(0,r.NF)(this._platformId))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(a.R0b),a.LFG(a.Lbi),a.LFG(r.K0))},e.\u0275prov=(0,a.Yz7)({factory:function(){return new e((0,a.LFG)(a.R0b),(0,a.LFG)(a.Lbi),(0,a.LFG)(r.K0))},token:e,providedIn:"root"}),e}(),ly={},hy={alias:"print",mediaQuery:"print",priority:1e3},dy=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.breakpoints=t,this.layoutConfig=n,this._document=i,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new fy,this.deactivations=[]}return _createClass(e,[{key:"withPrintQuery",value:function(e){return[].concat(_toConsumableArray(e),["print"])}},{key:"isPrintEvent",value:function(e){return e.mediaQuery.startsWith("print")}},{key:"printAlias",get:function(){return this.layoutConfig.printWithBreakpoints||[]}},{key:"printBreakPoints",get:function(){var e=this;return this.printAlias.map(function(t){return e.breakpoints.findByAlias(t)}).filter(function(e){return null!==e})}},{key:"getEventBreakpoints",value:function(e){var t=e.mediaQuery,n=this.breakpoints.findByQuery(t);return(n?[].concat(_toConsumableArray(this.printBreakPoints),[n]):this.printBreakPoints).sort(oy)}},{key:"updateEvent",value:function(e){var t=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(t=this.getEventBreakpoints(e)[0],e.mediaQuery=t?t.mediaQuery:""),U_(e,t)}},{key:"registerBeforeAfterPrintHooks",value:function(e){var t=this;if(this._document.defaultView&&!this.registeredBeforeAfterPrintHooks){this.registeredBeforeAfterPrintHooks=!0;var n=function(){t.isPrinting||(t.isPrintingBeforeAfterEvent=!0,t.startPrinting(e,t.getEventBreakpoints(new B_(!0,"print"))),e.updateStyles())},i=function(){t.isPrintingBeforeAfterEvent=!1,t.isPrinting&&(t.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",n),this._document.defaultView.addEventListener("afterprint",i),this.beforePrintEventListeners.push(n),this.afterPrintEventListeners.push(i)}}},{key:"interceptEvents",value:function(e){var t=this;return this.registerBeforeAfterPrintHooks(e),function(n){t.isPrintEvent(n)?n.matches&&!t.isPrinting?(t.startPrinting(e,t.getEventBreakpoints(n)),e.updateStyles()):n.matches||!t.isPrinting||t.isPrintingBeforeAfterEvent||(t.stopPrinting(e),e.updateStyles()):t.collectActivations(n)}}},{key:"blockPropagation",value:function(){var e=this;return function(t){return!(e.isPrinting||e.isPrintEvent(t))}}},{key:"startPrinting",value:function(e,t){this.isPrinting=!0,e.activatedBreakpoints=this.queue.addPrintBreakpoints(t)}},{key:"stopPrinting",value:function(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}},{key:"collectActivations",value:function(e){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(e.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{var t=this.breakpoints.findByQuery(e.mediaQuery);t&&(this.deactivations.push(t),this.deactivations.sort(oy))}}},{key:"ngOnDestroy",value:function(){var e=this;this._document.defaultView&&(this.beforePrintEventListeners.forEach(function(t){return e._document.defaultView.removeEventListener("beforeprint",t)}),this.afterPrintEventListeners.forEach(function(t){return e._document.defaultView.removeEventListener("afterprint",t)}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(cy),a.LFG(j_),a.LFG(r.K0))},e.\u0275prov=(0,a.Yz7)({factory:function(){return new e((0,a.LFG)(cy),(0,a.LFG)(j_),(0,a.LFG)(r.K0))},token:e,providedIn:"root"}),e}(),fy=function(){function e(){_classCallCheck(this,e),this.printBreakpoints=[]}return _createClass(e,[{key:"addPrintBreakpoints",value:function(e){var t=this;return e.push(hy),e.sort(oy),e.forEach(function(e){return t.addBreakpoint(e)}),this.printBreakpoints}},{key:"addBreakpoint",value:function(e){e&&void 0===this.printBreakpoints.find(function(t){return t.mediaQuery===e.mediaQuery})&&(this.printBreakpoints=function(e){return!!e&&e.mediaQuery.startsWith("print")}(e)?[e].concat(_toConsumableArray(this.printBreakpoints)):[].concat(_toConsumableArray(this.printBreakpoints),[e]))}},{key:"clear",value:function(){this.printBreakpoints=[]}}]),e}();function py(e){for(var t in e){var n=e[t]||"";switch(t){case"display":e.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;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":e["-webkit-"+t]=n;break;case"flex-direction":n=n||"row",e["-webkit-flex-direction"]=n,e["flex-direction"]=n;break;case"order":e.order=e["-webkit-"+t]=isNaN(+n)?"0":n}}return e}var gy=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this._serverStylesheet=t,this._serverModuleLoaded=n,this._platformId=i,this.layoutConfig=r}return _createClass(e,[{key:"applyStyleToElement",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i={};"string"==typeof t&&(i[t]=n,t=i),i=this.layoutConfig.disableVendorPrefixes?t:py(t),this._applyMultiValueStyleToElement(i,e)}},{key:"applyStyleToElements",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=this.layoutConfig.disableVendorPrefixes?e:py(e);n.forEach(function(e){t._applyMultiValueStyleToElement(i,e)})}},{key:"getFlowDirection",value:function(e){var t=this.lookupStyle(e,"flex-direction");return[t||"row",this.lookupInlineStyle(e,"flex-direction")||(0,r.PM)(this._platformId)&&this._serverModuleLoaded?t:""]}},{key:"hasWrap",value:function(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}},{key:"lookupAttributeValue",value:function(e,t){return e.getAttribute(t)||""}},{key:"lookupInlineStyle",value:function(e,t){return(0,r.NF)(this._platformId)?e.style.getPropertyValue(t):this._getServerStyle(e,t)}},{key:"lookupStyle",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i="";return e&&((i=this.lookupInlineStyle(e,t))||((0,r.NF)(this._platformId)?n||(i=getComputedStyle(e).getPropertyValue(t)):this._serverModuleLoaded&&(i=this._serverStylesheet.getStyleForElement(e,t)))),i?i.trim():""}},{key:"_applyMultiValueStyleToElement",value:function(e,t){var n=this;Object.keys(e).sort().forEach(function(i){var a=e[i],o=Array.isArray(a)?a:[a];o.sort();var s,c=_createForOfIteratorHelper(o);try{for(c.s();!(s=c.n()).done;){var u=s.value;u=u?u+"":"",(0,r.NF)(n._platformId)||!n._serverModuleLoaded?(0,r.NF)(n._platformId)?t.style.setProperty(i,u):n._setServerStyle(t,i,u):n._serverStylesheet.addStyleToElement(t,i,u)}}catch(l){c.e(l)}finally{c.f()}})}},{key:"_setServerStyle",value:function(e,t,n){t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();var i=this._readStyleAttribute(e);i[t]=n||"",this._writeStyleAttribute(e,i)}},{key:"_getServerStyle",value:function(e,t){return this._readStyleAttribute(e)[t]||""}},{key:"_readStyleAttribute",value:function(e){var t={},n=e.getAttribute("style");if(n)for(var i=n.split(/;+/g),r=0;r0){var o=a.indexOf(":");if(-1===o)throw new Error("Invalid CSS style: ".concat(a));t[a.substr(0,o).trim()]=a.substr(o+1).trim()}}return t}},{key:"_writeStyleAttribute",value:function(e,t){var n="";for(var i in t)t[i]&&(n+=i+":"+t[i]+";");e.setAttribute("style",n)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(H_),a.LFG(F_),a.LFG(a.Lbi),a.LFG(j_))},e.\u0275prov=(0,a.Yz7)({factory:function(){return new e((0,a.LFG)(H_),(0,a.LFG)(F_),(0,a.LFG)(a.Lbi),(0,a.LFG)(j_))},token:e,providedIn:"root"}),e}(),my=function(){function e(){_classCallCheck(this,e),this.shouldCache=!0}return _createClass(e,[{key:"sideEffect",value:function(e,t,n){}}]),e}(),vy=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.matchMedia=t,this.breakpoints=n,this.hook=i,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 ye.xQ,this.observeActivations()}return _createClass(e,[{key:"activatedAlias",get:function(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}},{key:"onMediaChange",value:function(e){var t=this.findByQuery(e.mediaQuery);t&&((e=U_(e,t)).matches&&-1===this.activatedBreakpoints.indexOf(t)?(this.activatedBreakpoints.push(t),this.activatedBreakpoints.sort(oy),this.updateStyles()):e.matches||-1===this.activatedBreakpoints.indexOf(t)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(t),1),this.activatedBreakpoints.sort(oy),this.updateStyles()))}},{key:"init",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];_y(this.updateMap,e,t,n),_y(this.clearMap,e,t,i),this.buildElementKeyMap(e,t),this.watchExtraTriggers(e,t,r)}},{key:"getValue",value:function(e,t,n){var i=this.elementMap.get(e);if(i){var r=void 0!==n?i.get(n):this.getActivatedValues(i,t);if(r)return r.get(t)}}},{key:"hasValue",value:function(e,t){var n=this.elementMap.get(e);if(n){var i=this.getActivatedValues(n,t);if(i)return void 0!==i.get(t)||!1}return!1}},{key:"setValue",value:function(e,t,n,i){var r=this.elementMap.get(e);if(r){var a=(r.get(i)||new Map).set(t,n);r.set(i,a),this.elementMap.set(e,r)}else r=(new Map).set(i,(new Map).set(t,n)),this.elementMap.set(e,r);var o=this.getValue(e,t);void 0!==o&&this.updateElement(e,t,o)}},{key:"trackValue",value:function(e,t){return this.subject.asObservable().pipe((0,me.h)(function(n){return n.element===e&&n.key===t}))}},{key:"updateStyles",value:function(){var e=this;this.elementMap.forEach(function(t,n){var i=new Set(e.elementKeyMap.get(n)),r=e.getActivatedValues(t);r&&r.forEach(function(t,r){e.updateElement(n,r,t),i.delete(r)}),i.forEach(function(i){if(r=e.getActivatedValues(t,i)){var a=r.get(i);e.updateElement(n,i,a)}else e.clearElement(n,i)})})}},{key:"clearElement",value:function(e,t){var n=this.clearMap.get(e);if(n){var i=n.get(t);i&&(i(),this.subject.next({element:e,key:t,value:""}))}}},{key:"updateElement",value:function(e,t,n){var i=this.updateMap.get(e);if(i){var r=i.get(t);r&&(r(n),this.subject.next({element:e,key:t,value:n}))}}},{key:"releaseElement",value:function(e){var t=this.watcherMap.get(e);t&&(t.forEach(function(e){return e.unsubscribe()}),this.watcherMap.delete(e));var n=this.elementMap.get(e);n&&(n.forEach(function(e,t){return n.delete(t)}),this.elementMap.delete(e))}},{key:"triggerUpdate",value:function(e,t){var n=this,i=this.elementMap.get(e);if(i){var r=this.getActivatedValues(i,t);r&&(t?this.updateElement(e,t,r.get(t)):r.forEach(function(t,i){return n.updateElement(e,i,t)}))}}},{key:"buildElementKeyMap",value:function(e,t){var n=this.elementKeyMap.get(e);n||(n=new Set,this.elementKeyMap.set(e,n)),n.add(t)}},{key:"watchExtraTriggers",value:function(e,t,n){var i=this;if(n&&n.length){var r=this.watcherMap.get(e);if(r||(r=new Map,this.watcherMap.set(e,r)),!r.get(t)){var a=Oa.T.apply(void 0,_toConsumableArray(n)).subscribe(function(){var n=i.getValue(e,t);i.updateElement(e,t,n)});r.set(t,a)}}}},{key:"findByQuery",value:function(e){return this.breakpoints.findByQuery(e)}},{key:"getActivatedValues",value:function(e,t){for(var n=0;n2&&void 0!==arguments[2])||arguments[2];_classCallCheck(this,e),this.key=t,this.value=n,this.key=i?t.replace(/['"]/g,"").trim():t.trim(),this.value=i?n.replace(/['"]/g,"").trim():n.trim(),this.value=this.value.replace(/;/,"")};function by(e){var t=typeof e;return"object"===t?e.constructor===Array?"array":e.constructor===Set?"set":"object":t}function Ay(e){var t=_toArray(e.split(":")),n=t[0],i=t.slice(1);return new yy(n,i.join(":"))}function wy(e,t){return t.key&&(e[t.key]=t.value),e}var ky=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,o,s,c,u,l,h){var d;_classCallCheck(this,n),(d=t.call(this,e,null,i,a)).sanitizer=o,d.ngStyleInstance=u,d.DIRECTIVE_KEY="ngStyle",d.ngStyleInstance||(d.ngStyleInstance=new r.PC(e,s,c)),d.init();var f=d.nativeElement.getAttribute("style")||"";return d.fallbackStyles=d.buildStyleMap(f),d.isServer=l&&(0,r.PM)(h),d}return _createClass(n,[{key:"updateWithValue",value:function(e){var t=this.buildStyleMap(e);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),t),this.isServer&&this.applyStyleToElement(t),this.ngStyleInstance.ngDoCheck()}},{key:"clearStyles",value:function(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}},{key:"buildStyleMap",value:function(e){var t,n,i,r=this,o=function(e){return r.sanitizer.sanitize(a.q3G.STYLE,e)||""};if(e)switch(by(e)){case"string":return Ty(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:";";return String(e).trim().split(t).map(function(e){return e.trim()}).filter(function(e){return""!==e})}(e),o);case"array":return Ty(e,o);case"set":default:return n=o,i=[],"set"===by(t=e)?t.forEach(function(e){return i.push(e)}):Object.keys(t).forEach(function(e){i.push("".concat(e,":").concat(t[e]))}),function(e,t){return e.map(Ay).filter(function(e){return!!e}).map(function(e){return t&&(e.value=t(e.value)),e}).reduce(wy,{})}(i,n)}return{}}},{key:"ngDoCheck",value:function(){this.ngStyleInstance.ngDoCheck()}}]),n}(G_);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(gy),a.Y36(vy),a.Y36(x),a.Y36(a.aQg),a.Y36(a.Qsj),a.Y36(r.PC,10),a.Y36(F_),a.Y36(a.Lbi))},e.\u0275dir=a.lG2({type:e,features:[a.qOj]}),e}(),My=["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"],Cy=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments)).inputs=My,e}return n}(ky);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275dir=a.lG2({type:t,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:[a.qOj]}),t}();function Ty(e,t){return e.map(Ay).filter(function(e){return!!e}).map(function(e){return t&&(e.value=t(e.value)),e}).reduce(wy,{})}var Ly=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[q_]]}),e}(),Sy=function(e){return{color:e}};function Ey(e,t){if(1&e&&(a.TgZ(0,"button",8),a.ALo(1,"translate"),a.TgZ(2,"mat-icon",4),a._uU(3," apps "),a.qZA(),a.qZA()),2&e){var n=a.oxw(),i=a.MAs(2);a.Q6J("matMenuTriggerFor",i)("matTooltip",a.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),a.xp6(2),a.Q6J("ngStyle",a.VKq(5,Sy,n.iconColor))}}function zy(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",2),a.NdJ("click",function(){return a.CHM(n),a.oxw().onLogOut()}),a._uU(1),a.ALo(2,"translate"),a.qZA()}2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"NAV.LOGOUT")))}var Oy=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this.authService=t,this.authzResolverService=n,this.notificator=i,this.translateService=r}return _createClass(e,[{key:"redirectToUrl",value:function(){window.open(this.url,"_blank")}},{key:"onLogOut",value:function(){this.authService.logout()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Yl),a.Y36(ae),a.Y36(xg),a.Y36(lh))},e.\u0275cmp=a.Xpm({type:e,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:14,vars:15,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],[1,"d-none","d-lg-inline",3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"]],template:function(e,t){if(1&e&&(a.YNc(0,Ey,4,7,"button",0),a.TgZ(1,"mat-menu",null,1),a.TgZ(3,"button",2),a.NdJ("click",function(){return t.redirectToUrl()}),a.TgZ(4,"span"),a._uU(5),a.qZA(),a.qZA(),a.qZA(),a.TgZ(6,"button",3),a.TgZ(7,"mat-icon",4),a._uU(8," person "),a.qZA(),a.TgZ(9,"span",5),a._uU(10),a.qZA(),a.qZA(),a.TgZ(11,"mat-menu",null,6),a.YNc(13,zy,3,3,"button",7),a.qZA()),2&e){var n=a.MAs(12);a.Q6J("ngIf",t.url),a.xp6(5),a.Oqu(t.label),a.xp6(1),a.Q6J("matMenuTriggerFor",n),a.xp6(1),a.Q6J("ngStyle",a.VKq(11,Sy,t.iconColor)),a.xp6(2),a.Q6J("ngStyle",a.VKq(13,Sy,t.textColor)),a.xp6(1),a.xDo(" ",t.user.titleBefore," ",t.user.firstName," ",t.user.middleName," ",t.user.lastName," ",t.user.titleAfter," "),a.xp6(3),a.Q6J("ngIf",t.logoutEnabled)}},directives:[r.O5,qp,Dp,_h,jp,sg,r.PC,up],pipes:[hh],styles:["@media (max-width:991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),e}(),xy=function(e){return{color:e}};function Ry(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",7),a.NdJ("click",function(){return a.CHM(n),a.oxw().onToggleSidenav()}),a.TgZ(1,"mat-icon"),a._uU(2,"menu"),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.Q6J("ngStyle",a.VKq(1,xy,i.iconColor))}}function Dy(e,t){1&e&&(a.TgZ(0,"div",8),a.TgZ(1,"span",9),a._uU(2," ~ \ud83d\uddf2\xa0 "),a.qZA(),a.TgZ(3,"span",10),a._uU(4," DEVEL "),a.qZA(),a.TgZ(5,"span",9),a._uU(6," \ud83d\uddf2 ~ "),a.qZA(),a.qZA())}var Py=function(e){return{background:e}},Ny=function(){return[]},Iy=function(){return["/"]},qy=function(){var e=function(){function e(t,n,i,r){var o=this;_classCallCheck(this,e),this.storeService=t,this.sanitizer=n,this.translate=i,this.otherApplicationService=r,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.sidenavToggle=new a.vpe,this.hideToggle=!1,this.disableLogo=!1,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=function(){o.sidenavToggle.emit()}}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.isDevel=this.storeService.get("is_devel"),this.translate.onLangChange.subscribe(function(t){e.label=e.storeService.get("header_label_".concat(t.lang)),e.adminLabel=e.storeService.get("admin_gui_label_".concat(t.lang))}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo")),this.isLinkToGuiActive()}},{key:"isLinkToGuiActive",value:function(){for(var e in this.linkRoles=this.storeService.get("link_to_admin_gui_by_roles"),this.storeService.getPerunPrincipal().roles)this.linkRoles.includes(e)&&(this.activeLink=!0);this.activeLink&&(this.adminGuiUrl=this.otherApplicationService.getUrlForOtherApplication("admin"))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(tr),a.Y36(x),a.Y36(lh),a.Y36(qg))},e.\u0275cmp=a.Xpm({type:e,selectors:[["perun-web-apps-header"]],inputs:{hideToggle:"hideToggle",disableLogo:"disableLogo"},outputs:{sidenavToggle:"sidenavToggle"},decls:8,vars:19,consts:[[1,"sticky-top","header-container",3,"ngStyle"],["id","nav-menu-icons"],["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"],["mat-icon-button","",3,"ngStyle","click"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(e,t){1&e&&(a.TgZ(0,"mat-toolbar",0),a.TgZ(1,"div",1),a.YNc(2,Ry,3,3,"button",2),a._UZ(3,"a",3),a.TgZ(4,"p",4),a._uU(5),a.qZA(),a.qZA(),a.YNc(6,Dy,7,0,"div",5),a._UZ(7,"perun-web-apps-header-menu",6),a.qZA()),2&e&&(a.Q6J("ngStyle",a.VKq(13,Py,t.bgColor)),a.xp6(2),a.Q6J("ngIf",!t.hideToggle),a.xp6(1),a.Q6J("innerHTML",t.logo,a.oJD)("routerLink",t.disableLogo?a.DdM(15,Ny):a.DdM(16,Iy)),a.xp6(1),a.Q6J("ngStyle",a.VKq(17,xy,t.textColor)),a.xp6(1),a.Oqu(t.label),a.xp6(1),a.Q6J("ngIf",t.isDevel),a.xp6(1),a.Q6J("url",t.adminGuiUrl)("label",t.adminLabel)("user",t.principal.user)("logoutEnabled",t.logoutEnabled)("iconColor",t.iconColor)("textColor",t.textColor))},directives:[D_,r.PC,Cy,r.O5,xi,Oy,_h,sg],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}"]}),e}();function By(e){return function(t){return t.lift(new Hy(e))}}var Hy=function(){function e(t){_classCallCheck(this,e),this.value=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Yy(e,this.value))}}]),e}(),Yy=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).value=i,r}return _createClass(n,[{key:"_next",value:function(e){this.destination.next(this.value)}}]),n}(Pe.L),jy=["*"];function Fy(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",2),a.NdJ("click",function(){return a.CHM(n),a.oxw()._onBackdropClicked()}),a.qZA()}if(2&e){var i=a.oxw();a.ekj("mat-drawer-shown",i._isShowingBackdrop())}}function Wy(e,t){1&e&&(a.TgZ(0,"mat-drawer-content"),a.Hsn(1,2),a.qZA())}var Uy=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Ky=["mat-drawer","mat-drawer-content","*"];function Zy(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",2),a.NdJ("click",function(){return a.CHM(n),a.oxw()._onBackdropClicked()}),a.qZA()}if(2&e){var i=a.oxw();a.ekj("mat-drawer-shown",i._isShowingBackdrop())}}function Gy(e,t){1&e&&(a.TgZ(0,"mat-sidenav-content",3),a.Hsn(1,2),a.qZA())}var Xy=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Vy=["mat-sidenav","mat-sidenav-content","*"],Jy=".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-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",Qy={transformDrawer:Go("transform",[$o("open, open-instant",Qo({transform:"none",visibility:"visible"})),$o("void",Qo({"box-shadow":"none",visibility:"hidden"})),ts("void => open-instant",Xo("0ms")),ts("void <=> open, open-instant => void",Xo("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},$y=new a.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),eb=new a.OlP("MAT_DRAWER_CONTAINER"),tb=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o){var s;return _classCallCheck(this,n),(s=t.call(this,r,a,o))._changeDetectorRef=e,s._container=i,s}return _createClass(n,[{key:"ngAfterContentInit",value:function(){var e=this;this._container._contentMarginChanges.subscribe(function(){e._changeDetectorRef.markForCheck()})}}]),n}(ya);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.sBO),a.Y36((0,a.Gpc)(function(){return ib})),a.Y36(a.SBq),a.Y36(_a),a.Y36(a.R0b))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&a.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[a.qOj],ngContentSelectors:jy,decls:1,vars:0,template:function(e,t){1&e&&(a.F$t(),a.Hsn(0))},encapsulation:2,changeDetection:0}),e}(),nb=function(){var e=function(){function e(t,n,i,r,o,s,c){var u=this;_classCallCheck(this,e),this._elementRef=t,this._focusTrapFactory=n,this._focusMonitor=i,this._platform=r,this._ngZone=o,this._doc=s,this._container=c,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new ye.xQ,this._animationEnd=new ye.xQ,this._animationState="void",this.openedChange=new a.vpe(!0),this._openedStream=this.openedChange.pipe((0,me.h)(function(e){return e}),(0,ze.U)(function(){})),this.openedStart=this._animationStarted.pipe((0,me.h)(function(e){return e.fromState!==e.toState&&0===e.toState.indexOf("open")}),By(void 0)),this._closedStream=this.openedChange.pipe((0,me.h)(function(e){return!e}),(0,ze.U)(function(){})),this.closedStart=this._animationStarted.pipe((0,me.h)(function(e){return e.fromState!==e.toState&&"void"===e.toState}),By(void 0)),this._destroyed=new ye.xQ,this.onPositionChanged=new a.vpe,this._modeChanged=new ye.xQ,this.openedChange.subscribe(function(e){e?(u._doc&&(u._elementFocusedBeforeDrawerWasOpened=u._doc.activeElement),u._takeFocus()):u._isFocusWithinDrawer()&&u._restoreFocus()}),this._ngZone.runOutsideAngular(function(){lr(u._elementRef.nativeElement,"keydown").pipe((0,me.h)(function(e){return 27===e.keyCode&&!u.disableClose&&!Da(e)}),Ir(u._destroyed)).subscribe(function(e){return u._ngZone.run(function(){u.close(),e.stopPropagation(),e.preventDefault()})})}),this._animationEnd.pipe(Cr(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){var t=e.fromState,n=e.toState;(0===n.indexOf("open")&&"void"===t||"void"===n&&0===t.indexOf("open"))&&u.openedChange.emit(u._opened)})}return _createClass(e,[{key:"position",get:function(){return this._position},set:function(e){(e="end"===e?"end":"start")!=this._position&&(this._position=e,this.onPositionChanged.emit())}},{key:"mode",get:function(){return this._mode},set:function(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}},{key:"disableClose",get:function(){return this._disableClose},set:function(e){this._disableClose=nr(e)}},{key:"autoFocus",get:function(){var e=this._autoFocus;return null==e?"side"!==this.mode:e},set:function(e){this._autoFocus=nr(e)}},{key:"opened",get:function(){return this._opened},set:function(e){this.toggle(nr(e))}},{key:"_takeFocus",value:function(){var e=this;this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(function(t){t||"function"!=typeof e._elementRef.nativeElement.focus||e._elementRef.nativeElement.focus()})}},{key:"_restoreFocus",value:function(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}},{key:"_isFocusWithinDrawer",value:function(){var e,t=null===(e=this._doc)||void 0===e?void 0:e.activeElement;return!!t&&this._elementRef.nativeElement.contains(t)}},{key:"ngAfterContentInit",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}},{key:"ngAfterContentChecked",value:function(){this._platform.isBrowser&&(this._enableAnimations=!0)}},{key:"ngOnDestroy",value:function(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(e){return this.toggle(!0,e)}},{key:"close",value:function(){return this.toggle(!1)}},{key:"_closeViaBackdropClick",value:function(){return this._setOpen(!1,!0)}},{key:"toggle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened,t=arguments.length>1?arguments[1]:void 0;return this._setOpen(e,!e&&this._isFocusWithinDrawer(),t)}},{key:"_setOpen",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"program";return this._opened=e,e?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=i):(this._animationState="void",t&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(function(e){n.openedChange.pipe((0,xe.q)(1)).subscribe(function(t){return e(t?"open":"close")})})}},{key:"_getWidth",value:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}},{key:"_updateFocusTrapState",value:function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}},{key:"_animationStartListener",value:function(e){this._animationStarted.next(e)}},{key:"_animationDoneListener",value:function(e){this._animationEnd.next(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(Do),a.Y36(jo),a.Y36(ta),a.Y36(a.R0b),a.Y36(r.K0,8),a.Y36(eb,8))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&a.WFA("@transform.start",function(e){return t._animationStartListener(e)})("@transform.done",function(e){return t._animationDoneListener(e)}),2&e&&(a.uIk("align",null),a.d8E("@transform",t._animationState),a.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:jy,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(e,t){1&e&&(a.F$t(),a.TgZ(0,"div",0),a.Hsn(1),a.qZA())},directives:[ya],encapsulation:2,data:{animation:[Qy.transformDrawer]},changeDetection:0}),e}(),ib=function(){var e=function(){function e(t,n,i,r,o){var s=this,c=arguments.length>5&&void 0!==arguments[5]&&arguments[5],u=arguments.length>6?arguments[6]:void 0;_classCallCheck(this,e),this._dir=t,this._element=n,this._ngZone=i,this._changeDetectorRef=r,this._animationMode=u,this._drawers=new a.n_E,this.backdropClick=new a.vpe,this._destroyed=new ye.xQ,this._doCheckSubject=new ye.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new ye.xQ,t&&t.change.pipe(Ir(this._destroyed)).subscribe(function(){s._validateDrawers(),s.updateContentMargins()}),o.change().pipe(Ir(this._destroyed)).subscribe(function(){return s.updateContentMargins()}),this._autosize=c}return _createClass(e,[{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"autosize",get:function(){return this._autosize},set:function(e){this._autosize=nr(e)}},{key:"hasBackdrop",get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(e){this._backdropOverride=null==e?null:nr(e)}},{key:"scrollable",get:function(){return this._userContent||this._content}},{key:"ngAfterContentInit",value:function(){var e=this;this._allDrawers.changes.pipe(De(this._allDrawers),Ir(this._destroyed)).subscribe(function(t){e._drawers.reset(t.filter(function(t){return!t._container||t._container===e})),e._drawers.notifyOnChanges()}),this._drawers.changes.pipe(De(null)).subscribe(function(){e._validateDrawers(),e._drawers.forEach(function(t){e._watchDrawerToggle(t),e._watchDrawerPosition(t),e._watchDrawerMode(t)}),(!e._drawers.length||e._isDrawerOpen(e._start)||e._isDrawerOpen(e._end))&&e.updateContentMargins(),e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._doCheckSubject.pipe((0,go.b)(10),Ir(e._destroyed)).subscribe(function(){return e.updateContentMargins()})})}},{key:"ngOnDestroy",value:function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(){this._drawers.forEach(function(e){return e.open()})}},{key:"close",value:function(){this._drawers.forEach(function(e){return e.close()})}},{key:"updateContentMargins",value:function(){var e=this,t=0,n=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){var i=this._left._getWidth();t+=i,n-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)n+=this._right._getWidth();else if("push"==this._right.mode){var r=this._right._getWidth();n+=r,t-=r}n=n||null,(t=t||null)===this._contentMargins.left&&n===this._contentMargins.right||(this._contentMargins={left:t,right:n},this._ngZone.run(function(){return e._contentMarginChanges.next(e._contentMargins)}))}},{key:"ngDoCheck",value:function(){var e=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(function(){return e._doCheckSubject.next()})}},{key:"_watchDrawerToggle",value:function(e){var t=this;e._animationStarted.pipe((0,me.h)(function(e){return e.fromState!==e.toState}),Ir(this._drawers.changes)).subscribe(function(e){"open-instant"!==e.toState&&"NoopAnimations"!==t._animationMode&&t._element.nativeElement.classList.add("mat-drawer-transition"),t.updateContentMargins(),t._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(Ir(this._drawers.changes)).subscribe(function(){return t._setContainerClass(e.opened)})}},{key:"_watchDrawerPosition",value:function(e){var t=this;e&&e.onPositionChanged.pipe(Ir(this._drawers.changes)).subscribe(function(){t._ngZone.onMicrotaskEmpty.pipe((0,xe.q)(1)).subscribe(function(){t._validateDrawers()})})}},{key:"_watchDrawerMode",value:function(e){var t=this;e&&e._modeChanged.pipe(Ir((0,Oa.T)(this._drawers.changes,this._destroyed))).subscribe(function(){t.updateContentMargins(),t._changeDetectorRef.markForCheck()})}},{key:"_setContainerClass",value:function(e){var t=this._element.nativeElement.classList,n="mat-drawer-container-has-open";e?t.add(n):t.remove(n)}},{key:"_validateDrawers",value:function(){var e=this;this._start=this._end=null,this._drawers.forEach(function(t){"end"==t.position?e._end=t:e._start=t}),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)}},{key:"_isPushed",value:function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}},{key:"_onBackdropClicked",value:function(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}},{key:"_closeModalDrawersViaBackdrop",value:function(){var e=this;[this._start,this._end].filter(function(t){return t&&!t.disableClose&&e._canHaveBackdrop(t)}).forEach(function(e){return e._closeViaBackdropClick()})}},{key:"_isShowingBackdrop",value:function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}},{key:"_canHaveBackdrop",value:function(e){return"side"!==e.mode||!!this._backdropOverride}},{key:"_isDrawerOpen",value:function(e){return null!=e&&e.opened}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(ha,8),a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(a.sBO),a.Y36(ba),a.Y36($y),a.Y36(_u,8))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,n){var i;(1&e&&(a.Suo(n,tb,5),a.Suo(n,nb,5)),2&e)&&(a.iGM(i=a.CRH())&&(t._content=i.first),a.iGM(i=a.CRH())&&(t._allDrawers=i))},viewQuery:function(e,t){var n;(1&e&&a.Gf(tb,5),2&e)&&(a.iGM(n=a.CRH())&&(t._userContent=n.first))},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&a.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[a._Bn([{provide:eb,useExisting:e}])],ngContentSelectors:Ky,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&&(a.F$t(Uy),a.YNc(0,Fy,1,2,"div",0),a.Hsn(1),a.Hsn(2,1),a.YNc(3,Wy,2,0,"mat-drawer-content",1)),2&e&&(a.Q6J("ngIf",t.hasBackdrop),a.xp6(3),a.Q6J("ngIf",!t._content))},directives:[r.O5,tb],styles:[Jy],encapsulation:2,changeDetection:0}),e}(),rb=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o){return _classCallCheck(this,n),t.call(this,e,i,r,a,o)}return n}(tb);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.sBO),a.Y36((0,a.Gpc)(function(){return ob})),a.Y36(a.SBq),a.Y36(_a),a.Y36(a.R0b))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,t){2&e&&a.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[a.qOj],ngContentSelectors:jy,decls:1,vars:0,template:function(e,t){1&e&&(a.F$t(),a.Hsn(0))},encapsulation:2,changeDetection:0}),e}(),ab=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._fixedInViewport=!1,e._fixedTopGap=0,e._fixedBottomGap=0,e}return _createClass(n,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(e){this._fixedInViewport=nr(e)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(e){this._fixedTopGap=ir(e)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(e){this._fixedBottomGap=ir(e)}}]),n}(nb);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,t){2&e&&(a.uIk("align",null),a.Udp("top",t.fixedInViewport?t.fixedTopGap:null,"px")("bottom",t.fixedInViewport?t.fixedBottomGap:null,"px"),a.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:[a.qOj],ngContentSelectors:jy,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(e,t){1&e&&(a.F$t(),a.TgZ(0,"div",0),a.Hsn(1),a.qZA())},directives:[ya],encapsulation:2,data:{animation:[Qy.transformDrawer]},changeDetection:0}),t}(),ob=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(ib);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(e,t,n){var i;(1&e&&(a.Suo(n,rb,5),a.Suo(n,ab,5)),2&e)&&(a.iGM(i=a.CRH())&&(t._content=i.first),a.iGM(i=a.CRH())&&(t._allDrawers=i))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,t){2&e&&a.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},exportAs:["matSidenavContainer"],features:[a._Bn([{provide:eb,useExisting:t}]),a.qOj],ngContentSelectors:Vy,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(e,t){1&e&&(a.F$t(Xy),a.YNc(0,Zy,1,2,"div",0),a.Hsn(1),a.Hsn(2,1),a.YNc(3,Gy,2,0,"mat-sidenav-content",1)),2&e&&(a.Q6J("ngIf",t.hasBackdrop),a.xp6(3),a.Q6J("ngIf",!t._content))},directives:[r.O5,rb,ya],styles:[Jy],encapsulation:2,changeDetection:0}),t}(),sb=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[r.ez,zu,na,Aa],Aa,zu]}),e}(),cb=function(){var e=function(){function e(t){_classCallCheck(this,e),this.store=t}return _createClass(e,[{key:"getSideMenuItems",value:function(){var e=this,t=this.store.get("displayed_tabs"),n=[];return t.forEach(function(e){switch(e){case"profile":n.push({label:"MENU_ITEMS.PROFILE",icon:"account_box",link:"/profile",activatedRegex:"^/profile$",tabName:"profile"});break;case"identities":n.push({label:"MENU_ITEMS.IDENTITIES",icon:"remove_red_eye",link:"/profile/identities",activatedRegex:"^/profile/identities$",tabName:"identities"});break;case"services":n.push({label:"MENU_ITEMS.SERVICES",icon:"build",link:"/profile/services",activatedRegex:"^/profile/services$",tabName:"services"});break;case"groups":n.push({label:"MENU_ITEMS.GROUPS",icon:"group",link:"/profile/groups",activatedRegex:"^/profile/groups$",tabName:"groups"});break;case"vos":n.push({label:"MENU_ITEMS.VOS",icon:"account_balance",link:"/profile/organizations",activatedRegex:"^/profile/organizations$",tabName:"vos"});break;case"privacy":n.push({label:"MENU_ITEMS.PRIVACY",icon:"vpn_key",link:"/profile/privacy",activatedRegex:"^/profile/privacy$",tabName:"privacy"});break;case"settings":n.push({label:"MENU_ITEMS.SETTINGS",icon:"settings",link:"/profile/settings",activatedRegex:"^/profile/settings",tabName:"settings"})}}),this.store.get("external_services").forEach(function(t){var i={icon:"insert_link",link:t.url,activatedRegex:"^/profile/external",tabName:"external",external:!0};e.store.get("supported_languages").forEach(function(e){var n;i["label_".concat(e)]=null!==(n=t["label_".concat(e)])&&void 0!==n?n:t.label_en}),n.push(i)}),n}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(tr))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),ub=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[zu],zu]}),e}(),lb=["*"],hb='.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.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:transparent;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{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:transparent;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{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 button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}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-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.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}}\n',db=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],fb=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],pb=Ou(Ru(function e(){_classCallCheck(this,e)})),gb=Ru(function e(){_classCallCheck(this,e)}),mb=new a.OlP("MatList"),vb=new a.OlP("MatNavList"),_b=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._stateChanges=new ye.xQ,e}return _createClass(n,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(pb);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[a._Bn([{provide:vb,useExisting:t}]),a.qOj,a.TTD],ngContentSelectors:lb,decls:1,vars:0,template:function(e,t){1&e&&(a.F$t(),a.Hsn(0))},styles:[hb],encapsulation:2,changeDetection:0}),t}(),yb=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._elementRef=e,i._stateChanges=new ye.xQ,"action-list"===i._getListType()&&e.nativeElement.classList.add("mat-action-list"),i}return _createClass(n,[{key:"_getListType",value:function(){var e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===e?"list":"mat-action-list"===e?"action-list":null}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(pb);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[a._Bn([{provide:mb,useExisting:e}]),a.qOj,a.TTD],ngContentSelectors:lb,decls:1,vars:0,template:function(e,t){1&e&&(a.F$t(),a.Hsn(0))},styles:[hb],encapsulation:2,changeDetection:0}),e}(),bb=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),e}(),Ab=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),e}(),wb=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;_classCallCheck(this,n),(o=t.call(this))._element=e,o._isInteractiveList=!1,o._destroyed=new ye.xQ,o._disabled=!1,o._isInteractiveList=!!(r||a&&"action-list"===a._getListType()),o._list=r||a;var s=o._getHostElement();return"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),o._list&&o._list._stateChanges.pipe(Ir(o._destroyed)).subscribe(function(){i.markForCheck()}),o}return _createClass(n,[{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(e){this._disabled=nr(e)}},{key:"ngAfterContentInit",value:function(){!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat";e.changes.pipe(De(e)).subscribe(function(e){var i=e.length;Xu(t,"".concat(n,"-2-line"),!1),Xu(t,"".concat(n,"-3-line"),!1),Xu(t,"".concat(n,"-multi-line"),!1),2===i||3===i?Xu(t,"".concat(n,"-").concat(i,"-line"),!0):i>3&&Xu(t,"".concat(n,"-multi-line"),!0)})}(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_isRippleDisabled",value:function(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}},{key:"_getHostElement",value:function(){return this._element.nativeElement}}]),n}(gb);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(vb,8),a.Y36(mb,8))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,n){var i;(1&e&&(a.Suo(n,bb,5),a.Suo(n,Ab,5),a.Suo(n,Gu,5)),2&e)&&(a.iGM(i=a.CRH())&&(t._avatar=i.first),a.iGM(i=a.CRH())&&(t._icon=i.first),a.iGM(i=a.CRH())&&(t._lines=i))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(e,t){2&e&&a.ekj("mat-list-item-disabled",t.disabled)("mat-list-item-avatar",t._avatar||t._icon)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[a.qOj],ngContentSelectors:fb,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&&(a.F$t(db),a.TgZ(0,"div",0),a._UZ(1,"div",1),a.Hsn(2),a.TgZ(3,"div",2),a.Hsn(4,1),a.qZA(),a.Hsn(5,2),a.qZA()),2&e&&(a.xp6(1),a.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},directives:[rl],encapsulation:2,changeDetection:0}),e}(),kb=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[Vu,al,zu,sl,r.ez],Vu,zu,sl,ub]}),e}(),Mb=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e,t,n){return e["".concat(n,"_").concat(t)]}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=a.Yjl({name:"localisedText",type:e,pure:!0}),e}(),Cb=function(e){return{color:e}};function Tb(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-list-item",2),a.NdJ("click",function(){var e=a.CHM(n).$implicit,t=a.oxw();return e.external?t.goToURL(e.link):t.shouldHideMenu()}),a.TgZ(1,"mat-icon",3),a._uU(2),a.qZA(),a.TgZ(3,"span",4),a._uU(4),a.ALo(5,"localisedText"),a.ALo(6,"translate"),a.ALo(7,"customTranslate"),a.qZA(),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw();a.ekj("activated",r.isActive(i.activatedRegex)),a.s9C("routerLink",i.external?null:i.link),a.Q6J("ngStyle",a.VKq(17,Cb,r.textColor))("matRippleColor","rgba(255, 255, 255, 0.1)"),a.xp6(1),a.Q6J("ngStyle",a.VKq(19,Cb,r.iconColor)),a.xp6(1),a.Oqu(i.icon),a.xp6(2),a.Oqu(i.external?a.Dn7(5,8,i,r.lang,"label"):a.lcZ(6,12,a.xi3(7,14,i.label,r.lang)))}}var Lb=function(){var e=function(){function e(t,n,i,r){var a=this;_classCallCheck(this,e),this.sideMenuItemService=t,this.storeService=n,this.router=i,this.translateService=r,this.items=[],this.lang="en",this.textColor=this.storeService.get("theme","sidemenu_text_color"),this.iconColor=this.storeService.get("theme","sidemenu_item_icon_color"),this.currentUrl=i.url,i.events.subscribe(function(e){e instanceof rt&&(a.currentUrl=e.url)})}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.translateService.onLangChange.subscribe(function(t){var n=t.lang;e.lang=n});var t=this.storeService.get("displayed_tabs");this.items=this.sideMenuItemService.getSideMenuItems(),this.items=this.items.filter(function(e){return t.includes(e.tabName)})}},{key:"isActive",value:function(e){return new RegExp(e).test(this.currentUrl)}},{key:"shouldHideMenu",value:function(){"over"===this.sideNav.mode&&this.sideNav.close()}},{key:"goToURL",value:function(e){window.open(e,"_blank")}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(cb),a.Y36(tr),a.Y36(zi),a.Y36(lh))},e.\u0275cmp=a.Xpm({type:e,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"],[3,"ngStyle"],[1,"nav-caption","ml-3"]],template:function(e,t){1&e&&(a.TgZ(0,"mat-nav-list",0),a.YNc(1,Tb,8,21,"mat-list-item",1),a.qZA()),2&e&&(a.xp6(1),a.Q6J("ngForOf",t.items))},directives:[_b,r.sg,wb,rl,r.PC,Cy,Oi,sg],pipes:[Mb,hh,Wg],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}"]}),e}();function Sb(e,t){if(1&e&&(a.TgZ(0,"span",1),a.TgZ(1,"a",2),a._uU(2),a.qZA(),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Q6J("routerLink",n.routerLink),a.xp6(1),a.Oqu(n.label)}}var Eb=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.router=t,this.activatedRoute=n,this.translate=i,this.home={label:"Home",routerLink:"profile"},this.menuItems=[]}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.router.events.pipe((0,me.h)(function(e){return e instanceof rt})).subscribe(function(){e.menuItems=[],e.createBreadcrumbs(e.activatedRoute.root)})}},{key:"createBreadcrumbs",value:function(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=t.children;0!==r.length&&"service-access"!==r[0].snapshot.routeConfig.path&&r.forEach(function(t){var r=t.snapshot.url.map(function(e){return e.path}).join("/");""!==r&&(i+="/".concat(r));var a=n.translate.instant(t.snapshot.data[e.ROUTE_DATA_BREADCRUMB]);return!a||n.menuItems[n.menuItems.length-1]&&a===n.menuItems[n.menuItems.length-1].label||n.menuItems.push({label:a,routerLink:i}),n.createBreadcrumbs(t,i)})}}]),e}();return e.ROUTE_DATA_BREADCRUMB="breadcrumb",e.\u0275fac=function(t){return new(t||e)(a.Y36(zi),a.Y36(un),a.Y36(lh))},e.\u0275cmp=a.Xpm({type:e,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&&a.YNc(0,Sb,3,2,"span",0),2&e&&a.Q6J("ngForOf",t.menuItems)},directives:[r.sg,xi],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}']}),e}();function zb(e,t){1&e&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}var Ob=function(){var e=function(){function e(t,n,i,r,a){_classCallCheck(this,e),this.dialogRef=t,this.translate=n,this.notificator=i,this.rtMessages=r,this.storeService=a,this.message="",this.subject="",this.instanceName=""}return _createClass(e,[{key:"ngOnInit",value:function(){this.instanceName=this.storeService.get("config")}},{key:"sendBugReport",value:function(){var e=this;this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(function(t){e.dialogRef.afterClosed().subscribe(function(){return e.notificator.showSuccess(e.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+t.ticketNumber)}),e.dialogRef.close()})}},{key:"getFullEmailBody",value:function(){return this.message+"\n ------------------------\n Perun instance: "+this.instanceName+"\n Sended from new Perun Gui, version: "+n(306).i8}},{key:"close",value:function(){this.dialogRef.close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl),a.Y36(lh),a.Y36(xg),a.Y36(ce),a.Y36(tr))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.TgZ(4,"mat-form-field"),a.TgZ(5,"mat-label"),a._uU(6),a.ALo(7,"translate"),a.qZA(),a.TgZ(8,"input",2,3),a.NdJ("ngModelChange",function(e){return t.subject=e}),a.qZA(),a.YNc(10,zb,3,3,"mat-error",4),a.qZA(),a.TgZ(11,"mat-form-field"),a.TgZ(12,"mat-label"),a._uU(13),a.ALo(14,"translate"),a.qZA(),a.TgZ(15,"textarea",5),a.NdJ("ngModelChange",function(e){return t.message=e}),a.ALo(16,"translate"),a._uU(17," "),a.qZA(),a.TgZ(18,"mat-hint"),a._uU(19),a.ALo(20,"translate"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(21,"div",6),a.TgZ(22,"div",7),a.TgZ(23,"button",8),a.NdJ("click",function(){return t.close()}),a._uU(24),a.ALo(25,"translate"),a.qZA(),a.TgZ(26,"button",9),a.NdJ("click",function(){return t.sendBugReport()}),a._uU(27),a.ALo(28,"translate"),a.qZA(),a.qZA(),a.qZA()),2&e){var n=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",t.subject),a.xp6(2),a.Q6J("ngIf",n.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",t.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",n.invalid),a.xp6(1),a.hij(" ",a.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[Nl,Il,td,Kh,tm,cd,kf,Rd,lf,r.O5,Uh,ql,_h,Hh],pipes:[hh],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),e}(),xb=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e,t){return e["link_"+t]||e.link_en}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=a.Yjl({name:"localisedLink",type:e,pure:!0}),e}(),Rb=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e){return e.includes("/")?e:"/assets/config/"+e}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=a.Yjl({name:"footerLogoPath",type:e,pure:!0}),e}();function Db(e,t){if(1&e&&(a.TgZ(0,"a",13),a.ALo(1,"localisedLink"),a._UZ(2,"img",14),a.ALo(3,"footerLogoPath"),a.qZA()),2&e){var n=a.oxw().$implicit,i=a.oxw(3);a.Q6J("href",a.xi3(1,2,n,i.language),a.LSH),a.xp6(2),a.s9C("src",a.lcZ(3,5,n.logo),a.LSH)}}function Pb(e,t){if(1&e&&(a.TgZ(0,"span"),a._UZ(1,"img",14),a.ALo(2,"footerLogoPath"),a.qZA()),2&e){var n=a.oxw().$implicit;a.xp6(1),a.s9C("src",a.lcZ(2,1,n.logo),a.LSH)}}function Nb(e,t){if(1&e&&(a.TgZ(0,"div"),a.YNc(1,Db,4,7,"a",11),a.ALo(2,"localisedLink"),a.YNc(3,Pb,3,3,"span",12),a.ALo(4,"localisedLink"),a.qZA()),2&e){var n=t.$implicit,i=a.oxw(3);a.xp6(1),a.Q6J("ngIf",a.xi3(2,2,n,i.language)),a.xp6(2),a.Q6J("ngIf",!a.xi3(4,5,n,i.language))}}var Ib=function(e){return{"min-height":e}};function qb(e,t){if(1&e&&(a.TgZ(0,"div",10),a.YNc(1,Nb,5,8,"div",5),a.qZA()),2&e){var n=a.oxw().$implicit,i=a.oxw();a.Q6J("ngStyle",a.VKq(2,Ib,i.columnContentHeight+"px")),a.xp6(1),a.Q6J("ngForOf",n.elements)}}var Bb=function(e){return{color:e}};function Hb(e,t){if(1&e&&(a.TgZ(0,"i",20),a._uU(1),a.qZA()),2&e){var n=a.oxw().$implicit,i=a.oxw(3);a.Q6J("ngStyle",a.VKq(2,Bb,i.linksTextColor)),a.xp6(1),a.hij(" ",n.icon," ")}}function Yb(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"span",21),a.NdJ("click",function(){a.CHM(n);var e=a.oxw().$implicit;return a.oxw(3).openDialog(e.dialog)}),a._uU(1),a.ALo(2,"localisedText"),a.qZA()}if(2&e){var i=a.oxw().$implicit,r=a.oxw(3);a.Q6J("ngStyle",a.VKq(6,Bb,r.linksTextColor)),a.xp6(1),a.hij("",a.Dn7(2,2,i,r.language,"label")," ")}}function jb(e,t){if(1&e&&(a.TgZ(0,"a",22),a.ALo(1,"localisedLink"),a._uU(2),a.ALo(3,"localisedText"),a.qZA()),2&e){var n=a.oxw().$implicit,i=a.oxw(3);a.Q6J("href",a.xi3(1,3,n,i.language),a.LSH)("ngStyle",a.VKq(10,Bb,i.linksTextColor)),a.xp6(2),a.Oqu(a.Dn7(3,6,n,i.language,"label"))}}function Fb(e,t){if(1&e&&(a.TgZ(0,"span",10),a._uU(1),a.ALo(2,"localisedText"),a.qZA()),2&e){var n=a.oxw().$implicit,i=a.oxw(3);a.Q6J("ngStyle",a.VKq(6,Bb,i.linksTextColor)),a.xp6(1),a.Oqu(a.Dn7(2,2,n,i.language,"label"))}}function Wb(e,t){if(1&e&&(a.TgZ(0,"div",16),a.YNc(1,Hb,2,4,"i",17),a.YNc(2,Yb,3,8,"span",18),a.YNc(3,jb,4,12,"a",19),a.ALo(4,"localisedLink"),a.YNc(5,Fb,3,8,"span",9),a.ALo(6,"localisedLink"),a.qZA()),2&e){var n=t.$implicit,i=a.oxw(3);a.xp6(1),a.Q6J("ngIf",n.icon),a.xp6(1),a.Q6J("ngIf",n.dialog),a.xp6(1),a.Q6J("ngIf",a.xi3(4,4,n,i.language)&&!n.dialog),a.xp6(2),a.Q6J("ngIf",!a.xi3(6,7,n,i.language)&&!n.dialog)}}var Ub=function(e){return{height:e}};function Kb(e,t){if(1&e&&(a.TgZ(0,"div",10),a.YNc(1,Wb,7,10,"div",15),a.qZA()),2&e){var n=a.oxw().$implicit,i=a.oxw();a.Q6J("ngStyle",a.VKq(2,Ub,i.columnContentHeight+"px")),a.xp6(1),a.Q6J("ngForOf",n.elements)}}function Zb(e,t){if(1&e&&(a.TgZ(0,"div",7),a.TgZ(1,"h6",8),a._uU(2),a.ALo(3,"localisedText"),a.qZA(),a.YNc(4,qb,2,4,"div",9),a.YNc(5,Kb,2,4,"div",9),a.qZA()),2&e){var n=t.$implicit,i=a.oxw();a.ekj("my-auto",i.containsLogos),a.xp6(1),a.Q6J("ngStyle",a.VKq(10,Bb,i.headersTextColor)),a.xp6(1),a.hij(" ",a.Dn7(3,6,n,i.language,"title")," "),a.xp6(2),a.Q6J("ngIf",n.logos),a.xp6(1),a.Q6J("ngIf",n.elements&&!n.logos)}}function Gb(e,t){if(1&e&&(a.TgZ(0,"span"),a.TgZ(1,"a",6),a._uU(2),a.qZA(),a.qZA()),2&e){var n=t.$implicit,i=t.index,r=a.oxw();a.xp6(1),a.Q6J("href",n.url,a.LSH)("ngStyle",a.VKq(3,Bb,r.copyrightTextColor)),a.xp6(1),a.Oqu(i?", "+n.name:n.name)}}var Xb=function(e){return{background:e}},Vb=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.storeService=t,this.translateService=n,this.dialog=i,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.items=[],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}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.translateService.onLangChange.subscribe(function(t){e.language=t.lang}),this.version=n(306).i8,this.items=this.storeService.get("footer","columns");var t,i=_createForOfIteratorHelper(this.items);try{for(i.s();!(t=i.n()).done;){var r=t.value;r.logos?this.containsLogos=!0:25*r.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*r.elements.length)}}catch(a){i.e(a)}finally{i.f()}this.copyrightItems=this.storeService.get("footer","copyright_items")}},{key:"openDialog",value:function(e){var t=dg();switch(e){case"reportIssue":t.width="550px",this.dialog.open(Ob,t)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(tr),a.Y36(lh),a.Y36(Dl))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"footer",0),a.TgZ(1,"div",1),a.YNc(2,Zb,6,12,"div",2),a.qZA(),a._UZ(3,"hr",3),a.TgZ(4,"div",4),a._uU(5),a.YNc(6,Gb,3,5,"span",5),a._uU(7," Version "),a.TgZ(8,"a",6),a._uU(9),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.Q6J("ngStyle",a.VKq(8,Xb,t.bgColor)),a.xp6(2),a.Q6J("ngForOf",t.items),a.xp6(2),a.Q6J("ngStyle",a.VKq(10,Bb,t.copyrightTextColor)),a.xp6(1),a.hij(" \xa9 ",t.currentYear," Copyright: "),a.xp6(1),a.Q6J("ngForOf",t.copyrightItems),a.xp6(2),a.Q6J("href",t.githubRepository,a.LSH)("ngStyle",a.VKq(12,Bb,t.copyrightTextColor)),a.xp6(1),a.Oqu(t.version))},directives:[r.PC,r.sg,r.O5],pipes:[Mb,xb,Rb],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}"]}),e}();function Jb(e,t){if(1&e&&(a.TgZ(0,"div",8),a._UZ(1,"div",9),a.qZA()),2&e){var n=a.oxw();a.xp6(1),a.Q6J("innerHTML",n.logo,a.oJD)}}function Qb(e,t){if(1&e&&(a.TgZ(0,"div",10),a._UZ(1,"div",11),a._UZ(2,"mat-icon",12),a.qZA()),2&e){var n=a.oxw();a.xp6(1),a.Q6J("innerHTML",n.logo,a.oJD)}}function $b(e,t){if(1&e&&(a.TgZ(0,"div",8),a._UZ(1,"a",9),a.qZA()),2&e){var n=a.oxw();a.xp6(1),a.Q6J("innerHTML",n.logo,a.oJD)}}var eA=function(e){return{color:e}};function tA(e,t){if(1&e&&(a.TgZ(0,"p",13),a._uU(1),a.qZA()),2&e){var n=a.oxw();a.Q6J("ngStyle",a.VKq(2,eA,n.textColor)),a.xp6(1),a.hij(" ",n.headerTitle," ")}}var nA=function(e,t){return{background:e,color:t}},iA=function(e,t){return{"min-height":e,"background-color":t}},rA=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this.storeService=t,this.sanitizer=n,this.preferredLangService=i,this.translateService=r,this.contentBackgroundColor=this.storeService.get("theme","content_bg_color")}return _createClass(e,[{key:"ngOnInit",value:function(){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){var e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e)}}},{key:"getContentInnerMinHeight",value:function(){return"calc((100vh - 64px) + 0px)"}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(tr),a.Y36(x),a.Y36(Ig),a.Y36(lh))},e.\u0275cmp=a.Xpm({type:e,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:11,vars:12,consts:[["id","login-nav",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["style"," display: flex; flex-direction: 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"],[2,"display","flex","flex-direction","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&&(a.TgZ(0,"div",0),a.YNc(1,Jb,2,1,"div",1),a.YNc(2,Qb,3,1,"div",2),a.YNc(3,$b,2,1,"div",1),a.YNc(4,tA,2,4,"p",3),a.qZA(),a.TgZ(5,"div",4),a.TgZ(6,"div",5),a.TgZ(7,"div",6),a._UZ(8,"router-outlet"),a.qZA(),a.TgZ(9,"div",7),a._UZ(10,"perun-web-apps-footer"),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.Q6J("ngStyle",a.WLB(6,nA,t.headerBackgroundColor,t.headerTextColor)),a.xp6(1),a.Q6J("ngIf","admin-gui"===t.application),a.xp6(1),a.Q6J("ngIf","publications"===t.application),a.xp6(1),a.Q6J("ngIf","user-profile"===t.application),a.xp6(1),a.Q6J("ngIf",!!t.headerTitle),a.xp6(2),a.Q6J("ngStyle",a.WLB(9,iA,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},directives:[r.PC,r.O5,Di,Vb,sg],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}"]}),e}(),aA=["footer"],oA=function(e){return{background:e}},sA=function(e){return{"min-height":e}};function cA(e,t){if(1&e){var n=a.EpF();a._UZ(0,"perun-web-apps-notificator"),a.TgZ(1,"div",2),a.TgZ(2,"perun-web-apps-header",3),a.NdJ("sidenavToggle",function(){return a.CHM(n),a.MAs(5).toggle()}),a.qZA(),a.TgZ(3,"mat-sidenav-container"),a.TgZ(4,"mat-sidenav",4,5),a._UZ(6,"perun-web-apps-side-menu",6),a.qZA(),a.TgZ(7,"mat-sidenav-content",7),a.TgZ(8,"div",8),a._UZ(9,"perun-web-apps-breadcrumbs"),a._UZ(10,"router-outlet"),a.qZA(),a.TgZ(11,"div",null,9),a._UZ(13,"perun-web-apps-footer"),a.qZA(),a.qZA(),a.qZA(),a.qZA()}if(2&e){var i=a.MAs(5),r=a.oxw();a.xp6(4),a.Q6J("mode",r.sidebarMode)("ngStyle",a.VKq(6,oA,r.sideMenuBgColor))("opened",!r.isMobile()),a.xp6(2),a.Q6J("sideNav",i),a.xp6(1),a.Q6J("ngStyle",a.VKq(8,oA,r.contentBackgroundColor)),a.xp6(1),a.Q6J("ngStyle",a.VKq(10,sA,r.contentHeight))}}function uA(e,t){if(1&e&&a._UZ(0,"perun-web-apps-login-screen-base",10),2&e){var n=a.oxw();a.Q6J("application","user-profile")("headerTitle",n.headerLabel)}}var lA=function(){var e=function(){function e(t,n,i,r,a,o){_classCallCheck(this,e),this.store=t,this.attributesManagerService=n,this.translateService=i,this.initAuth=r,this.changeDetector=a,this.preferredLangService=o,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()}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.isLoginScreenShown=this.initAuth.isLoginScreenShown(),this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),sessionStorage.removeItem("baLogout"),this.isLoginScreenShown?this.headerLabel=this.store.get("header_label_".concat(this.preferredLangService.getPreferredLanguage(null))):this.isServiceAccess||this.attributesManagerService.getUserAttributes(this.store.getPerunPrincipal().userId).subscribe(function(t){var n=t.find(function(e){return"preferredLanguage"===e.friendlyName}),i=n&&n.value?n.value.toString():null,r=e.preferredLangService.getPreferredLanguage(i);e.translateService.use(r)})}},{key:"getScreenSize",value:function(){this.sidebarMode=this.isMobile()?"over":"side"}},{key:"isMobile",value:function(){return window.innerWidth<=e.minWidth}},{key:"isServiceLogin",value:function(){return!!sessionStorage.getItem("baLogout")}},{key:"ngAfterViewInit",value:function(){this.contentHeight="calc(100vh - 84px - "+this.footer.nativeElement.offsetHeight+"px)",this.changeDetector.detectChanges()}}]),e}();return e.minWidth=992,e.\u0275fac=function(t){return new(t||e)(a.Y36(tr),a.Y36(re),a.Y36(lh),a.Y36(Sg),a.Y36(a.sBO),a.Y36(Ig))},e.\u0275cmp=a.Xpm({type:e,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){var n;(1&e&&a.Gf(aA,5),2&e)&&(a.iGM(n=a.CRH())&&(t.footer=n.first))},hostBindings:function(e,t){1&e&&a.NdJ("resize",function(e){return t.getScreenSize(e)},!1,a.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&&(a.YNc(0,cA,14,12,"ng-template",0),a.YNc(1,uA,1,2,"perun-web-apps-login-screen-base",1)),2&e&&(a.Q6J("ngIf",!t.isLoginScreenShown&&!t.isServiceAccess&&!t.isServiceLogin()),a.xp6(1),a.Q6J("ngIf",t.isLoginScreenShown||t.isServiceAccess||t.isServiceLogin()))},directives:[r.O5,E_,qy,ob,ab,r.PC,Cy,Lb,rb,Eb,Di,Vb,rA],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}"]}),e}(),hA=n(9355);function dA(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",15),a.NdJ("click",function(){a.CHM(n);var e=a.oxw().index;return a.oxw().removeValue(e)}),a.TgZ(1,"mat-icon"),a._uU(2," indeterminate_check_box "),a.qZA(),a.qZA()}}function fA(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",9),a.TgZ(1,"mat-form-field",10),a._UZ(2,"label",11),a.TgZ(3,"input",12),a.NdJ("click",function(){var e=a.CHM(n).index,t=a.oxw();return t.readonly&&t.attribute.displayName&&t.showValue(t.keys[e],t.attribute.displayName)})("ngModelChange",function(e){var t=a.CHM(n).index;return a.oxw().keys[t]=e}),a.qZA(),a.qZA(),a.TgZ(4,"mat-form-field",10),a._UZ(5,"label",11),a.TgZ(6,"input",13),a.NdJ("click",function(){var e=a.CHM(n).$implicit,t=a.oxw();return t.readonly&&void 0!==t.attribute.displayName&&t.showValue(e,t.attribute.displayName)})("ngModelChange",function(e){var t=a.CHM(n).index;return a.oxw().values[t]=e}),a.qZA(),a.qZA(),a.YNc(7,dA,3,0,"button",14),a.qZA()}if(2&e){var i=t.index,r=a.oxw();a.xp6(1),a.s9C("appearance",r.readonly?"none":"standard"),a.xp6(1),a.hYB("for","",r.attribute.id,"-key-",i,""),a.xp6(1),a.ekj("cursor-pointer",r.readonly&&void 0!==r.attribute.displayName),a.hYB("id","",r.attribute.id,"-key-",i,""),a.MGl("name","key-",i,""),a.Q6J("ngModel",r.keys[i])("readonly",r.readonly),a.xp6(1),a.s9C("appearance",r.readonly?"none":"standard"),a.xp6(1),a.hYB("for","",r.attribute.id,"-value-",i,""),a.xp6(1),a.ekj("cursor-pointer",r.readonly&&void 0!==r.attribute.displayName),a.MGl("name","value-",i,""),a.hYB("id","",r.attribute.id,"-value-",i,""),a.Q6J("readonly",r.readonly)("ngModel",r.values[i]),a.xp6(1),a.Q6J("ngIf",!r.readonly)}}function pA(e,t){1&e&&(a.TgZ(0,"mat-icon"),a._uU(1,"more_horiz"),a.qZA())}function gA(e,t){1&e&&(a.TgZ(0,"mat-icon"),a._uU(1,"keyboard_arrow_up"),a.qZA())}function mA(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",16),a.NdJ("click",function(){return a.CHM(n),a.oxw().onShowChange()}),a.YNc(1,pA,2,0,"mat-icon",17),a.YNc(2,gA,2,0,"mat-icon",17),a.qZA()}if(2&e){var i=a.oxw();a.xp6(1),a.Q6J("ngIf",!i.showMore),a.xp6(1),a.Q6J("ngIf",i.showMore)}}function vA(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",18),a.NdJ("click",function(){return a.CHM(n),a.oxw().addValue()}),a.TgZ(1,"mat-icon"),a._uU(2," add_box "),a.qZA(),a.qZA()}}var _A=function(){var e=function(){function e(t){_classCallCheck(this,e),this.dialog=t,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}return _createClass(e,[{key:"ngOnInit",value:function(){if(this.attribute.value)for(var e=this.attribute.value,t=0,n=Object.entries(e);tthis.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}},{key:"removeValue",value:function(e){this.keys.splice(e,1),this.values.splice(e,1)}},{key:"updateAttribute",value:function(){for(var e={},t=0;tt.defaultItemsShown),a.xp6(1),a.Q6J("ngIf",!t.readonly))},directives:[hf,Dd,sf,r.sg,up,r.O5,td,tm,cd,kf,Rd,lf,_h,sg],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}"]}),e}(),yA=["input"],bA=function(e){return{enterDuration:e}},AA=["*"],wA=new a.OlP("mat-checkbox-default-options",{providedIn:"root",factory:kA});function kA(){return{color:"accent",clickAction:"check-indeterminate"}}var MA=0,CA={color:"accent",clickAction:"check-indeterminate"},TA={provide:ad,useExisting:(0,a.Gpc)(function(){return EA}),multi:!0},LA=function e(){_classCallCheck(this,e)},SA=Du(xu(Ru(Ou(function e(t){_classCallCheck(this,e),this._elementRef=t})))),EA=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,s,c,u){var l;return _classCallCheck(this,n),(l=t.call(this,e))._changeDetectorRef=i,l._focusMonitor=r,l._ngZone=o,l._animationMode=c,l._options=u,l.ariaLabel="",l.ariaLabelledby=null,l._uniqueId="mat-checkbox-"+ ++MA,l.id=l._uniqueId,l.labelPosition="after",l.name=null,l.change=new a.vpe,l.indeterminateChange=new a.vpe,l._onTouched=function(){},l._currentAnimationClass="",l._currentCheckState=0,l._controlValueAccessorChangeFn=function(){},l._checked=!1,l._disabled=!1,l._indeterminate=!1,l._options=l._options||CA,l.color=l.defaultColor=l._options.color||CA.color,l.tabIndex=parseInt(s)||0,l}return _createClass(n,[{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"required",get:function(){return this._required},set:function(e){this._required=nr(e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){t||Promise.resolve().then(function(){e._onTouched(),e._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"checked",get:function(){return this._checked},set:function(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(e){var t=nr(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(e){var t=e!=this._indeterminate;this._indeterminate=nr(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(e){this.checked=!!e}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(e){var t=this._currentCheckState,n=this._elementRef.nativeElement;if(t!==e&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);var i=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){n.classList.remove(i)},1e3)})}}},{key:"_emitChangeEvent",value:function(){var e=new LA;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(e){var t,n=this,i=null===(t=this._options)||void 0===t?void 0:t.clickAction;e.stopPropagation(),this.disabled||"noop"===i?this.disabled||"noop"!==i||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(function(){n._indeterminate=!1,n.indeterminateChange.emit(n._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}},{key:"_onInteractionEvent",value:function(e){e.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(e,t){if("NoopAnimations"===this._animationMode)return"";var n="";switch(e){case 0:if(1===t)n="unchecked-checked";else{if(3!=t)return"";n="unchecked-indeterminate"}break;case 2:n=1===t?"unchecked-checked":"unchecked-indeterminate";break;case 1:n=2===t?"checked-unchecked":"checked-indeterminate";break;case 3:n=1===t?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-".concat(n)}},{key:"_syncIndeterminate",value:function(e){var t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}]),n}(SA);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(jo),a.Y36(a.R0b),a.$8M("tabindex"),a.Y36(_u,8),a.Y36(wA,8))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-checkbox"]],viewQuery:function(e,t){var n;(1&e&&(a.Gf(yA,5),a.Gf(rl,5)),2&e)&&(a.iGM(n=a.CRH())&&(t._inputElement=n.first),a.iGM(n=a.CRH())&&(t.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&(a.Ikx("id",t.id),a.uIk("tabindex",null),a.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",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[a._Bn([TA]),a.qOj],ngContentSelectors:AA,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",0,"xml","space","preserve",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&&(a.F$t(),a.TgZ(0,"label",0,1),a.TgZ(2,"span",2),a.TgZ(3,"input",3,4),a.NdJ("change",function(e){return t._onInteractionEvent(e)})("click",function(e){return t._onInputClick(e)}),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.qZA(),a.TgZ(12,"span",12,13),a.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),a.TgZ(14,"span",14),a._uU(15,"\xa0"),a.qZA(),a.Hsn(16),a.qZA(),a.qZA()),2&e){var n=a.MAs(1),i=a.MAs(13);a.uIk("for",t.inputId),a.xp6(2),a.ekj("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),a.xp6(1),a.Q6J("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),a.uIk("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),a.xp6(2),a.Q6J("matRippleTrigger",n)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",a.VKq(19,bA,"NoopAnimations"===t._animationMode?0:150))}},directives:[rl,_o],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:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-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;-moz-user-select:auto;-ms-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:transparent;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:transparent}.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%}\n"],encapsulation:2,changeDetection:0}),e}(),zA=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({}),e}(),OA=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[al,zu,yo,zA],zu,zA]}),e}();function xA(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-checkbox",2),a.NdJ("change",function(){return a.CHM(n),a.oxw()._sendEventToParent()})("ngModelChange",function(e){return a.CHM(n),a.oxw().attribute.value=e}),a.qZA()}if(2&e){var i=a.oxw();a.Q6J("ngModel",i.attribute.value)}}function RA(e,t){if(1&e&&(a.TgZ(0,"mat-label"),a._uU(1),a.qZA()),2&e){var n=a.oxw();a.xp6(1),a.Oqu(n.attribute.value)}}var DA=function(){var e=function(){function e(){_classCallCheck(this,e),this.readonly=!1,this.sendEventToParent=new a.vpe}return _createClass(e,[{key:"ngOnInit",value:function(){this.readonly||(this.readonly=fg(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"div"),a.YNc(1,xA,1,1,"mat-checkbox",0),a.YNc(2,RA,2,1,"mat-label",1),a.qZA()),2&e&&(a.xp6(1),a.Q6J("ngIf",!t.readonly),a.xp6(1),a.Q6J("ngIf",t.readonly))},directives:[r.O5,EA,Rd,lf,Kh],styles:[""]}),e}();function PA(e){var t=e.subscriber,n=e.counter,i=e.period;t.next(n),this.schedule({subscriber:t,counter:n+1,period:i},i)}function NA(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function IA(e,t){var n=t?"":"none";NA(e.style,{touchAction:t?"":"none",webkitUserDrag:t?"":"none",webkitTapHighlightColor:t?"":"transparent",userSelect:n,msUserSelect:n,webkitUserSelect:n,MozUserSelect:n})}function qA(e,t){var n=e.style;n.position=t?"":"fixed",n.top=n.opacity=t?"":"0",n.left=t?"":"-999em"}function BA(e,t){return t?e+" "+t:e}function HA(e){var t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function YA(e,t){return e.getPropertyValue(t).split(",").map(function(e){return e.trim()})}function jA(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}function FA(e,t,n){var i=e.top,r=e.bottom,a=e.left,o=e.right;return n>=i&&n<=r&&t>=a&&t<=o}function WA(e,t,n){e.top+=t,e.bottom=e.top+e.height,e.left+=n,e.right=e.left+e.width}function UA(e,t,n,i){var r=e.top,a=e.right,o=e.bottom,s=e.left,c=e.width*t,u=e.height*t;return i>r-u&&is-c&&n=s._config.dragStartThreshold){var r=Date.now()>=s._dragStartTime+s._getDragStartDelay(e),a=s._dropContainer;if(!r)return void s._endDragSequence(e);a&&(a.isDragging()||a.isReceiving())||(e.preventDefault(),s._hasStartedDragging=!0,s._ngZone.run(function(){return s._startDragSequence(e)}))}},this._pointerUp=function(e){s._endDragSequence(e)},this.withRootElement(t).withParent(n.parentDragRef||null),this._parentPositions=new KA(i,a),o.registerDragItem(this)}return _createClass(e,[{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(e){var t=nr(e);t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions(),this._handles.forEach(function(e){return IA(e,t)}))}},{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(e){var t=this;this._handles=e.map(function(e){return sr(e)}),this._handles.forEach(function(e){return IA(e,t.disabled)}),this._toggleNativeDragInteractions();var n=new Set;return this._disabledHandles.forEach(function(e){t._handles.indexOf(e)>-1&&n.add(e)}),this._disabledHandles=n,this}},{key:"withPreviewTemplate",value:function(e){return this._previewTemplate=e,this}},{key:"withPlaceholderTemplate",value:function(e){return this._placeholderTemplate=e,this}},{key:"withRootElement",value:function(e){var t=this,n=sr(e);return n!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(function(){n.addEventListener("mousedown",t._pointerDown,$A),n.addEventListener("touchstart",t._pointerDown,QA)}),this._initialTransform=void 0,this._rootElement=n),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}},{key:"withBoundaryElement",value:function(e){var t=this;return this._boundaryElement=e?sr(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(function(){return t._containInsideBoundaryOnResize()})),this}},{key:"withParent",value:function(e){return this._parentDragRef=e,this}},{key:"dispose",value:function(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&iw(this._rootElement),iw(this._anchor),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}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),IA(e,!0))}},{key:"enableHandle",value:function(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),IA(e,this.disabled))}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"_withDropContainer",value:function(e){this._dropContainer=e}},{key:"getFreeDragPosition",value:function(){var e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}},{key:"setFreeDragPosition",value:function(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}},{key:"withPreviewContainer",value:function(e){return this._previewContainer=e,this}},{key:"_sortFromLastPointerPosition",value:function(){var e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){this._preview&&iw(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&iw(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(e){var t=this;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}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(function(){t._cleanupDragArtifacts(e),t._cleanupCachedDimensions(),t._dragDropRegistry.stopDragging(t)});else{this._passiveTransform.x=this._activeTransform.x;var n=this._getPointerPositionOnPage(e);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(function(){t.ended.next({source:t,distance:t._getDragDistance(n),dropPoint:n})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}},{key:"_startDragSequence",value:function(e){rw(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();var t=this._dropContainer;if(t){var n=this._rootElement,i=n.parentNode,r=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment(""),o=this._getShadowRoot();i.insertBefore(a,n),this._initialTransform=n.style.transform||"",this._preview=this._createPreviewElement(),qA(n,!1),this._document.body.appendChild(i.replaceChild(r,n)),this._getPreviewInsertionPoint(i,o).appendChild(this._preview),this.started.next({source:this}),t.start(),this._initialContainer=t,this._initialIndex=t.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(t?t.getScrollableParents():[])}},{key:"_initializeDragSequence",value:function(e,t){var n=this;this._parentDragRef&&t.stopPropagation();var i=this.isDragging(),r=rw(t),a=!r&&0!==t.button,o=this._rootElement,s=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(t.target&&t.target.draggable&&"mousedown"===t.type&&t.preventDefault(),!(i||a||s)){this._handles.length&&(this._rootElementTapHighlight=o.style.webkitTapHighlightColor||"",o.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(function(e){n._updateOnScroll(e)}),this._boundaryElement&&(this._boundaryRect=jA(this._boundaryElement));var c=this._previewTemplate;this._pickupPositionInElement=c&&c.template&&!c.matchSize?{x:0,y:0}:this._getPointerPositionInElement(e,t);var u=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:u.x,y:u.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}}},{key:"_cleanupDragArtifacts",value:function(e){var t=this;qA(this._rootElement,!0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(function(){var n=t._dropContainer,i=n.getItemIndex(t),r=t._getPointerPositionOnPage(e),a=t._getDragDistance(r),o=n._isOverContainer(r.x,r.y);t.ended.next({source:t,distance:a,dropPoint:r}),t.dropped.next({item:t,currentIndex:i,previousIndex:t._initialIndex,container:n,previousContainer:t._initialContainer,isPointerOverContainer:o,distance:a,dropPoint:r}),n.drop(t,i,t._initialIndex,t._initialContainer,o,a,r),t._dropContainer=t._initialContainer})}},{key:"_updateActiveDropContainer",value:function(e,t){var n=this,i=e.x,r=e.y,a=t.x,o=t.y,s=this._initialContainer._getSiblingContainerFromPosition(this,i,r);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,r)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(function(){n.exited.next({item:n,container:n._dropContainer}),n._dropContainer.exit(n),n._dropContainer=s,n._dropContainer.enter(n,i,r,s===n._initialContainer&&s.sortingDisabled?n._initialIndex:void 0),n.entered.next({item:n,container:s,currentIndex:s.getItemIndex(n)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(a,o),this._dropContainer._sortItem(this,i,r,this._pointerDirectionDelta),this._applyPreviewTransform(i-this._pickupPositionInElement.x,r-this._pickupPositionInElement.y))}},{key:"_createPreviewElement",value:function(){var e,t=this._previewTemplate,n=this.previewClass,i=t?t.template:null;if(i&&t){var r=t.matchSize?this._rootElement.getBoundingClientRect():null,a=t.viewContainer.createEmbeddedView(i,t.context);a.detectChanges(),e=aw(a,this._document),this._previewRef=a,t.matchSize?ow(e,r):e.style.transform=tw(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var o=this._rootElement;ow(e=ZA(o),o.getBoundingClientRect()),this._initialTransform&&(e.style.transform=this._initialTransform)}return NA(e.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:"".concat(this._config.zIndex||1e3)}),IA(e,!1),e.classList.add("cdk-drag-preview"),e.setAttribute("dir",this._direction),n&&(Array.isArray(n)?n.forEach(function(t){return e.classList.add(t)}):e.classList.add(n)),e}},{key:"_animatePreviewToPlaceholder",value:function(){var e=this;if(!this._hasMoved)return Promise.resolve();var t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);var n=function(e){var t=getComputedStyle(e),n=YA(t,"transition-property"),i=n.find(function(e){return"transform"===e||"all"===e});if(!i)return 0;var r=n.indexOf(i),a=YA(t,"transition-duration"),o=YA(t,"transition-delay");return HA(a[r])+HA(o[r])}(this._preview);return 0===n?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(t){var i=function n(i){(!i||i.target===e._preview&&"transform"===i.propertyName)&&(e._preview.removeEventListener("transitionend",n),t(),clearTimeout(r))},r=setTimeout(i,1.5*n);e._preview.addEventListener("transitionend",i)})})}},{key:"_createPlaceholderElement",value:function(){var e,t=this._placeholderTemplate,n=t?t.template:null;return n?(this._placeholderRef=t.viewContainer.createEmbeddedView(n,t.context),this._placeholderRef.detectChanges(),e=aw(this._placeholderRef,this._document)):e=ZA(this._rootElement),e.classList.add("cdk-drag-placeholder"),e}},{key:"_getPointerPositionInElement",value:function(e,t){var n=this._rootElement.getBoundingClientRect(),i=e===this._rootElement?null:e,r=i?i.getBoundingClientRect():n,a=rw(t)?t.targetTouches[0]:t,o=this._getViewportScrollPosition();return{x:r.left-n.left+(a.pageX-r.left-o.left),y:r.top-n.top+(a.pageY-r.top-o.top)}}},{key:"_getPointerPositionOnPage",value:function(e){var t=this._getViewportScrollPosition(),n=rw(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,i=n.pageX-t.left,r=n.pageY-t.top;if(this._ownerSVGElement){var a=this._ownerSVGElement.getScreenCTM();if(a){var o=this._ownerSVGElement.createSVGPoint();return o.x=i,o.y=r,o.matrixTransform(a.inverse())}}return{x:i,y:r}}},{key:"_getConstrainedPointerPosition",value:function(e){var t=this._dropContainer?this._dropContainer.lockAxis:null,n=this.constrainPosition?this.constrainPosition(e,this):e,i=n.x,r=n.y;if("x"===this.lockAxis||"x"===t?r=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==t||(i=this._pickupPositionOnPage.x),this._boundaryRect){var a=this._pickupPositionInElement,o=a.x,s=a.y,c=this._boundaryRect,u=this._previewRect,l=c.top+s,h=c.bottom-(u.height-s);i=nw(i,c.left+o,c.right-(u.width-o)),r=nw(r,l,h)}return{x:i,y:r}}},{key:"_updatePointerDirectionDelta",value:function(e){var t=e.x,n=e.y,i=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,a=Math.abs(t-r.x),o=Math.abs(n-r.y);return a>this._config.pointerDirectionChangeThreshold&&(i.x=t>r.x?1:-1,r.x=t),o>this._config.pointerDirectionChangeThreshold&&(i.y=n>r.y?1:-1,r.y=n),i}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,IA(this._rootElement,e))}}},{key:"_removeRootElementListeners",value:function(e){e.removeEventListener("mousedown",this._pointerDown,$A),e.removeEventListener("touchstart",this._pointerDown,QA)}},{key:"_applyRootElementTransform",value:function(e,t){var n=tw(e,t);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=BA(n,this._initialTransform)}},{key:"_applyPreviewTransform",value:function(e,t){var n,i=(null===(n=this._previewTemplate)||void 0===n?void 0:n.template)?void 0:this._initialTransform,r=tw(e,t);this._preview.style.transform=BA(r,i)}},{key:"_getDragDistance",value:function(e){var t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}},{key:"_containInsideBoundaryOnResize",value:function(){var e=this._passiveTransform,t=e.x,n=e.y;if(!(0===t&&0===n||this.isDragging())&&this._boundaryElement){var i=this._boundaryElement.getBoundingClientRect(),r=this._rootElement.getBoundingClientRect();if(!(0===i.width&&0===i.height||0===r.width&&0===r.height)){var a=i.left-r.left,o=r.right-i.right,s=i.top-r.top,c=r.bottom-i.bottom;i.width>r.width?(a>0&&(t+=a),o>0&&(t-=o)):t=0,i.height>r.height?(s>0&&(n+=s),c>0&&(n-=c)):n=0,t===this._passiveTransform.x&&n===this._passiveTransform.y||this.setFreeDragPosition({y:n,x:t})}}}},{key:"_getDragStartDelay",value:function(e){var t=this.dragStartDelay;return"number"==typeof t?t:rw(e)?t.touch:t?t.mouse:0}},{key:"_updateOnScroll",value:function(e){var t=this._parentPositions.handleScroll(e);if(t){var n=e.target;this._boundaryRect&&(n===this._document||n!==this._boundaryElement&&n.contains(this._boundaryElement))&&WA(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}},{key:"_getViewportScrollPosition",value:function(){var e=this._parentPositions.positions.get(this._document);return e?e.scrollPosition:this._viewportRuler.getViewportScrollPosition()}},{key:"_getShadowRoot",value:function(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=ca(this._rootElement)),this._cachedShadowRoot}},{key:"_getPreviewInsertionPoint",value:function(e,t){var n=this._previewContainer||"global";if("parent"===n)return e;if("global"===n){var i=this._document;return t||i.fullscreenElement||i.webkitFullscreenElement||i.mozFullScreenElement||i.msFullscreenElement||i.body}return sr(n)}}]),e}();function tw(e,t){return"translate3d(".concat(Math.round(e),"px, ").concat(Math.round(t),"px, 0)")}function nw(e,t,n){return Math.max(t,Math.min(n,e))}function iw(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function rw(e){return"t"===e.type[0]}function aw(e,t){var n=e.rootNodes;if(1===n.length&&n[0].nodeType===t.ELEMENT_NODE)return n[0];var i=t.createElement("div");return n.forEach(function(e){return i.appendChild(e)}),i}function ow(e,t){e.style.width="".concat(t.width,"px"),e.style.height="".concat(t.height,"px"),e.style.transform=tw(t.left,t.top)}function sw(e,t,n){var i=cw(t,e.length-1),r=cw(n,e.length-1);if(i!==r){for(var a=e[i],o=r0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Sr.P;return(!Rr(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=Sr.P),new ke.y(function(n){return n.add(t.schedule(PA,e,{subscriber:n,counter:0,period:e})),n})}(0,gr).pipe(Ir(o._stopScrollTimers)).subscribe(function(){var e=o._scrollNode,t=o.autoScrollStep;1===o._verticalScrollDirection?hw(e,-t):2===o._verticalScrollDirection&&hw(e,t),1===o._horizontalScrollDirection?dw(e,-t):2===o._horizontalScrollDirection&&dw(e,t)})},this.element=sr(t),this._document=i,this.withScrollableParents([this.element]),n.registerDropContainer(this),this._parentPositions=new KA(i,a)}return _createClass(e,[{key:"dispose",value:function(){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)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"start",value:function(){this._draggingStarted(),this._notifyReceivingSiblings()}},{key:"enter",value:function(e,t,n,i){var r;this._draggingStarted(),null==i?-1===(r=this.sortingDisabled?this._draggables.indexOf(e):-1)&&(r=this._getItemIndexFromPointerPosition(e,t,n)):r=i;var a=this._activeDraggables,o=a.indexOf(e),s=e.getPlaceholderElement(),c=a[r];if(c===e&&(c=a[r+1]),o>-1&&a.splice(o,1),c&&!this._dragDropRegistry.isDragging(c)){var u=c.getRootElement();u.parentElement.insertBefore(s,u),a.splice(r,0,e)}else if(this._shouldEnterAsFirstChild(t,n)){var l=a[0].getRootElement();l.parentNode.insertBefore(s,l),a.unshift(e)}else sr(this.element).appendChild(s),a.push(e);s.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}},{key:"exit",value:function(e){this._reset(),this.exited.next({item:e,container:this})}},{key:"drop",value:function(e,t,n,i,r,a,o){this._reset(),this.dropped.next({item:e,currentIndex:t,previousIndex:n,container:this,previousContainer:i,isPointerOverContainer:r,distance:a,dropPoint:o})}},{key:"withItems",value:function(e){var t=this,n=this._draggables;return this._draggables=e,e.forEach(function(e){return e._withDropContainer(t)}),this.isDragging()&&(n.filter(function(e){return e.isDragging()}).every(function(t){return-1===e.indexOf(t)})?this._reset():this._cacheItems()),this}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"connectedTo",value:function(e){return this._siblings=e.slice(),this}},{key:"withOrientation",value:function(e){return this._orientation=e,this}},{key:"withScrollableParents",value:function(e){var t=sr(this.element);return this._scrollableElements=-1===e.indexOf(t)?[t].concat(_toConsumableArray(e)):e.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(e){return this._isDragging?lw("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,function(t){return t.drag===e}):this._draggables.indexOf(e)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(e,t,n,i){if(!this.sortingDisabled&&this._clientRect&&UA(this._clientRect,.05,t,n)){var r=this._itemPositions,a=this._getItemIndexFromPointerPosition(e,t,n,i);if(!(-1===a&&r.length>0)){var o="horizontal"===this._orientation,s=lw(r,function(t){return t.drag===e}),c=r[a],u=c.clientRect,l=s>a?1:-1,h=this._getItemOffsetPx(r[s].clientRect,u,l),d=this._getSiblingOffsetPx(s,r,l),f=r.slice();sw(r,s,a),this.sorted.next({previousIndex:s,currentIndex:a,container:this,item:e}),r.forEach(function(t,n){if(f[n]!==t){var i=t.drag===e,r=i?h:d,a=i?e.getPlaceholderElement():t.drag.getRootElement();t.offset+=r,o?(a.style.transform=BA("translate3d(".concat(Math.round(t.offset),"px, 0, 0)"),t.initialTransform),WA(t.clientRect,0,r)):(a.style.transform=BA("translate3d(0, ".concat(Math.round(t.offset),"px, 0)"),t.initialTransform),WA(t.clientRect,r,0))}}),this._previousSwap.overlaps=FA(u,t,n),this._previousSwap.drag=c.drag,this._previousSwap.delta=o?i.x:i.y}}}},{key:"_startScrollingIfNecessary",value:function(e,t){var n=this;if(!this.autoScrollDisabled){var i,r=0,a=0;if(this._parentPositions.positions.forEach(function(o,s){var c;s!==n._document&&o.clientRect&&!i&&UA(o.clientRect,.05,e,t)&&(c=_slicedToArray(function(e,t,n,i){var r=fw(t,i),a=pw(t,n),o=0,s=0;if(r){var c=e.scrollTop;1===r?c>0&&(o=1):e.scrollHeight-c>e.clientHeight&&(o=2)}if(a){var u=e.scrollLeft;1===a?u>0&&(s=1):e.scrollWidth-u>e.clientWidth&&(s=2)}return[o,s]}(s,o.clientRect,e,t),2),r=c[0],a=c[1],(r||a)&&(i=s))}),!r&&!a){var o=this._viewportRuler.getViewportSize(),s=o.width,c=o.height,u={width:s,height:c,top:0,right:s,bottom:c,left:0};r=fw(u,t),a=pw(u,e),i=window}!i||r===this._verticalScrollDirection&&a===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=r,this._horizontalScrollDirection=a,this._scrollNode=i,(r||a)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_draggingStarted",value:function(){var e=sr(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"_cacheParentPositions",value:function(){var e=sr(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}},{key:"_cacheItemPositions",value:function(){var e="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(function(e){var t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:jA(t)}}).sort(function(t,n){return e?t.clientRect.left-n.clientRect.left:t.clientRect.top-n.clientRect.top})}},{key:"_reset",value:function(){var e=this;this._isDragging=!1;var t=sr(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(function(t){var n,i=t.getRootElement();if(i){var r=null===(n=e._itemPositions.find(function(e){return e.drag===t}))||void 0===n?void 0:n.initialTransform;i.style.transform=r||""}}),this._siblings.forEach(function(t){return t._stopReceiving(e)}),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_getSiblingOffsetPx",value:function(e,t,n){var i="horizontal"===this._orientation,r=t[e].clientRect,a=t[e+-1*n],o=r[i?"width":"height"]*n;if(a){var s=i?"left":"top",c=i?"right":"bottom";-1===n?o-=a.clientRect[s]-r[c]:o+=r[s]-a.clientRect[c]}return o}},{key:"_getItemOffsetPx",value:function(e,t,n){var i="horizontal"===this._orientation,r=i?t.left-e.left:t.top-e.top;return-1===n&&(r+=i?t.width-e.width:t.height-e.height),r}},{key:"_shouldEnterAsFirstChild",value:function(e,t){if(!this._activeDraggables.length)return!1;var n=this._itemPositions,i="horizontal"===this._orientation;if(n[0].drag!==this._activeDraggables[0]){var r=n[n.length-1].clientRect;return i?e>=r.right:t>=r.bottom}var a=n[0].clientRect;return i?e<=a.left:t<=a.top}},{key:"_getItemIndexFromPointerPosition",value:function(e,t,n,i){var r=this,a="horizontal"===this._orientation,o=lw(this._itemPositions,function(o,s,c){var u=o.drag,l=o.clientRect;if(u===e)return c.length<2;if(i){var h=a?i.x:i.y;if(u===r._previousSwap.drag&&r._previousSwap.overlaps&&h===r._previousSwap.delta)return!1}return a?t>=Math.floor(l.left)&&t=Math.floor(l.top)&&n-1})&&(i.add(e),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var e=this;this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(function(t){if(e.isDragging()){var n=e._parentPositions.handleScroll(t);n&&(e._itemPositions.forEach(function(e){WA(e.clientRect,n.top,n.left)}),e._itemPositions.forEach(function(t){var n=t.drag;e._dragDropRegistry.isDragging(n)&&n._sortFromLastPointerPosition()}))}else e.isReceiving()&&e._cacheParentPositions()})}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var e=ca(sr(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}},{key:"_notifyReceivingSiblings",value:function(){var e=this,t=this._activeDraggables.filter(function(e){return e.isDragging()});this._siblings.forEach(function(n){return n._startReceiving(e,t)})}}]),e}();function lw(e,t){for(var n=0;n=n-r&&t<=n+r?1:t>=i-r&&t<=i+r?2:0}function pw(e,t){var n=e.left,i=e.right,r=.05*e.width;return t>=n-r&&t<=n+r?1:t>=i-r&&t<=i+r?2:0}var gw=aa({passive:!1,capture:!0}),mw=function(){var e=function(){function e(t,n){var i=this;_classCallCheck(this,e),this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=function(e){return e.isDragging()},this.pointerMove=new ye.xQ,this.pointerUp=new ye.xQ,this.scroll=new ye.xQ,this._preventDefaultWhileDragging=function(e){i._activeDragInstances.length>0&&e.preventDefault()},this._persistentTouchmoveListener=function(e){i._activeDragInstances.length>0&&(i._activeDragInstances.some(i._draggingPredicate)&&e.preventDefault(),i.pointerMove.next(e))},this._document=n}return _createClass(e,[{key:"registerDropContainer",value:function(e){this._dropInstances.has(e)||this._dropInstances.add(e)}},{key:"registerDragItem",value:function(e){var t=this;this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(function(){t._document.addEventListener("touchmove",t._persistentTouchmoveListener,gw)})}},{key:"removeDropContainer",value:function(e){this._dropInstances.delete(e)}},{key:"removeDragItem",value:function(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,gw)}},{key:"startDragging",value:function(e,t){var n=this;if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){var i=t.type.startsWith("touch");this._globalListeners.set(i?"touchend":"mouseup",{handler:function(e){return n.pointerUp.next(e)},options:!0}).set("scroll",{handler:function(e){return n.scroll.next(e)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:gw}),i||this._globalListeners.set("mousemove",{handler:function(e){return n.pointerMove.next(e)},options:gw}),this._ngZone.runOutsideAngular(function(){n._globalListeners.forEach(function(e,t){n._document.addEventListener(t,e.handler,e.options)})})}}},{key:"stopDragging",value:function(e){var t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}},{key:"isDragging",value:function(e){return this._activeDragInstances.indexOf(e)>-1}},{key:"ngOnDestroy",value:function(){var e=this;this._dragInstances.forEach(function(t){return e.removeDragItem(t)}),this._dropInstances.forEach(function(t){return e.removeDropContainer(t)}),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var e=this;this._globalListeners.forEach(function(t,n){e._document.removeEventListener(n,t.handler,t.options)}),this._globalListeners.clear()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(a.R0b),a.LFG(r.K0))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(a.R0b),a.LFG(r.K0))},token:e,providedIn:"root"}),e}(),vw={dragStartThreshold:5,pointerDirectionChangeThreshold:5},_w=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this._document=t,this._ngZone=n,this._viewportRuler=i,this._dragDropRegistry=r}return _createClass(e,[{key:"createDrag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:vw;return new ew(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(e){return new uw(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(r.K0),a.LFG(a.R0b),a.LFG(ba),a.LFG(mw))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(r.K0),a.LFG(a.R0b),a.LFG(ba),a.LFG(mw))},token:e,providedIn:"root"}),e}(),yw=new a.OlP("CDK_DRAG_PARENT"),bw=new a.OlP("CdkDropListGroup"),Aw=new a.OlP("CDK_DRAG_CONFIG"),ww=0,kw=new a.OlP("CdkDropList"),Mw=function(){var e=function(){function e(t,n,i,r,o,s,c){var u=this;_classCallCheck(this,e),this.element=t,this._changeDetectorRef=i,this._scrollDispatcher=r,this._dir=o,this._group=s,this._destroyed=new ye.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+ww++,this.enterPredicate=function(){return!0},this.sortPredicate=function(){return!0},this.dropped=new a.vpe,this.entered=new a.vpe,this.exited=new a.vpe,this.sorted=new a.vpe,this._unsortedItems=new Set,this._dropListRef=n.createDropList(t),this._dropListRef.data=this,c&&this._assignDefaults(c),this._dropListRef.enterPredicate=function(e,t){return u.enterPredicate(e.data,t.data)},this._dropListRef.sortPredicate=function(e,t,n){return u.sortPredicate(e,t.data,n.data)},this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),e._dropLists.push(this),s&&s._items.add(this)}return _createClass(e,[{key:"disabled",get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(e){this._dropListRef.disabled=this._disabled=nr(e)}},{key:"addItem",value:function(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"removeItem",value:function(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"getSortedItems",value:function(){return Array.from(this._unsortedItems).sort(function(e,t){return e._dragRef.getVisibleElement().compareDocumentPosition(t._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1})}},{key:"ngOnDestroy",value:function(){var t=e._dropLists.indexOf(this);t>-1&&e._dropLists.splice(t,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}},{key:"_setupInputSyncSubscription",value:function(t){var n=this;this._dir&&this._dir.change.pipe(De(this._dir.value),Ir(this._destroyed)).subscribe(function(e){return t.withDirection(e)}),t.beforeStarted.subscribe(function(){var i=ar(n.connectedTo).map(function(t){return"string"==typeof t?e._dropLists.find(function(e){return e.id===t}):t});if(n._group&&n._group._items.forEach(function(e){-1===i.indexOf(e)&&i.push(e)}),!n._scrollableParentsResolved){var r=n._scrollDispatcher.getAncestorScrollContainers(n.element).map(function(e){return e.getElementRef().nativeElement});n._dropListRef.withScrollableParents(r),n._scrollableParentsResolved=!0}t.disabled=n.disabled,t.lockAxis=n.lockAxis,t.sortingDisabled=nr(n.sortingDisabled),t.autoScrollDisabled=nr(n.autoScrollDisabled),t.autoScrollStep=ir(n.autoScrollStep,2),t.connectedTo(i.filter(function(e){return e&&e!==n}).map(function(e){return e._dropListRef})).withOrientation(n.orientation)})}},{key:"_handleEvents",value:function(e){var t=this;e.beforeStarted.subscribe(function(){t._syncItemsWithRef(),t._changeDetectorRef.markForCheck()}),e.entered.subscribe(function(e){t.entered.emit({container:t,item:e.item.data,currentIndex:e.currentIndex})}),e.exited.subscribe(function(e){t.exited.emit({container:t,item:e.item.data}),t._changeDetectorRef.markForCheck()}),e.sorted.subscribe(function(e){t.sorted.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,container:t,item:e.item.data})}),e.dropped.subscribe(function(e){t.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,item:e.item.data,isPointerOverContainer:e.isPointerOverContainer,distance:e.distance,dropPoint:e.dropPoint}),t._changeDetectorRef.markForCheck()})}},{key:"_assignDefaults",value:function(e){var t=e.lockAxis,n=e.draggingDisabled,i=e.sortingDisabled,r=e.listAutoScrollDisabled,a=e.listOrientation;this.disabled=null!=n&&n,this.sortingDisabled=null!=i&&i,this.autoScrollDisabled=null!=r&&r,this.orientation=a||"vertical",t&&(this.lockAxis=t)}},{key:"_syncItemsWithRef",value:function(){this._dropListRef.withItems(this.getSortedItems().map(function(e){return e._dragRef}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(_w),a.Y36(a.sBO),a.Y36(_a),a.Y36(ha,8),a.Y36(bw,12),a.Y36(Aw,8))},e.\u0275dir=a.lG2({type:e,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,t){2&e&&(a.uIk("id",t.id),a.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"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[a._Bn([{provide:bw,useValue:void 0},{provide:kw,useExisting:e}])]}),e._dropLists=[],e}(),Cw=new a.OlP("CdkDragHandle"),Tw=new a.OlP("CdkDragPlaceholder"),Lw=new a.OlP("CdkDragPreview"),Sw=function(){var e=function(){function e(t,n,i,r,o,s,c,u,l,h,d){var f=this;_classCallCheck(this,e),this.element=t,this.dropContainer=n,this._ngZone=r,this._viewContainerRef=o,this._dir=c,this._changeDetectorRef=l,this._selfHandle=h,this._parentDrag=d,this._destroyed=new ye.xQ,this.started=new a.vpe,this.released=new a.vpe,this.ended=new a.vpe,this.entered=new a.vpe,this.exited=new a.vpe,this.dropped=new a.vpe,this.moved=new ke.y(function(e){var t=f._dragRef.moved.pipe((0,ze.U)(function(e){return{source:f,pointerPosition:e.pointerPosition,event:e.event,delta:e.delta,distance:e.distance}})).subscribe(e);return function(){t.unsubscribe()}}),this._dragRef=u.createDrag(t,{dragStartThreshold:s&&null!=s.dragStartThreshold?s.dragStartThreshold:5,pointerDirectionChangeThreshold:s&&null!=s.pointerDirectionChangeThreshold?s.pointerDirectionChangeThreshold:5,zIndex:null==s?void 0:s.zIndex}),this._dragRef.data=this,e._dragInstances.push(this),s&&this._assignDefaults(s),n&&(this._dragRef._withDropContainer(n._dropListRef),n.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}return _createClass(e,[{key:"disabled",get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(e){this._disabled=nr(e),this._dragRef.disabled=this._disabled}},{key:"getPlaceholderElement",value:function(){return this._dragRef.getPlaceholderElement()}},{key:"getRootElement",value:function(){return this._dragRef.getRootElement()}},{key:"reset",value:function(){this._dragRef.reset()}},{key:"getFreeDragPosition",value:function(){return this._dragRef.getFreeDragPosition()}},{key:"ngAfterViewInit",value:function(){var e=this;this._ngZone.onStable.pipe((0,xe.q)(1),Ir(this._destroyed)).subscribe(function(){e._updateRootElement(),e._handles.changes.pipe(De(e._handles),(0,Ve.b)(function(t){var n=t.filter(function(t){return t._parentDrag===e}).map(function(e){return e.element});e._selfHandle&&e.rootElementSelector&&n.push(e.element),e._dragRef.withHandles(n)}),(0,Oe.w)(function(e){return Oa.T.apply(void 0,_toConsumableArray(e.map(function(e){return e._stateChanges.pipe(De(e))})))}),Ir(e._destroyed)).subscribe(function(t){var n=e._dragRef,i=t.element.nativeElement;t.disabled?n.disableHandle(i):n.enableHandle(i)}),e.freeDragPosition&&e._dragRef.setFreeDragPosition(e.freeDragPosition)})}},{key:"ngOnChanges",value:function(e){var t=e.rootElementSelector,n=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),n&&!n.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}},{key:"ngOnDestroy",value:function(){this.dropContainer&&this.dropContainer.removeItem(this);var t=e._dragInstances.indexOf(this);t>-1&&e._dragInstances.splice(t,1),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}},{key:"_updateRootElement",value:function(){var e=this.element.nativeElement,t=this.rootElementSelector?Ew(e,this.rootElementSelector):e;this._dragRef.withRootElement(t||e)}},{key:"_getBoundaryElement",value:function(){var e=this.boundaryElement;return e?"string"==typeof e?Ew(this.element.nativeElement,e):sr(e):null}},{key:"_syncInputs",value:function(t){var n=this;t.beforeStarted.subscribe(function(){if(!t.isDragging()){var e=n._dir,i=n.dragStartDelay,r=n._placeholderTemplate?{template:n._placeholderTemplate.templateRef,context:n._placeholderTemplate.data,viewContainer:n._viewContainerRef}:null,a=n._previewTemplate?{template:n._previewTemplate.templateRef,context:n._previewTemplate.data,matchSize:n._previewTemplate.matchSize,viewContainer:n._viewContainerRef}:null;t.disabled=n.disabled,t.lockAxis=n.lockAxis,t.dragStartDelay="object"==typeof i&&i?i:ir(i),t.constrainPosition=n.constrainPosition,t.previewClass=n.previewClass,t.withBoundaryElement(n._getBoundaryElement()).withPlaceholderTemplate(r).withPreviewTemplate(a).withPreviewContainer(n.previewContainer||"global"),e&&t.withDirection(e.value)}}),t.beforeStarted.pipe((0,xe.q)(1)).subscribe(function(){var i,r;if(n._parentDrag)t.withParent(n._parentDrag._dragRef);else for(var a=n.element.nativeElement.parentElement;a;){if(null===(i=a.classList)||void 0===i?void 0:i.contains("cdk-drag")){t.withParent((null===(r=e._dragInstances.find(function(e){return e.element.nativeElement===a}))||void 0===r?void 0:r._dragRef)||null);break}a=a.parentElement}})}},{key:"_handleEvents",value:function(e){var t=this;e.started.subscribe(function(){t.started.emit({source:t}),t._changeDetectorRef.markForCheck()}),e.released.subscribe(function(){t.released.emit({source:t})}),e.ended.subscribe(function(e){t.ended.emit({source:t,distance:e.distance,dropPoint:e.dropPoint}),t._changeDetectorRef.markForCheck()}),e.entered.subscribe(function(e){t.entered.emit({container:e.container.data,item:t,currentIndex:e.currentIndex})}),e.exited.subscribe(function(e){t.exited.emit({container:e.container.data,item:t})}),e.dropped.subscribe(function(e){t.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,isPointerOverContainer:e.isPointerOverContainer,item:t,distance:e.distance,dropPoint:e.dropPoint})})}},{key:"_assignDefaults",value:function(e){var t=e.lockAxis,n=e.dragStartDelay,i=e.constrainPosition,r=e.previewClass,a=e.boundaryElement,o=e.draggingDisabled,s=e.rootElementSelector,c=e.previewContainer;this.disabled=null!=o&&o,this.dragStartDelay=n||0,t&&(this.lockAxis=t),i&&(this.constrainPosition=i),r&&(this.previewClass=r),a&&(this.boundaryElement=a),s&&(this.rootElementSelector=s),c&&(this.previewContainer=c)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(kw,12),a.Y36(r.K0),a.Y36(a.R0b),a.Y36(a.s_b),a.Y36(Aw,8),a.Y36(ha,8),a.Y36(_w),a.Y36(a.sBO),a.Y36(Cw,10),a.Y36(yw,12))},e.\u0275dir=a.lG2({type:e,selectors:[["","cdkDrag",""]],contentQueries:function(e,t,n){var i;(1&e&&(a.Suo(n,Lw,5),a.Suo(n,Tw,5),a.Suo(n,Cw,5)),2&e)&&(a.iGM(i=a.CRH())&&(t._previewTemplate=i.first),a.iGM(i=a.CRH())&&(t._placeholderTemplate=i.first),a.iGM(i=a.CRH())&&(t._handles=i))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,t){2&e&&a.ekj("cdk-drag-disabled",t.disabled)("cdk-drag-dragging",t._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],previewContainer:["cdkDragPreviewContainer","previewContainer"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[a._Bn([{provide:yw,useExisting:e}]),a.TTD]}),e._dragInstances=[],e}();function Ew(e,t){for(var n=e.parentElement;n;){if(n.matches?n.matches(t):n.msMatchesSelector(t))return n;n=n.parentElement}return null}var zw=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[_w],imports:[Aa]}),e}(),Ow=["*"],xw=new a.OlP("MatChipRemove"),Rw=new a.OlP("MatChipAvatar"),Dw=new a.OlP("MatChipTrailingIcon"),Pw=Du(xu(Ru(function e(t){_classCallCheck(this,e),this._elementRef=t}),"primary"),-1),Nw=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,s,c,u,l){var h;return _classCallCheck(this,n),(h=t.call(this,e))._elementRef=e,h._ngZone=i,h._changeDetectorRef=s,h._hasFocus=!1,h.chipListSelectable=!0,h._chipListMultiple=!1,h._chipListDisabled=!1,h._selected=!1,h._selectable=!0,h._disabled=!1,h._removable=!0,h._onFocus=new ye.xQ,h._onBlur=new ye.xQ,h.selectionChange=new a.vpe,h.destroyed=new a.vpe,h.removed=new a.vpe,h._addHostClassName(),h._chipRippleTarget=c.createElement("div"),h._chipRippleTarget.classList.add("mat-chip-ripple"),h._elementRef.nativeElement.appendChild(h._chipRippleTarget),h._chipRipple=new nl(_assertThisInitialized(h),i,h._chipRippleTarget,r),h._chipRipple.setupTriggerEvents(e),h.rippleConfig=o||{},h._animationsDisabled="NoopAnimations"===u,h.tabIndex=null!=l&&parseInt(l)||-1,h}return _createClass(n,[{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(e){var t=nr(e);t!==this._selected&&(this._selected=t,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(e){this._value=e}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(e){this._selectable=nr(e)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(e){this._disabled=nr(e)}},{key:"removable",get:function(){return this._removable},set:function(e){this._removable=nr(e)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}},{key:"_addHostClassName",value:function(){var e=this._elementRef.nativeElement;e.hasAttribute("mat-basic-chip")||"mat-basic-chip"===e.tagName.toLowerCase()?e.classList.add("mat-basic-chip"):e.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}},{key:"toggleSelected",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(e),this._changeDetectorRef.markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(e){this.disabled?e.preventDefault():e.stopPropagation()}},{key:"_handleKeydown",value:function(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()}}},{key:"_blur",value:function(){var e=this;this._ngZone.onStable.pipe((0,xe.q)(1)).subscribe(function(){e._ngZone.run(function(){e._hasFocus=!1,e._onBlur.next({chip:e})})})}},{key:"_dispatchSelectionChange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}}]),n}(Pw);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(ta),a.Y36(il,8),a.Y36(a.sBO),a.Y36(r.K0),a.Y36(_u,8),a.$8M("tabindex"))},e.\u0275dir=a.lG2({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,t,n){var i;(1&e&&(a.Suo(n,Rw,5),a.Suo(n,Dw,5),a.Suo(n,xw,5)),2&e)&&(a.iGM(i=a.CRH())&&(t.avatar=i.first),a.iGM(i=a.CRH())&&(t.trailingIcon=i.first),a.iGM(i=a.CRH())&&(t.removeIcon=i.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(e,t){1&e&&a.NdJ("click",function(e){return t._handleClick(e)})("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t.focus()})("blur",function(){return t._blur()}),2&e&&(a.uIk("tabindex",t.disabled?null:t.tabIndex)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString())("aria-selected",t.ariaSelected),a.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",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[a.qOj]}),e}(),Iw=new a.OlP("mat-chips-default-options"),qw=Pu(function e(t,n,i,r){_classCallCheck(this,e),this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}),Bw=0,Hw=function e(t,n){_classCallCheck(this,e),this.source=t,this.value=n},Yw=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,s,c,u){var l;return _classCallCheck(this,n),(l=t.call(this,c,o,s,u))._elementRef=e,l._changeDetectorRef=i,l._dir=r,l.ngControl=u,l.controlType="mat-chip-list",l._lastDestroyedChipIndex=null,l._destroyed=new ye.xQ,l._uid="mat-chip-list-"+Bw++,l._tabIndex=0,l._userTabIndex=null,l._onTouched=function(){},l._onChange=function(){},l._multiple=!1,l._compareWith=function(e,t){return e===t},l._required=!1,l._disabled=!1,l.ariaOrientation="horizontal",l._selectable=!0,l.change=new a.vpe,l.valueChange=new a.vpe,l.ngControl&&(l.ngControl.valueAccessor=_assertThisInitialized(l)),l}return _createClass(n,[{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=nr(e),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){this.writeValue(e),this._value=e}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=nr(e),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(e){this._disabled=nr(e),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(e){var t=this;this._selectable=nr(e),this.chips&&this.chips.forEach(function(e){return e.chipListSelectable=t._selectable})}},{key:"tabIndex",set:function(e){this._userTabIndex=e,this._tabIndex=e}},{key:"chipSelectionChanges",get:function(){return Oa.T.apply(void 0,_toConsumableArray(this.chips.map(function(e){return e.selectionChange})))}},{key:"chipFocusChanges",get:function(){return Oa.T.apply(void 0,_toConsumableArray(this.chips.map(function(e){return e._onFocus})))}},{key:"chipBlurChanges",get:function(){return Oa.T.apply(void 0,_toConsumableArray(this.chips.map(function(e){return e._onBlur})))}},{key:"chipRemoveChanges",get:function(){return Oa.T.apply(void 0,_toConsumableArray(this.chips.map(function(e){return e.destroyed})))}},{key:"ngAfterContentInit",value:function(){var e=this;this._keyManager=new Eo(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Ir(this._destroyed)).subscribe(function(t){return e._keyManager.withHorizontalOrientation(t)}),this._keyManager.tabOut.pipe(Ir(this._destroyed)).subscribe(function(){e._allowFocusEscape()}),this.chips.changes.pipe(De(null),Ir(this._destroyed)).subscribe(function(){e.disabled&&Promise.resolve().then(function(){e._syncChipsState()}),e._resetChips(),e._initializeSelection(),e._updateTabIndex(),e._updateFocusForDestroyedChips(),e.stateChanges.next()})}},{key:"ngOnInit",value:function(){this._selectionModel=new ga(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"writeValue",value:function(e){this.chips&&this._setSelectionByValue(e,!1)}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this.stateChanges.next()}},{key:"onContainerClick",value:function(e){this._originatesFromChip(e)||this.focus()}},{key:"focus",value:function(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}},{key:"_focusInput",value:function(e){this._chipInput&&this._chipInput.focus(e)}},{key:"_keydown",value:function(e){var t=e.target;t&&t.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(e){return e>=0&&e1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach(function(e){return e.deselect()}),Array.isArray(e))e.forEach(function(e){return t._selectValue(e,n)}),this._sortValues();else{var i=this._selectValue(e,n);i&&n&&this._keyManager.setActiveItem(i)}}},{key:"_selectValue",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.chips.find(function(n){return null!=n.value&&t._compareWith(n.value,e)});return i&&(n?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then(function(){(e.ngControl||e._value)&&(e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value,!1),e.stateChanges.next())})}},{key:"_clearSelection",value:function(e){this._selectionModel.clear(),this.chips.forEach(function(t){t!==e&&t.deselect()}),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(t){t.selected&&e._selectionModel.select(t)}),this.stateChanges.next())}},{key:"_propagateChanges",value:function(e){var t;t=Array.isArray(this.selected)?this.selected.map(function(e){return e.value}):this.selected?this.selected.value:e,this._value=t,this.change.emit(new Hw(this,t)),this.valueChange.emit(t),this._onChange(t),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var e=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(function(){e.focused||e._markAsTouched()}):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var e=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(function(){e._tabIndex=e._userTabIndex||0,e._changeDetectorRef.markForCheck()}))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){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)}},{key:"_listenToChipsSelection",value:function(){var e=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(function(t){t.source.selected?e._selectionModel.select(t.source):e._selectionModel.deselect(t.source),e.multiple||e.chips.forEach(function(t){!e._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),t.isUserInput&&e._propagateChanges()})}},{key:"_listenToChipsFocus",value:function(){var e=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(t){var n=e.chips.toArray().indexOf(t.chip);e._isValidIndex(n)&&e._keyManager.updateActiveItem(n),e.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(function(){e._blur(),e.stateChanges.next()})}},{key:"_listenToChipsRemoved",value:function(){var e=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(function(t){var n=t.chip,i=e.chips.toArray().indexOf(t.chip);e._isValidIndex(i)&&n._hasFocus&&(e._lastDestroyedChipIndex=i)})}},{key:"_originatesFromChip",value:function(e){for(var t=e.target;t&&t!==this._elementRef.nativeElement;){if(t.classList.contains("mat-chip"))return!0;t=t.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips&&this.chips.some(function(e){return e._hasFocus})}},{key:"_syncChipsState",value:function(){var e=this;this.chips&&this.chips.forEach(function(t){t._chipListDisabled=e._disabled,t._chipListMultiple=e.multiple})}}]),n}(qw);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(ha,8),a.Y36(sf,8),a.Y36(yf,8),a.Y36(Zu),a.Y36(Od,10))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-chip-list"]],contentQueries:function(e,t,n){var i;(1&e&&a.Suo(n,Nw,5),2&e)&&(a.iGM(i=a.CRH())&&(t.chips=i))},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(e,t){1&e&&a.NdJ("focus",function(){return t.focus()})("blur",function(){return t._blur()})("keydown",function(e){return t._keydown(e)}),2&e&&(a.Ikx("id",t._uid),a.uIk("tabindex",t.disabled?null:t._tabIndex)("aria-describedby",t._ariaDescribedby||null)("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),a.ekj("mat-chip-list-disabled",t.disabled)("mat-chip-list-invalid",t.errorState)("mat-chip-list-required",t.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[a._Bn([{provide:jh,useExisting:e}]),a.qOj],ngContentSelectors:Ow,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,t){1&e&&(a.F$t(),a.TgZ(0,"div",0),a.Hsn(1),a.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.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-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height: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:focus{outline:dotted 2px}.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}.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}\n'],encapsulation:2,changeDetection:0}),e}(),jw=0,Fw=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._elementRef=t,this._defaultOptions=n,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new a.vpe,this.placeholder="",this.id="mat-chip-list-input-"+jw++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}return _createClass(e,[{key:"chipList",set:function(e){e&&(this._chipList=e,this._chipList.registerInput(this))}},{key:"addOnBlur",get:function(){return this._addOnBlur},set:function(e){this._addOnBlur=nr(e)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(e){this._disabled=nr(e)}},{key:"empty",get:function(){return!this.inputElement.value}},{key:"ngOnChanges",value:function(){this._chipList.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.chipEnd.complete()}},{key:"ngAfterContentInit",value:function(){this._focusLastChipOnBackspace=this.empty}},{key:"_keydown",value:function(e){if(e){if(9!==e.keyCode||Da(e,"shiftKey")||this._chipList._allowFocusEscape(),8===e.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void e.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(e)}},{key:"_keyup",value:function(e){!this._focusLastChipOnBackspace&&8===e.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,e.preventDefault())}},{key:"_blur",value:function(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}},{key:"_focus",value:function(){this.focused=!0,this._chipList.stateChanges.next()}},{key:"_emitChipEnd",value:function(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}),null==e||e.preventDefault())}},{key:"_onInput",value:function(){this._chipList.stateChanges.next()}},{key:"focus",value:function(e){this.inputElement.focus(e)}},{key:"clear",value:function(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}},{key:"_isSeparatorKey",value:function(e){return!Da(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(Iw))},e.\u0275dir=a.lG2({type:e,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(e,t){1&e&&a.NdJ("keydown",function(e){return t._keydown(e)})("keyup",function(e){return t._keyup(e)})("blur",function(){return t._blur()})("focus",function(){return t._focus()})("input",function(){return t._onInput()}),2&e&&(a.Ikx("id",t.id),a.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:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[a.TTD]}),e}(),Ww={separatorKeyCodes:[13]},Uw=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[Zu,{provide:Iw,useValue:Ww}],imports:[[zu]]}),e}();function Kw(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-icon",9),a.NdJ("mousedown",function(){return a.CHM(n),a.oxw(2).dragDisabled=!1}),a._uU(1,"drag_indicator"),a.qZA()}}function Zw(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-icon",10),a.NdJ("click",function(){a.CHM(n);var e=a.oxw().$implicit;return a.oxw().edit(e)}),a._uU(1,"edit"),a.qZA()}}function Gw(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-icon",11),a.NdJ("click",function(){a.CHM(n);var e=a.oxw().$implicit;return a.oxw().remove(e)}),a._uU(1,"cancel"),a.qZA()}}function Xw(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-chip",4),a.NdJ("removed",function(){var e=a.CHM(n).$implicit,t=a.oxw();return t.remove(e),t._sendEventToParent()}),a.YNc(1,Kw,2,0,"mat-icon",5),a.TgZ(2,"div",6),a.NdJ("click",function(){var e=a.CHM(n).$implicit,t=a.oxw();return t.readonly&&void 0!==t.attribute.displayName&&t.showValue(e,t.attribute.displayName)}),a._uU(3),a.qZA(),a.YNc(4,Zw,2,0,"mat-icon",7),a.YNc(5,Gw,2,0,"mat-icon",8),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw();a.Q6J("selectable",r.selectable)("cdkDragData",i)("removable",r.removable),a.xp6(1),a.Q6J("ngIf",r.removable),a.xp6(1),a.ekj("cursor-pointer",r.readonly&&void 0!==r.attribute.displayName),a.xp6(1),a.Oqu(i),a.xp6(1),a.Q6J("ngIf",r.removable),a.xp6(1),a.Q6J("ngIf",r.removable)}}function Vw(e,t){1&e&&(a.TgZ(0,"mat-icon"),a._uU(1,"more_horiz"),a.qZA())}function Jw(e,t){1&e&&(a.TgZ(0,"mat-icon"),a._uU(1,"keyboard_arrow_up"),a.qZA())}function Qw(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",12),a.TgZ(1,"span",13),a.TgZ(2,"button",14),a.NdJ("click",function(){return a.CHM(n),a.oxw().onShowChange()}),a.YNc(3,Vw,2,0,"mat-icon",15),a.YNc(4,Jw,2,0,"mat-icon",15),a.qZA(),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.xp6(1),a.Q6J("matTooltip",i.showMore?"Show less":"Show more")("matTooltipPosition","above"),a.xp6(2),a.Q6J("ngIf",!i.showMore),a.xp6(1),a.Q6J("ngIf",i.showMore)}}function $w(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-form-field",12),a.TgZ(1,"input",16),a.NdJ("matChipInputTokenEnd",function(e){return a.CHM(n),a.oxw().add(e)})("change",function(){return a.CHM(n),a.oxw()._sendEventToParent()}),a.qZA(),a.qZA()}if(2&e){var i=a.oxw(),r=a.MAs(2);a.xp6(1),a.Q6J("matChipInputFor",r)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("matChipInputAddOnBlur",i.addOnBlur)}}var ek=function(){var e=function(){function e(t){_classCallCheck(this,e),this.dialog=t,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[13,188],this.values=[],this.showMore=!1,this.defaultItemsShown=5,this.sendEventToParent=new a.vpe,this.readonly=!1}return _createClass(e,[{key:"ngOnInit",value:function(){this.removable=!fg(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=Object.values(this.attribute.value),this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=fg(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}},{key:"add",value:function(e){var t=e.input,n=e.value;(n||"").trim()&&(this.attribute.value.push(n.trim()),this.values=Object.values(this.attribute.value),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),t&&(t.value=""),this.sendEventToParent.emit()}},{key:"remove",value:function(e){var t=this,n=dg();n.width="400px",n.data={name:e},this.dialog.open(Wv,n).afterClosed().subscribe(function(n){if(n){var i=t.attribute.value.indexOf(e);t.attribute.value.splice(i,1),t.values=Object.values(t.attribute.value),t.sendEventToParent.emit()}})}},{key:"drop",value:function(e){this.dragDisabled=!0,sw(this.attribute.value,e.previousIndex,e.currentIndex),this.values=Object.values(this.attribute.value)}},{key:"edit",value:function(e){var t=this,n=this.attribute.value.indexOf(e),i=dg();i.width="600px",i.data={attribute:this.attribute,index:n},this.dialog.open(Fv,i).afterClosed().subscribe(function(e){e&&(t.values=Object.values(t.attribute.value),t.sendEventToParent.emit())})}},{key:"showValue",value:function(e,t){var n=dg();n.width="350px",n.data={value:e,title:t},this.dialog.open(jv,n)}},{key:"setItemsShown",value:function(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}},{key:"onShowChange",value:function(){this.showMore=!this.showMore,this.setItemsShown()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Dl))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"div"),a.TgZ(1,"mat-chip-list",0,1),a.NdJ("cdkDropListDropped",function(e){return t.drop(e),t._sendEventToParent()}),a.YNc(3,Xw,6,9,"mat-chip",2),a.YNc(4,Qw,5,4,"div",3),a.YNc(5,$w,2,3,"mat-form-field",3),a.qZA(),a.qZA()),2&e&&(a.xp6(1),a.Q6J("cdkDropListDisabled",t.dragDisabled),a.xp6(2),a.Q6J("ngForOf",t.values.slice(0,t.itemsShown)),a.xp6(1),a.Q6J("ngIf",t.values.length>t.defaultItemsShown),a.xp6(1),a.Q6J("ngIf",!t.readonly))},directives:[Yw,Mw,r.sg,r.O5,Nw,Sw,sg,up,_h,td,tm,Fw],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%], .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}.edit-delete-icon[_ngcontent-%COMP%], .handle-icon[_ngcontent-%COMP%]{justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),e}(),tk=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e){return e.replace(/\s/g,"-").toLowerCase()}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=a.Yjl({name:"multiWordDataCy",type:e,pure:!0}),e}(),nk=function(){var e=function(){function e(t){_classCallCheck(this,e),this.dialog=t,this.readonly=!1,this.sendEventToParent=new a.vpe}return _createClass(e,[{key:"ngOnInit",value:function(){this.value=this.attribute.value,this.readonly||(this.readonly=fg(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}},{key:"showValue",value:function(e,t){var n=dg();n.width="350px",n.data={value:e,title:t},this.dialog.open(jv,n)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Dl))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"mat-form-field",0),a.TgZ(1,"input",1),a.NdJ("click",function(){return t.readonly&&void 0!==t.value&&t.showValue(t.value,t.attribute.displayName)})("ngModelChange",function(e){return t.attribute.value=e})("keydown",function(){return t._sendEventToParent()}),a.ALo(2,"multiWordDataCy"),a.qZA(),a.qZA()),2&e&&(a.s9C("appearance",t.readonly?"none":"standard"),a.xp6(1),a.ekj("cursor-pointer",t.readonly&&void 0!==t.value),a.Q2q("data-cy","",a.lcZ(2,6,t.attribute.displayName),"-value"),a.Q6J("readonly",t.readonly)("ngModel",t.attribute.value))},directives:[td,tm,cd,Rd,lf],pipes:[tk],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),e}(),ik=function(){var e=function(){function e(t){_classCallCheck(this,e),this.dialog=t,this.readonly=!1,this.sendEventToParent=new a.vpe}return _createClass(e,[{key:"ngOnInit",value:function(){this.readonly||(this.readonly=fg(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}},{key:"showValue",value:function(e){var t=dg();t.width="350px",t.data={value:e.value,title:e.displayName},this.dialog.open(jv,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Dl))},e.\u0275cmp=a.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(e,t){1&e&&(a.TgZ(0,"mat-form-field",0),a.TgZ(1,"input",1),a.NdJ("click",function(){return t.readonly&&void 0!==t.attribute.value&&t.showValue(t.attribute)})("ngModelChange",function(e){return t.attribute.value=e})("keydown",function(){return t._sendEventToParent()}),a.qZA(),a.qZA()),2&e&&(a.s9C("appearance",t.readonly?"none":"standard"),a.xp6(1),a.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.value),a.Q6J("readonly",t.readonly)("ngModel",t.attribute.value))},directives:[td,tm,ff,cd,Rd,lf],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),e}(),rk=["map"];function ak(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"perun-web-apps-attribute-value-boolean",3),a.NdJ("sendEventToParent",function(){return a.CHM(n),a.oxw()._sendEventToParent2()}),a.qZA()}if(2&e){var i=a.oxw();a.Q6J("attribute",i.attribute)("readonly",i.readonly)}}function ok(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"perun-web-apps-attribute-value-list",3),a.NdJ("sendEventToParent",function(){return a.CHM(n),a.oxw()._sendEventToParent2()}),a.qZA()}if(2&e){var i=a.oxw();a.Q6J("attribute",i.attribute)("readonly",i.readonly)}}function sk(e,t){if(1&e&&a._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&e){var n=a.oxw();a.Q6J("attribute",n.attribute)("readonly",n.readonly)}}function ck(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"perun-web-apps-attribute-value-string",3),a.NdJ("sendEventToParent",function(){return a.CHM(n),a.oxw()._sendEventToParent2()}),a.qZA()}if(2&e){var i=a.oxw();a.Q6J("attribute",i.attribute)("readonly",i.readonly)}}function uk(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"perun-web-apps-attribute-value-integer",3),a.NdJ("sendEventToParent",function(){return a.CHM(n),a.oxw()._sendEventToParent2()}),a.qZA()}if(2&e){var i=a.oxw();a.Q6J("attribute",i.attribute)("readonly",i.readonly)}}var lk=function(){var e=function(){function e(){_classCallCheck(this,e),this.readonly=!1,this.sendEventToParent2=new a.vpe}return _createClass(e,[{key:"updateMapAttribute",value:function(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}},{key:"_sendEventToParent2",value:function(){this.sendEventToParent2.emit()}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.Xpm({type:e,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(e,t){var n;(1&e&&a.Gf(rk,5),2&e)&&(a.iGM(n=a.CRH())&&(t.mapComponent=n.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&&(a.TgZ(0,"div"),a.YNc(1,ak,1,2,"perun-web-apps-attribute-value-boolean",0),a.YNc(2,ok,1,2,"perun-web-apps-attribute-value-list",0),a.TgZ(3,"div",1),a.NdJ("click",function(){return t._sendEventToParent2()}),a.YNc(4,sk,2,2,"perun-web-apps-attribute-value-map",2),a.qZA(),a.YNc(5,ck,1,2,"perun-web-apps-attribute-value-string",0),a.YNc(6,uk,1,2,"perun-web-apps-attribute-value-integer",0),a.qZA()),2&e&&(a.xp6(1),a.Q6J("ngIf","java.lang.Boolean"===t.attribute.type),a.xp6(1),a.Q6J("ngIf","java.util.ArrayList"===t.attribute.type),a.xp6(2),a.Q6J("ngIf","java.util.LinkedHashMap"===t.attribute.type),a.xp6(1),a.Q6J("ngIf","java.lang.String"===t.attribute.type||"java.lang.LargeString"===t.attribute.type),a.xp6(1),a.Q6J("ngIf","java.lang.Integer"===t.attribute.type))},directives:[r.O5,DA,ek,_A,nk,ik],styles:[""]}),e}();function hk(e,t){1&e&&a._UZ(0,"mat-spinner",3)}function dk(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-option",16),a.NdJ("click",function(){var e=a.CHM(n).$implicit;return a.oxw(4).changeLanguage(e)}),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"uppercase"),a.qZA()}if(2&e){var i=t.$implicit;a.Q6J("value",i),a.xp6(1),a.hij(" ",a.lcZ(2,2,a.lcZ(3,4,"SHARED_LIB.LANGUAGES."+i))," ")}}function fk(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-form-field",13),a.TgZ(1,"mat-select",14),a.NdJ("valueChange",function(e){return a.CHM(n),a.oxw(3).currentLang=e}),a.YNc(2,dk,4,6,"mat-option",15),a.qZA(),a.qZA()}if(2&e){var i=a.oxw(3);a.xp6(1),a.Q6J("value",i.currentLang),a.xp6(1),a.Q6J("ngForOf",i.languages)}}function pk(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div"),a.TgZ(1,"a",17),a._uU(2),a.qZA(),a.TgZ(3,"button",18),a.NdJ("click",function(){return a.CHM(n),a.oxw(3).changeEmail()}),a.TgZ(4,"mat-icon"),a._uU(5," edit "),a.qZA(),a.qZA(),a.qZA()}if(2&e){var i=a.oxw(3);a.xp6(1),a.MGl("href","mailto:",i.email,"",a.LSH),a.xp6(1),a.Oqu(i.email)}}function gk(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-option",16),a.NdJ("click",function(){var e=a.CHM(n).$implicit;return a.oxw(4).changeTimeZone(e)}),a._uU(1),a.qZA()}if(2&e){var i=t.$implicit;a.Q6J("value",i),a.xp6(1),a.hij(" ",i," ")}}function mk(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-form-field",13),a.TgZ(1,"mat-select",19),a.NdJ("valueChange",function(e){return a.CHM(n),a.oxw(3).currentTimezone=e}),a.YNc(2,gk,2,2,"mat-option",15),a.qZA(),a.qZA()}if(2&e){var i=a.oxw(3);a.xp6(1),a.Q6J("value",i.currentTimezone),a.xp6(1),a.Q6J("ngForOf",i.timeZones)}}function vk(e,t){1&e&&(a.TgZ(0,"p"),a._uU(1,"-"),a.qZA())}function _k(e,t){if(1&e&&a._UZ(0,"perun-web-apps-attribute-value",22),2&e){var n=a.oxw(2).$implicit;a.Q6J("attribute",n.attribute)("readonly",!0)}}function yk(e,t){if(1&e&&(a.TgZ(0,"div"),a.YNc(1,vk,2,0,"p",20),a.YNc(2,_k,1,2,"perun-web-apps-attribute-value",21),a.qZA()),2&e){var n=a.oxw().$implicit;a.xp6(1),a.Q6J("ngIf",!n.attribute.value),a.xp6(1),a.Q6J("ngIf",n.attribute.value)}}function bk(e,t){if(1&e&&(a.TgZ(0,"tr"),a.TgZ(1,"td",7),a.TgZ(2,"div",8),a._uU(3),a.qZA(),a.qZA(),a.TgZ(4,"td",9),a.YNc(5,fk,3,2,"mat-form-field",10),a.YNc(6,pk,6,2,"div",11),a.YNc(7,mk,3,2,"mat-form-field",10),a.YNc(8,yk,3,2,"div",12),a.qZA(),a.qZA()),2&e){var n=t.$implicit,i=a.oxw(2);a.xp6(2),a.Q6J("matTooltip",n["tooltip_"+i.currentLang]),a.xp6(1),a.Oqu(n["displayName_"+i.currentLang]),a.xp6(1),a.Q6J("ngSwitch",n.attribute.friendlyName),a.xp6(1),a.Q6J("ngSwitchCase","preferredLanguage"),a.xp6(1),a.Q6J("ngSwitchCase","preferredMail"),a.xp6(1),a.Q6J("ngSwitchCase","timezone")}}function Ak(e,t){if(1&e&&(a.TgZ(0,"table",4),a.TgZ(1,"tbody"),a.TgZ(2,"tr"),a.TgZ(3,"td",5),a._uU(4),a.ALo(5,"translate"),a.ALo(6,"customTranslate"),a.qZA(),a.TgZ(7,"td"),a._uU(8),a.qZA(),a.qZA(),a.YNc(9,bk,9,6,"tr",6),a.qZA(),a.qZA()),2&e){var n=a.oxw();a.xp6(4),a.Oqu(a.lcZ(5,3,a.lcZ(6,5,"PROFILE_PAGE.NAME"))),a.xp6(4),a.Oqu(n.fullName),a.xp6(1),a.Q6J("ngForOf",n.additionalAttributes)}}var wk=function(){var e=function(){function e(t,n,i,r,a,o,s,c,u,l,h){var d=this;_classCallCheck(this,e),this.translateService=t,this.dialog=n,this.authzResolverService=i,this.attributesManagerService=r,this.usersManagerService=a,this.route=o,this.router=s,this.notificator=c,this.storeService=u,this.apiRequestConfiguration=l,this.preferredLangService=h,this.currentLang="en",this.languages=this.storeService.get("supported_languages"),this.timeZones=hA.tz.names().filter(function(e){return!e.startsWith("Etc/")}),this.additionalAttributes=[],this.email="",this.fullName="",this.organization="",this.currentTimezone="",t.get("PROFILE_PAGE.MAIL_CHANGE_SUCCESS").subscribe(function(e){return d.successMessage=e})}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this,t=this.route.snapshot.queryParamMap,n=t.get("token"),i=t.get("u");this.loading=!0,n&&i?(this.apiRequestConfiguration.dontHandleErrorForNext(),this.usersManagerService.validatePreferredEmailChangeWithToken(n,Number.parseInt(i,10)).subscribe(function(){e.notificator.showSuccess(e.successMessage),e.router.navigate([],{replaceUrl:!0}),e.getData()},function(){var t=dg();t.width="600px",e.dialog.open(Gv,t).afterClosed().subscribe(function(){e.getData()})})):this.getData()}},{key:"getData",value:function(){var e=this;this.authzResolverService.getPerunPrincipal().subscribe(function(t){e.userId=t.userId,e.usersManagerService.getRichUserWithAttributes(e.userId).subscribe(function(t){e.fullName=(new Fg).transform(t);var n=t.userAttributes.find(function(e){return"preferredMail"===e.friendlyName});e.email=n.value,e.languageAttribute=t.userAttributes.find(function(e){return"preferredLanguage"===e.friendlyName});var i=e.languageAttribute&&e.languageAttribute.value?e.languageAttribute.value.toString():null,r=e.preferredLangService.getPreferredLanguage(i);e.translateService.use(r),e.currentLang=r,e.timezoneAttribute=t.userAttributes.find(function(e){return"timezone"===e.friendlyName}),e.currentTimezone=e.timezoneAttribute&&e.timezoneAttribute.value?e.timezoneAttribute.value:"-";var a=e.storeService.get("profile_page_attributes"),o=0,s=e.storeService.get("supported_languages");a.forEach(function(n){var i=t.userAttributes.find(function(e){return e.friendlyName===n.friendly_name});i?(o++,e.addAttribute(i,n,s)):e.attributesManagerService.getAttributeDefinitionByName("urn:perun:user:attribute-def:".concat(n.is_virtual?"virt":"def",":").concat(n.friendly_name)).subscribe(function(t){e.addAttribute(t,n,s),o++,e.loading=o!==a.length}),e.loading=o!==a.length})})})}},{key:"addAttribute",value:function(e,t,n){var i,r,a={attribute:e},o=_createForOfIteratorHelper(n);try{for(o.s();!(r=o.n()).done;){var s=r.value;a["displayName_".concat(s)]=t["display_name_".concat(s)]&&t["display_name_".concat(s)].length?t["display_name_".concat(s)]:e.displayName,a["tooltip_".concat(s)]=null!==(i=t["tooltip_".concat(s)])&&void 0!==i?i:""}}catch(c){o.e(c)}finally{o.f()}this.additionalAttributes.push(a)}},{key:"changeLanguage",value:function(e){var t=this;this.currentLang=e,this.translateService.use(this.currentLang),this.languageAttribute?this.setLanguage():this.attributesManagerService.getAttributeDefinitionByName("urn:perun:user:attribute-def:def:preferredLanguage").subscribe(function(e){t.languageAttribute=e,t.setLanguage()})}},{key:"setLanguage",value:function(){var e=this;this.languageAttribute.value=this.currentLang,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.languageAttribute}).subscribe(function(){e.router.navigate([],{queryParams:{lang:null},queryParamsHandling:"merge"})})}},{key:"changeTimeZone",value:function(e){var t=this;this.currentTimezone=e,this.timezoneAttribute?this.setTimeZone():this.attributesManagerService.getAttributeDefinitionByName("urn:perun:user:attribute-def:def:timezone").subscribe(function(e){t.timezoneAttribute=e,t.setTimeZone()})}},{key:"setTimeZone",value:function(){this.timezoneAttribute.value=this.currentTimezone,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.timezoneAttribute}).subscribe(function(){})}},{key:"changeEmail",value:function(){var e=this,t=dg();t.width="350px",t.data={userId:this.userId},this.dialog.open(Zv,t).afterClosed().subscribe(function(t){t&&e.getEmail()})}},{key:"getEmail",value:function(){var e=this;this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredMail").subscribe(function(t){e.email=t.value})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(lh),a.Y36(Dl),a.Y36(ae),a.Y36(re),a.Y36(he),a.Y36(un),a.Y36(zi),a.Y36(xg),a.Y36(tr),a.Y36(Og),a.Y36(Ig))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"div",0),a.YNc(1,hk,1,0,"mat-spinner",1),a.YNc(2,Ak,10,7,"table",2),a.qZA()),2&e&&(a.xp6(1),a.Q6J("ngIf",t.loading),a.xp6(1),a.Q6J("ngIf",!t.loading))},directives:[r.O5,_m,r.sg,up,r.RF,r.n9,r.ED,td,Gf,ml,_h,sg,lk],pipes:[hh,Wg,r.gd],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}"]}),e}(),kk=["mat-sort-header",""];function Mk(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",3),a.NdJ("@arrowPosition.start",function(){return a.CHM(n),a.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return a.CHM(n),a.oxw()._disableViewStateAnimation=!1}),a._UZ(1,"div",4),a.TgZ(2,"div",5),a._UZ(3,"div",6),a._UZ(4,"div",7),a._UZ(5,"div",8),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.Q6J("@arrowOpacity",i._getArrowViewState())("@arrowPosition",i._getArrowViewState())("@allowChildren",i._getArrowDirectionState()),a.xp6(2),a.Q6J("@indicator",i._getArrowDirectionState()),a.xp6(1),a.Q6J("@leftPointer",i._getArrowDirectionState()),a.xp6(1),a.Q6J("@rightPointer",i._getArrowDirectionState())}}var Ck,Tk=["*"],Lk=new a.OlP("MAT_SORT_DEFAULT_OPTIONS"),Sk=Nu(Ou(function e(){_classCallCheck(this,e)})),Ek=((Ck=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._defaultOptions=e,i.sortables=new Map,i._stateChanges=new ye.xQ,i.start="asc",i._direction="",i.sortChange=new a.vpe,i}return _createClass(n,[{key:"direction",get:function(){return this._direction},set:function(e){this._direction=e}},{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=nr(e)}},{key:"register",value:function(e){this.sortables.set(e.id,e)}},{key:"deregister",value:function(e){this.sortables.delete(e.id)}},{key:"sort",value:function(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})}},{key:"getNextSortDirection",value:function(e){var t,n,i;if(!e)return"";var r=null!==(n=null!==(t=null==e?void 0:e.disableClear)&&void 0!==t?t:this.disableClear)&&void 0!==n?n:!!(null===(i=this._defaultOptions)||void 0===i?void 0:i.disableClear),a=function(e,t){var n=["asc","desc"];return"desc"==e&&n.reverse(),t||n.push(""),n}(e.start||this.start,r),o=a.indexOf(this.direction)+1;return o>=a.length&&(o=0),a[o]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(Sk)).\u0275fac=function(e){return new(e||Ck)(a.Y36(Lk,8))},Ck.\u0275dir=a.lG2({type:Ck,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[a.qOj,a.TTD]}),Ck),zk=Lu.ENTERING+" "+Tu.STANDARD_CURVE,Ok={indicator:Go("indicator",[$o("active-asc, asc",Qo({transform:"translateY(0px)"})),$o("active-desc, desc",Qo({transform:"translateY(10px)"})),ts("active-asc <=> active-desc",Xo(zk))]),leftPointer:Go("leftPointer",[$o("active-asc, asc",Qo({transform:"rotate(-45deg)"})),$o("active-desc, desc",Qo({transform:"rotate(45deg)"})),ts("active-asc <=> active-desc",Xo(zk))]),rightPointer:Go("rightPointer",[$o("active-asc, asc",Qo({transform:"rotate(45deg)"})),$o("active-desc, desc",Qo({transform:"rotate(-45deg)"})),ts("active-asc <=> active-desc",Xo(zk))]),arrowOpacity:Go("arrowOpacity",[$o("desc-to-active, asc-to-active, active",Qo({opacity:1})),$o("desc-to-hint, asc-to-hint, hint",Qo({opacity:.54})),$o("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Qo({opacity:0})),ts("* => asc, * => desc, * => active, * => hint, * => void",Xo("0ms")),ts("* <=> *",Xo(zk))]),arrowPosition:Go("arrowPosition",[ts("* => desc-to-hint, * => desc-to-active",Xo(zk,es([Qo({transform:"translateY(-25%)"}),Qo({transform:"translateY(0)"})]))),ts("* => hint-to-desc, * => active-to-desc",Xo(zk,es([Qo({transform:"translateY(0)"}),Qo({transform:"translateY(25%)"})]))),ts("* => asc-to-hint, * => asc-to-active",Xo(zk,es([Qo({transform:"translateY(25%)"}),Qo({transform:"translateY(0)"})]))),ts("* => hint-to-asc, * => active-to-asc",Xo(zk,es([Qo({transform:"translateY(0)"}),Qo({transform:"translateY(-25%)"})]))),$o("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Qo({transform:"translateY(0)"})),$o("hint-to-desc, active-to-desc, desc",Qo({transform:"translateY(-25%)"})),$o("hint-to-asc, active-to-asc, asc",Qo({transform:"translateY(25%)"}))]),allowChildren:Go("allowChildren",[ts("* <=> *",[is("@*",ns(),{optional:!0})])])},xk=function(){var e=function e(){_classCallCheck(this,e),this.changes=new ye.xQ};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=a.Yz7({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Rk={provide:xk,deps:[[new a.FiY,new a.tp0,xk]],useFactory:function(e){return e||new xk}},Dk=Ou(function e(){_classCallCheck(this,e)}),Pk=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o,s){var c;return _classCallCheck(this,n),(c=t.call(this))._intl=e,c._changeDetectorRef=i,c._sort=r,c._columnDef=a,c._focusMonitor=o,c._elementRef=s,c._showIndicatorHint=!1,c._viewState={},c._arrowDirection="",c._disableViewStateAnimation=!1,c.arrowPosition="after",c._handleStateChanges(),c}return _createClass(n,[{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=nr(e)}},{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){var n=!!t;n!==e._showIndicatorHint&&(e._setIndicatorHintVisible(n),e._changeDetectorRef.markForCheck())})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(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})))}},{key:"_setAnimationTransitionState",value:function(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0)}},{key:"_handleClick",value:function(){this._isDisabled()||this._sort.sort(this)}},{key:"_handleKeydown",value:function(e){this._isDisabled()||32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var e=this._viewState.fromState;return(e?"".concat(e,"-to-"):"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"_handleStateChanges",value:function(){var e=this;this._rerenderSubscription=(0,Oa.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){e._isSorted()&&(e._updateArrowDirection(),"hint"!==e._viewState.toState&&"active"!==e._viewState.toState||(e._disableViewStateAnimation=!0),e._setAnimationTransitionState({fromState:e._arrowDirection,toState:"active"}),e._showIndicatorHint=!1),!e._isSorted()&&e._viewState&&"active"===e._viewState.toState&&(e._disableViewStateAnimation=!1,e._setAnimationTransitionState({fromState:"active",toState:e._arrowDirection})),e._changeDetectorRef.markForCheck()})}}]),n}(Dk);return e.\u0275fac=function(t){return new(t||e)(a.Y36(xk),a.Y36(a.sBO),a.Y36(Ek,8),a.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),a.Y36(jo),a.Y36(a.SBq))},e.\u0275cmp=a.Xpm({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&a.NdJ("click",function(){return t._handleClick()})("keydown",function(e){return t._handleKeydown(e)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(a.uIk("aria-sort",t._getAriaSortAttribute()),a.ekj("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[a.qOj],attrs:kk,ngContentSelectors:Tk,decls:4,vars:6,consts:[["role","button",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&&(a.F$t(),a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.Hsn(2),a.qZA(),a.YNc(3,Mk,6,6,"div",2),a.qZA()),2&e&&(a.ekj("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),a.uIk("tabindex",t._isDisabled()?null:0),a.xp6(3),a.Q6J("ngIf",t._renderArrow()))},directives:[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-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}\n"],encapsulation:2,data:{animation:[Ok.indicator,Ok.leftPointer,Ok.rightPointer,Ok.arrowOpacity,Ok.arrowPosition,Ok.allowChildren]},changeDetection:0}),e}(),Nk=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[Rk],imports:[[r.ez,zu]]}),e}(),Ik=function(){var e=function(){function e(t){_classCallCheck(this,e),this.elementRef=t}return _createClass(e,[{key:"ngOnInit",value:function(){this.elementRef.nativeElement.focus()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq))},e.\u0275dir=a.lG2({type:e,selectors:[["","perunWebAppsAutoFocus",""]]}),e}(),qk=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"onClick",value:function(e){if(1===e.button&&null!=this.perunWebAppsMiddleClickRouterLink){var t=this.perunWebAppsMiddleClickRouterLink.join("/"),n=location.search;window.open(t+n)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(e,t){1&e&&a.NdJ("mouseup",function(e){return t.onClick(e)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),e}(),Bk=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e){var t=e.find(function(e){return"mail"===e.friendlyName});return t?t.value.toString():"N/A"}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=a.Yjl({name:"getMailFromAttributes",type:e,pure:!0}),e}();function Hk(e,t){1&e&&a._UZ(0,"th",18)}function Yk(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"td",19),a.TgZ(1,"span",20),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.TgZ(4,"mat-checkbox",21),a.NdJ("change",function(e){var t=a.CHM(n).$implicit,i=a.oxw();return e?i.selection.toggle(t):null})("click",function(e){return e.stopPropagation()}),a.qZA(),a.qZA(),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw();a.xp6(1),a.s9C("matTooltip",a.lcZ(2,6,a.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.CANNOT_BE_DELETED_TOOLTIP"))),a.Q6J("matTooltipPosition","above")("matTooltipDisabled",!i.userExtSource.persistent),a.xp6(3),a.Q6J("aria-label",r.checkboxLabel(i))("checked",r.selection.isSelected(i))("disabled",i.userExtSource.persistent)}}function jk(e,t){1&e&&(a.TgZ(0,"th",22),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,a.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))))}function Fk(e,t){if(1&e&&(a.TgZ(0,"td",23),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(n.userExtSource.id)}}function Wk(e,t){1&e&&(a.TgZ(0,"th",24),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,a.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))))}function Uk(e,t){if(1&e&&(a.TgZ(0,"td",23),a._uU(1),a.ALo(2,"getMailFromAttributes"),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(a.lcZ(2,1,n.attributes))}}function Kk(e,t){if(1&e&&(a.TgZ(0,"th",22),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e){var n=a.oxw();a.xp6(1),a.Oqu(a.lcZ(2,1,a.lcZ(3,3,n.extSourceNameHeader?n.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME")))}}function Zk(e,t){if(1&e&&(a.TgZ(0,"td",23),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(n.userExtSource.extSource.name)}}function Gk(e,t){if(1&e&&(a.TgZ(0,"th",22),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e){var n=a.oxw();a.xp6(1),a.Oqu(a.lcZ(2,1,a.lcZ(3,3,n.loginHeader?n.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN")))}}function Xk(e,t){if(1&e&&(a.TgZ(0,"td",23),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(n.userExtSource.login)}}function Vk(e,t){1&e&&(a.TgZ(0,"th",22),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,a.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))))}function Jk(e,t){if(1&e&&(a.TgZ(0,"td",25),a._uU(1),a.ALo(2,"date"),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(a.xi3(2,1,n.userExtSource.lastAccess,"d.M.y H:mm:ss"))}}function Qk(e,t){1&e&&a._UZ(0,"tr",26)}var $k=function(e,t){return["/admin","users",e,"identities",t]};function eM(e,t){if(1&e&&a._UZ(0,"tr",27),2&e){var n=t.$implicit,i=a.oxw();a.ekj("cursor-pointer",!i.disableRouting)("disable-outline",i.disableRouting),a.Q6J("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:a.WLB(6,$k,i.userId,n.userExtSource.id))("routerLink",i.disableRouting?null:a.WLB(9,$k,i.userId,n.userExtSource.id))}}function tM(e,t){1&e&&(a.TgZ(0,"app-alert",28),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function nM(e,t){1&e&&(a.TgZ(0,"app-alert",28),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,a.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}var iM=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.route=t,this.authResolver=n,this.selection=new ga,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSizeOptions=hg}return _createClass(e,[{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"ngOnInit",value:function(){var e=this;this.disableRouting||this.route.parent.params.subscribe(function(t){e.userId=t.userId}),this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(e){return"id"!==e})),this.dataSource=new Sv(this.userExtSources),this.setDataSource()}},{key:"getDataForColumn",value:function(e,t){switch(t){case"id":return e.userExtSource.id.toString();case"mail":var n=e.attributes.find(function(e){return"mail"===e.friendlyName});return n?n.value.toString():"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]}}},{key:"exportData",value:function(e){_g(vg(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.filterPredicate=function(t,n){return mg(t,n,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,n){return gg(t,n,e.getDataForColumn,e)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}},{key:"checkboxLabel",value:function(e){return"".concat(this.selection.isSelected(e.userExtSource)?"deselect":"select"," row ").concat(e.userExtSource.id+1)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(un),a.Y36(ge))},e.\u0275cmp=a.Xpm({type:e,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(e,t){var n;(1&e&&(a.Gf(Tg,7),a.Gf(Ek,7)),2&e)&&(a.iGM(n=a.CRH())&&(t.child=n.first),a.iGM(n=a.CRH())&&(t.matSort=n.first))},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},features:[a.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&&(a.TgZ(0,"div",0),a.TgZ(1,"perun-web-apps-table-wrapper",1),a.NdJ("exportData",function(e){return t.exportData(e)}),a.TgZ(2,"table",2),a.ynx(3,3),a.YNc(4,Hk,1,0,"th",4),a.YNc(5,Yk,5,10,"td",5),a.BQk(),a.ynx(6,6),a.YNc(7,jk,4,5,"th",7),a.YNc(8,Fk,2,1,"td",8),a.BQk(),a.ynx(9,9),a.YNc(10,Wk,4,5,"th",10),a.YNc(11,Uk,3,3,"td",8),a.BQk(),a.ynx(12,11),a.YNc(13,Kk,4,5,"th",7),a.YNc(14,Zk,2,1,"td",8),a.BQk(),a.ynx(15,12),a.YNc(16,Gk,4,5,"th",7),a.YNc(17,Xk,2,1,"td",8),a.BQk(),a.ynx(18,13),a.YNc(19,Vk,4,5,"th",7),a.YNc(20,Jk,3,4,"td",14),a.BQk(),a.YNc(21,Qk,1,0,"tr",15),a.YNc(22,eM,1,12,"tr",16),a.qZA(),a.qZA(),a.qZA(),a.YNc(23,tM,3,3,"app-alert",17),a.YNc(24,nM,4,5,"app-alert",17)),2&e&&(a.Q6J("hidden",0===t.userExtSources.length||0===t.dataSource.filteredData.length),a.xp6(1),a.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),a.xp6(1),a.Q6J("dataSource",t.dataSource),a.xp6(19),a.Q6J("matHeaderRowDef",t.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",t.displayedColumns),a.xp6(1),a.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.userExtSources.length),a.xp6(1),a.Q6J("ngIf",0===t.userExtSources.length))},directives:[Tg,vv,Ek,bv,yv,_v,kv,Mv,r.O5,Av,wv,up,EA,Pk,Cv,Tv,qk,Oi,cm],pipes:[hh,Wg,Bk,r.uU],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),e}();function rM(e,t){1&e&&a._UZ(0,"mat-spinner",3)}function aM(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div"),a.TgZ(1,"h1",8),a._uU(2),a.ALo(3,"translate"),a.ALo(4,"customTranslate"),a.qZA(),a.TgZ(5,"button",5),a.NdJ("click",function(){return a.CHM(n),a.oxw(2).addIdentity()}),a._uU(6),a.ALo(7,"translate"),a.ALo(8,"customTranslate"),a.qZA(),a.TgZ(9,"button",6),a.NdJ("click",function(){a.CHM(n);var e=a.oxw(2);return e.removeIdentity(e.certSelection)}),a._uU(10),a.ALo(11,"translate"),a.ALo(12,"customTranslate"),a.qZA(),a._UZ(13,"perun-web-apps-user-ext-sources-list",11),a.qZA()}if(2&e){var i=a.oxw(2);a.xp6(2),a.Oqu(a.lcZ(3,10,a.lcZ(4,12,"IDENTITIES.CERT"))),a.xp6(4),a.Oqu(a.lcZ(7,14,a.lcZ(8,16,"IDENTITIES.ADD"))),a.xp6(3),a.Q6J("disabled",0===i.certSelection.selected.length),a.xp6(1),a.Oqu(a.lcZ(11,18,a.lcZ(12,20,"IDENTITIES.REMOVE"))),a.xp6(3),a.Q6J("userExtSources",i.certExtSources)("selection",i.certSelection)("extSourceNameHeader",i.extSourceNameCert)("loginHeader",i.loginCert)("displayedColumns",i.displayedColumnsCert)("disableRouting",!0)}}function oM(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div"),a.TgZ(1,"h1",4),a._uU(2),a.ALo(3,"translate"),a.ALo(4,"customTranslate"),a.qZA(),a.TgZ(5,"button",5),a.NdJ("click",function(){return a.CHM(n),a.oxw().addIdentity()}),a._uU(6),a.ALo(7,"translate"),a.ALo(8,"customTranslate"),a.qZA(),a.TgZ(9,"button",6),a.NdJ("click",function(){a.CHM(n);var e=a.oxw();return e.removeIdentity(e.idpSelection)}),a._uU(10),a.ALo(11,"translate"),a.ALo(12,"customTranslate"),a.qZA(),a._UZ(13,"perun-web-apps-user-ext-sources-list",7),a.YNc(14,aM,14,22,"div",2),a.TgZ(15,"h1",8),a._uU(16),a.ALo(17,"translate"),a.ALo(18,"customTranslate"),a.TgZ(19,"mat-icon",9),a.ALo(20,"translate"),a.ALo(21,"customTranslate"),a._uU(22," info_outline "),a.qZA(),a.qZA(),a._UZ(23,"perun-web-apps-user-ext-sources-list",10),a.qZA()}if(2&e){var i=a.oxw();a.xp6(2),a.Oqu(a.lcZ(3,17,a.lcZ(4,19,"IDENTITIES.IDP"))),a.xp6(4),a.Oqu(a.lcZ(7,21,a.lcZ(8,23,"IDENTITIES.ADD"))),a.xp6(3),a.Q6J("disabled",0===i.idpSelection.selected.length),a.xp6(1),a.Oqu(a.lcZ(11,25,a.lcZ(12,27,"IDENTITIES.REMOVE"))),a.xp6(3),a.Q6J("userExtSources",i.idpExtSources)("selection",i.idpSelection)("displayedColumns",i.displayedColumnsIdp)("loginHeader",i.loginIdp)("disableRouting",!0),a.xp6(1),a.Q6J("ngIf",i.displayCertificates),a.xp6(2),a.hij(" ",a.lcZ(17,29,a.lcZ(18,31,"IDENTITIES.OTHER"))," "),a.xp6(3),a.Q6J("matTooltip",a.lcZ(20,33,a.lcZ(21,35,"IDENTITIES.OTHER_TOOLTIP"))),a.xp6(4),a.Q6J("userExtSources",i.otherExtSources)("selection",i.otherSelection)("extSourceNameHeader",i.extSourceNameOther)("displayedColumns",i.displayedColumnsOther)("disableRouting",!0)}}var sM=function(){var e=function(){function e(t,n,i,r,a){_classCallCheck(this,e),this.usersManagerService=t,this.storage=n,this.registrarManagerService=i,this.dialog=r,this.attributesManagerService=a,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.idpSelection=new ga(!0,[]),this.certSelection=new ga(!0,[]),this.otherSelection=new ga(!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","lastAccess"],this.displayedColumnsCert=["select","extSourceName","login","lastAccess"],this.displayedColumnsOther=["extSourceName","login","lastAccess"]}return _createClass(e,[{key:"ngOnInit",value:function(){this.userId=this.storage.getPerunPrincipal().userId,this.displayCertificates=this.storage.get("display_identity_certificates"),this.refreshTables()}},{key:"refreshTables",value:function(){var e=this;this.loading=!0,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.usersManagerService.getRichUserExtSources(this.userId).subscribe(function(t){var n=t.length;t.forEach(function(t){e.attributesManagerService.getUserExtSourceAttributeByName(t.userExtSource.id,"urn:perun:ues:attribute-def:def:sourceIdPName").subscribe(function(i){i&&i.value?(t.userExtSource.extSource.name=i.value,n--,e.loading=0!==n,e.addToList(t)):e.attributesManagerService.getUserExtSourceAttributeByName(t.userExtSource.id,"urn:perun:ues:attribute-def:def:IdPOrganizationName").subscribe(function(i){n--,i&&i.value&&(t.userExtSource.extSource.name=i.value),e.loading=0!==n,e.addToList(t)})})})})}},{key:"addIdentity",value:function(){var e=this;this.registrarManagerService.getConsolidatorToken().subscribe(function(t){var n=e.storage.getPerunPrincipal().extSourceType,i=e.storage.get("consolidator_base_url");window.location.href="".concat(i).concat(n&&n.endsWith("X509")?"cert":"fed","-ic/ic/?target_url=").concat(window.location.href,"&token=").concat(t)})}},{key:"removeIdentity",value:function(e){var t=this,n=dg();n.width="600px",n.data={theme:"user-theme",userId:this.userId,extSources:e.selected},this.dialog.open(Nv,n).afterClosed().subscribe(function(n){n&&(e.clear(),t.refreshTables())})}},{key:"addToList",value:function(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)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(he),a.Y36(tr),a.Y36(ue),a.Y36(Dl),a.Y36(re))},e.\u0275cmp=a.Xpm({type:e,selectors:[["perun-web-apps-identities-page"]],decls:3,vars:2,consts:[[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"page-title"],["mat-flat-button","","color","accent",1,"action-button",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&&(a.TgZ(0,"div",0),a.YNc(1,rM,1,0,"mat-spinner",1),a.YNc(2,oM,24,37,"div",2),a.qZA()),2&e&&(a.xp6(1),a.Q6J("ngIf",t.loading),a.xp6(1),a.Q6J("ngIf",!t.loading))},directives:[r.O5,_m,_h,iM,sg,up],pipes:[hh,Wg],styles:[".center-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),e}(),cM=["panel"];function uM(e,t){if(1&e&&(a.TgZ(0,"div",0,1),a.Hsn(2),a.qZA()),2&e){var n=t.id,i=a.oxw();a.Q6J("id",i.id)("ngClass",i._classList),a.uIk("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(n))}}var lM=["*"],hM=0,dM=function e(t,n){_classCallCheck(this,e),this.source=t,this.option=n},fM=Ru(function e(){_classCallCheck(this,e)}),pM=new a.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),gM=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var s;return _classCallCheck(this,n),(s=t.call(this))._changeDetectorRef=e,s._elementRef=i,s._activeOptionChanges=Qe.w.EMPTY,s.showPanel=!1,s._isOpen=!1,s.displayWith=null,s.optionSelected=new a.vpe,s.opened=new a.vpe,s.closed=new a.vpe,s.optionActivated=new a.vpe,s._classList={},s.id="mat-autocomplete-"+hM++,s.inertGroups=(null==o?void 0:o.SAFARI)||!1,s._autoActiveFirstOption=!!r.autoActiveFirstOption,s}return _createClass(n,[{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(e){this._autoActiveFirstOption=nr(e)}},{key:"classList",set:function(e){this._classList=e&&e.length?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\s+/,n=[];if(null!=e){var i,r=Array.isArray(e)?e:"".concat(e).split(t),a=_createForOfIteratorHelper(r);try{for(a.s();!(i=a.n()).done;){var o=i.value,s="".concat(o).trim();s&&n.push(s)}}catch(c){a.e(c)}finally{a.f()}}return n}(e).reduce(function(e,t){return e[t]=!0,e},{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}},{key:"ngAfterContentInit",value:function(){var e=this;this._keyManager=new So(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(function(t){e.optionActivated.emit({source:e,option:e.options.toArray()[t]||null})}),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}},{key:"_getScrollTop",value:function(){return this.panel?this.panel.nativeElement.scrollTop:0}},{key:"_setVisibility",value:function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}},{key:"_emitSelectEvent",value:function(e){var t=new dM(this,e);this.optionSelected.emit(t)}},{key:"_getPanelAriaLabelledby",value:function(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}},{key:"_setVisibilityClasses",value:function(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}}]),n}(fM);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.sBO),a.Y36(a.SBq),a.Y36(pM),a.Y36(ta))},e.\u0275dir=a.lG2({type:e,viewQuery:function(e,t){var n;(1&e&&(a.Gf(a.Rgc,7),a.Gf(cM,5)),2&e)&&(a.iGM(n=a.CRH())&&(t.template=n.first),a.iGM(n=a.CRH())&&(t.panel=n.first))},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[a.qOj]}),e}(),mM=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._visibleClass="mat-autocomplete-visible",e._hiddenClass="mat-autocomplete-hidden",e}return n}(gM);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(e,t,n){var i;(1&e&&(a.Suo(n,dl,5),a.Suo(n,ml,5)),2&e)&&(a.iGM(i=a.CRH())&&(t.optionGroups=i),a.iGM(i=a.CRH())&&(t.options=i))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[a._Bn([{provide:cl,useExisting:t}]),a.qOj],ngContentSelectors:lM,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(e,t){1&e&&(a.F$t(),a.YNc(0,uM,3,4,"ng-template"))},directives:[r.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}\n"],encapsulation:2,changeDetection:0}),t}(),vM=new a.OlP("mat-autocomplete-scroll-strategy"),_M={provide:vM,deps:[so],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},yM={provide:ad,useExisting:(0,a.Gpc)(function(){return AM}),multi:!0},bM=function(){var e=function(){function e(t,n,i,r,a,o,s,c,u,l,h){var d=this;_classCallCheck(this,e),this._element=t,this._overlay=n,this._viewContainerRef=i,this._zone=r,this._changeDetectorRef=a,this._dir=s,this._formField=c,this._document=u,this._viewportRuler=l,this._defaults=h,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Qe.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new ye.xQ,this._windowBlurHandler=function(){d._canOpenOnNextFocus=d._document.activeElement!==d._element.nativeElement||d.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=Se(function(){return d.autocomplete&&d.autocomplete.options?Oa.T.apply(void 0,_toConsumableArray(d.autocomplete.options.map(function(e){return e.onSelectionChange}))):d._zone.onStable.pipe((0,xe.q)(1),(0,Oe.w)(function(){return d.optionSelections}))}),this._scrollStrategy=o}return _createClass(e,[{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(e){this._autocompleteDisabled=nr(e)}},{key:"ngAfterViewInit",value:function(){var e=this,t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular(function(){return t.addEventListener("blur",e._windowBlurHandler)})}},{key:"ngOnChanges",value:function(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var e=this._getWindow();void 0!==e&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"openPanel",value:function(){this._attachOverlay(),this._floatLabel()}},{key:"closePanel",value:function(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}},{key:"updatePosition",value:function(){this._overlayAttached&&this._overlayRef.updatePosition()}},{key:"panelClosingActions",get:function(){var e=this;return(0,Oa.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,me.h)(function(){return e._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,me.h)(function(){return e._overlayAttached})):(0,_e.of)()).pipe((0,ze.U)(function(e){return e instanceof pl?e:null}))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}},{key:"_getOutsideClickStream",value:function(){var e=this;return(0,Oa.T)(lr(this._document,"click"),lr(this._document,"auxclick"),lr(this._document,"touchend")).pipe((0,me.h)(function(t){var n=e._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,i=e._formField?e._formField._elementRef.nativeElement:null,r=e.connectedTo?e.connectedTo.elementRef.nativeElement:null;return e._overlayAttached&&n!==e._element.nativeElement&&(!i||!i.contains(n))&&(!r||!r.contains(n))&&!!e._overlayRef&&!e._overlayRef.overlayElement.contains(n)}))}},{key:"writeValue",value:function(e){var t=this;Promise.resolve(null).then(function(){return t._setTriggerValue(e)})}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this._element.nativeElement.disabled=e}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;if(27!==t||Da(e)||e.preventDefault(),this.activeOption&&13===t&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){var n=this.autocomplete._keyManager.activeItem,i=38===t||40===t;this.panelOpen||9===t?this.autocomplete._keyManager.onKeydown(e):i&&this._canOpen()&&this.openPanel(),(i||this.autocomplete._keyManager.activeItem!==n)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}},{key:"_handleInput",value:function(e){var t=e.target,n=t.value;"number"===t.type&&(n=""==n?null:parseFloat(n)),this._previousValue!==n&&(this._previousValue=n,this._onChange(n),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}},{key:"_handleFocus",value:function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}},{key:"_floatLabel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}},{key:"_resetLabel",value:function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}},{key:"_subscribeToClosingActions",value:function(){var e=this,t=this._zone.onStable.pipe((0,xe.q)(1)),n=this.autocomplete.options.changes.pipe((0,Ve.b)(function(){return e._positionStrategy.reapplyLastPosition()}),(0,Tp.g)(0));return(0,Oa.T)(t,n).pipe((0,Oe.w)(function(){var t=e.panelOpen;return e._resetActiveItem(),e.autocomplete._setVisibility(),e.panelOpen&&(e._overlayRef.updatePosition(),t!==e.panelOpen&&e.autocomplete.opened.emit()),e.panelClosingActions}),(0,xe.q)(1)).subscribe(function(t){return e._setValueAndClose(t)})}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value:function(e){var t=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e,n=null!=t?t:"";this._formField?this._formField._control.value=n:this._element.nativeElement.value=n,this._previousValue=n}},{key:"_setValueAndClose",value:function(e){e&&e.source&&(this._clearPreviousSelectedOption(e.source),this._setTriggerValue(e.source.value),this._onChange(e.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(e.source)),this.closePanel()}},{key:"_clearPreviousSelectedOption",value:function(e){this.autocomplete.options.forEach(function(t){t!==e&&t.selected&&t.deselect()})}},{key:"_attachOverlay",value:function(){var e,t=this;null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!ca(this._element.nativeElement));var n=this._overlayRef;n?(this._positionStrategy.setOrigin(this._getConnectedElement()),n.updateSize({width:this._getPanelWidth()})):(this._portal=new Ca(this.autocomplete.template,this._viewContainerRef,{id:null===(e=this._formField)||void 0===e?void 0:e.getLabelId()}),n=this._overlay.create(this._getOverlayConfig()),this._overlayRef=n,n.keydownEvents().subscribe(function(e){(27===e.keyCode&&!Da(e)||38===e.keyCode&&Da(e,"altKey"))&&(t._resetActiveItem(),t._closeKeyEventStream.next(),e.stopPropagation(),e.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(function(){t.panelOpen&&n&&n.updateSize({width:t._getPanelWidth()})})),n&&!n.hasAttached()&&(n.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){var e;return new Fa({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(e=this._defaults)||void 0===e?void 0:e.overlayPanelClass})}},{key:"_getOverlayPosition",value:function(){var e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}},{key:"_setStrategyPositions",value:function(e){var t,n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:i},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:i}];t="above"===this.position?r:"below"===this.position?n:[].concat(n,r),e.withPositions(t)}},{key:"_getConnectedElement",value:function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}},{key:"_getPanelWidth",value:function(){return this.autocomplete.panelWidth||this._getHostWidth()}},{key:"_getHostWidth",value:function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}},{key:"_resetActiveItem",value:function(){var e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}},{key:"_canOpen",value:function(){var e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var e;return(null===(e=this._document)||void 0===e?void 0:e.defaultView)||window}},{key:"_scrollToOption",value:function(e){var t=this.autocomplete,n=vl(e,t.options,t.optionGroups);if(0===e&&1===n)t._setScrollTop(0);else if(t.panel){var i=t.options.toArray()[e];if(i){var r=i._getHostElement(),a=_l(r.offsetTop,r.offsetHeight,t._getScrollTop(),t.panel.nativeElement.offsetHeight);t._setScrollTop(a)}}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(so),a.Y36(a.s_b),a.Y36(a.R0b),a.Y36(a.sBO),a.Y36(vM),a.Y36(ha,8),a.Y36(ed,9),a.Y36(r.K0,8),a.Y36(ba),a.Y36(pM,8))},e.\u0275dir=a.lG2({type:e,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[a.TTD]}),e}(),AM=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._aboveClass="mat-autocomplete-panel-above",e}return n}(bM);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275dir=a.lG2({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(e,t){1&e&&a.NdJ("focusin",function(){return t._handleFocus()})("blur",function(){return t._onTouched()})("input",function(e){return t._handleInput(e)})("keydown",function(e){return t._handleKeydown(e)}),2&e&&a.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)},exportAs:["matAutocompleteTrigger"],features:[a._Bn([yM]),a.qOj]}),t}(),wM=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[_M],imports:[[po,yl,zu,r.ez],Aa,yl,zu]}),e}(),kM=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e){return e&&e.value?e.value:"never"}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=a.Yjl({name:"validateExpiration",type:e,pure:!0}),e}();function MM(e,t){1&e&&a._UZ(0,"th",17)}function CM(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"td",18),a.TgZ(1,"mat-checkbox",19),a.NdJ("change",function(e){var t=a.CHM(n).$implicit,i=a.oxw();return e?i.selection.toggle(t):null})("click",function(e){return e.stopPropagation()}),a.ALo(2,"validateExpiration"),a.qZA(),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw();a.xp6(1),a.Q6J("aria-label",r.checkboxLabel(i))("checked",r.selection.isSelected(i))("disabled","never"===a.lcZ(2,3,i.expirationAttribute))}}function TM(e,t){1&e&&(a.TgZ(0,"th",20),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,a.lcZ(3,3,"MEMBERSHIP_LIST.NAME"))))}function LM(e,t){if(1&e&&(a.TgZ(0,"td",21),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(n.entity.name)}}function SM(e,t){1&e&&(a.TgZ(0,"th",20),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,a.lcZ(3,3,"MEMBERSHIP_LIST.DESCRIPTION"))))}function EM(e,t){if(1&e&&(a.TgZ(0,"td",22),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(n.entity.description)}}function zM(e,t){1&e&&(a.TgZ(0,"th",23),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,a.lcZ(3,3,"MEMBERSHIP_LIST.EXPIRATION"))))}function OM(e,t){if(1&e&&(a.TgZ(0,"td",22),a._uU(1),a.ALo(2,"validateExpiration"),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.hij(" ",a.lcZ(2,1,n.expirationAttribute)," ")}}function xM(e,t){1&e&&a._UZ(0,"th",20)}function RM(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"td",22),a.TgZ(1,"button",24),a.NdJ("click",function(){var e=a.CHM(n).$implicit;return a.oxw().extend(e)}),a.ALo(2,"validateExpiration"),a._uU(3),a.ALo(4,"translate"),a.ALo(5,"customTranslate"),a.qZA(),a.qZA()}if(2&e){var i=t.$implicit;a.xp6(1),a.Q6J("disabled","never"===a.lcZ(2,2,i.expirationAttribute)),a.xp6(2),a.Oqu(a.lcZ(4,4,a.lcZ(5,6,"MEMBERSHIP_LIST.EXTEND")))}}function DM(e,t){1&e&&a._UZ(0,"tr",25)}function PM(e,t){1&e&&a._UZ(0,"tr",26)}function NM(e,t){1&e&&(a.TgZ(0,"app-alert",27),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,a.lcZ(3,3,"MEMBERSHIP_LIST.NO_MEMBERSHIPS"))))}var IM=function(){var e=function(){function e(){_classCallCheck(this,e),this.members=[],this.searchString="",this.selection=new ga(!1,[]),this.displayedColumns=["checkbox","name","description","expirationAttribute","extend"],this.filterValue="",this.extendMembership=new a.vpe,this.pageSizeOptions=hg}return _createClass(e,[{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}},{key:"ngOnChanges",value:function(){this.dataSource=new Sv(this.members),this.setDataSource()}},{key:"getDataForColumn",value:function(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&&e.expirationAttribute.value?e.expirationAttribute.value:"never";default:return""}}},{key:"exportData",value:function(e){_g(vg(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.filterPredicate=function(t,n){return mg(t,n,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,n){return gg(t,n,e.getDataForColumn,e)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}},{key:"checkboxLabel",value:function(e){return"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e.entity.id+1)}},{key:"extend",value:function(e){this.extendMembership.emit(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.Xpm({type:e,selectors:[["perun-web-apps-membership-list"]],viewQuery:function(e,t){var n;(1&e&&(a.Gf(Ek,7),a.Gf(Tg,7)),2&e)&&(a.iGM(n=a.CRH())&&(t.matSort=n.first),a.iGM(n=a.CRH())&&(t.child=n.first))},inputs:{members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",filterValue:"filterValue"},outputs:{extendMembership:"extendMembership"},features:[a.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&&(a.TgZ(0,"div",0),a.TgZ(1,"perun-web-apps-table-wrapper",1),a.NdJ("exportData",function(e){return t.exportData(e)}),a.TgZ(2,"table",2),a.ynx(3,3),a.YNc(4,MM,1,0,"th",4),a.YNc(5,CM,3,5,"td",5),a.BQk(),a.ynx(6,6),a.YNc(7,TM,4,5,"th",7),a.YNc(8,LM,2,1,"td",8),a.BQk(),a.ynx(9,9),a.YNc(10,SM,4,5,"th",7),a.YNc(11,EM,2,1,"td",10),a.BQk(),a.ynx(12,11),a.YNc(13,zM,4,5,"th",12),a.YNc(14,OM,3,3,"td",10),a.BQk(),a.ynx(15,13),a.YNc(16,xM,1,0,"th",7),a.YNc(17,RM,6,8,"td",10),a.BQk(),a.YNc(18,DM,1,0,"tr",14),a.YNc(19,PM,1,0,"tr",15),a.qZA(),a.qZA(),a.qZA(),a.YNc(20,NM,4,5,"app-alert",16)),2&e&&(a.Q6J("hidden",!t.dataSource.filteredData.length),a.xp6(1),a.Q6J("dataLength",t.dataSource.filteredData.length)("tableId",t.tableId)("pageSizeOptions",t.pageSizeOptions),a.xp6(1),a.Q6J("dataSource",t.dataSource),a.xp6(16),a.Q6J("matHeaderRowDef",t.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",t.displayedColumns),a.xp6(1),a.Q6J("ngIf",!t.dataSource.filteredData.length))},directives:[Tg,vv,Ek,bv,yv,_v,kv,Mv,r.O5,Av,wv,EA,Pk,_h,Cv,Tv,cm],pipes:[kM,hh,Wg],styles:[""]}),e}();function qM(e,t){if(1&e&&(a.TgZ(0,"mat-option",13),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.Q6J("value",n),a.xp6(1),a.hij(" ",n.name," ")}}function BM(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-form-field",7),a.TgZ(1,"mat-label"),a._uU(2),a.ALo(3,"translate"),a.qZA(),a._UZ(4,"input",8),a.ALo(5,"translate"),a.ALo(6,"customTranslate"),a.TgZ(7,"mat-autocomplete",9,10),a.NdJ("optionSelected",function(e){return a.CHM(n),a.oxw().filterByVo(e)}),a.TgZ(9,"mat-option",11),a._uU(10),a.ALo(11,"translate"),a.ALo(12,"customTranslate"),a.qZA(),a.YNc(13,qM,2,2,"mat-option",12),a.ALo(14,"async"),a.qZA(),a.qZA()}if(2&e){var i=a.MAs(8),r=a.oxw();a.xp6(2),a.Oqu(a.lcZ(3,7,"GROUPS.SELECT_VO")),a.xp6(2),a.s9C("placeholder",a.lcZ(5,9,a.lcZ(6,11,"GROUPS.SELECT_VO"))),a.Q6J("formControl",r.myControl)("matAutocomplete",i),a.xp6(3),a.Q6J("displayWith",r.displayFn),a.xp6(3),a.Oqu(a.lcZ(11,13,a.lcZ(12,15,"GROUPS.ALL"))),a.xp6(3),a.Q6J("ngForOf",a.lcZ(14,17,r.filteredVos))}}function HM(e,t){1&e&&a._UZ(0,"mat-spinner",14)}function YM(e,t){1&e&&(a.TgZ(0,"app-alert",15),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,a.lcZ(3,3,"GROUPS.NO_GROUPS"))))}var jM=function(){return["name","description","expirationAttribute","extend"]};function FM(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div"),a.TgZ(1,"h4",16),a._uU(2),a.ALo(3,"translate"),a.ALo(4,"customTranslate"),a.qZA(),a.TgZ(5,"perun-web-apps-membership-list",17),a.NdJ("extendMembership",function(e){return a.CHM(n),a.oxw().extendMembership(e)}),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.xp6(2),a.Oqu(a.lcZ(3,4,a.lcZ(4,6,"GROUPS.MEMBER_GROUPS"))),a.xp6(3),a.Q6J("members",i.userMemberships)("selection",i.selection)("displayedColumns",a.DdM(8,jM))}}var WM=function(){return["name","description"]};function UM(e,t){if(1&e&&(a.TgZ(0,"div",18),a.TgZ(1,"h4",16),a._uU(2),a.ALo(3,"translate"),a.ALo(4,"customTranslate"),a.qZA(),a._UZ(5,"perun-web-apps-membership-list",19),a.qZA()),2&e){var n=a.oxw();a.xp6(2),a.Oqu(a.lcZ(3,3,a.lcZ(4,5,"GROUPS.ADMINS_GROUPS"))),a.xp6(3),a.Q6J("members",n.adminMemberships)("displayedColumns",a.DdM(7,WM))}}var KM=function(){var e=function(){function e(t,n,i,r,a,o){_classCallCheck(this,e),this.usersService=t,this.memberService=n,this.groupService=i,this.store=r,this.vosManagerService=a,this.attributesManagerService=o,this.loading=!1,this.vos=[],this.myControl=new tf,this.selection=new ga(!1,[]),this.displayedColumns=["id","name"],this.userMemberships=[],this.adminMemberships=[]}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.userId=this.store.getPerunPrincipal().userId,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(function(t){e.vos=t,e.filteredVos=e.myControl.valueChanges.pipe(De(""),(0,ze.U)(function(t){return e._filter(t)})),e.getAllGroups()})}},{key:"_filter",value:function(e){var t="string"==typeof e?e.toLowerCase():e.name.toLowerCase;return this.vos.filter(function(e){return e.name.toLowerCase().includes(t)})}},{key:"getAllGroups",value:function(){var e=this;this.loading=!0;var t=0,n=0;this.userMemberships=[],this.adminMemberships=[];var i=this.store.getPerunPrincipal().roles.SELF.Member;i.length?n=i.length:this.loading=!1,i.forEach(function(i){n--,e.groupService.getMemberGroups(i).subscribe(function(r){t+=r.length,e.loading=0===t&&0!==n,r.forEach(function(n){e.attributesManagerService.getMemberGroupAttributes(i,n.id).subscribe(function(i){t--,e.userMemberships.push({entity:n,expirationAttribute:i.find(function(e){return"groupMembershipExpiration"===e.friendlyName})}),e.loading=0!==t})})})}),this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(function(t){t.forEach(function(t){e.adminMemberships.push({entity:t,expirationAttribute:null})})})}},{key:"displayFn",value:function(e){return e?e.name:null}},{key:"filterByVo",value:function(e){var t=this;if("all"===e.option.value)this.getAllGroups();else{this.userMemberships=[],this.adminMemberships=[],this.loading=!0;var n=e.option.value;this.memberService.getMemberByUser(n.id,this.userId).subscribe(function(e){t.groupService.getMemberGroups(e.id).subscribe(function(n){var i=n.length;t.loading=0!==i,n.forEach(function(n){t.attributesManagerService.getMemberGroupAttributes(e.id,n.id).subscribe(function(e){i--,t.userMemberships.push({entity:n,expirationAttribute:e.find(function(e){return"groupMembershipExpiration"===e.friendlyName})}),t.loading=0!==i})})})}),this.usersService.getGroupsInVoWhereUserIsAdmin(this.userId,n.id).subscribe(function(e){e.forEach(function(e){t.adminMemberships.push({entity:e,expirationAttribute:null})})})}}},{key:"extendMembership",value:function(e){var t=this.store.get("registrar_base_url"),n=e.entity,i=this.vos.find(function(e){return e.id===n.voId}).shortName;window.location.href="".concat(t,"?vo=").concat(i,"&group=").concat(e.entity.shortName)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(he),a.Y36(se),a.Y36(oe),a.Y36(tr),a.Y36(fe),a.Y36(re))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA(),a.TgZ(4,"div",1),a.YNc(5,BM,15,19,"mat-form-field",2),a.YNc(6,HM,1,0,"mat-spinner",3),a.YNc(7,YM,4,5,"app-alert",4),a.YNc(8,FM,6,9,"div",5),a.YNc(9,UM,6,8,"div",6),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,6,a.lcZ(3,8,"GROUPS.TITLE"))),a.xp6(4),a.Q6J("ngIf",!t.loading),a.xp6(1),a.Q6J("ngIf",t.loading),a.xp6(1),a.Q6J("ngIf",!t.userMemberships.length&&!t.adminMemberships.length&&!t.loading),a.xp6(1),a.Q6J("ngIf",!t.loading&&0!==t.userMemberships.length),a.xp6(1),a.Q6J("ngIf",!t.loading&&0!==t.adminMemberships.length))},directives:[r.O5,td,Kh,tm,cd,AM,Rd,vf,mM,ml,r.sg,_m,cm,IM],pipes:[hh,Wg,r.Ov],styles:[""]}),e}();function ZM(e,t){if(1&e&&(a._UZ(0,"input",3),a.ALo(1,"translate")),2&e){var n=a.oxw();a.s9C("placeholder",a.lcZ(1,2,n.placeholder)),a.Q6J("formControl",n.formControl)}}function GM(e,t){if(1&e&&(a._UZ(0,"input",4),a.ALo(1,"translate")),2&e){var n=a.oxw();a.s9C("placeholder",a.lcZ(1,2,n.placeholder)),a.Q6J("formControl",n.formControl)}}var XM=function(){var e=function(){function e(){_classCallCheck(this,e),this.filter=new a.vpe,this.autoFocus=!1,this.formControl=new tf}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.formControl.valueChanges.subscribe(function(t){var n=t.trim();n=n.toLowerCase(),e.filter.emit(n)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.Xpm({type:e,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","",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(e,t){1&e&&(a.TgZ(0,"mat-form-field",0),a.YNc(1,ZM,2,4,"input",1),a.YNc(2,GM,2,4,"input",2),a.qZA()),2&e&&(a.xp6(1),a.Q6J("ngIf",t.autoFocus),a.xp6(1),a.Q6J("ngIf",!t.autoFocus))},directives:[td,r.O5,tm,cd,Ik,Rd,vf],pipes:[hh],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:auto!important}"]}),e}(),VM=0,JM=new a.OlP("CdkAccordion"),QM=function(){var e=function(){function e(){_classCallCheck(this,e),this._stateChanges=new ye.xQ,this._openCloseAllActions=new ye.xQ,this.id="cdk-accordion-"+VM++,this._multi=!1}return _createClass(e,[{key:"multi",get:function(){return this._multi},set:function(e){this._multi=nr(e)}},{key:"openAll",value:function(){this._multi&&this._openCloseAllActions.next(!0)}},{key:"closeAll",value:function(){this._openCloseAllActions.next(!1)}},{key:"ngOnChanges",value:function(e){this._stateChanges.next(e)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[a._Bn([{provide:JM,useExisting:e}]),a.TTD]}),e}(),$M=0,eC=function(){var e=function(){function e(t,n,i){var r=this;_classCallCheck(this,e),this.accordion=t,this._changeDetectorRef=n,this._expansionDispatcher=i,this._openCloseAllSubscription=Qe.w.EMPTY,this.closed=new a.vpe,this.opened=new a.vpe,this.destroyed=new a.vpe,this.expandedChange=new a.vpe,this.id="cdk-accordion-child-"+$M++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=i.listen(function(e,t){r.accordion&&!r.accordion.multi&&r.accordion.id===t&&r.id!==e&&(r.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return _createClass(e,[{key:"expanded",get:function(){return this._expanded},set:function(e){e=nr(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())}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=nr(e)}},{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var e=this;return this.accordion._openCloseAllActions.subscribe(function(t){e.disabled||(e.expanded=t)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(JM,12),a.Y36(a.sBO),a.Y36(ma))},e.\u0275dir=a.lG2({type:e,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[a._Bn([{provide:JM,useValue:void 0}])]}),e}(),tC=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({}),e}(),nC=["body"];function iC(e,t){}var rC=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],aC=["mat-expansion-panel-header","*","mat-action-row"];function oC(e,t){if(1&e&&a._UZ(0,"span",2),2&e){var n=a.oxw();a.Q6J("@indicatorRotate",n._getExpandedState())}}var sC=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],cC=["mat-panel-title","mat-panel-description","*"],uC=new a.OlP("MAT_ACCORDION"),lC={indicatorRotate:Go("indicatorRotate",[$o("collapsed, void",Qo({transform:"rotate(0deg)"})),$o("expanded",Qo({transform:"rotate(180deg)"})),ts("expanded <=> collapsed, void => collapsed",Xo("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),bodyExpansion:Go("bodyExpansion",[$o("collapsed, void",Qo({height:"0px",visibility:"hidden"})),$o("expanded",Qo({height:"*",visibility:"visible"})),ts("expanded <=> collapsed, void => collapsed",Xo("225ms cubic-bezier(0.4,0.0,0.2,1)"))])},hC=function(){var e=function e(t){_classCallCheck(this,e),this._template=t};return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.Rgc))},e.\u0275dir=a.lG2({type:e,selectors:[["ng-template","matExpansionPanelContent",""]]}),e}(),dC=0,fC=new a.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),pC=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,s,c,u){var l;return _classCallCheck(this,n),(l=t.call(this,e,i,r))._viewContainerRef=o,l._animationMode=c,l._hideToggle=!1,l.afterExpand=new a.vpe,l.afterCollapse=new a.vpe,l._inputChanges=new ye.xQ,l._headerId="mat-expansion-panel-header-"+dC++,l._bodyAnimationDone=new ye.xQ,l.accordion=e,l._document=s,l._bodyAnimationDone.pipe(Cr(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){"void"!==e.fromState&&("expanded"===e.toState?l.afterExpand.emit():"collapsed"===e.toState&&l.afterCollapse.emit())}),u&&(l.hideToggle=u.hideToggle),l}return _createClass(n,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(e){this._hideToggle=nr(e)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(e){this._togglePosition=e}},{key:"_hasSpacing",value:function(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var e=this;this._lazyContent&&this.opened.pipe(De(null),(0,me.h)(function(){return e.expanded&&!e._portal}),(0,xe.q)(1)).subscribe(function(){e._portal=new Ca(e._lazyContent._template,e._viewContainerRef)})}},{key:"ngOnChanges",value:function(e){this._inputChanges.next(e)}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}}]),n}(eC);return e.\u0275fac=function(t){return new(t||e)(a.Y36(uC,12),a.Y36(a.sBO),a.Y36(ma),a.Y36(a.s_b),a.Y36(r.K0),a.Y36(_u,8),a.Y36(fC,8))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,n){var i;(1&e&&a.Suo(n,hC,5),2&e)&&(a.iGM(i=a.CRH())&&(t._lazyContent=i.first))},viewQuery:function(e,t){var n;(1&e&&a.Gf(nC,5),2&e)&&(a.iGM(n=a.CRH())&&(t._body=n.first))},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&a.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:[a._Bn([{provide:uC,useValue:void 0}]),a.qOj,a.TTD],ngContentSelectors:aC,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&&(a.F$t(rC),a.Hsn(0),a.TgZ(1,"div",0,1),a.NdJ("@bodyExpansion.done",function(e){return t._bodyAnimationDone.next(e)}),a.TgZ(3,"div",2),a.Hsn(4,1),a.YNc(5,iC,0,0,"ng-template",3),a.qZA(),a.Hsn(6,2),a.qZA()),2&e&&(a.xp6(1),a.Q6J("@bodyExpansion",t._getExpandedState())("id",t.id),a.uIk("aria-labelledby",t._headerId),a.xp6(4),a.Q6J("cdkPortalOutlet",t._portal))},directives:[Ea],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-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 button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[lC.bodyExpansion]},changeDetection:0}),e}(),gC=function(){var e=function(){function e(t,n,i,r,a,o){var s=this;_classCallCheck(this,e),this.panel=t,this._element=n,this._focusMonitor=i,this._changeDetectorRef=r,this._animationMode=o,this._parentChangeSubscription=Qe.w.EMPTY;var c=t.accordion?t.accordion._stateChanges.pipe((0,me.h)(function(e){return!(!e.hideToggle&&!e.togglePosition)})):Le.E;this._parentChangeSubscription=(0,Oa.T)(t.opened,t.closed,c,t._inputChanges.pipe((0,me.h)(function(e){return!!(e.hideToggle||e.disabled||e.togglePosition)}))).subscribe(function(){return s._changeDetectorRef.markForCheck()}),t.closed.pipe((0,me.h)(function(){return t._containsFocus()})).subscribe(function(){return i.focusVia(n,"program")}),a&&(this.expandedHeight=a.expandedHeight,this.collapsedHeight=a.collapsedHeight)}return _createClass(e,[{key:"disabled",get:function(){return this.panel.disabled}},{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_getHeaderHeight",value:function(){var e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}},{key:"_keydown",value:function(e){switch(e.keyCode){case 32:case 13:Da(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._element).subscribe(function(t){t&&e.panel.accordion&&e.panel.accordion._handleHeaderFocus(e)})}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(pC,1),a.Y36(a.SBq),a.Y36(jo),a.Y36(a.sBO),a.Y36(fC,8),a.Y36(_u,8))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&a.NdJ("click",function(){return t._toggle()})("keydown",function(e){return t._keydown(e)}),2&e&&(a.uIk("id",t.panel._headerId)("tabindex",t.disabled?-1:0)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),a.Udp("height",t._getHeaderHeight()),a.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:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:cC,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(a.F$t(sC),a.TgZ(0,"span",0),a.Hsn(1),a.Hsn(2,1),a.Hsn(3,2),a.qZA(),a.YNc(4,oC,1,1,"span",1)),2&e&&(a.xp6(4),a.Q6J("ngIf",t._showToggle()))},directives:[r.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}[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 .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[lC.indicatorRotate]},changeDetection:0}),e}(),mC=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),e}(),vC=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._ownHeaders=new a.n_E,e._hideToggle=!1,e.displayMode="default",e.togglePosition="after",e}return _createClass(n,[{key:"hideToggle",get:function(){return this._hideToggle},set:function(e){this._hideToggle=nr(e)}},{key:"ngAfterContentInit",value:function(){var e=this;this._headers.changes.pipe(De(this._headers)).subscribe(function(t){e._ownHeaders.reset(t.filter(function(t){return t.panel.accordion===e})),e._ownHeaders.notifyOnChanges()}),this._keyManager=new Eo(this._ownHeaders).withWrap().withHomeAndEnd()}},{key:"_handleHeaderKeydown",value:function(e){this._keyManager.onKeydown(e)}},{key:"_handleHeaderFocus",value:function(e){this._keyManager.updateActiveItem(e)}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"ngOnDestroy",this).call(this),this._ownHeaders.destroy()}}]),n}(QM);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275dir=a.lG2({type:t,selectors:[["mat-accordion"]],contentQueries:function(e,t,n){var i;(1&e&&a.Suo(n,gC,5),2&e)&&(a.iGM(i=a.CRH())&&(t._headers=i))},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&a.ekj("mat-accordion-multi",t.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[a._Bn([{provide:uC,useExisting:t}]),a.qOj]}),t}(),_C=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[r.ez,zu,tC,za]]}),e}();function yC(e,t){1&e&&(a.TgZ(0,"mat-icon",1),a.ALo(1,"translate"),a._uU(2," visibility\n"),a.qZA()),2&e&&a.s9C("matTooltip",a.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}var bC=function(){var e=function e(){_classCallCheck(this,e),this.recentIds=[]};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.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(e,t){1&e&&a.YNc(0,yC,3,3,"mat-icon",0),2&e&&a.Q6J("ngIf",t.recentIds.indexOf(t.id)>-1)},directives:[r.O5,sg,up],pipes:[hh],styles:[".disabled-icon[_ngcontent-%COMP%]{color:rgba(0,0,0,.26)}"]}),e}();function AC(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"span",3),a.NdJ("click",function(){return a.CHM(n),a.oxw().changeStatus()}),a.ALo(1,"translate"),a.TgZ(2,"mat-icon",4),a._uU(3,"check_circle_outline"),a.qZA(),a.qZA()}2&e&&a.s9C("matTooltip",a.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE"))}function wC(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"span",3),a.NdJ("click",function(){return a.CHM(n),a.oxw().changeStatus()}),a.ALo(1,"translate"),a.TgZ(2,"mat-icon",5),a._uU(3,"block"),a.qZA(),a.qZA()}2&e&&a.s9C("matTooltip",a.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE"))}function kC(e,t){if(1&e&&(a.TgZ(0,"span",6),a.ALo(1,"translate"),a.TgZ(2,"mat-icon",7),a._uU(3,"report"),a.qZA(),a.qZA()),2&e){var n=a.oxw();a.hYB("matTooltip","",a.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",n.failureCause,"")}}function MC(e,t){1&e&&(a.TgZ(0,"span",6),a.ALo(1,"translate"),a.TgZ(2,"mat-icon",8),a._uU(3,"autorenew"),a.qZA(),a.qZA()),2&e&&a.s9C("matTooltip",a.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}var CC=function(){var e=function(){function e(t){_classCallCheck(this,e),this.dialog=t,this.status="",this.statusChange=new a.vpe}return _createClass(e,[{key:"changeStatus",value:function(){var e=this,t=dg();t.width="500px",t.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(k_,t).afterClosed().subscribe(function(t){t&&e.statusChange.emit()})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Dl))},e.\u0275cmp=a.Xpm({type:e,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"],["matTooltipPosition","above",3,"matTooltip"],[1,"red"],[1,"black"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.YNc(1,AC,4,3,"span",1),a.YNc(2,wC,4,3,"span",1),a.YNc(3,kC,4,4,"span",2),a.YNc(4,MC,4,3,"span",2),a.qZA()),2&e&&(a.xp6(1),a.Q6J("ngIf","ACTIVE"===t.status),a.xp6(1),a.Q6J("ngIf","INACTIVE"===t.status),a.xp6(1),a.Q6J("ngIf","FAILED"===t.status),a.xp6(1),a.Q6J("ngIf","PROCESSING"===t.status))},directives:[r.O5,up,sg],pipes:[hh],styles:[""]}),e}(),TC=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e){if(null==e)return null;var t="";return e.forEach(function(e){t=t.concat(e.tagName)}),t}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=a.Yjl({name:"resourceTagsToString",type:e,pure:!0}),e}(),LC=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e,t){return t?"/organizations/".concat(e.voId,"/resources/").concat(e.id):"/facilities/".concat(e.facilityId,"/resources/").concat(e.id)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=a.Yjl({name:"getResourceRoute",type:e,pure:!0}),e}();function SC(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"th",22),a.TgZ(1,"mat-checkbox",23),a.NdJ("change",function(e){a.CHM(n);var t=a.oxw();return e?t.masterToggle():null}),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.xp6(1),a.Q6J("aria-label",i.checkboxLabel())("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function EC(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"td",24),a.TgZ(1,"span",25),a.ALo(2,"translate"),a.TgZ(3,"mat-checkbox",26),a.NdJ("change",function(e){var t=a.CHM(n).$implicit,i=a.oxw();return e?i.itemSelectionToggle(t):null})("click",function(e){return e.stopPropagation()}),a.qZA(),a.qZA(),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw();a.xp6(1),a.s9C("matTooltip",a.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE")),a.Q6J("matTooltipPosition","above")("matTooltipDisabled",!r.disableSelect(i)),a.xp6(2),a.Q6J("aria-label",r.checkboxLabel(i))("checked",r.selection.isSelected(i))("disabled",r.disableSelect(i))}}function zC(e,t){1&e&&(a.TgZ(0,"th",27),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")))}function OC(e,t){if(1&e&&(a.TgZ(0,"td",28),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(n.id)}}function xC(e,t){1&e&&a._UZ(0,"th",29)}function RC(e,t){if(1&e&&(a.TgZ(0,"td",30),a._UZ(1,"perun-web-apps-recently-viewed-icon",31),a.qZA()),2&e){var n=t.$implicit,i=a.oxw();a.xp6(1),a.Q6J("recentIds",i.recentIds)("id",n.id)}}function DC(e,t){1&e&&a._UZ(0,"th",29)}function PC(e,t){1&e&&(a.TgZ(0,"mat-icon",33),a.ALo(1,"translate"),a._uU(2,"account_tree"),a.qZA()),2&e&&a.Q6J("matTooltip",a.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE"))}function NC(e,t){if(1&e&&(a.TgZ(0,"td",30),a.YNc(1,PC,3,3,"mat-icon",32),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Q6J("ngIf",n.sourceGroupId)}}function IC(e,t){1&e&&(a.TgZ(0,"th",27),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")))}function qC(e,t){if(1&e&&(a.TgZ(0,"td",30),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(n.name)}}function BC(e,t){1&e&&(a.TgZ(0,"th",27),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")))}function HC(e,t){if(1&e&&(a.TgZ(0,"td",30),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(n.vo.name)}}function YC(e,t){1&e&&(a.TgZ(0,"th",27),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")))}function jC(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"td",30),a.TgZ(1,"perun-web-apps-group-resource-status",34),a.NdJ("mouseenter",function(){return a.CHM(n),a.oxw().disabledRouting=!0})("mouseleave",function(){a.CHM(n);var e=a.oxw();return e.disabledRouting=e.disableRouting})("statusChange",function(){return a.CHM(n),a.oxw().refreshTable.emit()}),a.qZA(),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw();a.xp6(1),a.Q6J("theme","group-theme")("resourceId",i.id)("groupId",r.groupId)("failureCause",i.failureCause)("status",i.status)}}function FC(e,t){1&e&&(a.TgZ(0,"th",27),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")))}function WC(e,t){if(1&e&&(a.TgZ(0,"td",30),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(n.facility.name)}}function UC(e,t){1&e&&(a.TgZ(0,"th",27),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")))}function KC(e,t){if(1&e&&(a.TgZ(0,"td",30),a._uU(1),a.ALo(2,"resourceTagsToString"),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(a.lcZ(2,1,n.resourceTags))}}function ZC(e,t){1&e&&(a.TgZ(0,"th",27),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")))}function GC(e,t){if(1&e&&(a.TgZ(0,"td",30),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(n.description)}}function XC(e,t){1&e&&a._UZ(0,"tr",35)}var VC=function(e){return[e]};function JC(e,t){if(1&e&&(a._UZ(0,"tr",36),a.ALo(1,"getResourceRoute"),a.ALo(2,"getResourceRoute")),2&e){var n=t.$implicit,i=a.oxw();a.ekj("cursor-pointer",!i.disableRouting)("disable-outline",i.disabledRouting),a.Q6J("perunWebAppsMiddleClickRouterLink",a.VKq(12,VC,i.disabledRouting?null:a.xi3(1,6,n,i.routingVo)))("routerLink",i.disabledRouting?null:a.xi3(2,9,n,i.routingVo))}}function QC(e,t){1&e&&(a.TgZ(0,"app-alert",37),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function $C(e,t){1&e&&(a.TgZ(0,"app-alert",37),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}var eT=function(){var e=function(){function e(t,n){var i=this;_classCallCheck(this,e),this.guiAuthResolver=t,this.tableCheckbox=n,this.resources=[],this.selection=new ga(!0,[]),this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","indirectResourceAssigment","name","vo","status","facility","tags","description"],this.pageSizeOptions=hg,this.groupId=null,this.resourcesToDisableCheckbox=new Set,this.refreshTable=new a.vpe,this.allSelected=new a.vpe,this.removeAuth=!1,this.addAuth=!1,this.canBeSelected=function(e){return!i.disableSelect(e)}}return _createClass(e,[{key:"matSort",set:function(e){this.sort=e}},{key:"ngOnInit",value:function(){this.disabledRouting=this.disableRouting}},{key:"ngOnChanges",value:function(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(e){return"id"!==e})),this.setDataSource(),this.setAuth()}},{key:"getDataForColumn",value:function(e,t,n){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 n.recentIds&&n.recentIds.indexOf(e.id)>-1?"#".repeat(n.recentIds.indexOf(e.id)):e.name;case"tags":if(!e.resourceTags)return e[t];var i="";return e.resourceTags.forEach(function(e){i=i.concat(e.tagName)}),i;case"status":return e.status;case"uuid":return e.uuid;default:return e[t]}}},{key:"exportData",value:function(e){_g(vg(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource||(this.dataSource=new Sv,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=function(t,n){return mg(t,n,e.displayedColumns,e.getDataForColumn,e,!0)},this.dataSource.sortData=function(t,n){return gg(t,n,e.getDataForColumn,e)}),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}},{key:"isAllSelected",value:function(){var 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}},{key:"masterToggle",value:function(){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()}},{key:"checkboxLabel",value:function(e){return e?"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"setAuth",value:function(){var e=this,t=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce(function(n,i){return n&&e.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",t.concat([i]))},!0),this.addAuth=this.selection.selected.reduce(function(n,i){return n&&e.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",t.concat([i]))},!0)}},{key:"itemSelectionToggle",value:function(e){this.selection.toggle(e),this.setAuth()}},{key:"disableSelect",value:function(e){return this.resourcesToDisableCheckbox.has(e.id)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(ge),a.Y36(Ng))},e.\u0275cmp=a.Xpm({type:e,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(e,t){var n;(1&e&&(a.Gf(Ek,7),a.Gf(Tg,7)),2&e)&&(a.iGM(n=a.CRH())&&(t.matSort=n.first),a.iGM(n=a.CRH())&&(t.child=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:[a.TTD],decls:37,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","status"],["matColumnDef","facility"],["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&&(a.TgZ(0,"div",0),a.TgZ(1,"perun-web-apps-table-wrapper",1),a.NdJ("exportData",function(e){return t.exportData(e)}),a.TgZ(2,"table",2),a.ynx(3,3),a.YNc(4,SC,2,3,"th",4),a.YNc(5,EC,4,8,"td",5),a.BQk(),a.ynx(6,6),a.YNc(7,zC,3,3,"th",7),a.YNc(8,OC,2,1,"td",8),a.BQk(),a.ynx(9,9),a.YNc(10,xC,1,0,"th",10),a.YNc(11,RC,2,2,"td",11),a.BQk(),a.ynx(12,12),a.YNc(13,DC,1,0,"th",10),a.YNc(14,NC,2,1,"td",11),a.BQk(),a.ynx(15,13),a.YNc(16,IC,3,3,"th",7),a.YNc(17,qC,2,1,"td",11),a.BQk(),a.ynx(18,14),a.YNc(19,BC,3,3,"th",7),a.YNc(20,HC,2,1,"td",11),a.BQk(),a.ynx(21,15),a.YNc(22,YC,3,3,"th",7),a.YNc(23,jC,2,5,"td",11),a.BQk(),a.ynx(24,16),a.YNc(25,FC,3,3,"th",7),a.YNc(26,WC,2,1,"td",11),a.BQk(),a.ynx(27,17),a.YNc(28,UC,3,3,"th",7),a.YNc(29,KC,3,3,"td",11),a.BQk(),a.ynx(30,18),a.YNc(31,ZC,3,3,"th",7),a.YNc(32,GC,2,1,"td",11),a.BQk(),a.YNc(33,XC,1,0,"tr",19),a.YNc(34,JC,3,14,"tr",20),a.qZA(),a.qZA(),a.qZA(),a.YNc(35,QC,3,3,"app-alert",21),a.YNc(36,$C,3,3,"app-alert",21)),2&e&&(a.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.resources.length),a.xp6(1),a.Q6J("dataLength",t.dataSource.filteredData.length)("tableId",t.tableId)("pageSizeOptions",t.pageSizeOptions),a.xp6(1),a.Q6J("dataSource",t.dataSource),a.xp6(31),a.Q6J("matHeaderRowDef",t.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",t.displayedColumns),a.xp6(1),a.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.resources.length),a.xp6(1),a.Q6J("ngIf",0===t.resources.length))},directives:[Tg,vv,Ek,bv,yv,_v,kv,Mv,r.O5,Av,EA,wv,up,Pk,bC,sg,CC,Cv,Tv,qk,Oi,cm],pipes:[hh,TC,LC],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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),e}();function tT(e,t){1&e&&a._UZ(0,"mat-spinner",8)}var nT=function(){return["name","description"]};function iT(e,t){if(1&e&&a._UZ(0,"perun-web-apps-resources-list",9),2&e){var n=a.oxw(3);a.Q6J("resources",n.resources)("displayedColumns",a.DdM(3,nT))("disableRouting",!0)}}function rT(e,t){if(1&e&&(a.YNc(0,tT,1,0,"mat-spinner",6),a.YNc(1,iT,1,4,"perun-web-apps-resources-list",7)),2&e){var n=a.oxw(2);a.Q6J("ngIf",n.loading),a.xp6(1),a.Q6J("ngIf",!n.loading)}}function aT(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-expansion-panel",4),a.NdJ("opened",function(){var e=a.CHM(n).$implicit;return a.oxw().getMemberData(e)}),a.TgZ(1,"mat-expansion-panel-header"),a.TgZ(2,"mat-panel-title"),a._uU(3),a.qZA(),a.qZA(),a.YNc(4,rT,2,2,"ng-template",5),a.qZA()}if(2&e){var i=t.$implicit;a.xp6(3),a.hij(" ",i.name," ")}}var oT=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this.usersManagerService=t,this.membersManagerService=n,this.resourcesManagerService=i,this.storage=r,this.resources=[],this.filteredVos=[]}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.userId=this.storage.getPerunPrincipal().userId,this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(function(t){e.vos=t,e.filteredVos=t})}},{key:"getMemberData",value:function(e){var t=this;this.loading=!0,this.membersManagerService.getMemberByUser(e.id,this.userId).subscribe(function(e){t.resourcesManagerService.getAssignedRichResourcesWithMember(e.id).subscribe(function(e){t.resources=e,t.loading=!1})})}},{key:"applyFilter",value:function(e){this.filteredVos=this.vos.filter(function(t){return t.name.toLowerCase().includes(e.toLowerCase())})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(he),a.Y36(se),a.Y36(le),a.Y36(tr))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA(),a.TgZ(4,"div",1),a.TgZ(5,"perun-web-apps-immediate-filter",2),a.NdJ("filter",function(e){return t.applyFilter(e)}),a.ALo(6,"translate"),a.ALo(7,"customTranslate"),a.qZA(),a.TgZ(8,"mat-accordion"),a.YNc(9,aT,5,1,"mat-expansion-panel",3),a.qZA(),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,3,a.lcZ(3,5,"SERVICES.TITLE"))),a.xp6(4),a.Q6J("placeholder",a.lcZ(6,7,a.lcZ(7,9,"SERVICES.FILTER"))),a.xp6(4),a.Q6J("ngForOf",t.filteredVos))},directives:[XM,vC,r.sg,pC,gC,mC,hC,r.O5,_m,eT],pipes:[hh,Wg],styles:[""]}),e}();function sT(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"perun-web-apps-immediate-filter",5),a.NdJ("filter",function(e){return a.CHM(n),a.oxw().applyFilter(e)}),a.qZA()}2&e&&a.Q6J("placeholder","ORGANIZATIONS.FILTER")}function cT(e,t){1&e&&a._UZ(0,"mat-spinner",6)}var uT=function(){return["name","expirationAttribute","extend"]};function lT(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div"),a.TgZ(1,"perun-web-apps-membership-list",11),a.NdJ("extendMembership",function(e){return a.CHM(n),a.oxw(2).extendMembership(e)}),a.qZA(),a.qZA()}if(2&e){var i=a.oxw(2);a.xp6(1),a.Q6J("members",i.userMemberships)("selection",i.selection)("filterValue",i.filterValue)("displayedColumns",a.DdM(4,uT))}}function hT(e,t){1&e&&(a.TgZ(0,"app-alert",12),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,a.lcZ(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}function dT(e,t){if(1&e&&(a.TgZ(0,"div",7),a.TgZ(1,"h1",8),a._uU(2),a.ALo(3,"translate"),a.ALo(4,"customTranslate"),a.qZA(),a.YNc(5,lT,2,5,"div",9),a.YNc(6,hT,4,5,"app-alert",10),a.qZA()),2&e){var n=a.oxw();a.xp6(2),a.Oqu(a.lcZ(3,3,a.lcZ(4,5,"ORGANIZATIONS.IS_MEMBER"))),a.xp6(3),a.Q6J("ngIf",0!==n.userMemberships.length),a.xp6(1),a.Q6J("ngIf",0===n.userMemberships.length)}}function fT(e,t){1&e&&(a.TgZ(0,"app-alert",12),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,a.lcZ(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}var pT=function(){return["name"]};function gT(e,t){if(1&e&&a._UZ(0,"perun-web-apps-membership-list",14),2&e){var n=a.oxw(2);a.Q6J("members",n.adminMemberships)("filterValue",n.filterValue)("displayedColumns",a.DdM(3,pT))}}function mT(e,t){if(1&e&&(a.TgZ(0,"div",7),a.TgZ(1,"h1",8),a._uU(2),a.ALo(3,"translate"),a.ALo(4,"customTranslate"),a.qZA(),a.YNc(5,fT,4,5,"app-alert",10),a.YNc(6,gT,1,4,"perun-web-apps-membership-list",13),a.qZA()),2&e){var n=a.oxw();a.xp6(2),a.Oqu(a.lcZ(3,3,a.lcZ(4,5,"ORGANIZATIONS.IS_ADMIN"))),a.xp6(3),a.Q6J("ngIf",!n.adminMemberships.length),a.xp6(1),a.Q6J("ngIf",n.adminMemberships.length)}}var vT=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.usersService=t,this.store=n,this.membersService=i,this.filterValue="",this.selection=new ga(!1,[]),this.userMemberships=[],this.adminMemberships=[],this.vosCount=0}return _createClass(e,[{key:"ngOnInit",value:function(){this.principal=this.store.getPerunPrincipal(),this.userId=this.principal.user.id,this.refreshTable()}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(function(t){e.usersService.getVosWhereUserIsAdmin(e.userId).subscribe(function(n){e.vosCount=t.length+n.length,e.fillMemberships(t,e.userMemberships),e.fillMemberships(n,e.adminMemberships)})})}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"isEverythingLoaded",value:function(){this.vosCount--,this.loading=0!==this.vosCount}},{key:"fillMemberships",value:function(e,t){var n=this;this.membersService.getMembersByUser(this.userId).subscribe(function(i){e.forEach(function(e){var r=i.find(function(t){return t.voId===e.id});r?n.membersService.getRichMemberWithAttributes(r.id).subscribe(function(i){var r=i.memberAttributes.find(function(e){return"membershipExpiration"===e.friendlyName});t.push({entity:e,expirationAttribute:r}),n.isEverythingLoaded()}):(t.push({entity:e,expirationAttribute:null}),n.isEverythingLoaded())})})}},{key:"extendMembership",value:function(e){var t=this.store.get("registrar_base_url");window.location.href="".concat(t,"?vo=").concat(e.entity.shortName)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(he),a.Y36(tr),a.Y36(se))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA(),a.TgZ(4,"div",1),a.YNc(5,sT,1,1,"perun-web-apps-immediate-filter",2),a.YNc(6,cT,1,0,"mat-spinner",3),a.YNc(7,dT,7,7,"div",4),a.YNc(8,mT,7,7,"div",4),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,5,a.lcZ(3,7,"ORGANIZATIONS.TITLE"))),a.xp6(4),a.Q6J("ngIf",!t.loading),a.xp6(1),a.Q6J("ngIf",t.loading),a.xp6(1),a.Q6J("ngIf",!t.loading),a.xp6(1),a.Q6J("ngIf",!t.loading))},directives:[r.O5,XM,_m,IM,cm],pipes:[hh,Wg],styles:[""]}),e}(),_T=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.Xpm({type:e,selectors:[["perun-web-apps-settings-page"]],decls:2,vars:0,consts:[[1,"user-theme"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a._UZ(1,"router-outlet"),a.qZA())},directives:[Di],styles:[""]}),e}(),yT=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.dialogRef=t,this.data=n,this.password=""}return _createClass(e,[{key:"ngOnInit",value:function(){this.password=this.data.password}},{key:"onClose",value:function(){this.dialogRef.close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl),a.Y36(El))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA(),a.TgZ(4,"div",1),a.TgZ(5,"p"),a._uU(6),a.ALo(7,"translate"),a.ALo(8,"customTranslate"),a.qZA(),a.TgZ(9,"label"),a._UZ(10,"input",2),a.qZA(),a.qZA(),a.TgZ(11,"div",3),a.TgZ(12,"button",4),a.NdJ("click",function(){return t.onClose()}),a._uU(13),a.ALo(14,"translate"),a.ALo(15,"customTranslate"),a.qZA(),a.TgZ(16,"button",5),a._uU(17),a.ALo(18,"translate"),a.ALo(19,"customTranslate"),a.qZA(),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,6,a.lcZ(3,8,"DIALOGS.SHOW_PASSWORD.TITLE"))),a.xp6(5),a.Oqu(a.lcZ(7,10,a.lcZ(8,12,"DIALOGS.SHOW_PASSWORD.LABEL"))),a.xp6(4),a.Q6J("value",t.password),a.xp6(3),a.hij(" ",a.lcZ(14,14,a.lcZ(15,16,"DIALOGS.SHOW_PASSWORD.CLOSE"))," "),a.xp6(3),a.Q6J("cdkCopyToClipboard",t.password),a.xp6(1),a.hij(" ",a.lcZ(18,18,a.lcZ(19,20,"DIALOGS.SHOW_PASSWORD.COPY"))," "))},directives:[Nl,Il,ql,_h,Hv],pipes:[hh,Wg],styles:[".center-text[_ngcontent-%COMP%]{text-align:center}"]}),e}();function bT(e,t){1&e&&a._UZ(0,"mat-spinner",7)}function AT(e,t){1&e&&a._UZ(0,"th",16)}function wT(e,t){if(1&e&&(a.TgZ(0,"td",17),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.hij(" ",n," ")}}function kT(e,t){1&e&&a._UZ(0,"tr",18)}function MT(e,t){1&e&&a._UZ(0,"tr",19)}function CT(e,t){if(1&e&&(a.TgZ(0,"div",8),a.TgZ(1,"p"),a._uU(2),a.ALo(3,"translate"),a.ALo(4,"customTranslate"),a.qZA(),a.TgZ(5,"div",9),a._uU(6),a.ALo(7,"translate"),a.ALo(8,"customTranslate"),a.qZA(),a.TgZ(9,"table",10),a.ynx(10,11),a.YNc(11,AT,1,0,"th",12),a.YNc(12,wT,2,1,"td",13),a.BQk(),a.YNc(13,kT,1,0,"tr",14),a.YNc(14,MT,1,0,"tr",15),a.qZA(),a.qZA()),2&e){var n=a.oxw();a.xp6(2),a.hij(" ",a.lcZ(3,5,a.lcZ(4,7,"DIALOGS.REMOVE_ALT_PASSWORD.DESCRIPTION"))," "),a.xp6(4),a.hij(" ",a.lcZ(7,9,a.lcZ(8,11,"DIALOGS.REMOVE_ALT_PASSWORD.ASK"))," "),a.xp6(3),a.Q6J("dataSource",n.dataSource),a.xp6(4),a.Q6J("matHeaderRowDef",n.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",n.displayedColumns)}}var TT=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.dialogRef=t,this.data=n,this.usersManagerService=i,this.displayedColumns=["description"]}return _createClass(e,[{key:"ngOnInit",value:function(){this.dataSource=new Sv(this.data.description)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,this.usersManagerService.deleteAlternativePassword(this.data.userId,"einfra",this.data.passwordId).subscribe(function(){e.loading=!1,e.dialogRef.close(!0)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl),a.Y36(El),a.Y36(he))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA(),a.TgZ(4,"div",1),a.YNc(5,bT,1,0,"mat-spinner",2),a.qZA(),a.YNc(6,CT,15,13,"div",3),a.TgZ(7,"div",4),a.TgZ(8,"button",5),a.NdJ("click",function(){return t.onCancel()}),a._uU(9),a.ALo(10,"translate"),a.ALo(11,"customTranslate"),a.qZA(),a.TgZ(12,"button",6),a.NdJ("click",function(){return t.onSubmit()}),a._uU(13),a.ALo(14,"translate"),a.ALo(15,"customTranslate"),a.qZA(),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,5,a.lcZ(3,7,"DIALOGS.REMOVE_ALT_PASSWORD.TITLE"))),a.xp6(4),a.Q6J("ngIf",t.loading),a.xp6(1),a.Q6J("ngIf",!t.loading),a.xp6(3),a.hij(" ",a.lcZ(10,9,a.lcZ(11,11,"DIALOGS.REMOVE_ALT_PASSWORD.CANCEL"))," "),a.xp6(4),a.hij(" ",a.lcZ(14,13,a.lcZ(15,15,"DIALOGS.REMOVE_ALT_PASSWORD.REMOVE"))," "))},directives:[Nl,r.O5,ql,_h,_m,Il,vv,bv,yv,_v,kv,Mv,Av,wv,Cv,Tv],pipes:[hh,Wg],styles:[""]}),e}();function LT(e,t){1&e&&a._UZ(0,"th",12)}function ST(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"td",13),a.TgZ(1,"mat-checkbox",14),a.NdJ("change",function(e){var t=a.CHM(n).$implicit,i=a.oxw();return e?i.selection.toggle(t):null})("click",function(e){return e.stopPropagation()}),a.qZA(),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw();a.xp6(1),a.Q6J("aria-label",r.checkboxLabel(i))("checked",r.selection.isSelected(i))}}function ET(e,t){if(1&e&&(a.TgZ(0,"th",15),a._uU(1),a.qZA()),2&e){var n=a.oxw();a.xp6(1),a.Oqu(n.headerColumnText)}}function zT(e,t){if(1&e&&(a.TgZ(0,"td",16),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(n)}}function OT(e,t){1&e&&a._UZ(0,"tr",17)}function xT(e,t){1&e&&a._UZ(0,"tr",18)}function RT(e,t){if(1&e&&(a.TgZ(0,"app-alert",19),a._uU(1),a.qZA()),2&e){var n=a.oxw();a.xp6(1),a.hij(" ",n.alertText,"\n")}}var DT=function(){var e=function(){function e(){_classCallCheck(this,e),this.values=[],this.selection=new ga(!1,[]),this.alertText="",this.headerColumnText="",this.displayedColumns=["select","value"]}return _createClass(e,[{key:"ngOnChanges",value:function(){this.values=this.values?this.values:[],this.dataSource=new Sv(this.values),this.setDataSource()}},{key:"getExportDataForColumn",value:function(e){return e}},{key:"exportData",value:function(e){_g(vg(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),e)}},{key:"setDataSource",value:function(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}},{key:"checkboxLabel",value:function(e){return(this.selection.isSelected(e)?"deselect":"select")+" row"}},{key:"ngAfterViewInit",value:function(){this.setDataSource()}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.Xpm({type:e,selectors:[["perun-web-apps-string-list"]],viewQuery:function(e,t){var n;(1&e&&a.Gf(Tg,7),2&e)&&(a.iGM(n=a.CRH())&&(t.child=n.first))},inputs:{values:"values",selection:"selection",alertText:"alertText",headerColumnText:"headerColumnText"},features:[a.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&&(a.TgZ(0,"div",0),a.TgZ(1,"perun-web-apps-table-wrapper",1),a.NdJ("exportData",function(e){return t.exportData(e)}),a.TgZ(2,"table",2),a.ynx(3,3),a.YNc(4,LT,1,0,"th",4),a.YNc(5,ST,2,2,"td",5),a.BQk(),a.ynx(6,6),a.YNc(7,ET,2,1,"th",7),a.YNc(8,zT,2,1,"td",8),a.BQk(),a.YNc(9,OT,1,0,"tr",9),a.YNc(10,xT,1,0,"tr",10),a.qZA(),a.qZA(),a.qZA(),a.YNc(11,RT,2,1,"app-alert",11)),2&e&&(a.Q6J("hidden",!t.values.length),a.xp6(1),a.Q6J("dataLength",t.dataSource.filteredData.length),a.xp6(1),a.Q6J("dataSource",t.dataSource),a.xp6(7),a.Q6J("matHeaderRowDef",t.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",t.displayedColumns),a.xp6(1),a.Q6J("ngIf",0===t.values.length))},directives:[Tg,vv,bv,yv,_v,kv,Mv,r.O5,Av,wv,EA,Cv,Tv,cm],styles:[".static-column-size[_ngcontent-%COMP%]{width:20px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100px}"]}),e}();function PT(e,t){if(1&e&&a._UZ(0,"perun-web-apps-string-list",10),2&e){var n=a.oxw();a.Q6J("values",n.displayedValues)("selection",n.selection)("alertText",n.alertText)("headerColumnText",n.headerColumnText)}}function NT(e,t){1&e&&a._UZ(0,"mat-spinner",11)}var IT=function(){var e=function(){function e(t,n,i,r,a){var o=this;_classCallCheck(this,e),this.store=t,this.attributesManagerService=n,this.dialog=i,this.translateService=r,this.usersManagerService=a,this.altPasswordCtrl=new tf(null,[pd.required]),this.userId=this.store.getPerunPrincipal().userId,this.passwordDescriptions=new Set,this.displayedValues=[],this.selection=new ga(!1,[]),r.get("ALT_PASSWORDS.REMOVE_DIALOG_DESCRIPTION").subscribe(function(e){return o.removeDialogDescription=e}),r.get("ALT_PASSWORDS.REMOVE_DIALOG_TITLE").subscribe(function(e){return o.removeDialogTitle=e}),r.get("ALERTS.NO_ALT_PASSWORDS").subscribe(function(e){return o.alertText=e}),r.get("ALT_PASSWORDS.HEADER_COLUMN").subscribe(function(e){return o.headerColumnText=e})}return _createClass(e,[{key:"ngOnInit",value:function(){this.getAltPasswords()}},{key:"createPassword",value:function(){var e=this,t=this.generatePassword();this.usersManagerService.createAlternativePassword(this.userId,this.altPasswordCtrl.value,"einfra",t).subscribe(function(){var n=dg();n.width="600px",n.data={password:t},e.dialog.open(yT,n),e.getAltPasswords(),e.altPasswordCtrl.setValue("")})}},{key:"generatePassword",value:function(){for(var e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%&/=?_.,:;\\-",t="",n=0,i=e.length;n<16;++n)t+=e.charAt(Math.random()*i);return t.match("((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])|(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])).{3,}")||this.generatePassword(),t}},{key:"getAltPasswords",value:function(){var e=this;this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:altPasswords:einfra").subscribe(function(t){if(e.altPasswordsAttribute=t,t.value){var n=Object.keys(t.value);e.passwordDescriptions=new Set(n),e.displayedValues=Array.from(e.passwordDescriptions.values())}else e.displayedValues=[];e.loading=!1})}},{key:"alreadyContainsValue",value:function(e){return this.passwordDescriptions.has(e)}},{key:"removeAltPasswords",value:function(){var e=this,t=dg();t.width="600px",t.data={description:this.selection.selected,passwordId:this.altPasswordsAttribute.value[this.selection.selected[0]],userId:this.userId},this.dialog.open(TT,t).afterClosed().subscribe(function(t){t&&(e.getAltPasswords(),e.selection.clear())})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(tr),a.Y36(re),a.Y36(Dl),a.Y36(lh),a.Y36(he))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"div",0),a.TgZ(1,"h1",1),a._uU(2),a.ALo(3,"translate"),a.ALo(4,"customTranslate"),a.qZA(),a.TgZ(5,"mat-form-field",2),a.TgZ(6,"label",2),a._UZ(7,"input",3),a.ALo(8,"translate"),a.ALo(9,"customTranslate"),a.qZA(),a.qZA(),a.TgZ(10,"button",4),a.NdJ("click",function(){return t.createPassword()}),a._uU(11),a.ALo(12,"translate"),a.ALo(13,"customTranslate"),a.qZA(),a.TgZ(14,"app-alert",5),a._uU(15),a.ALo(16,"translate"),a.ALo(17,"customTranslate"),a.qZA(),a.TgZ(18,"h1",6),a._uU(19),a.ALo(20,"translate"),a.ALo(21,"customTranslate"),a.qZA(),a.TgZ(22,"button",7),a.NdJ("click",function(){return t.removeAltPasswords()}),a._uU(23),a.ALo(24,"translate"),a.ALo(25,"customTranslate"),a.qZA(),a.YNc(26,PT,1,4,"perun-web-apps-string-list",8),a.YNc(27,NT,1,0,"mat-spinner",9),a.qZA()),2&e&&(a.xp6(2),a.Oqu(a.lcZ(3,11,a.lcZ(4,13,"ALT_PASSWORDS.TITLE_GENERATE"))),a.xp6(5),a.s9C("placeholder",a.lcZ(8,15,a.lcZ(9,17,"ALT_PASSWORDS.INPUT_PLACEHOLDER"))),a.Q6J("formControl",t.altPasswordCtrl),a.xp6(3),a.Q6J("disabled",!t.altPasswordCtrl.valid||t.alreadyContainsValue(t.altPasswordCtrl.value)),a.xp6(1),a.Oqu(a.lcZ(12,19,a.lcZ(13,21,"ALT_PASSWORDS.GENERATE"))),a.xp6(4),a.Oqu(a.lcZ(16,23,a.lcZ(17,25,"ALT_PASSWORDS.EXAMPLE_DESCRIPTIONS"))),a.xp6(4),a.Oqu(a.lcZ(20,27,a.lcZ(21,29,"ALT_PASSWORDS.TITLE_PASSWORDS"))),a.xp6(3),a.Q6J("disabled",t.selection.isEmpty()),a.xp6(1),a.Oqu(a.lcZ(24,31,a.lcZ(25,33,"ALT_PASSWORDS.REMOVE"))),a.xp6(3),a.Q6J("ngIf",!t.loading),a.xp6(1),a.Q6J("ngIf",t.loading))},directives:[td,tm,cd,Rd,vf,_h,cm,r.O5,DT,_m],pipes:[hh,Wg],styles:[""]}),e}();function qT(e,t){if(1&e&&(a.TgZ(0,"mat-list-item",1),a.TgZ(1,"mat-icon"),a._uU(2),a.qZA(),a.TgZ(3,"p",2),a._uU(4),a.ALo(5,"translate"),a.ALo(6,"customTranslate"),a.qZA(),a.qZA()),2&e){var n=t.$implicit;a.Q6J("routerLink",n.url),a.xp6(2),a.Oqu(n.icon),a.xp6(2),a.Oqu(a.lcZ(5,3,a.lcZ(6,5,n.label)))}}var BT=function(){var e=function(){function e(t){_classCallCheck(this,e),this.storeService=t,this.items=[]}return _createClass(e,[{key:"ngOnInit",value:function(){this.initItems();var e=this.storeService.get("displayed_tabs");this.items=this.items.filter(function(t){return e.includes(t.tabName)})}},{key:"initItems",value:function(){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:"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"}]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(tr))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"mat-list"),a.YNc(1,qT,7,7,"mat-list-item",0),a.qZA()),2&e&&(a.xp6(1),a.Q6J("ngForOf",t.items))},directives:[yb,r.sg,wb,rl,Oi,sg],pipes:[hh,Wg],styles:["mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important;color:var(--side-text-active)!important;cursor:pointer}"]}),e}(),HT=["row","column","row-reverse","column-reverse"];function YT(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}var jT=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"buildStyles",value:function(e){return t=function(e){var t=_slicedToArray((e=e?e.toLowerCase():"").split(" "),3),n=t[0],i=t[1],r=t[2];return HT.find(function(e){return e===n})||(n=HT[0]),"inline"===i&&(i="inline"!==r?r:"",r="inline"),[n,YT(i),!!r]}(e),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e,"flex-wrap":t||null}}((n=_slicedToArray(t,3))[0],n[1],n[2]);var t,n}}]),n}(my);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275prov=(0,a.Yz7)({factory:function(){return new t},token:t,providedIn:"root"}),t}(),FT=["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"],WT=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this,e,r,i,a)).DIRECTIVE_KEY="layout",o.styleCache=KT,o.init(),o}return n}(G_);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(gy),a.Y36(jT),a.Y36(vy))},e.\u0275dir=a.lG2({type:e,features:[a.qOj]}),e}(),UT=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments)).inputs=FT,e}return n}(WT);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275dir=a.lG2({type:t,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:[a.qOj]}),t}(),KT=new Map;new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;var ZT=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"buildStyles",value:function(e){var 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}}]),n}(my);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275prov=(0,a.Yz7)({factory:function(){return new t},token:t,providedIn:"root"}),t}(),GT=["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"],XT=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this,e,r,i,a)).DIRECTIVE_KEY="flex-align",o.styleCache=VT,o.init(),o}return n}(G_);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(gy),a.Y36(ZT),a.Y36(vy))},e.\u0275dir=a.lG2({type:e,features:[a.qOj]}),e}(),VT=new Map,JT=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments)).inputs=GT,e}return n}(XT);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275dir=a.lG2({type:t,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:[a.qOj]}),t}();new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;var QT=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[q_,da]]}),e}();function $T(e,t){if(1&e&&(a.TgZ(0,"mat-option",13),a._uU(1),a.qZA()),2&e){var n=t.$implicit,i=a.oxw();a.Q6J("value",i.selectedUnit),a.xp6(1),a.hij(" ",n," ")}}var eL=function(){var e=function(){function e(t,n,i,r,a){var o=this;_classCallCheck(this,e),this.dialogRef=t,this.data=n,this.rtMessagesService=i,this.notificator=r,this.translate=a,this.resource="",this.currentQuota="",this.units=["MiB","GiB","TiB"],this.selectedUnit="GiB",a.get("DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SUCCESS").subscribe(function(e){return o.successMessage=e})}return _createClass(e,[{key:"ngOnInit",value:function(){this.resource=this.data.resource.name,this.currentQuota=this.data.currentQuota,this.reasonControl=new tf(null,[pd.required]),this.newValueControl=new tf(null,[pd.required,pd.pattern("[1-9][0-9]*")])}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var e=this,t=(new Fg).transform(this.data.user);this.rtMessagesService.sentMessageToRTWithVo(this.data.vo.id,"QUOTA: Change request","QUOTA CHANGE REQUEST\u21b5 \u21b5 User: ".concat(t," (user ID: ").concat(this.data.user.id,")\u21b5 VO: ").concat(this.data.vo.shortName," / ").concat(this.data.vo.name," (vo ID: ").concat(this.data.vo.id,")\u21b5 Resource: ").concat(this.data.resource.name," (resource ID: ").concat(this.data.resource.id,")\u21b5 Data quota\u21b5 Requested quota: ").concat(this.newValueControl.value,"\u21b5 Reason: ").concat(this.reasonControl.value,"\u21b5 \u21b5 \u21b5 -------------------------------------\u21b5 Sent from Perun GUI")).subscribe(function(){e.notificator.showSuccess(e.successMessage),e.dialogRef.close()})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl),a.Y36(El),a.Y36(ce),a.Y36(xg),a.Y36(lh))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA(),a.TgZ(4,"div",1),a.TgZ(5,"div"),a.TgZ(6,"p",2),a._uU(7),a.ALo(8,"translate"),a.ALo(9,"customTranslate"),a.qZA(),a.TgZ(10,"p"),a._uU(11),a.qZA(),a.qZA(),a.TgZ(12,"div"),a.TgZ(13,"p",2),a._uU(14),a.ALo(15,"translate"),a.ALo(16,"customTranslate"),a.qZA(),a.TgZ(17,"p"),a._uU(18),a.qZA(),a.qZA(),a.TgZ(19,"div",3),a.TgZ(20,"mat-form-field"),a.TgZ(21,"label",4),a._UZ(22,"input",5),a.ALo(23,"translate"),a.ALo(24,"customTranslate"),a.qZA(),a.qZA(),a.TgZ(25,"mat-select",6),a.NdJ("valueChange",function(e){return t.selectedUnit=e}),a.YNc(26,$T,2,2,"mat-option",7),a.qZA(),a.qZA(),a.TgZ(27,"div"),a.TgZ(28,"mat-form-field",8),a.TgZ(29,"label",4),a._UZ(30,"textarea",9),a.ALo(31,"translate"),a.ALo(32,"customTranslate"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(33,"div",10),a.TgZ(34,"button",11),a.NdJ("click",function(){return t.onCancel()}),a._uU(35),a.ALo(36,"translate"),a.ALo(37,"customTranslate"),a.qZA(),a.TgZ(38,"button",12),a.NdJ("click",function(){return t.onSubmit()}),a._uU(39),a.ALo(40,"translate"),a.ALo(41,"customTranslate"),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,14,a.lcZ(3,16,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.TITLE"))),a.xp6(6),a.Oqu(a.lcZ(8,18,a.lcZ(9,20,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.RESOURCE"))),a.xp6(4),a.Oqu(t.resource),a.xp6(3),a.Oqu(a.lcZ(15,22,a.lcZ(16,24,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.CURRENT_QUOTA"))),a.xp6(4),a.Oqu(t.currentQuota),a.xp6(4),a.s9C("placeholder",a.lcZ(23,26,a.lcZ(24,28,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.REQUESTED_QUOTA"))),a.Q6J("formControl",t.newValueControl),a.xp6(3),a.Q6J("value",t.selectedUnit),a.xp6(1),a.Q6J("ngForOf",t.units),a.xp6(4),a.s9C("placeholder",a.lcZ(31,30,a.lcZ(32,32,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.REASON"))),a.Q6J("formControl",t.reasonControl),a.xp6(5),a.hij(" ",a.lcZ(36,34,a.lcZ(37,36,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.CANCEL"))," "),a.xp6(3),a.Q6J("disabled",t.reasonControl.invalid),a.xp6(1),a.hij(" ",a.lcZ(40,38,a.lcZ(41,40,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SEND"))," "))},directives:[Nl,UT,JT,td,tm,ff,cd,kf,Rd,vf,Gf,r.sg,ql,_h,ml],pipes:[hh,Wg],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-ripple.mat-form-field-ripple[_ngcontent-%COMP%], .mat-input-underline.mat-form-field-underline[_ngcontent-%COMP%]{display:none}"]}),e}();function tL(e,t){1&e&&a._UZ(0,"mat-spinner",8)}function nL(e,t){1&e&&(a.TgZ(0,"app-alert",9),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,a.lcZ(3,3,"DATA_QUOTAS.NO_QUOTAS"))))}function iL(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div"),a.TgZ(1,"p"),a.TgZ(2,"strong"),a._uU(3),a.ALo(4,"translate"),a.ALo(5,"customTranslate"),a.qZA(),a._uU(6),a.qZA(),a.TgZ(7,"p",10),a._uU(8),a.ALo(9,"translate"),a.ALo(10,"customTranslate"),a.qZA(),a.TgZ(11,"button",11),a.NdJ("click",function(){a.CHM(n);var e=a.oxw().$implicit,t=a.oxw(3).$implicit;return a.oxw().requestChangeQuota(t,e)}),a._uU(12),a.ALo(13,"translate"),a.ALo(14,"customTranslate"),a.qZA(),a.qZA()}if(2&e){var i=a.oxw(5);a.xp6(3),a.Oqu(a.lcZ(4,4,a.lcZ(5,6,"DATA_QUOTAS.QUOTA"))),a.xp6(3),a.hij(" ",i.quotasMarkup,""),a.xp6(2),a.Oqu(a.lcZ(9,8,a.lcZ(10,10,"DATA_QUOTAS.QUOTA_INFO"))),a.xp6(4),a.Oqu(a.lcZ(13,12,a.lcZ(14,14,"DATA_QUOTAS.CHANGE")))}}function rL(e,t){1&e&&(a.TgZ(0,"p"),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,a.lcZ(3,3,"DATA_QUOTAS.NO_QUOTAS"))))}function aL(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-expansion-panel",3),a.NdJ("opened",function(){var e=a.CHM(n).$implicit;return a.oxw(4).getResAttributes(e.id)}),a.TgZ(1,"mat-expansion-panel-header"),a.TgZ(2,"mat-panel-title"),a._uU(3),a.qZA(),a.qZA(),a.YNc(4,iL,15,16,"div",7),a.YNc(5,rL,4,5,"p",7),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw(4);a.xp6(3),a.hij(" ",i.name," "),a.xp6(1),a.Q6J("ngIf",r.defaultQuota),a.xp6(1),a.Q6J("ngIf",!r.defaultQuota)}}function oL(e,t){if(1&e&&(a.TgZ(0,"mat-accordion"),a.YNc(1,aL,6,3,"mat-expansion-panel",2),a.qZA()),2&e){var n=a.oxw(3);a.xp6(1),a.Q6J("ngForOf",n.resources)}}function sL(e,t){if(1&e&&(a.YNc(0,tL,1,0,"mat-spinner",5),a.YNc(1,nL,4,5,"app-alert",6),a.YNc(2,oL,2,1,"mat-accordion",7)),2&e){var n=a.oxw(2);a.Q6J("ngIf",n.loading),a.xp6(1),a.Q6J("ngIf",0===n.resources.length&&!n.loading),a.xp6(1),a.Q6J("ngIf",n.resources.length&&!n.loading)}}function cL(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-expansion-panel",3),a.NdJ("opened",function(){var e=a.CHM(n).$implicit;return a.oxw().getMembersResources(e)}),a.TgZ(1,"mat-expansion-panel-header"),a.TgZ(2,"mat-panel-title"),a._uU(3),a.qZA(),a.qZA(),a.YNc(4,sL,3,3,"ng-template",4),a.qZA()}if(2&e){var i=t.$implicit;a.xp6(3),a.hij(" ",i.name," ")}}var uL=function(){var e=function(){function e(t,n,i,r,a,o){_classCallCheck(this,e),this.store=t,this.usersManagerService=n,this.membersService=i,this.resourcesManagerService=r,this.attributesManagerService=a,this.dialog=o,this.vos=[],this.resources=[],this.quotasMarkup="",this.filteredVos=[]}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.user=this.store.getPerunPrincipal().user,this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(function(t){e.vos=t,e.filteredVos=t})}},{key:"getMembersResources",value:function(e){var t=this;this.loading=!0,this.resources=[],this.membersService.getMemberByUser(e.id,this.user.id).subscribe(function(e){t.resourcesManagerService.getAssignedRichResourcesWithMember(e.id).subscribe(function(e){var n=e.length;n||(t.loading=!1),e.forEach(function(e){t.attributesManagerService.getResourceAttributes(e.id).subscribe(function(i){n--,i.find(function(e){return"defaultDataQuotas"===e.friendlyName})&&t.resources.push(e),t.loading=0!==n})})})})}},{key:"getResAttributes",value:function(e){var t=this;this.attributesManagerService.getResourceAttributes(e).subscribe(function(e){var n=e.find(function(e){return"dataQuotas"===e.friendlyName});if(n&&n.value){var i=Object.keys(n.value);t.currentQuota=n.value[i[0]]}else t.currentQuota="";if(n=e.find(function(e){return"defaultDataQuotas"===e.friendlyName})){var r=Object.keys(n.value);t.defaultQuota=n.value[r[0]]}else t.defaultQuota="";t.currentQuota||(t.currentQuota=t.defaultQuota),t.parseMarkup()})}},{key:"parseMarkup",value:function(){var e="";e+=this.currentQuota,e=(e+=" (default: ".concat(this.defaultQuota,")")).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}},{key:"requestChangeQuota",value:function(e,t){var n=dg();n.width="400px",n.data={vo:e,resource:t,user:this.user,currentQuota:this.quotasMarkup},this.dialog.open(eL,n)}},{key:"applyFilter",value:function(e){this.filteredVos=this.vos.filter(function(t){return t.name.toLowerCase().includes(e.toLowerCase())})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(tr),a.Y36(he),a.Y36(se),a.Y36(le),a.Y36(re),a.Y36(Dl))},e.\u0275cmp=a.Xpm({type:e,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"],[2,"color","gray"],["mat-flat-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA(),a.TgZ(4,"perun-web-apps-immediate-filter",1),a.NdJ("filter",function(e){return t.applyFilter(e)}),a.ALo(5,"translate"),a.ALo(6,"customTranslate"),a.qZA(),a.TgZ(7,"mat-accordion"),a.YNc(8,cL,5,1,"mat-expansion-panel",2),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,3,a.lcZ(3,5,"DATA_QUOTAS.TITLE"))),a.xp6(3),a.Q6J("placeholder",a.lcZ(5,7,a.lcZ(6,9,"DATA_QUOTAS.FILTER"))),a.xp6(4),a.Q6J("ngForOf",t.filteredVos))},directives:[XM,vC,r.sg,pC,gC,mC,hC,r.O5,_m,cm,_h],pipes:[hh,Wg],styles:[""]}),e}();function lL(e,t){1&e&&a._UZ(0,"mat-spinner",8)}function hL(e,t){1&e&&(a.TgZ(0,"app-alert",9),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,a.lcZ(3,3,"OPT_OUT_MAILING_LISTS.NO_MAILING_LISTS_ALERT"))))}function dL(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-expansion-panel",3),a.NdJ("opened",function(){var e=a.CHM(n).$implicit;return a.oxw(4).getOptOutAttribute(e)}),a.TgZ(1,"mat-expansion-panel-header"),a.TgZ(2,"mat-panel-title"),a._uU(3),a.qZA(),a.qZA(),a.TgZ(4,"div",10),a.TgZ(5,"p"),a._uU(6),a.ALo(7,"translate"),a.ALo(8,"customTranslate"),a.qZA(),a.TgZ(9,"mat-checkbox",11),a.NdJ("change",function(){return a.CHM(n),a.oxw(4).setOptOut()}),a.qZA(),a.qZA(),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw(4);a.xp6(3),a.hij(" ",i.name," "),a.xp6(3),a.Oqu(a.lcZ(7,3,a.lcZ(8,5,"OPT_OUT_MAILING_LISTS.OPT_OUT_LABEL"))),a.xp6(3),a.Q6J("checked",r.optOutAttribute&&null!==r.optOutAttribute.value)}}function fL(e,t){if(1&e&&(a.TgZ(0,"mat-accordion"),a.YNc(1,dL,10,7,"mat-expansion-panel",2),a.qZA()),2&e){var n=a.oxw(3);a.xp6(1),a.Q6J("ngForOf",n.resources)}}function pL(e,t){if(1&e&&(a.YNc(0,lL,1,0,"mat-spinner",5),a.YNc(1,hL,4,5,"app-alert",6),a.YNc(2,fL,2,1,"mat-accordion",7)),2&e){var n=a.oxw(2);a.Q6J("ngIf",n.loading),a.xp6(1),a.Q6J("ngIf",0===n.resources.length&&!n.loading),a.xp6(1),a.Q6J("ngIf",n.resources.length&&!n.loading)}}function gL(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-expansion-panel",3),a.NdJ("opened",function(){var e=a.CHM(n).$implicit;return a.oxw().getMailingLists(e)}),a.TgZ(1,"mat-expansion-panel-header"),a.TgZ(2,"mat-panel-title"),a._uU(3),a.qZA(),a.qZA(),a.YNc(4,pL,3,3,"ng-template",4),a.qZA()}if(2&e){var i=t.$implicit;a.xp6(3),a.hij(" ",i.name," ")}}var mL=function(){var e=function(){function e(t,n,i,r,a){_classCallCheck(this,e),this.store=t,this.usersManagerService=n,this.membersService=i,this.resourcesManagerService=r,this.attributesManagerService=a,this.vos=[],this.resources=[],this.mailingLists=[],this.optOuts=[],this.filteredVos=[]}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.user=this.store.getPerunPrincipal().user,this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(function(t){e.vos=t,e.filteredVos=t})}},{key:"getMailingLists",value:function(e){var t=this;this.loading=!0,this.resources=[],this.membersService.getMemberByUser(e.id,this.user.id).subscribe(function(e){t.resourcesManagerService.getAssignedRichResourcesWithMember(e.id).subscribe(function(n){var i=n.length;i||(t.loading=!1),n.forEach(function(n){t.attributesManagerService.getRequiredAttributesMemberResource(e.id,n.id).subscribe(function(r){t.attributesManagerService.getResourceAttributeByName(n.id,"urn:perun:resource:attribute-def:def:disableMailingListOptOut").subscribe(function(a){i--;var o=r.find(function(e){return"optOutMailingList"===e.friendlyName});!o||a&&"true"===a.value||(t.optOuts.push({resource:n.id,member:e.id,attribute:o}),t.resources.push(n)),t.loading=0!==i})})})})})}},{key:"getOptOutAttribute",value:function(e){this.index=this.resources.indexOf(e),this.optOutAttribute=this.optOuts[this.index].attribute}},{key:"setOptOut",value:function(){this.optOuts[this.index].attribute.value=this.optOutAttribute.value?null:"true",this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(function(){console.log("done")})}},{key:"applyFilter",value:function(e){this.filteredVos=this.vos.filter(function(t){return t.name.toLowerCase().includes(e.toLowerCase())})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(tr),a.Y36(he),a.Y36(se),a.Y36(le),a.Y36(re))},e.\u0275cmp=a.Xpm({type:e,selectors:[["perun-web-apps-settings-mailing-lists"]],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,"row"],[1,"ml-3",3,"checked","change"]],template:function(e,t){1&e&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA(),a.TgZ(4,"perun-web-apps-immediate-filter",1),a.NdJ("filter",function(e){return t.applyFilter(e)}),a.ALo(5,"translate"),a.ALo(6,"customTranslate"),a.qZA(),a.TgZ(7,"mat-accordion"),a.YNc(8,gL,5,1,"mat-expansion-panel",2),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,3,a.lcZ(3,5,"OPT_OUT_MAILING_LISTS.TITLE"))),a.xp6(3),a.Q6J("placeholder",a.lcZ(5,7,a.lcZ(6,9,"OPT_OUT_MAILING_LISTS.FILTER"))),a.xp6(4),a.Q6J("ngForOf",t.filteredVos))},directives:[XM,vC,r.sg,pC,gC,mC,hC,r.O5,_m,cm,EA],pipes:[hh,Wg],styles:[""]}),e}();function vL(e,t){1&e&&a._UZ(0,"mat-spinner",4)}function _L(e,t){1&e&&a._UZ(0,"th",17)}function yL(e,t){if(1&e&&(a.TgZ(0,"td",18),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.hij(" ",n," ")}}function bL(e,t){1&e&&a._UZ(0,"tr",19)}function AL(e,t){1&e&&a._UZ(0,"tr",20)}function wL(e,t){if(1&e&&(a.TgZ(0,"table",11),a.ynx(1,12),a.YNc(2,_L,1,0,"th",13),a.YNc(3,yL,2,1,"td",14),a.BQk(),a.YNc(4,bL,1,0,"tr",15),a.YNc(5,AL,1,0,"tr",16),a.qZA()),2&e){var n=a.oxw(2);a.Q6J("dataSource",n.dataSource),a.xp6(4),a.Q6J("matHeaderRowDef",n.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",n.displayedColumns)}}function kL(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",1),a.TgZ(1,"div",5),a.TgZ(2,"p"),a._uU(3),a.qZA(),a.TgZ(4,"div",6),a._uU(5),a.ALo(6,"translate"),a.ALo(7,"customTranslate"),a.qZA(),a.YNc(8,wL,6,3,"table",7),a.qZA(),a.TgZ(9,"div",8),a.TgZ(10,"button",9),a.NdJ("click",function(){return a.CHM(n),a.oxw().onCancel()}),a._uU(11),a.ALo(12,"translate"),a.ALo(13,"customTranslate"),a.qZA(),a.TgZ(14,"button",10),a.NdJ("click",function(){return a.CHM(n),a.oxw().onSubmit()}),a._uU(15),a.ALo(16,"translate"),a.ALo(17,"customTranslate"),a.qZA(),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.xp6(3),a.hij(" ",i.description," "),a.xp6(2),a.hij(" ",a.lcZ(6,5,a.lcZ(7,7,"DIALOGS.REMOVE_STRING_VALUE.ASK"))," "),a.xp6(3),a.Q6J("ngIf",i.dataSource.data.length),a.xp6(3),a.hij(" ",a.lcZ(12,9,a.lcZ(13,11,"DIALOGS.REMOVE_STRING_VALUE.CANCEL"))," "),a.xp6(4),a.hij(" ",a.lcZ(16,13,a.lcZ(17,15,"DIALOGS.REMOVE_STRING_VALUE.REMOVE"))," ")}}var ML=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.dialogRef=t,this.data=n,this.attributesManagerService=i,this.displayedColumns=["name"]}return _createClass(e,[{key:"ngOnInit",value:function(){this.dataSource=new Sv(this.data.values),this.description=this.data.description,this.title=this.data.title}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;if(this.loading=!0,this.data.doNotShowValues)this.data.attribute.value="";else{var t=this.data.attribute.value?this.data.attribute.value:[];void 0!==this.data.valueIndex?t.splice(this.data.valueIndex,1):t=t.filter(function(t){return!e.data.values.find(function(e){return e===t})}),this.data.attribute.value=t}this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(function(){e.loading=!1,e.dialogRef.close(!0)},function(){return e.loading=!1})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl),a.Y36(El),a.Y36(re))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h1",0),a._uU(1),a.qZA(),a.TgZ(2,"div",1),a.YNc(3,vL,1,0,"mat-spinner",2),a.qZA(),a.YNc(4,kL,18,17,"div",3)),2&e&&(a.xp6(1),a.Oqu(t.title),a.xp6(2),a.Q6J("ngIf",t.loading),a.xp6(1),a.Q6J("ngIf",!t.loading))},directives:[Nl,r.O5,_m,Il,ql,_h,vv,bv,yv,_v,kv,Mv,Av,wv,Cv,Tv],pipes:[hh,Wg],styles:[""]}),e}();function CL(e,t){1&e&&(a.TgZ(0,"app-alert",5),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,a.lcZ(3,3,"PREFERRED_SHELLS.NO_SHELLS"))))}function TL(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-option",11),a.NdJ("click",function(){return a.CHM(n),a.oxw(3).changeValue()}),a._uU(1),a.qZA()}if(2&e){var i=t.$implicit;a.Q6J("value",i),a.xp6(1),a.Oqu(i)}}function LL(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-list-item"),a.TgZ(1,"mat-form-field",7),a.TgZ(2,"mat-select",8),a.NdJ("valueChange",function(e){var t=a.CHM(n).index;return a.oxw(2).shells[t]=e}),a.YNc(3,TL,2,2,"mat-option",9),a.qZA(),a.qZA(),a.TgZ(4,"button",10),a.NdJ("click",function(){var e=a.CHM(n).index;return a.oxw(2).removeShell(e)}),a._uU(5),a.ALo(6,"translate"),a.ALo(7,"customTranslate"),a.qZA(),a.qZA()}if(2&e){var i=t.index,r=a.oxw(2);a.xp6(2),a.Q6J("value",r.shells[i]),a.xp6(1),a.Q6J("ngForOf",r.defaultShells),a.xp6(2),a.Oqu(a.lcZ(6,3,a.lcZ(7,5,"PREFERRED_SHELLS.REMOVE_BUTTON")))}}function SL(e,t){if(1&e&&(a.TgZ(0,"mat-list"),a.YNc(1,LL,8,7,"mat-list-item",6),a.qZA()),2&e){var n=a.oxw();a.xp6(1),a.Q6J("ngForOf",n.shells)}}var EL=function(){var e=function(){function e(t,n,i,r){var a=this;_classCallCheck(this,e),this.store=t,this.attributesManagerService=n,this.dialog=i,this.translateService=r,this.defaultShells=["/bin/bash","/bin/csh","/bin/ksh","/bin/sh","/bin/zsh"],this.shells=[],r.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(function(e){return a.removeDialogDescription=e}),r.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(function(e){return a.removeDialogTitle=e})}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.userId=this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(function(){e.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(function(t){return e.removeDialogDescription=t}),e.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(function(t){return e.removeDialogTitle=t})}),this.getAttribute()}},{key:"addShell",value:function(){this.shells.push("/bin/bash"),this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe(function(){console.log("done")})}},{key:"removeShell",value:function(e){var t=this,n=dg();n.width="600px",n.data={valueIndex:e,values:[this.shells[e]],attribute:this.prefShellsAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(ML,n).afterClosed().subscribe(function(e){e&&t.getAttribute()})}},{key:"getAttribute",value:function(){var e=this;this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredShells").subscribe(function(t){e.prefShellsAttribute=t,e.shells=e.prefShellsAttribute.value?e.prefShellsAttribute.value:[],e.loading=!1})}},{key:"changeValue",value:function(){var e=this;this.loading=!0,this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe(function(){e.getAttribute()})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(tr),a.Y36(re),a.Y36(Dl),a.Y36(lh))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA(),a.TgZ(4,"app-alert",1),a._uU(5),a.ALo(6,"translate"),a.ALo(7,"customTranslate"),a.qZA(),a.TgZ(8,"button",2),a.NdJ("click",function(){return t.addShell()}),a._uU(9),a.ALo(10,"translate"),a.ALo(11,"customTranslate"),a.qZA(),a.YNc(12,CL,4,5,"app-alert",3),a.YNc(13,SL,2,1,"mat-list",4)),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,5,a.lcZ(3,7,"PREFERRED_SHELLS.TITLE"))),a.xp6(4),a.hij(" ",a.lcZ(6,9,a.lcZ(7,11,"PREFERRED_SHELLS.DESCRIPTION")),"\n"),a.xp6(4),a.Oqu(a.lcZ(10,13,a.lcZ(11,15,"PREFERRED_SHELLS.NEW_BUTTON"))),a.xp6(3),a.Q6J("ngIf",!t.loading&&0===t.shells.length),a.xp6(1),a.Q6J("ngIf",!t.loading))},directives:[cm,_h,r.O5,yb,r.sg,wb,td,Gf,ml],pipes:[hh,Wg],styles:[""]}),e}();function zL(e,t){1&e&&a._UZ(0,"mat-spinner",4)}function OL(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div"),a.TgZ(1,"div",5),a.TgZ(2,"mat-form-field",6),a.TgZ(3,"label",6),a._UZ(4,"input",7),a.qZA(),a.qZA(),a.qZA(),a.TgZ(5,"div",8),a.TgZ(6,"button",9),a.NdJ("click",function(){return a.CHM(n),a.oxw().onCancel()}),a._uU(7),a.ALo(8,"translate"),a.ALo(9,"customTranslate"),a.qZA(),a.TgZ(10,"button",10),a.NdJ("click",function(){return a.CHM(n),a.oxw().onSubmit()}),a._uU(11),a.ALo(12,"translate"),a.ALo(13,"customTranslate"),a.qZA(),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.xp6(4),a.Q6J("formControl",i.inputControl),a.xp6(3),a.hij(" ",a.lcZ(8,4,a.lcZ(9,6,"DIALOGS.ADD_UNIX_GROUP.CANCEL"))," "),a.xp6(3),a.Q6J("disabled",!i.inputControl.valid||i.groups.includes(i.inputControl.value)),a.xp6(1),a.hij(" ",a.lcZ(12,8,a.lcZ(13,10,"DIALOGS.ADD_UNIX_GROUP.ADD"))," ")}}var xL=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.dialogRef=t,this.data=n,this.attributesManagerService=i,this.groups=[]}return _createClass(e,[{key:"ngOnInit",value:function(){this.inputControl=new tf(null,pd.required),this.groups=this.data.groups}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.data.userId,"urn:perun:user:attribute-def:def:preferredUnixGroupName-namespace:".concat(this.data.namespace)).subscribe(function(t){var n=t.value?t.value:[];n.push(e.inputControl.value),t.value=n,e.attributesManagerService.setUserAttribute({user:e.data.userId,attribute:t}).subscribe(function(){e.loading=!1,e.dialogRef.close(!0)})})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl),a.Y36(El),a.Y36(re))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA(),a.TgZ(4,"div",1),a.YNc(5,zL,1,0,"mat-spinner",2),a.YNc(6,OL,14,12,"div",3),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,3,a.lcZ(3,5,"DIALOGS.ADD_UNIX_GROUP.TITLE"))),a.xp6(4),a.Q6J("ngIf",t.loading),a.xp6(1),a.Q6J("ngIf",!t.loading))},directives:[Nl,r.O5,_m,Il,td,tm,cd,kf,Rd,vf,ql,_h],pipes:[hh,Wg],styles:[""]}),e}();function RL(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",2),a.TgZ(1,"h4"),a._uU(2),a.qZA(),a.TgZ(3,"button",3),a.NdJ("click",function(){var e=a.CHM(n).$implicit;return a.oxw().addGroupName(e)}),a._uU(4),a.ALo(5,"translate"),a.ALo(6,"customTranslate"),a.qZA(),a.TgZ(7,"button",4),a.NdJ("click",function(){var e=a.CHM(n),t=e.$implicit,i=e.index;return a.oxw().removeGroupName(t,i)}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a._UZ(10,"perun-web-apps-string-list",5),a.qZA()}if(2&e){var i=t.$implicit,r=t.index,o=a.oxw();a.xp6(2),a.Oqu(i),a.xp6(2),a.Oqu(a.lcZ(5,8,a.lcZ(6,10,"PREFERRED_UNIX_GROUP_NAMES.NEW_BUTTON"))),a.xp6(3),a.Q6J("disabled",0===o.selectionList[r].selected.length),a.xp6(1),a.Oqu(a.lcZ(9,12,"PREFERRED_UNIX_GROUP_NAMES.REMOVE_BUTTON")),a.xp6(2),a.Q6J("values",o.groupNames.get(i))("selection",o.selectionList[r])("alertText",o.alertText)("headerColumnText",o.headerColumnText)}}var DL=function(){var e=function(){function e(t,n,i,r){var a=this;_classCallCheck(this,e),this.store=t,this.attributesManagerService=n,this.dialog=i,this.translateService=r,this.namespaces=[],this.userId=this.store.getPerunPrincipal().userId,this.groupNames=new Map,this.groupNameAttributes=[],this.selectionList=[],r.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_DESCRIPTION").subscribe(function(e){return a.removeDialogDescription=e}),r.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(function(e){return a.removeDialogTitle=e}),r.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(function(e){return a.alertText=e}),r.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(function(e){return a.headerColumnText=e})}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.namespaces=this.store.get("preferred_unix_group_names"),this.translateService.onLangChange.subscribe(function(){e.translateService.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_DESCRIPTION").subscribe(function(t){return e.removeDialogDescription=t}),e.translateService.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(function(t){return e.removeDialogTitle=t}),e.translateService.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(function(t){return e.alertText=t}),e.translateService.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(function(t){return e.headerColumnText=t})}),this.initSelection(),this.namespaces.forEach(function(t){e.getAttribute(t)})}},{key:"initSelection",value:function(){for(var e=0;e=5120,this.newImage=t.result}},{key:"onAdd",value:function(){var e=this;this.attribute.value=this.newImage,this.attributesManagerService.setUserAttribute({attribute:this.attribute,user:this.store.getPerunPrincipal().userId}).subscribe(function(){e.dialogRef.close(!0)})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"generateImg",value:function(){function e(e,t,n,i){i.beginPath(),i.rect(20*e,20*t,20,20),i.fillStyle="rgb("+n.join(",")+")",i.fill()}this.newImage=function(){for(var t=function(){var e=document.createElement("canvas");e.width=100,e.height=100;var t=e.getContext("2d");return t.beginPath(),t.rect(0,0,100,100),t.fillStyle="#FFFFFF",t.fill(),e}(),n=t.getContext("2d"),i=function(){for(var e=[],t=0;t<3;t++){var n=Math.floor(256*Math.random()),i=Math.max(120,n),r=Math.min(200,i);e.push(r)}return e}(),r=0;r1&&void 0!==arguments[1]?arguments[1]:"/assets/i18n/",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".json";_classCallCheck(this,e),this.http=t,this.prefix=n,this.suffix=i}return _createClass(e,[{key:"getTranslation",value:function(e){return this.http.get("".concat(this.prefix).concat(e).concat(this.suffix))}}]),e}(),rE=function(){var e=function(){function e(t,n,i,r,a){_classCallCheck(this,e),this.http=t,this.storeService=n,this.authzSevice=i,this.titleService=r,this.utilsService=a}return _createClass(e,[{key:"initializeColors",value:function(e,t){var n=this;return new Promise(function(i){t.forEach(function(e){var t=n.storeService.get("theme",e.configValue);document.documentElement.style.setProperty(e.cssVariable,t)}),e.forEach(function(e){var t=n.storeService.get("theme",e.configValue);document.documentElement.style.setProperty(e.cssVariable,t),n.setEntityTheme(e.entity,t)}),i()})}},{key:"setEntityTheme",value:function(e,t){for(var n,i=0,r=(n=t,[aE(tinycolor(n).lighten(52),"50"),aE(tinycolor(n).lighten(37),"100"),aE(tinycolor(n).lighten(26),"200"),aE(tinycolor(n).lighten(12),"300"),aE(tinycolor(n).lighten(6),"400"),aE(tinycolor(n),"500"),aE(tinycolor(n).darken(6),"600"),aE(tinycolor(n).darken(12),"700"),aE(tinycolor(n).darken(18),"800"),aE(tinycolor(n).darken(24),"900"),aE(tinycolor(n).lighten(50).saturate(30),"A100"),aE(tinycolor(n).lighten(30).saturate(30),"A200"),aE(tinycolor(n).lighten(10).saturate(15),"A400"),aE(tinycolor(n).lighten(5).saturate(5),"A700")]);i1&&void 0!==arguments[1]?arguments[1]:[];return{ngModule:e,providers:t.serverLoaded?[{provide:j_,useValue:Object.assign(Object.assign({},Y_),t)},{provide:W_,useValue:n,multi:!0},{provide:F_,useValue:!0}]:[{provide:j_,useValue:Object.assign(Object.assign({},Y_),t)},{provide:W_,useValue:n,multi:!0}]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(F_),a.LFG(a.Lbi))},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[QT,Ly,sE],QT,Ly,sE]}),e}(),uE=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[zu],zu]}),e}(),lE=new a.OlP("perun-api-service"),hE=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({}),e}(),dE=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[hE,al,zu,yo],hE,zu]}),e}(),fE={provide:ee.TP,useExisting:(0,a.Gpc)(function(){return Rg}),multi:!0};function pE(e){return new iE(e,"./assets/i18n/",".json")}function gE(e){var t={basePath:e.get("api_url")};return new ie(t)}var mE=function(e){return function(){return e.initialize()}},vE=function(){var e=function e(t,n){_classCallCheck(this,e),this.customIconService=t,this.translate=n,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()};return e.\u0275fac=function(t){return new(t||e)(a.LFG(Eg),a.LFG(lh))},e.\u0275mod=a.oAB({type:e,bootstrap:[lA]}),e.\u0275inj=a.cJS({providers:[Eg,{provide:a.ip1,useFactory:mE,multi:!0,deps:[oE]},{provide:ie,useFactory:gE,deps:[tr]},Fg,Rg,fE,{provide:lE,useClass:Pg}],imports:[[I,wu,ee.JF,dh.forRoot({loader:{provide:Ul,useFactory:pE,deps:[ee.eN]}}),nE,cg,sb,kb,Ki,yh,cE,P_,zS,AS,_C,nd,Xf,Bl,Lv,nm,Tf,OA,Cp,ym,Nk,uE,Yv,jg,wM,al,dp,dE,p_,Cf,JS,ug,Wp,Hl.zr.forRoot()]]}),e}();(0,a.G48)(),P().bootstrapModule(vE).catch(function(e){return console.error(e)})},1511:function(e,t,n){"use strict";n.d(t,{mr:function(){return b},Ov:function(){return Me},ez:function(){return Le},K0:function(){return c},uU:function(){return Te},Do:function(){return w},V_:function(){return h},Ye:function(){return k},S$:function(){return _},mk:function(){return ce},sg:function(){return le},O5:function(){return de},PC:function(){return ye},RF:function(){return me},n9:function(){return ve},ED:function(){return _e},b0:function(){return A},lw:function(){return u},gd:function(){return Ce},EM:function(){return Oe},JF:function(){return De},NF:function(){return Ee},PM:function(){return ze},w_:function(){return s},bD:function(){return Se},q:function(){return a},Mx:function(){return se},HT:function(){return o}});var i=n(1572),r=null;function a(){return r}function o(e){r||(r=e)}var s=function e(){_classCallCheck(this,e)},c=new i.OlP("DocumentToken"),u=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,i.Yz7)({factory:l,token:e,providedIn:"platform"}),e}();function l(){return(0,i.LFG)(d)}var h=new i.OlP("Location Initialized"),d=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._doc=e,i._init(),i}return _createClass(n,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return a().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){var t=a().getGlobalEventTarget(this._doc,"window");return t.addEventListener("popstate",e,!1),function(){return t.removeEventListener("popstate",e)}}},{key:"onHashChange",value:function(e){var t=a().getGlobalEventTarget(this._doc,"window");return t.addEventListener("hashchange",e,!1),function(){return t.removeEventListener("hashchange",e)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(e,t,n){f()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){f()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(e)}},{key:"getState",value:function(){return this._history.state}}]),n}(u);return e.\u0275fac=function(t){return new(t||e)(i.LFG(c))},e.\u0275prov=(0,i.Yz7)({factory:p,token:e,providedIn:"platform"}),e}();function f(){return!!window.history.pushState}function p(){return new d((0,i.LFG)(c))}function g(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function m(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function v(e){return e&&"?"!==e[0]?"?"+e:e}var _=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,i.Yz7)({factory:y,token:e,providedIn:"root"}),e}();function y(e){var t=(0,i.LFG)(c).location;return new A((0,i.LFG)(u),t&&t.origin||"")}var b=new i.OlP("appBaseHref"),A=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;if(_classCallCheck(this,n),(r=t.call(this))._platformLocation=e,r._removeListenerFns=[],null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=i,_possibleConstructorReturn(r)}return _createClass(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return g(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+v(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+v(i));this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+v(i));this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}]),n}(_);return e.\u0275fac=function(t){return new(t||e)(i.LFG(u),i.LFG(b,8))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}(),w=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this))._platformLocation=e,r._baseHref="",r._removeListenerFns=[],null!=i&&(r._baseHref=i),r}return _createClass(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=g(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+v(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+v(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}]),n}(_);return e.\u0275fac=function(t){return new(t||e)(i.LFG(u),i.LFG(b,8))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}(),k=function(){var e=function(){function e(t,n){var r=this;_classCallCheck(this,e),this._subject=new i.vpe,this._urlChangeListeners=[],this._platformStrategy=t;var a=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=m(C(a)),this._platformStrategy.onPopState(function(e){r._subject.emit({url:r.path(!0),pop:!0,state:e.state,type:e.type})})}return _createClass(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+v(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,C(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+v(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+v(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformStrategy).historyGo)||void 0===t||t.call(e,n)}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(e,t)})}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.LFG(_),i.LFG(u))},e.normalizeQueryParams=v,e.joinWithSlash=g,e.stripTrailingSlash=m,e.\u0275prov=(0,i.Yz7)({factory:M,token:e,providedIn:"root"}),e}();function M(){return new k((0,i.LFG)(_),(0,i.LFG)(u))}function C(e){return e.replace(/\/index.html$/,"")}var T=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),L=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}({}),S=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}({}),E=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}({}),z=function(e){return 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[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}({});function O(e,t){return I((0,i.cg1)(e)[i.wAp.DateFormat],t)}function x(e,t){return I((0,i.cg1)(e)[i.wAp.TimeFormat],t)}function R(e,t){return I((0,i.cg1)(e)[i.wAp.DateTimeFormat],t)}function D(e,t){var n=(0,i.cg1)(e),r=n[i.wAp.NumberSymbols][t];if(void 0===r){if(t===z.CurrencyDecimal)return n[i.wAp.NumberSymbols][z.Decimal];if(t===z.CurrencyGroup)return n[i.wAp.NumberSymbols][z.Group]}return r}var P=i.kL8;function N(e){if(!e[i.wAp.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(e[i.wAp.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function I(e,t){for(var n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function q(e){var t=_slicedToArray(e.split(":"),2);return{hours:+t[0],minutes:+t[1]}}var B=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,H={},Y=/((?:[^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]*)/,j=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}({}),F=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}({}),W=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}({});function U(e,t,n,i){var r=function(e){if(re(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){var t=_slicedToArray(e.split("-").map(function(e){return+e}),3),n=t[0],i=t[1],r=void 0===i?1:i,a=t[2];return K(n,r-1,void 0===a?1:a)}var o,s=parseFloat(e);if(!isNaN(e-s))return new Date(s);if(o=e.match(B))return function(e){var t=new Date(0),n=0,i=0,r=e[8]?t.setUTCFullYear:t.setFullYear,a=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),i=Number(e[9]+e[11])),r.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));var o=Number(e[4]||0)-n,s=Number(e[5]||0)-i,c=Number(e[6]||0),u=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return a.call(t,o,s,c,u),t}(o)}var c=new Date(e);if(!re(c))throw new Error('Unable to convert "'.concat(e,'" into a date'));return c}(e);t=Z(n,t)||t;for(var a,o=[];t;){if(!(a=Y.exec(t))){o.push(t);break}var s=(o=o.concat(a.slice(1))).pop();if(!s)break;t=s}var c=r.getTimezoneOffset();i&&(c=ie(i,c),r=function(e,t,n){var i=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(ie(t,i)-i))}(r,i));var u="";return o.forEach(function(e){var t=function(e){if(ne[e])return ne[e];var t;switch(e){case"G":case"GG":case"GGG":t=J(W.Eras,S.Abbreviated);break;case"GGGG":t=J(W.Eras,S.Wide);break;case"GGGGG":t=J(W.Eras,S.Narrow);break;case"y":t=V(F.FullYear,1,0,!1,!0);break;case"yy":t=V(F.FullYear,2,0,!0,!0);break;case"yyy":t=V(F.FullYear,3,0,!1,!0);break;case"yyyy":t=V(F.FullYear,4,0,!1,!0);break;case"Y":t=te(1);break;case"YY":t=te(2,!0);break;case"YYY":t=te(3);break;case"YYYY":t=te(4);break;case"M":case"L":t=V(F.Month,1,1);break;case"MM":case"LL":t=V(F.Month,2,1);break;case"MMM":t=J(W.Months,S.Abbreviated);break;case"MMMM":t=J(W.Months,S.Wide);break;case"MMMMM":t=J(W.Months,S.Narrow);break;case"LLL":t=J(W.Months,S.Abbreviated,L.Standalone);break;case"LLLL":t=J(W.Months,S.Wide,L.Standalone);break;case"LLLLL":t=J(W.Months,S.Narrow,L.Standalone);break;case"w":t=ee(1);break;case"ww":t=ee(2);break;case"W":t=ee(1,!0);break;case"d":t=V(F.Date,1);break;case"dd":t=V(F.Date,2);break;case"c":case"cc":t=V(F.Day,1);break;case"ccc":t=J(W.Days,S.Abbreviated,L.Standalone);break;case"cccc":t=J(W.Days,S.Wide,L.Standalone);break;case"ccccc":t=J(W.Days,S.Narrow,L.Standalone);break;case"cccccc":t=J(W.Days,S.Short,L.Standalone);break;case"E":case"EE":case"EEE":t=J(W.Days,S.Abbreviated);break;case"EEEE":t=J(W.Days,S.Wide);break;case"EEEEE":t=J(W.Days,S.Narrow);break;case"EEEEEE":t=J(W.Days,S.Short);break;case"a":case"aa":case"aaa":t=J(W.DayPeriods,S.Abbreviated);break;case"aaaa":t=J(W.DayPeriods,S.Wide);break;case"aaaaa":t=J(W.DayPeriods,S.Narrow);break;case"b":case"bb":case"bbb":t=J(W.DayPeriods,S.Abbreviated,L.Standalone,!0);break;case"bbbb":t=J(W.DayPeriods,S.Wide,L.Standalone,!0);break;case"bbbbb":t=J(W.DayPeriods,S.Narrow,L.Standalone,!0);break;case"B":case"BB":case"BBB":t=J(W.DayPeriods,S.Abbreviated,L.Format,!0);break;case"BBBB":t=J(W.DayPeriods,S.Wide,L.Format,!0);break;case"BBBBB":t=J(W.DayPeriods,S.Narrow,L.Format,!0);break;case"h":t=V(F.Hours,1,-12);break;case"hh":t=V(F.Hours,2,-12);break;case"H":t=V(F.Hours,1);break;case"HH":t=V(F.Hours,2);break;case"m":t=V(F.Minutes,1);break;case"mm":t=V(F.Minutes,2);break;case"s":t=V(F.Seconds,1);break;case"ss":t=V(F.Seconds,2);break;case"S":t=V(F.FractionalSeconds,1);break;case"SS":t=V(F.FractionalSeconds,2);break;case"SSS":t=V(F.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Q(j.Short);break;case"ZZZZZ":t=Q(j.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Q(j.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Q(j.Long);break;default:return null}return ne[e]=t,t}(e);u+=t?t(r,n,c):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function K(e,t,n){var i=new Date(0);return i.setFullYear(e,t,n),i.setHours(0,0,0),i}function Z(e,t){var n=function(e){return(0,i.cg1)(e)[i.wAp.LocaleId]}(e);if(H[n]=H[n]||{},H[n][t])return H[n][t];var r="";switch(t){case"shortDate":r=O(e,E.Short);break;case"mediumDate":r=O(e,E.Medium);break;case"longDate":r=O(e,E.Long);break;case"fullDate":r=O(e,E.Full);break;case"shortTime":r=x(e,E.Short);break;case"mediumTime":r=x(e,E.Medium);break;case"longTime":r=x(e,E.Long);break;case"fullTime":r=x(e,E.Full);break;case"short":var a=Z(e,"shortTime"),o=Z(e,"shortDate");r=G(R(e,E.Short),[a,o]);break;case"medium":var s=Z(e,"mediumTime"),c=Z(e,"mediumDate");r=G(R(e,E.Medium),[s,c]);break;case"long":var u=Z(e,"longTime"),l=Z(e,"longDate");r=G(R(e,E.Long),[u,l]);break;case"full":var h=Z(e,"fullTime"),d=Z(e,"fullDate");r=G(R(e,E.Full),[h,d])}return r&&(H[n][t]=r),r}function G(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(e,n){return null!=t&&n in t?t[n]:e})),e}function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,a="";(e<0||r&&e<=0)&&(r?e=1-e:(e=-e,a=n));for(var o=String(e);o.length2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(a,o){var s,c=function(e,t){switch(e){case F.FullYear:return t.getFullYear();case F.Month:return t.getMonth();case F.Date:return t.getDate();case F.Hours:return t.getHours();case F.Minutes:return t.getMinutes();case F.Seconds:return t.getSeconds();case F.FractionalSeconds:return t.getMilliseconds();case F.Day:return t.getDay();default:throw new Error('Unknown DateType value "'.concat(e,'".'))}}(e,a);if((n>0||c>-n)&&(c+=n),e===F.Hours)0===c&&-12===n&&(c=12);else if(e===F.FractionalSeconds)return s=t,X(c,3).substr(0,s);var u=D(o,z.MinusSign);return X(c,t,u,i,r)}}function J(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:L.Format,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(a,o){return function(e,t,n,r,a,o){switch(n){case W.Months:return function(e,t,n){var r=(0,i.cg1)(e),a=I([r[i.wAp.MonthsFormat],r[i.wAp.MonthsStandalone]],t);return I(a,n)}(t,a,r)[e.getMonth()];case W.Days:return function(e,t,n){var r=(0,i.cg1)(e),a=I([r[i.wAp.DaysFormat],r[i.wAp.DaysStandalone]],t);return I(a,n)}(t,a,r)[e.getDay()];case W.DayPeriods:var s=e.getHours(),c=e.getMinutes();if(o){var u=function(e){var t=(0,i.cg1)(e);return N(t),(t[i.wAp.ExtraData][2]||[]).map(function(e){return"string"==typeof e?q(e):[q(e[0]),q(e[1])]})}(t),l=function(e,t,n){var r=(0,i.cg1)(e);N(r);var a=I([r[i.wAp.ExtraData][0],r[i.wAp.ExtraData][1]],t)||[];return I(a,n)||[]}(t,a,r),h=u.findIndex(function(e){if(Array.isArray(e)){var t=_slicedToArray(e,2),n=t[0],i=t[1],r=s>=n.hours&&c>=n.minutes,a=s0?Math.floor(r/60):Math.ceil(r/60);switch(e){case j.Short:return(r>=0?"+":"")+X(o,2,a)+X(Math.abs(r%60),2,a);case j.ShortGMT:return"GMT"+(r>=0?"+":"")+X(o,1,a);case j.Long:return"GMT"+(r>=0?"+":"")+X(o,2,a)+":"+X(Math.abs(r%60),2,a);case j.Extended:return 0===i?"Z":(r>=0?"+":"")+X(o,2,a)+":"+X(Math.abs(r%60),2,a);default:throw new Error('Unknown zone width "'.concat(e,'"'))}}}function $(e){return K(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function ee(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,i){var r,a,o;if(t){var s=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,c=n.getDate();r=1+Math.floor((c+s)/7)}else{var u=$(n),l=(a=u.getFullYear(),o=K(a,0,1).getDay(),K(a,0,1+(o<=4?4:11)-o)),h=u.getTime()-l.getTime();r=1+Math.round(h/6048e5)}return X(r,e,D(i,z.MinusSign))}}function te(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,i){return X($(n).getFullYear(),e,D(i,z.MinusSign),t)}}var ne={};function ie(e,t){e=e.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function re(e){return e instanceof Date&&!isNaN(e.valueOf())}var ae=function e(){_classCallCheck(this,e)},oe=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).locale=e,i}return _createClass(n,[{key:"getPluralCategory",value:function(e,t){switch(P(t||this.locale)(e)){case T.Zero:return"zero";case T.One:return"one";case T.Two:return"two";case T.Few:return"few";case T.Many:return"many";default:return"other"}}}]),n}(ae);return e.\u0275fac=function(t){return new(t||e)(i.LFG(i.soG))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}();function se(e,t){t=encodeURIComponent(t);var n,i=_createForOfIteratorHelper(e.split(";"));try{for(i.s();!(n=i.n()).done;){var r=n.value,a=r.indexOf("="),o=_slicedToArray(-1==a?[r,""]:[r.slice(0,a),r.slice(a+1)],2),s=o[0],c=o[1];if(s.trim()===t)return decodeURIComponent(c)}}catch(u){i.e(u)}finally{i.f()}return null}var ce=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return _createClass(e,[{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&((0,i.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat((0,i.AaK)(e.item)));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.Y36(i.ZZ4),i.Y36(i.aQg),i.Y36(i.SBq),i.Y36(i.Qsj))},e.\u0275dir=i.lG2({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),ue=function(){function e(t,n,i,r){_classCallCheck(this,e),this.$implicit=t,this.ngForOf=n,this.index=i,this.count=r}return _createClass(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),le=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return _createClass(e,[{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(i){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,i,r){if(null==e.previousIndex){var a=t._viewContainer.createEmbeddedView(t._template,new ue(null,t._ngForOf,-1,-1),null===r?void 0:r),o=new he(e,a);n.push(o)}else if(null==r)t._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=t._viewContainer.get(i);t._viewContainer.move(s,r);var c=new he(e,s);n.push(c)}});for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:"mediumDate",i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(null==t||""===t||t!=t)return null;try{return U(t,n,r||this.locale,i)}catch(a){throw be(e,a.message)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.Y36(i.soG,16))},e.\u0275pipe=i.Yjl({name:"date",type:e,pure:!0}),e}(),Le=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({providers:[{provide:ae,useClass:oe}]}),e}(),Se="browser";function Ee(e){return e===Se}function ze(e){return"server"===e}var Oe=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275prov=(0,i.Yz7)({token:e,providedIn:"root",factory:function(){return new xe((0,i.LFG)(c),window)}}),e}(),xe=function(){function e(t,n){_classCallCheck(this,e),this.document=t,this.window=n,this.offset=function(){return[0,0]}}return _createClass(e,[{key:"setOffset",value:function(e){this.offset=Array.isArray(e)?function(){return e}:e}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}},{key:"scrollToPosition",value:function(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}},{key:"scrollToAnchor",value:function(e){if(this.supportsScrolling()){var t=function(e,t){var n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow))for(var i=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),r=i.currentNode;r;){var a=r.shadowRoot;if(a){var o=a.getElementById(t)||a.querySelector('[name="'.concat(t,'"]'));if(o)return o}r=i.nextNode()}return null}(this.document,e);t&&(this.scrollToElement(t),this.attemptFocus(t))}}},{key:"setHistoryScrollRestoration",value:function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}},{key:"scrollToElement",value:function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}},{key:"attemptFocus",value:function(e){return e.focus(),this.document.activeElement===e}},{key:"supportScrollRestoration",value:function(){try{if(!this.supportsScrolling())return!1;var e=Re(this.window.history)||Re(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(t){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}]),e}();function Re(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}var De=function e(){_classCallCheck(this,e)}},9063:function(e,t,n){"use strict";n.d(t,{TP:function(){return z},eN:function(){return S},JF:function(){return Y},WM:function(){return d},LE:function(){return m},Zn:function(){return C}});var i=n(1511),r=n(1572),a=n(878),o=n(8318),s=n(436),c=n(3835),u=n(9996),l=function e(){_classCallCheck(this,e)},h=function e(){_classCallCheck(this,e)},d=function(){function e(t){var n=this;_classCallCheck(this,e),this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){n.headers=new Map,t.split("\n").forEach(function(e){var t=e.indexOf(":");if(t>0){var i=e.slice(0,t),r=i.toLowerCase(),a=e.slice(t+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(a):n.headers.set(r,[a])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var i=t[e],r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(e,r))})}:this.headers=new Map}return _createClass(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var i=("a"===e.op?this.headers.get(t):void 0)||[];i.push.apply(i,_toConsumableArray(n)),this.headers.set(t,i);break;case"d":var r=e.value;if(r){var a=this.headers.get(t);if(!a)return;0===(a=a.filter(function(e){return-1===r.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,a)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}]),e}(),f=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"encodeKey",value:function(e){return p(e)}},{key:"encodeValue",value:function(e){return p(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function p(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function g(e){return"".concat(e)}var m=function(){function e(){var t,n,i,r=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_classCallCheck(this,e),this.updates=null,this.cloneFrom=null,this.encoder=a.encoder||new f,a.fromString){if(a.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(t=a.fromString,n=this.encoder,i=new Map,t.length>0&&t.replace(/^\?/,"").split("&").forEach(function(e){var t=e.indexOf("="),r=_slicedToArray(-1==t?[n.decodeKey(e),""]:[n.decodeKey(e.slice(0,t)),n.decodeValue(e.slice(t+1))],2),a=r[0],o=r[1],s=i.get(a)||[];s.push(o),i.set(a,s)}),i)}else a.fromObject?(this.map=new Map,Object.keys(a.fromObject).forEach(function(e){var t=a.fromObject[e];r.map.set(e,Array.isArray(t)?t:[t])})):this.map=null}return _createClass(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"appendAll",value:function(e){var t=[];return Object.keys(e).forEach(function(n){var i=e[n];Array.isArray(i)?i.forEach(function(e){t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:i,op:"a"})}),this.clone(t)}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(g(t.value)),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var i=e.map.get(t.param)||[],r=i.indexOf(g(t.value));-1!==r&&i.splice(r,1),i.length>0?e.map.set(t.param,i):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}]),e}(),v=function(){function e(){_classCallCheck(this,e),this.map=new Map}return _createClass(e,[{key:"set",value:function(e,t){return this.map.set(e,t),this}},{key:"get",value:function(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}},{key:"delete",value:function(e){return this.map.delete(e),this}},{key:"keys",value:function(){return this.map.keys()}}]),e}();function _(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function y(e){return"undefined"!=typeof Blob&&e instanceof Blob}function b(e){return"undefined"!=typeof FormData&&e instanceof FormData}var A=function(){function e(t,n,i,r){var a;if(_classCallCheck(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,a=r):a=i,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.context&&(this.context=a.context),a.params&&(this.params=a.params)),this.headers||(this.headers=new d),this.context||(this.context=new v),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},i=n.method||this.method,r=n.url||this.url,a=n.responseType||this.responseType,o=void 0!==n.body?n.body:this.body,s=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,c=void 0!==n.reportProgress?n.reportProgress:this.reportProgress,u=n.headers||this.headers,l=n.params||this.params,h=null!==(t=n.context)&&void 0!==t?t:this.context;return void 0!==n.setHeaders&&(u=Object.keys(n.setHeaders).reduce(function(e,t){return e.set(t,n.setHeaders[t])},u)),n.setParams&&(l=Object.keys(n.setParams).reduce(function(e,t){return e.set(t,n.setParams[t])},l)),new e(i,r,o,{params:l,headers:u,context:h,reportProgress:c,responseType:a,withCredentials:s})}}]),e}(),w=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),k=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";_classCallCheck(this,e),this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},M=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(e=t.call(this,i)).type=w.ResponseHeader,e}return _createClass(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(k),C=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(e=t.call(this,i)).type=w.Response,e.body=void 0!==i.body?i.body:null,e}return _createClass(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(k),T=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),i.error=e.error||null,i}return n}(k);function L(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var S=function(){var e=function(){function e(t){_classCallCheck(this,e),this.handler=t}return _createClass(e,[{key:"request",value:function(e,t){var n,i,r,o=this,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e instanceof A?n=e:(i=l.headers instanceof d?l.headers:new d(l.headers),l.params&&(r=l.params instanceof m?l.params:new m({fromObject:l.params})),n=new A(e,t,void 0!==l.body?l.body:null,{headers:i,context:l.context,params:r,reportProgress:l.reportProgress,responseType:l.responseType||"json",withCredentials:l.withCredentials}));var h=(0,a.of)(n).pipe((0,s.b)(function(e){return o.handler.handle(e)}));if(e instanceof A||"events"===l.observe)return h;var f=h.pipe((0,c.h)(function(e){return e instanceof C}));switch(l.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return f.pipe((0,u.U)(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return f.pipe((0,u.U)(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return f.pipe((0,u.U)(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return f.pipe((0,u.U)(function(e){return e.body}))}case"response":return f;default:throw new Error("Unreachable: unhandled observe type ".concat(l.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new m).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,L(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,L(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,L(n,t))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(l))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),E=function(){function e(t,n){_classCallCheck(this,e),this.next=t,this.interceptor=n}return _createClass(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),z=new r.OlP("HTTP_INTERCEPTORS"),O=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),x=/^\)\]\}',?\n/,R=function(){var e=function(){function e(t){_classCallCheck(this,e),this.xhrFactory=t}return _createClass(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new o.y(function(n){var i=t.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach(function(e,t){return i.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var r=e.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(e.responseType){var a=e.responseType.toLowerCase();i.responseType="json"!==a?a:"text"}var o=e.serializeBody(),s=null,c=function(){if(null!==s)return s;var t=1223===i.status?204:i.status,n=i.statusText||"OK",r=new d(i.getAllResponseHeaders()),a=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new M({headers:r,status:t,statusText:n,url:a})},u=function(){var t=c(),r=t.headers,a=t.status,o=t.statusText,s=t.url,u=null;204!==a&&(u=void 0===i.response?i.responseText:i.response),0===a&&(a=u?200:0);var l=a>=200&&a<300;if("json"===e.responseType&&"string"==typeof u){var h=u;u=u.replace(x,"");try{u=""!==u?JSON.parse(u):null}catch(d){u=h,l&&(l=!1,u={error:d,text:u})}}l?(n.next(new C({body:u,headers:r,status:a,statusText:o,url:s||void 0})),n.complete()):n.error(new T({error:u,headers:r,status:a,statusText:o,url:s||void 0}))},l=function(e){var t=c().url,r=new T({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:t||void 0});n.error(r)},h=!1,f=function(t){h||(n.next(c()),h=!0);var r={type:w.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(r.total=t.total),"text"===e.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},p=function(e){var t={type:w.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return i.addEventListener("load",u),i.addEventListener("error",l),i.addEventListener("timeout",l),i.addEventListener("abort",l),e.reportProgress&&(i.addEventListener("progress",f),null!==o&&i.upload&&i.upload.addEventListener("progress",p)),i.send(o),n.next({type:w.Sent}),function(){i.removeEventListener("error",l),i.removeEventListener("abort",l),i.removeEventListener("load",u),i.removeEventListener("timeout",l),e.reportProgress&&(i.removeEventListener("progress",f),null!==o&&i.upload&&i.upload.removeEventListener("progress",p)),i.readyState!==i.DONE&&i.abort()}})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(i.JF))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),D=new r.OlP("XSRF_COOKIE_NAME"),P=new r.OlP("XSRF_HEADER_NAME"),N=function e(){_classCallCheck(this,e)},I=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return _createClass(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,i.Mx)(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(i.K0),r.LFG(r.Lbi),r.LFG(D))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),q=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.tokenService=t,this.headerName=n}return _createClass(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var i=this.tokenService.getToken();return null===i||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(N),r.LFG(P))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),B=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.backend=t,this.injector=n,this.chain=null}return _createClass(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(z,[]);this.chain=t.reduceRight(function(e,t){return new E(e,t)},this.backend)}return this.chain.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(h),r.LFG(r.zs3))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),H=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:q,useClass:O}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:D,useValue:t.cookieName}:[],t.headerName?{provide:P,useValue:t.headerName}:[]]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({providers:[q,{provide:z,useExisting:q,multi:!0},{provide:N,useClass:I},{provide:D,useValue:"XSRF-TOKEN"},{provide:P,useValue:"X-XSRF-TOKEN"}]}),e}(),Y=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({providers:[S,{provide:l,useClass:B},R,{provide:h,useExisting:R}],imports:[[H.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}()},1572:function(e,t,n){"use strict";n.d(t,{deG:function(){return tn},tb:function(){return Qc},AFp:function(){return Zc},ip1:function(){return Uc},CZH:function(){return Kc},hGG:function(){return Wu},z2F:function(){return Du},sBO:function(){return Ys},Sil:function(){return uu},_Vd:function(){return hs},EJc:function(){return tu},SBq:function(){return gs},qLn:function(){return Ai},vpe:function(){return Cc},gxx:function(){return ha},tBr:function(){return Mn},XFs:function(){return z},OlP:function(){return en},zs3:function(){return Ca},ZZ4:function(){return Ds},aQg:function(){return Ns},soG:function(){return eu},YKP:function(){return Vs},v3s:function(){return Nu},h0i:function(){return Xs},PXZ:function(){return Eu},R0b:function(){return du},FiY:function(){return Cn},Lbi:function(){return Jc},g9A:function(){return Vc},n_E:function(){return Lc},Qsj:function(){return _s},FYo:function(){return vs},JOm:function(){return Ti},Tiy:function(){return bs},q3G:function(){return di},tp0:function(){return Tn},EAV:function(){return Bu},Rgc:function(){return Ks},dDg:function(){return yu},DyG:function(){return nn},GfV:function(){return As},s_b:function(){return Qs},ifc:function(){return P},eFA:function(){return zu},G48:function(){return Lu},Gpc:function(){return f},f3M:function(){return yn},X6Q:function(){return Tu},_c5:function(){return ju},VLi:function(){return Au},c2e:function(){return $c},zSh:function(){return fa},wAp:function(){return $o},vHH:function(){return m},EiD:function(){return li},mCW:function(){return Zn},qzn:function(){return Nn},JVY:function(){return qn},pB0:function(){return jn},eBb:function(){return Hn},L6k:function(){return Bn},LAX:function(){return Yn},cg1:function(){return Vo},Tjo:function(){return Yu},kL8:function(){return Jo},yhl:function(){return In},dqk:function(){return H},sIi:function(){return Pa},CqO:function(){return ao},QGY:function(){return io},F4k:function(){return ro},RDi:function(){return we},AaK:function(){return l},z3N:function(){return Pn},qOj:function(){return La},TTD:function(){return ve},_Bn:function(){return cs},xp6:function(){return dr},uIk:function(){return Ha},Q2q:function(){return Fa},Tol:function(){return Lo},Gre:function(){return Wo},ekj:function(){return To},Suo:function(){return Bc},Xpm:function(){return J},lG2:function(){return re},Yz7:function(){return b},cJS:function(){return A},oAB:function(){return te},Yjl:function(){return ae},Y36:function(){return Ka},_UZ:function(){return Qa},GkF:function(){return to},BQk:function(){return eo},ynx:function(){return $a},qZA:function(){return Ja},TgZ:function(){return Va},EpF:function(){return no},n5z:function(){return Vt},Ikx:function(){return Uo},LFG:function(){return _n},$8M:function(){return Qt},$Z:function(){return Za},NdJ:function(){return oo},CRH:function(){return Hc},kcU:function(){return gt},O4$:function(){return pt},oxw:function(){return ho},ALo:function(){return _c},lcZ:function(){return yc},xi3:function(){return bc},Dn7:function(){return Ac},Hsn:function(){return go},F$t:function(){return po},Q6J:function(){return Ga},s9C:function(){return mo},MGl:function(){return vo},hYB:function(){return _o},DdM:function(){return dc},VKq:function(){return fc},WLB:function(){return pc},iGM:function(){return Ic},MAs:function(){return Ua},pYS:function(){return Mi},Jf7:function(){return ki},CHM:function(){return Ye},oJD:function(){return fi},LSH:function(){return pi},kYT:function(){return ne},Udp:function(){return Co},WFA:function(){return so},d8E:function(){return Ko},YNc:function(){return Wa},W1O:function(){return Wc},_uU:function(){return Bo},Oqu:function(){return Ho},hij:function(){return Yo},AsE:function(){return jo},xDo:function(){return Fo},Gf:function(){return qc}});var i=n(5959),r=n(7570),a=n(8318),o=n(1906),s=n(1055);function c(e){for(var t in e)if(e[t]===c)return t;throw Error("Could not find renamed property on target object.")}function u(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function l(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(l).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function h(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var d=c({__forward_ref__:c});function f(e){return e.__forward_ref__=f,e.toString=function(){return l(this())},e}function p(e){return g(e)?e():e}function g(e){return"function"==typeof e&&e.hasOwnProperty(d)&&e.__forward_ref__===f}var m=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,function(e,t){return"".concat(e?"NG0".concat(e,": "):"").concat(t)}(e,i))).code=e,r}return n}(_wrapNativeSuper(Error));function v(e){return"string"==typeof e?e:null==e?"":String(e)}function _(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():v(e)}function y(e,t){var n=t?" in ".concat(t):"";throw new m("201","No provider for ".concat(_(e)," found").concat(n))}function b(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function A(e){return{providers:e.providers||[],imports:e.imports||[]}}function w(e){return k(e,T)||k(e,S)}function k(e,t){return e.hasOwnProperty(t)?e[t]:null}function M(e){return e&&(e.hasOwnProperty(L)||e.hasOwnProperty(E))?e[L]:null}var C,T=c({"\u0275prov":c}),L=c({"\u0275inj":c}),S=c({ngInjectableDef:c}),E=c({ngInjectorDef:c}),z=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function O(e){var t=C;return C=e,t}function x(e,t,n){var i=w(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&z.Optional?null:void 0!==t?t:void y(l(e),"Injector")}function R(e){return{toString:e}.toString()}var D=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),P=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),N="undefined"!=typeof globalThis&&globalThis,I="undefined"!=typeof window&&window,q="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,B="undefined"!=typeof global&&global,H=N||B||I||q,Y={},j=[],F=c({"\u0275cmp":c}),W=c({"\u0275dir":c}),U=c({"\u0275pipe":c}),K=c({"\u0275mod":c}),Z=c({"\u0275loc":c}),G=c({"\u0275fac":c}),X=c({__NG_ELEMENT_ID__:c}),V=0;function J(e){return R(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===D.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||j,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||P.Emulated,id:"c",styles:e.styles||j,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,a=e.pipes;return n.id+=V++,n.inputs=ie(e.inputs,t),n.outputs=ie(e.outputs),r&&r.forEach(function(e){return e(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(Q)}:null,n.pipeDefs=a?function(){return("function"==typeof a?a():a).map($)}:null,n})}function Q(e){return oe(e)||function(e){return e[W]||null}(e)}function $(e){return function(e){return e[U]||null}(e)}var ee={};function te(e){return R(function(){var t={type:e.type,bootstrap:e.bootstrap||j,declarations:e.declarations||j,imports:e.imports||j,exports:e.exports||j,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(ee[e.id]=e.type),t})}function ne(e,t){return R(function(){var n=se(e,!0);n.declarations=t.declarations||j,n.imports=t.imports||j,n.exports=t.exports||j})}function ie(e,t){if(null==e)return Y;var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i],a=r;Array.isArray(r)&&(a=r[1],r=r[0]),n[r]=i,t&&(t[r]=a)}return n}var re=J;function ae(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function oe(e){return e[F]||null}function se(e,t){var n=e[K]||null;if(!n&&!0===t)throw new Error("Type ".concat(l(e)," does not have '\u0275mod' property."));return n}function ce(e){return Array.isArray(e)&&"object"==typeof e[1]}function ue(e){return Array.isArray(e)&&!0===e[1]}function le(e){return 0!=(8&e.flags)}function he(e){return 2==(2&e.flags)}function de(e){return 1==(1&e.flags)}function fe(e){return null!==e.template}function pe(e,t){return e.hasOwnProperty(G)?e[G]:null}var ge,me=function(){function e(t,n,i){_classCallCheck(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=i}return _createClass(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function ve(){return _e}function _e(e){return e.type.prototype.ngOnChanges&&(e.setInput=be),ye}function ye(){var e=Ae(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===Y)e.previous=t;else for(var i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function be(e,t,n,i){var r=Ae(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:Y,current:null}),a=r.current||(r.current={}),o=r.previous,s=this.declaredInputs[n],c=o[s];a[s]=new me(c&&c.currentValue,t,o===Y),e[i]=t}function Ae(e){return e.__ngSimpleChanges__||null}function we(e){ge=e}function ke(){return void 0!==ge?ge:"undefined"!=typeof document?document:void 0}function Me(e){return!!e.listen}ve.ngInherit=!0;var Ce={createRenderer:function(e,t){return ke()}};function Te(e){for(;Array.isArray(e);)e=e[0];return e}function Le(e,t){return Te(t[e])}function Se(e,t){return Te(t[e.index])}function Ee(e,t){return e.data[t]}function ze(e,t){return e[t]}function Oe(e,t){var n=t[e];return ce(n)?n:n[0]}function xe(e){return 4==(4&e[2])}function Re(e){return 128==(128&e[2])}function De(e,t){return null==t?null:e[t]}function Pe(e){e[18]=0}function Ne(e,t){e[5]+=t;for(var n=e,i=e[3];null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}var Ie={lFrame:st(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function qe(){return Ie.bindingsEnabled}function Be(){return Ie.lFrame.lView}function He(){return Ie.lFrame.tView}function Ye(e){return Ie.lFrame.contextLView=e,e[8]}function je(){for(var e=Fe();null!==e&&64===e.type;)e=e.parent;return e}function Fe(){return Ie.lFrame.currentTNode}function We(e,t){var n=Ie.lFrame;n.currentTNode=e,n.isParent=t}function Ue(){return Ie.lFrame.isParent}function Ke(){Ie.lFrame.isParent=!1}function Ze(){return Ie.isInCheckNoChangesMode}function Ge(e){Ie.isInCheckNoChangesMode=e}function Xe(){var e=Ie.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ve(){return Ie.lFrame.bindingIndex}function Je(){return Ie.lFrame.bindingIndex++}function Qe(e){var t=Ie.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function $e(e){Ie.lFrame.currentDirectiveIndex=e}function et(e){var t=Ie.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function tt(){return Ie.lFrame.currentQueryIndex}function nt(e){Ie.lFrame.currentQueryIndex=e}function it(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function rt(e,t,n){if(n&z.SkipSelf){for(var i=t,r=e;!(null!==(i=i.parent)||n&z.Host||(i=it(r),null===i)||(r=r[15],10&i.type)););if(null===i)return!1;t=i,e=r}var a=Ie.lFrame=ot();return a.currentTNode=t,a.lView=e,!0}function at(e){var t=ot(),n=e[1];Ie.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function ot(){var e=Ie.lFrame,t=null===e?null:e.child;return null===t?st(e):t}function st(e){var t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function ct(){var e=Ie.lFrame;return Ie.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var ut=ct;function lt(){var e=ct();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function ht(){return Ie.lFrame.selectedIndex}function dt(e){Ie.lFrame.selectedIndex=e}function ft(){var e=Ie.lFrame;return Ee(e.tView,e.selectedIndex)}function pt(){Ie.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function gt(){Ie.lFrame.currentNamespace=null}function mt(e,t){for(var n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[s]<0&&(e[18]+=65536),(o>11>16&&(3&e[2])===t){e[2]+=2048;try{a.call(o)}finally{}}}else try{a.call(o)}finally{}}var wt=function e(t,n,i){_classCallCheck(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function kt(e,t,n){for(var i=Me(e),r=0;rt){o=a-1;break}}}for(;a>16,i=t;n>0;)i=i[15],n--;return i}var Ot=!0;function xt(e){var t=Ot;return Ot=e,t}var Rt=0;function Dt(e,t){var n=Nt(e,t);if(-1!==n)return n;var i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,Pt(i.data,e),Pt(t,null),Pt(i.blueprint,null));var r=It(e,t),a=e.injectorIndex;if(St(r))for(var o=Et(r),s=zt(r,t),c=s[1].data,u=0;u<8;u++)t[a+u]=s[o+u]|c[o+u];return t[a+8]=r,a}function Pt(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Nt(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function It(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,i=null,r=t;null!==r;){var a=r[1],o=a.type;if(null===(i=2===o?a.declTNode:1===o?r[6]:null))return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function qt(e,t,n){!function(e,t,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(X)&&(i=n[X]),null==i&&(i=n[X]=Rt++);var r=255&i;t.data[e+(r>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:z.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==e){var a=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(X)?e[X]:void 0;return"number"==typeof t?t>=0?255&t:Ft:t}(n);if("function"==typeof a){if(!rt(t,e,i))return i&z.Host?Bt(r,n,i):Ht(t,n,i,r);try{var o=a(i);if(null!=o||i&z.Optional)return o;y(n)}finally{ut()}}else if("number"==typeof a){var s=null,c=Nt(e,t),u=-1,l=i&z.Host?t[16][6]:null;for((-1===c||i&z.SkipSelf)&&(-1!==(u=-1===c?It(e,t):t[c+8])&&Gt(i,!1)?(s=t[1],c=Et(u),t=zt(u,t)):c=-1);-1!==c;){var h=t[1];if(Zt(a,c,h.data)){var d=Wt(c,t,n,s,i,l);if(d!==jt)return d}-1!==(u=t[c+8])&&Gt(i,t[1].data[c+8]===l)&&Zt(a,c,t)?(s=h,c=Et(u),t=zt(u,t)):c=-1}}}return Ht(t,n,i,r)}var jt={};function Ft(){return new Xt(je(),Be())}function Wt(e,t,n,i,r,a){var o=t[1],s=o.data[e+8],c=Ut(s,o,n,null==i?he(s)&&Ot:i!=o&&0!=(3&s.type),r&z.Host&&a===s);return null!==c?Kt(t,o,c,s):jt}function Ut(e,t,n,i,r){for(var a=e.providerIndexes,o=t.data,s=1048575&a,c=e.directiveStart,u=a>>20,l=r?s+u:e.directiveEnd,h=i?s:s+u;h=c&&d.type===n)return h}if(r){var f=o[c];if(f&&fe(f)&&f.type===n)return c}return null}function Kt(e,t,n,i){var r=e[n],a=t.data;if(r instanceof wt){var o=r;o.resolving&&function(e,t){throw new m("200","Circular dependency in DI detected for ".concat(e))}(_(a[n]));var s=xt(o.canSeeViewProviders);o.resolving=!0;var c=o.injectImpl?O(o.injectImpl):null;rt(e,i,z.Default);try{r=e[n]=o.factory(void 0,a,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){var i=t.type.prototype,r=i.ngOnChanges,a=i.ngOnInit,o=i.ngDoCheck;if(r){var s=_e(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}a&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,a),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,a[n],t)}finally{null!==c&&O(c),xt(s),o.resolving=!1,ut()}}return r}function Zt(e,t,n){return!!(n[t+(e>>5)]&1<=e.length?e.push(n):e.splice(t,0,n)}function sn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function cn(e,t){for(var n=[],i=0;i=0?e[1|i]=n:function(e,t,n,i){var r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i=~i,t,n),i}function ln(e,t){var n=hn(e,t);if(n>=0)return e[1|n]}function hn(e,t){return function(e,t,n){for(var i=0,r=e.length>>1;r!==i;){var a=i+(r-i>>1),o=e[a<<1];if(t===o)return a<<1;o>t?r=a:i=a+1}return~(r<<1)}(e,t)}var dn,fn={},pn=/\n/gm,gn=c({provide:String,useValue:c});function mn(e){var t=dn;return dn=e,t}function vn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z.Default;if(void 0===dn)throw new Error("inject() must be called from an injection context");return null===dn?x(e,void 0,t):dn.get(e,t&z.Optional?null:void 0,t)}function _n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z.Default;return(C||vn)(p(e),t)}var yn=_n;function bn(e){for(var t=[],n=0;n"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();ti.hasOwnProperty(t)&&!Jn.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(ui(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML));return t}}]),e}(),si=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ci=/([^\#-~ |!])/g;function ui(e){return e.replace(/&/g,"&").replace(si,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(ci,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function li(e,t){var n=null;try{Vn=Vn||function(e){var t=new Wn(e);return function(){try{return!!(new window.DOMParser).parseFromString(Ln(""),"text/html")}catch(e){return!1}}()?new Fn(t):t}(e);var i=t?String(t):"";n=Vn.getInertBodyElement(i);var r=5,a=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=a,a=n.innerHTML,n=Vn.getInertBodyElement(i)}while(i!==a);return Ln((new oi).sanitizeChildren(hi(n)||n))}finally{if(n)for(var o=hi(n)||n;o.firstChild;)o.removeChild(o.firstChild)}}function hi(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var di=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function fi(e){var t=gi();return t?Sn(t.sanitize(di.HTML,e)||""):Nn(e,"HTML")?Sn(Pn(e)):li(ke(),v(e))}function pi(e){var t=gi();return t?t.sanitize(di.URL,e)||"":Nn(e,"URL")?Pn(e):Zn(v(e))}function gi(){var e=Be();return e&&e[12]}function mi(e,t){e.__ngContext__=t}function vi(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function _i(e){return e.ngDebugContext}function yi(e){return e.ngOriginalError}function bi(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i0&&(e[i-1][4]=r[4]);var o=sn(e,10+t);Vi(r[1],n=r,n[11],2,null,null),n[0]=null,n[6]=null;var s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function Ni(e,t){if(!(256&t[2])){var n=t[11];Me(n)&&n.destroyNode&&Vi(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Ii(e[1],e);for(;t;){var n=null;if(ce(t))n=t[13];else{var i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)ce(t)&&Ii(t[1],t),t=t[3];null===t&&(t=e),ce(t)&&Ii(t[1],t),n=t&&t[4]}t=n}}(t)}}function Ii(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var i=0;i=0?i[r=u]():i[r=-u].unsubscribe(),a+=2}else{var l=i[r=n[a+1]];n[a].call(l)}if(null!==i){for(var h=r+1;ha?"":r[l+1].toLowerCase();var d=8&i?h:null;if(d&&-1!==er(d,u,0)||2&i&&u!==h){if(ar(i))return!1;o=!0}}}}else{if(!o&&!ar(i)&&!ar(c))return!1;if(o&&ar(c))continue;o=!1,i=c|1&i}}return ar(i)||o}function ar(e){return 0==(1&e)}function or(e,t,n,i){if(null===t)return-1;var r=0;if(i||!n){for(var a=!1;r-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],i=0;i0?'="'+s+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""===r||ar(o)||(t+=ur(a,r),r=""),i=o,a=a||!ar(i);n++}return""!==r&&(t+=ur(a,r)),t}var hr={};function dr(e){fr(He(),Be(),ht()+e,Ze())}function fr(e,t,n,i){if(!i)if(3==(3&t[2])){var r=e.preOrderCheckHooks;null!==r&&vt(t,r,n)}else{var a=e.preOrderHooks;null!==a&&_t(t,a,0,n)}dt(n)}function pr(e,t){return e<<17|t<<2}function gr(e){return e>>17&32767}function mr(e){return 2|e}function vr(e){return(131068&e)>>2}function _r(e,t){return-131069&e|t<<2}function yr(e){return 1|e}function br(e,t){var n=e.contentQueries;if(null!==n)for(var i=0;i20&&fr(e,t,20,Ze()),n(i,r)}finally{dt(a)}}function Sr(e,t,n){if(le(t))for(var i=t.directiveEnd,r=t.directiveStart;r2&&void 0!==arguments[2]?arguments[2]:Se,i=t.localNames;if(null!==i)for(var r=t.index+1,a=0;a0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=c&&s.push(c),s.push(i,r,o)}}function qr(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Br(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Hr(e,t,n){if(n){if(t.exportAs)for(var i=0;i0&&Xr(n)}}function Xr(e){for(var t=Ei(e);null!==t;t=zi(t))for(var n=10;n0&&Xr(i)}var a=e[1].components;if(null!==a)for(var o=0;o0&&Xr(s)}}function Vr(e,t){var n=Oe(t,e),i=n[1];!function(e,t){for(var n=t.length;n1&&void 0!==arguments[1]?arguments[1]:fn;if(t===fn){var n=new Error("NullInjectorError: No provider for ".concat(l(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),fa=new en("Set Injector scope."),pa={},ga={};function ma(){return void 0===la&&(la=new da),la}function va(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new _a(e,n,t||ma(),i)}var _a=function(){function e(t,n,i){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var o=[];n&&an(n,function(e){return r.processProvider(e,t,n)}),an([t],function(e){return r.processInjectorType(e,[],o)}),this.records.set(ha,Aa(void 0,this));var s=this.records.get(fa);this.scope=null!=s?s.value:null,this.source=a||("object"==typeof t?null:l(t))}return _createClass(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fn,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:z.Default;this.assertNotDestroyed();var i,r=mn(this);try{if(!(n&z.SkipSelf)){var a=this.records.get(e);if(void 0===a){var o=("function"==typeof(i=e)||"object"==typeof i&&i instanceof en)&&w(e);a=o&&this.injectableDefInScope(o)?Aa(ya(e),pa):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(n&z.Self?ma():this.parent).get(e,t=n&z.Optional&&t===fn?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(l(e)),r)throw s;return function(e,t,n,i){var r=e.ngTempTokenPath;throw t.__source&&r.unshift(t.__source),e.message=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var r=l(t);if(Array.isArray(t))r=t.map(l).join(" -> ");else if("object"==typeof t){var a=[];for(var o in t)if(t.hasOwnProperty(o)){var s=t[o];a.push(o+":"+("string"==typeof s?JSON.stringify(s):l(s)))}r="{".concat(a.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(e.replace(pn,"\n "))}("\n"+e.message,r,"R3InjectorError",i),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(s,e,0,this.source)}throw s}finally{mn(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(l(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var i=this;if(!(e=p(e)))return!1;var r=M(e),a=null==r&&e.ngModule||void 0,o=void 0===a?e:a,s=-1!==n.indexOf(o);if(void 0!==a&&(r=M(a)),null==r)return!1;if(null!=r.imports&&!s){var c;n.push(o);try{an(r.imports,function(e){i.processInjectorType(e,t,n)&&(void 0===c&&(c=[]),c.push(e))})}finally{}if(void 0!==c)for(var u=function(e){var t=c[e],n=t.ngModule,r=t.providers;an(r,function(e){return i.processProvider(e,n,r||j)})},l=0;l0){var n=cn(t,"?");throw new Error("Can't resolve all parameters for ".concat(l(e),": (").concat(n.join(", "),")."))}var i=function(e){var t=e&&(e[T]||e[S]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "').concat(n,'" class.')),t}return null}(e);return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function ba(e,t,n){var i,r;if(ka(e)){var a=p(e);return pe(a)||ya(a)}if(wa(e))i=function(){return p(e.useValue)};else if((r=e)&&r.useFactory)i=function(){return e.useFactory.apply(e,_toConsumableArray(bn(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))i=function(){return _n(p(e.useExisting))};else{var o=p(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return pe(o)||ya(o);i=function(){return _construct(o,_toConsumableArray(bn(e.deps)))}}return i}function Aa(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function wa(e){return null!==e&&"object"==typeof e&&gn in e}function ka(e){return"function"==typeof e}var Ma=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,r=va(e,t,n,i);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)},Ca=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?Ma(e,t,""):Ma(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=fn,e.NULL=new da,e.\u0275prov=b({token:e,providedIn:"any",factory:function(){return _n(ha)}}),e.__NG_ELEMENT_ID__=-1,e}();function Ta(e,t){mt(vi(e)[1],je())}function La(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,i=[e];t;){var r=void 0;if(fe(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);var a=e;a.inputs=Sa(e.inputs),a.declaredInputs=Sa(e.declaredInputs),a.outputs=Sa(e.outputs);var o=r.hostBindings;o&&Oa(e,o);var s=r.viewQuery,c=r.contentQueries;if(s&&Ea(e,s),c&&za(e,c),u(e.inputs,r.inputs),u(e.declaredInputs,r.declaredInputs),u(e.outputs,r.outputs),fe(r)&&r.data.animation){var l=e.data;l.animation=(l.animation||[]).concat(r.data.animation)}}var h=r.features;if(h)for(var d=0;d=0;i--){var r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Tt(r.hostAttrs,n=Tt(n,r.hostAttrs))}}(i)}function Sa(e){return e===Y?{}:e===j?[]:e}function Ea(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,i){t(e,i),n(e,i)}:t}function za(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,i,r){t(e,i,r),n(e,i,r)}:t}function Oa(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,i){t(e,i),n(e,i)}:t}var xa=null;function Ra(){if(!xa){var e=H.Symbol;if(e&&e.iterator)xa=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:z.Default,n=Be();return null===n?_n(e,t):Yt(je(),n,p(e),t)}function Za(){throw new Error("invalid")}function Ga(e,t,n){var i=Be();return qa(i,Je(),t)&&Pr(He(),ft(),i,e,t,i[11],n,!1),Ga}function Xa(e,t,n,i,r){var a=r?"class":"style";sa(e,n,t.inputs[a],a,i)}function Va(e,t,n,i){var r=Be(),a=He(),o=20+e,s=r[11],c=r[o]=Ri(s,t,Ie.lFrame.currentNamespace),u=a.firstCreatePass?function(e,t,n,i,r,a,o){var s=t.consts,c=wr(t,e,2,r,De(s,a));return Nr(t,n,c,De(s,o)),null!==c.attrs&&ua(c,c.attrs,!1),null!==c.mergedAttrs&&ua(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(o,a,r,0,t,n,i):a.data[o];We(u,!0);var l=u.mergedAttrs;null!==l&&kt(s,c,l);var h=u.classes;null!==h&&$i(s,c,h);var d=u.styles;null!==d&&Qi(s,c,d),64!=(64&u.flags)&&Ui(a,r,c,u),0===Ie.lFrame.elementDepthCount&&mi(c,r),Ie.lFrame.elementDepthCount++,de(u)&&(Er(a,r,u),Sr(a,u,r)),null!==i&&zr(r,u)}function Ja(){var e=je();Ue()?Ke():We(e=e.parent,!1);var t=e;Ie.lFrame.elementDepthCount--;var n=He();n.firstCreatePass&&(mt(n,e),le(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Xa(n,t,Be(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Xa(n,t,Be(),t.stylesWithoutHost,!1)}function Qa(e,t,n,i){Va(e,t,n,i),Ja()}function $a(e,t,n){var i=Be(),r=He(),a=e+20,o=r.firstCreatePass?function(e,t,n,i,r){var a=t.consts,o=De(a,i),s=wr(t,e,8,"ng-container",o);return null!==o&&ua(s,o,!0),Nr(t,n,s,De(a,r)),null!==t.queries&&t.queries.elementStart(t,s),s}(a,r,i,t,n):r.data[a];We(o,!0);var s=i[a]=i[11].createComment("");Ui(r,i,s,o),mi(s,i),de(o)&&(Er(r,i,o),Sr(r,o,i)),null!=n&&zr(i,o)}function eo(){var e=je(),t=He();Ue()?Ke():We(e=e.parent,!1),t.firstCreatePass&&(mt(t,e),le(e)&&t.queries.elementEnd(e))}function to(e,t,n){$a(e,t,n),eo()}function no(){return Be()}function io(e){return!!e&&"function"==typeof e.then}function ro(e){return!!e&&"function"==typeof e.subscribe}var ao=ro;function oo(e,t,n,i){var r=Be(),a=He(),o=je();return co(a,r,r[11],o,e,t,!!n,i),oo}function so(e,t){var n=je(),i=Be(),r=He();return co(r,i,aa(et(r.data),n,i),n,e,t,!1),so}function co(e,t,n,i,r,a,o,s){var c=de(i),u=e.firstCreatePass&&ra(e),l=ia(t),h=!0;if(3&i.type||s){var d=Se(i,t),f=s?s(d):d,p=l.length,g=s?function(e){return s(Te(e[i.index]))}:i.index;if(Me(n)){var m=null;if(!s&&c&&(m=function(e,t,n,i){var r=e.cleanup;if(null!=r)for(var a=0;ac?s[c]:null}"string"==typeof o&&(a+=2)}return null}(e,t,r,i.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=a,m.__ngLastListenerFn__=a,h=!1;else{a=lo(i,t,0,a,!1);var v=n.listen(f,r,a);l.push(a,v),u&&u.push(r,g,p,p+1)}}else a=lo(i,t,0,a,!0),f.addEventListener(r,a,o),l.push(a),u&&u.push(r,g,p,o)}else a=lo(i,t,0,a,!1);var _,y=i.outputs;if(h&&null!==y&&(_=y[r])){var b=_.length;if(b)for(var A=0;A0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(Ie.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Ie.lFrame.contextLView))[8]}(e)}function fo(e,t){for(var n=null,i=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=Be(),r=He(),a=wr(r,20+e,16,null,n||null);null===a.projection&&(a.projection=t),Ke(),64!=(64&a.flags)&&function(e,t,n){Ji(t[11],0,t,n,qi(e,n,t),Fi(n.parent||t[6],n,t))}(r,i,a)}function mo(e,t,n){return vo(e,"",t,"",n),mo}function vo(e,t,n,i,r){var a=Be(),o=Ya(a,t,n,i);return o!==hr&&Pr(He(),ft(),a,e,o,a[11],r,!1),vo}function _o(e,t,n,i,r,a,o){var s=Be(),c=ja(s,t,n,i,r,a);return c!==hr&&Pr(He(),ft(),s,e,c,s[11],o,!1),_o}function yo(e,t,n,i,r){for(var a=e[n+1],o=null===t,s=i?gr(a):vr(a),c=!1;0!==s&&(!1===c||o);){var u=e[s+1];bo(e[s],t)&&(c=!0,e[s+1]=i?yr(u):mr(u)),s=i?gr(u):vr(u)}c&&(e[n+1]=i?mr(a):yr(a))}function bo(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&hn(e,t)>=0}var Ao={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function wo(e){return e.substring(Ao.key,Ao.keyEnd)}function ko(e,t){var n=Ao.textEnd;return n===t?-1:(t=Ao.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,Ao.key=t,n),Mo(e,t,n))}function Mo(e,t,n){for(;t=0;n=ko(t,n))un(e,wo(t),!0)}function Eo(e,t,n,i){var r=Be(),a=He(),o=Qe(2);a.firstUpdatePass&&xo(a,e,o,i),t!==hr&&qa(r,o,t)&&Po(a,a.data[ht()],r,r[11],e,r[o+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=l(Pn(e)))),e}(t,n),i,o)}function zo(e,t,n,i){var r=He(),a=Qe(2);r.firstUpdatePass&&xo(r,null,a,i);var o=Be();if(n!==hr&&qa(o,a,n)){var s=r.data[ht()];if(qo(s,i)&&!Oo(r,a)){var c=i?s.classesWithoutHost:s.stylesWithoutHost;null!==c&&(n=h(c,n||"")),Xa(r,s,o,n,i)}else!function(e,t,n,i,r,a,o,s){r===hr&&(r=j);for(var c=0,u=0,l=0=e.expandoStartIndex}function xo(e,t,n,i){var r=e.data;if(null===r[n+1]){var a=r[ht()],o=Oo(e,n);qo(a,i)&&null===t&&!o&&(t=!1),t=function(e,t,n,i){var r=et(e),a=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=Do(n=Ro(null,e,t,n,i),t.attrs,i),a=null);else{var o=t.directiveStylingLast;if(-1===o||e[o]!==r)if(n=Ro(r,e,t,n,i),null===a){var s=function(e,t,n){var i=n?t.classBindings:t.styleBindings;if(0!==vr(i))return e[gr(i)]}(e,t,i);void 0!==s&&Array.isArray(s)&&function(e,t,n,i){e[gr(n?t.classBindings:t.styleBindings)]=i}(e,t,i,s=Do(s=Ro(null,e,t,s[1],i),t.attrs,i))}else a=function(e,t,n){for(var i,r=t.directiveEnd,a=1+t.directiveStylingLast;a0)&&(l=!0)}else u=n;if(r)if(0!==c){var d=gr(e[s+1]);e[i+1]=pr(d,s),0!==d&&(e[d+1]=_r(e[d+1],i)),e[s+1]=131071&e[s+1]|i<<17}else e[i+1]=pr(s,0),0!==s&&(e[s+1]=_r(e[s+1],i)),s=i;else e[i+1]=pr(c,0),0===s?s=i:e[c+1]=_r(e[c+1],i),c=i;l&&(e[i+1]=mr(e[i+1])),yo(e,u,i,!0),yo(e,u,i,!1),function(e,t,n,i,r){var a=r?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof t&&hn(a,t)>=0&&(n[i+1]=yr(n[i+1]))}(t,u,e,i,a),o=pr(s,c),a?t.classBindings=o:t.styleBindings=o}(r,a,t,n,o,i)}}function Ro(e,t,n,i,r){var a=null,o=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var c=e[r],u=Array.isArray(c),l=u?c[1]:c,h=null===l,d=n[r+1];d===hr&&(d=h?j:void 0);var f=h?ln(d,i):l===i?d:void 0;if(u&&!Io(f)&&(f=ln(c,i)),Io(f)&&(o=f,s))return o;var p=e[r+1];r=s?gr(p):vr(p)}if(null!==t){var g=a?t.residualClasses:t.residualStyles;null!=g&&(o=ln(g,i))}return o}function Io(e){return void 0!==e}function qo(e,t){return 0!=(e.flags&(t?16:32))}function Bo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Be(),i=He(),r=e+20,a=i.firstCreatePass?wr(i,r,1,t,null):i.data[r],o=n[r]=function(e,t){return Me(e)?e.createText(t):e.createTextNode(t)}(n[11],t);Ui(i,n,o,a),We(a,!1)}function Ho(e){return Yo("",e,""),Ho}function Yo(e,t,n){var i=Be(),r=Ya(i,e,t,n);return r!==hr&&ca(i,ht(),r),Yo}function jo(e,t,n,i,r){var a=Be(),o=ja(a,e,t,n,i,r);return o!==hr&&ca(a,ht(),o),jo}function Fo(e,t,n,i,r,a,o,s,c,u,l){var h=Be(),d=function(e,t,n,i,r,a,o,s,c,u,l,h){var d=Ve(),f=function(e,t,n,i,r,a){var o=Ba(e,t,n,i);return Ba(e,t+2,r,a)||o}(e,d,n,r,o,c);return f=qa(e,d+4,l)||f,Qe(5),f?t+v(n)+i+v(r)+a+v(o)+s+v(c)+u+v(l)+h:hr}(h,e,t,n,i,r,a,o,s,c,u,l);return d!==hr&&ca(h,ht(),d),Fo}function Wo(e,t,n){zo(un,So,Ya(Be(),e,t,n),!0)}function Uo(e,t,n){var i=Be();return qa(i,Je(),t)&&Pr(He(),ft(),i,e,t,i[11],n,!0),Uo}function Ko(e,t,n){var i=Be();if(qa(i,Je(),t)){var r=He(),a=ft();Pr(r,a,i,e,t,aa(et(r.data),a,i),n,!0)}return Ko}var Zo=void 0,Go=["en",[["a","p"],["AM","PM"],Zo],[["AM","PM"],Zo,Zo],[["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"]],Zo,[["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"]],Zo,[["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}",Zo,"{1} 'at' {0}",Zo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Xo={};function Vo(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=Qo(t);if(n)return n;var i=t.split("-")[0];if(n=Qo(i))return n;if("en"===i)return Go;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}function Jo(e){return Vo(e)[$o.PluralCase]}function Qo(e){return e in Xo||(Xo[e]=H.ng&&H.ng.common&&H.ng.common.locales&&H.ng.common.locales[e]),Xo[e]}var $o=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});function es(e){var t;null==(t=e)&&function(e,t,n,i){throw new Error("ASSERTION ERROR: ".concat("Expected localeId to be defined"," [Expected=> null != ").concat(t," <=Actual]"))}(0,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function ts(e,t,n,i,r){if(e=p(e),Array.isArray(e))for(var a=0;a>20;if(ka(e)||!e.multi){var g=new wt(u,r,Ka),m=rs(c,t,r?h:h+f,d);-1===m?(qt(Dt(l,s),o,c),ns(o,e,t.length),t.push(c),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(g),s.push(g)):(n[m]=g,s[m]=g)}else{var v=rs(c,t,h+f,d),_=rs(c,t,h,h+f),y=v>=0&&n[v],b=_>=0&&n[_];if(r&&!b||!r&&!y){qt(Dt(l,s),o,c);var A=function(e,t,n,i,r){var a=new wt(e,n,Ka);return a.multi=[],a.index=t,a.componentProviders=0,is(a,r,i&&!n),a}(r?os:as,n.length,r,i,u);!r&&b&&(n[_].providerFactory=A),ns(o,e,t.length,0),t.push(c),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(A),s.push(A)}else ns(o,e,v>-1?v:_,is(n[r?_:v],u,!r&&i));!r&&i&&b&&n[_].componentProviders++}}}function ns(e,t,n,i){var r=ka(t);if(r||t.useClass){var a=(t.useClass||t).prototype.ngOnDestroy;if(a){var o=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){var s=o.indexOf(n);-1===s?o.push(n,[i,a]):o[s+1].push(i,a)}else o.push(n,a)}}}function is(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function rs(e,t,n,i){for(var r=n;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return function(e,t,n){var i=He();if(i.firstCreatePass){var r=fe(e);ts(n,i.data,i.blueprint,r,!0),ts(t,i.data,i.blueprint,r,!1)}}(n,i?i(e):e,t)}}}var us=function e(){_classCallCheck(this,e)},ls=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(l(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),hs=function(){var e=function e(){_classCallCheck(this,e)};return e.NULL=new ls,e}();function ds(){}function fs(e,t){return new gs(Se(e,t))}var ps=function(){return fs(je(),Be())},gs=function(){var e=function e(t){_classCallCheck(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=ps,e}();function ms(e){return e instanceof gs?e.nativeElement:e}var vs=function e(){_classCallCheck(this,e)},_s=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return ys()},e}(),ys=function(){var e=Be(),t=Oe(je().index,e);return function(e){return e[11]}(ce(t)?t:e)},bs=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275prov=b({token:e,providedIn:"root",factory:function(){return null}}),e}(),As=function e(t){_classCallCheck(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},ws=new As("12.0.5"),ks=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"supports",value:function(e){return Pa(e)}},{key:"create",value:function(e){return new Cs(e)}}]),e}(),Ms=function(e,t){return t},Cs=function(){function e(t){_classCallCheck(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Ms}return _createClass(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,i=0,r=null;t||n;){var a=!n||t&&t.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==n;){var a=t[n.index];if(null!==a&&i.push(Te(a)),ue(a))for(var o=10;o-1&&(Pi(e,n),sn(t,n))}this._attachedToViewContainer=!1}Ni(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){Rr(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){Qr(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){$r(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){Ge(!0);try{$r(e,t,n)}finally{Ge(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,Vi(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}]),e}(),Bs=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e))._view=e,i}return _createClass(n,[{key:"detectChanges",value:function(){ea(this._view)}},{key:"checkNoChanges",value:function(){!function(e){Ge(!0);try{ea(e)}finally{Ge(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(qs),Hs=function(e){return function(e,t,n){if(he(e)&&!n){var i=Oe(e.index,t);return new qs(i,i)}return 47&e.type?new qs(t[16],t):null}(je(),Be(),16==(16&e))},Ys=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=Hs,e}(),js=[new zs],Fs=new Ds([new ks]),Ws=new Ns(js),Us=function(){return Gs(je(),Be())},Ks=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=Us,e}(),Zs=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this))._declarationLView=e,a._declarationTContainer=i,a.elementRef=r,a}return _createClass(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=Ar(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),Mr(t,n,e),new qs(n)}}]),n}(Ks);function Gs(e,t){return 4&e.type?new Zs(t,e,fs(e,t)):null}var Xs=function e(){_classCallCheck(this,e)},Vs=function e(){_classCallCheck(this,e)},Js=function(){return nc(je(),Be())},Qs=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=Js,e}(),$s=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this))._lContainer=e,a._hostTNode=i,a._hostLView=r,a}return _createClass(n,[{key:"element",get:function(){return fs(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new Xt(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=It(this._hostTNode,this._hostLView);if(St(e)){var t=zt(e,this._hostLView),n=Et(e);return new Xt(t[1].data[n+8],t)}return new Xt(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=ec(this._lContainer);return null!==t&&t[e]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i}},{key:"createComponent",value:function(e,t,n,i,r){var a=n||this.parentInjector;if(!r&&null==e.ngModule&&a){var o=a.get(Xs,null);o&&(r=o)}var s=e.create(a,i,void 0,r);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var i=e._lView,r=i[1];if(ue(i[3])){var a=this.indexOf(e);if(-1!==a)this.detach(a);else{var o=i[3],s=new n(o,o[6],o[3]);s.detach(s.indexOf(e))}}var c=this._adjustIndex(t),u=this._lContainer;!function(e,t,n,i){var r=10+i,a=n.length;i>0&&(n[r-1][4]=t),i1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}}]),n}(Qs);function ec(e){return e[8]}function tc(e){return e[8]||(e[8]=[])}function nc(e,t){var n,i=t[e.index];if(ue(i))n=i;else{var r;if(8&e.type)r=Te(i);else{var a=t[11];r=a.createComment("");var o=Se(e,t);Bi(a,ji(a,o),r,function(e,t){return Me(e)?e.nextSibling(t):t.nextSibling}(a,o),!1)}t[e.index]=n=Zr(i,t,r,e),Jr(t,n)}return new $s(n,e,t)}var ic={},rc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).ngModule=e,i}return _createClass(n,[{key:"resolveComponentFactory",value:function(e){var t=oe(e);return new sc(t,this.ngModule)}}]),n}(hs);function ac(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var oc=new en("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return wi}}),sc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this)).componentDef=e,r.ngModule=i,r.componentType=e.type,r.selector=e.selectors.map(lr).join(","),r.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],r.isBoundToModule=!!i,r}return _createClass(n,[{key:"inputs",get:function(){return ac(this.componentDef.inputs)}},{key:"outputs",get:function(){return ac(this.componentDef.outputs)}},{key:"create",value:function(e,t,n,i){var r,a,o=(i=i||this.ngModule)?function(e,t){return{get:function(n,i,r){var a=e.get(n,ic,r);return a!==ic||i===ic?a:t.get(n,i,r)}}}(e,i.injector):e,s=o.get(vs,Ce),c=o.get(bs,null),u=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",h=n?function(e,t,n){if(Me(e))return e.selectRootElement(t,n===P.ShadowDom);var i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(u,n,this.componentDef.encapsulation):Ri(s.createRenderer(null,this.componentDef),l,function(e){var t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(l)),d=this.componentDef.onPush?576:528,f={components:[],scheduler:wi,clean:na,playerHandler:null,flags:0},p=xr(0,null,null,1,0,null,null,null,null,null),g=Ar(null,p,f,d,null,null,s,u,c,o);at(g);try{var m=function(e,t,n,i,r,a){var o=n[1];n[20]=e;var s=wr(o,20,2,"#host",null),c=s.mergedAttrs=t.hostAttrs;null!==c&&(ua(s,c,!0),null!==e&&(kt(r,e,c),null!==s.classes&&$i(r,e,s.classes),null!==s.styles&&Qi(r,e,s.styles)));var u=i.createRenderer(e,t),l=Ar(n,Or(t),null,t.onPush?64:16,n[20],s,i,u,null,null);return o.firstCreatePass&&(qt(Dt(s,n),o,t.type),Br(o,s),Yr(s,n.length,1)),Jr(n,l),n[20]=l}(h,this.componentDef,g,s,u);if(h)if(n)kt(u,h,["ng-version",ws.full]);else{var v=function(e){for(var t=[],n=[],i=1,r=2;i0&&$i(u,h,y.join(" "))}if(a=Ee(p,20),void 0!==t)for(var b=a.projection=[],A=0;A1&&void 0!==arguments[1]?arguments[1]:Ca.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:z.Default;return e===Ca||e===Xs||e===ha?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(Xs),hc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i,r,a;return _classCallCheck(this,n),(i=t.call(this)).moduleType=e,null!==se(e)&&(r=e,a=new Set,function e(t){var n=se(t,!0),i=n.id;null!==i&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(l(t)," vs ").concat(l(t.name)))}(i,uc.get(i),t),uc.set(i,t));var r,o=_createForOfIteratorHelper(Ci(n.imports));try{for(o.s();!(r=o.n()).done;){var s=r.value;a.has(s)||(a.add(s),e(s))}}catch(c){o.e(c)}finally{o.f()}}(r)),i}return _createClass(n,[{key:"create",value:function(e){return new lc(this.moduleType,e)}}]),n}(Vs);function dc(e,t,n){var i=Xe()+e,r=Be();return r[i]===hr?Ia(r,i,n?t.call(n):t()):function(e,t){return e[t]}(r,i)}function fc(e,t,n,i){return mc(Be(),Xe(),e,t,n,i)}function pc(e,t,n,i,r){return vc(Be(),Xe(),e,t,n,i,r)}function gc(e,t){var n=e[t];return n===hr?void 0:n}function mc(e,t,n,i,r,a){var o=t+n;return qa(e,o,r)?Ia(e,o+1,a?i.call(a,r):i(r)):gc(e,o+1)}function vc(e,t,n,i,r,a,o){var s=t+n;return Ba(e,s,r,a)?Ia(e,s+2,o?i.call(o,r,a):i(r,a)):gc(e,s+2)}function _c(e,t){var n,i=He(),r=e+20;i.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var i=t[n];if(e===i.name)return i}throw new m("302","The pipe '".concat(e,"' could not be found!"))}(t,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var a=n.factory||(n.factory=pe(n.type)),o=O(Ka);try{var s=xt(!1),c=a();return xt(s),function(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(i,Be(),r,c),c}finally{O(o)}}function yc(e,t,n){var i=e+20,r=Be(),a=ze(r,i);return kc(r,wc(r,i)?mc(r,Xe(),t,a.transform,n,a):a.transform(n))}function bc(e,t,n,i){var r=e+20,a=Be(),o=ze(a,r);return kc(a,wc(a,r)?vc(a,Xe(),t,o.transform,n,i,o):o.transform(n,i))}function Ac(e,t,n,i,r){var a=e+20,o=Be(),s=ze(o,a);return kc(o,wc(o,a)?function(e,t,n,i,r,a,o,s){var c=t+n;return function(e,t,n,i,r){var a=Ba(e,t,n,i);return qa(e,t+2,r)||a}(e,c,r,a,o)?Ia(e,c+3,s?i.call(s,r,a,o):i(r,a,o)):gc(e,c+3)}(o,Xe(),t,s.transform,n,i,r,s):s.transform(n,i,r))}function wc(e,t){return e[1].data[t].pure}function kc(e,t){return Da.isWrapped(t)&&(t=Da.unwrap(t),e[Ve()]=hr),t}function Mc(e){return function(t){setTimeout(e,void 0,t)}}var Cc=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return _classCallCheck(this,n),(e=t.call(this)).__isAsync=i,e}return _createClass(n,[{key:"emit",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,i){var a,o,s,c=e,u=t||function(){return null},l=i;if(e&&"object"==typeof e){var h=e;c=null===(a=h.next)||void 0===a?void 0:a.bind(h),u=null===(o=h.error)||void 0===o?void 0:o.bind(h),l=null===(s=h.complete)||void 0===s?void 0:s.bind(h)}this.__isAsync&&(u=Mc(u),c&&(c=Mc(c)),l&&(l=Mc(l)));var d=_get(_getPrototypeOf(n.prototype),"subscribe",this).call(this,{next:c,error:u,complete:l});return e instanceof r.w&&e.add(d),d}}]),n}(i.xQ);function Tc(){return this._results[Ra()]()}var Lc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];_classCallCheck(this,e),this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=Ra(),i=e.prototype;i[n]||(i[n]=Tc)}return _createClass(e,[{key:"changes",get:function(){return this._changes||(this._changes=new Cc)}},{key:"get",value:function(e){return this._results[e]}},{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e,t){this.dirty=!1;var n=rn(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,r=[],a=0;a2&&void 0!==arguments[2]?arguments[2]:null;_classCallCheck(this,e),this.predicate=t,this.flags=n,this.read=i},Oc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;_classCallCheck(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return _createClass(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i0)i.push(o[s/2]);else{for(var u=a[s+1],l=t[-c],h=10;h0&&(r=setTimeout(function(){i._callbacks=i._callbacks.filter(function(e){return e.timeoutId!==r}),e(i._didWork,i.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!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(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_n(du))},e.\u0275prov=b({token:e,factory:e.\u0275fac}),e}(),bu=function(){var e=function(){function e(){_classCallCheck(this,e),this._applications=new Map,ku.addToWindow(this)}return _createClass(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return ku.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac}),e}();function Au(e){ku=e}var wu,ku=new(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),Mu=!0,Cu=!1;function Tu(){return Cu=!0,Mu}function Lu(){if(Cu)throw new Error("Cannot enable prod mode after platform setup.");Mu=!1}var Su=new en("AllowMultipleToken"),Eu=function e(t,n){_classCallCheck(this,e),this.name=t,this.token=n};function zu(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: ".concat(t),r=new en(i);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=Ou();if(!a||a.injector.get(Su,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{var o=n.concat(t).concat({provide:r,useValue:!0},{provide:fa,useValue:"platform"});!function(e){if(wu&&!wu.destroyed&&!wu.injector.get(Su,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");wu=e.get(xu);var t=e.get(Vc,null);t&&t.forEach(function(e){return e()})}(Ca.create({providers:o,name:i}))}return function(e){var t=Ou();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function Ou(){return wu&&!wu.destroyed?wu:null}var xu=function(){var e=function(){function e(t){_classCallCheck(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return _createClass(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,i,r=this,a=(n=t?t.ngZone:void 0,i={ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1},"noop"===n?new _u:("zone.js"===n?void 0:n)||new du({enableLongStackTrace:Tu(),shouldCoalesceEventChangeDetection:!!(null==i?void 0:i.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==i?void 0:i.ngZoneRunCoalescing)})),o=[{provide:du,useValue:a}];return a.run(function(){var t=Ca.create({providers:o,parent:r.injector,name:e.moduleType.name}),n=e.create(t),i=n.injector.get(Ai,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(function(){var e=a.onError.subscribe({next:function(e){i.handleError(e)}});n.onDestroy(function(){Pu(r._modules,n),e.unsubscribe()})}),function(e,t,i){try{var a=((o=n.injector.get(Kc)).runInitializers(),o.donePromise.then(function(){return es(n.injector.get(eu,"en-US")||"en-US"),r._moduleDoBootstrap(n),n}));return io(a)?a.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):a}catch(s){throw t.runOutsideAngular(function(){return e.handleError(s)}),s}var o}(i,a)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=Ru({},n);return function(e,t,n){var i=new hc(n);return Promise.resolve(i)}(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,i)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(Du);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(l(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_n(Ca))},e.\u0275prov=b({token:e,factory:e.\u0275fac}),e}();function Ru(e,t){return Array.isArray(t)?t.reduce(Ru,e):Object.assign(Object.assign({},e),t)}var Du=function(){var e=function(){function e(t,n,i,r,c){var u=this;_classCallCheck(this,e),this._zone=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){u._zone.run(function(){u.tick()})}});var l=new a.y(function(e){u._stable=u._zone.isStable&&!u._zone.hasPendingMacrotasks&&!u._zone.hasPendingMicrotasks,u._zone.runOutsideAngular(function(){e.next(u._stable),e.complete()})}),h=new a.y(function(e){var t;u._zone.runOutsideAngular(function(){t=u._zone.onStable.subscribe(function(){du.assertNotInAngularZone(),hu(function(){u._stable||u._zone.hasPendingMacrotasks||u._zone.hasPendingMicrotasks||(u._stable=!0,e.next(!0))})})});var n=u._zone.onUnstable.subscribe(function(){du.assertInAngularZone(),u._stable&&(u._stable=!1,u._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=(0,o.T)(l,h.pipe((0,s.B)()))}return _createClass(e,[{key:"bootstrap",value:function(e,t){var n,i=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof us?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(Xs),a=n.create(Ca.NULL,[],t||n.selector,r),o=a.location.nativeElement,s=a.injector.get(yu,null),c=s&&a.injector.get(bu);return s&&c&&c.registerApplication(o,s),a.onDestroy(function(){i.detachView(a.hostView),Pu(i.components,a),c&&c.unregisterApplication(o)}),this._loadComponent(a),a}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=_createForOfIteratorHelper(this._views);try{for(n.s();!(t=n.n()).done;){t.value.detectChanges()}}catch(i){n.e(i)}finally{n.f()}}catch(r){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(r)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;Pu(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Qc,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_n(du),_n(Ca),_n(Ai),_n(hs),_n(Kc))},e.\u0275prov=b({token:e,factory:e.\u0275fac}),e}();function Pu(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Nu=function e(){_classCallCheck(this,e)},Iu=function e(){_classCallCheck(this,e)},qu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Bu=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._compiler=t,this._config=n||qu}return _createClass(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,i=_slicedToArray(e.split("#"),2),r=i[0],a=i[1];return void 0===a&&(a="default"),n(1730)(r).then(function(e){return e[a]}).then(function(e){return Hu(e,r,a)}).then(function(e){return t._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(e){var t=_slicedToArray(e.split("#"),2),i=t[0],r=t[1],a="NgFactory";return void 0===r&&(r="default",a=""),n(1730)(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(e){return e[r+a]}).then(function(e){return Hu(e,i,r)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_n(uu),_n(Iu,8))},e.\u0275prov=b({token:e,factory:e.\u0275fac}),e}();function Hu(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var Yu=function(e){return null},ju=zu(null,"core",[{provide:Jc,useValue:"unknown"},{provide:xu,deps:[Ca]},{provide:bu,deps:[]},{provide:$c,deps:[]}]),Fu=[{provide:Du,useClass:Du,deps:[du,Ca,Ai,hs,Kc]},{provide:oc,deps:[du],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:Kc,useClass:Kc,deps:[[new Cn,Uc]]},{provide:uu,useClass:uu,deps:[]},Gc,{provide:Ds,useFactory:function(){return Fs},deps:[]},{provide:Ns,useFactory:function(){return Ws},deps:[]},{provide:eu,useFactory:function(e){return es(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new Mn(eu),new Cn,new Tn]]},{provide:tu,useValue:"USD"}],Wu=function(){var e=function e(t){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)(_n(Du))},e.\u0275mod=te({type:e}),e.\u0275inj=A({providers:Fu}),e}()},2623:function _(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{zr:function(){return OAuthModule},Ct:function(){return OAuthService}});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1572),_angular_common__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(1511),_angular_common_http__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(9063),tslib__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(7632),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5959),rxjs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(878),rxjs__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(9764),rxjs__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(3875),rxjs__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(1225),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(1305),rxjs__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(1906),rxjs_operators__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3835),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6599),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(7701),rxjs_operators__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(509),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(4689),rxjs_operators__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(9996),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(3530),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(7727),rxjs_operators__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(9085),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(611),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(3982);module=__webpack_require__.hmd(module);var DateTimeProvider=function e(){_classCallCheck(this,e)},SystemDateTimeProvider=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"now",value:function(){return Date.now()}},{key:"new",value:function(){return new Date}}]),n}(DateTimeProvider);return t.\u0275fac=function(n){return(e||(e=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(t)))(n||t)},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t}(),LoginOptions=function e(){_classCallCheck(this,e),this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1},OAuthLogger=function e(){_classCallCheck(this,e)},OAuthStorage=function e(){_classCallCheck(this,e)},MemoryStorage=function(){var e=function(){function e(){_classCallCheck(this,e),this.data=new Map}return _createClass(e,[{key:"getItem",value:function(e){return this.data.get(e)}},{key:"removeItem",value:function(e){this.data.delete(e)}},{key:"setItem",value:function(e,t){this.data.set(e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:e,factory:e.\u0275fac}),e}(),ReceivedTokens=function e(){_classCallCheck(this,e)};function b64DecodeUnicode(e){var t=e.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(t).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(e){return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}var ValidationHandler=function e(){_classCallCheck(this,e)},AbstractValidationHandler=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"validateAtHash",value:function(e){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n,i,r,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.inferHashAlgorithm(e.idTokenHeader),t.next=3,this.calcHash(e.accessToken,n);case 3:return i=t.sent,r=base64UrlEncode(i.substr(0,i.length/2)),a=e.idTokenClaims.at_hash.replace(/=/g,""),t.abrupt("return",(r!==a&&(console.error("exptected at_hash: "+r),console.error("actual at_hash: "+a)),r===a));case 7:case"end":return t.stop()}},t,this)}))}},{key:"inferHashAlgorithm",value:function(e){var t=e.alg;if(!t.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+t);return"sha-"+t.substr(2)}}]),e}(),UrlHelperService=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"getHashFragmentParams",value:function(e){var t=e||window.location.hash;if(0!==(t=decodeURIComponent(t)).indexOf("#"))return{};var n=t.indexOf("?");return t=t.substr(n>-1?n+1:1),this.parseQueryString(t)}},{key:"parseQueryString",value:function(e){var t,n,i,r,a,o,s,c={};if(null===e)return c;t=e.split("&");for(var u=0;u1&&void 0!==arguments[1]?arguments[1]:null;return _classCallCheck(this,n),(i=t.call(this,e)).info=r,i}return n}(OAuthEvent),OAuthInfoEvent=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return _classCallCheck(this,n),(i=t.call(this,e)).info=r,i}return n}(OAuthEvent),OAuthErrorEvent=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return _classCallCheck(this,n),(r=t.call(this,e)).reason=i,r.params=a,r}return n}(OAuthEvent),AuthConfig=function e(t){_classCallCheck(this,e),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.openUri=function(e){location.href=e},t&&Object.assign(this,t)},WebHttpUrlEncodingCodec=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"encodeKey",value:function(e){return encodeURIComponent(e)}},{key:"encodeValue",value:function(e){return encodeURIComponent(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}(),ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&module.exports,AMD="function"==typeof define&&__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[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],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e,t){return function(n){return new Sha256(t,!0).update(n)[e]()}},\u02750=createOutputMethod,createMethod=function(e){var t=createOutputMethod("hex",e);NODE_JS&&(t=nodeWrap(t,e)),t.create=function(){return new Sha256(e)},t.update=function(e){return t.create().update(e)};for(var n=0;n>6,o[c++]=128|63&a):a<55296||a>=57344?(o[c++]=224|a>>12,o[c++]=128|a>>6&63,o[c++]=128|63&a):(a=65536+((1023&a)<<10|1023&e.charCodeAt(++i)),o[c++]=240|a>>18,o[c++]=128|a>>12&63,o[c++]=128|a>>6&63,o[c++]=128|63&a);e=o}else{if("object"!==r)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw new Error(ERROR)}e.length>64&&(e=new Sha256(t,!0).update(e).array());var u=[],l=[];for(i=0;i<64;++i){var h=e[i]||0;u[i]=92^h,l[i]=54^h}Sha256.call(this,t,n),this.update(l),this.oKeyPad=u,this.inner=!0,this.sharedMemory=n}Sha256.prototype.update=function(e){if(!this.finalized){var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw new Error(ERROR);t=!0}for(var i,r,a=0,o=e.length,s=this.blocks;a>2]|=e[a]<>2]|=i<>2]|=(192|i>>6)<>2]|=(128|63&i)<=57344?(s[r>>2]|=(224|i>>12)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=(240|i>>18)<>2]|=(128|i>>12&63)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<=64?(this.block=s[16],this.start=r-64,this.hash(),this.hashed=!0):this.start=r}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 e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=EXTRA[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var e,t,n,i,r,a,o=this.h0,s=this.h1,c=this.h2,u=this.h3,l=this.h4,h=this.h5,d=this.h6,f=this.h7,p=this.blocks;for(e=16;e<64;++e)p[e]=p[e-16]+(((t=p[e-15])>>>7|t<<25)^(t>>>18|t<<14)^t>>>3)+p[e-7]+(((t=p[e-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)<<0;for(a=s&c,e=0;e<64;e+=4)this.first?(this.is224?(n=300032,f=(t=p[0]-1413257819)-150054599<<0,u=t+24177077<<0):(n=704751109,f=(t=p[0]-210244248)-1521486534<<0,u=t+143694565<<0),this.first=!1):(f=u+(t=f+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&h^~l&d)+K[e]+p[e])<<0,u=t+(((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+((n=o&s)^o&c^a))<<0),d=c+(t=d+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&l^~f&h)+K[e+1]+p[e+1])<<0,c=t+(((u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10))+((i=u&o)^u&s^n))<<0,h=s+(t=h+((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&f^~d&l)+K[e+2]+p[e+2])<<0,s=t+(((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+((r=c&u)^c&o^i))<<0,l=o+(t=l+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&d^~h&f)+K[e+3]+p[e+3])<<0,o=t+(((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((a=s&c)^s&u^r))<<0;this.h0=this.h0+o<<0,this.h1=this.h1+s<<0,this.h2=this.h2+c<<0,this.h3=this.h3+u<<0,this.h4=this.h4+l<<0,this.h5=this.h5+h<<0,this.h6=this.h6+d<<0,this.h7=this.h7+f<<0},Sha256.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4,a=this.h5,o=this.h6,s=this.h7,c=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[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[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[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[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+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[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||(c+=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]),c},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4,a=this.h5,o=this.h6,s=this.h7,c=[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,i>>24&255,i>>16&255,i>>8&255,255&i,r>>24&255,r>>16&255,r>>8&255,255&r,a>>24&255,a>>16&255,a>>8&255,255&a,o>>24&255,o>>16&255,o>>8&255,255&o];return this.is224||c.push(s>>24&255,s>>16&255,s>>8&255,255&s),c},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0);var HashHandler=function e(){_classCallCheck(this,e)},DefaultHashHandler=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"calcHash",value:function(e,t){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=exports.array(e),t.abrupt("return",this.toHashString2(n));case 2:case"end":return t.stop()}},t,this)}))}},{key:"toHashString2",value:function(e){var t,n="",i=_createForOfIteratorHelper(e);try{for(i.s();!(t=i.n()).done;){var r=t.value;n+=String.fromCharCode(r)}}catch(err){i.e(err)}finally{i.f()}return n}},{key:"toHashString",value:function(e){var t,n="",i=_createForOfIteratorHelper(new Uint8Array(e));try{for(i.s();!(t=i.n()).done;){var r=t.value;n+=String.fromCharCode(r)}}catch(err){i.e(err)}finally{i.f()}return n}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:e,factory:e.\u0275fac}),e}(),OAuthService=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o,s,c,u,l,h){var d,f;_classCallCheck(this,n),(d=t.call(this)).ngZone=e,d.http=i,d.config=o,d.urlHelper=s,d.logger=c,d.crypto=u,d.dateTimeService=h,d.discoveryDocumentLoaded=!1,d.state="",d.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_2__.xQ,d.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_2__.xQ,d.grantTypesSupported=[],d.inImplicitFlow=!1,d.saveNoncesInLocalStorage=!1,d.debug("angular-oauth2-oidc v10"),d.document=l,o||(o={}),d.discoveryDocumentLoaded$=d.discoveryDocumentLoadedSubject.asObservable(),d.events=d.eventsSubject.asObservable(),a&&(d.tokenValidationHandler=a),o&&d.configure(o);try{r?d.setStorage(r):"undefined"!=typeof sessionStorage&&d.setStorage(sessionStorage)}catch(g){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",g)}if("undefined"!=typeof window&&void 0!==window.localStorage){var p=null===(f=null===window||void 0===window?void 0:window.navigator)||void 0===f?void 0:f.userAgent;((null==p?void 0:p.includes("MSIE "))||(null==p?void 0:p.includes("Trident")))&&(d.saveNoncesInLocalStorage=!0)}return d.setupRefreshTimer(),d}return _createClass(n,[{key:"configure",value:function(e){Object.assign(this,new AuthConfig,e),this.config=Object.assign({},new AuthConfig,e),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}},{key:"configChanged",value:function(){this.setupRefreshTimer()}},{key:"restartSessionChecksIfStillLoggedIn",value:function(){this.hasValidIdToken()&&this.initSessionCheck()}},{key:"restartRefreshTimerIfStillLoggedIn",value:function(){this.setupExpirationTimers()}},{key:"setupSessionCheck",value:function(){var e=this;this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(e){return"token_received"===e.type})).subscribe(function(t){e.initSessionCheck()})}},{key:"setupAutomaticSilentRefresh",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.b)(function(e){"token_received"===e.type?r=!0:"logout"===e.type&&(r=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(e){return"token_expires"===e.type&&(null==n||"any"===n||e.info===n)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(1e3)).subscribe(function(n){r&&e.refreshInternal(t,i).catch(function(t){e.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}},{key:"refreshInternal",value:function(e,t){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(e,t):this.refreshToken()}},{key:"loadDiscoveryDocumentAndTryLogin",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.loadDiscoveryDocument().then(function(n){return e.tryLogin(t)})}},{key:"loadDiscoveryDocumentAndLogin",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.loadDiscoveryDocumentAndTryLogin(t=t||{}).then(function(n){return!(!e.hasValidIdToken()||!e.hasValidAccessToken())||(e.initLoginFlow("string"==typeof t.state?t.state:""),!1)})}},{key:"debug",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:null;return new Promise(function(n,i){t||((t=e.issuer||"").endsWith("/")||(t+="/"),t+=".well-known/openid-configuration"),e.validateUrlForHttps(t)?e.http.get(t).subscribe(function(t){if(!e.validateDiscoveryDocument(t))return e.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void i("discovery_document_validation_error");e.loginUrl=t.authorization_endpoint,e.logoutUrl=t.end_session_endpoint||e.logoutUrl,e.grantTypesSupported=t.grant_types_supported,e.issuer=t.issuer,e.tokenEndpoint=t.token_endpoint,e.userinfoEndpoint=t.userinfo_endpoint||e.userinfoEndpoint,e.jwksUri=t.jwks_uri,e.sessionCheckIFrameUrl=t.check_session_iframe||e.sessionCheckIFrameUrl,e.discoveryDocumentLoaded=!0,e.discoveryDocumentLoadedSubject.next(t),e.revocationEndpoint=t.revocation_endpoint||e.revocationEndpoint,e.sessionChecksEnabled&&e.restartSessionChecksIfStillLoggedIn(),e.loadJwks().then(function(i){var r=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:t,jwks:i});e.eventsSubject.next(r),n(r)}).catch(function(t){e.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",t)),i(t)})},function(t){e.logger.error("error loading discovery document",t),e.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",t)),i(t)}):i("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}},{key:"loadJwks",value:function(){var e=this;return new Promise(function(t,n){e.jwksUri?e.http.get(e.jwksUri).subscribe(function(n){e.jwks=n,e.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),t(n)},function(t){e.logger.error("error loading jwks",t),e.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",t)),n(t)}):t(null)})}},{key:"validateDiscoveryDocument",value:function(e){var t;return this.skipIssuerCheck||e.issuer===this.issuer?(t=this.validateUrlFromDiscoveryDocument(e.authorization_endpoint)).length>0?(this.logger.error("error validating authorization_endpoint in discovery document",t),!1):(t=this.validateUrlFromDiscoveryDocument(e.end_session_endpoint)).length>0?(this.logger.error("error validating end_session_endpoint in discovery document",t),!1):((t=this.validateUrlFromDiscoveryDocument(e.token_endpoint)).length>0&&this.logger.error("error validating token_endpoint in discovery document",t),(t=this.validateUrlFromDiscoveryDocument(e.revocation_endpoint)).length>0&&this.logger.error("error validating revocation_endpoint in discovery document",t),(t=this.validateUrlFromDiscoveryDocument(e.userinfo_endpoint)).length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",t),!1):(t=this.validateUrlFromDiscoveryDocument(e.jwks_uri)).length>0?(this.logger.error("error validating jwks_uri in discovery document",t),!1):(this.sessionChecksEnabled&&!e.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: "+e.issuer),!1)}},{key:"fetchTokenUsingPasswordFlowAndLoadUserProfile",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM;return this.fetchTokenUsingPasswordFlow(e,t,i).then(function(){return n.loadUserProfile()})}},{key:"loadUserProfile",value:function(){var e=this;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(function(t,n){var i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Authorization","Bearer "+e.getAccessToken());e.http.get(e.userinfoEndpoint,{headers:i,observe:"response",responseType:"text"}).subscribe(function(i){if(e.debug("userinfo received",JSON.stringify(i)),i.headers.get("content-type").startsWith("application/json")){var r=JSON.parse(i.body),a=e.getIdentityClaims()||{};if(!e.skipSubjectCheck&&e.oidc&&(!a.sub||r.sub!==a.sub))return void n("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");r=Object.assign({},a,r),e._storage.setItem("id_token_claims_obj",JSON.stringify(r)),e.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),t({info:r})}else e.debug("userinfo is not JSON, treating it as JWE/JWS"),e.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),t(JSON.parse(i.body))},function(t){e.logger.error("error loading user info",t),e.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",t)),n(t)})})}},{key:"fetchTokenUsingPasswordFlow",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM;return this.fetchTokenUsingGrant("password",{username:e,password:t},n)}},{key:"fetchTokenUsingGrant",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM;this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");var r=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",e).set("scope",this.scope);if(this.useHttpBasicAuth){var a=btoa("".concat(this.clientId,":").concat(this.dummyClientSecret));i=i.set("Authorization","Basic "+a)}if(this.useHttpBasicAuth||(r=r.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(r=r.set("client_secret",this.dummyClientSecret)),this.customQueryParams){var o,s=_createForOfIteratorHelper(Object.getOwnPropertyNames(this.customQueryParams));try{for(s.s();!(o=s.n()).done;){var c=o.value;r=r.set(c,this.customQueryParams[c])}}catch(err){s.e(err)}finally{s.f()}}for(var u=0,l=Object.keys(t);u0&&void 0!==arguments[0]?arguments[0]:{},n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],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(void 0===this.document)throw new Error("silent refresh is not supported on this platform");var r=this.document.getElementById(this.silentRefreshIFrameName);r&&this.document.body.removeChild(r),this.silentRefreshSubject=i.sub;var a=this.document.createElement("iframe");a.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,n,t).then(function(t){a.setAttribute("src",t),e.silentRefreshShowIFrame||(a.style.display="none"),e.document.body.appendChild(a)});var o=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(e){return e instanceof OAuthErrorEvent}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.P)()),s=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(e){return"token_received"===e.type}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.P)()),c=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_13__.S3)([o,s,c]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.U)(function(t){if(t instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===t.type||(t=new OAuthErrorEvent("silent_refresh_error",t)),e.eventsSubject.next(t),t;return"token_received"===t.type&&(t=new OAuthSuccessEvent("silently_refreshed"),e.eventsSubject.next(t)),t})).toPromise()}},{key:"initImplicitFlowInPopup",value:function(e){return this.initLoginFlowInPopup(e)}},{key:"initLoginFlowInPopup",value:function(e){var t=this;return e=e||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(function(n){return new Promise(function(i,r){var a,o=null;e.windowRef?e.windowRef&&!e.windowRef.closed&&((o=e.windowRef).location.href=n):o=window.open(n,"ngx-oauth2-oidc-login",t.calculatePopupFeatures(e));var s=function(e){t.tryLogin({customHashFragment:e,preventClearHashAfterLogin:!0,customRedirectUri:t.silentRefreshRedirectUri}).then(function(){c(),i(!0)},function(e){c(),r(e)})};o?a=window.setInterval(function(){o&&!o.closed||(c(),r(new OAuthErrorEvent("popup_closed",{})))},500):r(new OAuthErrorEvent("popup_blocked",{}));var c=function(){window.clearInterval(a),window.removeEventListener("storage",l),window.removeEventListener("message",u),null!==o&&o.close(),o=null},u=function(e){var n=t.processMessageEventMessage(e);n&&null!==n?(window.removeEventListener("storage",l),s(n)):console.log("false event firing")},l=function(e){"auth_hash"===e.key&&(window.removeEventListener("message",u),s(e.newValue))};window.addEventListener("message",u),window.addEventListener("storage",l)})})}},{key:"calculatePopupFeatures",value:function(e){var t=e.height||470,n=e.width||500,i=window.screenLeft+(window.outerWidth-n)/2;return"location=no,toolbar=no,width=".concat(n,",height=").concat(t,",top=").concat(window.screenTop+(window.outerHeight-t)/2,",left=").concat(i)}},{key:"processMessageEventMessage",value:function(e){var t="#";if(this.silentRefreshMessagePrefix&&(t+=this.silentRefreshMessagePrefix),e&&e.data&&"string"==typeof e.data){var n=e.data;return n.startsWith(t)?"#"+n.substr(t.length):void 0}}},{key:"canPerformSessionCheck",value:function(){return!!this.sessionChecksEnabled&&(this.sessionCheckIFrameUrl?this.getSessionState()?void 0!==this.document:(console.warn("sessionChecksEnabled is activated but there is no session_state"),!1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),!1))}},{key:"setupSessionCheckEventListener",value:function(){var e=this;this.removeSessionCheckEventListener(),this.sessionCheckEventListener=function(t){var n=t.origin.toLowerCase(),i=e.issuer.toLowerCase();if(e.debug("sessionCheckEventListener"),i.startsWith(n)){switch(t.data){case"unchanged":e.ngZone.run(function(){e.handleSessionUnchanged()});break;case"changed":e.ngZone.run(function(){e.handleSessionChange()});break;case"error":e.ngZone.run(function(){e.handleSessionError()})}e.debug("got info from session check inframe",t)}else e.debug("sessionCheckEventListener","wrong origin",n,"expected",i,"event",t)},this.ngZone.runOutsideAngular(function(){window.addEventListener("message",e.sessionCheckEventListener)})}},{key:"handleSessionUnchanged",value:function(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}},{key:"handleSessionChange",value:function(){var e=this;this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(function(t){return e.debug("silent refresh failed after session changed")}),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(function(t){e.debug("token refresh after session change worked")}).catch(function(t){e.debug("token refresh did not work after session changed"),e.eventsSubject.next(new OAuthInfoEvent("session_terminated")),e.logOut(!0)})}},{key:"waitForSilentRefreshAfterSessionChange",value:function(){var e=this;this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(e){return"silently_refreshed"===e.type||"silent_refresh_timeout"===e.type||"silent_refresh_error"===e.type}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.P)()).subscribe(function(t){"silently_refreshed"!==t.type&&(e.debug("silent refresh did not work after session changed"),e.eventsSubject.next(new OAuthInfoEvent("session_terminated")),e.logOut(!0))})}},{key:"handleSessionError",value:function(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}},{key:"removeSessionCheckEventListener",value:function(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}},{key:"initSessionCheck",value:function(){if(this.canPerformSessionCheck()){var e=this.document.getElementById(this.sessionCheckIFrameName);e&&this.document.body.removeChild(e);var 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()}}},{key:"startSessionCheckTimer",value:function(){var e=this;this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(function(){e.sessionCheckTimer=setInterval(e.checkSession.bind(e),e.sessionCheckIntervall)})}},{key:"stopSessionCheckTimer",value:function(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}},{key:"checkSession",value:function(){var e=this.document.getElementById(this.sessionCheckIFrameName);e||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);var t=this.getSessionState();t||this.stopSessionCheckTimer(),e.contentWindow.postMessage(this.clientId+" "+t,this.issuer)}},{key:"createLoginUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,regeneratorRuntime.mark(function a(){var o,s,c,u,l,h,d,f,p,g,m,v,_,y,b;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return o=n||this.redirectUri,a.next=3,this.createAndSaveNonce();case 3:if(s=a.sent,e=e?s+this.config.nonceStateSeparator+encodeURIComponent(e):s,this.requestAccessToken||this.oidc){a.next=6;break}throw new Error("Either requestAccessToken or oidc or both must be true");case 6:if(this.responseType=this.config.responseType?this.config.responseType:this.oidc&&this.requestAccessToken?"id_token token":this.oidc&&!this.requestAccessToken?"id_token":"token",c=this.loginUrl.indexOf("?")>-1?"&":"?",u=this.scope,this.oidc&&!u.match(/(^|\s)openid($|\s)/)&&(u="openid "+u),l=this.loginUrl+c+"response_type="+encodeURIComponent(this.responseType)+"&client_id="+encodeURIComponent(this.clientId)+"&state="+encodeURIComponent(e)+"&redirect_uri="+encodeURIComponent(o)+"&scope="+encodeURIComponent(u),!this.responseType.includes("code")||this.disablePKCE){a.next=19;break}return a.next=14,this.createChallangeVerifierPairForPKCE();case 14:h=a.sent,d=_slicedToArray(h,2),f=d[0],p=d[1],this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("PKCE_verifier",p):this._storage.setItem("PKCE_verifier",p),l+="&code_challenge="+f,l+="&code_challenge_method=S256";case 19:for(t&&(l+="&login_hint="+encodeURIComponent(t)),this.resource&&(l+="&resource="+encodeURIComponent(this.resource)),this.oidc&&(l+="&nonce="+encodeURIComponent(s)),i&&(l+="&prompt=none"),g=0,m=Object.keys(r);g0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!this.inImplicitFlow){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).");var i={},r=null;"string"==typeof n?r=n:"object"==typeof n&&(i=n),this.createLoginUrl(t,r,null,!1,i).then(this.config.openUri).catch(function(t){console.error("Error in initImplicitFlow",t),e.inImplicitFlow=!1})}}},{key:"initImplicitFlow",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";""!==this.loginUrl?this.initImplicitFlowInternal(t,n):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(e){return"discovery_document_loaded"===e.type})).subscribe(function(i){return e.initImplicitFlowInternal(t,n)})}},{key:"resetImplicitFlow",value:function(){this.inImplicitFlow=!1}},{key:"callOnTokenReceivedIfExists",value:function(e){var t=this;if(e.onTokenReceived){var n={idClaims:t.getIdentityClaims(),idToken:t.getIdToken(),accessToken:t.getAccessToken(),state:t.state};e.onTokenReceived(n)}}},{key:"storeAccessTokenResponse",value:function(e,t,n,i,r){var a=this;if(this._storage.setItem("access_token",e),i&&!Array.isArray(i)?this._storage.setItem("granted_scopes",JSON.stringify(i.split(" "))):i&&Array.isArray(i)&&this._storage.setItem("granted_scopes",JSON.stringify(i)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),n){var o=1e3*n,s=this.dateTimeService.new().getTime()+o;this._storage.setItem("expires_at",""+s)}t&&this._storage.setItem("refresh_token",t),r&&r.forEach(function(e,t){a._storage.setItem(t,e)})}},{key:"tryLogin",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return"code"===this.config.responseType?this.tryLoginCodeFlow(e).then(function(e){return!0}):this.tryLoginImplicitFlow(e)}},{key:"parseQueryString",value:function(e){return e&&0!==e.length?("?"===e.charAt(0)&&(e=e.substr(1)),this.urlHelper.parseQueryString(e)):{}}},{key:"tryLoginCodeFlow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=(e=e||{}).customHashFragment?e.customHashFragment.substring(1):window.location.search,n=this.getCodePartsFromUrl(t),i=n.code,r=n.state,a=n.session_state;if(!e.preventClearHashAfterLogin){var o=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,o)}var s=this.parseState(r),c=_slicedToArray(s,2),u=c[0],l=c[1];if(this.state=l,n.error){this.debug("error trying to login"),this.handleLoginError(e,n);var h=new OAuthErrorEvent("code_error",{},n);return this.eventsSubject.next(h),Promise.reject(h)}if(!e.disableNonceCheck){if(!u)return Promise.resolve();if(!e.disableOAuth2StateCheck&&!this.validateNonce(u)){var d=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(d),Promise.reject(d)}return this.storeSessionState(a),i?this.getTokenFromCode(i,e).then(function(e){return null}):Promise.resolve()}}},{key:"getCodePartsFromUrl",value:function(e){return e&&0!==e.length?("?"===e.charAt(0)&&(e=e.substr(1)),this.urlHelper.parseQueryString(e)):this.urlHelper.getHashFragmentParams()}},{key:"getTokenFromCode",value:function(e,t){var n,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",e).set("redirect_uri",t.customRedirectUri||this.redirectUri);this.disablePKCE||((n=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"))?i=i.set("code_verifier",n):console.warn("No PKCE verifier found in oauth storage!"));return this.fetchAndProcessToken(i,t)}},{key:"fetchAndProcessToken",value:function(e,t){var n=this;t=t||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");var i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){var r=btoa("".concat(this.clientId,":").concat(this.dummyClientSecret));i=i.set("Authorization","Basic "+r)}return this.useHttpBasicAuth||(e=e.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(e=e.set("client_secret",this.dummyClientSecret)),new Promise(function(r,a){if(n.customQueryParams){var o,s=_createForOfIteratorHelper(Object.getOwnPropertyNames(n.customQueryParams));try{for(s.s();!(o=s.n()).done;){var c=o.value;e=e.set(c,n.customQueryParams[c])}}catch(err){s.e(err)}finally{s.f()}}n.http.post(n.tokenEndpoint,e,{headers:i}).subscribe(function(e){n.debug("refresh tokenResponse",e),n.storeAccessTokenResponse(e.access_token,e.refresh_token,e.expires_in||n.fallbackAccessTokenExpirationTimeInSec,e.scope,n.extractRecognizedCustomParameters(e)),n.oidc&&e.id_token?n.processIdToken(e.id_token,e.access_token,t.disableNonceCheck).then(function(t){n.storeIdToken(t),n.eventsSubject.next(new OAuthSuccessEvent("token_received")),n.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),r(e)}).catch(function(e){n.eventsSubject.next(new OAuthErrorEvent("token_validation_error",e)),console.error("Error validating tokens"),console.error(e),a(e)}):(n.eventsSubject.next(new OAuthSuccessEvent("token_received")),n.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),r(e))},function(e){console.error("Error getting token",e),n.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",e)),a(e)})})}},{key:"tryLoginImplicitFlow",value:function(){var e,t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e=(n=n||{}).customHashFragment?this.urlHelper.getHashFragmentParams(n.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",e);var i=e.state,r=this.parseState(i),a=_slicedToArray(r,2),o=a[0],s=a[1];if(this.state=s,e.error){this.debug("error trying to login"),this.handleLoginError(n,e);var c=new OAuthErrorEvent("token_error",{},e);return this.eventsSubject.next(c),Promise.reject(c)}var u=e.access_token,l=e.id_token,h=e.session_state,d=e.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!u)return Promise.resolve(!1);if(this.requestAccessToken&&!n.disableOAuth2StateCheck&&!i)return Promise.resolve(!1);if(this.oidc&&!l)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!h&&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&&!n.disableNonceCheck&&!this.validateNonce(o)){var f=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(f),Promise.reject(f)}return this.requestAccessToken&&this.storeAccessTokenResponse(u,null,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,d),this.oidc?this.processIdToken(l,u,n.disableNonceCheck).then(function(e){return n.validationHandler?n.validationHandler({accessToken:u,idClaims:e.idTokenClaims,idToken:e.idToken,state:i}).then(function(t){return e}):e}).then(function(e){return t.storeIdToken(e),t.storeSessionState(h),t.clearHashAfterLogin&&!n.preventClearHashAfterLogin&&t.clearLocationHash(),t.eventsSubject.next(new OAuthSuccessEvent("token_received")),t.callOnTokenReceivedIfExists(n),t.inImplicitFlow=!1,!0}).catch(function(e){return t.eventsSubject.next(new OAuthErrorEvent("token_validation_error",e)),t.logger.error("Error validating tokens"),t.logger.error(e),Promise.reject(e)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!n.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(n),Promise.resolve(!0))}},{key:"parseState",value:function(e){var t=e,n="";if(e){var i=e.indexOf(this.config.nonceStateSeparator);i>-1&&(t=e.substr(0,i),n=e.substr(i+this.config.nonceStateSeparator.length))}return[t,n]}},{key:"validateNonce",value:function(e){var t;return(t=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"))===e||(console.error("Validating access_token failed, wrong state/nonce.",t,e),!1)}},{key:"storeIdToken",value:function(e){this._storage.setItem("id_token",e.idToken),this._storage.setItem("id_token_claims_obj",e.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+e.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}},{key:"storeSessionState",value:function(e){this._storage.setItem("session_state",e)}},{key:"getSessionState",value:function(){return this._storage.getItem("session_state")}},{key:"handleLoginError",value:function(e,t){e.onLoginError&&e.onLoginError(t),this.clearHashAfterLogin&&!e.preventClearHashAfterLogin&&this.clearLocationHash()}},{key:"getClockSkewInMsec",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6e5;return this.clockSkewInSec?1e3*this.clockSkewInSec:e}},{key:"processIdToken",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=e.split("."),o=b64DecodeUnicode(this.padBase64(a[0])),s=JSON.parse(o),c=b64DecodeUnicode(this.padBase64(a[1])),u=JSON.parse(c);if(n=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(u.aud)){if(u.aud.every(function(e){return e!==i.clientId})){var l="Wrong audience: "+u.aud.join(",");return this.logger.warn(l),Promise.reject(l)}}else if(u.aud!==this.clientId){var h="Wrong audience: "+u.aud;return this.logger.warn(h),Promise.reject(h)}if(!u.sub){var d="No sub claim in id_token";return this.logger.warn(d),Promise.reject(d)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==u.sub){var f="After refreshing, we got an id_token for another user (sub). Expected sub: ".concat(this.silentRefreshSubject,", received sub: ").concat(u.sub);return this.logger.warn(f),Promise.reject(f)}if(!u.iat){var p="No iat claim in id_token";return this.logger.warn(p),Promise.reject(p)}if(!this.skipIssuerCheck&&u.iss!==this.issuer){var g="Wrong issuer: "+u.iss;return this.logger.warn(g),Promise.reject(g)}if(!r&&u.nonce!==n){var m="Wrong nonce: "+u.nonce;return this.logger.warn(m),Promise.reject(m)}if(!this.hasOwnProperty("responseType")||"code"!==this.responseType&&"id_token"!==this.responseType||(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!u.at_hash){var v="An at_hash is needed!";return this.logger.warn(v),Promise.reject(v)}var _=this.dateTimeService.now(),y=1e3*u.iat,b=1e3*u.exp,A=this.getClockSkewInMsec();if(y-A>=_||b+A<=_){var w="Token has expired";return console.error(w),console.error({now:_,issuedAtMSec:y,expiresAtMSec:b}),Promise.reject(w)}var k={accessToken:t,idToken:e,jwks:this.jwks,idTokenClaims:u,idTokenHeader:s,loadKeys:function(){return i.loadJwks()}};return this.disableAtHashCheck?this.checkSignature(k).then(function(t){return{idToken:e,idTokenClaims:u,idTokenClaimsJson:c,idTokenHeader:s,idTokenHeaderJson:o,idTokenExpiresAt:b}}):this.checkAtHash(k).then(function(t){if(!i.disableAtHashCheck&&i.requestAccessToken&&!t){var n="Wrong at_hash";return i.logger.warn(n),Promise.reject(n)}return i.checkSignature(k).then(function(t){var n={idToken:e,idTokenClaims:u,idTokenClaimsJson:c,idTokenHeader:s,idTokenHeaderJson:o,idTokenExpiresAt:b};return i.disableAtHashCheck?n:i.checkAtHash(k).then(function(e){if(i.requestAccessToken&&!e){var t="Wrong at_hash";return i.logger.warn(t),Promise.reject(t)}return n})})})}},{key:"getIdentityClaims",value:function(){var e=this._storage.getItem("id_token_claims_obj");return e?JSON.parse(e):null}},{key:"getGrantedScopes",value:function(){var e=this._storage.getItem("granted_scopes");return e?JSON.parse(e):null}},{key:"getIdToken",value:function(){return this._storage?this._storage.getItem("id_token"):null}},{key:"padBase64",value:function(e){for(;e.length%4!=0;)e+="=";return e}},{key:"getAccessToken",value:function(){return this._storage?this._storage.getItem("access_token"):null}},{key:"getRefreshToken",value:function(){return this._storage?this._storage.getItem("refresh_token"):null}},{key:"getAccessTokenExpiration",value:function(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}},{key:"getAccessTokenStoredAt",value:function(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}},{key:"getIdTokenStoredAt",value:function(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}},{key:"getIdTokenExpiration",value:function(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}},{key:"hasValidAccessToken",value:function(){if(this.getAccessToken()){var e=this._storage.getItem("expires_at"),t=this.dateTimeService.new();return!(e&&parseInt(e,10)=0&&null!==this._storage.getItem(e)?JSON.parse(this._storage.getItem(e)):null}},{key:"authorizationHeader",value:function(){return"Bearer "+this.getAccessToken()}},{key:"logOut",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=!1;"boolean"==typeof t&&(i=t,t={});var r=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(function(t){return e._storage.removeItem(t)}),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),this.logoutUrl&&!i&&(r||this.postLogoutRedirectUri)){var a;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)a=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(r)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{var o=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec});r&&(o=o.set("id_token_hint",r));var s=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";for(var c in s&&(o=o.set("post_logout_redirect_uri",s),n&&(o=o.set("state",n))),t)o=o.set(c,t[c]);a=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+o.toString()}this.config.openUri(a)}}},{key:"createAndSaveNonce",value:function(){var e=this;return this.createNonce().then(function(t){return e.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("nonce",t):e._storage.setItem("nonce",t),t})}},{key:"ngOnDestroy",value:function(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();var e=this.document.getElementById(this.silentRefreshIFrameName);e&&e.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();var t=this.document.getElementById(this.sessionCheckIFrameName);t&&t.remove()}},{key:"createNonce",value:function(){var e=this;return new Promise(function(t){if(e.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",i=45,r="",a="undefined"==typeof self?null:self.crypto||self.msCrypto;if(a){var o=new Uint8Array(i);a.getRandomValues(o),o.map||(o.map=Array.prototype.map),o=o.map(function(e){return n.charCodeAt(e%n.length)}),r=String.fromCharCode.apply(null,o)}else for(;00&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"code"===this.responseType?this.initCodeFlow(e,t):this.initImplicitFlow(e,t)}},{key:"initCodeFlow",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};""!==this.loginUrl?this.initCodeFlowInternal(t,n):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(e){return"discovery_document_loaded"===e.type})).subscribe(function(i){return e.initCodeFlowInternal(t,n)})}},{key:"initCodeFlowInternal",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};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).");var n={},i=null;"string"==typeof t?i=t:"object"==typeof t&&(n=t),this.createLoginUrl(e,i,null,!1,n).then(this.config.openUri).catch(function(e){console.error("Error in initAuthorizationCodeFlow"),console.error(e)})}},{key:"createChallangeVerifierPairForPKCE",value:function(){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.crypto){e.next=2;break}throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");case 2:return e.next=4,this.createNonce();case 4:return t=e.sent,e.t0=base64UrlEncode,e.next=8,this.crypto.calcHash(t,"sha-256");case 8:return e.t1=e.sent,e.t2=(0,e.t0)(e.t1),e.t3=t,e.abrupt("return",[e.t2,e.t3]);case 12:case"end":return e.stop()}},e,this)}))}},{key:"extractRecognizedCustomParameters",value:function(e){var t=new Map;return this.config.customTokenParameters?(this.config.customTokenParameters.forEach(function(n){e[n]&&t.set(n,JSON.stringify(e[n]))}),t):t}},{key:"revokeTokenAndLogout",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.revocationEndpoint,r=this.getAccessToken(),a=this.getRefreshToken();if(r){var o=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}),s=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){var c=btoa("".concat(this.clientId,":").concat(this.dummyClientSecret));s=s.set("Authorization","Basic "+c)}if(this.useHttpBasicAuth||(o=o.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(o=o.set("client_secret",this.dummyClientSecret)),this.customQueryParams){var u,l=_createForOfIteratorHelper(Object.getOwnPropertyNames(this.customQueryParams));try{for(l.s();!(u=l.n()).done;){var h=u.value;o=o.set(h,this.customQueryParams[h])}}catch(err){l.e(err)}finally{l.f()}}return new Promise(function(c,u){var l,h;if(r){var d=o.set("token",r).set("token_type_hint","access_token");l=e.http.post(i,d,{headers:s})}else l=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null);if(a){var f=o.set("token",a).set("token_type_hint","refresh_token");h=e.http.post(i,f,{headers:s})}else h=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null);n&&(l=l.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(function(e){return 0===e.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(e)})),h=h.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(function(e){return 0===e.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(e)}))),(0,rxjs__WEBPACK_IMPORTED_MODULE_16__.aj)([l,h]).subscribe(function(n){e.logOut(t),c(n),e.logger.info("Token successfully revoked")},function(t){e.logger.error("Error revoking token",t),e.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",t)),u(t)})})}}},{key:"clearLocationHash",value:function(){""!=location.hash&&(location.hash="")}}]),n}(AuthConfig);return e.\u0275fac=function(t){return new(t||e)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_0__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_8__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_17__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DateTimeProvider))},e.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:e,factory:e.\u0275fac}),e}(),OAuthModuleConfig=function e(){_classCallCheck(this,e)},OAuthResourceServerConfig=function e(){_classCallCheck(this,e)},OAuthResourceServerErrorHandler=function e(){_classCallCheck(this,e)},OAuthNoopResourceServerErrorHandler=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"handleError",value:function(e){return(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(e)}}]),e}(),DefaultOAuthInterceptor=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.oAuthService=t,this.errorHandler=n,this.moduleConfig=i}return _createClass(e,[{key:"checkUrl",value:function(e){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(e):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(function(t){return e.toLowerCase().startsWith(t.toLowerCase())})}},{key:"intercept",value:function(e,t){var n=this,i=e.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(i)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_18__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(e){return!!e})),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(e){return"token_received"===e.type}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_19__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(function(e){return(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.U)(function(e){return n.oAuthService.getAccessToken()}))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.zg)(function(i){if(i){var r=e.headers.set("Authorization","Bearer "+i);e=e.clone({headers:r})}return t.handle(e).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(function(e){return n.errorHandler.handleError(e)}))})):t.handle(e).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(function(e){return n.errorHandler.handleError(e)})):t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthModuleConfig,8))},e.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:e,factory:e.\u0275fac}),e}(),NullValidationHandler=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"validateSignature",value:function(e){return Promise.resolve(null)}},{key:"validateAtHash",value:function(e){return Promise.resolve(!0)}}]),e}();function createDefaultLogger(){return console}function createDefaultStorage(){return"undefined"!=typeof sessionStorage?sessionStorage:new MemoryStorage}var OAuthModule=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NullValidationHandler;return{ngModule:e,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:n},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:t},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_8__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:e}),e.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_17__.ez]]}),e}(),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",JwksValidationHandler=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),e=t.call(this),console.error(err),e}return n}(NullValidationHandler),AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("AUTH_CONFIG")},2051:function(e,t){var n,i;void 0===(i="function"==typeof(n=function(){"use strict";function t(e,t,n){var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){o(i.response,t,n)},i.onerror=function(){console.error("could not download file")},i.send()}function n(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function i(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}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,a=r.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),o=r.saveAs||("object"!=typeof window||window!==r?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(e,a,o){var s=r.URL||r.webkitURL,c=document.createElement("a");c.download=a=a||e.name||"download",c.rel="noopener","string"==typeof e?(c.href=e,c.origin===location.origin?i(c):n(c.href)?t(e,a,o):i(c,c.target="_blank")):(c.href=s.createObjectURL(e),setTimeout(function(){s.revokeObjectURL(c.href)},4e4),setTimeout(function(){i(c)},0))}:"msSaveOrOpenBlob"in navigator?function(e,r,a){if(r=r||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,a),r);else if(n(e))t(e,r,a);else{var o=document.createElement("a");o.href=e,o.target="_blank",setTimeout(function(){i(o)})}}:function(e,n,i,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,i);var s="application/octet-stream"===e.type,c=/constructor/i.test(r.HTMLElement)||r.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||s&&c||a)&&"undefined"!=typeof FileReader){var l=new FileReader;l.onloadend=function(){var e=l.result;e=u?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},l.readAsDataURL(e)}else{var h=r.URL||r.webkitURL,d=h.createObjectURL(e);o?o.location=d:location.href=d,o=null,setTimeout(function(){h.revokeObjectURL(d)},4e4)}});r.saveAs=o.saveAs=o,e.exports=o})?n.apply(t,[]):n)||(e.exports=i)},9355:function(e,t,n){(e.exports=n(2021)).tz.load(n(4360))},2021:function(e,t,n){var i,r,a;!function(o,s){"use strict";e.exports?e.exports=s(n(9609)):(r=[n(9609)],void 0===(a="function"==typeof(i=s)?i.apply(t,r):i)||(e.exports=a))}(0,function(e){"use strict";void 0===e.version&&e.default&&(e=e.default);var t,n={},i={},r={},a={},o={};e&&"string"==typeof e.version||S("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var s=e.version.split("."),c=+s[0],u=+s[1];function l(e){return e>96?e-87:e>64?e-29:e-48}function h(e){var t=0,n=e.split("."),i=n[0],r=n[1]||"",a=1,o=0,s=1;for(45===e.charCodeAt(0)&&(t=1,s=-1);t= 2.6.0. You are using Moment.js "+e.version+". See momentjs.com"),g.prototype={_set:function(e){this.name=e.name,this.abbrs=e.abbrs,this.untils=e.untils,this.offsets=e.offsets,this.population=e.population},_index:function(e){var t,n=+e,i=this.untils;for(t=0;ti&&E.moveInvalidForward&&(t=i),a3){var t=a[k(e)];if(t)return t;S("Moment Timezone found "+e+" from the Intl api, but did not have that data loaded.")}}catch(l){}var n,i,r,o=function(){var e,t,n,i=(new Date).getFullYear()-2,r=new v(new Date(i,0,1)),a=[r];for(n=1;n<48;n++)(t=new v(new Date(i,n,1))).offset!==r.offset&&(e=y(r,t),a.push(e),a.push(new v(new Date(e.at+6e4)))),r=t;for(n=0;n<4;n++)a.push(new v(new Date(i+n,0,1))),a.push(new v(new Date(i+n,6,1)));return a}(),s=o.length,c=w(o),u=[];for(i=0;i0?u[0].zone.name:void 0}()),t},E.names=function(){var e,t=[];for(e in a)a.hasOwnProperty(e)&&(n[e]||n[i[e]])&&a[e]&&t.push(a[e]);return t.sort()},E.Zone=g,E.unpack=p,E.unpackBase60=h,E.needsOffset=L,E.moveInvalidForward=!0,E.moveAmbiguousForward=!1,E.countries=function(){return Object.keys(r)},E.zonesForCountry=function(e,t){var n;if(n=(n=e).toUpperCase(),!(e=r[n]||null))return null;var i=e.zones.sort();return t?i.map(function(e){return{name:e,offset:C(e).utcOffset(new Date)}}):i};var z,O=e.fn;function x(e){return function(){return this._z?this._z.abbr(this):e.call(this)}}function R(e){return function(){return this._z=null,e.apply(this,arguments)}}e.tz=E,e.defaultZone=null,e.updateOffset=function(t,n){var i,r=e.defaultZone;if(void 0===t._z&&(r&&L(t)&&!t._isUTC&&(t._d=e.utc(t._a)._d,t.utc().add(r.parse(t),"minutes")),t._z=r),t._z)if(i=t._z.utcOffset(t),Math.abs(i)<16&&(i/=60),void 0!==t.utcOffset){var a=t._z;t.utcOffset(-i,n),t._z=a}else t.zone(i,n)},O.tz=function(t,n){if(t){if("string"!=typeof t)throw new Error("Time zone name must be a string, got "+t+" ["+typeof t+"]");return this._z=C(t),this._z?e.updateOffset(this,n):S("Moment Timezone has no data for "+t+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},O.zoneName=x(O.zoneName),O.zoneAbbr=x(O.zoneAbbr),O.utc=R(O.utc),O.local=R(O.local),O.utcOffset=(z=O.utcOffset,function(){return arguments.length>0&&(this._z=null),z.apply(this,arguments)}),e.tz.setDefault=function(t){return(c<2||2===c&&u<9)&&S("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+e.version+"."),e.defaultZone=t?C(t):null,e};var D=e.momentProperties;return"[object Array]"===Object.prototype.toString.call(D)?(D.push("_z"),D.push("_a")):D&&(D._z=null),e})},776:function(e,t,n){!function(e){"use strict";e.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,t,n){return e<12?n?"vm":"VM":n?"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}})}(n(9609))},2758:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-dz",{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:"\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:"\u0623\u062d_\u0625\u062b_\u062b\u0644\u0627_\u0623\u0631_\u062e\u0645_\u062c\u0645_\u0633\u0628".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:4}})}(n(9609))},4980:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},9602:function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},i={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"]},r=function(e){return function(t,r,a,o){var s=n(t),c=i[e][n(t)];return 2===s&&(c=c[r?0:1]),c.replace(/%d/i,t)}},a=["\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"];e.defineLocale("ar-ly",{months:a,monthsShort:a,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(e){return"\u0645"===e},meridiem:function(e,t,n){return e<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:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n(9609))},2500:function(e,t,n){!function(e){"use strict";e.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\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:6,doy:12}})}(n(9609))},6909:function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};e.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(e){return"\u0645"===e},meridiem:function(e,t,n){return e<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(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(e){return n[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(n(9609))},2735:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},7634:function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},i=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={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"]},a=function(e){return function(t,n,a,o){var s=i(t),c=r[e][i(t)];return 2===s&&(c=c[n?0:1]),c.replace(/%d/i,t)}},o=["\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"];e.defineLocale("ar",{months:o,monthsShort:o,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(e){return"\u0645"===e},meridiem:function(e,t,n){return e<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:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(e){return n[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n(9609))},7798:function(e,t,n){!function(e){"use strict";var t={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"};e.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:"birne\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(e){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gec\u0259":e<12?"s\u0259h\u0259r":e<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(e){if(0===e)return e+"-\u0131nc\u0131";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(9609))},9949:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===n?t?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":e+" "+(i=+e,r={ss:t?"\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:t?"\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:t?"\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"}[n].split("_"),i%10==1&&i%100!=11?r[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?r[1]:r[2]);var i,r}e.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:t,mm:t,h:t,hh:t,d:"\u0434\u0437\u0435\u043d\u044c",dd:t,M:"\u043c\u0435\u0441\u044f\u0446",MM:t,y:"\u0433\u043e\u0434",yy:t},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u044b":e<12?"\u0440\u0430\u043d\u0456\u0446\u044b":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-\u044b":e+"-\u0456";case"D":return e+"-\u0433\u0430";default:return e}},week:{dow:1,doy:7}})}(n(9609))},4590:function(e,t,n){!function(e){"use strict";e.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\u0440_\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"[\u0412 \u0438\u0437\u043c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u0412 \u0438\u0437\u043c\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\u043d\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 t=e%10,n=e%100;return 0===e?e+"-\u0435\u0432":0===n?e+"-\u0435\u043d":n>10&&n<20?e+"-\u0442\u0438":1===t?e+"-\u0432\u0438":2===t?e+"-\u0440\u0438":7===t||8===t?e+"-\u043c\u0438":e+"-\u0442\u0438"},week:{dow:1,doy:7}})}(n(9609))},5938:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},595:function(e,t,n){!function(e){"use strict";var t={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},n={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};e.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09c0_\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_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2_\u0986\u0997_\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_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u0983_\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(e){return e.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u09b0\u09be\u09a4"===t&&e>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===t&&e<5||"\u09ac\u09bf\u0995\u09be\u09b2"===t?e+12:e},meridiem:function(e,t,n){return e<4?"\u09b0\u09be\u09a4":e<10?"\u09b8\u0995\u09be\u09b2":e<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":e<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(n(9609))},4756:function(e,t,n){!function(e){"use strict";var t={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},n={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};e.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\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("_"),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\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("_"),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(e){return e.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},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(e,t){return 12===e&&(e=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===t&&e>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===t&&e<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===t?e+12:e},meridiem:function(e,t,n){return e<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":e<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":e<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":e<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(n(9609))},7277:function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}function n(e){return e>9?n(e%10):e}e.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(n(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(e){return e+(1===e?"a\xf1":"vet")},week:{dow:1,doy:4}})}(n(9609))},4166:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return i+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return i+(1===e?"dan":"dana");case"MM":return i+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return i+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.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:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(9609))},3943:function(e,t,n){!function(e){"use strict";e.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,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"\xe8";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(9609))},3474:function(e,t,n){!function(e){"use strict";var t="leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),n="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),i=[/^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],r=/^(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 a(e){return e>1&&e<5&&1!=~~(e/10)}function o(e,t,n,i){var r=e+" ";switch(n){case"s":return t||i?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return t||i?r+(a(e)?"sekundy":"sekund"):r+"sekundami";case"m":return t?"minuta":i?"minutu":"minutou";case"mm":return t||i?r+(a(e)?"minuty":"minut"):r+"minutami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?r+(a(e)?"hodiny":"hodin"):r+"hodinami";case"d":return t||i?"den":"dnem";case"dd":return t||i?r+(a(e)?"dny":"dn\xed"):r+"dny";case"M":return t||i?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return t||i?r+(a(e)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):r+"m\u011bs\xedci";case"y":return t||i?"rok":"rokem";case"yy":return t||i?r+(a(e)?"roky":"let"):r+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:r,monthsShortRegex:r,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:i,longMonthsParse:i,shortMonthsParse:i,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:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},2218:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},1061:function(e,t,n){!function(e){"use strict";e.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 t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n(9609))},2743:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},8580:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.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:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},3264:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.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:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},1899:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.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:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},8784:function(e,t,n){!function(e){"use strict";var t=["\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"],n=["\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"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,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(e){return"\u0789\u078a"===e},meridiem:function(e,t,n){return e<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(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(n(9609))},4654:function(e,t,n){!function(e){"use strict";e.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(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.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(e,t,n){return e>11?n?"\u03bc\u03bc":"\u039c\u039c":n?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(e){return"\u03bc"===(e+"").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(){switch(this.day()){case 6:return"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT";default:return"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var n,i=this._calendarEl[e],r=t&&t.hours();return((n=i)instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(i=i.apply(t)),i.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}})}(n(9609))},4047:function(e,t,n){!function(e){"use strict";e.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 t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(9609))},6277:function(e,t,n){!function(e){"use strict";e.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 t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(9609))},6896:function(e,t,n){!function(e){"use strict";e.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 t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(9609))},1609:function(e,t,n){!function(e){"use strict";e.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 t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(9609))},4557:function(e,t,n){!function(e){"use strict";e.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 t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(9609))},5836:function(e,t,n){!function(e){"use strict";e.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",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 t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(9609))},3586:function(e,t,n){!function(e){"use strict";e.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 t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(9609))},2777:function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_a\u016dg_sep_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:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(9609))},3128:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(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;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,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:i,longMonthsParse:i,shortMonthsParse:i,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",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}})}(n(9609))},3256:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(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;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,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:i,longMonthsParse:i,shortMonthsParse:i,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",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}})}(n(9609))},3357:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(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;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,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:i,longMonthsParse:i,shortMonthsParse:i,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",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}})}(n(9609))},2654:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[e+" minuti",e+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[e+" tunni",e+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[e+" kuu",e+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[e+" aasta",e+" aastat"]};return t?r[n][2]?r[n][2]:r[n][1]:i?r[n][0]:r[n][1]}e.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:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d p\xe4eva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},7287:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},5210:function(e,t,n){!function(e){"use strict";var t={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},n={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};e.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(e){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(e)},meridiem:function(e,t,n){return e<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:"\u062b\u0627\u0646\u06cc\u0647 d%",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(e){return e.replace(/[\u06f0-\u06f9]/g,function(e){return n[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(n(9609))},3431:function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),n=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",t[7],t[8],t[9]];function i(e,i,r,a){var o="";switch(r){case"s":return a?"muutaman sekunnin":"muutama sekunti";case"ss":return a?"sekunnin":"sekuntia";case"m":return a?"minuutin":"minuutti";case"mm":o=a?"minuutin":"minuuttia";break;case"h":return a?"tunnin":"tunti";case"hh":o=a?"tunnin":"tuntia";break;case"d":return a?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":o=a?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return a?"kuukauden":"kuukausi";case"MM":o=a?"kuukauden":"kuukautta";break;case"y":return a?"vuoden":"vuosi";case"yy":o=a?"vuoden":"vuotta"}return function(e,i){return e<10?i?n[e]:t[e]:e}(e,a)+" "+o}e.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: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:4}})}(n(9609))},1781:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},1539:function(e,t,n){!function(e){"use strict";e.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,t){switch(t){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")}}})}(n(9609))},9847:function(e,t,n){!function(e){"use strict";e.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,t){switch(t){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}})}(n(9609))},1717:function(e,t,n){!function(e){"use strict";e.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("_"),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|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":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}})}(n(9609))},2250:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},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(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(9609))},7665:function(e,t,n){!function(e){"use strict";e.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","M\xe9itheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deaireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean\xe1","Feab","M\xe1rt","Aibr","Beal","M\xe9it","I\xfail","L\xfana","Me\xe1n","Deai","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 Satharn"],weekdaysShort:["Dom","Lua","M\xe1i","C\xe9a","D\xe9a","hAo","Sat"],weekdaysMin:["Do","Lu","M\xe1","Ce","D\xe9","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:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 aig] 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\xed",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(9609))},5214:function(e,t,n){!function(e){"use strict";e.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(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(9609))},6154:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},8518:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["thodde secondanim","thodde second"],ss:[e+" secondanim",e+" second"],m:["eka mintan","ek minute"],mm:[e+" mintanim",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voranim",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disanim",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineanim",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsanim",e+" vorsam"]};return t?r[n][0]:r[n][1]}e.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_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[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokalli"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokalli":e<16?"donparam":e<20?"sanje":"rati"}})}(n(9609))},9221:function(e,t,n){!function(e){"use strict";var t={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},n={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};e.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\u0ac7\u0ab9\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(e){return e.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0ab0\u0abe\u0aa4"===t?e<4?e:e+12:"\u0ab8\u0ab5\u0abe\u0ab0"===t?e:"\u0aac\u0aaa\u0acb\u0ab0"===t?e>=10?e:e+12:"\u0ab8\u0abe\u0a82\u0a9c"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0ab0\u0abe\u0aa4":e<10?"\u0ab8\u0ab5\u0abe\u0ab0":e<17?"\u0aac\u0aaa\u0acb\u0ab0":e<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(n(9609))},4743:function(e,t,n){!function(e){"use strict";e.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,t,n){return e<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":e<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":e<12?n?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":e<18?n?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(n(9609))},7339:function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};e.defineLocale("hi",{months:"\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("_"),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("_"),monthsParseExact:!0,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"},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(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924"===t?e<4?e:e+12:"\u0938\u0941\u092c\u0939"===t?e:"\u0926\u094b\u092a\u0939\u0930"===t?e>=10?e:e+12:"\u0936\u093e\u092e"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0930\u093e\u0924":e<10?"\u0938\u0941\u092c\u0939":e<17?"\u0926\u094b\u092a\u0939\u0930":e<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(n(9609))},3224:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return i+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return i+(1===e?"dan":"dana");case"MM":return i+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return i+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.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:"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:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(9609))},856:function(e,t,n){!function(e){"use strict";var t="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function n(e,t,n,i){var r=e;switch(n){case"s":return i||t?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return r+(i||t)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(i||t?" perc":" perce");case"mm":return r+(i||t?" perc":" perce");case"h":return"egy"+(i||t?" \xf3ra":" \xf3r\xe1ja");case"hh":return r+(i||t?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(i||t?" nap":" napja");case"dd":return r+(i||t?" nap":" napja");case"M":return"egy"+(i||t?" h\xf3nap":" h\xf3napja");case"MM":return r+(i||t?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(i||t?" \xe9v":" \xe9ve");case"yy":return r+(i||t?" \xe9v":" \xe9ve")}return""}function i(e){return(e?"":"[m\xfalt] ")+"["+t[this.day()]+"] LT[-kor]"}e.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("_"),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(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return i.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return i.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},6855:function(e,t,n){!function(e){"use strict";e.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,t){switch(t){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}})}(n(9609))},2190:function(e,t,n){!function(e){"use strict";e.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,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){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:1,doy:7}})}(n(9609))},3887:function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,i,r){var a=e+" ";switch(i){case"s":return n||r?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return t(e)?a+(n||r?"sek\xfandur":"sek\xfandum"):a+"sek\xfanda";case"m":return n?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return t(e)?a+(n||r?"m\xedn\xfatur":"m\xedn\xfatum"):n?a+"m\xedn\xfata":a+"m\xedn\xfatu";case"hh":return t(e)?a+(n||r?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return n?"dagur":r?"dag":"degi";case"dd":return t(e)?n?a+"dagar":a+(r?"daga":"d\xf6gum"):n?a+"dagur":a+(r?"dag":"degi");case"M":return n?"m\xe1nu\xf0ur":r?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return t(e)?n?a+"m\xe1nu\xf0ir":a+(r?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):n?a+"m\xe1nu\xf0ur":a+(r?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return n||r?"\xe1r":"\xe1ri";case"yy":return t(e)?a+(n||r?"\xe1r":"\xe1rum"):a+(n||r?"\xe1r":"\xe1ri")}}e.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:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},5890:function(e,t,n){!function(e){"use strict";e.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(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[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}})}(n(9609))},9270:function(e,t,n){!function(e){"use strict";e.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:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[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}})}(n(9609))},6595:function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{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:"\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,t,n){return e<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(e){return e.week()=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){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}})}(n(9609))},7477:function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:{standalone:"\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("_"),format:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10e1_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10e1_\u10db\u10d0\u10e0\u10e2\u10e1_\u10d0\u10de\u10e0\u10d8\u10da\u10d8\u10e1_\u10db\u10d0\u10d8\u10e1\u10e1_\u10d8\u10d5\u10dc\u10d8\u10e1\u10e1_\u10d8\u10d5\u10da\u10d8\u10e1\u10e1_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10e1_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10e1_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10e1".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:"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:"[\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/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10ec\u10d4\u10da\u10d8)/.test(e)?e.replace(/\u10d8$/,"\u10e8\u10d8"):e+"\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"):void 0},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}})}(n(9609))},3978:function(e,t,n){!function(e){"use strict";var t={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"};e.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(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(9609))},9205:function(e,t,n){!function(e){"use strict";var t={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},n={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};e.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(e){return"\u179b\u17d2\u1784\u17b6\u1785"===e},meridiem:function(e,t,n){return e<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(e){return e.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})}(n(9609))},25:function(e,t,n){!function(e){"use strict";var t={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},n={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};e.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(e){return e.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},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(e,t){return 12===e&&(e=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===t?e<4?e:e+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===t?e:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===t?e>=10?e:e+12:"\u0cb8\u0c82\u0c9c\u0cc6"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":e<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":e<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":e<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(e){return e+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(n(9609))},427:function(e,t,n){!function(e){"use strict";e.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,t){switch(t){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,t,n){return e<12?"\uc624\uc804":"\uc624\ud6c4"}})}(n(9609))},9089:function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},i=["\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"];e.defineLocale("ku",{months:i,monthsShort:i,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(e){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(e)},meridiem:function(e,t,n){return e<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(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(e){return n[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n(9609))},9314:function(e,t,n){!function(e){"use strict";var t={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"};e.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(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(9609))},3136:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={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 t?r[n][0]:r[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.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){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d M\xe9int",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},9115:function(e,t,n){!function(e){"use strict";e.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,t,n){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}})}(n(9609))},7087:function(e,t,n){!function(e){"use strict";var t={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 n(e,t,n,i){return t?r(n)[0]:i?r(n)[1]:r(n)[2]}function i(e){return e%10==0||e>10&&e<20}function r(e){return t[e].split("_")}function a(e,t,a,o){var s=e+" ";return 1===e?s+n(0,t,a[0],o):t?s+(i(e)?r(a)[1]:r(a)[0]):o?s+r(a)[1]:s+(i(e)?r(a)[1]:r(a)[2])}e.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,t,n,i){return t?"kelios sekund\u0117s":i?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:a,m:n,mm:a,h:n,hh:a,d:n,dd:a,M:n,MM:a,y:n,yy:a},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n(9609))},5683:function(e,t,n){!function(e){"use strict";var t={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 n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function i(e,i,r){return e+" "+n(t[r],e,i)}function r(e,i,r){return n(t[r],e,i)}e.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(e,t){return t?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:i,m:r,mm:i,h:r,hh:i,d:r,dd:i,M:r,MM:i,y:r,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},9454:function(e,t,n){!function(e){"use strict";var t={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(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var r=t.words[i];return 1===i.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};e.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:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(9609))},5507:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},8466:function(e,t,n){!function(e){"use strict";e.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:"\u043f\u043e\u0441\u043b\u0435 %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:"\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",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",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 t=e%10,n=e%100;return 0===e?e+"-\u0435\u0432":0===n?e+"-\u0435\u043d":n>10&&n<20?e+"-\u0442\u0438":1===t?e+"-\u0432\u0438":2===t?e+"-\u0440\u0438":7===t||8===t?e+"-\u043c\u0438":e+"-\u0442\u0438"},week:{dow:1,doy:7}})}(n(9609))},2933:function(e,t,n){!function(e){"use strict";e.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,t){return 12===e&&(e=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===t&&e>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===t||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===t?e+12:e},meridiem:function(e,t,n){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"}})}(n(9609))},9477:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){switch(n){case"s":return t?"\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 e+(t?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return e+(t?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return e+(t?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return e+(t?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return e+(t?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return e+(t?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return e}}e.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(e){return"\u04ae\u0425"===e},meridiem:function(e,t,n){return e<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:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" \u04e9\u0434\u04e9\u0440";default:return e}}})}(n(9609))},3597:function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function i(e,t,n,i){var r="";if(t)switch(n){case"s":r="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":r="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":r="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":r="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":r="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":r="%d \u0924\u093e\u0938";break;case"d":r="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":r="%d \u0926\u093f\u0935\u0938";break;case"M":r="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":r="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":r="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":r="%d \u0935\u0930\u094d\u0937\u0947"}else switch(n){case"s":r="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":r="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":r="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":r="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":r="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":r="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":r="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":r="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":r="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":r="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":r="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":r="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return r.replace(/%d/i,e)}e.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:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0930\u093e\u0924\u094d\u0930\u0940|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924\u094d\u0930\u0940"===t?e<4?e:e+12:"\u0938\u0915\u093e\u0933\u0940"===t?e:"\u0926\u0941\u092a\u093e\u0930\u0940"===t?e>=10?e:e+12:"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0930\u093e\u0924\u094d\u0930\u0940":e<10?"\u0938\u0915\u093e\u0933\u0940":e<17?"\u0926\u0941\u092a\u093e\u0930\u0940":e<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(n(9609))},9965:function(e,t,n){!function(e){"use strict";e.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,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){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}})}(n(9609))},5529:function(e,t,n){!function(e){"use strict";e.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,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){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}})}(n(9609))},259:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},8061:function(e,t,n){!function(e){"use strict";var t={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},n={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};e.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(e){return e.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})}(n(9609))},2618:function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_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",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}})}(n(9609))},8452:function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};e.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(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924\u093f"===t?e<4?e:e+12:"\u092c\u093f\u0939\u093e\u0928"===t?e:"\u0926\u093f\u0909\u0901\u0938\u094b"===t?e>=10?e:e+12:"\u0938\u093e\u0901\u091d"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"\u0930\u093e\u0924\u093f":e<12?"\u092c\u093f\u0939\u093e\u0928":e<16?"\u0926\u093f\u0909\u0901\u0938\u094b":e<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}})}(n(9609))},413:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^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],r=/^(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;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,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:i,longMonthsParse:i,shortMonthsParse:i,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(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(9609))},1885:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^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],r=/^(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;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,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:i,longMonthsParse:i,shortMonthsParse:i,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(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(9609))},5107:function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_m\xe5n_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_m\xe5_ty_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 [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",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}})}(n(9609))},702:function(e,t,n){!function(e){"use strict";var t={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},n={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};e.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(e){return e.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0a30\u0a3e\u0a24"===t?e<4?e:e+12:"\u0a38\u0a35\u0a47\u0a30"===t?e:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===t?e>=10?e:e+12:"\u0a38\u0a3c\u0a3e\u0a2e"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0a30\u0a3e\u0a24":e<10?"\u0a38\u0a35\u0a47\u0a30":e<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":e<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(n(9609))},1711:function(e,t,n){!function(e){"use strict";var t="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_");function i(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function r(e,t,n){var r=e+" ";switch(n){case"ss":return r+(i(e)?"sekundy":"sekund");case"m":return t?"minuta":"minut\u0119";case"mm":return r+(i(e)?"minuty":"minut");case"h":return t?"godzina":"godzin\u0119";case"hh":return r+(i(e)?"godziny":"godzin");case"MM":return r+(i(e)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return r+(i(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,i){return e?""===i?"("+n[e.month()]+"|"+t[e.month()]+")":/D MMMM/.test(i)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),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:r,m:r,mm:r,h:r,hh:r,d:"1 dzie\u0144",dd:"%d dni",M:"miesi\u0105c",MM:r,y:"rok",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},8238:function(e,t,n){!function(e){"use strict";e.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"})}(n(9609))},594:function(e,t,n){!function(e){"use strict";e.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",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}})}(n(9609))},4681:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=" ";return(e%100>=20||e>=100&&e%100==0)&&(i=" de "),e+i+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._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:t,m:"un minut",mm:t,h:"o or\u0103",hh:t,d:"o zi",dd:t,M:"o lun\u0103",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(9609))},6201:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":e+" "+(i=+e,r={ss:t?"\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:t?"\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",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"}[n].split("_"),i%10==1&&i%100!=11?r[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?r[1]:r[2]);var i,r}var n=[/^\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];e.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:n,longMonthsParse:n,shortMonthsParse:n,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(e){if(e.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(e){if(e.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:t,m:t,mm:t,h:"\u0447\u0430\u0441",hh:t,d:"\u0434\u0435\u043d\u044c",dd:t,M:"\u043c\u0435\u0441\u044f\u0446",MM:t,y:"\u0433\u043e\u0434",yy:t},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u0438":e<12?"\u0443\u0442\u0440\u0430":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-\u0439";case"D":return e+"-\u0433\u043e";case"w":case"W":return e+"-\u044f";default:return e}},week:{dow:1,doy:4}})}(n(9609))},2912:function(e,t,n){!function(e){"use strict";var t=["\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"],n=["\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"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,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(e){return"\u0634\u0627\u0645"===e},meridiem:function(e,t,n){return e<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(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(n(9609))},6002:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},7942:function(e,t,n){!function(e){"use strict";e.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,t,n){return e>11?n?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":n?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(n(9609))},5577:function(e,t,n){!function(e){"use strict";var t="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),n="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function i(e){return e>1&&e<5}function r(e,t,n,r){var a=e+" ";switch(n){case"s":return t||r?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return t||r?a+(i(e)?"sekundy":"sek\xfand"):a+"sekundami";case"m":return t?"min\xfata":r?"min\xfatu":"min\xfatou";case"mm":return t||r?a+(i(e)?"min\xfaty":"min\xfat"):a+"min\xfatami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?a+(i(e)?"hodiny":"hod\xedn"):a+"hodinami";case"d":return t||r?"de\u0148":"d\u0148om";case"dd":return t||r?a+(i(e)?"dni":"dn\xed"):a+"d\u0148ami";case"M":return t||r?"mesiac":"mesiacom";case"MM":return t||r?a+(i(e)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return t||r?"rok":"rokom";case"yy":return t||r?a+(i(e)?"roky":"rokov"):a+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,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:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 4:case 5:return"[minul\xfd] dddd [o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %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}})}(n(9609))},1775:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r=e+" ";switch(n){case"s":return t||i?"nekaj sekund":"nekaj sekundami";case"ss":return r+(1===e?t?"sekundo":"sekundi":2===e?t||i?"sekundi":"sekundah":e<5?t||i?"sekunde":"sekundah":"sekund");case"m":return t?"ena minuta":"eno minuto";case"mm":return r+(1===e?t?"minuta":"minuto":2===e?t||i?"minuti":"minutama":e<5?t||i?"minute":"minutami":t||i?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return r+(1===e?t?"ura":"uro":2===e?t||i?"uri":"urama":e<5?t||i?"ure":"urami":t||i?"ur":"urami");case"d":return t||i?"en dan":"enim dnem";case"dd":return r+(1===e?t||i?"dan":"dnem":2===e?t||i?"dni":"dnevoma":t||i?"dni":"dnevi");case"M":return t||i?"en mesec":"enim mesecem";case"MM":return r+(1===e?t||i?"mesec":"mesecem":2===e?t||i?"meseca":"mesecema":e<5?t||i?"mesece":"meseci":t||i?"mesecev":"meseci");case"y":return t||i?"eno leto":"enim letom";case"yy":return r+(1===e?t||i?"leto":"letom":2===e?t||i?"leti":"letoma":e<5?t||i?"leta":"leti":t||i?"let":"leti")}}e.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:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(9609))},6823:function(e,t,n){!function(e){"use strict";e.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,t,n){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}})}(n(9609))},3848:function(e,t,n){!function(e){"use strict";var t={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\u0435 \u043c\u0438\u043d\u0443\u0442\u0435"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0435","\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"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],yy:["\u0433\u043e\u0434\u0438\u043d\u0430","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var r=t.words[i];return 1===i.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};e.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:"DD.MM.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:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"\u0434\u0430\u043d",dd:t.translate,M:"\u043c\u0435\u0441\u0435\u0446",MM:t.translate,y:"\u0433\u043e\u0434\u0438\u043d\u0443",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(9609))},9038:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var r=t.words[i];return 1===i.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};e.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:"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] [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:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(9609))},6173:function(e,t,n){!function(e){"use strict";e.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,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(9609))},5788:function(e,t,n){!function(e){"use strict";e.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 t=e%10;return e+(1==~~(e%100/10)?"e":1===t||2===t?"a":"e")},week:{dow:1,doy:4}})}(n(9609))},6882:function(e,t,n){!function(e){"use strict";e.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",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:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(9609))},2678:function(e,t,n){!function(e){"use strict";var t={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},n={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};e.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(e){return e+"\u0bb5\u0ba4\u0bc1"},preparse:function(e){return e.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},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(e,t,n){return e<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":e<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":e<10?" \u0b95\u0bbe\u0bb2\u0bc8":e<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":e<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":e<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(e,t){return 12===e&&(e=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===t?e<2?e:e+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===t||"\u0b95\u0bbe\u0bb2\u0bc8"===t||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n(9609))},2797:function(e,t,n){!function(e){"use strict";e.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,t){return 12===e&&(e=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===t?e<4?e:e+12:"\u0c09\u0c26\u0c2f\u0c02"===t?e:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===t?e>=10?e:e+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===t?e+12:void 0},meridiem:function(e,t,n){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}})}(n(9609))},2447:function(e,t,n){!function(e){"use strict";e.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:"minutu balun",ss:"minutu %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 t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(9609))},1335:function(e,t,n){!function(e){"use strict";var t={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"};e.defineLocale("tg",{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:"\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:"[\u041f\u0430\u0433\u043e\u04b3 \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(e,t){return 12===e&&(e=0),"\u0448\u0430\u0431"===t?e<4?e:e+12:"\u0441\u0443\u0431\u04b3"===t?e:"\u0440\u04ef\u0437"===t?e>=11?e:e+12:"\u0431\u0435\u0433\u043e\u04b3"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0448\u0430\u0431":e<11?"\u0441\u0443\u0431\u04b3":e<16?"\u0440\u04ef\u0437":e<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(9609))},8667:function(e,t,n){!function(e){"use strict";e.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,t,n){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",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(n(9609))},9914:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},1389:function(e,t,n){!function(e){"use strict";var t="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,i,r){var a=function(e){var n=Math.floor(e%1e3/100),i=Math.floor(e%100/10),r=e%10,a="";return n>0&&(a+=t[n]+"vatlh"),i>0&&(a+=(""!==a?" ":"")+t[i]+"maH"),r>0&&(a+=(""!==a?" ":"")+t[r]),""===a?"pagh":a}(e);switch(i){case"ss":return a+" lup";case"mm":return a+" tup";case"hh":return a+" rep";case"dd":return a+" jaj";case"MM":return a+" jar";case"yy":return a+" DIS"}}e.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){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu\u2019":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:n,m:"wa\u2019 tup",mm:n,h:"wa\u2019 rep",hh:n,d:"wa\u2019 jaj",dd:n,M:"wa\u2019 jar",MM:n,y:"wa\u2019 DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},3578:function(e,t,n){!function(e){"use strict";var t={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"};e.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_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".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 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",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'\u0131nc\u0131";var i=e%10;return e+(t[i]||t[e%100-i]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(9609))},6969:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[e+" m\xeduts",e+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[e+" \xfeoras",e+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return i||t?r[n][0]:r[n][1]}e.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(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"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:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},690:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},6509:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},55:function(e,t,n){!function(e){"use strict";e.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,t){return 12===e&&(e=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===t||"\u0633\u06d5\u06be\u06d5\u0631"===t||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===t?e:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===t||"\u0643\u06d5\u0686"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":i<900?"\u0633\u06d5\u06be\u06d5\u0631":i<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":i<1230?"\u0686\u06c8\u0634":i<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,t){switch(t){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}})}(n(9609))},2452:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===n?t?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":e+" "+(i=+e,r={ss:t?"\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:t?"\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:t?"\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"}[n].split("_"),i%10==1&&i%100!=11?r[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?r[1]:r[2]);var i,r}function n(e){return function(){return e+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}e.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(e,t){var n={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===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(t)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.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:n("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:n("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:n("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:n("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return n("[\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:t,m:t,mm:t,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:t,d:"\u0434\u0435\u043d\u044c",dd:t,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:t,y:"\u0440\u0456\u043a",yy:t},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u0456":e<12?"\u0440\u0430\u043d\u043a\u0443":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-\u0439";case"D":return e+"-\u0433\u043e";default:return e}},week:{dow:1,doy:7}})}(n(9609))},1151:function(e,t,n){!function(e){"use strict";var t=["\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"],n=["\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"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,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(e){return"\u0634\u0627\u0645"===e},meridiem:function(e,t,n){return e<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(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(n(9609))},6547:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},1555:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},6541:function(e,t,n){!function(e){"use strict";e.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:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".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,t,n){return e<12?n?"sa":"SA":n?"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 r\u1ed3i 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",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}})}(n(9609))},2401:function(e,t,n){!function(e){"use strict";e.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 t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(9609))},2341:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},619:function(e,t,n){!function(e){"use strict";e.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,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1130?"\u4e0a\u5348":i<1230?"\u4e2d\u5348":i<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|\u5468)/,ordinal:function(e,t){switch(t){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\u5185",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",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(n(9609))},7058:function(e,t,n){!function(e){"use strict";e.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,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e2d\u5348"===t?e>=11?e:e+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1130?"\u4e0a\u5348":i<1230?"\u4e2d\u5348":i<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,t){switch(t){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"}})}(n(9609))},2782:function(e,t,n){!function(e){"use strict";e.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,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e2d\u5348"===t?e>=11?e:e+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1130?"\u4e0a\u5348":i<1230?"\u4e2d\u5348":i<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,t){switch(t){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"}})}(n(9609))},9609:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,i;function r(){return t.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){var n,i=[];for(n=0;n>>0,i=0;i0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,t-i.length)).toString().substr(1)+i}var H=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Y=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j={},F={};function W(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(F[e]=r),t&&(F[t[0]]=function(){return B(r.apply(this,arguments),t[1],t[2])}),n&&(F[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function U(e,t){return e.isValid()?(t=K(t,e.localeData()),j[t]=j[t]||function(e){var t,n,i,r=e.match(H);for(t=0,n=r.length;t=0&&Y.test(e);)e=e.replace(Y,i),Y.lastIndex=0,n-=1;return e}var Z=/\d/,G=/\d\d/,X=/\d{3}/,V=/\d{4}/,J=/[+-]?\d{6}/,Q=/\d\d?/,$=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,ie=/[+-]?\d{1,6}/,re=/\d+/,ae=/[+-]?\d+/,oe=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,ce=/[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,ue={};function le(e,t,n){ue[e]=z(t)?t:function(e,i){return e&&n?n:t}}function he(e,t){return h(ue,e)?ue[e](t._strict,t._locale):new RegExp(de(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,r){return t||n||i||r})))}function de(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var fe={};function pe(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),c(t)&&(i=function(e,n){n[t]=k(e)}),n=0;n68?1900:2e3)};var ye,be=Ae("FullYear",!0);function Ae(e,t){return function(n){return null!=n?(ke(this,e,n),r.updateOffset(this,t),this):we(this,e)}}function we(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function ke(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&_e(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Me(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Me(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=(t%12+12)%12;return e+=(t-n)/12,1===n?_e(e)?29:28:31-n%7%2}ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0?(s=new Date(e+400,t,n,i,r,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,i,r,a,o),s}function Pe(e){var t;if(e<100&&e>=0){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function Ne(e,t,n){var i=7+t-n;return-(7+Pe(e,0,i).getUTCDay()-t)%7+i-1}function Ie(e,t,n,i,r){var a,o,s=1+7*(t-1)+(7+n-i)%7+Ne(e,i,r);return s<=0?o=ve(a=e-1)+s:s>ve(e)?(a=e+1,o=s-ve(e)):(a=e,o=s),{year:a,dayOfYear:o}}function qe(e,t,n){var i,r,a=Ne(e.year(),t,n),o=Math.floor((e.dayOfYear()-a-1)/7)+1;return o<1?i=o+Be(r=e.year()-1,t,n):o>Be(e.year(),t,n)?(i=o-Be(e.year(),t,n),r=e.year()+1):(r=e.year(),i=o),{week:i,year:r}}function Be(e,t,n){var i=Ne(e,t,n),r=Ne(e+1,t,n);return(ve(e)-i+r)/7}function He(e,t){return e.slice(t,7).concat(e.slice(0,t))}W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),D("week","w"),D("isoWeek","W"),q("week",5),q("isoWeek",5),le("w",Q),le("ww",Q,G),le("W",Q),le("WW",Q,G),ge(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=k(e)}),W("d",0,"do","day"),W("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),W("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),W("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),D("day","d"),D("weekday","e"),D("isoWeekday","E"),q("day",11),q("weekday",11),q("isoWeekday",11),le("d",Q),le("e",Q),le("E",Q),le("dd",function(e,t){return t.weekdaysMinRegex(e)}),le("ddd",function(e,t){return t.weekdaysShortRegex(e)}),le("dddd",function(e,t){return t.weekdaysRegex(e)}),ge(["dd","ddd","dddd"],function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:p(n).invalidWeekday=e}),ge(["d","e","E"],function(e,t,n,i){t[i]=k(e)});var Ye="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Fe="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function We(e,t,n){var i,r,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)a=f([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=ye.call(this._weekdaysParse,o))?r:null:"ddd"===t?-1!==(r=ye.call(this._shortWeekdaysParse,o))?r:null:-1!==(r=ye.call(this._minWeekdaysParse,o))?r:null:"dddd"===t?-1!==(r=ye.call(this._weekdaysParse,o))||-1!==(r=ye.call(this._shortWeekdaysParse,o))||-1!==(r=ye.call(this._minWeekdaysParse,o))?r:null:"ddd"===t?-1!==(r=ye.call(this._shortWeekdaysParse,o))||-1!==(r=ye.call(this._weekdaysParse,o))||-1!==(r=ye.call(this._minWeekdaysParse,o))?r:null:-1!==(r=ye.call(this._minWeekdaysParse,o))||-1!==(r=ye.call(this._weekdaysParse,o))||-1!==(r=ye.call(this._shortWeekdaysParse,o))?r:null}var Ue=ce,Ke=ce,Ze=ce;function Ge(){function e(e,t){return t.length-e.length}var t,n,i,r,a,o=[],s=[],c=[],u=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),a=this.weekdays(n,""),o.push(i),s.push(r),c.push(a),u.push(i),u.push(r),u.push(a);for(o.sort(e),s.sort(e),c.sort(e),u.sort(e),t=0;t<7;t++)s[t]=de(s[t]),c[t]=de(c[t]),u[t]=de(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Xe(){return this.hours()%12||12}function Ve(e,t){W(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Je(e,t){return t._meridiemParse}W("H",["HH",2],0,"hour"),W("h",["hh",2],0,Xe),W("k",["kk",2],0,function(){return this.hours()||24}),W("hmm",0,0,function(){return""+Xe.apply(this)+B(this.minutes(),2)}),W("hmmss",0,0,function(){return""+Xe.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)}),W("Hmm",0,0,function(){return""+this.hours()+B(this.minutes(),2)}),W("Hmmss",0,0,function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)}),Ve("a",!0),Ve("A",!1),D("hour","h"),q("hour",13),le("a",Je),le("A",Je),le("H",Q),le("h",Q),le("k",Q),le("HH",Q,G),le("hh",Q,G),le("kk",Q,G),le("hmm",$),le("hmmss",ee),le("Hmm",$),le("Hmmss",ee),pe(["H","HH"],3),pe(["k","kk"],function(e,t,n){var i=k(e);t[3]=24===i?0:i}),pe(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),pe(["h","hh"],function(e,t,n){t[3]=k(e),p(n).bigHour=!0}),pe("hmm",function(e,t,n){var i=e.length-2;t[3]=k(e.substr(0,i)),t[4]=k(e.substr(i)),p(n).bigHour=!0}),pe("hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[3]=k(e.substr(0,i)),t[4]=k(e.substr(i,2)),t[5]=k(e.substr(r)),p(n).bigHour=!0}),pe("Hmm",function(e,t,n){var i=e.length-2;t[3]=k(e.substr(0,i)),t[4]=k(e.substr(i))}),pe("Hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[3]=k(e.substr(0,i)),t[4]=k(e.substr(i,2)),t[5]=k(e.substr(r))});var Qe,$e=Ae("Hours",!0),et={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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Te,monthsShort:Le,week:{dow:0,doy:6},weekdays:Ye,weekdaysMin:Fe,weekdaysShort:je,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function it(e){return e?e.toLowerCase().replace("_","-"):e}function rt(t){var i=null;if(!tt[t]&&e&&e.exports)try{i=Qe._abbr,n(6700)("./"+t),at(i)}catch(r){}return tt[t]}function at(e,t){var n;return e&&((n=s(t)?st(e):ot(e,t))?Qe=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Qe._abbr}function ot(e,t){if(null!==t){var n,i=et;if(t.abbr=e,null!=tt[e])E("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=tt[e]._config;else if(null!=t.parentLocale)if(null!=tt[t.parentLocale])i=tt[t.parentLocale]._config;else{if(null==(n=rt(t.parentLocale)))return nt[t.parentLocale]||(nt[t.parentLocale]=[]),nt[t.parentLocale].push({name:e,config:t}),null;i=n._config}return tt[e]=new x(O(i,t)),nt[e]&&nt[e].forEach(function(e){ot(e.name,e.config)}),at(e),tt[e]}return delete tt[e],null}function st(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Qe;if(!a(e)){if(t=rt(e))return t;e=[e]}return function(e){for(var t,n,i,r,a=0;a0;){if(i=rt(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&M(r,n,!0)>=t-1)break;t--}a++}return Qe}(e)}function ct(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>Me(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,p(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),p(e)._overflowWeeks&&-1===t&&(t=7),p(e)._overflowWeekday&&-1===t&&(t=8),p(e).overflow=t),e}function ut(e,t,n){return null!=e?e:null!=t?t:n}function lt(e){var t,n,i,a,o,s=[];if(!e._d){for(i=function(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,i,r,a,o,s,c;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)a=1,o=4,n=ut(t.GG,e._a[0],qe(Mt(),1,4).year),i=ut(t.W,1),((r=ut(t.E,1))<1||r>7)&&(c=!0);else{a=e._locale._week.dow,o=e._locale._week.doy;var u=qe(Mt(),a,o);n=ut(t.gg,e._a[0],u.year),i=ut(t.w,u.week),null!=t.d?((r=t.d)<0||r>6)&&(c=!0):null!=t.e?(r=t.e+a,(t.e<0||t.e>6)&&(c=!0)):r=a}i<1||i>Be(n,a,o)?p(e)._overflowWeeks=!0:null!=c?p(e)._overflowWeekday=!0:(s=Ie(n,i,r,a,o),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(o=ut(e._a[0],i[0]),(e._dayOfYear>ve(o)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=Pe(o,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=i[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Pe:De).apply(null,s),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(p(e).weekdayMismatch=!0)}}var ht=/^\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)?)?$/,dt=/^\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)?)?$/,ft=/Z|[+-]\d\d(?::?\d\d)?/,pt=[["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}/]],gt=[["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/]],mt=/^\/?Date\((\-?\d+)/i;function vt(e){var t,n,i,r,a,o,s=e._i,c=ht.exec(s)||dt.exec(s);if(c){for(p(e).iso=!0,t=0,n=pt.length;t0&&p(e).unusedInput.push(o),s=s.slice(s.indexOf(n)+n.length),u+=n.length),F[a]?(n?p(e).empty=!1:p(e).unusedTokens.push(a),me(a,n,e)):e._strict&&!n&&p(e).unusedTokens.push(a);p(e).charsLeftOver=c-u,s.length>0&&p(e).unusedInput.push(s),e._a[3]<=12&&!0===p(e).bigHour&&e._a[3]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),lt(e),ct(e)}else bt(e);else vt(e)}function wt(e){var t=e._i,n=e._f;return e._locale=e._locale||st(e._l),null===t||void 0===n&&""===t?m({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),A(t)?new b(ct(t)):(u(t)?e._d=t:a(n)?function(e){var t,n,i,r,a;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;rthis?this:e:m()});function Lt(e,t){var n,i;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Mt();for(n=t[0],i=1;i=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function $t(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function en(e,t){W(0,[e,e.length],0,t)}function tn(e,t,n,i,r){var a;return null==e?qe(this,i,r).year:(t>(a=Be(e,i,r))&&(t=a),nn.call(this,e,t,n,i,r))}function nn(e,t,n,i,r){var a=Ie(e,t,n,i,r),o=Pe(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}W(0,["gg",2],0,function(){return this.weekYear()%100}),W(0,["GG",2],0,function(){return this.isoWeekYear()%100}),en("gggg","weekYear"),en("ggggg","weekYear"),en("GGGG","isoWeekYear"),en("GGGGG","isoWeekYear"),D("weekYear","gg"),D("isoWeekYear","GG"),q("weekYear",1),q("isoWeekYear",1),le("G",ae),le("g",ae),le("GG",Q,G),le("gg",Q,G),le("GGGG",ne,V),le("gggg",ne,V),le("GGGGG",ie,J),le("ggggg",ie,J),ge(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=k(e)}),ge(["gg","GG"],function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)}),W("Q",0,"Qo","quarter"),D("quarter","Q"),q("quarter",7),le("Q",Z),pe("Q",function(e,t){t[1]=3*(k(e)-1)}),W("D",["DD",2],"Do","date"),D("date","D"),q("date",9),le("D",Q),le("DD",Q,G),le("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),pe(["D","DD"],2),pe("Do",function(e,t){t[2]=k(e.match(Q)[0])});var rn=Ae("Date",!0);W("DDD",["DDDD",3],"DDDo","dayOfYear"),D("dayOfYear","DDD"),q("dayOfYear",4),le("DDD",te),le("DDDD",X),pe(["DDD","DDDD"],function(e,t,n){n._dayOfYear=k(e)}),W("m",["mm",2],0,"minute"),D("minute","m"),q("minute",14),le("m",Q),le("mm",Q,G),pe(["m","mm"],4);var an=Ae("Minutes",!1);W("s",["ss",2],0,"second"),D("second","s"),q("second",15),le("s",Q),le("ss",Q,G),pe(["s","ss"],5);var on,sn=Ae("Seconds",!1);for(W("S",0,0,function(){return~~(this.millisecond()/100)}),W(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,function(){return 10*this.millisecond()}),W(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),W(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),W(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),W(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),W(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),D("millisecond","ms"),q("millisecond",16),le("S",te,Z),le("SS",te,G),le("SSS",te,X),on="SSSS";on.length<=9;on+="S")le(on,re);function cn(e,t){t[6]=k(1e3*("0."+e))}for(on="S";on.length<=9;on+="S")pe(on,cn);var un=Ae("Milliseconds",!1);W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var ln=b.prototype;function hn(e){return e}ln.add=Ut,ln.calendar=function(e,t){var n=e||Mt(),i=Pt(n,this).startOf("day"),a=r.calendarFormat(this,i)||"sameElse",o=t&&(z(t[a])?t[a].call(this,n):t[a]);return this.format(o||this.localeData().calendar(a,this,Mt(n)))},ln.clone=function(){return new b(this)},ln.diff=function(e,t,n){var i,r,a;if(!this.isValid())return NaN;if(!(i=Pt(e,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),t=P(t)){case"year":a=Zt(this,i)/12;break;case"month":a=Zt(this,i);break;case"quarter":a=Zt(this,i)/3;break;case"second":a=(this-i)/1e3;break;case"minute":a=(this-i)/6e4;break;case"hour":a=(this-i)/36e5;break;case"day":a=(this-i-r)/864e5;break;case"week":a=(this-i-r)/6048e5;break;default:a=this-i}return n?a:w(a)},ln.endOf=function(e){var t;if(void 0===(e=P(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?$t:Qt;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-Jt(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-Jt(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-Jt(t,1e3)-1}return this._d.setTime(t),r.updateOffset(this,!0),this},ln.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=U(this,e);return this.localeData().postformat(t)},ln.from=function(e,t){return this.isValid()&&(A(e)&&e.isValid()||Mt(e).isValid())?Ht({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ln.fromNow=function(e){return this.from(Mt(),e)},ln.to=function(e,t){return this.isValid()&&(A(e)&&e.isValid()||Mt(e).isValid())?Ht({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ln.toNow=function(e){return this.to(Mt(),e)},ln.get=function(e){return z(this[e=P(e)])?this[e]():this},ln.invalidAt=function(){return p(this).overflow},ln.isAfter=function(e,t){var n=A(e)?e:Mt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=P(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?U(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):z(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z")):U(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},ln.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+t+'[")]')},ln.toJSON=function(){return this.isValid()?this.toISOString():null},ln.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ln.unix=function(){return Math.floor(this.valueOf()/1e3)},ln.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ln.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ln.year=be,ln.isLeapYear=function(){return _e(this.year())},ln.weekYear=function(e){return tn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ln.isoWeekYear=function(e){return tn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},ln.quarter=ln.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},ln.month=ze,ln.daysInMonth=function(){return Me(this.year(),this.month())},ln.week=ln.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},ln.isoWeek=ln.isoWeeks=function(e){var t=qe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},ln.weeksInYear=function(){var e=this.localeData()._week;return Be(this.year(),e.dow,e.doy)},ln.isoWeeksInYear=function(){return Be(this.year(),1,4)},ln.date=rn,ln.day=ln.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},ln.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},ln.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},ln.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},ln.hour=ln.hours=$e,ln.minute=ln.minutes=an,ln.second=ln.seconds=sn,ln.millisecond=ln.milliseconds=un,ln.utcOffset=function(e,t,n){var i,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Dt(se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=Nt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==e&&(!t||this._changeInProgress?Wt(this,Ht(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:Nt(this)},ln.utc=function(e){return this.utcOffset(0,e)},ln.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Nt(this),"m")),this},ln.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Dt(oe,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},ln.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Mt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},ln.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ln.isLocal=function(){return!!this.isValid()&&!this._isUTC},ln.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ln.isUtc=It,ln.isUTC=It,ln.zoneAbbr=function(){return this._isUTC?"UTC":""},ln.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ln.dates=T("dates accessor is deprecated. Use date instead.",rn),ln.months=T("months accessor is deprecated. Use month instead",ze),ln.years=T("years accessor is deprecated. Use year instead",be),ln.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),ln.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(_(e,this),(e=wt(e))._a){var t=e._isUTC?f(e._a):Mt(e._a);this._isDSTShifted=this.isValid()&&M(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var dn=x.prototype;function fn(e,t,n,i){var r=st(),a=f().set(i,t);return r[n](a,e)}function pn(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return fn(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=fn(e,i,n,"month");return r}function gn(e,t,n,i){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var r,a=st(),o=e?a._week.dow:0;if(null!=n)return fn(t,(n+o)%7,i,"day");var s=[];for(r=0;r<7;r++)s[r]=fn(t,(r+o)%7,i,"day");return s}dn.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return z(i)?i.call(t,n):i},dn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},dn.invalidDate=function(){return this._invalidDate},dn.ordinal=function(e){return this._ordinal.replace("%d",e)},dn.preparse=hn,dn.postformat=hn,dn.relativeTime=function(e,t,n,i){var r=this._relativeTime[n];return z(r)?r(e,t,n,i):r.replace(/%d/i,e)},dn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return z(n)?n(t):n.replace(/%s/i,t)},dn.set=function(e){var t,n;for(n in e)z(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},dn.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ce).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone},dn.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ce.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},dn.monthsParse=function(e,t,n){var i,r,a;if(this._monthsParseExact)return Se.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=f([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(a="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},dn.monthsRegex=function(e){return this._monthsParseExact?(h(this,"_monthsRegex")||Re.call(this),e?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=xe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},dn.monthsShortRegex=function(e){return this._monthsParseExact?(h(this,"_monthsRegex")||Re.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=Oe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},dn.week=function(e){return qe(e,this._week.dow,this._week.doy).week},dn.firstDayOfYear=function(){return this._week.doy},dn.firstDayOfWeek=function(){return this._week.dow},dn.weekdays=function(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?He(n,this._week.dow):e?n[e.day()]:n},dn.weekdaysMin=function(e){return!0===e?He(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},dn.weekdaysShort=function(e){return!0===e?He(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},dn.weekdaysParse=function(e,t,n){var i,r,a;if(this._weekdaysParseExact)return We.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=f([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(a="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},dn.weekdaysRegex=function(e){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=Ue),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},dn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ke),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},dn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ze),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},dn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},dn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},at("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===k(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=T("moment.lang is deprecated. Use moment.locale instead.",at),r.langData=T("moment.langData is deprecated. Use moment.localeData instead.",st);var mn=Math.abs;function vn(e,t,n,i){var r=Ht(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function _n(e){return e<0?Math.floor(e):Math.ceil(e)}function yn(e){return 4800*e/146097}function bn(e){return 146097*e/4800}function An(e){return function(){return this.as(e)}}var wn=An("ms"),kn=An("s"),Mn=An("m"),Cn=An("h"),Tn=An("d"),Ln=An("w"),Sn=An("M"),En=An("Q"),zn=An("y");function On(e){return function(){return this.isValid()?this._data[e]:NaN}}var xn=On("milliseconds"),Rn=On("seconds"),Dn=On("minutes"),Pn=On("hours"),Nn=On("days"),In=On("months"),qn=On("years"),Bn=Math.round,Hn={ss:44,s:45,m:45,h:22,d:26,M:11};function Yn(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}var jn=Math.abs;function Fn(e){return(e>0)-(e<0)||+e}function Wn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=jn(this._milliseconds)/1e3,i=jn(this._days),r=jn(this._months);e=w(n/60),t=w(e/60),n%=60,e%=60;var a=w(r/12),o=r%=12,s=i,c=t,u=e,l=n?n.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var d=h<0?"-":"",f=Fn(this._months)!==Fn(h)?"-":"",p=Fn(this._days)!==Fn(h)?"-":"",g=Fn(this._milliseconds)!==Fn(h)?"-":"";return d+"P"+(a?f+a+"Y":"")+(o?f+o+"M":"")+(s?p+s+"D":"")+(c||u||l?"T":"")+(c?g+c+"H":"")+(u?g+u+"M":"")+(l?g+l+"S":"")}var Un=Et.prototype;return Un.isValid=function(){return this._isValid},Un.abs=function(){var e=this._data;return this._milliseconds=mn(this._milliseconds),this._days=mn(this._days),this._months=mn(this._months),e.milliseconds=mn(e.milliseconds),e.seconds=mn(e.seconds),e.minutes=mn(e.minutes),e.hours=mn(e.hours),e.months=mn(e.months),e.years=mn(e.years),this},Un.add=function(e,t){return vn(this,e,t,1)},Un.subtract=function(e,t){return vn(this,e,t,-1)},Un.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=P(e))||"quarter"===e||"year"===e)switch(n=this._months+yn(t=this._days+i/864e5),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(bn(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},Un.asMilliseconds=wn,Un.asSeconds=kn,Un.asMinutes=Mn,Un.asHours=Cn,Un.asDays=Tn,Un.asWeeks=Ln,Un.asMonths=Sn,Un.asQuarters=En,Un.asYears=zn,Un.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN},Un._bubble=function(){var e,t,n,i,r,a=this._milliseconds,o=this._days,s=this._months,c=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*_n(bn(s)+o),o=0,s=0),c.milliseconds=a%1e3,e=w(a/1e3),c.seconds=e%60,t=w(e/60),c.minutes=t%60,n=w(t/60),c.hours=n%24,o+=w(n/24),s+=r=w(yn(o)),o-=_n(bn(r)),i=w(s/12),s%=12,c.days=o,c.months=s,c.years=i,this},Un.clone=function(){return Ht(this)},Un.get=function(e){return e=P(e),this.isValid()?this[e+"s"]():NaN},Un.milliseconds=xn,Un.seconds=Rn,Un.minutes=Dn,Un.hours=Pn,Un.days=Nn,Un.weeks=function(){return w(this.days()/7)},Un.months=In,Un.years=qn,Un.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var i=Ht(e).abs(),r=Bn(i.as("s")),a=Bn(i.as("m")),o=Bn(i.as("h")),s=Bn(i.as("d")),c=Bn(i.as("M")),u=Bn(i.as("y")),l=r<=Hn.ss&&["s",r]||r0,l[4]=n,Yn.apply(null,l)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},Un.toISOString=Wn,Un.toString=Wn,Un.toJSON=Wn,Un.locale=Gt,Un.localeData=Vt,Un.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Wn),Un.lang=Xt,W("X",0,0,"unix"),W("x",0,0,"valueOf"),le("x",ae),le("X",/[+-]?\d+(\.\d{1,3})?/),pe("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),pe("x",function(e,t,n){n._d=new Date(k(e))}),r.version="2.24.0",t=Mt,r.fn=ln,r.min=function(){return Lt("isBefore",[].slice.call(arguments,0))},r.max=function(){return Lt("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=f,r.unix=function(e){return Mt(1e3*e)},r.months=function(e,t){return pn(e,t,"months")},r.isDate=u,r.locale=at,r.invalid=m,r.duration=Ht,r.isMoment=A,r.weekdays=function(e,t,n){return gn(e,t,n,"weekdays")},r.parseZone=function(){return Mt.apply(null,arguments).parseZone()},r.localeData=st,r.isDuration=zt,r.monthsShort=function(e,t){return pn(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return gn(e,t,n,"weekdaysMin")},r.defineLocale=ot,r.updateLocale=function(e,t){if(null!=t){var n,i,r=et;null!=(i=rt(e))&&(r=i._config),(n=new x(t=O(r,t))).parentLocale=tt[e],tt[e]=n,at(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?tt[e]=tt[e].parentLocale:null!=tt[e]&&delete tt[e]);return tt[e]},r.locales=function(){return L(tt)},r.weekdaysShort=function(e,t,n){return gn(e,t,n,"weekdaysShort")},r.normalizeUnits=P,r.relativeTimeRounding=function(e){return void 0===e?Bn:"function"==typeof e&&(Bn=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Hn[e]&&(void 0===t?Hn[e]:(Hn[e]=t,"s"===e&&(Hn.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=ln,r.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"},r}()},963:function(e){"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,i,r){i=i||"=";var a={};if("string"!=typeof e||0===e.length)return a;var o=/\+/g;e=e.split(n=n||"&");var s=1e3;r&&"number"==typeof r.maxKeys&&(s=r.maxKeys);var c=e.length;s>0&&c>s&&(c=s);for(var u=0;u=0?(l=p.substr(0,g),h=p.substr(g+1)):(l=p,h=""),d=decodeURIComponent(l),f=decodeURIComponent(h),t(a,d)?Array.isArray(a[d])?a[d].push(f):a[d]=[a[d],f]:a[d]=f}return a}},5341:function(e){"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,n,i,r){return n=n||"&",i=i||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map(function(r){var a=encodeURIComponent(t(r))+i;return Array.isArray(e[r])?e[r].map(function(e){return a+encodeURIComponent(t(e))}).join(n):a+encodeURIComponent(t(e[r]))}).join(n):r?encodeURIComponent(t(r))+i+encodeURIComponent(t(e)):""}},6577:function(e,t,n){"use strict";n(963),n(5341)},9867:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var i=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this)).parent=e,a.outerValue=i,a.outerIndex=r,a.index=0,a}return _createClass(n,[{key:"_next",value:function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}},{key:"_error",value:function(e){this.parent.notifyError(e,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(n(6673).L)},3103:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});var i=n(653),r=n(878),a=n(1225),o=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.kind=t,this.value=n,this.error=i,this.hasValue="N"===t}return _createClass(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return(0,r.of)(this.value);case"E":return(0,a._)(this.error);case"C":return(0,i.c)()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}();return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}()},8318:function(e,t,n){"use strict";n.d(t,{y:function(){return u}});var i=n(6673),r=n(5331),a=n(7498),o=n(6197),s=n(3392),c=n(1484),u=function(){var e=function(){function e(t){_classCallCheck(this,e),this._isScalar=!1,t&&(this._subscribe=t)}return _createClass(e,[{key:"lift",value:function(t){var n=new e;return n.source=this,n.operator=t,n}},{key:"subscribe",value:function(e,t,n){var o=this.operator,s=function(e,t,n){if(e){if(e instanceof i.L)return e;if(e[r.b])return e[r.b]()}return e||t||n?new i.L(e,t,n):new i.L(a.c)}(e,t,n);if(s.add(o?o.call(s,this.source):this.source||c.v.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),c.v.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){c.v.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e,n=t.closed,r=t.destination,a=t.isStopped;if(n||a)return!1;e=r&&r instanceof i.L?r:null}return!0}(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=l(t))(function(t,i){var r;r=n.subscribe(function(t){try{e(t)}catch(n){i(n),r&&r.unsubscribe()}},i,t)})}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:o.L,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&"number"==typeof t[t.length-1]&&(s=t.pop())):"number"==typeof u&&(s=t.pop()),null===c&&1===t.length&&t[0]instanceof i.y?t[0]:(0,a.J)(s)((0,o.n)(t,c))}},878:function(e,t,n){"use strict";n.d(t,{of:function(){return o}});var i=n(6163),r=n(9342),a=n(2570);function o(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:r.P;return function(n){return n.lift(new o(e,t))}}var o=function(){function e(t,n){_classCallCheck(this,e),this.dueTime=t,this.scheduler=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new s(e,this.dueTime,this.scheduler))}}]),e}(),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e)).dueTime=i,a.scheduler=r,a.debouncedSubscription=null,a.lastValue=null,a.hasValue=!1,a}return _createClass(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(i.L);function c(e){e.debouncedNext()}},7768:function(e,t,n){"use strict";n.d(t,{d:function(){return r}});var i=n(6673);function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new a(e))}}var a=function(){function e(t){_classCallCheck(this,e),this.defaultValue=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new o(e,this.defaultValue))}}]),e}(),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).defaultValue=i,r.isEmpty=!0,r}return _createClass(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(i.L)},509:function(e,t,n){"use strict";n.d(t,{g:function(){return s}});var i=n(8569),r=n(8802),a=n(6673),o=n(3103);function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.P,n=(0,r.J)(e)?+e-t.now():Math.abs(e);return function(e){return e.lift(new c(n,t))}}var c=function(){function e(t,n){_classCallCheck(this,e),this.delay=t,this.scheduler=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.delay,this.scheduler))}}]),e}(),u=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e)).delay=i,a.scheduler=r,a.queue=[],a.active=!1,a.errored=!1,a}return _createClass(n,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new l(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(o.P.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(o.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,i=e.scheduler,r=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var a=Math.max(0,n[0].time-i.now());this.schedule(e,a)}else this.unsubscribe(),t.active=!1}}]),n}(a.L),l=function e(t,n){_classCallCheck(this,e),this.time=t,this.notification=n}},3835:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});var i=n(6673);function r(e,t){return function(n){return n.lift(new a(e,t))}}var a=function(){function e(t,n){_classCallCheck(this,e),this.predicate=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new o(e,this.predicate,this.thisArg))}}]),e}(),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e)).predicate=i,a.thisArg=r,a.count=0,a}return _createClass(n,[{key:"_next",value:function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}]),n}(i.L)},3530:function(e,t,n){"use strict";n.d(t,{P:function(){return u}});var i=n(9665),r=n(3835),a=n(611),o=n(7768),s=n(790),c=n(3392);function u(e,t){var n=arguments.length>=2;return function(u){return u.pipe(e?(0,r.h)(function(t,n){return e(t,n,u)}):c.y,(0,a.q)(1),n?(0,o.d)(t):(0,s.T)(function(){return new i.K}))}}},9996:function(e,t,n){"use strict";n.d(t,{U:function(){return r}});var i=n(6673);function r(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new a(e,t))}}var a=function(){function e(t,n){_classCallCheck(this,e),this.project=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new o(e,this.project,this.thisArg))}}]),e}(),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e)).project=i,a.count=0,a.thisArg=r||_assertThisInitialized(a),a}return _createClass(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(i.L)},7471:function(e,t,n){"use strict";n.d(t,{J:function(){return a}});var i=n(3982),r=n(3392);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return(0,i.zg)(r.y,e)}},3982:function(e,t,n){"use strict";n.d(t,{zg:function(){return c}});var i=n(6268),r=n(9829),a=n(9867),o=n(9996),s=n(9764);function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(i){return i.pipe(c(function(n,i){return(0,s.D)(e(n,i)).pipe((0,o.U)(function(e,r){return t(n,e,i,r)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new u(e,n))})}var u=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;_classCallCheck(this,e),this.project=t,this.concurrent=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new l(e,this.project,this.concurrent))}}]),e}(),l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _classCallCheck(this,n),(r=t.call(this,e)).project=i,r.concurrent=a,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return _createClass(n,[{key:"_next",value:function(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(r.L)},1564:function(e,t,n){"use strict";n.d(t,{x:function(){return r}});var i=n(6673);function r(){return function(e){return e.lift(new a(e))}}var a=function(){function e(t){_classCallCheck(this,e),this.connectable=t}return _createClass(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var i=new o(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),e}(),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).connectable=i,r}return _createClass(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null}}]),n}(i.L)},1055:function(e,t,n){"use strict";n.d(t,{B:function(){return s}});var i=n(2875),r=n(1564),a=n(5959);function o(){return new a.xQ}function s(){return function(e){return(0,r.x)()((t=o,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,i.N);return r.source=e,r.subjectFactory=n,r})(e));var t}}},4689:function(e,t,n){"use strict";n.d(t,{w:function(){return c}});var i=n(9829),r=n(9867),a=n(6268),o=n(9996),s=n(9764);function c(e,t){return"function"==typeof t?function(n){return n.pipe(c(function(n,i){return(0,s.D)(e(n,i)).pipe((0,o.U)(function(e,r){return t(n,e,i,r)}))}))}:function(t){return t.lift(new u(e))}}var u=function(){function e(t){_classCallCheck(this,e),this.project=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new l(e,this.project))}}]),e}(),l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).project=i,r.index=0,r}return _createClass(n,[{key:"_next",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this._innerSub(t,e,n)}},{key:"_innerSub",value:function(e,t,n){var i=this.innerSubscription;i&&i.unsubscribe();var o=new r.d(this,t,n),s=this.destination;s.add(o),this.innerSubscription=(0,a.D)(this,e,void 0,void 0,o),this.innerSubscription!==o&&s.add(this.innerSubscription)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||_get(_getPrototypeOf(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=null}},{key:"notifyComplete",value:function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&_get(_getPrototypeOf(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e,t,n,i,r){this.destination.next(t)}}]),n}(i.L)},611:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var i=n(6673),r=n(8402),a=n(653);function o(e){return function(t){return 0===e?(0,a.c)():t.lift(new s(e))}}var s=function(){function e(t){if(_classCallCheck(this,e),this.total=t,this.total<0)throw new r.W}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new c(e,this.total))}}]),e}(),c=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return _createClass(n,[{key:"_next",value:function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}]),n}(i.L)},6599:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var i=n(6673);function r(){}var a=n(5024);function o(e,t,n){return function(i){return i.lift(new s(e,t,n))}}var s=function(){function e(t,n,i){_classCallCheck(this,e),this.nextOrObserver=t,this.error=n,this.complete=i}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new c(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),c=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,o,s){var c;return _classCallCheck(this,n),(c=t.call(this,e))._tapNext=r,c._tapError=r,c._tapComplete=r,c._tapError=o||r,c._tapComplete=s||r,(0,a.m)(i)?(c._context=_assertThisInitialized(c),c._tapNext=i):i&&(c._context=i,c._tapNext=i.next||r,c._tapError=i.error||r,c._tapComplete=i.complete||r),c}return _createClass(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(i.L)},790:function(e,t,n){"use strict";n.d(t,{T:function(){return a}});var i=n(9665),r=n(6673);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return function(t){return t.lift(new o(e))}}var o=function(){function e(t){_classCallCheck(this,e),this.errorFactory=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new s(e,this.errorFactory))}}]),e}(),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).errorFactory=i,r.hasValue=!1,r}return _createClass(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(r.L);function c(){return new i.K}},9085:function(e,t,n){"use strict";n.d(t,{V:function(){return h}});var i=n(8569),r=function(){function e(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return e.prototype=Object.create(Error.prototype),e}(),a=n(8802),o=n(9829),s=n(6268),c=function(){function e(t,n,i,r){_classCallCheck(this,e),this.waitFor=t,this.absoluteTimeout=n,this.withObservable=i,this.scheduler=r}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}]),e}(),u=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o){var s;return _classCallCheck(this,n),(s=t.call(this,e)).absoluteTimeout=i,s.waitFor=r,s.withObservable=a,s.scheduler=o,s.action=null,s.scheduleTimeout(),s}return _createClass(n,[{key:"scheduleTimeout",value:function(){var e=this.action;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(n.dispatchTimeout,this.waitFor,this))}},{key:"_next",value:function(e){this.absoluteTimeout||this.scheduleTimeout(),_get(_getPrototypeOf(n.prototype),"_next",this).call(this,e)}},{key:"_unsubscribe",value:function(){this.action=null,this.scheduler=null,this.withObservable=null}}],[{key:"dispatchTimeout",value:function(e){var t=e.withObservable;e._unsubscribeAndRecycle(),e.add((0,s.D)(e,t))}}]),n}(o.L),l=n(1225);function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.P;return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.P;return function(i){var r=(0,a.J)(e),o=r?+e-n.now():Math.abs(e);return i.lift(new c(o,r,t,n))}}(e,(0,l._)(new r),t)}},2570:function(e,t,n){"use strict";n.d(t,{r:function(){return a}});var i=n(8318),r=n(7570);function a(e,t){return new i.y(function(n){var i=new r.w,a=0;return i.add(t.schedule(function(){a!==e.length?(n.next(e[a++]),n.closed||i.add(this.schedule())):n.complete()})),i})}},8277:function(e,t,n){"use strict";n.d(t,{o:function(){return i}});var i=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r.pending=!1,r}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n,i=!1;try{this.work(e)}catch(r){i=!0,n=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),n}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){return _classCallCheck(this,n),t.call(this)}return _createClass(n,[{key:"schedule",value:function(e){return this}}]),n}(n(7570).w))},1098:function(e,t,n){"use strict";n.d(t,{v:function(){return r}});var i=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;_classCallCheck(this,e),this.SchedulerAction=t,this.now=n}return _createClass(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}(),r=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.now;return _classCallCheck(this,n),(r=t.call(this,e,function(){return n.delegate&&n.delegate!==_assertThisInitialized(r)?n.delegate.now():a()})).actions=[],r.active=!1,r.scheduled=void 0,r}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,i):_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,e,t,i)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(i)},8569:function(e,t,n){"use strict";n.d(t,{P:function(){return r}});var i=n(8277),r=new(n(1098).v)(i.o)},5686:function(e,t,n){"use strict";n.d(t,{hZ:function(){return i}});var i="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},6197:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var i="function"==typeof Symbol&&Symbol.observable||"@@observable"},5331:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var i="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},8402:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var i=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}()},9665:function(e,t,n){"use strict";n.d(t,{K:function(){return i}});var i=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}()},3895:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});var i=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},4294:function(e,t,n){"use strict";function i(e){setTimeout(function(){throw e},0)}n.d(t,{z:function(){return i}})},3392:function(e,t,n){"use strict";function i(e){return e}n.d(t,{y:function(){return i}})},8470:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var i=Array.isArray||function(e){return e&&"number"==typeof e.length}},9653:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var i=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},8802:function(e,t,n){"use strict";function i(e){return e instanceof Date&&!isNaN(+e)}n.d(t,{J:function(){return i}})},5024:function(e,t,n){"use strict";function i(e){return"function"==typeof e}n.d(t,{m:function(){return i}})},2056:function(e,t,n){"use strict";function i(e){return null!==e&&"object"==typeof e}n.d(t,{K:function(){return i}})},5168:function(e,t,n){"use strict";function i(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,{t:function(){return i}})},6163:function(e,t,n){"use strict";function i(e){return e&&"function"==typeof e.schedule}n.d(t,{K:function(){return i}})},6015:function(e,t,n){"use strict";n.d(t,{s:function(){return l}});var i=n(625),r=n(4294),a=n(5686),o=n(6197),s=n(9653),c=n(5168),u=n(2056),l=function(e){if(e&&"function"==typeof e[o.L])return l=e,function(e){var t=l[o.L]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if((0,s.z)(e))return(0,i.V)(e);if((0,c.t)(e))return n=e,function(e){return n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,r.z),e};if(e&&"function"==typeof e[a.hZ])return t=e,function(e){for(var n=t[a.hZ]();;){var i=n.next();if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e};var t,n,l,h=(0,u.K)(e)?"an invalid object":"'".concat(e,"'");throw new TypeError("You provided ".concat(h," where a stream was expected. You can provide an Observable, Promise, Array, or Iterable."))}},625:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var i=function(e){return function(t){for(var n=0,i=e.length;n4&&void 0!==arguments[4]?arguments[4]:new i.d(e,n,o);if(!s.closed)return t instanceof a.y?t.subscribe(s):(0,r.s)(t)(s)}},7632:function(e,t,n){"use strict";function i(e,t,n,i){return new(n||(n=Promise))(function(r,a){function o(e){try{c(i.next(e))}catch(t){a(t)}}function s(e){try{c(i.throw(e))}catch(t){a(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,s)}c((i=i.apply(e,t||[])).next())})}n.d(t,{mG:function(){return i}})},4360:function(e){"use strict";e.exports=JSON.parse('{"version":"2020a","zones":["Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5","Africa/Accra|LMT GMT +0020|.Q 0 -k|012121212121212121212121212121212121212121212121|-26BbX.8 6tzX.8 MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE|41e5","Africa/Nairobi|LMT EAT +0230 +0245|-2r.g -30 -2u -2J|01231|-1F3Cr.g 3Dzr.g okMu MFXJ|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 WAT|-d.A -10|01|-22y0d.A|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 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 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 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 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|01212121212121212121212121212121213|-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|","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/Port_of_Spain|LMT AST|46.4 40|01|-2kNvR.U|43e3","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/Curacao|LMT -0430 AST|4z.L 4u 40|012|-2kV7o.d 28KLS.d|15e4","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/Atikokan|CST CDT CWT CPT EST|60 50 50 50 50|0101234|-25TQ0 1in0 Rnb0 3je0 8x30 iw0|28e2","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 BMT AST ADT|3W.t 3W.t 40 30|01232323232|-1Q0I1.v jsM0 1ODC1.v 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 CDT|5Q.M 60 5u 50|01212121212121212121212121212121212121212121212121213131|-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 1wou Rbu 1f0Mu qn0 lxB0 mn0|57e3","America/Blanc-Sablon|AST ADT AWT APT|40 30 30 30|010230|-25TS0 1in0 UGp0 8x50 iu0|11e2","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/Panama|CMT EST|5j.A 50|01|-2uduE.o|15e5","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/Creston|MST PST|70 80|010|-29DR0 43B0|53e2","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|01010230405656565656565656565656565656565656565656565656565656565656565656565656565656565657|-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|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|01212121212121212121212121212121212121212121212121212121212121212121212121232121212121212121212121212121212121212121|-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 1zb0 5Ip0 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 -0345 -03 -04|3Q.E 3J 30 40|0123|-2dvU7.k 2r6LQ.k Bxbf|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/Nassau|LMT EST EDT|59.u 50 40|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2kNuO.u 26XdO.u 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|24e4","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/Phoenix|MST MDT MWT|70 60 60|01010202010|-261r0 1nX0 11B0 1nX0 SgN0 4Al1 Ap0 1db0 SWqX 1cL0|42e5","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/Puerto_Rico|AST AWT APT|40 30 30|0120|-17lU0 7XT0 iu0|24e5","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|01010230405656565656565656565656565656565656565656565656565656565656565656565656565656565657|-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|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|01212121|-2q00 1DjS0 T90 40P0 KL0 blz0 3m10|10","Antarctica/Davis|-00 +07 +05|0 -70 -50|01012121|-vyo0 iXt0 alj0 1D7v0 VB0 3Wn0 KN0|70","Antarctica/DumontDUrville|-00 +10|0 -a0|0101|-U0o0 cfq0 bFm0|80","Antarctica/Macquarie|AEST AEDT -00 +11|-a0 -b0 0 -b0|0102010101010101010101010101010101010101010101010101010101010101010101010101010101010101013|-29E80 19X0 4SL0 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 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","Antarctica/Syowa|-00 +03|0 -30|01|-vs00|20","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/Riyadh|LMT +03|-36.Q -30|01|-TvD6.Q|57e5","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 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|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|0101010101010101010101010101010123232323232323232323232323232320101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2q0 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 pBd0 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 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 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 1nz0 1220 1qL0 WN0 1qL0 WN0 1qL0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0|18e5","Asia/Hebron|EET EEST IST IDT|-20 -30 -20 -30|010101010101010101010101010101012323232323232323232323232323232010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2q0 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 pBd0 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 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 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 1nz0 1220 1qL0 WN0 1qL0 WN0 1qL0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0|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|012121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-26Bek.E SyMk.E 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 3LB0 Em0 or0 1cn0 1dB0 16n0 10O0 1ja0 1tC0 14o0 1cM0 1a00 11A0 1Na0 An0 1MP0 AJ0 1Kp0 LC0 1oo0 Wl0 EQN0 Db0 1fB0 Rb0 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 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|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121232323232323232323232323232323234323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-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 3Co0 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|LMT AST ADT|4j.i 40 30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1BnRE.G 1LTbE.G 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|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-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 3Co0 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|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0|20e5","Australia/Broken_Hill|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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/Currie|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 19X0 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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|746","Australia/Darwin|ACST ACDT|-9u -au|010101010|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0|12e4","Australia/Eucla|+0845 +0945|-8J -9J|0101010101010101010|-293kI xcX 10jd0 yL0 1cN0 1cL0 1gSp0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|368","Australia/Hobart|AEST AEDT|-a0 -b0|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 19X0 10jd0 yL0 1cN0 1cL0 1fB0 19X0 VfB0 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/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|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0|10","Australia/Melbourne|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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|-293jX xcX 10jd0 yL0 1cN0 1cL0 1gSp0 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||","Pacific/Port_Moresby|+10|-a0|0||25e4","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 1ip0 17b0 1op0 1tb0 Q2m0 3Ne0 WM0 1fA0 1cM0 1cM0 1oJ0 1dc0 1030 1fA0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1iM0 1fA0 8Ha0 Rb0 1wN0 Rb0 1BB0 Lz0 1C20 LB0 SNX0 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|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|012121212121212121212121212121212121212121212321232123212321212121212121212121212121212121212121214121212121212121212121212121212124545454212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-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 3Co0 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|-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 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|-2nco8.l cNb8.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|012323232323232321212121212121212121212121212121212121212121212|-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|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|-2yO3F.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|01232345454545454545454545454545454545454545454545454545454|-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 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|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|0121212121212121212121|-2l9nd.g 2Szcd.g 1cL0 1oN0 10L0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 Lz0 1Nd0 An0|66e3","Pacific/Enderbury|-12 -11 +13|c0 b0 -d0|012|nIc0 B7X0|1","Pacific/Fakaofo|-11 +13|b0 -d0|01|1Gfn0|483","Pacific/Fiji|LMT +12 +13|-bT.I -c0 -d0|0121212121212121212121212121212121212121212121212121212121212121|-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 20o0 s00 20o0 pc0 20o0 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|-1120 -1130 -11|bk bu b0|012|-KfME 17y0a|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|-1030 -0930 -10|au 9u a0|012121212121212121212121212|lyWu 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|+1220 +13 +14|-ck -d0 -e0|0121212121|-1aB0k 2n5dk 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/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/Atikokan|America/Coral_Harbour","America/Chicago|US/Central","America/Curacao|America/Aruba","America/Curacao|America/Kralendijk","America/Curacao|America/Lower_Princes","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/Los_Angeles|US/Pacific-New","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/Cayman","America/Phoenix|US/Arizona","America/Port_of_Spain|America/Anguilla","America/Port_of_Spain|America/Antigua","America/Port_of_Spain|America/Dominica","America/Port_of_Spain|America/Grenada","America/Port_of_Spain|America/Guadeloupe","America/Port_of_Spain|America/Marigot","America/Port_of_Spain|America/Montserrat","America/Port_of_Spain|America/St_Barthelemy","America/Port_of_Spain|America/St_Kitts","America/Port_of_Spain|America/St_Lucia","America/Port_of_Spain|America/St_Thomas","America/Port_of_Spain|America/St_Vincent","America/Port_of_Spain|America/Tortola","America/Port_of_Spain|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|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|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/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/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|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/Currie 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/Vancouver America/Whitehorse America/Dawson","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/Astrakhan Europe/Volgograd 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"]}')},6700:function(e,t,n){var i={"./af":776,"./af.js":776,"./ar":7634,"./ar-dz":2758,"./ar-dz.js":2758,"./ar-kw":4980,"./ar-kw.js":4980,"./ar-ly":9602,"./ar-ly.js":9602,"./ar-ma":2500,"./ar-ma.js":2500,"./ar-sa":6909,"./ar-sa.js":6909,"./ar-tn":2735,"./ar-tn.js":2735,"./ar.js":7634,"./az":7798,"./az.js":7798,"./be":9949,"./be.js":9949,"./bg":4590,"./bg.js":4590,"./bm":5938,"./bm.js":5938,"./bn":595,"./bn.js":595,"./bo":4756,"./bo.js":4756,"./br":7277,"./br.js":7277,"./bs":4166,"./bs.js":4166,"./ca":3943,"./ca.js":3943,"./cs":3474,"./cs.js":3474,"./cv":2218,"./cv.js":2218,"./cy":1061,"./cy.js":1061,"./da":2743,"./da.js":2743,"./de":1899,"./de-at":8580,"./de-at.js":8580,"./de-ch":3264,"./de-ch.js":3264,"./de.js":1899,"./dv":8784,"./dv.js":8784,"./el":4654,"./el.js":4654,"./en-SG":4047,"./en-SG.js":4047,"./en-au":6277,"./en-au.js":6277,"./en-ca":6896,"./en-ca.js":6896,"./en-gb":1609,"./en-gb.js":1609,"./en-ie":4557,"./en-ie.js":4557,"./en-il":5836,"./en-il.js":5836,"./en-nz":3586,"./en-nz.js":3586,"./eo":2777,"./eo.js":2777,"./es":3357,"./es-do":3128,"./es-do.js":3128,"./es-us":3256,"./es-us.js":3256,"./es.js":3357,"./et":2654,"./et.js":2654,"./eu":7287,"./eu.js":7287,"./fa":5210,"./fa.js":5210,"./fi":3431,"./fi.js":3431,"./fo":1781,"./fo.js":1781,"./fr":1717,"./fr-ca":1539,"./fr-ca.js":1539,"./fr-ch":9847,"./fr-ch.js":9847,"./fr.js":1717,"./fy":2250,"./fy.js":2250,"./ga":7665,"./ga.js":7665,"./gd":5214,"./gd.js":5214,"./gl":6154,"./gl.js":6154,"./gom-latn":8518,"./gom-latn.js":8518,"./gu":9221,"./gu.js":9221,"./he":4743,"./he.js":4743,"./hi":7339,"./hi.js":7339,"./hr":3224,"./hr.js":3224,"./hu":856,"./hu.js":856,"./hy-am":6855,"./hy-am.js":6855,"./id":2190,"./id.js":2190,"./is":3887,"./is.js":3887,"./it":9270,"./it-ch":5890,"./it-ch.js":5890,"./it.js":9270,"./ja":6595,"./ja.js":6595,"./jv":3081,"./jv.js":3081,"./ka":7477,"./ka.js":7477,"./kk":3978,"./kk.js":3978,"./km":9205,"./km.js":9205,"./kn":25,"./kn.js":25,"./ko":427,"./ko.js":427,"./ku":9089,"./ku.js":9089,"./ky":9314,"./ky.js":9314,"./lb":3136,"./lb.js":3136,"./lo":9115,"./lo.js":9115,"./lt":7087,"./lt.js":7087,"./lv":5683,"./lv.js":5683,"./me":9454,"./me.js":9454,"./mi":5507,"./mi.js":5507,"./mk":8466,"./mk.js":8466,"./ml":2933,"./ml.js":2933,"./mn":9477,"./mn.js":9477,"./mr":3597,"./mr.js":3597,"./ms":5529,"./ms-my":9965,"./ms-my.js":9965,"./ms.js":5529,"./mt":259,"./mt.js":259,"./my":8061,"./my.js":8061,"./nb":2618,"./nb.js":2618,"./ne":8452,"./ne.js":8452,"./nl":1885,"./nl-be":413,"./nl-be.js":413,"./nl.js":1885,"./nn":5107,"./nn.js":5107,"./pa-in":702,"./pa-in.js":702,"./pl":1711,"./pl.js":1711,"./pt":594,"./pt-br":8238,"./pt-br.js":8238,"./pt.js":594,"./ro":4681,"./ro.js":4681,"./ru":6201,"./ru.js":6201,"./sd":2912,"./sd.js":2912,"./se":6002,"./se.js":6002,"./si":7942,"./si.js":7942,"./sk":5577,"./sk.js":5577,"./sl":1775,"./sl.js":1775,"./sq":6823,"./sq.js":6823,"./sr":9038,"./sr-cyrl":3848,"./sr-cyrl.js":3848,"./sr.js":9038,"./ss":6173,"./ss.js":6173,"./sv":5788,"./sv.js":5788,"./sw":6882,"./sw.js":6882,"./ta":2678,"./ta.js":2678,"./te":2797,"./te.js":2797,"./tet":2447,"./tet.js":2447,"./tg":1335,"./tg.js":1335,"./th":8667,"./th.js":8667,"./tl-ph":9914,"./tl-ph.js":9914,"./tlh":1389,"./tlh.js":1389,"./tr":3578,"./tr.js":3578,"./tzl":6969,"./tzl.js":6969,"./tzm":6509,"./tzm-latn":690,"./tzm-latn.js":690,"./tzm.js":6509,"./ug-cn":55,"./ug-cn.js":55,"./uk":2452,"./uk.js":2452,"./ur":1151,"./ur.js":1151,"./uz":1555,"./uz-latn":6547,"./uz-latn.js":6547,"./uz.js":1555,"./vi":6541,"./vi.js":6541,"./x-pseudo":2401,"./x-pseudo.js":2401,"./yo":2341,"./yo.js":2341,"./zh-cn":619,"./zh-cn.js":619,"./zh-hk":7058,"./zh-hk.js":7058,"./zh-tw":2782,"./zh-tw.js":2782};function r(e){var t=a(e);return n(t)}function a(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=a,e.exports=r,r.id=6700},306:function(e){"use strict";e.exports={i8:"5.2.0"}}},function(e){"use strict";e(e.s=5411)}])})(); \ No newline at end of file +(function(){function _wrapNativeSuper(e){var t="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(e){if(null===e||!_isNativeFunction(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(n,e)})(e)}function _construct(e,t,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&_setPrototypeOf(r,n.prototype),r}).apply(null,arguments)}function _isNativeFunction(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function _toArray(e){return _arrayWithHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableRest()}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){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 _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(a.push(i.value),!t||a.length!==t);o=!0);}catch(c){s=!0,r=c}finally{try{o||null==n.return||n.return()}finally{if(s)throw r}}return a}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _createForOfIteratorHelper(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n1&&void 0!==arguments[1])||arguments[1],i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},a.dqk.getAllAngularTestabilities=function(){return e.getAllTestabilities()},a.dqk.getAllAngularRootElements=function(){return e.getAllRootElements()},a.dqk.frameworkStabilizers||(a.dqk.frameworkStabilizers=[]),a.dqk.frameworkStabilizers.push(function(e){var t=a.dqk.getAllAngularTestabilities(),n=t.length,i=!1,r=function(t){i=i||t,0==--n&&e(i)};t.forEach(function(e){e.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return null!=i?i:n?(0,r.q)().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){(0,a.VLi)(new e)}}]),e}(),h=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}(),d=new a.OlP("EventManagerPlugins"),f=function(){var e=function(){function e(t,n){var i=this;_classCallCheck(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=i}),this._plugins=t.slice().reverse()}return _createClass(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,i=0;i-1&&(t.splice(n,1),a+=e+".")}),a+=r,0!=t.length||0===r.length)return null;var o={};return o.domEventName=i,o.fullKey=a,o}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&E.hasOwnProperty(t)&&(t=E[t]))}return S[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),L.forEach(function(i){i!=n&&(0,z[i])(e)&&(t+=i+".")}),t+=n}},{key:"eventCallback",value:function(e,t,i){return function(r){n.getEventFullKey(r)===e&&i.runGuarded(function(){return t(r)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(p);return e.\u0275fac=function(t){return new(t||e)(a.LFG(r.K0))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}(),x=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,a.Yz7)({factory:function(){return(0,a.LFG)(D)},token:e,providedIn:"root"}),e}();function R(e){return new D(e.get(r.K0))}var D=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._doc=e,i}return _createClass(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case a.q3G.NONE:return t;case a.q3G.HTML:return(0,a.qzn)(t,"HTML")?(0,a.z3N)(t):(0,a.EiD)(this._doc,String(t)).toString();case a.q3G.STYLE:return(0,a.qzn)(t,"Style")?(0,a.z3N)(t):t;case a.q3G.SCRIPT:if((0,a.qzn)(t,"Script"))return(0,a.z3N)(t);throw new Error("unsafe value used in a script context");case a.q3G.URL:return(0,a.yhl)(t),(0,a.qzn)(t,"URL")?(0,a.z3N)(t):(0,a.mCW)(String(t));case a.q3G.RESOURCE_URL:if((0,a.qzn)(t,"ResourceURL"))return(0,a.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 ".concat(e," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return(0,a.JVY)(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return(0,a.L6k)(e)}},{key:"bypassSecurityTrustScript",value:function(e){return(0,a.eBb)(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return(0,a.LAX)(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return(0,a.pB0)(e)}}]),n}(x);return e.\u0275fac=function(t){return new(t||e)(a.LFG(r.K0))},e.\u0275prov=(0,a.Yz7)({factory:function(){return R((0,a.LFG)(a.gxx))},token:e,providedIn:"root"}),e}(),P=(0,a.eFA)(a._c5,"browser",[{provide:a.Lbi,useValue:r.bD},{provide:a.g9A,useValue:function(){o.makeCurrent(),l.init()},multi:!0},{provide:r.K0,useFactory:function(){return(0,a.RDi)(document),document},deps:[]}]),N=[[],{provide:a.zSh,useValue:"root"},{provide:a.qLn,useFactory:function(){return new a.qLn},deps:[]},{provide:d,useClass:T,multi:!0,deps:[r.K0,a.R0b,a.Lbi]},{provide:d,useClass:O,multi:!0,deps:[r.K0]},[],{provide:w,useClass:w,deps:[f,m,a.AFp]},{provide:a.FYo,useExisting:w},{provide:g,useExisting:m},{provide:m,useClass:m,deps:[r.K0]},{provide:a.dDg,useClass:a.dDg,deps:[a.R0b]},{provide:f,useClass:f,deps:[d,a.R0b]},{provide:r.JF,useClass:h,deps:[]},[]],I=function(){var e=function(){function e(t){if(_classCallCheck(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return _createClass(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:a.AFp,useValue:t.appId},{provide:c,useExisting:a.AFp},u]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(e,12))},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:N,imports:[r.ez,a.hGG]}),e}();function q(){return new B((0,a.LFG)(r.K0))}var B=function(){var e=function(){function e(t){_classCallCheck(this,e),this._doc=t}return _createClass(e,[{key:"getTitle",value:function(){return this._doc.title}},{key:"setTitle",value:function(e){this._doc.title=e||""}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(r.K0))},e.\u0275prov=(0,a.Yz7)({factory:q,token:e,providedIn:"root"}),e}();"undefined"!=typeof window&&window;var H,Y,j,F,W,U,K,Z,G,X,V,J,Q,$,ee=n(9063),te=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"encodeKey",value:function(e){return encodeURIComponent(e)}},{key:"encodeValue",value:function(e){return encodeURIComponent(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}(),ne=new a.OlP("basePath"),ie=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,e),this.apiKeys=t.apiKeys,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.withCredentials=t.withCredentials,this.encoder=t.encoder}return _createClass(e,[{key:"selectHeaderContentType",value:function(e){var t=this;if(0!==e.length){var n=e.find(function(e){return t.isJsonMime(e)});return void 0===n?e[0]:n}}},{key:"selectHeaderAccept",value:function(e){var t=this;if(0!==e.length){var n=e.find(function(e){return t.isJsonMime(e)});return void 0===n?e[0]:n}}},{key:"isJsonMime",value:function(e){var t=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}}]),e}(),re=((X=function(){function e(t,n,i){_classCallCheck(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new ee.WM,this.configuration=new ie,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new te}return _createClass(e,[{key:"convertAttributeToNonunique",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("attributeDefinition",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/convertAttributeToNonunique"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"convertAttributeToUnique",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("attributeDefinition",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/convertAttributeToUnique"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"createAttributeDefinition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/createAttribute"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"deleteAttributeDefinition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("attribute",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/deleteAttribute"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"deleteAttributeDefinitions",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");var i=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("attributes[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/deleteAttributes"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllAttributeDefinitions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributesDefinition"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getAttribute",value:function(e,t,n,i,r,a,o,s,c,u,l){var h=arguments.length>11&&void 0!==arguments[11]?arguments[11]:"body",d=arguments.length>12&&void 0!==arguments[12]&&arguments[12],f=new ee.LE({encoder:this.encoder});null!=e&&(f=f.set("attributeName",e)),null!=t&&(f=f.set("attributeId",t)),null!=n&&(f=f.set("facility",n)),null!=i&&(f=f.set("user",i)),null!=r&&(f=f.set("vo",r)),null!=a&&(f=f.set("resource",a)),null!=o&&(f=f.set("member",o)),null!=s&&(f=f.set("group",s)),null!=c&&(f=f.set("host",c)),null!=u&&(f=f.set("userExtSource",u)),null!=l&&(f=f.set("key",l));var p=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(p=p.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(p=p.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var g="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;p=p.set("Authorization","Bearer "+g)}var m=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==m&&(p=p.set("Accept",m)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/any"),{params:f,withCredentials:this.configuration.withCredentials,headers:p,observe:h,reportProgress:d})}},{key:"getAttributeDefinitionById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeDefinitionById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAttributeDefinitionByName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("attributeName",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeDefinition"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAttributeDefinitionsByNamespace",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("namespace",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributesDefinitionByNamespace"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAttributeModulesDependenciesForAttributeGraphText",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("format",e)),null!=t&&(r=r.set("attrName",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getAttributeModulesDependenciesGraphText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("format",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeModulesDependenciesGraphText"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAttributeRights",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("attributeId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributeRights"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAttributesDefinitionWithRights",value:function(e,t,n,i,r,a,o,s){var c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:"body",u=arguments.length>9&&void 0!==arguments[9]&&arguments[9],l=new ee.LE({encoder:this.encoder});null!=e&&(l=l.set("member",e)),null!=t&&(l=l.set("user",t)),null!=n&&(l=l.set("vo",n)),null!=i&&(l=l.set("group",i)),null!=r&&(l=l.set("resource",r)),null!=a&&(l=l.set("facility",a)),null!=o&&(l=l.set("host",o)),null!=s&&(l=l.set("userExtSource",s));var h=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(h=h.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(h=h.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var d="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;h=h.set("Authorization","Bearer "+d)}var f=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==f&&(h=h.set("Accept",f)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/getAttributesDefinitionWithRights"),{params:l,withCredentials:this.configuration.withCredentials,headers:h,observe:c,reportProgress:u})}},{key:"getEntitylessAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("key",e)),null!=t&&(r=r.set("attributeName",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-entityless"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getEntitylessAttributesByKey",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("key",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/key"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getEntitylessAttributesByName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("attrName",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getEntitylessAttributes"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getEntitylessAttributesWithKeys",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("attrName",e)),t&&t.forEach(function(e){r=r.append("keys[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getEntitylessAttributesWithKeys"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getEntitylessKeys",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("attributeDefinition",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getEntitylessKeys"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getFacilityAttributeById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("attributeId",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-facility"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getFacilityAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("attributeName",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-facility"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getFacilityAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("facility",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/f"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getFacilityAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/f-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getFacilityResourceUserMemberAttributes",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("facility",e)),null!=t&&(o=o.set("resource",t)),null!=n&&(o=o.set("user",n)),null!=i&&(o=o.set("member",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/f-r-u-m"),{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getFacilityUserAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("user",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/f-u"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getGroupAttributeById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("attributeId",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-group"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getGroupAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("attributeName",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-group"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getGroupAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/g"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/g-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getGroupResourceAttributeById",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("group",e)),null!=t&&(a=a.set("resource",t)),null!=n&&(a=a.set("attributeId",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-group-resource"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getGroupResourceAttributeByName",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("group",e)),null!=t&&(a=a.set("resource",t)),null!=n&&(a=a.set("attributeName",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-group-resource"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getGroupResourceAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("resource",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/group-resource"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getHostAttributeById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("host",e)),null!=t&&(r=r.set("attributeId",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-host"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getHostAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("host",e)),null!=t&&(r=r.set("attributeName",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-host"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getHostAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("host",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/h"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getHostAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("host",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/h-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getLogins",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getLogins"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getMemberAndUserAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("workWithUserAttributes",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-wu"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getMemberAndUserAttributesByNames",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("member",e)),t&&t.forEach(function(e){a=a.append("attrNames[]",e)}),null!=n&&(a=a.set("workWithUserAttributes",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-names-wu"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getMemberAttributeById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("attributeId",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-member"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getMemberAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("attributeName",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-member"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getMemberAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getMemberAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getMemberGroupAndUserAttributesByNames",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("group",t)),n&&n.forEach(function(e){o=o.append("attrNames[]",e)}),null!=i&&(o=o.set("workWithUserAttributes",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-g-names-wu"),{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getMemberGroupAttributeById",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("group",t)),null!=n&&(a=a.set("attributeId",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-member-group"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getMemberGroupAttributeByName",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("group",t)),null!=n&&(a=a.set("attributeName",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-member-group"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getMemberGroupAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("group",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-g"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getMemberGroupAttributesByNames",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("group",t)),n&&n.forEach(function(e){a=a.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-g-names"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getMemberResourceAndUserFacilityAttributes",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("resource",t)),null!=n&&(a=a.set("workWithUserAttributes",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-r-wu"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getMemberResourceAndUserFacilityAttributesByNames",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("resource",t)),n&&n.forEach(function(e){o=o.append("attrNames[]",e)}),null!=i&&(o=o.set("workWithUserAttributes",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-r-names-wu"),{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getMemberResourceAttributeById",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("resource",t)),null!=n&&(a=a.set("attributeId",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-member-resource"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getMemberResourceAttributeByName",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("resource",t)),null!=n&&(a=a.set("attributeName",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-member-resource"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getMemberResourceAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("resource",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/m-r"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getRequiredAttributesDefinition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("service",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributesDefinition"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRequiredAttributesFacility",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("facility",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/f"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRequiredAttributesFacilityService",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("service",e)),null!=t&&(r=r.set("facility",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-f"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getRequiredAttributesFacilityServices",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){r=r.append("services[]",e)}),null!=t&&(r=r.set("facility",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/ss-f"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getRequiredAttributesGroupResourceService",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("service",e)),null!=t&&(a=a.set("resource",t)),null!=n&&(a=a.set("group",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-r-g"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getRequiredAttributesHostService",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("service",e)),null!=t&&(r=r.set("host",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-h"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getRequiredAttributesMember",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("workWithUserAttributes",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/m"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getRequiredAttributesMemberGroup",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("group",t)),null!=n&&(a=a.set("workWithUserAttributes",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/m-g"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getRequiredAttributesMemberGroupResourceService",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",o=arguments.length>6&&void 0!==arguments[6]&&arguments[6];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==n)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");var s=new ee.LE({encoder:this.encoder});null!=e&&(s=s.set("service",e)),null!=t&&(s=s.set("resource",t)),null!=n&&(s=s.set("group",n)),null!=i&&(s=s.set("member",i)),null!=r&&(s=s.set("workWithUserAttributes",r));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-r-g-m"),{params:s,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:o})}},{key:"getRequiredAttributesMemberGroupService",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("service",e)),null!=t&&(o=o.set("group",t)),null!=n&&(o=o.set("member",n)),null!=i&&(o=o.set("workWithUserAttributes",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-g-m"),{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getRequiredAttributesMemberResource",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("resource",t)),null!=n&&(a=a.set("workWithUserAttributes",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/m-r"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getRequiredAttributesMemberResourceService",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("service",e)),null!=t&&(o=o.set("resource",t)),null!=n&&(o=o.set("member",n)),null!=i&&(o=o.set("workWithUserAttributes",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-r-m"),{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getRequiredAttributesResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/r"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRequiredAttributesResourceService",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("service",e)),null!=t&&(r=r.set("resource",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-r"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getRequiredAttributesResourceServices",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){r=r.append("services[]",e)}),null!=t&&(r=r.set("resource",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/ss-r"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getRequiredAttributesUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/u"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRequiredAttributesUserFacility",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("facility",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/u-f"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getRequiredAttributesVoService",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("service",e)),null!=t&&(r=r.set("vo",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getRequiredAttributes/s-v"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getResourceAttributeById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("attributeId",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-resource"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getResourceAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("attributeName",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-resource"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getResourceAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getResourceAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getResourceGroupAndGroupAttributes",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("resource",e)),null!=t&&(a=a.set("group",t)),null!=n&&(a=a.set("workWithGroupAttributes",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-g-wg"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getResourceGroupAndGroupAttributesByNames",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==i)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("resource",e)),null!=t&&(o=o.set("group",t)),n&&n.forEach(function(e){o=o.append("attrNames[]",e)}),null!=i&&(o=o.set("workWithGroupAttributes",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-g-names-wg"),{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getResourceGroupAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("group",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-g"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getResourceGroupMemberAttributesByNames",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("resource",e)),null!=t&&(o=o.set("group",t)),null!=n&&(o=o.set("member",n)),i&&i.forEach(function(e){o=o.append("attrNames[]",e)});var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/r-g-m-names"),{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getUserAttributeById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("attributeId",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-user"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getUserAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("attributeName",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-user"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getUserAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/u"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getUserAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/u-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getUserExtSourceAttributeById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("userExtSource",e)),null!=t&&(r=r.set("attributeId",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-ues"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getUserExtSourceAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("userExtSource",e)),null!=t&&(r=r.set("attributeName",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-ues"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getUserExtSourceAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("userExtSource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/ues"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getUserExtSourceAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("userExtSource",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/ues-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getUserFacilityAttributeById",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("user",e)),null!=t&&(a=a.set("facility",t)),null!=n&&(a=a.set("attributeId",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-user_facility"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getUserFacilityAttributeByName",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("user",e)),null!=t&&(a=a.set("facility",t)),null!=n&&(a=a.set("attributeName",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-user_facility"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getUserFacilityAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("facility",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/user-facility"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getVoAttributeById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("attributeId",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/id-vo"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getVoAttributeByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("attributeName",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttribute/name-vo"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getVoAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/vo"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVoAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/attributesManager/getAttributes/vo-names"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeAttributesForFacilityResourceGroupUserMember",value:function(e,t,n,i,r,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];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==n)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==i)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==r)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==a)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");var c=new ee.LE({encoder:this.encoder});null!=e&&(c=c.set("facility",e)),null!=t&&(c=c.set("resource",t)),null!=n&&(c=c.set("group",n)),null!=i&&(c=c.set("user",i)),null!=r&&(c=c.set("member",r)),a&&a.forEach(function(e){c=c.append("attributes[]",e)});var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m"),null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:s})}},{key:"removeAttributesForFacilityResourceUserMember",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",o=arguments.length>6&&void 0!==arguments[6]&&arguments[6];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==n)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==i)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");var s=new ee.LE({encoder:this.encoder});null!=e&&(s=s.set("facility",e)),null!=t&&(s=s.set("resource",t)),null!=n&&(s=s.set("user",n)),null!=i&&(s=s.set("member",i)),r&&r.forEach(function(e){s=s.append("attributes[]",e)});var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/f-r-u-m"),null,{params:s,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:o})}},{key:"removeEntitylessAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("key",e)),null!=t&&(r=r.set("attribute",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/e"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeFacilityAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),null!=t&&(r=r.set("attribute",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/f"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeFacilityAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),t&&t.forEach(function(e){r=r.append("attributes[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/f"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeGroupAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("attribute",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeGroupAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),t&&t.forEach(function(e){r=r.append("attributes[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeGroupResourceAttribute",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("group",e)),null!=t&&(a=a.set("resource",t)),null!=n&&(a=a.set("attribute",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/g-r"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"removeGroupResourceAttributes",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("group",e)),null!=t&&(a=a.set("resource",t)),n&&n.forEach(function(e){a=a.append("attributes[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/g-r"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"removeGroupResourceAttributesWorkWithGroupAttributes",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==i)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("group",e)),null!=t&&(o=o.set("resource",t)),n&&n.forEach(function(e){o=o.append("attributes[]",e)}),null!=i&&(o=o.set("workWithGroupAttributes",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"removeHostAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("host",e)),null!=t&&(r=r.set("attribute",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/h"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeHostAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("host",e)),t&&t.forEach(function(e){r=r.append("attributes[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/h"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeMemberAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("attribute",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/m"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeMemberAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),t&&t.forEach(function(e){r=r.append("attributes[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeMemberAttributesWorkWithUserAttributes",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("member",e)),t&&t.forEach(function(e){a=a.append("attributes[]",e)}),null!=n&&(a=a.set("workWithUserAttributes",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"removeMemberGroupAttribute",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("group",t)),null!=n&&(a=a.set("attribute",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/m-g"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"removeMemberGroupAttributes",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("group",t)),n&&n.forEach(function(e){a=a.append("attributes[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m-g"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"removeMemberGroupAttributesWorkWithUserAttributes",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==i)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("group",t)),n&&n.forEach(function(e){o=o.append("attributes[]",e)}),null!=i&&(o=o.set("workWithUserAttributes",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"removeMemberResourceAttribute",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("resource",t)),null!=n&&(a=a.set("attribute",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/m-r"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"removeMemberResourceAttributes",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("resource",t)),n&&n.forEach(function(e){a=a.append("attributes[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/m-r"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"removeResourceAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("attribute",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/r"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeResourceAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),t&&t.forEach(function(e){r=r.append("attributes[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/r"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeUesAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("userExtSource",e)),t&&t.forEach(function(e){r=r.append("attributes[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/ues"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeUserAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("attribute",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeUserAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),t&&t.forEach(function(e){r=r.append("attributes[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeUserExtSourceAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("userExtSource",e)),null!=t&&(r=r.set("attribute",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/ues"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeUserFacilityAttribute",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("user",e)),null!=t&&(a=a.set("facility",t)),null!=n&&(a=a.set("attribute",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/u-f"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"removeUserFacilityAttributes",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("user",e)),null!=t&&(a=a.set("facility",t)),n&&n.forEach(function(e){a=a.append("attributes[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/u-f"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"removeVoAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("attribute",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttribute/v"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeVoAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),t&&t.forEach(function(e){r=r.append("attributes[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/attributesManager/removeAttributes/v"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"setAttributeRights",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputAttributeRights was null or undefined when calling setAttributeRights.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributeRights"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setEntitylessAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/entityless"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setFacilityAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/facility"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setFacilityAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/f"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setFacilityResourceGroupUserMemberAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/f-r-g-u-m"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setFacilityResourceUserMemberAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/f-r-u-m"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setFacilityUserAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/f-u"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setGroupAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetGroupAttribute was null or undefined when calling setGroupAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/group"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setGroupAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetGroupAttributes was null or undefined when calling setGroupAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/g"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setGroupResourceAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/group-resource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setGroupResourceAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/group-resource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setHostAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetHostAttribute was null or undefined when calling setHostAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/host"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setHostAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetHostAttributes was null or undefined when calling setHostAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/h"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberAttribute was null or undefined when calling setMemberAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/member"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberAttributes was null or undefined when calling setMemberAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberGroupAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/member-group"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberGroupAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-g"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberGroupWithUserAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-g-wu"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberResourceAndUserAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-r-wu"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberResourceAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/member-resource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberResourceAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-r"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setMemberWithUserAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/m-wu"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setResourceAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetResourceAttribute was null or undefined when calling setResourceAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/resource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setResourceAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetResourceAttributes was null or undefined when calling setResourceAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/r"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setResourceGroupAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/r-g"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setResourceGroupWithGroupAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/r-g-wg"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setUserAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetUserAttribute was null or undefined when calling setUserAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/user"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setUserAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetUserAttributes was null or undefined when calling setUserAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/u"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setUserExtSourceAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/userExtSource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setUserExtSourceAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/ues"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setUserFacilityAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/facility-user"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setUserFacilityAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/facility-user"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setVoAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetVoAttribute was null or undefined when calling setVoAttribute.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttribute/vo"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setVoAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetVoAttributes was null or undefined when calling setVoAttributes.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/setAttributes/vo"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateAttributeDefinition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/attributesManager/updateAttributeDefinition"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}}]),e}()).\u0275fac=function(e){return new(e||X)(a.LFG(ee.eN),a.LFG(ne,8),a.LFG(ie,8))},X.\u0275prov=a.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),X),ae=((G=function(){function e(t,n,i){_classCallCheck(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new ee.WM,this.configuration=new ie,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new te}return _createClass(e,[{key:"getAllPolicies",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getAllPolicies"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getAllRolesManagementRules",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getAllRolesManagementRules"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getAuthzAdminGroups",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("role",e)),null!=t&&(a=a.set("complementaryObjectId",t)),null!=n&&(a=a.set("complementaryObjectName",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getAdminGroups"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getAuthzRichAdmins",value:function(e,t,n,i,r,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];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==n)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==i)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");var c=new ee.LE({encoder:this.encoder});null!=e&&(c=c.set("role",e)),null!=t&&(c=c.set("complementaryObjectId",t)),null!=n&&(c=c.set("complementaryObjectName",n)),i&&i.forEach(function(e){c=c.append("specificAttributes",e)}),null!=r&&(c=c.set("allUserAttributes",r)),null!=a&&(c=c.set("onlyDirectAdmins",a));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getRichAdmins"),{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:s})}},{key:"getFacilitiesWhereUserIsInRoles",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");var r=new ee.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach(function(e){r=r.append("roles[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getFacilitiesWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getGroupRoleNames",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getGroupRoleNames"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupRoles",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("groupId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/authzResolver/getGroupRoles"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupsWhereUserIsInRoles",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");var r=new ee.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach(function(e){r=r.append("roles[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getGroupsWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getLoggedUser",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getLoggedUser"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getMembersWhereUserIsInRoles",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");var r=new ee.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach(function(e){r=r.append("roles[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getMembersWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getPerunPrincipal",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getPerunPrincipal"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getPrincipalRoleNames",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getPrincipalRoleNames"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getResourcesWhereUserIsInRoles",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");var r=new ee.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach(function(e){r=r.append("roles[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getResourcesWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getSecurityTeamsWhereUserIsInRoles",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");var r=new ee.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach(function(e){r=r.append("roles[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getSecurityTeamsWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getUserRoleNames",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getUserRoleNames"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getUserRoles",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("userId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getUserRoles"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVosWhereUserIsInRoles",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");var r=new ee.LE({encoder:this.encoder});null!=t&&(r=r.set("user",t)),e&&e.forEach(function(e){r=r.append("roles[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/getVosWhereUserIsInRoles"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"isFacilityAdmin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("facility",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/authzResolver/isFacilityAdmin"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"isGroupAdmin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/authzResolver/isGroupAdmin"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"isPerunAdmin",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/isPerunAdmin"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"isVoAdmin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/urlinjsonout/authzResolver/isVoAdmin"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"keepAlive",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/keepAlive"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"loadAuthorizationComponents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/authzResolver/loadAuthorizationComponents"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"setRoleWithGroupComplementaryObject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter setRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/authzResolver/setRole/g-co"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setRoleWithUserComplementaryObject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter setRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/authzResolver/setRole/u-co"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"unsetRoleWithGroupComplementaryObject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter unsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/authzResolver/unsetRole/g-co"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"unsetRoleWithUserComplementaryObject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter unsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/authzResolver/unsetRole/u-co"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}}]),e}()).\u0275fac=function(e){return new(e||G)(a.LFG(ee.eN),a.LFG(ne,8),a.LFG(ie,8))},G.\u0275prov=a.Yz7({token:G,factory:G.\u0275fac,providedIn:"root"}),G),oe=((Z=function(){function e(t,n,i){_classCallCheck(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new ee.WM,this.configuration=new ie,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new te}return _createClass(e,[{key:"addMember",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){r=r.append("groups[]",e)}),null!=t&&(r=r.set("member",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/addMember"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"addMembers",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),t&&t.forEach(function(e){r=r.append("members[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/addMembers"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"canExtendMembershipInGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("group",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/canExtendMembershipInGroup"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"createGroupUnion",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resultGroup",e)),null!=t&&(r=r.set("operandGroup",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/createGroupUnion"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"createGroupWithParentGroupNameDescription",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("parentGroup",e)),null!=t&&(a=a.set("name",t)),null!=n&&(a=a.set("description",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/createGroup/pg-n-d"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"createGroupWithVoNameDescription",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("vo",e)),null!=t&&(a=a.set("name",t)),null!=n&&(a=a.set("description",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/createGroup/v-n-d"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"deleteGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("force",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/deleteGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"deleteGroups",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputDeleteGroups was null or undefined when calling deleteGroups.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/groupsManager/deleteGroups"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"extendMembershipInGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("group",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/extendMembershipInGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"forceAllSubGroupsSynchronization",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"forceGroupStructureSynchronization",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/forceGroupStructureSynchronization"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"forceGroupSynchronization",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/forceGroupSynchronization"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllGroups",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllGroups"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllGroupsFromAllVos",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllGroups/all"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getAllMemberGroups",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllMemberGroups"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllRichGroups",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");var i=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("attrNames[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllRichGroups"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllRichGroupsWithAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllRichGroupsWithAttributesByNames"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getAllRichSubGroupsWithGroupAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getAllRichSubGroupsWithAttributesByNames"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getGroupById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getGroupById.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupByName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("name",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupByName"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getGroupMemberById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("member",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMemberById"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getGroupMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMembers"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupMembersCount",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMembersCount"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupMembersCountsByGroupStatus",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMembersCountsByGroupStatus"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupMembersCountsByVoStatus",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupMembersCountsByVoStatus"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupRichMembersByIds",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("group",e)),t&&t.forEach(function(e){a=a.append("members[]",e)}),n&&n.forEach(function(e){a=a.append("attrNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupRichMembersByIds"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getGroupUnions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("reverseDirection",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupUnions"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getGroupsByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");var i=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getGroupsByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupsPage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputGetPaginatedGroups was null or undefined when calling getGroupsPage.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/groupsManager/getGroupsPage"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"getIndirectMembershipPaths",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("group",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getIndirectMembershipPaths"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getMemberGroups",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getMemberGroups"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getMemberRichGroupsWithAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getMemberRichGroupsWithAttributesByNames"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getRichGroupByIdWithAttributesByNames",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("groupId",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/getRichGroupByIdWithAttributesByNames"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getSubgroupsPage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/groupsManager/getSubgroupsPage"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"isGroupMember",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("group",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/groupsManager/isGroupMember"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"moveGroupWithDestinationGroupMovingGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");var r=new ee.LE({encoder:this.encoder});null!=t&&(r=r.set("destinationGroup",t)),null!=e&&(r=r.set("movingGroup",e));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/moveGroup/dg-mg"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeGroupUnion",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resultGroup",e)),null!=t&&(r=r.set("operandGroup",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/removeGroupUnion"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeMember",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){r=r.append("groups[]",e)}),null!=t&&(r=r.set("member",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/removeMember"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeMembers",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),t&&t.forEach(function(e){r=r.append("members[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/removeMembers"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"setGroupsMemberStatus",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("group",t)),null!=n&&(a=a.set("status",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/groupsManager/setGroupsMemberStatus"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"updateGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateGroup was null or undefined when calling updateGroup.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/groupsManager/updateGroup"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}}]),e}()).\u0275fac=function(e){return new(e||Z)(a.LFG(ee.eN),a.LFG(ne,8),a.LFG(ie,8))},Z.\u0275prov=a.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"root"}),Z),se=((K=function(){function e(t,n,i){_classCallCheck(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new ee.WM,this.configuration=new ie,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new te}return _createClass(e,[{key:"canExtendMembership",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/canExtendMembership"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"createMemberForCandidate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createMember/c"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"createMemberForUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateMemberForUser was null or undefined when calling createMemberForUser.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createMember/u"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"createMemberFromExtSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createMember/extSource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"createSpecificMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSpecificMember was null or undefined when calling createSpecificMember.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createSpecificMember"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"createSponsoredMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createSponsoredMember/withFullName"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"createSponsoredMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateSponsoredMember1 was null or undefined when calling createSponsoredMembers.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createSponsoredMembers"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"createSponsoredMembersFromCSV",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/createSponsoredMembersFromCSV"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"deleteMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling deleteMember.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/deleteMember"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"deleteMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");var i=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("members[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/deleteMembers"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"extendMembership",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling extendMembership.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/extendMembership"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"findCompleteRichMembersByAttributes",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var a=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){a=a.append("attrsNames[]",e)}),null!=t&&(a=a.set("searchString",t)),n&&n.forEach(function(e){a=a.append("allowedStatuses[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findCompleteRichMembers/attrs"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"findCompleteRichMembersForGroup",value:function(e,t,n,i,r,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];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==n)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==i)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");var c=new ee.LE({encoder:this.encoder});null!=e&&(c=c.set("group",e)),t&&t.forEach(function(e){c=c.append("attrsNames[]",e)}),r&&r.forEach(function(e){c=c.append("allowedStatuses[]",e)}),a&&a.forEach(function(e){c=c.append("allowedGroupStatuses[]",e)}),null!=n&&(c=c.set("searchString",n)),null!=i&&(c=c.set("lookingInParentGroup",i));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findCompleteRichMembers/g"),{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:s})}},{key:"findCompleteRichMembersForVo",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("vo",e)),t&&t.forEach(function(e){o=o.append("attrsNames[]",e)}),i&&i.forEach(function(e){o=o.append("allowedStatuses[]",e)}),null!=n&&(o=o.set("searchString",n));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findCompleteRichMembers/v"),{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"findMembersInVo",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("searchString",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findMembersInVo"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"findSponsoredCompleteRichMembersForVo",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==i)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("vo",e)),t&&t.forEach(function(e){o=o.append("attrsNames[]",e)}),null!=n&&(o=o.set("searchString",n)),null!=i&&(o=o.set("onlySponsored",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/findCompleteRichMembers/v-sponsored"),{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getAllMembers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getAllMembers"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getAllNamespacesRules",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getAllNamespacesRules"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getAllSponsoredMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getAllSponsoredMembers"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllSponsoredMembersAndTheirSponsors",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getAllSponsoredMembersAndTheirSponsors"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getCompleteRichMembersForGroup",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",o=arguments.length>6&&void 0!==arguments[6]&&arguments[6];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.");var s=new ee.LE({encoder:this.encoder});null!=e&&(s=s.set("group",e)),n&&n.forEach(function(e){s=s.append("allowedStatuses[]",e)}),i&&i.forEach(function(e){s=s.append("allowedGroupStatuses[]",e)}),null!=t&&(s=s.set("lookingInParentGroup",t)),r&&r.forEach(function(e){s=s.append("attrsNames[]",e)});var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getCompleteRichMembers/g"),{params:s,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:o})}},{key:"getCompleteRichMembersForGroupResource",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==i)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("group",e)),null!=t&&(o=o.set("resource",t)),n&&n.forEach(function(e){o=o.append("attrsNames[]",e)}),i&&i.forEach(function(e){o=o.append("allowedStatuses[]",e)});var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getCompleteRichMembers/g-r"),{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getCompleteRichMembersForVo",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("vo",e)),t&&t.forEach(function(e){a=a.append("allowedStatuses[]",e)}),n&&n.forEach(function(e){a=a.append("attrsNames[]",e)});var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getCompleteRichMembers/v"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getMemberByExtSourceNameAndExtLogin",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("vo",e)),null!=t&&(a=a.set("extLogin",t)),null!=n&&(a=a.set("extSourceName",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMemberByExtSourceNameAndExtLogin"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getMemberById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getMemberById.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMemberById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getMemberByUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("user",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMemberByUser"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getMembers",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembers.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("status",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembers"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getMembersByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");var i=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembersByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getMembersByUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembersByUser"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getMembersCount",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembersCount"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getMembersPage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputGetPaginatedMembers was null or undefined when calling getMembersPage.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/getMembersPage"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"getMembersWithStatusCount",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("status",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getMembersCount/status"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getRichMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichMember.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getRichMember"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichMemberWithAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getRichMemberWithAttributes"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichMembersByIds",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");var r=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){r=r.append("ids[]",e)}),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getRichMembersByIds"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getSponsoredMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getSponsoredMembers/v"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getSponsoredMembersAndTheirSponsors",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getSponsoredMembersAndTheirSponsors"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getSponsorsByMember",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getSponsors/member"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getSponsorsByVo",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("vo",e)),null!=t&&(o=o.set("extSourceName",t)),null!=n&&(o=o.set("extLogin",n)),i&&i.forEach(function(e){o=o.append("attrNames[]",e)});var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/membersManager/getSponsors/vo"),{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"moveMembership",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("vo",e)),null!=t&&(a=a.set("sourceUser",t)),null!=n&&(a=a.set("targetUser",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/moveMembership"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"removeSponsor",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("sponsor",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/removeSponsor"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"sendAccountActivationLinkEmail",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==i)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("member",e)),null!=t&&(o=o.set("namespace",t)),null!=n&&(o=o.set("emailAttributeURN",n)),null!=i&&(o=o.set("language",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/sendAccountActivationLinkEmail"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"sendPasswordResetLinkEmail",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",o=arguments.length>6&&void 0!==arguments[6]&&arguments[6];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==n)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==i)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");var s=new ee.LE({encoder:this.encoder});null!=e&&(s=s.set("member",e)),null!=t&&(s=s.set("namespace",t)),null!=n&&(s=s.set("emailAttributeURN",n)),null!=i&&(s=s.set("language",i)),null!=r&&(s=s.set("baseUrl",r));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/sendPasswordResetLinkEmail"),null,{params:s,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:o})}},{key:"setSponsoredMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetSponsoredMember was null or undefined when calling setSponsoredMember.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/membersManager/setSponsoredMember"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setSponsorshipForMember",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("sponsoredMember",e)),null!=t&&(a=a.set("sponsor",t)),null!=n&&(a=a.set("validityTo",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/setSponsorshipForMember"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"setStatus",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("status",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/setStatus"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"sponsorMember",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("sponsor",t)),null!=n&&(a=a.set("validityTo",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/sponsorMember"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"updateSponsorshipValidity",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("member",e)),null!=t&&(a=a.set("sponsor",t)),null!=n&&(a=a.set("validityTo",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/updateSponsorshipValidity"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"validateMemberAsync",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/membersManager/validateMemberAsync"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}}]),e}()).\u0275fac=function(e){return new(e||K)(a.LFG(ee.eN),a.LFG(ne,8),a.LFG(ie,8))},K.\u0275prov=a.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"}),K),ce=((U=function(){function e(t,n,i){_classCallCheck(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new ee.WM,this.configuration=new ie,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new te}return _createClass(e,[{key:"sentMessageToRTWithMemberQueue",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("memberId",e)),null!=t&&(o=o.set("queue",t)),null!=n&&(o=o.set("subject",n)),null!=i&&(o=o.set("text",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"sentMessageToRTWithQueue",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("queue",e)),null!=t&&(a=a.set("subject",t)),null!=n&&(a=a.set("text",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/rtMessagesManager/sentMessageToRT/q"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"sentMessageToRTWithVo",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("voId",e)),null!=t&&(a=a.set("subject",t)),null!=n&&(a=a.set("text",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/rtMessagesManager/sentMessageToRT/v"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"sentMessageToRTWithVoQueue",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==i)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("voId",e)),null!=t&&(o=o.set("queue",t)),null!=n&&(o=o.set("subject",n)),null!=i&&(o=o.set("text",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}}]),e}()).\u0275fac=function(e){return new(e||U)(a.LFG(ee.eN),a.LFG(ne,8),a.LFG(ie,8))},U.\u0275prov=a.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U),ue=((W=function(){function e(t,n,i){_classCallCheck(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new ee.WM,this.configuration=new ie,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new te}return _createClass(e,[{key:"addApplicationMailForGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/addApplicationMail/g"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"addApplicationMailForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/addApplicationMail/v"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"addGroupsToAutoRegistration",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");var i=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("groups[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/addGroupsToAutoRegistration"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"approveApplication",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling approveApplication.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/approveApplication"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"checkForSimilarUsersWithAuthInfo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo"),null,{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"consolidateIdentityUsingToken",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("token",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/consolidateIdentityUsingToken"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"copyFormFromGroupToGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("fromGroup",e)),null!=t&&(r=r.set("toGroup",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyForm/groupToGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"copyFormFromGroupToVo",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("fromGroup",e)),null!=t&&(r=r.set("toVo",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyForm/groupToVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"copyFormFromVoToGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("fromVo",e)),null!=t&&(r=r.set("toGroup",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyForm/voToGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"copyFormFromVoToVo",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("fromVo",e)),null!=t&&(r=r.set("toVo",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyForm/voToVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"copyMailsFromGroupToGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("fromGroup",e)),null!=t&&(r=r.set("toGroup",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyMails/groupToGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"copyMailsFromGroupToVo",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("fromGroup",e)),null!=t&&(r=r.set("toVo",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyMails/groupToVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"copyMailsFromVoToGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("fromVo",e)),null!=t&&(r=r.set("toGroup",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyMails/voToGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"copyMailsFromVoToVo",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("fromVo",e)),null!=t&&(r=r.set("toVo",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/copyMails/voToVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"createApplicationFormInGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/createApplicationForm/group"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"createApplicationFormInVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/createApplicationForm/vo"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"deleteApplication",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/deleteApplication"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"deleteApplicationMailForGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("id",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/deleteApplicationMail/g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"deleteApplicationMailForVo",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("id",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/deleteApplicationMail/v"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"deleteGroupsFromAutoRegistration",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");var i=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("groups[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getApplicationById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getApplicationDataById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationDataById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getApplicationMailsForGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationMails/g"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getApplicationMailsForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationMails/v"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getApplicationsForGroup",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("group",e)),t&&t.forEach(function(e){o=o.append("state[]",e)}),null!=n&&(o=o.set("dateFrom",n)),null!=i&&(o=o.set("dateTo",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationsForGroup"),{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getApplicationsForMember",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("group",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationsForMember"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getApplicationsForVo",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("vo",e)),t&&t.forEach(function(e){o=o.append("state[]",e)}),null!=n&&(o=o.set("dateFrom",n)),null!=i&&(o=o.set("dateTo",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationsForVo"),{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getConsolidatorToken",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getConsolidatorToken"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getFormItemsForGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getFormItems/group"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getFormItemsForGroupWithType",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("type",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getFormItems/group-type"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getFormItemsForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getFormItems/vo"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getFormItemsForVoWithType",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("type",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getFormItems/vo-type"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getGroupApplicationForm",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationForm/group"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupsToAutoRegistration",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getGroupsToAutoRegistration"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVoApplicationForm",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/registrarManager/getApplicationForm/vo"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"rejectApplication",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("id",e)),null!=t&&(r=r.set("reason",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/rejectApplication"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"sendInvitation",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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.");var o=new ee.LE({encoder:this.encoder});null!=n&&(o=o.set("voId",n)),null!=i&&(o=o.set("name",i)),null!=e&&(o=o.set("email",e)),null!=t&&(o=o.set("language",t));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/sendInvitation"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"sendInvitationForGroup",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",o=arguments.length>6&&void 0!==arguments[6]&&arguments[6];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.");var s=new ee.LE({encoder:this.encoder});null!=n&&(s=s.set("voId",n)),null!=i&&(s=s.set("groupId",i)),null!=r&&(s=s.set("name",r)),null!=e&&(s=s.set("email",e)),null!=t&&(s=s.set("language",t));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/sendInvitation/g"),null,{params:s,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:o})}},{key:"sendInvitationGroupToExistingUser",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("userId",e)),null!=t&&(a=a.set("voId",t)),null!=n&&(a=a.set("groupId",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/sendInvitation/u-g"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"sendInvitationToExistingUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("userId",e)),null!=t&&(r=r.set("voId",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/sendInvitation/u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"sendMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSendMessage was null or undefined when calling sendMessage.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/sendMessage"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"setSendingEnabled",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetSendingEnabled was null or undefined when calling setSendingEnabled.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/setSendingEnabled"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"submitApplication",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSubmitApplication was null or undefined when calling submitApplication.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/submitApplication"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateApplicationMail",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateApplicationMail"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateForm",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateForm was null or undefined when calling updateForm.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateForm"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateFormItemData",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputFormItemData was null or undefined when calling updateFormItemData.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateFormItemData"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateFormItemsData",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputFormItemData1 was null or undefined when calling updateFormItemsData.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateFormItemsData"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateFormItemsForGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateFormItems/group"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateFormItemsForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/registrarManager/updateFormItems/vo"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"verifyApplication",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/registrarManager/verifyApplication"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}}]),e}()).\u0275fac=function(e){return new(e||W)(a.LFG(ee.eN),a.LFG(ne,8),a.LFG(ie,8))},W.\u0275prov=a.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"}),W),le=((F=function(){function e(t,n,i){_classCallCheck(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new ee.WM,this.configuration=new ie,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new te}return _createClass(e,[{key:"activateGroupResourceAssignment",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("group",e)),null!=t&&(a=a.set("resource",t)),null!=n&&(a=a.set("async",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/activateGroupResourceAssignment"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"addAdminToGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("authorizedGroup",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/addAdmin/r-g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"addAdminToUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("user",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/addAdmin/r-u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"addResourceSelfServiceGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("group",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/addResourceSelfServiceGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"addResourceSelfServiceUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("user",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/addResourceSelfServiceUser"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"allowGroupsToResources",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var a=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){a=a.append("groups[]",e)}),t&&t.forEach(function(e){a=a.append("resources[]",e)}),null!=n&&(a=a.set("async",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/allowGroupsToResources"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"assignGroupToResource",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",o=arguments.length>6&&void 0!==arguments[6]&&arguments[6];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.");var s=new ee.LE({encoder:this.encoder});null!=e&&(s=s.set("group",e)),null!=t&&(s=s.set("resource",t)),null!=n&&(s=s.set("async",n)),null!=i&&(s=s.set("assignInactive",i)),null!=r&&(s=s.set("autoAssignSubgroups",r));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignGroupToResource"),null,{params:s,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:o})}},{key:"assignGroupToResources",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",o=arguments.length>6&&void 0!==arguments[6]&&arguments[6];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.");var s=new ee.LE({encoder:this.encoder});null!=e&&(s=s.set("group",e)),t&&t.forEach(function(e){s=s.append("resources[]",e)}),null!=n&&(s=s.set("async",n)),null!=i&&(s=s.set("assignInactive",i)),null!=r&&(s=s.set("autoAssignSubgroups",r));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignGroupToResources"),null,{params:s,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:o})}},{key:"assignGroupsToResource",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",o=arguments.length>6&&void 0!==arguments[6]&&arguments[6];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.");var s=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){s=s.append("groups[]",e)}),null!=t&&(s=s.set("resource",t)),null!=n&&(s=s.set("async",n)),null!=i&&(s=s.set("assignInactive",i)),null!=r&&(s=s.set("autoAssignSubgroups",r));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignGroupsToResource"),null,{params:s,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:o})}},{key:"assignResourceTagToResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/assignResourceTagToResource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"assignService",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("service",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignService"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"assignServices",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),t&&t.forEach(function(e){r=r.append("services[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignServices"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"assignServicesPackage",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("servicesPackage",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/assignServicesPackage"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"copyResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCopyResource was null or undefined when calling copyResource.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/copyResource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"createResource",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter name was null or undefined when calling createResource.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("vo",e)),null!=t&&(o=o.set("facility",t)),null!=n&&(o=o.set("name",n)),null!=i&&(o=o.set("description",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/createResource"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"createResourceTagWithResourceTag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/createResourceTag/resourceTag"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"createResourceTagWithTagName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("tagName",e)),null!=t&&(r=r.set("vo",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/createResourceTag/tagName"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"deactivateGroupResourceAssignment",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("resource",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"deleteAllResources",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/deleteAllResources"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"deleteAllResourcesTagsForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"deleteResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/deleteResource"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"deleteResourceTag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputDeleteResourceTag was null or undefined when calling deleteResourceTag.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/deleteResourceTag"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"getAdminGroups",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAdminGroups"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAdmins",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("onlyDirectAdmins",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAdmins"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getAllResourcesByResourceTag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/getAllResourcesByResourceTag"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"getAllResourcesTagsForResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllResourcesTagsForResource"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllResourcesTagsForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllResourcesTagsForVo"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllResourcesWhereUserIsAdmin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesWhereUserIsAdmin/all"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllowedMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllowedMembers"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllowedResources",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllowedResources"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAllowedUsersOfResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAllowedUsers"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedGroups",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("member",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedGroups"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getAssignedMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedMembers"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedMembersWithStatus",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedMembersWithStatus"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedResourcesWithGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedResources/g"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedResourcesWithMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedResources/m"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedResourcesWithStatus",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedResourcesWithStatus"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedRichMembers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedRichMembers"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedRichResourcesWithGroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("group",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedRichResources/g"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedRichResourcesWithMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedRichResources/m"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedRichResourcesWithMemberService",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("service",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedRichResources/s-m"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getAssignedServicesToResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getAssignedServices"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getBansForMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getBansForMember"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getBansForResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getBansForResource"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getEnrichedResourceById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("id",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getEnrichedResourceById"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getEnrichedResourcesForFacility",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("facility",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getEnrichedResourcesForFacility"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getEnrichedResourcesForVo",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getEnrichedResourcesForVo"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getFacility",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacility.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getFacility"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupAssignments",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getGroupAssignments"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getResourceAssignments",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourceAssignments"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getResourceBan",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("resource",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getBan"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getResourceBanById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("banId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getBanById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getResourceById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getResourceById.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourceById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getResourceByName",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("vo",e)),null!=t&&(a=a.set("facility",t)),null!=n&&(a=a.set("name",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourceByName"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getResources",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResources.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResources"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getResourcesByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");var i=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getResourcesCountForAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesCount/all"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getResourcesCountForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesCount/vo"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getResourcesFromVoWhereUserIsAdmin",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("user",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getResourcesWhereGroupIsAdmin",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("facility",e)),null!=t&&(a=a.set("vo",t)),null!=n&&(a=a.set("group",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesWhereUserIsAdmin/group"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getResourcesWhereUserIsAdmin",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("facility",e)),null!=t&&(a=a.set("vo",t)),null!=n&&(a=a.set("user",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getResourcesWhereUserIsAdmin"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getRichAdmins",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==i)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("resource",e)),t&&t.forEach(function(e){o=o.append("specificAttributes",e)}),null!=n&&(o=o.set("allUserAttributes",n)),null!=i&&(o=o.set("onlyDirectAdmins",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getRichAdmins"),{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getRichResourceById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getRichResourceById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichResources",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getRichResources"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichResourcesByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");var i=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getRichResourcesByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling getVo.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/resourcesManager/getVo"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"removeAllResourceTagsFromResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("resource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"removeBanByMemberAndResource",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),null!=t&&(r=r.set("resource",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeBan/member-resource-id"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeGroupAdminResource",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("authorizedGroup",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeAdmin/r-g"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeGroupFromResource",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("resource",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeGroupFromResource"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeGroupFromResources",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),t&&t.forEach(function(e){r=r.append("resources[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeGroupFromResources"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeGroupsFromResource",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){r=r.append("groups[]",e)}),null!=t&&(r=r.set("resource",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeGroupsFromResource"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeResourceBanById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("banId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeBan/id"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"removeResourceSelfServiceGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("group",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeResourceSelfServiceUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("user",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeResourceSelfServiceUser"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeResourceTagFromResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/removeResourceTagFromResource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"removeService",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("service",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeService"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeServices",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),t&&t.forEach(function(e){r=r.append("services[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeServices"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeServicesPackage",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("servicesPackage",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeServicesPackage"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeUserAdminResource",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("resource",e)),null!=t&&(r=r.set("user",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/removeAdmin/r-u"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"setResourceBan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetBan was null or undefined when calling setResourceBan.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/setBan"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"unallowGroupsFromResources",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){r=r.append("groups[]",e)}),t&&t.forEach(function(e){r=r.append("resources[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/resourcesManager/unallowGroupsFromResources"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"updateResource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateResource was null or undefined when calling updateResource.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/updateResource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateResourceBan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateBan was null or undefined when calling updateResourceBan.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/updateBan"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateResourceTag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateResourceTag was null or undefined when calling updateResourceTag.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/resourcesManager/updateResourceTag"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}}]),e}()).\u0275fac=function(e){return new(e||F)(a.LFG(ee.eN),a.LFG(ne,8),a.LFG(ie,8))},F.\u0275prov=a.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"}),F),he=((j=function(){function e(t,n,i){_classCallCheck(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new ee.WM,this.configuration=new ie,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new te}return _createClass(e,[{key:"addSpecificUserOwner",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("specificUser",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/addSpecificUserOwner"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"addUserExtSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter addUserExtSourceInput was null or undefined when calling addUserExtSource.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/usersManager/addUserExtSource"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"anonymizeUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/anonymizeUser"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"changeNonAuthzPasswordByToken",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==e)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==t)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("token",e)),null!=t&&(a=a.set("password",t)),null!=n&&(a=a.set("lang",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/changeNonAuthzPassword/token"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"changePasswordForLogin",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",o=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==e)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==n)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");var s=new ee.LE({encoder:this.encoder});null!=e&&(s=s.set("login",e)),null!=t&&(s=s.set("namespace",t)),null!=n&&(s=s.set("newPassword",n)),null!=i&&(s=s.set("oldPassword",i)),null!=r&&(s=s.set("checkOldPassword",r));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/changePassword/login"),null,{params:s,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:o})}},{key:"changePasswordForUser",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",o=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(null==e)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==n)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");var s=new ee.LE({encoder:this.encoder});null!=e&&(s=s.set("user",e)),null!=t&&(s=s.set("namespace",t)),null!=n&&(s=s.set("newPassword",n)),null!=i&&(s=s.set("oldPassword",i)),null!=r&&(s=s.set("checkOldPassword",r));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/changePassword/user"),null,{params:s,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:o})}},{key:"checkPasswordResetRequestByTokenIsValid",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("token",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/checkPasswordResetRequestIsValid/token"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"checkPasswordStrength",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("password",e)),null!=t&&(r=r.set("namespace",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/checkPasswordStrength"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"createAlternativePassword",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(null==e)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==t)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==n)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==i)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("user",e)),null!=t&&(o=o.set("description",t)),null!=n&&(o=o.set("loginNamespace",n)),null!=i&&(o=o.set("password",i));var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/createAlternativePassword"),null,{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"createServiceUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateServiceUser was null or undefined when calling createServiceUser.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/usersManager/createServiceUser"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"deleteAlternativePassword",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("user",e)),null!=t&&(a=a.set("loginNamespace",t)),null!=n&&(a=a.set("passwordId",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/deleteAlternativePassword"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"deletePasswordForLogin",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("login",e)),null!=t&&(r=r.set("namespace",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/deletePassword/login"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"deletePasswordForUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("namespace",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/deletePassword/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"deleteUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("force",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/deleteUser"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"findRichUsers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("searchString",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/findRichUsers"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"findRichUsersWithAttributes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("searchString",e)),t&&t.forEach(function(e){r=r.append("attrsNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/findRichUsersWithAttributes"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"findUsers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("searchString",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/findUsers"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"generateAccountForName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("namespace",e)),null!=t&&(r=r.set("name",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/generateAccount/name"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getAllRichUsersWithAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("includedSpecificUsers",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getAllRichUsersWithAttributes"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getAssignedRichResourcesForUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getAssignedRichResources"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getGroupsForFacilityWhereUserIsActive",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("facility",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getGroupsWhereUserIsActive/facility"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getGroupsForResourceWhereUserIsActive",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("resource",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getGroupsWhereUserIsActive/resource"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getGroupsInVoWhereUserIsAdmin",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("vo",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getGroupsWhereUserIsAdmin/u-v"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getGroupsWhereUserIsAdmin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getGroupsWhereUserIsAdmin/u"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getPendingPreferredEmailChanges",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getPendingPreferredEmailChanges"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichUserExtSources",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUserExtSources/u"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichUserWithAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUserWithAttributes"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichUsersByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");var i=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUsersByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichUsersWithAttributesByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");var i=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUsersWithAttributesByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getRichUsersWithoutVoWithAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("attrsNames[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getRichUsersWithoutVoWithAttributes"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getSpecificUsersByUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getSpecificUsersByUser"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getSponsorsForMember",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("member",e)),t&&t.forEach(function(e){r=r.append("attrNames[]",e)});var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getSponsorsForMember/member"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getSponsorsForMemberByVoAndLogin",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];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==n)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");var o=new ee.LE({encoder:this.encoder});null!=e&&(o=o.set("vo",e)),null!=t&&(o=o.set("extSourceName",t)),null!=n&&(o=o.set("extLogin",n)),i&&i.forEach(function(e){o=o.append("attrNames[]",e)});var s=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(s=s.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var c="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;s=s.set("Authorization","Bearer "+c)}var u=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==u&&(s=s.set("Accept",u)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getSponsorsForMember/vo"),{params:o,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:a})}},{key:"getUserByExtSourceNameAndExtLogin",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("extLogin",e)),null!=t&&(r=r.set("extSourceName",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserByExtSourceNameAndExtLogin"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getUserById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getUserExtSourceById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("userExtSource",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserExtSourceById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getUserExtSourceByUniqueAttributeValueAndAttributeId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("attributeId",e)),null!=t&&(r=r.set("attributeValue",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserExtSourceByUniqueAttributeValue/id"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getUserExtSourceByUniqueAttributeValueAndAttributeName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("attributeName",e)),null!=t&&(r=r.set("attributeValue",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserExtSourceByUniqueAttributeValue/name"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getUserExtSources",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserExtSources"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getUserExtSourcesByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");var i=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUserExtSourcesByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getUsers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUsers"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getUsersByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");var i=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUsersByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getUsersBySpecificUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("specificUser",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getUsersBySpecificUser"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getUsersPage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputGetPaginatedUsers was null or undefined when calling getUsersPage.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/usersManager/getUsersPage"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"getVosWhereUserIsAdmin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getVosWhereUserIsAdmin"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVosWhereUserIsMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("user",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/usersManager/getVosWhereUserIsMember"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"isLoginAvailable",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("loginNamespace",e)),null!=t&&(r=r.set("login",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/isLoginAvailable"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"loginExist",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("namespace",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/loginExist"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeSpecificUserOwner",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("specificUser",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/removeSpecificUserOwner"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeUserExtSource",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("user",e)),null!=t&&(a=a.set("userExtSource",t)),null!=n&&(a=a.set("force",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/removeUserExtSource"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"requestPreferredEmailChange",value:function(e,t,n,i,r,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];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.");var c=new ee.LE({encoder:this.encoder});null!=e&&(c=c.set("user",e)),null!=t&&(c=c.set("email",t)),null!=n&&(c=c.set("lang",n)),null!=i&&(c=c.set("linkPath",i)),null!=r&&(c=c.set("customUrl",r)),null!=a&&(c=c.set("idpFilter",a));var u=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(u=u.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var l="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;u=u.set("Authorization","Bearer "+l)}var h=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==h&&(u=u.set("Accept",h)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/requestPreferredEmailChange"),null,{params:c,withCredentials:this.configuration.withCredentials,headers:u,observe:o,reportProgress:s})}},{key:"reservePasswordForLogin",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==e)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==n)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("login",e)),null!=t&&(a=a.set("namespace",t)),null!=n&&(a=a.set("password",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/reservePassword/login"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"reservePasswordForUser",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(null==e)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==n)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("user",e)),null!=t&&(a=a.set("namespace",t)),null!=n&&(a=a.set("password",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/reservePassword/user"),null,{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"reserveRandomPassword",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("namespace",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/reserveRandomPassword"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"updateUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateUser was null or undefined when calling updateUser.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/usersManager/updateUser"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"validatePasswordForLogin",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("login",e)),null!=t&&(r=r.set("namespace",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/validatePassword/login"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"validatePasswordForUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("user",e)),null!=t&&(r=r.set("namespace",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/validatePassword/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"validatePreferredEmailChangeWithToken",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("token",e)),null!=t&&(r=r.set("u",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/usersManager/validatePreferredEmailChange"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}}]),e}()).\u0275fac=function(e){return new(e||j)(a.LFG(ee.eN),a.LFG(ne,8),a.LFG(ie,8))},j.\u0275prov=a.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"}),j),de=((Y=function(){function e(t,n,i){_classCallCheck(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new ee.WM,this.configuration=new ie,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new te}return _createClass(e,[{key:"getAppsConfig",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getAppsConfig"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getGuiConfiguration",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getGuiConfiguration"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getPerunRPCVersion",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["text/plain"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getPerunStatistics",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getPerunStatistics"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getPerunStatus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getPerunStatus"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getPerunSystemTimeInMillis",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/utils/getPerunSystemTimeInMillis"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}}]),e}()).\u0275fac=function(e){return new(e||Y)(a.LFG(ee.eN),a.LFG(ne,8),a.LFG(ie,8))},Y.\u0275prov=a.Yz7({token:Y,factory:Y.\u0275fac,providedIn:"root"}),Y),fe=((H=function(){function e(t,n,i){_classCallCheck(this,e),this.httpClient=t,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new ee.WM,this.configuration=new ie,i&&(this.configuration=i),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new te}return _createClass(e,[{key:"addSponsorRoleToGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("authorizedGroup",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/addSponsorRole/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"addSponsorRoleToUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("user",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/addSponsorRole/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"addVoAdminGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("authorizedGroup",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/addAdmin/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"addVoAdminUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("user",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/addAdmin/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"createVoWithName",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("name",e)),null!=t&&(r=r.set("shortName",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/createVo/withName"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"createVoWithVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputCreateVoWithVo was null or undefined when calling createVoWithVo.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/vosManager/createVo/withVo"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"deleteVo",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("force",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/deleteVo"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"findCandidates",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("id",e)),null!=t&&(a=a.set("searchString",t)),null!=n&&(a=a.set("maxNumOfResults",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/findCandidates"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"findCandidatesForGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("group",e)),null!=t&&(r=r.set("searchString",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/findCandidates/forGroup"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getAllVos",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getAllVos"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getCompleteCandidatesForGroup",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("group",e)),t&&t.forEach(function(e){a=a.append("attrNames[]",e)}),null!=n&&(a=a.set("searchString",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getCompleteCandidates/forGroup"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getCompleteCandidatesForVo",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("vo",e)),t&&t.forEach(function(e){a=a.append("attrNames[]",e)}),null!=n&&(a=a.set("searchString",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getCompleteCandidates/forVo"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getMyVos",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVos"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"getRichAdminsForVo",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"body",o=arguments.length>6&&void 0!==arguments[6]&&arguments[6];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==n)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==i)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==r)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");var s=new ee.LE({encoder:this.encoder});null!=e&&(s=s.set("vo",e)),null!=t&&(s=s.set("role",t)),n&&n.forEach(function(e){s=s.append("specificAttributes",e)}),null!=i&&(s=s.set("allUserAttributes",i)),null!=r&&(s=s.set("onlyDirectAdmins",r));var c=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(c=c.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(c=c.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var u="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;c=c.set("Authorization","Bearer "+u)}var l=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==l&&(c=c.set("Accept",l)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getRichAdmins"),{params:s,withCredentials:this.configuration.withCredentials,headers:c,observe:a,reportProgress:o})}},{key:"getVoAdminGroups",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("role",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getAdminGroups"),{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"getVoAdminUsers",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"body",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];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==n)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");var a=new ee.LE({encoder:this.encoder});null!=e&&(a=a.set("vo",e)),null!=t&&(a=a.set("role",t)),null!=n&&(a=a.set("onlyDirectAdmins",n));var o=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(o=o.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var s="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;o=o.set("Authorization","Bearer "+s)}var c=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==c&&(o=o.set("Accept",c)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getAdmins"),{params:a,withCredentials:this.configuration.withCredentials,headers:o,observe:i,reportProgress:r})}},{key:"getVoBanById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("banId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getBanById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVoBanForMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getBanForMember"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVoBansForVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getBansForVo"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVoById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter id was null or undefined when calling getVoById.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("id",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVoById"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVoByShortName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("shortName",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVoByShortName"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVoMembersCountsByStatus",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("vo",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVoMembersCountsByStatus"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVosByIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");var i=new ee.LE({encoder:this.encoder});e&&e.forEach(function(e){i=i.append("ids[]",e)});var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVosByIds"),{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"getVosCount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(n=n.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(n=n.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var i="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;n=n.set("Authorization","Bearer "+i)}var r=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==r&&(n=n.set("Accept",r)),this.httpClient.get("".concat(this.configuration.basePath,"/json/vosManager/getVosCount"),{withCredentials:this.configuration.withCredentials,headers:n,observe:e,reportProgress:t})}},{key:"removeSponsorRoleFromGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("authorizedGroup",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeSponsorRole/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeSponsorRoleFromUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("user",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeSponsorRole/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeVoAdminGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("authorizedGroup",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeAdmin/group"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeVoAdminUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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.");var r=new ee.LE({encoder:this.encoder});null!=e&&(r=r.set("vo",e)),null!=t&&(r=r.set("user",t));var a=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(a=a.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(a=a.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var o="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;a=a.set("Authorization","Bearer "+o)}var s=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==s&&(a=a.set("Accept",s)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeAdmin/user"),null,{params:r,withCredentials:this.configuration.withCredentials,headers:a,observe:n,reportProgress:i})}},{key:"removeVoBan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("banId",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeBan"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"removeVoBanForMember",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");var i=new ee.LE({encoder:this.encoder});null!=e&&(i=i.set("member",e));var r=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(r=r.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var a="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;r=r.set("Authorization","Bearer "+a)}var o=this.configuration.selectHeaderAccept(["application/json"]);return void 0!==o&&(r=r.set("Accept",o)),this.httpClient.post("".concat(this.configuration.basePath,"/urlinjsonout/vosManager/removeBanForMember"),null,{params:i,withCredentials:this.configuration.withCredentials,headers:r,observe:t,reportProgress:n})}},{key:"setVoBan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputSetVoBan was null or undefined when calling setVoBan.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/vosManager/setBan"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"updateVo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e)throw new Error("Required parameter inputUpdateVo was null or undefined when calling updateVo.");var i=this.defaultHeaders;if(this.configuration.apiKeys&&this.configuration.apiKeys.Authorization&&(i=i.set("Authorization",this.configuration.apiKeys.Authorization)),(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password))),this.configuration.accessToken){var r="function"==typeof this.configuration.accessToken?this.configuration.accessToken():this.configuration.accessToken;i=i.set("Authorization","Bearer "+r)}var a=this.configuration.selectHeaderAccept(["application/json"]);void 0!==a&&(i=i.set("Accept",a));var o=this.configuration.selectHeaderContentType(["application/json"]);return void 0!==o&&(i=i.set("Content-Type",o)),this.httpClient.post("".concat(this.configuration.basePath,"/json/vosManager/updateVo"),e,{withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}}]),e}()).\u0275fac=function(e){return new(e||H)(a.LFG(ee.eN),a.LFG(ne,8),a.LFG(ie,8))},H.\u0275prov=a.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H);!function(e){e.HiddenEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"},e.DisabledEnum={NEVER:"NEVER",ALWAYS:"ALWAYS",IFPREFILLED:"IF_PREFILLED",IFEMPTY:"IF_EMPTY"}}(V||(V={})),function(e){e.FormatEnum={DOT:"DOT",TGF:"TGF"}}(J||(J={})),function(e){e.OwnerTypeEnum={NUMBER_0:0,NUMBER_1:1}}(Q||(Q={})),function(e){e.TypeEnum={Technical:"technical",Administrative:"administrative"}}($||($={}));var pe=function(e){return e.PERUNADMIN="PERUNADMIN",e.PERUNOBSERVER="PERUNOBSERVER",e.VOADMIN="VOADMIN",e.GROUPADMIN="GROUPADMIN",e.SELF="SELF",e.FACILITYADMIN="FACILITYADMIN",e.FACILITIYOBSERVER="FACILITYOBSERVER",e.RESOURCEADMIN="RESOURCEADMIN",e.RESOURCESELFSERVICE="RESOURCESELFSERVICE",e.REGISTRAR="REGISTRAR",e.ENGINE="ENGINE",e.RPC="RPC",e.NOTIFICATIONS="NOTIFICATIONS",e.SERVICEUSER="SERVICEUSER",e.SPONSOR="SPONSOR",e.VOOBSERVER="VOOBSERVER",e.TOPGROUPCREATOR="TOPGROUPCREATOR",e.SECURITYADMIN="SECURITYADMIN",e.CABINETADMIN="CABINETADMIN",e.UNKNOWNROLENAME="UNKNOWNROLENAME",e}({}),ge=function(){var e=function(){function e(t){_classCallCheck(this,e),this.authzSevice=t,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}return _createClass(e,[{key:"init",value:function(e){this.principal=e,this.initData(e)}},{key:"setPerunPolicies",value:function(e){this.perunPolicies=e}},{key:"getPerunPolicies",value:function(){return this.perunPolicies}},{key:"isAuthorized",value:function(e,t){if(null===this.principal.roles)return!1;var n,i=[],r=_createForOfIteratorHelper(this.fetchPolicyWithAllIncludedPolicies(e));try{for(r.s();!(n=r.n()).done;){var a=n.value;i=i.concat(a.perunRoles)}}catch(s){r.e(s)}finally{r.f()}var o=this.fetchAllRelatedObjects(t);return this.resolveAuthorization(i,o)}},{key:"resolveAuthorization",value:function(e,t){var n,i=_createForOfIteratorHelper(e);try{for(i.s();!(n=i.n()).done;){for(var r=n.value,a=!0,o=0,s=Object.keys(r);o=2&&(n=!0),function(i){return i.lift(new Ie(e,t,n))}}var Ie=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,e),this.accumulator=t,this.seed=n,this.hasSeed=i}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new qe(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),qe=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this,e)).accumulator=i,o._seed=r,o.hasSeed=a,o.index=0,o}return _createClass(n,[{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}},{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(i){this.destination.error(i)}this.seed=t,this.destination.next(t)}}]),n}(Pe.L),Be=n(7727),He=n(436),Ye=n(8402);function je(e){return function(t){return 0===e?(0,Le.c)():t.lift(new Fe(e))}}var Fe=function(){function e(t){if(_classCallCheck(this,e),this.total=t,this.total<0)throw new Ye.W}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new We(e,this.total))}}]),e}(),We=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).total=i,r.ring=new Array,r.count=0,r}return _createClass(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,i=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r2&&void 0!==arguments[2]?arguments[2]:"imperative",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _classCallCheck(this,n),(r=t.call(this,e,i)).navigationTrigger=a,r.restoredState=o,r}return _createClass(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(nt),rt=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a}return _createClass(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(nt),at=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).reason=r,a}return _createClass(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(nt),ot=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).error=r,a}return _createClass(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(nt),st=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o.state=a,o}return _createClass(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(nt),ct=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o.state=a,o}return _createClass(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(nt),ut=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o){var s;return _classCallCheck(this,n),(s=t.call(this,e,i)).urlAfterRedirects=r,s.state=a,s.shouldActivate=o,s}return _createClass(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(nt),lt=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o.state=a,o}return _createClass(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(nt),ht=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o.state=a,o}return _createClass(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(nt),dt=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),ft=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),pt=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),gt=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),mt=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),vt=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),_t=function(){function e(t,n,i){_classCallCheck(this,e),this.routerEvent=t,this.position=n,this.anchor=i}return _createClass(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),yt=function(){function e(t){_classCallCheck(this,e),this.params=t||{}}return _createClass(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function bt(e){return new yt(e)}function At(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function wt(e,t,n){var i=n.path.split("/");if(i.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||i.length0?e[e.length-1]:null}function Lt(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function St(e){return(0,a.CqO)(e)?e:(0,a.QGY)(e)?(0,ve.D)(Promise.resolve(e)):(0,_e.of)(e)}var Et={exact:function e(t,n,i){if(!qt(t.segments,n.segments))return!1;if(!Dt(t.segments,n.segments,i))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r],i))return!1}return!0},subset:xt},zt={exact:function(e,t){return kt(e,t)},subset:function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return Mt(e[n],t[n])})},ignored:function(){return!0}};function Ot(e,t,n){return Et[n.paths](e.root,t.root,n.matrixParams)&&zt[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function xt(e,t,n){return Rt(e,t,t.segments,n)}function Rt(e,t,n,i){if(e.segments.length>n.length){var r=e.segments.slice(0,n.length);return!!qt(r,n)&&!t.hasChildren()&&!!Dt(r,n,i)}if(e.segments.length===n.length){if(!qt(e.segments,n))return!1;if(!Dt(e.segments,n,i))return!1;for(var a in t.children){if(!e.children[a])return!1;if(!xt(e.children[a],t.children[a],i))return!1}return!0}var o=n.slice(0,e.segments.length),s=n.slice(e.segments.length);return!!qt(e.segments,o)&&!!Dt(e.segments,o,i)&&!!e.children.primary&&Rt(e.children.primary,t,s,i)}function Dt(e,t,n){return t.every(function(t,i){return zt[n](e[i].parameters,t.parameters)})}var Pt=function(){function e(t,n,i){_classCallCheck(this,e),this.root=t,this.queryParams=n,this.fragment=i}return _createClass(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=bt(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Yt.serialize(this)}}]),e}(),Nt=function(){function e(t,n){var i=this;_classCallCheck(this,e),this.segments=t,this.children=n,this.parent=null,Lt(n,function(e,t){return e.parent=i})}return _createClass(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return jt(this)}}]),e}(),It=function(){function e(t,n){_classCallCheck(this,e),this.path=t,this.parameters=n}return _createClass(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=bt(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return Xt(this)}}]),e}();function qt(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}var Bt=function e(){_classCallCheck(this,e)},Ht=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"parse",value:function(e){var t=new en(e);return new Pt(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){var t,n,i;return"/".concat(Ft(e.root,!0)).concat((n=e.queryParams,i=Object.keys(n).map(function(e){var t=n[e];return Array.isArray(t)?t.map(function(t){return"".concat(Ut(e),"=").concat(Ut(t))}).join("&"):"".concat(Ut(e),"=").concat(Ut(t))}).filter(function(e){return!!e}),i.length?"?".concat(i.join("&")):"")).concat("string"==typeof e.fragment?"#".concat((t=e.fragment,encodeURI(t))):"")}}]),e}(),Yt=new Ht;function jt(e){return e.segments.map(function(e){return Xt(e)}).join("/")}function Ft(e,t){if(!e.hasChildren())return jt(e);if(t){var n=e.children.primary?Ft(e.children.primary,!1):"",i=[];return Lt(e.children,function(e,t){"primary"!==t&&i.push("".concat(t,":").concat(Ft(e,!1)))}),i.length>0?"".concat(n,"(").concat(i.join("//"),")"):n}var r=function(e,t){var n=[];return Lt(e.children,function(e,i){"primary"===i&&(n=n.concat(t(e,i)))}),Lt(e.children,function(e,i){"primary"!==i&&(n=n.concat(t(e,i)))}),n}(e,function(t,n){return"primary"===n?[Ft(e.children.primary,!1)]:["".concat(n,":").concat(Ft(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children.primary?"".concat(jt(e),"/").concat(r[0]):"".concat(jt(e),"/(").concat(r.join("//"),")")}function Wt(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ut(e){return Wt(e).replace(/%3B/gi,";")}function Kt(e){return Wt(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Zt(e){return decodeURIComponent(e)}function Gt(e){return Zt(e.replace(/\+/g,"%20"))}function Xt(e){return"".concat(Kt(e.path)).concat((t=e.parameters,Object.keys(t).map(function(e){return";".concat(Kt(e),"=").concat(Kt(t[e]))}).join("")));var t}var Vt=/^[^\/()?;=#]+/;function Jt(e){var t=e.match(Vt);return t?t[0]:""}var Qt=/^[^=?&#]+/,$t=/^[^?&#]+/,en=function(){function e(t){_classCallCheck(this,e),this.url=t,this.remaining=t}return _createClass(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Nt([],{}):new Nt([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new Nt(e,t)),n}},{key:"parseSegment",value:function(){var e=Jt(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new It(Zt(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=Jt(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=Jt(this.remaining);i&&(n=i,this.capture(n))}e[Zt(t)]=Zt(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(Qt);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=function(e){var t=e.match($t);return t?t[0]:""}(this.remaining);i&&(n=i,this.capture(n))}var r=Gt(t),a=Gt(n);if(e.hasOwnProperty(r)){var o=e[r];Array.isArray(o)||(o=[o],e[r]=o),o.push(a)}else e[r]=a}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Jt(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r="primary");var a=this.parseChildren();t[r]=1===Object.keys(a).length?a.primary:new Nt([],a),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),tn=function(){function e(t){_classCallCheck(this,e),this._root=t}return _createClass(e,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=nn(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=nn(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=rn(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})}},{key:"pathFromRoot",value:function(e){return rn(e,this._root).map(function(e){return e.value})}}]),e}();function nn(e,t){if(e===t.value)return t;var n,i=_createForOfIteratorHelper(t.children);try{for(i.s();!(n=i.n()).done;){var r=nn(e,n.value);if(r)return r}}catch(a){i.e(a)}finally{i.f()}return null}function rn(e,t){if(e===t.value)return[t];var n,i=_createForOfIteratorHelper(t.children);try{for(i.s();!(n=i.n()).done;){var r=rn(e,n.value);if(r.length)return r.unshift(t),r}}catch(a){i.e(a)}finally{i.f()}return[]}var an=function(){function e(t,n){_classCallCheck(this,e),this.value=t,this.children=n}return _createClass(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function on(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var sn=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).snapshot=i,fn(_assertThisInitialized(r),e),r}return _createClass(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(tn);function cn(e,t){var n=function(e,t){var n=new hn([],{},{},"",{},"primary",t,null,e.root,-1,{});return new dn("",new an(n,[]))}(e,t),i=new Ae([new It("",{})]),r=new Ae({}),a=new Ae({}),o=new Ae({}),s=new Ae(""),c=new un(i,r,o,s,a,"primary",t,n.root);return c.snapshot=n.root,new sn(new an(c,[]),n)}var un=function(){function e(t,n,i,r,a,o,s,c){_classCallCheck(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=a,this.outlet=o,this.component=s,this._futureSnapshot=c}return _createClass(e,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe((0,ze.U)(function(e){return bt(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ze.U)(function(e){return bt(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function ln(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,i=0;if("always"!==t)for(i=n.length-1;i>=1;){var r=n[i],a=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(a.component)break;i--}}return function(e){return e.reduce(function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(i))}var hn=function(){function e(t,n,i,r,a,o,s,c,u,l,h){_classCallCheck(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=a,this.outlet=o,this.component=s,this.routeConfig=c,this._urlSegment=u,this._lastPathIndex=l,this._resolve=h}return _createClass(e,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=bt(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=bt(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(e){return e.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}}]),e}(),dn=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,i)).url=e,fn(_assertThisInitialized(r),i),r}return _createClass(n,[{key:"toString",value:function(){return pn(this._root)}}]),n}(tn);function fn(e,t){t.value._routerState=e,t.children.forEach(function(t){return fn(e,t)})}function pn(e){var t=e.children.length>0?" { ".concat(e.children.map(pn).join(", ")," } "):"";return"".concat(e.value).concat(t)}function gn(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,kt(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),kt(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&yn(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find(bn);if(r&&r!==Tt(i))throw new Error("{outlets:{}} has to be the last command")}return _createClass(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),Mn=function e(t,n,i){_classCallCheck(this,e),this.segmentGroup=t,this.processChildren=n,this.index=i};function Cn(e,t,n){if(e||(e=new Nt([],{})),0===e.segments.length&&e.hasChildren())return Tn(e,t,n);var i=function(e,t,n){for(var i=0,r=t,a={match:!1,pathIndex:0,commandIndex:0};r=n.length)return a;var o=e.segments[r],s=n[i];if(bn(s))break;var c="".concat(s),u=i0&&void 0===c)break;if(c&&u&&"object"==typeof u&&void 0===u.outlets){if(!zn(c,u,o))return a;i+=2}else{if(!zn(c,{},o))return a;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0)?Object.assign({},Un):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var r=(t.matcher||wt)(n,e,t);if(!r)return Object.assign({},Un);var a={};Lt(r.posParams,function(e,t){a[t]=e.path});var o=r.consumed.length>0?Object.assign(Object.assign({},a),r.consumed[r.consumed.length-1].parameters):a;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function Zn(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&function(e,t,n){return n.some(function(n){return Gn(e,t,n)&&"primary"!==Fn(n)})}(e,n,i)){var a=new Nt(t,function(e,t,n,i){var r={};r.primary=i,i._sourceSegment=e,i._segmentIndexShift=t.length;var a,o=_createForOfIteratorHelper(n);try{for(o.s();!(a=o.n()).done;){var s=a.value;if(""===s.path&&"primary"!==Fn(s)){var c=new Nt([],{});c._sourceSegment=e,c._segmentIndexShift=t.length,r[Fn(s)]=c}}}catch(u){o.e(u)}finally{o.f()}return r}(e,t,i,new Nt(n,e.children)));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(function(n){return Gn(e,t,n)})}(e,n,i)){var o=new Nt(e.segments,function(e,t,n,i,r,a){var o,s={},c=_createForOfIteratorHelper(i);try{for(c.s();!(o=c.n()).done;){var u=o.value;if(Gn(e,n,u)&&!r[Fn(u)]){var l=new Nt([],{});l._sourceSegment=e,l._segmentIndexShift="legacy"===a?e.segments.length:t.length,s[Fn(u)]=l}}}catch(h){c.e(h)}finally{c.f()}return Object.assign(Object.assign({},r),s)}(e,t,n,i,e.children,r));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:n}}var s=new Nt(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function Gn(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function Xn(e,t,n,i){return!!(Fn(e)===i||"primary"!==i&&Gn(t,n,e))&&("**"===e.path||Kn(t,e,n).matched)}function Vn(e,t,n){return 0===t.length&&!e.children[n]}var Jn=function e(t){_classCallCheck(this,e),this.segmentGroup=t||null},Qn=function e(t){_classCallCheck(this,e),this.urlTree=t};function $n(e){return new ke.y(function(t){return t.error(new Jn(e))})}function ei(e){return new ke.y(function(t){return t.error(new Qn(e))})}function ti(e){return new ke.y(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var ni=function(){function e(t,n,i,r,o){_classCallCheck(this,e),this.configLoader=n,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(a.h0i)}return _createClass(e,[{key:"apply",value:function(){var e=this,t=Zn(this.urlTree.root,[],[],this.config).segmentGroup,n=new Nt(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,n,"primary").pipe((0,ze.U)(function(t){return e.createUrlTree(ii(t),e.urlTree.queryParams,e.urlTree.fragment)})).pipe((0,Be.K)(function(t){if(t instanceof Qn)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof Jn)throw e.noMatchError(t);throw t}))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,"primary").pipe((0,ze.U)(function(n){return t.createUrlTree(ii(n),e.queryParams,e.fragment)})).pipe((0,Be.K)(function(e){if(e instanceof Jn)throw t.noMatchError(e);throw e}))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,n){var i=e.segments.length>0?new Nt([],{primary:e}):e;return new Pt(i,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe((0,ze.U)(function(e){return new Nt([],e)})):this.expandSegment(e,n,t,n.segments,i,!0)}},{key:"expandChildren",value:function(e,t,n){for(var i=this,r=[],a=0,o=Object.keys(n.children);a=2;return function(i){return i.pipe(e?(0,me.h)(function(t,n){return e(t,n,i)}):Ze.y,je(1),n?(0,Ke.d)(t):(0,Ue.T)(function(){return new Me.K}))}}())}},{key:"expandSegment",value:function(e,t,n,i,r,a){var o=this;return(0,ve.D)(n).pipe((0,He.b)(function(s){return o.expandSegmentAgainstRoute(e,t,n,s,i,r,a).pipe((0,Be.K)(function(e){if(e instanceof Jn)return(0,_e.of)(null);throw e}))}),(0,Ge.P)(function(e){return!!e}),(0,Be.K)(function(e,n){if(e instanceof Me.K||"EmptyError"===e.name){if(Vn(t,i,r))return(0,_e.of)(new Nt([],{}));throw new Jn(t)}throw e}))}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,i,r,a,o){return Xn(i,t,r,a)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r,a):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,a):$n(t):$n(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,a){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,a):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,a)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,i){var r=this,a=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?ei(a):this.lineralizeSegments(n,a).pipe((0,Xe.zg)(function(n){var a=new Nt(n,{});return r.expandSegment(e,a,t,n,i,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,a){var o=this,s=Kn(t,i,r),c=s.matched,u=s.consumedSegments,l=s.lastChild,h=s.positionalParamSegments;if(!c)return $n(t);var d=this.applyRedirectCommands(u,i.redirectTo,h);return i.redirectTo.startsWith("/")?ei(d):this.lineralizeSegments(i,d).pipe((0,Xe.zg)(function(i){return o.expandSegment(e,t,n,i.concat(r.slice(l)),a,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,i,r){var a=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?(0,_e.of)(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe((0,ze.U)(function(e){return n._loadedConfig=e,new Nt(i,{})})):(0,_e.of)(new Nt(i,{}));var o=Kn(t,n,i),s=o.matched,c=o.consumedSegments,u=o.lastChild;if(!s)return $n(t);var l=i.slice(u);return this.getChildConfig(e,n,i).pipe((0,Xe.zg)(function(e){var i=e.module,o=e.routes,s=Zn(t,c,l,o),u=s.segmentGroup,h=s.slicedSegments,d=new Nt(u.segments,u.children);if(0===h.length&&d.hasChildren())return a.expandChildren(i,o,d).pipe((0,ze.U)(function(e){return new Nt(c,e)}));if(0===o.length&&0===h.length)return(0,_e.of)(new Nt(c,{}));var f=Fn(n)===r;return a.expandSegment(i,d,o,h,f?"primary":r,!0).pipe((0,ze.U)(function(e){return new Nt(c.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var i=this;return t.children?(0,_e.of)(new Rn(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?(0,_e.of)(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe((0,Xe.zg)(function(n){return n?i.configLoader.load(e.injector,t).pipe((0,ze.U)(function(e){return t._loadedConfig=e,e})):function(e){return new ke.y(function(t){return t.error(At("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(t)})):(0,_e.of)(new Rn([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var i=this,r=t.canLoad;if(!r||0===r.length)return(0,_e.of)(!0);var a=r.map(function(i){var r,a=e.get(i);if(function(e){return e&&Dn(e.canLoad)}(a))r=a.canLoad(t,n);else{if(!Dn(a))throw new Error("Invalid CanLoad guard");r=a(t,n)}return St(r)});return(0,_e.of)(a).pipe(In(),(0,Ve.b)(function(e){if(Pn(e)){var t=At('Redirecting to "'.concat(i.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),(0,ze.U)(function(e){return!0===e}))}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],i=t.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return(0,_e.of)(n);if(i.numberOfChildren>1||!i.children.primary)return ti(e.redirectTo);i=i.children.primary}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,i){var r=this.createSegmentGroup(e,t.root,n,i);return new Pt(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return Lt(e,function(e,i){if("string"==typeof e&&e.startsWith(":")){var r=e.substring(1);n[i]=t[r]}else n[i]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,i){var r=this,a=this.createSegments(e,t.segments,n,i),o={};return Lt(t.children,function(t,a){o[a]=r.createSegmentGroup(e,t,n,i)}),new Nt(a,o)}},{key:"createSegments",value:function(e,t,n,i){var r=this;return t.map(function(t){return t.path.startsWith(":")?r.findPosParam(e,t,i):r.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var i=n[t.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return i}},{key:"findOrReturn",value:function(e,t){var n,i=0,r=_createForOfIteratorHelper(t);try{for(r.s();!(n=r.n()).done;){var a=n.value;if(a.path===e.path)return t.splice(i),a;i++}}catch(o){r.e(o)}finally{r.f()}return e}}]),e}();function ii(e){for(var t={},n=0,i=Object.keys(e.children);n0||a.hasChildren())&&(t[r]=a)}return function(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new Nt(e.segments.concat(t.segments),t.children)}return e}(new Nt(e.segments,t))}var ri=function e(t){_classCallCheck(this,e),this.path=t,this.route=this.path[this.path.length-1]},ai=function e(t,n){_classCallCheck(this,e),this.component=t,this.route=n};function oi(e,t,n){var i=e._root;return ci(i,t?t._root:null,n,[i.value])}function si(e,t,n){var i=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function ci(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=on(t);return e.children.forEach(function(e){!function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=e.value,o=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(o&&a.routeConfig===o.routeConfig){var c=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!qt(e.url,t.url);case"pathParamsOrQueryParamsChange":return!qt(e.url,t.url)||!kt(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!mn(e,t)||!kt(e.queryParams,t.queryParams);case"paramsChange":default:return!mn(e,t)}}(o,a,a.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new ri(i)):(a.data=o.data,a._resolvedData=o._resolvedData),ci(e,t,a.component?s?s.children:null:n,i,r),c&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new ai(s.outlet.component,o))}else o&&ui(t,s,r),r.canActivateChecks.push(new ri(i)),ci(e,null,a.component?s?s.children:null:n,i,r)}(e,a[e.value.outlet],n,i.concat([e.value]),r),delete a[e.value.outlet]}),Lt(a,function(e,t){return ui(e,n.getContext(t),r)}),r}function ui(e,t,n){var i=on(e),r=e.value;Lt(i,function(e,i){ui(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new ai(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}var li=function e(){_classCallCheck(this,e)};function hi(e){return new ke.y(function(t){return t.error(e)})}var di=function(){function e(t,n,i,r,a,o){_classCallCheck(this,e),this.rootComponentType=t,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=o}return _createClass(e,[{key:"recognize",value:function(){var e=Zn(this.urlTree.root,[],[],this.config.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary");if(null===t)return null;var n=new hn([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new an(n,t),r=new dn(this.url,i);return this.inheritParamsAndData(r._root),r}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,i=ln(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){for(var n=[],i=0,r=Object.keys(t.children);i0?Tt(n).parameters:{};r=new hn(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,mi(e),Fn(e),e.component,e,pi(t),gi(t)+n.length,vi(e))}else{var c=Kn(t,e,n);if(!c.matched)return null;a=c.consumedSegments,o=n.slice(c.lastChild),r=new hn(a,c.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,mi(e),Fn(e),e.component,e,pi(t),gi(t)+a.length,vi(e))}var u=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),l=Zn(t,a,o,u.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution),h=l.segmentGroup,d=l.slicedSegments;if(0===d.length&&h.hasChildren()){var f=this.processChildren(u,h);return null===f?null:[new an(r,f)]}if(0===u.length&&0===d.length)return[new an(r,[])];var p=Fn(e)===i,g=this.processSegment(u,h,d,p?"primary":i);return null===g?null:[new an(r,g)]}}]),e}();function fi(e){var t,n=[],i=new Set,r=_createForOfIteratorHelper(e);try{var a=function(){var e,r=t.value;if(!function(e){var t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}(r))return n.push(r),"continue";var a=n.find(function(e){return r.value.routeConfig===e.value.routeConfig});void 0!==a?((e=a.children).push.apply(e,_toConsumableArray(r.children)),i.add(a)):n.push(r)};for(r.s();!(t=r.n()).done;)a()}catch(l){r.e(l)}finally{r.f()}var o,s=_createForOfIteratorHelper(i);try{for(s.s();!(o=s.n()).done;){var c=o.value,u=fi(c.children);n.push(new an(c.value,u))}}catch(l){s.e(l)}finally{s.f()}return n.filter(function(e){return!i.has(e)})}function pi(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function gi(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function mi(e){return e.data||{}}function vi(e){return e.resolve||{}}function _i(e){return(0,Oe.w)(function(t){var n=e(t);return n?(0,ve.D)(n).pipe((0,ze.U)(function(){return t})):(0,_e.of)(t)})}var yi=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}()),bi=new a.OlP("ROUTES"),Ai=function(){function e(t,n,i,r){_classCallCheck(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r}return _createClass(e,[{key:"load",value:function(e,t){var n=this;if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);var i=this.loadModuleFactory(t.loadChildren).pipe((0,ze.U)(function(i){n.onLoadEndListener&&n.onLoadEndListener(t);var r=i.create(e);return new Rn(Ct(r.injector.get(bi,void 0,a.XFs.Self|a.XFs.Optional)).map(jn),r)}),(0,Be.K)(function(e){throw t._loader$=void 0,e}));return t._loader$=new Ee.c(i,function(){return new ye.xQ}).pipe((0,Je.x)()),t._loader$}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?(0,ve.D)(this.loader.load(e)):St(e()).pipe((0,Xe.zg)(function(e){return e instanceof a.YKP?(0,_e.of)(e):(0,ve.D)(t.compiler.compileModuleAsync(e))}))}}]),e}(),wi=function e(){_classCallCheck(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new ki,this.attachRef=null},ki=function(){function e(){_classCallCheck(this,e),this.contexts=new Map}return _createClass(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new wi,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),Mi=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function Ci(e){throw e}function Ti(e,t,n){return t.parse("/")}function Li(e,t){return(0,_e.of)(null)}var Si={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ei={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},zi=function(){var e=function(){function e(t,n,i,r,o,s,c,u){var l=this;_classCallCheck(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=i,this.location=r,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new ye.xQ,this.errorHandler=Ci,this.malformedUriErrorHandler=Ti,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Li,afterPreactivation:Li},this.urlHandlingStrategy=new Mi,this.routeReuseStrategy=new yi,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(a.h0i),this.console=o.get(a.c2e);var h=o.get(a.R0b);this.isNgZoneEnabled=h instanceof a.R0b&&a.R0b.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=new Pt(new Nt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Ai(s,c,function(e){return l.triggerEvent(new dt(e))},function(e){return l.triggerEvent(new ft(e))}),this.routerState=cn(this.currentUrlTree,this.rootComponentType),this.transitions=new Ae({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()}return _createClass(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe((0,me.h)(function(e){return 0!==e.id}),(0,ze.U)(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),(0,Oe.w)(function(e){var i,r,a,o=!1,s=!1;return(0,_e.of)(e).pipe((0,Ve.b)(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,Oe.w)(function(e){var i,r,a,o,s=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return(0,_e.of)(e).pipe((0,Oe.w)(function(e){var i=t.transitions.getValue();return n.next(new it(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),i!==t.transitions.getValue()?Le.E:Promise.resolve(e)}),(i=t.ngModule.injector,r=t.configLoader,a=t.urlSerializer,o=t.config,(0,Oe.w)(function(e){return function(e,t,n,i,r){return new ni(e,t,n,i,r).apply()}(i,r,a,e.extractedUrl,o).pipe((0,ze.U)(function(t){return Object.assign(Object.assign({},e),{urlAfterRedirects:t})}))})),(0,Ve.b)(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,i,r,a){return(0,Xe.zg)(function(i){return function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var o=new di(e,t,n,i,r,a).recognize();return null===o?hi(new li):(0,_e.of)(o)}catch(s){return hi(s)}}(e,n,i.urlAfterRedirects,(o=i.urlAfterRedirects,t.serializeUrl(o)),r,a).pipe((0,ze.U)(function(e){return Object.assign(Object.assign({},i),{targetSnapshot:e})}));var o})}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),(0,Ve.b)(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,e),t.browserUrlTree=e.urlAfterRedirects);var i=new st(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(i)}));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var c=e.id,u=e.extractedUrl,l=e.source,h=e.restoredState,d=e.extras,f=new it(c,t.serializeUrl(u),l,h);n.next(f);var p=cn(u,t.rootComponentType).snapshot;return(0,_e.of)(Object.assign(Object.assign({},e),{targetSnapshot:p,urlAfterRedirects:u,extras:Object.assign(Object.assign({},d),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),Le.E}),_i(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,a=e.rawUrl,o=e.extras,s=o.skipLocationChange,c=o.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:a,skipLocationChange:!!s,replaceUrl:!!c})}),(0,Ve.b)(function(e){var n=new ct(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),(0,ze.U)(function(e){return Object.assign(Object.assign({},e),{guards:oi(e.targetSnapshot,e.currentSnapshot,t.rootContexts)})}),function(e,t){return(0,Xe.zg)(function(n){var i=n.targetSnapshot,r=n.currentSnapshot,a=n.guards,o=a.canActivateChecks,s=a.canDeactivateChecks;return 0===s.length&&0===o.length?(0,_e.of)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return(0,ve.D)(e).pipe((0,Xe.zg)(function(e){return function(e,t,n,i,r){var a=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!a||0===a.length)return(0,_e.of)(!0);var o=a.map(function(a){var o,s=si(a,t,r);if(function(e){return e&&Dn(e.canDeactivate)}(s))o=St(s.canDeactivate(e,t,n,i));else{if(!Dn(s))throw new Error("Invalid CanDeactivate guard");o=St(s(e,t,n,i))}return o.pipe((0,Ge.P)())});return(0,_e.of)(o).pipe(In())}(e.component,e.route,n,t,i)}),(0,Ge.P)(function(e){return!0!==e},!0))}(s,i,r,e).pipe((0,Xe.zg)(function(n){return n&&"boolean"==typeof n?function(e,t,n,i){return(0,ve.D)(t).pipe((0,He.b)(function(t){return Te(function(e,t){return null!==e&&t&&t(new pt(e)),(0,_e.of)(!0)}(t.route.parent,i),function(e,t){return null!==e&&t&&t(new mt(e)),(0,_e.of)(!0)}(t.route,i),function(e,t,n){var i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return Se(function(){var r=t.guards.map(function(r){var a,o=si(r,t.node,n);if(function(e){return e&&Dn(e.canActivateChild)}(o))a=St(o.canActivateChild(i,e));else{if(!Dn(o))throw new Error("Invalid CanActivateChild guard");a=St(o(i,e))}return a.pipe((0,Ge.P)())});return(0,_e.of)(r).pipe(In())})});return(0,_e.of)(r).pipe(In())}(e,t.path,n),function(e,t,n){var i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return(0,_e.of)(!0);var r=i.map(function(i){return Se(function(){var r,a=si(i,t,n);if(function(e){return e&&Dn(e.canActivate)}(a))r=St(a.canActivate(t,e));else{if(!Dn(a))throw new Error("Invalid CanActivate guard");r=St(a(t,e))}return r.pipe((0,Ge.P)())})});return(0,_e.of)(r).pipe(In())}(e,t.route,n))}),(0,Ge.P)(function(e){return!0!==e},!0))}(i,o,e,t):(0,_e.of)(n)}),(0,ze.U)(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))})}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),(0,Ve.b)(function(e){if(Pn(e.guardsResult)){var n=At('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}var i=new ut(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(i)}),(0,me.h)(function(e){return!!e.guardsResult||(t.cancelNavigationTransition(e,""),!1)}),_i(function(e){if(e.guards.canActivateChecks.length)return(0,_e.of)(e).pipe((0,Ve.b)(function(e){var n=new lt(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),(0,Oe.w)(function(e){var n,i,r=!1;return(0,_e.of)(e).pipe((n=t.paramsInheritanceStrategy,i=t.ngModule.injector,(0,Xe.zg)(function(e){var t=e.targetSnapshot,r=e.guards.canActivateChecks;if(!r.length)return(0,_e.of)(e);var a=0;return(0,ve.D)(r).pipe((0,He.b)(function(e){return function(e,t,n,i){return function(e,t,n,i){var r=Object.keys(e);if(0===r.length)return(0,_e.of)({});var a={};return(0,ve.D)(r).pipe((0,Xe.zg)(function(r){return function(e,t,n,i){var r=si(e,t,i);return St(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe((0,Ve.b)(function(e){a[r]=e}))}),je(1),(0,Xe.zg)(function(){return Object.keys(a).length===r.length?(0,_e.of)(a):Le.E}))}(e._resolve,e,t,i).pipe((0,ze.U)(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),ln(e,n).resolve),null}))}(e.route,t,n,i)}),(0,Ve.b)(function(){return a++}),je(1),(0,Xe.zg)(function(t){return a===r.length?(0,_e.of)(e):Le.E}))})),(0,Ve.b)({next:function(){return r=!0},complete:function(){r||t.cancelNavigationTransition(e,"At least one route resolver didn't emit any value.")}}))}),(0,Ve.b)(function(e){var n=new ht(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),_i(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,a=e.rawUrl,o=e.extras,s=o.skipLocationChange,c=o.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:a,skipLocationChange:!!s,replaceUrl:!!c})}),(0,ze.U)(function(e){var n=function(e,t,n){var i=vn(e,t._root,n?n._root:void 0);return new sn(i,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})}),(0,Ve.b)(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,e),t.browserUrlTree=e.urlAfterRedirects)}),(i=t.rootContexts,r=t.routeReuseStrategy,a=function(e){return t.triggerEvent(e)},(0,ze.U)(function(e){return new On(r,e.targetRouterState,e.currentRouterState,a).activate(i),e})),(0,Ve.b)({next:function(){o=!0},complete:function(){o=!0}}),$e(function(){o||s||t.cancelNavigationTransition(e,"Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId)),t.currentNavigation=null}),(0,Be.K)(function(i){if(s=!0,(c=i)&&c.ngNavigationCancelingError){var r=Pn(i.url);r||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var a=new at(e.id,t.serializeUrl(e.extractedUrl),i.message);n.next(a),r?setTimeout(function(){var n=t.urlHandlingStrategy.merge(i.url,t.rawUrlTree);t.scheduleNavigation(n,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var o=new ot(e.id,t.serializeUrl(e.extractedUrl),i);n.next(o);try{e.resolve(t.errorHandler(i))}catch(u){e.reject(u)}}var c;return Le.E}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,i=n.state,r=n.urlTree,a={replaceUrl:!0};if(i){var o=Object.assign({},i);delete o.navigationId,delete o.\u0275routerPageId,0!==Object.keys(o).length&&(a.state=o)}e.scheduleNavigation(r,t,i,a)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){Bn(e),this.config=e.map(jn),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,i=t.queryParams,r=t.fragment,a=t.queryParamsHandling,o=t.preserveFragment,s=n||this.routerState.root,c=o?this.currentUrlTree.fragment:r,u=null;switch(a){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}return null!==u&&(u=this.removeEmptyProps(u)),function(e,t,n,i,r){if(0===n.length)return An(t.root,t.root,t,i,r);var a=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new kn(!0,0,e);var t=0,n=!1,i=e.reduce(function(e,i,r){if("object"==typeof i&&null!=i){if(i.outlets){var a={};return Lt(i.outlets,function(e,t){a[t]="string"==typeof e?e.split("/"):e}),[].concat(_toConsumableArray(e),[{outlets:a}])}if(i.segmentPath)return[].concat(_toConsumableArray(e),[i.segmentPath])}return"string"!=typeof i?[].concat(_toConsumableArray(e),[i]):0===r?(i.split("/").forEach(function(i,r){0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))}),e):[].concat(_toConsumableArray(e),[i])},[]);return new kn(n,t,i)}(n);if(a.toRoot())return An(t.root,new Nt([],{}),t,i,r);var o=function(e,t,n){if(e.isAbsolute)return new Mn(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var i=n.snapshot._urlSegment;return new Mn(i,i===t.root,0)}var r=yn(e.commands[0])?0:1;return function(e,t,n){for(var i=e,r=t,a=n;a>r;){if(a-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new Mn(i,!1,r-a)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(a,t,e),s=o.processChildren?Tn(o.segmentGroup,o.index,a.commands):Cn(o.segmentGroup,o.index,a.commands);return An(o.segmentGroup,s,t,i,r)}(s,this.currentUrlTree,e,u,null!=c?c:null)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=Pn(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree),r=null;return"computed"===this.canceledNavigationResolution&&(0===this.currentPageId||t.skipLocationChange||t.replaceUrl)&&(r=this.location.getState()),this.scheduleNavigation(i,"imperative",r,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,e),this.router=t,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return _createClass(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof it?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof rt&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof _t&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new _t(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(zi),a.LFG(r.EM),a.LFG(void 0))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}(),Yi=new a.OlP("ROUTER_CONFIGURATION"),ji=new a.OlP("ROUTER_FORROOT_GUARD"),Fi=[r.Ye,{provide:Bt,useClass:Ht},{provide:zi,useFactory:function(e,t,n,i,r,a,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},c=arguments.length>8?arguments[8]:void 0,u=arguments.length>9?arguments[9]:void 0,l=new zi(null,e,t,n,i,r,a,Ct(o));return c&&(l.urlHandlingStrategy=c),u&&(l.routeReuseStrategy=u),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(s,l),s.enableTracing&&l.events.subscribe(function(e){var t,n;null===(t=console.group)||void 0===t||t.call(console,"Router Event: ".concat(e.constructor.name)),console.log(e.toString()),console.log(e),null===(n=console.groupEnd)||void 0===n||n.call(console)}),l},deps:[Bt,ki,r.Ye,a.zs3,a.v3s,a.Sil,bi,Yi,[function(){return function e(){_classCallCheck(this,e)}}(),new a.FiY],[function(){return function e(){_classCallCheck(this,e)}}(),new a.FiY]]},ki,{provide:un,useFactory:function(e){return e.routerState.root},deps:[zi]},{provide:a.v3s,useClass:a.EAV},Bi,qi,Ii,{provide:Yi,useValue:{enableTracing:!1}}];function Wi(){return new a.PXZ("Router",zi)}var Ui,Ki=((Ui=function(){function e(t,n){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[Fi,Vi(t),{provide:ji,useFactory:Xi,deps:[[zi,new a.FiY,new a.tp0]]},{provide:Yi,useValue:n||{}},{provide:r.S$,useFactory:Gi,deps:[r.lw,[new a.tBr(r.mr),new a.FiY],Yi]},{provide:Hi,useFactory:Zi,deps:[zi,r.EM,Yi]},{provide:Ni,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:qi},{provide:a.PXZ,multi:!0,useFactory:Wi},[Ji,{provide:a.ip1,multi:!0,useFactory:Qi,deps:[Ji]},{provide:er,useFactory:$i,deps:[Ji]},{provide:a.tb,multi:!0,useExisting:er}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[Vi(t)]}}}]),e}()).\u0275fac=function(e){return new(e||Ui)(a.LFG(ji,8),a.LFG(zi,8))},Ui.\u0275mod=a.oAB({type:Ui}),Ui.\u0275inj=a.cJS({}),Ui);function Zi(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Hi(e,t,n)}function Gi(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new r.Do(e,t):new r.b0(e,t)}function Xi(e){return"guarded"}function Vi(e){return[{provide:a.deG,multi:!0,useValue:e},{provide:bi,multi:!0,useValue:e}]}var Ji=function(){var e=function(){function e(t){_classCallCheck(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new ye.xQ}return _createClass(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(r.V_,Promise.resolve(null)).then(function(){var t=null,n=new Promise(function(e){return t=e}),i=e.injector.get(zi),r=e.injector.get(Yi);return"disabled"===r.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(i.hooks.afterPreactivation=function(){return e.initNavigation?(0,_e.of)(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},i.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(Yi),n=this.injector.get(Bi),i=this.injector.get(Hi),r=this.injector.get(zi),o=this.injector.get(a.z2F);e===o.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(a.zs3))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}();function Qi(e){return e.appInitializer.bind(e)}function $i(e){return e.bootstrapListener.bind(e)}var er=new a.OlP("Router Initializer"),tr=function(){var e=function(){function e(){_classCallCheck(this,e),this.branding=""}return _createClass(e,[{key:"setInstanceConfig",value:function(e){this.instanceConfig=e}},{key:"setDefaultConfig",value:function(e){this.defaultConfig=e}},{key:"getAppsConfig",value:function(){return this.appsConfig}},{key:"setAppsConfig",value:function(e){this.appsConfig=e}},{key:"setPerunPrincipal",value:function(e){this.principal=e}},{key:"getPerunPrincipal",value:function(){return this.principal}},{key:"getInitialPageId",value:function(){return this.initialPageId}},{key:"setInitialPageId",value:function(e){this.initialPageId=e}},{key:"getLoginAttributeNames",value:function(){return this.get("login_namespace_attributes")}},{key:"getMemberProfileAttributeNames",value:function(){return this.get("member_profile_attributes_friendly_names")}},{key:"setBanding",value:function(e){this.branding=e}},{key:"skipOidc",value:function(){return this.get("skip_oidc")}},{key:"get",value:function(){for(var e,t=arguments.length,n=new Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:0;return rr(e)?Number(e):t}function rr(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function ar(e){return Array.isArray(e)?e:[e]}function or(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function sr(e){return e instanceof a.SBq?e.nativeElement:e}var cr=n(8470),ur=n(5024);function lr(e,t,n,i){return(0,ur.m)(n)&&(i=n,n=void 0),i?lr(e,t,n).pipe((0,ze.U)(function(e){return(0,cr.k)(e)?i.apply(void 0,_toConsumableArray(e)):i(e)})):new ke.y(function(i){hr(e,t,function(e){i.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},i,n)})}function hr(e,t,n,i,r){var a;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var o=e;e.addEventListener(t,n,r),a=function(){return o.removeEventListener(t,n,r)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var s=e;e.on(t,n),a=function(){return s.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var c=e;e.addListener(t,n),a=function(){return c.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var u=0,l=e.length;u2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return _get(_getPrototypeOf(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}]),n}(dr.o),pr=n(1098),gr=new(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=br(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return _get(_getPrototypeOf(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(Ar(t),e.scheduled=void 0)}}]),n}(dr.o),kr=new(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i=0}function Dr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=-1;return Rr(t)?i=Number(t)<1?1:Number(t):(0,Re.K)(t)&&(n=t),(0,Re.K)(n)||(n=Sr.P),new ke.y(function(t){var r=Rr(e)?e:+e-n.now();return n.schedule(Pr,r,{index:0,period:i,subscriber:t})})}function Pr(e){var t=e.index,n=e.period,i=e.subscriber;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}function Nr(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Sr.P;return t=function(){return Dr(e,n)},function(e){return e.lift(new Or(t))}}function Ir(e){return function(t){return t.lift(new Br(e))}}var qr,Br=function(){function e(t){_classCallCheck(this,e),this.notifier=t}return _createClass(e,[{key:"call",value:function(e,t){var n=new Hr(e),i=(0,zr.D)(n,this.notifier);return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}]),e}(),Hr=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e)).seenValue=!1,i}return _createClass(n,[{key:"notifyNext",value:function(e,t,n,i,r){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(Er.L),Yr=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t>0?_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,t){return t>0||this.closed?_get(_getPrototypeOf(n.prototype),"execute",this).call(this,e,t):this._execute(e,t)}},{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0||null===i&&this.delay>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,e,t,i):e.flush(this)}}]),n}(dr.o),jr=new(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(pr.v))(Yr),Fr=n(3103),Wr=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return _classCallCheck(this,n),(r=t.call(this,e)).scheduler=i,r.delay=a,r}return _createClass(n,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(n.dispatch,this.delay,new Ur(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage(Fr.P.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage(Fr.P.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(Fr.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()}}]),n}(Pe.L),Ur=function e(t,n){_classCallCheck(this,e),this.notification=t,this.destination=n},Kr=n(9291),Zr=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,a=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,n),(e=t.call(this)).scheduler=a,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=i<1?1:i,e._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return _createClass(n,[{key:"nextInfiniteTimeWindow",value:function(e){var t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"nextTimeWindow",value:function(e){this._events.push(new Gr(this._getNow(),e)),this._trimBufferThenGetEvents(),_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"_subscribe",value:function(e){var t,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,a=i.length;if(this.closed)throw new be.N;if(this.isStopped||this.hasError?t=Qe.w.EMPTY:(this.observers.push(e),t=new Kr.W(this,e)),r&&e.add(e=new Wr(e,r)),n)for(var o=0;ot&&(a=Math.max(a,r-t)),a>0&&i.splice(0,a),i}}]),n}(ye.xQ),Gr=function e(t,n){_classCallCheck(this,e),this.time=t,this.value=n};function Xr(e,t,n){var i;return i=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},function(e){return e.lift(function(e){var t,n,i=e.bufferSize,r=void 0===i?Number.POSITIVE_INFINITY:i,a=e.windowTime,o=void 0===a?Number.POSITIVE_INFINITY:a,s=e.refCount,c=e.scheduler,u=0,l=!1,h=!1;return function(e){u++,t&&!l||(l=!1,t=new Zr(r,o,c),n=e.subscribe({next:function(e){t.next(e)},error:function(e){l=!0,t.error(e)},complete:function(){h=!0,n=void 0,t.complete()}}));var i=t.subscribe(this);this.add(function(){u--,i.unsubscribe(),n&&!h&&s&&0===u&&(n.unsubscribe(),n=void 0,t=void 0)})}}(i))}}try{qr="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(_E){qr=!1}var Vr,Jr,Qr,$r,ea,ta=function(){var e=function e(t){_classCallCheck(this,e),this._platformId=t,this.isBrowser=this._platformId?(0,r.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&&!qr)&&"undefined"!=typeof CSS&&!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 e.\u0275fac=function(t){return new(t||e)(a.LFG(a.Lbi))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(a.Lbi))},token:e,providedIn:"root"}),e}(),na=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({}),e}(),ia=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function ra(){if(Vr)return Vr;if("object"!=typeof document||!document)return Vr=new Set(ia);var e=document.createElement("input");return Vr=new Set(ia.filter(function(t){return e.setAttribute("type",t),e.type===t}))}function aa(e){return function(){if(null==Jr&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Jr=!0}}))}finally{Jr=Jr||!1}return Jr}()?e:!!e.capture}function oa(){if(null==$r){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return $r=!1;if("scrollBehavior"in document.documentElement.style)$r=!0;else{var e=Element.prototype.scrollTo;$r=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return $r}function sa(){if("object"!=typeof document||!document)return 0;if(null==Qr){var e=document.createElement("div"),t=e.style;e.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";var n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",e.appendChild(n),document.body.appendChild(e),Qr=0,0===e.scrollLeft&&(e.scrollLeft=1,Qr=0===e.scrollLeft?1:2),e.parentNode.removeChild(e)}return Qr}function ca(e){if(function(){if(null==ea){var e="undefined"!=typeof document?document.head:null;ea=!(!e||!e.createShadowRoot&&!e.attachShadow)}return ea}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function ua(){for(var e="undefined"!=typeof document&&document?document.activeElement:null;e&&e.shadowRoot;){var t=e.shadowRoot.activeElement;if(t===e)break;e=t}return e}var la=new a.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,a.f3M)(r.K0)}}),ha=function(){var e=function(){function e(t){if(_classCallCheck(this,e),this.value="ltr",this.change=new a.vpe,t){var n=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||n;this.value="ltr"===i||"rtl"===i?i:"ltr"}}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(la,8))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(la,8))},token:e,providedIn:"root"}),e}(),da=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({}),e}();function fa(e){return e&&"function"==typeof e.connect}var pa=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"applyChanges",value:function(e,t,n,i,r){e.forEachOperation(function(e,i,a){var o,s;if(null==e.previousIndex){var c=n(e,i,a);o=t.createEmbeddedView(c.templateRef,c.context,c.index),s=1}else null==a?(t.remove(i),s=3):(o=t.get(i),t.move(o,a),s=2);r&&r({context:null==o?void 0:o.context,operation:s,record:e})})}},{key:"detach",value:function(){}}]),e}(),ga=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];_classCallCheck(this,e),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new ye.xQ,i&&i.length&&(n?i.forEach(function(e){return t._markSelected(e)}):this._markSelected(i[0]),this._selectedToEmit.length=0)}return _createClass(e,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new ke.y(function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe(Nr(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):(0,_e.of)()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,n){return e.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,me.h)(function(e){return!e||n.indexOf(e)>-1}))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach(function(i,r){t._scrollableContainsElement(r,e)&&n.push(r)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=sr(t),i=e.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return lr(e._getWindow().document,"scroll").subscribe(function(){return e._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(a.R0b),a.LFG(ta),a.LFG(r.K0,8))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(a.R0b),a.LFG(ta),a.LFG(r.K0,8))},token:e,providedIn:"root"}),e}(),ya=function(){var e=function(){function e(t,n,i,r){var a=this;_classCallCheck(this,e),this.elementRef=t,this.scrollDispatcher=n,this.ngZone=i,this.dir=r,this._destroyed=new ye.xQ,this._elementScrolled=new ke.y(function(e){return a.ngZone.runOutsideAngular(function(){return lr(a.elementRef.nativeElement,"scroll").pipe(Ir(a._destroyed)).subscribe(e)})})}return _createClass(e,[{key:"ngOnInit",value:function(){this.scrollDispatcher.register(this)}},{key:"ngOnDestroy",value:function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}},{key:"elementScrolled",value:function(){return this._elementScrolled}},{key:"getElementRef",value:function(){return this.elementRef}},{key:"scrollTo",value:function(e){var t=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=n?e.end:e.start),null==e.right&&(e.right=n?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),n&&0!=sa()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==sa()?e.left=e.right:1==sa()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}},{key:"_applyScrollToOptions",value:function(e){var t=this.elementRef.nativeElement;oa()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}},{key:"measureScrollOffset",value:function(e){var t=this.elementRef.nativeElement;if("top"==e)return t.scrollTop;if("bottom"==e)return t.scrollHeight-t.clientHeight-t.scrollTop;var n=this.dir&&"rtl"==this.dir.value;return"start"==e?e=n?"right":"left":"end"==e&&(e=n?"left":"right"),n&&2==sa()?"left"==e?t.scrollWidth-t.clientWidth-t.scrollLeft:t.scrollLeft:n&&1==sa()?"left"==e?t.scrollLeft+t.scrollWidth-t.clientWidth:-t.scrollLeft:"left"==e?t.scrollLeft:t.scrollWidth-t.clientWidth-t.scrollLeft}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(_a),a.Y36(a.R0b),a.Y36(ha,8))},e.\u0275dir=a.lG2({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),e}(),ba=function(){var e=function(){function e(t,n,i){var r=this;_classCallCheck(this,e),this._platform=t,this._change=new ye.xQ,this._changeListener=function(e){r._change.next(e)},this._document=i,n.runOutsideAngular(function(){if(t.isBrowser){var e=r._getWindow();e.addEventListener("resize",r._changeListener),e.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._updateViewportSize()})})}return _createClass(e,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,i=t.height;return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._document,t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe(Nr(e)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(ta),a.LFG(a.R0b),a.LFG(r.K0,8))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(ta),a.LFG(a.R0b),a.LFG(r.K0,8))},token:e,providedIn:"root"}),e}(),Aa=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({}),e}(),wa=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[da,na,Aa],da,Aa]}),e}(),ka=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"attach",value:function(e){return this._attachedHost=e,e.attach(this)}},{key:"detach",value:function(){var e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}}]),e}(),Ma=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this)).component=e,o.viewContainerRef=i,o.injector=r,o.componentFactoryResolver=a,o}return n}(ka),Ca=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this)).templateRef=e,a.viewContainerRef=i,a.context=r,a}return _createClass(n,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=t,_get(_getPrototypeOf(n.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,_get(_getPrototypeOf(n.prototype),"detach",this).call(this)}}]),n}(ka),Ta=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).element=e instanceof a.SBq?e.nativeElement:e,i}return n}(ka),La=function(){function e(){_classCallCheck(this,e),this._isDisposed=!1,this.attachDomPortal=null}return _createClass(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e instanceof Ma?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof Ca?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof Ta?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),Sa=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o){var s,c;return _classCallCheck(this,n),(c=t.call(this)).outletElement=e,c._componentFactoryResolver=i,c._appRef=r,c._defaultInjector=a,c.attachDomPortal=function(e){var t=e.element,i=c._document.createComment("dom-portal");t.parentNode.insertBefore(i,t),c.outletElement.appendChild(t),c._attachedPortal=e,_get((s=_assertThisInitialized(c),_getPrototypeOf(n.prototype)),"setDisposeFn",s).call(s,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},c._document=o,c}return _createClass(n,[{key:"attachComponentPortal",value:function(e){var t,n=this,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(function(){return t.destroy()})):(t=i.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn(function(){n._appRef.detachView(t.hostView),t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}},{key:"attachTemplatePortal",value:function(e){var t=this,n=e.viewContainerRef,i=n.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),i.detectChanges(),this.setDisposeFn(function(){var e=n.indexOf(i);-1!==e&&n.remove(e)}),this._attachedPortal=e,i}},{key:"dispose",value:function(){_get(_getPrototypeOf(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}]),n}(La),Ea=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o,s;return _classCallCheck(this,n),(s=t.call(this))._componentFactoryResolver=e,s._viewContainerRef=i,s._isInitialized=!1,s.attached=new a.vpe,s.attachDomPortal=function(e){var t=e.element,i=s._document.createComment("dom-portal");e.setAttachedHost(_assertThisInitialized(s)),t.parentNode.insertBefore(i,t),s._getRootNode().appendChild(t),s._attachedPortal=e,_get((o=_assertThisInitialized(s),_getPrototypeOf(n.prototype)),"setDisposeFn",o).call(o,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},s._document=r,s}return _createClass(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&_get(_getPrototypeOf(n.prototype),"detach",this).call(this),e&&_get(_getPrototypeOf(n.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r=t.createComponent(i,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),_get(_getPrototypeOf(n.prototype),"setDisposeFn",this).call(this,function(){return r.destroy()}),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return _get(_getPrototypeOf(n.prototype),"setDisposeFn",this).call(this,function(){return t._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}]),n}(La);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a._Vd),a.Y36(a.s_b),a.Y36(r.K0))},e.\u0275dir=a.lG2({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[a.qOj]}),e}(),za=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({}),e}(),Oa=n(1906),xa=function(){function e(t,n){_classCallCheck(this,e),this.predicate=t,this.inclusive=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Ra(e,this.predicate,this.inclusive))}}]),e}(),Ra=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e)).predicate=i,a.inclusive=r,a.index=0,a}return _createClass(n,[{key:"_next",value:function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(i){return void n.error(i)}this.nextOrComplete(e,t)}},{key:"nextOrComplete",value:function(e,t){var n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())}}]),n}(Pe.L);function Da(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;it.height||e.scrollWidth>t.width}}]),e}(),Ia=function(){function e(t,n,i,r){var a=this;_classCallCheck(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){a.disable(),a._overlayRef.hasAttached()&&a._ngZone.run(function(){return a._overlayRef.detach()})}}return _createClass(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),qa=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function Ba(e,t){return t.some(function(t){return e.bottomt.bottom||e.rightt.right})}function Ha(e,t){return t.some(function(t){return e.topt.bottom||e.leftt.right})}var Ya=function(){function e(t,n,i,r){_classCallCheck(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return _createClass(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),i=n.width,r=n.height;Ba(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),ja=function(){var e=function e(t,n,i,r){var a=this;_classCallCheck(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new qa},this.close=function(e){return new Ia(a._scrollDispatcher,a._ngZone,a._viewportRuler,e)},this.block=function(){return new Na(a._viewportRuler,a._document)},this.reposition=function(e){return new Ya(a._scrollDispatcher,a._viewportRuler,a._ngZone,e)},this._document=r};return e.\u0275fac=function(t){return new(t||e)(a.LFG(_a),a.LFG(ba),a.LFG(a.R0b),a.LFG(r.K0))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(_a),a.LFG(ba),a.LFG(a.R0b),a.LFG(r.K0))},token:e,providedIn:"root"}),e}(),Fa=function e(t){if(_classCallCheck(this,e),this.scrollStrategy=new qa,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,i=Object.keys(t);n-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(r.K0))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(r.K0))},token:e,providedIn:"root"}),e}(),Za=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e))._keydownListener=function(e){for(var t=i._attachedOverlays,n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}},i}return _createClass(n,[{key:"add",value:function(e){_get(_getPrototypeOf(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(Ka);return e.\u0275fac=function(t){return new(t||e)(a.LFG(r.K0))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(r.K0))},token:e,providedIn:"root"}),e}(),Ga=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e))._platform=i,r._cursorStyleIsSet=!1,r._clickListener=function(e){for(var t=e.composedPath?e.composedPath()[0]:e.target,n=r._attachedOverlays.slice(),i=n.length-1;i>-1;i--){var a=n[i];if(!(a._outsidePointerEvents.observers.length<1)&&a.hasAttached()){if(a.overlayElement.contains(t))break;a._outsidePointerEvents.next(e)}}},r}return _createClass(n,[{key:"add",value:function(e){if(_get(_getPrototypeOf(n.prototype),"add",this).call(this,e),!this._isAttached){var t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var e=this._document.body;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}}}]),n}(Ka);return e.\u0275fac=function(t){return new(t||e)(a.LFG(r.K0),a.LFG(ta))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(r.K0),a.LFG(ta))},token:e,providedIn:"root"}),e}(),Xa="undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha,Va=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._platform=n,this._document=t}return _createClass(e,[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){if(this._platform.isBrowser||Xa)for(var e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),t=0;tf&&(f=m,d=g)}}catch(v){p.e(v)}finally{p.f()}return this._isPushed=!1,void this._applyPosition(d.position,d.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&eo(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var i=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;n="start"==t.originX?i:r}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,n){var i,r;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,r="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+i,y:e.y+r}}},{key:"_getOverlayFit",value:function(e,t,n,i){var r=no(t),a=e.x,o=e.y,s=this._getOffset(i,"x"),c=this._getOffset(i,"y");s&&(a+=s),c&&(o+=c);var u=0-o,l=o+r.height-n.height,h=this._subtractOverflows(r.width,0-a,a+r.width-n.width),d=this._subtractOverflows(r.height,u,l),f=h*d;return{visibleArea:f,isCompletelyWithinViewport:r.width*r.height===f,fitsInViewportVertically:d===r.height,fitsInViewportHorizontally:h==r.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var i=n.bottom-t.y,r=n.right-t.x,a=to(this._overlayRef.getConfig().minHeight),o=to(this._overlayRef.getConfig().minWidth),s=e.fitsInViewportHorizontally||null!=o&&o<=r;return(e.fitsInViewportVertically||null!=a&&a<=i)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var i,r,a=no(t),o=this._viewportRect,s=Math.max(e.x+a.width-o.width,0),c=Math.max(e.y+a.height-o.height,0),u=Math.max(o.top-n.top-e.y,0),l=Math.max(o.left-n.left-e.x,0);return i=a.width<=o.width?l||-s:e.xh&&!this._isInitialRender&&!this._growAfterOpen&&(i=e.y-h/2)}if("end"===t.overlayX&&!u||"start"===t.overlayX&&u)s=c.width-e.x+this._viewportMargin,a=e.x-this._viewportMargin;else if("start"===t.overlayX&&!u||"end"===t.overlayX&&u)o=e.x,a=c.right-e.x;else{var d=Math.min(c.right-e.x+c.left,e.x),f=this._lastBoundingBoxSize.width;a=2*d,o=e.x-d,a>f&&!this._isInitialRender&&!this._growAfterOpen&&(o=e.x-f/2)}return{top:i,left:o,bottom:r,right:s,width:a,height:n}}},{key:"_setBoundingBoxStyles",value:function(e,t){var n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;i.height=or(n.height),i.top=or(n.top),i.bottom=or(n.bottom),i.width=or(n.width),i.left=or(n.left),i.right=or(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=or(r)),a&&(i.maxWidth=or(a))}this._lastBoundingBoxSize=n,eo(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){eo(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){eo(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(i){var o=this._viewportRuler.getViewportScrollPosition();eo(n,this._getExactOverlayY(t,e,o)),eo(n,this._getExactOverlayX(t,e,o))}else n.position="static";var s="",c=this._getOffset(t,"x"),u=this._getOffset(t,"y");c&&(s+="translateX(".concat(c,"px) ")),u&&(s+="translateY(".concat(u,"px)")),n.transform=s.trim(),a.maxHeight&&(i?n.maxHeight=or(a.maxHeight):r&&(n.maxHeight="")),a.maxWidth&&(i?n.maxWidth=or(a.maxWidth):r&&(n.maxWidth="")),eo(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var i={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var a=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=a,"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=or(r.y),i}},{key:"_getExactOverlayX",value:function(e,t,n){var i={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"===(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?i.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":i.left=or(r.x),i}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(e){return e.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:Ha(e,n),isOriginOutsideView:Ba(e,n),isOverlayClipped:Ha(t,n),isOverlayOutsideView:Ba(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,a=n.maxWidth,o=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||a&&"100%"!==a&&"100vw"!==a),c=!("100%"!==r&&"100vh"!==r||o&&"100%"!==o&&"100vh"!==o);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,s?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=c?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),ao=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r}return _createClass(e,[{key:"global",value:function(){return new ro}},{key:"connectedTo",value:function(e,t,n){return new io(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new $a(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(ba),a.LFG(r.K0),a.LFG(ta),a.LFG(Va))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(ba),a.LFG(r.K0),a.LFG(ta),a.LFG(Va))},token:e,providedIn:"root"}),e}(),oo=0,so=function(){var e=function(){function e(t,n,i,r,a,o,s,c,u,l,h){_classCallCheck(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=a,this._injector=o,this._ngZone=s,this._document=c,this._directionality=u,this._location=l,this._outsideClickDispatcher=h}return _createClass(e,[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),r=new Fa(e);return r.direction=r.direction||this._directionality.value,new Ja(i,t,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-"+oo++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(a.z2F)),new Sa(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(ja),a.LFG(Va),a.LFG(a._Vd),a.LFG(ao),a.LFG(Za),a.LFG(a.zs3),a.LFG(a.R0b),a.LFG(r.K0),a.LFG(ha),a.LFG(r.Ye),a.LFG(Ga))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}(),co=[{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"}],uo=new a.OlP("cdk-connected-overlay-scroll-strategy"),lo=function(){var e=function e(t){_classCallCheck(this,e),this.elementRef=t};return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq))},e.\u0275dir=a.lG2({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e}(),ho=function(){var e=function(){function e(t,n,i,r,o){_classCallCheck(this,e),this._overlay=t,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Qe.w.EMPTY,this._attachSubscription=Qe.w.EMPTY,this._detachSubscription=Qe.w.EMPTY,this._positionSubscription=Qe.w.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 Ca(n,i),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return _createClass(e,[{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=nr(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=nr(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=nr(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=nr(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=nr(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(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())}},{key:"_createOverlay",value:function(){var e=this;this.positions&&this.positions.length||(this.positions=co);var t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(function(){return e.attach.emit()}),this._detachSubscription=t.detachments().subscribe(function(){return e.detach.emit()}),t.keydownEvents().subscribe(function(t){e.overlayKeydown.next(t),27!==t.keyCode||e.disableClose||Da(t)||(t.preventDefault(),e._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(t){e.overlayOutsideClick.next(t)})}},{key:"_buildConfig",value:function(){var e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new Fa({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}},{key:"_updatePositionStrategy",value:function(e){var t=this,n=this.positions.map(function(e){return{originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||t.offsetX,offsetY:e.offsetY||t.offsetY,panelClass:e.panelClass||void 0}});return e.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}},{key:"_attachOverlay",value:function(){var e=this;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(function(t){e.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new xa(e,t))}}(function(){return e.positionChange.observers.length>0})).subscribe(function(t){e.positionChange.emit(t),0===e.positionChange.observers.length&&e._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(so),a.Y36(a.Rgc),a.Y36(a.s_b),a.Y36(uo),a.Y36(ha,8))},e.\u0275dir=a.lG2({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[a.TTD]}),e}(),fo={provide:uo,deps:[so],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},po=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[so,fo],imports:[[da,za,wa],wa]}),e}(),go=n(7701),mo=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"create",value:function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=a.Yz7({factory:function(){return new e},token:e,providedIn:"root"}),e}(),vo=function(){var e=function(){function e(t){_classCallCheck(this,e),this._mutationObserverFactory=t,this._observedElements=new Map}return _createClass(e,[{key:"ngOnDestroy",value:function(){var e=this;this._observedElements.forEach(function(t,n){return e._cleanupObserver(n)})}},{key:"observe",value:function(e){var t=this,n=sr(e);return new ke.y(function(e){var i=t._observeElement(n).subscribe(e);return function(){i.unsubscribe(),t._unobserveElement(n)}})}},{key:"_observeElement",value:function(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{var t=new ye.xQ,n=this._mutationObserverFactory.create(function(e){return t.next(e)});n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream}},{key:"_unobserveElement",value:function(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}},{key:"_cleanupObserver",value:function(e){if(this._observedElements.has(e)){var t=this._observedElements.get(e),n=t.observer,i=t.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(e)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(mo))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(mo))},token:e,providedIn:"root"}),e}(),_o=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._contentObserver=t,this._elementRef=n,this._ngZone=i,this.event=new a.vpe,this._disabled=!1,this._currentSubscription=null}return _createClass(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=nr(e),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(e){this._debounce=ir(e),this._subscribe()}},{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var e=this;this._unsubscribe();var t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){e._currentSubscription=(e.debounce?t.pipe((0,go.b)(e.debounce)):t).subscribe(e.event)})}},{key:"_unsubscribe",value:function(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(vo),a.Y36(a.SBq),a.Y36(a.R0b))},e.\u0275dir=a.lG2({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),e}(),yo=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[mo]}),e}();function bo(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var Ao=0,wo=new Map,ko=null,Mo=function(){var e=function(){function e(t){_classCallCheck(this,e),this._document=t}return _createClass(e,[{key:"describe",value:function(e,t,n){if(this._canBeDescribed(e,t)){var i=Co(t,n);"string"!=typeof t?(To(t),wo.set(i,{messageElement:t,referenceCount:0})):wo.has(i)||this._createMessageElement(t,n),this._isElementDescribedByMessage(e,i)||this._addMessageReference(e,i)}}},{key:"removeDescription",value:function(e,t,n){if(t&&this._isElementNode(e)){var i=Co(t,n);if(this._isElementDescribedByMessage(e,i)&&this._removeMessageReference(e,i),"string"==typeof t){var r=wo.get(i);r&&0===r.referenceCount&&this._deleteMessageElement(i)}ko&&0===ko.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[cdk-describedby-host]"),t=0;t-1&&t!==n._activeItemIndex&&(n._activeItemIndex=t)}})}return _createClass(e,[{key:"skipPredicate",value:function(e){return this._skipPredicateFn=e,this}},{key:"withWrap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=e,this}},{key:"withVerticalOrientation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=e,this}},{key:"withHorizontalOrientation",value:function(e){return this._horizontal=e,this}},{key:"withAllowedModifierKeys",value:function(e){return this._allowedModifierKeys=e,this}},{key:"withTypeAhead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Ve.b)(function(t){return e._pressedLetters.push(t)}),(0,go.b)(t),(0,me.h)(function(){return e._pressedLetters.length>0}),(0,ze.U)(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._getItemsArray(),i=1;i0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=e,this}},{key:"setActiveItem",value:function(e){var t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(e){var t=this,n=e.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!e[n]||t._allowedModifierKeys.indexOf(n)>-1});switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||Da(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],e.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof a.n_E?this._items.toArray():this._items}}]),e}(),So=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"setActiveItem",value:function(e){this.activeItem&&this.activeItem.setInactiveStyles(),_get(_getPrototypeOf(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(Lo),Eo=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._origin="program",e}return _createClass(n,[{key:"setFocusOrigin",value:function(e){return this._origin=e,this}},{key:"setActiveItem",value:function(e){_get(_getPrototypeOf(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(Lo),zo=function(){var e=function(){function e(t){_classCallCheck(this,e),this._platform=t}return _createClass(e,[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t,n=function(e){try{return e.frameElement}catch(_E){return null}}((t=e).ownerDocument&&t.ownerDocument.defaultView||window);if(n){if(-1===xo(n))return!1;if(!this.isVisible(n))return!1}var i=e.nodeName.toLowerCase(),r=xo(e);return e.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===i?!!e.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}},{key:"isFocusable",value:function(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||Oo(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(ta))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(ta))},token:e,providedIn:"root"}),e}();function Oo(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function xo(e){if(!Oo(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var Ro=function(){function e(t,n,i,r){var a=this,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_classCallCheck(this,e),this._element=t,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return a.focusLastTabbableElement()},this.endAnchorListener=function(){return a.focusFirstTabbableElement()},this._enabled=!0,o||this.attachAnchors()}return _createClass(e,[{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.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)}},{key:"focusInitialElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusInitialElement(e))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusFirstTabbableElement(e))})})}},{key:"focusLastTabbableElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusLastTabbableElement(e))})})}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], [cdkFocusRegion").concat(e,"], [cdk-focus-").concat(e,"]")),n=0;n=0;n--){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe((0,xe.q)(1)).subscribe(e)}}]),e}(),Do=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._checker=t,this._ngZone=n,this._document=i}return _createClass(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Ro(e,this._checker,this._ngZone,this._document,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(zo),a.LFG(a.R0b),a.LFG(r.K0))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(zo),a.LFG(a.R0b),a.LFG(r.K0))},token:e,providedIn:"root"}),e}();"undefined"!=typeof Element&∈var Po=new a.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),No=new a.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Io=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=t||this._createLiveElement()}return _createClass(e,[{key:"announce",value:function(e){for(var t,n,i,r=this,a=this._defaultOptions,o=arguments.length,s=new Array(o>1?o-1:0),c=1;c1&&void 0!==arguments[1]&&arguments[1],n=sr(e);if(!this._platform.isBrowser||1!==n.nodeType)return(0,_e.of)(null);var i=ca(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;var a={checkChildren:t,subject:new ye.xQ,rootNode:i};return this._elementInfo.set(n,a),this._registerGlobalListeners(a),a.subject}},{key:"stopMonitoring",value:function(e){var t=sr(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(e,t,n){var i=this,r=sr(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(function(e){var n=_slicedToArray(e,2),r=n[0],a=n[1];return i._originChanged(r,t,a)}):(this._setOriginForCurrentEventQueue(t),"function"==typeof r.focus&&r.focus(n))}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach(function(t,n){return e.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,n){n?e.classList.add(t):e.classList.remove(t)}},{key:"_getFocusOrigin",value:function(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"}},{key:"_setClasses",value:function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}},{key:"_setOriginForCurrentEventQueue",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){t._origin=e,0===t._detectionMode&&(t._originTimeoutId=setTimeout(function(){return t._origin=null},1))})}},{key:"_wasCausedByTouch",value:function(e){var t=Fo(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t);n&&(n.checkChildren||t===Fo(e))&&this._originChanged(t,this._getFocusOrigin(e),n)}},{key:"_onBlur",value:function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run(function(){return e.next(t)})}},{key:"_registerGlobalListeners",value:function(e){var t=this;if(this._platform.isBrowser){var n=e.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,Yo),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,Yo)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(function(){var e=t._getDocument(),n=t._getWindow();e.addEventListener("keydown",t._documentKeydownListener,Yo),e.addEventListener("mousedown",t._documentMousedownListener,Yo),e.addEventListener("touchstart",t._documentTouchstartListener,Yo),n.addEventListener("focus",t._windowFocusListener)})}}},{key:"_removeGlobalListeners",value:function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Yo),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Yo),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){var i=this._getDocument(),r=this._getWindow();i.removeEventListener("keydown",this._documentKeydownListener,Yo),i.removeEventListener("mousedown",this._documentMousedownListener,Yo),i.removeEventListener("touchstart",this._documentTouchstartListener,Yo),r.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}},{key:"_originChanged",value:function(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}},{key:"_getClosestElementsInfo",value:function(e){var t=[];return this._elementInfo.forEach(function(n,i){(i===e||n.checkChildren&&i.contains(e))&&t.push([i,n])}),t}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(a.R0b),a.LFG(ta),a.LFG(r.K0,8),a.LFG(Ho,8))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(a.R0b),a.LFG(ta),a.LFG(r.K0,8),a.LFG(Ho,8))},token:e,providedIn:"root"}),e}();function Fo(e){return e.composedPath?e.composedPath()[0]:e.target}var Wo=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._platform=t,this._document=n}return _createClass(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove("cdk-high-contrast-active"),e.remove("cdk-high-contrast-black-on-white"),e.remove("cdk-high-contrast-white-on-black"),this._hasCheckedHighContrastMode=!0;var t=this.getHighContrastMode();1===t?(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-black-on-white")):2===t&&(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-white-on-black"))}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(ta),a.LFG(r.K0))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(ta),a.LFG(r.K0))},token:e,providedIn:"root"}),e}(),Uo=function(){var e=function e(t){_classCallCheck(this,e),t._applyBodyHighContrastModeCssClasses()};return e.\u0275fac=function(t){return new(t||e)(a.LFG(Wo))},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[na,yo]]}),e}(),Ko=new a.GfV("12.0.5"),Zo=function e(){_classCallCheck(this,e)};function Go(e,t){return{type:7,name:e,definitions:t,options:{}}}function Xo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function Vo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:e,options:t}}function Jo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function Qo(e){return{type:6,styles:e,offset:null}}function $o(e,t,n){return{type:0,name:e,styles:t,options:n}}function es(e){return{type:5,steps:e}}function ts(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function ns(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function is(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function rs(e){Promise.resolve(null).then(e)}var as=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;rs(function(){return e._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(e){this._position=this.totalTime?e*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),os=function(){function e(t){var n=this;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var i=0,r=0,a=0,o=this.players.length;0==o?rs(function(){return n._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++i==o&&n._onFinish()}),e.onDestroy(function(){++r==o&&n._onDestroy()}),e.onStart(function(){++a==o&&n._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})}},{key:"pause",value:function(){this.players.forEach(function(e){return e.pause()})}},{key:"restart",value:function(){this.players.forEach(function(e){return e.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}},{key:"getPosition",value:function(){var e=this.players.reduce(function(e,t){return null===e||t.totalTime>e.totalTime?t:e},null);return null!=e?e.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}();function ss(){return"undefined"!=typeof window&&void 0!==window.document}function cs(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function us(e){switch(e.length){case 0:return new as;case 1:return e[0];default:return new os(e)}}function ls(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=[],s=[],c=-1,u=null;if(i.forEach(function(e){var n=e.offset,i=n==c,l=i&&u||{};Object.keys(e).forEach(function(n){var i=n,s=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,o),s){case"!":s=r[n];break;case"*":s=a[n];break;default:s=t.normalizeStyleValue(n,i,s,o)}l[i]=s}),i||s.push(l),u=l,c=n}),o.length){var l="\n - ";throw new Error("Unable to animate due to the following errors:".concat(l).concat(o.join(l)))}return s}function hs(e,t,n,i){switch(t){case"start":e.onStart(function(){return i(n&&ds(n,"start",e))});break;case"done":e.onDone(function(){return i(n&&ds(n,"done",e))});break;case"destroy":e.onDestroy(function(){return i(n&&ds(n,"destroy",e))})}}function ds(e,t,n){var i=n.totalTime,r=fs(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),a=e._data;return null!=a&&(r._data=a),r}function fs(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:a,disabled:!!o}}function ps(e,t,n){var i;return e instanceof Map?(i=e.get(t))||e.set(t,i=n):(i=e[t])||(i=e[t]=n),i}function gs(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var ms=function(e,t){return!1},vs=function(e,t){return!1},_s=function(e,t,n){return[]},ys=cs();(ys||"undefined"!=typeof Element)&&(ms=ss()?function(e,t){for(;t&&t!==document.documentElement;){if(t===e)return!0;t=t.parentNode||t.host}return!1}:function(e,t){return e.contains(t)},vs=function(){if(ys||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:vs}(),_s=function(e,t,n){var i=[];if(n)for(var r=e.querySelectorAll(t),a=0;a1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function Rs(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var i in e)n[i]=e[i];else xs(e,n);return n}function Ds(e,t,n){return n?t+":"+n+";":""}function Ps(e){for(var t="",n=0;n *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}var r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var a=r[1],o=r[2],s=r[3];t.push(Js(a,s)),"<"!=o[0]||"*"==a&&"*"==s||t.push(Js(s,a))}(e,r,i)}):r.push(n),r),animation:a,queryCount:t.queryCount,depCount:t.depCount,options:ic(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return Zs(n,e,t)}),options:ic(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,i=t.currentTime,r=0,a=e.steps.map(function(e){t.currentTime=i;var a=Zs(n,e,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:3,steps:a,options:ic(e.options)}}},{key:"visitAnimate",value:function(e,t){var n,i=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return rc(Os(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var r=rc(0,0,"");return r.dynamic=!0,r.strValue=i,r}return rc((n=n||Os(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;var r=e.styles?e.styles:Qo({});if(5==r.type)n=this.visitKeyframes(r,t);else{var a=e.styles,o=!1;if(!a){o=!0;var s={};i.easing&&(s.easing=i.easing),a=Qo(s)}t.currentTime+=i.duration+i.delay;var c=this.visitStyle(a,t);c.isEmptyStep=o,n=c}return t.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?"*"==e?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)}):n.push(e.styles);var i=!1,r=null;return n.forEach(function(e){if(nc(e)){var t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(var a in t)if(t[a].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,i=t.currentAnimateTimings,r=t.currentTime,a=t.currentTime;i&&a>0&&(a-=i.duration+i.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(i){if(n._driver.validateStyleProperty(i)){var o,s,c,u,l,h=t.collectedStyles[t.currentQuerySelector],d=h[i],f=!0;d&&(a!=r&&a>=d.startTime&&r<=d.endTime&&(t.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(d.startTime,'ms" and "').concat(d.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(a,'ms" and "').concat(r,'ms"')),f=!1),a=d.startTime),f&&(h[i]={startTime:a,endTime:r}),t.options&&(o=e[i],s=t.options,c=t.errors,u=s.params||{},(l=Hs(o)).length&&l.forEach(function(e){u.hasOwnProperty(e)||c.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))}))}else t.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(e,t){var n=this,i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,a=[],o=!1,s=!1,c=0,u=e.steps.map(function(e){var i=n._makeStyleAst(e,t),u=null!=i.offset?i.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(nc(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(nc(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),l=0;return null!=u&&(r++,l=i.offset=u),s=s||l<0||l>1,o=o||l0&&r0?r==d?1:h*r:a[r],s=o*g;t.currentTime=f+p.delay+s,p.duration=s,n._validateStyleAst(e,t),e.offset=o,i.styles.push(e)}),i}},{key:"visitReference",value:function(e,t){return{type:8,animation:Zs(this,qs(e.animation),t),options:ic(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:ic(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:ic(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;var r=_slicedToArray(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(Qs,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,".ng-animating"),t]}(e.selector),2),a=r[0],o=r[1];t.currentQuerySelector=n.length?n+" "+a:a,ps(t.collectedStyles,t.currentQuerySelector,{});var s=Zs(this,qs(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:a,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:s,originalSelector:e.selector,options:ic(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:Os(e.timings,t.errors,!0);return{type:12,animation:Zs(this,qs(e.animation),t),timings:n,options:null}}}]),e}(),tc=function e(t){_classCallCheck(this,e),this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function nc(e){return!Array.isArray(e)&&"object"==typeof e}function ic(e){var t;return e?(e=xs(e)).params&&(e.params=(t=e.params)?xs(t):null):e={},e}function rc(e,t,n){return{duration:e,delay:t,easing:n}}function ac(e,t,n,i,r,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:a,totalTime:r+a,easing:o,subTimeline:s}}var oc=function(){function e(){_classCallCheck(this,e),this._map=new Map}return _createClass(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,i=this._map.get(e);i||this._map.set(e,i=[]),(n=i).push.apply(n,_toConsumableArray(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),sc=new RegExp(":enter","g"),cc=new RegExp(":leave","g");function uc(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,c=arguments.length>8?arguments[8]:void 0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new lc).buildKeyframes(e,t,n,i,r,a,o,s,c,u)}var lc=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"buildKeyframes",value:function(e,t,n,i,r,a,o,s,c){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];c=c||new oc;var l=new dc(e,t,c,i,r,u,[]);l.options=s,l.currentTimeline.setStyles([a],null,l.errors,s),Zs(this,n,l);var h=l.timelines.filter(function(e){return e.containsAnimation()});if(h.length&&Object.keys(o).length){var d=h[h.length-1];d.allowOnlyTimelineStyles()||d.setStyles([o],null,l.errors,s)}return h.length?h.map(function(e){return e.buildKeyframes()}):[ac(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,a=this._visitSubInstructions(n,i,i.options);r!=a&&t.transformIntoNewTimeline(a)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var i=t.currentTimeline.currentTime,r=null!=n.duration?Es(n.duration):null,a=null!=n.delay?Es(n.delay):null;return 0!==r&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,r,a);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),Zs(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,i=t.subContextCount,r=t,a=e.options;if(a&&(a.params||a.delay)&&((r=t.createSubContext(a)).transformIntoNewTimeline(),null!=a.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=hc);var o=Es(a.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(function(e){return Zs(n,e,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,i=[],r=t.currentTimeline.currentTime,a=e.options&&e.options.delay?Es(e.options.delay):0;e.steps.forEach(function(o){var s=t.createSubContext(e.options);a&&s.delayNextStep(a),Zs(n,o,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(r),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return Os(t.params?Ys(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());var r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,a=t.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(function(e){a.forwardTime((e.offset||0)*r),a.setStyles(e.styles,e.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(i+r),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,i=t.currentTimeline.currentTime,r=e.options||{},a=r.delay?Es(r.delay):0;a&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=hc);var o=i,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=s.length;var c=null;s.forEach(function(i,r){t.currentQueryIndex=r;var s=t.createSubContext(e.options,i);a&&s.delayNextStep(a),i===t.element&&(c=s.currentTimeline),Zs(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),c&&(t.currentTimeline.mergeTimelineCollectedStyles(c),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,i=t.currentTimeline,r=e.timings,a=Math.abs(r.duration),o=a*(t.currentQueryTotal-1),s=a*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=o-s;break;case"full":s=n.currentStaggerTime}var c=t.currentTimeline;s&&c.delayNextStep(s);var u=c.currentTime;Zs(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime)}}]),e}(),hc={},dc=function(){function e(t,n,i,r,a,o,s,c){_classCallCheck(this,e),this._driver=t,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=a,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=hc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new fc(this._driver,n,0),s.push(this.currentTimeline)}return _createClass(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(e,t){var n=this;if(e){var i=e,r=this.options;null!=i.duration&&(r.duration=Es(i.duration)),null!=i.delay&&(r.delay=Es(i.delay));var a=i.params;if(a){var o=r.params;o||(o=this.options.params={}),Object.keys(a).forEach(function(e){t&&o.hasOwnProperty(e)||(o[e]=Ys(a[e],o,n.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=n||this.element,a=new e(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return a.previousNode=this.previousNode,a.currentAnimateTimings=this.currentAnimateTimings,a.options=this._copyOptions(),a.updateOptions(t),a.currentQueryIndex=this.currentQueryIndex,a.currentQueryTotal=this.currentQueryTotal,a.parentContext=this,this.subContextCount++,a}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=hc,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new pc(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,i,r,a){var o=[];if(i&&o.push(this.element),e.length>0){e=(e=e.replace(sc,"."+this._enterClassName)).replace(cc,"."+this._leaveClassName);var s=this._driver.query(this.element,e,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),o.push.apply(o,_toConsumableArray(s))}return r||0!=o.length||a.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),o}}]),e}(),fc=function(){function e(t,n,i,r){_classCallCheck(this,e),this._driver=t,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return _createClass(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||"*",t._currentKeyframe[e]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,i){var r=this;t&&(this._previousKeyframe.easing=t);var a=i&&i.params||{},o=function(e,t){var n,i={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){i[e]="*"}):Rs(e,!1,i)}),i}(e,this._globalTimelineStyles);Object.keys(o).forEach(function(e){var t=Ys(o[e],a,n);r._pendingStyles[e]=t,r._localTimelineStyles.hasOwnProperty(e)||(r._backFill[e]=r._globalTimelineStyles.hasOwnProperty(e)?r._globalTimelineStyles[e]:"*"),r._updateStyle(e,t)})}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var i=t._styleSummary[n],r=e._styleSummary[n];(!i||r.time>i.time)&&t._updateStyle(n,r.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(a,o){var s=Rs(a,!0);Object.keys(s).forEach(function(e){var i=s[e];"!"==i?t.add(e):"*"==i&&n.add(e)}),i||(s.offset=o/e.duration),r.push(s)});var a=t.size?js(t.values()):[],o=n.size?js(n.values()):[];if(i){var s=r[0],c=xs(s);s.offset=0,c.offset=1,r=[s,c]}return ac(this.element,r,a,o,this.duration,this.startTime,this.easing,!1)}}]),e}(),pc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o,s){var c,u=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return _classCallCheck(this,n),(c=t.call(this,e,i,s.delay)).element=i,c.keyframes=r,c.preStyleProps=a,c.postStyleProps=o,c._stretchStartingKeyframe=u,c.timings={duration:s.duration,delay:s.delay,easing:s.easing},c}return _createClass(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,i=t.duration,r=t.easing;if(this._stretchStartingKeyframe&&n){var a=[],o=i+n,s=n/o,c=Rs(e[0],!1);c.offset=0,a.push(c);var u=Rs(e[0],!1);u.offset=gc(s),a.push(u);for(var l=e.length-1,h=1;h<=l;h++){var d=Rs(e[h],!1);d.offset=gc((n+d.offset*i)/o),a.push(d)}i=o,n=0,r="",e=a}return ac(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(fc);function gc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var mc,vc,_c=function e(){_classCallCheck(this,e)},yc=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"normalizePropertyName",value:function(e,t){return Ws(e)}},{key:"normalizeStyleValue",value:function(e,t,n,i){var r="",a=n.toString().trim();if(bc[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&0==o[1].length&&i.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return a+r}}]),n}(_c),bc=(mc="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".split(","),vc={},mc.forEach(function(e){return vc[e]=!0}),vc);function Ac(e,t,n,i,r,a,o,s,c,u,l,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:a,toState:i,toStyles:o,timelines:s,queriedElements:c,preStyleProps:u,postStyleProps:l,totalTime:h,errors:d}}var wc={},kc=function(){function e(t,n,i){_classCallCheck(this,e),this._triggerName=t,this.ast=n,this._stateStyles=i}return _createClass(e,[{key:"match",value:function(e,t,n,i){return function(e,t,n,i,r){return e.some(function(e){return e(t,n,i,r)})}(this.ast.matchers,e,t,n,i)}},{key:"buildStyles",value:function(e,t,n){var i=this._stateStyles["*"],r=this._stateStyles[e],a=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):a}},{key:"build",value:function(e,t,n,i,r,a,o,s,c,u){var l=[],h=this.ast.options&&this.ast.options.params||wc,d=this.buildStyles(n,o&&o.params||wc,l),f=s&&s.params||wc,p=this.buildStyles(i,f,l),g=new Set,m=new Map,v=new Map,_="void"===i,y={params:Object.assign(Object.assign({},h),f)},b=u?[]:uc(e,t,this.ast.animation,r,a,d,p,y,c,l),A=0;if(b.forEach(function(e){A=Math.max(e.duration+e.delay,A)}),l.length)return Ac(t,this._triggerName,n,i,_,d,p,[],[],m,v,A,l);b.forEach(function(e){var n=e.element,i=ps(m,n,{});e.preStyleProps.forEach(function(e){return i[e]=!0});var r=ps(v,n,{});e.postStyleProps.forEach(function(e){return r[e]=!0}),n!==t&&g.add(n)});var w=js(g.values());return Ac(t,this._triggerName,n,i,_,d,p,b,w,m,v,A)}}]),e}(),Mc=function(){function e(t,n){_classCallCheck(this,e),this.styles=t,this.defaultParams=n}return _createClass(e,[{key:"buildStyles",value:function(e,t){var n={},i=xs(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(i[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var r=e;Object.keys(r).forEach(function(e){var a=r[e];a.length>1&&(a=Ys(a,i,t)),n[e]=a})}}),n}}]),e}(),Cc=function(){function e(t,n){var i=this;_classCallCheck(this,e),this.name=t,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach(function(e){i.states[e.name]=new Mc(e.style,e.options&&e.options.params||{})}),Tc(this.states,"true","1"),Tc(this.states,"false","0"),n.transitions.forEach(function(e){i.transitionFactories.push(new kc(t,e,i.states))}),this.fallbackTransition=new kc(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return _createClass(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(e,t,n,i){return this.transitionFactories.find(function(r){return r.match(e,t,n,i)})||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}]),e}();function Tc(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var Lc=new oc,Sc=function(){function e(t,n,i){_classCallCheck(this,e),this.bodyNode=t,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return _createClass(e,[{key:"register",value:function(e,t){var n=[],i=$s(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[e]=i}},{key:"_buildPlayer",value:function(e,t,n){var i=e.element,r=ls(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=[],o=this._animations[e],s=new Map;if(o?(n=uc(this._driver,t,o,"ng-enter","ng-leave",{},{},r,Lc,a)).forEach(function(e){var t=ps(s,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(a.push("The requested animation doesn't exist or has already been destroyed"),n=[]),a.length)throw new Error("Unable to create the animation due to the following errors: ".concat(a.join("\n")));s.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=i._driver.computeStyle(t,n,"*")})});var c=us(n.map(function(e){var t=s.get(e.element);return i._buildPlayer(e,{},t)}));return this._playersById[e]=c,c.onDestroy(function(){return i.destroy(e)}),this.players.push(c),c}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by ".concat(e));return t}},{key:"listen",value:function(e,t,n,i){var r=fs(t,"","","");return hs(this._getPlayer(e),n,r,i),function(){}}},{key:"command",value:function(e,t,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])}}]),e}(),Ec=[],zc={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Oc={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},xc=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";_classCallCheck(this,e),this.namespaceId=n;var i,r=t&&t.hasOwnProperty("value");if(this.value=null!=(i=r?t.value:t)?i:null,r){var a=xs(t);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}return _createClass(e,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}}}]),e}(),Rc=new xc("void"),Dc=function(){function e(t,n,i){_classCallCheck(this,e),this.id=t,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Yc(n,this._hostClassName)}return _createClass(e,[{key:"listen",value:function(e,t,n,i){var r,a=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var o=ps(this._elementListeners,e,[]),s={name:t,phase:n,callback:i};o.push(s);var c=ps(this._engine.statesByElement,e,{});return c.hasOwnProperty(t)||(Yc(e,"ng-trigger"),Yc(e,"ng-trigger-"+t),c[t]=Rc),function(){a._engine.afterFlush(function(){var e=o.indexOf(s);e>=0&&o.splice(e,1),a._triggers[t]||delete c[t]})}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=this._getTrigger(t),o=new Nc(this.id,t,e),s=this._engine.statesByElement.get(e);s||(Yc(e,"ng-trigger"),Yc(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var c=s[t],u=new xc(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&c&&u.absorbOptions(c.options),s[t]=u,c||(c=Rc),"void"===u.value||c.value!==u.value){var l=ps(this._engine.playersByElement,e,[]);l.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var h=a.matchTransition(c.value,u.value,e,u.params),d=!1;if(!h){if(!r)return;h=a.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:h,fromState:c,toState:u,player:o,isFallbackTransition:d}),d||(Yc(e,"ng-animate-queued"),o.onStart(function(){jc(e,"ng-animate-queued")})),o.onDone(function(){var t=i.players.indexOf(o);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(o);r>=0&&n.splice(r,1)}}),this.players.push(o),l.push(o),o}if(!function(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var r=0;r=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var i=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(i);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(t)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var i=Object.keys(n),r=0;r=0&&this.collectedLeaveElements.splice(a,1)}if(e){var o=this._fetchNamespace(e);o&&o.insertNode(t,n)}i&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Yc(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),jc(e,"ng-animate-disabled"))}},{key:"removeNode",value:function(e,t,n,i){if(Ic(t)){var r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){var a=this.namespacesByHostElement.get(t);a&&a.id!==e&&a.removeNode(t,i)}}else this._onRemovalComplete(t,i)}},{key:"markElementAsRemoved",value:function(e,t,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,i,r){return Ic(t)?this._fetchNamespace(e).listen(t,n,i,r):function(){}}},{key:"_buildInstruction",value:function(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(t){if(e.players.length)return us(e.players).onDone(function(){return t()});t()})}},{key:"processLeaveNode",value:function(e){var t=this,n=e.__ng_removed;if(n&&n.setForRemoval){if(e.__ng_removed=zc,n.namespaceId){this.destroyInnerAnimations(e);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(e){t.markElementAsDisabled(e,!1)})}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i=0;T--)this._namespaceList[T].drainQueuedTransitions(t).forEach(function(e){var t=e.player,a=e.element;if(M.push(t),n.collectedEnterElements.length){var l=a.__ng_removed;if(l&&l.setForMove)return void t.destroy()}var d=!h||!n.driver.containsElement(h,a),f=w.get(a),g=p.get(a),m=n._buildInstruction(e,i,g,f,d);if(m.errors&&m.errors.length)C.push(m);else{if(d)return t.onStart(function(){return Is(a,m.fromStyles)}),t.onDestroy(function(){return Ns(a,m.toStyles)}),void r.push(t);if(e.isFallbackTransition)return t.onStart(function(){return Is(a,m.fromStyles)}),t.onDestroy(function(){return Ns(a,m.toStyles)}),void r.push(t);m.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),i.append(a,m.timelines),o.push({instruction:m,player:t,element:a}),m.queriedElements.forEach(function(e){return ps(s,e,[]).push(t)}),m.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var i=c.get(t);i||c.set(t,i=new Set),n.forEach(function(e){return i.add(e)})}}),m.postStyleProps.forEach(function(e,t){var n=Object.keys(e),i=u.get(t);i||u.set(t,i=new Set),n.forEach(function(e){return i.add(e)})})}});if(C.length){var L=[];C.forEach(function(e){L.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach(function(e){return L.push("- ".concat(e,"\n"))})}),M.forEach(function(e){return e.destroy()}),this.reportError(L)}var S=new Map,E=new Map;o.forEach(function(e){var t=e.element;i.has(t)&&(E.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,S))}),r.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){ps(S,t,[]).push(e),e.destroy()})});var z=m.filter(function(e){return Uc(e,c,u)}),O=new Map;Bc(O,this.driver,_,u,"*").forEach(function(e){Uc(e,c,u)&&z.push(e)});var x=new Map;f.forEach(function(e,t){Bc(x,n.driver,new Set(e),c,"!")}),z.forEach(function(e){var t=O.get(e),n=x.get(e);O.set(e,Object.assign(Object.assign({},t),n))});var R=[],D=[],P={};o.forEach(function(e){var t=e.element,o=e.player,s=e.instruction;if(i.has(t)){if(l.has(t))return o.onDestroy(function(){return Ns(t,s.toStyles)}),o.disabled=!0,o.overrideTotalTime(s.totalTime),void r.push(o);var c=P;if(E.size>1){for(var u=t,h=[];u=u.parentNode;){var d=E.get(u);if(d){c=d;break}h.push(u)}h.forEach(function(e){return E.set(e,c)})}var f=n._buildAnimation(o.namespaceId,s,S,a,x,O);if(o.setRealPlayer(f),c===P)R.push(o);else{var p=n.playersByElement.get(c);p&&p.length&&(o.parentPlayer=us(p)),r.push(o)}}else Is(t,s.fromStyles),o.onDestroy(function(){return Ns(t,s.toStyles)}),D.push(o),l.has(t)&&r.push(o)}),D.forEach(function(e){var t=a.get(e.element);if(t&&t.length){var n=us(t);e.setRealPlayer(n)}}),r.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var N=0;N0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new as(e.duration,e.delay)}}]),e}(),Nc=function(){function e(t,n,i){_classCallCheck(this,e),this.namespaceId=t,this.triggerName=n,this.element=i,this._player=new as,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return _createClass(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return hs(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})}},{key:"_queueEvent",value:function(e,t){ps(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function Ic(e){return e&&1===e.nodeType}function qc(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function Bc(e,t,n,i,r){var a=[];n.forEach(function(e){return a.push(qc(e))});var o=[];i.forEach(function(n,i){var a={};n.forEach(function(e){var n=a[e]=t.computeStyle(i,e,r);n&&0!=n.length||(i.__ng_removed=Oc,o.push(i))}),e.set(i,a)});var s=0;return n.forEach(function(e){return qc(e,a[s++])}),o}function Hc(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var i=new Set(t),r=new Map;function a(e){if(!e)return 1;var t=r.get(e);if(t)return t;var o=e.parentNode;return t=n.has(o)?o:i.has(o)?1:a(o),r.set(e,t),t}return t.forEach(function(e){var t=a(e);1!==t&&n.get(t).push(e)}),n}function Yc(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function jc(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function Fc(e,t,n){us(n).onDone(function(){return e.processLeaveNode(t)})}function Wc(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function Zc(e,t){var n=null,i=null;return Array.isArray(t)&&t.length?(n=Xc(t[0]),t.length>1&&(i=Xc(t[t.length-1]))):t&&(n=Xc(t)),n||i?new Gc(e,n,i):null}var Gc=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}return _createClass(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&Ns(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(Ns(this._element,this._initialStyles),this._endStyles&&(Ns(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Is(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Is(this._element,this._endStyles),this._endStyles=null),Ns(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function Xc(e){for(var t=null,n=Object.keys(e),i=0;i=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),tu(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var e,t,n,i;this._destroyed||(this._destroyed=!0,this.finish(),e=this._element,t=this._name,n=iu(e,"").split(","),(i=eu(n,t))>=0&&(n.splice(i,1),nu(e,"",n.join(","))))}}]),e}();function Qc(e,t,n){nu(e,"PlayState",n,$c(e,t))}function $c(e,t){var n=iu(e,"");return n.indexOf(",")>0?eu(n.split(","),t):eu([n],t)}function eu(e,t){for(var n=0;n=0)return n;return-1}function tu(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function nu(e,t,n,i){var r="animation"+t;if(null!=i){var a=e.style[r];if(a.length){var o=a.split(",");o[i]=n,n=o.join(",")}}e.style[r]=n}function iu(e,t){return e.style["animation"+t]||""}var ru=function(){function e(t,n,i,r,a,o,s,c){_classCallCheck(this,e),this.element=t,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=a,this._finalStyles=s,this._specialStyles=c,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=r+a,this._buildStyler()}return _createClass(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new Jc(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(t[i]=n?e._finalStyles[i]:Gs(e.element,i))})}this.currentSnapshot=t}}]),e}(),au=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this)).element=e,r._startingStyles={},r.__initialized=!1,r._styles=Ts(i),r}return _createClass(n,[{key:"init",value:function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),_get(_getPrototypeOf(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),_get(_getPrototypeOf(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,_get(_getPrototypeOf(n.prototype),"destroy",this).call(this))}}]),n}(as),ou=function(){function e(){_classCallCheck(this,e),this._count=0}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return ws(e)}},{key:"matchesElement",value:function(e,t){return ks(e,t)}},{key:"containsElement",value:function(e,t){return Ms(e,t)}},{key:"query",value:function(e,t,n){return Cs(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map(function(e){return Ts(e)});var i="@keyframes ".concat(t," {\n"),r="";n.forEach(function(e){r=" ";var t=parseFloat(e.offset);i+="".concat(r).concat(100*t,"% {\n"),r+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(t,": ").concat(n,";\n"))}}),i+="".concat(r,"}\n")}),i+="}\n";var a=document.createElement("style");return a.textContent=i,a}},{key:"animate",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=a.filter(function(e){return e instanceof ru}),s={};Us(n,i)&&o.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return s[e]=t[e]})});var c=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=Ks(e,t,s));if(0==n)return new au(e,c);var u="gen_css_kf_"+this._count++,l=this.buildKeyframeElement(e,u,t);(function(e){var t,n=null===(t=e.getRootNode)||void 0===t?void 0:t.call(e);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head})(e).appendChild(l);var h=Zc(e,t),d=new ru(e,t,u,n,i,r,c,h);return d.onDestroy(function(){var e;(e=l).parentNode.removeChild(e)}),d}}]),e}(),su=function(){function e(t,n,i,r){_classCallCheck(this,e),this.element=t,this.keyframes=n,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:Gs(e.element,n))}),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),cu=function(){function e(){_classCallCheck(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(uu().toString()),this._cssKeyframesDriver=new ou}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return ws(e)}},{key:"matchesElement",value:function(e,t){return ks(e,t)}},{key:"containsElement",value:function(e,t){return Ms(e,t)}},{key:"query",value:function(e,t,n){return Cs(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=arguments.length>6?arguments[6]:void 0;if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,i,r,a);var s={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(s.easing=r);var c={},u=a.filter(function(e){return e instanceof su});Us(n,i)&&u.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return c[e]=t[e]})});var l=Zc(e,t=Ks(e,t=t.map(function(e){return Rs(e,!1)}),c));return new su(e,t,s,l)}}]),e}();function uu(){return ss()&&Element.prototype.animate||{}}var lu=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this))._nextAnimationId=0,r._renderer=e.createRenderer(i.body,{id:"0",encapsulation:a.ifc.None,styles:[],data:{animation:[]}}),r}return _createClass(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?Jo(e):e;return fu(this._renderer,null,t,"register",[n]),new hu(t,this._renderer)}}]),n}(Zo);return e.\u0275fac=function(t){return new(t||e)(a.LFG(a.FYo),a.LFG(r.K0))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}(),hu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this))._id=e,r._renderer=i,r}return _createClass(n,[{key:"create",value:function(e,t){return new du(this._id,e,t||{},this._renderer)}}]),n}(function(){return function e(){_classCallCheck(this,e)}}()),du=function(){function e(t,n,i,r){_classCallCheck(this,e),this.id=t,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return _createClass(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i=0&&e3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,i){this.delegate.setStyle(e,t,n,i)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}}]),e}(),mu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this,i,r,a)).factory=e,o.namespaceId=i,o}return _createClass(n,[{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(e,t,n){var i,r,a=this;if("@"==t.charAt(0)){var o,s=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),c=t.substr(1),u="";return"@"!=c.charAt(0)&&(r=(i=c).indexOf("."),c=(o=_slicedToArray([i.substring(0,r),i.substr(r+1)],2))[0],u=o[1]),this.engine.listen(this.namespaceId,s,c,u,function(e){a.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}]),n}(gu),vu=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){return _classCallCheck(this,n),t.call(this,e.body,i,r)}return _createClass(n,[{key:"ngOnDestroy",value:function(){this.flush()}}]),n}(Kc);return e.\u0275fac=function(t){return new(t||e)(a.LFG(r.K0),a.LFG(Ss),a.LFG(_c))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}(),_u=new a.OlP("AnimationModuleType"),yu=[{provide:Zo,useClass:lu},{provide:_c,useFactory:function(){return new yc}},{provide:Kc,useClass:vu},{provide:a.FYo,useFactory:function(e,t,n){return new pu(e,t,n)},deps:[w,Kc,a.R0b]}],bu=[{provide:Ss,useFactory:function(){return"function"==typeof uu()?new cu:new ou}},{provide:_u,useValue:"BrowserAnimations"}].concat(yu),Au=[{provide:Ss,useClass:Ls},{provide:_u,useValue:"NoopAnimations"}].concat(yu),wu=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:t.disableAnimations?Au:bu}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:bu,imports:[I]}),e}();function ku(e,t){if(1&e&&a._UZ(0,"mat-pseudo-checkbox",4),2&e){var n=a.oxw();a.Q6J("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}function Mu(e,t){if(1&e&&(a.TgZ(0,"span",5),a._uU(1),a.qZA()),2&e){var n=a.oxw();a.xp6(1),a.hij("(",n.group.label,")")}}var Cu=["*"],Tu=function(){var e=function e(){_classCallCheck(this,e)};return e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",e}(),Lu=function(){var e=function e(){_classCallCheck(this,e)};return e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",e}(),Su=new a.GfV("12.0.5"),Eu=new a.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),zu=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return _createClass(e,[{key:"_getWindow",value:function(){var e=this._document.defaultView||window;return"object"==typeof e&&e?e:null}},{key:"_checksAreEnabled",value:function(){return(0,a.X6Q)()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var e=this._getWindow();return e&&(e.__karma__||e.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document.body&&"function"==typeof getComputedStyle){var e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);var t=getComputedStyle(e);t&&"none"!==t.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&Su.full!==Ko.full&&console.warn("The Angular Material version ("+Su.full+") does not match the Angular CDK version ("+Ko.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(Wo),a.LFG(Eu,8),a.LFG(r.K0))},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[da],da]}),e}();function Ou(e){return function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck(this,n);for(var i=arguments.length,r=new Array(i),a=0;a1&&void 0!==arguments[1]?arguments[1]:0;return function(e){_inherits(i,e);var n=_createSuper(i);function i(){var e;_classCallCheck(this,i);for(var r=arguments.length,a=new Array(r),o=0;o0?n:e}}]),e}(),Hu=new a.OlP("mat-date-formats");try{Iu="undefined"!=typeof Intl}catch(_E){Iu=!1}var Yu={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},ju=Uu(31,function(e){return String(e+1)}),Fu={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},Wu=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Uu(e,t){for(var n=Array(e),i=0;i9999)&&(e=this.clone(e)).setFullYear(Math.max(1,Math.min(9999,e.getFullYear()))),t=Object.assign(Object.assign({},t),{timeZone:"utc"});var n=new Intl.DateTimeFormat(this.locale,t);return this._stripDirectionalityCharacters(this._format(n,e))}return this._stripDirectionalityCharacters(e.toDateString())}},{key:"addCalendarYears",value:function(e,t){return this.addCalendarMonths(e,12*t)}},{key:"addCalendarMonths",value:function(e,t){var n=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(n)!=((this.getMonth(e)+t)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n}},{key:"addCalendarDays",value:function(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}},{key:"toIso8601",value:function(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}},{key:"deserialize",value:function(e){if("string"==typeof e){if(!e)return null;if(Wu.test(e)){var t=new Date(e);if(this.isValid(t))return t}}return _get(_getPrototypeOf(n.prototype),"deserialize",this).call(this,e)}},{key:"isDateInstance",value:function(e){return e instanceof Date}},{key:"isValid",value:function(e){return!isNaN(e.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(e,t,n){var i=new Date;return i.setFullYear(e,t,n),i.setHours(0,0,0,0),i}},{key:"_2digit",value:function(e){return("00"+e).slice(-2)}},{key:"_stripDirectionalityCharacters",value:function(e){return e.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(e,t){var n=new Date;return n.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(n)}}]),n}(Bu);return e.\u0275fac=function(t){return new(t||e)(a.LFG(qu,8),a.LFG(ta))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}(),Zu=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"isErrorState",value:function(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=a.Yz7({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Gu=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),e}();function Xu(e,t,n){var i=e.nativeElement.classList;n?i.add(t):i.remove(t)}var Vu=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[zu],zu]}),e}(),Ju=function(){function e(t,n,i){_classCallCheck(this,e),this._renderer=t,this.element=n,this.config=i,this.state=3}return _createClass(e,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),e}(),Qu={enterDuration:450,exitDuration:400},$u=aa({passive:!0}),el=["mousedown","touchstart"],tl=["mouseup","mouseleave","touchend","touchcancel"],nl=function(){function e(t,n,i,r){_classCallCheck(this,e),this._target=t,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=sr(i))}return _createClass(e,[{key:"fadeInRipple",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),a=Object.assign(Object.assign({},Qu),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);var o=i.radius||function(e,t,n){var i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),s=e-r.left,c=t-r.top,u=a.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=s-o+"px",l.style.top=c-o+"px",l.style.height=2*o+"px",l.style.width=2*o+"px",null!=i.color&&(l.style.backgroundColor=i.color),l.style.transitionDuration="".concat(u,"ms"),this._containerElement.appendChild(l),window.getComputedStyle(l).getPropertyValue("opacity"),l.style.transform="scale(1)";var h=new Ju(this,l,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(function(){var e=h===n._mostRecentTransientRipple;h.state=1,i.persistent||e&&n._isPointerDown||h.fadeOut()},u),h}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var n=e.element,i=Object.assign(Object.assign({},Qu),e.config.animation);n.style.transitionDuration="".concat(i.exitDuration,"ms"),n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(function(){e.state=3,n.parentNode.removeChild(n)},i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(e){return e.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(e){e.config.persistent||e.fadeOut()})}},{key:"setupTriggerEvents",value:function(e){var t=sr(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(el))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(tl),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=qo(e),n=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(e,t)})}},{key:"_registerEvents",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){e.forEach(function(e){t._triggerElement.addEventListener(e,t,$u)})})}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(el.forEach(function(t){e._triggerElement.removeEventListener(t,e,$u)}),this._pointerUpEventsRegistered&&tl.forEach(function(t){e._triggerElement.removeEventListener(t,e,$u)}))}}]),e}(),il=new a.OlP("mat-ripple-global-options"),rl=function(){var e=function(){function e(t,n,i,r,a){_classCallCheck(this,e),this._elementRef=t,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new nl(this,n,t,i)}return _createClass(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(ta),a.Y36(il,8),a.Y36(_u,8))},e.\u0275dir=a.lG2({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&a.ekj("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),e}(),al=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[zu,na],zu]}),e}(),ol=function(){var e=function e(t){_classCallCheck(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1};return e.\u0275fac=function(t){return new(t||e)(a.Y36(_u,8))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&a.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:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::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}\n'],encapsulation:2,changeDetection:0}),e}(),sl=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[zu]]}),e}(),cl=new a.OlP("MAT_OPTION_PARENT_COMPONENT"),ul=Ou(function e(){_classCallCheck(this,e)}),ll=0,hl=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i,r;return _classCallCheck(this,n),(i=t.call(this))._labelId="mat-optgroup-label-"+ll++,i._inert=null!==(r=null==e?void 0:e.inertGroups)&&void 0!==r&&r,i}return n}(ul);return e.\u0275fac=function(t){return new(t||e)(a.Y36(cl,8))},e.\u0275dir=a.lG2({type:e,inputs:{label:"label"},features:[a.qOj]}),e}(),dl=new a.OlP("MatOptgroup"),fl=0,pl=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_classCallCheck(this,e),this.source=t,this.isUserInput=n},gl=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this._element=t,this._changeDetectorRef=n,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+fl++,this.onSelectionChange=new a.vpe,this._stateChanges=new ye.xQ}return _createClass(e,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(e){this._disabled=nr(e)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(e,t){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(e){13!==e.keyCode&&32!==e.keyCode||Da(e)||(this._selectViaInteraction(),e.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new pl(this,e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(void 0),a.Y36(hl))},e.\u0275dir=a.lG2({type:e,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),e}(),ml=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){return _classCallCheck(this,n),t.call(this,e,i,r,a)}return n}(gl);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(cl,8),a.Y36(dl,8))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&a.NdJ("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(a.Ikx("id",t.id),a.uIk("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),a.ekj("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[a.qOj],ngContentSelectors:Cu,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&&(a.F$t(),a.YNc(0,ku,1,2,"mat-pseudo-checkbox",0),a.TgZ(1,"span",1),a.Hsn(2),a.qZA(),a.YNc(3,Mu,2,1,"span",2),a._UZ(4,"div",3)),2&e&&(a.Q6J("ngIf",t.multiple),a.xp6(3),a.Q6J("ngIf",t.group&&t.group._inert),a.xp6(1),a.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[r.O5,rl,ol],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:transparent}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),e}();function vl(e,t,n){if(n.length){for(var i=t.toArray(),r=n.toArray(),a=0,o=0;on+i?Math.max(0,e-i+t):n}var yl=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[al,r.ez,zu,sl]]}),e}();function bl(e,t){}var Al=function e(){_classCallCheck(this,e),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=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},wl={dialogContainer:Go("dialogContainer",[$o("void, exit",Qo({opacity:0,transform:"scale(0.7)"})),$o("enter",Qo({transform:"none"})),ts("* => enter",Xo("150ms cubic-bezier(0, 0, 0.2, 1)",Qo({transform:"none",opacity:1}))),ts("* => void, * => exit",Xo("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Qo({opacity:0})))])},kl=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,s,c){var u;return _classCallCheck(this,n),(u=t.call(this))._elementRef=e,u._focusTrapFactory=i,u._changeDetectorRef=r,u._config=s,u._focusMonitor=c,u._animationStateChanged=new a.vpe,u._elementFocusedBeforeDialogWasOpened=null,u._closeInteractionType=null,u.attachDomPortal=function(e){return u._portalOutlet.hasAttached(),u._portalOutlet.attachDomPortal(e)},u._ariaLabelledBy=s.ariaLabelledBy||null,u._document=o,u}return _createClass(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=ua(),n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=ua())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=ua();return e===t||e.contains(t)}}]),n}(La);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(Do),a.Y36(a.sBO),a.Y36(r.K0,8),a.Y36(Al),a.Y36(jo))},e.\u0275dir=a.lG2({type:e,viewQuery:function(e,t){var n;(1&e&&a.Gf(Ea,7),2&e)&&(a.iGM(n=a.CRH())&&(t._portalOutlet=n.first))},features:[a.qOj]}),e}(),Ml=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._state="enter",e}return _createClass(n,[{key:"_onAnimationDone",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:n}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(kl);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&a.WFA("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(a.Ikx("id",t._id),a.uIk("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),a.d8E("@dialogContainer",t._state))},features:[a.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&a.YNc(0,bl,0,0,"ng-template",0)},directives:[Ea],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[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.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}\n"],encapsulation:2,data:{animation:[wl.dialogContainer]}}),t}(),Cl=0,Tl=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-"+Cl++;_classCallCheck(this,e),this._overlayRef=t,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new ye.xQ,this._afterClosed=new ye.xQ,this._beforeClosed=new ye.xQ,this._state=0,n._id=r,n._animationStateChanged.pipe((0,me.h)(function(e){return"opened"===e.state}),(0,xe.q)(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),n._animationStateChanged.pipe((0,me.h)(function(e){return"closed"===e.state}),(0,xe.q)(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),t.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),t.keydownEvents().pipe((0,me.h)(function(e){return 27===e.keyCode&&!i.disableClose&&!Da(e)})).subscribe(function(e){e.preventDefault(),Ll(i,"keyboard")}),t.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():Ll(i,"mouse")})}return _createClass(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe((0,me.h)(function(e){return"closing"===e.state}),(0,xe.q)(1)).subscribe(function(n){t._beforeClosed.next(e),t._beforeClosed.complete(),t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout(function(){return t._finishDialogClose()},n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:e,height:t}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function Ll(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}var Sl,El=new a.OlP("MatDialogData"),zl=new a.OlP("mat-dialog-default-options"),Ol=new a.OlP("mat-dialog-scroll-strategy"),xl={provide:Ol,deps:[so],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},Rl=function(){var e=function(){function e(t,n,i,r,a,o,s,c,u){var l=this;_classCallCheck(this,e),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=a,this._dialogRefConstructor=s,this._dialogContainerType=c,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ye.xQ,this._afterOpenedAtThisLevel=new ye.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=Se(function(){return l.openDialogs.length?l._getAfterAllClosed():l._getAfterAllClosed().pipe(De(void 0))}),this._scrollStrategy=o}return _createClass(e,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(e,t){var n=this;(t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new Al)).id&&this.getDialogById(t.id);var i=this._createOverlay(t),r=this._attachDialogContainer(i,t),a=this._attachDialogContent(e,r,i,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.afterClosed().subscribe(function(){return n._removeOpenDialog(a)}),this.afterOpened.next(a),r._initializeWithAttachedContent(),a}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(t){return t.id===e})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new Fa({positionStrategy:this._overlay.position().global(),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,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var n=a.zs3.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:Al,useValue:t}]}),i=new Ma(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}},{key:"_attachDialogContent",value:function(e,t,n,i){var r=new this._dialogRefConstructor(n,t,i.id);if(e instanceof a.Rgc)t.attachTemplatePortal(new Ca(e,null,{$implicit:i.data,dialogRef:r}));else{var o=this._createInjector(i,r,t),s=t.attachComponentPortal(new Ma(e,i.viewContainerRef,o));r.componentInstance=s.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}},{key:"_createInjector",value:function(e,t,n){var i=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return!e.direction||i&&i.get(ha,null,a.XFs.Optional)||r.push({provide:ha,useValue:{value:e.direction,change:(0,_e.of)()}}),a.zs3.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var i=t[n];i===e||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(so),a.Y36(a.zs3),a.Y36(void 0),a.Y36(void 0),a.Y36(Va),a.Y36(void 0),a.Y36(a.DyG),a.Y36(a.DyG),a.Y36(a.OlP))},e.\u0275dir=a.lG2({type:e}),e}(),Dl=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o,s,c){return _classCallCheck(this,n),t.call(this,e,i,a,s,c,o,Tl,Ml,El)}return n}(Rl);return e.\u0275fac=function(t){return new(t||e)(a.LFG(so),a.LFG(a.zs3),a.LFG(r.Ye,8),a.LFG(zl,8),a.LFG(Ol),a.LFG(e,12),a.LFG(Va))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}(),Pl=0,Nl=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._dialogRef=t,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-"+Pl++}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=function(e,t){for(var n=e.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?t.find(function(e){return e.id===n.id}):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var t=e._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=e.id)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl,8),a.Y36(a.SBq),a.Y36(Dl))},e.\u0275dir=a.lG2({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&a.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e}(),Il=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),e}(),ql=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),e}(),Bl=((Sl=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Sl)},Sl.\u0275mod=a.oAB({type:Sl}),Sl.\u0275inj=a.cJS({providers:[Dl,xl],imports:[[po,za,zu],zu]}),Sl),Hl=n(2623),Yl=function(){var e=function(){function e(t,n,i,r,a){var o=this;_classCallCheck(this,e),this.injector=t,this.store=n,this.dialog=i,this.route=r,this.oauthService=a,this.loggedIn=!1,setTimeout(function(){o.router=o.injector.get(zi),o.startIdpFilterKeeper()}),this.route.queryParams.subscribe(function(e){e.idpFilter&&(o.filterShortname=e.idpFilter)})}return _createClass(e,[{key:"getClientConfig",value:function(){var e=this.setIdpFilter(),t=e?{acr_values:e}:{};return this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(t.prompt="consent"),{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"),customQueryParams:t}}},{key:"setIdpFilter",value:function(){var e=this,t=location.search.substr(1).split("&");this.filterShortname=null;var n=this.store.get("oidc_client","filters");if(!n)return null;var i=null;return t.forEach(function(t){var r=t.split("=");"idpFilter"===r[0]&&n[r[1]]&&(e.filterShortname=r[1],i=n[r[1]])}),n.default&&!i?(this.filterShortname="default",n.default):i}},{key:"startIdpFilterKeeper",value:function(){var e=this;this.router.events.pipe((0,me.h)(function(e){return e instanceof rt})).subscribe(function(){var t={idpFilter:e.getIdpFilter()};e.router.navigate([],{relativeTo:e.route,queryParams:"default"===t.idpFilter?{}:t,queryParamsHandling:"merge",replaceUrl:!0})})}},{key:"loadConfigData",value:function(){this.oauthService.configure(this.getClientConfig())}},{key:"verifyAuth",value:function(){var e=this,t=location.pathname,n=location.search.substr(1);return"/api-callback"===t?this.handleAuthCallback().then(function(){return e.startRefreshToken()}).then(function(){return e.redirectToOriginDestination()}):this.verifyAuthentication(t,n).then(function(){return e.startRefreshToken()})}},{key:"startRefreshToken",value:function(){var e=this;return this.isLoggedInPromise().then(function(t){return!!t&&(e.oauthService.events.pipe((0,me.h)(function(e){return"token_expires"===e.type})).subscribe(function(){e.oauthService.refreshToken().then(function(e){localStorage.setItem("refresh_token",e.refresh_token)})}),!0)})}},{key:"logout",value:function(){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())}},{key:"isLoggedInPromise",value:function(){return Promise.resolve(this.isLoggedIn())}},{key:"isLoggedIn",value:function(){return this.oauthService.hasValidAccessToken()}},{key:"getAuthorizationHeaderValue",value:function(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}},{key:"startAuthentication",value:function(){this.oauthService.loadDiscoveryDocumentAndLogin()}},{key:"isPotentiallyValidPath",value:function(e){if("/"===e)return!0;for(var t=0,n=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];t5&&void 0!==arguments[5])||arguments[5],c=arguments.length>6&&void 0!==arguments[6]&&arguments[6],u=arguments.length>7&&void 0!==arguments[7]&&arguments[7],l=arguments.length>8?arguments[8]:void 0;_classCallCheck(this,e),this.store=t,this.currentLoader=n,this.compiler=i,this.parser=r,this.missingTranslationHandler=o,this.useDefaultLang=s,this.isolate=c,this.extend=u,this.pending=!1,this._onTranslationChange=new a.vpe,this._onLangChange=new a.vpe,this._onDefaultLangChange=new a.vpe,this._langs=[],this._translations={},this._translationRequests={},l&&this.setDefaultLang(l)}return _createClass(e,[{key:"onTranslationChange",get:function(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}},{key:"onLangChange",get:function(){return this.isolate?this._onLangChange:this.store.onLangChange}},{key:"onDefaultLangChange",get:function(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}},{key:"defaultLang",get:function(){return this.isolate?this._defaultLang:this.store.defaultLang},set:function(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}},{key:"currentLang",get:function(){return this.isolate?this._currentLang:this.store.currentLang},set:function(e){this.isolate?this._currentLang=e:this.store.currentLang=e}},{key:"langs",get:function(){return this.isolate?this._langs:this.store.langs},set:function(e){this.isolate?this._langs=e:this.store.langs=e}},{key:"translations",get:function(){return this.isolate?this._translations:this.store.translations},set:function(e){this.isolate?this._translations=e:this.store.translations=e}},{key:"setDefaultLang",value:function(e){var t=this;if(e!==this.defaultLang){var n=this.retrieveTranslations(e);void 0!==n?(null==this.defaultLang&&(this.defaultLang=e),n.pipe((0,xe.q)(1)).subscribe(function(n){t.changeDefaultLang(e)})):this.changeDefaultLang(e)}}},{key:"getDefaultLang",value:function(){return this.defaultLang}},{key:"use",value:function(e){var t=this;if(e===this.currentLang)return(0,_e.of)(this.translations[e]);var n=this.retrieveTranslations(e);return void 0!==n?(this.currentLang||(this.currentLang=e),n.pipe((0,xe.q)(1)).subscribe(function(n){t.changeLang(e)}),n):(this.changeLang(e),(0,_e.of)(this.translations[e]))}},{key:"retrieveTranslations",value:function(e){var t;return(void 0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}},{key:"getTranslation",value:function(e){var t=this;this.pending=!0;var n=this.currentLoader.getTranslation(e).pipe(Xr(1),(0,xe.q)(1));return this.loadingTranslations=n.pipe((0,ze.U)(function(n){return t.compiler.compileTranslations(n,e)}),Xr(1),(0,xe.q)(1)),this.loadingTranslations.subscribe({next:function(n){t.translations[e]=t.extend&&t.translations[e]?Object.assign(Object.assign({},n),t.translations[e]):n,t.updateLangs(),t.pending=!1},error:function(e){t.pending=!1}}),n}},{key:"setTranslation",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t=this.compiler.compileTranslations(t,e),this.translations[e]=(n||this.extend)&&this.translations[e]?Ql(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}},{key:"getLangs",value:function(){return this.langs}},{key:"addLangs",value:function(e){var t=this;e.forEach(function(e){-1===t.langs.indexOf(e)&&t.langs.push(e)})}},{key:"updateLangs",value:function(){this.addLangs(Object.keys(this.translations))}},{key:"getParsedResult",value:function(e,t,n){var i;if(t instanceof Array){var r,a={},o=!1,s=_createForOfIteratorHelper(t);try{for(s.s();!(r=s.n()).done;){var c=r.value;a[c]=this.getParsedResult(e,c,n),Mr(a[c])&&(o=!0)}}catch(l){s.e(l)}finally{s.f()}return o?Fl(t.map(function(e){return Mr(a[e])?a[e]:(0,_e.of)(a[e])})).pipe((0,ze.U)(function(e){var n={};return e.forEach(function(e,i){n[t[i]]=e}),n})):a}if(e&&(i=this.parser.interpolate(this.parser.getValue(e,t),n)),void 0===i&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(i=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),n)),void 0===i){var u={key:t,translateService:this};void 0!==n&&(u.interpolateParams=n),i=this.missingTranslationHandler.handle(u)}return void 0!==i?i:t}},{key:"get",value:function(e,t){var n=this;if(!Vl(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,He.b)(function(i){return Mr(i=n.getParsedResult(i,e,t))?i:(0,_e.of)(i)}));var i=this.getParsedResult(this.translations[this.currentLang],e,t);return Mr(i)?i:(0,_e.of)(i)}},{key:"getStreamOnTranslationChange",value:function(e,t){var n=this;if(!Vl(e)||!e.length)throw new Error('Parameter "key" required');return Te(Se(function(){return n.get(e,t)}),this.onTranslationChange.pipe((0,Oe.w)(function(i){var r=n.getParsedResult(i.translations,e,t);return"function"==typeof r.subscribe?r:(0,_e.of)(r)})))}},{key:"stream",value:function(e,t){var n=this;if(!Vl(e)||!e.length)throw new Error('Parameter "key" required');return Te(Se(function(){return n.get(e,t)}),this.onLangChange.pipe((0,Oe.w)(function(i){var r=n.getParsedResult(i.translations,e,t);return Mr(r)?r:(0,_e.of)(r)})))}},{key:"instant",value:function(e,t){if(!Vl(e)||!e.length)throw new Error('Parameter "key" required');var n=this.getParsedResult(this.translations[this.currentLang],e,t);if(Mr(n)){if(e instanceof Array){var i={};return e.forEach(function(t,n){i[e[n]]=e[n]}),i}return e}return n}},{key:"set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.currentLang;this.translations[n][e]=this.compiler.compile(t,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}},{key:"changeLang",value:function(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}},{key:"changeDefaultLang",value:function(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}},{key:"reloadLang",value:function(e){return this.resetLang(e),this.getTranslation(e)}},{key:"resetLang",value:function(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}},{key:"getBrowserLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return void 0!==(e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage)?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void 0}}},{key:"getBrowserCultureLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(ah),a.LFG(Ul),a.LFG(ih),a.LFG(th),a.LFG(Zl),a.LFG(sh),a.LFG(oh),a.LFG(uh),a.LFG(ch))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}(),hh=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.translate=t,this._ref=n,this.value=""}return _createClass(e,[{key:"updateValue",value:function(e,t,n){var i=this,r=function(t){i.value=void 0!==t?t:e,i.lastKey=e,i._ref.markForCheck()};if(n){var a=this.translate.getParsedResult(n,e,t);Mr(a.subscribe)?a.subscribe(r):r(a)}this.translate.get(e,t).subscribe(r)}},{key:"transform",value:function(e){var t,n=this;if(!e||!e.length)return e;for(var i=arguments.length,r=new Array(i>1?i-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:Ul,useClass:Kl},t.compiler||{provide:ih,useClass:rh},t.parser||{provide:th,useClass:nh},t.missingTranslationHandler||{provide:Zl,useClass:Gl},ah,{provide:oh,useValue:t.isolate},{provide:sh,useValue:t.useDefaultLang},{provide:uh,useValue:t.extend},{provide:ch,useValue:t.defaultLanguage},lh]}}},{key:"forChild",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:Ul,useClass:Kl},t.compiler||{provide:ih,useClass:rh},t.parser||{provide:th,useClass:nh},t.missingTranslationHandler||{provide:Zl,useClass:Gl},{provide:oh,useValue:t.isolate},{provide:sh,useValue:t.useDefaultLang},{provide:uh,useValue:t.extend},{provide:ch,useValue:t.defaultLanguage},lh]}}}]),e}()).\u0275fac=function(e){return new(e||$l)},$l.\u0275mod=a.oAB({type:$l}),$l.\u0275inj=a.cJS({}),$l),fh=function(){var e=function e(t){_classCallCheck(this,e),this.dialogRef=t};return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h2",0),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},directives:[Il],pipes:[hh],styles:[""]}),e}(),ph=["mat-button",""],gh=["*"],mh=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],vh=xu(Ou(Ru(function e(t){_classCallCheck(this,e),this._elementRef=t}))),_h=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;_classCallCheck(this,n),(a=t.call(this,e))._focusMonitor=i,a._animationMode=r,a.isRoundButton=a._hasHostAttributes("mat-fab","mat-mini-fab"),a.isIconButton=a._hasHostAttributes("mat-icon-button");var o,s=_createForOfIteratorHelper(mh);try{for(s.s();!(o=s.n()).done;){var c=o.value;a._hasHostAttributes(c)&&a._getHostElement().classList.add(c)}}catch(u){s.e(u)}finally{s.f()}return e.nativeElement.classList.add("mat-button-base"),a.isRoundButton&&(a.color="accent"),a}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),e}(),yh=((eh=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||eh)},eh.\u0275mod=a.oAB({type:eh}),eh.\u0275inj=a.cJS({imports:[[al,zu],zu]}),eh),bh=["underline"],Ah=["connectionContainer"],wh=["inputContainer"],kh=["label"];function Mh(e,t){1&e&&(a.ynx(0),a.TgZ(1,"div",14),a._UZ(2,"div",15),a._UZ(3,"div",16),a._UZ(4,"div",17),a.qZA(),a.TgZ(5,"div",18),a._UZ(6,"div",15),a._UZ(7,"div",16),a._UZ(8,"div",17),a.qZA(),a.BQk())}function Ch(e,t){1&e&&(a.TgZ(0,"div",19),a.Hsn(1,1),a.qZA())}function Th(e,t){if(1&e&&(a.ynx(0),a.Hsn(1,2),a.TgZ(2,"span"),a._uU(3),a.qZA(),a.BQk()),2&e){var n=a.oxw(2);a.xp6(3),a.Oqu(n._control.placeholder)}}function Lh(e,t){1&e&&a.Hsn(0,3,["*ngSwitchCase","true"])}function Sh(e,t){1&e&&(a.TgZ(0,"span",23),a._uU(1," *"),a.qZA())}function Eh(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"label",20,21),a.NdJ("cdkObserveContent",function(){return a.CHM(n),a.oxw().updateOutlineGap()}),a.YNc(2,Th,4,1,"ng-container",12),a.YNc(3,Lh,1,0,"ng-content",12),a.YNc(4,Sh,2,0,"span",22),a.qZA()}if(2&e){var i=a.oxw();a.ekj("mat-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),a.Q6J("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),a.uIk("for",i._control.id)("aria-owns",i._control.id),a.xp6(2),a.Q6J("ngSwitchCase",!1),a.xp6(1),a.Q6J("ngSwitchCase",!0),a.xp6(1),a.Q6J("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function zh(e,t){1&e&&(a.TgZ(0,"div",24),a.Hsn(1,4),a.qZA())}function Oh(e,t){if(1&e&&(a.TgZ(0,"div",25,26),a._UZ(2,"span",27),a.qZA()),2&e){var n=a.oxw();a.xp6(2),a.ekj("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function xh(e,t){if(1&e&&(a.TgZ(0,"div"),a.Hsn(1,5),a.qZA()),2&e){var n=a.oxw();a.Q6J("@transitionMessages",n._subscriptAnimationState)}}function Rh(e,t){if(1&e&&(a.TgZ(0,"div",31),a._uU(1),a.qZA()),2&e){var n=a.oxw(2);a.Q6J("id",n._hintLabelId),a.xp6(1),a.Oqu(n.hintLabel)}}function Dh(e,t){if(1&e&&(a.TgZ(0,"div",28),a.YNc(1,Rh,2,2,"div",29),a.Hsn(2,6),a._UZ(3,"div",30),a.Hsn(4,7),a.qZA()),2&e){var n=a.oxw();a.Q6J("@transitionMessages",n._subscriptAnimationState),a.xp6(1),a.Q6J("ngIf",n.hintLabel)}}var Ph,Nh=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Ih=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],qh=0,Bh=new a.OlP("MatError"),Hh=function(){var e=function e(t,n){_classCallCheck(this,e),this.id="mat-error-"+qh++,t||n.nativeElement.setAttribute("aria-live","polite")};return e.\u0275fac=function(t){return new(t||e)(a.$8M("aria-live"),a.Y36(a.SBq))},e.\u0275dir=a.lG2({type:e,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&a.uIk("id",t.id)},inputs:{id:"id"},features:[a._Bn([{provide:Bh,useExisting:e}])]}),e}(),Yh={transitionMessages:Go("transitionMessages",[$o("enter",Qo({opacity:1,transform:"translateY(0%)"})),ts("void => enter",[Qo({opacity:0,transform:"translateY(-5px)"}),Xo("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},jh=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e}),e}(),Fh=0,Wh=new a.OlP("MatHint"),Uh=function(){var e=function e(){_classCallCheck(this,e),this.align="start",this.id="mat-hint-"+Fh++};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(a.uIk("id",t.id)("align",null),a.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[a._Bn([{provide:Wh,useExisting:e}])]}),e}(),Kh=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["mat-label"]]}),e}(),Zh=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["mat-placeholder"]]}),e}(),Gh=new a.OlP("MatPrefix"),Xh=new a.OlP("MatSuffix"),Vh=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["","matSuffix",""]],features:[a._Bn([{provide:Xh,useExisting:e}])]}),e}(),Jh=0,Qh=xu(function e(t){_classCallCheck(this,e),this._elementRef=t},"primary"),$h=new a.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),ed=new a.OlP("MatFormField"),td=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o,s,c,u){var l;return _classCallCheck(this,n),(l=t.call(this,e))._elementRef=e,l._changeDetectorRef=i,l._dir=a,l._defaults=o,l._platform=s,l._ngZone=c,l._outlineGapCalculationNeededImmediately=!1,l._outlineGapCalculationNeededOnStable=!1,l._destroyed=new ye.xQ,l._showAlwaysAnimate=!1,l._subscriptAnimationState="",l._hintLabel="",l._hintLabelId="mat-hint-"+Jh++,l._labelId="mat-form-field-label-"+Jh++,l.floatLabel=l._getDefaultFloatLabelState(),l._animationsEnabled="NoopAnimations"!==u,l.appearance=o&&o.appearance?o.appearance:"legacy",l._hideRequiredMarker=!(!o||null==o.hideRequiredMarker)&&o.hideRequiredMarker,l}return _createClass(n,[{key:"appearance",get:function(){return this._appearance},set:function(e){var t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(e){this._hideRequiredMarker=nr(e)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(e){this._explicitFormFieldControl=e}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(t.controlType)),t.stateChanges.pipe(De(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Ir(this._destroyed)).subscribe(function(){return e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe(Ir(e._destroyed)).subscribe(function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()})}),(0,Oa.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(De(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(De(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Ir(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e.updateOutlineGap()})}):e.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,lr(this._label.nativeElement,"transitionend").pipe((0,xe.q)(1)).subscribe(function(){e._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push.apply(e,_toConsumableArray(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,n=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push.apply(e,_toConsumableArray(this._errorChildren.map(function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),a=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var o=i.getBoundingClientRect();if(0===o.width&&0===o.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(o),c=e.children,u=this._getStartEnd(c[0].getBoundingClientRect()),l=0,h=0;h0?.75*l+10:0}for(var d=0;de?{max:{max:e,actual:t.value}}:null}}(e)}},{key:"required",value:function(e){return gd(e)}},{key:"requiredTrue",value:function(e){return function(e){return!0===e.value?null:{required:!0}}(e)}},{key:"email",value:function(e){return function(e){return ud(e.value)||fd.test(e.value)?null:{email:!0}}(e)}},{key:"minLength",value:function(e){return function(e){return function(t){return ud(t.value)||!ld(t.value)?null:t.value.lengthe?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}}(e)}},{key:"pattern",value:function(e){return function(e){return e?("string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),function(e){if(ud(e.value))return null;var i=e.value;return t.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}):md;var t,n}(e)}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){return wd(e)}},{key:"composeAsync",value:function(e){return Md(e)}}]),e}();function gd(e){return ud(e.value)?{required:!0}:null}function md(e){return null}function vd(e){return null!=e}function _d(e){var t=(0,a.QGY)(e)?(0,ve.D)(e):e;return(0,a.CqO)(t),t}function yd(e){var t={};return e.forEach(function(e){t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function bd(e,t){return t.map(function(t){return t(e)})}function Ad(e){return e.map(function(e){return function(e){return!e.validate}(e)?e:function(t){return e.validate(t)}})}function wd(e){if(!e)return null;var t=e.filter(vd);return 0==t.length?null:function(e){return yd(bd(e,t))}}function kd(e){return null!=e?wd(Ad(e)):null}function Md(e){if(!e)return null;var t=e.filter(vd);return 0==t.length?null:function(e){return Fl(bd(e,t).map(_d)).pipe((0,ze.U)(yd))}}function Cd(e){return null!=e?Md(Ad(e)):null}function Td(e,t){return null===e?[t]:Array.isArray(e)?[].concat(_toConsumableArray(e),[t]):[e,t]}function Ld(e){return e._rawValidators}function Sd(e){return e._rawAsyncValidators}var Ed=function(){var e=function(){function e(){_classCallCheck(this,e),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return _createClass(e,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(e){this._rawValidators=e||[],this._composedValidatorFn=kd(this._rawValidators)}},{key:"_setAsyncValidators",value:function(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Cd(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(e){this._onDestroyCallbacks.push(e)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(e){return e()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(e){this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e}),e}(),zd=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(Ed);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275dir=a.lG2({type:t,features:[a.qOj]}),t}(),Od=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return n}(Ed),xd=function(){function e(t){_classCallCheck(this,e),this._cd=t}return _createClass(e,[{key:"is",value:function(e){var t,n;return!!(null===(n=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===n?void 0:n[e])}}]),e}(),Rd=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e)}return n}(xd);return e.\u0275fac=function(t){return new(t||e)(a.Y36(Od,2))},e.\u0275dir=a.lG2({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&a.ekj("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[a.qOj]}),e}(),Dd=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e)}return n}(xd);return e.\u0275fac=function(t){return new(t||e)(a.Y36(zd,10))},e.\u0275dir=a.lG2({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&a.ekj("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[a.qOj]}),e}();function Pd(e,t){return[].concat(_toConsumableArray(t.path),[e])}function Nd(e,t){Bd(e,t),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&Yd(e,t)})}(e,t),function(e,t){var n=function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(function(){e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&Yd(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){var n=function(e){t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(function(){e._unregisterOnDisabledChange(n)})}}(e,t)}function Id(e,t){var n=function(){};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),Hd(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function qd(e,t){e.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function Bd(e,t){var n=Ld(e);null!==t.validator?e.setValidators(Td(n,t.validator)):"function"==typeof n&&e.setValidators([n]);var i=Sd(e);null!==t.asyncValidator?e.setAsyncValidators(Td(i,t.asyncValidator)):"function"==typeof i&&e.setAsyncValidators([i]);var r=function(){return e.updateValueAndValidity()};qd(t._rawValidators,r),qd(t._rawAsyncValidators,r)}function Hd(e,t){var n=!1;if(null!==e){if(null!==t.validator){var i=Ld(e);if(Array.isArray(i)&&i.length>0){var r=i.filter(function(e){return e!==t.validator});r.length!==i.length&&(n=!0,e.setValidators(r))}}if(null!==t.asyncValidator){var a=Sd(e);if(Array.isArray(a)&&a.length>0){var o=a.filter(function(e){return e!==t.asyncValidator});o.length!==a.length&&(n=!0,e.setAsyncValidators(o))}}}var s=function(){};return qd(t._rawValidators,s),qd(t._rawAsyncValidators,s),n}function Yd(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function jd(e,t){Bd(e,t)}function Fd(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}function Wd(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Ud(e,t){return t?(Array.isArray(t),t.forEach(function(e){e.constructor===cd?n=e:Object.getPrototypeOf(e.constructor)===rd?i=e:r=e}),r||i||n||null):null;var n,i,r}function Kd(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function Zd(e){return(Jd(e)?e.validators:e)||null}function Gd(e){return Array.isArray(e)?kd(e):e||null}function Xd(e,t){return(Jd(t)?t.asyncValidators:e)||null}function Vd(e){return Array.isArray(e)?Cd(e):e||null}function Jd(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var Qd,$d,ef=function(){function e(t,n){_classCallCheck(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=Gd(this._rawValidators),this._composedAsyncValidatorFn=Vd(this._rawAsyncValidators)}return _createClass(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=Gd(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=Vd(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;var n=_d(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var i=e;return t.forEach(function(e){i=i instanceof nf?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof rf&&i.at(e)||null}),i}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new a.vpe,this.statusChanges=new a.vpe}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){Jd(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),tf=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,n),(e=t.call(this,Zd(r),Xd(a,r)))._onChange=[],e._applyFormState(i),e._setUpdateStrategy(r),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!e.asyncValidator}),e}return _createClass(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){Kd(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){Kd(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(ef),nf=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,Zd(i),Xd(r,i))).controls=e,a._initObservables(),a._setUpdateStrategy(i),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!!a.asyncValidator}),a}return _createClass(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(i){t._throwIfControlMissing(i),t.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(Object.keys(e).forEach(function(i){t.controls[i]&&t.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof tf?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){var i=t.controls[n];i&&e(i,n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(ef),rf=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,Zd(i),Xd(r,i))).controls=e,a._initObservables(),a._setUpdateStrategy(i),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!!a.asyncValidator}),a}return _createClass(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}},{key:"removeAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,i){t._throwIfControlMissing(i),t.at(i).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(e.forEach(function(e,i){t.at(i)&&t.at(i).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof tf?e.value:e.getRawValue()})}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index ".concat(e))}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=_createForOfIteratorHelper(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}]),n}(ef),af={provide:zd,useExisting:(0,a.Gpc)(function(){return sf})},of=Promise.resolve(null),sf=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new a.vpe,r.form=new nf({},kd(e),Cd(i)),r}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(e){var t=this;of.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Nd(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;of.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),Kd(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;of.then(function(){var n=t._findContainer(e.path),i=new nf({});jd(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;of.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;of.then(function(){n.form.get(e.path).setValue(t)})}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,Wd(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}}]),n}(zd);return e.\u0275fac=function(t){return new(t||e)(a.Y36(hd,10),a.Y36(dd,10))},e.\u0275dir=a.lG2({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&a.NdJ("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a._Bn([af]),a.qOj]}),e}(),cf={provide:Od,useExisting:(0,a.Gpc)(function(){return lf})},uf=Promise.resolve(null),lf=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var s;return _classCallCheck(this,n),(s=t.call(this)).control=new tf,s._registered=!1,s.update=new a.vpe,s._parent=e,s._setValidators(i),s._setAsyncValidators(r),s.valueAccessor=Ud(0,o),s}return _createClass(n,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),Fd(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?Pd(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){Nd(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(e){var t=this;uf.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,i=""===n||n&&"false"!==n;uf.then(function(){i&&!t.control.disabled?t.control.disable():!i&&t.control.disabled&&t.control.enable()})}}]),n}(Od);return e.\u0275fac=function(t){return new(t||e)(a.Y36(zd,9),a.Y36(hd,10),a.Y36(dd,10),a.Y36(ad,10))},e.\u0275dir=a.lG2({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[a._Bn([cf]),a.qOj,a.TTD]}),e}(),hf=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e}(),df={provide:ad,useExisting:(0,a.Gpc)(function(){return ff}),multi:!0},ff=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"writeValue",value:function(e){this.setProperty("value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}}]),n}(rd);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275dir=a.lG2({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&a.NdJ("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[a._Bn([df]),a.qOj]}),t}(),pf=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({}),e}(),gf=new a.OlP("NgModelWithFormControlWarning"),mf={provide:Od,useExisting:(0,a.Gpc)(function(){return vf})},vf=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var s;return _classCallCheck(this,n),(s=t.call(this))._ngModelWarningConfig=o,s.update=new a.vpe,s._ngModelWarningSent=!1,s._setValidators(e),s._setAsyncValidators(i),s.valueAccessor=Ud(0,r),s}return _createClass(n,[{key:"isDisabled",set:function(e){}},{key:"ngOnChanges",value:function(e){if(this._isControlChanged(e)){var t=e.form.previousValue;t&&Id(t,this,!1),Nd(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Fd(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&Id(this.form,this,!1)}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_isControlChanged",value:function(e){return e.hasOwnProperty("form")}}]),n}(Od);return e.\u0275fac=function(t){return new(t||e)(a.Y36(hd,10),a.Y36(dd,10),a.Y36(ad,10),a.Y36(gf,8))},e.\u0275dir=a.lG2({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[a._Bn([mf]),a.qOj,a.TTD]}),e._ngModelWarningSentOnce=!1,e}(),_f={provide:zd,useExisting:(0,a.Gpc)(function(){return yf})},yf=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this)).validators=e,r.asyncValidators=i,r.submitted=!1,r._onCollectionChange=function(){return r._updateDomValue()},r.directives=[],r.form=null,r.ngSubmit=new a.vpe,r._setValidators(e),r._setAsyncValidators(i),r}return _createClass(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(Hd(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return Nd(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){Id(e.control||null,e,!1),Kd(this.directives,e)}},{key:"addFormGroup",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormGroup",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormArray",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,Wd(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach(function(t){var n=t.control,i=e.form.get(t.path);n!==i&&(Id(n||null,t),i instanceof tf&&(Nd(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(e){var t=this.form.get(e.path);jd(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(e){if(this.form){var t=this.form.get(e.path);t&&function(e,t){return Hd(e,t)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){Bd(this.form,this),this._oldForm&&Hd(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),n}(zd);return e.\u0275fac=function(t){return new(t||e)(a.Y36(hd,10),a.Y36(dd,10))},e.\u0275dir=a.lG2({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&a.NdJ("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a._Bn([_f]),a.qOj,a.TTD]}),e}(),bf={provide:Od,useExisting:(0,a.Gpc)(function(){return Af})},Af=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,s){var c;return _classCallCheck(this,n),(c=t.call(this))._ngModelWarningConfig=s,c._added=!1,c.update=new a.vpe,c._ngModelWarningSent=!1,c._parent=e,c._setValidators(i),c._setAsyncValidators(r),c.valueAccessor=Ud(0,o),c}return _createClass(n,[{key:"isDisabled",set:function(e){}},{key:"ngOnChanges",value:function(e){this._added||this._setUpControl(),Fd(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"path",get:function(){return Pd(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"_checkParentType",value:function(){}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}]),n}(Od);return e.\u0275fac=function(t){return new(t||e)(a.Y36(zd,13),a.Y36(hd,10),a.Y36(dd,10),a.Y36(ad,10),a.Y36(gf,8))},e.\u0275dir=a.lG2({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[a._Bn([bf]),a.qOj,a.TTD]}),e._ngModelWarningSentOnce=!1,e}(),wf={provide:hd,useExisting:(0,a.Gpc)(function(){return kf}),multi:!0},kf=function(){var e=function(){function e(){_classCallCheck(this,e),this._required=!1}return _createClass(e,[{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&"false"!="".concat(e),this._onChange&&this._onChange()}},{key:"validate",value:function(e){return this.required?gd(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&a.uIk("required",t.required?"":null)},inputs:{required:"required"},features:[a._Bn([wf])]}),e}(),Mf=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[pf]]}),e}(),Cf=(($d=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||$d)},$d.\u0275mod=a.oAB({type:$d}),$d.\u0275inj=a.cJS({imports:[Mf]}),$d),Tf=((Qd=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:gf,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}()).\u0275fac=function(e){return new(e||Qd)},Qd.\u0275mod=a.oAB({type:Qd}),Qd.\u0275inj=a.cJS({imports:[Mf]}),Qd),Lf=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"group",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this._reduceControls(e),r=null,a=null;return null!=n&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(n)?(r=null!=n.validators?n.validators:null,a=null!=n.asyncValidators?n.asyncValidators:null,t=null!=n.updateOn?n.updateOn:void 0):(r=null!=n.validator?n.validator:null,a=null!=n.asyncValidator?n.asyncValidator:null)),new nf(i,{asyncValidators:a,updateOn:t,validators:r})}},{key:"control",value:function(e,t,n){return new tf(e,t,n)}},{key:"array",value:function(e,t,n){var i=this,r=e.map(function(e){return i._createControl(e)});return new rf(r,t,n)}},{key:"_reduceControls",value:function(e){var t=this,n={};return Object.keys(e).forEach(function(i){n[i]=t._createControl(e[i])}),n}},{key:"_createControl",value:function(e){return e instanceof tf||e instanceof nf||e instanceof rf?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,a.Yz7)({factory:function(){return new e},token:e,providedIn:Tf}),e}(),Sf=["trigger"],Ef=["panel"];function zf(e,t){if(1&e&&(a.TgZ(0,"span",8),a._uU(1),a.qZA()),2&e){var n=a.oxw();a.xp6(1),a.Oqu(n.placeholder)}}function Of(e,t){if(1&e&&(a.TgZ(0,"span",12),a._uU(1),a.qZA()),2&e){var n=a.oxw(2);a.xp6(1),a.Oqu(n.triggerValue)}}function xf(e,t){1&e&&a.Hsn(0,0,["*ngSwitchCase","true"])}function Rf(e,t){if(1&e&&(a.TgZ(0,"span",9),a.YNc(1,Of,2,1,"span",10),a.YNc(2,xf,1,0,"ng-content",11),a.qZA()),2&e){var n=a.oxw();a.Q6J("ngSwitch",!!n.customTrigger),a.xp6(2),a.Q6J("ngSwitchCase",!0)}}function Df(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",13),a.TgZ(1,"div",14,15),a.NdJ("@transformPanel.done",function(e){return a.CHM(n),a.oxw()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return a.CHM(n),a.oxw()._handleKeydown(e)}),a.Hsn(3,1),a.qZA(),a.qZA()}if(2&e){var 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())}}var Pf,Nf,If=[[["mat-select-trigger"]],"*"],qf=["mat-select-trigger","*"],Bf={transformPanelWrap:Go("transformPanelWrap",[ts("* => void",is("@transformPanel",[ns()],{optional:!0}))]),transformPanel:Go("transformPanel",[$o("void",Qo({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),$o("showing",Qo({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),$o("showing-multiple",Qo({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),ts("void => *",Xo("120ms cubic-bezier(0, 0, 0.2, 1)")),ts("* => void",Xo("100ms 25ms linear",Qo({opacity:0})))])},Hf=0,Yf=new a.OlP("mat-select-scroll-strategy"),jf=new a.OlP("MAT_SELECT_CONFIG"),Ff={provide:Yf,deps:[so],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Wf=function e(t,n){_classCallCheck(this,e),this.source=t,this.value=n},Uf=Ru(Du(Ou(Pu(function e(t,n,i,r,a){_classCallCheck(this,e),this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=a})))),Kf=new a.OlP("MatSelectTrigger"),Zf=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,s,c,u,l,h,d,f,p,g,m){var v,_,y,b;return _classCallCheck(this,n),(v=t.call(this,s,o,u,l,d))._viewportRuler=e,v._changeDetectorRef=i,v._ngZone=r,v._dir=c,v._parentFormField=h,v.ngControl=d,v._liveAnnouncer=g,v._defaultOptions=m,v._panelOpen=!1,v._compareWith=function(e,t){return e===t},v._uid="mat-select-"+Hf++,v._triggerAriaLabelledBy=null,v._destroy=new ye.xQ,v._onChange=function(){},v._onTouched=function(){},v._valueId="mat-select-value-"+Hf++,v._panelDoneAnimatingStream=new ye.xQ,v._overlayPanelClass=(null===(_=v._defaultOptions)||void 0===_?void 0:_.overlayPanelClass)||"",v._focused=!1,v.controlType="mat-select",v._required=!1,v._multiple=!1,v._disableOptionCentering=null!==(b=null===(y=v._defaultOptions)||void 0===y?void 0:y.disableOptionCentering)&&void 0!==b&&b,v.ariaLabel="",v.optionSelectionChanges=Se(function(){var e=v.options;return e?e.changes.pipe(De(e),(0,Oe.w)(function(){return Oa.T.apply(void 0,_toConsumableArray(e.map(function(e){return e.onSelectionChange})))})):v._ngZone.onStable.pipe((0,xe.q)(1),(0,Oe.w)(function(){return v.optionSelectionChanges}))}),v.openedChange=new a.vpe,v._openedStream=v.openedChange.pipe((0,me.h)(function(e){return e}),(0,ze.U)(function(){})),v._closedStream=v.openedChange.pipe((0,me.h)(function(e){return!e}),(0,ze.U)(function(){})),v.selectionChange=new a.vpe,v.valueChange=new a.vpe,v.ngControl&&(v.ngControl.valueAccessor=_assertThisInitialized(v)),null!=(null==m?void 0:m.typeaheadDebounceInterval)&&(v._typeaheadDebounceInterval=m.typeaheadDebounceInterval),v._scrollStrategyFactory=p,v._scrollStrategy=v._scrollStrategyFactory(),v.tabIndex=parseInt(f)||0,v.id=v.id,v}return _createClass(n,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=nr(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=nr(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=nr(e)}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=ir(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var e=this;this._selectionModel=new ga(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Cr(),Ir(this._destroy)).subscribe(function(){return e._panelDoneAnimating(e.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe(Ir(this._destroy)).subscribe(function(e){e.added.forEach(function(e){return e.select()}),e.removed.forEach(function(e){return e.deselect()})}),this.options.changes.pipe(De(null),Ir(this._destroy)).subscribe(function(){e._resetOptions(),e._initializeSelection()})}},{key:"ngDoCheck",value:function(){var e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){var t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(e){this.value=e}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map(function(e){return e.viewValue});return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}},{key:"_handleClosedKeydown",value:function(e){var t=e.keyCode,n=40===t||38===t||37===t||39===t,i=13===t||32===t,r=this._keyManager;if(!r.isTyping()&&i&&!Da(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){var a=this.selected;r.onKeydown(e);var o=this.selected;o&&a!==o&&this._liveAnnouncer.announce(o.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(e){var t=this._keyManager,n=e.keyCode,i=40===n||38===n,r=t.isTyping();if(i&&e.altKey)e.preventDefault(),this.close();else if(r||13!==n&&32!==n||!t.activeItem||Da(e))if(!r&&this._multiple&&65===n&&e.ctrlKey){e.preventDefault();var a=this.options.some(function(e){return!e.disabled&&!e.selected});this.options.forEach(function(e){e.disabled||(a?e.select():e.deselect())})}else{var o=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==o&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var e=this;this._overlayDir.positionChange.pipe((0,xe.q)(1)).subscribe(function(){e._changeDetectorRef.detectChanges(),e._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then(function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value),e.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(e){var t=this;if(this._selectionModel.selected.forEach(function(e){return e.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(function(e){return t._selectValue(e)}),this._sortValues();else{var n=this._selectValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(e){var t=this,n=this.options.find(function(n){if(t._selectionModel.isSelected(n))return!1;try{return null!=n.value&&t._compareWith(n.value,e)}catch(i){return!1}});return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var e=this;this._keyManager=new So(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Ir(this._destroy)).subscribe(function(){e.panelOpen&&(!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close())}),this._keyManager.change.pipe(Ir(this._destroy)).subscribe(function(){e._panelOpen&&e.panel?e._scrollOptionIntoView(e._keyManager.activeItemIndex||0):e._panelOpen||e.multiple||!e._keyManager.activeItem||e._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var e=this,t=(0,Oa.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Ir(t)).subscribe(function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())}),Oa.T.apply(void 0,_toConsumableArray(this.options.map(function(e){return e._stateChanges}))).pipe(Ir(t)).subscribe(function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()})}},{key:"_onSelect",value:function(e,t){var n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==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)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;if(this.multiple){var t=this.options.toArray();this._selectionModel.sort(function(n,i){return e.sortComparator?e.sortComparator(n,i,t):t.indexOf(n)-t.indexOf(i)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(e){var t;t=this.multiple?this.selected.map(function(e){return e.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()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getPanelAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId(),n=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}},{key:"_panelDoneAnimating",value:function(e){this.openedChange.emit(e)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),n}(Uf);return e.\u0275fac=function(t){return new(t||e)(a.Y36(ba),a.Y36(a.sBO),a.Y36(a.R0b),a.Y36(Zu),a.Y36(a.SBq),a.Y36(ha,8),a.Y36(sf,8),a.Y36(yf,8),a.Y36(ed,8),a.Y36(Od,10),a.$8M("tabindex"),a.Y36(Yf),a.Y36(Io),a.Y36(jf,8))},e.\u0275dir=a.lG2({type:e,viewQuery:function(e,t){var n;(1&e&&(a.Gf(Sf,5),a.Gf(Ef,5),a.Gf(ho,5)),2&e)&&(a.iGM(n=a.CRH())&&(t.trigger=n.first),a.iGM(n=a.CRH())&&(t.panel=n.first),a.iGM(n=a.CRH())&&(t._overlayDir=n.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[a.qOj,a.TTD]}),e}(),Gf=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._scrollTop=0,e._triggerFontSize=0,e._transformOrigin="top",e._offsetY=0,e._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],e}return _createClass(n,[{key:"_calculateOverlayScroll",value:function(e,t,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}},{key:"ngOnInit",value:function(){var e=this;_get(_getPrototypeOf(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(Ir(this._destroy)).subscribe(function(){e.panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var e=this;_get(_getPrototypeOf(n.prototype),"_canOpen",this).call(this)&&(_get(_getPrototypeOf(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,xe.q)(1)).subscribe(function(){e._triggerFontSize&&e._overlayDir.overlayRef&&e._overlayDir.overlayRef.overlayElement&&(e._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(e._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(e){var t=vl(e,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=_l((e+t)*n,n,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),_get(_getPrototypeOf(n.prototype),"_panelDoneAnimating",this).call(this,e)}},{key:"_getChangeEvent",value:function(e){return new Wf(this,e)}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)e=40;else if(this.disableOptionCentering)e=16;else{var a=this._selectionModel.selected[0]||this.options.first;e=a&&a.group?32:16}i||(e*=-1);var o=0-(t.left+e-(i?r:0)),s=t.right+e-n.width+(i?0:r);o>0?e+=o+8:s>0&&(e-=s+8),this._overlayDir.offsetX=Math.round(e),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(e,t,n){var i,r=this._getItemHeight(),a=(r-this._triggerRect.height)/2,o=Math.floor(256/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-o))*r+(r-(this._getItemCount()*r-256)%r):t-r/2,Math.round(-1*i-a))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*t,256)-a-this._triggerRect.height;o>r?this._adjustPanelUp(o,r):a>i?this._adjustPanelDown(a,i,e):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(e,t,n){var i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var e,t=this._getItemHeight(),n=this._getItemCount(),i=Math.min(n*t,256),r=n*t-i;e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),e+=vl(e,this.options,this.optionGroups);var a=i/2;this._scrollTop=this._calculateOverlayScroll(e,a,r),this._offsetY=this._calculateOverlayOffsetY(e,a,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-t+e/2,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(Zf);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-select"]],contentQueries:function(e,t,n){var i;(1&e&&(a.Suo(n,Kf,5),a.Suo(n,ml,5),a.Suo(n,dl,5)),2&e)&&(a.iGM(i=a.CRH())&&(t.customTrigger=i.first),a.iGM(i=a.CRH())&&(t.options=i),a.iGM(i=a.CRH())&&(t.optionGroups=i))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&a.NdJ("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(a.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-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),a.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:[a._Bn([{provide:jh,useExisting:t},{provide:cl,useExisting:t}]),a.qOj],ngContentSelectors:qf,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&&(a.F$t(If),a.TgZ(0,"div",0,1),a.NdJ("click",function(){return t.toggle()}),a.TgZ(3,"div",2),a.YNc(4,zf,2,1,"span",3),a.YNc(5,Rf,3,2,"span",4),a.qZA(),a.TgZ(6,"div",5),a._UZ(7,"div",6),a.qZA(),a.qZA(),a.YNc(8,Df,4,14,"ng-template",7),a.NdJ("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){var n=a.MAs(1);a.uIk("aria-owns",t.panelOpen?t.id+"-panel":null),a.xp6(3),a.Q6J("ngSwitch",t.empty),a.uIk("id",t._valueId),a.xp6(1),a.Q6J("ngSwitchCase",!0),a.xp6(1),a.Q6J("ngSwitchCase",!1),a.xp6(3),a.Q6J("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[lo,r.RF,r.n9,ho,r.ED,r.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;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{display:table-cell;vertical-align:middle}.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 transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.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:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[Bf.transformPanelWrap,Bf.transformPanel]},changeDetection:0}),t}(),Xf=((Pf=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Pf)},Pf.\u0275mod=a.oAB({type:Pf}),Pf.\u0275inj=a.cJS({providers:[Ff],imports:[[r.ez,po,yl,zu],Aa,nd,yl,zu]}),Pf),Vf=function(){function e(t){_classCallCheck(this,e),this.total=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Jf(e,this.total))}}]),e}(),Jf=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return _createClass(n,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}]),n}(Pe.L),Qf=new Set,$f=function(){var e=function(){function e(t){_classCallCheck(this,e),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ep}return _createClass(e,[{key:"matchMedia",value:function(e){return this._platform.WEBKIT&&function(e){if(!Qf.has(e))try{Nf||((Nf=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(Nf)),Nf.sheet&&(Nf.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),Qf.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(ta))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(ta))},token:e,providedIn:"root"}),e}();function ep(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var tp=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new ye.xQ}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var t=this;return np(ar(e)).some(function(e){return t._registerQuery(e).mql.matches})}},{key:"observe",value:function(e){var t=this,n=np(ar(e)).map(function(e){return t._registerQuery(e).observable}),i=(0,we.aj)(n);return(i=Te(i.pipe((0,xe.q)(1)),i.pipe(function(e){return e.lift(new Vf(1))},(0,go.b)(0)))).pipe((0,ze.U)(function(e){var t={matches:!1,breakpoints:{}};return e.forEach(function(e){var n=e.matches,i=e.query;t.matches=t.matches||n,t.breakpoints[i]=n}),t}))}},{key:"_registerQuery",value:function(e){var t=this;if(this._queries.has(e))return this._queries.get(e);var n=this._mediaMatcher.matchMedia(e),i={observable:new ke.y(function(e){var i=function(n){return t._zone.run(function(){return e.next(n)})};return n.addListener(i),function(){n.removeListener(i)}}).pipe(De(n),(0,ze.U)(function(t){var n=t.matches;return{query:e,matches:n}}),Ir(this._destroySubject)),mql:n};return this._queries.set(e,i),i}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG($f),a.LFG(a.R0b))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG($f),a.LFG(a.R0b))},token:e,providedIn:"root"}),e}();function np(e){return e.map(function(e){return e.split(",")}).reduce(function(e,t){return e.concat(t)}).map(function(e){return e.trim()})}var ip={tooltipState:Go("state",[$o("initial, void, hidden",Qo({opacity:0,transform:"scale(0)"})),$o("visible",Qo({transform:"scale(1)"})),ts("* => visible",Xo("200ms cubic-bezier(0, 0, 0.2, 1)",es([Qo({opacity:0,transform:"scale(0)",offset:0}),Qo({opacity:.5,transform:"scale(0.99)",offset:.5}),Qo({opacity:1,transform:"scale(1)",offset:1})]))),ts("* => hidden",Xo("100ms cubic-bezier(0, 0, 0.2, 1)",Qo({opacity:0})))])},rp=aa({passive:!0}),ap=new a.OlP("mat-tooltip-scroll-strategy"),op={provide:ap,deps:[so],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},sp=new a.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),cp=function(){var e=function(){function e(t,n,i,r,a,o,s,c,u,l,h,d){var f=this;_classCallCheck(this,e),this._overlay=t,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=a,this._platform=o,this._ariaDescriber=s,this._focusMonitor=c,this._dir=l,this._defaultOptions=h,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 ye.xQ,this._handleKeydown=function(e){f._isTooltipVisible()&&27===e.keyCode&&!Da(e)&&(e.preventDefault(),e.stopPropagation(),f._ngZone.run(function(){return f.hide(0)}))},this._scrollStrategy=u,this._document=d,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),l.change.pipe(Ir(this._destroyed)).subscribe(function(){f._overlayRef&&f._updatePosition(f._overlayRef)}),a.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",f._handleKeydown)})}return _createClass(e,[{key:"position",get:function(){return this._position},set:function(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()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=nr(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(e){var t=this;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(function(){Promise.resolve().then(function(){t._ariaDescriber.describe(t._elementRef.nativeElement,t.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var e=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Ir(this._destroyed)).subscribe(function(t){t?"keyboard"===t&&e._ngZone.run(function(){return e.show()}):e._ngZone.run(function(){return e.hide(0)})})}},{key:"ngOnDestroy",value:function(){var e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(t){var n=_slicedToArray(t,2),i=n[0],r=n[1];e.removeEventListener(i,r,rp)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}},{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new Ma(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Ir(this._destroyed)).subscribe(function(){return e._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(e)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var e=this;if(this._overlayRef)return this._overlayRef;var t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return n.positionChanges.pipe(Ir(this._destroyed)).subscribe(function(t){e._updateCurrentPositionClass(t.connectionPair),e._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run(function(){return e.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"".concat(this._cssClassPrefix,"-tooltip-panel"),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Ir(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(e){var t=e.getConfig().positionStrategy,n=this._getOrigin(),i=this._getOverlayPosition();t.withPositions([this._addOffset(Object.assign(Object.assign({},n.main),i.main)),this._addOffset(Object.assign(Object.assign({},n.fallback),i.fallback))])}},{key:"_addOffset",value:function(e){return e}},{key:"_getOrigin",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n||"below"==n?e={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={originX:"start",originY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={originX:"end",originY:"center"});var i=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n?e={overlayX:"center",overlayY:"bottom"}:"below"==n?e={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={overlayX:"start",overlayY:"center"});var i=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,xe.q)(1),Ir(this._destroyed)).subscribe(function(){e._tooltipInstance&&e._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(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}}},{key:"_updateCurrentPositionClass",value:function(e){var t,n=e.overlayY,i=e.originX,r=e.originY;if((t="center"===n?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===n&&"top"===r?"above":"below")!==this._currentPosition){var a=this._overlayRef;if(a){var o="".concat(this._cssClassPrefix,"-tooltip-panel-");a.removePanelClass(o+this._currentPosition),a.addPanelClass(o+t)}this._currentPosition=t}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var e=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){e._setupPointerExitEventsIfNeeded(),e.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){e._setupPointerExitEventsIfNeeded(),clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout(function(){return e.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var e,t=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return t.hide()}],["wheel",function(e){return t._wheelListener(e)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var i=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),(e=this._passiveListeners).push.apply(e,n)}}},{key:"_addListeners",value:function(e){var t=this;e.forEach(function(e){var n=_slicedToArray(e,2),i=n[0],r=n[1];t._elementRef.nativeElement.addEventListener(i,r,rp)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(e){if(this._isTooltipVisible()){var t=this._document.elementFromPoint(e.clientX,e.clientY),n=this._elementRef.nativeElement;t===n||n.contains(t)||this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this.touchGestures;if("off"!==e){var t=this._elementRef.nativeElement,n=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==e&&t.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(so),a.Y36(a.SBq),a.Y36(_a),a.Y36(a.s_b),a.Y36(a.R0b),a.Y36(ta),a.Y36(Mo),a.Y36(jo),a.Y36(void 0),a.Y36(ha),a.Y36(void 0),a.Y36(r.K0))},e.\u0275dir=a.lG2({type:e,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),e}(),up=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o,s,c,u,l,h,d,f){var p;return _classCallCheck(this,n),(p=t.call(this,e,i,r,a,o,s,c,u,l,h,d,f))._tooltipComponent=hp,p}return n}(cp);return e.\u0275fac=function(t){return new(t||e)(a.Y36(so),a.Y36(a.SBq),a.Y36(_a),a.Y36(a.s_b),a.Y36(a.R0b),a.Y36(ta),a.Y36(Mo),a.Y36(jo),a.Y36(ap),a.Y36(ha,8),a.Y36(sp,8),a.Y36(r.K0))},e.\u0275dir=a.lG2({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[a.qOj]}),e}(),lp=function(){var e=function(){function e(t){_classCallCheck(this,e),this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new ye.xQ}return _createClass(e,[{key:"show",value:function(e){var t=this;clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){t._visibility="visible",t._showTimeoutId=void 0,t._markForCheck()},e)}},{key:"hide",value:function(e){var t=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){t._visibility="hidden",t._hideTimeoutId=void 0,t._markForCheck()},e)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(e){var t=e.toState;"hidden"!==t||this.isVisible()||this._onHide.next(),"visible"!==t&&"hidden"!==t||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.sBO))},e.\u0275dir=a.lG2({type:e}),e}(),hp=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e))._breakpointObserver=i,r._isHandset=r._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),r}return n}(lp);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.sBO),a.Y36(tp))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&a.NdJ("click",function(){return t._handleBodyInteraction()},!1,a.pYS)("auxclick",function(){return t._handleBodyInteraction()},!1,a.pYS),2&e&&a.Udp("zoom","visible"===t._visibility?1:null)},features:[a.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){var n;(1&e&&(a.TgZ(0,"div",0),a.NdJ("@state.start",function(){return t._animationStart()})("@state.done",function(e){return t._animationDone(e)}),a.ALo(1,"async"),a._uU(2),a.qZA()),2&e)&&(a.ekj("mat-tooltip-handset",null==(n=a.lcZ(1,5,t._isHandset))?null:n.matches),a.Q6J("ngClass",t.tooltipClass)("@state",t._visibility),a.xp6(2),a.Oqu(t.message))},directives:[r.mk],pipes:[r.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[ip.tooltipState]},changeDetection:0}),e}(),dp=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[op],imports:[[Uo,r.ez,po,zu],zu,Aa]}),e}();function fp(e,t){if(1&e&&(a.TgZ(0,"mat-option",19),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.Q6J("value",n),a.xp6(1),a.hij(" ",n," ")}}function pp(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-form-field",16),a.TgZ(1,"mat-select",17),a.NdJ("selectionChange",function(e){return a.CHM(n),a.oxw(2)._changePageSize(e.value)}),a.YNc(2,fp,2,2,"mat-option",18),a.qZA(),a.qZA()}if(2&e){var i=a.oxw(2);a.Q6J("appearance",i._formFieldAppearance)("color",i.color),a.xp6(1),a.Q6J("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),a.xp6(1),a.Q6J("ngForOf",i._displayedPageSizeOptions)}}function gp(e,t){if(1&e&&(a.TgZ(0,"div",20),a._uU(1),a.qZA()),2&e){var n=a.oxw(2);a.xp6(1),a.Oqu(n.pageSize)}}function mp(e,t){if(1&e&&(a.TgZ(0,"div",12),a.TgZ(1,"div",13),a._uU(2),a.qZA(),a.YNc(3,pp,3,6,"mat-form-field",14),a.YNc(4,gp,2,1,"div",15),a.qZA()),2&e){var n=a.oxw();a.xp6(2),a.hij(" ",n._intl.itemsPerPageLabel," "),a.xp6(1),a.Q6J("ngIf",n._displayedPageSizeOptions.length>1),a.xp6(1),a.Q6J("ngIf",n._displayedPageSizeOptions.length<=1)}}function vp(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",21),a.NdJ("click",function(){return a.CHM(n),a.oxw().firstPage()}),a.O4$(),a.TgZ(1,"svg",7),a._UZ(2,"path",22),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.Q6J("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),a.uIk("aria-label",i._intl.firstPageLabel)}}function _p(e,t){if(1&e){var n=a.EpF();a.O4$(),a.kcU(),a.TgZ(0,"button",23),a.NdJ("click",function(){return a.CHM(n),a.oxw().lastPage()}),a.O4$(),a.TgZ(1,"svg",7),a._UZ(2,"path",24),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.Q6J("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),a.uIk("aria-label",i._intl.lastPageLabel)}}var yp=function(){var e=function e(){_classCallCheck(this,e),this.changes=new ye.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(e,t,n){if(0==n||0==t)return"0 of ".concat(n);var i=e*t;return"".concat(i+1," \u2013 ").concat(i<(n=Math.max(n,0))?Math.min(i+t,n):i+t," of ").concat(n)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=a.Yz7({factory:function(){return new e},token:e,providedIn:"root"}),e}(),bp={provide:yp,deps:[[new a.FiY,new a.tp0,yp]],useFactory:function(e){return e||new yp}},Ap=new a.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),wp=Ou(Nu(function e(){_classCallCheck(this,e)})),kp=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;if(_classCallCheck(this,n),(o=t.call(this))._intl=e,o._changeDetectorRef=i,o._pageIndex=0,o._length=0,o._pageSizeOptions=[],o._hidePageSize=!1,o._showFirstLastButtons=!1,o.page=new a.vpe,o._intlChanges=e.changes.subscribe(function(){return o._changeDetectorRef.markForCheck()}),r){var s=r.pageSize,c=r.pageSizeOptions,u=r.hidePageSize,l=r.showFirstLastButtons;null!=s&&(o._pageSize=s),null!=c&&(o._pageSizeOptions=c),null!=u&&(o._hidePageSize=u),null!=l&&(o._showFirstLastButtons=l)}return _possibleConstructorReturn(o)}return _createClass(n,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(e){this._pageIndex=Math.max(ir(e),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(e){this._length=ir(e),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(e){this._pageSize=Math.max(ir(e),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(e){this._pageSizeOptions=(e||[]).map(function(e){return ir(e)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(e){this._hidePageSize=nr(e)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(e){this._showFirstLastButtons=nr(e)}},{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex++,this._emitPageEvent(e)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex--,this._emitPageEvent(e)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var e=this.getNumberOfPages()-1;return this.pageIndex enter",Xo("120ms cubic-bezier(0, 0, 0.2, 1)",Qo({opacity:1,transform:"scale(1)"}))),ts("* => void",Xo("100ms 25ms linear",Qo({opacity:0})))]),fadeInItems:Go("fadeInItems",[$o("showing",Qo({opacity:1})),ts("void => *",[Qo({opacity:0}),Xo("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Op=new a.OlP("MatMenuContent"),xp=new a.OlP("MAT_MENU_PANEL"),Rp=Ru(Ou(function e(){_classCallCheck(this,e)})),Dp=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this))._elementRef=e,o._focusMonitor=r,o._parentMenu=a,o.role="menuitem",o._hovered=new ye.xQ,o._focused=new ye.xQ,o._highlighted=!1,o._triggersSubmenu=!1,a&&a.addItem&&a.addItem(_assertThisInitialized(o)),o}return _createClass(n,[{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var e,t,n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons"),r=0;r0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe((0,xe.q)(1)).subscribe(function(){return e._focusFirstItem(t)}):this._focusFirstItem(t)}},{key:"_focusFirstItem",value:function(e){var t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(e){var t="mat-elevation-z".concat(Math.min(4+e,24)),n=Object.keys(this._classList).find(function(e){return e.startsWith("mat-elevation-z")});n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[t]=!0,this._previousElevation=t)}},{key:"setPositionClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,n=this._classList;n["mat-menu-before"]="before"===e,n["mat-menu-after"]="after"===e,n["mat-menu-above"]="above"===t,n["mat-menu-below"]="below"===t}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(e){this._animationDone.next(e),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var e=this;this._allItems.changes.pipe(De(this._allItems)).subscribe(function(t){e._directDescendantItems.reset(t.filter(function(t){return t._parentMenu===e})),e._directDescendantItems.notifyOnChanges()})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(Pp))},e.\u0275dir=a.lG2({type:e,contentQueries:function(e,t,n){var i;(1&e&&(a.Suo(n,Op,5),a.Suo(n,Dp,5),a.Suo(n,Dp,4)),2&e)&&(a.iGM(i=a.CRH())&&(t.lazyContent=i.first),a.iGM(i=a.CRH())&&(t._allItems=i),a.iGM(i=a.CRH())&&(t.items=i))},viewQuery:function(e,t){var n;(1&e&&a.Gf(a.Rgc,5),2&e)&&(a.iGM(n=a.CRH())&&(t.templateRef=n.first))},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),e}(),qp=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){return _classCallCheck(this,n),t.call(this,e,i,r)}return n}(Ip);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(Pp))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&a.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[a._Bn([{provide:xp,useExisting:e}]),a.qOj],ngContentSelectors:Sp,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&&(a.F$t(),a.YNc(0,Ep,3,6,"ng-template"))},directives:[r.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}.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}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}\n'],encapsulation:2,data:{animation:[zp.transformMenu,zp.fadeInItems]},changeDetection:0}),e}(),Bp=new a.OlP("mat-menu-scroll-strategy"),Hp={provide:Bp,deps:[so],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Yp=aa({passive:!0}),jp=function(){var e=function(){function e(t,n,i,r,o,s,c,u){var l=this;_classCallCheck(this,e),this._overlay=t,this._element=n,this._viewContainerRef=i,this._menuItemInstance=s,this._dir=c,this._focusMonitor=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Qe.w.EMPTY,this._hoverSubscription=Qe.w.EMPTY,this._menuCloseSubscription=Qe.w.EMPTY,this._handleTouchStart=function(e){Bo(e)||(l._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new a.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new a.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=o instanceof Ip?o:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,Yp),s&&(s._triggersSubmenu=this.triggersSubmenu())}return _createClass(e,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(e){this.menu=e}},{key:"menu",get:function(){return this._menu},set:function(e){var t=this;e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(function(e){t._destroyMenu(e),"click"!==e&&"tab"!==e||!t._parentMaterialMenu||t._parentMaterialMenu.closed.emit(e)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Yp),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var e=this;if(!this._menuOpen){this._checkMenu();var t=this._createOverlay(),n=t.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return e.closeMenu()}),this._initMenu(),this.menu instanceof Ip&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"updatePosition",value:function(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}},{key:"_destroyMenu",value:function(e){var t=this;if(this._overlayRef&&this.menuOpen){var n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==e&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,n instanceof Ip?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe((0,me.h)(function(e){return"void"===e.toState}),(0,xe.q)(1),Ir(n.lazyContent._attached)).subscribe({next:function(){return n.lazyContent.detach()},complete:function(){return t._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n.lazyContent&&n.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var e=0,t=this.menu.parentMenu;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=e)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new Fa({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(e){var t=this;this.menu.setPositionClasses&&e.positionChanges.subscribe(function(e){t.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(e){var t=_slicedToArray("before"===this.menu.xPosition?["end","start"]:["start","end"],2),n=t[0],i=t[1],r=_slicedToArray("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),a=r[0],o=r[1],s=a,c=o,u=n,l=i,h=0;this.triggersSubmenu()?(l=n="before"===this.menu.xPosition?"start":"end",i=u="end"===n?"start":"end",h="bottom"===a?8:-8):this.menu.overlapTrigger||(s="top"===a?"bottom":"top",c="top"===o?"bottom":"top"),e.withPositions([{originX:n,originY:s,overlayX:u,overlayY:a,offsetY:h},{originX:i,originY:s,overlayX:l,overlayY:a,offsetY:h},{originX:n,originY:c,overlayX:u,overlayY:o,offsetY:-h},{originX:i,originY:c,overlayX:l,overlayY:o,offsetY:-h}])}},{key:"_menuClosingActions",value:function(){var e=this,t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,_e.of)(),r=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,me.h)(function(t){return t!==e._menuItemInstance}),(0,me.h)(function(){return e._menuOpen})):(0,_e.of)();return(0,Oa.T)(t,i,r,n)}},{key:"_handleMousedown",value:function(e){qo(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var 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())}},{key:"_handleClick",value:function(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var e=this;this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,me.h)(function(t){return t===e._menuItemInstance&&!t.disabled}),(0,Tp.g)(0,kr)).subscribe(function(){e._openedBy="mouse",e.menu instanceof Ip&&e.menu._isAnimating?e.menu._animationDone.pipe((0,xe.q)(1),(0,Tp.g)(0,kr),Ir(e._parentMaterialMenu._hovered())).subscribe(function(){return e.openMenu()}):e.openMenu()}))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new Ca(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(so),a.Y36(a.SBq),a.Y36(a.s_b),a.Y36(Bp),a.Y36(xp,8),a.Y36(Dp,10),a.Y36(ha,8),a.Y36(jo))},e.\u0275dir=a.lG2({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&a.NdJ("mousedown",function(e){return t._handleMousedown(e)})("keydown",function(e){return t._handleKeydown(e)})("click",function(e){return t._handleClick(e)}),2&e&&a.uIk("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),e}(),Fp=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[Hp],imports:[zu]}),e}(),Wp=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[Hp],imports:[[r.ez,zu,al,po,Fp],Aa,zu,Fp]}),e}(),Up=n(1225),Kp=n(1055),Zp=["*"];function Gp(e){return Error('Unable to find icon with the name "'.concat(e,'"'))}function Xp(e){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \"".concat(e,'".'))}function Vp(e){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was \"".concat(e,'".'))}var Jp=function e(t,n,i){_classCallCheck(this,e),this.url=t,this.svgText=n,this.options=i},Qp=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this._httpClient=t,this._sanitizer=n,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i}return _createClass(e,[{key:"addSvgIcon",value:function(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}},{key:"addSvgIconLiteral",value:function(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}},{key:"addSvgIconInNamespace",value:function(e,t,n,i){return this._addSvgIconConfig(e,t,new Jp(n,null,i))}},{key:"addSvgIconResolver",value:function(e){return this._resolvers.push(e),this}},{key:"addSvgIconLiteralInNamespace",value:function(e,t,n,i){var r=this._sanitizer.sanitize(a.q3G.HTML,n);if(!r)throw Vp(n);return this._addSvgIconConfig(e,t,new Jp("",r,i))}},{key:"addSvgIconSet",value:function(e,t){return this.addSvgIconSetInNamespace("",e,t)}},{key:"addSvgIconSetLiteral",value:function(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}},{key:"addSvgIconSetInNamespace",value:function(e,t,n){return this._addSvgIconSetConfig(e,new Jp(t,null,n))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,t,n){var i=this._sanitizer.sanitize(a.q3G.HTML,t);if(!i)throw Vp(t);return this._addSvgIconSetConfig(e,new Jp("",i,n))}},{key:"registerFontClassAlias",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this._fontCssClassesByAlias.set(e,t),this}},{key:"classNameForFontAlias",value:function(e){return this._fontCssClassesByAlias.get(e)||e}},{key:"setDefaultFontSetClass",value:function(e){return this._defaultFontSetClass=e,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(e){var t=this,n=this._sanitizer.sanitize(a.q3G.RESOURCE_URL,e);if(!n)throw Xp(e);var i=this._cachedIconsByUrl.get(n);return i?(0,_e.of)($p(i)):this._loadSvgIconFromConfig(new Jp(e,null)).pipe((0,Ve.b)(function(e){return t._cachedIconsByUrl.set(n,e)}),(0,ze.U)(function(e){return $p(e)}))}},{key:"getNamedSvgIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=eg(t,e),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(t,e))return this._svgIconConfigs.set(n,i),this._getSvgFromConfig(i);var r=this._iconSetConfigs.get(t);return r?this._getSvgFromIconSetConfigs(e,r):(0,Up._)(Gp(n))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(e){return e.svgText?(0,_e.of)($p(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,ze.U)(function(e){return $p(e)}))}},{key:"_getSvgFromIconSetConfigs",value:function(e,t){var n=this,i=this._extractIconWithNameFromAnySet(e,t);return i?(0,_e.of)(i):Fl(t.filter(function(e){return!e.svgText}).map(function(e){return n._loadSvgIconSetFromConfig(e).pipe((0,Be.K)(function(t){var i=n._sanitizer.sanitize(a.q3G.RESOURCE_URL,e.url);return n._errorHandler.handleError(new Error("Loading icon set URL: ".concat(i," failed: ").concat(t.message))),(0,_e.of)(null)}))})).pipe((0,ze.U)(function(){var i=n._extractIconWithNameFromAnySet(e,t);if(!i)throw Gp(e);return i}))}},{key:"_extractIconWithNameFromAnySet",value:function(e,t){for(var n=t.length-1;n>=0;n--){var i=t[n];if(i.svgText&&i.svgText.indexOf(e)>-1){var r=this._svgElementFromConfig(i),a=this._extractSvgIconFromSet(r,e,i.options);if(a)return a}}return null}},{key:"_loadSvgIconFromConfig",value:function(e){var t=this;return this._fetchIcon(e).pipe((0,Ve.b)(function(t){return e.svgText=t}),(0,ze.U)(function(){return t._svgElementFromConfig(e)}))}},{key:"_loadSvgIconSetFromConfig",value:function(e){return e.svgText?(0,_e.of)(null):this._fetchIcon(e).pipe((0,Ve.b)(function(t){return e.svgText=t}))}},{key:"_extractSvgIconFromSet",value:function(e,t,n){var i=e.querySelector('[id="'.concat(t,'"]'));if(!i)return null;var r=i.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,n);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),n);var a=this._svgElementFromString("");return a.appendChild(r),this._setSvgAttributes(a,n)}},{key:"_svgElementFromString",value:function(e){var t=this._document.createElement("DIV");t.innerHTML=e;var n=t.querySelector("svg");if(!n)throw Error(" tag not found");return n}},{key:"_toSvgElement",value:function(e){for(var t=this._svgElementFromString(""),n=e.attributes,i=0;i1&&void 0!==arguments[1]?arguments[1]:"csv",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"export";switch(t){case"csv":var i=function(e,t){return null===t?"":t},r=Object.keys(e[0]),a=e.map(function(e){return r.map(function(t){return JSON.stringify(e[t],i)}).join(",")});a.unshift(r.join(",").split(" ").join("_").split('"').join("''"));var o=a.join("\r\n"),s=new Blob([o],{type:"text/csv"});(0,lg.saveAs)(s,"".concat(n,".").concat(t))}}var yg=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"getString",value:function(e){return localStorage.getItem(e)}},{key:"getNumber",value:function(e){return parseInt(localStorage.getItem(e),10)}},{key:"setNumber",value:function(e,t){localStorage.setItem(e,t.toString())}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),bg=function(){var e=function(){function e(t){_classCallCheck(this,e),this.guiConfigService=t}return _createClass(e,[{key:"getTablePageSize",value:function(e){var t=this.guiConfigService.getNumber("GUI_CONFIG.PREF_PAGE_SIZE."+e);if(!isNaN(t))return t;var n=this.guiConfigService.getNumber("GUI_CONFIG.PREF_PAGE_SIZE");return isNaN(n)?10:n}},{key:"setTablePageSize",value:function(e,t){this.guiConfigService.setNumber("GUI_CONFIG.PREF_PAGE_SIZE."+e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(yg))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Ag=function(){var e=function e(){_classCallCheck(this,e),this.exportData=new a.vpe};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"div",0),a.TgZ(1,"button",1),a.TgZ(2,"mat-icon"),a._uU(3,"more_vert"),a.qZA(),a.qZA(),a.TgZ(4,"mat-menu",null,2),a.TgZ(6,"button",3),a._uU(7),a.ALo(8,"translate"),a.qZA(),a.qZA(),a.TgZ(9,"mat-menu",null,4),a.TgZ(11,"button",5),a.NdJ("click",function(){return t.exportData.emit("csv")}),a._uU(12,"Csv"),a.qZA(),a.qZA(),a.qZA()),2&e){var n=a.MAs(5),i=a.MAs(10);a.xp6(1),a.Q6J("matMenuTriggerFor",n),a.xp6(5),a.Q6J("matMenuTriggerFor",i),a.xp6(1),a.hij(" ",a.lcZ(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[_h,jp,sg,qp,Dp],pipes:[hh],styles:[""]}),e}();function wg(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"perun-web-apps-table-options",6),a.NdJ("exportData",function(e){return a.CHM(n),a.oxw().exportData.emit(e)}),a.qZA()}}function kg(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"perun-web-apps-table-options",6),a.NdJ("exportData",function(e){return a.CHM(n),a.oxw().exportData.emit(e)}),a.qZA()}}var Mg,Cg=["*"],Tg=((Mg=function(){function e(t){_classCallCheck(this,e),this.tableConfigService=t,this.hideExport=!1,this.pageSizeOptions=hg,this.dataLength=0,this.exportData=new a.vpe,this.pageSize=5}return _createClass(e,[{key:"ngOnInit",value:function(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5)}},{key:"matPaginator",set:function(e){this.paginator=e}},{key:"pageChangedTop",value:function(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}},{key:"pageChangedBottom",value:function(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)}}]),e}()).\u0275fac=function(e){return new(e||Mg)(a.Y36(bg))},Mg.\u0275cmp=a.Xpm({type:Mg,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(e,t){var n;1&e&&a.Gf(Mp,7),2&e&&a.iGM(n=a.CRH())&&(t.matPaginator=n.first)},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId"},outputs:{exportData:"exportData"},ngContentSelectors:Cg,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&&(a.F$t(),a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.TgZ(2,"mat-paginator",2),a.NdJ("page",function(e){return t.pageChangedTop(e)}),a.qZA(),a.YNc(3,wg,1,0,"perun-web-apps-table-options",3),a.qZA(),a.TgZ(4,"div",4),a.Hsn(5),a.qZA(),a.TgZ(6,"div",1),a.TgZ(7,"mat-paginator",5),a.NdJ("page",function(e){return t.pageChangedBottom(e)}),a.qZA(),a.YNc(8,kg,1,0,"perun-web-apps-table-options",3),a.qZA(),a.qZA()),2&e&&(a.xp6(2),a.Q6J("length",t.dataLength)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),a.xp6(1),a.Q6J("ngIf",!t.hideExport),a.xp6(4),a.Q6J("length",t.paginator.length)("pageIndex",t.paginator.pageIndex)("pageSizeOptions",t.paginator.pageSizeOptions)("pageSize",t.paginator.pageSize),a.xp6(1),a.Q6J("ngIf",!t.hideExport))},directives:[Mp,r.O5,Ag],styles:[""]}),Mg),Lg=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"passwordMatchValidator",value:function(e){var t=e.get("passwordCtrl").value,n=e.get("passwordAgainCtrl").value;return e.get("passwordAgainCtrl").setErrors(t!==n?{noPasswordMatch:!0}:null),null}},{key:"patternValidator",value:function(e){return function(t){if(!t.value)return null;var n,i=0,r=_createForOfIteratorHelper(e);try{for(r.s();!(n=r.n()).done;){i+=n.value.test(t.value)?1:0}}catch(a){r.e(a)}finally{r.f()}return i>=3?null:{isWeak:!0}}}}]),e}(),Sg=function(){var e=function(){function e(t,n,i,r,a,o){_classCallCheck(this,e),this.authService=t,this.storeService=n,this.authResolver=i,this.authzService=r,this.dialog=a,this.router=o,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}return _createClass(e,[{key:"setLoginScreen",value:function(e){this.loginScreenShown=e}},{key:"isLoginScreenShown",value:function(){return this.loginScreenShown}},{key:"isServiceAccess",value:function(){return this.serviceAccess}},{key:"isServiceAccessLoginScreenShown",value:function(){return this.serviceAccessLoginScreen}},{key:"verifyAuth",value:function(){return sessionStorage.getItem("baPrincipal")?(this.serviceAccess=!0,"/service-access"===location.pathname?this.router.navigate([]).then(function(){return!0}):this.router.navigate([location.pathname]).then(function(){return!0})):(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(function(e){return e(!0)}):this.authService.verifyAuth())}},{key:"startAuth",value:function(){return this.authService.startAuthentication(),new Promise(function(){})}},{key:"loadPrincipal",value:function(){var e=this;return this.authzService.getPerunPrincipal().toPromise().then(function(t){if(null===t.user){var n=dg();e.dialog.open(fh,n)}else e.storeService.setPerunPrincipal(t),e.authResolver.init(t)})}},{key:"handleAuthStart",value:function(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(function(e){e()});if(this.storeService.get("auto_auth_redirect"))return this.startAuth().then(function(){return new Promise(function(){})});this.setLoginScreen(!0);var e,t={},n=_createForOfIteratorHelper(location.search.substr(1).split("&"));try{for(n.s();!(e=n.n()).done;){var i=e.value.split("=");t[i[0]]=i[1]}}catch(r){n.e(r)}finally{n.f()}return this.router.navigate(["login"],{queryParams:t,queryParamsHandling:"merge"}).then(function(){return null})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(Yl),a.LFG(tr),a.LFG(ge),a.LFG(ae),a.LFG(Dl),a.LFG(zi))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Eg=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.matIconRegistry=t,this.domSanitizer=n,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/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/settings1-blue.svg",name:"settings-blue"},{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"}]}return _createClass(e,[{key:"registerPerunRefreshIcon",value:function(){var e=this;this.customIcons.forEach(function(t){e.matIconRegistry.addSvgIcon(t.name,e.domSanitizer.bypassSecurityTrustResourceUrl(t.url))})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(Qp),a.LFG(x))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}(),zg=function(){var e=function(){function e(t){_classCallCheck(this,e),this.dialogRef=t}return _createClass(e,[{key:"close",value:function(){this.dialogRef.close(!0)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl))},e.\u0275cmp=a.Xpm({type:e,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&&(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),a.TgZ(7,"div",3),a.TgZ(8,"button",4),a.NdJ("click",function(){return t.close()}),a._uU(9),a.ALo(10,"translate"),a.qZA(),a.qZA(),a.qZA()),2&e&&(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")," "))},directives:[Nl,Il,ql,_h],pipes:[hh],styles:[""]}),e}(),Og=function(){var e=function(){function e(){_classCallCheck(this,e),this.handleNextError=!0}return _createClass(e,[{key:"dontHandleErrorForNext",value:function(){this.handleNextError=!1}},{key:"shouldHandleError",value:function(){var e=this.handleNextError;return this.handleNextError=!0,e}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),xg=function(){var e=function(){function e(t){_classCallCheck(this,e),this.translate=t,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3,this.addNotification=new a.vpe}return _createClass(e,[{key:"getDefaultActionMessage",value:function(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}},{key:"getDefaultRpcMessage",value:function(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}},{key:"showRPCError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]: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)}},{key:"showError",value:function(e,t,n,i,r){this.addNotification.emit({type:"error",error:t,description:n,title:e,actionText:void 0===i&&void 0!==n?this.getDefaultActionMessage():i,delay:this.defaultErrorDelayMs,icon:"error_outline",action:r,timeStamp:"".concat((new Date).getHours(),":").concat((new Date).getMinutes())})}},{key:"showSuccess",value:function(e,t,n,i){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===n&&void 0!==t?this.getDefaultActionMessage():n,delay:this.defaultSuccessDelayMs,icon:"done",action:i,timeStamp:"".concat((new Date).getHours(),":").concat((new Date).getMinutes())})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(lh))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Rg=function(){var e=function(){function e(t,n,i,r,a,o){_classCallCheck(this,e),this.authService=t,this.apiRequestConfiguration=n,this.notificator=i,this.store=r,this.dialog=a,this.initAuthService=o}return _createClass(e,[{key:"intercept",value:function(e,t){var n=this,i=this.store.get("api_url");if(-1!==e.url.indexOf("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==i&&-1!==e.url.toString().indexOf(i)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()){var r=dg();r.width="450px",this.dialog.open(zg,r).afterClosed().subscribe(function(){sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substr(1)),n.authService.startAuthentication()})}e=this.initAuthService.isServiceAccess()?e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}});var a=this.apiRequestConfiguration.shouldHandleError(),o="POST"===e.method&&!this.store.skipOidc()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,Ve.b)(function(e){e instanceof ee.Zn&&o&&n.initAuthService.loadPrincipal()},function(t){var i=n.formatErrors(t,e);return void 0===i?(0,Up._)(t):a?void n.notificator.showRPCError(i):(0,Up._)(i)}))}},{key:"isCallToPerunApi",value:function(e){return e.startsWith(this.store.get("api_url"))}},{key:"formatErrors",value:function(e,t){var n;if(console.error(e),e.error.errorId?n=e.error:e.errorId&&(n=JSON.parse(e.error)),void 0!==n)return n.urlWithParams=t.urlWithParams,n.call=t.url,n.payload=t.body,n}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(Yl),a.LFG(Og),a.LFG(xg),a.LFG(tr),a.LFG(Dl),a.LFG(Sg))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}(),Dg=function(){var e=function(){function e(){_classCallCheck(this,e),this.notificationData=[],this.newNotificationsCount=0}return _createClass(e,[{key:"storeNotification",value:function(e){this.newNotificationsCount++,this.notificationData.push(e)}},{key:"getNotifications",value:function(){return this.notificationData.reverse()}},{key:"clearNotifications",value:function(){this.notificationData=[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Pg=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this.http=t,this.notificator=n,this.authService=i,this.storeService=r}return _createClass(e,[{key:"getApiUrl",value:function(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}},{key:"formatErrors",value:function(e,t,n,i){var r=e.error;return r.call=t,r.payload=n,i&&this.notificator.showRPCError(e.error),(0,Up._)(r)}},{key:"getHeaders",value:function(){var e=new ee.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue())}},{key:"get",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i="".concat(this.getApiUrl()).concat(e);return this.http.get(i,{headers:this.getHeaders()}).pipe((0,Be.K)(function(e){return t.formatErrors(e,i,null,n)}))}},{key:"put",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r="".concat(this.getApiUrl()).concat(e),a=JSON.stringify(n);return this.http.put(r,a,{headers:this.getHeaders()}).pipe((0,Be.K)(function(e){return t.formatErrors(e,r,a,i)}))}},{key:"post",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r="".concat(this.getApiUrl()).concat(e),a=JSON.stringify(n),o=this.getHeaders();return o=o.set("Content-Type","application/json; charset=utf-8"),this.http.post(r,a,{headers:o}).pipe((0,Be.K)(function(e){return t.formatErrors(e,r,a,i)}))}},{key:"delete",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i="".concat(this.getApiUrl()).concat(e);return this.http.delete(i,{headers:this.getHeaders()}).pipe((0,Be.K)(function(e){return t.formatErrors(e,i,null,n)}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(ee.eN),a.LFG(xg),a.LFG(Yl),a.LFG(tr))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Ng=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"isAllSelectedWithDisabledCheckbox",value:function(e,t,n,i,r,a,o,s){var c=this;return this.numSelected=e,this.numCanBeSelected=0,this.pageStart=r*n,this.pageEnd=this.pageStart+n,this.pageIterator=0,this.dataLength=""===t?a.data.length:a.filteredData.length,i||(this.modulo=this.dataLength%n,this.pageEnd=0===this.modulo?this.pageStart+n:this.pageStart+this.modulo),a.sortData(a.filteredData,o).forEach(function(e){c.pageStart<=c.pageIterator&&c.pageIterator closed",[Xo(".3s ease-in")])]);var Bg=Go("flyInOut",[ts(":enter",[Qo({transform:"translateX(100%)"}),Xo(".25s")]),ts(":leave",[Xo(".5s",Qo({transform:"translateX(100%)"}))])]);Go("rollInOut",[ts(":enter",[Qo({height:"0px"}),Xo(".25s")]),ts(":leave",[Xo(".25s",Qo({height:"0px"}))])]),Go("routeAnimations",[ts("* => *",[Qo({position:"relative"}),is(":enter",[Qo({width:"100%",opacity:0})],{optional:!0}),is(":leave",[Qo({position:"absolute",width:"100%",opacity:1}),Xo("0.15s",Qo({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),is(":enter",[Qo({position:"absolute",width:"100%",opacity:0}),Xo("0.15s",Qo({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),Go("tagsOpenClose",[$o("open",Qo({})),$o("closed",Qo({width:"0px",height:"0px"})),ts("open <=> closed",[Xo(".3s ease-in")])]),Go("switchAnimations",[ts("true => false",[is(":enter, :leave",Qo({})),Vo([is(":enter",[Qo({transform:"translateX(-100%)"}),Xo("1s ease-in-out",Qo({transform:"translateX(0%)"}))],{optional:!0}),is(":leave",[Qo({transform:"translateX(0%)",position:"absolute"}),Xo("1s ease-in-out",Qo({transform:"translateX(100%)"}))],{optional:!0})])]),ts("false => true",[is(":enter, :leave",Qo({})),Vo([is(":enter",[Qo({transform:"translateX(100%)"}),Xo("1s ease-in-out",Qo({transform:"translateX(0%)"}))],{optional:!0}),is(":leave",[Qo({transform:"translateX(0%)",position:"absolute"}),Xo("1s ease-in-out",Qo({transform:"translateX(-100%)"}))],{optional:!0})])])]),Go("slideInOutLeft",[ts(":enter",[Qo({transform:"translateX(-100%)",position:"relative"}),Xo("0.5s ease-in",Qo({transform:"translateX(0%)"}))]),ts(":leave",[Xo("0.5s ease-in",Qo({transform:"translateX(-100%)"}))])]),Go("slideInOutRight",[ts(":enter",[Qo({transform:"translateX(100%)",position:"fixed"}),Xo("0.5s ease-in",Qo({transform:"translateX(0%)"}))]),ts(":leave",[Qo({transform:"translateX(-100%)",position:"relative"}),Xo("0.5s ease-in",Qo({transform:"translateX(100%)"}))])]);var Hg,Yg,jg=((Hg=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Hg)},Hg.\u0275mod=a.oAB({type:Hg}),Hg.\u0275inj=a.cJS({imports:[[r.ez]]}),Hg),Fg=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e){var t="";return null!==e.titleBefore&&(t+=e.titleBefore+" "),null!==e.firstName&&(t+=e.firstName+" "),null!==e.middleName&&(t+=e.middleName+" "),null!==e.lastName&&(t+=e.lastName+" "),null!==e.titleAfter&&(t+=e.titleAfter+" "),t.endsWith(" ")&&(t=t.substring(0,t.length-1)),t}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=a.Yjl({name:"userFullName",type:e,pure:!0}),e}(),Wg=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.translate=t,this.storage=n}return _createClass(e,[{key:"transform",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en",n=this.storage.get("custom_labels");if(n)for(var i=Object.keys(n),r=0,a=i;r3&&void 0!==arguments[3]?arguments[3]:500;return function(r){return Dr(i).pipe((0,Oe.w)(function(){return n.dontHandleErrorForNext(),e&&"No namespace"!==e?t.checkPasswordStrength(r.value,e):(0,_e.of)(null)}),(0,ze.U)(function(){return null}),(0,Be.K)(function(e){return(0,_e.of)({backendError:e.error.message.substr(e.error.message.indexOf(":")+1)})}))}},Zg=aa({passive:!0}),Gg=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._platform=t,this._ngZone=n,this._monitoredElements=new Map}return _createClass(e,[{key:"monitor",value:function(e){var t=this;if(!this._platform.isBrowser)return Le.E;var n=sr(e),i=this._monitoredElements.get(n);if(i)return i.subject;var r=new ye.xQ,a="cdk-text-field-autofilled",o=function(e){"cdk-text-field-autofill-start"!==e.animationName||n.classList.contains(a)?"cdk-text-field-autofill-end"===e.animationName&&n.classList.contains(a)&&(n.classList.remove(a),t._ngZone.run(function(){return r.next({target:e.target,isAutofilled:!1})})):(n.classList.add(a),t._ngZone.run(function(){return r.next({target:e.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){n.addEventListener("animationstart",o,Zg),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:r,unlisten:function(){n.removeEventListener("animationstart",o,Zg)}}),r}},{key:"stopMonitoring",value:function(e){var t=sr(e),n=this._monitoredElements.get(t);n&&(n.unlisten(),n.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}},{key:"ngOnDestroy",value:function(){var e=this;this._monitoredElements.forEach(function(t,n){return e.stopMonitoring(n)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(ta),a.LFG(a.R0b))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(ta),a.LFG(a.R0b))},token:e,providedIn:"root"}),e}(),Xg=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this._elementRef=t,this._platform=n,this._ngZone=i,this._destroyed=new ye.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._document=r,this._textareaElement=this._elementRef.nativeElement,this._measuringClass=n.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring"}return _createClass(e,[{key:"minRows",get:function(){return this._minRows},set:function(e){this._minRows=ir(e),this._setMinHeight()}},{key:"maxRows",get:function(){return this._maxRows},set:function(e){this._maxRows=ir(e),this._setMaxHeight()}},{key:"enabled",get:function(){return this._enabled},set:function(e){e=nr(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}},{key:"placeholder",get:function(){return this._textareaElement.placeholder},set:function(e){this._cachedPlaceholderHeight=void 0,this._textareaElement.placeholder=e,this._cacheTextareaPlaceholderHeight()}},{key:"_setMinHeight",value:function(){var e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}},{key:"_setMaxHeight",value:function(){var e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(function(){lr(e._getWindow(),"resize").pipe(Nr(16),Ir(e._destroyed)).subscribe(function(){return e.resizeToFitContent(!0)})}),this._isViewInited=!0,this.resizeToFitContent(!0))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_cacheTextareaLineHeight",value:function(){if(!this._cachedLineHeight){var 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,this._textareaElement.parentNode.removeChild(e),this._setMinHeight(),this._setMaxHeight()}}},{key:"_measureScrollHeight",value:function(){this._textareaElement.classList.add(this._measuringClass);var e=this._textareaElement.scrollHeight-4;return this._textareaElement.classList.remove(this._measuringClass),e}},{key:"_cacheTextareaPlaceholderHeight",value:function(){if(this._isViewInited&&null==this._cachedPlaceholderHeight)if(this.placeholder){var e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}else this._cachedPlaceholderHeight=0}},{key:"ngDoCheck",value:function(){this._platform.isBrowser&&this.resizeToFitContent()}},{key:"resizeToFitContent",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._enabled&&(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),this._cachedLineHeight)){var n=this._elementRef.nativeElement,i=n.value;if(t||this._minRows!==this._previousMinRows||i!==this._previousValue){var r=this._measureScrollHeight(),a=Math.max(r,this._cachedPlaceholderHeight||0);n.style.height="".concat(a,"px"),this._ngZone.runOutsideAngular(function(){"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(function(){return e._scrollToCaretPosition(n)}):setTimeout(function(){return e._scrollToCaretPosition(n)})}),this._previousValue=i,this._previousMinRows=this._minRows}}}},{key:"reset",value:function(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}},{key:"_noopInputHandler",value:function(){}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollToCaretPosition",value:function(e){var t=e.selectionStart,n=e.selectionEnd,i=this._getDocument();this._destroyed.isStopped||i.activeElement!==e||e.setSelectionRange(t,n)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(ta),a.Y36(a.R0b),a.Y36(r.K0,8))},e.\u0275dir=a.lG2({type:e,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&a.NdJ("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),e}(),Vg=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[na]]}),e}(),Jg=new a.OlP("MAT_INPUT_VALUE_ACCESSOR"),Qg=["button","checkbox","file","hidden","image","radio","range","reset","submit"],$g=0,em=Pu(function e(t,n,i,r){_classCallCheck(this,e),this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}),tm=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o,s,c,u,l,h){var d;_classCallCheck(this,n),(d=t.call(this,s,a,o,r))._elementRef=e,d._platform=i,d.ngControl=r,d._autofillMonitor=u,d._formField=h,d._uid="mat-input-"+$g++,d.focused=!1,d.stateChanges=new ye.xQ,d.controlType="mat-input",d.autofilled=!1,d._disabled=!1,d._required=!1,d._type="text",d._readonly=!1,d._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(e){return ra().has(e)});var f=d._elementRef.nativeElement,p=f.nodeName.toLowerCase();return d._inputValueAccessor=c||f,d._previousNativeValue=d.value,d.id=d.id,i.IOS&&l.runOutsideAngular(function(){e.nativeElement.addEventListener("keyup",function(e){var t=e.target;t.value||0!==t.selectionStart||0!==t.selectionEnd||(t.setSelectionRange(1,1),t.setSelectionRange(0,0))})}),d._isServer=!d._platform.isBrowser,d._isNativeSelect="select"===p,d._isTextarea="textarea"===p,d._isNativeSelect&&(d.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select"),d}return _createClass(n,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(e){this._disabled=nr(e),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=nr(e)}},{key:"type",get:function(){return this._type},set:function(e){this._type=e||"text",this._validateType(),!this._isTextarea&&ra().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(e){this._readonly=nr(e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(t){e.autofilled=t.isAutofilled,e.stateChanges.next()})}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_focusChanged",value:function(e){e===this.focused||this.readonly&&e||(this.focused=e,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var e,t,n=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(n!==this._previousPlaceholder){var i=this._elementRef.nativeElement;this._previousPlaceholder=n,n?i.setAttribute("placeholder",n):i.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}},{key:"_validateType",value:function(){Qg.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var 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}},{key:"setDescribedByIds",value:function(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}}]),n}(em);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(ta),a.Y36(Od,10),a.Y36(sf,8),a.Y36(yf,8),a.Y36(Zu),a.Y36(Jg,10),a.Y36(Gg),a.Y36(a.R0b),a.Y36(ed,8))},e.\u0275dir=a.lG2({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(e,t){1&e&&a.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(a.Ikx("disabled",t.disabled)("required",t.required),a.uIk("id",t.id)("data-placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),a.ekj("mat-input-server",t._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[a._Bn([{provide:jh,useExisting:e}]),a.qOj,a.TTD]}),e}(),nm=((Yg=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Yg)},Yg.\u0275mod=a.oAB({type:Yg}),Yg.\u0275inj=a.cJS({providers:[Zu],imports:[[Vg,nd,zu],Vg,nd]}),Yg);function im(e,t){1&e&&(a.TgZ(0,"mat-icon",2),a._uU(1," info "),a.qZA())}function rm(e,t){1&e&&(a.TgZ(0,"mat-icon",2),a._uU(1," warning "),a.qZA())}function am(e,t){1&e&&(a.TgZ(0,"mat-icon",2),a._uU(1," dangerous "),a.qZA())}function om(e,t){1&e&&(a.TgZ(0,"mat-icon",2),a._uU(1," check_circle "),a.qZA())}var sm=["*"],cm=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.Xpm({type:e,selectors:[["app-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:sm,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&&(a.F$t(),a.TgZ(0,"div",0),a.YNc(1,im,2,0,"mat-icon",1),a.YNc(2,rm,2,0,"mat-icon",1),a.YNc(3,am,2,0,"mat-icon",1),a.YNc(4,om,2,0,"mat-icon",1),a.Hsn(5),a.qZA()),2&e&&(a.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),a.xp6(1),a.Q6J("ngIf","info"===t.alert_type),a.xp6(1),a.Q6J("ngIf","warn"===t.alert_type),a.xp6(1),a.Q6J("ngIf","error"===t.alert_type),a.xp6(1),a.Q6J("ngIf","success"===t.alert_type))},directives:[r.O5,sg],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:grey;text-align:left;border:1px solid #b3b3b3;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px solid #ececec;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 solid #fedcda;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px solid #d7ffd7;border-radius:10px;background-color:#d7ffd7}"]}),e}();function um(e,t){if(1&e&&(a.O4$(),a._UZ(0,"circle",3)),2&e){var n=a.oxw();a.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+n._spinnerAnimationLabel)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),a.uIk("r",n._getCircleRadius())}}function lm(e,t){if(1&e&&(a.O4$(),a._UZ(0,"circle",3)),2&e){var n=a.oxw();a.Udp("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),a.uIk("r",n._getCircleRadius())}}function hm(e,t){if(1&e&&(a.O4$(),a._UZ(0,"circle",3)),2&e){var n=a.oxw();a.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+n._spinnerAnimationLabel)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),a.uIk("r",n._getCircleRadius())}}function dm(e,t){if(1&e&&(a.O4$(),a._UZ(0,"circle",3)),2&e){var n=a.oxw();a.Udp("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),a.uIk("r",n._getCircleRadius())}}var fm,pm=".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:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[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-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation: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)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n",gm=xu(function e(t){_classCallCheck(this,e),this._elementRef=t},"primary"),mm=new a.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),vm=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o){var s;_classCallCheck(this,n),(s=t.call(this,e))._elementRef=e,s._document=r,s._diameter=100,s._value=0,s._fallbackAnimation=!1,s.mode="determinate";var c=n._diameters;return s._spinnerAnimationLabel=s._getSpinnerAnimationLabel(),c.has(r.head)||c.set(r.head,new Set([100])),s._fallbackAnimation=i.EDGE||i.TRIDENT,s._noopAnimations="NoopAnimations"===a&&!!o&&!o._forceAnimations,o&&(o.diameter&&(s.diameter=o.diameter),o.strokeWidth&&(s.strokeWidth=o.strokeWidth)),s}return _createClass(n,[{key:"diameter",get:function(){return this._diameter},set:function(e){this._diameter=ir(e),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(e){this._strokeWidth=ir(e)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(e){this._value=Math.max(0,Math.min(100,ir(e)))}},{key:"ngOnInit",value:function(){var e=this._elementRef.nativeElement;this._styleRoot=ca(e)||this._document.head,this._attachStyleNode(),e.classList.add("mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation"))}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var e=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(e," ").concat(e)}},{key:"_getStrokeCircumference",value:function(){return 2*Math.PI*this._getCircleRadius()}},{key:"_getStrokeDashOffset",value:function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}},{key:"_getCircleStrokeWidth",value:function(){return this.strokeWidth/this.diameter*100}},{key:"_attachStyleNode",value:function(){var e=this._styleRoot,t=this._diameter,i=n._diameters,r=i.get(e);if(!r||!r.has(t)){var a=this._document.createElement("style");a.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),a.textContent=this._getAnimationText(),e.appendChild(a),r||(r=new Set,i.set(e,r)),r.add(t)}}},{key:"_getAnimationText",value:function(){var e=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*e).replace(/END_VALUE/g,""+.2*e).replace(/DIAMETER/g,"".concat(this._spinnerAnimationLabel))}},{key:"_getSpinnerAnimationLabel",value:function(){return this.diameter.toString().replace(".","_")}}]),n}(gm);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(ta),a.Y36(r.K0,8),a.Y36(_u,8),a.Y36(mm))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(e,t){2&e&&(a.uIk("aria-valuemin","determinate"===t.mode?0:null)("aria-valuemax","determinate"===t.mode?100:null)("aria-valuenow","determinate"===t.mode?t.value:null)("mode",t.mode),a.Udp("width",t.diameter,"px")("height",t.diameter,"px"),a.ekj("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[a.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(a.O4$(),a.TgZ(0,"svg",0),a.YNc(1,um,1,9,"circle",1),a.YNc(2,lm,1,7,"circle",2),a.qZA()),2&e&&(a.Udp("width",t.diameter,"px")("height",t.diameter,"px"),a.Q6J("ngSwitch","indeterminate"===t.mode),a.uIk("viewBox",t._getViewBox()),a.xp6(1),a.Q6J("ngSwitchCase",!0),a.xp6(1),a.Q6J("ngSwitchCase",!1))},directives:[r.RF,r.n9],styles:[pm],encapsulation:2,changeDetection:0}),e._diameters=new WeakMap,e}(),_m=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o){var s;return _classCallCheck(this,n),(s=t.call(this,e,i,r,a,o)).mode="indeterminate",s}return n}(vm);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(ta),a.Y36(r.K0,8),a.Y36(_u,8),a.Y36(mm))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,t){2&e&&(a.Udp("width",t.diameter,"px")("height",t.diameter,"px"),a.ekj("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color"},features:[a.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(a.O4$(),a.TgZ(0,"svg",0),a.YNc(1,hm,1,9,"circle",1),a.YNc(2,dm,1,7,"circle",2),a.qZA()),2&e&&(a.Udp("width",t.diameter,"px")("height",t.diameter,"px"),a.Q6J("ngSwitch","indeterminate"===t.mode),a.uIk("viewBox",t._getViewBox()),a.xp6(1),a.Q6J("ngSwitchCase",!0),a.xp6(1),a.Q6J("ngSwitchCase",!1))},directives:[r.RF,r.n9],styles:[pm],encapsulation:2,changeDetection:0}),e}(),ym=((fm=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||fm)},fm.\u0275mod=a.oAB({type:fm}),fm.\u0275inj=a.cJS({imports:[[zu,r.ez],zu]}),fm);function bm(e,t){1&e&&a._UZ(0,"mat-spinner",12),2&e&&a.Q6J("diameter",18)}function Am(e,t){if(1&e&&(a.TgZ(0,"mat-icon",13),a._uU(1," error "),a.qZA()),2&e){var n=a.oxw();a.Q6J("matTooltip",n.getErrorTooltip())("matTooltipDisabled",!n.formGroup.get("passwordCtrl").hasError("backendError"))}}function wm(e,t){1&e&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function km(e,t){if(1&e&&(a.TgZ(0,"mat-error",14),a._uU(1),a.qZA()),2&e){var n=a.oxw();a.Q6J("matTooltip",n.getErrorTooltip()),a.xp6(1),a.Oqu(n.getErrorTooltip())}}function Mm(e,t){1&e&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function Cm(e,t){1&e&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}var Tm=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.translator=t,this.usersManagerService=n,this.store=i,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.multiLanguage=!1,this.language="en",this.allPasswordRequirements=this.store.get("password_requirements_help"),this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new Ug}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(function(t){var n=t.userAttributes.find(function(e){return"preferredLanguage"===e.friendlyName});e.language=n&&n.value?n.value.toString():"en","en"!==e.language&&(e.allPasswordRequirements=e.store.get("password_requirements_help_".concat(e.language))),e.changeHelp()}):this.changeHelp()}},{key:"ngOnChanges",value:function(){this.allPasswordRequirements=this.store.get("en"!==this.language?"password_requirements_help_".concat(this.language):"password_requirements_help"),this.changeHelp()}},{key:"getPasswordDisabledTooltip",value:function(){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")}},{key:"getErrorTooltip",value:function(){var e=this.formGroup.get("passwordCtrl").getError("backendError");return e&&(e=e.replace(":null","")),e}},{key:"changeHelp",value:function(){var e=this;this.passwordRequirement=this.allPasswordRequirements.find(function(t){return t.split(":")[0]===e.namespace}),this.passwordRequirement=void 0===this.passwordRequirement?this.allPasswordRequirements.find(function(e){return"default"===e.split(":")[0]}).split(/:(.+)/)[1]:this.passwordRequirement.split(/:(.+)/)[1]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(lh),a.Y36(he),a.Y36(tr))},e.\u0275cmp=a.Xpm({type:e,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",namespace:"namespace",multiLanguage:"multiLanguage",language:"language"},features:[a.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&&(a.TgZ(0,"div",0),a.TgZ(1,"mat-form-field",1),a._UZ(2,"input",2),a.ALo(3,"translate"),a.YNc(4,bm,1,1,"mat-spinner",3),a.TgZ(5,"mat-icon",4),a.NdJ("click",function(){return t.showNewPassword=!t.showNewPassword}),a._uU(6),a.qZA(),a.YNc(7,Am,2,2,"mat-icon",5),a.YNc(8,wm,3,3,"mat-error",6),a.YNc(9,km,2,2,"mat-error",7),a.qZA(),a.TgZ(10,"mat-form-field",8),a.TgZ(11,"mat-label"),a._uU(12),a.ALo(13,"translate"),a.qZA(),a._UZ(14,"input",9),a.TgZ(15,"mat-icon",4),a.NdJ("click",function(){return t.showPasswordConfirm=!t.showPasswordConfirm}),a._uU(16),a.qZA(),a.YNc(17,Mm,3,3,"mat-error",6),a.YNc(18,Cm,3,3,"mat-error",6),a.qZA(),a.TgZ(19,"app-alert",10),a._UZ(20,"div",11),a.qZA(),a.qZA()),2&e&&(a.Q6J("formGroup",t.formGroup),a.xp6(1),a.Q6J("matTooltip",t.getPasswordDisabledTooltip())("matTooltipDisabled",t.formGroup.get("passwordCtrl").enabled),a.xp6(1),a.s9C("placeholder",a.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),a.Q6J("type",t.showNewPassword?"text":"password")("required",t.passwordRequired)("errorStateMatcher",t.passwordStateMatcher),a.xp6(2),a.Q6J("ngIf",t.formGroup.get("passwordCtrl").pending),a.xp6(2),a.hij(" ",t.showNewPassword?"visibility_off":"visibility"," "),a.xp6(1),a.Q6J("ngIf",t.formGroup.get("passwordCtrl").dirty&&null!==t.formGroup.get("passwordCtrl").errors),a.xp6(1),a.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("required")),a.xp6(1),a.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("backendError")),a.xp6(3),a.Oqu(a.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),a.xp6(2),a.Q6J("type",t.showPasswordConfirm?"text":"password")("required",t.passwordRequired),a.xp6(2),a.hij(" ",t.showPasswordConfirm?"visibility_off":"visibility"," "),a.xp6(1),a.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("required")),a.xp6(1),a.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),a.xp6(2),a.Q6J("innerHTML",t.passwordRequirement,a.oJD))},directives:[Dd,yf,td,up,tm,cd,Rd,Af,kf,r.O5,sg,Vh,Kh,cm,_m,Hh],pipes:[hh],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right}.error-icon[_ngcontent-%COMP%], .input-spinner[_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;display:block;margin-top:-1px}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple, [_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{position:static!important;display:table}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}"]}),e}();function Lm(e,t){1&e&&a._UZ(0,"mat-spinner",7)}function Sm(e,t){1&e&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function Em(e,t){1&e&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function zm(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",8),a.TgZ(1,"mat-form-field"),a.TgZ(2,"mat-label"),a._uU(3),a.ALo(4,"translate"),a.qZA(),a.TgZ(5,"input",9,10),a.NdJ("ngModelChange",function(e){return a.CHM(n),a.oxw().subject=e}),a.qZA(),a.YNc(7,Sm,3,3,"mat-error",11),a.qZA(),a.TgZ(8,"mat-form-field"),a.TgZ(9,"mat-label"),a._uU(10),a.ALo(11,"translate"),a.qZA(),a.TgZ(12,"textarea",12,13),a.NdJ("ngModelChange",function(e){return a.CHM(n),a.oxw().message=e}),a.ALo(14,"translate"),a._uU(15," "),a.qZA(),a.YNc(16,Em,3,3,"mat-error",11),a.qZA(),a.qZA()}if(2&e){var i=a.MAs(6),r=a.MAs(13),o=a.oxw();a.xp6(3),a.Oqu(a.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),a.xp6(2),a.Q6J("ngModel",o.subject),a.xp6(2),a.Q6J("ngIf",i.invalid),a.xp6(3),a.Oqu(a.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),a.xp6(2),a.s9C("placeholder",a.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),a.Q6J("ngModel",o.message),a.xp6(4),a.Q6J("ngIf",r.invalid)}}var Om=function(){var e=function(){function e(t,n,i,r,a,o){_classCallCheck(this,e),this.dialogRef=t,this.translate=n,this.notificator=i,this.rtMessages=r,this.data=a,this.storeService=o,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}return _createClass(e,[{key:"ngOnInit",value:function(){this.data.error&&this.data.error.errorId&&(this.subject=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE")+this.parseMethod(this.data.error.call)+" ("+this.data.error.errorId+")")}},{key:"sendBugReport",value:function(){var e=this;this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(function(t){e.dialogRef.afterClosed().subscribe(function(){e.notificator.showSuccess(e.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1")+t.ticketNumber+e.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"))}),e.dialogRef.close()},function(){e.loading=!1,e.dialogRef.afterClosed().subscribe(function(){})})}},{key:"getFullEmailBody",value:function(){var e=this.storeService.get("config"),t=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(t=(t=t.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n")).concat(this.data.error.message+"\nPerun instance: "+e+"\nRequest:\n"+this.data.error.urlWithParams+"\n\n"),this.data.error.payload){var i=JSON.stringify(this.data.error.payload);i=i.replace(/"password":".+?"/,'"password":"####"'),t=t.concat("Payload:\n"+i+"\n\n")}return(t=t.concat("Sended from new Perun Gui, version: "+n(306).i8)).split("\n").join("\n ")}},{key:"parseMethod",value:function(e){return e?this.methodRegexp.exec(e)[1]:e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl),a.Y36(lh),a.Y36(xg),a.Y36(ce),a.Y36(El),a.Y36(tr))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.YNc(3,Lm,1,0,"mat-spinner",1),a.YNc(4,zm,17,13,"div",2),a.TgZ(5,"div",3),a.TgZ(6,"div",4),a.TgZ(7,"button",5),a.NdJ("click",function(){return t.dialogRef.close()}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"button",6),a.NdJ("click",function(){return t.sendBugReport()}),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),a.xp6(2),a.Q6J("ngIf",t.loading),a.xp6(1),a.Q6J("ngIf",!t.loading),a.xp6(4),a.hij(" ",a.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),a.xp6(2),a.Q6J("disabled",""===t.message||""===t.subject||t.loading),a.xp6(1),a.hij(" ",a.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},directives:[Nl,r.O5,ql,_h,_m,Il,td,Kh,tm,cd,kf,Rd,lf,Hh],pipes:[hh],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),e}(),xm=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.dialogRef=t,this.dialog=n,this.data=i}return _createClass(e,[{key:"onCloseClick",value:function(){this.dialogRef.close()}},{key:"onBugReportClick",value:function(){var e=this;this.dialogRef.afterClosed().subscribe(function(){var t=dg();t.width="550px",t.data={error:e.data.error},t.autoFocus=!1,e.dialog.open(Om,t)}),this.dialogRef.close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl),a.Y36(Dl),a.Y36(El))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h1",0),a._uU(1),a.qZA(),a.TgZ(2,"div",1),a._uU(3),a.qZA(),a.TgZ(4,"div",2),a.TgZ(5,"div",3),a.TgZ(6,"button",4),a.NdJ("click",function(){return t.onBugReportClick()}),a._uU(7),a.ALo(8,"translate"),a.qZA(),a.TgZ(9,"button",5),a.NdJ("click",function(){return t.onCloseClick()}),a._uU(10),a.ALo(11,"translate"),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(1),a.Oqu(t.data.title),a.xp6(2),a.hij(" ",t.data.description,"\n"),a.xp6(3),a.Q6J("hidden","error"!==t.data.type),a.xp6(1),a.hij(" ",a.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),a.xp6(3),a.hij(" ",a.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},directives:[Nl,Il,ql,_h],pipes:[hh],styles:[""]}),e}(),Rm=[[["caption"]],[["colgroup"],["col"]]],Dm=["caption","colgroup, col"];function Pm(e){return function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck(this,n);for(var i=arguments.length,r=new Array(i),a=0;a4&&void 0!==arguments[4])||arguments[4],o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],s=arguments.length>6?arguments[6]:void 0;_classCallCheck(this,e),this._isNativeHtmlTable=t,this._stickCellCss=n,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=a,this._needsPositionStickyOnElement=o,this._positionListener=s,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(n,"-border-elem-top"),bottom:"".concat(n,"-border-elem-bottom"),left:"".concat(n,"-border-elem-left"),right:"".concat(n,"-border-elem-right")}}return _createClass(e,[{key:"clearStickyPositioning",value:function(e,t){var n,i=this,r=[],a=_createForOfIteratorHelper(e);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(o.nodeType===o.ELEMENT_NODE){r.push(o);for(var s=0;s3&&void 0!==arguments[3])||arguments[3];if(e.length&&this._isBrowser&&(t.some(function(e){return e})||n.some(function(e){return e}))){var a=e[0],o=a.children.length,s=this._getCellWidths(a,r),c=this._getStickyStartColumnPositions(s,t),u=this._getStickyEndColumnPositions(s,n),l=t.lastIndexOf(!0),h=n.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var r,a="rtl"===i.direction,d=a?"right":"left",f=a?"left":"right",p=_createForOfIteratorHelper(e);try{for(p.s();!(r=p.n()).done;)for(var g=r.value,m=0;m1&&void 0!==arguments[1])||arguments[1];if(!t&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var n=[],i=e.children,r=0;r0;r--)t[r]&&(n[r]=i,i+=e[r]);return n}}]),e}(),ov=new a.OlP("CDK_SPL"),sv=function(){var e=function e(t,n){_classCallCheck(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.s_b),a.Y36(a.SBq))},e.\u0275dir=a.lG2({type:e,selectors:[["","rowOutlet",""]]}),e}(),cv=function(){var e=function e(t,n){_classCallCheck(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.s_b),a.Y36(a.SBq))},e.\u0275dir=a.lG2({type:e,selectors:[["","headerRowOutlet",""]]}),e}(),uv=function(){var e=function e(t,n){_classCallCheck(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.s_b),a.Y36(a.SBq))},e.\u0275dir=a.lG2({type:e,selectors:[["","footerRowOutlet",""]]}),e}(),lv=function(){var e=function e(t,n){_classCallCheck(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.s_b),a.Y36(a.SBq))},e.\u0275dir=a.lG2({type:e,selectors:[["","noDataRowOutlet",""]]}),e}(),hv=function(){var e=function(){function e(t,n,i,r,a,o,s,c,u,l,h){_classCallCheck(this,e),this._differs=t,this._changeDetectorRef=n,this._elementRef=i,this._dir=a,this._platform=s,this._viewRepeater=c,this._coalescedStyleScheduler=u,this._viewportRuler=l,this._stickyPositioningListener=h,this._onDestroy=new ye.xQ,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.viewChange=new Ae({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=o,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return _createClass(e,[{key:"trackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"dataSource",get:function(){return this._dataSource},set:function(e){this._dataSource!==e&&this._switchDataSource(e)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(e){this._multiTemplateDataRows=nr(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(e){this._fixedLayout=nr(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}},{key:"ngOnInit",value:function(){var e=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(t,n){return e.trackBy?e.trackBy(n.dataIndex,n.data):n}),this._viewportRuler.change().pipe(Ir(this._onDestroy)).subscribe(function(){e._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var 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()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),fa(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var e=this;this._renderRows=this._getAllRenderRows();var t=this._dataDiffer.diff(this._renderRows);if(t){var n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,n,function(t,n,i){return e._getEmbeddedViewArgs(t.item,i)},function(e){return e.item.data},function(t){1===t.operation&&t.context&&e._renderCellTemplateForItem(t.record.item.rowDef,t.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(function(e){n.get(e.currentIndex).context.$implicit=e.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}else this._updateNoDataRow()}},{key:"addColumnDef",value:function(e){this._customColumnDefs.add(e)}},{key:"removeColumnDef",value:function(e){this._customColumnDefs.delete(e)}},{key:"addRowDef",value:function(e){this._customRowDefs.add(e)}},{key:"removeRowDef",value:function(e){this._customRowDefs.delete(e)}},{key:"addHeaderRowDef",value:function(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(e){this._customNoDataRow=e}},{key:"updateStickyHeaderRowStyles",value:function(){var e=this._getRenderedRows(this._headerRowOutlet),t=this._elementRef.nativeElement.querySelector("thead");t&&(t.style.display=e.length?"":"none");var n=this._headerRowDefs.map(function(e){return e.sticky});this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,n,"top"),this._headerRowDefs.forEach(function(e){return e.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var e=this._getRenderedRows(this._footerRowOutlet),t=this._elementRef.nativeElement.querySelector("tfoot");t&&(t.style.display=e.length?"":"none");var n=this._footerRowDefs.map(function(e){return e.sticky});this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(function(e){return e.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var e=this,t=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(_toConsumableArray(t),_toConsumableArray(n),_toConsumableArray(i)),["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach(function(t,n){e._addStickyColumnStyles([t],e._headerRowDefs[n])}),this._rowDefs.forEach(function(t){for(var i=[],r=0;r0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(t,n){return e._renderRow(e._headerRowOutlet,t,n)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var e=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(t,n){return e._renderRow(e._footerRowOutlet,t,n)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(e,t){var n=this,i=Array.from(t.columns||[]).map(function(e){return n._columnDefsByName.get(e)}),r=i.map(function(e){return e.sticky}),a=i.map(function(e){return e.stickyEnd});this._stickyStyler.updateStickyColumns(e,r,a,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(e){for(var t=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:{},r=e.viewContainer.createEmbeddedView(t.template,i,n);return this._renderCellTemplateForItem(t,i),r}},{key:"_renderCellTemplateForItem",value:function(e,t){var n,i=_createForOfIteratorHelper(this._getCellTemplates(e));try{for(i.s();!(n=i.n()).done;){var r=n.value;ev.mostRecentCellOutlet&&ev.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,t)}}catch(a){i.e(a)}finally{i.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var e=this._rowOutlet.viewContainer,t=0,n=e.length;t0&&void 0!==arguments[0]?arguments[0]:[];return _classCallCheck(this,n),(e=t.call(this))._renderData=new Ae([]),e._filter=new Ae(""),e._internalPageChanges=new ye.xQ,e._renderChangesSubscription=null,e.sortingDataAccessor=function(e,t){var n=e[t];if(rr(n)){var i=Number(n);return i<9007199254740991?i:n}return n},e.sortData=function(t,n){var i=n.active,r=n.direction;return i&&""!=r?t.sort(function(t,n){var a=e.sortingDataAccessor(t,i),o=e.sortingDataAccessor(n,i),s=typeof a,c=typeof o;s!==c&&("number"===s&&(a+=""),"number"===c&&(o+=""));var u=0;return null!=a&&null!=o?a>o?u=1:a0)){var i=Math.ceil(n.length/n.pageSize)-1||0,r=Math.min(n.pageIndex,i);r!==n.pageIndex&&(n.pageIndex=r,t._internalPageChanges.next())}})}},{key:"connect",value:function(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}},{key:"disconnect",value:function(){var e;null===(e=this._renderChangesSubscription)||void 0===e||e.unsubscribe(),this._renderChangesSubscription=null}}]),n}(function(){return function e(){_classCallCheck(this,e)}}()));function Ev(e,t){1&e&&a._UZ(0,"mat-spinner",3)}function zv(e,t){1&e&&a._UZ(0,"th",15)}function Ov(e,t){if(1&e&&(a.TgZ(0,"td",16),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.hij(" ",n.userExtSource.extSource.name," ")}}function xv(e,t){1&e&&a._UZ(0,"tr",17)}function Rv(e,t){1&e&&a._UZ(0,"tr",18)}function Dv(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div"),a.TgZ(1,"div",4),a.TgZ(2,"p"),a._uU(3),a.ALo(4,"translate"),a.ALo(5,"customTranslate"),a.qZA(),a.TgZ(6,"div",5),a._uU(7),a.ALo(8,"translate"),a.ALo(9,"customTranslate"),a.qZA(),a.TgZ(10,"table",6),a.ynx(11,7),a.YNc(12,zv,1,0,"th",8),a.YNc(13,Ov,2,1,"td",9),a.BQk(),a.YNc(14,xv,1,0,"tr",10),a.YNc(15,Rv,1,0,"tr",11),a.qZA(),a.qZA(),a.TgZ(16,"div",12),a.TgZ(17,"button",13),a.NdJ("click",function(){return a.CHM(n),a.oxw().onCancel()}),a._uU(18),a.ALo(19,"translate"),a.ALo(20,"customTranslate"),a.qZA(),a.TgZ(21,"button",14),a.NdJ("click",function(){return a.CHM(n),a.oxw().onSubmit()}),a._uU(22),a.ALo(23,"translate"),a.ALo(24,"customTranslate"),a.qZA(),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.xp6(3),a.hij(" ",a.lcZ(4,7,a.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),a.xp6(4),a.hij(" ",a.lcZ(8,11,a.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),a.xp6(3),a.Q6J("dataSource",i.dataSource),a.xp6(4),a.Q6J("matHeaderRowDef",i.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",i.displayedColumns),a.xp6(3),a.hij(" ",a.lcZ(19,15,a.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),a.xp6(4),a.hij(" ",a.lcZ(23,19,a.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}var Pv,Nv=function(){var e=function(){function e(t,n,i,r,a){var o=this;_classCallCheck(this,e),this.dialogRef=t,this.data=n,this.usersManagerService=i,this.translate=r,this.notificator=a,this.force=!1,this.displayedColumns=["name"],r.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(function(e){return o.successMessage=e})}return _createClass(e,[{key:"ngOnInit",value:function(){this.theme=this.data.theme,this.dataSource=new Sv(this.data.extSources)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,this.data.extSources.length?this.usersManagerService.removeUserExtSource(this.data.userId,this.data.extSources.pop().userExtSource.id,this.force).subscribe(function(){e.onSubmit()},function(){return e.loading=!1}):(this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl),a.Y36(El),a.Y36(he),a.Y36(lh),a.Y36(xg))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA(),a.TgZ(4,"div"),a.YNc(5,Ev,1,0,"mat-spinner",1),a.YNc(6,Dv,25,23,"div",2),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,6,a.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE")),"\n"),a.xp6(3),a.Tol(t.theme),a.xp6(1),a.Q6J("ngIf",t.loading),a.xp6(1),a.Q6J("ngIf",!t.loading))},directives:[Nl,r.O5,_m,Il,vv,bv,yv,_v,kv,Mv,ql,_h,Av,wv,Cv,Tv],pipes:[hh,Wg],styles:[""]}),e}(),Iv=function(){function e(t,n){_classCallCheck(this,e),this._document=n;var i=this._textarea=this._document.createElement("textarea"),r=i.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",i.setAttribute("aria-hidden","true"),i.value=t,this._document.body.appendChild(i)}return _createClass(e,[{key:"copy",value:function(){var e=this._textarea,t=!1;try{if(e){var n=this._document.activeElement;e.select(),e.setSelectionRange(0,e.value.length),t=this._document.execCommand("copy"),n&&n.focus()}}catch(_E){}return t}},{key:"destroy",value:function(){var e=this._textarea;e&&(e.parentNode&&e.parentNode.removeChild(e),this._textarea=void 0)}}]),e}(),qv=function(){var e=function(){function e(t){_classCallCheck(this,e),this._document=t}return _createClass(e,[{key:"copy",value:function(e){var t=this.beginCopy(e),n=t.copy();return t.destroy(),n}},{key:"beginCopy",value:function(e){return new Iv(e,this._document)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(r.K0))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(r.K0))},token:e,providedIn:"root"}),e}(),Bv=new a.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG"),Hv=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._clipboard=t,this._ngZone=n,this.text="",this.attempts=1,this.copied=new a.vpe,this._pending=new Set,i&&null!=i.attempts&&(this.attempts=i.attempts)}return _createClass(e,[{key:"copy",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.attempts;if(t>1){var n=t,i=this._clipboard.beginCopy(this.text);this._pending.add(i);var r=function t(){var r=i.copy();r||!--n||e._destroyed?(e._currentTimeout=null,e._pending.delete(i),i.destroy(),e.copied.emit(r)):e._currentTimeout=e._ngZone.runOutsideAngular(function(){return setTimeout(t,1)})};r()}else this.copied.emit(this._clipboard.copy(this.text))}},{key:"ngOnDestroy",value:function(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(function(e){return e.destroy()}),this._pending.clear(),this._destroyed=!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(qv),a.Y36(a.R0b),a.Y36(Bv,8))},e.\u0275dir=a.lG2({type:e,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(e,t){1&e&&a.NdJ("click",function(){return t.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),e}(),Yv=((Pv=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Pv)},Pv.\u0275mod=a.oAB({type:Pv}),Pv.\u0275inj=a.cJS({}),Pv),jv=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.dialogRef=t,this.data=n}return _createClass(e,[{key:"ngOnInit",value:function(){this.value=this.data.value,this.title=this.data.title}},{key:"onCancel",value:function(){this.dialogRef.close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl),a.Y36(El))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h1",0),a._uU(1),a.qZA(),a.TgZ(2,"div",1),a.TgZ(3,"textarea",2),a._uU(4),a.qZA(),a.qZA(),a.TgZ(5,"div",3),a.TgZ(6,"button",4),a.NdJ("click",function(){return t.onCancel()}),a._uU(7),a.ALo(8,"translate"),a.qZA(),a.TgZ(9,"button",5),a._uU(10),a.ALo(11,"translate"),a.qZA(),a.qZA()),2&e&&(a.xp6(1),a.Oqu(t.title),a.xp6(3),a.Oqu(t.value),a.xp6(3),a.hij(" ",a.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),a.xp6(2),a.Q6J("cdkCopyToClipboard",t.value),a.xp6(1),a.hij(" ",a.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},directives:[Nl,Il,Xg,tm,ql,_h,Hv],pipes:[hh],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),e}(),Fv=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.dialogRef=t,this.data=n,this.attributeValue=""}return _createClass(e,[{key:"ngOnInit",value:function(){this.attributeValue=this.data.attribute.value[this.data.index]}},{key:"cancel",value:function(){this.dialogRef.close()}},{key:"submit",value:function(){this.data.attribute.value[this.data.index]=this.attributeValue,this.dialogRef.close(!0)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl),a.Y36(El))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h5",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.TgZ(4,"mat-form-field"),a.TgZ(5,"textarea",2),a.NdJ("ngModelChange",function(e){return t.attributeValue=e}),a.qZA(),a.qZA(),a.qZA(),a.TgZ(6,"div",3),a.TgZ(7,"button",4),a.NdJ("click",function(){return t.cancel()}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"button",5),a.NdJ("click",function(){return t.submit()}),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE"),"\n"),a.xp6(4),a.Q6J("ngModel",t.attributeValue),a.xp6(3),a.hij(" ",a.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),a.xp6(3),a.hij(" ",a.lcZ(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},directives:[Nl,Il,td,Xg,tm,cd,Rd,lf,ql,_h],pipes:[hh],styles:[""]}),e}(),Wv=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.dialogRef=t,this.data=n}return _createClass(e,[{key:"cancel",value:function(){this.dialogRef.close()}},{key:"submit",value:function(){this.dialogRef.close(!0)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl),a.Y36(El))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h5",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.TgZ(4,"div"),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.TgZ(7,"div",2),a._uU(8),a.qZA(),a.qZA(),a.TgZ(9,"div",3),a.TgZ(10,"button",4),a.NdJ("click",function(){return t.cancel()}),a._uU(11),a.ALo(12,"translate"),a.qZA(),a.TgZ(13,"button",5),a.NdJ("click",function(){return t.submit()}),a._uU(14),a.ALo(15,"translate"),a.qZA(),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE"),"\n"),a.xp6(4),a.hij(" ",a.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),a.xp6(3),a.hij(" ",t.data.name," "),a.xp6(3),a.hij(" ",a.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),a.xp6(3),a.hij(" ",a.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},directives:[Nl,Il,ql,_h],pipes:[hh],styles:[""]}),e}();function Uv(e,t){if(1&e&&(a.TgZ(0,"app-alert",9),a._uU(1),a.qZA()),2&e){var n=a.oxw();a.xp6(1),a.Oqu(n.pendingEmailsMessage)}}function Kv(e,t){1&e&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,a.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}var Zv=function(){var e=function(){function e(t,n,i,r,a,o){var s=this;_classCallCheck(this,e),this.dialogRef=t,this.data=n,this.translate=i,this.notificator=r,this.usersManagerService=a,this.authService=o,this.pendingMails=[],i.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(function(e){return s.successMessage=e}),i.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(function(e){return s.pendingEmailsMessageStart=e}),i.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(function(e){return s.pendingEmailsMessageEnd=e})}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.emailControl=new tf(null,[pd.required,pd.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(function(t){e.pendingMails=t.filter(function(e,t,n){return t===n.indexOf(e)});var n="";e.pendingMails.forEach(function(t){return n+="".concat(t===e.pendingMails[0]?"":", ").concat(t)}),console.log(n),e.pendingEmailsMessage=e.pendingEmailsMessageStart+n+e.pendingEmailsMessageEnd})}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var e=this,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(function(){e.notificator.showSuccess(e.successMessage),e.dialogRef.close()})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl),a.Y36(El),a.Y36(lh),a.Y36(xg),a.Y36(he),a.Y36(Yl))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA(),a.TgZ(4,"div",1),a.YNc(5,Uv,2,1,"app-alert",2),a.TgZ(6,"mat-form-field",3),a.TgZ(7,"label",3),a._UZ(8,"input",4),a.ALo(9,"translate"),a.ALo(10,"customTranslate"),a.qZA(),a.YNc(11,Kv,4,5,"mat-error",5),a.qZA(),a.qZA(),a.TgZ(12,"div",6),a.TgZ(13,"button",7),a.NdJ("click",function(){return t.onCancel()}),a._uU(14),a.ALo(15,"translate"),a.ALo(16,"customTranslate"),a.qZA(),a.TgZ(17,"button",8),a.NdJ("click",function(){return t.onSubmit()}),a._uU(18),a.ALo(19,"translate"),a.ALo(20,"customTranslate"),a.qZA(),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,8,a.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),a.xp6(4),a.Q6J("ngIf",t.pendingMails.length),a.xp6(3),a.s9C("placeholder",a.lcZ(9,12,a.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),a.Q6J("formControl",t.emailControl),a.xp6(3),a.Q6J("ngIf",t.emailControl.invalid),a.xp6(3),a.hij(" ",a.lcZ(15,16,a.lcZ(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),a.xp6(3),a.Q6J("disabled",!t.emailControl.valid),a.xp6(1),a.hij(" ",a.lcZ(19,20,a.lcZ(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},directives:[Nl,Il,r.O5,td,tm,cd,kf,Rd,vf,ql,_h,cm,Hh],pipes:[hh,Wg],styles:[""]}),e}(),Gv=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.dialogRef=t,this.router=n}return _createClass(e,[{key:"onClose",value:function(){this.router.navigate([]),this.dialogRef.close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl),a.Y36(zi))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.TgZ(4,"app-alert",2),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.qZA(),a.TgZ(7,"div",3),a.TgZ(8,"button",4),a.NdJ("click",function(){return t.onClose()}),a._uU(9),a.ALo(10,"translate"),a.qZA(),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE"),"\n"),a.xp6(4),a.Oqu(a.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),a.xp6(4),a.hij(" ",a.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},directives:[Nl,Il,cm,ql,_h],pipes:[hh],styles:[""]}),e}();function Xv(e,t){1&e&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.FIELD_EMPTY")))}function Vv(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"form",5),a.TgZ(1,"div",6),a.TgZ(2,"mat-form-field"),a.TgZ(3,"mat-label"),a._uU(4),a.ALo(5,"translate"),a.qZA(),a._UZ(6,"input",7),a.TgZ(7,"mat-icon",8),a.NdJ("click",function(){a.CHM(n);var e=a.oxw();return e.showOldPassword=!e.showOldPassword}),a._uU(8),a.qZA(),a.YNc(9,Xv,3,3,"mat-error",9),a.qZA(),a._UZ(10,"perun-web-apps-password-form",10),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.Q6J("formGroup",i.formGroup),a.xp6(4),a.Oqu(a.lcZ(5,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.OLD_PASSWORD")),a.xp6(2),a.Q6J("type",i.showOldPassword?"text":"password"),a.xp6(2),a.hij(" ",i.showOldPassword?"visibility_off":"visibility"," "),a.xp6(1),a.Q6J("ngIf",i.oldPwd.hasError("required")),a.xp6(1),a.Q6J("formGroup",i.formGroup)("namespace",i.data.namespace)}}function Jv(e,t){1&e&&a._UZ(0,"mat-spinner",11)}function Qv(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",12),a.TgZ(1,"div",13),a.TgZ(2,"button",14),a.NdJ("click",function(){return a.CHM(n),a.oxw().close()}),a._uU(3),a.ALo(4,"translate"),a.qZA(),a.TgZ(5,"button",15),a.NdJ("click",function(){return a.CHM(n),a.oxw().changePassword()}),a._uU(6),a.ALo(7,"translate"),a.qZA(),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.xp6(3),a.hij(" ",a.lcZ(4,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CANCEL")," "),a.xp6(2),a.Q6J("disabled",i.formGroup.invalid||i.formGroup.pending),a.xp6(1),a.hij(" ",a.lcZ(7,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CHANGE")," ")}}var $v,e_=function(){var e=function(){function e(t,n,i,r,a,o,s){var c=this;_classCallCheck(this,e),this.dialogRef=t,this.data=n,this._formBuilder=i,this.usersManagerService=r,this.apiRequestConfiguration=a,this.notificator=o,this.translate=s,this.showOldPassword=!1,s.get("SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.SUCCESS").subscribe(function(e){return c.successMessage=e})}return _createClass(e,[{key:"ngOnInit",value:function(){this.formGroup=this._formBuilder.group({oldPasswordCtrl:["",pd.required],passwordCtrl:["",pd.required,[Kg(this.data.namespace,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""]},{validators:Lg.passwordMatchValidator}),this.oldPwd=this.formGroup.get("oldPasswordCtrl"),this.newPwd=this.formGroup.get("passwordCtrl"),this.newPwdAgain=this.formGroup.get("passwordAgainCtrl")}},{key:"close",value:function(){this.dialogRef.close(!1)}},{key:"changePassword",value:function(){var e=this;this.loading=!0,this.usersManagerService.changePasswordForLogin(this.data.login,this.data.namespace,this.newPwd.value,this.oldPwd.value,!0).subscribe(function(){e.notificator.showSuccess(e.successMessage),e.loading=!1,e.dialogRef.close(!0)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl),a.Y36(El),a.Y36(Lf),a.Y36(he),a.Y36(Og),a.Y36(xg),a.Y36(lh))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.YNc(4,Vv,11,9,"form",2),a.YNc(5,Jv,1,0,"mat-spinner",3),a.qZA(),a.YNc(6,Qv,8,7,"div",4)),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.TITLE")),a.xp6(3),a.Q6J("ngIf",!t.loading),a.xp6(1),a.Q6J("ngIf",t.loading),a.xp6(1),a.Q6J("ngIf",!t.loading))},directives:[Nl,Il,r.O5,hf,Dd,yf,td,Kh,cd,tm,Rd,Af,kf,sg,Vh,Tm,Hh,_m,ql,_h],pipes:[hh],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}"]}),e}(),t_=["input"],n_=function(e){return{enterDuration:e}},i_=["*"],r_=new a.OlP("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}}),a_=0,o_={provide:ad,useExisting:(0,a.Gpc)(function(){return l_}),multi:!0},s_=function e(t,n){_classCallCheck(this,e),this.source=t,this.value=n},c_=new a.OlP("MatRadioGroup"),u_=function(){var e=function(){function e(t){_classCallCheck(this,e),this._changeDetector=t,this._value=null,this._name="mat-radio-group-"+a_++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=function(){},this.onTouched=function(){},this.change=new a.vpe}return _createClass(e,[{key:"name",get:function(){return this._name},set:function(e){this._name=e,this._updateRadioButtonNames()}},{key:"labelPosition",get:function(){return this._labelPosition},set:function(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}},{key:"_checkSelectedRadioButton",value:function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}},{key:"selected",get:function(){return this._selected},set:function(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=nr(e),this._markRadiosForCheck()}},{key:"required",get:function(){return this._required},set:function(e){this._required=nr(e),this._markRadiosForCheck()}},{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"_touch",value:function(){this.onTouched&&this.onTouched()}},{key:"_updateRadioButtonNames",value:function(){var e=this;this._radios&&this._radios.forEach(function(t){t.name=e.name,t._markForCheck()})}},{key:"_updateSelectedRadioFromValue",value:function(){var e=this;this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(function(t){t.checked=e.value===t.value,t.checked&&(e._selected=t)}))}},{key:"_emitChangeEvent",value:function(){this._isInitialized&&this.change.emit(new s_(this._selected,this._value))}},{key:"_markRadiosForCheck",value:function(){this._radios&&this._radios.forEach(function(e){return e._markForCheck()})}},{key:"writeValue",value:function(e){this.value=e,this._changeDetector.markForCheck()}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetector.markForCheck()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.sBO))},e.\u0275dir=a.lG2({type:e,inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"}}),e}(),l_=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(u_);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275dir=a.lG2({type:t,selectors:[["mat-radio-group"]],contentQueries:function(e,t,n){var i;(1&e&&a.Suo(n,f_,5),2&e)&&(a.iGM(i=a.CRH())&&(t._radios=i))},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[a._Bn([o_,{provide:c_,useExisting:t}]),a.qOj]}),t}(),h_=Ru(Du(function e(t){_classCallCheck(this,e),this._elementRef=t})),d_=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,s,c,u,l){var h;return _classCallCheck(this,n),(h=t.call(this,i))._changeDetector=r,h._focusMonitor=o,h._radioDispatcher=s,h._providerOverride=u,h._uniqueId="mat-radio-"+ ++a_,h.id=h._uniqueId,h.change=new a.vpe,h._checked=!1,h._value=null,h._removeUniqueSelectionListener=function(){},h.radioGroup=e,h._noopAnimations="NoopAnimations"===c,l&&(h.tabIndex=ir(l,0)),h._removeUniqueSelectionListener=s.listen(function(e,t){e!==h.id&&t===h.name&&(h.checked=!1)}),h}return _createClass(n,[{key:"checked",get:function(){return this._checked},set:function(e){var t=nr(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())}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}},{key:"labelPosition",get:function(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"},set:function(e){this._labelPosition=e}},{key:"disabled",get:function(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled},set:function(e){this._setDisabled(nr(e))}},{key:"required",get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(e){this._required=nr(e)}},{key:"color",get:function(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"},set:function(e){this._color=e}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"focus",value:function(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"ngOnInit",value:function(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){!t&&e.radioGroup&&e.radioGroup._touch()})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}},{key:"_emitChangeEvent",value:function(){this.change.emit(new s_(this,this._value))}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onInputClick",value:function(e){e.stopPropagation()}},{key:"_onInputChange",value:function(e){e.stopPropagation();var t=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),t&&this.radioGroup._emitChangeEvent())}},{key:"_setDisabled",value:function(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}}]),n}(h_);return e.\u0275fac=function(t){return new(t||e)(a.Y36(u_),a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(jo),a.Y36(ma),a.Y36(String),a.Y36(void 0),a.Y36(String))},e.\u0275dir=a.lG2({type:e,viewQuery:function(e,t){var n;(1&e&&a.Gf(t_,5),2&e)&&(a.iGM(n=a.CRH())&&(t._inputElement=n.first))},inputs:{id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},features:[a.qOj]}),e}(),f_=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o,s,c,u){return _classCallCheck(this,n),t.call(this,e,i,r,a,o,s,c,u)}return n}(d_);return e.\u0275fac=function(t){return new(t||e)(a.Y36(c_,8),a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(jo),a.Y36(ma),a.Y36(_u,8),a.Y36(r_,8),a.$8M("tabindex"))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(e,t){1&e&&a.NdJ("focus",function(){return t._inputElement.nativeElement.focus()}),2&e&&(a.uIk("tabindex",null)("id",t.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),a.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:[a.qOj],ngContentSelectors:i_,decls:13,vars:20,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","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","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&&(a.F$t(),a.TgZ(0,"label",0,1),a.TgZ(2,"span",2),a._UZ(3,"span",3),a._UZ(4,"span",4),a.TgZ(5,"input",5,6),a.NdJ("change",function(e){return t._onInputChange(e)})("click",function(e){return t._onInputClick(e)}),a.qZA(),a.TgZ(7,"span",7),a._UZ(8,"span",8),a.qZA(),a.qZA(),a.TgZ(9,"span",9),a.TgZ(10,"span",10),a._uU(11,"\xa0"),a.qZA(),a.Hsn(12),a.qZA(),a.qZA()),2&e){var n=a.MAs(1);a.uIk("for",t.inputId),a.xp6(5),a.Q6J("id",t.inputId)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex)("required",t.required),a.uIk("name",t.name)("value",t.value)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),a.xp6(2),a.Q6J("matRippleTrigger",n)("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",a.VKq(18,n_,t._noopAnimations?0:150)),a.xp6(2),a.ekj("mat-radio-label-before","before"==t.labelPosition)}},directives:[rl],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-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;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-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{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),e}(),p_=(($v=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||$v)},$v.\u0275mod=a.oAB({type:$v}),$v.\u0275inj=a.cJS({imports:[[al,zu],zu]}),$v);function g_(e,t){1&e&&a._UZ(0,"mat-spinner",4)}function m_(e,t){1&e&&(a.TgZ(0,"span",11),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function v_(e,t){1&e&&(a.TgZ(0,"span",11),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function __(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-radio-group",12),a.NdJ("ngModelChange",function(e){return a.CHM(n),a.oxw(2).asyncValidation=e}),a.TgZ(1,"span",13),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"mat-radio-button",14),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.TgZ(7,"mat-radio-button",14),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.qZA()}if(2&e){var i=a.oxw(2);a.Q6J("ngModel",i.asyncValidation),a.xp6(2),a.hij(" ",a.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE"),": "),a.xp6(2),a.Q6J("value",!1),a.xp6(1),a.hij(" ",a.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),a.xp6(2),a.Q6J("value",!0),a.xp6(1),a.hij(" ",a.lcZ(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," ")}}function y_(e,t){1&e&&(a.TgZ(0,"span",11),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function b_(e,t){1&e&&(a.TgZ(0,"span",11),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function A_(e,t){if(1&e&&(a.TgZ(0,"div",5),a.TgZ(1,"p",6),a._uU(2),a.TgZ(3,"span",7),a._uU(4),a.qZA(),a._uU(5),a.TgZ(6,"span",7),a._uU(7),a.qZA(),a.qZA(),a.TgZ(8,"p"),a.TgZ(9,"strong",8),a._uU(10),a.ALo(11,"translate"),a.qZA(),a._uU(12),a.qZA(),a.TgZ(13,"p"),a.TgZ(14,"strong",8),a._uU(15),a.ALo(16,"translate"),a.qZA(),a._uU(17),a.qZA(),a.YNc(18,m_,3,3,"span",9),a.YNc(19,v_,3,3,"span",9),a.YNc(20,__,10,12,"mat-radio-group",10),a.YNc(21,y_,3,3,"span",9),a.YNc(22,b_,3,3,"span",9),a.qZA()),2&e){var n=a.oxw();a.xp6(2),a.hij(" ",n.group.name," "),a.xp6(2),a.hij("#",n.group.id,""),a.xp6(1),a.hij(" - ",n.resource.name," "),a.xp6(2),a.hij("#",n.resource.id,""),a.xp6(3),a.hij("",a.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT"),":"),a.xp6(2),a.hij(" ",n.status," "),a.xp6(3),a.hij("",a.lcZ(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW"),":"),a.xp6(2),a.hij(" ",n.getReversedStatus()," "),a.xp6(1),a.Q6J("ngIf","INACTIVE"===n.status),a.xp6(1),a.Q6J("ngIf","ACTIVE"===n.status),a.xp6(1),a.Q6J("ngIf","INACTIVE"===n.status),a.xp6(1),a.Q6J("ngIf","INACTIVE"===n.status&&!1===n.asyncValidation),a.xp6(1),a.Q6J("ngIf","INACTIVE"===n.status&&!0===n.asyncValidation)}}function w_(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",15),a.TgZ(1,"button",16),a.NdJ("click",function(){return a.CHM(n),a.oxw().onCancel()}),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"button",17),a.NdJ("click",function(){return a.CHM(n),a.oxw().onSubmit()}),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.xp6(2),a.hij(" ",a.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),a.xp6(2),a.Q6J("disabled",i.loading),a.xp6(1),a.hij(" ",a.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG."+("ACTIVE"===i.status?"DEACTIVATE":"ACTIVATE"))," ")}}var k_=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this.dialogRef=t,this.data=n,this.resourceService=i,this.groupService=r,this.loading=!1,this.asyncValidation=!1,this.resource=null,this.group=null}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.status=this.data.status,this.theme=this.data.theme,this.resourceService.getResourceById(this.data.resourceId).subscribe(function(t){e.resource=t,e.groupService.getGroupById(e.data.groupId).subscribe(function(t){e.group=t,e.loading=!1},function(){return e.loading=!1})},function(){return e.loading=!1})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,"ACTIVE"===this.status?this.resourceService.deactivateGroupResourceAssignment(this.data.groupId,this.data.resourceId).subscribe(function(){e.dialogRef.close(!0),e.loading=!1},function(){return e.loading=!1}):this.resourceService.activateGroupResourceAssignment(this.data.groupId,this.data.resourceId,this.asyncValidation).subscribe(function(){e.dialogRef.close(!0),e.loading=!1},function(){return e.loading=!1})}},{key:"getReversedStatus",value:function(){return"ACTIVE"===this.status?"INACTIVE":"ACTIVE"}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl),a.Y36(El),a.Y36(le),a.Y36(oe))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"div"),a.TgZ(1,"h1",0),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,g_,1,0,"mat-spinner",1),a.YNc(5,A_,23,17,"div",2),a.YNc(6,w_,7,7,"div",3),a.qZA()),2&e&&(a.Tol(t.theme),a.xp6(2),a.hij(" ",a.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")," "),a.xp6(2),a.Q6J("ngIf",t.loading),a.xp6(1),a.Q6J("ngIf",!t.loading),a.xp6(1),a.Q6J("ngIf",!t.loading))},directives:[Nl,r.O5,_m,Il,l_,Rd,lf,f_,ql,_h],pipes:[hh],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),e}();function M_(e,t){if(1&e&&(a.TgZ(0,"div",5),a.TgZ(1,"mat-icon"),a._uU(2),a.qZA(),a.qZA()),2&e){var n=a.oxw();a.xp6(2),a.Oqu(n.data.icon)}}function C_(e,t){if(1&e&&(a.TgZ(0,"div",6),a._uU(1),a.qZA()),2&e){var n=a.oxw();a.xp6(1),a.hij(" ",n.showTimestamp()," ")}}var T_=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.dialog=t,this.notificationStorageService=n,this.newNotification=!1,this.closeNotification=new a.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}return _createClass(e,[{key:"doAction",value:function(){var e=this;if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{var t=dg();t.width="550px",t.data=this.data,t.autoFocus=!1,this.dialog.open(xm,t).afterClosed().subscribe(function(){e.closeSelf()})}}},{key:"closeSelf",value:function(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}},{key:"ngOnInit",value:function(){var e=this;!function(t,n){return i=this,a=regeneratorRuntime.mark(function n(){var i;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,i=t,new Promise(function(e){return setTimeout(e,i)});case 2:e.alreadyClosed||e.waiting||e.closeSelf();case 3:case"end":return n.stop()}},n)}),new((r=void 0)||(r=Promise))(function(e,t){function n(e){try{s(a.next(e))}catch(n){t(n)}}function o(e){try{s(a.throw(e))}catch(n){t(n)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof r?i:new r(function(e){e(i)})).then(n,o)}s((a=a.apply(i,[])).next())});var i,r,a}(this.data.delay)}},{key:"showTimestamp",value:function(){var e=_slicedToArray(this.data.timeStamp.split(":"),2),t=e[0],n=e[1];return n.length<2?t+":0"+n:this.data.timeStamp}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Dl),a.Y36(Dg))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"div"),a.TgZ(1,"div",0),a.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),a.YNc(2,M_,3,1,"div",1),a.TgZ(3,"div",2),a._uU(4),a.ALo(5,"translate"),a.qZA(),a.YNc(6,C_,2,1,"div",3),a.TgZ(7,"div",4),a.NdJ("click",function(){return t.waiting=!0,t.doAction()}),a._uU(8),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.Gre("notification ",t.inDialog?"":"mat-elevation-z7",""),a.ekj("error","error"===t.data.type)("success","success"===t.data.type),a.xp6(2),a.Q6J("ngIf",null!==t.data.icon),a.xp6(2),a.hij(" ",a.lcZ(5,12,t.data.title)," "),a.xp6(2),a.Q6J("ngIf",t.inDialog),a.xp6(1),a.Q6J("hidden",t.alreadyPressed),a.xp6(1),a.hij(" ",t.data.actionText," "))},directives:[r.O5,sg],pipes:[hh],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}"]}),e}();function L_(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div"),a.TgZ(1,"perun-web-apps-notification",2),a.NdJ("closeNotification",function(){var e=a.CHM(n).index;return a.oxw().removeNotification(e)}),a.qZA(),a.qZA()}if(2&e){var i=t.$implicit;a.Q6J("@flyInOut",void 0),a.xp6(1),a.Q6J("data",i)("newNotification",!0)}}var S_=function(e){return{top:e}},E_=function(){var e=function(){function e(t,n){var i=this;_classCallCheck(this,e),this.notificator=t,this.notificationStorageService=n,this.mobileView=!1,this.minWidth=992,this.displayWarning=!1,this.notifications=[],this.notificator.addNotification.subscribe(function(e){i.processNotification(e)}),this.getScreenSize()}return _createClass(e,[{key:"getScreenSize",value:function(){this.mobileView=window.innerWidth<=this.minWidth}},{key:"processNotification",value:function(e){this.notifications.push(e),this.notificationStorageService.storeNotification(e)}},{key:"getNotificatorTop",value:function(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}},{key:"removeNotification",value:function(e){this.notifications.splice(e,1)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(xg),a.Y36(Dg))},e.\u0275cmp=a.Xpm({type:e,selectors:[["perun-web-apps-notificator"]],hostBindings:function(e,t){1&e&&a.NdJ("resize",function(e){return t.getScreenSize(e)},!1,a.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&&(a.TgZ(0,"div",0),a.YNc(1,L_,2,3,"div",1),a.qZA()),2&e&&(a.Q6J("ngStyle",a.VKq(2,S_,t.getNotificatorTop())),a.xp6(1),a.Q6J("ngForOf",t.notifications))},directives:[r.PC,r.sg,T_],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width:768px){#notificator[_ngcontent-%COMP%]{width:100%;top:auto;bottom:0}}"],data:{animation:[Bg]}}),e}(),z_=["*",[["mat-toolbar-row"]]],O_=["*","mat-toolbar-row"],x_=xu(function e(t){_classCallCheck(this,e),this._elementRef=t}),R_=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),e}(),D_=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e))._platform=i,a._document=r,a}return _createClass(n,[{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return e._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(x_);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(ta),a.Y36(r.K0))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-toolbar"]],contentQueries:function(e,t,n){var i;(1&e&&a.Suo(n,R_,5),2&e)&&(a.iGM(i=a.CRH())&&(t._toolbarRows=i))},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&a.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[a.qOj],ngContentSelectors:O_,decls:2,vars:0,template:function(e,t){1&e&&(a.F$t(z_),a.Hsn(0),a.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%}\n"],encapsulation:2,changeDetection:0}),e}(),P_=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[zu],zu]}),e}(),N_={provide:a.tb,useFactory:function(e,t){return function(){if((0,r.NF)(t)){var n=Array.from(e.querySelectorAll("[class*=".concat(I_,"]"))),i=/\bflex-layout-.+?\b/g;n.forEach(function(e){e.classList.contains("".concat(I_,"ssr"))&&e.parentNode?e.parentNode.removeChild(e):e.className.replace(i,"")})}}},deps:[r.K0,a.Lbi],multi:!0},I_="flex-layout-",q_=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[N_]}),e}(),B_=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;_classCallCheck(this,e),this.matches=t,this.mediaQuery=n,this.mqAlias=i,this.suffix=r,this.priority=a,this.property=""}return _createClass(e,[{key:"clone",value:function(){return new e(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}]),e}(),H_=function(){var e=function(){function e(){_classCallCheck(this,e),this.stylesheet=new Map}return _createClass(e,[{key:"addStyleToElement",value:function(e,t,n){var i=this.stylesheet.get(e);i?i.set(t,n):this.stylesheet.set(e,new Map([[t,n]]))}},{key:"clearStyles",value:function(){this.stylesheet.clear()}},{key:"getStyleForElement",value:function(e,t){var n=this.stylesheet.get(e),i="";if(n){var r=n.get(t);"number"!=typeof r&&"string"!=typeof r||(i=r+"")}return i}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,a.Yz7)({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Y_={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},j_=new a.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:function(){return Y_}}),F_=new a.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:function(){return!1}}),W_=new a.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:function(){return null}});function U_(e,t){return e=e?e.clone():new B_,t&&(e.mqAlias=t.alias,e.mediaQuery=t.mediaQuery,e.suffix=t.suffix,e.priority=t.priority),e}var K_=["row","column","row-reverse","column-reverse"];function Z_(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}var G_=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this.elementRef=t,this.styleBuilder=n,this.styler=i,this.marshal=r,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new ye.xQ,this.styleCache=new Map}return _createClass(e,[{key:"parentElement",get:function(){return this.elementRef.nativeElement.parentElement}},{key:"nativeElement",get:function(){return this.elementRef.nativeElement}},{key:"activatedValue",get:function(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)},set:function(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}},{key:"ngOnChanges",value:function(e){var t=this;Object.keys(e).forEach(function(n){if(-1!==t.inputs.indexOf(n)){var i=n.split(".").slice(1).join(".");t.setValue(e[n].currentValue,i)}})}},{key:"ngOnDestroy",value:function(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}},{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}},{key:"addStyles",value:function(e,t){var n=this.styleBuilder,i=n.shouldCache,r=this.styleCache.get(e);r&&i||(r=n.buildStyles(e,t),i&&this.styleCache.set(e,r)),this.mru=Object.assign({},r),this.applyStyleToElement(r),n.sideEffect(e,r,t)}},{key:"clearStyles",value:function(){var e=this;Object.keys(this.mru).forEach(function(t){e.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={}}},{key:"triggerUpdate",value:function(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}},{key:"getFlexFlowDirection",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){var n=this.styler.getFlowDirection(e),i=_slicedToArray(n,2),r=i[0],a=i[1];if(!a&&t){var o=function(e){var t=function(e){var t=_slicedToArray((e=e?e.toLowerCase():"").split(" "),3),n=t[0],i=t[1],r=t[2];return K_.find(function(e){return e===n})||(n=K_[0]),"inline"===i&&(i="inline"!==r?r:"",r="inline"),[n,Z_(i),!!r]}(e),n=_slicedToArray(t,3);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e,"flex-wrap":t||null}}(n[0],n[1],n[2])}(r);this.styler.applyStyleToElements(o,[e])}return r.trim()}return"row"}},{key:"hasWrap",value:function(e){return this.styler.hasWrap(e)}},{key:"applyStyleToElement",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.nativeElement;this.styler.applyStyleToElement(n,e,t)}},{key:"setValue",value:function(e,t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,t)}},{key:"updateWithValue",value:function(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}]),e}();return e.\u0275fac=function(e){a.$Z()},e.\u0275dir=a.lG2({type:e,features:[a.TTD]}),e}(),X_=[{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}],V_="(orientation: portrait) and (max-width: 599.98px)",J_="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",Q_="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",$_="(orientation: portrait) and (min-width: 840px)",ey="(orientation: landscape) and (min-width: 1280px)",ty={HANDSET:"".concat(V_,", (orientation: landscape) and (max-width: 959.98px)"),TABLET:"".concat(J_," , ").concat(Q_),WEB:"".concat($_,", ").concat(ey," "),HANDSET_PORTRAIT:"".concat(V_),TABLET_PORTRAIT:"".concat(J_," "),WEB_PORTRAIT:"".concat($_),HANDSET_LANDSCAPE:"(orientation: landscape) and (max-width: 959.98px)",TABLET_LANDSCAPE:"".concat(Q_),WEB_LANDSCAPE:"".concat(ey)},ny=[{alias:"handset",priority:2e3,mediaQuery:ty.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:ty.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:ty.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:ty.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:ty.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:ty.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:ty.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:ty.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:ty.WEB_PORTRAIT,overlapping:!0}],iy=/(\.|-|_)/g;function ry(e){var t=e.length>0?e.charAt(0):"",n=e.length>1?e.slice(1):"";return t.toUpperCase()+n}var ay=new a.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var e=(0,a.f3M)(W_),t=(0,a.f3M)(j_),n=[].concat.apply([],(e||[]).map(function(e){return Array.isArray(e)?e:[e]}));return function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i={};return e.forEach(function(e){i[e.alias]=e}),n.forEach(function(e){i[e.alias]?function(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i1&&void 0!==arguments[1]&&arguments[1];if(e&&e.length){var i=this._observable$.pipe((0,me.h)(function(t){return!n||e.indexOf(t.mediaQuery)>-1})),r=new ke.y(function(n){var i=t.registerQuery(e);if(i.length){var r=i.pop();i.forEach(function(e){n.next(e)}),t.source.next(r)}n.complete()});return(0,Oa.T)(r,i)}return this._observable$}},{key:"registerQuery",value:function(e){var t=this,n=Array.isArray(e)?e:[e],i=[];return function(e,t){var n=e.filter(function(e){return!ly[e]});if(n.length>0){var i=n.join(", ");try{var r=t.createElement("style");r.setAttribute("type","text/css"),r.styleSheet||r.appendChild(t.createTextNode("\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ".concat(i," {.fx-query-test{ }}\n"))),t.head.appendChild(r),n.forEach(function(e){return ly[e]=r})}catch(a){console.error(a)}}}(n,this._document),n.forEach(function(e){var n=function(n){t._zone.run(function(){return t.source.next(new B_(n.matches,e))})},r=t.registry.get(e);r||((r=t.buildMQL(e)).addListener(n),t.pendingRemoveListenerFns.push(function(){return r.removeListener(n)}),t.registry.set(e,r)),r.matches&&i.push(new B_(!0,e))}),i}},{key:"ngOnDestroy",value:function(){for(var e;e=this.pendingRemoveListenerFns.pop();)e()}},{key:"buildMQL",value:function(e){return function(e,t){return t&&window.matchMedia("all").addListener?window.matchMedia(e):{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){},onchange:null,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){return!1}}}(e,(0,r.NF)(this._platformId))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(a.R0b),a.LFG(a.Lbi),a.LFG(r.K0))},e.\u0275prov=(0,a.Yz7)({factory:function(){return new e((0,a.LFG)(a.R0b),(0,a.LFG)(a.Lbi),(0,a.LFG)(r.K0))},token:e,providedIn:"root"}),e}(),ly={},hy={alias:"print",mediaQuery:"print",priority:1e3},dy=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.breakpoints=t,this.layoutConfig=n,this._document=i,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new fy,this.deactivations=[]}return _createClass(e,[{key:"withPrintQuery",value:function(e){return[].concat(_toConsumableArray(e),["print"])}},{key:"isPrintEvent",value:function(e){return e.mediaQuery.startsWith("print")}},{key:"printAlias",get:function(){return this.layoutConfig.printWithBreakpoints||[]}},{key:"printBreakPoints",get:function(){var e=this;return this.printAlias.map(function(t){return e.breakpoints.findByAlias(t)}).filter(function(e){return null!==e})}},{key:"getEventBreakpoints",value:function(e){var t=e.mediaQuery,n=this.breakpoints.findByQuery(t);return(n?[].concat(_toConsumableArray(this.printBreakPoints),[n]):this.printBreakPoints).sort(oy)}},{key:"updateEvent",value:function(e){var t=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(t=this.getEventBreakpoints(e)[0],e.mediaQuery=t?t.mediaQuery:""),U_(e,t)}},{key:"registerBeforeAfterPrintHooks",value:function(e){var t=this;if(this._document.defaultView&&!this.registeredBeforeAfterPrintHooks){this.registeredBeforeAfterPrintHooks=!0;var n=function(){t.isPrinting||(t.isPrintingBeforeAfterEvent=!0,t.startPrinting(e,t.getEventBreakpoints(new B_(!0,"print"))),e.updateStyles())},i=function(){t.isPrintingBeforeAfterEvent=!1,t.isPrinting&&(t.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",n),this._document.defaultView.addEventListener("afterprint",i),this.beforePrintEventListeners.push(n),this.afterPrintEventListeners.push(i)}}},{key:"interceptEvents",value:function(e){var t=this;return this.registerBeforeAfterPrintHooks(e),function(n){t.isPrintEvent(n)?n.matches&&!t.isPrinting?(t.startPrinting(e,t.getEventBreakpoints(n)),e.updateStyles()):n.matches||!t.isPrinting||t.isPrintingBeforeAfterEvent||(t.stopPrinting(e),e.updateStyles()):t.collectActivations(n)}}},{key:"blockPropagation",value:function(){var e=this;return function(t){return!(e.isPrinting||e.isPrintEvent(t))}}},{key:"startPrinting",value:function(e,t){this.isPrinting=!0,e.activatedBreakpoints=this.queue.addPrintBreakpoints(t)}},{key:"stopPrinting",value:function(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}},{key:"collectActivations",value:function(e){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(e.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{var t=this.breakpoints.findByQuery(e.mediaQuery);t&&(this.deactivations.push(t),this.deactivations.sort(oy))}}},{key:"ngOnDestroy",value:function(){var e=this;this._document.defaultView&&(this.beforePrintEventListeners.forEach(function(t){return e._document.defaultView.removeEventListener("beforeprint",t)}),this.afterPrintEventListeners.forEach(function(t){return e._document.defaultView.removeEventListener("afterprint",t)}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(cy),a.LFG(j_),a.LFG(r.K0))},e.\u0275prov=(0,a.Yz7)({factory:function(){return new e((0,a.LFG)(cy),(0,a.LFG)(j_),(0,a.LFG)(r.K0))},token:e,providedIn:"root"}),e}(),fy=function(){function e(){_classCallCheck(this,e),this.printBreakpoints=[]}return _createClass(e,[{key:"addPrintBreakpoints",value:function(e){var t=this;return e.push(hy),e.sort(oy),e.forEach(function(e){return t.addBreakpoint(e)}),this.printBreakpoints}},{key:"addBreakpoint",value:function(e){e&&void 0===this.printBreakpoints.find(function(t){return t.mediaQuery===e.mediaQuery})&&(this.printBreakpoints=function(e){return!!e&&e.mediaQuery.startsWith("print")}(e)?[e].concat(_toConsumableArray(this.printBreakpoints)):[].concat(_toConsumableArray(this.printBreakpoints),[e]))}},{key:"clear",value:function(){this.printBreakpoints=[]}}]),e}();function py(e){for(var t in e){var n=e[t]||"";switch(t){case"display":e.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;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":e["-webkit-"+t]=n;break;case"flex-direction":n=n||"row",e["-webkit-flex-direction"]=n,e["flex-direction"]=n;break;case"order":e.order=e["-webkit-"+t]=isNaN(+n)?"0":n}}return e}var gy=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this._serverStylesheet=t,this._serverModuleLoaded=n,this._platformId=i,this.layoutConfig=r}return _createClass(e,[{key:"applyStyleToElement",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i={};"string"==typeof t&&(i[t]=n,t=i),i=this.layoutConfig.disableVendorPrefixes?t:py(t),this._applyMultiValueStyleToElement(i,e)}},{key:"applyStyleToElements",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=this.layoutConfig.disableVendorPrefixes?e:py(e);n.forEach(function(e){t._applyMultiValueStyleToElement(i,e)})}},{key:"getFlowDirection",value:function(e){var t=this.lookupStyle(e,"flex-direction");return[t||"row",this.lookupInlineStyle(e,"flex-direction")||(0,r.PM)(this._platformId)&&this._serverModuleLoaded?t:""]}},{key:"hasWrap",value:function(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}},{key:"lookupAttributeValue",value:function(e,t){return e.getAttribute(t)||""}},{key:"lookupInlineStyle",value:function(e,t){return(0,r.NF)(this._platformId)?e.style.getPropertyValue(t):this._getServerStyle(e,t)}},{key:"lookupStyle",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i="";return e&&((i=this.lookupInlineStyle(e,t))||((0,r.NF)(this._platformId)?n||(i=getComputedStyle(e).getPropertyValue(t)):this._serverModuleLoaded&&(i=this._serverStylesheet.getStyleForElement(e,t)))),i?i.trim():""}},{key:"_applyMultiValueStyleToElement",value:function(e,t){var n=this;Object.keys(e).sort().forEach(function(i){var a=e[i],o=Array.isArray(a)?a:[a];o.sort();var s,c=_createForOfIteratorHelper(o);try{for(c.s();!(s=c.n()).done;){var u=s.value;u=u?u+"":"",(0,r.NF)(n._platformId)||!n._serverModuleLoaded?(0,r.NF)(n._platformId)?t.style.setProperty(i,u):n._setServerStyle(t,i,u):n._serverStylesheet.addStyleToElement(t,i,u)}}catch(l){c.e(l)}finally{c.f()}})}},{key:"_setServerStyle",value:function(e,t,n){t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();var i=this._readStyleAttribute(e);i[t]=n||"",this._writeStyleAttribute(e,i)}},{key:"_getServerStyle",value:function(e,t){return this._readStyleAttribute(e)[t]||""}},{key:"_readStyleAttribute",value:function(e){var t={},n=e.getAttribute("style");if(n)for(var i=n.split(/;+/g),r=0;r0){var o=a.indexOf(":");if(-1===o)throw new Error("Invalid CSS style: ".concat(a));t[a.substr(0,o).trim()]=a.substr(o+1).trim()}}return t}},{key:"_writeStyleAttribute",value:function(e,t){var n="";for(var i in t)t[i]&&(n+=i+":"+t[i]+";");e.setAttribute("style",n)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(H_),a.LFG(F_),a.LFG(a.Lbi),a.LFG(j_))},e.\u0275prov=(0,a.Yz7)({factory:function(){return new e((0,a.LFG)(H_),(0,a.LFG)(F_),(0,a.LFG)(a.Lbi),(0,a.LFG)(j_))},token:e,providedIn:"root"}),e}(),my=function(){function e(){_classCallCheck(this,e),this.shouldCache=!0}return _createClass(e,[{key:"sideEffect",value:function(e,t,n){}}]),e}(),vy=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.matchMedia=t,this.breakpoints=n,this.hook=i,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 ye.xQ,this.observeActivations()}return _createClass(e,[{key:"activatedAlias",get:function(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}},{key:"onMediaChange",value:function(e){var t=this.findByQuery(e.mediaQuery);t&&((e=U_(e,t)).matches&&-1===this.activatedBreakpoints.indexOf(t)?(this.activatedBreakpoints.push(t),this.activatedBreakpoints.sort(oy),this.updateStyles()):e.matches||-1===this.activatedBreakpoints.indexOf(t)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(t),1),this.activatedBreakpoints.sort(oy),this.updateStyles()))}},{key:"init",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];_y(this.updateMap,e,t,n),_y(this.clearMap,e,t,i),this.buildElementKeyMap(e,t),this.watchExtraTriggers(e,t,r)}},{key:"getValue",value:function(e,t,n){var i=this.elementMap.get(e);if(i){var r=void 0!==n?i.get(n):this.getActivatedValues(i,t);if(r)return r.get(t)}}},{key:"hasValue",value:function(e,t){var n=this.elementMap.get(e);if(n){var i=this.getActivatedValues(n,t);if(i)return void 0!==i.get(t)||!1}return!1}},{key:"setValue",value:function(e,t,n,i){var r=this.elementMap.get(e);if(r){var a=(r.get(i)||new Map).set(t,n);r.set(i,a),this.elementMap.set(e,r)}else r=(new Map).set(i,(new Map).set(t,n)),this.elementMap.set(e,r);var o=this.getValue(e,t);void 0!==o&&this.updateElement(e,t,o)}},{key:"trackValue",value:function(e,t){return this.subject.asObservable().pipe((0,me.h)(function(n){return n.element===e&&n.key===t}))}},{key:"updateStyles",value:function(){var e=this;this.elementMap.forEach(function(t,n){var i=new Set(e.elementKeyMap.get(n)),r=e.getActivatedValues(t);r&&r.forEach(function(t,r){e.updateElement(n,r,t),i.delete(r)}),i.forEach(function(i){if(r=e.getActivatedValues(t,i)){var a=r.get(i);e.updateElement(n,i,a)}else e.clearElement(n,i)})})}},{key:"clearElement",value:function(e,t){var n=this.clearMap.get(e);if(n){var i=n.get(t);i&&(i(),this.subject.next({element:e,key:t,value:""}))}}},{key:"updateElement",value:function(e,t,n){var i=this.updateMap.get(e);if(i){var r=i.get(t);r&&(r(n),this.subject.next({element:e,key:t,value:n}))}}},{key:"releaseElement",value:function(e){var t=this.watcherMap.get(e);t&&(t.forEach(function(e){return e.unsubscribe()}),this.watcherMap.delete(e));var n=this.elementMap.get(e);n&&(n.forEach(function(e,t){return n.delete(t)}),this.elementMap.delete(e))}},{key:"triggerUpdate",value:function(e,t){var n=this,i=this.elementMap.get(e);if(i){var r=this.getActivatedValues(i,t);r&&(t?this.updateElement(e,t,r.get(t)):r.forEach(function(t,i){return n.updateElement(e,i,t)}))}}},{key:"buildElementKeyMap",value:function(e,t){var n=this.elementKeyMap.get(e);n||(n=new Set,this.elementKeyMap.set(e,n)),n.add(t)}},{key:"watchExtraTriggers",value:function(e,t,n){var i=this;if(n&&n.length){var r=this.watcherMap.get(e);if(r||(r=new Map,this.watcherMap.set(e,r)),!r.get(t)){var a=Oa.T.apply(void 0,_toConsumableArray(n)).subscribe(function(){var n=i.getValue(e,t);i.updateElement(e,t,n)});r.set(t,a)}}}},{key:"findByQuery",value:function(e){return this.breakpoints.findByQuery(e)}},{key:"getActivatedValues",value:function(e,t){for(var n=0;n2&&void 0!==arguments[2])||arguments[2];_classCallCheck(this,e),this.key=t,this.value=n,this.key=i?t.replace(/['"]/g,"").trim():t.trim(),this.value=i?n.replace(/['"]/g,"").trim():n.trim(),this.value=this.value.replace(/;/,"")};function by(e){var t=typeof e;return"object"===t?e.constructor===Array?"array":e.constructor===Set?"set":"object":t}function Ay(e){var t=_toArray(e.split(":")),n=t[0],i=t.slice(1);return new yy(n,i.join(":"))}function wy(e,t){return t.key&&(e[t.key]=t.value),e}var ky=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a,o,s,c,u,l,h){var d;_classCallCheck(this,n),(d=t.call(this,e,null,i,a)).sanitizer=o,d.ngStyleInstance=u,d.DIRECTIVE_KEY="ngStyle",d.ngStyleInstance||(d.ngStyleInstance=new r.PC(e,s,c)),d.init();var f=d.nativeElement.getAttribute("style")||"";return d.fallbackStyles=d.buildStyleMap(f),d.isServer=l&&(0,r.PM)(h),d}return _createClass(n,[{key:"updateWithValue",value:function(e){var t=this.buildStyleMap(e);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),t),this.isServer&&this.applyStyleToElement(t),this.ngStyleInstance.ngDoCheck()}},{key:"clearStyles",value:function(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}},{key:"buildStyleMap",value:function(e){var t,n,i,r=this,o=function(e){return r.sanitizer.sanitize(a.q3G.STYLE,e)||""};if(e)switch(by(e)){case"string":return Ty(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:";";return String(e).trim().split(t).map(function(e){return e.trim()}).filter(function(e){return""!==e})}(e),o);case"array":return Ty(e,o);case"set":default:return n=o,i=[],"set"===by(t=e)?t.forEach(function(e){return i.push(e)}):Object.keys(t).forEach(function(e){i.push("".concat(e,":").concat(t[e]))}),function(e,t){return e.map(Ay).filter(function(e){return!!e}).map(function(e){return t&&(e.value=t(e.value)),e}).reduce(wy,{})}(i,n)}return{}}},{key:"ngDoCheck",value:function(){this.ngStyleInstance.ngDoCheck()}}]),n}(G_);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(gy),a.Y36(vy),a.Y36(x),a.Y36(a.aQg),a.Y36(a.Qsj),a.Y36(r.PC,10),a.Y36(F_),a.Y36(a.Lbi))},e.\u0275dir=a.lG2({type:e,features:[a.qOj]}),e}(),My=["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"],Cy=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments)).inputs=My,e}return n}(ky);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275dir=a.lG2({type:t,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:[a.qOj]}),t}();function Ty(e,t){return e.map(Ay).filter(function(e){return!!e}).map(function(e){return t&&(e.value=t(e.value)),e}).reduce(wy,{})}var Ly=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[q_]]}),e}(),Sy=function(e){return{color:e}};function Ey(e,t){if(1&e&&(a.TgZ(0,"button",8),a.ALo(1,"translate"),a.TgZ(2,"mat-icon",4),a._uU(3," apps "),a.qZA(),a.qZA()),2&e){var n=a.oxw(),i=a.MAs(2);a.Q6J("matMenuTriggerFor",i)("matTooltip",a.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),a.xp6(2),a.Q6J("ngStyle",a.VKq(5,Sy,n.iconColor))}}function zy(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",2),a.NdJ("click",function(){return a.CHM(n),a.oxw().onLogOut()}),a._uU(1),a.ALo(2,"translate"),a.qZA()}2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"NAV.LOGOUT")," "))}var Oy=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this.authService=t,this.authzResolverService=n,this.notificator=i,this.translateService=r}return _createClass(e,[{key:"redirectToUrl",value:function(){window.open(this.url,"_blank")}},{key:"onLogOut",value:function(){this.authService.logout()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Yl),a.Y36(ae),a.Y36(xg),a.Y36(lh))},e.\u0275cmp=a.Xpm({type:e,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:14,vars:15,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],[1,"d-none","d-lg-inline",3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"]],template:function(e,t){if(1&e&&(a.YNc(0,Ey,4,7,"button",0),a.TgZ(1,"mat-menu",null,1),a.TgZ(3,"button",2),a.NdJ("click",function(){return t.redirectToUrl()}),a.TgZ(4,"span"),a._uU(5),a.qZA(),a.qZA(),a.qZA(),a.TgZ(6,"button",3),a.TgZ(7,"mat-icon",4),a._uU(8," person "),a.qZA(),a.TgZ(9,"span",5),a._uU(10),a.qZA(),a.qZA(),a.TgZ(11,"mat-menu",null,6),a.YNc(13,zy,3,3,"button",7),a.qZA()),2&e){var n=a.MAs(12);a.Q6J("ngIf",t.url),a.xp6(5),a.Oqu(t.label),a.xp6(1),a.Q6J("matMenuTriggerFor",n),a.xp6(1),a.Q6J("ngStyle",a.VKq(11,Sy,t.iconColor)),a.xp6(2),a.Q6J("ngStyle",a.VKq(13,Sy,t.textColor)),a.xp6(1),a.xDo(" ",t.user.titleBefore," ",t.user.firstName," ",t.user.middleName," ",t.user.lastName," ",t.user.titleAfter," "),a.xp6(3),a.Q6J("ngIf",t.logoutEnabled)}},directives:[r.O5,qp,Dp,_h,jp,sg,r.PC,up],pipes:[hh],styles:["@media (max-width:991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),e}(),xy=function(e){return{color:e}};function Ry(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",7),a.NdJ("click",function(){return a.CHM(n),a.oxw().onToggleSidenav()}),a.TgZ(1,"mat-icon"),a._uU(2,"menu"),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.Q6J("ngStyle",a.VKq(1,xy,i.iconColor))}}function Dy(e,t){1&e&&(a.TgZ(0,"div",8),a.TgZ(1,"span",9),a._uU(2," ~ \ud83d\uddf2\xa0 "),a.qZA(),a.TgZ(3,"span",10),a._uU(4," DEVEL "),a.qZA(),a.TgZ(5,"span",9),a._uU(6," \ud83d\uddf2 ~ "),a.qZA(),a.qZA())}var Py=function(e){return{background:e}},Ny=function(){return[]},Iy=function(){return["/"]},qy=function(){var e=function(){function e(t,n,i,r){var o=this;_classCallCheck(this,e),this.storeService=t,this.sanitizer=n,this.translate=i,this.otherApplicationService=r,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.sidenavToggle=new a.vpe,this.hideToggle=!1,this.disableLogo=!1,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=function(){o.sidenavToggle.emit()}}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.isDevel=this.storeService.get("is_devel"),this.translate.onLangChange.subscribe(function(t){e.label=e.storeService.get("header_label_".concat(t.lang)),e.adminLabel=e.storeService.get("admin_gui_label_".concat(t.lang))}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo")),this.isLinkToGuiActive()}},{key:"isLinkToGuiActive",value:function(){for(var e in this.linkRoles=this.storeService.get("link_to_admin_gui_by_roles"),this.storeService.getPerunPrincipal().roles)this.linkRoles.includes(e)&&(this.activeLink=!0);this.activeLink&&(this.adminGuiUrl=this.otherApplicationService.getUrlForOtherApplication("admin"))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(tr),a.Y36(x),a.Y36(lh),a.Y36(qg))},e.\u0275cmp=a.Xpm({type:e,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"],["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"],["mat-icon-button","",3,"ngStyle","click"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(e,t){1&e&&(a.TgZ(0,"mat-toolbar",0),a.TgZ(1,"div",1),a.YNc(2,Ry,3,3,"button",2),a._UZ(3,"a",3),a.TgZ(4,"p",4),a._uU(5),a.qZA(),a.qZA(),a.YNc(6,Dy,7,0,"div",5),a._UZ(7,"perun-web-apps-header-menu",6),a.qZA()),2&e&&(a.Q6J("ngStyle",a.VKq(13,Py,t.bgColor)),a.xp6(2),a.Q6J("ngIf",!t.hideToggle),a.xp6(1),a.Q6J("innerHTML",t.logo,a.oJD)("routerLink",t.disableLogo?a.DdM(15,Ny):a.DdM(16,Iy)),a.xp6(1),a.Q6J("ngStyle",a.VKq(17,xy,t.textColor)),a.xp6(1),a.Oqu(t.label),a.xp6(1),a.Q6J("ngIf",t.isDevel),a.xp6(1),a.Q6J("url",t.adminGuiUrl)("label",t.adminLabel)("user",t.principal.user)("logoutEnabled",t.logoutEnabled)("iconColor",t.iconColor)("textColor",t.textColor))},directives:[D_,r.PC,Cy,r.O5,xi,Oy,_h,sg],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}"]}),e}();function By(e){return function(t){return t.lift(new Hy(e))}}var Hy=function(){function e(t){_classCallCheck(this,e),this.value=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Yy(e,this.value))}}]),e}(),Yy=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).value=i,r}return _createClass(n,[{key:"_next",value:function(e){this.destination.next(this.value)}}]),n}(Pe.L),jy=["*"];function Fy(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",2),a.NdJ("click",function(){return a.CHM(n),a.oxw()._onBackdropClicked()}),a.qZA()}if(2&e){var i=a.oxw();a.ekj("mat-drawer-shown",i._isShowingBackdrop())}}function Wy(e,t){1&e&&(a.TgZ(0,"mat-drawer-content"),a.Hsn(1,2),a.qZA())}var Uy=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Ky=["mat-drawer","mat-drawer-content","*"];function Zy(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",2),a.NdJ("click",function(){return a.CHM(n),a.oxw()._onBackdropClicked()}),a.qZA()}if(2&e){var i=a.oxw();a.ekj("mat-drawer-shown",i._isShowingBackdrop())}}function Gy(e,t){1&e&&(a.TgZ(0,"mat-sidenav-content",3),a.Hsn(1,2),a.qZA())}var Xy=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Vy=["mat-sidenav","mat-sidenav-content","*"],Jy=".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-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",Qy={transformDrawer:Go("transform",[$o("open, open-instant",Qo({transform:"none",visibility:"visible"})),$o("void",Qo({"box-shadow":"none",visibility:"hidden"})),ts("void => open-instant",Xo("0ms")),ts("void <=> open, open-instant => void",Xo("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},$y=new a.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),eb=new a.OlP("MAT_DRAWER_CONTAINER"),tb=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o){var s;return _classCallCheck(this,n),(s=t.call(this,r,a,o))._changeDetectorRef=e,s._container=i,s}return _createClass(n,[{key:"ngAfterContentInit",value:function(){var e=this;this._container._contentMarginChanges.subscribe(function(){e._changeDetectorRef.markForCheck()})}}]),n}(ya);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.sBO),a.Y36((0,a.Gpc)(function(){return ib})),a.Y36(a.SBq),a.Y36(_a),a.Y36(a.R0b))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&a.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[a.qOj],ngContentSelectors:jy,decls:1,vars:0,template:function(e,t){1&e&&(a.F$t(),a.Hsn(0))},encapsulation:2,changeDetection:0}),e}(),nb=function(){var e=function(){function e(t,n,i,r,o,s,c){var u=this;_classCallCheck(this,e),this._elementRef=t,this._focusTrapFactory=n,this._focusMonitor=i,this._platform=r,this._ngZone=o,this._doc=s,this._container=c,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new ye.xQ,this._animationEnd=new ye.xQ,this._animationState="void",this.openedChange=new a.vpe(!0),this._openedStream=this.openedChange.pipe((0,me.h)(function(e){return e}),(0,ze.U)(function(){})),this.openedStart=this._animationStarted.pipe((0,me.h)(function(e){return e.fromState!==e.toState&&0===e.toState.indexOf("open")}),By(void 0)),this._closedStream=this.openedChange.pipe((0,me.h)(function(e){return!e}),(0,ze.U)(function(){})),this.closedStart=this._animationStarted.pipe((0,me.h)(function(e){return e.fromState!==e.toState&&"void"===e.toState}),By(void 0)),this._destroyed=new ye.xQ,this.onPositionChanged=new a.vpe,this._modeChanged=new ye.xQ,this.openedChange.subscribe(function(e){e?(u._doc&&(u._elementFocusedBeforeDrawerWasOpened=u._doc.activeElement),u._takeFocus()):u._isFocusWithinDrawer()&&u._restoreFocus()}),this._ngZone.runOutsideAngular(function(){lr(u._elementRef.nativeElement,"keydown").pipe((0,me.h)(function(e){return 27===e.keyCode&&!u.disableClose&&!Da(e)}),Ir(u._destroyed)).subscribe(function(e){return u._ngZone.run(function(){u.close(),e.stopPropagation(),e.preventDefault()})})}),this._animationEnd.pipe(Cr(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){var t=e.fromState,n=e.toState;(0===n.indexOf("open")&&"void"===t||"void"===n&&0===t.indexOf("open"))&&u.openedChange.emit(u._opened)})}return _createClass(e,[{key:"position",get:function(){return this._position},set:function(e){(e="end"===e?"end":"start")!=this._position&&(this._position=e,this.onPositionChanged.emit())}},{key:"mode",get:function(){return this._mode},set:function(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}},{key:"disableClose",get:function(){return this._disableClose},set:function(e){this._disableClose=nr(e)}},{key:"autoFocus",get:function(){var e=this._autoFocus;return null==e?"side"!==this.mode:e},set:function(e){this._autoFocus=nr(e)}},{key:"opened",get:function(){return this._opened},set:function(e){this.toggle(nr(e))}},{key:"_takeFocus",value:function(){var e=this;this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(function(t){t||"function"!=typeof e._elementRef.nativeElement.focus||e._elementRef.nativeElement.focus()})}},{key:"_restoreFocus",value:function(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}},{key:"_isFocusWithinDrawer",value:function(){var e,t=null===(e=this._doc)||void 0===e?void 0:e.activeElement;return!!t&&this._elementRef.nativeElement.contains(t)}},{key:"ngAfterContentInit",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}},{key:"ngAfterContentChecked",value:function(){this._platform.isBrowser&&(this._enableAnimations=!0)}},{key:"ngOnDestroy",value:function(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(e){return this.toggle(!0,e)}},{key:"close",value:function(){return this.toggle(!1)}},{key:"_closeViaBackdropClick",value:function(){return this._setOpen(!1,!0)}},{key:"toggle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened,t=arguments.length>1?arguments[1]:void 0;return this._setOpen(e,!e&&this._isFocusWithinDrawer(),t)}},{key:"_setOpen",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"program";return this._opened=e,e?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=i):(this._animationState="void",t&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(function(e){n.openedChange.pipe((0,xe.q)(1)).subscribe(function(t){return e(t?"open":"close")})})}},{key:"_getWidth",value:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}},{key:"_updateFocusTrapState",value:function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}},{key:"_animationStartListener",value:function(e){this._animationStarted.next(e)}},{key:"_animationDoneListener",value:function(e){this._animationEnd.next(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(Do),a.Y36(jo),a.Y36(ta),a.Y36(a.R0b),a.Y36(r.K0,8),a.Y36(eb,8))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&a.WFA("@transform.start",function(e){return t._animationStartListener(e)})("@transform.done",function(e){return t._animationDoneListener(e)}),2&e&&(a.uIk("align",null),a.d8E("@transform",t._animationState),a.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:jy,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(e,t){1&e&&(a.F$t(),a.TgZ(0,"div",0),a.Hsn(1),a.qZA())},directives:[ya],encapsulation:2,data:{animation:[Qy.transformDrawer]},changeDetection:0}),e}(),ib=function(){var e=function(){function e(t,n,i,r,o){var s=this,c=arguments.length>5&&void 0!==arguments[5]&&arguments[5],u=arguments.length>6?arguments[6]:void 0;_classCallCheck(this,e),this._dir=t,this._element=n,this._ngZone=i,this._changeDetectorRef=r,this._animationMode=u,this._drawers=new a.n_E,this.backdropClick=new a.vpe,this._destroyed=new ye.xQ,this._doCheckSubject=new ye.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new ye.xQ,t&&t.change.pipe(Ir(this._destroyed)).subscribe(function(){s._validateDrawers(),s.updateContentMargins()}),o.change().pipe(Ir(this._destroyed)).subscribe(function(){return s.updateContentMargins()}),this._autosize=c}return _createClass(e,[{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"autosize",get:function(){return this._autosize},set:function(e){this._autosize=nr(e)}},{key:"hasBackdrop",get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(e){this._backdropOverride=null==e?null:nr(e)}},{key:"scrollable",get:function(){return this._userContent||this._content}},{key:"ngAfterContentInit",value:function(){var e=this;this._allDrawers.changes.pipe(De(this._allDrawers),Ir(this._destroyed)).subscribe(function(t){e._drawers.reset(t.filter(function(t){return!t._container||t._container===e})),e._drawers.notifyOnChanges()}),this._drawers.changes.pipe(De(null)).subscribe(function(){e._validateDrawers(),e._drawers.forEach(function(t){e._watchDrawerToggle(t),e._watchDrawerPosition(t),e._watchDrawerMode(t)}),(!e._drawers.length||e._isDrawerOpen(e._start)||e._isDrawerOpen(e._end))&&e.updateContentMargins(),e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._doCheckSubject.pipe((0,go.b)(10),Ir(e._destroyed)).subscribe(function(){return e.updateContentMargins()})})}},{key:"ngOnDestroy",value:function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(){this._drawers.forEach(function(e){return e.open()})}},{key:"close",value:function(){this._drawers.forEach(function(e){return e.close()})}},{key:"updateContentMargins",value:function(){var e=this,t=0,n=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){var i=this._left._getWidth();t+=i,n-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)n+=this._right._getWidth();else if("push"==this._right.mode){var r=this._right._getWidth();n+=r,t-=r}n=n||null,(t=t||null)===this._contentMargins.left&&n===this._contentMargins.right||(this._contentMargins={left:t,right:n},this._ngZone.run(function(){return e._contentMarginChanges.next(e._contentMargins)}))}},{key:"ngDoCheck",value:function(){var e=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(function(){return e._doCheckSubject.next()})}},{key:"_watchDrawerToggle",value:function(e){var t=this;e._animationStarted.pipe((0,me.h)(function(e){return e.fromState!==e.toState}),Ir(this._drawers.changes)).subscribe(function(e){"open-instant"!==e.toState&&"NoopAnimations"!==t._animationMode&&t._element.nativeElement.classList.add("mat-drawer-transition"),t.updateContentMargins(),t._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(Ir(this._drawers.changes)).subscribe(function(){return t._setContainerClass(e.opened)})}},{key:"_watchDrawerPosition",value:function(e){var t=this;e&&e.onPositionChanged.pipe(Ir(this._drawers.changes)).subscribe(function(){t._ngZone.onMicrotaskEmpty.pipe((0,xe.q)(1)).subscribe(function(){t._validateDrawers()})})}},{key:"_watchDrawerMode",value:function(e){var t=this;e&&e._modeChanged.pipe(Ir((0,Oa.T)(this._drawers.changes,this._destroyed))).subscribe(function(){t.updateContentMargins(),t._changeDetectorRef.markForCheck()})}},{key:"_setContainerClass",value:function(e){var t=this._element.nativeElement.classList,n="mat-drawer-container-has-open";e?t.add(n):t.remove(n)}},{key:"_validateDrawers",value:function(){var e=this;this._start=this._end=null,this._drawers.forEach(function(t){"end"==t.position?e._end=t:e._start=t}),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)}},{key:"_isPushed",value:function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}},{key:"_onBackdropClicked",value:function(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}},{key:"_closeModalDrawersViaBackdrop",value:function(){var e=this;[this._start,this._end].filter(function(t){return t&&!t.disableClose&&e._canHaveBackdrop(t)}).forEach(function(e){return e._closeViaBackdropClick()})}},{key:"_isShowingBackdrop",value:function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}},{key:"_canHaveBackdrop",value:function(e){return"side"!==e.mode||!!this._backdropOverride}},{key:"_isDrawerOpen",value:function(e){return null!=e&&e.opened}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(ha,8),a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(a.sBO),a.Y36(ba),a.Y36($y),a.Y36(_u,8))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,n){var i;(1&e&&(a.Suo(n,tb,5),a.Suo(n,nb,5)),2&e)&&(a.iGM(i=a.CRH())&&(t._content=i.first),a.iGM(i=a.CRH())&&(t._allDrawers=i))},viewQuery:function(e,t){var n;(1&e&&a.Gf(tb,5),2&e)&&(a.iGM(n=a.CRH())&&(t._userContent=n.first))},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&a.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[a._Bn([{provide:eb,useExisting:e}])],ngContentSelectors:Ky,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&&(a.F$t(Uy),a.YNc(0,Fy,1,2,"div",0),a.Hsn(1),a.Hsn(2,1),a.YNc(3,Wy,2,0,"mat-drawer-content",1)),2&e&&(a.Q6J("ngIf",t.hasBackdrop),a.xp6(3),a.Q6J("ngIf",!t._content))},directives:[r.O5,tb],styles:[Jy],encapsulation:2,changeDetection:0}),e}(),rb=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o){return _classCallCheck(this,n),t.call(this,e,i,r,a,o)}return n}(tb);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.sBO),a.Y36((0,a.Gpc)(function(){return ob})),a.Y36(a.SBq),a.Y36(_a),a.Y36(a.R0b))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,t){2&e&&a.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[a.qOj],ngContentSelectors:jy,decls:1,vars:0,template:function(e,t){1&e&&(a.F$t(),a.Hsn(0))},encapsulation:2,changeDetection:0}),e}(),ab=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._fixedInViewport=!1,e._fixedTopGap=0,e._fixedBottomGap=0,e}return _createClass(n,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(e){this._fixedInViewport=nr(e)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(e){this._fixedTopGap=ir(e)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(e){this._fixedBottomGap=ir(e)}}]),n}(nb);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,t){2&e&&(a.uIk("align",null),a.Udp("top",t.fixedInViewport?t.fixedTopGap:null,"px")("bottom",t.fixedInViewport?t.fixedBottomGap:null,"px"),a.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:[a.qOj],ngContentSelectors:jy,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(e,t){1&e&&(a.F$t(),a.TgZ(0,"div",0),a.Hsn(1),a.qZA())},directives:[ya],encapsulation:2,data:{animation:[Qy.transformDrawer]},changeDetection:0}),t}(),ob=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(ib);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(e,t,n){var i;(1&e&&(a.Suo(n,rb,5),a.Suo(n,ab,5)),2&e)&&(a.iGM(i=a.CRH())&&(t._content=i.first),a.iGM(i=a.CRH())&&(t._allDrawers=i))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,t){2&e&&a.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},exportAs:["matSidenavContainer"],features:[a._Bn([{provide:eb,useExisting:t}]),a.qOj],ngContentSelectors:Vy,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(e,t){1&e&&(a.F$t(Xy),a.YNc(0,Zy,1,2,"div",0),a.Hsn(1),a.Hsn(2,1),a.YNc(3,Gy,2,0,"mat-sidenav-content",1)),2&e&&(a.Q6J("ngIf",t.hasBackdrop),a.xp6(3),a.Q6J("ngIf",!t._content))},directives:[r.O5,rb,ya],styles:[Jy],encapsulation:2,changeDetection:0}),t}(),sb=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[r.ez,zu,na,Aa],Aa,zu]}),e}(),cb=function(){var e=function(){function e(t){_classCallCheck(this,e),this.store=t}return _createClass(e,[{key:"getSideMenuItems",value:function(){var e=this,t=this.store.get("displayed_tabs"),n=[];return t.forEach(function(e){switch(e){case"profile":n.push({label:"MENU_ITEMS.PROFILE",icon:"account_box",link:"/profile",activatedRegex:"^/profile$",tabName:"profile"});break;case"identities":n.push({label:"MENU_ITEMS.IDENTITIES",icon:"remove_red_eye",link:"/profile/identities",activatedRegex:"^/profile/identities$",tabName:"identities"});break;case"services":n.push({label:"MENU_ITEMS.SERVICES",icon:"build",link:"/profile/services",activatedRegex:"^/profile/services$",tabName:"services"});break;case"groups":n.push({label:"MENU_ITEMS.GROUPS",icon:"group",link:"/profile/groups",activatedRegex:"^/profile/groups$",tabName:"groups"});break;case"vos":n.push({label:"MENU_ITEMS.VOS",icon:"account_balance",link:"/profile/organizations",activatedRegex:"^/profile/organizations$",tabName:"vos"});break;case"privacy":n.push({label:"MENU_ITEMS.PRIVACY",icon:"vpn_key",link:"/profile/privacy",activatedRegex:"^/profile/privacy$",tabName:"privacy"});break;case"settings":n.push({label:"MENU_ITEMS.SETTINGS",icon:"settings",link:"/profile/settings",activatedRegex:"^/profile/settings",tabName:"settings"})}}),this.store.get("external_services").forEach(function(t){var i={icon:"insert_link",link:t.url,activatedRegex:"^/profile/external",tabName:"external",external:!0};e.store.get("supported_languages").forEach(function(e){var n;i["label_".concat(e)]=null!==(n=t["label_".concat(e)])&&void 0!==n?n:t.label_en}),n.push(i)}),n}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(tr))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),ub=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[zu],zu]}),e}(),lb=["*"],hb='.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.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:transparent;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{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:transparent;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{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 button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}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-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.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}}\n',db=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],fb=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],pb=Ou(Ru(function e(){_classCallCheck(this,e)})),gb=Ru(function e(){_classCallCheck(this,e)}),mb=new a.OlP("MatList"),vb=new a.OlP("MatNavList"),_b=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._stateChanges=new ye.xQ,e}return _createClass(n,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(pb);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[a._Bn([{provide:vb,useExisting:t}]),a.qOj,a.TTD],ngContentSelectors:lb,decls:1,vars:0,template:function(e,t){1&e&&(a.F$t(),a.Hsn(0))},styles:[hb],encapsulation:2,changeDetection:0}),t}(),yb=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._elementRef=e,i._stateChanges=new ye.xQ,"action-list"===i._getListType()&&e.nativeElement.classList.add("mat-action-list"),i}return _createClass(n,[{key:"_getListType",value:function(){var e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===e?"list":"mat-action-list"===e?"action-list":null}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(pb);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[a._Bn([{provide:mb,useExisting:e}]),a.qOj,a.TTD],ngContentSelectors:lb,decls:1,vars:0,template:function(e,t){1&e&&(a.F$t(),a.Hsn(0))},styles:[hb],encapsulation:2,changeDetection:0}),e}(),bb=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),e}(),Ab=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),e}(),wb=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;_classCallCheck(this,n),(o=t.call(this))._element=e,o._isInteractiveList=!1,o._destroyed=new ye.xQ,o._disabled=!1,o._isInteractiveList=!!(r||a&&"action-list"===a._getListType()),o._list=r||a;var s=o._getHostElement();return"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),o._list&&o._list._stateChanges.pipe(Ir(o._destroyed)).subscribe(function(){i.markForCheck()}),o}return _createClass(n,[{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(e){this._disabled=nr(e)}},{key:"ngAfterContentInit",value:function(){!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat";e.changes.pipe(De(e)).subscribe(function(e){var i=e.length;Xu(t,"".concat(n,"-2-line"),!1),Xu(t,"".concat(n,"-3-line"),!1),Xu(t,"".concat(n,"-multi-line"),!1),2===i||3===i?Xu(t,"".concat(n,"-").concat(i,"-line"),!0):i>3&&Xu(t,"".concat(n,"-multi-line"),!0)})}(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_isRippleDisabled",value:function(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}},{key:"_getHostElement",value:function(){return this._element.nativeElement}}]),n}(gb);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(vb,8),a.Y36(mb,8))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,n){var i;(1&e&&(a.Suo(n,bb,5),a.Suo(n,Ab,5),a.Suo(n,Gu,5)),2&e)&&(a.iGM(i=a.CRH())&&(t._avatar=i.first),a.iGM(i=a.CRH())&&(t._icon=i.first),a.iGM(i=a.CRH())&&(t._lines=i))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(e,t){2&e&&a.ekj("mat-list-item-disabled",t.disabled)("mat-list-item-avatar",t._avatar||t._icon)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[a.qOj],ngContentSelectors:fb,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&&(a.F$t(db),a.TgZ(0,"div",0),a._UZ(1,"div",1),a.Hsn(2),a.TgZ(3,"div",2),a.Hsn(4,1),a.qZA(),a.Hsn(5,2),a.qZA()),2&e&&(a.xp6(1),a.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},directives:[rl],encapsulation:2,changeDetection:0}),e}(),kb=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[Vu,al,zu,sl,r.ez],Vu,zu,sl,ub]}),e}(),Mb=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e,t,n){return e["".concat(n,"_").concat(t)]}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=a.Yjl({name:"localisedText",type:e,pure:!0}),e}(),Cb=function(e){return{color:e}};function Tb(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-list-item",2),a.NdJ("click",function(){var e=a.CHM(n).$implicit,t=a.oxw();return e.external?t.goToURL(e.link):t.shouldHideMenu()}),a.TgZ(1,"mat-icon"),a._uU(2),a.qZA(),a.TgZ(3,"span",3),a._uU(4),a.ALo(5,"localisedText"),a.ALo(6,"translate"),a.ALo(7,"customTranslate"),a.qZA(),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw();a.ekj("activated",r.isActive(i.activatedRegex)),a.s9C("routerLink",i.external?null:i.link),a.Q6J("ngStyle",a.VKq(16,Cb,r.textColor))("matRippleColor","rgba(255, 255, 255, 0.1)"),a.xp6(2),a.Oqu(i.icon),a.xp6(2),a.Oqu(i.external?a.Dn7(5,7,i,r.lang,"label"):a.lcZ(6,11,a.xi3(7,13,i.label,r.lang)))}}var Lb=function(){var e=function(){function e(t,n,i,r){var a=this;_classCallCheck(this,e),this.sideMenuItemService=t,this.storeService=n,this.router=i,this.translateService=r,this.items=[],this.lang="en",this.textColor=this.storeService.get("theme","sidemenu_text_color"),this.currentUrl=i.url,i.events.subscribe(function(e){e instanceof rt&&(a.currentUrl=e.url)})}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.translateService.onLangChange.subscribe(function(t){var n=t.lang;e.lang=n});var t=this.storeService.get("displayed_tabs");this.items=this.sideMenuItemService.getSideMenuItems(),this.items=this.items.filter(function(e){return t.includes(e.tabName)})}},{key:"isActive",value:function(e){return new RegExp(e).test(this.currentUrl)}},{key:"shouldHideMenu",value:function(){"over"===this.sideNav.mode&&this.sideNav.close()}},{key:"goToURL",value:function(e){window.open(e,"_blank")}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(cb),a.Y36(tr),a.Y36(zi),a.Y36(lh))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"mat-nav-list",0),a.YNc(1,Tb,8,18,"mat-list-item",1),a.qZA()),2&e&&(a.xp6(1),a.Q6J("ngForOf",t.items))},directives:[_b,r.sg,wb,rl,r.PC,Cy,Oi,sg],pipes:[Mb,hh,Wg],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}"]}),e}();function Sb(e,t){if(1&e&&(a.TgZ(0,"span",1),a.TgZ(1,"a",2),a._uU(2),a.qZA(),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Q6J("routerLink",n.routerLink),a.xp6(1),a.Oqu(n.label)}}var Eb=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.router=t,this.activatedRoute=n,this.translate=i,this.home={label:"Home",routerLink:"profile"},this.menuItems=[]}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.router.events.pipe((0,me.h)(function(e){return e instanceof rt})).subscribe(function(){e.menuItems=[],e.createBreadcrumbs(e.activatedRoute.root)})}},{key:"createBreadcrumbs",value:function(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=t.children;0!==r.length&&"service-access"!==r[0].snapshot.routeConfig.path&&r.forEach(function(t){var r=t.snapshot.url.map(function(e){return e.path}).join("/");""!==r&&(i+="/".concat(r));var a=n.translate.instant(t.snapshot.data[e.ROUTE_DATA_BREADCRUMB]);return!a||n.menuItems[n.menuItems.length-1]&&a===n.menuItems[n.menuItems.length-1].label||n.menuItems.push({label:a,routerLink:i}),n.createBreadcrumbs(t,i)})}}]),e}();return e.ROUTE_DATA_BREADCRUMB="breadcrumb",e.\u0275fac=function(t){return new(t||e)(a.Y36(zi),a.Y36(un),a.Y36(lh))},e.\u0275cmp=a.Xpm({type:e,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&&a.YNc(0,Sb,3,2,"span",0),2&e&&a.Q6J("ngForOf",t.menuItems)},directives:[r.sg,xi],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}']}),e}();function zb(e,t){1&e&&(a.TgZ(0,"mat-error"),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}var Ob=function(){var e=function(){function e(t,n,i,r,a){_classCallCheck(this,e),this.dialogRef=t,this.translate=n,this.notificator=i,this.rtMessages=r,this.storeService=a,this.message="",this.subject="",this.instanceName=""}return _createClass(e,[{key:"ngOnInit",value:function(){this.instanceName=this.storeService.get("config")}},{key:"sendBugReport",value:function(){var e=this;this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(function(t){e.dialogRef.afterClosed().subscribe(function(){return e.notificator.showSuccess(e.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+t.ticketNumber)}),e.dialogRef.close()})}},{key:"getFullEmailBody",value:function(){return this.message+"\n ------------------------\n Perun instance: "+this.instanceName+"\n Sended from new Perun Gui, version: "+n(306).i8}},{key:"close",value:function(){this.dialogRef.close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl),a.Y36(lh),a.Y36(xg),a.Y36(ce),a.Y36(tr))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.qZA(),a.TgZ(3,"div",1),a.TgZ(4,"mat-form-field"),a.TgZ(5,"mat-label"),a._uU(6),a.ALo(7,"translate"),a.qZA(),a.TgZ(8,"input",2,3),a.NdJ("ngModelChange",function(e){return t.subject=e}),a.qZA(),a.YNc(10,zb,3,3,"mat-error",4),a.qZA(),a.TgZ(11,"mat-form-field"),a.TgZ(12,"mat-label"),a._uU(13),a.ALo(14,"translate"),a.qZA(),a.TgZ(15,"textarea",5),a.NdJ("ngModelChange",function(e){return t.message=e}),a.ALo(16,"translate"),a._uU(17," "),a.qZA(),a.TgZ(18,"mat-hint"),a._uU(19),a.ALo(20,"translate"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(21,"div",6),a.TgZ(22,"div",7),a.TgZ(23,"button",8),a.NdJ("click",function(){return t.close()}),a._uU(24),a.ALo(25,"translate"),a.qZA(),a.TgZ(26,"button",9),a.NdJ("click",function(){return t.sendBugReport()}),a._uU(27),a.ALo(28,"translate"),a.qZA(),a.qZA(),a.qZA()),2&e){var n=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",t.subject),a.xp6(2),a.Q6J("ngIf",n.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",t.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",n.invalid),a.xp6(1),a.hij(" ",a.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[Nl,Il,td,Kh,tm,cd,kf,Rd,lf,r.O5,Uh,ql,_h,Hh],pipes:[hh],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),e}(),xb=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e,t){return e["link_"+t]||e.link_en}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=a.Yjl({name:"localisedLink",type:e,pure:!0}),e}(),Rb=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e){return e.includes("/")?e:"/assets/config/"+e}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=a.Yjl({name:"footerLogoPath",type:e,pure:!0}),e}();function Db(e,t){if(1&e&&(a.TgZ(0,"a",13),a.ALo(1,"localisedLink"),a._UZ(2,"img",14),a.ALo(3,"footerLogoPath"),a.qZA()),2&e){var n=a.oxw().$implicit,i=a.oxw(3);a.Q6J("href",a.xi3(1,2,n,i.language),a.LSH),a.xp6(2),a.s9C("src",a.lcZ(3,5,n.logo),a.LSH)}}function Pb(e,t){if(1&e&&(a.TgZ(0,"span"),a._UZ(1,"img",14),a.ALo(2,"footerLogoPath"),a.qZA()),2&e){var n=a.oxw().$implicit;a.xp6(1),a.s9C("src",a.lcZ(2,1,n.logo),a.LSH)}}function Nb(e,t){if(1&e&&(a.TgZ(0,"div"),a.YNc(1,Db,4,7,"a",11),a.ALo(2,"localisedLink"),a.YNc(3,Pb,3,3,"span",12),a.ALo(4,"localisedLink"),a.qZA()),2&e){var n=t.$implicit,i=a.oxw(3);a.xp6(1),a.Q6J("ngIf",a.xi3(2,2,n,i.language)),a.xp6(2),a.Q6J("ngIf",!a.xi3(4,5,n,i.language))}}var Ib=function(e){return{"min-height":e}};function qb(e,t){if(1&e&&(a.TgZ(0,"div",10),a.YNc(1,Nb,5,8,"div",5),a.qZA()),2&e){var n=a.oxw().$implicit,i=a.oxw();a.Q6J("ngStyle",a.VKq(2,Ib,i.columnContentHeight+"px")),a.xp6(1),a.Q6J("ngForOf",n.elements)}}var Bb=function(e){return{color:e}};function Hb(e,t){if(1&e&&(a.TgZ(0,"i",20),a._uU(1),a.qZA()),2&e){var n=a.oxw().$implicit,i=a.oxw(3);a.Q6J("ngStyle",a.VKq(2,Bb,i.linksTextColor)),a.xp6(1),a.hij(" ",n.icon," ")}}function Yb(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"span",21),a.NdJ("click",function(){a.CHM(n);var e=a.oxw().$implicit;return a.oxw(3).openDialog(e.dialog)}),a._uU(1),a.ALo(2,"localisedText"),a.qZA()}if(2&e){var i=a.oxw().$implicit,r=a.oxw(3);a.Q6J("ngStyle",a.VKq(6,Bb,r.linksTextColor)),a.xp6(1),a.hij("",a.Dn7(2,2,i,r.language,"label")," ")}}function jb(e,t){if(1&e&&(a.TgZ(0,"a",22),a.ALo(1,"localisedLink"),a._uU(2),a.ALo(3,"localisedText"),a.qZA()),2&e){var n=a.oxw().$implicit,i=a.oxw(3);a.Q6J("href",a.xi3(1,3,n,i.language),a.LSH)("ngStyle",a.VKq(10,Bb,i.linksTextColor)),a.xp6(2),a.Oqu(a.Dn7(3,6,n,i.language,"label"))}}function Fb(e,t){if(1&e&&(a.TgZ(0,"span",10),a._uU(1),a.ALo(2,"localisedText"),a.qZA()),2&e){var n=a.oxw().$implicit,i=a.oxw(3);a.Q6J("ngStyle",a.VKq(6,Bb,i.linksTextColor)),a.xp6(1),a.Oqu(a.Dn7(2,2,n,i.language,"label"))}}function Wb(e,t){if(1&e&&(a.TgZ(0,"div",16),a.YNc(1,Hb,2,4,"i",17),a.YNc(2,Yb,3,8,"span",18),a.YNc(3,jb,4,12,"a",19),a.ALo(4,"localisedLink"),a.YNc(5,Fb,3,8,"span",9),a.ALo(6,"localisedLink"),a.qZA()),2&e){var n=t.$implicit,i=a.oxw(3);a.xp6(1),a.Q6J("ngIf",n.icon),a.xp6(1),a.Q6J("ngIf",n.dialog),a.xp6(1),a.Q6J("ngIf",a.xi3(4,4,n,i.language)&&!n.dialog),a.xp6(2),a.Q6J("ngIf",!a.xi3(6,7,n,i.language)&&!n.dialog)}}var Ub=function(e){return{height:e}};function Kb(e,t){if(1&e&&(a.TgZ(0,"div",10),a.YNc(1,Wb,7,10,"div",15),a.qZA()),2&e){var n=a.oxw().$implicit,i=a.oxw();a.Q6J("ngStyle",a.VKq(2,Ub,i.columnContentHeight+"px")),a.xp6(1),a.Q6J("ngForOf",n.elements)}}function Zb(e,t){if(1&e&&(a.TgZ(0,"div",7),a.TgZ(1,"h6",8),a._uU(2),a.ALo(3,"localisedText"),a.qZA(),a.YNc(4,qb,2,4,"div",9),a.YNc(5,Kb,2,4,"div",9),a.qZA()),2&e){var n=t.$implicit,i=a.oxw();a.ekj("my-auto",i.containsLogos),a.xp6(1),a.Q6J("ngStyle",a.VKq(10,Bb,i.headersTextColor)),a.xp6(1),a.hij(" ",a.Dn7(3,6,n,i.language,"title")," "),a.xp6(2),a.Q6J("ngIf",n.logos),a.xp6(1),a.Q6J("ngIf",n.elements&&!n.logos)}}function Gb(e,t){if(1&e&&(a.TgZ(0,"span"),a.TgZ(1,"a",6),a._uU(2),a.qZA(),a.qZA()),2&e){var n=t.$implicit,i=t.index,r=a.oxw();a.xp6(1),a.Q6J("href",n.url,a.LSH)("ngStyle",a.VKq(3,Bb,r.copyrightTextColor)),a.xp6(1),a.Oqu(i?", "+n.name:n.name)}}var Xb=function(e){return{background:e}},Vb=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.storeService=t,this.translateService=n,this.dialog=i,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.items=[],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}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.translateService.onLangChange.subscribe(function(t){e.language=t.lang}),this.version=n(306).i8,this.items=this.storeService.get("footer","columns");var t,i=_createForOfIteratorHelper(this.items);try{for(i.s();!(t=i.n()).done;){var r=t.value;r.logos?this.containsLogos=!0:25*r.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*r.elements.length)}}catch(a){i.e(a)}finally{i.f()}this.copyrightItems=this.storeService.get("footer","copyright_items")}},{key:"openDialog",value:function(e){var t=dg();switch(e){case"reportIssue":t.width="550px",this.dialog.open(Ob,t)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(tr),a.Y36(lh),a.Y36(Dl))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"footer",0),a.TgZ(1,"div",1),a.YNc(2,Zb,6,12,"div",2),a.qZA(),a._UZ(3,"hr",3),a.TgZ(4,"div",4),a._uU(5),a.YNc(6,Gb,3,5,"span",5),a._uU(7," Version "),a.TgZ(8,"a",6),a._uU(9),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.Q6J("ngStyle",a.VKq(8,Xb,t.bgColor)),a.xp6(2),a.Q6J("ngForOf",t.items),a.xp6(2),a.Q6J("ngStyle",a.VKq(10,Bb,t.copyrightTextColor)),a.xp6(1),a.hij(" \xa9 ",t.currentYear," Copyright: "),a.xp6(1),a.Q6J("ngForOf",t.copyrightItems),a.xp6(2),a.Q6J("href",t.githubRepository,a.LSH)("ngStyle",a.VKq(12,Bb,t.copyrightTextColor)),a.xp6(1),a.Oqu(t.version))},directives:[r.PC,r.sg,r.O5],pipes:[Mb,xb,Rb],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}"]}),e}();function Jb(e,t){if(1&e&&(a.TgZ(0,"div",8),a._UZ(1,"div",9),a.qZA()),2&e){var n=a.oxw();a.xp6(1),a.Q6J("innerHTML",n.logo,a.oJD)}}function Qb(e,t){if(1&e&&(a.TgZ(0,"div",10),a._UZ(1,"div",11),a._UZ(2,"mat-icon",12),a.qZA()),2&e){var n=a.oxw();a.xp6(1),a.Q6J("innerHTML",n.logo,a.oJD)}}function $b(e,t){if(1&e&&(a.TgZ(0,"div",8),a._UZ(1,"a",9),a.qZA()),2&e){var n=a.oxw();a.xp6(1),a.Q6J("innerHTML",n.logo,a.oJD)}}var eA=function(e){return{color:e}};function tA(e,t){if(1&e&&(a.TgZ(0,"p",13),a._uU(1),a.qZA()),2&e){var n=a.oxw();a.Q6J("ngStyle",a.VKq(2,eA,n.textColor)),a.xp6(1),a.hij(" ",n.headerTitle," ")}}var nA=function(e,t){return{background:e,color:t}},iA=function(e,t){return{"min-height":e,"background-color":t}},rA=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this.storeService=t,this.sanitizer=n,this.preferredLangService=i,this.translateService=r,this.contentBackgroundColor=this.storeService.get("theme","content_bg_color")}return _createClass(e,[{key:"ngOnInit",value:function(){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){var e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e)}}},{key:"getContentInnerMinHeight",value:function(){return"calc((100vh - 64px) + 0px)"}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(tr),a.Y36(x),a.Y36(Ig),a.Y36(lh))},e.\u0275cmp=a.Xpm({type:e,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:11,vars:12,consts:[["id","login-nav",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["style"," display: flex; flex-direction: 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"],[2,"display","flex","flex-direction","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&&(a.TgZ(0,"div",0),a.YNc(1,Jb,2,1,"div",1),a.YNc(2,Qb,3,1,"div",2),a.YNc(3,$b,2,1,"div",1),a.YNc(4,tA,2,4,"p",3),a.qZA(),a.TgZ(5,"div",4),a.TgZ(6,"div",5),a.TgZ(7,"div",6),a._UZ(8,"router-outlet"),a.qZA(),a.TgZ(9,"div",7),a._UZ(10,"perun-web-apps-footer"),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.Q6J("ngStyle",a.WLB(6,nA,t.headerBackgroundColor,t.headerTextColor)),a.xp6(1),a.Q6J("ngIf","admin-gui"===t.application),a.xp6(1),a.Q6J("ngIf","publications"===t.application),a.xp6(1),a.Q6J("ngIf","user-profile"===t.application),a.xp6(1),a.Q6J("ngIf",!!t.headerTitle),a.xp6(2),a.Q6J("ngStyle",a.WLB(9,iA,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},directives:[r.PC,r.O5,Di,Vb,sg],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}"]}),e}(),aA=["footer"],oA=function(e){return{background:e}},sA=function(e){return{"min-height":e}};function cA(e,t){if(1&e){var n=a.EpF();a._UZ(0,"perun-web-apps-notificator"),a.TgZ(1,"div",2),a.TgZ(2,"perun-web-apps-header",3),a.NdJ("sidenavToggle",function(){return a.CHM(n),a.MAs(5).toggle()}),a.qZA(),a.TgZ(3,"mat-sidenav-container"),a.TgZ(4,"mat-sidenav",4,5),a._UZ(6,"perun-web-apps-side-menu",6),a.qZA(),a.TgZ(7,"mat-sidenav-content",7),a.TgZ(8,"div",8),a._UZ(9,"perun-web-apps-breadcrumbs"),a._UZ(10,"router-outlet"),a.qZA(),a.TgZ(11,"div",null,9),a._UZ(13,"perun-web-apps-footer"),a.qZA(),a.qZA(),a.qZA(),a.qZA()}if(2&e){var i=a.MAs(5),r=a.oxw();a.xp6(4),a.Q6J("mode",r.sidebarMode)("ngStyle",a.VKq(6,oA,r.sideMenuBgColor))("opened",!r.isMobile()),a.xp6(2),a.Q6J("sideNav",i),a.xp6(1),a.Q6J("ngStyle",a.VKq(8,oA,r.contentBackgroundColor)),a.xp6(1),a.Q6J("ngStyle",a.VKq(10,sA,r.contentHeight))}}function uA(e,t){if(1&e&&a._UZ(0,"perun-web-apps-login-screen-base",10),2&e){var n=a.oxw();a.Q6J("application","user-profile")("headerTitle",n.headerLabel)}}var lA=function(){var e=function(){function e(t,n,i,r,a,o){_classCallCheck(this,e),this.store=t,this.attributesManagerService=n,this.translateService=i,this.initAuth=r,this.changeDetector=a,this.preferredLangService=o,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()}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.isLoginScreenShown=this.initAuth.isLoginScreenShown(),this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),sessionStorage.removeItem("baLogout"),this.isLoginScreenShown?this.headerLabel=this.store.get("header_label_".concat(this.preferredLangService.getPreferredLanguage(null))):this.isServiceAccess||this.attributesManagerService.getUserAttributes(this.store.getPerunPrincipal().userId).subscribe(function(t){var n=t.find(function(e){return"preferredLanguage"===e.friendlyName}),i=n&&n.value?n.value.toString():null,r=e.preferredLangService.getPreferredLanguage(i);e.translateService.use(r)})}},{key:"getScreenSize",value:function(){this.sidebarMode=this.isMobile()?"over":"side"}},{key:"isMobile",value:function(){return window.innerWidth<=e.minWidth}},{key:"isServiceLogin",value:function(){return!!sessionStorage.getItem("baLogout")}},{key:"ngAfterViewInit",value:function(){this.contentHeight="calc(100vh - 84px - "+this.footer.nativeElement.offsetHeight+"px)",this.changeDetector.detectChanges()}}]),e}();return e.minWidth=992,e.\u0275fac=function(t){return new(t||e)(a.Y36(tr),a.Y36(re),a.Y36(lh),a.Y36(Sg),a.Y36(a.sBO),a.Y36(Ig))},e.\u0275cmp=a.Xpm({type:e,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){var n;(1&e&&a.Gf(aA,5),2&e)&&(a.iGM(n=a.CRH())&&(t.footer=n.first))},hostBindings:function(e,t){1&e&&a.NdJ("resize",function(e){return t.getScreenSize(e)},!1,a.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&&(a.YNc(0,cA,14,12,"ng-template",0),a.YNc(1,uA,1,2,"perun-web-apps-login-screen-base",1)),2&e&&(a.Q6J("ngIf",!t.isLoginScreenShown&&!t.isServiceAccess&&!t.isServiceLogin()),a.xp6(1),a.Q6J("ngIf",t.isLoginScreenShown||t.isServiceAccess||t.isServiceLogin()))},directives:[r.O5,E_,qy,ob,ab,r.PC,Cy,Lb,rb,Eb,Di,Vb,rA],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}"]}),e}(),hA=n(9355);function dA(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",15),a.NdJ("click",function(){a.CHM(n);var e=a.oxw().index;return a.oxw().removeValue(e)}),a.TgZ(1,"mat-icon"),a._uU(2," indeterminate_check_box "),a.qZA(),a.qZA()}}function fA(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",9),a.TgZ(1,"mat-form-field",10),a._UZ(2,"label",11),a.TgZ(3,"input",12),a.NdJ("click",function(){var e=a.CHM(n).index,t=a.oxw();return t.readonly&&t.attribute.displayName&&t.showValue(t.keys[e],t.attribute.displayName)})("ngModelChange",function(e){var t=a.CHM(n).index;return a.oxw().keys[t]=e}),a.qZA(),a.qZA(),a.TgZ(4,"mat-form-field",10),a._UZ(5,"label",11),a.TgZ(6,"input",13),a.NdJ("click",function(){var e=a.CHM(n).$implicit,t=a.oxw();return t.readonly&&void 0!==t.attribute.displayName&&t.showValue(e,t.attribute.displayName)})("ngModelChange",function(e){var t=a.CHM(n).index;return a.oxw().values[t]=e}),a.qZA(),a.qZA(),a.YNc(7,dA,3,0,"button",14),a.qZA()}if(2&e){var i=t.index,r=a.oxw();a.xp6(1),a.s9C("appearance",r.readonly?"none":"standard"),a.xp6(1),a.hYB("for","",r.attribute.id,"-key-",i,""),a.xp6(1),a.ekj("cursor-pointer",r.readonly&&void 0!==r.attribute.displayName),a.hYB("id","",r.attribute.id,"-key-",i,""),a.MGl("name","key-",i,""),a.Q6J("ngModel",r.keys[i])("readonly",r.readonly),a.xp6(1),a.s9C("appearance",r.readonly?"none":"standard"),a.xp6(1),a.hYB("for","",r.attribute.id,"-value-",i,""),a.xp6(1),a.ekj("cursor-pointer",r.readonly&&void 0!==r.attribute.displayName),a.MGl("name","value-",i,""),a.hYB("id","",r.attribute.id,"-value-",i,""),a.Q6J("readonly",r.readonly)("ngModel",r.values[i]),a.xp6(1),a.Q6J("ngIf",!r.readonly)}}function pA(e,t){1&e&&(a.TgZ(0,"mat-icon"),a._uU(1,"more_horiz"),a.qZA())}function gA(e,t){1&e&&(a.TgZ(0,"mat-icon"),a._uU(1,"keyboard_arrow_up"),a.qZA())}function mA(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",16),a.NdJ("click",function(){return a.CHM(n),a.oxw().onShowChange()}),a.YNc(1,pA,2,0,"mat-icon",17),a.YNc(2,gA,2,0,"mat-icon",17),a.qZA()}if(2&e){var i=a.oxw();a.xp6(1),a.Q6J("ngIf",!i.showMore),a.xp6(1),a.Q6J("ngIf",i.showMore)}}function vA(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",18),a.NdJ("click",function(){return a.CHM(n),a.oxw().addValue()}),a.TgZ(1,"mat-icon"),a._uU(2," add_box "),a.qZA(),a.qZA()}}var _A=function(){var e=function(){function e(t){_classCallCheck(this,e),this.dialog=t,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}return _createClass(e,[{key:"ngOnInit",value:function(){if(this.attribute.value)for(var e=this.attribute.value,t=0,n=Object.entries(e);tthis.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}},{key:"removeValue",value:function(e){this.keys.splice(e,1),this.values.splice(e,1)}},{key:"updateAttribute",value:function(){for(var e={},t=0;tt.defaultItemsShown),a.xp6(1),a.Q6J("ngIf",!t.readonly))},directives:[hf,Dd,sf,r.sg,up,r.O5,td,tm,cd,kf,Rd,lf,_h,sg],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}"]}),e}(),yA=["input"],bA=function(e){return{enterDuration:e}},AA=["*"],wA=new a.OlP("mat-checkbox-default-options",{providedIn:"root",factory:kA});function kA(){return{color:"accent",clickAction:"check-indeterminate"}}var MA=0,CA={color:"accent",clickAction:"check-indeterminate"},TA={provide:ad,useExisting:(0,a.Gpc)(function(){return EA}),multi:!0},LA=function e(){_classCallCheck(this,e)},SA=Du(xu(Ru(Ou(function e(t){_classCallCheck(this,e),this._elementRef=t})))),EA=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,s,c,u){var l;return _classCallCheck(this,n),(l=t.call(this,e))._changeDetectorRef=i,l._focusMonitor=r,l._ngZone=o,l._animationMode=c,l._options=u,l.ariaLabel="",l.ariaLabelledby=null,l._uniqueId="mat-checkbox-"+ ++MA,l.id=l._uniqueId,l.labelPosition="after",l.name=null,l.change=new a.vpe,l.indeterminateChange=new a.vpe,l._onTouched=function(){},l._currentAnimationClass="",l._currentCheckState=0,l._controlValueAccessorChangeFn=function(){},l._checked=!1,l._disabled=!1,l._indeterminate=!1,l._options=l._options||CA,l.color=l.defaultColor=l._options.color||CA.color,l.tabIndex=parseInt(s)||0,l}return _createClass(n,[{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"required",get:function(){return this._required},set:function(e){this._required=nr(e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){t||Promise.resolve().then(function(){e._onTouched(),e._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"checked",get:function(){return this._checked},set:function(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(e){var t=nr(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(e){var t=e!=this._indeterminate;this._indeterminate=nr(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(e){this.checked=!!e}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(e){var t=this._currentCheckState,n=this._elementRef.nativeElement;if(t!==e&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);var i=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){n.classList.remove(i)},1e3)})}}},{key:"_emitChangeEvent",value:function(){var e=new LA;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(e){var t,n=this,i=null===(t=this._options)||void 0===t?void 0:t.clickAction;e.stopPropagation(),this.disabled||"noop"===i?this.disabled||"noop"!==i||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(function(){n._indeterminate=!1,n.indeterminateChange.emit(n._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}},{key:"_onInteractionEvent",value:function(e){e.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(e,t){if("NoopAnimations"===this._animationMode)return"";var n="";switch(e){case 0:if(1===t)n="unchecked-checked";else{if(3!=t)return"";n="unchecked-indeterminate"}break;case 2:n=1===t?"unchecked-checked":"unchecked-indeterminate";break;case 1:n=2===t?"checked-unchecked":"checked-indeterminate";break;case 3:n=1===t?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-".concat(n)}},{key:"_syncIndeterminate",value:function(e){var t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}]),n}(SA);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(jo),a.Y36(a.R0b),a.$8M("tabindex"),a.Y36(_u,8),a.Y36(wA,8))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-checkbox"]],viewQuery:function(e,t){var n;(1&e&&(a.Gf(yA,5),a.Gf(rl,5)),2&e)&&(a.iGM(n=a.CRH())&&(t._inputElement=n.first),a.iGM(n=a.CRH())&&(t.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&(a.Ikx("id",t.id),a.uIk("tabindex",null),a.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",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[a._Bn([TA]),a.qOj],ngContentSelectors:AA,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",0,"xml","space","preserve",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&&(a.F$t(),a.TgZ(0,"label",0,1),a.TgZ(2,"span",2),a.TgZ(3,"input",3,4),a.NdJ("change",function(e){return t._onInteractionEvent(e)})("click",function(e){return t._onInputClick(e)}),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.qZA(),a.TgZ(12,"span",12,13),a.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),a.TgZ(14,"span",14),a._uU(15,"\xa0"),a.qZA(),a.Hsn(16),a.qZA(),a.qZA()),2&e){var n=a.MAs(1),i=a.MAs(13);a.uIk("for",t.inputId),a.xp6(2),a.ekj("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),a.xp6(1),a.Q6J("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),a.uIk("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),a.xp6(2),a.Q6J("matRippleTrigger",n)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",a.VKq(19,bA,"NoopAnimations"===t._animationMode?0:150))}},directives:[rl,_o],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:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-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;-moz-user-select:auto;-ms-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:transparent;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:transparent}.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%}\n"],encapsulation:2,changeDetection:0}),e}(),zA=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({}),e}(),OA=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[al,zu,yo,zA],zu,zA]}),e}(),xA=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e){return e.replace(/\s/g,"-").toLowerCase()}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=a.Yjl({name:"multiWordDataCy",type:e,pure:!0}),e}();function RA(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-checkbox",2),a.NdJ("change",function(){return a.CHM(n),a.oxw()._sendEventToParent()})("ngModelChange",function(e){return a.CHM(n),a.oxw().attribute.value=e}),a.ALo(1,"multiWordDataCy"),a.qZA()}if(2&e){var i=a.oxw();a.Q2q("data-cy","",a.lcZ(1,2,i.attribute.displayName),"-value"),a.Q6J("ngModel",i.attribute.value)}}function DA(e,t){if(1&e&&(a.TgZ(0,"mat-label"),a._uU(1),a.qZA()),2&e){var n=a.oxw();a.xp6(1),a.Oqu(n.attribute.value)}}var PA=function(){var e=function(){function e(){_classCallCheck(this,e),this.readonly=!1,this.sendEventToParent=new a.vpe}return _createClass(e,[{key:"ngOnInit",value:function(){this.readonly||(this.readonly=fg(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"div"),a.YNc(1,RA,2,4,"mat-checkbox",0),a.YNc(2,DA,2,1,"mat-label",1),a.qZA()),2&e&&(a.xp6(1),a.Q6J("ngIf",!t.readonly),a.xp6(1),a.Q6J("ngIf",t.readonly))},directives:[r.O5,EA,Rd,lf,Kh],pipes:[xA],styles:[""]}),e}();function NA(e){var t=e.subscriber,n=e.counter,i=e.period;t.next(n),this.schedule({subscriber:t,counter:n+1,period:i},i)}function IA(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function qA(e,t){var n=t?"":"none";IA(e.style,{touchAction:t?"":"none",webkitUserDrag:t?"":"none",webkitTapHighlightColor:t?"":"transparent",userSelect:n,msUserSelect:n,webkitUserSelect:n,MozUserSelect:n})}function BA(e,t){var n=e.style;n.position=t?"":"fixed",n.top=n.opacity=t?"":"0",n.left=t?"":"-999em"}function HA(e,t){return t?e+" "+t:e}function YA(e){var t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function jA(e,t){return e.getPropertyValue(t).split(",").map(function(e){return e.trim()})}function FA(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}function WA(e,t,n){var i=e.top,r=e.bottom,a=e.left,o=e.right;return n>=i&&n<=r&&t>=a&&t<=o}function UA(e,t,n){e.top+=t,e.bottom=e.top+e.height,e.left+=n,e.right=e.left+e.width}function KA(e,t,n,i){var r=e.top,a=e.right,o=e.bottom,s=e.left,c=e.width*t,u=e.height*t;return i>r-u&&is-c&&n=s._config.dragStartThreshold){var r=Date.now()>=s._dragStartTime+s._getDragStartDelay(e),a=s._dropContainer;if(!r)return void s._endDragSequence(e);a&&(a.isDragging()||a.isReceiving())||(e.preventDefault(),s._hasStartedDragging=!0,s._ngZone.run(function(){return s._startDragSequence(e)}))}},this._pointerUp=function(e){s._endDragSequence(e)},this.withRootElement(t).withParent(n.parentDragRef||null),this._parentPositions=new ZA(i,a),o.registerDragItem(this)}return _createClass(e,[{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(e){var t=nr(e);t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions(),this._handles.forEach(function(e){return qA(e,t)}))}},{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(e){var t=this;this._handles=e.map(function(e){return sr(e)}),this._handles.forEach(function(e){return qA(e,t.disabled)}),this._toggleNativeDragInteractions();var n=new Set;return this._disabledHandles.forEach(function(e){t._handles.indexOf(e)>-1&&n.add(e)}),this._disabledHandles=n,this}},{key:"withPreviewTemplate",value:function(e){return this._previewTemplate=e,this}},{key:"withPlaceholderTemplate",value:function(e){return this._placeholderTemplate=e,this}},{key:"withRootElement",value:function(e){var t=this,n=sr(e);return n!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(function(){n.addEventListener("mousedown",t._pointerDown,ew),n.addEventListener("touchstart",t._pointerDown,$A)}),this._initialTransform=void 0,this._rootElement=n),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}},{key:"withBoundaryElement",value:function(e){var t=this;return this._boundaryElement=e?sr(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(function(){return t._containInsideBoundaryOnResize()})),this}},{key:"withParent",value:function(e){return this._parentDragRef=e,this}},{key:"dispose",value:function(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&rw(this._rootElement),rw(this._anchor),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}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),qA(e,!0))}},{key:"enableHandle",value:function(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),qA(e,this.disabled))}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"_withDropContainer",value:function(e){this._dropContainer=e}},{key:"getFreeDragPosition",value:function(){var e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}},{key:"setFreeDragPosition",value:function(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}},{key:"withPreviewContainer",value:function(e){return this._previewContainer=e,this}},{key:"_sortFromLastPointerPosition",value:function(){var e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){this._preview&&rw(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&rw(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(e){var t=this;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}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(function(){t._cleanupDragArtifacts(e),t._cleanupCachedDimensions(),t._dragDropRegistry.stopDragging(t)});else{this._passiveTransform.x=this._activeTransform.x;var n=this._getPointerPositionOnPage(e);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(function(){t.ended.next({source:t,distance:t._getDragDistance(n),dropPoint:n})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}},{key:"_startDragSequence",value:function(e){aw(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();var t=this._dropContainer;if(t){var n=this._rootElement,i=n.parentNode,r=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment(""),o=this._getShadowRoot();i.insertBefore(a,n),this._initialTransform=n.style.transform||"",this._preview=this._createPreviewElement(),BA(n,!1),this._document.body.appendChild(i.replaceChild(r,n)),this._getPreviewInsertionPoint(i,o).appendChild(this._preview),this.started.next({source:this}),t.start(),this._initialContainer=t,this._initialIndex=t.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(t?t.getScrollableParents():[])}},{key:"_initializeDragSequence",value:function(e,t){var n=this;this._parentDragRef&&t.stopPropagation();var i=this.isDragging(),r=aw(t),a=!r&&0!==t.button,o=this._rootElement,s=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(t.target&&t.target.draggable&&"mousedown"===t.type&&t.preventDefault(),!(i||a||s)){this._handles.length&&(this._rootElementTapHighlight=o.style.webkitTapHighlightColor||"",o.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(function(e){n._updateOnScroll(e)}),this._boundaryElement&&(this._boundaryRect=FA(this._boundaryElement));var c=this._previewTemplate;this._pickupPositionInElement=c&&c.template&&!c.matchSize?{x:0,y:0}:this._getPointerPositionInElement(e,t);var u=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:u.x,y:u.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}}},{key:"_cleanupDragArtifacts",value:function(e){var t=this;BA(this._rootElement,!0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(function(){var n=t._dropContainer,i=n.getItemIndex(t),r=t._getPointerPositionOnPage(e),a=t._getDragDistance(r),o=n._isOverContainer(r.x,r.y);t.ended.next({source:t,distance:a,dropPoint:r}),t.dropped.next({item:t,currentIndex:i,previousIndex:t._initialIndex,container:n,previousContainer:t._initialContainer,isPointerOverContainer:o,distance:a,dropPoint:r}),n.drop(t,i,t._initialIndex,t._initialContainer,o,a,r),t._dropContainer=t._initialContainer})}},{key:"_updateActiveDropContainer",value:function(e,t){var n=this,i=e.x,r=e.y,a=t.x,o=t.y,s=this._initialContainer._getSiblingContainerFromPosition(this,i,r);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,r)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(function(){n.exited.next({item:n,container:n._dropContainer}),n._dropContainer.exit(n),n._dropContainer=s,n._dropContainer.enter(n,i,r,s===n._initialContainer&&s.sortingDisabled?n._initialIndex:void 0),n.entered.next({item:n,container:s,currentIndex:s.getItemIndex(n)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(a,o),this._dropContainer._sortItem(this,i,r,this._pointerDirectionDelta),this._applyPreviewTransform(i-this._pickupPositionInElement.x,r-this._pickupPositionInElement.y))}},{key:"_createPreviewElement",value:function(){var e,t=this._previewTemplate,n=this.previewClass,i=t?t.template:null;if(i&&t){var r=t.matchSize?this._rootElement.getBoundingClientRect():null,a=t.viewContainer.createEmbeddedView(i,t.context);a.detectChanges(),e=ow(a,this._document),this._previewRef=a,t.matchSize?sw(e,r):e.style.transform=nw(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var o=this._rootElement;sw(e=GA(o),o.getBoundingClientRect()),this._initialTransform&&(e.style.transform=this._initialTransform)}return IA(e.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:"".concat(this._config.zIndex||1e3)}),qA(e,!1),e.classList.add("cdk-drag-preview"),e.setAttribute("dir",this._direction),n&&(Array.isArray(n)?n.forEach(function(t){return e.classList.add(t)}):e.classList.add(n)),e}},{key:"_animatePreviewToPlaceholder",value:function(){var e=this;if(!this._hasMoved)return Promise.resolve();var t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);var n=function(e){var t=getComputedStyle(e),n=jA(t,"transition-property"),i=n.find(function(e){return"transform"===e||"all"===e});if(!i)return 0;var r=n.indexOf(i),a=jA(t,"transition-duration"),o=jA(t,"transition-delay");return YA(a[r])+YA(o[r])}(this._preview);return 0===n?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(t){var i=function n(i){(!i||i.target===e._preview&&"transform"===i.propertyName)&&(e._preview.removeEventListener("transitionend",n),t(),clearTimeout(r))},r=setTimeout(i,1.5*n);e._preview.addEventListener("transitionend",i)})})}},{key:"_createPlaceholderElement",value:function(){var e,t=this._placeholderTemplate,n=t?t.template:null;return n?(this._placeholderRef=t.viewContainer.createEmbeddedView(n,t.context),this._placeholderRef.detectChanges(),e=ow(this._placeholderRef,this._document)):e=GA(this._rootElement),e.classList.add("cdk-drag-placeholder"),e}},{key:"_getPointerPositionInElement",value:function(e,t){var n=this._rootElement.getBoundingClientRect(),i=e===this._rootElement?null:e,r=i?i.getBoundingClientRect():n,a=aw(t)?t.targetTouches[0]:t,o=this._getViewportScrollPosition();return{x:r.left-n.left+(a.pageX-r.left-o.left),y:r.top-n.top+(a.pageY-r.top-o.top)}}},{key:"_getPointerPositionOnPage",value:function(e){var t=this._getViewportScrollPosition(),n=aw(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,i=n.pageX-t.left,r=n.pageY-t.top;if(this._ownerSVGElement){var a=this._ownerSVGElement.getScreenCTM();if(a){var o=this._ownerSVGElement.createSVGPoint();return o.x=i,o.y=r,o.matrixTransform(a.inverse())}}return{x:i,y:r}}},{key:"_getConstrainedPointerPosition",value:function(e){var t=this._dropContainer?this._dropContainer.lockAxis:null,n=this.constrainPosition?this.constrainPosition(e,this):e,i=n.x,r=n.y;if("x"===this.lockAxis||"x"===t?r=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==t||(i=this._pickupPositionOnPage.x),this._boundaryRect){var a=this._pickupPositionInElement,o=a.x,s=a.y,c=this._boundaryRect,u=this._previewRect,l=c.top+s,h=c.bottom-(u.height-s);i=iw(i,c.left+o,c.right-(u.width-o)),r=iw(r,l,h)}return{x:i,y:r}}},{key:"_updatePointerDirectionDelta",value:function(e){var t=e.x,n=e.y,i=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,a=Math.abs(t-r.x),o=Math.abs(n-r.y);return a>this._config.pointerDirectionChangeThreshold&&(i.x=t>r.x?1:-1,r.x=t),o>this._config.pointerDirectionChangeThreshold&&(i.y=n>r.y?1:-1,r.y=n),i}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,qA(this._rootElement,e))}}},{key:"_removeRootElementListeners",value:function(e){e.removeEventListener("mousedown",this._pointerDown,ew),e.removeEventListener("touchstart",this._pointerDown,$A)}},{key:"_applyRootElementTransform",value:function(e,t){var n=nw(e,t);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=HA(n,this._initialTransform)}},{key:"_applyPreviewTransform",value:function(e,t){var n,i=(null===(n=this._previewTemplate)||void 0===n?void 0:n.template)?void 0:this._initialTransform,r=nw(e,t);this._preview.style.transform=HA(r,i)}},{key:"_getDragDistance",value:function(e){var t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}},{key:"_containInsideBoundaryOnResize",value:function(){var e=this._passiveTransform,t=e.x,n=e.y;if(!(0===t&&0===n||this.isDragging())&&this._boundaryElement){var i=this._boundaryElement.getBoundingClientRect(),r=this._rootElement.getBoundingClientRect();if(!(0===i.width&&0===i.height||0===r.width&&0===r.height)){var a=i.left-r.left,o=r.right-i.right,s=i.top-r.top,c=r.bottom-i.bottom;i.width>r.width?(a>0&&(t+=a),o>0&&(t-=o)):t=0,i.height>r.height?(s>0&&(n+=s),c>0&&(n-=c)):n=0,t===this._passiveTransform.x&&n===this._passiveTransform.y||this.setFreeDragPosition({y:n,x:t})}}}},{key:"_getDragStartDelay",value:function(e){var t=this.dragStartDelay;return"number"==typeof t?t:aw(e)?t.touch:t?t.mouse:0}},{key:"_updateOnScroll",value:function(e){var t=this._parentPositions.handleScroll(e);if(t){var n=e.target;this._boundaryRect&&(n===this._document||n!==this._boundaryElement&&n.contains(this._boundaryElement))&&UA(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}},{key:"_getViewportScrollPosition",value:function(){var e=this._parentPositions.positions.get(this._document);return e?e.scrollPosition:this._viewportRuler.getViewportScrollPosition()}},{key:"_getShadowRoot",value:function(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=ca(this._rootElement)),this._cachedShadowRoot}},{key:"_getPreviewInsertionPoint",value:function(e,t){var n=this._previewContainer||"global";if("parent"===n)return e;if("global"===n){var i=this._document;return t||i.fullscreenElement||i.webkitFullscreenElement||i.mozFullScreenElement||i.msFullscreenElement||i.body}return sr(n)}}]),e}();function nw(e,t){return"translate3d(".concat(Math.round(e),"px, ").concat(Math.round(t),"px, 0)")}function iw(e,t,n){return Math.max(t,Math.min(n,e))}function rw(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function aw(e){return"t"===e.type[0]}function ow(e,t){var n=e.rootNodes;if(1===n.length&&n[0].nodeType===t.ELEMENT_NODE)return n[0];var i=t.createElement("div");return n.forEach(function(e){return i.appendChild(e)}),i}function sw(e,t){e.style.width="".concat(t.width,"px"),e.style.height="".concat(t.height,"px"),e.style.transform=nw(t.left,t.top)}function cw(e,t,n){var i=uw(t,e.length-1),r=uw(n,e.length-1);if(i!==r){for(var a=e[i],o=r0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Sr.P;return(!Rr(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=Sr.P),new ke.y(function(n){return n.add(t.schedule(NA,e,{subscriber:n,counter:0,period:e})),n})}(0,gr).pipe(Ir(o._stopScrollTimers)).subscribe(function(){var e=o._scrollNode,t=o.autoScrollStep;1===o._verticalScrollDirection?dw(e,-t):2===o._verticalScrollDirection&&dw(e,t),1===o._horizontalScrollDirection?fw(e,-t):2===o._horizontalScrollDirection&&fw(e,t)})},this.element=sr(t),this._document=i,this.withScrollableParents([this.element]),n.registerDropContainer(this),this._parentPositions=new ZA(i,a)}return _createClass(e,[{key:"dispose",value:function(){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)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"start",value:function(){this._draggingStarted(),this._notifyReceivingSiblings()}},{key:"enter",value:function(e,t,n,i){var r;this._draggingStarted(),null==i?-1===(r=this.sortingDisabled?this._draggables.indexOf(e):-1)&&(r=this._getItemIndexFromPointerPosition(e,t,n)):r=i;var a=this._activeDraggables,o=a.indexOf(e),s=e.getPlaceholderElement(),c=a[r];if(c===e&&(c=a[r+1]),o>-1&&a.splice(o,1),c&&!this._dragDropRegistry.isDragging(c)){var u=c.getRootElement();u.parentElement.insertBefore(s,u),a.splice(r,0,e)}else if(this._shouldEnterAsFirstChild(t,n)){var l=a[0].getRootElement();l.parentNode.insertBefore(s,l),a.unshift(e)}else sr(this.element).appendChild(s),a.push(e);s.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}},{key:"exit",value:function(e){this._reset(),this.exited.next({item:e,container:this})}},{key:"drop",value:function(e,t,n,i,r,a,o){this._reset(),this.dropped.next({item:e,currentIndex:t,previousIndex:n,container:this,previousContainer:i,isPointerOverContainer:r,distance:a,dropPoint:o})}},{key:"withItems",value:function(e){var t=this,n=this._draggables;return this._draggables=e,e.forEach(function(e){return e._withDropContainer(t)}),this.isDragging()&&(n.filter(function(e){return e.isDragging()}).every(function(t){return-1===e.indexOf(t)})?this._reset():this._cacheItems()),this}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"connectedTo",value:function(e){return this._siblings=e.slice(),this}},{key:"withOrientation",value:function(e){return this._orientation=e,this}},{key:"withScrollableParents",value:function(e){var t=sr(this.element);return this._scrollableElements=-1===e.indexOf(t)?[t].concat(_toConsumableArray(e)):e.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(e){return this._isDragging?hw("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,function(t){return t.drag===e}):this._draggables.indexOf(e)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(e,t,n,i){if(!this.sortingDisabled&&this._clientRect&&KA(this._clientRect,.05,t,n)){var r=this._itemPositions,a=this._getItemIndexFromPointerPosition(e,t,n,i);if(!(-1===a&&r.length>0)){var o="horizontal"===this._orientation,s=hw(r,function(t){return t.drag===e}),c=r[a],u=c.clientRect,l=s>a?1:-1,h=this._getItemOffsetPx(r[s].clientRect,u,l),d=this._getSiblingOffsetPx(s,r,l),f=r.slice();cw(r,s,a),this.sorted.next({previousIndex:s,currentIndex:a,container:this,item:e}),r.forEach(function(t,n){if(f[n]!==t){var i=t.drag===e,r=i?h:d,a=i?e.getPlaceholderElement():t.drag.getRootElement();t.offset+=r,o?(a.style.transform=HA("translate3d(".concat(Math.round(t.offset),"px, 0, 0)"),t.initialTransform),UA(t.clientRect,0,r)):(a.style.transform=HA("translate3d(0, ".concat(Math.round(t.offset),"px, 0)"),t.initialTransform),UA(t.clientRect,r,0))}}),this._previousSwap.overlaps=WA(u,t,n),this._previousSwap.drag=c.drag,this._previousSwap.delta=o?i.x:i.y}}}},{key:"_startScrollingIfNecessary",value:function(e,t){var n=this;if(!this.autoScrollDisabled){var i,r=0,a=0;if(this._parentPositions.positions.forEach(function(o,s){var c;s!==n._document&&o.clientRect&&!i&&KA(o.clientRect,.05,e,t)&&(c=_slicedToArray(function(e,t,n,i){var r=pw(t,i),a=gw(t,n),o=0,s=0;if(r){var c=e.scrollTop;1===r?c>0&&(o=1):e.scrollHeight-c>e.clientHeight&&(o=2)}if(a){var u=e.scrollLeft;1===a?u>0&&(s=1):e.scrollWidth-u>e.clientWidth&&(s=2)}return[o,s]}(s,o.clientRect,e,t),2),r=c[0],a=c[1],(r||a)&&(i=s))}),!r&&!a){var o=this._viewportRuler.getViewportSize(),s=o.width,c=o.height,u={width:s,height:c,top:0,right:s,bottom:c,left:0};r=pw(u,t),a=gw(u,e),i=window}!i||r===this._verticalScrollDirection&&a===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=r,this._horizontalScrollDirection=a,this._scrollNode=i,(r||a)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_draggingStarted",value:function(){var e=sr(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"_cacheParentPositions",value:function(){var e=sr(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}},{key:"_cacheItemPositions",value:function(){var e="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(function(e){var t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:FA(t)}}).sort(function(t,n){return e?t.clientRect.left-n.clientRect.left:t.clientRect.top-n.clientRect.top})}},{key:"_reset",value:function(){var e=this;this._isDragging=!1;var t=sr(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(function(t){var n,i=t.getRootElement();if(i){var r=null===(n=e._itemPositions.find(function(e){return e.drag===t}))||void 0===n?void 0:n.initialTransform;i.style.transform=r||""}}),this._siblings.forEach(function(t){return t._stopReceiving(e)}),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_getSiblingOffsetPx",value:function(e,t,n){var i="horizontal"===this._orientation,r=t[e].clientRect,a=t[e+-1*n],o=r[i?"width":"height"]*n;if(a){var s=i?"left":"top",c=i?"right":"bottom";-1===n?o-=a.clientRect[s]-r[c]:o+=r[s]-a.clientRect[c]}return o}},{key:"_getItemOffsetPx",value:function(e,t,n){var i="horizontal"===this._orientation,r=i?t.left-e.left:t.top-e.top;return-1===n&&(r+=i?t.width-e.width:t.height-e.height),r}},{key:"_shouldEnterAsFirstChild",value:function(e,t){if(!this._activeDraggables.length)return!1;var n=this._itemPositions,i="horizontal"===this._orientation;if(n[0].drag!==this._activeDraggables[0]){var r=n[n.length-1].clientRect;return i?e>=r.right:t>=r.bottom}var a=n[0].clientRect;return i?e<=a.left:t<=a.top}},{key:"_getItemIndexFromPointerPosition",value:function(e,t,n,i){var r=this,a="horizontal"===this._orientation,o=hw(this._itemPositions,function(o,s,c){var u=o.drag,l=o.clientRect;if(u===e)return c.length<2;if(i){var h=a?i.x:i.y;if(u===r._previousSwap.drag&&r._previousSwap.overlaps&&h===r._previousSwap.delta)return!1}return a?t>=Math.floor(l.left)&&t=Math.floor(l.top)&&n-1})&&(i.add(e),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var e=this;this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(function(t){if(e.isDragging()){var n=e._parentPositions.handleScroll(t);n&&(e._itemPositions.forEach(function(e){UA(e.clientRect,n.top,n.left)}),e._itemPositions.forEach(function(t){var n=t.drag;e._dragDropRegistry.isDragging(n)&&n._sortFromLastPointerPosition()}))}else e.isReceiving()&&e._cacheParentPositions()})}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var e=ca(sr(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}},{key:"_notifyReceivingSiblings",value:function(){var e=this,t=this._activeDraggables.filter(function(e){return e.isDragging()});this._siblings.forEach(function(n){return n._startReceiving(e,t)})}}]),e}();function hw(e,t){for(var n=0;n=n-r&&t<=n+r?1:t>=i-r&&t<=i+r?2:0}function gw(e,t){var n=e.left,i=e.right,r=.05*e.width;return t>=n-r&&t<=n+r?1:t>=i-r&&t<=i+r?2:0}var mw=aa({passive:!1,capture:!0}),vw=function(){var e=function(){function e(t,n){var i=this;_classCallCheck(this,e),this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=function(e){return e.isDragging()},this.pointerMove=new ye.xQ,this.pointerUp=new ye.xQ,this.scroll=new ye.xQ,this._preventDefaultWhileDragging=function(e){i._activeDragInstances.length>0&&e.preventDefault()},this._persistentTouchmoveListener=function(e){i._activeDragInstances.length>0&&(i._activeDragInstances.some(i._draggingPredicate)&&e.preventDefault(),i.pointerMove.next(e))},this._document=n}return _createClass(e,[{key:"registerDropContainer",value:function(e){this._dropInstances.has(e)||this._dropInstances.add(e)}},{key:"registerDragItem",value:function(e){var t=this;this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(function(){t._document.addEventListener("touchmove",t._persistentTouchmoveListener,mw)})}},{key:"removeDropContainer",value:function(e){this._dropInstances.delete(e)}},{key:"removeDragItem",value:function(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,mw)}},{key:"startDragging",value:function(e,t){var n=this;if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){var i=t.type.startsWith("touch");this._globalListeners.set(i?"touchend":"mouseup",{handler:function(e){return n.pointerUp.next(e)},options:!0}).set("scroll",{handler:function(e){return n.scroll.next(e)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:mw}),i||this._globalListeners.set("mousemove",{handler:function(e){return n.pointerMove.next(e)},options:mw}),this._ngZone.runOutsideAngular(function(){n._globalListeners.forEach(function(e,t){n._document.addEventListener(t,e.handler,e.options)})})}}},{key:"stopDragging",value:function(e){var t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}},{key:"isDragging",value:function(e){return this._activeDragInstances.indexOf(e)>-1}},{key:"ngOnDestroy",value:function(){var e=this;this._dragInstances.forEach(function(t){return e.removeDragItem(t)}),this._dropInstances.forEach(function(t){return e.removeDropContainer(t)}),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var e=this;this._globalListeners.forEach(function(t,n){e._document.removeEventListener(n,t.handler,t.options)}),this._globalListeners.clear()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(a.R0b),a.LFG(r.K0))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(a.R0b),a.LFG(r.K0))},token:e,providedIn:"root"}),e}(),_w={dragStartThreshold:5,pointerDirectionChangeThreshold:5},yw=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this._document=t,this._ngZone=n,this._viewportRuler=i,this._dragDropRegistry=r}return _createClass(e,[{key:"createDrag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_w;return new tw(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(e){return new lw(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(r.K0),a.LFG(a.R0b),a.LFG(ba),a.LFG(vw))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(r.K0),a.LFG(a.R0b),a.LFG(ba),a.LFG(vw))},token:e,providedIn:"root"}),e}(),bw=new a.OlP("CDK_DRAG_PARENT"),Aw=new a.OlP("CdkDropListGroup"),ww=new a.OlP("CDK_DRAG_CONFIG"),kw=0,Mw=new a.OlP("CdkDropList"),Cw=function(){var e=function(){function e(t,n,i,r,o,s,c){var u=this;_classCallCheck(this,e),this.element=t,this._changeDetectorRef=i,this._scrollDispatcher=r,this._dir=o,this._group=s,this._destroyed=new ye.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+kw++,this.enterPredicate=function(){return!0},this.sortPredicate=function(){return!0},this.dropped=new a.vpe,this.entered=new a.vpe,this.exited=new a.vpe,this.sorted=new a.vpe,this._unsortedItems=new Set,this._dropListRef=n.createDropList(t),this._dropListRef.data=this,c&&this._assignDefaults(c),this._dropListRef.enterPredicate=function(e,t){return u.enterPredicate(e.data,t.data)},this._dropListRef.sortPredicate=function(e,t,n){return u.sortPredicate(e,t.data,n.data)},this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),e._dropLists.push(this),s&&s._items.add(this)}return _createClass(e,[{key:"disabled",get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(e){this._dropListRef.disabled=this._disabled=nr(e)}},{key:"addItem",value:function(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"removeItem",value:function(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"getSortedItems",value:function(){return Array.from(this._unsortedItems).sort(function(e,t){return e._dragRef.getVisibleElement().compareDocumentPosition(t._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1})}},{key:"ngOnDestroy",value:function(){var t=e._dropLists.indexOf(this);t>-1&&e._dropLists.splice(t,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}},{key:"_setupInputSyncSubscription",value:function(t){var n=this;this._dir&&this._dir.change.pipe(De(this._dir.value),Ir(this._destroyed)).subscribe(function(e){return t.withDirection(e)}),t.beforeStarted.subscribe(function(){var i=ar(n.connectedTo).map(function(t){return"string"==typeof t?e._dropLists.find(function(e){return e.id===t}):t});if(n._group&&n._group._items.forEach(function(e){-1===i.indexOf(e)&&i.push(e)}),!n._scrollableParentsResolved){var r=n._scrollDispatcher.getAncestorScrollContainers(n.element).map(function(e){return e.getElementRef().nativeElement});n._dropListRef.withScrollableParents(r),n._scrollableParentsResolved=!0}t.disabled=n.disabled,t.lockAxis=n.lockAxis,t.sortingDisabled=nr(n.sortingDisabled),t.autoScrollDisabled=nr(n.autoScrollDisabled),t.autoScrollStep=ir(n.autoScrollStep,2),t.connectedTo(i.filter(function(e){return e&&e!==n}).map(function(e){return e._dropListRef})).withOrientation(n.orientation)})}},{key:"_handleEvents",value:function(e){var t=this;e.beforeStarted.subscribe(function(){t._syncItemsWithRef(),t._changeDetectorRef.markForCheck()}),e.entered.subscribe(function(e){t.entered.emit({container:t,item:e.item.data,currentIndex:e.currentIndex})}),e.exited.subscribe(function(e){t.exited.emit({container:t,item:e.item.data}),t._changeDetectorRef.markForCheck()}),e.sorted.subscribe(function(e){t.sorted.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,container:t,item:e.item.data})}),e.dropped.subscribe(function(e){t.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,item:e.item.data,isPointerOverContainer:e.isPointerOverContainer,distance:e.distance,dropPoint:e.dropPoint}),t._changeDetectorRef.markForCheck()})}},{key:"_assignDefaults",value:function(e){var t=e.lockAxis,n=e.draggingDisabled,i=e.sortingDisabled,r=e.listAutoScrollDisabled,a=e.listOrientation;this.disabled=null!=n&&n,this.sortingDisabled=null!=i&&i,this.autoScrollDisabled=null!=r&&r,this.orientation=a||"vertical",t&&(this.lockAxis=t)}},{key:"_syncItemsWithRef",value:function(){this._dropListRef.withItems(this.getSortedItems().map(function(e){return e._dragRef}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(yw),a.Y36(a.sBO),a.Y36(_a),a.Y36(ha,8),a.Y36(Aw,12),a.Y36(ww,8))},e.\u0275dir=a.lG2({type:e,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,t){2&e&&(a.uIk("id",t.id),a.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"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[a._Bn([{provide:Aw,useValue:void 0},{provide:Mw,useExisting:e}])]}),e._dropLists=[],e}(),Tw=new a.OlP("CdkDragHandle"),Lw=new a.OlP("CdkDragPlaceholder"),Sw=new a.OlP("CdkDragPreview"),Ew=function(){var e=function(){function e(t,n,i,r,o,s,c,u,l,h,d){var f=this;_classCallCheck(this,e),this.element=t,this.dropContainer=n,this._ngZone=r,this._viewContainerRef=o,this._dir=c,this._changeDetectorRef=l,this._selfHandle=h,this._parentDrag=d,this._destroyed=new ye.xQ,this.started=new a.vpe,this.released=new a.vpe,this.ended=new a.vpe,this.entered=new a.vpe,this.exited=new a.vpe,this.dropped=new a.vpe,this.moved=new ke.y(function(e){var t=f._dragRef.moved.pipe((0,ze.U)(function(e){return{source:f,pointerPosition:e.pointerPosition,event:e.event,delta:e.delta,distance:e.distance}})).subscribe(e);return function(){t.unsubscribe()}}),this._dragRef=u.createDrag(t,{dragStartThreshold:s&&null!=s.dragStartThreshold?s.dragStartThreshold:5,pointerDirectionChangeThreshold:s&&null!=s.pointerDirectionChangeThreshold?s.pointerDirectionChangeThreshold:5,zIndex:null==s?void 0:s.zIndex}),this._dragRef.data=this,e._dragInstances.push(this),s&&this._assignDefaults(s),n&&(this._dragRef._withDropContainer(n._dropListRef),n.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}return _createClass(e,[{key:"disabled",get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(e){this._disabled=nr(e),this._dragRef.disabled=this._disabled}},{key:"getPlaceholderElement",value:function(){return this._dragRef.getPlaceholderElement()}},{key:"getRootElement",value:function(){return this._dragRef.getRootElement()}},{key:"reset",value:function(){this._dragRef.reset()}},{key:"getFreeDragPosition",value:function(){return this._dragRef.getFreeDragPosition()}},{key:"ngAfterViewInit",value:function(){var e=this;this._ngZone.onStable.pipe((0,xe.q)(1),Ir(this._destroyed)).subscribe(function(){e._updateRootElement(),e._handles.changes.pipe(De(e._handles),(0,Ve.b)(function(t){var n=t.filter(function(t){return t._parentDrag===e}).map(function(e){return e.element});e._selfHandle&&e.rootElementSelector&&n.push(e.element),e._dragRef.withHandles(n)}),(0,Oe.w)(function(e){return Oa.T.apply(void 0,_toConsumableArray(e.map(function(e){return e._stateChanges.pipe(De(e))})))}),Ir(e._destroyed)).subscribe(function(t){var n=e._dragRef,i=t.element.nativeElement;t.disabled?n.disableHandle(i):n.enableHandle(i)}),e.freeDragPosition&&e._dragRef.setFreeDragPosition(e.freeDragPosition)})}},{key:"ngOnChanges",value:function(e){var t=e.rootElementSelector,n=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),n&&!n.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}},{key:"ngOnDestroy",value:function(){this.dropContainer&&this.dropContainer.removeItem(this);var t=e._dragInstances.indexOf(this);t>-1&&e._dragInstances.splice(t,1),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}},{key:"_updateRootElement",value:function(){var e=this.element.nativeElement,t=this.rootElementSelector?zw(e,this.rootElementSelector):e;this._dragRef.withRootElement(t||e)}},{key:"_getBoundaryElement",value:function(){var e=this.boundaryElement;return e?"string"==typeof e?zw(this.element.nativeElement,e):sr(e):null}},{key:"_syncInputs",value:function(t){var n=this;t.beforeStarted.subscribe(function(){if(!t.isDragging()){var e=n._dir,i=n.dragStartDelay,r=n._placeholderTemplate?{template:n._placeholderTemplate.templateRef,context:n._placeholderTemplate.data,viewContainer:n._viewContainerRef}:null,a=n._previewTemplate?{template:n._previewTemplate.templateRef,context:n._previewTemplate.data,matchSize:n._previewTemplate.matchSize,viewContainer:n._viewContainerRef}:null;t.disabled=n.disabled,t.lockAxis=n.lockAxis,t.dragStartDelay="object"==typeof i&&i?i:ir(i),t.constrainPosition=n.constrainPosition,t.previewClass=n.previewClass,t.withBoundaryElement(n._getBoundaryElement()).withPlaceholderTemplate(r).withPreviewTemplate(a).withPreviewContainer(n.previewContainer||"global"),e&&t.withDirection(e.value)}}),t.beforeStarted.pipe((0,xe.q)(1)).subscribe(function(){var i,r;if(n._parentDrag)t.withParent(n._parentDrag._dragRef);else for(var a=n.element.nativeElement.parentElement;a;){if(null===(i=a.classList)||void 0===i?void 0:i.contains("cdk-drag")){t.withParent((null===(r=e._dragInstances.find(function(e){return e.element.nativeElement===a}))||void 0===r?void 0:r._dragRef)||null);break}a=a.parentElement}})}},{key:"_handleEvents",value:function(e){var t=this;e.started.subscribe(function(){t.started.emit({source:t}),t._changeDetectorRef.markForCheck()}),e.released.subscribe(function(){t.released.emit({source:t})}),e.ended.subscribe(function(e){t.ended.emit({source:t,distance:e.distance,dropPoint:e.dropPoint}),t._changeDetectorRef.markForCheck()}),e.entered.subscribe(function(e){t.entered.emit({container:e.container.data,item:t,currentIndex:e.currentIndex})}),e.exited.subscribe(function(e){t.exited.emit({container:e.container.data,item:t})}),e.dropped.subscribe(function(e){t.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,isPointerOverContainer:e.isPointerOverContainer,item:t,distance:e.distance,dropPoint:e.dropPoint})})}},{key:"_assignDefaults",value:function(e){var t=e.lockAxis,n=e.dragStartDelay,i=e.constrainPosition,r=e.previewClass,a=e.boundaryElement,o=e.draggingDisabled,s=e.rootElementSelector,c=e.previewContainer;this.disabled=null!=o&&o,this.dragStartDelay=n||0,t&&(this.lockAxis=t),i&&(this.constrainPosition=i),r&&(this.previewClass=r),a&&(this.boundaryElement=a),s&&(this.rootElementSelector=s),c&&(this.previewContainer=c)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(Mw,12),a.Y36(r.K0),a.Y36(a.R0b),a.Y36(a.s_b),a.Y36(ww,8),a.Y36(ha,8),a.Y36(yw),a.Y36(a.sBO),a.Y36(Tw,10),a.Y36(bw,12))},e.\u0275dir=a.lG2({type:e,selectors:[["","cdkDrag",""]],contentQueries:function(e,t,n){var i;(1&e&&(a.Suo(n,Sw,5),a.Suo(n,Lw,5),a.Suo(n,Tw,5)),2&e)&&(a.iGM(i=a.CRH())&&(t._previewTemplate=i.first),a.iGM(i=a.CRH())&&(t._placeholderTemplate=i.first),a.iGM(i=a.CRH())&&(t._handles=i))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,t){2&e&&a.ekj("cdk-drag-disabled",t.disabled)("cdk-drag-dragging",t._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],previewContainer:["cdkDragPreviewContainer","previewContainer"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[a._Bn([{provide:bw,useExisting:e}]),a.TTD]}),e._dragInstances=[],e}();function zw(e,t){for(var n=e.parentElement;n;){if(n.matches?n.matches(t):n.msMatchesSelector(t))return n;n=n.parentElement}return null}var Ow=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[yw],imports:[Aa]}),e}(),xw=["*"],Rw=new a.OlP("MatChipRemove"),Dw=new a.OlP("MatChipAvatar"),Pw=new a.OlP("MatChipTrailingIcon"),Nw=Du(xu(Ru(function e(t){_classCallCheck(this,e),this._elementRef=t}),"primary"),-1),Iw=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,s,c,u,l){var h;return _classCallCheck(this,n),(h=t.call(this,e))._elementRef=e,h._ngZone=i,h._changeDetectorRef=s,h._hasFocus=!1,h.chipListSelectable=!0,h._chipListMultiple=!1,h._chipListDisabled=!1,h._selected=!1,h._selectable=!0,h._disabled=!1,h._removable=!0,h._onFocus=new ye.xQ,h._onBlur=new ye.xQ,h.selectionChange=new a.vpe,h.destroyed=new a.vpe,h.removed=new a.vpe,h._addHostClassName(),h._chipRippleTarget=c.createElement("div"),h._chipRippleTarget.classList.add("mat-chip-ripple"),h._elementRef.nativeElement.appendChild(h._chipRippleTarget),h._chipRipple=new nl(_assertThisInitialized(h),i,h._chipRippleTarget,r),h._chipRipple.setupTriggerEvents(e),h.rippleConfig=o||{},h._animationsDisabled="NoopAnimations"===u,h.tabIndex=null!=l&&parseInt(l)||-1,h}return _createClass(n,[{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(e){var t=nr(e);t!==this._selected&&(this._selected=t,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(e){this._value=e}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(e){this._selectable=nr(e)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(e){this._disabled=nr(e)}},{key:"removable",get:function(){return this._removable},set:function(e){this._removable=nr(e)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}},{key:"_addHostClassName",value:function(){var e=this._elementRef.nativeElement;e.hasAttribute("mat-basic-chip")||"mat-basic-chip"===e.tagName.toLowerCase()?e.classList.add("mat-basic-chip"):e.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}},{key:"toggleSelected",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(e),this._changeDetectorRef.markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(e){this.disabled?e.preventDefault():e.stopPropagation()}},{key:"_handleKeydown",value:function(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()}}},{key:"_blur",value:function(){var e=this;this._ngZone.onStable.pipe((0,xe.q)(1)).subscribe(function(){e._ngZone.run(function(){e._hasFocus=!1,e._onBlur.next({chip:e})})})}},{key:"_dispatchSelectionChange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}}]),n}(Nw);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(ta),a.Y36(il,8),a.Y36(a.sBO),a.Y36(r.K0),a.Y36(_u,8),a.$8M("tabindex"))},e.\u0275dir=a.lG2({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,t,n){var i;(1&e&&(a.Suo(n,Dw,5),a.Suo(n,Pw,5),a.Suo(n,Rw,5)),2&e)&&(a.iGM(i=a.CRH())&&(t.avatar=i.first),a.iGM(i=a.CRH())&&(t.trailingIcon=i.first),a.iGM(i=a.CRH())&&(t.removeIcon=i.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(e,t){1&e&&a.NdJ("click",function(e){return t._handleClick(e)})("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t.focus()})("blur",function(){return t._blur()}),2&e&&(a.uIk("tabindex",t.disabled?null:t.tabIndex)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString())("aria-selected",t.ariaSelected),a.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",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[a.qOj]}),e}(),qw=new a.OlP("mat-chips-default-options"),Bw=Pu(function e(t,n,i,r){_classCallCheck(this,e),this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}),Hw=0,Yw=function e(t,n){_classCallCheck(this,e),this.source=t,this.value=n},jw=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,s,c,u){var l;return _classCallCheck(this,n),(l=t.call(this,c,o,s,u))._elementRef=e,l._changeDetectorRef=i,l._dir=r,l.ngControl=u,l.controlType="mat-chip-list",l._lastDestroyedChipIndex=null,l._destroyed=new ye.xQ,l._uid="mat-chip-list-"+Hw++,l._tabIndex=0,l._userTabIndex=null,l._onTouched=function(){},l._onChange=function(){},l._multiple=!1,l._compareWith=function(e,t){return e===t},l._required=!1,l._disabled=!1,l.ariaOrientation="horizontal",l._selectable=!0,l.change=new a.vpe,l.valueChange=new a.vpe,l.ngControl&&(l.ngControl.valueAccessor=_assertThisInitialized(l)),l}return _createClass(n,[{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=nr(e),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){this.writeValue(e),this._value=e}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=nr(e),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(e){this._disabled=nr(e),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(e){var t=this;this._selectable=nr(e),this.chips&&this.chips.forEach(function(e){return e.chipListSelectable=t._selectable})}},{key:"tabIndex",set:function(e){this._userTabIndex=e,this._tabIndex=e}},{key:"chipSelectionChanges",get:function(){return Oa.T.apply(void 0,_toConsumableArray(this.chips.map(function(e){return e.selectionChange})))}},{key:"chipFocusChanges",get:function(){return Oa.T.apply(void 0,_toConsumableArray(this.chips.map(function(e){return e._onFocus})))}},{key:"chipBlurChanges",get:function(){return Oa.T.apply(void 0,_toConsumableArray(this.chips.map(function(e){return e._onBlur})))}},{key:"chipRemoveChanges",get:function(){return Oa.T.apply(void 0,_toConsumableArray(this.chips.map(function(e){return e.destroyed})))}},{key:"ngAfterContentInit",value:function(){var e=this;this._keyManager=new Eo(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Ir(this._destroyed)).subscribe(function(t){return e._keyManager.withHorizontalOrientation(t)}),this._keyManager.tabOut.pipe(Ir(this._destroyed)).subscribe(function(){e._allowFocusEscape()}),this.chips.changes.pipe(De(null),Ir(this._destroyed)).subscribe(function(){e.disabled&&Promise.resolve().then(function(){e._syncChipsState()}),e._resetChips(),e._initializeSelection(),e._updateTabIndex(),e._updateFocusForDestroyedChips(),e.stateChanges.next()})}},{key:"ngOnInit",value:function(){this._selectionModel=new ga(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"writeValue",value:function(e){this.chips&&this._setSelectionByValue(e,!1)}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this.stateChanges.next()}},{key:"onContainerClick",value:function(e){this._originatesFromChip(e)||this.focus()}},{key:"focus",value:function(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}},{key:"_focusInput",value:function(e){this._chipInput&&this._chipInput.focus(e)}},{key:"_keydown",value:function(e){var t=e.target;t&&t.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(e){return e>=0&&e1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach(function(e){return e.deselect()}),Array.isArray(e))e.forEach(function(e){return t._selectValue(e,n)}),this._sortValues();else{var i=this._selectValue(e,n);i&&n&&this._keyManager.setActiveItem(i)}}},{key:"_selectValue",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.chips.find(function(n){return null!=n.value&&t._compareWith(n.value,e)});return i&&(n?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then(function(){(e.ngControl||e._value)&&(e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value,!1),e.stateChanges.next())})}},{key:"_clearSelection",value:function(e){this._selectionModel.clear(),this.chips.forEach(function(t){t!==e&&t.deselect()}),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(t){t.selected&&e._selectionModel.select(t)}),this.stateChanges.next())}},{key:"_propagateChanges",value:function(e){var t;t=Array.isArray(this.selected)?this.selected.map(function(e){return e.value}):this.selected?this.selected.value:e,this._value=t,this.change.emit(new Yw(this,t)),this.valueChange.emit(t),this._onChange(t),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var e=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(function(){e.focused||e._markAsTouched()}):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var e=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(function(){e._tabIndex=e._userTabIndex||0,e._changeDetectorRef.markForCheck()}))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){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)}},{key:"_listenToChipsSelection",value:function(){var e=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(function(t){t.source.selected?e._selectionModel.select(t.source):e._selectionModel.deselect(t.source),e.multiple||e.chips.forEach(function(t){!e._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),t.isUserInput&&e._propagateChanges()})}},{key:"_listenToChipsFocus",value:function(){var e=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(t){var n=e.chips.toArray().indexOf(t.chip);e._isValidIndex(n)&&e._keyManager.updateActiveItem(n),e.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(function(){e._blur(),e.stateChanges.next()})}},{key:"_listenToChipsRemoved",value:function(){var e=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(function(t){var n=t.chip,i=e.chips.toArray().indexOf(t.chip);e._isValidIndex(i)&&n._hasFocus&&(e._lastDestroyedChipIndex=i)})}},{key:"_originatesFromChip",value:function(e){for(var t=e.target;t&&t!==this._elementRef.nativeElement;){if(t.classList.contains("mat-chip"))return!0;t=t.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips&&this.chips.some(function(e){return e._hasFocus})}},{key:"_syncChipsState",value:function(){var e=this;this.chips&&this.chips.forEach(function(t){t._chipListDisabled=e._disabled,t._chipListMultiple=e.multiple})}}]),n}(Bw);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(ha,8),a.Y36(sf,8),a.Y36(yf,8),a.Y36(Zu),a.Y36(Od,10))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-chip-list"]],contentQueries:function(e,t,n){var i;(1&e&&a.Suo(n,Iw,5),2&e)&&(a.iGM(i=a.CRH())&&(t.chips=i))},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(e,t){1&e&&a.NdJ("focus",function(){return t.focus()})("blur",function(){return t._blur()})("keydown",function(e){return t._keydown(e)}),2&e&&(a.Ikx("id",t._uid),a.uIk("tabindex",t.disabled?null:t._tabIndex)("aria-describedby",t._ariaDescribedby||null)("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),a.ekj("mat-chip-list-disabled",t.disabled)("mat-chip-list-invalid",t.errorState)("mat-chip-list-required",t.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[a._Bn([{provide:jh,useExisting:e}]),a.qOj],ngContentSelectors:xw,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,t){1&e&&(a.F$t(),a.TgZ(0,"div",0),a.Hsn(1),a.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.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-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height: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:focus{outline:dotted 2px}.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}.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}\n'],encapsulation:2,changeDetection:0}),e}(),Fw=0,Ww=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._elementRef=t,this._defaultOptions=n,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new a.vpe,this.placeholder="",this.id="mat-chip-list-input-"+Fw++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}return _createClass(e,[{key:"chipList",set:function(e){e&&(this._chipList=e,this._chipList.registerInput(this))}},{key:"addOnBlur",get:function(){return this._addOnBlur},set:function(e){this._addOnBlur=nr(e)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(e){this._disabled=nr(e)}},{key:"empty",get:function(){return!this.inputElement.value}},{key:"ngOnChanges",value:function(){this._chipList.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.chipEnd.complete()}},{key:"ngAfterContentInit",value:function(){this._focusLastChipOnBackspace=this.empty}},{key:"_keydown",value:function(e){if(e){if(9!==e.keyCode||Da(e,"shiftKey")||this._chipList._allowFocusEscape(),8===e.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void e.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(e)}},{key:"_keyup",value:function(e){!this._focusLastChipOnBackspace&&8===e.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,e.preventDefault())}},{key:"_blur",value:function(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}},{key:"_focus",value:function(){this.focused=!0,this._chipList.stateChanges.next()}},{key:"_emitChipEnd",value:function(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}),null==e||e.preventDefault())}},{key:"_onInput",value:function(){this._chipList.stateChanges.next()}},{key:"focus",value:function(e){this.inputElement.focus(e)}},{key:"clear",value:function(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}},{key:"_isSeparatorKey",value:function(e){return!Da(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(qw))},e.\u0275dir=a.lG2({type:e,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(e,t){1&e&&a.NdJ("keydown",function(e){return t._keydown(e)})("keyup",function(e){return t._keyup(e)})("blur",function(){return t._blur()})("focus",function(){return t._focus()})("input",function(){return t._onInput()}),2&e&&(a.Ikx("id",t.id),a.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:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[a.TTD]}),e}(),Uw={separatorKeyCodes:[13]},Kw=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[Zu,{provide:qw,useValue:Uw}],imports:[[zu]]}),e}();function Zw(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-icon",9),a.NdJ("mousedown",function(){return a.CHM(n),a.oxw(2).dragDisabled=!1}),a._uU(1,"drag_indicator"),a.qZA()}}function Gw(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-icon",10),a.NdJ("click",function(){a.CHM(n);var e=a.oxw().$implicit;return a.oxw().edit(e)}),a._uU(1,"edit"),a.qZA()}}function Xw(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-icon",11),a.NdJ("click",function(){a.CHM(n);var e=a.oxw().$implicit;return a.oxw().remove(e)}),a._uU(1,"cancel"),a.qZA()}}function Vw(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-chip",4),a.NdJ("removed",function(){var e=a.CHM(n).$implicit,t=a.oxw();return t.remove(e),t._sendEventToParent()}),a.YNc(1,Zw,2,0,"mat-icon",5),a.TgZ(2,"div",6),a.NdJ("click",function(){var e=a.CHM(n).$implicit,t=a.oxw();return t.readonly&&void 0!==t.attribute.displayName&&t.showValue(e,t.attribute.displayName)}),a._uU(3),a.qZA(),a.YNc(4,Gw,2,0,"mat-icon",7),a.YNc(5,Xw,2,0,"mat-icon",8),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw();a.Q6J("selectable",r.selectable)("cdkDragData",i)("removable",r.removable),a.xp6(1),a.Q6J("ngIf",r.removable),a.xp6(1),a.ekj("cursor-pointer",r.readonly&&void 0!==r.attribute.displayName),a.xp6(1),a.hij(" ",i," "),a.xp6(1),a.Q6J("ngIf",r.removable),a.xp6(1),a.Q6J("ngIf",r.removable)}}function Jw(e,t){1&e&&(a.TgZ(0,"mat-icon"),a._uU(1,"more_horiz"),a.qZA())}function Qw(e,t){1&e&&(a.TgZ(0,"mat-icon"),a._uU(1,"keyboard_arrow_up"),a.qZA())}function $w(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",12),a.TgZ(1,"span",13),a.TgZ(2,"button",14),a.NdJ("click",function(){return a.CHM(n),a.oxw().onShowChange()}),a.YNc(3,Jw,2,0,"mat-icon",15),a.YNc(4,Qw,2,0,"mat-icon",15),a.qZA(),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.xp6(1),a.Q6J("matTooltip",i.showMore?"Show less":"Show more")("matTooltipPosition","above"),a.xp6(2),a.Q6J("ngIf",!i.showMore),a.xp6(1),a.Q6J("ngIf",i.showMore)}}function ek(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-form-field",12),a.TgZ(1,"input",16),a.NdJ("matChipInputTokenEnd",function(e){return a.CHM(n),a.oxw().add(e)})("change",function(){return a.CHM(n),a.oxw()._sendEventToParent()}),a.qZA(),a.qZA()}if(2&e){var i=a.oxw(),r=a.MAs(2);a.xp6(1),a.Q6J("matChipInputFor",r)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("matChipInputAddOnBlur",i.addOnBlur)}}var tk=function(){var e=function(){function e(t){_classCallCheck(this,e),this.dialog=t,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[13,188],this.values=[],this.showMore=!1,this.defaultItemsShown=5,this.sendEventToParent=new a.vpe,this.readonly=!1}return _createClass(e,[{key:"ngOnInit",value:function(){this.removable=!fg(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=Object.values(this.attribute.value),this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=fg(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}},{key:"add",value:function(e){var t=e.input,n=e.value;(n||"").trim()&&(this.attribute.value.push(n.trim()),this.values=Object.values(this.attribute.value),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),t&&(t.value=""),this.sendEventToParent.emit()}},{key:"remove",value:function(e){var t=this,n=dg();n.width="400px",n.data={name:e},this.dialog.open(Wv,n).afterClosed().subscribe(function(n){if(n){var i=t.attribute.value.indexOf(e);t.attribute.value.splice(i,1),t.values=Object.values(t.attribute.value),t.sendEventToParent.emit()}})}},{key:"drop",value:function(e){this.dragDisabled=!0,cw(this.attribute.value,e.previousIndex,e.currentIndex),this.values=Object.values(this.attribute.value)}},{key:"edit",value:function(e){var t=this,n=this.attribute.value.indexOf(e),i=dg();i.width="600px",i.data={attribute:this.attribute,index:n},this.dialog.open(Fv,i).afterClosed().subscribe(function(e){e&&(t.values=Object.values(t.attribute.value),t.sendEventToParent.emit())})}},{key:"showValue",value:function(e,t){var n=dg();n.width="350px",n.data={value:e,title:t},this.dialog.open(jv,n)}},{key:"setItemsShown",value:function(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}},{key:"onShowChange",value:function(){this.showMore=!this.showMore,this.setItemsShown()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Dl))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"div"),a.TgZ(1,"mat-chip-list",0,1),a.NdJ("cdkDropListDropped",function(e){return t.drop(e),t._sendEventToParent()}),a.YNc(3,Vw,6,9,"mat-chip",2),a.YNc(4,$w,5,4,"div",3),a.YNc(5,ek,2,3,"mat-form-field",3),a.qZA(),a.qZA()),2&e&&(a.xp6(1),a.Q6J("cdkDropListDisabled",t.dragDisabled),a.xp6(2),a.Q6J("ngForOf",t.values.slice(0,t.itemsShown)),a.xp6(1),a.Q6J("ngIf",t.values.length>t.defaultItemsShown),a.xp6(1),a.Q6J("ngIf",!t.readonly))},directives:[jw,Cw,r.sg,r.O5,Iw,Ew,sg,up,_h,td,tm,Ww],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%], .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}.edit-delete-icon[_ngcontent-%COMP%], .handle-icon[_ngcontent-%COMP%]{justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),e}(),nk=function(){var e=function(){function e(t){_classCallCheck(this,e),this.dialog=t,this.readonly=!1,this.sendEventToParent=new a.vpe}return _createClass(e,[{key:"ngOnInit",value:function(){this.value=this.attribute.value,this.readonly||(this.readonly=fg(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}},{key:"showValue",value:function(e,t){var n=dg();n.width="350px",n.data={value:e,title:t},this.dialog.open(jv,n)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Dl))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"mat-form-field",0),a.TgZ(1,"input",1),a.NdJ("click",function(){return t.readonly&&void 0!==t.value&&t.showValue(t.value,t.attribute.displayName)})("ngModelChange",function(e){return t.attribute.value=e})("keydown",function(){return t._sendEventToParent()}),a.ALo(2,"multiWordDataCy"),a.qZA(),a.qZA()),2&e&&(a.s9C("appearance",t.readonly?"none":"standard"),a.xp6(1),a.ekj("cursor-pointer",t.readonly&&void 0!==t.value),a.Q2q("data-cy","",a.lcZ(2,6,t.attribute.displayName),"-value"),a.Q6J("readonly",t.readonly)("ngModel",t.attribute.value))},directives:[td,tm,cd,Rd,lf],pipes:[xA],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),e}(),ik=function(){var e=function(){function e(t){_classCallCheck(this,e),this.dialog=t,this.readonly=!1,this.sendEventToParent=new a.vpe}return _createClass(e,[{key:"ngOnInit",value:function(){this.readonly||(this.readonly=fg(this.attribute))}},{key:"_sendEventToParent",value:function(){this.sendEventToParent.emit()}},{key:"showValue",value:function(e){var t=dg();t.width="350px",t.data={value:e.value,title:e.displayName},this.dialog.open(jv,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Dl))},e.\u0275cmp=a.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(e,t){1&e&&(a.TgZ(0,"mat-form-field",0),a.TgZ(1,"input",1),a.NdJ("click",function(){return t.readonly&&void 0!==t.attribute.value&&t.showValue(t.attribute)})("ngModelChange",function(e){return t.attribute.value=e})("keydown",function(){return t._sendEventToParent()}),a.qZA(),a.qZA()),2&e&&(a.s9C("appearance",t.readonly?"none":"standard"),a.xp6(1),a.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.value),a.Q6J("readonly",t.readonly)("ngModel",t.attribute.value))},directives:[td,tm,ff,cd,Rd,lf],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),e}(),rk=["map"];function ak(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"perun-web-apps-attribute-value-boolean",3),a.NdJ("sendEventToParent",function(){return a.CHM(n),a.oxw()._sendEventToParent2()}),a.qZA()}if(2&e){var i=a.oxw();a.Q6J("attribute",i.attribute)("readonly",i.readonly)}}function ok(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"perun-web-apps-attribute-value-list",3),a.NdJ("sendEventToParent",function(){return a.CHM(n),a.oxw()._sendEventToParent2()}),a.qZA()}if(2&e){var i=a.oxw();a.Q6J("attribute",i.attribute)("readonly",i.readonly)}}function sk(e,t){if(1&e&&a._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&e){var n=a.oxw();a.Q6J("attribute",n.attribute)("readonly",n.readonly)}}function ck(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"perun-web-apps-attribute-value-string",3),a.NdJ("sendEventToParent",function(){return a.CHM(n),a.oxw()._sendEventToParent2()}),a.qZA()}if(2&e){var i=a.oxw();a.Q6J("attribute",i.attribute)("readonly",i.readonly)}}function uk(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"perun-web-apps-attribute-value-integer",3),a.NdJ("sendEventToParent",function(){return a.CHM(n),a.oxw()._sendEventToParent2()}),a.qZA()}if(2&e){var i=a.oxw();a.Q6J("attribute",i.attribute)("readonly",i.readonly)}}var lk=function(){var e=function(){function e(){_classCallCheck(this,e),this.readonly=!1,this.sendEventToParent2=new a.vpe}return _createClass(e,[{key:"updateMapAttribute",value:function(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}},{key:"_sendEventToParent2",value:function(){this.sendEventToParent2.emit()}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.Xpm({type:e,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(e,t){var n;(1&e&&a.Gf(rk,5),2&e)&&(a.iGM(n=a.CRH())&&(t.mapComponent=n.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&&(a.TgZ(0,"div"),a.YNc(1,ak,1,2,"perun-web-apps-attribute-value-boolean",0),a.YNc(2,ok,1,2,"perun-web-apps-attribute-value-list",0),a.TgZ(3,"div",1),a.NdJ("click",function(){return t._sendEventToParent2()}),a.YNc(4,sk,2,2,"perun-web-apps-attribute-value-map",2),a.qZA(),a.YNc(5,ck,1,2,"perun-web-apps-attribute-value-string",0),a.YNc(6,uk,1,2,"perun-web-apps-attribute-value-integer",0),a.qZA()),2&e&&(a.xp6(1),a.Q6J("ngIf","java.lang.Boolean"===t.attribute.type),a.xp6(1),a.Q6J("ngIf","java.util.ArrayList"===t.attribute.type),a.xp6(2),a.Q6J("ngIf","java.util.LinkedHashMap"===t.attribute.type),a.xp6(1),a.Q6J("ngIf","java.lang.String"===t.attribute.type||"java.lang.LargeString"===t.attribute.type),a.xp6(1),a.Q6J("ngIf","java.lang.Integer"===t.attribute.type))},directives:[r.O5,PA,tk,_A,nk,ik],styles:[""]}),e}();function hk(e,t){1&e&&a._UZ(0,"mat-spinner",3)}function dk(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-option",16),a.NdJ("click",function(){var e=a.CHM(n).$implicit;return a.oxw(4).changeLanguage(e)}),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"uppercase"),a.qZA()}if(2&e){var i=t.$implicit;a.Q6J("value",i),a.xp6(1),a.hij(" ",a.lcZ(2,2,a.lcZ(3,4,"SHARED_LIB.LANGUAGES."+i))," ")}}function fk(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-form-field",13),a.TgZ(1,"mat-select",14),a.NdJ("valueChange",function(e){return a.CHM(n),a.oxw(3).currentLang=e}),a.YNc(2,dk,4,6,"mat-option",15),a.qZA(),a.qZA()}if(2&e){var i=a.oxw(3);a.xp6(1),a.Q6J("value",i.currentLang),a.xp6(1),a.Q6J("ngForOf",i.languages)}}function pk(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div"),a.TgZ(1,"a",17),a._uU(2),a.qZA(),a.TgZ(3,"button",18),a.NdJ("click",function(){return a.CHM(n),a.oxw(3).changeEmail()}),a.TgZ(4,"mat-icon"),a._uU(5," edit "),a.qZA(),a.qZA(),a.qZA()}if(2&e){var i=a.oxw(3);a.xp6(1),a.MGl("href","mailto:",i.email,"",a.LSH),a.xp6(1),a.Oqu(i.email)}}function gk(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-option",16),a.NdJ("click",function(){var e=a.CHM(n).$implicit;return a.oxw(4).changeTimeZone(e)}),a._uU(1),a.qZA()}if(2&e){var i=t.$implicit;a.Q6J("value",i),a.xp6(1),a.hij(" ",i," ")}}function mk(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-form-field",13),a.TgZ(1,"mat-select",19),a.NdJ("valueChange",function(e){return a.CHM(n),a.oxw(3).currentTimezone=e}),a.YNc(2,gk,2,2,"mat-option",15),a.qZA(),a.qZA()}if(2&e){var i=a.oxw(3);a.xp6(1),a.Q6J("value",i.currentTimezone),a.xp6(1),a.Q6J("ngForOf",i.timeZones)}}function vk(e,t){1&e&&(a.TgZ(0,"p"),a._uU(1,"-"),a.qZA())}function _k(e,t){if(1&e&&a._UZ(0,"perun-web-apps-attribute-value",22),2&e){var n=a.oxw(2).$implicit;a.Q6J("attribute",n.attribute)("readonly",!0)}}function yk(e,t){if(1&e&&(a.TgZ(0,"div"),a.YNc(1,vk,2,0,"p",20),a.YNc(2,_k,1,2,"perun-web-apps-attribute-value",21),a.qZA()),2&e){var n=a.oxw().$implicit;a.xp6(1),a.Q6J("ngIf",!n.attribute.value),a.xp6(1),a.Q6J("ngIf",n.attribute.value)}}function bk(e,t){if(1&e&&(a.TgZ(0,"tr"),a.TgZ(1,"td",7),a.TgZ(2,"div",8),a._uU(3),a.qZA(),a.qZA(),a.TgZ(4,"td",9),a.YNc(5,fk,3,2,"mat-form-field",10),a.YNc(6,pk,6,2,"div",11),a.YNc(7,mk,3,2,"mat-form-field",10),a.YNc(8,yk,3,2,"div",12),a.qZA(),a.qZA()),2&e){var n=t.$implicit,i=a.oxw(2);a.xp6(2),a.Q6J("matTooltip",n["tooltip_"+i.currentLang]),a.xp6(1),a.hij(" ",n["displayName_"+i.currentLang]," "),a.xp6(1),a.Q6J("ngSwitch",n.attribute.friendlyName),a.xp6(1),a.Q6J("ngSwitchCase","preferredLanguage"),a.xp6(1),a.Q6J("ngSwitchCase","preferredMail"),a.xp6(1),a.Q6J("ngSwitchCase","timezone")}}function Ak(e,t){if(1&e&&(a.TgZ(0,"table",4),a.TgZ(1,"tbody"),a.TgZ(2,"tr"),a.TgZ(3,"td",5),a._uU(4),a.ALo(5,"translate"),a.ALo(6,"customTranslate"),a.qZA(),a.TgZ(7,"td"),a._uU(8),a.qZA(),a.qZA(),a.YNc(9,bk,9,6,"tr",6),a.qZA(),a.qZA()),2&e){var n=a.oxw();a.xp6(4),a.Oqu(a.lcZ(5,3,a.lcZ(6,5,"PROFILE_PAGE.NAME"))),a.xp6(4),a.Oqu(n.fullName),a.xp6(1),a.Q6J("ngForOf",n.additionalAttributes)}}var wk=function(){var e=function(){function e(t,n,i,r,a,o,s,c,u,l,h){var d=this;_classCallCheck(this,e),this.translateService=t,this.dialog=n,this.authzResolverService=i,this.attributesManagerService=r,this.usersManagerService=a,this.route=o,this.router=s,this.notificator=c,this.storeService=u,this.apiRequestConfiguration=l,this.preferredLangService=h,this.currentLang="en",this.languages=this.storeService.get("supported_languages"),this.timeZones=hA.tz.names().filter(function(e){return!e.startsWith("Etc/")}),this.additionalAttributes=[],this.email="",this.fullName="",this.organization="",this.currentTimezone="",t.get("PROFILE_PAGE.MAIL_CHANGE_SUCCESS").subscribe(function(e){return d.successMessage=e})}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this,t=this.route.snapshot.queryParamMap,n=t.get("token"),i=t.get("u");this.loading=!0,n&&i?(this.apiRequestConfiguration.dontHandleErrorForNext(),this.usersManagerService.validatePreferredEmailChangeWithToken(n,Number.parseInt(i,10)).subscribe(function(){e.notificator.showSuccess(e.successMessage),e.router.navigate([],{replaceUrl:!0}),e.getData()},function(){var t=dg();t.width="600px",e.dialog.open(Gv,t).afterClosed().subscribe(function(){e.getData()})})):this.getData()}},{key:"getData",value:function(){var e=this;this.authzResolverService.getPerunPrincipal().subscribe(function(t){e.userId=t.userId,e.usersManagerService.getRichUserWithAttributes(e.userId).subscribe(function(t){e.fullName=(new Fg).transform(t);var n=t.userAttributes.find(function(e){return"preferredMail"===e.friendlyName});e.email=n.value,e.languageAttribute=t.userAttributes.find(function(e){return"preferredLanguage"===e.friendlyName});var i=e.languageAttribute&&e.languageAttribute.value?e.languageAttribute.value.toString():null,r=e.preferredLangService.getPreferredLanguage(i);e.translateService.use(r),e.currentLang=r,e.timezoneAttribute=t.userAttributes.find(function(e){return"timezone"===e.friendlyName}),e.currentTimezone=e.timezoneAttribute&&e.timezoneAttribute.value?e.timezoneAttribute.value:"-";var a=e.storeService.get("profile_page_attributes"),o=0,s=e.storeService.get("supported_languages");a.forEach(function(n){var i=t.userAttributes.find(function(e){return e.friendlyName===n.friendly_name});i?(o++,e.addAttribute(i,n,s)):e.attributesManagerService.getAttributeDefinitionByName("urn:perun:user:attribute-def:".concat(n.is_virtual?"virt":"def",":").concat(n.friendly_name)).subscribe(function(t){e.addAttribute(t,n,s),o++,e.loading=o!==a.length}),e.loading=o!==a.length})})})}},{key:"addAttribute",value:function(e,t,n){var i,r,a={attribute:e},o=_createForOfIteratorHelper(n);try{for(o.s();!(r=o.n()).done;){var s=r.value;a["displayName_".concat(s)]=t["display_name_".concat(s)]&&t["display_name_".concat(s)].length?t["display_name_".concat(s)]:e.displayName,a["tooltip_".concat(s)]=null!==(i=t["tooltip_".concat(s)])&&void 0!==i?i:""}}catch(c){o.e(c)}finally{o.f()}this.additionalAttributes.push(a)}},{key:"changeLanguage",value:function(e){var t=this;this.currentLang=e,this.translateService.use(this.currentLang),this.languageAttribute?this.setLanguage():this.attributesManagerService.getAttributeDefinitionByName("urn:perun:user:attribute-def:def:preferredLanguage").subscribe(function(e){t.languageAttribute=e,t.setLanguage()})}},{key:"setLanguage",value:function(){var e=this;this.languageAttribute.value=this.currentLang,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.languageAttribute}).subscribe(function(){e.router.navigate([],{queryParams:{lang:null},queryParamsHandling:"merge"})})}},{key:"changeTimeZone",value:function(e){var t=this;this.currentTimezone=e,this.timezoneAttribute?this.setTimeZone():this.attributesManagerService.getAttributeDefinitionByName("urn:perun:user:attribute-def:def:timezone").subscribe(function(e){t.timezoneAttribute=e,t.setTimeZone()})}},{key:"setTimeZone",value:function(){this.timezoneAttribute.value=this.currentTimezone,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.timezoneAttribute}).subscribe(function(){})}},{key:"changeEmail",value:function(){var e=this,t=dg();t.width="350px",t.data={userId:this.userId},this.dialog.open(Zv,t).afterClosed().subscribe(function(t){t&&e.getEmail()})}},{key:"getEmail",value:function(){var e=this;this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredMail").subscribe(function(t){e.email=t.value})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(lh),a.Y36(Dl),a.Y36(ae),a.Y36(re),a.Y36(he),a.Y36(un),a.Y36(zi),a.Y36(xg),a.Y36(tr),a.Y36(Og),a.Y36(Ig))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"div",0),a.YNc(1,hk,1,0,"mat-spinner",1),a.YNc(2,Ak,10,7,"table",2),a.qZA()),2&e&&(a.xp6(1),a.Q6J("ngIf",t.loading),a.xp6(1),a.Q6J("ngIf",!t.loading))},directives:[r.O5,_m,r.sg,up,r.RF,r.n9,r.ED,td,Gf,ml,_h,sg,lk],pipes:[hh,Wg,r.gd],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}"]}),e}(),kk=["mat-sort-header",""];function Mk(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",3),a.NdJ("@arrowPosition.start",function(){return a.CHM(n),a.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return a.CHM(n),a.oxw()._disableViewStateAnimation=!1}),a._UZ(1,"div",4),a.TgZ(2,"div",5),a._UZ(3,"div",6),a._UZ(4,"div",7),a._UZ(5,"div",8),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.Q6J("@arrowOpacity",i._getArrowViewState())("@arrowPosition",i._getArrowViewState())("@allowChildren",i._getArrowDirectionState()),a.xp6(2),a.Q6J("@indicator",i._getArrowDirectionState()),a.xp6(1),a.Q6J("@leftPointer",i._getArrowDirectionState()),a.xp6(1),a.Q6J("@rightPointer",i._getArrowDirectionState())}}var Ck,Tk=["*"],Lk=new a.OlP("MAT_SORT_DEFAULT_OPTIONS"),Sk=Nu(Ou(function e(){_classCallCheck(this,e)})),Ek=((Ck=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._defaultOptions=e,i.sortables=new Map,i._stateChanges=new ye.xQ,i.start="asc",i._direction="",i.sortChange=new a.vpe,i}return _createClass(n,[{key:"direction",get:function(){return this._direction},set:function(e){this._direction=e}},{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=nr(e)}},{key:"register",value:function(e){this.sortables.set(e.id,e)}},{key:"deregister",value:function(e){this.sortables.delete(e.id)}},{key:"sort",value:function(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})}},{key:"getNextSortDirection",value:function(e){var t,n,i;if(!e)return"";var r=null!==(n=null!==(t=null==e?void 0:e.disableClear)&&void 0!==t?t:this.disableClear)&&void 0!==n?n:!!(null===(i=this._defaultOptions)||void 0===i?void 0:i.disableClear),a=function(e,t){var n=["asc","desc"];return"desc"==e&&n.reverse(),t||n.push(""),n}(e.start||this.start,r),o=a.indexOf(this.direction)+1;return o>=a.length&&(o=0),a[o]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(Sk)).\u0275fac=function(e){return new(e||Ck)(a.Y36(Lk,8))},Ck.\u0275dir=a.lG2({type:Ck,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[a.qOj,a.TTD]}),Ck),zk=Lu.ENTERING+" "+Tu.STANDARD_CURVE,Ok={indicator:Go("indicator",[$o("active-asc, asc",Qo({transform:"translateY(0px)"})),$o("active-desc, desc",Qo({transform:"translateY(10px)"})),ts("active-asc <=> active-desc",Xo(zk))]),leftPointer:Go("leftPointer",[$o("active-asc, asc",Qo({transform:"rotate(-45deg)"})),$o("active-desc, desc",Qo({transform:"rotate(45deg)"})),ts("active-asc <=> active-desc",Xo(zk))]),rightPointer:Go("rightPointer",[$o("active-asc, asc",Qo({transform:"rotate(45deg)"})),$o("active-desc, desc",Qo({transform:"rotate(-45deg)"})),ts("active-asc <=> active-desc",Xo(zk))]),arrowOpacity:Go("arrowOpacity",[$o("desc-to-active, asc-to-active, active",Qo({opacity:1})),$o("desc-to-hint, asc-to-hint, hint",Qo({opacity:.54})),$o("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Qo({opacity:0})),ts("* => asc, * => desc, * => active, * => hint, * => void",Xo("0ms")),ts("* <=> *",Xo(zk))]),arrowPosition:Go("arrowPosition",[ts("* => desc-to-hint, * => desc-to-active",Xo(zk,es([Qo({transform:"translateY(-25%)"}),Qo({transform:"translateY(0)"})]))),ts("* => hint-to-desc, * => active-to-desc",Xo(zk,es([Qo({transform:"translateY(0)"}),Qo({transform:"translateY(25%)"})]))),ts("* => asc-to-hint, * => asc-to-active",Xo(zk,es([Qo({transform:"translateY(25%)"}),Qo({transform:"translateY(0)"})]))),ts("* => hint-to-asc, * => active-to-asc",Xo(zk,es([Qo({transform:"translateY(0)"}),Qo({transform:"translateY(-25%)"})]))),$o("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Qo({transform:"translateY(0)"})),$o("hint-to-desc, active-to-desc, desc",Qo({transform:"translateY(-25%)"})),$o("hint-to-asc, active-to-asc, asc",Qo({transform:"translateY(25%)"}))]),allowChildren:Go("allowChildren",[ts("* <=> *",[is("@*",ns(),{optional:!0})])])},xk=function(){var e=function e(){_classCallCheck(this,e),this.changes=new ye.xQ};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=a.Yz7({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Rk={provide:xk,deps:[[new a.FiY,new a.tp0,xk]],useFactory:function(e){return e||new xk}},Dk=Ou(function e(){_classCallCheck(this,e)}),Pk=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o,s){var c;return _classCallCheck(this,n),(c=t.call(this))._intl=e,c._changeDetectorRef=i,c._sort=r,c._columnDef=a,c._focusMonitor=o,c._elementRef=s,c._showIndicatorHint=!1,c._viewState={},c._arrowDirection="",c._disableViewStateAnimation=!1,c.arrowPosition="after",c._handleStateChanges(),c}return _createClass(n,[{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=nr(e)}},{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){var n=!!t;n!==e._showIndicatorHint&&(e._setIndicatorHintVisible(n),e._changeDetectorRef.markForCheck())})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(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})))}},{key:"_setAnimationTransitionState",value:function(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0)}},{key:"_handleClick",value:function(){this._isDisabled()||this._sort.sort(this)}},{key:"_handleKeydown",value:function(e){this._isDisabled()||32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var e=this._viewState.fromState;return(e?"".concat(e,"-to-"):"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"_handleStateChanges",value:function(){var e=this;this._rerenderSubscription=(0,Oa.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){e._isSorted()&&(e._updateArrowDirection(),"hint"!==e._viewState.toState&&"active"!==e._viewState.toState||(e._disableViewStateAnimation=!0),e._setAnimationTransitionState({fromState:e._arrowDirection,toState:"active"}),e._showIndicatorHint=!1),!e._isSorted()&&e._viewState&&"active"===e._viewState.toState&&(e._disableViewStateAnimation=!1,e._setAnimationTransitionState({fromState:"active",toState:e._arrowDirection})),e._changeDetectorRef.markForCheck()})}}]),n}(Dk);return e.\u0275fac=function(t){return new(t||e)(a.Y36(xk),a.Y36(a.sBO),a.Y36(Ek,8),a.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),a.Y36(jo),a.Y36(a.SBq))},e.\u0275cmp=a.Xpm({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&a.NdJ("click",function(){return t._handleClick()})("keydown",function(e){return t._handleKeydown(e)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(a.uIk("aria-sort",t._getAriaSortAttribute()),a.ekj("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[a.qOj],attrs:kk,ngContentSelectors:Tk,decls:4,vars:6,consts:[["role","button",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&&(a.F$t(),a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.Hsn(2),a.qZA(),a.YNc(3,Mk,6,6,"div",2),a.qZA()),2&e&&(a.ekj("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),a.uIk("tabindex",t._isDisabled()?null:0),a.xp6(3),a.Q6J("ngIf",t._renderArrow()))},directives:[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-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}\n"],encapsulation:2,data:{animation:[Ok.indicator,Ok.leftPointer,Ok.rightPointer,Ok.arrowOpacity,Ok.arrowPosition,Ok.allowChildren]},changeDetection:0}),e}(),Nk=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[Rk],imports:[[r.ez,zu]]}),e}(),Ik=function(){var e=function(){function e(t){_classCallCheck(this,e),this.elementRef=t}return _createClass(e,[{key:"ngOnInit",value:function(){this.elementRef.nativeElement.focus()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq))},e.\u0275dir=a.lG2({type:e,selectors:[["","perunWebAppsAutoFocus",""]]}),e}(),qk=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"onClick",value:function(e){if(1===e.button&&null!=this.perunWebAppsMiddleClickRouterLink){var t=this.perunWebAppsMiddleClickRouterLink.join("/"),n=location.search;window.open(t+n)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(e,t){1&e&&a.NdJ("mouseup",function(e){return t.onClick(e)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),e}(),Bk=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e){var t=e.find(function(e){return"mail"===e.friendlyName});return t?t.value.toString():"N/A"}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=a.Yjl({name:"getMailFromAttributes",type:e,pure:!0}),e}();function Hk(e,t){1&e&&a._UZ(0,"th",18)}function Yk(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"td",19),a.TgZ(1,"span",20),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.TgZ(4,"mat-checkbox",21),a.NdJ("change",function(e){var t=a.CHM(n).$implicit,i=a.oxw();return e?i.selection.toggle(t):null})("click",function(e){return e.stopPropagation()}),a.qZA(),a.qZA(),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw();a.xp6(1),a.s9C("matTooltip",a.lcZ(2,6,a.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.CANNOT_BE_DELETED_TOOLTIP"))),a.Q6J("matTooltipPosition","above")("matTooltipDisabled",!i.userExtSource.persistent),a.xp6(3),a.Q6J("aria-label",r.checkboxLabel(i))("checked",r.selection.isSelected(i))("disabled",i.userExtSource.persistent)}}function jk(e,t){1&e&&(a.TgZ(0,"th",22),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,a.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))," "))}function Fk(e,t){if(1&e&&(a.TgZ(0,"td",23),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.hij(" ",n.userExtSource.id," ")}}function Wk(e,t){1&e&&(a.TgZ(0,"th",24),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,a.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))," "))}function Uk(e,t){if(1&e&&(a.TgZ(0,"td",23),a._uU(1),a.ALo(2,"getMailFromAttributes"),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.hij(" ",a.lcZ(2,1,n.attributes)," ")}}function Kk(e,t){if(1&e&&(a.TgZ(0,"th",22),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e){var n=a.oxw();a.xp6(1),a.hij(" ",a.lcZ(2,1,a.lcZ(3,3,n.extSourceNameHeader?n.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME"))," ")}}function Zk(e,t){if(1&e&&(a.TgZ(0,"td",23),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.hij(" ",n.userExtSource.extSource.name," ")}}function Gk(e,t){if(1&e&&(a.TgZ(0,"th",22),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e){var n=a.oxw();a.xp6(1),a.hij(" ",a.lcZ(2,1,a.lcZ(3,3,n.loginHeader?n.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN"))," ")}}function Xk(e,t){if(1&e&&(a.TgZ(0,"td",23),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.hij(" ",n.userExtSource.login," ")}}function Vk(e,t){1&e&&(a.TgZ(0,"th",22),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,a.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))," "))}function Jk(e,t){if(1&e&&(a.TgZ(0,"td",25),a._uU(1),a.ALo(2,"date"),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.hij(" ",a.xi3(2,1,n.userExtSource.lastAccess,"d.M.y H:mm:ss")," ")}}function Qk(e,t){1&e&&a._UZ(0,"tr",26)}var $k=function(e,t){return["/admin","users",e,"identities",t]};function eM(e,t){if(1&e&&a._UZ(0,"tr",27),2&e){var n=t.$implicit,i=a.oxw();a.ekj("cursor-pointer",!i.disableRouting)("disable-outline",i.disableRouting),a.Q6J("perunWebAppsMiddleClickRouterLink",i.disableRouting?null:a.WLB(6,$k,i.userId,n.userExtSource.id))("routerLink",i.disableRouting?null:a.WLB(9,$k,i.userId,n.userExtSource.id))}}function tM(e,t){1&e&&(a.TgZ(0,"app-alert",28),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function nM(e,t){1&e&&(a.TgZ(0,"app-alert",28),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,a.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}var iM=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.route=t,this.authResolver=n,this.selection=new ga,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSizeOptions=hg}return _createClass(e,[{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"ngOnInit",value:function(){var e=this;this.disableRouting||this.route.parent.params.subscribe(function(t){e.userId=t.userId}),this.setDataSource()}},{key:"ngOnChanges",value:function(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(e){return"id"!==e})),this.dataSource=new Sv(this.userExtSources),this.setDataSource()}},{key:"getDataForColumn",value:function(e,t){switch(t){case"id":return e.userExtSource.id.toString();case"mail":var n=e.attributes.find(function(e){return"mail"===e.friendlyName});return n?n.value.toString():"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]}}},{key:"exportData",value:function(e){_g(vg(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.filterPredicate=function(t,n){return mg(t,n,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,n){return gg(t,n,e.getDataForColumn,e)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}},{key:"checkboxLabel",value:function(e){return"".concat(this.selection.isSelected(e.userExtSource)?"deselect":"select"," row ").concat(e.userExtSource.id+1)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(un),a.Y36(ge))},e.\u0275cmp=a.Xpm({type:e,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(e,t){var n;(1&e&&(a.Gf(Tg,7),a.Gf(Ek,7)),2&e)&&(a.iGM(n=a.CRH())&&(t.child=n.first),a.iGM(n=a.CRH())&&(t.matSort=n.first))},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},features:[a.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&&(a.TgZ(0,"div",0),a.TgZ(1,"perun-web-apps-table-wrapper",1),a.NdJ("exportData",function(e){return t.exportData(e)}),a.TgZ(2,"table",2),a.ynx(3,3),a.YNc(4,Hk,1,0,"th",4),a.YNc(5,Yk,5,10,"td",5),a.BQk(),a.ynx(6,6),a.YNc(7,jk,4,5,"th",7),a.YNc(8,Fk,2,1,"td",8),a.BQk(),a.ynx(9,9),a.YNc(10,Wk,4,5,"th",10),a.YNc(11,Uk,3,3,"td",8),a.BQk(),a.ynx(12,11),a.YNc(13,Kk,4,5,"th",7),a.YNc(14,Zk,2,1,"td",8),a.BQk(),a.ynx(15,12),a.YNc(16,Gk,4,5,"th",7),a.YNc(17,Xk,2,1,"td",8),a.BQk(),a.ynx(18,13),a.YNc(19,Vk,4,5,"th",7),a.YNc(20,Jk,3,4,"td",14),a.BQk(),a.YNc(21,Qk,1,0,"tr",15),a.YNc(22,eM,1,12,"tr",16),a.qZA(),a.qZA(),a.qZA(),a.YNc(23,tM,3,3,"app-alert",17),a.YNc(24,nM,4,5,"app-alert",17)),2&e&&(a.Q6J("hidden",0===t.userExtSources.length||0===t.dataSource.filteredData.length),a.xp6(1),a.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),a.xp6(1),a.Q6J("dataSource",t.dataSource),a.xp6(19),a.Q6J("matHeaderRowDef",t.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",t.displayedColumns),a.xp6(1),a.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.userExtSources.length),a.xp6(1),a.Q6J("ngIf",0===t.userExtSources.length))},directives:[Tg,vv,Ek,bv,yv,_v,kv,Mv,r.O5,Av,wv,up,EA,Pk,Cv,Tv,qk,Oi,cm],pipes:[hh,Wg,Bk,r.uU],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),e}();function rM(e,t){1&e&&a._UZ(0,"mat-spinner",3)}function aM(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div"),a.TgZ(1,"h1",8),a._uU(2),a.ALo(3,"translate"),a.ALo(4,"customTranslate"),a.qZA(),a.TgZ(5,"button",5),a.NdJ("click",function(){return a.CHM(n),a.oxw(2).addIdentity()}),a._uU(6),a.ALo(7,"translate"),a.ALo(8,"customTranslate"),a.qZA(),a.TgZ(9,"button",6),a.NdJ("click",function(){a.CHM(n);var e=a.oxw(2);return e.removeIdentity(e.certSelection)}),a._uU(10),a.ALo(11,"translate"),a.ALo(12,"customTranslate"),a.qZA(),a._UZ(13,"perun-web-apps-user-ext-sources-list",11),a.qZA()}if(2&e){var i=a.oxw(2);a.xp6(2),a.Oqu(a.lcZ(3,10,a.lcZ(4,12,"IDENTITIES.CERT"))),a.xp6(4),a.hij(" ",a.lcZ(7,14,a.lcZ(8,16,"IDENTITIES.ADD"))," "),a.xp6(3),a.Q6J("disabled",0===i.certSelection.selected.length),a.xp6(1),a.hij(" ",a.lcZ(11,18,a.lcZ(12,20,"IDENTITIES.REMOVE"))," "),a.xp6(3),a.Q6J("userExtSources",i.certExtSources)("selection",i.certSelection)("extSourceNameHeader",i.extSourceNameCert)("loginHeader",i.loginCert)("displayedColumns",i.displayedColumnsCert)("disableRouting",!0)}}function oM(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div"),a.TgZ(1,"h1",4),a._uU(2),a.ALo(3,"translate"),a.ALo(4,"customTranslate"),a.qZA(),a.TgZ(5,"button",5),a.NdJ("click",function(){return a.CHM(n),a.oxw().addIdentity()}),a._uU(6),a.ALo(7,"translate"),a.ALo(8,"customTranslate"),a.qZA(),a.TgZ(9,"button",6),a.NdJ("click",function(){a.CHM(n);var e=a.oxw();return e.removeIdentity(e.idpSelection)}),a._uU(10),a.ALo(11,"translate"),a.ALo(12,"customTranslate"),a.qZA(),a._UZ(13,"perun-web-apps-user-ext-sources-list",7),a.YNc(14,aM,14,22,"div",2),a.TgZ(15,"h1",8),a._uU(16),a.ALo(17,"translate"),a.ALo(18,"customTranslate"),a.TgZ(19,"mat-icon",9),a.ALo(20,"translate"),a.ALo(21,"customTranslate"),a._uU(22," info_outline "),a.qZA(),a.qZA(),a._UZ(23,"perun-web-apps-user-ext-sources-list",10),a.qZA()}if(2&e){var i=a.oxw();a.xp6(2),a.Oqu(a.lcZ(3,17,a.lcZ(4,19,"IDENTITIES.IDP"))),a.xp6(4),a.hij(" ",a.lcZ(7,21,a.lcZ(8,23,"IDENTITIES.ADD"))," "),a.xp6(3),a.Q6J("disabled",0===i.idpSelection.selected.length),a.xp6(1),a.hij(" ",a.lcZ(11,25,a.lcZ(12,27,"IDENTITIES.REMOVE"))," "),a.xp6(3),a.Q6J("userExtSources",i.idpExtSources)("selection",i.idpSelection)("displayedColumns",i.displayedColumnsIdp)("loginHeader",i.loginIdp)("disableRouting",!0),a.xp6(1),a.Q6J("ngIf",i.displayCertificates),a.xp6(2),a.hij(" ",a.lcZ(17,29,a.lcZ(18,31,"IDENTITIES.OTHER"))," "),a.xp6(3),a.Q6J("matTooltip",a.lcZ(20,33,a.lcZ(21,35,"IDENTITIES.OTHER_TOOLTIP"))),a.xp6(4),a.Q6J("userExtSources",i.otherExtSources)("selection",i.otherSelection)("extSourceNameHeader",i.extSourceNameOther)("displayedColumns",i.displayedColumnsOther)("disableRouting",!0)}}var sM=function(){var e=function(){function e(t,n,i,r,a){_classCallCheck(this,e),this.usersManagerService=t,this.storage=n,this.registrarManagerService=i,this.dialog=r,this.attributesManagerService=a,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.idpSelection=new ga(!0,[]),this.certSelection=new ga(!0,[]),this.otherSelection=new ga(!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","lastAccess"],this.displayedColumnsCert=["select","extSourceName","login","lastAccess"],this.displayedColumnsOther=["extSourceName","login","lastAccess"]}return _createClass(e,[{key:"ngOnInit",value:function(){this.userId=this.storage.getPerunPrincipal().userId,this.displayCertificates=this.storage.get("display_identity_certificates"),this.refreshTables()}},{key:"refreshTables",value:function(){var e=this;this.loading=!0,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.usersManagerService.getRichUserExtSources(this.userId).subscribe(function(t){var n=t.length;t.forEach(function(t){e.attributesManagerService.getUserExtSourceAttributeByName(t.userExtSource.id,"urn:perun:ues:attribute-def:def:sourceIdPName").subscribe(function(i){i&&i.value?(t.userExtSource.extSource.name=i.value,n--,e.loading=0!==n,e.addToList(t)):e.attributesManagerService.getUserExtSourceAttributeByName(t.userExtSource.id,"urn:perun:ues:attribute-def:def:IdPOrganizationName").subscribe(function(i){n--,i&&i.value&&(t.userExtSource.extSource.name=i.value),e.loading=0!==n,e.addToList(t)})})})})}},{key:"addIdentity",value:function(){var e=this;this.registrarManagerService.getConsolidatorToken().subscribe(function(t){var n=e.storage.getPerunPrincipal().extSourceType,i=e.storage.get("consolidator_base_url");window.location.href="".concat(i).concat(n&&n.endsWith("X509")?"cert":"fed","-ic/ic/?target_url=").concat(window.location.href,"&token=").concat(t)})}},{key:"removeIdentity",value:function(e){var t=this,n=dg();n.width="600px",n.data={theme:"user-theme",userId:this.userId,extSources:e.selected},this.dialog.open(Nv,n).afterClosed().subscribe(function(n){n&&(e.clear(),t.refreshTables())})}},{key:"addToList",value:function(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)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(he),a.Y36(tr),a.Y36(ue),a.Y36(Dl),a.Y36(re))},e.\u0275cmp=a.Xpm({type:e,selectors:[["perun-web-apps-identities-page"]],decls:3,vars:2,consts:[[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"page-title"],["mat-flat-button","","color","accent",1,"action-button",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&&(a.TgZ(0,"div",0),a.YNc(1,rM,1,0,"mat-spinner",1),a.YNc(2,oM,24,37,"div",2),a.qZA()),2&e&&(a.xp6(1),a.Q6J("ngIf",t.loading),a.xp6(1),a.Q6J("ngIf",!t.loading))},directives:[r.O5,_m,_h,iM,sg,up],pipes:[hh,Wg],styles:[".center-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),e}(),cM=["panel"];function uM(e,t){if(1&e&&(a.TgZ(0,"div",0,1),a.Hsn(2),a.qZA()),2&e){var n=t.id,i=a.oxw();a.Q6J("id",i.id)("ngClass",i._classList),a.uIk("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(n))}}var lM=["*"],hM=0,dM=function e(t,n){_classCallCheck(this,e),this.source=t,this.option=n},fM=Ru(function e(){_classCallCheck(this,e)}),pM=new a.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),gM=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var s;return _classCallCheck(this,n),(s=t.call(this))._changeDetectorRef=e,s._elementRef=i,s._activeOptionChanges=Qe.w.EMPTY,s.showPanel=!1,s._isOpen=!1,s.displayWith=null,s.optionSelected=new a.vpe,s.opened=new a.vpe,s.closed=new a.vpe,s.optionActivated=new a.vpe,s._classList={},s.id="mat-autocomplete-"+hM++,s.inertGroups=(null==o?void 0:o.SAFARI)||!1,s._autoActiveFirstOption=!!r.autoActiveFirstOption,s}return _createClass(n,[{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(e){this._autoActiveFirstOption=nr(e)}},{key:"classList",set:function(e){this._classList=e&&e.length?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\s+/,n=[];if(null!=e){var i,r=Array.isArray(e)?e:"".concat(e).split(t),a=_createForOfIteratorHelper(r);try{for(a.s();!(i=a.n()).done;){var o=i.value,s="".concat(o).trim();s&&n.push(s)}}catch(c){a.e(c)}finally{a.f()}}return n}(e).reduce(function(e,t){return e[t]=!0,e},{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}},{key:"ngAfterContentInit",value:function(){var e=this;this._keyManager=new So(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(function(t){e.optionActivated.emit({source:e,option:e.options.toArray()[t]||null})}),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}},{key:"_getScrollTop",value:function(){return this.panel?this.panel.nativeElement.scrollTop:0}},{key:"_setVisibility",value:function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}},{key:"_emitSelectEvent",value:function(e){var t=new dM(this,e);this.optionSelected.emit(t)}},{key:"_getPanelAriaLabelledby",value:function(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}},{key:"_setVisibilityClasses",value:function(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}}]),n}(fM);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.sBO),a.Y36(a.SBq),a.Y36(pM),a.Y36(ta))},e.\u0275dir=a.lG2({type:e,viewQuery:function(e,t){var n;(1&e&&(a.Gf(a.Rgc,7),a.Gf(cM,5)),2&e)&&(a.iGM(n=a.CRH())&&(t.template=n.first),a.iGM(n=a.CRH())&&(t.panel=n.first))},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[a.qOj]}),e}(),mM=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._visibleClass="mat-autocomplete-visible",e._hiddenClass="mat-autocomplete-hidden",e}return n}(gM);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275cmp=a.Xpm({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(e,t,n){var i;(1&e&&(a.Suo(n,dl,5),a.Suo(n,ml,5)),2&e)&&(a.iGM(i=a.CRH())&&(t.optionGroups=i),a.iGM(i=a.CRH())&&(t.options=i))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[a._Bn([{provide:cl,useExisting:t}]),a.qOj],ngContentSelectors:lM,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(e,t){1&e&&(a.F$t(),a.YNc(0,uM,3,4,"ng-template"))},directives:[r.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}\n"],encapsulation:2,changeDetection:0}),t}(),vM=new a.OlP("mat-autocomplete-scroll-strategy"),_M={provide:vM,deps:[so],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},yM={provide:ad,useExisting:(0,a.Gpc)(function(){return AM}),multi:!0},bM=function(){var e=function(){function e(t,n,i,r,a,o,s,c,u,l,h){var d=this;_classCallCheck(this,e),this._element=t,this._overlay=n,this._viewContainerRef=i,this._zone=r,this._changeDetectorRef=a,this._dir=s,this._formField=c,this._document=u,this._viewportRuler=l,this._defaults=h,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Qe.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new ye.xQ,this._windowBlurHandler=function(){d._canOpenOnNextFocus=d._document.activeElement!==d._element.nativeElement||d.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=Se(function(){return d.autocomplete&&d.autocomplete.options?Oa.T.apply(void 0,_toConsumableArray(d.autocomplete.options.map(function(e){return e.onSelectionChange}))):d._zone.onStable.pipe((0,xe.q)(1),(0,Oe.w)(function(){return d.optionSelections}))}),this._scrollStrategy=o}return _createClass(e,[{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(e){this._autocompleteDisabled=nr(e)}},{key:"ngAfterViewInit",value:function(){var e=this,t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular(function(){return t.addEventListener("blur",e._windowBlurHandler)})}},{key:"ngOnChanges",value:function(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var e=this._getWindow();void 0!==e&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"openPanel",value:function(){this._attachOverlay(),this._floatLabel()}},{key:"closePanel",value:function(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}},{key:"updatePosition",value:function(){this._overlayAttached&&this._overlayRef.updatePosition()}},{key:"panelClosingActions",get:function(){var e=this;return(0,Oa.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,me.h)(function(){return e._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,me.h)(function(){return e._overlayAttached})):(0,_e.of)()).pipe((0,ze.U)(function(e){return e instanceof pl?e:null}))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}},{key:"_getOutsideClickStream",value:function(){var e=this;return(0,Oa.T)(lr(this._document,"click"),lr(this._document,"auxclick"),lr(this._document,"touchend")).pipe((0,me.h)(function(t){var n=e._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,i=e._formField?e._formField._elementRef.nativeElement:null,r=e.connectedTo?e.connectedTo.elementRef.nativeElement:null;return e._overlayAttached&&n!==e._element.nativeElement&&(!i||!i.contains(n))&&(!r||!r.contains(n))&&!!e._overlayRef&&!e._overlayRef.overlayElement.contains(n)}))}},{key:"writeValue",value:function(e){var t=this;Promise.resolve(null).then(function(){return t._setTriggerValue(e)})}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this._element.nativeElement.disabled=e}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;if(27!==t||Da(e)||e.preventDefault(),this.activeOption&&13===t&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){var n=this.autocomplete._keyManager.activeItem,i=38===t||40===t;this.panelOpen||9===t?this.autocomplete._keyManager.onKeydown(e):i&&this._canOpen()&&this.openPanel(),(i||this.autocomplete._keyManager.activeItem!==n)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}},{key:"_handleInput",value:function(e){var t=e.target,n=t.value;"number"===t.type&&(n=""==n?null:parseFloat(n)),this._previousValue!==n&&(this._previousValue=n,this._onChange(n),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}},{key:"_handleFocus",value:function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}},{key:"_floatLabel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}},{key:"_resetLabel",value:function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}},{key:"_subscribeToClosingActions",value:function(){var e=this,t=this._zone.onStable.pipe((0,xe.q)(1)),n=this.autocomplete.options.changes.pipe((0,Ve.b)(function(){return e._positionStrategy.reapplyLastPosition()}),(0,Tp.g)(0));return(0,Oa.T)(t,n).pipe((0,Oe.w)(function(){var t=e.panelOpen;return e._resetActiveItem(),e.autocomplete._setVisibility(),e.panelOpen&&(e._overlayRef.updatePosition(),t!==e.panelOpen&&e.autocomplete.opened.emit()),e.panelClosingActions}),(0,xe.q)(1)).subscribe(function(t){return e._setValueAndClose(t)})}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value:function(e){var t=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e,n=null!=t?t:"";this._formField?this._formField._control.value=n:this._element.nativeElement.value=n,this._previousValue=n}},{key:"_setValueAndClose",value:function(e){e&&e.source&&(this._clearPreviousSelectedOption(e.source),this._setTriggerValue(e.source.value),this._onChange(e.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(e.source)),this.closePanel()}},{key:"_clearPreviousSelectedOption",value:function(e){this.autocomplete.options.forEach(function(t){t!==e&&t.selected&&t.deselect()})}},{key:"_attachOverlay",value:function(){var e,t=this;null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!ca(this._element.nativeElement));var n=this._overlayRef;n?(this._positionStrategy.setOrigin(this._getConnectedElement()),n.updateSize({width:this._getPanelWidth()})):(this._portal=new Ca(this.autocomplete.template,this._viewContainerRef,{id:null===(e=this._formField)||void 0===e?void 0:e.getLabelId()}),n=this._overlay.create(this._getOverlayConfig()),this._overlayRef=n,n.keydownEvents().subscribe(function(e){(27===e.keyCode&&!Da(e)||38===e.keyCode&&Da(e,"altKey"))&&(t._resetActiveItem(),t._closeKeyEventStream.next(),e.stopPropagation(),e.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(function(){t.panelOpen&&n&&n.updateSize({width:t._getPanelWidth()})})),n&&!n.hasAttached()&&(n.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){var e;return new Fa({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(e=this._defaults)||void 0===e?void 0:e.overlayPanelClass})}},{key:"_getOverlayPosition",value:function(){var e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}},{key:"_setStrategyPositions",value:function(e){var t,n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:i},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:i}];t="above"===this.position?r:"below"===this.position?n:[].concat(n,r),e.withPositions(t)}},{key:"_getConnectedElement",value:function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}},{key:"_getPanelWidth",value:function(){return this.autocomplete.panelWidth||this._getHostWidth()}},{key:"_getHostWidth",value:function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}},{key:"_resetActiveItem",value:function(){var e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}},{key:"_canOpen",value:function(){var e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var e;return(null===(e=this._document)||void 0===e?void 0:e.defaultView)||window}},{key:"_scrollToOption",value:function(e){var t=this.autocomplete,n=vl(e,t.options,t.optionGroups);if(0===e&&1===n)t._setScrollTop(0);else if(t.panel){var i=t.options.toArray()[e];if(i){var r=i._getHostElement(),a=_l(r.offsetTop,r.offsetHeight,t._getScrollTop(),t.panel.nativeElement.offsetHeight);t._setScrollTop(a)}}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(so),a.Y36(a.s_b),a.Y36(a.R0b),a.Y36(a.sBO),a.Y36(vM),a.Y36(ha,8),a.Y36(ed,9),a.Y36(r.K0,8),a.Y36(ba),a.Y36(pM,8))},e.\u0275dir=a.lG2({type:e,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[a.TTD]}),e}(),AM=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._aboveClass="mat-autocomplete-panel-above",e}return n}(bM);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275dir=a.lG2({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(e,t){1&e&&a.NdJ("focusin",function(){return t._handleFocus()})("blur",function(){return t._onTouched()})("input",function(e){return t._handleInput(e)})("keydown",function(e){return t._handleKeydown(e)}),2&e&&a.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)},exportAs:["matAutocompleteTrigger"],features:[a._Bn([yM]),a.qOj]}),t}(),wM=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[_M],imports:[[po,yl,zu,r.ez],Aa,yl,zu]}),e}(),kM=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e){return e&&e.value?e.value:"never"}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=a.Yjl({name:"validateExpiration",type:e,pure:!0}),e}();function MM(e,t){1&e&&a._UZ(0,"th",17)}function CM(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"td",18),a.TgZ(1,"mat-checkbox",19),a.NdJ("change",function(e){var t=a.CHM(n).$implicit,i=a.oxw();return e?i.selection.toggle(t):null})("click",function(e){return e.stopPropagation()}),a.ALo(2,"validateExpiration"),a.qZA(),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw();a.xp6(1),a.Q6J("aria-label",r.checkboxLabel(i))("checked",r.selection.isSelected(i))("disabled","never"===a.lcZ(2,3,i.expirationAttribute))}}function TM(e,t){1&e&&(a.TgZ(0,"th",20),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,a.lcZ(3,3,"MEMBERSHIP_LIST.NAME"))," "))}function LM(e,t){if(1&e&&(a.TgZ(0,"td",21),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(n.entity.name)}}function SM(e,t){1&e&&(a.TgZ(0,"th",20),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,a.lcZ(3,3,"MEMBERSHIP_LIST.DESCRIPTION"))," "))}function EM(e,t){if(1&e&&(a.TgZ(0,"td",22),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(n.entity.description)}}function zM(e,t){1&e&&(a.TgZ(0,"th",23),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,a.lcZ(3,3,"MEMBERSHIP_LIST.EXPIRATION"))," "))}function OM(e,t){if(1&e&&(a.TgZ(0,"td",22),a._uU(1),a.ALo(2,"validateExpiration"),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.hij(" ",a.lcZ(2,1,n.expirationAttribute)," ")}}function xM(e,t){1&e&&a._UZ(0,"th",20)}function RM(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"td",22),a.TgZ(1,"button",24),a.NdJ("click",function(){var e=a.CHM(n).$implicit;return a.oxw().extend(e)}),a.ALo(2,"validateExpiration"),a._uU(3),a.ALo(4,"translate"),a.ALo(5,"customTranslate"),a.qZA(),a.qZA()}if(2&e){var i=t.$implicit;a.xp6(1),a.Q6J("disabled","never"===a.lcZ(2,2,i.expirationAttribute)),a.xp6(2),a.hij(" ",a.lcZ(4,4,a.lcZ(5,6,"MEMBERSHIP_LIST.EXTEND"))," ")}}function DM(e,t){1&e&&a._UZ(0,"tr",25)}function PM(e,t){1&e&&a._UZ(0,"tr",26)}function NM(e,t){1&e&&(a.TgZ(0,"app-alert",27),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,a.lcZ(3,3,"MEMBERSHIP_LIST.NO_MEMBERSHIPS"))))}var IM=function(){var e=function(){function e(){_classCallCheck(this,e),this.members=[],this.searchString="",this.selection=new ga(!1,[]),this.displayedColumns=["checkbox","name","description","expirationAttribute","extend"],this.filterValue="",this.extendMembership=new a.vpe,this.pageSizeOptions=hg}return _createClass(e,[{key:"matSort",set:function(e){this.sort=e,this.setDataSource()}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.child.paginator}},{key:"ngOnChanges",value:function(){this.dataSource=new Sv(this.members),this.setDataSource()}},{key:"getDataForColumn",value:function(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&&e.expirationAttribute.value?e.expirationAttribute.value:"never";default:return""}}},{key:"exportData",value:function(e){_g(vg(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource&&(this.dataSource.filterPredicate=function(t,n){return mg(t,n,e.displayedColumns,e.getDataForColumn,e)},this.dataSource.sortData=function(t,n){return gg(t,n,e.getDataForColumn,e)},this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}},{key:"checkboxLabel",value:function(e){return"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e.entity.id+1)}},{key:"extend",value:function(e){this.extendMembership.emit(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.Xpm({type:e,selectors:[["perun-web-apps-membership-list"]],viewQuery:function(e,t){var n;(1&e&&(a.Gf(Ek,7),a.Gf(Tg,7)),2&e)&&(a.iGM(n=a.CRH())&&(t.matSort=n.first),a.iGM(n=a.CRH())&&(t.child=n.first))},inputs:{members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",filterValue:"filterValue"},outputs:{extendMembership:"extendMembership"},features:[a.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&&(a.TgZ(0,"div",0),a.TgZ(1,"perun-web-apps-table-wrapper",1),a.NdJ("exportData",function(e){return t.exportData(e)}),a.TgZ(2,"table",2),a.ynx(3,3),a.YNc(4,MM,1,0,"th",4),a.YNc(5,CM,3,5,"td",5),a.BQk(),a.ynx(6,6),a.YNc(7,TM,4,5,"th",7),a.YNc(8,LM,2,1,"td",8),a.BQk(),a.ynx(9,9),a.YNc(10,SM,4,5,"th",7),a.YNc(11,EM,2,1,"td",10),a.BQk(),a.ynx(12,11),a.YNc(13,zM,4,5,"th",12),a.YNc(14,OM,3,3,"td",10),a.BQk(),a.ynx(15,13),a.YNc(16,xM,1,0,"th",7),a.YNc(17,RM,6,8,"td",10),a.BQk(),a.YNc(18,DM,1,0,"tr",14),a.YNc(19,PM,1,0,"tr",15),a.qZA(),a.qZA(),a.qZA(),a.YNc(20,NM,4,5,"app-alert",16)),2&e&&(a.Q6J("hidden",!t.dataSource.filteredData.length),a.xp6(1),a.Q6J("dataLength",t.dataSource.filteredData.length)("tableId",t.tableId)("pageSizeOptions",t.pageSizeOptions),a.xp6(1),a.Q6J("dataSource",t.dataSource),a.xp6(16),a.Q6J("matHeaderRowDef",t.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",t.displayedColumns),a.xp6(1),a.Q6J("ngIf",!t.dataSource.filteredData.length))},directives:[Tg,vv,Ek,bv,yv,_v,kv,Mv,r.O5,Av,wv,EA,Pk,_h,Cv,Tv,cm],pipes:[kM,hh,Wg],styles:[""]}),e}();function qM(e,t){if(1&e&&(a.TgZ(0,"mat-option",13),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.Q6J("value",n),a.xp6(1),a.hij(" ",n.name," ")}}function BM(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-form-field",7),a.TgZ(1,"mat-label"),a._uU(2),a.ALo(3,"translate"),a.qZA(),a._UZ(4,"input",8),a.ALo(5,"translate"),a.ALo(6,"customTranslate"),a.TgZ(7,"mat-autocomplete",9,10),a.NdJ("optionSelected",function(e){return a.CHM(n),a.oxw().filterByVo(e)}),a.TgZ(9,"mat-option",11),a._uU(10),a.ALo(11,"translate"),a.ALo(12,"customTranslate"),a.qZA(),a.YNc(13,qM,2,2,"mat-option",12),a.ALo(14,"async"),a.qZA(),a.qZA()}if(2&e){var i=a.MAs(8),r=a.oxw();a.xp6(2),a.Oqu(a.lcZ(3,7,"GROUPS.SELECT_VO")),a.xp6(2),a.s9C("placeholder",a.lcZ(5,9,a.lcZ(6,11,"GROUPS.SELECT_VO"))),a.Q6J("formControl",r.myControl)("matAutocomplete",i),a.xp6(3),a.Q6J("displayWith",r.displayFn),a.xp6(3),a.Oqu(a.lcZ(11,13,a.lcZ(12,15,"GROUPS.ALL"))),a.xp6(3),a.Q6J("ngForOf",a.lcZ(14,17,r.filteredVos))}}function HM(e,t){1&e&&a._UZ(0,"mat-spinner",14)}function YM(e,t){1&e&&(a.TgZ(0,"app-alert",15),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,a.lcZ(3,3,"GROUPS.NO_GROUPS"))))}var jM=function(){return["name","description","expirationAttribute","extend"]};function FM(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div"),a.TgZ(1,"h4",16),a._uU(2),a.ALo(3,"translate"),a.ALo(4,"customTranslate"),a.qZA(),a.TgZ(5,"perun-web-apps-membership-list",17),a.NdJ("extendMembership",function(e){return a.CHM(n),a.oxw().extendMembership(e)}),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.xp6(2),a.Oqu(a.lcZ(3,4,a.lcZ(4,6,"GROUPS.MEMBER_GROUPS"))),a.xp6(3),a.Q6J("members",i.userMemberships)("selection",i.selection)("displayedColumns",a.DdM(8,jM))}}var WM=function(){return["name","description"]};function UM(e,t){if(1&e&&(a.TgZ(0,"div",18),a.TgZ(1,"h4",16),a._uU(2),a.ALo(3,"translate"),a.ALo(4,"customTranslate"),a.qZA(),a._UZ(5,"perun-web-apps-membership-list",19),a.qZA()),2&e){var n=a.oxw();a.xp6(2),a.Oqu(a.lcZ(3,3,a.lcZ(4,5,"GROUPS.ADMINS_GROUPS"))),a.xp6(3),a.Q6J("members",n.adminMemberships)("displayedColumns",a.DdM(7,WM))}}var KM=function(){var e=function(){function e(t,n,i,r,a,o){_classCallCheck(this,e),this.usersService=t,this.memberService=n,this.groupService=i,this.store=r,this.vosManagerService=a,this.attributesManagerService=o,this.loading=!1,this.vos=[],this.myControl=new tf,this.selection=new ga(!1,[]),this.displayedColumns=["id","name"],this.userMemberships=[],this.adminMemberships=[]}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.loading=!0,this.userId=this.store.getPerunPrincipal().userId,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(function(t){e.vos=t,e.filteredVos=e.myControl.valueChanges.pipe(De(""),(0,ze.U)(function(t){return e._filter(t)})),e.getAllGroups()})}},{key:"_filter",value:function(e){var t="string"==typeof e?e.toLowerCase():e.name.toLowerCase;return this.vos.filter(function(e){return e.name.toLowerCase().includes(t)})}},{key:"getAllGroups",value:function(){var e=this;this.loading=!0;var t=0,n=0;this.userMemberships=[],this.adminMemberships=[];var i=this.store.getPerunPrincipal().roles.SELF.Member;i.length?n=i.length:this.loading=!1,i.forEach(function(i){n--,e.groupService.getMemberGroups(i).subscribe(function(r){t+=r.length,e.loading=0===t&&0!==n,r.forEach(function(n){e.attributesManagerService.getMemberGroupAttributes(i,n.id).subscribe(function(i){t--,e.userMemberships.push({entity:n,expirationAttribute:i.find(function(e){return"groupMembershipExpiration"===e.friendlyName})}),e.loading=0!==t})})})}),this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(function(t){t.forEach(function(t){e.adminMemberships.push({entity:t,expirationAttribute:null})})})}},{key:"displayFn",value:function(e){return e?e.name:null}},{key:"filterByVo",value:function(e){var t=this;if("all"===e.option.value)this.getAllGroups();else{this.userMemberships=[],this.adminMemberships=[],this.loading=!0;var n=e.option.value;this.memberService.getMemberByUser(n.id,this.userId).subscribe(function(e){t.groupService.getMemberGroups(e.id).subscribe(function(n){var i=n.length;t.loading=0!==i,n.forEach(function(n){t.attributesManagerService.getMemberGroupAttributes(e.id,n.id).subscribe(function(e){i--,t.userMemberships.push({entity:n,expirationAttribute:e.find(function(e){return"groupMembershipExpiration"===e.friendlyName})}),t.loading=0!==i})})})}),this.usersService.getGroupsInVoWhereUserIsAdmin(this.userId,n.id).subscribe(function(e){e.forEach(function(e){t.adminMemberships.push({entity:e,expirationAttribute:null})})})}}},{key:"extendMembership",value:function(e){var t=this.store.get("registrar_base_url"),n=e.entity,i=this.vos.find(function(e){return e.id===n.voId}).shortName;window.location.href="".concat(t,"?vo=").concat(i,"&group=").concat(e.entity.shortName)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(he),a.Y36(se),a.Y36(oe),a.Y36(tr),a.Y36(fe),a.Y36(re))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA(),a.TgZ(4,"div",1),a.YNc(5,BM,15,19,"mat-form-field",2),a.YNc(6,HM,1,0,"mat-spinner",3),a.YNc(7,YM,4,5,"app-alert",4),a.YNc(8,FM,6,9,"div",5),a.YNc(9,UM,6,8,"div",6),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,6,a.lcZ(3,8,"GROUPS.TITLE"))),a.xp6(4),a.Q6J("ngIf",!t.loading),a.xp6(1),a.Q6J("ngIf",t.loading),a.xp6(1),a.Q6J("ngIf",!t.userMemberships.length&&!t.adminMemberships.length&&!t.loading),a.xp6(1),a.Q6J("ngIf",!t.loading&&0!==t.userMemberships.length),a.xp6(1),a.Q6J("ngIf",!t.loading&&0!==t.adminMemberships.length))},directives:[r.O5,td,Kh,tm,cd,AM,Rd,vf,mM,ml,r.sg,_m,cm,IM],pipes:[hh,Wg,r.Ov],styles:[""]}),e}();function ZM(e,t){if(1&e&&(a._UZ(0,"input",3),a.ALo(1,"translate")),2&e){var n=a.oxw();a.s9C("placeholder",a.lcZ(1,2,n.placeholder)),a.Q6J("formControl",n.formControl)}}function GM(e,t){if(1&e&&(a._UZ(0,"input",4),a.ALo(1,"translate")),2&e){var n=a.oxw();a.s9C("placeholder",a.lcZ(1,2,n.placeholder)),a.Q6J("formControl",n.formControl)}}var XM=function(){var e=function(){function e(){_classCallCheck(this,e),this.filter=new a.vpe,this.autoFocus=!1,this.formControl=new tf}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.formControl.valueChanges.subscribe(function(t){var n=t.trim();n=n.toLowerCase(),e.filter.emit(n)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.Xpm({type:e,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","",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(e,t){1&e&&(a.TgZ(0,"mat-form-field",0),a.YNc(1,ZM,2,4,"input",1),a.YNc(2,GM,2,4,"input",2),a.qZA()),2&e&&(a.xp6(1),a.Q6J("ngIf",t.autoFocus),a.xp6(1),a.Q6J("ngIf",!t.autoFocus))},directives:[td,r.O5,tm,cd,Ik,Rd,vf],pipes:[hh],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:auto!important}"]}),e}(),VM=0,JM=new a.OlP("CdkAccordion"),QM=function(){var e=function(){function e(){_classCallCheck(this,e),this._stateChanges=new ye.xQ,this._openCloseAllActions=new ye.xQ,this.id="cdk-accordion-"+VM++,this._multi=!1}return _createClass(e,[{key:"multi",get:function(){return this._multi},set:function(e){this._multi=nr(e)}},{key:"openAll",value:function(){this._multi&&this._openCloseAllActions.next(!0)}},{key:"closeAll",value:function(){this._openCloseAllActions.next(!1)}},{key:"ngOnChanges",value:function(e){this._stateChanges.next(e)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[a._Bn([{provide:JM,useExisting:e}]),a.TTD]}),e}(),$M=0,eC=function(){var e=function(){function e(t,n,i){var r=this;_classCallCheck(this,e),this.accordion=t,this._changeDetectorRef=n,this._expansionDispatcher=i,this._openCloseAllSubscription=Qe.w.EMPTY,this.closed=new a.vpe,this.opened=new a.vpe,this.destroyed=new a.vpe,this.expandedChange=new a.vpe,this.id="cdk-accordion-child-"+$M++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=i.listen(function(e,t){r.accordion&&!r.accordion.multi&&r.accordion.id===t&&r.id!==e&&(r.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return _createClass(e,[{key:"expanded",get:function(){return this._expanded},set:function(e){e=nr(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())}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=nr(e)}},{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var e=this;return this.accordion._openCloseAllActions.subscribe(function(t){e.disabled||(e.expanded=t)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(JM,12),a.Y36(a.sBO),a.Y36(ma))},e.\u0275dir=a.lG2({type:e,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[a._Bn([{provide:JM,useValue:void 0}])]}),e}(),tC=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({}),e}(),nC=["body"];function iC(e,t){}var rC=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],aC=["mat-expansion-panel-header","*","mat-action-row"];function oC(e,t){if(1&e&&a._UZ(0,"span",2),2&e){var n=a.oxw();a.Q6J("@indicatorRotate",n._getExpandedState())}}var sC=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],cC=["mat-panel-title","mat-panel-description","*"],uC=new a.OlP("MAT_ACCORDION"),lC={indicatorRotate:Go("indicatorRotate",[$o("collapsed, void",Qo({transform:"rotate(0deg)"})),$o("expanded",Qo({transform:"rotate(180deg)"})),ts("expanded <=> collapsed, void => collapsed",Xo("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),bodyExpansion:Go("bodyExpansion",[$o("collapsed, void",Qo({height:"0px",visibility:"hidden"})),$o("expanded",Qo({height:"*",visibility:"visible"})),ts("expanded <=> collapsed, void => collapsed",Xo("225ms cubic-bezier(0.4,0.0,0.2,1)"))])},hC=function(){var e=function e(t){_classCallCheck(this,e),this._template=t};return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.Rgc))},e.\u0275dir=a.lG2({type:e,selectors:[["ng-template","matExpansionPanelContent",""]]}),e}(),dC=0,fC=new a.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),pC=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,s,c,u){var l;return _classCallCheck(this,n),(l=t.call(this,e,i,r))._viewContainerRef=o,l._animationMode=c,l._hideToggle=!1,l.afterExpand=new a.vpe,l.afterCollapse=new a.vpe,l._inputChanges=new ye.xQ,l._headerId="mat-expansion-panel-header-"+dC++,l._bodyAnimationDone=new ye.xQ,l.accordion=e,l._document=s,l._bodyAnimationDone.pipe(Cr(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){"void"!==e.fromState&&("expanded"===e.toState?l.afterExpand.emit():"collapsed"===e.toState&&l.afterCollapse.emit())}),u&&(l.hideToggle=u.hideToggle),l}return _createClass(n,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(e){this._hideToggle=nr(e)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(e){this._togglePosition=e}},{key:"_hasSpacing",value:function(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var e=this;this._lazyContent&&this.opened.pipe(De(null),(0,me.h)(function(){return e.expanded&&!e._portal}),(0,xe.q)(1)).subscribe(function(){e._portal=new Ca(e._lazyContent._template,e._viewContainerRef)})}},{key:"ngOnChanges",value:function(e){this._inputChanges.next(e)}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}}]),n}(eC);return e.\u0275fac=function(t){return new(t||e)(a.Y36(uC,12),a.Y36(a.sBO),a.Y36(ma),a.Y36(a.s_b),a.Y36(r.K0),a.Y36(_u,8),a.Y36(fC,8))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,n){var i;(1&e&&a.Suo(n,hC,5),2&e)&&(a.iGM(i=a.CRH())&&(t._lazyContent=i.first))},viewQuery:function(e,t){var n;(1&e&&a.Gf(nC,5),2&e)&&(a.iGM(n=a.CRH())&&(t._body=n.first))},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&a.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:[a._Bn([{provide:uC,useValue:void 0}]),a.qOj,a.TTD],ngContentSelectors:aC,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&&(a.F$t(rC),a.Hsn(0),a.TgZ(1,"div",0,1),a.NdJ("@bodyExpansion.done",function(e){return t._bodyAnimationDone.next(e)}),a.TgZ(3,"div",2),a.Hsn(4,1),a.YNc(5,iC,0,0,"ng-template",3),a.qZA(),a.Hsn(6,2),a.qZA()),2&e&&(a.xp6(1),a.Q6J("@bodyExpansion",t._getExpandedState())("id",t.id),a.uIk("aria-labelledby",t._headerId),a.xp6(4),a.Q6J("cdkPortalOutlet",t._portal))},directives:[Ea],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-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 button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[lC.bodyExpansion]},changeDetection:0}),e}(),gC=function(){var e=function(){function e(t,n,i,r,a,o){var s=this;_classCallCheck(this,e),this.panel=t,this._element=n,this._focusMonitor=i,this._changeDetectorRef=r,this._animationMode=o,this._parentChangeSubscription=Qe.w.EMPTY;var c=t.accordion?t.accordion._stateChanges.pipe((0,me.h)(function(e){return!(!e.hideToggle&&!e.togglePosition)})):Le.E;this._parentChangeSubscription=(0,Oa.T)(t.opened,t.closed,c,t._inputChanges.pipe((0,me.h)(function(e){return!!(e.hideToggle||e.disabled||e.togglePosition)}))).subscribe(function(){return s._changeDetectorRef.markForCheck()}),t.closed.pipe((0,me.h)(function(){return t._containsFocus()})).subscribe(function(){return i.focusVia(n,"program")}),a&&(this.expandedHeight=a.expandedHeight,this.collapsedHeight=a.collapsedHeight)}return _createClass(e,[{key:"disabled",get:function(){return this.panel.disabled}},{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_getHeaderHeight",value:function(){var e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}},{key:"_keydown",value:function(e){switch(e.keyCode){case 32:case 13:Da(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._element).subscribe(function(t){t&&e.panel.accordion&&e.panel.accordion._handleHeaderFocus(e)})}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(pC,1),a.Y36(a.SBq),a.Y36(jo),a.Y36(a.sBO),a.Y36(fC,8),a.Y36(_u,8))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&a.NdJ("click",function(){return t._toggle()})("keydown",function(e){return t._keydown(e)}),2&e&&(a.uIk("id",t.panel._headerId)("tabindex",t.disabled?-1:0)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),a.Udp("height",t._getHeaderHeight()),a.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:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:cC,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(a.F$t(sC),a.TgZ(0,"span",0),a.Hsn(1),a.Hsn(2,1),a.Hsn(3,2),a.qZA(),a.YNc(4,oC,1,1,"span",1)),2&e&&(a.xp6(4),a.Q6J("ngIf",t._showToggle()))},directives:[r.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}[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 .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[lC.indicatorRotate]},changeDetection:0}),e}(),mC=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),e}(),vC=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._ownHeaders=new a.n_E,e._hideToggle=!1,e.displayMode="default",e.togglePosition="after",e}return _createClass(n,[{key:"hideToggle",get:function(){return this._hideToggle},set:function(e){this._hideToggle=nr(e)}},{key:"ngAfterContentInit",value:function(){var e=this;this._headers.changes.pipe(De(this._headers)).subscribe(function(t){e._ownHeaders.reset(t.filter(function(t){return t.panel.accordion===e})),e._ownHeaders.notifyOnChanges()}),this._keyManager=new Eo(this._ownHeaders).withWrap().withHomeAndEnd()}},{key:"_handleHeaderKeydown",value:function(e){this._keyManager.onKeydown(e)}},{key:"_handleHeaderFocus",value:function(e){this._keyManager.updateActiveItem(e)}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"ngOnDestroy",this).call(this),this._ownHeaders.destroy()}}]),n}(QM);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275dir=a.lG2({type:t,selectors:[["mat-accordion"]],contentQueries:function(e,t,n){var i;(1&e&&a.Suo(n,gC,5),2&e)&&(a.iGM(i=a.CRH())&&(t._headers=i))},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&a.ekj("mat-accordion-multi",t.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[a._Bn([{provide:uC,useExisting:t}]),a.qOj]}),t}(),_C=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[r.ez,zu,tC,za]]}),e}();function yC(e,t){1&e&&(a.TgZ(0,"mat-icon",1),a.ALo(1,"translate"),a._uU(2," visibility\n"),a.qZA()),2&e&&a.s9C("matTooltip",a.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}var bC=function(){var e=function e(){_classCallCheck(this,e),this.recentIds=[]};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.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(e,t){1&e&&a.YNc(0,yC,3,3,"mat-icon",0),2&e&&a.Q6J("ngIf",t.recentIds.indexOf(t.id)>-1)},directives:[r.O5,sg,up],pipes:[hh],styles:[".disabled-icon[_ngcontent-%COMP%]{color:rgba(0,0,0,.26)}"]}),e}();function AC(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"span",3),a.NdJ("click",function(){return a.CHM(n),a.oxw().changeStatus()}),a.ALo(1,"translate"),a.TgZ(2,"mat-icon",4),a._uU(3,"check_circle_outline"),a.qZA(),a.qZA()}2&e&&a.s9C("matTooltip",a.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE"))}function wC(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"span",3),a.NdJ("click",function(){return a.CHM(n),a.oxw().changeStatus()}),a.ALo(1,"translate"),a.TgZ(2,"mat-icon",5),a._uU(3,"block"),a.qZA(),a.qZA()}2&e&&a.s9C("matTooltip",a.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE"))}function kC(e,t){if(1&e&&(a.TgZ(0,"span",6),a.ALo(1,"translate"),a.TgZ(2,"mat-icon",7),a._uU(3,"report"),a.qZA(),a.qZA()),2&e){var n=a.oxw();a.hYB("matTooltip","",a.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",n.failureCause,"")}}function MC(e,t){1&e&&(a.TgZ(0,"span",6),a.ALo(1,"translate"),a.TgZ(2,"mat-icon",8),a._uU(3,"autorenew"),a.qZA(),a.qZA()),2&e&&a.s9C("matTooltip",a.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}var CC=function(){var e=function(){function e(t){_classCallCheck(this,e),this.dialog=t,this.status="",this.statusChange=new a.vpe}return _createClass(e,[{key:"changeStatus",value:function(){var e=this,t=dg();t.width="500px",t.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(k_,t).afterClosed().subscribe(function(t){t&&e.statusChange.emit()})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Dl))},e.\u0275cmp=a.Xpm({type:e,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"],["matTooltipPosition","above",3,"matTooltip"],[1,"red"],[1,"black"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.YNc(1,AC,4,3,"span",1),a.YNc(2,wC,4,3,"span",1),a.YNc(3,kC,4,4,"span",2),a.YNc(4,MC,4,3,"span",2),a.qZA()),2&e&&(a.xp6(1),a.Q6J("ngIf","ACTIVE"===t.status),a.xp6(1),a.Q6J("ngIf","INACTIVE"===t.status),a.xp6(1),a.Q6J("ngIf","FAILED"===t.status),a.xp6(1),a.Q6J("ngIf","PROCESSING"===t.status))},directives:[r.O5,up,sg],pipes:[hh],styles:[""]}),e}(),TC=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e){if(null==e)return null;var t="";return e.forEach(function(e){t=t.concat(e.tagName)}),t}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=a.Yjl({name:"resourceTagsToString",type:e,pure:!0}),e}(),LC=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e,t){return t?"/organizations/".concat(e.voId,"/resources/").concat(e.id):"/facilities/".concat(e.facilityId,"/resources/").concat(e.id)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=a.Yjl({name:"getResourceRoute",type:e,pure:!0}),e}();function SC(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"th",22),a.TgZ(1,"mat-checkbox",23),a.NdJ("change",function(e){a.CHM(n);var t=a.oxw();return e?t.masterToggle():null}),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.xp6(1),a.Q6J("aria-label",i.checkboxLabel())("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function EC(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"td",24),a.TgZ(1,"span",25),a.ALo(2,"translate"),a.TgZ(3,"mat-checkbox",26),a.NdJ("change",function(e){var t=a.CHM(n).$implicit,i=a.oxw();return e?i.itemSelectionToggle(t):null})("click",function(e){return e.stopPropagation()}),a.qZA(),a.qZA(),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw();a.xp6(1),a.s9C("matTooltip",a.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE")),a.Q6J("matTooltipPosition","above")("matTooltipDisabled",!r.disableSelect(i)),a.xp6(2),a.Q6J("aria-label",r.checkboxLabel(i))("checked",r.selection.isSelected(i))("disabled",r.disableSelect(i))}}function zC(e,t){1&e&&(a.TgZ(0,"th",27),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")," "))}function OC(e,t){if(1&e&&(a.TgZ(0,"td",28),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(n.id)}}function xC(e,t){1&e&&a._UZ(0,"th",29)}function RC(e,t){if(1&e&&(a.TgZ(0,"td",30),a._UZ(1,"perun-web-apps-recently-viewed-icon",31),a.qZA()),2&e){var n=t.$implicit,i=a.oxw();a.xp6(1),a.Q6J("recentIds",i.recentIds)("id",n.id)}}function DC(e,t){1&e&&a._UZ(0,"th",29)}function PC(e,t){1&e&&(a.TgZ(0,"mat-icon",33),a.ALo(1,"translate"),a._uU(2,"account_tree"),a.qZA()),2&e&&a.Q6J("matTooltip",a.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE"))}function NC(e,t){if(1&e&&(a.TgZ(0,"td",30),a.YNc(1,PC,3,3,"mat-icon",32),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Q6J("ngIf",n.sourceGroupId)}}function IC(e,t){1&e&&(a.TgZ(0,"th",27),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")," "))}function qC(e,t){if(1&e&&(a.TgZ(0,"td",30),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(n.name)}}function BC(e,t){1&e&&(a.TgZ(0,"th",27),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")," "))}function HC(e,t){if(1&e&&(a.TgZ(0,"td",30),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(n.vo.name)}}function YC(e,t){1&e&&(a.TgZ(0,"th",27),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")," "))}function jC(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"td",30),a.TgZ(1,"perun-web-apps-group-resource-status",34),a.NdJ("mouseenter",function(){return a.CHM(n),a.oxw().disabledRouting=!0})("mouseleave",function(){a.CHM(n);var e=a.oxw();return e.disabledRouting=e.disableRouting})("statusChange",function(){return a.CHM(n),a.oxw().refreshTable.emit()}),a.qZA(),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw();a.xp6(1),a.Q6J("theme","group-theme")("resourceId",i.id)("groupId",r.groupId)("failureCause",i.failureCause)("status",i.status)}}function FC(e,t){1&e&&(a.TgZ(0,"th",27),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")," "))}function WC(e,t){if(1&e&&(a.TgZ(0,"td",30),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(n.facility.name)}}function UC(e,t){1&e&&(a.TgZ(0,"th",27),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")," "))}function KC(e,t){if(1&e&&(a.TgZ(0,"td",30),a._uU(1),a.ALo(2,"resourceTagsToString"),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.hij(" ",a.lcZ(2,1,n.resourceTags)," ")}}function ZC(e,t){1&e&&(a.TgZ(0,"th",27),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")," "))}function GC(e,t){if(1&e&&(a.TgZ(0,"td",30),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(n.description)}}function XC(e,t){1&e&&a._UZ(0,"tr",35)}var VC=function(e){return[e]};function JC(e,t){if(1&e&&(a._UZ(0,"tr",36),a.ALo(1,"getResourceRoute"),a.ALo(2,"getResourceRoute")),2&e){var n=t.$implicit,i=a.oxw();a.ekj("cursor-pointer",!i.disableRouting)("disable-outline",i.disabledRouting),a.Q6J("perunWebAppsMiddleClickRouterLink",a.VKq(12,VC,i.disabledRouting?null:a.xi3(1,6,n,i.routingVo)))("routerLink",i.disabledRouting?null:a.xi3(2,9,n,i.routingVo))}}function QC(e,t){1&e&&(a.TgZ(0,"app-alert",37),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function $C(e,t){1&e&&(a.TgZ(0,"app-alert",37),a._uU(1),a.ALo(2,"translate"),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}var eT=function(){var e=function(){function e(t,n){var i=this;_classCallCheck(this,e),this.guiAuthResolver=t,this.tableCheckbox=n,this.resources=[],this.selection=new ga(!0,[]),this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","indirectResourceAssigment","name","vo","status","facility","tags","description"],this.pageSizeOptions=hg,this.groupId=null,this.resourcesToDisableCheckbox=new Set,this.refreshTable=new a.vpe,this.allSelected=new a.vpe,this.removeAuth=!1,this.addAuth=!1,this.canBeSelected=function(e){return!i.disableSelect(e)}}return _createClass(e,[{key:"matSort",set:function(e){this.sort=e}},{key:"ngOnInit",value:function(){this.disabledRouting=this.disableRouting}},{key:"ngOnChanges",value:function(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(function(e){return"id"!==e})),this.setDataSource(),this.setAuth()}},{key:"getDataForColumn",value:function(e,t,n){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 n.recentIds&&n.recentIds.indexOf(e.id)>-1?"#".repeat(n.recentIds.indexOf(e.id)):e.name;case"tags":if(!e.resourceTags)return e[t];var i="";return e.resourceTags.forEach(function(e){i=i.concat(e.tagName)}),i;case"status":return e.status;case"uuid":return e.uuid;default:return e[t]}}},{key:"exportData",value:function(e){_g(vg(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumn,this),e)}},{key:"setDataSource",value:function(){var e=this;this.dataSource||(this.dataSource=new Sv,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=function(t,n){return mg(t,n,e.displayedColumns,e.getDataForColumn,e,!0)},this.dataSource.sortData=function(t,n){return gg(t,n,e.getDataForColumn,e)}),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}},{key:"isAllSelected",value:function(){var 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}},{key:"masterToggle",value:function(){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()}},{key:"checkboxLabel",value:function(e){return e?"".concat(this.selection.isSelected(e)?"deselect":"select"," row ").concat(e.id+1):(this.isAllSelected()?"select":"deselect")+" all"}},{key:"setAuth",value:function(){var e=this,t=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce(function(n,i){return n&&e.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",t.concat([i]))},!0),this.addAuth=this.selection.selected.reduce(function(n,i){return n&&e.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",t.concat([i]))},!0)}},{key:"itemSelectionToggle",value:function(e){this.selection.toggle(e),this.setAuth()}},{key:"disableSelect",value:function(e){return this.resourcesToDisableCheckbox.has(e.id)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(ge),a.Y36(Ng))},e.\u0275cmp=a.Xpm({type:e,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(e,t){var n;(1&e&&(a.Gf(Ek,7),a.Gf(Tg,7)),2&e)&&(a.iGM(n=a.CRH())&&(t.matSort=n.first),a.iGM(n=a.CRH())&&(t.child=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:[a.TTD],decls:37,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","status"],["matColumnDef","facility"],["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&&(a.TgZ(0,"div",0),a.TgZ(1,"perun-web-apps-table-wrapper",1),a.NdJ("exportData",function(e){return t.exportData(e)}),a.TgZ(2,"table",2),a.ynx(3,3),a.YNc(4,SC,2,3,"th",4),a.YNc(5,EC,4,8,"td",5),a.BQk(),a.ynx(6,6),a.YNc(7,zC,3,3,"th",7),a.YNc(8,OC,2,1,"td",8),a.BQk(),a.ynx(9,9),a.YNc(10,xC,1,0,"th",10),a.YNc(11,RC,2,2,"td",11),a.BQk(),a.ynx(12,12),a.YNc(13,DC,1,0,"th",10),a.YNc(14,NC,2,1,"td",11),a.BQk(),a.ynx(15,13),a.YNc(16,IC,3,3,"th",7),a.YNc(17,qC,2,1,"td",11),a.BQk(),a.ynx(18,14),a.YNc(19,BC,3,3,"th",7),a.YNc(20,HC,2,1,"td",11),a.BQk(),a.ynx(21,15),a.YNc(22,YC,3,3,"th",7),a.YNc(23,jC,2,5,"td",11),a.BQk(),a.ynx(24,16),a.YNc(25,FC,3,3,"th",7),a.YNc(26,WC,2,1,"td",11),a.BQk(),a.ynx(27,17),a.YNc(28,UC,3,3,"th",7),a.YNc(29,KC,3,3,"td",11),a.BQk(),a.ynx(30,18),a.YNc(31,ZC,3,3,"th",7),a.YNc(32,GC,2,1,"td",11),a.BQk(),a.YNc(33,XC,1,0,"tr",19),a.YNc(34,JC,3,14,"tr",20),a.qZA(),a.qZA(),a.qZA(),a.YNc(35,QC,3,3,"app-alert",21),a.YNc(36,$C,3,3,"app-alert",21)),2&e&&(a.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.resources.length),a.xp6(1),a.Q6J("dataLength",t.dataSource.filteredData.length)("tableId",t.tableId)("pageSizeOptions",t.pageSizeOptions),a.xp6(1),a.Q6J("dataSource",t.dataSource),a.xp6(31),a.Q6J("matHeaderRowDef",t.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",t.displayedColumns),a.xp6(1),a.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.resources.length),a.xp6(1),a.Q6J("ngIf",0===t.resources.length))},directives:[Tg,vv,Ek,bv,yv,_v,kv,Mv,r.O5,Av,EA,wv,up,Pk,bC,sg,CC,Cv,Tv,qk,Oi,cm],pipes:[hh,TC,LC],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}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:.25rem!important}"]}),e}();function tT(e,t){1&e&&a._UZ(0,"mat-spinner",8)}var nT=function(){return["name","description"]};function iT(e,t){if(1&e&&a._UZ(0,"perun-web-apps-resources-list",9),2&e){var n=a.oxw(3);a.Q6J("resources",n.resources)("displayedColumns",a.DdM(3,nT))("disableRouting",!0)}}function rT(e,t){if(1&e&&(a.YNc(0,tT,1,0,"mat-spinner",6),a.YNc(1,iT,1,4,"perun-web-apps-resources-list",7)),2&e){var n=a.oxw(2);a.Q6J("ngIf",n.loading),a.xp6(1),a.Q6J("ngIf",!n.loading)}}function aT(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-expansion-panel",4),a.NdJ("opened",function(){var e=a.CHM(n).$implicit;return a.oxw().getMemberData(e)}),a.TgZ(1,"mat-expansion-panel-header"),a.TgZ(2,"mat-panel-title"),a._uU(3),a.qZA(),a.qZA(),a.YNc(4,rT,2,2,"ng-template",5),a.qZA()}if(2&e){var i=t.$implicit;a.xp6(3),a.hij(" ",i.name," ")}}var oT=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this.usersManagerService=t,this.membersManagerService=n,this.resourcesManagerService=i,this.storage=r,this.resources=[],this.filteredVos=[]}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.userId=this.storage.getPerunPrincipal().userId,this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(function(t){e.vos=t,e.filteredVos=t})}},{key:"getMemberData",value:function(e){var t=this;this.loading=!0,this.membersManagerService.getMemberByUser(e.id,this.userId).subscribe(function(e){t.resourcesManagerService.getAssignedRichResourcesWithMember(e.id).subscribe(function(e){t.resources=e,t.loading=!1})})}},{key:"applyFilter",value:function(e){this.filteredVos=this.vos.filter(function(t){return t.name.toLowerCase().includes(e.toLowerCase())})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(he),a.Y36(se),a.Y36(le),a.Y36(tr))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA(),a.TgZ(4,"div",1),a.TgZ(5,"perun-web-apps-immediate-filter",2),a.NdJ("filter",function(e){return t.applyFilter(e)}),a.ALo(6,"translate"),a.ALo(7,"customTranslate"),a.qZA(),a.TgZ(8,"mat-accordion"),a.YNc(9,aT,5,1,"mat-expansion-panel",3),a.qZA(),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,3,a.lcZ(3,5,"SERVICES.TITLE"))),a.xp6(4),a.Q6J("placeholder",a.lcZ(6,7,a.lcZ(7,9,"SERVICES.FILTER"))),a.xp6(4),a.Q6J("ngForOf",t.filteredVos))},directives:[XM,vC,r.sg,pC,gC,mC,hC,r.O5,_m,eT],pipes:[hh,Wg],styles:[""]}),e}();function sT(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"perun-web-apps-immediate-filter",5),a.NdJ("filter",function(e){return a.CHM(n),a.oxw().applyFilter(e)}),a.qZA()}2&e&&a.Q6J("placeholder","ORGANIZATIONS.FILTER")}function cT(e,t){1&e&&a._UZ(0,"mat-spinner",6)}var uT=function(){return["name","expirationAttribute","extend"]};function lT(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div"),a.TgZ(1,"perun-web-apps-membership-list",11),a.NdJ("extendMembership",function(e){return a.CHM(n),a.oxw(2).extendMembership(e)}),a.qZA(),a.qZA()}if(2&e){var i=a.oxw(2);a.xp6(1),a.Q6J("members",i.userMemberships)("selection",i.selection)("filterValue",i.filterValue)("displayedColumns",a.DdM(4,uT))}}function hT(e,t){1&e&&(a.TgZ(0,"app-alert",12),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,a.lcZ(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}function dT(e,t){if(1&e&&(a.TgZ(0,"div",7),a.TgZ(1,"h1",8),a._uU(2),a.ALo(3,"translate"),a.ALo(4,"customTranslate"),a.qZA(),a.YNc(5,lT,2,5,"div",9),a.YNc(6,hT,4,5,"app-alert",10),a.qZA()),2&e){var n=a.oxw();a.xp6(2),a.Oqu(a.lcZ(3,3,a.lcZ(4,5,"ORGANIZATIONS.IS_MEMBER"))),a.xp6(3),a.Q6J("ngIf",0!==n.userMemberships.length),a.xp6(1),a.Q6J("ngIf",0===n.userMemberships.length)}}function fT(e,t){1&e&&(a.TgZ(0,"app-alert",12),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,a.lcZ(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}var pT=function(){return["name"]};function gT(e,t){if(1&e&&a._UZ(0,"perun-web-apps-membership-list",14),2&e){var n=a.oxw(2);a.Q6J("members",n.adminMemberships)("filterValue",n.filterValue)("displayedColumns",a.DdM(3,pT))}}function mT(e,t){if(1&e&&(a.TgZ(0,"div",7),a.TgZ(1,"h1",8),a._uU(2),a.ALo(3,"translate"),a.ALo(4,"customTranslate"),a.qZA(),a.YNc(5,fT,4,5,"app-alert",10),a.YNc(6,gT,1,4,"perun-web-apps-membership-list",13),a.qZA()),2&e){var n=a.oxw();a.xp6(2),a.Oqu(a.lcZ(3,3,a.lcZ(4,5,"ORGANIZATIONS.IS_ADMIN"))),a.xp6(3),a.Q6J("ngIf",!n.adminMemberships.length),a.xp6(1),a.Q6J("ngIf",n.adminMemberships.length)}}var vT=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.usersService=t,this.store=n,this.membersService=i,this.filterValue="",this.selection=new ga(!1,[]),this.userMemberships=[],this.adminMemberships=[],this.vosCount=0}return _createClass(e,[{key:"ngOnInit",value:function(){this.principal=this.store.getPerunPrincipal(),this.userId=this.principal.user.id,this.refreshTable()}},{key:"refreshTable",value:function(){var e=this;this.loading=!0,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(function(t){e.usersService.getVosWhereUserIsAdmin(e.userId).subscribe(function(n){e.vosCount=t.length+n.length,e.fillMemberships(t,e.userMemberships),e.fillMemberships(n,e.adminMemberships)})})}},{key:"applyFilter",value:function(e){this.filterValue=e}},{key:"isEverythingLoaded",value:function(){this.vosCount--,this.loading=0!==this.vosCount}},{key:"fillMemberships",value:function(e,t){var n=this;this.membersService.getMembersByUser(this.userId).subscribe(function(i){e.forEach(function(e){var r=i.find(function(t){return t.voId===e.id});r?n.membersService.getRichMemberWithAttributes(r.id).subscribe(function(i){var r=i.memberAttributes.find(function(e){return"membershipExpiration"===e.friendlyName});t.push({entity:e,expirationAttribute:r}),n.isEverythingLoaded()}):(t.push({entity:e,expirationAttribute:null}),n.isEverythingLoaded())})})}},{key:"extendMembership",value:function(e){var t=this.store.get("registrar_base_url");window.location.href="".concat(t,"?vo=").concat(e.entity.shortName)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(he),a.Y36(tr),a.Y36(se))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA(),a.TgZ(4,"div",1),a.YNc(5,sT,1,1,"perun-web-apps-immediate-filter",2),a.YNc(6,cT,1,0,"mat-spinner",3),a.YNc(7,dT,7,7,"div",4),a.YNc(8,mT,7,7,"div",4),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,5,a.lcZ(3,7,"ORGANIZATIONS.TITLE"))),a.xp6(4),a.Q6J("ngIf",!t.loading),a.xp6(1),a.Q6J("ngIf",t.loading),a.xp6(1),a.Q6J("ngIf",!t.loading),a.xp6(1),a.Q6J("ngIf",!t.loading))},directives:[r.O5,XM,_m,IM,cm],pipes:[hh,Wg],styles:[""]}),e}(),_T=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.Xpm({type:e,selectors:[["perun-web-apps-settings-page"]],decls:2,vars:0,consts:[[1,"user-theme"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a._UZ(1,"router-outlet"),a.qZA())},directives:[Di],styles:[""]}),e}(),yT=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.dialogRef=t,this.data=n,this.password=""}return _createClass(e,[{key:"ngOnInit",value:function(){this.password=this.data.password}},{key:"onClose",value:function(){this.dialogRef.close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl),a.Y36(El))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA(),a.TgZ(4,"div",1),a.TgZ(5,"p"),a._uU(6),a.ALo(7,"translate"),a.ALo(8,"customTranslate"),a.qZA(),a.TgZ(9,"label"),a._UZ(10,"input",2),a.qZA(),a.qZA(),a.TgZ(11,"div",3),a.TgZ(12,"button",4),a.NdJ("click",function(){return t.onClose()}),a._uU(13),a.ALo(14,"translate"),a.ALo(15,"customTranslate"),a.qZA(),a.TgZ(16,"button",5),a._uU(17),a.ALo(18,"translate"),a.ALo(19,"customTranslate"),a.qZA(),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,6,a.lcZ(3,8,"DIALOGS.SHOW_PASSWORD.TITLE")),"\n"),a.xp6(5),a.Oqu(a.lcZ(7,10,a.lcZ(8,12,"DIALOGS.SHOW_PASSWORD.LABEL"))),a.xp6(4),a.Q6J("value",t.password),a.xp6(3),a.hij(" ",a.lcZ(14,14,a.lcZ(15,16,"DIALOGS.SHOW_PASSWORD.CLOSE"))," "),a.xp6(3),a.Q6J("cdkCopyToClipboard",t.password),a.xp6(1),a.hij(" ",a.lcZ(18,18,a.lcZ(19,20,"DIALOGS.SHOW_PASSWORD.COPY"))," "))},directives:[Nl,Il,ql,_h,Hv],pipes:[hh,Wg],styles:[".center-text[_ngcontent-%COMP%]{text-align:center}"]}),e}();function bT(e,t){1&e&&a._UZ(0,"mat-spinner",7)}function AT(e,t){1&e&&a._UZ(0,"th",16)}function wT(e,t){if(1&e&&(a.TgZ(0,"td",17),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(n)}}function kT(e,t){1&e&&a._UZ(0,"tr",18)}function MT(e,t){1&e&&a._UZ(0,"tr",19)}function CT(e,t){if(1&e&&(a.TgZ(0,"div",8),a.TgZ(1,"p"),a._uU(2),a.ALo(3,"translate"),a.ALo(4,"customTranslate"),a.qZA(),a.TgZ(5,"div",9),a._uU(6),a.ALo(7,"translate"),a.ALo(8,"customTranslate"),a.qZA(),a.TgZ(9,"table",10),a.ynx(10,11),a.YNc(11,AT,1,0,"th",12),a.YNc(12,wT,2,1,"td",13),a.BQk(),a.YNc(13,kT,1,0,"tr",14),a.YNc(14,MT,1,0,"tr",15),a.qZA(),a.qZA()),2&e){var n=a.oxw();a.xp6(2),a.hij(" ",a.lcZ(3,5,a.lcZ(4,7,"DIALOGS.REMOVE_ALT_PASSWORD.DESCRIPTION"))," "),a.xp6(4),a.hij(" ",a.lcZ(7,9,a.lcZ(8,11,"DIALOGS.REMOVE_ALT_PASSWORD.ASK"))," "),a.xp6(3),a.Q6J("dataSource",n.dataSource),a.xp6(4),a.Q6J("matHeaderRowDef",n.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",n.displayedColumns)}}var TT=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.dialogRef=t,this.data=n,this.usersManagerService=i,this.displayedColumns=["description"]}return _createClass(e,[{key:"ngOnInit",value:function(){this.dataSource=new Sv(this.data.description)}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,this.usersManagerService.deleteAlternativePassword(this.data.userId,"einfra",this.data.passwordId).subscribe(function(){e.loading=!1,e.dialogRef.close(!0)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl),a.Y36(El),a.Y36(he))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA(),a.TgZ(4,"div",1),a.YNc(5,bT,1,0,"mat-spinner",2),a.qZA(),a.YNc(6,CT,15,13,"div",3),a.TgZ(7,"div",4),a.TgZ(8,"button",5),a.NdJ("click",function(){return t.onCancel()}),a._uU(9),a.ALo(10,"translate"),a.ALo(11,"customTranslate"),a.qZA(),a.TgZ(12,"button",6),a.NdJ("click",function(){return t.onSubmit()}),a._uU(13),a.ALo(14,"translate"),a.ALo(15,"customTranslate"),a.qZA(),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,5,a.lcZ(3,7,"DIALOGS.REMOVE_ALT_PASSWORD.TITLE"))),a.xp6(4),a.Q6J("ngIf",t.loading),a.xp6(1),a.Q6J("ngIf",!t.loading),a.xp6(3),a.hij(" ",a.lcZ(10,9,a.lcZ(11,11,"DIALOGS.REMOVE_ALT_PASSWORD.CANCEL"))," "),a.xp6(4),a.hij(" ",a.lcZ(14,13,a.lcZ(15,15,"DIALOGS.REMOVE_ALT_PASSWORD.REMOVE"))," "))},directives:[Nl,r.O5,ql,_h,_m,Il,vv,bv,yv,_v,kv,Mv,Av,wv,Cv,Tv],pipes:[hh,Wg],styles:[""]}),e}();function LT(e,t){1&e&&a._UZ(0,"th",12)}function ST(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"td",13),a.TgZ(1,"mat-checkbox",14),a.NdJ("change",function(e){var t=a.CHM(n).$implicit,i=a.oxw();return e?i.selection.toggle(t):null})("click",function(e){return e.stopPropagation()}),a.qZA(),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw();a.xp6(1),a.Q6J("aria-label",r.checkboxLabel(i))("checked",r.selection.isSelected(i))}}function ET(e,t){if(1&e&&(a.TgZ(0,"th",15),a._uU(1),a.qZA()),2&e){var n=a.oxw();a.xp6(1),a.Oqu(n.headerColumnText)}}function zT(e,t){if(1&e&&(a.TgZ(0,"td",16),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(n)}}function OT(e,t){1&e&&a._UZ(0,"tr",17)}function xT(e,t){1&e&&a._UZ(0,"tr",18)}function RT(e,t){if(1&e&&(a.TgZ(0,"app-alert",19),a._uU(1),a.qZA()),2&e){var n=a.oxw();a.xp6(1),a.hij(" ",n.alertText,"\n")}}var DT=function(){var e=function(){function e(){_classCallCheck(this,e),this.values=[],this.selection=new ga(!1,[]),this.alertText="",this.headerColumnText="",this.displayedColumns=["select","value"]}return _createClass(e,[{key:"ngOnChanges",value:function(){this.values=this.values?this.values:[],this.dataSource=new Sv(this.values),this.setDataSource()}},{key:"getExportDataForColumn",value:function(e){return e}},{key:"exportData",value:function(e){_g(vg(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumn,this),e)}},{key:"setDataSource",value:function(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}},{key:"checkboxLabel",value:function(e){return(this.selection.isSelected(e)?"deselect":"select")+" row"}},{key:"ngAfterViewInit",value:function(){this.setDataSource()}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.Xpm({type:e,selectors:[["perun-web-apps-string-list"]],viewQuery:function(e,t){var n;(1&e&&a.Gf(Tg,7),2&e)&&(a.iGM(n=a.CRH())&&(t.child=n.first))},inputs:{values:"values",selection:"selection",alertText:"alertText",headerColumnText:"headerColumnText"},features:[a.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&&(a.TgZ(0,"div",0),a.TgZ(1,"perun-web-apps-table-wrapper",1),a.NdJ("exportData",function(e){return t.exportData(e)}),a.TgZ(2,"table",2),a.ynx(3,3),a.YNc(4,LT,1,0,"th",4),a.YNc(5,ST,2,2,"td",5),a.BQk(),a.ynx(6,6),a.YNc(7,ET,2,1,"th",7),a.YNc(8,zT,2,1,"td",8),a.BQk(),a.YNc(9,OT,1,0,"tr",9),a.YNc(10,xT,1,0,"tr",10),a.qZA(),a.qZA(),a.qZA(),a.YNc(11,RT,2,1,"app-alert",11)),2&e&&(a.Q6J("hidden",!t.values.length),a.xp6(1),a.Q6J("dataLength",t.dataSource.filteredData.length),a.xp6(1),a.Q6J("dataSource",t.dataSource),a.xp6(7),a.Q6J("matHeaderRowDef",t.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",t.displayedColumns),a.xp6(1),a.Q6J("ngIf",0===t.values.length))},directives:[Tg,vv,bv,yv,_v,kv,Mv,r.O5,Av,wv,EA,Cv,Tv,cm],styles:[".static-column-size[_ngcontent-%COMP%]{width:20px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100px}"]}),e}();function PT(e,t){if(1&e&&a._UZ(0,"perun-web-apps-string-list",10),2&e){var n=a.oxw();a.Q6J("values",n.displayedValues)("selection",n.selection)("alertText",n.alertText)("headerColumnText",n.headerColumnText)}}function NT(e,t){1&e&&a._UZ(0,"mat-spinner",11)}var IT=function(){var e=function(){function e(t,n,i,r,a){var o=this;_classCallCheck(this,e),this.store=t,this.attributesManagerService=n,this.dialog=i,this.translateService=r,this.usersManagerService=a,this.altPasswordCtrl=new tf(null,[pd.required]),this.userId=this.store.getPerunPrincipal().userId,this.passwordDescriptions=new Set,this.displayedValues=[],this.selection=new ga(!1,[]),r.get("ALT_PASSWORDS.REMOVE_DIALOG_DESCRIPTION").subscribe(function(e){return o.removeDialogDescription=e}),r.get("ALT_PASSWORDS.REMOVE_DIALOG_TITLE").subscribe(function(e){return o.removeDialogTitle=e}),r.get("ALERTS.NO_ALT_PASSWORDS").subscribe(function(e){return o.alertText=e}),r.get("ALT_PASSWORDS.HEADER_COLUMN").subscribe(function(e){return o.headerColumnText=e})}return _createClass(e,[{key:"ngOnInit",value:function(){this.getAltPasswords()}},{key:"createPassword",value:function(){var e=this,t=this.generatePassword();this.usersManagerService.createAlternativePassword(this.userId,this.altPasswordCtrl.value,"einfra",t).subscribe(function(){var n=dg();n.width="600px",n.data={password:t},e.dialog.open(yT,n),e.getAltPasswords(),e.altPasswordCtrl.setValue("")})}},{key:"generatePassword",value:function(){for(var e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%&/=?_.,:;\\-",t="",n=0,i=e.length;n<16;++n)t+=e.charAt(Math.random()*i);return t.match("((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])|(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])).{3,}")||this.generatePassword(),t}},{key:"getAltPasswords",value:function(){var e=this;this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:altPasswords:einfra").subscribe(function(t){if(e.altPasswordsAttribute=t,t.value){var n=Object.keys(t.value);e.passwordDescriptions=new Set(n),e.displayedValues=Array.from(e.passwordDescriptions.values())}else e.displayedValues=[];e.loading=!1})}},{key:"alreadyContainsValue",value:function(e){return this.passwordDescriptions.has(e)}},{key:"removeAltPasswords",value:function(){var e=this,t=dg();t.width="600px",t.data={description:this.selection.selected,passwordId:this.altPasswordsAttribute.value[this.selection.selected[0]],userId:this.userId},this.dialog.open(TT,t).afterClosed().subscribe(function(t){t&&(e.getAltPasswords(),e.selection.clear())})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(tr),a.Y36(re),a.Y36(Dl),a.Y36(lh),a.Y36(he))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"div",0),a.TgZ(1,"h1",1),a._uU(2),a.ALo(3,"translate"),a.ALo(4,"customTranslate"),a.qZA(),a.TgZ(5,"mat-form-field",2),a.TgZ(6,"label",2),a._UZ(7,"input",3),a.ALo(8,"translate"),a.ALo(9,"customTranslate"),a.qZA(),a.qZA(),a.TgZ(10,"button",4),a.NdJ("click",function(){return t.createPassword()}),a._uU(11),a.ALo(12,"translate"),a.ALo(13,"customTranslate"),a.qZA(),a.TgZ(14,"app-alert",5),a._uU(15),a.ALo(16,"translate"),a.ALo(17,"customTranslate"),a.qZA(),a.TgZ(18,"h1",6),a._uU(19),a.ALo(20,"translate"),a.ALo(21,"customTranslate"),a.qZA(),a.TgZ(22,"button",7),a.NdJ("click",function(){return t.removeAltPasswords()}),a._uU(23),a.ALo(24,"translate"),a.ALo(25,"customTranslate"),a.qZA(),a.YNc(26,PT,1,4,"perun-web-apps-string-list",8),a.YNc(27,NT,1,0,"mat-spinner",9),a.qZA()),2&e&&(a.xp6(2),a.Oqu(a.lcZ(3,11,a.lcZ(4,13,"ALT_PASSWORDS.TITLE_GENERATE"))),a.xp6(5),a.s9C("placeholder",a.lcZ(8,15,a.lcZ(9,17,"ALT_PASSWORDS.INPUT_PLACEHOLDER"))),a.Q6J("formControl",t.altPasswordCtrl),a.xp6(3),a.Q6J("disabled",!t.altPasswordCtrl.valid||t.alreadyContainsValue(t.altPasswordCtrl.value)),a.xp6(1),a.hij(" ",a.lcZ(12,19,a.lcZ(13,21,"ALT_PASSWORDS.GENERATE"))," "),a.xp6(4),a.Oqu(a.lcZ(16,23,a.lcZ(17,25,"ALT_PASSWORDS.EXAMPLE_DESCRIPTIONS"))),a.xp6(4),a.Oqu(a.lcZ(20,27,a.lcZ(21,29,"ALT_PASSWORDS.TITLE_PASSWORDS"))),a.xp6(3),a.Q6J("disabled",t.selection.isEmpty()),a.xp6(1),a.hij(" ",a.lcZ(24,31,a.lcZ(25,33,"ALT_PASSWORDS.REMOVE"))," "),a.xp6(3),a.Q6J("ngIf",!t.loading),a.xp6(1),a.Q6J("ngIf",t.loading))},directives:[td,tm,cd,Rd,vf,_h,cm,r.O5,DT,_m],pipes:[hh,Wg],styles:[""]}),e}();function qT(e,t){if(1&e&&(a.TgZ(0,"mat-list-item",1),a.TgZ(1,"mat-icon"),a._uU(2),a.qZA(),a.TgZ(3,"p",2),a._uU(4),a.ALo(5,"translate"),a.ALo(6,"customTranslate"),a.qZA(),a.qZA()),2&e){var n=t.$implicit;a.Q6J("routerLink",n.url),a.xp6(2),a.Oqu(n.icon),a.xp6(2),a.Oqu(a.lcZ(5,3,a.lcZ(6,5,n.label)))}}var BT=function(){var e=function(){function e(t){_classCallCheck(this,e),this.storeService=t,this.items=[]}return _createClass(e,[{key:"ngOnInit",value:function(){this.initItems();var e=this.storeService.get("displayed_tabs");this.items=this.items.filter(function(t){return e.includes(t.tabName)})}},{key:"initItems",value:function(){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:"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"}]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(tr))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"mat-list"),a.YNc(1,qT,7,7,"mat-list-item",0),a.qZA()),2&e&&(a.xp6(1),a.Q6J("ngForOf",t.items))},directives:[yb,r.sg,wb,rl,Oi,sg],pipes:[hh,Wg],styles:["mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important;color:var(--side-text-active)!important;cursor:pointer}"]}),e}(),HT=["row","column","row-reverse","column-reverse"];function YT(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}var jT=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"buildStyles",value:function(e){return t=function(e){var t=_slicedToArray((e=e?e.toLowerCase():"").split(" "),3),n=t[0],i=t[1],r=t[2];return HT.find(function(e){return e===n})||(n=HT[0]),"inline"===i&&(i="inline"!==r?r:"",r="inline"),[n,YT(i),!!r]}(e),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e,"flex-wrap":t||null}}((n=_slicedToArray(t,3))[0],n[1],n[2]);var t,n}}]),n}(my);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275prov=(0,a.Yz7)({factory:function(){return new t},token:t,providedIn:"root"}),t}(),FT=["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"],WT=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this,e,r,i,a)).DIRECTIVE_KEY="layout",o.styleCache=KT,o.init(),o}return n}(G_);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(gy),a.Y36(jT),a.Y36(vy))},e.\u0275dir=a.lG2({type:e,features:[a.qOj]}),e}(),UT=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments)).inputs=FT,e}return n}(WT);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275dir=a.lG2({type:t,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:[a.qOj]}),t}(),KT=new Map;new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;var ZT=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"buildStyles",value:function(e){var 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}}]),n}(my);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275prov=(0,a.Yz7)({factory:function(){return new t},token:t,providedIn:"root"}),t}(),GT=["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"],XT=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this,e,r,i,a)).DIRECTIVE_KEY="flex-align",o.styleCache=VT,o.init(),o}return n}(G_);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(gy),a.Y36(ZT),a.Y36(vy))},e.\u0275dir=a.lG2({type:e,features:[a.qOj]}),e}(),VT=new Map,JT=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments)).inputs=GT,e}return n}(XT);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275dir=a.lG2({type:t,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:[a.qOj]}),t}();new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;var QT=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[q_,da]]}),e}();function $T(e,t){if(1&e&&(a.TgZ(0,"mat-option",13),a._uU(1),a.qZA()),2&e){var n=t.$implicit,i=a.oxw();a.Q6J("value",i.selectedUnit),a.xp6(1),a.hij(" ",n," ")}}var eL=function(){var e=function(){function e(t,n,i,r,a){var o=this;_classCallCheck(this,e),this.dialogRef=t,this.data=n,this.rtMessagesService=i,this.notificator=r,this.translate=a,this.resource="",this.currentQuota="",this.units=["MiB","GiB","TiB"],this.selectedUnit="GiB",a.get("DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SUCCESS").subscribe(function(e){return o.successMessage=e})}return _createClass(e,[{key:"ngOnInit",value:function(){this.resource=this.data.resource.name,this.currentQuota=this.data.currentQuota,this.reasonControl=new tf(null,[pd.required]),this.newValueControl=new tf(null,[pd.required,pd.pattern("[1-9][0-9]*")])}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onSubmit",value:function(){var e=this,t=(new Fg).transform(this.data.user);this.rtMessagesService.sentMessageToRTWithVo(this.data.vo.id,"QUOTA: Change request","QUOTA CHANGE REQUEST\u21b5 \u21b5 User: ".concat(t," (user ID: ").concat(this.data.user.id,")\u21b5 VO: ").concat(this.data.vo.shortName," / ").concat(this.data.vo.name," (vo ID: ").concat(this.data.vo.id,")\u21b5 Resource: ").concat(this.data.resource.name," (resource ID: ").concat(this.data.resource.id,")\u21b5 Data quota\u21b5 Requested quota: ").concat(this.newValueControl.value,"\u21b5 Reason: ").concat(this.reasonControl.value,"\u21b5 \u21b5 \u21b5 -------------------------------------\u21b5 Sent from Perun GUI")).subscribe(function(){e.notificator.showSuccess(e.successMessage),e.dialogRef.close()})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl),a.Y36(El),a.Y36(ce),a.Y36(xg),a.Y36(lh))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA(),a.TgZ(4,"div",1),a.TgZ(5,"div"),a.TgZ(6,"p",2),a._uU(7),a.ALo(8,"translate"),a.ALo(9,"customTranslate"),a.qZA(),a.TgZ(10,"p"),a._uU(11),a.qZA(),a.qZA(),a.TgZ(12,"div"),a.TgZ(13,"p",2),a._uU(14),a.ALo(15,"translate"),a.ALo(16,"customTranslate"),a.qZA(),a.TgZ(17,"p"),a._uU(18),a.qZA(),a.qZA(),a.TgZ(19,"div",3),a.TgZ(20,"mat-form-field"),a.TgZ(21,"label",4),a._UZ(22,"input",5),a.ALo(23,"translate"),a.ALo(24,"customTranslate"),a.qZA(),a.qZA(),a.TgZ(25,"mat-select",6),a.NdJ("valueChange",function(e){return t.selectedUnit=e}),a.YNc(26,$T,2,2,"mat-option",7),a.qZA(),a.qZA(),a.TgZ(27,"div"),a.TgZ(28,"mat-form-field",8),a.TgZ(29,"label",4),a._UZ(30,"textarea",9),a.ALo(31,"translate"),a.ALo(32,"customTranslate"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(33,"div",10),a.TgZ(34,"button",11),a.NdJ("click",function(){return t.onCancel()}),a._uU(35),a.ALo(36,"translate"),a.ALo(37,"customTranslate"),a.qZA(),a.TgZ(38,"button",12),a.NdJ("click",function(){return t.onSubmit()}),a._uU(39),a.ALo(40,"translate"),a.ALo(41,"customTranslate"),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(1),a.hij(" ",a.lcZ(2,14,a.lcZ(3,16,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.TITLE")),"\n"),a.xp6(6),a.hij(" ",a.lcZ(8,18,a.lcZ(9,20,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.RESOURCE"))," "),a.xp6(4),a.Oqu(t.resource),a.xp6(3),a.hij(" ",a.lcZ(15,22,a.lcZ(16,24,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.CURRENT_QUOTA"))," "),a.xp6(4),a.Oqu(t.currentQuota),a.xp6(4),a.s9C("placeholder",a.lcZ(23,26,a.lcZ(24,28,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.REQUESTED_QUOTA"))),a.Q6J("formControl",t.newValueControl),a.xp6(3),a.Q6J("value",t.selectedUnit),a.xp6(1),a.Q6J("ngForOf",t.units),a.xp6(4),a.s9C("placeholder",a.lcZ(31,30,a.lcZ(32,32,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.REASON"))),a.Q6J("formControl",t.reasonControl),a.xp6(5),a.hij(" ",a.lcZ(36,34,a.lcZ(37,36,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.CANCEL"))," "),a.xp6(3),a.Q6J("disabled",t.reasonControl.invalid),a.xp6(1),a.hij(" ",a.lcZ(40,38,a.lcZ(41,40,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SEND"))," "))},directives:[Nl,UT,JT,td,tm,ff,cd,kf,Rd,vf,Gf,r.sg,ql,_h,ml],pipes:[hh,Wg],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-ripple.mat-form-field-ripple[_ngcontent-%COMP%], .mat-input-underline.mat-form-field-underline[_ngcontent-%COMP%]{display:none}"]}),e}();function tL(e,t){1&e&&a._UZ(0,"mat-spinner",8)}function nL(e,t){1&e&&(a.TgZ(0,"app-alert",9),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,a.lcZ(3,3,"DATA_QUOTAS.NO_QUOTAS"))))}function iL(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div"),a.TgZ(1,"p"),a.TgZ(2,"strong"),a._uU(3),a.ALo(4,"translate"),a.ALo(5,"customTranslate"),a.qZA(),a._uU(6),a.qZA(),a.TgZ(7,"p",10),a._uU(8),a.ALo(9,"translate"),a.ALo(10,"customTranslate"),a.qZA(),a.TgZ(11,"button",11),a.NdJ("click",function(){a.CHM(n);var e=a.oxw().$implicit,t=a.oxw(3).$implicit;return a.oxw().requestChangeQuota(t,e)}),a._uU(12),a.ALo(13,"translate"),a.ALo(14,"customTranslate"),a.qZA(),a.qZA()}if(2&e){var i=a.oxw(5);a.xp6(3),a.Oqu(a.lcZ(4,4,a.lcZ(5,6,"DATA_QUOTAS.QUOTA"))),a.xp6(3),a.hij(" ",i.quotasMarkup," "),a.xp6(2),a.Oqu(a.lcZ(9,8,a.lcZ(10,10,"DATA_QUOTAS.QUOTA_INFO"))),a.xp6(4),a.hij(" ",a.lcZ(13,12,a.lcZ(14,14,"DATA_QUOTAS.CHANGE"))," ")}}function rL(e,t){1&e&&(a.TgZ(0,"p"),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,a.lcZ(3,3,"DATA_QUOTAS.NO_QUOTAS"))))}function aL(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-expansion-panel",3),a.NdJ("opened",function(){var e=a.CHM(n).$implicit;return a.oxw(4).getResAttributes(e.id)}),a.TgZ(1,"mat-expansion-panel-header"),a.TgZ(2,"mat-panel-title"),a._uU(3),a.qZA(),a.qZA(),a.YNc(4,iL,15,16,"div",7),a.YNc(5,rL,4,5,"p",7),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw(4);a.xp6(3),a.hij(" ",i.name," "),a.xp6(1),a.Q6J("ngIf",r.defaultQuota),a.xp6(1),a.Q6J("ngIf",!r.defaultQuota)}}function oL(e,t){if(1&e&&(a.TgZ(0,"mat-accordion"),a.YNc(1,aL,6,3,"mat-expansion-panel",2),a.qZA()),2&e){var n=a.oxw(3);a.xp6(1),a.Q6J("ngForOf",n.resources)}}function sL(e,t){if(1&e&&(a.YNc(0,tL,1,0,"mat-spinner",5),a.YNc(1,nL,4,5,"app-alert",6),a.YNc(2,oL,2,1,"mat-accordion",7)),2&e){var n=a.oxw(2);a.Q6J("ngIf",n.loading),a.xp6(1),a.Q6J("ngIf",0===n.resources.length&&!n.loading),a.xp6(1),a.Q6J("ngIf",n.resources.length&&!n.loading)}}function cL(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-expansion-panel",3),a.NdJ("opened",function(){var e=a.CHM(n).$implicit;return a.oxw().getMembersResources(e)}),a.TgZ(1,"mat-expansion-panel-header"),a.TgZ(2,"mat-panel-title"),a._uU(3),a.qZA(),a.qZA(),a.YNc(4,sL,3,3,"ng-template",4),a.qZA()}if(2&e){var i=t.$implicit;a.xp6(3),a.hij(" ",i.name," ")}}var uL=function(){var e=function(){function e(t,n,i,r,a,o){_classCallCheck(this,e),this.store=t,this.usersManagerService=n,this.membersService=i,this.resourcesManagerService=r,this.attributesManagerService=a,this.dialog=o,this.vos=[],this.resources=[],this.quotasMarkup="",this.filteredVos=[]}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.user=this.store.getPerunPrincipal().user,this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(function(t){e.vos=t,e.filteredVos=t})}},{key:"getMembersResources",value:function(e){var t=this;this.loading=!0,this.resources=[],this.membersService.getMemberByUser(e.id,this.user.id).subscribe(function(e){t.resourcesManagerService.getAssignedRichResourcesWithMember(e.id).subscribe(function(e){var n=e.length;n||(t.loading=!1),e.forEach(function(e){t.attributesManagerService.getResourceAttributes(e.id).subscribe(function(i){n--,i.find(function(e){return"defaultDataQuotas"===e.friendlyName})&&t.resources.push(e),t.loading=0!==n})})})})}},{key:"getResAttributes",value:function(e){var t=this;this.attributesManagerService.getResourceAttributes(e).subscribe(function(e){var n=e.find(function(e){return"dataQuotas"===e.friendlyName});if(n&&n.value){var i=Object.keys(n.value);t.currentQuota=n.value[i[0]]}else t.currentQuota="";if(n=e.find(function(e){return"defaultDataQuotas"===e.friendlyName})){var r=Object.keys(n.value);t.defaultQuota=n.value[r[0]]}else t.defaultQuota="";t.currentQuota||(t.currentQuota=t.defaultQuota),t.parseMarkup()})}},{key:"parseMarkup",value:function(){var e="";e+=this.currentQuota,e=(e+=" (default: ".concat(this.defaultQuota,")")).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}},{key:"requestChangeQuota",value:function(e,t){var n=dg();n.width="400px",n.data={vo:e,resource:t,user:this.user,currentQuota:this.quotasMarkup},this.dialog.open(eL,n)}},{key:"applyFilter",value:function(e){this.filteredVos=this.vos.filter(function(t){return t.name.toLowerCase().includes(e.toLowerCase())})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(tr),a.Y36(he),a.Y36(se),a.Y36(le),a.Y36(re),a.Y36(Dl))},e.\u0275cmp=a.Xpm({type:e,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"],[2,"color","gray"],["mat-flat-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA(),a.TgZ(4,"perun-web-apps-immediate-filter",1),a.NdJ("filter",function(e){return t.applyFilter(e)}),a.ALo(5,"translate"),a.ALo(6,"customTranslate"),a.qZA(),a.TgZ(7,"mat-accordion"),a.YNc(8,cL,5,1,"mat-expansion-panel",2),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,3,a.lcZ(3,5,"DATA_QUOTAS.TITLE"))),a.xp6(3),a.Q6J("placeholder",a.lcZ(5,7,a.lcZ(6,9,"DATA_QUOTAS.FILTER"))),a.xp6(4),a.Q6J("ngForOf",t.filteredVos))},directives:[XM,vC,r.sg,pC,gC,mC,hC,r.O5,_m,cm,_h],pipes:[hh,Wg],styles:[""]}),e}();function lL(e,t){1&e&&a._UZ(0,"mat-spinner",8)}function hL(e,t){1&e&&(a.TgZ(0,"app-alert",9),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,a.lcZ(3,3,"OPT_OUT_MAILING_LISTS.NO_MAILING_LISTS_ALERT"))))}function dL(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-expansion-panel",3),a.NdJ("opened",function(){var e=a.CHM(n).$implicit;return a.oxw(4).getOptOutAttribute(e)}),a.TgZ(1,"mat-expansion-panel-header"),a.TgZ(2,"mat-panel-title"),a._uU(3),a.qZA(),a.qZA(),a.TgZ(4,"div",10),a.TgZ(5,"p"),a._uU(6),a.ALo(7,"translate"),a.ALo(8,"customTranslate"),a.qZA(),a.TgZ(9,"mat-checkbox",11),a.NdJ("change",function(){return a.CHM(n),a.oxw(4).setOptOut()}),a.qZA(),a.qZA(),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw(4);a.xp6(3),a.hij(" ",i.name," "),a.xp6(3),a.Oqu(a.lcZ(7,3,a.lcZ(8,5,"OPT_OUT_MAILING_LISTS.OPT_OUT_LABEL"))),a.xp6(3),a.Q6J("checked",r.optOutAttribute&&null!==r.optOutAttribute.value)}}function fL(e,t){if(1&e&&(a.TgZ(0,"mat-accordion"),a.YNc(1,dL,10,7,"mat-expansion-panel",2),a.qZA()),2&e){var n=a.oxw(3);a.xp6(1),a.Q6J("ngForOf",n.resources)}}function pL(e,t){if(1&e&&(a.YNc(0,lL,1,0,"mat-spinner",5),a.YNc(1,hL,4,5,"app-alert",6),a.YNc(2,fL,2,1,"mat-accordion",7)),2&e){var n=a.oxw(2);a.Q6J("ngIf",n.loading),a.xp6(1),a.Q6J("ngIf",0===n.resources.length&&!n.loading),a.xp6(1),a.Q6J("ngIf",n.resources.length&&!n.loading)}}function gL(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-expansion-panel",3),a.NdJ("opened",function(){var e=a.CHM(n).$implicit;return a.oxw().getMailingLists(e)}),a.TgZ(1,"mat-expansion-panel-header"),a.TgZ(2,"mat-panel-title"),a._uU(3),a.qZA(),a.qZA(),a.YNc(4,pL,3,3,"ng-template",4),a.qZA()}if(2&e){var i=t.$implicit;a.xp6(3),a.hij(" ",i.name," ")}}var mL=function(){var e=function(){function e(t,n,i,r,a){_classCallCheck(this,e),this.store=t,this.usersManagerService=n,this.membersService=i,this.resourcesManagerService=r,this.attributesManagerService=a,this.vos=[],this.resources=[],this.mailingLists=[],this.optOuts=[],this.filteredVos=[]}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.user=this.store.getPerunPrincipal().user,this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(function(t){e.vos=t,e.filteredVos=t})}},{key:"getMailingLists",value:function(e){var t=this;this.loading=!0,this.resources=[],this.membersService.getMemberByUser(e.id,this.user.id).subscribe(function(e){t.resourcesManagerService.getAssignedRichResourcesWithMember(e.id).subscribe(function(n){var i=n.length;i||(t.loading=!1),n.forEach(function(n){t.attributesManagerService.getRequiredAttributesMemberResource(e.id,n.id).subscribe(function(r){t.attributesManagerService.getResourceAttributeByName(n.id,"urn:perun:resource:attribute-def:def:disableMailingListOptOut").subscribe(function(a){i--;var o=r.find(function(e){return"optOutMailingList"===e.friendlyName});!o||a&&"true"===a.value||(t.optOuts.push({resource:n.id,member:e.id,attribute:o}),t.resources.push(n)),t.loading=0!==i})})})})})}},{key:"getOptOutAttribute",value:function(e){this.index=this.resources.indexOf(e),this.optOutAttribute=this.optOuts[this.index].attribute}},{key:"setOptOut",value:function(){this.optOuts[this.index].attribute.value=this.optOutAttribute.value?null:"true",this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(function(){console.log("done")})}},{key:"applyFilter",value:function(e){this.filteredVos=this.vos.filter(function(t){return t.name.toLowerCase().includes(e.toLowerCase())})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(tr),a.Y36(he),a.Y36(se),a.Y36(le),a.Y36(re))},e.\u0275cmp=a.Xpm({type:e,selectors:[["perun-web-apps-settings-mailing-lists"]],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,"row"],[1,"ml-3",3,"checked","change"]],template:function(e,t){1&e&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA(),a.TgZ(4,"perun-web-apps-immediate-filter",1),a.NdJ("filter",function(e){return t.applyFilter(e)}),a.ALo(5,"translate"),a.ALo(6,"customTranslate"),a.qZA(),a.TgZ(7,"mat-accordion"),a.YNc(8,gL,5,1,"mat-expansion-panel",2),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,3,a.lcZ(3,5,"OPT_OUT_MAILING_LISTS.TITLE"))),a.xp6(3),a.Q6J("placeholder",a.lcZ(5,7,a.lcZ(6,9,"OPT_OUT_MAILING_LISTS.FILTER"))),a.xp6(4),a.Q6J("ngForOf",t.filteredVos))},directives:[XM,vC,r.sg,pC,gC,mC,hC,r.O5,_m,cm,EA],pipes:[hh,Wg],styles:[""]}),e}();function vL(e,t){1&e&&a._UZ(0,"mat-spinner",4)}function _L(e,t){1&e&&a._UZ(0,"th",17)}function yL(e,t){if(1&e&&(a.TgZ(0,"td",18),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(n)}}function bL(e,t){1&e&&a._UZ(0,"tr",19)}function AL(e,t){1&e&&a._UZ(0,"tr",20)}function wL(e,t){if(1&e&&(a.TgZ(0,"table",11),a.ynx(1,12),a.YNc(2,_L,1,0,"th",13),a.YNc(3,yL,2,1,"td",14),a.BQk(),a.YNc(4,bL,1,0,"tr",15),a.YNc(5,AL,1,0,"tr",16),a.qZA()),2&e){var n=a.oxw(2);a.Q6J("dataSource",n.dataSource),a.xp6(4),a.Q6J("matHeaderRowDef",n.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",n.displayedColumns)}}function kL(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",1),a.TgZ(1,"div",5),a.TgZ(2,"p"),a._uU(3),a.qZA(),a.TgZ(4,"div",6),a._uU(5),a.ALo(6,"translate"),a.ALo(7,"customTranslate"),a.qZA(),a.YNc(8,wL,6,3,"table",7),a.qZA(),a.TgZ(9,"div",8),a.TgZ(10,"button",9),a.NdJ("click",function(){return a.CHM(n),a.oxw().onCancel()}),a._uU(11),a.ALo(12,"translate"),a.ALo(13,"customTranslate"),a.qZA(),a.TgZ(14,"button",10),a.NdJ("click",function(){return a.CHM(n),a.oxw().onSubmit()}),a._uU(15),a.ALo(16,"translate"),a.ALo(17,"customTranslate"),a.qZA(),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.xp6(3),a.hij(" ",i.description," "),a.xp6(2),a.hij(" ",a.lcZ(6,5,a.lcZ(7,7,"DIALOGS.REMOVE_STRING_VALUE.ASK"))," "),a.xp6(3),a.Q6J("ngIf",i.dataSource.data.length),a.xp6(3),a.hij(" ",a.lcZ(12,9,a.lcZ(13,11,"DIALOGS.REMOVE_STRING_VALUE.CANCEL"))," "),a.xp6(4),a.hij(" ",a.lcZ(16,13,a.lcZ(17,15,"DIALOGS.REMOVE_STRING_VALUE.REMOVE"))," ")}}var ML=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.dialogRef=t,this.data=n,this.attributesManagerService=i,this.displayedColumns=["name"]}return _createClass(e,[{key:"ngOnInit",value:function(){this.dataSource=new Sv(this.data.values),this.description=this.data.description,this.title=this.data.title}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;if(this.loading=!0,this.data.doNotShowValues)this.data.attribute.value="";else{var t=this.data.attribute.value?this.data.attribute.value:[];void 0!==this.data.valueIndex?t.splice(this.data.valueIndex,1):t=t.filter(function(t){return!e.data.values.find(function(e){return e===t})}),this.data.attribute.value=t}this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(function(){e.loading=!1,e.dialogRef.close(!0)},function(){return e.loading=!1})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl),a.Y36(El),a.Y36(re))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h1",0),a._uU(1),a.qZA(),a.TgZ(2,"div",1),a.YNc(3,vL,1,0,"mat-spinner",2),a.qZA(),a.YNc(4,kL,18,17,"div",3)),2&e&&(a.xp6(1),a.Oqu(t.title),a.xp6(2),a.Q6J("ngIf",t.loading),a.xp6(1),a.Q6J("ngIf",!t.loading))},directives:[Nl,r.O5,_m,Il,ql,_h,vv,bv,yv,_v,kv,Mv,Av,wv,Cv,Tv],pipes:[hh,Wg],styles:[""]}),e}();function CL(e,t){1&e&&(a.TgZ(0,"app-alert",5),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,1,a.lcZ(3,3,"PREFERRED_SHELLS.NO_SHELLS"))))}function TL(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-option",11),a.NdJ("click",function(){return a.CHM(n),a.oxw(3).changeValue()}),a._uU(1),a.qZA()}if(2&e){var i=t.$implicit;a.Q6J("value",i),a.xp6(1),a.Oqu(i)}}function LL(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"mat-list-item"),a.TgZ(1,"mat-form-field",7),a.TgZ(2,"mat-select",8),a.NdJ("valueChange",function(e){var t=a.CHM(n).index;return a.oxw(2).shells[t]=e}),a.YNc(3,TL,2,2,"mat-option",9),a.qZA(),a.qZA(),a.TgZ(4,"button",10),a.NdJ("click",function(){var e=a.CHM(n).index;return a.oxw(2).removeShell(e)}),a._uU(5),a.ALo(6,"translate"),a.ALo(7,"customTranslate"),a.qZA(),a.qZA()}if(2&e){var i=t.index,r=a.oxw(2);a.xp6(2),a.Q6J("value",r.shells[i]),a.xp6(1),a.Q6J("ngForOf",r.defaultShells),a.xp6(2),a.hij(" ",a.lcZ(6,3,a.lcZ(7,5,"PREFERRED_SHELLS.REMOVE_BUTTON"))," ")}}function SL(e,t){if(1&e&&(a.TgZ(0,"mat-list"),a.YNc(1,LL,8,7,"mat-list-item",6),a.qZA()),2&e){var n=a.oxw();a.xp6(1),a.Q6J("ngForOf",n.shells)}}var EL=function(){var e=function(){function e(t,n,i,r){var a=this;_classCallCheck(this,e),this.store=t,this.attributesManagerService=n,this.dialog=i,this.translateService=r,this.defaultShells=["/bin/bash","/bin/csh","/bin/ksh","/bin/sh","/bin/zsh"],this.shells=[],r.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(function(e){return a.removeDialogDescription=e}),r.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(function(e){return a.removeDialogTitle=e})}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.userId=this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(function(){e.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(function(t){return e.removeDialogDescription=t}),e.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(function(t){return e.removeDialogTitle=t})}),this.getAttribute()}},{key:"addShell",value:function(){this.shells.push("/bin/bash"),this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe(function(){console.log("done")})}},{key:"removeShell",value:function(e){var t=this,n=dg();n.width="600px",n.data={valueIndex:e,values:[this.shells[e]],attribute:this.prefShellsAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(ML,n).afterClosed().subscribe(function(e){e&&t.getAttribute()})}},{key:"getAttribute",value:function(){var e=this;this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredShells").subscribe(function(t){e.prefShellsAttribute=t,e.shells=e.prefShellsAttribute.value?e.prefShellsAttribute.value:[],e.loading=!1})}},{key:"changeValue",value:function(){var e=this;this.loading=!0,this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe(function(){e.getAttribute()})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(tr),a.Y36(re),a.Y36(Dl),a.Y36(lh))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA(),a.TgZ(4,"app-alert",1),a._uU(5),a.ALo(6,"translate"),a.ALo(7,"customTranslate"),a.qZA(),a.TgZ(8,"button",2),a.NdJ("click",function(){return t.addShell()}),a._uU(9),a.ALo(10,"translate"),a.ALo(11,"customTranslate"),a.qZA(),a.YNc(12,CL,4,5,"app-alert",3),a.YNc(13,SL,2,1,"mat-list",4)),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,5,a.lcZ(3,7,"PREFERRED_SHELLS.TITLE"))),a.xp6(4),a.hij(" ",a.lcZ(6,9,a.lcZ(7,11,"PREFERRED_SHELLS.DESCRIPTION")),"\n"),a.xp6(4),a.hij(" ",a.lcZ(10,13,a.lcZ(11,15,"PREFERRED_SHELLS.NEW_BUTTON")),"\n"),a.xp6(3),a.Q6J("ngIf",!t.loading&&0===t.shells.length),a.xp6(1),a.Q6J("ngIf",!t.loading))},directives:[cm,_h,r.O5,yb,r.sg,wb,td,Gf,ml],pipes:[hh,Wg],styles:[""]}),e}();function zL(e,t){1&e&&a._UZ(0,"mat-spinner",4)}function OL(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div"),a.TgZ(1,"div",5),a.TgZ(2,"mat-form-field",6),a.TgZ(3,"label",6),a._UZ(4,"input",7),a.qZA(),a.qZA(),a.qZA(),a.TgZ(5,"div",8),a.TgZ(6,"button",9),a.NdJ("click",function(){return a.CHM(n),a.oxw().onCancel()}),a._uU(7),a.ALo(8,"translate"),a.ALo(9,"customTranslate"),a.qZA(),a.TgZ(10,"button",10),a.NdJ("click",function(){return a.CHM(n),a.oxw().onSubmit()}),a._uU(11),a.ALo(12,"translate"),a.ALo(13,"customTranslate"),a.qZA(),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.xp6(4),a.Q6J("formControl",i.inputControl),a.xp6(3),a.hij(" ",a.lcZ(8,4,a.lcZ(9,6,"DIALOGS.ADD_UNIX_GROUP.CANCEL"))," "),a.xp6(3),a.Q6J("disabled",!i.inputControl.valid||i.groups.includes(i.inputControl.value)),a.xp6(1),a.hij(" ",a.lcZ(12,8,a.lcZ(13,10,"DIALOGS.ADD_UNIX_GROUP.ADD"))," ")}}var xL=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.dialogRef=t,this.data=n,this.attributesManagerService=i,this.groups=[]}return _createClass(e,[{key:"ngOnInit",value:function(){this.inputControl=new tf(null,pd.required),this.groups=this.data.groups}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onSubmit",value:function(){var e=this;this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.data.userId,"urn:perun:user:attribute-def:def:preferredUnixGroupName-namespace:".concat(this.data.namespace)).subscribe(function(t){var n=t.value?t.value:[];n.push(e.inputControl.value),t.value=n,e.attributesManagerService.setUserAttribute({user:e.data.userId,attribute:t}).subscribe(function(){e.loading=!1,e.dialogRef.close(!0)})})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Tl),a.Y36(El),a.Y36(re))},e.\u0275cmp=a.Xpm({type:e,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&&(a.TgZ(0,"h1",0),a._uU(1),a.ALo(2,"translate"),a.ALo(3,"customTranslate"),a.qZA(),a.TgZ(4,"div",1),a.YNc(5,zL,1,0,"mat-spinner",2),a.YNc(6,OL,14,12,"div",3),a.qZA()),2&e&&(a.xp6(1),a.Oqu(a.lcZ(2,3,a.lcZ(3,5,"DIALOGS.ADD_UNIX_GROUP.TITLE"))),a.xp6(4),a.Q6J("ngIf",t.loading),a.xp6(1),a.Q6J("ngIf",!t.loading))},directives:[Nl,r.O5,_m,Il,td,tm,cd,kf,Rd,vf,ql,_h],pipes:[hh,Wg],styles:[""]}),e}();function RL(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",2),a.TgZ(1,"h4"),a._uU(2),a.qZA(),a.TgZ(3,"button",3),a.NdJ("click",function(){var e=a.CHM(n).$implicit;return a.oxw().addGroupName(e)}),a._uU(4),a.ALo(5,"translate"),a.ALo(6,"customTranslate"),a.qZA(),a.TgZ(7,"button",4),a.NdJ("click",function(){var e=a.CHM(n),t=e.$implicit,i=e.index;return a.oxw().removeGroupName(t,i)}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a._UZ(10,"perun-web-apps-string-list",5),a.qZA()}if(2&e){var i=t.$implicit,r=t.index,o=a.oxw();a.xp6(2),a.Oqu(i),a.xp6(2),a.hij(" ",a.lcZ(5,8,a.lcZ(6,10,"PREFERRED_UNIX_GROUP_NAMES.NEW_BUTTON"))," "),a.xp6(3),a.Q6J("disabled",0===o.selectionList[r].selected.length),a.xp6(1),a.hij(" ",a.lcZ(9,12,"PREFERRED_UNIX_GROUP_NAMES.REMOVE_BUTTON")," "),a.xp6(2),a.Q6J("values",o.groupNames.get(i))("selection",o.selectionList[r])("alertText",o.alertText)("headerColumnText",o.headerColumnText)}}var DL=function(){var e=function(){function e(t,n,i,r){var a=this;_classCallCheck(this,e),this.store=t,this.attributesManagerService=n,this.dialog=i,this.translateService=r,this.namespaces=[],this.userId=this.store.getPerunPrincipal().userId,this.groupNames=new Map,this.groupNameAttributes=[],this.selectionList=[],r.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_DESCRIPTION").subscribe(function(e){return a.removeDialogDescription=e}),r.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(function(e){return a.removeDialogTitle=e}),r.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(function(e){return a.alertText=e}),r.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(function(e){return a.headerColumnText=e})}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.namespaces=this.store.get("preferred_unix_group_names"),this.translateService.onLangChange.subscribe(function(){e.translateService.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_DESCRIPTION").subscribe(function(t){return e.removeDialogDescription=t}),e.translateService.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(function(t){return e.removeDialogTitle=t}),e.translateService.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(function(t){return e.alertText=t}),e.translateService.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(function(t){return e.headerColumnText=t})}),this.initSelection(),this.namespaces.forEach(function(t){e.getAttribute(t)})}},{key:"initSelection",value:function(){for(var e=0;e=5120,this.newImage=t.result}},{key:"onAdd",value:function(){var e=this;this.attribute.value=this.newImage,this.attributesManagerService.setUserAttribute({attribute:this.attribute,user:this.store.getPerunPrincipal().userId}).subscribe(function(){e.dialogRef.close(!0)})}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"generateImg",value:function(){function e(e,t,n,i){i.beginPath(),i.rect(20*e,20*t,20,20),i.fillStyle="rgb("+n.join(",")+")",i.fill()}this.newImage=function(){for(var t=function(){var e=document.createElement("canvas");e.width=100,e.height=100;var t=e.getContext("2d");return t.beginPath(),t.rect(0,0,100,100),t.fillStyle="#FFFFFF",t.fill(),e}(),n=t.getContext("2d"),i=function(){for(var e=[],t=0;t<3;t++){var n=Math.floor(256*Math.random()),i=Math.max(120,n),r=Math.min(200,i);e.push(r)}return e}(),r=0;r1&&void 0!==arguments[1]?arguments[1]:"/assets/i18n/",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".json";_classCallCheck(this,e),this.http=t,this.prefix=n,this.suffix=i}return _createClass(e,[{key:"getTranslation",value:function(e){return this.http.get("".concat(this.prefix).concat(e).concat(this.suffix))}}]),e}(),rE=function(){var e=function(){function e(t,n,i,r,a){_classCallCheck(this,e),this.http=t,this.storeService=n,this.authzSevice=i,this.titleService=r,this.utilsService=a}return _createClass(e,[{key:"initializeColors",value:function(e,t){var n=this;return new Promise(function(i){t.forEach(function(e){var t=n.storeService.get("theme",e.configValue);document.documentElement.style.setProperty(e.cssVariable,t)}),e.forEach(function(e){var t=n.storeService.get("theme",e.configValue);document.documentElement.style.setProperty(e.cssVariable,t),n.setEntityTheme(e.entity,t)}),i()})}},{key:"setEntityTheme",value:function(e,t){for(var n,i=0,r=(n=t,[aE(tinycolor(n).lighten(52),"50"),aE(tinycolor(n).lighten(37),"100"),aE(tinycolor(n).lighten(26),"200"),aE(tinycolor(n).lighten(12),"300"),aE(tinycolor(n).lighten(6),"400"),aE(tinycolor(n),"500"),aE(tinycolor(n).darken(6),"600"),aE(tinycolor(n).darken(12),"700"),aE(tinycolor(n).darken(18),"800"),aE(tinycolor(n).darken(24),"900"),aE(tinycolor(n).lighten(50).saturate(30),"A100"),aE(tinycolor(n).lighten(30).saturate(30),"A200"),aE(tinycolor(n).lighten(10).saturate(15),"A400"),aE(tinycolor(n).lighten(5).saturate(5),"A700")]);i1&&void 0!==arguments[1]?arguments[1]:[];return{ngModule:e,providers:t.serverLoaded?[{provide:j_,useValue:Object.assign(Object.assign({},Y_),t)},{provide:W_,useValue:n,multi:!0},{provide:F_,useValue:!0}]:[{provide:j_,useValue:Object.assign(Object.assign({},Y_),t)},{provide:W_,useValue:n,multi:!0}]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(F_),a.LFG(a.Lbi))},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[QT,Ly,sE],QT,Ly,sE]}),e}(),uE=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[zu],zu]}),e}(),lE=new a.OlP("perun-api-service"),hE=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({}),e}(),dE=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[hE,al,zu,yo],hE,zu]}),e}(),fE={provide:ee.TP,useExisting:(0,a.Gpc)(function(){return Rg}),multi:!0};function pE(e){return new iE(e,"./assets/i18n/",".json")}function gE(e){var t={basePath:e.get("api_url")};return new ie(t)}var mE=function(e){return function(){return e.initialize()}},vE=function(){var e=function e(t,n){_classCallCheck(this,e),this.customIconService=t,this.translate=n,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()};return e.\u0275fac=function(t){return new(t||e)(a.LFG(Eg),a.LFG(lh))},e.\u0275mod=a.oAB({type:e,bootstrap:[lA]}),e.\u0275inj=a.cJS({providers:[Eg,{provide:a.ip1,useFactory:mE,multi:!0,deps:[oE]},{provide:ie,useFactory:gE,deps:[tr]},Fg,Rg,fE,{provide:lE,useClass:Pg}],imports:[[I,wu,ee.JF,dh.forRoot({loader:{provide:Ul,useFactory:pE,deps:[ee.eN]}}),nE,cg,sb,kb,Ki,yh,cE,P_,zS,AS,_C,nd,Xf,Bl,Lv,nm,Tf,OA,Cp,ym,Nk,uE,Yv,jg,wM,al,dp,dE,p_,Cf,JS,ug,Wp,Hl.zr.forRoot()]]}),e}();(0,a.G48)(),P().bootstrapModule(vE).catch(function(e){return console.error(e)})},1511:function(e,t,n){"use strict";n.d(t,{mr:function(){return b},Ov:function(){return Me},ez:function(){return Le},K0:function(){return c},uU:function(){return Te},Do:function(){return w},V_:function(){return h},Ye:function(){return k},S$:function(){return _},mk:function(){return ce},sg:function(){return le},O5:function(){return de},PC:function(){return ye},RF:function(){return me},n9:function(){return ve},ED:function(){return _e},b0:function(){return A},lw:function(){return u},gd:function(){return Ce},EM:function(){return Oe},JF:function(){return De},NF:function(){return Ee},PM:function(){return ze},w_:function(){return s},bD:function(){return Se},q:function(){return a},Mx:function(){return se},HT:function(){return o}});var i=n(1572),r=null;function a(){return r}function o(e){r||(r=e)}var s=function e(){_classCallCheck(this,e)},c=new i.OlP("DocumentToken"),u=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,i.Yz7)({factory:l,token:e,providedIn:"platform"}),e}();function l(){return(0,i.LFG)(d)}var h=new i.OlP("Location Initialized"),d=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._doc=e,i._init(),i}return _createClass(n,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return a().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){var t=a().getGlobalEventTarget(this._doc,"window");return t.addEventListener("popstate",e,!1),function(){return t.removeEventListener("popstate",e)}}},{key:"onHashChange",value:function(e){var t=a().getGlobalEventTarget(this._doc,"window");return t.addEventListener("hashchange",e,!1),function(){return t.removeEventListener("hashchange",e)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(e,t,n){f()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){f()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(e)}},{key:"getState",value:function(){return this._history.state}}]),n}(u);return e.\u0275fac=function(t){return new(t||e)(i.LFG(c))},e.\u0275prov=(0,i.Yz7)({factory:p,token:e,providedIn:"platform"}),e}();function f(){return!!window.history.pushState}function p(){return new d((0,i.LFG)(c))}function g(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function m(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function v(e){return e&&"?"!==e[0]?"?"+e:e}var _=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,i.Yz7)({factory:y,token:e,providedIn:"root"}),e}();function y(e){var t=(0,i.LFG)(c).location;return new A((0,i.LFG)(u),t&&t.origin||"")}var b=new i.OlP("appBaseHref"),A=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;if(_classCallCheck(this,n),(r=t.call(this))._platformLocation=e,r._removeListenerFns=[],null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=i,_possibleConstructorReturn(r)}return _createClass(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return g(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+v(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+v(i));this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+v(i));this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}]),n}(_);return e.\u0275fac=function(t){return new(t||e)(i.LFG(u),i.LFG(b,8))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}(),w=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this))._platformLocation=e,r._baseHref="",r._removeListenerFns=[],null!=i&&(r._baseHref=i),r}return _createClass(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=g(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+v(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+v(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}]),n}(_);return e.\u0275fac=function(t){return new(t||e)(i.LFG(u),i.LFG(b,8))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}(),k=function(){var e=function(){function e(t,n){var r=this;_classCallCheck(this,e),this._subject=new i.vpe,this._urlChangeListeners=[],this._platformStrategy=t;var a=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=m(C(a)),this._platformStrategy.onPopState(function(e){r._subject.emit({url:r.path(!0),pop:!0,state:e.state,type:e.type})})}return _createClass(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+v(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,C(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+v(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+v(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformStrategy).historyGo)||void 0===t||t.call(e,n)}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(e,t)})}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.LFG(_),i.LFG(u))},e.normalizeQueryParams=v,e.joinWithSlash=g,e.stripTrailingSlash=m,e.\u0275prov=(0,i.Yz7)({factory:M,token:e,providedIn:"root"}),e}();function M(){return new k((0,i.LFG)(_),(0,i.LFG)(u))}function C(e){return e.replace(/\/index.html$/,"")}var T=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),L=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}({}),S=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}({}),E=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}({}),z=function(e){return 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[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}({});function O(e,t){return I((0,i.cg1)(e)[i.wAp.DateFormat],t)}function x(e,t){return I((0,i.cg1)(e)[i.wAp.TimeFormat],t)}function R(e,t){return I((0,i.cg1)(e)[i.wAp.DateTimeFormat],t)}function D(e,t){var n=(0,i.cg1)(e),r=n[i.wAp.NumberSymbols][t];if(void 0===r){if(t===z.CurrencyDecimal)return n[i.wAp.NumberSymbols][z.Decimal];if(t===z.CurrencyGroup)return n[i.wAp.NumberSymbols][z.Group]}return r}var P=i.kL8;function N(e){if(!e[i.wAp.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(e[i.wAp.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function I(e,t){for(var n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function q(e){var t=_slicedToArray(e.split(":"),2);return{hours:+t[0],minutes:+t[1]}}var B=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,H={},Y=/((?:[^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]*)/,j=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}({}),F=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}({}),W=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}({});function U(e,t,n,i){var r=function(e){if(re(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){var t=_slicedToArray(e.split("-").map(function(e){return+e}),3),n=t[0],i=t[1],r=void 0===i?1:i,a=t[2];return K(n,r-1,void 0===a?1:a)}var o,s=parseFloat(e);if(!isNaN(e-s))return new Date(s);if(o=e.match(B))return function(e){var t=new Date(0),n=0,i=0,r=e[8]?t.setUTCFullYear:t.setFullYear,a=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),i=Number(e[9]+e[11])),r.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));var o=Number(e[4]||0)-n,s=Number(e[5]||0)-i,c=Number(e[6]||0),u=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return a.call(t,o,s,c,u),t}(o)}var c=new Date(e);if(!re(c))throw new Error('Unable to convert "'.concat(e,'" into a date'));return c}(e);t=Z(n,t)||t;for(var a,o=[];t;){if(!(a=Y.exec(t))){o.push(t);break}var s=(o=o.concat(a.slice(1))).pop();if(!s)break;t=s}var c=r.getTimezoneOffset();i&&(c=ie(i,c),r=function(e,t,n){var i=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(ie(t,i)-i))}(r,i));var u="";return o.forEach(function(e){var t=function(e){if(ne[e])return ne[e];var t;switch(e){case"G":case"GG":case"GGG":t=J(W.Eras,S.Abbreviated);break;case"GGGG":t=J(W.Eras,S.Wide);break;case"GGGGG":t=J(W.Eras,S.Narrow);break;case"y":t=V(F.FullYear,1,0,!1,!0);break;case"yy":t=V(F.FullYear,2,0,!0,!0);break;case"yyy":t=V(F.FullYear,3,0,!1,!0);break;case"yyyy":t=V(F.FullYear,4,0,!1,!0);break;case"Y":t=te(1);break;case"YY":t=te(2,!0);break;case"YYY":t=te(3);break;case"YYYY":t=te(4);break;case"M":case"L":t=V(F.Month,1,1);break;case"MM":case"LL":t=V(F.Month,2,1);break;case"MMM":t=J(W.Months,S.Abbreviated);break;case"MMMM":t=J(W.Months,S.Wide);break;case"MMMMM":t=J(W.Months,S.Narrow);break;case"LLL":t=J(W.Months,S.Abbreviated,L.Standalone);break;case"LLLL":t=J(W.Months,S.Wide,L.Standalone);break;case"LLLLL":t=J(W.Months,S.Narrow,L.Standalone);break;case"w":t=ee(1);break;case"ww":t=ee(2);break;case"W":t=ee(1,!0);break;case"d":t=V(F.Date,1);break;case"dd":t=V(F.Date,2);break;case"c":case"cc":t=V(F.Day,1);break;case"ccc":t=J(W.Days,S.Abbreviated,L.Standalone);break;case"cccc":t=J(W.Days,S.Wide,L.Standalone);break;case"ccccc":t=J(W.Days,S.Narrow,L.Standalone);break;case"cccccc":t=J(W.Days,S.Short,L.Standalone);break;case"E":case"EE":case"EEE":t=J(W.Days,S.Abbreviated);break;case"EEEE":t=J(W.Days,S.Wide);break;case"EEEEE":t=J(W.Days,S.Narrow);break;case"EEEEEE":t=J(W.Days,S.Short);break;case"a":case"aa":case"aaa":t=J(W.DayPeriods,S.Abbreviated);break;case"aaaa":t=J(W.DayPeriods,S.Wide);break;case"aaaaa":t=J(W.DayPeriods,S.Narrow);break;case"b":case"bb":case"bbb":t=J(W.DayPeriods,S.Abbreviated,L.Standalone,!0);break;case"bbbb":t=J(W.DayPeriods,S.Wide,L.Standalone,!0);break;case"bbbbb":t=J(W.DayPeriods,S.Narrow,L.Standalone,!0);break;case"B":case"BB":case"BBB":t=J(W.DayPeriods,S.Abbreviated,L.Format,!0);break;case"BBBB":t=J(W.DayPeriods,S.Wide,L.Format,!0);break;case"BBBBB":t=J(W.DayPeriods,S.Narrow,L.Format,!0);break;case"h":t=V(F.Hours,1,-12);break;case"hh":t=V(F.Hours,2,-12);break;case"H":t=V(F.Hours,1);break;case"HH":t=V(F.Hours,2);break;case"m":t=V(F.Minutes,1);break;case"mm":t=V(F.Minutes,2);break;case"s":t=V(F.Seconds,1);break;case"ss":t=V(F.Seconds,2);break;case"S":t=V(F.FractionalSeconds,1);break;case"SS":t=V(F.FractionalSeconds,2);break;case"SSS":t=V(F.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Q(j.Short);break;case"ZZZZZ":t=Q(j.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Q(j.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Q(j.Long);break;default:return null}return ne[e]=t,t}(e);u+=t?t(r,n,c):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function K(e,t,n){var i=new Date(0);return i.setFullYear(e,t,n),i.setHours(0,0,0),i}function Z(e,t){var n=function(e){return(0,i.cg1)(e)[i.wAp.LocaleId]}(e);if(H[n]=H[n]||{},H[n][t])return H[n][t];var r="";switch(t){case"shortDate":r=O(e,E.Short);break;case"mediumDate":r=O(e,E.Medium);break;case"longDate":r=O(e,E.Long);break;case"fullDate":r=O(e,E.Full);break;case"shortTime":r=x(e,E.Short);break;case"mediumTime":r=x(e,E.Medium);break;case"longTime":r=x(e,E.Long);break;case"fullTime":r=x(e,E.Full);break;case"short":var a=Z(e,"shortTime"),o=Z(e,"shortDate");r=G(R(e,E.Short),[a,o]);break;case"medium":var s=Z(e,"mediumTime"),c=Z(e,"mediumDate");r=G(R(e,E.Medium),[s,c]);break;case"long":var u=Z(e,"longTime"),l=Z(e,"longDate");r=G(R(e,E.Long),[u,l]);break;case"full":var h=Z(e,"fullTime"),d=Z(e,"fullDate");r=G(R(e,E.Full),[h,d])}return r&&(H[n][t]=r),r}function G(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(e,n){return null!=t&&n in t?t[n]:e})),e}function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,a="";(e<0||r&&e<=0)&&(r?e=1-e:(e=-e,a=n));for(var o=String(e);o.length2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(a,o){var s,c=function(e,t){switch(e){case F.FullYear:return t.getFullYear();case F.Month:return t.getMonth();case F.Date:return t.getDate();case F.Hours:return t.getHours();case F.Minutes:return t.getMinutes();case F.Seconds:return t.getSeconds();case F.FractionalSeconds:return t.getMilliseconds();case F.Day:return t.getDay();default:throw new Error('Unknown DateType value "'.concat(e,'".'))}}(e,a);if((n>0||c>-n)&&(c+=n),e===F.Hours)0===c&&-12===n&&(c=12);else if(e===F.FractionalSeconds)return s=t,X(c,3).substr(0,s);var u=D(o,z.MinusSign);return X(c,t,u,i,r)}}function J(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:L.Format,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(a,o){return function(e,t,n,r,a,o){switch(n){case W.Months:return function(e,t,n){var r=(0,i.cg1)(e),a=I([r[i.wAp.MonthsFormat],r[i.wAp.MonthsStandalone]],t);return I(a,n)}(t,a,r)[e.getMonth()];case W.Days:return function(e,t,n){var r=(0,i.cg1)(e),a=I([r[i.wAp.DaysFormat],r[i.wAp.DaysStandalone]],t);return I(a,n)}(t,a,r)[e.getDay()];case W.DayPeriods:var s=e.getHours(),c=e.getMinutes();if(o){var u=function(e){var t=(0,i.cg1)(e);return N(t),(t[i.wAp.ExtraData][2]||[]).map(function(e){return"string"==typeof e?q(e):[q(e[0]),q(e[1])]})}(t),l=function(e,t,n){var r=(0,i.cg1)(e);N(r);var a=I([r[i.wAp.ExtraData][0],r[i.wAp.ExtraData][1]],t)||[];return I(a,n)||[]}(t,a,r),h=u.findIndex(function(e){if(Array.isArray(e)){var t=_slicedToArray(e,2),n=t[0],i=t[1],r=s>=n.hours&&c>=n.minutes,a=s0?Math.floor(r/60):Math.ceil(r/60);switch(e){case j.Short:return(r>=0?"+":"")+X(o,2,a)+X(Math.abs(r%60),2,a);case j.ShortGMT:return"GMT"+(r>=0?"+":"")+X(o,1,a);case j.Long:return"GMT"+(r>=0?"+":"")+X(o,2,a)+":"+X(Math.abs(r%60),2,a);case j.Extended:return 0===i?"Z":(r>=0?"+":"")+X(o,2,a)+":"+X(Math.abs(r%60),2,a);default:throw new Error('Unknown zone width "'.concat(e,'"'))}}}function $(e){return K(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function ee(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,i){var r,a,o;if(t){var s=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,c=n.getDate();r=1+Math.floor((c+s)/7)}else{var u=$(n),l=(a=u.getFullYear(),o=K(a,0,1).getDay(),K(a,0,1+(o<=4?4:11)-o)),h=u.getTime()-l.getTime();r=1+Math.round(h/6048e5)}return X(r,e,D(i,z.MinusSign))}}function te(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,i){return X($(n).getFullYear(),e,D(i,z.MinusSign),t)}}var ne={};function ie(e,t){e=e.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function re(e){return e instanceof Date&&!isNaN(e.valueOf())}var ae=function e(){_classCallCheck(this,e)},oe=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).locale=e,i}return _createClass(n,[{key:"getPluralCategory",value:function(e,t){switch(P(t||this.locale)(e)){case T.Zero:return"zero";case T.One:return"one";case T.Two:return"two";case T.Few:return"few";case T.Many:return"many";default:return"other"}}}]),n}(ae);return e.\u0275fac=function(t){return new(t||e)(i.LFG(i.soG))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}();function se(e,t){t=encodeURIComponent(t);var n,i=_createForOfIteratorHelper(e.split(";"));try{for(i.s();!(n=i.n()).done;){var r=n.value,a=r.indexOf("="),o=_slicedToArray(-1==a?[r,""]:[r.slice(0,a),r.slice(a+1)],2),s=o[0],c=o[1];if(s.trim()===t)return decodeURIComponent(c)}}catch(u){i.e(u)}finally{i.f()}return null}var ce=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return _createClass(e,[{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&((0,i.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat((0,i.AaK)(e.item)));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.Y36(i.ZZ4),i.Y36(i.aQg),i.Y36(i.SBq),i.Y36(i.Qsj))},e.\u0275dir=i.lG2({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),ue=function(){function e(t,n,i,r){_classCallCheck(this,e),this.$implicit=t,this.ngForOf=n,this.index=i,this.count=r}return _createClass(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),le=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return _createClass(e,[{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(i){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,i,r){if(null==e.previousIndex){var a=t._viewContainer.createEmbeddedView(t._template,new ue(null,t._ngForOf,-1,-1),null===r?void 0:r),o=new he(e,a);n.push(o)}else if(null==r)t._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=t._viewContainer.get(i);t._viewContainer.move(s,r);var c=new he(e,s);n.push(c)}});for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:"mediumDate",i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(null==t||""===t||t!=t)return null;try{return U(t,n,r||this.locale,i)}catch(a){throw be(e,a.message)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.Y36(i.soG,16))},e.\u0275pipe=i.Yjl({name:"date",type:e,pure:!0}),e}(),Le=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({providers:[{provide:ae,useClass:oe}]}),e}(),Se="browser";function Ee(e){return e===Se}function ze(e){return"server"===e}var Oe=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275prov=(0,i.Yz7)({token:e,providedIn:"root",factory:function(){return new xe((0,i.LFG)(c),window)}}),e}(),xe=function(){function e(t,n){_classCallCheck(this,e),this.document=t,this.window=n,this.offset=function(){return[0,0]}}return _createClass(e,[{key:"setOffset",value:function(e){this.offset=Array.isArray(e)?function(){return e}:e}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}},{key:"scrollToPosition",value:function(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}},{key:"scrollToAnchor",value:function(e){if(this.supportsScrolling()){var t=function(e,t){var n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow))for(var i=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),r=i.currentNode;r;){var a=r.shadowRoot;if(a){var o=a.getElementById(t)||a.querySelector('[name="'.concat(t,'"]'));if(o)return o}r=i.nextNode()}return null}(this.document,e);t&&(this.scrollToElement(t),this.attemptFocus(t))}}},{key:"setHistoryScrollRestoration",value:function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}},{key:"scrollToElement",value:function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}},{key:"attemptFocus",value:function(e){return e.focus(),this.document.activeElement===e}},{key:"supportScrollRestoration",value:function(){try{if(!this.supportsScrolling())return!1;var e=Re(this.window.history)||Re(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(t){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}]),e}();function Re(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}var De=function e(){_classCallCheck(this,e)}},9063:function(e,t,n){"use strict";n.d(t,{TP:function(){return z},eN:function(){return S},JF:function(){return Y},WM:function(){return d},LE:function(){return m},Zn:function(){return C}});var i=n(1511),r=n(1572),a=n(878),o=n(8318),s=n(436),c=n(3835),u=n(9996),l=function e(){_classCallCheck(this,e)},h=function e(){_classCallCheck(this,e)},d=function(){function e(t){var n=this;_classCallCheck(this,e),this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){n.headers=new Map,t.split("\n").forEach(function(e){var t=e.indexOf(":");if(t>0){var i=e.slice(0,t),r=i.toLowerCase(),a=e.slice(t+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(a):n.headers.set(r,[a])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var i=t[e],r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(e,r))})}:this.headers=new Map}return _createClass(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var i=("a"===e.op?this.headers.get(t):void 0)||[];i.push.apply(i,_toConsumableArray(n)),this.headers.set(t,i);break;case"d":var r=e.value;if(r){var a=this.headers.get(t);if(!a)return;0===(a=a.filter(function(e){return-1===r.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,a)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}]),e}(),f=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"encodeKey",value:function(e){return p(e)}},{key:"encodeValue",value:function(e){return p(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function p(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function g(e){return"".concat(e)}var m=function(){function e(){var t,n,i,r=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_classCallCheck(this,e),this.updates=null,this.cloneFrom=null,this.encoder=a.encoder||new f,a.fromString){if(a.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(t=a.fromString,n=this.encoder,i=new Map,t.length>0&&t.replace(/^\?/,"").split("&").forEach(function(e){var t=e.indexOf("="),r=_slicedToArray(-1==t?[n.decodeKey(e),""]:[n.decodeKey(e.slice(0,t)),n.decodeValue(e.slice(t+1))],2),a=r[0],o=r[1],s=i.get(a)||[];s.push(o),i.set(a,s)}),i)}else a.fromObject?(this.map=new Map,Object.keys(a.fromObject).forEach(function(e){var t=a.fromObject[e];r.map.set(e,Array.isArray(t)?t:[t])})):this.map=null}return _createClass(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"appendAll",value:function(e){var t=[];return Object.keys(e).forEach(function(n){var i=e[n];Array.isArray(i)?i.forEach(function(e){t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:i,op:"a"})}),this.clone(t)}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(g(t.value)),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var i=e.map.get(t.param)||[],r=i.indexOf(g(t.value));-1!==r&&i.splice(r,1),i.length>0?e.map.set(t.param,i):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}]),e}(),v=function(){function e(){_classCallCheck(this,e),this.map=new Map}return _createClass(e,[{key:"set",value:function(e,t){return this.map.set(e,t),this}},{key:"get",value:function(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}},{key:"delete",value:function(e){return this.map.delete(e),this}},{key:"keys",value:function(){return this.map.keys()}}]),e}();function _(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function y(e){return"undefined"!=typeof Blob&&e instanceof Blob}function b(e){return"undefined"!=typeof FormData&&e instanceof FormData}var A=function(){function e(t,n,i,r){var a;if(_classCallCheck(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,a=r):a=i,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.context&&(this.context=a.context),a.params&&(this.params=a.params)),this.headers||(this.headers=new d),this.context||(this.context=new v),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},i=n.method||this.method,r=n.url||this.url,a=n.responseType||this.responseType,o=void 0!==n.body?n.body:this.body,s=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,c=void 0!==n.reportProgress?n.reportProgress:this.reportProgress,u=n.headers||this.headers,l=n.params||this.params,h=null!==(t=n.context)&&void 0!==t?t:this.context;return void 0!==n.setHeaders&&(u=Object.keys(n.setHeaders).reduce(function(e,t){return e.set(t,n.setHeaders[t])},u)),n.setParams&&(l=Object.keys(n.setParams).reduce(function(e,t){return e.set(t,n.setParams[t])},l)),new e(i,r,o,{params:l,headers:u,context:h,reportProgress:c,responseType:a,withCredentials:s})}}]),e}(),w=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),k=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";_classCallCheck(this,e),this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},M=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(e=t.call(this,i)).type=w.ResponseHeader,e}return _createClass(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(k),C=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(e=t.call(this,i)).type=w.Response,e.body=void 0!==i.body?i.body:null,e}return _createClass(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(k),T=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),i.error=e.error||null,i}return n}(k);function L(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var S=function(){var e=function(){function e(t){_classCallCheck(this,e),this.handler=t}return _createClass(e,[{key:"request",value:function(e,t){var n,i,r,o=this,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e instanceof A?n=e:(i=l.headers instanceof d?l.headers:new d(l.headers),l.params&&(r=l.params instanceof m?l.params:new m({fromObject:l.params})),n=new A(e,t,void 0!==l.body?l.body:null,{headers:i,context:l.context,params:r,reportProgress:l.reportProgress,responseType:l.responseType||"json",withCredentials:l.withCredentials}));var h=(0,a.of)(n).pipe((0,s.b)(function(e){return o.handler.handle(e)}));if(e instanceof A||"events"===l.observe)return h;var f=h.pipe((0,c.h)(function(e){return e instanceof C}));switch(l.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return f.pipe((0,u.U)(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return f.pipe((0,u.U)(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return f.pipe((0,u.U)(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return f.pipe((0,u.U)(function(e){return e.body}))}case"response":return f;default:throw new Error("Unreachable: unhandled observe type ".concat(l.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new m).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,L(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,L(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,L(n,t))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(l))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),E=function(){function e(t,n){_classCallCheck(this,e),this.next=t,this.interceptor=n}return _createClass(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),z=new r.OlP("HTTP_INTERCEPTORS"),O=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),x=/^\)\]\}',?\n/,R=function(){var e=function(){function e(t){_classCallCheck(this,e),this.xhrFactory=t}return _createClass(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new o.y(function(n){var i=t.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach(function(e,t){return i.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var r=e.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(e.responseType){var a=e.responseType.toLowerCase();i.responseType="json"!==a?a:"text"}var o=e.serializeBody(),s=null,c=function(){if(null!==s)return s;var t=1223===i.status?204:i.status,n=i.statusText||"OK",r=new d(i.getAllResponseHeaders()),a=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new M({headers:r,status:t,statusText:n,url:a})},u=function(){var t=c(),r=t.headers,a=t.status,o=t.statusText,s=t.url,u=null;204!==a&&(u=void 0===i.response?i.responseText:i.response),0===a&&(a=u?200:0);var l=a>=200&&a<300;if("json"===e.responseType&&"string"==typeof u){var h=u;u=u.replace(x,"");try{u=""!==u?JSON.parse(u):null}catch(d){u=h,l&&(l=!1,u={error:d,text:u})}}l?(n.next(new C({body:u,headers:r,status:a,statusText:o,url:s||void 0})),n.complete()):n.error(new T({error:u,headers:r,status:a,statusText:o,url:s||void 0}))},l=function(e){var t=c().url,r=new T({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:t||void 0});n.error(r)},h=!1,f=function(t){h||(n.next(c()),h=!0);var r={type:w.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(r.total=t.total),"text"===e.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},p=function(e){var t={type:w.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return i.addEventListener("load",u),i.addEventListener("error",l),i.addEventListener("timeout",l),i.addEventListener("abort",l),e.reportProgress&&(i.addEventListener("progress",f),null!==o&&i.upload&&i.upload.addEventListener("progress",p)),i.send(o),n.next({type:w.Sent}),function(){i.removeEventListener("error",l),i.removeEventListener("abort",l),i.removeEventListener("load",u),i.removeEventListener("timeout",l),e.reportProgress&&(i.removeEventListener("progress",f),null!==o&&i.upload&&i.upload.removeEventListener("progress",p)),i.readyState!==i.DONE&&i.abort()}})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(i.JF))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),D=new r.OlP("XSRF_COOKIE_NAME"),P=new r.OlP("XSRF_HEADER_NAME"),N=function e(){_classCallCheck(this,e)},I=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return _createClass(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,i.Mx)(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(i.K0),r.LFG(r.Lbi),r.LFG(D))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),q=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.tokenService=t,this.headerName=n}return _createClass(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var i=this.tokenService.getToken();return null===i||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(N),r.LFG(P))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),B=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.backend=t,this.injector=n,this.chain=null}return _createClass(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(z,[]);this.chain=t.reduceRight(function(e,t){return new E(e,t)},this.backend)}return this.chain.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(h),r.LFG(r.zs3))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),H=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:q,useClass:O}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:D,useValue:t.cookieName}:[],t.headerName?{provide:P,useValue:t.headerName}:[]]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({providers:[q,{provide:z,useExisting:q,multi:!0},{provide:N,useClass:I},{provide:D,useValue:"XSRF-TOKEN"},{provide:P,useValue:"X-XSRF-TOKEN"}]}),e}(),Y=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({providers:[S,{provide:l,useClass:B},R,{provide:h,useExisting:R}],imports:[[H.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}()},1572:function(e,t,n){"use strict";n.d(t,{deG:function(){return tn},tb:function(){return Qc},AFp:function(){return Zc},ip1:function(){return Uc},CZH:function(){return Kc},hGG:function(){return Wu},z2F:function(){return Du},sBO:function(){return Ys},Sil:function(){return uu},_Vd:function(){return hs},EJc:function(){return tu},SBq:function(){return gs},qLn:function(){return Ai},vpe:function(){return Cc},gxx:function(){return ha},tBr:function(){return Mn},XFs:function(){return z},OlP:function(){return en},zs3:function(){return Ca},ZZ4:function(){return Ds},aQg:function(){return Ns},soG:function(){return eu},YKP:function(){return Vs},v3s:function(){return Nu},h0i:function(){return Xs},PXZ:function(){return Eu},R0b:function(){return du},FiY:function(){return Cn},Lbi:function(){return Jc},g9A:function(){return Vc},n_E:function(){return Lc},Qsj:function(){return _s},FYo:function(){return vs},JOm:function(){return Ti},Tiy:function(){return bs},q3G:function(){return di},tp0:function(){return Tn},EAV:function(){return Bu},Rgc:function(){return Ks},dDg:function(){return yu},DyG:function(){return nn},GfV:function(){return As},s_b:function(){return Qs},ifc:function(){return P},eFA:function(){return zu},G48:function(){return Lu},Gpc:function(){return f},f3M:function(){return yn},X6Q:function(){return Tu},_c5:function(){return ju},VLi:function(){return Au},c2e:function(){return $c},zSh:function(){return fa},wAp:function(){return $o},vHH:function(){return m},EiD:function(){return li},mCW:function(){return Zn},qzn:function(){return Nn},JVY:function(){return qn},pB0:function(){return jn},eBb:function(){return Hn},L6k:function(){return Bn},LAX:function(){return Yn},cg1:function(){return Vo},Tjo:function(){return Yu},kL8:function(){return Jo},yhl:function(){return In},dqk:function(){return H},sIi:function(){return Pa},CqO:function(){return ao},QGY:function(){return io},F4k:function(){return ro},RDi:function(){return we},AaK:function(){return l},z3N:function(){return Pn},qOj:function(){return La},TTD:function(){return ve},_Bn:function(){return cs},xp6:function(){return dr},uIk:function(){return Ha},Q2q:function(){return Fa},Tol:function(){return Lo},Gre:function(){return Wo},ekj:function(){return To},Suo:function(){return Bc},Xpm:function(){return J},lG2:function(){return re},Yz7:function(){return b},cJS:function(){return A},oAB:function(){return te},Yjl:function(){return ae},Y36:function(){return Ka},_UZ:function(){return Qa},GkF:function(){return to},BQk:function(){return eo},ynx:function(){return $a},qZA:function(){return Ja},TgZ:function(){return Va},EpF:function(){return no},n5z:function(){return Vt},Ikx:function(){return Uo},LFG:function(){return _n},$8M:function(){return Qt},$Z:function(){return Za},NdJ:function(){return oo},CRH:function(){return Hc},kcU:function(){return gt},O4$:function(){return pt},oxw:function(){return ho},ALo:function(){return _c},lcZ:function(){return yc},xi3:function(){return bc},Dn7:function(){return Ac},Hsn:function(){return go},F$t:function(){return po},Q6J:function(){return Ga},s9C:function(){return mo},MGl:function(){return vo},hYB:function(){return _o},DdM:function(){return dc},VKq:function(){return fc},WLB:function(){return pc},iGM:function(){return Ic},MAs:function(){return Ua},pYS:function(){return Mi},Jf7:function(){return ki},CHM:function(){return Ye},oJD:function(){return fi},LSH:function(){return pi},kYT:function(){return ne},Udp:function(){return Co},WFA:function(){return so},d8E:function(){return Ko},YNc:function(){return Wa},W1O:function(){return Wc},_uU:function(){return Bo},Oqu:function(){return Ho},hij:function(){return Yo},AsE:function(){return jo},xDo:function(){return Fo},Gf:function(){return qc}});var i=n(5959),r=n(7570),a=n(8318),o=n(1906),s=n(1055);function c(e){for(var t in e)if(e[t]===c)return t;throw Error("Could not find renamed property on target object.")}function u(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function l(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(l).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function h(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var d=c({__forward_ref__:c});function f(e){return e.__forward_ref__=f,e.toString=function(){return l(this())},e}function p(e){return g(e)?e():e}function g(e){return"function"==typeof e&&e.hasOwnProperty(d)&&e.__forward_ref__===f}var m=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,function(e,t){return"".concat(e?"NG0".concat(e,": "):"").concat(t)}(e,i))).code=e,r}return n}(_wrapNativeSuper(Error));function v(e){return"string"==typeof e?e:null==e?"":String(e)}function _(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():v(e)}function y(e,t){var n=t?" in ".concat(t):"";throw new m("201","No provider for ".concat(_(e)," found").concat(n))}function b(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function A(e){return{providers:e.providers||[],imports:e.imports||[]}}function w(e){return k(e,T)||k(e,S)}function k(e,t){return e.hasOwnProperty(t)?e[t]:null}function M(e){return e&&(e.hasOwnProperty(L)||e.hasOwnProperty(E))?e[L]:null}var C,T=c({"\u0275prov":c}),L=c({"\u0275inj":c}),S=c({ngInjectableDef:c}),E=c({ngInjectorDef:c}),z=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function O(e){var t=C;return C=e,t}function x(e,t,n){var i=w(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&z.Optional?null:void 0!==t?t:void y(l(e),"Injector")}function R(e){return{toString:e}.toString()}var D=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),P=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),N="undefined"!=typeof globalThis&&globalThis,I="undefined"!=typeof window&&window,q="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,B="undefined"!=typeof global&&global,H=N||B||I||q,Y={},j=[],F=c({"\u0275cmp":c}),W=c({"\u0275dir":c}),U=c({"\u0275pipe":c}),K=c({"\u0275mod":c}),Z=c({"\u0275loc":c}),G=c({"\u0275fac":c}),X=c({__NG_ELEMENT_ID__:c}),V=0;function J(e){return R(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===D.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||j,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||P.Emulated,id:"c",styles:e.styles||j,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,a=e.pipes;return n.id+=V++,n.inputs=ie(e.inputs,t),n.outputs=ie(e.outputs),r&&r.forEach(function(e){return e(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(Q)}:null,n.pipeDefs=a?function(){return("function"==typeof a?a():a).map($)}:null,n})}function Q(e){return oe(e)||function(e){return e[W]||null}(e)}function $(e){return function(e){return e[U]||null}(e)}var ee={};function te(e){return R(function(){var t={type:e.type,bootstrap:e.bootstrap||j,declarations:e.declarations||j,imports:e.imports||j,exports:e.exports||j,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(ee[e.id]=e.type),t})}function ne(e,t){return R(function(){var n=se(e,!0);n.declarations=t.declarations||j,n.imports=t.imports||j,n.exports=t.exports||j})}function ie(e,t){if(null==e)return Y;var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i],a=r;Array.isArray(r)&&(a=r[1],r=r[0]),n[r]=i,t&&(t[r]=a)}return n}var re=J;function ae(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function oe(e){return e[F]||null}function se(e,t){var n=e[K]||null;if(!n&&!0===t)throw new Error("Type ".concat(l(e)," does not have '\u0275mod' property."));return n}function ce(e){return Array.isArray(e)&&"object"==typeof e[1]}function ue(e){return Array.isArray(e)&&!0===e[1]}function le(e){return 0!=(8&e.flags)}function he(e){return 2==(2&e.flags)}function de(e){return 1==(1&e.flags)}function fe(e){return null!==e.template}function pe(e,t){return e.hasOwnProperty(G)?e[G]:null}var ge,me=function(){function e(t,n,i){_classCallCheck(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=i}return _createClass(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function ve(){return _e}function _e(e){return e.type.prototype.ngOnChanges&&(e.setInput=be),ye}function ye(){var e=Ae(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===Y)e.previous=t;else for(var i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function be(e,t,n,i){var r=Ae(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:Y,current:null}),a=r.current||(r.current={}),o=r.previous,s=this.declaredInputs[n],c=o[s];a[s]=new me(c&&c.currentValue,t,o===Y),e[i]=t}function Ae(e){return e.__ngSimpleChanges__||null}function we(e){ge=e}function ke(){return void 0!==ge?ge:"undefined"!=typeof document?document:void 0}function Me(e){return!!e.listen}ve.ngInherit=!0;var Ce={createRenderer:function(e,t){return ke()}};function Te(e){for(;Array.isArray(e);)e=e[0];return e}function Le(e,t){return Te(t[e])}function Se(e,t){return Te(t[e.index])}function Ee(e,t){return e.data[t]}function ze(e,t){return e[t]}function Oe(e,t){var n=t[e];return ce(n)?n:n[0]}function xe(e){return 4==(4&e[2])}function Re(e){return 128==(128&e[2])}function De(e,t){return null==t?null:e[t]}function Pe(e){e[18]=0}function Ne(e,t){e[5]+=t;for(var n=e,i=e[3];null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}var Ie={lFrame:st(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function qe(){return Ie.bindingsEnabled}function Be(){return Ie.lFrame.lView}function He(){return Ie.lFrame.tView}function Ye(e){return Ie.lFrame.contextLView=e,e[8]}function je(){for(var e=Fe();null!==e&&64===e.type;)e=e.parent;return e}function Fe(){return Ie.lFrame.currentTNode}function We(e,t){var n=Ie.lFrame;n.currentTNode=e,n.isParent=t}function Ue(){return Ie.lFrame.isParent}function Ke(){Ie.lFrame.isParent=!1}function Ze(){return Ie.isInCheckNoChangesMode}function Ge(e){Ie.isInCheckNoChangesMode=e}function Xe(){var e=Ie.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ve(){return Ie.lFrame.bindingIndex}function Je(){return Ie.lFrame.bindingIndex++}function Qe(e){var t=Ie.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function $e(e){Ie.lFrame.currentDirectiveIndex=e}function et(e){var t=Ie.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function tt(){return Ie.lFrame.currentQueryIndex}function nt(e){Ie.lFrame.currentQueryIndex=e}function it(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function rt(e,t,n){if(n&z.SkipSelf){for(var i=t,r=e;!(null!==(i=i.parent)||n&z.Host||(i=it(r),null===i)||(r=r[15],10&i.type)););if(null===i)return!1;t=i,e=r}var a=Ie.lFrame=ot();return a.currentTNode=t,a.lView=e,!0}function at(e){var t=ot(),n=e[1];Ie.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function ot(){var e=Ie.lFrame,t=null===e?null:e.child;return null===t?st(e):t}function st(e){var t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function ct(){var e=Ie.lFrame;return Ie.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var ut=ct;function lt(){var e=ct();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function ht(){return Ie.lFrame.selectedIndex}function dt(e){Ie.lFrame.selectedIndex=e}function ft(){var e=Ie.lFrame;return Ee(e.tView,e.selectedIndex)}function pt(){Ie.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function gt(){Ie.lFrame.currentNamespace=null}function mt(e,t){for(var n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[s]<0&&(e[18]+=65536),(o>11>16&&(3&e[2])===t){e[2]+=2048;try{a.call(o)}finally{}}}else try{a.call(o)}finally{}}var wt=function e(t,n,i){_classCallCheck(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function kt(e,t,n){for(var i=Me(e),r=0;rt){o=a-1;break}}}for(;a>16,i=t;n>0;)i=i[15],n--;return i}var Ot=!0;function xt(e){var t=Ot;return Ot=e,t}var Rt=0;function Dt(e,t){var n=Nt(e,t);if(-1!==n)return n;var i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,Pt(i.data,e),Pt(t,null),Pt(i.blueprint,null));var r=It(e,t),a=e.injectorIndex;if(St(r))for(var o=Et(r),s=zt(r,t),c=s[1].data,u=0;u<8;u++)t[a+u]=s[o+u]|c[o+u];return t[a+8]=r,a}function Pt(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Nt(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function It(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,i=null,r=t;null!==r;){var a=r[1],o=a.type;if(null===(i=2===o?a.declTNode:1===o?r[6]:null))return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function qt(e,t,n){!function(e,t,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(X)&&(i=n[X]),null==i&&(i=n[X]=Rt++);var r=255&i;t.data[e+(r>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:z.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==e){var a=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(X)?e[X]:void 0;return"number"==typeof t?t>=0?255&t:Ft:t}(n);if("function"==typeof a){if(!rt(t,e,i))return i&z.Host?Bt(r,n,i):Ht(t,n,i,r);try{var o=a(i);if(null!=o||i&z.Optional)return o;y(n)}finally{ut()}}else if("number"==typeof a){var s=null,c=Nt(e,t),u=-1,l=i&z.Host?t[16][6]:null;for((-1===c||i&z.SkipSelf)&&(-1!==(u=-1===c?It(e,t):t[c+8])&&Gt(i,!1)?(s=t[1],c=Et(u),t=zt(u,t)):c=-1);-1!==c;){var h=t[1];if(Zt(a,c,h.data)){var d=Wt(c,t,n,s,i,l);if(d!==jt)return d}-1!==(u=t[c+8])&&Gt(i,t[1].data[c+8]===l)&&Zt(a,c,t)?(s=h,c=Et(u),t=zt(u,t)):c=-1}}}return Ht(t,n,i,r)}var jt={};function Ft(){return new Xt(je(),Be())}function Wt(e,t,n,i,r,a){var o=t[1],s=o.data[e+8],c=Ut(s,o,n,null==i?he(s)&&Ot:i!=o&&0!=(3&s.type),r&z.Host&&a===s);return null!==c?Kt(t,o,c,s):jt}function Ut(e,t,n,i,r){for(var a=e.providerIndexes,o=t.data,s=1048575&a,c=e.directiveStart,u=a>>20,l=r?s+u:e.directiveEnd,h=i?s:s+u;h=c&&d.type===n)return h}if(r){var f=o[c];if(f&&fe(f)&&f.type===n)return c}return null}function Kt(e,t,n,i){var r=e[n],a=t.data;if(r instanceof wt){var o=r;o.resolving&&function(e,t){throw new m("200","Circular dependency in DI detected for ".concat(e))}(_(a[n]));var s=xt(o.canSeeViewProviders);o.resolving=!0;var c=o.injectImpl?O(o.injectImpl):null;rt(e,i,z.Default);try{r=e[n]=o.factory(void 0,a,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){var i=t.type.prototype,r=i.ngOnChanges,a=i.ngOnInit,o=i.ngDoCheck;if(r){var s=_e(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}a&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,a),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,a[n],t)}finally{null!==c&&O(c),xt(s),o.resolving=!1,ut()}}return r}function Zt(e,t,n){return!!(n[t+(e>>5)]&1<=e.length?e.push(n):e.splice(t,0,n)}function sn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function cn(e,t){for(var n=[],i=0;i=0?e[1|i]=n:function(e,t,n,i){var r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i=~i,t,n),i}function ln(e,t){var n=hn(e,t);if(n>=0)return e[1|n]}function hn(e,t){return function(e,t,n){for(var i=0,r=e.length>>1;r!==i;){var a=i+(r-i>>1),o=e[a<<1];if(t===o)return a<<1;o>t?r=a:i=a+1}return~(r<<1)}(e,t)}var dn,fn={},pn=/\n/gm,gn=c({provide:String,useValue:c});function mn(e){var t=dn;return dn=e,t}function vn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z.Default;if(void 0===dn)throw new Error("inject() must be called from an injection context");return null===dn?x(e,void 0,t):dn.get(e,t&z.Optional?null:void 0,t)}function _n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z.Default;return(C||vn)(p(e),t)}var yn=_n;function bn(e){for(var t=[],n=0;n"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();ti.hasOwnProperty(t)&&!Jn.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(ui(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML));return t}}]),e}(),si=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ci=/([^\#-~ |!])/g;function ui(e){return e.replace(/&/g,"&").replace(si,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(ci,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function li(e,t){var n=null;try{Vn=Vn||function(e){var t=new Wn(e);return function(){try{return!!(new window.DOMParser).parseFromString(Ln(""),"text/html")}catch(e){return!1}}()?new Fn(t):t}(e);var i=t?String(t):"";n=Vn.getInertBodyElement(i);var r=5,a=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=a,a=n.innerHTML,n=Vn.getInertBodyElement(i)}while(i!==a);return Ln((new oi).sanitizeChildren(hi(n)||n))}finally{if(n)for(var o=hi(n)||n;o.firstChild;)o.removeChild(o.firstChild)}}function hi(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var di=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function fi(e){var t=gi();return t?Sn(t.sanitize(di.HTML,e)||""):Nn(e,"HTML")?Sn(Pn(e)):li(ke(),v(e))}function pi(e){var t=gi();return t?t.sanitize(di.URL,e)||"":Nn(e,"URL")?Pn(e):Zn(v(e))}function gi(){var e=Be();return e&&e[12]}function mi(e,t){e.__ngContext__=t}function vi(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function _i(e){return e.ngDebugContext}function yi(e){return e.ngOriginalError}function bi(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i0&&(e[i-1][4]=r[4]);var o=sn(e,10+t);Vi(r[1],n=r,n[11],2,null,null),n[0]=null,n[6]=null;var s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function Ni(e,t){if(!(256&t[2])){var n=t[11];Me(n)&&n.destroyNode&&Vi(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Ii(e[1],e);for(;t;){var n=null;if(ce(t))n=t[13];else{var i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)ce(t)&&Ii(t[1],t),t=t[3];null===t&&(t=e),ce(t)&&Ii(t[1],t),n=t&&t[4]}t=n}}(t)}}function Ii(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var i=0;i=0?i[r=u]():i[r=-u].unsubscribe(),a+=2}else{var l=i[r=n[a+1]];n[a].call(l)}if(null!==i){for(var h=r+1;ha?"":r[l+1].toLowerCase();var d=8&i?h:null;if(d&&-1!==er(d,u,0)||2&i&&u!==h){if(ar(i))return!1;o=!0}}}}else{if(!o&&!ar(i)&&!ar(c))return!1;if(o&&ar(c))continue;o=!1,i=c|1&i}}return ar(i)||o}function ar(e){return 0==(1&e)}function or(e,t,n,i){if(null===t)return-1;var r=0;if(i||!n){for(var a=!1;r-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],i=0;i0?'="'+s+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""===r||ar(o)||(t+=ur(a,r),r=""),i=o,a=a||!ar(i);n++}return""!==r&&(t+=ur(a,r)),t}var hr={};function dr(e){fr(He(),Be(),ht()+e,Ze())}function fr(e,t,n,i){if(!i)if(3==(3&t[2])){var r=e.preOrderCheckHooks;null!==r&&vt(t,r,n)}else{var a=e.preOrderHooks;null!==a&&_t(t,a,0,n)}dt(n)}function pr(e,t){return e<<17|t<<2}function gr(e){return e>>17&32767}function mr(e){return 2|e}function vr(e){return(131068&e)>>2}function _r(e,t){return-131069&e|t<<2}function yr(e){return 1|e}function br(e,t){var n=e.contentQueries;if(null!==n)for(var i=0;i20&&fr(e,t,20,Ze()),n(i,r)}finally{dt(a)}}function Sr(e,t,n){if(le(t))for(var i=t.directiveEnd,r=t.directiveStart;r2&&void 0!==arguments[2]?arguments[2]:Se,i=t.localNames;if(null!==i)for(var r=t.index+1,a=0;a0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=c&&s.push(c),s.push(i,r,o)}}function qr(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Br(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Hr(e,t,n){if(n){if(t.exportAs)for(var i=0;i0&&Xr(n)}}function Xr(e){for(var t=Ei(e);null!==t;t=zi(t))for(var n=10;n0&&Xr(i)}var a=e[1].components;if(null!==a)for(var o=0;o0&&Xr(s)}}function Vr(e,t){var n=Oe(t,e),i=n[1];!function(e,t){for(var n=t.length;n1&&void 0!==arguments[1]?arguments[1]:fn;if(t===fn){var n=new Error("NullInjectorError: No provider for ".concat(l(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),fa=new en("Set Injector scope."),pa={},ga={};function ma(){return void 0===la&&(la=new da),la}function va(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new _a(e,n,t||ma(),i)}var _a=function(){function e(t,n,i){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var o=[];n&&an(n,function(e){return r.processProvider(e,t,n)}),an([t],function(e){return r.processInjectorType(e,[],o)}),this.records.set(ha,Aa(void 0,this));var s=this.records.get(fa);this.scope=null!=s?s.value:null,this.source=a||("object"==typeof t?null:l(t))}return _createClass(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fn,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:z.Default;this.assertNotDestroyed();var i,r=mn(this);try{if(!(n&z.SkipSelf)){var a=this.records.get(e);if(void 0===a){var o=("function"==typeof(i=e)||"object"==typeof i&&i instanceof en)&&w(e);a=o&&this.injectableDefInScope(o)?Aa(ya(e),pa):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(n&z.Self?ma():this.parent).get(e,t=n&z.Optional&&t===fn?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(l(e)),r)throw s;return function(e,t,n,i){var r=e.ngTempTokenPath;throw t.__source&&r.unshift(t.__source),e.message=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var r=l(t);if(Array.isArray(t))r=t.map(l).join(" -> ");else if("object"==typeof t){var a=[];for(var o in t)if(t.hasOwnProperty(o)){var s=t[o];a.push(o+":"+("string"==typeof s?JSON.stringify(s):l(s)))}r="{".concat(a.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(e.replace(pn,"\n "))}("\n"+e.message,r,"R3InjectorError",i),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(s,e,0,this.source)}throw s}finally{mn(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(l(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var i=this;if(!(e=p(e)))return!1;var r=M(e),a=null==r&&e.ngModule||void 0,o=void 0===a?e:a,s=-1!==n.indexOf(o);if(void 0!==a&&(r=M(a)),null==r)return!1;if(null!=r.imports&&!s){var c;n.push(o);try{an(r.imports,function(e){i.processInjectorType(e,t,n)&&(void 0===c&&(c=[]),c.push(e))})}finally{}if(void 0!==c)for(var u=function(e){var t=c[e],n=t.ngModule,r=t.providers;an(r,function(e){return i.processProvider(e,n,r||j)})},l=0;l0){var n=cn(t,"?");throw new Error("Can't resolve all parameters for ".concat(l(e),": (").concat(n.join(", "),")."))}var i=function(e){var t=e&&(e[T]||e[S]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "').concat(n,'" class.')),t}return null}(e);return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function ba(e,t,n){var i,r;if(ka(e)){var a=p(e);return pe(a)||ya(a)}if(wa(e))i=function(){return p(e.useValue)};else if((r=e)&&r.useFactory)i=function(){return e.useFactory.apply(e,_toConsumableArray(bn(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))i=function(){return _n(p(e.useExisting))};else{var o=p(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return pe(o)||ya(o);i=function(){return _construct(o,_toConsumableArray(bn(e.deps)))}}return i}function Aa(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function wa(e){return null!==e&&"object"==typeof e&&gn in e}function ka(e){return"function"==typeof e}var Ma=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,r=va(e,t,n,i);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)},Ca=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?Ma(e,t,""):Ma(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=fn,e.NULL=new da,e.\u0275prov=b({token:e,providedIn:"any",factory:function(){return _n(ha)}}),e.__NG_ELEMENT_ID__=-1,e}();function Ta(e,t){mt(vi(e)[1],je())}function La(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,i=[e];t;){var r=void 0;if(fe(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);var a=e;a.inputs=Sa(e.inputs),a.declaredInputs=Sa(e.declaredInputs),a.outputs=Sa(e.outputs);var o=r.hostBindings;o&&Oa(e,o);var s=r.viewQuery,c=r.contentQueries;if(s&&Ea(e,s),c&&za(e,c),u(e.inputs,r.inputs),u(e.declaredInputs,r.declaredInputs),u(e.outputs,r.outputs),fe(r)&&r.data.animation){var l=e.data;l.animation=(l.animation||[]).concat(r.data.animation)}}var h=r.features;if(h)for(var d=0;d=0;i--){var r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Tt(r.hostAttrs,n=Tt(n,r.hostAttrs))}}(i)}function Sa(e){return e===Y?{}:e===j?[]:e}function Ea(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,i){t(e,i),n(e,i)}:t}function za(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,i,r){t(e,i,r),n(e,i,r)}:t}function Oa(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,i){t(e,i),n(e,i)}:t}var xa=null;function Ra(){if(!xa){var e=H.Symbol;if(e&&e.iterator)xa=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:z.Default,n=Be();return null===n?_n(e,t):Yt(je(),n,p(e),t)}function Za(){throw new Error("invalid")}function Ga(e,t,n){var i=Be();return qa(i,Je(),t)&&Pr(He(),ft(),i,e,t,i[11],n,!1),Ga}function Xa(e,t,n,i,r){var a=r?"class":"style";sa(e,n,t.inputs[a],a,i)}function Va(e,t,n,i){var r=Be(),a=He(),o=20+e,s=r[11],c=r[o]=Ri(s,t,Ie.lFrame.currentNamespace),u=a.firstCreatePass?function(e,t,n,i,r,a,o){var s=t.consts,c=wr(t,e,2,r,De(s,a));return Nr(t,n,c,De(s,o)),null!==c.attrs&&ua(c,c.attrs,!1),null!==c.mergedAttrs&&ua(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(o,a,r,0,t,n,i):a.data[o];We(u,!0);var l=u.mergedAttrs;null!==l&&kt(s,c,l);var h=u.classes;null!==h&&$i(s,c,h);var d=u.styles;null!==d&&Qi(s,c,d),64!=(64&u.flags)&&Ui(a,r,c,u),0===Ie.lFrame.elementDepthCount&&mi(c,r),Ie.lFrame.elementDepthCount++,de(u)&&(Er(a,r,u),Sr(a,u,r)),null!==i&&zr(r,u)}function Ja(){var e=je();Ue()?Ke():We(e=e.parent,!1);var t=e;Ie.lFrame.elementDepthCount--;var n=He();n.firstCreatePass&&(mt(n,e),le(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Xa(n,t,Be(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Xa(n,t,Be(),t.stylesWithoutHost,!1)}function Qa(e,t,n,i){Va(e,t,n,i),Ja()}function $a(e,t,n){var i=Be(),r=He(),a=e+20,o=r.firstCreatePass?function(e,t,n,i,r){var a=t.consts,o=De(a,i),s=wr(t,e,8,"ng-container",o);return null!==o&&ua(s,o,!0),Nr(t,n,s,De(a,r)),null!==t.queries&&t.queries.elementStart(t,s),s}(a,r,i,t,n):r.data[a];We(o,!0);var s=i[a]=i[11].createComment("");Ui(r,i,s,o),mi(s,i),de(o)&&(Er(r,i,o),Sr(r,o,i)),null!=n&&zr(i,o)}function eo(){var e=je(),t=He();Ue()?Ke():We(e=e.parent,!1),t.firstCreatePass&&(mt(t,e),le(e)&&t.queries.elementEnd(e))}function to(e,t,n){$a(e,t,n),eo()}function no(){return Be()}function io(e){return!!e&&"function"==typeof e.then}function ro(e){return!!e&&"function"==typeof e.subscribe}var ao=ro;function oo(e,t,n,i){var r=Be(),a=He(),o=je();return co(a,r,r[11],o,e,t,!!n,i),oo}function so(e,t){var n=je(),i=Be(),r=He();return co(r,i,aa(et(r.data),n,i),n,e,t,!1),so}function co(e,t,n,i,r,a,o,s){var c=de(i),u=e.firstCreatePass&&ra(e),l=ia(t),h=!0;if(3&i.type||s){var d=Se(i,t),f=s?s(d):d,p=l.length,g=s?function(e){return s(Te(e[i.index]))}:i.index;if(Me(n)){var m=null;if(!s&&c&&(m=function(e,t,n,i){var r=e.cleanup;if(null!=r)for(var a=0;ac?s[c]:null}"string"==typeof o&&(a+=2)}return null}(e,t,r,i.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=a,m.__ngLastListenerFn__=a,h=!1;else{a=lo(i,t,0,a,!1);var v=n.listen(f,r,a);l.push(a,v),u&&u.push(r,g,p,p+1)}}else a=lo(i,t,0,a,!0),f.addEventListener(r,a,o),l.push(a),u&&u.push(r,g,p,o)}else a=lo(i,t,0,a,!1);var _,y=i.outputs;if(h&&null!==y&&(_=y[r])){var b=_.length;if(b)for(var A=0;A0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(Ie.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Ie.lFrame.contextLView))[8]}(e)}function fo(e,t){for(var n=null,i=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=Be(),r=He(),a=wr(r,20+e,16,null,n||null);null===a.projection&&(a.projection=t),Ke(),64!=(64&a.flags)&&function(e,t,n){Ji(t[11],0,t,n,qi(e,n,t),Fi(n.parent||t[6],n,t))}(r,i,a)}function mo(e,t,n){return vo(e,"",t,"",n),mo}function vo(e,t,n,i,r){var a=Be(),o=Ya(a,t,n,i);return o!==hr&&Pr(He(),ft(),a,e,o,a[11],r,!1),vo}function _o(e,t,n,i,r,a,o){var s=Be(),c=ja(s,t,n,i,r,a);return c!==hr&&Pr(He(),ft(),s,e,c,s[11],o,!1),_o}function yo(e,t,n,i,r){for(var a=e[n+1],o=null===t,s=i?gr(a):vr(a),c=!1;0!==s&&(!1===c||o);){var u=e[s+1];bo(e[s],t)&&(c=!0,e[s+1]=i?yr(u):mr(u)),s=i?gr(u):vr(u)}c&&(e[n+1]=i?mr(a):yr(a))}function bo(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&hn(e,t)>=0}var Ao={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function wo(e){return e.substring(Ao.key,Ao.keyEnd)}function ko(e,t){var n=Ao.textEnd;return n===t?-1:(t=Ao.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,Ao.key=t,n),Mo(e,t,n))}function Mo(e,t,n){for(;t=0;n=ko(t,n))un(e,wo(t),!0)}function Eo(e,t,n,i){var r=Be(),a=He(),o=Qe(2);a.firstUpdatePass&&xo(a,e,o,i),t!==hr&&qa(r,o,t)&&Po(a,a.data[ht()],r,r[11],e,r[o+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=l(Pn(e)))),e}(t,n),i,o)}function zo(e,t,n,i){var r=He(),a=Qe(2);r.firstUpdatePass&&xo(r,null,a,i);var o=Be();if(n!==hr&&qa(o,a,n)){var s=r.data[ht()];if(qo(s,i)&&!Oo(r,a)){var c=i?s.classesWithoutHost:s.stylesWithoutHost;null!==c&&(n=h(c,n||"")),Xa(r,s,o,n,i)}else!function(e,t,n,i,r,a,o,s){r===hr&&(r=j);for(var c=0,u=0,l=0=e.expandoStartIndex}function xo(e,t,n,i){var r=e.data;if(null===r[n+1]){var a=r[ht()],o=Oo(e,n);qo(a,i)&&null===t&&!o&&(t=!1),t=function(e,t,n,i){var r=et(e),a=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=Do(n=Ro(null,e,t,n,i),t.attrs,i),a=null);else{var o=t.directiveStylingLast;if(-1===o||e[o]!==r)if(n=Ro(r,e,t,n,i),null===a){var s=function(e,t,n){var i=n?t.classBindings:t.styleBindings;if(0!==vr(i))return e[gr(i)]}(e,t,i);void 0!==s&&Array.isArray(s)&&function(e,t,n,i){e[gr(n?t.classBindings:t.styleBindings)]=i}(e,t,i,s=Do(s=Ro(null,e,t,s[1],i),t.attrs,i))}else a=function(e,t,n){for(var i,r=t.directiveEnd,a=1+t.directiveStylingLast;a0)&&(l=!0)}else u=n;if(r)if(0!==c){var d=gr(e[s+1]);e[i+1]=pr(d,s),0!==d&&(e[d+1]=_r(e[d+1],i)),e[s+1]=131071&e[s+1]|i<<17}else e[i+1]=pr(s,0),0!==s&&(e[s+1]=_r(e[s+1],i)),s=i;else e[i+1]=pr(c,0),0===s?s=i:e[c+1]=_r(e[c+1],i),c=i;l&&(e[i+1]=mr(e[i+1])),yo(e,u,i,!0),yo(e,u,i,!1),function(e,t,n,i,r){var a=r?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof t&&hn(a,t)>=0&&(n[i+1]=yr(n[i+1]))}(t,u,e,i,a),o=pr(s,c),a?t.classBindings=o:t.styleBindings=o}(r,a,t,n,o,i)}}function Ro(e,t,n,i,r){var a=null,o=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var c=e[r],u=Array.isArray(c),l=u?c[1]:c,h=null===l,d=n[r+1];d===hr&&(d=h?j:void 0);var f=h?ln(d,i):l===i?d:void 0;if(u&&!Io(f)&&(f=ln(c,i)),Io(f)&&(o=f,s))return o;var p=e[r+1];r=s?gr(p):vr(p)}if(null!==t){var g=a?t.residualClasses:t.residualStyles;null!=g&&(o=ln(g,i))}return o}function Io(e){return void 0!==e}function qo(e,t){return 0!=(e.flags&(t?16:32))}function Bo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Be(),i=He(),r=e+20,a=i.firstCreatePass?wr(i,r,1,t,null):i.data[r],o=n[r]=function(e,t){return Me(e)?e.createText(t):e.createTextNode(t)}(n[11],t);Ui(i,n,o,a),We(a,!1)}function Ho(e){return Yo("",e,""),Ho}function Yo(e,t,n){var i=Be(),r=Ya(i,e,t,n);return r!==hr&&ca(i,ht(),r),Yo}function jo(e,t,n,i,r){var a=Be(),o=ja(a,e,t,n,i,r);return o!==hr&&ca(a,ht(),o),jo}function Fo(e,t,n,i,r,a,o,s,c,u,l){var h=Be(),d=function(e,t,n,i,r,a,o,s,c,u,l,h){var d=Ve(),f=function(e,t,n,i,r,a){var o=Ba(e,t,n,i);return Ba(e,t+2,r,a)||o}(e,d,n,r,o,c);return f=qa(e,d+4,l)||f,Qe(5),f?t+v(n)+i+v(r)+a+v(o)+s+v(c)+u+v(l)+h:hr}(h,e,t,n,i,r,a,o,s,c,u,l);return d!==hr&&ca(h,ht(),d),Fo}function Wo(e,t,n){zo(un,So,Ya(Be(),e,t,n),!0)}function Uo(e,t,n){var i=Be();return qa(i,Je(),t)&&Pr(He(),ft(),i,e,t,i[11],n,!0),Uo}function Ko(e,t,n){var i=Be();if(qa(i,Je(),t)){var r=He(),a=ft();Pr(r,a,i,e,t,aa(et(r.data),a,i),n,!0)}return Ko}var Zo=void 0,Go=["en",[["a","p"],["AM","PM"],Zo],[["AM","PM"],Zo,Zo],[["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"]],Zo,[["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"]],Zo,[["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}",Zo,"{1} 'at' {0}",Zo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Xo={};function Vo(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=Qo(t);if(n)return n;var i=t.split("-")[0];if(n=Qo(i))return n;if("en"===i)return Go;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}function Jo(e){return Vo(e)[$o.PluralCase]}function Qo(e){return e in Xo||(Xo[e]=H.ng&&H.ng.common&&H.ng.common.locales&&H.ng.common.locales[e]),Xo[e]}var $o=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});function es(e){var t;null==(t=e)&&function(e,t,n,i){throw new Error("ASSERTION ERROR: ".concat("Expected localeId to be defined"," [Expected=> null != ").concat(t," <=Actual]"))}(0,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function ts(e,t,n,i,r){if(e=p(e),Array.isArray(e))for(var a=0;a>20;if(ka(e)||!e.multi){var g=new wt(u,r,Ka),m=rs(c,t,r?h:h+f,d);-1===m?(qt(Dt(l,s),o,c),ns(o,e,t.length),t.push(c),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(g),s.push(g)):(n[m]=g,s[m]=g)}else{var v=rs(c,t,h+f,d),_=rs(c,t,h,h+f),y=v>=0&&n[v],b=_>=0&&n[_];if(r&&!b||!r&&!y){qt(Dt(l,s),o,c);var A=function(e,t,n,i,r){var a=new wt(e,n,Ka);return a.multi=[],a.index=t,a.componentProviders=0,is(a,r,i&&!n),a}(r?os:as,n.length,r,i,u);!r&&b&&(n[_].providerFactory=A),ns(o,e,t.length,0),t.push(c),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(A),s.push(A)}else ns(o,e,v>-1?v:_,is(n[r?_:v],u,!r&&i));!r&&i&&b&&n[_].componentProviders++}}}function ns(e,t,n,i){var r=ka(t);if(r||t.useClass){var a=(t.useClass||t).prototype.ngOnDestroy;if(a){var o=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){var s=o.indexOf(n);-1===s?o.push(n,[i,a]):o[s+1].push(i,a)}else o.push(n,a)}}}function is(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function rs(e,t,n,i){for(var r=n;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return function(e,t,n){var i=He();if(i.firstCreatePass){var r=fe(e);ts(n,i.data,i.blueprint,r,!0),ts(t,i.data,i.blueprint,r,!1)}}(n,i?i(e):e,t)}}}var us=function e(){_classCallCheck(this,e)},ls=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(l(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),hs=function(){var e=function e(){_classCallCheck(this,e)};return e.NULL=new ls,e}();function ds(){}function fs(e,t){return new gs(Se(e,t))}var ps=function(){return fs(je(),Be())},gs=function(){var e=function e(t){_classCallCheck(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=ps,e}();function ms(e){return e instanceof gs?e.nativeElement:e}var vs=function e(){_classCallCheck(this,e)},_s=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return ys()},e}(),ys=function(){var e=Be(),t=Oe(je().index,e);return function(e){return e[11]}(ce(t)?t:e)},bs=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275prov=b({token:e,providedIn:"root",factory:function(){return null}}),e}(),As=function e(t){_classCallCheck(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},ws=new As("12.0.5"),ks=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"supports",value:function(e){return Pa(e)}},{key:"create",value:function(e){return new Cs(e)}}]),e}(),Ms=function(e,t){return t},Cs=function(){function e(t){_classCallCheck(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Ms}return _createClass(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,i=0,r=null;t||n;){var a=!n||t&&t.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==n;){var a=t[n.index];if(null!==a&&i.push(Te(a)),ue(a))for(var o=10;o-1&&(Pi(e,n),sn(t,n))}this._attachedToViewContainer=!1}Ni(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){Rr(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){Qr(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){$r(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){Ge(!0);try{$r(e,t,n)}finally{Ge(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,Vi(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}]),e}(),Bs=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e))._view=e,i}return _createClass(n,[{key:"detectChanges",value:function(){ea(this._view)}},{key:"checkNoChanges",value:function(){!function(e){Ge(!0);try{ea(e)}finally{Ge(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(qs),Hs=function(e){return function(e,t,n){if(he(e)&&!n){var i=Oe(e.index,t);return new qs(i,i)}return 47&e.type?new qs(t[16],t):null}(je(),Be(),16==(16&e))},Ys=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=Hs,e}(),js=[new zs],Fs=new Ds([new ks]),Ws=new Ns(js),Us=function(){return Gs(je(),Be())},Ks=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=Us,e}(),Zs=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this))._declarationLView=e,a._declarationTContainer=i,a.elementRef=r,a}return _createClass(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=Ar(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),Mr(t,n,e),new qs(n)}}]),n}(Ks);function Gs(e,t){return 4&e.type?new Zs(t,e,fs(e,t)):null}var Xs=function e(){_classCallCheck(this,e)},Vs=function e(){_classCallCheck(this,e)},Js=function(){return nc(je(),Be())},Qs=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=Js,e}(),$s=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this))._lContainer=e,a._hostTNode=i,a._hostLView=r,a}return _createClass(n,[{key:"element",get:function(){return fs(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new Xt(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=It(this._hostTNode,this._hostLView);if(St(e)){var t=zt(e,this._hostLView),n=Et(e);return new Xt(t[1].data[n+8],t)}return new Xt(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=ec(this._lContainer);return null!==t&&t[e]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i}},{key:"createComponent",value:function(e,t,n,i,r){var a=n||this.parentInjector;if(!r&&null==e.ngModule&&a){var o=a.get(Xs,null);o&&(r=o)}var s=e.create(a,i,void 0,r);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var i=e._lView,r=i[1];if(ue(i[3])){var a=this.indexOf(e);if(-1!==a)this.detach(a);else{var o=i[3],s=new n(o,o[6],o[3]);s.detach(s.indexOf(e))}}var c=this._adjustIndex(t),u=this._lContainer;!function(e,t,n,i){var r=10+i,a=n.length;i>0&&(n[r-1][4]=t),i1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}}]),n}(Qs);function ec(e){return e[8]}function tc(e){return e[8]||(e[8]=[])}function nc(e,t){var n,i=t[e.index];if(ue(i))n=i;else{var r;if(8&e.type)r=Te(i);else{var a=t[11];r=a.createComment("");var o=Se(e,t);Bi(a,ji(a,o),r,function(e,t){return Me(e)?e.nextSibling(t):t.nextSibling}(a,o),!1)}t[e.index]=n=Zr(i,t,r,e),Jr(t,n)}return new $s(n,e,t)}var ic={},rc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).ngModule=e,i}return _createClass(n,[{key:"resolveComponentFactory",value:function(e){var t=oe(e);return new sc(t,this.ngModule)}}]),n}(hs);function ac(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var oc=new en("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return wi}}),sc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this)).componentDef=e,r.ngModule=i,r.componentType=e.type,r.selector=e.selectors.map(lr).join(","),r.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],r.isBoundToModule=!!i,r}return _createClass(n,[{key:"inputs",get:function(){return ac(this.componentDef.inputs)}},{key:"outputs",get:function(){return ac(this.componentDef.outputs)}},{key:"create",value:function(e,t,n,i){var r,a,o=(i=i||this.ngModule)?function(e,t){return{get:function(n,i,r){var a=e.get(n,ic,r);return a!==ic||i===ic?a:t.get(n,i,r)}}}(e,i.injector):e,s=o.get(vs,Ce),c=o.get(bs,null),u=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",h=n?function(e,t,n){if(Me(e))return e.selectRootElement(t,n===P.ShadowDom);var i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(u,n,this.componentDef.encapsulation):Ri(s.createRenderer(null,this.componentDef),l,function(e){var t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(l)),d=this.componentDef.onPush?576:528,f={components:[],scheduler:wi,clean:na,playerHandler:null,flags:0},p=xr(0,null,null,1,0,null,null,null,null,null),g=Ar(null,p,f,d,null,null,s,u,c,o);at(g);try{var m=function(e,t,n,i,r,a){var o=n[1];n[20]=e;var s=wr(o,20,2,"#host",null),c=s.mergedAttrs=t.hostAttrs;null!==c&&(ua(s,c,!0),null!==e&&(kt(r,e,c),null!==s.classes&&$i(r,e,s.classes),null!==s.styles&&Qi(r,e,s.styles)));var u=i.createRenderer(e,t),l=Ar(n,Or(t),null,t.onPush?64:16,n[20],s,i,u,null,null);return o.firstCreatePass&&(qt(Dt(s,n),o,t.type),Br(o,s),Yr(s,n.length,1)),Jr(n,l),n[20]=l}(h,this.componentDef,g,s,u);if(h)if(n)kt(u,h,["ng-version",ws.full]);else{var v=function(e){for(var t=[],n=[],i=1,r=2;i0&&$i(u,h,y.join(" "))}if(a=Ee(p,20),void 0!==t)for(var b=a.projection=[],A=0;A1&&void 0!==arguments[1]?arguments[1]:Ca.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:z.Default;return e===Ca||e===Xs||e===ha?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(Xs),hc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i,r,a;return _classCallCheck(this,n),(i=t.call(this)).moduleType=e,null!==se(e)&&(r=e,a=new Set,function e(t){var n=se(t,!0),i=n.id;null!==i&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(l(t)," vs ").concat(l(t.name)))}(i,uc.get(i),t),uc.set(i,t));var r,o=_createForOfIteratorHelper(Ci(n.imports));try{for(o.s();!(r=o.n()).done;){var s=r.value;a.has(s)||(a.add(s),e(s))}}catch(c){o.e(c)}finally{o.f()}}(r)),i}return _createClass(n,[{key:"create",value:function(e){return new lc(this.moduleType,e)}}]),n}(Vs);function dc(e,t,n){var i=Xe()+e,r=Be();return r[i]===hr?Ia(r,i,n?t.call(n):t()):function(e,t){return e[t]}(r,i)}function fc(e,t,n,i){return mc(Be(),Xe(),e,t,n,i)}function pc(e,t,n,i,r){return vc(Be(),Xe(),e,t,n,i,r)}function gc(e,t){var n=e[t];return n===hr?void 0:n}function mc(e,t,n,i,r,a){var o=t+n;return qa(e,o,r)?Ia(e,o+1,a?i.call(a,r):i(r)):gc(e,o+1)}function vc(e,t,n,i,r,a,o){var s=t+n;return Ba(e,s,r,a)?Ia(e,s+2,o?i.call(o,r,a):i(r,a)):gc(e,s+2)}function _c(e,t){var n,i=He(),r=e+20;i.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var i=t[n];if(e===i.name)return i}throw new m("302","The pipe '".concat(e,"' could not be found!"))}(t,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var a=n.factory||(n.factory=pe(n.type)),o=O(Ka);try{var s=xt(!1),c=a();return xt(s),function(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(i,Be(),r,c),c}finally{O(o)}}function yc(e,t,n){var i=e+20,r=Be(),a=ze(r,i);return kc(r,wc(r,i)?mc(r,Xe(),t,a.transform,n,a):a.transform(n))}function bc(e,t,n,i){var r=e+20,a=Be(),o=ze(a,r);return kc(a,wc(a,r)?vc(a,Xe(),t,o.transform,n,i,o):o.transform(n,i))}function Ac(e,t,n,i,r){var a=e+20,o=Be(),s=ze(o,a);return kc(o,wc(o,a)?function(e,t,n,i,r,a,o,s){var c=t+n;return function(e,t,n,i,r){var a=Ba(e,t,n,i);return qa(e,t+2,r)||a}(e,c,r,a,o)?Ia(e,c+3,s?i.call(s,r,a,o):i(r,a,o)):gc(e,c+3)}(o,Xe(),t,s.transform,n,i,r,s):s.transform(n,i,r))}function wc(e,t){return e[1].data[t].pure}function kc(e,t){return Da.isWrapped(t)&&(t=Da.unwrap(t),e[Ve()]=hr),t}function Mc(e){return function(t){setTimeout(e,void 0,t)}}var Cc=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return _classCallCheck(this,n),(e=t.call(this)).__isAsync=i,e}return _createClass(n,[{key:"emit",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,i){var a,o,s,c=e,u=t||function(){return null},l=i;if(e&&"object"==typeof e){var h=e;c=null===(a=h.next)||void 0===a?void 0:a.bind(h),u=null===(o=h.error)||void 0===o?void 0:o.bind(h),l=null===(s=h.complete)||void 0===s?void 0:s.bind(h)}this.__isAsync&&(u=Mc(u),c&&(c=Mc(c)),l&&(l=Mc(l)));var d=_get(_getPrototypeOf(n.prototype),"subscribe",this).call(this,{next:c,error:u,complete:l});return e instanceof r.w&&e.add(d),d}}]),n}(i.xQ);function Tc(){return this._results[Ra()]()}var Lc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];_classCallCheck(this,e),this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=Ra(),i=e.prototype;i[n]||(i[n]=Tc)}return _createClass(e,[{key:"changes",get:function(){return this._changes||(this._changes=new Cc)}},{key:"get",value:function(e){return this._results[e]}},{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e,t){this.dirty=!1;var n=rn(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,r=[],a=0;a2&&void 0!==arguments[2]?arguments[2]:null;_classCallCheck(this,e),this.predicate=t,this.flags=n,this.read=i},Oc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;_classCallCheck(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return _createClass(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i0)i.push(o[s/2]);else{for(var u=a[s+1],l=t[-c],h=10;h0&&(r=setTimeout(function(){i._callbacks=i._callbacks.filter(function(e){return e.timeoutId!==r}),e(i._didWork,i.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!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(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_n(du))},e.\u0275prov=b({token:e,factory:e.\u0275fac}),e}(),bu=function(){var e=function(){function e(){_classCallCheck(this,e),this._applications=new Map,ku.addToWindow(this)}return _createClass(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return ku.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac}),e}();function Au(e){ku=e}var wu,ku=new(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),Mu=!0,Cu=!1;function Tu(){return Cu=!0,Mu}function Lu(){if(Cu)throw new Error("Cannot enable prod mode after platform setup.");Mu=!1}var Su=new en("AllowMultipleToken"),Eu=function e(t,n){_classCallCheck(this,e),this.name=t,this.token=n};function zu(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: ".concat(t),r=new en(i);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=Ou();if(!a||a.injector.get(Su,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{var o=n.concat(t).concat({provide:r,useValue:!0},{provide:fa,useValue:"platform"});!function(e){if(wu&&!wu.destroyed&&!wu.injector.get(Su,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");wu=e.get(xu);var t=e.get(Vc,null);t&&t.forEach(function(e){return e()})}(Ca.create({providers:o,name:i}))}return function(e){var t=Ou();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function Ou(){return wu&&!wu.destroyed?wu:null}var xu=function(){var e=function(){function e(t){_classCallCheck(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return _createClass(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,i,r=this,a=(n=t?t.ngZone:void 0,i={ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1},"noop"===n?new _u:("zone.js"===n?void 0:n)||new du({enableLongStackTrace:Tu(),shouldCoalesceEventChangeDetection:!!(null==i?void 0:i.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==i?void 0:i.ngZoneRunCoalescing)})),o=[{provide:du,useValue:a}];return a.run(function(){var t=Ca.create({providers:o,parent:r.injector,name:e.moduleType.name}),n=e.create(t),i=n.injector.get(Ai,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(function(){var e=a.onError.subscribe({next:function(e){i.handleError(e)}});n.onDestroy(function(){Pu(r._modules,n),e.unsubscribe()})}),function(e,t,i){try{var a=((o=n.injector.get(Kc)).runInitializers(),o.donePromise.then(function(){return es(n.injector.get(eu,"en-US")||"en-US"),r._moduleDoBootstrap(n),n}));return io(a)?a.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):a}catch(s){throw t.runOutsideAngular(function(){return e.handleError(s)}),s}var o}(i,a)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=Ru({},n);return function(e,t,n){var i=new hc(n);return Promise.resolve(i)}(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,i)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(Du);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(l(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_n(Ca))},e.\u0275prov=b({token:e,factory:e.\u0275fac}),e}();function Ru(e,t){return Array.isArray(t)?t.reduce(Ru,e):Object.assign(Object.assign({},e),t)}var Du=function(){var e=function(){function e(t,n,i,r,c){var u=this;_classCallCheck(this,e),this._zone=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){u._zone.run(function(){u.tick()})}});var l=new a.y(function(e){u._stable=u._zone.isStable&&!u._zone.hasPendingMacrotasks&&!u._zone.hasPendingMicrotasks,u._zone.runOutsideAngular(function(){e.next(u._stable),e.complete()})}),h=new a.y(function(e){var t;u._zone.runOutsideAngular(function(){t=u._zone.onStable.subscribe(function(){du.assertNotInAngularZone(),hu(function(){u._stable||u._zone.hasPendingMacrotasks||u._zone.hasPendingMicrotasks||(u._stable=!0,e.next(!0))})})});var n=u._zone.onUnstable.subscribe(function(){du.assertInAngularZone(),u._stable&&(u._stable=!1,u._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=(0,o.T)(l,h.pipe((0,s.B)()))}return _createClass(e,[{key:"bootstrap",value:function(e,t){var n,i=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof us?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(Xs),a=n.create(Ca.NULL,[],t||n.selector,r),o=a.location.nativeElement,s=a.injector.get(yu,null),c=s&&a.injector.get(bu);return s&&c&&c.registerApplication(o,s),a.onDestroy(function(){i.detachView(a.hostView),Pu(i.components,a),c&&c.unregisterApplication(o)}),this._loadComponent(a),a}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=_createForOfIteratorHelper(this._views);try{for(n.s();!(t=n.n()).done;){t.value.detectChanges()}}catch(i){n.e(i)}finally{n.f()}}catch(r){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(r)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;Pu(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Qc,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_n(du),_n(Ca),_n(Ai),_n(hs),_n(Kc))},e.\u0275prov=b({token:e,factory:e.\u0275fac}),e}();function Pu(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Nu=function e(){_classCallCheck(this,e)},Iu=function e(){_classCallCheck(this,e)},qu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Bu=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._compiler=t,this._config=n||qu}return _createClass(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,i=_slicedToArray(e.split("#"),2),r=i[0],a=i[1];return void 0===a&&(a="default"),n(1730)(r).then(function(e){return e[a]}).then(function(e){return Hu(e,r,a)}).then(function(e){return t._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(e){var t=_slicedToArray(e.split("#"),2),i=t[0],r=t[1],a="NgFactory";return void 0===r&&(r="default",a=""),n(1730)(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(e){return e[r+a]}).then(function(e){return Hu(e,i,r)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_n(uu),_n(Iu,8))},e.\u0275prov=b({token:e,factory:e.\u0275fac}),e}();function Hu(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var Yu=function(e){return null},ju=zu(null,"core",[{provide:Jc,useValue:"unknown"},{provide:xu,deps:[Ca]},{provide:bu,deps:[]},{provide:$c,deps:[]}]),Fu=[{provide:Du,useClass:Du,deps:[du,Ca,Ai,hs,Kc]},{provide:oc,deps:[du],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:Kc,useClass:Kc,deps:[[new Cn,Uc]]},{provide:uu,useClass:uu,deps:[]},Gc,{provide:Ds,useFactory:function(){return Fs},deps:[]},{provide:Ns,useFactory:function(){return Ws},deps:[]},{provide:eu,useFactory:function(e){return es(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new Mn(eu),new Cn,new Tn]]},{provide:tu,useValue:"USD"}],Wu=function(){var e=function e(t){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)(_n(Du))},e.\u0275mod=te({type:e}),e.\u0275inj=A({providers:Fu}),e}()},2623:function _(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{zr:function(){return OAuthModule},Ct:function(){return OAuthService}});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1572),_angular_common__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(1511),_angular_common_http__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(9063),tslib__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(7632),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5959),rxjs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(878),rxjs__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(9764),rxjs__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(3875),rxjs__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(1225),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(1305),rxjs__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(1906),rxjs_operators__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3835),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6599),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(7701),rxjs_operators__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(509),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(4689),rxjs_operators__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(9996),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(3530),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(7727),rxjs_operators__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(9085),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(611),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(3982);module=__webpack_require__.hmd(module);var DateTimeProvider=function e(){_classCallCheck(this,e)},SystemDateTimeProvider=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"now",value:function(){return Date.now()}},{key:"new",value:function(){return new Date}}]),n}(DateTimeProvider);return t.\u0275fac=function(n){return(e||(e=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(t)))(n||t)},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:t,factory:t.\u0275fac}),t}(),LoginOptions=function e(){_classCallCheck(this,e),this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1},OAuthLogger=function e(){_classCallCheck(this,e)},OAuthStorage=function e(){_classCallCheck(this,e)},MemoryStorage=function(){var e=function(){function e(){_classCallCheck(this,e),this.data=new Map}return _createClass(e,[{key:"getItem",value:function(e){return this.data.get(e)}},{key:"removeItem",value:function(e){this.data.delete(e)}},{key:"setItem",value:function(e,t){this.data.set(e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:e,factory:e.\u0275fac}),e}(),ReceivedTokens=function e(){_classCallCheck(this,e)};function b64DecodeUnicode(e){var t=e.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(t).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(e){return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}var ValidationHandler=function e(){_classCallCheck(this,e)},AbstractValidationHandler=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"validateAtHash",value:function(e){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n,i,r,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.inferHashAlgorithm(e.idTokenHeader),t.next=3,this.calcHash(e.accessToken,n);case 3:return i=t.sent,r=base64UrlEncode(i.substr(0,i.length/2)),a=e.idTokenClaims.at_hash.replace(/=/g,""),t.abrupt("return",(r!==a&&(console.error("exptected at_hash: "+r),console.error("actual at_hash: "+a)),r===a));case 7:case"end":return t.stop()}},t,this)}))}},{key:"inferHashAlgorithm",value:function(e){var t=e.alg;if(!t.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+t);return"sha-"+t.substr(2)}}]),e}(),UrlHelperService=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"getHashFragmentParams",value:function(e){var t=e||window.location.hash;if(0!==(t=decodeURIComponent(t)).indexOf("#"))return{};var n=t.indexOf("?");return t=t.substr(n>-1?n+1:1),this.parseQueryString(t)}},{key:"parseQueryString",value:function(e){var t,n,i,r,a,o,s,c={};if(null===e)return c;t=e.split("&");for(var u=0;u1&&void 0!==arguments[1]?arguments[1]:null;return _classCallCheck(this,n),(i=t.call(this,e)).info=r,i}return n}(OAuthEvent),OAuthInfoEvent=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return _classCallCheck(this,n),(i=t.call(this,e)).info=r,i}return n}(OAuthEvent),OAuthErrorEvent=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return _classCallCheck(this,n),(r=t.call(this,e)).reason=i,r.params=a,r}return n}(OAuthEvent),AuthConfig=function e(t){_classCallCheck(this,e),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.openUri=function(e){location.href=e},t&&Object.assign(this,t)},WebHttpUrlEncodingCodec=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"encodeKey",value:function(e){return encodeURIComponent(e)}},{key:"encodeValue",value:function(e){return encodeURIComponent(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}(),ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&module.exports,AMD="function"==typeof define&&__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[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],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e,t){return function(n){return new Sha256(t,!0).update(n)[e]()}},\u02750=createOutputMethod,createMethod=function(e){var t=createOutputMethod("hex",e);NODE_JS&&(t=nodeWrap(t,e)),t.create=function(){return new Sha256(e)},t.update=function(e){return t.create().update(e)};for(var n=0;n>6,o[c++]=128|63&a):a<55296||a>=57344?(o[c++]=224|a>>12,o[c++]=128|a>>6&63,o[c++]=128|63&a):(a=65536+((1023&a)<<10|1023&e.charCodeAt(++i)),o[c++]=240|a>>18,o[c++]=128|a>>12&63,o[c++]=128|a>>6&63,o[c++]=128|63&a);e=o}else{if("object"!==r)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw new Error(ERROR)}e.length>64&&(e=new Sha256(t,!0).update(e).array());var u=[],l=[];for(i=0;i<64;++i){var h=e[i]||0;u[i]=92^h,l[i]=54^h}Sha256.call(this,t,n),this.update(l),this.oKeyPad=u,this.inner=!0,this.sharedMemory=n}Sha256.prototype.update=function(e){if(!this.finalized){var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw new Error(ERROR);t=!0}for(var i,r,a=0,o=e.length,s=this.blocks;a>2]|=e[a]<>2]|=i<>2]|=(192|i>>6)<>2]|=(128|63&i)<=57344?(s[r>>2]|=(224|i>>12)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=(240|i>>18)<>2]|=(128|i>>12&63)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<=64?(this.block=s[16],this.start=r-64,this.hash(),this.hashed=!0):this.start=r}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 e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=EXTRA[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var e,t,n,i,r,a,o=this.h0,s=this.h1,c=this.h2,u=this.h3,l=this.h4,h=this.h5,d=this.h6,f=this.h7,p=this.blocks;for(e=16;e<64;++e)p[e]=p[e-16]+(((t=p[e-15])>>>7|t<<25)^(t>>>18|t<<14)^t>>>3)+p[e-7]+(((t=p[e-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)<<0;for(a=s&c,e=0;e<64;e+=4)this.first?(this.is224?(n=300032,f=(t=p[0]-1413257819)-150054599<<0,u=t+24177077<<0):(n=704751109,f=(t=p[0]-210244248)-1521486534<<0,u=t+143694565<<0),this.first=!1):(f=u+(t=f+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&h^~l&d)+K[e]+p[e])<<0,u=t+(((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+((n=o&s)^o&c^a))<<0),d=c+(t=d+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&l^~f&h)+K[e+1]+p[e+1])<<0,c=t+(((u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10))+((i=u&o)^u&s^n))<<0,h=s+(t=h+((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&f^~d&l)+K[e+2]+p[e+2])<<0,s=t+(((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+((r=c&u)^c&o^i))<<0,l=o+(t=l+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&d^~h&f)+K[e+3]+p[e+3])<<0,o=t+(((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((a=s&c)^s&u^r))<<0;this.h0=this.h0+o<<0,this.h1=this.h1+s<<0,this.h2=this.h2+c<<0,this.h3=this.h3+u<<0,this.h4=this.h4+l<<0,this.h5=this.h5+h<<0,this.h6=this.h6+d<<0,this.h7=this.h7+f<<0},Sha256.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4,a=this.h5,o=this.h6,s=this.h7,c=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[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[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[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[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+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[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||(c+=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]),c},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4,a=this.h5,o=this.h6,s=this.h7,c=[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,i>>24&255,i>>16&255,i>>8&255,255&i,r>>24&255,r>>16&255,r>>8&255,255&r,a>>24&255,a>>16&255,a>>8&255,255&a,o>>24&255,o>>16&255,o>>8&255,255&o];return this.is224||c.push(s>>24&255,s>>16&255,s>>8&255,255&s),c},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0);var HashHandler=function e(){_classCallCheck(this,e)},DefaultHashHandler=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"calcHash",value:function(e,t){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=exports.array(e),t.abrupt("return",this.toHashString2(n));case 2:case"end":return t.stop()}},t,this)}))}},{key:"toHashString2",value:function(e){var t,n="",i=_createForOfIteratorHelper(e);try{for(i.s();!(t=i.n()).done;){var r=t.value;n+=String.fromCharCode(r)}}catch(err){i.e(err)}finally{i.f()}return n}},{key:"toHashString",value:function(e){var t,n="",i=_createForOfIteratorHelper(new Uint8Array(e));try{for(i.s();!(t=i.n()).done;){var r=t.value;n+=String.fromCharCode(r)}}catch(err){i.e(err)}finally{i.f()}return n}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:e,factory:e.\u0275fac}),e}(),OAuthService=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o,s,c,u,l,h){var d,f;_classCallCheck(this,n),(d=t.call(this)).ngZone=e,d.http=i,d.config=o,d.urlHelper=s,d.logger=c,d.crypto=u,d.dateTimeService=h,d.discoveryDocumentLoaded=!1,d.state="",d.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_2__.xQ,d.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_2__.xQ,d.grantTypesSupported=[],d.inImplicitFlow=!1,d.saveNoncesInLocalStorage=!1,d.debug("angular-oauth2-oidc v10"),d.document=l,o||(o={}),d.discoveryDocumentLoaded$=d.discoveryDocumentLoadedSubject.asObservable(),d.events=d.eventsSubject.asObservable(),a&&(d.tokenValidationHandler=a),o&&d.configure(o);try{r?d.setStorage(r):"undefined"!=typeof sessionStorage&&d.setStorage(sessionStorage)}catch(g){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",g)}if("undefined"!=typeof window&&void 0!==window.localStorage){var p=null===(f=null===window||void 0===window?void 0:window.navigator)||void 0===f?void 0:f.userAgent;((null==p?void 0:p.includes("MSIE "))||(null==p?void 0:p.includes("Trident")))&&(d.saveNoncesInLocalStorage=!0)}return d.setupRefreshTimer(),d}return _createClass(n,[{key:"configure",value:function(e){Object.assign(this,new AuthConfig,e),this.config=Object.assign({},new AuthConfig,e),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}},{key:"configChanged",value:function(){this.setupRefreshTimer()}},{key:"restartSessionChecksIfStillLoggedIn",value:function(){this.hasValidIdToken()&&this.initSessionCheck()}},{key:"restartRefreshTimerIfStillLoggedIn",value:function(){this.setupExpirationTimers()}},{key:"setupSessionCheck",value:function(){var e=this;this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(e){return"token_received"===e.type})).subscribe(function(t){e.initSessionCheck()})}},{key:"setupAutomaticSilentRefresh",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.b)(function(e){"token_received"===e.type?r=!0:"logout"===e.type&&(r=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(e){return"token_expires"===e.type&&(null==n||"any"===n||e.info===n)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(1e3)).subscribe(function(n){r&&e.refreshInternal(t,i).catch(function(t){e.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}},{key:"refreshInternal",value:function(e,t){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(e,t):this.refreshToken()}},{key:"loadDiscoveryDocumentAndTryLogin",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.loadDiscoveryDocument().then(function(n){return e.tryLogin(t)})}},{key:"loadDiscoveryDocumentAndLogin",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.loadDiscoveryDocumentAndTryLogin(t=t||{}).then(function(n){return!(!e.hasValidIdToken()||!e.hasValidAccessToken())||(e.initLoginFlow("string"==typeof t.state?t.state:""),!1)})}},{key:"debug",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:null;return new Promise(function(n,i){t||((t=e.issuer||"").endsWith("/")||(t+="/"),t+=".well-known/openid-configuration"),e.validateUrlForHttps(t)?e.http.get(t).subscribe(function(t){if(!e.validateDiscoveryDocument(t))return e.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void i("discovery_document_validation_error");e.loginUrl=t.authorization_endpoint,e.logoutUrl=t.end_session_endpoint||e.logoutUrl,e.grantTypesSupported=t.grant_types_supported,e.issuer=t.issuer,e.tokenEndpoint=t.token_endpoint,e.userinfoEndpoint=t.userinfo_endpoint||e.userinfoEndpoint,e.jwksUri=t.jwks_uri,e.sessionCheckIFrameUrl=t.check_session_iframe||e.sessionCheckIFrameUrl,e.discoveryDocumentLoaded=!0,e.discoveryDocumentLoadedSubject.next(t),e.revocationEndpoint=t.revocation_endpoint||e.revocationEndpoint,e.sessionChecksEnabled&&e.restartSessionChecksIfStillLoggedIn(),e.loadJwks().then(function(i){var r=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:t,jwks:i});e.eventsSubject.next(r),n(r)}).catch(function(t){e.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",t)),i(t)})},function(t){e.logger.error("error loading discovery document",t),e.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",t)),i(t)}):i("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}},{key:"loadJwks",value:function(){var e=this;return new Promise(function(t,n){e.jwksUri?e.http.get(e.jwksUri).subscribe(function(n){e.jwks=n,e.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),t(n)},function(t){e.logger.error("error loading jwks",t),e.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",t)),n(t)}):t(null)})}},{key:"validateDiscoveryDocument",value:function(e){var t;return this.skipIssuerCheck||e.issuer===this.issuer?(t=this.validateUrlFromDiscoveryDocument(e.authorization_endpoint)).length>0?(this.logger.error("error validating authorization_endpoint in discovery document",t),!1):(t=this.validateUrlFromDiscoveryDocument(e.end_session_endpoint)).length>0?(this.logger.error("error validating end_session_endpoint in discovery document",t),!1):((t=this.validateUrlFromDiscoveryDocument(e.token_endpoint)).length>0&&this.logger.error("error validating token_endpoint in discovery document",t),(t=this.validateUrlFromDiscoveryDocument(e.revocation_endpoint)).length>0&&this.logger.error("error validating revocation_endpoint in discovery document",t),(t=this.validateUrlFromDiscoveryDocument(e.userinfo_endpoint)).length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",t),!1):(t=this.validateUrlFromDiscoveryDocument(e.jwks_uri)).length>0?(this.logger.error("error validating jwks_uri in discovery document",t),!1):(this.sessionChecksEnabled&&!e.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: "+e.issuer),!1)}},{key:"fetchTokenUsingPasswordFlowAndLoadUserProfile",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM;return this.fetchTokenUsingPasswordFlow(e,t,i).then(function(){return n.loadUserProfile()})}},{key:"loadUserProfile",value:function(){var e=this;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(function(t,n){var i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Authorization","Bearer "+e.getAccessToken());e.http.get(e.userinfoEndpoint,{headers:i,observe:"response",responseType:"text"}).subscribe(function(i){if(e.debug("userinfo received",JSON.stringify(i)),i.headers.get("content-type").startsWith("application/json")){var r=JSON.parse(i.body),a=e.getIdentityClaims()||{};if(!e.skipSubjectCheck&&e.oidc&&(!a.sub||r.sub!==a.sub))return void n("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");r=Object.assign({},a,r),e._storage.setItem("id_token_claims_obj",JSON.stringify(r)),e.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),t({info:r})}else e.debug("userinfo is not JSON, treating it as JWE/JWS"),e.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),t(JSON.parse(i.body))},function(t){e.logger.error("error loading user info",t),e.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",t)),n(t)})})}},{key:"fetchTokenUsingPasswordFlow",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM;return this.fetchTokenUsingGrant("password",{username:e,password:t},n)}},{key:"fetchTokenUsingGrant",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM;this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");var r=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",e).set("scope",this.scope);if(this.useHttpBasicAuth){var a=btoa("".concat(this.clientId,":").concat(this.dummyClientSecret));i=i.set("Authorization","Basic "+a)}if(this.useHttpBasicAuth||(r=r.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(r=r.set("client_secret",this.dummyClientSecret)),this.customQueryParams){var o,s=_createForOfIteratorHelper(Object.getOwnPropertyNames(this.customQueryParams));try{for(s.s();!(o=s.n()).done;){var c=o.value;r=r.set(c,this.customQueryParams[c])}}catch(err){s.e(err)}finally{s.f()}}for(var u=0,l=Object.keys(t);u0&&void 0!==arguments[0]?arguments[0]:{},n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],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(void 0===this.document)throw new Error("silent refresh is not supported on this platform");var r=this.document.getElementById(this.silentRefreshIFrameName);r&&this.document.body.removeChild(r),this.silentRefreshSubject=i.sub;var a=this.document.createElement("iframe");a.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,n,t).then(function(t){a.setAttribute("src",t),e.silentRefreshShowIFrame||(a.style.display="none"),e.document.body.appendChild(a)});var o=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(e){return e instanceof OAuthErrorEvent}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.P)()),s=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(e){return"token_received"===e.type}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.P)()),c=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_13__.S3)([o,s,c]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.U)(function(t){if(t instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===t.type||(t=new OAuthErrorEvent("silent_refresh_error",t)),e.eventsSubject.next(t),t;return"token_received"===t.type&&(t=new OAuthSuccessEvent("silently_refreshed"),e.eventsSubject.next(t)),t})).toPromise()}},{key:"initImplicitFlowInPopup",value:function(e){return this.initLoginFlowInPopup(e)}},{key:"initLoginFlowInPopup",value:function(e){var t=this;return e=e||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(function(n){return new Promise(function(i,r){var a,o=null;e.windowRef?e.windowRef&&!e.windowRef.closed&&((o=e.windowRef).location.href=n):o=window.open(n,"ngx-oauth2-oidc-login",t.calculatePopupFeatures(e));var s=function(e){t.tryLogin({customHashFragment:e,preventClearHashAfterLogin:!0,customRedirectUri:t.silentRefreshRedirectUri}).then(function(){c(),i(!0)},function(e){c(),r(e)})};o?a=window.setInterval(function(){o&&!o.closed||(c(),r(new OAuthErrorEvent("popup_closed",{})))},500):r(new OAuthErrorEvent("popup_blocked",{}));var c=function(){window.clearInterval(a),window.removeEventListener("storage",l),window.removeEventListener("message",u),null!==o&&o.close(),o=null},u=function(e){var n=t.processMessageEventMessage(e);n&&null!==n?(window.removeEventListener("storage",l),s(n)):console.log("false event firing")},l=function(e){"auth_hash"===e.key&&(window.removeEventListener("message",u),s(e.newValue))};window.addEventListener("message",u),window.addEventListener("storage",l)})})}},{key:"calculatePopupFeatures",value:function(e){var t=e.height||470,n=e.width||500,i=window.screenLeft+(window.outerWidth-n)/2;return"location=no,toolbar=no,width=".concat(n,",height=").concat(t,",top=").concat(window.screenTop+(window.outerHeight-t)/2,",left=").concat(i)}},{key:"processMessageEventMessage",value:function(e){var t="#";if(this.silentRefreshMessagePrefix&&(t+=this.silentRefreshMessagePrefix),e&&e.data&&"string"==typeof e.data){var n=e.data;return n.startsWith(t)?"#"+n.substr(t.length):void 0}}},{key:"canPerformSessionCheck",value:function(){return!!this.sessionChecksEnabled&&(this.sessionCheckIFrameUrl?this.getSessionState()?void 0!==this.document:(console.warn("sessionChecksEnabled is activated but there is no session_state"),!1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),!1))}},{key:"setupSessionCheckEventListener",value:function(){var e=this;this.removeSessionCheckEventListener(),this.sessionCheckEventListener=function(t){var n=t.origin.toLowerCase(),i=e.issuer.toLowerCase();if(e.debug("sessionCheckEventListener"),i.startsWith(n)){switch(t.data){case"unchanged":e.ngZone.run(function(){e.handleSessionUnchanged()});break;case"changed":e.ngZone.run(function(){e.handleSessionChange()});break;case"error":e.ngZone.run(function(){e.handleSessionError()})}e.debug("got info from session check inframe",t)}else e.debug("sessionCheckEventListener","wrong origin",n,"expected",i,"event",t)},this.ngZone.runOutsideAngular(function(){window.addEventListener("message",e.sessionCheckEventListener)})}},{key:"handleSessionUnchanged",value:function(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}},{key:"handleSessionChange",value:function(){var e=this;this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(function(t){return e.debug("silent refresh failed after session changed")}),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(function(t){e.debug("token refresh after session change worked")}).catch(function(t){e.debug("token refresh did not work after session changed"),e.eventsSubject.next(new OAuthInfoEvent("session_terminated")),e.logOut(!0)})}},{key:"waitForSilentRefreshAfterSessionChange",value:function(){var e=this;this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(e){return"silently_refreshed"===e.type||"silent_refresh_timeout"===e.type||"silent_refresh_error"===e.type}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.P)()).subscribe(function(t){"silently_refreshed"!==t.type&&(e.debug("silent refresh did not work after session changed"),e.eventsSubject.next(new OAuthInfoEvent("session_terminated")),e.logOut(!0))})}},{key:"handleSessionError",value:function(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}},{key:"removeSessionCheckEventListener",value:function(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}},{key:"initSessionCheck",value:function(){if(this.canPerformSessionCheck()){var e=this.document.getElementById(this.sessionCheckIFrameName);e&&this.document.body.removeChild(e);var 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()}}},{key:"startSessionCheckTimer",value:function(){var e=this;this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(function(){e.sessionCheckTimer=setInterval(e.checkSession.bind(e),e.sessionCheckIntervall)})}},{key:"stopSessionCheckTimer",value:function(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}},{key:"checkSession",value:function(){var e=this.document.getElementById(this.sessionCheckIFrameName);e||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);var t=this.getSessionState();t||this.stopSessionCheckTimer(),e.contentWindow.postMessage(this.clientId+" "+t,this.issuer)}},{key:"createLoginUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,regeneratorRuntime.mark(function a(){var o,s,c,u,l,h,d,f,p,g,m,v,_,y,b;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return o=n||this.redirectUri,a.next=3,this.createAndSaveNonce();case 3:if(s=a.sent,e=e?s+this.config.nonceStateSeparator+encodeURIComponent(e):s,this.requestAccessToken||this.oidc){a.next=6;break}throw new Error("Either requestAccessToken or oidc or both must be true");case 6:if(this.responseType=this.config.responseType?this.config.responseType:this.oidc&&this.requestAccessToken?"id_token token":this.oidc&&!this.requestAccessToken?"id_token":"token",c=this.loginUrl.indexOf("?")>-1?"&":"?",u=this.scope,this.oidc&&!u.match(/(^|\s)openid($|\s)/)&&(u="openid "+u),l=this.loginUrl+c+"response_type="+encodeURIComponent(this.responseType)+"&client_id="+encodeURIComponent(this.clientId)+"&state="+encodeURIComponent(e)+"&redirect_uri="+encodeURIComponent(o)+"&scope="+encodeURIComponent(u),!this.responseType.includes("code")||this.disablePKCE){a.next=19;break}return a.next=14,this.createChallangeVerifierPairForPKCE();case 14:h=a.sent,d=_slicedToArray(h,2),f=d[0],p=d[1],this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("PKCE_verifier",p):this._storage.setItem("PKCE_verifier",p),l+="&code_challenge="+f,l+="&code_challenge_method=S256";case 19:for(t&&(l+="&login_hint="+encodeURIComponent(t)),this.resource&&(l+="&resource="+encodeURIComponent(this.resource)),this.oidc&&(l+="&nonce="+encodeURIComponent(s)),i&&(l+="&prompt=none"),g=0,m=Object.keys(r);g0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!this.inImplicitFlow){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).");var i={},r=null;"string"==typeof n?r=n:"object"==typeof n&&(i=n),this.createLoginUrl(t,r,null,!1,i).then(this.config.openUri).catch(function(t){console.error("Error in initImplicitFlow",t),e.inImplicitFlow=!1})}}},{key:"initImplicitFlow",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";""!==this.loginUrl?this.initImplicitFlowInternal(t,n):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(e){return"discovery_document_loaded"===e.type})).subscribe(function(i){return e.initImplicitFlowInternal(t,n)})}},{key:"resetImplicitFlow",value:function(){this.inImplicitFlow=!1}},{key:"callOnTokenReceivedIfExists",value:function(e){var t=this;if(e.onTokenReceived){var n={idClaims:t.getIdentityClaims(),idToken:t.getIdToken(),accessToken:t.getAccessToken(),state:t.state};e.onTokenReceived(n)}}},{key:"storeAccessTokenResponse",value:function(e,t,n,i,r){var a=this;if(this._storage.setItem("access_token",e),i&&!Array.isArray(i)?this._storage.setItem("granted_scopes",JSON.stringify(i.split(" "))):i&&Array.isArray(i)&&this._storage.setItem("granted_scopes",JSON.stringify(i)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),n){var o=1e3*n,s=this.dateTimeService.new().getTime()+o;this._storage.setItem("expires_at",""+s)}t&&this._storage.setItem("refresh_token",t),r&&r.forEach(function(e,t){a._storage.setItem(t,e)})}},{key:"tryLogin",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return"code"===this.config.responseType?this.tryLoginCodeFlow(e).then(function(e){return!0}):this.tryLoginImplicitFlow(e)}},{key:"parseQueryString",value:function(e){return e&&0!==e.length?("?"===e.charAt(0)&&(e=e.substr(1)),this.urlHelper.parseQueryString(e)):{}}},{key:"tryLoginCodeFlow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=(e=e||{}).customHashFragment?e.customHashFragment.substring(1):window.location.search,n=this.getCodePartsFromUrl(t),i=n.code,r=n.state,a=n.session_state;if(!e.preventClearHashAfterLogin){var o=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,o)}var s=this.parseState(r),c=_slicedToArray(s,2),u=c[0],l=c[1];if(this.state=l,n.error){this.debug("error trying to login"),this.handleLoginError(e,n);var h=new OAuthErrorEvent("code_error",{},n);return this.eventsSubject.next(h),Promise.reject(h)}if(!e.disableNonceCheck){if(!u)return Promise.resolve();if(!e.disableOAuth2StateCheck&&!this.validateNonce(u)){var d=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(d),Promise.reject(d)}return this.storeSessionState(a),i?this.getTokenFromCode(i,e).then(function(e){return null}):Promise.resolve()}}},{key:"getCodePartsFromUrl",value:function(e){return e&&0!==e.length?("?"===e.charAt(0)&&(e=e.substr(1)),this.urlHelper.parseQueryString(e)):this.urlHelper.getHashFragmentParams()}},{key:"getTokenFromCode",value:function(e,t){var n,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",e).set("redirect_uri",t.customRedirectUri||this.redirectUri);this.disablePKCE||((n=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"))?i=i.set("code_verifier",n):console.warn("No PKCE verifier found in oauth storage!"));return this.fetchAndProcessToken(i,t)}},{key:"fetchAndProcessToken",value:function(e,t){var n=this;t=t||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");var i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){var r=btoa("".concat(this.clientId,":").concat(this.dummyClientSecret));i=i.set("Authorization","Basic "+r)}return this.useHttpBasicAuth||(e=e.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(e=e.set("client_secret",this.dummyClientSecret)),new Promise(function(r,a){if(n.customQueryParams){var o,s=_createForOfIteratorHelper(Object.getOwnPropertyNames(n.customQueryParams));try{for(s.s();!(o=s.n()).done;){var c=o.value;e=e.set(c,n.customQueryParams[c])}}catch(err){s.e(err)}finally{s.f()}}n.http.post(n.tokenEndpoint,e,{headers:i}).subscribe(function(e){n.debug("refresh tokenResponse",e),n.storeAccessTokenResponse(e.access_token,e.refresh_token,e.expires_in||n.fallbackAccessTokenExpirationTimeInSec,e.scope,n.extractRecognizedCustomParameters(e)),n.oidc&&e.id_token?n.processIdToken(e.id_token,e.access_token,t.disableNonceCheck).then(function(t){n.storeIdToken(t),n.eventsSubject.next(new OAuthSuccessEvent("token_received")),n.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),r(e)}).catch(function(e){n.eventsSubject.next(new OAuthErrorEvent("token_validation_error",e)),console.error("Error validating tokens"),console.error(e),a(e)}):(n.eventsSubject.next(new OAuthSuccessEvent("token_received")),n.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),r(e))},function(e){console.error("Error getting token",e),n.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",e)),a(e)})})}},{key:"tryLoginImplicitFlow",value:function(){var e,t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e=(n=n||{}).customHashFragment?this.urlHelper.getHashFragmentParams(n.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",e);var i=e.state,r=this.parseState(i),a=_slicedToArray(r,2),o=a[0],s=a[1];if(this.state=s,e.error){this.debug("error trying to login"),this.handleLoginError(n,e);var c=new OAuthErrorEvent("token_error",{},e);return this.eventsSubject.next(c),Promise.reject(c)}var u=e.access_token,l=e.id_token,h=e.session_state,d=e.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!u)return Promise.resolve(!1);if(this.requestAccessToken&&!n.disableOAuth2StateCheck&&!i)return Promise.resolve(!1);if(this.oidc&&!l)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!h&&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&&!n.disableNonceCheck&&!this.validateNonce(o)){var f=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(f),Promise.reject(f)}return this.requestAccessToken&&this.storeAccessTokenResponse(u,null,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,d),this.oidc?this.processIdToken(l,u,n.disableNonceCheck).then(function(e){return n.validationHandler?n.validationHandler({accessToken:u,idClaims:e.idTokenClaims,idToken:e.idToken,state:i}).then(function(t){return e}):e}).then(function(e){return t.storeIdToken(e),t.storeSessionState(h),t.clearHashAfterLogin&&!n.preventClearHashAfterLogin&&t.clearLocationHash(),t.eventsSubject.next(new OAuthSuccessEvent("token_received")),t.callOnTokenReceivedIfExists(n),t.inImplicitFlow=!1,!0}).catch(function(e){return t.eventsSubject.next(new OAuthErrorEvent("token_validation_error",e)),t.logger.error("Error validating tokens"),t.logger.error(e),Promise.reject(e)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!n.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(n),Promise.resolve(!0))}},{key:"parseState",value:function(e){var t=e,n="";if(e){var i=e.indexOf(this.config.nonceStateSeparator);i>-1&&(t=e.substr(0,i),n=e.substr(i+this.config.nonceStateSeparator.length))}return[t,n]}},{key:"validateNonce",value:function(e){var t;return(t=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"))===e||(console.error("Validating access_token failed, wrong state/nonce.",t,e),!1)}},{key:"storeIdToken",value:function(e){this._storage.setItem("id_token",e.idToken),this._storage.setItem("id_token_claims_obj",e.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+e.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}},{key:"storeSessionState",value:function(e){this._storage.setItem("session_state",e)}},{key:"getSessionState",value:function(){return this._storage.getItem("session_state")}},{key:"handleLoginError",value:function(e,t){e.onLoginError&&e.onLoginError(t),this.clearHashAfterLogin&&!e.preventClearHashAfterLogin&&this.clearLocationHash()}},{key:"getClockSkewInMsec",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6e5;return this.clockSkewInSec?1e3*this.clockSkewInSec:e}},{key:"processIdToken",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=e.split("."),o=b64DecodeUnicode(this.padBase64(a[0])),s=JSON.parse(o),c=b64DecodeUnicode(this.padBase64(a[1])),u=JSON.parse(c);if(n=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(u.aud)){if(u.aud.every(function(e){return e!==i.clientId})){var l="Wrong audience: "+u.aud.join(",");return this.logger.warn(l),Promise.reject(l)}}else if(u.aud!==this.clientId){var h="Wrong audience: "+u.aud;return this.logger.warn(h),Promise.reject(h)}if(!u.sub){var d="No sub claim in id_token";return this.logger.warn(d),Promise.reject(d)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==u.sub){var f="After refreshing, we got an id_token for another user (sub). Expected sub: ".concat(this.silentRefreshSubject,", received sub: ").concat(u.sub);return this.logger.warn(f),Promise.reject(f)}if(!u.iat){var p="No iat claim in id_token";return this.logger.warn(p),Promise.reject(p)}if(!this.skipIssuerCheck&&u.iss!==this.issuer){var g="Wrong issuer: "+u.iss;return this.logger.warn(g),Promise.reject(g)}if(!r&&u.nonce!==n){var m="Wrong nonce: "+u.nonce;return this.logger.warn(m),Promise.reject(m)}if(!this.hasOwnProperty("responseType")||"code"!==this.responseType&&"id_token"!==this.responseType||(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!u.at_hash){var v="An at_hash is needed!";return this.logger.warn(v),Promise.reject(v)}var _=this.dateTimeService.now(),y=1e3*u.iat,b=1e3*u.exp,A=this.getClockSkewInMsec();if(y-A>=_||b+A<=_){var w="Token has expired";return console.error(w),console.error({now:_,issuedAtMSec:y,expiresAtMSec:b}),Promise.reject(w)}var k={accessToken:t,idToken:e,jwks:this.jwks,idTokenClaims:u,idTokenHeader:s,loadKeys:function(){return i.loadJwks()}};return this.disableAtHashCheck?this.checkSignature(k).then(function(t){return{idToken:e,idTokenClaims:u,idTokenClaimsJson:c,idTokenHeader:s,idTokenHeaderJson:o,idTokenExpiresAt:b}}):this.checkAtHash(k).then(function(t){if(!i.disableAtHashCheck&&i.requestAccessToken&&!t){var n="Wrong at_hash";return i.logger.warn(n),Promise.reject(n)}return i.checkSignature(k).then(function(t){var n={idToken:e,idTokenClaims:u,idTokenClaimsJson:c,idTokenHeader:s,idTokenHeaderJson:o,idTokenExpiresAt:b};return i.disableAtHashCheck?n:i.checkAtHash(k).then(function(e){if(i.requestAccessToken&&!e){var t="Wrong at_hash";return i.logger.warn(t),Promise.reject(t)}return n})})})}},{key:"getIdentityClaims",value:function(){var e=this._storage.getItem("id_token_claims_obj");return e?JSON.parse(e):null}},{key:"getGrantedScopes",value:function(){var e=this._storage.getItem("granted_scopes");return e?JSON.parse(e):null}},{key:"getIdToken",value:function(){return this._storage?this._storage.getItem("id_token"):null}},{key:"padBase64",value:function(e){for(;e.length%4!=0;)e+="=";return e}},{key:"getAccessToken",value:function(){return this._storage?this._storage.getItem("access_token"):null}},{key:"getRefreshToken",value:function(){return this._storage?this._storage.getItem("refresh_token"):null}},{key:"getAccessTokenExpiration",value:function(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}},{key:"getAccessTokenStoredAt",value:function(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}},{key:"getIdTokenStoredAt",value:function(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}},{key:"getIdTokenExpiration",value:function(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}},{key:"hasValidAccessToken",value:function(){if(this.getAccessToken()){var e=this._storage.getItem("expires_at"),t=this.dateTimeService.new();return!(e&&parseInt(e,10)=0&&null!==this._storage.getItem(e)?JSON.parse(this._storage.getItem(e)):null}},{key:"authorizationHeader",value:function(){return"Bearer "+this.getAccessToken()}},{key:"logOut",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=!1;"boolean"==typeof t&&(i=t,t={});var r=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(function(t){return e._storage.removeItem(t)}),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),this.logoutUrl&&!i&&(r||this.postLogoutRedirectUri)){var a;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)a=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(r)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{var o=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec});r&&(o=o.set("id_token_hint",r));var s=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";for(var c in s&&(o=o.set("post_logout_redirect_uri",s),n&&(o=o.set("state",n))),t)o=o.set(c,t[c]);a=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+o.toString()}this.config.openUri(a)}}},{key:"createAndSaveNonce",value:function(){var e=this;return this.createNonce().then(function(t){return e.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("nonce",t):e._storage.setItem("nonce",t),t})}},{key:"ngOnDestroy",value:function(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();var e=this.document.getElementById(this.silentRefreshIFrameName);e&&e.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();var t=this.document.getElementById(this.sessionCheckIFrameName);t&&t.remove()}},{key:"createNonce",value:function(){var e=this;return new Promise(function(t){if(e.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",i=45,r="",a="undefined"==typeof self?null:self.crypto||self.msCrypto;if(a){var o=new Uint8Array(i);a.getRandomValues(o),o.map||(o.map=Array.prototype.map),o=o.map(function(e){return n.charCodeAt(e%n.length)}),r=String.fromCharCode.apply(null,o)}else for(;00&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"code"===this.responseType?this.initCodeFlow(e,t):this.initImplicitFlow(e,t)}},{key:"initCodeFlow",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};""!==this.loginUrl?this.initCodeFlowInternal(t,n):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(e){return"discovery_document_loaded"===e.type})).subscribe(function(i){return e.initCodeFlowInternal(t,n)})}},{key:"initCodeFlowInternal",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};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).");var n={},i=null;"string"==typeof t?i=t:"object"==typeof t&&(n=t),this.createLoginUrl(e,i,null,!1,n).then(this.config.openUri).catch(function(e){console.error("Error in initAuthorizationCodeFlow"),console.error(e)})}},{key:"createChallangeVerifierPairForPKCE",value:function(){return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.crypto){e.next=2;break}throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");case 2:return e.next=4,this.createNonce();case 4:return t=e.sent,e.t0=base64UrlEncode,e.next=8,this.crypto.calcHash(t,"sha-256");case 8:return e.t1=e.sent,e.t2=(0,e.t0)(e.t1),e.t3=t,e.abrupt("return",[e.t2,e.t3]);case 12:case"end":return e.stop()}},e,this)}))}},{key:"extractRecognizedCustomParameters",value:function(e){var t=new Map;return this.config.customTokenParameters?(this.config.customTokenParameters.forEach(function(n){e[n]&&t.set(n,JSON.stringify(e[n]))}),t):t}},{key:"revokeTokenAndLogout",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.revocationEndpoint,r=this.getAccessToken(),a=this.getRefreshToken();if(r){var o=new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.LE({encoder:new WebHttpUrlEncodingCodec}),s=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_8__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){var c=btoa("".concat(this.clientId,":").concat(this.dummyClientSecret));s=s.set("Authorization","Basic "+c)}if(this.useHttpBasicAuth||(o=o.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(o=o.set("client_secret",this.dummyClientSecret)),this.customQueryParams){var u,l=_createForOfIteratorHelper(Object.getOwnPropertyNames(this.customQueryParams));try{for(l.s();!(u=l.n()).done;){var h=u.value;o=o.set(h,this.customQueryParams[h])}}catch(err){l.e(err)}finally{l.f()}}return new Promise(function(c,u){var l,h;if(r){var d=o.set("token",r).set("token_type_hint","access_token");l=e.http.post(i,d,{headers:s})}else l=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null);if(a){var f=o.set("token",a).set("token_type_hint","refresh_token");h=e.http.post(i,f,{headers:s})}else h=(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null);n&&(l=l.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(function(e){return 0===e.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(e)})),h=h.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(function(e){return 0===e.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(e)}))),(0,rxjs__WEBPACK_IMPORTED_MODULE_16__.aj)([l,h]).subscribe(function(n){e.logOut(t),c(n),e.logger.info("Token successfully revoked")},function(t){e.logger.error("Error revoking token",t),e.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",t)),u(t)})})}}},{key:"clearLocationHash",value:function(){""!=location.hash&&(location.hash="")}}]),n}(AuthConfig);return e.\u0275fac=function(t){return new(t||e)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_0__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_8__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_17__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DateTimeProvider))},e.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:e,factory:e.\u0275fac}),e}(),OAuthModuleConfig=function e(){_classCallCheck(this,e)},OAuthResourceServerConfig=function e(){_classCallCheck(this,e)},OAuthResourceServerErrorHandler=function e(){_classCallCheck(this,e)},OAuthNoopResourceServerErrorHandler=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"handleError",value:function(e){return(0,rxjs__WEBPACK_IMPORTED_MODULE_15__._)(e)}}]),e}(),DefaultOAuthInterceptor=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.oAuthService=t,this.errorHandler=n,this.moduleConfig=i}return _createClass(e,[{key:"checkUrl",value:function(e){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(e):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(function(t){return e.toLowerCase().startsWith(t.toLowerCase())})}},{key:"intercept",value:function(e,t){var n=this,i=e.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(i)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_18__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(e){return!!e})),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.h)(function(e){return"token_received"===e.type}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_19__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(function(e){return(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.of)(null)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.U)(function(e){return n.oAuthService.getAccessToken()}))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.zg)(function(i){if(i){var r=e.headers.set("Authorization","Bearer "+i);e=e.clone({headers:r})}return t.handle(e).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(function(e){return n.errorHandler.handleError(e)}))})):t.handle(e).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.K)(function(e){return n.errorHandler.handleError(e)})):t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(OAuthModuleConfig,8))},e.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:e,factory:e.\u0275fac}),e}(),NullValidationHandler=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"validateSignature",value:function(e){return Promise.resolve(null)}},{key:"validateAtHash",value:function(e){return Promise.resolve(!0)}}]),e}();function createDefaultLogger(){return console}function createDefaultStorage(){return"undefined"!=typeof sessionStorage?sessionStorage:new MemoryStorage}var OAuthModule=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NullValidationHandler;return{ngModule:e,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:n},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:t},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_8__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:e}),e.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_17__.ez]]}),e}(),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",JwksValidationHandler=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),e=t.call(this),console.error(err),e}return n}(NullValidationHandler),AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("AUTH_CONFIG")},2051:function(e,t){var n,i;void 0===(i="function"==typeof(n=function(){"use strict";function t(e,t,n){var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){o(i.response,t,n)},i.onerror=function(){console.error("could not download file")},i.send()}function n(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function i(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}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,a=r.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),o=r.saveAs||("object"!=typeof window||window!==r?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(e,a,o){var s=r.URL||r.webkitURL,c=document.createElement("a");c.download=a=a||e.name||"download",c.rel="noopener","string"==typeof e?(c.href=e,c.origin===location.origin?i(c):n(c.href)?t(e,a,o):i(c,c.target="_blank")):(c.href=s.createObjectURL(e),setTimeout(function(){s.revokeObjectURL(c.href)},4e4),setTimeout(function(){i(c)},0))}:"msSaveOrOpenBlob"in navigator?function(e,r,a){if(r=r||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,a),r);else if(n(e))t(e,r,a);else{var o=document.createElement("a");o.href=e,o.target="_blank",setTimeout(function(){i(o)})}}:function(e,n,i,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,i);var s="application/octet-stream"===e.type,c=/constructor/i.test(r.HTMLElement)||r.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||s&&c||a)&&"undefined"!=typeof FileReader){var l=new FileReader;l.onloadend=function(){var e=l.result;e=u?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},l.readAsDataURL(e)}else{var h=r.URL||r.webkitURL,d=h.createObjectURL(e);o?o.location=d:location.href=d,o=null,setTimeout(function(){h.revokeObjectURL(d)},4e4)}});r.saveAs=o.saveAs=o,e.exports=o})?n.apply(t,[]):n)||(e.exports=i)},9355:function(e,t,n){(e.exports=n(2021)).tz.load(n(4360))},2021:function(e,t,n){var i,r,a;!function(o,s){"use strict";e.exports?e.exports=s(n(9609)):(r=[n(9609)],void 0===(a="function"==typeof(i=s)?i.apply(t,r):i)||(e.exports=a))}(0,function(e){"use strict";void 0===e.version&&e.default&&(e=e.default);var t,n={},i={},r={},a={},o={};e&&"string"==typeof e.version||S("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var s=e.version.split("."),c=+s[0],u=+s[1];function l(e){return e>96?e-87:e>64?e-29:e-48}function h(e){var t=0,n=e.split("."),i=n[0],r=n[1]||"",a=1,o=0,s=1;for(45===e.charCodeAt(0)&&(t=1,s=-1);t= 2.6.0. You are using Moment.js "+e.version+". See momentjs.com"),g.prototype={_set:function(e){this.name=e.name,this.abbrs=e.abbrs,this.untils=e.untils,this.offsets=e.offsets,this.population=e.population},_index:function(e){var t,n=+e,i=this.untils;for(t=0;ti&&E.moveInvalidForward&&(t=i),a3){var t=a[k(e)];if(t)return t;S("Moment Timezone found "+e+" from the Intl api, but did not have that data loaded.")}}catch(l){}var n,i,r,o=function(){var e,t,n,i=(new Date).getFullYear()-2,r=new v(new Date(i,0,1)),a=[r];for(n=1;n<48;n++)(t=new v(new Date(i,n,1))).offset!==r.offset&&(e=y(r,t),a.push(e),a.push(new v(new Date(e.at+6e4)))),r=t;for(n=0;n<4;n++)a.push(new v(new Date(i+n,0,1))),a.push(new v(new Date(i+n,6,1)));return a}(),s=o.length,c=w(o),u=[];for(i=0;i0?u[0].zone.name:void 0}()),t},E.names=function(){var e,t=[];for(e in a)a.hasOwnProperty(e)&&(n[e]||n[i[e]])&&a[e]&&t.push(a[e]);return t.sort()},E.Zone=g,E.unpack=p,E.unpackBase60=h,E.needsOffset=L,E.moveInvalidForward=!0,E.moveAmbiguousForward=!1,E.countries=function(){return Object.keys(r)},E.zonesForCountry=function(e,t){var n;if(n=(n=e).toUpperCase(),!(e=r[n]||null))return null;var i=e.zones.sort();return t?i.map(function(e){return{name:e,offset:C(e).utcOffset(new Date)}}):i};var z,O=e.fn;function x(e){return function(){return this._z?this._z.abbr(this):e.call(this)}}function R(e){return function(){return this._z=null,e.apply(this,arguments)}}e.tz=E,e.defaultZone=null,e.updateOffset=function(t,n){var i,r=e.defaultZone;if(void 0===t._z&&(r&&L(t)&&!t._isUTC&&(t._d=e.utc(t._a)._d,t.utc().add(r.parse(t),"minutes")),t._z=r),t._z)if(i=t._z.utcOffset(t),Math.abs(i)<16&&(i/=60),void 0!==t.utcOffset){var a=t._z;t.utcOffset(-i,n),t._z=a}else t.zone(i,n)},O.tz=function(t,n){if(t){if("string"!=typeof t)throw new Error("Time zone name must be a string, got "+t+" ["+typeof t+"]");return this._z=C(t),this._z?e.updateOffset(this,n):S("Moment Timezone has no data for "+t+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},O.zoneName=x(O.zoneName),O.zoneAbbr=x(O.zoneAbbr),O.utc=R(O.utc),O.local=R(O.local),O.utcOffset=(z=O.utcOffset,function(){return arguments.length>0&&(this._z=null),z.apply(this,arguments)}),e.tz.setDefault=function(t){return(c<2||2===c&&u<9)&&S("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+e.version+"."),e.defaultZone=t?C(t):null,e};var D=e.momentProperties;return"[object Array]"===Object.prototype.toString.call(D)?(D.push("_z"),D.push("_a")):D&&(D._z=null),e})},776:function(e,t,n){!function(e){"use strict";e.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,t,n){return e<12?n?"vm":"VM":n?"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}})}(n(9609))},2758:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-dz",{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:"\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:"\u0623\u062d_\u0625\u062b_\u062b\u0644\u0627_\u0623\u0631_\u062e\u0645_\u062c\u0645_\u0633\u0628".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:4}})}(n(9609))},4980:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},9602:function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},i={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"]},r=function(e){return function(t,r,a,o){var s=n(t),c=i[e][n(t)];return 2===s&&(c=c[r?0:1]),c.replace(/%d/i,t)}},a=["\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"];e.defineLocale("ar-ly",{months:a,monthsShort:a,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(e){return"\u0645"===e},meridiem:function(e,t,n){return e<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:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n(9609))},2500:function(e,t,n){!function(e){"use strict";e.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\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:6,doy:12}})}(n(9609))},6909:function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};e.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(e){return"\u0645"===e},meridiem:function(e,t,n){return e<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(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(e){return n[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(n(9609))},2735:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},7634:function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},i=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={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"]},a=function(e){return function(t,n,a,o){var s=i(t),c=r[e][i(t)];return 2===s&&(c=c[n?0:1]),c.replace(/%d/i,t)}},o=["\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"];e.defineLocale("ar",{months:o,monthsShort:o,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(e){return"\u0645"===e},meridiem:function(e,t,n){return e<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:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(e){return n[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n(9609))},7798:function(e,t,n){!function(e){"use strict";var t={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"};e.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:"birne\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(e){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gec\u0259":e<12?"s\u0259h\u0259r":e<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(e){if(0===e)return e+"-\u0131nc\u0131";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(9609))},9949:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===n?t?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":e+" "+(i=+e,r={ss:t?"\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:t?"\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:t?"\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"}[n].split("_"),i%10==1&&i%100!=11?r[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?r[1]:r[2]);var i,r}e.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:t,mm:t,h:t,hh:t,d:"\u0434\u0437\u0435\u043d\u044c",dd:t,M:"\u043c\u0435\u0441\u044f\u0446",MM:t,y:"\u0433\u043e\u0434",yy:t},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u044b":e<12?"\u0440\u0430\u043d\u0456\u0446\u044b":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-\u044b":e+"-\u0456";case"D":return e+"-\u0433\u0430";default:return e}},week:{dow:1,doy:7}})}(n(9609))},4590:function(e,t,n){!function(e){"use strict";e.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\u0440_\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"[\u0412 \u0438\u0437\u043c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u0412 \u0438\u0437\u043c\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\u043d\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 t=e%10,n=e%100;return 0===e?e+"-\u0435\u0432":0===n?e+"-\u0435\u043d":n>10&&n<20?e+"-\u0442\u0438":1===t?e+"-\u0432\u0438":2===t?e+"-\u0440\u0438":7===t||8===t?e+"-\u043c\u0438":e+"-\u0442\u0438"},week:{dow:1,doy:7}})}(n(9609))},5938:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},595:function(e,t,n){!function(e){"use strict";var t={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},n={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};e.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09c0_\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_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2_\u0986\u0997_\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_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u0983_\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(e){return e.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u09b0\u09be\u09a4"===t&&e>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===t&&e<5||"\u09ac\u09bf\u0995\u09be\u09b2"===t?e+12:e},meridiem:function(e,t,n){return e<4?"\u09b0\u09be\u09a4":e<10?"\u09b8\u0995\u09be\u09b2":e<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":e<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(n(9609))},4756:function(e,t,n){!function(e){"use strict";var t={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},n={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};e.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\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("_"),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\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("_"),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(e){return e.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},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(e,t){return 12===e&&(e=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===t&&e>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===t&&e<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===t?e+12:e},meridiem:function(e,t,n){return e<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":e<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":e<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":e<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(n(9609))},7277:function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}function n(e){return e>9?n(e%10):e}e.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(n(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(e){return e+(1===e?"a\xf1":"vet")},week:{dow:1,doy:4}})}(n(9609))},4166:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return i+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return i+(1===e?"dan":"dana");case"MM":return i+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return i+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.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:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(9609))},3943:function(e,t,n){!function(e){"use strict";e.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,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"\xe8";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(9609))},3474:function(e,t,n){!function(e){"use strict";var t="leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),n="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),i=[/^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],r=/^(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 a(e){return e>1&&e<5&&1!=~~(e/10)}function o(e,t,n,i){var r=e+" ";switch(n){case"s":return t||i?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return t||i?r+(a(e)?"sekundy":"sekund"):r+"sekundami";case"m":return t?"minuta":i?"minutu":"minutou";case"mm":return t||i?r+(a(e)?"minuty":"minut"):r+"minutami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?r+(a(e)?"hodiny":"hodin"):r+"hodinami";case"d":return t||i?"den":"dnem";case"dd":return t||i?r+(a(e)?"dny":"dn\xed"):r+"dny";case"M":return t||i?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return t||i?r+(a(e)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):r+"m\u011bs\xedci";case"y":return t||i?"rok":"rokem";case"yy":return t||i?r+(a(e)?"roky":"let"):r+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:r,monthsShortRegex:r,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:i,longMonthsParse:i,shortMonthsParse:i,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:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},2218:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},1061:function(e,t,n){!function(e){"use strict";e.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 t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n(9609))},2743:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},8580:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.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:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},3264:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.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:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},1899:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.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:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},8784:function(e,t,n){!function(e){"use strict";var t=["\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"],n=["\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"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,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(e){return"\u0789\u078a"===e},meridiem:function(e,t,n){return e<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(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(n(9609))},4654:function(e,t,n){!function(e){"use strict";e.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(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.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(e,t,n){return e>11?n?"\u03bc\u03bc":"\u039c\u039c":n?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(e){return"\u03bc"===(e+"").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(){switch(this.day()){case 6:return"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT";default:return"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var n,i=this._calendarEl[e],r=t&&t.hours();return((n=i)instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(i=i.apply(t)),i.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}})}(n(9609))},4047:function(e,t,n){!function(e){"use strict";e.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 t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(9609))},6277:function(e,t,n){!function(e){"use strict";e.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 t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(9609))},6896:function(e,t,n){!function(e){"use strict";e.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 t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(9609))},1609:function(e,t,n){!function(e){"use strict";e.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 t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(9609))},4557:function(e,t,n){!function(e){"use strict";e.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 t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(9609))},5836:function(e,t,n){!function(e){"use strict";e.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",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 t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(9609))},3586:function(e,t,n){!function(e){"use strict";e.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 t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(9609))},2777:function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_a\u016dg_sep_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:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(9609))},3128:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(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;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,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:i,longMonthsParse:i,shortMonthsParse:i,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",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}})}(n(9609))},3256:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(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;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,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:i,longMonthsParse:i,shortMonthsParse:i,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",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}})}(n(9609))},3357:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(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;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,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:i,longMonthsParse:i,shortMonthsParse:i,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",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}})}(n(9609))},2654:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[e+" minuti",e+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[e+" tunni",e+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[e+" kuu",e+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[e+" aasta",e+" aastat"]};return t?r[n][2]?r[n][2]:r[n][1]:i?r[n][0]:r[n][1]}e.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:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d p\xe4eva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},7287:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},5210:function(e,t,n){!function(e){"use strict";var t={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},n={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};e.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(e){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(e)},meridiem:function(e,t,n){return e<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:"\u062b\u0627\u0646\u06cc\u0647 d%",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(e){return e.replace(/[\u06f0-\u06f9]/g,function(e){return n[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(n(9609))},3431:function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),n=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",t[7],t[8],t[9]];function i(e,i,r,a){var o="";switch(r){case"s":return a?"muutaman sekunnin":"muutama sekunti";case"ss":return a?"sekunnin":"sekuntia";case"m":return a?"minuutin":"minuutti";case"mm":o=a?"minuutin":"minuuttia";break;case"h":return a?"tunnin":"tunti";case"hh":o=a?"tunnin":"tuntia";break;case"d":return a?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":o=a?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return a?"kuukauden":"kuukausi";case"MM":o=a?"kuukauden":"kuukautta";break;case"y":return a?"vuoden":"vuosi";case"yy":o=a?"vuoden":"vuotta"}return function(e,i){return e<10?i?n[e]:t[e]:e}(e,a)+" "+o}e.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: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:4}})}(n(9609))},1781:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},1539:function(e,t,n){!function(e){"use strict";e.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,t){switch(t){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")}}})}(n(9609))},9847:function(e,t,n){!function(e){"use strict";e.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,t){switch(t){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}})}(n(9609))},1717:function(e,t,n){!function(e){"use strict";e.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("_"),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|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":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}})}(n(9609))},2250:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},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(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(9609))},7665:function(e,t,n){!function(e){"use strict";e.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","M\xe9itheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deaireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean\xe1","Feab","M\xe1rt","Aibr","Beal","M\xe9it","I\xfail","L\xfana","Me\xe1n","Deai","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 Satharn"],weekdaysShort:["Dom","Lua","M\xe1i","C\xe9a","D\xe9a","hAo","Sat"],weekdaysMin:["Do","Lu","M\xe1","Ce","D\xe9","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:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 aig] 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\xed",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(9609))},5214:function(e,t,n){!function(e){"use strict";e.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(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(9609))},6154:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},8518:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["thodde secondanim","thodde second"],ss:[e+" secondanim",e+" second"],m:["eka mintan","ek minute"],mm:[e+" mintanim",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voranim",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disanim",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineanim",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsanim",e+" vorsam"]};return t?r[n][0]:r[n][1]}e.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_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[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokalli"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokalli":e<16?"donparam":e<20?"sanje":"rati"}})}(n(9609))},9221:function(e,t,n){!function(e){"use strict";var t={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},n={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};e.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\u0ac7\u0ab9\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(e){return e.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0ab0\u0abe\u0aa4"===t?e<4?e:e+12:"\u0ab8\u0ab5\u0abe\u0ab0"===t?e:"\u0aac\u0aaa\u0acb\u0ab0"===t?e>=10?e:e+12:"\u0ab8\u0abe\u0a82\u0a9c"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0ab0\u0abe\u0aa4":e<10?"\u0ab8\u0ab5\u0abe\u0ab0":e<17?"\u0aac\u0aaa\u0acb\u0ab0":e<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(n(9609))},4743:function(e,t,n){!function(e){"use strict";e.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,t,n){return e<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":e<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":e<12?n?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":e<18?n?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(n(9609))},7339:function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};e.defineLocale("hi",{months:"\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("_"),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("_"),monthsParseExact:!0,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"},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(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924"===t?e<4?e:e+12:"\u0938\u0941\u092c\u0939"===t?e:"\u0926\u094b\u092a\u0939\u0930"===t?e>=10?e:e+12:"\u0936\u093e\u092e"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0930\u093e\u0924":e<10?"\u0938\u0941\u092c\u0939":e<17?"\u0926\u094b\u092a\u0939\u0930":e<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(n(9609))},3224:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return i+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return i+(1===e?"dan":"dana");case"MM":return i+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return i+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.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:"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:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(9609))},856:function(e,t,n){!function(e){"use strict";var t="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function n(e,t,n,i){var r=e;switch(n){case"s":return i||t?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return r+(i||t)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(i||t?" perc":" perce");case"mm":return r+(i||t?" perc":" perce");case"h":return"egy"+(i||t?" \xf3ra":" \xf3r\xe1ja");case"hh":return r+(i||t?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(i||t?" nap":" napja");case"dd":return r+(i||t?" nap":" napja");case"M":return"egy"+(i||t?" h\xf3nap":" h\xf3napja");case"MM":return r+(i||t?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(i||t?" \xe9v":" \xe9ve");case"yy":return r+(i||t?" \xe9v":" \xe9ve")}return""}function i(e){return(e?"":"[m\xfalt] ")+"["+t[this.day()]+"] LT[-kor]"}e.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("_"),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(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return i.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return i.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},6855:function(e,t,n){!function(e){"use strict";e.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,t){switch(t){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}})}(n(9609))},2190:function(e,t,n){!function(e){"use strict";e.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,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){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:1,doy:7}})}(n(9609))},3887:function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,i,r){var a=e+" ";switch(i){case"s":return n||r?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return t(e)?a+(n||r?"sek\xfandur":"sek\xfandum"):a+"sek\xfanda";case"m":return n?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return t(e)?a+(n||r?"m\xedn\xfatur":"m\xedn\xfatum"):n?a+"m\xedn\xfata":a+"m\xedn\xfatu";case"hh":return t(e)?a+(n||r?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return n?"dagur":r?"dag":"degi";case"dd":return t(e)?n?a+"dagar":a+(r?"daga":"d\xf6gum"):n?a+"dagur":a+(r?"dag":"degi");case"M":return n?"m\xe1nu\xf0ur":r?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return t(e)?n?a+"m\xe1nu\xf0ir":a+(r?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):n?a+"m\xe1nu\xf0ur":a+(r?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return n||r?"\xe1r":"\xe1ri";case"yy":return t(e)?a+(n||r?"\xe1r":"\xe1rum"):a+(n||r?"\xe1r":"\xe1ri")}}e.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:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},5890:function(e,t,n){!function(e){"use strict";e.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(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[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}})}(n(9609))},9270:function(e,t,n){!function(e){"use strict";e.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:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[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}})}(n(9609))},6595:function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{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:"\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,t,n){return e<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(e){return e.week()=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){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}})}(n(9609))},7477:function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:{standalone:"\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("_"),format:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10e1_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10e1_\u10db\u10d0\u10e0\u10e2\u10e1_\u10d0\u10de\u10e0\u10d8\u10da\u10d8\u10e1_\u10db\u10d0\u10d8\u10e1\u10e1_\u10d8\u10d5\u10dc\u10d8\u10e1\u10e1_\u10d8\u10d5\u10da\u10d8\u10e1\u10e1_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10e1_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10e1_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10e1".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:"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:"[\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/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10ec\u10d4\u10da\u10d8)/.test(e)?e.replace(/\u10d8$/,"\u10e8\u10d8"):e+"\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"):void 0},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}})}(n(9609))},3978:function(e,t,n){!function(e){"use strict";var t={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"};e.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(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(9609))},9205:function(e,t,n){!function(e){"use strict";var t={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},n={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};e.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(e){return"\u179b\u17d2\u1784\u17b6\u1785"===e},meridiem:function(e,t,n){return e<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(e){return e.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})}(n(9609))},25:function(e,t,n){!function(e){"use strict";var t={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},n={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};e.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(e){return e.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},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(e,t){return 12===e&&(e=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===t?e<4?e:e+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===t?e:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===t?e>=10?e:e+12:"\u0cb8\u0c82\u0c9c\u0cc6"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":e<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":e<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":e<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(e){return e+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(n(9609))},427:function(e,t,n){!function(e){"use strict";e.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,t){switch(t){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,t,n){return e<12?"\uc624\uc804":"\uc624\ud6c4"}})}(n(9609))},9089:function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},i=["\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"];e.defineLocale("ku",{months:i,monthsShort:i,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(e){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(e)},meridiem:function(e,t,n){return e<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(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(e){return n[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n(9609))},9314:function(e,t,n){!function(e){"use strict";var t={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"};e.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(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(9609))},3136:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={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 t?r[n][0]:r[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.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){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d M\xe9int",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},9115:function(e,t,n){!function(e){"use strict";e.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,t,n){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}})}(n(9609))},7087:function(e,t,n){!function(e){"use strict";var t={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 n(e,t,n,i){return t?r(n)[0]:i?r(n)[1]:r(n)[2]}function i(e){return e%10==0||e>10&&e<20}function r(e){return t[e].split("_")}function a(e,t,a,o){var s=e+" ";return 1===e?s+n(0,t,a[0],o):t?s+(i(e)?r(a)[1]:r(a)[0]):o?s+r(a)[1]:s+(i(e)?r(a)[1]:r(a)[2])}e.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,t,n,i){return t?"kelios sekund\u0117s":i?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:a,m:n,mm:a,h:n,hh:a,d:n,dd:a,M:n,MM:a,y:n,yy:a},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n(9609))},5683:function(e,t,n){!function(e){"use strict";var t={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 n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function i(e,i,r){return e+" "+n(t[r],e,i)}function r(e,i,r){return n(t[r],e,i)}e.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(e,t){return t?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:i,m:r,mm:i,h:r,hh:i,d:r,dd:i,M:r,MM:i,y:r,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},9454:function(e,t,n){!function(e){"use strict";var t={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(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var r=t.words[i];return 1===i.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};e.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:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(9609))},5507:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},8466:function(e,t,n){!function(e){"use strict";e.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:"\u043f\u043e\u0441\u043b\u0435 %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:"\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",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",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 t=e%10,n=e%100;return 0===e?e+"-\u0435\u0432":0===n?e+"-\u0435\u043d":n>10&&n<20?e+"-\u0442\u0438":1===t?e+"-\u0432\u0438":2===t?e+"-\u0440\u0438":7===t||8===t?e+"-\u043c\u0438":e+"-\u0442\u0438"},week:{dow:1,doy:7}})}(n(9609))},2933:function(e,t,n){!function(e){"use strict";e.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,t){return 12===e&&(e=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===t&&e>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===t||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===t?e+12:e},meridiem:function(e,t,n){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"}})}(n(9609))},9477:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){switch(n){case"s":return t?"\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 e+(t?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return e+(t?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return e+(t?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return e+(t?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return e+(t?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return e+(t?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return e}}e.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(e){return"\u04ae\u0425"===e},meridiem:function(e,t,n){return e<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:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" \u04e9\u0434\u04e9\u0440";default:return e}}})}(n(9609))},3597:function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function i(e,t,n,i){var r="";if(t)switch(n){case"s":r="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":r="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":r="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":r="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":r="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":r="%d \u0924\u093e\u0938";break;case"d":r="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":r="%d \u0926\u093f\u0935\u0938";break;case"M":r="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":r="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":r="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":r="%d \u0935\u0930\u094d\u0937\u0947"}else switch(n){case"s":r="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":r="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":r="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":r="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":r="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":r="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":r="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":r="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":r="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":r="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":r="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":r="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return r.replace(/%d/i,e)}e.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:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0930\u093e\u0924\u094d\u0930\u0940|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924\u094d\u0930\u0940"===t?e<4?e:e+12:"\u0938\u0915\u093e\u0933\u0940"===t?e:"\u0926\u0941\u092a\u093e\u0930\u0940"===t?e>=10?e:e+12:"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0930\u093e\u0924\u094d\u0930\u0940":e<10?"\u0938\u0915\u093e\u0933\u0940":e<17?"\u0926\u0941\u092a\u093e\u0930\u0940":e<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(n(9609))},9965:function(e,t,n){!function(e){"use strict";e.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,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){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}})}(n(9609))},5529:function(e,t,n){!function(e){"use strict";e.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,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){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}})}(n(9609))},259:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},8061:function(e,t,n){!function(e){"use strict";var t={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},n={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};e.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(e){return e.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})}(n(9609))},2618:function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_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",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}})}(n(9609))},8452:function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};e.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(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924\u093f"===t?e<4?e:e+12:"\u092c\u093f\u0939\u093e\u0928"===t?e:"\u0926\u093f\u0909\u0901\u0938\u094b"===t?e>=10?e:e+12:"\u0938\u093e\u0901\u091d"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"\u0930\u093e\u0924\u093f":e<12?"\u092c\u093f\u0939\u093e\u0928":e<16?"\u0926\u093f\u0909\u0901\u0938\u094b":e<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}})}(n(9609))},413:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^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],r=/^(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;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,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:i,longMonthsParse:i,shortMonthsParse:i,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(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(9609))},1885:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^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],r=/^(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;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,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:i,longMonthsParse:i,shortMonthsParse:i,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(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(9609))},5107:function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_m\xe5n_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_m\xe5_ty_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 [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",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}})}(n(9609))},702:function(e,t,n){!function(e){"use strict";var t={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},n={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};e.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(e){return e.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0a30\u0a3e\u0a24"===t?e<4?e:e+12:"\u0a38\u0a35\u0a47\u0a30"===t?e:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===t?e>=10?e:e+12:"\u0a38\u0a3c\u0a3e\u0a2e"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0a30\u0a3e\u0a24":e<10?"\u0a38\u0a35\u0a47\u0a30":e<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":e<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(n(9609))},1711:function(e,t,n){!function(e){"use strict";var t="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_");function i(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function r(e,t,n){var r=e+" ";switch(n){case"ss":return r+(i(e)?"sekundy":"sekund");case"m":return t?"minuta":"minut\u0119";case"mm":return r+(i(e)?"minuty":"minut");case"h":return t?"godzina":"godzin\u0119";case"hh":return r+(i(e)?"godziny":"godzin");case"MM":return r+(i(e)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return r+(i(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,i){return e?""===i?"("+n[e.month()]+"|"+t[e.month()]+")":/D MMMM/.test(i)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),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:r,m:r,mm:r,h:r,hh:r,d:"1 dzie\u0144",dd:"%d dni",M:"miesi\u0105c",MM:r,y:"rok",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},8238:function(e,t,n){!function(e){"use strict";e.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"})}(n(9609))},594:function(e,t,n){!function(e){"use strict";e.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",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}})}(n(9609))},4681:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=" ";return(e%100>=20||e>=100&&e%100==0)&&(i=" de "),e+i+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._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:t,m:"un minut",mm:t,h:"o or\u0103",hh:t,d:"o zi",dd:t,M:"o lun\u0103",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(9609))},6201:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":e+" "+(i=+e,r={ss:t?"\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:t?"\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",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"}[n].split("_"),i%10==1&&i%100!=11?r[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?r[1]:r[2]);var i,r}var n=[/^\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];e.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:n,longMonthsParse:n,shortMonthsParse:n,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(e){if(e.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(e){if(e.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:t,m:t,mm:t,h:"\u0447\u0430\u0441",hh:t,d:"\u0434\u0435\u043d\u044c",dd:t,M:"\u043c\u0435\u0441\u044f\u0446",MM:t,y:"\u0433\u043e\u0434",yy:t},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u0438":e<12?"\u0443\u0442\u0440\u0430":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-\u0439";case"D":return e+"-\u0433\u043e";case"w":case"W":return e+"-\u044f";default:return e}},week:{dow:1,doy:4}})}(n(9609))},2912:function(e,t,n){!function(e){"use strict";var t=["\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"],n=["\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"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,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(e){return"\u0634\u0627\u0645"===e},meridiem:function(e,t,n){return e<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(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(n(9609))},6002:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},7942:function(e,t,n){!function(e){"use strict";e.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,t,n){return e>11?n?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":n?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(n(9609))},5577:function(e,t,n){!function(e){"use strict";var t="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),n="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function i(e){return e>1&&e<5}function r(e,t,n,r){var a=e+" ";switch(n){case"s":return t||r?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return t||r?a+(i(e)?"sekundy":"sek\xfand"):a+"sekundami";case"m":return t?"min\xfata":r?"min\xfatu":"min\xfatou";case"mm":return t||r?a+(i(e)?"min\xfaty":"min\xfat"):a+"min\xfatami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?a+(i(e)?"hodiny":"hod\xedn"):a+"hodinami";case"d":return t||r?"de\u0148":"d\u0148om";case"dd":return t||r?a+(i(e)?"dni":"dn\xed"):a+"d\u0148ami";case"M":return t||r?"mesiac":"mesiacom";case"MM":return t||r?a+(i(e)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return t||r?"rok":"rokom";case"yy":return t||r?a+(i(e)?"roky":"rokov"):a+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,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:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 4:case 5:return"[minul\xfd] dddd [o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %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}})}(n(9609))},1775:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r=e+" ";switch(n){case"s":return t||i?"nekaj sekund":"nekaj sekundami";case"ss":return r+(1===e?t?"sekundo":"sekundi":2===e?t||i?"sekundi":"sekundah":e<5?t||i?"sekunde":"sekundah":"sekund");case"m":return t?"ena minuta":"eno minuto";case"mm":return r+(1===e?t?"minuta":"minuto":2===e?t||i?"minuti":"minutama":e<5?t||i?"minute":"minutami":t||i?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return r+(1===e?t?"ura":"uro":2===e?t||i?"uri":"urama":e<5?t||i?"ure":"urami":t||i?"ur":"urami");case"d":return t||i?"en dan":"enim dnem";case"dd":return r+(1===e?t||i?"dan":"dnem":2===e?t||i?"dni":"dnevoma":t||i?"dni":"dnevi");case"M":return t||i?"en mesec":"enim mesecem";case"MM":return r+(1===e?t||i?"mesec":"mesecem":2===e?t||i?"meseca":"mesecema":e<5?t||i?"mesece":"meseci":t||i?"mesecev":"meseci");case"y":return t||i?"eno leto":"enim letom";case"yy":return r+(1===e?t||i?"leto":"letom":2===e?t||i?"leti":"letoma":e<5?t||i?"leta":"leti":t||i?"let":"leti")}}e.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:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(9609))},6823:function(e,t,n){!function(e){"use strict";e.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,t,n){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}})}(n(9609))},3848:function(e,t,n){!function(e){"use strict";var t={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\u0435 \u043c\u0438\u043d\u0443\u0442\u0435"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0435","\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"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],yy:["\u0433\u043e\u0434\u0438\u043d\u0430","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var r=t.words[i];return 1===i.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};e.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:"DD.MM.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:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"\u0434\u0430\u043d",dd:t.translate,M:"\u043c\u0435\u0441\u0435\u0446",MM:t.translate,y:"\u0433\u043e\u0434\u0438\u043d\u0443",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(9609))},9038:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var r=t.words[i];return 1===i.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};e.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:"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] [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:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(9609))},6173:function(e,t,n){!function(e){"use strict";e.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,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(9609))},5788:function(e,t,n){!function(e){"use strict";e.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 t=e%10;return e+(1==~~(e%100/10)?"e":1===t||2===t?"a":"e")},week:{dow:1,doy:4}})}(n(9609))},6882:function(e,t,n){!function(e){"use strict";e.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",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:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(9609))},2678:function(e,t,n){!function(e){"use strict";var t={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},n={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};e.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(e){return e+"\u0bb5\u0ba4\u0bc1"},preparse:function(e){return e.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},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(e,t,n){return e<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":e<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":e<10?" \u0b95\u0bbe\u0bb2\u0bc8":e<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":e<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":e<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(e,t){return 12===e&&(e=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===t?e<2?e:e+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===t||"\u0b95\u0bbe\u0bb2\u0bc8"===t||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n(9609))},2797:function(e,t,n){!function(e){"use strict";e.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,t){return 12===e&&(e=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===t?e<4?e:e+12:"\u0c09\u0c26\u0c2f\u0c02"===t?e:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===t?e>=10?e:e+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===t?e+12:void 0},meridiem:function(e,t,n){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}})}(n(9609))},2447:function(e,t,n){!function(e){"use strict";e.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:"minutu balun",ss:"minutu %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 t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(9609))},1335:function(e,t,n){!function(e){"use strict";var t={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"};e.defineLocale("tg",{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:"\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:"[\u041f\u0430\u0433\u043e\u04b3 \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(e,t){return 12===e&&(e=0),"\u0448\u0430\u0431"===t?e<4?e:e+12:"\u0441\u0443\u0431\u04b3"===t?e:"\u0440\u04ef\u0437"===t?e>=11?e:e+12:"\u0431\u0435\u0433\u043e\u04b3"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0448\u0430\u0431":e<11?"\u0441\u0443\u0431\u04b3":e<16?"\u0440\u04ef\u0437":e<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(9609))},8667:function(e,t,n){!function(e){"use strict";e.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,t,n){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",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(n(9609))},9914:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},1389:function(e,t,n){!function(e){"use strict";var t="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,i,r){var a=function(e){var n=Math.floor(e%1e3/100),i=Math.floor(e%100/10),r=e%10,a="";return n>0&&(a+=t[n]+"vatlh"),i>0&&(a+=(""!==a?" ":"")+t[i]+"maH"),r>0&&(a+=(""!==a?" ":"")+t[r]),""===a?"pagh":a}(e);switch(i){case"ss":return a+" lup";case"mm":return a+" tup";case"hh":return a+" rep";case"dd":return a+" jaj";case"MM":return a+" jar";case"yy":return a+" DIS"}}e.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){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu\u2019":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:n,m:"wa\u2019 tup",mm:n,h:"wa\u2019 rep",hh:n,d:"wa\u2019 jaj",dd:n,M:"wa\u2019 jar",MM:n,y:"wa\u2019 DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},3578:function(e,t,n){!function(e){"use strict";var t={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"};e.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_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".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 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",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'\u0131nc\u0131";var i=e%10;return e+(t[i]||t[e%100-i]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(9609))},6969:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[e+" m\xeduts",e+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[e+" \xfeoras",e+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return i||t?r[n][0]:r[n][1]}e.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(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"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:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(9609))},690:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},6509:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},55:function(e,t,n){!function(e){"use strict";e.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,t){return 12===e&&(e=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===t||"\u0633\u06d5\u06be\u06d5\u0631"===t||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===t?e:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===t||"\u0643\u06d5\u0686"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":i<900?"\u0633\u06d5\u06be\u06d5\u0631":i<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":i<1230?"\u0686\u06c8\u0634":i<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,t){switch(t){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}})}(n(9609))},2452:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===n?t?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":e+" "+(i=+e,r={ss:t?"\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:t?"\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:t?"\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"}[n].split("_"),i%10==1&&i%100!=11?r[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?r[1]:r[2]);var i,r}function n(e){return function(){return e+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}e.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(e,t){var n={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===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(t)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.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:n("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:n("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:n("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:n("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return n("[\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:t,m:t,mm:t,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:t,d:"\u0434\u0435\u043d\u044c",dd:t,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:t,y:"\u0440\u0456\u043a",yy:t},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u0456":e<12?"\u0440\u0430\u043d\u043a\u0443":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-\u0439";case"D":return e+"-\u0433\u043e";default:return e}},week:{dow:1,doy:7}})}(n(9609))},1151:function(e,t,n){!function(e){"use strict";var t=["\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"],n=["\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"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,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(e){return"\u0634\u0627\u0645"===e},meridiem:function(e,t,n){return e<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(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(n(9609))},6547:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},1555:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},6541:function(e,t,n){!function(e){"use strict";e.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:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".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,t,n){return e<12?n?"sa":"SA":n?"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 r\u1ed3i 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",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}})}(n(9609))},2401:function(e,t,n){!function(e){"use strict";e.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 t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(9609))},2341:function(e,t,n){!function(e){"use strict";e.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}})}(n(9609))},619:function(e,t,n){!function(e){"use strict";e.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,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1130?"\u4e0a\u5348":i<1230?"\u4e2d\u5348":i<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|\u5468)/,ordinal:function(e,t){switch(t){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\u5185",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",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(n(9609))},7058:function(e,t,n){!function(e){"use strict";e.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,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e2d\u5348"===t?e>=11?e:e+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1130?"\u4e0a\u5348":i<1230?"\u4e2d\u5348":i<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,t){switch(t){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"}})}(n(9609))},2782:function(e,t,n){!function(e){"use strict";e.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,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e2d\u5348"===t?e>=11?e:e+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1130?"\u4e0a\u5348":i<1230?"\u4e2d\u5348":i<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,t){switch(t){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"}})}(n(9609))},9609:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,i;function r(){return t.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){var n,i=[];for(n=0;n>>0,i=0;i0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,t-i.length)).toString().substr(1)+i}var H=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Y=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j={},F={};function W(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(F[e]=r),t&&(F[t[0]]=function(){return B(r.apply(this,arguments),t[1],t[2])}),n&&(F[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function U(e,t){return e.isValid()?(t=K(t,e.localeData()),j[t]=j[t]||function(e){var t,n,i,r=e.match(H);for(t=0,n=r.length;t=0&&Y.test(e);)e=e.replace(Y,i),Y.lastIndex=0,n-=1;return e}var Z=/\d/,G=/\d\d/,X=/\d{3}/,V=/\d{4}/,J=/[+-]?\d{6}/,Q=/\d\d?/,$=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,ie=/[+-]?\d{1,6}/,re=/\d+/,ae=/[+-]?\d+/,oe=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,ce=/[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,ue={};function le(e,t,n){ue[e]=z(t)?t:function(e,i){return e&&n?n:t}}function he(e,t){return h(ue,e)?ue[e](t._strict,t._locale):new RegExp(de(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,r){return t||n||i||r})))}function de(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var fe={};function pe(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),c(t)&&(i=function(e,n){n[t]=k(e)}),n=0;n68?1900:2e3)};var ye,be=Ae("FullYear",!0);function Ae(e,t){return function(n){return null!=n?(ke(this,e,n),r.updateOffset(this,t),this):we(this,e)}}function we(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function ke(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&_e(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Me(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Me(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=(t%12+12)%12;return e+=(t-n)/12,1===n?_e(e)?29:28:31-n%7%2}ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0?(s=new Date(e+400,t,n,i,r,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,i,r,a,o),s}function Pe(e){var t;if(e<100&&e>=0){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function Ne(e,t,n){var i=7+t-n;return-(7+Pe(e,0,i).getUTCDay()-t)%7+i-1}function Ie(e,t,n,i,r){var a,o,s=1+7*(t-1)+(7+n-i)%7+Ne(e,i,r);return s<=0?o=ve(a=e-1)+s:s>ve(e)?(a=e+1,o=s-ve(e)):(a=e,o=s),{year:a,dayOfYear:o}}function qe(e,t,n){var i,r,a=Ne(e.year(),t,n),o=Math.floor((e.dayOfYear()-a-1)/7)+1;return o<1?i=o+Be(r=e.year()-1,t,n):o>Be(e.year(),t,n)?(i=o-Be(e.year(),t,n),r=e.year()+1):(r=e.year(),i=o),{week:i,year:r}}function Be(e,t,n){var i=Ne(e,t,n),r=Ne(e+1,t,n);return(ve(e)-i+r)/7}function He(e,t){return e.slice(t,7).concat(e.slice(0,t))}W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),D("week","w"),D("isoWeek","W"),q("week",5),q("isoWeek",5),le("w",Q),le("ww",Q,G),le("W",Q),le("WW",Q,G),ge(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=k(e)}),W("d",0,"do","day"),W("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),W("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),W("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),D("day","d"),D("weekday","e"),D("isoWeekday","E"),q("day",11),q("weekday",11),q("isoWeekday",11),le("d",Q),le("e",Q),le("E",Q),le("dd",function(e,t){return t.weekdaysMinRegex(e)}),le("ddd",function(e,t){return t.weekdaysShortRegex(e)}),le("dddd",function(e,t){return t.weekdaysRegex(e)}),ge(["dd","ddd","dddd"],function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:p(n).invalidWeekday=e}),ge(["d","e","E"],function(e,t,n,i){t[i]=k(e)});var Ye="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Fe="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function We(e,t,n){var i,r,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)a=f([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=ye.call(this._weekdaysParse,o))?r:null:"ddd"===t?-1!==(r=ye.call(this._shortWeekdaysParse,o))?r:null:-1!==(r=ye.call(this._minWeekdaysParse,o))?r:null:"dddd"===t?-1!==(r=ye.call(this._weekdaysParse,o))||-1!==(r=ye.call(this._shortWeekdaysParse,o))||-1!==(r=ye.call(this._minWeekdaysParse,o))?r:null:"ddd"===t?-1!==(r=ye.call(this._shortWeekdaysParse,o))||-1!==(r=ye.call(this._weekdaysParse,o))||-1!==(r=ye.call(this._minWeekdaysParse,o))?r:null:-1!==(r=ye.call(this._minWeekdaysParse,o))||-1!==(r=ye.call(this._weekdaysParse,o))||-1!==(r=ye.call(this._shortWeekdaysParse,o))?r:null}var Ue=ce,Ke=ce,Ze=ce;function Ge(){function e(e,t){return t.length-e.length}var t,n,i,r,a,o=[],s=[],c=[],u=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),a=this.weekdays(n,""),o.push(i),s.push(r),c.push(a),u.push(i),u.push(r),u.push(a);for(o.sort(e),s.sort(e),c.sort(e),u.sort(e),t=0;t<7;t++)s[t]=de(s[t]),c[t]=de(c[t]),u[t]=de(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Xe(){return this.hours()%12||12}function Ve(e,t){W(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Je(e,t){return t._meridiemParse}W("H",["HH",2],0,"hour"),W("h",["hh",2],0,Xe),W("k",["kk",2],0,function(){return this.hours()||24}),W("hmm",0,0,function(){return""+Xe.apply(this)+B(this.minutes(),2)}),W("hmmss",0,0,function(){return""+Xe.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)}),W("Hmm",0,0,function(){return""+this.hours()+B(this.minutes(),2)}),W("Hmmss",0,0,function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)}),Ve("a",!0),Ve("A",!1),D("hour","h"),q("hour",13),le("a",Je),le("A",Je),le("H",Q),le("h",Q),le("k",Q),le("HH",Q,G),le("hh",Q,G),le("kk",Q,G),le("hmm",$),le("hmmss",ee),le("Hmm",$),le("Hmmss",ee),pe(["H","HH"],3),pe(["k","kk"],function(e,t,n){var i=k(e);t[3]=24===i?0:i}),pe(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),pe(["h","hh"],function(e,t,n){t[3]=k(e),p(n).bigHour=!0}),pe("hmm",function(e,t,n){var i=e.length-2;t[3]=k(e.substr(0,i)),t[4]=k(e.substr(i)),p(n).bigHour=!0}),pe("hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[3]=k(e.substr(0,i)),t[4]=k(e.substr(i,2)),t[5]=k(e.substr(r)),p(n).bigHour=!0}),pe("Hmm",function(e,t,n){var i=e.length-2;t[3]=k(e.substr(0,i)),t[4]=k(e.substr(i))}),pe("Hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[3]=k(e.substr(0,i)),t[4]=k(e.substr(i,2)),t[5]=k(e.substr(r))});var Qe,$e=Ae("Hours",!0),et={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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Te,monthsShort:Le,week:{dow:0,doy:6},weekdays:Ye,weekdaysMin:Fe,weekdaysShort:je,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function it(e){return e?e.toLowerCase().replace("_","-"):e}function rt(t){var i=null;if(!tt[t]&&e&&e.exports)try{i=Qe._abbr,n(6700)("./"+t),at(i)}catch(r){}return tt[t]}function at(e,t){var n;return e&&((n=s(t)?st(e):ot(e,t))?Qe=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Qe._abbr}function ot(e,t){if(null!==t){var n,i=et;if(t.abbr=e,null!=tt[e])E("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=tt[e]._config;else if(null!=t.parentLocale)if(null!=tt[t.parentLocale])i=tt[t.parentLocale]._config;else{if(null==(n=rt(t.parentLocale)))return nt[t.parentLocale]||(nt[t.parentLocale]=[]),nt[t.parentLocale].push({name:e,config:t}),null;i=n._config}return tt[e]=new x(O(i,t)),nt[e]&&nt[e].forEach(function(e){ot(e.name,e.config)}),at(e),tt[e]}return delete tt[e],null}function st(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Qe;if(!a(e)){if(t=rt(e))return t;e=[e]}return function(e){for(var t,n,i,r,a=0;a0;){if(i=rt(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&M(r,n,!0)>=t-1)break;t--}a++}return Qe}(e)}function ct(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>Me(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,p(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),p(e)._overflowWeeks&&-1===t&&(t=7),p(e)._overflowWeekday&&-1===t&&(t=8),p(e).overflow=t),e}function ut(e,t,n){return null!=e?e:null!=t?t:n}function lt(e){var t,n,i,a,o,s=[];if(!e._d){for(i=function(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,i,r,a,o,s,c;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)a=1,o=4,n=ut(t.GG,e._a[0],qe(Mt(),1,4).year),i=ut(t.W,1),((r=ut(t.E,1))<1||r>7)&&(c=!0);else{a=e._locale._week.dow,o=e._locale._week.doy;var u=qe(Mt(),a,o);n=ut(t.gg,e._a[0],u.year),i=ut(t.w,u.week),null!=t.d?((r=t.d)<0||r>6)&&(c=!0):null!=t.e?(r=t.e+a,(t.e<0||t.e>6)&&(c=!0)):r=a}i<1||i>Be(n,a,o)?p(e)._overflowWeeks=!0:null!=c?p(e)._overflowWeekday=!0:(s=Ie(n,i,r,a,o),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(o=ut(e._a[0],i[0]),(e._dayOfYear>ve(o)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=Pe(o,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=i[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Pe:De).apply(null,s),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(p(e).weekdayMismatch=!0)}}var ht=/^\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)?)?$/,dt=/^\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)?)?$/,ft=/Z|[+-]\d\d(?::?\d\d)?/,pt=[["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}/]],gt=[["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/]],mt=/^\/?Date\((\-?\d+)/i;function vt(e){var t,n,i,r,a,o,s=e._i,c=ht.exec(s)||dt.exec(s);if(c){for(p(e).iso=!0,t=0,n=pt.length;t0&&p(e).unusedInput.push(o),s=s.slice(s.indexOf(n)+n.length),u+=n.length),F[a]?(n?p(e).empty=!1:p(e).unusedTokens.push(a),me(a,n,e)):e._strict&&!n&&p(e).unusedTokens.push(a);p(e).charsLeftOver=c-u,s.length>0&&p(e).unusedInput.push(s),e._a[3]<=12&&!0===p(e).bigHour&&e._a[3]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),lt(e),ct(e)}else bt(e);else vt(e)}function wt(e){var t=e._i,n=e._f;return e._locale=e._locale||st(e._l),null===t||void 0===n&&""===t?m({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),A(t)?new b(ct(t)):(u(t)?e._d=t:a(n)?function(e){var t,n,i,r,a;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;rthis?this:e:m()});function Lt(e,t){var n,i;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Mt();for(n=t[0],i=1;i=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function $t(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function en(e,t){W(0,[e,e.length],0,t)}function tn(e,t,n,i,r){var a;return null==e?qe(this,i,r).year:(t>(a=Be(e,i,r))&&(t=a),nn.call(this,e,t,n,i,r))}function nn(e,t,n,i,r){var a=Ie(e,t,n,i,r),o=Pe(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}W(0,["gg",2],0,function(){return this.weekYear()%100}),W(0,["GG",2],0,function(){return this.isoWeekYear()%100}),en("gggg","weekYear"),en("ggggg","weekYear"),en("GGGG","isoWeekYear"),en("GGGGG","isoWeekYear"),D("weekYear","gg"),D("isoWeekYear","GG"),q("weekYear",1),q("isoWeekYear",1),le("G",ae),le("g",ae),le("GG",Q,G),le("gg",Q,G),le("GGGG",ne,V),le("gggg",ne,V),le("GGGGG",ie,J),le("ggggg",ie,J),ge(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=k(e)}),ge(["gg","GG"],function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)}),W("Q",0,"Qo","quarter"),D("quarter","Q"),q("quarter",7),le("Q",Z),pe("Q",function(e,t){t[1]=3*(k(e)-1)}),W("D",["DD",2],"Do","date"),D("date","D"),q("date",9),le("D",Q),le("DD",Q,G),le("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),pe(["D","DD"],2),pe("Do",function(e,t){t[2]=k(e.match(Q)[0])});var rn=Ae("Date",!0);W("DDD",["DDDD",3],"DDDo","dayOfYear"),D("dayOfYear","DDD"),q("dayOfYear",4),le("DDD",te),le("DDDD",X),pe(["DDD","DDDD"],function(e,t,n){n._dayOfYear=k(e)}),W("m",["mm",2],0,"minute"),D("minute","m"),q("minute",14),le("m",Q),le("mm",Q,G),pe(["m","mm"],4);var an=Ae("Minutes",!1);W("s",["ss",2],0,"second"),D("second","s"),q("second",15),le("s",Q),le("ss",Q,G),pe(["s","ss"],5);var on,sn=Ae("Seconds",!1);for(W("S",0,0,function(){return~~(this.millisecond()/100)}),W(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,function(){return 10*this.millisecond()}),W(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),W(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),W(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),W(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),W(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),D("millisecond","ms"),q("millisecond",16),le("S",te,Z),le("SS",te,G),le("SSS",te,X),on="SSSS";on.length<=9;on+="S")le(on,re);function cn(e,t){t[6]=k(1e3*("0."+e))}for(on="S";on.length<=9;on+="S")pe(on,cn);var un=Ae("Milliseconds",!1);W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var ln=b.prototype;function hn(e){return e}ln.add=Ut,ln.calendar=function(e,t){var n=e||Mt(),i=Pt(n,this).startOf("day"),a=r.calendarFormat(this,i)||"sameElse",o=t&&(z(t[a])?t[a].call(this,n):t[a]);return this.format(o||this.localeData().calendar(a,this,Mt(n)))},ln.clone=function(){return new b(this)},ln.diff=function(e,t,n){var i,r,a;if(!this.isValid())return NaN;if(!(i=Pt(e,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),t=P(t)){case"year":a=Zt(this,i)/12;break;case"month":a=Zt(this,i);break;case"quarter":a=Zt(this,i)/3;break;case"second":a=(this-i)/1e3;break;case"minute":a=(this-i)/6e4;break;case"hour":a=(this-i)/36e5;break;case"day":a=(this-i-r)/864e5;break;case"week":a=(this-i-r)/6048e5;break;default:a=this-i}return n?a:w(a)},ln.endOf=function(e){var t;if(void 0===(e=P(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?$t:Qt;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-Jt(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-Jt(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-Jt(t,1e3)-1}return this._d.setTime(t),r.updateOffset(this,!0),this},ln.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=U(this,e);return this.localeData().postformat(t)},ln.from=function(e,t){return this.isValid()&&(A(e)&&e.isValid()||Mt(e).isValid())?Ht({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ln.fromNow=function(e){return this.from(Mt(),e)},ln.to=function(e,t){return this.isValid()&&(A(e)&&e.isValid()||Mt(e).isValid())?Ht({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ln.toNow=function(e){return this.to(Mt(),e)},ln.get=function(e){return z(this[e=P(e)])?this[e]():this},ln.invalidAt=function(){return p(this).overflow},ln.isAfter=function(e,t){var n=A(e)?e:Mt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=P(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?U(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):z(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z")):U(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},ln.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+t+'[")]')},ln.toJSON=function(){return this.isValid()?this.toISOString():null},ln.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ln.unix=function(){return Math.floor(this.valueOf()/1e3)},ln.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ln.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ln.year=be,ln.isLeapYear=function(){return _e(this.year())},ln.weekYear=function(e){return tn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ln.isoWeekYear=function(e){return tn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},ln.quarter=ln.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},ln.month=ze,ln.daysInMonth=function(){return Me(this.year(),this.month())},ln.week=ln.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},ln.isoWeek=ln.isoWeeks=function(e){var t=qe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},ln.weeksInYear=function(){var e=this.localeData()._week;return Be(this.year(),e.dow,e.doy)},ln.isoWeeksInYear=function(){return Be(this.year(),1,4)},ln.date=rn,ln.day=ln.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},ln.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},ln.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},ln.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},ln.hour=ln.hours=$e,ln.minute=ln.minutes=an,ln.second=ln.seconds=sn,ln.millisecond=ln.milliseconds=un,ln.utcOffset=function(e,t,n){var i,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Dt(se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=Nt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==e&&(!t||this._changeInProgress?Wt(this,Ht(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:Nt(this)},ln.utc=function(e){return this.utcOffset(0,e)},ln.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Nt(this),"m")),this},ln.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Dt(oe,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},ln.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Mt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},ln.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ln.isLocal=function(){return!!this.isValid()&&!this._isUTC},ln.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ln.isUtc=It,ln.isUTC=It,ln.zoneAbbr=function(){return this._isUTC?"UTC":""},ln.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ln.dates=T("dates accessor is deprecated. Use date instead.",rn),ln.months=T("months accessor is deprecated. Use month instead",ze),ln.years=T("years accessor is deprecated. Use year instead",be),ln.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),ln.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(_(e,this),(e=wt(e))._a){var t=e._isUTC?f(e._a):Mt(e._a);this._isDSTShifted=this.isValid()&&M(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var dn=x.prototype;function fn(e,t,n,i){var r=st(),a=f().set(i,t);return r[n](a,e)}function pn(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return fn(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=fn(e,i,n,"month");return r}function gn(e,t,n,i){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var r,a=st(),o=e?a._week.dow:0;if(null!=n)return fn(t,(n+o)%7,i,"day");var s=[];for(r=0;r<7;r++)s[r]=fn(t,(r+o)%7,i,"day");return s}dn.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return z(i)?i.call(t,n):i},dn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},dn.invalidDate=function(){return this._invalidDate},dn.ordinal=function(e){return this._ordinal.replace("%d",e)},dn.preparse=hn,dn.postformat=hn,dn.relativeTime=function(e,t,n,i){var r=this._relativeTime[n];return z(r)?r(e,t,n,i):r.replace(/%d/i,e)},dn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return z(n)?n(t):n.replace(/%s/i,t)},dn.set=function(e){var t,n;for(n in e)z(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},dn.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ce).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone},dn.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ce.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},dn.monthsParse=function(e,t,n){var i,r,a;if(this._monthsParseExact)return Se.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=f([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(a="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},dn.monthsRegex=function(e){return this._monthsParseExact?(h(this,"_monthsRegex")||Re.call(this),e?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=xe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},dn.monthsShortRegex=function(e){return this._monthsParseExact?(h(this,"_monthsRegex")||Re.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=Oe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},dn.week=function(e){return qe(e,this._week.dow,this._week.doy).week},dn.firstDayOfYear=function(){return this._week.doy},dn.firstDayOfWeek=function(){return this._week.dow},dn.weekdays=function(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?He(n,this._week.dow):e?n[e.day()]:n},dn.weekdaysMin=function(e){return!0===e?He(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},dn.weekdaysShort=function(e){return!0===e?He(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},dn.weekdaysParse=function(e,t,n){var i,r,a;if(this._weekdaysParseExact)return We.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=f([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(a="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},dn.weekdaysRegex=function(e){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=Ue),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},dn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ke),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},dn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ze),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},dn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},dn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},at("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===k(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=T("moment.lang is deprecated. Use moment.locale instead.",at),r.langData=T("moment.langData is deprecated. Use moment.localeData instead.",st);var mn=Math.abs;function vn(e,t,n,i){var r=Ht(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function _n(e){return e<0?Math.floor(e):Math.ceil(e)}function yn(e){return 4800*e/146097}function bn(e){return 146097*e/4800}function An(e){return function(){return this.as(e)}}var wn=An("ms"),kn=An("s"),Mn=An("m"),Cn=An("h"),Tn=An("d"),Ln=An("w"),Sn=An("M"),En=An("Q"),zn=An("y");function On(e){return function(){return this.isValid()?this._data[e]:NaN}}var xn=On("milliseconds"),Rn=On("seconds"),Dn=On("minutes"),Pn=On("hours"),Nn=On("days"),In=On("months"),qn=On("years"),Bn=Math.round,Hn={ss:44,s:45,m:45,h:22,d:26,M:11};function Yn(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}var jn=Math.abs;function Fn(e){return(e>0)-(e<0)||+e}function Wn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=jn(this._milliseconds)/1e3,i=jn(this._days),r=jn(this._months);e=w(n/60),t=w(e/60),n%=60,e%=60;var a=w(r/12),o=r%=12,s=i,c=t,u=e,l=n?n.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var d=h<0?"-":"",f=Fn(this._months)!==Fn(h)?"-":"",p=Fn(this._days)!==Fn(h)?"-":"",g=Fn(this._milliseconds)!==Fn(h)?"-":"";return d+"P"+(a?f+a+"Y":"")+(o?f+o+"M":"")+(s?p+s+"D":"")+(c||u||l?"T":"")+(c?g+c+"H":"")+(u?g+u+"M":"")+(l?g+l+"S":"")}var Un=Et.prototype;return Un.isValid=function(){return this._isValid},Un.abs=function(){var e=this._data;return this._milliseconds=mn(this._milliseconds),this._days=mn(this._days),this._months=mn(this._months),e.milliseconds=mn(e.milliseconds),e.seconds=mn(e.seconds),e.minutes=mn(e.minutes),e.hours=mn(e.hours),e.months=mn(e.months),e.years=mn(e.years),this},Un.add=function(e,t){return vn(this,e,t,1)},Un.subtract=function(e,t){return vn(this,e,t,-1)},Un.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=P(e))||"quarter"===e||"year"===e)switch(n=this._months+yn(t=this._days+i/864e5),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(bn(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},Un.asMilliseconds=wn,Un.asSeconds=kn,Un.asMinutes=Mn,Un.asHours=Cn,Un.asDays=Tn,Un.asWeeks=Ln,Un.asMonths=Sn,Un.asQuarters=En,Un.asYears=zn,Un.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN},Un._bubble=function(){var e,t,n,i,r,a=this._milliseconds,o=this._days,s=this._months,c=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*_n(bn(s)+o),o=0,s=0),c.milliseconds=a%1e3,e=w(a/1e3),c.seconds=e%60,t=w(e/60),c.minutes=t%60,n=w(t/60),c.hours=n%24,o+=w(n/24),s+=r=w(yn(o)),o-=_n(bn(r)),i=w(s/12),s%=12,c.days=o,c.months=s,c.years=i,this},Un.clone=function(){return Ht(this)},Un.get=function(e){return e=P(e),this.isValid()?this[e+"s"]():NaN},Un.milliseconds=xn,Un.seconds=Rn,Un.minutes=Dn,Un.hours=Pn,Un.days=Nn,Un.weeks=function(){return w(this.days()/7)},Un.months=In,Un.years=qn,Un.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var i=Ht(e).abs(),r=Bn(i.as("s")),a=Bn(i.as("m")),o=Bn(i.as("h")),s=Bn(i.as("d")),c=Bn(i.as("M")),u=Bn(i.as("y")),l=r<=Hn.ss&&["s",r]||r0,l[4]=n,Yn.apply(null,l)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},Un.toISOString=Wn,Un.toString=Wn,Un.toJSON=Wn,Un.locale=Gt,Un.localeData=Vt,Un.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Wn),Un.lang=Xt,W("X",0,0,"unix"),W("x",0,0,"valueOf"),le("x",ae),le("X",/[+-]?\d+(\.\d{1,3})?/),pe("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),pe("x",function(e,t,n){n._d=new Date(k(e))}),r.version="2.24.0",t=Mt,r.fn=ln,r.min=function(){return Lt("isBefore",[].slice.call(arguments,0))},r.max=function(){return Lt("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=f,r.unix=function(e){return Mt(1e3*e)},r.months=function(e,t){return pn(e,t,"months")},r.isDate=u,r.locale=at,r.invalid=m,r.duration=Ht,r.isMoment=A,r.weekdays=function(e,t,n){return gn(e,t,n,"weekdays")},r.parseZone=function(){return Mt.apply(null,arguments).parseZone()},r.localeData=st,r.isDuration=zt,r.monthsShort=function(e,t){return pn(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return gn(e,t,n,"weekdaysMin")},r.defineLocale=ot,r.updateLocale=function(e,t){if(null!=t){var n,i,r=et;null!=(i=rt(e))&&(r=i._config),(n=new x(t=O(r,t))).parentLocale=tt[e],tt[e]=n,at(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?tt[e]=tt[e].parentLocale:null!=tt[e]&&delete tt[e]);return tt[e]},r.locales=function(){return L(tt)},r.weekdaysShort=function(e,t,n){return gn(e,t,n,"weekdaysShort")},r.normalizeUnits=P,r.relativeTimeRounding=function(e){return void 0===e?Bn:"function"==typeof e&&(Bn=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Hn[e]&&(void 0===t?Hn[e]:(Hn[e]=t,"s"===e&&(Hn.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=ln,r.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"},r}()},963:function(e){"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,i,r){i=i||"=";var a={};if("string"!=typeof e||0===e.length)return a;var o=/\+/g;e=e.split(n=n||"&");var s=1e3;r&&"number"==typeof r.maxKeys&&(s=r.maxKeys);var c=e.length;s>0&&c>s&&(c=s);for(var u=0;u=0?(l=p.substr(0,g),h=p.substr(g+1)):(l=p,h=""),d=decodeURIComponent(l),f=decodeURIComponent(h),t(a,d)?Array.isArray(a[d])?a[d].push(f):a[d]=[a[d],f]:a[d]=f}return a}},5341:function(e){"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,n,i,r){return n=n||"&",i=i||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map(function(r){var a=encodeURIComponent(t(r))+i;return Array.isArray(e[r])?e[r].map(function(e){return a+encodeURIComponent(t(e))}).join(n):a+encodeURIComponent(t(e[r]))}).join(n):r?encodeURIComponent(t(r))+i+encodeURIComponent(t(e)):""}},6577:function(e,t,n){"use strict";n(963),n(5341)},9867:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var i=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this)).parent=e,a.outerValue=i,a.outerIndex=r,a.index=0,a}return _createClass(n,[{key:"_next",value:function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}},{key:"_error",value:function(e){this.parent.notifyError(e,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(n(6673).L)},3103:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});var i=n(653),r=n(878),a=n(1225),o=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.kind=t,this.value=n,this.error=i,this.hasValue="N"===t}return _createClass(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return(0,r.of)(this.value);case"E":return(0,a._)(this.error);case"C":return(0,i.c)()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}();return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}()},8318:function(e,t,n){"use strict";n.d(t,{y:function(){return u}});var i=n(6673),r=n(5331),a=n(7498),o=n(6197),s=n(3392),c=n(1484),u=function(){var e=function(){function e(t){_classCallCheck(this,e),this._isScalar=!1,t&&(this._subscribe=t)}return _createClass(e,[{key:"lift",value:function(t){var n=new e;return n.source=this,n.operator=t,n}},{key:"subscribe",value:function(e,t,n){var o=this.operator,s=function(e,t,n){if(e){if(e instanceof i.L)return e;if(e[r.b])return e[r.b]()}return e||t||n?new i.L(e,t,n):new i.L(a.c)}(e,t,n);if(s.add(o?o.call(s,this.source):this.source||c.v.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),c.v.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){c.v.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e,n=t.closed,r=t.destination,a=t.isStopped;if(n||a)return!1;e=r&&r instanceof i.L?r:null}return!0}(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=l(t))(function(t,i){var r;r=n.subscribe(function(t){try{e(t)}catch(n){i(n),r&&r.unsubscribe()}},i,t)})}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:o.L,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&"number"==typeof t[t.length-1]&&(s=t.pop())):"number"==typeof u&&(s=t.pop()),null===c&&1===t.length&&t[0]instanceof i.y?t[0]:(0,a.J)(s)((0,o.n)(t,c))}},878:function(e,t,n){"use strict";n.d(t,{of:function(){return o}});var i=n(6163),r=n(9342),a=n(2570);function o(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:r.P;return function(n){return n.lift(new o(e,t))}}var o=function(){function e(t,n){_classCallCheck(this,e),this.dueTime=t,this.scheduler=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new s(e,this.dueTime,this.scheduler))}}]),e}(),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e)).dueTime=i,a.scheduler=r,a.debouncedSubscription=null,a.lastValue=null,a.hasValue=!1,a}return _createClass(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(i.L);function c(e){e.debouncedNext()}},7768:function(e,t,n){"use strict";n.d(t,{d:function(){return r}});var i=n(6673);function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new a(e))}}var a=function(){function e(t){_classCallCheck(this,e),this.defaultValue=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new o(e,this.defaultValue))}}]),e}(),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).defaultValue=i,r.isEmpty=!0,r}return _createClass(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(i.L)},509:function(e,t,n){"use strict";n.d(t,{g:function(){return s}});var i=n(8569),r=n(8802),a=n(6673),o=n(3103);function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.P,n=(0,r.J)(e)?+e-t.now():Math.abs(e);return function(e){return e.lift(new c(n,t))}}var c=function(){function e(t,n){_classCallCheck(this,e),this.delay=t,this.scheduler=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.delay,this.scheduler))}}]),e}(),u=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e)).delay=i,a.scheduler=r,a.queue=[],a.active=!1,a.errored=!1,a}return _createClass(n,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new l(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(o.P.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(o.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,i=e.scheduler,r=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var a=Math.max(0,n[0].time-i.now());this.schedule(e,a)}else this.unsubscribe(),t.active=!1}}]),n}(a.L),l=function e(t,n){_classCallCheck(this,e),this.time=t,this.notification=n}},3835:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});var i=n(6673);function r(e,t){return function(n){return n.lift(new a(e,t))}}var a=function(){function e(t,n){_classCallCheck(this,e),this.predicate=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new o(e,this.predicate,this.thisArg))}}]),e}(),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e)).predicate=i,a.thisArg=r,a.count=0,a}return _createClass(n,[{key:"_next",value:function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}]),n}(i.L)},3530:function(e,t,n){"use strict";n.d(t,{P:function(){return u}});var i=n(9665),r=n(3835),a=n(611),o=n(7768),s=n(790),c=n(3392);function u(e,t){var n=arguments.length>=2;return function(u){return u.pipe(e?(0,r.h)(function(t,n){return e(t,n,u)}):c.y,(0,a.q)(1),n?(0,o.d)(t):(0,s.T)(function(){return new i.K}))}}},9996:function(e,t,n){"use strict";n.d(t,{U:function(){return r}});var i=n(6673);function r(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new a(e,t))}}var a=function(){function e(t,n){_classCallCheck(this,e),this.project=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new o(e,this.project,this.thisArg))}}]),e}(),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e)).project=i,a.count=0,a.thisArg=r||_assertThisInitialized(a),a}return _createClass(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(i.L)},7471:function(e,t,n){"use strict";n.d(t,{J:function(){return a}});var i=n(3982),r=n(3392);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return(0,i.zg)(r.y,e)}},3982:function(e,t,n){"use strict";n.d(t,{zg:function(){return c}});var i=n(6268),r=n(9829),a=n(9867),o=n(9996),s=n(9764);function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(i){return i.pipe(c(function(n,i){return(0,s.D)(e(n,i)).pipe((0,o.U)(function(e,r){return t(n,e,i,r)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new u(e,n))})}var u=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;_classCallCheck(this,e),this.project=t,this.concurrent=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new l(e,this.project,this.concurrent))}}]),e}(),l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _classCallCheck(this,n),(r=t.call(this,e)).project=i,r.concurrent=a,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return _createClass(n,[{key:"_next",value:function(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(r.L)},1564:function(e,t,n){"use strict";n.d(t,{x:function(){return r}});var i=n(6673);function r(){return function(e){return e.lift(new a(e))}}var a=function(){function e(t){_classCallCheck(this,e),this.connectable=t}return _createClass(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var i=new o(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),e}(),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).connectable=i,r}return _createClass(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null}}]),n}(i.L)},1055:function(e,t,n){"use strict";n.d(t,{B:function(){return s}});var i=n(2875),r=n(1564),a=n(5959);function o(){return new a.xQ}function s(){return function(e){return(0,r.x)()((t=o,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,i.N);return r.source=e,r.subjectFactory=n,r})(e));var t}}},4689:function(e,t,n){"use strict";n.d(t,{w:function(){return c}});var i=n(9829),r=n(9867),a=n(6268),o=n(9996),s=n(9764);function c(e,t){return"function"==typeof t?function(n){return n.pipe(c(function(n,i){return(0,s.D)(e(n,i)).pipe((0,o.U)(function(e,r){return t(n,e,i,r)}))}))}:function(t){return t.lift(new u(e))}}var u=function(){function e(t){_classCallCheck(this,e),this.project=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new l(e,this.project))}}]),e}(),l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).project=i,r.index=0,r}return _createClass(n,[{key:"_next",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this._innerSub(t,e,n)}},{key:"_innerSub",value:function(e,t,n){var i=this.innerSubscription;i&&i.unsubscribe();var o=new r.d(this,t,n),s=this.destination;s.add(o),this.innerSubscription=(0,a.D)(this,e,void 0,void 0,o),this.innerSubscription!==o&&s.add(this.innerSubscription)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||_get(_getPrototypeOf(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=null}},{key:"notifyComplete",value:function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&_get(_getPrototypeOf(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e,t,n,i,r){this.destination.next(t)}}]),n}(i.L)},611:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var i=n(6673),r=n(8402),a=n(653);function o(e){return function(t){return 0===e?(0,a.c)():t.lift(new s(e))}}var s=function(){function e(t){if(_classCallCheck(this,e),this.total=t,this.total<0)throw new r.W}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new c(e,this.total))}}]),e}(),c=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return _createClass(n,[{key:"_next",value:function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}]),n}(i.L)},6599:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var i=n(6673);function r(){}var a=n(5024);function o(e,t,n){return function(i){return i.lift(new s(e,t,n))}}var s=function(){function e(t,n,i){_classCallCheck(this,e),this.nextOrObserver=t,this.error=n,this.complete=i}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new c(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),c=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,o,s){var c;return _classCallCheck(this,n),(c=t.call(this,e))._tapNext=r,c._tapError=r,c._tapComplete=r,c._tapError=o||r,c._tapComplete=s||r,(0,a.m)(i)?(c._context=_assertThisInitialized(c),c._tapNext=i):i&&(c._context=i,c._tapNext=i.next||r,c._tapError=i.error||r,c._tapComplete=i.complete||r),c}return _createClass(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(i.L)},790:function(e,t,n){"use strict";n.d(t,{T:function(){return a}});var i=n(9665),r=n(6673);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return function(t){return t.lift(new o(e))}}var o=function(){function e(t){_classCallCheck(this,e),this.errorFactory=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new s(e,this.errorFactory))}}]),e}(),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).errorFactory=i,r.hasValue=!1,r}return _createClass(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(r.L);function c(){return new i.K}},9085:function(e,t,n){"use strict";n.d(t,{V:function(){return h}});var i=n(8569),r=function(){function e(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return e.prototype=Object.create(Error.prototype),e}(),a=n(8802),o=n(9829),s=n(6268),c=function(){function e(t,n,i,r){_classCallCheck(this,e),this.waitFor=t,this.absoluteTimeout=n,this.withObservable=i,this.scheduler=r}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}]),e}(),u=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o){var s;return _classCallCheck(this,n),(s=t.call(this,e)).absoluteTimeout=i,s.waitFor=r,s.withObservable=a,s.scheduler=o,s.action=null,s.scheduleTimeout(),s}return _createClass(n,[{key:"scheduleTimeout",value:function(){var e=this.action;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(n.dispatchTimeout,this.waitFor,this))}},{key:"_next",value:function(e){this.absoluteTimeout||this.scheduleTimeout(),_get(_getPrototypeOf(n.prototype),"_next",this).call(this,e)}},{key:"_unsubscribe",value:function(){this.action=null,this.scheduler=null,this.withObservable=null}}],[{key:"dispatchTimeout",value:function(e){var t=e.withObservable;e._unsubscribeAndRecycle(),e.add((0,s.D)(e,t))}}]),n}(o.L),l=n(1225);function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.P;return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.P;return function(i){var r=(0,a.J)(e),o=r?+e-n.now():Math.abs(e);return i.lift(new c(o,r,t,n))}}(e,(0,l._)(new r),t)}},2570:function(e,t,n){"use strict";n.d(t,{r:function(){return a}});var i=n(8318),r=n(7570);function a(e,t){return new i.y(function(n){var i=new r.w,a=0;return i.add(t.schedule(function(){a!==e.length?(n.next(e[a++]),n.closed||i.add(this.schedule())):n.complete()})),i})}},8277:function(e,t,n){"use strict";n.d(t,{o:function(){return i}});var i=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r.pending=!1,r}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n,i=!1;try{this.work(e)}catch(r){i=!0,n=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),n}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){return _classCallCheck(this,n),t.call(this)}return _createClass(n,[{key:"schedule",value:function(e){return this}}]),n}(n(7570).w))},1098:function(e,t,n){"use strict";n.d(t,{v:function(){return r}});var i=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;_classCallCheck(this,e),this.SchedulerAction=t,this.now=n}return _createClass(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}(),r=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.now;return _classCallCheck(this,n),(r=t.call(this,e,function(){return n.delegate&&n.delegate!==_assertThisInitialized(r)?n.delegate.now():a()})).actions=[],r.active=!1,r.scheduled=void 0,r}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,i):_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,e,t,i)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(i)},8569:function(e,t,n){"use strict";n.d(t,{P:function(){return r}});var i=n(8277),r=new(n(1098).v)(i.o)},5686:function(e,t,n){"use strict";n.d(t,{hZ:function(){return i}});var i="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},6197:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var i="function"==typeof Symbol&&Symbol.observable||"@@observable"},5331:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var i="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},8402:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var i=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}()},9665:function(e,t,n){"use strict";n.d(t,{K:function(){return i}});var i=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}()},3895:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});var i=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},4294:function(e,t,n){"use strict";function i(e){setTimeout(function(){throw e},0)}n.d(t,{z:function(){return i}})},3392:function(e,t,n){"use strict";function i(e){return e}n.d(t,{y:function(){return i}})},8470:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var i=Array.isArray||function(e){return e&&"number"==typeof e.length}},9653:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var i=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},8802:function(e,t,n){"use strict";function i(e){return e instanceof Date&&!isNaN(+e)}n.d(t,{J:function(){return i}})},5024:function(e,t,n){"use strict";function i(e){return"function"==typeof e}n.d(t,{m:function(){return i}})},2056:function(e,t,n){"use strict";function i(e){return null!==e&&"object"==typeof e}n.d(t,{K:function(){return i}})},5168:function(e,t,n){"use strict";function i(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,{t:function(){return i}})},6163:function(e,t,n){"use strict";function i(e){return e&&"function"==typeof e.schedule}n.d(t,{K:function(){return i}})},6015:function(e,t,n){"use strict";n.d(t,{s:function(){return l}});var i=n(625),r=n(4294),a=n(5686),o=n(6197),s=n(9653),c=n(5168),u=n(2056),l=function(e){if(e&&"function"==typeof e[o.L])return l=e,function(e){var t=l[o.L]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if((0,s.z)(e))return(0,i.V)(e);if((0,c.t)(e))return n=e,function(e){return n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,r.z),e};if(e&&"function"==typeof e[a.hZ])return t=e,function(e){for(var n=t[a.hZ]();;){var i=n.next();if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e};var t,n,l,h=(0,u.K)(e)?"an invalid object":"'".concat(e,"'");throw new TypeError("You provided ".concat(h," where a stream was expected. You can provide an Observable, Promise, Array, or Iterable."))}},625:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var i=function(e){return function(t){for(var n=0,i=e.length;n4&&void 0!==arguments[4]?arguments[4]:new i.d(e,n,o);if(!s.closed)return t instanceof a.y?t.subscribe(s):(0,r.s)(t)(s)}},7632:function(e,t,n){"use strict";function i(e,t,n,i){return new(n||(n=Promise))(function(r,a){function o(e){try{c(i.next(e))}catch(t){a(t)}}function s(e){try{c(i.throw(e))}catch(t){a(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,s)}c((i=i.apply(e,t||[])).next())})}n.d(t,{mG:function(){return i}})},4360:function(e){"use strict";e.exports=JSON.parse('{"version":"2020a","zones":["Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5","Africa/Accra|LMT GMT +0020|.Q 0 -k|012121212121212121212121212121212121212121212121|-26BbX.8 6tzX.8 MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE|41e5","Africa/Nairobi|LMT EAT +0230 +0245|-2r.g -30 -2u -2J|01231|-1F3Cr.g 3Dzr.g okMu MFXJ|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 WAT|-d.A -10|01|-22y0d.A|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 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 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 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 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|01212121212121212121212121212121213|-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|","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/Port_of_Spain|LMT AST|46.4 40|01|-2kNvR.U|43e3","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/Curacao|LMT -0430 AST|4z.L 4u 40|012|-2kV7o.d 28KLS.d|15e4","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/Atikokan|CST CDT CWT CPT EST|60 50 50 50 50|0101234|-25TQ0 1in0 Rnb0 3je0 8x30 iw0|28e2","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 BMT AST ADT|3W.t 3W.t 40 30|01232323232|-1Q0I1.v jsM0 1ODC1.v 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 CDT|5Q.M 60 5u 50|01212121212121212121212121212121212121212121212121213131|-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 1wou Rbu 1f0Mu qn0 lxB0 mn0|57e3","America/Blanc-Sablon|AST ADT AWT APT|40 30 30 30|010230|-25TS0 1in0 UGp0 8x50 iu0|11e2","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/Panama|CMT EST|5j.A 50|01|-2uduE.o|15e5","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/Creston|MST PST|70 80|010|-29DR0 43B0|53e2","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|01010230405656565656565656565656565656565656565656565656565656565656565656565656565656565657|-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|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|01212121212121212121212121212121212121212121212121212121212121212121212121232121212121212121212121212121212121212121|-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 1zb0 5Ip0 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 -0345 -03 -04|3Q.E 3J 30 40|0123|-2dvU7.k 2r6LQ.k Bxbf|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/Nassau|LMT EST EDT|59.u 50 40|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2kNuO.u 26XdO.u 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|24e4","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/Phoenix|MST MDT MWT|70 60 60|01010202010|-261r0 1nX0 11B0 1nX0 SgN0 4Al1 Ap0 1db0 SWqX 1cL0|42e5","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/Puerto_Rico|AST AWT APT|40 30 30|0120|-17lU0 7XT0 iu0|24e5","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|01010230405656565656565656565656565656565656565656565656565656565656565656565656565656565657|-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|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|01212121|-2q00 1DjS0 T90 40P0 KL0 blz0 3m10|10","Antarctica/Davis|-00 +07 +05|0 -70 -50|01012121|-vyo0 iXt0 alj0 1D7v0 VB0 3Wn0 KN0|70","Antarctica/DumontDUrville|-00 +10|0 -a0|0101|-U0o0 cfq0 bFm0|80","Antarctica/Macquarie|AEST AEDT -00 +11|-a0 -b0 0 -b0|0102010101010101010101010101010101010101010101010101010101010101010101010101010101010101013|-29E80 19X0 4SL0 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 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","Antarctica/Syowa|-00 +03|0 -30|01|-vs00|20","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/Riyadh|LMT +03|-36.Q -30|01|-TvD6.Q|57e5","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 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|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|0101010101010101010101010101010123232323232323232323232323232320101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2q0 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 pBd0 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 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 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 1nz0 1220 1qL0 WN0 1qL0 WN0 1qL0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0|18e5","Asia/Hebron|EET EEST IST IDT|-20 -30 -20 -30|010101010101010101010101010101012323232323232323232323232323232010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2q0 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 pBd0 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 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 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 1nz0 1220 1qL0 WN0 1qL0 WN0 1qL0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0 Wo0 1rc0 11c0 1oo0 11c0 1oo0 11c0 1oo0 11c0 1rc0|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|012121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-26Bek.E SyMk.E 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 3LB0 Em0 or0 1cn0 1dB0 16n0 10O0 1ja0 1tC0 14o0 1cM0 1a00 11A0 1Na0 An0 1MP0 AJ0 1Kp0 LC0 1oo0 Wl0 EQN0 Db0 1fB0 Rb0 bXd0 gM0 8Q00 IM0 1wM0 11z0 1C10 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|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121232323232323232323232323232323234323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-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 3Co0 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|LMT AST ADT|4j.i 40 30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1BnRE.G 1LTbE.G 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|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-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 3Co0 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|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0|20e5","Australia/Broken_Hill|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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/Currie|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 19X0 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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|746","Australia/Darwin|ACST ACDT|-9u -au|010101010|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0|12e4","Australia/Eucla|+0845 +0945|-8J -9J|0101010101010101010|-293kI xcX 10jd0 yL0 1cN0 1cL0 1gSp0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|368","Australia/Hobart|AEST AEDT|-a0 -b0|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 19X0 10jd0 yL0 1cN0 1cL0 1fB0 19X0 VfB0 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/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|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0|10","Australia/Melbourne|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 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|-293jX xcX 10jd0 yL0 1cN0 1cL0 1gSp0 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||","Pacific/Port_Moresby|+10|-a0|0||25e4","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 1ip0 17b0 1op0 1tb0 Q2m0 3Ne0 WM0 1fA0 1cM0 1cM0 1oJ0 1dc0 1030 1fA0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1iM0 1fA0 8Ha0 Rb0 1wN0 Rb0 1BB0 Lz0 1C20 LB0 SNX0 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|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|012121212121212121212121212121212121212121212321232123212321212121212121212121212121212121212121214121212121212121212121212121212124545454212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-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 3Co0 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|-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 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|-2nco8.l cNb8.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|012323232323232321212121212121212121212121212121212121212121212|-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|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|-2yO3F.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|01232345454545454545454545454545454545454545454545454545454|-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 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|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|0121212121212121212121|-2l9nd.g 2Szcd.g 1cL0 1oN0 10L0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 Lz0 1Nd0 An0|66e3","Pacific/Enderbury|-12 -11 +13|c0 b0 -d0|012|nIc0 B7X0|1","Pacific/Fakaofo|-11 +13|b0 -d0|01|1Gfn0|483","Pacific/Fiji|LMT +12 +13|-bT.I -c0 -d0|0121212121212121212121212121212121212121212121212121212121212121|-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 20o0 s00 20o0 pc0 20o0 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|-1120 -1130 -11|bk bu b0|012|-KfME 17y0a|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|-1030 -0930 -10|au 9u a0|012121212121212121212121212|lyWu 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|+1220 +13 +14|-ck -d0 -e0|0121212121|-1aB0k 2n5dk 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/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/Atikokan|America/Coral_Harbour","America/Chicago|US/Central","America/Curacao|America/Aruba","America/Curacao|America/Kralendijk","America/Curacao|America/Lower_Princes","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/Los_Angeles|US/Pacific-New","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/Cayman","America/Phoenix|US/Arizona","America/Port_of_Spain|America/Anguilla","America/Port_of_Spain|America/Antigua","America/Port_of_Spain|America/Dominica","America/Port_of_Spain|America/Grenada","America/Port_of_Spain|America/Guadeloupe","America/Port_of_Spain|America/Marigot","America/Port_of_Spain|America/Montserrat","America/Port_of_Spain|America/St_Barthelemy","America/Port_of_Spain|America/St_Kitts","America/Port_of_Spain|America/St_Lucia","America/Port_of_Spain|America/St_Thomas","America/Port_of_Spain|America/St_Vincent","America/Port_of_Spain|America/Tortola","America/Port_of_Spain|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|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|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/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/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|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/Currie 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/Vancouver America/Whitehorse America/Dawson","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/Astrakhan Europe/Volgograd 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"]}')},6700:function(e,t,n){var i={"./af":776,"./af.js":776,"./ar":7634,"./ar-dz":2758,"./ar-dz.js":2758,"./ar-kw":4980,"./ar-kw.js":4980,"./ar-ly":9602,"./ar-ly.js":9602,"./ar-ma":2500,"./ar-ma.js":2500,"./ar-sa":6909,"./ar-sa.js":6909,"./ar-tn":2735,"./ar-tn.js":2735,"./ar.js":7634,"./az":7798,"./az.js":7798,"./be":9949,"./be.js":9949,"./bg":4590,"./bg.js":4590,"./bm":5938,"./bm.js":5938,"./bn":595,"./bn.js":595,"./bo":4756,"./bo.js":4756,"./br":7277,"./br.js":7277,"./bs":4166,"./bs.js":4166,"./ca":3943,"./ca.js":3943,"./cs":3474,"./cs.js":3474,"./cv":2218,"./cv.js":2218,"./cy":1061,"./cy.js":1061,"./da":2743,"./da.js":2743,"./de":1899,"./de-at":8580,"./de-at.js":8580,"./de-ch":3264,"./de-ch.js":3264,"./de.js":1899,"./dv":8784,"./dv.js":8784,"./el":4654,"./el.js":4654,"./en-SG":4047,"./en-SG.js":4047,"./en-au":6277,"./en-au.js":6277,"./en-ca":6896,"./en-ca.js":6896,"./en-gb":1609,"./en-gb.js":1609,"./en-ie":4557,"./en-ie.js":4557,"./en-il":5836,"./en-il.js":5836,"./en-nz":3586,"./en-nz.js":3586,"./eo":2777,"./eo.js":2777,"./es":3357,"./es-do":3128,"./es-do.js":3128,"./es-us":3256,"./es-us.js":3256,"./es.js":3357,"./et":2654,"./et.js":2654,"./eu":7287,"./eu.js":7287,"./fa":5210,"./fa.js":5210,"./fi":3431,"./fi.js":3431,"./fo":1781,"./fo.js":1781,"./fr":1717,"./fr-ca":1539,"./fr-ca.js":1539,"./fr-ch":9847,"./fr-ch.js":9847,"./fr.js":1717,"./fy":2250,"./fy.js":2250,"./ga":7665,"./ga.js":7665,"./gd":5214,"./gd.js":5214,"./gl":6154,"./gl.js":6154,"./gom-latn":8518,"./gom-latn.js":8518,"./gu":9221,"./gu.js":9221,"./he":4743,"./he.js":4743,"./hi":7339,"./hi.js":7339,"./hr":3224,"./hr.js":3224,"./hu":856,"./hu.js":856,"./hy-am":6855,"./hy-am.js":6855,"./id":2190,"./id.js":2190,"./is":3887,"./is.js":3887,"./it":9270,"./it-ch":5890,"./it-ch.js":5890,"./it.js":9270,"./ja":6595,"./ja.js":6595,"./jv":3081,"./jv.js":3081,"./ka":7477,"./ka.js":7477,"./kk":3978,"./kk.js":3978,"./km":9205,"./km.js":9205,"./kn":25,"./kn.js":25,"./ko":427,"./ko.js":427,"./ku":9089,"./ku.js":9089,"./ky":9314,"./ky.js":9314,"./lb":3136,"./lb.js":3136,"./lo":9115,"./lo.js":9115,"./lt":7087,"./lt.js":7087,"./lv":5683,"./lv.js":5683,"./me":9454,"./me.js":9454,"./mi":5507,"./mi.js":5507,"./mk":8466,"./mk.js":8466,"./ml":2933,"./ml.js":2933,"./mn":9477,"./mn.js":9477,"./mr":3597,"./mr.js":3597,"./ms":5529,"./ms-my":9965,"./ms-my.js":9965,"./ms.js":5529,"./mt":259,"./mt.js":259,"./my":8061,"./my.js":8061,"./nb":2618,"./nb.js":2618,"./ne":8452,"./ne.js":8452,"./nl":1885,"./nl-be":413,"./nl-be.js":413,"./nl.js":1885,"./nn":5107,"./nn.js":5107,"./pa-in":702,"./pa-in.js":702,"./pl":1711,"./pl.js":1711,"./pt":594,"./pt-br":8238,"./pt-br.js":8238,"./pt.js":594,"./ro":4681,"./ro.js":4681,"./ru":6201,"./ru.js":6201,"./sd":2912,"./sd.js":2912,"./se":6002,"./se.js":6002,"./si":7942,"./si.js":7942,"./sk":5577,"./sk.js":5577,"./sl":1775,"./sl.js":1775,"./sq":6823,"./sq.js":6823,"./sr":9038,"./sr-cyrl":3848,"./sr-cyrl.js":3848,"./sr.js":9038,"./ss":6173,"./ss.js":6173,"./sv":5788,"./sv.js":5788,"./sw":6882,"./sw.js":6882,"./ta":2678,"./ta.js":2678,"./te":2797,"./te.js":2797,"./tet":2447,"./tet.js":2447,"./tg":1335,"./tg.js":1335,"./th":8667,"./th.js":8667,"./tl-ph":9914,"./tl-ph.js":9914,"./tlh":1389,"./tlh.js":1389,"./tr":3578,"./tr.js":3578,"./tzl":6969,"./tzl.js":6969,"./tzm":6509,"./tzm-latn":690,"./tzm-latn.js":690,"./tzm.js":6509,"./ug-cn":55,"./ug-cn.js":55,"./uk":2452,"./uk.js":2452,"./ur":1151,"./ur.js":1151,"./uz":1555,"./uz-latn":6547,"./uz-latn.js":6547,"./uz.js":1555,"./vi":6541,"./vi.js":6541,"./x-pseudo":2401,"./x-pseudo.js":2401,"./yo":2341,"./yo.js":2341,"./zh-cn":619,"./zh-cn.js":619,"./zh-hk":7058,"./zh-hk.js":7058,"./zh-tw":2782,"./zh-tw.js":2782};function r(e){var t=a(e);return n(t)}function a(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=a,e.exports=r,r.id=6700},306:function(e){"use strict";e.exports={i8:"5.3.0"}}},function(e){"use strict";e(e.s=5411)}])})(); \ No newline at end of file